@ckeditor/ckeditor5-revision-history 45.1.0-alpha.3 → 45.1.0-alpha.4
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/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_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
|
-
|
|
23
|
+
import{ObservableMixin as _0x23464f,uid as _0x11e8c2,Collection as _0x4aa85f,logWarning as _0xdb9ca7,FocusTracker as _0xb00117,KeystrokeHandler as _0x101bde,scrollViewportToShowTarget as _0x4c6269,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x43b617}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x444a1c,set as _0x57e13d,unset as _0x37b3ce,isEqual as _0x57d80d}from'es-toolkit/compat';import{Plugin as _0x58bc6f,PendingActions as _0x3023af,Command as _0x4024a8,ElementApiMixin as _0x5aa471,Editor as _0x54efd4}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2d5273,getMarkerDomElement as _0xba3d92,ConfirmMixin as _0x45029b,sanitizeEditorConfig as _0x23feb7}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x17f1f6,ViewAttributeElement as _0x359123,ViewEmptyElement as _0x533ea2,ViewRawElement as _0x28928d,ViewUIElement as _0x49f14a,ViewDocumentFragment as _0x5e41e3,ViewText as _0x30dff0,ViewElement as _0x23c0d1,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3be67e,IconChevronUp as _0x2859cd,IconChevronDown as _0x4e16f1,IconUndo as _0x529c1c,IconUser as _0x1f2c16,IconThreeVerticalDots as _0x60fa10}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x45ce53,injectCssTransitionDisabler as ts,submitHandler as _0x501da0,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0xbd0f73,ListView as _0x86dbad,ListItemView as te,ButtonView as _0xf1e793,MenuBarMenuView as _0x5f3a05,MenuBarMenuListView as _0x1e21b2,MenuBarMenuListItemView as _0xb7a14,MenuBarMenuListItemButtonView as _0x438cc2,ContextualBalloon as _0x109f69,ToolbarSeparatorView as _0x4a94af,IconView as _0x28f921,addListToDropdown as _0x2116eb,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 _0x4bbc77}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x23464f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3f9e3b){super(),this['id']=_0x3f9e3b['id']||_0x11e8c2(),this['creator']=_0x3f9e3b['creator']||null,this['authors']=_0x3f9e3b['authors']||[],this['diffData']=_0x3f9e3b['diffData']||null,this['toVersion']=_0x3f9e3b['toVersion']||0x0,this['fromVersion']=_0x3f9e3b['fromVersion']||0x0,this['set']('name',_0x3f9e3b['name']||''),this['set']('createdAt',_0x3f9e3b['createdAt']||new Date()),this['set']('attributes',_0x3f9e3b['attributes']||{});}['setName'](_0x5b29bd){this['_update']({'name':_0x5b29bd});}['setAttribute'](_0x4e5506,_0x230bf9){const _0x3ba72c=_0x444a1c(this['attributes']);_0x57e13d(_0x3ba72c,_0x4e5506,_0x230bf9),this['_update']({'attributes':_0x3ba72c});}['removeAttribute'](_0x4edec2){const _0x40db9b=_0x444a1c(this['attributes']);_0x37b3ce(_0x40db9b,_0x4edec2),this['_update']({'attributes':_0x40db9b});}['_update'](_0x280694,_0x1e90d8=!0x1){let _0x5de71d=!0x1;const _0x49c24={'id':this['id']},_0x161f7e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x26de62 of _0x161f7e){const _0x404aa2=_0x280694[_0x26de62];void 0x0!==_0x404aa2&&_0x404aa2!==this[_0x26de62]&&(this[_0x26de62]=_0x404aa2,_0x49c24[_0x26de62]=_0x404aa2,_0x5de71d=!0x0);}_0x5de71d&&(_0x49c24['authors']&&(_0x49c24['authorsIds']=_0x49c24['authors']['map'](_0x1db73b=>_0x1db73b['id']),delete _0x49c24['authors']),this['fire']('_update',_0x49c24,_0x1e90d8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x235d6f=>_0x235d6f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x58bc6f{['_revisions'];static get['requires'](){return[_0x2d5273];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1f6a96){super(_0x1f6a96),this['_revisions']=new _0x4aa85f();}['afterInit'](){!async function(_0x4c515c){const _0x486fe0=_0x25f5b1([0x55,0x4b,0x62,0x36,0x76,0x53,0x74,0x54,0x58,0x6a,0x7a,0x79,0x57,0x6f,0x51,0x43,0x33,0x35,0x64,0x41,0x56,0x50,0x4e,0x67,0x6e,0x48,0x63,0x65,0x45,0x6d,0x52,0x73,0x32,0x77,0x4a,0x31,0x44,0x72,0x5a,0x4f,0x37,0x71,0x6c,0x34,0x59,0x30,0x69,0x46,0x49,0x70,0x61,0x68,0x38,0x42,0x6b,0x78,0x75,0x66,0x39,0x4d,0x4c,0x47]),_0x400ea8=0xeb829,_0x3aaf5d=0x35619ada,_0x18941e=0x3566fd52^_0x3aaf5d,_0x44723e=window[_0x25f5b1([0x44,0x61,0x74,0x65])][_0x25f5b1([0x6e,0x6f,0x77])](),_0x46fd1f=_0x4c515c[_0x25f5b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b0367=new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18df28=>{_0x46fd1f[_0x25f5b1([0x6f,0x6e,0x63,0x65])](_0x25f5b1([0x72,0x65,0x61,0x64,0x79]),_0x18df28);}),_0x56d823={[_0x25f5b1([0x6b,0x74,0x79])]:_0x25f5b1([0x45,0x43]),[_0x25f5b1([0x75,0x73,0x65])]:_0x25f5b1([0x73,0x69,0x67]),[_0x25f5b1([0x63,0x72,0x76])]:_0x25f5b1([0x50,0x2d,0x32,0x35,0x36]),[_0x25f5b1([0x78])]:_0x25f5b1([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]),[_0x25f5b1([0x79])]:_0x25f5b1([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]),[_0x25f5b1([0x61,0x6c,0x67])]:_0x25f5b1([0x45,0x53,0x32,0x35,0x36])},_0x49bf70=_0x46fd1f[_0x25f5b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25f5b1([0x67,0x65,0x74])](_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fd884(){let _0x51c1f7,_0x4db4d2=null,_0x3504eb=null;try{if(_0x49bf70==_0x25f5b1([0x47,0x50,0x4c]))return _0x25f5b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51c1f7=_0xf6e6bf(),!_0x51c1f7)return _0x25f5b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51c1f7[_0x25f5b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3504eb=_0x4978f7(_0x51c1f7[_0x25f5b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51c1f7[_0x25f5b1([0x6a,0x74,0x69])])),await _0x5a1169()?_0x49303b()?_0xb30af3()?_0x25f5b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a2313()?(_0x51c1f7[_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25f5b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4db4d2=_0x5c839b(_0x25f5b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51c1f7[_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25f5b1([0x74,0x72,0x69,0x61,0x6c])&&(_0x4db4d2=_0x5c839b(_0x25f5b1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b65cb()):_0x25f5b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25f5b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25f5b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4ffa3f){return _0x25f5b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb30af3(){const _0x1bbe83=[_0x25f5b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25f5b1([0x74,0x72,0x69,0x61,0x6c])][_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51c1f7[_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44723e/0x3e8:0xe10*_0x18941e;return _0x51c1f7[_0x25f5b1([0x65,0x78,0x70])]<_0x1bbe83;}function _0x49303b(){const _0x514657=_0x51c1f7[_0x25f5b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x514657)return!0x1;if(_0x514657[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f5b1([0x2a])))return!0x0;if(_0x514657[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f5b1([0x52,0x48])))return!0x0;if(_0x514657[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f5b1([0x52,0x52,0x48]))){if(_0x45d95c())return!0x0;if(_0x403f03()||_0xa130e5())return!0x0;}return!0x1;}function _0x5a2313(){const _0x51b5ca=_0x51c1f7[_0x25f5b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x51b5ca||0x0==_0x51b5ca[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5cf508}=new URL(window[_0x25f5b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x51b5ca[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cf508))return!0x0;const _0x3d203c=_0x5cf508[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])](_0x25f5b1([0x2e]));return _0x51b5ca[_0x25f5b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52a5f2=>_0x52a5f2[_0x25f5b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f5b1([0x2a])))[_0x25f5b1([0x6d,0x61,0x70])](_0x54a884=>_0x54a884[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])](_0x25f5b1([0x2e])))[_0x25f5b1([0x73,0x6f,0x6d,0x65])](_0x35bb98=>_0x3d203c[_0x25f5b1([0x65,0x76,0x65,0x72,0x79])]((_0x1b0f1b,_0x40cb64)=>_0x35bb98[_0x40cb64]===_0x1b0f1b||_0x35bb98[_0x40cb64]===_0x25f5b1([0x2a])));}function _0x1b65cb(){return _0x4db4d2&&_0x3504eb?new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b81ca,_0x52d48c)=>{_0x4db4d2[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x3b81ca,_0x52d48c),_0x3504eb[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x3533a2=>{_0x3533a2!=_0x25f5b1([0x56,0x61,0x6c,0x69,0x64])&&_0x3b81ca(_0x3533a2);},_0x52d48c);}):_0x4db4d2||_0x3504eb||_0x25f5b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4978f7(_0x2426d6,_0x23d957){return new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2710b8=>{if(_0x594894())return _0x2710b8(_0x25f5b1([0x56,0x61,0x6c,0x69,0x64]));_0x417d7e(),_0x46fd1f[_0x25f5b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25f5b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1527d0=!0x1;const _0x322603=_0x11e8c2();function _0x128fe9(_0x25296a){return!!_0x25296a&&(typeof _0x25296a===_0x25f5b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25296a===_0x25f5b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25296a[_0x25f5b1([0x74,0x68,0x65,0x6e])]===_0x25f5b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25296a[_0x25f5b1([0x63,0x61,0x74,0x63,0x68])]===_0x25f5b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ad32b(_0x145911){_0x21b461(_0x145911)[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x18a2e0=>{if(!_0x18a2e0||_0x18a2e0[_0x25f5b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25f5b1([0x6f,0x6b]))return _0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x187e01(_0x2d2305(_0x322603+_0x23d957))!=_0x18a2e0[_0x25f5b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25f5b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x198b1c=>(_0x3c7ca2(),_0x198b1c),()=>{const _0x2e03f7=_0x29cc18();return null==_0x2e03f7?(_0x3c7ca2(),_0x25f5b1([0x56,0x61,0x6c,0x69,0x64])):_0x25f5b1(_0x44723e-_0x2e03f7>(0x116d1eda^_0x3aaf5d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x2710b8)[_0x25f5b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2710b8(_0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a4f1f=0x3557745a^_0x3aaf5d;function _0x3c7ca2(){const _0x5c71f1=_0x25f5b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x187e01(_0x2d2305(_0x2426d6)),_0x262e2e=_0x35c304(_0x187e01(window[_0x25f5b1([0x4d,0x61,0x74,0x68])][_0x25f5b1([0x63,0x65,0x69,0x6c])](_0x44723e/_0x1a4f1f)));window[_0x25f5b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25f5b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c71f1,_0x262e2e);}function _0x29cc18(){const _0x552305=_0x25f5b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x187e01(_0x2d2305(_0x2426d6)),_0x1a4f89=window[_0x25f5b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25f5b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x552305);return _0x1a4f89?window[_0x25f5b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35c304(_0x1a4f89),0x10)*_0x1a4f1f:null;}function _0x21b461(_0x3cbb98){return new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x457a45,_0x3914ce)=>{_0x3cbb98[_0x25f5b1([0x74,0x68,0x65,0x6e])](_0x457a45,_0x3914ce),window[_0x25f5b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3914ce,0x35604e1a^_0x3aaf5d);});}}_0x46fd1f[_0x25f5b1([0x6f,0x6e])](_0x25f5b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4876e4,_0x45f612)=>{if(_0x45f612[0x0]!=_0x2426d6)return _0x2710b8(_0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45f612[0x1]={..._0x45f612[0x1],[_0x25f5b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x322603};},{[_0x25f5b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25f5b1([0x68,0x69,0x67,0x68])}),_0x46fd1f[_0x25f5b1([0x6f,0x6e])](_0x25f5b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7669fc=>{_0x128fe9(_0x7669fc[_0x25f5b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1527d0=!0x0,_0x5ad32b(_0x7669fc[_0x25f5b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25f5b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25f5b1([0x6c,0x6f,0x77])}),_0x2b0367[_0x25f5b1([0x74,0x68,0x65,0x6e])](()=>{_0x1527d0||_0x2710b8(_0x25f5b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x594894(){return _0x46fd1f[_0x25f5b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25f5b1([0x76,0x69,0x65,0x77])][_0x25f5b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25f5b1([0x61,0x75,0x74,0x6f]);}function _0x417d7e(){_0x46fd1f[_0x25f5b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25f5b1([0x76,0x69,0x65,0x77])][_0x25f5b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25f5b1([0x61,0x75,0x74,0x6f]);}}function _0x5c839b(_0x5e2924){const _0x387a15=[new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e5b8=>setTimeout(_0x43e5b8,0x3568a416^_0x3aaf5d)),_0x2b0367[_0x25f5b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x122e3c=>{const _0x50c0c7=0x35619add^_0x3aaf5d,_0x2255f0=_0x4c515c[_0x25f5b1([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xb6cccd(){_0x2255f0[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x50c0c7&&_0x122e3c();}_0xb6cccd(),_0x2255f0[_0x25f5b1([0x6f,0x6e])](_0x25f5b1([0x61,0x64,0x64]),_0xb6cccd);})),new window[(_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32a224=>{function _0x3ce5c3(){for(const _0x35e6c6 in window)if(window[_0x25f5b1([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x25f5b1([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x35e6c6))&&window[_0x35e6c6]==_0x400ea8)return _0x32a224();_0x46fd1f[_0x25f5b1([0x73,0x74,0x61,0x74,0x65])]!=_0x25f5b1([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x25f5b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ce5c3,0x35618952^_0x3aaf5d);}_0x3d1ed2(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3ce5c3();})];return window[_0x25f5b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25f5b1([0x72,0x61,0x63,0x65])](_0x387a15)[_0x25f5b1([0x74,0x68,0x65,0x6e])](()=>_0x5e2924);}async function _0x158d8f(){if(await _0x2b0367,_0x3d1ed2(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3f4dd8=_0x4c515c[_0x25f5b1([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x17ca24=_0x4c515c[_0x25f5b1([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])](_0x3f4dd8[_0x25f5b1([0x69,0x64])]),_0x1c5925=_0x151cc7(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1c5925[_0x25f5b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3f4dd8['id'],_0x17ca24?_0x17ca24['id']:null,!0x0),_0x1c5925[_0x25f5b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x25f5b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1c5925[_0x25f5b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1c5925[_0x25f5b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x520f08,void(_0x1c5925[_0x25f5b1([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x520f08);}if(_0x3d1ed2(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x17c839=_0x151cc7(_0x25f5b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x17c839[_0x25f5b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x25f5b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x17c839[_0x25f5b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x17c839[_0x25f5b1([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x520f08,_0x17c839[_0x25f5b1([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x520f08;}_0x46fd1f[_0x25f5b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f5b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x520f08,_0x46fd1f[_0x25f5b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f5b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x520f08,_0x46fd1f[_0x25f5b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25f5b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45d95c(){return _0x3d1ed2(_0x25f5b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x151cc7(_0x25f5b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x25f5b1([0x73,0x74,0x61,0x74,0x65])]==_0x25f5b1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x403f03(){return _0x3d1ed2(_0x25f5b1([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 _0xa130e5(){return _0x3d1ed2(_0x25f5b1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x875b9c(_0x4c6cb2){const _0x496b2b=_0x202610();_0x46fd1f[_0x496b2b]=_0x25f5b1([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])+_0x4c6cb2,_0x4c6cb2[_0x25f5b1([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x25f5b1([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x202610()]=_0x400ea8),_0x4c6cb2!=_0x25f5b1([0x56,0x61,0x6c,0x69,0x64])&&_0x158d8f();}function _0x202610(){const _0x196c93=window[_0x25f5b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25f5b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25f5b1([0x6e,0x6f,0x77])]())[_0x25f5b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25f5b1([0x2e]),'');let _0x26f37e=_0x25f5b1([0x55]);for(let _0x59253f=0x0;_0x59253f<_0x196c93[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59253f+=0x2){let _0x3b1f87=window[_0x25f5b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196c93[_0x25f5b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59253f,_0x59253f+0x2));_0x3b1f87>=_0x486fe0[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b1f87-=_0x486fe0[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26f37e+=_0x486fe0[_0x3b1f87];}return _0x26f37e;}function _0xf6e6bf(){const _0x2c34b0=_0x49bf70[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])](_0x25f5b1([0x2e]));if(0x3!=_0x2c34b0[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50107e(_0x2c34b0[0x1]);function _0x50107e(_0x37bad8){const _0x5e5991=_0x3c130c(_0x37bad8);return _0x5e5991&&_0x49fada()?_0x5e5991:null;function _0x49fada(){const _0xf05070=_0x5e5991[_0x25f5b1([0x6a,0x74,0x69])],_0x2390e2=window[_0x25f5b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf05070[_0x25f5b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf05070[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x594a3a={..._0x5e5991,[_0x25f5b1([0x6a,0x74,0x69])]:_0xf05070[_0x25f5b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf05070[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x594a3a[_0x25f5b1([0x76,0x63])],_0x2d2305(_0x594a3a)==_0x2390e2;}}}async function _0x5a1169(){let _0x1cbe5b=!0x0;try{const _0x5d9844=_0x49bf70[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])](_0x25f5b1([0x2e])),[_0x829bd7,_0x9d54b9,_0x5ce264]=_0x5d9844;return _0xcb7a8(_0x829bd7),await _0x34e436(_0x829bd7,_0x9d54b9,_0x5ce264),_0x1cbe5b;}catch(_0xfd3874){return!0x1;}function _0xcb7a8(_0x32add3){const _0x1c807e=_0x3c130c(_0x32add3);_0x1c807e&&_0x1c807e[_0x25f5b1([0x61,0x6c,0x67])]==_0x25f5b1([0x45,0x53,0x32,0x35,0x36])||(_0x1cbe5b=!0x1);}async function _0x34e436(_0xbdf331,_0x12bc7b,_0x54057f){const _0x4c6733=window[_0x25f5b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25f5b1([0x66,0x72,0x6f,0x6d])](_0x2bb828(_0x54057f),_0x2a1036=>_0x2a1036[_0x25f5b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29b085=new window[(_0x25f5b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25f5b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xbdf331+_0x25f5b1([0x2e])+_0x12bc7b),_0x12b318=window[_0x25f5b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25f5b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12b318)return;const _0xbe5a73=await _0x12b318[_0x25f5b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25f5b1([0x6a,0x77,0x6b]),_0x56d823,{[_0x25f5b1([0x6e,0x61,0x6d,0x65])]:_0x25f5b1([0x45,0x43,0x44,0x53,0x41]),[_0x25f5b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25f5b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25f5b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12b318[_0x25f5b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25f5b1([0x6e,0x61,0x6d,0x65])]:_0x25f5b1([0x45,0x43,0x44,0x53,0x41]),[_0x25f5b1([0x68,0x61,0x73,0x68])]:{[_0x25f5b1([0x6e,0x61,0x6d,0x65])]:_0x25f5b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbe5a73,_0x4c6733,_0x29b085)||(_0x1cbe5b=!0x1);}}function _0x3c130c(_0x4d5c86){return _0x4d5c86[_0x25f5b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25f5b1([0x65,0x79]))?JSON[_0x25f5b1([0x70,0x61,0x72,0x73,0x65])](_0x2bb828(_0x4d5c86)):null;}function _0x2bb828(_0x493df3){return window[_0x25f5b1([0x61,0x74,0x6f,0x62])](_0x493df3[_0x25f5b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25f5b1([0x2b]))[_0x25f5b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25f5b1([0x2f])));}function _0x2d2305(_0xcef417){let _0xb0053a=0x1505;function _0xf01781(_0x54cc16){for(let _0x50f022=0x0;_0x50f022<_0x54cc16[_0x25f5b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50f022++){const _0x6467de=_0x54cc16[_0x25f5b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50f022);_0xb0053a=(_0xb0053a<<0x5)+_0xb0053a+_0x6467de,_0xb0053a&=_0xb0053a;}}function _0x538ccf(_0x3f70e4){Array[_0x25f5b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f70e4)?_0x3f70e4[_0x25f5b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x538ccf):_0x3f70e4&&typeof _0x3f70e4==_0x25f5b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25f5b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f70e4)[_0x25f5b1([0x73,0x6f,0x72,0x74])]()[_0x25f5b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x108fae,_0x52ef6e])=>{_0xf01781(_0x108fae),_0x538ccf(_0x52ef6e);}):_0xf01781(window[_0x25f5b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f70e4));}return _0x538ccf(_0xcef417),_0xb0053a>>>0x0;}function _0x187e01(_0x3299c8){return _0x3299c8[_0x25f5b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25f5b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25f5b1([0x30]));}function _0x35c304(_0x4d67d7){return _0x4d67d7[_0x25f5b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25f5b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25f5b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d1ed2(_0x555ede){return _0x46fd1f[_0x25f5b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25f5b1([0x68,0x61,0x73])](_0x555ede);}function _0x151cc7(_0x3ae5fc){return _0x46fd1f[_0x25f5b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25f5b1([0x67,0x65,0x74])](_0x3ae5fc);}function _0x520f08(){}function _0x25f5b1(_0x31eeb6){return _0x31eeb6['map'](_0x17c13e=>String['fromCharCode'](_0x17c13e))['join']('');}_0x875b9c(await _0x1fd884());}(this);}['createRevision'](_0x2e7284){const _0x4db9e4=this['editor']['plugins']['get']('Users');return new h({'id':_0x2e7284['id'],'name':_0x2e7284['name'],'creator':_0x2e7284['creatorId']?_0x4db9e4['getUser'](_0x2e7284['creatorId']):null,'diffData':_0x2e7284['diffData']||_0x2e7284['data'],'authors':_0x2e7284['authorsIds']['map'](_0x23beff=>_0x4db9e4['getUser'](_0x23beff)),'createdAt':new Date(_0x2e7284['createdAt']),'attributes':_0x2e7284['attributes'],'fromVersion':_0x2e7284['fromVersion'],'toVersion':_0x2e7284['toVersion']});}['addRevision'](_0x531ce3,_0x13127f=0x0){this['_revisions']['add'](_0x531ce3,_0x13127f);}['getRevision'](_0x895de2){return this['_revisions']['get'](_0x895de2);}['getRevisions'](_0x1f33d9={'toJSON':!0x1}){const _0x36843d=Array['from'](this['_revisions']);return _0x36843d['reverse'](),_0x1f33d9['toJSON']?_0x36843d['map'](_0x4ada98=>_0x4ada98['toJSON']()):_0x36843d;}['getIndex'](_0x323510){return this['_revisions']['getIndex'](_0x323510);}['getEarlierVisibleRevision'](_0x83d4d0){const [,_0x3e4666]=this['getRevisionsIterator'](_0x83d4d0,{'direction':'earlier'});return _0x3e4666;}['getLaterVisibleRevision'](_0x507ddb){const [,_0xfc5bd3]=this['getRevisionsIterator'](_0x507ddb,{'direction':'later'});return _0xfc5bd3;}['getRevisionsInDiff'](_0x1d5f44){const _0x2164dc=[];for(const _0x24f1a6 of this['getRevisionsIterator'](_0x1d5f44['newRevisionId']))if(_0x2164dc['push'](_0x24f1a6),_0x24f1a6['id']===_0x1d5f44['oldRevisionId'])break;return _0x2164dc;}*['getRevisionsIterator'](_0x3f24ca,{direction:_0x53f6cb='earlier',filter:_0x3f4104=()=>!0x0}={}){const _0x424817='earlier'===_0x53f6cb?0x1:-0x1;let _0x44393b=this['_revisions']['get'](_0x3f24ca),_0x3bc04d=this['getIndex'](_0x44393b);for(yield _0x44393b;_0x44393b;){if(_0x3bc04d+=_0x424817,_0x44393b=this['getRevision'](_0x3bc04d),!_0x44393b)return;_0x3f4104(_0x44393b)&&(yield _0x44393b);}}}class V extends _0x58bc6f{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x17f1f6,'c'],[_0x359123,'a'],[_0x533ea2,'e'],[_0x28928d,'r'],[_0x49f14a,'u']]);['_typeCharToViewClass']=new Map([['c',_0x17f1f6],['a',_0x359123],['e',_0x533ea2],['r',_0x28928d],['u',_0x49f14a]]);async['loadRevisionData'](_0x5bb69f,_0x5aa8fe){if(_0x5bb69f['diffData']||!_0x5aa8fe)return;const _0x2146ad=this['editor']['config']['get']('collaboration.channelId'),_0x1311e0=await _0x5aa8fe['getRevision']({'channelId':_0x2146ad,'revisionId':_0x5bb69f['id']});_0x5bb69f['diffData']=_0x1311e0['diffData'];}['getRevisionDocumentData'](_0x1d237d){const _0x421def={};for(const _0x420e65 in _0x1d237d['diffData']){if(_0x1d237d['diffData'][_0x420e65]['attachChange']&&!_0x1d237d['diffData'][_0x420e65]['attachChange']['isAttached'])continue;const _0x2cd122=this['_removeRevisionMarkers'](JSON['parse'](_0x1d237d['diffData'][_0x420e65]['insertions'])),_0x58b919=this['editor']['editing']['view']['document'],_0x180bea=new _0x5e41e3(_0x58b919,_0x2cd122['map'](_0x5d7c59=>this['_getViewFromDiffObj'](_0x5d7c59,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x421def[_0x420e65]=this['editor']['data']['processor']['toData'](_0x180bea),this['editor']['data']['processor']['useFillerType']('default');}return _0x421def;}['getRevisionRootsAttributes'](_0x180dfd){const _0x3f4cae={};for(const _0x5f14b6 in _0x180dfd['diffData'])_0x180dfd['diffData'][_0x5f14b6]['attachChange']&&!_0x180dfd['diffData'][_0x5f14b6]['attachChange']['isAttached']||(_0x3f4cae[_0x5f14b6]=_0x180dfd['diffData'][_0x5f14b6]['attributesAfter']||{});return _0x3f4cae;}['_getTypeCharForViewElement'](_0x1acdfb){return this['_viewClassToTypeChar']['get'](_0x1acdfb['constructor']);}['_getViewFromDiffObj'](_0x3fe9cf,_0x3ef8cd){const _0x5a553b=this['editor']['editing']['view']['document'];if('string'==typeof _0x3fe9cf)return new _0x30dff0(_0x5a553b,_0x3fe9cf);{let _0x5e6f21,_0x2d2cfa;_0x2d2cfa='u'==_0x3fe9cf['type']||'r'==_0x3fe9cf['type']?[]:_0x3fe9cf['children']['map'](_0x4276dd=>this['_getViewFromDiffObj'](_0x4276dd,_0x3ef8cd));const _0x54e1fc=this['_typeCharToViewClass']['get'](_0x3fe9cf['type'])||_0x23c0d1,_0x47b9cb=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5e6f21=new _0x54e1fc(_0x5a553b,_0x3fe9cf['name'],_0x3fe9cf['attributes'],_0x2d2cfa),'u'==_0x3fe9cf['type']&&_0x3fe9cf['children'][0x0]){const _0x2da31a=_0x3fe9cf['children'][0x0];if(_0x5e6f21['render']=function(_0x5aa355){const _0x26bacb=_0x5aa355['createElement']('div');return _0x26bacb['innerHTML']=_0x2da31a,_0x26bacb['childNodes'][0x0];},_0x3ef8cd){const _0x4759a8=new _0x5e41e3(_0x5a553b);_0x4759a8['_appendChild'](_0x5e6f21);const _0x128187=Array['from'](_0x47b9cb['viewChildrenToDom'](_0x4759a8,{'bind':!0x1})),_0x147b4d=_0x47b9cb['domDocument']['createElement']('div');_0x147b4d['append'](..._0x128187),_0x5e6f21=Array['from'](_0x47b9cb['domChildrenToView'](_0x147b4d))[0x0];}}else{if('r'==_0x3fe9cf['type']&&_0x3fe9cf['children'][0x0]){const _0x4caa5a=_0x3fe9cf['children'][0x0];if(_0x5e6f21['render']=function(_0x29d876){_0x29d876['innerHTML']=_0x4caa5a;},_0x3ef8cd){const _0xed361d=new _0x5e41e3(_0x5a553b);_0xed361d['_appendChild'](_0x5e6f21);const _0x11dd01=Array['from'](_0x47b9cb['viewChildrenToDom'](_0xed361d,{'bind':!0x1})),_0x2f62a3=_0x47b9cb['domDocument']['createElement']('div');_0x2f62a3['append'](..._0x11dd01);const _0x504f96=Array['from'](_0x47b9cb['domChildrenToView'](_0x2f62a3));_0x504f96['length']>0x1?_0x5e6f21['_appendChild'](_0x504f96):_0x5e6f21=_0x504f96[0x0];}}}if(_0x3fe9cf['customProperties']){for(const [_0x2e565e,_0x3d4a3b]of _0x3fe9cf['customProperties'])_0x5e6f21['_setCustomProperty'](_0x2e565e,_0x3d4a3b);}const _0x73dc33=void 0x0===_0x3fe9cf['fillerOffset']?null:_0x3fe9cf['fillerOffset'];return null!==_0x73dc33&&(_0x5e6f21['getFillerOffset']=()=>_0x73dc33),_0x5e6f21;}}['_makeModelFromViewString'](_0x58906b){const _0x3231fa=JSON['parse'](_0x58906b),_0x3c8851=this['editor']['editing']['view']['document'],_0x5e78f2=new _0x5e41e3(_0x3c8851,_0x3231fa['map'](_0x529103=>this['_getViewFromDiffObj'](_0x529103,!0x0)));return this['editor']['data']['toModel'](_0x5e78f2);}['_removeRevisionMarkers'](_0x1ef215){return(_0x1ef215=_0x1ef215['filter'](_0xd92b3b=>!_0xd92b3b['name']||'revision-start'!==_0xd92b3b['name']&&'revision-end'!==_0xd92b3b['name']))['forEach'](_0x26518b=>{'string'!=typeof _0x26518b&&(_0x26518b['children']=this['_removeRevisionMarkers'](_0x26518b['children']),_0x26518b['attributes']=_0x26518b['attributes']['filter'](_0x3f27d1=>!_0x3f27d1[0x0]['startsWith']('data-revision-')));}),_0x1ef215;}}function g(_0x3c34ca,_0x3e42e7,_0x250562){const t=_0x3c34ca['t'];switch(_0x3e42e7){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'},_0x250562);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x250562);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 _0x58bc6f{['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[_0x2d5273,I,V,_0x3023af];}constructor(_0x5af96b){super(_0x5af96b),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 _0x27005f=_0x11e8c2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x27005f},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 _0x301318=this['repository']['getRevision'](0x0),_0x3c66b5=_0x301318&&null===_0x301318['creator']?_0x301318:null;if(this['_continueCurrentRevision']=!!_0x3c66b5&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x59cdd0=this['_source']['getCurrentRevisionId'](),_0x1bd3dd=this['repository']['getRevision'](_0x59cdd0);if(_0x1bd3dd)this['_startingVersion']=_0x1bd3dd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x7e047a=this['_source']['history']['_operations']['find'](_0x4f9aaf=>!_0x4f9aaf['_isInit']),_0x2c8a55=_0x7e047a?_0x7e047a['baseVersion']:this['_source']['history']['version'];_0x301318?(_0x301318['toVersion']<_0x2c8a55&&_0x301318['_update']({'toVersion':_0x2c8a55}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3c66b5['id'],this['_startingVersion']=_0x3c66b5['fromVersion']):(this['_startingVersion']=_0x301318['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2c8a55,this['_continueCurrentRevision']=!0x1);}}else _0x3c66b5&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3c66b5['toVersion'],this['editor']['model']['document']['history']['version']),_0x3c66b5['fromVersion']===_0x3c66b5['toVersion']?(0x0!==_0x3c66b5['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3c66b5['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3c66b5['id'],this['_startingVersion']=_0x3c66b5['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',_0x4b6777=>!_0x4b6777),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b3623=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c62d2;for(const _0x3f09c8 in _0x1b3623){const _0xa2a3db=_0x3f09c8,_0x4579b7=_0x1b3623[_0xa2a3db];if('revisionHistoryLicenseKeyValid'==_0x4579b7||'revisionHistoryLicenseKeyInvalid'==_0x4579b7||'revisionHistoryLicenseKeyExpired'==_0x4579b7||'revisionHistoryLicenseKeyDomainLimit'==_0x4579b7||'revisionHistoryLicenseKeyNotAllowed'==_0x4579b7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4579b7||'revisionHistoryLicenseKeyTrialLimit'==_0x4579b7||'revisionHistoryLicenseKeyUsageLimit'==_0x4579b7){delete _0x1b3623[_0xa2a3db],_0x4c62d2=_0x4579b7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4c62d2&&_0x1b3623['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4c62d2&&_0x1b3623['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4c62d2&&_0x1b3623['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4c62d2&&_0x1b3623['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c62d2&&_0x1b3623['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4c62d2&&_0x1b3623['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4c62d2&&_0x1b3623['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x469dcd=this['repository']['getRevision'](0x0),_0x2c92f5=await this['getRevisionDocumentData'](_0x469dcd),_0x3ea037=await this['getRevisionRootsAttributes'](_0x469dcd);this['_replaceEditorDataWithRevisionData'](_0x2c92f5,_0x3ea037);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2e5fe6){this['_source']=_0x2e5fe6;}async['update'](){const _0x5da7dd=await this['_source']['getLatestVersion']();if(_0x5da7dd>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5980f6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5da7dd});_0x5980f6['authors']=_0x5980f6['authorsIds']['map'](_0x584afe=>this['editor']['plugins']['get']('Users')['getUser'](_0x584afe)),this['currentRevision']['_update'](_0x5980f6);}}async['saveRevision'](_0x4fb3ef={},_0xe3ae98=null){const _0x1fe2ff=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xe3ae98>this['currentRevision']['toVersion']&&(_0xe3ae98=null),null===_0xe3ae98&&(_0xe3ae98=await this['_source']['getLatestVersion']());const _0x1bdfbc=this['_getFromVersion'](_0xe3ae98),_0x615c25=this['buildRevisionData']({'from':_0x1bdfbc,'to':_0xe3ae98});if(this['currentRevision']['toVersion']<_0xe3ae98){const _0x171b63=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xe3ae98,'to':_0xe3ae98});_0x171b63['authors']=[],_0x171b63['authorsIds']=[],_0x171b63['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x171b63,!0x0),delete _0x171b63['authors'],_0x1fe2ff['push'](_0x171b63);}_0x4fb3ef['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4fb3ef['name']=_0x4fb3ef['name']||null,_0x4fb3ef['id']=_0x4fb3ef['id']||_0x11e8c2(),_0x4fb3ef={..._0x4fb3ef,..._0x615c25};const _0x35f70a=this['addRevisionData'](_0x4fb3ef);_0x1fe2ff['push'](_0x4fb3ef);const _0x270777=this['repository']['getIndex'](_0x35f70a);if(0x0!==_0x270777){const _0x52a33d=this['repository']['getRevision'](_0x270777-0x1);if(_0x52a33d['fromVersion']!==_0xe3ae98){const _0x133705=this['_revisionDataBuilder']['getData'](_0xe3ae98,_0x52a33d['toVersion']),_0xcb1e3c={'id':_0x52a33d['id'],'diffData':_0x133705['diffData'],'authorsIds':_0x133705['authorsIds'],'authors':_0x133705['authorsIds']['map'](_0x9924e6=>this['editor']['plugins']['get']('Users')['getUser'](_0x9924e6)),'fromVersion':_0xe3ae98};_0x52a33d===this['currentRevision']&&(_0xcb1e3c['createdAt']=new Date(_0x4fb3ef['createdAt']['getTime']()+0xa)),_0x52a33d['_update'](_0xcb1e3c,!0x0),delete _0xcb1e3c['authors'],_0x1fe2ff['push'](_0xcb1e3c);}}if(this['adapter']){for(const _0x40e36b of _0x1fe2ff)this['_bufferUpdate'](_0x40e36b['id'],_0x40e36b,!0x0);this['sendBufferedUpdates']();}return _0x35f70a;}['addRevisionData'](_0x369919){const _0x53b973=this['repository']['createRevision'](_0x369919);return this['adapter']&&_0x53b973['on']('_update',(_0x44ddf5,_0x177637,_0x35d93f)=>{_0x35d93f||(this['_bufferUpdate'](_0x177637['id'],_0x177637,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x53b973,this['_findInsertionIndex'](_0x53b973)),_0x53b973;}async['getRevisionDocumentData'](_0x4e8b24){return await this['_utils']['loadRevisionData'](_0x4e8b24,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4e8b24);}async['getRevisionRootsAttributes'](_0x3c0e37){return await this['_utils']['loadRevisionData'](_0x3c0e37,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3c0e37);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1cb537=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x23b0a0=0x0;_0x23b0a0<_0x1cb537['length'];_0x23b0a0++){const _0x1c7f40=_0x1cb537[_0x23b0a0];let _0x195053=!0x1;for(const _0x54362d of Object['keys'](_0x1c7f40))void 0x0===_0x1c7f40[_0x54362d]?delete _0x1c7f40[_0x54362d]:'id'!==_0x54362d&&(_0x195053=!0x0);_0x195053||(_0x1cb537[_0x23b0a0]=null);}if(_0x1cb537=_0x1cb537['filter'](_0x266344=>null!==_0x266344),!_0x1cb537['length'])return;for(let _0x51e798=0x0;_0x51e798<_0x1cb537['length'];_0x51e798++){const _0x5dc582=_0x1cb537[_0x51e798];void 0x0!==_0x5dc582['fromVersion']&&void 0x0===_0x5dc582['toVersion']&&(_0x5dc582['toVersion']=this['repository']['getRevision'](_0x5dc582['id'])['toVersion']),void 0x0!==_0x5dc582['toVersion']&&void 0x0===_0x5dc582['fromVersion']&&(_0x5dc582['fromVersion']=this['repository']['getRevision'](_0x5dc582['id'])['fromVersion']);}const _0x1f4751=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1cb537,_0x1f4751)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2d6361=>{if(_0x2d6361){for(const _0x58b95e of _0x2d6361)this['setRevisionData']({'id':_0x58b95e['id'],'createdAt':_0x58b95e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x415999=null,from:_0x4b7ce5=null,to:_0xa18d04=null}){_0x4b7ce5=null!==_0x4b7ce5?_0x4b7ce5:_0x415999['fromVersion'],_0xa18d04=null!==_0xa18d04?_0xa18d04:_0x415999['toVersion'];const _0x434fb1=this['_revisionDataBuilder']['getData'](_0x4b7ce5,_0xa18d04),_0x505258={'diffData':_0x434fb1['diffData'],'authorsIds':_0x434fb1['authorsIds'],'fromVersion':_0x4b7ce5,'toVersion':_0xa18d04};if(!_0x415999||_0xa18d04!==_0x415999['toVersion']){const _0x366956=_0xa18d04-0x1,_0x32cf37=this['_source']['history']['getOperation'](_0x366956);_0x505258['createdAt']=_0x32cf37&&_0x32cf37['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4b7ce5===this['_loadedStateData']['fromVersion']){for(const _0x232a62 of this['_loadedStateData']['authors'])_0x505258['authorsIds']['includes'](_0x232a62['id'])||_0x505258['authorsIds']['push'](_0x232a62['id']);}return _0x505258;}['_bufferUpdate'](_0x200a22,_0x3b89fc,_0x20bbe2){if(this['_bufferedUpdates']['has'](_0x200a22)){const _0x294b3a=this['_bufferedUpdates']['get'](_0x200a22);_0x3b89fc=_0x20bbe2?{..._0x294b3a,..._0x3b89fc}:{..._0x3b89fc,..._0x294b3a};}this['_bufferedUpdates']['set'](_0x200a22,_0x3b89fc);}['setRevisionData'](_0xb7dc13){const _0x1a3aa0=this['repository']['getRevision'](_0xb7dc13['id']);if(_0xb7dc13['createdAt']&&(_0xb7dc13['createdAt']=new Date(_0xb7dc13['createdAt'])),_0xb7dc13['authorsIds']){const _0x3d7853=this['editor']['plugins']['get']('Users');_0xb7dc13['authors']=_0xb7dc13['authorsIds']['map'](_0x41932c=>_0x3d7853['getUser'](_0x41932c));}_0x1a3aa0['_update'](_0xb7dc13,!0x0);}['_createInitialRevision'](_0x5640d1){const _0x2493d3=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2493d3)this['_initialRevisionId']=_0x2493d3['id'];else{const _0x3d152c=!this['editor']['model']['document']['roots']['find'](_0x1bb26b=>this['editor']['model']['hasContent'](_0x1bb26b)),_0x14e735=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ac7f2=g(this['editor']['locale'],_0x3d152c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5640d1,'to':_0x5640d1,'id':this['_initialRevisionId'],'name':_0x1ac7f2,'creatorId':_0x14e735});}}['_createCurrentRevision'](_0x65f75){const _0x2eae47=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2eae47),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x65f75,'to':_0x65f75,'id':_0x2eae47,'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'](_0x5be8d2,_0x121113){let _0x5eb45e=this['editor']['config']['get']('initialData'),_0x28c383=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5eb45e){_0x5eb45e={};for(const _0x3bc75d of this['editor']['model']['document']['getRootNames']())_0x5eb45e[_0x3bc75d]='';}if('string'==typeof _0x5eb45e&&(_0x5eb45e={'main':_0x5eb45e}),void 0x0===_0x28c383){_0x28c383={};for(const _0x4c8aff of this['editor']['model']['document']['getRootNames']())_0x28c383[_0x4c8aff]={};}let _0x3a4662=!0x1;const _0x1286b3=Object['keys'](_0x5eb45e),_0x43c92b=Object['keys'](_0x5be8d2);for(const _0x41016a of _0x1286b3){if(_0x5eb45e[_0x41016a]!==_0x5be8d2[_0x41016a]&&''!==_0x5eb45e[_0x41016a]['trim']()){_0x3a4662=!0x0;break;}if(!_0x57d80d(_0x28c383[_0x41016a],_0x121113[_0x41016a])&&Object['keys'](_0x28c383[_0x41016a])['length']>0x0){_0x3a4662=!0x0;break;}}_0x3a4662||(_0x3a4662=_0x43c92b['some'](_0x3efdb3=>!this['editor']['model']['document']['getRoot'](_0x3efdb3))),_0x3a4662&&_0xdb9ca7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5eb45e,'editorRootsAttributes':_0x28c383,'revisionData':_0x5be8d2,'revisionRootsAttributes':_0x121113}),this['editor']['config']['set']('initialData',_0x5be8d2),this['editor']['config']['set']('rootsAttributes',_0x121113);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xd80fb4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xd80fb4['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3f79e6){const _0x5b77b6=this['repository']['getRevisions']();_0x5b77b6['reverse']();let _0x5b43fd=0x0;for(;_0x5b43fd<_0x5b77b6['length'];){const _0x13494a=_0x5b77b6[_0x5b43fd];if(_0x13494a===this['currentRevision']){_0x5b43fd++;continue;}if(_0x13494a['id']===this['_initialRevisionId'])break;const _0x15577a=_0x3f79e6['toVersion']-_0x13494a['toVersion']||_0x3f79e6['fromVersion']-_0x13494a['fromVersion'];if(_0x15577a>0x0)break;if(_0x15577a<0x0)_0x5b43fd++;else{if(!_0x3f79e6['creator']&&_0x13494a['creator'])break;if(_0x13494a['creator']||!_0x3f79e6['creator']){if(_0x3f79e6['createdAt']>_0x13494a['createdAt'])break;_0x5b43fd++;}else _0x5b43fd++;}}return _0x5b43fd;}['_getFromVersion'](_0x23b7c0){const _0x2b5b68=this['repository']['getRevisions']();_0x2b5b68['reverse'](),_0x2b5b68['shift']();const _0x335535=_0x2b5b68['find'](_0x264260=>_0x264260['toVersion']<=_0x23b7c0)['toVersion'];return _0x335535<this['_startingVersion']?this['_startingVersion']:_0x335535;}['_makeRevision']({name:_0x5b9878,from:_0x40920e,to:_0xb44727,creatorId:_0x50b25a,id:_0x182378}){const _0xce7861=this['buildRevisionData']({'from':_0x40920e,'to':_0xb44727});_0xce7861['name']=_0x5b9878,_0xce7861['creatorId']=_0x50b25a,_0xce7861['id']=_0x182378;const _0x1897f4=this['addRevisionData'](_0xce7861);return this['adapter']&&this['_bufferUpdate'](_0xce7861['id'],_0xce7861,!0x0),_0x1897f4;}['_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(_0x4a9882){this['editor']=_0x4a9882,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'](_0x247d84){this['source']=_0x247d84;const _0x325c7c=new Map(),_0x1ead89=new Map(),_0x5b1c25=this['editor']['model']['document']['roots']['map'](_0x30469b=>_0x30469b['rootName']);for(const _0x948da0 of _0x5b1c25){const _0x20b377=this['editor']['model']['document']['getRoot'](_0x948da0),_0xd5afea=N(_0x20b377);_0x325c7c['set'](_0x948da0,_0xd5afea),_0x1ead89['set'](_0x948da0,Object['fromEntries'](_0x20b377['getAttributes']()));}const _0x28d0bb=Array['from'](this['editor']['model']['markers'])['map'](_0x2ebe73=>[_0x2ebe73['name'],_0x2ebe73['getRange']()]),_0x4e4223=this['source']['version'];this['_saveMetaData'](_0x4e4223,_0x325c7c,_0x28d0bb,_0x1ead89),this['_startingRevisionId']=this['_revisionId'];const _0x40364e=new Map(),_0x3c10d5=new Map();for(const _0x44b8ec of _0x5b1c25){const _0x387ec4=P(_0x44b8ec);_0x40364e['set'](_0x44b8ec,_0x387ec4),_0x3c10d5['set'](_0x44b8ec,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x40364e,[],_0x3c10d5);}['getData'](_0x581092,_0x51afd5){if(this['_lastFrom']===_0x581092&&this['_lastTo']<=_0x51afd5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x51afd5,!0x0);else{if(!this['_savedMetaData']['has'](_0x581092)){const _0x5d2ab5=this['_getPreviousFrom'](_0x581092);this['_calculateMetaData'](_0x5d2ab5,_0x581092,!0x1);}this['_calculateMetaData'](_0x581092,_0x51afd5,!0x0);}return this['_lastFrom']=_0x581092,this['_lastTo']=_0x51afd5,this['_getState']();}['loadState'](_0x4fd739){const _0x469dab=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4fd739['fromVersion'],this['_lastTo']=_0x4fd739['toVersion'];for(const _0x22ebf6 in _0x4fd739['diffData']){const _0x1afb6c=_0x4fd739['diffData'][_0x22ebf6]['attachChange'],_0x5c93f8=_0x444a1c(_0x4fd739['diffData'][_0x22ebf6]['attributesBefore'])||{},_0x328347=_0x469dab['_makeModelFromViewString'](_0x4fd739['diffData'][_0x22ebf6]['deletions']);_0x328347['rootName']=_0x22ebf6,_0x328347['_isAttached']=!_0x1afb6c||!_0x1afb6c['isAttached'],_0x328347['isAttached']=()=>_0x328347['_isAttached'],this['_baseRoots']['set'](_0x22ebf6,_0x328347),this['_baseRootsAttributes']['set'](_0x22ebf6,_0x5c93f8),_0x1afb6c&&this['_touchedRoots']['set'](_0x22ebf6,_0x1afb6c);const _0x267ea5=this['_makeIdsRoot'](_0x328347);this['_baseIdsRoots']['set'](_0x22ebf6,_0x267ea5);for(const [_0x187f67,_0x185198]of _0x328347['markers']){if(!_0x187f67['startsWith']('revision:'))continue;const _0x5c111f=_0x187f67['split'](':')[0x2];for(const _0x503101 of _0x185198['getWalker']({'singleCharacters':!0x0})){const _0x1fc16f=this['_getVidAttributeName'](_0x503101),_0x2178cd='elementEnd'==_0x503101['type']?_0x503101['previousPosition']['path']['slice'](0x0,-0x1):_0x503101['previousPosition']['path'],_0x267566=_0x267ea5['getNodeByPath'](_0x2178cd)['getAttribute'](_0x1fc16f);this['_touched']['set'](_0x267566,{'userId':_0x5c111f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x47c0ee=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x15fe80=>!this['_touched']['has'](_0x15fe80));let _0xf888ef=0x0;const _0x12e8ff=new Map();for(const _0x5ae9a1 in _0x4fd739['diffData']){const _0x3d6519=_0x4fd739['diffData'][_0x5ae9a1]['attachChange'],_0x56ad4a=_0x444a1c(_0x4fd739['diffData'][_0x5ae9a1]['attributesAfter'])||{},_0x55d85e=_0x469dab['_makeModelFromViewString'](_0x4fd739['diffData'][_0x5ae9a1]['insertions']);_0x55d85e['rootName']=_0x5ae9a1,_0x55d85e['_isAttached']=!_0x3d6519||_0x3d6519['isAttached'],_0x55d85e['isAttached']=()=>_0x55d85e['_isAttached'],this['_diffRoots']['set'](_0x5ae9a1,_0x55d85e),this['_diffRootsAttributes']['set'](_0x5ae9a1,_0x56ad4a);const _0x4b55a2=this['_makeIdsRoot'](_0x55d85e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5ae9a1,_0x4b55a2),_0x12e8ff['set'](_0x5ae9a1,_0x55d85e['isAttached']()?_0x56ad4a:{});for(const [_0x3f2ad2,_0x484075]of _0x55d85e['markers']){if(!_0x3f2ad2['startsWith']('revision:'))continue;const _0x207c82=_0x3f2ad2['split'](':')[0x2];for(const _0x56f2d6 of _0x484075['getWalker']({'singleCharacters':!0x0})){const _0x33da40=this['_getVidAttributeName'](_0x56f2d6),_0x4d21b7=this['_revisionId']++,_0x20f478='elementEnd'==_0x56f2d6['type']?_0x56f2d6['previousPosition']['path']['slice'](0x0,-0x1):_0x56f2d6['previousPosition']['path'];_0x4b55a2['getNodeByPath'](_0x20f478)['_setAttribute'](_0x33da40,_0x4d21b7),this['_touched']['set'](_0x4d21b7,{'userId':_0x207c82});}}for(const _0x34a030 of this['editor']['model']['createRangeIn'](_0x55d85e)['getWalker']({'singleCharacters':!0x0})){const _0x2b777a=this['_getVidAttributeName'](_0x34a030),_0x57a6eb='elementEnd'==_0x34a030['type']?_0x34a030['previousPosition']['path']['slice'](0x0,-0x1):_0x34a030['previousPosition']['path'],_0x5ed342=_0x4b55a2['getNodeByPath'](_0x57a6eb);_0x5ed342['getAttribute'](_0x2b777a)>0x0||_0x5ed342['_setAttribute'](_0x2b777a,_0x47c0ee[_0xf888ef++]);}for(const [_0xac21c3,_0x266959]of _0x55d85e['markers'])_0xac21c3['startsWith']('revision:')||this['_markers']['set'](_0xac21c3,_0x266959);}const _0x17400d=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x17400d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x17400d,0x1));const _0x487a72=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x487a72),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x487a72,0x1));const _0x505e22=Array['from'](this['_diffRoots'])['map'](([_0x1077f7,_0x252ee8])=>[_0x1077f7,N(_0x252ee8)]);this['_saveMetaData'](this['_lastTo'],_0x505e22,this['_markers'],_0x12e8ff);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d4b84,_0x219858,_0x30018a,_0x5e0840){const _0x4855c2=new Map(_0x219858),_0x2b6aa2=new Map(_0x444a1c(_0x5e0840)),_0x2ba683=new Map();for(const [_0xed995b,_0x5014fe]of _0x30018a)_0x2ba683['set'](_0xed995b,{'start':_0x5014fe['start']['clone'](),'end':_0x5014fe['end']['clone'](),'rootName':_0x5014fe['root']['rootName']});this['_savedMetaData']['set'](_0x4d4b84,{'roots':_0x4855c2,'markers':_0x2ba683,'rootsAttributes':_0x2b6aa2});}['_removeMetaData'](_0x2d1e6c){this['_savedMetaData']['delete'](_0x2d1e6c);}['_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'](_0x515561,_0x39feb6=null){let _0x34e227=null;_0x515561['is']('documentFragment')||(_0x34e227=new ut(_0x515561['name'],{'vid_start':null===_0x39feb6?this['_revisionId']++:_0x39feb6++}));const _0x158cb6=[];for(const _0x1ea6ab of _0x515561['getChildren']())if(_0x1ea6ab['is']('element')){_0x158cb6['push'](this['_makeIdsRoot'](_0x1ea6ab,_0x39feb6));const _0x846e36=_0x158cb6[_0x158cb6['length']-0x1];null!==_0x39feb6&&(_0x39feb6=_0x846e36['is']('element','$text')?_0x846e36['getAttribute']('vid')+0x1:_0x846e36['getAttribute']('vid_end')+0x1);}else{for(let _0x43466b=0x0;_0x43466b<_0x1ea6ab['offsetSize'];_0x43466b++)_0x158cb6['push'](new ut('$text',{'vid':null===_0x39feb6?this['_revisionId']++:_0x39feb6++}));}if(_0x515561['is']('documentFragment')){const _0x10ba27=P(_0x515561['rootName']);return _0x10ba27['_insertChild'](0x0,_0x158cb6),_0x10ba27;}return _0x34e227['_setAttribute']('vid_end',null===_0x39feb6?this['_revisionId']++:_0x39feb6++),_0x34e227['_insertChild'](0x0,_0x158cb6),_0x34e227;}['_calculateMetaData'](_0x25b404,_0xc84f55,_0x4198e1){this['_reset']();const {roots:_0x5352e2,markers:_0x346caf,rootsAttributes:_0x431fe6}=this['_savedMetaData']['get'](_0x25b404);this['_baseRoots']=new Map(_0x5352e2),this['_baseRootsAttributes']=new Map(_0x444a1c(_0x431fe6));for(const [_0xcd346c,_0x57fd33]of this['_baseRoots'])if('$graveyard'!==_0xcd346c&&(this['_diffRoots']['set'](_0xcd346c,N(_0x57fd33)),this['_diffRootsAttributes']=new Map(_0x444a1c(_0x431fe6)),_0x4198e1)){const _0x92762d=this['_revisionId'];this['_idsRoots']['set'](_0xcd346c,this['_makeIdsRoot'](_0x57fd33)),this['_baseIdsRoots']['set'](_0xcd346c,this['_makeIdsRoot'](_0x57fd33,_0x92762d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x4198e1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x137bc0,_0x457b7b]of _0x346caf){const _0x40d121=this['_baseRoots']['get'](_0x457b7b['rootName']),_0x402c92=this['_diffRoots']['get'](_0x457b7b['rootName']),_0x4832ed=new ft(this['_fixPosition'](_0x457b7b['start'],_0x40d121),this['_fixPosition'](_0x457b7b['end'],_0x40d121)),_0x3ade6a=this['_fixRange'](_0x4832ed,_0x402c92);_0x40d121['markers']['set'](_0x137bc0,_0x4832ed),this['_markers']['set'](_0x137bc0,_0x3ade6a);}this['_applyOperations'](_0x25b404,_0xc84f55,_0x4198e1);}['_applyOperations'](_0x5794a3,_0x528a13,_0x577c7e){for(const _0x5e50e4 of this['source']['getOperations'](_0x5794a3,_0x528a13))this['_handleOperation'](_0x5e50e4,_0x577c7e);for(const _0x14d96d of this['_diffRoots']['values']())_0x14d96d['markers']['clear']();for(const [_0x456a8c,_0x716fc3]of this['_markers']){this['_diffRoots']['get'](_0x716fc3['root']['rootName'])['markers']['set'](_0x456a8c,_0x716fc3['clone']());}const _0x18c00e=new Map(),_0x4c789b=new Map();for(const [_0x2f21c9,_0x217a8f]of this['_diffRoots'])_0x18c00e['set'](_0x2f21c9,N(_0x217a8f)),_0x4c789b['set'](_0x2f21c9,this['_diffRootsAttributes']['get'](_0x2f21c9));this['_saveMetaData'](_0x528a13,_0x18c00e,this['_markers'],_0x4c789b);}['_getPreviousFrom'](_0x189f06){const _0x159228=Array['from'](this['_savedMetaData']['keys']());_0x159228['sort']((_0x21de13,_0x425c06)=>_0x21de13-_0x425c06),_0x159228['reverse']();for(const _0x1bf2c7 of _0x159228)if(_0x1bf2c7<_0x189f06)return _0x1bf2c7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x314138,_0x1c3a43){const _0x49e3b8=Array['from'](_0x1c3a43['markers'])['map'](([_0x265153,_0x1bfb0b])=>[_0x265153,this['_fixRange'](_0x1bfb0b,_0x314138)]);_0x314138['markers']=new Map(_0x49e3b8);}['_transformMarkers'](_0x594d08){for(const _0x2efc68 of this['_markers']['values']()){const _0x1730ed=_0x2efc68['getTransformedByOperation'](_0x594d08),_0x19ece6=ft['_createFromRanges'](_0x1730ed);_0x2efc68['start']=_0x19ece6['start'],_0x2efc68['end']=_0x19ece6['end'];}}['_handleOperation'](_0x554ed3,_0x3d4d7a){if('addRoot'!=_0x554ed3['type']&&'detachRoot'!=_0x554ed3['type']){if('insert'==_0x554ed3['type']){const _0x320281=_0x554ed3['position']['root']['rootName'];this['_diffRoots']['has'](_0x320281)||(this['_diffRoots']['set'](_0x320281,P(_0x320281,!0x0)),this['_diffRootsAttributes']['set'](_0x320281,{}),_0x3d4d7a&&this['_idsRoots']['set'](_0x320281,P(_0x320281,!0x0)));}else{if('addRootAttribute'==_0x554ed3['type']||'removeRootAttribute'==_0x554ed3['type']||'changeRootAttribute'==_0x554ed3['type'])return void this['_handleRootAttributeOperation'](_0x554ed3);'marker'==_0x554ed3['type']&&this['_handleMarkerOperation'](_0x554ed3);}if('marker'!==_0x554ed3['type']){const _0x399cb9=this['_cloneOperation'](_0x554ed3,this['_diffRoots']);_0x399cb9['_execute'](),this['_transformMarkers'](_0x399cb9);}if(_0x3d4d7a)switch(_0x554ed3['type']){case'insert':this['_handleInsertOperation'](_0x554ed3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x554ed3);break;case'merge':this['_handleMergeOperation'](_0x554ed3);break;case'split':this['_handleSplitOperation'](_0x554ed3);}}else this['_handleRootOperation'](_0x554ed3,_0x3d4d7a);}['_cloneOperation'](_0x4e0c2d,_0x1b3da0){const _0x2f6980=_0x4e0c2d['clone']();return _0x2f6980['_authorId']=_0x4e0c2d['_authorId'],this['_fixOperation'](_0x2f6980,_0x1b3da0),_0x2f6980;}['_getBaseVids'](_0x5262a3){return _0x5262a3['map'](_0x94d94a=>{const _0x38dab4=this['_getVidAttributeName'](_0x94d94a);return Number(_0x94d94a['item']['getAttribute'](_0x38dab4));});}['_generateTape'](_0x593e0a,_0x45ea9b){if(_0x593e0a['is']('element','$text'))_0x45ea9b['push']({'item':_0x593e0a,'type':'text'});else{_0x593e0a['is']('element')&&_0x45ea9b['push']({'item':_0x593e0a,'type':'elementStart'});for(const _0x45f28b of _0x593e0a['getChildren']())this['_generateTape'](_0x45f28b,_0x45ea9b);_0x593e0a['is']('element')&&_0x45ea9b['push']({'item':_0x593e0a,'type':'elementEnd'});}return _0x45ea9b;}['_getState'](){const _0x8785db=new Map(this['_touched']),_0x151d4c=new Map(_0x8785db),_0x51ea98=new Map(),_0x3071c5={'insertions':{},'deletions':{}},_0x53f271={'insertions':{},'deletions':{}},_0x11b6d1=new Map(),_0x99f571=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x99f571['delete']('$graveyard');for(const _0x342cc4 of _0x99f571){const _0x2e124c=this['_diffRoots']['get'](_0x342cc4)||P(_0x342cc4,!0x1),_0xf30628=this['_baseRoots']['get'](_0x342cc4)||P(_0x342cc4,!0x1);_0x2e124c['isAttached']()||_0xf30628['isAttached']()?(_0x3071c5['insertions'][_0x342cc4]=N(_0x2e124c),_0x3071c5['deletions'][_0x342cc4]=N(_0xf30628),this['_copyMarkers'](_0x3071c5['deletions'][_0x342cc4],_0xf30628),this['_copyMarkers'](_0x3071c5['insertions'][_0x342cc4],_0x2e124c),_0x53f271['insertions'][_0x342cc4]=this['_generateTape'](this['_idsRoots']['get'](_0x342cc4),[]),_0x53f271['deletions'][_0x342cc4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x342cc4)||P(_0x342cc4,!0x1),[])):_0x99f571['delete'](_0x342cc4);}for(const _0x3ef29f of _0x99f571){const _0x379b96=_0x53f271['insertions'][_0x3ef29f];for(const _0x505492 of _0x379b96){const _0x4da4d0=this['_getVidAttributeName'](_0x505492),_0x105767=_0x505492['item']['getAttribute'](_0x4da4d0);_0x151d4c['delete'](_0x105767),_0x105767>=this['_startingRevisionId']&&_0x51ea98['set'](_0x105767,_0x8785db['get'](_0x105767));}}for(const _0x4687b7 of _0x99f571){const _0x5efe71=_0x53f271['insertions'][_0x4687b7],_0x9b0fd3=this['_getBaseVids'](_0x53f271['deletions'][_0x4687b7]);let _0x556e92=0x0;for(const _0xc28117 of _0x5efe71){const _0x4eaec2=this['_getVidAttributeName'](_0xc28117),_0x203665=_0xc28117['item']['getAttribute'](_0x4eaec2);if(!_0x51ea98['has'](_0x203665)&&!_0x11b6d1['has'](_0x203665)){if(_0x151d4c['has'](_0x203665))_0x556e92++;else{if(_0x203665!=_0x9b0fd3[_0x556e92]){const _0x17f5a9=_0x8785db['get'](_0x203665)||_0x8785db['get'](_0x9b0fd3[_0x556e92]);for(;_0x203665!=_0x9b0fd3[_0x556e92];)_0x151d4c['has'](_0x9b0fd3[_0x556e92])||(_0x11b6d1['set'](_0x9b0fd3[_0x556e92],_0x17f5a9),_0x8785db['set'](_0x9b0fd3[_0x556e92],_0x17f5a9)),_0x556e92++;}_0x556e92++;}}}}for(const _0x57e8f5 of _0x99f571){const _0x3ffd57=_0x53f271['insertions'][_0x57e8f5];for(const _0xae1edf of _0x3ffd57){const _0x42861e=this['_getVidAttributeName'](_0xae1edf),_0x516dce=_0xae1edf['item']['getAttribute'](_0x42861e);if(_0x11b6d1['has'](_0x516dce)){const _0x2bada5=_0x11b6d1['get'](_0x516dce);_0x151d4c['has'](_0x516dce)||_0x151d4c['set'](_0x516dce,{..._0x2bada5}),_0x51ea98['set'](_0x516dce,{..._0x2bada5});}}}for(const _0x199bb6 of _0x151d4c['keys']())_0x199bb6>=this['_startingRevisionId']&&_0x151d4c['delete'](_0x199bb6);const _0xca17ea=new Map();for(const _0x5bda68 of _0x99f571){let _0x4d67cf=_0x53f271['insertions'][_0x5bda68];for(const _0x367e50 of _0x4d67cf)if(_0x367e50['item']['is']('element','tableCell')){const _0x4c3aec=this['_getVidAttributeName'](_0x367e50),_0x55a263=_0x367e50['item']['getAttribute'](_0x4c3aec);if(_0x51ea98['has'](_0x55a263)){const _0x4b025e=_0x367e50['item']['parent']['parent']['getAttribute']('vid_start'),_0x4269d2=_0xca17ea['get'](_0x4b025e)||new Set();_0x4269d2['add'](_0x51ea98['get'](_0x55a263)['userId']),_0xca17ea['set'](_0x4b025e,_0x4269d2);}}_0x4d67cf=_0x53f271['deletions'][_0x5bda68];for(const _0x2ace44 of _0x4d67cf)if(_0x2ace44['item']['is']('element','tableCell')){const _0xd698ba=this['_getVidAttributeName'](_0x2ace44),_0x32b7a9=_0x2ace44['item']['getAttribute'](_0xd698ba);if(_0x151d4c['has'](_0x32b7a9)){const _0x1ec05e=_0x2ace44['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f6d04=_0xca17ea['get'](_0x1ec05e)||new Set();_0x4f6d04['add'](_0x151d4c['get'](_0x32b7a9)['userId']),_0xca17ea['set'](_0x1ec05e,_0x4f6d04);}}for(const _0x550053 of _0xca17ea['keys']())(_0x51ea98['has'](_0x550053)||_0x151d4c['has'](_0x550053))&&_0xca17ea['delete'](_0x550053);}for(const _0x2bdb2f of _0x99f571){const _0x3763ad=_0x53f271['insertions'][_0x2bdb2f];let _0x2f3eea=null,_0x3ab615=null;for(const _0x45917e of _0x3763ad){const _0x38f2eb=this['_getVidAttributeName'](_0x45917e),_0x3ec63a=_0x45917e['item']['getAttribute'](_0x38f2eb),_0x4b5929=_0xca17ea['get'](_0x3ec63a);_0x4b5929&&'elementStart'==_0x45917e['type']&&(_0x2f3eea=Array['from'](_0x4b5929)[0x0],_0x3ab615=_0x45917e['item']['getAttribute']('vid_end')),_0x2f3eea&&(_0x151d4c['set'](_0x3ec63a,{'userId':_0x2f3eea}),_0x51ea98['set'](_0x3ec63a,{'userId':_0x2f3eea})),_0x3ec63a==_0x3ab615&&(_0x2f3eea=null,_0x3ab615=null);}}const _0x146cd2={},_0x4d1aed=new Set();for(const _0x1fc3b2 of _0x99f571){const _0x1c2c29=_0x3071c5['deletions'][_0x1fc3b2],_0x5c8804=_0x3071c5['insertions'][_0x1fc3b2];for(const {userId:_0x5b6169}of this['_touchedMarkers']['values']())null!==_0x5b6169&&_0x4d1aed['add'](_0x5b6169);for(const {userId:_0x3b8b39}of this['_touchedRoots']['values']())null!==_0x3b8b39&&_0x4d1aed['add'](_0x3b8b39);this['_markChanges'](_0x5c8804,_0x53f271['insertions'][_0x1fc3b2],_0x51ea98,'insertion',_0x4d1aed),this['_markChanges'](_0x1c2c29,_0x53f271['deletions'][_0x1fc3b2],_0x151d4c,'deletion',_0x4d1aed),_0x146cd2[_0x1fc3b2]={'insertions':this['_prepareViewToSave'](_0x5c8804),'deletions':this['_prepareViewToSave'](_0x1c2c29),'attachChange':this['_touchedRoots']['get'](_0x1fc3b2)||null,'attributesBefore':_0x444a1c(this['_baseRootsAttributes']['get'](_0x1fc3b2))||{},'attributesAfter':_0x444a1c(this['_diffRootsAttributes']['get'](_0x1fc3b2))};}return{'diffData':_0x146cd2,'authorsIds':Array['from'](_0x4d1aed)};}['_processRootBeforeSave'](_0x39de0b){for(const [,_0x5859a0]of _0x39de0b['markers']){const _0x2f75c5=_0x5859a0['start']['getAncestors']()['filter'](_0x31db21=>'tableCell'==_0x31db21['name']);for(const _0x34b33f of _0x2f75c5)0x1==_0x34b33f['childCount']&&_0x34b33f['getChild'](0x0)['is']('element','paragraph')&&_0x34b33f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x546e30){this['_processRootBeforeSave'](_0x546e30);const _0x3675a5=this['editor']['data']['toView'](_0x546e30,{}),_0x3a75e3=Array['from'](_0x3675a5['getChildren']())['map'](_0x59eb4d=>this['_getViewJson'](_0x59eb4d));return JSON['stringify'](_0x3a75e3);}['_getViewJson'](_0x468913){if(_0x468913['is']('$text'))return _0x468913['data'];{const _0x3435a4=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1c4590=_0x468913,_0x21617b=this['editor']['data']['htmlProcessor']['domConverter'],_0x4cc29d={'type':_0x3435a4['_getTypeCharForViewElement'](_0x1c4590),'name':_0x1c4590['name'],'attributes':Array['from'](_0x1c4590['getAttributes']()),'children':Array['from'](_0x1c4590['getChildren']())['map'](_0x323732=>this['_getViewJson'](_0x323732))};if(_0x468913['is']('uiElement')&&'$comment'!=_0x468913['name']){const _0x5e20c5=_0x468913['render'](_0x21617b['domDocument'],_0x21617b);_0x4cc29d['children']['push'](_0x5e20c5['outerHTML']);}else{if(_0x468913['is']('rawElement')){const _0x2973da=_0x21617b['domDocument']['createElement'](_0x1c4590['name']);_0x468913['render'](_0x2973da,_0x21617b),_0x4cc29d['children']['push'](_0x2973da['innerHTML']);}}const _0x31f57c=Array['from'](_0x1c4590['getCustomProperties']());_0x31f57c['length']>0x0&&(_0x4cc29d['customProperties']=_0x31f57c);const _0x1def27=_0x1c4590['getFillerOffset']();return null!==_0x1def27&&(_0x4cc29d['fillerOffset']=_0x1def27),_0x4cc29d;}}['_markChanges'](_0x313b81,_0x196646,_0xf04086,_0x50c5e3,_0xaf25c5){let _0xf6112b=null,_0x5f30ea=null,_0x1e945c=0x0;const _0x218546=this['editor']['model'];for(let _0x54e1d2=0x0;_0x54e1d2<_0x196646['length'];_0x54e1d2++){const _0x4cf814=this['_getVidAttributeName'](_0x196646[_0x54e1d2]),_0x1754c6=_0x196646[_0x54e1d2]['item']['getAttribute'](_0x4cf814),_0x2c4094=_0xf04086['get'](_0x1754c6),_0x2a4472=_0x54e1d2==_0x196646['length']-0x1;(!_0xf6112b&&_0x2c4094&&(_0xf6112b=_0x2c4094,_0x5f30ea=_0x196646[_0x54e1d2]),_0xf6112b&&(!_0x2c4094||_0x2c4094['userId']!=_0xf6112b['userId']))&&(_0x151ac3(_0x2c4094,F(_0x5f30ea,_0x313b81,_0x218546),F(_0x196646[_0x54e1d2],_0x313b81,_0x218546)),_0xf6112b=_0x2c4094||null,_0x5f30ea=_0x2c4094?_0x196646[_0x54e1d2]:null),_0xf6112b&&_0x2a4472&&_0x151ac3(_0x2c4094,F(_0x5f30ea,_0x313b81,_0x218546),B(_0x196646[_0x54e1d2],_0x313b81,_0x218546));}function _0x151ac3(_0x327cd5,_0x14fcf6,_0x56ba07){const _0xba1b5e=_0xf6112b['userId'],_0x219906='revision:'+_0x50c5e3+':'+_0xba1b5e+':'+_0x1e945c++,_0x227508=_0x218546['createRange'](_0x14fcf6,_0x56ba07);_0x313b81['markers']['set'](_0x219906,_0x227508),null!==_0xba1b5e&&_0xaf25c5['add'](_0xba1b5e);}}['_getVidAttributeName'](_0x2ca45d){switch(_0x2ca45d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x281131,_0x45aa3f){_0x281131['baseVersion']=null;for(const _0x2dc335 in _0x281131){const _0x538cd=_0x281131[_0x2dc335];if(_0x538cd instanceof vt){const _0x5466f7=_0x45aa3f['get'](_0x538cd['root']['rootName']);_0x281131[_0x2dc335]=this['_fixPosition'](_0x538cd,_0x5466f7);}if(_0x538cd instanceof ft){const _0x1cef3e=_0x45aa3f['get'](_0x538cd['root']['rootName']);_0x281131[_0x2dc335]=this['_fixRange'](_0x538cd,_0x1cef3e);}'root'===_0x2dc335&&(_0x281131['root']=_0x45aa3f['get'](_0x281131['root']['rootName']));}}['_fixRange'](_0x1df951,_0x13dcfe){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1df951['start'],_0x13dcfe),this['_fixPosition'](_0x1df951['end'],_0x13dcfe));}['_fixPosition'](_0x5564ea,_0x147f1c){return this['editor']['model']['createPositionFromPath'](_0x147f1c,_0x5564ea['path'],_0x5564ea['stickiness']);}['_handleInsertOperation'](_0xd077ac){const _0xf95a53=this['_idsRoots']['get'](_0xd077ac['position']['root']['rootName']),_0x1307a9=this['_fixPosition'](_0xd077ac['position'],_0xf95a53),_0x44d44b=null===_0xd077ac['_authorId']?null:_0xd077ac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29e6aa=_0x1307a9['parent'],_0x345d8a=this['_revisionId'],_0x1ce5d7=[];for(const _0x5794cd of _0xd077ac['nodes'])if(_0x5794cd['is']('element'))_0x1ce5d7['push'](this['_makeIdsRoot'](_0x5794cd));else{for(let _0x37d6c1=0x0;_0x37d6c1<_0x5794cd['offsetSize'];_0x37d6c1++)_0x1ce5d7['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x44b647=this['_revisionId'];for(let _0x4b5fee=_0x345d8a;_0x4b5fee<_0x44b647;_0x4b5fee++)this['_touched']['set'](_0x4b5fee,{'userId':_0x44d44b});_0x29e6aa['_insertChild'](_0x1307a9['offset'],_0x1ce5d7);}['_handleMoveOperation'](_0x3065b7){(_0x3065b7=this['_cloneOperation'](_0x3065b7,this['_idsRoots']))['_execute']();const _0x4b44b9=null===_0x3065b7['_authorId']?null:_0x3065b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x273cf4=_0x3065b7['getMovedRangeStart'](),_0x5f4fd2=_0x273cf4['parent'],_0x3afc3a=_0x273cf4['offset'];!function _0x2ce003(_0x725746,_0x2d3a5b,_0x568d6e,_0x10e1d6){for(let _0x1f63db=_0x568d6e;_0x1f63db<_0x10e1d6;_0x1f63db++){const _0x19ab69=_0x2d3a5b['getChild'](_0x1f63db);_0x19ab69['is']('element','$text')?_0x725746['set'](_0x19ab69['getAttribute']('vid'),{'userId':_0x4b44b9}):(_0x725746['set'](_0x19ab69['getAttribute']('vid_start'),{'userId':_0x4b44b9}),_0x2ce003(_0x725746,_0x19ab69,0x0,_0x19ab69['childCount']),_0x725746['set'](_0x19ab69['getAttribute']('vid_end'),{'userId':_0x4b44b9}));}}(this['_touched'],_0x5f4fd2,_0x3afc3a,_0x3afc3a+_0x3065b7['howMany']);}['_handleMergeOperation'](_0x1bb6f1){const _0x36d655=null===(_0x1bb6f1=this['_cloneOperation'](_0x1bb6f1,this['_idsRoots']))['_authorId']?null:_0x1bb6f1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5dec35=_0x1bb6f1['targetPosition']['parent'],_0x1147c9=_0x1bb6f1['sourcePosition']['parent'],_0xebcff=_0x5dec35['getAttribute']('vid_end'),_0x1725e1=_0x1147c9['getAttribute']('vid_start');_0x5dec35['_setAttribute']('vid_end',_0x1147c9['getAttribute']('vid_end')),_0x1147c9['_setAttribute']('vid_end',_0xebcff),this['_touched']['set'](_0x1725e1,{'userId':_0x36d655}),this['_touched']['set'](_0xebcff,{'userId':_0x36d655}),_0x1bb6f1['_execute']();}['_handleSplitOperation'](_0x5e0968){const _0x2158b2=null===(_0x5e0968=this['_cloneOperation'](_0x5e0968,this['_idsRoots']))['_authorId']?null:_0x5e0968['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x249ba1=_0x5e0968['graveyardPosition'],_0x4004ec=_0x5e0968['splitPosition']['parent'];_0x5e0968['_execute']();const _0xb10801=_0x4004ec['getAttribute']('vid_end'),_0x3c9bca=_0x5e0968['insertionPosition']['nodeAfter'];if(_0x249ba1){const _0x224096=_0x3c9bca['getAttribute']('vid_end'),_0x1a3ee5=_0x4004ec['getAttribute']('vid_end');_0x4004ec['_setAttribute']('vid_end',_0x224096),_0x3c9bca['_setAttribute']('vid_end',_0x1a3ee5),this['_touched']['set'](_0x4004ec['getAttribute']('vid_end'),{'userId':_0x2158b2}),this['_touched']['set'](_0x3c9bca['getAttribute']('vid_start'),{'userId':_0x2158b2});}else{const _0x3d2281=this['_revisionId']++,_0x439dba=this['_revisionId']++;_0x4004ec['_setAttribute']('vid_end',_0x3d2281),_0x3c9bca['_setAttribute']('vid_start',_0x439dba),_0x3c9bca['_setAttribute']('vid_end',_0xb10801),this['_touched']['set'](_0x3d2281,{'userId':_0x2158b2}),this['_touched']['set'](_0x439dba,{'userId':_0x2158b2});}}['_handleMarkerOperation'](_0x19b6bf){if(!_0x19b6bf['affectsData'])return;const _0x389247=(_0x19b6bf=this['_cloneOperation'](_0x19b6bf,this['_diffRoots']))['oldRange']?_0x19b6bf['oldRange']['root']:null,_0x53d751=_0x19b6bf['newRange']?_0x19b6bf['newRange']['root']:null;_0x389247&&this['_markers']['delete'](_0x19b6bf['name']),_0x53d751&&this['_markers']['set'](_0x19b6bf['name'],_0x19b6bf['newRange']['clone']());const _0x395d4c=null===_0x19b6bf['_authorId']?null:_0x19b6bf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e17ad=_0x19b6bf['name'];if(!this['_touchedMarkers']['has'](_0x1e17ad))return void this['_touchedMarkers']['set'](_0x1e17ad,{'range':_0x19b6bf['oldRange'],'userId':_0x395d4c});const _0x1b295c=this['_touchedMarkers']['get'](_0x1e17ad),_0x55cbbc=_0x1b295c['range'],_0x26658a=_0x19b6bf['newRange'];null==_0x55cbbc&&null==_0x26658a||_0x55cbbc&&_0x26658a&&_0x55cbbc['isEqual'](_0x26658a)?this['_touchedMarkers']['delete'](_0x19b6bf['name']):_0x1b295c['userId']=_0x395d4c;}['_handleRootOperation'](_0x252773,_0x1fb16d){this['_diffRoots']['has'](_0x252773['rootName'])?this['_diffRoots']['get'](_0x252773['rootName'])['_isAttached']=_0x252773['isAdd']:(this['_diffRoots']['set'](_0x252773['rootName'],P(_0x252773['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x252773['rootName'],{}),_0x1fb16d&&this['_idsRoots']['set'](_0x252773['rootName'],P(_0x252773['rootName'],!0x0)));const _0x4d3c30=null===_0x252773['_authorId']?null:_0x252773['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d793e=this['_touchedRoots']['get'](_0x252773['rootName']);_0x4d793e&&_0x4d793e['userId']===_0x4d3c30?this['_touchedRoots']['delete'](_0x252773['rootName']):this['_touchedRoots']['set'](_0x252773['rootName'],{'userId':_0x4d3c30,'isAttached':_0x252773['isAdd']});}['_handleRootAttributeOperation'](_0x151026){const _0x5d3549=this['_diffRootsAttributes']['get'](_0x151026['root']['rootName']);null===_0x151026['newValue']?delete _0x5d3549[_0x151026['key']]:_0x5d3549[_0x151026['key']]=_0x151026['newValue'];}}function N(_0x5d085a){const _0x5ffa35=P(_0x5d085a['rootName'],_0x5d085a['isAttached']());for(const _0x312b06 of _0x5d085a['getChildren']()){const _0x242db2=_0x312b06['_clone'](!0x0);_0x5ffa35['_appendChild'](_0x242db2);}return _0x5ffa35;}function P(_0x377fbb,_0x5067aa=!0x0){const _0x5e0dc8=new gt();return _0x5e0dc8['rootName']=_0x377fbb,_0x5e0dc8['_isAttached']=_0x5067aa,_0x5e0dc8['isAttached']=()=>_0x5e0dc8['_isAttached'],_0x5e0dc8;}function F(_0x3d0e0b,_0x170695,_0x3b3a32){const _0x28410d='elementEnd'==_0x3d0e0b['type']?_0x3b3a32['createPositionAt'](_0x3d0e0b['item'],'end'):_0x3b3a32['createPositionBefore'](_0x3d0e0b['item']);return _0x3b3a32['createPositionFromPath'](_0x170695,_0x28410d['path'],_0x28410d['stickiness']);}function B(_0x2559c5,_0x13c6cb,_0x559c7f){const _0x59086e='elementStart'==_0x2559c5['type']?_0x559c7f['createPositionAt'](_0x2559c5['item'],0x0):_0x559c7f['createPositionAfter'](_0x2559c5['item']);return _0x559c7f['createPositionFromPath'](_0x13c6cb,_0x59086e['path'],_0x59086e['stickiness']);}class os extends _0x45ce53{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4ec2e0,_0x3a570a){super(_0x4ec2e0),this['focusTracker']=new _0xb00117(),this['keystrokes']=new _0x101bde(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3a570a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x501da0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x39c848=_0x246cf1=>_0x246cf1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x39c848),this['keystrokes']['set']('arrowleft',_0x39c848),this['keystrokes']['set']('arrowup',_0x39c848),this['keystrokes']['set']('arrowdown',_0x39c848);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x239990){this['revisionNameInputView']['fieldView']['element']['value']=_0x239990['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x41870e){const _0x371eb8=new nt(this['locale'],ti),_0x1898c1=_0x371eb8['fieldView'];_0x1898c1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1fa7cf=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x41870e&&(_0x1fa7cf+='\x20('+g(this['locale'],'optional')+')'),(_0x371eb8['label']=_0x1fa7cf,_0x1898c1['on']('input',()=>{this['revisionNameInputValue']=_0x1898c1['element']['value']['trim']();}),_0x371eb8);}}class f extends _0x58bc6f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2adbd8=this['editor'],_0x1d3c87=_0x2adbd8['plugins']['get']('RevisionTracker');_0x2adbd8['ui']['componentFactory']['add']('revisionHistory',_0xd38b7a=>{const _0x22d439=_0xbd0f73(_0xd38b7a),_0xd27646=_0x22d439['panelView']['children'],_0x5a1838=new _0x86dbad(_0xd38b7a),_0x3e1efb=new te(_0xd38b7a),_0x4ee4b0=new _0xf1e793(_0xd38b7a),_0x39ffb7=new te(_0xd38b7a),_0x17a62f=new _0xf1e793(_0xd38b7a);return _0x22d439['bind']('isEnabled')['to'](_0x1d3c87,'isReady',_0x1d3c87,'isEnabled',_0x2adbd8,'isReadOnly',(_0x3ed173,_0x42d1c1,_0x396cd2)=>_0x3ed173&&_0x42d1c1&&!_0x396cd2),_0x22d439['buttonView']['set']({'icon':_0x3be67e,'label':g(_0xd38b7a,'Revision\x20history'),'tooltip':!0x0}),_0x4ee4b0['set']({'label':g(_0xd38b7a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4ee4b0['bind']('isEnabled')['to'](_0x1d3c87,'isReady',_0x1d3c87,'isEnabled',_0x2adbd8,'isReadOnly',(_0x68a76d,_0x586f6b,_0xca881)=>_0x68a76d&&_0x586f6b&&!_0xca881),_0x4ee4b0['on']('execute',()=>this['_showDialog']()),_0x17a62f['set']({'label':g(_0xd38b7a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x17a62f['bind']('isEnabled')['to'](_0x1d3c87,'isReady',_0x2adbd8,'isReadOnly',(_0x1e34be,_0x2296fe)=>_0x1e34be&&!_0x2296fe),_0x17a62f['on']('execute',()=>{_0x2adbd8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x22d439['isOpen']=!0x1,_0x2adbd8['editing']['view']['focus']();}),_0x3e1efb['children']['add'](_0x4ee4b0),_0x39ffb7['children']['add'](_0x17a62f),_0x5a1838['role']='menu',_0x5a1838['items']['addMany']([_0x3e1efb,_0x39ffb7]),_0xd27646['add'](_0x5a1838),_0x22d439;}),_0x2adbd8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1357eb=this['editor'],_0x2c6409=_0x1357eb['locale'],_0x287ea2=new _0x5f3a05(_0x2c6409),_0xd9176=new _0x1e21b2(_0x2c6409);_0x287ea2['buttonView']['set']({'icon':_0x3be67e,'label':g(_0x2c6409,'Revision\x20history')});const _0x42e7a0=new _0xb7a14(_0x2c6409,_0x287ea2),_0x3ab60c=new _0x438cc2(_0x2c6409);_0x3ab60c['set']({'label':g(_0x2c6409,'Save\x20current\x20revision')}),_0x3ab60c['delegate']('execute')['to'](_0x287ea2),_0x3ab60c['on']('execute',()=>{this['_showDialog']();}),_0x42e7a0['children']['add'](_0x3ab60c),_0xd9176['items']['add'](_0x42e7a0);const _0x379828=new _0xb7a14(_0x2c6409,_0x287ea2),_0x332373=new _0x438cc2(_0x2c6409);return _0x332373['set']({'label':g(_0x2c6409,'Open\x20revision\x20history')}),_0x332373['delegate']('execute')['to'](_0x287ea2),_0x332373['on']('execute',()=>{_0x1357eb['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x379828['children']['add'](_0x332373),_0xd9176['items']['add'](_0x379828),_0x287ea2['panelView']['children']['add'](_0xd9176),_0x287ea2;}['_showDialog'](){const _0x5b5d41=this['editor'],_0x46c360=_0x5b5d41['locale'],_0x1bfabc=_0x5b5d41['plugins']['get']('Dialog'),_0x2ff4ef=_0x5b5d41['plugins']['get']('RevisionTracker');function _0x4ca64c(_0x43af91){_0x5b5d41['config']['get']('revisionHistory.requireRevisionName')&&''===_0x43af91['revisionName']?_0x43af91['revisionNameInputView']['errorText']=g(_0x46c360,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5b5d41['plugins']['get'](u)['saveRevision']({'name':_0x43af91['revisionName']}),_0x1bfabc['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4ca64c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1bfabc['show']({'id':'revisionSave','title':g(_0x46c360,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x5b5d41['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1bfabc['hide']()},{'label':g(_0x5b5d41['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xd54987){_0xd54987['bind']('isEnabled')['to'](_0x2ff4ef,'isReady',_0x2ff4ef,'isEnabled',_0x5b5d41,'isReadOnly',(_0x1478a6,_0x469154,_0x29b175)=>_0x1478a6&&_0x469154&&!_0x29b175);},'onExecute':()=>_0x4ca64c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1cf775=this['editor'],_0x459bfc=_0x1cf775['locale'];this['_saveRevisionFormView']=new os(_0x459bfc,_0x1cf775['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x45ce53{['changeId'];['_model'];constructor(_0x25ae9d,_0x446618){super(_0x25ae9d),this['_model']=_0x446618,this['changeId']=_0x446618['id'];const _0x518de5=this['bindTemplate'],_0x553d11=g(_0x25ae9d,_0x446618['data']['isSuggestion']?'Suggested\x20by':'add'==_0x446618['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x446618['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x518de5['to']('type',_0x6b491e=>'ck-revision-change__'+_0x6b491e)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x553d11}]},{'text':'\x20'+_0x446618['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x23464f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x59a8d2){super(),this['id']=_0x59a8d2['id']||_0x11e8c2(),this['author']=_0x59a8d2['author'],this['type']=_0x59a8d2['type'],this['data']=_0x59a8d2['data']||{},this['rootName']=_0x59a8d2['rootName'],this['set']('createdAt',_0x59a8d2['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(_0x44a5fe,_0x12af50){this['newRevisionId']=_0x44a5fe,this['oldRevisionId']=_0x12af50,this['changes']=new _0x4aa85f();}['_setChanges'](_0x2cdbaa){for(const _0x4773f8 of _0x2cdbaa)this['changes']['add'](_0x4773f8);}}class m extends _0x58bc6f{['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[_0x2d5273,_0x109f69,I,V];}constructor(_0x21dc0d){super(_0x21dc0d),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',(_0x197c7f,_0x58a3c5,_0x62cf3c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x44c549=>{for(const _0x107974 of this['editor']['editing']['view']['document']['roots'])_0x62cf3c?_0x44c549['removeClass']('ck-editor__editable__overlay',_0x107974):_0x44c549['addClass']('ck-editor__editable__overlay',_0x107974);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4e51a5=>null!==_0x4e51a5),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x239ba8,_0x450e18,_0x2af42e)=>_0x239ba8&&_0x2af42e?_0x450e18['changes']['getIndex'](_0x2af42e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x45c51c,_0x11f9c6)=>_0x45c51c?_0x11f9c6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x109f69);}['init'](){const _0x28e72f=this['editor'],_0x3fc5d1=new pt(_0x28e72f,{'direction':'backward'}),_0x4307c4=new pt(_0x28e72f,{'direction':'forward'});(_0x28e72f['commands']['add']('showPreviousChange',_0x3fc5d1),_0x28e72f['commands']['add']('showNextChange',_0x4307c4),_0x28e72f['commands']['add']('restoreRevision',new wt(_0x28e72f)),this['on']('change:numberOfChanges',()=>{_0x3fc5d1['refresh'](),_0x4307c4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x28e72f['enableReadOnlyMode']('revision-viewer'),_0x28e72f['plugins']['has']('WidgetToolbarRepository'))&&_0x28e72f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x116b0f){return await this['_utils']['loadRevisionData'](_0x116b0f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x116b0f);}async['getRevisionRootsAttributes'](_0x528883){return await this['_utils']['loadRevisionData'](_0x528883,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x528883);}async['compare'](_0xac446,_0x1c9792,_0x3ecdd4=!0x1){if(!this['isEnabled'])return;const _0x1867ef=this['diff'],_0x47d390=this['repository'],_0x3fb393='string'==typeof _0xac446?_0x47d390['getRevision'](_0xac446):_0xac446,_0x321414='string'==typeof _0x1c9792?_0x47d390['getRevision'](_0x1c9792):_0x1c9792,_0x43df86=_0x3fb393['id'],_0x1c3f54=_0x321414?_0x321414['id']:null;if(!_0x3ecdd4&&this['diff']&&this['diff']['newRevisionId']===_0x43df86&&this['diff']['oldRevisionId']===_0x1c3f54)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x43df86,_0x1c3f54);const _0x151638=this['_getRevisionsRange'](_0x3fb393,_0x321414,!0x0)['map'](_0x19e759=>this['_utils']['loadRevisionData'](_0x19e759,this['adapter']));return _0x151638['push'](new Promise(_0x2d027d=>{setTimeout(_0x2d027d,0x14);})),Promise['all'](_0x151638)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x18a541=this['_getDiff'](_0x43df86,_0x1c3f54);for(const _0x51f8b6 of _0x18a541['changes'])this['_changeIdToChange']['set'](_0x51f8b6['id'],_0x51f8b6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x26731b=>{for(const _0x4af74d of this['editor']['model']['document']['getRootNames']())_0x26731b['detachRoot'](_0x4af74d);for(const _0x9eda54 of Object['keys'](_0x18a541['model'])){const _0x1c1ec1=_0x26731b['addRoot'](_0x9eda54);for(const _0x4d09d8 of Object['keys'](_0x18a541['attributes'][_0x9eda54]))_0x26731b['setAttribute'](_0x4d09d8,_0x18a541['attributes'][_0x9eda54][_0x4d09d8],_0x1c1ec1);_0x26731b['insert'](_0x18a541['model'][_0x9eda54],_0x1c1ec1,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x18a541['changes'])),this['isReady']=!0x0;})['catch'](_0x40c403=>{console['error'](_0x40c403),this['_cleanUp'](),_0x1867ef&&(this['diff']=_0x1867ef),this['isReady']=!0x0;});}['addRevisionData'](_0x4f32ff,_0x54e68b){const _0x1aea87=this['repository']['createRevision'](_0x4f32ff);return _0x1aea87['on']('_update',(_0x46589e,_0x59c680,_0x4133ae)=>_0x54e68b(_0x59c680,_0x4133ae,_0x1aea87)),this['repository']['addRevision'](_0x1aea87),_0x1aea87;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2a20e3=>{for(const _0x5da124 of this['editor']['model']['document']['getRootNames']())_0x2a20e3['detachRoot'](_0x5da124);});}['_sortAndFilterDiffChanges'](_0x3d8117){const _0x323586=[],_0x183b53=new Map();for(const _0x4ca603 of this['editor']['model']['document']['getRootNames']()){const _0x56fc96=this['editor']['editing']['view']['getDomRoot'](_0x4ca603);if(!_0x56fc96)continue;const _0x11b363=_0x56fc96['getClientRects']()['item'](0x0);_0x11b363&&(_0x323586['push'](_0x4ca603),_0x183b53['set'](_0x4ca603,_0x11b363));}return _0x323586['sort']((_0x5e0c81,_0x7209c6)=>{const _0x119c53=_0x183b53['get'](_0x5e0c81),_0xc9ba7f=_0x183b53['get'](_0x7209c6);return _0x119c53['y']-_0xc9ba7f['y']||_0x119c53['x']-_0xc9ba7f['x'];}),(_0x3d8117=_0x3d8117['filter'](_0x6c21b0=>_0x323586['includes'](_0x6c21b0['rootName'])))['sort']((_0x350d74,_0x3770e9)=>_0x323586['indexOf'](_0x350d74['rootName'])-_0x323586['indexOf'](_0x3770e9['rootName'])),_0x3d8117;}['_makeTape'](_0x3bdbcc){const _0x48e1f7=Array['from'](_0x3bdbcc['markers'])['filter'](([_0x223b75,_0x19318c])=>_0x223b75['startsWith']('revision:')&&!_0x19318c['isCollapsed']),_0x5a0bb3=Array['from'](this['editor']['model']['createRangeIn'](_0x3bdbcc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x48e1f7['length'])for(const _0x3652e4 of _0x5a0bb3){const [_0x32ed97,_0xc21597]=_0x48e1f7[0x0],[,_0x1acdfc,_0x5252ba]=_0x32ed97['split'](':');if(_0xc21597['end']['isEqual'](_0x3652e4['nextPosition'])&&_0x48e1f7['shift'](),(_0x3652e4['previousPosition']['isEqual'](_0xc21597['start'])||_0x3652e4['previousPosition']['isAfter'](_0xc21597['start']))&&('insertion'==_0x1acdfc?_0x3652e4['isAdded']={'userId':_0x5252ba}:'deletion'==_0x1acdfc&&(_0x3652e4['isRemoved']={'userId':_0x5252ba})),0x0==_0x48e1f7['length'])break;}return _0x5a0bb3;}['_refreshStartEndIndex'](_0x6790ed){const _0x5aac54=new Map();for(let _0x5a493b=0x0;_0x5a493b<_0x6790ed['length'];_0x5a493b++)'text'===_0x6790ed[_0x5a493b]['type']?(_0x6790ed[_0x5a493b]['item']['startIndex']=_0x5a493b,_0x6790ed[_0x5a493b]['item']['endIndex']=_0x5a493b):('elementStart'===_0x6790ed[_0x5a493b]['type']?_0x6790ed[_0x5a493b]['item']['startIndex']=_0x5a493b:'elementEnd'===_0x6790ed[_0x5a493b]['type']&&(_0x6790ed[_0x5a493b]['item']['endIndex']=_0x5a493b),_0x5aac54['set'](_0x6790ed[_0x5a493b]['id'],_0x5a493b));for(const _0x86709d of _0x5aac54['values']())'elementStart'===_0x6790ed[_0x86709d]['type']?_0x6790ed[_0x86709d]['item']['endIndex']=_0x5aac54['get'](_0x6790ed[_0x86709d]['pairId']):'elementEnd'===_0x6790ed[_0x86709d]['type']&&(_0x6790ed[_0x86709d]['item']['startIndex']=_0x5aac54['get'](_0x6790ed[_0x86709d]['pairId']));}['_processTape'](_0x3b22f8){for(let _0x4703f2=0x0;_0x4703f2<_0x3b22f8['length'];_0x4703f2++){if('elementStart'===_0x3b22f8[_0x4703f2]['type'])_0x3b22f8[_0x4703f2]['item']['startIndex']=_0x4703f2;else{if('elementEnd'===_0x3b22f8[_0x4703f2]['type']){_0x3b22f8[_0x4703f2]['item']['endIndex']=_0x4703f2;const _0x368940=_0x3b22f8[_0x4703f2]['item']['startIndex'];_0x3b22f8[_0x368940]['pairId']=_0x3b22f8[_0x4703f2]['id'],_0x3b22f8[_0x4703f2]['pairId']=_0x3b22f8[_0x368940]['id'];}else _0x3b22f8[_0x4703f2]['item']['startIndex']=_0x4703f2,_0x3b22f8[_0x4703f2]['item']['endIndex']=_0x4703f2,_0x3b22f8[_0x4703f2]['pairId']=null;}_0x3b22f8[_0x4703f2]['markersStart']||(_0x3b22f8[_0x4703f2]['markersStart']=[],_0x3b22f8[_0x4703f2]['markersEnd']=[]);}}['_markInsertions'](_0x2d0f81,_0x7a9482){const _0x170eab=_0x2d0f81['filter'](_0x24ae3a=>!_0x24ae3a['isAdded']);for(let _0x198bef=0x0;_0x198bef<_0x7a9482['length'];_0x198bef++)_0x7a9482[_0x198bef]['isAdded']&&(_0x170eab[_0x198bef]['isAdded']=_0x7a9482[_0x198bef]['isAdded']);}['_getDiff'](_0x18d8b0,_0x542387=null){const _0x355992=this['repository']['getRevision'](_0x18d8b0),_0x282084=_0x542387?this['repository']['getRevision'](_0x542387):null,_0x2923ab=this['_getRevisionsRange'](_0x355992,_0x282084),_0x1f19a0=_0x2923ab[_0x2923ab['length']-0x1],_0x44f5e0=new Map(),_0x1413de={'model':{},'attributes':{},'changes':[]},_0x11a87c=new Set(),_0x2880f1=new Map();for(let _0x3a51a2=_0x2923ab['length']-0x1;_0x3a51a2>=0x0;_0x3a51a2--){const _0x41f7b0=_0x2923ab[_0x3a51a2];for(const _0x56773c of Object['keys'](_0x41f7b0['diffData']))if(_0x41f7b0['diffData'][_0x56773c]['attachChange']){const _0x5b6bdf=_0x41f7b0['diffData'][_0x56773c]['attachChange'];_0x5b6bdf['isAttached']?(_0x11a87c['add'](_0x56773c),_0x2880f1['has'](_0x56773c)&&_0x2880f1['get'](_0x56773c)['userId']==_0x5b6bdf['userId']?_0x2880f1['delete'](_0x56773c):_0x2880f1['set'](_0x56773c,_0x5b6bdf)):_0x2880f1['has'](_0x56773c)?(_0x11a87c['delete'](_0x56773c),_0x2880f1['delete'](_0x56773c)):(_0x11a87c['add'](_0x56773c),_0x2880f1['set'](_0x56773c,_0x5b6bdf));}else _0x11a87c['add'](_0x56773c);}for(const _0x683eaa of _0x11a87c){const _0x235661=_0x2880f1['has'](_0x683eaa)&&!_0x2880f1['get'](_0x683eaa)['isAttached'];let _0x491aa6=_0x235661?_0x2923ab['length']-0x1:0x0;const _0x4ee2a8=_0x235661?-0x1:0x1;for(;_0x2923ab[_0x491aa6];){const _0x38fe59=_0x2923ab[_0x491aa6];if(_0x38fe59['diffData'][_0x683eaa]){const _0x2169e1=_0x235661?_0x38fe59['diffData'][_0x683eaa]['attributesBefore']:_0x38fe59['diffData'][_0x683eaa]['attributesAfter'];_0x1413de['attributes'][_0x683eaa]=_0x2169e1?_0x444a1c(_0x2169e1):{};break;}_0x491aa6+=_0x4ee2a8;}}for(const _0x3a6285 of _0x2923ab){_0x3a6285['model']={};for(const _0x5e838b of _0x3a6285['authors'])_0x44f5e0['set'](_0x5e838b['id'],_0x5e838b);for(const _0x21c357 of _0x11a87c){const _0x3a04a8=_0x3a6285['diffData'][_0x21c357]?_0x3a6285['diffData'][_0x21c357]['insertions']:'[]',_0x4629d0=_0x3a6285['diffData'][_0x21c357]?_0x3a6285['diffData'][_0x21c357]['deletions']:'[]';_0x3a6285['model'][_0x21c357]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3a04a8),'deletions':this['_utils']['_makeModelFromViewString'](_0x4629d0)};}}for(const _0x4df012 of _0x11a87c){let _0x2ba405=null,_0x2c34e2=0x0;const _0x56a620=new Map(Array['from'](_0x355992['model'][_0x4df012]['insertions']['markers'])['filter'](([_0x57291b])=>!_0x57291b['startsWith']('revision:')));let _0x54e17c=0x0;for(const _0x514b30 of _0x2923ab){const _0x4f54e6=this['_makeTape'](_0x514b30['model'][_0x4df012]['insertions']);_0x514b30==_0x355992?(_0x2ba405=_0x4f54e6,_0x2c34e2=_0x2ba405['length'],_0x2ba405['forEach'](_0x2f8397=>{_0x2f8397['id']=_0x54e17c++;}),this['_processTape'](_0x2ba405)):this['_markInsertions'](_0x2ba405,_0x4f54e6);const _0x50c7fc=_0x2ba405['filter'](_0x202299=>!_0x202299['isAdded'])['map'](_0x551834=>_0x551834['id']);let _0x1e0653=0x0;const _0xbd91df=this['_makeTape'](_0x514b30['model'][_0x4df012]['deletions']);_0xbd91df['forEach'](_0x8c037a=>{_0x8c037a['isRemoved']?_0x8c037a['id']=_0x2c34e2++:_0x8c037a['id']=_0x50c7fc[_0x1e0653++];}),this['_processTape'](_0xbd91df),this['_setDistance'](_0x2ba405,'isAdded'),this['_setDistance'](_0xbd91df,'isRemoved'),_0x514b30==_0x355992&&this['_markMarkers'](_0x2ba405,_0x56a620),_0x2ba405=this['_joinTapes'](_0x2ba405,_0xbd91df),this['_refreshStartEndIndex'](_0x2ba405),this['_setDistance'](_0x2ba405,'isRemoved');}_0x2ba405=_0x2ba405['filter'](_0x50db7f=>!(_0x50db7f['isAdded']&&_0x50db7f['isRemoved']));const _0x643fe8=new Map(_0x1f19a0['model'][_0x4df012]['deletions']['markers']),_0x42d3fd=new Set(_0x56a620['keys']());for(const _0x4ca5ba of _0x643fe8['keys']())_0x42d3fd['delete'](_0x4ca5ba);this['_markSuggestions'](_0x2ba405,_0x42d3fd),this['_fixObsoleteTags'](_0x2ba405),_0x2ba405=this['_removeMissingPairs'](_0x2ba405),_0x2ba405=this['_markMismatchedRemovedTags'](_0x2ba405),_0x2ba405=this['_removeUnsupportedChanges'](_0x2ba405);const {root:_0x2e5997,changes:_0x19a918}=this['_makeModelFromTape'](_0x2ba405,_0x44f5e0,_0x4df012);_0x1413de['model'][_0x4df012]=_0x2e5997;const _0x3a11f2=_0x2880f1['get'](_0x4df012);if(_0x3a11f2){const _0x58ca73=_0x44f5e0['get'](_0x3a11f2['userId']),_0x31b29c=new r({'author':_0x58ca73,'type':_0x3a11f2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4df012});_0x19a918['unshift'](_0x31b29c),_0x1413de['attributes'][_0x4df012]['revisionHistoryAttachChange']=_0x31b29c['id'];}_0x1413de['changes']=_0x1413de['changes']['concat'](_0x19a918);}return _0x1413de;}['_markMarkers'](_0x521179,_0x3dede4){for(let _0x59981b=0x0;_0x59981b<_0x521179['length'];_0x59981b++)for(const [_0x42538c,_0x534719]of _0x3dede4)!_0x534719['isCollapsed']&&_0x534719['start']['isEqual'](_0x521179[_0x59981b]['previousPosition'])&&_0x521179[_0x59981b]['markersStart']['push'](_0x42538c),_0x534719['end']['isEqual'](_0x521179[_0x59981b]['nextPosition'])&&_0x521179[_0x59981b]['markersEnd']['push'](_0x42538c);}['_joinTapes'](_0x38a4f2,_0xd05f4b){let _0x1510c3=[],_0x26b442=0x0,_0x217c45=0x0;for(;_0x26b442<_0x38a4f2['length']||_0x217c45<_0xd05f4b['length'];){const _0x46f86d=_0x38a4f2[_0x26b442]||{},_0x1a5fe1=_0xd05f4b[_0x217c45]||{};if(_0x46f86d['id']==_0x1a5fe1['id'])_0x26b442++,_0x217c45++,_0x1510c3['push'](_0x46f86d);else{if(_0x1a5fe1['isRemoved']&&_0x46f86d['isAdded']){const {commonTape:_0x2e9094,iEnd:_0x4274b7,jEnd:_0xa6b550}=this['_threeWayMerge'](_0x38a4f2,_0x26b442,_0xd05f4b,_0x217c45);_0x1510c3=_0x1510c3['concat'](_0x2e9094),_0x26b442=_0x4274b7,_0x217c45=_0xa6b550;}else _0x1a5fe1['isRemoved']?(_0x217c45++,_0x1510c3['push'](_0x1a5fe1)):(_0x26b442++,_0x1510c3['push'](_0x46f86d));}}return _0x1510c3;}['_markSuggestions'](_0x3c9a7b,_0x5f3367){const _0x2118aa=[];for(let _0x5fa992=0x0;_0x5fa992<_0x3c9a7b['length'];_0x5fa992++){for(let _0x1e22d1=0x0;_0x1e22d1<_0x3c9a7b[_0x5fa992]['markersStart']['length'];_0x1e22d1++){const _0x6bf058=_0x3c9a7b[_0x5fa992]['markersStart'][_0x1e22d1];if(!_0x5f3367['has'](_0x6bf058))continue;const {group:_0x50582c,type:_0x23cfc5,authorId:_0x1c478f}=_0xd0676b(_0x6bf058);'revision-suggestion'!=_0x50582c||'insertion'!=_0x23cfc5&&'deletion'!=_0x23cfc5||(_0x2118aa['unshift']({'type':_0x23cfc5,'name':_0x6bf058,'userId':_0x1c478f}),_0x3c9a7b[_0x5fa992]['markersStart']['splice'](_0x1e22d1,0x1),_0x1e22d1--);}_0x5ed07d(_0x3c9a7b[_0x5fa992]);for(let _0xc62c54=0x0;_0xc62c54<_0x3c9a7b[_0x5fa992]['markersEnd']['length'];_0xc62c54++){const _0x1f6186=_0x3c9a7b[_0x5fa992]['markersEnd'][_0xc62c54];if(!_0x5f3367['has'](_0x1f6186))continue;const {group:_0x2c95e4,type:_0x442091}=_0xd0676b(_0x1f6186);if('revision-suggestion'!=_0x2c95e4||'insertion'!=_0x442091&&'deletion'!=_0x442091)continue;_0x3c9a7b[_0x5fa992]['markersEnd']['splice'](_0xc62c54,0x1),_0xc62c54--;const _0x51c633=_0x2118aa['findIndex'](_0x5d1919=>_0x5d1919['name']==_0x1f6186);_0x51c633>-0x1&&_0x2118aa['splice'](_0x51c633,0x1);}}function _0xd0676b(_0x16c625){const _0x5752c4=_0x16c625['split'](':');return{'group':_0x5752c4[0x0],'type':_0x5752c4[0x1],'subType':_0x5752c4['length']>=0x5?_0x5752c4[0x2]:null,'id':_0x5752c4['length']<0x5?_0x5752c4[0x2]:_0x5752c4[0x3],'authorId':_0x5752c4['length']<0x5?_0x5752c4[0x3]:_0x5752c4[0x4],'markerCount':0x6==_0x5752c4['length']?_0x5752c4[0x5]:null};}function _0x5ed07d(_0x5bcfe3){for(let _0x6495fb=0x0;_0x6495fb<_0x2118aa['length'];_0x6495fb++){if(_0x5bcfe3['isAdded']&&'insertion'==_0x2118aa[_0x6495fb]['type'])return _0x5bcfe3['isAddSuggestion']=_0x2118aa[_0x6495fb],void delete _0x5bcfe3['isAdded'];if(!_0x5bcfe3['isAdded']&&!_0x5bcfe3['isRemoved']&&'deletion'==_0x2118aa[_0x6495fb]['type'])return void(_0x5bcfe3['isRemoveSuggestion']=_0x2118aa[_0x6495fb]);}}}['_setDistance'](_0x559faf,_0xd47a0){let _0x55a62a=0x0,_0xb0d587=!0x1;const _0x659a0c=new Map();for(const _0x1e5103 of _0x559faf)_0x1e5103[_0xd47a0]?_0xb0d587&&(_0x55a62a++,_0xb0d587=!0x1):(_0x55a62a++,_0xb0d587=!0x0),_0x659a0c['set'](_0x1e5103['id'],_0x55a62a);for(let _0x37aca3=0x0;_0x37aca3<_0x559faf['length'];_0x37aca3++){if('isRemoved'==_0xd47a0&&_0x559faf[_0x37aca3]['isAdded']||'isAdded'==_0xd47a0&&_0x559faf[_0x37aca3]['isRemoved'])continue;if('text'==_0x559faf[_0x37aca3]['type']){_0x559faf[_0x37aca3]['distance']=0x0;continue;}const _0x422e43=_0x659a0c['get'](_0x559faf[_0x37aca3]['pairId']),_0x5774fd=_0x659a0c['get'](_0x559faf[_0x37aca3]['id']);_0x559faf[_0x37aca3]['distance']=_0x422e43-_0x5774fd;}}['_getRevisionsRange'](_0x3741ac,_0x3407ac,_0x57950a=!0x1){const _0x4309ef=[];let _0x1da6db=this['repository']['getIndex'](_0x3741ac),_0x268012=this['repository']['getIndex'](_0x3407ac);for(-0x1==_0x268012&&(_0x268012=this['repository']['_revisions']['length'],_0x57950a=!0x1);_0x1da6db<_0x268012;)_0x4309ef['push'](this['repository']['getRevision'](_0x1da6db)),_0x1da6db++;return _0x57950a&&_0x4309ef['push'](this['repository']['getRevision'](_0x1da6db)),_0x4309ef;}['_threeWayMerge'](_0x384f1c,_0x1019a8,_0x4f383f,_0x3439db){const _0x381b08=this['editor']['model']['schema'];let _0xce54a4=_0x1019a8;for(;_0x384f1c[_0xce54a4]&&_0x384f1c[_0xce54a4]['isAdded'];)_0xce54a4++;let _0x31de1e=_0x3439db;for(;_0x4f383f[_0x31de1e]&&_0x4f383f[_0x31de1e]['isRemoved'];)_0x31de1e++;_0x150375(_0x384f1c,_0x1019a8,_0xce54a4),_0x150375(_0x4f383f,_0x3439db,_0x31de1e);const _0xc683db=_0x4f383f['slice'](_0x3439db,_0x31de1e)['concat'](_0x384f1c['slice'](_0x1019a8,_0xce54a4));return _0xc683db['sort']((_0x70c5b1,_0x2153e9)=>_0x70c5b1['side']!=_0x2153e9['side']?_0x70c5b1['side']-_0x2153e9['side']:_0x70c5b1['level']!=_0x2153e9['level']?_0x70c5b1['level']-_0x2153e9['level']:_0x70c5b1['distance']!=_0x2153e9['distance']?_0x2153e9['distance']-_0x70c5b1['distance']:!!_0x70c5b1['isAdded']!=!!_0x2153e9['isAdded']?-0x1==_0x70c5b1['side']||0x0==_0x70c5b1['side']?_0x70c5b1['isAdded']?-0x1:0x1:_0x70c5b1['isAdded']?0x1:-0x1:_0x70c5b1['index']-_0x2153e9['index']),{'commonTape':_0xc683db,'iEnd':_0xce54a4,'jEnd':_0x31de1e};function _0x150375(_0x42b4c3,_0x32b992,_0x15d98a){let _0x543efe=-0x1,_0x43d6df=Number['POSITIVE_INFINITY'],_0x4f6322=!0x0;for(let _0x3c6c88=_0x32b992;_0x3c6c88<_0x15d98a;_0x3c6c88++)if(_0x381b08['isInline'](_0x42b4c3[_0x3c6c88]['item'])||(_0x4f6322=!0x1),_0x42b4c3[_0x3c6c88]['item']['startIndex']<_0x32b992&&(_0x543efe=_0x3c6c88),_0x42b4c3[_0x3c6c88]['item']['endIndex']>=_0x15d98a){_0x43d6df=_0x3c6c88;break;}_0x4f6322&&(_0x543efe=_0x15d98a-0x1);for(let _0x416a03=_0x32b992;_0x416a03<_0x15d98a;_0x416a03++)_0x42b4c3[_0x416a03]['side']=_0x416a03<=_0x543efe?-0x1:_0x416a03<_0x43d6df?0x0:0x1,_0x42b4c3[_0x416a03]['index']=_0x416a03;let _0x2a1777=0x0;for(let _0x4ad33b=_0x32b992;_0x4ad33b<=_0x543efe;_0x4ad33b++)0x0==_0x42b4c3[_0x4ad33b]['distance']?_0x42b4c3[_0x4ad33b]['level']=_0x2a1777:(_0x2a1777++,_0x42b4c3[_0x4ad33b]['level']=_0x2a1777,_0x2a1777++);for(let _0x50f12d=_0x32b992;_0x50f12d<_0x15d98a;_0x50f12d++)0x0==_0x42b4c3[_0x50f12d]['side']&&(_0x42b4c3[_0x50f12d]['level']=_0x2a1777);_0x2a1777=0x0;for(let _0x3ecd9b=_0x15d98a-0x1;_0x3ecd9b>=_0x43d6df;_0x3ecd9b--)0x0==_0x42b4c3[_0x3ecd9b]['distance']?_0x42b4c3[_0x3ecd9b]['level']=_0x2a1777:(_0x2a1777--,_0x42b4c3[_0x3ecd9b]['level']=_0x2a1777,_0x2a1777--);}}['_fixObsoleteTags'](_0x133e8c){const _0x525cef=new Map(),_0x38170c=this['editor']['model']['schema'];for(let _0x3d7b3d=0x1;_0x3d7b3d<_0x133e8c['length'];_0x3d7b3d++){let _0x3a2d39,_0x599893,_0x55bf07;const _0x5c19cb=_0x133e8c[_0x3d7b3d],_0x272d41=_0x133e8c[_0x3d7b3d-0x1];if('text'==_0x5c19cb['type'])continue;if(_0x5c19cb['type']!=_0x272d41['type'])continue;if(!_0x38170c['isBlock'](_0x272d41['item'])||_0x38170c['isLimit'](_0x272d41['item']))continue;if(!_0x38170c['isBlock'](_0x5c19cb['item'])||_0x38170c['isLimit'](_0x5c19cb['item']))continue;if((_0x133e8c[_0x3d7b3d]['isAdded']||_0x133e8c[_0x3d7b3d]['isAddSuggestion'])&&_0x133e8c[_0x3d7b3d-0x1]['isRemoved'])_0x3a2d39=_0x133e8c[_0x3d7b3d],_0x599893=_0x133e8c[_0x3d7b3d-0x1],_0x55bf07=_0x3d7b3d-0x1;else{if(!_0x133e8c[_0x3d7b3d]['isRemoved']||!_0x133e8c[_0x3d7b3d-0x1]['isAdded']&&!_0x133e8c[_0x3d7b3d-0x1]['isAddSuggestion'])continue;_0x3a2d39=_0x133e8c[_0x3d7b3d-0x1],_0x599893=_0x133e8c[_0x3d7b3d],_0x55bf07=_0x3d7b3d;}const _0x48e79d=_0x3a2d39['level']==_0x599893['level'],_0x3b3c63=Math['abs'](_0x3a2d39['level'])<Math['abs'](_0x599893['level'])&&0x0==_0x599893['distance'];(_0x48e79d||_0x3b3c63)&&(_0x525cef['set'](_0x599893['id'],_0x3a2d39['id']),_0x133e8c['splice'](_0x55bf07,0x1),_0x3d7b3d--,_0x3a2d39['isAdded']=!0x1);}for(let _0x1ea173=0x0;_0x1ea173<_0x133e8c['length'];_0x1ea173++)_0x525cef['has'](_0x133e8c[_0x1ea173]['pairId'])&&(_0x133e8c[_0x1ea173]['pairId']=_0x525cef['get'](_0x133e8c[_0x1ea173]['pairId']));}['_removeMissingPairs'](_0x3c4d6d){const _0x913347=new Set(_0x3c4d6d['map'](_0x472de2=>_0x472de2['id']));for(let _0x1bf638=0x0;_0x1bf638<_0x3c4d6d['length'];_0x1bf638++)_0x913347['has'](_0x3c4d6d[_0x1bf638]['pairId'])||0x0==_0x3c4d6d[_0x1bf638]['distance']||(_0x3c4d6d[_0x1bf638]['isIncorrect']=!0x0);return _0x3c4d6d['filter'](_0x478a9e=>!_0x478a9e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x237e7e){const _0x5371dd=new Set();for(let _0x7b56a0=0x0;_0x7b56a0<_0x237e7e['length'];_0x7b56a0++){if(_0x5371dd['has'](_0x237e7e[_0x7b56a0]['id'])&&_0x237e7e[_0x7b56a0]['isRemoved']&&(_0x237e7e[_0x7b56a0]['isIncorrect']=!0x0),_0x237e7e[_0x7b56a0]['isIncorrect'])continue;if(0x0==_0x237e7e[_0x7b56a0]['distance'])continue;if('elementStart'!=_0x237e7e[_0x7b56a0]['type'])continue;if(null==_0x237e7e[_0x7b56a0]['pairId'])continue;let _0x285b99=_0x7b56a0+0x1,_0x16a09f=0x0;for(;_0x237e7e[_0x285b99]['id']!=_0x237e7e[_0x7b56a0]['pairId'];)'elementStart'==_0x237e7e[_0x285b99]['type']?_0x16a09f++:'elementEnd'==_0x237e7e[_0x285b99]['type']&&_0x16a09f--,_0x285b99++;if(0x0!=_0x16a09f){if(_0x237e7e[_0x7b56a0]['isRemoved'])_0x237e7e[_0x7b56a0]['isIncorrect']=!0x0;else{for(;_0x285b99!=_0x7b56a0;)_0x237e7e[_0x285b99]['isRemoved']&&0x0!=_0x237e7e[_0x285b99]['distance']&&(_0x237e7e[_0x285b99]['isIncorrect']=!0x0,_0x5371dd['add'](_0x237e7e[_0x285b99]['pairId'])),_0x285b99--;}}}return _0x237e7e['filter'](_0x58d215=>!_0x58d215['isIncorrect']);}['_removeUnsupportedChanges'](_0xa64f54){const _0x532210=this['editor']['model']['schema'];for(let _0x4e986e=0x0;_0x4e986e<_0xa64f54['length'];_0x4e986e++){if(!(_0xa64f54[_0x4e986e]['isAdded']||_0xa64f54[_0x4e986e]['isAddSuggestion']||_0xa64f54[_0x4e986e]['isRemoved']||_0xa64f54[_0x4e986e]['isRemoveSuggestion']))continue;if(0x0==_0xa64f54[_0x4e986e]['distance'])continue;const _0x3d2a21=_0xa64f54[_0x4e986e]['item'];_0x532210['isBlock'](_0x3d2a21)||_0x532210['isLimit'](_0x3d2a21)||(_0xa64f54[_0x4e986e]['isAdded']&&delete _0xa64f54[_0x4e986e]['isAdded'],_0xa64f54[_0x4e986e]['isAddSuggestion']&&delete _0xa64f54[_0x4e986e]['isAddSuggestion'],_0xa64f54[_0x4e986e]['isRemoveSuggestion']&&delete _0xa64f54[_0x4e986e]['isRemoveSuggestion'],_0xa64f54[_0x4e986e]['isRemoved']&&(_0xa64f54[_0x4e986e]['isIncorrect']=!0x0));}return _0xa64f54['filter'](_0x1729da=>!_0x1729da['isIncorrect']);}['_makeModelFromTape'](_0x330c9b,_0x5f3d1b,_0x25397c){const _0x1ea565=new gt(),_0x29fcfc=[],_0x28d765=new Map(),_0x3611e6=this['editor']['model'],_0x4335ea=_0x3611e6['schema'],_0x3d9fe4=[_0x1ea565],_0x44c7f8={},_0x37d283={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x408fef=null;const _0x42687a=[0x0];for(let _0x4852cb=0x0;_0x4852cb<_0x330c9b['length'];_0x4852cb++)if('elementStart'===_0x330c9b[_0x4852cb]['type']){_0x330c9b[_0x4852cb]['previousPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a);const _0x1f4912=new ut(_0x330c9b[_0x4852cb]['item']['name'],_0x330c9b[_0x4852cb]['item']['getAttributes']());_0x3d9fe4[0x0]['_appendChild'](_0x1f4912),_0x42687a['push'](0x0),_0x3d9fe4['unshift'](_0x1f4912),_0x330c9b[_0x4852cb]['nextPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a);}else'elementEnd'===_0x330c9b[_0x4852cb]['type']?(_0x3d9fe4['shift'](),_0x330c9b[_0x4852cb]['previousPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a),_0x42687a['pop'](),_0x42687a[_0x42687a['length']-0x1]++,_0x330c9b[_0x4852cb]['nextPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a)):(_0x330c9b[_0x4852cb]['previousPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a),_0x408fef?_0x408fef['_data']+=_0x330c9b[_0x4852cb]['item']['data']:_0x408fef=new mt(_0x330c9b[_0x4852cb]['item']['data'],_0x330c9b[_0x4852cb]['item']['getAttributes']()),_0x330c9b[_0x4852cb+0x1]&&'text'===_0x330c9b[_0x4852cb+0x1]['type']&&_0x5f0dc4(_0x408fef,_0x330c9b[_0x4852cb+0x1]['item'])||(_0x3d9fe4[0x0]['_appendChild'](_0x408fef),_0x408fef=null),_0x42687a[_0x42687a['length']-0x1]+=_0x330c9b[_0x4852cb]['item']['offsetSize'],_0x330c9b[_0x4852cb]['nextPosition']=_0x3611e6['createPositionFromPath'](_0x1ea565,_0x42687a));for(let _0x2e967f=0x0;_0x2e967f<_0x330c9b['length'];_0x2e967f++){const _0x1330c3=_0x330c9b[_0x2e967f]['previousPosition'],_0x2e4517=_0x330c9b[_0x2e967f]['nextPosition'];for(const _0x26897f of _0x330c9b[_0x2e967f]['markersStart'])_0x28d765['set'](_0x26897f,{'start':_0x1330c3,'end':null});_0x45058a('isRemoveSuggestion',_0x2e967f,_0x1330c3,_0x2e4517),_0x45058a('isAddSuggestion',_0x2e967f,_0x1330c3,_0x2e4517),_0x45058a('isRemoved',_0x2e967f,_0x1330c3,_0x2e4517),_0x45058a('isAdded',_0x2e967f,_0x1330c3,_0x2e4517);for(const _0x237f61 of _0x330c9b[_0x2e967f]['markersEnd']){const _0x211d35=_0x28d765['get'](_0x237f61);_0x211d35?_0x211d35['end']=_0x2e4517:_0x28d765['set'](_0x237f61,{'start':_0x2e4517,'end':_0x2e4517});}}for(const [_0x25f63d,_0x4030ea]of _0x28d765){const _0x495a20=this['editor']['model']['createRange'](_0x4030ea['start'],_0x4030ea['end']);_0x1ea565['markers']['set'](_0x25f63d,_0x495a20);}return _0x29fcfc['sort']((_0x2ea6f5,_0x3561e0)=>{const _0x26f14d=_0x1ea565['markers']['get']('revision:'+_0x2ea6f5['id']),_0x10c9d7=_0x1ea565['markers']['get']('revision:'+_0x3561e0['id']);return _0x26f14d['start']['isBefore'](_0x10c9d7['start'])?-0x1:_0x26f14d['start']['isAfter'](_0x10c9d7['start'])?0x1:_0x26f14d['end']['isBefore'](_0x10c9d7['end'])?-0x1:_0x26f14d['end']['isAfter'](_0x10c9d7['end'])?0x1:'add'===_0x2ea6f5['type']?-0x1:0x1;}),{'root':_0x1ea565,'changes':_0x29fcfc};function _0x45058a(_0x30cccb,_0x2d4828,_0x4a08ff,_0x3acce2){const _0x249d27=!!_0x330c9b[_0x2d4828][_0x30cccb],_0x1fb80c=_0x249d27?_0x330c9b[_0x2d4828][_0x30cccb]['userId']:null,_0x50ee13=_0x2d4828===_0x330c9b['length']-0x1,_0x5a3821=_0x37d283[_0x30cccb][0x0],_0x365212=_0x4335ea['isObject'](_0x330c9b[_0x2d4828]['item']);!_0x44c7f8[_0x30cccb]&&_0x249d27?_0x44c7f8[_0x30cccb]={'start':_0x4a08ff,'tapeItem':_0x330c9b[_0x2d4828],'userId':_0x1fb80c,'type':_0x30cccb}:_0x44c7f8[_0x30cccb]&&!_0x249d27?(_0x44c7f8[_0x30cccb]['end']=_0x4a08ff,_0x1bd327(_0x44c7f8[_0x30cccb]),_0x44c7f8[_0x30cccb]=null):_0x44c7f8[_0x30cccb]&&_0x249d27&&_0x44c7f8[_0x30cccb]['userId']!==_0x1fb80c&&(_0x44c7f8[_0x30cccb]['end']=_0x4a08ff,_0x5a3821&&_0x5a3821['userId']===_0x44c7f8[_0x30cccb]['userId']||_0x1bd327(_0x44c7f8[_0x30cccb]),_0x44c7f8[_0x30cccb]={'start':_0x4a08ff,'tapeItem':_0x330c9b[_0x2d4828],'userId':_0x1fb80c,'type':_0x30cccb}),_0x44c7f8[_0x30cccb]&&_0x365212&&('elementStart'!==_0x330c9b[_0x2d4828]['type']||_0x5a3821&&_0x5a3821['userId']===_0x1fb80c||_0x37d283[_0x30cccb]['unshift']({'userId':_0x1fb80c,'object':_0x330c9b[_0x2d4828]['item'],'change':_0x44c7f8[_0x30cccb]}),'elementEnd'===_0x330c9b[_0x2d4828]['type']&&_0x5a3821&&_0x5a3821['object']===_0x330c9b[_0x2d4828]['item']&&(_0x37d283[_0x30cccb]['shift'](),_0x44c7f8[_0x30cccb]=_0x5a3821['change'])),_0x44c7f8[_0x30cccb]&&_0x50ee13&&(_0x44c7f8[_0x30cccb]['end']=_0x3acce2,_0x1bd327(_0x44c7f8[_0x30cccb]),_0x44c7f8[_0x30cccb]=null);}function _0x1bd327({start:_0x29bad1,end:_0xb19465,tapeItem:_0xbd6fc6,userId:_0x26d0f1,type:_0x4a1305}){const _0x5c5d3b=_0xbd6fc6['item'],_0x3c7216=_0x3611e6['schema']['isBlock'](_0x5c5d3b)&&!_0x3611e6['schema']['isLimit'](_0x5c5d3b),_0xaae6ac=_0x29bad1['nodeAfter']==_0xb19465['parent']&&_0xb19465['isAtStart'];if(_0x3c7216&&_0xaae6ac)return;const _0x9754ff=_0x3611e6['createRange'](_0x29bad1,_0xb19465),_0xc08b39=_0x5f3d1b['get'](_0x26d0f1),_0x4fb560=new r({'author':_0xc08b39,'type':'isAdded'==_0x4a1305||'isAddSuggestion'==_0x4a1305?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4a1305||'isRemoveSuggestion'==_0x4a1305},'createdAt':new Date(),'rootName':_0x25397c});_0x29fcfc['push'](_0x4fb560),_0x1ea565['markers']['set']('revision:'+_0x4fb560['id'],_0x9754ff);}function _0x5f0dc4(_0x1b4a41,_0x3d4d1e){const _0x29dfd=_0x1b4a41['getAttributes'](),_0x8f1ccd=_0x3d4d1e['getAttributes']();for(const _0x2406ba of _0x29dfd){if(_0x2406ba[0x1]!==_0x3d4d1e['getAttribute'](_0x2406ba[0x0]))return!0x1;_0x8f1ccd['next']();}return _0x8f1ccd['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x50fbc3=>{const _0x1558ce=_0x50fbc3['markerName']['split'](':')[0x1],_0x1c3094=this['_getChangeFromId'](_0x1558ce);if(!_0x1c3094)return null;const _0x36fb40='add'==_0x1c3094['type']?'insertion':'deletion',_0x301858=['ck-suggestion-marker','ck-suggestion-marker-'+_0x36fb40];return _0x1c3094['data']['isSuggestion']&&_0x301858['push']('ck-suggestion-marker-'+_0x36fb40+'-new'),this['activeChange']==_0x1c3094&&_0x301858['push']('ck-suggestion-marker--active'),{'classes':_0x301858,'attributes':{'data-change-id':_0x1558ce}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x22ddb0=>{_0x22ddb0['on']('element:pre',(_0x43d8a2,_0xd82441,_0x429dbc)=>{const _0x246227=_0xd82441['viewItem']['getChild'](0x0);if(!_0x246227||!_0x246227['is']('element','code'))return;if(!_0x429dbc['consumable']['consume'](_0x246227,{'attributes':['vid_start','vid_end']}))return;const _0x2aace0=_0xd82441['modelRange']['start']['nodeAfter'];_0x429dbc['writer']['setAttribute']('vid_start',_0x246227['getAttribute']('vid_start'),_0x2aace0),_0x429dbc['writer']['setAttribute']('vid_end',_0x246227['getAttribute']('vid_end'),_0x2aace0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xde4a28=>{_0xde4a28['on']('element',(_0x279ace,_0x34acf6,_0x1dc5b0)=>{if(!_0x1dc5b0['consumable']['consume'](_0x34acf6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x34acf6['modelRange']['isCollapsed'])return;const _0x52cb7b=_0x34acf6['modelRange']['start']['nodeAfter'];_0x52cb7b['hasAttribute']('vid_start')||_0x52cb7b['hasAttribute']('vid')||(_0x1dc5b0['writer']['setAttribute']('vid_start',_0x34acf6['viewItem']['getAttribute']('vid_start'),_0x52cb7b),_0x1dc5b0['writer']['setAttribute']('vid_end',_0x34acf6['viewItem']['getAttribute']('vid_end'),_0x52cb7b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x413bc5=>_0x413bc5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x425177,[,_0x348ff7])=>{['vid_start','vid_end','vid']['includes'](_0x348ff7)&&(_0x425177['return']=!0x0,_0x425177['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x15b45e=>{_0x15b45e['on']('attribute:vid',(_0x59a03b,_0x4cca08,_0x1daf96)=>{if('\x20'!=_0x4cca08['item']['data']||_0x4cca08['item']['parent']['maxOffset']>0x1)return;if(!_0x1daf96['consumable']['consume'](_0x4cca08['item'],_0x59a03b['name']))return;const _0x210a43=_0x1daf96['writer'],_0xc1297b=_0x1daf96['mapper']['toViewRange'](_0x4cca08['range']);_0x210a43['wrap'](_0xc1297b,_0x210a43['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4d81c5){const _0x26b9ab=_0x4d81c5['plugins']['get']('RevisionViewer');return(_0x20a30d,_0x5c7838,_0x401607)=>{const _0x20ca88=_0x5c7838['markerName']['split'](':')[0x1],_0x52a17c=_0x26b9ab['_getChangeFromId'](_0x20ca88);if(!_0x52a17c)return null;const _0x4e2fa8='add'==_0x52a17c['type']?'split':'merge';if(!_0x401607['consumable']['test'](_0x5c7838['markerRange'],_0x20a30d['name']))return;const _0x1a9fea=_0x5c7838['markerRange']['getWalker'](),_0x3b4b85=_0x5c7838['markerRange']['start'],_0x4143ff=_0x4d81c5['model']['schema'];let _0x4a94b6=null,_0x594c37=null,_0x26bd38=!0x1,_0x347a3b=!0x1;for(const _0x51ceae of _0x1a9fea){const _0x3b9831=_0x51ceae['item'];_0x26bd38=_0x26bd38||_0x4143ff['isContent'](_0x3b9831);const _0x4f41f5=_0x401607['mapper']['toViewElement'](_0x3b9831);if(_0x4f41f5&&_0x4f41f5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x51ceae['type']&&(_0x4143ff['isBlock'](_0x3b9831)&&!_0x4143ff['isLimit'](_0x3b9831)&&(_0x3b9831['nextSibling']||_0x3b4b85['isAtEnd']?_0x4a94b6&&_0x4a94b6['parent']==_0x3b9831||(_0x4a94b6=_0x3b9831,_0x36d2e1(_0x51ceae['previousPosition']),_0x347a3b=!0x0):_0x594c37=_0x594c37||_0x51ceae['previousPosition']));}function _0x36d2e1(_0x1ada18){const _0x578e0b=_0x401607['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e2fa8}),_0x419a39=_0x401607['mapper']['toViewPosition'](_0x1ada18);_0x52a17c['data']['isSuggestion']&&_0x401607['writer']['addClass']('ck-suggestion-marker-'+_0x4e2fa8+'-new',_0x578e0b),_0x26b9ab['activeChange']==_0x52a17c&&_0x401607['writer']['addClass']('ck-suggestion-marker--active',_0x578e0b),_0x401607['writer']['insert'](_0x419a39,_0x578e0b),_0x401607['mapper']['bindElementToMarker'](_0x578e0b,_0x5c7838['markerName']);}_0x26bd38||_0x347a3b||!_0x594c37||_0x36d2e1(_0x594c37);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x10efb4,_0x4537d2,_0xd671dd)=>{const _0x1b921a=_0xd671dd['mapper']['markerNameToElements'](_0x4537d2['markerName']);if(_0x1b921a){for(const _0x3e60d4 of _0x1b921a)(_0x3e60d4['hasClass']('ck-suggestion-marker-split')||_0x3e60d4['hasClass']('ck-suggestion-marker-merge'))&&(_0xd671dd['mapper']['unbindElementFromMarkerName'](_0x3e60d4,_0x4537d2['markerName']),_0xd671dd['writer']['remove'](_0x3e60d4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2eb2f0,_0x5ef584,_0x21371a)=>{const _0x2c62dd=_0x5ef584['markerName']['split'](':')[0x1],_0x1585e1=this['_getChangeFromId'](_0x2c62dd);if(!_0x1585e1)return null;const _0x5c29a7='add'==_0x1585e1['type']?'split':'merge';if(_0x21371a['consumable']['test'](_0x5ef584['markerRange'],_0x2eb2f0['name']))for(const _0x3caf3d of _0x5ef584['markerRange']['getItems']()){if(!_0x3caf3d['is']('element','softBreak'))continue;const _0x41c8d8=_0x21371a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c29a7}),_0x365fd3=_0x21371a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3caf3d));_0x1585e1['data']['isSuggestion']&&_0x21371a['writer']['addClass']('ck-suggestion-marker-'+_0x5c29a7+'-new',_0x41c8d8),this['activeChange']==_0x1585e1&&_0x21371a['writer']['addClass']('ck-suggestion-marker--active',_0x41c8d8),_0x21371a['writer']['insert'](_0x365fd3,_0x41c8d8),_0x21371a['mapper']['bindElementToMarker'](_0x41c8d8,_0x5ef584['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5c6061=>{for(const _0xc178d1 of this['editor']['model']['document']['getRootNames']()){const _0x41dc7e=this['editor']['model']['document']['getRoot'](_0xc178d1),_0x3fe62a=this['editor']['editing']['view']['document']['getRoot'](_0xc178d1);if(_0x3fe62a){const _0x87cba6=_0x41dc7e['getAttribute']('revisionHistoryAttachChange');if(_0x5c6061['removeAttribute']('data-change-id',_0x3fe62a),_0x5c6061['removeClass']('ck-revision-history-root-add',_0x3fe62a),_0x5c6061['removeClass']('ck-revision-history-root-remove',_0x3fe62a),_0x5c6061['removeClass']('ck-revision-history-root--active',_0x3fe62a),_0x87cba6){const _0x242dd3=this['_getChangeFromId'](_0x87cba6);if(!_0x242dd3)return null;_0x5c6061['setAttribute']('data-change-id',_0x87cba6,_0x3fe62a),_0x5c6061['addClass']('ck-revision-history-root-'+_0x242dd3['type'],_0x3fe62a),this['activeChange']==_0x242dd3&&_0x5c6061['addClass']('ck-revision-history-root--active',_0x3fe62a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1c9485=>'revision-comment:'+_0x1c9485,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x10c43d=>'revision-suggestion:'+_0x10c43d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2b43ba=>({'name':'suggestion:'+_0x2b43ba,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2832ac=>{const _0x252f04=_0x2832ac['markerName']['split'](':')[0x1];return'insertion'!=_0x252f04&&'deletion'!=_0x252f04?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x252f04]};}}),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',(_0xb87fd3,_0x845cbd,_0x5139b7)=>{const _0x1b39f3=_0x5139b7['mapper']['markerNameToElements'](_0x845cbd['markerName']);if(_0x1b39f3){for(const _0x4f60b8 of _0x1b39f3)_0x4f60b8['is']('uiElement')&&(_0x5139b7['mapper']['unbindElementFromMarkerName'](_0x4f60b8,_0x845cbd['markerName']),_0x5139b7['writer']['remove'](_0x4f60b8));}},{'priority':'high'});}['_getChangeFromId'](_0x459554){return this['_changeIdToChange']['get'](_0x459554);}['_getViewForChange'](_0xdb23da){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0xdb23da),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb4776b,_0x5cf33a,_0x21ae4c,_0x38c757)=>{_0x38c757&&this['_balloon']['remove'](_0x38c757),_0x21ae4c&&(this['_balloon']['add']({'view':_0x21ae4c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x46030c=this['editor']['editing'],_0x396e84=this['_getChangeFromId'](_0x21ae4c['changeId']);let _0x672b41;if(_0x396e84['data']['isOnRoot']){const _0x2f6854=_0x46030c['view']['getDomRoot'](_0x396e84['rootName']);_0x672b41=Array['from'](_0x2f6854['getClientRects']());}else{const _0x48c435=this['editor']['model']['markers']['get']('revision:'+_0x21ae4c['changeId']);_0x672b41=Array['from'](_0x46030c['mapper']['markerNameToElements'](_0x48c435['name']))['map'](_0x58b678=>_0x46030c['view']['domConverter']['mapViewToDom'](_0x58b678))['map'](_0x27919e=>Array['from'](_0x27919e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x672b41[0x0];return _0x672b41['find'](_0x4ee14d=>_0x4ee14d['top']-0x3<=this['_activeViewTarget']['y']&&_0x4ee14d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4ee14d['left']-0x3<=this['_activeViewTarget']['x']&&_0x4ee14d['right']+0x3>=this['_activeViewTarget']['x'])||_0x672b41[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xfdbb37,_0x1deb04,_0x326b54,_0x5705d0)=>{this['activeView']=_0x326b54?this['_getViewForChange'](_0x326b54):null,this['editor']['model']['change'](()=>{const _0x46b23c=this['editor']['editing'];_0x5705d0&&(_0x5705d0['data']['isOnRoot']?_0x46b23c['view']['change'](_0x2d5803=>{_0x2d5803['removeClass']('ck-revision-history-root--active',_0x46b23c['view']['document']['getRoot'](_0x5705d0['rootName']));}):_0x46b23c['reconvertMarker']('revision:'+_0x5705d0['id'])),_0x326b54&&(_0x326b54['data']['isOnRoot']?_0x46b23c['view']['change'](_0x4c762e=>{_0x4c762e['addClass']('ck-revision-history-root--active',_0x46b23c['view']['document']['getRoot'](_0x326b54['rootName']));}):_0x46b23c['reconvertMarker']('revision:'+_0x326b54['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1b2eb0,_0x4f7c46)=>{if(this['activeChange'])return;const _0x41846a=this['_findChangeIdFromDomTarget'](_0x4f7c46['target']),_0x56dd97=this['_changeIdToChange']['get'](_0x41846a);_0x56dd97?(this['_activeViewTarget']={'x':_0x4f7c46['domEvent']['x'],'y':_0x4f7c46['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x56dd97)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x40a861,_0x403e2b)=>{const _0x554a99=this['_findChangeIdFromDomTarget'](_0x403e2b['target']),_0x1b7770=this['_changeIdToChange']['get'](_0x554a99);_0x1b7770?(this['_activeViewTarget']={'x':_0x403e2b['domEvent']['x'],'y':_0x403e2b['domEvent']['y']},_0x1b7770===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1b7770):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x55c426){do{const _0x41b0c5=_0x55c426['getAttribute']('data-change-id');if(_0x41b0c5)return _0x41b0c5;_0x55c426=_0x55c426['parent'];}while(_0x55c426);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1a0e6f=>{for(const _0x148402 of this['editor']['model']['markers'])_0x1a0e6f['removeMarker'](_0x148402);});}}function X(_0x4b3036,_0x55cc41){return(_0x491db3,_0x3dff44,_0x5e5c0b)=>{if(!_0x5e5c0b['consumable']['test'](_0x3dff44['markerRange'],_0x491db3['name']))return;const _0x4e7e29=_0x3dff44['markerRange']['getWalker'](),_0x2edb79=_0x3dff44['markerRange']['start'],_0x51e579=_0x4b3036['model']['schema'];let _0x14abef=null,_0x3317e9=null,_0x44adb6=!0x1,_0x5a96be=!0x1;for(const _0x2c6379 of _0x4e7e29){const _0x460994=_0x2c6379['item'];_0x44adb6=_0x44adb6||_0x51e579['isContent'](_0x460994);const _0x1550aa=_0x5e5c0b['mapper']['toViewElement'](_0x460994);if(_0x1550aa&&_0x1550aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c6379['type']&&(_0x51e579['isBlock'](_0x460994)&&!_0x51e579['isLimit'](_0x460994)&&(_0x460994['nextSibling']||_0x2edb79['isAtEnd']?_0x14abef&&_0x14abef['parent']==_0x460994||(_0x14abef=_0x460994,_0x3bec0c(_0x2c6379['previousPosition']),_0x5a96be=!0x0):_0x3317e9=_0x3317e9||_0x2c6379['previousPosition']));}function _0x3bec0c(_0x30a00d){const _0x1a88a8=_0x5e5c0b['mapper']['toViewPosition'](_0x30a00d),_0x34183a=_0x5e5c0b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x55cc41});_0x5e5c0b['writer']['insert'](_0x1a88a8,_0x34183a),_0x5e5c0b['mapper']['bindElementToMarker'](_0x34183a,_0x3dff44['markerName']);}_0x44adb6||_0x5a96be||!_0x3317e9||_0x3bec0c(_0x3317e9);};}class wt extends _0x4024a8{constructor(_0x5aa5bd){super(_0x5aa5bd);const _0x2e9d27=_0x5aa5bd['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x2e9d27,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2e9d27,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x52e802=this['editor'],_0x1f79c2=_0x52e802['plugins']['get'](m),_0x31bf7d=_0x1f79c2['isReady']?_0x1f79c2['diff']['newRevisionId']:null;_0x52e802['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31bf7d);}['refresh'](){const {isReady:_0x417106,isEnabled:_0x7ea6e,repository:_0x571a44,diff:_0x216650}=this['editor']['plugins']['get'](m),_0x40f484=_0x216650&&_0x571a44['getLaterVisibleRevision'](_0x216650['newRevisionId']);this['isEnabled']=_0x417106&&_0x7ea6e&&Boolean(_0x40f484);}}class pt extends _0x4024a8{['_step'];constructor(_0x1418e8,{direction:_0x4905f2}){super(_0x1418e8);const _0x5440e7=_0x1418e8['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4905f2?0x1:-0x1,this['listenTo'](_0x5440e7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5440e7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5440e7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4e0aa0=this['editor'],_0x25810d=_0x4e0aa0['plugins']['get'](m),{isNavigationMode:_0x18ed88,currentChangeNumber:_0x4a0049}=_0x25810d;let _0x5c6025;if(_0x25810d['activeChange']=_0x18ed88?_0x25810d['diff']['changes']['get'](_0x4a0049+this['_step']):_0x25810d['diff']['changes']['first'],_0x25810d['activeChange']['data']['isOnRoot'])_0x5c6025=_0x4e0aa0['editing']['view']['getDomRoot'](_0x25810d['activeChange']['rootName']);else{const _0x505990=_0x4e0aa0['model']['markers']['get']('revision:'+_0x25810d['activeChange']['id']);_0x5c6025=_0xba3d92(_0x4e0aa0['editing'],_0x505990);}_0x4c6269({'target':_0x5c6025,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x264926,currentChangeNumber:_0x4fef2d,numberOfChanges:_0x32daaa,isReady:_0x60a649,isEnabled:_0x1f4739}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x1f4739&&_0x60a649&&_0x32daaa)&&(!_0x264926||(0x1===this['_step']?_0x4fef2d<_0x32daaa-0x1:_0x4fef2d>0x0));}}class _i extends _0x45ce53{constructor(_0x3d3f82){super(_0x3d3f82);const _0x311b6d=this['bindTemplate'],_0x82d936=new _0xf1e793(_0x3d3f82),_0x52fb6f=new _0xf1e793(_0x3d3f82);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',(_0x5c1b25,_0x54b56c)=>_0x5c1b25&&_0x54b56c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x242600,_0x583981,_0x4ff6ac,_0x9dd539)=>{if(!_0x242600)return g(_0x3d3f82,'Loading...');if(!_0x4ff6ac)return g(_0x3d3f82,'No\x20changes');const _0x2ce6f0=g(_0x3d3f82,'NUMBER_OF_CHANGES',_0x4ff6ac);return _0x9dd539?g(_0x3d3f82,'X_OF_Y_CHANGES',[_0x583981+0x1,_0x4ff6ac]):_0x2ce6f0;}),_0x82d936['set']({'label':g(_0x3d3f82,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2859cd}),_0x52fb6f['set']({'label':g(_0x3d3f82,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4e16f1}),_0x82d936['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x52fb6f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x82d936['on']('execute',()=>this['fire']('execute','backward')),_0x52fb6f['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',_0x311b6d['if']('_isStatusLabelVisible','ck-hidden',_0x36ca14=>!_0x36ca14)]},'children':[{'text':_0x311b6d['to']('isNavigationMode',_0x34f1ec=>_0x34f1ec?g(_0x3d3f82,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3d3f82,'Total')+':\x20')}]},{'text':_0x311b6d['to']('_statusText')}]},new _0x4a94af(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x82d936,_0x52fb6f]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x58bc6f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2e934e=this['editor']['editing']['view'];_0x2e934e['change'](_0x1a5dda=>{for(const _0x4e799f of _0x2e934e['document']['roots'])_0x1a5dda['addClass'](ce,_0x4e799f);});}['hide'](){const _0x172c5=this['editor']['editing']['view'];_0x172c5['change'](_0x5ef6f9=>{for(const _0x28cb88 of _0x172c5['document']['roots'])_0x5ef6f9['removeClass'](ce,_0x28cb88);});}}class R extends _0x58bc6f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x46e4cc=this['editor'],_0x5c4960=_0x46e4cc['plugins']['get'](m),_0x230a4c=_0x46e4cc['plugins']['get'](le);_0x46e4cc['ui']['componentFactory']['add']('exitToEditing',_0x5ee7cd=>{const _0x1f684f=new _0xf1e793(_0x5ee7cd);return _0x1f684f['set']({'label':g(_0x5ee7cd,'Back\x20to\x20editing'),'icon':_0x529c1c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1f684f,'execute',()=>{_0x46e4cc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1f684f;}),_0x46e4cc['ui']['componentFactory']['add']('restoreRevision',_0x24d0a8=>{const _0x21a06e=new _0xf1e793(_0x24d0a8);return _0x21a06e['set']({'label':g(_0x24d0a8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x21a06e['bind']('isEnabled')['to'](_0x46e4cc['commands']['get']('restoreRevision')),this['listenTo'](_0x21a06e,'execute',()=>_0x46e4cc['execute']('restoreRevision')),_0x21a06e;}),_0x46e4cc['ui']['componentFactory']['add']('changesNavigation',_0x319903=>{const _0xb8316=new _i(_0x319903),_0x1477a0=_0x46e4cc['commands']['get']('showPreviousChange'),_0x1e3a41=_0x46e4cc['commands']['get']('showNextChange');return _0xb8316['bind']('isBackwardNavigationEnabled')['to'](_0x1477a0,'isEnabled'),_0xb8316['bind']('isForwardNavigationEnabled')['to'](_0x1e3a41,'isEnabled'),_0xb8316['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5c4960),this['listenTo'](_0xb8316,'execute',(_0x19a052,_0xe472ed)=>{_0x46e4cc['execute']('forward'===_0xe472ed?'showNextChange':'showPreviousChange');}),_0xb8316;}),_0x230a4c['show'](),_0x5c4960['on']('change:isReady',(_0x38003e,_0x3377de,_0x442f7b)=>{_0x442f7b?_0x230a4c['hide']():_0x230a4c['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0xf156d0,_0x47b3d3){super(_0xf156d0,_0x47b3d3);const _0x1c58e7=this['bindTemplate'];this['set']({'label':g(_0xf156d0,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0xf156d0,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1c58e7['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x372a4a=this['fieldView']['element'];this['_tooltipString']=_0x372a4a['scrollWidth']>_0x372a4a['clientWidth']&&_0x372a4a['value']||'';}}class oi extends _0x45ce53{constructor(_0x233777,_0x539a58,_0x5c713c){super(_0x233777);const _0x56e2dc=new _0x28f921();_0x56e2dc['set']({'content':_0x1f2c16,'viewBox':'0\x200\x2011\x2010'});const _0xf28b48=['ck','ck-revision-history-sidebar__revision-author'];_0x5c713c&&_0xf28b48['push']('ck-revision-history-sidebar__revision-author_creator');const _0xf7232d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x233777,_0x5c713c?'Revision\x20creator':'Revision\x20author')},'children':[_0x56e2dc,_0x539a58['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xf28b48},'children':_0xf7232d});}}function ni(_0x16c184,_0x4198a0){const _0x549d8e=_0x16c184['bindTemplate'],_0x161ab2=_0x16c184['locale'],_0x1b45e7=_0xbd0f73(_0x161ab2);_0x1b45e7['panelPosition']='sw';const _0x84617b=function(_0x14a527,_0x49f751){const _0x43e64f=function(_0xe3a746,_0x56cea7){const _0x484a4f=_0xe3a746['locale'],_0x36b903={'Compare\x20against\x20selected':g(_0x484a4f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x484a4f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x484a4f,'Restore\x20this\x20revision')};return _0x56cea7['map'](_0x20b2ad=>{const _0x30f0cd=_0x36b903[_0x20b2ad['name']];return _0x30f0cd&&_0x30f0cd!==_0x20b2ad['name']&&(_0x20b2ad['name']=_0x30f0cd),_0x20b2ad;});}(_0x14a527,_0x49f751),_0xd1a87a=new _0x4aa85f();for(const _0x530a64 of _0x43e64f){const _0x3670b9={'type':'button','model':new to({'label':_0x530a64['name'],'class':_0x530a64['class'],'withText':!0x0,'role':'menuitem','_action':_0x530a64['action']})};_0x3670b9['model']['bind']('isEnabled')['to'](_0x14a527,'isActionsDropdownOpen',_0xdf995d=>'function'!=typeof _0x530a64['isEnabled']||(!_0xdf995d||_0x530a64['isEnabled'](_0x14a527))),_0xd1a87a['add'](_0x3670b9);}return _0xd1a87a;}(_0x16c184,_0x4198a0);return _0x16c184['bind']('isActionsDropdownOpen')['to'](_0x1b45e7,'isOpen'),_0x1b45e7['buttonView']['set']({'label':g(_0x161ab2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x60fa10}),_0x1b45e7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x549d8e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x549d8e['to'](_0x19b179=>_0x19b179['stopPropagation']())}}),_0x1b45e7['on']('execute',_0x5d7bdd=>{_0x16c184['isReady']&&'function'==typeof _0x5d7bdd['source']['_action']&&_0x5d7bdd['source']['_action'](_0x16c184);}),_0x2116eb(_0x1b45e7,_0x84617b,{'role':'menu'}),_0x1b45e7['listenTo'](_0x16c184,'change:isActionsDropdownOpen',(_0x323619,_0x1b113a,_0xb21d80)=>{if(_0xb21d80)for(const _0x500f6e of _0x1b45e7['listView']['items']){const _0x520e6c=_0x500f6e['children']['first'],_0x197269=_0x4198a0['find'](_0x5d02ea=>_0x5d02ea['action']===_0x520e6c['_action'])['isVisible'];_0x500f6e['isVisible']=void 0x0===_0x197269||_0x197269(_0x16c184);}}),_0x1b45e7;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x45029b(_0x45ce53){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x135741,_0x23d8e1,_0x1b14be,_0x50c993){super(_0x135741);const _0x1462c1=this['bindTemplate'],_0x536c59=function(_0x442568,_0x342f86){const _0x2fb9de=Array['from'](_0x342f86['authors'])['filter'](_0x4e1a7e=>_0x4e1a7e!=_0x342f86['creator']);return _0x342f86['creator']&&_0x2fb9de['unshift'](_0x342f86['creator']),_0x2fb9de['map'](_0x1add14=>new oi(_0x442568,_0x1add14,_0x1add14==_0x342f86['creator']));}(_0x135741,_0x23d8e1);this['id']=_0x23d8e1['id'],this['_revision']=_0x23d8e1,this['_requireRevisionName']=_0x50c993,this['bind']('name','createdAt')['to'](_0x23d8e1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x35012f=>{return _0x5a968f=_0x135741['uiLanguage'],(_0x584643=_0x35012f)['toLocaleDateString'](_0x5a968f,{'month':'long','day':'numeric'})+',\x20'+_0x584643['toLocaleTimeString'](_0x5a968f,{'hour':'numeric','minute':'numeric'});var _0x5a968f,_0x584643;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x135741,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x548126=>_0x548126||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4d97c7,_0x4a7b3b)=>_0x4d97c7&&_0x4a7b3b),this['revisionActionsView']=_0x1b14be&&_0x1b14be['length']?ni(this,_0x1b14be):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1462c1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1462c1['if']('isEnabled','ck-disabled',_0x57940b=>!_0x57940b),_0x1462c1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1462c1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1462c1['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':_0x1462c1['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':_0x536c59}]},this['revisionActionsView']],'on':{'click':_0x1462c1['to'](_0x7b8bcc=>{_0x7b8bcc['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4b93d7=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4b93d7,'change',()=>{this['_requireRevisionName']&&!_0x4b93d7['value']||this['fire']('setName',{'id':this['id'],'name':_0x4b93d7['value']}),_0x4b93d7['value']||(_0x4b93d7['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x17be58,_0x45cb7b){const _0x47d2b0=_0x4bbc77['fromJSDate'](_0x17be58)['setLocale'](_0x45cb7b),_0x32af41=_0x4bbc77['local'](),_0x8ec8a4=_0x32af41['minus']({'days':0x1})['startOf']('day');let _0x2c63f7,_0xd23748;return _0x47d2b0['hasSame'](_0x32af41,'day')?(_0x2c63f7=_0x47d2b0['startOf']('day')['toJSDate'](),_0xd23748=_0x47d2b0['toRelativeCalendar']()):_0x47d2b0['hasSame'](_0x8ec8a4,'day')?(_0x2c63f7=_0x8ec8a4['toJSDate'](),_0xd23748=_0x47d2b0['toRelativeCalendar']()):_0x47d2b0['hasSame'](_0x32af41,'week')?(_0x2c63f7=_0x47d2b0['startOf']('week')['toJSDate'](),_0xd23748=_0x47d2b0['weekdayLong']||''):_0x47d2b0['hasSame'](_0x32af41,'year')?(_0x2c63f7=_0x47d2b0['startOf']('month')['toJSDate'](),_0xd23748=_0x47d2b0['monthLong']||''):(_0x2c63f7=_0x47d2b0['startOf']('year')['toJSDate'](),_0xd23748=String(_0x47d2b0['year'])),{'startDate':_0x2c63f7,'localizedPeriodName':_0xd23748};}class mi extends _0x45ce53{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x525242,_0x391b98,_0x23f8f1,_0x18e129){super(_0x525242);const _0x1e59fc=vi(_0x391b98,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x391b98,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x23f8f1,this['_requireRevisionName']=_0x18e129,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':_0x1e59fc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4c0dd7){const _0x4ea908=new ai(this['locale'],_0x4c0dd7,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4ea908);}['removeRevision'](_0x2aa569){const _0xae3803=this['revisionViews']['find'](_0x3b20f0=>_0x3b20f0['id']===_0x2aa569['id']);this['revisionViews']['remove'](_0xae3803);}}class as extends _0x45ce53{constructor(_0x3be081){super(_0x3be081);const _0xd2895b=new _0x28f921();_0xd2895b['content']=_0x3be67e,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xd2895b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x3be081,'Revision\x20history')]}]});}}class di extends _0x45ce53{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4da316,_0x40d122,_0xb0cada,_0x27ccd2){super(_0x4da316);const _0x585268=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x40d122,this['_revisionActions']=_0xb0cada,this['_requireRevisionName']=_0x27ccd2,this['on']('select',(_0x1bcceb,_0x143b93)=>{this['fire']('revisionSelected',_0x143b93);}),this['on']('setName',(_0x327980,_0x2ce6cc)=>{this['fire']('revisionSetName',_0x2ce6cc);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4da316),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x585268['if']('isEnabled','ck-disabled',_0x2a2ae5=>!_0x2a2ae5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3b5d11 of this['_revisions'])this['_addRevision'](_0x3b5d11);this['_revisions']['on']('add',(_0x5df1d1,_0xc872cb)=>{this['_addRevision'](_0xc872cb);}),this['_revisions']['on']('remove',(_0x4c5ecb,_0x3be8ac)=>{this['_removeRevision'](_0x3be8ac);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x205df0=>_0x205df0['revisionViews']['map'](_0x1a8197=>_0x1a8197))['flat']();}['selectRevision'](_0x21b484){for(const _0xfc3eb2 of this['revisionViews'])_0x21b484&&_0x21b484['id']===_0xfc3eb2['id']?_0xfc3eb2['select']():_0xfc3eb2['deselect']();}['highlightRevisions'](_0x3dda6c){for(const _0x4b0816 of this['revisionViews'])_0x3dda6c['some'](({id:_0x373707})=>_0x373707===_0x4b0816['id'])?_0x4b0816['highlight']():_0x4b0816['unhighlight']();}['_addRevision'](_0x47bd2c){const _0x2e58f7=vi(_0x47bd2c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4a933b=this['timePeriodViews']['get'](0x0);_0x4a933b&&_0x4a933b['startDate']['getTime']()===_0x2e58f7['getTime']()||(_0x4a933b=new mi(this['locale'],_0x2e58f7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4a933b)),_0x4a933b['addRevision'](_0x47bd2c);}['_removeRevision'](_0x2ff1f6){const _0x3d60e0=vi(_0x2ff1f6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3d60e0)['removeRevision'](_0x2ff1f6);}['_getTimePeriodViewByStartDate'](_0x35399f){return this['timePeriodViews']['find'](_0x2de9d8=>_0x2de9d8['startDate']['getTime']()===_0x35399f['getTime']());}}class d extends _0x58bc6f{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
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
|
+
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x4c1b58){super(_0x4c1b58),this['_revisionViewer']=_0x4c1b58['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x513dc2=this['_revisionsRepository']['_revisions'],_0xfab2a6=this['_createRevisionActions'](),_0x3188a8=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x513dc2,_0xfab2a6,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',(_0x3c266f,_0x51ceac)=>{_0x51ceac['revisionViews']['on']('add',(_0x4e4b71,_0x420554)=>{_0x420554['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)),_0x3188a8['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4b108c=this['_revisionsRepository']['getRevision'](0x0);if(_0x4b108c){const _0x50d916=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4b108c['id']);this['_revisionViewer']['compare'](_0x4b108c,_0x50d916);}}['_handleRevisionSelected'](_0x44cf94,_0x1cd10f){const _0x14e992=this['_revisionsRepository']['getRevision'](_0x1cd10f['id']),_0x98ec9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14e992['id']);this['_revisionViewer']['compare'](_0x14e992,_0x98ec9);}['_handleRevisionSetName'](_0x233eeb,_0x8cff0f){this['_revisionsRepository']['getRevision'](_0x8cff0f['id'])['setName'](_0x8cff0f['name']);}['_handleDiffChange'](_0x2e0e98,_0x57b94a,_0x51401b){const _0x3de263=this['_revisionsRepository']['getRevisionsInDiff'](_0x51401b);_0x3de263['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3de263),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3de263[0x0]));}['_createRevisionActions'](){const _0x15daa9=this['editor'],_0x59dba7=d['availableRevisionActions'],_0xd81ee1=_0x15daa9['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0xd81ee1['length'])return _0xd81ee1['map'](_0x28e18e=>{const _0x5aa6e6='string'==typeof _0x28e18e?Object['assign']({},_0x59dba7[_0x28e18e]):_0x28e18e;return _0x5aa6e6['action']=_0x5aa6e6['action']['bind'](this,_0x15daa9),_0x5aa6e6['isVisible']&&(_0x5aa6e6['isVisible']=_0x5aa6e6['isVisible']['bind'](this,_0x15daa9)),_0x5aa6e6;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x15de83},_0x4d8668)=>{const _0x55ac3a=_0x15de83['get'](m),_0x158a86=_0x55ac3a['repository'];let _0x2770ac=_0x55ac3a['diff']['newRevisionId'],_0x181c2c=_0x4d8668['id'];_0x158a86['getIndex'](_0x2770ac)>_0x158a86['getIndex'](_0x181c2c)&&([_0x2770ac,_0x181c2c]=[_0x181c2c,_0x2770ac]),_0x55ac3a['compare'](_0x2770ac,_0x181c2c);},'isVisible':({plugins:_0x140af0},_0x412cea)=>{const _0x16aae4=_0x140af0['get'](m);return!(_0x16aae4['repository']['getRevisionsInDiff'](_0x16aae4['diff'])['length']>0x2)&&!_0x412cea['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3ec4e4,{id:_0x4b2cdb})=>{_0x3ec4e4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4b2cdb);},'isVisible':({plugins:_0x272875},_0x23accd)=>!!_0x272875['get'](m)['repository']['getLaterVisibleRevision'](_0x23accd['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x155ba},{id:_0x2eed22,revisionNameView:_0x4b30da})=>{const _0x42b242=_0x155ba['get'](m),_0xa94631=_0x42b242['repository']['getEarlierVisibleRevision'](_0x2eed22);_0x42b242['compare'](_0x2eed22,_0xa94631),_0x4b30da['focus'](),_0x4b30da['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x51817b,_0x552b0f){super(_0x51817b),this['_view']=_0x552b0f,this['_toolbarConfig']=et(_0x51817b['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x55fbfb){const _0x14130f=this['editor'],_0xb1e5ee=this['view'],_0x44d6fc=_0x14130f['editing']['view'],_0x266c00=_0xb1e5ee['editable'],_0x29fc80=_0x44d6fc['document']['getRoot']();_0x266c00['name']=_0x29fc80['rootName'],_0xb1e5ee['render']();const _0x50cf1b=_0x266c00['element'];this['setEditableElement'](_0x266c00['name'],_0x50cf1b),_0xb1e5ee['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x44d6fc['attachDomRoot'](_0x50cf1b),this['_elementReplacer']['replace'](_0x55fbfb,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3e3b89=this['view'],_0x3a6d57=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3a6d57['detachDomRoot'](_0x3e3b89['editable']['name']),_0x3e3b89['destroy']();}['_initToolbar'](){const _0x5b3cdf=this['view'];_0x5b3cdf['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5b3cdf['stickyPanel']['limiterElement']=_0x5b3cdf['element'],_0x5b3cdf['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x14ee32})=>_0x14ee32),_0x5b3cdf['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5b3cdf['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3fabcf,_0x480f4a,_0x57d883={}){super(_0x3fabcf),this['stickyPanel']=new ht(_0x3fabcf),this['toolbar']=new dt(_0x3fabcf,{'shouldGroupWhenFull':_0x57d883['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x3fabcf,_0x480f4a);}['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
|
+
_0x5aa471(_0x54efd4){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x52bbea,_0x201140){super(_0x201140),this['sourceElement']=_0x52bbea,this['model']['document']['createRoot']();const _0x5797d5=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x5797d5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x31552f,_0x3c2c45){const _0xab2e21=new this(_0x31552f,_0x3c2c45);return await _0xab2e21['initPlugins'](),await _0xab2e21['ui']['init'](_0x31552f),await _0xab2e21['data']['init'](_0xab2e21['config']['get']('initialData')||''),_0xab2e21['fire']('ready'),_0xab2e21;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x58bc6f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3079ff){function _0x5c5695(_0x47c872){return _0x47c872['map'](_0x17a700=>String['fromCharCode'](_0x17a700))['join']('');}super(_0x3079ff),this['result']='end',_0x3079ff[_0x5c5695([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c5695([0x76,0x69,0x65,0x77])][_0x5c5695([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c5695([0x61,0x75,0x74,0x6f]),_0x3079ff[_0x5c5695([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5c5695([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c5695([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5c5695([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5c5695([0x6f,0x6b])});}}class k extends _0x58bc6f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x181fdf){if(super(_0x181fdf),!this['editor']['config']['get']('revisionHistory'))throw new _0x43b617('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xeadb8d=>this['_showRevisionViewer']({..._0xeadb8d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5e154e=>this['_closeRevisionViewer'](_0x5e154e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x36952a=>this['_restoreRevision'](_0x36952a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5d7dd5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5d7dd5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4cafb0){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4cafb0);}['getRevision'](_0x5769b3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5769b3);}['getRevisions'](_0x35817c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x35817c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x541e81=this['editor'],_0xe8915=_0x23feb7(_0x541e81,p),_0x49f357=_0x541e81['plugins']['get']('RevisionTracker'),_0x533307=_0x541e81['plugins']['get']('Users')['users'];return _0xe8915['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xe8915['lazyRoots'],(_0xe8915['plugins']['push'](yt,m,R,class extends _0x58bc6f{static get['requires'](){return[m,'Users'];}['init'](){const _0x10c469=this['editor']['plugins']['get']('Users');for(const _0x22d723 of _0x533307)_0x22d723['isAnonymous']||_0x10c469['getUser'](_0x22d723['id'])||_0x10c469['addUser'](_0x22d723);const _0x187960=_0x49f357['repository']['getRevisions']();let _0x6f26ad=null;const _0x29916b=this['editor']['plugins']['get']('RevisionViewer');_0x29916b['adapter']=_0x49f357['adapter'],_0x29916b['bind']('isEnabled')['to'](_0x49f357),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x541e81,'isReadOnly',_0x3c9f37=>!_0x3c9f37);for(const _0x1f9adf of _0x187960){const _0xd9175=null===_0x1f9adf['creator'];if(_0xd9175&&_0x1f9adf['toVersion']===_0x1f9adf['fromVersion'])continue;const _0x5170ee=_0x1f9adf['toJSON']();_0x29916b['addRevisionData'](_0x5170ee,(_0x2467ef,_0x3ec48b,_0x126cf0)=>{if(_0xd9175){if(_0x6f26ad)_0x6f26ad['_update'](_0x2467ef,_0x3ec48b);else{if(!_0x3ec48b){const _0x4afba2=_0x126cf0['toJSON']();_0x4afba2['id']=_0x11e8c2(),_0x49f357['saveRevision'](_0x4afba2,_0x126cf0['toVersion'])['then'](_0x5f1d6e=>{_0x6f26ad=_0x5f1d6e;});}}}else _0x1f9adf['_update'](_0x2467ef,_0x3ec48b);});}}},d),_0xe8915);}['_enhanceShowRevisionViewerCallback'](){const _0x8a3602=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2195a8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x28953d=this['editor']['plugins']['get']('Autosave');await _0x28953d['save']();}else await _0x2195a8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x56f514=this['editor']['plugins']['get']('Dialog');_0x56f514['isOpen']&&_0x56f514['hide']();}const _0x42db08=this['_getRevisionViewerEditorConfig']();return _0x8a3602(_0x42db08)['then'](_0x31a59e=>{return(this['_viewerEditor']=_0x31a59e,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'),_0x31a59e);})['catch'](_0xb917b2=>(console['error'](_0xb917b2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4dd6a9=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'](),_0x4dd6a9(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4eb94d=this['editor']['plugins']['get']('Annotations');_0x4eb94d['refreshVisibility'](),_0x4eb94d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x16e0c8){const _0x1ade8e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5838d3=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x109dc0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x109dc0,_0x16e0c8)['then'](_0x43275c=>(_0x5838d3['style']['display']='block',_0x1ade8e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x43275c));}['_closeRevisionViewer'](_0x46d7ef){const _0x173a7e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x173a7e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x46d7ef['destroy']();}async['_restoreRevision'](_0x1839ce){const _0x26af39=this['editor'],_0x15eae1=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5dc907=_0x26af39['plugins']['get']('RevisionTracker'),_0x55f52a=_0x26af39['plugins']['get']('RevisionHistoryUtils'),_0x4d8dcb=_0x15eae1['repository']['getRevision'](_0x1839ce);let _0x30f613,_0x5f0345,_0x127cec;try{await _0x55f52a['loadRevisionData'](_0x4d8dcb,this['adapter']),_0x30f613=_0x55f52a['getRevisionDocumentData'](_0x4d8dcb),_0x5f0345=_0x55f52a['getRevisionRootsAttributes'](_0x4d8dcb);}catch(_0x20d0ab){return void console['error'](_0x20d0ab);}_0x26af39['model']['change'](_0x927239=>{for(const _0x2cd1bd of Array['from'](_0x26af39['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x927239['removeMarker'](_0x2cd1bd);}),_0x15eae1['isReady']=!0x1,_0x26af39['model']['enqueueChange'](_0x39239b=>{_0x39239b['setSelection'](null),_0x39239b['removeSelectionAttribute'](_0x26af39['model']['document']['selection']['getAttributeKeys']());const _0x37144f=Object['keys'](_0x30f613);for(const _0x2ad5bb of _0x26af39['model']['document']['roots'])'$graveyard'!=_0x2ad5bb['rootName']&&_0x2ad5bb['isAttached']()&&!_0x37144f['includes'](_0x2ad5bb['rootName'])&&_0x39239b['detachRoot'](_0x2ad5bb);for(const _0x54ff69 of _0x37144f){let _0x46cf05=_0x26af39['model']['document']['getRoot'](_0x54ff69);_0x46cf05&&_0x46cf05['isAttached']()||(_0x46cf05=_0x39239b['addRoot'](_0x54ff69));const _0x4b7c6f=_0x5f0345[_0x54ff69],_0x5e6502=Object['keys'](_0x4b7c6f),_0x2f1376=_0x30f613[_0x54ff69];for(const _0x14cc22 of _0x46cf05['getAttributeKeys']())_0x5e6502['includes'](_0x14cc22)||_0x39239b['removeAttribute'](_0x14cc22,_0x46cf05);for(const _0xd3995 of _0x5e6502)_0x39239b['setAttribute'](_0xd3995,_0x5f0345[_0x54ff69][_0xd3995],_0x46cf05);_0x39239b['remove'](_0x39239b['createRangeIn'](_0x46cf05)),_0x39239b['insert'](_0x26af39['data']['parse'](_0x2f1376,_0x46cf05),_0x46cf05,0x0);}});const _0x5f4c2b=g(_0x26af39['locale'],'Restored');if(_0x4d8dcb['name'])_0x127cec=-0x1==_0x4d8dcb['name']['indexOf'](_0x5f4c2b)?_0x5f4c2b+':\x20'+_0x4d8dcb['name']:_0x4d8dcb['name'];else _0x127cec=_0x5f4c2b+':\x20'+(_0x4d8dcb['createdAt']['toLocaleDateString'](_0x26af39['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4d8dcb['createdAt']['toLocaleTimeString'](_0x26af39['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5dc907['saveRevision']({'name':_0x127cec}),_0x15eae1['isReady']=!0x0,_0x26af39['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,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|