@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250326.1 → 0.0.0-nightly-20250327.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +11 -11
- package/src/revisionsrepository.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x20a623(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3e69fd){super(),this['id']=_0x3e69fd['id']||_0x2b268f(),this['creator']=_0x3e69fd['creator']||null,this['authors']=_0x3e69fd['authors']||[],this['diffData']=_0x3e69fd['diffData']||null,this['toVersion']=_0x3e69fd['toVersion']||0x0,this['fromVersion']=_0x3e69fd['fromVersion']||0x0,this['set']('name',_0x3e69fd['name']||''),this['set']('createdAt',_0x3e69fd['createdAt']||new Date()),this['set']('attributes',_0x3e69fd['attributes']||{});}['setName'](_0x1bb04a){this['_update']({'name':_0x1bb04a});}['setAttribute'](_0x22515b,_0x4399e5){const _0x2d08e1=_0x33af60(this['attributes']);_0x1200d6(_0x2d08e1,_0x22515b,_0x4399e5),this['_update']({'attributes':_0x2d08e1});}['removeAttribute'](_0x278717){const _0x6b137=_0x33af60(this['attributes']);_0x4cd49e(_0x6b137,_0x278717),this['_update']({'attributes':_0x6b137});}['_update'](_0x931bfa,_0x450eec=!0x1){let _0x1894f3=!0x1;const _0x2805cf={'id':this['id']},_0x4b485e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x486d3f of _0x4b485e){const _0x16af09=_0x931bfa[_0x486d3f];void 0x0!==_0x16af09&&_0x16af09!==this[_0x486d3f]&&(this[_0x486d3f]=_0x16af09,_0x2805cf[_0x486d3f]=_0x16af09,_0x1894f3=!0x0);}_0x1894f3&&(_0x2805cf['authors']&&(_0x2805cf['authorsIds']=_0x2805cf['authors']['map'](_0x2b4705=>_0x2b4705['id']),delete _0x2805cf['authors']),this['fire']('_update',_0x2805cf,_0x450eec));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5c5f44=>_0x5c5f44['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x47e767{['_revisions'];static get['requires'](){return[_0x256dd3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4899ed){super(_0x4899ed),this['_revisions']=new _0x9c7c74();}['afterInit'](){!async function(_0xe7cc6b){const _0x30cb1e=_0x29b809([0x79,0x61,0x49,0x69,0x35,0x4c,0x64,0x58,0x37,0x4d,0x72,0x42,0x65,0x76,0x30,0x59,0x63,0x4f,0x33,0x32,0x70,0x71,0x41,0x77,0x47,0x75,0x31,0x6d,0x43,0x6a,0x66,0x39,0x73,0x50,0x4a,0x5a,0x6f,0x45,0x6c,0x74,0x54,0x4e,0x52,0x38,0x62,0x46,0x6e,0x67,0x7a,0x4b,0x34,0x57,0x48,0x55,0x36,0x44,0x78,0x68,0x56,0x6b,0x53,0x51]),_0x19012c=0xeb829,_0x1bf96a=0x7e147cd,_0x1fd40d=0x7e624f5^_0x1bf96a,_0x3df1a9=window[_0x29b809([0x44,0x61,0x74,0x65])][_0x29b809([0x6e,0x6f,0x77])](),_0x30d293=_0xe7cc6b[_0x29b809([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x412b38=new window[(_0x29b809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b2fd1=>{_0x30d293[_0x29b809([0x6f,0x6e,0x63,0x65])](_0x29b809([0x72,0x65,0x61,0x64,0x79]),_0x2b2fd1);}),_0x213de7={[_0x29b809([0x6b,0x74,0x79])]:_0x29b809([0x45,0x43]),[_0x29b809([0x75,0x73,0x65])]:_0x29b809([0x73,0x69,0x67]),[_0x29b809([0x63,0x72,0x76])]:_0x29b809([0x50,0x2d,0x32,0x35,0x36]),[_0x29b809([0x78])]:_0x29b809([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]),[_0x29b809([0x79])]:_0x29b809([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]),[_0x29b809([0x61,0x6c,0x67])]:_0x29b809([0x45,0x53,0x32,0x35,0x36])},_0x174ec1=_0x30d293[_0x29b809([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29b809([0x67,0x65,0x74])](_0x29b809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x458e0a(){let _0x123c34,_0x7c500f=null,_0x423f66=null;try{if(_0x174ec1==_0x29b809([0x47,0x50,0x4c]))return _0x29b809([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x123c34=_0x5d34f9(),!_0x123c34)return _0x29b809([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x123c34[_0x29b809([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x423f66=_0x5110e6(_0x123c34[_0x29b809([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x123c34[_0x29b809([0x6a,0x74,0x69])])),await _0x3e6847()?_0x2d0bae()?_0x33aef0()?_0x29b809([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e6293()?(_0x123c34[_0x29b809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29b809([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x7c500f=_0x1ebd48(_0x29b809([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x123c34[_0x29b809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29b809([0x74,0x72,0x69,0x61,0x6c])&&(_0x7c500f=_0x1ebd48(_0x29b809([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3391ea()):_0x29b809([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29b809([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29b809([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x43b710){return _0x29b809([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33aef0(){const _0x55d0db=[_0x29b809([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29b809([0x74,0x72,0x69,0x61,0x6c])][_0x29b809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123c34[_0x29b809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3df1a9/0x3e8:0xe10*_0x1fd40d;return _0x123c34[_0x29b809([0x65,0x78,0x70])]<_0x55d0db;}function _0x2d0bae(){const _0xac94b1=_0x123c34[_0x29b809([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xac94b1)return!0x1;if(_0xac94b1[_0x29b809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b809([0x2a])))return!0x0;if(_0xac94b1[_0x29b809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b809([0x52,0x48])))return!0x0;if(_0xac94b1[_0x29b809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b809([0x52,0x52,0x48]))){if(_0x3f3756())return!0x0;if(_0x3a801e()||_0x4c78bc())return!0x0;}return!0x1;}function _0x2e6293(){const _0x375dc2=_0x123c34[_0x29b809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x375dc2||0x0==_0x375dc2[_0x29b809([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ac722}=new URL(window[_0x29b809([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x375dc2[_0x29b809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ac722))return!0x0;const _0x1b0d4b=_0x5ac722[_0x29b809([0x73,0x70,0x6c,0x69,0x74])](_0x29b809([0x2e]));return _0x375dc2[_0x29b809([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e5d5d=>_0x5e5d5d[_0x29b809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b809([0x2a])))[_0x29b809([0x6d,0x61,0x70])](_0x25ce5f=>_0x25ce5f[_0x29b809([0x73,0x70,0x6c,0x69,0x74])](_0x29b809([0x2e])))[_0x29b809([0x73,0x6f,0x6d,0x65])](_0x473fb6=>_0x1b0d4b[_0x29b809([0x65,0x76,0x65,0x72,0x79])]((_0x583ba3,_0x1e76f0)=>_0x473fb6[_0x1e76f0]===_0x583ba3||_0x473fb6[_0x1e76f0]===_0x29b809([0x2a])));}function _0x3391ea(){return _0x7c500f&&_0x423f66?new window[(_0x29b809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x337139,_0x383411)=>{_0x7c500f[_0x29b809([0x74,0x68,0x65,0x6e])](_0x337139,_0x383411),_0x423f66[_0x29b809([0x74,0x68,0x65,0x6e])](_0x466a53=>{_0x466a53!=_0x29b809([0x56,0x61,0x6c,0x69,0x64])&&_0x337139(_0x466a53);},_0x383411);}):_0x7c500f||_0x423f66||_0x29b809([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5110e6(_0x428e4b,_0x1fb453){return new window[(_0x29b809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x157c6c=>{if(_0x835cef())return _0x157c6c(_0x29b809([0x56,0x61,0x6c,0x69,0x64]));_0x2b3767(),_0x30d293[_0x29b809([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29b809([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d053f=!0x1;const _0x5cbd24=_0x2b268f();function _0x20e9c5(_0x6ffc54){return!!_0x6ffc54&&(typeof _0x6ffc54===_0x29b809([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6ffc54===_0x29b809([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6ffc54[_0x29b809([0x74,0x68,0x65,0x6e])]===_0x29b809([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6ffc54[_0x29b809([0x63,0x61,0x74,0x63,0x68])]===_0x29b809([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28b774(_0x141a5f){_0x4beaa2(_0x141a5f)[_0x29b809([0x74,0x68,0x65,0x6e])](_0x56e201=>{if(!_0x56e201||_0x56e201[_0x29b809([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29b809([0x6f,0x6b]))return _0x29b809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31206d(_0x4161d6(_0x5cbd24+_0x1fb453))!=_0x56e201[_0x29b809([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29b809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29b809([0x56,0x61,0x6c,0x69,0x64]);})[_0x29b809([0x74,0x68,0x65,0x6e])](_0x46cce4=>(_0x3df3b3(),_0x46cce4),()=>{const _0x3bf561=_0x29fc59();return null==_0x3bf561?(_0x3df3b3(),_0x29b809([0x56,0x61,0x6c,0x69,0x64])):_0x29b809(_0x3df1a9-_0x3bf561>(0x23edc3cd^_0x1bf96a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29b809([0x74,0x68,0x65,0x6e])](_0x157c6c)[_0x29b809([0x63,0x61,0x74,0x63,0x68])](()=>{_0x157c6c(_0x29b809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27ad95=0x7d7a94d^_0x1bf96a;function _0x3df3b3(){const _0x4e5ffe=_0x29b809([0x6c,0x6c,0x63,0x74,0x2d])+_0x31206d(_0x4161d6(_0x428e4b)),_0x3e16a1=_0x294dd2(_0x31206d(window[_0x29b809([0x4d,0x61,0x74,0x68])][_0x29b809([0x63,0x65,0x69,0x6c])](_0x3df1a9/_0x27ad95)));window[_0x29b809([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b809([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e5ffe,_0x3e16a1);}function _0x29fc59(){const _0x34e507=_0x29b809([0x6c,0x6c,0x63,0x74,0x2d])+_0x31206d(_0x4161d6(_0x428e4b)),_0xe93202=window[_0x29b809([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b809([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34e507);return _0xe93202?window[_0x29b809([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x294dd2(_0xe93202),0x10)*_0x27ad95:null;}function _0x4beaa2(_0x221a05){return new window[(_0x29b809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20b8d9,_0x20af7b)=>{_0x221a05[_0x29b809([0x74,0x68,0x65,0x6e])](_0x20b8d9,_0x20af7b),window[_0x29b809([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20af7b,0x7e0930d^_0x1bf96a);});}}_0x30d293[_0x29b809([0x6f,0x6e])](_0x29b809([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3348b2,_0x195929)=>{if(_0x195929[0x0]!=_0x428e4b)return _0x157c6c(_0x29b809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x195929[0x1]={..._0x195929[0x1],[_0x29b809([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5cbd24};},{[_0x29b809([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b809([0x68,0x69,0x67,0x68])}),_0x30d293[_0x29b809([0x6f,0x6e])](_0x29b809([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b88e7=>{_0x20e9c5(_0x4b88e7[_0x29b809([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d053f=!0x0,_0x28b774(_0x4b88e7[_0x29b809([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29b809([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b809([0x6c,0x6f,0x77])}),_0x412b38[_0x29b809([0x74,0x68,0x65,0x6e])](()=>{_0x5d053f||_0x157c6c(_0x29b809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x835cef(){return _0x30d293[_0x29b809([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b809([0x76,0x69,0x65,0x77])][_0x29b809([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29b809([0x61,0x75,0x74,0x6f]);}function _0x2b3767(){_0x30d293[_0x29b809([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b809([0x76,0x69,0x65,0x77])][_0x29b809([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29b809([0x61,0x75,0x74,0x6f]);}}function _0x1ebd48(_0xbf1385){const _0x4e64e4=[new window[(_0x29b809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x540307=>setTimeout(_0x540307,0x7e87901^_0x1bf96a)),_0x412b38[_0x29b809([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29b809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x450e13=>{const _0x1a82d2=0x7e147ca^_0x1bf96a,_0x35668d=_0xe7cc6b[_0x29b809([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5de763(){_0x35668d[_0x29b809([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1a82d2&&_0x450e13();}_0x5de763(),_0x35668d[_0x29b809([0x6f,0x6e])](_0x29b809([0x61,0x64,0x64]),_0x5de763);})),new window[(_0x29b809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8002b1=>{function _0x3ea209(){for(const _0x562eb8 in window)if(window[_0x29b809([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x29b809([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x562eb8))&&window[_0x562eb8]==_0x19012c)return _0x8002b1();_0x30d293[_0x29b809([0x73,0x74,0x61,0x74,0x65])]!=_0x29b809([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x29b809([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ea209,0x7e15445^_0x1bf96a);}_0x4cad9e(_0x29b809([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3ea209();})];return window[_0x29b809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29b809([0x72,0x61,0x63,0x65])](_0x4e64e4)[_0x29b809([0x74,0x68,0x65,0x6e])](()=>_0xbf1385);}async function _0x5d5df1(){if(await _0x412b38,_0x4cad9e(_0x29b809([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x598456=_0xe7cc6b[_0x29b809([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x315ca5=_0xe7cc6b[_0x29b809([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])](_0x598456[_0x29b809([0x69,0x64])]),_0x1dfcd2=_0x4d01a5(_0x29b809([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1dfcd2[_0x29b809([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x598456['id'],_0x315ca5?_0x315ca5['id']:null,!0x0),_0x1dfcd2[_0x29b809([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x29b809([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1dfcd2[_0x29b809([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1dfcd2[_0x29b809([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x966b2a,void(_0x1dfcd2[_0x29b809([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x966b2a);}if(_0x4cad9e(_0x29b809([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x214779=_0x4d01a5(_0x29b809([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x214779[_0x29b809([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x29b809([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x214779[_0x29b809([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x214779[_0x29b809([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x966b2a,_0x214779[_0x29b809([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x966b2a;}_0x30d293[_0x29b809([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b809([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x966b2a,_0x30d293[_0x29b809([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b809([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x966b2a,_0x30d293[_0x29b809([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29b809([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f3756(){return _0x4cad9e(_0x29b809([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d01a5(_0x29b809([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29b809([0x73,0x74,0x61,0x74,0x65])]==_0x29b809([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3a801e(){return _0x4cad9e(_0x29b809([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4c78bc(){return _0x4cad9e(_0x29b809([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xd99b26(_0x545664){const _0x504444=_0x51f5f3();_0x30d293[_0x504444]=_0x29b809([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])+_0x545664,_0x545664[_0x29b809([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x29b809([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x51f5f3()]=_0x19012c),_0x545664!=_0x29b809([0x56,0x61,0x6c,0x69,0x64])&&_0x5d5df1();}function _0x51f5f3(){const _0x22e0d0=window[_0x29b809([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29b809([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29b809([0x6e,0x6f,0x77])]())[_0x29b809([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29b809([0x2e]),'');let _0x18797e=_0x29b809([0x79]);for(let _0xb58238=0x0;_0xb58238<_0x22e0d0[_0x29b809([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb58238+=0x2){let _0x2221f2=window[_0x29b809([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e0d0[_0x29b809([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb58238,_0xb58238+0x2));_0x2221f2>=_0x30cb1e[_0x29b809([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2221f2-=_0x30cb1e[_0x29b809([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18797e+=_0x30cb1e[_0x2221f2];}return _0x18797e;}function _0x5d34f9(){const _0x2fd984=_0x174ec1[_0x29b809([0x73,0x70,0x6c,0x69,0x74])](_0x29b809([0x2e]));if(0x3!=_0x2fd984[_0x29b809([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x215d78(_0x2fd984[0x1]);function _0x215d78(_0x31c142){const _0x699186=_0x3ab9f4(_0x31c142);return _0x699186&&_0xfbf74()?_0x699186:null;function _0xfbf74(){const _0x406f34=_0x699186[_0x29b809([0x6a,0x74,0x69])],_0xcfc2ac=window[_0x29b809([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x406f34[_0x29b809([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x406f34[_0x29b809([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a981a={..._0x699186,[_0x29b809([0x6a,0x74,0x69])]:_0x406f34[_0x29b809([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x406f34[_0x29b809([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a981a[_0x29b809([0x76,0x63])],_0x4161d6(_0x2a981a)==_0xcfc2ac;}}}async function _0x3e6847(){let _0x5608eb=!0x0;try{const _0x327d36=_0x174ec1[_0x29b809([0x73,0x70,0x6c,0x69,0x74])](_0x29b809([0x2e])),[_0x1e8e31,_0xb71447,_0x4813ec]=_0x327d36;return _0x264d3f(_0x1e8e31),await _0x1a29da(_0x1e8e31,_0xb71447,_0x4813ec),_0x5608eb;}catch(_0x491c34){return!0x1;}function _0x264d3f(_0x138c50){const _0x2017d3=_0x3ab9f4(_0x138c50);_0x2017d3&&_0x2017d3[_0x29b809([0x61,0x6c,0x67])]==_0x29b809([0x45,0x53,0x32,0x35,0x36])||(_0x5608eb=!0x1);}async function _0x1a29da(_0x4b789b,_0x4679f5,_0x31a3c2){const _0x5a646d=window[_0x29b809([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29b809([0x66,0x72,0x6f,0x6d])](_0x1eca9d(_0x31a3c2),_0x2fa12e=>_0x2fa12e[_0x29b809([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e4aca=new window[(_0x29b809([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29b809([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b789b+_0x29b809([0x2e])+_0x4679f5),_0x519936=window[_0x29b809([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29b809([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x519936)return;const _0x855bc4=await _0x519936[_0x29b809([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29b809([0x6a,0x77,0x6b]),_0x213de7,{[_0x29b809([0x6e,0x61,0x6d,0x65])]:_0x29b809([0x45,0x43,0x44,0x53,0x41]),[_0x29b809([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29b809([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29b809([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x519936[_0x29b809([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29b809([0x6e,0x61,0x6d,0x65])]:_0x29b809([0x45,0x43,0x44,0x53,0x41]),[_0x29b809([0x68,0x61,0x73,0x68])]:{[_0x29b809([0x6e,0x61,0x6d,0x65])]:_0x29b809([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x855bc4,_0x5a646d,_0x3e4aca)||(_0x5608eb=!0x1);}}function _0x3ab9f4(_0xdabdbb){return _0xdabdbb[_0x29b809([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29b809([0x65,0x79]))?JSON[_0x29b809([0x70,0x61,0x72,0x73,0x65])](_0x1eca9d(_0xdabdbb)):null;}function _0x1eca9d(_0x2ad9ee){return window[_0x29b809([0x61,0x74,0x6f,0x62])](_0x2ad9ee[_0x29b809([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29b809([0x2b]))[_0x29b809([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29b809([0x2f])));}function _0x4161d6(_0x285ce4){let _0x10553d=0x1505;function _0x1c0f4e(_0x39b1b1){for(let _0x506203=0x0;_0x506203<_0x39b1b1[_0x29b809([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x506203++){const _0x310d0a=_0x39b1b1[_0x29b809([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x506203);_0x10553d=(_0x10553d<<0x5)+_0x10553d+_0x310d0a,_0x10553d&=_0x10553d;}}function _0x8813c0(_0x235868){Array[_0x29b809([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x235868)?_0x235868[_0x29b809([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8813c0):_0x235868&&typeof _0x235868==_0x29b809([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29b809([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x235868)[_0x29b809([0x73,0x6f,0x72,0x74])]()[_0x29b809([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17cbca,_0x1a40d2])=>{_0x1c0f4e(_0x17cbca),_0x8813c0(_0x1a40d2);}):_0x1c0f4e(window[_0x29b809([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x235868));}return _0x8813c0(_0x285ce4),_0x10553d>>>0x0;}function _0x31206d(_0x14053d){return _0x14053d[_0x29b809([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29b809([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29b809([0x30]));}function _0x294dd2(_0x2f06ef){return _0x2f06ef[_0x29b809([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29b809([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29b809([0x6a,0x6f,0x69,0x6e])]('');}function _0x4cad9e(_0x3e1a73){return _0x30d293[_0x29b809([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29b809([0x68,0x61,0x73])](_0x3e1a73);}function _0x4d01a5(_0x16c00e){return _0x30d293[_0x29b809([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29b809([0x67,0x65,0x74])](_0x16c00e);}function _0x966b2a(){}function _0x29b809(_0x2a7fe0){return _0x2a7fe0['map'](_0x25cce9=>String['fromCharCode'](_0x25cce9))['join']('');}_0xd99b26(await _0x458e0a());}(this);}['createRevision'](_0x24247d){const _0x1df011=this['editor']['plugins']['get']('Users');return new h({'id':_0x24247d['id'],'name':_0x24247d['name'],'creator':_0x24247d['creatorId']?_0x1df011['getUser'](_0x24247d['creatorId']):null,'diffData':_0x24247d['diffData']||_0x24247d['data'],'authors':_0x24247d['authorsIds']['map'](_0x51528b=>_0x1df011['getUser'](_0x51528b)),'createdAt':new Date(_0x24247d['createdAt']),'attributes':_0x24247d['attributes'],'fromVersion':_0x24247d['fromVersion'],'toVersion':_0x24247d['toVersion']});}['addRevision'](_0x7cf9ab,_0x54120e=0x0){this['_revisions']['add'](_0x7cf9ab,_0x54120e);}['getRevision'](_0x39f330){return this['_revisions']['get'](_0x39f330);}['getRevisions'](_0x5d851c={'toJSON':!0x1}){const _0x2d01f6=Array['from'](this['_revisions']);return _0x2d01f6['reverse'](),_0x5d851c['toJSON']?_0x2d01f6['map'](_0x44f10d=>_0x44f10d['toJSON']()):_0x2d01f6;}['getIndex'](_0xca25a5){return this['_revisions']['getIndex'](_0xca25a5);}['getEarlierVisibleRevision'](_0x2b6b44){const [,_0x325ad9]=this['getRevisionsIterator'](_0x2b6b44,{'direction':'earlier'});return _0x325ad9;}['getLaterVisibleRevision'](_0x1bb16f){const [,_0x44e83a]=this['getRevisionsIterator'](_0x1bb16f,{'direction':'later'});return _0x44e83a;}['getRevisionsInDiff'](_0x334d42){const _0x4c9aee=[];for(const _0x362a7d of this['getRevisionsIterator'](_0x334d42['newRevisionId']))if(_0x4c9aee['push'](_0x362a7d),_0x362a7d['id']===_0x334d42['oldRevisionId'])break;return _0x4c9aee;}*['getRevisionsIterator'](_0x341a24,{direction:_0x2a6e3d='earlier',filter:_0xe1dd7b=()=>!0x0}={}){const _0x297887='earlier'===_0x2a6e3d?0x1:-0x1;let _0x58732d=this['_revisions']['get'](_0x341a24),_0x18e897=this['getIndex'](_0x58732d);for(yield _0x58732d;_0x58732d;){if(_0x18e897+=_0x297887,_0x58732d=this['getRevision'](_0x18e897),!_0x58732d)return;_0xe1dd7b(_0x58732d)&&(yield _0x58732d);}}}class V extends _0x47e767{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x326d77,'c'],[_0x5ad368,'a'],[_0x1867f7,'e'],[_0x599f9f,'r'],[_0x3c8ee0,'u']]);['_typeCharToViewClass']=new Map([['c',_0x326d77],['a',_0x5ad368],['e',_0x1867f7],['r',_0x599f9f],['u',_0x3c8ee0]]);async['loadRevisionData'](_0x32f4cc,_0x70ee56){if(_0x32f4cc['diffData']||!_0x70ee56)return;const _0x2ec7e0=this['editor']['config']['get']('collaboration.channelId'),_0x2bdf05=await _0x70ee56['getRevision']({'channelId':_0x2ec7e0,'revisionId':_0x32f4cc['id']});_0x32f4cc['diffData']=_0x2bdf05['diffData'];}['getRevisionDocumentData'](_0x1a864e){const _0x43bf26={};for(const _0x286113 in _0x1a864e['diffData']){if(_0x1a864e['diffData'][_0x286113]['attachChange']&&!_0x1a864e['diffData'][_0x286113]['attachChange']['isAttached'])continue;const _0x3dfdc2=this['_removeRevisionMarkers'](JSON['parse'](_0x1a864e['diffData'][_0x286113]['insertions'])),_0x24a356=this['editor']['editing']['view']['document'],_0x337dd0=new _0x5c89a1(_0x24a356,_0x3dfdc2['map'](_0x5a3141=>this['_getViewFromDiffObj'](_0x5a3141,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x43bf26[_0x286113]=this['editor']['data']['processor']['toData'](_0x337dd0),this['editor']['data']['processor']['useFillerType']('default');}return _0x43bf26;}['getRevisionRootsAttributes'](_0x38f612){const _0x5cf4ea={};for(const _0x1c5f82 in _0x38f612['diffData'])_0x38f612['diffData'][_0x1c5f82]['attachChange']&&!_0x38f612['diffData'][_0x1c5f82]['attachChange']['isAttached']||(_0x5cf4ea[_0x1c5f82]=_0x38f612['diffData'][_0x1c5f82]['attributesAfter']||{});return _0x5cf4ea;}['_getTypeCharForViewElement'](_0x5e1fc9){return this['_viewClassToTypeChar']['get'](_0x5e1fc9['constructor']);}['_getViewFromDiffObj'](_0xf2ecc5,_0xa37849){const _0x1a6d18=this['editor']['editing']['view']['document'];if('string'==typeof _0xf2ecc5)return new _0x4661ee(_0x1a6d18,_0xf2ecc5);{let _0x38dfa9,_0xefc015;_0xefc015='u'==_0xf2ecc5['type']||'r'==_0xf2ecc5['type']?[]:_0xf2ecc5['children']['map'](_0x24c461=>this['_getViewFromDiffObj'](_0x24c461,_0xa37849));const _0x5138df=this['_typeCharToViewClass']['get'](_0xf2ecc5['type'])||_0x4fde63,_0x5eeac4=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x38dfa9=new _0x5138df(_0x1a6d18,_0xf2ecc5['name'],_0xf2ecc5['attributes'],_0xefc015),'u'==_0xf2ecc5['type']){const _0x551ac3=_0xf2ecc5['children'][0x0];if(_0x38dfa9['render']=function(_0x8e4adb){const _0x24ae10=_0x8e4adb['createElement']('div');return _0x24ae10['innerHTML']=_0x551ac3,_0x24ae10['childNodes'][0x0];},_0xa37849){const _0x120894=new _0x5c89a1(_0x1a6d18);_0x120894['_appendChild'](_0x38dfa9);const _0x337e2d=Array['from'](_0x5eeac4['viewChildrenToDom'](_0x120894,{'bind':!0x1})),_0x3c77c5=_0x5eeac4['domDocument']['createElement']('div');_0x3c77c5['append'](..._0x337e2d),_0x38dfa9=Array['from'](_0x5eeac4['domChildrenToView'](_0x3c77c5))[0x0];}}else{if('r'==_0xf2ecc5['type']){const _0x2db81c=_0xf2ecc5['children'][0x0];if(_0x38dfa9['render']=function(_0xf4326c){_0xf4326c['innerHTML']=_0x2db81c;},_0xa37849){const _0x3fc43=new _0x5c89a1(_0x1a6d18);_0x3fc43['_appendChild'](_0x38dfa9);const _0x1dfc44=Array['from'](_0x5eeac4['viewChildrenToDom'](_0x3fc43,{'bind':!0x1})),_0x4ff7b1=_0x5eeac4['domDocument']['createElement']('div');_0x4ff7b1['append'](..._0x1dfc44);const _0x1191b3=Array['from'](_0x5eeac4['domChildrenToView'](_0x4ff7b1));_0x1191b3['length']>0x1?_0x38dfa9['_appendChild'](_0x1191b3):_0x38dfa9=_0x1191b3[0x0];}}}if(_0xf2ecc5['customProperties']){for(const [_0x277703,_0x40beb3]of _0xf2ecc5['customProperties'])_0x38dfa9['_setCustomProperty'](_0x277703,_0x40beb3);}const _0x47e844=_0xf2ecc5['fillerOffset']||null;return _0x38dfa9['getFillerOffset']=()=>_0x47e844,_0x38dfa9;}}['_makeModelFromViewString'](_0x2c8749){const _0x209077=JSON['parse'](_0x2c8749),_0x2ec9af=this['editor']['editing']['view']['document'],_0x1f974d=new _0x5c89a1(_0x2ec9af,_0x209077['map'](_0x7d56c1=>this['_getViewFromDiffObj'](_0x7d56c1,!0x0)));return this['editor']['data']['toModel'](_0x1f974d);}['_removeRevisionMarkers'](_0x3a362e){return(_0x3a362e=_0x3a362e['filter'](_0x4f499f=>!_0x4f499f['name']||'revision-start'!==_0x4f499f['name']&&'revision-end'!==_0x4f499f['name']))['forEach'](_0xa3d710=>{'string'!=typeof _0xa3d710&&(_0xa3d710['children']=this['_removeRevisionMarkers'](_0xa3d710['children']),_0xa3d710['attributes']=_0xa3d710['attributes']['filter'](_0xa79ab0=>!_0xa79ab0[0x0]['startsWith']('data-revision-')));}),_0x3a362e;}}function g(_0x874c7a,_0x2c8199,_0x429e74){const t=_0x874c7a['t'];switch(_0x2c8199){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'},_0x429e74);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x429e74);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x47e767{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x256dd3,I,V,_0x426b0f];}constructor(_0x240dd5){super(_0x240dd5),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x29fea3=_0x2b268f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x29fea3},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xf4bd34=this['repository']['getRevision'](0x0),_0x18aea8=_0xf4bd34&&null===_0xf4bd34['creator']?_0xf4bd34:null;if(this['_continueCurrentRevision']=!!_0x18aea8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5905fc=this['_source']['getCurrentRevisionId'](),_0x5e739d=this['repository']['getRevision'](_0x5905fc);if(_0x5e739d)this['_startingVersion']=_0x5e739d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x35a8c6=this['_source']['history']['_operations']['find'](_0x24eb02=>!_0x24eb02['_isInit']),_0x4e5d93=_0x35a8c6?_0x35a8c6['baseVersion']:this['_source']['history']['version'];_0xf4bd34?(_0xf4bd34['toVersion']<_0x4e5d93&&_0xf4bd34['_update']({'toVersion':_0x4e5d93}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x18aea8['id'],this['_startingVersion']=_0x18aea8['fromVersion']):(this['_startingVersion']=_0xf4bd34['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4e5d93,this['_continueCurrentRevision']=!0x1);}}else _0x18aea8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x18aea8['toVersion'],this['editor']['model']['document']['history']['version']),_0x18aea8['fromVersion']===_0x18aea8['toVersion']?(0x0!==_0x18aea8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x18aea8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x18aea8['id'],this['_startingVersion']=_0x18aea8['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',_0x13c529=>!_0x13c529),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x49e040=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a4e2e;for(const _0x46364e in _0x49e040){const _0x2a8ba5=_0x46364e,_0x1cd723=_0x49e040[_0x2a8ba5];if('revisionHistoryLicenseKeyValid'==_0x1cd723||'revisionHistoryLicenseKeyInvalid'==_0x1cd723||'revisionHistoryLicenseKeyExpired'==_0x1cd723||'revisionHistoryLicenseKeyDomainLimit'==_0x1cd723||'revisionHistoryLicenseKeyNotAllowed'==_0x1cd723||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1cd723||'revisionHistoryLicenseKeyTrialLimit'==_0x1cd723||'revisionHistoryLicenseKeyUsageLimit'==_0x1cd723){delete _0x49e040[_0x2a8ba5],_0x5a4e2e=_0x1cd723,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5a4e2e&&_0x49e040['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5a4e2e&&_0x49e040['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5a4e2e&&_0x49e040['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5a4e2e&&_0x49e040['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5a4e2e&&_0x49e040['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5a4e2e&&_0x49e040['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5a4e2e&&_0x49e040['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5afdb9=this['repository']['getRevision'](0x0),_0x24d6dd=await this['getRevisionDocumentData'](_0x5afdb9),_0x2c4e0a=await this['getRevisionRootsAttributes'](_0x5afdb9);this['_replaceEditorDataWithRevisionData'](_0x24d6dd,_0x2c4e0a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3cffbd){this['_source']=_0x3cffbd;}async['update'](){const _0x2e54a2=await this['_source']['getLatestVersion']();if(_0x2e54a2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2c81c9=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2e54a2});_0x2c81c9['authors']=_0x2c81c9['authorsIds']['map'](_0x426b1a=>this['editor']['plugins']['get']('Users')['getUser'](_0x426b1a)),this['currentRevision']['_update'](_0x2c81c9);}}async['saveRevision'](_0x64dfa8={},_0xec045c=null){const _0x373734=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xec045c>this['currentRevision']['toVersion']&&(_0xec045c=null),null===_0xec045c&&(_0xec045c=await this['_source']['getLatestVersion']());const _0x1718ff=this['_getFromVersion'](_0xec045c),_0x30a4ba=this['buildRevisionData']({'from':_0x1718ff,'to':_0xec045c});if(this['currentRevision']['toVersion']<_0xec045c){const _0x3022de=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xec045c,'to':_0xec045c});_0x3022de['authors']=[],_0x3022de['authorsIds']=[],_0x3022de['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3022de,!0x0),delete _0x3022de['authors'],_0x373734['push'](_0x3022de);}_0x64dfa8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x64dfa8['name']=_0x64dfa8['name']||null,_0x64dfa8['id']=_0x64dfa8['id']||_0x2b268f(),_0x64dfa8={..._0x64dfa8,..._0x30a4ba};const _0x27d149=this['addRevisionData'](_0x64dfa8);_0x373734['push'](_0x64dfa8);const _0x653792=this['repository']['getIndex'](_0x27d149);if(0x0!==_0x653792){const _0x5ec71c=this['repository']['getRevision'](_0x653792-0x1);if(_0x5ec71c['fromVersion']!==_0xec045c){const _0x31d1e2=this['_revisionDataBuilder']['getData'](_0xec045c,_0x5ec71c['toVersion']),_0x1404d2={'id':_0x5ec71c['id'],'diffData':_0x31d1e2['diffData'],'authorsIds':_0x31d1e2['authorsIds'],'authors':_0x31d1e2['authorsIds']['map'](_0x9cfed8=>this['editor']['plugins']['get']('Users')['getUser'](_0x9cfed8)),'fromVersion':_0xec045c};_0x5ec71c===this['currentRevision']&&(_0x1404d2['createdAt']=new Date(_0x64dfa8['createdAt']['getTime']()+0xa)),_0x5ec71c['_update'](_0x1404d2,!0x0),delete _0x1404d2['authors'],_0x373734['push'](_0x1404d2);}}if(this['adapter']){for(const _0x2b433c of _0x373734)this['_bufferUpdate'](_0x2b433c['id'],_0x2b433c,!0x0);this['sendBufferedUpdates']();}return _0x27d149;}['addRevisionData'](_0x5d1047){const _0x38ff7c=this['repository']['createRevision'](_0x5d1047);return this['adapter']&&_0x38ff7c['on']('_update',(_0x1f536a,_0x5c3f9f,_0x1f8a21)=>{_0x1f8a21||(this['_bufferUpdate'](_0x5c3f9f['id'],_0x5c3f9f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x38ff7c,this['_findInsertionIndex'](_0x38ff7c)),_0x38ff7c;}async['getRevisionDocumentData'](_0x3d248c){return await this['_utils']['loadRevisionData'](_0x3d248c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3d248c);}async['getRevisionRootsAttributes'](_0x1f2136){return await this['_utils']['loadRevisionData'](_0x1f2136,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1f2136);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x42d52e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1521f7=0x0;_0x1521f7<_0x42d52e['length'];_0x1521f7++){const _0x38074c=_0x42d52e[_0x1521f7];let _0xac2bf4=!0x1;for(const _0x4c93ca of Object['keys'](_0x38074c))void 0x0===_0x38074c[_0x4c93ca]?delete _0x38074c[_0x4c93ca]:'id'!==_0x4c93ca&&(_0xac2bf4=!0x0);_0xac2bf4||(_0x42d52e[_0x1521f7]=null);}if(_0x42d52e=_0x42d52e['filter'](_0x3f0b94=>null!==_0x3f0b94),!_0x42d52e['length'])return;for(let _0x226bad=0x0;_0x226bad<_0x42d52e['length'];_0x226bad++){const _0x1d92bb=_0x42d52e[_0x226bad];void 0x0!==_0x1d92bb['fromVersion']&&void 0x0===_0x1d92bb['toVersion']&&(_0x1d92bb['toVersion']=this['repository']['getRevision'](_0x1d92bb['id'])['toVersion']),void 0x0!==_0x1d92bb['toVersion']&&void 0x0===_0x1d92bb['fromVersion']&&(_0x1d92bb['fromVersion']=this['repository']['getRevision'](_0x1d92bb['id'])['fromVersion']);}const _0x30006f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x42d52e,_0x30006f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3d4cff=>{if(_0x3d4cff){for(const _0x32ebc9 of _0x3d4cff)this['setRevisionData']({'id':_0x32ebc9['id'],'createdAt':_0x32ebc9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x961944=null,from:_0x561c6e=null,to:_0x5b784f=null}){_0x561c6e=null!==_0x561c6e?_0x561c6e:_0x961944['fromVersion'],_0x5b784f=null!==_0x5b784f?_0x5b784f:_0x961944['toVersion'];const _0x29c7ee=this['_revisionDataBuilder']['getData'](_0x561c6e,_0x5b784f),_0x37f938={'diffData':_0x29c7ee['diffData'],'authorsIds':_0x29c7ee['authorsIds'],'fromVersion':_0x561c6e,'toVersion':_0x5b784f};if(!_0x961944||_0x5b784f!==_0x961944['toVersion']){const _0x4bf3a4=_0x5b784f-0x1,_0x2c5f85=this['_source']['history']['getOperation'](_0x4bf3a4);_0x37f938['createdAt']=_0x2c5f85&&_0x2c5f85['createdAt']||new Date();}if(this['_loadedStateData']&&_0x561c6e===this['_loadedStateData']['fromVersion']){for(const _0xad2d30 of this['_loadedStateData']['authors'])_0x37f938['authorsIds']['includes'](_0xad2d30['id'])||_0x37f938['authorsIds']['push'](_0xad2d30['id']);}return _0x37f938;}['_bufferUpdate'](_0x17ef49,_0x4c701d,_0x90324a){if(this['_bufferedUpdates']['has'](_0x17ef49)){const _0x350ff2=this['_bufferedUpdates']['get'](_0x17ef49);_0x4c701d=_0x90324a?{..._0x350ff2,..._0x4c701d}:{..._0x4c701d,..._0x350ff2};}this['_bufferedUpdates']['set'](_0x17ef49,_0x4c701d);}['setRevisionData'](_0x49d8bb){const _0x3b9f6a=this['repository']['getRevision'](_0x49d8bb['id']);if(_0x49d8bb['createdAt']&&(_0x49d8bb['createdAt']=new Date(_0x49d8bb['createdAt'])),_0x49d8bb['authorsIds']){const _0x2eaa12=this['editor']['plugins']['get']('Users');_0x49d8bb['authors']=_0x49d8bb['authorsIds']['map'](_0x4da740=>_0x2eaa12['getUser'](_0x4da740));}_0x3b9f6a['_update'](_0x49d8bb,!0x0);}['_createInitialRevision'](_0x452257){const _0x5dae28=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5dae28)this['_initialRevisionId']=_0x5dae28['id'];else{const _0x1545d4=!this['editor']['model']['document']['roots']['find'](_0x833847=>this['editor']['model']['hasContent'](_0x833847)),_0x30671d=this['editor']['plugins']['get']('Users')['me']['id'],_0x42a5b1=g(this['editor']['locale'],_0x1545d4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x452257,'to':_0x452257,'id':this['_initialRevisionId'],'name':_0x42a5b1,'creatorId':_0x30671d});}}['_createCurrentRevision'](_0x4cdf12){const _0x3987dc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3987dc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4cdf12,'to':_0x4cdf12,'id':_0x3987dc,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x28735e,_0x5983f5){let _0x3d60ad=this['editor']['config']['get']('initialData'),_0x1b6a92=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3d60ad){_0x3d60ad={};for(const _0x48b3fc of this['editor']['model']['document']['getRootNames']())_0x3d60ad[_0x48b3fc]='';}if('string'==typeof _0x3d60ad&&(_0x3d60ad={'main':_0x3d60ad}),void 0x0===_0x1b6a92){_0x1b6a92={};for(const _0x35b772 of this['editor']['model']['document']['getRootNames']())_0x1b6a92[_0x35b772]={};}let _0x356280=!0x1;const _0x2a37e0=Object['keys'](_0x3d60ad),_0x5f114e=Object['keys'](_0x28735e);for(const _0x162cbd of _0x2a37e0){if(_0x3d60ad[_0x162cbd]!==_0x28735e[_0x162cbd]&&''!==_0x3d60ad[_0x162cbd]['trim']()){_0x356280=!0x0;break;}if(!_0x161578(_0x1b6a92[_0x162cbd],_0x5983f5[_0x162cbd])&&Object['keys'](_0x1b6a92[_0x162cbd])['length']>0x0){_0x356280=!0x0;break;}}_0x356280||(_0x356280=_0x5f114e['some'](_0x336770=>!this['editor']['model']['document']['getRoot'](_0x336770))),_0x356280&&_0x2a30e3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3d60ad,'editorRootsAttributes':_0x1b6a92,'revisionData':_0x28735e,'revisionRootsAttributes':_0x5983f5}),this['editor']['config']['set']('initialData',_0x28735e),this['editor']['config']['set']('rootsAttributes',_0x5983f5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24573e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24573e['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x16c55a){const _0x4d933f=this['repository']['getRevisions']();_0x4d933f['reverse']();let _0x31e4a4=0x0;for(;_0x31e4a4<_0x4d933f['length'];){const _0xb9b3a1=_0x4d933f[_0x31e4a4];if(_0xb9b3a1===this['currentRevision']){_0x31e4a4++;continue;}if(_0xb9b3a1['id']===this['_initialRevisionId'])break;const _0x125df0=_0x16c55a['toVersion']-_0xb9b3a1['toVersion']||_0x16c55a['fromVersion']-_0xb9b3a1['fromVersion'];if(_0x125df0>0x0)break;if(_0x125df0<0x0)_0x31e4a4++;else{if(!_0x16c55a['creator']&&_0xb9b3a1['creator'])break;if(_0xb9b3a1['creator']||!_0x16c55a['creator']){if(_0x16c55a['createdAt']>_0xb9b3a1['createdAt'])break;_0x31e4a4++;}else _0x31e4a4++;}}return _0x31e4a4;}['_getFromVersion'](_0x1ee045){const _0x156460=this['repository']['getRevisions']();_0x156460['reverse'](),_0x156460['shift']();const _0x5449be=_0x156460['find'](_0x33b47d=>_0x33b47d['toVersion']<=_0x1ee045)['toVersion'];return _0x5449be<this['_startingVersion']?this['_startingVersion']:_0x5449be;}['_makeRevision']({name:_0x596d09,from:_0x4e0473,to:_0x3cdf6a,creatorId:_0x3bda6b,id:_0x285126}){const _0x46b322=this['buildRevisionData']({'from':_0x4e0473,'to':_0x3cdf6a});_0x46b322['name']=_0x596d09,_0x46b322['creatorId']=_0x3bda6b,_0x46b322['id']=_0x285126;const _0x31b4ad=this['addRevisionData'](_0x46b322);return this['adapter']&&this['_bufferUpdate'](_0x46b322['id'],_0x46b322,!0x0),_0x31b4ad;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x29ce0b){this['editor']=_0x29ce0b,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'](_0x2fa666){this['source']=_0x2fa666;const _0x666ce9=new Map(),_0x25657c=new Map(),_0x2abb57=this['editor']['model']['document']['roots']['map'](_0x7108a8=>_0x7108a8['rootName']);for(const _0x193380 of _0x2abb57){const _0x373a01=this['editor']['model']['document']['getRoot'](_0x193380),_0xc0e6ef=N(_0x373a01);_0x666ce9['set'](_0x193380,_0xc0e6ef),_0x25657c['set'](_0x193380,Object['fromEntries'](_0x373a01['getAttributes']()));}const _0x5c5169=Array['from'](this['editor']['model']['markers'])['map'](_0x496a37=>[_0x496a37['name'],_0x496a37['getRange']()]),_0x1cb0f7=this['source']['version'];this['_saveMetaData'](_0x1cb0f7,_0x666ce9,_0x5c5169,_0x25657c),this['_startingRevisionId']=this['_revisionId'];const _0x3cfe23=new Map(),_0x14c89e=new Map();for(const _0xf51caa of _0x2abb57){const _0x28690f=P(_0xf51caa);_0x3cfe23['set'](_0xf51caa,_0x28690f),_0x14c89e['set'](_0xf51caa,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3cfe23,[],_0x14c89e);}['getData'](_0x5c1f1c,_0x320cc5){if(this['_lastFrom']===_0x5c1f1c&&this['_lastTo']<=_0x320cc5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x320cc5,!0x0);else{if(!this['_savedMetaData']['has'](_0x5c1f1c)){const _0x5b267b=this['_getPreviousFrom'](_0x5c1f1c);this['_calculateMetaData'](_0x5b267b,_0x5c1f1c,!0x1);}this['_calculateMetaData'](_0x5c1f1c,_0x320cc5,!0x0);}return this['_lastFrom']=_0x5c1f1c,this['_lastTo']=_0x320cc5,this['_getState']();}['loadState'](_0x2936d8){const _0x44afa3=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2936d8['fromVersion'],this['_lastTo']=_0x2936d8['toVersion'];for(const _0x50ac9f in _0x2936d8['diffData']){const _0x47ab2c=_0x2936d8['diffData'][_0x50ac9f]['attachChange'],_0x163c5b=_0x33af60(_0x2936d8['diffData'][_0x50ac9f]['attributesBefore'])||{},_0x9b63d4=_0x44afa3['_makeModelFromViewString'](_0x2936d8['diffData'][_0x50ac9f]['deletions']);_0x9b63d4['rootName']=_0x50ac9f,_0x9b63d4['_isAttached']=!_0x47ab2c||!_0x47ab2c['isAttached'],_0x9b63d4['isAttached']=()=>_0x9b63d4['_isAttached'],this['_baseRoots']['set'](_0x50ac9f,_0x9b63d4),this['_baseRootsAttributes']['set'](_0x50ac9f,_0x163c5b),_0x47ab2c&&this['_touchedRoots']['set'](_0x50ac9f,_0x47ab2c);const _0x3d0a3b=this['_makeIdsRoot'](_0x9b63d4);this['_baseIdsRoots']['set'](_0x50ac9f,_0x3d0a3b);for(const [_0x23e058,_0x6bcbd2]of _0x9b63d4['markers']){if(!_0x23e058['startsWith']('revision:'))continue;const _0x5ae89b=_0x23e058['split'](':')[0x2];for(const _0x11331e of _0x6bcbd2['getWalker']({'singleCharacters':!0x0})){const _0x3d7fdf=this['_getVidAttributeName'](_0x11331e),_0x2c9021='elementEnd'==_0x11331e['type']?_0x11331e['previousPosition']['path']['slice'](0x0,-0x1):_0x11331e['previousPosition']['path'],_0x116f9b=_0x3d0a3b['getNodeByPath'](_0x2c9021)['getAttribute'](_0x3d7fdf);this['_touched']['set'](_0x116f9b,{'userId':_0x5ae89b});}}}this['_startingRevisionId']=this['_revisionId'];const _0xc9d45a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x298782=>!this['_touched']['has'](_0x298782));let _0x107f54=0x0;const _0x4f1d08=new Map();for(const _0x468810 in _0x2936d8['diffData']){const _0x50925c=_0x2936d8['diffData'][_0x468810]['attachChange'],_0x457d01=_0x33af60(_0x2936d8['diffData'][_0x468810]['attributesAfter'])||{},_0xec62d5=_0x44afa3['_makeModelFromViewString'](_0x2936d8['diffData'][_0x468810]['insertions']);_0xec62d5['rootName']=_0x468810,_0xec62d5['_isAttached']=!_0x50925c||_0x50925c['isAttached'],_0xec62d5['isAttached']=()=>_0xec62d5['_isAttached'],this['_diffRoots']['set'](_0x468810,_0xec62d5),this['_diffRootsAttributes']['set'](_0x468810,_0x457d01);const _0x5424ce=this['_makeIdsRoot'](_0xec62d5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x468810,_0x5424ce),_0x4f1d08['set'](_0x468810,_0xec62d5['isAttached']()?_0x457d01:{});for(const [_0x1549c4,_0x27e8af]of _0xec62d5['markers']){if(!_0x1549c4['startsWith']('revision:'))continue;const _0x6d938d=_0x1549c4['split'](':')[0x2];for(const _0xf19041 of _0x27e8af['getWalker']({'singleCharacters':!0x0})){const _0x419e1d=this['_getVidAttributeName'](_0xf19041),_0x3d523f=this['_revisionId']++,_0x1ac073='elementEnd'==_0xf19041['type']?_0xf19041['previousPosition']['path']['slice'](0x0,-0x1):_0xf19041['previousPosition']['path'];_0x5424ce['getNodeByPath'](_0x1ac073)['_setAttribute'](_0x419e1d,_0x3d523f),this['_touched']['set'](_0x3d523f,{'userId':_0x6d938d});}}for(const _0xf4f8c9 of this['editor']['model']['createRangeIn'](_0xec62d5)['getWalker']({'singleCharacters':!0x0})){const _0x601665=this['_getVidAttributeName'](_0xf4f8c9),_0x50b47d='elementEnd'==_0xf4f8c9['type']?_0xf4f8c9['previousPosition']['path']['slice'](0x0,-0x1):_0xf4f8c9['previousPosition']['path'],_0x2b32c5=_0x5424ce['getNodeByPath'](_0x50b47d);_0x2b32c5['getAttribute'](_0x601665)>0x0||_0x2b32c5['_setAttribute'](_0x601665,_0xc9d45a[_0x107f54++]);}for(const [_0x566feb,_0x164afe]of _0xec62d5['markers'])_0x566feb['startsWith']('revision:')||this['_markers']['set'](_0x566feb,_0x164afe);}const _0x89a4bb=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x89a4bb),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x89a4bb,0x1));const _0x21f905=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x21f905),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x21f905,0x1));const _0xc7f7f2=Array['from'](this['_diffRoots'])['map'](([_0x36f384,_0x16dcd4])=>[_0x36f384,N(_0x16dcd4)]);this['_saveMetaData'](this['_lastTo'],_0xc7f7f2,this['_markers'],_0x4f1d08);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2841bf,_0x5c152d,_0x38b0b3,_0x4a98f4){const _0x5cfcf2=new Map(_0x5c152d),_0x5978e2=new Map(_0x33af60(_0x4a98f4)),_0x216680=new Map();for(const [_0x15a784,_0xdd1554]of _0x38b0b3)_0x216680['set'](_0x15a784,{'start':_0xdd1554['start']['clone'](),'end':_0xdd1554['end']['clone'](),'rootName':_0xdd1554['root']['rootName']});this['_savedMetaData']['set'](_0x2841bf,{'roots':_0x5cfcf2,'markers':_0x216680,'rootsAttributes':_0x5978e2});}['_removeMetaData'](_0xd2c787){this['_savedMetaData']['delete'](_0xd2c787);}['_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'](_0x44fff2,_0x1f8bd8=null){let _0x4636f5=null;_0x44fff2['is']('documentFragment')||(_0x4636f5=new ut(_0x44fff2['name'],{'vid_start':null===_0x1f8bd8?this['_revisionId']++:_0x1f8bd8++}));const _0x5ceffb=[];for(const _0x1767bc of _0x44fff2['getChildren']())if(_0x1767bc['is']('element')){_0x5ceffb['push'](this['_makeIdsRoot'](_0x1767bc,_0x1f8bd8));const _0x226efb=_0x5ceffb[_0x5ceffb['length']-0x1];null!==_0x1f8bd8&&(_0x1f8bd8=_0x226efb['is']('element','$text')?_0x226efb['getAttribute']('vid')+0x1:_0x226efb['getAttribute']('vid_end')+0x1);}else{for(let _0x3c86b2=0x0;_0x3c86b2<_0x1767bc['offsetSize'];_0x3c86b2++)_0x5ceffb['push'](new ut('$text',{'vid':null===_0x1f8bd8?this['_revisionId']++:_0x1f8bd8++}));}if(_0x44fff2['is']('documentFragment')){const _0x4f7f6b=P(_0x44fff2['rootName']);return _0x4f7f6b['_insertChild'](0x0,_0x5ceffb),_0x4f7f6b;}return _0x4636f5['_setAttribute']('vid_end',null===_0x1f8bd8?this['_revisionId']++:_0x1f8bd8++),_0x4636f5['_insertChild'](0x0,_0x5ceffb),_0x4636f5;}['_calculateMetaData'](_0x1a35a9,_0x186927,_0x2f9247){this['_reset']();const {roots:_0x33736f,markers:_0x52aa92,rootsAttributes:_0x80d067}=this['_savedMetaData']['get'](_0x1a35a9);this['_baseRoots']=new Map(_0x33736f),this['_baseRootsAttributes']=new Map(_0x33af60(_0x80d067));for(const [_0x27742b,_0x129877]of this['_baseRoots'])if('$graveyard'!==_0x27742b&&(this['_diffRoots']['set'](_0x27742b,N(_0x129877)),this['_diffRootsAttributes']=new Map(_0x33af60(_0x80d067)),_0x2f9247)){const _0x58eb5d=this['_revisionId'];this['_idsRoots']['set'](_0x27742b,this['_makeIdsRoot'](_0x129877)),this['_baseIdsRoots']['set'](_0x27742b,this['_makeIdsRoot'](_0x129877,_0x58eb5d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x2f9247&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x206726,_0x939ac]of _0x52aa92){const _0x1bea2d=this['_baseRoots']['get'](_0x939ac['rootName']),_0x32fcc1=this['_diffRoots']['get'](_0x939ac['rootName']),_0xd70d74=new lt(this['_fixPosition'](_0x939ac['start'],_0x1bea2d),this['_fixPosition'](_0x939ac['end'],_0x1bea2d)),_0x47f19e=this['_fixRange'](_0xd70d74,_0x32fcc1);_0x1bea2d['markers']['set'](_0x206726,_0xd70d74),this['_markers']['set'](_0x206726,_0x47f19e);}this['_applyOperations'](_0x1a35a9,_0x186927,_0x2f9247);}['_applyOperations'](_0x10bc02,_0x819915,_0x4531f3){for(const _0x2464dc of this['source']['getOperations'](_0x10bc02,_0x819915))this['_handleOperation'](_0x2464dc,_0x4531f3);for(const _0x2bd2f6 of this['_diffRoots']['values']())_0x2bd2f6['markers']['clear']();for(const [_0x24833c,_0x4d497f]of this['_markers']){this['_diffRoots']['get'](_0x4d497f['root']['rootName'])['markers']['set'](_0x24833c,_0x4d497f['clone']());}const _0x714f80=new Map(),_0x292660=new Map();for(const [_0x1caf8e,_0x331760]of this['_diffRoots'])_0x714f80['set'](_0x1caf8e,N(_0x331760)),_0x292660['set'](_0x1caf8e,this['_diffRootsAttributes']['get'](_0x1caf8e));this['_saveMetaData'](_0x819915,_0x714f80,this['_markers'],_0x292660);}['_getPreviousFrom'](_0x207957){const _0x32c564=Array['from'](this['_savedMetaData']['keys']());_0x32c564['sort']((_0x52a2f1,_0x3ab4b8)=>_0x52a2f1-_0x3ab4b8),_0x32c564['reverse']();for(const _0x1fdc42 of _0x32c564)if(_0x1fdc42<_0x207957)return _0x1fdc42;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3f3e56,_0x39845a){const _0x48bb56=Array['from'](_0x39845a['markers'])['map'](([_0x342e99,_0x3d2f41])=>[_0x342e99,this['_fixRange'](_0x3d2f41,_0x3f3e56)]);_0x3f3e56['markers']=new Map(_0x48bb56);}['_transformMarkers'](_0xb0eb28){for(const _0x463d67 of this['_markers']['values']()){const _0xaf1b4c=_0x463d67['getTransformedByOperation'](_0xb0eb28),_0x39ac45=lt['_createFromRanges'](_0xaf1b4c);_0x463d67['start']=_0x39ac45['start'],_0x463d67['end']=_0x39ac45['end'];}}['_handleOperation'](_0xfe79d4,_0xbfe48a){if('addRoot'!=_0xfe79d4['type']&&'detachRoot'!=_0xfe79d4['type']){if('insert'==_0xfe79d4['type']){const _0x181906=_0xfe79d4['position']['root']['rootName'];this['_diffRoots']['has'](_0x181906)||(this['_diffRoots']['set'](_0x181906,P(_0x181906,!0x0)),this['_diffRootsAttributes']['set'](_0x181906,{}),_0xbfe48a&&this['_idsRoots']['set'](_0x181906,P(_0x181906,!0x0)));}else{if('addRootAttribute'==_0xfe79d4['type']||'removeRootAttribute'==_0xfe79d4['type']||'changeRootAttribute'==_0xfe79d4['type'])return void this['_handleRootAttributeOperation'](_0xfe79d4);'marker'==_0xfe79d4['type']&&this['_handleMarkerOperation'](_0xfe79d4);}if('marker'!==_0xfe79d4['type']){const _0xf7394a=this['_cloneOperation'](_0xfe79d4,this['_diffRoots']);_0xf7394a['_execute'](),this['_transformMarkers'](_0xf7394a);}if(_0xbfe48a)switch(_0xfe79d4['type']){case'insert':this['_handleInsertOperation'](_0xfe79d4);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xfe79d4);break;case'merge':this['_handleMergeOperation'](_0xfe79d4);break;case'split':this['_handleSplitOperation'](_0xfe79d4);}}else this['_handleRootOperation'](_0xfe79d4,_0xbfe48a);}['_cloneOperation'](_0x5457ea,_0x5b07d0){const _0x4a9aa6=_0x5457ea['clone']();return _0x4a9aa6['_authorId']=_0x5457ea['_authorId'],this['_fixOperation'](_0x4a9aa6,_0x5b07d0),_0x4a9aa6;}['_getBaseVids'](_0x499e10){return _0x499e10['map'](_0x40ed65=>{const _0x3c8181=this['_getVidAttributeName'](_0x40ed65);return Number(_0x40ed65['item']['getAttribute'](_0x3c8181));});}['_generateTape'](_0x43bccf,_0x444380){if(_0x43bccf['is']('element','$text'))_0x444380['push']({'item':_0x43bccf,'type':'text'});else{_0x43bccf['is']('element')&&_0x444380['push']({'item':_0x43bccf,'type':'elementStart'});for(const _0x4f69c4 of _0x43bccf['getChildren']())this['_generateTape'](_0x4f69c4,_0x444380);_0x43bccf['is']('element')&&_0x444380['push']({'item':_0x43bccf,'type':'elementEnd'});}return _0x444380;}['_getState'](){const _0x1c32f7=new Map(this['_touched']),_0x4253c0=new Map(_0x1c32f7),_0x4b381a=new Map(),_0x209f6d={'insertions':{},'deletions':{}},_0x468c3e={'insertions':{},'deletions':{}},_0x3561ff=new Map(),_0x4de637=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4de637['delete']('$graveyard');for(const _0x5907df of _0x4de637){const _0x17583d=this['_diffRoots']['get'](_0x5907df)||P(_0x5907df,!0x1),_0x2fed30=this['_baseRoots']['get'](_0x5907df)||P(_0x5907df,!0x1);_0x17583d['isAttached']()||_0x2fed30['isAttached']()?(_0x209f6d['insertions'][_0x5907df]=N(_0x17583d),_0x209f6d['deletions'][_0x5907df]=N(_0x2fed30),this['_copyMarkers'](_0x209f6d['deletions'][_0x5907df],_0x2fed30),this['_copyMarkers'](_0x209f6d['insertions'][_0x5907df],_0x17583d),_0x468c3e['insertions'][_0x5907df]=this['_generateTape'](this['_idsRoots']['get'](_0x5907df),[]),_0x468c3e['deletions'][_0x5907df]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5907df)||P(_0x5907df,!0x1),[])):_0x4de637['delete'](_0x5907df);}for(const _0x4b4635 of _0x4de637){const _0x591106=_0x468c3e['insertions'][_0x4b4635];for(const _0x3db898 of _0x591106){const _0x38de13=this['_getVidAttributeName'](_0x3db898),_0x234042=_0x3db898['item']['getAttribute'](_0x38de13);_0x4253c0['delete'](_0x234042),_0x234042>=this['_startingRevisionId']&&_0x4b381a['set'](_0x234042,_0x1c32f7['get'](_0x234042));}}for(const _0x3741c2 of _0x4de637){const _0x2e7a36=_0x468c3e['insertions'][_0x3741c2],_0x50fe5f=this['_getBaseVids'](_0x468c3e['deletions'][_0x3741c2]);let _0x487407=0x0;for(const _0x3ed28c of _0x2e7a36){const _0xaa320f=this['_getVidAttributeName'](_0x3ed28c),_0x31328a=_0x3ed28c['item']['getAttribute'](_0xaa320f);if(!_0x4b381a['has'](_0x31328a)&&!_0x3561ff['has'](_0x31328a)){if(_0x4253c0['has'](_0x31328a))_0x487407++;else{if(_0x31328a!=_0x50fe5f[_0x487407]){const _0x3a08f2=_0x1c32f7['get'](_0x31328a)||_0x1c32f7['get'](_0x50fe5f[_0x487407]);for(;_0x31328a!=_0x50fe5f[_0x487407];)_0x4253c0['has'](_0x50fe5f[_0x487407])||(_0x3561ff['set'](_0x50fe5f[_0x487407],_0x3a08f2),_0x1c32f7['set'](_0x50fe5f[_0x487407],_0x3a08f2)),_0x487407++;}_0x487407++;}}}}for(const _0x19cb86 of _0x4de637){const _0x5026d6=_0x468c3e['insertions'][_0x19cb86];for(const _0x45fd76 of _0x5026d6){const _0x645b0a=this['_getVidAttributeName'](_0x45fd76),_0x176761=_0x45fd76['item']['getAttribute'](_0x645b0a);if(_0x3561ff['has'](_0x176761)){const _0x5046ff=_0x3561ff['get'](_0x176761);_0x4253c0['has'](_0x176761)||_0x4253c0['set'](_0x176761,{..._0x5046ff}),_0x4b381a['set'](_0x176761,{..._0x5046ff});}}}for(const _0x4590ea of _0x4253c0['keys']())_0x4590ea>=this['_startingRevisionId']&&_0x4253c0['delete'](_0x4590ea);const _0x1a9501=new Map();for(const _0x57809d of _0x4de637){let _0x2637f8=_0x468c3e['insertions'][_0x57809d];for(const _0x3c330c of _0x2637f8)if(_0x3c330c['item']['is']('element','tableCell')){const _0x7efde2=this['_getVidAttributeName'](_0x3c330c),_0x17aab6=_0x3c330c['item']['getAttribute'](_0x7efde2);if(_0x4b381a['has'](_0x17aab6)){const _0x55834e=_0x3c330c['item']['parent']['parent']['getAttribute']('vid_start'),_0x23a55a=_0x1a9501['get'](_0x55834e)||new Set();_0x23a55a['add'](_0x4b381a['get'](_0x17aab6)['userId']),_0x1a9501['set'](_0x55834e,_0x23a55a);}}_0x2637f8=_0x468c3e['deletions'][_0x57809d];for(const _0x4ddb99 of _0x2637f8)if(_0x4ddb99['item']['is']('element','tableCell')){const _0x1bb162=this['_getVidAttributeName'](_0x4ddb99),_0xd9256=_0x4ddb99['item']['getAttribute'](_0x1bb162);if(_0x4253c0['has'](_0xd9256)){const _0x1d1371=_0x4ddb99['item']['parent']['parent']['getAttribute']('vid_start'),_0x5902c6=_0x1a9501['get'](_0x1d1371)||new Set();_0x5902c6['add'](_0x4253c0['get'](_0xd9256)['userId']),_0x1a9501['set'](_0x1d1371,_0x5902c6);}}for(const _0x579ea9 of _0x1a9501['keys']())(_0x4b381a['has'](_0x579ea9)||_0x4253c0['has'](_0x579ea9))&&_0x1a9501['delete'](_0x579ea9);}for(const _0x1ef23d of _0x4de637){const _0x33d3bf=_0x468c3e['insertions'][_0x1ef23d];let _0x2655a6=null,_0x4f4622=null;for(const _0x478f0d of _0x33d3bf){const _0x2969b8=this['_getVidAttributeName'](_0x478f0d),_0x43d5ca=_0x478f0d['item']['getAttribute'](_0x2969b8),_0x550a88=_0x1a9501['get'](_0x43d5ca);_0x550a88&&'elementStart'==_0x478f0d['type']&&(_0x2655a6=Array['from'](_0x550a88)[0x0],_0x4f4622=_0x478f0d['item']['getAttribute']('vid_end')),_0x2655a6&&(_0x4253c0['set'](_0x43d5ca,{'userId':_0x2655a6}),_0x4b381a['set'](_0x43d5ca,{'userId':_0x2655a6})),_0x43d5ca==_0x4f4622&&(_0x2655a6=null,_0x4f4622=null);}}const _0x59d052={},_0x22582a=new Set();for(const _0x233feb of _0x4de637){const _0x13a51b=_0x209f6d['deletions'][_0x233feb],_0x544f46=_0x209f6d['insertions'][_0x233feb];for(const {userId:_0x15e4ec}of this['_touchedMarkers']['values']())null!==_0x15e4ec&&_0x22582a['add'](_0x15e4ec);for(const {userId:_0x10f7e3}of this['_touchedRoots']['values']())null!==_0x10f7e3&&_0x22582a['add'](_0x10f7e3);this['_markChanges'](_0x544f46,_0x468c3e['insertions'][_0x233feb],_0x4b381a,'insertion',_0x22582a),this['_markChanges'](_0x13a51b,_0x468c3e['deletions'][_0x233feb],_0x4253c0,'deletion',_0x22582a),_0x59d052[_0x233feb]={'insertions':this['_prepareViewToSave'](_0x544f46),'deletions':this['_prepareViewToSave'](_0x13a51b),'attachChange':this['_touchedRoots']['get'](_0x233feb)||null,'attributesBefore':_0x33af60(this['_baseRootsAttributes']['get'](_0x233feb))||{},'attributesAfter':_0x33af60(this['_diffRootsAttributes']['get'](_0x233feb))};}return{'diffData':_0x59d052,'authorsIds':Array['from'](_0x22582a)};}['_processRootBeforeSave'](_0x488574){for(const [,_0x1b9a4c]of _0x488574['markers']){const _0x58c4da=_0x1b9a4c['start']['getAncestors']()['filter'](_0x47110c=>'tableCell'==_0x47110c['name']);for(const _0x353194 of _0x58c4da)0x1==_0x353194['childCount']&&_0x353194['getChild'](0x0)['is']('element','paragraph')&&_0x353194['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x356acb){this['_processRootBeforeSave'](_0x356acb);const _0x226eff=this['editor']['data']['toView'](_0x356acb,{}),_0x1e4a3a=Array['from'](_0x226eff['getChildren']())['map'](_0x1776c3=>this['_getViewJson'](_0x1776c3));return JSON['stringify'](_0x1e4a3a);}['_getViewJson'](_0x4fce7d){if(_0x4fce7d['is']('$text'))return _0x4fce7d['data'];{const _0x536062=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xeb5206=_0x4fce7d,_0x556b95=this['editor']['data']['htmlProcessor']['domConverter'],_0x4ee295={'type':_0x536062['_getTypeCharForViewElement'](_0xeb5206),'name':_0xeb5206['name'],'attributes':Array['from'](_0xeb5206['getAttributes']()),'children':Array['from'](_0xeb5206['getChildren']())['map'](_0x229250=>this['_getViewJson'](_0x229250))};if(_0x4fce7d['is']('uiElement')&&'$comment'!=_0x4fce7d['name']){const _0x50354e=_0x4fce7d['render'](_0x556b95['domDocument'],_0x556b95);_0x4ee295['children']['push'](_0x50354e['outerHTML']);}else{if(_0x4fce7d['is']('rawElement')){const _0xd44661=_0x556b95['domDocument']['createElement'](_0xeb5206['name']);_0x4fce7d['render'](_0xd44661,_0x556b95),_0x4ee295['children']['push'](_0xd44661['innerHTML']);}}const _0x566082=Array['from'](_0xeb5206['getCustomProperties']());_0x566082['length']>0x0&&(_0x4ee295['customProperties']=_0x566082);const _0x41db7b=_0xeb5206['getFillerOffset']();return null!==_0x41db7b&&(_0x4ee295['fillerOffset']=_0x41db7b),_0x4ee295;}}['_markChanges'](_0x5e5d1a,_0x2d2561,_0x2da2c4,_0x1de468,_0x4336e1){let _0x1379ce=null,_0x566949=null,_0x116c94=0x0;const _0x4be0d2=this['editor']['model'];for(let _0x5a5e07=0x0;_0x5a5e07<_0x2d2561['length'];_0x5a5e07++){const _0x4c7d2b=this['_getVidAttributeName'](_0x2d2561[_0x5a5e07]),_0x1d4050=_0x2d2561[_0x5a5e07]['item']['getAttribute'](_0x4c7d2b),_0x3c668e=_0x2da2c4['get'](_0x1d4050),_0x17e19c=_0x5a5e07==_0x2d2561['length']-0x1;(!_0x1379ce&&_0x3c668e&&(_0x1379ce=_0x3c668e,_0x566949=_0x2d2561[_0x5a5e07]),_0x1379ce&&(!_0x3c668e||_0x3c668e['userId']!=_0x1379ce['userId']))&&(_0x4590a5(_0x3c668e,F(_0x566949,_0x5e5d1a,_0x4be0d2),F(_0x2d2561[_0x5a5e07],_0x5e5d1a,_0x4be0d2)),_0x1379ce=_0x3c668e||null,_0x566949=_0x3c668e?_0x2d2561[_0x5a5e07]:null),_0x1379ce&&_0x17e19c&&_0x4590a5(_0x3c668e,F(_0x566949,_0x5e5d1a,_0x4be0d2),B(_0x2d2561[_0x5a5e07],_0x5e5d1a,_0x4be0d2));}function _0x4590a5(_0x1baadf,_0x2437e9,_0x1071b4){const _0x3445f2=_0x1379ce['userId'],_0x5aee1f='revision:'+_0x1de468+':'+_0x3445f2+':'+_0x116c94++,_0x175d52=_0x4be0d2['createRange'](_0x2437e9,_0x1071b4);_0x5e5d1a['markers']['set'](_0x5aee1f,_0x175d52),null!==_0x3445f2&&_0x4336e1['add'](_0x3445f2);}}['_getVidAttributeName'](_0x2e9db8){switch(_0x2e9db8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x26f5a9,_0x3d7189){_0x26f5a9['baseVersion']=null;for(const _0x8d4a71 in _0x26f5a9){const _0x56619b=_0x26f5a9[_0x8d4a71];if(_0x56619b instanceof ft){const _0x1ea5ec=_0x3d7189['get'](_0x56619b['root']['rootName']);_0x26f5a9[_0x8d4a71]=this['_fixPosition'](_0x56619b,_0x1ea5ec);}if(_0x56619b instanceof lt){const _0x1b8b4d=_0x3d7189['get'](_0x56619b['root']['rootName']);_0x26f5a9[_0x8d4a71]=this['_fixRange'](_0x56619b,_0x1b8b4d);}'root'===_0x8d4a71&&(_0x26f5a9['root']=_0x3d7189['get'](_0x26f5a9['root']['rootName']));}}['_fixRange'](_0x1c86b3,_0x5bc094){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1c86b3['start'],_0x5bc094),this['_fixPosition'](_0x1c86b3['end'],_0x5bc094));}['_fixPosition'](_0x43e4a9,_0x4d8c6f){return this['editor']['model']['createPositionFromPath'](_0x4d8c6f,_0x43e4a9['path'],_0x43e4a9['stickiness']);}['_handleInsertOperation'](_0x5b27ab){const _0x66f9de=this['_idsRoots']['get'](_0x5b27ab['position']['root']['rootName']),_0x318734=this['_fixPosition'](_0x5b27ab['position'],_0x66f9de),_0x4dfa43=null===_0x5b27ab['_authorId']?null:_0x5b27ab['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x335056=_0x318734['parent'],_0xbb71a3=this['_revisionId'],_0x44eef3=[];for(const _0x227b87 of _0x5b27ab['nodes'])if(_0x227b87['is']('element'))_0x44eef3['push'](this['_makeIdsRoot'](_0x227b87));else{for(let _0x16f24f=0x0;_0x16f24f<_0x227b87['offsetSize'];_0x16f24f++)_0x44eef3['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x394db6=this['_revisionId'];for(let _0x24e092=_0xbb71a3;_0x24e092<_0x394db6;_0x24e092++)this['_touched']['set'](_0x24e092,{'userId':_0x4dfa43});_0x335056['_insertChild'](_0x318734['offset'],_0x44eef3);}['_handleMoveOperation'](_0x2172db){(_0x2172db=this['_cloneOperation'](_0x2172db,this['_idsRoots']))['_execute']();const _0x2a983d=null===_0x2172db['_authorId']?null:_0x2172db['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1041ef=_0x2172db['getMovedRangeStart'](),_0x2ffbe4=_0x1041ef['parent'],_0x149e69=_0x1041ef['offset'];!function _0x1bca59(_0x5b13f6,_0x1d8c65,_0x199e0d,_0x1d63e1){for(let _0x2f6b39=_0x199e0d;_0x2f6b39<_0x1d63e1;_0x2f6b39++){const _0x17663d=_0x1d8c65['getChild'](_0x2f6b39);_0x17663d['is']('element','$text')?_0x5b13f6['set'](_0x17663d['getAttribute']('vid'),{'userId':_0x2a983d}):(_0x5b13f6['set'](_0x17663d['getAttribute']('vid_start'),{'userId':_0x2a983d}),_0x1bca59(_0x5b13f6,_0x17663d,0x0,_0x17663d['childCount']),_0x5b13f6['set'](_0x17663d['getAttribute']('vid_end'),{'userId':_0x2a983d}));}}(this['_touched'],_0x2ffbe4,_0x149e69,_0x149e69+_0x2172db['howMany']);}['_handleMergeOperation'](_0x53817d){const _0xa4462b=null===(_0x53817d=this['_cloneOperation'](_0x53817d,this['_idsRoots']))['_authorId']?null:_0x53817d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b1341=_0x53817d['targetPosition']['parent'],_0x5d35b2=_0x53817d['sourcePosition']['parent'],_0x5a1c2a=_0x4b1341['getAttribute']('vid_end'),_0x3c6be9=_0x5d35b2['getAttribute']('vid_start');_0x4b1341['_setAttribute']('vid_end',_0x5d35b2['getAttribute']('vid_end')),_0x5d35b2['_setAttribute']('vid_end',_0x5a1c2a),this['_touched']['set'](_0x3c6be9,{'userId':_0xa4462b}),this['_touched']['set'](_0x5a1c2a,{'userId':_0xa4462b}),_0x53817d['_execute']();}['_handleSplitOperation'](_0xd49d61){const _0x10b0ac=null===(_0xd49d61=this['_cloneOperation'](_0xd49d61,this['_idsRoots']))['_authorId']?null:_0xd49d61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb74d13=_0xd49d61['graveyardPosition'],_0x471878=_0xd49d61['splitPosition']['parent'];_0xd49d61['_execute']();const _0x3a85f1=_0x471878['getAttribute']('vid_end'),_0x5bc809=_0xd49d61['insertionPosition']['nodeAfter'];if(_0xb74d13){const _0x14c2d2=_0x5bc809['getAttribute']('vid_end'),_0x4ba2a8=_0x471878['getAttribute']('vid_end');_0x471878['_setAttribute']('vid_end',_0x14c2d2),_0x5bc809['_setAttribute']('vid_end',_0x4ba2a8),this['_touched']['set'](_0x471878['getAttribute']('vid_end'),{'userId':_0x10b0ac}),this['_touched']['set'](_0x5bc809['getAttribute']('vid_start'),{'userId':_0x10b0ac});}else{const _0x4a7e69=this['_revisionId']++,_0x3aea18=this['_revisionId']++;_0x471878['_setAttribute']('vid_end',_0x4a7e69),_0x5bc809['_setAttribute']('vid_start',_0x3aea18),_0x5bc809['_setAttribute']('vid_end',_0x3a85f1),this['_touched']['set'](_0x4a7e69,{'userId':_0x10b0ac}),this['_touched']['set'](_0x3aea18,{'userId':_0x10b0ac});}}['_handleMarkerOperation'](_0x2d93bb){if(!_0x2d93bb['affectsData'])return;const _0x5ec320=(_0x2d93bb=this['_cloneOperation'](_0x2d93bb,this['_diffRoots']))['oldRange']?_0x2d93bb['oldRange']['root']:null,_0xa7a3bd=_0x2d93bb['newRange']?_0x2d93bb['newRange']['root']:null;_0x5ec320&&this['_markers']['delete'](_0x2d93bb['name']),_0xa7a3bd&&this['_markers']['set'](_0x2d93bb['name'],_0x2d93bb['newRange']['clone']());const _0x58e0b8=null===_0x2d93bb['_authorId']?null:_0x2d93bb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33f524=_0x2d93bb['name'];if(!this['_touchedMarkers']['has'](_0x33f524))return void this['_touchedMarkers']['set'](_0x33f524,{'range':_0x2d93bb['oldRange'],'userId':_0x58e0b8});const _0x35d447=this['_touchedMarkers']['get'](_0x33f524),_0x10bacf=_0x35d447['range'],_0x59cb8c=_0x2d93bb['newRange'];null==_0x10bacf&&null==_0x59cb8c||_0x10bacf&&_0x59cb8c&&_0x10bacf['isEqual'](_0x59cb8c)?this['_touchedMarkers']['delete'](_0x2d93bb['name']):_0x35d447['userId']=_0x58e0b8;}['_handleRootOperation'](_0x575b0b,_0x2201fe){this['_diffRoots']['has'](_0x575b0b['rootName'])?this['_diffRoots']['get'](_0x575b0b['rootName'])['_isAttached']=_0x575b0b['isAdd']:(this['_diffRoots']['set'](_0x575b0b['rootName'],P(_0x575b0b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x575b0b['rootName'],{}),_0x2201fe&&this['_idsRoots']['set'](_0x575b0b['rootName'],P(_0x575b0b['rootName'],!0x0)));const _0x666386=null===_0x575b0b['_authorId']?null:_0x575b0b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x70eb24=this['_touchedRoots']['get'](_0x575b0b['rootName']);_0x70eb24&&_0x70eb24['userId']===_0x666386?this['_touchedRoots']['delete'](_0x575b0b['rootName']):this['_touchedRoots']['set'](_0x575b0b['rootName'],{'userId':_0x666386,'isAttached':_0x575b0b['isAdd']});}['_handleRootAttributeOperation'](_0x47c432){const _0x2ac39a=this['_diffRootsAttributes']['get'](_0x47c432['root']['rootName']);null===_0x47c432['newValue']?delete _0x2ac39a[_0x47c432['key']]:_0x2ac39a[_0x47c432['key']]=_0x47c432['newValue'];}}function N(_0x71b3b7){const _0x519c25=P(_0x71b3b7['rootName'],_0x71b3b7['isAttached']());for(const _0x243781 of _0x71b3b7['getChildren']()){const _0x505201=_0x243781['_clone'](!0x0);_0x519c25['_appendChild'](_0x505201);}return _0x519c25;}function P(_0x3f4193,_0xddd51c=!0x0){const _0x3c861f=new vt();return _0x3c861f['rootName']=_0x3f4193,_0x3c861f['_isAttached']=_0xddd51c,_0x3c861f['isAttached']=()=>_0x3c861f['_isAttached'],_0x3c861f;}function F(_0x3d7688,_0x225d26,_0x40a548){const _0xec7541='elementEnd'==_0x3d7688['type']?_0x40a548['createPositionAt'](_0x3d7688['item'],'end'):_0x40a548['createPositionBefore'](_0x3d7688['item']);return _0x40a548['createPositionFromPath'](_0x225d26,_0xec7541['path'],_0xec7541['stickiness']);}function B(_0x8cdc93,_0xe98129,_0x348450){const _0x55cdae='elementStart'==_0x8cdc93['type']?_0x348450['createPositionAt'](_0x8cdc93['item'],0x0):_0x348450['createPositionAfter'](_0x8cdc93['item']);return _0x348450['createPositionFromPath'](_0xe98129,_0x55cdae['path'],_0x55cdae['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x23df2f,_0x2c8ac0){super(_0x23df2f),this['focusTracker']=new _0x3b7685(),this['keystrokes']=new _0x4c2fd9(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c8ac0),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x32de24(this);}['render'](){super['render'](),_0x41b20d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4aa577=_0x7baf6b=>_0x7baf6b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4aa577),this['keystrokes']['set']('arrowleft',_0x4aa577),this['keystrokes']['set']('arrowup',_0x4aa577),this['keystrokes']['set']('arrowdown',_0x4aa577);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2aed70){this['revisionNameInputView']['fieldView']['element']['value']=_0x2aed70['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x12ee75){const _0x107cbd=new _0x3aa529(this['locale'],_0x1e850d),_0x415ddf=_0x107cbd['fieldView'];_0x415ddf['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4c51cf=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x12ee75&&(_0x4c51cf+='\x20('+g(this['locale'],'optional')+')'),(_0x107cbd['label']=_0x4c51cf,_0x415ddf['on']('input',()=>{this['revisionNameInputValue']=_0x415ddf['element']['value']['trim']();}),_0x107cbd);}}class f extends _0x47e767{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x126ed8=this['editor'],_0x5a8f22=_0x126ed8['plugins']['get']('RevisionTracker');_0x126ed8['ui']['componentFactory']['add']('revisionHistory',_0x5cb11d=>{const _0xb9850a=_0x2cc610(_0x5cb11d),_0x11d016=_0xb9850a['panelView']['children'],_0x5ca0d8=new _0x30f123(_0x5cb11d),_0x2830e6=new _0x27846f(_0x5cb11d),_0x33d459=new te(_0x5cb11d),_0x512568=new _0x27846f(_0x5cb11d),_0x25b26e=new te(_0x5cb11d);return _0xb9850a['bind']('isEnabled')['to'](_0x5a8f22,'isReady',_0x5a8f22,'isEnabled',_0x126ed8,'isReadOnly',(_0x5f587c,_0x2ee3f2,_0x1bceb2)=>_0x5f587c&&_0x2ee3f2&&!_0x1bceb2),_0xb9850a['buttonView']['set']({'icon':_0x39a372,'label':g(_0x5cb11d,'Revision\x20history'),'tooltip':!0x0}),_0x33d459['set']({'label':g(_0x5cb11d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x33d459['bind']('isEnabled')['to'](_0x5a8f22,'isReady',_0x5a8f22,'isEnabled',_0x126ed8,'isReadOnly',(_0x12ad03,_0x466d43,_0x6a607c)=>_0x12ad03&&_0x466d43&&!_0x6a607c),_0x33d459['on']('execute',()=>this['_showDialog']()),_0x25b26e['set']({'label':g(_0x5cb11d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x25b26e['bind']('isEnabled')['to'](_0x5a8f22,'isReady',_0x126ed8,'isReadOnly',(_0x38bd83,_0x9ca4b1)=>_0x38bd83&&!_0x9ca4b1),_0x25b26e['on']('execute',()=>{_0x126ed8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xb9850a['isOpen']=!0x1,_0x126ed8['editing']['view']['focus']();}),_0x2830e6['children']['add'](_0x33d459),_0x512568['children']['add'](_0x25b26e),_0x5ca0d8['role']='menu',_0x5ca0d8['items']['addMany']([_0x2830e6,_0x512568]),_0x11d016['add'](_0x5ca0d8),_0xb9850a;}),_0x126ed8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x57a883=this['editor'],_0x67a5ba=_0x57a883['locale'],_0x5f1c48=new _0x43b074(_0x67a5ba),_0x2a4ada=new _0xa519dd(_0x67a5ba);_0x5f1c48['buttonView']['set']({'icon':_0x39a372,'label':g(_0x67a5ba,'Revision\x20history')});const _0x5488cc=new _0x57ce49(_0x67a5ba,_0x5f1c48),_0x1a47e7=new _0x55a199(_0x67a5ba);_0x1a47e7['set']({'label':g(_0x67a5ba,'Save\x20current\x20revision')}),_0x1a47e7['delegate']('execute')['to'](_0x5f1c48),_0x1a47e7['on']('execute',()=>{this['_showDialog']();}),_0x5488cc['children']['add'](_0x1a47e7),_0x2a4ada['items']['add'](_0x5488cc);const _0x29bd4b=new _0x57ce49(_0x67a5ba,_0x5f1c48),_0x39bf9e=new _0x55a199(_0x67a5ba);return _0x39bf9e['set']({'label':g(_0x67a5ba,'Open\x20revision\x20history')}),_0x39bf9e['delegate']('execute')['to'](_0x5f1c48),_0x39bf9e['on']('execute',()=>{_0x57a883['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x29bd4b['children']['add'](_0x39bf9e),_0x2a4ada['items']['add'](_0x29bd4b),_0x5f1c48['panelView']['children']['add'](_0x2a4ada),_0x5f1c48;}['_showDialog'](){const _0x3e0600=this['editor'],_0x51764c=_0x3e0600['locale'],_0x13a145=_0x3e0600['plugins']['get']('Dialog'),_0x441949=_0x3e0600['plugins']['get']('RevisionTracker');function _0x96aecb(_0x205a56){_0x3e0600['config']['get']('revisionHistory.requireRevisionName')&&''===_0x205a56['revisionName']?_0x205a56['revisionNameInputView']['errorText']=g(_0x51764c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3e0600['plugins']['get'](u)['saveRevision']({'name':_0x205a56['revisionName']}),_0x13a145['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x96aecb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x13a145['show']({'id':'revisionSave','title':g(_0x51764c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x3e0600['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x13a145['hide']()},{'label':g(_0x3e0600['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2789ff){_0x2789ff['bind']('isEnabled')['to'](_0x441949,'isReady',_0x441949,'isEnabled',_0x3e0600,'isReadOnly',(_0x53a1f1,_0x52d1c1,_0x3ba61a)=>_0x53a1f1&&_0x52d1c1&&!_0x3ba61a);},'onExecute':()=>_0x96aecb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x36dafd=this['editor'],_0x2e0120=_0x36dafd['locale'];this['_saveRevisionFormView']=new hs(_0x2e0120,_0x36dafd['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x404280,_0x445fb8){super(_0x404280),this['_model']=_0x445fb8,this['changeId']=_0x445fb8['id'];const _0x95ddc3=this['bindTemplate'],_0x5e1cf3=g(_0x404280,_0x445fb8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x445fb8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x445fb8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x95ddc3['to']('type',_0x55e3c9=>'ck-revision-change__'+_0x55e3c9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5e1cf3}]},{'text':'\x20'+_0x445fb8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x20a623(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x223dba){super(),this['id']=_0x223dba['id']||_0x2b268f(),this['author']=_0x223dba['author'],this['type']=_0x223dba['type'],this['data']=_0x223dba['data']||{},this['rootName']=_0x223dba['rootName'],this['set']('createdAt',_0x223dba['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x540610,_0x59596c){this['newRevisionId']=_0x540610,this['oldRevisionId']=_0x59596c,this['changes']=new _0x9c7c74();}['_setChanges'](_0xe9c867){for(const _0x5aaea0 of _0xe9c867)this['changes']['add'](_0x5aaea0);}}class m extends _0x47e767{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x256dd3,_0x78860b,I,V];}constructor(_0x16029a){super(_0x16029a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5baec2,_0x112171,_0x57bfc2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x233ba5=>{for(const _0x2341e2 of this['editor']['editing']['view']['document']['roots'])_0x57bfc2?_0x233ba5['removeClass']('ck-editor__editable__overlay',_0x2341e2):_0x233ba5['addClass']('ck-editor__editable__overlay',_0x2341e2);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1e17ba=>null!==_0x1e17ba),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4cdb89,_0x52dbb3,_0x2ab775)=>_0x4cdb89&&_0x2ab775?_0x52dbb3['changes']['getIndex'](_0x2ab775):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf19819,_0x2a6585)=>_0xf19819?_0x2a6585['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x78860b);}['init'](){const _0x2f23b9=this['editor'],_0x36877a=new wt(_0x2f23b9,{'direction':'backward'}),_0x4fd164=new wt(_0x2f23b9,{'direction':'forward'});(_0x2f23b9['commands']['add']('showPreviousChange',_0x36877a),_0x2f23b9['commands']['add']('showNextChange',_0x4fd164),_0x2f23b9['commands']['add']('restoreRevision',new mt(_0x2f23b9)),this['on']('change:numberOfChanges',()=>{_0x36877a['refresh'](),_0x4fd164['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2f23b9['enableReadOnlyMode']('revision-viewer'),_0x2f23b9['plugins']['has']('WidgetToolbarRepository'))&&_0x2f23b9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x8402bc){return await this['_utils']['loadRevisionData'](_0x8402bc,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x8402bc);}async['getRevisionRootsAttributes'](_0x3c95a8){return await this['_utils']['loadRevisionData'](_0x3c95a8,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3c95a8);}async['compare'](_0x4e124b,_0x2be899,_0x4ed114=!0x1){if(!this['isEnabled'])return;const _0x19f076=this['diff'],_0x58c6b0=this['repository'],_0x539666='string'==typeof _0x4e124b?_0x58c6b0['getRevision'](_0x4e124b):_0x4e124b,_0x170399='string'==typeof _0x2be899?_0x58c6b0['getRevision'](_0x2be899):_0x2be899,_0x5d785c=_0x539666['id'],_0x11303c=_0x170399?_0x170399['id']:null;if(!_0x4ed114&&this['diff']&&this['diff']['newRevisionId']===_0x5d785c&&this['diff']['oldRevisionId']===_0x11303c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5d785c,_0x11303c);const _0x2a8ac7=this['_getRevisionsRange'](_0x539666,_0x170399,!0x0)['map'](_0x9c170c=>this['_utils']['loadRevisionData'](_0x9c170c,this['adapter']));return _0x2a8ac7['push'](new Promise(_0x28f609=>{setTimeout(_0x28f609,0x14);})),Promise['all'](_0x2a8ac7)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x346397=this['_getDiff'](_0x5d785c,_0x11303c);for(const _0x1b6a66 of _0x346397['changes'])this['_changeIdToChange']['set'](_0x1b6a66['id'],_0x1b6a66);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x8ef5bd=>{for(const _0x26c7b6 of this['editor']['model']['document']['getRootNames']())_0x8ef5bd['detachRoot'](_0x26c7b6);for(const _0x868b98 of Object['keys'](_0x346397['model'])){const _0x8b7027=_0x8ef5bd['addRoot'](_0x868b98);for(const _0x405f00 of Object['keys'](_0x346397['attributes'][_0x868b98]))_0x8ef5bd['setAttribute'](_0x405f00,_0x346397['attributes'][_0x868b98][_0x405f00],_0x8b7027);_0x8ef5bd['insert'](_0x346397['model'][_0x868b98],_0x8b7027,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x346397['changes'])),this['isReady']=!0x0;})['catch'](_0x513b08=>{console['error'](_0x513b08),this['_cleanUp'](),_0x19f076&&(this['diff']=_0x19f076),this['isReady']=!0x0;});}['addRevisionData'](_0x342d36,_0x528386){const _0x9e47b6=this['repository']['createRevision'](_0x342d36);return _0x9e47b6['on']('_update',(_0x58e249,_0x3b9f52,_0x90763a)=>_0x528386(_0x3b9f52,_0x90763a,_0x9e47b6)),this['repository']['addRevision'](_0x9e47b6),_0x9e47b6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xe001da=>{for(const _0x1562bd of this['editor']['model']['document']['getRootNames']())_0xe001da['detachRoot'](_0x1562bd);});}['_sortAndFilterDiffChanges'](_0x5b789d){const _0x57bf47=[],_0x2e2fa1=new Map();for(const _0x8adf36 of this['editor']['model']['document']['getRootNames']()){const _0x4fbd3a=this['editor']['editing']['view']['getDomRoot'](_0x8adf36);if(!_0x4fbd3a)continue;const _0xc859cd=_0x4fbd3a['getClientRects']()['item'](0x0);_0xc859cd&&(_0x57bf47['push'](_0x8adf36),_0x2e2fa1['set'](_0x8adf36,_0xc859cd));}return _0x57bf47['sort']((_0x4e448d,_0x3482a8)=>{const _0x3f938c=_0x2e2fa1['get'](_0x4e448d),_0x1570ed=_0x2e2fa1['get'](_0x3482a8);return _0x3f938c['y']-_0x1570ed['y']||_0x3f938c['x']-_0x1570ed['x'];}),(_0x5b789d=_0x5b789d['filter'](_0x33c7d9=>_0x57bf47['includes'](_0x33c7d9['rootName'])))['sort']((_0x28a5f0,_0x139f5f)=>_0x57bf47['indexOf'](_0x28a5f0['rootName'])-_0x57bf47['indexOf'](_0x139f5f['rootName'])),_0x5b789d;}['_makeTape'](_0xcf3063){const _0x34104e=Array['from'](_0xcf3063['markers'])['filter'](([_0x5ee2b5,_0x5b3b2e])=>_0x5ee2b5['startsWith']('revision:')&&!_0x5b3b2e['isCollapsed']),_0x1e546d=Array['from'](this['editor']['model']['createRangeIn'](_0xcf3063)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x34104e['length'])for(const _0x4479fa of _0x1e546d){const [_0x437ddc,_0x33259e]=_0x34104e[0x0],[,_0x102ce0,_0x3d8c0f]=_0x437ddc['split'](':');if(_0x33259e['end']['isEqual'](_0x4479fa['nextPosition'])&&_0x34104e['shift'](),(_0x4479fa['previousPosition']['isEqual'](_0x33259e['start'])||_0x4479fa['previousPosition']['isAfter'](_0x33259e['start']))&&('insertion'==_0x102ce0?_0x4479fa['isAdded']={'userId':_0x3d8c0f}:'deletion'==_0x102ce0&&(_0x4479fa['isRemoved']={'userId':_0x3d8c0f})),0x0==_0x34104e['length'])break;}return _0x1e546d;}['_refreshStartEndIndex'](_0x525252){const _0x49137d=new Map();for(let _0x17d499=0x0;_0x17d499<_0x525252['length'];_0x17d499++)'text'===_0x525252[_0x17d499]['type']?(_0x525252[_0x17d499]['item']['startIndex']=_0x17d499,_0x525252[_0x17d499]['item']['endIndex']=_0x17d499):('elementStart'===_0x525252[_0x17d499]['type']?_0x525252[_0x17d499]['item']['startIndex']=_0x17d499:'elementEnd'===_0x525252[_0x17d499]['type']&&(_0x525252[_0x17d499]['item']['endIndex']=_0x17d499),_0x49137d['set'](_0x525252[_0x17d499]['id'],_0x17d499));for(const _0xee5648 of _0x49137d['values']())'elementStart'===_0x525252[_0xee5648]['type']?_0x525252[_0xee5648]['item']['endIndex']=_0x49137d['get'](_0x525252[_0xee5648]['pairId']):'elementEnd'===_0x525252[_0xee5648]['type']&&(_0x525252[_0xee5648]['item']['startIndex']=_0x49137d['get'](_0x525252[_0xee5648]['pairId']));}['_processTape'](_0x454c33){for(let _0x422866=0x0;_0x422866<_0x454c33['length'];_0x422866++){if('elementStart'===_0x454c33[_0x422866]['type'])_0x454c33[_0x422866]['item']['startIndex']=_0x422866;else{if('elementEnd'===_0x454c33[_0x422866]['type']){_0x454c33[_0x422866]['item']['endIndex']=_0x422866;const _0x36921f=_0x454c33[_0x422866]['item']['startIndex'];_0x454c33[_0x36921f]['pairId']=_0x454c33[_0x422866]['id'],_0x454c33[_0x422866]['pairId']=_0x454c33[_0x36921f]['id'];}else _0x454c33[_0x422866]['item']['startIndex']=_0x422866,_0x454c33[_0x422866]['item']['endIndex']=_0x422866,_0x454c33[_0x422866]['pairId']=null;}_0x454c33[_0x422866]['markersStart']||(_0x454c33[_0x422866]['markersStart']=[],_0x454c33[_0x422866]['markersEnd']=[]);}}['_markInsertions'](_0x47bc35,_0x1d7665){const _0x3ef676=_0x47bc35['filter'](_0x4e3733=>!_0x4e3733['isAdded']);for(let _0x774e76=0x0;_0x774e76<_0x1d7665['length'];_0x774e76++)_0x1d7665[_0x774e76]['isAdded']&&(_0x3ef676[_0x774e76]['isAdded']=_0x1d7665[_0x774e76]['isAdded']);}['_getDiff'](_0x1821e6,_0x39eb33=null){const _0xc0717e=this['repository']['getRevision'](_0x1821e6),_0x1cec20=_0x39eb33?this['repository']['getRevision'](_0x39eb33):null,_0x46f848=this['_getRevisionsRange'](_0xc0717e,_0x1cec20),_0x291ea0=_0x46f848[_0x46f848['length']-0x1],_0x2fc751=new Map(),_0x242878={'model':{},'attributes':{},'changes':[]},_0x5de292=new Set(),_0x1931fb=new Map();for(let _0x444610=_0x46f848['length']-0x1;_0x444610>=0x0;_0x444610--){const _0x561ebb=_0x46f848[_0x444610];for(const _0x179860 of Object['keys'](_0x561ebb['diffData']))if(_0x561ebb['diffData'][_0x179860]['attachChange']){const _0x22f391=_0x561ebb['diffData'][_0x179860]['attachChange'];_0x22f391['isAttached']?(_0x5de292['add'](_0x179860),_0x1931fb['has'](_0x179860)&&_0x1931fb['get'](_0x179860)['userId']==_0x22f391['userId']?_0x1931fb['delete'](_0x179860):_0x1931fb['set'](_0x179860,_0x22f391)):_0x1931fb['has'](_0x179860)?(_0x5de292['delete'](_0x179860),_0x1931fb['delete'](_0x179860)):(_0x5de292['add'](_0x179860),_0x1931fb['set'](_0x179860,_0x22f391));}else _0x5de292['add'](_0x179860);}for(const _0x586f1e of _0x5de292){const _0x1dc17e=_0x1931fb['has'](_0x586f1e)&&!_0x1931fb['get'](_0x586f1e)['isAttached'];let _0x224bd2=_0x1dc17e?_0x46f848['length']-0x1:0x0;const _0x459435=_0x1dc17e?-0x1:0x1;for(;_0x46f848[_0x224bd2];){const _0x3515eb=_0x46f848[_0x224bd2];if(_0x3515eb['diffData'][_0x586f1e]){const _0x35886c=_0x1dc17e?_0x3515eb['diffData'][_0x586f1e]['attributesBefore']:_0x3515eb['diffData'][_0x586f1e]['attributesAfter'];_0x242878['attributes'][_0x586f1e]=_0x35886c?_0x33af60(_0x35886c):{};break;}_0x224bd2+=_0x459435;}}for(const _0x1d9ba8 of _0x46f848){_0x1d9ba8['model']={};for(const _0x34333b of _0x1d9ba8['authors'])_0x2fc751['set'](_0x34333b['id'],_0x34333b);for(const _0xfd649c of _0x5de292){const _0x5afa2e=_0x1d9ba8['diffData'][_0xfd649c]?_0x1d9ba8['diffData'][_0xfd649c]['insertions']:'[]',_0x48ad18=_0x1d9ba8['diffData'][_0xfd649c]?_0x1d9ba8['diffData'][_0xfd649c]['deletions']:'[]';_0x1d9ba8['model'][_0xfd649c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5afa2e),'deletions':this['_utils']['_makeModelFromViewString'](_0x48ad18)};}}for(const _0x358df5 of _0x5de292){let _0x51a64a=null,_0x3b5ad3=0x0;const _0x3ffe84=new Map(Array['from'](_0xc0717e['model'][_0x358df5]['insertions']['markers'])['filter'](([_0x1f1637])=>!_0x1f1637['startsWith']('revision:')));let _0x3a9c4d=0x0;for(const _0x511cf6 of _0x46f848){const _0x59ebbc=this['_makeTape'](_0x511cf6['model'][_0x358df5]['insertions']);_0x511cf6==_0xc0717e?(_0x51a64a=_0x59ebbc,_0x3b5ad3=_0x51a64a['length'],_0x51a64a['forEach'](_0x281209=>{_0x281209['id']=_0x3a9c4d++;}),this['_processTape'](_0x51a64a)):this['_markInsertions'](_0x51a64a,_0x59ebbc);const _0xf935d=_0x51a64a['filter'](_0x62d5d1=>!_0x62d5d1['isAdded'])['map'](_0x4e4971=>_0x4e4971['id']);let _0x1498f2=0x0;const _0x4256c5=this['_makeTape'](_0x511cf6['model'][_0x358df5]['deletions']);_0x4256c5['forEach'](_0x1f755f=>{_0x1f755f['isRemoved']?_0x1f755f['id']=_0x3b5ad3++:_0x1f755f['id']=_0xf935d[_0x1498f2++];}),this['_processTape'](_0x4256c5),this['_setDistance'](_0x51a64a,'isAdded'),this['_setDistance'](_0x4256c5,'isRemoved'),_0x511cf6==_0xc0717e&&this['_markMarkers'](_0x51a64a,_0x3ffe84),_0x51a64a=this['_joinTapes'](_0x51a64a,_0x4256c5),this['_refreshStartEndIndex'](_0x51a64a),this['_setDistance'](_0x51a64a,'isRemoved');}_0x51a64a=_0x51a64a['filter'](_0x573b84=>!(_0x573b84['isAdded']&&_0x573b84['isRemoved']));const _0x41b88f=new Map(_0x291ea0['model'][_0x358df5]['deletions']['markers']),_0x1e3459=new Set(_0x3ffe84['keys']());for(const _0x1ae77a of _0x41b88f['keys']())_0x1e3459['delete'](_0x1ae77a);this['_markSuggestions'](_0x51a64a,_0x1e3459),this['_fixObsoleteTags'](_0x51a64a),_0x51a64a=this['_removeMissingPairs'](_0x51a64a),_0x51a64a=this['_markMismatchedRemovedTags'](_0x51a64a),_0x51a64a=this['_removeUnsupportedChanges'](_0x51a64a);const {root:_0x3b2052,changes:_0x3de725}=this['_makeModelFromTape'](_0x51a64a,_0x2fc751,_0x358df5);_0x242878['model'][_0x358df5]=_0x3b2052;const _0x1a7a46=_0x1931fb['get'](_0x358df5);if(_0x1a7a46){const _0x357cf8=_0x2fc751['get'](_0x1a7a46['userId']),_0x706401=new r({'author':_0x357cf8,'type':_0x1a7a46['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x358df5});_0x3de725['unshift'](_0x706401),_0x242878['attributes'][_0x358df5]['revisionHistoryAttachChange']=_0x706401['id'];}_0x242878['changes']=_0x242878['changes']['concat'](_0x3de725);}return _0x242878;}['_markMarkers'](_0x3e0b2d,_0x5c1848){for(let _0x5431d7=0x0;_0x5431d7<_0x3e0b2d['length'];_0x5431d7++)for(const [_0x22db55,_0x5e1ad8]of _0x5c1848)!_0x5e1ad8['isCollapsed']&&_0x5e1ad8['start']['isEqual'](_0x3e0b2d[_0x5431d7]['previousPosition'])&&_0x3e0b2d[_0x5431d7]['markersStart']['push'](_0x22db55),_0x5e1ad8['end']['isEqual'](_0x3e0b2d[_0x5431d7]['nextPosition'])&&_0x3e0b2d[_0x5431d7]['markersEnd']['push'](_0x22db55);}['_joinTapes'](_0x171253,_0x538cfb){let _0x1feff2=[],_0x2f36e8=0x0,_0x470f24=0x0;for(;_0x2f36e8<_0x171253['length']||_0x470f24<_0x538cfb['length'];){const _0x474e61=_0x171253[_0x2f36e8]||{},_0x2da6c7=_0x538cfb[_0x470f24]||{};if(_0x474e61['id']==_0x2da6c7['id'])_0x2f36e8++,_0x470f24++,_0x1feff2['push'](_0x474e61);else{if(_0x2da6c7['isRemoved']&&_0x474e61['isAdded']){const {commonTape:_0x3a83c8,iEnd:_0xf1a96e,jEnd:_0x8f3092}=this['_threeWayMerge'](_0x171253,_0x2f36e8,_0x538cfb,_0x470f24);_0x1feff2=_0x1feff2['concat'](_0x3a83c8),_0x2f36e8=_0xf1a96e,_0x470f24=_0x8f3092;}else _0x2da6c7['isRemoved']?(_0x470f24++,_0x1feff2['push'](_0x2da6c7)):(_0x2f36e8++,_0x1feff2['push'](_0x474e61));}}return _0x1feff2;}['_markSuggestions'](_0x358394,_0x2998ba){const _0x1d8aa7=[];for(let _0x3a969b=0x0;_0x3a969b<_0x358394['length'];_0x3a969b++){for(let _0x350a38=0x0;_0x350a38<_0x358394[_0x3a969b]['markersStart']['length'];_0x350a38++){const _0x26078b=_0x358394[_0x3a969b]['markersStart'][_0x350a38];if(!_0x2998ba['has'](_0x26078b))continue;const {group:_0xde2f09,type:_0xbc3f6b,authorId:_0x3ad72b}=_0x4d5cd1(_0x26078b);'revision-suggestion'!=_0xde2f09||'insertion'!=_0xbc3f6b&&'deletion'!=_0xbc3f6b||(_0x1d8aa7['unshift']({'type':_0xbc3f6b,'name':_0x26078b,'userId':_0x3ad72b}),_0x358394[_0x3a969b]['markersStart']['splice'](_0x350a38,0x1),_0x350a38--);}_0x48c0e3(_0x358394[_0x3a969b]);for(let _0x274fca=0x0;_0x274fca<_0x358394[_0x3a969b]['markersEnd']['length'];_0x274fca++){const _0x26e231=_0x358394[_0x3a969b]['markersEnd'][_0x274fca];if(!_0x2998ba['has'](_0x26e231))continue;const {group:_0x472e10,type:_0x59f7af}=_0x4d5cd1(_0x26e231);if('revision-suggestion'!=_0x472e10||'insertion'!=_0x59f7af&&'deletion'!=_0x59f7af)continue;_0x358394[_0x3a969b]['markersEnd']['splice'](_0x274fca,0x1),_0x274fca--;const _0xe00127=_0x1d8aa7['findIndex'](_0x4bb800=>_0x4bb800['name']==_0x26e231);_0xe00127>-0x1&&_0x1d8aa7['splice'](_0xe00127,0x1);}}function _0x4d5cd1(_0x53c23f){const _0x36b587=_0x53c23f['split'](':');return{'group':_0x36b587[0x0],'type':_0x36b587[0x1],'subType':_0x36b587['length']>=0x5?_0x36b587[0x2]:null,'id':_0x36b587['length']<0x5?_0x36b587[0x2]:_0x36b587[0x3],'authorId':_0x36b587['length']<0x5?_0x36b587[0x3]:_0x36b587[0x4],'markerCount':0x6==_0x36b587['length']?_0x36b587[0x5]:null};}function _0x48c0e3(_0x2d94cb){for(let _0x5a0657=0x0;_0x5a0657<_0x1d8aa7['length'];_0x5a0657++){if(_0x2d94cb['isAdded']&&'insertion'==_0x1d8aa7[_0x5a0657]['type'])return _0x2d94cb['isAddSuggestion']=_0x1d8aa7[_0x5a0657],void delete _0x2d94cb['isAdded'];if(!_0x2d94cb['isAdded']&&!_0x2d94cb['isRemoved']&&'deletion'==_0x1d8aa7[_0x5a0657]['type'])return void(_0x2d94cb['isRemoveSuggestion']=_0x1d8aa7[_0x5a0657]);}}}['_setDistance'](_0x5360ad,_0x4e92ee){let _0x7f75d7=0x0,_0x376f83=!0x1;const _0x1f5728=new Map();for(const _0x23fd4f of _0x5360ad)_0x23fd4f[_0x4e92ee]?_0x376f83&&(_0x7f75d7++,_0x376f83=!0x1):(_0x7f75d7++,_0x376f83=!0x0),_0x1f5728['set'](_0x23fd4f['id'],_0x7f75d7);for(let _0x57ad45=0x0;_0x57ad45<_0x5360ad['length'];_0x57ad45++){if('isRemoved'==_0x4e92ee&&_0x5360ad[_0x57ad45]['isAdded']||'isAdded'==_0x4e92ee&&_0x5360ad[_0x57ad45]['isRemoved'])continue;if('text'==_0x5360ad[_0x57ad45]['type']){_0x5360ad[_0x57ad45]['distance']=0x0;continue;}const _0x142098=_0x1f5728['get'](_0x5360ad[_0x57ad45]['pairId']),_0x464da4=_0x1f5728['get'](_0x5360ad[_0x57ad45]['id']);_0x5360ad[_0x57ad45]['distance']=_0x142098-_0x464da4;}}['_getRevisionsRange'](_0x559209,_0x18efcb,_0x3960da=!0x1){const _0x48cd4e=[];let _0x38ece6=this['repository']['getIndex'](_0x559209),_0x3143aa=this['repository']['getIndex'](_0x18efcb);for(-0x1==_0x3143aa&&(_0x3143aa=this['repository']['_revisions']['length'],_0x3960da=!0x1);_0x38ece6<_0x3143aa;)_0x48cd4e['push'](this['repository']['getRevision'](_0x38ece6)),_0x38ece6++;return _0x3960da&&_0x48cd4e['push'](this['repository']['getRevision'](_0x38ece6)),_0x48cd4e;}['_threeWayMerge'](_0x42a888,_0x159e1d,_0x5e48cc,_0x1db98a){const _0x538652=this['editor']['model']['schema'];let _0x417dfd=_0x159e1d;for(;_0x42a888[_0x417dfd]&&_0x42a888[_0x417dfd]['isAdded'];)_0x417dfd++;let _0x2a780a=_0x1db98a;for(;_0x5e48cc[_0x2a780a]&&_0x5e48cc[_0x2a780a]['isRemoved'];)_0x2a780a++;_0x53ea04(_0x42a888,_0x159e1d,_0x417dfd),_0x53ea04(_0x5e48cc,_0x1db98a,_0x2a780a);const _0x3b1f84=_0x5e48cc['slice'](_0x1db98a,_0x2a780a)['concat'](_0x42a888['slice'](_0x159e1d,_0x417dfd));return _0x3b1f84['sort']((_0x191c06,_0x254779)=>_0x191c06['side']!=_0x254779['side']?_0x191c06['side']-_0x254779['side']:_0x191c06['level']!=_0x254779['level']?_0x191c06['level']-_0x254779['level']:_0x191c06['distance']!=_0x254779['distance']?_0x254779['distance']-_0x191c06['distance']:!!_0x191c06['isAdded']!=!!_0x254779['isAdded']?-0x1==_0x191c06['side']||0x0==_0x191c06['side']?_0x191c06['isAdded']?-0x1:0x1:_0x191c06['isAdded']?0x1:-0x1:_0x191c06['index']-_0x254779['index']),{'commonTape':_0x3b1f84,'iEnd':_0x417dfd,'jEnd':_0x2a780a};function _0x53ea04(_0x45c3d5,_0x2db9d5,_0x3766a2){let _0x5ee894=-0x1,_0x3e6c2b=Number['POSITIVE_INFINITY'],_0xdeac82=!0x0;for(let _0xeda4f9=_0x2db9d5;_0xeda4f9<_0x3766a2;_0xeda4f9++)if(_0x538652['isInline'](_0x45c3d5[_0xeda4f9]['item'])||(_0xdeac82=!0x1),_0x45c3d5[_0xeda4f9]['item']['startIndex']<_0x2db9d5&&(_0x5ee894=_0xeda4f9),_0x45c3d5[_0xeda4f9]['item']['endIndex']>=_0x3766a2){_0x3e6c2b=_0xeda4f9;break;}_0xdeac82&&(_0x5ee894=_0x3766a2-0x1);for(let _0x25904a=_0x2db9d5;_0x25904a<_0x3766a2;_0x25904a++)_0x45c3d5[_0x25904a]['side']=_0x25904a<=_0x5ee894?-0x1:_0x25904a<_0x3e6c2b?0x0:0x1,_0x45c3d5[_0x25904a]['index']=_0x25904a;let _0x59cd0c=0x0;for(let _0x3c22d4=_0x2db9d5;_0x3c22d4<=_0x5ee894;_0x3c22d4++)0x0==_0x45c3d5[_0x3c22d4]['distance']?_0x45c3d5[_0x3c22d4]['level']=_0x59cd0c:(_0x59cd0c++,_0x45c3d5[_0x3c22d4]['level']=_0x59cd0c,_0x59cd0c++);for(let _0x5daa70=_0x2db9d5;_0x5daa70<_0x3766a2;_0x5daa70++)0x0==_0x45c3d5[_0x5daa70]['side']&&(_0x45c3d5[_0x5daa70]['level']=_0x59cd0c);_0x59cd0c=0x0;for(let _0x505bd9=_0x3766a2-0x1;_0x505bd9>=_0x3e6c2b;_0x505bd9--)0x0==_0x45c3d5[_0x505bd9]['distance']?_0x45c3d5[_0x505bd9]['level']=_0x59cd0c:(_0x59cd0c--,_0x45c3d5[_0x505bd9]['level']=_0x59cd0c,_0x59cd0c--);}}['_fixObsoleteTags'](_0xe9a4cd){const _0x544c42=new Map(),_0x340da4=this['editor']['model']['schema'];for(let _0x2912d6=0x1;_0x2912d6<_0xe9a4cd['length'];_0x2912d6++){let _0x14f3ea,_0x3c750f,_0x2cedda;const _0x265c8d=_0xe9a4cd[_0x2912d6],_0x4f59b4=_0xe9a4cd[_0x2912d6-0x1];if('text'==_0x265c8d['type'])continue;if(_0x265c8d['type']!=_0x4f59b4['type'])continue;if(!_0x340da4['isBlock'](_0x4f59b4['item'])||_0x340da4['isLimit'](_0x4f59b4['item']))continue;if(!_0x340da4['isBlock'](_0x265c8d['item'])||_0x340da4['isLimit'](_0x265c8d['item']))continue;if((_0xe9a4cd[_0x2912d6]['isAdded']||_0xe9a4cd[_0x2912d6]['isAddSuggestion'])&&_0xe9a4cd[_0x2912d6-0x1]['isRemoved'])_0x14f3ea=_0xe9a4cd[_0x2912d6],_0x3c750f=_0xe9a4cd[_0x2912d6-0x1],_0x2cedda=_0x2912d6-0x1;else{if(!_0xe9a4cd[_0x2912d6]['isRemoved']||!_0xe9a4cd[_0x2912d6-0x1]['isAdded']&&!_0xe9a4cd[_0x2912d6-0x1]['isAddSuggestion'])continue;_0x14f3ea=_0xe9a4cd[_0x2912d6-0x1],_0x3c750f=_0xe9a4cd[_0x2912d6],_0x2cedda=_0x2912d6;}const _0x2bacbe=_0x14f3ea['level']==_0x3c750f['level'],_0x6f10ae=Math['abs'](_0x14f3ea['level'])<Math['abs'](_0x3c750f['level'])&&0x0==_0x3c750f['distance'];(_0x2bacbe||_0x6f10ae)&&(_0x544c42['set'](_0x3c750f['id'],_0x14f3ea['id']),_0xe9a4cd['splice'](_0x2cedda,0x1),_0x2912d6--,_0x14f3ea['isAdded']=!0x1);}for(let _0x94fc2e=0x0;_0x94fc2e<_0xe9a4cd['length'];_0x94fc2e++)_0x544c42['has'](_0xe9a4cd[_0x94fc2e]['pairId'])&&(_0xe9a4cd[_0x94fc2e]['pairId']=_0x544c42['get'](_0xe9a4cd[_0x94fc2e]['pairId']));}['_removeMissingPairs'](_0x560853){const _0x1bad3c=new Set(_0x560853['map'](_0x558d99=>_0x558d99['id']));for(let _0x210b1d=0x0;_0x210b1d<_0x560853['length'];_0x210b1d++)_0x1bad3c['has'](_0x560853[_0x210b1d]['pairId'])||0x0==_0x560853[_0x210b1d]['distance']||(_0x560853[_0x210b1d]['isIncorrect']=!0x0);return _0x560853['filter'](_0x1ae9e1=>!_0x1ae9e1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x25e585){const _0x33cf1a=new Set();for(let _0x6ed815=0x0;_0x6ed815<_0x25e585['length'];_0x6ed815++){if(_0x33cf1a['has'](_0x25e585[_0x6ed815]['id'])&&_0x25e585[_0x6ed815]['isRemoved']&&(_0x25e585[_0x6ed815]['isIncorrect']=!0x0),_0x25e585[_0x6ed815]['isIncorrect'])continue;if(0x0==_0x25e585[_0x6ed815]['distance'])continue;if('elementStart'!=_0x25e585[_0x6ed815]['type'])continue;if(null==_0x25e585[_0x6ed815]['pairId'])continue;let _0x36d537=_0x6ed815+0x1,_0x17852b=0x0;for(;_0x25e585[_0x36d537]['id']!=_0x25e585[_0x6ed815]['pairId'];)'elementStart'==_0x25e585[_0x36d537]['type']?_0x17852b++:'elementEnd'==_0x25e585[_0x36d537]['type']&&_0x17852b--,_0x36d537++;if(0x0!=_0x17852b){if(_0x25e585[_0x6ed815]['isRemoved'])_0x25e585[_0x6ed815]['isIncorrect']=!0x0;else{for(;_0x36d537!=_0x6ed815;)_0x25e585[_0x36d537]['isRemoved']&&0x0!=_0x25e585[_0x36d537]['distance']&&(_0x25e585[_0x36d537]['isIncorrect']=!0x0,_0x33cf1a['add'](_0x25e585[_0x36d537]['pairId'])),_0x36d537--;}}}return _0x25e585['filter'](_0x5075af=>!_0x5075af['isIncorrect']);}['_removeUnsupportedChanges'](_0xe00061){const _0x47a856=this['editor']['model']['schema'];for(let _0x2e554f=0x0;_0x2e554f<_0xe00061['length'];_0x2e554f++){if(!(_0xe00061[_0x2e554f]['isAdded']||_0xe00061[_0x2e554f]['isAddSuggestion']||_0xe00061[_0x2e554f]['isRemoved']||_0xe00061[_0x2e554f]['isRemoveSuggestion']))continue;if(0x0==_0xe00061[_0x2e554f]['distance'])continue;const _0x3cbf2e=_0xe00061[_0x2e554f]['item'];_0x47a856['isBlock'](_0x3cbf2e)||_0x47a856['isLimit'](_0x3cbf2e)||(_0xe00061[_0x2e554f]['isAdded']&&delete _0xe00061[_0x2e554f]['isAdded'],_0xe00061[_0x2e554f]['isAddSuggestion']&&delete _0xe00061[_0x2e554f]['isAddSuggestion'],_0xe00061[_0x2e554f]['isRemoveSuggestion']&&delete _0xe00061[_0x2e554f]['isRemoveSuggestion'],_0xe00061[_0x2e554f]['isRemoved']&&(_0xe00061[_0x2e554f]['isIncorrect']=!0x0));}return _0xe00061['filter'](_0x39c135=>!_0x39c135['isIncorrect']);}['_makeModelFromTape'](_0x34af83,_0x1cad57,_0xbc4562){const _0x16c0e5=new vt(),_0x8626a1=[],_0x47fe81=new Map(),_0x2ff01c=this['editor']['model'],_0x4c3836=_0x2ff01c['schema'],_0x2f1b36=[_0x16c0e5],_0x442507={},_0x44b3ac={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xebe05=null;const _0x54b9bf=[0x0];for(let _0x1bfae2=0x0;_0x1bfae2<_0x34af83['length'];_0x1bfae2++)if('elementStart'===_0x34af83[_0x1bfae2]['type']){_0x34af83[_0x1bfae2]['previousPosition']=_0x2ff01c['createPositionFromPath'](_0x16c0e5,_0x54b9bf);const _0x418e7b=new ut(_0x34af83[_0x1bfae2]['item']['name'],_0x34af83[_0x1bfae2]['item']['getAttributes']());_0x2f1b36[0x0]['_appendChild'](_0x418e7b),_0x54b9bf['push'](0x0),_0x2f1b36['unshift'](_0x418e7b),_0x34af83[_0x1bfae2]['nextPosition']=_0x2ff01c['createPositionFromPath'](_0x16c0e5,_0x54b9bf);}else'elementEnd'===_0x34af83[_0x1bfae2]['type']?(_0x2f1b36['shift'](),_0x34af83[_0x1bfae2]['previousPosition']=_0x2ff01c['createPositionFromPath'](_0x16c0e5,_0x54b9bf),_0x54b9bf['pop'](),_0x54b9bf[_0x54b9bf['length']-0x1]++,_0x34af83[_0x1bfae2]['nextPosition']=_0x2ff01c['createPositionFromPath'](_0x16c0e5,_0x54b9bf)):(_0x34af83[_0x1bfae2]['previousPosition']=_0x2ff01c['createPositionFromPath'](_0x16c0e5,_0x54b9bf),_0xebe05?_0xebe05['_data']+=_0x34af83[_0x1bfae2]['item']['data']:_0xebe05=new gt(_0x34af83[_0x1bfae2]['item']['data'],_0x34af83[_0x1bfae2]['item']['getAttributes']()),_0x34af83[_0x1bfae2+0x1]&&'text'===_0x34af83[_0x1bfae2+0x1]['type']&&_0x44a7ff(_0xebe05,_0x34af83[_0x1bfae2+0x1]['item'])||(_0x2f1b36[0x0]['_appendChild'](_0xebe05),_0xebe05=null),_0x54b9bf[_0x54b9bf['length']-0x1]+=_0x34af83[_0x1bfae2]['item']['offsetSize'],_0x34af83[_0x1bfae2]['nextPosition']=_0x2ff01c['createPositionFromPath'](_0x16c0e5,_0x54b9bf));for(let _0x56ee68=0x0;_0x56ee68<_0x34af83['length'];_0x56ee68++){const _0x535fb5=_0x34af83[_0x56ee68]['previousPosition'],_0x4fb6b9=_0x34af83[_0x56ee68]['nextPosition'];for(const _0x5d3628 of _0x34af83[_0x56ee68]['markersStart'])_0x47fe81['set'](_0x5d3628,{'start':_0x535fb5,'end':null});_0xb783c9('isRemoveSuggestion',_0x56ee68,_0x535fb5,_0x4fb6b9),_0xb783c9('isAddSuggestion',_0x56ee68,_0x535fb5,_0x4fb6b9),_0xb783c9('isRemoved',_0x56ee68,_0x535fb5,_0x4fb6b9),_0xb783c9('isAdded',_0x56ee68,_0x535fb5,_0x4fb6b9);for(const _0x56ef4c of _0x34af83[_0x56ee68]['markersEnd']){const _0x5e4b78=_0x47fe81['get'](_0x56ef4c);_0x5e4b78?_0x5e4b78['end']=_0x4fb6b9:_0x47fe81['set'](_0x56ef4c,{'start':_0x4fb6b9,'end':_0x4fb6b9});}}for(const [_0x22ad23,_0x5567c4]of _0x47fe81){const _0x272b82=this['editor']['model']['createRange'](_0x5567c4['start'],_0x5567c4['end']);_0x16c0e5['markers']['set'](_0x22ad23,_0x272b82);}return _0x8626a1['sort']((_0x270402,_0x541c8b)=>{const _0x19a3e4=_0x16c0e5['markers']['get']('revision:'+_0x270402['id']),_0x47ab5f=_0x16c0e5['markers']['get']('revision:'+_0x541c8b['id']);return _0x19a3e4['start']['isBefore'](_0x47ab5f['start'])?-0x1:_0x19a3e4['start']['isAfter'](_0x47ab5f['start'])?0x1:_0x19a3e4['end']['isBefore'](_0x47ab5f['end'])?-0x1:_0x19a3e4['end']['isAfter'](_0x47ab5f['end'])?0x1:'add'===_0x270402['type']?-0x1:0x1;}),{'root':_0x16c0e5,'changes':_0x8626a1};function _0xb783c9(_0x46ab95,_0x1b00bb,_0x32a4ba,_0x4fc19a){const _0x20c118=!!_0x34af83[_0x1b00bb][_0x46ab95],_0x580728=_0x20c118?_0x34af83[_0x1b00bb][_0x46ab95]['userId']:null,_0x1d1fe2=_0x1b00bb===_0x34af83['length']-0x1,_0x288f38=_0x44b3ac[_0x46ab95][0x0],_0x5d7015=_0x4c3836['isObject'](_0x34af83[_0x1b00bb]['item']);!_0x442507[_0x46ab95]&&_0x20c118?_0x442507[_0x46ab95]={'start':_0x32a4ba,'tapeItem':_0x34af83[_0x1b00bb],'userId':_0x580728,'type':_0x46ab95}:_0x442507[_0x46ab95]&&!_0x20c118?(_0x442507[_0x46ab95]['end']=_0x32a4ba,_0x28104a(_0x442507[_0x46ab95]),_0x442507[_0x46ab95]=null):_0x442507[_0x46ab95]&&_0x20c118&&_0x442507[_0x46ab95]['userId']!==_0x580728&&(_0x442507[_0x46ab95]['end']=_0x32a4ba,_0x288f38&&_0x288f38['userId']===_0x442507[_0x46ab95]['userId']||_0x28104a(_0x442507[_0x46ab95]),_0x442507[_0x46ab95]={'start':_0x32a4ba,'tapeItem':_0x34af83[_0x1b00bb],'userId':_0x580728,'type':_0x46ab95}),_0x442507[_0x46ab95]&&_0x5d7015&&('elementStart'!==_0x34af83[_0x1b00bb]['type']||_0x288f38&&_0x288f38['userId']===_0x580728||_0x44b3ac[_0x46ab95]['unshift']({'userId':_0x580728,'object':_0x34af83[_0x1b00bb]['item'],'change':_0x442507[_0x46ab95]}),'elementEnd'===_0x34af83[_0x1b00bb]['type']&&_0x288f38&&_0x288f38['object']===_0x34af83[_0x1b00bb]['item']&&(_0x44b3ac[_0x46ab95]['shift'](),_0x442507[_0x46ab95]=_0x288f38['change'])),_0x442507[_0x46ab95]&&_0x1d1fe2&&(_0x442507[_0x46ab95]['end']=_0x4fc19a,_0x28104a(_0x442507[_0x46ab95]),_0x442507[_0x46ab95]=null);}function _0x28104a({start:_0x4d3e5a,end:_0x37b370,tapeItem:_0x32d261,userId:_0x2c6cd5,type:_0x2e3ac4}){const _0x2acbac=_0x32d261['item'],_0x1db7e9=_0x2ff01c['schema']['isBlock'](_0x2acbac)&&!_0x2ff01c['schema']['isLimit'](_0x2acbac),_0x8b7f0c=_0x4d3e5a['nodeAfter']==_0x37b370['parent']&&_0x37b370['isAtStart'];if(_0x1db7e9&&_0x8b7f0c)return;const _0x619724=_0x2ff01c['createRange'](_0x4d3e5a,_0x37b370),_0x41df93=_0x1cad57['get'](_0x2c6cd5),_0x5801f6=new r({'author':_0x41df93,'type':'isAdded'==_0x2e3ac4||'isAddSuggestion'==_0x2e3ac4?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2e3ac4||'isRemoveSuggestion'==_0x2e3ac4},'createdAt':new Date(),'rootName':_0xbc4562});_0x8626a1['push'](_0x5801f6),_0x16c0e5['markers']['set']('revision:'+_0x5801f6['id'],_0x619724);}function _0x44a7ff(_0x5c3bcb,_0x5e858a){const _0x3864f3=_0x5c3bcb['getAttributes'](),_0x387d02=_0x5e858a['getAttributes']();for(const _0x23a010 of _0x3864f3){if(_0x23a010[0x1]!==_0x5e858a['getAttribute'](_0x23a010[0x0]))return!0x1;_0x387d02['next']();}return _0x387d02['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x16e7c6=>{const _0x5eef17=_0x16e7c6['markerName']['split'](':')[0x1],_0x254b51=this['_getChangeFromId'](_0x5eef17);if(!_0x254b51)return null;const _0x53dd3b='add'==_0x254b51['type']?'insertion':'deletion',_0x3ec787=['ck-suggestion-marker','ck-suggestion-marker-'+_0x53dd3b];return _0x254b51['data']['isSuggestion']&&_0x3ec787['push']('ck-suggestion-marker-'+_0x53dd3b+'-new'),this['activeChange']==_0x254b51&&_0x3ec787['push']('ck-suggestion-marker--active'),{'classes':_0x3ec787,'attributes':{'data-change-id':_0x5eef17}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e1a91=>{_0x5e1a91['on']('element:pre',(_0xd90484,_0x45b68f,_0x272e8b)=>{const _0x2b464f=_0x45b68f['viewItem']['getChild'](0x0);if(!_0x2b464f||!_0x2b464f['is']('element','code'))return;if(!_0x272e8b['consumable']['consume'](_0x2b464f,{'attributes':['vid_start','vid_end']}))return;const _0x30affb=_0x45b68f['modelRange']['start']['nodeAfter'];_0x272e8b['writer']['setAttribute']('vid_start',_0x2b464f['getAttribute']('vid_start'),_0x30affb),_0x272e8b['writer']['setAttribute']('vid_end',_0x2b464f['getAttribute']('vid_end'),_0x30affb);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x187eac=>{_0x187eac['on']('element',(_0x2d93fd,_0xe9b038,_0x45b991)=>{if(!_0x45b991['consumable']['consume'](_0xe9b038['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xe9b038['modelRange']['isCollapsed'])return;const _0x252d38=_0xe9b038['modelRange']['start']['nodeAfter'];_0x252d38['hasAttribute']('vid_start')||_0x252d38['hasAttribute']('vid')||(_0x45b991['writer']['setAttribute']('vid_start',_0xe9b038['viewItem']['getAttribute']('vid_start'),_0x252d38),_0x45b991['writer']['setAttribute']('vid_end',_0xe9b038['viewItem']['getAttribute']('vid_end'),_0x252d38));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2987c9=>_0x2987c9['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x25f678,[,_0x8d9ff7])=>{['vid_start','vid_end','vid']['includes'](_0x8d9ff7)&&(_0x25f678['return']=!0x0,_0x25f678['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2e9493=>{_0x2e9493['on']('attribute:vid',(_0xc1e343,_0x1893bd,_0x3033c0)=>{if('\x20'!=_0x1893bd['item']['data']||_0x1893bd['item']['parent']['maxOffset']>0x1)return;if(!_0x3033c0['consumable']['consume'](_0x1893bd['item'],_0xc1e343['name']))return;const _0x2bbaba=_0x3033c0['writer'],_0x4ebaf3=_0x3033c0['mapper']['toViewRange'](_0x1893bd['range']);_0x2bbaba['wrap'](_0x4ebaf3,_0x2bbaba['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x373c77){const _0x524054=_0x373c77['plugins']['get']('RevisionViewer');return(_0x516801,_0x3a4e83,_0x417776)=>{const _0x2cb536=_0x3a4e83['markerName']['split'](':')[0x1],_0x3e893b=_0x524054['_getChangeFromId'](_0x2cb536);if(!_0x3e893b)return null;const _0x58dd00='add'==_0x3e893b['type']?'split':'merge';if(!_0x417776['consumable']['test'](_0x3a4e83['markerRange'],_0x516801['name']))return;const _0x134ddd=_0x3a4e83['markerRange']['getWalker'](),_0x545719=_0x3a4e83['markerRange']['start'],_0x2bf2d0=_0x373c77['model']['schema'];let _0x345d58=null,_0x41b01e=null,_0x3e09be=!0x1,_0x29518f=!0x1;for(const _0x303e52 of _0x134ddd){const _0x3c67d5=_0x303e52['item'];_0x3e09be=_0x3e09be||_0x2bf2d0['isContent'](_0x3c67d5);const _0x12b54d=_0x417776['mapper']['toViewElement'](_0x3c67d5);if(_0x12b54d&&_0x12b54d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x303e52['type']&&(_0x2bf2d0['isBlock'](_0x3c67d5)&&!_0x2bf2d0['isLimit'](_0x3c67d5)&&(_0x3c67d5['nextSibling']||_0x545719['isAtEnd']?_0x345d58&&_0x345d58['parent']==_0x3c67d5||(_0x345d58=_0x3c67d5,_0x36daf9(_0x303e52['previousPosition']),_0x29518f=!0x0):_0x41b01e=_0x41b01e||_0x303e52['previousPosition']));}function _0x36daf9(_0x52c9f6){const _0x2623cd=_0x417776['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58dd00}),_0x59dcc1=_0x417776['mapper']['toViewPosition'](_0x52c9f6);_0x3e893b['data']['isSuggestion']&&_0x417776['writer']['addClass']('ck-suggestion-marker-'+_0x58dd00+'-new',_0x2623cd),_0x524054['activeChange']==_0x3e893b&&_0x417776['writer']['addClass']('ck-suggestion-marker--active',_0x2623cd),_0x417776['writer']['insert'](_0x59dcc1,_0x2623cd),_0x417776['mapper']['bindElementToMarker'](_0x2623cd,_0x3a4e83['markerName']);}_0x3e09be||_0x29518f||!_0x41b01e||_0x36daf9(_0x41b01e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x88d0b3,_0x16b597,_0x236483)=>{const _0x223a18=_0x236483['mapper']['markerNameToElements'](_0x16b597['markerName']);if(_0x223a18){for(const _0x220469 of _0x223a18)(_0x220469['hasClass']('ck-suggestion-marker-split')||_0x220469['hasClass']('ck-suggestion-marker-merge'))&&(_0x236483['mapper']['unbindElementFromMarkerName'](_0x220469,_0x16b597['markerName']),_0x236483['writer']['remove'](_0x220469));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x20c743,_0x3f5aff,_0x38e65f)=>{const _0x14515b=_0x3f5aff['markerName']['split'](':')[0x1],_0x55dbdc=this['_getChangeFromId'](_0x14515b);if(!_0x55dbdc)return null;const _0x503016='add'==_0x55dbdc['type']?'split':'merge';if(_0x38e65f['consumable']['test'](_0x3f5aff['markerRange'],_0x20c743['name']))for(const _0x414440 of _0x3f5aff['markerRange']['getItems']()){if(!_0x414440['is']('element','softBreak'))continue;const _0xa04eb4=_0x38e65f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x503016}),_0x11a6d6=_0x38e65f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x414440));_0x55dbdc['data']['isSuggestion']&&_0x38e65f['writer']['addClass']('ck-suggestion-marker-'+_0x503016+'-new',_0xa04eb4),this['activeChange']==_0x55dbdc&&_0x38e65f['writer']['addClass']('ck-suggestion-marker--active',_0xa04eb4),_0x38e65f['writer']['insert'](_0x11a6d6,_0xa04eb4),_0x38e65f['mapper']['bindElementToMarker'](_0xa04eb4,_0x3f5aff['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x453068=>{for(const _0x267241 of this['editor']['model']['document']['getRootNames']()){const _0x1b454d=this['editor']['model']['document']['getRoot'](_0x267241),_0x376a08=this['editor']['editing']['view']['document']['getRoot'](_0x267241);if(_0x376a08){const _0x312d04=_0x1b454d['getAttribute']('revisionHistoryAttachChange');if(_0x453068['removeAttribute']('data-change-id',_0x376a08),_0x453068['removeClass']('ck-revision-history-root-add',_0x376a08),_0x453068['removeClass']('ck-revision-history-root-remove',_0x376a08),_0x453068['removeClass']('ck-revision-history-root--active',_0x376a08),_0x312d04){const _0x363dae=this['_getChangeFromId'](_0x312d04);if(!_0x363dae)return null;_0x453068['setAttribute']('data-change-id',_0x312d04,_0x376a08),_0x453068['addClass']('ck-revision-history-root-'+_0x363dae['type'],_0x376a08),this['activeChange']==_0x363dae&&_0x453068['addClass']('ck-revision-history-root--active',_0x376a08);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3e34c8=>'revision-comment:'+_0x3e34c8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x566157=>'revision-suggestion:'+_0x566157,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x184607=>({'name':'suggestion:'+_0x184607,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x36d449=>{const _0x554edb=_0x36d449['markerName']['split'](':')[0x1];return'insertion'!=_0x554edb&&'deletion'!=_0x554edb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x554edb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5ae92a,_0x4eb89a,_0x1b188d)=>{const _0x13ce3b=_0x1b188d['mapper']['markerNameToElements'](_0x4eb89a['markerName']);if(_0x13ce3b){for(const _0x4c1b74 of _0x13ce3b)_0x4c1b74['is']('uiElement')&&(_0x1b188d['mapper']['unbindElementFromMarkerName'](_0x4c1b74,_0x4eb89a['markerName']),_0x1b188d['writer']['remove'](_0x4c1b74));}},{'priority':'high'});}['_getChangeFromId'](_0x148241){return this['_changeIdToChange']['get'](_0x148241);}['_getViewForChange'](_0x1a9b47){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x1a9b47),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x52e26d,_0xb85c9a,_0x1ca85f,_0x346ec5)=>{_0x346ec5&&this['_balloon']['remove'](_0x346ec5),_0x1ca85f&&(this['_balloon']['add']({'view':_0x1ca85f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x244515=this['editor']['editing'],_0x50fa12=this['_getChangeFromId'](_0x1ca85f['changeId']);let _0x3b32f2;if(_0x50fa12['data']['isOnRoot']){const _0x383154=_0x244515['view']['getDomRoot'](_0x50fa12['rootName']);_0x3b32f2=Array['from'](_0x383154['getClientRects']());}else{const _0x2d6020=this['editor']['model']['markers']['get']('revision:'+_0x1ca85f['changeId']);_0x3b32f2=Array['from'](_0x244515['mapper']['markerNameToElements'](_0x2d6020['name']))['map'](_0x56108b=>_0x244515['view']['domConverter']['mapViewToDom'](_0x56108b))['map'](_0x47ff61=>Array['from'](_0x47ff61['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3b32f2[0x0];return _0x3b32f2['find'](_0x54095e=>_0x54095e['top']-0x3<=this['_activeViewTarget']['y']&&_0x54095e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x54095e['left']-0x3<=this['_activeViewTarget']['x']&&_0x54095e['right']+0x3>=this['_activeViewTarget']['x'])||_0x3b32f2[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x40a4d8,_0x479694,_0x5c5e1a,_0x44c70e)=>{this['activeView']=_0x5c5e1a?this['_getViewForChange'](_0x5c5e1a):null,this['editor']['model']['change'](()=>{const _0x336d1d=this['editor']['editing'];_0x44c70e&&(_0x44c70e['data']['isOnRoot']?_0x336d1d['view']['change'](_0x23d995=>{_0x23d995['removeClass']('ck-revision-history-root--active',_0x336d1d['view']['document']['getRoot'](_0x44c70e['rootName']));}):_0x336d1d['reconvertMarker']('revision:'+_0x44c70e['id'])),_0x5c5e1a&&(_0x5c5e1a['data']['isOnRoot']?_0x336d1d['view']['change'](_0x52d7f4=>{_0x52d7f4['addClass']('ck-revision-history-root--active',_0x336d1d['view']['document']['getRoot'](_0x5c5e1a['rootName']));}):_0x336d1d['reconvertMarker']('revision:'+_0x5c5e1a['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xbcd756,_0x51d3d3)=>{if(this['activeChange'])return;const _0x5d4d60=this['_findChangeIdFromDomTarget'](_0x51d3d3['target']),_0x8731bb=this['_changeIdToChange']['get'](_0x5d4d60);_0x8731bb?(this['_activeViewTarget']={'x':_0x51d3d3['domEvent']['x'],'y':_0x51d3d3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x8731bb)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3b7245,_0x13e4af)=>{const _0x47546b=this['_findChangeIdFromDomTarget'](_0x13e4af['target']),_0x36d3f6=this['_changeIdToChange']['get'](_0x47546b);_0x36d3f6?(this['_activeViewTarget']={'x':_0x13e4af['domEvent']['x'],'y':_0x13e4af['domEvent']['y']},_0x36d3f6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x36d3f6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3a1ab6){do{const _0x2a11eb=_0x3a1ab6['getAttribute']('data-change-id');if(_0x2a11eb)return _0x2a11eb;_0x3a1ab6=_0x3a1ab6['parent'];}while(_0x3a1ab6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xed34bb=>{for(const _0x2aca50 of this['editor']['model']['markers'])_0xed34bb['removeMarker'](_0x2aca50);});}}function X(_0x737f54,_0xfb97af){return(_0x3a254a,_0x1241a2,_0xc8d6f)=>{if(!_0xc8d6f['consumable']['test'](_0x1241a2['markerRange'],_0x3a254a['name']))return;const _0x411d22=_0x1241a2['markerRange']['getWalker'](),_0x4bac59=_0x1241a2['markerRange']['start'],_0x4200c7=_0x737f54['model']['schema'];let _0x56b0e9=null,_0x54a8dd=null,_0x7c7f44=!0x1,_0x18faf1=!0x1;for(const _0x22f34f of _0x411d22){const _0x4ee047=_0x22f34f['item'];_0x7c7f44=_0x7c7f44||_0x4200c7['isContent'](_0x4ee047);const _0xa3221c=_0xc8d6f['mapper']['toViewElement'](_0x4ee047);if(_0xa3221c&&_0xa3221c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22f34f['type']&&(_0x4200c7['isBlock'](_0x4ee047)&&!_0x4200c7['isLimit'](_0x4ee047)&&(_0x4ee047['nextSibling']||_0x4bac59['isAtEnd']?_0x56b0e9&&_0x56b0e9['parent']==_0x4ee047||(_0x56b0e9=_0x4ee047,_0x27847e(_0x22f34f['previousPosition']),_0x18faf1=!0x0):_0x54a8dd=_0x54a8dd||_0x22f34f['previousPosition']));}function _0x27847e(_0x4790fa){const _0x778bc3=_0xc8d6f['mapper']['toViewPosition'](_0x4790fa),_0x459acc=_0xc8d6f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xfb97af});_0xc8d6f['writer']['insert'](_0x778bc3,_0x459acc),_0xc8d6f['mapper']['bindElementToMarker'](_0x459acc,_0x1241a2['markerName']);}_0x7c7f44||_0x18faf1||!_0x54a8dd||_0x27847e(_0x54a8dd);};}class mt extends _0x2eff9e{constructor(_0x318314){super(_0x318314);const _0x5039c4=_0x318314['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5039c4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5039c4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x38843c=this['editor'],_0x309f03=_0x38843c['plugins']['get'](m),_0x5e2dd6=_0x309f03['isReady']?_0x309f03['diff']['newRevisionId']:null;_0x38843c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5e2dd6);}['refresh'](){const {isReady:_0x1a4b9f,isEnabled:_0x4d7c4b,repository:_0x3b270e,diff:_0x267e07}=this['editor']['plugins']['get'](m),_0x5b0dee=_0x267e07&&_0x3b270e['getLaterVisibleRevision'](_0x267e07['newRevisionId']);this['isEnabled']=_0x1a4b9f&&_0x4d7c4b&&Boolean(_0x5b0dee);}}class wt extends _0x2eff9e{['_step'];constructor(_0x4f5a43,{direction:_0x3fbbd1}){super(_0x4f5a43);const _0x25269e=_0x4f5a43['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x3fbbd1?0x1:-0x1,this['listenTo'](_0x25269e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25269e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x25269e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4c3724=this['editor'],_0x3f6d44=_0x4c3724['plugins']['get'](m),{isNavigationMode:_0x25536a,currentChangeNumber:_0x2d2ea2}=_0x3f6d44;let _0x145ba4;if(_0x3f6d44['activeChange']=_0x25536a?_0x3f6d44['diff']['changes']['get'](_0x2d2ea2+this['_step']):_0x3f6d44['diff']['changes']['first'],_0x3f6d44['activeChange']['data']['isOnRoot'])_0x145ba4=_0x4c3724['editing']['view']['getDomRoot'](_0x3f6d44['activeChange']['rootName']);else{const _0x307369=_0x4c3724['model']['markers']['get']('revision:'+_0x3f6d44['activeChange']['id']);_0x145ba4=_0x2386c2(_0x4c3724['editing'],_0x307369);}_0x135bff({'target':_0x145ba4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x263def,currentChangeNumber:_0x16b6b8,numberOfChanges:_0xeaceee,isReady:_0xfcf975,isEnabled:_0x2186a0}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2186a0&&_0xfcf975&&_0xeaceee)&&(!_0x263def||(0x1===this['_step']?_0x16b6b8<_0xeaceee-0x1:_0x16b6b8>0x0));}}class di extends ts{constructor(_0x3a3263){super(_0x3a3263);const _0x3a7e75=this['bindTemplate'],_0x5c7430=new te(_0x3a3263),_0x1d1df4=new te(_0x3a3263);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',(_0x16ad03,_0x5b660a)=>_0x16ad03&&_0x5b660a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x128328,_0x55534c,_0x2b3dc7,_0x11936c)=>{if(!_0x128328)return g(_0x3a3263,'Loading...');if(!_0x2b3dc7)return g(_0x3a3263,'No\x20changes');const _0x4b446c=g(_0x3a3263,'NUMBER_OF_CHANGES',_0x2b3dc7);return _0x11936c?g(_0x3a3263,'X_OF_Y_CHANGES',[_0x55534c+0x1,_0x2b3dc7]):_0x4b446c;}),_0x5c7430['set']({'label':g(_0x3a3263,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xe32006}),_0x1d1df4['set']({'label':g(_0x3a3263,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x412981}),_0x5c7430['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1d1df4['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5c7430['on']('execute',()=>this['fire']('execute','backward')),_0x1d1df4['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',_0x3a7e75['if']('_isStatusLabelVisible','ck-hidden',_0x3038ac=>!_0x3038ac)]},'children':[{'text':_0x3a7e75['to']('isNavigationMode',_0x297c17=>_0x297c17?g(_0x3a3263,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3a3263,'Total')+':\x20')}]},{'text':_0x3a7e75['to']('_statusText')}]},new _0x3adc2c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5c7430,_0x1d1df4]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x47e767{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3bafee=this['editor']['editing']['view'];_0x3bafee['change'](_0x405f8a=>{for(const _0x4db421 of _0x3bafee['document']['roots'])_0x405f8a['addClass'](le,_0x4db421);});}['hide'](){const _0x5cb977=this['editor']['editing']['view'];_0x5cb977['change'](_0xa6eb8f=>{for(const _0x3748c1 of _0x5cb977['document']['roots'])_0xa6eb8f['removeClass'](le,_0x3748c1);});}}class R extends _0x47e767{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x2478a6=this['editor'],_0x526499=_0x2478a6['plugins']['get'](m),_0x9f2c5b=_0x2478a6['plugins']['get'](de);_0x2478a6['ui']['componentFactory']['add']('exitToEditing',_0x4b63c9=>{const _0x3426c5=new te(_0x4b63c9);return _0x3426c5['set']({'label':g(_0x4b63c9,'Back\x20to\x20editing'),'icon':_0x40c474,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3426c5,'execute',()=>{_0x2478a6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3426c5;}),_0x2478a6['ui']['componentFactory']['add']('restoreRevision',_0x1492bc=>{const _0x4913a7=new te(_0x1492bc);return _0x4913a7['set']({'label':g(_0x1492bc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4913a7['bind']('isEnabled')['to'](_0x2478a6['commands']['get']('restoreRevision')),this['listenTo'](_0x4913a7,'execute',()=>_0x2478a6['execute']('restoreRevision')),_0x4913a7;}),_0x2478a6['ui']['componentFactory']['add']('changesNavigation',_0x55508=>{const _0x41bac2=new di(_0x55508),_0x2c8a17=_0x2478a6['commands']['get']('showPreviousChange'),_0x280838=_0x2478a6['commands']['get']('showNextChange');return _0x41bac2['bind']('isBackwardNavigationEnabled')['to'](_0x2c8a17,'isEnabled'),_0x41bac2['bind']('isForwardNavigationEnabled')['to'](_0x280838,'isEnabled'),_0x41bac2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x526499),this['listenTo'](_0x41bac2,'execute',(_0x227fed,_0x303a83)=>{_0x2478a6['execute']('forward'===_0x303a83?'showNextChange':'showPreviousChange');}),_0x41bac2;}),_0x9f2c5b['show'](),_0x526499['on']('change:isReady',(_0x373fb2,_0x385e8d,_0x1da779)=>{_0x1da779?_0x9f2c5b['hide']():_0x9f2c5b['show']();});}}class at extends _0x3aa529{['_resizeObserver']=null;constructor(_0x1b72bc,_0x27d1a8){super(_0x1b72bc,_0x27d1a8);const _0x4da8d0=this['bindTemplate'];this['set']({'label':g(_0x1b72bc,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x1b72bc,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4da8d0['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4a01e1=this['fieldView']['element'];this['_tooltipString']=_0x4a01e1['scrollWidth']>_0x4a01e1['clientWidth']&&_0x4a01e1['value']||'';}}class si extends ts{constructor(_0x556ebc,_0x1cd70d,_0x56d076){super(_0x556ebc);const _0x39b9aa=new _0x14b49c();_0x39b9aa['set']({'content':_0x3164d5,'viewBox':'0\x200\x2011\x2010'});const _0x47600d=['ck','ck-revision-history-sidebar__revision-author'];_0x56d076&&_0x47600d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4e08a3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x556ebc,_0x56d076?'Revision\x20creator':'Revision\x20author')},'children':[_0x39b9aa,_0x1cd70d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x47600d},'children':_0x4e08a3});}}function oi(_0x3fdb75,_0x1cde62){const _0xce57c8=_0x3fdb75['bindTemplate'],_0x49e47b=_0x3fdb75['locale'],_0x1cc817=_0x2cc610(_0x49e47b);_0x1cc817['panelPosition']='sw';const _0x23b70d=function(_0x1633a2,_0x58122b){const _0x13ebb3=function(_0xd0fea6,_0x23a093){const _0x207dd7=_0xd0fea6['locale'],_0x3d8bfd={'Compare\x20against\x20selected':g(_0x207dd7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x207dd7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x207dd7,'Restore\x20this\x20revision')};return _0x23a093['map'](_0x68b7c5=>{const _0x52dfa4=_0x3d8bfd[_0x68b7c5['name']];return _0x52dfa4&&_0x52dfa4!==_0x68b7c5['name']&&(_0x68b7c5['name']=_0x52dfa4),_0x68b7c5;});}(_0x1633a2,_0x58122b),_0x1f86e6=new _0x9c7c74();for(const _0x530717 of _0x13ebb3){const _0x1373f3={'type':'button','model':new to({'label':_0x530717['name'],'class':_0x530717['class'],'withText':!0x0,'role':'menuitem','_action':_0x530717['action']})};_0x1373f3['model']['bind']('isEnabled')['to'](_0x1633a2,'isActionsDropdownOpen',_0x4d477=>'function'!=typeof _0x530717['isEnabled']||(!_0x4d477||_0x530717['isEnabled'](_0x1633a2))),_0x1f86e6['add'](_0x1373f3);}return _0x1f86e6;}(_0x3fdb75,_0x1cde62);return _0x3fdb75['bind']('isActionsDropdownOpen')['to'](_0x1cc817,'isOpen'),_0x1cc817['buttonView']['set']({'label':g(_0x49e47b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28304c}),_0x1cc817['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xce57c8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xce57c8['to'](_0x588426=>_0x588426['stopPropagation']())}}),_0x1cc817['on']('execute',_0x4f38b4=>{_0x3fdb75['isReady']&&'function'==typeof _0x4f38b4['source']['_action']&&_0x4f38b4['source']['_action'](_0x3fdb75);}),_0x481693(_0x1cc817,_0x23b70d,{'role':'menu'}),_0x1cc817['listenTo'](_0x3fdb75,'change:isActionsDropdownOpen',(_0x169d0b,_0x4990fd,_0x2f0928)=>{if(_0x2f0928)for(const _0x1a5177 of _0x1cc817['listView']['items']){const _0x3ce9ca=_0x1a5177['children']['first'],_0x8fa94a=_0x1cde62['find'](_0x305089=>_0x305089['action']===_0x3ce9ca['_action'])['isVisible'];_0x1a5177['isVisible']=void 0x0===_0x8fa94a||_0x8fa94a(_0x3fdb75);}}),_0x1cc817;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x427504,uid as _0x3e0359,Collection as _0x1bc032,logWarning as _0x55144f,FocusTracker as _0x10b0d6,KeystrokeHandler as _0x4d6104,scrollViewportToShowTarget as _0xaaa48,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x569748}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xc896ae,set as _0x3fb37d,unset as _0x32bfa7,isEqual as _0x5e9db9}from'es-toolkit/compat';import{Plugin as _0x294c95,PendingActions as _0x1b0105,Command as _0x2e4eef,ElementApiMixin as _0x473944,Editor as _0x597429}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xaca5ca,getMarkerDomElement as _0x8cde1b,ConfirmMixin as ti,sanitizeEditorConfig as _0x5e675d}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x9fdf14,ViewAttributeElement as _0x123f0b,ViewEmptyElement as _0xd698a4,ViewRawElement as _0x51b3c8,ViewUIElement as _0x341439,ViewDocumentFragment as _0x5ad84a,ViewText as _0x1a0530,ViewElement as _0x12f693,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5eca74,IconChevronUp as _0x2b49d1,IconChevronDown as _0x538803,IconUndo as _0x2a2057,IconUser as _0x1d542d,IconThreeVerticalDots as _0xcb5707}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5d80d2,submitHandler as _0x1b934e,LabeledFieldView as _0x5c3265,createLabeledInputText as _0x8970f,createDropdown as _0x39253b,ListView as _0x3ea8fb,ListItemView as _0x5b7596,ButtonView as te,MenuBarMenuView as _0xc0565c,MenuBarMenuListView as _0x219df3,MenuBarMenuListItemView as _0x5f4184,MenuBarMenuListItemButtonView as _0x31dcc7,ContextualBalloon as _0x5e935b,ToolbarSeparatorView as _0x4cdae1,IconView as _0x535fd4,addListToDropdown as _0x12d551,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x43fc8f}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x427504(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4dc4e4){super(),this['id']=_0x4dc4e4['id']||_0x3e0359(),this['creator']=_0x4dc4e4['creator']||null,this['authors']=_0x4dc4e4['authors']||[],this['diffData']=_0x4dc4e4['diffData']||null,this['toVersion']=_0x4dc4e4['toVersion']||0x0,this['fromVersion']=_0x4dc4e4['fromVersion']||0x0,this['set']('name',_0x4dc4e4['name']||''),this['set']('createdAt',_0x4dc4e4['createdAt']||new Date()),this['set']('attributes',_0x4dc4e4['attributes']||{});}['setName'](_0x405938){this['_update']({'name':_0x405938});}['setAttribute'](_0xab2374,_0x1dfe1b){const _0x751523=_0xc896ae(this['attributes']);_0x3fb37d(_0x751523,_0xab2374,_0x1dfe1b),this['_update']({'attributes':_0x751523});}['removeAttribute'](_0x78e4b0){const _0x3ff244=_0xc896ae(this['attributes']);_0x32bfa7(_0x3ff244,_0x78e4b0),this['_update']({'attributes':_0x3ff244});}['_update'](_0x5d0dfc,_0x461f14=!0x1){let _0x278c0f=!0x1;const _0xc03d9b={'id':this['id']},_0xdd7d1b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x28f74f of _0xdd7d1b){const _0x408e7d=_0x5d0dfc[_0x28f74f];void 0x0!==_0x408e7d&&_0x408e7d!==this[_0x28f74f]&&(this[_0x28f74f]=_0x408e7d,_0xc03d9b[_0x28f74f]=_0x408e7d,_0x278c0f=!0x0);}_0x278c0f&&(_0xc03d9b['authors']&&(_0xc03d9b['authorsIds']=_0xc03d9b['authors']['map'](_0x29d572=>_0x29d572['id']),delete _0xc03d9b['authors']),this['fire']('_update',_0xc03d9b,_0x461f14));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x128274=>_0x128274['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x294c95{['_revisions'];static get['requires'](){return[_0xaca5ca];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5e6a58){super(_0x5e6a58),this['_revisions']=new _0x1bc032();}['afterInit'](){!async function(_0x2b7090){const _0xc9b8e7=_0x14b724([0x39,0x42,0x36,0x47,0x4a,0x45,0x44,0x48,0x31,0x4b,0x4d,0x76,0x66,0x7a,0x73,0x43,0x6f,0x64,0x51,0x6b,0x68,0x6a,0x4c,0x30,0x4f,0x71,0x56,0x67,0x55,0x58,0x5a,0x78,0x69,0x74,0x46,0x63,0x72,0x75,0x49,0x79,0x6c,0x59,0x38,0x65,0x35,0x61,0x4e,0x77,0x52,0x57,0x53,0x62,0x70,0x54,0x50,0x33,0x37,0x6d,0x32,0x41,0x6e,0x34]),_0x4142cd=0xeb829,_0x329441=0x2a3ced53,_0x5b5a3b=0x2a3b8e03^_0x329441,_0x5d239f=window[_0x14b724([0x44,0x61,0x74,0x65])][_0x14b724([0x6e,0x6f,0x77])](),_0x45bc02=_0x2b7090[_0x14b724([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x581929=new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b5f31=>{_0x45bc02[_0x14b724([0x6f,0x6e,0x63,0x65])](_0x14b724([0x72,0x65,0x61,0x64,0x79]),_0x3b5f31);}),_0x569284={[_0x14b724([0x6b,0x74,0x79])]:_0x14b724([0x45,0x43]),[_0x14b724([0x75,0x73,0x65])]:_0x14b724([0x73,0x69,0x67]),[_0x14b724([0x63,0x72,0x76])]:_0x14b724([0x50,0x2d,0x32,0x35,0x36]),[_0x14b724([0x78])]:_0x14b724([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]),[_0x14b724([0x79])]:_0x14b724([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]),[_0x14b724([0x61,0x6c,0x67])]:_0x14b724([0x45,0x53,0x32,0x35,0x36])},_0x307415=_0x45bc02[_0x14b724([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14b724([0x67,0x65,0x74])](_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31f064(){let _0x1a3cb3,_0x48e79c=null,_0x42253a=null;try{if(_0x307415==_0x14b724([0x47,0x50,0x4c]))return _0x14b724([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a3cb3=_0x4328d6(),!_0x1a3cb3)return _0x14b724([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a3cb3[_0x14b724([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42253a=_0x458ec6(_0x1a3cb3[_0x14b724([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a3cb3[_0x14b724([0x6a,0x74,0x69])])),await _0x2ce788()?_0x5cbd18()?_0x59f78e()?_0x14b724([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cd836()?(_0x1a3cb3[_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b724([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48e79c=_0xce3d61(_0x14b724([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1a3cb3[_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b724([0x74,0x72,0x69,0x61,0x6c])&&(_0x48e79c=_0xce3d61(_0x14b724([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45ed62()):_0x14b724([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14b724([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14b724([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5a24c9){return _0x14b724([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59f78e(){const _0x8e20be=[_0x14b724([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14b724([0x74,0x72,0x69,0x61,0x6c])][_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3cb3[_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d239f/0x3e8:0xe10*_0x5b5a3b;return _0x1a3cb3[_0x14b724([0x65,0x78,0x70])]<_0x8e20be;}function _0x5cbd18(){const _0x5402e6=_0x1a3cb3[_0x14b724([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5402e6)return!0x1;if(_0x5402e6[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b724([0x2a])))return!0x0;if(_0x5402e6[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b724([0x52,0x48])))return!0x0;if(_0x5402e6[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b724([0x52,0x52,0x48]))){if(_0xa24f7c())return!0x0;if(_0x5b698c()||_0x762df3())return!0x0;}return!0x1;}function _0x2cd836(){const _0x8e162b=_0x1a3cb3[_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x8e162b||0x0==_0x8e162b[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b4803}=new URL(window[_0x14b724([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x8e162b[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b4803))return!0x0;const _0x2a735f=_0x5b4803[_0x14b724([0x73,0x70,0x6c,0x69,0x74])](_0x14b724([0x2e]));return _0x8e162b[_0x14b724([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a09b9=>_0x5a09b9[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b724([0x2a])))[_0x14b724([0x6d,0x61,0x70])](_0x242b9d=>_0x242b9d[_0x14b724([0x73,0x70,0x6c,0x69,0x74])](_0x14b724([0x2e])))[_0x14b724([0x73,0x6f,0x6d,0x65])](_0x1d0bd0=>_0x2a735f[_0x14b724([0x65,0x76,0x65,0x72,0x79])]((_0x5495aa,_0x13b82e)=>_0x1d0bd0[_0x13b82e]===_0x5495aa||_0x1d0bd0[_0x13b82e]===_0x14b724([0x2a])));}function _0x45ed62(){return _0x48e79c&&_0x42253a?new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x563879,_0x543e4c)=>{_0x48e79c[_0x14b724([0x74,0x68,0x65,0x6e])](_0x563879,_0x543e4c),_0x42253a[_0x14b724([0x74,0x68,0x65,0x6e])](_0x2d3a36=>{_0x2d3a36!=_0x14b724([0x56,0x61,0x6c,0x69,0x64])&&_0x563879(_0x2d3a36);},_0x543e4c);}):_0x48e79c||_0x42253a||_0x14b724([0x56,0x61,0x6c,0x69,0x64]);}}function _0x458ec6(_0x312d0f,_0x51deb8){return new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c1670=>{if(_0x27d605())return _0x4c1670(_0x14b724([0x56,0x61,0x6c,0x69,0x64]));_0x191154(),_0x45bc02[_0x14b724([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14b724([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30db33=!0x1;const _0x5a988f=_0x3e0359();function _0xe9bb5c(_0x195f58){return!!_0x195f58&&(typeof _0x195f58===_0x14b724([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x195f58===_0x14b724([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x195f58[_0x14b724([0x74,0x68,0x65,0x6e])]===_0x14b724([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x195f58[_0x14b724([0x63,0x61,0x74,0x63,0x68])]===_0x14b724([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x265d1c(_0x40cf01){_0x5461de(_0x40cf01)[_0x14b724([0x74,0x68,0x65,0x6e])](_0x508cb3=>{if(!_0x508cb3||_0x508cb3[_0x14b724([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14b724([0x6f,0x6b]))return _0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x312065(_0x4a13e9(_0x5a988f+_0x51deb8))!=_0x508cb3[_0x14b724([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14b724([0x56,0x61,0x6c,0x69,0x64]);})[_0x14b724([0x74,0x68,0x65,0x6e])](_0x2188a9=>(_0x11e1fb(),_0x2188a9),()=>{const _0x133986=_0x5d9827();return null==_0x133986?(_0x11e1fb(),_0x14b724([0x56,0x61,0x6c,0x69,0x64])):_0x14b724(_0x5d239f-_0x133986>(0xe306953^_0x329441)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14b724([0x74,0x68,0x65,0x6e])](_0x4c1670)[_0x14b724([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c1670(_0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x198a9f=0x2a0a03d3^_0x329441;function _0x11e1fb(){const _0x23fc3b=_0x14b724([0x6c,0x6c,0x63,0x74,0x2d])+_0x312065(_0x4a13e9(_0x312d0f)),_0x21a0fa=_0x2b4343(_0x312065(window[_0x14b724([0x4d,0x61,0x74,0x68])][_0x14b724([0x63,0x65,0x69,0x6c])](_0x5d239f/_0x198a9f)));window[_0x14b724([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b724([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23fc3b,_0x21a0fa);}function _0x5d9827(){const _0xf7da2e=_0x14b724([0x6c,0x6c,0x63,0x74,0x2d])+_0x312065(_0x4a13e9(_0x312d0f)),_0x2ae5d0=window[_0x14b724([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b724([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf7da2e);return _0x2ae5d0?window[_0x14b724([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b4343(_0x2ae5d0),0x10)*_0x198a9f:null;}function _0x5461de(_0x902b6){return new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x152d3f,_0x37d22d)=>{_0x902b6[_0x14b724([0x74,0x68,0x65,0x6e])](_0x152d3f,_0x37d22d),window[_0x14b724([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37d22d,0x2a3d3993^_0x329441);});}}_0x45bc02[_0x14b724([0x6f,0x6e])](_0x14b724([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b15b7,_0x4294c2)=>{if(_0x4294c2[0x0]!=_0x312d0f)return _0x4c1670(_0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4294c2[0x1]={..._0x4294c2[0x1],[_0x14b724([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a988f};},{[_0x14b724([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b724([0x68,0x69,0x67,0x68])}),_0x45bc02[_0x14b724([0x6f,0x6e])](_0x14b724([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36fdfc=>{_0xe9bb5c(_0x36fdfc[_0x14b724([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30db33=!0x0,_0x265d1c(_0x36fdfc[_0x14b724([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14b724([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b724([0x6c,0x6f,0x77])}),_0x581929[_0x14b724([0x74,0x68,0x65,0x6e])](()=>{_0x30db33||_0x4c1670(_0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27d605(){return _0x45bc02[_0x14b724([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b724([0x76,0x69,0x65,0x77])][_0x14b724([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14b724([0x61,0x75,0x74,0x6f]);}function _0x191154(){_0x45bc02[_0x14b724([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b724([0x76,0x69,0x65,0x77])][_0x14b724([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14b724([0x61,0x75,0x74,0x6f]);}}function _0xce3d61(_0x3ede1a){const _0x11b90a=[new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58d9d5=>setTimeout(_0x58d9d5,0x2a35d39f^_0x329441)),_0x581929[_0x14b724([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a49c0=>{const _0x282338=0x2a3ced54^_0x329441,_0x5f242a=_0x2b7090[_0x14b724([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3550be(){_0x5f242a[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x282338&&_0x1a49c0();}_0x3550be(),_0x5f242a[_0x14b724([0x6f,0x6e])](_0x14b724([0x61,0x64,0x64]),_0x3550be);})),new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41866c=>{function _0x6636e0(){for(const _0x59cc0c in window)if(window[_0x14b724([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x14b724([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x59cc0c))&&window[_0x59cc0c]==_0x4142cd)return _0x41866c();_0x45bc02[_0x14b724([0x73,0x74,0x61,0x74,0x65])]!=_0x14b724([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x14b724([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6636e0,0x2a3cfedb^_0x329441);}_0x348091(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x6636e0();})];return window[_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14b724([0x72,0x61,0x63,0x65])](_0x11b90a)[_0x14b724([0x74,0x68,0x65,0x6e])](()=>_0x3ede1a);}async function _0x499240(){if(await _0x581929,_0x348091(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11c58c=_0x2b7090[_0x14b724([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x233b72=_0x2b7090[_0x14b724([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])](_0x11c58c[_0x14b724([0x69,0x64])]),_0x1a1553=_0x42b4da(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1a1553[_0x14b724([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11c58c['id'],_0x233b72?_0x233b72['id']:null,!0x0),_0x1a1553[_0x14b724([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14b724([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1a1553[_0x14b724([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1a1553[_0x14b724([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4ac587,void(_0x1a1553[_0x14b724([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4ac587);}if(_0x348091(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x50557a=_0x42b4da(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x50557a[_0x14b724([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14b724([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x50557a[_0x14b724([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x50557a[_0x14b724([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4ac587,_0x50557a[_0x14b724([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4ac587;}_0x45bc02[_0x14b724([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b724([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac587,_0x45bc02[_0x14b724([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b724([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac587,_0x45bc02[_0x14b724([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14b724([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa24f7c(){return _0x348091(_0x14b724([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x42b4da(_0x14b724([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14b724([0x73,0x74,0x61,0x74,0x65])]==_0x14b724([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b698c(){return _0x348091(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x762df3(){return _0x348091(_0x14b724([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x107154(_0x50482a){const _0x4dda05=_0x4a5e3d();_0x45bc02[_0x4dda05]=_0x14b724([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])+_0x50482a,_0x50482a[_0x14b724([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x14b724([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4a5e3d()]=_0x4142cd),_0x50482a!=_0x14b724([0x56,0x61,0x6c,0x69,0x64])&&_0x499240();}function _0x4a5e3d(){const _0x4754a8=window[_0x14b724([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14b724([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14b724([0x6e,0x6f,0x77])]())[_0x14b724([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14b724([0x2e]),'');let _0x42e8a3=_0x14b724([0x42]);for(let _0x18f756=0x0;_0x18f756<_0x4754a8[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18f756+=0x2){let _0x5dba1f=window[_0x14b724([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4754a8[_0x14b724([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18f756,_0x18f756+0x2));_0x5dba1f>=_0xc9b8e7[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5dba1f-=_0xc9b8e7[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42e8a3+=_0xc9b8e7[_0x5dba1f];}return _0x42e8a3;}function _0x4328d6(){const _0xaf8490=_0x307415[_0x14b724([0x73,0x70,0x6c,0x69,0x74])](_0x14b724([0x2e]));if(0x3!=_0xaf8490[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1393e1(_0xaf8490[0x1]);function _0x1393e1(_0x5500a2){const _0x216a8b=_0x3de60c(_0x5500a2);return _0x216a8b&&_0x1d99a2()?_0x216a8b:null;function _0x1d99a2(){const _0x11a21f=_0x216a8b[_0x14b724([0x6a,0x74,0x69])],_0x341362=window[_0x14b724([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11a21f[_0x14b724([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11a21f[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ece5b={..._0x216a8b,[_0x14b724([0x6a,0x74,0x69])]:_0x11a21f[_0x14b724([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x11a21f[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ece5b[_0x14b724([0x76,0x63])],_0x4a13e9(_0x5ece5b)==_0x341362;}}}async function _0x2ce788(){let _0x443b01=!0x0;try{const _0x30c7b4=_0x307415[_0x14b724([0x73,0x70,0x6c,0x69,0x74])](_0x14b724([0x2e])),[_0x291d3f,_0x9d6819,_0x5e4e27]=_0x30c7b4;return _0x182127(_0x291d3f),await _0x6daeec(_0x291d3f,_0x9d6819,_0x5e4e27),_0x443b01;}catch(_0x2d4e4f){return!0x1;}function _0x182127(_0xdea6cf){const _0x3baea8=_0x3de60c(_0xdea6cf);_0x3baea8&&_0x3baea8[_0x14b724([0x61,0x6c,0x67])]==_0x14b724([0x45,0x53,0x32,0x35,0x36])||(_0x443b01=!0x1);}async function _0x6daeec(_0x4f4221,_0x4e6d8a,_0x22cbc4){const _0x4884b9=window[_0x14b724([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14b724([0x66,0x72,0x6f,0x6d])](_0x598349(_0x22cbc4),_0x2496b2=>_0x2496b2[_0x14b724([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42343c=new window[(_0x14b724([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14b724([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f4221+_0x14b724([0x2e])+_0x4e6d8a),_0x168bbf=window[_0x14b724([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14b724([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x168bbf)return;const _0x38c703=await _0x168bbf[_0x14b724([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14b724([0x6a,0x77,0x6b]),_0x569284,{[_0x14b724([0x6e,0x61,0x6d,0x65])]:_0x14b724([0x45,0x43,0x44,0x53,0x41]),[_0x14b724([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14b724([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14b724([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x168bbf[_0x14b724([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14b724([0x6e,0x61,0x6d,0x65])]:_0x14b724([0x45,0x43,0x44,0x53,0x41]),[_0x14b724([0x68,0x61,0x73,0x68])]:{[_0x14b724([0x6e,0x61,0x6d,0x65])]:_0x14b724([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38c703,_0x4884b9,_0x42343c)||(_0x443b01=!0x1);}}function _0x3de60c(_0x89bc23){return _0x89bc23[_0x14b724([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14b724([0x65,0x79]))?JSON[_0x14b724([0x70,0x61,0x72,0x73,0x65])](_0x598349(_0x89bc23)):null;}function _0x598349(_0x488b54){return window[_0x14b724([0x61,0x74,0x6f,0x62])](_0x488b54[_0x14b724([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14b724([0x2b]))[_0x14b724([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14b724([0x2f])));}function _0x4a13e9(_0x257827){let _0x5e090e=0x1505;function _0x30c60c(_0x38df42){for(let _0x52e091=0x0;_0x52e091<_0x38df42[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52e091++){const _0x2aa905=_0x38df42[_0x14b724([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x52e091);_0x5e090e=(_0x5e090e<<0x5)+_0x5e090e+_0x2aa905,_0x5e090e&=_0x5e090e;}}function _0x15e8ea(_0x241ef2){Array[_0x14b724([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x241ef2)?_0x241ef2[_0x14b724([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15e8ea):_0x241ef2&&typeof _0x241ef2==_0x14b724([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14b724([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x241ef2)[_0x14b724([0x73,0x6f,0x72,0x74])]()[_0x14b724([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53e099,_0x5b9c6a])=>{_0x30c60c(_0x53e099),_0x15e8ea(_0x5b9c6a);}):_0x30c60c(window[_0x14b724([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x241ef2));}return _0x15e8ea(_0x257827),_0x5e090e>>>0x0;}function _0x312065(_0x5b9a40){return _0x5b9a40[_0x14b724([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14b724([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14b724([0x30]));}function _0x2b4343(_0x57cc45){return _0x57cc45[_0x14b724([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14b724([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14b724([0x6a,0x6f,0x69,0x6e])]('');}function _0x348091(_0x487385){return _0x45bc02[_0x14b724([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14b724([0x68,0x61,0x73])](_0x487385);}function _0x42b4da(_0x2a032a){return _0x45bc02[_0x14b724([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14b724([0x67,0x65,0x74])](_0x2a032a);}function _0x4ac587(){}function _0x14b724(_0x3a3a5a){return _0x3a3a5a['map'](_0x18e5ed=>String['fromCharCode'](_0x18e5ed))['join']('');}_0x107154(await _0x31f064());}(this);}['createRevision'](_0x4d5027){const _0x263f41=this['editor']['plugins']['get']('Users');return new h({'id':_0x4d5027['id'],'name':_0x4d5027['name'],'creator':_0x4d5027['creatorId']?_0x263f41['getUser'](_0x4d5027['creatorId']):null,'diffData':_0x4d5027['diffData']||_0x4d5027['data'],'authors':_0x4d5027['authorsIds']['map'](_0x27e5a5=>_0x263f41['getUser'](_0x27e5a5)),'createdAt':new Date(_0x4d5027['createdAt']),'attributes':_0x4d5027['attributes'],'fromVersion':_0x4d5027['fromVersion'],'toVersion':_0x4d5027['toVersion']});}['addRevision'](_0x14e2a0,_0x27d3d8=0x0){this['_revisions']['add'](_0x14e2a0,_0x27d3d8);}['getRevision'](_0x55f47f){return this['_revisions']['get'](_0x55f47f);}['getRevisions'](_0x17fb65={'toJSON':!0x1}){const _0x31841c=Array['from'](this['_revisions']);return _0x31841c['reverse'](),_0x17fb65['toJSON']?_0x31841c['map'](_0xa660a9=>_0xa660a9['toJSON']()):_0x31841c;}['getIndex'](_0x154803){return this['_revisions']['getIndex'](_0x154803);}['getEarlierVisibleRevision'](_0x216d96){const [,_0x2c1cd4]=this['getRevisionsIterator'](_0x216d96,{'direction':'earlier'});return _0x2c1cd4;}['getLaterVisibleRevision'](_0xed62cf){const [,_0x4305df]=this['getRevisionsIterator'](_0xed62cf,{'direction':'later'});return _0x4305df;}['getRevisionsInDiff'](_0x513508){const _0x3802be=[];for(const _0x3bdc61 of this['getRevisionsIterator'](_0x513508['newRevisionId']))if(_0x3802be['push'](_0x3bdc61),_0x3bdc61['id']===_0x513508['oldRevisionId'])break;return _0x3802be;}*['getRevisionsIterator'](_0x5d4b3d,{direction:_0x5a3767='earlier',filter:_0x14406e=()=>!0x0}={}){const _0x56e098='earlier'===_0x5a3767?0x1:-0x1;let _0x5aabd2=this['_revisions']['get'](_0x5d4b3d),_0x3604ef=this['getIndex'](_0x5aabd2);for(yield _0x5aabd2;_0x5aabd2;){if(_0x3604ef+=_0x56e098,_0x5aabd2=this['getRevision'](_0x3604ef),!_0x5aabd2)return;_0x14406e(_0x5aabd2)&&(yield _0x5aabd2);}}}class V extends _0x294c95{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x9fdf14,'c'],[_0x123f0b,'a'],[_0xd698a4,'e'],[_0x51b3c8,'r'],[_0x341439,'u']]);['_typeCharToViewClass']=new Map([['c',_0x9fdf14],['a',_0x123f0b],['e',_0xd698a4],['r',_0x51b3c8],['u',_0x341439]]);async['loadRevisionData'](_0x576038,_0x2df0f5){if(_0x576038['diffData']||!_0x2df0f5)return;const _0x2e342b=this['editor']['config']['get']('collaboration.channelId'),_0x218948=await _0x2df0f5['getRevision']({'channelId':_0x2e342b,'revisionId':_0x576038['id']});_0x576038['diffData']=_0x218948['diffData'];}['getRevisionDocumentData'](_0xf950ff){const _0x4b33a3={};for(const _0x59edf7 in _0xf950ff['diffData']){if(_0xf950ff['diffData'][_0x59edf7]['attachChange']&&!_0xf950ff['diffData'][_0x59edf7]['attachChange']['isAttached'])continue;const _0x3aa5f4=this['_removeRevisionMarkers'](JSON['parse'](_0xf950ff['diffData'][_0x59edf7]['insertions'])),_0x50928d=this['editor']['editing']['view']['document'],_0xff6ee4=new _0x5ad84a(_0x50928d,_0x3aa5f4['map'](_0x10f0be=>this['_getViewFromDiffObj'](_0x10f0be,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4b33a3[_0x59edf7]=this['editor']['data']['processor']['toData'](_0xff6ee4),this['editor']['data']['processor']['useFillerType']('default');}return _0x4b33a3;}['getRevisionRootsAttributes'](_0x5c6e4a){const _0x29afe5={};for(const _0x192bb4 in _0x5c6e4a['diffData'])_0x5c6e4a['diffData'][_0x192bb4]['attachChange']&&!_0x5c6e4a['diffData'][_0x192bb4]['attachChange']['isAttached']||(_0x29afe5[_0x192bb4]=_0x5c6e4a['diffData'][_0x192bb4]['attributesAfter']||{});return _0x29afe5;}['_getTypeCharForViewElement'](_0x4fd32d){return this['_viewClassToTypeChar']['get'](_0x4fd32d['constructor']);}['_getViewFromDiffObj'](_0x3b1590,_0x2accf2){const _0x536c15=this['editor']['editing']['view']['document'];if('string'==typeof _0x3b1590)return new _0x1a0530(_0x536c15,_0x3b1590);{let _0x18dae3,_0x53e197;_0x53e197='u'==_0x3b1590['type']||'r'==_0x3b1590['type']?[]:_0x3b1590['children']['map'](_0x53e7d9=>this['_getViewFromDiffObj'](_0x53e7d9,_0x2accf2));const _0x53f04a=this['_typeCharToViewClass']['get'](_0x3b1590['type'])||_0x12f693,_0x5231ed=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x18dae3=new _0x53f04a(_0x536c15,_0x3b1590['name'],_0x3b1590['attributes'],_0x53e197),'u'==_0x3b1590['type']){const _0x469b2f=_0x3b1590['children'][0x0];if(_0x18dae3['render']=function(_0x1be937){const _0x482310=_0x1be937['createElement']('div');return _0x482310['innerHTML']=_0x469b2f,_0x482310['childNodes'][0x0];},_0x2accf2){const _0xafa05f=new _0x5ad84a(_0x536c15);_0xafa05f['_appendChild'](_0x18dae3);const _0x2af0d7=Array['from'](_0x5231ed['viewChildrenToDom'](_0xafa05f,{'bind':!0x1})),_0x48d540=_0x5231ed['domDocument']['createElement']('div');_0x48d540['append'](..._0x2af0d7),_0x18dae3=Array['from'](_0x5231ed['domChildrenToView'](_0x48d540))[0x0];}}else{if('r'==_0x3b1590['type']){const _0x27aec7=_0x3b1590['children'][0x0];if(_0x18dae3['render']=function(_0x4f7b7f){_0x4f7b7f['innerHTML']=_0x27aec7;},_0x2accf2){const _0x4ec155=new _0x5ad84a(_0x536c15);_0x4ec155['_appendChild'](_0x18dae3);const _0x57ae0e=Array['from'](_0x5231ed['viewChildrenToDom'](_0x4ec155,{'bind':!0x1})),_0x512bea=_0x5231ed['domDocument']['createElement']('div');_0x512bea['append'](..._0x57ae0e);const _0x56dde2=Array['from'](_0x5231ed['domChildrenToView'](_0x512bea));_0x56dde2['length']>0x1?_0x18dae3['_appendChild'](_0x56dde2):_0x18dae3=_0x56dde2[0x0];}}}if(_0x3b1590['customProperties']){for(const [_0x470e95,_0x1b9eac]of _0x3b1590['customProperties'])_0x18dae3['_setCustomProperty'](_0x470e95,_0x1b9eac);}const _0x50a5cb=_0x3b1590['fillerOffset']||null;return _0x18dae3['getFillerOffset']=()=>_0x50a5cb,_0x18dae3;}}['_makeModelFromViewString'](_0x21cc1a){const _0x568ae9=JSON['parse'](_0x21cc1a),_0x411886=this['editor']['editing']['view']['document'],_0x57df5e=new _0x5ad84a(_0x411886,_0x568ae9['map'](_0x3272d0=>this['_getViewFromDiffObj'](_0x3272d0,!0x0)));return this['editor']['data']['toModel'](_0x57df5e);}['_removeRevisionMarkers'](_0x375938){return(_0x375938=_0x375938['filter'](_0x5eb24a=>!_0x5eb24a['name']||'revision-start'!==_0x5eb24a['name']&&'revision-end'!==_0x5eb24a['name']))['forEach'](_0x3fc40a=>{'string'!=typeof _0x3fc40a&&(_0x3fc40a['children']=this['_removeRevisionMarkers'](_0x3fc40a['children']),_0x3fc40a['attributes']=_0x3fc40a['attributes']['filter'](_0x363e1e=>!_0x363e1e[0x0]['startsWith']('data-revision-')));}),_0x375938;}}function g(_0x4d92ef,_0x527220,_0x1635d5){const t=_0x4d92ef['t'];switch(_0x527220){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'},_0x1635d5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1635d5);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x294c95{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xaca5ca,I,V,_0x1b0105];}constructor(_0xaef3d1){super(_0xaef3d1),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x16817c=_0x3e0359();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x16817c},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1f8628=this['repository']['getRevision'](0x0),_0x146250=_0x1f8628&&null===_0x1f8628['creator']?_0x1f8628:null;if(this['_continueCurrentRevision']=!!_0x146250&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1d9181=this['_source']['getCurrentRevisionId'](),_0x515852=this['repository']['getRevision'](_0x1d9181);if(_0x515852)this['_startingVersion']=_0x515852['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5efe67=this['_source']['history']['_operations']['find'](_0x1665ae=>!_0x1665ae['_isInit']),_0x51ee12=_0x5efe67?_0x5efe67['baseVersion']:this['_source']['history']['version'];_0x1f8628?(_0x1f8628['toVersion']<_0x51ee12&&_0x1f8628['_update']({'toVersion':_0x51ee12}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x146250['id'],this['_startingVersion']=_0x146250['fromVersion']):(this['_startingVersion']=_0x1f8628['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x51ee12,this['_continueCurrentRevision']=!0x1);}}else _0x146250&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x146250['toVersion'],this['editor']['model']['document']['history']['version']),_0x146250['fromVersion']===_0x146250['toVersion']?(0x0!==_0x146250['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x146250['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x146250['id'],this['_startingVersion']=_0x146250['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',_0x4d0a3e=>!_0x4d0a3e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x30abb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4af352;for(const _0x1d8fca in _0x30abb8){const _0x3a14dc=_0x1d8fca,_0x133ad6=_0x30abb8[_0x3a14dc];if('revisionHistoryLicenseKeyValid'==_0x133ad6||'revisionHistoryLicenseKeyInvalid'==_0x133ad6||'revisionHistoryLicenseKeyExpired'==_0x133ad6||'revisionHistoryLicenseKeyDomainLimit'==_0x133ad6||'revisionHistoryLicenseKeyNotAllowed'==_0x133ad6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x133ad6||'revisionHistoryLicenseKeyTrialLimit'==_0x133ad6||'revisionHistoryLicenseKeyUsageLimit'==_0x133ad6){delete _0x30abb8[_0x3a14dc],_0x4af352=_0x133ad6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4af352&&_0x30abb8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4af352&&_0x30abb8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4af352&&_0x30abb8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4af352&&_0x30abb8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4af352&&_0x30abb8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4af352&&_0x30abb8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4af352&&_0x30abb8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x296d5a=this['repository']['getRevision'](0x0),_0x121a34=await this['getRevisionDocumentData'](_0x296d5a),_0x599ec9=await this['getRevisionRootsAttributes'](_0x296d5a);this['_replaceEditorDataWithRevisionData'](_0x121a34,_0x599ec9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x52051e){this['_source']=_0x52051e;}async['update'](){const _0x6f7dd3=await this['_source']['getLatestVersion']();if(_0x6f7dd3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x35f9fc=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x6f7dd3});_0x35f9fc['authors']=_0x35f9fc['authorsIds']['map'](_0x4ae119=>this['editor']['plugins']['get']('Users')['getUser'](_0x4ae119)),this['currentRevision']['_update'](_0x35f9fc);}}async['saveRevision'](_0x5d126={},_0xea3f66=null){const _0x493911=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xea3f66>this['currentRevision']['toVersion']&&(_0xea3f66=null),null===_0xea3f66&&(_0xea3f66=await this['_source']['getLatestVersion']());const _0x5ac8dd=this['_getFromVersion'](_0xea3f66),_0x16481d=this['buildRevisionData']({'from':_0x5ac8dd,'to':_0xea3f66});if(this['currentRevision']['toVersion']<_0xea3f66){const _0x2f825f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xea3f66,'to':_0xea3f66});_0x2f825f['authors']=[],_0x2f825f['authorsIds']=[],_0x2f825f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2f825f,!0x0),delete _0x2f825f['authors'],_0x493911['push'](_0x2f825f);}_0x5d126['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5d126['name']=_0x5d126['name']||null,_0x5d126['id']=_0x5d126['id']||_0x3e0359(),_0x5d126={..._0x5d126,..._0x16481d};const _0x7be01=this['addRevisionData'](_0x5d126);_0x493911['push'](_0x5d126);const _0x29c943=this['repository']['getIndex'](_0x7be01);if(0x0!==_0x29c943){const _0x12f002=this['repository']['getRevision'](_0x29c943-0x1);if(_0x12f002['fromVersion']!==_0xea3f66){const _0x6af506=this['_revisionDataBuilder']['getData'](_0xea3f66,_0x12f002['toVersion']),_0x153877={'id':_0x12f002['id'],'diffData':_0x6af506['diffData'],'authorsIds':_0x6af506['authorsIds'],'authors':_0x6af506['authorsIds']['map'](_0x3be0a6=>this['editor']['plugins']['get']('Users')['getUser'](_0x3be0a6)),'fromVersion':_0xea3f66};_0x12f002===this['currentRevision']&&(_0x153877['createdAt']=new Date(_0x5d126['createdAt']['getTime']()+0xa)),_0x12f002['_update'](_0x153877,!0x0),delete _0x153877['authors'],_0x493911['push'](_0x153877);}}if(this['adapter']){for(const _0xf47ba3 of _0x493911)this['_bufferUpdate'](_0xf47ba3['id'],_0xf47ba3,!0x0);this['sendBufferedUpdates']();}return _0x7be01;}['addRevisionData'](_0x457f06){const _0x2591eb=this['repository']['createRevision'](_0x457f06);return this['adapter']&&_0x2591eb['on']('_update',(_0x499702,_0x18873a,_0x3274fa)=>{_0x3274fa||(this['_bufferUpdate'](_0x18873a['id'],_0x18873a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2591eb,this['_findInsertionIndex'](_0x2591eb)),_0x2591eb;}async['getRevisionDocumentData'](_0x1913aa){return await this['_utils']['loadRevisionData'](_0x1913aa,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1913aa);}async['getRevisionRootsAttributes'](_0xbcf919){return await this['_utils']['loadRevisionData'](_0xbcf919,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xbcf919);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x17dc03=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3abebf=0x0;_0x3abebf<_0x17dc03['length'];_0x3abebf++){const _0x186c4e=_0x17dc03[_0x3abebf];let _0x231bd8=!0x1;for(const _0xf2aaef of Object['keys'](_0x186c4e))void 0x0===_0x186c4e[_0xf2aaef]?delete _0x186c4e[_0xf2aaef]:'id'!==_0xf2aaef&&(_0x231bd8=!0x0);_0x231bd8||(_0x17dc03[_0x3abebf]=null);}if(_0x17dc03=_0x17dc03['filter'](_0x4c2282=>null!==_0x4c2282),!_0x17dc03['length'])return;for(let _0x1318d6=0x0;_0x1318d6<_0x17dc03['length'];_0x1318d6++){const _0x45e568=_0x17dc03[_0x1318d6];void 0x0!==_0x45e568['fromVersion']&&void 0x0===_0x45e568['toVersion']&&(_0x45e568['toVersion']=this['repository']['getRevision'](_0x45e568['id'])['toVersion']),void 0x0!==_0x45e568['toVersion']&&void 0x0===_0x45e568['fromVersion']&&(_0x45e568['fromVersion']=this['repository']['getRevision'](_0x45e568['id'])['fromVersion']);}const _0x553e00=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x17dc03,_0x553e00)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3f35f7=>{if(_0x3f35f7){for(const _0x141efa of _0x3f35f7)this['setRevisionData']({'id':_0x141efa['id'],'createdAt':_0x141efa['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x17b2f0=null,from:_0x52d29a=null,to:_0x556c16=null}){_0x52d29a=null!==_0x52d29a?_0x52d29a:_0x17b2f0['fromVersion'],_0x556c16=null!==_0x556c16?_0x556c16:_0x17b2f0['toVersion'];const _0x74b76e=this['_revisionDataBuilder']['getData'](_0x52d29a,_0x556c16),_0x30173e={'diffData':_0x74b76e['diffData'],'authorsIds':_0x74b76e['authorsIds'],'fromVersion':_0x52d29a,'toVersion':_0x556c16};if(!_0x17b2f0||_0x556c16!==_0x17b2f0['toVersion']){const _0x2fd474=_0x556c16-0x1,_0x3bf2eb=this['_source']['history']['getOperation'](_0x2fd474);_0x30173e['createdAt']=_0x3bf2eb&&_0x3bf2eb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x52d29a===this['_loadedStateData']['fromVersion']){for(const _0xe9a3ff of this['_loadedStateData']['authors'])_0x30173e['authorsIds']['includes'](_0xe9a3ff['id'])||_0x30173e['authorsIds']['push'](_0xe9a3ff['id']);}return _0x30173e;}['_bufferUpdate'](_0x590ea0,_0x991139,_0x2e0c18){if(this['_bufferedUpdates']['has'](_0x590ea0)){const _0x2c1071=this['_bufferedUpdates']['get'](_0x590ea0);_0x991139=_0x2e0c18?{..._0x2c1071,..._0x991139}:{..._0x991139,..._0x2c1071};}this['_bufferedUpdates']['set'](_0x590ea0,_0x991139);}['setRevisionData'](_0x3c22ee){const _0x2fb666=this['repository']['getRevision'](_0x3c22ee['id']);if(_0x3c22ee['createdAt']&&(_0x3c22ee['createdAt']=new Date(_0x3c22ee['createdAt'])),_0x3c22ee['authorsIds']){const _0x2ac6d3=this['editor']['plugins']['get']('Users');_0x3c22ee['authors']=_0x3c22ee['authorsIds']['map'](_0x29fe2e=>_0x2ac6d3['getUser'](_0x29fe2e));}_0x2fb666['_update'](_0x3c22ee,!0x0);}['_createInitialRevision'](_0x5b363a){const _0xd2914d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xd2914d)this['_initialRevisionId']=_0xd2914d['id'];else{const _0x58f5ce=!this['editor']['model']['document']['roots']['find'](_0x4dad30=>this['editor']['model']['hasContent'](_0x4dad30)),_0x25e2d3=this['editor']['plugins']['get']('Users')['me']['id'],_0x5056d3=g(this['editor']['locale'],_0x58f5ce?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5b363a,'to':_0x5b363a,'id':this['_initialRevisionId'],'name':_0x5056d3,'creatorId':_0x25e2d3});}}['_createCurrentRevision'](_0x55a6f9){const _0x5287f7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5287f7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x55a6f9,'to':_0x55a6f9,'id':_0x5287f7,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3a100b,_0x33c70f){let _0x25a9d6=this['editor']['config']['get']('initialData'),_0x13c7e0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x25a9d6){_0x25a9d6={};for(const _0x10839e of this['editor']['model']['document']['getRootNames']())_0x25a9d6[_0x10839e]='';}if('string'==typeof _0x25a9d6&&(_0x25a9d6={'main':_0x25a9d6}),void 0x0===_0x13c7e0){_0x13c7e0={};for(const _0x209338 of this['editor']['model']['document']['getRootNames']())_0x13c7e0[_0x209338]={};}let _0x2bf4fd=!0x1;const _0x351c19=Object['keys'](_0x25a9d6),_0x557c75=Object['keys'](_0x3a100b);for(const _0x50d5f3 of _0x351c19){if(_0x25a9d6[_0x50d5f3]!==_0x3a100b[_0x50d5f3]&&''!==_0x25a9d6[_0x50d5f3]['trim']()){_0x2bf4fd=!0x0;break;}if(!_0x5e9db9(_0x13c7e0[_0x50d5f3],_0x33c70f[_0x50d5f3])&&Object['keys'](_0x13c7e0[_0x50d5f3])['length']>0x0){_0x2bf4fd=!0x0;break;}}_0x2bf4fd||(_0x2bf4fd=_0x557c75['some'](_0x3b97ba=>!this['editor']['model']['document']['getRoot'](_0x3b97ba))),_0x2bf4fd&&_0x55144f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x25a9d6,'editorRootsAttributes':_0x13c7e0,'revisionData':_0x3a100b,'revisionRootsAttributes':_0x33c70f}),this['editor']['config']['set']('initialData',_0x3a100b),this['editor']['config']['set']('rootsAttributes',_0x33c70f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x21b45b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x21b45b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1b719a){const _0x5202ca=this['repository']['getRevisions']();_0x5202ca['reverse']();let _0x5912ef=0x0;for(;_0x5912ef<_0x5202ca['length'];){const _0x8eec0e=_0x5202ca[_0x5912ef];if(_0x8eec0e===this['currentRevision']){_0x5912ef++;continue;}if(_0x8eec0e['id']===this['_initialRevisionId'])break;const _0x1d340a=_0x1b719a['toVersion']-_0x8eec0e['toVersion']||_0x1b719a['fromVersion']-_0x8eec0e['fromVersion'];if(_0x1d340a>0x0)break;if(_0x1d340a<0x0)_0x5912ef++;else{if(!_0x1b719a['creator']&&_0x8eec0e['creator'])break;if(_0x8eec0e['creator']||!_0x1b719a['creator']){if(_0x1b719a['createdAt']>_0x8eec0e['createdAt'])break;_0x5912ef++;}else _0x5912ef++;}}return _0x5912ef;}['_getFromVersion'](_0x3b7dc0){const _0x7f0e86=this['repository']['getRevisions']();_0x7f0e86['reverse'](),_0x7f0e86['shift']();const _0x22e686=_0x7f0e86['find'](_0x40d271=>_0x40d271['toVersion']<=_0x3b7dc0)['toVersion'];return _0x22e686<this['_startingVersion']?this['_startingVersion']:_0x22e686;}['_makeRevision']({name:_0x527998,from:_0x297051,to:_0x1b7dc0,creatorId:_0x28536e,id:_0x80bdf1}){const _0x57ca2e=this['buildRevisionData']({'from':_0x297051,'to':_0x1b7dc0});_0x57ca2e['name']=_0x527998,_0x57ca2e['creatorId']=_0x28536e,_0x57ca2e['id']=_0x80bdf1;const _0xc645d2=this['addRevisionData'](_0x57ca2e);return this['adapter']&&this['_bufferUpdate'](_0x57ca2e['id'],_0x57ca2e,!0x0),_0xc645d2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3f4a3a){this['editor']=_0x3f4a3a,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'](_0x1a8c43){this['source']=_0x1a8c43;const _0x1d48e0=new Map(),_0x5dd1a2=new Map(),_0x2ccec5=this['editor']['model']['document']['roots']['map'](_0x3bf032=>_0x3bf032['rootName']);for(const _0x1aebe7 of _0x2ccec5){const _0x24a1fa=this['editor']['model']['document']['getRoot'](_0x1aebe7),_0x282366=N(_0x24a1fa);_0x1d48e0['set'](_0x1aebe7,_0x282366),_0x5dd1a2['set'](_0x1aebe7,Object['fromEntries'](_0x24a1fa['getAttributes']()));}const _0x2a0432=Array['from'](this['editor']['model']['markers'])['map'](_0x3fc54d=>[_0x3fc54d['name'],_0x3fc54d['getRange']()]),_0x4d75d9=this['source']['version'];this['_saveMetaData'](_0x4d75d9,_0x1d48e0,_0x2a0432,_0x5dd1a2),this['_startingRevisionId']=this['_revisionId'];const _0x4e5dda=new Map(),_0x19727c=new Map();for(const _0x115cab of _0x2ccec5){const _0x51cade=P(_0x115cab);_0x4e5dda['set'](_0x115cab,_0x51cade),_0x19727c['set'](_0x115cab,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4e5dda,[],_0x19727c);}['getData'](_0x1f7fc5,_0x5424e4){if(this['_lastFrom']===_0x1f7fc5&&this['_lastTo']<=_0x5424e4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5424e4,!0x0);else{if(!this['_savedMetaData']['has'](_0x1f7fc5)){const _0x267924=this['_getPreviousFrom'](_0x1f7fc5);this['_calculateMetaData'](_0x267924,_0x1f7fc5,!0x1);}this['_calculateMetaData'](_0x1f7fc5,_0x5424e4,!0x0);}return this['_lastFrom']=_0x1f7fc5,this['_lastTo']=_0x5424e4,this['_getState']();}['loadState'](_0x2977f9){const _0x580ddc=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2977f9['fromVersion'],this['_lastTo']=_0x2977f9['toVersion'];for(const _0x5d8616 in _0x2977f9['diffData']){const _0x54aee2=_0x2977f9['diffData'][_0x5d8616]['attachChange'],_0x83cb7e=_0xc896ae(_0x2977f9['diffData'][_0x5d8616]['attributesBefore'])||{},_0x10a9c5=_0x580ddc['_makeModelFromViewString'](_0x2977f9['diffData'][_0x5d8616]['deletions']);_0x10a9c5['rootName']=_0x5d8616,_0x10a9c5['_isAttached']=!_0x54aee2||!_0x54aee2['isAttached'],_0x10a9c5['isAttached']=()=>_0x10a9c5['_isAttached'],this['_baseRoots']['set'](_0x5d8616,_0x10a9c5),this['_baseRootsAttributes']['set'](_0x5d8616,_0x83cb7e),_0x54aee2&&this['_touchedRoots']['set'](_0x5d8616,_0x54aee2);const _0x11fa66=this['_makeIdsRoot'](_0x10a9c5);this['_baseIdsRoots']['set'](_0x5d8616,_0x11fa66);for(const [_0x2e4c40,_0x14aa8d]of _0x10a9c5['markers']){if(!_0x2e4c40['startsWith']('revision:'))continue;const _0x1a5839=_0x2e4c40['split'](':')[0x2];for(const _0xc3052 of _0x14aa8d['getWalker']({'singleCharacters':!0x0})){const _0x1413ca=this['_getVidAttributeName'](_0xc3052),_0x4d85e9='elementEnd'==_0xc3052['type']?_0xc3052['previousPosition']['path']['slice'](0x0,-0x1):_0xc3052['previousPosition']['path'],_0x235477=_0x11fa66['getNodeByPath'](_0x4d85e9)['getAttribute'](_0x1413ca);this['_touched']['set'](_0x235477,{'userId':_0x1a5839});}}}this['_startingRevisionId']=this['_revisionId'];const _0x57cc4f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2fb14d=>!this['_touched']['has'](_0x2fb14d));let _0x46e329=0x0;const _0x206c6c=new Map();for(const _0x5ce8c7 in _0x2977f9['diffData']){const _0x17d293=_0x2977f9['diffData'][_0x5ce8c7]['attachChange'],_0x424903=_0xc896ae(_0x2977f9['diffData'][_0x5ce8c7]['attributesAfter'])||{},_0x33f27f=_0x580ddc['_makeModelFromViewString'](_0x2977f9['diffData'][_0x5ce8c7]['insertions']);_0x33f27f['rootName']=_0x5ce8c7,_0x33f27f['_isAttached']=!_0x17d293||_0x17d293['isAttached'],_0x33f27f['isAttached']=()=>_0x33f27f['_isAttached'],this['_diffRoots']['set'](_0x5ce8c7,_0x33f27f),this['_diffRootsAttributes']['set'](_0x5ce8c7,_0x424903);const _0xcda320=this['_makeIdsRoot'](_0x33f27f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5ce8c7,_0xcda320),_0x206c6c['set'](_0x5ce8c7,_0x33f27f['isAttached']()?_0x424903:{});for(const [_0x3d69a7,_0x56c8ef]of _0x33f27f['markers']){if(!_0x3d69a7['startsWith']('revision:'))continue;const _0x14658a=_0x3d69a7['split'](':')[0x2];for(const _0x39a6c4 of _0x56c8ef['getWalker']({'singleCharacters':!0x0})){const _0x5638fe=this['_getVidAttributeName'](_0x39a6c4),_0x24ca44=this['_revisionId']++,_0x303452='elementEnd'==_0x39a6c4['type']?_0x39a6c4['previousPosition']['path']['slice'](0x0,-0x1):_0x39a6c4['previousPosition']['path'];_0xcda320['getNodeByPath'](_0x303452)['_setAttribute'](_0x5638fe,_0x24ca44),this['_touched']['set'](_0x24ca44,{'userId':_0x14658a});}}for(const _0x3dc3da of this['editor']['model']['createRangeIn'](_0x33f27f)['getWalker']({'singleCharacters':!0x0})){const _0x40b1e6=this['_getVidAttributeName'](_0x3dc3da),_0x37ff02='elementEnd'==_0x3dc3da['type']?_0x3dc3da['previousPosition']['path']['slice'](0x0,-0x1):_0x3dc3da['previousPosition']['path'],_0x39aa3d=_0xcda320['getNodeByPath'](_0x37ff02);_0x39aa3d['getAttribute'](_0x40b1e6)>0x0||_0x39aa3d['_setAttribute'](_0x40b1e6,_0x57cc4f[_0x46e329++]);}for(const [_0x22d1a7,_0x4042dc]of _0x33f27f['markers'])_0x22d1a7['startsWith']('revision:')||this['_markers']['set'](_0x22d1a7,_0x4042dc);}const _0x5912cf=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5912cf),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5912cf,0x1));const _0x4a7665=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4a7665),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4a7665,0x1));const _0x2ee700=Array['from'](this['_diffRoots'])['map'](([_0x2c96c8,_0x441373])=>[_0x2c96c8,N(_0x441373)]);this['_saveMetaData'](this['_lastTo'],_0x2ee700,this['_markers'],_0x206c6c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d89a5,_0x1debec,_0x59bd55,_0x542f37){const _0x4deca7=new Map(_0x1debec),_0x28d80a=new Map(_0xc896ae(_0x542f37)),_0x75f8f4=new Map();for(const [_0x500abe,_0x29a587]of _0x59bd55)_0x75f8f4['set'](_0x500abe,{'start':_0x29a587['start']['clone'](),'end':_0x29a587['end']['clone'](),'rootName':_0x29a587['root']['rootName']});this['_savedMetaData']['set'](_0x4d89a5,{'roots':_0x4deca7,'markers':_0x75f8f4,'rootsAttributes':_0x28d80a});}['_removeMetaData'](_0x167210){this['_savedMetaData']['delete'](_0x167210);}['_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'](_0x229746,_0x1cb8d4=null){let _0xf77a6f=null;_0x229746['is']('documentFragment')||(_0xf77a6f=new ut(_0x229746['name'],{'vid_start':null===_0x1cb8d4?this['_revisionId']++:_0x1cb8d4++}));const _0x2ad967=[];for(const _0x192df2 of _0x229746['getChildren']())if(_0x192df2['is']('element')){_0x2ad967['push'](this['_makeIdsRoot'](_0x192df2,_0x1cb8d4));const _0x49716e=_0x2ad967[_0x2ad967['length']-0x1];null!==_0x1cb8d4&&(_0x1cb8d4=_0x49716e['is']('element','$text')?_0x49716e['getAttribute']('vid')+0x1:_0x49716e['getAttribute']('vid_end')+0x1);}else{for(let _0x833b8d=0x0;_0x833b8d<_0x192df2['offsetSize'];_0x833b8d++)_0x2ad967['push'](new ut('$text',{'vid':null===_0x1cb8d4?this['_revisionId']++:_0x1cb8d4++}));}if(_0x229746['is']('documentFragment')){const _0x188f1d=P(_0x229746['rootName']);return _0x188f1d['_insertChild'](0x0,_0x2ad967),_0x188f1d;}return _0xf77a6f['_setAttribute']('vid_end',null===_0x1cb8d4?this['_revisionId']++:_0x1cb8d4++),_0xf77a6f['_insertChild'](0x0,_0x2ad967),_0xf77a6f;}['_calculateMetaData'](_0x51e13f,_0x542bb4,_0xe269af){this['_reset']();const {roots:_0x114241,markers:_0x335aee,rootsAttributes:_0x45179f}=this['_savedMetaData']['get'](_0x51e13f);this['_baseRoots']=new Map(_0x114241),this['_baseRootsAttributes']=new Map(_0xc896ae(_0x45179f));for(const [_0x4015e8,_0x2b22ae]of this['_baseRoots'])if('$graveyard'!==_0x4015e8&&(this['_diffRoots']['set'](_0x4015e8,N(_0x2b22ae)),this['_diffRootsAttributes']=new Map(_0xc896ae(_0x45179f)),_0xe269af)){const _0xf0ffe=this['_revisionId'];this['_idsRoots']['set'](_0x4015e8,this['_makeIdsRoot'](_0x2b22ae)),this['_baseIdsRoots']['set'](_0x4015e8,this['_makeIdsRoot'](_0x2b22ae,_0xf0ffe));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xe269af&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x107a7f,_0x3c9bce]of _0x335aee){const _0x17ee2c=this['_baseRoots']['get'](_0x3c9bce['rootName']),_0xa1b785=this['_diffRoots']['get'](_0x3c9bce['rootName']),_0x4bf3b9=new lt(this['_fixPosition'](_0x3c9bce['start'],_0x17ee2c),this['_fixPosition'](_0x3c9bce['end'],_0x17ee2c)),_0x46dbeb=this['_fixRange'](_0x4bf3b9,_0xa1b785);_0x17ee2c['markers']['set'](_0x107a7f,_0x4bf3b9),this['_markers']['set'](_0x107a7f,_0x46dbeb);}this['_applyOperations'](_0x51e13f,_0x542bb4,_0xe269af);}['_applyOperations'](_0x37eb78,_0x419aae,_0xc06c0f){for(const _0x279bc8 of this['source']['getOperations'](_0x37eb78,_0x419aae))this['_handleOperation'](_0x279bc8,_0xc06c0f);for(const _0x5d04a7 of this['_diffRoots']['values']())_0x5d04a7['markers']['clear']();for(const [_0x3cf36a,_0x456d09]of this['_markers']){this['_diffRoots']['get'](_0x456d09['root']['rootName'])['markers']['set'](_0x3cf36a,_0x456d09['clone']());}const _0x4719b1=new Map(),_0x46b8c3=new Map();for(const [_0x4d7e7f,_0x544ba6]of this['_diffRoots'])_0x4719b1['set'](_0x4d7e7f,N(_0x544ba6)),_0x46b8c3['set'](_0x4d7e7f,this['_diffRootsAttributes']['get'](_0x4d7e7f));this['_saveMetaData'](_0x419aae,_0x4719b1,this['_markers'],_0x46b8c3);}['_getPreviousFrom'](_0x5084e3){const _0x302d0e=Array['from'](this['_savedMetaData']['keys']());_0x302d0e['sort']((_0x2e4225,_0x1ac882)=>_0x2e4225-_0x1ac882),_0x302d0e['reverse']();for(const _0x5ce3e4 of _0x302d0e)if(_0x5ce3e4<_0x5084e3)return _0x5ce3e4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4e6442,_0x29987){const _0x511bf3=Array['from'](_0x29987['markers'])['map'](([_0x445b0f,_0x6ee6b6])=>[_0x445b0f,this['_fixRange'](_0x6ee6b6,_0x4e6442)]);_0x4e6442['markers']=new Map(_0x511bf3);}['_transformMarkers'](_0x4246bc){for(const _0x1a2547 of this['_markers']['values']()){const _0x31e5d5=_0x1a2547['getTransformedByOperation'](_0x4246bc),_0x46d637=lt['_createFromRanges'](_0x31e5d5);_0x1a2547['start']=_0x46d637['start'],_0x1a2547['end']=_0x46d637['end'];}}['_handleOperation'](_0x11c75c,_0x21dd0b){if('addRoot'!=_0x11c75c['type']&&'detachRoot'!=_0x11c75c['type']){if('insert'==_0x11c75c['type']){const _0x12da7b=_0x11c75c['position']['root']['rootName'];this['_diffRoots']['has'](_0x12da7b)||(this['_diffRoots']['set'](_0x12da7b,P(_0x12da7b,!0x0)),this['_diffRootsAttributes']['set'](_0x12da7b,{}),_0x21dd0b&&this['_idsRoots']['set'](_0x12da7b,P(_0x12da7b,!0x0)));}else{if('addRootAttribute'==_0x11c75c['type']||'removeRootAttribute'==_0x11c75c['type']||'changeRootAttribute'==_0x11c75c['type'])return void this['_handleRootAttributeOperation'](_0x11c75c);'marker'==_0x11c75c['type']&&this['_handleMarkerOperation'](_0x11c75c);}if('marker'!==_0x11c75c['type']){const _0x20164d=this['_cloneOperation'](_0x11c75c,this['_diffRoots']);_0x20164d['_execute'](),this['_transformMarkers'](_0x20164d);}if(_0x21dd0b)switch(_0x11c75c['type']){case'insert':this['_handleInsertOperation'](_0x11c75c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x11c75c);break;case'merge':this['_handleMergeOperation'](_0x11c75c);break;case'split':this['_handleSplitOperation'](_0x11c75c);}}else this['_handleRootOperation'](_0x11c75c,_0x21dd0b);}['_cloneOperation'](_0xcc63e2,_0x5a36f8){const _0x255c8c=_0xcc63e2['clone']();return _0x255c8c['_authorId']=_0xcc63e2['_authorId'],this['_fixOperation'](_0x255c8c,_0x5a36f8),_0x255c8c;}['_getBaseVids'](_0x2eba29){return _0x2eba29['map'](_0xd3819e=>{const _0x5a37d0=this['_getVidAttributeName'](_0xd3819e);return Number(_0xd3819e['item']['getAttribute'](_0x5a37d0));});}['_generateTape'](_0x5b375a,_0x2adfff){if(_0x5b375a['is']('element','$text'))_0x2adfff['push']({'item':_0x5b375a,'type':'text'});else{_0x5b375a['is']('element')&&_0x2adfff['push']({'item':_0x5b375a,'type':'elementStart'});for(const _0x215097 of _0x5b375a['getChildren']())this['_generateTape'](_0x215097,_0x2adfff);_0x5b375a['is']('element')&&_0x2adfff['push']({'item':_0x5b375a,'type':'elementEnd'});}return _0x2adfff;}['_getState'](){const _0x471059=new Map(this['_touched']),_0x1ed7b3=new Map(_0x471059),_0x21d90d=new Map(),_0x5e62fb={'insertions':{},'deletions':{}},_0x132a84={'insertions':{},'deletions':{}},_0x2f9630=new Map(),_0x1d18f4=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1d18f4['delete']('$graveyard');for(const _0x2e9fd2 of _0x1d18f4){const _0x384c75=this['_diffRoots']['get'](_0x2e9fd2)||P(_0x2e9fd2,!0x1),_0x572ce6=this['_baseRoots']['get'](_0x2e9fd2)||P(_0x2e9fd2,!0x1);_0x384c75['isAttached']()||_0x572ce6['isAttached']()?(_0x5e62fb['insertions'][_0x2e9fd2]=N(_0x384c75),_0x5e62fb['deletions'][_0x2e9fd2]=N(_0x572ce6),this['_copyMarkers'](_0x5e62fb['deletions'][_0x2e9fd2],_0x572ce6),this['_copyMarkers'](_0x5e62fb['insertions'][_0x2e9fd2],_0x384c75),_0x132a84['insertions'][_0x2e9fd2]=this['_generateTape'](this['_idsRoots']['get'](_0x2e9fd2),[]),_0x132a84['deletions'][_0x2e9fd2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2e9fd2)||P(_0x2e9fd2,!0x1),[])):_0x1d18f4['delete'](_0x2e9fd2);}for(const _0x2bb65a of _0x1d18f4){const _0x472da9=_0x132a84['insertions'][_0x2bb65a];for(const _0x31f796 of _0x472da9){const _0x5a3726=this['_getVidAttributeName'](_0x31f796),_0x5b3902=_0x31f796['item']['getAttribute'](_0x5a3726);_0x1ed7b3['delete'](_0x5b3902),_0x5b3902>=this['_startingRevisionId']&&_0x21d90d['set'](_0x5b3902,_0x471059['get'](_0x5b3902));}}for(const _0x21b116 of _0x1d18f4){const _0x19f84c=_0x132a84['insertions'][_0x21b116],_0x51ed05=this['_getBaseVids'](_0x132a84['deletions'][_0x21b116]);let _0x15a517=0x0;for(const _0xd32b82 of _0x19f84c){const _0x569ed4=this['_getVidAttributeName'](_0xd32b82),_0xb7a69b=_0xd32b82['item']['getAttribute'](_0x569ed4);if(!_0x21d90d['has'](_0xb7a69b)&&!_0x2f9630['has'](_0xb7a69b)){if(_0x1ed7b3['has'](_0xb7a69b))_0x15a517++;else{if(_0xb7a69b!=_0x51ed05[_0x15a517]){const _0x186d22=_0x471059['get'](_0xb7a69b)||_0x471059['get'](_0x51ed05[_0x15a517]);for(;_0xb7a69b!=_0x51ed05[_0x15a517];)_0x1ed7b3['has'](_0x51ed05[_0x15a517])||(_0x2f9630['set'](_0x51ed05[_0x15a517],_0x186d22),_0x471059['set'](_0x51ed05[_0x15a517],_0x186d22)),_0x15a517++;}_0x15a517++;}}}}for(const _0x2dc814 of _0x1d18f4){const _0x2cbf7e=_0x132a84['insertions'][_0x2dc814];for(const _0x87cf48 of _0x2cbf7e){const _0x3aa937=this['_getVidAttributeName'](_0x87cf48),_0xe68132=_0x87cf48['item']['getAttribute'](_0x3aa937);if(_0x2f9630['has'](_0xe68132)){const _0x41a132=_0x2f9630['get'](_0xe68132);_0x1ed7b3['has'](_0xe68132)||_0x1ed7b3['set'](_0xe68132,{..._0x41a132}),_0x21d90d['set'](_0xe68132,{..._0x41a132});}}}for(const _0x1e330b of _0x1ed7b3['keys']())_0x1e330b>=this['_startingRevisionId']&&_0x1ed7b3['delete'](_0x1e330b);const _0x1198ee=new Map();for(const _0x1236df of _0x1d18f4){let _0x1cfca5=_0x132a84['insertions'][_0x1236df];for(const _0x36c830 of _0x1cfca5)if(_0x36c830['item']['is']('element','tableCell')){const _0x30d3da=this['_getVidAttributeName'](_0x36c830),_0x1315e4=_0x36c830['item']['getAttribute'](_0x30d3da);if(_0x21d90d['has'](_0x1315e4)){const _0x42fe8b=_0x36c830['item']['parent']['parent']['getAttribute']('vid_start'),_0x5035ed=_0x1198ee['get'](_0x42fe8b)||new Set();_0x5035ed['add'](_0x21d90d['get'](_0x1315e4)['userId']),_0x1198ee['set'](_0x42fe8b,_0x5035ed);}}_0x1cfca5=_0x132a84['deletions'][_0x1236df];for(const _0x19fc40 of _0x1cfca5)if(_0x19fc40['item']['is']('element','tableCell')){const _0x5f2d16=this['_getVidAttributeName'](_0x19fc40),_0x108d5d=_0x19fc40['item']['getAttribute'](_0x5f2d16);if(_0x1ed7b3['has'](_0x108d5d)){const _0x46ec6b=_0x19fc40['item']['parent']['parent']['getAttribute']('vid_start'),_0x24eac1=_0x1198ee['get'](_0x46ec6b)||new Set();_0x24eac1['add'](_0x1ed7b3['get'](_0x108d5d)['userId']),_0x1198ee['set'](_0x46ec6b,_0x24eac1);}}for(const _0x1af476 of _0x1198ee['keys']())(_0x21d90d['has'](_0x1af476)||_0x1ed7b3['has'](_0x1af476))&&_0x1198ee['delete'](_0x1af476);}for(const _0x31e8be of _0x1d18f4){const _0x27bf67=_0x132a84['insertions'][_0x31e8be];let _0x1b4023=null,_0x295bb0=null;for(const _0x4ca52c of _0x27bf67){const _0x721e59=this['_getVidAttributeName'](_0x4ca52c),_0x5caa09=_0x4ca52c['item']['getAttribute'](_0x721e59),_0x4d9c66=_0x1198ee['get'](_0x5caa09);_0x4d9c66&&'elementStart'==_0x4ca52c['type']&&(_0x1b4023=Array['from'](_0x4d9c66)[0x0],_0x295bb0=_0x4ca52c['item']['getAttribute']('vid_end')),_0x1b4023&&(_0x1ed7b3['set'](_0x5caa09,{'userId':_0x1b4023}),_0x21d90d['set'](_0x5caa09,{'userId':_0x1b4023})),_0x5caa09==_0x295bb0&&(_0x1b4023=null,_0x295bb0=null);}}const _0x2645ee={},_0x48e201=new Set();for(const _0x40ee2f of _0x1d18f4){const _0x3094d3=_0x5e62fb['deletions'][_0x40ee2f],_0x36e94c=_0x5e62fb['insertions'][_0x40ee2f];for(const {userId:_0x152cb6}of this['_touchedMarkers']['values']())null!==_0x152cb6&&_0x48e201['add'](_0x152cb6);for(const {userId:_0x39ec3b}of this['_touchedRoots']['values']())null!==_0x39ec3b&&_0x48e201['add'](_0x39ec3b);this['_markChanges'](_0x36e94c,_0x132a84['insertions'][_0x40ee2f],_0x21d90d,'insertion',_0x48e201),this['_markChanges'](_0x3094d3,_0x132a84['deletions'][_0x40ee2f],_0x1ed7b3,'deletion',_0x48e201),_0x2645ee[_0x40ee2f]={'insertions':this['_prepareViewToSave'](_0x36e94c),'deletions':this['_prepareViewToSave'](_0x3094d3),'attachChange':this['_touchedRoots']['get'](_0x40ee2f)||null,'attributesBefore':_0xc896ae(this['_baseRootsAttributes']['get'](_0x40ee2f))||{},'attributesAfter':_0xc896ae(this['_diffRootsAttributes']['get'](_0x40ee2f))};}return{'diffData':_0x2645ee,'authorsIds':Array['from'](_0x48e201)};}['_processRootBeforeSave'](_0x37359e){for(const [,_0x5de3b8]of _0x37359e['markers']){const _0x369758=_0x5de3b8['start']['getAncestors']()['filter'](_0x49116d=>'tableCell'==_0x49116d['name']);for(const _0x4fbcec of _0x369758)0x1==_0x4fbcec['childCount']&&_0x4fbcec['getChild'](0x0)['is']('element','paragraph')&&_0x4fbcec['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4e6a03){this['_processRootBeforeSave'](_0x4e6a03);const _0x448ad6=this['editor']['data']['toView'](_0x4e6a03,{}),_0x1bd2e3=Array['from'](_0x448ad6['getChildren']())['map'](_0x544e2f=>this['_getViewJson'](_0x544e2f));return JSON['stringify'](_0x1bd2e3);}['_getViewJson'](_0xd3fbbc){if(_0xd3fbbc['is']('$text'))return _0xd3fbbc['data'];{const _0x57e3a1=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4292e8=_0xd3fbbc,_0x5d7767=this['editor']['data']['htmlProcessor']['domConverter'],_0x2775be={'type':_0x57e3a1['_getTypeCharForViewElement'](_0x4292e8),'name':_0x4292e8['name'],'attributes':Array['from'](_0x4292e8['getAttributes']()),'children':Array['from'](_0x4292e8['getChildren']())['map'](_0x136fd0=>this['_getViewJson'](_0x136fd0))};if(_0xd3fbbc['is']('uiElement')&&'$comment'!=_0xd3fbbc['name']){const _0x470ec8=_0xd3fbbc['render'](_0x5d7767['domDocument'],_0x5d7767);_0x2775be['children']['push'](_0x470ec8['outerHTML']);}else{if(_0xd3fbbc['is']('rawElement')){const _0x4b0222=_0x5d7767['domDocument']['createElement'](_0x4292e8['name']);_0xd3fbbc['render'](_0x4b0222,_0x5d7767),_0x2775be['children']['push'](_0x4b0222['innerHTML']);}}const _0x3f2649=Array['from'](_0x4292e8['getCustomProperties']());_0x3f2649['length']>0x0&&(_0x2775be['customProperties']=_0x3f2649);const _0x391b63=_0x4292e8['getFillerOffset']();return null!==_0x391b63&&(_0x2775be['fillerOffset']=_0x391b63),_0x2775be;}}['_markChanges'](_0x15e35d,_0x2ef939,_0x165e66,_0x2d581b,_0x185bb9){let _0x21ef24=null,_0x45c5d6=null,_0x52bc78=0x0;const _0x148846=this['editor']['model'];for(let _0x5d46ba=0x0;_0x5d46ba<_0x2ef939['length'];_0x5d46ba++){const _0x16496e=this['_getVidAttributeName'](_0x2ef939[_0x5d46ba]),_0x563e94=_0x2ef939[_0x5d46ba]['item']['getAttribute'](_0x16496e),_0x393707=_0x165e66['get'](_0x563e94),_0x430fc0=_0x5d46ba==_0x2ef939['length']-0x1;(!_0x21ef24&&_0x393707&&(_0x21ef24=_0x393707,_0x45c5d6=_0x2ef939[_0x5d46ba]),_0x21ef24&&(!_0x393707||_0x393707['userId']!=_0x21ef24['userId']))&&(_0x3749d3(_0x393707,F(_0x45c5d6,_0x15e35d,_0x148846),F(_0x2ef939[_0x5d46ba],_0x15e35d,_0x148846)),_0x21ef24=_0x393707||null,_0x45c5d6=_0x393707?_0x2ef939[_0x5d46ba]:null),_0x21ef24&&_0x430fc0&&_0x3749d3(_0x393707,F(_0x45c5d6,_0x15e35d,_0x148846),B(_0x2ef939[_0x5d46ba],_0x15e35d,_0x148846));}function _0x3749d3(_0x38ee40,_0x2f9bc6,_0x88d4f7){const _0x450f72=_0x21ef24['userId'],_0x86b905='revision:'+_0x2d581b+':'+_0x450f72+':'+_0x52bc78++,_0x35c00e=_0x148846['createRange'](_0x2f9bc6,_0x88d4f7);_0x15e35d['markers']['set'](_0x86b905,_0x35c00e),null!==_0x450f72&&_0x185bb9['add'](_0x450f72);}}['_getVidAttributeName'](_0x427f5c){switch(_0x427f5c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5ed803,_0xed8f02){_0x5ed803['baseVersion']=null;for(const _0x2491be in _0x5ed803){const _0x19fef9=_0x5ed803[_0x2491be];if(_0x19fef9 instanceof ft){const _0x119283=_0xed8f02['get'](_0x19fef9['root']['rootName']);_0x5ed803[_0x2491be]=this['_fixPosition'](_0x19fef9,_0x119283);}if(_0x19fef9 instanceof lt){const _0x46cfdc=_0xed8f02['get'](_0x19fef9['root']['rootName']);_0x5ed803[_0x2491be]=this['_fixRange'](_0x19fef9,_0x46cfdc);}'root'===_0x2491be&&(_0x5ed803['root']=_0xed8f02['get'](_0x5ed803['root']['rootName']));}}['_fixRange'](_0x5cb294,_0x59f157){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5cb294['start'],_0x59f157),this['_fixPosition'](_0x5cb294['end'],_0x59f157));}['_fixPosition'](_0x3d851e,_0x25431b){return this['editor']['model']['createPositionFromPath'](_0x25431b,_0x3d851e['path'],_0x3d851e['stickiness']);}['_handleInsertOperation'](_0x327033){const _0x1bc4db=this['_idsRoots']['get'](_0x327033['position']['root']['rootName']),_0x310860=this['_fixPosition'](_0x327033['position'],_0x1bc4db),_0x85d0a5=null===_0x327033['_authorId']?null:_0x327033['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fd740=_0x310860['parent'],_0x53e166=this['_revisionId'],_0x14ea66=[];for(const _0x4c0ae4 of _0x327033['nodes'])if(_0x4c0ae4['is']('element'))_0x14ea66['push'](this['_makeIdsRoot'](_0x4c0ae4));else{for(let _0x4a4a7e=0x0;_0x4a4a7e<_0x4c0ae4['offsetSize'];_0x4a4a7e++)_0x14ea66['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x34f7c7=this['_revisionId'];for(let _0x4dfc17=_0x53e166;_0x4dfc17<_0x34f7c7;_0x4dfc17++)this['_touched']['set'](_0x4dfc17,{'userId':_0x85d0a5});_0x1fd740['_insertChild'](_0x310860['offset'],_0x14ea66);}['_handleMoveOperation'](_0x14370e){(_0x14370e=this['_cloneOperation'](_0x14370e,this['_idsRoots']))['_execute']();const _0x346cb1=null===_0x14370e['_authorId']?null:_0x14370e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22dbcc=_0x14370e['getMovedRangeStart'](),_0x1c1241=_0x22dbcc['parent'],_0x564e22=_0x22dbcc['offset'];!function _0x45746f(_0x58465d,_0x5c171f,_0x308676,_0x4069e1){for(let _0x990172=_0x308676;_0x990172<_0x4069e1;_0x990172++){const _0xb76f98=_0x5c171f['getChild'](_0x990172);_0xb76f98['is']('element','$text')?_0x58465d['set'](_0xb76f98['getAttribute']('vid'),{'userId':_0x346cb1}):(_0x58465d['set'](_0xb76f98['getAttribute']('vid_start'),{'userId':_0x346cb1}),_0x45746f(_0x58465d,_0xb76f98,0x0,_0xb76f98['childCount']),_0x58465d['set'](_0xb76f98['getAttribute']('vid_end'),{'userId':_0x346cb1}));}}(this['_touched'],_0x1c1241,_0x564e22,_0x564e22+_0x14370e['howMany']);}['_handleMergeOperation'](_0x40e005){const _0x9d442a=null===(_0x40e005=this['_cloneOperation'](_0x40e005,this['_idsRoots']))['_authorId']?null:_0x40e005['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1464ad=_0x40e005['targetPosition']['parent'],_0x4bca07=_0x40e005['sourcePosition']['parent'],_0x1dae4f=_0x1464ad['getAttribute']('vid_end'),_0x2169e6=_0x4bca07['getAttribute']('vid_start');_0x1464ad['_setAttribute']('vid_end',_0x4bca07['getAttribute']('vid_end')),_0x4bca07['_setAttribute']('vid_end',_0x1dae4f),this['_touched']['set'](_0x2169e6,{'userId':_0x9d442a}),this['_touched']['set'](_0x1dae4f,{'userId':_0x9d442a}),_0x40e005['_execute']();}['_handleSplitOperation'](_0x249994){const _0x5a391a=null===(_0x249994=this['_cloneOperation'](_0x249994,this['_idsRoots']))['_authorId']?null:_0x249994['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x346b82=_0x249994['graveyardPosition'],_0x5a9c3d=_0x249994['splitPosition']['parent'];_0x249994['_execute']();const _0xa5f721=_0x5a9c3d['getAttribute']('vid_end'),_0x585b63=_0x249994['insertionPosition']['nodeAfter'];if(_0x346b82){const _0x1b5de3=_0x585b63['getAttribute']('vid_end'),_0x5304e6=_0x5a9c3d['getAttribute']('vid_end');_0x5a9c3d['_setAttribute']('vid_end',_0x1b5de3),_0x585b63['_setAttribute']('vid_end',_0x5304e6),this['_touched']['set'](_0x5a9c3d['getAttribute']('vid_end'),{'userId':_0x5a391a}),this['_touched']['set'](_0x585b63['getAttribute']('vid_start'),{'userId':_0x5a391a});}else{const _0x2190ab=this['_revisionId']++,_0x1bc1d9=this['_revisionId']++;_0x5a9c3d['_setAttribute']('vid_end',_0x2190ab),_0x585b63['_setAttribute']('vid_start',_0x1bc1d9),_0x585b63['_setAttribute']('vid_end',_0xa5f721),this['_touched']['set'](_0x2190ab,{'userId':_0x5a391a}),this['_touched']['set'](_0x1bc1d9,{'userId':_0x5a391a});}}['_handleMarkerOperation'](_0x343171){if(!_0x343171['affectsData'])return;const _0x25564d=(_0x343171=this['_cloneOperation'](_0x343171,this['_diffRoots']))['oldRange']?_0x343171['oldRange']['root']:null,_0x39685e=_0x343171['newRange']?_0x343171['newRange']['root']:null;_0x25564d&&this['_markers']['delete'](_0x343171['name']),_0x39685e&&this['_markers']['set'](_0x343171['name'],_0x343171['newRange']['clone']());const _0x258397=null===_0x343171['_authorId']?null:_0x343171['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1459b6=_0x343171['name'];if(!this['_touchedMarkers']['has'](_0x1459b6))return void this['_touchedMarkers']['set'](_0x1459b6,{'range':_0x343171['oldRange'],'userId':_0x258397});const _0x2a69a0=this['_touchedMarkers']['get'](_0x1459b6),_0x21990f=_0x2a69a0['range'],_0x31e7f3=_0x343171['newRange'];null==_0x21990f&&null==_0x31e7f3||_0x21990f&&_0x31e7f3&&_0x21990f['isEqual'](_0x31e7f3)?this['_touchedMarkers']['delete'](_0x343171['name']):_0x2a69a0['userId']=_0x258397;}['_handleRootOperation'](_0x35f5e9,_0x5d2a83){this['_diffRoots']['has'](_0x35f5e9['rootName'])?this['_diffRoots']['get'](_0x35f5e9['rootName'])['_isAttached']=_0x35f5e9['isAdd']:(this['_diffRoots']['set'](_0x35f5e9['rootName'],P(_0x35f5e9['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x35f5e9['rootName'],{}),_0x5d2a83&&this['_idsRoots']['set'](_0x35f5e9['rootName'],P(_0x35f5e9['rootName'],!0x0)));const _0x2826d8=null===_0x35f5e9['_authorId']?null:_0x35f5e9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42d8f6=this['_touchedRoots']['get'](_0x35f5e9['rootName']);_0x42d8f6&&_0x42d8f6['userId']===_0x2826d8?this['_touchedRoots']['delete'](_0x35f5e9['rootName']):this['_touchedRoots']['set'](_0x35f5e9['rootName'],{'userId':_0x2826d8,'isAttached':_0x35f5e9['isAdd']});}['_handleRootAttributeOperation'](_0x17e935){const _0x4a420c=this['_diffRootsAttributes']['get'](_0x17e935['root']['rootName']);null===_0x17e935['newValue']?delete _0x4a420c[_0x17e935['key']]:_0x4a420c[_0x17e935['key']]=_0x17e935['newValue'];}}function N(_0xdcdd1c){const _0x34fbbc=P(_0xdcdd1c['rootName'],_0xdcdd1c['isAttached']());for(const _0x1da3de of _0xdcdd1c['getChildren']()){const _0x275d3b=_0x1da3de['_clone'](!0x0);_0x34fbbc['_appendChild'](_0x275d3b);}return _0x34fbbc;}function P(_0x5c0f34,_0x315d4b=!0x0){const _0x4f8c22=new vt();return _0x4f8c22['rootName']=_0x5c0f34,_0x4f8c22['_isAttached']=_0x315d4b,_0x4f8c22['isAttached']=()=>_0x4f8c22['_isAttached'],_0x4f8c22;}function F(_0x23c1ec,_0x1a515b,_0x17254f){const _0x17bc9e='elementEnd'==_0x23c1ec['type']?_0x17254f['createPositionAt'](_0x23c1ec['item'],'end'):_0x17254f['createPositionBefore'](_0x23c1ec['item']);return _0x17254f['createPositionFromPath'](_0x1a515b,_0x17bc9e['path'],_0x17bc9e['stickiness']);}function B(_0x3f685f,_0x25bec3,_0x5678ff){const _0x4e3d62='elementStart'==_0x3f685f['type']?_0x5678ff['createPositionAt'](_0x3f685f['item'],0x0):_0x5678ff['createPositionAfter'](_0x3f685f['item']);return _0x5678ff['createPositionFromPath'](_0x25bec3,_0x4e3d62['path'],_0x4e3d62['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3e5605,_0x39b77c){super(_0x3e5605),this['focusTracker']=new _0x10b0d6(),this['keystrokes']=new _0x4d6104(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x39b77c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5d80d2(this);}['render'](){super['render'](),_0x1b934e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x11f932=_0x14d768=>_0x14d768['stopPropagation']();this['keystrokes']['set']('arrowright',_0x11f932),this['keystrokes']['set']('arrowleft',_0x11f932),this['keystrokes']['set']('arrowup',_0x11f932),this['keystrokes']['set']('arrowdown',_0x11f932);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1ae30b){this['revisionNameInputView']['fieldView']['element']['value']=_0x1ae30b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5ca5d0){const _0x599ad0=new _0x5c3265(this['locale'],_0x8970f),_0x298ba7=_0x599ad0['fieldView'];_0x298ba7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5caa27=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5ca5d0&&(_0x5caa27+='\x20('+g(this['locale'],'optional')+')'),(_0x599ad0['label']=_0x5caa27,_0x298ba7['on']('input',()=>{this['revisionNameInputValue']=_0x298ba7['element']['value']['trim']();}),_0x599ad0);}}class f extends _0x294c95{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xb3a551=this['editor'],_0x1ef9ff=_0xb3a551['plugins']['get']('RevisionTracker');_0xb3a551['ui']['componentFactory']['add']('revisionHistory',_0x416278=>{const _0x86b4f7=_0x39253b(_0x416278),_0x26bcf0=_0x86b4f7['panelView']['children'],_0x30191d=new _0x3ea8fb(_0x416278),_0x317be3=new _0x5b7596(_0x416278),_0x26db58=new te(_0x416278),_0x5b915e=new _0x5b7596(_0x416278),_0x26a5d4=new te(_0x416278);return _0x86b4f7['bind']('isEnabled')['to'](_0x1ef9ff,'isReady',_0x1ef9ff,'isEnabled',_0xb3a551,'isReadOnly',(_0x2b19be,_0x2a1d2c,_0x1995e7)=>_0x2b19be&&_0x2a1d2c&&!_0x1995e7),_0x86b4f7['buttonView']['set']({'icon':_0x5eca74,'label':g(_0x416278,'Revision\x20history'),'tooltip':!0x0}),_0x26db58['set']({'label':g(_0x416278,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x26db58['bind']('isEnabled')['to'](_0x1ef9ff,'isReady',_0x1ef9ff,'isEnabled',_0xb3a551,'isReadOnly',(_0x48bd1e,_0x5a48cc,_0x100549)=>_0x48bd1e&&_0x5a48cc&&!_0x100549),_0x26db58['on']('execute',()=>this['_showDialog']()),_0x26a5d4['set']({'label':g(_0x416278,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x26a5d4['bind']('isEnabled')['to'](_0x1ef9ff,'isReady',_0xb3a551,'isReadOnly',(_0x5889fe,_0x24e6cf)=>_0x5889fe&&!_0x24e6cf),_0x26a5d4['on']('execute',()=>{_0xb3a551['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x86b4f7['isOpen']=!0x1,_0xb3a551['editing']['view']['focus']();}),_0x317be3['children']['add'](_0x26db58),_0x5b915e['children']['add'](_0x26a5d4),_0x30191d['role']='menu',_0x30191d['items']['addMany']([_0x317be3,_0x5b915e]),_0x26bcf0['add'](_0x30191d),_0x86b4f7;}),_0xb3a551['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xbd7ae8=this['editor'],_0x214701=_0xbd7ae8['locale'],_0x285f56=new _0xc0565c(_0x214701),_0x23e9a5=new _0x219df3(_0x214701);_0x285f56['buttonView']['set']({'icon':_0x5eca74,'label':g(_0x214701,'Revision\x20history')});const _0x5f2260=new _0x5f4184(_0x214701,_0x285f56),_0x515960=new _0x31dcc7(_0x214701);_0x515960['set']({'label':g(_0x214701,'Save\x20current\x20revision')}),_0x515960['delegate']('execute')['to'](_0x285f56),_0x515960['on']('execute',()=>{this['_showDialog']();}),_0x5f2260['children']['add'](_0x515960),_0x23e9a5['items']['add'](_0x5f2260);const _0x2a21a1=new _0x5f4184(_0x214701,_0x285f56),_0x3aa23b=new _0x31dcc7(_0x214701);return _0x3aa23b['set']({'label':g(_0x214701,'Open\x20revision\x20history')}),_0x3aa23b['delegate']('execute')['to'](_0x285f56),_0x3aa23b['on']('execute',()=>{_0xbd7ae8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2a21a1['children']['add'](_0x3aa23b),_0x23e9a5['items']['add'](_0x2a21a1),_0x285f56['panelView']['children']['add'](_0x23e9a5),_0x285f56;}['_showDialog'](){const _0xfdf9b3=this['editor'],_0x3a1748=_0xfdf9b3['locale'],_0x42735f=_0xfdf9b3['plugins']['get']('Dialog'),_0x54383c=_0xfdf9b3['plugins']['get']('RevisionTracker');function _0x340b2e(_0x4c361d){_0xfdf9b3['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4c361d['revisionName']?_0x4c361d['revisionNameInputView']['errorText']=g(_0x3a1748,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xfdf9b3['plugins']['get'](u)['saveRevision']({'name':_0x4c361d['revisionName']}),_0x42735f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x340b2e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x42735f['show']({'id':'revisionSave','title':g(_0x3a1748,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0xfdf9b3['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x42735f['hide']()},{'label':g(_0xfdf9b3['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x34fc38){_0x34fc38['bind']('isEnabled')['to'](_0x54383c,'isReady',_0x54383c,'isEnabled',_0xfdf9b3,'isReadOnly',(_0xa4b8c8,_0x323daa,_0x55b05c)=>_0xa4b8c8&&_0x323daa&&!_0x55b05c);},'onExecute':()=>_0x340b2e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2e52ae=this['editor'],_0x3497c0=_0x2e52ae['locale'];this['_saveRevisionFormView']=new hs(_0x3497c0,_0x2e52ae['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x45ee54,_0x5d1f98){super(_0x45ee54),this['_model']=_0x5d1f98,this['changeId']=_0x5d1f98['id'];const _0x1384c1=this['bindTemplate'],_0x4d10d4=g(_0x45ee54,_0x5d1f98['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5d1f98['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5d1f98['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1384c1['to']('type',_0x4e8b0d=>'ck-revision-change__'+_0x4e8b0d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4d10d4}]},{'text':'\x20'+_0x5d1f98['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x427504(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xbf2a46){super(),this['id']=_0xbf2a46['id']||_0x3e0359(),this['author']=_0xbf2a46['author'],this['type']=_0xbf2a46['type'],this['data']=_0xbf2a46['data']||{},this['rootName']=_0xbf2a46['rootName'],this['set']('createdAt',_0xbf2a46['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x331918,_0x25a02c){this['newRevisionId']=_0x331918,this['oldRevisionId']=_0x25a02c,this['changes']=new _0x1bc032();}['_setChanges'](_0x28c576){for(const _0x267623 of _0x28c576)this['changes']['add'](_0x267623);}}class m extends _0x294c95{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xaca5ca,_0x5e935b,I,V];}constructor(_0x314995){super(_0x314995),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x298f36,_0x2f90c1,_0x19ed29)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x443a31=>{for(const _0x548b0a of this['editor']['editing']['view']['document']['roots'])_0x19ed29?_0x443a31['removeClass']('ck-editor__editable__overlay',_0x548b0a):_0x443a31['addClass']('ck-editor__editable__overlay',_0x548b0a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x34ceee=>null!==_0x34ceee),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5d96b5,_0x176240,_0x3c19b4)=>_0x5d96b5&&_0x3c19b4?_0x176240['changes']['getIndex'](_0x3c19b4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x55059a,_0x5235e5)=>_0x55059a?_0x5235e5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5e935b);}['init'](){const _0x12b7b4=this['editor'],_0x162a05=new wt(_0x12b7b4,{'direction':'backward'}),_0x1fc036=new wt(_0x12b7b4,{'direction':'forward'});(_0x12b7b4['commands']['add']('showPreviousChange',_0x162a05),_0x12b7b4['commands']['add']('showNextChange',_0x1fc036),_0x12b7b4['commands']['add']('restoreRevision',new mt(_0x12b7b4)),this['on']('change:numberOfChanges',()=>{_0x162a05['refresh'](),_0x1fc036['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x12b7b4['enableReadOnlyMode']('revision-viewer'),_0x12b7b4['plugins']['has']('WidgetToolbarRepository'))&&_0x12b7b4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5f4604){return await this['_utils']['loadRevisionData'](_0x5f4604,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5f4604);}async['getRevisionRootsAttributes'](_0x209cf2){return await this['_utils']['loadRevisionData'](_0x209cf2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x209cf2);}async['compare'](_0x3022df,_0x3df116,_0x16fb90=!0x1){if(!this['isEnabled'])return;const _0x46c441=this['diff'],_0x1766c5=this['repository'],_0x1006f4='string'==typeof _0x3022df?_0x1766c5['getRevision'](_0x3022df):_0x3022df,_0x320a87='string'==typeof _0x3df116?_0x1766c5['getRevision'](_0x3df116):_0x3df116,_0x5083b8=_0x1006f4['id'],_0x121b06=_0x320a87?_0x320a87['id']:null;if(!_0x16fb90&&this['diff']&&this['diff']['newRevisionId']===_0x5083b8&&this['diff']['oldRevisionId']===_0x121b06)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5083b8,_0x121b06);const _0x485244=this['_getRevisionsRange'](_0x1006f4,_0x320a87,!0x0)['map'](_0x35f706=>this['_utils']['loadRevisionData'](_0x35f706,this['adapter']));return _0x485244['push'](new Promise(_0x50d5cd=>{setTimeout(_0x50d5cd,0x14);})),Promise['all'](_0x485244)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31ce49=this['_getDiff'](_0x5083b8,_0x121b06);for(const _0x3fc1da of _0x31ce49['changes'])this['_changeIdToChange']['set'](_0x3fc1da['id'],_0x3fc1da);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x46960e=>{for(const _0x476cdb of this['editor']['model']['document']['getRootNames']())_0x46960e['detachRoot'](_0x476cdb);for(const _0x22affd of Object['keys'](_0x31ce49['model'])){const _0x2e6704=_0x46960e['addRoot'](_0x22affd);for(const _0x3f27c1 of Object['keys'](_0x31ce49['attributes'][_0x22affd]))_0x46960e['setAttribute'](_0x3f27c1,_0x31ce49['attributes'][_0x22affd][_0x3f27c1],_0x2e6704);_0x46960e['insert'](_0x31ce49['model'][_0x22affd],_0x2e6704,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31ce49['changes'])),this['isReady']=!0x0;})['catch'](_0x4ac3ed=>{console['error'](_0x4ac3ed),this['_cleanUp'](),_0x46c441&&(this['diff']=_0x46c441),this['isReady']=!0x0;});}['addRevisionData'](_0x3530a9,_0x39fa6c){const _0xe92ed3=this['repository']['createRevision'](_0x3530a9);return _0xe92ed3['on']('_update',(_0x26f5a0,_0x5b2060,_0x2ec2c8)=>_0x39fa6c(_0x5b2060,_0x2ec2c8,_0xe92ed3)),this['repository']['addRevision'](_0xe92ed3),_0xe92ed3;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x16fc5f=>{for(const _0x4b1b46 of this['editor']['model']['document']['getRootNames']())_0x16fc5f['detachRoot'](_0x4b1b46);});}['_sortAndFilterDiffChanges'](_0x38e230){const _0xe9def1=[],_0x15eafe=new Map();for(const _0x2c161f of this['editor']['model']['document']['getRootNames']()){const _0x5ba2c1=this['editor']['editing']['view']['getDomRoot'](_0x2c161f);if(!_0x5ba2c1)continue;const _0x1af58d=_0x5ba2c1['getClientRects']()['item'](0x0);_0x1af58d&&(_0xe9def1['push'](_0x2c161f),_0x15eafe['set'](_0x2c161f,_0x1af58d));}return _0xe9def1['sort']((_0x52eb8c,_0x565dde)=>{const _0x4867f4=_0x15eafe['get'](_0x52eb8c),_0x1c491e=_0x15eafe['get'](_0x565dde);return _0x4867f4['y']-_0x1c491e['y']||_0x4867f4['x']-_0x1c491e['x'];}),(_0x38e230=_0x38e230['filter'](_0x5a18a1=>_0xe9def1['includes'](_0x5a18a1['rootName'])))['sort']((_0x3b5e82,_0x319fa2)=>_0xe9def1['indexOf'](_0x3b5e82['rootName'])-_0xe9def1['indexOf'](_0x319fa2['rootName'])),_0x38e230;}['_makeTape'](_0x29f435){const _0x49c8c2=Array['from'](_0x29f435['markers'])['filter'](([_0x59fc42,_0x10f1a9])=>_0x59fc42['startsWith']('revision:')&&!_0x10f1a9['isCollapsed']),_0x5a1147=Array['from'](this['editor']['model']['createRangeIn'](_0x29f435)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x49c8c2['length'])for(const _0x2bbe17 of _0x5a1147){const [_0x3d12b9,_0x42724b]=_0x49c8c2[0x0],[,_0x13ea59,_0x50437a]=_0x3d12b9['split'](':');if(_0x42724b['end']['isEqual'](_0x2bbe17['nextPosition'])&&_0x49c8c2['shift'](),(_0x2bbe17['previousPosition']['isEqual'](_0x42724b['start'])||_0x2bbe17['previousPosition']['isAfter'](_0x42724b['start']))&&('insertion'==_0x13ea59?_0x2bbe17['isAdded']={'userId':_0x50437a}:'deletion'==_0x13ea59&&(_0x2bbe17['isRemoved']={'userId':_0x50437a})),0x0==_0x49c8c2['length'])break;}return _0x5a1147;}['_refreshStartEndIndex'](_0x237bd4){const _0x1d561a=new Map();for(let _0x135db4=0x0;_0x135db4<_0x237bd4['length'];_0x135db4++)'text'===_0x237bd4[_0x135db4]['type']?(_0x237bd4[_0x135db4]['item']['startIndex']=_0x135db4,_0x237bd4[_0x135db4]['item']['endIndex']=_0x135db4):('elementStart'===_0x237bd4[_0x135db4]['type']?_0x237bd4[_0x135db4]['item']['startIndex']=_0x135db4:'elementEnd'===_0x237bd4[_0x135db4]['type']&&(_0x237bd4[_0x135db4]['item']['endIndex']=_0x135db4),_0x1d561a['set'](_0x237bd4[_0x135db4]['id'],_0x135db4));for(const _0x1aaa57 of _0x1d561a['values']())'elementStart'===_0x237bd4[_0x1aaa57]['type']?_0x237bd4[_0x1aaa57]['item']['endIndex']=_0x1d561a['get'](_0x237bd4[_0x1aaa57]['pairId']):'elementEnd'===_0x237bd4[_0x1aaa57]['type']&&(_0x237bd4[_0x1aaa57]['item']['startIndex']=_0x1d561a['get'](_0x237bd4[_0x1aaa57]['pairId']));}['_processTape'](_0x4cf557){for(let _0x3ae98b=0x0;_0x3ae98b<_0x4cf557['length'];_0x3ae98b++){if('elementStart'===_0x4cf557[_0x3ae98b]['type'])_0x4cf557[_0x3ae98b]['item']['startIndex']=_0x3ae98b;else{if('elementEnd'===_0x4cf557[_0x3ae98b]['type']){_0x4cf557[_0x3ae98b]['item']['endIndex']=_0x3ae98b;const _0x549245=_0x4cf557[_0x3ae98b]['item']['startIndex'];_0x4cf557[_0x549245]['pairId']=_0x4cf557[_0x3ae98b]['id'],_0x4cf557[_0x3ae98b]['pairId']=_0x4cf557[_0x549245]['id'];}else _0x4cf557[_0x3ae98b]['item']['startIndex']=_0x3ae98b,_0x4cf557[_0x3ae98b]['item']['endIndex']=_0x3ae98b,_0x4cf557[_0x3ae98b]['pairId']=null;}_0x4cf557[_0x3ae98b]['markersStart']||(_0x4cf557[_0x3ae98b]['markersStart']=[],_0x4cf557[_0x3ae98b]['markersEnd']=[]);}}['_markInsertions'](_0x1e8669,_0x45eb38){const _0x461153=_0x1e8669['filter'](_0x2f384d=>!_0x2f384d['isAdded']);for(let _0x3d6fab=0x0;_0x3d6fab<_0x45eb38['length'];_0x3d6fab++)_0x45eb38[_0x3d6fab]['isAdded']&&(_0x461153[_0x3d6fab]['isAdded']=_0x45eb38[_0x3d6fab]['isAdded']);}['_getDiff'](_0x7f66f4,_0x3242a0=null){const _0x11b5d0=this['repository']['getRevision'](_0x7f66f4),_0x4cc743=_0x3242a0?this['repository']['getRevision'](_0x3242a0):null,_0xab3134=this['_getRevisionsRange'](_0x11b5d0,_0x4cc743),_0x2a8fb5=_0xab3134[_0xab3134['length']-0x1],_0x3b4e39=new Map(),_0x381726={'model':{},'attributes':{},'changes':[]},_0x31f2b9=new Set(),_0x2befe8=new Map();for(let _0x2b4f3d=_0xab3134['length']-0x1;_0x2b4f3d>=0x0;_0x2b4f3d--){const _0x448e24=_0xab3134[_0x2b4f3d];for(const _0x11a15f of Object['keys'](_0x448e24['diffData']))if(_0x448e24['diffData'][_0x11a15f]['attachChange']){const _0x21b928=_0x448e24['diffData'][_0x11a15f]['attachChange'];_0x21b928['isAttached']?(_0x31f2b9['add'](_0x11a15f),_0x2befe8['has'](_0x11a15f)&&_0x2befe8['get'](_0x11a15f)['userId']==_0x21b928['userId']?_0x2befe8['delete'](_0x11a15f):_0x2befe8['set'](_0x11a15f,_0x21b928)):_0x2befe8['has'](_0x11a15f)?(_0x31f2b9['delete'](_0x11a15f),_0x2befe8['delete'](_0x11a15f)):(_0x31f2b9['add'](_0x11a15f),_0x2befe8['set'](_0x11a15f,_0x21b928));}else _0x31f2b9['add'](_0x11a15f);}for(const _0x3d441a of _0x31f2b9){const _0x2f3153=_0x2befe8['has'](_0x3d441a)&&!_0x2befe8['get'](_0x3d441a)['isAttached'];let _0x452cf9=_0x2f3153?_0xab3134['length']-0x1:0x0;const _0x1c1a62=_0x2f3153?-0x1:0x1;for(;_0xab3134[_0x452cf9];){const _0x14f7c1=_0xab3134[_0x452cf9];if(_0x14f7c1['diffData'][_0x3d441a]){const _0x4407b8=_0x2f3153?_0x14f7c1['diffData'][_0x3d441a]['attributesBefore']:_0x14f7c1['diffData'][_0x3d441a]['attributesAfter'];_0x381726['attributes'][_0x3d441a]=_0x4407b8?_0xc896ae(_0x4407b8):{};break;}_0x452cf9+=_0x1c1a62;}}for(const _0x3ac5d1 of _0xab3134){_0x3ac5d1['model']={};for(const _0x222601 of _0x3ac5d1['authors'])_0x3b4e39['set'](_0x222601['id'],_0x222601);for(const _0x19bfcb of _0x31f2b9){const _0xe7e749=_0x3ac5d1['diffData'][_0x19bfcb]?_0x3ac5d1['diffData'][_0x19bfcb]['insertions']:'[]',_0x3a2bda=_0x3ac5d1['diffData'][_0x19bfcb]?_0x3ac5d1['diffData'][_0x19bfcb]['deletions']:'[]';_0x3ac5d1['model'][_0x19bfcb]={'insertions':this['_utils']['_makeModelFromViewString'](_0xe7e749),'deletions':this['_utils']['_makeModelFromViewString'](_0x3a2bda)};}}for(const _0x5309aa of _0x31f2b9){let _0x5ed7f0=null,_0x640d59=0x0;const _0x1f3522=new Map(Array['from'](_0x11b5d0['model'][_0x5309aa]['insertions']['markers'])['filter'](([_0x18d559])=>!_0x18d559['startsWith']('revision:')));let _0x142a6b=0x0;for(const _0x506e48 of _0xab3134){const _0x11b277=this['_makeTape'](_0x506e48['model'][_0x5309aa]['insertions']);_0x506e48==_0x11b5d0?(_0x5ed7f0=_0x11b277,_0x640d59=_0x5ed7f0['length'],_0x5ed7f0['forEach'](_0x415b94=>{_0x415b94['id']=_0x142a6b++;}),this['_processTape'](_0x5ed7f0)):this['_markInsertions'](_0x5ed7f0,_0x11b277);const _0x5a5afe=_0x5ed7f0['filter'](_0x372343=>!_0x372343['isAdded'])['map'](_0x5510dd=>_0x5510dd['id']);let _0x3e6527=0x0;const _0x5b983e=this['_makeTape'](_0x506e48['model'][_0x5309aa]['deletions']);_0x5b983e['forEach'](_0x41dfa6=>{_0x41dfa6['isRemoved']?_0x41dfa6['id']=_0x640d59++:_0x41dfa6['id']=_0x5a5afe[_0x3e6527++];}),this['_processTape'](_0x5b983e),this['_setDistance'](_0x5ed7f0,'isAdded'),this['_setDistance'](_0x5b983e,'isRemoved'),_0x506e48==_0x11b5d0&&this['_markMarkers'](_0x5ed7f0,_0x1f3522),_0x5ed7f0=this['_joinTapes'](_0x5ed7f0,_0x5b983e),this['_refreshStartEndIndex'](_0x5ed7f0),this['_setDistance'](_0x5ed7f0,'isRemoved');}_0x5ed7f0=_0x5ed7f0['filter'](_0x1e8cd7=>!(_0x1e8cd7['isAdded']&&_0x1e8cd7['isRemoved']));const _0x94cd8e=new Map(_0x2a8fb5['model'][_0x5309aa]['deletions']['markers']),_0x14630a=new Set(_0x1f3522['keys']());for(const _0x5dd9a8 of _0x94cd8e['keys']())_0x14630a['delete'](_0x5dd9a8);this['_markSuggestions'](_0x5ed7f0,_0x14630a),this['_fixObsoleteTags'](_0x5ed7f0),_0x5ed7f0=this['_removeMissingPairs'](_0x5ed7f0),_0x5ed7f0=this['_markMismatchedRemovedTags'](_0x5ed7f0),_0x5ed7f0=this['_removeUnsupportedChanges'](_0x5ed7f0);const {root:_0x31eb3a,changes:_0x575895}=this['_makeModelFromTape'](_0x5ed7f0,_0x3b4e39,_0x5309aa);_0x381726['model'][_0x5309aa]=_0x31eb3a;const _0x1b5729=_0x2befe8['get'](_0x5309aa);if(_0x1b5729){const _0xe74799=_0x3b4e39['get'](_0x1b5729['userId']),_0x7c4a33=new r({'author':_0xe74799,'type':_0x1b5729['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5309aa});_0x575895['unshift'](_0x7c4a33),_0x381726['attributes'][_0x5309aa]['revisionHistoryAttachChange']=_0x7c4a33['id'];}_0x381726['changes']=_0x381726['changes']['concat'](_0x575895);}return _0x381726;}['_markMarkers'](_0x5e08cc,_0x3ea863){for(let _0x3cdbeb=0x0;_0x3cdbeb<_0x5e08cc['length'];_0x3cdbeb++)for(const [_0x529569,_0x3f9188]of _0x3ea863)!_0x3f9188['isCollapsed']&&_0x3f9188['start']['isEqual'](_0x5e08cc[_0x3cdbeb]['previousPosition'])&&_0x5e08cc[_0x3cdbeb]['markersStart']['push'](_0x529569),_0x3f9188['end']['isEqual'](_0x5e08cc[_0x3cdbeb]['nextPosition'])&&_0x5e08cc[_0x3cdbeb]['markersEnd']['push'](_0x529569);}['_joinTapes'](_0x242242,_0x274df8){let _0xbc8eb1=[],_0x4509c9=0x0,_0x4fa3cf=0x0;for(;_0x4509c9<_0x242242['length']||_0x4fa3cf<_0x274df8['length'];){const _0x2b7833=_0x242242[_0x4509c9]||{},_0x57acf1=_0x274df8[_0x4fa3cf]||{};if(_0x2b7833['id']==_0x57acf1['id'])_0x4509c9++,_0x4fa3cf++,_0xbc8eb1['push'](_0x2b7833);else{if(_0x57acf1['isRemoved']&&_0x2b7833['isAdded']){const {commonTape:_0xb7f48e,iEnd:_0x271ace,jEnd:_0x4952e9}=this['_threeWayMerge'](_0x242242,_0x4509c9,_0x274df8,_0x4fa3cf);_0xbc8eb1=_0xbc8eb1['concat'](_0xb7f48e),_0x4509c9=_0x271ace,_0x4fa3cf=_0x4952e9;}else _0x57acf1['isRemoved']?(_0x4fa3cf++,_0xbc8eb1['push'](_0x57acf1)):(_0x4509c9++,_0xbc8eb1['push'](_0x2b7833));}}return _0xbc8eb1;}['_markSuggestions'](_0x28263e,_0x7330b8){const _0x57b4bc=[];for(let _0x481989=0x0;_0x481989<_0x28263e['length'];_0x481989++){for(let _0x329119=0x0;_0x329119<_0x28263e[_0x481989]['markersStart']['length'];_0x329119++){const _0x385a6c=_0x28263e[_0x481989]['markersStart'][_0x329119];if(!_0x7330b8['has'](_0x385a6c))continue;const {group:_0x178c96,type:_0x4dce91,authorId:_0x179c51}=_0x11170d(_0x385a6c);'revision-suggestion'!=_0x178c96||'insertion'!=_0x4dce91&&'deletion'!=_0x4dce91||(_0x57b4bc['unshift']({'type':_0x4dce91,'name':_0x385a6c,'userId':_0x179c51}),_0x28263e[_0x481989]['markersStart']['splice'](_0x329119,0x1),_0x329119--);}_0x545474(_0x28263e[_0x481989]);for(let _0xb99f69=0x0;_0xb99f69<_0x28263e[_0x481989]['markersEnd']['length'];_0xb99f69++){const _0x8c991d=_0x28263e[_0x481989]['markersEnd'][_0xb99f69];if(!_0x7330b8['has'](_0x8c991d))continue;const {group:_0x43222f,type:_0x2bd79d}=_0x11170d(_0x8c991d);if('revision-suggestion'!=_0x43222f||'insertion'!=_0x2bd79d&&'deletion'!=_0x2bd79d)continue;_0x28263e[_0x481989]['markersEnd']['splice'](_0xb99f69,0x1),_0xb99f69--;const _0x302040=_0x57b4bc['findIndex'](_0x6482a8=>_0x6482a8['name']==_0x8c991d);_0x302040>-0x1&&_0x57b4bc['splice'](_0x302040,0x1);}}function _0x11170d(_0x51cde0){const _0x196ca8=_0x51cde0['split'](':');return{'group':_0x196ca8[0x0],'type':_0x196ca8[0x1],'subType':_0x196ca8['length']>=0x5?_0x196ca8[0x2]:null,'id':_0x196ca8['length']<0x5?_0x196ca8[0x2]:_0x196ca8[0x3],'authorId':_0x196ca8['length']<0x5?_0x196ca8[0x3]:_0x196ca8[0x4],'markerCount':0x6==_0x196ca8['length']?_0x196ca8[0x5]:null};}function _0x545474(_0x2ab7e9){for(let _0xad7c58=0x0;_0xad7c58<_0x57b4bc['length'];_0xad7c58++){if(_0x2ab7e9['isAdded']&&'insertion'==_0x57b4bc[_0xad7c58]['type'])return _0x2ab7e9['isAddSuggestion']=_0x57b4bc[_0xad7c58],void delete _0x2ab7e9['isAdded'];if(!_0x2ab7e9['isAdded']&&!_0x2ab7e9['isRemoved']&&'deletion'==_0x57b4bc[_0xad7c58]['type'])return void(_0x2ab7e9['isRemoveSuggestion']=_0x57b4bc[_0xad7c58]);}}}['_setDistance'](_0x51691d,_0x225666){let _0x3e8f5a=0x0,_0xf81b5b=!0x1;const _0x24b56a=new Map();for(const _0x2f322b of _0x51691d)_0x2f322b[_0x225666]?_0xf81b5b&&(_0x3e8f5a++,_0xf81b5b=!0x1):(_0x3e8f5a++,_0xf81b5b=!0x0),_0x24b56a['set'](_0x2f322b['id'],_0x3e8f5a);for(let _0x491156=0x0;_0x491156<_0x51691d['length'];_0x491156++){if('isRemoved'==_0x225666&&_0x51691d[_0x491156]['isAdded']||'isAdded'==_0x225666&&_0x51691d[_0x491156]['isRemoved'])continue;if('text'==_0x51691d[_0x491156]['type']){_0x51691d[_0x491156]['distance']=0x0;continue;}const _0x4100f8=_0x24b56a['get'](_0x51691d[_0x491156]['pairId']),_0x16ba57=_0x24b56a['get'](_0x51691d[_0x491156]['id']);_0x51691d[_0x491156]['distance']=_0x4100f8-_0x16ba57;}}['_getRevisionsRange'](_0x4fd3d2,_0x37ed8e,_0x66ab4e=!0x1){const _0x4fe1ba=[];let _0x4a8b41=this['repository']['getIndex'](_0x4fd3d2),_0x555dd2=this['repository']['getIndex'](_0x37ed8e);for(-0x1==_0x555dd2&&(_0x555dd2=this['repository']['_revisions']['length'],_0x66ab4e=!0x1);_0x4a8b41<_0x555dd2;)_0x4fe1ba['push'](this['repository']['getRevision'](_0x4a8b41)),_0x4a8b41++;return _0x66ab4e&&_0x4fe1ba['push'](this['repository']['getRevision'](_0x4a8b41)),_0x4fe1ba;}['_threeWayMerge'](_0x5bbcb1,_0x3f6489,_0x559600,_0x48ef65){const _0x4a023a=this['editor']['model']['schema'];let _0x5bdade=_0x3f6489;for(;_0x5bbcb1[_0x5bdade]&&_0x5bbcb1[_0x5bdade]['isAdded'];)_0x5bdade++;let _0x49410a=_0x48ef65;for(;_0x559600[_0x49410a]&&_0x559600[_0x49410a]['isRemoved'];)_0x49410a++;_0x13a30d(_0x5bbcb1,_0x3f6489,_0x5bdade),_0x13a30d(_0x559600,_0x48ef65,_0x49410a);const _0x4e442a=_0x559600['slice'](_0x48ef65,_0x49410a)['concat'](_0x5bbcb1['slice'](_0x3f6489,_0x5bdade));return _0x4e442a['sort']((_0x156e18,_0x34fd15)=>_0x156e18['side']!=_0x34fd15['side']?_0x156e18['side']-_0x34fd15['side']:_0x156e18['level']!=_0x34fd15['level']?_0x156e18['level']-_0x34fd15['level']:_0x156e18['distance']!=_0x34fd15['distance']?_0x34fd15['distance']-_0x156e18['distance']:!!_0x156e18['isAdded']!=!!_0x34fd15['isAdded']?-0x1==_0x156e18['side']||0x0==_0x156e18['side']?_0x156e18['isAdded']?-0x1:0x1:_0x156e18['isAdded']?0x1:-0x1:_0x156e18['index']-_0x34fd15['index']),{'commonTape':_0x4e442a,'iEnd':_0x5bdade,'jEnd':_0x49410a};function _0x13a30d(_0x5c60b6,_0x4adab2,_0x2b81ce){let _0x34db47=-0x1,_0x5eec66=Number['POSITIVE_INFINITY'],_0x10ff47=!0x0;for(let _0x39bbf9=_0x4adab2;_0x39bbf9<_0x2b81ce;_0x39bbf9++)if(_0x4a023a['isInline'](_0x5c60b6[_0x39bbf9]['item'])||(_0x10ff47=!0x1),_0x5c60b6[_0x39bbf9]['item']['startIndex']<_0x4adab2&&(_0x34db47=_0x39bbf9),_0x5c60b6[_0x39bbf9]['item']['endIndex']>=_0x2b81ce){_0x5eec66=_0x39bbf9;break;}_0x10ff47&&(_0x34db47=_0x2b81ce-0x1);for(let _0x1544c5=_0x4adab2;_0x1544c5<_0x2b81ce;_0x1544c5++)_0x5c60b6[_0x1544c5]['side']=_0x1544c5<=_0x34db47?-0x1:_0x1544c5<_0x5eec66?0x0:0x1,_0x5c60b6[_0x1544c5]['index']=_0x1544c5;let _0x43ca3e=0x0;for(let _0x4a17c7=_0x4adab2;_0x4a17c7<=_0x34db47;_0x4a17c7++)0x0==_0x5c60b6[_0x4a17c7]['distance']?_0x5c60b6[_0x4a17c7]['level']=_0x43ca3e:(_0x43ca3e++,_0x5c60b6[_0x4a17c7]['level']=_0x43ca3e,_0x43ca3e++);for(let _0x2f047a=_0x4adab2;_0x2f047a<_0x2b81ce;_0x2f047a++)0x0==_0x5c60b6[_0x2f047a]['side']&&(_0x5c60b6[_0x2f047a]['level']=_0x43ca3e);_0x43ca3e=0x0;for(let _0x137d51=_0x2b81ce-0x1;_0x137d51>=_0x5eec66;_0x137d51--)0x0==_0x5c60b6[_0x137d51]['distance']?_0x5c60b6[_0x137d51]['level']=_0x43ca3e:(_0x43ca3e--,_0x5c60b6[_0x137d51]['level']=_0x43ca3e,_0x43ca3e--);}}['_fixObsoleteTags'](_0x488cfe){const _0x17f2c0=new Map(),_0x1d9a15=this['editor']['model']['schema'];for(let _0x4aaace=0x1;_0x4aaace<_0x488cfe['length'];_0x4aaace++){let _0x45b582,_0x4f4713,_0x3b2b69;const _0x249a83=_0x488cfe[_0x4aaace],_0x3be548=_0x488cfe[_0x4aaace-0x1];if('text'==_0x249a83['type'])continue;if(_0x249a83['type']!=_0x3be548['type'])continue;if(!_0x1d9a15['isBlock'](_0x3be548['item'])||_0x1d9a15['isLimit'](_0x3be548['item']))continue;if(!_0x1d9a15['isBlock'](_0x249a83['item'])||_0x1d9a15['isLimit'](_0x249a83['item']))continue;if((_0x488cfe[_0x4aaace]['isAdded']||_0x488cfe[_0x4aaace]['isAddSuggestion'])&&_0x488cfe[_0x4aaace-0x1]['isRemoved'])_0x45b582=_0x488cfe[_0x4aaace],_0x4f4713=_0x488cfe[_0x4aaace-0x1],_0x3b2b69=_0x4aaace-0x1;else{if(!_0x488cfe[_0x4aaace]['isRemoved']||!_0x488cfe[_0x4aaace-0x1]['isAdded']&&!_0x488cfe[_0x4aaace-0x1]['isAddSuggestion'])continue;_0x45b582=_0x488cfe[_0x4aaace-0x1],_0x4f4713=_0x488cfe[_0x4aaace],_0x3b2b69=_0x4aaace;}const _0x56731a=_0x45b582['level']==_0x4f4713['level'],_0x3ff852=Math['abs'](_0x45b582['level'])<Math['abs'](_0x4f4713['level'])&&0x0==_0x4f4713['distance'];(_0x56731a||_0x3ff852)&&(_0x17f2c0['set'](_0x4f4713['id'],_0x45b582['id']),_0x488cfe['splice'](_0x3b2b69,0x1),_0x4aaace--,_0x45b582['isAdded']=!0x1);}for(let _0x29b9f0=0x0;_0x29b9f0<_0x488cfe['length'];_0x29b9f0++)_0x17f2c0['has'](_0x488cfe[_0x29b9f0]['pairId'])&&(_0x488cfe[_0x29b9f0]['pairId']=_0x17f2c0['get'](_0x488cfe[_0x29b9f0]['pairId']));}['_removeMissingPairs'](_0x3a089b){const _0x7c5a8e=new Set(_0x3a089b['map'](_0x4b1f14=>_0x4b1f14['id']));for(let _0x42e5b8=0x0;_0x42e5b8<_0x3a089b['length'];_0x42e5b8++)_0x7c5a8e['has'](_0x3a089b[_0x42e5b8]['pairId'])||0x0==_0x3a089b[_0x42e5b8]['distance']||(_0x3a089b[_0x42e5b8]['isIncorrect']=!0x0);return _0x3a089b['filter'](_0x5ac97c=>!_0x5ac97c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41810c){const _0x24500b=new Set();for(let _0x3b827d=0x0;_0x3b827d<_0x41810c['length'];_0x3b827d++){if(_0x24500b['has'](_0x41810c[_0x3b827d]['id'])&&_0x41810c[_0x3b827d]['isRemoved']&&(_0x41810c[_0x3b827d]['isIncorrect']=!0x0),_0x41810c[_0x3b827d]['isIncorrect'])continue;if(0x0==_0x41810c[_0x3b827d]['distance'])continue;if('elementStart'!=_0x41810c[_0x3b827d]['type'])continue;if(null==_0x41810c[_0x3b827d]['pairId'])continue;let _0x47d3db=_0x3b827d+0x1,_0x5b68a6=0x0;for(;_0x41810c[_0x47d3db]['id']!=_0x41810c[_0x3b827d]['pairId'];)'elementStart'==_0x41810c[_0x47d3db]['type']?_0x5b68a6++:'elementEnd'==_0x41810c[_0x47d3db]['type']&&_0x5b68a6--,_0x47d3db++;if(0x0!=_0x5b68a6){if(_0x41810c[_0x3b827d]['isRemoved'])_0x41810c[_0x3b827d]['isIncorrect']=!0x0;else{for(;_0x47d3db!=_0x3b827d;)_0x41810c[_0x47d3db]['isRemoved']&&0x0!=_0x41810c[_0x47d3db]['distance']&&(_0x41810c[_0x47d3db]['isIncorrect']=!0x0,_0x24500b['add'](_0x41810c[_0x47d3db]['pairId'])),_0x47d3db--;}}}return _0x41810c['filter'](_0x3caf6a=>!_0x3caf6a['isIncorrect']);}['_removeUnsupportedChanges'](_0xf86270){const _0x43a47f=this['editor']['model']['schema'];for(let _0x41ab49=0x0;_0x41ab49<_0xf86270['length'];_0x41ab49++){if(!(_0xf86270[_0x41ab49]['isAdded']||_0xf86270[_0x41ab49]['isAddSuggestion']||_0xf86270[_0x41ab49]['isRemoved']||_0xf86270[_0x41ab49]['isRemoveSuggestion']))continue;if(0x0==_0xf86270[_0x41ab49]['distance'])continue;const _0x1f830d=_0xf86270[_0x41ab49]['item'];_0x43a47f['isBlock'](_0x1f830d)||_0x43a47f['isLimit'](_0x1f830d)||(_0xf86270[_0x41ab49]['isAdded']&&delete _0xf86270[_0x41ab49]['isAdded'],_0xf86270[_0x41ab49]['isAddSuggestion']&&delete _0xf86270[_0x41ab49]['isAddSuggestion'],_0xf86270[_0x41ab49]['isRemoveSuggestion']&&delete _0xf86270[_0x41ab49]['isRemoveSuggestion'],_0xf86270[_0x41ab49]['isRemoved']&&(_0xf86270[_0x41ab49]['isIncorrect']=!0x0));}return _0xf86270['filter'](_0x1720e4=>!_0x1720e4['isIncorrect']);}['_makeModelFromTape'](_0x5a48e9,_0x3b66f3,_0x3b6d4f){const _0xd2d43a=new vt(),_0x2f4f3a=[],_0x3d5d37=new Map(),_0x578429=this['editor']['model'],_0x34628b=_0x578429['schema'],_0x1ced87=[_0xd2d43a],_0x449120={},_0x3b21e6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5d07af=null;const _0x68c784=[0x0];for(let _0x3a85b6=0x0;_0x3a85b6<_0x5a48e9['length'];_0x3a85b6++)if('elementStart'===_0x5a48e9[_0x3a85b6]['type']){_0x5a48e9[_0x3a85b6]['previousPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784);const _0x2a58ac=new ut(_0x5a48e9[_0x3a85b6]['item']['name'],_0x5a48e9[_0x3a85b6]['item']['getAttributes']());_0x1ced87[0x0]['_appendChild'](_0x2a58ac),_0x68c784['push'](0x0),_0x1ced87['unshift'](_0x2a58ac),_0x5a48e9[_0x3a85b6]['nextPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784);}else'elementEnd'===_0x5a48e9[_0x3a85b6]['type']?(_0x1ced87['shift'](),_0x5a48e9[_0x3a85b6]['previousPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784),_0x68c784['pop'](),_0x68c784[_0x68c784['length']-0x1]++,_0x5a48e9[_0x3a85b6]['nextPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784)):(_0x5a48e9[_0x3a85b6]['previousPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784),_0x5d07af?_0x5d07af['_data']+=_0x5a48e9[_0x3a85b6]['item']['data']:_0x5d07af=new gt(_0x5a48e9[_0x3a85b6]['item']['data'],_0x5a48e9[_0x3a85b6]['item']['getAttributes']()),_0x5a48e9[_0x3a85b6+0x1]&&'text'===_0x5a48e9[_0x3a85b6+0x1]['type']&&_0x7a1751(_0x5d07af,_0x5a48e9[_0x3a85b6+0x1]['item'])||(_0x1ced87[0x0]['_appendChild'](_0x5d07af),_0x5d07af=null),_0x68c784[_0x68c784['length']-0x1]+=_0x5a48e9[_0x3a85b6]['item']['offsetSize'],_0x5a48e9[_0x3a85b6]['nextPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784));for(let _0x31aac4=0x0;_0x31aac4<_0x5a48e9['length'];_0x31aac4++){const _0x164341=_0x5a48e9[_0x31aac4]['previousPosition'],_0x43ed4d=_0x5a48e9[_0x31aac4]['nextPosition'];for(const _0x2aa401 of _0x5a48e9[_0x31aac4]['markersStart'])_0x3d5d37['set'](_0x2aa401,{'start':_0x164341,'end':null});_0x5702a9('isRemoveSuggestion',_0x31aac4,_0x164341,_0x43ed4d),_0x5702a9('isAddSuggestion',_0x31aac4,_0x164341,_0x43ed4d),_0x5702a9('isRemoved',_0x31aac4,_0x164341,_0x43ed4d),_0x5702a9('isAdded',_0x31aac4,_0x164341,_0x43ed4d);for(const _0x3f3f8c of _0x5a48e9[_0x31aac4]['markersEnd']){const _0x5ee696=_0x3d5d37['get'](_0x3f3f8c);_0x5ee696?_0x5ee696['end']=_0x43ed4d:_0x3d5d37['set'](_0x3f3f8c,{'start':_0x43ed4d,'end':_0x43ed4d});}}for(const [_0x27f26a,_0x3a3d69]of _0x3d5d37){const _0x151226=this['editor']['model']['createRange'](_0x3a3d69['start'],_0x3a3d69['end']);_0xd2d43a['markers']['set'](_0x27f26a,_0x151226);}return _0x2f4f3a['sort']((_0x58e7d5,_0x6985e8)=>{const _0x360f87=_0xd2d43a['markers']['get']('revision:'+_0x58e7d5['id']),_0x479014=_0xd2d43a['markers']['get']('revision:'+_0x6985e8['id']);return _0x360f87['start']['isBefore'](_0x479014['start'])?-0x1:_0x360f87['start']['isAfter'](_0x479014['start'])?0x1:_0x360f87['end']['isBefore'](_0x479014['end'])?-0x1:_0x360f87['end']['isAfter'](_0x479014['end'])?0x1:'add'===_0x58e7d5['type']?-0x1:0x1;}),{'root':_0xd2d43a,'changes':_0x2f4f3a};function _0x5702a9(_0x5af6a2,_0x5adde1,_0x52704c,_0x5a750d){const _0x17b236=!!_0x5a48e9[_0x5adde1][_0x5af6a2],_0x134548=_0x17b236?_0x5a48e9[_0x5adde1][_0x5af6a2]['userId']:null,_0x547ecc=_0x5adde1===_0x5a48e9['length']-0x1,_0x244a34=_0x3b21e6[_0x5af6a2][0x0],_0x41e426=_0x34628b['isObject'](_0x5a48e9[_0x5adde1]['item']);!_0x449120[_0x5af6a2]&&_0x17b236?_0x449120[_0x5af6a2]={'start':_0x52704c,'tapeItem':_0x5a48e9[_0x5adde1],'userId':_0x134548,'type':_0x5af6a2}:_0x449120[_0x5af6a2]&&!_0x17b236?(_0x449120[_0x5af6a2]['end']=_0x52704c,_0x1488a6(_0x449120[_0x5af6a2]),_0x449120[_0x5af6a2]=null):_0x449120[_0x5af6a2]&&_0x17b236&&_0x449120[_0x5af6a2]['userId']!==_0x134548&&(_0x449120[_0x5af6a2]['end']=_0x52704c,_0x244a34&&_0x244a34['userId']===_0x449120[_0x5af6a2]['userId']||_0x1488a6(_0x449120[_0x5af6a2]),_0x449120[_0x5af6a2]={'start':_0x52704c,'tapeItem':_0x5a48e9[_0x5adde1],'userId':_0x134548,'type':_0x5af6a2}),_0x449120[_0x5af6a2]&&_0x41e426&&('elementStart'!==_0x5a48e9[_0x5adde1]['type']||_0x244a34&&_0x244a34['userId']===_0x134548||_0x3b21e6[_0x5af6a2]['unshift']({'userId':_0x134548,'object':_0x5a48e9[_0x5adde1]['item'],'change':_0x449120[_0x5af6a2]}),'elementEnd'===_0x5a48e9[_0x5adde1]['type']&&_0x244a34&&_0x244a34['object']===_0x5a48e9[_0x5adde1]['item']&&(_0x3b21e6[_0x5af6a2]['shift'](),_0x449120[_0x5af6a2]=_0x244a34['change'])),_0x449120[_0x5af6a2]&&_0x547ecc&&(_0x449120[_0x5af6a2]['end']=_0x5a750d,_0x1488a6(_0x449120[_0x5af6a2]),_0x449120[_0x5af6a2]=null);}function _0x1488a6({start:_0x14b93e,end:_0x54adaf,tapeItem:_0x17e4de,userId:_0x3b2c9b,type:_0x441564}){const _0x1ddc0f=_0x17e4de['item'],_0x1d5d4b=_0x578429['schema']['isBlock'](_0x1ddc0f)&&!_0x578429['schema']['isLimit'](_0x1ddc0f),_0x40f356=_0x14b93e['nodeAfter']==_0x54adaf['parent']&&_0x54adaf['isAtStart'];if(_0x1d5d4b&&_0x40f356)return;const _0x23c574=_0x578429['createRange'](_0x14b93e,_0x54adaf),_0x4767df=_0x3b66f3['get'](_0x3b2c9b),_0x511f8b=new r({'author':_0x4767df,'type':'isAdded'==_0x441564||'isAddSuggestion'==_0x441564?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x441564||'isRemoveSuggestion'==_0x441564},'createdAt':new Date(),'rootName':_0x3b6d4f});_0x2f4f3a['push'](_0x511f8b),_0xd2d43a['markers']['set']('revision:'+_0x511f8b['id'],_0x23c574);}function _0x7a1751(_0x10f43f,_0x2016d0){const _0x1ce1cb=_0x10f43f['getAttributes'](),_0xb7dc5e=_0x2016d0['getAttributes']();for(const _0x413b79 of _0x1ce1cb){if(_0x413b79[0x1]!==_0x2016d0['getAttribute'](_0x413b79[0x0]))return!0x1;_0xb7dc5e['next']();}return _0xb7dc5e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x25f627=>{const _0x461438=_0x25f627['markerName']['split'](':')[0x1],_0x341462=this['_getChangeFromId'](_0x461438);if(!_0x341462)return null;const _0x314204='add'==_0x341462['type']?'insertion':'deletion',_0x3e2a09=['ck-suggestion-marker','ck-suggestion-marker-'+_0x314204];return _0x341462['data']['isSuggestion']&&_0x3e2a09['push']('ck-suggestion-marker-'+_0x314204+'-new'),this['activeChange']==_0x341462&&_0x3e2a09['push']('ck-suggestion-marker--active'),{'classes':_0x3e2a09,'attributes':{'data-change-id':_0x461438}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x364969=>{_0x364969['on']('element:pre',(_0x5cbe60,_0x19d2d0,_0x4bf8d8)=>{const _0x163bbe=_0x19d2d0['viewItem']['getChild'](0x0);if(!_0x163bbe||!_0x163bbe['is']('element','code'))return;if(!_0x4bf8d8['consumable']['consume'](_0x163bbe,{'attributes':['vid_start','vid_end']}))return;const _0xaeea84=_0x19d2d0['modelRange']['start']['nodeAfter'];_0x4bf8d8['writer']['setAttribute']('vid_start',_0x163bbe['getAttribute']('vid_start'),_0xaeea84),_0x4bf8d8['writer']['setAttribute']('vid_end',_0x163bbe['getAttribute']('vid_end'),_0xaeea84);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1716fe=>{_0x1716fe['on']('element',(_0x49ada0,_0x43fba3,_0x375cd)=>{if(!_0x375cd['consumable']['consume'](_0x43fba3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x43fba3['modelRange']['isCollapsed'])return;const _0x303037=_0x43fba3['modelRange']['start']['nodeAfter'];_0x303037['hasAttribute']('vid_start')||_0x303037['hasAttribute']('vid')||(_0x375cd['writer']['setAttribute']('vid_start',_0x43fba3['viewItem']['getAttribute']('vid_start'),_0x303037),_0x375cd['writer']['setAttribute']('vid_end',_0x43fba3['viewItem']['getAttribute']('vid_end'),_0x303037));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x42b1c0=>_0x42b1c0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4f7ef5,[,_0x6822f])=>{['vid_start','vid_end','vid']['includes'](_0x6822f)&&(_0x4f7ef5['return']=!0x0,_0x4f7ef5['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x240e67=>{_0x240e67['on']('attribute:vid',(_0x48fe8f,_0x5ae172,_0x59e551)=>{if('\x20'!=_0x5ae172['item']['data']||_0x5ae172['item']['parent']['maxOffset']>0x1)return;if(!_0x59e551['consumable']['consume'](_0x5ae172['item'],_0x48fe8f['name']))return;const _0x5adc95=_0x59e551['writer'],_0x508eae=_0x59e551['mapper']['toViewRange'](_0x5ae172['range']);_0x5adc95['wrap'](_0x508eae,_0x5adc95['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x49ad31){const _0x5f159b=_0x49ad31['plugins']['get']('RevisionViewer');return(_0x288dec,_0x332835,_0x21391d)=>{const _0x36b794=_0x332835['markerName']['split'](':')[0x1],_0xca2d14=_0x5f159b['_getChangeFromId'](_0x36b794);if(!_0xca2d14)return null;const _0xaceebb='add'==_0xca2d14['type']?'split':'merge';if(!_0x21391d['consumable']['test'](_0x332835['markerRange'],_0x288dec['name']))return;const _0x580531=_0x332835['markerRange']['getWalker'](),_0x415074=_0x332835['markerRange']['start'],_0x1af34d=_0x49ad31['model']['schema'];let _0x2ae96b=null,_0x577e98=null,_0x2db00c=!0x1,_0x2e9801=!0x1;for(const _0x146b0e of _0x580531){const _0x1a358d=_0x146b0e['item'];_0x2db00c=_0x2db00c||_0x1af34d['isContent'](_0x1a358d);const _0x26f4d9=_0x21391d['mapper']['toViewElement'](_0x1a358d);if(_0x26f4d9&&_0x26f4d9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x146b0e['type']&&(_0x1af34d['isBlock'](_0x1a358d)&&!_0x1af34d['isLimit'](_0x1a358d)&&(_0x1a358d['nextSibling']||_0x415074['isAtEnd']?_0x2ae96b&&_0x2ae96b['parent']==_0x1a358d||(_0x2ae96b=_0x1a358d,_0x1ace6d(_0x146b0e['previousPosition']),_0x2e9801=!0x0):_0x577e98=_0x577e98||_0x146b0e['previousPosition']));}function _0x1ace6d(_0x4f600b){const _0x2e21fb=_0x21391d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xaceebb}),_0x159085=_0x21391d['mapper']['toViewPosition'](_0x4f600b);_0xca2d14['data']['isSuggestion']&&_0x21391d['writer']['addClass']('ck-suggestion-marker-'+_0xaceebb+'-new',_0x2e21fb),_0x5f159b['activeChange']==_0xca2d14&&_0x21391d['writer']['addClass']('ck-suggestion-marker--active',_0x2e21fb),_0x21391d['writer']['insert'](_0x159085,_0x2e21fb),_0x21391d['mapper']['bindElementToMarker'](_0x2e21fb,_0x332835['markerName']);}_0x2db00c||_0x2e9801||!_0x577e98||_0x1ace6d(_0x577e98);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1ad43d,_0x302bce,_0x1bdc3f)=>{const _0x283a2a=_0x1bdc3f['mapper']['markerNameToElements'](_0x302bce['markerName']);if(_0x283a2a){for(const _0x57a2fd of _0x283a2a)(_0x57a2fd['hasClass']('ck-suggestion-marker-split')||_0x57a2fd['hasClass']('ck-suggestion-marker-merge'))&&(_0x1bdc3f['mapper']['unbindElementFromMarkerName'](_0x57a2fd,_0x302bce['markerName']),_0x1bdc3f['writer']['remove'](_0x57a2fd));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x372544,_0x22202e,_0xc86f20)=>{const _0x3724cc=_0x22202e['markerName']['split'](':')[0x1],_0x100e74=this['_getChangeFromId'](_0x3724cc);if(!_0x100e74)return null;const _0x1f8294='add'==_0x100e74['type']?'split':'merge';if(_0xc86f20['consumable']['test'](_0x22202e['markerRange'],_0x372544['name']))for(const _0x5e4aa6 of _0x22202e['markerRange']['getItems']()){if(!_0x5e4aa6['is']('element','softBreak'))continue;const _0x4c9d3e=_0xc86f20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f8294}),_0x1dac4e=_0xc86f20['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5e4aa6));_0x100e74['data']['isSuggestion']&&_0xc86f20['writer']['addClass']('ck-suggestion-marker-'+_0x1f8294+'-new',_0x4c9d3e),this['activeChange']==_0x100e74&&_0xc86f20['writer']['addClass']('ck-suggestion-marker--active',_0x4c9d3e),_0xc86f20['writer']['insert'](_0x1dac4e,_0x4c9d3e),_0xc86f20['mapper']['bindElementToMarker'](_0x4c9d3e,_0x22202e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3d28c5=>{for(const _0xeda255 of this['editor']['model']['document']['getRootNames']()){const _0x40f58d=this['editor']['model']['document']['getRoot'](_0xeda255),_0x3b825f=this['editor']['editing']['view']['document']['getRoot'](_0xeda255);if(_0x3b825f){const _0x4882ce=_0x40f58d['getAttribute']('revisionHistoryAttachChange');if(_0x3d28c5['removeAttribute']('data-change-id',_0x3b825f),_0x3d28c5['removeClass']('ck-revision-history-root-add',_0x3b825f),_0x3d28c5['removeClass']('ck-revision-history-root-remove',_0x3b825f),_0x3d28c5['removeClass']('ck-revision-history-root--active',_0x3b825f),_0x4882ce){const _0x5e216d=this['_getChangeFromId'](_0x4882ce);if(!_0x5e216d)return null;_0x3d28c5['setAttribute']('data-change-id',_0x4882ce,_0x3b825f),_0x3d28c5['addClass']('ck-revision-history-root-'+_0x5e216d['type'],_0x3b825f),this['activeChange']==_0x5e216d&&_0x3d28c5['addClass']('ck-revision-history-root--active',_0x3b825f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x157d6f=>'revision-comment:'+_0x157d6f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xe2f01f=>'revision-suggestion:'+_0xe2f01f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2d7fd8=>({'name':'suggestion:'+_0x2d7fd8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x292090=>{const _0x1d9b49=_0x292090['markerName']['split'](':')[0x1];return'insertion'!=_0x1d9b49&&'deletion'!=_0x1d9b49?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1d9b49]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x398ed2,_0x5a8ed2,_0x266b82)=>{const _0x11399a=_0x266b82['mapper']['markerNameToElements'](_0x5a8ed2['markerName']);if(_0x11399a){for(const _0x275571 of _0x11399a)_0x275571['is']('uiElement')&&(_0x266b82['mapper']['unbindElementFromMarkerName'](_0x275571,_0x5a8ed2['markerName']),_0x266b82['writer']['remove'](_0x275571));}},{'priority':'high'});}['_getChangeFromId'](_0x2df57c){return this['_changeIdToChange']['get'](_0x2df57c);}['_getViewForChange'](_0x51395c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x51395c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3aef3b,_0x578150,_0x2d9447,_0x538fc4)=>{_0x538fc4&&this['_balloon']['remove'](_0x538fc4),_0x2d9447&&(this['_balloon']['add']({'view':_0x2d9447,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x95db38=this['editor']['editing'],_0x7cc9e4=this['_getChangeFromId'](_0x2d9447['changeId']);let _0x207421;if(_0x7cc9e4['data']['isOnRoot']){const _0x14d506=_0x95db38['view']['getDomRoot'](_0x7cc9e4['rootName']);_0x207421=Array['from'](_0x14d506['getClientRects']());}else{const _0x4ac80e=this['editor']['model']['markers']['get']('revision:'+_0x2d9447['changeId']);_0x207421=Array['from'](_0x95db38['mapper']['markerNameToElements'](_0x4ac80e['name']))['map'](_0x5596b3=>_0x95db38['view']['domConverter']['mapViewToDom'](_0x5596b3))['map'](_0x28c3d2=>Array['from'](_0x28c3d2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x207421[0x0];return _0x207421['find'](_0xb51ea7=>_0xb51ea7['top']-0x3<=this['_activeViewTarget']['y']&&_0xb51ea7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xb51ea7['left']-0x3<=this['_activeViewTarget']['x']&&_0xb51ea7['right']+0x3>=this['_activeViewTarget']['x'])||_0x207421[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x304ace,_0x4fb151,_0x39c028,_0x4f85f6)=>{this['activeView']=_0x39c028?this['_getViewForChange'](_0x39c028):null,this['editor']['model']['change'](()=>{const _0x17cf83=this['editor']['editing'];_0x4f85f6&&(_0x4f85f6['data']['isOnRoot']?_0x17cf83['view']['change'](_0x2ec353=>{_0x2ec353['removeClass']('ck-revision-history-root--active',_0x17cf83['view']['document']['getRoot'](_0x4f85f6['rootName']));}):_0x17cf83['reconvertMarker']('revision:'+_0x4f85f6['id'])),_0x39c028&&(_0x39c028['data']['isOnRoot']?_0x17cf83['view']['change'](_0x487f33=>{_0x487f33['addClass']('ck-revision-history-root--active',_0x17cf83['view']['document']['getRoot'](_0x39c028['rootName']));}):_0x17cf83['reconvertMarker']('revision:'+_0x39c028['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5b465e,_0x18b64b)=>{if(this['activeChange'])return;const _0x23c4cc=this['_findChangeIdFromDomTarget'](_0x18b64b['target']),_0x251809=this['_changeIdToChange']['get'](_0x23c4cc);_0x251809?(this['_activeViewTarget']={'x':_0x18b64b['domEvent']['x'],'y':_0x18b64b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x251809)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x191bb1,_0x52464a)=>{const _0x5e42ae=this['_findChangeIdFromDomTarget'](_0x52464a['target']),_0x46ca6d=this['_changeIdToChange']['get'](_0x5e42ae);_0x46ca6d?(this['_activeViewTarget']={'x':_0x52464a['domEvent']['x'],'y':_0x52464a['domEvent']['y']},_0x46ca6d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x46ca6d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2a98aa){do{const _0x184861=_0x2a98aa['getAttribute']('data-change-id');if(_0x184861)return _0x184861;_0x2a98aa=_0x2a98aa['parent'];}while(_0x2a98aa);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x103f89=>{for(const _0x2c9fd2 of this['editor']['model']['markers'])_0x103f89['removeMarker'](_0x2c9fd2);});}}function X(_0x171f67,_0x4f2030){return(_0xb4ba05,_0x225713,_0x51fb24)=>{if(!_0x51fb24['consumable']['test'](_0x225713['markerRange'],_0xb4ba05['name']))return;const _0x3401c0=_0x225713['markerRange']['getWalker'](),_0x3c0c0b=_0x225713['markerRange']['start'],_0x48da4d=_0x171f67['model']['schema'];let _0x126118=null,_0x193d99=null,_0x3e0d39=!0x1,_0x336e3d=!0x1;for(const _0x4b05f1 of _0x3401c0){const _0x5ef184=_0x4b05f1['item'];_0x3e0d39=_0x3e0d39||_0x48da4d['isContent'](_0x5ef184);const _0x18ed95=_0x51fb24['mapper']['toViewElement'](_0x5ef184);if(_0x18ed95&&_0x18ed95['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b05f1['type']&&(_0x48da4d['isBlock'](_0x5ef184)&&!_0x48da4d['isLimit'](_0x5ef184)&&(_0x5ef184['nextSibling']||_0x3c0c0b['isAtEnd']?_0x126118&&_0x126118['parent']==_0x5ef184||(_0x126118=_0x5ef184,_0x2028a4(_0x4b05f1['previousPosition']),_0x336e3d=!0x0):_0x193d99=_0x193d99||_0x4b05f1['previousPosition']));}function _0x2028a4(_0x17785f){const _0x1eaee2=_0x51fb24['mapper']['toViewPosition'](_0x17785f),_0x78e631=_0x51fb24['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4f2030});_0x51fb24['writer']['insert'](_0x1eaee2,_0x78e631),_0x51fb24['mapper']['bindElementToMarker'](_0x78e631,_0x225713['markerName']);}_0x3e0d39||_0x336e3d||!_0x193d99||_0x2028a4(_0x193d99);};}class mt extends _0x2e4eef{constructor(_0x3499eb){super(_0x3499eb);const _0x55ba99=_0x3499eb['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x55ba99,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x55ba99,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x47c49a=this['editor'],_0x17603b=_0x47c49a['plugins']['get'](m),_0x5a198a=_0x17603b['isReady']?_0x17603b['diff']['newRevisionId']:null;_0x47c49a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5a198a);}['refresh'](){const {isReady:_0x3ca394,isEnabled:_0x15e930,repository:_0x2e0e27,diff:_0x2dc920}=this['editor']['plugins']['get'](m),_0x352519=_0x2dc920&&_0x2e0e27['getLaterVisibleRevision'](_0x2dc920['newRevisionId']);this['isEnabled']=_0x3ca394&&_0x15e930&&Boolean(_0x352519);}}class wt extends _0x2e4eef{['_step'];constructor(_0x3a3c8b,{direction:_0x394474}){super(_0x3a3c8b);const _0x1862e6=_0x3a3c8b['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x394474?0x1:-0x1,this['listenTo'](_0x1862e6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1862e6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1862e6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3c626b=this['editor'],_0x38fff1=_0x3c626b['plugins']['get'](m),{isNavigationMode:_0x3cae4a,currentChangeNumber:_0x1e8a39}=_0x38fff1;let _0xf3be10;if(_0x38fff1['activeChange']=_0x3cae4a?_0x38fff1['diff']['changes']['get'](_0x1e8a39+this['_step']):_0x38fff1['diff']['changes']['first'],_0x38fff1['activeChange']['data']['isOnRoot'])_0xf3be10=_0x3c626b['editing']['view']['getDomRoot'](_0x38fff1['activeChange']['rootName']);else{const _0x11347a=_0x3c626b['model']['markers']['get']('revision:'+_0x38fff1['activeChange']['id']);_0xf3be10=_0x8cde1b(_0x3c626b['editing'],_0x11347a);}_0xaaa48({'target':_0xf3be10,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x360685,currentChangeNumber:_0x29d0f8,numberOfChanges:_0x2c093d,isReady:_0x33873f,isEnabled:_0x210a1a}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x210a1a&&_0x33873f&&_0x2c093d)&&(!_0x360685||(0x1===this['_step']?_0x29d0f8<_0x2c093d-0x1:_0x29d0f8>0x0));}}class di extends ts{constructor(_0x11787e){super(_0x11787e);const _0x5d67b0=this['bindTemplate'],_0x174576=new te(_0x11787e),_0x5702a1=new te(_0x11787e);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',(_0x44753d,_0x3c615b)=>_0x44753d&&_0x3c615b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x38f753,_0x5dc35a,_0x3882d8,_0x1c7486)=>{if(!_0x38f753)return g(_0x11787e,'Loading...');if(!_0x3882d8)return g(_0x11787e,'No\x20changes');const _0x2d1873=g(_0x11787e,'NUMBER_OF_CHANGES',_0x3882d8);return _0x1c7486?g(_0x11787e,'X_OF_Y_CHANGES',[_0x5dc35a+0x1,_0x3882d8]):_0x2d1873;}),_0x174576['set']({'label':g(_0x11787e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2b49d1}),_0x5702a1['set']({'label':g(_0x11787e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x538803}),_0x174576['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5702a1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x174576['on']('execute',()=>this['fire']('execute','backward')),_0x5702a1['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',_0x5d67b0['if']('_isStatusLabelVisible','ck-hidden',_0x42b017=>!_0x42b017)]},'children':[{'text':_0x5d67b0['to']('isNavigationMode',_0x21e408=>_0x21e408?g(_0x11787e,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x11787e,'Total')+':\x20')}]},{'text':_0x5d67b0['to']('_statusText')}]},new _0x4cdae1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x174576,_0x5702a1]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x294c95{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x27fcd7=this['editor']['editing']['view'];_0x27fcd7['change'](_0xe43655=>{for(const _0x2969e2 of _0x27fcd7['document']['roots'])_0xe43655['addClass'](le,_0x2969e2);});}['hide'](){const _0x3f06a0=this['editor']['editing']['view'];_0x3f06a0['change'](_0x5e653d=>{for(const _0x405f6b of _0x3f06a0['document']['roots'])_0x5e653d['removeClass'](le,_0x405f6b);});}}class R extends _0x294c95{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x195af3=this['editor'],_0x406a50=_0x195af3['plugins']['get'](m),_0x318cf6=_0x195af3['plugins']['get'](de);_0x195af3['ui']['componentFactory']['add']('exitToEditing',_0x5118d2=>{const _0x50160f=new te(_0x5118d2);return _0x50160f['set']({'label':g(_0x5118d2,'Back\x20to\x20editing'),'icon':_0x2a2057,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x50160f,'execute',()=>{_0x195af3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x50160f;}),_0x195af3['ui']['componentFactory']['add']('restoreRevision',_0x36a291=>{const _0x10d3a1=new te(_0x36a291);return _0x10d3a1['set']({'label':g(_0x36a291,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x10d3a1['bind']('isEnabled')['to'](_0x195af3['commands']['get']('restoreRevision')),this['listenTo'](_0x10d3a1,'execute',()=>_0x195af3['execute']('restoreRevision')),_0x10d3a1;}),_0x195af3['ui']['componentFactory']['add']('changesNavigation',_0x1b87a4=>{const _0x186604=new di(_0x1b87a4),_0x5042fb=_0x195af3['commands']['get']('showPreviousChange'),_0x1d5d32=_0x195af3['commands']['get']('showNextChange');return _0x186604['bind']('isBackwardNavigationEnabled')['to'](_0x5042fb,'isEnabled'),_0x186604['bind']('isForwardNavigationEnabled')['to'](_0x1d5d32,'isEnabled'),_0x186604['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x406a50),this['listenTo'](_0x186604,'execute',(_0x76552e,_0x4a9845)=>{_0x195af3['execute']('forward'===_0x4a9845?'showNextChange':'showPreviousChange');}),_0x186604;}),_0x318cf6['show'](),_0x406a50['on']('change:isReady',(_0x1b57e4,_0xf8012b,_0x22ef59)=>{_0x22ef59?_0x318cf6['hide']():_0x318cf6['show']();});}}class at extends _0x5c3265{['_resizeObserver']=null;constructor(_0xde6b54,_0x5af44d){super(_0xde6b54,_0x5af44d);const _0x56d9a7=this['bindTemplate'];this['set']({'label':g(_0xde6b54,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0xde6b54,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x56d9a7['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4579bc=this['fieldView']['element'];this['_tooltipString']=_0x4579bc['scrollWidth']>_0x4579bc['clientWidth']&&_0x4579bc['value']||'';}}class si extends ts{constructor(_0x4e1516,_0x3df524,_0x989416){super(_0x4e1516);const _0x462beb=new _0x535fd4();_0x462beb['set']({'content':_0x1d542d,'viewBox':'0\x200\x2011\x2010'});const _0x4d9a4a=['ck','ck-revision-history-sidebar__revision-author'];_0x989416&&_0x4d9a4a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x8b1603=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4e1516,_0x989416?'Revision\x20creator':'Revision\x20author')},'children':[_0x462beb,_0x3df524['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4d9a4a},'children':_0x8b1603});}}function oi(_0x4ad00a,_0x33af60){const _0x24af15=_0x4ad00a['bindTemplate'],_0x1ac738=_0x4ad00a['locale'],_0x5a8ddf=_0x39253b(_0x1ac738);_0x5a8ddf['panelPosition']='sw';const _0x4d7f7b=function(_0x18f14f,_0x57c74f){const _0x1527c4=function(_0x3a93cc,_0x36c149){const _0xac7818=_0x3a93cc['locale'],_0x1191fd={'Compare\x20against\x20selected':g(_0xac7818,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xac7818,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xac7818,'Restore\x20this\x20revision')};return _0x36c149['map'](_0x1c7f99=>{const _0x3a5664=_0x1191fd[_0x1c7f99['name']];return _0x3a5664&&_0x3a5664!==_0x1c7f99['name']&&(_0x1c7f99['name']=_0x3a5664),_0x1c7f99;});}(_0x18f14f,_0x57c74f),_0x4fe8d7=new _0x1bc032();for(const _0x18cd56 of _0x1527c4){const _0x54f04a={'type':'button','model':new to({'label':_0x18cd56['name'],'class':_0x18cd56['class'],'withText':!0x0,'role':'menuitem','_action':_0x18cd56['action']})};_0x54f04a['model']['bind']('isEnabled')['to'](_0x18f14f,'isActionsDropdownOpen',_0xcd404b=>'function'!=typeof _0x18cd56['isEnabled']||(!_0xcd404b||_0x18cd56['isEnabled'](_0x18f14f))),_0x4fe8d7['add'](_0x54f04a);}return _0x4fe8d7;}(_0x4ad00a,_0x33af60);return _0x4ad00a['bind']('isActionsDropdownOpen')['to'](_0x5a8ddf,'isOpen'),_0x5a8ddf['buttonView']['set']({'label':g(_0x1ac738,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xcb5707}),_0x5a8ddf['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x24af15['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x24af15['to'](_0x5982ae=>_0x5982ae['stopPropagation']())}}),_0x5a8ddf['on']('execute',_0x2dc96d=>{_0x4ad00a['isReady']&&'function'==typeof _0x2dc96d['source']['_action']&&_0x2dc96d['source']['_action'](_0x4ad00a);}),_0x12d551(_0x5a8ddf,_0x4d7f7b,{'role':'menu'}),_0x5a8ddf['listenTo'](_0x4ad00a,'change:isActionsDropdownOpen',(_0x3c52f6,_0x84fdea,_0x13f9c6)=>{if(_0x13f9c6)for(const _0x4ff460 of _0x5a8ddf['listView']['items']){const _0x43f9be=_0x4ff460['children']['first'],_0x1d51c7=_0x33af60['find'](_0x17bf7c=>_0x17bf7c['action']===_0x43f9be['_action'])['isVisible'];_0x4ff460['isVisible']=void 0x0===_0x1d51c7||_0x1d51c7(_0x4ad00a);}}),_0x5a8ddf;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x41d42c,_0x4d6407,_0x167e10,_0x1a9471){super(_0x41d42c);const _0x3c765b=this['bindTemplate'],_0x33c6ac=function(_0x59e121,_0x45866c){const _0x3ae573=Array['from'](_0x45866c['authors'])['filter'](_0x2a187f=>_0x2a187f!=_0x45866c['creator']);return _0x45866c['creator']&&_0x3ae573['unshift'](_0x45866c['creator']),_0x3ae573['map'](_0x2662b5=>new si(_0x59e121,_0x2662b5,_0x2662b5==_0x45866c['creator']));}(_0x41d42c,_0x4d6407);this['id']=_0x4d6407['id'],this['_revision']=_0x4d6407,this['_requireRevisionName']=_0x1a9471,this['bind']('name','createdAt')['to'](_0x4d6407),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2dd001=>{return _0x369ea1=_0x41d42c['uiLanguage'],(_0x3e00fb=_0x2dd001)['toLocaleDateString'](_0x369ea1,{'month':'long','day':'numeric'})+',\x20'+_0x3e00fb['toLocaleTimeString'](_0x369ea1,{'hour':'numeric','minute':'numeric'});var _0x369ea1,_0x3e00fb;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x41d42c,_0x8970f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x385272=>_0x385272||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x22681a,_0x3570a7)=>_0x22681a&&_0x3570a7),this['revisionActionsView']=_0x167e10&&_0x167e10['length']?oi(this,_0x167e10):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3c765b['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3c765b['if']('isEnabled','ck-disabled',_0x167c60=>!_0x167c60),_0x3c765b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3c765b['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3c765b['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':_0x3c765b['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':_0x33c6ac}]},this['revisionActionsView']],'on':{'click':_0x3c765b['to'](_0x993c65=>{_0x993c65['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x559383=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x559383,'change',()=>{this['_requireRevisionName']&&!_0x559383['value']||this['fire']('setName',{'id':this['id'],'name':_0x559383['value']}),_0x559383['value']||(_0x559383['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x1c4198,_0x4bd7a6){const _0x2d0566=_0x43fc8f['fromJSDate'](_0x1c4198)['setLocale'](_0x4bd7a6),_0x2c86cd=_0x43fc8f['local'](),_0x172fb3=_0x2c86cd['minus']({'days':0x1})['startOf']('day');let _0x3d4062,_0x18dfee;return _0x2d0566['hasSame'](_0x2c86cd,'day')?(_0x3d4062=_0x2d0566['startOf']('day')['toJSDate'](),_0x18dfee=_0x2d0566['toRelativeCalendar']()):_0x2d0566['hasSame'](_0x172fb3,'day')?(_0x3d4062=_0x172fb3['toJSDate'](),_0x18dfee=_0x2d0566['toRelativeCalendar']()):_0x2d0566['hasSame'](_0x2c86cd,'week')?(_0x3d4062=_0x2d0566['startOf']('week')['toJSDate'](),_0x18dfee=_0x2d0566['weekdayLong']||''):_0x2d0566['hasSame'](_0x2c86cd,'year')?(_0x3d4062=_0x2d0566['startOf']('month')['toJSDate'](),_0x18dfee=_0x2d0566['monthLong']||''):(_0x3d4062=_0x2d0566['startOf']('year')['toJSDate'](),_0x18dfee=String(_0x2d0566['year'])),{'startDate':_0x3d4062,'localizedPeriodName':_0x18dfee};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x198a1b,_0xba5700,_0x598315,_0x564a68){super(_0x198a1b);const _0x1b06e3=vi(_0xba5700,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xba5700,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x598315,this['_requireRevisionName']=_0x564a68,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':_0x1b06e3}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x56514d){const _0x5c6399=new hi(this['locale'],_0x56514d,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5c6399);}['removeRevision'](_0x5ce378){const _0x134cc7=this['revisionViews']['find'](_0x247867=>_0x247867['id']===_0x5ce378['id']);this['revisionViews']['remove'](_0x134cc7);}}class as extends ts{constructor(_0xdcdfd1){super(_0xdcdfd1);const _0x3817c1=new _0x535fd4();_0x3817c1['content']=_0x5eca74,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3817c1,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xdcdfd1,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2b9cd9,_0x17dd7b,_0x21875e,_0x40d25f){super(_0x2b9cd9);const _0x4fd68f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x17dd7b,this['_revisionActions']=_0x21875e,this['_requireRevisionName']=_0x40d25f,this['on']('select',(_0x28a110,_0x16c475)=>{this['fire']('revisionSelected',_0x16c475);}),this['on']('setName',(_0x7d7fd4,_0x354869)=>{this['fire']('revisionSetName',_0x354869);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2b9cd9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4fd68f['if']('isEnabled','ck-disabled',_0x1ea926=>!_0x1ea926)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1c379b of this['_revisions'])this['_addRevision'](_0x1c379b);this['_revisions']['on']('add',(_0xb1615e,_0x363dee)=>{this['_addRevision'](_0x363dee);}),this['_revisions']['on']('remove',(_0x4b5398,_0x1880a9)=>{this['_removeRevision'](_0x1880a9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5aaa2f=>_0x5aaa2f['revisionViews']['map'](_0x4033dc=>_0x4033dc))['flat']();}['selectRevision'](_0x575074){for(const _0x1368a7 of this['revisionViews'])_0x575074&&_0x575074['id']===_0x1368a7['id']?_0x1368a7['select']():_0x1368a7['deselect']();}['highlightRevisions'](_0x6eb9bf){for(const _0x41b634 of this['revisionViews'])_0x6eb9bf['some'](({id:_0x5b61dd})=>_0x5b61dd===_0x41b634['id'])?_0x41b634['highlight']():_0x41b634['unhighlight']();}['_addRevision'](_0x2240d5){const _0x16672e=vi(_0x2240d5['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4c3d2f=this['timePeriodViews']['get'](0x0);_0x4c3d2f&&_0x4c3d2f['startDate']['getTime']()===_0x16672e['getTime']()||(_0x4c3d2f=new mi(this['locale'],_0x16672e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4c3d2f)),_0x4c3d2f['addRevision'](_0x2240d5);}['_removeRevision'](_0x17887c){const _0x523b6b=vi(_0x17887c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x523b6b)['removeRevision'](_0x17887c);}['_getTimePeriodViewByStartDate'](_0x4f4fa6){return this['timePeriodViews']['find'](_0x429010=>_0x429010['startDate']['getTime']()===_0x4f4fa6['getTime']());}}class d extends _0x294c95{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0xc4c939(_0x394299){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x35c30e,_0x27dea6){super(_0x27dea6),this['sourceElement']=_0x35c30e,this['model']['document']['createRoot']();const _0x297c45=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x297c45);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4be3e4,_0x255194){const _0x27e21b=new this(_0x4be3e4,_0x255194);return await _0x27e21b['initPlugins'](),await _0x27e21b['ui']['init'](_0x4be3e4),await _0x27e21b['data']['init'](_0x27e21b['config']['get']('initialData')||''),_0x27e21b['fire']('ready'),_0x27e21b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x47e767{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x82442c){function _0x3abf48(_0xd85dca){return _0xd85dca['map'](_0x40fd59=>String['fromCharCode'](_0x40fd59))['join']('');}super(_0x82442c),this['result']='end',_0x82442c[_0x3abf48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3abf48([0x76,0x69,0x65,0x77])][_0x3abf48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3abf48([0x61,0x75,0x74,0x6f]),_0x82442c[_0x3abf48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3abf48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3abf48([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3abf48([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3abf48([0x6f,0x6b])});}}class k extends _0x47e767{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x171786){if(super(_0x171786),!this['editor']['config']['get']('revisionHistory'))throw new _0x1dd723('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4c8dc6=>this['_showRevisionViewer']({..._0x4c8dc6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x12c6da=>this['_closeRevisionViewer'](_0x12c6da)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2ded39=>this['_restoreRevision'](_0x2ded39)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4aa456){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4aa456;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x599444){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x599444);}['getRevision'](_0x24a44b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x24a44b);}['getRevisions'](_0x59272a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x59272a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5a03b8=this['editor'],_0x399581=_0x516551(_0x5a03b8,p),_0x8a4783=_0x5a03b8['plugins']['get']('RevisionTracker'),_0x12d759=_0x5a03b8['plugins']['get']('Users')['users'];return _0x399581['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x399581['lazyRoots'],(_0x399581['plugins']['push'](_t,m,R,class extends _0x47e767{static get['requires'](){return[m,'Users'];}['init'](){const _0x320942=this['editor']['plugins']['get']('Users');for(const _0x5caa86 of _0x12d759)_0x5caa86['isAnonymous']||_0x320942['getUser'](_0x5caa86['id'])||_0x320942['addUser'](_0x5caa86);const _0x2a4409=_0x8a4783['repository']['getRevisions']();let _0x491d2a=null;const _0xc7cae9=this['editor']['plugins']['get']('RevisionViewer');_0xc7cae9['adapter']=_0x8a4783['adapter'],_0xc7cae9['bind']('isEnabled')['to'](_0x8a4783),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5a03b8,'isReadOnly',_0x3dc5c0=>!_0x3dc5c0);for(const _0x1a1658 of _0x2a4409){const _0x442178=null===_0x1a1658['creator'];if(_0x442178&&_0x1a1658['toVersion']===_0x1a1658['fromVersion'])continue;const _0x136cf0=_0x1a1658['toJSON']();_0xc7cae9['addRevisionData'](_0x136cf0,(_0xa1b2c9,_0x587a94,_0x40032f)=>{if(_0x442178){if(_0x491d2a)_0x491d2a['_update'](_0xa1b2c9,_0x587a94);else{if(!_0x587a94){const _0x4c4399=_0x40032f['toJSON']();_0x4c4399['id']=_0x2b268f(),_0x8a4783['saveRevision'](_0x4c4399,_0x40032f['toVersion'])['then'](_0x1bc876=>{_0x491d2a=_0x1bc876;});}}}else _0x1a1658['_update'](_0xa1b2c9,_0x587a94);});}}},d),_0x399581);}['_enhanceShowRevisionViewerCallback'](){const _0x3940d2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3e9ea3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x105953=this['editor']['plugins']['get']('Autosave');await _0x105953['save']();}else await _0x3e9ea3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x48e885=this['editor']['plugins']['get']('Dialog');_0x48e885['isOpen']&&_0x48e885['hide']();}const _0x1a7a1f=this['_getRevisionViewerEditorConfig']();return _0x3940d2(_0x1a7a1f)['then'](_0x19b4b5=>{return(this['_viewerEditor']=_0x19b4b5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x19b4b5);})['catch'](_0x2c41e7=>(console['error'](_0x2c41e7),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x9930f1=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x9930f1(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xca5eee=this['editor']['plugins']['get']('Annotations');_0xca5eee['refreshVisibility'](),_0xca5eee['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3a314b){const _0x59ae31=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x584f31=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x443f02=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x443f02,_0x3a314b)['then'](_0x59f609=>(_0x584f31['style']['display']='block',_0x59ae31['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x59f609));}['_closeRevisionViewer'](_0x45b591){const _0x2fe144=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2fe144['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x45b591['destroy']();}async['_restoreRevision'](_0x2ef975){const _0x42b994=this['editor'],_0x930980=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5bf789=_0x42b994['plugins']['get']('RevisionTracker'),_0x190732=_0x42b994['plugins']['get']('RevisionHistoryUtils'),_0x5dcb8a=_0x930980['repository']['getRevision'](_0x2ef975);let _0xf3a5ca,_0x3169d5,_0x3b9f94;try{await _0x190732['loadRevisionData'](_0x5dcb8a,this['adapter']),_0xf3a5ca=_0x190732['getRevisionDocumentData'](_0x5dcb8a),_0x3169d5=_0x190732['getRevisionRootsAttributes'](_0x5dcb8a);}catch(_0x5eab69){return void console['error'](_0x5eab69);}_0x42b994['model']['change'](_0x4847a9=>{for(const _0x5f32f9 of Array['from'](_0x42b994['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4847a9['removeMarker'](_0x5f32f9);}),_0x930980['isReady']=!0x1,_0x42b994['model']['enqueueChange'](_0x51397d=>{_0x51397d['setSelection'](null),_0x51397d['removeSelectionAttribute'](_0x42b994['model']['document']['selection']['getAttributeKeys']());const _0x4564b8=Object['keys'](_0xf3a5ca);for(const _0x13c50d of _0x42b994['model']['document']['roots'])'$graveyard'!=_0x13c50d['rootName']&&_0x13c50d['isAttached']()&&!_0x4564b8['includes'](_0x13c50d['rootName'])&&_0x51397d['detachRoot'](_0x13c50d);for(const _0x5cf706 of _0x4564b8){let _0x575d89=_0x42b994['model']['document']['getRoot'](_0x5cf706);_0x575d89&&_0x575d89['isAttached']()||(_0x575d89=_0x51397d['addRoot'](_0x5cf706));const _0x1b4cb5=_0x3169d5[_0x5cf706],_0x813a74=Object['keys'](_0x1b4cb5),_0x2894ec=_0xf3a5ca[_0x5cf706];for(const _0x65ce19 of _0x575d89['getAttributeKeys']())_0x813a74['includes'](_0x65ce19)||_0x51397d['removeAttribute'](_0x65ce19,_0x575d89);for(const _0x361727 of _0x813a74)_0x51397d['setAttribute'](_0x361727,_0x3169d5[_0x5cf706][_0x361727],_0x575d89);_0x51397d['remove'](_0x51397d['createRangeIn'](_0x575d89)),_0x51397d['insert'](_0x42b994['data']['parse'](_0x2894ec,_0x575d89),_0x575d89,0x0);}});const _0x2b4c49=g(_0x42b994['locale'],'Restored');if(_0x5dcb8a['name'])_0x3b9f94=-0x1==_0x5dcb8a['name']['indexOf'](_0x2b4c49)?_0x2b4c49+':\x20'+_0x5dcb8a['name']:_0x5dcb8a['name'];else _0x3b9f94=_0x2b4c49+':\x20'+(_0x5dcb8a['createdAt']['toLocaleDateString'](_0x42b994['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5dcb8a['createdAt']['toLocaleTimeString'](_0x42b994['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5bf789['saveRevision']({'name':_0x3b9f94}),_0x930980['isReady']=!0x0,_0x42b994['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,de as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x244b95){super(_0x244b95),this['_revisionViewer']=_0x244b95['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x36a71e=this['_revisionsRepository']['_revisions'],_0x1d7754=this['_createRevisionActions'](),_0x4afcff=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x36a71e,_0x1d7754,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',(_0x2b23e0,_0x4a0834)=>{_0x4a0834['revisionViews']['on']('add',(_0x3e1606,_0x397929)=>{_0x397929['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)),_0x4afcff['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xc4a0a=this['_revisionsRepository']['getRevision'](0x0);if(_0xc4a0a){const _0x252c68=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xc4a0a['id']);this['_revisionViewer']['compare'](_0xc4a0a,_0x252c68);}}['_handleRevisionSelected'](_0x18baad,_0xd5f17b){const _0x586bdd=this['_revisionsRepository']['getRevision'](_0xd5f17b['id']),_0x119dc7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x586bdd['id']);this['_revisionViewer']['compare'](_0x586bdd,_0x119dc7);}['_handleRevisionSetName'](_0x4e9a6d,_0x4398ad){this['_revisionsRepository']['getRevision'](_0x4398ad['id'])['setName'](_0x4398ad['name']);}['_handleDiffChange'](_0x4c6455,_0xde874e,_0x4f5b30){const _0x41be23=this['_revisionsRepository']['getRevisionsInDiff'](_0x4f5b30);_0x41be23['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x41be23),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x41be23[0x0]));}['_createRevisionActions'](){const _0x34975b=this['editor'],_0xcf7443=d['availableRevisionActions'],_0x1aed2d=_0x34975b['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x1aed2d['length'])return _0x1aed2d['map'](_0x480556=>{const _0x2b13ad='string'==typeof _0x480556?Object['assign']({},_0xcf7443[_0x480556]):_0x480556;return _0x2b13ad['action']=_0x2b13ad['action']['bind'](this,_0x34975b),_0x2b13ad['isVisible']&&(_0x2b13ad['isVisible']=_0x2b13ad['isVisible']['bind'](this,_0x34975b)),_0x2b13ad;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x537cbb},_0x5ece83)=>{const _0x1616bf=_0x537cbb['get'](m),_0x59b5ea=_0x1616bf['repository'];let _0x203931=_0x1616bf['diff']['newRevisionId'],_0x1c9bec=_0x5ece83['id'];_0x59b5ea['getIndex'](_0x203931)>_0x59b5ea['getIndex'](_0x1c9bec)&&([_0x203931,_0x1c9bec]=[_0x1c9bec,_0x203931]),_0x1616bf['compare'](_0x203931,_0x1c9bec);},'isVisible':({plugins:_0x2715f2},_0x29cb75)=>{const _0x5bd371=_0x2715f2['get'](m);return!(_0x5bd371['repository']['getRevisionsInDiff'](_0x5bd371['diff'])['length']>0x2)&&!_0x29cb75['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x426997,{id:_0x4495dc})=>{_0x426997['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4495dc);},'isVisible':({plugins:_0x5f1c13},_0x1af862)=>!!_0x5f1c13['get'](m)['repository']['getLaterVisibleRevision'](_0x1af862['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5f3352},{id:_0x3d35e0,revisionNameView:_0x3db86d})=>{const _0x404711=_0x5f3352['get'](m),_0xb3ee91=_0x404711['repository']['getEarlierVisibleRevision'](_0x3d35e0);_0x404711['compare'](_0x3d35e0,_0xb3ee91),_0x3db86d['focus'](),_0x3db86d['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x576582,_0x1144f6){super(_0x576582),this['_view']=_0x1144f6,this['_toolbarConfig']=et(_0x576582['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0xd24607){const _0x18db35=this['editor'],_0x5670f1=this['view'],_0x24de58=_0x18db35['editing']['view'],_0x3fc016=_0x5670f1['editable'],_0x2304c5=_0x24de58['document']['getRoot']();_0x3fc016['name']=_0x2304c5['rootName'],_0x5670f1['render']();const _0x136525=_0x3fc016['element'];this['setEditableElement'](_0x3fc016['name'],_0x136525),_0x5670f1['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24de58['attachDomRoot'](_0x136525),this['_elementReplacer']['replace'](_0xd24607,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3a36a4=this['view'],_0x1394c2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1394c2['detachDomRoot'](_0x3a36a4['editable']['name']),_0x3a36a4['destroy']();}['_initToolbar'](){const _0x2e3c6f=this['view'];_0x2e3c6f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2e3c6f['stickyPanel']['limiterElement']=_0x2e3c6f['element'],_0x2e3c6f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x75e4cb})=>_0x75e4cb),_0x2e3c6f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2e3c6f['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x213b35,_0x2f4847,_0x570e17={}){super(_0x213b35),this['stickyPanel']=new ht(_0x213b35),this['toolbar']=new dt(_0x213b35,{'shouldGroupWhenFull':_0x570e17['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x213b35,_0x2f4847);}['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
|
+
_0x473944(_0x597429){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4656f1,_0x3b118d){super(_0x3b118d),this['sourceElement']=_0x4656f1,this['model']['document']['createRoot']();const _0x32ed01=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x32ed01);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5cc9f5,_0x22597f){const _0x32a40d=new this(_0x5cc9f5,_0x22597f);return await _0x32a40d['initPlugins'](),await _0x32a40d['ui']['init'](_0x5cc9f5),await _0x32a40d['data']['init'](_0x32a40d['config']['get']('initialData')||''),_0x32a40d['fire']('ready'),_0x32a40d;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x294c95{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x81c66f){function _0x2c462f(_0xf6c7ad){return _0xf6c7ad['map'](_0x163880=>String['fromCharCode'](_0x163880))['join']('');}super(_0x81c66f),this['result']='end',_0x81c66f[_0x2c462f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c462f([0x76,0x69,0x65,0x77])][_0x2c462f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c462f([0x61,0x75,0x74,0x6f]),_0x81c66f[_0x2c462f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c462f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c462f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c462f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c462f([0x6f,0x6b])});}}class k extends _0x294c95{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x3c09f2){if(super(_0x3c09f2),!this['editor']['config']['get']('revisionHistory'))throw new _0x569748('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1b1104=>this['_showRevisionViewer']({..._0x1b1104,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x51e6de=>this['_closeRevisionViewer'](_0x51e6de)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xaf2c12=>this['_restoreRevision'](_0xaf2c12)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xd2f0fe){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xd2f0fe;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x458089){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x458089);}['getRevision'](_0xce0e0a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xce0e0a);}['getRevisions'](_0x5af67b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5af67b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4f7685=this['editor'],_0x2db321=_0x5e675d(_0x4f7685,p),_0x2fcd6f=_0x4f7685['plugins']['get']('RevisionTracker'),_0x517cd4=_0x4f7685['plugins']['get']('Users')['users'];return _0x2db321['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2db321['lazyRoots'],(_0x2db321['plugins']['push'](_t,m,R,class extends _0x294c95{static get['requires'](){return[m,'Users'];}['init'](){const _0x2da071=this['editor']['plugins']['get']('Users');for(const _0x45e382 of _0x517cd4)_0x45e382['isAnonymous']||_0x2da071['getUser'](_0x45e382['id'])||_0x2da071['addUser'](_0x45e382);const _0x57b0ee=_0x2fcd6f['repository']['getRevisions']();let _0x5430c4=null;const _0x24436b=this['editor']['plugins']['get']('RevisionViewer');_0x24436b['adapter']=_0x2fcd6f['adapter'],_0x24436b['bind']('isEnabled')['to'](_0x2fcd6f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4f7685,'isReadOnly',_0x1c8df2=>!_0x1c8df2);for(const _0x5b82c1 of _0x57b0ee){const _0x5c5d8b=null===_0x5b82c1['creator'];if(_0x5c5d8b&&_0x5b82c1['toVersion']===_0x5b82c1['fromVersion'])continue;const _0x3f3a88=_0x5b82c1['toJSON']();_0x24436b['addRevisionData'](_0x3f3a88,(_0x1de1d9,_0x373194,_0x233273)=>{if(_0x5c5d8b){if(_0x5430c4)_0x5430c4['_update'](_0x1de1d9,_0x373194);else{if(!_0x373194){const _0x4457cf=_0x233273['toJSON']();_0x4457cf['id']=_0x3e0359(),_0x2fcd6f['saveRevision'](_0x4457cf,_0x233273['toVersion'])['then'](_0x3486ce=>{_0x5430c4=_0x3486ce;});}}}else _0x5b82c1['_update'](_0x1de1d9,_0x373194);});}}},d),_0x2db321);}['_enhanceShowRevisionViewerCallback'](){const _0xeca981=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3f5b7f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x27a6da=this['editor']['plugins']['get']('Autosave');await _0x27a6da['save']();}else await _0x3f5b7f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x487a1b=this['editor']['plugins']['get']('Dialog');_0x487a1b['isOpen']&&_0x487a1b['hide']();}const _0x56c106=this['_getRevisionViewerEditorConfig']();return _0xeca981(_0x56c106)['then'](_0x3eb6e0=>{return(this['_viewerEditor']=_0x3eb6e0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3eb6e0);})['catch'](_0x5be353=>(console['error'](_0x5be353),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1d8f44=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1d8f44(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x26a056=this['editor']['plugins']['get']('Annotations');_0x26a056['refreshVisibility'](),_0x26a056['refreshPositioning']();}})));}['_showRevisionViewer'](_0x198f6f){const _0x51a3eb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1ae744=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3af5a4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3af5a4,_0x198f6f)['then'](_0x3f6e03=>(_0x1ae744['style']['display']='block',_0x51a3eb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3f6e03));}['_closeRevisionViewer'](_0x4ba06f){const _0x5e8b10=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5e8b10['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4ba06f['destroy']();}async['_restoreRevision'](_0x3ef92c){const _0x2009d0=this['editor'],_0x1f59ec=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x18b8eb=_0x2009d0['plugins']['get']('RevisionTracker'),_0x133d3e=_0x2009d0['plugins']['get']('RevisionHistoryUtils'),_0x37fffb=_0x1f59ec['repository']['getRevision'](_0x3ef92c);let _0x2212f3,_0x4638fc,_0x10737a;try{await _0x133d3e['loadRevisionData'](_0x37fffb,this['adapter']),_0x2212f3=_0x133d3e['getRevisionDocumentData'](_0x37fffb),_0x4638fc=_0x133d3e['getRevisionRootsAttributes'](_0x37fffb);}catch(_0x2f639b){return void console['error'](_0x2f639b);}_0x2009d0['model']['change'](_0x603653=>{for(const _0x45aa8c of Array['from'](_0x2009d0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x603653['removeMarker'](_0x45aa8c);}),_0x1f59ec['isReady']=!0x1,_0x2009d0['model']['enqueueChange'](_0x5a373c=>{_0x5a373c['setSelection'](null),_0x5a373c['removeSelectionAttribute'](_0x2009d0['model']['document']['selection']['getAttributeKeys']());const _0x5c6999=Object['keys'](_0x2212f3);for(const _0x125ccd of _0x2009d0['model']['document']['roots'])'$graveyard'!=_0x125ccd['rootName']&&_0x125ccd['isAttached']()&&!_0x5c6999['includes'](_0x125ccd['rootName'])&&_0x5a373c['detachRoot'](_0x125ccd);for(const _0x7eb7f of _0x5c6999){let _0x5be4d0=_0x2009d0['model']['document']['getRoot'](_0x7eb7f);_0x5be4d0&&_0x5be4d0['isAttached']()||(_0x5be4d0=_0x5a373c['addRoot'](_0x7eb7f));const _0x34084c=_0x4638fc[_0x7eb7f],_0x4c613e=Object['keys'](_0x34084c),_0xcc332d=_0x2212f3[_0x7eb7f];for(const _0x12254e of _0x5be4d0['getAttributeKeys']())_0x4c613e['includes'](_0x12254e)||_0x5a373c['removeAttribute'](_0x12254e,_0x5be4d0);for(const _0x39eacb of _0x4c613e)_0x5a373c['setAttribute'](_0x39eacb,_0x4638fc[_0x7eb7f][_0x39eacb],_0x5be4d0);_0x5a373c['remove'](_0x5a373c['createRangeIn'](_0x5be4d0)),_0x5a373c['insert'](_0x2009d0['data']['parse'](_0xcc332d,_0x5be4d0),_0x5be4d0,0x0);}});const _0x12fa41=g(_0x2009d0['locale'],'Restored');if(_0x37fffb['name'])_0x10737a=-0x1==_0x37fffb['name']['indexOf'](_0x12fa41)?_0x12fa41+':\x20'+_0x37fffb['name']:_0x37fffb['name'];else _0x10737a=_0x12fa41+':\x20'+(_0x37fffb['createdAt']['toLocaleDateString'](_0x2009d0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x37fffb['createdAt']['toLocaleTimeString'](_0x2009d0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x18b8eb['saveRevision']({'name':_0x10737a}),_0x1f59ec['isReady']=!0x0,_0x2009d0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,de as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|