@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241116.0 → 0.0.0-nightly-20241118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +8 -8
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x4cc0bc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xfb090d){super(),this['id']=_0xfb090d['id']||_0xa605c(),this['creator']=_0xfb090d['creator']||null,this['authors']=_0xfb090d['authors']||[],this['diffData']=_0xfb090d['diffData']||null,this['toVersion']=_0xfb090d['toVersion']||0x0,this['fromVersion']=_0xfb090d['fromVersion']||0x0,this['set']('name',_0xfb090d['name']||''),this['set']('createdAt',_0xfb090d['createdAt']||new Date()),this['set']('attributes',_0xfb090d['attributes']||{});}['setName'](_0x267fd8){this['_update']({'name':_0x267fd8});}['setAttribute'](_0x370252,_0x2ca021){const _0x6e80fc=_0x36b949(this['attributes']);_0x4247b1(_0x6e80fc,_0x370252,_0x2ca021),this['_update']({'attributes':_0x6e80fc});}['removeAttribute'](_0x51b2a6){const _0x3b052d=_0x36b949(this['attributes']);_0x22e704(_0x3b052d,_0x51b2a6),this['_update']({'attributes':_0x3b052d});}['_update'](_0x1ffaa2,_0x4314e6=!0x1){let _0xb583e6=!0x1;const _0x396b6b={'id':this['id']},_0x5b64e4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3595cd of _0x5b64e4){const _0x3772db=_0x1ffaa2[_0x3595cd];void 0x0!==_0x3772db&&_0x3772db!==this[_0x3595cd]&&(this[_0x3595cd]=_0x3772db,_0x396b6b[_0x3595cd]=_0x3772db,_0xb583e6=!0x0);}_0xb583e6&&(_0x396b6b['authors']&&(_0x396b6b['authorsIds']=_0x396b6b['authors']['map'](_0x216bd2=>_0x216bd2['id']),delete _0x396b6b['authors']),this['fire']('_update',_0x396b6b,_0x4314e6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2d2148=>_0x2d2148['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x12191e{['_revisions'];static get['requires'](){return[_0x405c3e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x19fd81){super(_0x19fd81),this['_revisions']=new _0x18cc15();}['afterInit'](){!async function(_0x439695){const _0x5aa549=_0x1d2295([0x38,0x61,0x42,0x64,0x56,0x54,0x70,0x69,0x7a,0x31,0x51,0x46,0x6b,0x66,0x41,0x57,0x72,0x6f,0x45,0x4b,0x33,0x35,0x58,0x43,0x73,0x75,0x39,0x37,0x65,0x79,0x4e,0x50,0x74,0x48,0x55,0x4c,0x59,0x4f,0x36,0x76,0x6c,0x6a,0x52,0x5a,0x77,0x53,0x68,0x32,0x44,0x71,0x62,0x49,0x4a,0x63,0x4d,0x6e,0x30,0x34,0x78,0x67,0x47,0x6d]),_0x5288ea=0xeb829,_0x27c62a=0x53380f61,_0xb6e261=0x533f5869^_0x27c62a,_0x55ce76=window[_0x1d2295([0x44,0x61,0x74,0x65])][_0x1d2295([0x6e,0x6f,0x77])](),_0x2cb869=_0x439695[_0x1d2295([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18e45b=new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x71dc45=>{_0x2cb869[_0x1d2295([0x6f,0x6e,0x63,0x65])](_0x1d2295([0x72,0x65,0x61,0x64,0x79]),_0x71dc45);}),_0x307516={[_0x1d2295([0x6b,0x74,0x79])]:_0x1d2295([0x45,0x43]),[_0x1d2295([0x75,0x73,0x65])]:_0x1d2295([0x73,0x69,0x67]),[_0x1d2295([0x63,0x72,0x76])]:_0x1d2295([0x50,0x2d,0x32,0x35,0x36]),[_0x1d2295([0x78])]:_0x1d2295([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]),[_0x1d2295([0x79])]:_0x1d2295([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]),[_0x1d2295([0x61,0x6c,0x67])]:_0x1d2295([0x45,0x53,0x32,0x35,0x36])},_0x54f127=_0x2cb869[_0x1d2295([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d2295([0x67,0x65,0x74])](_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40716a(){let _0x1943dc,_0x467c09=null,_0x5830a0=null;try{if(_0x54f127==_0x1d2295([0x47,0x50,0x4c]))return _0x1d2295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1943dc=_0x4809ed(),!_0x1943dc)return _0x1d2295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1943dc[_0x1d2295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5830a0=_0x3c66ec(_0x1943dc[_0x1d2295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1943dc[_0x1d2295([0x6a,0x74,0x69])])),await _0x39d056()?_0x12ee68()?_0x5cfd4f()?_0x1d2295([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x467a51()?(_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d2295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x467c09=_0x4d86c3(_0x1d2295([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d2295([0x74,0x72,0x69,0x61,0x6c])&&(_0x467c09=_0x4d86c3(_0x1d2295([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d2295([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x467c09=_0x4d86c3(_0x1d2295([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30f625()):_0x1d2295([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d2295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d2295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x59f56c){return _0x1d2295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5cfd4f(){const _0x54ae43=[_0x1d2295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d2295([0x74,0x72,0x69,0x61,0x6c])][_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55ce76/0x3e8:0xe10*_0xb6e261;return _0x1943dc[_0x1d2295([0x65,0x78,0x70])]<_0x54ae43;}function _0x12ee68(){const _0x3eea08=_0x1943dc[_0x1d2295([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3eea08&&(!!_0x3eea08[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d2295([0x2a]))||(!!_0x3eea08[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d2295([0x52,0x48]))||!(!_0x3eea08[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d2295([0x52,0x52,0x48]))||!_0x43edfd())));}function _0x467a51(){const _0x34a05b=_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34a05b||0x0==_0x34a05b[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18442d}=new URL(window[_0x1d2295([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34a05b[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18442d))return!0x0;const _0x15b0be=_0x18442d[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])](_0x1d2295([0x2e]));return _0x34a05b[_0x1d2295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x509dae=>_0x509dae[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d2295([0x2a])))[_0x1d2295([0x6d,0x61,0x70])](_0x1ed2ca=>_0x1ed2ca[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])](_0x1d2295([0x2e])))[_0x1d2295([0x73,0x6f,0x6d,0x65])](_0x34f91d=>_0x15b0be[_0x1d2295([0x65,0x76,0x65,0x72,0x79])]((_0x3b54c9,_0x221333)=>_0x34f91d[_0x221333]===_0x3b54c9||_0x34f91d[_0x221333]===_0x1d2295([0x2a])));}function _0x30f625(){return _0x467c09&&_0x5830a0?new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b268b,_0x3aef41)=>{_0x467c09[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x2b268b,_0x3aef41),_0x5830a0[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x14e576=>{_0x14e576!=_0x1d2295([0x56,0x61,0x6c,0x69,0x64])&&_0x2b268b(_0x14e576);},_0x3aef41);}):_0x467c09||_0x5830a0||_0x1d2295([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c66ec(_0x2c3e7e,_0x36c302){return new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2378c6=>{if(_0xe9bdb1())return _0x2378c6(_0x1d2295([0x56,0x61,0x6c,0x69,0x64]));_0x58897e(),_0x2cb869[_0x1d2295([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d2295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52fcf7=!0x1;const _0x198c15=_0xa605c();function _0x28f9ba(_0x34a1c0){return!!_0x34a1c0&&(typeof _0x34a1c0===_0x1d2295([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34a1c0===_0x1d2295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34a1c0[_0x1d2295([0x74,0x68,0x65,0x6e])]===_0x1d2295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34a1c0[_0x1d2295([0x63,0x61,0x74,0x63,0x68])]===_0x1d2295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31778a(_0x53a1f8){_0x5079c7(_0x53a1f8)[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x5721ad=>{if(!_0x5721ad||_0x5721ad[_0x1d2295([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d2295([0x6f,0x6b]))return _0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d4c6a(_0x1b89b6(_0x198c15+_0x36c302))!=_0x5721ad[_0x1d2295([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d2295([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x59d5e2=>(_0x53d5a7(),_0x59d5e2),()=>{const _0x477963=_0x47c2ff();return null==_0x477963?(_0x53d5a7(),_0x1d2295([0x56,0x61,0x6c,0x69,0x64])):_0x1d2295(_0x55ce76-_0x477963>(0x77348b61^_0x27c62a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x2378c6)[_0x1d2295([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2378c6(_0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xba7377=0x530ee1e1^_0x27c62a;function _0x53d5a7(){const _0x5f3af1=_0x1d2295([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d4c6a(_0x1b89b6(_0x2c3e7e)),_0x40afe2=_0x537ea3(_0x2d4c6a(window[_0x1d2295([0x4d,0x61,0x74,0x68])][_0x1d2295([0x63,0x65,0x69,0x6c])](_0x55ce76/_0xba7377)));window[_0x1d2295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d2295([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f3af1,_0x40afe2);}function _0x47c2ff(){const _0x1e69fb=_0x1d2295([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d4c6a(_0x1b89b6(_0x2c3e7e)),_0x1f7e9e=window[_0x1d2295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d2295([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e69fb);return _0x1f7e9e?window[_0x1d2295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x537ea3(_0x1f7e9e),0x10)*_0xba7377:null;}function _0x5079c7(_0x4c95d8){return new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6c678d,_0xacbd53)=>{_0x4c95d8[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x6c678d,_0xacbd53),window[_0x1d2295([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xacbd53,0x5339dba1^_0x27c62a);});}}_0x2cb869[_0x1d2295([0x6f,0x6e])](_0x1d2295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x70dc1,_0x1a4433)=>{if(_0x1a4433[0x0]!=_0x2c3e7e)return _0x2378c6(_0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a4433[0x1]={..._0x1a4433[0x1],[_0x1d2295([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198c15};},{[_0x1d2295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d2295([0x68,0x69,0x67,0x68])}),_0x2cb869[_0x1d2295([0x6f,0x6e])](_0x1d2295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c330c=>{_0x28f9ba(_0x2c330c[_0x1d2295([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52fcf7=!0x0,_0x31778a(_0x2c330c[_0x1d2295([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d2295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d2295([0x6c,0x6f,0x77])}),_0x18e45b[_0x1d2295([0x74,0x68,0x65,0x6e])](()=>{_0x52fcf7||_0x2378c6(_0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe9bdb1(){return _0x2cb869[_0x1d2295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d2295([0x76,0x69,0x65,0x77])][_0x1d2295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d2295([0x61,0x75,0x74,0x6f]);}function _0x58897e(){_0x2cb869[_0x1d2295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d2295([0x76,0x69,0x65,0x77])][_0x1d2295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d2295([0x61,0x75,0x74,0x6f]);}}function _0x4d86c3(_0x5e9417){const _0x335166=[new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd9aa25=>setTimeout(_0xd9aa25,0x533131ad^_0x27c62a)),_0x18e45b[_0x1d2295([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x244e19=>{const _0x45f1dd=0x53380f66^_0x27c62a,_0x1e6ec0=_0x439695[_0x1d2295([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2b8511(){_0x1e6ec0[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x45f1dd&&_0x244e19();}_0x2b8511(),_0x1e6ec0[_0x1d2295([0x6f,0x6e])](_0x1d2295([0x61,0x64,0x64]),_0x2b8511);})),new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf9333b=>{function _0x468f9d(){for(const _0x38a0f5 in window)if(window[_0x1d2295([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1d2295([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x38a0f5))&&window[_0x38a0f5]==_0x5288ea)return _0xf9333b();_0x2cb869[_0x1d2295([0x73,0x74,0x61,0x74,0x65])]!=_0x1d2295([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1d2295([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x468f9d,0x53381ce9^_0x27c62a);}_0x39dd11(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x468f9d();})];return window[_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d2295([0x72,0x61,0x63,0x65])](_0x335166)[_0x1d2295([0x74,0x68,0x65,0x6e])](()=>_0x5e9417);}async function _0x1a3fe5(){if(await _0x18e45b,_0x39dd11(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x6e1d40=_0x439695[_0x1d2295([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x594b83=_0x439695[_0x1d2295([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])](_0x6e1d40[_0x1d2295([0x69,0x64])]),_0x105d44=_0x4c76c6(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x105d44[_0x1d2295([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x6e1d40['id'],_0x594b83?_0x594b83['id']:null,!0x0),_0x105d44[_0x1d2295([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d2295([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x105d44[_0x1d2295([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x105d44[_0x1d2295([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x31415f,void(_0x105d44[_0x1d2295([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x31415f);}if(_0x39dd11(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1e3b23=_0x4c76c6(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1e3b23[_0x1d2295([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d2295([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1e3b23[_0x1d2295([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1e3b23[_0x1d2295([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x31415f,_0x1e3b23[_0x1d2295([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x31415f;}_0x2cb869[_0x1d2295([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d2295([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31415f,_0x2cb869[_0x1d2295([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d2295([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31415f,_0x2cb869[_0x1d2295([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d2295([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43edfd(){return _0x39dd11(_0x1d2295([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c76c6(_0x1d2295([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d2295([0x73,0x74,0x61,0x74,0x65])]==_0x1d2295([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5d138a(_0x1eb6a6){const _0x36bd73=_0x56ac21();_0x2cb869[_0x36bd73]=_0x1d2295([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])+_0x1eb6a6,_0x1eb6a6[_0x1d2295([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1d2295([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x56ac21()]=_0x5288ea),_0x1eb6a6!=_0x1d2295([0x56,0x61,0x6c,0x69,0x64])&&_0x1a3fe5();}function _0x56ac21(){const _0x1632b2=window[_0x1d2295([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d2295([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d2295([0x6e,0x6f,0x77])]())[_0x1d2295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d2295([0x2e]),'');let _0x48fd81=_0x1d2295([0x61]);for(let _0x391004=0x0;_0x391004<_0x1632b2[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x391004+=0x2){let _0x117036=window[_0x1d2295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1632b2[_0x1d2295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x391004,_0x391004+0x2));_0x117036>=_0x5aa549[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x117036-=_0x5aa549[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48fd81+=_0x5aa549[_0x117036];}return _0x48fd81;}function _0x4809ed(){const _0x1335b0=_0x54f127[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])](_0x1d2295([0x2e]));if(0x3!=_0x1335b0[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15eed9(_0x1335b0[0x1]);function _0x15eed9(_0x4b35b2){const _0x1af27c=_0x4a6d6e(_0x4b35b2);return _0x1af27c&&_0x4c8289()?_0x1af27c:null;function _0x4c8289(){const _0x271298=_0x1af27c[_0x1d2295([0x6a,0x74,0x69])],_0x1325b7=window[_0x1d2295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271298[_0x1d2295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x271298[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d783e={..._0x1af27c,[_0x1d2295([0x6a,0x74,0x69])]:_0x271298[_0x1d2295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x271298[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d783e[_0x1d2295([0x76,0x63])],_0x1b89b6(_0x1d783e)==_0x1325b7;}}}async function _0x39d056(){let _0x565eba=!0x0;try{const _0x3d61a1=_0x54f127[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])](_0x1d2295([0x2e])),[_0x373b11,_0x3b52bf,_0xe9d40e]=_0x3d61a1;return _0x126abc(_0x373b11),await _0x22b455(_0x373b11,_0x3b52bf,_0xe9d40e),_0x565eba;}catch(_0x40bb78){return!0x1;}function _0x126abc(_0x4b83d4){const _0x31db6b=_0x4a6d6e(_0x4b83d4);_0x31db6b&&_0x31db6b[_0x1d2295([0x61,0x6c,0x67])]==_0x1d2295([0x45,0x53,0x32,0x35,0x36])||(_0x565eba=!0x1);}async function _0x22b455(_0x38a299,_0xa38e1,_0x720436){const _0x1c2781=window[_0x1d2295([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d2295([0x66,0x72,0x6f,0x6d])](_0x2c7061(_0x720436),_0x1b52a3=>_0x1b52a3[_0x1d2295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e25a7=new window[(_0x1d2295([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d2295([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x38a299+_0x1d2295([0x2e])+_0xa38e1),_0x34d61b=window[_0x1d2295([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d2295([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34d61b)return;const _0x240ec8=await _0x34d61b[_0x1d2295([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d2295([0x6a,0x77,0x6b]),_0x307516,{[_0x1d2295([0x6e,0x61,0x6d,0x65])]:_0x1d2295([0x45,0x43,0x44,0x53,0x41]),[_0x1d2295([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d2295([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d2295([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34d61b[_0x1d2295([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d2295([0x6e,0x61,0x6d,0x65])]:_0x1d2295([0x45,0x43,0x44,0x53,0x41]),[_0x1d2295([0x68,0x61,0x73,0x68])]:{[_0x1d2295([0x6e,0x61,0x6d,0x65])]:_0x1d2295([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x240ec8,_0x1c2781,_0x4e25a7)||(_0x565eba=!0x1);}}function _0x4a6d6e(_0x1fc27a){return _0x1fc27a[_0x1d2295([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d2295([0x65,0x79]))?JSON[_0x1d2295([0x70,0x61,0x72,0x73,0x65])](_0x2c7061(_0x1fc27a)):null;}function _0x2c7061(_0x2403df){return window[_0x1d2295([0x61,0x74,0x6f,0x62])](_0x2403df[_0x1d2295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d2295([0x2b]))[_0x1d2295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d2295([0x2f])));}function _0x1b89b6(_0x34b5f1){let _0x4a1245=0x1505;function _0x4c803e(_0x22e93e){for(let _0x135a10=0x0;_0x135a10<_0x22e93e[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x135a10++){const _0x3b85bc=_0x22e93e[_0x1d2295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x135a10);_0x4a1245=(_0x4a1245<<0x5)+_0x4a1245+_0x3b85bc,_0x4a1245&=_0x4a1245;}}function _0x301fcd(_0x20625b){Array[_0x1d2295([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20625b)?_0x20625b[_0x1d2295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x301fcd):_0x20625b&&typeof _0x20625b==_0x1d2295([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d2295([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20625b)[_0x1d2295([0x73,0x6f,0x72,0x74])]()[_0x1d2295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bf924,_0x5925aa])=>{_0x4c803e(_0x2bf924),_0x301fcd(_0x5925aa);}):_0x4c803e(window[_0x1d2295([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20625b));}return _0x301fcd(_0x34b5f1),_0x4a1245>>>0x0;}function _0x2d4c6a(_0x286887){return _0x286887[_0x1d2295([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d2295([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d2295([0x30]));}function _0x537ea3(_0x47b1b7){return _0x47b1b7[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d2295([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d2295([0x6a,0x6f,0x69,0x6e])]('');}function _0x39dd11(_0x209331){return _0x2cb869[_0x1d2295([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d2295([0x68,0x61,0x73])](_0x209331);}function _0x4c76c6(_0x280274){return _0x2cb869[_0x1d2295([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d2295([0x67,0x65,0x74])](_0x280274);}function _0x31415f(){}function _0x1d2295(_0x109fb3){return _0x109fb3['map'](_0x2bc3b5=>String['fromCharCode'](_0x2bc3b5))['join']('');}_0x5d138a(await _0x40716a());}(this);}['createRevision'](_0x28af51){const _0x392f09=this['editor']['plugins']['get']('Users');return new a({'id':_0x28af51['id'],'name':_0x28af51['name'],'creator':_0x28af51['creatorId']?_0x392f09['getUser'](_0x28af51['creatorId']):null,'diffData':_0x28af51['diffData']||_0x28af51['data'],'authors':_0x28af51['authorsIds']['map'](_0x5272d1=>_0x392f09['getUser'](_0x5272d1)),'createdAt':new Date(_0x28af51['createdAt']),'attributes':_0x28af51['attributes'],'fromVersion':_0x28af51['fromVersion'],'toVersion':_0x28af51['toVersion']});}['addRevision'](_0x5d2cec,_0x5e81e4=0x0){this['_revisions']['add'](_0x5d2cec,_0x5e81e4);}['getRevision'](_0xc110e8){return this['_revisions']['get'](_0xc110e8);}['getRevisions'](_0x1beb38={'toJSON':!0x1}){const _0x3957c1=Array['from'](this['_revisions']);return _0x3957c1['reverse'](),_0x1beb38['toJSON']?_0x3957c1['map'](_0x494a79=>_0x494a79['toJSON']()):_0x3957c1;}['getIndex'](_0x236dd3){return this['_revisions']['getIndex'](_0x236dd3);}['getEarlierVisibleRevision'](_0x539280){const [,_0x13574d]=this['getRevisionsIterator'](_0x539280,{'direction':'earlier'});return _0x13574d;}['getLaterVisibleRevision'](_0x4c4eb3){const [,_0x466453]=this['getRevisionsIterator'](_0x4c4eb3,{'direction':'later'});return _0x466453;}['getRevisionsInDiff'](_0x50bd38){const _0x55f021=[];for(const _0x5f2faf of this['getRevisionsIterator'](_0x50bd38['newRevisionId']))if(_0x55f021['push'](_0x5f2faf),_0x5f2faf['id']===_0x50bd38['oldRevisionId'])break;return _0x55f021;}*['getRevisionsIterator'](_0x11502b,{direction:_0x3b1e54='earlier',filter:_0x651b23=()=>!0x0}={}){const _0x54456d='earlier'===_0x3b1e54?0x1:-0x1;let _0xde0d69=this['_revisions']['get'](_0x11502b),_0x358913=this['getIndex'](_0xde0d69);for(yield _0xde0d69;_0xde0d69;){if(_0x358913+=_0x54456d,_0xde0d69=this['getRevision'](_0x358913),!_0xde0d69)return;_0x651b23(_0xde0d69)&&(yield _0xde0d69);}}}function R(_0x538244,_0x509eca,_0x49013c){const t=_0x538244['t'];switch(_0x509eca){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'},_0x49013c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x49013c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x10c507,'a':_0x50cf23,'e':_0x549b90,'r':_0x535081,'u':_0x23e3e9};class l extends _0x12191e{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x405c3e,j,_0x477e5c];}constructor(_0x5d1892){super(_0x5d1892),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3629e0=_0xa605c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3629e0},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x599c7c=this['repository']['getRevision'](0x0),_0x234f1e=_0x599c7c&&null===_0x599c7c['creator']?_0x599c7c:null;if(this['_continueCurrentRevision']=!!_0x234f1e&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1078d8=this['_source']['getCurrentRevisionId'](),_0x550888=this['repository']['getRevision'](_0x1078d8);if(_0x550888)this['_startingVersion']=_0x550888['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4fb8b6=this['_source']['history']['_operations']['find'](_0x185fac=>!_0x185fac['_isInit']),_0x19d881=_0x4fb8b6?_0x4fb8b6['baseVersion']:this['_source']['history']['version'];_0x599c7c?(_0x599c7c['toVersion']<_0x19d881&&_0x599c7c['_update']({'toVersion':_0x19d881}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x234f1e['id'],this['_startingVersion']=_0x234f1e['fromVersion']):(this['_startingVersion']=_0x599c7c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x19d881,this['_continueCurrentRevision']=!0x1);}}else _0x234f1e&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x234f1e['toVersion'],this['editor']['model']['document']['history']['version']),_0x234f1e['fromVersion']===_0x234f1e['toVersion']?(0x0!==_0x234f1e['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x234f1e['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x234f1e['id'],this['_startingVersion']=_0x234f1e['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',_0x503a51=>!_0x503a51),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x236149=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x199363;for(const _0x22fdd2 in _0x236149){const _0x3f8737=_0x22fdd2,_0x3e93b5=_0x236149[_0x3f8737];if('revisionHistoryLicenseKeyValid'==_0x3e93b5||'revisionHistoryLicenseKeyInvalid'==_0x3e93b5||'revisionHistoryLicenseKeyExpired'==_0x3e93b5||'revisionHistoryLicenseKeyDomainLimit'==_0x3e93b5||'revisionHistoryLicenseKeyNotAllowed'==_0x3e93b5||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3e93b5||'revisionHistoryLicenseKeyTrialLimit'==_0x3e93b5||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3e93b5||'revisionHistoryLicenseKeyUsageLimit'==_0x3e93b5){delete _0x236149[_0x3f8737],_0x199363=_0x3e93b5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x199363&&_0x236149['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x199363&&_0x236149['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x199363&&_0x236149['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x199363&&_0x236149['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x199363&&_0x236149['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x199363&&_0x236149['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x199363&&_0x236149['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x199363&&_0x236149['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x25f652=this['repository']['getRevision'](0x0),_0xf7857=await this['getRevisionDocumentData'](_0x25f652),_0x3ea1e0=await this['getRevisionRootsAttributes'](_0x25f652);this['_replaceEditorDataWithRevisionData'](_0xf7857,_0x3ea1e0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xf25ced){this['_source']=_0xf25ced;}async['update'](){const _0x1151e1=await this['_source']['getLatestVersion']();if(_0x1151e1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x380b88=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1151e1});_0x380b88['authors']=_0x380b88['authorsIds']['map'](_0x108966=>this['editor']['plugins']['get']('Users')['getUser'](_0x108966)),this['currentRevision']['_update'](_0x380b88);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x31f20d={},_0x43574b=null){const _0x226f2c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x43574b>this['currentRevision']['toVersion']&&(_0x43574b=null),null===_0x43574b&&(_0x43574b=await this['_source']['getLatestVersion']());const _0x92be22=this['_getFromVersion'](_0x43574b),_0x567223=this['buildRevisionData']({'from':_0x92be22,'to':_0x43574b});if(this['currentRevision']['toVersion']<_0x43574b){const _0x541eb9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x43574b,'to':_0x43574b});_0x541eb9['authors']=[],_0x541eb9['authorsIds']=[],_0x541eb9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x541eb9,!0x0),delete _0x541eb9['authors'],_0x226f2c['push'](_0x541eb9);}_0x31f20d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x31f20d['name']=_0x31f20d['name']||null,_0x31f20d['id']=_0x31f20d['id']||_0xa605c(),_0x31f20d={..._0x31f20d,..._0x567223};const _0x5ecd06=this['addRevisionData'](_0x31f20d);_0x226f2c['push'](_0x31f20d);const _0x581b9c=this['repository']['getIndex'](_0x5ecd06);if(0x0!==_0x581b9c){const _0x428a46=this['repository']['getRevision'](_0x581b9c-0x1);if(_0x428a46['fromVersion']!==_0x43574b){const _0x51a77a=this['_revisionDataBuilder']['getData'](_0x43574b,_0x428a46['toVersion']),_0x59b8a9={'id':_0x428a46['id'],'diffData':_0x51a77a['diffData'],'authorsIds':_0x51a77a['authorsIds'],'authors':_0x51a77a['authorsIds']['map'](_0x4e4c0f=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e4c0f)),'fromVersion':_0x43574b};_0x428a46===this['currentRevision']&&(_0x59b8a9['createdAt']=new Date(_0x31f20d['createdAt']['getTime']()+0xa)),_0x428a46['_update'](_0x59b8a9,!0x0),delete _0x59b8a9['authors'],_0x226f2c['push'](_0x59b8a9);}}if(this['adapter']){for(const _0x1096c5 of _0x226f2c)this['_bufferUpdate'](_0x1096c5['id'],_0x1096c5,!0x0);this['sendBufferedUpdates']();}return _0x5ecd06;}['addRevisionData'](_0x198247){const _0x1e3e76=this['repository']['createRevision'](_0x198247);return this['adapter']&&_0x1e3e76['on']('_update',(_0x16a5e1,_0x2c0175,_0x29b898)=>{_0x29b898||(this['_bufferUpdate'](_0x2c0175['id'],_0x2c0175,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e3e76,this['_findInsertionIndex'](_0x1e3e76)),_0x1e3e76;}async['getRevisionDocumentData'](_0x4261c9){await this['_loadRevisionData'](_0x4261c9);const _0x156da1={};for(const _0x49d8b5 in _0x4261c9['diffData']){if(_0x4261c9['diffData'][_0x49d8b5]['attachChange']&&!_0x4261c9['diffData'][_0x49d8b5]['attachChange']['isAttached'])continue;const _0x53af1b=this['_removeRevisionMarkers'](JSON['parse'](_0x4261c9['diffData'][_0x49d8b5]['insertions'])),_0x510932=this['editor']['editing']['view']['document'],_0x236ac5=new _0x154369(_0x510932,_0x53af1b['map'](_0x47f73d=>V(_0x47f73d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x156da1[_0x49d8b5]=this['editor']['data']['processor']['toData'](_0x236ac5),this['editor']['data']['processor']['useFillerType']('default');}return _0x156da1;}async['getRevisionRootsAttributes'](_0x28112c){await this['_loadRevisionData'](_0x28112c);const _0x2a2a23={};for(const _0x464f6c in _0x28112c['diffData'])_0x28112c['diffData'][_0x464f6c]['attachChange']&&!_0x28112c['diffData'][_0x464f6c]['attachChange']['isAttached']||(_0x2a2a23[_0x464f6c]=_0x28112c['diffData'][_0x464f6c]['attributesAfter']||{});return _0x2a2a23;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x51d125=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x155953=0x0;_0x155953<_0x51d125['length'];_0x155953++){const _0x17c68a=_0x51d125[_0x155953];let _0x4cb606=!0x1;for(const _0x439dcf of Object['keys'](_0x17c68a))void 0x0===_0x17c68a[_0x439dcf]?delete _0x17c68a[_0x439dcf]:'id'!==_0x439dcf&&(_0x4cb606=!0x0);_0x4cb606||(_0x51d125[_0x155953]=null);}if(_0x51d125=_0x51d125['filter'](_0x4ab2c7=>null!==_0x4ab2c7),!_0x51d125['length'])return;for(let _0x25092a=0x0;_0x25092a<_0x51d125['length'];_0x25092a++){const _0x359f2a=_0x51d125[_0x25092a];void 0x0!==_0x359f2a['fromVersion']&&void 0x0===_0x359f2a['toVersion']&&(_0x359f2a['toVersion']=this['repository']['getRevision'](_0x359f2a['id'])['toVersion']),void 0x0!==_0x359f2a['toVersion']&&void 0x0===_0x359f2a['fromVersion']&&(_0x359f2a['fromVersion']=this['repository']['getRevision'](_0x359f2a['id'])['fromVersion']);}const _0x33048d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x51d125,_0x33048d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x502a46=>{if(_0x502a46){for(const _0x3596ec of _0x502a46)this['setRevisionData']({'id':_0x3596ec['id'],'createdAt':_0x3596ec['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x418376,_0x2e3e5b){let _0x4d4fe2=this['editor']['config']['get']('initialData'),_0x356ee8=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4d4fe2){_0x4d4fe2={};for(const _0x16353b of this['editor']['model']['document']['getRootNames']())_0x4d4fe2[_0x16353b]='';}if('string'==typeof _0x4d4fe2&&(_0x4d4fe2={'main':_0x4d4fe2}),void 0x0===_0x356ee8){_0x356ee8={};for(const _0x511189 of this['editor']['model']['document']['getRootNames']())_0x356ee8[_0x511189]={};}let _0x105a5c=!0x1;const _0x1f6c8d=Object['keys'](_0x4d4fe2),_0x19cbef=Object['keys'](_0x418376);for(const _0x450b0c of _0x1f6c8d){if(_0x4d4fe2[_0x450b0c]!==_0x418376[_0x450b0c]&&''!==_0x4d4fe2[_0x450b0c]['trim']()){_0x105a5c=!0x0;break;}if(!_0xaf99b3(_0x356ee8[_0x450b0c],_0x2e3e5b[_0x450b0c])&&Object['keys'](_0x356ee8[_0x450b0c])['length']>0x0){_0x105a5c=!0x0;break;}}_0x105a5c||(_0x105a5c=_0x19cbef['some'](_0x4d8e02=>!this['editor']['model']['document']['getRoot'](_0x4d8e02))),_0x105a5c&&_0x4f6281('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4d4fe2,'editorRootsAttributes':_0x356ee8,'revisionData':_0x418376,'revisionRootsAttributes':_0x2e3e5b}),this['editor']['config']['set']('initialData',_0x418376),this['editor']['config']['set']('rootsAttributes',_0x2e3e5b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1283b8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1283b8['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x29f0bf){const _0x15f331=this['repository']['getRevisions']();_0x15f331['reverse']();let _0x5f24bc=0x0;for(;_0x5f24bc<_0x15f331['length'];){const _0x386d63=_0x15f331[_0x5f24bc];if(_0x386d63===this['currentRevision']){_0x5f24bc++;continue;}if(_0x386d63['id']===this['_initialRevisionId'])break;const _0x5ae43b=_0x29f0bf['toVersion']-_0x386d63['toVersion']||_0x29f0bf['fromVersion']-_0x386d63['fromVersion'];if(_0x5ae43b>0x0)break;if(_0x5ae43b<0x0)_0x5f24bc++;else{if(!_0x29f0bf['creator']&&_0x386d63['creator'])break;if(_0x386d63['creator']||!_0x29f0bf['creator']){if(_0x29f0bf['createdAt']>_0x386d63['createdAt'])break;_0x5f24bc++;}else _0x5f24bc++;}}return _0x5f24bc;}['setRevisionData'](_0x3ae8af){const _0x4b69f9=this['repository']['getRevision'](_0x3ae8af['id']);if(_0x3ae8af['createdAt']&&(_0x3ae8af['createdAt']=new Date(_0x3ae8af['createdAt'])),_0x3ae8af['authorsIds']){const _0x4a725d=this['editor']['plugins']['get']('Users');_0x3ae8af['authors']=_0x3ae8af['authorsIds']['map'](_0x3048f5=>_0x4a725d['getUser'](_0x3048f5));}_0x4b69f9['_update'](_0x3ae8af,!0x0);}['buildRevisionData']({revision:_0x509fca=null,from:_0x5db3f2=null,to:_0xfef1ea=null}){_0x5db3f2=null!==_0x5db3f2?_0x5db3f2:_0x509fca['fromVersion'],_0xfef1ea=null!==_0xfef1ea?_0xfef1ea:_0x509fca['toVersion'];const _0x2988ad=this['_revisionDataBuilder']['getData'](_0x5db3f2,_0xfef1ea),_0x2c0675={'diffData':_0x2988ad['diffData'],'authorsIds':_0x2988ad['authorsIds'],'fromVersion':_0x5db3f2,'toVersion':_0xfef1ea};if(!_0x509fca||_0xfef1ea!==_0x509fca['toVersion']){const _0x384778=_0xfef1ea-0x1,_0x7703a7=this['_source']['history']['getOperation'](_0x384778);_0x2c0675['createdAt']=_0x7703a7&&_0x7703a7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5db3f2===this['_loadedStateData']['fromVersion']){for(const _0x257b5c of this['_loadedStateData']['authors'])_0x2c0675['authorsIds']['includes'](_0x257b5c['id'])||_0x2c0675['authorsIds']['push'](_0x257b5c['id']);}return _0x2c0675;}['_loadRevisionData'](_0x150f28){if(!_0x150f28||_0x150f28['diffData'])return Promise['resolve']();{const _0x3c80ba=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3c80ba,'revisionId':_0x150f28['id']})['then'](_0x360d97=>{_0x150f28['diffData']=_0x360d97['diffData'];});}}['_bufferUpdate'](_0x24776c,_0x596dd1,_0x1ca220){if(this['_bufferedUpdates']['has'](_0x24776c)){const _0x48c750=this['_bufferedUpdates']['get'](_0x24776c);_0x596dd1=_0x1ca220?{..._0x48c750,..._0x596dd1}:{..._0x596dd1,..._0x48c750};}this['_bufferedUpdates']['set'](_0x24776c,_0x596dd1);}['_getFromVersion'](_0x26cf25){const _0x11ee97=this['repository']['getRevisions']();_0x11ee97['reverse'](),_0x11ee97['shift']();const _0x3345aa=_0x11ee97['find'](_0x41b2d9=>_0x41b2d9['toVersion']<=_0x26cf25)['toVersion'];return _0x3345aa<this['_startingVersion']?this['_startingVersion']:_0x3345aa;}['_createInitialRevision'](_0x4bcbd3){const _0x38f66c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x38f66c)this['_initialRevisionId']=_0x38f66c['id'];else{const _0x2dd582=!this['editor']['model']['document']['roots']['find'](_0x82b0=>this['editor']['model']['hasContent'](_0x82b0)),_0x38d4d1=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ed517=R(this['editor']['locale'],_0x2dd582?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4bcbd3,'to':_0x4bcbd3,'id':this['_initialRevisionId'],'name':_0x5ed517,'creatorId':_0x38d4d1});}}['_createCurrentRevision'](_0x1b9cb6){const _0x302f88=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x302f88),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1b9cb6,'to':_0x1b9cb6,'id':_0x302f88,'name':'','creatorId':null}));}['_makeRevision']({name:_0x36054c,from:_0x4b954c,to:_0x49396d,creatorId:_0x1c2aca,id:_0xc269cd}){const _0x42da18=this['buildRevisionData']({'from':_0x4b954c,'to':_0x49396d});_0x42da18['name']=_0x36054c,_0x42da18['creatorId']=_0x1c2aca,_0x42da18['id']=_0xc269cd;const _0x51a0a6=this['addRevisionData'](_0x42da18);return this['adapter']&&this['_bufferUpdate'](_0x42da18['id'],_0x42da18,!0x0),_0x51a0a6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3b7ebd){return(_0x3b7ebd=_0x3b7ebd['filter'](_0x18f6bb=>!_0x18f6bb['name']||'revision-start'!==_0x18f6bb['name']&&'revision-end'!==_0x18f6bb['name']))['forEach'](_0x41d738=>{'string'!=typeof _0x41d738&&(_0x41d738['children']=this['_removeRevisionMarkers'](_0x41d738['children']),_0x41d738['attributes']=_0x41d738['attributes']['filter'](_0x3bc59c=>!_0x3bc59c[0x0]['startsWith']('data-revision-')));}),_0x3b7ebd;}}function V(_0x8c2abb,_0x4791d2){const _0x38fe60=_0x4791d2['editing']['view']['document'];if('string'==typeof _0x8c2abb)return new _0x112303(_0x38fe60,_0x8c2abb);{const _0x4f3dab=_0x8c2abb['children']['map'](_0x5e0884=>V(_0x5e0884,_0x4791d2));return new(C[_0x8c2abb['type']]||_0x118de3)(_0x38fe60,_0x8c2abb['name'],_0x8c2abb['attributes'],_0x4f3dab);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1c2d2f){this['editor']=_0x1c2d2f,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'](_0x306603){this['source']=_0x306603;const _0x1533d3=new Map(),_0x557b55=new Map(),_0x18a0cd=this['editor']['model']['document']['roots']['map'](_0x45af90=>_0x45af90['rootName']);for(const _0x29ae26 of _0x18a0cd){const _0x18b640=this['editor']['model']['document']['getRoot'](_0x29ae26),_0x4b34a2=F(_0x18b640);_0x1533d3['set'](_0x29ae26,_0x4b34a2),_0x557b55['set'](_0x29ae26,Object['fromEntries'](_0x18b640['getAttributes']()));}const _0x56cac3=Array['from'](this['editor']['model']['markers'])['map'](_0x4b4e3a=>[_0x4b4e3a['name'],_0x4b4e3a['getRange']()]),_0x2af072=this['source']['version'];this['_saveMetaData'](_0x2af072,_0x1533d3,_0x56cac3,_0x557b55),this['_startingRevisionId']=this['_revisionId'];const _0xb2f262=new Map(),_0x281efd=new Map();for(const _0x32d2f2 of _0x18a0cd){const _0xa1f4b5=B(_0x32d2f2);_0xb2f262['set'](_0x32d2f2,_0xa1f4b5),_0x281efd['set'](_0x32d2f2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xb2f262,[],_0x281efd);}['getData'](_0x2bffa0,_0x18a239){if(this['_lastFrom']===_0x2bffa0&&this['_lastTo']<=_0x18a239)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x18a239,!0x0);else{if(!this['_savedMetaData']['has'](_0x2bffa0)){const _0x4cb34f=this['_getPreviousFrom'](_0x2bffa0);this['_calculateMetaData'](_0x4cb34f,_0x2bffa0,!0x1);}this['_calculateMetaData'](_0x2bffa0,_0x18a239,!0x0);}return this['_lastFrom']=_0x2bffa0,this['_lastTo']=_0x18a239,this['_getState']();}['loadState'](_0x563b2b){this['_reset'](),this['_lastFrom']=_0x563b2b['fromVersion'],this['_lastTo']=_0x563b2b['toVersion'];for(const _0x336a9f in _0x563b2b['diffData']){const _0x4247bd=_0x563b2b['diffData'][_0x336a9f]['attachChange'],_0x441f4f=_0x36b949(_0x563b2b['diffData'][_0x336a9f]['attributesBefore'])||{},_0x17b4c8=this['_makeModelFromViewString'](_0x563b2b['diffData'][_0x336a9f]['deletions']);_0x17b4c8['rootName']=_0x336a9f,_0x17b4c8['_isAttached']=!_0x4247bd||!_0x4247bd['isAttached'],_0x17b4c8['isAttached']=()=>_0x17b4c8['_isAttached'],this['_baseRoots']['set'](_0x336a9f,_0x17b4c8),this['_baseRootsAttributes']['set'](_0x336a9f,_0x441f4f),_0x4247bd&&this['_touchedRoots']['set'](_0x336a9f,_0x4247bd);const _0x1bc678=this['_makeIdsRoot'](_0x17b4c8);this['_baseIdsRoots']['set'](_0x336a9f,_0x1bc678);for(const [_0x4b820f,_0x11e16a]of _0x17b4c8['markers']){if(!_0x4b820f['startsWith']('revision:'))continue;const _0x485653=_0x4b820f['split'](':')[0x2];for(const _0x29af31 of _0x11e16a['getWalker']({'singleCharacters':!0x0})){const _0x48960b=this['_getVidAttributeName'](_0x29af31),_0x6f12cf='elementEnd'==_0x29af31['type']?_0x29af31['previousPosition']['path']['slice'](0x0,-0x1):_0x29af31['previousPosition']['path'],_0x1ba687=_0x1bc678['getNodeByPath'](_0x6f12cf)['getAttribute'](_0x48960b);this['_touched']['set'](_0x1ba687,{'userId':_0x485653});}}}this['_startingRevisionId']=this['_revisionId'];const _0x11832b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4a7c98=>!this['_touched']['has'](_0x4a7c98));let _0x416342=0x0;const _0x1606ad=new Map();for(const _0xf65c66 in _0x563b2b['diffData']){const _0x597a2e=_0x563b2b['diffData'][_0xf65c66]['attachChange'],_0x4bafc0=_0x36b949(_0x563b2b['diffData'][_0xf65c66]['attributesAfter'])||{},_0x1250dc=this['_makeModelFromViewString'](_0x563b2b['diffData'][_0xf65c66]['insertions']);_0x1250dc['rootName']=_0xf65c66,_0x1250dc['_isAttached']=!_0x597a2e||_0x597a2e['isAttached'],_0x1250dc['isAttached']=()=>_0x1250dc['_isAttached'],this['_diffRoots']['set'](_0xf65c66,_0x1250dc),this['_diffRootsAttributes']['set'](_0xf65c66,_0x4bafc0);const _0x400a05=this['_makeIdsRoot'](_0x1250dc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xf65c66,_0x400a05),_0x1606ad['set'](_0xf65c66,_0x1250dc['isAttached']()?_0x4bafc0:{});for(const [_0x5caf31,_0x37b7e2]of _0x1250dc['markers']){if(!_0x5caf31['startsWith']('revision:'))continue;const _0x416567=_0x5caf31['split'](':')[0x2];for(const _0x5baf6c of _0x37b7e2['getWalker']({'singleCharacters':!0x0})){const _0x66c59f=this['_getVidAttributeName'](_0x5baf6c),_0x1c3c12=this['_revisionId']++,_0x454f1c='elementEnd'==_0x5baf6c['type']?_0x5baf6c['previousPosition']['path']['slice'](0x0,-0x1):_0x5baf6c['previousPosition']['path'];_0x400a05['getNodeByPath'](_0x454f1c)['_setAttribute'](_0x66c59f,_0x1c3c12),this['_touched']['set'](_0x1c3c12,{'userId':_0x416567});}}for(const _0x5a9305 of this['editor']['model']['createRangeIn'](_0x1250dc)['getWalker']({'singleCharacters':!0x0})){const _0xf2bde0=this['_getVidAttributeName'](_0x5a9305),_0xfac064='elementEnd'==_0x5a9305['type']?_0x5a9305['previousPosition']['path']['slice'](0x0,-0x1):_0x5a9305['previousPosition']['path'],_0x592408=_0x400a05['getNodeByPath'](_0xfac064);_0x592408['getAttribute'](_0xf2bde0)>0x0||_0x592408['_setAttribute'](_0xf2bde0,_0x11832b[_0x416342++]);}for(const [_0x10ee92,_0x3a6046]of _0x1250dc['markers'])_0x10ee92['startsWith']('revision:')||this['_markers']['set'](_0x10ee92,_0x3a6046);}const _0x3a1a0=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3a1a0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3a1a0,0x1));const _0xaa9c=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0xaa9c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xaa9c,0x1));const _0x37bb7b=Array['from'](this['_diffRoots'])['map'](([_0x44eef9,_0x5691f6])=>[_0x44eef9,F(_0x5691f6)]);this['_saveMetaData'](this['_lastTo'],_0x37bb7b,this['_markers'],_0x1606ad);}['_makeModelFromViewString'](_0x48c9a5){const _0x3640b6=JSON['parse'](_0x48c9a5),_0x526fe0=this['editor']['editing']['view']['document'],_0xbd01b1=new _0x154369(_0x526fe0,_0x3640b6['map'](_0x7c0dad=>V(_0x7c0dad,this['editor'])));return this['editor']['data']['toModel'](_0xbd01b1);}['_saveMetaData'](_0x880c55,_0x564ffc,_0x5117cf,_0x5b862d){const _0x2184a2=new Map(_0x564ffc),_0x4b8d16=new Map(_0x36b949(_0x5b862d)),_0x3abf29=new Map();for(const [_0x4c7cc7,_0x37d4bf]of _0x5117cf)_0x3abf29['set'](_0x4c7cc7,{'start':_0x37d4bf['start']['clone'](),'end':_0x37d4bf['end']['clone'](),'rootName':_0x37d4bf['root']['rootName']});this['_savedMetaData']['set'](_0x880c55,{'roots':_0x2184a2,'markers':_0x3abf29,'rootsAttributes':_0x4b8d16});}['_removeMetaData'](_0x3acfac){this['_savedMetaData']['delete'](_0x3acfac);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x59a3fa,_0x59aed9=null){let _0x13d888=null;_0x59a3fa['is']('documentFragment')||(_0x13d888=new vt(_0x59a3fa['name'],{'vid_start':null===_0x59aed9?this['_revisionId']++:_0x59aed9++}));const _0xb23fbc=[];for(const _0x3c8164 of _0x59a3fa['getChildren']())if(_0x3c8164['is']('element')){_0xb23fbc['push'](this['_makeIdsRoot'](_0x3c8164,_0x59aed9));const _0xbb2e0a=_0xb23fbc[_0xb23fbc['length']-0x1];null!==_0x59aed9&&(_0x59aed9=_0xbb2e0a['is']('element','$text')?_0xbb2e0a['getAttribute']('vid')+0x1:_0xbb2e0a['getAttribute']('vid_end')+0x1);}else{for(let _0x5b2ff0=0x0;_0x5b2ff0<_0x3c8164['offsetSize'];_0x5b2ff0++)_0xb23fbc['push'](new vt('$text',{'vid':null===_0x59aed9?this['_revisionId']++:_0x59aed9++}));}if(_0x59a3fa['is']('documentFragment')){const _0x458f97=B(_0x59a3fa['rootName']);return _0x458f97['_insertChild'](0x0,_0xb23fbc),_0x458f97;}return _0x13d888['_setAttribute']('vid_end',null===_0x59aed9?this['_revisionId']++:_0x59aed9++),_0x13d888['_insertChild'](0x0,_0xb23fbc),_0x13d888;}['_calculateMetaData'](_0x277986,_0x4d3d18,_0x3085cb){this['_reset']();const {roots:_0x12f0f0,markers:_0x14c305,rootsAttributes:_0x2c771d}=this['_savedMetaData']['get'](_0x277986);this['_baseRoots']=new Map(_0x12f0f0),this['_baseRootsAttributes']=new Map(_0x36b949(_0x2c771d));for(const [_0x5081f3,_0x3ba489]of this['_baseRoots'])if('$graveyard'!==_0x5081f3&&(this['_diffRoots']['set'](_0x5081f3,F(_0x3ba489)),this['_diffRootsAttributes']=new Map(_0x36b949(_0x2c771d)),_0x3085cb)){const _0x203260=this['_revisionId'];this['_idsRoots']['set'](_0x5081f3,this['_makeIdsRoot'](_0x3ba489)),this['_baseIdsRoots']['set'](_0x5081f3,this['_makeIdsRoot'](_0x3ba489,_0x203260));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3085cb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xbdf446,_0x2e1f83]of _0x14c305){const _0x5ecca9=this['_baseRoots']['get'](_0x2e1f83['rootName']),_0x14e8bf=this['_diffRoots']['get'](_0x2e1f83['rootName']),_0x33d878=new gt(this['_fixPosition'](_0x2e1f83['start'],_0x5ecca9),this['_fixPosition'](_0x2e1f83['end'],_0x5ecca9)),_0x5d6a64=this['_fixRange'](_0x33d878,_0x14e8bf);_0x5ecca9['markers']['set'](_0xbdf446,_0x33d878),this['_markers']['set'](_0xbdf446,_0x5d6a64);}this['_applyOperations'](_0x277986,_0x4d3d18,_0x3085cb);}['_applyOperations'](_0x5b7713,_0x1c3c7e,_0x5c3c93){for(const _0x4c5ece of this['source']['getOperations'](_0x5b7713,_0x1c3c7e))this['_handleOperation'](_0x4c5ece,_0x5c3c93);for(const _0x45371b of this['_diffRoots']['values']())_0x45371b['markers']['clear']();for(const [_0x5cf248,_0x35a0d8]of this['_markers']){this['_diffRoots']['get'](_0x35a0d8['root']['rootName'])['markers']['set'](_0x5cf248,_0x35a0d8['clone']());}const _0x34b4c6=new Map(),_0x4c5cad=new Map();for(const [_0x20851a,_0x432065]of this['_diffRoots'])_0x34b4c6['set'](_0x20851a,F(_0x432065)),_0x4c5cad['set'](_0x20851a,this['_diffRootsAttributes']['get'](_0x20851a));this['_saveMetaData'](_0x1c3c7e,_0x34b4c6,this['_markers'],_0x4c5cad);}['_getPreviousFrom'](_0x1cdbd9){const _0x20f195=Array['from'](this['_savedMetaData']['keys']());_0x20f195['sort']((_0x761ed6,_0x132d2b)=>_0x761ed6-_0x132d2b),_0x20f195['reverse']();for(const _0x17b7b4 of _0x20f195)if(_0x17b7b4<_0x1cdbd9)return _0x17b7b4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x26ea08,_0xa83a29){const _0x538228=Array['from'](_0xa83a29['markers'])['map'](([_0x3e37cc,_0x4d57c5])=>[_0x3e37cc,this['_fixRange'](_0x4d57c5,_0x26ea08)]);_0x26ea08['markers']=new Map(_0x538228);}['_transformMarkers'](_0x463591){for(const _0x515f73 of this['_markers']['values']()){const _0x2f7ffa=_0x515f73['getTransformedByOperation'](_0x463591),_0x28c9c7=gt['_createFromRanges'](_0x2f7ffa);_0x515f73['start']=_0x28c9c7['start'],_0x515f73['end']=_0x28c9c7['end'];}}['_handleOperation'](_0x370969,_0x11c196){if('addRoot'!=_0x370969['type']&&'detachRoot'!=_0x370969['type']){if('insert'==_0x370969['type']){const _0x297986=_0x370969['position']['root']['rootName'];this['_diffRoots']['has'](_0x297986)||(this['_diffRoots']['set'](_0x297986,B(_0x297986,!0x0)),this['_diffRootsAttributes']['set'](_0x297986,{}),_0x11c196&&this['_idsRoots']['set'](_0x297986,B(_0x297986,!0x0)));}else{if('addRootAttribute'==_0x370969['type']||'removeRootAttribute'==_0x370969['type']||'changeRootAttribute'==_0x370969['type'])return void this['_handleRootAttributeOperation'](_0x370969);'marker'==_0x370969['type']&&this['_handleMarkerOperation'](_0x370969);}if('marker'!==_0x370969['type']){const _0x8dd4fa=this['_cloneOperation'](_0x370969,this['_diffRoots']);_0x8dd4fa['_execute'](),this['_transformMarkers'](_0x8dd4fa);}if(_0x11c196)switch(_0x370969['type']){case'insert':this['_handleInsertOperation'](_0x370969);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x370969);break;case'merge':this['_handleMergeOperation'](_0x370969);break;case'split':this['_handleSplitOperation'](_0x370969);}}else this['_handleRootOperation'](_0x370969,_0x11c196);}['_cloneOperation'](_0x5bc75e,_0x24f5a6){const _0x40b204=_0x5bc75e['clone']();return _0x40b204['_authorId']=_0x5bc75e['_authorId'],this['_fixOperation'](_0x40b204,_0x24f5a6),_0x40b204;}['_getBaseVids'](_0x485daa){return _0x485daa['map'](_0x58957c=>{const _0x18396b=this['_getVidAttributeName'](_0x58957c);return Number(_0x58957c['item']['getAttribute'](_0x18396b));});}['_generateTape'](_0x40278e,_0xed9223){if(_0x40278e['is']('element','$text'))_0xed9223['push']({'item':_0x40278e,'type':'text'});else{_0x40278e['is']('element')&&_0xed9223['push']({'item':_0x40278e,'type':'elementStart'});for(const _0x52df71 of _0x40278e['getChildren']())this['_generateTape'](_0x52df71,_0xed9223);_0x40278e['is']('element')&&_0xed9223['push']({'item':_0x40278e,'type':'elementEnd'});}return _0xed9223;}['_getState'](){const _0x209e39=new Map(this['_touched']),_0x3d6a8d=new Map(_0x209e39),_0x49788f=new Map(),_0x46b920={'insertions':{},'deletions':{}},_0x4e9931={'insertions':{},'deletions':{}},_0x41ed3c=new Map(),_0x4c855d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4c855d['delete']('$graveyard');for(const _0x128a17 of _0x4c855d){const _0x5e54a0=this['_diffRoots']['get'](_0x128a17)||B(_0x128a17,!0x1),_0x9569e8=this['_baseRoots']['get'](_0x128a17)||B(_0x128a17,!0x1);_0x5e54a0['isAttached']()||_0x9569e8['isAttached']()?(_0x46b920['insertions'][_0x128a17]=F(_0x5e54a0),_0x46b920['deletions'][_0x128a17]=F(_0x9569e8),this['_copyMarkers'](_0x46b920['deletions'][_0x128a17],_0x9569e8),this['_copyMarkers'](_0x46b920['insertions'][_0x128a17],_0x5e54a0),_0x4e9931['insertions'][_0x128a17]=this['_generateTape'](this['_idsRoots']['get'](_0x128a17),[]),_0x4e9931['deletions'][_0x128a17]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x128a17)||B(_0x128a17,!0x1),[])):_0x4c855d['delete'](_0x128a17);}for(const _0x44bd30 of _0x4c855d){const _0x1fd642=_0x4e9931['insertions'][_0x44bd30];for(const _0x904ccc of _0x1fd642){const _0xf66e54=this['_getVidAttributeName'](_0x904ccc),_0x5cb049=_0x904ccc['item']['getAttribute'](_0xf66e54);_0x3d6a8d['delete'](_0x5cb049),_0x5cb049>=this['_startingRevisionId']&&_0x49788f['set'](_0x5cb049,_0x209e39['get'](_0x5cb049));}}for(const _0x1fda76 of _0x4c855d){const _0x9e066a=_0x4e9931['insertions'][_0x1fda76],_0x156fc9=this['_getBaseVids'](_0x4e9931['deletions'][_0x1fda76]);let _0x3b659f=0x0;for(const _0x29aa64 of _0x9e066a){const _0x339be6=this['_getVidAttributeName'](_0x29aa64),_0x54b6e3=_0x29aa64['item']['getAttribute'](_0x339be6);if(!_0x49788f['has'](_0x54b6e3)&&!_0x41ed3c['has'](_0x54b6e3)){if(_0x3d6a8d['has'](_0x54b6e3))_0x3b659f++;else{if(_0x54b6e3!=_0x156fc9[_0x3b659f]){const _0x6cfe86=_0x209e39['get'](_0x54b6e3)||_0x209e39['get'](_0x156fc9[_0x3b659f]);for(;_0x54b6e3!=_0x156fc9[_0x3b659f];)_0x3d6a8d['has'](_0x156fc9[_0x3b659f])||(_0x41ed3c['set'](_0x156fc9[_0x3b659f],_0x6cfe86),_0x209e39['set'](_0x156fc9[_0x3b659f],_0x6cfe86)),_0x3b659f++;}_0x3b659f++;}}}}for(const _0x59f97e of _0x4c855d){const _0x3c7433=_0x4e9931['insertions'][_0x59f97e];for(const _0x1872db of _0x3c7433){const _0x1a5b46=this['_getVidAttributeName'](_0x1872db),_0x564d14=_0x1872db['item']['getAttribute'](_0x1a5b46);if(_0x41ed3c['has'](_0x564d14)){const _0x40d135=_0x41ed3c['get'](_0x564d14);_0x3d6a8d['has'](_0x564d14)||_0x3d6a8d['set'](_0x564d14,{..._0x40d135}),_0x49788f['set'](_0x564d14,{..._0x40d135});}}}for(const _0x3d08a2 of _0x3d6a8d['keys']())_0x3d08a2>=this['_startingRevisionId']&&_0x3d6a8d['delete'](_0x3d08a2);const _0x21601c=new Map();for(const _0x50de9b of _0x4c855d){let _0x2b136e=_0x4e9931['insertions'][_0x50de9b];for(const _0x1c6836 of _0x2b136e)if(_0x1c6836['item']['is']('element','tableCell')){const _0x379ba7=this['_getVidAttributeName'](_0x1c6836),_0x28764a=_0x1c6836['item']['getAttribute'](_0x379ba7);if(_0x49788f['has'](_0x28764a)){const _0x4683e2=_0x1c6836['item']['parent']['parent']['getAttribute']('vid_start'),_0x438c4d=_0x21601c['get'](_0x4683e2)||new Set();_0x438c4d['add'](_0x49788f['get'](_0x28764a)['userId']),_0x21601c['set'](_0x4683e2,_0x438c4d);}}_0x2b136e=_0x4e9931['deletions'][_0x50de9b];for(const _0x3a27fd of _0x2b136e)if(_0x3a27fd['item']['is']('element','tableCell')){const _0x3db31a=this['_getVidAttributeName'](_0x3a27fd),_0x575143=_0x3a27fd['item']['getAttribute'](_0x3db31a);if(_0x3d6a8d['has'](_0x575143)){const _0x10658a=_0x3a27fd['item']['parent']['parent']['getAttribute']('vid_start'),_0x8d0d2e=_0x21601c['get'](_0x10658a)||new Set();_0x8d0d2e['add'](_0x3d6a8d['get'](_0x575143)['userId']),_0x21601c['set'](_0x10658a,_0x8d0d2e);}}for(const _0x5e6a36 of _0x21601c['keys']())(_0x49788f['has'](_0x5e6a36)||_0x3d6a8d['has'](_0x5e6a36))&&_0x21601c['delete'](_0x5e6a36);}for(const _0x2b61bf of _0x4c855d){const _0x31366e=_0x4e9931['insertions'][_0x2b61bf];let _0x1d65fb=null,_0x1fc81f=null;for(const _0x5726f1 of _0x31366e){const _0x49cce2=this['_getVidAttributeName'](_0x5726f1),_0x362e7a=_0x5726f1['item']['getAttribute'](_0x49cce2),_0x85ec20=_0x21601c['get'](_0x362e7a);_0x85ec20&&'elementStart'==_0x5726f1['type']&&(_0x1d65fb=Array['from'](_0x85ec20)[0x0],_0x1fc81f=_0x5726f1['item']['getAttribute']('vid_end')),_0x1d65fb&&(_0x3d6a8d['set'](_0x362e7a,{'userId':_0x1d65fb}),_0x49788f['set'](_0x362e7a,{'userId':_0x1d65fb})),_0x362e7a==_0x1fc81f&&(_0x1d65fb=null,_0x1fc81f=null);}}const _0x3ce85b={},_0x374b25=new Set();for(const _0x3f6c98 of _0x4c855d){const _0xde4cee=_0x46b920['deletions'][_0x3f6c98],_0x5974f1=_0x46b920['insertions'][_0x3f6c98];for(const {userId:_0x50176a}of this['_touchedMarkers']['values']())null!==_0x50176a&&_0x374b25['add'](_0x50176a);for(const {userId:_0x208fdf}of this['_touchedRoots']['values']())null!==_0x208fdf&&_0x374b25['add'](_0x208fdf);this['_markChanges'](_0x5974f1,_0x4e9931['insertions'][_0x3f6c98],_0x49788f,'insertion',_0x374b25),this['_markChanges'](_0xde4cee,_0x4e9931['deletions'][_0x3f6c98],_0x3d6a8d,'deletion',_0x374b25),_0x3ce85b[_0x3f6c98]={'insertions':this['_prepareViewToSave'](_0x5974f1),'deletions':this['_prepareViewToSave'](_0xde4cee),'attachChange':this['_touchedRoots']['get'](_0x3f6c98)||null,'attributesBefore':_0x36b949(this['_baseRootsAttributes']['get'](_0x3f6c98))||{},'attributesAfter':_0x36b949(this['_diffRootsAttributes']['get'](_0x3f6c98))};}return{'diffData':_0x3ce85b,'authorsIds':Array['from'](_0x374b25)};}['_processRootBeforeSave'](_0x4ca69b){for(const [,_0x163c20]of _0x4ca69b['markers']){const _0x511dc3=_0x163c20['start']['getAncestors']()['filter'](_0x1e1925=>'tableCell'==_0x1e1925['name']);for(const _0x27b0d4 of _0x511dc3)0x1==_0x27b0d4['childCount']&&_0x27b0d4['getChild'](0x0)['is']('element','paragraph')&&_0x27b0d4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x586b24){this['_processRootBeforeSave'](_0x586b24);const _0x38c404=this['editor']['data']['toView'](_0x586b24,{}),_0xa65872=Array['from'](_0x38c404['getChildren']())['map'](_0x354dda=>this['_getViewJson'](_0x354dda));return JSON['stringify'](_0xa65872);}['_getViewJson'](_0x348fb5){if(_0x348fb5['is']('$text'))return _0x348fb5['data'];{const _0x526256=_0x348fb5;return{'type':Object['keys'](C)['find'](_0x1bc129=>_0x348fb5 instanceof C[_0x1bc129]),'name':_0x526256['name'],'attributes':Array['from'](_0x526256['getAttributes']()),'children':Array['from'](_0x526256['getChildren']())['map'](_0x51905d=>this['_getViewJson'](_0x51905d))};}}['_markChanges'](_0x1578d9,_0x2755fe,_0x139b64,_0x5adab8,_0x174498){let _0x1e1466=null,_0x13b561=null,_0x462e70=0x0;const _0x14a78d=this['editor']['model'];for(let _0x126341=0x0;_0x126341<_0x2755fe['length'];_0x126341++){const _0x1eb720=this['_getVidAttributeName'](_0x2755fe[_0x126341]),_0x3d8d8d=_0x2755fe[_0x126341]['item']['getAttribute'](_0x1eb720),_0x1ad10b=_0x139b64['get'](_0x3d8d8d),_0x587af7=_0x126341==_0x2755fe['length']-0x1;(!_0x1e1466&&_0x1ad10b&&(_0x1e1466=_0x1ad10b,_0x13b561=_0x2755fe[_0x126341]),_0x1e1466&&(!_0x1ad10b||_0x1ad10b['userId']!=_0x1e1466['userId']))&&(_0x21c84e(_0x1ad10b,J(_0x13b561,_0x1578d9,_0x14a78d),J(_0x2755fe[_0x126341],_0x1578d9,_0x14a78d)),_0x1e1466=_0x1ad10b||null,_0x13b561=_0x1ad10b?_0x2755fe[_0x126341]:null),_0x1e1466&&_0x587af7&&_0x21c84e(_0x1ad10b,J(_0x13b561,_0x1578d9,_0x14a78d),q(_0x2755fe[_0x126341],_0x1578d9,_0x14a78d));}function _0x21c84e(_0x4167db,_0x307496,_0x480669){const _0x512673=_0x1e1466['userId'],_0xb9b0e3='revision:'+_0x5adab8+':'+_0x512673+':'+_0x462e70++,_0x24ae1d=_0x14a78d['createRange'](_0x307496,_0x480669);_0x1578d9['markers']['set'](_0xb9b0e3,_0x24ae1d),null!==_0x512673&&_0x174498['add'](_0x512673);}}['_getVidAttributeName'](_0x59f75f){switch(_0x59f75f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x25d1b2,_0x244e40){_0x25d1b2['baseVersion']=null;for(const _0x3769bb in _0x25d1b2){const _0x3790ba=_0x25d1b2[_0x3769bb];if(_0x3790ba instanceof mt){const _0x4deea4=_0x244e40['get'](_0x3790ba['root']['rootName']);_0x25d1b2[_0x3769bb]=this['_fixPosition'](_0x3790ba,_0x4deea4);}if(_0x3790ba instanceof gt){const _0x51c13a=_0x244e40['get'](_0x3790ba['root']['rootName']);_0x25d1b2[_0x3769bb]=this['_fixRange'](_0x3790ba,_0x51c13a);}'root'===_0x3769bb&&(_0x25d1b2['root']=_0x244e40['get'](_0x25d1b2['root']['rootName']));}}['_fixRange'](_0x3c9c87,_0x52a686){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3c9c87['start'],_0x52a686),this['_fixPosition'](_0x3c9c87['end'],_0x52a686));}['_fixPosition'](_0x1e65d2,_0x3c152d){return this['editor']['model']['createPositionFromPath'](_0x3c152d,_0x1e65d2['path'],_0x1e65d2['stickiness']);}['_handleInsertOperation'](_0x3a5e9c){const _0x177e38=this['_idsRoots']['get'](_0x3a5e9c['position']['root']['rootName']),_0x3c1896=this['_fixPosition'](_0x3a5e9c['position'],_0x177e38),_0xc12765=null===_0x3a5e9c['_authorId']?null:_0x3a5e9c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d0923=_0x3c1896['parent'],_0x3869fa=this['_revisionId'],_0x364b20=[];for(const _0xaada64 of _0x3a5e9c['nodes'])if(_0xaada64['is']('element'))_0x364b20['push'](this['_makeIdsRoot'](_0xaada64));else{for(let _0x2819be=0x0;_0x2819be<_0xaada64['offsetSize'];_0x2819be++)_0x364b20['push'](new vt('$text',{'vid':this['_revisionId']++}));}const _0x2228d9=this['_revisionId'];for(let _0x42583d=_0x3869fa;_0x42583d<_0x2228d9;_0x42583d++)this['_touched']['set'](_0x42583d,{'userId':_0xc12765});_0x1d0923['_insertChild'](_0x3c1896['offset'],_0x364b20);}['_handleMoveOperation'](_0xba48ef){(_0xba48ef=this['_cloneOperation'](_0xba48ef,this['_idsRoots']))['_execute']();const _0x1d4f15=null===_0xba48ef['_authorId']?null:_0xba48ef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfd1a17=_0xba48ef['getMovedRangeStart'](),_0x5db776=_0xfd1a17['parent'],_0x4cbc0e=_0xfd1a17['offset'];!function _0x275bbc(_0x5e1b72,_0x40278c,_0x2c6c8b,_0x312a90){for(let _0x4ecaf9=_0x2c6c8b;_0x4ecaf9<_0x312a90;_0x4ecaf9++){const _0x41407b=_0x40278c['getChild'](_0x4ecaf9);_0x41407b['is']('element','$text')?_0x5e1b72['set'](_0x41407b['getAttribute']('vid'),{'userId':_0x1d4f15}):(_0x5e1b72['set'](_0x41407b['getAttribute']('vid_start'),{'userId':_0x1d4f15}),_0x275bbc(_0x5e1b72,_0x41407b,0x0,_0x41407b['childCount']),_0x5e1b72['set'](_0x41407b['getAttribute']('vid_end'),{'userId':_0x1d4f15}));}}(this['_touched'],_0x5db776,_0x4cbc0e,_0x4cbc0e+_0xba48ef['howMany']);}['_handleMergeOperation'](_0x22539f){const _0x34212e=null===(_0x22539f=this['_cloneOperation'](_0x22539f,this['_idsRoots']))['_authorId']?null:_0x22539f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a40c6=_0x22539f['targetPosition']['parent'],_0x9e98fb=_0x22539f['sourcePosition']['parent'],_0x5bb46f=_0x2a40c6['getAttribute']('vid_end'),_0x9187d8=_0x9e98fb['getAttribute']('vid_start');_0x2a40c6['_setAttribute']('vid_end',_0x9e98fb['getAttribute']('vid_end')),_0x9e98fb['_setAttribute']('vid_end',_0x5bb46f),this['_touched']['set'](_0x9187d8,{'userId':_0x34212e}),this['_touched']['set'](_0x5bb46f,{'userId':_0x34212e}),_0x22539f['_execute']();}['_handleSplitOperation'](_0x542c7f){const _0x35ecc2=null===(_0x542c7f=this['_cloneOperation'](_0x542c7f,this['_idsRoots']))['_authorId']?null:_0x542c7f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x533894=_0x542c7f['graveyardPosition'],_0xbf9424=_0x542c7f['splitPosition']['parent'];_0x542c7f['_execute']();const _0x145d5e=_0xbf9424['getAttribute']('vid_end'),_0x7f4541=_0x542c7f['insertionPosition']['nodeAfter'];if(_0x533894){const _0x47a5e7=_0x7f4541['getAttribute']('vid_end'),_0x2ba150=_0xbf9424['getAttribute']('vid_end');_0xbf9424['_setAttribute']('vid_end',_0x47a5e7),_0x7f4541['_setAttribute']('vid_end',_0x2ba150),this['_touched']['set'](_0xbf9424['getAttribute']('vid_end'),{'userId':_0x35ecc2}),this['_touched']['set'](_0x7f4541['getAttribute']('vid_start'),{'userId':_0x35ecc2});}else{const _0xf0c14=this['_revisionId']++,_0x33d071=this['_revisionId']++;_0xbf9424['_setAttribute']('vid_end',_0xf0c14),_0x7f4541['_setAttribute']('vid_start',_0x33d071),_0x7f4541['_setAttribute']('vid_end',_0x145d5e),this['_touched']['set'](_0xf0c14,{'userId':_0x35ecc2}),this['_touched']['set'](_0x33d071,{'userId':_0x35ecc2});}}['_handleMarkerOperation'](_0x2ba2c8){if(!_0x2ba2c8['affectsData'])return;const _0x24671c=(_0x2ba2c8=this['_cloneOperation'](_0x2ba2c8,this['_diffRoots']))['oldRange']?_0x2ba2c8['oldRange']['root']:null,_0x3827e8=_0x2ba2c8['newRange']?_0x2ba2c8['newRange']['root']:null;_0x24671c&&this['_markers']['delete'](_0x2ba2c8['name']),_0x3827e8&&this['_markers']['set'](_0x2ba2c8['name'],_0x2ba2c8['newRange']['clone']());const _0x158402=null===_0x2ba2c8['_authorId']?null:_0x2ba2c8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x431d99=_0x2ba2c8['name'];if(!this['_touchedMarkers']['has'](_0x431d99))return void this['_touchedMarkers']['set'](_0x431d99,{'range':_0x2ba2c8['oldRange'],'userId':_0x158402});const _0x14a997=this['_touchedMarkers']['get'](_0x431d99),_0x1f7499=_0x14a997['range'],_0x5987a4=_0x2ba2c8['newRange'];null==_0x1f7499&&null==_0x5987a4||_0x1f7499&&_0x5987a4&&_0x1f7499['isEqual'](_0x5987a4)?this['_touchedMarkers']['delete'](_0x2ba2c8['name']):_0x14a997['userId']=_0x158402;}['_handleRootOperation'](_0x1b3026,_0x4b7be5){this['_diffRoots']['has'](_0x1b3026['rootName'])?this['_diffRoots']['get'](_0x1b3026['rootName'])['_isAttached']=_0x1b3026['isAdd']:(this['_diffRoots']['set'](_0x1b3026['rootName'],B(_0x1b3026['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1b3026['rootName'],{}),_0x4b7be5&&this['_idsRoots']['set'](_0x1b3026['rootName'],B(_0x1b3026['rootName'],!0x0)));const _0x263c57=null===_0x1b3026['_authorId']?null:_0x1b3026['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e3303=this['_touchedRoots']['get'](_0x1b3026['rootName']);_0x5e3303&&_0x5e3303['userId']===_0x263c57?this['_touchedRoots']['delete'](_0x1b3026['rootName']):this['_touchedRoots']['set'](_0x1b3026['rootName'],{'userId':_0x263c57,'isAttached':_0x1b3026['isAdd']});}['_handleRootAttributeOperation'](_0xcbeb92){const _0x5cc3eb=this['_diffRootsAttributes']['get'](_0xcbeb92['root']['rootName']);null===_0xcbeb92['newValue']?delete _0x5cc3eb[_0xcbeb92['key']]:_0x5cc3eb[_0xcbeb92['key']]=_0xcbeb92['newValue'];}}function F(_0x764428){const _0x15a7af=B(_0x764428['rootName'],_0x764428['isAttached']());for(const _0x44361e of _0x764428['getChildren']()){const _0x424356=_0x44361e['_clone'](!0x0);_0x15a7af['_appendChild'](_0x424356);}return _0x15a7af;}function B(_0x5835ba,_0x16dfee=!0x0){const _0x1d3172=new ft();return _0x1d3172['rootName']=_0x5835ba,_0x1d3172['_isAttached']=_0x16dfee,_0x1d3172['isAttached']=()=>_0x1d3172['_isAttached'],_0x1d3172;}function J(_0x5bd3da,_0x5073df,_0x577b99){const _0x36bc18='elementEnd'==_0x5bd3da['type']?_0x577b99['createPositionAt'](_0x5bd3da['item'],'end'):_0x577b99['createPositionBefore'](_0x5bd3da['item']);return _0x577b99['createPositionFromPath'](_0x5073df,_0x36bc18['path'],_0x36bc18['stickiness']);}function q(_0x2a7052,_0x233e41,_0x1516ef){const _0x1046e3='elementStart'==_0x2a7052['type']?_0x1516ef['createPositionAt'](_0x2a7052['item'],0x0):_0x1516ef['createPositionAfter'](_0x2a7052['item']);return _0x1516ef['createPositionFromPath'](_0x233e41,_0x1046e3['path'],_0x1046e3['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2346f7,_0x1cb6f7){super(_0x2346f7),this['focusTracker']=new _0xece5a1(),this['keystrokes']=new _0x2e607c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1cb6f7),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0xdc3b0(this);}['render'](){super['render'](),_0x34890e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x590804=_0x1313d9=>_0x1313d9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x590804),this['keystrokes']['set']('arrowleft',_0x590804),this['keystrokes']['set']('arrowup',_0x590804),this['keystrokes']['set']('arrowdown',_0x590804);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x52af7e){this['revisionNameInputView']['fieldView']['element']['value']=_0x52af7e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x137d0f){const _0x4d4df3=new _0x562d35(this['locale'],_0x428faa),_0x2a3dc3=_0x4d4df3['fieldView'];_0x2a3dc3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x52f601=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x137d0f&&(_0x52f601+='\x20('+R(this['locale'],'optional')+')'),(_0x4d4df3['label']=_0x52f601,_0x2a3dc3['on']('input',()=>{this['revisionNameInputValue']=_0x2a3dc3['element']['value']['trim']();}),_0x4d4df3);}}class u extends _0x12191e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x298575=this['editor'],_0x15e68c=_0x298575['plugins']['get']('RevisionTracker');_0x298575['ui']['componentFactory']['add']('revisionHistory',_0x15cc91=>{const _0x2d1c90=_0x31370f(_0x15cc91),_0x5dd98b=_0x2d1c90['panelView']['children'],_0xf02cf4=new _0x2d6e81(_0x15cc91),_0x4b5f88=new _0x446983(_0x15cc91),_0x5a03a8=new te(_0x15cc91),_0x59c4d2=new _0x446983(_0x15cc91),_0x230492=new te(_0x15cc91);return _0x2d1c90['bind']('isEnabled')['to'](_0x15e68c,'isReady',_0x15e68c,'isEnabled',_0x298575,'isReadOnly',(_0x647666,_0x23555b,_0x5efdff)=>_0x647666&&_0x23555b&&!_0x5efdff),_0x2d1c90['buttonView']['set']({'icon':_0x48c017['history'],'label':R(_0x15cc91,'Revision\x20history'),'tooltip':!0x0}),_0x5a03a8['set']({'label':R(_0x15cc91,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5a03a8['bind']('isEnabled')['to'](_0x15e68c,'isReady',_0x15e68c,'isEnabled',_0x298575,'isReadOnly',(_0x372b95,_0x775587,_0x3afe1a)=>_0x372b95&&_0x775587&&!_0x3afe1a),_0x5a03a8['on']('execute',()=>this['_showDialog']()),_0x230492['set']({'label':R(_0x15cc91,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x230492['bind']('isEnabled')['to'](_0x15e68c,'isReady',_0x298575,'isReadOnly',(_0x50484f,_0x38447c)=>_0x50484f&&!_0x38447c),_0x230492['on']('execute',()=>{_0x298575['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2d1c90['isOpen']=!0x1,_0x298575['editing']['view']['focus']();}),_0x4b5f88['children']['add'](_0x5a03a8),_0x59c4d2['children']['add'](_0x230492),_0xf02cf4['role']='menu',_0xf02cf4['items']['addMany']([_0x4b5f88,_0x59c4d2]),_0x5dd98b['add'](_0xf02cf4),_0x2d1c90;}),_0x298575['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3d7d37=this['editor'],_0x33aad1=_0x3d7d37['locale'],_0x58cea2=new _0x25990b(_0x33aad1),_0x524018=new _0x23dbcd(_0x33aad1);_0x58cea2['buttonView']['set']({'icon':_0x48c017['history'],'label':R(_0x33aad1,'Revision\x20history')});const _0x217fa9=new _0x2fe944(_0x33aad1,_0x58cea2),_0x5717ad=new _0x55715e(_0x33aad1);_0x5717ad['set']({'label':R(_0x33aad1,'Save\x20current\x20revision')}),_0x5717ad['delegate']('execute')['to'](_0x58cea2),_0x5717ad['on']('execute',()=>{this['_showDialog']();}),_0x217fa9['children']['add'](_0x5717ad),_0x524018['items']['add'](_0x217fa9);const _0x4aa81e=new _0x2fe944(_0x33aad1,_0x58cea2),_0x2bcf5e=new _0x55715e(_0x33aad1);return _0x2bcf5e['set']({'label':R(_0x33aad1,'Open\x20revision\x20history')}),_0x2bcf5e['delegate']('execute')['to'](_0x58cea2),_0x2bcf5e['on']('execute',()=>{_0x3d7d37['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4aa81e['children']['add'](_0x2bcf5e),_0x524018['items']['add'](_0x4aa81e),_0x58cea2['panelView']['children']['add'](_0x524018),_0x58cea2;}['_showDialog'](){const _0x288651=this['editor'],_0x154fc5=_0x288651['locale'],_0x186f36=_0x288651['plugins']['get']('Dialog'),_0x263099=_0x288651['plugins']['get']('RevisionTracker');function _0x307ce8(_0x5c37a8){_0x288651['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5c37a8['revisionName']?_0x5c37a8['revisionNameInputView']['errorText']=R(_0x154fc5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x288651['plugins']['get'](l)['saveRevision']({'name':_0x5c37a8['revisionName']}),_0x186f36['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x307ce8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x186f36['show']({'id':'revisionSave','title':R(_0x154fc5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x288651['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x186f36['hide']()},{'label':R(_0x288651['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x936285){_0x936285['bind']('isEnabled')['to'](_0x263099,'isReady',_0x263099,'isEnabled',_0x288651,'isReadOnly',(_0x4954e0,_0x2c4875,_0x3ebf85)=>_0x4954e0&&_0x2c4875&&!_0x3ebf85);},'onExecute':()=>_0x307ce8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x547a3a=this['editor'],_0x3f6ad0=_0x547a3a['locale'];this['_saveRevisionFormView']=new hs(_0x3f6ad0,_0x547a3a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x5b9540,_0x1e3be2){super(_0x5b9540),this['_model']=_0x1e3be2,this['changeId']=_0x1e3be2['id'];const _0x540647=this['bindTemplate'],_0x2869fa=R(_0x5b9540,_0x1e3be2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1e3be2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1e3be2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x540647['to']('type',_0xb28d2d=>'ck-revision-change__'+_0xb28d2d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2869fa}]},{'text':'\x20'+_0x1e3be2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4cc0bc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3c17ae){super(),this['id']=_0x3c17ae['id']||_0xa605c(),this['author']=_0x3c17ae['author'],this['type']=_0x3c17ae['type'],this['data']=_0x3c17ae['data']||{},this['rootName']=_0x3c17ae['rootName'],this['set']('createdAt',_0x3c17ae['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1d8eec,_0x21f7e7){this['newRevisionId']=_0x1d8eec,this['oldRevisionId']=_0x21f7e7,this['changes']=new _0x18cc15();}['_setChanges'](_0x4c87c8){for(const _0x48bdf1 of _0x4c87c8)this['changes']['add'](_0x48bdf1);}}const Z={'c':_0x10c507,'a':_0x50cf23,'e':_0x549b90,'r':_0x535081,'u':_0x23e3e9};class d extends _0x12191e{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x405c3e,_0x5584b5,j];}constructor(_0x110f20){super(_0x110f20),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x46ef2e,_0x3311de,_0x2cd701)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4aa1e0=>{for(const _0x34c3ff of this['editor']['editing']['view']['document']['roots'])_0x2cd701?_0x4aa1e0['removeClass']('ck-editor__editable__overlay',_0x34c3ff):_0x4aa1e0['addClass']('ck-editor__editable__overlay',_0x34c3ff);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x32827b=>null!==_0x32827b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2b6436,_0x4dbd53,_0x3e9469)=>_0x2b6436&&_0x3e9469?_0x4dbd53['changes']['getIndex'](_0x3e9469):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5a5dca,_0x2edf4a)=>_0x5a5dca?_0x2edf4a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5584b5);}['init'](){const _0x32a39d=this['editor'],_0xf5e540=new yt(_0x32a39d,{'direction':'backward'}),_0x12cd91=new yt(_0x32a39d,{'direction':'forward'});(_0x32a39d['commands']['add']('showPreviousChange',_0xf5e540),_0x32a39d['commands']['add']('showNextChange',_0x12cd91),_0x32a39d['commands']['add']('restoreRevision',new _t(_0x32a39d)),this['on']('change:numberOfChanges',()=>{_0xf5e540['refresh'](),_0x12cd91['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x32a39d['enableReadOnlyMode']('revision-viewer'),_0x32a39d['plugins']['has']('WidgetToolbarRepository'))&&_0x32a39d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x12ecfd){await this['loadRevisionData'](_0x12ecfd);const _0x1650a9={};for(const _0x144c06 in _0x12ecfd['diffData']){if(_0x12ecfd['diffData'][_0x144c06]['attachChange']&&!_0x12ecfd['diffData'][_0x144c06]['attachChange']['isAttached'])continue;const _0xa2fdc0=this['_removeRevisionMarkers'](JSON['parse'](_0x12ecfd['diffData'][_0x144c06]['insertions'])),_0x166f1d=this['editor']['editing']['view']['document'],_0x16c745=new _0x154369(_0x166f1d,_0xa2fdc0['map'](_0x4707ef=>this['_getViewObj'](_0x4707ef)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1650a9[_0x144c06]=this['editor']['data']['processor']['toData'](_0x16c745),this['editor']['data']['processor']['useFillerType']('default');}return _0x1650a9;}async['getRevisionRootsAttributes'](_0x78b10d){await this['loadRevisionData'](_0x78b10d);const _0x9121f8={};for(const _0x1a95fc in _0x78b10d['diffData'])_0x78b10d['diffData'][_0x1a95fc]['attachChange']&&!_0x78b10d['diffData'][_0x1a95fc]['attachChange']['isAttached']||(_0x9121f8[_0x1a95fc]=_0x78b10d['diffData'][_0x1a95fc]['attributesAfter']||{});return _0x9121f8;}['_removeRevisionMarkers'](_0x4e6f58){return(_0x4e6f58=_0x4e6f58['filter'](_0x260d73=>!_0x260d73['name']||'revision-start'!==_0x260d73['name']&&'revision-end'!==_0x260d73['name']))['forEach'](_0x43c873=>{'string'!=typeof _0x43c873&&(_0x43c873['children']=this['_removeRevisionMarkers'](_0x43c873['children']),_0x43c873['attributes']=_0x43c873['attributes']['filter'](_0x37913a=>!_0x37913a[0x0]['startsWith']('data-revision-')));}),_0x4e6f58;}async['compare'](_0x59530f,_0x156ea8,_0x46ad2e=!0x1){if(!this['isEnabled'])return;const _0x1eaa35=this['diff'],_0x51e1ae=this['repository'],_0x3d3a28='string'==typeof _0x59530f?_0x51e1ae['getRevision'](_0x59530f):_0x59530f,_0x42ae94='string'==typeof _0x156ea8?_0x51e1ae['getRevision'](_0x156ea8):_0x156ea8,_0x4686a7=_0x3d3a28['id'],_0x3f13c1=_0x42ae94?_0x42ae94['id']:null;if(!_0x46ad2e&&this['diff']&&this['diff']['newRevisionId']===_0x4686a7&&this['diff']['oldRevisionId']===_0x3f13c1)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4686a7,_0x3f13c1);const _0x5442d1=this['_getRevisionsRange'](_0x3d3a28,_0x42ae94,!0x0)['map'](_0x58a9a8=>this['loadRevisionData'](_0x58a9a8));return _0x5442d1['push'](new Promise(_0x4bf3d6=>{setTimeout(_0x4bf3d6,0x14);})),Promise['all'](_0x5442d1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x17f3aa=this['_getDiff'](_0x4686a7,_0x3f13c1);for(const _0x3a59d3 of _0x17f3aa['changes'])this['_changeIdToChange']['set'](_0x3a59d3['id'],_0x3a59d3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x25ff1b=>{for(const _0x1a54ca of this['editor']['model']['document']['getRootNames']())_0x25ff1b['detachRoot'](_0x1a54ca);for(const _0x498bf1 of Object['keys'](_0x17f3aa['model'])){const _0x471b56=_0x25ff1b['addRoot'](_0x498bf1);for(const _0x1b94e7 of Object['keys'](_0x17f3aa['attributes'][_0x498bf1]))_0x25ff1b['setAttribute'](_0x1b94e7,_0x17f3aa['attributes'][_0x498bf1][_0x1b94e7],_0x471b56);_0x25ff1b['insert'](_0x17f3aa['model'][_0x498bf1],_0x471b56,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x17f3aa['changes'])),this['isReady']=!0x0;})['catch'](_0x30f501=>{console['error'](_0x30f501),this['_cleanUp'](),_0x1eaa35&&(this['diff']=_0x1eaa35),this['isReady']=!0x0;});}['addRevisionData'](_0x1d6b83,_0xb9c051){const _0x3f56fd=this['repository']['createRevision'](_0x1d6b83);return _0x3f56fd['on']('_update',(_0x2a9ac4,_0x3514de,_0xe0726f)=>_0xb9c051(_0x3514de,_0xe0726f,_0x3f56fd)),this['repository']['addRevision'](_0x3f56fd),_0x3f56fd;}['loadRevisionData'](_0x5bc09f){if(!_0x5bc09f||_0x5bc09f['diffData'])return Promise['resolve']();{const _0x10d8aa=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x10d8aa,'revisionId':_0x5bc09f['id']})['then'](_0x31b3d0=>{_0x5bc09f['_update']({'diffData':_0x31b3d0['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3fada5=>{for(const _0x26e652 of this['editor']['model']['document']['getRootNames']())_0x3fada5['detachRoot'](_0x26e652);});}['_sortAndFilterDiffChanges'](_0x420d2d){const _0x29df1f=[],_0x31bd5d=new Map();for(const _0x2bf06a of this['editor']['model']['document']['getRootNames']()){const _0x34b2af=this['editor']['editing']['view']['getDomRoot'](_0x2bf06a);if(!_0x34b2af)continue;const _0x21770e=_0x34b2af['getClientRects']()['item'](0x0);_0x21770e&&(_0x29df1f['push'](_0x2bf06a),_0x31bd5d['set'](_0x2bf06a,_0x21770e));}return _0x29df1f['sort']((_0x143ea8,_0x1155bb)=>{const _0x986d90=_0x31bd5d['get'](_0x143ea8),_0x16f3b7=_0x31bd5d['get'](_0x1155bb);return _0x986d90['y']-_0x16f3b7['y']||_0x986d90['x']-_0x16f3b7['x'];}),(_0x420d2d=_0x420d2d['filter'](_0x2abaa5=>_0x29df1f['includes'](_0x2abaa5['rootName'])))['sort']((_0x4649fd,_0x385f8f)=>_0x29df1f['indexOf'](_0x4649fd['rootName'])-_0x29df1f['indexOf'](_0x385f8f['rootName'])),_0x420d2d;}['_makeTape'](_0x5f03ef){const _0x86d9af=Array['from'](_0x5f03ef['markers'])['filter'](([_0x47a50f,_0x47faca])=>_0x47a50f['startsWith']('revision:')&&!_0x47faca['isCollapsed']),_0x4d637a=Array['from'](this['editor']['model']['createRangeIn'](_0x5f03ef)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x86d9af['length'])for(const _0x3fe6f5 of _0x4d637a){const [_0x11df84,_0x2613e5]=_0x86d9af[0x0],[,_0x5f4161,_0x3e7a71]=_0x11df84['split'](':');if(_0x2613e5['end']['isEqual'](_0x3fe6f5['nextPosition'])&&_0x86d9af['shift'](),(_0x3fe6f5['previousPosition']['isEqual'](_0x2613e5['start'])||_0x3fe6f5['previousPosition']['isAfter'](_0x2613e5['start']))&&('insertion'==_0x5f4161?_0x3fe6f5['isAdded']={'userId':_0x3e7a71}:'deletion'==_0x5f4161&&(_0x3fe6f5['isRemoved']={'userId':_0x3e7a71})),0x0==_0x86d9af['length'])break;}return _0x4d637a;}['_refreshStartEndIndex'](_0x30c2ea){const _0x296d22=new Map();for(let _0x3bc4a8=0x0;_0x3bc4a8<_0x30c2ea['length'];_0x3bc4a8++)'text'===_0x30c2ea[_0x3bc4a8]['type']?(_0x30c2ea[_0x3bc4a8]['item']['startIndex']=_0x3bc4a8,_0x30c2ea[_0x3bc4a8]['item']['endIndex']=_0x3bc4a8):('elementStart'===_0x30c2ea[_0x3bc4a8]['type']?_0x30c2ea[_0x3bc4a8]['item']['startIndex']=_0x3bc4a8:'elementEnd'===_0x30c2ea[_0x3bc4a8]['type']&&(_0x30c2ea[_0x3bc4a8]['item']['endIndex']=_0x3bc4a8),_0x296d22['set'](_0x30c2ea[_0x3bc4a8]['id'],_0x3bc4a8));for(const _0x2d8580 of _0x296d22['values']())'elementStart'===_0x30c2ea[_0x2d8580]['type']?_0x30c2ea[_0x2d8580]['item']['endIndex']=_0x296d22['get'](_0x30c2ea[_0x2d8580]['pairId']):'elementEnd'===_0x30c2ea[_0x2d8580]['type']&&(_0x30c2ea[_0x2d8580]['item']['startIndex']=_0x296d22['get'](_0x30c2ea[_0x2d8580]['pairId']));}['_processTape'](_0x5d8a12){for(let _0xb4b245=0x0;_0xb4b245<_0x5d8a12['length'];_0xb4b245++){if('elementStart'===_0x5d8a12[_0xb4b245]['type'])_0x5d8a12[_0xb4b245]['item']['startIndex']=_0xb4b245;else{if('elementEnd'===_0x5d8a12[_0xb4b245]['type']){_0x5d8a12[_0xb4b245]['item']['endIndex']=_0xb4b245;const _0x249992=_0x5d8a12[_0xb4b245]['item']['startIndex'];_0x5d8a12[_0x249992]['pairId']=_0x5d8a12[_0xb4b245]['id'],_0x5d8a12[_0xb4b245]['pairId']=_0x5d8a12[_0x249992]['id'];}else _0x5d8a12[_0xb4b245]['item']['startIndex']=_0xb4b245,_0x5d8a12[_0xb4b245]['item']['endIndex']=_0xb4b245,_0x5d8a12[_0xb4b245]['pairId']=null;}_0x5d8a12[_0xb4b245]['markersStart']||(_0x5d8a12[_0xb4b245]['markersStart']=[],_0x5d8a12[_0xb4b245]['markersEnd']=[]);}}['_markInsertions'](_0x1b4200,_0x1b9661){const _0x540e47=_0x1b4200['filter'](_0x5bd518=>!_0x5bd518['isAdded']);for(let _0x52bc93=0x0;_0x52bc93<_0x1b9661['length'];_0x52bc93++)_0x1b9661[_0x52bc93]['isAdded']&&(_0x540e47[_0x52bc93]['isAdded']=_0x1b9661[_0x52bc93]['isAdded']);}['_makeModelFromViewString'](_0x503aa2){const _0x108ed5=JSON['parse'](_0x503aa2),_0xafe3ff=this['editor']['editing']['view']['document'],_0x4817c6=new _0x154369(_0xafe3ff,_0x108ed5['map'](_0x9e9d8c=>this['_getViewObj'](_0x9e9d8c)));return this['editor']['data']['toModel'](_0x4817c6);}['_getViewObj'](_0x244caa){const _0x18176e=this['editor']['editing']['view']['document'];if('string'==typeof _0x244caa)return new _0x112303(_0x18176e,_0x244caa);{const _0x8aee06=_0x244caa['children']['map'](_0xb2bf3b=>this['_getViewObj'](_0xb2bf3b));return new(Z[_0x244caa['type']]||_0x118de3)(_0x18176e,_0x244caa['name'],_0x244caa['attributes'],_0x8aee06);}}['_getDiff'](_0x5a49bf,_0x274c27=null){const _0xdfc680=this['repository']['getRevision'](_0x5a49bf),_0x4a0e29=_0x274c27?this['repository']['getRevision'](_0x274c27):null,_0x8fbf09=this['_getRevisionsRange'](_0xdfc680,_0x4a0e29),_0xf13729=_0x8fbf09[_0x8fbf09['length']-0x1],_0x1ba5ce=new Map(),_0x1047da={'model':{},'attributes':{},'changes':[]},_0x2bdc1e=new Set(),_0x4951bd=new Map();for(let _0x59a143=_0x8fbf09['length']-0x1;_0x59a143>=0x0;_0x59a143--){const _0x217d35=_0x8fbf09[_0x59a143];for(const _0x8893c5 of Object['keys'](_0x217d35['diffData']))if(_0x217d35['diffData'][_0x8893c5]['attachChange']){const _0x2c38b0=_0x217d35['diffData'][_0x8893c5]['attachChange'];_0x2c38b0['isAttached']?(_0x2bdc1e['add'](_0x8893c5),_0x4951bd['has'](_0x8893c5)&&_0x4951bd['get'](_0x8893c5)['userId']==_0x2c38b0['userId']?_0x4951bd['delete'](_0x8893c5):_0x4951bd['set'](_0x8893c5,_0x2c38b0)):_0x4951bd['has'](_0x8893c5)?(_0x2bdc1e['delete'](_0x8893c5),_0x4951bd['delete'](_0x8893c5)):(_0x2bdc1e['add'](_0x8893c5),_0x4951bd['set'](_0x8893c5,_0x2c38b0));}else _0x2bdc1e['add'](_0x8893c5);}for(const _0x412cb5 of _0x2bdc1e){const _0x2584bc=_0x4951bd['has'](_0x412cb5)&&!_0x4951bd['get'](_0x412cb5)['isAttached'];let _0x5f0889=_0x2584bc?_0x8fbf09['length']-0x1:0x0;const _0x1af4b4=_0x2584bc?-0x1:0x1;for(;_0x8fbf09[_0x5f0889];){const _0x5840f8=_0x8fbf09[_0x5f0889];if(_0x5840f8['diffData'][_0x412cb5]){const _0xad175a=_0x2584bc?_0x5840f8['diffData'][_0x412cb5]['attributesBefore']:_0x5840f8['diffData'][_0x412cb5]['attributesAfter'];_0x1047da['attributes'][_0x412cb5]=_0xad175a?_0x36b949(_0xad175a):{};break;}_0x5f0889+=_0x1af4b4;}}for(const _0x3c112d of _0x8fbf09){_0x3c112d['model']={};for(const _0x7bafe4 of _0x3c112d['authors'])_0x1ba5ce['set'](_0x7bafe4['id'],_0x7bafe4);for(const _0x37b13c of _0x2bdc1e){const _0x2ab88d=_0x3c112d['diffData'][_0x37b13c]?_0x3c112d['diffData'][_0x37b13c]['insertions']:'[]',_0x282c03=_0x3c112d['diffData'][_0x37b13c]?_0x3c112d['diffData'][_0x37b13c]['deletions']:'[]';_0x3c112d['model'][_0x37b13c]={'insertions':this['_makeModelFromViewString'](_0x2ab88d),'deletions':this['_makeModelFromViewString'](_0x282c03)};}}for(const _0x11c50f of _0x2bdc1e){let _0x538a0e=null,_0x91c121=0x0;const _0x3f6661=new Map(Array['from'](_0xdfc680['model'][_0x11c50f]['insertions']['markers'])['filter'](([_0x41d50b])=>!_0x41d50b['startsWith']('revision:')));let _0x431d9c=0x0;for(const _0x2cdefb of _0x8fbf09){const _0x1f0c9b=this['_makeTape'](_0x2cdefb['model'][_0x11c50f]['insertions']);_0x2cdefb==_0xdfc680?(_0x538a0e=_0x1f0c9b,_0x91c121=_0x538a0e['length'],_0x538a0e['forEach'](_0x47ee24=>{_0x47ee24['id']=_0x431d9c++;}),this['_processTape'](_0x538a0e)):this['_markInsertions'](_0x538a0e,_0x1f0c9b);const _0x1a134b=_0x538a0e['filter'](_0x1a8444=>!_0x1a8444['isAdded'])['map'](_0x1e1735=>_0x1e1735['id']);let _0x5ba77b=0x0;const _0x22a97a=this['_makeTape'](_0x2cdefb['model'][_0x11c50f]['deletions']);_0x22a97a['forEach'](_0x467e85=>{_0x467e85['isRemoved']?_0x467e85['id']=_0x91c121++:_0x467e85['id']=_0x1a134b[_0x5ba77b++];}),this['_processTape'](_0x22a97a),this['_setDistance'](_0x538a0e,'isAdded'),this['_setDistance'](_0x22a97a,'isRemoved'),_0x2cdefb==_0xdfc680&&this['_markMarkers'](_0x538a0e,_0x3f6661),_0x538a0e=this['_joinTapes'](_0x538a0e,_0x22a97a),this['_refreshStartEndIndex'](_0x538a0e),this['_setDistance'](_0x538a0e,'isRemoved');}_0x538a0e=_0x538a0e['filter'](_0x19e10b=>!(_0x19e10b['isAdded']&&_0x19e10b['isRemoved']));const _0x5774db=new Map(_0xf13729['model'][_0x11c50f]['deletions']['markers']),_0x47bf68=new Set(_0x3f6661['keys']());for(const _0x4f996b of _0x5774db['keys']())_0x47bf68['delete'](_0x4f996b);this['_markSuggestions'](_0x538a0e,_0x47bf68),this['_fixObsoleteTags'](_0x538a0e),_0x538a0e=this['_removeMissingPairs'](_0x538a0e),_0x538a0e=this['_markMismatchedRemovedTags'](_0x538a0e),_0x538a0e=this['_removeUnsupportedChanges'](_0x538a0e);const {root:_0x1a4a3e,changes:_0x1e2f7f}=this['_makeModelFromTape'](_0x538a0e,_0x1ba5ce,_0x11c50f);_0x1047da['model'][_0x11c50f]=_0x1a4a3e;const _0x4ab478=_0x4951bd['get'](_0x11c50f);if(_0x4ab478){const _0x34e7b5=_0x1ba5ce['get'](_0x4ab478['userId']),_0x2b23a6=new r({'author':_0x34e7b5,'type':_0x4ab478['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x11c50f});_0x1e2f7f['unshift'](_0x2b23a6),_0x1047da['attributes'][_0x11c50f]['revisionHistoryAttachChange']=_0x2b23a6['id'];}_0x1047da['changes']=_0x1047da['changes']['concat'](_0x1e2f7f);}return _0x1047da;}['_markMarkers'](_0x2a8101,_0x572a68){for(let _0x443254=0x0;_0x443254<_0x2a8101['length'];_0x443254++)for(const [_0xbf033c,_0x42d4d5]of _0x572a68)_0x42d4d5['start']['isEqual'](_0x2a8101[_0x443254]['previousPosition'])&&_0x2a8101[_0x443254]['markersStart']['push'](_0xbf033c),_0x42d4d5['end']['isEqual'](_0x2a8101[_0x443254]['nextPosition'])&&_0x2a8101[_0x443254]['markersEnd']['push'](_0xbf033c);}['_joinTapes'](_0x525388,_0x5f49c4){let _0x10705b=[],_0x18e0a6=0x0,_0x379616=0x0;for(;_0x18e0a6<_0x525388['length']||_0x379616<_0x5f49c4['length'];){const _0x2778a7=_0x525388[_0x18e0a6]||{},_0x4b9c8f=_0x5f49c4[_0x379616]||{};if(_0x2778a7['id']==_0x4b9c8f['id'])_0x18e0a6++,_0x379616++,_0x10705b['push'](_0x2778a7);else{if(_0x4b9c8f['isRemoved']&&_0x2778a7['isAdded']){const {commonTape:_0x17719d,iEnd:_0x238afb,jEnd:_0x490735}=this['_threeWayMerge'](_0x525388,_0x18e0a6,_0x5f49c4,_0x379616);_0x10705b=_0x10705b['concat'](_0x17719d),_0x18e0a6=_0x238afb,_0x379616=_0x490735;}else _0x4b9c8f['isRemoved']?(_0x379616++,_0x10705b['push'](_0x4b9c8f)):(_0x18e0a6++,_0x10705b['push'](_0x2778a7));}}return _0x10705b;}['_markSuggestions'](_0x1f66ec,_0x7473d7){const _0x28ab09=[];for(let _0x2e9af5=0x0;_0x2e9af5<_0x1f66ec['length'];_0x2e9af5++){for(let _0x16a523=0x0;_0x16a523<_0x1f66ec[_0x2e9af5]['markersStart']['length'];_0x16a523++){const _0x26bbf7=_0x1f66ec[_0x2e9af5]['markersStart'][_0x16a523];if(!_0x7473d7['has'](_0x26bbf7))continue;const {group:_0x28b4bb,type:_0x5dfccd,authorId:_0x320b25}=_0x41eae7(_0x26bbf7);'revision-suggestion'!=_0x28b4bb||'insertion'!=_0x5dfccd&&'deletion'!=_0x5dfccd||(_0x28ab09['unshift']({'type':_0x5dfccd,'name':_0x26bbf7,'userId':_0x320b25}),_0x1f66ec[_0x2e9af5]['markersStart']['splice'](_0x16a523,0x1),_0x16a523--);}_0x44124b(_0x1f66ec[_0x2e9af5]);for(let _0xb6239d=0x0;_0xb6239d<_0x1f66ec[_0x2e9af5]['markersEnd']['length'];_0xb6239d++){const _0x5bbee7=_0x1f66ec[_0x2e9af5]['markersEnd'][_0xb6239d];if(!_0x7473d7['has'](_0x5bbee7))continue;const {group:_0x52e6ab,type:_0x400449}=_0x41eae7(_0x5bbee7);if('revision-suggestion'!=_0x52e6ab||'insertion'!=_0x400449&&'deletion'!=_0x400449)continue;_0x1f66ec[_0x2e9af5]['markersEnd']['splice'](_0xb6239d,0x1),_0xb6239d--;const _0x1e6cfc=_0x28ab09['findIndex'](_0x1b85e2=>_0x1b85e2['name']==_0x5bbee7);_0x1e6cfc>-0x1&&_0x28ab09['splice'](_0x1e6cfc,0x1);}}function _0x41eae7(_0x514716){const _0x1a9a33=_0x514716['split'](':');return{'group':_0x1a9a33[0x0],'type':_0x1a9a33[0x1],'subType':_0x1a9a33['length']>=0x5?_0x1a9a33[0x2]:null,'id':_0x1a9a33['length']<0x5?_0x1a9a33[0x2]:_0x1a9a33[0x3],'authorId':_0x1a9a33['length']<0x5?_0x1a9a33[0x3]:_0x1a9a33[0x4],'markerCount':0x6==_0x1a9a33['length']?_0x1a9a33[0x5]:null};}function _0x44124b(_0x4c05b6){for(let _0x2a5fd4=0x0;_0x2a5fd4<_0x28ab09['length'];_0x2a5fd4++){if(_0x4c05b6['isAdded']&&'insertion'==_0x28ab09[_0x2a5fd4]['type'])return _0x4c05b6['isAddSuggestion']=_0x28ab09[_0x2a5fd4],void delete _0x4c05b6['isAdded'];if(!_0x4c05b6['isAdded']&&!_0x4c05b6['isRemoved']&&'deletion'==_0x28ab09[_0x2a5fd4]['type'])return void(_0x4c05b6['isRemoveSuggestion']=_0x28ab09[_0x2a5fd4]);}}}['_setDistance'](_0x187351,_0x235ac6){let _0x5551e0=0x0,_0x54847f=!0x1;const _0x46b444=new Map();for(const _0xd28124 of _0x187351)_0xd28124[_0x235ac6]?_0x54847f&&(_0x5551e0++,_0x54847f=!0x1):(_0x5551e0++,_0x54847f=!0x0),_0x46b444['set'](_0xd28124['id'],_0x5551e0);for(let _0x5a92b6=0x0;_0x5a92b6<_0x187351['length'];_0x5a92b6++){if('isRemoved'==_0x235ac6&&_0x187351[_0x5a92b6]['isAdded']||'isAdded'==_0x235ac6&&_0x187351[_0x5a92b6]['isRemoved'])continue;if('text'==_0x187351[_0x5a92b6]['type']){_0x187351[_0x5a92b6]['distance']=0x0;continue;}const _0x4beec5=_0x46b444['get'](_0x187351[_0x5a92b6]['pairId']),_0x4f831a=_0x46b444['get'](_0x187351[_0x5a92b6]['id']);_0x187351[_0x5a92b6]['distance']=_0x4beec5-_0x4f831a;}}['_getRevisionsRange'](_0x4fe681,_0xcdd2c3,_0x1c5e14=!0x1){const _0x353c54=[];let _0x1a49a1=this['repository']['getIndex'](_0x4fe681),_0x4fde9d=this['repository']['getIndex'](_0xcdd2c3);for(-0x1==_0x4fde9d&&(_0x4fde9d=this['repository']['_revisions']['length'],_0x1c5e14=!0x1);_0x1a49a1<_0x4fde9d;)_0x353c54['push'](this['repository']['getRevision'](_0x1a49a1)),_0x1a49a1++;return _0x1c5e14&&_0x353c54['push'](this['repository']['getRevision'](_0x1a49a1)),_0x353c54;}['_threeWayMerge'](_0xcbf09c,_0x5eb6ee,_0x4a0aba,_0x3a97db){const _0x1b08b4=this['editor']['model']['schema'];let _0x3d9214=_0x5eb6ee;for(;_0xcbf09c[_0x3d9214]&&_0xcbf09c[_0x3d9214]['isAdded'];)_0x3d9214++;let _0x5ac515=_0x3a97db;for(;_0x4a0aba[_0x5ac515]&&_0x4a0aba[_0x5ac515]['isRemoved'];)_0x5ac515++;_0x4f993a(_0xcbf09c,_0x5eb6ee,_0x3d9214),_0x4f993a(_0x4a0aba,_0x3a97db,_0x5ac515);const _0x1562d1=_0x4a0aba['slice'](_0x3a97db,_0x5ac515)['concat'](_0xcbf09c['slice'](_0x5eb6ee,_0x3d9214));return _0x1562d1['sort']((_0xfeea99,_0x52667a)=>_0xfeea99['side']!=_0x52667a['side']?_0xfeea99['side']-_0x52667a['side']:_0xfeea99['level']!=_0x52667a['level']?_0xfeea99['level']-_0x52667a['level']:_0xfeea99['distance']!=_0x52667a['distance']?_0x52667a['distance']-_0xfeea99['distance']:!!_0xfeea99['isAdded']!=!!_0x52667a['isAdded']?-0x1==_0xfeea99['side']||0x0==_0xfeea99['side']?_0xfeea99['isAdded']?-0x1:0x1:_0xfeea99['isAdded']?0x1:-0x1:_0xfeea99['index']-_0x52667a['index']),{'commonTape':_0x1562d1,'iEnd':_0x3d9214,'jEnd':_0x5ac515};function _0x4f993a(_0x13f830,_0x155d1d,_0x8e5d95){let _0x1f58d2=-0x1,_0x3a461f=Number['POSITIVE_INFINITY'],_0x44b0ae=!0x0;for(let _0x42e11a=_0x155d1d;_0x42e11a<_0x8e5d95;_0x42e11a++)if(_0x1b08b4['isInline'](_0x13f830[_0x42e11a]['item'])||(_0x44b0ae=!0x1),_0x13f830[_0x42e11a]['item']['startIndex']<_0x155d1d&&(_0x1f58d2=_0x42e11a),_0x13f830[_0x42e11a]['item']['endIndex']>=_0x8e5d95){_0x3a461f=_0x42e11a;break;}_0x44b0ae&&(_0x1f58d2=_0x8e5d95-0x1);for(let _0x4a2d2f=_0x155d1d;_0x4a2d2f<_0x8e5d95;_0x4a2d2f++)_0x13f830[_0x4a2d2f]['side']=_0x4a2d2f<=_0x1f58d2?-0x1:_0x4a2d2f<_0x3a461f?0x0:0x1,_0x13f830[_0x4a2d2f]['index']=_0x4a2d2f;let _0x5bd496=0x0;for(let _0x56b657=_0x155d1d;_0x56b657<=_0x1f58d2;_0x56b657++)0x0==_0x13f830[_0x56b657]['distance']?_0x13f830[_0x56b657]['level']=_0x5bd496:(_0x5bd496++,_0x13f830[_0x56b657]['level']=_0x5bd496,_0x5bd496++);for(let _0x20b070=_0x155d1d;_0x20b070<_0x8e5d95;_0x20b070++)0x0==_0x13f830[_0x20b070]['side']&&(_0x13f830[_0x20b070]['level']=_0x5bd496);_0x5bd496=0x0;for(let _0x2b4d06=_0x8e5d95-0x1;_0x2b4d06>=_0x3a461f;_0x2b4d06--)0x0==_0x13f830[_0x2b4d06]['distance']?_0x13f830[_0x2b4d06]['level']=_0x5bd496:(_0x5bd496--,_0x13f830[_0x2b4d06]['level']=_0x5bd496,_0x5bd496--);}}['_fixObsoleteTags'](_0xe1adc4){const _0x2ead34=new Map(),_0x3df41f=this['editor']['model']['schema'];for(let _0x2f232b=0x1;_0x2f232b<_0xe1adc4['length'];_0x2f232b++){let _0x5df545,_0x18994a,_0x2b7c6e;const _0x6815a6=_0xe1adc4[_0x2f232b],_0x458ffc=_0xe1adc4[_0x2f232b-0x1];if('text'==_0x6815a6['type'])continue;if(_0x6815a6['type']!=_0x458ffc['type'])continue;if(!_0x3df41f['isBlock'](_0x458ffc['item'])||_0x3df41f['isLimit'](_0x458ffc['item']))continue;if(!_0x3df41f['isBlock'](_0x6815a6['item'])||_0x3df41f['isLimit'](_0x6815a6['item']))continue;if((_0xe1adc4[_0x2f232b]['isAdded']||_0xe1adc4[_0x2f232b]['isAddSuggestion'])&&_0xe1adc4[_0x2f232b-0x1]['isRemoved'])_0x5df545=_0xe1adc4[_0x2f232b],_0x18994a=_0xe1adc4[_0x2f232b-0x1],_0x2b7c6e=_0x2f232b-0x1;else{if(!_0xe1adc4[_0x2f232b]['isRemoved']||!_0xe1adc4[_0x2f232b-0x1]['isAdded']&&!_0xe1adc4[_0x2f232b-0x1]['isAddSuggestion'])continue;_0x5df545=_0xe1adc4[_0x2f232b-0x1],_0x18994a=_0xe1adc4[_0x2f232b],_0x2b7c6e=_0x2f232b;}const _0x308aec=_0x5df545['level']==_0x18994a['level'],_0x41631c=Math['abs'](_0x5df545['level'])<Math['abs'](_0x18994a['level'])&&0x0==_0x18994a['distance'];(_0x308aec||_0x41631c)&&(_0x2ead34['set'](_0x18994a['id'],_0x5df545['id']),_0xe1adc4['splice'](_0x2b7c6e,0x1),_0x2f232b--,_0x5df545['isAdded']=!0x1);}for(let _0x252841=0x0;_0x252841<_0xe1adc4['length'];_0x252841++)_0x2ead34['has'](_0xe1adc4[_0x252841]['pairId'])&&(_0xe1adc4[_0x252841]['pairId']=_0x2ead34['get'](_0xe1adc4[_0x252841]['pairId']));}['_removeMissingPairs'](_0x41535d){const _0x58c4db=new Set(_0x41535d['map'](_0x241b65=>_0x241b65['id']));for(let _0x3ddecf=0x0;_0x3ddecf<_0x41535d['length'];_0x3ddecf++)_0x58c4db['has'](_0x41535d[_0x3ddecf]['pairId'])||0x0==_0x41535d[_0x3ddecf]['distance']||(_0x41535d[_0x3ddecf]['isIncorrect']=!0x0);return _0x41535d['filter'](_0x5db71e=>!_0x5db71e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x31b77f){const _0x444ef9=new Set();for(let _0x597dce=0x0;_0x597dce<_0x31b77f['length'];_0x597dce++){if(_0x444ef9['has'](_0x31b77f[_0x597dce]['id'])&&_0x31b77f[_0x597dce]['isRemoved']&&(_0x31b77f[_0x597dce]['isIncorrect']=!0x0),_0x31b77f[_0x597dce]['isIncorrect'])continue;if(0x0==_0x31b77f[_0x597dce]['distance'])continue;if('elementStart'!=_0x31b77f[_0x597dce]['type'])continue;if(null==_0x31b77f[_0x597dce]['pairId'])continue;let _0x29194a=_0x597dce+0x1,_0x5521ad=0x0;for(;_0x31b77f[_0x29194a]['id']!=_0x31b77f[_0x597dce]['pairId'];)'elementStart'==_0x31b77f[_0x29194a]['type']?_0x5521ad++:'elementEnd'==_0x31b77f[_0x29194a]['type']&&_0x5521ad--,_0x29194a++;if(0x0!=_0x5521ad){if(_0x31b77f[_0x597dce]['isRemoved'])_0x31b77f[_0x597dce]['isIncorrect']=!0x0;else{for(;_0x29194a!=_0x597dce;)_0x31b77f[_0x29194a]['isRemoved']&&0x0!=_0x31b77f[_0x29194a]['distance']&&(_0x31b77f[_0x29194a]['isIncorrect']=!0x0,_0x444ef9['add'](_0x31b77f[_0x29194a]['pairId'])),_0x29194a--;}}}return _0x31b77f['filter'](_0x5e3f44=>!_0x5e3f44['isIncorrect']);}['_removeUnsupportedChanges'](_0x34b51d){const _0x23606b=this['editor']['model']['schema'];for(let _0x18a95d=0x0;_0x18a95d<_0x34b51d['length'];_0x18a95d++){if(!(_0x34b51d[_0x18a95d]['isAdded']||_0x34b51d[_0x18a95d]['isAddSuggestion']||_0x34b51d[_0x18a95d]['isRemoved']||_0x34b51d[_0x18a95d]['isRemoveSuggestion']))continue;if(0x0==_0x34b51d[_0x18a95d]['distance'])continue;const _0x310854=_0x34b51d[_0x18a95d]['item'];_0x23606b['isBlock'](_0x310854)||_0x23606b['isLimit'](_0x310854)||(_0x34b51d[_0x18a95d]['isAdded']&&delete _0x34b51d[_0x18a95d]['isAdded'],_0x34b51d[_0x18a95d]['isAddSuggestion']&&delete _0x34b51d[_0x18a95d]['isAddSuggestion'],_0x34b51d[_0x18a95d]['isRemoveSuggestion']&&delete _0x34b51d[_0x18a95d]['isRemoveSuggestion'],_0x34b51d[_0x18a95d]['isRemoved']&&(_0x34b51d[_0x18a95d]['isIncorrect']=!0x0));}return _0x34b51d['filter'](_0x552385=>!_0x552385['isIncorrect']);}['_makeModelFromTape'](_0x2e8766,_0x1ebbff,_0x1d9666){const _0x3727ff=new ft(),_0x240d06=[],_0x300b4a=new Map(),_0x507518=this['editor']['model'],_0x386149=_0x507518['schema'],_0xff52f5=[_0x3727ff],_0x26eb95={},_0x14736e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1561ec=null;const _0x2a9c2b=[0x0];for(let _0x1dc16b=0x0;_0x1dc16b<_0x2e8766['length'];_0x1dc16b++)if('elementStart'===_0x2e8766[_0x1dc16b]['type']){_0x2e8766[_0x1dc16b]['previousPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b);const _0x33da54=new vt(_0x2e8766[_0x1dc16b]['item']['name'],_0x2e8766[_0x1dc16b]['item']['getAttributes']());_0xff52f5[0x0]['_appendChild'](_0x33da54),_0x2a9c2b['push'](0x0),_0xff52f5['unshift'](_0x33da54),_0x2e8766[_0x1dc16b]['nextPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b);}else'elementEnd'===_0x2e8766[_0x1dc16b]['type']?(_0xff52f5['shift'](),_0x2e8766[_0x1dc16b]['previousPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b),_0x2a9c2b['pop'](),_0x2a9c2b[_0x2a9c2b['length']-0x1]++,_0x2e8766[_0x1dc16b]['nextPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b)):(_0x2e8766[_0x1dc16b]['previousPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b),_0x1561ec?_0x1561ec['_data']+=_0x2e8766[_0x1dc16b]['item']['data']:_0x1561ec=new wt(_0x2e8766[_0x1dc16b]['item']['data'],_0x2e8766[_0x1dc16b]['item']['getAttributes']()),_0x2e8766[_0x1dc16b+0x1]&&'text'===_0x2e8766[_0x1dc16b+0x1]['type']&&_0x46dcae(_0x1561ec,_0x2e8766[_0x1dc16b+0x1]['item'])||(_0xff52f5[0x0]['_appendChild'](_0x1561ec),_0x1561ec=null),_0x2a9c2b[_0x2a9c2b['length']-0x1]+=_0x2e8766[_0x1dc16b]['item']['offsetSize'],_0x2e8766[_0x1dc16b]['nextPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b));for(let _0x214a4a=0x0;_0x214a4a<_0x2e8766['length'];_0x214a4a++){const _0x396d14=_0x2e8766[_0x214a4a]['previousPosition'],_0x5ec47c=_0x2e8766[_0x214a4a]['nextPosition'];for(const _0x2f8720 of _0x2e8766[_0x214a4a]['markersStart'])_0x300b4a['set'](_0x2f8720,{'start':_0x396d14,'end':null});_0x381423('isRemoveSuggestion',_0x214a4a,_0x396d14,_0x5ec47c),_0x381423('isAddSuggestion',_0x214a4a,_0x396d14,_0x5ec47c),_0x381423('isRemoved',_0x214a4a,_0x396d14,_0x5ec47c),_0x381423('isAdded',_0x214a4a,_0x396d14,_0x5ec47c);for(const _0x2bbd71 of _0x2e8766[_0x214a4a]['markersEnd']){_0x300b4a['get'](_0x2bbd71)['end']=_0x5ec47c;}}for(const [_0x3ec4e6,_0x208fbd]of _0x300b4a){const _0x2dd0e4=this['editor']['model']['createRange'](_0x208fbd['start'],_0x208fbd['end']);_0x3727ff['markers']['set'](_0x3ec4e6,_0x2dd0e4);}return _0x240d06['sort']((_0x23f588,_0x2ac450)=>{const _0x46bb36=_0x3727ff['markers']['get']('revision:'+_0x23f588['id']),_0xa572c7=_0x3727ff['markers']['get']('revision:'+_0x2ac450['id']);return _0x46bb36['start']['isBefore'](_0xa572c7['start'])?-0x1:_0x46bb36['start']['isAfter'](_0xa572c7['start'])?0x1:_0x46bb36['end']['isBefore'](_0xa572c7['end'])?-0x1:_0x46bb36['end']['isAfter'](_0xa572c7['end'])?0x1:'add'===_0x23f588['type']?-0x1:0x1;}),{'root':_0x3727ff,'changes':_0x240d06};function _0x381423(_0x2fdfa7,_0x14f111,_0x3b253c,_0x1d08d2){const _0xf21068=!!_0x2e8766[_0x14f111][_0x2fdfa7],_0xd7d2c2=_0xf21068?_0x2e8766[_0x14f111][_0x2fdfa7]['userId']:null,_0x3502c5=_0x14f111===_0x2e8766['length']-0x1,_0x6883c=_0x14736e[_0x2fdfa7][0x0],_0x919415=_0x386149['isObject'](_0x2e8766[_0x14f111]['item']);!_0x26eb95[_0x2fdfa7]&&_0xf21068?_0x26eb95[_0x2fdfa7]={'start':_0x3b253c,'tapeItem':_0x2e8766[_0x14f111],'userId':_0xd7d2c2,'type':_0x2fdfa7}:_0x26eb95[_0x2fdfa7]&&!_0xf21068?(_0x26eb95[_0x2fdfa7]['end']=_0x3b253c,_0x115889(_0x26eb95[_0x2fdfa7]),_0x26eb95[_0x2fdfa7]=null):_0x26eb95[_0x2fdfa7]&&_0xf21068&&_0x26eb95[_0x2fdfa7]['userId']!==_0xd7d2c2&&(_0x26eb95[_0x2fdfa7]['end']=_0x3b253c,_0x6883c&&_0x6883c['userId']===_0x26eb95[_0x2fdfa7]['userId']||_0x115889(_0x26eb95[_0x2fdfa7]),_0x26eb95[_0x2fdfa7]={'start':_0x3b253c,'tapeItem':_0x2e8766[_0x14f111],'userId':_0xd7d2c2,'type':_0x2fdfa7}),_0x26eb95[_0x2fdfa7]&&_0x919415&&('elementStart'!==_0x2e8766[_0x14f111]['type']||_0x6883c&&_0x6883c['userId']===_0xd7d2c2||_0x14736e[_0x2fdfa7]['unshift']({'userId':_0xd7d2c2,'object':_0x2e8766[_0x14f111]['item'],'change':_0x26eb95[_0x2fdfa7]}),'elementEnd'===_0x2e8766[_0x14f111]['type']&&_0x6883c&&_0x6883c['object']===_0x2e8766[_0x14f111]['item']&&(_0x14736e[_0x2fdfa7]['shift'](),_0x26eb95[_0x2fdfa7]=_0x6883c['change'])),_0x26eb95[_0x2fdfa7]&&_0x3502c5&&(_0x26eb95[_0x2fdfa7]['end']=_0x1d08d2,_0x115889(_0x26eb95[_0x2fdfa7]),_0x26eb95[_0x2fdfa7]=null);}function _0x115889({start:_0x2c1e77,end:_0x55bfe5,tapeItem:_0x2cb933,userId:_0x1d3dd2,type:_0x301c89}){const _0x4bdb52=_0x2cb933['item'],_0x512bdb=_0x507518['schema']['isBlock'](_0x4bdb52)&&!_0x507518['schema']['isLimit'](_0x4bdb52),_0x506cdd=_0x2c1e77['nodeAfter']==_0x55bfe5['parent']&&_0x55bfe5['isAtStart'];if(_0x512bdb&&_0x506cdd)return;const _0xc6ed72=_0x507518['createRange'](_0x2c1e77,_0x55bfe5),_0x4aaeb9=_0x1ebbff['get'](_0x1d3dd2),_0x17f67b=new r({'author':_0x4aaeb9,'type':'isAdded'==_0x301c89||'isAddSuggestion'==_0x301c89?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x301c89||'isRemoveSuggestion'==_0x301c89},'createdAt':new Date(),'rootName':_0x1d9666});_0x240d06['push'](_0x17f67b),_0x3727ff['markers']['set']('revision:'+_0x17f67b['id'],_0xc6ed72);}function _0x46dcae(_0x5ead52,_0x13ccf6){const _0x5294e9=_0x5ead52['getAttributes'](),_0x1a27f8=_0x13ccf6['getAttributes']();for(const _0x390e93 of _0x5294e9){if(_0x390e93[0x1]!==_0x13ccf6['getAttribute'](_0x390e93[0x0]))return!0x1;_0x1a27f8['next']();}return _0x1a27f8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3e756d=>{const _0x19abfd=_0x3e756d['markerName']['split'](':')[0x1],_0x880bf7=this['_getChangeFromId'](_0x19abfd);if(!_0x880bf7)return null;const _0x2c9096='add'==_0x880bf7['type']?'insertion':'deletion',_0x453814=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2c9096];return _0x880bf7['data']['isSuggestion']&&_0x453814['push']('ck-suggestion-marker-'+_0x2c9096+'-new'),this['activeChange']==_0x880bf7&&_0x453814['push']('ck-suggestion-marker--active'),{'classes':_0x453814,'attributes':{'data-change-id':_0x19abfd}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4dfe5f=>{_0x4dfe5f['on']('element:pre',(_0x4f1554,_0x3b1097,_0x2d972c)=>{const _0x557f41=_0x3b1097['viewItem']['getChild'](0x0);if(!_0x557f41||!_0x557f41['is']('element','code'))return;if(!_0x2d972c['consumable']['consume'](_0x557f41,{'attributes':['vid_start','vid_end']}))return;const _0x3029b0=_0x3b1097['modelRange']['start']['nodeAfter'];_0x2d972c['writer']['setAttribute']('vid_start',_0x557f41['getAttribute']('vid_start'),_0x3029b0),_0x2d972c['writer']['setAttribute']('vid_end',_0x557f41['getAttribute']('vid_end'),_0x3029b0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xe4572f=>{_0xe4572f['on']('element',(_0x9dcc17,_0x182ecd,_0x48629b)=>{if(!_0x48629b['consumable']['consume'](_0x182ecd['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x182ecd['modelRange']['isCollapsed'])return;const _0x571d6c=_0x182ecd['modelRange']['start']['nodeAfter'];_0x571d6c['hasAttribute']('vid_start')||_0x571d6c['hasAttribute']('vid')||(_0x48629b['writer']['setAttribute']('vid_start',_0x182ecd['viewItem']['getAttribute']('vid_start'),_0x571d6c),_0x48629b['writer']['setAttribute']('vid_end',_0x182ecd['viewItem']['getAttribute']('vid_end'),_0x571d6c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x56b017=>_0x56b017['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x229551,[,_0x4e8b8b])=>{['vid_start','vid_end','vid']['includes'](_0x4e8b8b)&&(_0x229551['return']=!0x0,_0x229551['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x202cac=>{_0x202cac['on']('attribute:vid',(_0x415e93,_0x238980,_0x13c98f)=>{if('\x20'!=_0x238980['item']['data']||_0x238980['item']['parent']['maxOffset']>0x1)return;if(!_0x13c98f['consumable']['consume'](_0x238980['item'],_0x415e93['name']))return;const _0x278724=_0x13c98f['writer'],_0x2bef00=_0x13c98f['mapper']['toViewRange'](_0x238980['range']);_0x278724['wrap'](_0x2bef00,_0x278724['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xea316){const _0x138a05=_0xea316['plugins']['get']('RevisionViewer');return(_0x14d894,_0x59b38b,_0x3816fb)=>{const _0x92cd07=_0x59b38b['markerName']['split'](':')[0x1],_0x3e1fab=_0x138a05['_getChangeFromId'](_0x92cd07);if(!_0x3e1fab)return null;const _0x530de9='add'==_0x3e1fab['type']?'split':'merge';if(!_0x3816fb['consumable']['test'](_0x59b38b['markerRange'],_0x14d894['name']))return;const _0x141034=_0x59b38b['markerRange']['getWalker'](),_0x25d0c5=_0x59b38b['markerRange']['start'],_0x172aa6=_0xea316['model']['schema'];let _0x344113=null,_0x46a8fb=null,_0x413e60=!0x1,_0xe3f6d6=!0x1;for(const _0x182578 of _0x141034){const _0x22ec5e=_0x182578['item'];_0x413e60=_0x413e60||_0x172aa6['isContent'](_0x22ec5e);const _0x3bc8d0=_0x3816fb['mapper']['toViewElement'](_0x22ec5e);if(_0x3bc8d0&&_0x3bc8d0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x182578['type']&&(_0x172aa6['isBlock'](_0x22ec5e)&&!_0x172aa6['isLimit'](_0x22ec5e)&&(_0x22ec5e['nextSibling']||_0x25d0c5['isAtEnd']?_0x344113&&_0x344113['parent']==_0x22ec5e||(_0x344113=_0x22ec5e,_0x95429(_0x182578['previousPosition']),_0xe3f6d6=!0x0):_0x46a8fb=_0x46a8fb||_0x182578['previousPosition']));}function _0x95429(_0x3568ea){const _0x572c14=_0x3816fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x530de9}),_0x12c90a=_0x3816fb['mapper']['toViewPosition'](_0x3568ea);_0x3e1fab['data']['isSuggestion']&&_0x3816fb['writer']['addClass']('ck-suggestion-marker-'+_0x530de9+'-new',_0x572c14),_0x138a05['activeChange']==_0x3e1fab&&_0x3816fb['writer']['addClass']('ck-suggestion-marker--active',_0x572c14),_0x3816fb['writer']['insert'](_0x12c90a,_0x572c14),_0x3816fb['mapper']['bindElementToMarker'](_0x572c14,_0x59b38b['markerName']);}_0x413e60||_0xe3f6d6||!_0x46a8fb||_0x95429(_0x46a8fb);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xb7293d,_0x5707bf,_0xbb1f9d)=>{const _0x57ac81=_0xbb1f9d['mapper']['markerNameToElements'](_0x5707bf['markerName']);if(_0x57ac81){for(const _0x3872c9 of _0x57ac81)(_0x3872c9['hasClass']('ck-suggestion-marker-split')||_0x3872c9['hasClass']('ck-suggestion-marker-merge'))&&(_0xbb1f9d['mapper']['unbindElementFromMarkerName'](_0x3872c9,_0x5707bf['markerName']),_0xbb1f9d['writer']['remove'](_0x3872c9));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1546a4,_0x3a87fa,_0x47bf29)=>{const _0x41815b=_0x3a87fa['markerName']['split'](':')[0x1],_0x160462=this['_getChangeFromId'](_0x41815b);if(!_0x160462)return null;const _0x4ff2a9='add'==_0x160462['type']?'split':'merge';if(_0x47bf29['consumable']['test'](_0x3a87fa['markerRange'],_0x1546a4['name']))for(const _0x3b22b4 of _0x3a87fa['markerRange']['getItems']()){if(!_0x3b22b4['is']('element','softBreak'))continue;const _0x19ae32=_0x47bf29['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ff2a9}),_0xad29=_0x47bf29['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3b22b4));_0x160462['data']['isSuggestion']&&_0x47bf29['writer']['addClass']('ck-suggestion-marker-'+_0x4ff2a9+'-new',_0x19ae32),this['activeChange']==_0x160462&&_0x47bf29['writer']['addClass']('ck-suggestion-marker--active',_0x19ae32),_0x47bf29['writer']['insert'](_0xad29,_0x19ae32),_0x47bf29['mapper']['bindElementToMarker'](_0x19ae32,_0x3a87fa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x204416=>{for(const _0xb8a8ee of this['editor']['model']['document']['getRootNames']()){const _0x5154ca=this['editor']['model']['document']['getRoot'](_0xb8a8ee),_0x2cefab=this['editor']['editing']['view']['document']['getRoot'](_0xb8a8ee);if(_0x2cefab){const _0x57c0fb=_0x5154ca['getAttribute']('revisionHistoryAttachChange');if(_0x204416['removeAttribute']('data-change-id',_0x2cefab),_0x204416['removeClass']('ck-revision-history-root-add',_0x2cefab),_0x204416['removeClass']('ck-revision-history-root-remove',_0x2cefab),_0x204416['removeClass']('ck-revision-history-root--active',_0x2cefab),_0x57c0fb){const _0x2c1513=this['_getChangeFromId'](_0x57c0fb);if(!_0x2c1513)return null;_0x204416['setAttribute']('data-change-id',_0x57c0fb,_0x2cefab),_0x204416['addClass']('ck-revision-history-root-'+_0x2c1513['type'],_0x2cefab),this['activeChange']==_0x2c1513&&_0x204416['addClass']('ck-revision-history-root--active',_0x2cefab);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5ac5c6=>'revision-comment:'+_0x5ac5c6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4893dd=>'revision-suggestion:'+_0x4893dd,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x420283=>({'name':'suggestion:'+_0x420283,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x128fd0=>{const _0x7aa974=_0x128fd0['markerName']['split'](':')[0x1];return'insertion'!=_0x7aa974&&'deletion'!=_0x7aa974?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x7aa974]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5865b7,_0x3f409c,_0x23e76a)=>{const _0x4e228e=_0x23e76a['mapper']['markerNameToElements'](_0x3f409c['markerName']);if(_0x4e228e){for(const _0x7dc96 of _0x4e228e)_0x7dc96['is']('uiElement')&&(_0x23e76a['mapper']['unbindElementFromMarkerName'](_0x7dc96,_0x3f409c['markerName']),_0x23e76a['writer']['remove'](_0x7dc96));}},{'priority':'high'});}['_getChangeFromId'](_0x4b4993){return this['_changeIdToChange']['get'](_0x4b4993);}['_getViewForChange'](_0x4c825a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x4c825a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2f3c11,_0x1df242,_0x550ddd,_0x37a5ba)=>{_0x37a5ba&&this['_balloon']['remove'](_0x37a5ba),_0x550ddd&&(this['_balloon']['add']({'view':_0x550ddd,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2f6011=this['editor']['editing'],_0xe72391=this['_getChangeFromId'](_0x550ddd['changeId']);let _0x5d8e7d;if(_0xe72391['data']['isOnRoot']){const _0x2e3dde=_0x2f6011['view']['getDomRoot'](_0xe72391['rootName']);_0x5d8e7d=Array['from'](_0x2e3dde['getClientRects']());}else{const _0x2ce17a=this['editor']['model']['markers']['get']('revision:'+_0x550ddd['changeId']);_0x5d8e7d=Array['from'](_0x2f6011['mapper']['markerNameToElements'](_0x2ce17a['name']))['map'](_0x3cca2c=>_0x2f6011['view']['domConverter']['mapViewToDom'](_0x3cca2c))['map'](_0x288308=>Array['from'](_0x288308['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5d8e7d[0x0];return _0x5d8e7d['find'](_0x4da02f=>_0x4da02f['top']-0x3<=this['_activeViewTarget']['y']&&_0x4da02f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4da02f['left']-0x3<=this['_activeViewTarget']['x']&&_0x4da02f['right']+0x3>=this['_activeViewTarget']['x'])||_0x5d8e7d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x260a8c,_0x253e89,_0x4a8149,_0x3fb66c)=>{this['activeView']=_0x4a8149?this['_getViewForChange'](_0x4a8149):null,this['editor']['model']['change'](()=>{const _0x28a09f=this['editor']['editing'];_0x3fb66c&&(_0x3fb66c['data']['isOnRoot']?_0x28a09f['view']['change'](_0x23f704=>{_0x23f704['removeClass']('ck-revision-history-root--active',_0x28a09f['view']['document']['getRoot'](_0x3fb66c['rootName']));}):_0x28a09f['reconvertMarker']('revision:'+_0x3fb66c['id'])),_0x4a8149&&(_0x4a8149['data']['isOnRoot']?_0x28a09f['view']['change'](_0x1ca514=>{_0x1ca514['addClass']('ck-revision-history-root--active',_0x28a09f['view']['document']['getRoot'](_0x4a8149['rootName']));}):_0x28a09f['reconvertMarker']('revision:'+_0x4a8149['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5e2659,_0x4e34da)=>{if(this['activeChange'])return;const _0x24acf9=this['_findChangeIdFromDomTarget'](_0x4e34da['target']),_0x53c060=this['_changeIdToChange']['get'](_0x24acf9);_0x53c060?(this['_activeViewTarget']={'x':_0x4e34da['domEvent']['x'],'y':_0x4e34da['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x53c060)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x26de44,_0x1d4bbb)=>{const _0x23f5a4=this['_findChangeIdFromDomTarget'](_0x1d4bbb['target']),_0x37c8b6=this['_changeIdToChange']['get'](_0x23f5a4);_0x37c8b6?(this['_activeViewTarget']={'x':_0x1d4bbb['domEvent']['x'],'y':_0x1d4bbb['domEvent']['y']},_0x37c8b6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x37c8b6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x23c77d){do{const _0x565aad=_0x23c77d['getAttribute']('data-change-id');if(_0x565aad)return _0x565aad;_0x23c77d=_0x23c77d['parent'];}while(_0x23c77d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2c83aa=>{for(const _0x1ee0e1 of this['editor']['model']['markers'])_0x2c83aa['removeMarker'](_0x1ee0e1);});}}function tt(_0x4ee1f0,_0x4a0f57){return(_0x5699bd,_0x3bb069,_0x3d964c)=>{if(!_0x3d964c['consumable']['test'](_0x3bb069['markerRange'],_0x5699bd['name']))return;const _0x29aec1=_0x3bb069['markerRange']['getWalker'](),_0x5a3c9f=_0x3bb069['markerRange']['start'],_0x223236=_0x4ee1f0['model']['schema'];let _0x2f3eb6=null,_0x4f27a1=null,_0x2977c2=!0x1,_0x50f877=!0x1;for(const _0x2a6792 of _0x29aec1){const _0xa4681a=_0x2a6792['item'];_0x2977c2=_0x2977c2||_0x223236['isContent'](_0xa4681a);const _0x4355ea=_0x3d964c['mapper']['toViewElement'](_0xa4681a);if(_0x4355ea&&_0x4355ea['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a6792['type']&&(_0x223236['isBlock'](_0xa4681a)&&!_0x223236['isLimit'](_0xa4681a)&&(_0xa4681a['nextSibling']||_0x5a3c9f['isAtEnd']?_0x2f3eb6&&_0x2f3eb6['parent']==_0xa4681a||(_0x2f3eb6=_0xa4681a,_0x1825e2(_0x2a6792['previousPosition']),_0x50f877=!0x0):_0x4f27a1=_0x4f27a1||_0x2a6792['previousPosition']));}function _0x1825e2(_0x202b43){const _0x130f91=_0x3d964c['mapper']['toViewPosition'](_0x202b43),_0x38f50d=_0x3d964c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4a0f57});_0x3d964c['writer']['insert'](_0x130f91,_0x38f50d),_0x3d964c['mapper']['bindElementToMarker'](_0x38f50d,_0x3bb069['markerName']);}_0x2977c2||_0x50f877||!_0x4f27a1||_0x1825e2(_0x4f27a1);};}class _t extends _0x57ae62{constructor(_0x1fd973){super(_0x1fd973);const _0x28b12=_0x1fd973['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x28b12,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28b12,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xecfba7=this['editor'],_0x1fe4f0=_0xecfba7['plugins']['get'](d),_0x5d03ad=_0x1fe4f0['isReady']?_0x1fe4f0['diff']['newRevisionId']:null;_0xecfba7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5d03ad);}['refresh'](){const {isReady:_0x1b976f,isEnabled:_0x5ba652}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x1b976f&&_0x5ba652;}}class yt extends _0x57ae62{['_step'];constructor(_0x1b0f3b,{direction:_0xa04aed}){super(_0x1b0f3b);const _0x10ec70=_0x1b0f3b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xa04aed?0x1:-0x1,this['listenTo'](_0x10ec70,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10ec70,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x10ec70,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2e97a5=this['editor'],_0x27b197=_0x2e97a5['plugins']['get'](d),{isNavigationMode:_0x31361e,currentChangeNumber:_0x5e6814}=_0x27b197;let _0x33f89d;if(_0x27b197['activeChange']=_0x31361e?_0x27b197['diff']['changes']['get'](_0x5e6814+this['_step']):_0x27b197['diff']['changes']['first'],_0x27b197['activeChange']['data']['isOnRoot'])_0x33f89d=_0x2e97a5['editing']['view']['getDomRoot'](_0x27b197['activeChange']['rootName']);else{const _0x5ca420=_0x2e97a5['model']['markers']['get']('revision:'+_0x27b197['activeChange']['id']);_0x33f89d=_0x2d9dc8(_0x2e97a5['editing'],_0x5ca420);}_0x1936d6({'target':_0x33f89d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2e2f82,currentChangeNumber:_0x372c6e,numberOfChanges:_0x1460b5,isReady:_0x9a7de0,isEnabled:_0x5df253}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5df253&&_0x9a7de0&&_0x1460b5)&&(!_0x2e2f82||(0x1===this['_step']?_0x372c6e<_0x1460b5-0x1:_0x372c6e>0x0));}}class ei extends ts{constructor(_0x54fae6){super(_0x54fae6);const _0x14e6e4=this['bindTemplate'],_0x5a5bea=new te(_0x54fae6),_0x5afdfd=new te(_0x54fae6);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',(_0x307bb7,_0x595885)=>_0x307bb7&&_0x595885>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x148c4c,_0x5b4a5b,_0x54875f,_0x55ab91)=>{if(!_0x148c4c)return R(_0x54fae6,'Loading...');if(!_0x54875f)return R(_0x54fae6,'No\x20changes');const _0x3d1387=R(_0x54fae6,'NUMBER_OF_CHANGES',_0x54875f);return _0x55ab91?R(_0x54fae6,'X_OF_Y_CHANGES',[_0x5b4a5b+0x1,_0x54875f]):_0x3d1387;}),_0x5a5bea['set']({'label':R(_0x54fae6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5afdfd['set']({'label':R(_0x54fae6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x5a5bea['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5afdfd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5a5bea['on']('execute',()=>this['fire']('execute','backward')),_0x5afdfd['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',_0x14e6e4['if']('_isStatusLabelVisible','ck-hidden',_0x1db240=>!_0x1db240)]},'children':[{'text':_0x14e6e4['to']('isNavigationMode',_0x580491=>_0x580491?R(_0x54fae6,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x54fae6,'Total')+':\x20')}]},{'text':_0x14e6e4['to']('_statusText')}]},new _0x6c342d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5a5bea,_0x5afdfd]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x12191e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x573b2f=this['editor']['editing']['view'];_0x573b2f['change'](_0x1822bd=>{for(const _0x786608 of _0x573b2f['document']['roots'])_0x1822bd['addClass'](le,_0x786608);});}['hide'](){const _0x4a3462=this['editor']['editing']['view'];_0x4a3462['change'](_0x23b60f=>{for(const _0x3ff223 of _0x4a3462['document']['roots'])_0x23b60f['removeClass'](le,_0x3ff223);});}}class m extends _0x12191e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x2e63aa=this['editor'],_0x3b6ace=_0x2e63aa['plugins']['get'](d),_0x189831=_0x2e63aa['plugins']['get'](de);_0x2e63aa['ui']['componentFactory']['add']('exitToEditing',_0x2040a4=>{const _0x423b3d=new te(_0x2040a4);return _0x423b3d['set']({'label':R(_0x2040a4,'Back\x20to\x20editing'),'icon':_0x48c017['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x423b3d,'execute',()=>{_0x2e63aa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x423b3d;}),_0x2e63aa['ui']['componentFactory']['add']('restoreRevision',_0x1fc20f=>{const _0x5092f1=new te(_0x1fc20f);return _0x5092f1['set']({'label':R(_0x1fc20f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5092f1['bind']('isEnabled')['to'](_0x2e63aa['commands']['get']('restoreRevision')),this['listenTo'](_0x5092f1,'execute',()=>_0x2e63aa['execute']('restoreRevision')),_0x5092f1;}),_0x2e63aa['ui']['componentFactory']['add']('changesNavigation',_0x5bdaed=>{const _0x474123=new ei(_0x5bdaed),_0x2adafc=_0x2e63aa['commands']['get']('showPreviousChange'),_0xdb3e34=_0x2e63aa['commands']['get']('showNextChange');return _0x474123['bind']('isBackwardNavigationEnabled')['to'](_0x2adafc,'isEnabled'),_0x474123['bind']('isForwardNavigationEnabled')['to'](_0xdb3e34,'isEnabled'),_0x474123['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3b6ace),this['listenTo'](_0x474123,'execute',(_0x2507e0,_0x3f9d45)=>{_0x2e63aa['execute']('forward'===_0x3f9d45?'showNextChange':'showPreviousChange');}),_0x474123;}),_0x189831['show'](),_0x3b6ace['on']('change:isReady',(_0x4f140c,_0x4575f1,_0x30c0ce)=>{_0x30c0ce?_0x189831['hide']():_0x189831['show']();});}}class pt extends _0x562d35{['_resizeObserver']=null;constructor(_0x13c152,_0x506caa){super(_0x13c152,_0x506caa);const _0x3d4bb7=this['bindTemplate'];this['set']({'label':R(_0x13c152,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x13c152,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3d4bb7['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5e91aa=this['fieldView']['element'];this['_tooltipString']=_0x5e91aa['scrollWidth']>_0x5e91aa['clientWidth']&&_0x5e91aa['value']||'';}}class ai extends ts{constructor(_0x13483d,_0x472cbf,_0x3f5814){super(_0x13483d);const _0x4f94c2=new _0x3742bc();_0x4f94c2['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x114849=['ck','ck-revision-history-sidebar__revision-author'];_0x3f5814&&_0x114849['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2932bf=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13483d,_0x3f5814?'Revision\x20creator':'Revision\x20author')},'children':[_0x4f94c2,_0x472cbf['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x114849},'children':_0x2932bf});}}function _i(_0x673905,_0x51afcf){const _0x40209f=_0x673905['bindTemplate'],_0x1423c4=_0x673905['locale'],_0x269cb8=_0x31370f(_0x1423c4);_0x269cb8['panelPosition']='sw';const _0x392394=function(_0x559879,_0x3f32fa){const _0x4d2a24=function(_0x567b1b,_0x394535){const _0x2b6687=_0x567b1b['locale'],_0x459f68={'Compare\x20against\x20selected':R(_0x2b6687,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2b6687,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2b6687,'Restore\x20this\x20revision')};return _0x394535['map'](_0x29c607=>{const _0x340971=_0x459f68[_0x29c607['name']];return _0x340971&&_0x340971!==_0x29c607['name']&&(_0x29c607['name']=_0x340971),_0x29c607;});}(_0x559879,_0x3f32fa),_0x5ebae0=new _0x18cc15();for(const _0x4bbdc0 of _0x4d2a24){const _0x48c3bd={'type':'button','model':new _0x4cf5b2({'label':_0x4bbdc0['name'],'class':_0x4bbdc0['class'],'withText':!0x0,'role':'menuitem','_action':_0x4bbdc0['action']})};_0x48c3bd['model']['bind']('isEnabled')['to'](_0x559879,'isActionsDropdownOpen',_0xe35252=>'function'!=typeof _0x4bbdc0['isEnabled']||(!_0xe35252||_0x4bbdc0['isEnabled'](_0x559879))),_0x5ebae0['add'](_0x48c3bd);}return _0x5ebae0;}(_0x673905,_0x51afcf);return _0x673905['bind']('isActionsDropdownOpen')['to'](_0x269cb8,'isOpen'),_0x269cb8['buttonView']['set']({'label':R(_0x1423c4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x48c017['threeVerticalDots']}),_0x269cb8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x40209f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x40209f['to'](_0x2a7cd4=>_0x2a7cd4['stopPropagation']())}}),_0x269cb8['on']('execute',_0x300270=>{_0x673905['isReady']&&'function'==typeof _0x300270['source']['_action']&&_0x300270['source']['_action'](_0x673905);}),to(_0x269cb8,_0x392394,{'role':'menu'}),_0x269cb8['listenTo'](_0x673905,'change:isActionsDropdownOpen',(_0x18f1f3,_0x2bdf9e,_0x30ef65)=>{if(_0x30ef65)for(const _0x26eadb of _0x269cb8['listView']['items']){const _0x3b512a=_0x26eadb['children']['first'],_0x3ddf3d=_0x51afcf['find'](_0x17317e=>_0x17317e['action']===_0x3b512a['_action'])['isVisible'];_0x26eadb['isVisible']=void 0x0===_0x3ddf3d||_0x3ddf3d(_0x673905);}}),_0x269cb8;}class ri extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x598a16,uid as _0x13ea74,Collection as _0x1a9df2,logWarning as _0x5b881d,FocusTracker as _0x54d3f2,KeystrokeHandler as _0x308ede,scrollViewportToShowTarget as _0x331413,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x4e9461}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x50487a,set as _0x5a78f4,unset as _0x424279,isEqual as _0x504244}from'lodash-es';import{Plugin as _0x5532dc,PendingActions as _0x13e128,icons as _0x31f906,Command as _0xd51870,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xf9156,getMarkerDomElement as _0x40f7d0,ConfirmMixin as _0x777910,sanitizeEditorConfig as _0x281491}from'ckeditor5-collaboration/dist/index.js';import{DocumentFragment as ft,ViewDocumentFragment as _0x25be1c,ViewText as _0x37bb31,ViewUIElement as _0x219f67,ViewRawElement as _0x3b00fb,ViewEmptyElement as _0x5f428e,ViewAttributeElement as _0x512f4b,ViewContainerElement as _0x4348ae,ViewElement as _0x4802ce,Element as vt,Range as gt,Position as wt,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x1c2fad,injectCssTransitionDisabler as ts,submitHandler as _0x2d9e3a,LabeledFieldView as at,createLabeledInputText as _0x3eef4d,createDropdown as _0x47dec9,ListView as te,ListItemView as _0x105abf,ButtonView as _0x204591,MenuBarMenuView as _0x1c0c94,MenuBarMenuListView as _0x266d47,MenuBarMenuListItemView as _0xca032c,MenuBarMenuListItemButtonView as _0x484cc0,ContextualBalloon as _0x45b95e,ToolbarSeparatorView as _0x18e46c,IconView as _0x5c0fad,ViewModel as to,addListToDropdown as _0x1a95cb,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5887d8}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x598a16(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4e5e61){super(),this['id']=_0x4e5e61['id']||_0x13ea74(),this['creator']=_0x4e5e61['creator']||null,this['authors']=_0x4e5e61['authors']||[],this['diffData']=_0x4e5e61['diffData']||null,this['toVersion']=_0x4e5e61['toVersion']||0x0,this['fromVersion']=_0x4e5e61['fromVersion']||0x0,this['set']('name',_0x4e5e61['name']||''),this['set']('createdAt',_0x4e5e61['createdAt']||new Date()),this['set']('attributes',_0x4e5e61['attributes']||{});}['setName'](_0x6a6791){this['_update']({'name':_0x6a6791});}['setAttribute'](_0x383443,_0x845dd){const _0xf46493=_0x50487a(this['attributes']);_0x5a78f4(_0xf46493,_0x383443,_0x845dd),this['_update']({'attributes':_0xf46493});}['removeAttribute'](_0x288baa){const _0x1c1734=_0x50487a(this['attributes']);_0x424279(_0x1c1734,_0x288baa),this['_update']({'attributes':_0x1c1734});}['_update'](_0x4ef2f1,_0x29aecf=!0x1){let _0x5ce7bb=!0x1;const _0x45c54d={'id':this['id']},_0x635a2e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x54604c of _0x635a2e){const _0x4c3953=_0x4ef2f1[_0x54604c];void 0x0!==_0x4c3953&&_0x4c3953!==this[_0x54604c]&&(this[_0x54604c]=_0x4c3953,_0x45c54d[_0x54604c]=_0x4c3953,_0x5ce7bb=!0x0);}_0x5ce7bb&&(_0x45c54d['authors']&&(_0x45c54d['authorsIds']=_0x45c54d['authors']['map'](_0x461423=>_0x461423['id']),delete _0x45c54d['authors']),this['fire']('_update',_0x45c54d,_0x29aecf));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5e061d=>_0x5e061d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5532dc{['_revisions'];static get['requires'](){return[_0xf9156];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x366901){super(_0x366901),this['_revisions']=new _0x1a9df2();}['afterInit'](){!async function(_0x45006b){const _0x2295bb=_0x4f0f4e([0x62,0x52,0x4f,0x6b,0x42,0x79,0x5a,0x34,0x41,0x6c,0x66,0x69,0x4e,0x4c,0x76,0x35,0x37,0x75,0x4d,0x55,0x54,0x6d,0x48,0x51,0x68,0x50,0x64,0x73,0x4a,0x6f,0x49,0x32,0x44,0x30,0x6a,0x59,0x56,0x67,0x70,0x47,0x74,0x45,0x43,0x72,0x58,0x7a,0x61,0x36,0x65,0x53,0x4b,0x77,0x78,0x71,0x33,0x39,0x63,0x46,0x38,0x31,0x6e,0x57]),_0x5367ce=0xeb829,_0x464140=0x486a9e29,_0x2c9c6c=0x486dc911^_0x464140,_0x131c73=window[_0x4f0f4e([0x44,0x61,0x74,0x65])][_0x4f0f4e([0x6e,0x6f,0x77])](),_0x5cc4e0=_0x45006b[_0x4f0f4e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x362d90=new window[(_0x4f0f4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x464da3=>{_0x5cc4e0[_0x4f0f4e([0x6f,0x6e,0x63,0x65])](_0x4f0f4e([0x72,0x65,0x61,0x64,0x79]),_0x464da3);}),_0x4dce7e={[_0x4f0f4e([0x6b,0x74,0x79])]:_0x4f0f4e([0x45,0x43]),[_0x4f0f4e([0x75,0x73,0x65])]:_0x4f0f4e([0x73,0x69,0x67]),[_0x4f0f4e([0x63,0x72,0x76])]:_0x4f0f4e([0x50,0x2d,0x32,0x35,0x36]),[_0x4f0f4e([0x78])]:_0x4f0f4e([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]),[_0x4f0f4e([0x79])]:_0x4f0f4e([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]),[_0x4f0f4e([0x61,0x6c,0x67])]:_0x4f0f4e([0x45,0x53,0x32,0x35,0x36])},_0x4293e2=_0x5cc4e0[_0x4f0f4e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f0f4e([0x67,0x65,0x74])](_0x4f0f4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54a499(){let _0x36aed0,_0x337a1b=null,_0x435db8=null;try{if(_0x4293e2==_0x4f0f4e([0x47,0x50,0x4c]))return _0x4f0f4e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36aed0=_0x5d3fac(),!_0x36aed0)return _0x4f0f4e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36aed0[_0x4f0f4e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x435db8=_0x3328da(_0x36aed0[_0x4f0f4e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36aed0[_0x4f0f4e([0x6a,0x74,0x69])])),await _0x25fe2e()?_0x96bd3()?_0x87063a()?_0x4f0f4e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29f847()?(_0x36aed0[_0x4f0f4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f0f4e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x337a1b=_0x373bb7(_0x4f0f4e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36aed0[_0x4f0f4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f0f4e([0x74,0x72,0x69,0x61,0x6c])&&(_0x337a1b=_0x373bb7(_0x4f0f4e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x36aed0[_0x4f0f4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f0f4e([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x337a1b=_0x373bb7(_0x4f0f4e([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x434fce()):_0x4f0f4e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f0f4e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f0f4e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b43d1){return _0x4f0f4e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x87063a(){const _0x426e2f=[_0x4f0f4e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f0f4e([0x74,0x72,0x69,0x61,0x6c])][_0x4f0f4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36aed0[_0x4f0f4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x131c73/0x3e8:0xe10*_0x2c9c6c;return _0x36aed0[_0x4f0f4e([0x65,0x78,0x70])]<_0x426e2f;}function _0x96bd3(){const _0x53a05b=_0x36aed0[_0x4f0f4e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53a05b&&(!!_0x53a05b[_0x4f0f4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f0f4e([0x2a]))||(!!_0x53a05b[_0x4f0f4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f0f4e([0x52,0x48]))||!(!_0x53a05b[_0x4f0f4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f0f4e([0x52,0x52,0x48]))||!_0x5c4ecb())));}function _0x29f847(){const _0xed07a4=_0x36aed0[_0x4f0f4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xed07a4||0x0==_0xed07a4[_0x4f0f4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa36b58}=new URL(window[_0x4f0f4e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xed07a4[_0x4f0f4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa36b58))return!0x0;const _0xa43437=_0xa36b58[_0x4f0f4e([0x73,0x70,0x6c,0x69,0x74])](_0x4f0f4e([0x2e]));return _0xed07a4[_0x4f0f4e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c8bee=>_0x1c8bee[_0x4f0f4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f0f4e([0x2a])))[_0x4f0f4e([0x6d,0x61,0x70])](_0x74826d=>_0x74826d[_0x4f0f4e([0x73,0x70,0x6c,0x69,0x74])](_0x4f0f4e([0x2e])))[_0x4f0f4e([0x73,0x6f,0x6d,0x65])](_0x549282=>_0xa43437[_0x4f0f4e([0x65,0x76,0x65,0x72,0x79])]((_0x4ec894,_0x16a188)=>_0x549282[_0x16a188]===_0x4ec894||_0x549282[_0x16a188]===_0x4f0f4e([0x2a])));}function _0x434fce(){return _0x337a1b&&_0x435db8?new window[(_0x4f0f4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581a1f,_0x5571a1)=>{_0x337a1b[_0x4f0f4e([0x74,0x68,0x65,0x6e])](_0x581a1f,_0x5571a1),_0x435db8[_0x4f0f4e([0x74,0x68,0x65,0x6e])](_0x152289=>{_0x152289!=_0x4f0f4e([0x56,0x61,0x6c,0x69,0x64])&&_0x581a1f(_0x152289);},_0x5571a1);}):_0x337a1b||_0x435db8||_0x4f0f4e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3328da(_0x4cefef,_0x19afbc){return new window[(_0x4f0f4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38848b=>{if(_0x1c2994())return _0x38848b(_0x4f0f4e([0x56,0x61,0x6c,0x69,0x64]));_0x2cb46e(),_0x5cc4e0[_0x4f0f4e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f0f4e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33e883=!0x1;const _0x2630c0=_0x13ea74();function _0x4a56ec(_0x506b3a){return!!_0x506b3a&&(typeof _0x506b3a===_0x4f0f4e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x506b3a===_0x4f0f4e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x506b3a[_0x4f0f4e([0x74,0x68,0x65,0x6e])]===_0x4f0f4e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x506b3a[_0x4f0f4e([0x63,0x61,0x74,0x63,0x68])]===_0x4f0f4e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47e23f(_0x5a502a){_0x4041dc(_0x5a502a)[_0x4f0f4e([0x74,0x68,0x65,0x6e])](_0x2edc0f=>{if(!_0x2edc0f||_0x2edc0f[_0x4f0f4e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f0f4e([0x6f,0x6b]))return _0x4f0f4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f6ae0(_0x1e6694(_0x2630c0+_0x19afbc))!=_0x2edc0f[_0x4f0f4e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f0f4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f0f4e([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f0f4e([0x74,0x68,0x65,0x6e])](_0x42bfee=>(_0x36d96d(),_0x42bfee),()=>{const _0x39f53e=_0x50c737();return null==_0x39f53e?(_0x36d96d(),_0x4f0f4e([0x56,0x61,0x6c,0x69,0x64])):_0x4f0f4e(_0x131c73-_0x39f53e>(0x6c661a29^_0x464140)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f0f4e([0x74,0x68,0x65,0x6e])](_0x38848b)[_0x4f0f4e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38848b(_0x4f0f4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6135f3=0x485c70a9^_0x464140;function _0x36d96d(){const _0x11b9fe=_0x4f0f4e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f6ae0(_0x1e6694(_0x4cefef)),_0x488f10=_0x33ea47(_0x4f6ae0(window[_0x4f0f4e([0x4d,0x61,0x74,0x68])][_0x4f0f4e([0x63,0x65,0x69,0x6c])](_0x131c73/_0x6135f3)));window[_0x4f0f4e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f0f4e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11b9fe,_0x488f10);}function _0x50c737(){const _0x20b8d7=_0x4f0f4e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f6ae0(_0x1e6694(_0x4cefef)),_0x25d3f7=window[_0x4f0f4e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f0f4e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20b8d7);return _0x25d3f7?window[_0x4f0f4e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33ea47(_0x25d3f7),0x10)*_0x6135f3:null;}function _0x4041dc(_0x300bf2){return new window[(_0x4f0f4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25c21f,_0x46c115)=>{_0x300bf2[_0x4f0f4e([0x74,0x68,0x65,0x6e])](_0x25c21f,_0x46c115),window[_0x4f0f4e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46c115,0x486b4ae9^_0x464140);});}}_0x5cc4e0[_0x4f0f4e([0x6f,0x6e])](_0x4f0f4e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa9c3e7,_0x5f35ac)=>{if(_0x5f35ac[0x0]!=_0x4cefef)return _0x38848b(_0x4f0f4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f35ac[0x1]={..._0x5f35ac[0x1],[_0x4f0f4e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2630c0};},{[_0x4f0f4e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f0f4e([0x68,0x69,0x67,0x68])}),_0x5cc4e0[_0x4f0f4e([0x6f,0x6e])](_0x4f0f4e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2de284=>{_0x4a56ec(_0x2de284[_0x4f0f4e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33e883=!0x0,_0x47e23f(_0x2de284[_0x4f0f4e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f0f4e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f0f4e([0x6c,0x6f,0x77])}),_0x362d90[_0x4f0f4e([0x74,0x68,0x65,0x6e])](()=>{_0x33e883||_0x38848b(_0x4f0f4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c2994(){return _0x5cc4e0[_0x4f0f4e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f0f4e([0x76,0x69,0x65,0x77])][_0x4f0f4e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f0f4e([0x61,0x75,0x74,0x6f]);}function _0x2cb46e(){_0x5cc4e0[_0x4f0f4e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f0f4e([0x76,0x69,0x65,0x77])][_0x4f0f4e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f0f4e([0x61,0x75,0x74,0x6f]);}}function _0x373bb7(_0xd0e6ac){const _0x5ed41b=[new window[(_0x4f0f4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a7e52=>setTimeout(_0x2a7e52,0x4863a0e5^_0x464140)),_0x362d90[_0x4f0f4e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f0f4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x66fa89=>{const _0x9859fe=0x486a9e2e^_0x464140,_0x28d3bc=_0x45006b[_0x4f0f4e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x303be7(){_0x28d3bc[_0x4f0f4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x9859fe&&_0x66fa89();}_0x303be7(),_0x28d3bc[_0x4f0f4e([0x6f,0x6e])](_0x4f0f4e([0x61,0x64,0x64]),_0x303be7);})),new window[(_0x4f0f4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x202775=>{function _0xf13c4f(){for(const _0x34669b in window)if(window[_0x4f0f4e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4f0f4e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x34669b))&&window[_0x34669b]==_0x5367ce)return _0x202775();_0x5cc4e0[_0x4f0f4e([0x73,0x74,0x61,0x74,0x65])]!=_0x4f0f4e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4f0f4e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf13c4f,0x486a8da1^_0x464140);}_0x26bb57(_0x4f0f4e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xf13c4f();})];return window[_0x4f0f4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f0f4e([0x72,0x61,0x63,0x65])](_0x5ed41b)[_0x4f0f4e([0x74,0x68,0x65,0x6e])](()=>_0xd0e6ac);}async function _0x557057(){if(await _0x362d90,_0x26bb57(_0x4f0f4e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3f5f23=_0x45006b[_0x4f0f4e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xa4a4a4=_0x45006b[_0x4f0f4e([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])](_0x3f5f23[_0x4f0f4e([0x69,0x64])]),_0x236e32=_0x1abe8a(_0x4f0f4e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x236e32[_0x4f0f4e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3f5f23['id'],_0xa4a4a4?_0xa4a4a4['id']:null,!0x0),_0x236e32[_0x4f0f4e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f0f4e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x236e32[_0x4f0f4e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x236e32[_0x4f0f4e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x332cb1,void(_0x236e32[_0x4f0f4e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x332cb1);}if(_0x26bb57(_0x4f0f4e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4dbe77=_0x1abe8a(_0x4f0f4e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4dbe77[_0x4f0f4e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f0f4e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4dbe77[_0x4f0f4e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4dbe77[_0x4f0f4e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x332cb1,_0x4dbe77[_0x4f0f4e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x332cb1;}_0x5cc4e0[_0x4f0f4e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f0f4e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x332cb1,_0x5cc4e0[_0x4f0f4e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f0f4e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x332cb1,_0x5cc4e0[_0x4f0f4e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f0f4e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c4ecb(){return _0x26bb57(_0x4f0f4e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1abe8a(_0x4f0f4e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f0f4e([0x73,0x74,0x61,0x74,0x65])]==_0x4f0f4e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x59daa4(_0x825cf1){const _0x5cf124=_0x5c5901();_0x5cc4e0[_0x5cf124]=_0x4f0f4e([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])+_0x825cf1,_0x825cf1[_0x4f0f4e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4f0f4e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5c5901()]=_0x5367ce),_0x825cf1!=_0x4f0f4e([0x56,0x61,0x6c,0x69,0x64])&&_0x557057();}function _0x5c5901(){const _0x286ede=window[_0x4f0f4e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f0f4e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f0f4e([0x6e,0x6f,0x77])]())[_0x4f0f4e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f0f4e([0x2e]),'');let _0x5b5efa=_0x4f0f4e([0x62]);for(let _0x5a2de5=0x0;_0x5a2de5<_0x286ede[_0x4f0f4e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a2de5+=0x2){let _0x5ab17f=window[_0x4f0f4e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x286ede[_0x4f0f4e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a2de5,_0x5a2de5+0x2));_0x5ab17f>=_0x2295bb[_0x4f0f4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ab17f-=_0x2295bb[_0x4f0f4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b5efa+=_0x2295bb[_0x5ab17f];}return _0x5b5efa;}function _0x5d3fac(){const _0x4f8a39=_0x4293e2[_0x4f0f4e([0x73,0x70,0x6c,0x69,0x74])](_0x4f0f4e([0x2e]));if(0x3!=_0x4f8a39[_0x4f0f4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf20f02(_0x4f8a39[0x1]);function _0xf20f02(_0x25b281){const _0x250fa5=_0x33fc1c(_0x25b281);return _0x250fa5&&_0x1d00b8()?_0x250fa5:null;function _0x1d00b8(){const _0x2b6701=_0x250fa5[_0x4f0f4e([0x6a,0x74,0x69])],_0x8f364=window[_0x4f0f4e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b6701[_0x4f0f4e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b6701[_0x4f0f4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd675c3={..._0x250fa5,[_0x4f0f4e([0x6a,0x74,0x69])]:_0x2b6701[_0x4f0f4e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b6701[_0x4f0f4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd675c3[_0x4f0f4e([0x76,0x63])],_0x1e6694(_0xd675c3)==_0x8f364;}}}async function _0x25fe2e(){let _0xfbf183=!0x0;try{const _0x88ae17=_0x4293e2[_0x4f0f4e([0x73,0x70,0x6c,0x69,0x74])](_0x4f0f4e([0x2e])),[_0x211c4d,_0x1a8e8e,_0x139419]=_0x88ae17;return _0x2c1fde(_0x211c4d),await _0x42639b(_0x211c4d,_0x1a8e8e,_0x139419),_0xfbf183;}catch(_0x2e944d){return!0x1;}function _0x2c1fde(_0x47374a){const _0xb3aeff=_0x33fc1c(_0x47374a);_0xb3aeff&&_0xb3aeff[_0x4f0f4e([0x61,0x6c,0x67])]==_0x4f0f4e([0x45,0x53,0x32,0x35,0x36])||(_0xfbf183=!0x1);}async function _0x42639b(_0x33c566,_0x515506,_0x64a614){const _0x1c7d22=window[_0x4f0f4e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f0f4e([0x66,0x72,0x6f,0x6d])](_0x13b4e7(_0x64a614),_0x236dd1=>_0x236dd1[_0x4f0f4e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x235762=new window[(_0x4f0f4e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f0f4e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33c566+_0x4f0f4e([0x2e])+_0x515506),_0x2b240c=window[_0x4f0f4e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f0f4e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b240c)return;const _0x481ff2=await _0x2b240c[_0x4f0f4e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f0f4e([0x6a,0x77,0x6b]),_0x4dce7e,{[_0x4f0f4e([0x6e,0x61,0x6d,0x65])]:_0x4f0f4e([0x45,0x43,0x44,0x53,0x41]),[_0x4f0f4e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f0f4e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f0f4e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b240c[_0x4f0f4e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f0f4e([0x6e,0x61,0x6d,0x65])]:_0x4f0f4e([0x45,0x43,0x44,0x53,0x41]),[_0x4f0f4e([0x68,0x61,0x73,0x68])]:{[_0x4f0f4e([0x6e,0x61,0x6d,0x65])]:_0x4f0f4e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x481ff2,_0x1c7d22,_0x235762)||(_0xfbf183=!0x1);}}function _0x33fc1c(_0x5d2dcd){return _0x5d2dcd[_0x4f0f4e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f0f4e([0x65,0x79]))?JSON[_0x4f0f4e([0x70,0x61,0x72,0x73,0x65])](_0x13b4e7(_0x5d2dcd)):null;}function _0x13b4e7(_0x2374f9){return window[_0x4f0f4e([0x61,0x74,0x6f,0x62])](_0x2374f9[_0x4f0f4e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f0f4e([0x2b]))[_0x4f0f4e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f0f4e([0x2f])));}function _0x1e6694(_0xfde5cb){let _0x567dda=0x1505;function _0x599c1c(_0x3da9eb){for(let _0x6f5dba=0x0;_0x6f5dba<_0x3da9eb[_0x4f0f4e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6f5dba++){const _0x33117d=_0x3da9eb[_0x4f0f4e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x6f5dba);_0x567dda=(_0x567dda<<0x5)+_0x567dda+_0x33117d,_0x567dda&=_0x567dda;}}function _0xc63a5b(_0x247c21){Array[_0x4f0f4e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x247c21)?_0x247c21[_0x4f0f4e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc63a5b):_0x247c21&&typeof _0x247c21==_0x4f0f4e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f0f4e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x247c21)[_0x4f0f4e([0x73,0x6f,0x72,0x74])]()[_0x4f0f4e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a001e,_0xa19d])=>{_0x599c1c(_0x5a001e),_0xc63a5b(_0xa19d);}):_0x599c1c(window[_0x4f0f4e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x247c21));}return _0xc63a5b(_0xfde5cb),_0x567dda>>>0x0;}function _0x4f6ae0(_0x501c48){return _0x501c48[_0x4f0f4e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f0f4e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f0f4e([0x30]));}function _0x33ea47(_0x3749fb){return _0x3749fb[_0x4f0f4e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f0f4e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f0f4e([0x6a,0x6f,0x69,0x6e])]('');}function _0x26bb57(_0x13c0fa){return _0x5cc4e0[_0x4f0f4e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f0f4e([0x68,0x61,0x73])](_0x13c0fa);}function _0x1abe8a(_0x20a662){return _0x5cc4e0[_0x4f0f4e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f0f4e([0x67,0x65,0x74])](_0x20a662);}function _0x332cb1(){}function _0x4f0f4e(_0x58661d){return _0x58661d['map'](_0x471c43=>String['fromCharCode'](_0x471c43))['join']('');}_0x59daa4(await _0x54a499());}(this);}['createRevision'](_0x36ee1d){const _0x18004c=this['editor']['plugins']['get']('Users');return new a({'id':_0x36ee1d['id'],'name':_0x36ee1d['name'],'creator':_0x36ee1d['creatorId']?_0x18004c['getUser'](_0x36ee1d['creatorId']):null,'diffData':_0x36ee1d['diffData']||_0x36ee1d['data'],'authors':_0x36ee1d['authorsIds']['map'](_0x22f846=>_0x18004c['getUser'](_0x22f846)),'createdAt':new Date(_0x36ee1d['createdAt']),'attributes':_0x36ee1d['attributes'],'fromVersion':_0x36ee1d['fromVersion'],'toVersion':_0x36ee1d['toVersion']});}['addRevision'](_0x39de56,_0x4f8763=0x0){this['_revisions']['add'](_0x39de56,_0x4f8763);}['getRevision'](_0x322d5a){return this['_revisions']['get'](_0x322d5a);}['getRevisions'](_0x38af8b={'toJSON':!0x1}){const _0x250b68=Array['from'](this['_revisions']);return _0x250b68['reverse'](),_0x38af8b['toJSON']?_0x250b68['map'](_0x16e5b3=>_0x16e5b3['toJSON']()):_0x250b68;}['getIndex'](_0x1646ed){return this['_revisions']['getIndex'](_0x1646ed);}['getEarlierVisibleRevision'](_0x4a42d6){const [,_0x4bd3f0]=this['getRevisionsIterator'](_0x4a42d6,{'direction':'earlier'});return _0x4bd3f0;}['getLaterVisibleRevision'](_0x2efd8b){const [,_0x5da039]=this['getRevisionsIterator'](_0x2efd8b,{'direction':'later'});return _0x5da039;}['getRevisionsInDiff'](_0x359820){const _0xf61a65=[];for(const _0x3c0360 of this['getRevisionsIterator'](_0x359820['newRevisionId']))if(_0xf61a65['push'](_0x3c0360),_0x3c0360['id']===_0x359820['oldRevisionId'])break;return _0xf61a65;}*['getRevisionsIterator'](_0x1fcb45,{direction:_0x3a4a86='earlier',filter:_0x5e0ec8=()=>!0x0}={}){const _0x3022b2='earlier'===_0x3a4a86?0x1:-0x1;let _0x2ddd1f=this['_revisions']['get'](_0x1fcb45),_0x5d45e4=this['getIndex'](_0x2ddd1f);for(yield _0x2ddd1f;_0x2ddd1f;){if(_0x5d45e4+=_0x3022b2,_0x2ddd1f=this['getRevision'](_0x5d45e4),!_0x2ddd1f)return;_0x5e0ec8(_0x2ddd1f)&&(yield _0x2ddd1f);}}}function R(_0x387a2a,_0x248a23,_0x5874f0){const t=_0x387a2a['t'];switch(_0x248a23){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'},_0x5874f0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5874f0);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x4348ae,'a':_0x512f4b,'e':_0x5f428e,'r':_0x3b00fb,'u':_0x219f67};class l extends _0x5532dc{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xf9156,j,_0x13e128];}constructor(_0x37c12a){super(_0x37c12a),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3b52b8=_0x13ea74();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3b52b8},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1c2ca8=this['repository']['getRevision'](0x0),_0x3e8d43=_0x1c2ca8&&null===_0x1c2ca8['creator']?_0x1c2ca8:null;if(this['_continueCurrentRevision']=!!_0x3e8d43&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x38a8a6=this['_source']['getCurrentRevisionId'](),_0x310331=this['repository']['getRevision'](_0x38a8a6);if(_0x310331)this['_startingVersion']=_0x310331['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x312bc7=this['_source']['history']['_operations']['find'](_0x12b11a=>!_0x12b11a['_isInit']),_0x564561=_0x312bc7?_0x312bc7['baseVersion']:this['_source']['history']['version'];_0x1c2ca8?(_0x1c2ca8['toVersion']<_0x564561&&_0x1c2ca8['_update']({'toVersion':_0x564561}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3e8d43['id'],this['_startingVersion']=_0x3e8d43['fromVersion']):(this['_startingVersion']=_0x1c2ca8['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x564561,this['_continueCurrentRevision']=!0x1);}}else _0x3e8d43&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3e8d43['toVersion'],this['editor']['model']['document']['history']['version']),_0x3e8d43['fromVersion']===_0x3e8d43['toVersion']?(0x0!==_0x3e8d43['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3e8d43['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3e8d43['id'],this['_startingVersion']=_0x3e8d43['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',_0x53f893=>!_0x53f893),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d8589=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30ac9e;for(const _0x5ad246 in _0x4d8589){const _0x9bbc2c=_0x5ad246,_0x40d490=_0x4d8589[_0x9bbc2c];if('revisionHistoryLicenseKeyValid'==_0x40d490||'revisionHistoryLicenseKeyInvalid'==_0x40d490||'revisionHistoryLicenseKeyExpired'==_0x40d490||'revisionHistoryLicenseKeyDomainLimit'==_0x40d490||'revisionHistoryLicenseKeyNotAllowed'==_0x40d490||'revisionHistoryLicenseKeyEvaluationLimit'==_0x40d490||'revisionHistoryLicenseKeyTrialLimit'==_0x40d490||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x40d490||'revisionHistoryLicenseKeyUsageLimit'==_0x40d490){delete _0x4d8589[_0x9bbc2c],_0x30ac9e=_0x40d490,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x30ac9e&&_0x4d8589['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x30ac9e&&_0x4d8589['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x30ac9e&&_0x4d8589['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x30ac9e&&_0x4d8589['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x30ac9e&&_0x4d8589['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x30ac9e&&_0x4d8589['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x30ac9e&&_0x4d8589['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x30ac9e&&_0x4d8589['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x58f688=this['repository']['getRevision'](0x0),_0x4e88d5=await this['getRevisionDocumentData'](_0x58f688),_0x4535f8=await this['getRevisionRootsAttributes'](_0x58f688);this['_replaceEditorDataWithRevisionData'](_0x4e88d5,_0x4535f8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4d15c6){this['_source']=_0x4d15c6;}async['update'](){const _0x230e90=await this['_source']['getLatestVersion']();if(_0x230e90>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2d7556=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x230e90});_0x2d7556['authors']=_0x2d7556['authorsIds']['map'](_0x1db48d=>this['editor']['plugins']['get']('Users')['getUser'](_0x1db48d)),this['currentRevision']['_update'](_0x2d7556);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x3e0c0e={},_0x467c21=null){const _0x1fc66d=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x467c21>this['currentRevision']['toVersion']&&(_0x467c21=null),null===_0x467c21&&(_0x467c21=await this['_source']['getLatestVersion']());const _0x4b86d1=this['_getFromVersion'](_0x467c21),_0x36c1d3=this['buildRevisionData']({'from':_0x4b86d1,'to':_0x467c21});if(this['currentRevision']['toVersion']<_0x467c21){const _0x3207db=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x467c21,'to':_0x467c21});_0x3207db['authors']=[],_0x3207db['authorsIds']=[],_0x3207db['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3207db,!0x0),delete _0x3207db['authors'],_0x1fc66d['push'](_0x3207db);}_0x3e0c0e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e0c0e['name']=_0x3e0c0e['name']||null,_0x3e0c0e['id']=_0x3e0c0e['id']||_0x13ea74(),_0x3e0c0e={..._0x3e0c0e,..._0x36c1d3};const _0x546c09=this['addRevisionData'](_0x3e0c0e);_0x1fc66d['push'](_0x3e0c0e);const _0x295496=this['repository']['getIndex'](_0x546c09);if(0x0!==_0x295496){const _0x3cbd43=this['repository']['getRevision'](_0x295496-0x1);if(_0x3cbd43['fromVersion']!==_0x467c21){const _0x20ac6a=this['_revisionDataBuilder']['getData'](_0x467c21,_0x3cbd43['toVersion']),_0xb6588b={'id':_0x3cbd43['id'],'diffData':_0x20ac6a['diffData'],'authorsIds':_0x20ac6a['authorsIds'],'authors':_0x20ac6a['authorsIds']['map'](_0x180e1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x180e1d)),'fromVersion':_0x467c21};_0x3cbd43===this['currentRevision']&&(_0xb6588b['createdAt']=new Date(_0x3e0c0e['createdAt']['getTime']()+0xa)),_0x3cbd43['_update'](_0xb6588b,!0x0),delete _0xb6588b['authors'],_0x1fc66d['push'](_0xb6588b);}}if(this['adapter']){for(const _0x557844 of _0x1fc66d)this['_bufferUpdate'](_0x557844['id'],_0x557844,!0x0);this['sendBufferedUpdates']();}return _0x546c09;}['addRevisionData'](_0x8ed3f){const _0xa18b3f=this['repository']['createRevision'](_0x8ed3f);return this['adapter']&&_0xa18b3f['on']('_update',(_0x1fbbe3,_0x4f23a8,_0x5ced25)=>{_0x5ced25||(this['_bufferUpdate'](_0x4f23a8['id'],_0x4f23a8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xa18b3f,this['_findInsertionIndex'](_0xa18b3f)),_0xa18b3f;}async['getRevisionDocumentData'](_0x1b193d){await this['_loadRevisionData'](_0x1b193d);const _0x417b07={};for(const _0x37c141 in _0x1b193d['diffData']){if(_0x1b193d['diffData'][_0x37c141]['attachChange']&&!_0x1b193d['diffData'][_0x37c141]['attachChange']['isAttached'])continue;const _0x700958=this['_removeRevisionMarkers'](JSON['parse'](_0x1b193d['diffData'][_0x37c141]['insertions'])),_0x18fb8b=this['editor']['editing']['view']['document'],_0x4774ca=new _0x25be1c(_0x18fb8b,_0x700958['map'](_0x28c16d=>V(_0x28c16d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x417b07[_0x37c141]=this['editor']['data']['processor']['toData'](_0x4774ca),this['editor']['data']['processor']['useFillerType']('default');}return _0x417b07;}async['getRevisionRootsAttributes'](_0x7eca2e){await this['_loadRevisionData'](_0x7eca2e);const _0x5d7888={};for(const _0x22b9c7 in _0x7eca2e['diffData'])_0x7eca2e['diffData'][_0x22b9c7]['attachChange']&&!_0x7eca2e['diffData'][_0x22b9c7]['attachChange']['isAttached']||(_0x5d7888[_0x22b9c7]=_0x7eca2e['diffData'][_0x22b9c7]['attributesAfter']||{});return _0x5d7888;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x35f59a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5e5c2b=0x0;_0x5e5c2b<_0x35f59a['length'];_0x5e5c2b++){const _0x14aaf4=_0x35f59a[_0x5e5c2b];let _0x43f3a3=!0x1;for(const _0x45344b of Object['keys'](_0x14aaf4))void 0x0===_0x14aaf4[_0x45344b]?delete _0x14aaf4[_0x45344b]:'id'!==_0x45344b&&(_0x43f3a3=!0x0);_0x43f3a3||(_0x35f59a[_0x5e5c2b]=null);}if(_0x35f59a=_0x35f59a['filter'](_0x1c1c85=>null!==_0x1c1c85),!_0x35f59a['length'])return;for(let _0x290e4b=0x0;_0x290e4b<_0x35f59a['length'];_0x290e4b++){const _0x1c047b=_0x35f59a[_0x290e4b];void 0x0!==_0x1c047b['fromVersion']&&void 0x0===_0x1c047b['toVersion']&&(_0x1c047b['toVersion']=this['repository']['getRevision'](_0x1c047b['id'])['toVersion']),void 0x0!==_0x1c047b['toVersion']&&void 0x0===_0x1c047b['fromVersion']&&(_0x1c047b['fromVersion']=this['repository']['getRevision'](_0x1c047b['id'])['fromVersion']);}const _0x52d86b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x35f59a,_0x52d86b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x173f1b=>{if(_0x173f1b){for(const _0x72fcb0 of _0x173f1b)this['setRevisionData']({'id':_0x72fcb0['id'],'createdAt':_0x72fcb0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5a2e9c,_0x28e34d){let _0x3bc16e=this['editor']['config']['get']('initialData'),_0x12d562=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3bc16e){_0x3bc16e={};for(const _0x2cb8e5 of this['editor']['model']['document']['getRootNames']())_0x3bc16e[_0x2cb8e5]='';}if('string'==typeof _0x3bc16e&&(_0x3bc16e={'main':_0x3bc16e}),void 0x0===_0x12d562){_0x12d562={};for(const _0x3f3009 of this['editor']['model']['document']['getRootNames']())_0x12d562[_0x3f3009]={};}let _0x18033d=!0x1;const _0x557911=Object['keys'](_0x3bc16e),_0x5d458f=Object['keys'](_0x5a2e9c);for(const _0x2517b1 of _0x557911){if(_0x3bc16e[_0x2517b1]!==_0x5a2e9c[_0x2517b1]&&''!==_0x3bc16e[_0x2517b1]['trim']()){_0x18033d=!0x0;break;}if(!_0x504244(_0x12d562[_0x2517b1],_0x28e34d[_0x2517b1])&&Object['keys'](_0x12d562[_0x2517b1])['length']>0x0){_0x18033d=!0x0;break;}}_0x18033d||(_0x18033d=_0x5d458f['some'](_0x496255=>!this['editor']['model']['document']['getRoot'](_0x496255))),_0x18033d&&_0x5b881d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3bc16e,'editorRootsAttributes':_0x12d562,'revisionData':_0x5a2e9c,'revisionRootsAttributes':_0x28e34d}),this['editor']['config']['set']('initialData',_0x5a2e9c),this['editor']['config']['set']('rootsAttributes',_0x28e34d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5c1837=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5c1837['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xa4958e){const _0x5aada3=this['repository']['getRevisions']();_0x5aada3['reverse']();let _0x3ac197=0x0;for(;_0x3ac197<_0x5aada3['length'];){const _0x51994c=_0x5aada3[_0x3ac197];if(_0x51994c===this['currentRevision']){_0x3ac197++;continue;}if(_0x51994c['id']===this['_initialRevisionId'])break;const _0x8a7cd=_0xa4958e['toVersion']-_0x51994c['toVersion']||_0xa4958e['fromVersion']-_0x51994c['fromVersion'];if(_0x8a7cd>0x0)break;if(_0x8a7cd<0x0)_0x3ac197++;else{if(!_0xa4958e['creator']&&_0x51994c['creator'])break;if(_0x51994c['creator']||!_0xa4958e['creator']){if(_0xa4958e['createdAt']>_0x51994c['createdAt'])break;_0x3ac197++;}else _0x3ac197++;}}return _0x3ac197;}['setRevisionData'](_0x37ce2a){const _0x454b13=this['repository']['getRevision'](_0x37ce2a['id']);if(_0x37ce2a['createdAt']&&(_0x37ce2a['createdAt']=new Date(_0x37ce2a['createdAt'])),_0x37ce2a['authorsIds']){const _0x2a70ef=this['editor']['plugins']['get']('Users');_0x37ce2a['authors']=_0x37ce2a['authorsIds']['map'](_0x2baa5d=>_0x2a70ef['getUser'](_0x2baa5d));}_0x454b13['_update'](_0x37ce2a,!0x0);}['buildRevisionData']({revision:_0x36f3cf=null,from:_0x30ed52=null,to:_0x17d85b=null}){_0x30ed52=null!==_0x30ed52?_0x30ed52:_0x36f3cf['fromVersion'],_0x17d85b=null!==_0x17d85b?_0x17d85b:_0x36f3cf['toVersion'];const _0x38be72=this['_revisionDataBuilder']['getData'](_0x30ed52,_0x17d85b),_0x2cc0f9={'diffData':_0x38be72['diffData'],'authorsIds':_0x38be72['authorsIds'],'fromVersion':_0x30ed52,'toVersion':_0x17d85b};if(!_0x36f3cf||_0x17d85b!==_0x36f3cf['toVersion']){const _0x6041ba=_0x17d85b-0x1,_0x273e81=this['_source']['history']['getOperation'](_0x6041ba);_0x2cc0f9['createdAt']=_0x273e81&&_0x273e81['createdAt']||new Date();}if(this['_loadedStateData']&&_0x30ed52===this['_loadedStateData']['fromVersion']){for(const _0x31beac of this['_loadedStateData']['authors'])_0x2cc0f9['authorsIds']['includes'](_0x31beac['id'])||_0x2cc0f9['authorsIds']['push'](_0x31beac['id']);}return _0x2cc0f9;}['_loadRevisionData'](_0x4eae1f){if(!_0x4eae1f||_0x4eae1f['diffData'])return Promise['resolve']();{const _0xca2f7e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xca2f7e,'revisionId':_0x4eae1f['id']})['then'](_0x17c66a=>{_0x4eae1f['diffData']=_0x17c66a['diffData'];});}}['_bufferUpdate'](_0x491c7c,_0x3dec8d,_0x518e43){if(this['_bufferedUpdates']['has'](_0x491c7c)){const _0xefbd8a=this['_bufferedUpdates']['get'](_0x491c7c);_0x3dec8d=_0x518e43?{..._0xefbd8a,..._0x3dec8d}:{..._0x3dec8d,..._0xefbd8a};}this['_bufferedUpdates']['set'](_0x491c7c,_0x3dec8d);}['_getFromVersion'](_0x4c9731){const _0x37991b=this['repository']['getRevisions']();_0x37991b['reverse'](),_0x37991b['shift']();const _0x5ada7b=_0x37991b['find'](_0x8148dd=>_0x8148dd['toVersion']<=_0x4c9731)['toVersion'];return _0x5ada7b<this['_startingVersion']?this['_startingVersion']:_0x5ada7b;}['_createInitialRevision'](_0x7a1161){const _0x3019e1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3019e1)this['_initialRevisionId']=_0x3019e1['id'];else{const _0x406c1c=!this['editor']['model']['document']['roots']['find'](_0x300496=>this['editor']['model']['hasContent'](_0x300496)),_0x3a98c5=this['editor']['plugins']['get']('Users')['me']['id'],_0x54d7eb=R(this['editor']['locale'],_0x406c1c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x7a1161,'to':_0x7a1161,'id':this['_initialRevisionId'],'name':_0x54d7eb,'creatorId':_0x3a98c5});}}['_createCurrentRevision'](_0x42de8f){const _0x596424=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x596424),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x42de8f,'to':_0x42de8f,'id':_0x596424,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1db706,from:_0x5aa23a,to:_0x219e6a,creatorId:_0x4302fc,id:_0x56ebc8}){const _0x1b16e9=this['buildRevisionData']({'from':_0x5aa23a,'to':_0x219e6a});_0x1b16e9['name']=_0x1db706,_0x1b16e9['creatorId']=_0x4302fc,_0x1b16e9['id']=_0x56ebc8;const _0xcc7dbd=this['addRevisionData'](_0x1b16e9);return this['adapter']&&this['_bufferUpdate'](_0x1b16e9['id'],_0x1b16e9,!0x0),_0xcc7dbd;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x56c252){return(_0x56c252=_0x56c252['filter'](_0x42900e=>!_0x42900e['name']||'revision-start'!==_0x42900e['name']&&'revision-end'!==_0x42900e['name']))['forEach'](_0x2f0ba0=>{'string'!=typeof _0x2f0ba0&&(_0x2f0ba0['children']=this['_removeRevisionMarkers'](_0x2f0ba0['children']),_0x2f0ba0['attributes']=_0x2f0ba0['attributes']['filter'](_0xee6b46=>!_0xee6b46[0x0]['startsWith']('data-revision-')));}),_0x56c252;}}function V(_0x58d5d9,_0x3e251d){const _0x14b4f1=_0x3e251d['editing']['view']['document'];if('string'==typeof _0x58d5d9)return new _0x37bb31(_0x14b4f1,_0x58d5d9);{const _0x393e6f=_0x58d5d9['children']['map'](_0x50ce69=>V(_0x50ce69,_0x3e251d));return new(C[_0x58d5d9['type']]||_0x4802ce)(_0x14b4f1,_0x58d5d9['name'],_0x58d5d9['attributes'],_0x393e6f);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xf90b82){this['editor']=_0xf90b82,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'](_0x41b967){this['source']=_0x41b967;const _0x3b34ed=new Map(),_0xadb77e=new Map(),_0x1ba0ca=this['editor']['model']['document']['roots']['map'](_0x39798c=>_0x39798c['rootName']);for(const _0xc6646d of _0x1ba0ca){const _0x3e5531=this['editor']['model']['document']['getRoot'](_0xc6646d),_0x100b5f=F(_0x3e5531);_0x3b34ed['set'](_0xc6646d,_0x100b5f),_0xadb77e['set'](_0xc6646d,Object['fromEntries'](_0x3e5531['getAttributes']()));}const _0x360070=Array['from'](this['editor']['model']['markers'])['map'](_0xa49789=>[_0xa49789['name'],_0xa49789['getRange']()]),_0x2b6836=this['source']['version'];this['_saveMetaData'](_0x2b6836,_0x3b34ed,_0x360070,_0xadb77e),this['_startingRevisionId']=this['_revisionId'];const _0xdee0b7=new Map(),_0x4bef61=new Map();for(const _0x318b60 of _0x1ba0ca){const _0xd1e23f=B(_0x318b60);_0xdee0b7['set'](_0x318b60,_0xd1e23f),_0x4bef61['set'](_0x318b60,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xdee0b7,[],_0x4bef61);}['getData'](_0x30ae7a,_0x33aca4){if(this['_lastFrom']===_0x30ae7a&&this['_lastTo']<=_0x33aca4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x33aca4,!0x0);else{if(!this['_savedMetaData']['has'](_0x30ae7a)){const _0x39e96a=this['_getPreviousFrom'](_0x30ae7a);this['_calculateMetaData'](_0x39e96a,_0x30ae7a,!0x1);}this['_calculateMetaData'](_0x30ae7a,_0x33aca4,!0x0);}return this['_lastFrom']=_0x30ae7a,this['_lastTo']=_0x33aca4,this['_getState']();}['loadState'](_0x18161a){this['_reset'](),this['_lastFrom']=_0x18161a['fromVersion'],this['_lastTo']=_0x18161a['toVersion'];for(const _0x366e42 in _0x18161a['diffData']){const _0x415e4e=_0x18161a['diffData'][_0x366e42]['attachChange'],_0x5621e9=_0x50487a(_0x18161a['diffData'][_0x366e42]['attributesBefore'])||{},_0x3a0376=this['_makeModelFromViewString'](_0x18161a['diffData'][_0x366e42]['deletions']);_0x3a0376['rootName']=_0x366e42,_0x3a0376['_isAttached']=!_0x415e4e||!_0x415e4e['isAttached'],_0x3a0376['isAttached']=()=>_0x3a0376['_isAttached'],this['_baseRoots']['set'](_0x366e42,_0x3a0376),this['_baseRootsAttributes']['set'](_0x366e42,_0x5621e9),_0x415e4e&&this['_touchedRoots']['set'](_0x366e42,_0x415e4e);const _0x4c133b=this['_makeIdsRoot'](_0x3a0376);this['_baseIdsRoots']['set'](_0x366e42,_0x4c133b);for(const [_0x4f9a8e,_0x5c440f]of _0x3a0376['markers']){if(!_0x4f9a8e['startsWith']('revision:'))continue;const _0x577f3d=_0x4f9a8e['split'](':')[0x2];for(const _0x306fad of _0x5c440f['getWalker']({'singleCharacters':!0x0})){const _0x5af7bf=this['_getVidAttributeName'](_0x306fad),_0x5a2ae5='elementEnd'==_0x306fad['type']?_0x306fad['previousPosition']['path']['slice'](0x0,-0x1):_0x306fad['previousPosition']['path'],_0x4dcc07=_0x4c133b['getNodeByPath'](_0x5a2ae5)['getAttribute'](_0x5af7bf);this['_touched']['set'](_0x4dcc07,{'userId':_0x577f3d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x272d4d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xa4b199=>!this['_touched']['has'](_0xa4b199));let _0x161145=0x0;const _0x1e5d9c=new Map();for(const _0x274834 in _0x18161a['diffData']){const _0x109654=_0x18161a['diffData'][_0x274834]['attachChange'],_0x49f4a9=_0x50487a(_0x18161a['diffData'][_0x274834]['attributesAfter'])||{},_0x2045e2=this['_makeModelFromViewString'](_0x18161a['diffData'][_0x274834]['insertions']);_0x2045e2['rootName']=_0x274834,_0x2045e2['_isAttached']=!_0x109654||_0x109654['isAttached'],_0x2045e2['isAttached']=()=>_0x2045e2['_isAttached'],this['_diffRoots']['set'](_0x274834,_0x2045e2),this['_diffRootsAttributes']['set'](_0x274834,_0x49f4a9);const _0x486be3=this['_makeIdsRoot'](_0x2045e2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x274834,_0x486be3),_0x1e5d9c['set'](_0x274834,_0x2045e2['isAttached']()?_0x49f4a9:{});for(const [_0x31f6c4,_0x16bc98]of _0x2045e2['markers']){if(!_0x31f6c4['startsWith']('revision:'))continue;const _0xd0ec17=_0x31f6c4['split'](':')[0x2];for(const _0x164bcc of _0x16bc98['getWalker']({'singleCharacters':!0x0})){const _0x5f0710=this['_getVidAttributeName'](_0x164bcc),_0x84bc89=this['_revisionId']++,_0x20f04c='elementEnd'==_0x164bcc['type']?_0x164bcc['previousPosition']['path']['slice'](0x0,-0x1):_0x164bcc['previousPosition']['path'];_0x486be3['getNodeByPath'](_0x20f04c)['_setAttribute'](_0x5f0710,_0x84bc89),this['_touched']['set'](_0x84bc89,{'userId':_0xd0ec17});}}for(const _0x229fb9 of this['editor']['model']['createRangeIn'](_0x2045e2)['getWalker']({'singleCharacters':!0x0})){const _0x2eccfb=this['_getVidAttributeName'](_0x229fb9),_0x64d111='elementEnd'==_0x229fb9['type']?_0x229fb9['previousPosition']['path']['slice'](0x0,-0x1):_0x229fb9['previousPosition']['path'],_0x2e576a=_0x486be3['getNodeByPath'](_0x64d111);_0x2e576a['getAttribute'](_0x2eccfb)>0x0||_0x2e576a['_setAttribute'](_0x2eccfb,_0x272d4d[_0x161145++]);}for(const [_0x3c79ff,_0x22ca19]of _0x2045e2['markers'])_0x3c79ff['startsWith']('revision:')||this['_markers']['set'](_0x3c79ff,_0x22ca19);}const _0x24970d=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x24970d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x24970d,0x1));const _0x44cb3d=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x44cb3d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x44cb3d,0x1));const _0x317ac1=Array['from'](this['_diffRoots'])['map'](([_0x3e1ef5,_0x4dfcda])=>[_0x3e1ef5,F(_0x4dfcda)]);this['_saveMetaData'](this['_lastTo'],_0x317ac1,this['_markers'],_0x1e5d9c);}['_makeModelFromViewString'](_0x57879a){const _0x22ca91=JSON['parse'](_0x57879a),_0x10b6a9=this['editor']['editing']['view']['document'],_0x558339=new _0x25be1c(_0x10b6a9,_0x22ca91['map'](_0x342481=>V(_0x342481,this['editor'])));return this['editor']['data']['toModel'](_0x558339);}['_saveMetaData'](_0x4cc17a,_0x410d8c,_0x32bf5d,_0x31e9b5){const _0x429455=new Map(_0x410d8c),_0x506331=new Map(_0x50487a(_0x31e9b5)),_0x357fe4=new Map();for(const [_0x10440c,_0x5856a3]of _0x32bf5d)_0x357fe4['set'](_0x10440c,{'start':_0x5856a3['start']['clone'](),'end':_0x5856a3['end']['clone'](),'rootName':_0x5856a3['root']['rootName']});this['_savedMetaData']['set'](_0x4cc17a,{'roots':_0x429455,'markers':_0x357fe4,'rootsAttributes':_0x506331});}['_removeMetaData'](_0x1f583a){this['_savedMetaData']['delete'](_0x1f583a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x51423b,_0x17c42e=null){let _0x295e48=null;_0x51423b['is']('documentFragment')||(_0x295e48=new vt(_0x51423b['name'],{'vid_start':null===_0x17c42e?this['_revisionId']++:_0x17c42e++}));const _0x1589bc=[];for(const _0xb33988 of _0x51423b['getChildren']())if(_0xb33988['is']('element')){_0x1589bc['push'](this['_makeIdsRoot'](_0xb33988,_0x17c42e));const _0x15eb0d=_0x1589bc[_0x1589bc['length']-0x1];null!==_0x17c42e&&(_0x17c42e=_0x15eb0d['is']('element','$text')?_0x15eb0d['getAttribute']('vid')+0x1:_0x15eb0d['getAttribute']('vid_end')+0x1);}else{for(let _0x4db9a8=0x0;_0x4db9a8<_0xb33988['offsetSize'];_0x4db9a8++)_0x1589bc['push'](new vt('$text',{'vid':null===_0x17c42e?this['_revisionId']++:_0x17c42e++}));}if(_0x51423b['is']('documentFragment')){const _0x16e9ff=B(_0x51423b['rootName']);return _0x16e9ff['_insertChild'](0x0,_0x1589bc),_0x16e9ff;}return _0x295e48['_setAttribute']('vid_end',null===_0x17c42e?this['_revisionId']++:_0x17c42e++),_0x295e48['_insertChild'](0x0,_0x1589bc),_0x295e48;}['_calculateMetaData'](_0x415fd1,_0x50ccf8,_0x5d1fa0){this['_reset']();const {roots:_0x2e50e1,markers:_0x1687d8,rootsAttributes:_0x5742d0}=this['_savedMetaData']['get'](_0x415fd1);this['_baseRoots']=new Map(_0x2e50e1),this['_baseRootsAttributes']=new Map(_0x50487a(_0x5742d0));for(const [_0x2c6f1f,_0x59d2fb]of this['_baseRoots'])if('$graveyard'!==_0x2c6f1f&&(this['_diffRoots']['set'](_0x2c6f1f,F(_0x59d2fb)),this['_diffRootsAttributes']=new Map(_0x50487a(_0x5742d0)),_0x5d1fa0)){const _0x28d6d9=this['_revisionId'];this['_idsRoots']['set'](_0x2c6f1f,this['_makeIdsRoot'](_0x59d2fb)),this['_baseIdsRoots']['set'](_0x2c6f1f,this['_makeIdsRoot'](_0x59d2fb,_0x28d6d9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5d1fa0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x50d915,_0x200708]of _0x1687d8){const _0x34a441=this['_baseRoots']['get'](_0x200708['rootName']),_0x8fc810=this['_diffRoots']['get'](_0x200708['rootName']),_0x3de9a2=new gt(this['_fixPosition'](_0x200708['start'],_0x34a441),this['_fixPosition'](_0x200708['end'],_0x34a441)),_0xd82677=this['_fixRange'](_0x3de9a2,_0x8fc810);_0x34a441['markers']['set'](_0x50d915,_0x3de9a2),this['_markers']['set'](_0x50d915,_0xd82677);}this['_applyOperations'](_0x415fd1,_0x50ccf8,_0x5d1fa0);}['_applyOperations'](_0x3087e,_0x3fa9fb,_0x50c7ce){for(const _0x2d34de of this['source']['getOperations'](_0x3087e,_0x3fa9fb))this['_handleOperation'](_0x2d34de,_0x50c7ce);for(const _0x4d5c3a of this['_diffRoots']['values']())_0x4d5c3a['markers']['clear']();for(const [_0x4c624d,_0x1bc04f]of this['_markers']){this['_diffRoots']['get'](_0x1bc04f['root']['rootName'])['markers']['set'](_0x4c624d,_0x1bc04f['clone']());}const _0x2426ba=new Map(),_0x49471d=new Map();for(const [_0x5adfdf,_0x1fb4e6]of this['_diffRoots'])_0x2426ba['set'](_0x5adfdf,F(_0x1fb4e6)),_0x49471d['set'](_0x5adfdf,this['_diffRootsAttributes']['get'](_0x5adfdf));this['_saveMetaData'](_0x3fa9fb,_0x2426ba,this['_markers'],_0x49471d);}['_getPreviousFrom'](_0x315377){const _0xd40dab=Array['from'](this['_savedMetaData']['keys']());_0xd40dab['sort']((_0x50c60c,_0x1b55fb)=>_0x50c60c-_0x1b55fb),_0xd40dab['reverse']();for(const _0x201e22 of _0xd40dab)if(_0x201e22<_0x315377)return _0x201e22;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x861f13,_0x1050aa){const _0x2072a0=Array['from'](_0x1050aa['markers'])['map'](([_0x1dbe6b,_0x38510b])=>[_0x1dbe6b,this['_fixRange'](_0x38510b,_0x861f13)]);_0x861f13['markers']=new Map(_0x2072a0);}['_transformMarkers'](_0x201cc0){for(const _0xd77be6 of this['_markers']['values']()){const _0x42a3aa=_0xd77be6['getTransformedByOperation'](_0x201cc0),_0x55adc5=gt['_createFromRanges'](_0x42a3aa);_0xd77be6['start']=_0x55adc5['start'],_0xd77be6['end']=_0x55adc5['end'];}}['_handleOperation'](_0x48cf85,_0x22fa2c){if('addRoot'!=_0x48cf85['type']&&'detachRoot'!=_0x48cf85['type']){if('insert'==_0x48cf85['type']){const _0x15c717=_0x48cf85['position']['root']['rootName'];this['_diffRoots']['has'](_0x15c717)||(this['_diffRoots']['set'](_0x15c717,B(_0x15c717,!0x0)),this['_diffRootsAttributes']['set'](_0x15c717,{}),_0x22fa2c&&this['_idsRoots']['set'](_0x15c717,B(_0x15c717,!0x0)));}else{if('addRootAttribute'==_0x48cf85['type']||'removeRootAttribute'==_0x48cf85['type']||'changeRootAttribute'==_0x48cf85['type'])return void this['_handleRootAttributeOperation'](_0x48cf85);'marker'==_0x48cf85['type']&&this['_handleMarkerOperation'](_0x48cf85);}if('marker'!==_0x48cf85['type']){const _0x44b76f=this['_cloneOperation'](_0x48cf85,this['_diffRoots']);_0x44b76f['_execute'](),this['_transformMarkers'](_0x44b76f);}if(_0x22fa2c)switch(_0x48cf85['type']){case'insert':this['_handleInsertOperation'](_0x48cf85);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x48cf85);break;case'merge':this['_handleMergeOperation'](_0x48cf85);break;case'split':this['_handleSplitOperation'](_0x48cf85);}}else this['_handleRootOperation'](_0x48cf85,_0x22fa2c);}['_cloneOperation'](_0x1e10e7,_0x196376){const _0x260207=_0x1e10e7['clone']();return _0x260207['_authorId']=_0x1e10e7['_authorId'],this['_fixOperation'](_0x260207,_0x196376),_0x260207;}['_getBaseVids'](_0x2f3e2c){return _0x2f3e2c['map'](_0x69b568=>{const _0x2b3d83=this['_getVidAttributeName'](_0x69b568);return Number(_0x69b568['item']['getAttribute'](_0x2b3d83));});}['_generateTape'](_0x5f16e7,_0x57bcc0){if(_0x5f16e7['is']('element','$text'))_0x57bcc0['push']({'item':_0x5f16e7,'type':'text'});else{_0x5f16e7['is']('element')&&_0x57bcc0['push']({'item':_0x5f16e7,'type':'elementStart'});for(const _0x400380 of _0x5f16e7['getChildren']())this['_generateTape'](_0x400380,_0x57bcc0);_0x5f16e7['is']('element')&&_0x57bcc0['push']({'item':_0x5f16e7,'type':'elementEnd'});}return _0x57bcc0;}['_getState'](){const _0x4a83e1=new Map(this['_touched']),_0x4b1725=new Map(_0x4a83e1),_0x28015f=new Map(),_0x3234db={'insertions':{},'deletions':{}},_0x5f223b={'insertions':{},'deletions':{}},_0x4be836=new Map(),_0x333652=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x333652['delete']('$graveyard');for(const _0x1fc75d of _0x333652){const _0x14a1b7=this['_diffRoots']['get'](_0x1fc75d)||B(_0x1fc75d,!0x1),_0x38e118=this['_baseRoots']['get'](_0x1fc75d)||B(_0x1fc75d,!0x1);_0x14a1b7['isAttached']()||_0x38e118['isAttached']()?(_0x3234db['insertions'][_0x1fc75d]=F(_0x14a1b7),_0x3234db['deletions'][_0x1fc75d]=F(_0x38e118),this['_copyMarkers'](_0x3234db['deletions'][_0x1fc75d],_0x38e118),this['_copyMarkers'](_0x3234db['insertions'][_0x1fc75d],_0x14a1b7),_0x5f223b['insertions'][_0x1fc75d]=this['_generateTape'](this['_idsRoots']['get'](_0x1fc75d),[]),_0x5f223b['deletions'][_0x1fc75d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1fc75d)||B(_0x1fc75d,!0x1),[])):_0x333652['delete'](_0x1fc75d);}for(const _0xe80e08 of _0x333652){const _0x2585cd=_0x5f223b['insertions'][_0xe80e08];for(const _0x41da5b of _0x2585cd){const _0x177765=this['_getVidAttributeName'](_0x41da5b),_0x36fa0d=_0x41da5b['item']['getAttribute'](_0x177765);_0x4b1725['delete'](_0x36fa0d),_0x36fa0d>=this['_startingRevisionId']&&_0x28015f['set'](_0x36fa0d,_0x4a83e1['get'](_0x36fa0d));}}for(const _0x5e0964 of _0x333652){const _0x4eb578=_0x5f223b['insertions'][_0x5e0964],_0x5d6ef1=this['_getBaseVids'](_0x5f223b['deletions'][_0x5e0964]);let _0x22ade4=0x0;for(const _0x29bd24 of _0x4eb578){const _0x5c3a29=this['_getVidAttributeName'](_0x29bd24),_0x44ce02=_0x29bd24['item']['getAttribute'](_0x5c3a29);if(!_0x28015f['has'](_0x44ce02)&&!_0x4be836['has'](_0x44ce02)){if(_0x4b1725['has'](_0x44ce02))_0x22ade4++;else{if(_0x44ce02!=_0x5d6ef1[_0x22ade4]){const _0x676f4=_0x4a83e1['get'](_0x44ce02)||_0x4a83e1['get'](_0x5d6ef1[_0x22ade4]);for(;_0x44ce02!=_0x5d6ef1[_0x22ade4];)_0x4b1725['has'](_0x5d6ef1[_0x22ade4])||(_0x4be836['set'](_0x5d6ef1[_0x22ade4],_0x676f4),_0x4a83e1['set'](_0x5d6ef1[_0x22ade4],_0x676f4)),_0x22ade4++;}_0x22ade4++;}}}}for(const _0x2df254 of _0x333652){const _0x1d9102=_0x5f223b['insertions'][_0x2df254];for(const _0x3c9142 of _0x1d9102){const _0x214a00=this['_getVidAttributeName'](_0x3c9142),_0x474a77=_0x3c9142['item']['getAttribute'](_0x214a00);if(_0x4be836['has'](_0x474a77)){const _0x44145a=_0x4be836['get'](_0x474a77);_0x4b1725['has'](_0x474a77)||_0x4b1725['set'](_0x474a77,{..._0x44145a}),_0x28015f['set'](_0x474a77,{..._0x44145a});}}}for(const _0x531b36 of _0x4b1725['keys']())_0x531b36>=this['_startingRevisionId']&&_0x4b1725['delete'](_0x531b36);const _0x27b52d=new Map();for(const _0x86e28f of _0x333652){let _0x56d07f=_0x5f223b['insertions'][_0x86e28f];for(const _0x301950 of _0x56d07f)if(_0x301950['item']['is']('element','tableCell')){const _0x36cf24=this['_getVidAttributeName'](_0x301950),_0x50c877=_0x301950['item']['getAttribute'](_0x36cf24);if(_0x28015f['has'](_0x50c877)){const _0x5d901d=_0x301950['item']['parent']['parent']['getAttribute']('vid_start'),_0x1cfc92=_0x27b52d['get'](_0x5d901d)||new Set();_0x1cfc92['add'](_0x28015f['get'](_0x50c877)['userId']),_0x27b52d['set'](_0x5d901d,_0x1cfc92);}}_0x56d07f=_0x5f223b['deletions'][_0x86e28f];for(const _0x329e9c of _0x56d07f)if(_0x329e9c['item']['is']('element','tableCell')){const _0x3293c8=this['_getVidAttributeName'](_0x329e9c),_0x33ac6a=_0x329e9c['item']['getAttribute'](_0x3293c8);if(_0x4b1725['has'](_0x33ac6a)){const _0x26667a=_0x329e9c['item']['parent']['parent']['getAttribute']('vid_start'),_0x4a6516=_0x27b52d['get'](_0x26667a)||new Set();_0x4a6516['add'](_0x4b1725['get'](_0x33ac6a)['userId']),_0x27b52d['set'](_0x26667a,_0x4a6516);}}for(const _0x30cc3c of _0x27b52d['keys']())(_0x28015f['has'](_0x30cc3c)||_0x4b1725['has'](_0x30cc3c))&&_0x27b52d['delete'](_0x30cc3c);}for(const _0x5a7b06 of _0x333652){const _0x7b9dc7=_0x5f223b['insertions'][_0x5a7b06];let _0xe9bb3a=null,_0x213240=null;for(const _0xc53ecb of _0x7b9dc7){const _0x509ef8=this['_getVidAttributeName'](_0xc53ecb),_0x2aee2b=_0xc53ecb['item']['getAttribute'](_0x509ef8),_0x5b88fc=_0x27b52d['get'](_0x2aee2b);_0x5b88fc&&'elementStart'==_0xc53ecb['type']&&(_0xe9bb3a=Array['from'](_0x5b88fc)[0x0],_0x213240=_0xc53ecb['item']['getAttribute']('vid_end')),_0xe9bb3a&&(_0x4b1725['set'](_0x2aee2b,{'userId':_0xe9bb3a}),_0x28015f['set'](_0x2aee2b,{'userId':_0xe9bb3a})),_0x2aee2b==_0x213240&&(_0xe9bb3a=null,_0x213240=null);}}const _0x40efcc={},_0x16c3f1=new Set();for(const _0x384c75 of _0x333652){const _0x111bb8=_0x3234db['deletions'][_0x384c75],_0x10251f=_0x3234db['insertions'][_0x384c75];for(const {userId:_0x4f6a46}of this['_touchedMarkers']['values']())null!==_0x4f6a46&&_0x16c3f1['add'](_0x4f6a46);for(const {userId:_0xcc3920}of this['_touchedRoots']['values']())null!==_0xcc3920&&_0x16c3f1['add'](_0xcc3920);this['_markChanges'](_0x10251f,_0x5f223b['insertions'][_0x384c75],_0x28015f,'insertion',_0x16c3f1),this['_markChanges'](_0x111bb8,_0x5f223b['deletions'][_0x384c75],_0x4b1725,'deletion',_0x16c3f1),_0x40efcc[_0x384c75]={'insertions':this['_prepareViewToSave'](_0x10251f),'deletions':this['_prepareViewToSave'](_0x111bb8),'attachChange':this['_touchedRoots']['get'](_0x384c75)||null,'attributesBefore':_0x50487a(this['_baseRootsAttributes']['get'](_0x384c75))||{},'attributesAfter':_0x50487a(this['_diffRootsAttributes']['get'](_0x384c75))};}return{'diffData':_0x40efcc,'authorsIds':Array['from'](_0x16c3f1)};}['_processRootBeforeSave'](_0x52da7f){for(const [,_0x57d50c]of _0x52da7f['markers']){const _0xf22458=_0x57d50c['start']['getAncestors']()['filter'](_0x45aee6=>'tableCell'==_0x45aee6['name']);for(const _0x4b9e96 of _0xf22458)0x1==_0x4b9e96['childCount']&&_0x4b9e96['getChild'](0x0)['is']('element','paragraph')&&_0x4b9e96['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2b8419){this['_processRootBeforeSave'](_0x2b8419);const _0x48a0e5=this['editor']['data']['toView'](_0x2b8419,{}),_0x5eacd3=Array['from'](_0x48a0e5['getChildren']())['map'](_0x3ff6e3=>this['_getViewJson'](_0x3ff6e3));return JSON['stringify'](_0x5eacd3);}['_getViewJson'](_0x327862){if(_0x327862['is']('$text'))return _0x327862['data'];{const _0x4c3888=_0x327862;return{'type':Object['keys'](C)['find'](_0x155780=>_0x327862 instanceof C[_0x155780]),'name':_0x4c3888['name'],'attributes':Array['from'](_0x4c3888['getAttributes']()),'children':Array['from'](_0x4c3888['getChildren']())['map'](_0x5ef4af=>this['_getViewJson'](_0x5ef4af))};}}['_markChanges'](_0x11859e,_0x47c641,_0x3c6108,_0x30a52a,_0xfc2b4b){let _0x41a0d6=null,_0x5db055=null,_0x32a253=0x0;const _0x3931cd=this['editor']['model'];for(let _0x476a52=0x0;_0x476a52<_0x47c641['length'];_0x476a52++){const _0x1cbed4=this['_getVidAttributeName'](_0x47c641[_0x476a52]),_0x517515=_0x47c641[_0x476a52]['item']['getAttribute'](_0x1cbed4),_0x53bfa7=_0x3c6108['get'](_0x517515),_0x5ca715=_0x476a52==_0x47c641['length']-0x1;(!_0x41a0d6&&_0x53bfa7&&(_0x41a0d6=_0x53bfa7,_0x5db055=_0x47c641[_0x476a52]),_0x41a0d6&&(!_0x53bfa7||_0x53bfa7['userId']!=_0x41a0d6['userId']))&&(_0x535042(_0x53bfa7,J(_0x5db055,_0x11859e,_0x3931cd),J(_0x47c641[_0x476a52],_0x11859e,_0x3931cd)),_0x41a0d6=_0x53bfa7||null,_0x5db055=_0x53bfa7?_0x47c641[_0x476a52]:null),_0x41a0d6&&_0x5ca715&&_0x535042(_0x53bfa7,J(_0x5db055,_0x11859e,_0x3931cd),q(_0x47c641[_0x476a52],_0x11859e,_0x3931cd));}function _0x535042(_0x3002af,_0x34ee6d,_0xd16d24){const _0x24fd36=_0x41a0d6['userId'],_0x19656a='revision:'+_0x30a52a+':'+_0x24fd36+':'+_0x32a253++,_0x2cbde6=_0x3931cd['createRange'](_0x34ee6d,_0xd16d24);_0x11859e['markers']['set'](_0x19656a,_0x2cbde6),null!==_0x24fd36&&_0xfc2b4b['add'](_0x24fd36);}}['_getVidAttributeName'](_0x2d565b){switch(_0x2d565b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1f1a60,_0x433ab8){_0x1f1a60['baseVersion']=null;for(const _0x165348 in _0x1f1a60){const _0x2f1cd3=_0x1f1a60[_0x165348];if(_0x2f1cd3 instanceof wt){const _0x2d2791=_0x433ab8['get'](_0x2f1cd3['root']['rootName']);_0x1f1a60[_0x165348]=this['_fixPosition'](_0x2f1cd3,_0x2d2791);}if(_0x2f1cd3 instanceof gt){const _0x11546d=_0x433ab8['get'](_0x2f1cd3['root']['rootName']);_0x1f1a60[_0x165348]=this['_fixRange'](_0x2f1cd3,_0x11546d);}'root'===_0x165348&&(_0x1f1a60['root']=_0x433ab8['get'](_0x1f1a60['root']['rootName']));}}['_fixRange'](_0x21bfa2,_0x5c21e9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x21bfa2['start'],_0x5c21e9),this['_fixPosition'](_0x21bfa2['end'],_0x5c21e9));}['_fixPosition'](_0x44a091,_0x34d66d){return this['editor']['model']['createPositionFromPath'](_0x34d66d,_0x44a091['path'],_0x44a091['stickiness']);}['_handleInsertOperation'](_0x47118a){const _0xc68358=this['_idsRoots']['get'](_0x47118a['position']['root']['rootName']),_0x256e35=this['_fixPosition'](_0x47118a['position'],_0xc68358),_0x28f7e2=null===_0x47118a['_authorId']?null:_0x47118a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5babd3=_0x256e35['parent'],_0x14f4a9=this['_revisionId'],_0xbf4fc2=[];for(const _0x22a81f of _0x47118a['nodes'])if(_0x22a81f['is']('element'))_0xbf4fc2['push'](this['_makeIdsRoot'](_0x22a81f));else{for(let _0x586f9f=0x0;_0x586f9f<_0x22a81f['offsetSize'];_0x586f9f++)_0xbf4fc2['push'](new vt('$text',{'vid':this['_revisionId']++}));}const _0x31569e=this['_revisionId'];for(let _0x542f33=_0x14f4a9;_0x542f33<_0x31569e;_0x542f33++)this['_touched']['set'](_0x542f33,{'userId':_0x28f7e2});_0x5babd3['_insertChild'](_0x256e35['offset'],_0xbf4fc2);}['_handleMoveOperation'](_0x319f90){(_0x319f90=this['_cloneOperation'](_0x319f90,this['_idsRoots']))['_execute']();const _0x1e6fe4=null===_0x319f90['_authorId']?null:_0x319f90['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x216ba4=_0x319f90['getMovedRangeStart'](),_0x45ea7c=_0x216ba4['parent'],_0x4d62eb=_0x216ba4['offset'];!function _0x3709eb(_0x3099ee,_0x652198,_0x939dd2,_0x12d5b8){for(let _0x215e23=_0x939dd2;_0x215e23<_0x12d5b8;_0x215e23++){const _0x107013=_0x652198['getChild'](_0x215e23);_0x107013['is']('element','$text')?_0x3099ee['set'](_0x107013['getAttribute']('vid'),{'userId':_0x1e6fe4}):(_0x3099ee['set'](_0x107013['getAttribute']('vid_start'),{'userId':_0x1e6fe4}),_0x3709eb(_0x3099ee,_0x107013,0x0,_0x107013['childCount']),_0x3099ee['set'](_0x107013['getAttribute']('vid_end'),{'userId':_0x1e6fe4}));}}(this['_touched'],_0x45ea7c,_0x4d62eb,_0x4d62eb+_0x319f90['howMany']);}['_handleMergeOperation'](_0x1d999f){const _0x3525f7=null===(_0x1d999f=this['_cloneOperation'](_0x1d999f,this['_idsRoots']))['_authorId']?null:_0x1d999f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c5f86=_0x1d999f['targetPosition']['parent'],_0x5ff326=_0x1d999f['sourcePosition']['parent'],_0xb353d6=_0x5c5f86['getAttribute']('vid_end'),_0x3f8c94=_0x5ff326['getAttribute']('vid_start');_0x5c5f86['_setAttribute']('vid_end',_0x5ff326['getAttribute']('vid_end')),_0x5ff326['_setAttribute']('vid_end',_0xb353d6),this['_touched']['set'](_0x3f8c94,{'userId':_0x3525f7}),this['_touched']['set'](_0xb353d6,{'userId':_0x3525f7}),_0x1d999f['_execute']();}['_handleSplitOperation'](_0x10b844){const _0x2a468f=null===(_0x10b844=this['_cloneOperation'](_0x10b844,this['_idsRoots']))['_authorId']?null:_0x10b844['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c8ce3=_0x10b844['graveyardPosition'],_0x26c9df=_0x10b844['splitPosition']['parent'];_0x10b844['_execute']();const _0x23faf4=_0x26c9df['getAttribute']('vid_end'),_0x4434ab=_0x10b844['insertionPosition']['nodeAfter'];if(_0x2c8ce3){const _0x1c1fa8=_0x4434ab['getAttribute']('vid_end'),_0xe8a0a8=_0x26c9df['getAttribute']('vid_end');_0x26c9df['_setAttribute']('vid_end',_0x1c1fa8),_0x4434ab['_setAttribute']('vid_end',_0xe8a0a8),this['_touched']['set'](_0x26c9df['getAttribute']('vid_end'),{'userId':_0x2a468f}),this['_touched']['set'](_0x4434ab['getAttribute']('vid_start'),{'userId':_0x2a468f});}else{const _0x416611=this['_revisionId']++,_0x1e99ca=this['_revisionId']++;_0x26c9df['_setAttribute']('vid_end',_0x416611),_0x4434ab['_setAttribute']('vid_start',_0x1e99ca),_0x4434ab['_setAttribute']('vid_end',_0x23faf4),this['_touched']['set'](_0x416611,{'userId':_0x2a468f}),this['_touched']['set'](_0x1e99ca,{'userId':_0x2a468f});}}['_handleMarkerOperation'](_0x10129c){if(!_0x10129c['affectsData'])return;const _0x220cef=(_0x10129c=this['_cloneOperation'](_0x10129c,this['_diffRoots']))['oldRange']?_0x10129c['oldRange']['root']:null,_0x1a840a=_0x10129c['newRange']?_0x10129c['newRange']['root']:null;_0x220cef&&this['_markers']['delete'](_0x10129c['name']),_0x1a840a&&this['_markers']['set'](_0x10129c['name'],_0x10129c['newRange']['clone']());const _0x1dc3b3=null===_0x10129c['_authorId']?null:_0x10129c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c8fb3=_0x10129c['name'];if(!this['_touchedMarkers']['has'](_0x3c8fb3))return void this['_touchedMarkers']['set'](_0x3c8fb3,{'range':_0x10129c['oldRange'],'userId':_0x1dc3b3});const _0x342164=this['_touchedMarkers']['get'](_0x3c8fb3),_0x17dffd=_0x342164['range'],_0x26e471=_0x10129c['newRange'];null==_0x17dffd&&null==_0x26e471||_0x17dffd&&_0x26e471&&_0x17dffd['isEqual'](_0x26e471)?this['_touchedMarkers']['delete'](_0x10129c['name']):_0x342164['userId']=_0x1dc3b3;}['_handleRootOperation'](_0x59e6ca,_0x36a7b1){this['_diffRoots']['has'](_0x59e6ca['rootName'])?this['_diffRoots']['get'](_0x59e6ca['rootName'])['_isAttached']=_0x59e6ca['isAdd']:(this['_diffRoots']['set'](_0x59e6ca['rootName'],B(_0x59e6ca['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x59e6ca['rootName'],{}),_0x36a7b1&&this['_idsRoots']['set'](_0x59e6ca['rootName'],B(_0x59e6ca['rootName'],!0x0)));const _0x389245=null===_0x59e6ca['_authorId']?null:_0x59e6ca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f5dfd=this['_touchedRoots']['get'](_0x59e6ca['rootName']);_0x3f5dfd&&_0x3f5dfd['userId']===_0x389245?this['_touchedRoots']['delete'](_0x59e6ca['rootName']):this['_touchedRoots']['set'](_0x59e6ca['rootName'],{'userId':_0x389245,'isAttached':_0x59e6ca['isAdd']});}['_handleRootAttributeOperation'](_0x4374b9){const _0x3fc3f7=this['_diffRootsAttributes']['get'](_0x4374b9['root']['rootName']);null===_0x4374b9['newValue']?delete _0x3fc3f7[_0x4374b9['key']]:_0x3fc3f7[_0x4374b9['key']]=_0x4374b9['newValue'];}}function F(_0xbe7abd){const _0x48a270=B(_0xbe7abd['rootName'],_0xbe7abd['isAttached']());for(const _0xd303c6 of _0xbe7abd['getChildren']()){const _0x3408da=_0xd303c6['_clone'](!0x0);_0x48a270['_appendChild'](_0x3408da);}return _0x48a270;}function B(_0x5aac0b,_0x10b892=!0x0){const _0xbe708e=new ft();return _0xbe708e['rootName']=_0x5aac0b,_0xbe708e['_isAttached']=_0x10b892,_0xbe708e['isAttached']=()=>_0xbe708e['_isAttached'],_0xbe708e;}function J(_0x5dd05a,_0x19dd2d,_0x3df52d){const _0x2fabd2='elementEnd'==_0x5dd05a['type']?_0x3df52d['createPositionAt'](_0x5dd05a['item'],'end'):_0x3df52d['createPositionBefore'](_0x5dd05a['item']);return _0x3df52d['createPositionFromPath'](_0x19dd2d,_0x2fabd2['path'],_0x2fabd2['stickiness']);}function q(_0x186904,_0x24f34c,_0x4f30d4){const _0x173ead='elementStart'==_0x186904['type']?_0x4f30d4['createPositionAt'](_0x186904['item'],0x0):_0x4f30d4['createPositionAfter'](_0x186904['item']);return _0x4f30d4['createPositionFromPath'](_0x24f34c,_0x173ead['path'],_0x173ead['stickiness']);}class ns extends _0x1c2fad{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3920b7,_0x497375){super(_0x3920b7),this['focusTracker']=new _0x54d3f2(),this['keystrokes']=new _0x308ede(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x497375),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2d9e3a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x17e2fc=_0x4f2a7a=>_0x4f2a7a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x17e2fc),this['keystrokes']['set']('arrowleft',_0x17e2fc),this['keystrokes']['set']('arrowup',_0x17e2fc),this['keystrokes']['set']('arrowdown',_0x17e2fc);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x34540b){this['revisionNameInputView']['fieldView']['element']['value']=_0x34540b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5c12b5){const _0x3a2817=new at(this['locale'],_0x3eef4d),_0x4d87c4=_0x3a2817['fieldView'];_0x4d87c4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1a1637=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5c12b5&&(_0x1a1637+='\x20('+R(this['locale'],'optional')+')'),(_0x3a2817['label']=_0x1a1637,_0x4d87c4['on']('input',()=>{this['revisionNameInputValue']=_0x4d87c4['element']['value']['trim']();}),_0x3a2817);}}class u extends _0x5532dc{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3aa509=this['editor'],_0x133dff=_0x3aa509['plugins']['get']('RevisionTracker');_0x3aa509['ui']['componentFactory']['add']('revisionHistory',_0x2eb1bb=>{const _0x40196f=_0x47dec9(_0x2eb1bb),_0x84c852=_0x40196f['panelView']['children'],_0x9a4d11=new te(_0x2eb1bb),_0x27408f=new _0x105abf(_0x2eb1bb),_0xe2b31=new _0x204591(_0x2eb1bb),_0x3895e9=new _0x105abf(_0x2eb1bb),_0x3696f6=new _0x204591(_0x2eb1bb);return _0x40196f['bind']('isEnabled')['to'](_0x133dff,'isReady',_0x133dff,'isEnabled',_0x3aa509,'isReadOnly',(_0x348645,_0x226f86,_0x73ff92)=>_0x348645&&_0x226f86&&!_0x73ff92),_0x40196f['buttonView']['set']({'icon':_0x31f906['history'],'label':R(_0x2eb1bb,'Revision\x20history'),'tooltip':!0x0}),_0xe2b31['set']({'label':R(_0x2eb1bb,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xe2b31['bind']('isEnabled')['to'](_0x133dff,'isReady',_0x133dff,'isEnabled',_0x3aa509,'isReadOnly',(_0x328f14,_0x4bf11d,_0x58af2c)=>_0x328f14&&_0x4bf11d&&!_0x58af2c),_0xe2b31['on']('execute',()=>this['_showDialog']()),_0x3696f6['set']({'label':R(_0x2eb1bb,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3696f6['bind']('isEnabled')['to'](_0x133dff,'isReady',_0x3aa509,'isReadOnly',(_0x294acc,_0x382a50)=>_0x294acc&&!_0x382a50),_0x3696f6['on']('execute',()=>{_0x3aa509['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x40196f['isOpen']=!0x1,_0x3aa509['editing']['view']['focus']();}),_0x27408f['children']['add'](_0xe2b31),_0x3895e9['children']['add'](_0x3696f6),_0x9a4d11['role']='menu',_0x9a4d11['items']['addMany']([_0x27408f,_0x3895e9]),_0x84c852['add'](_0x9a4d11),_0x40196f;}),_0x3aa509['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4e385d=this['editor'],_0x156b40=_0x4e385d['locale'],_0x526575=new _0x1c0c94(_0x156b40),_0x8b99b8=new _0x266d47(_0x156b40);_0x526575['buttonView']['set']({'icon':_0x31f906['history'],'label':R(_0x156b40,'Revision\x20history')});const _0x31441b=new _0xca032c(_0x156b40,_0x526575),_0x5021bb=new _0x484cc0(_0x156b40);_0x5021bb['set']({'label':R(_0x156b40,'Save\x20current\x20revision')}),_0x5021bb['delegate']('execute')['to'](_0x526575),_0x5021bb['on']('execute',()=>{this['_showDialog']();}),_0x31441b['children']['add'](_0x5021bb),_0x8b99b8['items']['add'](_0x31441b);const _0xf0f9c0=new _0xca032c(_0x156b40,_0x526575),_0x1c3fcf=new _0x484cc0(_0x156b40);return _0x1c3fcf['set']({'label':R(_0x156b40,'Open\x20revision\x20history')}),_0x1c3fcf['delegate']('execute')['to'](_0x526575),_0x1c3fcf['on']('execute',()=>{_0x4e385d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xf0f9c0['children']['add'](_0x1c3fcf),_0x8b99b8['items']['add'](_0xf0f9c0),_0x526575['panelView']['children']['add'](_0x8b99b8),_0x526575;}['_showDialog'](){const _0x2dfd4c=this['editor'],_0x318aa4=_0x2dfd4c['locale'],_0x5c0190=_0x2dfd4c['plugins']['get']('Dialog'),_0xc213df=_0x2dfd4c['plugins']['get']('RevisionTracker');function _0x4c212a(_0x40ffa0){_0x2dfd4c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x40ffa0['revisionName']?_0x40ffa0['revisionNameInputView']['errorText']=R(_0x318aa4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2dfd4c['plugins']['get'](l)['saveRevision']({'name':_0x40ffa0['revisionName']}),_0x5c0190['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c212a(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5c0190['show']({'id':'revisionSave','title':R(_0x318aa4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2dfd4c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5c0190['hide']()},{'label':R(_0x2dfd4c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3f2acd){_0x3f2acd['bind']('isEnabled')['to'](_0xc213df,'isReady',_0xc213df,'isEnabled',_0x2dfd4c,'isReadOnly',(_0xa57772,_0x7aa014,_0x1b58d9)=>_0xa57772&&_0x7aa014&&!_0x1b58d9);},'onExecute':()=>_0x4c212a(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x25c352=this['editor'],_0x5cd501=_0x25c352['locale'];this['_saveRevisionFormView']=new ns(_0x5cd501,_0x25c352['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x1c2fad{['changeId'];['_model'];constructor(_0xa1ecb5,_0x52b545){super(_0xa1ecb5),this['_model']=_0x52b545,this['changeId']=_0x52b545['id'];const _0x12f3a8=this['bindTemplate'],_0x7a8c38=R(_0xa1ecb5,_0x52b545['data']['isSuggestion']?'Suggested\x20by':'add'==_0x52b545['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x52b545['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x12f3a8['to']('type',_0x2c81bf=>'ck-revision-change__'+_0x2c81bf)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x7a8c38}]},{'text':'\x20'+_0x52b545['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x598a16(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x7e92bb){super(),this['id']=_0x7e92bb['id']||_0x13ea74(),this['author']=_0x7e92bb['author'],this['type']=_0x7e92bb['type'],this['data']=_0x7e92bb['data']||{},this['rootName']=_0x7e92bb['rootName'],this['set']('createdAt',_0x7e92bb['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x22a604,_0x2b6ead){this['newRevisionId']=_0x22a604,this['oldRevisionId']=_0x2b6ead,this['changes']=new _0x1a9df2();}['_setChanges'](_0x1c3f51){for(const _0x1ba172 of _0x1c3f51)this['changes']['add'](_0x1ba172);}}const Z={'c':_0x4348ae,'a':_0x512f4b,'e':_0x5f428e,'r':_0x3b00fb,'u':_0x219f67};class d extends _0x5532dc{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xf9156,_0x45b95e,j];}constructor(_0x22be8f){super(_0x22be8f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x316bef,_0x5e2a20,_0x553b82)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x31013a=>{for(const _0x3e7893 of this['editor']['editing']['view']['document']['roots'])_0x553b82?_0x31013a['removeClass']('ck-editor__editable__overlay',_0x3e7893):_0x31013a['addClass']('ck-editor__editable__overlay',_0x3e7893);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x20b678=>null!==_0x20b678),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x35466f,_0x2be43a,_0x352d76)=>_0x35466f&&_0x352d76?_0x2be43a['changes']['getIndex'](_0x352d76):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x33ed1f,_0x5d7930)=>_0x33ed1f?_0x5d7930['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x45b95e);}['init'](){const _0x4534ed=this['editor'],_0x156483=new bt(_0x4534ed,{'direction':'backward'}),_0x4ee6de=new bt(_0x4534ed,{'direction':'forward'});(_0x4534ed['commands']['add']('showPreviousChange',_0x156483),_0x4534ed['commands']['add']('showNextChange',_0x4ee6de),_0x4534ed['commands']['add']('restoreRevision',new yt(_0x4534ed)),this['on']('change:numberOfChanges',()=>{_0x156483['refresh'](),_0x4ee6de['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4534ed['enableReadOnlyMode']('revision-viewer'),_0x4534ed['plugins']['has']('WidgetToolbarRepository'))&&_0x4534ed['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x279747){await this['loadRevisionData'](_0x279747);const _0x577a8e={};for(const _0x3bbaf0 in _0x279747['diffData']){if(_0x279747['diffData'][_0x3bbaf0]['attachChange']&&!_0x279747['diffData'][_0x3bbaf0]['attachChange']['isAttached'])continue;const _0x330742=this['_removeRevisionMarkers'](JSON['parse'](_0x279747['diffData'][_0x3bbaf0]['insertions'])),_0x5522c0=this['editor']['editing']['view']['document'],_0x5c1304=new _0x25be1c(_0x5522c0,_0x330742['map'](_0xc7e91c=>this['_getViewObj'](_0xc7e91c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x577a8e[_0x3bbaf0]=this['editor']['data']['processor']['toData'](_0x5c1304),this['editor']['data']['processor']['useFillerType']('default');}return _0x577a8e;}async['getRevisionRootsAttributes'](_0x44d1a1){await this['loadRevisionData'](_0x44d1a1);const _0x4f2adc={};for(const _0x124752 in _0x44d1a1['diffData'])_0x44d1a1['diffData'][_0x124752]['attachChange']&&!_0x44d1a1['diffData'][_0x124752]['attachChange']['isAttached']||(_0x4f2adc[_0x124752]=_0x44d1a1['diffData'][_0x124752]['attributesAfter']||{});return _0x4f2adc;}['_removeRevisionMarkers'](_0x59ea94){return(_0x59ea94=_0x59ea94['filter'](_0x74df93=>!_0x74df93['name']||'revision-start'!==_0x74df93['name']&&'revision-end'!==_0x74df93['name']))['forEach'](_0x1f6ee4=>{'string'!=typeof _0x1f6ee4&&(_0x1f6ee4['children']=this['_removeRevisionMarkers'](_0x1f6ee4['children']),_0x1f6ee4['attributes']=_0x1f6ee4['attributes']['filter'](_0x16dcd8=>!_0x16dcd8[0x0]['startsWith']('data-revision-')));}),_0x59ea94;}async['compare'](_0x1cca66,_0x3a7afd,_0x534ad8=!0x1){if(!this['isEnabled'])return;const _0x14499a=this['diff'],_0xb95b71=this['repository'],_0x8fcd92='string'==typeof _0x1cca66?_0xb95b71['getRevision'](_0x1cca66):_0x1cca66,_0x185dae='string'==typeof _0x3a7afd?_0xb95b71['getRevision'](_0x3a7afd):_0x3a7afd,_0x5d905f=_0x8fcd92['id'],_0x4afbb1=_0x185dae?_0x185dae['id']:null;if(!_0x534ad8&&this['diff']&&this['diff']['newRevisionId']===_0x5d905f&&this['diff']['oldRevisionId']===_0x4afbb1)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5d905f,_0x4afbb1);const _0x1a0bca=this['_getRevisionsRange'](_0x8fcd92,_0x185dae,!0x0)['map'](_0x211653=>this['loadRevisionData'](_0x211653));return _0x1a0bca['push'](new Promise(_0x1f190a=>{setTimeout(_0x1f190a,0x14);})),Promise['all'](_0x1a0bca)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2bfa21=this['_getDiff'](_0x5d905f,_0x4afbb1);for(const _0x5f331f of _0x2bfa21['changes'])this['_changeIdToChange']['set'](_0x5f331f['id'],_0x5f331f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2a1495=>{for(const _0xefeedb of this['editor']['model']['document']['getRootNames']())_0x2a1495['detachRoot'](_0xefeedb);for(const _0x1282f3 of Object['keys'](_0x2bfa21['model'])){const _0x51f766=_0x2a1495['addRoot'](_0x1282f3);for(const _0x1e5750 of Object['keys'](_0x2bfa21['attributes'][_0x1282f3]))_0x2a1495['setAttribute'](_0x1e5750,_0x2bfa21['attributes'][_0x1282f3][_0x1e5750],_0x51f766);_0x2a1495['insert'](_0x2bfa21['model'][_0x1282f3],_0x51f766,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2bfa21['changes'])),this['isReady']=!0x0;})['catch'](_0x10bac2=>{console['error'](_0x10bac2),this['_cleanUp'](),_0x14499a&&(this['diff']=_0x14499a),this['isReady']=!0x0;});}['addRevisionData'](_0x53e5a6,_0x562f23){const _0x5f2ae7=this['repository']['createRevision'](_0x53e5a6);return _0x5f2ae7['on']('_update',(_0xb1a9ec,_0xda77fb,_0x5d447a)=>_0x562f23(_0xda77fb,_0x5d447a,_0x5f2ae7)),this['repository']['addRevision'](_0x5f2ae7),_0x5f2ae7;}['loadRevisionData'](_0x1c0cac){if(!_0x1c0cac||_0x1c0cac['diffData'])return Promise['resolve']();{const _0x19031c=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x19031c,'revisionId':_0x1c0cac['id']})['then'](_0xc2ff7=>{_0x1c0cac['_update']({'diffData':_0xc2ff7['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3f4b64=>{for(const _0x3b37a1 of this['editor']['model']['document']['getRootNames']())_0x3f4b64['detachRoot'](_0x3b37a1);});}['_sortAndFilterDiffChanges'](_0x14fe66){const _0x15825d=[],_0x53878b=new Map();for(const _0x2a9062 of this['editor']['model']['document']['getRootNames']()){const _0x220abe=this['editor']['editing']['view']['getDomRoot'](_0x2a9062);if(!_0x220abe)continue;const _0x2b72db=_0x220abe['getClientRects']()['item'](0x0);_0x2b72db&&(_0x15825d['push'](_0x2a9062),_0x53878b['set'](_0x2a9062,_0x2b72db));}return _0x15825d['sort']((_0x31f176,_0x2f5682)=>{const _0x3ec2c5=_0x53878b['get'](_0x31f176),_0x35d54a=_0x53878b['get'](_0x2f5682);return _0x3ec2c5['y']-_0x35d54a['y']||_0x3ec2c5['x']-_0x35d54a['x'];}),(_0x14fe66=_0x14fe66['filter'](_0x1710ac=>_0x15825d['includes'](_0x1710ac['rootName'])))['sort']((_0x4e471b,_0x26a7eb)=>_0x15825d['indexOf'](_0x4e471b['rootName'])-_0x15825d['indexOf'](_0x26a7eb['rootName'])),_0x14fe66;}['_makeTape'](_0x241fd5){const _0x5b8bbc=Array['from'](_0x241fd5['markers'])['filter'](([_0x21d994,_0x32bfd3])=>_0x21d994['startsWith']('revision:')&&!_0x32bfd3['isCollapsed']),_0x364c59=Array['from'](this['editor']['model']['createRangeIn'](_0x241fd5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5b8bbc['length'])for(const _0x3a7e69 of _0x364c59){const [_0xdd5e23,_0x14b8db]=_0x5b8bbc[0x0],[,_0x5eba3e,_0x4180db]=_0xdd5e23['split'](':');if(_0x14b8db['end']['isEqual'](_0x3a7e69['nextPosition'])&&_0x5b8bbc['shift'](),(_0x3a7e69['previousPosition']['isEqual'](_0x14b8db['start'])||_0x3a7e69['previousPosition']['isAfter'](_0x14b8db['start']))&&('insertion'==_0x5eba3e?_0x3a7e69['isAdded']={'userId':_0x4180db}:'deletion'==_0x5eba3e&&(_0x3a7e69['isRemoved']={'userId':_0x4180db})),0x0==_0x5b8bbc['length'])break;}return _0x364c59;}['_refreshStartEndIndex'](_0x1c9296){const _0x2cdd88=new Map();for(let _0x236739=0x0;_0x236739<_0x1c9296['length'];_0x236739++)'text'===_0x1c9296[_0x236739]['type']?(_0x1c9296[_0x236739]['item']['startIndex']=_0x236739,_0x1c9296[_0x236739]['item']['endIndex']=_0x236739):('elementStart'===_0x1c9296[_0x236739]['type']?_0x1c9296[_0x236739]['item']['startIndex']=_0x236739:'elementEnd'===_0x1c9296[_0x236739]['type']&&(_0x1c9296[_0x236739]['item']['endIndex']=_0x236739),_0x2cdd88['set'](_0x1c9296[_0x236739]['id'],_0x236739));for(const _0x278910 of _0x2cdd88['values']())'elementStart'===_0x1c9296[_0x278910]['type']?_0x1c9296[_0x278910]['item']['endIndex']=_0x2cdd88['get'](_0x1c9296[_0x278910]['pairId']):'elementEnd'===_0x1c9296[_0x278910]['type']&&(_0x1c9296[_0x278910]['item']['startIndex']=_0x2cdd88['get'](_0x1c9296[_0x278910]['pairId']));}['_processTape'](_0x1021aa){for(let _0x422a41=0x0;_0x422a41<_0x1021aa['length'];_0x422a41++){if('elementStart'===_0x1021aa[_0x422a41]['type'])_0x1021aa[_0x422a41]['item']['startIndex']=_0x422a41;else{if('elementEnd'===_0x1021aa[_0x422a41]['type']){_0x1021aa[_0x422a41]['item']['endIndex']=_0x422a41;const _0x17de98=_0x1021aa[_0x422a41]['item']['startIndex'];_0x1021aa[_0x17de98]['pairId']=_0x1021aa[_0x422a41]['id'],_0x1021aa[_0x422a41]['pairId']=_0x1021aa[_0x17de98]['id'];}else _0x1021aa[_0x422a41]['item']['startIndex']=_0x422a41,_0x1021aa[_0x422a41]['item']['endIndex']=_0x422a41,_0x1021aa[_0x422a41]['pairId']=null;}_0x1021aa[_0x422a41]['markersStart']||(_0x1021aa[_0x422a41]['markersStart']=[],_0x1021aa[_0x422a41]['markersEnd']=[]);}}['_markInsertions'](_0x137e67,_0x1358e1){const _0x583310=_0x137e67['filter'](_0x151e55=>!_0x151e55['isAdded']);for(let _0x1d81dd=0x0;_0x1d81dd<_0x1358e1['length'];_0x1d81dd++)_0x1358e1[_0x1d81dd]['isAdded']&&(_0x583310[_0x1d81dd]['isAdded']=_0x1358e1[_0x1d81dd]['isAdded']);}['_makeModelFromViewString'](_0x4015bd){const _0xfe242a=JSON['parse'](_0x4015bd),_0x2af191=this['editor']['editing']['view']['document'],_0x5974b1=new _0x25be1c(_0x2af191,_0xfe242a['map'](_0x28b2ea=>this['_getViewObj'](_0x28b2ea)));return this['editor']['data']['toModel'](_0x5974b1);}['_getViewObj'](_0x2c433b){const _0x34e5f6=this['editor']['editing']['view']['document'];if('string'==typeof _0x2c433b)return new _0x37bb31(_0x34e5f6,_0x2c433b);{const _0x34c0e8=_0x2c433b['children']['map'](_0x1f1947=>this['_getViewObj'](_0x1f1947));return new(Z[_0x2c433b['type']]||_0x4802ce)(_0x34e5f6,_0x2c433b['name'],_0x2c433b['attributes'],_0x34c0e8);}}['_getDiff'](_0x1e2f6f,_0x4e502c=null){const _0x42243f=this['repository']['getRevision'](_0x1e2f6f),_0x8ef3b5=_0x4e502c?this['repository']['getRevision'](_0x4e502c):null,_0x8d6cc7=this['_getRevisionsRange'](_0x42243f,_0x8ef3b5),_0x13aad3=_0x8d6cc7[_0x8d6cc7['length']-0x1],_0x591fac=new Map(),_0xb0c5b9={'model':{},'attributes':{},'changes':[]},_0x2adca4=new Set(),_0x11784f=new Map();for(let _0x4c8ca6=_0x8d6cc7['length']-0x1;_0x4c8ca6>=0x0;_0x4c8ca6--){const _0x5c48ba=_0x8d6cc7[_0x4c8ca6];for(const _0x1a9b79 of Object['keys'](_0x5c48ba['diffData']))if(_0x5c48ba['diffData'][_0x1a9b79]['attachChange']){const _0x16e1ca=_0x5c48ba['diffData'][_0x1a9b79]['attachChange'];_0x16e1ca['isAttached']?(_0x2adca4['add'](_0x1a9b79),_0x11784f['has'](_0x1a9b79)&&_0x11784f['get'](_0x1a9b79)['userId']==_0x16e1ca['userId']?_0x11784f['delete'](_0x1a9b79):_0x11784f['set'](_0x1a9b79,_0x16e1ca)):_0x11784f['has'](_0x1a9b79)?(_0x2adca4['delete'](_0x1a9b79),_0x11784f['delete'](_0x1a9b79)):(_0x2adca4['add'](_0x1a9b79),_0x11784f['set'](_0x1a9b79,_0x16e1ca));}else _0x2adca4['add'](_0x1a9b79);}for(const _0x5b3372 of _0x2adca4){const _0xfd5a10=_0x11784f['has'](_0x5b3372)&&!_0x11784f['get'](_0x5b3372)['isAttached'];let _0x34c3e0=_0xfd5a10?_0x8d6cc7['length']-0x1:0x0;const _0x5d2fb6=_0xfd5a10?-0x1:0x1;for(;_0x8d6cc7[_0x34c3e0];){const _0xe68e41=_0x8d6cc7[_0x34c3e0];if(_0xe68e41['diffData'][_0x5b3372]){const _0x46bdb6=_0xfd5a10?_0xe68e41['diffData'][_0x5b3372]['attributesBefore']:_0xe68e41['diffData'][_0x5b3372]['attributesAfter'];_0xb0c5b9['attributes'][_0x5b3372]=_0x46bdb6?_0x50487a(_0x46bdb6):{};break;}_0x34c3e0+=_0x5d2fb6;}}for(const _0xd8a18f of _0x8d6cc7){_0xd8a18f['model']={};for(const _0x832c39 of _0xd8a18f['authors'])_0x591fac['set'](_0x832c39['id'],_0x832c39);for(const _0x545539 of _0x2adca4){const _0x517a66=_0xd8a18f['diffData'][_0x545539]?_0xd8a18f['diffData'][_0x545539]['insertions']:'[]',_0x2f376a=_0xd8a18f['diffData'][_0x545539]?_0xd8a18f['diffData'][_0x545539]['deletions']:'[]';_0xd8a18f['model'][_0x545539]={'insertions':this['_makeModelFromViewString'](_0x517a66),'deletions':this['_makeModelFromViewString'](_0x2f376a)};}}for(const _0x39b647 of _0x2adca4){let _0x345ae3=null,_0xe21cc5=0x0;const _0x186fa8=new Map(Array['from'](_0x42243f['model'][_0x39b647]['insertions']['markers'])['filter'](([_0x28cb8c])=>!_0x28cb8c['startsWith']('revision:')));let _0x48aaa4=0x0;for(const _0x33905c of _0x8d6cc7){const _0x40b3ea=this['_makeTape'](_0x33905c['model'][_0x39b647]['insertions']);_0x33905c==_0x42243f?(_0x345ae3=_0x40b3ea,_0xe21cc5=_0x345ae3['length'],_0x345ae3['forEach'](_0x1e7c89=>{_0x1e7c89['id']=_0x48aaa4++;}),this['_processTape'](_0x345ae3)):this['_markInsertions'](_0x345ae3,_0x40b3ea);const _0x414668=_0x345ae3['filter'](_0x23b364=>!_0x23b364['isAdded'])['map'](_0x4c759a=>_0x4c759a['id']);let _0x5bcc56=0x0;const _0x445c54=this['_makeTape'](_0x33905c['model'][_0x39b647]['deletions']);_0x445c54['forEach'](_0x25a726=>{_0x25a726['isRemoved']?_0x25a726['id']=_0xe21cc5++:_0x25a726['id']=_0x414668[_0x5bcc56++];}),this['_processTape'](_0x445c54),this['_setDistance'](_0x345ae3,'isAdded'),this['_setDistance'](_0x445c54,'isRemoved'),_0x33905c==_0x42243f&&this['_markMarkers'](_0x345ae3,_0x186fa8),_0x345ae3=this['_joinTapes'](_0x345ae3,_0x445c54),this['_refreshStartEndIndex'](_0x345ae3),this['_setDistance'](_0x345ae3,'isRemoved');}_0x345ae3=_0x345ae3['filter'](_0x18a39a=>!(_0x18a39a['isAdded']&&_0x18a39a['isRemoved']));const _0xf0fbbd=new Map(_0x13aad3['model'][_0x39b647]['deletions']['markers']),_0x1fdf1b=new Set(_0x186fa8['keys']());for(const _0x224e29 of _0xf0fbbd['keys']())_0x1fdf1b['delete'](_0x224e29);this['_markSuggestions'](_0x345ae3,_0x1fdf1b),this['_fixObsoleteTags'](_0x345ae3),_0x345ae3=this['_removeMissingPairs'](_0x345ae3),_0x345ae3=this['_markMismatchedRemovedTags'](_0x345ae3),_0x345ae3=this['_removeUnsupportedChanges'](_0x345ae3);const {root:_0x9c338b,changes:_0x2cb242}=this['_makeModelFromTape'](_0x345ae3,_0x591fac,_0x39b647);_0xb0c5b9['model'][_0x39b647]=_0x9c338b;const _0xd510c=_0x11784f['get'](_0x39b647);if(_0xd510c){const _0x484175=_0x591fac['get'](_0xd510c['userId']),_0xeb613=new r({'author':_0x484175,'type':_0xd510c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x39b647});_0x2cb242['unshift'](_0xeb613),_0xb0c5b9['attributes'][_0x39b647]['revisionHistoryAttachChange']=_0xeb613['id'];}_0xb0c5b9['changes']=_0xb0c5b9['changes']['concat'](_0x2cb242);}return _0xb0c5b9;}['_markMarkers'](_0x134a79,_0x9e6da7){for(let _0x5d4d34=0x0;_0x5d4d34<_0x134a79['length'];_0x5d4d34++)for(const [_0x583069,_0x11d953]of _0x9e6da7)_0x11d953['start']['isEqual'](_0x134a79[_0x5d4d34]['previousPosition'])&&_0x134a79[_0x5d4d34]['markersStart']['push'](_0x583069),_0x11d953['end']['isEqual'](_0x134a79[_0x5d4d34]['nextPosition'])&&_0x134a79[_0x5d4d34]['markersEnd']['push'](_0x583069);}['_joinTapes'](_0x17cf08,_0x4c823b){let _0x3d835c=[],_0x733287=0x0,_0x63caaa=0x0;for(;_0x733287<_0x17cf08['length']||_0x63caaa<_0x4c823b['length'];){const _0x48e82c=_0x17cf08[_0x733287]||{},_0x1f6a97=_0x4c823b[_0x63caaa]||{};if(_0x48e82c['id']==_0x1f6a97['id'])_0x733287++,_0x63caaa++,_0x3d835c['push'](_0x48e82c);else{if(_0x1f6a97['isRemoved']&&_0x48e82c['isAdded']){const {commonTape:_0x564739,iEnd:_0x33eda7,jEnd:_0x543c59}=this['_threeWayMerge'](_0x17cf08,_0x733287,_0x4c823b,_0x63caaa);_0x3d835c=_0x3d835c['concat'](_0x564739),_0x733287=_0x33eda7,_0x63caaa=_0x543c59;}else _0x1f6a97['isRemoved']?(_0x63caaa++,_0x3d835c['push'](_0x1f6a97)):(_0x733287++,_0x3d835c['push'](_0x48e82c));}}return _0x3d835c;}['_markSuggestions'](_0x55fe82,_0x202ce5){const _0x3f7a00=[];for(let _0x352888=0x0;_0x352888<_0x55fe82['length'];_0x352888++){for(let _0x1182bf=0x0;_0x1182bf<_0x55fe82[_0x352888]['markersStart']['length'];_0x1182bf++){const _0x7171cd=_0x55fe82[_0x352888]['markersStart'][_0x1182bf];if(!_0x202ce5['has'](_0x7171cd))continue;const {group:_0xe40b62,type:_0x19e9a4,authorId:_0x179ded}=_0x3f8c44(_0x7171cd);'revision-suggestion'!=_0xe40b62||'insertion'!=_0x19e9a4&&'deletion'!=_0x19e9a4||(_0x3f7a00['unshift']({'type':_0x19e9a4,'name':_0x7171cd,'userId':_0x179ded}),_0x55fe82[_0x352888]['markersStart']['splice'](_0x1182bf,0x1),_0x1182bf--);}_0x32d732(_0x55fe82[_0x352888]);for(let _0x2e6d11=0x0;_0x2e6d11<_0x55fe82[_0x352888]['markersEnd']['length'];_0x2e6d11++){const _0x5aea77=_0x55fe82[_0x352888]['markersEnd'][_0x2e6d11];if(!_0x202ce5['has'](_0x5aea77))continue;const {group:_0xd2513a,type:_0x57a760}=_0x3f8c44(_0x5aea77);if('revision-suggestion'!=_0xd2513a||'insertion'!=_0x57a760&&'deletion'!=_0x57a760)continue;_0x55fe82[_0x352888]['markersEnd']['splice'](_0x2e6d11,0x1),_0x2e6d11--;const _0x2673d7=_0x3f7a00['findIndex'](_0xc0db4d=>_0xc0db4d['name']==_0x5aea77);_0x2673d7>-0x1&&_0x3f7a00['splice'](_0x2673d7,0x1);}}function _0x3f8c44(_0x5d3dcc){const _0x986e99=_0x5d3dcc['split'](':');return{'group':_0x986e99[0x0],'type':_0x986e99[0x1],'subType':_0x986e99['length']>=0x5?_0x986e99[0x2]:null,'id':_0x986e99['length']<0x5?_0x986e99[0x2]:_0x986e99[0x3],'authorId':_0x986e99['length']<0x5?_0x986e99[0x3]:_0x986e99[0x4],'markerCount':0x6==_0x986e99['length']?_0x986e99[0x5]:null};}function _0x32d732(_0x32a04d){for(let _0x396c28=0x0;_0x396c28<_0x3f7a00['length'];_0x396c28++){if(_0x32a04d['isAdded']&&'insertion'==_0x3f7a00[_0x396c28]['type'])return _0x32a04d['isAddSuggestion']=_0x3f7a00[_0x396c28],void delete _0x32a04d['isAdded'];if(!_0x32a04d['isAdded']&&!_0x32a04d['isRemoved']&&'deletion'==_0x3f7a00[_0x396c28]['type'])return void(_0x32a04d['isRemoveSuggestion']=_0x3f7a00[_0x396c28]);}}}['_setDistance'](_0x15e923,_0x3e9fcf){let _0x2c28c2=0x0,_0x456865=!0x1;const _0x1a3334=new Map();for(const _0x17ac7a of _0x15e923)_0x17ac7a[_0x3e9fcf]?_0x456865&&(_0x2c28c2++,_0x456865=!0x1):(_0x2c28c2++,_0x456865=!0x0),_0x1a3334['set'](_0x17ac7a['id'],_0x2c28c2);for(let _0x1d5914=0x0;_0x1d5914<_0x15e923['length'];_0x1d5914++){if('isRemoved'==_0x3e9fcf&&_0x15e923[_0x1d5914]['isAdded']||'isAdded'==_0x3e9fcf&&_0x15e923[_0x1d5914]['isRemoved'])continue;if('text'==_0x15e923[_0x1d5914]['type']){_0x15e923[_0x1d5914]['distance']=0x0;continue;}const _0x4dde81=_0x1a3334['get'](_0x15e923[_0x1d5914]['pairId']),_0x92f001=_0x1a3334['get'](_0x15e923[_0x1d5914]['id']);_0x15e923[_0x1d5914]['distance']=_0x4dde81-_0x92f001;}}['_getRevisionsRange'](_0x2d5c2d,_0x1f90f2,_0x38e786=!0x1){const _0x1834d3=[];let _0x120088=this['repository']['getIndex'](_0x2d5c2d),_0x4c36fd=this['repository']['getIndex'](_0x1f90f2);for(-0x1==_0x4c36fd&&(_0x4c36fd=this['repository']['_revisions']['length'],_0x38e786=!0x1);_0x120088<_0x4c36fd;)_0x1834d3['push'](this['repository']['getRevision'](_0x120088)),_0x120088++;return _0x38e786&&_0x1834d3['push'](this['repository']['getRevision'](_0x120088)),_0x1834d3;}['_threeWayMerge'](_0x1c9939,_0x491c72,_0x48e885,_0x3ac531){const _0x3b8fb9=this['editor']['model']['schema'];let _0x34fe3c=_0x491c72;for(;_0x1c9939[_0x34fe3c]&&_0x1c9939[_0x34fe3c]['isAdded'];)_0x34fe3c++;let _0x36c6e0=_0x3ac531;for(;_0x48e885[_0x36c6e0]&&_0x48e885[_0x36c6e0]['isRemoved'];)_0x36c6e0++;_0x2720f2(_0x1c9939,_0x491c72,_0x34fe3c),_0x2720f2(_0x48e885,_0x3ac531,_0x36c6e0);const _0x43bd1b=_0x48e885['slice'](_0x3ac531,_0x36c6e0)['concat'](_0x1c9939['slice'](_0x491c72,_0x34fe3c));return _0x43bd1b['sort']((_0x3681ce,_0x3618b4)=>_0x3681ce['side']!=_0x3618b4['side']?_0x3681ce['side']-_0x3618b4['side']:_0x3681ce['level']!=_0x3618b4['level']?_0x3681ce['level']-_0x3618b4['level']:_0x3681ce['distance']!=_0x3618b4['distance']?_0x3618b4['distance']-_0x3681ce['distance']:!!_0x3681ce['isAdded']!=!!_0x3618b4['isAdded']?-0x1==_0x3681ce['side']||0x0==_0x3681ce['side']?_0x3681ce['isAdded']?-0x1:0x1:_0x3681ce['isAdded']?0x1:-0x1:_0x3681ce['index']-_0x3618b4['index']),{'commonTape':_0x43bd1b,'iEnd':_0x34fe3c,'jEnd':_0x36c6e0};function _0x2720f2(_0x3e8ca6,_0x4a5a17,_0x514a53){let _0x456f1f=-0x1,_0x225626=Number['POSITIVE_INFINITY'],_0x7a955=!0x0;for(let _0x25563d=_0x4a5a17;_0x25563d<_0x514a53;_0x25563d++)if(_0x3b8fb9['isInline'](_0x3e8ca6[_0x25563d]['item'])||(_0x7a955=!0x1),_0x3e8ca6[_0x25563d]['item']['startIndex']<_0x4a5a17&&(_0x456f1f=_0x25563d),_0x3e8ca6[_0x25563d]['item']['endIndex']>=_0x514a53){_0x225626=_0x25563d;break;}_0x7a955&&(_0x456f1f=_0x514a53-0x1);for(let _0x515b2d=_0x4a5a17;_0x515b2d<_0x514a53;_0x515b2d++)_0x3e8ca6[_0x515b2d]['side']=_0x515b2d<=_0x456f1f?-0x1:_0x515b2d<_0x225626?0x0:0x1,_0x3e8ca6[_0x515b2d]['index']=_0x515b2d;let _0x4620ea=0x0;for(let _0x581c11=_0x4a5a17;_0x581c11<=_0x456f1f;_0x581c11++)0x0==_0x3e8ca6[_0x581c11]['distance']?_0x3e8ca6[_0x581c11]['level']=_0x4620ea:(_0x4620ea++,_0x3e8ca6[_0x581c11]['level']=_0x4620ea,_0x4620ea++);for(let _0x30d3b3=_0x4a5a17;_0x30d3b3<_0x514a53;_0x30d3b3++)0x0==_0x3e8ca6[_0x30d3b3]['side']&&(_0x3e8ca6[_0x30d3b3]['level']=_0x4620ea);_0x4620ea=0x0;for(let _0x400232=_0x514a53-0x1;_0x400232>=_0x225626;_0x400232--)0x0==_0x3e8ca6[_0x400232]['distance']?_0x3e8ca6[_0x400232]['level']=_0x4620ea:(_0x4620ea--,_0x3e8ca6[_0x400232]['level']=_0x4620ea,_0x4620ea--);}}['_fixObsoleteTags'](_0x4cf5e5){const _0xb0bf16=new Map(),_0x4e1123=this['editor']['model']['schema'];for(let _0x501f99=0x1;_0x501f99<_0x4cf5e5['length'];_0x501f99++){let _0x4134e9,_0x369aa9,_0x760bd7;const _0x556053=_0x4cf5e5[_0x501f99],_0x509ac1=_0x4cf5e5[_0x501f99-0x1];if('text'==_0x556053['type'])continue;if(_0x556053['type']!=_0x509ac1['type'])continue;if(!_0x4e1123['isBlock'](_0x509ac1['item'])||_0x4e1123['isLimit'](_0x509ac1['item']))continue;if(!_0x4e1123['isBlock'](_0x556053['item'])||_0x4e1123['isLimit'](_0x556053['item']))continue;if((_0x4cf5e5[_0x501f99]['isAdded']||_0x4cf5e5[_0x501f99]['isAddSuggestion'])&&_0x4cf5e5[_0x501f99-0x1]['isRemoved'])_0x4134e9=_0x4cf5e5[_0x501f99],_0x369aa9=_0x4cf5e5[_0x501f99-0x1],_0x760bd7=_0x501f99-0x1;else{if(!_0x4cf5e5[_0x501f99]['isRemoved']||!_0x4cf5e5[_0x501f99-0x1]['isAdded']&&!_0x4cf5e5[_0x501f99-0x1]['isAddSuggestion'])continue;_0x4134e9=_0x4cf5e5[_0x501f99-0x1],_0x369aa9=_0x4cf5e5[_0x501f99],_0x760bd7=_0x501f99;}const _0x1eae45=_0x4134e9['level']==_0x369aa9['level'],_0x54b0a7=Math['abs'](_0x4134e9['level'])<Math['abs'](_0x369aa9['level'])&&0x0==_0x369aa9['distance'];(_0x1eae45||_0x54b0a7)&&(_0xb0bf16['set'](_0x369aa9['id'],_0x4134e9['id']),_0x4cf5e5['splice'](_0x760bd7,0x1),_0x501f99--,_0x4134e9['isAdded']=!0x1);}for(let _0x8cdc54=0x0;_0x8cdc54<_0x4cf5e5['length'];_0x8cdc54++)_0xb0bf16['has'](_0x4cf5e5[_0x8cdc54]['pairId'])&&(_0x4cf5e5[_0x8cdc54]['pairId']=_0xb0bf16['get'](_0x4cf5e5[_0x8cdc54]['pairId']));}['_removeMissingPairs'](_0x476ebe){const _0x445194=new Set(_0x476ebe['map'](_0x1a91b3=>_0x1a91b3['id']));for(let _0xc307fd=0x0;_0xc307fd<_0x476ebe['length'];_0xc307fd++)_0x445194['has'](_0x476ebe[_0xc307fd]['pairId'])||0x0==_0x476ebe[_0xc307fd]['distance']||(_0x476ebe[_0xc307fd]['isIncorrect']=!0x0);return _0x476ebe['filter'](_0x2702f5=>!_0x2702f5['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1ea16b){const _0x236fa2=new Set();for(let _0x4a83df=0x0;_0x4a83df<_0x1ea16b['length'];_0x4a83df++){if(_0x236fa2['has'](_0x1ea16b[_0x4a83df]['id'])&&_0x1ea16b[_0x4a83df]['isRemoved']&&(_0x1ea16b[_0x4a83df]['isIncorrect']=!0x0),_0x1ea16b[_0x4a83df]['isIncorrect'])continue;if(0x0==_0x1ea16b[_0x4a83df]['distance'])continue;if('elementStart'!=_0x1ea16b[_0x4a83df]['type'])continue;if(null==_0x1ea16b[_0x4a83df]['pairId'])continue;let _0x311ae2=_0x4a83df+0x1,_0x3df931=0x0;for(;_0x1ea16b[_0x311ae2]['id']!=_0x1ea16b[_0x4a83df]['pairId'];)'elementStart'==_0x1ea16b[_0x311ae2]['type']?_0x3df931++:'elementEnd'==_0x1ea16b[_0x311ae2]['type']&&_0x3df931--,_0x311ae2++;if(0x0!=_0x3df931){if(_0x1ea16b[_0x4a83df]['isRemoved'])_0x1ea16b[_0x4a83df]['isIncorrect']=!0x0;else{for(;_0x311ae2!=_0x4a83df;)_0x1ea16b[_0x311ae2]['isRemoved']&&0x0!=_0x1ea16b[_0x311ae2]['distance']&&(_0x1ea16b[_0x311ae2]['isIncorrect']=!0x0,_0x236fa2['add'](_0x1ea16b[_0x311ae2]['pairId'])),_0x311ae2--;}}}return _0x1ea16b['filter'](_0x2f1f71=>!_0x2f1f71['isIncorrect']);}['_removeUnsupportedChanges'](_0x596568){const _0x107311=this['editor']['model']['schema'];for(let _0x3c9c3f=0x0;_0x3c9c3f<_0x596568['length'];_0x3c9c3f++){if(!(_0x596568[_0x3c9c3f]['isAdded']||_0x596568[_0x3c9c3f]['isAddSuggestion']||_0x596568[_0x3c9c3f]['isRemoved']||_0x596568[_0x3c9c3f]['isRemoveSuggestion']))continue;if(0x0==_0x596568[_0x3c9c3f]['distance'])continue;const _0x3c1542=_0x596568[_0x3c9c3f]['item'];_0x107311['isBlock'](_0x3c1542)||_0x107311['isLimit'](_0x3c1542)||(_0x596568[_0x3c9c3f]['isAdded']&&delete _0x596568[_0x3c9c3f]['isAdded'],_0x596568[_0x3c9c3f]['isAddSuggestion']&&delete _0x596568[_0x3c9c3f]['isAddSuggestion'],_0x596568[_0x3c9c3f]['isRemoveSuggestion']&&delete _0x596568[_0x3c9c3f]['isRemoveSuggestion'],_0x596568[_0x3c9c3f]['isRemoved']&&(_0x596568[_0x3c9c3f]['isIncorrect']=!0x0));}return _0x596568['filter'](_0x13b252=>!_0x13b252['isIncorrect']);}['_makeModelFromTape'](_0x2bd208,_0x425bfd,_0xf91e66){const _0x22c229=new ft(),_0x1e14ba=[],_0x3631cd=new Map(),_0x11bfb2=this['editor']['model'],_0x554bc3=_0x11bfb2['schema'],_0x1cb27f=[_0x22c229],_0x525a4b={},_0x423858={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xd05207=null;const _0x4f5c75=[0x0];for(let _0xebe8d6=0x0;_0xebe8d6<_0x2bd208['length'];_0xebe8d6++)if('elementStart'===_0x2bd208[_0xebe8d6]['type']){_0x2bd208[_0xebe8d6]['previousPosition']=_0x11bfb2['createPositionFromPath'](_0x22c229,_0x4f5c75);const _0x3dd36f=new vt(_0x2bd208[_0xebe8d6]['item']['name'],_0x2bd208[_0xebe8d6]['item']['getAttributes']());_0x1cb27f[0x0]['_appendChild'](_0x3dd36f),_0x4f5c75['push'](0x0),_0x1cb27f['unshift'](_0x3dd36f),_0x2bd208[_0xebe8d6]['nextPosition']=_0x11bfb2['createPositionFromPath'](_0x22c229,_0x4f5c75);}else'elementEnd'===_0x2bd208[_0xebe8d6]['type']?(_0x1cb27f['shift'](),_0x2bd208[_0xebe8d6]['previousPosition']=_0x11bfb2['createPositionFromPath'](_0x22c229,_0x4f5c75),_0x4f5c75['pop'](),_0x4f5c75[_0x4f5c75['length']-0x1]++,_0x2bd208[_0xebe8d6]['nextPosition']=_0x11bfb2['createPositionFromPath'](_0x22c229,_0x4f5c75)):(_0x2bd208[_0xebe8d6]['previousPosition']=_0x11bfb2['createPositionFromPath'](_0x22c229,_0x4f5c75),_0xd05207?_0xd05207['_data']+=_0x2bd208[_0xebe8d6]['item']['data']:_0xd05207=new _t(_0x2bd208[_0xebe8d6]['item']['data'],_0x2bd208[_0xebe8d6]['item']['getAttributes']()),_0x2bd208[_0xebe8d6+0x1]&&'text'===_0x2bd208[_0xebe8d6+0x1]['type']&&_0x189344(_0xd05207,_0x2bd208[_0xebe8d6+0x1]['item'])||(_0x1cb27f[0x0]['_appendChild'](_0xd05207),_0xd05207=null),_0x4f5c75[_0x4f5c75['length']-0x1]+=_0x2bd208[_0xebe8d6]['item']['offsetSize'],_0x2bd208[_0xebe8d6]['nextPosition']=_0x11bfb2['createPositionFromPath'](_0x22c229,_0x4f5c75));for(let _0x5dc895=0x0;_0x5dc895<_0x2bd208['length'];_0x5dc895++){const _0x263e5e=_0x2bd208[_0x5dc895]['previousPosition'],_0x2fcf3f=_0x2bd208[_0x5dc895]['nextPosition'];for(const _0xf54ba6 of _0x2bd208[_0x5dc895]['markersStart'])_0x3631cd['set'](_0xf54ba6,{'start':_0x263e5e,'end':null});_0x53a2f1('isRemoveSuggestion',_0x5dc895,_0x263e5e,_0x2fcf3f),_0x53a2f1('isAddSuggestion',_0x5dc895,_0x263e5e,_0x2fcf3f),_0x53a2f1('isRemoved',_0x5dc895,_0x263e5e,_0x2fcf3f),_0x53a2f1('isAdded',_0x5dc895,_0x263e5e,_0x2fcf3f);for(const _0x241d2a of _0x2bd208[_0x5dc895]['markersEnd']){_0x3631cd['get'](_0x241d2a)['end']=_0x2fcf3f;}}for(const [_0x2e1588,_0x239d2c]of _0x3631cd){const _0x3374d3=this['editor']['model']['createRange'](_0x239d2c['start'],_0x239d2c['end']);_0x22c229['markers']['set'](_0x2e1588,_0x3374d3);}return _0x1e14ba['sort']((_0x429c8f,_0x277a76)=>{const _0x5702c4=_0x22c229['markers']['get']('revision:'+_0x429c8f['id']),_0x4bcdf1=_0x22c229['markers']['get']('revision:'+_0x277a76['id']);return _0x5702c4['start']['isBefore'](_0x4bcdf1['start'])?-0x1:_0x5702c4['start']['isAfter'](_0x4bcdf1['start'])?0x1:_0x5702c4['end']['isBefore'](_0x4bcdf1['end'])?-0x1:_0x5702c4['end']['isAfter'](_0x4bcdf1['end'])?0x1:'add'===_0x429c8f['type']?-0x1:0x1;}),{'root':_0x22c229,'changes':_0x1e14ba};function _0x53a2f1(_0x2f5a3b,_0x1e1523,_0x38fa4a,_0x588669){const _0x2e17bd=!!_0x2bd208[_0x1e1523][_0x2f5a3b],_0x14a7e3=_0x2e17bd?_0x2bd208[_0x1e1523][_0x2f5a3b]['userId']:null,_0x31cd96=_0x1e1523===_0x2bd208['length']-0x1,_0x47baa2=_0x423858[_0x2f5a3b][0x0],_0x205319=_0x554bc3['isObject'](_0x2bd208[_0x1e1523]['item']);!_0x525a4b[_0x2f5a3b]&&_0x2e17bd?_0x525a4b[_0x2f5a3b]={'start':_0x38fa4a,'tapeItem':_0x2bd208[_0x1e1523],'userId':_0x14a7e3,'type':_0x2f5a3b}:_0x525a4b[_0x2f5a3b]&&!_0x2e17bd?(_0x525a4b[_0x2f5a3b]['end']=_0x38fa4a,_0x10ffb6(_0x525a4b[_0x2f5a3b]),_0x525a4b[_0x2f5a3b]=null):_0x525a4b[_0x2f5a3b]&&_0x2e17bd&&_0x525a4b[_0x2f5a3b]['userId']!==_0x14a7e3&&(_0x525a4b[_0x2f5a3b]['end']=_0x38fa4a,_0x47baa2&&_0x47baa2['userId']===_0x525a4b[_0x2f5a3b]['userId']||_0x10ffb6(_0x525a4b[_0x2f5a3b]),_0x525a4b[_0x2f5a3b]={'start':_0x38fa4a,'tapeItem':_0x2bd208[_0x1e1523],'userId':_0x14a7e3,'type':_0x2f5a3b}),_0x525a4b[_0x2f5a3b]&&_0x205319&&('elementStart'!==_0x2bd208[_0x1e1523]['type']||_0x47baa2&&_0x47baa2['userId']===_0x14a7e3||_0x423858[_0x2f5a3b]['unshift']({'userId':_0x14a7e3,'object':_0x2bd208[_0x1e1523]['item'],'change':_0x525a4b[_0x2f5a3b]}),'elementEnd'===_0x2bd208[_0x1e1523]['type']&&_0x47baa2&&_0x47baa2['object']===_0x2bd208[_0x1e1523]['item']&&(_0x423858[_0x2f5a3b]['shift'](),_0x525a4b[_0x2f5a3b]=_0x47baa2['change'])),_0x525a4b[_0x2f5a3b]&&_0x31cd96&&(_0x525a4b[_0x2f5a3b]['end']=_0x588669,_0x10ffb6(_0x525a4b[_0x2f5a3b]),_0x525a4b[_0x2f5a3b]=null);}function _0x10ffb6({start:_0x591f7c,end:_0x58098c,tapeItem:_0x422c9b,userId:_0x2314c1,type:_0x442df0}){const _0x285aef=_0x422c9b['item'],_0x3d68fb=_0x11bfb2['schema']['isBlock'](_0x285aef)&&!_0x11bfb2['schema']['isLimit'](_0x285aef),_0x5e6aca=_0x591f7c['nodeAfter']==_0x58098c['parent']&&_0x58098c['isAtStart'];if(_0x3d68fb&&_0x5e6aca)return;const _0x5f1423=_0x11bfb2['createRange'](_0x591f7c,_0x58098c),_0x2676ed=_0x425bfd['get'](_0x2314c1),_0x2d92bb=new r({'author':_0x2676ed,'type':'isAdded'==_0x442df0||'isAddSuggestion'==_0x442df0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x442df0||'isRemoveSuggestion'==_0x442df0},'createdAt':new Date(),'rootName':_0xf91e66});_0x1e14ba['push'](_0x2d92bb),_0x22c229['markers']['set']('revision:'+_0x2d92bb['id'],_0x5f1423);}function _0x189344(_0x4c8d3c,_0x292513){const _0x3f50ab=_0x4c8d3c['getAttributes'](),_0x5089bb=_0x292513['getAttributes']();for(const _0x4f34ef of _0x3f50ab){if(_0x4f34ef[0x1]!==_0x292513['getAttribute'](_0x4f34ef[0x0]))return!0x1;_0x5089bb['next']();}return _0x5089bb['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x687750=>{const _0x54fb8b=_0x687750['markerName']['split'](':')[0x1],_0x21d3f7=this['_getChangeFromId'](_0x54fb8b);if(!_0x21d3f7)return null;const _0x43cbb0='add'==_0x21d3f7['type']?'insertion':'deletion',_0x997dfc=['ck-suggestion-marker','ck-suggestion-marker-'+_0x43cbb0];return _0x21d3f7['data']['isSuggestion']&&_0x997dfc['push']('ck-suggestion-marker-'+_0x43cbb0+'-new'),this['activeChange']==_0x21d3f7&&_0x997dfc['push']('ck-suggestion-marker--active'),{'classes':_0x997dfc,'attributes':{'data-change-id':_0x54fb8b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1b7713=>{_0x1b7713['on']('element:pre',(_0x1cf6bf,_0x13e864,_0x3b21c6)=>{const _0x5d4fb3=_0x13e864['viewItem']['getChild'](0x0);if(!_0x5d4fb3||!_0x5d4fb3['is']('element','code'))return;if(!_0x3b21c6['consumable']['consume'](_0x5d4fb3,{'attributes':['vid_start','vid_end']}))return;const _0x585087=_0x13e864['modelRange']['start']['nodeAfter'];_0x3b21c6['writer']['setAttribute']('vid_start',_0x5d4fb3['getAttribute']('vid_start'),_0x585087),_0x3b21c6['writer']['setAttribute']('vid_end',_0x5d4fb3['getAttribute']('vid_end'),_0x585087);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4e8841=>{_0x4e8841['on']('element',(_0x57f715,_0x96336,_0x79a505)=>{if(!_0x79a505['consumable']['consume'](_0x96336['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x96336['modelRange']['isCollapsed'])return;const _0x53dbdc=_0x96336['modelRange']['start']['nodeAfter'];_0x53dbdc['hasAttribute']('vid_start')||_0x53dbdc['hasAttribute']('vid')||(_0x79a505['writer']['setAttribute']('vid_start',_0x96336['viewItem']['getAttribute']('vid_start'),_0x53dbdc),_0x79a505['writer']['setAttribute']('vid_end',_0x96336['viewItem']['getAttribute']('vid_end'),_0x53dbdc));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x397100=>_0x397100['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1ecfce,[,_0x4211dd])=>{['vid_start','vid_end','vid']['includes'](_0x4211dd)&&(_0x1ecfce['return']=!0x0,_0x1ecfce['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x9bfd11=>{_0x9bfd11['on']('attribute:vid',(_0x19a7bd,_0x35a5f7,_0x48ffb8)=>{if('\x20'!=_0x35a5f7['item']['data']||_0x35a5f7['item']['parent']['maxOffset']>0x1)return;if(!_0x48ffb8['consumable']['consume'](_0x35a5f7['item'],_0x19a7bd['name']))return;const _0x193862=_0x48ffb8['writer'],_0x121420=_0x48ffb8['mapper']['toViewRange'](_0x35a5f7['range']);_0x193862['wrap'](_0x121420,_0x193862['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xbef6e3){const _0x39ec0a=_0xbef6e3['plugins']['get']('RevisionViewer');return(_0xbf0d7,_0x2a6483,_0xc31ba6)=>{const _0x46f66f=_0x2a6483['markerName']['split'](':')[0x1],_0x346f0f=_0x39ec0a['_getChangeFromId'](_0x46f66f);if(!_0x346f0f)return null;const _0x2711f4='add'==_0x346f0f['type']?'split':'merge';if(!_0xc31ba6['consumable']['test'](_0x2a6483['markerRange'],_0xbf0d7['name']))return;const _0x2fafae=_0x2a6483['markerRange']['getWalker'](),_0x39e492=_0x2a6483['markerRange']['start'],_0x20cef9=_0xbef6e3['model']['schema'];let _0x3bcf47=null,_0x456f9a=null,_0x297cd1=!0x1,_0x51a684=!0x1;for(const _0x1d1e75 of _0x2fafae){const _0xb1d75a=_0x1d1e75['item'];_0x297cd1=_0x297cd1||_0x20cef9['isContent'](_0xb1d75a);const _0x30c6e1=_0xc31ba6['mapper']['toViewElement'](_0xb1d75a);if(_0x30c6e1&&_0x30c6e1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d1e75['type']&&(_0x20cef9['isBlock'](_0xb1d75a)&&!_0x20cef9['isLimit'](_0xb1d75a)&&(_0xb1d75a['nextSibling']||_0x39e492['isAtEnd']?_0x3bcf47&&_0x3bcf47['parent']==_0xb1d75a||(_0x3bcf47=_0xb1d75a,_0x1907ce(_0x1d1e75['previousPosition']),_0x51a684=!0x0):_0x456f9a=_0x456f9a||_0x1d1e75['previousPosition']));}function _0x1907ce(_0x15acc9){const _0x14485d=_0xc31ba6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2711f4}),_0x1c8954=_0xc31ba6['mapper']['toViewPosition'](_0x15acc9);_0x346f0f['data']['isSuggestion']&&_0xc31ba6['writer']['addClass']('ck-suggestion-marker-'+_0x2711f4+'-new',_0x14485d),_0x39ec0a['activeChange']==_0x346f0f&&_0xc31ba6['writer']['addClass']('ck-suggestion-marker--active',_0x14485d),_0xc31ba6['writer']['insert'](_0x1c8954,_0x14485d),_0xc31ba6['mapper']['bindElementToMarker'](_0x14485d,_0x2a6483['markerName']);}_0x297cd1||_0x51a684||!_0x456f9a||_0x1907ce(_0x456f9a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x23c6ff,_0x132033,_0x907f37)=>{const _0xdd53ba=_0x907f37['mapper']['markerNameToElements'](_0x132033['markerName']);if(_0xdd53ba){for(const _0x42dc28 of _0xdd53ba)(_0x42dc28['hasClass']('ck-suggestion-marker-split')||_0x42dc28['hasClass']('ck-suggestion-marker-merge'))&&(_0x907f37['mapper']['unbindElementFromMarkerName'](_0x42dc28,_0x132033['markerName']),_0x907f37['writer']['remove'](_0x42dc28));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x6db5a3,_0x4e03f7,_0x4542e6)=>{const _0x3dc97c=_0x4e03f7['markerName']['split'](':')[0x1],_0x39c3b4=this['_getChangeFromId'](_0x3dc97c);if(!_0x39c3b4)return null;const _0x18d721='add'==_0x39c3b4['type']?'split':'merge';if(_0x4542e6['consumable']['test'](_0x4e03f7['markerRange'],_0x6db5a3['name']))for(const _0x22be7c of _0x4e03f7['markerRange']['getItems']()){if(!_0x22be7c['is']('element','softBreak'))continue;const _0x207486=_0x4542e6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18d721}),_0x3b6fba=_0x4542e6['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x22be7c));_0x39c3b4['data']['isSuggestion']&&_0x4542e6['writer']['addClass']('ck-suggestion-marker-'+_0x18d721+'-new',_0x207486),this['activeChange']==_0x39c3b4&&_0x4542e6['writer']['addClass']('ck-suggestion-marker--active',_0x207486),_0x4542e6['writer']['insert'](_0x3b6fba,_0x207486),_0x4542e6['mapper']['bindElementToMarker'](_0x207486,_0x4e03f7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4ad356=>{for(const _0x21b64f of this['editor']['model']['document']['getRootNames']()){const _0x4c8c8e=this['editor']['model']['document']['getRoot'](_0x21b64f),_0x30fcf3=this['editor']['editing']['view']['document']['getRoot'](_0x21b64f);if(_0x30fcf3){const _0x51f341=_0x4c8c8e['getAttribute']('revisionHistoryAttachChange');if(_0x4ad356['removeAttribute']('data-change-id',_0x30fcf3),_0x4ad356['removeClass']('ck-revision-history-root-add',_0x30fcf3),_0x4ad356['removeClass']('ck-revision-history-root-remove',_0x30fcf3),_0x4ad356['removeClass']('ck-revision-history-root--active',_0x30fcf3),_0x51f341){const _0x1e3d15=this['_getChangeFromId'](_0x51f341);if(!_0x1e3d15)return null;_0x4ad356['setAttribute']('data-change-id',_0x51f341,_0x30fcf3),_0x4ad356['addClass']('ck-revision-history-root-'+_0x1e3d15['type'],_0x30fcf3),this['activeChange']==_0x1e3d15&&_0x4ad356['addClass']('ck-revision-history-root--active',_0x30fcf3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x494212=>'revision-comment:'+_0x494212,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x12ee94=>'revision-suggestion:'+_0x12ee94,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x453102=>({'name':'suggestion:'+_0x453102,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x20bc6c=>{const _0x3e8648=_0x20bc6c['markerName']['split'](':')[0x1];return'insertion'!=_0x3e8648&&'deletion'!=_0x3e8648?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3e8648]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x16c584,_0x3caf6e,_0x2cc67a)=>{const _0x41233c=_0x2cc67a['mapper']['markerNameToElements'](_0x3caf6e['markerName']);if(_0x41233c){for(const _0xea8f04 of _0x41233c)_0xea8f04['is']('uiElement')&&(_0x2cc67a['mapper']['unbindElementFromMarkerName'](_0xea8f04,_0x3caf6e['markerName']),_0x2cc67a['writer']['remove'](_0xea8f04));}},{'priority':'high'});}['_getChangeFromId'](_0x4abb3e){return this['_changeIdToChange']['get'](_0x4abb3e);}['_getViewForChange'](_0x596fcc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x596fcc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x50c311,_0x550491,_0x281681,_0x235b48)=>{_0x235b48&&this['_balloon']['remove'](_0x235b48),_0x281681&&(this['_balloon']['add']({'view':_0x281681,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4b03f2=this['editor']['editing'],_0x4ea270=this['_getChangeFromId'](_0x281681['changeId']);let _0x402500;if(_0x4ea270['data']['isOnRoot']){const _0x13019a=_0x4b03f2['view']['getDomRoot'](_0x4ea270['rootName']);_0x402500=Array['from'](_0x13019a['getClientRects']());}else{const _0x1db97e=this['editor']['model']['markers']['get']('revision:'+_0x281681['changeId']);_0x402500=Array['from'](_0x4b03f2['mapper']['markerNameToElements'](_0x1db97e['name']))['map'](_0x52d711=>_0x4b03f2['view']['domConverter']['mapViewToDom'](_0x52d711))['map'](_0x4b968f=>Array['from'](_0x4b968f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x402500[0x0];return _0x402500['find'](_0x16eaa4=>_0x16eaa4['top']-0x3<=this['_activeViewTarget']['y']&&_0x16eaa4['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x16eaa4['left']-0x3<=this['_activeViewTarget']['x']&&_0x16eaa4['right']+0x3>=this['_activeViewTarget']['x'])||_0x402500[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2d17b2,_0x329f06,_0x5ec774,_0x18ecc5)=>{this['activeView']=_0x5ec774?this['_getViewForChange'](_0x5ec774):null,this['editor']['model']['change'](()=>{const _0xd33cba=this['editor']['editing'];_0x18ecc5&&(_0x18ecc5['data']['isOnRoot']?_0xd33cba['view']['change'](_0x50c04c=>{_0x50c04c['removeClass']('ck-revision-history-root--active',_0xd33cba['view']['document']['getRoot'](_0x18ecc5['rootName']));}):_0xd33cba['reconvertMarker']('revision:'+_0x18ecc5['id'])),_0x5ec774&&(_0x5ec774['data']['isOnRoot']?_0xd33cba['view']['change'](_0x5f4c9a=>{_0x5f4c9a['addClass']('ck-revision-history-root--active',_0xd33cba['view']['document']['getRoot'](_0x5ec774['rootName']));}):_0xd33cba['reconvertMarker']('revision:'+_0x5ec774['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5b7f32,_0x4466cc)=>{if(this['activeChange'])return;const _0x11ad7c=this['_findChangeIdFromDomTarget'](_0x4466cc['target']),_0x2a9bf7=this['_changeIdToChange']['get'](_0x11ad7c);_0x2a9bf7?(this['_activeViewTarget']={'x':_0x4466cc['domEvent']['x'],'y':_0x4466cc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2a9bf7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2fef8c,_0x2796c8)=>{const _0x375b22=this['_findChangeIdFromDomTarget'](_0x2796c8['target']),_0x2d9f06=this['_changeIdToChange']['get'](_0x375b22);_0x2d9f06?(this['_activeViewTarget']={'x':_0x2796c8['domEvent']['x'],'y':_0x2796c8['domEvent']['y']},_0x2d9f06===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d9f06):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x44daff){do{const _0x2640c0=_0x44daff['getAttribute']('data-change-id');if(_0x2640c0)return _0x2640c0;_0x44daff=_0x44daff['parent'];}while(_0x44daff);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x23ed83=>{for(const _0x4192cc of this['editor']['model']['markers'])_0x23ed83['removeMarker'](_0x4192cc);});}}function tt(_0x3b01ea,_0x596ea3){return(_0x4d06e1,_0xf0e0f6,_0x1ee910)=>{if(!_0x1ee910['consumable']['test'](_0xf0e0f6['markerRange'],_0x4d06e1['name']))return;const _0x210d49=_0xf0e0f6['markerRange']['getWalker'](),_0x268f54=_0xf0e0f6['markerRange']['start'],_0x3d5cdb=_0x3b01ea['model']['schema'];let _0x2817df=null,_0x396f92=null,_0x18a1fb=!0x1,_0x2bb510=!0x1;for(const _0x32c857 of _0x210d49){const _0x353b1d=_0x32c857['item'];_0x18a1fb=_0x18a1fb||_0x3d5cdb['isContent'](_0x353b1d);const _0x297a1f=_0x1ee910['mapper']['toViewElement'](_0x353b1d);if(_0x297a1f&&_0x297a1f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x32c857['type']&&(_0x3d5cdb['isBlock'](_0x353b1d)&&!_0x3d5cdb['isLimit'](_0x353b1d)&&(_0x353b1d['nextSibling']||_0x268f54['isAtEnd']?_0x2817df&&_0x2817df['parent']==_0x353b1d||(_0x2817df=_0x353b1d,_0x133b01(_0x32c857['previousPosition']),_0x2bb510=!0x0):_0x396f92=_0x396f92||_0x32c857['previousPosition']));}function _0x133b01(_0x554cbe){const _0x55a13d=_0x1ee910['mapper']['toViewPosition'](_0x554cbe),_0x582f71=_0x1ee910['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x596ea3});_0x1ee910['writer']['insert'](_0x55a13d,_0x582f71),_0x1ee910['mapper']['bindElementToMarker'](_0x582f71,_0xf0e0f6['markerName']);}_0x18a1fb||_0x2bb510||!_0x396f92||_0x133b01(_0x396f92);};}class yt extends _0xd51870{constructor(_0x4e45fd){super(_0x4e45fd);const _0x1ec461=_0x4e45fd['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1ec461,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1ec461,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x17be79=this['editor'],_0xe68c6b=_0x17be79['plugins']['get'](d),_0x214f5f=_0xe68c6b['isReady']?_0xe68c6b['diff']['newRevisionId']:null;_0x17be79['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x214f5f);}['refresh'](){const {isReady:_0x5c7bd2,isEnabled:_0x4b1f4d}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x5c7bd2&&_0x4b1f4d;}}class bt extends _0xd51870{['_step'];constructor(_0xb4ac7,{direction:_0x388fe7}){super(_0xb4ac7);const _0x339b5a=_0xb4ac7['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x388fe7?0x1:-0x1,this['listenTo'](_0x339b5a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x339b5a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x339b5a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x6009fb=this['editor'],_0xb15914=_0x6009fb['plugins']['get'](d),{isNavigationMode:_0x598f05,currentChangeNumber:_0x16055e}=_0xb15914;let _0x496419;if(_0xb15914['activeChange']=_0x598f05?_0xb15914['diff']['changes']['get'](_0x16055e+this['_step']):_0xb15914['diff']['changes']['first'],_0xb15914['activeChange']['data']['isOnRoot'])_0x496419=_0x6009fb['editing']['view']['getDomRoot'](_0xb15914['activeChange']['rootName']);else{const _0x20fb6b=_0x6009fb['model']['markers']['get']('revision:'+_0xb15914['activeChange']['id']);_0x496419=_0x40f7d0(_0x6009fb['editing'],_0x20fb6b);}_0x331413({'target':_0x496419,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3004af,currentChangeNumber:_0x3f0fb3,numberOfChanges:_0x3f1286,isReady:_0x34ce88,isEnabled:_0x30a588}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x30a588&&_0x34ce88&&_0x3f1286)&&(!_0x3004af||(0x1===this['_step']?_0x3f0fb3<_0x3f1286-0x1:_0x3f0fb3>0x0));}}class _i extends _0x1c2fad{constructor(_0x3861c6){super(_0x3861c6);const _0x390010=this['bindTemplate'],_0x39b5bd=new _0x204591(_0x3861c6),_0x28b373=new _0x204591(_0x3861c6);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',(_0x58d75d,_0x313bff)=>_0x58d75d&&_0x313bff>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5f02fe,_0x2a8763,_0x568107,_0x2f47f9)=>{if(!_0x5f02fe)return R(_0x3861c6,'Loading...');if(!_0x568107)return R(_0x3861c6,'No\x20changes');const _0x801aeb=R(_0x3861c6,'NUMBER_OF_CHANGES',_0x568107);return _0x2f47f9?R(_0x3861c6,'X_OF_Y_CHANGES',[_0x2a8763+0x1,_0x568107]):_0x801aeb;}),_0x39b5bd['set']({'label':R(_0x3861c6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x28b373['set']({'label':R(_0x3861c6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x39b5bd['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x28b373['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x39b5bd['on']('execute',()=>this['fire']('execute','backward')),_0x28b373['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',_0x390010['if']('_isStatusLabelVisible','ck-hidden',_0x37d02a=>!_0x37d02a)]},'children':[{'text':_0x390010['to']('isNavigationMode',_0x3df7ea=>_0x3df7ea?R(_0x3861c6,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3861c6,'Total')+':\x20')}]},{'text':_0x390010['to']('_statusText')}]},new _0x18e46c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x39b5bd,_0x28b373]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5532dc{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x254a2b=this['editor']['editing']['view'];_0x254a2b['change'](_0xa2374a=>{for(const _0x3310e2 of _0x254a2b['document']['roots'])_0xa2374a['addClass'](ce,_0x3310e2);});}['hide'](){const _0x293078=this['editor']['editing']['view'];_0x293078['change'](_0x5f1858=>{for(const _0x2be410 of _0x293078['document']['roots'])_0x5f1858['removeClass'](ce,_0x2be410);});}}class m extends _0x5532dc{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x3d728b=this['editor'],_0x3c4809=_0x3d728b['plugins']['get'](d),_0x5f1ab9=_0x3d728b['plugins']['get'](le);_0x3d728b['ui']['componentFactory']['add']('exitToEditing',_0x3c1f1e=>{const _0x2ad30a=new _0x204591(_0x3c1f1e);return _0x2ad30a['set']({'label':R(_0x3c1f1e,'Back\x20to\x20editing'),'icon':_0x31f906['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2ad30a,'execute',()=>{_0x3d728b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2ad30a;}),_0x3d728b['ui']['componentFactory']['add']('restoreRevision',_0xdfa2fa=>{const _0x206466=new _0x204591(_0xdfa2fa);return _0x206466['set']({'label':R(_0xdfa2fa,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x206466['bind']('isEnabled')['to'](_0x3d728b['commands']['get']('restoreRevision')),this['listenTo'](_0x206466,'execute',()=>_0x3d728b['execute']('restoreRevision')),_0x206466;}),_0x3d728b['ui']['componentFactory']['add']('changesNavigation',_0x22bb0f=>{const _0x20739b=new _i(_0x22bb0f),_0x39ad3e=_0x3d728b['commands']['get']('showPreviousChange'),_0x14afa3=_0x3d728b['commands']['get']('showNextChange');return _0x20739b['bind']('isBackwardNavigationEnabled')['to'](_0x39ad3e,'isEnabled'),_0x20739b['bind']('isForwardNavigationEnabled')['to'](_0x14afa3,'isEnabled'),_0x20739b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3c4809),this['listenTo'](_0x20739b,'execute',(_0x57cee4,_0x5d3820)=>{_0x3d728b['execute']('forward'===_0x5d3820?'showNextChange':'showPreviousChange');}),_0x20739b;}),_0x5f1ab9['show'](),_0x3c4809['on']('change:isReady',(_0x3647e0,_0x16598b,_0x50e999)=>{_0x50e999?_0x5f1ab9['hide']():_0x5f1ab9['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x3f3c8b,_0xc09b94){super(_0x3f3c8b,_0xc09b94);const _0x25e833=this['bindTemplate'];this['set']({'label':R(_0x3f3c8b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3f3c8b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x25e833['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3721d7=this['fieldView']['element'];this['_tooltipString']=_0x3721d7['scrollWidth']>_0x3721d7['clientWidth']&&_0x3721d7['value']||'';}}class ti extends _0x1c2fad{constructor(_0x1c670a,_0x163c7d,_0x12472d){super(_0x1c670a);const _0x455e34=new _0x5c0fad();_0x455e34['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x21ad1c=['ck','ck-revision-history-sidebar__revision-author'];_0x12472d&&_0x21ad1c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4a5840=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1c670a,_0x12472d?'Revision\x20creator':'Revision\x20author')},'children':[_0x455e34,_0x163c7d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x21ad1c},'children':_0x4a5840});}}function ni(_0x44c8c5,_0x504664){const _0x520c77=_0x44c8c5['bindTemplate'],_0x415555=_0x44c8c5['locale'],_0x47a5e3=_0x47dec9(_0x415555);_0x47a5e3['panelPosition']='sw';const _0x29ac9e=function(_0x57da87,_0x439f11){const _0x4cfd17=function(_0x259f53,_0x1e9043){const _0x38ed28=_0x259f53['locale'],_0x22c329={'Compare\x20against\x20selected':R(_0x38ed28,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x38ed28,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x38ed28,'Restore\x20this\x20revision')};return _0x1e9043['map'](_0x5c9434=>{const _0x4eba24=_0x22c329[_0x5c9434['name']];return _0x4eba24&&_0x4eba24!==_0x5c9434['name']&&(_0x5c9434['name']=_0x4eba24),_0x5c9434;});}(_0x57da87,_0x439f11),_0x1457d1=new _0x1a9df2();for(const _0x4dbea8 of _0x4cfd17){const _0x262476={'type':'button','model':new to({'label':_0x4dbea8['name'],'class':_0x4dbea8['class'],'withText':!0x0,'role':'menuitem','_action':_0x4dbea8['action']})};_0x262476['model']['bind']('isEnabled')['to'](_0x57da87,'isActionsDropdownOpen',_0x22fa9c=>'function'!=typeof _0x4dbea8['isEnabled']||(!_0x22fa9c||_0x4dbea8['isEnabled'](_0x57da87))),_0x1457d1['add'](_0x262476);}return _0x1457d1;}(_0x44c8c5,_0x504664);return _0x44c8c5['bind']('isActionsDropdownOpen')['to'](_0x47a5e3,'isOpen'),_0x47a5e3['buttonView']['set']({'label':R(_0x415555,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x31f906['threeVerticalDots']}),_0x47a5e3['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x520c77['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x520c77['to'](_0x25c4df=>_0x25c4df['stopPropagation']())}}),_0x47a5e3['on']('execute',_0x2c9000=>{_0x44c8c5['isReady']&&'function'==typeof _0x2c9000['source']['_action']&&_0x2c9000['source']['_action'](_0x44c8c5);}),_0x1a95cb(_0x47a5e3,_0x29ac9e,{'role':'menu'}),_0x47a5e3['listenTo'](_0x44c8c5,'change:isActionsDropdownOpen',(_0x564856,_0x1b0ef6,_0x2215ea)=>{if(_0x2215ea)for(const _0x8a87ed of _0x47a5e3['listView']['items']){const _0x9962ed=_0x8a87ed['children']['first'],_0x15e072=_0x504664['find'](_0xda7158=>_0xda7158['action']===_0x9962ed['_action'])['isVisible'];_0x8a87ed['isVisible']=void 0x0===_0x15e072||_0x15e072(_0x44c8c5);}}),_0x47a5e3;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x777910(_0x1c2fad){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x36c14f,_0x2da8c9,_0x3567f9,_0x5337b5){super(_0x36c14f);const _0x92284d=this['bindTemplate'],_0x777de8=function(_0x213263,_0x54bb5b){const _0x50184d=Array['from'](_0x54bb5b['authors'])['filter'](_0x1f9999=>_0x1f9999!=_0x54bb5b['creator']);return _0x54bb5b['creator']&&_0x50184d['unshift'](_0x54bb5b['creator']),_0x50184d['map'](_0x1171c9=>new ti(_0x213263,_0x1171c9,_0x1171c9==_0x54bb5b['creator']));}(_0x36c14f,_0x2da8c9);this['id']=_0x2da8c9['id'],this['_revision']=_0x2da8c9,this['_requireRevisionName']=_0x5337b5,this['bind']('name','createdAt')['to'](_0x2da8c9),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4cb519=>{return _0x25b178=_0x36c14f['uiLanguage'],(_0x1f33e7=_0x4cb519)['toLocaleDateString'](_0x25b178,{'month':'long','day':'numeric'})+',\x20'+_0x1f33e7['toLocaleTimeString'](_0x25b178,{'hour':'numeric','minute':'numeric'});var _0x25b178,_0x1f33e7;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x36c14f,_0x3eef4d),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3a3638=>_0x3a3638||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4801a4,_0x25b2d9)=>_0x4801a4&&_0x25b2d9),this['revisionActionsView']=_0x3567f9&&_0x3567f9['length']?ni(this,_0x3567f9):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x92284d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x92284d['if']('isEnabled','ck-disabled',_0x123bd4=>!_0x123bd4),_0x92284d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x92284d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x92284d['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':_0x92284d['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':_0x777de8}]},this['revisionActionsView']],'on':{'click':_0x92284d['to'](_0x5ee449=>{_0x5ee449['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4f051d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4f051d,'change',()=>{this['_requireRevisionName']&&!_0x4f051d['value']||this['fire']('setName',{'id':this['id'],'name':_0x4f051d['value']}),_0x4f051d['value']||(_0x4f051d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x5c1dd2,_0x29c11c){const _0x224690=_0x5887d8['fromJSDate'](_0x5c1dd2)['setLocale'](_0x29c11c),_0x566097=_0x5887d8['local'](),_0x432ffe=_0x566097['minus']({'days':0x1})['startOf']('day');let _0x1f673b,_0x5158ce;return _0x224690['hasSame'](_0x566097,'day')?(_0x1f673b=_0x224690['startOf']('day')['toJSDate'](),_0x5158ce=_0x224690['toRelativeCalendar']()):_0x224690['hasSame'](_0x432ffe,'day')?(_0x1f673b=_0x432ffe['toJSDate'](),_0x5158ce=_0x224690['toRelativeCalendar']()):_0x224690['hasSame'](_0x566097,'week')?(_0x1f673b=_0x224690['startOf']('week')['toJSDate'](),_0x5158ce=_0x224690['weekdayLong']||''):_0x224690['hasSame'](_0x566097,'year')?(_0x1f673b=_0x224690['startOf']('month')['toJSDate'](),_0x5158ce=_0x224690['monthLong']||''):(_0x1f673b=_0x224690['startOf']('year')['toJSDate'](),_0x5158ce=String(_0x224690['year'])),{'startDate':_0x1f673b,'localizedPeriodName':_0x5158ce};}class mi extends _0x1c2fad{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1268b6,_0x158a07,_0x42d7f3,_0x139c9c){super(_0x1268b6);const _0x27287b=di(_0x158a07,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x158a07,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x42d7f3,this['_requireRevisionName']=_0x139c9c,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':_0x27287b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x248fd8){const _0x2d81aa=new ai(this['locale'],_0x248fd8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2d81aa);}['removeRevision'](_0x18eec7){const _0x346fcf=this['revisionViews']['find'](_0x64c292=>_0x64c292['id']===_0x18eec7['id']);this['revisionViews']['remove'](_0x346fcf);}}class as extends _0x1c2fad{constructor(_0xe16d74){super(_0xe16d74);const _0x1d2131=new _0x5c0fad();_0x1d2131['content']=_0x31f906['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1d2131,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xe16d74,'Revision\x20history')]}]});}}class ci extends _0x1c2fad{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5c8466,_0xd6859c,_0x2013ec,_0x30cc7b){super(_0x5c8466);const _0xfe5eb7=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xd6859c,this['_revisionActions']=_0x2013ec,this['_requireRevisionName']=_0x30cc7b,this['on']('select',(_0x132dc7,_0x4d5a4e)=>{this['fire']('revisionSelected',_0x4d5a4e);}),this['on']('setName',(_0x1c3c1c,_0x775f6)=>{this['fire']('revisionSetName',_0x775f6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5c8466),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xfe5eb7['if']('isEnabled','ck-disabled',_0x3a21ac=>!_0x3a21ac)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x494b48 of this['_revisions'])this['_addRevision'](_0x494b48);this['_revisions']['on']('add',(_0x353637,_0x5a27b3)=>{this['_addRevision'](_0x5a27b3);}),this['_revisions']['on']('remove',(_0x5098e6,_0x5d1bba)=>{this['_removeRevision'](_0x5d1bba);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x266ac6=>_0x266ac6['revisionViews']['map'](_0x8ab1dc=>_0x8ab1dc))['flat']();}['selectRevision'](_0x377476){for(const _0x2be554 of this['revisionViews'])_0x377476&&_0x377476['id']===_0x2be554['id']?_0x2be554['select']():_0x2be554['deselect']();}['highlightRevisions'](_0xed665a){for(const _0x3e31fd of this['revisionViews'])_0xed665a['some'](({id:_0x4174dc})=>_0x4174dc===_0x3e31fd['id'])?_0x3e31fd['highlight']():_0x3e31fd['unhighlight']();}['_addRevision'](_0x2bc041){const _0x30aab2=di(_0x2bc041['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5e9171=this['timePeriodViews']['get'](0x0);_0x5e9171&&_0x5e9171['startDate']['getTime']()===_0x30aab2['getTime']()||(_0x5e9171=new mi(this['locale'],_0x30aab2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5e9171)),_0x5e9171['addRevision'](_0x2bc041);}['_removeRevision'](_0x450367){const _0x31cba8=di(_0x450367['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x31cba8)['removeRevision'](_0x450367);}['_getTimePeriodViewByStartDate'](_0x2419fb){return this['timePeriodViews']['find'](_0x35de57=>_0x35de57['startDate']['getTime']()===_0x2419fb['getTime']());}}class g extends _0x5532dc{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x139b98,_0x74f8f7){super(_0x74f8f7),this['sourceElement']=_0x139b98,this['model']['document']['createRoot']();const _0x31ab5d=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x31ab5d);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5f0aee,_0xe09b8a){const _0x3f360e=new this(_0x5f0aee,_0xe09b8a);return await _0x3f360e['initPlugins'](),await _0x3f360e['ui']['init'](_0x5f0aee),await _0x3f360e['data']['init'](_0x3f360e['config']['get']('initialData')||''),_0x3f360e['fire']('ready'),_0x3f360e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x12191e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a8e89){function _0x2afeac(_0x559a59){return _0x559a59['map'](_0x503595=>String['fromCharCode'](_0x503595))['join']('');}super(_0x4a8e89),this['result']='end',_0x4a8e89[_0x2afeac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2afeac([0x76,0x69,0x65,0x77])][_0x2afeac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2afeac([0x61,0x75,0x74,0x6f]),_0x4a8e89[_0x2afeac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2afeac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2afeac([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2afeac([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2afeac([0x6f,0x6b])});}}class H extends _0x12191e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x23142c){if(super(_0x23142c),!this['editor']['config']['get']('revisionHistory'))throw new _0x2a222f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3f3c56=>this['_showRevisionViewer']({..._0x3f3c56,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x57bd8f=>this['_closeRevisionViewer'](_0x57bd8f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x35f1ec=>this['_restoreRevision'](_0x35f1ec)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1b62c7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1b62c7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x114bdb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x114bdb);}['getRevision'](_0x5be0b6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5be0b6);}['getRevisions'](_0x8d3c5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x8d3c5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x19663e=this['editor'],_0x59f5f4=_0x356ec2(_0x19663e,p),_0x441bde=_0x19663e['plugins']['get']('RevisionTracker'),_0x5615bb=_0x19663e['plugins']['get']('Users')['users'];return _0x59f5f4['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x59f5f4['lazyRoots'],(_0x59f5f4['plugins']['push'](k,d,m,class extends _0x12191e{static get['requires'](){return[d,'Users'];}['init'](){const _0x5dfa39=this['editor']['plugins']['get']('Users');for(const _0x47d9b8 of _0x5615bb)_0x47d9b8['isAnonymous']||_0x5dfa39['getUser'](_0x47d9b8['id'])||_0x5dfa39['addUser'](_0x47d9b8);const _0x5b2bf6=_0x441bde['repository']['getRevisions']();let _0x46fd9b=null;const _0x16080a=this['editor']['plugins']['get']('RevisionViewer');_0x16080a['adapter']=_0x441bde['adapter'],_0x16080a['bind']('isEnabled')['to'](_0x441bde),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x19663e,'isReadOnly',_0xbb90c0=>!_0xbb90c0);for(const _0x10ac0b of _0x5b2bf6){const _0x191172=null===_0x10ac0b['creator'];if(_0x191172&&_0x10ac0b['toVersion']===_0x10ac0b['fromVersion'])continue;const _0x3fe338=_0x10ac0b['toJSON']();_0x16080a['addRevisionData'](_0x3fe338,(_0x14b82b,_0x41f531,_0x527144)=>{if(_0x191172){if(_0x46fd9b)_0x46fd9b['_update'](_0x14b82b,_0x41f531);else{if(!_0x41f531){const _0x17fe40=_0x527144['toJSON']();_0x17fe40['id']=_0xa605c(),_0x441bde['saveRevision'](_0x17fe40,_0x527144['toVersion'])['then'](_0x579021=>{_0x46fd9b=_0x579021;});}}}else _0x10ac0b['_update'](_0x14b82b,_0x41f531);});}}},g),_0x59f5f4);}['_enhanceShowRevisionViewerCallback'](){const _0x37a1f6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1696cd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x51303d=this['editor']['plugins']['get']('Autosave');await _0x51303d['save']();}else await _0x1696cd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x6a9035=this['editor']['plugins']['get']('Dialog');_0x6a9035['isOpen']&&_0x6a9035['hide']();}const _0x4f2a65=this['_getRevisionViewerEditorConfig']();return _0x37a1f6(_0x4f2a65)['then'](_0x4b3f79=>{return(this['_viewerEditor']=_0x4b3f79,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4b3f79;})['catch'](_0x24df8d=>(console['error'](_0x24df8d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x207848=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x207848(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5f5e0b=this['editor']['plugins']['get']('Annotations');_0x5f5e0b['refreshVisibility'](),_0x5f5e0b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x37d9d9){const _0x252f73=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x42184b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5ba52a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5ba52a,_0x37d9d9)['then'](_0x14428b=>(_0x42184b['style']['display']='block',_0x252f73['style']['display']='none',_0x14428b));}['_closeRevisionViewer'](_0x2e06a5){const _0x2b9120=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2b9120['style']['display']='',_0x2e06a5['destroy']();}async['_restoreRevision'](_0x3bc44f){const _0x51a0fc=this['editor'],_0x457513=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3a7f82=_0x51a0fc['plugins']['get']('RevisionTracker'),_0x5af9ce=_0x457513['repository']['getRevision'](_0x3bc44f);let _0x1f4ca5,_0x3ae5f6,_0x4f2d01;try{_0x1f4ca5=await _0x457513['getRevisionData'](_0x5af9ce),_0x3ae5f6=await _0x457513['getRevisionRootsAttributes'](_0x5af9ce);}catch(_0x4c5311){return void console['error'](_0x4c5311);}_0x51a0fc['model']['change'](_0x21cc8e=>{for(const _0x2d2d47 of Array['from'](_0x51a0fc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x21cc8e['removeMarker'](_0x2d2d47);}),_0x457513['isReady']=!0x1,_0x51a0fc['model']['enqueueChange'](_0x32f427=>{_0x32f427['setSelection'](null),_0x32f427['removeSelectionAttribute'](_0x51a0fc['model']['document']['selection']['getAttributeKeys']());const _0x5112bb=Object['keys'](_0x1f4ca5);for(const _0x579651 of _0x51a0fc['model']['document']['roots'])'$graveyard'!=_0x579651['rootName']&&_0x579651['isAttached']()&&!_0x5112bb['includes'](_0x579651['rootName'])&&_0x32f427['detachRoot'](_0x579651);for(const _0x36f4a3 of _0x5112bb){let _0x4e6df1=_0x51a0fc['model']['document']['getRoot'](_0x36f4a3);_0x4e6df1&&_0x4e6df1['isAttached']()||(_0x4e6df1=_0x32f427['addRoot'](_0x36f4a3));const _0xdd8335=_0x3ae5f6[_0x36f4a3],_0x20b815=Object['keys'](_0xdd8335),_0x5497fb=_0x1f4ca5[_0x36f4a3];for(const _0x240627 of _0x4e6df1['getAttributeKeys']())_0x20b815['includes'](_0x240627)||_0x32f427['removeAttribute'](_0x240627,_0x4e6df1);for(const _0x505579 of _0x20b815)_0x32f427['setAttribute'](_0x505579,_0x3ae5f6[_0x36f4a3][_0x505579],_0x4e6df1);_0x32f427['remove'](_0x32f427['createRangeIn'](_0x4e6df1)),_0x32f427['insert'](_0x51a0fc['data']['parse'](_0x5497fb,_0x4e6df1),_0x4e6df1,0x0);}});const _0x58ee97=R(_0x51a0fc['locale'],'Restored');if(_0x5af9ce['name'])_0x4f2d01=-0x1==_0x5af9ce['name']['indexOf'](_0x58ee97)?_0x58ee97+':\x20'+_0x5af9ce['name']:_0x5af9ce['name'];else _0x4f2d01=_0x58ee97+':\x20'+(_0x5af9ce['createdAt']['toLocaleDateString'](_0x51a0fc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5af9ce['createdAt']['toLocaleTimeString'](_0x51a0fc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3a7f82['saveRevision']({'name':_0x4f2d01}),_0x457513['isReady']=!0x0,_0x51a0fc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x336148){super(_0x336148),this['_revisionViewer']=_0x336148['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x13c289=this['_revisionsRepository']['_revisions'],_0x565f1c=this['_createRevisionActions'](),_0x26de8f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x13c289,_0x565f1c,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',(_0x5f8104,_0x2074d8)=>{_0x2074d8['revisionViews']['on']('add',(_0x435194,_0x12108a)=>{_0x12108a['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)),_0x26de8f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x7e96a0=this['_revisionsRepository']['getRevision'](0x0);if(_0x7e96a0){const _0x54b2d4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x7e96a0['id']);this['_revisionViewer']['compare'](_0x7e96a0,_0x54b2d4);}}['_handleRevisionSelected'](_0x4c4f0c,_0x549900){const _0x2c2dda=this['_revisionsRepository']['getRevision'](_0x549900['id']),_0x1fd097=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2c2dda['id']);this['_revisionViewer']['compare'](_0x2c2dda,_0x1fd097);}['_handleRevisionSetName'](_0x3d9c13,_0x2269eb){this['_revisionsRepository']['getRevision'](_0x2269eb['id'])['setName'](_0x2269eb['name']);}['_handleDiffChange'](_0x37d5c7,_0x2f2d1c,_0x1a2569){const _0x2ec77e=this['_revisionsRepository']['getRevisionsInDiff'](_0x1a2569);_0x2ec77e['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2ec77e),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2ec77e[0x0]));}['_createRevisionActions'](){const _0x3f93fa=this['editor'],_0x26e2ff=g['availableRevisionActions'],_0x354dbe=_0x3f93fa['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x354dbe['length'])return _0x354dbe['map'](_0x541b9e=>{const _0x3f5a07='string'==typeof _0x541b9e?Object['assign']({},_0x26e2ff[_0x541b9e]):_0x541b9e;return _0x3f5a07['action']=_0x3f5a07['action']['bind'](this,_0x3f93fa),_0x3f5a07['isVisible']&&(_0x3f5a07['isVisible']=_0x3f5a07['isVisible']['bind'](this,_0x3f93fa)),_0x3f5a07;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2a0444},_0x3d7f18)=>{const _0xca5b7a=_0x2a0444['get'](d),_0xbe2e42=_0xca5b7a['repository'];let _0x1f70d2=_0xca5b7a['diff']['newRevisionId'],_0x57bfc4=_0x3d7f18['id'];_0xbe2e42['getIndex'](_0x1f70d2)>_0xbe2e42['getIndex'](_0x57bfc4)&&([_0x1f70d2,_0x57bfc4]=[_0x57bfc4,_0x1f70d2]),_0xca5b7a['compare'](_0x1f70d2,_0x57bfc4);},'isVisible':({plugins:_0x4c87cb},_0x4c71a7)=>{const _0x2228ab=_0x4c87cb['get'](d);return!(_0x2228ab['repository']['getRevisionsInDiff'](_0x2228ab['diff'])['length']>0x2)&&!_0x4c71a7['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1c7f42,{id:_0x75df7f})=>{_0x1c7f42['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x75df7f);},'isVisible':({plugins:_0x4d7c82},_0x1b1090)=>!!_0x4d7c82['get'](d)['repository']['getLaterVisibleRevision'](_0x1b1090['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3fd1a1},{id:_0x53efa8,revisionNameView:_0x139268})=>{const _0x57550b=_0x3fd1a1['get'](d),_0x44f3f1=_0x57550b['repository']['getEarlierVisibleRevision'](_0x53efa8);_0x57550b['compare'](_0x53efa8,_0x44f3f1),_0x139268['focus'](),_0x139268['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4204e7,_0x362790){super(_0x4204e7),this['_view']=_0x362790,this['_toolbarConfig']=ht(_0x4204e7['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0xe7da15){const _0x2d6bff=this['editor'],_0x337bb2=this['view'],_0x29e2a8=_0x2d6bff['editing']['view'],_0x58ad5c=_0x337bb2['editable'],_0xe085d4=_0x29e2a8['document']['getRoot']();_0x58ad5c['name']=_0xe085d4['rootName'],_0x337bb2['render']();const _0x2bb014=_0x58ad5c['element'];this['setEditableElement'](_0x58ad5c['name'],_0x2bb014),_0x337bb2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x29e2a8['attachDomRoot'](_0x2bb014),this['_elementReplacer']['replace'](_0xe7da15,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x20f29d=this['view'],_0x362ce5=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x362ce5['detachDomRoot'](_0x20f29d['editable']['name']),_0x20f29d['destroy']();}['_initToolbar'](){const _0x5a7049=this['view'];_0x5a7049['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5a7049['stickyPanel']['limiterElement']=_0x5a7049['element'],_0x5a7049['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x396fb0})=>_0x396fb0),_0x5a7049['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5a7049['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x46cc2f,_0x3eb771,_0x125c71={}){super(_0x46cc2f),this['stickyPanel']=new lt(_0x46cc2f),this['toolbar']=new nt(_0x46cc2f,{'shouldGroupWhenFull':_0x125c71['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x46cc2f,_0x3eb771);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2d56e2,_0x4fd962){super(_0x4fd962),this['sourceElement']=_0x2d56e2,this['model']['document']['createRoot']();const _0x57c04f=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x57c04f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x120bad,_0x10cd31){const _0x5deb1a=new this(_0x120bad,_0x10cd31);return await _0x5deb1a['initPlugins'](),await _0x5deb1a['ui']['init'](_0x120bad),await _0x5deb1a['data']['init'](_0x5deb1a['config']['get']('initialData')||''),_0x5deb1a['fire']('ready'),_0x5deb1a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5532dc{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bda3c){function _0x18d8ff(_0xcff6d3){return _0xcff6d3['map'](_0xce2c14=>String['fromCharCode'](_0xce2c14))['join']('');}super(_0x5bda3c),this['result']='end',_0x5bda3c[_0x18d8ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18d8ff([0x76,0x69,0x65,0x77])][_0x18d8ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18d8ff([0x61,0x75,0x74,0x6f]),_0x5bda3c[_0x18d8ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x18d8ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18d8ff([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x18d8ff([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x18d8ff([0x6f,0x6b])});}}class H extends _0x5532dc{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4a7a6f){if(super(_0x4a7a6f),!this['editor']['config']['get']('revisionHistory'))throw new _0x4e9461('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x38c0d7=>this['_showRevisionViewer']({..._0x38c0d7,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x13a2ea=>this['_closeRevisionViewer'](_0x13a2ea)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x468837=>this['_restoreRevision'](_0x468837)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x11ce74){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x11ce74;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3d5365){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3d5365);}['getRevision'](_0x14f3b2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x14f3b2);}['getRevisions'](_0x3a990c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3a990c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xacb56d=this['editor'],_0x1e3317=_0x281491(_0xacb56d,p),_0x47d072=_0xacb56d['plugins']['get']('RevisionTracker'),_0x44c463=_0xacb56d['plugins']['get']('Users')['users'];return _0x1e3317['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1e3317['lazyRoots'],(_0x1e3317['plugins']['push'](k,d,m,class extends _0x5532dc{static get['requires'](){return[d,'Users'];}['init'](){const _0x1eba69=this['editor']['plugins']['get']('Users');for(const _0x46f3a1 of _0x44c463)_0x46f3a1['isAnonymous']||_0x1eba69['getUser'](_0x46f3a1['id'])||_0x1eba69['addUser'](_0x46f3a1);const _0x5ddd68=_0x47d072['repository']['getRevisions']();let _0x874f10=null;const _0x21e7d1=this['editor']['plugins']['get']('RevisionViewer');_0x21e7d1['adapter']=_0x47d072['adapter'],_0x21e7d1['bind']('isEnabled')['to'](_0x47d072),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xacb56d,'isReadOnly',_0xa8e29c=>!_0xa8e29c);for(const _0x2769eb of _0x5ddd68){const _0xef0b89=null===_0x2769eb['creator'];if(_0xef0b89&&_0x2769eb['toVersion']===_0x2769eb['fromVersion'])continue;const _0x445b3f=_0x2769eb['toJSON']();_0x21e7d1['addRevisionData'](_0x445b3f,(_0xf4f84d,_0x2c9eea,_0x25a0a9)=>{if(_0xef0b89){if(_0x874f10)_0x874f10['_update'](_0xf4f84d,_0x2c9eea);else{if(!_0x2c9eea){const _0x3ac7b0=_0x25a0a9['toJSON']();_0x3ac7b0['id']=_0x13ea74(),_0x47d072['saveRevision'](_0x3ac7b0,_0x25a0a9['toVersion'])['then'](_0x395bde=>{_0x874f10=_0x395bde;});}}}else _0x2769eb['_update'](_0xf4f84d,_0x2c9eea);});}}},g),_0x1e3317);}['_enhanceShowRevisionViewerCallback'](){const _0x19f957=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x9a62e9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x12dddf=this['editor']['plugins']['get']('Autosave');await _0x12dddf['save']();}else await _0x9a62e9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1d159f=this['editor']['plugins']['get']('Dialog');_0x1d159f['isOpen']&&_0x1d159f['hide']();}const _0x19038c=this['_getRevisionViewerEditorConfig']();return _0x19f957(_0x19038c)['then'](_0x5bfa68=>{return(this['_viewerEditor']=_0x5bfa68,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5bfa68;})['catch'](_0x339a95=>(console['error'](_0x339a95),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xc2a53f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xc2a53f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x167490=this['editor']['plugins']['get']('Annotations');_0x167490['refreshVisibility'](),_0x167490['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4f0d5e){const _0xba4d03=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x44fb88=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x19833f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x19833f,_0x4f0d5e)['then'](_0x4c35b3=>(_0x44fb88['style']['display']='block',_0xba4d03['style']['display']='none',_0x4c35b3));}['_closeRevisionViewer'](_0x33fadf){const _0x29e52a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x29e52a['style']['display']='',_0x33fadf['destroy']();}async['_restoreRevision'](_0x4f9941){const _0x5f3b86=this['editor'],_0x4bac9f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3721c0=_0x5f3b86['plugins']['get']('RevisionTracker'),_0x18d993=_0x4bac9f['repository']['getRevision'](_0x4f9941);let _0x1d2fc2,_0x54bfcb,_0x53c849;try{_0x1d2fc2=await _0x4bac9f['getRevisionData'](_0x18d993),_0x54bfcb=await _0x4bac9f['getRevisionRootsAttributes'](_0x18d993);}catch(_0x2ffec6){return void console['error'](_0x2ffec6);}_0x5f3b86['model']['change'](_0x509591=>{for(const _0x10b9eb of Array['from'](_0x5f3b86['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x509591['removeMarker'](_0x10b9eb);}),_0x4bac9f['isReady']=!0x1,_0x5f3b86['model']['enqueueChange'](_0x5a2c4d=>{_0x5a2c4d['setSelection'](null),_0x5a2c4d['removeSelectionAttribute'](_0x5f3b86['model']['document']['selection']['getAttributeKeys']());const _0x439ce6=Object['keys'](_0x1d2fc2);for(const _0x3ce3ea of _0x5f3b86['model']['document']['roots'])'$graveyard'!=_0x3ce3ea['rootName']&&_0x3ce3ea['isAttached']()&&!_0x439ce6['includes'](_0x3ce3ea['rootName'])&&_0x5a2c4d['detachRoot'](_0x3ce3ea);for(const _0x53ec95 of _0x439ce6){let _0x38cc0e=_0x5f3b86['model']['document']['getRoot'](_0x53ec95);_0x38cc0e&&_0x38cc0e['isAttached']()||(_0x38cc0e=_0x5a2c4d['addRoot'](_0x53ec95));const _0xf807e3=_0x54bfcb[_0x53ec95],_0x16dc11=Object['keys'](_0xf807e3),_0x3ea7f8=_0x1d2fc2[_0x53ec95];for(const _0x37646b of _0x38cc0e['getAttributeKeys']())_0x16dc11['includes'](_0x37646b)||_0x5a2c4d['removeAttribute'](_0x37646b,_0x38cc0e);for(const _0x6d4456 of _0x16dc11)_0x5a2c4d['setAttribute'](_0x6d4456,_0x54bfcb[_0x53ec95][_0x6d4456],_0x38cc0e);_0x5a2c4d['remove'](_0x5a2c4d['createRangeIn'](_0x38cc0e)),_0x5a2c4d['insert'](_0x5f3b86['data']['parse'](_0x3ea7f8,_0x38cc0e),_0x38cc0e,0x0);}});const _0x542704=R(_0x5f3b86['locale'],'Restored');if(_0x18d993['name'])_0x53c849=-0x1==_0x18d993['name']['indexOf'](_0x542704)?_0x542704+':\x20'+_0x18d993['name']:_0x18d993['name'];else _0x53c849=_0x542704+':\x20'+(_0x18d993['createdAt']['toLocaleDateString'](_0x5f3b86['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x18d993['createdAt']['toLocaleTimeString'](_0x5f3b86['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3721c0['saveRevision']({'name':_0x53c849}),_0x4bac9f['isReady']=!0x0,_0x5f3b86['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|