@ckeditor/ckeditor5-revision-history 45.1.0-alpha.3 → 45.1.0-alpha.5
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
|
-
_0x58fb8b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5306ad){super(),this['id']=_0x5306ad['id']||_0x2fb20f(),this['creator']=_0x5306ad['creator']||null,this['authors']=_0x5306ad['authors']||[],this['diffData']=_0x5306ad['diffData']||null,this['toVersion']=_0x5306ad['toVersion']||0x0,this['fromVersion']=_0x5306ad['fromVersion']||0x0,this['set']('name',_0x5306ad['name']||''),this['set']('createdAt',_0x5306ad['createdAt']||new Date()),this['set']('attributes',_0x5306ad['attributes']||{});}['setName'](_0x19022c){this['_update']({'name':_0x19022c});}['setAttribute'](_0x4111ef,_0xf03ceb){const _0x2b0b4d=_0x26c2db(this['attributes']);_0x561756(_0x2b0b4d,_0x4111ef,_0xf03ceb),this['_update']({'attributes':_0x2b0b4d});}['removeAttribute'](_0xcbc430){const _0xb63c39=_0x26c2db(this['attributes']);_0x4bc9c3(_0xb63c39,_0xcbc430),this['_update']({'attributes':_0xb63c39});}['_update'](_0x11f659,_0x2f909f=!0x1){let _0x4226d4=!0x1;const _0x3a6b61={'id':this['id']},_0x4af7b3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x29e0f9 of _0x4af7b3){const _0x1dde61=_0x11f659[_0x29e0f9];void 0x0!==_0x1dde61&&_0x1dde61!==this[_0x29e0f9]&&(this[_0x29e0f9]=_0x1dde61,_0x3a6b61[_0x29e0f9]=_0x1dde61,_0x4226d4=!0x0);}_0x4226d4&&(_0x3a6b61['authors']&&(_0x3a6b61['authorsIds']=_0x3a6b61['authors']['map'](_0xdaa700=>_0xdaa700['id']),delete _0x3a6b61['authors']),this['fire']('_update',_0x3a6b61,_0x2f909f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x35db52=>_0x35db52['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5c3263{['_revisions'];static get['requires'](){return[_0xcce3f1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x19746b){super(_0x19746b),this['_revisions']=new _0x669071();}['afterInit'](){!async function(_0xdef2cf){const _0x32c063=_0x3965de([0x4d,0x38,0x79,0x49,0x75,0x78,0x6e,0x56,0x69,0x6d,0x35,0x4c,0x70,0x30,0x54,0x6a,0x64,0x74,0x45,0x50,0x4f,0x6b,0x39,0x4a,0x53,0x33,0x6f,0x51,0x55,0x34,0x5a,0x71,0x76,0x62,0x65,0x48,0x77,0x57,0x31,0x32,0x63,0x46,0x4b,0x73,0x7a,0x67,0x61,0x68,0x6c,0x59,0x43,0x44,0x58,0x42,0x4e,0x41,0x36,0x72,0x52,0x66,0x37,0x47]),_0x4207c8=0xeb829,_0x36474e=0x7c94d910,_0x9693d2=0x7c93be60^_0x36474e,_0x4c6249=window[_0x3965de([0x44,0x61,0x74,0x65])][_0x3965de([0x6e,0x6f,0x77])](),_0x4afeec=_0xdef2cf[_0x3965de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x49e2be=new window[(_0x3965de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ea6fe=>{_0x4afeec[_0x3965de([0x6f,0x6e,0x63,0x65])](_0x3965de([0x72,0x65,0x61,0x64,0x79]),_0x3ea6fe);}),_0x197294={[_0x3965de([0x6b,0x74,0x79])]:_0x3965de([0x45,0x43]),[_0x3965de([0x75,0x73,0x65])]:_0x3965de([0x73,0x69,0x67]),[_0x3965de([0x63,0x72,0x76])]:_0x3965de([0x50,0x2d,0x32,0x35,0x36]),[_0x3965de([0x78])]:_0x3965de([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]),[_0x3965de([0x79])]:_0x3965de([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]),[_0x3965de([0x61,0x6c,0x67])]:_0x3965de([0x45,0x53,0x32,0x35,0x36])},_0x348316=_0x4afeec[_0x3965de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3965de([0x67,0x65,0x74])](_0x3965de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f31dc(){let _0xc5a691,_0x286e9f=null,_0x574c20=null;try{if(_0x348316==_0x3965de([0x47,0x50,0x4c]))return _0x3965de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc5a691=_0x218ca3(),!_0xc5a691)return _0x3965de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc5a691[_0x3965de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x574c20=_0x5fc50d(_0xc5a691[_0x3965de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc5a691[_0x3965de([0x6a,0x74,0x69])])),await _0x2c3c59()?_0x29dc82()?_0x37bdd5()?_0x3965de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a9bdf()?(_0xc5a691[_0x3965de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3965de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x286e9f=_0x5563f5(_0x3965de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc5a691[_0x3965de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3965de([0x74,0x72,0x69,0x61,0x6c])&&(_0x286e9f=_0x5563f5(_0x3965de([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d6080()):_0x3965de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3965de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3965de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f68a1){return _0x3965de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37bdd5(){const _0x57de6a=[_0x3965de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3965de([0x74,0x72,0x69,0x61,0x6c])][_0x3965de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc5a691[_0x3965de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c6249/0x3e8:0xe10*_0x9693d2;return _0xc5a691[_0x3965de([0x65,0x78,0x70])]<_0x57de6a;}function _0x29dc82(){const _0xb6d05e=_0xc5a691[_0x3965de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xb6d05e)return!0x1;if(_0xb6d05e[_0x3965de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3965de([0x2a])))return!0x0;if(_0xb6d05e[_0x3965de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3965de([0x52,0x48])))return!0x0;if(_0xb6d05e[_0x3965de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3965de([0x52,0x52,0x48]))){if(_0x7101d5())return!0x0;if(_0xfc8c3f()||_0x472c36())return!0x0;}return!0x1;}function _0x5a9bdf(){const _0x2375da=_0xc5a691[_0x3965de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2375da||0x0==_0x2375da[_0x3965de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x483134}=new URL(window[_0x3965de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2375da[_0x3965de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483134))return!0x0;const _0x11b0c7=_0x483134[_0x3965de([0x73,0x70,0x6c,0x69,0x74])](_0x3965de([0x2e]));return _0x2375da[_0x3965de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1adb89=>_0x1adb89[_0x3965de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3965de([0x2a])))[_0x3965de([0x6d,0x61,0x70])](_0x4a7c24=>_0x4a7c24[_0x3965de([0x73,0x70,0x6c,0x69,0x74])](_0x3965de([0x2e])))[_0x3965de([0x73,0x6f,0x6d,0x65])](_0x5cb572=>_0x11b0c7[_0x3965de([0x65,0x76,0x65,0x72,0x79])]((_0x184616,_0x35a5c5)=>_0x5cb572[_0x35a5c5]===_0x184616||_0x5cb572[_0x35a5c5]===_0x3965de([0x2a])));}function _0x5d6080(){return _0x286e9f&&_0x574c20?new window[(_0x3965de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfaddba,_0x27895c)=>{_0x286e9f[_0x3965de([0x74,0x68,0x65,0x6e])](_0xfaddba,_0x27895c),_0x574c20[_0x3965de([0x74,0x68,0x65,0x6e])](_0x4ab2f8=>{_0x4ab2f8!=_0x3965de([0x56,0x61,0x6c,0x69,0x64])&&_0xfaddba(_0x4ab2f8);},_0x27895c);}):_0x286e9f||_0x574c20||_0x3965de([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5fc50d(_0x511f9e,_0x35bc2b){return new window[(_0x3965de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4baf7b=>{if(_0x4f75cd())return _0x4baf7b(_0x3965de([0x56,0x61,0x6c,0x69,0x64]));_0x30023e(),_0x4afeec[_0x3965de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3965de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x176a8c=!0x1;const _0x78d0d3=_0x2fb20f();function _0x4609fe(_0x111ae8){return!!_0x111ae8&&(typeof _0x111ae8===_0x3965de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x111ae8===_0x3965de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x111ae8[_0x3965de([0x74,0x68,0x65,0x6e])]===_0x3965de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x111ae8[_0x3965de([0x63,0x61,0x74,0x63,0x68])]===_0x3965de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5226c3(_0x24854b){_0x4b34e1(_0x24854b)[_0x3965de([0x74,0x68,0x65,0x6e])](_0x40e761=>{if(!_0x40e761||_0x40e761[_0x3965de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3965de([0x6f,0x6b]))return _0x3965de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f8ca5(_0x2b942c(_0x78d0d3+_0x35bc2b))!=_0x40e761[_0x3965de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3965de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3965de([0x56,0x61,0x6c,0x69,0x64]);})[_0x3965de([0x74,0x68,0x65,0x6e])](_0x77149a=>(_0x5ad53a(),_0x77149a),()=>{const _0x50adce=_0x59b43e();return null==_0x50adce?(_0x5ad53a(),_0x3965de([0x56,0x61,0x6c,0x69,0x64])):_0x3965de(_0x4c6249-_0x50adce>(0x58985d10^_0x36474e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3965de([0x74,0x68,0x65,0x6e])](_0x4baf7b)[_0x3965de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4baf7b(_0x3965de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x17dc4e=0x7ca23790^_0x36474e;function _0x5ad53a(){const _0x47fa84=_0x3965de([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f8ca5(_0x2b942c(_0x511f9e)),_0x25a437=_0xa51a03(_0x2f8ca5(window[_0x3965de([0x4d,0x61,0x74,0x68])][_0x3965de([0x63,0x65,0x69,0x6c])](_0x4c6249/_0x17dc4e)));window[_0x3965de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3965de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47fa84,_0x25a437);}function _0x59b43e(){const _0x356ee7=_0x3965de([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f8ca5(_0x2b942c(_0x511f9e)),_0x25ac6d=window[_0x3965de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3965de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x356ee7);return _0x25ac6d?window[_0x3965de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa51a03(_0x25ac6d),0x10)*_0x17dc4e:null;}function _0x4b34e1(_0x1da98a){return new window[(_0x3965de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4df976,_0x272c86)=>{_0x1da98a[_0x3965de([0x74,0x68,0x65,0x6e])](_0x4df976,_0x272c86),window[_0x3965de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x272c86,0x7c950dd0^_0x36474e);});}}_0x4afeec[_0x3965de([0x6f,0x6e])](_0x3965de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3babf7,_0x10d562)=>{if(_0x10d562[0x0]!=_0x511f9e)return _0x4baf7b(_0x3965de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10d562[0x1]={..._0x10d562[0x1],[_0x3965de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x78d0d3};},{[_0x3965de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3965de([0x68,0x69,0x67,0x68])}),_0x4afeec[_0x3965de([0x6f,0x6e])](_0x3965de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1170f9=>{_0x4609fe(_0x1170f9[_0x3965de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x176a8c=!0x0,_0x5226c3(_0x1170f9[_0x3965de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3965de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3965de([0x6c,0x6f,0x77])}),_0x49e2be[_0x3965de([0x74,0x68,0x65,0x6e])](()=>{_0x176a8c||_0x4baf7b(_0x3965de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f75cd(){return _0x4afeec[_0x3965de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3965de([0x76,0x69,0x65,0x77])][_0x3965de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3965de([0x61,0x75,0x74,0x6f]);}function _0x30023e(){_0x4afeec[_0x3965de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3965de([0x76,0x69,0x65,0x77])][_0x3965de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3965de([0x61,0x75,0x74,0x6f]);}}function _0x5563f5(_0x42a8d2){const _0x2248f6=[new window[(_0x3965de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad3a2=>setTimeout(_0x3ad3a2,0x7c9de7dc^_0x36474e)),_0x49e2be[_0x3965de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3965de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29512a=>{const _0x20fa43=0x7c94d917^_0x36474e,_0x3ef2d5=_0xdef2cf[_0x3965de([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1ce665(){_0x3ef2d5[_0x3965de([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x20fa43&&_0x29512a();}_0x1ce665(),_0x3ef2d5[_0x3965de([0x6f,0x6e])](_0x3965de([0x61,0x64,0x64]),_0x1ce665);})),new window[(_0x3965de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56fd06=>{function _0x1867ae(){for(const _0x511b50 in window)if(window[_0x3965de([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3965de([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x511b50))&&window[_0x511b50]==_0x4207c8)return _0x56fd06();_0x4afeec[_0x3965de([0x73,0x74,0x61,0x74,0x65])]!=_0x3965de([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3965de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1867ae,0x7c94ca98^_0x36474e);}_0x157ffb(_0x3965de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1867ae();})];return window[_0x3965de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3965de([0x72,0x61,0x63,0x65])](_0x2248f6)[_0x3965de([0x74,0x68,0x65,0x6e])](()=>_0x42a8d2);}async function _0x5b4e60(){if(await _0x49e2be,_0x157ffb(_0x3965de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x240445=_0xdef2cf[_0x3965de([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4f1952=_0xdef2cf[_0x3965de([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])](_0x240445[_0x3965de([0x69,0x64])]),_0xab797d=_0x92ae5c(_0x3965de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xab797d[_0x3965de([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x240445['id'],_0x4f1952?_0x4f1952['id']:null,!0x0),_0xab797d[_0x3965de([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3965de([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xab797d[_0x3965de([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xab797d[_0x3965de([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x56315e,void(_0xab797d[_0x3965de([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x56315e);}if(_0x157ffb(_0x3965de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xf8287c=_0x92ae5c(_0x3965de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xf8287c[_0x3965de([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3965de([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xf8287c[_0x3965de([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xf8287c[_0x3965de([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x56315e,_0xf8287c[_0x3965de([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x56315e;}_0x4afeec[_0x3965de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3965de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x56315e,_0x4afeec[_0x3965de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3965de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x56315e,_0x4afeec[_0x3965de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3965de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7101d5(){return _0x157ffb(_0x3965de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x92ae5c(_0x3965de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3965de([0x73,0x74,0x61,0x74,0x65])]==_0x3965de([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xfc8c3f(){return _0x157ffb(_0x3965de([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 _0x472c36(){return _0x157ffb(_0x3965de([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x20e83e(_0x46aee9){const _0x91d8ad=_0x4789a3();_0x4afeec[_0x91d8ad]=_0x3965de([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])+_0x46aee9,_0x46aee9[_0x3965de([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3965de([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4789a3()]=_0x4207c8),_0x46aee9!=_0x3965de([0x56,0x61,0x6c,0x69,0x64])&&_0x5b4e60();}function _0x4789a3(){const _0x55f51e=window[_0x3965de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3965de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3965de([0x6e,0x6f,0x77])]())[_0x3965de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3965de([0x2e]),'');let _0x4a60e3=_0x3965de([0x4d]);for(let _0x2cb34e=0x0;_0x2cb34e<_0x55f51e[_0x3965de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cb34e+=0x2){let _0x2a67f3=window[_0x3965de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55f51e[_0x3965de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cb34e,_0x2cb34e+0x2));_0x2a67f3>=_0x32c063[_0x3965de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a67f3-=_0x32c063[_0x3965de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a60e3+=_0x32c063[_0x2a67f3];}return _0x4a60e3;}function _0x218ca3(){const _0x22185f=_0x348316[_0x3965de([0x73,0x70,0x6c,0x69,0x74])](_0x3965de([0x2e]));if(0x3!=_0x22185f[_0x3965de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58eec0(_0x22185f[0x1]);function _0x58eec0(_0x295ecc){const _0x3e71e2=_0x2ddf76(_0x295ecc);return _0x3e71e2&&_0x3bec1d()?_0x3e71e2:null;function _0x3bec1d(){const _0x4b6866=_0x3e71e2[_0x3965de([0x6a,0x74,0x69])],_0x4d741e=window[_0x3965de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b6866[_0x3965de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b6866[_0x3965de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51d79b={..._0x3e71e2,[_0x3965de([0x6a,0x74,0x69])]:_0x4b6866[_0x3965de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b6866[_0x3965de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51d79b[_0x3965de([0x76,0x63])],_0x2b942c(_0x51d79b)==_0x4d741e;}}}async function _0x2c3c59(){let _0x47f1ec=!0x0;try{const _0x265886=_0x348316[_0x3965de([0x73,0x70,0x6c,0x69,0x74])](_0x3965de([0x2e])),[_0x4b0660,_0x9db1bf,_0x202c2b]=_0x265886;return _0x25e4ec(_0x4b0660),await _0x447c6c(_0x4b0660,_0x9db1bf,_0x202c2b),_0x47f1ec;}catch(_0xd83cd4){return!0x1;}function _0x25e4ec(_0x257bef){const _0x4c84cc=_0x2ddf76(_0x257bef);_0x4c84cc&&_0x4c84cc[_0x3965de([0x61,0x6c,0x67])]==_0x3965de([0x45,0x53,0x32,0x35,0x36])||(_0x47f1ec=!0x1);}async function _0x447c6c(_0x736157,_0x37c6c0,_0xe7da54){const _0x4c02ec=window[_0x3965de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3965de([0x66,0x72,0x6f,0x6d])](_0x36935a(_0xe7da54),_0x487010=>_0x487010[_0x3965de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e59f2=new window[(_0x3965de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3965de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x736157+_0x3965de([0x2e])+_0x37c6c0),_0x5725d6=window[_0x3965de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3965de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5725d6)return;const _0x241f44=await _0x5725d6[_0x3965de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3965de([0x6a,0x77,0x6b]),_0x197294,{[_0x3965de([0x6e,0x61,0x6d,0x65])]:_0x3965de([0x45,0x43,0x44,0x53,0x41]),[_0x3965de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3965de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3965de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5725d6[_0x3965de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3965de([0x6e,0x61,0x6d,0x65])]:_0x3965de([0x45,0x43,0x44,0x53,0x41]),[_0x3965de([0x68,0x61,0x73,0x68])]:{[_0x3965de([0x6e,0x61,0x6d,0x65])]:_0x3965de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x241f44,_0x4c02ec,_0x5e59f2)||(_0x47f1ec=!0x1);}}function _0x2ddf76(_0x395a35){return _0x395a35[_0x3965de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3965de([0x65,0x79]))?JSON[_0x3965de([0x70,0x61,0x72,0x73,0x65])](_0x36935a(_0x395a35)):null;}function _0x36935a(_0x29d888){return window[_0x3965de([0x61,0x74,0x6f,0x62])](_0x29d888[_0x3965de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3965de([0x2b]))[_0x3965de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3965de([0x2f])));}function _0x2b942c(_0x450f2d){let _0x180b18=0x1505;function _0x158f21(_0x19e491){for(let _0xf113a0=0x0;_0xf113a0<_0x19e491[_0x3965de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf113a0++){const _0x4eaf02=_0x19e491[_0x3965de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf113a0);_0x180b18=(_0x180b18<<0x5)+_0x180b18+_0x4eaf02,_0x180b18&=_0x180b18;}}function _0x40a7bd(_0x142458){Array[_0x3965de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x142458)?_0x142458[_0x3965de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40a7bd):_0x142458&&typeof _0x142458==_0x3965de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3965de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x142458)[_0x3965de([0x73,0x6f,0x72,0x74])]()[_0x3965de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57f89a,_0x1958db])=>{_0x158f21(_0x57f89a),_0x40a7bd(_0x1958db);}):_0x158f21(window[_0x3965de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x142458));}return _0x40a7bd(_0x450f2d),_0x180b18>>>0x0;}function _0x2f8ca5(_0x3599cf){return _0x3599cf[_0x3965de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3965de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3965de([0x30]));}function _0xa51a03(_0x4f4df8){return _0x4f4df8[_0x3965de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3965de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3965de([0x6a,0x6f,0x69,0x6e])]('');}function _0x157ffb(_0x21f252){return _0x4afeec[_0x3965de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3965de([0x68,0x61,0x73])](_0x21f252);}function _0x92ae5c(_0x584466){return _0x4afeec[_0x3965de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3965de([0x67,0x65,0x74])](_0x584466);}function _0x56315e(){}function _0x3965de(_0x40904a){return _0x40904a['map'](_0x50f05e=>String['fromCharCode'](_0x50f05e))['join']('');}_0x20e83e(await _0x3f31dc());}(this);}['createRevision'](_0xcf2f48){const _0x3a8cdc=this['editor']['plugins']['get']('Users');return new h({'id':_0xcf2f48['id'],'name':_0xcf2f48['name'],'creator':_0xcf2f48['creatorId']?_0x3a8cdc['getUser'](_0xcf2f48['creatorId']):null,'diffData':_0xcf2f48['diffData']||_0xcf2f48['data'],'authors':_0xcf2f48['authorsIds']['map'](_0x460c63=>_0x3a8cdc['getUser'](_0x460c63)),'createdAt':new Date(_0xcf2f48['createdAt']),'attributes':_0xcf2f48['attributes'],'fromVersion':_0xcf2f48['fromVersion'],'toVersion':_0xcf2f48['toVersion']});}['addRevision'](_0x21107a,_0x31f23d=0x0){this['_revisions']['add'](_0x21107a,_0x31f23d);}['getRevision'](_0x4a4ace){return this['_revisions']['get'](_0x4a4ace);}['getRevisions'](_0xf006ea={'toJSON':!0x1}){const _0xcb632b=Array['from'](this['_revisions']);return _0xcb632b['reverse'](),_0xf006ea['toJSON']?_0xcb632b['map'](_0x32bffb=>_0x32bffb['toJSON']()):_0xcb632b;}['getIndex'](_0x238ff9){return this['_revisions']['getIndex'](_0x238ff9);}['getEarlierVisibleRevision'](_0x211957){const [,_0x22f47f]=this['getRevisionsIterator'](_0x211957,{'direction':'earlier'});return _0x22f47f;}['getLaterVisibleRevision'](_0x44f15e){const [,_0x3c36a7]=this['getRevisionsIterator'](_0x44f15e,{'direction':'later'});return _0x3c36a7;}['getRevisionsInDiff'](_0x34900f){const _0x56f7b9=[];for(const _0x52b094 of this['getRevisionsIterator'](_0x34900f['newRevisionId']))if(_0x56f7b9['push'](_0x52b094),_0x52b094['id']===_0x34900f['oldRevisionId'])break;return _0x56f7b9;}*['getRevisionsIterator'](_0x616c02,{direction:_0x24ab41='earlier',filter:_0xd49cdb=()=>!0x0}={}){const _0x872758='earlier'===_0x24ab41?0x1:-0x1;let _0xc438ec=this['_revisions']['get'](_0x616c02),_0x32eb65=this['getIndex'](_0xc438ec);for(yield _0xc438ec;_0xc438ec;){if(_0x32eb65+=_0x872758,_0xc438ec=this['getRevision'](_0x32eb65),!_0xc438ec)return;_0xd49cdb(_0xc438ec)&&(yield _0xc438ec);}}}class V extends _0x5c3263{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x400feb,'c'],[_0x48b23a,'a'],[_0x5c7295,'e'],[_0x40358f,'r'],[_0xf755d3,'u']]);['_typeCharToViewClass']=new Map([['c',_0x400feb],['a',_0x48b23a],['e',_0x5c7295],['r',_0x40358f],['u',_0xf755d3]]);async['loadRevisionData'](_0x2e7507,_0x4d04ae){if(_0x2e7507['diffData']||!_0x4d04ae)return;const _0x1f91c3=this['editor']['config']['get']('collaboration.channelId'),_0x3ab0d5=await _0x4d04ae['getRevision']({'channelId':_0x1f91c3,'revisionId':_0x2e7507['id']});_0x2e7507['diffData']=_0x3ab0d5['diffData'];}['getRevisionDocumentData'](_0x5afcfc){const _0x41aa5f={};for(const _0x2f7fb7 in _0x5afcfc['diffData']){if(_0x5afcfc['diffData'][_0x2f7fb7]['attachChange']&&!_0x5afcfc['diffData'][_0x2f7fb7]['attachChange']['isAttached'])continue;const _0x7139a7=this['_removeRevisionMarkers'](JSON['parse'](_0x5afcfc['diffData'][_0x2f7fb7]['insertions'])),_0x64b7a5=this['editor']['editing']['view']['document'],_0x32a53b=new _0xb1a1e6(_0x64b7a5,_0x7139a7['map'](_0x392515=>this['_getViewFromDiffObj'](_0x392515,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x41aa5f[_0x2f7fb7]=this['editor']['data']['processor']['toData'](_0x32a53b),this['editor']['data']['processor']['useFillerType']('default');}return _0x41aa5f;}['getRevisionRootsAttributes'](_0x345a70){const _0xf5bb7e={};for(const _0x59e716 in _0x345a70['diffData'])_0x345a70['diffData'][_0x59e716]['attachChange']&&!_0x345a70['diffData'][_0x59e716]['attachChange']['isAttached']||(_0xf5bb7e[_0x59e716]=_0x345a70['diffData'][_0x59e716]['attributesAfter']||{});return _0xf5bb7e;}['_getTypeCharForViewElement'](_0x375d6e){return this['_viewClassToTypeChar']['get'](_0x375d6e['constructor']);}['_getViewFromDiffObj'](_0x1d30a4,_0x3bb127){const _0x35e41e=this['editor']['editing']['view']['document'];if('string'==typeof _0x1d30a4)return new _0x5b8d85(_0x35e41e,_0x1d30a4);{let _0x18cf81,_0x410e2e;_0x410e2e='u'==_0x1d30a4['type']||'r'==_0x1d30a4['type']?[]:_0x1d30a4['children']['map'](_0x3473c9=>this['_getViewFromDiffObj'](_0x3473c9,_0x3bb127));const _0x3760a0=this['_typeCharToViewClass']['get'](_0x1d30a4['type'])||_0x115617,_0xbeeaa2=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x18cf81=new _0x3760a0(_0x35e41e,_0x1d30a4['name'],_0x1d30a4['attributes'],_0x410e2e),'u'==_0x1d30a4['type']&&_0x1d30a4['children'][0x0]){const _0x150737=_0x1d30a4['children'][0x0];if(_0x18cf81['render']=function(_0x1805f0){const _0x2b4ba2=_0x1805f0['createElement']('div');return _0x2b4ba2['innerHTML']=_0x150737,_0x2b4ba2['childNodes'][0x0];},_0x3bb127){const _0x293ee8=new _0xb1a1e6(_0x35e41e);_0x293ee8['_appendChild'](_0x18cf81);const _0x5402c4=Array['from'](_0xbeeaa2['viewChildrenToDom'](_0x293ee8,{'bind':!0x1})),_0x547914=_0xbeeaa2['domDocument']['createElement']('div');_0x547914['append'](..._0x5402c4),_0x18cf81=Array['from'](_0xbeeaa2['domChildrenToView'](_0x547914))[0x0];}}else{if('r'==_0x1d30a4['type']&&_0x1d30a4['children'][0x0]){const _0x3984da=_0x1d30a4['children'][0x0];if(_0x18cf81['render']=function(_0x456434){_0x456434['innerHTML']=_0x3984da;},_0x3bb127){const _0x48491c=new _0xb1a1e6(_0x35e41e);_0x48491c['_appendChild'](_0x18cf81);const _0x4aa562=Array['from'](_0xbeeaa2['viewChildrenToDom'](_0x48491c,{'bind':!0x1})),_0x4e8ff9=_0xbeeaa2['domDocument']['createElement']('div');_0x4e8ff9['append'](..._0x4aa562);const _0x1b6395=Array['from'](_0xbeeaa2['domChildrenToView'](_0x4e8ff9));_0x1b6395['length']>0x1?_0x18cf81['_appendChild'](_0x1b6395):_0x18cf81=_0x1b6395[0x0];}}}if(_0x1d30a4['customProperties']){for(const [_0x27125d,_0x4d3f6c]of _0x1d30a4['customProperties'])_0x18cf81['_setCustomProperty'](_0x27125d,_0x4d3f6c);}const _0x114c55=void 0x0===_0x1d30a4['fillerOffset']?null:_0x1d30a4['fillerOffset'];return null!==_0x114c55&&(_0x18cf81['getFillerOffset']=()=>_0x114c55),_0x18cf81;}}['_makeModelFromViewString'](_0x4eecff){const _0x2e76c0=JSON['parse'](_0x4eecff),_0x2a1be1=this['editor']['editing']['view']['document'],_0x42f4cb=new _0xb1a1e6(_0x2a1be1,_0x2e76c0['map'](_0x3d1da7=>this['_getViewFromDiffObj'](_0x3d1da7,!0x0)));return this['editor']['data']['toModel'](_0x42f4cb);}['_removeRevisionMarkers'](_0x453eee){return(_0x453eee=_0x453eee['filter'](_0xfad795=>!_0xfad795['name']||'revision-start'!==_0xfad795['name']&&'revision-end'!==_0xfad795['name']))['forEach'](_0x68ffd=>{'string'!=typeof _0x68ffd&&(_0x68ffd['children']=this['_removeRevisionMarkers'](_0x68ffd['children']),_0x68ffd['attributes']=_0x68ffd['attributes']['filter'](_0x47bf9f=>!_0x47bf9f[0x0]['startsWith']('data-revision-')));}),_0x453eee;}}function g(_0x423960,_0x22e99b,_0x41b735){const t=_0x423960['t'];switch(_0x22e99b){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'},_0x41b735);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x41b735);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 _0x5c3263{['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[_0xcce3f1,I,V,_0x58ede1];}constructor(_0x5a72f5){super(_0x5a72f5),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 _0x47dc3e=_0x2fb20f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x47dc3e},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 _0x469c62=this['repository']['getRevision'](0x0),_0x1ed981=_0x469c62&&null===_0x469c62['creator']?_0x469c62:null;if(this['_continueCurrentRevision']=!!_0x1ed981&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5c8c98=this['_source']['getCurrentRevisionId'](),_0x341d26=this['repository']['getRevision'](_0x5c8c98);if(_0x341d26)this['_startingVersion']=_0x341d26['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x87d4ae=this['_source']['history']['_operations']['find'](_0x5cbdf5=>!_0x5cbdf5['_isInit']),_0x565ab2=_0x87d4ae?_0x87d4ae['baseVersion']:this['_source']['history']['version'];_0x469c62?(_0x469c62['toVersion']<_0x565ab2&&_0x469c62['_update']({'toVersion':_0x565ab2}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1ed981['id'],this['_startingVersion']=_0x1ed981['fromVersion']):(this['_startingVersion']=_0x469c62['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x565ab2,this['_continueCurrentRevision']=!0x1);}}else _0x1ed981&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1ed981['toVersion'],this['editor']['model']['document']['history']['version']),_0x1ed981['fromVersion']===_0x1ed981['toVersion']?(0x0!==_0x1ed981['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1ed981['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1ed981['id'],this['_startingVersion']=_0x1ed981['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',_0x12f24e=>!_0x12f24e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x55bdae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x124591;for(const _0x57a73f in _0x55bdae){const _0xffd739=_0x57a73f,_0x5bdc15=_0x55bdae[_0xffd739];if('revisionHistoryLicenseKeyValid'==_0x5bdc15||'revisionHistoryLicenseKeyInvalid'==_0x5bdc15||'revisionHistoryLicenseKeyExpired'==_0x5bdc15||'revisionHistoryLicenseKeyDomainLimit'==_0x5bdc15||'revisionHistoryLicenseKeyNotAllowed'==_0x5bdc15||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5bdc15||'revisionHistoryLicenseKeyTrialLimit'==_0x5bdc15||'revisionHistoryLicenseKeyUsageLimit'==_0x5bdc15){delete _0x55bdae[_0xffd739],_0x124591=_0x5bdc15,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x124591&&_0x55bdae['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x124591&&_0x55bdae['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x124591&&_0x55bdae['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x124591&&_0x55bdae['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x124591&&_0x55bdae['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x124591&&_0x55bdae['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x124591&&_0x55bdae['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x49a3f7=this['repository']['getRevision'](0x0),_0x24acee=await this['getRevisionDocumentData'](_0x49a3f7),_0x542cd0=await this['getRevisionRootsAttributes'](_0x49a3f7);this['_replaceEditorDataWithRevisionData'](_0x24acee,_0x542cd0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3e4cb5){this['_source']=_0x3e4cb5;}async['update'](){const _0x2442c3=await this['_source']['getLatestVersion']();if(_0x2442c3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x98a661=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2442c3});_0x98a661['authors']=_0x98a661['authorsIds']['map'](_0x858195=>this['editor']['plugins']['get']('Users')['getUser'](_0x858195)),this['currentRevision']['_update'](_0x98a661);}}async['saveRevision'](_0x5f6e31={},_0x147d77=null){const _0x1e536e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x147d77>this['currentRevision']['toVersion']&&(_0x147d77=null),null===_0x147d77&&(_0x147d77=await this['_source']['getLatestVersion']());const _0x57325f=this['_getFromVersion'](_0x147d77),_0x1ca889=this['buildRevisionData']({'from':_0x57325f,'to':_0x147d77});if(this['currentRevision']['toVersion']<_0x147d77){const _0x338614=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x147d77,'to':_0x147d77});_0x338614['authors']=[],_0x338614['authorsIds']=[],_0x338614['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x338614,!0x0),delete _0x338614['authors'],_0x1e536e['push'](_0x338614);}_0x5f6e31['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f6e31['name']=_0x5f6e31['name']||null,_0x5f6e31['id']=_0x5f6e31['id']||_0x2fb20f(),_0x5f6e31={..._0x5f6e31,..._0x1ca889};const _0x1e0557=this['addRevisionData'](_0x5f6e31);_0x1e536e['push'](_0x5f6e31);const _0xdd8c6e=this['repository']['getIndex'](_0x1e0557);if(0x0!==_0xdd8c6e){const _0x4ffec0=this['repository']['getRevision'](_0xdd8c6e-0x1);if(_0x4ffec0['fromVersion']!==_0x147d77){const _0x5148f0=this['_revisionDataBuilder']['getData'](_0x147d77,_0x4ffec0['toVersion']),_0xf384c7={'id':_0x4ffec0['id'],'diffData':_0x5148f0['diffData'],'authorsIds':_0x5148f0['authorsIds'],'authors':_0x5148f0['authorsIds']['map'](_0x921401=>this['editor']['plugins']['get']('Users')['getUser'](_0x921401)),'fromVersion':_0x147d77};_0x4ffec0===this['currentRevision']&&(_0xf384c7['createdAt']=new Date(_0x5f6e31['createdAt']['getTime']()+0xa)),_0x4ffec0['_update'](_0xf384c7,!0x0),delete _0xf384c7['authors'],_0x1e536e['push'](_0xf384c7);}}if(this['adapter']){for(const _0x27cb79 of _0x1e536e)this['_bufferUpdate'](_0x27cb79['id'],_0x27cb79,!0x0);this['sendBufferedUpdates']();}return _0x1e0557;}['addRevisionData'](_0x5a922d){const _0x581819=this['repository']['createRevision'](_0x5a922d);return this['adapter']&&_0x581819['on']('_update',(_0x4fbfd3,_0x30cd4f,_0x2b1506)=>{_0x2b1506||(this['_bufferUpdate'](_0x30cd4f['id'],_0x30cd4f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x581819,this['_findInsertionIndex'](_0x581819)),_0x581819;}async['getRevisionDocumentData'](_0x3d734a){return await this['_utils']['loadRevisionData'](_0x3d734a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3d734a);}async['getRevisionRootsAttributes'](_0x518fdc){return await this['_utils']['loadRevisionData'](_0x518fdc,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x518fdc);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x322594=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3db583=0x0;_0x3db583<_0x322594['length'];_0x3db583++){const _0x11a969=_0x322594[_0x3db583];let _0xf6cc2b=!0x1;for(const _0x3490ed of Object['keys'](_0x11a969))void 0x0===_0x11a969[_0x3490ed]?delete _0x11a969[_0x3490ed]:'id'!==_0x3490ed&&(_0xf6cc2b=!0x0);_0xf6cc2b||(_0x322594[_0x3db583]=null);}if(_0x322594=_0x322594['filter'](_0x1bad77=>null!==_0x1bad77),!_0x322594['length'])return;for(let _0x2dad29=0x0;_0x2dad29<_0x322594['length'];_0x2dad29++){const _0x40fecb=_0x322594[_0x2dad29];void 0x0!==_0x40fecb['fromVersion']&&void 0x0===_0x40fecb['toVersion']&&(_0x40fecb['toVersion']=this['repository']['getRevision'](_0x40fecb['id'])['toVersion']),void 0x0!==_0x40fecb['toVersion']&&void 0x0===_0x40fecb['fromVersion']&&(_0x40fecb['fromVersion']=this['repository']['getRevision'](_0x40fecb['id'])['fromVersion']);}const _0x3b7bb6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x322594,_0x3b7bb6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x464b60=>{if(_0x464b60){for(const _0x545ef2 of _0x464b60)this['setRevisionData']({'id':_0x545ef2['id'],'createdAt':_0x545ef2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1261b9=null,from:_0x179e2b=null,to:_0x4a641c=null}){_0x179e2b=null!==_0x179e2b?_0x179e2b:_0x1261b9['fromVersion'],_0x4a641c=null!==_0x4a641c?_0x4a641c:_0x1261b9['toVersion'];const _0x3709b1=this['_revisionDataBuilder']['getData'](_0x179e2b,_0x4a641c),_0x2d4f84={'diffData':_0x3709b1['diffData'],'authorsIds':_0x3709b1['authorsIds'],'fromVersion':_0x179e2b,'toVersion':_0x4a641c};if(!_0x1261b9||_0x4a641c!==_0x1261b9['toVersion']){const _0x12105c=_0x4a641c-0x1,_0x4d3ce9=this['_source']['history']['getOperation'](_0x12105c);_0x2d4f84['createdAt']=_0x4d3ce9&&_0x4d3ce9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x179e2b===this['_loadedStateData']['fromVersion']){for(const _0x517a0a of this['_loadedStateData']['authors'])_0x2d4f84['authorsIds']['includes'](_0x517a0a['id'])||_0x2d4f84['authorsIds']['push'](_0x517a0a['id']);}return _0x2d4f84;}['_bufferUpdate'](_0x312f5e,_0x4c9dde,_0x3e7815){if(this['_bufferedUpdates']['has'](_0x312f5e)){const _0x509dc8=this['_bufferedUpdates']['get'](_0x312f5e);_0x4c9dde=_0x3e7815?{..._0x509dc8,..._0x4c9dde}:{..._0x4c9dde,..._0x509dc8};}this['_bufferedUpdates']['set'](_0x312f5e,_0x4c9dde);}['setRevisionData'](_0x6baa1c){const _0x3b86ea=this['repository']['getRevision'](_0x6baa1c['id']);if(_0x6baa1c['createdAt']&&(_0x6baa1c['createdAt']=new Date(_0x6baa1c['createdAt'])),_0x6baa1c['authorsIds']){const _0x44c5f2=this['editor']['plugins']['get']('Users');_0x6baa1c['authors']=_0x6baa1c['authorsIds']['map'](_0x418ee6=>_0x44c5f2['getUser'](_0x418ee6));}_0x3b86ea['_update'](_0x6baa1c,!0x0);}['_createInitialRevision'](_0x2ae645){const _0x3f2dc4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3f2dc4)this['_initialRevisionId']=_0x3f2dc4['id'];else{const _0x1e4754=!this['editor']['model']['document']['roots']['find'](_0x447aef=>this['editor']['model']['hasContent'](_0x447aef)),_0x24f8f0=this['editor']['plugins']['get']('Users')['me']['id'],_0x374d50=g(this['editor']['locale'],_0x1e4754?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2ae645,'to':_0x2ae645,'id':this['_initialRevisionId'],'name':_0x374d50,'creatorId':_0x24f8f0});}}['_createCurrentRevision'](_0x31dfee){const _0x38959f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x38959f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x31dfee,'to':_0x31dfee,'id':_0x38959f,'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'](_0x25c719,_0x137964){let _0x1c04c2=this['editor']['config']['get']('initialData'),_0x407a7c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1c04c2){_0x1c04c2={};for(const _0x1902b0 of this['editor']['model']['document']['getRootNames']())_0x1c04c2[_0x1902b0]='';}if('string'==typeof _0x1c04c2&&(_0x1c04c2={'main':_0x1c04c2}),void 0x0===_0x407a7c){_0x407a7c={};for(const _0x147e4b of this['editor']['model']['document']['getRootNames']())_0x407a7c[_0x147e4b]={};}let _0x5a9bfe=!0x1;const _0x2720b6=Object['keys'](_0x1c04c2),_0xb47269=Object['keys'](_0x25c719);for(const _0x21c060 of _0x2720b6){if(_0x1c04c2[_0x21c060]!==_0x25c719[_0x21c060]&&''!==_0x1c04c2[_0x21c060]['trim']()){_0x5a9bfe=!0x0;break;}if(!_0x58145b(_0x407a7c[_0x21c060],_0x137964[_0x21c060])&&Object['keys'](_0x407a7c[_0x21c060])['length']>0x0){_0x5a9bfe=!0x0;break;}}_0x5a9bfe||(_0x5a9bfe=_0xb47269['some'](_0x3afc98=>!this['editor']['model']['document']['getRoot'](_0x3afc98))),_0x5a9bfe&&_0x681380('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1c04c2,'editorRootsAttributes':_0x407a7c,'revisionData':_0x25c719,'revisionRootsAttributes':_0x137964}),this['editor']['config']['set']('initialData',_0x25c719),this['editor']['config']['set']('rootsAttributes',_0x137964);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5e19bd=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5e19bd['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4e7140){const _0x5058f6=this['repository']['getRevisions']();_0x5058f6['reverse']();let _0x4fc7aa=0x0;for(;_0x4fc7aa<_0x5058f6['length'];){const _0x26f738=_0x5058f6[_0x4fc7aa];if(_0x26f738===this['currentRevision']){_0x4fc7aa++;continue;}if(_0x26f738['id']===this['_initialRevisionId'])break;const _0x39b727=_0x4e7140['toVersion']-_0x26f738['toVersion']||_0x4e7140['fromVersion']-_0x26f738['fromVersion'];if(_0x39b727>0x0)break;if(_0x39b727<0x0)_0x4fc7aa++;else{if(!_0x4e7140['creator']&&_0x26f738['creator'])break;if(_0x26f738['creator']||!_0x4e7140['creator']){if(_0x4e7140['createdAt']>_0x26f738['createdAt'])break;_0x4fc7aa++;}else _0x4fc7aa++;}}return _0x4fc7aa;}['_getFromVersion'](_0xda80e1){const _0x469489=this['repository']['getRevisions']();_0x469489['reverse'](),_0x469489['shift']();const _0x3a2fae=_0x469489['find'](_0x144ee5=>_0x144ee5['toVersion']<=_0xda80e1)['toVersion'];return _0x3a2fae<this['_startingVersion']?this['_startingVersion']:_0x3a2fae;}['_makeRevision']({name:_0x422b5f,from:_0x36e268,to:_0x4c1912,creatorId:_0x6451bc,id:_0x430e3f}){const _0x5c202a=this['buildRevisionData']({'from':_0x36e268,'to':_0x4c1912});_0x5c202a['name']=_0x422b5f,_0x5c202a['creatorId']=_0x6451bc,_0x5c202a['id']=_0x430e3f;const _0x467b1b=this['addRevisionData'](_0x5c202a);return this['adapter']&&this['_bufferUpdate'](_0x5c202a['id'],_0x5c202a,!0x0),_0x467b1b;}['_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(_0x3a947e){this['editor']=_0x3a947e,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'](_0x15b5f9){this['source']=_0x15b5f9;const _0x5c9e70=new Map(),_0x4d41c7=new Map(),_0x3babff=this['editor']['model']['document']['roots']['map'](_0x384c97=>_0x384c97['rootName']);for(const _0x383c7d of _0x3babff){const _0x39fa14=this['editor']['model']['document']['getRoot'](_0x383c7d),_0x2bb3ea=N(_0x39fa14);_0x5c9e70['set'](_0x383c7d,_0x2bb3ea),_0x4d41c7['set'](_0x383c7d,Object['fromEntries'](_0x39fa14['getAttributes']()));}const _0x5592b3=Array['from'](this['editor']['model']['markers'])['map'](_0x1cc868=>[_0x1cc868['name'],_0x1cc868['getRange']()]),_0x14f60d=this['source']['version'];this['_saveMetaData'](_0x14f60d,_0x5c9e70,_0x5592b3,_0x4d41c7),this['_startingRevisionId']=this['_revisionId'];const _0x3a8022=new Map(),_0x139050=new Map();for(const _0x5be867 of _0x3babff){const _0x27b55e=P(_0x5be867);_0x3a8022['set'](_0x5be867,_0x27b55e),_0x139050['set'](_0x5be867,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3a8022,[],_0x139050);}['getData'](_0x55b386,_0x115f4e){if(this['_lastFrom']===_0x55b386&&this['_lastTo']<=_0x115f4e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x115f4e,!0x0);else{if(!this['_savedMetaData']['has'](_0x55b386)){const _0x338811=this['_getPreviousFrom'](_0x55b386);this['_calculateMetaData'](_0x338811,_0x55b386,!0x1);}this['_calculateMetaData'](_0x55b386,_0x115f4e,!0x0);}return this['_lastFrom']=_0x55b386,this['_lastTo']=_0x115f4e,this['_getState']();}['loadState'](_0x456c47){const _0x2b4e5b=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x456c47['fromVersion'],this['_lastTo']=_0x456c47['toVersion'];for(const _0x202738 in _0x456c47['diffData']){const _0x24e407=_0x456c47['diffData'][_0x202738]['attachChange'],_0x463613=_0x26c2db(_0x456c47['diffData'][_0x202738]['attributesBefore'])||{},_0x3d8ff9=_0x2b4e5b['_makeModelFromViewString'](_0x456c47['diffData'][_0x202738]['deletions']);_0x3d8ff9['rootName']=_0x202738,_0x3d8ff9['_isAttached']=!_0x24e407||!_0x24e407['isAttached'],_0x3d8ff9['isAttached']=()=>_0x3d8ff9['_isAttached'],this['_baseRoots']['set'](_0x202738,_0x3d8ff9),this['_baseRootsAttributes']['set'](_0x202738,_0x463613),_0x24e407&&this['_touchedRoots']['set'](_0x202738,_0x24e407);const _0x2a5671=this['_makeIdsRoot'](_0x3d8ff9);this['_baseIdsRoots']['set'](_0x202738,_0x2a5671);for(const [_0x4b021d,_0x3a1d86]of _0x3d8ff9['markers']){if(!_0x4b021d['startsWith']('revision:'))continue;const _0x196a63=_0x4b021d['split'](':')[0x2];for(const _0x13dc25 of _0x3a1d86['getWalker']({'singleCharacters':!0x0})){const _0x1826d4=this['_getVidAttributeName'](_0x13dc25),_0x409d58='elementEnd'==_0x13dc25['type']?_0x13dc25['previousPosition']['path']['slice'](0x0,-0x1):_0x13dc25['previousPosition']['path'],_0x1659f4=_0x2a5671['getNodeByPath'](_0x409d58)['getAttribute'](_0x1826d4);this['_touched']['set'](_0x1659f4,{'userId':_0x196a63});}}}this['_startingRevisionId']=this['_revisionId'];const _0xe64250=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x201171=>!this['_touched']['has'](_0x201171));let _0x42bd68=0x0;const _0x21fc93=new Map();for(const _0x2f9e45 in _0x456c47['diffData']){const _0x26ae67=_0x456c47['diffData'][_0x2f9e45]['attachChange'],_0x20bcd6=_0x26c2db(_0x456c47['diffData'][_0x2f9e45]['attributesAfter'])||{},_0x40409d=_0x2b4e5b['_makeModelFromViewString'](_0x456c47['diffData'][_0x2f9e45]['insertions']);_0x40409d['rootName']=_0x2f9e45,_0x40409d['_isAttached']=!_0x26ae67||_0x26ae67['isAttached'],_0x40409d['isAttached']=()=>_0x40409d['_isAttached'],this['_diffRoots']['set'](_0x2f9e45,_0x40409d),this['_diffRootsAttributes']['set'](_0x2f9e45,_0x20bcd6);const _0x573e54=this['_makeIdsRoot'](_0x40409d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2f9e45,_0x573e54),_0x21fc93['set'](_0x2f9e45,_0x40409d['isAttached']()?_0x20bcd6:{});for(const [_0x18a64b,_0x3a3a5e]of _0x40409d['markers']){if(!_0x18a64b['startsWith']('revision:'))continue;const _0x109e4a=_0x18a64b['split'](':')[0x2];for(const _0x45f257 of _0x3a3a5e['getWalker']({'singleCharacters':!0x0})){const _0x955a08=this['_getVidAttributeName'](_0x45f257),_0x2cf6=this['_revisionId']++,_0x5af2eb='elementEnd'==_0x45f257['type']?_0x45f257['previousPosition']['path']['slice'](0x0,-0x1):_0x45f257['previousPosition']['path'];_0x573e54['getNodeByPath'](_0x5af2eb)['_setAttribute'](_0x955a08,_0x2cf6),this['_touched']['set'](_0x2cf6,{'userId':_0x109e4a});}}for(const _0x2f09c6 of this['editor']['model']['createRangeIn'](_0x40409d)['getWalker']({'singleCharacters':!0x0})){const _0x9d4b5c=this['_getVidAttributeName'](_0x2f09c6),_0x28e375='elementEnd'==_0x2f09c6['type']?_0x2f09c6['previousPosition']['path']['slice'](0x0,-0x1):_0x2f09c6['previousPosition']['path'],_0x106357=_0x573e54['getNodeByPath'](_0x28e375);_0x106357['getAttribute'](_0x9d4b5c)>0x0||_0x106357['_setAttribute'](_0x9d4b5c,_0xe64250[_0x42bd68++]);}for(const [_0x33302c,_0x3bccb9]of _0x40409d['markers'])_0x33302c['startsWith']('revision:')||this['_markers']['set'](_0x33302c,_0x3bccb9);}const _0x39b40e=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x39b40e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x39b40e,0x1));const _0x45e0de=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x45e0de),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x45e0de,0x1));const _0x1e13ac=Array['from'](this['_diffRoots'])['map'](([_0x29e535,_0x179ade])=>[_0x29e535,N(_0x179ade)]);this['_saveMetaData'](this['_lastTo'],_0x1e13ac,this['_markers'],_0x21fc93);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x7924cd,_0x21e9a6,_0x5deef4,_0x3fa75a){const _0x413d4b=new Map(_0x21e9a6),_0x2a750e=new Map(_0x26c2db(_0x3fa75a)),_0x951919=new Map();for(const [_0x37a86c,_0x4648f1]of _0x5deef4)_0x951919['set'](_0x37a86c,{'start':_0x4648f1['start']['clone'](),'end':_0x4648f1['end']['clone'](),'rootName':_0x4648f1['root']['rootName']});this['_savedMetaData']['set'](_0x7924cd,{'roots':_0x413d4b,'markers':_0x951919,'rootsAttributes':_0x2a750e});}['_removeMetaData'](_0x47b343){this['_savedMetaData']['delete'](_0x47b343);}['_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'](_0x3171b5,_0x2ca187=null){let _0xeb86ff=null;_0x3171b5['is']('documentFragment')||(_0xeb86ff=new ut(_0x3171b5['name'],{'vid_start':null===_0x2ca187?this['_revisionId']++:_0x2ca187++}));const _0xe80a50=[];for(const _0x45dd59 of _0x3171b5['getChildren']())if(_0x45dd59['is']('element')){_0xe80a50['push'](this['_makeIdsRoot'](_0x45dd59,_0x2ca187));const _0x4a52b9=_0xe80a50[_0xe80a50['length']-0x1];null!==_0x2ca187&&(_0x2ca187=_0x4a52b9['is']('element','$text')?_0x4a52b9['getAttribute']('vid')+0x1:_0x4a52b9['getAttribute']('vid_end')+0x1);}else{for(let _0x101813=0x0;_0x101813<_0x45dd59['offsetSize'];_0x101813++)_0xe80a50['push'](new ut('$text',{'vid':null===_0x2ca187?this['_revisionId']++:_0x2ca187++}));}if(_0x3171b5['is']('documentFragment')){const _0x396c08=P(_0x3171b5['rootName']);return _0x396c08['_insertChild'](0x0,_0xe80a50),_0x396c08;}return _0xeb86ff['_setAttribute']('vid_end',null===_0x2ca187?this['_revisionId']++:_0x2ca187++),_0xeb86ff['_insertChild'](0x0,_0xe80a50),_0xeb86ff;}['_calculateMetaData'](_0x22fddd,_0x27d804,_0x182976){this['_reset']();const {roots:_0xee7b5b,markers:_0x576fcb,rootsAttributes:_0x578c9c}=this['_savedMetaData']['get'](_0x22fddd);this['_baseRoots']=new Map(_0xee7b5b),this['_baseRootsAttributes']=new Map(_0x26c2db(_0x578c9c));for(const [_0x1272c1,_0x4099cc]of this['_baseRoots'])if('$graveyard'!==_0x1272c1&&(this['_diffRoots']['set'](_0x1272c1,N(_0x4099cc)),this['_diffRootsAttributes']=new Map(_0x26c2db(_0x578c9c)),_0x182976)){const _0x4bbd4a=this['_revisionId'];this['_idsRoots']['set'](_0x1272c1,this['_makeIdsRoot'](_0x4099cc)),this['_baseIdsRoots']['set'](_0x1272c1,this['_makeIdsRoot'](_0x4099cc,_0x4bbd4a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x182976&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xa60ca4,_0x18abf6]of _0x576fcb){const _0x5ab35f=this['_baseRoots']['get'](_0x18abf6['rootName']),_0x59acb6=this['_diffRoots']['get'](_0x18abf6['rootName']),_0x4e8650=new lt(this['_fixPosition'](_0x18abf6['start'],_0x5ab35f),this['_fixPosition'](_0x18abf6['end'],_0x5ab35f)),_0x2161d3=this['_fixRange'](_0x4e8650,_0x59acb6);_0x5ab35f['markers']['set'](_0xa60ca4,_0x4e8650),this['_markers']['set'](_0xa60ca4,_0x2161d3);}this['_applyOperations'](_0x22fddd,_0x27d804,_0x182976);}['_applyOperations'](_0x83d4bc,_0x2812b3,_0x47a191){for(const _0x404034 of this['source']['getOperations'](_0x83d4bc,_0x2812b3))this['_handleOperation'](_0x404034,_0x47a191);for(const _0x2fd10a of this['_diffRoots']['values']())_0x2fd10a['markers']['clear']();for(const [_0x57d063,_0x2e930b]of this['_markers']){this['_diffRoots']['get'](_0x2e930b['root']['rootName'])['markers']['set'](_0x57d063,_0x2e930b['clone']());}const _0x199f25=new Map(),_0x5992ad=new Map();for(const [_0xc89c96,_0x42eaac]of this['_diffRoots'])_0x199f25['set'](_0xc89c96,N(_0x42eaac)),_0x5992ad['set'](_0xc89c96,this['_diffRootsAttributes']['get'](_0xc89c96));this['_saveMetaData'](_0x2812b3,_0x199f25,this['_markers'],_0x5992ad);}['_getPreviousFrom'](_0x4fd9da){const _0x578229=Array['from'](this['_savedMetaData']['keys']());_0x578229['sort']((_0x2edf32,_0x1fe067)=>_0x2edf32-_0x1fe067),_0x578229['reverse']();for(const _0x264413 of _0x578229)if(_0x264413<_0x4fd9da)return _0x264413;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5701cd,_0x3ce731){const _0x233ada=Array['from'](_0x3ce731['markers'])['map'](([_0x1d2a85,_0x3078fe])=>[_0x1d2a85,this['_fixRange'](_0x3078fe,_0x5701cd)]);_0x5701cd['markers']=new Map(_0x233ada);}['_transformMarkers'](_0x7bf3e3){for(const _0x3c3d5b of this['_markers']['values']()){const _0x38e104=_0x3c3d5b['getTransformedByOperation'](_0x7bf3e3),_0x364549=lt['_createFromRanges'](_0x38e104);_0x3c3d5b['start']=_0x364549['start'],_0x3c3d5b['end']=_0x364549['end'];}}['_handleOperation'](_0x2d065f,_0x3bf967){if('addRoot'!=_0x2d065f['type']&&'detachRoot'!=_0x2d065f['type']){if('insert'==_0x2d065f['type']){const _0x1a90af=_0x2d065f['position']['root']['rootName'];this['_diffRoots']['has'](_0x1a90af)||(this['_diffRoots']['set'](_0x1a90af,P(_0x1a90af,!0x0)),this['_diffRootsAttributes']['set'](_0x1a90af,{}),_0x3bf967&&this['_idsRoots']['set'](_0x1a90af,P(_0x1a90af,!0x0)));}else{if('addRootAttribute'==_0x2d065f['type']||'removeRootAttribute'==_0x2d065f['type']||'changeRootAttribute'==_0x2d065f['type'])return void this['_handleRootAttributeOperation'](_0x2d065f);'marker'==_0x2d065f['type']&&this['_handleMarkerOperation'](_0x2d065f);}if('marker'!==_0x2d065f['type']){const _0x1eef48=this['_cloneOperation'](_0x2d065f,this['_diffRoots']);_0x1eef48['_execute'](),this['_transformMarkers'](_0x1eef48);}if(_0x3bf967)switch(_0x2d065f['type']){case'insert':this['_handleInsertOperation'](_0x2d065f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d065f);break;case'merge':this['_handleMergeOperation'](_0x2d065f);break;case'split':this['_handleSplitOperation'](_0x2d065f);}}else this['_handleRootOperation'](_0x2d065f,_0x3bf967);}['_cloneOperation'](_0x32d8b5,_0x1ffe88){const _0x2efd52=_0x32d8b5['clone']();return _0x2efd52['_authorId']=_0x32d8b5['_authorId'],this['_fixOperation'](_0x2efd52,_0x1ffe88),_0x2efd52;}['_getBaseVids'](_0x2399f6){return _0x2399f6['map'](_0x13c3c8=>{const _0xd9fc0=this['_getVidAttributeName'](_0x13c3c8);return Number(_0x13c3c8['item']['getAttribute'](_0xd9fc0));});}['_generateTape'](_0x214514,_0x5ae57d){if(_0x214514['is']('element','$text'))_0x5ae57d['push']({'item':_0x214514,'type':'text'});else{_0x214514['is']('element')&&_0x5ae57d['push']({'item':_0x214514,'type':'elementStart'});for(const _0x2a457d of _0x214514['getChildren']())this['_generateTape'](_0x2a457d,_0x5ae57d);_0x214514['is']('element')&&_0x5ae57d['push']({'item':_0x214514,'type':'elementEnd'});}return _0x5ae57d;}['_getState'](){const _0x4ded93=new Map(this['_touched']),_0x512bb0=new Map(_0x4ded93),_0x2d7268=new Map(),_0x251669={'insertions':{},'deletions':{}},_0x5b7a29={'insertions':{},'deletions':{}},_0x132e0f=new Map(),_0x446921=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x446921['delete']('$graveyard');for(const _0x370d7e of _0x446921){const _0x2f6dba=this['_diffRoots']['get'](_0x370d7e)||P(_0x370d7e,!0x1),_0x2a2be1=this['_baseRoots']['get'](_0x370d7e)||P(_0x370d7e,!0x1);_0x2f6dba['isAttached']()||_0x2a2be1['isAttached']()?(_0x251669['insertions'][_0x370d7e]=N(_0x2f6dba),_0x251669['deletions'][_0x370d7e]=N(_0x2a2be1),this['_copyMarkers'](_0x251669['deletions'][_0x370d7e],_0x2a2be1),this['_copyMarkers'](_0x251669['insertions'][_0x370d7e],_0x2f6dba),_0x5b7a29['insertions'][_0x370d7e]=this['_generateTape'](this['_idsRoots']['get'](_0x370d7e),[]),_0x5b7a29['deletions'][_0x370d7e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x370d7e)||P(_0x370d7e,!0x1),[])):_0x446921['delete'](_0x370d7e);}for(const _0xa45426 of _0x446921){const _0x448dcf=_0x5b7a29['insertions'][_0xa45426];for(const _0x371c6f of _0x448dcf){const _0x4bb94c=this['_getVidAttributeName'](_0x371c6f),_0x578197=_0x371c6f['item']['getAttribute'](_0x4bb94c);_0x512bb0['delete'](_0x578197),_0x578197>=this['_startingRevisionId']&&_0x2d7268['set'](_0x578197,_0x4ded93['get'](_0x578197));}}for(const _0x3df322 of _0x446921){const _0x1adb35=_0x5b7a29['insertions'][_0x3df322],_0x95b6b2=this['_getBaseVids'](_0x5b7a29['deletions'][_0x3df322]);let _0x2f3380=0x0;for(const _0x36bcb6 of _0x1adb35){const _0x55fa60=this['_getVidAttributeName'](_0x36bcb6),_0x2a7740=_0x36bcb6['item']['getAttribute'](_0x55fa60);if(!_0x2d7268['has'](_0x2a7740)&&!_0x132e0f['has'](_0x2a7740)){if(_0x512bb0['has'](_0x2a7740))_0x2f3380++;else{if(_0x2a7740!=_0x95b6b2[_0x2f3380]){const _0x4fbb3c=_0x4ded93['get'](_0x2a7740)||_0x4ded93['get'](_0x95b6b2[_0x2f3380]);for(;_0x2a7740!=_0x95b6b2[_0x2f3380];)_0x512bb0['has'](_0x95b6b2[_0x2f3380])||(_0x132e0f['set'](_0x95b6b2[_0x2f3380],_0x4fbb3c),_0x4ded93['set'](_0x95b6b2[_0x2f3380],_0x4fbb3c)),_0x2f3380++;}_0x2f3380++;}}}}for(const _0x2d091c of _0x446921){const _0x442504=_0x5b7a29['insertions'][_0x2d091c];for(const _0x4a1cf9 of _0x442504){const _0x33fe04=this['_getVidAttributeName'](_0x4a1cf9),_0x14839a=_0x4a1cf9['item']['getAttribute'](_0x33fe04);if(_0x132e0f['has'](_0x14839a)){const _0x20b777=_0x132e0f['get'](_0x14839a);_0x512bb0['has'](_0x14839a)||_0x512bb0['set'](_0x14839a,{..._0x20b777}),_0x2d7268['set'](_0x14839a,{..._0x20b777});}}}for(const _0x5e8501 of _0x512bb0['keys']())_0x5e8501>=this['_startingRevisionId']&&_0x512bb0['delete'](_0x5e8501);const _0x17dfac=new Map();for(const _0x47381f of _0x446921){let _0x3aa31e=_0x5b7a29['insertions'][_0x47381f];for(const _0x3df5a6 of _0x3aa31e)if(_0x3df5a6['item']['is']('element','tableCell')){const _0x576af9=this['_getVidAttributeName'](_0x3df5a6),_0x4d458e=_0x3df5a6['item']['getAttribute'](_0x576af9);if(_0x2d7268['has'](_0x4d458e)){const _0x2d0517=_0x3df5a6['item']['parent']['parent']['getAttribute']('vid_start'),_0x47c071=_0x17dfac['get'](_0x2d0517)||new Set();_0x47c071['add'](_0x2d7268['get'](_0x4d458e)['userId']),_0x17dfac['set'](_0x2d0517,_0x47c071);}}_0x3aa31e=_0x5b7a29['deletions'][_0x47381f];for(const _0x55e71f of _0x3aa31e)if(_0x55e71f['item']['is']('element','tableCell')){const _0x31ef8e=this['_getVidAttributeName'](_0x55e71f),_0x24751c=_0x55e71f['item']['getAttribute'](_0x31ef8e);if(_0x512bb0['has'](_0x24751c)){const _0x1bcef1=_0x55e71f['item']['parent']['parent']['getAttribute']('vid_start'),_0xc2e0aa=_0x17dfac['get'](_0x1bcef1)||new Set();_0xc2e0aa['add'](_0x512bb0['get'](_0x24751c)['userId']),_0x17dfac['set'](_0x1bcef1,_0xc2e0aa);}}for(const _0x4b4ead of _0x17dfac['keys']())(_0x2d7268['has'](_0x4b4ead)||_0x512bb0['has'](_0x4b4ead))&&_0x17dfac['delete'](_0x4b4ead);}for(const _0x49ba62 of _0x446921){const _0x3dc988=_0x5b7a29['insertions'][_0x49ba62];let _0x54d189=null,_0x529b23=null;for(const _0x4d33c9 of _0x3dc988){const _0x5252f8=this['_getVidAttributeName'](_0x4d33c9),_0x1f8836=_0x4d33c9['item']['getAttribute'](_0x5252f8),_0x55d604=_0x17dfac['get'](_0x1f8836);_0x55d604&&'elementStart'==_0x4d33c9['type']&&(_0x54d189=Array['from'](_0x55d604)[0x0],_0x529b23=_0x4d33c9['item']['getAttribute']('vid_end')),_0x54d189&&(_0x512bb0['set'](_0x1f8836,{'userId':_0x54d189}),_0x2d7268['set'](_0x1f8836,{'userId':_0x54d189})),_0x1f8836==_0x529b23&&(_0x54d189=null,_0x529b23=null);}}const _0x2b0aeb={},_0x27da15=new Set();for(const _0x23718a of _0x446921){const _0x8594f1=_0x251669['deletions'][_0x23718a],_0x25a310=_0x251669['insertions'][_0x23718a];for(const {userId:_0x28240a}of this['_touchedMarkers']['values']())null!==_0x28240a&&_0x27da15['add'](_0x28240a);for(const {userId:_0x51db9d}of this['_touchedRoots']['values']())null!==_0x51db9d&&_0x27da15['add'](_0x51db9d);this['_markChanges'](_0x25a310,_0x5b7a29['insertions'][_0x23718a],_0x2d7268,'insertion',_0x27da15),this['_markChanges'](_0x8594f1,_0x5b7a29['deletions'][_0x23718a],_0x512bb0,'deletion',_0x27da15),_0x2b0aeb[_0x23718a]={'insertions':this['_prepareViewToSave'](_0x25a310),'deletions':this['_prepareViewToSave'](_0x8594f1),'attachChange':this['_touchedRoots']['get'](_0x23718a)||null,'attributesBefore':_0x26c2db(this['_baseRootsAttributes']['get'](_0x23718a))||{},'attributesAfter':_0x26c2db(this['_diffRootsAttributes']['get'](_0x23718a))};}return{'diffData':_0x2b0aeb,'authorsIds':Array['from'](_0x27da15)};}['_processRootBeforeSave'](_0x4f48ba){for(const [,_0x26654c]of _0x4f48ba['markers']){const _0x328745=_0x26654c['start']['getAncestors']()['filter'](_0x850f71=>'tableCell'==_0x850f71['name']);for(const _0x39d498 of _0x328745)0x1==_0x39d498['childCount']&&_0x39d498['getChild'](0x0)['is']('element','paragraph')&&_0x39d498['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1b278b){this['_processRootBeforeSave'](_0x1b278b);const _0x441bbd=this['editor']['data']['toView'](_0x1b278b,{}),_0x32601b=Array['from'](_0x441bbd['getChildren']())['map'](_0x3faf4e=>this['_getViewJson'](_0x3faf4e));return JSON['stringify'](_0x32601b);}['_getViewJson'](_0x481fe6){if(_0x481fe6['is']('$text'))return _0x481fe6['data'];{const _0x37b9dc=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3be047=_0x481fe6,_0x48409c=this['editor']['data']['htmlProcessor']['domConverter'],_0x401b10={'type':_0x37b9dc['_getTypeCharForViewElement'](_0x3be047),'name':_0x3be047['name'],'attributes':Array['from'](_0x3be047['getAttributes']()),'children':Array['from'](_0x3be047['getChildren']())['map'](_0x5a7881=>this['_getViewJson'](_0x5a7881))};if(_0x481fe6['is']('uiElement')&&'$comment'!=_0x481fe6['name']){const _0x187c3d=_0x481fe6['render'](_0x48409c['domDocument'],_0x48409c);_0x401b10['children']['push'](_0x187c3d['outerHTML']);}else{if(_0x481fe6['is']('rawElement')){const _0x327e3b=_0x48409c['domDocument']['createElement'](_0x3be047['name']);_0x481fe6['render'](_0x327e3b,_0x48409c),_0x401b10['children']['push'](_0x327e3b['innerHTML']);}}const _0x542ec1=Array['from'](_0x3be047['getCustomProperties']());_0x542ec1['length']>0x0&&(_0x401b10['customProperties']=_0x542ec1);const _0x32755f=_0x3be047['getFillerOffset']();return null!==_0x32755f&&(_0x401b10['fillerOffset']=_0x32755f),_0x401b10;}}['_markChanges'](_0x4815f3,_0x119f46,_0x4610a8,_0x27fe1b,_0x427194){let _0x3d1124=null,_0x4a0007=null,_0x29fc9f=0x0;const _0x197e49=this['editor']['model'];for(let _0x44b872=0x0;_0x44b872<_0x119f46['length'];_0x44b872++){const _0x525584=this['_getVidAttributeName'](_0x119f46[_0x44b872]),_0x325cd8=_0x119f46[_0x44b872]['item']['getAttribute'](_0x525584),_0x297b45=_0x4610a8['get'](_0x325cd8),_0x35af97=_0x44b872==_0x119f46['length']-0x1;(!_0x3d1124&&_0x297b45&&(_0x3d1124=_0x297b45,_0x4a0007=_0x119f46[_0x44b872]),_0x3d1124&&(!_0x297b45||_0x297b45['userId']!=_0x3d1124['userId']))&&(_0x3c5a49(_0x297b45,F(_0x4a0007,_0x4815f3,_0x197e49),F(_0x119f46[_0x44b872],_0x4815f3,_0x197e49)),_0x3d1124=_0x297b45||null,_0x4a0007=_0x297b45?_0x119f46[_0x44b872]:null),_0x3d1124&&_0x35af97&&_0x3c5a49(_0x297b45,F(_0x4a0007,_0x4815f3,_0x197e49),B(_0x119f46[_0x44b872],_0x4815f3,_0x197e49));}function _0x3c5a49(_0x4c499c,_0x10ab8,_0x26c8f5){const _0x12e211=_0x3d1124['userId'],_0x5b23d2='revision:'+_0x27fe1b+':'+_0x12e211+':'+_0x29fc9f++,_0x430544=_0x197e49['createRange'](_0x10ab8,_0x26c8f5);_0x4815f3['markers']['set'](_0x5b23d2,_0x430544),null!==_0x12e211&&_0x427194['add'](_0x12e211);}}['_getVidAttributeName'](_0x162b84){switch(_0x162b84['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5178f7,_0x14a6f1){_0x5178f7['baseVersion']=null;for(const _0x180bae in _0x5178f7){const _0x1665eb=_0x5178f7[_0x180bae];if(_0x1665eb instanceof ft){const _0x28df80=_0x14a6f1['get'](_0x1665eb['root']['rootName']);_0x5178f7[_0x180bae]=this['_fixPosition'](_0x1665eb,_0x28df80);}if(_0x1665eb instanceof lt){const _0x2d6c06=_0x14a6f1['get'](_0x1665eb['root']['rootName']);_0x5178f7[_0x180bae]=this['_fixRange'](_0x1665eb,_0x2d6c06);}'root'===_0x180bae&&(_0x5178f7['root']=_0x14a6f1['get'](_0x5178f7['root']['rootName']));}}['_fixRange'](_0x262fc6,_0x50701e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x262fc6['start'],_0x50701e),this['_fixPosition'](_0x262fc6['end'],_0x50701e));}['_fixPosition'](_0xd4fe12,_0x4a489f){return this['editor']['model']['createPositionFromPath'](_0x4a489f,_0xd4fe12['path'],_0xd4fe12['stickiness']);}['_handleInsertOperation'](_0x3d4c05){const _0x5b02d9=this['_idsRoots']['get'](_0x3d4c05['position']['root']['rootName']),_0x3d90e1=this['_fixPosition'](_0x3d4c05['position'],_0x5b02d9),_0x30a801=null===_0x3d4c05['_authorId']?null:_0x3d4c05['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c309c=_0x3d90e1['parent'],_0x194842=this['_revisionId'],_0x3471be=[];for(const _0x5f56d9 of _0x3d4c05['nodes'])if(_0x5f56d9['is']('element'))_0x3471be['push'](this['_makeIdsRoot'](_0x5f56d9));else{for(let _0x23c1ac=0x0;_0x23c1ac<_0x5f56d9['offsetSize'];_0x23c1ac++)_0x3471be['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1e6ca7=this['_revisionId'];for(let _0x162331=_0x194842;_0x162331<_0x1e6ca7;_0x162331++)this['_touched']['set'](_0x162331,{'userId':_0x30a801});_0x4c309c['_insertChild'](_0x3d90e1['offset'],_0x3471be);}['_handleMoveOperation'](_0x2ed718){(_0x2ed718=this['_cloneOperation'](_0x2ed718,this['_idsRoots']))['_execute']();const _0x3bbd46=null===_0x2ed718['_authorId']?null:_0x2ed718['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x559292=_0x2ed718['getMovedRangeStart'](),_0x494503=_0x559292['parent'],_0x574b72=_0x559292['offset'];!function _0x15b9c7(_0x52e35c,_0x1b6ec9,_0xe7b2f0,_0x1c3857){for(let _0x213c1a=_0xe7b2f0;_0x213c1a<_0x1c3857;_0x213c1a++){const _0x2739cf=_0x1b6ec9['getChild'](_0x213c1a);_0x2739cf['is']('element','$text')?_0x52e35c['set'](_0x2739cf['getAttribute']('vid'),{'userId':_0x3bbd46}):(_0x52e35c['set'](_0x2739cf['getAttribute']('vid_start'),{'userId':_0x3bbd46}),_0x15b9c7(_0x52e35c,_0x2739cf,0x0,_0x2739cf['childCount']),_0x52e35c['set'](_0x2739cf['getAttribute']('vid_end'),{'userId':_0x3bbd46}));}}(this['_touched'],_0x494503,_0x574b72,_0x574b72+_0x2ed718['howMany']);}['_handleMergeOperation'](_0x4d2e82){const _0xc59291=null===(_0x4d2e82=this['_cloneOperation'](_0x4d2e82,this['_idsRoots']))['_authorId']?null:_0x4d2e82['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46b719=_0x4d2e82['targetPosition']['parent'],_0x2681bc=_0x4d2e82['sourcePosition']['parent'],_0x4039ba=_0x46b719['getAttribute']('vid_end'),_0x1f266b=_0x2681bc['getAttribute']('vid_start');_0x46b719['_setAttribute']('vid_end',_0x2681bc['getAttribute']('vid_end')),_0x2681bc['_setAttribute']('vid_end',_0x4039ba),this['_touched']['set'](_0x1f266b,{'userId':_0xc59291}),this['_touched']['set'](_0x4039ba,{'userId':_0xc59291}),_0x4d2e82['_execute']();}['_handleSplitOperation'](_0x517e56){const _0x71427=null===(_0x517e56=this['_cloneOperation'](_0x517e56,this['_idsRoots']))['_authorId']?null:_0x517e56['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x316106=_0x517e56['graveyardPosition'],_0x5c5f33=_0x517e56['splitPosition']['parent'];_0x517e56['_execute']();const _0xedcbf9=_0x5c5f33['getAttribute']('vid_end'),_0x8042cd=_0x517e56['insertionPosition']['nodeAfter'];if(_0x316106){const _0xb536cc=_0x8042cd['getAttribute']('vid_end'),_0x296c23=_0x5c5f33['getAttribute']('vid_end');_0x5c5f33['_setAttribute']('vid_end',_0xb536cc),_0x8042cd['_setAttribute']('vid_end',_0x296c23),this['_touched']['set'](_0x5c5f33['getAttribute']('vid_end'),{'userId':_0x71427}),this['_touched']['set'](_0x8042cd['getAttribute']('vid_start'),{'userId':_0x71427});}else{const _0x3101ab=this['_revisionId']++,_0x62902f=this['_revisionId']++;_0x5c5f33['_setAttribute']('vid_end',_0x3101ab),_0x8042cd['_setAttribute']('vid_start',_0x62902f),_0x8042cd['_setAttribute']('vid_end',_0xedcbf9),this['_touched']['set'](_0x3101ab,{'userId':_0x71427}),this['_touched']['set'](_0x62902f,{'userId':_0x71427});}}['_handleMarkerOperation'](_0x5c618d){if(!_0x5c618d['affectsData'])return;const _0x5411ae=(_0x5c618d=this['_cloneOperation'](_0x5c618d,this['_diffRoots']))['oldRange']?_0x5c618d['oldRange']['root']:null,_0x3b5235=_0x5c618d['newRange']?_0x5c618d['newRange']['root']:null;_0x5411ae&&this['_markers']['delete'](_0x5c618d['name']),_0x3b5235&&this['_markers']['set'](_0x5c618d['name'],_0x5c618d['newRange']['clone']());const _0x13f9df=null===_0x5c618d['_authorId']?null:_0x5c618d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bc105=_0x5c618d['name'];if(!this['_touchedMarkers']['has'](_0x2bc105))return void this['_touchedMarkers']['set'](_0x2bc105,{'range':_0x5c618d['oldRange'],'userId':_0x13f9df});const _0xc3f49d=this['_touchedMarkers']['get'](_0x2bc105),_0x4ab40e=_0xc3f49d['range'],_0x5f5976=_0x5c618d['newRange'];null==_0x4ab40e&&null==_0x5f5976||_0x4ab40e&&_0x5f5976&&_0x4ab40e['isEqual'](_0x5f5976)?this['_touchedMarkers']['delete'](_0x5c618d['name']):_0xc3f49d['userId']=_0x13f9df;}['_handleRootOperation'](_0x7b3249,_0x25bf4e){this['_diffRoots']['has'](_0x7b3249['rootName'])?this['_diffRoots']['get'](_0x7b3249['rootName'])['_isAttached']=_0x7b3249['isAdd']:(this['_diffRoots']['set'](_0x7b3249['rootName'],P(_0x7b3249['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x7b3249['rootName'],{}),_0x25bf4e&&this['_idsRoots']['set'](_0x7b3249['rootName'],P(_0x7b3249['rootName'],!0x0)));const _0x409857=null===_0x7b3249['_authorId']?null:_0x7b3249['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a4778=this['_touchedRoots']['get'](_0x7b3249['rootName']);_0x4a4778&&_0x4a4778['userId']===_0x409857?this['_touchedRoots']['delete'](_0x7b3249['rootName']):this['_touchedRoots']['set'](_0x7b3249['rootName'],{'userId':_0x409857,'isAttached':_0x7b3249['isAdd']});}['_handleRootAttributeOperation'](_0x4b61d7){const _0x32d13e=this['_diffRootsAttributes']['get'](_0x4b61d7['root']['rootName']);null===_0x4b61d7['newValue']?delete _0x32d13e[_0x4b61d7['key']]:_0x32d13e[_0x4b61d7['key']]=_0x4b61d7['newValue'];}}function N(_0x1dbfff){const _0x891e9d=P(_0x1dbfff['rootName'],_0x1dbfff['isAttached']());for(const _0x2511f0 of _0x1dbfff['getChildren']()){const _0x4562b7=_0x2511f0['_clone'](!0x0);_0x891e9d['_appendChild'](_0x4562b7);}return _0x891e9d;}function P(_0x4393af,_0x492500=!0x0){const _0x5c16cc=new vt();return _0x5c16cc['rootName']=_0x4393af,_0x5c16cc['_isAttached']=_0x492500,_0x5c16cc['isAttached']=()=>_0x5c16cc['_isAttached'],_0x5c16cc;}function F(_0x4d71a3,_0x541f0a,_0x518449){const _0x4f9948='elementEnd'==_0x4d71a3['type']?_0x518449['createPositionAt'](_0x4d71a3['item'],'end'):_0x518449['createPositionBefore'](_0x4d71a3['item']);return _0x518449['createPositionFromPath'](_0x541f0a,_0x4f9948['path'],_0x4f9948['stickiness']);}function B(_0x1d2560,_0xa979d6,_0x50e9d7){const _0x3ca6ac='elementStart'==_0x1d2560['type']?_0x50e9d7['createPositionAt'](_0x1d2560['item'],0x0):_0x50e9d7['createPositionAfter'](_0x1d2560['item']);return _0x50e9d7['createPositionFromPath'](_0xa979d6,_0x3ca6ac['path'],_0x3ca6ac['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xfc1eb9,_0x41ea3f){super(_0xfc1eb9),this['focusTracker']=new _0x4b3e26(),this['keystrokes']=new _0x5720d4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x41ea3f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x18764d(this);}['render'](){super['render'](),_0xba260d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5b0e67=_0x31489f=>_0x31489f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5b0e67),this['keystrokes']['set']('arrowleft',_0x5b0e67),this['keystrokes']['set']('arrowup',_0x5b0e67),this['keystrokes']['set']('arrowdown',_0x5b0e67);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x36cf3c){this['revisionNameInputView']['fieldView']['element']['value']=_0x36cf3c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x170c24){const _0xe14094=new _0x283f71(this['locale'],_0x2b2fea),_0xe8d2bc=_0xe14094['fieldView'];_0xe8d2bc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5a95fd=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x170c24&&(_0x5a95fd+='\x20('+g(this['locale'],'optional')+')'),(_0xe14094['label']=_0x5a95fd,_0xe8d2bc['on']('input',()=>{this['revisionNameInputValue']=_0xe8d2bc['element']['value']['trim']();}),_0xe14094);}}class f extends _0x5c3263{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x57b9f2=this['editor'],_0x63424=_0x57b9f2['plugins']['get']('RevisionTracker');_0x57b9f2['ui']['componentFactory']['add']('revisionHistory',_0x23c1d5=>{const _0x343ce3=_0x357d32(_0x23c1d5),_0x488688=_0x343ce3['panelView']['children'],_0x5c1b57=new _0xbf6739(_0x23c1d5),_0x53077b=new _0x278b76(_0x23c1d5),_0x4ec4c3=new te(_0x23c1d5),_0x44e126=new _0x278b76(_0x23c1d5),_0x360012=new te(_0x23c1d5);return _0x343ce3['bind']('isEnabled')['to'](_0x63424,'isReady',_0x63424,'isEnabled',_0x57b9f2,'isReadOnly',(_0x1c0416,_0x2c6267,_0x54130b)=>_0x1c0416&&_0x2c6267&&!_0x54130b),_0x343ce3['buttonView']['set']({'icon':_0x2ed273,'label':g(_0x23c1d5,'Revision\x20history'),'tooltip':!0x0}),_0x4ec4c3['set']({'label':g(_0x23c1d5,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4ec4c3['bind']('isEnabled')['to'](_0x63424,'isReady',_0x63424,'isEnabled',_0x57b9f2,'isReadOnly',(_0xc2d252,_0x125644,_0x4eb9f3)=>_0xc2d252&&_0x125644&&!_0x4eb9f3),_0x4ec4c3['on']('execute',()=>this['_showDialog']()),_0x360012['set']({'label':g(_0x23c1d5,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x360012['bind']('isEnabled')['to'](_0x63424,'isReady',_0x57b9f2,'isReadOnly',(_0xbb8a3e,_0x7b8587)=>_0xbb8a3e&&!_0x7b8587),_0x360012['on']('execute',()=>{_0x57b9f2['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x343ce3['isOpen']=!0x1,_0x57b9f2['editing']['view']['focus']();}),_0x53077b['children']['add'](_0x4ec4c3),_0x44e126['children']['add'](_0x360012),_0x5c1b57['role']='menu',_0x5c1b57['items']['addMany']([_0x53077b,_0x44e126]),_0x488688['add'](_0x5c1b57),_0x343ce3;}),_0x57b9f2['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1c3f00=this['editor'],_0x546d7e=_0x1c3f00['locale'],_0x2d0b49=new _0x120fa8(_0x546d7e),_0x44a98f=new _0x44c163(_0x546d7e);_0x2d0b49['buttonView']['set']({'icon':_0x2ed273,'label':g(_0x546d7e,'Revision\x20history')});const _0x538ca0=new _0x14859b(_0x546d7e,_0x2d0b49),_0x23fc0b=new _0x554c6f(_0x546d7e);_0x23fc0b['set']({'label':g(_0x546d7e,'Save\x20current\x20revision')}),_0x23fc0b['delegate']('execute')['to'](_0x2d0b49),_0x23fc0b['on']('execute',()=>{this['_showDialog']();}),_0x538ca0['children']['add'](_0x23fc0b),_0x44a98f['items']['add'](_0x538ca0);const _0x4ad4db=new _0x14859b(_0x546d7e,_0x2d0b49),_0x14c391=new _0x554c6f(_0x546d7e);return _0x14c391['set']({'label':g(_0x546d7e,'Open\x20revision\x20history')}),_0x14c391['delegate']('execute')['to'](_0x2d0b49),_0x14c391['on']('execute',()=>{_0x1c3f00['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4ad4db['children']['add'](_0x14c391),_0x44a98f['items']['add'](_0x4ad4db),_0x2d0b49['panelView']['children']['add'](_0x44a98f),_0x2d0b49;}['_showDialog'](){const _0x5123b=this['editor'],_0x2258b4=_0x5123b['locale'],_0x1b6137=_0x5123b['plugins']['get']('Dialog'),_0x5aeae6=_0x5123b['plugins']['get']('RevisionTracker');function _0x41d553(_0x5922f3){_0x5123b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5922f3['revisionName']?_0x5922f3['revisionNameInputView']['errorText']=g(_0x2258b4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5123b['plugins']['get'](u)['saveRevision']({'name':_0x5922f3['revisionName']}),_0x1b6137['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x41d553(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b6137['show']({'id':'revisionSave','title':g(_0x2258b4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x5123b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b6137['hide']()},{'label':g(_0x5123b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x6b0ae8){_0x6b0ae8['bind']('isEnabled')['to'](_0x5aeae6,'isReady',_0x5aeae6,'isEnabled',_0x5123b,'isReadOnly',(_0xcd54fa,_0x53c790,_0x39b52d)=>_0xcd54fa&&_0x53c790&&!_0x39b52d);},'onExecute':()=>_0x41d553(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x46b8d0=this['editor'],_0x17e023=_0x46b8d0['locale'];this['_saveRevisionFormView']=new hs(_0x17e023,_0x46b8d0['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2b5ae4,_0x132dc3){super(_0x2b5ae4),this['_model']=_0x132dc3,this['changeId']=_0x132dc3['id'];const _0x71e968=this['bindTemplate'],_0x5e7ab4=g(_0x2b5ae4,_0x132dc3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x132dc3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x132dc3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x71e968['to']('type',_0x13ee72=>'ck-revision-change__'+_0x13ee72)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5e7ab4}]},{'text':'\x20'+_0x132dc3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x58fb8b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x151a48){super(),this['id']=_0x151a48['id']||_0x2fb20f(),this['author']=_0x151a48['author'],this['type']=_0x151a48['type'],this['data']=_0x151a48['data']||{},this['rootName']=_0x151a48['rootName'],this['set']('createdAt',_0x151a48['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(_0x5bc88a,_0x546c3a){this['newRevisionId']=_0x5bc88a,this['oldRevisionId']=_0x546c3a,this['changes']=new _0x669071();}['_setChanges'](_0x4539b1){for(const _0x322c66 of _0x4539b1)this['changes']['add'](_0x322c66);}}class m extends _0x5c3263{['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[_0xcce3f1,_0x123980,I,V];}constructor(_0x4dc661){super(_0x4dc661),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',(_0x28e564,_0x1bdf4b,_0x15798b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3996fd=>{for(const _0x627559 of this['editor']['editing']['view']['document']['roots'])_0x15798b?_0x3996fd['removeClass']('ck-editor__editable__overlay',_0x627559):_0x3996fd['addClass']('ck-editor__editable__overlay',_0x627559);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x13f32b=>null!==_0x13f32b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x10a506,_0x3323bf,_0x254cbc)=>_0x10a506&&_0x254cbc?_0x3323bf['changes']['getIndex'](_0x254cbc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x48ca2e,_0x166092)=>_0x48ca2e?_0x166092['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x123980);}['init'](){const _0x4de975=this['editor'],_0x4f9ddb=new wt(_0x4de975,{'direction':'backward'}),_0x32a7e7=new wt(_0x4de975,{'direction':'forward'});(_0x4de975['commands']['add']('showPreviousChange',_0x4f9ddb),_0x4de975['commands']['add']('showNextChange',_0x32a7e7),_0x4de975['commands']['add']('restoreRevision',new mt(_0x4de975)),this['on']('change:numberOfChanges',()=>{_0x4f9ddb['refresh'](),_0x32a7e7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4de975['enableReadOnlyMode']('revision-viewer'),_0x4de975['plugins']['has']('WidgetToolbarRepository'))&&_0x4de975['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2e940c){return await this['_utils']['loadRevisionData'](_0x2e940c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2e940c);}async['getRevisionRootsAttributes'](_0x5a0a89){return await this['_utils']['loadRevisionData'](_0x5a0a89,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5a0a89);}async['compare'](_0x4bd91b,_0x19d509,_0xc31603=!0x1){if(!this['isEnabled'])return;const _0x48ee44=this['diff'],_0x304d15=this['repository'],_0x253a59='string'==typeof _0x4bd91b?_0x304d15['getRevision'](_0x4bd91b):_0x4bd91b,_0x54d78f='string'==typeof _0x19d509?_0x304d15['getRevision'](_0x19d509):_0x19d509,_0xe59103=_0x253a59['id'],_0x36fc94=_0x54d78f?_0x54d78f['id']:null;if(!_0xc31603&&this['diff']&&this['diff']['newRevisionId']===_0xe59103&&this['diff']['oldRevisionId']===_0x36fc94)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xe59103,_0x36fc94);const _0x3f8749=this['_getRevisionsRange'](_0x253a59,_0x54d78f,!0x0)['map'](_0x476579=>this['_utils']['loadRevisionData'](_0x476579,this['adapter']));return _0x3f8749['push'](new Promise(_0x4c3ed7=>{setTimeout(_0x4c3ed7,0x14);})),Promise['all'](_0x3f8749)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x18e96f=this['_getDiff'](_0xe59103,_0x36fc94);for(const _0x44f258 of _0x18e96f['changes'])this['_changeIdToChange']['set'](_0x44f258['id'],_0x44f258);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x28a1b3=>{for(const _0x17bc83 of this['editor']['model']['document']['getRootNames']())_0x28a1b3['detachRoot'](_0x17bc83);for(const _0x4a4384 of Object['keys'](_0x18e96f['model'])){const _0x71278f=_0x28a1b3['addRoot'](_0x4a4384);for(const _0x19ec95 of Object['keys'](_0x18e96f['attributes'][_0x4a4384]))_0x28a1b3['setAttribute'](_0x19ec95,_0x18e96f['attributes'][_0x4a4384][_0x19ec95],_0x71278f);_0x28a1b3['insert'](_0x18e96f['model'][_0x4a4384],_0x71278f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x18e96f['changes'])),this['isReady']=!0x0;})['catch'](_0x5d5943=>{console['error'](_0x5d5943),this['_cleanUp'](),_0x48ee44&&(this['diff']=_0x48ee44),this['isReady']=!0x0;});}['addRevisionData'](_0x11f058,_0x4c38f0){const _0x2e3762=this['repository']['createRevision'](_0x11f058);return _0x2e3762['on']('_update',(_0x54d1d2,_0x507662,_0x219eb1)=>_0x4c38f0(_0x507662,_0x219eb1,_0x2e3762)),this['repository']['addRevision'](_0x2e3762),_0x2e3762;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x17bbec=>{for(const _0x5f39d3 of this['editor']['model']['document']['getRootNames']())_0x17bbec['detachRoot'](_0x5f39d3);});}['_sortAndFilterDiffChanges'](_0x295768){const _0x3fb759=[],_0xd759d=new Map();for(const _0x2bf37a of this['editor']['model']['document']['getRootNames']()){const _0x53a03a=this['editor']['editing']['view']['getDomRoot'](_0x2bf37a);if(!_0x53a03a)continue;const _0x198d00=_0x53a03a['getClientRects']()['item'](0x0);_0x198d00&&(_0x3fb759['push'](_0x2bf37a),_0xd759d['set'](_0x2bf37a,_0x198d00));}return _0x3fb759['sort']((_0x12534e,_0x4537fb)=>{const _0xc7d940=_0xd759d['get'](_0x12534e),_0x39ae93=_0xd759d['get'](_0x4537fb);return _0xc7d940['y']-_0x39ae93['y']||_0xc7d940['x']-_0x39ae93['x'];}),(_0x295768=_0x295768['filter'](_0x1beec0=>_0x3fb759['includes'](_0x1beec0['rootName'])))['sort']((_0x3fd516,_0x2b2de1)=>_0x3fb759['indexOf'](_0x3fd516['rootName'])-_0x3fb759['indexOf'](_0x2b2de1['rootName'])),_0x295768;}['_makeTape'](_0x59df19){const _0x1fe5ba=Array['from'](_0x59df19['markers'])['filter'](([_0x577173,_0x5575de])=>_0x577173['startsWith']('revision:')&&!_0x5575de['isCollapsed']),_0x2d02c5=Array['from'](this['editor']['model']['createRangeIn'](_0x59df19)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1fe5ba['length'])for(const _0x32930b of _0x2d02c5){const [_0x43cecf,_0x3f0a2a]=_0x1fe5ba[0x0],[,_0x1fe414,_0x2b0589]=_0x43cecf['split'](':');if(_0x3f0a2a['end']['isEqual'](_0x32930b['nextPosition'])&&_0x1fe5ba['shift'](),(_0x32930b['previousPosition']['isEqual'](_0x3f0a2a['start'])||_0x32930b['previousPosition']['isAfter'](_0x3f0a2a['start']))&&('insertion'==_0x1fe414?_0x32930b['isAdded']={'userId':_0x2b0589}:'deletion'==_0x1fe414&&(_0x32930b['isRemoved']={'userId':_0x2b0589})),0x0==_0x1fe5ba['length'])break;}return _0x2d02c5;}['_refreshStartEndIndex'](_0x60518b){const _0x4e24b1=new Map();for(let _0x391a0a=0x0;_0x391a0a<_0x60518b['length'];_0x391a0a++)'text'===_0x60518b[_0x391a0a]['type']?(_0x60518b[_0x391a0a]['item']['startIndex']=_0x391a0a,_0x60518b[_0x391a0a]['item']['endIndex']=_0x391a0a):('elementStart'===_0x60518b[_0x391a0a]['type']?_0x60518b[_0x391a0a]['item']['startIndex']=_0x391a0a:'elementEnd'===_0x60518b[_0x391a0a]['type']&&(_0x60518b[_0x391a0a]['item']['endIndex']=_0x391a0a),_0x4e24b1['set'](_0x60518b[_0x391a0a]['id'],_0x391a0a));for(const _0x54c890 of _0x4e24b1['values']())'elementStart'===_0x60518b[_0x54c890]['type']?_0x60518b[_0x54c890]['item']['endIndex']=_0x4e24b1['get'](_0x60518b[_0x54c890]['pairId']):'elementEnd'===_0x60518b[_0x54c890]['type']&&(_0x60518b[_0x54c890]['item']['startIndex']=_0x4e24b1['get'](_0x60518b[_0x54c890]['pairId']));}['_processTape'](_0x26c426){for(let _0x3c9302=0x0;_0x3c9302<_0x26c426['length'];_0x3c9302++){if('elementStart'===_0x26c426[_0x3c9302]['type'])_0x26c426[_0x3c9302]['item']['startIndex']=_0x3c9302;else{if('elementEnd'===_0x26c426[_0x3c9302]['type']){_0x26c426[_0x3c9302]['item']['endIndex']=_0x3c9302;const _0x5c1ae6=_0x26c426[_0x3c9302]['item']['startIndex'];_0x26c426[_0x5c1ae6]['pairId']=_0x26c426[_0x3c9302]['id'],_0x26c426[_0x3c9302]['pairId']=_0x26c426[_0x5c1ae6]['id'];}else _0x26c426[_0x3c9302]['item']['startIndex']=_0x3c9302,_0x26c426[_0x3c9302]['item']['endIndex']=_0x3c9302,_0x26c426[_0x3c9302]['pairId']=null;}_0x26c426[_0x3c9302]['markersStart']||(_0x26c426[_0x3c9302]['markersStart']=[],_0x26c426[_0x3c9302]['markersEnd']=[]);}}['_markInsertions'](_0x3bb1e5,_0x31a7cf){const _0x24db83=_0x3bb1e5['filter'](_0x2b5431=>!_0x2b5431['isAdded']);for(let _0x2d1eea=0x0;_0x2d1eea<_0x31a7cf['length'];_0x2d1eea++)_0x31a7cf[_0x2d1eea]['isAdded']&&(_0x24db83[_0x2d1eea]['isAdded']=_0x31a7cf[_0x2d1eea]['isAdded']);}['_getDiff'](_0x155c30,_0x5a24ea=null){const _0x1aa851=this['repository']['getRevision'](_0x155c30),_0x5cac2b=_0x5a24ea?this['repository']['getRevision'](_0x5a24ea):null,_0x1abee8=this['_getRevisionsRange'](_0x1aa851,_0x5cac2b),_0x3231da=_0x1abee8[_0x1abee8['length']-0x1],_0x47b8d8=new Map(),_0x402da0={'model':{},'attributes':{},'changes':[]},_0x2ae128=new Set(),_0x8bafc2=new Map();for(let _0x451a3f=_0x1abee8['length']-0x1;_0x451a3f>=0x0;_0x451a3f--){const _0xdbfe9b=_0x1abee8[_0x451a3f];for(const _0x37108d of Object['keys'](_0xdbfe9b['diffData']))if(_0xdbfe9b['diffData'][_0x37108d]['attachChange']){const _0x7dc61d=_0xdbfe9b['diffData'][_0x37108d]['attachChange'];_0x7dc61d['isAttached']?(_0x2ae128['add'](_0x37108d),_0x8bafc2['has'](_0x37108d)&&_0x8bafc2['get'](_0x37108d)['userId']==_0x7dc61d['userId']?_0x8bafc2['delete'](_0x37108d):_0x8bafc2['set'](_0x37108d,_0x7dc61d)):_0x8bafc2['has'](_0x37108d)?(_0x2ae128['delete'](_0x37108d),_0x8bafc2['delete'](_0x37108d)):(_0x2ae128['add'](_0x37108d),_0x8bafc2['set'](_0x37108d,_0x7dc61d));}else _0x2ae128['add'](_0x37108d);}for(const _0x4d3f96 of _0x2ae128){const _0xf1c060=_0x8bafc2['has'](_0x4d3f96)&&!_0x8bafc2['get'](_0x4d3f96)['isAttached'];let _0x544581=_0xf1c060?_0x1abee8['length']-0x1:0x0;const _0x107ef4=_0xf1c060?-0x1:0x1;for(;_0x1abee8[_0x544581];){const _0xbb88f2=_0x1abee8[_0x544581];if(_0xbb88f2['diffData'][_0x4d3f96]){const _0x105cf7=_0xf1c060?_0xbb88f2['diffData'][_0x4d3f96]['attributesBefore']:_0xbb88f2['diffData'][_0x4d3f96]['attributesAfter'];_0x402da0['attributes'][_0x4d3f96]=_0x105cf7?_0x26c2db(_0x105cf7):{};break;}_0x544581+=_0x107ef4;}}for(const _0x5cd40d of _0x1abee8){_0x5cd40d['model']={};for(const _0x461e8d of _0x5cd40d['authors'])_0x47b8d8['set'](_0x461e8d['id'],_0x461e8d);for(const _0x12c5e9 of _0x2ae128){const _0x3fbea4=_0x5cd40d['diffData'][_0x12c5e9]?_0x5cd40d['diffData'][_0x12c5e9]['insertions']:'[]',_0x52203f=_0x5cd40d['diffData'][_0x12c5e9]?_0x5cd40d['diffData'][_0x12c5e9]['deletions']:'[]';_0x5cd40d['model'][_0x12c5e9]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3fbea4),'deletions':this['_utils']['_makeModelFromViewString'](_0x52203f)};}}for(const _0x220484 of _0x2ae128){let _0x3b73df=null,_0x10afcc=0x0;const _0x57292a=new Map(Array['from'](_0x1aa851['model'][_0x220484]['insertions']['markers'])['filter'](([_0x4d4472])=>!_0x4d4472['startsWith']('revision:')));let _0x1d2efd=0x0;for(const _0x4ea26a of _0x1abee8){const _0x505381=this['_makeTape'](_0x4ea26a['model'][_0x220484]['insertions']);_0x4ea26a==_0x1aa851?(_0x3b73df=_0x505381,_0x10afcc=_0x3b73df['length'],_0x3b73df['forEach'](_0x5a7406=>{_0x5a7406['id']=_0x1d2efd++;}),this['_processTape'](_0x3b73df)):this['_markInsertions'](_0x3b73df,_0x505381);const _0x1927be=_0x3b73df['filter'](_0x507769=>!_0x507769['isAdded'])['map'](_0x48c140=>_0x48c140['id']);let _0x4d6fe2=0x0;const _0x1c7b46=this['_makeTape'](_0x4ea26a['model'][_0x220484]['deletions']);_0x1c7b46['forEach'](_0x2ad755=>{_0x2ad755['isRemoved']?_0x2ad755['id']=_0x10afcc++:_0x2ad755['id']=_0x1927be[_0x4d6fe2++];}),this['_processTape'](_0x1c7b46),this['_setDistance'](_0x3b73df,'isAdded'),this['_setDistance'](_0x1c7b46,'isRemoved'),_0x4ea26a==_0x1aa851&&this['_markMarkers'](_0x3b73df,_0x57292a),_0x3b73df=this['_joinTapes'](_0x3b73df,_0x1c7b46),this['_refreshStartEndIndex'](_0x3b73df),this['_setDistance'](_0x3b73df,'isRemoved');}_0x3b73df=_0x3b73df['filter'](_0x2d36af=>!(_0x2d36af['isAdded']&&_0x2d36af['isRemoved']));const _0x278d68=new Map(_0x3231da['model'][_0x220484]['deletions']['markers']),_0x2ab3d4=new Set(_0x57292a['keys']());for(const _0x36e9b0 of _0x278d68['keys']())_0x2ab3d4['delete'](_0x36e9b0);this['_markSuggestions'](_0x3b73df,_0x2ab3d4),this['_fixObsoleteTags'](_0x3b73df),_0x3b73df=this['_removeMissingPairs'](_0x3b73df),_0x3b73df=this['_markMismatchedRemovedTags'](_0x3b73df),_0x3b73df=this['_removeUnsupportedChanges'](_0x3b73df);const {root:_0x3e054d,changes:_0x1a498a}=this['_makeModelFromTape'](_0x3b73df,_0x47b8d8,_0x220484);_0x402da0['model'][_0x220484]=_0x3e054d;const _0x548128=_0x8bafc2['get'](_0x220484);if(_0x548128){const _0x592acd=_0x47b8d8['get'](_0x548128['userId']),_0x483369=new r({'author':_0x592acd,'type':_0x548128['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x220484});_0x1a498a['unshift'](_0x483369),_0x402da0['attributes'][_0x220484]['revisionHistoryAttachChange']=_0x483369['id'];}_0x402da0['changes']=_0x402da0['changes']['concat'](_0x1a498a);}return _0x402da0;}['_markMarkers'](_0x5b773a,_0x16b0d7){for(let _0x3d7d60=0x0;_0x3d7d60<_0x5b773a['length'];_0x3d7d60++)for(const [_0x545d3f,_0x3ffcd5]of _0x16b0d7)!_0x3ffcd5['isCollapsed']&&_0x3ffcd5['start']['isEqual'](_0x5b773a[_0x3d7d60]['previousPosition'])&&_0x5b773a[_0x3d7d60]['markersStart']['push'](_0x545d3f),_0x3ffcd5['end']['isEqual'](_0x5b773a[_0x3d7d60]['nextPosition'])&&_0x5b773a[_0x3d7d60]['markersEnd']['push'](_0x545d3f);}['_joinTapes'](_0x37160b,_0x572893){let _0x6a7f6c=[],_0x2adab6=0x0,_0x5d83fc=0x0;for(;_0x2adab6<_0x37160b['length']||_0x5d83fc<_0x572893['length'];){const _0x28ef72=_0x37160b[_0x2adab6]||{},_0x4aaa00=_0x572893[_0x5d83fc]||{};if(_0x28ef72['id']==_0x4aaa00['id'])_0x2adab6++,_0x5d83fc++,_0x6a7f6c['push'](_0x28ef72);else{if(_0x4aaa00['isRemoved']&&_0x28ef72['isAdded']){const {commonTape:_0x391729,iEnd:_0x53a980,jEnd:_0x4a977b}=this['_threeWayMerge'](_0x37160b,_0x2adab6,_0x572893,_0x5d83fc);_0x6a7f6c=_0x6a7f6c['concat'](_0x391729),_0x2adab6=_0x53a980,_0x5d83fc=_0x4a977b;}else _0x4aaa00['isRemoved']?(_0x5d83fc++,_0x6a7f6c['push'](_0x4aaa00)):(_0x2adab6++,_0x6a7f6c['push'](_0x28ef72));}}return _0x6a7f6c;}['_markSuggestions'](_0x212128,_0x4dec5f){const _0x363103=[];for(let _0x50863e=0x0;_0x50863e<_0x212128['length'];_0x50863e++){for(let _0x151ffd=0x0;_0x151ffd<_0x212128[_0x50863e]['markersStart']['length'];_0x151ffd++){const _0x41d858=_0x212128[_0x50863e]['markersStart'][_0x151ffd];if(!_0x4dec5f['has'](_0x41d858))continue;const {group:_0x4b786b,type:_0x2cbd2f,authorId:_0x405400}=_0x2295e7(_0x41d858);'revision-suggestion'!=_0x4b786b||'insertion'!=_0x2cbd2f&&'deletion'!=_0x2cbd2f||(_0x363103['unshift']({'type':_0x2cbd2f,'name':_0x41d858,'userId':_0x405400}),_0x212128[_0x50863e]['markersStart']['splice'](_0x151ffd,0x1),_0x151ffd--);}_0x27b55f(_0x212128[_0x50863e]);for(let _0x15d78c=0x0;_0x15d78c<_0x212128[_0x50863e]['markersEnd']['length'];_0x15d78c++){const _0x377d38=_0x212128[_0x50863e]['markersEnd'][_0x15d78c];if(!_0x4dec5f['has'](_0x377d38))continue;const {group:_0x5b862d,type:_0x2ae93a}=_0x2295e7(_0x377d38);if('revision-suggestion'!=_0x5b862d||'insertion'!=_0x2ae93a&&'deletion'!=_0x2ae93a)continue;_0x212128[_0x50863e]['markersEnd']['splice'](_0x15d78c,0x1),_0x15d78c--;const _0x371fbf=_0x363103['findIndex'](_0x56db1c=>_0x56db1c['name']==_0x377d38);_0x371fbf>-0x1&&_0x363103['splice'](_0x371fbf,0x1);}}function _0x2295e7(_0x46e5d2){const _0x4a0c1f=_0x46e5d2['split'](':');return{'group':_0x4a0c1f[0x0],'type':_0x4a0c1f[0x1],'subType':_0x4a0c1f['length']>=0x5?_0x4a0c1f[0x2]:null,'id':_0x4a0c1f['length']<0x5?_0x4a0c1f[0x2]:_0x4a0c1f[0x3],'authorId':_0x4a0c1f['length']<0x5?_0x4a0c1f[0x3]:_0x4a0c1f[0x4],'markerCount':0x6==_0x4a0c1f['length']?_0x4a0c1f[0x5]:null};}function _0x27b55f(_0x3583af){for(let _0x5eb211=0x0;_0x5eb211<_0x363103['length'];_0x5eb211++){if(_0x3583af['isAdded']&&'insertion'==_0x363103[_0x5eb211]['type'])return _0x3583af['isAddSuggestion']=_0x363103[_0x5eb211],void delete _0x3583af['isAdded'];if(!_0x3583af['isAdded']&&!_0x3583af['isRemoved']&&'deletion'==_0x363103[_0x5eb211]['type'])return void(_0x3583af['isRemoveSuggestion']=_0x363103[_0x5eb211]);}}}['_setDistance'](_0x88ad36,_0x40a237){let _0x459d76=0x0,_0x3150b2=!0x1;const _0x348b50=new Map();for(const _0x32f187 of _0x88ad36)_0x32f187[_0x40a237]?_0x3150b2&&(_0x459d76++,_0x3150b2=!0x1):(_0x459d76++,_0x3150b2=!0x0),_0x348b50['set'](_0x32f187['id'],_0x459d76);for(let _0x4ec800=0x0;_0x4ec800<_0x88ad36['length'];_0x4ec800++){if('isRemoved'==_0x40a237&&_0x88ad36[_0x4ec800]['isAdded']||'isAdded'==_0x40a237&&_0x88ad36[_0x4ec800]['isRemoved'])continue;if('text'==_0x88ad36[_0x4ec800]['type']){_0x88ad36[_0x4ec800]['distance']=0x0;continue;}const _0x3f41c8=_0x348b50['get'](_0x88ad36[_0x4ec800]['pairId']),_0x13a9ed=_0x348b50['get'](_0x88ad36[_0x4ec800]['id']);_0x88ad36[_0x4ec800]['distance']=_0x3f41c8-_0x13a9ed;}}['_getRevisionsRange'](_0x25b3e1,_0x3fa3a9,_0x2b86fc=!0x1){const _0x263ea2=[];let _0x226485=this['repository']['getIndex'](_0x25b3e1),_0x3d76df=this['repository']['getIndex'](_0x3fa3a9);for(-0x1==_0x3d76df&&(_0x3d76df=this['repository']['_revisions']['length'],_0x2b86fc=!0x1);_0x226485<_0x3d76df;)_0x263ea2['push'](this['repository']['getRevision'](_0x226485)),_0x226485++;return _0x2b86fc&&_0x263ea2['push'](this['repository']['getRevision'](_0x226485)),_0x263ea2;}['_threeWayMerge'](_0x201ece,_0x209911,_0x38b837,_0xf907d7){const _0x122f02=this['editor']['model']['schema'];let _0x55384f=_0x209911;for(;_0x201ece[_0x55384f]&&_0x201ece[_0x55384f]['isAdded'];)_0x55384f++;let _0x311111=_0xf907d7;for(;_0x38b837[_0x311111]&&_0x38b837[_0x311111]['isRemoved'];)_0x311111++;_0x589a25(_0x201ece,_0x209911,_0x55384f),_0x589a25(_0x38b837,_0xf907d7,_0x311111);const _0x217cc7=_0x38b837['slice'](_0xf907d7,_0x311111)['concat'](_0x201ece['slice'](_0x209911,_0x55384f));return _0x217cc7['sort']((_0x247f60,_0x144367)=>_0x247f60['side']!=_0x144367['side']?_0x247f60['side']-_0x144367['side']:_0x247f60['level']!=_0x144367['level']?_0x247f60['level']-_0x144367['level']:_0x247f60['distance']!=_0x144367['distance']?_0x144367['distance']-_0x247f60['distance']:!!_0x247f60['isAdded']!=!!_0x144367['isAdded']?-0x1==_0x247f60['side']||0x0==_0x247f60['side']?_0x247f60['isAdded']?-0x1:0x1:_0x247f60['isAdded']?0x1:-0x1:_0x247f60['index']-_0x144367['index']),{'commonTape':_0x217cc7,'iEnd':_0x55384f,'jEnd':_0x311111};function _0x589a25(_0x1299c2,_0x19fc3d,_0x3edfd9){let _0x19b0b7=-0x1,_0x3e42da=Number['POSITIVE_INFINITY'],_0x5546a5=!0x0;for(let _0x36f537=_0x19fc3d;_0x36f537<_0x3edfd9;_0x36f537++)if(_0x122f02['isInline'](_0x1299c2[_0x36f537]['item'])||(_0x5546a5=!0x1),_0x1299c2[_0x36f537]['item']['startIndex']<_0x19fc3d&&(_0x19b0b7=_0x36f537),_0x1299c2[_0x36f537]['item']['endIndex']>=_0x3edfd9){_0x3e42da=_0x36f537;break;}_0x5546a5&&(_0x19b0b7=_0x3edfd9-0x1);for(let _0xfa2464=_0x19fc3d;_0xfa2464<_0x3edfd9;_0xfa2464++)_0x1299c2[_0xfa2464]['side']=_0xfa2464<=_0x19b0b7?-0x1:_0xfa2464<_0x3e42da?0x0:0x1,_0x1299c2[_0xfa2464]['index']=_0xfa2464;let _0x51f922=0x0;for(let _0x49d219=_0x19fc3d;_0x49d219<=_0x19b0b7;_0x49d219++)0x0==_0x1299c2[_0x49d219]['distance']?_0x1299c2[_0x49d219]['level']=_0x51f922:(_0x51f922++,_0x1299c2[_0x49d219]['level']=_0x51f922,_0x51f922++);for(let _0x4b93bd=_0x19fc3d;_0x4b93bd<_0x3edfd9;_0x4b93bd++)0x0==_0x1299c2[_0x4b93bd]['side']&&(_0x1299c2[_0x4b93bd]['level']=_0x51f922);_0x51f922=0x0;for(let _0x164b19=_0x3edfd9-0x1;_0x164b19>=_0x3e42da;_0x164b19--)0x0==_0x1299c2[_0x164b19]['distance']?_0x1299c2[_0x164b19]['level']=_0x51f922:(_0x51f922--,_0x1299c2[_0x164b19]['level']=_0x51f922,_0x51f922--);}}['_fixObsoleteTags'](_0xb56a26){const _0x1fbbbe=new Map(),_0x44a94f=this['editor']['model']['schema'];for(let _0x1a7361=0x1;_0x1a7361<_0xb56a26['length'];_0x1a7361++){let _0x23b0f0,_0x250bb4,_0x3c0e02;const _0x2ef345=_0xb56a26[_0x1a7361],_0x5a43df=_0xb56a26[_0x1a7361-0x1];if('text'==_0x2ef345['type'])continue;if(_0x2ef345['type']!=_0x5a43df['type'])continue;if(!_0x44a94f['isBlock'](_0x5a43df['item'])||_0x44a94f['isLimit'](_0x5a43df['item']))continue;if(!_0x44a94f['isBlock'](_0x2ef345['item'])||_0x44a94f['isLimit'](_0x2ef345['item']))continue;if((_0xb56a26[_0x1a7361]['isAdded']||_0xb56a26[_0x1a7361]['isAddSuggestion'])&&_0xb56a26[_0x1a7361-0x1]['isRemoved'])_0x23b0f0=_0xb56a26[_0x1a7361],_0x250bb4=_0xb56a26[_0x1a7361-0x1],_0x3c0e02=_0x1a7361-0x1;else{if(!_0xb56a26[_0x1a7361]['isRemoved']||!_0xb56a26[_0x1a7361-0x1]['isAdded']&&!_0xb56a26[_0x1a7361-0x1]['isAddSuggestion'])continue;_0x23b0f0=_0xb56a26[_0x1a7361-0x1],_0x250bb4=_0xb56a26[_0x1a7361],_0x3c0e02=_0x1a7361;}const _0x5b38d9=_0x23b0f0['level']==_0x250bb4['level'],_0x90f8f2=Math['abs'](_0x23b0f0['level'])<Math['abs'](_0x250bb4['level'])&&0x0==_0x250bb4['distance'];(_0x5b38d9||_0x90f8f2)&&(_0x1fbbbe['set'](_0x250bb4['id'],_0x23b0f0['id']),_0xb56a26['splice'](_0x3c0e02,0x1),_0x1a7361--,_0x23b0f0['isAdded']=!0x1);}for(let _0x1fb59f=0x0;_0x1fb59f<_0xb56a26['length'];_0x1fb59f++)_0x1fbbbe['has'](_0xb56a26[_0x1fb59f]['pairId'])&&(_0xb56a26[_0x1fb59f]['pairId']=_0x1fbbbe['get'](_0xb56a26[_0x1fb59f]['pairId']));}['_removeMissingPairs'](_0x44cb42){const _0x25b22f=new Set(_0x44cb42['map'](_0x4130ee=>_0x4130ee['id']));for(let _0x282d31=0x0;_0x282d31<_0x44cb42['length'];_0x282d31++)_0x25b22f['has'](_0x44cb42[_0x282d31]['pairId'])||0x0==_0x44cb42[_0x282d31]['distance']||(_0x44cb42[_0x282d31]['isIncorrect']=!0x0);return _0x44cb42['filter'](_0x50103e=>!_0x50103e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2aaaab){const _0x4a4ced=new Set();for(let _0x5d1a2b=0x0;_0x5d1a2b<_0x2aaaab['length'];_0x5d1a2b++){if(_0x4a4ced['has'](_0x2aaaab[_0x5d1a2b]['id'])&&_0x2aaaab[_0x5d1a2b]['isRemoved']&&(_0x2aaaab[_0x5d1a2b]['isIncorrect']=!0x0),_0x2aaaab[_0x5d1a2b]['isIncorrect'])continue;if(0x0==_0x2aaaab[_0x5d1a2b]['distance'])continue;if('elementStart'!=_0x2aaaab[_0x5d1a2b]['type'])continue;if(null==_0x2aaaab[_0x5d1a2b]['pairId'])continue;let _0x11df50=_0x5d1a2b+0x1,_0x1c0d8b=0x0;for(;_0x2aaaab[_0x11df50]['id']!=_0x2aaaab[_0x5d1a2b]['pairId'];)'elementStart'==_0x2aaaab[_0x11df50]['type']?_0x1c0d8b++:'elementEnd'==_0x2aaaab[_0x11df50]['type']&&_0x1c0d8b--,_0x11df50++;if(0x0!=_0x1c0d8b){if(_0x2aaaab[_0x5d1a2b]['isRemoved'])_0x2aaaab[_0x5d1a2b]['isIncorrect']=!0x0;else{for(;_0x11df50!=_0x5d1a2b;)_0x2aaaab[_0x11df50]['isRemoved']&&0x0!=_0x2aaaab[_0x11df50]['distance']&&(_0x2aaaab[_0x11df50]['isIncorrect']=!0x0,_0x4a4ced['add'](_0x2aaaab[_0x11df50]['pairId'])),_0x11df50--;}}}return _0x2aaaab['filter'](_0x1aeab8=>!_0x1aeab8['isIncorrect']);}['_removeUnsupportedChanges'](_0x46063b){const _0x52390c=this['editor']['model']['schema'];for(let _0x5d740f=0x0;_0x5d740f<_0x46063b['length'];_0x5d740f++){if(!(_0x46063b[_0x5d740f]['isAdded']||_0x46063b[_0x5d740f]['isAddSuggestion']||_0x46063b[_0x5d740f]['isRemoved']||_0x46063b[_0x5d740f]['isRemoveSuggestion']))continue;if(0x0==_0x46063b[_0x5d740f]['distance'])continue;const _0xc0f254=_0x46063b[_0x5d740f]['item'];_0x52390c['isBlock'](_0xc0f254)||_0x52390c['isLimit'](_0xc0f254)||(_0x46063b[_0x5d740f]['isAdded']&&delete _0x46063b[_0x5d740f]['isAdded'],_0x46063b[_0x5d740f]['isAddSuggestion']&&delete _0x46063b[_0x5d740f]['isAddSuggestion'],_0x46063b[_0x5d740f]['isRemoveSuggestion']&&delete _0x46063b[_0x5d740f]['isRemoveSuggestion'],_0x46063b[_0x5d740f]['isRemoved']&&(_0x46063b[_0x5d740f]['isIncorrect']=!0x0));}return _0x46063b['filter'](_0x50852c=>!_0x50852c['isIncorrect']);}['_makeModelFromTape'](_0x2f89c0,_0x35a960,_0x11c89c){const _0x5350de=new vt(),_0x218eed=[],_0x5a1fe9=new Map(),_0x50c3e9=this['editor']['model'],_0x1859af=_0x50c3e9['schema'],_0x5e19fd=[_0x5350de],_0x526680={},_0x55a4cc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x132540=null;const _0x2cdbd6=[0x0];for(let _0x40d55f=0x0;_0x40d55f<_0x2f89c0['length'];_0x40d55f++)if('elementStart'===_0x2f89c0[_0x40d55f]['type']){_0x2f89c0[_0x40d55f]['previousPosition']=_0x50c3e9['createPositionFromPath'](_0x5350de,_0x2cdbd6);const _0x26b69a=new ut(_0x2f89c0[_0x40d55f]['item']['name'],_0x2f89c0[_0x40d55f]['item']['getAttributes']());_0x5e19fd[0x0]['_appendChild'](_0x26b69a),_0x2cdbd6['push'](0x0),_0x5e19fd['unshift'](_0x26b69a),_0x2f89c0[_0x40d55f]['nextPosition']=_0x50c3e9['createPositionFromPath'](_0x5350de,_0x2cdbd6);}else'elementEnd'===_0x2f89c0[_0x40d55f]['type']?(_0x5e19fd['shift'](),_0x2f89c0[_0x40d55f]['previousPosition']=_0x50c3e9['createPositionFromPath'](_0x5350de,_0x2cdbd6),_0x2cdbd6['pop'](),_0x2cdbd6[_0x2cdbd6['length']-0x1]++,_0x2f89c0[_0x40d55f]['nextPosition']=_0x50c3e9['createPositionFromPath'](_0x5350de,_0x2cdbd6)):(_0x2f89c0[_0x40d55f]['previousPosition']=_0x50c3e9['createPositionFromPath'](_0x5350de,_0x2cdbd6),_0x132540?_0x132540['_data']+=_0x2f89c0[_0x40d55f]['item']['data']:_0x132540=new gt(_0x2f89c0[_0x40d55f]['item']['data'],_0x2f89c0[_0x40d55f]['item']['getAttributes']()),_0x2f89c0[_0x40d55f+0x1]&&'text'===_0x2f89c0[_0x40d55f+0x1]['type']&&_0x4b1f5e(_0x132540,_0x2f89c0[_0x40d55f+0x1]['item'])||(_0x5e19fd[0x0]['_appendChild'](_0x132540),_0x132540=null),_0x2cdbd6[_0x2cdbd6['length']-0x1]+=_0x2f89c0[_0x40d55f]['item']['offsetSize'],_0x2f89c0[_0x40d55f]['nextPosition']=_0x50c3e9['createPositionFromPath'](_0x5350de,_0x2cdbd6));for(let _0x40021f=0x0;_0x40021f<_0x2f89c0['length'];_0x40021f++){const _0x333823=_0x2f89c0[_0x40021f]['previousPosition'],_0x25d4d9=_0x2f89c0[_0x40021f]['nextPosition'];for(const _0x5c85e8 of _0x2f89c0[_0x40021f]['markersStart'])_0x5a1fe9['set'](_0x5c85e8,{'start':_0x333823,'end':null});_0x399295('isRemoveSuggestion',_0x40021f,_0x333823,_0x25d4d9),_0x399295('isAddSuggestion',_0x40021f,_0x333823,_0x25d4d9),_0x399295('isRemoved',_0x40021f,_0x333823,_0x25d4d9),_0x399295('isAdded',_0x40021f,_0x333823,_0x25d4d9);for(const _0x3b7b21 of _0x2f89c0[_0x40021f]['markersEnd']){const _0x3b7f4f=_0x5a1fe9['get'](_0x3b7b21);_0x3b7f4f?_0x3b7f4f['end']=_0x25d4d9:_0x5a1fe9['set'](_0x3b7b21,{'start':_0x25d4d9,'end':_0x25d4d9});}}for(const [_0x591078,_0xf25ae5]of _0x5a1fe9){const _0x48ead9=this['editor']['model']['createRange'](_0xf25ae5['start'],_0xf25ae5['end']);_0x5350de['markers']['set'](_0x591078,_0x48ead9);}return _0x218eed['sort']((_0x250c36,_0x4898c1)=>{const _0x42f923=_0x5350de['markers']['get']('revision:'+_0x250c36['id']),_0x21383e=_0x5350de['markers']['get']('revision:'+_0x4898c1['id']);return _0x42f923['start']['isBefore'](_0x21383e['start'])?-0x1:_0x42f923['start']['isAfter'](_0x21383e['start'])?0x1:_0x42f923['end']['isBefore'](_0x21383e['end'])?-0x1:_0x42f923['end']['isAfter'](_0x21383e['end'])?0x1:'add'===_0x250c36['type']?-0x1:0x1;}),{'root':_0x5350de,'changes':_0x218eed};function _0x399295(_0x31a7e2,_0x4fd57a,_0x244b0b,_0x5aa9f8){const _0x225c5c=!!_0x2f89c0[_0x4fd57a][_0x31a7e2],_0x5c71ff=_0x225c5c?_0x2f89c0[_0x4fd57a][_0x31a7e2]['userId']:null,_0x1557ae=_0x4fd57a===_0x2f89c0['length']-0x1,_0xf424e5=_0x55a4cc[_0x31a7e2][0x0],_0xa5d735=_0x1859af['isObject'](_0x2f89c0[_0x4fd57a]['item']);!_0x526680[_0x31a7e2]&&_0x225c5c?_0x526680[_0x31a7e2]={'start':_0x244b0b,'tapeItem':_0x2f89c0[_0x4fd57a],'userId':_0x5c71ff,'type':_0x31a7e2}:_0x526680[_0x31a7e2]&&!_0x225c5c?(_0x526680[_0x31a7e2]['end']=_0x244b0b,_0x1fb15e(_0x526680[_0x31a7e2]),_0x526680[_0x31a7e2]=null):_0x526680[_0x31a7e2]&&_0x225c5c&&_0x526680[_0x31a7e2]['userId']!==_0x5c71ff&&(_0x526680[_0x31a7e2]['end']=_0x244b0b,_0xf424e5&&_0xf424e5['userId']===_0x526680[_0x31a7e2]['userId']||_0x1fb15e(_0x526680[_0x31a7e2]),_0x526680[_0x31a7e2]={'start':_0x244b0b,'tapeItem':_0x2f89c0[_0x4fd57a],'userId':_0x5c71ff,'type':_0x31a7e2}),_0x526680[_0x31a7e2]&&_0xa5d735&&('elementStart'!==_0x2f89c0[_0x4fd57a]['type']||_0xf424e5&&_0xf424e5['userId']===_0x5c71ff||_0x55a4cc[_0x31a7e2]['unshift']({'userId':_0x5c71ff,'object':_0x2f89c0[_0x4fd57a]['item'],'change':_0x526680[_0x31a7e2]}),'elementEnd'===_0x2f89c0[_0x4fd57a]['type']&&_0xf424e5&&_0xf424e5['object']===_0x2f89c0[_0x4fd57a]['item']&&(_0x55a4cc[_0x31a7e2]['shift'](),_0x526680[_0x31a7e2]=_0xf424e5['change'])),_0x526680[_0x31a7e2]&&_0x1557ae&&(_0x526680[_0x31a7e2]['end']=_0x5aa9f8,_0x1fb15e(_0x526680[_0x31a7e2]),_0x526680[_0x31a7e2]=null);}function _0x1fb15e({start:_0x5a4060,end:_0x2e4b80,tapeItem:_0x41d40d,userId:_0x42747e,type:_0x30a7cc}){const _0x3ba96d=_0x41d40d['item'],_0x5cf1f2=_0x50c3e9['schema']['isBlock'](_0x3ba96d)&&!_0x50c3e9['schema']['isLimit'](_0x3ba96d),_0x1c947d=_0x5a4060['nodeAfter']==_0x2e4b80['parent']&&_0x2e4b80['isAtStart'];if(_0x5cf1f2&&_0x1c947d)return;const _0x12c219=_0x50c3e9['createRange'](_0x5a4060,_0x2e4b80),_0x2bb869=_0x35a960['get'](_0x42747e),_0x277187=new r({'author':_0x2bb869,'type':'isAdded'==_0x30a7cc||'isAddSuggestion'==_0x30a7cc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x30a7cc||'isRemoveSuggestion'==_0x30a7cc},'createdAt':new Date(),'rootName':_0x11c89c});_0x218eed['push'](_0x277187),_0x5350de['markers']['set']('revision:'+_0x277187['id'],_0x12c219);}function _0x4b1f5e(_0xaf5759,_0x2a285a){const _0x46fcd0=_0xaf5759['getAttributes'](),_0x507eeb=_0x2a285a['getAttributes']();for(const _0x2ca622 of _0x46fcd0){if(_0x2ca622[0x1]!==_0x2a285a['getAttribute'](_0x2ca622[0x0]))return!0x1;_0x507eeb['next']();}return _0x507eeb['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3a9f7d=>{const _0x260a03=_0x3a9f7d['markerName']['split'](':')[0x1],_0x5694e6=this['_getChangeFromId'](_0x260a03);if(!_0x5694e6)return null;const _0x5118bd='add'==_0x5694e6['type']?'insertion':'deletion',_0x1918a7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5118bd];return _0x5694e6['data']['isSuggestion']&&_0x1918a7['push']('ck-suggestion-marker-'+_0x5118bd+'-new'),this['activeChange']==_0x5694e6&&_0x1918a7['push']('ck-suggestion-marker--active'),{'classes':_0x1918a7,'attributes':{'data-change-id':_0x260a03}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3d0b00=>{_0x3d0b00['on']('element:pre',(_0x3d0fd0,_0x5e6a65,_0x34c3ff)=>{const _0x145f6d=_0x5e6a65['viewItem']['getChild'](0x0);if(!_0x145f6d||!_0x145f6d['is']('element','code'))return;if(!_0x34c3ff['consumable']['consume'](_0x145f6d,{'attributes':['vid_start','vid_end']}))return;const _0x3108f2=_0x5e6a65['modelRange']['start']['nodeAfter'];_0x34c3ff['writer']['setAttribute']('vid_start',_0x145f6d['getAttribute']('vid_start'),_0x3108f2),_0x34c3ff['writer']['setAttribute']('vid_end',_0x145f6d['getAttribute']('vid_end'),_0x3108f2);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2c88be=>{_0x2c88be['on']('element',(_0x175759,_0x4d6e50,_0x52def3)=>{if(!_0x52def3['consumable']['consume'](_0x4d6e50['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4d6e50['modelRange']['isCollapsed'])return;const _0x300449=_0x4d6e50['modelRange']['start']['nodeAfter'];_0x300449['hasAttribute']('vid_start')||_0x300449['hasAttribute']('vid')||(_0x52def3['writer']['setAttribute']('vid_start',_0x4d6e50['viewItem']['getAttribute']('vid_start'),_0x300449),_0x52def3['writer']['setAttribute']('vid_end',_0x4d6e50['viewItem']['getAttribute']('vid_end'),_0x300449));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x522e54=>_0x522e54['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xf10c79,[,_0x1637cd])=>{['vid_start','vid_end','vid']['includes'](_0x1637cd)&&(_0xf10c79['return']=!0x0,_0xf10c79['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x467415=>{_0x467415['on']('attribute:vid',(_0x4aacf4,_0x188bd5,_0x3e765e)=>{if('\x20'!=_0x188bd5['item']['data']||_0x188bd5['item']['parent']['maxOffset']>0x1)return;if(!_0x3e765e['consumable']['consume'](_0x188bd5['item'],_0x4aacf4['name']))return;const _0x31701e=_0x3e765e['writer'],_0x424ee7=_0x3e765e['mapper']['toViewRange'](_0x188bd5['range']);_0x31701e['wrap'](_0x424ee7,_0x31701e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4586d1){const _0x23c922=_0x4586d1['plugins']['get']('RevisionViewer');return(_0x1a9876,_0x6dce95,_0x2abedd)=>{const _0x242d58=_0x6dce95['markerName']['split'](':')[0x1],_0xd2ce80=_0x23c922['_getChangeFromId'](_0x242d58);if(!_0xd2ce80)return null;const _0x1a68cf='add'==_0xd2ce80['type']?'split':'merge';if(!_0x2abedd['consumable']['test'](_0x6dce95['markerRange'],_0x1a9876['name']))return;const _0x5a1b29=_0x6dce95['markerRange']['getWalker'](),_0x2e7a43=_0x6dce95['markerRange']['start'],_0x11ab3b=_0x4586d1['model']['schema'];let _0x25cfc4=null,_0xfd8ec4=null,_0x5c31c1=!0x1,_0x31cd4f=!0x1;for(const _0x5daa8c of _0x5a1b29){const _0x3580e7=_0x5daa8c['item'];_0x5c31c1=_0x5c31c1||_0x11ab3b['isContent'](_0x3580e7);const _0xc08ab8=_0x2abedd['mapper']['toViewElement'](_0x3580e7);if(_0xc08ab8&&_0xc08ab8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5daa8c['type']&&(_0x11ab3b['isBlock'](_0x3580e7)&&!_0x11ab3b['isLimit'](_0x3580e7)&&(_0x3580e7['nextSibling']||_0x2e7a43['isAtEnd']?_0x25cfc4&&_0x25cfc4['parent']==_0x3580e7||(_0x25cfc4=_0x3580e7,_0x262bb2(_0x5daa8c['previousPosition']),_0x31cd4f=!0x0):_0xfd8ec4=_0xfd8ec4||_0x5daa8c['previousPosition']));}function _0x262bb2(_0x58a1a5){const _0x1102ab=_0x2abedd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a68cf}),_0x15d70d=_0x2abedd['mapper']['toViewPosition'](_0x58a1a5);_0xd2ce80['data']['isSuggestion']&&_0x2abedd['writer']['addClass']('ck-suggestion-marker-'+_0x1a68cf+'-new',_0x1102ab),_0x23c922['activeChange']==_0xd2ce80&&_0x2abedd['writer']['addClass']('ck-suggestion-marker--active',_0x1102ab),_0x2abedd['writer']['insert'](_0x15d70d,_0x1102ab),_0x2abedd['mapper']['bindElementToMarker'](_0x1102ab,_0x6dce95['markerName']);}_0x5c31c1||_0x31cd4f||!_0xfd8ec4||_0x262bb2(_0xfd8ec4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x49e343,_0x6ad153,_0x39909a)=>{const _0x203984=_0x39909a['mapper']['markerNameToElements'](_0x6ad153['markerName']);if(_0x203984){for(const _0x1853ba of _0x203984)(_0x1853ba['hasClass']('ck-suggestion-marker-split')||_0x1853ba['hasClass']('ck-suggestion-marker-merge'))&&(_0x39909a['mapper']['unbindElementFromMarkerName'](_0x1853ba,_0x6ad153['markerName']),_0x39909a['writer']['remove'](_0x1853ba));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xfd1dfa,_0x53f045,_0x3cd931)=>{const _0x1bfa6e=_0x53f045['markerName']['split'](':')[0x1],_0x2de7a9=this['_getChangeFromId'](_0x1bfa6e);if(!_0x2de7a9)return null;const _0x500d2f='add'==_0x2de7a9['type']?'split':'merge';if(_0x3cd931['consumable']['test'](_0x53f045['markerRange'],_0xfd1dfa['name']))for(const _0x4032d2 of _0x53f045['markerRange']['getItems']()){if(!_0x4032d2['is']('element','softBreak'))continue;const _0x4fa471=_0x3cd931['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x500d2f}),_0x129230=_0x3cd931['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4032d2));_0x2de7a9['data']['isSuggestion']&&_0x3cd931['writer']['addClass']('ck-suggestion-marker-'+_0x500d2f+'-new',_0x4fa471),this['activeChange']==_0x2de7a9&&_0x3cd931['writer']['addClass']('ck-suggestion-marker--active',_0x4fa471),_0x3cd931['writer']['insert'](_0x129230,_0x4fa471),_0x3cd931['mapper']['bindElementToMarker'](_0x4fa471,_0x53f045['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3ce3ee=>{for(const _0x1533b4 of this['editor']['model']['document']['getRootNames']()){const _0x30b30a=this['editor']['model']['document']['getRoot'](_0x1533b4),_0x420210=this['editor']['editing']['view']['document']['getRoot'](_0x1533b4);if(_0x420210){const _0x5730f0=_0x30b30a['getAttribute']('revisionHistoryAttachChange');if(_0x3ce3ee['removeAttribute']('data-change-id',_0x420210),_0x3ce3ee['removeClass']('ck-revision-history-root-add',_0x420210),_0x3ce3ee['removeClass']('ck-revision-history-root-remove',_0x420210),_0x3ce3ee['removeClass']('ck-revision-history-root--active',_0x420210),_0x5730f0){const _0x1552f8=this['_getChangeFromId'](_0x5730f0);if(!_0x1552f8)return null;_0x3ce3ee['setAttribute']('data-change-id',_0x5730f0,_0x420210),_0x3ce3ee['addClass']('ck-revision-history-root-'+_0x1552f8['type'],_0x420210),this['activeChange']==_0x1552f8&&_0x3ce3ee['addClass']('ck-revision-history-root--active',_0x420210);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x578943=>'revision-comment:'+_0x578943,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3ef7e6=>'revision-suggestion:'+_0x3ef7e6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1649ce=>({'name':'suggestion:'+_0x1649ce,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3297be=>{const _0x5708c5=_0x3297be['markerName']['split'](':')[0x1];return'insertion'!=_0x5708c5&&'deletion'!=_0x5708c5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5708c5]};}}),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',(_0x2993d0,_0x2b0268,_0x567709)=>{const _0x4a8209=_0x567709['mapper']['markerNameToElements'](_0x2b0268['markerName']);if(_0x4a8209){for(const _0x56b65b of _0x4a8209)_0x56b65b['is']('uiElement')&&(_0x567709['mapper']['unbindElementFromMarkerName'](_0x56b65b,_0x2b0268['markerName']),_0x567709['writer']['remove'](_0x56b65b));}},{'priority':'high'});}['_getChangeFromId'](_0x5845f2){return this['_changeIdToChange']['get'](_0x5845f2);}['_getViewForChange'](_0x402d09){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x402d09),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3b417b,_0x2d9e76,_0x88badc,_0x439911)=>{_0x439911&&this['_balloon']['remove'](_0x439911),_0x88badc&&(this['_balloon']['add']({'view':_0x88badc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x344681=this['editor']['editing'],_0x49876f=this['_getChangeFromId'](_0x88badc['changeId']);let _0x2cff75;if(_0x49876f['data']['isOnRoot']){const _0x139f7b=_0x344681['view']['getDomRoot'](_0x49876f['rootName']);_0x2cff75=Array['from'](_0x139f7b['getClientRects']());}else{const _0x29dddd=this['editor']['model']['markers']['get']('revision:'+_0x88badc['changeId']);_0x2cff75=Array['from'](_0x344681['mapper']['markerNameToElements'](_0x29dddd['name']))['map'](_0x309acf=>_0x344681['view']['domConverter']['mapViewToDom'](_0x309acf))['map'](_0x5231e5=>Array['from'](_0x5231e5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2cff75[0x0];return _0x2cff75['find'](_0x3011b8=>_0x3011b8['top']-0x3<=this['_activeViewTarget']['y']&&_0x3011b8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3011b8['left']-0x3<=this['_activeViewTarget']['x']&&_0x3011b8['right']+0x3>=this['_activeViewTarget']['x'])||_0x2cff75[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x51b377,_0x32be37,_0x29df5e,_0x3a03a8)=>{this['activeView']=_0x29df5e?this['_getViewForChange'](_0x29df5e):null,this['editor']['model']['change'](()=>{const _0x2436f5=this['editor']['editing'];_0x3a03a8&&(_0x3a03a8['data']['isOnRoot']?_0x2436f5['view']['change'](_0x4c5295=>{_0x4c5295['removeClass']('ck-revision-history-root--active',_0x2436f5['view']['document']['getRoot'](_0x3a03a8['rootName']));}):_0x2436f5['reconvertMarker']('revision:'+_0x3a03a8['id'])),_0x29df5e&&(_0x29df5e['data']['isOnRoot']?_0x2436f5['view']['change'](_0x256ee3=>{_0x256ee3['addClass']('ck-revision-history-root--active',_0x2436f5['view']['document']['getRoot'](_0x29df5e['rootName']));}):_0x2436f5['reconvertMarker']('revision:'+_0x29df5e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x262ae3,_0x180802)=>{if(this['activeChange'])return;const _0x50ff4=this['_findChangeIdFromDomTarget'](_0x180802['target']),_0x164437=this['_changeIdToChange']['get'](_0x50ff4);_0x164437?(this['_activeViewTarget']={'x':_0x180802['domEvent']['x'],'y':_0x180802['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x164437)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x21da82,_0x497fc1)=>{const _0x113e72=this['_findChangeIdFromDomTarget'](_0x497fc1['target']),_0x3379d4=this['_changeIdToChange']['get'](_0x113e72);_0x3379d4?(this['_activeViewTarget']={'x':_0x497fc1['domEvent']['x'],'y':_0x497fc1['domEvent']['y']},_0x3379d4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3379d4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x259d7c){do{const _0x42b194=_0x259d7c['getAttribute']('data-change-id');if(_0x42b194)return _0x42b194;_0x259d7c=_0x259d7c['parent'];}while(_0x259d7c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xdb1431=>{for(const _0x12603a of this['editor']['model']['markers'])_0xdb1431['removeMarker'](_0x12603a);});}}function X(_0x214bed,_0x4cbb09){return(_0x100489,_0x4183ce,_0x12da41)=>{if(!_0x12da41['consumable']['test'](_0x4183ce['markerRange'],_0x100489['name']))return;const _0x3a4723=_0x4183ce['markerRange']['getWalker'](),_0xe09a42=_0x4183ce['markerRange']['start'],_0x2d6a6e=_0x214bed['model']['schema'];let _0x481012=null,_0xd7772d=null,_0x15894f=!0x1,_0x553a5c=!0x1;for(const _0x2c02e5 of _0x3a4723){const _0x3b606b=_0x2c02e5['item'];_0x15894f=_0x15894f||_0x2d6a6e['isContent'](_0x3b606b);const _0x4bcae4=_0x12da41['mapper']['toViewElement'](_0x3b606b);if(_0x4bcae4&&_0x4bcae4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c02e5['type']&&(_0x2d6a6e['isBlock'](_0x3b606b)&&!_0x2d6a6e['isLimit'](_0x3b606b)&&(_0x3b606b['nextSibling']||_0xe09a42['isAtEnd']?_0x481012&&_0x481012['parent']==_0x3b606b||(_0x481012=_0x3b606b,_0x30801d(_0x2c02e5['previousPosition']),_0x553a5c=!0x0):_0xd7772d=_0xd7772d||_0x2c02e5['previousPosition']));}function _0x30801d(_0x2bc30c){const _0x388e4a=_0x12da41['mapper']['toViewPosition'](_0x2bc30c),_0x480591=_0x12da41['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4cbb09});_0x12da41['writer']['insert'](_0x388e4a,_0x480591),_0x12da41['mapper']['bindElementToMarker'](_0x480591,_0x4183ce['markerName']);}_0x15894f||_0x553a5c||!_0xd7772d||_0x30801d(_0xd7772d);};}class mt extends _0x3767db{constructor(_0x3c6980){super(_0x3c6980);const _0x5ababd=_0x3c6980['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5ababd,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ababd,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x48ba5b=this['editor'],_0xd55052=_0x48ba5b['plugins']['get'](m),_0xd84d45=_0xd55052['isReady']?_0xd55052['diff']['newRevisionId']:null;_0x48ba5b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xd84d45);}['refresh'](){const {isReady:_0x1617db,isEnabled:_0x26b9b6,repository:_0x25c174,diff:_0x4fc2e7}=this['editor']['plugins']['get'](m),_0x274433=_0x4fc2e7&&_0x25c174['getLaterVisibleRevision'](_0x4fc2e7['newRevisionId']);this['isEnabled']=_0x1617db&&_0x26b9b6&&Boolean(_0x274433);}}class wt extends _0x3767db{['_step'];constructor(_0x4f1a7b,{direction:_0x3ad6e1}){super(_0x4f1a7b);const _0x9ddc41=_0x4f1a7b['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x3ad6e1?0x1:-0x1,this['listenTo'](_0x9ddc41,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x9ddc41,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x9ddc41,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x198d01=this['editor'],_0x496c0f=_0x198d01['plugins']['get'](m),{isNavigationMode:_0x47e55e,currentChangeNumber:_0x3a6695}=_0x496c0f;let _0x530810;if(_0x496c0f['activeChange']=_0x47e55e?_0x496c0f['diff']['changes']['get'](_0x3a6695+this['_step']):_0x496c0f['diff']['changes']['first'],_0x496c0f['activeChange']['data']['isOnRoot'])_0x530810=_0x198d01['editing']['view']['getDomRoot'](_0x496c0f['activeChange']['rootName']);else{const _0x1100d0=_0x198d01['model']['markers']['get']('revision:'+_0x496c0f['activeChange']['id']);_0x530810=_0x4eed56(_0x198d01['editing'],_0x1100d0);}_0x321328({'target':_0x530810,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2b70bd,currentChangeNumber:_0x3cb1a8,numberOfChanges:_0x5cfe3c,isReady:_0x25b134,isEnabled:_0x5ec23e}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x5ec23e&&_0x25b134&&_0x5cfe3c)&&(!_0x2b70bd||(0x1===this['_step']?_0x3cb1a8<_0x5cfe3c-0x1:_0x3cb1a8>0x0));}}class _i extends ts{constructor(_0x327acb){super(_0x327acb);const _0x27818e=this['bindTemplate'],_0xc25532=new te(_0x327acb),_0x4b30e0=new te(_0x327acb);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',(_0x32d866,_0x4e1094)=>_0x32d866&&_0x4e1094>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x405210,_0x562c26,_0x39ef91,_0x30a164)=>{if(!_0x405210)return g(_0x327acb,'Loading...');if(!_0x39ef91)return g(_0x327acb,'No\x20changes');const _0x39335f=g(_0x327acb,'NUMBER_OF_CHANGES',_0x39ef91);return _0x30a164?g(_0x327acb,'X_OF_Y_CHANGES',[_0x562c26+0x1,_0x39ef91]):_0x39335f;}),_0xc25532['set']({'label':g(_0x327acb,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1477b5}),_0x4b30e0['set']({'label':g(_0x327acb,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x437a3c}),_0xc25532['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4b30e0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xc25532['on']('execute',()=>this['fire']('execute','backward')),_0x4b30e0['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',_0x27818e['if']('_isStatusLabelVisible','ck-hidden',_0x54b311=>!_0x54b311)]},'children':[{'text':_0x27818e['to']('isNavigationMode',_0x1fa642=>_0x1fa642?g(_0x327acb,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x327acb,'Total')+':\x20')}]},{'text':_0x27818e['to']('_statusText')}]},new _0x58edbb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xc25532,_0x4b30e0]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x5c3263{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4fe923=this['editor']['editing']['view'];_0x4fe923['change'](_0x10c68a=>{for(const _0x5a9da3 of _0x4fe923['document']['roots'])_0x10c68a['addClass'](le,_0x5a9da3);});}['hide'](){const _0x9c18e7=this['editor']['editing']['view'];_0x9c18e7['change'](_0xc3aa9b=>{for(const _0x296ef8 of _0x9c18e7['document']['roots'])_0xc3aa9b['removeClass'](le,_0x296ef8);});}}class R extends _0x5c3263{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x3c7b00=this['editor'],_0x199ae0=_0x3c7b00['plugins']['get'](m),_0x3f4335=_0x3c7b00['plugins']['get'](ge);_0x3c7b00['ui']['componentFactory']['add']('exitToEditing',_0x26a1d1=>{const _0x235760=new te(_0x26a1d1);return _0x235760['set']({'label':g(_0x26a1d1,'Back\x20to\x20editing'),'icon':_0x133795,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x235760,'execute',()=>{_0x3c7b00['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x235760;}),_0x3c7b00['ui']['componentFactory']['add']('restoreRevision',_0x49bb62=>{const _0x4bcabc=new te(_0x49bb62);return _0x4bcabc['set']({'label':g(_0x49bb62,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4bcabc['bind']('isEnabled')['to'](_0x3c7b00['commands']['get']('restoreRevision')),this['listenTo'](_0x4bcabc,'execute',()=>_0x3c7b00['execute']('restoreRevision')),_0x4bcabc;}),_0x3c7b00['ui']['componentFactory']['add']('changesNavigation',_0xe9f36f=>{const _0x165712=new _i(_0xe9f36f),_0x1dbd1e=_0x3c7b00['commands']['get']('showPreviousChange'),_0x3d95bb=_0x3c7b00['commands']['get']('showNextChange');return _0x165712['bind']('isBackwardNavigationEnabled')['to'](_0x1dbd1e,'isEnabled'),_0x165712['bind']('isForwardNavigationEnabled')['to'](_0x3d95bb,'isEnabled'),_0x165712['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x199ae0),this['listenTo'](_0x165712,'execute',(_0x4a7565,_0x4a79ae)=>{_0x3c7b00['execute']('forward'===_0x4a79ae?'showNextChange':'showPreviousChange');}),_0x165712;}),_0x3f4335['show'](),_0x199ae0['on']('change:isReady',(_0x39b12f,_0x12b6a1,_0x319e14)=>{_0x319e14?_0x3f4335['hide']():_0x3f4335['show']();});}}class at extends _0x283f71{['_resizeObserver']=null;constructor(_0x29ce8c,_0x4eaf84){super(_0x29ce8c,_0x4eaf84);const _0x36fa26=this['bindTemplate'];this['set']({'label':g(_0x29ce8c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x29ce8c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x36fa26['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 _0x51cde6=this['fieldView']['element'];this['_tooltipString']=_0x51cde6['scrollWidth']>_0x51cde6['clientWidth']&&_0x51cde6['value']||'';}}class si extends ts{constructor(_0xa5a556,_0x19dd8e,_0x799c36){super(_0xa5a556);const _0x5ca10e=new _0x1cb567();_0x5ca10e['set']({'content':_0x302363,'viewBox':'0\x200\x2011\x2010'});const _0x204a18=['ck','ck-revision-history-sidebar__revision-author'];_0x799c36&&_0x204a18['push']('ck-revision-history-sidebar__revision-author_creator');const _0x172095=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0xa5a556,_0x799c36?'Revision\x20creator':'Revision\x20author')},'children':[_0x5ca10e,_0x19dd8e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x204a18},'children':_0x172095});}}function oi(_0x3ebf6f,_0x15affd){const _0x3f0d65=_0x3ebf6f['bindTemplate'],_0x5b0bab=_0x3ebf6f['locale'],_0x4d0952=_0x357d32(_0x5b0bab);_0x4d0952['panelPosition']='sw';const _0x20b7f6=function(_0x2bddbe,_0x513e9c){const _0x4ac1ea=function(_0x1ad8f5,_0x58c58c){const _0x394151=_0x1ad8f5['locale'],_0xf92b25={'Compare\x20against\x20selected':g(_0x394151,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x394151,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x394151,'Restore\x20this\x20revision')};return _0x58c58c['map'](_0x4ab598=>{const _0x5bb563=_0xf92b25[_0x4ab598['name']];return _0x5bb563&&_0x5bb563!==_0x4ab598['name']&&(_0x4ab598['name']=_0x5bb563),_0x4ab598;});}(_0x2bddbe,_0x513e9c),_0x5f1642=new _0x669071();for(const _0x5bddab of _0x4ac1ea){const _0x2215e8={'type':'button','model':new to({'label':_0x5bddab['name'],'class':_0x5bddab['class'],'withText':!0x0,'role':'menuitem','_action':_0x5bddab['action']})};_0x2215e8['model']['bind']('isEnabled')['to'](_0x2bddbe,'isActionsDropdownOpen',_0x14f1b8=>'function'!=typeof _0x5bddab['isEnabled']||(!_0x14f1b8||_0x5bddab['isEnabled'](_0x2bddbe))),_0x5f1642['add'](_0x2215e8);}return _0x5f1642;}(_0x3ebf6f,_0x15affd);return _0x3ebf6f['bind']('isActionsDropdownOpen')['to'](_0x4d0952,'isOpen'),_0x4d0952['buttonView']['set']({'label':g(_0x5b0bab,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5219ee}),_0x4d0952['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3f0d65['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3f0d65['to'](_0x245957=>_0x245957['stopPropagation']())}}),_0x4d0952['on']('execute',_0x4bbec2=>{_0x3ebf6f['isReady']&&'function'==typeof _0x4bbec2['source']['_action']&&_0x4bbec2['source']['_action'](_0x3ebf6f);}),_0x1c5137(_0x4d0952,_0x20b7f6,{'role':'menu'}),_0x4d0952['listenTo'](_0x3ebf6f,'change:isActionsDropdownOpen',(_0x95fa9a,_0x4c17bf,_0x3142ce)=>{if(_0x3142ce)for(const _0x31a508 of _0x4d0952['listView']['items']){const _0x4f6b34=_0x31a508['children']['first'],_0x5021ea=_0x15affd['find'](_0xc01a82=>_0xc01a82['action']===_0x4f6b34['_action'])['isVisible'];_0x31a508['isVisible']=void 0x0===_0x5021ea||_0x5021ea(_0x3ebf6f);}}),_0x4d0952;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x11f117,uid as _0x571ba5,Collection as _0x3f8e7a,logWarning as _0x39c6af,FocusTracker as _0x338ab8,KeystrokeHandler as _0x143d1e,scrollViewportToShowTarget as _0x47b4d2,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x5afe82}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x503699,set as _0x2bcce7,unset as _0x1e57ba,isEqual as _0x3cd36b}from'es-toolkit/compat';import{Plugin as _0x527fd9,PendingActions as _0x3d46e5,Command as _0x4a9630,ElementApiMixin as _0x52547e,Editor as _0x3270d8}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x386857,getMarkerDomElement as _0x5b2979,ConfirmMixin as ti,sanitizeEditorConfig as _0x5ba2f0}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5942a7,ViewAttributeElement as _0x49ccc4,ViewEmptyElement as _0x409f3d,ViewRawElement as _0x4d034c,ViewUIElement as _0x20e593,ViewDocumentFragment as _0x2a3854,ViewText as _0x48de41,ViewElement as _0x257259,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 _0x278e4f,IconChevronUp as _0x157ddd,IconChevronDown as _0x577587,IconUndo as _0x42d483,IconUser as _0x594709,IconThreeVerticalDots as _0x14de33}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x149bf4,submitHandler as _0x451b44,LabeledFieldView as _0x4a54d4,createLabeledInputText as _0x37da91,createDropdown as _0x2bb1f1,ListView as _0x28cadf,ListItemView as _0x3bce81,ButtonView as te,MenuBarMenuView as _0x77737,MenuBarMenuListView as _0x4c1111,MenuBarMenuListItemView as _0x94bb0e,MenuBarMenuListItemButtonView as _0x1308fb,ContextualBalloon as _0x3e17e6,ToolbarSeparatorView as _0x2f1e4b,IconView as _0x226077,addListToDropdown as _0x43d39a,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 _0x3f3942}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x11f117(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x408d45){super(),this['id']=_0x408d45['id']||_0x571ba5(),this['creator']=_0x408d45['creator']||null,this['authors']=_0x408d45['authors']||[],this['diffData']=_0x408d45['diffData']||null,this['toVersion']=_0x408d45['toVersion']||0x0,this['fromVersion']=_0x408d45['fromVersion']||0x0,this['set']('name',_0x408d45['name']||''),this['set']('createdAt',_0x408d45['createdAt']||new Date()),this['set']('attributes',_0x408d45['attributes']||{});}['setName'](_0xf6fbf7){this['_update']({'name':_0xf6fbf7});}['setAttribute'](_0xfe05b7,_0xd80ffd){const _0x4ac458=_0x503699(this['attributes']);_0x2bcce7(_0x4ac458,_0xfe05b7,_0xd80ffd),this['_update']({'attributes':_0x4ac458});}['removeAttribute'](_0x75282){const _0x2c20eb=_0x503699(this['attributes']);_0x1e57ba(_0x2c20eb,_0x75282),this['_update']({'attributes':_0x2c20eb});}['_update'](_0x1569d2,_0x1fa4b9=!0x1){let _0x25c99b=!0x1;const _0x58e708={'id':this['id']},_0x490b1c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xe5ae21 of _0x490b1c){const _0x2b530e=_0x1569d2[_0xe5ae21];void 0x0!==_0x2b530e&&_0x2b530e!==this[_0xe5ae21]&&(this[_0xe5ae21]=_0x2b530e,_0x58e708[_0xe5ae21]=_0x2b530e,_0x25c99b=!0x0);}_0x25c99b&&(_0x58e708['authors']&&(_0x58e708['authorsIds']=_0x58e708['authors']['map'](_0x1a6265=>_0x1a6265['id']),delete _0x58e708['authors']),this['fire']('_update',_0x58e708,_0x1fa4b9));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x28ffff=>_0x28ffff['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x527fd9{['_revisions'];static get['requires'](){return[_0x386857];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x31ce5b){super(_0x31ce5b),this['_revisions']=new _0x3f8e7a();}['afterInit'](){!async function(_0x4c6d4b){const _0x275c70=_0x371acd([0x6f,0x58,0x44,0x49,0x6d,0x70,0x4f,0x71,0x59,0x56,0x50,0x69,0x42,0x5a,0x4c,0x61,0x51,0x6b,0x55,0x45,0x77,0x54,0x75,0x65,0x30,0x68,0x79,0x66,0x73,0x43,0x33,0x78,0x48,0x37,0x6e,0x41,0x31,0x4b,0x76,0x74,0x7a,0x35,0x53,0x38,0x4d,0x64,0x62,0x32,0x57,0x72,0x34,0x47,0x6c,0x67,0x46,0x36,0x6a,0x39,0x52,0x4e,0x63,0x4a]),_0x148032=0xeb829,_0x23f593=0x74310026,_0x2c53b1=0x74366786^_0x23f593,_0x591bcc=window[_0x371acd([0x44,0x61,0x74,0x65])][_0x371acd([0x6e,0x6f,0x77])](),_0x4e8151=_0x4c6d4b[_0x371acd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x41e0c0=new window[(_0x371acd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ddf6f=>{_0x4e8151[_0x371acd([0x6f,0x6e,0x63,0x65])](_0x371acd([0x72,0x65,0x61,0x64,0x79]),_0x3ddf6f);}),_0x30b444={[_0x371acd([0x6b,0x74,0x79])]:_0x371acd([0x45,0x43]),[_0x371acd([0x75,0x73,0x65])]:_0x371acd([0x73,0x69,0x67]),[_0x371acd([0x63,0x72,0x76])]:_0x371acd([0x50,0x2d,0x32,0x35,0x36]),[_0x371acd([0x78])]:_0x371acd([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]),[_0x371acd([0x79])]:_0x371acd([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]),[_0x371acd([0x61,0x6c,0x67])]:_0x371acd([0x45,0x53,0x32,0x35,0x36])},_0x21271d=_0x4e8151[_0x371acd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x371acd([0x67,0x65,0x74])](_0x371acd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e512f(){let _0x11ad8d,_0x5d565f=null,_0x48989a=null;try{if(_0x21271d==_0x371acd([0x47,0x50,0x4c]))return _0x371acd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11ad8d=_0x5b5781(),!_0x11ad8d)return _0x371acd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11ad8d[_0x371acd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48989a=_0x431915(_0x11ad8d[_0x371acd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11ad8d[_0x371acd([0x6a,0x74,0x69])])),await _0x23a642()?_0x357e7a()?_0x40146d()?_0x371acd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x111f6a()?(_0x11ad8d[_0x371acd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x371acd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d565f=_0x4066c1(_0x371acd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11ad8d[_0x371acd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x371acd([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d565f=_0x4066c1(_0x371acd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x236632()):_0x371acd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x371acd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x371acd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x129e8a){return _0x371acd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40146d(){const _0x44ccb3=[_0x371acd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x371acd([0x74,0x72,0x69,0x61,0x6c])][_0x371acd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11ad8d[_0x371acd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x591bcc/0x3e8:0xe10*_0x2c53b1;return _0x11ad8d[_0x371acd([0x65,0x78,0x70])]<_0x44ccb3;}function _0x357e7a(){const _0x34be3f=_0x11ad8d[_0x371acd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x34be3f)return!0x1;if(_0x34be3f[_0x371acd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371acd([0x2a])))return!0x0;if(_0x34be3f[_0x371acd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371acd([0x52,0x48])))return!0x0;if(_0x34be3f[_0x371acd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371acd([0x52,0x52,0x48]))){if(_0x172e2f())return!0x0;if(_0xb05257()||_0x2f2051())return!0x0;}return!0x1;}function _0x111f6a(){const _0x23cea5=_0x11ad8d[_0x371acd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23cea5||0x0==_0x23cea5[_0x371acd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x118d22}=new URL(window[_0x371acd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23cea5[_0x371acd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x118d22))return!0x0;const _0x397b9e=_0x118d22[_0x371acd([0x73,0x70,0x6c,0x69,0x74])](_0x371acd([0x2e]));return _0x23cea5[_0x371acd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b18f1=>_0x4b18f1[_0x371acd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371acd([0x2a])))[_0x371acd([0x6d,0x61,0x70])](_0x54b25e=>_0x54b25e[_0x371acd([0x73,0x70,0x6c,0x69,0x74])](_0x371acd([0x2e])))[_0x371acd([0x73,0x6f,0x6d,0x65])](_0x486200=>_0x397b9e[_0x371acd([0x65,0x76,0x65,0x72,0x79])]((_0x26d6bc,_0x156da6)=>_0x486200[_0x156da6]===_0x26d6bc||_0x486200[_0x156da6]===_0x371acd([0x2a])));}function _0x236632(){return _0x5d565f&&_0x48989a?new window[(_0x371acd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fe3d4,_0x3a7078)=>{_0x5d565f[_0x371acd([0x74,0x68,0x65,0x6e])](_0x3fe3d4,_0x3a7078),_0x48989a[_0x371acd([0x74,0x68,0x65,0x6e])](_0x3d5484=>{_0x3d5484!=_0x371acd([0x56,0x61,0x6c,0x69,0x64])&&_0x3fe3d4(_0x3d5484);},_0x3a7078);}):_0x5d565f||_0x48989a||_0x371acd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x431915(_0x52950c,_0x385b68){return new window[(_0x371acd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a937=>{if(_0x533c81())return _0x21a937(_0x371acd([0x56,0x61,0x6c,0x69,0x64]));_0x5caa17(),_0x4e8151[_0x371acd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x371acd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57522a=!0x1;const _0x2a4360=_0x571ba5();function _0x2e8e23(_0x2b334a){return!!_0x2b334a&&(typeof _0x2b334a===_0x371acd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b334a===_0x371acd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b334a[_0x371acd([0x74,0x68,0x65,0x6e])]===_0x371acd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b334a[_0x371acd([0x63,0x61,0x74,0x63,0x68])]===_0x371acd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20f254(_0x5839f3){_0xc7964b(_0x5839f3)[_0x371acd([0x74,0x68,0x65,0x6e])](_0x5e2324=>{if(!_0x5e2324||_0x5e2324[_0x371acd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x371acd([0x6f,0x6b]))return _0x371acd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x452209(_0x3cb4bf(_0x2a4360+_0x385b68))!=_0x5e2324[_0x371acd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x371acd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x371acd([0x56,0x61,0x6c,0x69,0x64]);})[_0x371acd([0x74,0x68,0x65,0x6e])](_0x5519e6=>(_0x5505d7(),_0x5519e6),()=>{const _0x28e6a1=_0x15693f();return null==_0x28e6a1?(_0x5505d7(),_0x371acd([0x56,0x61,0x6c,0x69,0x64])):_0x371acd(_0x591bcc-_0x28e6a1>(0x503d8426^_0x23f593)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x371acd([0x74,0x68,0x65,0x6e])](_0x21a937)[_0x371acd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21a937(_0x371acd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1dfa89=0x7407eea6^_0x23f593;function _0x5505d7(){const _0x313a27=_0x371acd([0x6c,0x6c,0x63,0x74,0x2d])+_0x452209(_0x3cb4bf(_0x52950c)),_0x1e9b9d=_0x10cd24(_0x452209(window[_0x371acd([0x4d,0x61,0x74,0x68])][_0x371acd([0x63,0x65,0x69,0x6c])](_0x591bcc/_0x1dfa89)));window[_0x371acd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x371acd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x313a27,_0x1e9b9d);}function _0x15693f(){const _0xc448f2=_0x371acd([0x6c,0x6c,0x63,0x74,0x2d])+_0x452209(_0x3cb4bf(_0x52950c)),_0x3e84b1=window[_0x371acd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x371acd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc448f2);return _0x3e84b1?window[_0x371acd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10cd24(_0x3e84b1),0x10)*_0x1dfa89:null;}function _0xc7964b(_0x24d03e){return new window[(_0x371acd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44ad74,_0x3a4f6c)=>{_0x24d03e[_0x371acd([0x74,0x68,0x65,0x6e])](_0x44ad74,_0x3a4f6c),window[_0x371acd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a4f6c,0x7430d4e6^_0x23f593);});}}_0x4e8151[_0x371acd([0x6f,0x6e])](_0x371acd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c200d,_0x1dd4dc)=>{if(_0x1dd4dc[0x0]!=_0x52950c)return _0x21a937(_0x371acd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1dd4dc[0x1]={..._0x1dd4dc[0x1],[_0x371acd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a4360};},{[_0x371acd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x371acd([0x68,0x69,0x67,0x68])}),_0x4e8151[_0x371acd([0x6f,0x6e])](_0x371acd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a44c1=>{_0x2e8e23(_0x4a44c1[_0x371acd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57522a=!0x0,_0x20f254(_0x4a44c1[_0x371acd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x371acd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x371acd([0x6c,0x6f,0x77])}),_0x41e0c0[_0x371acd([0x74,0x68,0x65,0x6e])](()=>{_0x57522a||_0x21a937(_0x371acd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x533c81(){return _0x4e8151[_0x371acd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x371acd([0x76,0x69,0x65,0x77])][_0x371acd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x371acd([0x61,0x75,0x74,0x6f]);}function _0x5caa17(){_0x4e8151[_0x371acd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x371acd([0x76,0x69,0x65,0x77])][_0x371acd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x371acd([0x61,0x75,0x74,0x6f]);}}function _0x4066c1(_0x432961){const _0xd0cac9=[new window[(_0x371acd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x438487=>setTimeout(_0x438487,0x74383eea^_0x23f593)),_0x41e0c0[_0x371acd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x371acd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3822fd=>{const _0x20575e=0x74310021^_0x23f593,_0x15927a=_0x4c6d4b[_0x371acd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x319c45(){_0x15927a[_0x371acd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x20575e&&_0x3822fd();}_0x319c45(),_0x15927a[_0x371acd([0x6f,0x6e])](_0x371acd([0x61,0x64,0x64]),_0x319c45);})),new window[(_0x371acd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cd7bb=>{function _0x5dd09d(){for(const _0x469a07 in window)if(window[_0x371acd([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x371acd([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x469a07))&&window[_0x469a07]==_0x148032)return _0x2cd7bb();_0x4e8151[_0x371acd([0x73,0x74,0x61,0x74,0x65])]!=_0x371acd([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x371acd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dd09d,0x743113ae^_0x23f593);}_0x43a36d(_0x371acd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5dd09d();})];return window[_0x371acd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x371acd([0x72,0x61,0x63,0x65])](_0xd0cac9)[_0x371acd([0x74,0x68,0x65,0x6e])](()=>_0x432961);}async function _0x1cbf0f(){if(await _0x41e0c0,_0x43a36d(_0x371acd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2378a9=_0x4c6d4b[_0x371acd([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x13d73b=_0x4c6d4b[_0x371acd([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])](_0x2378a9[_0x371acd([0x69,0x64])]),_0x1c78b1=_0x3b1c42(_0x371acd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1c78b1[_0x371acd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2378a9['id'],_0x13d73b?_0x13d73b['id']:null,!0x0),_0x1c78b1[_0x371acd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x371acd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1c78b1[_0x371acd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1c78b1[_0x371acd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x57d93e,void(_0x1c78b1[_0x371acd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x57d93e);}if(_0x43a36d(_0x371acd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4bdd5b=_0x3b1c42(_0x371acd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4bdd5b[_0x371acd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x371acd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4bdd5b[_0x371acd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4bdd5b[_0x371acd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x57d93e,_0x4bdd5b[_0x371acd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x57d93e;}_0x4e8151[_0x371acd([0x6d,0x6f,0x64,0x65,0x6c])][_0x371acd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57d93e,_0x4e8151[_0x371acd([0x6d,0x6f,0x64,0x65,0x6c])][_0x371acd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57d93e,_0x4e8151[_0x371acd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x371acd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x172e2f(){return _0x43a36d(_0x371acd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b1c42(_0x371acd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x371acd([0x73,0x74,0x61,0x74,0x65])]==_0x371acd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xb05257(){return _0x43a36d(_0x371acd([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 _0x2f2051(){return _0x43a36d(_0x371acd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1fc88a(_0x569cae){const _0x37d17f=_0x49e22d();_0x4e8151[_0x37d17f]=_0x371acd([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])+_0x569cae,_0x569cae[_0x371acd([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x371acd([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x49e22d()]=_0x148032),_0x569cae!=_0x371acd([0x56,0x61,0x6c,0x69,0x64])&&_0x1cbf0f();}function _0x49e22d(){const _0x175cf9=window[_0x371acd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x371acd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x371acd([0x6e,0x6f,0x77])]())[_0x371acd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x371acd([0x2e]),'');let _0x3573f1=_0x371acd([0x6f]);for(let _0x2fc839=0x0;_0x2fc839<_0x175cf9[_0x371acd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2fc839+=0x2){let _0x15cdc6=window[_0x371acd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x175cf9[_0x371acd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fc839,_0x2fc839+0x2));_0x15cdc6>=_0x275c70[_0x371acd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15cdc6-=_0x275c70[_0x371acd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3573f1+=_0x275c70[_0x15cdc6];}return _0x3573f1;}function _0x5b5781(){const _0x1ba081=_0x21271d[_0x371acd([0x73,0x70,0x6c,0x69,0x74])](_0x371acd([0x2e]));if(0x3!=_0x1ba081[_0x371acd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x771669(_0x1ba081[0x1]);function _0x771669(_0x2e2c39){const _0x355817=_0x559308(_0x2e2c39);return _0x355817&&_0x54e42e()?_0x355817:null;function _0x54e42e(){const _0x501817=_0x355817[_0x371acd([0x6a,0x74,0x69])],_0x4b1f57=window[_0x371acd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x501817[_0x371acd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x501817[_0x371acd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f3b78={..._0x355817,[_0x371acd([0x6a,0x74,0x69])]:_0x501817[_0x371acd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x501817[_0x371acd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f3b78[_0x371acd([0x76,0x63])],_0x3cb4bf(_0x3f3b78)==_0x4b1f57;}}}async function _0x23a642(){let _0x46b36e=!0x0;try{const _0x48cf51=_0x21271d[_0x371acd([0x73,0x70,0x6c,0x69,0x74])](_0x371acd([0x2e])),[_0x49ebd9,_0x3b2293,_0x33866d]=_0x48cf51;return _0x3e6858(_0x49ebd9),await _0x1abdcb(_0x49ebd9,_0x3b2293,_0x33866d),_0x46b36e;}catch(_0x4b7b2b){return!0x1;}function _0x3e6858(_0xb6949c){const _0x2f0a8d=_0x559308(_0xb6949c);_0x2f0a8d&&_0x2f0a8d[_0x371acd([0x61,0x6c,0x67])]==_0x371acd([0x45,0x53,0x32,0x35,0x36])||(_0x46b36e=!0x1);}async function _0x1abdcb(_0x3b9b34,_0xa6a0c1,_0x25b84a){const _0x2d0121=window[_0x371acd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x371acd([0x66,0x72,0x6f,0x6d])](_0x6c7c96(_0x25b84a),_0x2b2a72=>_0x2b2a72[_0x371acd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x397b71=new window[(_0x371acd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x371acd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b9b34+_0x371acd([0x2e])+_0xa6a0c1),_0xd0578b=window[_0x371acd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x371acd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd0578b)return;const _0x47e91d=await _0xd0578b[_0x371acd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x371acd([0x6a,0x77,0x6b]),_0x30b444,{[_0x371acd([0x6e,0x61,0x6d,0x65])]:_0x371acd([0x45,0x43,0x44,0x53,0x41]),[_0x371acd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x371acd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x371acd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd0578b[_0x371acd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x371acd([0x6e,0x61,0x6d,0x65])]:_0x371acd([0x45,0x43,0x44,0x53,0x41]),[_0x371acd([0x68,0x61,0x73,0x68])]:{[_0x371acd([0x6e,0x61,0x6d,0x65])]:_0x371acd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47e91d,_0x2d0121,_0x397b71)||(_0x46b36e=!0x1);}}function _0x559308(_0xd12f45){return _0xd12f45[_0x371acd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x371acd([0x65,0x79]))?JSON[_0x371acd([0x70,0x61,0x72,0x73,0x65])](_0x6c7c96(_0xd12f45)):null;}function _0x6c7c96(_0xae4422){return window[_0x371acd([0x61,0x74,0x6f,0x62])](_0xae4422[_0x371acd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x371acd([0x2b]))[_0x371acd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x371acd([0x2f])));}function _0x3cb4bf(_0x5083e1){let _0x3272a7=0x1505;function _0x58a10e(_0x2d58ce){for(let _0x110984=0x0;_0x110984<_0x2d58ce[_0x371acd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x110984++){const _0x4c1530=_0x2d58ce[_0x371acd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x110984);_0x3272a7=(_0x3272a7<<0x5)+_0x3272a7+_0x4c1530,_0x3272a7&=_0x3272a7;}}function _0x5642c6(_0x4201e9){Array[_0x371acd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4201e9)?_0x4201e9[_0x371acd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5642c6):_0x4201e9&&typeof _0x4201e9==_0x371acd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x371acd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4201e9)[_0x371acd([0x73,0x6f,0x72,0x74])]()[_0x371acd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3129dd,_0x5f204a])=>{_0x58a10e(_0x3129dd),_0x5642c6(_0x5f204a);}):_0x58a10e(window[_0x371acd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4201e9));}return _0x5642c6(_0x5083e1),_0x3272a7>>>0x0;}function _0x452209(_0xd6d1a9){return _0xd6d1a9[_0x371acd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x371acd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x371acd([0x30]));}function _0x10cd24(_0x12dac8){return _0x12dac8[_0x371acd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x371acd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x371acd([0x6a,0x6f,0x69,0x6e])]('');}function _0x43a36d(_0x4aae98){return _0x4e8151[_0x371acd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x371acd([0x68,0x61,0x73])](_0x4aae98);}function _0x3b1c42(_0x23a91a){return _0x4e8151[_0x371acd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x371acd([0x67,0x65,0x74])](_0x23a91a);}function _0x57d93e(){}function _0x371acd(_0x285ae5){return _0x285ae5['map'](_0x373614=>String['fromCharCode'](_0x373614))['join']('');}_0x1fc88a(await _0x3e512f());}(this);}['createRevision'](_0x5c03c1){const _0x572a34=this['editor']['plugins']['get']('Users');return new h({'id':_0x5c03c1['id'],'name':_0x5c03c1['name'],'creator':_0x5c03c1['creatorId']?_0x572a34['getUser'](_0x5c03c1['creatorId']):null,'diffData':_0x5c03c1['diffData']||_0x5c03c1['data'],'authors':_0x5c03c1['authorsIds']['map'](_0x3aa779=>_0x572a34['getUser'](_0x3aa779)),'createdAt':new Date(_0x5c03c1['createdAt']),'attributes':_0x5c03c1['attributes'],'fromVersion':_0x5c03c1['fromVersion'],'toVersion':_0x5c03c1['toVersion']});}['addRevision'](_0x21335f,_0x74c996=0x0){this['_revisions']['add'](_0x21335f,_0x74c996);}['getRevision'](_0x2ae2fd){return this['_revisions']['get'](_0x2ae2fd);}['getRevisions'](_0x3d5396={'toJSON':!0x1}){const _0x426e6c=Array['from'](this['_revisions']);return _0x426e6c['reverse'](),_0x3d5396['toJSON']?_0x426e6c['map'](_0x4930d5=>_0x4930d5['toJSON']()):_0x426e6c;}['getIndex'](_0x41efe2){return this['_revisions']['getIndex'](_0x41efe2);}['getEarlierVisibleRevision'](_0x2ec4f7){const [,_0x5de7f0]=this['getRevisionsIterator'](_0x2ec4f7,{'direction':'earlier'});return _0x5de7f0;}['getLaterVisibleRevision'](_0x44e130){const [,_0x1af220]=this['getRevisionsIterator'](_0x44e130,{'direction':'later'});return _0x1af220;}['getRevisionsInDiff'](_0x1352fa){const _0x4af426=[];for(const _0x2c2fe9 of this['getRevisionsIterator'](_0x1352fa['newRevisionId']))if(_0x4af426['push'](_0x2c2fe9),_0x2c2fe9['id']===_0x1352fa['oldRevisionId'])break;return _0x4af426;}*['getRevisionsIterator'](_0x5d6e5b,{direction:_0x212603='earlier',filter:_0x3e9ae0=()=>!0x0}={}){const _0x3e8a0a='earlier'===_0x212603?0x1:-0x1;let _0x854c50=this['_revisions']['get'](_0x5d6e5b),_0x228c09=this['getIndex'](_0x854c50);for(yield _0x854c50;_0x854c50;){if(_0x228c09+=_0x3e8a0a,_0x854c50=this['getRevision'](_0x228c09),!_0x854c50)return;_0x3e9ae0(_0x854c50)&&(yield _0x854c50);}}}class V extends _0x527fd9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5942a7,'c'],[_0x49ccc4,'a'],[_0x409f3d,'e'],[_0x4d034c,'r'],[_0x20e593,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5942a7],['a',_0x49ccc4],['e',_0x409f3d],['r',_0x4d034c],['u',_0x20e593]]);async['loadRevisionData'](_0x3aeb95,_0x5c4e77){if(_0x3aeb95['diffData']||!_0x5c4e77)return;const _0xac0a39=this['editor']['config']['get']('collaboration.channelId'),_0x36ba67=await _0x5c4e77['getRevision']({'channelId':_0xac0a39,'revisionId':_0x3aeb95['id']});_0x3aeb95['diffData']=_0x36ba67['diffData'];}['getRevisionDocumentData'](_0x10b2e9){const _0x4aae16={};for(const _0x4a6378 in _0x10b2e9['diffData']){if(_0x10b2e9['diffData'][_0x4a6378]['attachChange']&&!_0x10b2e9['diffData'][_0x4a6378]['attachChange']['isAttached'])continue;const _0x23184a=this['_removeRevisionMarkers'](JSON['parse'](_0x10b2e9['diffData'][_0x4a6378]['insertions'])),_0x5bbf91=this['editor']['editing']['view']['document'],_0x3bc2c0=new _0x2a3854(_0x5bbf91,_0x23184a['map'](_0x3d6a78=>this['_getViewFromDiffObj'](_0x3d6a78,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4aae16[_0x4a6378]=this['editor']['data']['processor']['toData'](_0x3bc2c0),this['editor']['data']['processor']['useFillerType']('default');}return _0x4aae16;}['getRevisionRootsAttributes'](_0x406dba){const _0x31aca6={};for(const _0x33a023 in _0x406dba['diffData'])_0x406dba['diffData'][_0x33a023]['attachChange']&&!_0x406dba['diffData'][_0x33a023]['attachChange']['isAttached']||(_0x31aca6[_0x33a023]=_0x406dba['diffData'][_0x33a023]['attributesAfter']||{});return _0x31aca6;}['_getTypeCharForViewElement'](_0x5e124d){return this['_viewClassToTypeChar']['get'](_0x5e124d['constructor']);}['_getViewFromDiffObj'](_0x2f15f3,_0x44b356){const _0x52b9be=this['editor']['editing']['view']['document'];if('string'==typeof _0x2f15f3)return new _0x48de41(_0x52b9be,_0x2f15f3);{let _0x233b36,_0x3273ff;_0x3273ff='u'==_0x2f15f3['type']||'r'==_0x2f15f3['type']?[]:_0x2f15f3['children']['map'](_0x291fd9=>this['_getViewFromDiffObj'](_0x291fd9,_0x44b356));const _0x24bebf=this['_typeCharToViewClass']['get'](_0x2f15f3['type'])||_0x257259,_0x3bf825=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x233b36=new _0x24bebf(_0x52b9be,_0x2f15f3['name'],_0x2f15f3['attributes'],_0x3273ff),'u'==_0x2f15f3['type']&&_0x2f15f3['children'][0x0]){const _0x24db8a=_0x2f15f3['children'][0x0];if(_0x233b36['render']=function(_0x1a66db){const _0x55f5c3=_0x1a66db['createElement']('div');return _0x55f5c3['innerHTML']=_0x24db8a,_0x55f5c3['childNodes'][0x0];},_0x44b356){const _0x518064=new _0x2a3854(_0x52b9be);_0x518064['_appendChild'](_0x233b36);const _0x3f04db=Array['from'](_0x3bf825['viewChildrenToDom'](_0x518064,{'bind':!0x1})),_0x192348=_0x3bf825['domDocument']['createElement']('div');_0x192348['append'](..._0x3f04db),_0x233b36=Array['from'](_0x3bf825['domChildrenToView'](_0x192348))[0x0];}}else{if('r'==_0x2f15f3['type']&&_0x2f15f3['children'][0x0]){const _0x50dcd0=_0x2f15f3['children'][0x0];if(_0x233b36['render']=function(_0x4224d8){_0x4224d8['innerHTML']=_0x50dcd0;},_0x44b356){const _0x1c1c08=new _0x2a3854(_0x52b9be);_0x1c1c08['_appendChild'](_0x233b36);const _0x496d30=Array['from'](_0x3bf825['viewChildrenToDom'](_0x1c1c08,{'bind':!0x1})),_0x118d21=_0x3bf825['domDocument']['createElement']('div');_0x118d21['append'](..._0x496d30);const _0x42cb02=Array['from'](_0x3bf825['domChildrenToView'](_0x118d21));_0x42cb02['length']>0x1?_0x233b36['_appendChild'](_0x42cb02):_0x233b36=_0x42cb02[0x0];}}}if(_0x2f15f3['customProperties']){for(const [_0x10bc91,_0x3595e6]of _0x2f15f3['customProperties'])_0x233b36['_setCustomProperty'](_0x10bc91,_0x3595e6);}const _0x4fc294=void 0x0===_0x2f15f3['fillerOffset']?null:_0x2f15f3['fillerOffset'];return null!==_0x4fc294&&(_0x233b36['getFillerOffset']=()=>_0x4fc294),_0x233b36;}}['_makeModelFromViewString'](_0x400915){const _0x1e96bc=JSON['parse'](_0x400915),_0x5c7efb=this['editor']['editing']['view']['document'],_0x540d07=new _0x2a3854(_0x5c7efb,_0x1e96bc['map'](_0x2d5fdc=>this['_getViewFromDiffObj'](_0x2d5fdc,!0x0)));return this['editor']['data']['toModel'](_0x540d07);}['_removeRevisionMarkers'](_0x4f50cb){return(_0x4f50cb=_0x4f50cb['filter'](_0x2f8a7d=>!_0x2f8a7d['name']||'revision-start'!==_0x2f8a7d['name']&&'revision-end'!==_0x2f8a7d['name']))['forEach'](_0x1c4f20=>{'string'!=typeof _0x1c4f20&&(_0x1c4f20['children']=this['_removeRevisionMarkers'](_0x1c4f20['children']),_0x1c4f20['attributes']=_0x1c4f20['attributes']['filter'](_0x50b40f=>!_0x50b40f[0x0]['startsWith']('data-revision-')));}),_0x4f50cb;}}function g(_0x4917e7,_0x22760b,_0x22c408){const t=_0x4917e7['t'];switch(_0x22760b){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'},_0x22c408);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x22c408);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 _0x527fd9{['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[_0x386857,I,V,_0x3d46e5];}constructor(_0x2a6b48){super(_0x2a6b48),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 _0x21e870=_0x571ba5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x21e870},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 _0x157f2b=this['repository']['getRevision'](0x0),_0x29dd66=_0x157f2b&&null===_0x157f2b['creator']?_0x157f2b:null;if(this['_continueCurrentRevision']=!!_0x29dd66&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4c1059=this['_source']['getCurrentRevisionId'](),_0x31a70a=this['repository']['getRevision'](_0x4c1059);if(_0x31a70a)this['_startingVersion']=_0x31a70a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x30a907=this['_source']['history']['_operations']['find'](_0x4741e1=>!_0x4741e1['_isInit']),_0x29ee48=_0x30a907?_0x30a907['baseVersion']:this['_source']['history']['version'];_0x157f2b?(_0x157f2b['toVersion']<_0x29ee48&&_0x157f2b['_update']({'toVersion':_0x29ee48}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x29dd66['id'],this['_startingVersion']=_0x29dd66['fromVersion']):(this['_startingVersion']=_0x157f2b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x29ee48,this['_continueCurrentRevision']=!0x1);}}else _0x29dd66&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x29dd66['toVersion'],this['editor']['model']['document']['history']['version']),_0x29dd66['fromVersion']===_0x29dd66['toVersion']?(0x0!==_0x29dd66['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x29dd66['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x29dd66['id'],this['_startingVersion']=_0x29dd66['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',_0xfc4b36=>!_0xfc4b36),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6584c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x227248;for(const _0x41eb56 in _0x6584c0){const _0x3cd98c=_0x41eb56,_0x46b09a=_0x6584c0[_0x3cd98c];if('revisionHistoryLicenseKeyValid'==_0x46b09a||'revisionHistoryLicenseKeyInvalid'==_0x46b09a||'revisionHistoryLicenseKeyExpired'==_0x46b09a||'revisionHistoryLicenseKeyDomainLimit'==_0x46b09a||'revisionHistoryLicenseKeyNotAllowed'==_0x46b09a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x46b09a||'revisionHistoryLicenseKeyTrialLimit'==_0x46b09a||'revisionHistoryLicenseKeyUsageLimit'==_0x46b09a){delete _0x6584c0[_0x3cd98c],_0x227248=_0x46b09a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x227248&&_0x6584c0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x227248&&_0x6584c0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x227248&&_0x6584c0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x227248&&_0x6584c0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x227248&&_0x6584c0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x227248&&_0x6584c0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x227248&&_0x6584c0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2dcea3=this['repository']['getRevision'](0x0),_0x45ca3e=await this['getRevisionDocumentData'](_0x2dcea3),_0x22e769=await this['getRevisionRootsAttributes'](_0x2dcea3);this['_replaceEditorDataWithRevisionData'](_0x45ca3e,_0x22e769);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xe2ebc){this['_source']=_0xe2ebc;}async['update'](){const _0x57a85d=await this['_source']['getLatestVersion']();if(_0x57a85d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1edd1b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x57a85d});_0x1edd1b['authors']=_0x1edd1b['authorsIds']['map'](_0x2ba4ac=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ba4ac)),this['currentRevision']['_update'](_0x1edd1b);}}async['saveRevision'](_0x3493b0={},_0x33aac7=null){const _0x397d2c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x33aac7>this['currentRevision']['toVersion']&&(_0x33aac7=null),null===_0x33aac7&&(_0x33aac7=await this['_source']['getLatestVersion']());const _0x58b93a=this['_getFromVersion'](_0x33aac7),_0x3d1981=this['buildRevisionData']({'from':_0x58b93a,'to':_0x33aac7});if(this['currentRevision']['toVersion']<_0x33aac7){const _0x52f280=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x33aac7,'to':_0x33aac7});_0x52f280['authors']=[],_0x52f280['authorsIds']=[],_0x52f280['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x52f280,!0x0),delete _0x52f280['authors'],_0x397d2c['push'](_0x52f280);}_0x3493b0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3493b0['name']=_0x3493b0['name']||null,_0x3493b0['id']=_0x3493b0['id']||_0x571ba5(),_0x3493b0={..._0x3493b0,..._0x3d1981};const _0x8c7929=this['addRevisionData'](_0x3493b0);_0x397d2c['push'](_0x3493b0);const _0x14e00b=this['repository']['getIndex'](_0x8c7929);if(0x0!==_0x14e00b){const _0x54a669=this['repository']['getRevision'](_0x14e00b-0x1);if(_0x54a669['fromVersion']!==_0x33aac7){const _0x2f4753=this['_revisionDataBuilder']['getData'](_0x33aac7,_0x54a669['toVersion']),_0x542573={'id':_0x54a669['id'],'diffData':_0x2f4753['diffData'],'authorsIds':_0x2f4753['authorsIds'],'authors':_0x2f4753['authorsIds']['map'](_0x4322aa=>this['editor']['plugins']['get']('Users')['getUser'](_0x4322aa)),'fromVersion':_0x33aac7};_0x54a669===this['currentRevision']&&(_0x542573['createdAt']=new Date(_0x3493b0['createdAt']['getTime']()+0xa)),_0x54a669['_update'](_0x542573,!0x0),delete _0x542573['authors'],_0x397d2c['push'](_0x542573);}}if(this['adapter']){for(const _0x2c6285 of _0x397d2c)this['_bufferUpdate'](_0x2c6285['id'],_0x2c6285,!0x0);this['sendBufferedUpdates']();}return _0x8c7929;}['addRevisionData'](_0x6f7716){const _0x3551be=this['repository']['createRevision'](_0x6f7716);return this['adapter']&&_0x3551be['on']('_update',(_0x1adbca,_0x3e7eb5,_0x5400d0)=>{_0x5400d0||(this['_bufferUpdate'](_0x3e7eb5['id'],_0x3e7eb5,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3551be,this['_findInsertionIndex'](_0x3551be)),_0x3551be;}async['getRevisionDocumentData'](_0xe4c2fd){return await this['_utils']['loadRevisionData'](_0xe4c2fd,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xe4c2fd);}async['getRevisionRootsAttributes'](_0x36d713){return await this['_utils']['loadRevisionData'](_0x36d713,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x36d713);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1783eb=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xb48b60=0x0;_0xb48b60<_0x1783eb['length'];_0xb48b60++){const _0x770c7a=_0x1783eb[_0xb48b60];let _0xd2a88=!0x1;for(const _0x2d1774 of Object['keys'](_0x770c7a))void 0x0===_0x770c7a[_0x2d1774]?delete _0x770c7a[_0x2d1774]:'id'!==_0x2d1774&&(_0xd2a88=!0x0);_0xd2a88||(_0x1783eb[_0xb48b60]=null);}if(_0x1783eb=_0x1783eb['filter'](_0xde170a=>null!==_0xde170a),!_0x1783eb['length'])return;for(let _0x2e7095=0x0;_0x2e7095<_0x1783eb['length'];_0x2e7095++){const _0x53508a=_0x1783eb[_0x2e7095];void 0x0!==_0x53508a['fromVersion']&&void 0x0===_0x53508a['toVersion']&&(_0x53508a['toVersion']=this['repository']['getRevision'](_0x53508a['id'])['toVersion']),void 0x0!==_0x53508a['toVersion']&&void 0x0===_0x53508a['fromVersion']&&(_0x53508a['fromVersion']=this['repository']['getRevision'](_0x53508a['id'])['fromVersion']);}const _0x3e231a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1783eb,_0x3e231a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3bc62a=>{if(_0x3bc62a){for(const _0x22bfdb of _0x3bc62a)this['setRevisionData']({'id':_0x22bfdb['id'],'createdAt':_0x22bfdb['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4a2a31=null,from:_0x4c5bd6=null,to:_0x8b62c8=null}){_0x4c5bd6=null!==_0x4c5bd6?_0x4c5bd6:_0x4a2a31['fromVersion'],_0x8b62c8=null!==_0x8b62c8?_0x8b62c8:_0x4a2a31['toVersion'];const _0x2cd34b=this['_revisionDataBuilder']['getData'](_0x4c5bd6,_0x8b62c8),_0x2a8c9a={'diffData':_0x2cd34b['diffData'],'authorsIds':_0x2cd34b['authorsIds'],'fromVersion':_0x4c5bd6,'toVersion':_0x8b62c8};if(!_0x4a2a31||_0x8b62c8!==_0x4a2a31['toVersion']){const _0x615994=_0x8b62c8-0x1,_0x4c08e8=this['_source']['history']['getOperation'](_0x615994);_0x2a8c9a['createdAt']=_0x4c08e8&&_0x4c08e8['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4c5bd6===this['_loadedStateData']['fromVersion']){for(const _0x510bd0 of this['_loadedStateData']['authors'])_0x2a8c9a['authorsIds']['includes'](_0x510bd0['id'])||_0x2a8c9a['authorsIds']['push'](_0x510bd0['id']);}return _0x2a8c9a;}['_bufferUpdate'](_0x7e9a56,_0x27ab6f,_0x3b674d){if(this['_bufferedUpdates']['has'](_0x7e9a56)){const _0x372bf9=this['_bufferedUpdates']['get'](_0x7e9a56);_0x27ab6f=_0x3b674d?{..._0x372bf9,..._0x27ab6f}:{..._0x27ab6f,..._0x372bf9};}this['_bufferedUpdates']['set'](_0x7e9a56,_0x27ab6f);}['setRevisionData'](_0x1ec3b8){const _0x2d48dd=this['repository']['getRevision'](_0x1ec3b8['id']);if(_0x1ec3b8['createdAt']&&(_0x1ec3b8['createdAt']=new Date(_0x1ec3b8['createdAt'])),_0x1ec3b8['authorsIds']){const _0x228e4f=this['editor']['plugins']['get']('Users');_0x1ec3b8['authors']=_0x1ec3b8['authorsIds']['map'](_0x4cdfd3=>_0x228e4f['getUser'](_0x4cdfd3));}_0x2d48dd['_update'](_0x1ec3b8,!0x0);}['_createInitialRevision'](_0x18f10d){const _0x39e626=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x39e626)this['_initialRevisionId']=_0x39e626['id'];else{const _0x3d5c00=!this['editor']['model']['document']['roots']['find'](_0x1e0731=>this['editor']['model']['hasContent'](_0x1e0731)),_0x7e3dd7=this['editor']['plugins']['get']('Users')['me']['id'],_0x359e8a=g(this['editor']['locale'],_0x3d5c00?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x18f10d,'to':_0x18f10d,'id':this['_initialRevisionId'],'name':_0x359e8a,'creatorId':_0x7e3dd7});}}['_createCurrentRevision'](_0x5347f1){const _0x58adcc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x58adcc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5347f1,'to':_0x5347f1,'id':_0x58adcc,'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'](_0x49b57b,_0x199762){let _0x214b29=this['editor']['config']['get']('initialData'),_0x5e9787=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x214b29){_0x214b29={};for(const _0x47f412 of this['editor']['model']['document']['getRootNames']())_0x214b29[_0x47f412]='';}if('string'==typeof _0x214b29&&(_0x214b29={'main':_0x214b29}),void 0x0===_0x5e9787){_0x5e9787={};for(const _0x45bfaa of this['editor']['model']['document']['getRootNames']())_0x5e9787[_0x45bfaa]={};}let _0x4f7bc1=!0x1;const _0xeb1312=Object['keys'](_0x214b29),_0x1f9d52=Object['keys'](_0x49b57b);for(const _0x830ae8 of _0xeb1312){if(_0x214b29[_0x830ae8]!==_0x49b57b[_0x830ae8]&&''!==_0x214b29[_0x830ae8]['trim']()){_0x4f7bc1=!0x0;break;}if(!_0x3cd36b(_0x5e9787[_0x830ae8],_0x199762[_0x830ae8])&&Object['keys'](_0x5e9787[_0x830ae8])['length']>0x0){_0x4f7bc1=!0x0;break;}}_0x4f7bc1||(_0x4f7bc1=_0x1f9d52['some'](_0x18752f=>!this['editor']['model']['document']['getRoot'](_0x18752f))),_0x4f7bc1&&_0x39c6af('editor-initial-data-replaced-with-revision-data',{'editorData':_0x214b29,'editorRootsAttributes':_0x5e9787,'revisionData':_0x49b57b,'revisionRootsAttributes':_0x199762}),this['editor']['config']['set']('initialData',_0x49b57b),this['editor']['config']['set']('rootsAttributes',_0x199762);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x440bac=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x440bac['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2ec110){const _0x190ec8=this['repository']['getRevisions']();_0x190ec8['reverse']();let _0x2d22a7=0x0;for(;_0x2d22a7<_0x190ec8['length'];){const _0x14e7dc=_0x190ec8[_0x2d22a7];if(_0x14e7dc===this['currentRevision']){_0x2d22a7++;continue;}if(_0x14e7dc['id']===this['_initialRevisionId'])break;const _0x3bd044=_0x2ec110['toVersion']-_0x14e7dc['toVersion']||_0x2ec110['fromVersion']-_0x14e7dc['fromVersion'];if(_0x3bd044>0x0)break;if(_0x3bd044<0x0)_0x2d22a7++;else{if(!_0x2ec110['creator']&&_0x14e7dc['creator'])break;if(_0x14e7dc['creator']||!_0x2ec110['creator']){if(_0x2ec110['createdAt']>_0x14e7dc['createdAt'])break;_0x2d22a7++;}else _0x2d22a7++;}}return _0x2d22a7;}['_getFromVersion'](_0x378600){const _0x1106d7=this['repository']['getRevisions']();_0x1106d7['reverse'](),_0x1106d7['shift']();const _0x418666=_0x1106d7['find'](_0xce3534=>_0xce3534['toVersion']<=_0x378600)['toVersion'];return _0x418666<this['_startingVersion']?this['_startingVersion']:_0x418666;}['_makeRevision']({name:_0x1ea1e9,from:_0x1ccb30,to:_0x500fb1,creatorId:_0x17c560,id:_0x2e303c}){const _0x210f51=this['buildRevisionData']({'from':_0x1ccb30,'to':_0x500fb1});_0x210f51['name']=_0x1ea1e9,_0x210f51['creatorId']=_0x17c560,_0x210f51['id']=_0x2e303c;const _0x5e4b5a=this['addRevisionData'](_0x210f51);return this['adapter']&&this['_bufferUpdate'](_0x210f51['id'],_0x210f51,!0x0),_0x5e4b5a;}['_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(_0x2ca331){this['editor']=_0x2ca331,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'](_0x1645bb){this['source']=_0x1645bb;const _0x3054af=new Map(),_0x4cedda=new Map(),_0x3e5e87=this['editor']['model']['document']['roots']['map'](_0x1e858d=>_0x1e858d['rootName']);for(const _0x1a3d2c of _0x3e5e87){const _0x20d70a=this['editor']['model']['document']['getRoot'](_0x1a3d2c),_0x7fa2e7=N(_0x20d70a);_0x3054af['set'](_0x1a3d2c,_0x7fa2e7),_0x4cedda['set'](_0x1a3d2c,Object['fromEntries'](_0x20d70a['getAttributes']()));}const _0x5dfdfc=Array['from'](this['editor']['model']['markers'])['map'](_0x179739=>[_0x179739['name'],_0x179739['getRange']()]),_0x4fc635=this['source']['version'];this['_saveMetaData'](_0x4fc635,_0x3054af,_0x5dfdfc,_0x4cedda),this['_startingRevisionId']=this['_revisionId'];const _0x17fcf3=new Map(),_0x327f22=new Map();for(const _0x216880 of _0x3e5e87){const _0x5aac02=P(_0x216880);_0x17fcf3['set'](_0x216880,_0x5aac02),_0x327f22['set'](_0x216880,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x17fcf3,[],_0x327f22);}['getData'](_0x581ac7,_0xd0821b){if(this['_lastFrom']===_0x581ac7&&this['_lastTo']<=_0xd0821b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xd0821b,!0x0);else{if(!this['_savedMetaData']['has'](_0x581ac7)){const _0x1fea35=this['_getPreviousFrom'](_0x581ac7);this['_calculateMetaData'](_0x1fea35,_0x581ac7,!0x1);}this['_calculateMetaData'](_0x581ac7,_0xd0821b,!0x0);}return this['_lastFrom']=_0x581ac7,this['_lastTo']=_0xd0821b,this['_getState']();}['loadState'](_0x2e9b86){const _0x2da9f3=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2e9b86['fromVersion'],this['_lastTo']=_0x2e9b86['toVersion'];for(const _0x3a7156 in _0x2e9b86['diffData']){const _0xcaf1b6=_0x2e9b86['diffData'][_0x3a7156]['attachChange'],_0xb57cd4=_0x503699(_0x2e9b86['diffData'][_0x3a7156]['attributesBefore'])||{},_0x12688e=_0x2da9f3['_makeModelFromViewString'](_0x2e9b86['diffData'][_0x3a7156]['deletions']);_0x12688e['rootName']=_0x3a7156,_0x12688e['_isAttached']=!_0xcaf1b6||!_0xcaf1b6['isAttached'],_0x12688e['isAttached']=()=>_0x12688e['_isAttached'],this['_baseRoots']['set'](_0x3a7156,_0x12688e),this['_baseRootsAttributes']['set'](_0x3a7156,_0xb57cd4),_0xcaf1b6&&this['_touchedRoots']['set'](_0x3a7156,_0xcaf1b6);const _0x439802=this['_makeIdsRoot'](_0x12688e);this['_baseIdsRoots']['set'](_0x3a7156,_0x439802);for(const [_0x340f26,_0x66d8ad]of _0x12688e['markers']){if(!_0x340f26['startsWith']('revision:'))continue;const _0x592163=_0x340f26['split'](':')[0x2];for(const _0x241227 of _0x66d8ad['getWalker']({'singleCharacters':!0x0})){const _0x5e3e01=this['_getVidAttributeName'](_0x241227),_0x270b01='elementEnd'==_0x241227['type']?_0x241227['previousPosition']['path']['slice'](0x0,-0x1):_0x241227['previousPosition']['path'],_0x16c09a=_0x439802['getNodeByPath'](_0x270b01)['getAttribute'](_0x5e3e01);this['_touched']['set'](_0x16c09a,{'userId':_0x592163});}}}this['_startingRevisionId']=this['_revisionId'];const _0x48a19a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x29c533=>!this['_touched']['has'](_0x29c533));let _0x140049=0x0;const _0x5cf1b0=new Map();for(const _0x156ef8 in _0x2e9b86['diffData']){const _0x2f3103=_0x2e9b86['diffData'][_0x156ef8]['attachChange'],_0x983bc4=_0x503699(_0x2e9b86['diffData'][_0x156ef8]['attributesAfter'])||{},_0x57bb25=_0x2da9f3['_makeModelFromViewString'](_0x2e9b86['diffData'][_0x156ef8]['insertions']);_0x57bb25['rootName']=_0x156ef8,_0x57bb25['_isAttached']=!_0x2f3103||_0x2f3103['isAttached'],_0x57bb25['isAttached']=()=>_0x57bb25['_isAttached'],this['_diffRoots']['set'](_0x156ef8,_0x57bb25),this['_diffRootsAttributes']['set'](_0x156ef8,_0x983bc4);const _0x247f0d=this['_makeIdsRoot'](_0x57bb25,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x156ef8,_0x247f0d),_0x5cf1b0['set'](_0x156ef8,_0x57bb25['isAttached']()?_0x983bc4:{});for(const [_0x44f326,_0x52d035]of _0x57bb25['markers']){if(!_0x44f326['startsWith']('revision:'))continue;const _0x5b0cbe=_0x44f326['split'](':')[0x2];for(const _0x545058 of _0x52d035['getWalker']({'singleCharacters':!0x0})){const _0x430116=this['_getVidAttributeName'](_0x545058),_0x286cf9=this['_revisionId']++,_0x37b0fb='elementEnd'==_0x545058['type']?_0x545058['previousPosition']['path']['slice'](0x0,-0x1):_0x545058['previousPosition']['path'];_0x247f0d['getNodeByPath'](_0x37b0fb)['_setAttribute'](_0x430116,_0x286cf9),this['_touched']['set'](_0x286cf9,{'userId':_0x5b0cbe});}}for(const _0x3d16d9 of this['editor']['model']['createRangeIn'](_0x57bb25)['getWalker']({'singleCharacters':!0x0})){const _0x4004ee=this['_getVidAttributeName'](_0x3d16d9),_0x2fae26='elementEnd'==_0x3d16d9['type']?_0x3d16d9['previousPosition']['path']['slice'](0x0,-0x1):_0x3d16d9['previousPosition']['path'],_0x234cf1=_0x247f0d['getNodeByPath'](_0x2fae26);_0x234cf1['getAttribute'](_0x4004ee)>0x0||_0x234cf1['_setAttribute'](_0x4004ee,_0x48a19a[_0x140049++]);}for(const [_0x28d46b,_0x5a4b01]of _0x57bb25['markers'])_0x28d46b['startsWith']('revision:')||this['_markers']['set'](_0x28d46b,_0x5a4b01);}const _0x1591a1=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1591a1),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1591a1,0x1));const _0x57cd79=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x57cd79),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x57cd79,0x1));const _0x10c2cf=Array['from'](this['_diffRoots'])['map'](([_0x3ffd21,_0x4c3ef6])=>[_0x3ffd21,N(_0x4c3ef6)]);this['_saveMetaData'](this['_lastTo'],_0x10c2cf,this['_markers'],_0x5cf1b0);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x482aa0,_0x3a8ff9,_0x1eeed1,_0x5bdc42){const _0x3cad58=new Map(_0x3a8ff9),_0x4f2fc0=new Map(_0x503699(_0x5bdc42)),_0x482106=new Map();for(const [_0x3ecc23,_0x57d99f]of _0x1eeed1)_0x482106['set'](_0x3ecc23,{'start':_0x57d99f['start']['clone'](),'end':_0x57d99f['end']['clone'](),'rootName':_0x57d99f['root']['rootName']});this['_savedMetaData']['set'](_0x482aa0,{'roots':_0x3cad58,'markers':_0x482106,'rootsAttributes':_0x4f2fc0});}['_removeMetaData'](_0x372795){this['_savedMetaData']['delete'](_0x372795);}['_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'](_0x6e0fd0,_0x493ebd=null){let _0xd2cd14=null;_0x6e0fd0['is']('documentFragment')||(_0xd2cd14=new ut(_0x6e0fd0['name'],{'vid_start':null===_0x493ebd?this['_revisionId']++:_0x493ebd++}));const _0x2f5e9a=[];for(const _0x4dab57 of _0x6e0fd0['getChildren']())if(_0x4dab57['is']('element')){_0x2f5e9a['push'](this['_makeIdsRoot'](_0x4dab57,_0x493ebd));const _0x4512d6=_0x2f5e9a[_0x2f5e9a['length']-0x1];null!==_0x493ebd&&(_0x493ebd=_0x4512d6['is']('element','$text')?_0x4512d6['getAttribute']('vid')+0x1:_0x4512d6['getAttribute']('vid_end')+0x1);}else{for(let _0x24327f=0x0;_0x24327f<_0x4dab57['offsetSize'];_0x24327f++)_0x2f5e9a['push'](new ut('$text',{'vid':null===_0x493ebd?this['_revisionId']++:_0x493ebd++}));}if(_0x6e0fd0['is']('documentFragment')){const _0x413220=P(_0x6e0fd0['rootName']);return _0x413220['_insertChild'](0x0,_0x2f5e9a),_0x413220;}return _0xd2cd14['_setAttribute']('vid_end',null===_0x493ebd?this['_revisionId']++:_0x493ebd++),_0xd2cd14['_insertChild'](0x0,_0x2f5e9a),_0xd2cd14;}['_calculateMetaData'](_0x45b379,_0x14af63,_0x9e84ce){this['_reset']();const {roots:_0xf328f0,markers:_0x4e681a,rootsAttributes:_0x4b3531}=this['_savedMetaData']['get'](_0x45b379);this['_baseRoots']=new Map(_0xf328f0),this['_baseRootsAttributes']=new Map(_0x503699(_0x4b3531));for(const [_0x17d4ac,_0x4a019c]of this['_baseRoots'])if('$graveyard'!==_0x17d4ac&&(this['_diffRoots']['set'](_0x17d4ac,N(_0x4a019c)),this['_diffRootsAttributes']=new Map(_0x503699(_0x4b3531)),_0x9e84ce)){const _0x5507a8=this['_revisionId'];this['_idsRoots']['set'](_0x17d4ac,this['_makeIdsRoot'](_0x4a019c)),this['_baseIdsRoots']['set'](_0x17d4ac,this['_makeIdsRoot'](_0x4a019c,_0x5507a8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x9e84ce&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3d68b5,_0x3fb929]of _0x4e681a){const _0x129126=this['_baseRoots']['get'](_0x3fb929['rootName']),_0x29327e=this['_diffRoots']['get'](_0x3fb929['rootName']),_0x1ff541=new lt(this['_fixPosition'](_0x3fb929['start'],_0x129126),this['_fixPosition'](_0x3fb929['end'],_0x129126)),_0x3a6f2a=this['_fixRange'](_0x1ff541,_0x29327e);_0x129126['markers']['set'](_0x3d68b5,_0x1ff541),this['_markers']['set'](_0x3d68b5,_0x3a6f2a);}this['_applyOperations'](_0x45b379,_0x14af63,_0x9e84ce);}['_applyOperations'](_0x2b4f0a,_0x1e0beb,_0x2ff5be){for(const _0x4ec24c of this['source']['getOperations'](_0x2b4f0a,_0x1e0beb))this['_handleOperation'](_0x4ec24c,_0x2ff5be);for(const _0x2019ab of this['_diffRoots']['values']())_0x2019ab['markers']['clear']();for(const [_0x479fc7,_0x1de13f]of this['_markers']){this['_diffRoots']['get'](_0x1de13f['root']['rootName'])['markers']['set'](_0x479fc7,_0x1de13f['clone']());}const _0x38f8a7=new Map(),_0x14dd33=new Map();for(const [_0xa85956,_0x76851e]of this['_diffRoots'])_0x38f8a7['set'](_0xa85956,N(_0x76851e)),_0x14dd33['set'](_0xa85956,this['_diffRootsAttributes']['get'](_0xa85956));this['_saveMetaData'](_0x1e0beb,_0x38f8a7,this['_markers'],_0x14dd33);}['_getPreviousFrom'](_0xc13d9b){const _0x59df54=Array['from'](this['_savedMetaData']['keys']());_0x59df54['sort']((_0x3090ed,_0x3109c7)=>_0x3090ed-_0x3109c7),_0x59df54['reverse']();for(const _0x5493a3 of _0x59df54)if(_0x5493a3<_0xc13d9b)return _0x5493a3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5d0c8a,_0x582693){const _0x56015a=Array['from'](_0x582693['markers'])['map'](([_0x5d87de,_0x317851])=>[_0x5d87de,this['_fixRange'](_0x317851,_0x5d0c8a)]);_0x5d0c8a['markers']=new Map(_0x56015a);}['_transformMarkers'](_0x1f997f){for(const _0xc87d57 of this['_markers']['values']()){const _0x1c9e12=_0xc87d57['getTransformedByOperation'](_0x1f997f),_0x21c3b2=lt['_createFromRanges'](_0x1c9e12);_0xc87d57['start']=_0x21c3b2['start'],_0xc87d57['end']=_0x21c3b2['end'];}}['_handleOperation'](_0x3382ef,_0x4ab8e9){if('addRoot'!=_0x3382ef['type']&&'detachRoot'!=_0x3382ef['type']){if('insert'==_0x3382ef['type']){const _0x1464d2=_0x3382ef['position']['root']['rootName'];this['_diffRoots']['has'](_0x1464d2)||(this['_diffRoots']['set'](_0x1464d2,P(_0x1464d2,!0x0)),this['_diffRootsAttributes']['set'](_0x1464d2,{}),_0x4ab8e9&&this['_idsRoots']['set'](_0x1464d2,P(_0x1464d2,!0x0)));}else{if('addRootAttribute'==_0x3382ef['type']||'removeRootAttribute'==_0x3382ef['type']||'changeRootAttribute'==_0x3382ef['type'])return void this['_handleRootAttributeOperation'](_0x3382ef);'marker'==_0x3382ef['type']&&this['_handleMarkerOperation'](_0x3382ef);}if('marker'!==_0x3382ef['type']){const _0x4f6a26=this['_cloneOperation'](_0x3382ef,this['_diffRoots']);_0x4f6a26['_execute'](),this['_transformMarkers'](_0x4f6a26);}if(_0x4ab8e9)switch(_0x3382ef['type']){case'insert':this['_handleInsertOperation'](_0x3382ef);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3382ef);break;case'merge':this['_handleMergeOperation'](_0x3382ef);break;case'split':this['_handleSplitOperation'](_0x3382ef);}}else this['_handleRootOperation'](_0x3382ef,_0x4ab8e9);}['_cloneOperation'](_0x117202,_0x40b1c6){const _0x5c1d89=_0x117202['clone']();return _0x5c1d89['_authorId']=_0x117202['_authorId'],this['_fixOperation'](_0x5c1d89,_0x40b1c6),_0x5c1d89;}['_getBaseVids'](_0x3d9dd9){return _0x3d9dd9['map'](_0x7a6b3=>{const _0x34b29d=this['_getVidAttributeName'](_0x7a6b3);return Number(_0x7a6b3['item']['getAttribute'](_0x34b29d));});}['_generateTape'](_0x4b04eb,_0x22b0c0){if(_0x4b04eb['is']('element','$text'))_0x22b0c0['push']({'item':_0x4b04eb,'type':'text'});else{_0x4b04eb['is']('element')&&_0x22b0c0['push']({'item':_0x4b04eb,'type':'elementStart'});for(const _0x3ed753 of _0x4b04eb['getChildren']())this['_generateTape'](_0x3ed753,_0x22b0c0);_0x4b04eb['is']('element')&&_0x22b0c0['push']({'item':_0x4b04eb,'type':'elementEnd'});}return _0x22b0c0;}['_getState'](){const _0x3e9ac0=new Map(this['_touched']),_0x5511bb=new Map(_0x3e9ac0),_0x14fe7e=new Map(),_0x402779={'insertions':{},'deletions':{}},_0x3f84ab={'insertions':{},'deletions':{}},_0x2c671e=new Map(),_0x21c775=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x21c775['delete']('$graveyard');for(const _0x19d4c6 of _0x21c775){const _0x263028=this['_diffRoots']['get'](_0x19d4c6)||P(_0x19d4c6,!0x1),_0x363621=this['_baseRoots']['get'](_0x19d4c6)||P(_0x19d4c6,!0x1);_0x263028['isAttached']()||_0x363621['isAttached']()?(_0x402779['insertions'][_0x19d4c6]=N(_0x263028),_0x402779['deletions'][_0x19d4c6]=N(_0x363621),this['_copyMarkers'](_0x402779['deletions'][_0x19d4c6],_0x363621),this['_copyMarkers'](_0x402779['insertions'][_0x19d4c6],_0x263028),_0x3f84ab['insertions'][_0x19d4c6]=this['_generateTape'](this['_idsRoots']['get'](_0x19d4c6),[]),_0x3f84ab['deletions'][_0x19d4c6]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x19d4c6)||P(_0x19d4c6,!0x1),[])):_0x21c775['delete'](_0x19d4c6);}for(const _0x1d93f2 of _0x21c775){const _0x2471e2=_0x3f84ab['insertions'][_0x1d93f2];for(const _0x5460f6 of _0x2471e2){const _0x551665=this['_getVidAttributeName'](_0x5460f6),_0x36edba=_0x5460f6['item']['getAttribute'](_0x551665);_0x5511bb['delete'](_0x36edba),_0x36edba>=this['_startingRevisionId']&&_0x14fe7e['set'](_0x36edba,_0x3e9ac0['get'](_0x36edba));}}for(const _0x4ac217 of _0x21c775){const _0x921fd2=_0x3f84ab['insertions'][_0x4ac217],_0x385e83=this['_getBaseVids'](_0x3f84ab['deletions'][_0x4ac217]);let _0xab8508=0x0;for(const _0x5e5e00 of _0x921fd2){const _0x461518=this['_getVidAttributeName'](_0x5e5e00),_0x3d1696=_0x5e5e00['item']['getAttribute'](_0x461518);if(!_0x14fe7e['has'](_0x3d1696)&&!_0x2c671e['has'](_0x3d1696)){if(_0x5511bb['has'](_0x3d1696))_0xab8508++;else{if(_0x3d1696!=_0x385e83[_0xab8508]){const _0x2f6e47=_0x3e9ac0['get'](_0x3d1696)||_0x3e9ac0['get'](_0x385e83[_0xab8508]);for(;_0x3d1696!=_0x385e83[_0xab8508];)_0x5511bb['has'](_0x385e83[_0xab8508])||(_0x2c671e['set'](_0x385e83[_0xab8508],_0x2f6e47),_0x3e9ac0['set'](_0x385e83[_0xab8508],_0x2f6e47)),_0xab8508++;}_0xab8508++;}}}}for(const _0x38a27c of _0x21c775){const _0x400157=_0x3f84ab['insertions'][_0x38a27c];for(const _0x183a6f of _0x400157){const _0x46dcec=this['_getVidAttributeName'](_0x183a6f),_0x19268a=_0x183a6f['item']['getAttribute'](_0x46dcec);if(_0x2c671e['has'](_0x19268a)){const _0xcdbae3=_0x2c671e['get'](_0x19268a);_0x5511bb['has'](_0x19268a)||_0x5511bb['set'](_0x19268a,{..._0xcdbae3}),_0x14fe7e['set'](_0x19268a,{..._0xcdbae3});}}}for(const _0x2fee6b of _0x5511bb['keys']())_0x2fee6b>=this['_startingRevisionId']&&_0x5511bb['delete'](_0x2fee6b);const _0x23aa80=new Map();for(const _0x2b3c80 of _0x21c775){let _0x2ec329=_0x3f84ab['insertions'][_0x2b3c80];for(const _0x158b43 of _0x2ec329)if(_0x158b43['item']['is']('element','tableCell')){const _0x258223=this['_getVidAttributeName'](_0x158b43),_0x1a3248=_0x158b43['item']['getAttribute'](_0x258223);if(_0x14fe7e['has'](_0x1a3248)){const _0x3b67d3=_0x158b43['item']['parent']['parent']['getAttribute']('vid_start'),_0x3447b4=_0x23aa80['get'](_0x3b67d3)||new Set();_0x3447b4['add'](_0x14fe7e['get'](_0x1a3248)['userId']),_0x23aa80['set'](_0x3b67d3,_0x3447b4);}}_0x2ec329=_0x3f84ab['deletions'][_0x2b3c80];for(const _0x1b9585 of _0x2ec329)if(_0x1b9585['item']['is']('element','tableCell')){const _0x1b1363=this['_getVidAttributeName'](_0x1b9585),_0x113cad=_0x1b9585['item']['getAttribute'](_0x1b1363);if(_0x5511bb['has'](_0x113cad)){const _0x51be68=_0x1b9585['item']['parent']['parent']['getAttribute']('vid_start'),_0x4aec15=_0x23aa80['get'](_0x51be68)||new Set();_0x4aec15['add'](_0x5511bb['get'](_0x113cad)['userId']),_0x23aa80['set'](_0x51be68,_0x4aec15);}}for(const _0xe425f7 of _0x23aa80['keys']())(_0x14fe7e['has'](_0xe425f7)||_0x5511bb['has'](_0xe425f7))&&_0x23aa80['delete'](_0xe425f7);}for(const _0x58c92f of _0x21c775){const _0x5a9d10=_0x3f84ab['insertions'][_0x58c92f];let _0x319528=null,_0x3f7675=null;for(const _0x104fb6 of _0x5a9d10){const _0x10a90f=this['_getVidAttributeName'](_0x104fb6),_0x641baf=_0x104fb6['item']['getAttribute'](_0x10a90f),_0x1a2008=_0x23aa80['get'](_0x641baf);_0x1a2008&&'elementStart'==_0x104fb6['type']&&(_0x319528=Array['from'](_0x1a2008)[0x0],_0x3f7675=_0x104fb6['item']['getAttribute']('vid_end')),_0x319528&&(_0x5511bb['set'](_0x641baf,{'userId':_0x319528}),_0x14fe7e['set'](_0x641baf,{'userId':_0x319528})),_0x641baf==_0x3f7675&&(_0x319528=null,_0x3f7675=null);}}const _0x348b54={},_0x3a92bd=new Set();for(const _0x4e1ac1 of _0x21c775){const _0x466893=_0x402779['deletions'][_0x4e1ac1],_0x5d9327=_0x402779['insertions'][_0x4e1ac1];for(const {userId:_0x4132e9}of this['_touchedMarkers']['values']())null!==_0x4132e9&&_0x3a92bd['add'](_0x4132e9);for(const {userId:_0x5263d4}of this['_touchedRoots']['values']())null!==_0x5263d4&&_0x3a92bd['add'](_0x5263d4);this['_markChanges'](_0x5d9327,_0x3f84ab['insertions'][_0x4e1ac1],_0x14fe7e,'insertion',_0x3a92bd),this['_markChanges'](_0x466893,_0x3f84ab['deletions'][_0x4e1ac1],_0x5511bb,'deletion',_0x3a92bd),_0x348b54[_0x4e1ac1]={'insertions':this['_prepareViewToSave'](_0x5d9327),'deletions':this['_prepareViewToSave'](_0x466893),'attachChange':this['_touchedRoots']['get'](_0x4e1ac1)||null,'attributesBefore':_0x503699(this['_baseRootsAttributes']['get'](_0x4e1ac1))||{},'attributesAfter':_0x503699(this['_diffRootsAttributes']['get'](_0x4e1ac1))};}return{'diffData':_0x348b54,'authorsIds':Array['from'](_0x3a92bd)};}['_processRootBeforeSave'](_0x257207){for(const [,_0x4e6c0a]of _0x257207['markers']){const _0x5e0656=_0x4e6c0a['start']['getAncestors']()['filter'](_0x162967=>'tableCell'==_0x162967['name']);for(const _0x28ceac of _0x5e0656)0x1==_0x28ceac['childCount']&&_0x28ceac['getChild'](0x0)['is']('element','paragraph')&&_0x28ceac['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x159fb7){this['_processRootBeforeSave'](_0x159fb7);const _0x37c62d=this['editor']['data']['toView'](_0x159fb7,{}),_0xfbad4f=Array['from'](_0x37c62d['getChildren']())['map'](_0x515960=>this['_getViewJson'](_0x515960));return JSON['stringify'](_0xfbad4f);}['_getViewJson'](_0xec7e43){if(_0xec7e43['is']('$text'))return _0xec7e43['data'];{const _0x15edab=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2ecf0c=_0xec7e43,_0x364721=this['editor']['data']['htmlProcessor']['domConverter'],_0x1ef8f8={'type':_0x15edab['_getTypeCharForViewElement'](_0x2ecf0c),'name':_0x2ecf0c['name'],'attributes':Array['from'](_0x2ecf0c['getAttributes']()),'children':Array['from'](_0x2ecf0c['getChildren']())['map'](_0x4d90d8=>this['_getViewJson'](_0x4d90d8))};if(_0xec7e43['is']('uiElement')&&'$comment'!=_0xec7e43['name']){const _0x2469ec=_0xec7e43['render'](_0x364721['domDocument'],_0x364721);_0x1ef8f8['children']['push'](_0x2469ec['outerHTML']);}else{if(_0xec7e43['is']('rawElement')){const _0x4d05ea=_0x364721['domDocument']['createElement'](_0x2ecf0c['name']);_0xec7e43['render'](_0x4d05ea,_0x364721),_0x1ef8f8['children']['push'](_0x4d05ea['innerHTML']);}}const _0x42d960=Array['from'](_0x2ecf0c['getCustomProperties']());_0x42d960['length']>0x0&&(_0x1ef8f8['customProperties']=_0x42d960);const _0x1ce9df=_0x2ecf0c['getFillerOffset']();return null!==_0x1ce9df&&(_0x1ef8f8['fillerOffset']=_0x1ce9df),_0x1ef8f8;}}['_markChanges'](_0x4f2b13,_0x2b1de4,_0x5c468a,_0x16c94c,_0x2bb321){let _0x52de19=null,_0x170b96=null,_0x2df86d=0x0;const _0x28bb43=this['editor']['model'];for(let _0x4290c2=0x0;_0x4290c2<_0x2b1de4['length'];_0x4290c2++){const _0x13cd8b=this['_getVidAttributeName'](_0x2b1de4[_0x4290c2]),_0x1ea9a4=_0x2b1de4[_0x4290c2]['item']['getAttribute'](_0x13cd8b),_0x290892=_0x5c468a['get'](_0x1ea9a4),_0xc52387=_0x4290c2==_0x2b1de4['length']-0x1;(!_0x52de19&&_0x290892&&(_0x52de19=_0x290892,_0x170b96=_0x2b1de4[_0x4290c2]),_0x52de19&&(!_0x290892||_0x290892['userId']!=_0x52de19['userId']))&&(_0x2120f4(_0x290892,F(_0x170b96,_0x4f2b13,_0x28bb43),F(_0x2b1de4[_0x4290c2],_0x4f2b13,_0x28bb43)),_0x52de19=_0x290892||null,_0x170b96=_0x290892?_0x2b1de4[_0x4290c2]:null),_0x52de19&&_0xc52387&&_0x2120f4(_0x290892,F(_0x170b96,_0x4f2b13,_0x28bb43),B(_0x2b1de4[_0x4290c2],_0x4f2b13,_0x28bb43));}function _0x2120f4(_0x46d2cd,_0x2593ce,_0x19ee85){const _0x495a4f=_0x52de19['userId'],_0x303314='revision:'+_0x16c94c+':'+_0x495a4f+':'+_0x2df86d++,_0xded9e8=_0x28bb43['createRange'](_0x2593ce,_0x19ee85);_0x4f2b13['markers']['set'](_0x303314,_0xded9e8),null!==_0x495a4f&&_0x2bb321['add'](_0x495a4f);}}['_getVidAttributeName'](_0x3b914f){switch(_0x3b914f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x287c91,_0x2832bb){_0x287c91['baseVersion']=null;for(const _0x33fb5e in _0x287c91){const _0x1e27c6=_0x287c91[_0x33fb5e];if(_0x1e27c6 instanceof ft){const _0x3e4fb1=_0x2832bb['get'](_0x1e27c6['root']['rootName']);_0x287c91[_0x33fb5e]=this['_fixPosition'](_0x1e27c6,_0x3e4fb1);}if(_0x1e27c6 instanceof lt){const _0x4e54cf=_0x2832bb['get'](_0x1e27c6['root']['rootName']);_0x287c91[_0x33fb5e]=this['_fixRange'](_0x1e27c6,_0x4e54cf);}'root'===_0x33fb5e&&(_0x287c91['root']=_0x2832bb['get'](_0x287c91['root']['rootName']));}}['_fixRange'](_0x203400,_0x294a60){return this['editor']['model']['createRange'](this['_fixPosition'](_0x203400['start'],_0x294a60),this['_fixPosition'](_0x203400['end'],_0x294a60));}['_fixPosition'](_0x302a24,_0x56c3f1){return this['editor']['model']['createPositionFromPath'](_0x56c3f1,_0x302a24['path'],_0x302a24['stickiness']);}['_handleInsertOperation'](_0x786b99){const _0x3dfbd4=this['_idsRoots']['get'](_0x786b99['position']['root']['rootName']),_0x1b1b7e=this['_fixPosition'](_0x786b99['position'],_0x3dfbd4),_0x117ee7=null===_0x786b99['_authorId']?null:_0x786b99['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35eac2=_0x1b1b7e['parent'],_0x27b3bd=this['_revisionId'],_0x279afa=[];for(const _0x478db8 of _0x786b99['nodes'])if(_0x478db8['is']('element'))_0x279afa['push'](this['_makeIdsRoot'](_0x478db8));else{for(let _0x3b5e54=0x0;_0x3b5e54<_0x478db8['offsetSize'];_0x3b5e54++)_0x279afa['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x53bb97=this['_revisionId'];for(let _0xcfdeed=_0x27b3bd;_0xcfdeed<_0x53bb97;_0xcfdeed++)this['_touched']['set'](_0xcfdeed,{'userId':_0x117ee7});_0x35eac2['_insertChild'](_0x1b1b7e['offset'],_0x279afa);}['_handleMoveOperation'](_0x1da144){(_0x1da144=this['_cloneOperation'](_0x1da144,this['_idsRoots']))['_execute']();const _0x5b4921=null===_0x1da144['_authorId']?null:_0x1da144['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bddf2=_0x1da144['getMovedRangeStart'](),_0x3bc832=_0x2bddf2['parent'],_0x2c31bb=_0x2bddf2['offset'];!function _0x19dff1(_0x5cc820,_0x212a2d,_0x4f01db,_0x1f2d12){for(let _0x1a2814=_0x4f01db;_0x1a2814<_0x1f2d12;_0x1a2814++){const _0x31aab2=_0x212a2d['getChild'](_0x1a2814);_0x31aab2['is']('element','$text')?_0x5cc820['set'](_0x31aab2['getAttribute']('vid'),{'userId':_0x5b4921}):(_0x5cc820['set'](_0x31aab2['getAttribute']('vid_start'),{'userId':_0x5b4921}),_0x19dff1(_0x5cc820,_0x31aab2,0x0,_0x31aab2['childCount']),_0x5cc820['set'](_0x31aab2['getAttribute']('vid_end'),{'userId':_0x5b4921}));}}(this['_touched'],_0x3bc832,_0x2c31bb,_0x2c31bb+_0x1da144['howMany']);}['_handleMergeOperation'](_0x55ccc3){const _0x51a1a0=null===(_0x55ccc3=this['_cloneOperation'](_0x55ccc3,this['_idsRoots']))['_authorId']?null:_0x55ccc3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c30c9=_0x55ccc3['targetPosition']['parent'],_0xb82a6e=_0x55ccc3['sourcePosition']['parent'],_0x4583b9=_0x4c30c9['getAttribute']('vid_end'),_0x11e8ff=_0xb82a6e['getAttribute']('vid_start');_0x4c30c9['_setAttribute']('vid_end',_0xb82a6e['getAttribute']('vid_end')),_0xb82a6e['_setAttribute']('vid_end',_0x4583b9),this['_touched']['set'](_0x11e8ff,{'userId':_0x51a1a0}),this['_touched']['set'](_0x4583b9,{'userId':_0x51a1a0}),_0x55ccc3['_execute']();}['_handleSplitOperation'](_0x26b862){const _0x5ca6ec=null===(_0x26b862=this['_cloneOperation'](_0x26b862,this['_idsRoots']))['_authorId']?null:_0x26b862['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x282d39=_0x26b862['graveyardPosition'],_0x221e14=_0x26b862['splitPosition']['parent'];_0x26b862['_execute']();const _0x41e470=_0x221e14['getAttribute']('vid_end'),_0x283e03=_0x26b862['insertionPosition']['nodeAfter'];if(_0x282d39){const _0x62956a=_0x283e03['getAttribute']('vid_end'),_0x8dcce5=_0x221e14['getAttribute']('vid_end');_0x221e14['_setAttribute']('vid_end',_0x62956a),_0x283e03['_setAttribute']('vid_end',_0x8dcce5),this['_touched']['set'](_0x221e14['getAttribute']('vid_end'),{'userId':_0x5ca6ec}),this['_touched']['set'](_0x283e03['getAttribute']('vid_start'),{'userId':_0x5ca6ec});}else{const _0x4c1862=this['_revisionId']++,_0x50299f=this['_revisionId']++;_0x221e14['_setAttribute']('vid_end',_0x4c1862),_0x283e03['_setAttribute']('vid_start',_0x50299f),_0x283e03['_setAttribute']('vid_end',_0x41e470),this['_touched']['set'](_0x4c1862,{'userId':_0x5ca6ec}),this['_touched']['set'](_0x50299f,{'userId':_0x5ca6ec});}}['_handleMarkerOperation'](_0x51c16c){if(!_0x51c16c['affectsData'])return;const _0x55fb07=(_0x51c16c=this['_cloneOperation'](_0x51c16c,this['_diffRoots']))['oldRange']?_0x51c16c['oldRange']['root']:null,_0x5212a7=_0x51c16c['newRange']?_0x51c16c['newRange']['root']:null;_0x55fb07&&this['_markers']['delete'](_0x51c16c['name']),_0x5212a7&&this['_markers']['set'](_0x51c16c['name'],_0x51c16c['newRange']['clone']());const _0x15f448=null===_0x51c16c['_authorId']?null:_0x51c16c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x442e0a=_0x51c16c['name'];if(!this['_touchedMarkers']['has'](_0x442e0a))return void this['_touchedMarkers']['set'](_0x442e0a,{'range':_0x51c16c['oldRange'],'userId':_0x15f448});const _0x4483fb=this['_touchedMarkers']['get'](_0x442e0a),_0x13f00a=_0x4483fb['range'],_0x1214cf=_0x51c16c['newRange'];null==_0x13f00a&&null==_0x1214cf||_0x13f00a&&_0x1214cf&&_0x13f00a['isEqual'](_0x1214cf)?this['_touchedMarkers']['delete'](_0x51c16c['name']):_0x4483fb['userId']=_0x15f448;}['_handleRootOperation'](_0x525dd0,_0x1b2359){this['_diffRoots']['has'](_0x525dd0['rootName'])?this['_diffRoots']['get'](_0x525dd0['rootName'])['_isAttached']=_0x525dd0['isAdd']:(this['_diffRoots']['set'](_0x525dd0['rootName'],P(_0x525dd0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x525dd0['rootName'],{}),_0x1b2359&&this['_idsRoots']['set'](_0x525dd0['rootName'],P(_0x525dd0['rootName'],!0x0)));const _0x1c8d48=null===_0x525dd0['_authorId']?null:_0x525dd0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f3741=this['_touchedRoots']['get'](_0x525dd0['rootName']);_0x1f3741&&_0x1f3741['userId']===_0x1c8d48?this['_touchedRoots']['delete'](_0x525dd0['rootName']):this['_touchedRoots']['set'](_0x525dd0['rootName'],{'userId':_0x1c8d48,'isAttached':_0x525dd0['isAdd']});}['_handleRootAttributeOperation'](_0x207f05){const _0x1cd77a=this['_diffRootsAttributes']['get'](_0x207f05['root']['rootName']);null===_0x207f05['newValue']?delete _0x1cd77a[_0x207f05['key']]:_0x1cd77a[_0x207f05['key']]=_0x207f05['newValue'];}}function N(_0x26dcde){const _0x43fd28=P(_0x26dcde['rootName'],_0x26dcde['isAttached']());for(const _0xef7cc1 of _0x26dcde['getChildren']()){const _0x9ceddb=_0xef7cc1['_clone'](!0x0);_0x43fd28['_appendChild'](_0x9ceddb);}return _0x43fd28;}function P(_0x410093,_0x45d856=!0x0){const _0x521664=new vt();return _0x521664['rootName']=_0x410093,_0x521664['_isAttached']=_0x45d856,_0x521664['isAttached']=()=>_0x521664['_isAttached'],_0x521664;}function F(_0x2ca3a6,_0x21d78c,_0x16871a){const _0x57689a='elementEnd'==_0x2ca3a6['type']?_0x16871a['createPositionAt'](_0x2ca3a6['item'],'end'):_0x16871a['createPositionBefore'](_0x2ca3a6['item']);return _0x16871a['createPositionFromPath'](_0x21d78c,_0x57689a['path'],_0x57689a['stickiness']);}function B(_0xea1aaf,_0x529d1f,_0x58e4f8){const _0x1a7187='elementStart'==_0xea1aaf['type']?_0x58e4f8['createPositionAt'](_0xea1aaf['item'],0x0):_0x58e4f8['createPositionAfter'](_0xea1aaf['item']);return _0x58e4f8['createPositionFromPath'](_0x529d1f,_0x1a7187['path'],_0x1a7187['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1ca0c2,_0x4541e5){super(_0x1ca0c2),this['focusTracker']=new _0x338ab8(),this['keystrokes']=new _0x143d1e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4541e5),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x149bf4(this);}['render'](){super['render'](),_0x451b44({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5a9473=_0x292e1b=>_0x292e1b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5a9473),this['keystrokes']['set']('arrowleft',_0x5a9473),this['keystrokes']['set']('arrowup',_0x5a9473),this['keystrokes']['set']('arrowdown',_0x5a9473);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x567d7a){this['revisionNameInputView']['fieldView']['element']['value']=_0x567d7a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x34c37a){const _0x8213db=new _0x4a54d4(this['locale'],_0x37da91),_0x1a9223=_0x8213db['fieldView'];_0x1a9223['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2c993c=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x34c37a&&(_0x2c993c+='\x20('+g(this['locale'],'optional')+')'),(_0x8213db['label']=_0x2c993c,_0x1a9223['on']('input',()=>{this['revisionNameInputValue']=_0x1a9223['element']['value']['trim']();}),_0x8213db);}}class f extends _0x527fd9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4ce05c=this['editor'],_0x554009=_0x4ce05c['plugins']['get']('RevisionTracker');_0x4ce05c['ui']['componentFactory']['add']('revisionHistory',_0x48d4d3=>{const _0x17220b=_0x2bb1f1(_0x48d4d3),_0x17ec5c=_0x17220b['panelView']['children'],_0x17c61f=new _0x28cadf(_0x48d4d3),_0x4a78d3=new _0x3bce81(_0x48d4d3),_0x2c1bcf=new te(_0x48d4d3),_0x272fdb=new _0x3bce81(_0x48d4d3),_0x4664e4=new te(_0x48d4d3);return _0x17220b['bind']('isEnabled')['to'](_0x554009,'isReady',_0x554009,'isEnabled',_0x4ce05c,'isReadOnly',(_0x451021,_0x2612f2,_0x262831)=>_0x451021&&_0x2612f2&&!_0x262831),_0x17220b['buttonView']['set']({'icon':_0x278e4f,'label':g(_0x48d4d3,'Revision\x20history'),'tooltip':!0x0}),_0x2c1bcf['set']({'label':g(_0x48d4d3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2c1bcf['bind']('isEnabled')['to'](_0x554009,'isReady',_0x554009,'isEnabled',_0x4ce05c,'isReadOnly',(_0x2909b3,_0x57f6e0,_0x56981c)=>_0x2909b3&&_0x57f6e0&&!_0x56981c),_0x2c1bcf['on']('execute',()=>this['_showDialog']()),_0x4664e4['set']({'label':g(_0x48d4d3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4664e4['bind']('isEnabled')['to'](_0x554009,'isReady',_0x4ce05c,'isReadOnly',(_0xbbb33,_0x327778)=>_0xbbb33&&!_0x327778),_0x4664e4['on']('execute',()=>{_0x4ce05c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x17220b['isOpen']=!0x1,_0x4ce05c['editing']['view']['focus']();}),_0x4a78d3['children']['add'](_0x2c1bcf),_0x272fdb['children']['add'](_0x4664e4),_0x17c61f['role']='menu',_0x17c61f['items']['addMany']([_0x4a78d3,_0x272fdb]),_0x17ec5c['add'](_0x17c61f),_0x17220b;}),_0x4ce05c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x513175=this['editor'],_0x5969a7=_0x513175['locale'],_0x24f03d=new _0x77737(_0x5969a7),_0xd574ec=new _0x4c1111(_0x5969a7);_0x24f03d['buttonView']['set']({'icon':_0x278e4f,'label':g(_0x5969a7,'Revision\x20history')});const _0x1bac82=new _0x94bb0e(_0x5969a7,_0x24f03d),_0x585fed=new _0x1308fb(_0x5969a7);_0x585fed['set']({'label':g(_0x5969a7,'Save\x20current\x20revision')}),_0x585fed['delegate']('execute')['to'](_0x24f03d),_0x585fed['on']('execute',()=>{this['_showDialog']();}),_0x1bac82['children']['add'](_0x585fed),_0xd574ec['items']['add'](_0x1bac82);const _0x522c98=new _0x94bb0e(_0x5969a7,_0x24f03d),_0x521d34=new _0x1308fb(_0x5969a7);return _0x521d34['set']({'label':g(_0x5969a7,'Open\x20revision\x20history')}),_0x521d34['delegate']('execute')['to'](_0x24f03d),_0x521d34['on']('execute',()=>{_0x513175['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x522c98['children']['add'](_0x521d34),_0xd574ec['items']['add'](_0x522c98),_0x24f03d['panelView']['children']['add'](_0xd574ec),_0x24f03d;}['_showDialog'](){const _0x5042e9=this['editor'],_0x1580d9=_0x5042e9['locale'],_0x1fa9b1=_0x5042e9['plugins']['get']('Dialog'),_0x53167c=_0x5042e9['plugins']['get']('RevisionTracker');function _0x3d0c96(_0x5bcf5b){_0x5042e9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5bcf5b['revisionName']?_0x5bcf5b['revisionNameInputView']['errorText']=g(_0x1580d9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5042e9['plugins']['get'](u)['saveRevision']({'name':_0x5bcf5b['revisionName']}),_0x1fa9b1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3d0c96(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1fa9b1['show']({'id':'revisionSave','title':g(_0x1580d9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x5042e9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1fa9b1['hide']()},{'label':g(_0x5042e9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x13aa57){_0x13aa57['bind']('isEnabled')['to'](_0x53167c,'isReady',_0x53167c,'isEnabled',_0x5042e9,'isReadOnly',(_0x4d5d57,_0x37d435,_0x14d916)=>_0x4d5d57&&_0x37d435&&!_0x14d916);},'onExecute':()=>_0x3d0c96(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5519fd=this['editor'],_0x41dbc8=_0x5519fd['locale'];this['_saveRevisionFormView']=new hs(_0x41dbc8,_0x5519fd['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1cacb3,_0x3c05f4){super(_0x1cacb3),this['_model']=_0x3c05f4,this['changeId']=_0x3c05f4['id'];const _0x409b70=this['bindTemplate'],_0x47aa75=g(_0x1cacb3,_0x3c05f4['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3c05f4['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3c05f4['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x409b70['to']('type',_0x36f106=>'ck-revision-change__'+_0x36f106)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x47aa75}]},{'text':'\x20'+_0x3c05f4['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x11f117(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x253aff){super(),this['id']=_0x253aff['id']||_0x571ba5(),this['author']=_0x253aff['author'],this['type']=_0x253aff['type'],this['data']=_0x253aff['data']||{},this['rootName']=_0x253aff['rootName'],this['set']('createdAt',_0x253aff['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(_0x1a6ed2,_0x895860){this['newRevisionId']=_0x1a6ed2,this['oldRevisionId']=_0x895860,this['changes']=new _0x3f8e7a();}['_setChanges'](_0x3f39b2){for(const _0x2f0088 of _0x3f39b2)this['changes']['add'](_0x2f0088);}}class m extends _0x527fd9{['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[_0x386857,_0x3e17e6,I,V];}constructor(_0x1dd1c3){super(_0x1dd1c3),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',(_0x5becc3,_0x210ad7,_0x54e0e3)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x40460d=>{for(const _0x528ec0 of this['editor']['editing']['view']['document']['roots'])_0x54e0e3?_0x40460d['removeClass']('ck-editor__editable__overlay',_0x528ec0):_0x40460d['addClass']('ck-editor__editable__overlay',_0x528ec0);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x38ae94=>null!==_0x38ae94),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x57d97c,_0x224b26,_0x6af041)=>_0x57d97c&&_0x6af041?_0x224b26['changes']['getIndex'](_0x6af041):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x454e24,_0x122338)=>_0x454e24?_0x122338['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3e17e6);}['init'](){const _0x2c3997=this['editor'],_0x5a1920=new wt(_0x2c3997,{'direction':'backward'}),_0x519c02=new wt(_0x2c3997,{'direction':'forward'});(_0x2c3997['commands']['add']('showPreviousChange',_0x5a1920),_0x2c3997['commands']['add']('showNextChange',_0x519c02),_0x2c3997['commands']['add']('restoreRevision',new mt(_0x2c3997)),this['on']('change:numberOfChanges',()=>{_0x5a1920['refresh'](),_0x519c02['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2c3997['enableReadOnlyMode']('revision-viewer'),_0x2c3997['plugins']['has']('WidgetToolbarRepository'))&&_0x2c3997['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x437f93){return await this['_utils']['loadRevisionData'](_0x437f93,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x437f93);}async['getRevisionRootsAttributes'](_0xba2e0b){return await this['_utils']['loadRevisionData'](_0xba2e0b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xba2e0b);}async['compare'](_0x4f86d7,_0x55b7ed,_0xf09334=!0x1){if(!this['isEnabled'])return;const _0x328380=this['diff'],_0x11f5af=this['repository'],_0x20a247='string'==typeof _0x4f86d7?_0x11f5af['getRevision'](_0x4f86d7):_0x4f86d7,_0x22a647='string'==typeof _0x55b7ed?_0x11f5af['getRevision'](_0x55b7ed):_0x55b7ed,_0xd878a6=_0x20a247['id'],_0x33bdbe=_0x22a647?_0x22a647['id']:null;if(!_0xf09334&&this['diff']&&this['diff']['newRevisionId']===_0xd878a6&&this['diff']['oldRevisionId']===_0x33bdbe)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xd878a6,_0x33bdbe);const _0x1d9c29=this['_getRevisionsRange'](_0x20a247,_0x22a647,!0x0)['map'](_0xa4931f=>this['_utils']['loadRevisionData'](_0xa4931f,this['adapter']));return _0x1d9c29['push'](new Promise(_0x3c5f2d=>{setTimeout(_0x3c5f2d,0x14);})),Promise['all'](_0x1d9c29)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31796e=this['_getDiff'](_0xd878a6,_0x33bdbe);for(const _0xc998c2 of _0x31796e['changes'])this['_changeIdToChange']['set'](_0xc998c2['id'],_0xc998c2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x566424=>{for(const _0x346a1c of this['editor']['model']['document']['getRootNames']())_0x566424['detachRoot'](_0x346a1c);for(const _0x3164ab of Object['keys'](_0x31796e['model'])){const _0x203c40=_0x566424['addRoot'](_0x3164ab);for(const _0x43d868 of Object['keys'](_0x31796e['attributes'][_0x3164ab]))_0x566424['setAttribute'](_0x43d868,_0x31796e['attributes'][_0x3164ab][_0x43d868],_0x203c40);_0x566424['insert'](_0x31796e['model'][_0x3164ab],_0x203c40,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31796e['changes'])),this['isReady']=!0x0;})['catch'](_0x283fbf=>{console['error'](_0x283fbf),this['_cleanUp'](),_0x328380&&(this['diff']=_0x328380),this['isReady']=!0x0;});}['addRevisionData'](_0x3aa9c4,_0x164fbb){const _0x47a7b1=this['repository']['createRevision'](_0x3aa9c4);return _0x47a7b1['on']('_update',(_0x228d10,_0x34f80b,_0x194101)=>_0x164fbb(_0x34f80b,_0x194101,_0x47a7b1)),this['repository']['addRevision'](_0x47a7b1),_0x47a7b1;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x124721=>{for(const _0x3fdf97 of this['editor']['model']['document']['getRootNames']())_0x124721['detachRoot'](_0x3fdf97);});}['_sortAndFilterDiffChanges'](_0x23e84){const _0x128e46=[],_0x4b101a=new Map();for(const _0x238495 of this['editor']['model']['document']['getRootNames']()){const _0x38b158=this['editor']['editing']['view']['getDomRoot'](_0x238495);if(!_0x38b158)continue;const _0x139342=_0x38b158['getClientRects']()['item'](0x0);_0x139342&&(_0x128e46['push'](_0x238495),_0x4b101a['set'](_0x238495,_0x139342));}return _0x128e46['sort']((_0x2deba7,_0x14431c)=>{const _0x53e630=_0x4b101a['get'](_0x2deba7),_0x1d2af1=_0x4b101a['get'](_0x14431c);return _0x53e630['y']-_0x1d2af1['y']||_0x53e630['x']-_0x1d2af1['x'];}),(_0x23e84=_0x23e84['filter'](_0x3cab61=>_0x128e46['includes'](_0x3cab61['rootName'])))['sort']((_0x1a805a,_0x2ce7b5)=>_0x128e46['indexOf'](_0x1a805a['rootName'])-_0x128e46['indexOf'](_0x2ce7b5['rootName'])),_0x23e84;}['_makeTape'](_0x3e9d4e){const _0x1daaa7=Array['from'](_0x3e9d4e['markers'])['filter'](([_0xa53cc4,_0x1a4de6])=>_0xa53cc4['startsWith']('revision:')&&!_0x1a4de6['isCollapsed']),_0x260c07=Array['from'](this['editor']['model']['createRangeIn'](_0x3e9d4e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1daaa7['length'])for(const _0x5becb3 of _0x260c07){const [_0x14b6bb,_0x544c2d]=_0x1daaa7[0x0],[,_0x30e500,_0xc58016]=_0x14b6bb['split'](':');if(_0x544c2d['end']['isEqual'](_0x5becb3['nextPosition'])&&_0x1daaa7['shift'](),(_0x5becb3['previousPosition']['isEqual'](_0x544c2d['start'])||_0x5becb3['previousPosition']['isAfter'](_0x544c2d['start']))&&('insertion'==_0x30e500?_0x5becb3['isAdded']={'userId':_0xc58016}:'deletion'==_0x30e500&&(_0x5becb3['isRemoved']={'userId':_0xc58016})),0x0==_0x1daaa7['length'])break;}return _0x260c07;}['_refreshStartEndIndex'](_0x5cf851){const _0x30e2c1=new Map();for(let _0x21adf4=0x0;_0x21adf4<_0x5cf851['length'];_0x21adf4++)'text'===_0x5cf851[_0x21adf4]['type']?(_0x5cf851[_0x21adf4]['item']['startIndex']=_0x21adf4,_0x5cf851[_0x21adf4]['item']['endIndex']=_0x21adf4):('elementStart'===_0x5cf851[_0x21adf4]['type']?_0x5cf851[_0x21adf4]['item']['startIndex']=_0x21adf4:'elementEnd'===_0x5cf851[_0x21adf4]['type']&&(_0x5cf851[_0x21adf4]['item']['endIndex']=_0x21adf4),_0x30e2c1['set'](_0x5cf851[_0x21adf4]['id'],_0x21adf4));for(const _0x422fdf of _0x30e2c1['values']())'elementStart'===_0x5cf851[_0x422fdf]['type']?_0x5cf851[_0x422fdf]['item']['endIndex']=_0x30e2c1['get'](_0x5cf851[_0x422fdf]['pairId']):'elementEnd'===_0x5cf851[_0x422fdf]['type']&&(_0x5cf851[_0x422fdf]['item']['startIndex']=_0x30e2c1['get'](_0x5cf851[_0x422fdf]['pairId']));}['_processTape'](_0xc090ec){for(let _0xa8889c=0x0;_0xa8889c<_0xc090ec['length'];_0xa8889c++){if('elementStart'===_0xc090ec[_0xa8889c]['type'])_0xc090ec[_0xa8889c]['item']['startIndex']=_0xa8889c;else{if('elementEnd'===_0xc090ec[_0xa8889c]['type']){_0xc090ec[_0xa8889c]['item']['endIndex']=_0xa8889c;const _0x39ef01=_0xc090ec[_0xa8889c]['item']['startIndex'];_0xc090ec[_0x39ef01]['pairId']=_0xc090ec[_0xa8889c]['id'],_0xc090ec[_0xa8889c]['pairId']=_0xc090ec[_0x39ef01]['id'];}else _0xc090ec[_0xa8889c]['item']['startIndex']=_0xa8889c,_0xc090ec[_0xa8889c]['item']['endIndex']=_0xa8889c,_0xc090ec[_0xa8889c]['pairId']=null;}_0xc090ec[_0xa8889c]['markersStart']||(_0xc090ec[_0xa8889c]['markersStart']=[],_0xc090ec[_0xa8889c]['markersEnd']=[]);}}['_markInsertions'](_0x3f7fd9,_0x495c69){const _0x1e92ad=_0x3f7fd9['filter'](_0x41b05e=>!_0x41b05e['isAdded']);for(let _0x5a3b56=0x0;_0x5a3b56<_0x495c69['length'];_0x5a3b56++)_0x495c69[_0x5a3b56]['isAdded']&&(_0x1e92ad[_0x5a3b56]['isAdded']=_0x495c69[_0x5a3b56]['isAdded']);}['_getDiff'](_0x75545d,_0x5ef397=null){const _0x4558cb=this['repository']['getRevision'](_0x75545d),_0x546ea9=_0x5ef397?this['repository']['getRevision'](_0x5ef397):null,_0x4f98a8=this['_getRevisionsRange'](_0x4558cb,_0x546ea9),_0x3eeac5=_0x4f98a8[_0x4f98a8['length']-0x1],_0x59af94=new Map(),_0x287e29={'model':{},'attributes':{},'changes':[]},_0x4ec825=new Set(),_0x8af27d=new Map();for(let _0x1a2d33=_0x4f98a8['length']-0x1;_0x1a2d33>=0x0;_0x1a2d33--){const _0x2933b8=_0x4f98a8[_0x1a2d33];for(const _0x1d3762 of Object['keys'](_0x2933b8['diffData']))if(_0x2933b8['diffData'][_0x1d3762]['attachChange']){const _0x288a47=_0x2933b8['diffData'][_0x1d3762]['attachChange'];_0x288a47['isAttached']?(_0x4ec825['add'](_0x1d3762),_0x8af27d['has'](_0x1d3762)&&_0x8af27d['get'](_0x1d3762)['userId']==_0x288a47['userId']?_0x8af27d['delete'](_0x1d3762):_0x8af27d['set'](_0x1d3762,_0x288a47)):_0x8af27d['has'](_0x1d3762)?(_0x4ec825['delete'](_0x1d3762),_0x8af27d['delete'](_0x1d3762)):(_0x4ec825['add'](_0x1d3762),_0x8af27d['set'](_0x1d3762,_0x288a47));}else _0x4ec825['add'](_0x1d3762);}for(const _0x5c972a of _0x4ec825){const _0x4fb16c=_0x8af27d['has'](_0x5c972a)&&!_0x8af27d['get'](_0x5c972a)['isAttached'];let _0x330ad9=_0x4fb16c?_0x4f98a8['length']-0x1:0x0;const _0x116570=_0x4fb16c?-0x1:0x1;for(;_0x4f98a8[_0x330ad9];){const _0x402781=_0x4f98a8[_0x330ad9];if(_0x402781['diffData'][_0x5c972a]){const _0x88df65=_0x4fb16c?_0x402781['diffData'][_0x5c972a]['attributesBefore']:_0x402781['diffData'][_0x5c972a]['attributesAfter'];_0x287e29['attributes'][_0x5c972a]=_0x88df65?_0x503699(_0x88df65):{};break;}_0x330ad9+=_0x116570;}}for(const _0x1a417c of _0x4f98a8){_0x1a417c['model']={};for(const _0x54a338 of _0x1a417c['authors'])_0x59af94['set'](_0x54a338['id'],_0x54a338);for(const _0x157c72 of _0x4ec825){const _0x252230=_0x1a417c['diffData'][_0x157c72]?_0x1a417c['diffData'][_0x157c72]['insertions']:'[]',_0x38401b=_0x1a417c['diffData'][_0x157c72]?_0x1a417c['diffData'][_0x157c72]['deletions']:'[]';_0x1a417c['model'][_0x157c72]={'insertions':this['_utils']['_makeModelFromViewString'](_0x252230),'deletions':this['_utils']['_makeModelFromViewString'](_0x38401b)};}}for(const _0x329e3b of _0x4ec825){let _0xe25347=null,_0x2fc05f=0x0;const _0x21878a=new Map(Array['from'](_0x4558cb['model'][_0x329e3b]['insertions']['markers'])['filter'](([_0x57035b])=>!_0x57035b['startsWith']('revision:')));let _0x3d97a0=0x0;for(const _0x35195b of _0x4f98a8){const _0x415d2e=this['_makeTape'](_0x35195b['model'][_0x329e3b]['insertions']);_0x35195b==_0x4558cb?(_0xe25347=_0x415d2e,_0x2fc05f=_0xe25347['length'],_0xe25347['forEach'](_0x1df6d8=>{_0x1df6d8['id']=_0x3d97a0++;}),this['_processTape'](_0xe25347)):this['_markInsertions'](_0xe25347,_0x415d2e);const _0x36549e=_0xe25347['filter'](_0xbeb9b8=>!_0xbeb9b8['isAdded'])['map'](_0x127970=>_0x127970['id']);let _0x263539=0x0;const _0x32dfcf=this['_makeTape'](_0x35195b['model'][_0x329e3b]['deletions']);_0x32dfcf['forEach'](_0x5583e9=>{_0x5583e9['isRemoved']?_0x5583e9['id']=_0x2fc05f++:_0x5583e9['id']=_0x36549e[_0x263539++];}),this['_processTape'](_0x32dfcf),this['_setDistance'](_0xe25347,'isAdded'),this['_setDistance'](_0x32dfcf,'isRemoved'),_0x35195b==_0x4558cb&&this['_markMarkers'](_0xe25347,_0x21878a),_0xe25347=this['_joinTapes'](_0xe25347,_0x32dfcf),this['_refreshStartEndIndex'](_0xe25347),this['_setDistance'](_0xe25347,'isRemoved');}_0xe25347=_0xe25347['filter'](_0xebf1c8=>!(_0xebf1c8['isAdded']&&_0xebf1c8['isRemoved']));const _0x4e8a9f=new Map(_0x3eeac5['model'][_0x329e3b]['deletions']['markers']),_0x557213=new Set(_0x21878a['keys']());for(const _0x267684 of _0x4e8a9f['keys']())_0x557213['delete'](_0x267684);this['_markSuggestions'](_0xe25347,_0x557213),this['_fixObsoleteTags'](_0xe25347),_0xe25347=this['_removeMissingPairs'](_0xe25347),_0xe25347=this['_markMismatchedRemovedTags'](_0xe25347),_0xe25347=this['_removeUnsupportedChanges'](_0xe25347);const {root:_0x333b09,changes:_0x44d4f4}=this['_makeModelFromTape'](_0xe25347,_0x59af94,_0x329e3b);_0x287e29['model'][_0x329e3b]=_0x333b09;const _0x4c43ce=_0x8af27d['get'](_0x329e3b);if(_0x4c43ce){const _0x3a2a1=_0x59af94['get'](_0x4c43ce['userId']),_0x1896d6=new r({'author':_0x3a2a1,'type':_0x4c43ce['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x329e3b});_0x44d4f4['unshift'](_0x1896d6),_0x287e29['attributes'][_0x329e3b]['revisionHistoryAttachChange']=_0x1896d6['id'];}_0x287e29['changes']=_0x287e29['changes']['concat'](_0x44d4f4);}return _0x287e29;}['_markMarkers'](_0x1468a5,_0x49146c){for(let _0x3db2c3=0x0;_0x3db2c3<_0x1468a5['length'];_0x3db2c3++)for(const [_0x2256a3,_0x5e4845]of _0x49146c)!_0x5e4845['isCollapsed']&&_0x5e4845['start']['isEqual'](_0x1468a5[_0x3db2c3]['previousPosition'])&&_0x1468a5[_0x3db2c3]['markersStart']['push'](_0x2256a3),_0x5e4845['end']['isEqual'](_0x1468a5[_0x3db2c3]['nextPosition'])&&_0x1468a5[_0x3db2c3]['markersEnd']['push'](_0x2256a3);}['_joinTapes'](_0x5037db,_0x5e9a5c){let _0x280aa8=[],_0x5e1954=0x0,_0xd27869=0x0;for(;_0x5e1954<_0x5037db['length']||_0xd27869<_0x5e9a5c['length'];){const _0xa4ec85=_0x5037db[_0x5e1954]||{},_0x1f23bc=_0x5e9a5c[_0xd27869]||{};if(_0xa4ec85['id']==_0x1f23bc['id'])_0x5e1954++,_0xd27869++,_0x280aa8['push'](_0xa4ec85);else{if(_0x1f23bc['isRemoved']&&_0xa4ec85['isAdded']){const {commonTape:_0x13afdd,iEnd:_0xd27a06,jEnd:_0x263395}=this['_threeWayMerge'](_0x5037db,_0x5e1954,_0x5e9a5c,_0xd27869);_0x280aa8=_0x280aa8['concat'](_0x13afdd),_0x5e1954=_0xd27a06,_0xd27869=_0x263395;}else _0x1f23bc['isRemoved']?(_0xd27869++,_0x280aa8['push'](_0x1f23bc)):(_0x5e1954++,_0x280aa8['push'](_0xa4ec85));}}return _0x280aa8;}['_markSuggestions'](_0x277f9b,_0x47bf89){const _0x198514=[];for(let _0x5d6a3b=0x0;_0x5d6a3b<_0x277f9b['length'];_0x5d6a3b++){for(let _0x1cc03a=0x0;_0x1cc03a<_0x277f9b[_0x5d6a3b]['markersStart']['length'];_0x1cc03a++){const _0x2ee5b8=_0x277f9b[_0x5d6a3b]['markersStart'][_0x1cc03a];if(!_0x47bf89['has'](_0x2ee5b8))continue;const {group:_0x34dd80,type:_0x652bcb,authorId:_0x5bf87d}=_0x5655b3(_0x2ee5b8);'revision-suggestion'!=_0x34dd80||'insertion'!=_0x652bcb&&'deletion'!=_0x652bcb||(_0x198514['unshift']({'type':_0x652bcb,'name':_0x2ee5b8,'userId':_0x5bf87d}),_0x277f9b[_0x5d6a3b]['markersStart']['splice'](_0x1cc03a,0x1),_0x1cc03a--);}_0x55b51b(_0x277f9b[_0x5d6a3b]);for(let _0x19d849=0x0;_0x19d849<_0x277f9b[_0x5d6a3b]['markersEnd']['length'];_0x19d849++){const _0x9fbcf1=_0x277f9b[_0x5d6a3b]['markersEnd'][_0x19d849];if(!_0x47bf89['has'](_0x9fbcf1))continue;const {group:_0x127cc1,type:_0x297969}=_0x5655b3(_0x9fbcf1);if('revision-suggestion'!=_0x127cc1||'insertion'!=_0x297969&&'deletion'!=_0x297969)continue;_0x277f9b[_0x5d6a3b]['markersEnd']['splice'](_0x19d849,0x1),_0x19d849--;const _0x1b551c=_0x198514['findIndex'](_0x1c4c10=>_0x1c4c10['name']==_0x9fbcf1);_0x1b551c>-0x1&&_0x198514['splice'](_0x1b551c,0x1);}}function _0x5655b3(_0x4254c3){const _0xe72989=_0x4254c3['split'](':');return{'group':_0xe72989[0x0],'type':_0xe72989[0x1],'subType':_0xe72989['length']>=0x5?_0xe72989[0x2]:null,'id':_0xe72989['length']<0x5?_0xe72989[0x2]:_0xe72989[0x3],'authorId':_0xe72989['length']<0x5?_0xe72989[0x3]:_0xe72989[0x4],'markerCount':0x6==_0xe72989['length']?_0xe72989[0x5]:null};}function _0x55b51b(_0x1e4ee2){for(let _0x90c871=0x0;_0x90c871<_0x198514['length'];_0x90c871++){if(_0x1e4ee2['isAdded']&&'insertion'==_0x198514[_0x90c871]['type'])return _0x1e4ee2['isAddSuggestion']=_0x198514[_0x90c871],void delete _0x1e4ee2['isAdded'];if(!_0x1e4ee2['isAdded']&&!_0x1e4ee2['isRemoved']&&'deletion'==_0x198514[_0x90c871]['type'])return void(_0x1e4ee2['isRemoveSuggestion']=_0x198514[_0x90c871]);}}}['_setDistance'](_0x9542b7,_0xb04dba){let _0x4bf894=0x0,_0x2d045f=!0x1;const _0x5b5ce2=new Map();for(const _0x5761bc of _0x9542b7)_0x5761bc[_0xb04dba]?_0x2d045f&&(_0x4bf894++,_0x2d045f=!0x1):(_0x4bf894++,_0x2d045f=!0x0),_0x5b5ce2['set'](_0x5761bc['id'],_0x4bf894);for(let _0xb7c195=0x0;_0xb7c195<_0x9542b7['length'];_0xb7c195++){if('isRemoved'==_0xb04dba&&_0x9542b7[_0xb7c195]['isAdded']||'isAdded'==_0xb04dba&&_0x9542b7[_0xb7c195]['isRemoved'])continue;if('text'==_0x9542b7[_0xb7c195]['type']){_0x9542b7[_0xb7c195]['distance']=0x0;continue;}const _0x346dfc=_0x5b5ce2['get'](_0x9542b7[_0xb7c195]['pairId']),_0x2ca361=_0x5b5ce2['get'](_0x9542b7[_0xb7c195]['id']);_0x9542b7[_0xb7c195]['distance']=_0x346dfc-_0x2ca361;}}['_getRevisionsRange'](_0x5e88da,_0x5e966a,_0x464190=!0x1){const _0x4839ce=[];let _0x1387af=this['repository']['getIndex'](_0x5e88da),_0x2c9ff1=this['repository']['getIndex'](_0x5e966a);for(-0x1==_0x2c9ff1&&(_0x2c9ff1=this['repository']['_revisions']['length'],_0x464190=!0x1);_0x1387af<_0x2c9ff1;)_0x4839ce['push'](this['repository']['getRevision'](_0x1387af)),_0x1387af++;return _0x464190&&_0x4839ce['push'](this['repository']['getRevision'](_0x1387af)),_0x4839ce;}['_threeWayMerge'](_0x4847c4,_0x395594,_0x39da08,_0x2e0239){const _0x18efee=this['editor']['model']['schema'];let _0x47c013=_0x395594;for(;_0x4847c4[_0x47c013]&&_0x4847c4[_0x47c013]['isAdded'];)_0x47c013++;let _0x228614=_0x2e0239;for(;_0x39da08[_0x228614]&&_0x39da08[_0x228614]['isRemoved'];)_0x228614++;_0x7ff3ae(_0x4847c4,_0x395594,_0x47c013),_0x7ff3ae(_0x39da08,_0x2e0239,_0x228614);const _0x47c286=_0x39da08['slice'](_0x2e0239,_0x228614)['concat'](_0x4847c4['slice'](_0x395594,_0x47c013));return _0x47c286['sort']((_0x1f4e4a,_0x449b74)=>_0x1f4e4a['side']!=_0x449b74['side']?_0x1f4e4a['side']-_0x449b74['side']:_0x1f4e4a['level']!=_0x449b74['level']?_0x1f4e4a['level']-_0x449b74['level']:_0x1f4e4a['distance']!=_0x449b74['distance']?_0x449b74['distance']-_0x1f4e4a['distance']:!!_0x1f4e4a['isAdded']!=!!_0x449b74['isAdded']?-0x1==_0x1f4e4a['side']||0x0==_0x1f4e4a['side']?_0x1f4e4a['isAdded']?-0x1:0x1:_0x1f4e4a['isAdded']?0x1:-0x1:_0x1f4e4a['index']-_0x449b74['index']),{'commonTape':_0x47c286,'iEnd':_0x47c013,'jEnd':_0x228614};function _0x7ff3ae(_0x34b949,_0x3d313b,_0x26b072){let _0x4e4573=-0x1,_0x55ba00=Number['POSITIVE_INFINITY'],_0x11c89e=!0x0;for(let _0x2d289c=_0x3d313b;_0x2d289c<_0x26b072;_0x2d289c++)if(_0x18efee['isInline'](_0x34b949[_0x2d289c]['item'])||(_0x11c89e=!0x1),_0x34b949[_0x2d289c]['item']['startIndex']<_0x3d313b&&(_0x4e4573=_0x2d289c),_0x34b949[_0x2d289c]['item']['endIndex']>=_0x26b072){_0x55ba00=_0x2d289c;break;}_0x11c89e&&(_0x4e4573=_0x26b072-0x1);for(let _0x26cbc5=_0x3d313b;_0x26cbc5<_0x26b072;_0x26cbc5++)_0x34b949[_0x26cbc5]['side']=_0x26cbc5<=_0x4e4573?-0x1:_0x26cbc5<_0x55ba00?0x0:0x1,_0x34b949[_0x26cbc5]['index']=_0x26cbc5;let _0x2633c5=0x0;for(let _0x4fb02d=_0x3d313b;_0x4fb02d<=_0x4e4573;_0x4fb02d++)0x0==_0x34b949[_0x4fb02d]['distance']?_0x34b949[_0x4fb02d]['level']=_0x2633c5:(_0x2633c5++,_0x34b949[_0x4fb02d]['level']=_0x2633c5,_0x2633c5++);for(let _0x1e73ef=_0x3d313b;_0x1e73ef<_0x26b072;_0x1e73ef++)0x0==_0x34b949[_0x1e73ef]['side']&&(_0x34b949[_0x1e73ef]['level']=_0x2633c5);_0x2633c5=0x0;for(let _0x1a4c66=_0x26b072-0x1;_0x1a4c66>=_0x55ba00;_0x1a4c66--)0x0==_0x34b949[_0x1a4c66]['distance']?_0x34b949[_0x1a4c66]['level']=_0x2633c5:(_0x2633c5--,_0x34b949[_0x1a4c66]['level']=_0x2633c5,_0x2633c5--);}}['_fixObsoleteTags'](_0xb6ad90){const _0x244a79=new Map(),_0x4858c9=this['editor']['model']['schema'];for(let _0x5ce53b=0x1;_0x5ce53b<_0xb6ad90['length'];_0x5ce53b++){let _0x600e39,_0xad19b0,_0x1f49f6;const _0x55ffa3=_0xb6ad90[_0x5ce53b],_0x11d1d4=_0xb6ad90[_0x5ce53b-0x1];if('text'==_0x55ffa3['type'])continue;if(_0x55ffa3['type']!=_0x11d1d4['type'])continue;if(!_0x4858c9['isBlock'](_0x11d1d4['item'])||_0x4858c9['isLimit'](_0x11d1d4['item']))continue;if(!_0x4858c9['isBlock'](_0x55ffa3['item'])||_0x4858c9['isLimit'](_0x55ffa3['item']))continue;if((_0xb6ad90[_0x5ce53b]['isAdded']||_0xb6ad90[_0x5ce53b]['isAddSuggestion'])&&_0xb6ad90[_0x5ce53b-0x1]['isRemoved'])_0x600e39=_0xb6ad90[_0x5ce53b],_0xad19b0=_0xb6ad90[_0x5ce53b-0x1],_0x1f49f6=_0x5ce53b-0x1;else{if(!_0xb6ad90[_0x5ce53b]['isRemoved']||!_0xb6ad90[_0x5ce53b-0x1]['isAdded']&&!_0xb6ad90[_0x5ce53b-0x1]['isAddSuggestion'])continue;_0x600e39=_0xb6ad90[_0x5ce53b-0x1],_0xad19b0=_0xb6ad90[_0x5ce53b],_0x1f49f6=_0x5ce53b;}const _0x18192e=_0x600e39['level']==_0xad19b0['level'],_0x527312=Math['abs'](_0x600e39['level'])<Math['abs'](_0xad19b0['level'])&&0x0==_0xad19b0['distance'];(_0x18192e||_0x527312)&&(_0x244a79['set'](_0xad19b0['id'],_0x600e39['id']),_0xb6ad90['splice'](_0x1f49f6,0x1),_0x5ce53b--,_0x600e39['isAdded']=!0x1);}for(let _0x43cab4=0x0;_0x43cab4<_0xb6ad90['length'];_0x43cab4++)_0x244a79['has'](_0xb6ad90[_0x43cab4]['pairId'])&&(_0xb6ad90[_0x43cab4]['pairId']=_0x244a79['get'](_0xb6ad90[_0x43cab4]['pairId']));}['_removeMissingPairs'](_0x342ba3){const _0x256a15=new Set(_0x342ba3['map'](_0x5f2a87=>_0x5f2a87['id']));for(let _0x464805=0x0;_0x464805<_0x342ba3['length'];_0x464805++)_0x256a15['has'](_0x342ba3[_0x464805]['pairId'])||0x0==_0x342ba3[_0x464805]['distance']||(_0x342ba3[_0x464805]['isIncorrect']=!0x0);return _0x342ba3['filter'](_0x33529e=>!_0x33529e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3d56f3){const _0x32f81a=new Set();for(let _0x406e56=0x0;_0x406e56<_0x3d56f3['length'];_0x406e56++){if(_0x32f81a['has'](_0x3d56f3[_0x406e56]['id'])&&_0x3d56f3[_0x406e56]['isRemoved']&&(_0x3d56f3[_0x406e56]['isIncorrect']=!0x0),_0x3d56f3[_0x406e56]['isIncorrect'])continue;if(0x0==_0x3d56f3[_0x406e56]['distance'])continue;if('elementStart'!=_0x3d56f3[_0x406e56]['type'])continue;if(null==_0x3d56f3[_0x406e56]['pairId'])continue;let _0x1a9a8f=_0x406e56+0x1,_0x30b2b0=0x0;for(;_0x3d56f3[_0x1a9a8f]['id']!=_0x3d56f3[_0x406e56]['pairId'];)'elementStart'==_0x3d56f3[_0x1a9a8f]['type']?_0x30b2b0++:'elementEnd'==_0x3d56f3[_0x1a9a8f]['type']&&_0x30b2b0--,_0x1a9a8f++;if(0x0!=_0x30b2b0){if(_0x3d56f3[_0x406e56]['isRemoved'])_0x3d56f3[_0x406e56]['isIncorrect']=!0x0;else{for(;_0x1a9a8f!=_0x406e56;)_0x3d56f3[_0x1a9a8f]['isRemoved']&&0x0!=_0x3d56f3[_0x1a9a8f]['distance']&&(_0x3d56f3[_0x1a9a8f]['isIncorrect']=!0x0,_0x32f81a['add'](_0x3d56f3[_0x1a9a8f]['pairId'])),_0x1a9a8f--;}}}return _0x3d56f3['filter'](_0x2752f1=>!_0x2752f1['isIncorrect']);}['_removeUnsupportedChanges'](_0x239ffe){const _0x37c986=this['editor']['model']['schema'];for(let _0x3a54a9=0x0;_0x3a54a9<_0x239ffe['length'];_0x3a54a9++){if(!(_0x239ffe[_0x3a54a9]['isAdded']||_0x239ffe[_0x3a54a9]['isAddSuggestion']||_0x239ffe[_0x3a54a9]['isRemoved']||_0x239ffe[_0x3a54a9]['isRemoveSuggestion']))continue;if(0x0==_0x239ffe[_0x3a54a9]['distance'])continue;const _0x365ca4=_0x239ffe[_0x3a54a9]['item'];_0x37c986['isBlock'](_0x365ca4)||_0x37c986['isLimit'](_0x365ca4)||(_0x239ffe[_0x3a54a9]['isAdded']&&delete _0x239ffe[_0x3a54a9]['isAdded'],_0x239ffe[_0x3a54a9]['isAddSuggestion']&&delete _0x239ffe[_0x3a54a9]['isAddSuggestion'],_0x239ffe[_0x3a54a9]['isRemoveSuggestion']&&delete _0x239ffe[_0x3a54a9]['isRemoveSuggestion'],_0x239ffe[_0x3a54a9]['isRemoved']&&(_0x239ffe[_0x3a54a9]['isIncorrect']=!0x0));}return _0x239ffe['filter'](_0x201f80=>!_0x201f80['isIncorrect']);}['_makeModelFromTape'](_0x37ea90,_0x1a47a8,_0x5c46c7){const _0x5cd9a2=new vt(),_0x82b986=[],_0x3667eb=new Map(),_0x10dcd3=this['editor']['model'],_0x206739=_0x10dcd3['schema'],_0x1c48fa=[_0x5cd9a2],_0x113d5f={},_0xf90ebc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x466087=null;const _0x5399e9=[0x0];for(let _0x5aae9e=0x0;_0x5aae9e<_0x37ea90['length'];_0x5aae9e++)if('elementStart'===_0x37ea90[_0x5aae9e]['type']){_0x37ea90[_0x5aae9e]['previousPosition']=_0x10dcd3['createPositionFromPath'](_0x5cd9a2,_0x5399e9);const _0x4b86fc=new ut(_0x37ea90[_0x5aae9e]['item']['name'],_0x37ea90[_0x5aae9e]['item']['getAttributes']());_0x1c48fa[0x0]['_appendChild'](_0x4b86fc),_0x5399e9['push'](0x0),_0x1c48fa['unshift'](_0x4b86fc),_0x37ea90[_0x5aae9e]['nextPosition']=_0x10dcd3['createPositionFromPath'](_0x5cd9a2,_0x5399e9);}else'elementEnd'===_0x37ea90[_0x5aae9e]['type']?(_0x1c48fa['shift'](),_0x37ea90[_0x5aae9e]['previousPosition']=_0x10dcd3['createPositionFromPath'](_0x5cd9a2,_0x5399e9),_0x5399e9['pop'](),_0x5399e9[_0x5399e9['length']-0x1]++,_0x37ea90[_0x5aae9e]['nextPosition']=_0x10dcd3['createPositionFromPath'](_0x5cd9a2,_0x5399e9)):(_0x37ea90[_0x5aae9e]['previousPosition']=_0x10dcd3['createPositionFromPath'](_0x5cd9a2,_0x5399e9),_0x466087?_0x466087['_data']+=_0x37ea90[_0x5aae9e]['item']['data']:_0x466087=new gt(_0x37ea90[_0x5aae9e]['item']['data'],_0x37ea90[_0x5aae9e]['item']['getAttributes']()),_0x37ea90[_0x5aae9e+0x1]&&'text'===_0x37ea90[_0x5aae9e+0x1]['type']&&_0x2a9e66(_0x466087,_0x37ea90[_0x5aae9e+0x1]['item'])||(_0x1c48fa[0x0]['_appendChild'](_0x466087),_0x466087=null),_0x5399e9[_0x5399e9['length']-0x1]+=_0x37ea90[_0x5aae9e]['item']['offsetSize'],_0x37ea90[_0x5aae9e]['nextPosition']=_0x10dcd3['createPositionFromPath'](_0x5cd9a2,_0x5399e9));for(let _0x5abf0b=0x0;_0x5abf0b<_0x37ea90['length'];_0x5abf0b++){const _0x324513=_0x37ea90[_0x5abf0b]['previousPosition'],_0x94a945=_0x37ea90[_0x5abf0b]['nextPosition'];for(const _0x540336 of _0x37ea90[_0x5abf0b]['markersStart'])_0x3667eb['set'](_0x540336,{'start':_0x324513,'end':null});_0x18e9c4('isRemoveSuggestion',_0x5abf0b,_0x324513,_0x94a945),_0x18e9c4('isAddSuggestion',_0x5abf0b,_0x324513,_0x94a945),_0x18e9c4('isRemoved',_0x5abf0b,_0x324513,_0x94a945),_0x18e9c4('isAdded',_0x5abf0b,_0x324513,_0x94a945);for(const _0x570079 of _0x37ea90[_0x5abf0b]['markersEnd']){const _0x2a63e0=_0x3667eb['get'](_0x570079);_0x2a63e0?_0x2a63e0['end']=_0x94a945:_0x3667eb['set'](_0x570079,{'start':_0x94a945,'end':_0x94a945});}}for(const [_0x33c0f5,_0x373c11]of _0x3667eb){const _0x4a2dd4=this['editor']['model']['createRange'](_0x373c11['start'],_0x373c11['end']);_0x5cd9a2['markers']['set'](_0x33c0f5,_0x4a2dd4);}return _0x82b986['sort']((_0x52bad1,_0x1caf35)=>{const _0x337f39=_0x5cd9a2['markers']['get']('revision:'+_0x52bad1['id']),_0x236b26=_0x5cd9a2['markers']['get']('revision:'+_0x1caf35['id']);return _0x337f39['start']['isBefore'](_0x236b26['start'])?-0x1:_0x337f39['start']['isAfter'](_0x236b26['start'])?0x1:_0x337f39['end']['isBefore'](_0x236b26['end'])?-0x1:_0x337f39['end']['isAfter'](_0x236b26['end'])?0x1:'add'===_0x52bad1['type']?-0x1:0x1;}),{'root':_0x5cd9a2,'changes':_0x82b986};function _0x18e9c4(_0x269b3e,_0x4b40c4,_0x396fc1,_0x41ee96){const _0x2a3695=!!_0x37ea90[_0x4b40c4][_0x269b3e],_0x238472=_0x2a3695?_0x37ea90[_0x4b40c4][_0x269b3e]['userId']:null,_0x5af510=_0x4b40c4===_0x37ea90['length']-0x1,_0x4c6b11=_0xf90ebc[_0x269b3e][0x0],_0x375854=_0x206739['isObject'](_0x37ea90[_0x4b40c4]['item']);!_0x113d5f[_0x269b3e]&&_0x2a3695?_0x113d5f[_0x269b3e]={'start':_0x396fc1,'tapeItem':_0x37ea90[_0x4b40c4],'userId':_0x238472,'type':_0x269b3e}:_0x113d5f[_0x269b3e]&&!_0x2a3695?(_0x113d5f[_0x269b3e]['end']=_0x396fc1,_0x5899db(_0x113d5f[_0x269b3e]),_0x113d5f[_0x269b3e]=null):_0x113d5f[_0x269b3e]&&_0x2a3695&&_0x113d5f[_0x269b3e]['userId']!==_0x238472&&(_0x113d5f[_0x269b3e]['end']=_0x396fc1,_0x4c6b11&&_0x4c6b11['userId']===_0x113d5f[_0x269b3e]['userId']||_0x5899db(_0x113d5f[_0x269b3e]),_0x113d5f[_0x269b3e]={'start':_0x396fc1,'tapeItem':_0x37ea90[_0x4b40c4],'userId':_0x238472,'type':_0x269b3e}),_0x113d5f[_0x269b3e]&&_0x375854&&('elementStart'!==_0x37ea90[_0x4b40c4]['type']||_0x4c6b11&&_0x4c6b11['userId']===_0x238472||_0xf90ebc[_0x269b3e]['unshift']({'userId':_0x238472,'object':_0x37ea90[_0x4b40c4]['item'],'change':_0x113d5f[_0x269b3e]}),'elementEnd'===_0x37ea90[_0x4b40c4]['type']&&_0x4c6b11&&_0x4c6b11['object']===_0x37ea90[_0x4b40c4]['item']&&(_0xf90ebc[_0x269b3e]['shift'](),_0x113d5f[_0x269b3e]=_0x4c6b11['change'])),_0x113d5f[_0x269b3e]&&_0x5af510&&(_0x113d5f[_0x269b3e]['end']=_0x41ee96,_0x5899db(_0x113d5f[_0x269b3e]),_0x113d5f[_0x269b3e]=null);}function _0x5899db({start:_0x58243b,end:_0x59f6b2,tapeItem:_0x5e6da2,userId:_0x254ece,type:_0x21ba89}){const _0x4a7831=_0x5e6da2['item'],_0x50e784=_0x10dcd3['schema']['isBlock'](_0x4a7831)&&!_0x10dcd3['schema']['isLimit'](_0x4a7831),_0x1dc322=_0x58243b['nodeAfter']==_0x59f6b2['parent']&&_0x59f6b2['isAtStart'];if(_0x50e784&&_0x1dc322)return;const _0x58908e=_0x10dcd3['createRange'](_0x58243b,_0x59f6b2),_0x41d8de=_0x1a47a8['get'](_0x254ece),_0x53ecb3=new r({'author':_0x41d8de,'type':'isAdded'==_0x21ba89||'isAddSuggestion'==_0x21ba89?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x21ba89||'isRemoveSuggestion'==_0x21ba89},'createdAt':new Date(),'rootName':_0x5c46c7});_0x82b986['push'](_0x53ecb3),_0x5cd9a2['markers']['set']('revision:'+_0x53ecb3['id'],_0x58908e);}function _0x2a9e66(_0x282c53,_0x10bf63){const _0x57109e=_0x282c53['getAttributes'](),_0x390368=_0x10bf63['getAttributes']();for(const _0x18ca9b of _0x57109e){if(_0x18ca9b[0x1]!==_0x10bf63['getAttribute'](_0x18ca9b[0x0]))return!0x1;_0x390368['next']();}return _0x390368['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x31f81a=>{const _0x3dc948=_0x31f81a['markerName']['split'](':')[0x1],_0x251e01=this['_getChangeFromId'](_0x3dc948);if(!_0x251e01)return null;const _0x55c873='add'==_0x251e01['type']?'insertion':'deletion',_0x47eb62=['ck-suggestion-marker','ck-suggestion-marker-'+_0x55c873];return _0x251e01['data']['isSuggestion']&&_0x47eb62['push']('ck-suggestion-marker-'+_0x55c873+'-new'),this['activeChange']==_0x251e01&&_0x47eb62['push']('ck-suggestion-marker--active'),{'classes':_0x47eb62,'attributes':{'data-change-id':_0x3dc948}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x391f9f=>{_0x391f9f['on']('element:pre',(_0xd160f7,_0x1fc00b,_0x16e90a)=>{const _0x446d02=_0x1fc00b['viewItem']['getChild'](0x0);if(!_0x446d02||!_0x446d02['is']('element','code'))return;if(!_0x16e90a['consumable']['consume'](_0x446d02,{'attributes':['vid_start','vid_end']}))return;const _0x15b785=_0x1fc00b['modelRange']['start']['nodeAfter'];_0x16e90a['writer']['setAttribute']('vid_start',_0x446d02['getAttribute']('vid_start'),_0x15b785),_0x16e90a['writer']['setAttribute']('vid_end',_0x446d02['getAttribute']('vid_end'),_0x15b785);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x33c033=>{_0x33c033['on']('element',(_0x2dbf55,_0x322e3a,_0x1a13f0)=>{if(!_0x1a13f0['consumable']['consume'](_0x322e3a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x322e3a['modelRange']['isCollapsed'])return;const _0x51e728=_0x322e3a['modelRange']['start']['nodeAfter'];_0x51e728['hasAttribute']('vid_start')||_0x51e728['hasAttribute']('vid')||(_0x1a13f0['writer']['setAttribute']('vid_start',_0x322e3a['viewItem']['getAttribute']('vid_start'),_0x51e728),_0x1a13f0['writer']['setAttribute']('vid_end',_0x322e3a['viewItem']['getAttribute']('vid_end'),_0x51e728));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2058ea=>_0x2058ea['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4cebfc,[,_0x408deb])=>{['vid_start','vid_end','vid']['includes'](_0x408deb)&&(_0x4cebfc['return']=!0x0,_0x4cebfc['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x27ac04=>{_0x27ac04['on']('attribute:vid',(_0x3d60c9,_0x8406a9,_0x15d7a4)=>{if('\x20'!=_0x8406a9['item']['data']||_0x8406a9['item']['parent']['maxOffset']>0x1)return;if(!_0x15d7a4['consumable']['consume'](_0x8406a9['item'],_0x3d60c9['name']))return;const _0x15d895=_0x15d7a4['writer'],_0x3359e9=_0x15d7a4['mapper']['toViewRange'](_0x8406a9['range']);_0x15d895['wrap'](_0x3359e9,_0x15d895['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x426ceb){const _0x5912f0=_0x426ceb['plugins']['get']('RevisionViewer');return(_0x3e1b1c,_0x979899,_0x4429ec)=>{const _0x43e6d8=_0x979899['markerName']['split'](':')[0x1],_0x15af5a=_0x5912f0['_getChangeFromId'](_0x43e6d8);if(!_0x15af5a)return null;const _0xdb6807='add'==_0x15af5a['type']?'split':'merge';if(!_0x4429ec['consumable']['test'](_0x979899['markerRange'],_0x3e1b1c['name']))return;const _0x3ad1c4=_0x979899['markerRange']['getWalker'](),_0x3fa402=_0x979899['markerRange']['start'],_0x1eb02a=_0x426ceb['model']['schema'];let _0x56f287=null,_0xf4bd57=null,_0x39e551=!0x1,_0x944709=!0x1;for(const _0x40c01a of _0x3ad1c4){const _0x3058e6=_0x40c01a['item'];_0x39e551=_0x39e551||_0x1eb02a['isContent'](_0x3058e6);const _0x40530e=_0x4429ec['mapper']['toViewElement'](_0x3058e6);if(_0x40530e&&_0x40530e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40c01a['type']&&(_0x1eb02a['isBlock'](_0x3058e6)&&!_0x1eb02a['isLimit'](_0x3058e6)&&(_0x3058e6['nextSibling']||_0x3fa402['isAtEnd']?_0x56f287&&_0x56f287['parent']==_0x3058e6||(_0x56f287=_0x3058e6,_0x587040(_0x40c01a['previousPosition']),_0x944709=!0x0):_0xf4bd57=_0xf4bd57||_0x40c01a['previousPosition']));}function _0x587040(_0x17acb5){const _0x3fc307=_0x4429ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdb6807}),_0x5eb475=_0x4429ec['mapper']['toViewPosition'](_0x17acb5);_0x15af5a['data']['isSuggestion']&&_0x4429ec['writer']['addClass']('ck-suggestion-marker-'+_0xdb6807+'-new',_0x3fc307),_0x5912f0['activeChange']==_0x15af5a&&_0x4429ec['writer']['addClass']('ck-suggestion-marker--active',_0x3fc307),_0x4429ec['writer']['insert'](_0x5eb475,_0x3fc307),_0x4429ec['mapper']['bindElementToMarker'](_0x3fc307,_0x979899['markerName']);}_0x39e551||_0x944709||!_0xf4bd57||_0x587040(_0xf4bd57);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4376fb,_0x55b8fe,_0x48549e)=>{const _0x34a320=_0x48549e['mapper']['markerNameToElements'](_0x55b8fe['markerName']);if(_0x34a320){for(const _0x12721b of _0x34a320)(_0x12721b['hasClass']('ck-suggestion-marker-split')||_0x12721b['hasClass']('ck-suggestion-marker-merge'))&&(_0x48549e['mapper']['unbindElementFromMarkerName'](_0x12721b,_0x55b8fe['markerName']),_0x48549e['writer']['remove'](_0x12721b));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x114ba2,_0x5c7dfd,_0x4eecf3)=>{const _0x222c45=_0x5c7dfd['markerName']['split'](':')[0x1],_0x4fac09=this['_getChangeFromId'](_0x222c45);if(!_0x4fac09)return null;const _0x343d1e='add'==_0x4fac09['type']?'split':'merge';if(_0x4eecf3['consumable']['test'](_0x5c7dfd['markerRange'],_0x114ba2['name']))for(const _0x95efa4 of _0x5c7dfd['markerRange']['getItems']()){if(!_0x95efa4['is']('element','softBreak'))continue;const _0x3cc952=_0x4eecf3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x343d1e}),_0x2d3298=_0x4eecf3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x95efa4));_0x4fac09['data']['isSuggestion']&&_0x4eecf3['writer']['addClass']('ck-suggestion-marker-'+_0x343d1e+'-new',_0x3cc952),this['activeChange']==_0x4fac09&&_0x4eecf3['writer']['addClass']('ck-suggestion-marker--active',_0x3cc952),_0x4eecf3['writer']['insert'](_0x2d3298,_0x3cc952),_0x4eecf3['mapper']['bindElementToMarker'](_0x3cc952,_0x5c7dfd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x31b3fc=>{for(const _0x32872a of this['editor']['model']['document']['getRootNames']()){const _0x37e8ef=this['editor']['model']['document']['getRoot'](_0x32872a),_0x5b8a3b=this['editor']['editing']['view']['document']['getRoot'](_0x32872a);if(_0x5b8a3b){const _0x46e241=_0x37e8ef['getAttribute']('revisionHistoryAttachChange');if(_0x31b3fc['removeAttribute']('data-change-id',_0x5b8a3b),_0x31b3fc['removeClass']('ck-revision-history-root-add',_0x5b8a3b),_0x31b3fc['removeClass']('ck-revision-history-root-remove',_0x5b8a3b),_0x31b3fc['removeClass']('ck-revision-history-root--active',_0x5b8a3b),_0x46e241){const _0x1c0102=this['_getChangeFromId'](_0x46e241);if(!_0x1c0102)return null;_0x31b3fc['setAttribute']('data-change-id',_0x46e241,_0x5b8a3b),_0x31b3fc['addClass']('ck-revision-history-root-'+_0x1c0102['type'],_0x5b8a3b),this['activeChange']==_0x1c0102&&_0x31b3fc['addClass']('ck-revision-history-root--active',_0x5b8a3b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1d9192=>'revision-comment:'+_0x1d9192,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x53766d=>'revision-suggestion:'+_0x53766d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f9459=>({'name':'suggestion:'+_0x2f9459,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2e9ebf=>{const _0x5edc1d=_0x2e9ebf['markerName']['split'](':')[0x1];return'insertion'!=_0x5edc1d&&'deletion'!=_0x5edc1d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5edc1d]};}}),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',(_0x4d3297,_0x3c220a,_0x59a23c)=>{const _0x30b8ba=_0x59a23c['mapper']['markerNameToElements'](_0x3c220a['markerName']);if(_0x30b8ba){for(const _0x58ed7e of _0x30b8ba)_0x58ed7e['is']('uiElement')&&(_0x59a23c['mapper']['unbindElementFromMarkerName'](_0x58ed7e,_0x3c220a['markerName']),_0x59a23c['writer']['remove'](_0x58ed7e));}},{'priority':'high'});}['_getChangeFromId'](_0x361e03){return this['_changeIdToChange']['get'](_0x361e03);}['_getViewForChange'](_0x51af90){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x51af90),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x160778,_0x3cf478,_0x35cad6,_0xa54c46)=>{_0xa54c46&&this['_balloon']['remove'](_0xa54c46),_0x35cad6&&(this['_balloon']['add']({'view':_0x35cad6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5f2c9d=this['editor']['editing'],_0x334f63=this['_getChangeFromId'](_0x35cad6['changeId']);let _0x9ec5b0;if(_0x334f63['data']['isOnRoot']){const _0x104e76=_0x5f2c9d['view']['getDomRoot'](_0x334f63['rootName']);_0x9ec5b0=Array['from'](_0x104e76['getClientRects']());}else{const _0x315257=this['editor']['model']['markers']['get']('revision:'+_0x35cad6['changeId']);_0x9ec5b0=Array['from'](_0x5f2c9d['mapper']['markerNameToElements'](_0x315257['name']))['map'](_0x1adb0c=>_0x5f2c9d['view']['domConverter']['mapViewToDom'](_0x1adb0c))['map'](_0x5eeb0f=>Array['from'](_0x5eeb0f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x9ec5b0[0x0];return _0x9ec5b0['find'](_0x4bcb0c=>_0x4bcb0c['top']-0x3<=this['_activeViewTarget']['y']&&_0x4bcb0c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4bcb0c['left']-0x3<=this['_activeViewTarget']['x']&&_0x4bcb0c['right']+0x3>=this['_activeViewTarget']['x'])||_0x9ec5b0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x12179b,_0x3d1aa9,_0x47fa00,_0x44099d)=>{this['activeView']=_0x47fa00?this['_getViewForChange'](_0x47fa00):null,this['editor']['model']['change'](()=>{const _0x3554d3=this['editor']['editing'];_0x44099d&&(_0x44099d['data']['isOnRoot']?_0x3554d3['view']['change'](_0x21f997=>{_0x21f997['removeClass']('ck-revision-history-root--active',_0x3554d3['view']['document']['getRoot'](_0x44099d['rootName']));}):_0x3554d3['reconvertMarker']('revision:'+_0x44099d['id'])),_0x47fa00&&(_0x47fa00['data']['isOnRoot']?_0x3554d3['view']['change'](_0x51d479=>{_0x51d479['addClass']('ck-revision-history-root--active',_0x3554d3['view']['document']['getRoot'](_0x47fa00['rootName']));}):_0x3554d3['reconvertMarker']('revision:'+_0x47fa00['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x350e3f,_0x30e265)=>{if(this['activeChange'])return;const _0x23aced=this['_findChangeIdFromDomTarget'](_0x30e265['target']),_0x218af2=this['_changeIdToChange']['get'](_0x23aced);_0x218af2?(this['_activeViewTarget']={'x':_0x30e265['domEvent']['x'],'y':_0x30e265['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x218af2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3256d8,_0x37f44a)=>{const _0x43147f=this['_findChangeIdFromDomTarget'](_0x37f44a['target']),_0x186679=this['_changeIdToChange']['get'](_0x43147f);_0x186679?(this['_activeViewTarget']={'x':_0x37f44a['domEvent']['x'],'y':_0x37f44a['domEvent']['y']},_0x186679===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x186679):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4ff235){do{const _0x4f51bb=_0x4ff235['getAttribute']('data-change-id');if(_0x4f51bb)return _0x4f51bb;_0x4ff235=_0x4ff235['parent'];}while(_0x4ff235);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5cb495=>{for(const _0x1aab4d of this['editor']['model']['markers'])_0x5cb495['removeMarker'](_0x1aab4d);});}}function X(_0x1a21b7,_0x305b97){return(_0x3d09c4,_0x599b4f,_0x35d54f)=>{if(!_0x35d54f['consumable']['test'](_0x599b4f['markerRange'],_0x3d09c4['name']))return;const _0x34eee5=_0x599b4f['markerRange']['getWalker'](),_0x50edde=_0x599b4f['markerRange']['start'],_0x5988bd=_0x1a21b7['model']['schema'];let _0x78ae48=null,_0x181b0b=null,_0x33544a=!0x1,_0xa43ebf=!0x1;for(const _0x589763 of _0x34eee5){const _0x58d8e5=_0x589763['item'];_0x33544a=_0x33544a||_0x5988bd['isContent'](_0x58d8e5);const _0x37e8a1=_0x35d54f['mapper']['toViewElement'](_0x58d8e5);if(_0x37e8a1&&_0x37e8a1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x589763['type']&&(_0x5988bd['isBlock'](_0x58d8e5)&&!_0x5988bd['isLimit'](_0x58d8e5)&&(_0x58d8e5['nextSibling']||_0x50edde['isAtEnd']?_0x78ae48&&_0x78ae48['parent']==_0x58d8e5||(_0x78ae48=_0x58d8e5,_0x4eb303(_0x589763['previousPosition']),_0xa43ebf=!0x0):_0x181b0b=_0x181b0b||_0x589763['previousPosition']));}function _0x4eb303(_0xc5603f){const _0x2344d7=_0x35d54f['mapper']['toViewPosition'](_0xc5603f),_0x4bbe58=_0x35d54f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x305b97});_0x35d54f['writer']['insert'](_0x2344d7,_0x4bbe58),_0x35d54f['mapper']['bindElementToMarker'](_0x4bbe58,_0x599b4f['markerName']);}_0x33544a||_0xa43ebf||!_0x181b0b||_0x4eb303(_0x181b0b);};}class mt extends _0x4a9630{constructor(_0x2e4f94){super(_0x2e4f94);const _0x4598e7=_0x2e4f94['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4598e7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4598e7,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4bf6d8=this['editor'],_0x22c68b=_0x4bf6d8['plugins']['get'](m),_0x19b425=_0x22c68b['isReady']?_0x22c68b['diff']['newRevisionId']:null;_0x4bf6d8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x19b425);}['refresh'](){const {isReady:_0x3dd120,isEnabled:_0x509da8,repository:_0x5c476d,diff:_0x15aba8}=this['editor']['plugins']['get'](m),_0x5a86fb=_0x15aba8&&_0x5c476d['getLaterVisibleRevision'](_0x15aba8['newRevisionId']);this['isEnabled']=_0x3dd120&&_0x509da8&&Boolean(_0x5a86fb);}}class wt extends _0x4a9630{['_step'];constructor(_0x5a2e3a,{direction:_0x1c4218}){super(_0x5a2e3a);const _0x369bd5=_0x5a2e3a['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x1c4218?0x1:-0x1,this['listenTo'](_0x369bd5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x369bd5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x369bd5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2902f9=this['editor'],_0x16f3a1=_0x2902f9['plugins']['get'](m),{isNavigationMode:_0x2bfbef,currentChangeNumber:_0x2d6c1f}=_0x16f3a1;let _0x391921;if(_0x16f3a1['activeChange']=_0x2bfbef?_0x16f3a1['diff']['changes']['get'](_0x2d6c1f+this['_step']):_0x16f3a1['diff']['changes']['first'],_0x16f3a1['activeChange']['data']['isOnRoot'])_0x391921=_0x2902f9['editing']['view']['getDomRoot'](_0x16f3a1['activeChange']['rootName']);else{const _0xdfbb75=_0x2902f9['model']['markers']['get']('revision:'+_0x16f3a1['activeChange']['id']);_0x391921=_0x5b2979(_0x2902f9['editing'],_0xdfbb75);}_0x47b4d2({'target':_0x391921,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x13a5cc,currentChangeNumber:_0x692dfd,numberOfChanges:_0x4ac6b2,isReady:_0x89b8c,isEnabled:_0x9b5018}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x9b5018&&_0x89b8c&&_0x4ac6b2)&&(!_0x13a5cc||(0x1===this['_step']?_0x692dfd<_0x4ac6b2-0x1:_0x692dfd>0x0));}}class _i extends ts{constructor(_0x18983a){super(_0x18983a);const _0x48f58a=this['bindTemplate'],_0x4d8ce4=new te(_0x18983a),_0x4627df=new te(_0x18983a);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',(_0x419542,_0x52f120)=>_0x419542&&_0x52f120>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2ae850,_0x2d8317,_0x508e65,_0x4dc1de)=>{if(!_0x2ae850)return g(_0x18983a,'Loading...');if(!_0x508e65)return g(_0x18983a,'No\x20changes');const _0x3e1935=g(_0x18983a,'NUMBER_OF_CHANGES',_0x508e65);return _0x4dc1de?g(_0x18983a,'X_OF_Y_CHANGES',[_0x2d8317+0x1,_0x508e65]):_0x3e1935;}),_0x4d8ce4['set']({'label':g(_0x18983a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x157ddd}),_0x4627df['set']({'label':g(_0x18983a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x577587}),_0x4d8ce4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4627df['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4d8ce4['on']('execute',()=>this['fire']('execute','backward')),_0x4627df['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',_0x48f58a['if']('_isStatusLabelVisible','ck-hidden',_0x59cff6=>!_0x59cff6)]},'children':[{'text':_0x48f58a['to']('isNavigationMode',_0x3ec7fd=>_0x3ec7fd?g(_0x18983a,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x18983a,'Total')+':\x20')}]},{'text':_0x48f58a['to']('_statusText')}]},new _0x2f1e4b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4d8ce4,_0x4627df]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x527fd9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x464daa=this['editor']['editing']['view'];_0x464daa['change'](_0x1ef803=>{for(const _0x1f4796 of _0x464daa['document']['roots'])_0x1ef803['addClass'](le,_0x1f4796);});}['hide'](){const _0x5e9186=this['editor']['editing']['view'];_0x5e9186['change'](_0x3535d2=>{for(const _0x3b5e57 of _0x5e9186['document']['roots'])_0x3535d2['removeClass'](le,_0x3b5e57);});}}class R extends _0x527fd9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0xc18f7f=this['editor'],_0x191463=_0xc18f7f['plugins']['get'](m),_0x40015e=_0xc18f7f['plugins']['get'](ge);_0xc18f7f['ui']['componentFactory']['add']('exitToEditing',_0x2b1c1d=>{const _0x13ecdd=new te(_0x2b1c1d);return _0x13ecdd['set']({'label':g(_0x2b1c1d,'Back\x20to\x20editing'),'icon':_0x42d483,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x13ecdd,'execute',()=>{_0xc18f7f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x13ecdd;}),_0xc18f7f['ui']['componentFactory']['add']('restoreRevision',_0x24b2a9=>{const _0x328dfa=new te(_0x24b2a9);return _0x328dfa['set']({'label':g(_0x24b2a9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x328dfa['bind']('isEnabled')['to'](_0xc18f7f['commands']['get']('restoreRevision')),this['listenTo'](_0x328dfa,'execute',()=>_0xc18f7f['execute']('restoreRevision')),_0x328dfa;}),_0xc18f7f['ui']['componentFactory']['add']('changesNavigation',_0x5bab2d=>{const _0x3a7217=new _i(_0x5bab2d),_0x5007ec=_0xc18f7f['commands']['get']('showPreviousChange'),_0x1d91da=_0xc18f7f['commands']['get']('showNextChange');return _0x3a7217['bind']('isBackwardNavigationEnabled')['to'](_0x5007ec,'isEnabled'),_0x3a7217['bind']('isForwardNavigationEnabled')['to'](_0x1d91da,'isEnabled'),_0x3a7217['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x191463),this['listenTo'](_0x3a7217,'execute',(_0x5f5bd4,_0x38da09)=>{_0xc18f7f['execute']('forward'===_0x38da09?'showNextChange':'showPreviousChange');}),_0x3a7217;}),_0x40015e['show'](),_0x191463['on']('change:isReady',(_0x3be478,_0x2bf95e,_0x20c766)=>{_0x20c766?_0x40015e['hide']():_0x40015e['show']();});}}class at extends _0x4a54d4{['_resizeObserver']=null;constructor(_0xeaf4e5,_0x556b6a){super(_0xeaf4e5,_0x556b6a);const _0x1b177f=this['bindTemplate'];this['set']({'label':g(_0xeaf4e5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0xeaf4e5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1b177f['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 _0x21b878=this['fieldView']['element'];this['_tooltipString']=_0x21b878['scrollWidth']>_0x21b878['clientWidth']&&_0x21b878['value']||'';}}class si extends ts{constructor(_0x5cb450,_0x1c32b1,_0x42c249){super(_0x5cb450);const _0x32c643=new _0x226077();_0x32c643['set']({'content':_0x594709,'viewBox':'0\x200\x2011\x2010'});const _0x399691=['ck','ck-revision-history-sidebar__revision-author'];_0x42c249&&_0x399691['push']('ck-revision-history-sidebar__revision-author_creator');const _0x577c93=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5cb450,_0x42c249?'Revision\x20creator':'Revision\x20author')},'children':[_0x32c643,_0x1c32b1['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x399691},'children':_0x577c93});}}function oi(_0x2cbca3,_0x4202e2){const _0x23ce54=_0x2cbca3['bindTemplate'],_0x209843=_0x2cbca3['locale'],_0x31201b=_0x2bb1f1(_0x209843);_0x31201b['panelPosition']='sw';const _0x971c67=function(_0xf56ed5,_0x46471d){const _0x565a00=function(_0x51203a,_0xff4db8){const _0x45ec51=_0x51203a['locale'],_0xaec155={'Compare\x20against\x20selected':g(_0x45ec51,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x45ec51,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x45ec51,'Restore\x20this\x20revision')};return _0xff4db8['map'](_0x28420b=>{const _0x316dba=_0xaec155[_0x28420b['name']];return _0x316dba&&_0x316dba!==_0x28420b['name']&&(_0x28420b['name']=_0x316dba),_0x28420b;});}(_0xf56ed5,_0x46471d),_0x417525=new _0x3f8e7a();for(const _0x1fac61 of _0x565a00){const _0x25906a={'type':'button','model':new to({'label':_0x1fac61['name'],'class':_0x1fac61['class'],'withText':!0x0,'role':'menuitem','_action':_0x1fac61['action']})};_0x25906a['model']['bind']('isEnabled')['to'](_0xf56ed5,'isActionsDropdownOpen',_0x226431=>'function'!=typeof _0x1fac61['isEnabled']||(!_0x226431||_0x1fac61['isEnabled'](_0xf56ed5))),_0x417525['add'](_0x25906a);}return _0x417525;}(_0x2cbca3,_0x4202e2);return _0x2cbca3['bind']('isActionsDropdownOpen')['to'](_0x31201b,'isOpen'),_0x31201b['buttonView']['set']({'label':g(_0x209843,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x14de33}),_0x31201b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x23ce54['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x23ce54['to'](_0x5e4434=>_0x5e4434['stopPropagation']())}}),_0x31201b['on']('execute',_0x36705e=>{_0x2cbca3['isReady']&&'function'==typeof _0x36705e['source']['_action']&&_0x36705e['source']['_action'](_0x2cbca3);}),_0x43d39a(_0x31201b,_0x971c67,{'role':'menu'}),_0x31201b['listenTo'](_0x2cbca3,'change:isActionsDropdownOpen',(_0x40c076,_0xde275d,_0x4fc435)=>{if(_0x4fc435)for(const _0x3a59d6 of _0x31201b['listView']['items']){const _0x176a4e=_0x3a59d6['children']['first'],_0x17ba6b=_0x4202e2['find'](_0x249e50=>_0x249e50['action']===_0x176a4e['_action'])['isVisible'];_0x3a59d6['isVisible']=void 0x0===_0x17ba6b||_0x17ba6b(_0x2cbca3);}}),_0x31201b;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5e1318,_0x51983f,_0x239d2c,_0x50b28e){super(_0x5e1318);const _0x94c8a0=this['bindTemplate'],_0x4e9387=function(_0x4e5e3c,_0x2754d5){const _0x1a52d4=Array['from'](_0x2754d5['authors'])['filter'](_0x558675=>_0x558675!=_0x2754d5['creator']);return _0x2754d5['creator']&&_0x1a52d4['unshift'](_0x2754d5['creator']),_0x1a52d4['map'](_0x21da3e=>new si(_0x4e5e3c,_0x21da3e,_0x21da3e==_0x2754d5['creator']));}(_0x5e1318,_0x51983f);this['id']=_0x51983f['id'],this['_revision']=_0x51983f,this['_requireRevisionName']=_0x50b28e,this['bind']('name','createdAt')['to'](_0x51983f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x226581=>{return _0x23b04b=_0x5e1318['uiLanguage'],(_0x33fe88=_0x226581)['toLocaleDateString'](_0x23b04b,{'month':'long','day':'numeric'})+',\x20'+_0x33fe88['toLocaleTimeString'](_0x23b04b,{'hour':'numeric','minute':'numeric'});var _0x23b04b,_0x33fe88;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x5e1318,_0x37da91),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3c4c57=>_0x3c4c57||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x42b67a,_0x2b14b6)=>_0x42b67a&&_0x2b14b6),this['revisionActionsView']=_0x239d2c&&_0x239d2c['length']?oi(this,_0x239d2c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x94c8a0['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x94c8a0['if']('isEnabled','ck-disabled',_0x4f7a9c=>!_0x4f7a9c),_0x94c8a0['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x94c8a0['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x94c8a0['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':_0x94c8a0['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':_0x4e9387}]},this['revisionActionsView']],'on':{'click':_0x94c8a0['to'](_0x368680=>{_0x368680['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5c26b3=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5c26b3,'change',()=>{this['_requireRevisionName']&&!_0x5c26b3['value']||this['fire']('setName',{'id':this['id'],'name':_0x5c26b3['value']}),_0x5c26b3['value']||(_0x5c26b3['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x1afe9c,_0x53e21b){const _0x21f1ac=_0x3f3942['fromJSDate'](_0x1afe9c)['setLocale'](_0x53e21b),_0x57dcfc=_0x3f3942['local'](),_0x3a5d65=_0x57dcfc['minus']({'days':0x1})['startOf']('day');let _0x2e910b,_0x3da1a8;return _0x21f1ac['hasSame'](_0x57dcfc,'day')?(_0x2e910b=_0x21f1ac['startOf']('day')['toJSDate'](),_0x3da1a8=_0x21f1ac['toRelativeCalendar']()):_0x21f1ac['hasSame'](_0x3a5d65,'day')?(_0x2e910b=_0x3a5d65['toJSDate'](),_0x3da1a8=_0x21f1ac['toRelativeCalendar']()):_0x21f1ac['hasSame'](_0x57dcfc,'week')?(_0x2e910b=_0x21f1ac['startOf']('week')['toJSDate'](),_0x3da1a8=_0x21f1ac['weekdayLong']||''):_0x21f1ac['hasSame'](_0x57dcfc,'year')?(_0x2e910b=_0x21f1ac['startOf']('month')['toJSDate'](),_0x3da1a8=_0x21f1ac['monthLong']||''):(_0x2e910b=_0x21f1ac['startOf']('year')['toJSDate'](),_0x3da1a8=String(_0x21f1ac['year'])),{'startDate':_0x2e910b,'localizedPeriodName':_0x3da1a8};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x44324a,_0x329500,_0x4dd575,_0x407925){super(_0x44324a);const _0x3d1cc7=ai(_0x329500,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x329500,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4dd575,this['_requireRevisionName']=_0x407925,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':_0x3d1cc7}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x44aa29){const _0x15e9e6=new hi(this['locale'],_0x44aa29,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x15e9e6);}['removeRevision'](_0x18f33a){const _0xa0d111=this['revisionViews']['find'](_0x23a74d=>_0x23a74d['id']===_0x18f33a['id']);this['revisionViews']['remove'](_0xa0d111);}}class as extends ts{constructor(_0xea1fa1){super(_0xea1fa1);const _0x48cd9f=new _0x226077();_0x48cd9f['content']=_0x278e4f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x48cd9f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xea1fa1,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x35e547,_0xd0fdef,_0x65f5d,_0x411bbe){super(_0x35e547);const _0x59382c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xd0fdef,this['_revisionActions']=_0x65f5d,this['_requireRevisionName']=_0x411bbe,this['on']('select',(_0x139512,_0x2db29c)=>{this['fire']('revisionSelected',_0x2db29c);}),this['on']('setName',(_0x308fb9,_0x1c4f7e)=>{this['fire']('revisionSetName',_0x1c4f7e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x35e547),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x59382c['if']('isEnabled','ck-disabled',_0x2abff6=>!_0x2abff6)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5ab2df of this['_revisions'])this['_addRevision'](_0x5ab2df);this['_revisions']['on']('add',(_0x5d4073,_0x5d278e)=>{this['_addRevision'](_0x5d278e);}),this['_revisions']['on']('remove',(_0x5f079b,_0xf3ff32)=>{this['_removeRevision'](_0xf3ff32);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5c02e9=>_0x5c02e9['revisionViews']['map'](_0x265425=>_0x265425))['flat']();}['selectRevision'](_0x1d9fc6){for(const _0xd648a6 of this['revisionViews'])_0x1d9fc6&&_0x1d9fc6['id']===_0xd648a6['id']?_0xd648a6['select']():_0xd648a6['deselect']();}['highlightRevisions'](_0x2bc745){for(const _0x22a0ff of this['revisionViews'])_0x2bc745['some'](({id:_0x59d5b5})=>_0x59d5b5===_0x22a0ff['id'])?_0x22a0ff['highlight']():_0x22a0ff['unhighlight']();}['_addRevision'](_0x5a2001){const _0x2cbe95=ai(_0x5a2001['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x301cc4=this['timePeriodViews']['get'](0x0);_0x301cc4&&_0x301cc4['startDate']['getTime']()===_0x2cbe95['getTime']()||(_0x301cc4=new di(this['locale'],_0x2cbe95,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x301cc4)),_0x301cc4['addRevision'](_0x5a2001);}['_removeRevision'](_0x28696){const _0x478486=ai(_0x28696['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x478486)['removeRevision'](_0x28696);}['_getTimePeriodViewByStartDate'](_0x316a60){return this['timePeriodViews']['find'](_0x248022=>_0x248022['startDate']['getTime']()===_0x316a60['getTime']());}}class d extends _0x527fd9{['_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
|
-
_0x9005f2(_0x558623){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x214329,_0x4f1fc0){super(_0x4f1fc0),this['sourceElement']=_0x214329,this['model']['document']['createRoot']();const _0x2492b0=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2492b0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x31e7b0,_0x2abf72){const _0x522a72=new this(_0x31e7b0,_0x2abf72);return await _0x522a72['initPlugins'](),await _0x522a72['ui']['init'](_0x31e7b0),await _0x522a72['data']['init'](_0x522a72['config']['get']('initialData')||''),_0x522a72['fire']('ready'),_0x522a72;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x5c3263{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fdb4d){function _0x1b8c3f(_0x48bda2){return _0x48bda2['map'](_0x3c9c91=>String['fromCharCode'](_0x3c9c91))['join']('');}super(_0x2fdb4d),this['result']='end',_0x2fdb4d[_0x1b8c3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b8c3f([0x76,0x69,0x65,0x77])][_0x1b8c3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b8c3f([0x61,0x75,0x74,0x6f]),_0x2fdb4d[_0x1b8c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1b8c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b8c3f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1b8c3f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1b8c3f([0x6f,0x6b])});}}class k extends _0x5c3263{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x553a71){if(super(_0x553a71),!this['editor']['config']['get']('revisionHistory'))throw new _0x4688a9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x52a5b8=>this['_showRevisionViewer']({..._0x52a5b8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x28ce96=>this['_closeRevisionViewer'](_0x28ce96)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1c7e00=>this['_restoreRevision'](_0x1c7e00)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x31aded){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x31aded;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x10c570){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x10c570);}['getRevision'](_0x239ad2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x239ad2);}['getRevisions'](_0x35d942){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x35d942||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xd10edb=this['editor'],_0x354647=_0x153762(_0xd10edb,p),_0x29ae49=_0xd10edb['plugins']['get']('RevisionTracker'),_0x31bed4=_0xd10edb['plugins']['get']('Users')['users'];return _0x354647['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x354647['lazyRoots'],(_0x354647['plugins']['push'](_t,m,R,class extends _0x5c3263{static get['requires'](){return[m,'Users'];}['init'](){const _0x494640=this['editor']['plugins']['get']('Users');for(const _0x138c00 of _0x31bed4)_0x138c00['isAnonymous']||_0x494640['getUser'](_0x138c00['id'])||_0x494640['addUser'](_0x138c00);const _0x1c8657=_0x29ae49['repository']['getRevisions']();let _0x5c64c9=null;const _0x2ba7f8=this['editor']['plugins']['get']('RevisionViewer');_0x2ba7f8['adapter']=_0x29ae49['adapter'],_0x2ba7f8['bind']('isEnabled')['to'](_0x29ae49),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xd10edb,'isReadOnly',_0x5755f3=>!_0x5755f3);for(const _0x4bc2d5 of _0x1c8657){const _0x4b0c6b=null===_0x4bc2d5['creator'];if(_0x4b0c6b&&_0x4bc2d5['toVersion']===_0x4bc2d5['fromVersion'])continue;const _0x2c4e41=_0x4bc2d5['toJSON']();_0x2ba7f8['addRevisionData'](_0x2c4e41,(_0x2ff881,_0x321323,_0x5e19fb)=>{if(_0x4b0c6b){if(_0x5c64c9)_0x5c64c9['_update'](_0x2ff881,_0x321323);else{if(!_0x321323){const _0x108b32=_0x5e19fb['toJSON']();_0x108b32['id']=_0x2fb20f(),_0x29ae49['saveRevision'](_0x108b32,_0x5e19fb['toVersion'])['then'](_0x5e1183=>{_0x5c64c9=_0x5e1183;});}}}else _0x4bc2d5['_update'](_0x2ff881,_0x321323);});}}},d),_0x354647);}['_enhanceShowRevisionViewerCallback'](){const _0x146944=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x53fbba=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xceb76=this['editor']['plugins']['get']('Autosave');await _0xceb76['save']();}else await _0x53fbba['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x341f81=this['editor']['plugins']['get']('Dialog');_0x341f81['isOpen']&&_0x341f81['hide']();}const _0x2ec115=this['_getRevisionViewerEditorConfig']();return _0x146944(_0x2ec115)['then'](_0x5b6445=>{return(this['_viewerEditor']=_0x5b6445,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'),_0x5b6445);})['catch'](_0xc244f7=>(console['error'](_0xc244f7),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x370952=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'](),_0x370952(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3312c4=this['editor']['plugins']['get']('Annotations');_0x3312c4['refreshVisibility'](),_0x3312c4['refreshPositioning']();}})));}['_showRevisionViewer'](_0x339729){const _0x55dd3d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x26a9e2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x533dc5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x533dc5,_0x339729)['then'](_0x1d4d51=>(_0x26a9e2['style']['display']='block',_0x55dd3d['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1d4d51));}['_closeRevisionViewer'](_0x4a5537){const _0x4789e5=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4789e5['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4a5537['destroy']();}async['_restoreRevision'](_0x1d2c14){const _0x24bb10=this['editor'],_0x2e0769=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1445e8=_0x24bb10['plugins']['get']('RevisionTracker'),_0x765934=_0x24bb10['plugins']['get']('RevisionHistoryUtils'),_0x16b0f0=_0x2e0769['repository']['getRevision'](_0x1d2c14);let _0x10f9f4,_0x1bf5c5,_0x58e512;try{await _0x765934['loadRevisionData'](_0x16b0f0,this['adapter']),_0x10f9f4=_0x765934['getRevisionDocumentData'](_0x16b0f0),_0x1bf5c5=_0x765934['getRevisionRootsAttributes'](_0x16b0f0);}catch(_0x22f422){return void console['error'](_0x22f422);}_0x24bb10['model']['change'](_0x3ee522=>{for(const _0x3189cc of Array['from'](_0x24bb10['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3ee522['removeMarker'](_0x3189cc);}),_0x2e0769['isReady']=!0x1,_0x24bb10['model']['enqueueChange'](_0x3c00a7=>{_0x3c00a7['setSelection'](null),_0x3c00a7['removeSelectionAttribute'](_0x24bb10['model']['document']['selection']['getAttributeKeys']());const _0x237c9b=Object['keys'](_0x10f9f4);for(const _0x487b72 of _0x24bb10['model']['document']['roots'])'$graveyard'!=_0x487b72['rootName']&&_0x487b72['isAttached']()&&!_0x237c9b['includes'](_0x487b72['rootName'])&&_0x3c00a7['detachRoot'](_0x487b72);for(const _0x1cca2f of _0x237c9b){let _0x259ee6=_0x24bb10['model']['document']['getRoot'](_0x1cca2f);_0x259ee6&&_0x259ee6['isAttached']()||(_0x259ee6=_0x3c00a7['addRoot'](_0x1cca2f));const _0x26fcb1=_0x1bf5c5[_0x1cca2f],_0x3c587f=Object['keys'](_0x26fcb1),_0x230cf7=_0x10f9f4[_0x1cca2f];for(const _0x1e7f74 of _0x259ee6['getAttributeKeys']())_0x3c587f['includes'](_0x1e7f74)||_0x3c00a7['removeAttribute'](_0x1e7f74,_0x259ee6);for(const _0x1b5a0f of _0x3c587f)_0x3c00a7['setAttribute'](_0x1b5a0f,_0x1bf5c5[_0x1cca2f][_0x1b5a0f],_0x259ee6);_0x3c00a7['remove'](_0x3c00a7['createRangeIn'](_0x259ee6)),_0x3c00a7['insert'](_0x24bb10['data']['parse'](_0x230cf7,_0x259ee6),_0x259ee6,0x0);}});const _0x3ea864=g(_0x24bb10['locale'],'Restored');if(_0x16b0f0['name'])_0x58e512=-0x1==_0x16b0f0['name']['indexOf'](_0x3ea864)?_0x3ea864+':\x20'+_0x16b0f0['name']:_0x16b0f0['name'];else _0x58e512=_0x3ea864+':\x20'+(_0x16b0f0['createdAt']['toLocaleDateString'](_0x24bb10['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x16b0f0['createdAt']['toLocaleTimeString'](_0x24bb10['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1445e8['saveRevision']({'name':_0x58e512}),_0x2e0769['isReady']=!0x0,_0x24bb10['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,ge 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(_0x3d64b7){super(_0x3d64b7),this['_revisionViewer']=_0x3d64b7['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1a87e4=this['_revisionsRepository']['_revisions'],_0x31b6fd=this['_createRevisionActions'](),_0x54715a=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x1a87e4,_0x31b6fd,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',(_0x123d31,_0x488f70)=>{_0x488f70['revisionViews']['on']('add',(_0x5880f0,_0x58ec71)=>{_0x58ec71['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)),_0x54715a['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4b9452=this['_revisionsRepository']['getRevision'](0x0);if(_0x4b9452){const _0x58de15=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4b9452['id']);this['_revisionViewer']['compare'](_0x4b9452,_0x58de15);}}['_handleRevisionSelected'](_0x4e40e2,_0x3ffd63){const _0x19d582=this['_revisionsRepository']['getRevision'](_0x3ffd63['id']),_0x151573=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x19d582['id']);this['_revisionViewer']['compare'](_0x19d582,_0x151573);}['_handleRevisionSetName'](_0x5dc93e,_0x5f1a04){this['_revisionsRepository']['getRevision'](_0x5f1a04['id'])['setName'](_0x5f1a04['name']);}['_handleDiffChange'](_0x29ff63,_0xb85bdd,_0x39704b){const _0x287685=this['_revisionsRepository']['getRevisionsInDiff'](_0x39704b);_0x287685['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x287685),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x287685[0x0]));}['_createRevisionActions'](){const _0x3f2441=this['editor'],_0x1d58ad=d['availableRevisionActions'],_0x395b0e=_0x3f2441['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x395b0e['length'])return _0x395b0e['map'](_0x3ee2a2=>{const _0x23e24b='string'==typeof _0x3ee2a2?Object['assign']({},_0x1d58ad[_0x3ee2a2]):_0x3ee2a2;return _0x23e24b['action']=_0x23e24b['action']['bind'](this,_0x3f2441),_0x23e24b['isVisible']&&(_0x23e24b['isVisible']=_0x23e24b['isVisible']['bind'](this,_0x3f2441)),_0x23e24b;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3ba104},_0x14a77c)=>{const _0x36d242=_0x3ba104['get'](m),_0x5e0b1b=_0x36d242['repository'];let _0x1f6f86=_0x36d242['diff']['newRevisionId'],_0x347dba=_0x14a77c['id'];_0x5e0b1b['getIndex'](_0x1f6f86)>_0x5e0b1b['getIndex'](_0x347dba)&&([_0x1f6f86,_0x347dba]=[_0x347dba,_0x1f6f86]),_0x36d242['compare'](_0x1f6f86,_0x347dba);},'isVisible':({plugins:_0x590f8b},_0x584e53)=>{const _0x2186b5=_0x590f8b['get'](m);return!(_0x2186b5['repository']['getRevisionsInDiff'](_0x2186b5['diff'])['length']>0x2)&&!_0x584e53['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x32ea61,{id:_0x23db8c})=>{_0x32ea61['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x23db8c);},'isVisible':({plugins:_0x4069f8},_0x421b16)=>!!_0x4069f8['get'](m)['repository']['getLaterVisibleRevision'](_0x421b16['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1d8a7a},{id:_0xe916e,revisionNameView:_0x3bafe7})=>{const _0x6e10=_0x1d8a7a['get'](m),_0x1b2829=_0x6e10['repository']['getEarlierVisibleRevision'](_0xe916e);_0x6e10['compare'](_0xe916e,_0x1b2829),_0x3bafe7['focus'](),_0x3bafe7['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1bc060,_0x2a9647){super(_0x1bc060),this['_view']=_0x2a9647,this['_toolbarConfig']=et(_0x1bc060['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x2f6a8c){const _0x3a7ddc=this['editor'],_0x3dbf46=this['view'],_0x31f381=_0x3a7ddc['editing']['view'],_0x2315e8=_0x3dbf46['editable'],_0x42dfc4=_0x31f381['document']['getRoot']();_0x2315e8['name']=_0x42dfc4['rootName'],_0x3dbf46['render']();const _0x2da7bd=_0x2315e8['element'];this['setEditableElement'](_0x2315e8['name'],_0x2da7bd),_0x3dbf46['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x31f381['attachDomRoot'](_0x2da7bd),this['_elementReplacer']['replace'](_0x2f6a8c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x28b844=this['view'],_0x909226=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x909226['detachDomRoot'](_0x28b844['editable']['name']),_0x28b844['destroy']();}['_initToolbar'](){const _0x4855e0=this['view'];_0x4855e0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4855e0['stickyPanel']['limiterElement']=_0x4855e0['element'],_0x4855e0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x486fd5})=>_0x486fd5),_0x4855e0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4855e0['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x31b412,_0x119a7e,_0x51d0e9={}){super(_0x31b412),this['stickyPanel']=new ht(_0x31b412),this['toolbar']=new dt(_0x31b412,{'shouldGroupWhenFull':_0x51d0e9['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x31b412,_0x119a7e);}['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
|
+
_0x52547e(_0x3270d8){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x723ecf,_0x44effd){super(_0x44effd),this['sourceElement']=_0x723ecf,this['model']['document']['createRoot']();const _0x418b62=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x418b62);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1b5bc8,_0x24ee4a){const _0x2e5d00=new this(_0x1b5bc8,_0x24ee4a);return await _0x2e5d00['initPlugins'](),await _0x2e5d00['ui']['init'](_0x1b5bc8),await _0x2e5d00['data']['init'](_0x2e5d00['config']['get']('initialData')||''),_0x2e5d00['fire']('ready'),_0x2e5d00;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x527fd9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x381c68){function _0x424474(_0x18adeb){return _0x18adeb['map'](_0x1c44cb=>String['fromCharCode'](_0x1c44cb))['join']('');}super(_0x381c68),this['result']='end',_0x381c68[_0x424474([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x424474([0x76,0x69,0x65,0x77])][_0x424474([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x424474([0x61,0x75,0x74,0x6f]),_0x381c68[_0x424474([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x424474([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x424474([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x424474([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x424474([0x6f,0x6b])});}}class k extends _0x527fd9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x45d8be){if(super(_0x45d8be),!this['editor']['config']['get']('revisionHistory'))throw new _0x5afe82('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1928c5=>this['_showRevisionViewer']({..._0x1928c5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x148853=>this['_closeRevisionViewer'](_0x148853)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x523f3f=>this['_restoreRevision'](_0x523f3f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4f6ee5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4f6ee5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xb76c5b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xb76c5b);}['getRevision'](_0x572d6d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x572d6d);}['getRevisions'](_0x16fd41){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x16fd41||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4117b1=this['editor'],_0x12e5b3=_0x5ba2f0(_0x4117b1,p),_0x2dfb8e=_0x4117b1['plugins']['get']('RevisionTracker'),_0x2805d2=_0x4117b1['plugins']['get']('Users')['users'];return _0x12e5b3['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x12e5b3['lazyRoots'],(_0x12e5b3['plugins']['push'](_t,m,R,class extends _0x527fd9{static get['requires'](){return[m,'Users'];}['init'](){const _0xf5b3eb=this['editor']['plugins']['get']('Users');for(const _0x1fe626 of _0x2805d2)_0x1fe626['isAnonymous']||_0xf5b3eb['getUser'](_0x1fe626['id'])||_0xf5b3eb['addUser'](_0x1fe626);const _0x5bc591=_0x2dfb8e['repository']['getRevisions']();let _0x6c076=null;const _0x472af6=this['editor']['plugins']['get']('RevisionViewer');_0x472af6['adapter']=_0x2dfb8e['adapter'],_0x472af6['bind']('isEnabled')['to'](_0x2dfb8e),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4117b1,'isReadOnly',_0x125992=>!_0x125992);for(const _0x2d6f51 of _0x5bc591){const _0x53139a=null===_0x2d6f51['creator'];if(_0x53139a&&_0x2d6f51['toVersion']===_0x2d6f51['fromVersion'])continue;const _0x100b1c=_0x2d6f51['toJSON']();_0x472af6['addRevisionData'](_0x100b1c,(_0xd6d8f2,_0x54f86e,_0x13168a)=>{if(_0x53139a){if(_0x6c076)_0x6c076['_update'](_0xd6d8f2,_0x54f86e);else{if(!_0x54f86e){const _0x4584d5=_0x13168a['toJSON']();_0x4584d5['id']=_0x571ba5(),_0x2dfb8e['saveRevision'](_0x4584d5,_0x13168a['toVersion'])['then'](_0xe2ba43=>{_0x6c076=_0xe2ba43;});}}}else _0x2d6f51['_update'](_0xd6d8f2,_0x54f86e);});}}},d),_0x12e5b3);}['_enhanceShowRevisionViewerCallback'](){const _0x33f819=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2bbd20=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x12a507=this['editor']['plugins']['get']('Autosave');await _0x12a507['save']();}else await _0x2bbd20['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xbdde47=this['editor']['plugins']['get']('Dialog');_0xbdde47['isOpen']&&_0xbdde47['hide']();}const _0x160676=this['_getRevisionViewerEditorConfig']();return _0x33f819(_0x160676)['then'](_0x6d07bf=>{return(this['_viewerEditor']=_0x6d07bf,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'),_0x6d07bf);})['catch'](_0x122322=>(console['error'](_0x122322),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5fe5f1=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'](),_0x5fe5f1(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5081c2=this['editor']['plugins']['get']('Annotations');_0x5081c2['refreshVisibility'](),_0x5081c2['refreshPositioning']();}})));}['_showRevisionViewer'](_0x42af73){const _0x19b2ff=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x41bef6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x45f63d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x45f63d,_0x42af73)['then'](_0xa4032f=>(_0x41bef6['style']['display']='block',_0x19b2ff['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xa4032f));}['_closeRevisionViewer'](_0x5769b2){const _0x3de08a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3de08a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5769b2['destroy']();}async['_restoreRevision'](_0x22349c){const _0xf7e22f=this['editor'],_0x3f71f5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x395d84=_0xf7e22f['plugins']['get']('RevisionTracker'),_0x11e497=_0xf7e22f['plugins']['get']('RevisionHistoryUtils'),_0x26c4b8=_0x3f71f5['repository']['getRevision'](_0x22349c);let _0x457d7b,_0x5855c0,_0x2122ff;try{await _0x11e497['loadRevisionData'](_0x26c4b8,this['adapter']),_0x457d7b=_0x11e497['getRevisionDocumentData'](_0x26c4b8),_0x5855c0=_0x11e497['getRevisionRootsAttributes'](_0x26c4b8);}catch(_0x16ddd8){return void console['error'](_0x16ddd8);}_0xf7e22f['model']['change'](_0x3ad997=>{for(const _0x574d99 of Array['from'](_0xf7e22f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3ad997['removeMarker'](_0x574d99);}),_0x3f71f5['isReady']=!0x1,_0xf7e22f['model']['enqueueChange'](_0x45c660=>{_0x45c660['setSelection'](null),_0x45c660['removeSelectionAttribute'](_0xf7e22f['model']['document']['selection']['getAttributeKeys']());const _0x4358e9=Object['keys'](_0x457d7b);for(const _0x34b67c of _0xf7e22f['model']['document']['roots'])'$graveyard'!=_0x34b67c['rootName']&&_0x34b67c['isAttached']()&&!_0x4358e9['includes'](_0x34b67c['rootName'])&&_0x45c660['detachRoot'](_0x34b67c);for(const _0x12599f of _0x4358e9){let _0x40aaa8=_0xf7e22f['model']['document']['getRoot'](_0x12599f);_0x40aaa8&&_0x40aaa8['isAttached']()||(_0x40aaa8=_0x45c660['addRoot'](_0x12599f));const _0x2fd5c0=_0x5855c0[_0x12599f],_0x4df9c8=Object['keys'](_0x2fd5c0),_0x43c17a=_0x457d7b[_0x12599f];for(const _0x2974b9 of _0x40aaa8['getAttributeKeys']())_0x4df9c8['includes'](_0x2974b9)||_0x45c660['removeAttribute'](_0x2974b9,_0x40aaa8);for(const _0x47907f of _0x4df9c8)_0x45c660['setAttribute'](_0x47907f,_0x5855c0[_0x12599f][_0x47907f],_0x40aaa8);_0x45c660['remove'](_0x45c660['createRangeIn'](_0x40aaa8)),_0x45c660['insert'](_0xf7e22f['data']['parse'](_0x43c17a,_0x40aaa8),_0x40aaa8,0x0);}});const _0xcd5846=g(_0xf7e22f['locale'],'Restored');if(_0x26c4b8['name'])_0x2122ff=-0x1==_0x26c4b8['name']['indexOf'](_0xcd5846)?_0xcd5846+':\x20'+_0x26c4b8['name']:_0x26c4b8['name'];else _0x2122ff=_0xcd5846+':\x20'+(_0x26c4b8['createdAt']['toLocaleDateString'](_0xf7e22f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x26c4b8['createdAt']['toLocaleTimeString'](_0xf7e22f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x395d84['saveRevision']({'name':_0x2122ff}),_0x3f71f5['isReady']=!0x0,_0xf7e22f['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,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|