@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20251012.0 → 0.0.0-nightly-20251014.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 +7 -7
- package/package.json +12 -12
- 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 +2 -2
- 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/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0xe47491(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1eb0f1){super(),this['id']=_0x1eb0f1['id']||_0x1f92e5(),this['creator']=_0x1eb0f1['creator']||null,this['authors']=_0x1eb0f1['authors']||[],this['diffData']=_0x1eb0f1['diffData']||null,this['toVersion']=_0x1eb0f1['toVersion']||0x0,this['fromVersion']=_0x1eb0f1['fromVersion']||0x0,this['set']('name',_0x1eb0f1['name']||''),this['set']('createdAt',_0x1eb0f1['createdAt']||new Date()),this['set']('attributes',_0x1eb0f1['attributes']||{});}['setName'](_0x3e8357){this['_update']({'name':_0x3e8357});}['setAttribute'](_0x3008ee,_0x21e315){const _0x9f7ed6=_0x24e9a2(this['attributes']);_0x8e1f17(_0x9f7ed6,_0x3008ee,_0x21e315),this['_update']({'attributes':_0x9f7ed6});}['removeAttribute'](_0xf052ec){const _0x3bed01=_0x24e9a2(this['attributes']);_0x1d16e2(_0x3bed01,_0xf052ec),this['_update']({'attributes':_0x3bed01});}['_update'](_0x4102d8,_0x20776f=!0x1){let _0x202e7a=!0x1;const _0x174662={'id':this['id']},_0x4702c7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4b4726 of _0x4702c7){const _0x48fe=_0x4102d8[_0x4b4726];void 0x0!==_0x48fe&&_0x48fe!==this[_0x4b4726]&&(this[_0x4b4726]=_0x48fe,_0x174662[_0x4b4726]=_0x48fe,_0x202e7a=!0x0);}_0x202e7a&&(_0x174662['authors']&&(_0x174662['authorsIds']=_0x174662['authors']['map'](_0x11b6fb=>_0x11b6fb['id']),delete _0x174662['authors']),this['fire']('_update',_0x174662,_0x20776f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2f3698=>_0x2f3698['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x1f60bb{['_revisions'];static get['requires'](){return[_0x24b744];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1b8d5f){super(_0x1b8d5f),this['_revisions']=new _0x5879da();}['afterInit'](){!async function(_0x1356b3){const _0x5c0fec=_0x4821a8([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x560b87=0xeb829,_0x5ec65b=0x7374585f,_0x1ba80b=0x73732da7^_0x5ec65b,_0x33d044=window[_0x4821a8([0x44,0x61,0x74,0x65])][_0x4821a8([0x6e,0x6f,0x77])](),_0x1936e6=_0x1356b3[_0x4821a8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e78b7=new window[(_0x4821a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b2efa=>{_0x1936e6[_0x4821a8([0x6f,0x6e,0x63,0x65])](_0x4821a8([0x72,0x65,0x61,0x64,0x79]),_0x4b2efa);}),_0x116602={[_0x4821a8([0x6b,0x74,0x79])]:_0x4821a8([0x45,0x43]),[_0x4821a8([0x75,0x73,0x65])]:_0x4821a8([0x73,0x69,0x67]),[_0x4821a8([0x63,0x72,0x76])]:_0x4821a8([0x50,0x2d,0x32,0x35,0x36]),[_0x4821a8([0x78])]:_0x4821a8([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]),[_0x4821a8([0x79])]:_0x4821a8([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]),[_0x4821a8([0x61,0x6c,0x67])]:_0x4821a8([0x45,0x53,0x32,0x35,0x36])},_0x23655b=_0x1936e6[_0x4821a8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4821a8([0x67,0x65,0x74])](_0x4821a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c1aee(){let _0x121196,_0x76c53e=null,_0x1b835c=null;try{if(_0x23655b==_0x4821a8([0x47,0x50,0x4c]))return _0x4821a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x121196=_0x3b2c06(),!_0x121196)return _0x4821a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x121196[_0x4821a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b835c=_0x119fdc(_0x121196[_0x4821a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x121196[_0x4821a8([0x6a,0x74,0x69])])),await _0x282933()?_0x242120()?_0x404d49()?_0x4821a8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x349143()?(_0x121196[_0x4821a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4821a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x76c53e=_0x34e662(_0x4821a8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x121196[_0x4821a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4821a8([0x74,0x72,0x69,0x61,0x6c])&&(_0x76c53e=_0x34e662(_0x4821a8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x251581()):_0x4821a8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4821a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4821a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4821a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x404d49(){const _0x313281=[_0x4821a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4821a8([0x74,0x72,0x69,0x61,0x6c])][_0x4821a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121196[_0x4821a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33d044/0x3e8:0xe10*_0x1ba80b;return _0x121196[_0x4821a8([0x65,0x78,0x70])]<_0x313281;}function _0x242120(){const _0x163f96=_0x121196[_0x4821a8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x163f96)return!0x1;if(_0x163f96[_0x4821a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a8([0x2a])))return!0x0;if(_0x163f96[_0x4821a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a8([0x52,0x48])))return!0x0;if(_0x163f96[_0x4821a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a8([0x52,0x52,0x48]))){if(_0x5e8f90())return!0x0;if(_0x353b67()||_0x14dbb5())return!0x0;}return!0x1;}function _0x349143(){const _0x44a543=_0x121196[_0x4821a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44a543||0x0==_0x44a543[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x136f7f}=new URL(window[_0x4821a8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x44a543[_0x4821a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x136f7f))return!0x0;const _0x5e4234=_0x136f7f[_0x4821a8([0x73,0x70,0x6c,0x69,0x74])](_0x4821a8([0x2e]));return _0x44a543[_0x4821a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9394f9=>_0x9394f9[_0x4821a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a8([0x2a])))[_0x4821a8([0x6d,0x61,0x70])](_0x1d23a3=>_0x1d23a3[_0x4821a8([0x73,0x70,0x6c,0x69,0x74])](_0x4821a8([0x2e])))[_0x4821a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b76f1=>_0x5b76f1[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e4234[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4821a8([0x6d,0x61,0x70])](_0x188160=>Array(_0x5e4234[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x188160[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4821a8([0x66,0x69,0x6c,0x6c])](_0x188160[0x0]===_0x4821a8([0x2a])?_0x4821a8([0x2a]):'')[_0x4821a8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x188160))[_0x4821a8([0x73,0x6f,0x6d,0x65])](_0x102b78=>_0x5e4234[_0x4821a8([0x65,0x76,0x65,0x72,0x79])]((_0x4a55e8,_0x30a1af)=>_0x102b78[_0x30a1af]===_0x4a55e8||_0x102b78[_0x30a1af]===_0x4821a8([0x2a])));}function _0x251581(){return _0x76c53e&&_0x1b835c?new window[(_0x4821a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x488b6c,_0x52a5a6)=>{_0x76c53e[_0x4821a8([0x74,0x68,0x65,0x6e])](_0x488b6c,_0x52a5a6),_0x1b835c[_0x4821a8([0x74,0x68,0x65,0x6e])](_0x5652e3=>{_0x5652e3!=_0x4821a8([0x56,0x61,0x6c,0x69,0x64])&&_0x488b6c(_0x5652e3);},_0x52a5a6);}):_0x76c53e||_0x1b835c||_0x4821a8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x119fdc(_0x1ce3a6,_0x4856ea){return new window[(_0x4821a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x287e08=>{if(_0x461422())return _0x287e08(_0x4821a8([0x56,0x61,0x6c,0x69,0x64]));_0x40de21(),_0x1936e6[_0x4821a8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4821a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xfa1e7=!0x1;const _0x45b5b5=_0x1f92e5();function _0x154bae(_0x5ba088){return!!_0x5ba088&&(typeof _0x5ba088===_0x4821a8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ba088===_0x4821a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ba088[_0x4821a8([0x74,0x68,0x65,0x6e])]===_0x4821a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ba088[_0x4821a8([0x63,0x61,0x74,0x63,0x68])]===_0x4821a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21eb58(_0x2e5aec){_0x1262ea(_0x2e5aec)[_0x4821a8([0x74,0x68,0x65,0x6e])](_0x457b79=>{if(!_0x457b79||_0x457b79[_0x4821a8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4821a8([0x6f,0x6b]))return _0x4821a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19880e(_0x438791(_0x45b5b5+_0x4856ea))!=_0x457b79[_0x4821a8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4821a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4821a8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4821a8([0x74,0x68,0x65,0x6e])](_0x557154=>(_0x548f34(),_0x557154),()=>{const _0x38e0e0=_0x15ce20();return null==_0x38e0e0?(_0x548f34(),_0x4821a8([0x56,0x61,0x6c,0x69,0x64])):_0x4821a8(_0x33d044-_0x38e0e0>(0x5778dc5f^_0x5ec65b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4821a8([0x74,0x68,0x65,0x6e])](_0x287e08)[_0x4821a8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x287e08(_0x4821a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1dc54a=0x7342b6df^_0x5ec65b;function _0x548f34(){const _0x2b82da=_0x4821a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x19880e(_0x438791(_0x1ce3a6)),_0x395127=_0x1b63cd(_0x19880e(window[_0x4821a8([0x4d,0x61,0x74,0x68])][_0x4821a8([0x63,0x65,0x69,0x6c])](_0x33d044/_0x1dc54a)));window[_0x4821a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4821a8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b82da,_0x395127);}function _0x15ce20(){const _0x1d4cc2=_0x4821a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x19880e(_0x438791(_0x1ce3a6)),_0xcf8cc0=window[_0x4821a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4821a8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d4cc2);return _0xcf8cc0?window[_0x4821a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b63cd(_0xcf8cc0),0x10)*_0x1dc54a:null;}function _0x1262ea(_0x87e6f9){return new window[(_0x4821a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x349b94,_0x5bd459)=>{_0x87e6f9[_0x4821a8([0x74,0x68,0x65,0x6e])](_0x349b94,_0x5bd459),window[_0x4821a8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bd459,0x73758c9f^_0x5ec65b);});}}_0x1936e6[_0x4821a8([0x6f,0x6e])](_0x4821a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19d97b,_0x4b34c8)=>{if(_0x4b34c8[0x0]!=_0x1ce3a6)return _0x287e08(_0x4821a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b34c8[0x1]={..._0x4b34c8[0x1],[_0x4821a8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45b5b5};},{[_0x4821a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4821a8([0x68,0x69,0x67,0x68])}),_0x1936e6[_0x4821a8([0x6f,0x6e])](_0x4821a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e4fa8=>{_0x154bae(_0x3e4fa8[_0x4821a8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xfa1e7=!0x0,_0x21eb58(_0x3e4fa8[_0x4821a8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4821a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4821a8([0x6c,0x6f,0x77])}),_0x5e78b7[_0x4821a8([0x74,0x68,0x65,0x6e])](()=>{_0xfa1e7||_0x287e08(_0x4821a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x461422(){return _0x1936e6[_0x4821a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4821a8([0x76,0x69,0x65,0x77])][_0x4821a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4821a8([0x61,0x75,0x74,0x6f]);}function _0x40de21(){_0x1936e6[_0x4821a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4821a8([0x76,0x69,0x65,0x77])][_0x4821a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4821a8([0x61,0x75,0x74,0x6f]);}}function _0x34e662(_0xea2994){const _0x1de37a=[new window[(_0x4821a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d4927=>setTimeout(_0x2d4927,0x737d6693^_0x5ec65b)),_0x5e78b7[_0x4821a8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4821a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x408995=>{const _0x8b0f41=0x73745858^_0x5ec65b,_0x4aef50=_0x1356b3[_0x4821a8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x69e6b4(){_0x4aef50[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x8b0f41&&_0x408995();}_0x69e6b4(),_0x4aef50[_0x4821a8([0x6f,0x6e])](_0x4821a8([0x61,0x64,0x64]),_0x69e6b4);})),new window[(_0x4821a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ec6e=>{function _0x1bc4c4(){for(const _0x4fc10f in window)if(window[_0x4821a8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4821a8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4fc10f))&&window[_0x4fc10f]==_0x560b87)return _0x52ec6e();_0x1936e6[_0x4821a8([0x73,0x74,0x61,0x74,0x65])]!=_0x4821a8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4821a8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bc4c4,0x73744bd7^_0x5ec65b);}_0x3fdc5a(_0x4821a8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1bc4c4();})];return window[_0x4821a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4821a8([0x72,0x61,0x63,0x65])](_0x1de37a)[_0x4821a8([0x74,0x68,0x65,0x6e])](()=>_0xea2994);}async function _0x2e1af9(){if(await _0x5e78b7,_0x3fdc5a(_0x4821a8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x541e9c=_0x1356b3[_0x4821a8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x30509c=_0x1356b3[_0x4821a8([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])](_0x541e9c[_0x4821a8([0x69,0x64])]),_0x4275a4=_0x68d1d(_0x4821a8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4275a4[_0x4821a8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x541e9c['id'],_0x30509c?_0x30509c['id']:null,!0x0),_0x4275a4[_0x4821a8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4821a8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4275a4[_0x4821a8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4275a4[_0x4821a8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3831f7,void(_0x4275a4[_0x4821a8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3831f7);}if(_0x3fdc5a(_0x4821a8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5ef3ae=_0x68d1d(_0x4821a8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5ef3ae[_0x4821a8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4821a8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ef3ae[_0x4821a8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ef3ae[_0x4821a8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3831f7,_0x5ef3ae[_0x4821a8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3831f7;}_0x1936e6[_0x4821a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4821a8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3831f7,_0x1936e6[_0x4821a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4821a8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3831f7,_0x1936e6[_0x4821a8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4821a8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e8f90(){return _0x3fdc5a(_0x4821a8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x68d1d(_0x4821a8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4821a8([0x73,0x74,0x61,0x74,0x65])]==_0x4821a8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x353b67(){return _0x3fdc5a(_0x4821a8([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 _0x14dbb5(){return _0x3fdc5a(_0x4821a8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1be273(_0x127d3f){const _0x3b621e=_0x5090a3();_0x1936e6[_0x3b621e]=_0x4821a8([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])+_0x127d3f,_0x127d3f[_0x4821a8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4821a8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5090a3()]=_0x560b87),_0x127d3f!=_0x4821a8([0x56,0x61,0x6c,0x69,0x64])&&_0x2e1af9();}function _0x5090a3(){const _0x596c9a=window[_0x4821a8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4821a8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4821a8([0x6e,0x6f,0x77])]())[_0x4821a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4821a8([0x2e]),'');let _0xead79c=_0x4821a8([0x73]);for(let _0x1049f4=0x0;_0x1049f4<_0x596c9a[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1049f4+=0x2){let _0x16b77b=window[_0x4821a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x596c9a[_0x4821a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1049f4,_0x1049f4+0x2));_0x16b77b>=_0x5c0fec[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16b77b-=_0x5c0fec[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xead79c+=_0x5c0fec[_0x16b77b];}return _0xead79c;}function _0x3b2c06(){const _0x5ce6e3=_0x23655b[_0x4821a8([0x73,0x70,0x6c,0x69,0x74])](_0x4821a8([0x2e]));if(0x3!=_0x5ce6e3[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x308947(_0x5ce6e3[0x1]);function _0x308947(_0x5d5801){const _0x583e3b=_0x3b51be(_0x5d5801);return _0x583e3b&&_0x100857()?_0x583e3b:null;function _0x100857(){const _0x2d5f11=_0x583e3b[_0x4821a8([0x6a,0x74,0x69])],_0x110877=window[_0x4821a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5f11[_0x4821a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d5f11[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfb65cb={..._0x583e3b,[_0x4821a8([0x6a,0x74,0x69])]:_0x2d5f11[_0x4821a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d5f11[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfb65cb[_0x4821a8([0x76,0x63])],_0x438791(_0xfb65cb)==_0x110877;}}}async function _0x282933(){let _0x175f63=!0x0;try{const _0x504ef1=_0x23655b[_0x4821a8([0x73,0x70,0x6c,0x69,0x74])](_0x4821a8([0x2e])),[_0x31ec74,_0x28f412,_0x3744b8]=_0x504ef1;return _0x184c94(_0x31ec74),await _0x1e80f8(_0x31ec74,_0x28f412,_0x3744b8),_0x175f63;}catch{return!0x1;}function _0x184c94(_0x3232bd){const _0x33e345=_0x3b51be(_0x3232bd);_0x33e345&&_0x33e345[_0x4821a8([0x61,0x6c,0x67])]==_0x4821a8([0x45,0x53,0x32,0x35,0x36])||(_0x175f63=!0x1);}async function _0x1e80f8(_0x6498cf,_0x9ffcc8,_0x13bca6){const _0x220475=window[_0x4821a8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4821a8([0x66,0x72,0x6f,0x6d])](_0x5b6df5(_0x13bca6),_0x4a38bc=>_0x4a38bc[_0x4821a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x570feb=new window[(_0x4821a8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4821a8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6498cf+_0x4821a8([0x2e])+_0x9ffcc8),_0xf43e91=window[_0x4821a8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4821a8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf43e91)return;const _0x72843f=await _0xf43e91[_0x4821a8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4821a8([0x6a,0x77,0x6b]),_0x116602,{[_0x4821a8([0x6e,0x61,0x6d,0x65])]:_0x4821a8([0x45,0x43,0x44,0x53,0x41]),[_0x4821a8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4821a8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4821a8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf43e91[_0x4821a8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4821a8([0x6e,0x61,0x6d,0x65])]:_0x4821a8([0x45,0x43,0x44,0x53,0x41]),[_0x4821a8([0x68,0x61,0x73,0x68])]:{[_0x4821a8([0x6e,0x61,0x6d,0x65])]:_0x4821a8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x72843f,_0x220475,_0x570feb)||(_0x175f63=!0x1);}}function _0x3b51be(_0x2de5ea){return _0x2de5ea[_0x4821a8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4821a8([0x65,0x79]))?JSON[_0x4821a8([0x70,0x61,0x72,0x73,0x65])](_0x5b6df5(_0x2de5ea)):null;}function _0x5b6df5(_0x43fa0){return window[_0x4821a8([0x61,0x74,0x6f,0x62])](_0x43fa0[_0x4821a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4821a8([0x2b]))[_0x4821a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4821a8([0x2f])));}function _0x438791(_0x486893){let _0x4802eb=0x1505;function _0x2acdd1(_0x7f56eb){for(let _0x31893e=0x0;_0x31893e<_0x7f56eb[_0x4821a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31893e++){const _0x511665=_0x7f56eb[_0x4821a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31893e);_0x4802eb=(_0x4802eb<<0x5)+_0x4802eb+_0x511665,_0x4802eb&=_0x4802eb;}}function _0x9e63a2(_0x258fd6){Array[_0x4821a8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x258fd6)?_0x258fd6[_0x4821a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9e63a2):_0x258fd6&&typeof _0x258fd6==_0x4821a8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4821a8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x258fd6)[_0x4821a8([0x73,0x6f,0x72,0x74])]()[_0x4821a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f2a06,_0x3617d7])=>{_0x2acdd1(_0x1f2a06),_0x9e63a2(_0x3617d7);}):_0x2acdd1(window[_0x4821a8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x258fd6));}return _0x9e63a2(_0x486893),_0x4802eb>>>0x0;}function _0x19880e(_0xa48e4c){return _0xa48e4c[_0x4821a8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4821a8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4821a8([0x30]));}function _0x1b63cd(_0x4d3544){return _0x4d3544[_0x4821a8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4821a8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4821a8([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fdc5a(_0x4e046a){return _0x1936e6[_0x4821a8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4821a8([0x68,0x61,0x73])](_0x4e046a);}function _0x68d1d(_0x4fd2ae){return _0x1936e6[_0x4821a8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4821a8([0x67,0x65,0x74])](_0x4fd2ae);}function _0x3831f7(){}function _0x4821a8(_0x5b1e9c){return _0x5b1e9c['map'](_0x2696d2=>String['fromCharCode'](_0x2696d2))['join']('');}_0x1be273(await _0x4c1aee());}(this);}['createRevision'](_0x315c30){const _0x43d2ce=this['editor']['plugins']['get']('Users');return new I({'id':_0x315c30['id'],'name':_0x315c30['name'],'creator':_0x315c30['creatorId']?_0x43d2ce['getUser'](_0x315c30['creatorId']):null,'diffData':_0x315c30['diffData']||_0x315c30['data'],'authors':_0x315c30['authorsIds']['map'](_0xddf9c2=>_0x43d2ce['getUser'](_0xddf9c2)),'createdAt':new Date(_0x315c30['createdAt']),'attributes':_0x315c30['attributes'],'fromVersion':_0x315c30['fromVersion'],'toVersion':_0x315c30['toVersion']});}['addRevision'](_0x44bd3e,_0x2c19e5=0x0){this['_revisions']['add'](_0x44bd3e,_0x2c19e5);}['getRevision'](_0xc52e03){return this['_revisions']['get'](_0xc52e03);}['getRevisions'](_0x4992d6={'toJSON':!0x1}){const _0x2dd86d=Array['from'](this['_revisions']);return _0x2dd86d['reverse'](),_0x4992d6['toJSON']?_0x2dd86d['map'](_0xda6d05=>_0xda6d05['toJSON']()):_0x2dd86d;}['getIndex'](_0x2dc0fb){return this['_revisions']['getIndex'](_0x2dc0fb);}['getEarlierVisibleRevision'](_0x37b533){const [,_0x397d72]=this['getRevisionsIterator'](_0x37b533,{'direction':'earlier'});return _0x397d72;}['getLaterVisibleRevision'](_0x6443e1){const [,_0x363a12]=this['getRevisionsIterator'](_0x6443e1,{'direction':'later'});return _0x363a12;}['getRevisionsInDiff'](_0x25d22c){const _0x1e676a=[];for(const _0x1859f1 of this['getRevisionsIterator'](_0x25d22c['newRevisionId']))if(_0x1e676a['push'](_0x1859f1),_0x1859f1['id']===_0x25d22c['oldRevisionId'])break;return _0x1e676a;}*['getRevisionsIterator'](_0x5a71e3,{direction:_0x1f54ba='earlier',filter:_0x3f2148=()=>!0x0}={}){const _0x3a8e28='earlier'===_0x1f54ba?0x1:-0x1;let _0x1a3dc2=this['_revisions']['get'](_0x5a71e3),_0x336461=this['getIndex'](_0x1a3dc2);for(yield _0x1a3dc2;_0x1a3dc2;){if(_0x336461+=_0x3a8e28,_0x1a3dc2=this['getRevision'](_0x336461),!_0x1a3dc2)return;_0x3f2148(_0x1a3dc2)&&(yield _0x1a3dc2);}}}class $ extends _0x1f60bb{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3a6927,'c'],[_0x5d9516,'a'],[_0xb8bcf0,'e'],[_0x1672a1,'r'],[_0x3dffb7,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3a6927],['a',_0x5d9516],['e',_0xb8bcf0],['r',_0x1672a1],['u',_0x3dffb7]]);async['loadRevisionData'](_0x5ebe67,_0x10c18f){if(_0x5ebe67['diffData']||!_0x10c18f)return;const _0x331a01=this['editor']['config']['get']('collaboration.channelId'),_0x8f20a6=await _0x10c18f['getRevision']({'channelId':_0x331a01,'revisionId':_0x5ebe67['id']});_0x5ebe67['diffData']=_0x8f20a6['diffData'];}['getRevisionDocumentData'](_0x20df35){const _0x1b026e={};for(const _0x5e48eb in _0x20df35['diffData']){if(_0x20df35['diffData'][_0x5e48eb]['attachChange']&&!_0x20df35['diffData'][_0x5e48eb]['attachChange']['isAttached'])continue;const _0x4de2e6=this['_removeRevisionMarkers'](JSON['parse'](_0x20df35['diffData'][_0x5e48eb]['insertions'])),_0x288203=this['editor']['editing']['view']['document'],_0x594795=new _0x56153e(_0x288203,_0x4de2e6['map'](_0x5bef56=>this['_getViewFromDiffObj'](_0x5bef56,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1b026e[_0x5e48eb]=this['editor']['data']['processor']['toData'](_0x594795),this['editor']['data']['processor']['useFillerType']('default');}return _0x1b026e;}['getRevisionRootsAttributes'](_0x3e9603){const _0x59d186={};for(const _0x15b1d6 in _0x3e9603['diffData'])_0x3e9603['diffData'][_0x15b1d6]['attachChange']&&!_0x3e9603['diffData'][_0x15b1d6]['attachChange']['isAttached']||(_0x59d186[_0x15b1d6]=_0x3e9603['diffData'][_0x15b1d6]['attributesAfter']||{});return _0x59d186;}['_getTypeCharForViewElement'](_0x2bde96){return this['_viewClassToTypeChar']['get'](_0x2bde96['constructor']);}['_getViewFromDiffObj'](_0x124b3f,_0x3a77ca){const _0x45f8ae=this['editor']['editing']['view']['document'];if('string'==typeof _0x124b3f)return new _0xff5f29(_0x45f8ae,_0x124b3f);{let _0x5027ef,_0x43ad77;_0x43ad77='u'==_0x124b3f['type']||'r'==_0x124b3f['type']?[]:_0x124b3f['children']['map'](_0x43c77d=>this['_getViewFromDiffObj'](_0x43c77d,_0x3a77ca));const _0x56a5e2=this['_typeCharToViewClass']['get'](_0x124b3f['type'])||_0x27c5da,_0x1ad495=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5027ef=new _0x56a5e2(_0x45f8ae,_0x124b3f['name'],_0x124b3f['attributes'],_0x43ad77),'u'==_0x124b3f['type']&&_0x124b3f['children'][0x0]){const _0x3a79ad=_0x124b3f['children'][0x0];if(_0x5027ef['render']=function(_0x489ce5){const _0x394298=_0x489ce5['createElement']('div');return _0x394298['innerHTML']=_0x3a79ad,_0x394298['childNodes'][0x0];},_0x3a77ca){const _0x3b67f8=new _0x56153e(_0x45f8ae);_0x3b67f8['_appendChild'](_0x5027ef);const _0x25f661=Array['from'](_0x1ad495['viewChildrenToDom'](_0x3b67f8,{'bind':!0x1})),_0x64c7e=_0x1ad495['domDocument']['createElement']('div');_0x64c7e['append'](..._0x25f661),_0x5027ef=Array['from'](_0x1ad495['domChildrenToView'](_0x64c7e))[0x0];}}else{if('r'==_0x124b3f['type']&&_0x124b3f['children'][0x0]){const _0x1b14fc=_0x124b3f['children'][0x0];if(_0x5027ef['render']=function(_0x5df0e0){_0x5df0e0['innerHTML']=_0x1b14fc;},_0x3a77ca){const _0x1dc4b7=new _0x56153e(_0x45f8ae);_0x1dc4b7['_appendChild'](_0x5027ef);const _0xe6f475=Array['from'](_0x1ad495['viewChildrenToDom'](_0x1dc4b7,{'bind':!0x1})),_0x1e5a2a=_0x1ad495['domDocument']['createElement']('div');_0x1e5a2a['append'](..._0xe6f475);const _0x4e73ab=Array['from'](_0x1ad495['domChildrenToView'](_0x1e5a2a));_0x4e73ab['length']>0x1?_0x5027ef['_appendChild'](_0x4e73ab):_0x5027ef=_0x4e73ab[0x0];}}}if(_0x124b3f['customProperties']){for(const [_0x267adf,_0x3e460e]of _0x124b3f['customProperties'])_0x5027ef['_setCustomProperty'](_0x267adf,_0x3e460e);}const _0x519e19=void 0x0===_0x124b3f['fillerOffset']?null:_0x124b3f['fillerOffset'];return null!==_0x519e19&&(_0x5027ef['getFillerOffset']=()=>_0x519e19),_0x5027ef;}}['_makeModelFromViewString'](_0x33e470){const _0x58d30e=JSON['parse'](_0x33e470),_0x1358c9=this['editor']['editing']['view']['document'],_0x1be17c=new _0x56153e(_0x1358c9,_0x58d30e['map'](_0x1bec07=>this['_getViewFromDiffObj'](_0x1bec07,!0x0)));return this['editor']['data']['toModel'](_0x1be17c);}['_removeRevisionMarkers'](_0x46ba70){return(_0x46ba70=_0x46ba70['filter'](_0x21d8e6=>!_0x21d8e6['name']||'revision-start'!==_0x21d8e6['name']&&'revision-end'!==_0x21d8e6['name']))['forEach'](_0x1d7038=>{'string'!=typeof _0x1d7038&&(_0x1d7038['children']=this['_removeRevisionMarkers'](_0x1d7038['children']),_0x1d7038['attributes']=_0x1d7038['attributes']['filter'](_0x318b4c=>!_0x318b4c[0x0]['startsWith']('data-revision-')));}),_0x46ba70;}}function m(_0x4088db,_0x2974a6,_0x5bd23a){const t=_0x4088db['t'];switch(_0x2974a6){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'},_0x5bd23a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5bd23a);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x1f60bb{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x24b744,S,$,_0x14df3f];}constructor(_0x5dc07e){super(_0x5dc07e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x49a7ad=_0x1f92e5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x49a7ad},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x767f0a=this['repository']['getRevision'](0x0),_0x1580ba=_0x767f0a&&null===_0x767f0a['creator']?_0x767f0a:null;if(this['_continueCurrentRevision']=!!_0x1580ba&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x349c85=this['_source']['getCurrentRevisionId'](),_0x178a18=this['repository']['getRevision'](_0x349c85);if(_0x178a18)this['_startingVersion']=_0x178a18['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x27893c=this['_source']['history']['_operations']['find'](_0x41dc12=>!_0x41dc12['_isInit']),_0x55d834=_0x27893c?_0x27893c['baseVersion']:this['_source']['history']['version'];_0x767f0a?(_0x767f0a['toVersion']<_0x55d834&&_0x767f0a['_update']({'toVersion':_0x55d834}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1580ba['id'],this['_startingVersion']=_0x1580ba['fromVersion']):(this['_startingVersion']=_0x767f0a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x55d834,this['_continueCurrentRevision']=!0x1);}}else _0x1580ba&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1580ba['toVersion'],this['editor']['model']['document']['history']['version']),_0x1580ba['fromVersion']===_0x1580ba['toVersion']?(0x0!==_0x1580ba['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1580ba['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1580ba['id'],this['_startingVersion']=_0x1580ba['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',_0x218563=>!_0x218563),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ce6f7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ef3fd;for(const _0x21fb58 in _0x5ce6f7){const _0x18222f=_0x21fb58,_0x48f178=_0x5ce6f7[_0x18222f];if('revisionHistoryLicenseKeyValid'==_0x48f178||'revisionHistoryLicenseKeyInvalid'==_0x48f178||'revisionHistoryLicenseKeyExpired'==_0x48f178||'revisionHistoryLicenseKeyDomainLimit'==_0x48f178||'revisionHistoryLicenseKeyNotAllowed'==_0x48f178||'revisionHistoryLicenseKeyEvaluationLimit'==_0x48f178||'revisionHistoryLicenseKeyTrialLimit'==_0x48f178||'revisionHistoryLicenseKeyUsageLimit'==_0x48f178){delete _0x5ce6f7[_0x18222f],_0x1ef3fd=_0x48f178,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1ef3fd&&_0x5ce6f7['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1ef3fd&&_0x5ce6f7['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1ef3fd&&_0x5ce6f7['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1ef3fd&&_0x5ce6f7['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1ef3fd&&_0x5ce6f7['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1ef3fd&&_0x5ce6f7['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1ef3fd&&_0x5ce6f7['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x242a03=this['repository']['getRevision'](0x0),_0x43e9fe=await this['getRevisionDocumentData'](_0x242a03),_0x398d65=await this['getRevisionRootsAttributes'](_0x242a03);this['_replaceEditorDataWithRevisionData'](_0x43e9fe,_0x398d65);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3056a7){this['_source']=_0x3056a7;}async['update'](){const _0x28ad92=await this['_source']['getLatestVersion']();if(_0x28ad92>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1e8be2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x28ad92});_0x1e8be2['authors']=_0x1e8be2['authorsIds']['map'](_0x1e8687=>this['editor']['plugins']['get']('Users')['getUser'](_0x1e8687)),this['currentRevision']['_update'](_0x1e8be2);}}async['saveRevision'](_0x96a9d9={},_0x29ca16=null){const _0x170896=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x29ca16>this['currentRevision']['toVersion']&&(_0x29ca16=null),null===_0x29ca16&&(_0x29ca16=await this['_source']['getLatestVersion']());const _0x17071b=this['_getFromVersion'](_0x29ca16),_0x27653c=this['buildRevisionData']({'from':_0x17071b,'to':_0x29ca16});if(this['currentRevision']['toVersion']<_0x29ca16){const _0x23aa4f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x29ca16,'to':_0x29ca16});_0x23aa4f['authors']=[],_0x23aa4f['authorsIds']=[],_0x23aa4f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x23aa4f,!0x0),delete _0x23aa4f['authors'],_0x170896['push'](_0x23aa4f);}_0x96a9d9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x96a9d9['name']=_0x96a9d9['name']||null,_0x96a9d9['id']=_0x96a9d9['id']||_0x1f92e5(),_0x96a9d9={..._0x96a9d9,..._0x27653c};const _0x3764ba=this['addRevisionData'](_0x96a9d9);_0x170896['push'](_0x96a9d9);const _0x273399=this['repository']['getIndex'](_0x3764ba);if(0x0!==_0x273399){const _0x889976=this['repository']['getRevision'](_0x273399-0x1);if(_0x889976['fromVersion']!==_0x29ca16){const _0x442eab=this['_revisionDataBuilder']['getData'](_0x29ca16,_0x889976['toVersion']),_0x2094b2={'id':_0x889976['id'],'diffData':_0x442eab['diffData'],'authorsIds':_0x442eab['authorsIds'],'authors':_0x442eab['authorsIds']['map'](_0x3084b2=>this['editor']['plugins']['get']('Users')['getUser'](_0x3084b2)),'fromVersion':_0x29ca16};_0x889976===this['currentRevision']&&(_0x2094b2['createdAt']=new Date(_0x96a9d9['createdAt']['getTime']()+0xa)),_0x889976['_update'](_0x2094b2,!0x0),delete _0x2094b2['authors'],_0x170896['push'](_0x2094b2);}}if(this['adapter']){for(const _0x8a8602 of _0x170896)this['_bufferUpdate'](_0x8a8602['id'],_0x8a8602,!0x0);this['sendBufferedUpdates']();}return _0x3764ba;}['addRevisionData'](_0x355015){const _0x11e78f=this['repository']['createRevision'](_0x355015);return this['adapter']&&_0x11e78f['on']('_update',(_0x35c4bb,_0x3bf88a,_0xa4cc3a)=>{_0xa4cc3a||(this['_bufferUpdate'](_0x3bf88a['id'],_0x3bf88a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x11e78f,this['_findInsertionIndex'](_0x11e78f)),_0x11e78f;}async['getRevisionDocumentData'](_0x335b44){return await this['_utils']['loadRevisionData'](_0x335b44,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x335b44);}async['getRevisionRootsAttributes'](_0x3708b7){return await this['_utils']['loadRevisionData'](_0x3708b7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3708b7);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x363d0e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1ef9ca=0x0;_0x1ef9ca<_0x363d0e['length'];_0x1ef9ca++){const _0x10ad08=_0x363d0e[_0x1ef9ca];let _0x4025b7=!0x1;for(const _0x59638a of Object['keys'](_0x10ad08))void 0x0===_0x10ad08[_0x59638a]?delete _0x10ad08[_0x59638a]:'id'!==_0x59638a&&(_0x4025b7=!0x0);_0x4025b7||(_0x363d0e[_0x1ef9ca]=null);}if(_0x363d0e=_0x363d0e['filter'](_0x386814=>null!==_0x386814),!_0x363d0e['length'])return;for(let _0x5312f4=0x0;_0x5312f4<_0x363d0e['length'];_0x5312f4++){const _0x35aa2c=_0x363d0e[_0x5312f4];void 0x0!==_0x35aa2c['fromVersion']&&void 0x0===_0x35aa2c['toVersion']&&(_0x35aa2c['toVersion']=this['repository']['getRevision'](_0x35aa2c['id'])['toVersion']),void 0x0!==_0x35aa2c['toVersion']&&void 0x0===_0x35aa2c['fromVersion']&&(_0x35aa2c['fromVersion']=this['repository']['getRevision'](_0x35aa2c['id'])['fromVersion']);}const _0xd3e1ef=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x363d0e,_0xd3e1ef)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5f3eec=>{if(_0x5f3eec){for(const _0x384ec3 of _0x5f3eec)this['setRevisionData']({'id':_0x384ec3['id'],'createdAt':_0x384ec3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x33d248=null,from:_0x433804=null,to:_0xb12c9a=null}){_0x433804=null!==_0x433804?_0x433804:_0x33d248['fromVersion'],_0xb12c9a=null!==_0xb12c9a?_0xb12c9a:_0x33d248['toVersion'];const _0x1d05c3=this['_revisionDataBuilder']['getData'](_0x433804,_0xb12c9a),_0x25191f={'diffData':_0x1d05c3['diffData'],'authorsIds':_0x1d05c3['authorsIds'],'fromVersion':_0x433804,'toVersion':_0xb12c9a};if(!_0x33d248||_0xb12c9a!==_0x33d248['toVersion']){const _0x551551=_0xb12c9a-0x1,_0x5b7844=this['_source']['history']['getOperation'](_0x551551);_0x25191f['createdAt']=_0x5b7844&&_0x5b7844['createdAt']||new Date();}if(this['_loadedStateData']&&_0x433804===this['_loadedStateData']['fromVersion']){for(const _0x540202 of this['_loadedStateData']['authors'])_0x25191f['authorsIds']['includes'](_0x540202['id'])||_0x25191f['authorsIds']['push'](_0x540202['id']);}return _0x25191f;}['_bufferUpdate'](_0x5848bd,_0x253483,_0x53b259){if(this['_bufferedUpdates']['has'](_0x5848bd)){const _0x22ee00=this['_bufferedUpdates']['get'](_0x5848bd);_0x253483=_0x53b259?{..._0x22ee00,..._0x253483}:{..._0x253483,..._0x22ee00};}this['_bufferedUpdates']['set'](_0x5848bd,_0x253483);}['setRevisionData'](_0x5b96ef){const _0x5bce07=this['repository']['getRevision'](_0x5b96ef['id']);if(_0x5b96ef['createdAt']&&(_0x5b96ef['createdAt']=new Date(_0x5b96ef['createdAt'])),_0x5b96ef['authorsIds']){const _0x3982dc=this['editor']['plugins']['get']('Users');_0x5b96ef['authors']=_0x5b96ef['authorsIds']['map'](_0x49972b=>_0x3982dc['getUser'](_0x49972b));}_0x5bce07['_update'](_0x5b96ef,!0x0);}['_createInitialRevision'](_0x5acb3e){const _0x846e7f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x846e7f)this['_initialRevisionId']=_0x846e7f['id'];else{const _0x5df566=!this['editor']['model']['document']['roots']['find'](_0x44fd4c=>this['editor']['model']['hasContent'](_0x44fd4c)),_0x59474f=this['editor']['plugins']['get']('Users')['me']['id'],_0x39237b=m(this['editor']['locale'],_0x5df566?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5acb3e,'to':_0x5acb3e,'id':this['_initialRevisionId'],'name':_0x39237b,'creatorId':_0x59474f});}}['_createCurrentRevision'](_0x5b75bb){const _0x5ee632=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5ee632),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5b75bb,'to':_0x5b75bb,'id':_0x5ee632,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x22a6bf,_0x355176){let _0x206d3b=this['editor']['config']['get']('initialData'),_0x8e6dc0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x206d3b){_0x206d3b={};for(const _0x538a0b of this['editor']['model']['document']['getRootNames']())_0x206d3b[_0x538a0b]='';}if('string'==typeof _0x206d3b&&(_0x206d3b={'main':_0x206d3b}),void 0x0===_0x8e6dc0){_0x8e6dc0={};for(const _0x458e1c of this['editor']['model']['document']['getRootNames']())_0x8e6dc0[_0x458e1c]={};}let _0x1fc03e=!0x1;const _0x43fce2=Object['keys'](_0x206d3b),_0x1398e5=Object['keys'](_0x22a6bf);for(const _0x3a9b13 of _0x43fce2){if(_0x206d3b[_0x3a9b13]!==_0x22a6bf[_0x3a9b13]&&''!==_0x206d3b[_0x3a9b13]['trim']()){_0x1fc03e=!0x0;break;}if(!_0x11322d(_0x8e6dc0[_0x3a9b13],_0x355176[_0x3a9b13])&&Object['keys'](_0x8e6dc0[_0x3a9b13])['length']>0x0){_0x1fc03e=!0x0;break;}}_0x1fc03e||(_0x1fc03e=_0x1398e5['some'](_0x2b7f09=>!this['editor']['model']['document']['getRoot'](_0x2b7f09))),_0x1fc03e&&_0x1091dc('editor-initial-data-replaced-with-revision-data',{'editorData':_0x206d3b,'editorRootsAttributes':_0x8e6dc0,'revisionData':_0x22a6bf,'revisionRootsAttributes':_0x355176}),this['editor']['config']['set']('initialData',_0x22a6bf),this['editor']['config']['set']('rootsAttributes',_0x355176);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xc7c890=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xc7c890['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4dec56){const _0x59f03c=this['repository']['getRevisions']();_0x59f03c['reverse']();let _0x442a0e=0x0;for(;_0x442a0e<_0x59f03c['length'];){const _0x2499c8=_0x59f03c[_0x442a0e];if(_0x2499c8===this['currentRevision']){_0x442a0e++;continue;}if(_0x2499c8['id']===this['_initialRevisionId'])break;const _0x52d975=_0x4dec56['toVersion']-_0x2499c8['toVersion']||_0x4dec56['fromVersion']-_0x2499c8['fromVersion'];if(_0x52d975>0x0)break;if(_0x52d975<0x0)_0x442a0e++;else{if(!_0x4dec56['creator']&&_0x2499c8['creator'])break;if(_0x2499c8['creator']||!_0x4dec56['creator']){if(_0x4dec56['createdAt']>_0x2499c8['createdAt'])break;_0x442a0e++;}else _0x442a0e++;}}return _0x442a0e;}['_getFromVersion'](_0x12b46d){const _0x21ffb4=this['repository']['getRevisions']();_0x21ffb4['reverse'](),_0x21ffb4['shift']();const _0x1ee8c9=_0x21ffb4['find'](_0x42ac41=>_0x42ac41['toVersion']<=_0x12b46d)['toVersion'];return _0x1ee8c9<this['_startingVersion']?this['_startingVersion']:_0x1ee8c9;}['_makeRevision']({name:_0x287d3b,from:_0x1564b1,to:_0x4048b6,creatorId:_0x5ea6f0,id:_0x135bac}){const _0x9a348d=this['buildRevisionData']({'from':_0x1564b1,'to':_0x4048b6});_0x9a348d['name']=_0x287d3b,_0x9a348d['creatorId']=_0x5ea6f0,_0x9a348d['id']=_0x135bac;const _0x3d33d4=this['addRevisionData'](_0x9a348d);return this['adapter']&&this['_bufferUpdate'](_0x9a348d['id'],_0x9a348d,!0x0),_0x3d33d4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4b2828){this['editor']=_0x4b2828,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'](_0x2bf1bf){this['source']=_0x2bf1bf;const _0x2d3601=new Map(),_0x112927=new Map(),_0x21958d=this['editor']['model']['document']['roots']['map'](_0x114906=>_0x114906['rootName']);for(const _0x4acf82 of _0x21958d){const _0x490f6f=this['editor']['model']['document']['getRoot'](_0x4acf82),_0x257d97=x(_0x490f6f);_0x2d3601['set'](_0x4acf82,_0x257d97),_0x112927['set'](_0x4acf82,Object['fromEntries'](_0x490f6f['getAttributes']()));}const _0x47f7f9=Array['from'](this['editor']['model']['markers'])['map'](_0x89ea0f=>[_0x89ea0f['name'],_0x89ea0f['getRange']()]),_0x23f501=this['source']['version'];this['_saveMetaData'](_0x23f501,_0x2d3601,_0x47f7f9,_0x112927),this['_startingRevisionId']=this['_revisionId'];const _0x42d561=new Map(),_0x3ec332=new Map();for(const _0x40c437 of _0x21958d){const _0xd2a54a=N(_0x40c437);_0x42d561['set'](_0x40c437,_0xd2a54a),_0x3ec332['set'](_0x40c437,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x42d561,[],_0x3ec332);}['getData'](_0x4c81f9,_0x1c7d29){if(this['_lastFrom']===_0x4c81f9&&this['_lastTo']<=_0x1c7d29)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1c7d29,!0x0);else{if(!this['_savedMetaData']['has'](_0x4c81f9)){const _0x5e2b7b=this['_getPreviousFrom'](_0x4c81f9);this['_calculateMetaData'](_0x5e2b7b,_0x4c81f9,!0x1);}this['_calculateMetaData'](_0x4c81f9,_0x1c7d29,!0x0);}return this['_lastFrom']=_0x4c81f9,this['_lastTo']=_0x1c7d29,this['_getState']();}['loadState'](_0x57cf7f){if(!this['_savedMetaData']['has'](_0x57cf7f['fromVersion'])){const _0x9a1117=this['_getPreviousFrom'](_0x57cf7f['fromVersion']);this['_calculateMetaData'](_0x9a1117,_0x57cf7f['fromVersion'],!0x1);}this['_calculateMetaData'](_0x57cf7f['fromVersion'],_0x57cf7f['toVersion'],!0x1);const _0xd4d63e=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x57cf7f['fromVersion'],this['_lastTo']=_0x57cf7f['toVersion'];for(const _0x483987 in _0x57cf7f['diffData']){const _0x42f250=_0x57cf7f['diffData'][_0x483987]['attachChange'],_0x3710b6=_0x24e9a2(_0x57cf7f['diffData'][_0x483987]['attributesBefore'])||{},_0xdb8db=_0xd4d63e['_makeModelFromViewString'](_0x57cf7f['diffData'][_0x483987]['deletions']);_0xdb8db['rootName']=_0x483987,_0xdb8db['_isAttached']=!_0x42f250||!_0x42f250['isAttached'],_0xdb8db['isAttached']=()=>_0xdb8db['_isAttached'],this['_baseRoots']['set'](_0x483987,_0xdb8db),this['_baseRootsAttributes']['set'](_0x483987,_0x3710b6),_0x42f250&&this['_touchedRoots']['set'](_0x483987,_0x42f250);const _0xa92f7c=this['_makeIdsRoot'](_0xdb8db);this['_baseIdsRoots']['set'](_0x483987,_0xa92f7c);for(const [_0x1c8947,_0x37ff61]of _0xdb8db['markers']){if(!_0x1c8947['startsWith']('revision:'))continue;const _0x1001f5=_0x1c8947['split'](':')[0x2];for(const _0x19aadb of _0x37ff61['getWalker']({'singleCharacters':!0x0})){const _0x5bb449=this['_getVidAttributeName'](_0x19aadb),_0x46ede9='elementEnd'==_0x19aadb['type']?_0x19aadb['previousPosition']['path']['slice'](0x0,-0x1):_0x19aadb['previousPosition']['path'],_0x2d8d21=_0xa92f7c['getNodeByPath'](_0x46ede9)['getAttribute'](_0x5bb449);this['_touched']['set'](_0x2d8d21,{'userId':_0x1001f5});}_0xdb8db['markers']['delete'](_0x1c8947);}}this['_startingRevisionId']=this['_revisionId'];const _0x3b1e88=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3c8354=>!this['_touched']['has'](_0x3c8354));let _0x4f2def=0x0;const _0x57a7fd=new Map();for(const _0x7ffd58 in _0x57cf7f['diffData']){const _0x38cc2c=_0x57cf7f['diffData'][_0x7ffd58]['attachChange'],_0x104fd9=_0x24e9a2(_0x57cf7f['diffData'][_0x7ffd58]['attributesAfter'])||{},_0x4a9e35=_0xd4d63e['_makeModelFromViewString'](_0x57cf7f['diffData'][_0x7ffd58]['insertions']);_0x4a9e35['rootName']=_0x7ffd58,_0x4a9e35['_isAttached']=!_0x38cc2c||_0x38cc2c['isAttached'],_0x4a9e35['isAttached']=()=>_0x4a9e35['_isAttached'],this['_diffRoots']['set'](_0x7ffd58,_0x4a9e35),this['_diffRootsAttributes']['set'](_0x7ffd58,_0x104fd9);const _0x165ae8=this['_makeIdsRoot'](_0x4a9e35,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x7ffd58,_0x165ae8),_0x57a7fd['set'](_0x7ffd58,_0x4a9e35['isAttached']()?_0x104fd9:{});for(const [_0x46e912,_0x259529]of _0x4a9e35['markers']){if(!_0x46e912['startsWith']('revision:'))continue;const _0x3cc952=_0x46e912['split'](':')[0x2];for(const _0x28c279 of _0x259529['getWalker']({'singleCharacters':!0x0})){const _0x105ba0=this['_getVidAttributeName'](_0x28c279),_0x431e92=this['_revisionId']++,_0x3c235e='elementEnd'==_0x28c279['type']?_0x28c279['previousPosition']['path']['slice'](0x0,-0x1):_0x28c279['previousPosition']['path'];_0x165ae8['getNodeByPath'](_0x3c235e)['_setAttribute'](_0x105ba0,_0x431e92),this['_touched']['set'](_0x431e92,{'userId':_0x3cc952});}_0x4a9e35['markers']['delete'](_0x46e912);}for(const _0x1130c6 of this['editor']['model']['createRangeIn'](_0x4a9e35)['getWalker']({'singleCharacters':!0x0})){const _0x57b99a=this['_getVidAttributeName'](_0x1130c6),_0x14ff42='elementEnd'==_0x1130c6['type']?_0x1130c6['previousPosition']['path']['slice'](0x0,-0x1):_0x1130c6['previousPosition']['path'],_0x51610c=_0x165ae8['getNodeByPath'](_0x14ff42);_0x51610c['getAttribute'](_0x57b99a)>0x0||_0x51610c['_setAttribute'](_0x57b99a,_0x3b1e88[_0x4f2def++]);}for(const [_0x5b9a05,_0x3cc38a]of _0x4a9e35['markers'])_0x5b9a05['startsWith']('revision:')||this['_markers']['set'](_0x5b9a05,_0x3cc38a);}const {roots:_0x53eceb}=this['_savedMetaData']['get'](_0x57cf7f['fromVersion']),{roots:_0x3f43c7}=this['_savedMetaData']['get'](_0x57cf7f['toVersion']),_0x164464=x(_0x53eceb['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x164464),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x164464,Number['NEGATIVE_INFINITY']));const _0x1b91c9=x(_0x3f43c7['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x1b91c9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1b91c9));const _0x33334b=Array['from'](this['_diffRoots'])['map'](([_0x3f11bb,_0x14a7f0])=>[_0x3f11bb,x(_0x14a7f0)]);this['_saveMetaData'](this['_lastTo'],_0x33334b,this['_markers'],_0x57a7fd);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1c8eb2,_0x325197,_0x88450a,_0xc4a001){const _0x599b0f=new Map(_0x325197),_0x56d5a5=new Map(_0x24e9a2(_0xc4a001)),_0x201156=new Map();for(const [_0xefde23,_0x2bd724]of _0x88450a)_0x201156['set'](_0xefde23,{'start':_0x2bd724['start']['clone'](),'end':_0x2bd724['end']['clone'](),'rootName':_0x2bd724['root']['rootName']});this['_savedMetaData']['set'](_0x1c8eb2,{'roots':_0x599b0f,'markers':_0x201156,'rootsAttributes':_0x56d5a5});}['_removeMetaData'](_0x2347c1){this['_savedMetaData']['delete'](_0x2347c1);}['_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'](_0x5f1f37,_0x2e7ddc=null){let _0x266a67=null;_0x5f1f37['is']('documentFragment')||(_0x266a67=new _0x6df636(_0x5f1f37['name'],{'vid_start':null===_0x2e7ddc?this['_revisionId']++:_0x2e7ddc++}));const _0x29bd9c=[];for(const _0x1c1059 of _0x5f1f37['getChildren']())if(_0x1c1059['is']('element')){_0x29bd9c['push'](this['_makeIdsRoot'](_0x1c1059,_0x2e7ddc));const _0x1d6131=_0x29bd9c[_0x29bd9c['length']-0x1];null!==_0x2e7ddc&&(_0x2e7ddc=_0x1d6131['is']('element','$text')?_0x1d6131['getAttribute']('vid')+0x1:_0x1d6131['getAttribute']('vid_end')+0x1);}else{for(let _0x4ffba0=0x0;_0x4ffba0<_0x1c1059['offsetSize'];_0x4ffba0++)_0x29bd9c['push'](new _0x6df636('$text',{'vid':null===_0x2e7ddc?this['_revisionId']++:_0x2e7ddc++}));}if(_0x5f1f37['is']('documentFragment')){const _0x442105=N(_0x5f1f37['rootName']);return _0x442105['_insertChild'](0x0,_0x29bd9c),_0x442105;}return _0x266a67['_setAttribute']('vid_end',null===_0x2e7ddc?this['_revisionId']++:_0x2e7ddc++),_0x266a67['_insertChild'](0x0,_0x29bd9c),_0x266a67;}['_calculateMetaData'](_0x41c9da,_0x5be60d,_0x3a7a9f){this['_reset']();const {roots:_0x101f7b,markers:_0x470569,rootsAttributes:_0x4bf1d5}=this['_savedMetaData']['get'](_0x41c9da);this['_baseRoots']=new Map(_0x101f7b),this['_baseRootsAttributes']=new Map(_0x24e9a2(_0x4bf1d5));for(const [_0x43ab2b,_0x4538be]of this['_baseRoots'])if('$graveyard'!==_0x43ab2b&&(this['_diffRoots']['set'](_0x43ab2b,x(_0x4538be)),this['_diffRootsAttributes']=new Map(_0x24e9a2(_0x4bf1d5)),_0x3a7a9f)){const _0x4cc901=this['_revisionId'];this['_idsRoots']['set'](_0x43ab2b,this['_makeIdsRoot'](_0x4538be)),this['_baseIdsRoots']['set'](_0x43ab2b,this['_makeIdsRoot'](_0x4538be,_0x4cc901));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3a7a9f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1ca46a,_0x4caf2b]of _0x470569){const _0xbf19e6=this['_baseRoots']['get'](_0x4caf2b['rootName']),_0x335053=this['_diffRoots']['get'](_0x4caf2b['rootName']),_0x29c919=new _0xf5c2e3(this['_fixPosition'](_0x4caf2b['start'],_0xbf19e6),this['_fixPosition'](_0x4caf2b['end'],_0xbf19e6)),_0x2a8ec2=this['_fixRange'](_0x29c919,_0x335053);_0xbf19e6['markers']['set'](_0x1ca46a,_0x29c919),this['_markers']['set'](_0x1ca46a,_0x2a8ec2);}this['_applyOperations'](_0x41c9da,_0x5be60d,_0x3a7a9f);}['_applyOperations'](_0x3bcff5,_0x24c63e,_0x145902){for(const _0x3d7b01 of this['source']['getOperations'](_0x3bcff5,_0x24c63e))this['_handleOperation'](_0x3d7b01,_0x145902);for(const _0x2c6f93 of this['_diffRoots']['values']())_0x2c6f93['markers']['clear']();for(const [_0x507aeb,_0x1914f3]of this['_markers']){this['_diffRoots']['get'](_0x1914f3['root']['rootName'])['markers']['set'](_0x507aeb,_0x1914f3['clone']());}const _0x3a19c6=new Map(),_0x2df703=new Map();for(const [_0x3f1f56,_0x23201f]of this['_diffRoots'])_0x3a19c6['set'](_0x3f1f56,x(_0x23201f)),_0x2df703['set'](_0x3f1f56,this['_diffRootsAttributes']['get'](_0x3f1f56));this['_saveMetaData'](_0x24c63e,_0x3a19c6,this['_markers'],_0x2df703);}['_getPreviousFrom'](_0x4e1289){const _0x1d992a=Array['from'](this['_savedMetaData']['keys']());_0x1d992a['sort']((_0xd5edac,_0x4fe7cd)=>_0xd5edac-_0x4fe7cd),_0x1d992a['reverse']();for(const _0x4dbd0b of _0x1d992a)if(_0x4dbd0b<_0x4e1289)return _0x4dbd0b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x212c06,_0x179537){const _0x26b90f=Array['from'](_0x179537['markers'])['map'](([_0x872ec4,_0x264f02])=>[_0x872ec4,this['_fixRange'](_0x264f02,_0x212c06)]);_0x212c06['markers']=new Map(_0x26b90f);}['_transformMarkers'](_0x14baf2){for(const _0xb1c6a2 of this['_markers']['values']()){const _0x4c54a7=_0xb1c6a2['getTransformedByOperation'](_0x14baf2),_0x267a64=_0xf5c2e3['_createFromRanges'](_0x4c54a7);_0xb1c6a2['start']=_0x267a64['start'],_0xb1c6a2['end']=_0x267a64['end'];}}['_handleOperation'](_0x2e69b5,_0x590332){if('addRoot'!=_0x2e69b5['type']&&'detachRoot'!=_0x2e69b5['type']){if('insert'==_0x2e69b5['type']){const _0x325944=_0x2e69b5['position']['root']['rootName'];this['_diffRoots']['has'](_0x325944)||(this['_diffRoots']['set'](_0x325944,N(_0x325944,!0x0)),this['_diffRootsAttributes']['set'](_0x325944,{}),_0x590332&&this['_idsRoots']['set'](_0x325944,N(_0x325944,!0x0)));}else{if('addRootAttribute'==_0x2e69b5['type']||'removeRootAttribute'==_0x2e69b5['type']||'changeRootAttribute'==_0x2e69b5['type'])return void this['_handleRootAttributeOperation'](_0x2e69b5);'marker'==_0x2e69b5['type']&&this['_handleMarkerOperation'](_0x2e69b5);}if('marker'!==_0x2e69b5['type']){const _0x490405=this['_cloneOperation'](_0x2e69b5,this['_diffRoots']);_0x490405['_execute'](),this['_transformMarkers'](_0x490405);}if(_0x590332)switch(_0x2e69b5['type']){case'insert':this['_handleInsertOperation'](_0x2e69b5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2e69b5);break;case'merge':this['_handleMergeOperation'](_0x2e69b5);break;case'split':this['_handleSplitOperation'](_0x2e69b5);}}else this['_handleRootOperation'](_0x2e69b5,_0x590332);}['_cloneOperation'](_0x40f13c,_0x14d3e8){const _0x3b7801=_0x40f13c['clone']();return _0x3b7801['_authorId']=_0x40f13c['_authorId'],this['_fixOperation'](_0x3b7801,_0x14d3e8),_0x3b7801;}['_getBaseVids'](_0x4aa2f5){return _0x4aa2f5['map'](_0x13d0e4=>{const _0xece0b1=this['_getVidAttributeName'](_0x13d0e4);return Number(_0x13d0e4['item']['getAttribute'](_0xece0b1));});}['_generateTape'](_0x4eff58,_0x217c19){if(_0x4eff58['is']('element','$text'))_0x217c19['push']({'item':_0x4eff58,'type':'text'});else{_0x4eff58['is']('element')&&_0x217c19['push']({'item':_0x4eff58,'type':'elementStart'});for(const _0x5ca3f2 of _0x4eff58['getChildren']())this['_generateTape'](_0x5ca3f2,_0x217c19);_0x4eff58['is']('element')&&_0x217c19['push']({'item':_0x4eff58,'type':'elementEnd'});}return _0x217c19;}['_getState'](){const _0x361c36=new Map(this['_touched']),_0x433deb=new Map(_0x361c36),_0x42e5d6=new Map(),_0x343f25={'insertions':{},'deletions':{}},_0x5f4cf3={'insertions':{},'deletions':{}},_0x176acd=new Map(),_0x1df9c5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1df9c5['delete']('$graveyard');for(const _0x3541fe of _0x1df9c5){const _0xb19395=this['_diffRoots']['get'](_0x3541fe)||N(_0x3541fe,!0x1),_0x2f104f=this['_baseRoots']['get'](_0x3541fe)||N(_0x3541fe,!0x1);_0xb19395['isAttached']()||_0x2f104f['isAttached']()?(_0x343f25['insertions'][_0x3541fe]=x(_0xb19395),_0x343f25['deletions'][_0x3541fe]=x(_0x2f104f),this['_copyMarkers'](_0x343f25['deletions'][_0x3541fe],_0x2f104f),this['_copyMarkers'](_0x343f25['insertions'][_0x3541fe],_0xb19395),_0x5f4cf3['insertions'][_0x3541fe]=this['_generateTape'](this['_idsRoots']['get'](_0x3541fe),[]),_0x5f4cf3['deletions'][_0x3541fe]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3541fe)||N(_0x3541fe,!0x1),[])):_0x1df9c5['delete'](_0x3541fe);}for(const _0x34e31e of _0x1df9c5){const _0x5e4f9b=_0x5f4cf3['insertions'][_0x34e31e];for(const _0x2cee88 of _0x5e4f9b){const _0x131ab0=this['_getVidAttributeName'](_0x2cee88),_0x45abe4=_0x2cee88['item']['getAttribute'](_0x131ab0);_0x433deb['delete'](_0x45abe4),_0x45abe4>=this['_startingRevisionId']&&_0x42e5d6['set'](_0x45abe4,_0x361c36['get'](_0x45abe4));}}for(const _0x5c7145 of _0x1df9c5){const _0x2d9f18=_0x5f4cf3['insertions'][_0x5c7145],_0x20f79d=this['_getBaseVids'](_0x5f4cf3['deletions'][_0x5c7145]);let _0x2a7fd9=0x0;for(const _0xd92c00 of _0x2d9f18){const _0x400e46=this['_getVidAttributeName'](_0xd92c00),_0x21d78e=_0xd92c00['item']['getAttribute'](_0x400e46);if(!_0x42e5d6['has'](_0x21d78e)&&!_0x176acd['has'](_0x21d78e)){if(_0x433deb['has'](_0x21d78e))_0x2a7fd9++;else{if(_0x21d78e!=_0x20f79d[_0x2a7fd9]){const _0x2ab8ab=_0x361c36['get'](_0x21d78e)||_0x361c36['get'](_0x20f79d[_0x2a7fd9]);for(;_0x21d78e!=_0x20f79d[_0x2a7fd9];)_0x433deb['has'](_0x20f79d[_0x2a7fd9])||(_0x176acd['set'](_0x20f79d[_0x2a7fd9],_0x2ab8ab),_0x361c36['set'](_0x20f79d[_0x2a7fd9],_0x2ab8ab)),_0x2a7fd9++;}_0x2a7fd9++;}}}}for(const _0x20a19c of _0x1df9c5){const _0x1c81ef=_0x5f4cf3['insertions'][_0x20a19c];for(const _0x16e6c8 of _0x1c81ef){const _0x30b625=this['_getVidAttributeName'](_0x16e6c8),_0x1fa9e2=_0x16e6c8['item']['getAttribute'](_0x30b625);if(_0x176acd['has'](_0x1fa9e2)){const _0x51a48d=_0x176acd['get'](_0x1fa9e2);_0x433deb['has'](_0x1fa9e2)||_0x433deb['set'](_0x1fa9e2,{..._0x51a48d}),_0x42e5d6['set'](_0x1fa9e2,{..._0x51a48d});}}}for(const _0x54227e of _0x433deb['keys']())_0x54227e>=this['_startingRevisionId']&&_0x433deb['delete'](_0x54227e);const _0x24ddb6=new Map();for(const _0x53893e of _0x1df9c5){let _0x467f09=_0x5f4cf3['insertions'][_0x53893e];for(const _0x20a0b0 of _0x467f09)if(_0x20a0b0['item']['is']('element','tableCell')){const _0x2c9180=this['_getVidAttributeName'](_0x20a0b0),_0x3b4072=_0x20a0b0['item']['getAttribute'](_0x2c9180);if(_0x42e5d6['has'](_0x3b4072)){const _0x1a3211=_0x20a0b0['item']['parent']['parent']['getAttribute']('vid_start'),_0x19ce80=_0x24ddb6['get'](_0x1a3211)||new Set();_0x19ce80['add'](_0x42e5d6['get'](_0x3b4072)['userId']),_0x24ddb6['set'](_0x1a3211,_0x19ce80);}}_0x467f09=_0x5f4cf3['deletions'][_0x53893e];for(const _0x2469b1 of _0x467f09)if(_0x2469b1['item']['is']('element','tableCell')){const _0x41c93f=this['_getVidAttributeName'](_0x2469b1),_0x242e6f=_0x2469b1['item']['getAttribute'](_0x41c93f);if(_0x433deb['has'](_0x242e6f)){const _0x2eac5b=_0x2469b1['item']['parent']['parent']['getAttribute']('vid_start'),_0x105cc8=_0x24ddb6['get'](_0x2eac5b)||new Set();_0x105cc8['add'](_0x433deb['get'](_0x242e6f)['userId']),_0x24ddb6['set'](_0x2eac5b,_0x105cc8);}}for(const _0x2d2fa5 of _0x24ddb6['keys']())(_0x42e5d6['has'](_0x2d2fa5)||_0x433deb['has'](_0x2d2fa5))&&_0x24ddb6['delete'](_0x2d2fa5);}for(const _0x3de2a7 of _0x1df9c5){const _0x321d58=_0x5f4cf3['insertions'][_0x3de2a7];let _0xb974fa=null,_0x4822bc=null;for(const _0x38819b of _0x321d58){const _0x392280=this['_getVidAttributeName'](_0x38819b),_0x1f6c73=_0x38819b['item']['getAttribute'](_0x392280),_0x17eac4=_0x24ddb6['get'](_0x1f6c73);_0x17eac4&&'elementStart'==_0x38819b['type']&&(_0xb974fa=Array['from'](_0x17eac4)[0x0],_0x4822bc=_0x38819b['item']['getAttribute']('vid_end')),_0xb974fa&&(_0x433deb['set'](_0x1f6c73,{'userId':_0xb974fa}),_0x42e5d6['set'](_0x1f6c73,{'userId':_0xb974fa})),_0x1f6c73==_0x4822bc&&(_0xb974fa=null,_0x4822bc=null);}}const _0x4e75ff={},_0x2aa9b4=new Set();for(const _0x5cf6b0 of _0x1df9c5){const _0x2f5538=_0x343f25['deletions'][_0x5cf6b0],_0x193e66=_0x343f25['insertions'][_0x5cf6b0];for(const {userId:_0x28aed5}of this['_touchedMarkers']['values']())null!==_0x28aed5&&_0x2aa9b4['add'](_0x28aed5);for(const {userId:_0x26c8e4}of this['_touchedRoots']['values']())null!==_0x26c8e4&&_0x2aa9b4['add'](_0x26c8e4);this['_markChanges'](_0x193e66,_0x5f4cf3['insertions'][_0x5cf6b0],_0x42e5d6,'insertion',_0x2aa9b4),this['_markChanges'](_0x2f5538,_0x5f4cf3['deletions'][_0x5cf6b0],_0x433deb,'deletion',_0x2aa9b4),_0x4e75ff[_0x5cf6b0]={'insertions':this['_prepareViewToSave'](_0x193e66),'deletions':this['_prepareViewToSave'](_0x2f5538),'attachChange':this['_touchedRoots']['get'](_0x5cf6b0)||null,'attributesBefore':_0x24e9a2(this['_baseRootsAttributes']['get'](_0x5cf6b0))||{},'attributesAfter':_0x24e9a2(this['_diffRootsAttributes']['get'](_0x5cf6b0))};}return{'diffData':_0x4e75ff,'authorsIds':Array['from'](_0x2aa9b4)};}['_processRootBeforeSave'](_0x397ae3){for(const [,_0x47ba4a]of _0x397ae3['markers']){const _0x1ab6a5=_0x47ba4a['start']['getAncestors']()['filter'](_0x472425=>'tableCell'==_0x472425['name']);for(const _0x577dad of _0x1ab6a5)0x1==_0x577dad['childCount']&&_0x577dad['getChild'](0x0)['is']('element','paragraph')&&_0x577dad['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x24eb8e){this['_processRootBeforeSave'](_0x24eb8e);const _0x54ab2c=this['editor']['data']['toView'](_0x24eb8e,{}),_0x2ff763=Array['from'](_0x54ab2c['getChildren']())['map'](_0x1ea1b7=>this['_getViewJson'](_0x1ea1b7));return JSON['stringify'](_0x2ff763);}['_getViewJson'](_0x3c1a52){if(_0x3c1a52['is']('$text'))return _0x3c1a52['data'];{const _0x1f5cb3=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x532bc7=_0x3c1a52,_0x26773e=this['editor']['data']['htmlProcessor']['domConverter'],_0x279769={'type':_0x1f5cb3['_getTypeCharForViewElement'](_0x532bc7),'name':_0x532bc7['name'],'attributes':Array['from'](_0x532bc7['getAttributes']()),'children':Array['from'](_0x532bc7['getChildren']())['map'](_0x506aab=>this['_getViewJson'](_0x506aab))};if(_0x3c1a52['is']('uiElement')&&'$comment'!=_0x3c1a52['name']){const _0xeb83ec=_0x3c1a52['render'](_0x26773e['domDocument'],_0x26773e);_0x279769['children']['push'](_0xeb83ec['outerHTML']);}else{if(_0x3c1a52['is']('rawElement')){const _0x81ff86=_0x26773e['domDocument']['createElement'](_0x532bc7['name']);_0x3c1a52['render'](_0x81ff86,_0x26773e),_0x279769['children']['push'](_0x81ff86['innerHTML']);}}const _0x5e9f27=Array['from'](_0x532bc7['getCustomProperties']());_0x5e9f27['length']>0x0&&(_0x279769['customProperties']=_0x5e9f27);const _0x222426=_0x532bc7['getFillerOffset']();return null!==_0x222426&&(_0x279769['fillerOffset']=_0x222426),_0x279769;}}['_markChanges'](_0x3d2c37,_0x16eb47,_0x2a4dcf,_0x79fab5,_0x276b34){let _0x21803a=null,_0x103d3c=null,_0x20d01b=0x0;const _0x55be51=this['editor']['model'];for(let _0x464755=0x0;_0x464755<_0x16eb47['length'];_0x464755++){const _0x12272a=this['_getVidAttributeName'](_0x16eb47[_0x464755]),_0x332d59=_0x16eb47[_0x464755]['item']['getAttribute'](_0x12272a),_0x223293=_0x2a4dcf['get'](_0x332d59),_0xae62b6=_0x464755==_0x16eb47['length']-0x1;(!_0x21803a&&_0x223293&&(_0x21803a=_0x223293,_0x103d3c=_0x16eb47[_0x464755]),_0x21803a&&(!_0x223293||_0x223293['userId']!=_0x21803a['userId']))&&(_0xb937ac(_0x223293,P(_0x103d3c,_0x3d2c37,_0x55be51),P(_0x16eb47[_0x464755],_0x3d2c37,_0x55be51)),_0x21803a=_0x223293||null,_0x103d3c=_0x223293?_0x16eb47[_0x464755]:null),_0x21803a&&_0xae62b6&&_0xb937ac(_0x223293,P(_0x103d3c,_0x3d2c37,_0x55be51),V(_0x16eb47[_0x464755],_0x3d2c37,_0x55be51));}function _0xb937ac(_0x120252,_0x1e5738,_0x3beee8){const _0xe80ff7=_0x21803a['userId'],_0x21e32d='revision:'+_0x79fab5+':'+_0xe80ff7+':'+_0x20d01b++,_0x31f415=_0x55be51['createRange'](_0x1e5738,_0x3beee8);_0x3d2c37['markers']['set'](_0x21e32d,_0x31f415),null!==_0xe80ff7&&_0x276b34['add'](_0xe80ff7);}}['_getVidAttributeName'](_0x495226){switch(_0x495226['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xdb0b87,_0x582e07){_0xdb0b87['baseVersion']=null;for(const _0x23a8d8 in _0xdb0b87){const _0x1598a4=_0xdb0b87[_0x23a8d8];if(_0x1598a4 instanceof _0x28e393){const _0x9e5753=_0x582e07['get'](_0x1598a4['root']['rootName']);_0xdb0b87[_0x23a8d8]=this['_fixPosition'](_0x1598a4,_0x9e5753);}if(_0x1598a4 instanceof _0xf5c2e3){const _0x3ee41a=_0x582e07['get'](_0x1598a4['root']['rootName']);_0xdb0b87[_0x23a8d8]=this['_fixRange'](_0x1598a4,_0x3ee41a);}'root'===_0x23a8d8&&(_0xdb0b87['root']=_0x582e07['get'](_0xdb0b87['root']['rootName']));}}['_fixRange'](_0x3173fa,_0x4230ad){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3173fa['start'],_0x4230ad),this['_fixPosition'](_0x3173fa['end'],_0x4230ad));}['_fixPosition'](_0x22db59,_0x18660d){return this['editor']['model']['createPositionFromPath'](_0x18660d,_0x22db59['path'],_0x22db59['stickiness']);}['_handleInsertOperation'](_0x51cfbc){const _0x2e68fe=this['_idsRoots']['get'](_0x51cfbc['position']['root']['rootName']),_0x4c0970=this['_fixPosition'](_0x51cfbc['position'],_0x2e68fe),_0x568638=null===_0x51cfbc['_authorId']?null:_0x51cfbc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26aa00=_0x4c0970['parent'],_0x4202c5=this['_revisionId'],_0x3397fa=[];for(const _0x589393 of _0x51cfbc['nodes'])if(_0x589393['is']('element'))_0x3397fa['push'](this['_makeIdsRoot'](_0x589393));else{for(let _0x3781a3=0x0;_0x3781a3<_0x589393['offsetSize'];_0x3781a3++)_0x3397fa['push'](new _0x6df636('$text',{'vid':this['_revisionId']++}));}const _0x5038ba=this['_revisionId'];for(let _0x3075bf=_0x4202c5;_0x3075bf<_0x5038ba;_0x3075bf++)this['_touched']['set'](_0x3075bf,{'userId':_0x568638});_0x26aa00['_insertChild'](_0x4c0970['offset'],_0x3397fa);}['_handleMoveOperation'](_0x29a08f){(_0x29a08f=this['_cloneOperation'](_0x29a08f,this['_idsRoots']))['_execute']();const _0x30f4aa=null===_0x29a08f['_authorId']?null:_0x29a08f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd7c5b3=_0x29a08f['getMovedRangeStart'](),_0x2c46bf=_0xd7c5b3['parent'],_0x255f44=_0xd7c5b3['offset'];!function _0x1c8e55(_0xed7f93,_0x15836a,_0x34c67d,_0x5561d7){for(let _0x19f106=_0x34c67d;_0x19f106<_0x5561d7;_0x19f106++){const _0x1229a0=_0x15836a['getChild'](_0x19f106);_0x1229a0['is']('element','$text')?_0xed7f93['set'](_0x1229a0['getAttribute']('vid'),{'userId':_0x30f4aa}):(_0xed7f93['set'](_0x1229a0['getAttribute']('vid_start'),{'userId':_0x30f4aa}),_0x1c8e55(_0xed7f93,_0x1229a0,0x0,_0x1229a0['childCount']),_0xed7f93['set'](_0x1229a0['getAttribute']('vid_end'),{'userId':_0x30f4aa}));}}(this['_touched'],_0x2c46bf,_0x255f44,_0x255f44+_0x29a08f['howMany']);}['_handleMergeOperation'](_0x164c85){const _0x41eb69=null===(_0x164c85=this['_cloneOperation'](_0x164c85,this['_idsRoots']))['_authorId']?null:_0x164c85['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4da243=_0x164c85['targetPosition']['parent'],_0x4a773e=_0x164c85['sourcePosition']['parent'],_0x1b045a=_0x4da243['getAttribute']('vid_end'),_0x94a4a1=_0x4a773e['getAttribute']('vid_start');_0x4da243['_setAttribute']('vid_end',_0x4a773e['getAttribute']('vid_end')),_0x4a773e['_setAttribute']('vid_end',_0x1b045a),this['_touched']['set'](_0x94a4a1,{'userId':_0x41eb69}),this['_touched']['set'](_0x1b045a,{'userId':_0x41eb69}),_0x164c85['_execute']();}['_handleSplitOperation'](_0x148b98){const _0x514d53=null===(_0x148b98=this['_cloneOperation'](_0x148b98,this['_idsRoots']))['_authorId']?null:_0x148b98['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ea437=_0x148b98['graveyardPosition'],_0x161a5a=_0x148b98['splitPosition']['parent'];_0x148b98['_execute']();const _0x2ee0d8=_0x161a5a['getAttribute']('vid_end'),_0x15e56c=_0x148b98['insertionPosition']['nodeAfter'];if(_0x1ea437){const _0x50b926=_0x15e56c['getAttribute']('vid_end'),_0x57840d=_0x161a5a['getAttribute']('vid_end');_0x161a5a['_setAttribute']('vid_end',_0x50b926),_0x15e56c['_setAttribute']('vid_end',_0x57840d),this['_touched']['set'](_0x161a5a['getAttribute']('vid_end'),{'userId':_0x514d53}),this['_touched']['set'](_0x15e56c['getAttribute']('vid_start'),{'userId':_0x514d53});}else{const _0x3e7cff=this['_revisionId']++,_0x29deb0=this['_revisionId']++;_0x161a5a['_setAttribute']('vid_end',_0x3e7cff),_0x15e56c['_setAttribute']('vid_start',_0x29deb0),_0x15e56c['_setAttribute']('vid_end',_0x2ee0d8),this['_touched']['set'](_0x3e7cff,{'userId':_0x514d53}),this['_touched']['set'](_0x29deb0,{'userId':_0x514d53});}}['_handleMarkerOperation'](_0x430d3e){if(!_0x430d3e['affectsData'])return;const _0x493c00=(_0x430d3e=this['_cloneOperation'](_0x430d3e,this['_diffRoots']))['oldRange']?_0x430d3e['oldRange']['root']:null,_0x42a7c0=_0x430d3e['newRange']?_0x430d3e['newRange']['root']:null;_0x493c00&&this['_markers']['delete'](_0x430d3e['name']),_0x42a7c0&&this['_markers']['set'](_0x430d3e['name'],_0x430d3e['newRange']['clone']());const _0x1d121d=null===_0x430d3e['_authorId']?null:_0x430d3e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3addad=_0x430d3e['name'];if(!this['_touchedMarkers']['has'](_0x3addad))return void this['_touchedMarkers']['set'](_0x3addad,{'range':_0x430d3e['oldRange'],'userId':_0x1d121d});const _0x5f0a1e=this['_touchedMarkers']['get'](_0x3addad),_0xca0c56=_0x5f0a1e['range'],_0x5785f1=_0x430d3e['newRange'];null==_0xca0c56&&null==_0x5785f1||_0xca0c56&&_0x5785f1&&_0xca0c56['isEqual'](_0x5785f1)?this['_touchedMarkers']['delete'](_0x430d3e['name']):_0x5f0a1e['userId']=_0x1d121d;}['_handleRootOperation'](_0x7bb13a,_0x34bd20){this['_diffRoots']['has'](_0x7bb13a['rootName'])?this['_diffRoots']['get'](_0x7bb13a['rootName'])['_isAttached']=_0x7bb13a['isAdd']:(this['_diffRoots']['set'](_0x7bb13a['rootName'],N(_0x7bb13a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x7bb13a['rootName'],{}),_0x34bd20&&this['_idsRoots']['set'](_0x7bb13a['rootName'],N(_0x7bb13a['rootName'],!0x0)));const _0x134bc1=null===_0x7bb13a['_authorId']?null:_0x7bb13a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa1de3d=this['_touchedRoots']['get'](_0x7bb13a['rootName']);_0xa1de3d&&_0xa1de3d['userId']===_0x134bc1?this['_touchedRoots']['delete'](_0x7bb13a['rootName']):this['_touchedRoots']['set'](_0x7bb13a['rootName'],{'userId':_0x134bc1,'isAttached':_0x7bb13a['isAdd']});}['_handleRootAttributeOperation'](_0x4d937a){const _0x481548=this['_diffRootsAttributes']['get'](_0x4d937a['root']['rootName']);null===_0x4d937a['newValue']?delete _0x481548[_0x4d937a['key']]:_0x481548[_0x4d937a['key']]=_0x4d937a['newValue'];}}function x(_0x599eb2){const _0x5dba43=N(_0x599eb2['rootName'],_0x599eb2['isAttached']());for(const _0x403ad6 of _0x599eb2['getChildren']()){const _0x4b03c2=_0x403ad6['_clone'](!0x0);_0x5dba43['_appendChild'](_0x4b03c2);}return _0x5dba43;}function N(_0x279f51,_0x4f1a3a=!0x0){const _0x9c279e=new _0x6fdf77();return _0x9c279e['rootName']=_0x279f51,_0x9c279e['_isAttached']=_0x4f1a3a,_0x9c279e['isAttached']=()=>_0x9c279e['_isAttached'],_0x9c279e;}function P(_0x4d90e5,_0x50e23e,_0x1b6b9f){const _0x58a7de='elementEnd'==_0x4d90e5['type']?_0x1b6b9f['createPositionAt'](_0x4d90e5['item'],'end'):_0x1b6b9f['createPositionBefore'](_0x4d90e5['item']);return _0x1b6b9f['createPositionFromPath'](_0x50e23e,_0x58a7de['path'],_0x58a7de['stickiness']);}function V(_0x1d2202,_0xb119ff,_0x45f2dc){const _0x25ae32='elementStart'==_0x1d2202['type']?_0x45f2dc['createPositionAt'](_0x1d2202['item'],0x0):_0x45f2dc['createPositionAfter'](_0x1d2202['item']);return _0x45f2dc['createPositionFromPath'](_0xb119ff,_0x25ae32['path'],_0x25ae32['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0xe47491(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x11f686){super(),this['id']=_0x11f686['id']||_0x1f92e5(),this['author']=_0x11f686['author'],this['type']=_0x11f686['type'],this['data']=_0x11f686['data']||{},this['rootName']=_0x11f686['rootName'],this['set']('createdAt',_0x11f686['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1b2827,_0x4f9d2e){this['newRevisionId']=_0x1b2827,this['oldRevisionId']=_0x4f9d2e,this['changes']=new _0x5879da();}['_setChanges'](_0x489194){for(const _0x203a40 of _0x489194)this['changes']['add'](_0x203a40);}}class u extends _0x1f60bb{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x24b744,_0x5ad226,S,$];}constructor(_0x4a459f){super(_0x4a459f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3b443d,_0x14f840,_0x3746af)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x56a449=>{for(const _0x22b0ac of this['editor']['editing']['view']['document']['roots'])_0x3746af?_0x56a449['removeClass']('ck-editor__editable__overlay',_0x22b0ac):_0x56a449['addClass']('ck-editor__editable__overlay',_0x22b0ac);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x473f20=>null!==_0x473f20),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x26551,_0x306ffd,_0xe789f2)=>_0x26551&&_0xe789f2?_0x306ffd['changes']['getIndex'](_0xe789f2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x42c0ec,_0x240270)=>_0x42c0ec?_0x240270['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5ad226);}['init'](){const _0x257b4b=this['editor'],_0x400575=new ot(_0x257b4b,{'direction':'backward'}),_0x5b3151=new ot(_0x257b4b,{'direction':'forward'});(_0x257b4b['commands']['add']('showPreviousChange',_0x400575),_0x257b4b['commands']['add']('showNextChange',_0x5b3151),_0x257b4b['commands']['add']('restoreRevision',new nt(_0x257b4b)),this['on']('change:numberOfChanges',()=>{_0x400575['refresh'](),_0x5b3151['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x257b4b['enableReadOnlyMode']('revision-viewer'),_0x257b4b['plugins']['has']('WidgetToolbarRepository'))&&_0x257b4b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4b16ce){return await this['_utils']['loadRevisionData'](_0x4b16ce,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4b16ce);}async['getRevisionRootsAttributes'](_0x5627be){return await this['_utils']['loadRevisionData'](_0x5627be,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5627be);}async['compare'](_0x44d97c,_0x346bce,_0xeed5fe=!0x1){if(!this['isEnabled'])return;const _0x59abec=this['diff'],_0x28854a=this['repository'],_0x580789='string'==typeof _0x44d97c?_0x28854a['getRevision'](_0x44d97c):_0x44d97c,_0x106733='string'==typeof _0x346bce?_0x28854a['getRevision'](_0x346bce):_0x346bce,_0x5a101f=_0x580789['id'],_0x56f78c=_0x106733?_0x106733['id']:null;if(!_0xeed5fe&&this['diff']&&this['diff']['newRevisionId']===_0x5a101f&&this['diff']['oldRevisionId']===_0x56f78c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x5a101f,_0x56f78c);const _0xe6f0e=this['_getRevisionsRange'](_0x580789,_0x106733,!0x0)['map'](_0xab1377=>this['_utils']['loadRevisionData'](_0xab1377,this['adapter']));return _0xe6f0e['push'](new Promise(_0x9fecc5=>{setTimeout(_0x9fecc5,0x14);})),Promise['all'](_0xe6f0e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1445e3=this['_getDiff'](_0x5a101f,_0x56f78c);for(const _0x4f4997 of _0x1445e3['changes'])this['_changeIdToChange']['set'](_0x4f4997['id'],_0x4f4997);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x26c10b=>{for(const _0x3b5ed7 of this['editor']['model']['document']['getRootNames']())_0x26c10b['detachRoot'](_0x3b5ed7);for(const _0x3538ad of Object['keys'](_0x1445e3['model'])){const _0x4825ad=_0x26c10b['addRoot'](_0x3538ad);for(const _0x2236be of Object['keys'](_0x1445e3['attributes'][_0x3538ad]))_0x26c10b['setAttribute'](_0x2236be,_0x1445e3['attributes'][_0x3538ad][_0x2236be],_0x4825ad);_0x26c10b['insert'](_0x1445e3['model'][_0x3538ad],_0x4825ad,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1445e3['changes'])),this['isReady']=!0x0;})['catch'](_0x3c8b44=>{console['error'](_0x3c8b44),this['_cleanUp'](),_0x59abec&&(this['diff']=_0x59abec),this['isReady']=!0x0;});}['addRevisionData'](_0x391a3a,_0x5dd469){const _0xe1c2fb=this['repository']['createRevision'](_0x391a3a);return _0xe1c2fb['on']('_update',(_0x1e7024,_0x598da8,_0x464d8a)=>_0x5dd469(_0x598da8,_0x464d8a,_0xe1c2fb)),this['repository']['addRevision'](_0xe1c2fb),_0xe1c2fb;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x27519c=>{for(const _0x5f0fc2 of this['editor']['model']['document']['getRootNames']())_0x27519c['detachRoot'](_0x5f0fc2);});}['_sortAndFilterDiffChanges'](_0xd9c930){const _0x5843e9=[],_0x3c64df=new Map();for(const _0x28a62e of this['editor']['model']['document']['getRootNames']()){const _0x22850d=this['editor']['editing']['view']['getDomRoot'](_0x28a62e);if(!_0x22850d)continue;const _0xe2c060=_0x22850d['getClientRects']()['item'](0x0);_0xe2c060&&(_0x5843e9['push'](_0x28a62e),_0x3c64df['set'](_0x28a62e,_0xe2c060));}return _0x5843e9['sort']((_0x9d979b,_0x1167f3)=>{const _0x10ca9e=_0x3c64df['get'](_0x9d979b),_0x16d696=_0x3c64df['get'](_0x1167f3);return _0x10ca9e['y']-_0x16d696['y']||_0x10ca9e['x']-_0x16d696['x'];}),(_0xd9c930=_0xd9c930['filter'](_0x416792=>_0x5843e9['includes'](_0x416792['rootName'])))['sort']((_0x2ea4bb,_0x434f0b)=>_0x5843e9['indexOf'](_0x2ea4bb['rootName'])-_0x5843e9['indexOf'](_0x434f0b['rootName'])),_0xd9c930;}['_makeTape'](_0x16f900){const _0x34622e=Array['from'](_0x16f900['markers'])['filter'](([_0x3dcd87,_0xfb65d0])=>_0x3dcd87['startsWith']('revision:')&&!_0xfb65d0['isCollapsed']),_0x45e039=Array['from'](this['editor']['model']['createRangeIn'](_0x16f900)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x34622e['length'])for(const _0x217e41 of _0x45e039){const [_0x2b5e98,_0x251cd7]=_0x34622e[0x0],[,_0x163538,_0x57cef2]=_0x2b5e98['split'](':');if(_0x251cd7['end']['isEqual'](_0x217e41['nextPosition'])&&_0x34622e['shift'](),(_0x217e41['previousPosition']['isEqual'](_0x251cd7['start'])||_0x217e41['previousPosition']['isAfter'](_0x251cd7['start']))&&('insertion'==_0x163538?_0x217e41['isAdded']={'userId':_0x57cef2}:'deletion'==_0x163538&&(_0x217e41['isRemoved']={'userId':_0x57cef2})),0x0==_0x34622e['length'])break;}return _0x45e039;}['_refreshStartEndIndex'](_0x1d8f8d){const _0x2d2516=new Map();for(let _0xb7a533=0x0;_0xb7a533<_0x1d8f8d['length'];_0xb7a533++)'text'===_0x1d8f8d[_0xb7a533]['type']?(_0x1d8f8d[_0xb7a533]['item']['startIndex']=_0xb7a533,_0x1d8f8d[_0xb7a533]['item']['endIndex']=_0xb7a533):('elementStart'===_0x1d8f8d[_0xb7a533]['type']?_0x1d8f8d[_0xb7a533]['item']['startIndex']=_0xb7a533:'elementEnd'===_0x1d8f8d[_0xb7a533]['type']&&(_0x1d8f8d[_0xb7a533]['item']['endIndex']=_0xb7a533),_0x2d2516['set'](_0x1d8f8d[_0xb7a533]['id'],_0xb7a533));for(const _0x383a1d of _0x2d2516['values']())'elementStart'===_0x1d8f8d[_0x383a1d]['type']?_0x1d8f8d[_0x383a1d]['item']['endIndex']=_0x2d2516['get'](_0x1d8f8d[_0x383a1d]['pairId']):'elementEnd'===_0x1d8f8d[_0x383a1d]['type']&&(_0x1d8f8d[_0x383a1d]['item']['startIndex']=_0x2d2516['get'](_0x1d8f8d[_0x383a1d]['pairId']));}['_processTape'](_0xe45c23){for(let _0x114052=0x0;_0x114052<_0xe45c23['length'];_0x114052++){if('elementStart'===_0xe45c23[_0x114052]['type'])_0xe45c23[_0x114052]['item']['startIndex']=_0x114052;else{if('elementEnd'===_0xe45c23[_0x114052]['type']){_0xe45c23[_0x114052]['item']['endIndex']=_0x114052;const _0x3f7b48=_0xe45c23[_0x114052]['item']['startIndex'];_0xe45c23[_0x3f7b48]['pairId']=_0xe45c23[_0x114052]['id'],_0xe45c23[_0x114052]['pairId']=_0xe45c23[_0x3f7b48]['id'];}else _0xe45c23[_0x114052]['item']['startIndex']=_0x114052,_0xe45c23[_0x114052]['item']['endIndex']=_0x114052,_0xe45c23[_0x114052]['pairId']=null;}_0xe45c23[_0x114052]['markersStart']||(_0xe45c23[_0x114052]['markersStart']=[],_0xe45c23[_0x114052]['markersEnd']=[]);}}['_markInsertions'](_0x4489d6,_0xce32a2){const _0x2cfc74=_0x4489d6['filter'](_0x362572=>!_0x362572['isAdded']);for(let _0x2c8085=0x0;_0x2c8085<_0xce32a2['length'];_0x2c8085++)_0xce32a2[_0x2c8085]['isAdded']&&(_0x2cfc74[_0x2c8085]['isAdded']=_0xce32a2[_0x2c8085]['isAdded']);}['_getDiff'](_0x5e7777,_0x33c5b4=null){const _0x4662e5=this['repository']['getRevision'](_0x5e7777),_0x307b93=_0x33c5b4?this['repository']['getRevision'](_0x33c5b4):null,_0xeb9ebc=this['_getRevisionsRange'](_0x4662e5,_0x307b93),_0x347d3e=_0xeb9ebc[_0xeb9ebc['length']-0x1],_0x3ed109=new Map(),_0xe59a20={'model':{},'attributes':{},'changes':[]},_0xb606bb=new Set(),_0xc78af1=new Map();for(let _0x1d87e3=_0xeb9ebc['length']-0x1;_0x1d87e3>=0x0;_0x1d87e3--){const _0x1e5a63=_0xeb9ebc[_0x1d87e3];for(const _0x3b987a of Object['keys'](_0x1e5a63['diffData']))if(_0x1e5a63['diffData'][_0x3b987a]['attachChange']){const _0x1f4e50=_0x1e5a63['diffData'][_0x3b987a]['attachChange'];_0x1f4e50['isAttached']?(_0xb606bb['add'](_0x3b987a),_0xc78af1['has'](_0x3b987a)&&_0xc78af1['get'](_0x3b987a)['userId']==_0x1f4e50['userId']?_0xc78af1['delete'](_0x3b987a):_0xc78af1['set'](_0x3b987a,_0x1f4e50)):_0xc78af1['has'](_0x3b987a)?(_0xb606bb['delete'](_0x3b987a),_0xc78af1['delete'](_0x3b987a)):(_0xb606bb['add'](_0x3b987a),_0xc78af1['set'](_0x3b987a,_0x1f4e50));}else _0xb606bb['add'](_0x3b987a);}for(const _0x2b7aa2 of _0xb606bb){const _0x4a2e68=_0xc78af1['has'](_0x2b7aa2)&&!_0xc78af1['get'](_0x2b7aa2)['isAttached'];let _0xe0c54a=_0x4a2e68?_0xeb9ebc['length']-0x1:0x0;const _0x2f303c=_0x4a2e68?-0x1:0x1;for(;_0xeb9ebc[_0xe0c54a];){const _0x3cfd91=_0xeb9ebc[_0xe0c54a];if(_0x3cfd91['diffData'][_0x2b7aa2]){const _0x5e91e1=_0x4a2e68?_0x3cfd91['diffData'][_0x2b7aa2]['attributesBefore']:_0x3cfd91['diffData'][_0x2b7aa2]['attributesAfter'];_0xe59a20['attributes'][_0x2b7aa2]=_0x5e91e1?_0x24e9a2(_0x5e91e1):{};break;}_0xe0c54a+=_0x2f303c;}}for(const _0x104c54 of _0xeb9ebc){_0x104c54['model']={};for(const _0x186be9 of _0x104c54['authors'])_0x3ed109['set'](_0x186be9['id'],_0x186be9);for(const _0x2253f3 of _0xb606bb){const _0x413809=_0x104c54['diffData'][_0x2253f3]?_0x104c54['diffData'][_0x2253f3]['insertions']:'[]',_0x135014=_0x104c54['diffData'][_0x2253f3]?_0x104c54['diffData'][_0x2253f3]['deletions']:'[]';_0x104c54['model'][_0x2253f3]={'insertions':this['_utils']['_makeModelFromViewString'](_0x413809),'deletions':this['_utils']['_makeModelFromViewString'](_0x135014)};}}for(const _0x3fab1f of _0xb606bb){let _0x1e6332=null,_0x31ac8=0x0;const _0x2c3bea=new Map(Array['from'](_0x4662e5['model'][_0x3fab1f]['insertions']['markers'])['filter'](([_0xf0b48a])=>!_0xf0b48a['startsWith']('revision:')));let _0x5804e2=0x0;for(const _0x548c95 of _0xeb9ebc){const _0xbad96=this['_makeTape'](_0x548c95['model'][_0x3fab1f]['insertions']);_0x548c95==_0x4662e5?(_0x1e6332=_0xbad96,_0x31ac8=_0x1e6332['length'],_0x1e6332['forEach'](_0x4bab8c=>{_0x4bab8c['id']=_0x5804e2++;}),this['_processTape'](_0x1e6332)):this['_markInsertions'](_0x1e6332,_0xbad96);const _0xbf0a0a=_0x1e6332['filter'](_0x53837f=>!_0x53837f['isAdded'])['map'](_0x3ed2e0=>_0x3ed2e0['id']);let _0x5b7b62=0x0;const _0x2cfab4=this['_makeTape'](_0x548c95['model'][_0x3fab1f]['deletions']);_0x2cfab4['forEach'](_0x5d73a2=>{_0x5d73a2['isRemoved']?_0x5d73a2['id']=_0x31ac8++:_0x5d73a2['id']=_0xbf0a0a[_0x5b7b62++];}),this['_processTape'](_0x2cfab4),this['_setDistance'](_0x1e6332,'isAdded'),this['_setDistance'](_0x2cfab4,'isRemoved'),_0x548c95==_0x4662e5&&this['_markMarkers'](_0x1e6332,_0x2c3bea),_0x1e6332=this['_joinTapes'](_0x1e6332,_0x2cfab4),this['_refreshStartEndIndex'](_0x1e6332),this['_setDistance'](_0x1e6332,'isRemoved');}_0x1e6332=_0x1e6332['filter'](_0x5511fa=>!(_0x5511fa['isAdded']&&_0x5511fa['isRemoved']));const _0x3628e4=new Map(_0x347d3e['model'][_0x3fab1f]['deletions']['markers']),_0x4cb21c=new Set(_0x2c3bea['keys']());for(const _0x32126 of _0x3628e4['keys']())_0x4cb21c['delete'](_0x32126);this['_markSuggestions'](_0x1e6332,_0x4cb21c),this['_fixObsoleteTags'](_0x1e6332),_0x1e6332=this['_removeMissingPairs'](_0x1e6332),_0x1e6332=this['_markMismatchedRemovedTags'](_0x1e6332),_0x1e6332=this['_removeUnsupportedChanges'](_0x1e6332);const {root:_0x137909,changes:_0xa16f9}=this['_makeModelFromTape'](_0x1e6332,_0x3ed109,_0x3fab1f);_0xe59a20['model'][_0x3fab1f]=_0x137909;const _0x140c36=_0xc78af1['get'](_0x3fab1f);if(_0x140c36){const _0x560b3a=_0x3ed109['get'](_0x140c36['userId']),_0x6ae253=new G({'author':_0x560b3a,'type':_0x140c36['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3fab1f});_0xa16f9['unshift'](_0x6ae253),_0xe59a20['attributes'][_0x3fab1f]['revisionHistoryAttachChange']=_0x6ae253['id'];}_0xe59a20['changes']=_0xe59a20['changes']['concat'](_0xa16f9);}return _0xe59a20;}['_markMarkers'](_0x3a37f9,_0x340fb9){for(let _0x1c9e80=0x0;_0x1c9e80<_0x3a37f9['length'];_0x1c9e80++)for(const [_0x871d70,_0x2b887f]of _0x340fb9)!_0x2b887f['isCollapsed']&&_0x2b887f['start']['isEqual'](_0x3a37f9[_0x1c9e80]['previousPosition'])&&_0x3a37f9[_0x1c9e80]['markersStart']['push'](_0x871d70),_0x2b887f['end']['isEqual'](_0x3a37f9[_0x1c9e80]['nextPosition'])&&_0x3a37f9[_0x1c9e80]['markersEnd']['push'](_0x871d70);}['_joinTapes'](_0x501b0d,_0x2cea95){let _0x3fd8fb=[],_0x5a9e04=0x0,_0x496770=0x0;for(;_0x5a9e04<_0x501b0d['length']||_0x496770<_0x2cea95['length'];){const _0x259792=_0x501b0d[_0x5a9e04]||{},_0x4ddbfe=_0x2cea95[_0x496770]||{};if(_0x259792['id']==_0x4ddbfe['id'])_0x5a9e04++,_0x496770++,_0x3fd8fb['push'](_0x259792);else{if(_0x4ddbfe['isRemoved']&&_0x259792['isAdded']){const {commonTape:_0x9c6b16,iEnd:_0x2a7688,jEnd:_0x142df4}=this['_threeWayMerge'](_0x501b0d,_0x5a9e04,_0x2cea95,_0x496770);_0x3fd8fb=_0x3fd8fb['concat'](_0x9c6b16),_0x5a9e04=_0x2a7688,_0x496770=_0x142df4;}else _0x4ddbfe['isRemoved']?(_0x496770++,_0x3fd8fb['push'](_0x4ddbfe)):(_0x5a9e04++,_0x3fd8fb['push'](_0x259792));}}return _0x3fd8fb;}['_markSuggestions'](_0x33e2dc,_0x5622de){const _0x2773ae=[];for(let _0x3b9e7b=0x0;_0x3b9e7b<_0x33e2dc['length'];_0x3b9e7b++){for(let _0x1e5255=0x0;_0x1e5255<_0x33e2dc[_0x3b9e7b]['markersStart']['length'];_0x1e5255++){const _0x563e88=_0x33e2dc[_0x3b9e7b]['markersStart'][_0x1e5255];if(!_0x5622de['has'](_0x563e88))continue;const {group:_0x7221b,type:_0x44c70a,authorId:_0x24dafa}=_0x2028b3(_0x563e88);'revision-suggestion'!=_0x7221b||'insertion'!=_0x44c70a&&'deletion'!=_0x44c70a||(_0x2773ae['unshift']({'type':_0x44c70a,'name':_0x563e88,'userId':_0x24dafa}),_0x33e2dc[_0x3b9e7b]['markersStart']['splice'](_0x1e5255,0x1),_0x1e5255--);}_0x3b9de9(_0x33e2dc[_0x3b9e7b]);for(let _0x3cec9a=0x0;_0x3cec9a<_0x33e2dc[_0x3b9e7b]['markersEnd']['length'];_0x3cec9a++){const _0x26ce6a=_0x33e2dc[_0x3b9e7b]['markersEnd'][_0x3cec9a];if(!_0x5622de['has'](_0x26ce6a))continue;const {group:_0x503d01,type:_0x4dc80b}=_0x2028b3(_0x26ce6a);if('revision-suggestion'!=_0x503d01||'insertion'!=_0x4dc80b&&'deletion'!=_0x4dc80b)continue;_0x33e2dc[_0x3b9e7b]['markersEnd']['splice'](_0x3cec9a,0x1),_0x3cec9a--;const _0x2cdc64=_0x2773ae['findIndex'](_0x407ecc=>_0x407ecc['name']==_0x26ce6a);_0x2cdc64>-0x1&&_0x2773ae['splice'](_0x2cdc64,0x1);}}function _0x2028b3(_0x1613bb){const _0x35d164=_0x1613bb['split'](':');return{'group':_0x35d164[0x0],'type':_0x35d164[0x1],'subType':_0x35d164['length']>=0x5?_0x35d164[0x2]:null,'id':_0x35d164['length']<0x5?_0x35d164[0x2]:_0x35d164[0x3],'authorId':_0x35d164['length']<0x5?_0x35d164[0x3]:_0x35d164[0x4],'markerCount':0x6==_0x35d164['length']?_0x35d164[0x5]:null};}function _0x3b9de9(_0x20e8a1){for(let _0x9b0993=0x0;_0x9b0993<_0x2773ae['length'];_0x9b0993++){if(_0x20e8a1['isAdded']&&'insertion'==_0x2773ae[_0x9b0993]['type']&&_0x20e8a1['isAdded']['userId']==_0x2773ae[_0x9b0993]['userId'])return _0x20e8a1['isAddSuggestion']=_0x2773ae[_0x9b0993],void delete _0x20e8a1['isAdded'];if(!_0x20e8a1['isAdded']&&!_0x20e8a1['isRemoved']&&'deletion'==_0x2773ae[_0x9b0993]['type'])return void(_0x20e8a1['isRemoveSuggestion']=_0x2773ae[_0x9b0993]);}}}['_setDistance'](_0x3e9f7b,_0x336378){let _0x478e59=0x0,_0x21be97=!0x1;const _0x58ed19=new Map();for(const _0x4127b9 of _0x3e9f7b)_0x4127b9[_0x336378]?_0x21be97&&(_0x478e59++,_0x21be97=!0x1):(_0x478e59++,_0x21be97=!0x0),_0x58ed19['set'](_0x4127b9['id'],_0x478e59);for(let _0x5cee77=0x0;_0x5cee77<_0x3e9f7b['length'];_0x5cee77++){if('isRemoved'==_0x336378&&_0x3e9f7b[_0x5cee77]['isAdded']||'isAdded'==_0x336378&&_0x3e9f7b[_0x5cee77]['isRemoved'])continue;if('text'==_0x3e9f7b[_0x5cee77]['type']){_0x3e9f7b[_0x5cee77]['distance']=0x0;continue;}const _0x30827e=_0x58ed19['get'](_0x3e9f7b[_0x5cee77]['pairId']),_0x2a3c6b=_0x58ed19['get'](_0x3e9f7b[_0x5cee77]['id']);_0x3e9f7b[_0x5cee77]['distance']=_0x30827e-_0x2a3c6b;}}['_getRevisionsRange'](_0x394c73,_0x2f74ba,_0x172d86=!0x1){const _0x29a8b2=[];let _0x1c09f6=this['repository']['getIndex'](_0x394c73),_0x2d9a76=this['repository']['getIndex'](_0x2f74ba);for(-0x1==_0x2d9a76&&(_0x2d9a76=this['repository']['_revisions']['length'],_0x172d86=!0x1);_0x1c09f6<_0x2d9a76;)_0x29a8b2['push'](this['repository']['getRevision'](_0x1c09f6)),_0x1c09f6++;return _0x172d86&&_0x29a8b2['push'](this['repository']['getRevision'](_0x1c09f6)),_0x29a8b2;}['_threeWayMerge'](_0x1b5918,_0x3f4853,_0x7bec19,_0x56380e){const _0x565a64=this['editor']['model']['schema'];let _0x3d7c8d=_0x3f4853;for(;_0x1b5918[_0x3d7c8d]&&_0x1b5918[_0x3d7c8d]['isAdded'];)_0x3d7c8d++;let _0x49a3a2=_0x56380e;for(;_0x7bec19[_0x49a3a2]&&_0x7bec19[_0x49a3a2]['isRemoved'];)_0x49a3a2++;_0x52e04c(_0x1b5918,_0x3f4853,_0x3d7c8d),_0x52e04c(_0x7bec19,_0x56380e,_0x49a3a2);const _0x436dd4=_0x7bec19['slice'](_0x56380e,_0x49a3a2)['concat'](_0x1b5918['slice'](_0x3f4853,_0x3d7c8d));return _0x436dd4['sort']((_0x4e8fb2,_0x392747)=>_0x4e8fb2['side']!=_0x392747['side']?_0x4e8fb2['side']-_0x392747['side']:_0x4e8fb2['level']!=_0x392747['level']?_0x4e8fb2['level']-_0x392747['level']:_0x4e8fb2['distance']!=_0x392747['distance']?_0x392747['distance']-_0x4e8fb2['distance']:!!_0x4e8fb2['isAdded']!=!!_0x392747['isAdded']?-0x1==_0x4e8fb2['side']||0x0==_0x4e8fb2['side']?_0x4e8fb2['isAdded']?-0x1:0x1:_0x4e8fb2['isAdded']?0x1:-0x1:_0x4e8fb2['index']-_0x392747['index']),{'commonTape':_0x436dd4,'iEnd':_0x3d7c8d,'jEnd':_0x49a3a2};function _0x52e04c(_0x501532,_0x2e6167,_0x353708){let _0x311a6a=-0x1,_0x4526e9=Number['POSITIVE_INFINITY'],_0x41f9eb=!0x0;for(let _0x352c7d=_0x2e6167;_0x352c7d<_0x353708;_0x352c7d++)if(_0x565a64['isInline'](_0x501532[_0x352c7d]['item'])||(_0x41f9eb=!0x1),_0x501532[_0x352c7d]['item']['startIndex']<_0x2e6167&&(_0x311a6a=_0x352c7d),_0x501532[_0x352c7d]['item']['endIndex']>=_0x353708){_0x4526e9=_0x352c7d;break;}_0x41f9eb&&(_0x311a6a=_0x353708-0x1);for(let _0x142c0d=_0x2e6167;_0x142c0d<_0x353708;_0x142c0d++)_0x501532[_0x142c0d]['side']=_0x142c0d<=_0x311a6a?-0x1:_0x142c0d<_0x4526e9?0x0:0x1,_0x501532[_0x142c0d]['index']=_0x142c0d;let _0x1aed43=0x0;for(let _0x10e69b=_0x2e6167;_0x10e69b<=_0x311a6a;_0x10e69b++)0x0==_0x501532[_0x10e69b]['distance']?_0x501532[_0x10e69b]['level']=_0x1aed43:(_0x1aed43++,_0x501532[_0x10e69b]['level']=_0x1aed43,_0x1aed43++);for(let _0x53453c=_0x2e6167;_0x53453c<_0x353708;_0x53453c++)0x0==_0x501532[_0x53453c]['side']&&(_0x501532[_0x53453c]['level']=_0x1aed43);_0x1aed43=0x0;for(let _0x100cc5=_0x353708-0x1;_0x100cc5>=_0x4526e9;_0x100cc5--)0x0==_0x501532[_0x100cc5]['distance']?_0x501532[_0x100cc5]['level']=_0x1aed43:(_0x1aed43--,_0x501532[_0x100cc5]['level']=_0x1aed43,_0x1aed43--);}}['_fixObsoleteTags'](_0x516d44){const _0x51fd5c=new Map(),_0x1faafc=this['editor']['model']['schema'];for(let _0x91171f=0x1;_0x91171f<_0x516d44['length'];_0x91171f++){let _0x5774dc,_0x148d08,_0x27895f;const _0x3d29e1=_0x516d44[_0x91171f],_0x14dc9a=_0x516d44[_0x91171f-0x1];if('text'==_0x3d29e1['type'])continue;if(_0x3d29e1['type']!=_0x14dc9a['type'])continue;if(!_0x1faafc['isBlock'](_0x14dc9a['item'])||_0x1faafc['isLimit'](_0x14dc9a['item']))continue;if(!_0x1faafc['isBlock'](_0x3d29e1['item'])||_0x1faafc['isLimit'](_0x3d29e1['item']))continue;if((_0x516d44[_0x91171f]['isAdded']||_0x516d44[_0x91171f]['isAddSuggestion'])&&_0x516d44[_0x91171f-0x1]['isRemoved'])_0x5774dc=_0x516d44[_0x91171f],_0x148d08=_0x516d44[_0x91171f-0x1],_0x27895f=_0x91171f-0x1;else{if(!_0x516d44[_0x91171f]['isRemoved']||!_0x516d44[_0x91171f-0x1]['isAdded']&&!_0x516d44[_0x91171f-0x1]['isAddSuggestion'])continue;_0x5774dc=_0x516d44[_0x91171f-0x1],_0x148d08=_0x516d44[_0x91171f],_0x27895f=_0x91171f;}const _0xd4a8d=_0x5774dc['level']==_0x148d08['level'],_0x5eb80f=Math['abs'](_0x5774dc['level'])<Math['abs'](_0x148d08['level'])&&0x0==_0x148d08['distance'];(_0xd4a8d||_0x5eb80f)&&(_0x51fd5c['set'](_0x148d08['id'],_0x5774dc['id']),_0x516d44['splice'](_0x27895f,0x1),_0x91171f--,_0x5774dc['isAdded']=!0x1);}for(let _0x1b1459=0x0;_0x1b1459<_0x516d44['length'];_0x1b1459++)_0x51fd5c['has'](_0x516d44[_0x1b1459]['pairId'])&&(_0x516d44[_0x1b1459]['pairId']=_0x51fd5c['get'](_0x516d44[_0x1b1459]['pairId']));}['_removeMissingPairs'](_0x3586a6){const _0x3fe2c4=new Set(_0x3586a6['map'](_0x5362d4=>_0x5362d4['id']));for(let _0x576196=0x0;_0x576196<_0x3586a6['length'];_0x576196++)_0x3fe2c4['has'](_0x3586a6[_0x576196]['pairId'])||0x0==_0x3586a6[_0x576196]['distance']||(_0x3586a6[_0x576196]['isIncorrect']=!0x0);return _0x3586a6['filter'](_0x3cfff3=>!_0x3cfff3['isIncorrect']);}['_markMismatchedRemovedTags'](_0x65ed42){const _0x1c163b=new Set();for(let _0x164187=0x0;_0x164187<_0x65ed42['length'];_0x164187++){if(_0x1c163b['has'](_0x65ed42[_0x164187]['id'])&&_0x65ed42[_0x164187]['isRemoved']&&(_0x65ed42[_0x164187]['isIncorrect']=!0x0),_0x65ed42[_0x164187]['isIncorrect'])continue;if(0x0==_0x65ed42[_0x164187]['distance'])continue;if('elementStart'!=_0x65ed42[_0x164187]['type'])continue;if(null==_0x65ed42[_0x164187]['pairId'])continue;let _0x4f4cfd=_0x164187+0x1,_0x9b448c=0x0;for(;_0x65ed42[_0x4f4cfd]['id']!=_0x65ed42[_0x164187]['pairId'];)'elementStart'==_0x65ed42[_0x4f4cfd]['type']?_0x9b448c++:'elementEnd'==_0x65ed42[_0x4f4cfd]['type']&&_0x9b448c--,_0x4f4cfd++;if(0x0!=_0x9b448c){if(_0x65ed42[_0x164187]['isRemoved'])_0x65ed42[_0x164187]['isIncorrect']=!0x0;else{for(;_0x4f4cfd!=_0x164187;)_0x65ed42[_0x4f4cfd]['isRemoved']&&0x0!=_0x65ed42[_0x4f4cfd]['distance']&&(_0x65ed42[_0x4f4cfd]['isIncorrect']=!0x0,_0x1c163b['add'](_0x65ed42[_0x4f4cfd]['pairId'])),_0x4f4cfd--;}}}return _0x65ed42['filter'](_0x585b6f=>!_0x585b6f['isIncorrect']);}['_removeUnsupportedChanges'](_0x48779e){const _0x5c04cd=this['editor']['model']['schema'];for(let _0x222954=0x0;_0x222954<_0x48779e['length'];_0x222954++){if(!(_0x48779e[_0x222954]['isAdded']||_0x48779e[_0x222954]['isAddSuggestion']||_0x48779e[_0x222954]['isRemoved']||_0x48779e[_0x222954]['isRemoveSuggestion']))continue;if(0x0==_0x48779e[_0x222954]['distance'])continue;const _0x62b4d4=_0x48779e[_0x222954]['item'];_0x5c04cd['isBlock'](_0x62b4d4)||_0x5c04cd['isLimit'](_0x62b4d4)||(_0x48779e[_0x222954]['isAdded']&&delete _0x48779e[_0x222954]['isAdded'],_0x48779e[_0x222954]['isAddSuggestion']&&delete _0x48779e[_0x222954]['isAddSuggestion'],_0x48779e[_0x222954]['isRemoveSuggestion']&&delete _0x48779e[_0x222954]['isRemoveSuggestion'],_0x48779e[_0x222954]['isRemoved']&&(_0x48779e[_0x222954]['isIncorrect']=!0x0));}return _0x48779e['filter'](_0x2b25e2=>!_0x2b25e2['isIncorrect']);}['_makeModelFromTape'](_0x2c4a29,_0x2176bb,_0xb091f8){const _0x87e5e0=new _0x6fdf77(),_0x189ab5=[],_0x557732=new Map(),_0x53fb38=this['editor']['model'],_0x5d133b=_0x53fb38['schema'],_0x2cbebb=[_0x87e5e0],_0x4a746e={},_0x3e1bf9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x51afe3=null;const _0x4959a6=[0x0];for(let _0x1ff917=0x0;_0x1ff917<_0x2c4a29['length'];_0x1ff917++)if('elementStart'===_0x2c4a29[_0x1ff917]['type']){_0x2c4a29[_0x1ff917]['previousPosition']=_0x53fb38['createPositionFromPath'](_0x87e5e0,_0x4959a6);const _0x358bf0=new _0x6df636(_0x2c4a29[_0x1ff917]['item']['name'],_0x2c4a29[_0x1ff917]['item']['getAttributes']());_0x2cbebb[0x0]['_appendChild'](_0x358bf0),_0x4959a6['push'](0x0),_0x2cbebb['unshift'](_0x358bf0),_0x2c4a29[_0x1ff917]['nextPosition']=_0x53fb38['createPositionFromPath'](_0x87e5e0,_0x4959a6);}else'elementEnd'===_0x2c4a29[_0x1ff917]['type']?(_0x2cbebb['shift'](),_0x2c4a29[_0x1ff917]['previousPosition']=_0x53fb38['createPositionFromPath'](_0x87e5e0,_0x4959a6),_0x4959a6['pop'](),_0x4959a6[_0x4959a6['length']-0x1]++,_0x2c4a29[_0x1ff917]['nextPosition']=_0x53fb38['createPositionFromPath'](_0x87e5e0,_0x4959a6)):(_0x2c4a29[_0x1ff917]['previousPosition']=_0x53fb38['createPositionFromPath'](_0x87e5e0,_0x4959a6),_0x51afe3?_0x51afe3['_data']+=_0x2c4a29[_0x1ff917]['item']['data']:_0x51afe3=new _0x4f4154(_0x2c4a29[_0x1ff917]['item']['data'],_0x2c4a29[_0x1ff917]['item']['getAttributes']()),_0x2c4a29[_0x1ff917+0x1]&&'text'===_0x2c4a29[_0x1ff917+0x1]['type']&&_0x4b4d6b(_0x51afe3,_0x2c4a29[_0x1ff917+0x1]['item'])||(_0x2cbebb[0x0]['_appendChild'](_0x51afe3),_0x51afe3=null),_0x4959a6[_0x4959a6['length']-0x1]+=_0x2c4a29[_0x1ff917]['item']['offsetSize'],_0x2c4a29[_0x1ff917]['nextPosition']=_0x53fb38['createPositionFromPath'](_0x87e5e0,_0x4959a6));for(let _0x4037fe=0x0;_0x4037fe<_0x2c4a29['length'];_0x4037fe++){const _0x5afcad=_0x2c4a29[_0x4037fe]['previousPosition'],_0x3343f1=_0x2c4a29[_0x4037fe]['nextPosition'];for(const _0x559105 of _0x2c4a29[_0x4037fe]['markersStart'])_0x557732['set'](_0x559105,{'start':_0x5afcad,'end':null});_0x13021b('isRemoveSuggestion',_0x4037fe,_0x5afcad,_0x3343f1),_0x13021b('isAddSuggestion',_0x4037fe,_0x5afcad,_0x3343f1),_0x13021b('isRemoved',_0x4037fe,_0x5afcad,_0x3343f1),_0x13021b('isAdded',_0x4037fe,_0x5afcad,_0x3343f1);for(const _0x42986a of _0x2c4a29[_0x4037fe]['markersEnd']){const _0x2bfcd1=_0x557732['get'](_0x42986a);_0x2bfcd1?_0x2bfcd1['end']=_0x3343f1:_0x557732['set'](_0x42986a,{'start':_0x3343f1,'end':_0x3343f1});}}for(const [_0xad6b05,_0x463b3d]of _0x557732){const _0x3a8476=this['editor']['model']['createRange'](_0x463b3d['start'],_0x463b3d['end']);_0x87e5e0['markers']['set'](_0xad6b05,_0x3a8476);}return _0x189ab5['sort']((_0x2e008d,_0x37c106)=>{const _0x2611f9=_0x87e5e0['markers']['get']('revision:'+_0x2e008d['id']),_0x37201c=_0x87e5e0['markers']['get']('revision:'+_0x37c106['id']);return _0x2611f9['start']['isBefore'](_0x37201c['start'])?-0x1:_0x2611f9['start']['isAfter'](_0x37201c['start'])?0x1:_0x2611f9['end']['isBefore'](_0x37201c['end'])?-0x1:_0x2611f9['end']['isAfter'](_0x37201c['end'])?0x1:'add'===_0x2e008d['type']?-0x1:0x1;}),{'root':_0x87e5e0,'changes':_0x189ab5};function _0x13021b(_0x5a4e80,_0x2a089d,_0x56dd34,_0x515a4f){const _0x85cb2f=!!_0x2c4a29[_0x2a089d][_0x5a4e80],_0x294e84=_0x85cb2f?_0x2c4a29[_0x2a089d][_0x5a4e80]['userId']:null,_0x51e049=_0x2a089d===_0x2c4a29['length']-0x1,_0x4856fa=_0x3e1bf9[_0x5a4e80][0x0],_0x5c8c96=_0x5d133b['isObject'](_0x2c4a29[_0x2a089d]['item']);!_0x4a746e[_0x5a4e80]&&_0x85cb2f?_0x4a746e[_0x5a4e80]={'start':_0x56dd34,'tapeItem':_0x2c4a29[_0x2a089d],'userId':_0x294e84,'type':_0x5a4e80}:_0x4a746e[_0x5a4e80]&&!_0x85cb2f?(_0x4a746e[_0x5a4e80]['end']=_0x56dd34,_0x23f130(_0x4a746e[_0x5a4e80]),_0x4a746e[_0x5a4e80]=null):_0x4a746e[_0x5a4e80]&&_0x85cb2f&&_0x4a746e[_0x5a4e80]['userId']!==_0x294e84&&(_0x4a746e[_0x5a4e80]['end']=_0x56dd34,_0x4856fa&&_0x4856fa['userId']===_0x4a746e[_0x5a4e80]['userId']||_0x23f130(_0x4a746e[_0x5a4e80]),_0x4a746e[_0x5a4e80]={'start':_0x56dd34,'tapeItem':_0x2c4a29[_0x2a089d],'userId':_0x294e84,'type':_0x5a4e80}),_0x4a746e[_0x5a4e80]&&_0x5c8c96&&('elementStart'!==_0x2c4a29[_0x2a089d]['type']||_0x4856fa&&_0x4856fa['userId']===_0x294e84||_0x3e1bf9[_0x5a4e80]['unshift']({'userId':_0x294e84,'object':_0x2c4a29[_0x2a089d]['item'],'change':_0x4a746e[_0x5a4e80]}),'elementEnd'===_0x2c4a29[_0x2a089d]['type']&&_0x4856fa&&_0x4856fa['object']===_0x2c4a29[_0x2a089d]['item']&&(_0x3e1bf9[_0x5a4e80]['shift'](),_0x4a746e[_0x5a4e80]=_0x4856fa['change'])),_0x4a746e[_0x5a4e80]&&_0x51e049&&(_0x4a746e[_0x5a4e80]['end']=_0x515a4f,_0x23f130(_0x4a746e[_0x5a4e80]),_0x4a746e[_0x5a4e80]=null);}function _0x23f130({start:_0x30f18b,end:_0x2aa80f,tapeItem:_0x419315,userId:_0x1d55b3,type:_0x38e59b}){const _0x286302=_0x419315['item'],_0xb47b9f=_0x53fb38['schema']['isBlock'](_0x286302)&&!_0x53fb38['schema']['isLimit'](_0x286302),_0x42470c=_0x30f18b['nodeAfter']==_0x2aa80f['parent']&&_0x2aa80f['isAtStart'];if(_0xb47b9f&&_0x42470c)return;const _0x290546=_0x53fb38['createRange'](_0x30f18b,_0x2aa80f),_0x5e1525=_0x2176bb['get'](_0x1d55b3),_0x4b26ba=new G({'author':_0x5e1525,'type':'isAdded'==_0x38e59b||'isAddSuggestion'==_0x38e59b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x38e59b||'isRemoveSuggestion'==_0x38e59b},'createdAt':new Date(),'rootName':_0xb091f8});_0x189ab5['push'](_0x4b26ba),_0x87e5e0['markers']['set']('revision:'+_0x4b26ba['id'],_0x290546);}function _0x4b4d6b(_0x462d3b,_0x36940f){const _0x299265=_0x462d3b['getAttributes'](),_0x29a436=_0x36940f['getAttributes']();for(const _0x55c936 of _0x299265){if(_0x55c936[0x1]!==_0x36940f['getAttribute'](_0x55c936[0x0]))return!0x1;_0x29a436['next']();}return _0x29a436['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42ae1e=>{const _0xe9d0c4=_0x42ae1e['markerName']['split'](':')[0x1],_0x58a14a=this['_getChangeFromId'](_0xe9d0c4);if(!_0x58a14a)return null;const _0x4b2a4d='add'==_0x58a14a['type']?'insertion':'deletion',_0xa3cb99=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4b2a4d];return _0x58a14a['data']['isSuggestion']&&_0xa3cb99['push']('ck-suggestion-marker-'+_0x4b2a4d+'-new'),this['activeChange']==_0x58a14a&&_0xa3cb99['push']('ck-suggestion-marker--active'),{'classes':_0xa3cb99,'attributes':{'data-change-id':_0xe9d0c4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xb1ad91=>{_0xb1ad91['on']('element:pre',(_0x50e194,_0x5d502b,_0x427521)=>{const _0x186d86=_0x5d502b['viewItem']['getChild'](0x0);if(!_0x186d86||!_0x186d86['is']('element','code'))return;if(!_0x427521['consumable']['consume'](_0x186d86,{'attributes':['vid_start','vid_end']}))return;const _0x53db9c=_0x5d502b['modelRange']['start']['nodeAfter'];_0x427521['writer']['setAttribute']('vid_start',_0x186d86['getAttribute']('vid_start'),_0x53db9c),_0x427521['writer']['setAttribute']('vid_end',_0x186d86['getAttribute']('vid_end'),_0x53db9c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x36fd7a=>{_0x36fd7a['on']('element',(_0x5e0517,_0x10ba65,_0x12bcd9)=>{if(!_0x12bcd9['consumable']['consume'](_0x10ba65['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x10ba65['modelRange']['isCollapsed'])return;const _0x2198a8=_0x10ba65['modelRange']['start']['nodeAfter'];_0x2198a8['hasAttribute']('vid_start')||_0x2198a8['hasAttribute']('vid')||(_0x12bcd9['writer']['setAttribute']('vid_start',_0x10ba65['viewItem']['getAttribute']('vid_start'),_0x2198a8),_0x12bcd9['writer']['setAttribute']('vid_end',_0x10ba65['viewItem']['getAttribute']('vid_end'),_0x2198a8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x461cd2=>_0x461cd2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x51df20,[,_0x1854be])=>{['vid_start','vid_end','vid']['includes'](_0x1854be)&&(_0x51df20['return']=!0x0,_0x51df20['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xa95ef6=>{_0xa95ef6['on']('attribute:vid',(_0xb3ea86,_0x2cfd16,_0x3ee537)=>{if('\x20'!=_0x2cfd16['item']['data']||_0x2cfd16['item']['parent']['maxOffset']>0x1)return;if(!_0x3ee537['consumable']['consume'](_0x2cfd16['item'],_0xb3ea86['name']))return;const _0x510438=_0x3ee537['writer'],_0x1eeeeb=_0x3ee537['mapper']['toViewRange'](_0x2cfd16['range']);_0x510438['wrap'](_0x1eeeeb,_0x510438['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3b53e3){const _0x122fbd=_0x3b53e3['plugins']['get']('RevisionViewer');return(_0x5c8bba,_0x3d6ed1,_0x56c46b)=>{const _0x4dd6cd=_0x3d6ed1['markerName']['split'](':')[0x1],_0x149cd2=_0x122fbd['_getChangeFromId'](_0x4dd6cd);if(!_0x149cd2)return null;const _0x1a7cbb='add'==_0x149cd2['type']?'split':'merge';if(!_0x56c46b['consumable']['test'](_0x3d6ed1['markerRange'],_0x5c8bba['name']))return;const _0x4f0a51=_0x3d6ed1['markerRange']['getWalker'](),_0x4b23be=_0x3d6ed1['markerRange']['start'],_0x69524=_0x3b53e3['model']['schema'];let _0x485afd=null,_0x2bb136=null,_0x3988d2=!0x1,_0x48d832=!0x1;for(const _0x24b23c of _0x4f0a51){const _0x1a82aa=_0x24b23c['item'];_0x3988d2=_0x3988d2||_0x69524['isContent'](_0x1a82aa);const _0x4512f0=_0x56c46b['mapper']['toViewElement'](_0x1a82aa);if(_0x4512f0&&_0x4512f0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x24b23c['type']&&(_0x69524['isBlock'](_0x1a82aa)&&!_0x69524['isLimit'](_0x1a82aa)&&(_0x1a82aa['nextSibling']||_0x4b23be['isAtEnd']?_0x485afd&&_0x485afd['parent']==_0x1a82aa||(_0x485afd=_0x1a82aa,_0x49252e(_0x24b23c['previousPosition']),_0x48d832=!0x0):_0x2bb136=_0x2bb136||_0x24b23c['previousPosition']));}function _0x49252e(_0x484a0a){const _0x26026a=_0x56c46b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a7cbb}),_0x13cacc=_0x56c46b['mapper']['toViewPosition'](_0x484a0a);_0x149cd2['data']['isSuggestion']&&_0x56c46b['writer']['addClass']('ck-suggestion-marker-'+_0x1a7cbb+'-new',_0x26026a),_0x122fbd['activeChange']==_0x149cd2&&_0x56c46b['writer']['addClass']('ck-suggestion-marker--active',_0x26026a),_0x56c46b['writer']['insert'](_0x13cacc,_0x26026a),_0x56c46b['mapper']['bindElementToMarker'](_0x26026a,_0x3d6ed1['markerName']);}_0x3988d2||_0x48d832||!_0x2bb136||_0x49252e(_0x2bb136);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x13f0e8,_0x32ebc7,_0x17e6a5)=>{const _0x5bd715=_0x17e6a5['mapper']['markerNameToElements'](_0x32ebc7['markerName']);if(_0x5bd715){for(const _0x258468 of _0x5bd715)(_0x258468['hasClass']('ck-suggestion-marker-split')||_0x258468['hasClass']('ck-suggestion-marker-merge'))&&(_0x17e6a5['mapper']['unbindElementFromMarkerName'](_0x258468,_0x32ebc7['markerName']),_0x17e6a5['writer']['remove'](_0x258468));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1ce64e,_0x11c182,_0x4c34c1)=>{const _0x2ba1f1=_0x11c182['markerName']['split'](':')[0x1],_0xe53d60=this['_getChangeFromId'](_0x2ba1f1);if(!_0xe53d60)return null;const _0x1a46b8='add'==_0xe53d60['type']?'split':'merge';if(_0x4c34c1['consumable']['test'](_0x11c182['markerRange'],_0x1ce64e['name']))for(const _0xacbee of _0x11c182['markerRange']['getItems']()){if(!_0xacbee['is']('element','softBreak'))continue;const _0x3a506d=_0x4c34c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a46b8}),_0x3d3079=_0x4c34c1['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xacbee));_0xe53d60['data']['isSuggestion']&&_0x4c34c1['writer']['addClass']('ck-suggestion-marker-'+_0x1a46b8+'-new',_0x3a506d),this['activeChange']==_0xe53d60&&_0x4c34c1['writer']['addClass']('ck-suggestion-marker--active',_0x3a506d),_0x4c34c1['writer']['insert'](_0x3d3079,_0x3a506d),_0x4c34c1['mapper']['bindElementToMarker'](_0x3a506d,_0x11c182['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xf8349e=>{for(const _0x5b0d59 of this['editor']['model']['document']['getRootNames']()){const _0x409161=this['editor']['model']['document']['getRoot'](_0x5b0d59),_0x1cbf80=this['editor']['editing']['view']['document']['getRoot'](_0x5b0d59);if(_0x1cbf80){const _0x216ec3=_0x409161['getAttribute']('revisionHistoryAttachChange');if(_0xf8349e['removeAttribute']('data-change-id',_0x1cbf80),_0xf8349e['removeClass']('ck-revision-history-root-add',_0x1cbf80),_0xf8349e['removeClass']('ck-revision-history-root-remove',_0x1cbf80),_0xf8349e['removeClass']('ck-revision-history-root--active',_0x1cbf80),_0x216ec3){const _0x471041=this['_getChangeFromId'](_0x216ec3);if(!_0x471041)return null;_0xf8349e['setAttribute']('data-change-id',_0x216ec3,_0x1cbf80),_0xf8349e['addClass']('ck-revision-history-root-'+_0x471041['type'],_0x1cbf80),this['activeChange']==_0x471041&&_0xf8349e['addClass']('ck-revision-history-root--active',_0x1cbf80);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x58f51b=>'revision-comment:'+_0x58f51b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x38663c=>'revision-suggestion:'+_0x38663c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x501702=>({'name':'suggestion:'+_0x501702,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4ba624=>{const _0x24fae4=_0x4ba624['markerName']['split'](':')[0x1];return'insertion'!=_0x24fae4&&'deletion'!=_0x24fae4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x24fae4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1dc7f2,_0x34268a,_0xb93ab7)=>{const _0x1eeee4=_0xb93ab7['mapper']['markerNameToElements'](_0x34268a['markerName']);if(_0x1eeee4){for(const _0x524fbe of _0x1eeee4)_0x524fbe['is']('uiElement')&&(_0xb93ab7['mapper']['unbindElementFromMarkerName'](_0x524fbe,_0x34268a['markerName']),_0xb93ab7['writer']['remove'](_0x524fbe));}},{'priority':'high'});}['_getChangeFromId'](_0x2b68b6){return this['_changeIdToChange']['get'](_0x2b68b6);}['_getViewForChange'](_0x3ec448){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3ec448),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x375a52,_0x17b39f,_0x34cfb7,_0x5ba5e)=>{_0x5ba5e&&this['_balloon']['remove'](_0x5ba5e),_0x34cfb7&&(this['_balloon']['add']({'view':_0x34cfb7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x226655=this['editor']['editing'],_0x3ed9cd=this['_getChangeFromId'](_0x34cfb7['changeId']);let _0x274c6c;if(_0x3ed9cd['data']['isOnRoot']){const _0xbdc96=_0x226655['view']['getDomRoot'](_0x3ed9cd['rootName']);_0x274c6c=Array['from'](_0xbdc96['getClientRects']());}else{const _0x53a04c=this['editor']['model']['markers']['get']('revision:'+_0x34cfb7['changeId']);_0x274c6c=Array['from'](_0x226655['mapper']['markerNameToElements'](_0x53a04c['name']))['map'](_0x21fca1=>_0x226655['view']['domConverter']['mapViewToDom'](_0x21fca1))['map'](_0x2f3e4d=>Array['from'](_0x2f3e4d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x274c6c[0x0];return _0x274c6c['find'](_0x32b07f=>_0x32b07f['top']-0x3<=this['_activeViewTarget']['y']&&_0x32b07f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x32b07f['left']-0x3<=this['_activeViewTarget']['x']&&_0x32b07f['right']+0x3>=this['_activeViewTarget']['x'])||_0x274c6c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x322f59,_0x2f43a8,_0x3e82f7,_0x2da105)=>{this['activeView']=_0x3e82f7?this['_getViewForChange'](_0x3e82f7):null,this['editor']['model']['change'](()=>{const _0x105665=this['editor']['editing'];_0x2da105&&(_0x2da105['data']['isOnRoot']?_0x105665['view']['change'](_0x2f2dea=>{_0x2f2dea['removeClass']('ck-revision-history-root--active',_0x105665['view']['document']['getRoot'](_0x2da105['rootName']));}):_0x105665['reconvertMarker']('revision:'+_0x2da105['id'])),_0x3e82f7&&(_0x3e82f7['data']['isOnRoot']?_0x105665['view']['change'](_0x3baad7=>{_0x3baad7['addClass']('ck-revision-history-root--active',_0x105665['view']['document']['getRoot'](_0x3e82f7['rootName']));}):_0x105665['reconvertMarker']('revision:'+_0x3e82f7['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x34d689,_0x75530e)=>{if(this['activeChange'])return;const _0x10a4a3=this['_findChangeIdFromDomTarget'](_0x75530e['target']),_0x46d3b8=this['_changeIdToChange']['get'](_0x10a4a3);_0x46d3b8?(this['_activeViewTarget']={'x':_0x75530e['domEvent']['x'],'y':_0x75530e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x46d3b8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x129953,_0x164f28)=>{const _0x2feb96=this['_findChangeIdFromDomTarget'](_0x164f28['target']),_0x5d4ba7=this['_changeIdToChange']['get'](_0x2feb96);_0x5d4ba7?(this['_activeViewTarget']={'x':_0x164f28['domEvent']['x'],'y':_0x164f28['domEvent']['y']},_0x5d4ba7===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5d4ba7):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5c79c2){do{const _0x114a9d=_0x5c79c2['getAttribute']('data-change-id');if(_0x114a9d)return _0x114a9d;_0x5c79c2=_0x5c79c2['parent'];}while(_0x5c79c2);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x42057e=>{for(const _0x2a4f7b of this['editor']['model']['markers'])_0x42057e['removeMarker'](_0x2a4f7b);});}}function Q(_0x343474,_0x18dd45){return(_0x189c4e,_0x16da69,_0x3c509d)=>{if(!_0x3c509d['consumable']['test'](_0x16da69['markerRange'],_0x189c4e['name']))return;const _0x3d5987=_0x16da69['markerRange']['getWalker'](),_0xa98179=_0x16da69['markerRange']['start'],_0x39dbab=_0x343474['model']['schema'];let _0x1aa0e0=null,_0x272a63=null,_0x5b0510=!0x1,_0x374c8e=!0x1;for(const _0x34aa19 of _0x3d5987){const _0x25d3fb=_0x34aa19['item'];_0x5b0510=_0x5b0510||_0x39dbab['isContent'](_0x25d3fb);const _0x124269=_0x3c509d['mapper']['toViewElement'](_0x25d3fb);if(_0x124269&&_0x124269['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x34aa19['type']&&(_0x39dbab['isBlock'](_0x25d3fb)&&!_0x39dbab['isLimit'](_0x25d3fb)&&(_0x25d3fb['nextSibling']||_0xa98179['isAtEnd']?_0x1aa0e0&&_0x1aa0e0['parent']==_0x25d3fb||(_0x1aa0e0=_0x25d3fb,_0x45d355(_0x34aa19['previousPosition']),_0x374c8e=!0x0):_0x272a63=_0x272a63||_0x34aa19['previousPosition']));}function _0x45d355(_0x33344c){const _0x5699c9=_0x3c509d['mapper']['toViewPosition'](_0x33344c),_0x4b556a=_0x3c509d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x18dd45});_0x3c509d['writer']['insert'](_0x5699c9,_0x4b556a),_0x3c509d['mapper']['bindElementToMarker'](_0x4b556a,_0x16da69['markerName']);}_0x5b0510||_0x374c8e||!_0x272a63||_0x45d355(_0x272a63);};}class nt extends _0x595b62{constructor(_0xe78ad7){super(_0xe78ad7);const _0x478471=_0xe78ad7['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x478471,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x478471,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x9afa11=this['editor'],_0x3e0621=_0x9afa11['plugins']['get'](u),_0x1a7f3a=_0x3e0621['isReady']?_0x3e0621['diff']['newRevisionId']:null;_0x9afa11['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a7f3a);}['refresh'](){const {isReady:_0x4cecf5,isEnabled:_0x3e7f45,repository:_0x162d69,diff:_0x2c4b36}=this['editor']['plugins']['get'](u),_0x44f787=_0x2c4b36&&_0x162d69['getLaterVisibleRevision'](_0x2c4b36['newRevisionId']);this['isEnabled']=_0x4cecf5&&_0x3e7f45&&Boolean(_0x44f787);}}class ot extends _0x595b62{['_step'];constructor(_0x319e7f,{direction:_0x1590a3}){super(_0x319e7f);const _0x58d841=_0x319e7f['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x1590a3?0x1:-0x1,this['listenTo'](_0x58d841,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58d841,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x58d841,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4d255e=this['editor'],_0x4e7b5e=_0x4d255e['plugins']['get'](u),{isNavigationMode:_0x40f320,currentChangeNumber:_0x1dc31e}=_0x4e7b5e;let _0x266023;if(_0x4e7b5e['activeChange']=_0x40f320?_0x4e7b5e['diff']['changes']['get'](_0x1dc31e+this['_step']):_0x4e7b5e['diff']['changes']['first'],_0x4e7b5e['activeChange']['data']['isOnRoot'])_0x266023=_0x4d255e['editing']['view']['getDomRoot'](_0x4e7b5e['activeChange']['rootName']);else{const _0x2dc54a=_0x4d255e['model']['markers']['get']('revision:'+_0x4e7b5e['activeChange']['id']);_0x266023=_0x117af5(_0x4d255e['editing'],_0x2dc54a);}_0x4bda77({'target':_0x266023,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x177213,currentChangeNumber:_0x575fb7,numberOfChanges:_0x535e8b,isReady:_0x3b8e7b,isEnabled:_0x539a07}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x539a07&&_0x3b8e7b&&_0x535e8b)&&(!_0x177213||(0x1===this['_step']?_0x575fb7<_0x535e8b-0x1:_0x575fb7>0x0));}}class pi extends _0x591820{constructor(_0x21de39){super(_0x21de39);const _0x4890ea=this['bindTemplate'],_0x5aef8e=new _0x2a9075(_0x21de39),_0x353a0c=new _0x2a9075(_0x21de39);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',(_0x1f98a3,_0x21288e)=>_0x1f98a3&&_0x21288e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x32e81b,_0x1fbe4a,_0x19eb52,_0x11036e)=>{if(!_0x32e81b)return m(_0x21de39,'Loading...');if(!_0x19eb52)return m(_0x21de39,'No\x20changes');const _0x37807a=m(_0x21de39,'NUMBER_OF_CHANGES',_0x19eb52);return _0x11036e?m(_0x21de39,'X_OF_Y_CHANGES',[_0x1fbe4a+0x1,_0x19eb52]):_0x37807a;}),_0x5aef8e['set']({'label':m(_0x21de39,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x47bac8}),_0x353a0c['set']({'label':m(_0x21de39,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2ccb4b}),_0x5aef8e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x353a0c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5aef8e['on']('execute',()=>this['fire']('execute','backward')),_0x353a0c['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',_0x4890ea['if']('_isStatusLabelVisible','ck-hidden',_0x2010ae=>!_0x2010ae)]},'children':[{'text':_0x4890ea['to']('isNavigationMode',_0x464502=>_0x464502?m(_0x21de39,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x21de39,'Total')+':\x20')}]},{'text':_0x4890ea['to']('_statusText')}]},new _0x3fe94a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5aef8e,_0x353a0c]}]});}}const ge='ck-editor__editable__loading-overlay';class fi extends _0x1f60bb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xa3fb1e=this['editor']['editing']['view'];_0xa3fb1e['change'](_0x1dfd55=>{for(const _0x2caa27 of _0xa3fb1e['document']['roots'])_0x1dfd55['addClass'](ge,_0x2caa27);});}['hide'](){const _0x1bef10=this['editor']['editing']['view'];_0x1bef10['change'](_0x4e2eae=>{for(const _0x12bccc of _0x1bef10['document']['roots'])_0x4e2eae['removeClass'](ge,_0x12bccc);});}}class v extends _0x1f60bb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,fi];}['init'](){const _0xb68704=this['editor'],_0x363fe6=_0xb68704['plugins']['get'](u),_0x5360ae=_0xb68704['plugins']['get'](fi);_0xb68704['ui']['componentFactory']['add']('exitToEditing',_0x5d9175=>{const _0x19c245=new _0x2a9075(_0x5d9175);return _0x19c245['set']({'label':m(_0x5d9175,'Back\x20to\x20editing'),'icon':_0x49774b,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x19c245,'execute',()=>{_0xb68704['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x19c245;}),_0xb68704['ui']['componentFactory']['add']('restoreRevision',_0x21c24f=>{const _0xeb1549=new _0x2a9075(_0x21c24f);return _0xeb1549['set']({'label':m(_0x21c24f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xeb1549['bind']('isEnabled')['to'](_0xb68704['commands']['get']('restoreRevision')),this['listenTo'](_0xeb1549,'execute',()=>_0xb68704['execute']('restoreRevision')),_0xeb1549;}),_0xb68704['ui']['componentFactory']['add']('changesNavigation',_0x2bb73c=>{const _0x22e155=new pi(_0x2bb73c),_0x531dec=_0xb68704['commands']['get']('showPreviousChange'),_0x397962=_0xb68704['commands']['get']('showNextChange');return _0x22e155['bind']('isBackwardNavigationEnabled')['to'](_0x531dec,'isEnabled'),_0x22e155['bind']('isForwardNavigationEnabled')['to'](_0x397962,'isEnabled'),_0x22e155['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x363fe6),this['listenTo'](_0x22e155,'execute',(_0x23d917,_0x34246b)=>{_0xb68704['execute']('forward'===_0x34246b?'showNextChange':'showPreviousChange');}),_0x22e155;}),_0x5360ae['show'](),_0x363fe6['on']('change:isReady',(_0x1f9730,_0x2b1db9,_0x183a66)=>{_0x183a66?_0x5360ae['hide']():_0x5360ae['show']();});}}class ki extends ti{['_resizeObserver']=null;constructor(_0x248537,_0x2ca2fe){super(_0x248537,_0x2ca2fe);const _0x2d0a1b=this['bindTemplate'];this['set']({'label':m(_0x248537,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x248537,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2d0a1b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x529b25=this['fieldView']['element'];this['_tooltipString']=_0x529b25['scrollWidth']>_0x529b25['clientWidth']&&_0x529b25['value']||'';}}class yi extends _0x591820{constructor(_0x5c620d,_0x44a11e,_0x1aaf9f){super(_0x5c620d);const _0x46e48a=new _0xd1188e();_0x46e48a['set']({'content':_0x10ee10,'viewBox':'0\x200\x2011\x2010'});const _0x5b4d37=['ck','ck-revision-history-sidebar__revision-author'];_0x1aaf9f&&_0x5b4d37['push']('ck-revision-history-sidebar__revision-author_creator');const _0x7deadf=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5c620d,_0x1aaf9f?'Revision\x20creator':'Revision\x20author')},'children':[_0x46e48a,_0x44a11e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5b4d37},'children':_0x7deadf});}}function ji(_0x5e4cdb,_0x42cb5a){const _0x50b09d=_0x5e4cdb['bindTemplate'],_0x1ae1f8=_0x5e4cdb['locale'],_0x249956=_0x26c648(_0x1ae1f8);_0x249956['panelPosition']='sw';const _0x9e6ff=function(_0x49ee23,_0x236b30){const _0x1895eb=function(_0x47b134,_0x39d1af){const _0x3767ec=_0x47b134['locale'],_0x5002f8={'Compare\x20against\x20selected':m(_0x3767ec,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3767ec,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3767ec,'Restore\x20this\x20revision')};return _0x39d1af['map'](_0x39d348=>{const _0x3742c1=_0x5002f8[_0x39d348['name']];return _0x3742c1&&_0x3742c1!==_0x39d348['name']&&(_0x39d348['name']=_0x3742c1),_0x39d348;});}(_0x49ee23,_0x236b30),_0x28f00e=new _0x5879da();for(const _0x410228 of _0x1895eb){const _0x4bf18f={'type':'button','model':new to({'label':_0x410228['name'],'class':_0x410228['class'],'withText':!0x0,'role':'menuitem','_action':_0x410228['action']})};_0x4bf18f['model']['bind']('isEnabled')['to'](_0x49ee23,'isActionsDropdownOpen',_0x2b4b3d=>'function'!=typeof _0x410228['isEnabled']||(!_0x2b4b3d||_0x410228['isEnabled'](_0x49ee23))),_0x28f00e['add'](_0x4bf18f);}return _0x28f00e;}(_0x5e4cdb,_0x42cb5a);return _0x5e4cdb['bind']('isActionsDropdownOpen')['to'](_0x249956,'isOpen'),_0x249956['buttonView']['set']({'label':m(_0x1ae1f8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3b657f}),_0x249956['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x50b09d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x50b09d['to'](_0x53f9e5=>_0x53f9e5['stopPropagation']())}}),_0x249956['on']('execute',_0x3caf80=>{_0x5e4cdb['isReady']&&'function'==typeof _0x3caf80['source']['_action']&&_0x3caf80['source']['_action'](_0x5e4cdb);}),_0x40f0d4(_0x249956,_0x9e6ff,{'role':'menu'}),_0x249956['listenTo'](_0x5e4cdb,'change:isActionsDropdownOpen',(_0x4eacf7,_0x2db7dc,_0x279105)=>{if(_0x279105)for(const _0x4af4e of _0x249956['listView']['items']){const _0x48905b=_0x4af4e['children']['first'],_0x2e3513=_0x42cb5a['find'](_0x216f7f=>_0x216f7f['action']===_0x48905b['_action'])['isVisible'];_0x4af4e['isVisible']=void 0x0===_0x2e3513||_0x2e3513(_0x5e4cdb);}}),_0x249956;}class ci extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x957dfc,uid as _0x26af77,Collection as _0x50ebf4,logWarning as _0x4ec8cd,FocusTracker as _0x244945,KeystrokeHandler as _0xf81dea,scrollViewportToShowTarget as _0x1bdacd,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x10c315}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x51f737,set as _0x44ec4d,unset as _0x2dc454,isEqual as _0xd36dbe}from'es-toolkit/compat';import{Plugin as _0x2059eb,PendingActions as _0x1b9898,Command as _0x5a55d6,ElementApiMixin as _0x503a7b,Editor as _0x5ee788}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x407e0f,getMarkerDomElement as _0x52dae5,ConfirmMixin as _0x3bfe03,sanitizeEditorConfig as _0x39c63c}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5d246c,ViewAttributeElement as _0x48cadb,ViewEmptyElement as _0x409c27,ViewRawElement as _0x4de875,ViewUIElement as _0x4383cd,ViewDocumentFragment as _0x346216,ViewText as _0xb752b,ViewElement as _0xf362e4,ModelElement as _0x494a98,ModelRange as _0x4a436d,ModelPosition as _0x211198,ModelDocumentFragment as _0x4b3412,ModelText as _0xd38aa6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1d31f2,IconChevronUp as _0x4f6b62,IconChevronDown as _0x226f22,IconUndo as _0x3b0c96,IconUser as _0x46a264,IconThreeVerticalDots as _0x16611b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x49441e,View as _0x308af2,submitHandler as _0x1ad748,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x5c372e,ListView as _0x54b197,ListItemView as _0x2be891,ButtonView as _0x2d83ad,MenuBarMenuView as _0x3a9c2f,MenuBarMenuListView as _0x5a1069,MenuBarMenuListItemView as _0x158c36,MenuBarMenuListItemButtonView as _0x4ec073,ContextualBalloon as _0x4a31f0,ToolbarSeparatorView as _0x15959a,IconView as _0x1b7ac4,addListToDropdown as _0x48b7ca,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x328b63,StickyPanelView as _0x3e29e8,ToolbarView as _0x54edcf,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x376c09}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x957dfc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x32ae1d){super(),this['id']=_0x32ae1d['id']||_0x26af77(),this['creator']=_0x32ae1d['creator']||null,this['authors']=_0x32ae1d['authors']||[],this['diffData']=_0x32ae1d['diffData']||null,this['toVersion']=_0x32ae1d['toVersion']||0x0,this['fromVersion']=_0x32ae1d['fromVersion']||0x0,this['set']('name',_0x32ae1d['name']||''),this['set']('createdAt',_0x32ae1d['createdAt']||new Date()),this['set']('attributes',_0x32ae1d['attributes']||{});}['setName'](_0x1b13e3){this['_update']({'name':_0x1b13e3});}['setAttribute'](_0x53ce7a,_0xd5f5ee){const _0x40b69a=_0x51f737(this['attributes']);_0x44ec4d(_0x40b69a,_0x53ce7a,_0xd5f5ee),this['_update']({'attributes':_0x40b69a});}['removeAttribute'](_0x17ca36){const _0x35618b=_0x51f737(this['attributes']);_0x2dc454(_0x35618b,_0x17ca36),this['_update']({'attributes':_0x35618b});}['_update'](_0x54ee2c,_0x15e2bb=!0x1){let _0x5cce1f=!0x1;const _0x5b2907={'id':this['id']},_0x346df4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3db64c of _0x346df4){const _0x2259ee=_0x54ee2c[_0x3db64c];void 0x0!==_0x2259ee&&_0x2259ee!==this[_0x3db64c]&&(this[_0x3db64c]=_0x2259ee,_0x5b2907[_0x3db64c]=_0x2259ee,_0x5cce1f=!0x0);}_0x5cce1f&&(_0x5b2907['authors']&&(_0x5b2907['authorsIds']=_0x5b2907['authors']['map'](_0x3dd135=>_0x3dd135['id']),delete _0x5b2907['authors']),this['fire']('_update',_0x5b2907,_0x15e2bb));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2ed7b1=>_0x2ed7b1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2059eb{['_revisions'];static get['requires'](){return[_0x407e0f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5786e6){super(_0x5786e6),this['_revisions']=new _0x50ebf4();}['afterInit'](){!async function(_0x4090fc){const _0x24822e=_0x58bd69([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x4eceb5=0xeb829,_0x4a63df=0x7374585f,_0x2db77f=0x73732e77^_0x4a63df,_0xe33ec8=window[_0x58bd69([0x44,0x61,0x74,0x65])][_0x58bd69([0x6e,0x6f,0x77])](),_0x544d1a=_0x4090fc[_0x58bd69([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35fe2a=new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528f9a=>{_0x544d1a[_0x58bd69([0x6f,0x6e,0x63,0x65])](_0x58bd69([0x72,0x65,0x61,0x64,0x79]),_0x528f9a);}),_0x1174ef={[_0x58bd69([0x6b,0x74,0x79])]:_0x58bd69([0x45,0x43]),[_0x58bd69([0x75,0x73,0x65])]:_0x58bd69([0x73,0x69,0x67]),[_0x58bd69([0x63,0x72,0x76])]:_0x58bd69([0x50,0x2d,0x32,0x35,0x36]),[_0x58bd69([0x78])]:_0x58bd69([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]),[_0x58bd69([0x79])]:_0x58bd69([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]),[_0x58bd69([0x61,0x6c,0x67])]:_0x58bd69([0x45,0x53,0x32,0x35,0x36])},_0x499c15=_0x544d1a[_0x58bd69([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58bd69([0x67,0x65,0x74])](_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x497eb4(){let _0x293e0b,_0x4fcaec=null,_0x1066a5=null;try{if(_0x499c15==_0x58bd69([0x47,0x50,0x4c]))return _0x58bd69([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x293e0b=_0x449015(),!_0x293e0b)return _0x58bd69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x293e0b[_0x58bd69([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1066a5=_0x17300e(_0x293e0b[_0x58bd69([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x293e0b[_0x58bd69([0x6a,0x74,0x69])])),await _0x20cf8f()?_0x38111b()?_0x7a65af()?_0x58bd69([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12c831()?(_0x293e0b[_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58bd69([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fcaec=_0x1e99c1(_0x58bd69([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x293e0b[_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58bd69([0x74,0x72,0x69,0x61,0x6c])&&(_0x4fcaec=_0x1e99c1(_0x58bd69([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x163422()):_0x58bd69([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58bd69([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58bd69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58bd69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7a65af(){const _0x372671=[_0x58bd69([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58bd69([0x74,0x72,0x69,0x61,0x6c])][_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293e0b[_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe33ec8/0x3e8:0xe10*_0x2db77f;return _0x293e0b[_0x58bd69([0x65,0x78,0x70])]<_0x372671;}function _0x38111b(){const _0x53f7e4=_0x293e0b[_0x58bd69([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x53f7e4)return!0x1;if(_0x53f7e4[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58bd69([0x2a])))return!0x0;if(_0x53f7e4[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58bd69([0x52,0x48])))return!0x0;if(_0x53f7e4[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58bd69([0x52,0x52,0x48]))){if(_0x80658b())return!0x0;if(_0x4194fb()||_0x58c498())return!0x0;}return!0x1;}function _0x12c831(){const _0x540f75=_0x293e0b[_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x540f75||0x0==_0x540f75[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3dafe4}=new URL(window[_0x58bd69([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x540f75[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dafe4))return!0x0;const _0x35a722=_0x3dafe4[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])](_0x58bd69([0x2e]));return _0x540f75[_0x58bd69([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f5ba8=>_0x1f5ba8[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58bd69([0x2a])))[_0x58bd69([0x6d,0x61,0x70])](_0x5daf07=>_0x5daf07[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])](_0x58bd69([0x2e])))[_0x58bd69([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e09ee=>_0x5e09ee[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35a722[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58bd69([0x6d,0x61,0x70])](_0x375bcd=>Array(_0x35a722[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x375bcd[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58bd69([0x66,0x69,0x6c,0x6c])](_0x375bcd[0x0]===_0x58bd69([0x2a])?_0x58bd69([0x2a]):'')[_0x58bd69([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x375bcd))[_0x58bd69([0x73,0x6f,0x6d,0x65])](_0x2ba916=>_0x35a722[_0x58bd69([0x65,0x76,0x65,0x72,0x79])]((_0x457eb3,_0x2c74ad)=>_0x2ba916[_0x2c74ad]===_0x457eb3||_0x2ba916[_0x2c74ad]===_0x58bd69([0x2a])));}function _0x163422(){return _0x4fcaec&&_0x1066a5?new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e8ac8,_0x2bd13e)=>{_0x4fcaec[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x1e8ac8,_0x2bd13e),_0x1066a5[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x3da9be=>{_0x3da9be!=_0x58bd69([0x56,0x61,0x6c,0x69,0x64])&&_0x1e8ac8(_0x3da9be);},_0x2bd13e);}):_0x4fcaec||_0x1066a5||_0x58bd69([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17300e(_0x36c081,_0x233ed4){return new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dbb82=>{if(_0x248e52())return _0x4dbb82(_0x58bd69([0x56,0x61,0x6c,0x69,0x64]));_0x15eb85(),_0x544d1a[_0x58bd69([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58bd69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6018bc=!0x1;const _0x44e451=_0x26af77();function _0x1e3cd1(_0x2106b0){return!!_0x2106b0&&(typeof _0x2106b0===_0x58bd69([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2106b0===_0x58bd69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2106b0[_0x58bd69([0x74,0x68,0x65,0x6e])]===_0x58bd69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2106b0[_0x58bd69([0x63,0x61,0x74,0x63,0x68])]===_0x58bd69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3658e1(_0x2b0709){_0x5a9edd(_0x2b0709)[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x9a8de2=>{if(!_0x9a8de2||_0x9a8de2[_0x58bd69([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58bd69([0x6f,0x6b]))return _0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5947b1(_0x28f394(_0x44e451+_0x233ed4))!=_0x9a8de2[_0x58bd69([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58bd69([0x56,0x61,0x6c,0x69,0x64]);})[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x27ee74=>(_0x4240cb(),_0x27ee74),()=>{const _0x27bf06=_0x291b9d();return null==_0x27bf06?(_0x4240cb(),_0x58bd69([0x56,0x61,0x6c,0x69,0x64])):_0x58bd69(_0xe33ec8-_0x27bf06>(0x5778dc5f^_0x4a63df)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x4dbb82)[_0x58bd69([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4dbb82(_0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x452341=0x7342b6df^_0x4a63df;function _0x4240cb(){const _0x3aee39=_0x58bd69([0x6c,0x6c,0x63,0x74,0x2d])+_0x5947b1(_0x28f394(_0x36c081)),_0x51db1e=_0x271a0e(_0x5947b1(window[_0x58bd69([0x4d,0x61,0x74,0x68])][_0x58bd69([0x63,0x65,0x69,0x6c])](_0xe33ec8/_0x452341)));window[_0x58bd69([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58bd69([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3aee39,_0x51db1e);}function _0x291b9d(){const _0x5c1407=_0x58bd69([0x6c,0x6c,0x63,0x74,0x2d])+_0x5947b1(_0x28f394(_0x36c081)),_0xdaa857=window[_0x58bd69([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58bd69([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c1407);return _0xdaa857?window[_0x58bd69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271a0e(_0xdaa857),0x10)*_0x452341:null;}function _0x5a9edd(_0x14bd47){return new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37ec2f,_0x539070)=>{_0x14bd47[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x37ec2f,_0x539070),window[_0x58bd69([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x539070,0x73758c9f^_0x4a63df);});}}_0x544d1a[_0x58bd69([0x6f,0x6e])](_0x58bd69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2169b1,_0x4501fb)=>{if(_0x4501fb[0x0]!=_0x36c081)return _0x4dbb82(_0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4501fb[0x1]={..._0x4501fb[0x1],[_0x58bd69([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44e451};},{[_0x58bd69([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58bd69([0x68,0x69,0x67,0x68])}),_0x544d1a[_0x58bd69([0x6f,0x6e])](_0x58bd69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xaa96fd=>{_0x1e3cd1(_0xaa96fd[_0x58bd69([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6018bc=!0x0,_0x3658e1(_0xaa96fd[_0x58bd69([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58bd69([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58bd69([0x6c,0x6f,0x77])}),_0x35fe2a[_0x58bd69([0x74,0x68,0x65,0x6e])](()=>{_0x6018bc||_0x4dbb82(_0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x248e52(){return _0x544d1a[_0x58bd69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58bd69([0x76,0x69,0x65,0x77])][_0x58bd69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58bd69([0x61,0x75,0x74,0x6f]);}function _0x15eb85(){_0x544d1a[_0x58bd69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58bd69([0x76,0x69,0x65,0x77])][_0x58bd69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58bd69([0x61,0x75,0x74,0x6f]);}}function _0x1e99c1(_0x10c9e8){const _0x5bd5d7=[new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5077f1=>setTimeout(_0x5077f1,0x737d6693^_0x4a63df)),_0x35fe2a[_0x58bd69([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d5862=>{const _0x5f0b18=0x73745858^_0x4a63df,_0x7aea88=_0x4090fc[_0x58bd69([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x35e87b(){_0x7aea88[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5f0b18&&_0x5d5862();}_0x35e87b(),_0x7aea88[_0x58bd69([0x6f,0x6e])](_0x58bd69([0x61,0x64,0x64]),_0x35e87b);})),new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17281b=>{function _0xb48edd(){for(const _0x14d81a in window)if(window[_0x58bd69([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x58bd69([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x14d81a))&&window[_0x14d81a]==_0x4eceb5)return _0x17281b();_0x544d1a[_0x58bd69([0x73,0x74,0x61,0x74,0x65])]!=_0x58bd69([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x58bd69([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb48edd,0x73744bd7^_0x4a63df);}_0x4b16d1(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xb48edd();})];return window[_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58bd69([0x72,0x61,0x63,0x65])](_0x5bd5d7)[_0x58bd69([0x74,0x68,0x65,0x6e])](()=>_0x10c9e8);}async function _0x204093(){if(await _0x35fe2a,_0x4b16d1(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x18126e=_0x4090fc[_0x58bd69([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3ff8fb=_0x4090fc[_0x58bd69([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])](_0x18126e[_0x58bd69([0x69,0x64])]),_0x372b3c=_0x3b4fe3(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x372b3c[_0x58bd69([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x18126e['id'],_0x3ff8fb?_0x3ff8fb['id']:null,!0x0),_0x372b3c[_0x58bd69([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x58bd69([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x372b3c[_0x58bd69([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x372b3c[_0x58bd69([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1b486f,void(_0x372b3c[_0x58bd69([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1b486f);}if(_0x4b16d1(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5233ff=_0x3b4fe3(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5233ff[_0x58bd69([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x58bd69([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5233ff[_0x58bd69([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5233ff[_0x58bd69([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1b486f,_0x5233ff[_0x58bd69([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1b486f;}_0x544d1a[_0x58bd69([0x6d,0x6f,0x64,0x65,0x6c])][_0x58bd69([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b486f,_0x544d1a[_0x58bd69([0x6d,0x6f,0x64,0x65,0x6c])][_0x58bd69([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b486f,_0x544d1a[_0x58bd69([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58bd69([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x80658b(){return _0x4b16d1(_0x58bd69([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b4fe3(_0x58bd69([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x58bd69([0x73,0x74,0x61,0x74,0x65])]==_0x58bd69([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4194fb(){return _0x4b16d1(_0x58bd69([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 _0x58c498(){return _0x4b16d1(_0x58bd69([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa202d7(_0x1a435b){const _0x1817d7=_0x190b17();_0x544d1a[_0x1817d7]=_0x58bd69([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])+_0x1a435b,_0x1a435b[_0x58bd69([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x58bd69([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x190b17()]=_0x4eceb5),_0x1a435b!=_0x58bd69([0x56,0x61,0x6c,0x69,0x64])&&_0x204093();}function _0x190b17(){const _0x920bd5=window[_0x58bd69([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58bd69([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58bd69([0x6e,0x6f,0x77])]())[_0x58bd69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58bd69([0x2e]),'');let _0x4af2d5=_0x58bd69([0x73]);for(let _0x3f306f=0x0;_0x3f306f<_0x920bd5[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f306f+=0x2){let _0x40e051=window[_0x58bd69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x920bd5[_0x58bd69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f306f,_0x3f306f+0x2));_0x40e051>=_0x24822e[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40e051-=_0x24822e[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4af2d5+=_0x24822e[_0x40e051];}return _0x4af2d5;}function _0x449015(){const _0x476c72=_0x499c15[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])](_0x58bd69([0x2e]));if(0x3!=_0x476c72[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a4dd0(_0x476c72[0x1]);function _0x5a4dd0(_0x4d92df){const _0x5118a6=_0x1ccdee(_0x4d92df);return _0x5118a6&&_0x30b8c7()?_0x5118a6:null;function _0x30b8c7(){const _0x23f011=_0x5118a6[_0x58bd69([0x6a,0x74,0x69])],_0x26ee9a=window[_0x58bd69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23f011[_0x58bd69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23f011[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b2e3b={..._0x5118a6,[_0x58bd69([0x6a,0x74,0x69])]:_0x23f011[_0x58bd69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23f011[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b2e3b[_0x58bd69([0x76,0x63])],_0x28f394(_0x1b2e3b)==_0x26ee9a;}}}async function _0x20cf8f(){let _0x408881=!0x0;try{const _0x2bdbf9=_0x499c15[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])](_0x58bd69([0x2e])),[_0x5a1fa6,_0x5ebd7d,_0x1b5a3a]=_0x2bdbf9;return _0x534bf8(_0x5a1fa6),await _0x531ae8(_0x5a1fa6,_0x5ebd7d,_0x1b5a3a),_0x408881;}catch{return!0x1;}function _0x534bf8(_0x4e1076){const _0x38fca8=_0x1ccdee(_0x4e1076);_0x38fca8&&_0x38fca8[_0x58bd69([0x61,0x6c,0x67])]==_0x58bd69([0x45,0x53,0x32,0x35,0x36])||(_0x408881=!0x1);}async function _0x531ae8(_0x15114c,_0x500cca,_0x3c039d){const _0x5f5d1b=window[_0x58bd69([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58bd69([0x66,0x72,0x6f,0x6d])](_0x527cd5(_0x3c039d),_0x429993=>_0x429993[_0x58bd69([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x615b56=new window[(_0x58bd69([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58bd69([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15114c+_0x58bd69([0x2e])+_0x500cca),_0x196562=window[_0x58bd69([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58bd69([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x196562)return;const _0x84c405=await _0x196562[_0x58bd69([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58bd69([0x6a,0x77,0x6b]),_0x1174ef,{[_0x58bd69([0x6e,0x61,0x6d,0x65])]:_0x58bd69([0x45,0x43,0x44,0x53,0x41]),[_0x58bd69([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58bd69([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58bd69([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x196562[_0x58bd69([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58bd69([0x6e,0x61,0x6d,0x65])]:_0x58bd69([0x45,0x43,0x44,0x53,0x41]),[_0x58bd69([0x68,0x61,0x73,0x68])]:{[_0x58bd69([0x6e,0x61,0x6d,0x65])]:_0x58bd69([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x84c405,_0x5f5d1b,_0x615b56)||(_0x408881=!0x1);}}function _0x1ccdee(_0x1b5b69){return _0x1b5b69[_0x58bd69([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58bd69([0x65,0x79]))?JSON[_0x58bd69([0x70,0x61,0x72,0x73,0x65])](_0x527cd5(_0x1b5b69)):null;}function _0x527cd5(_0x292c43){return window[_0x58bd69([0x61,0x74,0x6f,0x62])](_0x292c43[_0x58bd69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58bd69([0x2b]))[_0x58bd69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58bd69([0x2f])));}function _0x28f394(_0x575c0d){let _0x169871=0x1505;function _0x146eb2(_0x43bf53){for(let _0x31f86a=0x0;_0x31f86a<_0x43bf53[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31f86a++){const _0x5e4380=_0x43bf53[_0x58bd69([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31f86a);_0x169871=(_0x169871<<0x5)+_0x169871+_0x5e4380,_0x169871&=_0x169871;}}function _0x5d6089(_0x2184fc){Array[_0x58bd69([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2184fc)?_0x2184fc[_0x58bd69([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d6089):_0x2184fc&&typeof _0x2184fc==_0x58bd69([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58bd69([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2184fc)[_0x58bd69([0x73,0x6f,0x72,0x74])]()[_0x58bd69([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53b1bb,_0x153a82])=>{_0x146eb2(_0x53b1bb),_0x5d6089(_0x153a82);}):_0x146eb2(window[_0x58bd69([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2184fc));}return _0x5d6089(_0x575c0d),_0x169871>>>0x0;}function _0x5947b1(_0x5a2400){return _0x5a2400[_0x58bd69([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58bd69([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58bd69([0x30]));}function _0x271a0e(_0x503668){return _0x503668[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58bd69([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58bd69([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b16d1(_0x10c1ac){return _0x544d1a[_0x58bd69([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58bd69([0x68,0x61,0x73])](_0x10c1ac);}function _0x3b4fe3(_0x4b85b5){return _0x544d1a[_0x58bd69([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58bd69([0x67,0x65,0x74])](_0x4b85b5);}function _0x1b486f(){}function _0x58bd69(_0x2ad3b3){return _0x2ad3b3['map'](_0x44ce54=>String['fromCharCode'](_0x44ce54))['join']('');}_0xa202d7(await _0x497eb4());}(this);}['createRevision'](_0xd9e18f){const _0x256f1f=this['editor']['plugins']['get']('Users');return new I({'id':_0xd9e18f['id'],'name':_0xd9e18f['name'],'creator':_0xd9e18f['creatorId']?_0x256f1f['getUser'](_0xd9e18f['creatorId']):null,'diffData':_0xd9e18f['diffData']||_0xd9e18f['data'],'authors':_0xd9e18f['authorsIds']['map'](_0x40107a=>_0x256f1f['getUser'](_0x40107a)),'createdAt':new Date(_0xd9e18f['createdAt']),'attributes':_0xd9e18f['attributes'],'fromVersion':_0xd9e18f['fromVersion'],'toVersion':_0xd9e18f['toVersion']});}['addRevision'](_0x195db3,_0x55c438=0x0){this['_revisions']['add'](_0x195db3,_0x55c438);}['getRevision'](_0x195982){return this['_revisions']['get'](_0x195982);}['getRevisions'](_0x4f1572={'toJSON':!0x1}){const _0x363b7e=Array['from'](this['_revisions']);return _0x363b7e['reverse'](),_0x4f1572['toJSON']?_0x363b7e['map'](_0x11d1f6=>_0x11d1f6['toJSON']()):_0x363b7e;}['getIndex'](_0x4ff244){return this['_revisions']['getIndex'](_0x4ff244);}['getEarlierVisibleRevision'](_0x369f83){const [,_0x40cb47]=this['getRevisionsIterator'](_0x369f83,{'direction':'earlier'});return _0x40cb47;}['getLaterVisibleRevision'](_0x3c1b26){const [,_0x4a0b8b]=this['getRevisionsIterator'](_0x3c1b26,{'direction':'later'});return _0x4a0b8b;}['getRevisionsInDiff'](_0x1dc07b){const _0x376591=[];for(const _0x5bcb4b of this['getRevisionsIterator'](_0x1dc07b['newRevisionId']))if(_0x376591['push'](_0x5bcb4b),_0x5bcb4b['id']===_0x1dc07b['oldRevisionId'])break;return _0x376591;}*['getRevisionsIterator'](_0x4b60e3,{direction:_0x44623b='earlier',filter:_0x20018e=()=>!0x0}={}){const _0x530a2a='earlier'===_0x44623b?0x1:-0x1;let _0x2f1318=this['_revisions']['get'](_0x4b60e3),_0x4dfb05=this['getIndex'](_0x2f1318);for(yield _0x2f1318;_0x2f1318;){if(_0x4dfb05+=_0x530a2a,_0x2f1318=this['getRevision'](_0x4dfb05),!_0x2f1318)return;_0x20018e(_0x2f1318)&&(yield _0x2f1318);}}}class $ extends _0x2059eb{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5d246c,'c'],[_0x48cadb,'a'],[_0x409c27,'e'],[_0x4de875,'r'],[_0x4383cd,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5d246c],['a',_0x48cadb],['e',_0x409c27],['r',_0x4de875],['u',_0x4383cd]]);async['loadRevisionData'](_0x27298f,_0x39bead){if(_0x27298f['diffData']||!_0x39bead)return;const _0x39b06b=this['editor']['config']['get']('collaboration.channelId'),_0x28ec12=await _0x39bead['getRevision']({'channelId':_0x39b06b,'revisionId':_0x27298f['id']});_0x27298f['diffData']=_0x28ec12['diffData'];}['getRevisionDocumentData'](_0x21a783){const _0x15c27a={};for(const _0x3c9732 in _0x21a783['diffData']){if(_0x21a783['diffData'][_0x3c9732]['attachChange']&&!_0x21a783['diffData'][_0x3c9732]['attachChange']['isAttached'])continue;const _0x57fb57=this['_removeRevisionMarkers'](JSON['parse'](_0x21a783['diffData'][_0x3c9732]['insertions'])),_0x20928d=this['editor']['editing']['view']['document'],_0xbdee98=new _0x346216(_0x20928d,_0x57fb57['map'](_0xa3fd4d=>this['_getViewFromDiffObj'](_0xa3fd4d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x15c27a[_0x3c9732]=this['editor']['data']['processor']['toData'](_0xbdee98),this['editor']['data']['processor']['useFillerType']('default');}return _0x15c27a;}['getRevisionRootsAttributes'](_0x23e1d1){const _0x42a855={};for(const _0x1a9709 in _0x23e1d1['diffData'])_0x23e1d1['diffData'][_0x1a9709]['attachChange']&&!_0x23e1d1['diffData'][_0x1a9709]['attachChange']['isAttached']||(_0x42a855[_0x1a9709]=_0x23e1d1['diffData'][_0x1a9709]['attributesAfter']||{});return _0x42a855;}['_getTypeCharForViewElement'](_0x4b4b8e){return this['_viewClassToTypeChar']['get'](_0x4b4b8e['constructor']);}['_getViewFromDiffObj'](_0x2969be,_0x33f74a){const _0xfb0095=this['editor']['editing']['view']['document'];if('string'==typeof _0x2969be)return new _0xb752b(_0xfb0095,_0x2969be);{let _0x1a809e,_0x4cf801;_0x4cf801='u'==_0x2969be['type']||'r'==_0x2969be['type']?[]:_0x2969be['children']['map'](_0x3dba6e=>this['_getViewFromDiffObj'](_0x3dba6e,_0x33f74a));const _0x31f181=this['_typeCharToViewClass']['get'](_0x2969be['type'])||_0xf362e4,_0x4ef2f3=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1a809e=new _0x31f181(_0xfb0095,_0x2969be['name'],_0x2969be['attributes'],_0x4cf801),'u'==_0x2969be['type']&&_0x2969be['children'][0x0]){const _0x1a90be=_0x2969be['children'][0x0];if(_0x1a809e['render']=function(_0x14db9d){const _0x1063b9=_0x14db9d['createElement']('div');return _0x1063b9['innerHTML']=_0x1a90be,_0x1063b9['childNodes'][0x0];},_0x33f74a){const _0x3cc3ce=new _0x346216(_0xfb0095);_0x3cc3ce['_appendChild'](_0x1a809e);const _0x354462=Array['from'](_0x4ef2f3['viewChildrenToDom'](_0x3cc3ce,{'bind':!0x1})),_0x48fb24=_0x4ef2f3['domDocument']['createElement']('div');_0x48fb24['append'](..._0x354462),_0x1a809e=Array['from'](_0x4ef2f3['domChildrenToView'](_0x48fb24))[0x0];}}else{if('r'==_0x2969be['type']&&_0x2969be['children'][0x0]){const _0x157c72=_0x2969be['children'][0x0];if(_0x1a809e['render']=function(_0x45ae7e){_0x45ae7e['innerHTML']=_0x157c72;},_0x33f74a){const _0x1fcf4b=new _0x346216(_0xfb0095);_0x1fcf4b['_appendChild'](_0x1a809e);const _0x1b17e6=Array['from'](_0x4ef2f3['viewChildrenToDom'](_0x1fcf4b,{'bind':!0x1})),_0x5329c0=_0x4ef2f3['domDocument']['createElement']('div');_0x5329c0['append'](..._0x1b17e6);const _0x36590e=Array['from'](_0x4ef2f3['domChildrenToView'](_0x5329c0));_0x36590e['length']>0x1?_0x1a809e['_appendChild'](_0x36590e):_0x1a809e=_0x36590e[0x0];}}}if(_0x2969be['customProperties']){for(const [_0x25a7b6,_0x17cf6b]of _0x2969be['customProperties'])_0x1a809e['_setCustomProperty'](_0x25a7b6,_0x17cf6b);}const _0x4ba797=void 0x0===_0x2969be['fillerOffset']?null:_0x2969be['fillerOffset'];return null!==_0x4ba797&&(_0x1a809e['getFillerOffset']=()=>_0x4ba797),_0x1a809e;}}['_makeModelFromViewString'](_0x46da0e){const _0x46a584=JSON['parse'](_0x46da0e),_0x5a6f5d=this['editor']['editing']['view']['document'],_0x2bda25=new _0x346216(_0x5a6f5d,_0x46a584['map'](_0x424d11=>this['_getViewFromDiffObj'](_0x424d11,!0x0)));return this['editor']['data']['toModel'](_0x2bda25);}['_removeRevisionMarkers'](_0xea2c3e){return(_0xea2c3e=_0xea2c3e['filter'](_0x493910=>!_0x493910['name']||'revision-start'!==_0x493910['name']&&'revision-end'!==_0x493910['name']))['forEach'](_0x3f38ef=>{'string'!=typeof _0x3f38ef&&(_0x3f38ef['children']=this['_removeRevisionMarkers'](_0x3f38ef['children']),_0x3f38ef['attributes']=_0x3f38ef['attributes']['filter'](_0xf3c692=>!_0xf3c692[0x0]['startsWith']('data-revision-')));}),_0xea2c3e;}}function m(_0x406517,_0x2fefde,_0x21efba){const t=_0x406517['t'];switch(_0x2fefde){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'},_0x21efba);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x21efba);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x2059eb{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x407e0f,S,$,_0x1b9898];}constructor(_0x564305){super(_0x564305),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3eeca1=_0x26af77();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3eeca1},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x26609a=this['repository']['getRevision'](0x0),_0x17d3bf=_0x26609a&&null===_0x26609a['creator']?_0x26609a:null;if(this['_continueCurrentRevision']=!!_0x17d3bf&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x403a8d=this['_source']['getCurrentRevisionId'](),_0x40fc92=this['repository']['getRevision'](_0x403a8d);if(_0x40fc92)this['_startingVersion']=_0x40fc92['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2f0a5b=this['_source']['history']['_operations']['find'](_0x48d853=>!_0x48d853['_isInit']),_0x55e1e6=_0x2f0a5b?_0x2f0a5b['baseVersion']:this['_source']['history']['version'];_0x26609a?(_0x26609a['toVersion']<_0x55e1e6&&_0x26609a['_update']({'toVersion':_0x55e1e6}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x17d3bf['id'],this['_startingVersion']=_0x17d3bf['fromVersion']):(this['_startingVersion']=_0x26609a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x55e1e6,this['_continueCurrentRevision']=!0x1);}}else _0x17d3bf&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x17d3bf['toVersion'],this['editor']['model']['document']['history']['version']),_0x17d3bf['fromVersion']===_0x17d3bf['toVersion']?(0x0!==_0x17d3bf['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x17d3bf['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x17d3bf['id'],this['_startingVersion']=_0x17d3bf['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',_0x159a60=>!_0x159a60),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5440ac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cf19b;for(const _0x5cdefd in _0x5440ac){const _0x553c33=_0x5cdefd,_0x18492f=_0x5440ac[_0x553c33];if('revisionHistoryLicenseKeyValid'==_0x18492f||'revisionHistoryLicenseKeyInvalid'==_0x18492f||'revisionHistoryLicenseKeyExpired'==_0x18492f||'revisionHistoryLicenseKeyDomainLimit'==_0x18492f||'revisionHistoryLicenseKeyNotAllowed'==_0x18492f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x18492f||'revisionHistoryLicenseKeyTrialLimit'==_0x18492f||'revisionHistoryLicenseKeyUsageLimit'==_0x18492f){delete _0x5440ac[_0x553c33],_0x5cf19b=_0x18492f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5cf19b&&_0x5440ac['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5cf19b&&_0x5440ac['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5cf19b&&_0x5440ac['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5cf19b&&_0x5440ac['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5cf19b&&_0x5440ac['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5cf19b&&_0x5440ac['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5cf19b&&_0x5440ac['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4cf91f=this['repository']['getRevision'](0x0),_0x27ad86=await this['getRevisionDocumentData'](_0x4cf91f),_0x3e80d7=await this['getRevisionRootsAttributes'](_0x4cf91f);this['_replaceEditorDataWithRevisionData'](_0x27ad86,_0x3e80d7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x79f90e){this['_source']=_0x79f90e;}async['update'](){const _0x60cf9=await this['_source']['getLatestVersion']();if(_0x60cf9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x483133=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x60cf9});_0x483133['authors']=_0x483133['authorsIds']['map'](_0x23eb5d=>this['editor']['plugins']['get']('Users')['getUser'](_0x23eb5d)),this['currentRevision']['_update'](_0x483133);}}async['saveRevision'](_0x3951c3={},_0x54f867=null){const _0xce766d=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x54f867>this['currentRevision']['toVersion']&&(_0x54f867=null),null===_0x54f867&&(_0x54f867=await this['_source']['getLatestVersion']());const _0x25b79e=this['_getFromVersion'](_0x54f867),_0x41c79d=this['buildRevisionData']({'from':_0x25b79e,'to':_0x54f867});if(this['currentRevision']['toVersion']<_0x54f867){const _0x40bfe9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x54f867,'to':_0x54f867});_0x40bfe9['authors']=[],_0x40bfe9['authorsIds']=[],_0x40bfe9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x40bfe9,!0x0),delete _0x40bfe9['authors'],_0xce766d['push'](_0x40bfe9);}_0x3951c3['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3951c3['name']=_0x3951c3['name']||null,_0x3951c3['id']=_0x3951c3['id']||_0x26af77(),_0x3951c3={..._0x3951c3,..._0x41c79d};const _0x50320b=this['addRevisionData'](_0x3951c3);_0xce766d['push'](_0x3951c3);const _0x20f208=this['repository']['getIndex'](_0x50320b);if(0x0!==_0x20f208){const _0x3219f7=this['repository']['getRevision'](_0x20f208-0x1);if(_0x3219f7['fromVersion']!==_0x54f867){const _0x2db48e=this['_revisionDataBuilder']['getData'](_0x54f867,_0x3219f7['toVersion']),_0x433b39={'id':_0x3219f7['id'],'diffData':_0x2db48e['diffData'],'authorsIds':_0x2db48e['authorsIds'],'authors':_0x2db48e['authorsIds']['map'](_0x1d1103=>this['editor']['plugins']['get']('Users')['getUser'](_0x1d1103)),'fromVersion':_0x54f867};_0x3219f7===this['currentRevision']&&(_0x433b39['createdAt']=new Date(_0x3951c3['createdAt']['getTime']()+0xa)),_0x3219f7['_update'](_0x433b39,!0x0),delete _0x433b39['authors'],_0xce766d['push'](_0x433b39);}}if(this['adapter']){for(const _0x14c91e of _0xce766d)this['_bufferUpdate'](_0x14c91e['id'],_0x14c91e,!0x0);this['sendBufferedUpdates']();}return _0x50320b;}['addRevisionData'](_0x1b5e58){const _0x2da3a3=this['repository']['createRevision'](_0x1b5e58);return this['adapter']&&_0x2da3a3['on']('_update',(_0x2e07c7,_0x389ba8,_0xa8dd90)=>{_0xa8dd90||(this['_bufferUpdate'](_0x389ba8['id'],_0x389ba8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2da3a3,this['_findInsertionIndex'](_0x2da3a3)),_0x2da3a3;}async['getRevisionDocumentData'](_0x619114){return await this['_utils']['loadRevisionData'](_0x619114,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x619114);}async['getRevisionRootsAttributes'](_0x26a47a){return await this['_utils']['loadRevisionData'](_0x26a47a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x26a47a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x8090ab=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5ad553=0x0;_0x5ad553<_0x8090ab['length'];_0x5ad553++){const _0x31f4d1=_0x8090ab[_0x5ad553];let _0x3e3168=!0x1;for(const _0x1afc5b of Object['keys'](_0x31f4d1))void 0x0===_0x31f4d1[_0x1afc5b]?delete _0x31f4d1[_0x1afc5b]:'id'!==_0x1afc5b&&(_0x3e3168=!0x0);_0x3e3168||(_0x8090ab[_0x5ad553]=null);}if(_0x8090ab=_0x8090ab['filter'](_0xc9343d=>null!==_0xc9343d),!_0x8090ab['length'])return;for(let _0x17faec=0x0;_0x17faec<_0x8090ab['length'];_0x17faec++){const _0x572297=_0x8090ab[_0x17faec];void 0x0!==_0x572297['fromVersion']&&void 0x0===_0x572297['toVersion']&&(_0x572297['toVersion']=this['repository']['getRevision'](_0x572297['id'])['toVersion']),void 0x0!==_0x572297['toVersion']&&void 0x0===_0x572297['fromVersion']&&(_0x572297['fromVersion']=this['repository']['getRevision'](_0x572297['id'])['fromVersion']);}const _0x531a4a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x8090ab,_0x531a4a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4fab65=>{if(_0x4fab65){for(const _0x20e889 of _0x4fab65)this['setRevisionData']({'id':_0x20e889['id'],'createdAt':_0x20e889['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x11cde8=null,from:_0x18139e=null,to:_0x2b9ad8=null}){_0x18139e=null!==_0x18139e?_0x18139e:_0x11cde8['fromVersion'],_0x2b9ad8=null!==_0x2b9ad8?_0x2b9ad8:_0x11cde8['toVersion'];const _0x1b6b78=this['_revisionDataBuilder']['getData'](_0x18139e,_0x2b9ad8),_0x21fb8d={'diffData':_0x1b6b78['diffData'],'authorsIds':_0x1b6b78['authorsIds'],'fromVersion':_0x18139e,'toVersion':_0x2b9ad8};if(!_0x11cde8||_0x2b9ad8!==_0x11cde8['toVersion']){const _0x368d17=_0x2b9ad8-0x1,_0x41d3cb=this['_source']['history']['getOperation'](_0x368d17);_0x21fb8d['createdAt']=_0x41d3cb&&_0x41d3cb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x18139e===this['_loadedStateData']['fromVersion']){for(const _0x389037 of this['_loadedStateData']['authors'])_0x21fb8d['authorsIds']['includes'](_0x389037['id'])||_0x21fb8d['authorsIds']['push'](_0x389037['id']);}return _0x21fb8d;}['_bufferUpdate'](_0x4af33a,_0x1fbc59,_0x31d611){if(this['_bufferedUpdates']['has'](_0x4af33a)){const _0x32c759=this['_bufferedUpdates']['get'](_0x4af33a);_0x1fbc59=_0x31d611?{..._0x32c759,..._0x1fbc59}:{..._0x1fbc59,..._0x32c759};}this['_bufferedUpdates']['set'](_0x4af33a,_0x1fbc59);}['setRevisionData'](_0x2a1ecf){const _0x320f27=this['repository']['getRevision'](_0x2a1ecf['id']);if(_0x2a1ecf['createdAt']&&(_0x2a1ecf['createdAt']=new Date(_0x2a1ecf['createdAt'])),_0x2a1ecf['authorsIds']){const _0x5d0c1e=this['editor']['plugins']['get']('Users');_0x2a1ecf['authors']=_0x2a1ecf['authorsIds']['map'](_0x3156de=>_0x5d0c1e['getUser'](_0x3156de));}_0x320f27['_update'](_0x2a1ecf,!0x0);}['_createInitialRevision'](_0x48f9c2){const _0x1911ff=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1911ff)this['_initialRevisionId']=_0x1911ff['id'];else{const _0x2bb0b4=!this['editor']['model']['document']['roots']['find'](_0xb41d03=>this['editor']['model']['hasContent'](_0xb41d03)),_0xa8436a=this['editor']['plugins']['get']('Users')['me']['id'],_0x54e165=m(this['editor']['locale'],_0x2bb0b4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x48f9c2,'to':_0x48f9c2,'id':this['_initialRevisionId'],'name':_0x54e165,'creatorId':_0xa8436a});}}['_createCurrentRevision'](_0x2fb11a){const _0x13c3dc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x13c3dc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2fb11a,'to':_0x2fb11a,'id':_0x13c3dc,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x4456c2,_0x2f002c){let _0x4fce8a=this['editor']['config']['get']('initialData'),_0x191f9b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4fce8a){_0x4fce8a={};for(const _0x5d9450 of this['editor']['model']['document']['getRootNames']())_0x4fce8a[_0x5d9450]='';}if('string'==typeof _0x4fce8a&&(_0x4fce8a={'main':_0x4fce8a}),void 0x0===_0x191f9b){_0x191f9b={};for(const _0x1f2e23 of this['editor']['model']['document']['getRootNames']())_0x191f9b[_0x1f2e23]={};}let _0x5a69d6=!0x1;const _0x1d071c=Object['keys'](_0x4fce8a),_0x5185f4=Object['keys'](_0x4456c2);for(const _0xf77cac of _0x1d071c){if(_0x4fce8a[_0xf77cac]!==_0x4456c2[_0xf77cac]&&''!==_0x4fce8a[_0xf77cac]['trim']()){_0x5a69d6=!0x0;break;}if(!_0xd36dbe(_0x191f9b[_0xf77cac],_0x2f002c[_0xf77cac])&&Object['keys'](_0x191f9b[_0xf77cac])['length']>0x0){_0x5a69d6=!0x0;break;}}_0x5a69d6||(_0x5a69d6=_0x5185f4['some'](_0x3c9cc3=>!this['editor']['model']['document']['getRoot'](_0x3c9cc3))),_0x5a69d6&&_0x4ec8cd('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4fce8a,'editorRootsAttributes':_0x191f9b,'revisionData':_0x4456c2,'revisionRootsAttributes':_0x2f002c}),this['editor']['config']['set']('initialData',_0x4456c2),this['editor']['config']['set']('rootsAttributes',_0x2f002c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4f7843=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4f7843['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x34e6c9){const _0x6f476a=this['repository']['getRevisions']();_0x6f476a['reverse']();let _0x403847=0x0;for(;_0x403847<_0x6f476a['length'];){const _0x5405f0=_0x6f476a[_0x403847];if(_0x5405f0===this['currentRevision']){_0x403847++;continue;}if(_0x5405f0['id']===this['_initialRevisionId'])break;const _0x42821e=_0x34e6c9['toVersion']-_0x5405f0['toVersion']||_0x34e6c9['fromVersion']-_0x5405f0['fromVersion'];if(_0x42821e>0x0)break;if(_0x42821e<0x0)_0x403847++;else{if(!_0x34e6c9['creator']&&_0x5405f0['creator'])break;if(_0x5405f0['creator']||!_0x34e6c9['creator']){if(_0x34e6c9['createdAt']>_0x5405f0['createdAt'])break;_0x403847++;}else _0x403847++;}}return _0x403847;}['_getFromVersion'](_0x90a439){const _0x38dab0=this['repository']['getRevisions']();_0x38dab0['reverse'](),_0x38dab0['shift']();const _0x1ac9ac=_0x38dab0['find'](_0x391fe5=>_0x391fe5['toVersion']<=_0x90a439)['toVersion'];return _0x1ac9ac<this['_startingVersion']?this['_startingVersion']:_0x1ac9ac;}['_makeRevision']({name:_0x20b5a3,from:_0xe84cf8,to:_0x4c66c6,creatorId:_0x2ee89b,id:_0x5d39f2}){const _0x3cee9d=this['buildRevisionData']({'from':_0xe84cf8,'to':_0x4c66c6});_0x3cee9d['name']=_0x20b5a3,_0x3cee9d['creatorId']=_0x2ee89b,_0x3cee9d['id']=_0x5d39f2;const _0x5170fc=this['addRevisionData'](_0x3cee9d);return this['adapter']&&this['_bufferUpdate'](_0x3cee9d['id'],_0x3cee9d,!0x0),_0x5170fc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5d75f6){this['editor']=_0x5d75f6,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'](_0x24f7aa){this['source']=_0x24f7aa;const _0x2adc22=new Map(),_0x4f8fa9=new Map(),_0x5655a6=this['editor']['model']['document']['roots']['map'](_0x424350=>_0x424350['rootName']);for(const _0x4f77e3 of _0x5655a6){const _0x40c9bd=this['editor']['model']['document']['getRoot'](_0x4f77e3),_0x3a8227=x(_0x40c9bd);_0x2adc22['set'](_0x4f77e3,_0x3a8227),_0x4f8fa9['set'](_0x4f77e3,Object['fromEntries'](_0x40c9bd['getAttributes']()));}const _0x178115=Array['from'](this['editor']['model']['markers'])['map'](_0x446e6e=>[_0x446e6e['name'],_0x446e6e['getRange']()]),_0x1c8ab0=this['source']['version'];this['_saveMetaData'](_0x1c8ab0,_0x2adc22,_0x178115,_0x4f8fa9),this['_startingRevisionId']=this['_revisionId'];const _0x5272cb=new Map(),_0x960ef5=new Map();for(const _0x27566c of _0x5655a6){const _0x4cfffc=N(_0x27566c);_0x5272cb['set'](_0x27566c,_0x4cfffc),_0x960ef5['set'](_0x27566c,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5272cb,[],_0x960ef5);}['getData'](_0x1c5117,_0x3c5283){if(this['_lastFrom']===_0x1c5117&&this['_lastTo']<=_0x3c5283)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3c5283,!0x0);else{if(!this['_savedMetaData']['has'](_0x1c5117)){const _0x30d840=this['_getPreviousFrom'](_0x1c5117);this['_calculateMetaData'](_0x30d840,_0x1c5117,!0x1);}this['_calculateMetaData'](_0x1c5117,_0x3c5283,!0x0);}return this['_lastFrom']=_0x1c5117,this['_lastTo']=_0x3c5283,this['_getState']();}['loadState'](_0x50554b){if(!this['_savedMetaData']['has'](_0x50554b['fromVersion'])){const _0x2bd328=this['_getPreviousFrom'](_0x50554b['fromVersion']);this['_calculateMetaData'](_0x2bd328,_0x50554b['fromVersion'],!0x1);}this['_calculateMetaData'](_0x50554b['fromVersion'],_0x50554b['toVersion'],!0x1);const _0x3bacc3=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x50554b['fromVersion'],this['_lastTo']=_0x50554b['toVersion'];for(const _0x36fddb in _0x50554b['diffData']){const _0x1752f1=_0x50554b['diffData'][_0x36fddb]['attachChange'],_0x2c4a4e=_0x51f737(_0x50554b['diffData'][_0x36fddb]['attributesBefore'])||{},_0x2cc8fb=_0x3bacc3['_makeModelFromViewString'](_0x50554b['diffData'][_0x36fddb]['deletions']);_0x2cc8fb['rootName']=_0x36fddb,_0x2cc8fb['_isAttached']=!_0x1752f1||!_0x1752f1['isAttached'],_0x2cc8fb['isAttached']=()=>_0x2cc8fb['_isAttached'],this['_baseRoots']['set'](_0x36fddb,_0x2cc8fb),this['_baseRootsAttributes']['set'](_0x36fddb,_0x2c4a4e),_0x1752f1&&this['_touchedRoots']['set'](_0x36fddb,_0x1752f1);const _0x478996=this['_makeIdsRoot'](_0x2cc8fb);this['_baseIdsRoots']['set'](_0x36fddb,_0x478996);for(const [_0x409ea4,_0x5e3152]of _0x2cc8fb['markers']){if(!_0x409ea4['startsWith']('revision:'))continue;const _0x228f1a=_0x409ea4['split'](':')[0x2];for(const _0x22bc77 of _0x5e3152['getWalker']({'singleCharacters':!0x0})){const _0x1e3958=this['_getVidAttributeName'](_0x22bc77),_0xe7bf15='elementEnd'==_0x22bc77['type']?_0x22bc77['previousPosition']['path']['slice'](0x0,-0x1):_0x22bc77['previousPosition']['path'],_0xc45c4d=_0x478996['getNodeByPath'](_0xe7bf15)['getAttribute'](_0x1e3958);this['_touched']['set'](_0xc45c4d,{'userId':_0x228f1a});}_0x2cc8fb['markers']['delete'](_0x409ea4);}}this['_startingRevisionId']=this['_revisionId'];const _0x3e5d11=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x372d05=>!this['_touched']['has'](_0x372d05));let _0xec753f=0x0;const _0x5d93a6=new Map();for(const _0x204818 in _0x50554b['diffData']){const _0x28d6e3=_0x50554b['diffData'][_0x204818]['attachChange'],_0x3e7bcc=_0x51f737(_0x50554b['diffData'][_0x204818]['attributesAfter'])||{},_0x1ddc7e=_0x3bacc3['_makeModelFromViewString'](_0x50554b['diffData'][_0x204818]['insertions']);_0x1ddc7e['rootName']=_0x204818,_0x1ddc7e['_isAttached']=!_0x28d6e3||_0x28d6e3['isAttached'],_0x1ddc7e['isAttached']=()=>_0x1ddc7e['_isAttached'],this['_diffRoots']['set'](_0x204818,_0x1ddc7e),this['_diffRootsAttributes']['set'](_0x204818,_0x3e7bcc);const _0xedba88=this['_makeIdsRoot'](_0x1ddc7e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x204818,_0xedba88),_0x5d93a6['set'](_0x204818,_0x1ddc7e['isAttached']()?_0x3e7bcc:{});for(const [_0x3e727f,_0x56c7fa]of _0x1ddc7e['markers']){if(!_0x3e727f['startsWith']('revision:'))continue;const _0x29e6b7=_0x3e727f['split'](':')[0x2];for(const _0x411651 of _0x56c7fa['getWalker']({'singleCharacters':!0x0})){const _0x813546=this['_getVidAttributeName'](_0x411651),_0x3cf740=this['_revisionId']++,_0x28954f='elementEnd'==_0x411651['type']?_0x411651['previousPosition']['path']['slice'](0x0,-0x1):_0x411651['previousPosition']['path'];_0xedba88['getNodeByPath'](_0x28954f)['_setAttribute'](_0x813546,_0x3cf740),this['_touched']['set'](_0x3cf740,{'userId':_0x29e6b7});}_0x1ddc7e['markers']['delete'](_0x3e727f);}for(const _0x37ea00 of this['editor']['model']['createRangeIn'](_0x1ddc7e)['getWalker']({'singleCharacters':!0x0})){const _0x1a8855=this['_getVidAttributeName'](_0x37ea00),_0x4d3f49='elementEnd'==_0x37ea00['type']?_0x37ea00['previousPosition']['path']['slice'](0x0,-0x1):_0x37ea00['previousPosition']['path'],_0x5e1c2a=_0xedba88['getNodeByPath'](_0x4d3f49);_0x5e1c2a['getAttribute'](_0x1a8855)>0x0||_0x5e1c2a['_setAttribute'](_0x1a8855,_0x3e5d11[_0xec753f++]);}for(const [_0x5e7f4d,_0x106fab]of _0x1ddc7e['markers'])_0x5e7f4d['startsWith']('revision:')||this['_markers']['set'](_0x5e7f4d,_0x106fab);}const {roots:_0x32e544}=this['_savedMetaData']['get'](_0x50554b['fromVersion']),{roots:_0x35032f}=this['_savedMetaData']['get'](_0x50554b['toVersion']),_0x1b22cc=x(_0x32e544['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x1b22cc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1b22cc,Number['NEGATIVE_INFINITY']));const _0x2180a3=x(_0x35032f['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x2180a3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2180a3));const _0xe2c32b=Array['from'](this['_diffRoots'])['map'](([_0x1d093e,_0x2ba8d6])=>[_0x1d093e,x(_0x2ba8d6)]);this['_saveMetaData'](this['_lastTo'],_0xe2c32b,this['_markers'],_0x5d93a6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3220e5,_0x559e04,_0x578439,_0x43d5e1){const _0x3b64bb=new Map(_0x559e04),_0x1beff9=new Map(_0x51f737(_0x43d5e1)),_0x466050=new Map();for(const [_0x2119aa,_0x54627f]of _0x578439)_0x466050['set'](_0x2119aa,{'start':_0x54627f['start']['clone'](),'end':_0x54627f['end']['clone'](),'rootName':_0x54627f['root']['rootName']});this['_savedMetaData']['set'](_0x3220e5,{'roots':_0x3b64bb,'markers':_0x466050,'rootsAttributes':_0x1beff9});}['_removeMetaData'](_0x377d8a){this['_savedMetaData']['delete'](_0x377d8a);}['_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'](_0x46d702,_0x4f614e=null){let _0xbaf8f7=null;_0x46d702['is']('documentFragment')||(_0xbaf8f7=new _0x494a98(_0x46d702['name'],{'vid_start':null===_0x4f614e?this['_revisionId']++:_0x4f614e++}));const _0x38a504=[];for(const _0x1e453f of _0x46d702['getChildren']())if(_0x1e453f['is']('element')){_0x38a504['push'](this['_makeIdsRoot'](_0x1e453f,_0x4f614e));const _0x16d01b=_0x38a504[_0x38a504['length']-0x1];null!==_0x4f614e&&(_0x4f614e=_0x16d01b['is']('element','$text')?_0x16d01b['getAttribute']('vid')+0x1:_0x16d01b['getAttribute']('vid_end')+0x1);}else{for(let _0x296bdc=0x0;_0x296bdc<_0x1e453f['offsetSize'];_0x296bdc++)_0x38a504['push'](new _0x494a98('$text',{'vid':null===_0x4f614e?this['_revisionId']++:_0x4f614e++}));}if(_0x46d702['is']('documentFragment')){const _0x3affb9=N(_0x46d702['rootName']);return _0x3affb9['_insertChild'](0x0,_0x38a504),_0x3affb9;}return _0xbaf8f7['_setAttribute']('vid_end',null===_0x4f614e?this['_revisionId']++:_0x4f614e++),_0xbaf8f7['_insertChild'](0x0,_0x38a504),_0xbaf8f7;}['_calculateMetaData'](_0x4b6562,_0x102e0c,_0x3a4cfd){this['_reset']();const {roots:_0x3fb24b,markers:_0x2cab8a,rootsAttributes:_0x56e098}=this['_savedMetaData']['get'](_0x4b6562);this['_baseRoots']=new Map(_0x3fb24b),this['_baseRootsAttributes']=new Map(_0x51f737(_0x56e098));for(const [_0x4f3cfe,_0x3cd3bf]of this['_baseRoots'])if('$graveyard'!==_0x4f3cfe&&(this['_diffRoots']['set'](_0x4f3cfe,x(_0x3cd3bf)),this['_diffRootsAttributes']=new Map(_0x51f737(_0x56e098)),_0x3a4cfd)){const _0x359ca2=this['_revisionId'];this['_idsRoots']['set'](_0x4f3cfe,this['_makeIdsRoot'](_0x3cd3bf)),this['_baseIdsRoots']['set'](_0x4f3cfe,this['_makeIdsRoot'](_0x3cd3bf,_0x359ca2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3a4cfd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4d5804,_0x1e63d3]of _0x2cab8a){const _0x5558d8=this['_baseRoots']['get'](_0x1e63d3['rootName']),_0x217aaf=this['_diffRoots']['get'](_0x1e63d3['rootName']),_0x3dc39c=new _0x4a436d(this['_fixPosition'](_0x1e63d3['start'],_0x5558d8),this['_fixPosition'](_0x1e63d3['end'],_0x5558d8)),_0x449d08=this['_fixRange'](_0x3dc39c,_0x217aaf);_0x5558d8['markers']['set'](_0x4d5804,_0x3dc39c),this['_markers']['set'](_0x4d5804,_0x449d08);}this['_applyOperations'](_0x4b6562,_0x102e0c,_0x3a4cfd);}['_applyOperations'](_0xd537aa,_0x2bf1e1,_0x33290b){for(const _0x5a1a22 of this['source']['getOperations'](_0xd537aa,_0x2bf1e1))this['_handleOperation'](_0x5a1a22,_0x33290b);for(const _0x26ba5e of this['_diffRoots']['values']())_0x26ba5e['markers']['clear']();for(const [_0x28b986,_0x22ec16]of this['_markers']){this['_diffRoots']['get'](_0x22ec16['root']['rootName'])['markers']['set'](_0x28b986,_0x22ec16['clone']());}const _0x51405b=new Map(),_0x313d27=new Map();for(const [_0x9def0a,_0x3b70ce]of this['_diffRoots'])_0x51405b['set'](_0x9def0a,x(_0x3b70ce)),_0x313d27['set'](_0x9def0a,this['_diffRootsAttributes']['get'](_0x9def0a));this['_saveMetaData'](_0x2bf1e1,_0x51405b,this['_markers'],_0x313d27);}['_getPreviousFrom'](_0x2e7a69){const _0x449e1d=Array['from'](this['_savedMetaData']['keys']());_0x449e1d['sort']((_0x2f634d,_0x509727)=>_0x2f634d-_0x509727),_0x449e1d['reverse']();for(const _0x185939 of _0x449e1d)if(_0x185939<_0x2e7a69)return _0x185939;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5aa4a4,_0x54d2dc){const _0x1726c0=Array['from'](_0x54d2dc['markers'])['map'](([_0x55467e,_0x76eb4a])=>[_0x55467e,this['_fixRange'](_0x76eb4a,_0x5aa4a4)]);_0x5aa4a4['markers']=new Map(_0x1726c0);}['_transformMarkers'](_0x2dd3a8){for(const _0x35176b of this['_markers']['values']()){const _0x378195=_0x35176b['getTransformedByOperation'](_0x2dd3a8),_0x1b480d=_0x4a436d['_createFromRanges'](_0x378195);_0x35176b['start']=_0x1b480d['start'],_0x35176b['end']=_0x1b480d['end'];}}['_handleOperation'](_0x345b19,_0x322967){if('addRoot'!=_0x345b19['type']&&'detachRoot'!=_0x345b19['type']){if('insert'==_0x345b19['type']){const _0x2b6f98=_0x345b19['position']['root']['rootName'];this['_diffRoots']['has'](_0x2b6f98)||(this['_diffRoots']['set'](_0x2b6f98,N(_0x2b6f98,!0x0)),this['_diffRootsAttributes']['set'](_0x2b6f98,{}),_0x322967&&this['_idsRoots']['set'](_0x2b6f98,N(_0x2b6f98,!0x0)));}else{if('addRootAttribute'==_0x345b19['type']||'removeRootAttribute'==_0x345b19['type']||'changeRootAttribute'==_0x345b19['type'])return void this['_handleRootAttributeOperation'](_0x345b19);'marker'==_0x345b19['type']&&this['_handleMarkerOperation'](_0x345b19);}if('marker'!==_0x345b19['type']){const _0x5204cc=this['_cloneOperation'](_0x345b19,this['_diffRoots']);_0x5204cc['_execute'](),this['_transformMarkers'](_0x5204cc);}if(_0x322967)switch(_0x345b19['type']){case'insert':this['_handleInsertOperation'](_0x345b19);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x345b19);break;case'merge':this['_handleMergeOperation'](_0x345b19);break;case'split':this['_handleSplitOperation'](_0x345b19);}}else this['_handleRootOperation'](_0x345b19,_0x322967);}['_cloneOperation'](_0x42699b,_0x2a5933){const _0x115052=_0x42699b['clone']();return _0x115052['_authorId']=_0x42699b['_authorId'],this['_fixOperation'](_0x115052,_0x2a5933),_0x115052;}['_getBaseVids'](_0x146ff2){return _0x146ff2['map'](_0xe07b86=>{const _0x5d0d8=this['_getVidAttributeName'](_0xe07b86);return Number(_0xe07b86['item']['getAttribute'](_0x5d0d8));});}['_generateTape'](_0x7fa53e,_0x3f0c8a){if(_0x7fa53e['is']('element','$text'))_0x3f0c8a['push']({'item':_0x7fa53e,'type':'text'});else{_0x7fa53e['is']('element')&&_0x3f0c8a['push']({'item':_0x7fa53e,'type':'elementStart'});for(const _0x298b57 of _0x7fa53e['getChildren']())this['_generateTape'](_0x298b57,_0x3f0c8a);_0x7fa53e['is']('element')&&_0x3f0c8a['push']({'item':_0x7fa53e,'type':'elementEnd'});}return _0x3f0c8a;}['_getState'](){const _0x3ab091=new Map(this['_touched']),_0x36a962=new Map(_0x3ab091),_0x33d50c=new Map(),_0x472a54={'insertions':{},'deletions':{}},_0x3c8a5f={'insertions':{},'deletions':{}},_0x1ce526=new Map(),_0x53f52c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x53f52c['delete']('$graveyard');for(const _0x5b8208 of _0x53f52c){const _0x420274=this['_diffRoots']['get'](_0x5b8208)||N(_0x5b8208,!0x1),_0x3d1712=this['_baseRoots']['get'](_0x5b8208)||N(_0x5b8208,!0x1);_0x420274['isAttached']()||_0x3d1712['isAttached']()?(_0x472a54['insertions'][_0x5b8208]=x(_0x420274),_0x472a54['deletions'][_0x5b8208]=x(_0x3d1712),this['_copyMarkers'](_0x472a54['deletions'][_0x5b8208],_0x3d1712),this['_copyMarkers'](_0x472a54['insertions'][_0x5b8208],_0x420274),_0x3c8a5f['insertions'][_0x5b8208]=this['_generateTape'](this['_idsRoots']['get'](_0x5b8208),[]),_0x3c8a5f['deletions'][_0x5b8208]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5b8208)||N(_0x5b8208,!0x1),[])):_0x53f52c['delete'](_0x5b8208);}for(const _0x6b0160 of _0x53f52c){const _0x2c857f=_0x3c8a5f['insertions'][_0x6b0160];for(const _0x3a0be0 of _0x2c857f){const _0x1cf75c=this['_getVidAttributeName'](_0x3a0be0),_0x252b6f=_0x3a0be0['item']['getAttribute'](_0x1cf75c);_0x36a962['delete'](_0x252b6f),_0x252b6f>=this['_startingRevisionId']&&_0x33d50c['set'](_0x252b6f,_0x3ab091['get'](_0x252b6f));}}for(const _0x5f4b1a of _0x53f52c){const _0xb40a21=_0x3c8a5f['insertions'][_0x5f4b1a],_0x36b16d=this['_getBaseVids'](_0x3c8a5f['deletions'][_0x5f4b1a]);let _0x553874=0x0;for(const _0x3ae699 of _0xb40a21){const _0x2d87b2=this['_getVidAttributeName'](_0x3ae699),_0x113f94=_0x3ae699['item']['getAttribute'](_0x2d87b2);if(!_0x33d50c['has'](_0x113f94)&&!_0x1ce526['has'](_0x113f94)){if(_0x36a962['has'](_0x113f94))_0x553874++;else{if(_0x113f94!=_0x36b16d[_0x553874]){const _0x30e7ee=_0x3ab091['get'](_0x113f94)||_0x3ab091['get'](_0x36b16d[_0x553874]);for(;_0x113f94!=_0x36b16d[_0x553874];)_0x36a962['has'](_0x36b16d[_0x553874])||(_0x1ce526['set'](_0x36b16d[_0x553874],_0x30e7ee),_0x3ab091['set'](_0x36b16d[_0x553874],_0x30e7ee)),_0x553874++;}_0x553874++;}}}}for(const _0x142b59 of _0x53f52c){const _0x44cfbf=_0x3c8a5f['insertions'][_0x142b59];for(const _0x4d6ee2 of _0x44cfbf){const _0x3bd865=this['_getVidAttributeName'](_0x4d6ee2),_0x317f51=_0x4d6ee2['item']['getAttribute'](_0x3bd865);if(_0x1ce526['has'](_0x317f51)){const _0x327f23=_0x1ce526['get'](_0x317f51);_0x36a962['has'](_0x317f51)||_0x36a962['set'](_0x317f51,{..._0x327f23}),_0x33d50c['set'](_0x317f51,{..._0x327f23});}}}for(const _0x477553 of _0x36a962['keys']())_0x477553>=this['_startingRevisionId']&&_0x36a962['delete'](_0x477553);const _0x35940b=new Map();for(const _0x53a2e3 of _0x53f52c){let _0x568049=_0x3c8a5f['insertions'][_0x53a2e3];for(const _0x4053c3 of _0x568049)if(_0x4053c3['item']['is']('element','tableCell')){const _0x15824e=this['_getVidAttributeName'](_0x4053c3),_0x2ace32=_0x4053c3['item']['getAttribute'](_0x15824e);if(_0x33d50c['has'](_0x2ace32)){const _0x2584d7=_0x4053c3['item']['parent']['parent']['getAttribute']('vid_start'),_0x83ff6d=_0x35940b['get'](_0x2584d7)||new Set();_0x83ff6d['add'](_0x33d50c['get'](_0x2ace32)['userId']),_0x35940b['set'](_0x2584d7,_0x83ff6d);}}_0x568049=_0x3c8a5f['deletions'][_0x53a2e3];for(const _0x1e143c of _0x568049)if(_0x1e143c['item']['is']('element','tableCell')){const _0x3bff28=this['_getVidAttributeName'](_0x1e143c),_0xba7ef1=_0x1e143c['item']['getAttribute'](_0x3bff28);if(_0x36a962['has'](_0xba7ef1)){const _0x182e50=_0x1e143c['item']['parent']['parent']['getAttribute']('vid_start'),_0x5a35e8=_0x35940b['get'](_0x182e50)||new Set();_0x5a35e8['add'](_0x36a962['get'](_0xba7ef1)['userId']),_0x35940b['set'](_0x182e50,_0x5a35e8);}}for(const _0xfecbca of _0x35940b['keys']())(_0x33d50c['has'](_0xfecbca)||_0x36a962['has'](_0xfecbca))&&_0x35940b['delete'](_0xfecbca);}for(const _0xcd5801 of _0x53f52c){const _0x1caf76=_0x3c8a5f['insertions'][_0xcd5801];let _0x155435=null,_0x3937d8=null;for(const _0x4ef22c of _0x1caf76){const _0x4049fb=this['_getVidAttributeName'](_0x4ef22c),_0x16c352=_0x4ef22c['item']['getAttribute'](_0x4049fb),_0x384810=_0x35940b['get'](_0x16c352);_0x384810&&'elementStart'==_0x4ef22c['type']&&(_0x155435=Array['from'](_0x384810)[0x0],_0x3937d8=_0x4ef22c['item']['getAttribute']('vid_end')),_0x155435&&(_0x36a962['set'](_0x16c352,{'userId':_0x155435}),_0x33d50c['set'](_0x16c352,{'userId':_0x155435})),_0x16c352==_0x3937d8&&(_0x155435=null,_0x3937d8=null);}}const _0x2ecf57={},_0x5e9c3=new Set();for(const _0x44f42f of _0x53f52c){const _0x47c88a=_0x472a54['deletions'][_0x44f42f],_0x406671=_0x472a54['insertions'][_0x44f42f];for(const {userId:_0x1a69c9}of this['_touchedMarkers']['values']())null!==_0x1a69c9&&_0x5e9c3['add'](_0x1a69c9);for(const {userId:_0x41a336}of this['_touchedRoots']['values']())null!==_0x41a336&&_0x5e9c3['add'](_0x41a336);this['_markChanges'](_0x406671,_0x3c8a5f['insertions'][_0x44f42f],_0x33d50c,'insertion',_0x5e9c3),this['_markChanges'](_0x47c88a,_0x3c8a5f['deletions'][_0x44f42f],_0x36a962,'deletion',_0x5e9c3),_0x2ecf57[_0x44f42f]={'insertions':this['_prepareViewToSave'](_0x406671),'deletions':this['_prepareViewToSave'](_0x47c88a),'attachChange':this['_touchedRoots']['get'](_0x44f42f)||null,'attributesBefore':_0x51f737(this['_baseRootsAttributes']['get'](_0x44f42f))||{},'attributesAfter':_0x51f737(this['_diffRootsAttributes']['get'](_0x44f42f))};}return{'diffData':_0x2ecf57,'authorsIds':Array['from'](_0x5e9c3)};}['_processRootBeforeSave'](_0x5c6749){for(const [,_0x3f87d4]of _0x5c6749['markers']){const _0x55baa0=_0x3f87d4['start']['getAncestors']()['filter'](_0x15c60c=>'tableCell'==_0x15c60c['name']);for(const _0x565ac4 of _0x55baa0)0x1==_0x565ac4['childCount']&&_0x565ac4['getChild'](0x0)['is']('element','paragraph')&&_0x565ac4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x416006){this['_processRootBeforeSave'](_0x416006);const _0x540b42=this['editor']['data']['toView'](_0x416006,{}),_0x2f547b=Array['from'](_0x540b42['getChildren']())['map'](_0x3a9c4c=>this['_getViewJson'](_0x3a9c4c));return JSON['stringify'](_0x2f547b);}['_getViewJson'](_0x20ace8){if(_0x20ace8['is']('$text'))return _0x20ace8['data'];{const _0x49ee38=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x83ee2d=_0x20ace8,_0x33a361=this['editor']['data']['htmlProcessor']['domConverter'],_0x39b70c={'type':_0x49ee38['_getTypeCharForViewElement'](_0x83ee2d),'name':_0x83ee2d['name'],'attributes':Array['from'](_0x83ee2d['getAttributes']()),'children':Array['from'](_0x83ee2d['getChildren']())['map'](_0xbb51f3=>this['_getViewJson'](_0xbb51f3))};if(_0x20ace8['is']('uiElement')&&'$comment'!=_0x20ace8['name']){const _0x22e9df=_0x20ace8['render'](_0x33a361['domDocument'],_0x33a361);_0x39b70c['children']['push'](_0x22e9df['outerHTML']);}else{if(_0x20ace8['is']('rawElement')){const _0x51f172=_0x33a361['domDocument']['createElement'](_0x83ee2d['name']);_0x20ace8['render'](_0x51f172,_0x33a361),_0x39b70c['children']['push'](_0x51f172['innerHTML']);}}const _0x4b678f=Array['from'](_0x83ee2d['getCustomProperties']());_0x4b678f['length']>0x0&&(_0x39b70c['customProperties']=_0x4b678f);const _0x3686c5=_0x83ee2d['getFillerOffset']();return null!==_0x3686c5&&(_0x39b70c['fillerOffset']=_0x3686c5),_0x39b70c;}}['_markChanges'](_0xa951f7,_0x301ed6,_0x56f3b1,_0x1408e7,_0x9e9d67){let _0x5b6421=null,_0x1926ce=null,_0x509030=0x0;const _0x3373ea=this['editor']['model'];for(let _0x28b6ee=0x0;_0x28b6ee<_0x301ed6['length'];_0x28b6ee++){const _0x5b1ba3=this['_getVidAttributeName'](_0x301ed6[_0x28b6ee]),_0x569531=_0x301ed6[_0x28b6ee]['item']['getAttribute'](_0x5b1ba3),_0x363fcb=_0x56f3b1['get'](_0x569531),_0x3afb2e=_0x28b6ee==_0x301ed6['length']-0x1;(!_0x5b6421&&_0x363fcb&&(_0x5b6421=_0x363fcb,_0x1926ce=_0x301ed6[_0x28b6ee]),_0x5b6421&&(!_0x363fcb||_0x363fcb['userId']!=_0x5b6421['userId']))&&(_0x403aef(_0x363fcb,P(_0x1926ce,_0xa951f7,_0x3373ea),P(_0x301ed6[_0x28b6ee],_0xa951f7,_0x3373ea)),_0x5b6421=_0x363fcb||null,_0x1926ce=_0x363fcb?_0x301ed6[_0x28b6ee]:null),_0x5b6421&&_0x3afb2e&&_0x403aef(_0x363fcb,P(_0x1926ce,_0xa951f7,_0x3373ea),V(_0x301ed6[_0x28b6ee],_0xa951f7,_0x3373ea));}function _0x403aef(_0xe41c94,_0x1775b5,_0x366047){const _0x21ced1=_0x5b6421['userId'],_0x4d2d86='revision:'+_0x1408e7+':'+_0x21ced1+':'+_0x509030++,_0x31f850=_0x3373ea['createRange'](_0x1775b5,_0x366047);_0xa951f7['markers']['set'](_0x4d2d86,_0x31f850),null!==_0x21ced1&&_0x9e9d67['add'](_0x21ced1);}}['_getVidAttributeName'](_0x10d0bd){switch(_0x10d0bd['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x8a361e,_0x485ae8){_0x8a361e['baseVersion']=null;for(const _0x4e1d8c in _0x8a361e){const _0x2adfaf=_0x8a361e[_0x4e1d8c];if(_0x2adfaf instanceof _0x211198){const _0x2bccb4=_0x485ae8['get'](_0x2adfaf['root']['rootName']);_0x8a361e[_0x4e1d8c]=this['_fixPosition'](_0x2adfaf,_0x2bccb4);}if(_0x2adfaf instanceof _0x4a436d){const _0x4a6c10=_0x485ae8['get'](_0x2adfaf['root']['rootName']);_0x8a361e[_0x4e1d8c]=this['_fixRange'](_0x2adfaf,_0x4a6c10);}'root'===_0x4e1d8c&&(_0x8a361e['root']=_0x485ae8['get'](_0x8a361e['root']['rootName']));}}['_fixRange'](_0x1a9648,_0x3311e7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1a9648['start'],_0x3311e7),this['_fixPosition'](_0x1a9648['end'],_0x3311e7));}['_fixPosition'](_0x1abe3c,_0x269aa6){return this['editor']['model']['createPositionFromPath'](_0x269aa6,_0x1abe3c['path'],_0x1abe3c['stickiness']);}['_handleInsertOperation'](_0x1406d4){const _0x65814c=this['_idsRoots']['get'](_0x1406d4['position']['root']['rootName']),_0x1187fb=this['_fixPosition'](_0x1406d4['position'],_0x65814c),_0x40ec41=null===_0x1406d4['_authorId']?null:_0x1406d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ad58f=_0x1187fb['parent'],_0x23d847=this['_revisionId'],_0x346830=[];for(const _0x5f518a of _0x1406d4['nodes'])if(_0x5f518a['is']('element'))_0x346830['push'](this['_makeIdsRoot'](_0x5f518a));else{for(let _0x6bfe52=0x0;_0x6bfe52<_0x5f518a['offsetSize'];_0x6bfe52++)_0x346830['push'](new _0x494a98('$text',{'vid':this['_revisionId']++}));}const _0x30223f=this['_revisionId'];for(let _0xb5696=_0x23d847;_0xb5696<_0x30223f;_0xb5696++)this['_touched']['set'](_0xb5696,{'userId':_0x40ec41});_0x5ad58f['_insertChild'](_0x1187fb['offset'],_0x346830);}['_handleMoveOperation'](_0x432027){(_0x432027=this['_cloneOperation'](_0x432027,this['_idsRoots']))['_execute']();const _0x310d1c=null===_0x432027['_authorId']?null:_0x432027['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a58f8=_0x432027['getMovedRangeStart'](),_0x3687b7=_0x2a58f8['parent'],_0x4c9c4d=_0x2a58f8['offset'];!function _0x5319b2(_0x20ad26,_0x1bd69d,_0x4396f0,_0x2e4f00){for(let _0x2be9af=_0x4396f0;_0x2be9af<_0x2e4f00;_0x2be9af++){const _0x1b8e64=_0x1bd69d['getChild'](_0x2be9af);_0x1b8e64['is']('element','$text')?_0x20ad26['set'](_0x1b8e64['getAttribute']('vid'),{'userId':_0x310d1c}):(_0x20ad26['set'](_0x1b8e64['getAttribute']('vid_start'),{'userId':_0x310d1c}),_0x5319b2(_0x20ad26,_0x1b8e64,0x0,_0x1b8e64['childCount']),_0x20ad26['set'](_0x1b8e64['getAttribute']('vid_end'),{'userId':_0x310d1c}));}}(this['_touched'],_0x3687b7,_0x4c9c4d,_0x4c9c4d+_0x432027['howMany']);}['_handleMergeOperation'](_0x4f42e1){const _0x4ec333=null===(_0x4f42e1=this['_cloneOperation'](_0x4f42e1,this['_idsRoots']))['_authorId']?null:_0x4f42e1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x179019=_0x4f42e1['targetPosition']['parent'],_0x54922a=_0x4f42e1['sourcePosition']['parent'],_0x1e0696=_0x179019['getAttribute']('vid_end'),_0x1bcd62=_0x54922a['getAttribute']('vid_start');_0x179019['_setAttribute']('vid_end',_0x54922a['getAttribute']('vid_end')),_0x54922a['_setAttribute']('vid_end',_0x1e0696),this['_touched']['set'](_0x1bcd62,{'userId':_0x4ec333}),this['_touched']['set'](_0x1e0696,{'userId':_0x4ec333}),_0x4f42e1['_execute']();}['_handleSplitOperation'](_0x538633){const _0x4a56a7=null===(_0x538633=this['_cloneOperation'](_0x538633,this['_idsRoots']))['_authorId']?null:_0x538633['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24ac81=_0x538633['graveyardPosition'],_0x321c63=_0x538633['splitPosition']['parent'];_0x538633['_execute']();const _0x920e05=_0x321c63['getAttribute']('vid_end'),_0x1adb72=_0x538633['insertionPosition']['nodeAfter'];if(_0x24ac81){const _0x45975f=_0x1adb72['getAttribute']('vid_end'),_0x3bee7d=_0x321c63['getAttribute']('vid_end');_0x321c63['_setAttribute']('vid_end',_0x45975f),_0x1adb72['_setAttribute']('vid_end',_0x3bee7d),this['_touched']['set'](_0x321c63['getAttribute']('vid_end'),{'userId':_0x4a56a7}),this['_touched']['set'](_0x1adb72['getAttribute']('vid_start'),{'userId':_0x4a56a7});}else{const _0x540ea5=this['_revisionId']++,_0x128e19=this['_revisionId']++;_0x321c63['_setAttribute']('vid_end',_0x540ea5),_0x1adb72['_setAttribute']('vid_start',_0x128e19),_0x1adb72['_setAttribute']('vid_end',_0x920e05),this['_touched']['set'](_0x540ea5,{'userId':_0x4a56a7}),this['_touched']['set'](_0x128e19,{'userId':_0x4a56a7});}}['_handleMarkerOperation'](_0x95ee50){if(!_0x95ee50['affectsData'])return;const _0x35240d=(_0x95ee50=this['_cloneOperation'](_0x95ee50,this['_diffRoots']))['oldRange']?_0x95ee50['oldRange']['root']:null,_0x3bd650=_0x95ee50['newRange']?_0x95ee50['newRange']['root']:null;_0x35240d&&this['_markers']['delete'](_0x95ee50['name']),_0x3bd650&&this['_markers']['set'](_0x95ee50['name'],_0x95ee50['newRange']['clone']());const _0x112fa2=null===_0x95ee50['_authorId']?null:_0x95ee50['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x206b43=_0x95ee50['name'];if(!this['_touchedMarkers']['has'](_0x206b43))return void this['_touchedMarkers']['set'](_0x206b43,{'range':_0x95ee50['oldRange'],'userId':_0x112fa2});const _0x149522=this['_touchedMarkers']['get'](_0x206b43),_0x3327ae=_0x149522['range'],_0x5add98=_0x95ee50['newRange'];null==_0x3327ae&&null==_0x5add98||_0x3327ae&&_0x5add98&&_0x3327ae['isEqual'](_0x5add98)?this['_touchedMarkers']['delete'](_0x95ee50['name']):_0x149522['userId']=_0x112fa2;}['_handleRootOperation'](_0x48aa67,_0x61af5d){this['_diffRoots']['has'](_0x48aa67['rootName'])?this['_diffRoots']['get'](_0x48aa67['rootName'])['_isAttached']=_0x48aa67['isAdd']:(this['_diffRoots']['set'](_0x48aa67['rootName'],N(_0x48aa67['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x48aa67['rootName'],{}),_0x61af5d&&this['_idsRoots']['set'](_0x48aa67['rootName'],N(_0x48aa67['rootName'],!0x0)));const _0x49c01b=null===_0x48aa67['_authorId']?null:_0x48aa67['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18b016=this['_touchedRoots']['get'](_0x48aa67['rootName']);_0x18b016&&_0x18b016['userId']===_0x49c01b?this['_touchedRoots']['delete'](_0x48aa67['rootName']):this['_touchedRoots']['set'](_0x48aa67['rootName'],{'userId':_0x49c01b,'isAttached':_0x48aa67['isAdd']});}['_handleRootAttributeOperation'](_0x4df1cb){const _0xdfd5b9=this['_diffRootsAttributes']['get'](_0x4df1cb['root']['rootName']);null===_0x4df1cb['newValue']?delete _0xdfd5b9[_0x4df1cb['key']]:_0xdfd5b9[_0x4df1cb['key']]=_0x4df1cb['newValue'];}}function x(_0x52c7b8){const _0x3db963=N(_0x52c7b8['rootName'],_0x52c7b8['isAttached']());for(const _0x3107fd of _0x52c7b8['getChildren']()){const _0xab2614=_0x3107fd['_clone'](!0x0);_0x3db963['_appendChild'](_0xab2614);}return _0x3db963;}function N(_0x573d9d,_0x29eb34=!0x0){const _0x1e72ac=new _0x4b3412();return _0x1e72ac['rootName']=_0x573d9d,_0x1e72ac['_isAttached']=_0x29eb34,_0x1e72ac['isAttached']=()=>_0x1e72ac['_isAttached'],_0x1e72ac;}function P(_0x521bd2,_0x2d1f7a,_0x558d70){const _0x3a11b4='elementEnd'==_0x521bd2['type']?_0x558d70['createPositionAt'](_0x521bd2['item'],'end'):_0x558d70['createPositionBefore'](_0x521bd2['item']);return _0x558d70['createPositionFromPath'](_0x2d1f7a,_0x3a11b4['path'],_0x3a11b4['stickiness']);}function V(_0x23572d,_0x3f26c7,_0x7991bb){const _0x528303='elementStart'==_0x23572d['type']?_0x7991bb['createPositionAt'](_0x23572d['item'],0x0):_0x7991bb['createPositionAfter'](_0x23572d['item']);return _0x7991bb['createPositionFromPath'](_0x3f26c7,_0x528303['path'],_0x528303['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x49441e(_0x308af2){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x532d34,_0x31b136){super(_0x532d34),this['focusTracker']=new _0x244945(),this['keystrokes']=new _0xf81dea(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x31b136),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x1ad748({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x32c70c=_0x1218cc=>_0x1218cc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x32c70c),this['keystrokes']['set']('arrowleft',_0x32c70c),this['keystrokes']['set']('arrowup',_0x32c70c),this['keystrokes']['set']('arrowdown',_0x32c70c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3e952c){this['revisionNameInputView']['fieldView']['element']['value']=_0x3e952c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3884a4){const _0x2f179f=new et(this['locale'],ti),_0x1884c6=_0x2f179f['fieldView'];_0x1884c6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x332e1c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3884a4&&(_0x332e1c+='\x20('+m(this['locale'],'optional')+')'),(_0x2f179f['label']=_0x332e1c,_0x1884c6['on']('input',()=>{this['revisionNameInputValue']=_0x1884c6['element']['value']['trim']();}),_0x2f179f);}}class l extends _0x2059eb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x4b23f0=this['editor'],_0x1f56ca=_0x4b23f0['plugins']['get']('RevisionTracker');_0x4b23f0['ui']['componentFactory']['add']('revisionHistory',_0x4973ea=>{const _0x492f04=_0x5c372e(_0x4973ea),_0x27abb3=_0x492f04['panelView']['children'],_0x1d0cd6=new _0x54b197(_0x4973ea),_0x227f33=new _0x2be891(_0x4973ea),_0x2da08d=new _0x2d83ad(_0x4973ea),_0x49d16c=new _0x2be891(_0x4973ea),_0x56f49c=new _0x2d83ad(_0x4973ea);return _0x492f04['bind']('isEnabled')['to'](_0x1f56ca,'isReady',_0x1f56ca,'isEnabled',_0x4b23f0,'isReadOnly',(_0x19b21c,_0x455428,_0x5187f1)=>_0x19b21c&&_0x455428&&!_0x5187f1),_0x492f04['buttonView']['set']({'icon':_0x1d31f2,'label':m(_0x4973ea,'Revision\x20history'),'tooltip':!0x0}),_0x2da08d['set']({'label':m(_0x4973ea,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2da08d['bind']('isEnabled')['to'](_0x1f56ca,'isReady',_0x1f56ca,'isEnabled',_0x4b23f0,'isReadOnly',(_0x2d5219,_0x2c5d8b,_0x1e2996)=>_0x2d5219&&_0x2c5d8b&&!_0x1e2996),_0x2da08d['on']('execute',()=>this['_showDialog']()),_0x56f49c['set']({'label':m(_0x4973ea,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x56f49c['bind']('isEnabled')['to'](_0x1f56ca,'isReady',_0x4b23f0,'isReadOnly',(_0x47674d,_0x14584a)=>_0x47674d&&!_0x14584a),_0x56f49c['on']('execute',()=>{_0x4b23f0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x492f04['isOpen']=!0x1,_0x4b23f0['editing']['view']['focus']();}),_0x227f33['children']['add'](_0x2da08d),_0x49d16c['children']['add'](_0x56f49c),_0x1d0cd6['role']='menu',_0x1d0cd6['items']['addMany']([_0x227f33,_0x49d16c]),_0x27abb3['add'](_0x1d0cd6),_0x492f04;}),_0x4b23f0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3bebfc=this['editor'],_0x386bb2=_0x3bebfc['locale'],_0xb17c79=new _0x3a9c2f(_0x386bb2),_0x31786c=new _0x5a1069(_0x386bb2);_0xb17c79['buttonView']['set']({'icon':_0x1d31f2,'label':m(_0x386bb2,'Revision\x20history')});const _0x5534fa=new _0x158c36(_0x386bb2,_0xb17c79),_0x1bf65c=new _0x4ec073(_0x386bb2);_0x1bf65c['set']({'label':m(_0x386bb2,'Save\x20current\x20revision')}),_0x1bf65c['delegate']('execute')['to'](_0xb17c79),_0x1bf65c['on']('execute',()=>{this['_showDialog']();}),_0x5534fa['children']['add'](_0x1bf65c),_0x31786c['items']['add'](_0x5534fa);const _0xe683f9=new _0x158c36(_0x386bb2,_0xb17c79),_0x2abb9f=new _0x4ec073(_0x386bb2);return _0x2abb9f['set']({'label':m(_0x386bb2,'Open\x20revision\x20history')}),_0x2abb9f['delegate']('execute')['to'](_0xb17c79),_0x2abb9f['on']('execute',()=>{_0x3bebfc['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xe683f9['children']['add'](_0x2abb9f),_0x31786c['items']['add'](_0xe683f9),_0xb17c79['panelView']['children']['add'](_0x31786c),_0xb17c79;}['_showDialog'](){const _0x303c3d=this['editor'],_0x1b42ae=_0x303c3d['locale'],_0x48a6ec=_0x303c3d['plugins']['get']('Dialog'),_0xfa92b9=_0x303c3d['plugins']['get']('RevisionTracker');function _0x4fdec6(_0x3b366b){_0x303c3d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3b366b['revisionName']?_0x3b366b['revisionNameInputView']['errorText']=m(_0x1b42ae,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x303c3d['plugins']['get'](h)['saveRevision']({'name':_0x3b366b['revisionName']}),_0x48a6ec['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4fdec6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x48a6ec['show']({'id':'revisionSave','title':m(_0x1b42ae,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x303c3d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x48a6ec['hide']()},{'label':m(_0x303c3d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2a724d){_0x2a724d['bind']('isEnabled')['to'](_0xfa92b9,'isReady',_0xfa92b9,'isEnabled',_0x303c3d,'isReadOnly',(_0x1206a4,_0x3681bb,_0x1d3a66)=>_0x1206a4&&_0x3681bb&&!_0x1d3a66);},'onExecute':()=>_0x4fdec6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1f29c8=this['editor'],_0x521e86=_0x1f29c8['locale'];this['_saveRevisionFormView']=new me(_0x521e86,_0x1f29c8['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x308af2{['changeId'];['_model'];constructor(_0x2c2ffc,_0x73244){super(_0x2c2ffc),this['_model']=_0x73244,this['changeId']=_0x73244['id'];const _0x10584c=this['bindTemplate'],_0xdba839=m(_0x2c2ffc,_0x73244['data']['isSuggestion']?'Suggested\x20by':'add'==_0x73244['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x73244['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x10584c['to']('type',_0x310709=>'ck-revision-change__'+_0x310709)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xdba839}]},{'text':'\x20'+_0x73244['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x957dfc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5c385c){super(),this['id']=_0x5c385c['id']||_0x26af77(),this['author']=_0x5c385c['author'],this['type']=_0x5c385c['type'],this['data']=_0x5c385c['data']||{},this['rootName']=_0x5c385c['rootName'],this['set']('createdAt',_0x5c385c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x271802,_0x35849c){this['newRevisionId']=_0x271802,this['oldRevisionId']=_0x35849c,this['changes']=new _0x50ebf4();}['_setChanges'](_0x49b971){for(const _0x148cfa of _0x49b971)this['changes']['add'](_0x148cfa);}}class u extends _0x2059eb{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x407e0f,_0x4a31f0,S,$];}constructor(_0xe6f245){super(_0xe6f245),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x34a3f4,_0x153aea,_0x4bf5ec)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x585138=>{for(const _0x75d0a6 of this['editor']['editing']['view']['document']['roots'])_0x4bf5ec?_0x585138['removeClass']('ck-editor__editable__overlay',_0x75d0a6):_0x585138['addClass']('ck-editor__editable__overlay',_0x75d0a6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4cdb8b=>null!==_0x4cdb8b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3474e0,_0x236207,_0x62b85c)=>_0x3474e0&&_0x62b85c?_0x236207['changes']['getIndex'](_0x62b85c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x153290,_0x41213d)=>_0x153290?_0x41213d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4a31f0);}['init'](){const _0x11e340=this['editor'],_0x357e67=new rt(_0x11e340,{'direction':'backward'}),_0x5e2bdd=new rt(_0x11e340,{'direction':'forward'});(_0x11e340['commands']['add']('showPreviousChange',_0x357e67),_0x11e340['commands']['add']('showNextChange',_0x5e2bdd),_0x11e340['commands']['add']('restoreRevision',new nt(_0x11e340)),this['on']('change:numberOfChanges',()=>{_0x357e67['refresh'](),_0x5e2bdd['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x11e340['enableReadOnlyMode']('revision-viewer'),_0x11e340['plugins']['has']('WidgetToolbarRepository'))&&_0x11e340['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x594439){return await this['_utils']['loadRevisionData'](_0x594439,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x594439);}async['getRevisionRootsAttributes'](_0xe426ae){return await this['_utils']['loadRevisionData'](_0xe426ae,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xe426ae);}async['compare'](_0x22a496,_0x470954,_0x38a7b6=!0x1){if(!this['isEnabled'])return;const _0x2c0691=this['diff'],_0x2ac73e=this['repository'],_0x414c59='string'==typeof _0x22a496?_0x2ac73e['getRevision'](_0x22a496):_0x22a496,_0x42b8d0='string'==typeof _0x470954?_0x2ac73e['getRevision'](_0x470954):_0x470954,_0x378ac6=_0x414c59['id'],_0xa8bf21=_0x42b8d0?_0x42b8d0['id']:null;if(!_0x38a7b6&&this['diff']&&this['diff']['newRevisionId']===_0x378ac6&&this['diff']['oldRevisionId']===_0xa8bf21)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x378ac6,_0xa8bf21);const _0x418a0b=this['_getRevisionsRange'](_0x414c59,_0x42b8d0,!0x0)['map'](_0xc5f206=>this['_utils']['loadRevisionData'](_0xc5f206,this['adapter']));return _0x418a0b['push'](new Promise(_0x4f3151=>{setTimeout(_0x4f3151,0x14);})),Promise['all'](_0x418a0b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x246fae=this['_getDiff'](_0x378ac6,_0xa8bf21);for(const _0x5e293b of _0x246fae['changes'])this['_changeIdToChange']['set'](_0x5e293b['id'],_0x5e293b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3ad3ff=>{for(const _0x366b87 of this['editor']['model']['document']['getRootNames']())_0x3ad3ff['detachRoot'](_0x366b87);for(const _0x45eb7c of Object['keys'](_0x246fae['model'])){const _0x13ccb5=_0x3ad3ff['addRoot'](_0x45eb7c);for(const _0x16fbb9 of Object['keys'](_0x246fae['attributes'][_0x45eb7c]))_0x3ad3ff['setAttribute'](_0x16fbb9,_0x246fae['attributes'][_0x45eb7c][_0x16fbb9],_0x13ccb5);_0x3ad3ff['insert'](_0x246fae['model'][_0x45eb7c],_0x13ccb5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x246fae['changes'])),this['isReady']=!0x0;})['catch'](_0x39cfb8=>{console['error'](_0x39cfb8),this['_cleanUp'](),_0x2c0691&&(this['diff']=_0x2c0691),this['isReady']=!0x0;});}['addRevisionData'](_0x13a4fe,_0x183a2f){const _0x1589f3=this['repository']['createRevision'](_0x13a4fe);return _0x1589f3['on']('_update',(_0x2acd1e,_0x3560bf,_0xbed15e)=>_0x183a2f(_0x3560bf,_0xbed15e,_0x1589f3)),this['repository']['addRevision'](_0x1589f3),_0x1589f3;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x893eac=>{for(const _0x12ec68 of this['editor']['model']['document']['getRootNames']())_0x893eac['detachRoot'](_0x12ec68);});}['_sortAndFilterDiffChanges'](_0x396363){const _0x4d1c6a=[],_0x15a52b=new Map();for(const _0x3915e7 of this['editor']['model']['document']['getRootNames']()){const _0x31e42b=this['editor']['editing']['view']['getDomRoot'](_0x3915e7);if(!_0x31e42b)continue;const _0x3d2361=_0x31e42b['getClientRects']()['item'](0x0);_0x3d2361&&(_0x4d1c6a['push'](_0x3915e7),_0x15a52b['set'](_0x3915e7,_0x3d2361));}return _0x4d1c6a['sort']((_0x228533,_0x5bed1b)=>{const _0x3f259c=_0x15a52b['get'](_0x228533),_0x326f0e=_0x15a52b['get'](_0x5bed1b);return _0x3f259c['y']-_0x326f0e['y']||_0x3f259c['x']-_0x326f0e['x'];}),(_0x396363=_0x396363['filter'](_0x398b9f=>_0x4d1c6a['includes'](_0x398b9f['rootName'])))['sort']((_0x30d6eb,_0x2fa180)=>_0x4d1c6a['indexOf'](_0x30d6eb['rootName'])-_0x4d1c6a['indexOf'](_0x2fa180['rootName'])),_0x396363;}['_makeTape'](_0x7ffff5){const _0x5d17a3=Array['from'](_0x7ffff5['markers'])['filter'](([_0x74fb0c,_0x35e592])=>_0x74fb0c['startsWith']('revision:')&&!_0x35e592['isCollapsed']),_0x480fc0=Array['from'](this['editor']['model']['createRangeIn'](_0x7ffff5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5d17a3['length'])for(const _0x29af9a of _0x480fc0){const [_0x1730c7,_0x26260a]=_0x5d17a3[0x0],[,_0x1df2de,_0x15cc54]=_0x1730c7['split'](':');if(_0x26260a['end']['isEqual'](_0x29af9a['nextPosition'])&&_0x5d17a3['shift'](),(_0x29af9a['previousPosition']['isEqual'](_0x26260a['start'])||_0x29af9a['previousPosition']['isAfter'](_0x26260a['start']))&&('insertion'==_0x1df2de?_0x29af9a['isAdded']={'userId':_0x15cc54}:'deletion'==_0x1df2de&&(_0x29af9a['isRemoved']={'userId':_0x15cc54})),0x0==_0x5d17a3['length'])break;}return _0x480fc0;}['_refreshStartEndIndex'](_0x2285c4){const _0x82ea79=new Map();for(let _0x180006=0x0;_0x180006<_0x2285c4['length'];_0x180006++)'text'===_0x2285c4[_0x180006]['type']?(_0x2285c4[_0x180006]['item']['startIndex']=_0x180006,_0x2285c4[_0x180006]['item']['endIndex']=_0x180006):('elementStart'===_0x2285c4[_0x180006]['type']?_0x2285c4[_0x180006]['item']['startIndex']=_0x180006:'elementEnd'===_0x2285c4[_0x180006]['type']&&(_0x2285c4[_0x180006]['item']['endIndex']=_0x180006),_0x82ea79['set'](_0x2285c4[_0x180006]['id'],_0x180006));for(const _0x211d21 of _0x82ea79['values']())'elementStart'===_0x2285c4[_0x211d21]['type']?_0x2285c4[_0x211d21]['item']['endIndex']=_0x82ea79['get'](_0x2285c4[_0x211d21]['pairId']):'elementEnd'===_0x2285c4[_0x211d21]['type']&&(_0x2285c4[_0x211d21]['item']['startIndex']=_0x82ea79['get'](_0x2285c4[_0x211d21]['pairId']));}['_processTape'](_0xed15e7){for(let _0x36f53e=0x0;_0x36f53e<_0xed15e7['length'];_0x36f53e++){if('elementStart'===_0xed15e7[_0x36f53e]['type'])_0xed15e7[_0x36f53e]['item']['startIndex']=_0x36f53e;else{if('elementEnd'===_0xed15e7[_0x36f53e]['type']){_0xed15e7[_0x36f53e]['item']['endIndex']=_0x36f53e;const _0x57253b=_0xed15e7[_0x36f53e]['item']['startIndex'];_0xed15e7[_0x57253b]['pairId']=_0xed15e7[_0x36f53e]['id'],_0xed15e7[_0x36f53e]['pairId']=_0xed15e7[_0x57253b]['id'];}else _0xed15e7[_0x36f53e]['item']['startIndex']=_0x36f53e,_0xed15e7[_0x36f53e]['item']['endIndex']=_0x36f53e,_0xed15e7[_0x36f53e]['pairId']=null;}_0xed15e7[_0x36f53e]['markersStart']||(_0xed15e7[_0x36f53e]['markersStart']=[],_0xed15e7[_0x36f53e]['markersEnd']=[]);}}['_markInsertions'](_0x27b46c,_0x1fc5f7){const _0x216f5c=_0x27b46c['filter'](_0x2443db=>!_0x2443db['isAdded']);for(let _0x171070=0x0;_0x171070<_0x1fc5f7['length'];_0x171070++)_0x1fc5f7[_0x171070]['isAdded']&&(_0x216f5c[_0x171070]['isAdded']=_0x1fc5f7[_0x171070]['isAdded']);}['_getDiff'](_0x3b0949,_0x42d77b=null){const _0x409c91=this['repository']['getRevision'](_0x3b0949),_0x2ba34b=_0x42d77b?this['repository']['getRevision'](_0x42d77b):null,_0xc8dbd5=this['_getRevisionsRange'](_0x409c91,_0x2ba34b),_0x359b1c=_0xc8dbd5[_0xc8dbd5['length']-0x1],_0x4674f2=new Map(),_0x21e2a1={'model':{},'attributes':{},'changes':[]},_0x3ef480=new Set(),_0x517c1d=new Map();for(let _0x12e9b5=_0xc8dbd5['length']-0x1;_0x12e9b5>=0x0;_0x12e9b5--){const _0x3c8947=_0xc8dbd5[_0x12e9b5];for(const _0x2fea5a of Object['keys'](_0x3c8947['diffData']))if(_0x3c8947['diffData'][_0x2fea5a]['attachChange']){const _0x22d74f=_0x3c8947['diffData'][_0x2fea5a]['attachChange'];_0x22d74f['isAttached']?(_0x3ef480['add'](_0x2fea5a),_0x517c1d['has'](_0x2fea5a)&&_0x517c1d['get'](_0x2fea5a)['userId']==_0x22d74f['userId']?_0x517c1d['delete'](_0x2fea5a):_0x517c1d['set'](_0x2fea5a,_0x22d74f)):_0x517c1d['has'](_0x2fea5a)?(_0x3ef480['delete'](_0x2fea5a),_0x517c1d['delete'](_0x2fea5a)):(_0x3ef480['add'](_0x2fea5a),_0x517c1d['set'](_0x2fea5a,_0x22d74f));}else _0x3ef480['add'](_0x2fea5a);}for(const _0x429ea2 of _0x3ef480){const _0x1b5b71=_0x517c1d['has'](_0x429ea2)&&!_0x517c1d['get'](_0x429ea2)['isAttached'];let _0x42a237=_0x1b5b71?_0xc8dbd5['length']-0x1:0x0;const _0xf98161=_0x1b5b71?-0x1:0x1;for(;_0xc8dbd5[_0x42a237];){const _0x4dd5ed=_0xc8dbd5[_0x42a237];if(_0x4dd5ed['diffData'][_0x429ea2]){const _0x1a818e=_0x1b5b71?_0x4dd5ed['diffData'][_0x429ea2]['attributesBefore']:_0x4dd5ed['diffData'][_0x429ea2]['attributesAfter'];_0x21e2a1['attributes'][_0x429ea2]=_0x1a818e?_0x51f737(_0x1a818e):{};break;}_0x42a237+=_0xf98161;}}for(const _0xa66cea of _0xc8dbd5){_0xa66cea['model']={};for(const _0x25ec7c of _0xa66cea['authors'])_0x4674f2['set'](_0x25ec7c['id'],_0x25ec7c);for(const _0x3cca5f of _0x3ef480){const _0x580ba7=_0xa66cea['diffData'][_0x3cca5f]?_0xa66cea['diffData'][_0x3cca5f]['insertions']:'[]',_0x2991ae=_0xa66cea['diffData'][_0x3cca5f]?_0xa66cea['diffData'][_0x3cca5f]['deletions']:'[]';_0xa66cea['model'][_0x3cca5f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x580ba7),'deletions':this['_utils']['_makeModelFromViewString'](_0x2991ae)};}}for(const _0x213c35 of _0x3ef480){let _0x3dca74=null,_0x30e9dd=0x0;const _0x5c15b0=new Map(Array['from'](_0x409c91['model'][_0x213c35]['insertions']['markers'])['filter'](([_0x415e70])=>!_0x415e70['startsWith']('revision:')));let _0x5835b6=0x0;for(const _0x51f930 of _0xc8dbd5){const _0x998fdd=this['_makeTape'](_0x51f930['model'][_0x213c35]['insertions']);_0x51f930==_0x409c91?(_0x3dca74=_0x998fdd,_0x30e9dd=_0x3dca74['length'],_0x3dca74['forEach'](_0x41ac86=>{_0x41ac86['id']=_0x5835b6++;}),this['_processTape'](_0x3dca74)):this['_markInsertions'](_0x3dca74,_0x998fdd);const _0x3a12fc=_0x3dca74['filter'](_0x34cff7=>!_0x34cff7['isAdded'])['map'](_0x2e5d7e=>_0x2e5d7e['id']);let _0x1ea533=0x0;const _0x113119=this['_makeTape'](_0x51f930['model'][_0x213c35]['deletions']);_0x113119['forEach'](_0x2d5360=>{_0x2d5360['isRemoved']?_0x2d5360['id']=_0x30e9dd++:_0x2d5360['id']=_0x3a12fc[_0x1ea533++];}),this['_processTape'](_0x113119),this['_setDistance'](_0x3dca74,'isAdded'),this['_setDistance'](_0x113119,'isRemoved'),_0x51f930==_0x409c91&&this['_markMarkers'](_0x3dca74,_0x5c15b0),_0x3dca74=this['_joinTapes'](_0x3dca74,_0x113119),this['_refreshStartEndIndex'](_0x3dca74),this['_setDistance'](_0x3dca74,'isRemoved');}_0x3dca74=_0x3dca74['filter'](_0x5dfbe6=>!(_0x5dfbe6['isAdded']&&_0x5dfbe6['isRemoved']));const _0x414185=new Map(_0x359b1c['model'][_0x213c35]['deletions']['markers']),_0x12b0e0=new Set(_0x5c15b0['keys']());for(const _0x298961 of _0x414185['keys']())_0x12b0e0['delete'](_0x298961);this['_markSuggestions'](_0x3dca74,_0x12b0e0),this['_fixObsoleteTags'](_0x3dca74),_0x3dca74=this['_removeMissingPairs'](_0x3dca74),_0x3dca74=this['_markMismatchedRemovedTags'](_0x3dca74),_0x3dca74=this['_removeUnsupportedChanges'](_0x3dca74);const {root:_0x3a2e2b,changes:_0x110901}=this['_makeModelFromTape'](_0x3dca74,_0x4674f2,_0x213c35);_0x21e2a1['model'][_0x213c35]=_0x3a2e2b;const _0xc94c62=_0x517c1d['get'](_0x213c35);if(_0xc94c62){const _0x40da62=_0x4674f2['get'](_0xc94c62['userId']),_0x569f8b=new G({'author':_0x40da62,'type':_0xc94c62['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x213c35});_0x110901['unshift'](_0x569f8b),_0x21e2a1['attributes'][_0x213c35]['revisionHistoryAttachChange']=_0x569f8b['id'];}_0x21e2a1['changes']=_0x21e2a1['changes']['concat'](_0x110901);}return _0x21e2a1;}['_markMarkers'](_0x2ab0af,_0x552fd4){for(let _0x1d5c9b=0x0;_0x1d5c9b<_0x2ab0af['length'];_0x1d5c9b++)for(const [_0x84374a,_0x2ecfa3]of _0x552fd4)!_0x2ecfa3['isCollapsed']&&_0x2ecfa3['start']['isEqual'](_0x2ab0af[_0x1d5c9b]['previousPosition'])&&_0x2ab0af[_0x1d5c9b]['markersStart']['push'](_0x84374a),_0x2ecfa3['end']['isEqual'](_0x2ab0af[_0x1d5c9b]['nextPosition'])&&_0x2ab0af[_0x1d5c9b]['markersEnd']['push'](_0x84374a);}['_joinTapes'](_0x580dd6,_0x314510){let _0x10ed6c=[],_0x47f3e8=0x0,_0x2816d9=0x0;for(;_0x47f3e8<_0x580dd6['length']||_0x2816d9<_0x314510['length'];){const _0x10ca9e=_0x580dd6[_0x47f3e8]||{},_0x1b1153=_0x314510[_0x2816d9]||{};if(_0x10ca9e['id']==_0x1b1153['id'])_0x47f3e8++,_0x2816d9++,_0x10ed6c['push'](_0x10ca9e);else{if(_0x1b1153['isRemoved']&&_0x10ca9e['isAdded']){const {commonTape:_0x1ebe22,iEnd:_0x72b89e,jEnd:_0x576025}=this['_threeWayMerge'](_0x580dd6,_0x47f3e8,_0x314510,_0x2816d9);_0x10ed6c=_0x10ed6c['concat'](_0x1ebe22),_0x47f3e8=_0x72b89e,_0x2816d9=_0x576025;}else _0x1b1153['isRemoved']?(_0x2816d9++,_0x10ed6c['push'](_0x1b1153)):(_0x47f3e8++,_0x10ed6c['push'](_0x10ca9e));}}return _0x10ed6c;}['_markSuggestions'](_0x3cc804,_0x276e25){const _0x37e480=[];for(let _0x7cdf4a=0x0;_0x7cdf4a<_0x3cc804['length'];_0x7cdf4a++){for(let _0x3c9288=0x0;_0x3c9288<_0x3cc804[_0x7cdf4a]['markersStart']['length'];_0x3c9288++){const _0x28153b=_0x3cc804[_0x7cdf4a]['markersStart'][_0x3c9288];if(!_0x276e25['has'](_0x28153b))continue;const {group:_0x543a1a,type:_0x24e3b7,authorId:_0x574f72}=_0x2cb701(_0x28153b);'revision-suggestion'!=_0x543a1a||'insertion'!=_0x24e3b7&&'deletion'!=_0x24e3b7||(_0x37e480['unshift']({'type':_0x24e3b7,'name':_0x28153b,'userId':_0x574f72}),_0x3cc804[_0x7cdf4a]['markersStart']['splice'](_0x3c9288,0x1),_0x3c9288--);}_0x141d64(_0x3cc804[_0x7cdf4a]);for(let _0x11c3e9=0x0;_0x11c3e9<_0x3cc804[_0x7cdf4a]['markersEnd']['length'];_0x11c3e9++){const _0x4e9f9b=_0x3cc804[_0x7cdf4a]['markersEnd'][_0x11c3e9];if(!_0x276e25['has'](_0x4e9f9b))continue;const {group:_0x319c24,type:_0x51c613}=_0x2cb701(_0x4e9f9b);if('revision-suggestion'!=_0x319c24||'insertion'!=_0x51c613&&'deletion'!=_0x51c613)continue;_0x3cc804[_0x7cdf4a]['markersEnd']['splice'](_0x11c3e9,0x1),_0x11c3e9--;const _0x346ce6=_0x37e480['findIndex'](_0x18b0ff=>_0x18b0ff['name']==_0x4e9f9b);_0x346ce6>-0x1&&_0x37e480['splice'](_0x346ce6,0x1);}}function _0x2cb701(_0x209af5){const _0x1f5fd7=_0x209af5['split'](':');return{'group':_0x1f5fd7[0x0],'type':_0x1f5fd7[0x1],'subType':_0x1f5fd7['length']>=0x5?_0x1f5fd7[0x2]:null,'id':_0x1f5fd7['length']<0x5?_0x1f5fd7[0x2]:_0x1f5fd7[0x3],'authorId':_0x1f5fd7['length']<0x5?_0x1f5fd7[0x3]:_0x1f5fd7[0x4],'markerCount':0x6==_0x1f5fd7['length']?_0x1f5fd7[0x5]:null};}function _0x141d64(_0x265df9){for(let _0x4f8d78=0x0;_0x4f8d78<_0x37e480['length'];_0x4f8d78++){if(_0x265df9['isAdded']&&'insertion'==_0x37e480[_0x4f8d78]['type']&&_0x265df9['isAdded']['userId']==_0x37e480[_0x4f8d78]['userId'])return _0x265df9['isAddSuggestion']=_0x37e480[_0x4f8d78],void delete _0x265df9['isAdded'];if(!_0x265df9['isAdded']&&!_0x265df9['isRemoved']&&'deletion'==_0x37e480[_0x4f8d78]['type'])return void(_0x265df9['isRemoveSuggestion']=_0x37e480[_0x4f8d78]);}}}['_setDistance'](_0x28cf55,_0x4290cf){let _0x51279f=0x0,_0x4a8a85=!0x1;const _0x5cf3f9=new Map();for(const _0x37b68f of _0x28cf55)_0x37b68f[_0x4290cf]?_0x4a8a85&&(_0x51279f++,_0x4a8a85=!0x1):(_0x51279f++,_0x4a8a85=!0x0),_0x5cf3f9['set'](_0x37b68f['id'],_0x51279f);for(let _0x5e41de=0x0;_0x5e41de<_0x28cf55['length'];_0x5e41de++){if('isRemoved'==_0x4290cf&&_0x28cf55[_0x5e41de]['isAdded']||'isAdded'==_0x4290cf&&_0x28cf55[_0x5e41de]['isRemoved'])continue;if('text'==_0x28cf55[_0x5e41de]['type']){_0x28cf55[_0x5e41de]['distance']=0x0;continue;}const _0x395624=_0x5cf3f9['get'](_0x28cf55[_0x5e41de]['pairId']),_0x1d5d31=_0x5cf3f9['get'](_0x28cf55[_0x5e41de]['id']);_0x28cf55[_0x5e41de]['distance']=_0x395624-_0x1d5d31;}}['_getRevisionsRange'](_0x4b5319,_0x92eab1,_0x25b714=!0x1){const _0x5863e3=[];let _0x2e8d5e=this['repository']['getIndex'](_0x4b5319),_0x926202=this['repository']['getIndex'](_0x92eab1);for(-0x1==_0x926202&&(_0x926202=this['repository']['_revisions']['length'],_0x25b714=!0x1);_0x2e8d5e<_0x926202;)_0x5863e3['push'](this['repository']['getRevision'](_0x2e8d5e)),_0x2e8d5e++;return _0x25b714&&_0x5863e3['push'](this['repository']['getRevision'](_0x2e8d5e)),_0x5863e3;}['_threeWayMerge'](_0x58ed4a,_0x33fadf,_0x5e4b6b,_0x21f139){const _0x807711=this['editor']['model']['schema'];let _0xb365c3=_0x33fadf;for(;_0x58ed4a[_0xb365c3]&&_0x58ed4a[_0xb365c3]['isAdded'];)_0xb365c3++;let _0x3b7f32=_0x21f139;for(;_0x5e4b6b[_0x3b7f32]&&_0x5e4b6b[_0x3b7f32]['isRemoved'];)_0x3b7f32++;_0x241878(_0x58ed4a,_0x33fadf,_0xb365c3),_0x241878(_0x5e4b6b,_0x21f139,_0x3b7f32);const _0x3f3e48=_0x5e4b6b['slice'](_0x21f139,_0x3b7f32)['concat'](_0x58ed4a['slice'](_0x33fadf,_0xb365c3));return _0x3f3e48['sort']((_0x4e7f09,_0x407df8)=>_0x4e7f09['side']!=_0x407df8['side']?_0x4e7f09['side']-_0x407df8['side']:_0x4e7f09['level']!=_0x407df8['level']?_0x4e7f09['level']-_0x407df8['level']:_0x4e7f09['distance']!=_0x407df8['distance']?_0x407df8['distance']-_0x4e7f09['distance']:!!_0x4e7f09['isAdded']!=!!_0x407df8['isAdded']?-0x1==_0x4e7f09['side']||0x0==_0x4e7f09['side']?_0x4e7f09['isAdded']?-0x1:0x1:_0x4e7f09['isAdded']?0x1:-0x1:_0x4e7f09['index']-_0x407df8['index']),{'commonTape':_0x3f3e48,'iEnd':_0xb365c3,'jEnd':_0x3b7f32};function _0x241878(_0x199ac0,_0x11eabf,_0x16ac06){let _0x5e988a=-0x1,_0x2748f9=Number['POSITIVE_INFINITY'],_0x3dc86a=!0x0;for(let _0x15f120=_0x11eabf;_0x15f120<_0x16ac06;_0x15f120++)if(_0x807711['isInline'](_0x199ac0[_0x15f120]['item'])||(_0x3dc86a=!0x1),_0x199ac0[_0x15f120]['item']['startIndex']<_0x11eabf&&(_0x5e988a=_0x15f120),_0x199ac0[_0x15f120]['item']['endIndex']>=_0x16ac06){_0x2748f9=_0x15f120;break;}_0x3dc86a&&(_0x5e988a=_0x16ac06-0x1);for(let _0x1f6925=_0x11eabf;_0x1f6925<_0x16ac06;_0x1f6925++)_0x199ac0[_0x1f6925]['side']=_0x1f6925<=_0x5e988a?-0x1:_0x1f6925<_0x2748f9?0x0:0x1,_0x199ac0[_0x1f6925]['index']=_0x1f6925;let _0x445345=0x0;for(let _0x5626e7=_0x11eabf;_0x5626e7<=_0x5e988a;_0x5626e7++)0x0==_0x199ac0[_0x5626e7]['distance']?_0x199ac0[_0x5626e7]['level']=_0x445345:(_0x445345++,_0x199ac0[_0x5626e7]['level']=_0x445345,_0x445345++);for(let _0xe95728=_0x11eabf;_0xe95728<_0x16ac06;_0xe95728++)0x0==_0x199ac0[_0xe95728]['side']&&(_0x199ac0[_0xe95728]['level']=_0x445345);_0x445345=0x0;for(let _0x1d59b0=_0x16ac06-0x1;_0x1d59b0>=_0x2748f9;_0x1d59b0--)0x0==_0x199ac0[_0x1d59b0]['distance']?_0x199ac0[_0x1d59b0]['level']=_0x445345:(_0x445345--,_0x199ac0[_0x1d59b0]['level']=_0x445345,_0x445345--);}}['_fixObsoleteTags'](_0x52961e){const _0x3bef44=new Map(),_0x5ae40e=this['editor']['model']['schema'];for(let _0x36882f=0x1;_0x36882f<_0x52961e['length'];_0x36882f++){let _0x1d2692,_0x461ddd,_0x2e16f6;const _0x466a00=_0x52961e[_0x36882f],_0xf92d0d=_0x52961e[_0x36882f-0x1];if('text'==_0x466a00['type'])continue;if(_0x466a00['type']!=_0xf92d0d['type'])continue;if(!_0x5ae40e['isBlock'](_0xf92d0d['item'])||_0x5ae40e['isLimit'](_0xf92d0d['item']))continue;if(!_0x5ae40e['isBlock'](_0x466a00['item'])||_0x5ae40e['isLimit'](_0x466a00['item']))continue;if((_0x52961e[_0x36882f]['isAdded']||_0x52961e[_0x36882f]['isAddSuggestion'])&&_0x52961e[_0x36882f-0x1]['isRemoved'])_0x1d2692=_0x52961e[_0x36882f],_0x461ddd=_0x52961e[_0x36882f-0x1],_0x2e16f6=_0x36882f-0x1;else{if(!_0x52961e[_0x36882f]['isRemoved']||!_0x52961e[_0x36882f-0x1]['isAdded']&&!_0x52961e[_0x36882f-0x1]['isAddSuggestion'])continue;_0x1d2692=_0x52961e[_0x36882f-0x1],_0x461ddd=_0x52961e[_0x36882f],_0x2e16f6=_0x36882f;}const _0x14119f=_0x1d2692['level']==_0x461ddd['level'],_0x1bb3ef=Math['abs'](_0x1d2692['level'])<Math['abs'](_0x461ddd['level'])&&0x0==_0x461ddd['distance'];(_0x14119f||_0x1bb3ef)&&(_0x3bef44['set'](_0x461ddd['id'],_0x1d2692['id']),_0x52961e['splice'](_0x2e16f6,0x1),_0x36882f--,_0x1d2692['isAdded']=!0x1);}for(let _0x4919a9=0x0;_0x4919a9<_0x52961e['length'];_0x4919a9++)_0x3bef44['has'](_0x52961e[_0x4919a9]['pairId'])&&(_0x52961e[_0x4919a9]['pairId']=_0x3bef44['get'](_0x52961e[_0x4919a9]['pairId']));}['_removeMissingPairs'](_0x329308){const _0x4373e4=new Set(_0x329308['map'](_0x27c668=>_0x27c668['id']));for(let _0x3a1edc=0x0;_0x3a1edc<_0x329308['length'];_0x3a1edc++)_0x4373e4['has'](_0x329308[_0x3a1edc]['pairId'])||0x0==_0x329308[_0x3a1edc]['distance']||(_0x329308[_0x3a1edc]['isIncorrect']=!0x0);return _0x329308['filter'](_0x32451b=>!_0x32451b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x54b9f7){const _0x3fe56f=new Set();for(let _0x18ceda=0x0;_0x18ceda<_0x54b9f7['length'];_0x18ceda++){if(_0x3fe56f['has'](_0x54b9f7[_0x18ceda]['id'])&&_0x54b9f7[_0x18ceda]['isRemoved']&&(_0x54b9f7[_0x18ceda]['isIncorrect']=!0x0),_0x54b9f7[_0x18ceda]['isIncorrect'])continue;if(0x0==_0x54b9f7[_0x18ceda]['distance'])continue;if('elementStart'!=_0x54b9f7[_0x18ceda]['type'])continue;if(null==_0x54b9f7[_0x18ceda]['pairId'])continue;let _0x443647=_0x18ceda+0x1,_0x1253c6=0x0;for(;_0x54b9f7[_0x443647]['id']!=_0x54b9f7[_0x18ceda]['pairId'];)'elementStart'==_0x54b9f7[_0x443647]['type']?_0x1253c6++:'elementEnd'==_0x54b9f7[_0x443647]['type']&&_0x1253c6--,_0x443647++;if(0x0!=_0x1253c6){if(_0x54b9f7[_0x18ceda]['isRemoved'])_0x54b9f7[_0x18ceda]['isIncorrect']=!0x0;else{for(;_0x443647!=_0x18ceda;)_0x54b9f7[_0x443647]['isRemoved']&&0x0!=_0x54b9f7[_0x443647]['distance']&&(_0x54b9f7[_0x443647]['isIncorrect']=!0x0,_0x3fe56f['add'](_0x54b9f7[_0x443647]['pairId'])),_0x443647--;}}}return _0x54b9f7['filter'](_0x1f2a73=>!_0x1f2a73['isIncorrect']);}['_removeUnsupportedChanges'](_0x9ac54a){const _0x26d273=this['editor']['model']['schema'];for(let _0x420d56=0x0;_0x420d56<_0x9ac54a['length'];_0x420d56++){if(!(_0x9ac54a[_0x420d56]['isAdded']||_0x9ac54a[_0x420d56]['isAddSuggestion']||_0x9ac54a[_0x420d56]['isRemoved']||_0x9ac54a[_0x420d56]['isRemoveSuggestion']))continue;if(0x0==_0x9ac54a[_0x420d56]['distance'])continue;const _0x4ff7e4=_0x9ac54a[_0x420d56]['item'];_0x26d273['isBlock'](_0x4ff7e4)||_0x26d273['isLimit'](_0x4ff7e4)||(_0x9ac54a[_0x420d56]['isAdded']&&delete _0x9ac54a[_0x420d56]['isAdded'],_0x9ac54a[_0x420d56]['isAddSuggestion']&&delete _0x9ac54a[_0x420d56]['isAddSuggestion'],_0x9ac54a[_0x420d56]['isRemoveSuggestion']&&delete _0x9ac54a[_0x420d56]['isRemoveSuggestion'],_0x9ac54a[_0x420d56]['isRemoved']&&(_0x9ac54a[_0x420d56]['isIncorrect']=!0x0));}return _0x9ac54a['filter'](_0x4ac47b=>!_0x4ac47b['isIncorrect']);}['_makeModelFromTape'](_0x3a67dd,_0x3c5f53,_0x274c9b){const _0x51ceaf=new _0x4b3412(),_0x3b260b=[],_0x2d4e30=new Map(),_0x10549b=this['editor']['model'],_0x28f78e=_0x10549b['schema'],_0x119bc1=[_0x51ceaf],_0x365307={},_0xa92894={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x416c0b=null;const _0x27873f=[0x0];for(let _0x4154f0=0x0;_0x4154f0<_0x3a67dd['length'];_0x4154f0++)if('elementStart'===_0x3a67dd[_0x4154f0]['type']){_0x3a67dd[_0x4154f0]['previousPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f);const _0x1715d9=new _0x494a98(_0x3a67dd[_0x4154f0]['item']['name'],_0x3a67dd[_0x4154f0]['item']['getAttributes']());_0x119bc1[0x0]['_appendChild'](_0x1715d9),_0x27873f['push'](0x0),_0x119bc1['unshift'](_0x1715d9),_0x3a67dd[_0x4154f0]['nextPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f);}else'elementEnd'===_0x3a67dd[_0x4154f0]['type']?(_0x119bc1['shift'](),_0x3a67dd[_0x4154f0]['previousPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f),_0x27873f['pop'](),_0x27873f[_0x27873f['length']-0x1]++,_0x3a67dd[_0x4154f0]['nextPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f)):(_0x3a67dd[_0x4154f0]['previousPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f),_0x416c0b?_0x416c0b['_data']+=_0x3a67dd[_0x4154f0]['item']['data']:_0x416c0b=new _0xd38aa6(_0x3a67dd[_0x4154f0]['item']['data'],_0x3a67dd[_0x4154f0]['item']['getAttributes']()),_0x3a67dd[_0x4154f0+0x1]&&'text'===_0x3a67dd[_0x4154f0+0x1]['type']&&_0x4ba3e1(_0x416c0b,_0x3a67dd[_0x4154f0+0x1]['item'])||(_0x119bc1[0x0]['_appendChild'](_0x416c0b),_0x416c0b=null),_0x27873f[_0x27873f['length']-0x1]+=_0x3a67dd[_0x4154f0]['item']['offsetSize'],_0x3a67dd[_0x4154f0]['nextPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f));for(let _0x3b2c06=0x0;_0x3b2c06<_0x3a67dd['length'];_0x3b2c06++){const _0x1c7db4=_0x3a67dd[_0x3b2c06]['previousPosition'],_0x3b2572=_0x3a67dd[_0x3b2c06]['nextPosition'];for(const _0x36a8e6 of _0x3a67dd[_0x3b2c06]['markersStart'])_0x2d4e30['set'](_0x36a8e6,{'start':_0x1c7db4,'end':null});_0x3ed1cc('isRemoveSuggestion',_0x3b2c06,_0x1c7db4,_0x3b2572),_0x3ed1cc('isAddSuggestion',_0x3b2c06,_0x1c7db4,_0x3b2572),_0x3ed1cc('isRemoved',_0x3b2c06,_0x1c7db4,_0x3b2572),_0x3ed1cc('isAdded',_0x3b2c06,_0x1c7db4,_0x3b2572);for(const _0x586ad0 of _0x3a67dd[_0x3b2c06]['markersEnd']){const _0x153acf=_0x2d4e30['get'](_0x586ad0);_0x153acf?_0x153acf['end']=_0x3b2572:_0x2d4e30['set'](_0x586ad0,{'start':_0x3b2572,'end':_0x3b2572});}}for(const [_0x5a042f,_0x427c1b]of _0x2d4e30){const _0x47ab28=this['editor']['model']['createRange'](_0x427c1b['start'],_0x427c1b['end']);_0x51ceaf['markers']['set'](_0x5a042f,_0x47ab28);}return _0x3b260b['sort']((_0x13bc19,_0x12dcd3)=>{const _0x13dcea=_0x51ceaf['markers']['get']('revision:'+_0x13bc19['id']),_0x84231=_0x51ceaf['markers']['get']('revision:'+_0x12dcd3['id']);return _0x13dcea['start']['isBefore'](_0x84231['start'])?-0x1:_0x13dcea['start']['isAfter'](_0x84231['start'])?0x1:_0x13dcea['end']['isBefore'](_0x84231['end'])?-0x1:_0x13dcea['end']['isAfter'](_0x84231['end'])?0x1:'add'===_0x13bc19['type']?-0x1:0x1;}),{'root':_0x51ceaf,'changes':_0x3b260b};function _0x3ed1cc(_0xeb141e,_0x58f9f8,_0x1ea056,_0x2e3d73){const _0x333f8c=!!_0x3a67dd[_0x58f9f8][_0xeb141e],_0x4462dd=_0x333f8c?_0x3a67dd[_0x58f9f8][_0xeb141e]['userId']:null,_0x474406=_0x58f9f8===_0x3a67dd['length']-0x1,_0x1342cb=_0xa92894[_0xeb141e][0x0],_0x4ff78d=_0x28f78e['isObject'](_0x3a67dd[_0x58f9f8]['item']);!_0x365307[_0xeb141e]&&_0x333f8c?_0x365307[_0xeb141e]={'start':_0x1ea056,'tapeItem':_0x3a67dd[_0x58f9f8],'userId':_0x4462dd,'type':_0xeb141e}:_0x365307[_0xeb141e]&&!_0x333f8c?(_0x365307[_0xeb141e]['end']=_0x1ea056,_0x35d6b1(_0x365307[_0xeb141e]),_0x365307[_0xeb141e]=null):_0x365307[_0xeb141e]&&_0x333f8c&&_0x365307[_0xeb141e]['userId']!==_0x4462dd&&(_0x365307[_0xeb141e]['end']=_0x1ea056,_0x1342cb&&_0x1342cb['userId']===_0x365307[_0xeb141e]['userId']||_0x35d6b1(_0x365307[_0xeb141e]),_0x365307[_0xeb141e]={'start':_0x1ea056,'tapeItem':_0x3a67dd[_0x58f9f8],'userId':_0x4462dd,'type':_0xeb141e}),_0x365307[_0xeb141e]&&_0x4ff78d&&('elementStart'!==_0x3a67dd[_0x58f9f8]['type']||_0x1342cb&&_0x1342cb['userId']===_0x4462dd||_0xa92894[_0xeb141e]['unshift']({'userId':_0x4462dd,'object':_0x3a67dd[_0x58f9f8]['item'],'change':_0x365307[_0xeb141e]}),'elementEnd'===_0x3a67dd[_0x58f9f8]['type']&&_0x1342cb&&_0x1342cb['object']===_0x3a67dd[_0x58f9f8]['item']&&(_0xa92894[_0xeb141e]['shift'](),_0x365307[_0xeb141e]=_0x1342cb['change'])),_0x365307[_0xeb141e]&&_0x474406&&(_0x365307[_0xeb141e]['end']=_0x2e3d73,_0x35d6b1(_0x365307[_0xeb141e]),_0x365307[_0xeb141e]=null);}function _0x35d6b1({start:_0x4793f6,end:_0x4a3cbf,tapeItem:_0x2ece22,userId:_0x2ee19a,type:_0x149892}){const _0x1f3fc9=_0x2ece22['item'],_0xfef86a=_0x10549b['schema']['isBlock'](_0x1f3fc9)&&!_0x10549b['schema']['isLimit'](_0x1f3fc9),_0x2b1ced=_0x4793f6['nodeAfter']==_0x4a3cbf['parent']&&_0x4a3cbf['isAtStart'];if(_0xfef86a&&_0x2b1ced)return;const _0x123bf3=_0x10549b['createRange'](_0x4793f6,_0x4a3cbf),_0x4f118d=_0x3c5f53['get'](_0x2ee19a),_0x3e4970=new G({'author':_0x4f118d,'type':'isAdded'==_0x149892||'isAddSuggestion'==_0x149892?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x149892||'isRemoveSuggestion'==_0x149892},'createdAt':new Date(),'rootName':_0x274c9b});_0x3b260b['push'](_0x3e4970),_0x51ceaf['markers']['set']('revision:'+_0x3e4970['id'],_0x123bf3);}function _0x4ba3e1(_0x550122,_0x4cf018){const _0x5553f8=_0x550122['getAttributes'](),_0x148897=_0x4cf018['getAttributes']();for(const _0xefafb5 of _0x5553f8){if(_0xefafb5[0x1]!==_0x4cf018['getAttribute'](_0xefafb5[0x0]))return!0x1;_0x148897['next']();}return _0x148897['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2452a5=>{const _0x22d265=_0x2452a5['markerName']['split'](':')[0x1],_0x3e0d9b=this['_getChangeFromId'](_0x22d265);if(!_0x3e0d9b)return null;const _0x41d92c='add'==_0x3e0d9b['type']?'insertion':'deletion',_0x12a396=['ck-suggestion-marker','ck-suggestion-marker-'+_0x41d92c];return _0x3e0d9b['data']['isSuggestion']&&_0x12a396['push']('ck-suggestion-marker-'+_0x41d92c+'-new'),this['activeChange']==_0x3e0d9b&&_0x12a396['push']('ck-suggestion-marker--active'),{'classes':_0x12a396,'attributes':{'data-change-id':_0x22d265}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x421c5d=>{_0x421c5d['on']('element:pre',(_0x9e4b05,_0x2719ee,_0x530d94)=>{const _0x951a8e=_0x2719ee['viewItem']['getChild'](0x0);if(!_0x951a8e||!_0x951a8e['is']('element','code'))return;if(!_0x530d94['consumable']['consume'](_0x951a8e,{'attributes':['vid_start','vid_end']}))return;const _0x39badf=_0x2719ee['modelRange']['start']['nodeAfter'];_0x530d94['writer']['setAttribute']('vid_start',_0x951a8e['getAttribute']('vid_start'),_0x39badf),_0x530d94['writer']['setAttribute']('vid_end',_0x951a8e['getAttribute']('vid_end'),_0x39badf);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x16996f=>{_0x16996f['on']('element',(_0x27828c,_0xdd2b31,_0x4ac978)=>{if(!_0x4ac978['consumable']['consume'](_0xdd2b31['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xdd2b31['modelRange']['isCollapsed'])return;const _0x1631f3=_0xdd2b31['modelRange']['start']['nodeAfter'];_0x1631f3['hasAttribute']('vid_start')||_0x1631f3['hasAttribute']('vid')||(_0x4ac978['writer']['setAttribute']('vid_start',_0xdd2b31['viewItem']['getAttribute']('vid_start'),_0x1631f3),_0x4ac978['writer']['setAttribute']('vid_end',_0xdd2b31['viewItem']['getAttribute']('vid_end'),_0x1631f3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x7d13d5=>_0x7d13d5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1d13ba,[,_0x228074])=>{['vid_start','vid_end','vid']['includes'](_0x228074)&&(_0x1d13ba['return']=!0x0,_0x1d13ba['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1bec0f=>{_0x1bec0f['on']('attribute:vid',(_0x535fcb,_0x3c8215,_0x52cdc1)=>{if('\x20'!=_0x3c8215['item']['data']||_0x3c8215['item']['parent']['maxOffset']>0x1)return;if(!_0x52cdc1['consumable']['consume'](_0x3c8215['item'],_0x535fcb['name']))return;const _0x5b9493=_0x52cdc1['writer'],_0x3fcc5a=_0x52cdc1['mapper']['toViewRange'](_0x3c8215['range']);_0x5b9493['wrap'](_0x3fcc5a,_0x5b9493['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x39498d){const _0x5e3f6a=_0x39498d['plugins']['get']('RevisionViewer');return(_0x1f6af3,_0x1e1388,_0x400b96)=>{const _0x8d2839=_0x1e1388['markerName']['split'](':')[0x1],_0x58e5dc=_0x5e3f6a['_getChangeFromId'](_0x8d2839);if(!_0x58e5dc)return null;const _0x45547b='add'==_0x58e5dc['type']?'split':'merge';if(!_0x400b96['consumable']['test'](_0x1e1388['markerRange'],_0x1f6af3['name']))return;const _0x2a0493=_0x1e1388['markerRange']['getWalker'](),_0x5b7dd2=_0x1e1388['markerRange']['start'],_0x44c34f=_0x39498d['model']['schema'];let _0x490271=null,_0x418e98=null,_0x4e093a=!0x1,_0x48d74e=!0x1;for(const _0x2ee718 of _0x2a0493){const _0x49ac69=_0x2ee718['item'];_0x4e093a=_0x4e093a||_0x44c34f['isContent'](_0x49ac69);const _0x9a5ddb=_0x400b96['mapper']['toViewElement'](_0x49ac69);if(_0x9a5ddb&&_0x9a5ddb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2ee718['type']&&(_0x44c34f['isBlock'](_0x49ac69)&&!_0x44c34f['isLimit'](_0x49ac69)&&(_0x49ac69['nextSibling']||_0x5b7dd2['isAtEnd']?_0x490271&&_0x490271['parent']==_0x49ac69||(_0x490271=_0x49ac69,_0x3d2e5b(_0x2ee718['previousPosition']),_0x48d74e=!0x0):_0x418e98=_0x418e98||_0x2ee718['previousPosition']));}function _0x3d2e5b(_0x287855){const _0x228e5e=_0x400b96['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45547b}),_0x4eff4a=_0x400b96['mapper']['toViewPosition'](_0x287855);_0x58e5dc['data']['isSuggestion']&&_0x400b96['writer']['addClass']('ck-suggestion-marker-'+_0x45547b+'-new',_0x228e5e),_0x5e3f6a['activeChange']==_0x58e5dc&&_0x400b96['writer']['addClass']('ck-suggestion-marker--active',_0x228e5e),_0x400b96['writer']['insert'](_0x4eff4a,_0x228e5e),_0x400b96['mapper']['bindElementToMarker'](_0x228e5e,_0x1e1388['markerName']);}_0x4e093a||_0x48d74e||!_0x418e98||_0x3d2e5b(_0x418e98);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2e2ba1,_0x3ed91e,_0x2706c2)=>{const _0x16f042=_0x2706c2['mapper']['markerNameToElements'](_0x3ed91e['markerName']);if(_0x16f042){for(const _0x39e708 of _0x16f042)(_0x39e708['hasClass']('ck-suggestion-marker-split')||_0x39e708['hasClass']('ck-suggestion-marker-merge'))&&(_0x2706c2['mapper']['unbindElementFromMarkerName'](_0x39e708,_0x3ed91e['markerName']),_0x2706c2['writer']['remove'](_0x39e708));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x54c3d5,_0x10be46,_0x19fc38)=>{const _0x2aa78f=_0x10be46['markerName']['split'](':')[0x1],_0x2b53d4=this['_getChangeFromId'](_0x2aa78f);if(!_0x2b53d4)return null;const _0x2f7d40='add'==_0x2b53d4['type']?'split':'merge';if(_0x19fc38['consumable']['test'](_0x10be46['markerRange'],_0x54c3d5['name']))for(const _0x2a8802 of _0x10be46['markerRange']['getItems']()){if(!_0x2a8802['is']('element','softBreak'))continue;const _0x4acf23=_0x19fc38['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f7d40}),_0x19c139=_0x19fc38['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2a8802));_0x2b53d4['data']['isSuggestion']&&_0x19fc38['writer']['addClass']('ck-suggestion-marker-'+_0x2f7d40+'-new',_0x4acf23),this['activeChange']==_0x2b53d4&&_0x19fc38['writer']['addClass']('ck-suggestion-marker--active',_0x4acf23),_0x19fc38['writer']['insert'](_0x19c139,_0x4acf23),_0x19fc38['mapper']['bindElementToMarker'](_0x4acf23,_0x10be46['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x504497=>{for(const _0x427112 of this['editor']['model']['document']['getRootNames']()){const _0x135c88=this['editor']['model']['document']['getRoot'](_0x427112),_0x427d02=this['editor']['editing']['view']['document']['getRoot'](_0x427112);if(_0x427d02){const _0x27b4fc=_0x135c88['getAttribute']('revisionHistoryAttachChange');if(_0x504497['removeAttribute']('data-change-id',_0x427d02),_0x504497['removeClass']('ck-revision-history-root-add',_0x427d02),_0x504497['removeClass']('ck-revision-history-root-remove',_0x427d02),_0x504497['removeClass']('ck-revision-history-root--active',_0x427d02),_0x27b4fc){const _0x2a5b29=this['_getChangeFromId'](_0x27b4fc);if(!_0x2a5b29)return null;_0x504497['setAttribute']('data-change-id',_0x27b4fc,_0x427d02),_0x504497['addClass']('ck-revision-history-root-'+_0x2a5b29['type'],_0x427d02),this['activeChange']==_0x2a5b29&&_0x504497['addClass']('ck-revision-history-root--active',_0x427d02);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x250dd8=>'revision-comment:'+_0x250dd8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x57af27=>'revision-suggestion:'+_0x57af27,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x112863=>({'name':'suggestion:'+_0x112863,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2126c1=>{const _0x3a41d4=_0x2126c1['markerName']['split'](':')[0x1];return'insertion'!=_0x3a41d4&&'deletion'!=_0x3a41d4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3a41d4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x323e3d,_0x2e0e01,_0x2cb2c9)=>{const _0x19a742=_0x2cb2c9['mapper']['markerNameToElements'](_0x2e0e01['markerName']);if(_0x19a742){for(const _0x1971a4 of _0x19a742)_0x1971a4['is']('uiElement')&&(_0x2cb2c9['mapper']['unbindElementFromMarkerName'](_0x1971a4,_0x2e0e01['markerName']),_0x2cb2c9['writer']['remove'](_0x1971a4));}},{'priority':'high'});}['_getChangeFromId'](_0x14a68b){return this['_changeIdToChange']['get'](_0x14a68b);}['_getViewForChange'](_0xd7d835){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0xd7d835),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x231dc5,_0x3f83cd,_0x1fe690,_0x8ea61c)=>{_0x8ea61c&&this['_balloon']['remove'](_0x8ea61c),_0x1fe690&&(this['_balloon']['add']({'view':_0x1fe690,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1ce111=this['editor']['editing'],_0x55b912=this['_getChangeFromId'](_0x1fe690['changeId']);let _0x2b0a17;if(_0x55b912['data']['isOnRoot']){const _0x23041e=_0x1ce111['view']['getDomRoot'](_0x55b912['rootName']);_0x2b0a17=Array['from'](_0x23041e['getClientRects']());}else{const _0x104355=this['editor']['model']['markers']['get']('revision:'+_0x1fe690['changeId']);_0x2b0a17=Array['from'](_0x1ce111['mapper']['markerNameToElements'](_0x104355['name']))['map'](_0x2301d1=>_0x1ce111['view']['domConverter']['mapViewToDom'](_0x2301d1))['map'](_0x1450a3=>Array['from'](_0x1450a3['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2b0a17[0x0];return _0x2b0a17['find'](_0x1e86c7=>_0x1e86c7['top']-0x3<=this['_activeViewTarget']['y']&&_0x1e86c7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1e86c7['left']-0x3<=this['_activeViewTarget']['x']&&_0x1e86c7['right']+0x3>=this['_activeViewTarget']['x'])||_0x2b0a17[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x51fc16,_0x2e47f0,_0x1a76bd,_0x4d615f)=>{this['activeView']=_0x1a76bd?this['_getViewForChange'](_0x1a76bd):null,this['editor']['model']['change'](()=>{const _0x8dc14=this['editor']['editing'];_0x4d615f&&(_0x4d615f['data']['isOnRoot']?_0x8dc14['view']['change'](_0x2a9d5a=>{_0x2a9d5a['removeClass']('ck-revision-history-root--active',_0x8dc14['view']['document']['getRoot'](_0x4d615f['rootName']));}):_0x8dc14['reconvertMarker']('revision:'+_0x4d615f['id'])),_0x1a76bd&&(_0x1a76bd['data']['isOnRoot']?_0x8dc14['view']['change'](_0x1ade38=>{_0x1ade38['addClass']('ck-revision-history-root--active',_0x8dc14['view']['document']['getRoot'](_0x1a76bd['rootName']));}):_0x8dc14['reconvertMarker']('revision:'+_0x1a76bd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x60e6b9,_0x299145)=>{if(this['activeChange'])return;const _0x20e902=this['_findChangeIdFromDomTarget'](_0x299145['target']),_0x28ce00=this['_changeIdToChange']['get'](_0x20e902);_0x28ce00?(this['_activeViewTarget']={'x':_0x299145['domEvent']['x'],'y':_0x299145['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x28ce00)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2ecee6,_0x440123)=>{const _0x2a5e76=this['_findChangeIdFromDomTarget'](_0x440123['target']),_0x2d685e=this['_changeIdToChange']['get'](_0x2a5e76);_0x2d685e?(this['_activeViewTarget']={'x':_0x440123['domEvent']['x'],'y':_0x440123['domEvent']['y']},_0x2d685e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d685e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2b47ee){do{const _0x33c649=_0x2b47ee['getAttribute']('data-change-id');if(_0x33c649)return _0x33c649;_0x2b47ee=_0x2b47ee['parent'];}while(_0x2b47ee);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4b59c8=>{for(const _0x2b45b3 of this['editor']['model']['markers'])_0x4b59c8['removeMarker'](_0x2b45b3);});}}function Q(_0x7feed0,_0x25eb05){return(_0x3b336c,_0x1379d7,_0x2e423b)=>{if(!_0x2e423b['consumable']['test'](_0x1379d7['markerRange'],_0x3b336c['name']))return;const _0x47274d=_0x1379d7['markerRange']['getWalker'](),_0x1eff44=_0x1379d7['markerRange']['start'],_0x1126dc=_0x7feed0['model']['schema'];let _0x13b12d=null,_0x5302f5=null,_0x31fd0f=!0x1,_0x5a604f=!0x1;for(const _0x4c7485 of _0x47274d){const _0x2880d2=_0x4c7485['item'];_0x31fd0f=_0x31fd0f||_0x1126dc['isContent'](_0x2880d2);const _0x1aca65=_0x2e423b['mapper']['toViewElement'](_0x2880d2);if(_0x1aca65&&_0x1aca65['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4c7485['type']&&(_0x1126dc['isBlock'](_0x2880d2)&&!_0x1126dc['isLimit'](_0x2880d2)&&(_0x2880d2['nextSibling']||_0x1eff44['isAtEnd']?_0x13b12d&&_0x13b12d['parent']==_0x2880d2||(_0x13b12d=_0x2880d2,_0x5a0806(_0x4c7485['previousPosition']),_0x5a604f=!0x0):_0x5302f5=_0x5302f5||_0x4c7485['previousPosition']));}function _0x5a0806(_0x5090d3){const _0x1ebd77=_0x2e423b['mapper']['toViewPosition'](_0x5090d3),_0x2f0bda=_0x2e423b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x25eb05});_0x2e423b['writer']['insert'](_0x1ebd77,_0x2f0bda),_0x2e423b['mapper']['bindElementToMarker'](_0x2f0bda,_0x1379d7['markerName']);}_0x31fd0f||_0x5a604f||!_0x5302f5||_0x5a0806(_0x5302f5);};}class nt extends _0x5a55d6{constructor(_0x1fdfbe){super(_0x1fdfbe);const _0x29cd5e=_0x1fdfbe['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x29cd5e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x29cd5e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x545ea0=this['editor'],_0x27387f=_0x545ea0['plugins']['get'](u),_0x527e6f=_0x27387f['isReady']?_0x27387f['diff']['newRevisionId']:null;_0x545ea0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x527e6f);}['refresh'](){const {isReady:_0x37d95e,isEnabled:_0x56754f,repository:_0x56b899,diff:_0x18481e}=this['editor']['plugins']['get'](u),_0x2e4730=_0x18481e&&_0x56b899['getLaterVisibleRevision'](_0x18481e['newRevisionId']);this['isEnabled']=_0x37d95e&&_0x56754f&&Boolean(_0x2e4730);}}class rt extends _0x5a55d6{['_step'];constructor(_0x2f3713,{direction:_0x2ac9ba}){super(_0x2f3713);const _0x2832c4=_0x2f3713['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x2ac9ba?0x1:-0x1,this['listenTo'](_0x2832c4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2832c4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2832c4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3acccb=this['editor'],_0x4ed66c=_0x3acccb['plugins']['get'](u),{isNavigationMode:_0x4cb9d2,currentChangeNumber:_0x501cc0}=_0x4ed66c;let _0x25808e;if(_0x4ed66c['activeChange']=_0x4cb9d2?_0x4ed66c['diff']['changes']['get'](_0x501cc0+this['_step']):_0x4ed66c['diff']['changes']['first'],_0x4ed66c['activeChange']['data']['isOnRoot'])_0x25808e=_0x3acccb['editing']['view']['getDomRoot'](_0x4ed66c['activeChange']['rootName']);else{const _0x392c51=_0x3acccb['model']['markers']['get']('revision:'+_0x4ed66c['activeChange']['id']);_0x25808e=_0x52dae5(_0x3acccb['editing'],_0x392c51);}_0x1bdacd({'target':_0x25808e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x18bf4c,currentChangeNumber:_0x52cc94,numberOfChanges:_0x59740a,isReady:_0x1f8bb6,isEnabled:_0x30dbf9}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x30dbf9&&_0x1f8bb6&&_0x59740a)&&(!_0x18bf4c||(0x1===this['_step']?_0x52cc94<_0x59740a-0x1:_0x52cc94>0x0));}}class fi extends _0x308af2{constructor(_0x1d5f0d){super(_0x1d5f0d);const _0x547ca2=this['bindTemplate'],_0x377864=new _0x2d83ad(_0x1d5f0d),_0x1cfe16=new _0x2d83ad(_0x1d5f0d);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',(_0x12c100,_0x10d4e4)=>_0x12c100&&_0x10d4e4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5ec062,_0x481d86,_0x4eebc5,_0x5f5605)=>{if(!_0x5ec062)return m(_0x1d5f0d,'Loading...');if(!_0x4eebc5)return m(_0x1d5f0d,'No\x20changes');const _0x54f491=m(_0x1d5f0d,'NUMBER_OF_CHANGES',_0x4eebc5);return _0x5f5605?m(_0x1d5f0d,'X_OF_Y_CHANGES',[_0x481d86+0x1,_0x4eebc5]):_0x54f491;}),_0x377864['set']({'label':m(_0x1d5f0d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4f6b62}),_0x1cfe16['set']({'label':m(_0x1d5f0d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x226f22}),_0x377864['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1cfe16['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x377864['on']('execute',()=>this['fire']('execute','backward')),_0x1cfe16['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',_0x547ca2['if']('_isStatusLabelVisible','ck-hidden',_0x25de22=>!_0x25de22)]},'children':[{'text':_0x547ca2['to']('isNavigationMode',_0x1d3b10=>_0x1d3b10?m(_0x1d5f0d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1d5f0d,'Total')+':\x20')}]},{'text':_0x547ca2['to']('_statusText')}]},new _0x15959a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x377864,_0x1cfe16]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x2059eb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x31618f=this['editor']['editing']['view'];_0x31618f['change'](_0x4b7fef=>{for(const _0x370e51 of _0x31618f['document']['roots'])_0x4b7fef['addClass'](ge,_0x370e51);});}['hide'](){const _0xad9e70=this['editor']['editing']['view'];_0xad9e70['change'](_0x154ed8=>{for(const _0x3c0d73 of _0xad9e70['document']['roots'])_0x154ed8['removeClass'](ge,_0x3c0d73);});}}class v extends _0x2059eb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,bi];}['init'](){const _0xb3f783=this['editor'],_0x14cbf0=_0xb3f783['plugins']['get'](u),_0x157bfe=_0xb3f783['plugins']['get'](bi);_0xb3f783['ui']['componentFactory']['add']('exitToEditing',_0x516180=>{const _0x1ca2a8=new _0x2d83ad(_0x516180);return _0x1ca2a8['set']({'label':m(_0x516180,'Back\x20to\x20editing'),'icon':_0x3b0c96,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1ca2a8,'execute',()=>{_0xb3f783['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1ca2a8;}),_0xb3f783['ui']['componentFactory']['add']('restoreRevision',_0xd44982=>{const _0x15732c=new _0x2d83ad(_0xd44982);return _0x15732c['set']({'label':m(_0xd44982,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x15732c['bind']('isEnabled')['to'](_0xb3f783['commands']['get']('restoreRevision')),this['listenTo'](_0x15732c,'execute',()=>_0xb3f783['execute']('restoreRevision')),_0x15732c;}),_0xb3f783['ui']['componentFactory']['add']('changesNavigation',_0x23844f=>{const _0x2bde84=new fi(_0x23844f),_0x2ab1fd=_0xb3f783['commands']['get']('showPreviousChange'),_0x446b6c=_0xb3f783['commands']['get']('showNextChange');return _0x2bde84['bind']('isBackwardNavigationEnabled')['to'](_0x2ab1fd,'isEnabled'),_0x2bde84['bind']('isForwardNavigationEnabled')['to'](_0x446b6c,'isEnabled'),_0x2bde84['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x14cbf0),this['listenTo'](_0x2bde84,'execute',(_0x54b11b,_0x16cc37)=>{_0xb3f783['execute']('forward'===_0x16cc37?'showNextChange':'showPreviousChange');}),_0x2bde84;}),_0x157bfe['show'](),_0x14cbf0['on']('change:isReady',(_0x3829b4,_0x585988,_0x326212)=>{_0x326212?_0x157bfe['hide']():_0x157bfe['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x470485,_0x5c0f67){super(_0x470485,_0x5c0f67);const _0x4df5aa=this['bindTemplate'];this['set']({'label':m(_0x470485,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x470485,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4df5aa['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3060e5=this['fieldView']['element'];this['_tooltipString']=_0x3060e5['scrollWidth']>_0x3060e5['clientWidth']&&_0x3060e5['value']||'';}}class ni extends _0x308af2{constructor(_0x42da5c,_0x5214ba,_0x2a9d67){super(_0x42da5c);const _0x54c726=new _0x1b7ac4();_0x54c726['set']({'content':_0x46a264,'viewBox':'0\x200\x2011\x2010'});const _0x321ba6=['ck','ck-revision-history-sidebar__revision-author'];_0x2a9d67&&_0x321ba6['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3ea1a1=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x42da5c,_0x2a9d67?'Revision\x20creator':'Revision\x20author')},'children':[_0x54c726,_0x5214ba['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x321ba6},'children':_0x3ea1a1});}}function ai(_0x25f0af,_0x4e8267){const _0x52a09f=_0x25f0af['bindTemplate'],_0x35f6aa=_0x25f0af['locale'],_0x338b11=_0x5c372e(_0x35f6aa);_0x338b11['panelPosition']='sw';const _0x4b3f40=function(_0x22e46d,_0x171a96){const _0x4e106b=function(_0x3959ca,_0x132bd5){const _0x1bb221=_0x3959ca['locale'],_0x48cfd1={'Compare\x20against\x20selected':m(_0x1bb221,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1bb221,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1bb221,'Restore\x20this\x20revision')};return _0x132bd5['map'](_0x38b210=>{const _0x23f184=_0x48cfd1[_0x38b210['name']];return _0x23f184&&_0x23f184!==_0x38b210['name']&&(_0x38b210['name']=_0x23f184),_0x38b210;});}(_0x22e46d,_0x171a96),_0x475dce=new _0x50ebf4();for(const _0x92d343 of _0x4e106b){const _0x22da9d={'type':'button','model':new to({'label':_0x92d343['name'],'class':_0x92d343['class'],'withText':!0x0,'role':'menuitem','_action':_0x92d343['action']})};_0x22da9d['model']['bind']('isEnabled')['to'](_0x22e46d,'isActionsDropdownOpen',_0x16f204=>'function'!=typeof _0x92d343['isEnabled']||(!_0x16f204||_0x92d343['isEnabled'](_0x22e46d))),_0x475dce['add'](_0x22da9d);}return _0x475dce;}(_0x25f0af,_0x4e8267);return _0x25f0af['bind']('isActionsDropdownOpen')['to'](_0x338b11,'isOpen'),_0x338b11['buttonView']['set']({'label':m(_0x35f6aa,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x16611b}),_0x338b11['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x52a09f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x52a09f['to'](_0xaa8440=>_0xaa8440['stopPropagation']())}}),_0x338b11['on']('execute',_0x19eda9=>{_0x25f0af['isReady']&&'function'==typeof _0x19eda9['source']['_action']&&_0x19eda9['source']['_action'](_0x25f0af);}),_0x48b7ca(_0x338b11,_0x4b3f40,{'role':'menu'}),_0x338b11['listenTo'](_0x25f0af,'change:isActionsDropdownOpen',(_0x1d85f4,_0x3f5d8d,_0x3ad32d)=>{if(_0x3ad32d)for(const _0x1f156a of _0x338b11['listView']['items']){const _0x5f3cbb=_0x1f156a['children']['first'],_0x3bce9d=_0x4e8267['find'](_0x479f91=>_0x479f91['action']===_0x5f3cbb['_action'])['isVisible'];_0x1f156a['isVisible']=void 0x0===_0x3bce9d||_0x3bce9d(_0x25f0af);}}),_0x338b11;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x3bfe03(_0x308af2){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x20db02,_0x456c00,_0xd7e6bb,_0x20f479){super(_0x20db02);const _0x3dfd86=this['bindTemplate'],_0x584326=function(_0xf4f188,_0x2296d5){const _0x446e76=Array['from'](_0x2296d5['authors'])['filter'](_0x4ea891=>_0x4ea891!=_0x2296d5['creator']);return _0x2296d5['creator']&&_0x446e76['unshift'](_0x2296d5['creator']),_0x446e76['map'](_0x284f12=>new ni(_0xf4f188,_0x284f12,_0x284f12==_0x2296d5['creator']));}(_0x20db02,_0x456c00);this['id']=_0x456c00['id'],this['_revision']=_0x456c00,this['_requireRevisionName']=_0x20f479,this['bind']('name','createdAt')['to'](_0x456c00),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x567160=>{return _0x3e044a=_0x20db02['uiLanguage'],(_0x2f4004=_0x567160)['toLocaleDateString'](_0x3e044a,{'month':'long','day':'numeric'})+',\x20'+_0x2f4004['toLocaleTimeString'](_0x3e044a,{'hour':'numeric','minute':'numeric'});var _0x3e044a,_0x2f4004;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x20db02,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5dcd47=>_0x5dcd47||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2364dc,_0x46df73)=>_0x2364dc&&_0x46df73),this['revisionActionsView']=_0xd7e6bb&&_0xd7e6bb['length']?ai(this,_0xd7e6bb):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3dfd86['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3dfd86['if']('isEnabled','ck-disabled',_0x325cd9=>!_0x325cd9),_0x3dfd86['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3dfd86['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3dfd86['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':_0x3dfd86['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':_0x584326}]},this['revisionActionsView']],'on':{'click':_0x3dfd86['to'](_0x2810bf=>{_0x2810bf['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1950e7=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1950e7,'change',()=>{this['_requireRevisionName']&&!_0x1950e7['value']||this['fire']('setName',{'id':this['id'],'name':_0x1950e7['value']}),_0x1950e7['value']||(_0x1950e7['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x1da250,_0x52c7dc){const _0x882ce4=_0x376c09['fromJSDate'](_0x1da250)['setLocale'](_0x52c7dc),_0x4c6598=_0x376c09['local'](),_0x3710f0=_0x4c6598['minus']({'days':0x1})['startOf']('day');let _0x5545c6,_0xffc6b4;return _0x882ce4['hasSame'](_0x4c6598,'day')?(_0x5545c6=_0x882ce4['startOf']('day')['toJSDate'](),_0xffc6b4=_0x882ce4['toRelativeCalendar']()):_0x882ce4['hasSame'](_0x3710f0,'day')?(_0x5545c6=_0x3710f0['toJSDate'](),_0xffc6b4=_0x882ce4['toRelativeCalendar']()):_0x882ce4['hasSame'](_0x4c6598,'week')?(_0x5545c6=_0x882ce4['startOf']('week')['toJSDate'](),_0xffc6b4=_0x882ce4['weekdayLong']||''):_0x882ce4['hasSame'](_0x4c6598,'year')?(_0x5545c6=_0x882ce4['startOf']('month')['toJSDate'](),_0xffc6b4=_0x882ce4['monthLong']||''):(_0x5545c6=_0x882ce4['startOf']('year')['toJSDate'](),_0xffc6b4=String(_0x882ce4['year'])),{'startDate':_0x5545c6,'localizedPeriodName':_0xffc6b4};}class ji extends _0x308af2{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x285ac0,_0x584bb2,_0x589395,_0x563dc1){super(_0x285ac0);const _0x3ac9fa=ki(_0x584bb2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x584bb2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x589395,this['_requireRevisionName']=_0x563dc1,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':_0x3ac9fa}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x455582){const _0x170d68=new _i(this['locale'],_0x455582,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x170d68);}['removeRevision'](_0x256632){const _0x30b73d=this['revisionViews']['find'](_0xd2a760=>_0xd2a760['id']===_0x256632['id']);this['revisionViews']['remove'](_0x30b73d);}}class Ni extends _0x308af2{constructor(_0x3fbb86){super(_0x3fbb86);const _0x305fdb=new _0x1b7ac4();_0x305fdb['content']=_0x1d31f2,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x305fdb,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3fbb86,'Revision\x20history')]}]});}}class Ri extends _0x308af2{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1b96a8,_0x11949f,_0x1d25ee,_0x13cad4){super(_0x1b96a8);const _0x107f7e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x11949f,this['_revisionActions']=_0x1d25ee,this['_requireRevisionName']=_0x13cad4,this['on']('select',(_0x107c99,_0x244ab7)=>{this['fire']('revisionSelected',_0x244ab7);}),this['on']('setName',(_0x1d982e,_0x5428a5)=>{this['fire']('revisionSetName',_0x5428a5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x1b96a8),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x107f7e['if']('isEnabled','ck-disabled',_0x1c8fcd=>!_0x1c8fcd)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xcf6693 of this['_revisions'])this['_addRevision'](_0xcf6693);this['_revisions']['on']('add',(_0x2faca4,_0x406d27)=>{this['_addRevision'](_0x406d27);}),this['_revisions']['on']('remove',(_0x3c12a7,_0x5500b8)=>{this['_removeRevision'](_0x5500b8);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x210cff=>_0x210cff['revisionViews']['map'](_0xe96daa=>_0xe96daa))['flat']();}['selectRevision'](_0xabe6a9){for(const _0x123e15 of this['revisionViews'])_0xabe6a9&&_0xabe6a9['id']===_0x123e15['id']?_0x123e15['select']():_0x123e15['deselect']();}['highlightRevisions'](_0x22335d){for(const _0xb79e66 of this['revisionViews'])_0x22335d['some'](({id:_0x390edc})=>_0x390edc===_0xb79e66['id'])?_0xb79e66['highlight']():_0xb79e66['unhighlight']();}['_addRevision'](_0x3b37b2){const _0x301f87=ki(_0x3b37b2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5cb052=this['timePeriodViews']['get'](0x0);_0x5cb052&&_0x5cb052['startDate']['getTime']()===_0x301f87['getTime']()||(_0x5cb052=new ji(this['locale'],_0x301f87,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5cb052)),_0x5cb052['addRevision'](_0x3b37b2);}['_removeRevision'](_0x365ae8){const _0x67cfe5=ki(_0x365ae8['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x67cfe5)['removeRevision'](_0x365ae8);}['_getTimePeriodViewByStartDate'](_0xfd2df6){return this['timePeriodViews']['find'](_0x3e36da=>_0x3e36da['startDate']['getTime']()===_0xfd2df6['getTime']());}}class d extends _0x2059eb{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x3962da(_0x226f3b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x33ab47,_0x32af51){super(_0x32af51),this['sourceElement']=_0x33ab47,this['model']['document']['createRoot']();const _0x3c2f77=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3c2f77);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x51ba80,_0x3bbcde){const _0x2e7a98=new this(_0x51ba80,_0x3bbcde);return await _0x2e7a98['initPlugins'](),await _0x2e7a98['ui']['init'](_0x51ba80),await _0x2e7a98['data']['init'](_0x2e7a98['config']['get']('initialData')||''),_0x2e7a98['fire']('ready'),_0x2e7a98;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0x1f60bb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd1bc32){function _0x88360e(_0x1acf3c){return _0x1acf3c['map'](_0x2cabf7=>String['fromCharCode'](_0x2cabf7))['join']('');}super(_0xd1bc32),this['result']='end',_0xd1bc32[_0x88360e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x88360e([0x76,0x69,0x65,0x77])][_0x88360e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x88360e([0x61,0x75,0x74,0x6f]),_0xd1bc32[_0x88360e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x88360e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x88360e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x88360e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x88360e([0x6f,0x6b])});}}class ht extends _0x1f60bb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x13df6c){if(super(_0x13df6c),!this['editor']['config']['get']('revisionHistory'))throw new _0x4b285e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2673a7=>this['_showRevisionViewer']({..._0x2673a7,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xeb6c46=>this['_closeRevisionViewer'](_0xeb6c46)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x65faa0=>this['_restoreRevision'](_0x65faa0)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1b7578){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1b7578;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x18a847){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x18a847);}['getRevision'](_0x53b35e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x53b35e);}['getRevisions'](_0x82554){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x82554||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x536d30=this['editor'],_0x4ec512=_0x4c6875(_0x536d30,p),_0x1525bf=_0x536d30['plugins']['get']('RevisionTracker'),_0x27494d=_0x536d30['plugins']['get']('Users')['users'];return _0x4ec512['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4ec512['lazyRoots'],(_0x4ec512['plugins']['push'](at,u,v,class extends _0x1f60bb{static get['requires'](){return[u,'Users'];}['init'](){const _0x43c862=this['editor']['plugins']['get']('Users');for(const _0x413ea7 of _0x27494d)_0x413ea7['isAnonymous']||_0x43c862['getUser'](_0x413ea7['id'])||_0x43c862['addUser'](_0x413ea7);const _0x484126=_0x1525bf['repository']['getRevisions']();let _0x4137c5=null;const _0x1a8c80=this['editor']['plugins']['get']('RevisionViewer');_0x1a8c80['adapter']=_0x1525bf['adapter'],_0x1a8c80['bind']('isEnabled')['to'](_0x1525bf),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x536d30,'isReadOnly',_0x1843f0=>!_0x1843f0);for(const _0x129da5 of _0x484126){const _0x57f3f8=null===_0x129da5['creator'];if(_0x57f3f8&&_0x129da5['toVersion']===_0x129da5['fromVersion'])continue;const _0x3fb45a=_0x129da5['toJSON']();_0x1a8c80['addRevisionData'](_0x3fb45a,(_0x3f1a77,_0xe1b0e9,_0x129440)=>{if(_0x57f3f8){if(_0x4137c5)_0x4137c5['_update'](_0x3f1a77,_0xe1b0e9);else{if(!_0xe1b0e9){const _0x55b703=_0x129440['toJSON']();_0x55b703['id']=_0x1f92e5(),_0x1525bf['saveRevision'](_0x55b703,_0x129440['toVersion'])['then'](_0x559082=>{_0x4137c5=_0x559082;});}}}else _0x129da5['_update'](_0x3f1a77,_0xe1b0e9);});}}},d),_0x4ec512);}['_enhanceShowRevisionViewerCallback'](){const _0x533343=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x537243=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x210138=this['editor']['plugins']['get']('Autosave');await _0x210138['save']();}else await _0x537243['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1a87f2=this['editor']['plugins']['get']('Dialog');_0x1a87f2['isOpen']&&_0x1a87f2['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x5daa13=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x170d3a of _0x5daa13)_0x170d3a['class']=_0x170d3a['class']?_0x170d3a['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x54d923=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x54d923&&_0x54d923['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x19543e=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x19543e&&_0x19543e['setAttribute']('tabindex','-1');}}const _0x5013f3=this['_getRevisionViewerEditorConfig']();return _0x533343(_0x5013f3)['then'](_0x3e97a6=>{return(this['_viewerEditor']=_0x3e97a6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3e97a6);})['catch'](_0x10f01d=>(console['error'](_0x10f01d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x41dcff=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x3d7dea=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3c7887 of _0x3d7dea)_0x3c7887['class']='ck-tab-panel_disabled'===_0x3c7887['class']?'':_0x3c7887['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x273236=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x273236&&_0x273236['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x236bba=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x236bba&&_0x236bba['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x41dcff(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x427908=this['editor']['plugins']['get']('Annotations');_0x427908['refreshVisibility'](),_0x427908['refreshPositioning']();}});});}['_showRevisionViewer'](_0x55c202){const _0x364ccc=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2ef495=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xc1a6a1=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0xc1a6a1,_0x55c202)['then'](_0x226e23=>(_0x2ef495['style']['display']='block',_0x364ccc['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x226e23));}['_closeRevisionViewer'](_0xc1bed1){const _0x3d7988=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3d7988['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0xc1bed1['destroy']();}async['_restoreRevision'](_0x2860e6){const _0x18e735=this['editor'],_0x21dc3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x89fd76=_0x18e735['plugins']['get']('RevisionTracker'),_0x1fd215=_0x18e735['plugins']['get']('RevisionHistoryUtils'),_0x3c6814=_0x21dc3['repository']['getRevision'](_0x2860e6);let _0x105559,_0x439425,_0x3af001;try{await _0x1fd215['loadRevisionData'](_0x3c6814,this['adapter']),_0x105559=_0x1fd215['getRevisionDocumentData'](_0x3c6814),_0x439425=_0x1fd215['getRevisionRootsAttributes'](_0x3c6814);}catch(_0x5959d5){return void console['error'](_0x5959d5);}_0x18e735['model']['change'](_0x5e90d8=>{for(const _0x3f19c2 of Array['from'](_0x18e735['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5e90d8['removeMarker'](_0x3f19c2);}),_0x21dc3['isReady']=!0x1,_0x18e735['model']['enqueueChange'](_0x197dcd=>{_0x197dcd['setSelection'](null),_0x197dcd['removeSelectionAttribute'](_0x18e735['model']['document']['selection']['getAttributeKeys']());const _0x1050b1=Object['keys'](_0x105559);for(const _0x39d8eb of _0x18e735['model']['document']['roots'])'$graveyard'!=_0x39d8eb['rootName']&&_0x39d8eb['isAttached']()&&!_0x1050b1['includes'](_0x39d8eb['rootName'])&&_0x197dcd['detachRoot'](_0x39d8eb);for(const _0x54de44 of _0x1050b1){let _0x2cd53c=_0x18e735['model']['document']['getRoot'](_0x54de44);_0x2cd53c&&_0x2cd53c['isAttached']()||(_0x2cd53c=_0x197dcd['addRoot'](_0x54de44));const _0x41083c=_0x439425[_0x54de44],_0x2d956b=Object['keys'](_0x41083c),_0x9dbc60=_0x105559[_0x54de44];for(const _0x4f15f4 of _0x2cd53c['getAttributeKeys']())_0x2d956b['includes'](_0x4f15f4)||_0x197dcd['removeAttribute'](_0x4f15f4,_0x2cd53c);for(const _0xf3f518 of _0x2d956b)_0x197dcd['setAttribute'](_0xf3f518,_0x439425[_0x54de44][_0xf3f518],_0x2cd53c);_0x197dcd['remove'](_0x197dcd['createRangeIn'](_0x2cd53c)),_0x197dcd['insert'](_0x18e735['data']['parse'](_0x9dbc60,_0x2cd53c),_0x2cd53c,0x0);}});const _0x9b536d=m(_0x18e735['locale'],'Restored');if(_0x3c6814['name'])_0x3af001=-0x1==_0x3c6814['name']['indexOf'](_0x9b536d)?_0x9b536d+':\x20'+_0x3c6814['name']:_0x3c6814['name'];else _0x3af001=_0x9b536d+':\x20'+(_0x3c6814['createdAt']['toLocaleDateString'](_0x18e735['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3c6814['createdAt']['toLocaleTimeString'](_0x18e735['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x89fd76['saveRevision']({'name':_0x3af001}),_0x21dc3['isReady']=!0x0,_0x18e735['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,fi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0xd914cd){super(_0xd914cd),this['_revisionViewer']=_0xd914cd['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xc9d135=this['_revisionsRepository']['_revisions'],_0x545454=this['_createRevisionActions'](),_0x396cda=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0xc9d135,_0x545454,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',(_0x329d66,_0x592dec)=>{_0x592dec['revisionViews']['on']('add',(_0x1b1fb2,_0x138fab)=>{_0x138fab['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)),_0x396cda['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2bb8e0=this['_revisionsRepository']['getRevision'](0x0);if(_0x2bb8e0){const _0x23817f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2bb8e0['id']);this['_revisionViewer']['compare'](_0x2bb8e0,_0x23817f);}}['_handleRevisionSelected'](_0x508853,_0x3e92e9){const _0x263bcc=this['_revisionsRepository']['getRevision'](_0x3e92e9['id']),_0x202473=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x263bcc['id']);this['_revisionViewer']['compare'](_0x263bcc,_0x202473);}['_handleRevisionSetName'](_0x43d8ee,_0x44b9eb){this['_revisionsRepository']['getRevision'](_0x44b9eb['id'])['setName'](_0x44b9eb['name']);}['_handleDiffChange'](_0x59aca5,_0x666666,_0x475d0b){const _0xc8709f=this['_revisionsRepository']['getRevisionsInDiff'](_0x475d0b);_0xc8709f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xc8709f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xc8709f[0x0]));}['_createRevisionActions'](){const _0x3cc565=this['editor'],_0xe51ea=d['availableRevisionActions'],_0x195f16=_0x3cc565['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x195f16['length'])return _0x195f16['map'](_0xd19f8c=>{const _0x3183b9='string'==typeof _0xd19f8c?Object['assign']({},_0xe51ea[_0xd19f8c]):_0xd19f8c;return _0x3183b9['action']=_0x3183b9['action']['bind'](this,_0x3cc565),_0x3183b9['isVisible']&&(_0x3183b9['isVisible']=_0x3183b9['isVisible']['bind'](this,_0x3cc565)),_0x3183b9;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4c7cf1},_0x4e39b2)=>{const _0x23356a=_0x4c7cf1['get'](u),_0x9a370=_0x23356a['repository'];let _0x5e0757=_0x23356a['diff']['newRevisionId'],_0x524446=_0x4e39b2['id'];_0x9a370['getIndex'](_0x5e0757)>_0x9a370['getIndex'](_0x524446)&&([_0x5e0757,_0x524446]=[_0x524446,_0x5e0757]),_0x23356a['compare'](_0x5e0757,_0x524446);},'isVisible':({plugins:_0x35c52e},_0x5ec978)=>{const _0x31be36=_0x35c52e['get'](u);return!(_0x31be36['repository']['getRevisionsInDiff'](_0x31be36['diff'])['length']>0x2)&&!_0x5ec978['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x45c98c,{id:_0x1cd97b})=>{_0x45c98c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1cd97b);},'isVisible':({plugins:_0x1fb6bc},_0x1533fd)=>!!_0x1fb6bc['get'](u)['repository']['getLaterVisibleRevision'](_0x1533fd['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x495d95},{id:_0x4a13d2,revisionNameView:_0x488adf})=>{const _0x232cd4=_0x495d95['get'](u),_0x39ceb3=_0x232cd4['repository']['getEarlierVisibleRevision'](_0x4a13d2);_0x232cd4['compare'](_0x4a13d2,_0x39ceb3),_0x488adf['focus'](),_0x488adf['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x29849f,_0xb5e0ba){super(_0x29849f),this['_view']=_0xb5e0ba,this['_toolbarConfig']=st(_0x29849f['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x457194){const _0x1540ac=this['editor'],_0x547332=this['view'],_0x255fe9=_0x1540ac['editing']['view'],_0x538c8d=_0x547332['editable'],_0x18c682=_0x255fe9['document']['getRoot']();_0x538c8d['name']=_0x18c682['rootName'],_0x547332['render']();const _0x55f3a8=_0x538c8d['element'];this['setEditableElement'](_0x538c8d['name'],_0x55f3a8),_0x547332['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x255fe9['attachDomRoot'](_0x55f3a8),this['_elementReplacer']['replace'](_0x457194,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1f9bac=this['view'],_0x26e619=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x26e619['detachDomRoot'](_0x1f9bac['editable']['name']),_0x1f9bac['destroy']();}['_initToolbar'](){const _0x3b59b7=this['view'];_0x3b59b7['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3b59b7['stickyPanel']['limiterElement']=_0x3b59b7['element'],_0x3b59b7['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x8515c3})=>_0x8515c3),_0x3b59b7['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3b59b7['toolbar']);}}class ii extends _0x328b63{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3fd0a7,_0x4c8bd5,_0x5c3f37={}){super(_0x3fd0a7),this['stickyPanel']=new _0x3e29e8(_0x3fd0a7),this['toolbar']=new _0x54edcf(_0x3fd0a7,{'shouldGroupWhenFull':_0x5c3f37['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x3fd0a7,_0x4c8bd5);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x503a7b(_0x5ee788){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x217f79,_0x3a7e8c){super(_0x3a7e8c),this['sourceElement']=_0x217f79,this['model']['document']['createRoot']();const _0x244a31=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x244a31);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x35816a,_0x2e5d69){const _0xc5d91f=new this(_0x35816a,_0x2e5d69);return await _0xc5d91f['initPlugins'](),await _0xc5d91f['ui']['init'](_0x35816a),await _0xc5d91f['data']['init'](_0xc5d91f['config']['get']('initialData')||''),_0xc5d91f['fire']('ready'),_0xc5d91f;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x2059eb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cdb85){function _0x39ee68(_0x492ec0){return _0x492ec0['map'](_0x1cac41=>String['fromCharCode'](_0x1cac41))['join']('');}super(_0x3cdb85),this['result']='end',_0x3cdb85[_0x39ee68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39ee68([0x76,0x69,0x65,0x77])][_0x39ee68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39ee68([0x61,0x75,0x74,0x6f]),_0x3cdb85[_0x39ee68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39ee68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39ee68([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39ee68([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39ee68([0x6f,0x6b])});}}class ct extends _0x2059eb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x1528c5){if(super(_0x1528c5),!this['editor']['config']['get']('revisionHistory'))throw new _0x10c315('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x569a8e=>this['_showRevisionViewer']({..._0x569a8e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5ef3eb=>this['_closeRevisionViewer'](_0x5ef3eb)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2aea2f=>this['_restoreRevision'](_0x2aea2f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4e734d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4e734d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1b2c60){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1b2c60);}['getRevision'](_0x555da3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x555da3);}['getRevisions'](_0x2b057a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2b057a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x16f692=this['editor'],_0x3ed77e=_0x39c63c(_0x16f692,p),_0x5586d4=_0x16f692['plugins']['get']('RevisionTracker'),_0x193ebe=_0x16f692['plugins']['get']('Users')['users'];return _0x3ed77e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3ed77e['lazyRoots'],(_0x3ed77e['plugins']['push'](ht,u,v,class extends _0x2059eb{static get['requires'](){return[u,'Users'];}['init'](){const _0x30cbd7=this['editor']['plugins']['get']('Users');for(const _0x2cb7b5 of _0x193ebe)_0x2cb7b5['isAnonymous']||_0x30cbd7['getUser'](_0x2cb7b5['id'])||_0x30cbd7['addUser'](_0x2cb7b5);const _0x486093=_0x5586d4['repository']['getRevisions']();let _0x4e9cd2=null;const _0x383350=this['editor']['plugins']['get']('RevisionViewer');_0x383350['adapter']=_0x5586d4['adapter'],_0x383350['bind']('isEnabled')['to'](_0x5586d4),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x16f692,'isReadOnly',_0x793cf0=>!_0x793cf0);for(const _0x20a927 of _0x486093){const _0x17fd99=null===_0x20a927['creator'];if(_0x17fd99&&_0x20a927['toVersion']===_0x20a927['fromVersion'])continue;const _0x776444=_0x20a927['toJSON']();_0x383350['addRevisionData'](_0x776444,(_0x548f8f,_0xe86c18,_0x5535ac)=>{if(_0x17fd99){if(_0x4e9cd2)_0x4e9cd2['_update'](_0x548f8f,_0xe86c18);else{if(!_0xe86c18){const _0x48bd70=_0x5535ac['toJSON']();_0x48bd70['id']=_0x26af77(),_0x5586d4['saveRevision'](_0x48bd70,_0x5535ac['toVersion'])['then'](_0x46431b=>{_0x4e9cd2=_0x46431b;});}}}else _0x20a927['_update'](_0x548f8f,_0xe86c18);});}}},d),_0x3ed77e);}['_enhanceShowRevisionViewerCallback'](){const _0x3b83c3=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xdbe154=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x299239=this['editor']['plugins']['get']('Autosave');await _0x299239['save']();}else await _0xdbe154['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x55937c=this['editor']['plugins']['get']('Dialog');_0x55937c['isOpen']&&_0x55937c['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x2e174a=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x7756e7 of _0x2e174a)_0x7756e7['class']=_0x7756e7['class']?_0x7756e7['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x2469c1=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x2469c1&&_0x2469c1['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x45d516=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x45d516&&_0x45d516['setAttribute']('tabindex','-1');}}const _0x2c4193=this['_getRevisionViewerEditorConfig']();return _0x3b83c3(_0x2c4193)['then'](_0x1b2466=>{return(this['_viewerEditor']=_0x1b2466,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1b2466);})['catch'](_0x5f0d30=>(console['error'](_0x5f0d30),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x247740=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0xb58ef1=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x4e86fe of _0xb58ef1)_0x4e86fe['class']='ck-tab-panel_disabled'===_0x4e86fe['class']?'':_0x4e86fe['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x22bd0e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x22bd0e&&_0x22bd0e['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x107786=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x107786&&_0x107786['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x247740(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3be308=this['editor']['plugins']['get']('Annotations');_0x3be308['refreshVisibility'](),_0x3be308['refreshPositioning']();}});});}['_showRevisionViewer'](_0x301bad){const _0x3ad151=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x19bd0d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x37b6a1=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x37b6a1,_0x301bad)['then'](_0x1ae266=>(_0x19bd0d['style']['display']='block',_0x3ad151['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1ae266));}['_closeRevisionViewer'](_0x198ff2){const _0x3d77c9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3d77c9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x198ff2['destroy']();}async['_restoreRevision'](_0x56376){const _0x5ea3c7=this['editor'],_0x5d1168=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x597f02=_0x5ea3c7['plugins']['get']('RevisionTracker'),_0x1ec8f5=_0x5ea3c7['plugins']['get']('RevisionHistoryUtils'),_0x5d184d=_0x5d1168['repository']['getRevision'](_0x56376);let _0xb1a027,_0x1008a6,_0x3f38e8;try{await _0x1ec8f5['loadRevisionData'](_0x5d184d,this['adapter']),_0xb1a027=_0x1ec8f5['getRevisionDocumentData'](_0x5d184d),_0x1008a6=_0x1ec8f5['getRevisionRootsAttributes'](_0x5d184d);}catch(_0x5627d8){return void console['error'](_0x5627d8);}_0x5ea3c7['model']['change'](_0x23fdd4=>{for(const _0x4f48f7 of Array['from'](_0x5ea3c7['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x23fdd4['removeMarker'](_0x4f48f7);}),_0x5d1168['isReady']=!0x1,_0x5ea3c7['model']['enqueueChange'](_0x38c6c1=>{_0x38c6c1['setSelection'](null),_0x38c6c1['removeSelectionAttribute'](_0x5ea3c7['model']['document']['selection']['getAttributeKeys']());const _0xf20ff2=Object['keys'](_0xb1a027);for(const _0x33dbe8 of _0x5ea3c7['model']['document']['roots'])'$graveyard'!=_0x33dbe8['rootName']&&_0x33dbe8['isAttached']()&&!_0xf20ff2['includes'](_0x33dbe8['rootName'])&&_0x38c6c1['detachRoot'](_0x33dbe8);for(const _0x128d05 of _0xf20ff2){let _0x2a74f8=_0x5ea3c7['model']['document']['getRoot'](_0x128d05);_0x2a74f8&&_0x2a74f8['isAttached']()||(_0x2a74f8=_0x38c6c1['addRoot'](_0x128d05));const _0x5013a9=_0x1008a6[_0x128d05],_0x327162=Object['keys'](_0x5013a9),_0x302a04=_0xb1a027[_0x128d05];for(const _0x3e33ac of _0x2a74f8['getAttributeKeys']())_0x327162['includes'](_0x3e33ac)||_0x38c6c1['removeAttribute'](_0x3e33ac,_0x2a74f8);for(const _0xfd159b of _0x327162)_0x38c6c1['setAttribute'](_0xfd159b,_0x1008a6[_0x128d05][_0xfd159b],_0x2a74f8);_0x38c6c1['remove'](_0x38c6c1['createRangeIn'](_0x2a74f8)),_0x38c6c1['insert'](_0x5ea3c7['data']['parse'](_0x302a04,_0x2a74f8),_0x2a74f8,0x0);}});const _0x489cda=m(_0x5ea3c7['locale'],'Restored');if(_0x5d184d['name'])_0x3f38e8=-0x1==_0x5d184d['name']['indexOf'](_0x489cda)?_0x489cda+':\x20'+_0x5d184d['name']:_0x5d184d['name'];else _0x3f38e8=_0x489cda+':\x20'+(_0x5d184d['createdAt']['toLocaleDateString'](_0x5ea3c7['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5d184d['createdAt']['toLocaleTimeString'](_0x5ea3c7['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x597f02['saveRevision']({'name':_0x3f38e8}),_0x5d1168['isReady']=!0x0,_0x5ea3c7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|