@ckeditor/ckeditor5-revision-history 45.2.0-alpha.1 → 45.2.0-alpha.3
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
|
-
_0x11044f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5df6a1){super(),this['id']=_0x5df6a1['id']||_0x1facad(),this['creator']=_0x5df6a1['creator']||null,this['authors']=_0x5df6a1['authors']||[],this['diffData']=_0x5df6a1['diffData']||null,this['toVersion']=_0x5df6a1['toVersion']||0x0,this['fromVersion']=_0x5df6a1['fromVersion']||0x0,this['set']('name',_0x5df6a1['name']||''),this['set']('createdAt',_0x5df6a1['createdAt']||new Date()),this['set']('attributes',_0x5df6a1['attributes']||{});}['setName'](_0xa0add8){this['_update']({'name':_0xa0add8});}['setAttribute'](_0x588bb0,_0x4fc39e){const _0x2f57f2=_0x308bef(this['attributes']);_0x5b4713(_0x2f57f2,_0x588bb0,_0x4fc39e),this['_update']({'attributes':_0x2f57f2});}['removeAttribute'](_0x16f385){const _0x23b875=_0x308bef(this['attributes']);_0x411079(_0x23b875,_0x16f385),this['_update']({'attributes':_0x23b875});}['_update'](_0x5e1881,_0x5cab0b=!0x1){let _0x1d3edf=!0x1;const _0x3ad82c={'id':this['id']},_0x20e7c2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x231963 of _0x20e7c2){const _0x55641a=_0x5e1881[_0x231963];void 0x0!==_0x55641a&&_0x55641a!==this[_0x231963]&&(this[_0x231963]=_0x55641a,_0x3ad82c[_0x231963]=_0x55641a,_0x1d3edf=!0x0);}_0x1d3edf&&(_0x3ad82c['authors']&&(_0x3ad82c['authorsIds']=_0x3ad82c['authors']['map'](_0x3ecfec=>_0x3ecfec['id']),delete _0x3ad82c['authors']),this['fire']('_update',_0x3ad82c,_0x5cab0b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x482b21=>_0x482b21['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x2ec88b{['_revisions'];static get['requires'](){return[_0x53d511];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3a4b23){super(_0x3a4b23),this['_revisions']=new _0x331cab();}['afterInit'](){!async function(_0x370811){const _0x336d10=_0x779744([0x64,0x61,0x73,0x35,0x53,0x70,0x6a,0x6f,0x42,0x34,0x4c,0x7a,0x45,0x67,0x52,0x69,0x65,0x48,0x62,0x75,0x4b,0x55,0x5a,0x31,0x51,0x79,0x44,0x49,0x30,0x66,0x6d,0x72,0x78,0x4a,0x43,0x6c,0x37,0x74,0x4f,0x57,0x4d,0x32,0x39,0x4e,0x46,0x6b,0x6e,0x50,0x47,0x58,0x56,0x36,0x38,0x33,0x71,0x68,0x76,0x54,0x41,0x63,0x77,0x59]),_0x37cb5c=0xeb829,_0x326b5d=0x248e79dc,_0x3659ca=0x248910e4^_0x326b5d,_0x328689=window[_0x779744([0x44,0x61,0x74,0x65])][_0x779744([0x6e,0x6f,0x77])](),_0x168db3=_0x370811[_0x779744([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x326119=new window[(_0x779744([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1add2b=>{_0x168db3[_0x779744([0x6f,0x6e,0x63,0x65])](_0x779744([0x72,0x65,0x61,0x64,0x79]),_0x1add2b);}),_0x368295={[_0x779744([0x6b,0x74,0x79])]:_0x779744([0x45,0x43]),[_0x779744([0x75,0x73,0x65])]:_0x779744([0x73,0x69,0x67]),[_0x779744([0x63,0x72,0x76])]:_0x779744([0x50,0x2d,0x32,0x35,0x36]),[_0x779744([0x78])]:_0x779744([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]),[_0x779744([0x79])]:_0x779744([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]),[_0x779744([0x61,0x6c,0x67])]:_0x779744([0x45,0x53,0x32,0x35,0x36])},_0x1d3c32=_0x168db3[_0x779744([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x779744([0x67,0x65,0x74])](_0x779744([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4507e6(){let _0x208280,_0x451527=null,_0x50ced1=null;try{if(_0x1d3c32==_0x779744([0x47,0x50,0x4c]))return _0x779744([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x208280=_0x13ac60(),!_0x208280)return _0x779744([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x208280[_0x779744([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50ced1=_0x3f65e5(_0x208280[_0x779744([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x208280[_0x779744([0x6a,0x74,0x69])])),await _0x32f374()?_0x3db433()?_0x8247ea()?_0x779744([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c5561()?(_0x208280[_0x779744([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x779744([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x451527=_0x36772d(_0x779744([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x208280[_0x779744([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x779744([0x74,0x72,0x69,0x61,0x6c])&&(_0x451527=_0x36772d(_0x779744([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x507047()):_0x779744([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x779744([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x779744([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x779744([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8247ea(){const _0x3892ba=[_0x779744([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x779744([0x74,0x72,0x69,0x61,0x6c])][_0x779744([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x208280[_0x779744([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x328689/0x3e8:0xe10*_0x3659ca;return _0x208280[_0x779744([0x65,0x78,0x70])]<_0x3892ba;}function _0x3db433(){const _0x52d6b1=_0x208280[_0x779744([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x52d6b1)return!0x1;if(_0x52d6b1[_0x779744([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x779744([0x2a])))return!0x0;if(_0x52d6b1[_0x779744([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x779744([0x52,0x48])))return!0x0;if(_0x52d6b1[_0x779744([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x779744([0x52,0x52,0x48]))){if(_0x2d1952())return!0x0;if(_0x5aacc6()||_0x5a3c7e())return!0x0;}return!0x1;}function _0x4c5561(){const _0x507f12=_0x208280[_0x779744([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x507f12||0x0==_0x507f12[_0x779744([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2adbea}=new URL(window[_0x779744([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x507f12[_0x779744([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2adbea))return!0x0;const _0x22a80e=_0x2adbea[_0x779744([0x73,0x70,0x6c,0x69,0x74])](_0x779744([0x2e]));return _0x507f12[_0x779744([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bd3d4=>_0x5bd3d4[_0x779744([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x779744([0x2a])))[_0x779744([0x6d,0x61,0x70])](_0x187c91=>_0x187c91[_0x779744([0x73,0x70,0x6c,0x69,0x74])](_0x779744([0x2e])))[_0x779744([0x73,0x6f,0x6d,0x65])](_0x4b3041=>_0x22a80e[_0x779744([0x65,0x76,0x65,0x72,0x79])]((_0x3ee8fb,_0x344330)=>_0x4b3041[_0x344330]===_0x3ee8fb||_0x4b3041[_0x344330]===_0x779744([0x2a])));}function _0x507047(){return _0x451527&&_0x50ced1?new window[(_0x779744([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a149f,_0x357768)=>{_0x451527[_0x779744([0x74,0x68,0x65,0x6e])](_0x5a149f,_0x357768),_0x50ced1[_0x779744([0x74,0x68,0x65,0x6e])](_0x3bf4cf=>{_0x3bf4cf!=_0x779744([0x56,0x61,0x6c,0x69,0x64])&&_0x5a149f(_0x3bf4cf);},_0x357768);}):_0x451527||_0x50ced1||_0x779744([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f65e5(_0x4b7bfd,_0x361e2d){return new window[(_0x779744([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4002a0=>{if(_0x424094())return _0x4002a0(_0x779744([0x56,0x61,0x6c,0x69,0x64]));_0x2341f5(),_0x168db3[_0x779744([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x779744([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a4d5a=!0x1;const _0xa87ce6=_0x1facad();function _0x3ebfe8(_0x40d726){return!!_0x40d726&&(typeof _0x40d726===_0x779744([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40d726===_0x779744([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40d726[_0x779744([0x74,0x68,0x65,0x6e])]===_0x779744([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40d726[_0x779744([0x63,0x61,0x74,0x63,0x68])]===_0x779744([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x127a2b(_0x120a07){_0x4712ba(_0x120a07)[_0x779744([0x74,0x68,0x65,0x6e])](_0x506944=>{if(!_0x506944||_0x506944[_0x779744([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x779744([0x6f,0x6b]))return _0x779744([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41658d(_0x8ed100(_0xa87ce6+_0x361e2d))!=_0x506944[_0x779744([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x779744([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x779744([0x56,0x61,0x6c,0x69,0x64]);})[_0x779744([0x74,0x68,0x65,0x6e])](_0x4b5869=>(_0x2af4b1(),_0x4b5869),()=>{const _0x4e3296=_0x32e907();return null==_0x4e3296?(_0x2af4b1(),_0x779744([0x56,0x61,0x6c,0x69,0x64])):_0x779744(_0x328689-_0x4e3296>(0x82fddc^_0x326b5d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x779744([0x74,0x68,0x65,0x6e])](_0x4002a0)[_0x779744([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4002a0(_0x779744([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d174b=0x24b8975c^_0x326b5d;function _0x2af4b1(){const _0x2dc321=_0x779744([0x6c,0x6c,0x63,0x74,0x2d])+_0x41658d(_0x8ed100(_0x4b7bfd)),_0x37084b=_0x3989cd(_0x41658d(window[_0x779744([0x4d,0x61,0x74,0x68])][_0x779744([0x63,0x65,0x69,0x6c])](_0x328689/_0x3d174b)));window[_0x779744([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x779744([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dc321,_0x37084b);}function _0x32e907(){const _0x5b0173=_0x779744([0x6c,0x6c,0x63,0x74,0x2d])+_0x41658d(_0x8ed100(_0x4b7bfd)),_0x2bd3b8=window[_0x779744([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x779744([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b0173);return _0x2bd3b8?window[_0x779744([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3989cd(_0x2bd3b8),0x10)*_0x3d174b:null;}function _0x4712ba(_0x3e03ac){return new window[(_0x779744([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f553d,_0x5f306b)=>{_0x3e03ac[_0x779744([0x74,0x68,0x65,0x6e])](_0x4f553d,_0x5f306b),window[_0x779744([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f306b,0x248fad1c^_0x326b5d);});}}_0x168db3[_0x779744([0x6f,0x6e])](_0x779744([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d8371,_0x5af881)=>{if(_0x5af881[0x0]!=_0x4b7bfd)return _0x4002a0(_0x779744([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5af881[0x1]={..._0x5af881[0x1],[_0x779744([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa87ce6};},{[_0x779744([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x779744([0x68,0x69,0x67,0x68])}),_0x168db3[_0x779744([0x6f,0x6e])](_0x779744([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c887a=>{_0x3ebfe8(_0x1c887a[_0x779744([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a4d5a=!0x0,_0x127a2b(_0x1c887a[_0x779744([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x779744([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x779744([0x6c,0x6f,0x77])}),_0x326119[_0x779744([0x74,0x68,0x65,0x6e])](()=>{_0x4a4d5a||_0x4002a0(_0x779744([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x424094(){return _0x168db3[_0x779744([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x779744([0x76,0x69,0x65,0x77])][_0x779744([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x779744([0x61,0x75,0x74,0x6f]);}function _0x2341f5(){_0x168db3[_0x779744([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x779744([0x76,0x69,0x65,0x77])][_0x779744([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x779744([0x61,0x75,0x74,0x6f]);}}function _0x36772d(_0x56efd1){const _0x39ff49=[new window[(_0x779744([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x286450=>setTimeout(_0x286450,0x24874710^_0x326b5d)),_0x326119[_0x779744([0x74,0x68,0x65,0x6e])](()=>new window[(_0x779744([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25e486=>{const _0x597e37=0x248e79db^_0x326b5d,_0x509fb3=_0x370811[_0x779744([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x55d4cf(){_0x509fb3[_0x779744([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x597e37&&_0x25e486();}_0x55d4cf(),_0x509fb3[_0x779744([0x6f,0x6e])](_0x779744([0x61,0x64,0x64]),_0x55d4cf);})),new window[(_0x779744([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46efd8=>{function _0x12fce0(){for(const _0x56e8e7 in window)if(window[_0x779744([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x779744([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x56e8e7))&&window[_0x56e8e7]==_0x37cb5c)return _0x46efd8();_0x168db3[_0x779744([0x73,0x74,0x61,0x74,0x65])]!=_0x779744([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x779744([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12fce0,0x248e6a54^_0x326b5d);}_0xf4b4c4(_0x779744([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x12fce0();})];return window[_0x779744([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x779744([0x72,0x61,0x63,0x65])](_0x39ff49)[_0x779744([0x74,0x68,0x65,0x6e])](()=>_0x56efd1);}async function _0x2e27a3(){if(await _0x326119,_0xf4b4c4(_0x779744([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x110429=_0x370811[_0x779744([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x56ff8a=_0x370811[_0x779744([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])](_0x110429[_0x779744([0x69,0x64])]),_0x159517=_0x1478de(_0x779744([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x159517[_0x779744([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x110429['id'],_0x56ff8a?_0x56ff8a['id']:null,!0x0),_0x159517[_0x779744([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x779744([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x159517[_0x779744([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x159517[_0x779744([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x35946a,void(_0x159517[_0x779744([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x35946a);}if(_0xf4b4c4(_0x779744([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xdc136e=_0x1478de(_0x779744([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xdc136e[_0x779744([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x779744([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xdc136e[_0x779744([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xdc136e[_0x779744([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x35946a,_0xdc136e[_0x779744([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x35946a;}_0x168db3[_0x779744([0x6d,0x6f,0x64,0x65,0x6c])][_0x779744([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35946a,_0x168db3[_0x779744([0x6d,0x6f,0x64,0x65,0x6c])][_0x779744([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35946a,_0x168db3[_0x779744([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x779744([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d1952(){return _0xf4b4c4(_0x779744([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1478de(_0x779744([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x779744([0x73,0x74,0x61,0x74,0x65])]==_0x779744([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5aacc6(){return _0xf4b4c4(_0x779744([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 _0x5a3c7e(){return _0xf4b4c4(_0x779744([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x42514a(_0x5ce869){const _0x5e10e2=_0x3b3ad7();_0x168db3[_0x5e10e2]=_0x779744([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])+_0x5ce869,_0x5ce869[_0x779744([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x779744([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3b3ad7()]=_0x37cb5c),_0x5ce869!=_0x779744([0x56,0x61,0x6c,0x69,0x64])&&_0x2e27a3();}function _0x3b3ad7(){const _0x427dee=window[_0x779744([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x779744([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x779744([0x6e,0x6f,0x77])]())[_0x779744([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x779744([0x2e]),'');let _0x4903a6=_0x779744([0x64]);for(let _0x29e696=0x0;_0x29e696<_0x427dee[_0x779744([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29e696+=0x2){let _0x7821d8=window[_0x779744([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x427dee[_0x779744([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29e696,_0x29e696+0x2));_0x7821d8>=_0x336d10[_0x779744([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7821d8-=_0x336d10[_0x779744([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4903a6+=_0x336d10[_0x7821d8];}return _0x4903a6;}function _0x13ac60(){const _0x389c7b=_0x1d3c32[_0x779744([0x73,0x70,0x6c,0x69,0x74])](_0x779744([0x2e]));if(0x3!=_0x389c7b[_0x779744([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1686ec(_0x389c7b[0x1]);function _0x1686ec(_0x1b8147){const _0xdfa004=_0x38725e(_0x1b8147);return _0xdfa004&&_0x4fa7e6()?_0xdfa004:null;function _0x4fa7e6(){const _0x5db3de=_0xdfa004[_0x779744([0x6a,0x74,0x69])],_0x40c733=window[_0x779744([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5db3de[_0x779744([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5db3de[_0x779744([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4bded0={..._0xdfa004,[_0x779744([0x6a,0x74,0x69])]:_0x5db3de[_0x779744([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5db3de[_0x779744([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4bded0[_0x779744([0x76,0x63])],_0x8ed100(_0x4bded0)==_0x40c733;}}}async function _0x32f374(){let _0x226b61=!0x0;try{const _0x1bef3c=_0x1d3c32[_0x779744([0x73,0x70,0x6c,0x69,0x74])](_0x779744([0x2e])),[_0x30985a,_0x185016,_0x265411]=_0x1bef3c;return _0x5244f3(_0x30985a),await _0x2d08e1(_0x30985a,_0x185016,_0x265411),_0x226b61;}catch{return!0x1;}function _0x5244f3(_0x2d6f74){const _0x586209=_0x38725e(_0x2d6f74);_0x586209&&_0x586209[_0x779744([0x61,0x6c,0x67])]==_0x779744([0x45,0x53,0x32,0x35,0x36])||(_0x226b61=!0x1);}async function _0x2d08e1(_0x987de5,_0x3fe02b,_0x42f4cd){const _0x2a244e=window[_0x779744([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x779744([0x66,0x72,0x6f,0x6d])](_0x478eb3(_0x42f4cd),_0x20a7ea=>_0x20a7ea[_0x779744([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1191bb=new window[(_0x779744([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x779744([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x987de5+_0x779744([0x2e])+_0x3fe02b),_0x5540b3=window[_0x779744([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x779744([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5540b3)return;const _0xfd013f=await _0x5540b3[_0x779744([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x779744([0x6a,0x77,0x6b]),_0x368295,{[_0x779744([0x6e,0x61,0x6d,0x65])]:_0x779744([0x45,0x43,0x44,0x53,0x41]),[_0x779744([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x779744([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x779744([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5540b3[_0x779744([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x779744([0x6e,0x61,0x6d,0x65])]:_0x779744([0x45,0x43,0x44,0x53,0x41]),[_0x779744([0x68,0x61,0x73,0x68])]:{[_0x779744([0x6e,0x61,0x6d,0x65])]:_0x779744([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfd013f,_0x2a244e,_0x1191bb)||(_0x226b61=!0x1);}}function _0x38725e(_0x5e3c96){return _0x5e3c96[_0x779744([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x779744([0x65,0x79]))?JSON[_0x779744([0x70,0x61,0x72,0x73,0x65])](_0x478eb3(_0x5e3c96)):null;}function _0x478eb3(_0x114795){return window[_0x779744([0x61,0x74,0x6f,0x62])](_0x114795[_0x779744([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x779744([0x2b]))[_0x779744([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x779744([0x2f])));}function _0x8ed100(_0x40306b){let _0x1d716e=0x1505;function _0x2f544e(_0x3a8c8d){for(let _0x5051e4=0x0;_0x5051e4<_0x3a8c8d[_0x779744([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5051e4++){const _0x158526=_0x3a8c8d[_0x779744([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5051e4);_0x1d716e=(_0x1d716e<<0x5)+_0x1d716e+_0x158526,_0x1d716e&=_0x1d716e;}}function _0x9cda29(_0x290860){Array[_0x779744([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x290860)?_0x290860[_0x779744([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9cda29):_0x290860&&typeof _0x290860==_0x779744([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x779744([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x290860)[_0x779744([0x73,0x6f,0x72,0x74])]()[_0x779744([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49fc32,_0x2899bd])=>{_0x2f544e(_0x49fc32),_0x9cda29(_0x2899bd);}):_0x2f544e(window[_0x779744([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x290860));}return _0x9cda29(_0x40306b),_0x1d716e>>>0x0;}function _0x41658d(_0x18e5e2){return _0x18e5e2[_0x779744([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x779744([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x779744([0x30]));}function _0x3989cd(_0x146b70){return _0x146b70[_0x779744([0x73,0x70,0x6c,0x69,0x74])]('')[_0x779744([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x779744([0x6a,0x6f,0x69,0x6e])]('');}function _0xf4b4c4(_0x568a50){return _0x168db3[_0x779744([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x779744([0x68,0x61,0x73])](_0x568a50);}function _0x1478de(_0x239811){return _0x168db3[_0x779744([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x779744([0x67,0x65,0x74])](_0x239811);}function _0x35946a(){}function _0x779744(_0x555361){return _0x555361['map'](_0x53fb88=>String['fromCharCode'](_0x53fb88))['join']('');}_0x42514a(await _0x4507e6());}(this);}['createRevision'](_0x357bec){const _0x211474=this['editor']['plugins']['get']('Users');return new h({'id':_0x357bec['id'],'name':_0x357bec['name'],'creator':_0x357bec['creatorId']?_0x211474['getUser'](_0x357bec['creatorId']):null,'diffData':_0x357bec['diffData']||_0x357bec['data'],'authors':_0x357bec['authorsIds']['map'](_0x2b5504=>_0x211474['getUser'](_0x2b5504)),'createdAt':new Date(_0x357bec['createdAt']),'attributes':_0x357bec['attributes'],'fromVersion':_0x357bec['fromVersion'],'toVersion':_0x357bec['toVersion']});}['addRevision'](_0x572281,_0x58952b=0x0){this['_revisions']['add'](_0x572281,_0x58952b);}['getRevision'](_0x45c1b5){return this['_revisions']['get'](_0x45c1b5);}['getRevisions'](_0x2b9dd5={'toJSON':!0x1}){const _0x3386ce=Array['from'](this['_revisions']);return _0x3386ce['reverse'](),_0x2b9dd5['toJSON']?_0x3386ce['map'](_0xbe3411=>_0xbe3411['toJSON']()):_0x3386ce;}['getIndex'](_0x347519){return this['_revisions']['getIndex'](_0x347519);}['getEarlierVisibleRevision'](_0x3a5ce3){const [,_0x1881ab]=this['getRevisionsIterator'](_0x3a5ce3,{'direction':'earlier'});return _0x1881ab;}['getLaterVisibleRevision'](_0x46a9c4){const [,_0x976f4d]=this['getRevisionsIterator'](_0x46a9c4,{'direction':'later'});return _0x976f4d;}['getRevisionsInDiff'](_0x520cc4){const _0x3041ea=[];for(const _0x8cdc2f of this['getRevisionsIterator'](_0x520cc4['newRevisionId']))if(_0x3041ea['push'](_0x8cdc2f),_0x8cdc2f['id']===_0x520cc4['oldRevisionId'])break;return _0x3041ea;}*['getRevisionsIterator'](_0xf31ed8,{direction:_0x5893b4='earlier',filter:_0x25cac3=()=>!0x0}={}){const _0x208f81='earlier'===_0x5893b4?0x1:-0x1;let _0x3066af=this['_revisions']['get'](_0xf31ed8),_0x162490=this['getIndex'](_0x3066af);for(yield _0x3066af;_0x3066af;){if(_0x162490+=_0x208f81,_0x3066af=this['getRevision'](_0x162490),!_0x3066af)return;_0x25cac3(_0x3066af)&&(yield _0x3066af);}}}class V extends _0x2ec88b{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4abe45,'c'],[_0x45e3fa,'a'],[_0xfaf4d5,'e'],[_0x1839e6,'r'],[_0x2d1d2e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4abe45],['a',_0x45e3fa],['e',_0xfaf4d5],['r',_0x1839e6],['u',_0x2d1d2e]]);async['loadRevisionData'](_0x4b1379,_0x206c21){if(_0x4b1379['diffData']||!_0x206c21)return;const _0x5681d9=this['editor']['config']['get']('collaboration.channelId'),_0x303fbc=await _0x206c21['getRevision']({'channelId':_0x5681d9,'revisionId':_0x4b1379['id']});_0x4b1379['diffData']=_0x303fbc['diffData'];}['getRevisionDocumentData'](_0x5003ef){const _0x2e54df={};for(const _0x3f32f4 in _0x5003ef['diffData']){if(_0x5003ef['diffData'][_0x3f32f4]['attachChange']&&!_0x5003ef['diffData'][_0x3f32f4]['attachChange']['isAttached'])continue;const _0x28785e=this['_removeRevisionMarkers'](JSON['parse'](_0x5003ef['diffData'][_0x3f32f4]['insertions'])),_0x1a4ebd=this['editor']['editing']['view']['document'],_0xfda365=new _0x335318(_0x1a4ebd,_0x28785e['map'](_0x247936=>this['_getViewFromDiffObj'](_0x247936,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2e54df[_0x3f32f4]=this['editor']['data']['processor']['toData'](_0xfda365),this['editor']['data']['processor']['useFillerType']('default');}return _0x2e54df;}['getRevisionRootsAttributes'](_0x38adb5){const _0x3defbb={};for(const _0x422979 in _0x38adb5['diffData'])_0x38adb5['diffData'][_0x422979]['attachChange']&&!_0x38adb5['diffData'][_0x422979]['attachChange']['isAttached']||(_0x3defbb[_0x422979]=_0x38adb5['diffData'][_0x422979]['attributesAfter']||{});return _0x3defbb;}['_getTypeCharForViewElement'](_0x112f25){return this['_viewClassToTypeChar']['get'](_0x112f25['constructor']);}['_getViewFromDiffObj'](_0xd0868d,_0x419446){const _0x24b15f=this['editor']['editing']['view']['document'];if('string'==typeof _0xd0868d)return new _0x3110ce(_0x24b15f,_0xd0868d);{let _0x1b0411,_0x1855a6;_0x1855a6='u'==_0xd0868d['type']||'r'==_0xd0868d['type']?[]:_0xd0868d['children']['map'](_0x3f073b=>this['_getViewFromDiffObj'](_0x3f073b,_0x419446));const _0x33546a=this['_typeCharToViewClass']['get'](_0xd0868d['type'])||_0x302679,_0x5d0609=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1b0411=new _0x33546a(_0x24b15f,_0xd0868d['name'],_0xd0868d['attributes'],_0x1855a6),'u'==_0xd0868d['type']&&_0xd0868d['children'][0x0]){const _0x3693c9=_0xd0868d['children'][0x0];if(_0x1b0411['render']=function(_0x50f1e2){const _0x4c3a8f=_0x50f1e2['createElement']('div');return _0x4c3a8f['innerHTML']=_0x3693c9,_0x4c3a8f['childNodes'][0x0];},_0x419446){const _0x5404bd=new _0x335318(_0x24b15f);_0x5404bd['_appendChild'](_0x1b0411);const _0x8ed6e4=Array['from'](_0x5d0609['viewChildrenToDom'](_0x5404bd,{'bind':!0x1})),_0x2af027=_0x5d0609['domDocument']['createElement']('div');_0x2af027['append'](..._0x8ed6e4),_0x1b0411=Array['from'](_0x5d0609['domChildrenToView'](_0x2af027))[0x0];}}else{if('r'==_0xd0868d['type']&&_0xd0868d['children'][0x0]){const _0x5a2ea1=_0xd0868d['children'][0x0];if(_0x1b0411['render']=function(_0x2c5de9){_0x2c5de9['innerHTML']=_0x5a2ea1;},_0x419446){const _0x340ed8=new _0x335318(_0x24b15f);_0x340ed8['_appendChild'](_0x1b0411);const _0x220a50=Array['from'](_0x5d0609['viewChildrenToDom'](_0x340ed8,{'bind':!0x1})),_0x3d9689=_0x5d0609['domDocument']['createElement']('div');_0x3d9689['append'](..._0x220a50);const _0x45a7a1=Array['from'](_0x5d0609['domChildrenToView'](_0x3d9689));_0x45a7a1['length']>0x1?_0x1b0411['_appendChild'](_0x45a7a1):_0x1b0411=_0x45a7a1[0x0];}}}if(_0xd0868d['customProperties']){for(const [_0x4e8739,_0x28265c]of _0xd0868d['customProperties'])_0x1b0411['_setCustomProperty'](_0x4e8739,_0x28265c);}const _0x4bebce=void 0x0===_0xd0868d['fillerOffset']?null:_0xd0868d['fillerOffset'];return null!==_0x4bebce&&(_0x1b0411['getFillerOffset']=()=>_0x4bebce),_0x1b0411;}}['_makeModelFromViewString'](_0x2bf9d0){const _0x3135ab=JSON['parse'](_0x2bf9d0),_0x561b4a=this['editor']['editing']['view']['document'],_0x3492ee=new _0x335318(_0x561b4a,_0x3135ab['map'](_0x557d58=>this['_getViewFromDiffObj'](_0x557d58,!0x0)));return this['editor']['data']['toModel'](_0x3492ee);}['_removeRevisionMarkers'](_0x2bc44f){return(_0x2bc44f=_0x2bc44f['filter'](_0x58c08d=>!_0x58c08d['name']||'revision-start'!==_0x58c08d['name']&&'revision-end'!==_0x58c08d['name']))['forEach'](_0x51b9fc=>{'string'!=typeof _0x51b9fc&&(_0x51b9fc['children']=this['_removeRevisionMarkers'](_0x51b9fc['children']),_0x51b9fc['attributes']=_0x51b9fc['attributes']['filter'](_0x1f57e1=>!_0x1f57e1[0x0]['startsWith']('data-revision-')));}),_0x2bc44f;}}function g(_0x28fb1d,_0x14617b,_0x17f962){const t=_0x28fb1d['t'];switch(_0x14617b){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'},_0x17f962);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x17f962);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 _0x2ec88b{['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[_0x53d511,I,V,_0x2f15ba];}constructor(_0x327614){super(_0x327614),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 _0x291ada=_0x1facad();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x291ada},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 _0x16a95c=this['repository']['getRevision'](0x0),_0x4da695=_0x16a95c&&null===_0x16a95c['creator']?_0x16a95c:null;if(this['_continueCurrentRevision']=!!_0x4da695&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1083b7=this['_source']['getCurrentRevisionId'](),_0x371094=this['repository']['getRevision'](_0x1083b7);if(_0x371094)this['_startingVersion']=_0x371094['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2be828=this['_source']['history']['_operations']['find'](_0x3ef849=>!_0x3ef849['_isInit']),_0x3683ff=_0x2be828?_0x2be828['baseVersion']:this['_source']['history']['version'];_0x16a95c?(_0x16a95c['toVersion']<_0x3683ff&&_0x16a95c['_update']({'toVersion':_0x3683ff}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4da695['id'],this['_startingVersion']=_0x4da695['fromVersion']):(this['_startingVersion']=_0x16a95c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3683ff,this['_continueCurrentRevision']=!0x1);}}else _0x4da695&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4da695['toVersion'],this['editor']['model']['document']['history']['version']),_0x4da695['fromVersion']===_0x4da695['toVersion']?(0x0!==_0x4da695['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4da695['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4da695['id'],this['_startingVersion']=_0x4da695['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',_0x581d8f=>!_0x581d8f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x418460=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34b452;for(const _0x2f8a9a in _0x418460){const _0x2ff93a=_0x2f8a9a,_0x382c86=_0x418460[_0x2ff93a];if('revisionHistoryLicenseKeyValid'==_0x382c86||'revisionHistoryLicenseKeyInvalid'==_0x382c86||'revisionHistoryLicenseKeyExpired'==_0x382c86||'revisionHistoryLicenseKeyDomainLimit'==_0x382c86||'revisionHistoryLicenseKeyNotAllowed'==_0x382c86||'revisionHistoryLicenseKeyEvaluationLimit'==_0x382c86||'revisionHistoryLicenseKeyTrialLimit'==_0x382c86||'revisionHistoryLicenseKeyUsageLimit'==_0x382c86){delete _0x418460[_0x2ff93a],_0x34b452=_0x382c86,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x34b452&&_0x418460['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x34b452&&_0x418460['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x34b452&&_0x418460['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x34b452&&_0x418460['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x34b452&&_0x418460['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x34b452&&_0x418460['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x34b452&&_0x418460['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x244bfa=this['repository']['getRevision'](0x0),_0x391cb3=await this['getRevisionDocumentData'](_0x244bfa),_0x5063e3=await this['getRevisionRootsAttributes'](_0x244bfa);this['_replaceEditorDataWithRevisionData'](_0x391cb3,_0x5063e3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x76cb28){this['_source']=_0x76cb28;}async['update'](){const _0x38b9c3=await this['_source']['getLatestVersion']();if(_0x38b9c3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x558e5f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x38b9c3});_0x558e5f['authors']=_0x558e5f['authorsIds']['map'](_0x1646cd=>this['editor']['plugins']['get']('Users')['getUser'](_0x1646cd)),this['currentRevision']['_update'](_0x558e5f);}}async['saveRevision'](_0x57e7d4={},_0x318569=null){const _0x39ba46=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x318569>this['currentRevision']['toVersion']&&(_0x318569=null),null===_0x318569&&(_0x318569=await this['_source']['getLatestVersion']());const _0x54a78b=this['_getFromVersion'](_0x318569),_0x54c535=this['buildRevisionData']({'from':_0x54a78b,'to':_0x318569});if(this['currentRevision']['toVersion']<_0x318569){const _0x271897=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x318569,'to':_0x318569});_0x271897['authors']=[],_0x271897['authorsIds']=[],_0x271897['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x271897,!0x0),delete _0x271897['authors'],_0x39ba46['push'](_0x271897);}_0x57e7d4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x57e7d4['name']=_0x57e7d4['name']||null,_0x57e7d4['id']=_0x57e7d4['id']||_0x1facad(),_0x57e7d4={..._0x57e7d4,..._0x54c535};const _0x5145cf=this['addRevisionData'](_0x57e7d4);_0x39ba46['push'](_0x57e7d4);const _0x474d1a=this['repository']['getIndex'](_0x5145cf);if(0x0!==_0x474d1a){const _0x4c9214=this['repository']['getRevision'](_0x474d1a-0x1);if(_0x4c9214['fromVersion']!==_0x318569){const _0x457556=this['_revisionDataBuilder']['getData'](_0x318569,_0x4c9214['toVersion']),_0x641556={'id':_0x4c9214['id'],'diffData':_0x457556['diffData'],'authorsIds':_0x457556['authorsIds'],'authors':_0x457556['authorsIds']['map'](_0x2d528d=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d528d)),'fromVersion':_0x318569};_0x4c9214===this['currentRevision']&&(_0x641556['createdAt']=new Date(_0x57e7d4['createdAt']['getTime']()+0xa)),_0x4c9214['_update'](_0x641556,!0x0),delete _0x641556['authors'],_0x39ba46['push'](_0x641556);}}if(this['adapter']){for(const _0x12f4d9 of _0x39ba46)this['_bufferUpdate'](_0x12f4d9['id'],_0x12f4d9,!0x0);this['sendBufferedUpdates']();}return _0x5145cf;}['addRevisionData'](_0x3e932a){const _0x1b267d=this['repository']['createRevision'](_0x3e932a);return this['adapter']&&_0x1b267d['on']('_update',(_0x5db023,_0x1776e2,_0x225a7e)=>{_0x225a7e||(this['_bufferUpdate'](_0x1776e2['id'],_0x1776e2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b267d,this['_findInsertionIndex'](_0x1b267d)),_0x1b267d;}async['getRevisionDocumentData'](_0x3a184e){return await this['_utils']['loadRevisionData'](_0x3a184e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3a184e);}async['getRevisionRootsAttributes'](_0x8e6f54){return await this['_utils']['loadRevisionData'](_0x8e6f54,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x8e6f54);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x490c40=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4b5d9f=0x0;_0x4b5d9f<_0x490c40['length'];_0x4b5d9f++){const _0x4aff30=_0x490c40[_0x4b5d9f];let _0x52740a=!0x1;for(const _0x36df36 of Object['keys'](_0x4aff30))void 0x0===_0x4aff30[_0x36df36]?delete _0x4aff30[_0x36df36]:'id'!==_0x36df36&&(_0x52740a=!0x0);_0x52740a||(_0x490c40[_0x4b5d9f]=null);}if(_0x490c40=_0x490c40['filter'](_0x556f66=>null!==_0x556f66),!_0x490c40['length'])return;for(let _0x2faf73=0x0;_0x2faf73<_0x490c40['length'];_0x2faf73++){const _0x7c47d9=_0x490c40[_0x2faf73];void 0x0!==_0x7c47d9['fromVersion']&&void 0x0===_0x7c47d9['toVersion']&&(_0x7c47d9['toVersion']=this['repository']['getRevision'](_0x7c47d9['id'])['toVersion']),void 0x0!==_0x7c47d9['toVersion']&&void 0x0===_0x7c47d9['fromVersion']&&(_0x7c47d9['fromVersion']=this['repository']['getRevision'](_0x7c47d9['id'])['fromVersion']);}const _0x5165a9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x490c40,_0x5165a9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x13460a=>{if(_0x13460a){for(const _0x34b310 of _0x13460a)this['setRevisionData']({'id':_0x34b310['id'],'createdAt':_0x34b310['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4780bd=null,from:_0x5802de=null,to:_0x1bdb22=null}){_0x5802de=null!==_0x5802de?_0x5802de:_0x4780bd['fromVersion'],_0x1bdb22=null!==_0x1bdb22?_0x1bdb22:_0x4780bd['toVersion'];const _0x23d138=this['_revisionDataBuilder']['getData'](_0x5802de,_0x1bdb22),_0x5ed67d={'diffData':_0x23d138['diffData'],'authorsIds':_0x23d138['authorsIds'],'fromVersion':_0x5802de,'toVersion':_0x1bdb22};if(!_0x4780bd||_0x1bdb22!==_0x4780bd['toVersion']){const _0x471cab=_0x1bdb22-0x1,_0x57e802=this['_source']['history']['getOperation'](_0x471cab);_0x5ed67d['createdAt']=_0x57e802&&_0x57e802['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5802de===this['_loadedStateData']['fromVersion']){for(const _0x317b2c of this['_loadedStateData']['authors'])_0x5ed67d['authorsIds']['includes'](_0x317b2c['id'])||_0x5ed67d['authorsIds']['push'](_0x317b2c['id']);}return _0x5ed67d;}['_bufferUpdate'](_0x4399f0,_0x496aba,_0x2b9d46){if(this['_bufferedUpdates']['has'](_0x4399f0)){const _0x4da5dd=this['_bufferedUpdates']['get'](_0x4399f0);_0x496aba=_0x2b9d46?{..._0x4da5dd,..._0x496aba}:{..._0x496aba,..._0x4da5dd};}this['_bufferedUpdates']['set'](_0x4399f0,_0x496aba);}['setRevisionData'](_0x453967){const _0x4262b5=this['repository']['getRevision'](_0x453967['id']);if(_0x453967['createdAt']&&(_0x453967['createdAt']=new Date(_0x453967['createdAt'])),_0x453967['authorsIds']){const _0x1661ca=this['editor']['plugins']['get']('Users');_0x453967['authors']=_0x453967['authorsIds']['map'](_0x97e3db=>_0x1661ca['getUser'](_0x97e3db));}_0x4262b5['_update'](_0x453967,!0x0);}['_createInitialRevision'](_0x1d9d18){const _0x165614=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x165614)this['_initialRevisionId']=_0x165614['id'];else{const _0x805f78=!this['editor']['model']['document']['roots']['find'](_0x563caf=>this['editor']['model']['hasContent'](_0x563caf)),_0x10e3a6=this['editor']['plugins']['get']('Users')['me']['id'],_0x319a94=g(this['editor']['locale'],_0x805f78?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1d9d18,'to':_0x1d9d18,'id':this['_initialRevisionId'],'name':_0x319a94,'creatorId':_0x10e3a6});}}['_createCurrentRevision'](_0x10a954){const _0xf87b23=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xf87b23),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x10a954,'to':_0x10a954,'id':_0xf87b23,'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'](_0x2f8547,_0x4bcaf5){let _0x251fa4=this['editor']['config']['get']('initialData'),_0xc5408f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x251fa4){_0x251fa4={};for(const _0x3367bc of this['editor']['model']['document']['getRootNames']())_0x251fa4[_0x3367bc]='';}if('string'==typeof _0x251fa4&&(_0x251fa4={'main':_0x251fa4}),void 0x0===_0xc5408f){_0xc5408f={};for(const _0xdc7f30 of this['editor']['model']['document']['getRootNames']())_0xc5408f[_0xdc7f30]={};}let _0x5be80c=!0x1;const _0xbf5a9=Object['keys'](_0x251fa4),_0x3bc727=Object['keys'](_0x2f8547);for(const _0x27645e of _0xbf5a9){if(_0x251fa4[_0x27645e]!==_0x2f8547[_0x27645e]&&''!==_0x251fa4[_0x27645e]['trim']()){_0x5be80c=!0x0;break;}if(!_0x4c494c(_0xc5408f[_0x27645e],_0x4bcaf5[_0x27645e])&&Object['keys'](_0xc5408f[_0x27645e])['length']>0x0){_0x5be80c=!0x0;break;}}_0x5be80c||(_0x5be80c=_0x3bc727['some'](_0x4e8f42=>!this['editor']['model']['document']['getRoot'](_0x4e8f42))),_0x5be80c&&_0x3324c7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x251fa4,'editorRootsAttributes':_0xc5408f,'revisionData':_0x2f8547,'revisionRootsAttributes':_0x4bcaf5}),this['editor']['config']['set']('initialData',_0x2f8547),this['editor']['config']['set']('rootsAttributes',_0x4bcaf5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x23b640=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x23b640['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1d3a68){const _0xdaf75c=this['repository']['getRevisions']();_0xdaf75c['reverse']();let _0x9d1fda=0x0;for(;_0x9d1fda<_0xdaf75c['length'];){const _0x1092ba=_0xdaf75c[_0x9d1fda];if(_0x1092ba===this['currentRevision']){_0x9d1fda++;continue;}if(_0x1092ba['id']===this['_initialRevisionId'])break;const _0x117a03=_0x1d3a68['toVersion']-_0x1092ba['toVersion']||_0x1d3a68['fromVersion']-_0x1092ba['fromVersion'];if(_0x117a03>0x0)break;if(_0x117a03<0x0)_0x9d1fda++;else{if(!_0x1d3a68['creator']&&_0x1092ba['creator'])break;if(_0x1092ba['creator']||!_0x1d3a68['creator']){if(_0x1d3a68['createdAt']>_0x1092ba['createdAt'])break;_0x9d1fda++;}else _0x9d1fda++;}}return _0x9d1fda;}['_getFromVersion'](_0x35566f){const _0x330826=this['repository']['getRevisions']();_0x330826['reverse'](),_0x330826['shift']();const _0x53d91d=_0x330826['find'](_0x4865b6=>_0x4865b6['toVersion']<=_0x35566f)['toVersion'];return _0x53d91d<this['_startingVersion']?this['_startingVersion']:_0x53d91d;}['_makeRevision']({name:_0x3a4768,from:_0x14c7da,to:_0x1d9e85,creatorId:_0x14b829,id:_0x30aa00}){const _0x5706d4=this['buildRevisionData']({'from':_0x14c7da,'to':_0x1d9e85});_0x5706d4['name']=_0x3a4768,_0x5706d4['creatorId']=_0x14b829,_0x5706d4['id']=_0x30aa00;const _0x20528f=this['addRevisionData'](_0x5706d4);return this['adapter']&&this['_bufferUpdate'](_0x5706d4['id'],_0x5706d4,!0x0),_0x20528f;}['_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(_0x3ddd9f){this['editor']=_0x3ddd9f,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'](_0x5e1f4f){this['source']=_0x5e1f4f;const _0x349e0e=new Map(),_0x2c4a77=new Map(),_0x387490=this['editor']['model']['document']['roots']['map'](_0x302fac=>_0x302fac['rootName']);for(const _0x22a42f of _0x387490){const _0x5ecc2b=this['editor']['model']['document']['getRoot'](_0x22a42f),_0x44ffaa=N(_0x5ecc2b);_0x349e0e['set'](_0x22a42f,_0x44ffaa),_0x2c4a77['set'](_0x22a42f,Object['fromEntries'](_0x5ecc2b['getAttributes']()));}const _0x25f31e=Array['from'](this['editor']['model']['markers'])['map'](_0x43a354=>[_0x43a354['name'],_0x43a354['getRange']()]),_0x25c1e8=this['source']['version'];this['_saveMetaData'](_0x25c1e8,_0x349e0e,_0x25f31e,_0x2c4a77),this['_startingRevisionId']=this['_revisionId'];const _0x27e254=new Map(),_0x114032=new Map();for(const _0x52da0a of _0x387490){const _0x435fa2=P(_0x52da0a);_0x27e254['set'](_0x52da0a,_0x435fa2),_0x114032['set'](_0x52da0a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x27e254,[],_0x114032);}['getData'](_0xf7583c,_0x22b18a){if(this['_lastFrom']===_0xf7583c&&this['_lastTo']<=_0x22b18a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x22b18a,!0x0);else{if(!this['_savedMetaData']['has'](_0xf7583c)){const _0x3c094c=this['_getPreviousFrom'](_0xf7583c);this['_calculateMetaData'](_0x3c094c,_0xf7583c,!0x1);}this['_calculateMetaData'](_0xf7583c,_0x22b18a,!0x0);}return this['_lastFrom']=_0xf7583c,this['_lastTo']=_0x22b18a,this['_getState']();}['loadState'](_0x1561cd){const _0x18b259=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1561cd['fromVersion'],this['_lastTo']=_0x1561cd['toVersion'];for(const _0x51e3fc in _0x1561cd['diffData']){const _0x49677c=_0x1561cd['diffData'][_0x51e3fc]['attachChange'],_0x1dea1e=_0x308bef(_0x1561cd['diffData'][_0x51e3fc]['attributesBefore'])||{},_0x1e0e75=_0x18b259['_makeModelFromViewString'](_0x1561cd['diffData'][_0x51e3fc]['deletions']);_0x1e0e75['rootName']=_0x51e3fc,_0x1e0e75['_isAttached']=!_0x49677c||!_0x49677c['isAttached'],_0x1e0e75['isAttached']=()=>_0x1e0e75['_isAttached'],this['_baseRoots']['set'](_0x51e3fc,_0x1e0e75),this['_baseRootsAttributes']['set'](_0x51e3fc,_0x1dea1e),_0x49677c&&this['_touchedRoots']['set'](_0x51e3fc,_0x49677c);const _0x3012d3=this['_makeIdsRoot'](_0x1e0e75);this['_baseIdsRoots']['set'](_0x51e3fc,_0x3012d3);for(const [_0x1daa6a,_0x2ed0f2]of _0x1e0e75['markers']){if(!_0x1daa6a['startsWith']('revision:'))continue;const _0x1a8b73=_0x1daa6a['split'](':')[0x2];for(const _0x19ff91 of _0x2ed0f2['getWalker']({'singleCharacters':!0x0})){const _0x557811=this['_getVidAttributeName'](_0x19ff91),_0x45743c='elementEnd'==_0x19ff91['type']?_0x19ff91['previousPosition']['path']['slice'](0x0,-0x1):_0x19ff91['previousPosition']['path'],_0x4a9b41=_0x3012d3['getNodeByPath'](_0x45743c)['getAttribute'](_0x557811);this['_touched']['set'](_0x4a9b41,{'userId':_0x1a8b73});}}}this['_startingRevisionId']=this['_revisionId'];const _0x82ef2f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x23d897=>!this['_touched']['has'](_0x23d897));let _0xedcfff=0x0;const _0x22f185=new Map();for(const _0x216bc9 in _0x1561cd['diffData']){const _0x3fb2c1=_0x1561cd['diffData'][_0x216bc9]['attachChange'],_0x572665=_0x308bef(_0x1561cd['diffData'][_0x216bc9]['attributesAfter'])||{},_0x438576=_0x18b259['_makeModelFromViewString'](_0x1561cd['diffData'][_0x216bc9]['insertions']);_0x438576['rootName']=_0x216bc9,_0x438576['_isAttached']=!_0x3fb2c1||_0x3fb2c1['isAttached'],_0x438576['isAttached']=()=>_0x438576['_isAttached'],this['_diffRoots']['set'](_0x216bc9,_0x438576),this['_diffRootsAttributes']['set'](_0x216bc9,_0x572665);const _0x1bd60e=this['_makeIdsRoot'](_0x438576,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x216bc9,_0x1bd60e),_0x22f185['set'](_0x216bc9,_0x438576['isAttached']()?_0x572665:{});for(const [_0x4e24e2,_0x479a80]of _0x438576['markers']){if(!_0x4e24e2['startsWith']('revision:'))continue;const _0xc7a67a=_0x4e24e2['split'](':')[0x2];for(const _0x2a4837 of _0x479a80['getWalker']({'singleCharacters':!0x0})){const _0x127592=this['_getVidAttributeName'](_0x2a4837),_0x97231c=this['_revisionId']++,_0x5c86ab='elementEnd'==_0x2a4837['type']?_0x2a4837['previousPosition']['path']['slice'](0x0,-0x1):_0x2a4837['previousPosition']['path'];_0x1bd60e['getNodeByPath'](_0x5c86ab)['_setAttribute'](_0x127592,_0x97231c),this['_touched']['set'](_0x97231c,{'userId':_0xc7a67a});}}for(const _0x42b3a1 of this['editor']['model']['createRangeIn'](_0x438576)['getWalker']({'singleCharacters':!0x0})){const _0x523acb=this['_getVidAttributeName'](_0x42b3a1),_0x4a368a='elementEnd'==_0x42b3a1['type']?_0x42b3a1['previousPosition']['path']['slice'](0x0,-0x1):_0x42b3a1['previousPosition']['path'],_0x194ea8=_0x1bd60e['getNodeByPath'](_0x4a368a);_0x194ea8['getAttribute'](_0x523acb)>0x0||_0x194ea8['_setAttribute'](_0x523acb,_0x82ef2f[_0xedcfff++]);}for(const [_0x2bbf6b,_0x3e4e8a]of _0x438576['markers'])_0x2bbf6b['startsWith']('revision:')||this['_markers']['set'](_0x2bbf6b,_0x3e4e8a);}const _0x37b559=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x37b559),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x37b559,0x1));const _0xeca43c=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0xeca43c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xeca43c,0x1));const _0x58a508=Array['from'](this['_diffRoots'])['map'](([_0x4fee1a,_0x314653])=>[_0x4fee1a,N(_0x314653)]);this['_saveMetaData'](this['_lastTo'],_0x58a508,this['_markers'],_0x22f185);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x43bb47,_0x446f18,_0x1b9807,_0x11acf7){const _0x5f2a0e=new Map(_0x446f18),_0x49b327=new Map(_0x308bef(_0x11acf7)),_0x1d18b7=new Map();for(const [_0x170c05,_0x4de5ce]of _0x1b9807)_0x1d18b7['set'](_0x170c05,{'start':_0x4de5ce['start']['clone'](),'end':_0x4de5ce['end']['clone'](),'rootName':_0x4de5ce['root']['rootName']});this['_savedMetaData']['set'](_0x43bb47,{'roots':_0x5f2a0e,'markers':_0x1d18b7,'rootsAttributes':_0x49b327});}['_removeMetaData'](_0x4a95e0){this['_savedMetaData']['delete'](_0x4a95e0);}['_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'](_0x45bde0,_0x378b5c=null){let _0xd5f9b3=null;_0x45bde0['is']('documentFragment')||(_0xd5f9b3=new ut(_0x45bde0['name'],{'vid_start':null===_0x378b5c?this['_revisionId']++:_0x378b5c++}));const _0x166f7b=[];for(const _0x662054 of _0x45bde0['getChildren']())if(_0x662054['is']('element')){_0x166f7b['push'](this['_makeIdsRoot'](_0x662054,_0x378b5c));const _0x1f2116=_0x166f7b[_0x166f7b['length']-0x1];null!==_0x378b5c&&(_0x378b5c=_0x1f2116['is']('element','$text')?_0x1f2116['getAttribute']('vid')+0x1:_0x1f2116['getAttribute']('vid_end')+0x1);}else{for(let _0x24854f=0x0;_0x24854f<_0x662054['offsetSize'];_0x24854f++)_0x166f7b['push'](new ut('$text',{'vid':null===_0x378b5c?this['_revisionId']++:_0x378b5c++}));}if(_0x45bde0['is']('documentFragment')){const _0x4853ae=P(_0x45bde0['rootName']);return _0x4853ae['_insertChild'](0x0,_0x166f7b),_0x4853ae;}return _0xd5f9b3['_setAttribute']('vid_end',null===_0x378b5c?this['_revisionId']++:_0x378b5c++),_0xd5f9b3['_insertChild'](0x0,_0x166f7b),_0xd5f9b3;}['_calculateMetaData'](_0x2f0a2a,_0x307fdc,_0xc1027){this['_reset']();const {roots:_0x1da52d,markers:_0x1776f6,rootsAttributes:_0x5d1e3b}=this['_savedMetaData']['get'](_0x2f0a2a);this['_baseRoots']=new Map(_0x1da52d),this['_baseRootsAttributes']=new Map(_0x308bef(_0x5d1e3b));for(const [_0x86cda6,_0xb2e66a]of this['_baseRoots'])if('$graveyard'!==_0x86cda6&&(this['_diffRoots']['set'](_0x86cda6,N(_0xb2e66a)),this['_diffRootsAttributes']=new Map(_0x308bef(_0x5d1e3b)),_0xc1027)){const _0x3ca63c=this['_revisionId'];this['_idsRoots']['set'](_0x86cda6,this['_makeIdsRoot'](_0xb2e66a)),this['_baseIdsRoots']['set'](_0x86cda6,this['_makeIdsRoot'](_0xb2e66a,_0x3ca63c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xc1027&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x392005,_0x4742fc]of _0x1776f6){const _0x5a8152=this['_baseRoots']['get'](_0x4742fc['rootName']),_0x5a2f4e=this['_diffRoots']['get'](_0x4742fc['rootName']),_0x35eaac=new ft(this['_fixPosition'](_0x4742fc['start'],_0x5a8152),this['_fixPosition'](_0x4742fc['end'],_0x5a8152)),_0x2bdd73=this['_fixRange'](_0x35eaac,_0x5a2f4e);_0x5a8152['markers']['set'](_0x392005,_0x35eaac),this['_markers']['set'](_0x392005,_0x2bdd73);}this['_applyOperations'](_0x2f0a2a,_0x307fdc,_0xc1027);}['_applyOperations'](_0x493bb2,_0x16d6d8,_0x3b0218){for(const _0x48814a of this['source']['getOperations'](_0x493bb2,_0x16d6d8))this['_handleOperation'](_0x48814a,_0x3b0218);for(const _0x62b97b of this['_diffRoots']['values']())_0x62b97b['markers']['clear']();for(const [_0x4973f7,_0x251dd7]of this['_markers']){this['_diffRoots']['get'](_0x251dd7['root']['rootName'])['markers']['set'](_0x4973f7,_0x251dd7['clone']());}const _0x5dc861=new Map(),_0x41eea3=new Map();for(const [_0x249b9c,_0x3b7d6b]of this['_diffRoots'])_0x5dc861['set'](_0x249b9c,N(_0x3b7d6b)),_0x41eea3['set'](_0x249b9c,this['_diffRootsAttributes']['get'](_0x249b9c));this['_saveMetaData'](_0x16d6d8,_0x5dc861,this['_markers'],_0x41eea3);}['_getPreviousFrom'](_0x2655be){const _0x2199b7=Array['from'](this['_savedMetaData']['keys']());_0x2199b7['sort']((_0x4ba91a,_0xaf9798)=>_0x4ba91a-_0xaf9798),_0x2199b7['reverse']();for(const _0x2d53e7 of _0x2199b7)if(_0x2d53e7<_0x2655be)return _0x2d53e7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5bf2ca,_0x145856){const _0x1de26c=Array['from'](_0x145856['markers'])['map'](([_0x397331,_0x206e77])=>[_0x397331,this['_fixRange'](_0x206e77,_0x5bf2ca)]);_0x5bf2ca['markers']=new Map(_0x1de26c);}['_transformMarkers'](_0xc3520){for(const _0x3438ca of this['_markers']['values']()){const _0x3bd201=_0x3438ca['getTransformedByOperation'](_0xc3520),_0x2f4711=ft['_createFromRanges'](_0x3bd201);_0x3438ca['start']=_0x2f4711['start'],_0x3438ca['end']=_0x2f4711['end'];}}['_handleOperation'](_0x2075c5,_0xc22fd4){if('addRoot'!=_0x2075c5['type']&&'detachRoot'!=_0x2075c5['type']){if('insert'==_0x2075c5['type']){const _0x5c1e7f=_0x2075c5['position']['root']['rootName'];this['_diffRoots']['has'](_0x5c1e7f)||(this['_diffRoots']['set'](_0x5c1e7f,P(_0x5c1e7f,!0x0)),this['_diffRootsAttributes']['set'](_0x5c1e7f,{}),_0xc22fd4&&this['_idsRoots']['set'](_0x5c1e7f,P(_0x5c1e7f,!0x0)));}else{if('addRootAttribute'==_0x2075c5['type']||'removeRootAttribute'==_0x2075c5['type']||'changeRootAttribute'==_0x2075c5['type'])return void this['_handleRootAttributeOperation'](_0x2075c5);'marker'==_0x2075c5['type']&&this['_handleMarkerOperation'](_0x2075c5);}if('marker'!==_0x2075c5['type']){const _0x313aa4=this['_cloneOperation'](_0x2075c5,this['_diffRoots']);_0x313aa4['_execute'](),this['_transformMarkers'](_0x313aa4);}if(_0xc22fd4)switch(_0x2075c5['type']){case'insert':this['_handleInsertOperation'](_0x2075c5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2075c5);break;case'merge':this['_handleMergeOperation'](_0x2075c5);break;case'split':this['_handleSplitOperation'](_0x2075c5);}}else this['_handleRootOperation'](_0x2075c5,_0xc22fd4);}['_cloneOperation'](_0xf3f3a8,_0x4bbb22){const _0x4a372b=_0xf3f3a8['clone']();return _0x4a372b['_authorId']=_0xf3f3a8['_authorId'],this['_fixOperation'](_0x4a372b,_0x4bbb22),_0x4a372b;}['_getBaseVids'](_0x348e6d){return _0x348e6d['map'](_0xb5587f=>{const _0x2f67bf=this['_getVidAttributeName'](_0xb5587f);return Number(_0xb5587f['item']['getAttribute'](_0x2f67bf));});}['_generateTape'](_0x4e0772,_0x391000){if(_0x4e0772['is']('element','$text'))_0x391000['push']({'item':_0x4e0772,'type':'text'});else{_0x4e0772['is']('element')&&_0x391000['push']({'item':_0x4e0772,'type':'elementStart'});for(const _0x13a842 of _0x4e0772['getChildren']())this['_generateTape'](_0x13a842,_0x391000);_0x4e0772['is']('element')&&_0x391000['push']({'item':_0x4e0772,'type':'elementEnd'});}return _0x391000;}['_getState'](){const _0x4f82bf=new Map(this['_touched']),_0x523ebb=new Map(_0x4f82bf),_0x28718f=new Map(),_0x1481a7={'insertions':{},'deletions':{}},_0x500c9f={'insertions':{},'deletions':{}},_0x545b51=new Map(),_0xcfb448=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xcfb448['delete']('$graveyard');for(const _0x4f57b3 of _0xcfb448){const _0x2d1e70=this['_diffRoots']['get'](_0x4f57b3)||P(_0x4f57b3,!0x1),_0x343970=this['_baseRoots']['get'](_0x4f57b3)||P(_0x4f57b3,!0x1);_0x2d1e70['isAttached']()||_0x343970['isAttached']()?(_0x1481a7['insertions'][_0x4f57b3]=N(_0x2d1e70),_0x1481a7['deletions'][_0x4f57b3]=N(_0x343970),this['_copyMarkers'](_0x1481a7['deletions'][_0x4f57b3],_0x343970),this['_copyMarkers'](_0x1481a7['insertions'][_0x4f57b3],_0x2d1e70),_0x500c9f['insertions'][_0x4f57b3]=this['_generateTape'](this['_idsRoots']['get'](_0x4f57b3),[]),_0x500c9f['deletions'][_0x4f57b3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4f57b3)||P(_0x4f57b3,!0x1),[])):_0xcfb448['delete'](_0x4f57b3);}for(const _0x4e423d of _0xcfb448){const _0x639cd2=_0x500c9f['insertions'][_0x4e423d];for(const _0x3b488a of _0x639cd2){const _0x23599c=this['_getVidAttributeName'](_0x3b488a),_0x334329=_0x3b488a['item']['getAttribute'](_0x23599c);_0x523ebb['delete'](_0x334329),_0x334329>=this['_startingRevisionId']&&_0x28718f['set'](_0x334329,_0x4f82bf['get'](_0x334329));}}for(const _0x55ef3f of _0xcfb448){const _0x442e69=_0x500c9f['insertions'][_0x55ef3f],_0x301e42=this['_getBaseVids'](_0x500c9f['deletions'][_0x55ef3f]);let _0x2874b9=0x0;for(const _0x259cf5 of _0x442e69){const _0x24e265=this['_getVidAttributeName'](_0x259cf5),_0x449465=_0x259cf5['item']['getAttribute'](_0x24e265);if(!_0x28718f['has'](_0x449465)&&!_0x545b51['has'](_0x449465)){if(_0x523ebb['has'](_0x449465))_0x2874b9++;else{if(_0x449465!=_0x301e42[_0x2874b9]){const _0x36920e=_0x4f82bf['get'](_0x449465)||_0x4f82bf['get'](_0x301e42[_0x2874b9]);for(;_0x449465!=_0x301e42[_0x2874b9];)_0x523ebb['has'](_0x301e42[_0x2874b9])||(_0x545b51['set'](_0x301e42[_0x2874b9],_0x36920e),_0x4f82bf['set'](_0x301e42[_0x2874b9],_0x36920e)),_0x2874b9++;}_0x2874b9++;}}}}for(const _0x4a89c2 of _0xcfb448){const _0x378c47=_0x500c9f['insertions'][_0x4a89c2];for(const _0x53e607 of _0x378c47){const _0x96278f=this['_getVidAttributeName'](_0x53e607),_0x3bf3f7=_0x53e607['item']['getAttribute'](_0x96278f);if(_0x545b51['has'](_0x3bf3f7)){const _0x232974=_0x545b51['get'](_0x3bf3f7);_0x523ebb['has'](_0x3bf3f7)||_0x523ebb['set'](_0x3bf3f7,{..._0x232974}),_0x28718f['set'](_0x3bf3f7,{..._0x232974});}}}for(const _0x1fe571 of _0x523ebb['keys']())_0x1fe571>=this['_startingRevisionId']&&_0x523ebb['delete'](_0x1fe571);const _0x4e9e21=new Map();for(const _0x1f18d1 of _0xcfb448){let _0x452447=_0x500c9f['insertions'][_0x1f18d1];for(const _0x5b344a of _0x452447)if(_0x5b344a['item']['is']('element','tableCell')){const _0x2d5a89=this['_getVidAttributeName'](_0x5b344a),_0x51cd61=_0x5b344a['item']['getAttribute'](_0x2d5a89);if(_0x28718f['has'](_0x51cd61)){const _0x6d294e=_0x5b344a['item']['parent']['parent']['getAttribute']('vid_start'),_0x5c7ca3=_0x4e9e21['get'](_0x6d294e)||new Set();_0x5c7ca3['add'](_0x28718f['get'](_0x51cd61)['userId']),_0x4e9e21['set'](_0x6d294e,_0x5c7ca3);}}_0x452447=_0x500c9f['deletions'][_0x1f18d1];for(const _0x2a7a3d of _0x452447)if(_0x2a7a3d['item']['is']('element','tableCell')){const _0x55d1a8=this['_getVidAttributeName'](_0x2a7a3d),_0x27ae5c=_0x2a7a3d['item']['getAttribute'](_0x55d1a8);if(_0x523ebb['has'](_0x27ae5c)){const _0x50d952=_0x2a7a3d['item']['parent']['parent']['getAttribute']('vid_start'),_0x139293=_0x4e9e21['get'](_0x50d952)||new Set();_0x139293['add'](_0x523ebb['get'](_0x27ae5c)['userId']),_0x4e9e21['set'](_0x50d952,_0x139293);}}for(const _0xb75a of _0x4e9e21['keys']())(_0x28718f['has'](_0xb75a)||_0x523ebb['has'](_0xb75a))&&_0x4e9e21['delete'](_0xb75a);}for(const _0x538144 of _0xcfb448){const _0x3f2bf9=_0x500c9f['insertions'][_0x538144];let _0x5ad20d=null,_0x4ef1d4=null;for(const _0x18ce81 of _0x3f2bf9){const _0x36b729=this['_getVidAttributeName'](_0x18ce81),_0x44b79b=_0x18ce81['item']['getAttribute'](_0x36b729),_0x59b0da=_0x4e9e21['get'](_0x44b79b);_0x59b0da&&'elementStart'==_0x18ce81['type']&&(_0x5ad20d=Array['from'](_0x59b0da)[0x0],_0x4ef1d4=_0x18ce81['item']['getAttribute']('vid_end')),_0x5ad20d&&(_0x523ebb['set'](_0x44b79b,{'userId':_0x5ad20d}),_0x28718f['set'](_0x44b79b,{'userId':_0x5ad20d})),_0x44b79b==_0x4ef1d4&&(_0x5ad20d=null,_0x4ef1d4=null);}}const _0x52fcc4={},_0x5833b0=new Set();for(const _0x5611f7 of _0xcfb448){const _0x127d10=_0x1481a7['deletions'][_0x5611f7],_0x28eaf4=_0x1481a7['insertions'][_0x5611f7];for(const {userId:_0x2b46e0}of this['_touchedMarkers']['values']())null!==_0x2b46e0&&_0x5833b0['add'](_0x2b46e0);for(const {userId:_0x2d4f81}of this['_touchedRoots']['values']())null!==_0x2d4f81&&_0x5833b0['add'](_0x2d4f81);this['_markChanges'](_0x28eaf4,_0x500c9f['insertions'][_0x5611f7],_0x28718f,'insertion',_0x5833b0),this['_markChanges'](_0x127d10,_0x500c9f['deletions'][_0x5611f7],_0x523ebb,'deletion',_0x5833b0),_0x52fcc4[_0x5611f7]={'insertions':this['_prepareViewToSave'](_0x28eaf4),'deletions':this['_prepareViewToSave'](_0x127d10),'attachChange':this['_touchedRoots']['get'](_0x5611f7)||null,'attributesBefore':_0x308bef(this['_baseRootsAttributes']['get'](_0x5611f7))||{},'attributesAfter':_0x308bef(this['_diffRootsAttributes']['get'](_0x5611f7))};}return{'diffData':_0x52fcc4,'authorsIds':Array['from'](_0x5833b0)};}['_processRootBeforeSave'](_0x1be384){for(const [,_0x5932e8]of _0x1be384['markers']){const _0x577589=_0x5932e8['start']['getAncestors']()['filter'](_0x3320c4=>'tableCell'==_0x3320c4['name']);for(const _0x35ed4f of _0x577589)0x1==_0x35ed4f['childCount']&&_0x35ed4f['getChild'](0x0)['is']('element','paragraph')&&_0x35ed4f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2ce460){this['_processRootBeforeSave'](_0x2ce460);const _0x44bc95=this['editor']['data']['toView'](_0x2ce460,{}),_0x42eabb=Array['from'](_0x44bc95['getChildren']())['map'](_0x4812e9=>this['_getViewJson'](_0x4812e9));return JSON['stringify'](_0x42eabb);}['_getViewJson'](_0x54dc8b){if(_0x54dc8b['is']('$text'))return _0x54dc8b['data'];{const _0x2a02e2=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4b1e03=_0x54dc8b,_0x278101=this['editor']['data']['htmlProcessor']['domConverter'],_0xba3932={'type':_0x2a02e2['_getTypeCharForViewElement'](_0x4b1e03),'name':_0x4b1e03['name'],'attributes':Array['from'](_0x4b1e03['getAttributes']()),'children':Array['from'](_0x4b1e03['getChildren']())['map'](_0x12d893=>this['_getViewJson'](_0x12d893))};if(_0x54dc8b['is']('uiElement')&&'$comment'!=_0x54dc8b['name']){const _0x2d2c86=_0x54dc8b['render'](_0x278101['domDocument'],_0x278101);_0xba3932['children']['push'](_0x2d2c86['outerHTML']);}else{if(_0x54dc8b['is']('rawElement')){const _0xee626e=_0x278101['domDocument']['createElement'](_0x4b1e03['name']);_0x54dc8b['render'](_0xee626e,_0x278101),_0xba3932['children']['push'](_0xee626e['innerHTML']);}}const _0x38684a=Array['from'](_0x4b1e03['getCustomProperties']());_0x38684a['length']>0x0&&(_0xba3932['customProperties']=_0x38684a);const _0x2d50e8=_0x4b1e03['getFillerOffset']();return null!==_0x2d50e8&&(_0xba3932['fillerOffset']=_0x2d50e8),_0xba3932;}}['_markChanges'](_0x554e98,_0x22bf68,_0x1aa6a7,_0x599d58,_0x57d61b){let _0x110114=null,_0x3e1194=null,_0x92f13f=0x0;const _0x363437=this['editor']['model'];for(let _0x3e0a1d=0x0;_0x3e0a1d<_0x22bf68['length'];_0x3e0a1d++){const _0x4f9d3e=this['_getVidAttributeName'](_0x22bf68[_0x3e0a1d]),_0x2546f8=_0x22bf68[_0x3e0a1d]['item']['getAttribute'](_0x4f9d3e),_0x3dadbf=_0x1aa6a7['get'](_0x2546f8),_0x5a8659=_0x3e0a1d==_0x22bf68['length']-0x1;(!_0x110114&&_0x3dadbf&&(_0x110114=_0x3dadbf,_0x3e1194=_0x22bf68[_0x3e0a1d]),_0x110114&&(!_0x3dadbf||_0x3dadbf['userId']!=_0x110114['userId']))&&(_0x42a35c(_0x3dadbf,F(_0x3e1194,_0x554e98,_0x363437),F(_0x22bf68[_0x3e0a1d],_0x554e98,_0x363437)),_0x110114=_0x3dadbf||null,_0x3e1194=_0x3dadbf?_0x22bf68[_0x3e0a1d]:null),_0x110114&&_0x5a8659&&_0x42a35c(_0x3dadbf,F(_0x3e1194,_0x554e98,_0x363437),B(_0x22bf68[_0x3e0a1d],_0x554e98,_0x363437));}function _0x42a35c(_0x267831,_0x3de0f1,_0x1467b7){const _0x5e1e02=_0x110114['userId'],_0x2ad82b='revision:'+_0x599d58+':'+_0x5e1e02+':'+_0x92f13f++,_0x35e4fc=_0x363437['createRange'](_0x3de0f1,_0x1467b7);_0x554e98['markers']['set'](_0x2ad82b,_0x35e4fc),null!==_0x5e1e02&&_0x57d61b['add'](_0x5e1e02);}}['_getVidAttributeName'](_0x55adc2){switch(_0x55adc2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5ad39f,_0x194de4){_0x5ad39f['baseVersion']=null;for(const _0x14230b in _0x5ad39f){const _0x35abaa=_0x5ad39f[_0x14230b];if(_0x35abaa instanceof vt){const _0x35e384=_0x194de4['get'](_0x35abaa['root']['rootName']);_0x5ad39f[_0x14230b]=this['_fixPosition'](_0x35abaa,_0x35e384);}if(_0x35abaa instanceof ft){const _0x1a9f68=_0x194de4['get'](_0x35abaa['root']['rootName']);_0x5ad39f[_0x14230b]=this['_fixRange'](_0x35abaa,_0x1a9f68);}'root'===_0x14230b&&(_0x5ad39f['root']=_0x194de4['get'](_0x5ad39f['root']['rootName']));}}['_fixRange'](_0x4eee3d,_0x5a512f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4eee3d['start'],_0x5a512f),this['_fixPosition'](_0x4eee3d['end'],_0x5a512f));}['_fixPosition'](_0x2d75bd,_0x51f5a0){return this['editor']['model']['createPositionFromPath'](_0x51f5a0,_0x2d75bd['path'],_0x2d75bd['stickiness']);}['_handleInsertOperation'](_0x3a2a16){const _0x5121ef=this['_idsRoots']['get'](_0x3a2a16['position']['root']['rootName']),_0x2b2803=this['_fixPosition'](_0x3a2a16['position'],_0x5121ef),_0xcc92b4=null===_0x3a2a16['_authorId']?null:_0x3a2a16['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e5b2a=_0x2b2803['parent'],_0x49593b=this['_revisionId'],_0x155742=[];for(const _0x580d5e of _0x3a2a16['nodes'])if(_0x580d5e['is']('element'))_0x155742['push'](this['_makeIdsRoot'](_0x580d5e));else{for(let _0x1ecc6e=0x0;_0x1ecc6e<_0x580d5e['offsetSize'];_0x1ecc6e++)_0x155742['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2fe603=this['_revisionId'];for(let _0x561737=_0x49593b;_0x561737<_0x2fe603;_0x561737++)this['_touched']['set'](_0x561737,{'userId':_0xcc92b4});_0x5e5b2a['_insertChild'](_0x2b2803['offset'],_0x155742);}['_handleMoveOperation'](_0x632d32){(_0x632d32=this['_cloneOperation'](_0x632d32,this['_idsRoots']))['_execute']();const _0x4ce8e1=null===_0x632d32['_authorId']?null:_0x632d32['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ba383=_0x632d32['getMovedRangeStart'](),_0x3da3fa=_0x5ba383['parent'],_0x2b5ec5=_0x5ba383['offset'];!function _0x468c28(_0x29c700,_0x3f21e7,_0x20807e,_0x539dd7){for(let _0x1fb337=_0x20807e;_0x1fb337<_0x539dd7;_0x1fb337++){const _0xa8d257=_0x3f21e7['getChild'](_0x1fb337);_0xa8d257['is']('element','$text')?_0x29c700['set'](_0xa8d257['getAttribute']('vid'),{'userId':_0x4ce8e1}):(_0x29c700['set'](_0xa8d257['getAttribute']('vid_start'),{'userId':_0x4ce8e1}),_0x468c28(_0x29c700,_0xa8d257,0x0,_0xa8d257['childCount']),_0x29c700['set'](_0xa8d257['getAttribute']('vid_end'),{'userId':_0x4ce8e1}));}}(this['_touched'],_0x3da3fa,_0x2b5ec5,_0x2b5ec5+_0x632d32['howMany']);}['_handleMergeOperation'](_0x503861){const _0x1e19b0=null===(_0x503861=this['_cloneOperation'](_0x503861,this['_idsRoots']))['_authorId']?null:_0x503861['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29b1cf=_0x503861['targetPosition']['parent'],_0x4fbaa1=_0x503861['sourcePosition']['parent'],_0x27bc80=_0x29b1cf['getAttribute']('vid_end'),_0x4c0183=_0x4fbaa1['getAttribute']('vid_start');_0x29b1cf['_setAttribute']('vid_end',_0x4fbaa1['getAttribute']('vid_end')),_0x4fbaa1['_setAttribute']('vid_end',_0x27bc80),this['_touched']['set'](_0x4c0183,{'userId':_0x1e19b0}),this['_touched']['set'](_0x27bc80,{'userId':_0x1e19b0}),_0x503861['_execute']();}['_handleSplitOperation'](_0x10dde3){const _0x3e84ad=null===(_0x10dde3=this['_cloneOperation'](_0x10dde3,this['_idsRoots']))['_authorId']?null:_0x10dde3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49fb24=_0x10dde3['graveyardPosition'],_0x7ceeba=_0x10dde3['splitPosition']['parent'];_0x10dde3['_execute']();const _0x1b9b2d=_0x7ceeba['getAttribute']('vid_end'),_0x1e1ea8=_0x10dde3['insertionPosition']['nodeAfter'];if(_0x49fb24){const _0x585447=_0x1e1ea8['getAttribute']('vid_end'),_0x4652a8=_0x7ceeba['getAttribute']('vid_end');_0x7ceeba['_setAttribute']('vid_end',_0x585447),_0x1e1ea8['_setAttribute']('vid_end',_0x4652a8),this['_touched']['set'](_0x7ceeba['getAttribute']('vid_end'),{'userId':_0x3e84ad}),this['_touched']['set'](_0x1e1ea8['getAttribute']('vid_start'),{'userId':_0x3e84ad});}else{const _0x59f1e6=this['_revisionId']++,_0x41757e=this['_revisionId']++;_0x7ceeba['_setAttribute']('vid_end',_0x59f1e6),_0x1e1ea8['_setAttribute']('vid_start',_0x41757e),_0x1e1ea8['_setAttribute']('vid_end',_0x1b9b2d),this['_touched']['set'](_0x59f1e6,{'userId':_0x3e84ad}),this['_touched']['set'](_0x41757e,{'userId':_0x3e84ad});}}['_handleMarkerOperation'](_0x394dd3){if(!_0x394dd3['affectsData'])return;const _0x27b160=(_0x394dd3=this['_cloneOperation'](_0x394dd3,this['_diffRoots']))['oldRange']?_0x394dd3['oldRange']['root']:null,_0x31fbdf=_0x394dd3['newRange']?_0x394dd3['newRange']['root']:null;_0x27b160&&this['_markers']['delete'](_0x394dd3['name']),_0x31fbdf&&this['_markers']['set'](_0x394dd3['name'],_0x394dd3['newRange']['clone']());const _0x2ac203=null===_0x394dd3['_authorId']?null:_0x394dd3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x218e91=_0x394dd3['name'];if(!this['_touchedMarkers']['has'](_0x218e91))return void this['_touchedMarkers']['set'](_0x218e91,{'range':_0x394dd3['oldRange'],'userId':_0x2ac203});const _0x38bdeb=this['_touchedMarkers']['get'](_0x218e91),_0xd0e3fc=_0x38bdeb['range'],_0x1ed56e=_0x394dd3['newRange'];null==_0xd0e3fc&&null==_0x1ed56e||_0xd0e3fc&&_0x1ed56e&&_0xd0e3fc['isEqual'](_0x1ed56e)?this['_touchedMarkers']['delete'](_0x394dd3['name']):_0x38bdeb['userId']=_0x2ac203;}['_handleRootOperation'](_0x55a167,_0xb34051){this['_diffRoots']['has'](_0x55a167['rootName'])?this['_diffRoots']['get'](_0x55a167['rootName'])['_isAttached']=_0x55a167['isAdd']:(this['_diffRoots']['set'](_0x55a167['rootName'],P(_0x55a167['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x55a167['rootName'],{}),_0xb34051&&this['_idsRoots']['set'](_0x55a167['rootName'],P(_0x55a167['rootName'],!0x0)));const _0x2839ab=null===_0x55a167['_authorId']?null:_0x55a167['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29d72b=this['_touchedRoots']['get'](_0x55a167['rootName']);_0x29d72b&&_0x29d72b['userId']===_0x2839ab?this['_touchedRoots']['delete'](_0x55a167['rootName']):this['_touchedRoots']['set'](_0x55a167['rootName'],{'userId':_0x2839ab,'isAttached':_0x55a167['isAdd']});}['_handleRootAttributeOperation'](_0x5dfcba){const _0x18542a=this['_diffRootsAttributes']['get'](_0x5dfcba['root']['rootName']);null===_0x5dfcba['newValue']?delete _0x18542a[_0x5dfcba['key']]:_0x18542a[_0x5dfcba['key']]=_0x5dfcba['newValue'];}}function N(_0x345c2d){const _0x44ff35=P(_0x345c2d['rootName'],_0x345c2d['isAttached']());for(const _0x29937e of _0x345c2d['getChildren']()){const _0x1e1aa5=_0x29937e['_clone'](!0x0);_0x44ff35['_appendChild'](_0x1e1aa5);}return _0x44ff35;}function P(_0x55f79d,_0x2c2b49=!0x0){const _0x2575ed=new gt();return _0x2575ed['rootName']=_0x55f79d,_0x2575ed['_isAttached']=_0x2c2b49,_0x2575ed['isAttached']=()=>_0x2575ed['_isAttached'],_0x2575ed;}function F(_0x31f1f3,_0x2c3908,_0x4c7b5a){const _0x2a8be4='elementEnd'==_0x31f1f3['type']?_0x4c7b5a['createPositionAt'](_0x31f1f3['item'],'end'):_0x4c7b5a['createPositionBefore'](_0x31f1f3['item']);return _0x4c7b5a['createPositionFromPath'](_0x2c3908,_0x2a8be4['path'],_0x2a8be4['stickiness']);}function B(_0x39407d,_0x39d4b9,_0x2d0c03){const _0x4ea7cb='elementStart'==_0x39407d['type']?_0x2d0c03['createPositionAt'](_0x39407d['item'],0x0):_0x2d0c03['createPositionAfter'](_0x39407d['item']);return _0x2d0c03['createPositionFromPath'](_0x39d4b9,_0x4ea7cb['path'],_0x4ea7cb['stickiness']);}class os extends _0xe6f994{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x39bf3b,_0x532b68){super(_0x39bf3b),this['focusTracker']=new _0xc6fcc2(),this['keystrokes']=new _0x2a371c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x532b68),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'](),_0x3b7330({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x361876=_0xa264bf=>_0xa264bf['stopPropagation']();this['keystrokes']['set']('arrowright',_0x361876),this['keystrokes']['set']('arrowleft',_0x361876),this['keystrokes']['set']('arrowup',_0x361876),this['keystrokes']['set']('arrowdown',_0x361876);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x8ab099){this['revisionNameInputView']['fieldView']['element']['value']=_0x8ab099['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x596db1){const _0x55664c=new nt(this['locale'],ti),_0x33935f=_0x55664c['fieldView'];_0x33935f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3ef8e2=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x596db1&&(_0x3ef8e2+='\x20('+g(this['locale'],'optional')+')'),(_0x55664c['label']=_0x3ef8e2,_0x33935f['on']('input',()=>{this['revisionNameInputValue']=_0x33935f['element']['value']['trim']();}),_0x55664c);}}class f extends _0x2ec88b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5e067b=this['editor'],_0xa91495=_0x5e067b['plugins']['get']('RevisionTracker');_0x5e067b['ui']['componentFactory']['add']('revisionHistory',_0x19c234=>{const _0x265bc5=_0x2abc07(_0x19c234),_0x58af61=_0x265bc5['panelView']['children'],_0x237552=new _0x497ddb(_0x19c234),_0x49396b=new te(_0x19c234),_0x308627=new _0x2f1c51(_0x19c234),_0xf84b4c=new te(_0x19c234),_0x8bf4a3=new _0x2f1c51(_0x19c234);return _0x265bc5['bind']('isEnabled')['to'](_0xa91495,'isReady',_0xa91495,'isEnabled',_0x5e067b,'isReadOnly',(_0xc9222d,_0x5a2854,_0x16c214)=>_0xc9222d&&_0x5a2854&&!_0x16c214),_0x265bc5['buttonView']['set']({'icon':_0xe03c96,'label':g(_0x19c234,'Revision\x20history'),'tooltip':!0x0}),_0x308627['set']({'label':g(_0x19c234,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x308627['bind']('isEnabled')['to'](_0xa91495,'isReady',_0xa91495,'isEnabled',_0x5e067b,'isReadOnly',(_0x23ffd0,_0x148f90,_0x168ec5)=>_0x23ffd0&&_0x148f90&&!_0x168ec5),_0x308627['on']('execute',()=>this['_showDialog']()),_0x8bf4a3['set']({'label':g(_0x19c234,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x8bf4a3['bind']('isEnabled')['to'](_0xa91495,'isReady',_0x5e067b,'isReadOnly',(_0x6bb110,_0x3ac1f4)=>_0x6bb110&&!_0x3ac1f4),_0x8bf4a3['on']('execute',()=>{_0x5e067b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x265bc5['isOpen']=!0x1,_0x5e067b['editing']['view']['focus']();}),_0x49396b['children']['add'](_0x308627),_0xf84b4c['children']['add'](_0x8bf4a3),_0x237552['role']='menu',_0x237552['items']['addMany']([_0x49396b,_0xf84b4c]),_0x58af61['add'](_0x237552),_0x265bc5;}),_0x5e067b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5062db=this['editor'],_0x295d13=_0x5062db['locale'],_0x300346=new _0x4b50d2(_0x295d13),_0x40797d=new _0x29661e(_0x295d13);_0x300346['buttonView']['set']({'icon':_0xe03c96,'label':g(_0x295d13,'Revision\x20history')});const _0x400717=new _0x1214a0(_0x295d13,_0x300346),_0x236595=new _0xa6a8d3(_0x295d13);_0x236595['set']({'label':g(_0x295d13,'Save\x20current\x20revision')}),_0x236595['delegate']('execute')['to'](_0x300346),_0x236595['on']('execute',()=>{this['_showDialog']();}),_0x400717['children']['add'](_0x236595),_0x40797d['items']['add'](_0x400717);const _0x203aa1=new _0x1214a0(_0x295d13,_0x300346),_0xce3da=new _0xa6a8d3(_0x295d13);return _0xce3da['set']({'label':g(_0x295d13,'Open\x20revision\x20history')}),_0xce3da['delegate']('execute')['to'](_0x300346),_0xce3da['on']('execute',()=>{_0x5062db['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x203aa1['children']['add'](_0xce3da),_0x40797d['items']['add'](_0x203aa1),_0x300346['panelView']['children']['add'](_0x40797d),_0x300346;}['_showDialog'](){const _0x34f23c=this['editor'],_0x3a3424=_0x34f23c['locale'],_0x37f04=_0x34f23c['plugins']['get']('Dialog'),_0xa0ee1a=_0x34f23c['plugins']['get']('RevisionTracker');function _0x28e783(_0x473c4b){_0x34f23c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x473c4b['revisionName']?_0x473c4b['revisionNameInputView']['errorText']=g(_0x3a3424,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x34f23c['plugins']['get'](u)['saveRevision']({'name':_0x473c4b['revisionName']}),_0x37f04['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x28e783(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x37f04['show']({'id':'revisionSave','title':g(_0x3a3424,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x34f23c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x37f04['hide']()},{'label':g(_0x34f23c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x53b6d7){_0x53b6d7['bind']('isEnabled')['to'](_0xa0ee1a,'isReady',_0xa0ee1a,'isEnabled',_0x34f23c,'isReadOnly',(_0x1c1afb,_0x5b1ff1,_0x54f5d8)=>_0x1c1afb&&_0x5b1ff1&&!_0x54f5d8);},'onExecute':()=>_0x28e783(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x470e55=this['editor'],_0xf4371=_0x470e55['locale'];this['_saveRevisionFormView']=new os(_0xf4371,_0x470e55['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0xe6f994{['changeId'];['_model'];constructor(_0x30ed2e,_0x2c245a){super(_0x30ed2e),this['_model']=_0x2c245a,this['changeId']=_0x2c245a['id'];const _0x180d78=this['bindTemplate'],_0x10556e=g(_0x30ed2e,_0x2c245a['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2c245a['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2c245a['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x180d78['to']('type',_0x529400=>'ck-revision-change__'+_0x529400)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x10556e}]},{'text':'\x20'+_0x2c245a['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x11044f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x13ca27){super(),this['id']=_0x13ca27['id']||_0x1facad(),this['author']=_0x13ca27['author'],this['type']=_0x13ca27['type'],this['data']=_0x13ca27['data']||{},this['rootName']=_0x13ca27['rootName'],this['set']('createdAt',_0x13ca27['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(_0x2adae0,_0x15e47a){this['newRevisionId']=_0x2adae0,this['oldRevisionId']=_0x15e47a,this['changes']=new _0x331cab();}['_setChanges'](_0x44aece){for(const _0x6c4b57 of _0x44aece)this['changes']['add'](_0x6c4b57);}}class m extends _0x2ec88b{['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[_0x53d511,_0x32e810,I,V];}constructor(_0x510c89){super(_0x510c89),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',(_0x3c0427,_0x205b2e,_0x13cd9d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5c6d37=>{for(const _0x1a89cf of this['editor']['editing']['view']['document']['roots'])_0x13cd9d?_0x5c6d37['removeClass']('ck-editor__editable__overlay',_0x1a89cf):_0x5c6d37['addClass']('ck-editor__editable__overlay',_0x1a89cf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5b3645=>null!==_0x5b3645),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1abae7,_0x22bb4f,_0x283429)=>_0x1abae7&&_0x283429?_0x22bb4f['changes']['getIndex'](_0x283429):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x30ca7e,_0x50c0d4)=>_0x30ca7e?_0x50c0d4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x32e810);}['init'](){const _0xf71767=this['editor'],_0x2835d6=new pt(_0xf71767,{'direction':'backward'}),_0x23a76a=new pt(_0xf71767,{'direction':'forward'});(_0xf71767['commands']['add']('showPreviousChange',_0x2835d6),_0xf71767['commands']['add']('showNextChange',_0x23a76a),_0xf71767['commands']['add']('restoreRevision',new wt(_0xf71767)),this['on']('change:numberOfChanges',()=>{_0x2835d6['refresh'](),_0x23a76a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xf71767['enableReadOnlyMode']('revision-viewer'),_0xf71767['plugins']['has']('WidgetToolbarRepository'))&&_0xf71767['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x11d6e2){return await this['_utils']['loadRevisionData'](_0x11d6e2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x11d6e2);}async['getRevisionRootsAttributes'](_0x3adac2){return await this['_utils']['loadRevisionData'](_0x3adac2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3adac2);}async['compare'](_0x34b4ff,_0xe8e658,_0x32d8a1=!0x1){if(!this['isEnabled'])return;const _0x260349=this['diff'],_0x5903f8=this['repository'],_0x3fb0bb='string'==typeof _0x34b4ff?_0x5903f8['getRevision'](_0x34b4ff):_0x34b4ff,_0x5bcaf7='string'==typeof _0xe8e658?_0x5903f8['getRevision'](_0xe8e658):_0xe8e658,_0x1af08e=_0x3fb0bb['id'],_0x13ed5a=_0x5bcaf7?_0x5bcaf7['id']:null;if(!_0x32d8a1&&this['diff']&&this['diff']['newRevisionId']===_0x1af08e&&this['diff']['oldRevisionId']===_0x13ed5a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1af08e,_0x13ed5a);const _0x191e21=this['_getRevisionsRange'](_0x3fb0bb,_0x5bcaf7,!0x0)['map'](_0xc2ab23=>this['_utils']['loadRevisionData'](_0xc2ab23,this['adapter']));return _0x191e21['push'](new Promise(_0xd8ddff=>{setTimeout(_0xd8ddff,0x14);})),Promise['all'](_0x191e21)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x19ff21=this['_getDiff'](_0x1af08e,_0x13ed5a);for(const _0x81e502 of _0x19ff21['changes'])this['_changeIdToChange']['set'](_0x81e502['id'],_0x81e502);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x339c2b=>{for(const _0x47c298 of this['editor']['model']['document']['getRootNames']())_0x339c2b['detachRoot'](_0x47c298);for(const _0x4d8fc7 of Object['keys'](_0x19ff21['model'])){const _0x3e7d41=_0x339c2b['addRoot'](_0x4d8fc7);for(const _0x314647 of Object['keys'](_0x19ff21['attributes'][_0x4d8fc7]))_0x339c2b['setAttribute'](_0x314647,_0x19ff21['attributes'][_0x4d8fc7][_0x314647],_0x3e7d41);_0x339c2b['insert'](_0x19ff21['model'][_0x4d8fc7],_0x3e7d41,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x19ff21['changes'])),this['isReady']=!0x0;})['catch'](_0x3e50de=>{console['error'](_0x3e50de),this['_cleanUp'](),_0x260349&&(this['diff']=_0x260349),this['isReady']=!0x0;});}['addRevisionData'](_0x511a08,_0x21a34c){const _0x5b7800=this['repository']['createRevision'](_0x511a08);return _0x5b7800['on']('_update',(_0x97fb50,_0x3e1846,_0x4704f0)=>_0x21a34c(_0x3e1846,_0x4704f0,_0x5b7800)),this['repository']['addRevision'](_0x5b7800),_0x5b7800;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5ed610=>{for(const _0x4ccc57 of this['editor']['model']['document']['getRootNames']())_0x5ed610['detachRoot'](_0x4ccc57);});}['_sortAndFilterDiffChanges'](_0x1dda22){const _0x59e9f7=[],_0x506d38=new Map();for(const _0x3c3b6e of this['editor']['model']['document']['getRootNames']()){const _0x3d7ac1=this['editor']['editing']['view']['getDomRoot'](_0x3c3b6e);if(!_0x3d7ac1)continue;const _0x52e21d=_0x3d7ac1['getClientRects']()['item'](0x0);_0x52e21d&&(_0x59e9f7['push'](_0x3c3b6e),_0x506d38['set'](_0x3c3b6e,_0x52e21d));}return _0x59e9f7['sort']((_0x9ccbfb,_0x483c85)=>{const _0x485e60=_0x506d38['get'](_0x9ccbfb),_0x5e443c=_0x506d38['get'](_0x483c85);return _0x485e60['y']-_0x5e443c['y']||_0x485e60['x']-_0x5e443c['x'];}),(_0x1dda22=_0x1dda22['filter'](_0x4afb61=>_0x59e9f7['includes'](_0x4afb61['rootName'])))['sort']((_0x7ce0e3,_0x1cd03a)=>_0x59e9f7['indexOf'](_0x7ce0e3['rootName'])-_0x59e9f7['indexOf'](_0x1cd03a['rootName'])),_0x1dda22;}['_makeTape'](_0x24fc78){const _0x3bf0bd=Array['from'](_0x24fc78['markers'])['filter'](([_0x49ab0b,_0xf1e706])=>_0x49ab0b['startsWith']('revision:')&&!_0xf1e706['isCollapsed']),_0x165ced=Array['from'](this['editor']['model']['createRangeIn'](_0x24fc78)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3bf0bd['length'])for(const _0x2aa0a9 of _0x165ced){const [_0x494534,_0x2f5e04]=_0x3bf0bd[0x0],[,_0x4c4179,_0xa6f778]=_0x494534['split'](':');if(_0x2f5e04['end']['isEqual'](_0x2aa0a9['nextPosition'])&&_0x3bf0bd['shift'](),(_0x2aa0a9['previousPosition']['isEqual'](_0x2f5e04['start'])||_0x2aa0a9['previousPosition']['isAfter'](_0x2f5e04['start']))&&('insertion'==_0x4c4179?_0x2aa0a9['isAdded']={'userId':_0xa6f778}:'deletion'==_0x4c4179&&(_0x2aa0a9['isRemoved']={'userId':_0xa6f778})),0x0==_0x3bf0bd['length'])break;}return _0x165ced;}['_refreshStartEndIndex'](_0x20a6ad){const _0x5c10e3=new Map();for(let _0x32902d=0x0;_0x32902d<_0x20a6ad['length'];_0x32902d++)'text'===_0x20a6ad[_0x32902d]['type']?(_0x20a6ad[_0x32902d]['item']['startIndex']=_0x32902d,_0x20a6ad[_0x32902d]['item']['endIndex']=_0x32902d):('elementStart'===_0x20a6ad[_0x32902d]['type']?_0x20a6ad[_0x32902d]['item']['startIndex']=_0x32902d:'elementEnd'===_0x20a6ad[_0x32902d]['type']&&(_0x20a6ad[_0x32902d]['item']['endIndex']=_0x32902d),_0x5c10e3['set'](_0x20a6ad[_0x32902d]['id'],_0x32902d));for(const _0x44db27 of _0x5c10e3['values']())'elementStart'===_0x20a6ad[_0x44db27]['type']?_0x20a6ad[_0x44db27]['item']['endIndex']=_0x5c10e3['get'](_0x20a6ad[_0x44db27]['pairId']):'elementEnd'===_0x20a6ad[_0x44db27]['type']&&(_0x20a6ad[_0x44db27]['item']['startIndex']=_0x5c10e3['get'](_0x20a6ad[_0x44db27]['pairId']));}['_processTape'](_0x3eccdc){for(let _0x4763d=0x0;_0x4763d<_0x3eccdc['length'];_0x4763d++){if('elementStart'===_0x3eccdc[_0x4763d]['type'])_0x3eccdc[_0x4763d]['item']['startIndex']=_0x4763d;else{if('elementEnd'===_0x3eccdc[_0x4763d]['type']){_0x3eccdc[_0x4763d]['item']['endIndex']=_0x4763d;const _0x27ed98=_0x3eccdc[_0x4763d]['item']['startIndex'];_0x3eccdc[_0x27ed98]['pairId']=_0x3eccdc[_0x4763d]['id'],_0x3eccdc[_0x4763d]['pairId']=_0x3eccdc[_0x27ed98]['id'];}else _0x3eccdc[_0x4763d]['item']['startIndex']=_0x4763d,_0x3eccdc[_0x4763d]['item']['endIndex']=_0x4763d,_0x3eccdc[_0x4763d]['pairId']=null;}_0x3eccdc[_0x4763d]['markersStart']||(_0x3eccdc[_0x4763d]['markersStart']=[],_0x3eccdc[_0x4763d]['markersEnd']=[]);}}['_markInsertions'](_0x1501c1,_0x374460){const _0x40a05c=_0x1501c1['filter'](_0x469b3b=>!_0x469b3b['isAdded']);for(let _0x390c30=0x0;_0x390c30<_0x374460['length'];_0x390c30++)_0x374460[_0x390c30]['isAdded']&&(_0x40a05c[_0x390c30]['isAdded']=_0x374460[_0x390c30]['isAdded']);}['_getDiff'](_0x452a7d,_0x489452=null){const _0x234b5f=this['repository']['getRevision'](_0x452a7d),_0x69b423=_0x489452?this['repository']['getRevision'](_0x489452):null,_0x5bf64a=this['_getRevisionsRange'](_0x234b5f,_0x69b423),_0x146421=_0x5bf64a[_0x5bf64a['length']-0x1],_0x14eda6=new Map(),_0x2dc881={'model':{},'attributes':{},'changes':[]},_0x5043b6=new Set(),_0x126205=new Map();for(let _0x148100=_0x5bf64a['length']-0x1;_0x148100>=0x0;_0x148100--){const _0x3b9b71=_0x5bf64a[_0x148100];for(const _0x563521 of Object['keys'](_0x3b9b71['diffData']))if(_0x3b9b71['diffData'][_0x563521]['attachChange']){const _0x2f02df=_0x3b9b71['diffData'][_0x563521]['attachChange'];_0x2f02df['isAttached']?(_0x5043b6['add'](_0x563521),_0x126205['has'](_0x563521)&&_0x126205['get'](_0x563521)['userId']==_0x2f02df['userId']?_0x126205['delete'](_0x563521):_0x126205['set'](_0x563521,_0x2f02df)):_0x126205['has'](_0x563521)?(_0x5043b6['delete'](_0x563521),_0x126205['delete'](_0x563521)):(_0x5043b6['add'](_0x563521),_0x126205['set'](_0x563521,_0x2f02df));}else _0x5043b6['add'](_0x563521);}for(const _0x39c668 of _0x5043b6){const _0x47beac=_0x126205['has'](_0x39c668)&&!_0x126205['get'](_0x39c668)['isAttached'];let _0x51517f=_0x47beac?_0x5bf64a['length']-0x1:0x0;const _0xed41ab=_0x47beac?-0x1:0x1;for(;_0x5bf64a[_0x51517f];){const _0x4d3c72=_0x5bf64a[_0x51517f];if(_0x4d3c72['diffData'][_0x39c668]){const _0x5a36f3=_0x47beac?_0x4d3c72['diffData'][_0x39c668]['attributesBefore']:_0x4d3c72['diffData'][_0x39c668]['attributesAfter'];_0x2dc881['attributes'][_0x39c668]=_0x5a36f3?_0x308bef(_0x5a36f3):{};break;}_0x51517f+=_0xed41ab;}}for(const _0x52e2fc of _0x5bf64a){_0x52e2fc['model']={};for(const _0x24d36a of _0x52e2fc['authors'])_0x14eda6['set'](_0x24d36a['id'],_0x24d36a);for(const _0x27e67f of _0x5043b6){const _0x5ce0aa=_0x52e2fc['diffData'][_0x27e67f]?_0x52e2fc['diffData'][_0x27e67f]['insertions']:'[]',_0x4b6df5=_0x52e2fc['diffData'][_0x27e67f]?_0x52e2fc['diffData'][_0x27e67f]['deletions']:'[]';_0x52e2fc['model'][_0x27e67f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5ce0aa),'deletions':this['_utils']['_makeModelFromViewString'](_0x4b6df5)};}}for(const _0x252d73 of _0x5043b6){let _0x426fd4=null,_0x3e5bf9=0x0;const _0x31146b=new Map(Array['from'](_0x234b5f['model'][_0x252d73]['insertions']['markers'])['filter'](([_0x5fe233])=>!_0x5fe233['startsWith']('revision:')));let _0x1f59c0=0x0;for(const _0x213b20 of _0x5bf64a){const _0x611789=this['_makeTape'](_0x213b20['model'][_0x252d73]['insertions']);_0x213b20==_0x234b5f?(_0x426fd4=_0x611789,_0x3e5bf9=_0x426fd4['length'],_0x426fd4['forEach'](_0x3776a5=>{_0x3776a5['id']=_0x1f59c0++;}),this['_processTape'](_0x426fd4)):this['_markInsertions'](_0x426fd4,_0x611789);const _0x572e31=_0x426fd4['filter'](_0x3ef851=>!_0x3ef851['isAdded'])['map'](_0x4a495f=>_0x4a495f['id']);let _0x140821=0x0;const _0x42a1ae=this['_makeTape'](_0x213b20['model'][_0x252d73]['deletions']);_0x42a1ae['forEach'](_0x3d9277=>{_0x3d9277['isRemoved']?_0x3d9277['id']=_0x3e5bf9++:_0x3d9277['id']=_0x572e31[_0x140821++];}),this['_processTape'](_0x42a1ae),this['_setDistance'](_0x426fd4,'isAdded'),this['_setDistance'](_0x42a1ae,'isRemoved'),_0x213b20==_0x234b5f&&this['_markMarkers'](_0x426fd4,_0x31146b),_0x426fd4=this['_joinTapes'](_0x426fd4,_0x42a1ae),this['_refreshStartEndIndex'](_0x426fd4),this['_setDistance'](_0x426fd4,'isRemoved');}_0x426fd4=_0x426fd4['filter'](_0x20038b=>!(_0x20038b['isAdded']&&_0x20038b['isRemoved']));const _0x108b17=new Map(_0x146421['model'][_0x252d73]['deletions']['markers']),_0x152fcc=new Set(_0x31146b['keys']());for(const _0x45df83 of _0x108b17['keys']())_0x152fcc['delete'](_0x45df83);this['_markSuggestions'](_0x426fd4,_0x152fcc),this['_fixObsoleteTags'](_0x426fd4),_0x426fd4=this['_removeMissingPairs'](_0x426fd4),_0x426fd4=this['_markMismatchedRemovedTags'](_0x426fd4),_0x426fd4=this['_removeUnsupportedChanges'](_0x426fd4);const {root:_0x4624c6,changes:_0x4a664c}=this['_makeModelFromTape'](_0x426fd4,_0x14eda6,_0x252d73);_0x2dc881['model'][_0x252d73]=_0x4624c6;const _0x128a98=_0x126205['get'](_0x252d73);if(_0x128a98){const _0x162210=_0x14eda6['get'](_0x128a98['userId']),_0x39c7c4=new r({'author':_0x162210,'type':_0x128a98['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x252d73});_0x4a664c['unshift'](_0x39c7c4),_0x2dc881['attributes'][_0x252d73]['revisionHistoryAttachChange']=_0x39c7c4['id'];}_0x2dc881['changes']=_0x2dc881['changes']['concat'](_0x4a664c);}return _0x2dc881;}['_markMarkers'](_0x4f585b,_0x268ca6){for(let _0x309ea0=0x0;_0x309ea0<_0x4f585b['length'];_0x309ea0++)for(const [_0x10578d,_0x1ac29c]of _0x268ca6)!_0x1ac29c['isCollapsed']&&_0x1ac29c['start']['isEqual'](_0x4f585b[_0x309ea0]['previousPosition'])&&_0x4f585b[_0x309ea0]['markersStart']['push'](_0x10578d),_0x1ac29c['end']['isEqual'](_0x4f585b[_0x309ea0]['nextPosition'])&&_0x4f585b[_0x309ea0]['markersEnd']['push'](_0x10578d);}['_joinTapes'](_0x4b9278,_0x131ae8){let _0x253355=[],_0x5b1692=0x0,_0x41fa89=0x0;for(;_0x5b1692<_0x4b9278['length']||_0x41fa89<_0x131ae8['length'];){const _0x3ce699=_0x4b9278[_0x5b1692]||{},_0xdcb75a=_0x131ae8[_0x41fa89]||{};if(_0x3ce699['id']==_0xdcb75a['id'])_0x5b1692++,_0x41fa89++,_0x253355['push'](_0x3ce699);else{if(_0xdcb75a['isRemoved']&&_0x3ce699['isAdded']){const {commonTape:_0x454c8c,iEnd:_0x5acbb8,jEnd:_0x464eb7}=this['_threeWayMerge'](_0x4b9278,_0x5b1692,_0x131ae8,_0x41fa89);_0x253355=_0x253355['concat'](_0x454c8c),_0x5b1692=_0x5acbb8,_0x41fa89=_0x464eb7;}else _0xdcb75a['isRemoved']?(_0x41fa89++,_0x253355['push'](_0xdcb75a)):(_0x5b1692++,_0x253355['push'](_0x3ce699));}}return _0x253355;}['_markSuggestions'](_0x30750a,_0x5aebc7){const _0x3c2047=[];for(let _0x2603e3=0x0;_0x2603e3<_0x30750a['length'];_0x2603e3++){for(let _0x5939ce=0x0;_0x5939ce<_0x30750a[_0x2603e3]['markersStart']['length'];_0x5939ce++){const _0x4328c0=_0x30750a[_0x2603e3]['markersStart'][_0x5939ce];if(!_0x5aebc7['has'](_0x4328c0))continue;const {group:_0xb2d1aa,type:_0x129233,authorId:_0x4d01ec}=_0x2695f1(_0x4328c0);'revision-suggestion'!=_0xb2d1aa||'insertion'!=_0x129233&&'deletion'!=_0x129233||(_0x3c2047['unshift']({'type':_0x129233,'name':_0x4328c0,'userId':_0x4d01ec}),_0x30750a[_0x2603e3]['markersStart']['splice'](_0x5939ce,0x1),_0x5939ce--);}_0x5926cd(_0x30750a[_0x2603e3]);for(let _0x244976=0x0;_0x244976<_0x30750a[_0x2603e3]['markersEnd']['length'];_0x244976++){const _0x39529a=_0x30750a[_0x2603e3]['markersEnd'][_0x244976];if(!_0x5aebc7['has'](_0x39529a))continue;const {group:_0x126ab1,type:_0x4a3f77}=_0x2695f1(_0x39529a);if('revision-suggestion'!=_0x126ab1||'insertion'!=_0x4a3f77&&'deletion'!=_0x4a3f77)continue;_0x30750a[_0x2603e3]['markersEnd']['splice'](_0x244976,0x1),_0x244976--;const _0x69e2f1=_0x3c2047['findIndex'](_0x49ddb6=>_0x49ddb6['name']==_0x39529a);_0x69e2f1>-0x1&&_0x3c2047['splice'](_0x69e2f1,0x1);}}function _0x2695f1(_0xc71912){const _0x37f6f3=_0xc71912['split'](':');return{'group':_0x37f6f3[0x0],'type':_0x37f6f3[0x1],'subType':_0x37f6f3['length']>=0x5?_0x37f6f3[0x2]:null,'id':_0x37f6f3['length']<0x5?_0x37f6f3[0x2]:_0x37f6f3[0x3],'authorId':_0x37f6f3['length']<0x5?_0x37f6f3[0x3]:_0x37f6f3[0x4],'markerCount':0x6==_0x37f6f3['length']?_0x37f6f3[0x5]:null};}function _0x5926cd(_0x38ba51){for(let _0x40aa44=0x0;_0x40aa44<_0x3c2047['length'];_0x40aa44++){if(_0x38ba51['isAdded']&&'insertion'==_0x3c2047[_0x40aa44]['type']&&_0x38ba51['isAdded']['userId']==_0x3c2047[_0x40aa44]['userId'])return _0x38ba51['isAddSuggestion']=_0x3c2047[_0x40aa44],void delete _0x38ba51['isAdded'];if(!_0x38ba51['isAdded']&&!_0x38ba51['isRemoved']&&'deletion'==_0x3c2047[_0x40aa44]['type'])return void(_0x38ba51['isRemoveSuggestion']=_0x3c2047[_0x40aa44]);}}}['_setDistance'](_0x499435,_0x22e7d9){let _0x157bbd=0x0,_0x2f4fe9=!0x1;const _0x5620bf=new Map();for(const _0x3a5673 of _0x499435)_0x3a5673[_0x22e7d9]?_0x2f4fe9&&(_0x157bbd++,_0x2f4fe9=!0x1):(_0x157bbd++,_0x2f4fe9=!0x0),_0x5620bf['set'](_0x3a5673['id'],_0x157bbd);for(let _0x467cf1=0x0;_0x467cf1<_0x499435['length'];_0x467cf1++){if('isRemoved'==_0x22e7d9&&_0x499435[_0x467cf1]['isAdded']||'isAdded'==_0x22e7d9&&_0x499435[_0x467cf1]['isRemoved'])continue;if('text'==_0x499435[_0x467cf1]['type']){_0x499435[_0x467cf1]['distance']=0x0;continue;}const _0x35d091=_0x5620bf['get'](_0x499435[_0x467cf1]['pairId']),_0x2836a0=_0x5620bf['get'](_0x499435[_0x467cf1]['id']);_0x499435[_0x467cf1]['distance']=_0x35d091-_0x2836a0;}}['_getRevisionsRange'](_0x29b8a7,_0x4bc465,_0x1cc18f=!0x1){const _0x1b70ca=[];let _0x3be102=this['repository']['getIndex'](_0x29b8a7),_0x5e56d2=this['repository']['getIndex'](_0x4bc465);for(-0x1==_0x5e56d2&&(_0x5e56d2=this['repository']['_revisions']['length'],_0x1cc18f=!0x1);_0x3be102<_0x5e56d2;)_0x1b70ca['push'](this['repository']['getRevision'](_0x3be102)),_0x3be102++;return _0x1cc18f&&_0x1b70ca['push'](this['repository']['getRevision'](_0x3be102)),_0x1b70ca;}['_threeWayMerge'](_0x4543b5,_0xa8011c,_0x1f248c,_0x5e1763){const _0x238433=this['editor']['model']['schema'];let _0x4c2fd2=_0xa8011c;for(;_0x4543b5[_0x4c2fd2]&&_0x4543b5[_0x4c2fd2]['isAdded'];)_0x4c2fd2++;let _0x56170f=_0x5e1763;for(;_0x1f248c[_0x56170f]&&_0x1f248c[_0x56170f]['isRemoved'];)_0x56170f++;_0x4ecf64(_0x4543b5,_0xa8011c,_0x4c2fd2),_0x4ecf64(_0x1f248c,_0x5e1763,_0x56170f);const _0x1f31ed=_0x1f248c['slice'](_0x5e1763,_0x56170f)['concat'](_0x4543b5['slice'](_0xa8011c,_0x4c2fd2));return _0x1f31ed['sort']((_0x504306,_0x342ccf)=>_0x504306['side']!=_0x342ccf['side']?_0x504306['side']-_0x342ccf['side']:_0x504306['level']!=_0x342ccf['level']?_0x504306['level']-_0x342ccf['level']:_0x504306['distance']!=_0x342ccf['distance']?_0x342ccf['distance']-_0x504306['distance']:!!_0x504306['isAdded']!=!!_0x342ccf['isAdded']?-0x1==_0x504306['side']||0x0==_0x504306['side']?_0x504306['isAdded']?-0x1:0x1:_0x504306['isAdded']?0x1:-0x1:_0x504306['index']-_0x342ccf['index']),{'commonTape':_0x1f31ed,'iEnd':_0x4c2fd2,'jEnd':_0x56170f};function _0x4ecf64(_0x21ccc6,_0x89b46b,_0x12898d){let _0x50586e=-0x1,_0x107337=Number['POSITIVE_INFINITY'],_0x1752b6=!0x0;for(let _0x4fa80a=_0x89b46b;_0x4fa80a<_0x12898d;_0x4fa80a++)if(_0x238433['isInline'](_0x21ccc6[_0x4fa80a]['item'])||(_0x1752b6=!0x1),_0x21ccc6[_0x4fa80a]['item']['startIndex']<_0x89b46b&&(_0x50586e=_0x4fa80a),_0x21ccc6[_0x4fa80a]['item']['endIndex']>=_0x12898d){_0x107337=_0x4fa80a;break;}_0x1752b6&&(_0x50586e=_0x12898d-0x1);for(let _0x34e775=_0x89b46b;_0x34e775<_0x12898d;_0x34e775++)_0x21ccc6[_0x34e775]['side']=_0x34e775<=_0x50586e?-0x1:_0x34e775<_0x107337?0x0:0x1,_0x21ccc6[_0x34e775]['index']=_0x34e775;let _0x47815b=0x0;for(let _0x14631d=_0x89b46b;_0x14631d<=_0x50586e;_0x14631d++)0x0==_0x21ccc6[_0x14631d]['distance']?_0x21ccc6[_0x14631d]['level']=_0x47815b:(_0x47815b++,_0x21ccc6[_0x14631d]['level']=_0x47815b,_0x47815b++);for(let _0x21a2fe=_0x89b46b;_0x21a2fe<_0x12898d;_0x21a2fe++)0x0==_0x21ccc6[_0x21a2fe]['side']&&(_0x21ccc6[_0x21a2fe]['level']=_0x47815b);_0x47815b=0x0;for(let _0x371588=_0x12898d-0x1;_0x371588>=_0x107337;_0x371588--)0x0==_0x21ccc6[_0x371588]['distance']?_0x21ccc6[_0x371588]['level']=_0x47815b:(_0x47815b--,_0x21ccc6[_0x371588]['level']=_0x47815b,_0x47815b--);}}['_fixObsoleteTags'](_0x2104e7){const _0x46467f=new Map(),_0x31b6cc=this['editor']['model']['schema'];for(let _0x40d64b=0x1;_0x40d64b<_0x2104e7['length'];_0x40d64b++){let _0x598797,_0x3c6cc0,_0x4deca5;const _0x4d19f1=_0x2104e7[_0x40d64b],_0x5995e0=_0x2104e7[_0x40d64b-0x1];if('text'==_0x4d19f1['type'])continue;if(_0x4d19f1['type']!=_0x5995e0['type'])continue;if(!_0x31b6cc['isBlock'](_0x5995e0['item'])||_0x31b6cc['isLimit'](_0x5995e0['item']))continue;if(!_0x31b6cc['isBlock'](_0x4d19f1['item'])||_0x31b6cc['isLimit'](_0x4d19f1['item']))continue;if((_0x2104e7[_0x40d64b]['isAdded']||_0x2104e7[_0x40d64b]['isAddSuggestion'])&&_0x2104e7[_0x40d64b-0x1]['isRemoved'])_0x598797=_0x2104e7[_0x40d64b],_0x3c6cc0=_0x2104e7[_0x40d64b-0x1],_0x4deca5=_0x40d64b-0x1;else{if(!_0x2104e7[_0x40d64b]['isRemoved']||!_0x2104e7[_0x40d64b-0x1]['isAdded']&&!_0x2104e7[_0x40d64b-0x1]['isAddSuggestion'])continue;_0x598797=_0x2104e7[_0x40d64b-0x1],_0x3c6cc0=_0x2104e7[_0x40d64b],_0x4deca5=_0x40d64b;}const _0x12a04a=_0x598797['level']==_0x3c6cc0['level'],_0x40e123=Math['abs'](_0x598797['level'])<Math['abs'](_0x3c6cc0['level'])&&0x0==_0x3c6cc0['distance'];(_0x12a04a||_0x40e123)&&(_0x46467f['set'](_0x3c6cc0['id'],_0x598797['id']),_0x2104e7['splice'](_0x4deca5,0x1),_0x40d64b--,_0x598797['isAdded']=!0x1);}for(let _0x22d844=0x0;_0x22d844<_0x2104e7['length'];_0x22d844++)_0x46467f['has'](_0x2104e7[_0x22d844]['pairId'])&&(_0x2104e7[_0x22d844]['pairId']=_0x46467f['get'](_0x2104e7[_0x22d844]['pairId']));}['_removeMissingPairs'](_0x335fe6){const _0x34e029=new Set(_0x335fe6['map'](_0x560487=>_0x560487['id']));for(let _0x222962=0x0;_0x222962<_0x335fe6['length'];_0x222962++)_0x34e029['has'](_0x335fe6[_0x222962]['pairId'])||0x0==_0x335fe6[_0x222962]['distance']||(_0x335fe6[_0x222962]['isIncorrect']=!0x0);return _0x335fe6['filter'](_0x3a963d=>!_0x3a963d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4cee3c){const _0x2a02ad=new Set();for(let _0x213ca6=0x0;_0x213ca6<_0x4cee3c['length'];_0x213ca6++){if(_0x2a02ad['has'](_0x4cee3c[_0x213ca6]['id'])&&_0x4cee3c[_0x213ca6]['isRemoved']&&(_0x4cee3c[_0x213ca6]['isIncorrect']=!0x0),_0x4cee3c[_0x213ca6]['isIncorrect'])continue;if(0x0==_0x4cee3c[_0x213ca6]['distance'])continue;if('elementStart'!=_0x4cee3c[_0x213ca6]['type'])continue;if(null==_0x4cee3c[_0x213ca6]['pairId'])continue;let _0x2d47f2=_0x213ca6+0x1,_0x557330=0x0;for(;_0x4cee3c[_0x2d47f2]['id']!=_0x4cee3c[_0x213ca6]['pairId'];)'elementStart'==_0x4cee3c[_0x2d47f2]['type']?_0x557330++:'elementEnd'==_0x4cee3c[_0x2d47f2]['type']&&_0x557330--,_0x2d47f2++;if(0x0!=_0x557330){if(_0x4cee3c[_0x213ca6]['isRemoved'])_0x4cee3c[_0x213ca6]['isIncorrect']=!0x0;else{for(;_0x2d47f2!=_0x213ca6;)_0x4cee3c[_0x2d47f2]['isRemoved']&&0x0!=_0x4cee3c[_0x2d47f2]['distance']&&(_0x4cee3c[_0x2d47f2]['isIncorrect']=!0x0,_0x2a02ad['add'](_0x4cee3c[_0x2d47f2]['pairId'])),_0x2d47f2--;}}}return _0x4cee3c['filter'](_0x41aa0d=>!_0x41aa0d['isIncorrect']);}['_removeUnsupportedChanges'](_0x52243f){const _0x387d47=this['editor']['model']['schema'];for(let _0x36fa05=0x0;_0x36fa05<_0x52243f['length'];_0x36fa05++){if(!(_0x52243f[_0x36fa05]['isAdded']||_0x52243f[_0x36fa05]['isAddSuggestion']||_0x52243f[_0x36fa05]['isRemoved']||_0x52243f[_0x36fa05]['isRemoveSuggestion']))continue;if(0x0==_0x52243f[_0x36fa05]['distance'])continue;const _0x11fdfa=_0x52243f[_0x36fa05]['item'];_0x387d47['isBlock'](_0x11fdfa)||_0x387d47['isLimit'](_0x11fdfa)||(_0x52243f[_0x36fa05]['isAdded']&&delete _0x52243f[_0x36fa05]['isAdded'],_0x52243f[_0x36fa05]['isAddSuggestion']&&delete _0x52243f[_0x36fa05]['isAddSuggestion'],_0x52243f[_0x36fa05]['isRemoveSuggestion']&&delete _0x52243f[_0x36fa05]['isRemoveSuggestion'],_0x52243f[_0x36fa05]['isRemoved']&&(_0x52243f[_0x36fa05]['isIncorrect']=!0x0));}return _0x52243f['filter'](_0x99bc60=>!_0x99bc60['isIncorrect']);}['_makeModelFromTape'](_0x45bc49,_0x284145,_0xd47f03){const _0x32295e=new gt(),_0x53aee4=[],_0x48db5f=new Map(),_0x14707f=this['editor']['model'],_0x3dae96=_0x14707f['schema'],_0x93f571=[_0x32295e],_0x19c6d1={},_0x1c26d9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4cea67=null;const _0x293152=[0x0];for(let _0x5ad446=0x0;_0x5ad446<_0x45bc49['length'];_0x5ad446++)if('elementStart'===_0x45bc49[_0x5ad446]['type']){_0x45bc49[_0x5ad446]['previousPosition']=_0x14707f['createPositionFromPath'](_0x32295e,_0x293152);const _0x17c0ef=new ut(_0x45bc49[_0x5ad446]['item']['name'],_0x45bc49[_0x5ad446]['item']['getAttributes']());_0x93f571[0x0]['_appendChild'](_0x17c0ef),_0x293152['push'](0x0),_0x93f571['unshift'](_0x17c0ef),_0x45bc49[_0x5ad446]['nextPosition']=_0x14707f['createPositionFromPath'](_0x32295e,_0x293152);}else'elementEnd'===_0x45bc49[_0x5ad446]['type']?(_0x93f571['shift'](),_0x45bc49[_0x5ad446]['previousPosition']=_0x14707f['createPositionFromPath'](_0x32295e,_0x293152),_0x293152['pop'](),_0x293152[_0x293152['length']-0x1]++,_0x45bc49[_0x5ad446]['nextPosition']=_0x14707f['createPositionFromPath'](_0x32295e,_0x293152)):(_0x45bc49[_0x5ad446]['previousPosition']=_0x14707f['createPositionFromPath'](_0x32295e,_0x293152),_0x4cea67?_0x4cea67['_data']+=_0x45bc49[_0x5ad446]['item']['data']:_0x4cea67=new mt(_0x45bc49[_0x5ad446]['item']['data'],_0x45bc49[_0x5ad446]['item']['getAttributes']()),_0x45bc49[_0x5ad446+0x1]&&'text'===_0x45bc49[_0x5ad446+0x1]['type']&&_0xa8686c(_0x4cea67,_0x45bc49[_0x5ad446+0x1]['item'])||(_0x93f571[0x0]['_appendChild'](_0x4cea67),_0x4cea67=null),_0x293152[_0x293152['length']-0x1]+=_0x45bc49[_0x5ad446]['item']['offsetSize'],_0x45bc49[_0x5ad446]['nextPosition']=_0x14707f['createPositionFromPath'](_0x32295e,_0x293152));for(let _0x1f6b32=0x0;_0x1f6b32<_0x45bc49['length'];_0x1f6b32++){const _0x156666=_0x45bc49[_0x1f6b32]['previousPosition'],_0x412592=_0x45bc49[_0x1f6b32]['nextPosition'];for(const _0x41a858 of _0x45bc49[_0x1f6b32]['markersStart'])_0x48db5f['set'](_0x41a858,{'start':_0x156666,'end':null});_0x15e7f0('isRemoveSuggestion',_0x1f6b32,_0x156666,_0x412592),_0x15e7f0('isAddSuggestion',_0x1f6b32,_0x156666,_0x412592),_0x15e7f0('isRemoved',_0x1f6b32,_0x156666,_0x412592),_0x15e7f0('isAdded',_0x1f6b32,_0x156666,_0x412592);for(const _0x3519ac of _0x45bc49[_0x1f6b32]['markersEnd']){const _0x47132e=_0x48db5f['get'](_0x3519ac);_0x47132e?_0x47132e['end']=_0x412592:_0x48db5f['set'](_0x3519ac,{'start':_0x412592,'end':_0x412592});}}for(const [_0x5285f4,_0x1b4a17]of _0x48db5f){const _0x47bef7=this['editor']['model']['createRange'](_0x1b4a17['start'],_0x1b4a17['end']);_0x32295e['markers']['set'](_0x5285f4,_0x47bef7);}return _0x53aee4['sort']((_0x374714,_0x4dcfa9)=>{const _0x34db0a=_0x32295e['markers']['get']('revision:'+_0x374714['id']),_0x1b0024=_0x32295e['markers']['get']('revision:'+_0x4dcfa9['id']);return _0x34db0a['start']['isBefore'](_0x1b0024['start'])?-0x1:_0x34db0a['start']['isAfter'](_0x1b0024['start'])?0x1:_0x34db0a['end']['isBefore'](_0x1b0024['end'])?-0x1:_0x34db0a['end']['isAfter'](_0x1b0024['end'])?0x1:'add'===_0x374714['type']?-0x1:0x1;}),{'root':_0x32295e,'changes':_0x53aee4};function _0x15e7f0(_0x463abd,_0x109220,_0xd76b54,_0x2f96d6){const _0x285e4b=!!_0x45bc49[_0x109220][_0x463abd],_0x5826c1=_0x285e4b?_0x45bc49[_0x109220][_0x463abd]['userId']:null,_0x44d526=_0x109220===_0x45bc49['length']-0x1,_0x66b2e9=_0x1c26d9[_0x463abd][0x0],_0x1239df=_0x3dae96['isObject'](_0x45bc49[_0x109220]['item']);!_0x19c6d1[_0x463abd]&&_0x285e4b?_0x19c6d1[_0x463abd]={'start':_0xd76b54,'tapeItem':_0x45bc49[_0x109220],'userId':_0x5826c1,'type':_0x463abd}:_0x19c6d1[_0x463abd]&&!_0x285e4b?(_0x19c6d1[_0x463abd]['end']=_0xd76b54,_0x235541(_0x19c6d1[_0x463abd]),_0x19c6d1[_0x463abd]=null):_0x19c6d1[_0x463abd]&&_0x285e4b&&_0x19c6d1[_0x463abd]['userId']!==_0x5826c1&&(_0x19c6d1[_0x463abd]['end']=_0xd76b54,_0x66b2e9&&_0x66b2e9['userId']===_0x19c6d1[_0x463abd]['userId']||_0x235541(_0x19c6d1[_0x463abd]),_0x19c6d1[_0x463abd]={'start':_0xd76b54,'tapeItem':_0x45bc49[_0x109220],'userId':_0x5826c1,'type':_0x463abd}),_0x19c6d1[_0x463abd]&&_0x1239df&&('elementStart'!==_0x45bc49[_0x109220]['type']||_0x66b2e9&&_0x66b2e9['userId']===_0x5826c1||_0x1c26d9[_0x463abd]['unshift']({'userId':_0x5826c1,'object':_0x45bc49[_0x109220]['item'],'change':_0x19c6d1[_0x463abd]}),'elementEnd'===_0x45bc49[_0x109220]['type']&&_0x66b2e9&&_0x66b2e9['object']===_0x45bc49[_0x109220]['item']&&(_0x1c26d9[_0x463abd]['shift'](),_0x19c6d1[_0x463abd]=_0x66b2e9['change'])),_0x19c6d1[_0x463abd]&&_0x44d526&&(_0x19c6d1[_0x463abd]['end']=_0x2f96d6,_0x235541(_0x19c6d1[_0x463abd]),_0x19c6d1[_0x463abd]=null);}function _0x235541({start:_0x87c90,end:_0x5e6bca,tapeItem:_0x1f47de,userId:_0x1d5593,type:_0xc267d1}){const _0xbab1be=_0x1f47de['item'],_0x2352d8=_0x14707f['schema']['isBlock'](_0xbab1be)&&!_0x14707f['schema']['isLimit'](_0xbab1be),_0x28efe2=_0x87c90['nodeAfter']==_0x5e6bca['parent']&&_0x5e6bca['isAtStart'];if(_0x2352d8&&_0x28efe2)return;const _0x3625bc=_0x14707f['createRange'](_0x87c90,_0x5e6bca),_0x339888=_0x284145['get'](_0x1d5593),_0x30fe24=new r({'author':_0x339888,'type':'isAdded'==_0xc267d1||'isAddSuggestion'==_0xc267d1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xc267d1||'isRemoveSuggestion'==_0xc267d1},'createdAt':new Date(),'rootName':_0xd47f03});_0x53aee4['push'](_0x30fe24),_0x32295e['markers']['set']('revision:'+_0x30fe24['id'],_0x3625bc);}function _0xa8686c(_0x264e20,_0x2249c4){const _0xeaff91=_0x264e20['getAttributes'](),_0x36172b=_0x2249c4['getAttributes']();for(const _0x4951b2 of _0xeaff91){if(_0x4951b2[0x1]!==_0x2249c4['getAttribute'](_0x4951b2[0x0]))return!0x1;_0x36172b['next']();}return _0x36172b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5e4fc4=>{const _0x3d164e=_0x5e4fc4['markerName']['split'](':')[0x1],_0x18aafd=this['_getChangeFromId'](_0x3d164e);if(!_0x18aafd)return null;const _0x454379='add'==_0x18aafd['type']?'insertion':'deletion',_0x61d91f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x454379];return _0x18aafd['data']['isSuggestion']&&_0x61d91f['push']('ck-suggestion-marker-'+_0x454379+'-new'),this['activeChange']==_0x18aafd&&_0x61d91f['push']('ck-suggestion-marker--active'),{'classes':_0x61d91f,'attributes':{'data-change-id':_0x3d164e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x286b18=>{_0x286b18['on']('element:pre',(_0x1edd3a,_0x40955e,_0x4512a7)=>{const _0xa2e5a1=_0x40955e['viewItem']['getChild'](0x0);if(!_0xa2e5a1||!_0xa2e5a1['is']('element','code'))return;if(!_0x4512a7['consumable']['consume'](_0xa2e5a1,{'attributes':['vid_start','vid_end']}))return;const _0x51d568=_0x40955e['modelRange']['start']['nodeAfter'];_0x4512a7['writer']['setAttribute']('vid_start',_0xa2e5a1['getAttribute']('vid_start'),_0x51d568),_0x4512a7['writer']['setAttribute']('vid_end',_0xa2e5a1['getAttribute']('vid_end'),_0x51d568);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x586cd5=>{_0x586cd5['on']('element',(_0x3fb386,_0x1624c6,_0x395f32)=>{if(!_0x395f32['consumable']['consume'](_0x1624c6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1624c6['modelRange']['isCollapsed'])return;const _0x4c0f8a=_0x1624c6['modelRange']['start']['nodeAfter'];_0x4c0f8a['hasAttribute']('vid_start')||_0x4c0f8a['hasAttribute']('vid')||(_0x395f32['writer']['setAttribute']('vid_start',_0x1624c6['viewItem']['getAttribute']('vid_start'),_0x4c0f8a),_0x395f32['writer']['setAttribute']('vid_end',_0x1624c6['viewItem']['getAttribute']('vid_end'),_0x4c0f8a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x170530=>_0x170530['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1fcc88,[,_0x16d8ad])=>{['vid_start','vid_end','vid']['includes'](_0x16d8ad)&&(_0x1fcc88['return']=!0x0,_0x1fcc88['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x36c93e=>{_0x36c93e['on']('attribute:vid',(_0x383938,_0x3ea467,_0x5b2df2)=>{if('\x20'!=_0x3ea467['item']['data']||_0x3ea467['item']['parent']['maxOffset']>0x1)return;if(!_0x5b2df2['consumable']['consume'](_0x3ea467['item'],_0x383938['name']))return;const _0x11e34a=_0x5b2df2['writer'],_0x457353=_0x5b2df2['mapper']['toViewRange'](_0x3ea467['range']);_0x11e34a['wrap'](_0x457353,_0x11e34a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5aec45){const _0x2e7bba=_0x5aec45['plugins']['get']('RevisionViewer');return(_0x5198e1,_0x37bb63,_0x2c695b)=>{const _0x2ed45b=_0x37bb63['markerName']['split'](':')[0x1],_0x57871a=_0x2e7bba['_getChangeFromId'](_0x2ed45b);if(!_0x57871a)return null;const _0x1f7e06='add'==_0x57871a['type']?'split':'merge';if(!_0x2c695b['consumable']['test'](_0x37bb63['markerRange'],_0x5198e1['name']))return;const _0x3a5c99=_0x37bb63['markerRange']['getWalker'](),_0x344bdc=_0x37bb63['markerRange']['start'],_0x1a609b=_0x5aec45['model']['schema'];let _0x323fd0=null,_0xab6827=null,_0x4bbd90=!0x1,_0x446aff=!0x1;for(const _0x2034a3 of _0x3a5c99){const _0x34c05e=_0x2034a3['item'];_0x4bbd90=_0x4bbd90||_0x1a609b['isContent'](_0x34c05e);const _0x51f30c=_0x2c695b['mapper']['toViewElement'](_0x34c05e);if(_0x51f30c&&_0x51f30c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2034a3['type']&&(_0x1a609b['isBlock'](_0x34c05e)&&!_0x1a609b['isLimit'](_0x34c05e)&&(_0x34c05e['nextSibling']||_0x344bdc['isAtEnd']?_0x323fd0&&_0x323fd0['parent']==_0x34c05e||(_0x323fd0=_0x34c05e,_0x4af639(_0x2034a3['previousPosition']),_0x446aff=!0x0):_0xab6827=_0xab6827||_0x2034a3['previousPosition']));}function _0x4af639(_0xb0123d){const _0x55b5ed=_0x2c695b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f7e06}),_0x45d718=_0x2c695b['mapper']['toViewPosition'](_0xb0123d);_0x57871a['data']['isSuggestion']&&_0x2c695b['writer']['addClass']('ck-suggestion-marker-'+_0x1f7e06+'-new',_0x55b5ed),_0x2e7bba['activeChange']==_0x57871a&&_0x2c695b['writer']['addClass']('ck-suggestion-marker--active',_0x55b5ed),_0x2c695b['writer']['insert'](_0x45d718,_0x55b5ed),_0x2c695b['mapper']['bindElementToMarker'](_0x55b5ed,_0x37bb63['markerName']);}_0x4bbd90||_0x446aff||!_0xab6827||_0x4af639(_0xab6827);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2c3950,_0x439264,_0x3be9dc)=>{const _0x549c37=_0x3be9dc['mapper']['markerNameToElements'](_0x439264['markerName']);if(_0x549c37){for(const _0x137fc3 of _0x549c37)(_0x137fc3['hasClass']('ck-suggestion-marker-split')||_0x137fc3['hasClass']('ck-suggestion-marker-merge'))&&(_0x3be9dc['mapper']['unbindElementFromMarkerName'](_0x137fc3,_0x439264['markerName']),_0x3be9dc['writer']['remove'](_0x137fc3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xfda9d9,_0x7bb30b,_0x448306)=>{const _0x23c583=_0x7bb30b['markerName']['split'](':')[0x1],_0x35ea2e=this['_getChangeFromId'](_0x23c583);if(!_0x35ea2e)return null;const _0x46e7ec='add'==_0x35ea2e['type']?'split':'merge';if(_0x448306['consumable']['test'](_0x7bb30b['markerRange'],_0xfda9d9['name']))for(const _0xc7601f of _0x7bb30b['markerRange']['getItems']()){if(!_0xc7601f['is']('element','softBreak'))continue;const _0x2d8d6a=_0x448306['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46e7ec}),_0x2e2494=_0x448306['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xc7601f));_0x35ea2e['data']['isSuggestion']&&_0x448306['writer']['addClass']('ck-suggestion-marker-'+_0x46e7ec+'-new',_0x2d8d6a),this['activeChange']==_0x35ea2e&&_0x448306['writer']['addClass']('ck-suggestion-marker--active',_0x2d8d6a),_0x448306['writer']['insert'](_0x2e2494,_0x2d8d6a),_0x448306['mapper']['bindElementToMarker'](_0x2d8d6a,_0x7bb30b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x26ee12=>{for(const _0x2c4a2e of this['editor']['model']['document']['getRootNames']()){const _0x225c8a=this['editor']['model']['document']['getRoot'](_0x2c4a2e),_0x500673=this['editor']['editing']['view']['document']['getRoot'](_0x2c4a2e);if(_0x500673){const _0x4ffec2=_0x225c8a['getAttribute']('revisionHistoryAttachChange');if(_0x26ee12['removeAttribute']('data-change-id',_0x500673),_0x26ee12['removeClass']('ck-revision-history-root-add',_0x500673),_0x26ee12['removeClass']('ck-revision-history-root-remove',_0x500673),_0x26ee12['removeClass']('ck-revision-history-root--active',_0x500673),_0x4ffec2){const _0x173a02=this['_getChangeFromId'](_0x4ffec2);if(!_0x173a02)return null;_0x26ee12['setAttribute']('data-change-id',_0x4ffec2,_0x500673),_0x26ee12['addClass']('ck-revision-history-root-'+_0x173a02['type'],_0x500673),this['activeChange']==_0x173a02&&_0x26ee12['addClass']('ck-revision-history-root--active',_0x500673);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x35cc19=>'revision-comment:'+_0x35cc19,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x44fe31=>'revision-suggestion:'+_0x44fe31,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x201b61=>({'name':'suggestion:'+_0x201b61,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x58328c=>{const _0x5e4523=_0x58328c['markerName']['split'](':')[0x1];return'insertion'!=_0x5e4523&&'deletion'!=_0x5e4523?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5e4523]};}}),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',(_0x4ea0aa,_0x23dca4,_0x5a4fe9)=>{const _0x21a272=_0x5a4fe9['mapper']['markerNameToElements'](_0x23dca4['markerName']);if(_0x21a272){for(const _0x1df92a of _0x21a272)_0x1df92a['is']('uiElement')&&(_0x5a4fe9['mapper']['unbindElementFromMarkerName'](_0x1df92a,_0x23dca4['markerName']),_0x5a4fe9['writer']['remove'](_0x1df92a));}},{'priority':'high'});}['_getChangeFromId'](_0x21a020){return this['_changeIdToChange']['get'](_0x21a020);}['_getViewForChange'](_0x162039){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x162039),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xcb9e4e,_0x116bab,_0x5b56b7,_0x27be9f)=>{_0x27be9f&&this['_balloon']['remove'](_0x27be9f),_0x5b56b7&&(this['_balloon']['add']({'view':_0x5b56b7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2ec503=this['editor']['editing'],_0x1dfc69=this['_getChangeFromId'](_0x5b56b7['changeId']);let _0x2bf643;if(_0x1dfc69['data']['isOnRoot']){const _0x20a385=_0x2ec503['view']['getDomRoot'](_0x1dfc69['rootName']);_0x2bf643=Array['from'](_0x20a385['getClientRects']());}else{const _0x1c093b=this['editor']['model']['markers']['get']('revision:'+_0x5b56b7['changeId']);_0x2bf643=Array['from'](_0x2ec503['mapper']['markerNameToElements'](_0x1c093b['name']))['map'](_0x2f22ae=>_0x2ec503['view']['domConverter']['mapViewToDom'](_0x2f22ae))['map'](_0x2cf499=>Array['from'](_0x2cf499['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2bf643[0x0];return _0x2bf643['find'](_0x52b2bc=>_0x52b2bc['top']-0x3<=this['_activeViewTarget']['y']&&_0x52b2bc['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x52b2bc['left']-0x3<=this['_activeViewTarget']['x']&&_0x52b2bc['right']+0x3>=this['_activeViewTarget']['x'])||_0x2bf643[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x32cad9,_0x1d5587,_0x13909d,_0x69ab7f)=>{this['activeView']=_0x13909d?this['_getViewForChange'](_0x13909d):null,this['editor']['model']['change'](()=>{const _0x4d9a5b=this['editor']['editing'];_0x69ab7f&&(_0x69ab7f['data']['isOnRoot']?_0x4d9a5b['view']['change'](_0x5eb804=>{_0x5eb804['removeClass']('ck-revision-history-root--active',_0x4d9a5b['view']['document']['getRoot'](_0x69ab7f['rootName']));}):_0x4d9a5b['reconvertMarker']('revision:'+_0x69ab7f['id'])),_0x13909d&&(_0x13909d['data']['isOnRoot']?_0x4d9a5b['view']['change'](_0x29699a=>{_0x29699a['addClass']('ck-revision-history-root--active',_0x4d9a5b['view']['document']['getRoot'](_0x13909d['rootName']));}):_0x4d9a5b['reconvertMarker']('revision:'+_0x13909d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3bf402,_0x28408b)=>{if(this['activeChange'])return;const _0x215713=this['_findChangeIdFromDomTarget'](_0x28408b['target']),_0x5104a8=this['_changeIdToChange']['get'](_0x215713);_0x5104a8?(this['_activeViewTarget']={'x':_0x28408b['domEvent']['x'],'y':_0x28408b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5104a8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x19efbb,_0x22f7de)=>{const _0x5acfd0=this['_findChangeIdFromDomTarget'](_0x22f7de['target']),_0x2d20bc=this['_changeIdToChange']['get'](_0x5acfd0);_0x2d20bc?(this['_activeViewTarget']={'x':_0x22f7de['domEvent']['x'],'y':_0x22f7de['domEvent']['y']},_0x2d20bc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d20bc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4910ab){do{const _0x42d2c8=_0x4910ab['getAttribute']('data-change-id');if(_0x42d2c8)return _0x42d2c8;_0x4910ab=_0x4910ab['parent'];}while(_0x4910ab);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x180317=>{for(const _0x3cea75 of this['editor']['model']['markers'])_0x180317['removeMarker'](_0x3cea75);});}}function X(_0x509306,_0x259d3a){return(_0x487d5c,_0x3e7899,_0x5c364a)=>{if(!_0x5c364a['consumable']['test'](_0x3e7899['markerRange'],_0x487d5c['name']))return;const _0x1b6f90=_0x3e7899['markerRange']['getWalker'](),_0x3f1cfd=_0x3e7899['markerRange']['start'],_0x20bdad=_0x509306['model']['schema'];let _0x3a234d=null,_0x3d5104=null,_0x474ef4=!0x1,_0x250942=!0x1;for(const _0x448fdf of _0x1b6f90){const _0x108534=_0x448fdf['item'];_0x474ef4=_0x474ef4||_0x20bdad['isContent'](_0x108534);const _0x322801=_0x5c364a['mapper']['toViewElement'](_0x108534);if(_0x322801&&_0x322801['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x448fdf['type']&&(_0x20bdad['isBlock'](_0x108534)&&!_0x20bdad['isLimit'](_0x108534)&&(_0x108534['nextSibling']||_0x3f1cfd['isAtEnd']?_0x3a234d&&_0x3a234d['parent']==_0x108534||(_0x3a234d=_0x108534,_0x16a8ac(_0x448fdf['previousPosition']),_0x250942=!0x0):_0x3d5104=_0x3d5104||_0x448fdf['previousPosition']));}function _0x16a8ac(_0x24050c){const _0x35fa6f=_0x5c364a['mapper']['toViewPosition'](_0x24050c),_0xe30dc5=_0x5c364a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x259d3a});_0x5c364a['writer']['insert'](_0x35fa6f,_0xe30dc5),_0x5c364a['mapper']['bindElementToMarker'](_0xe30dc5,_0x3e7899['markerName']);}_0x474ef4||_0x250942||!_0x3d5104||_0x16a8ac(_0x3d5104);};}class wt extends _0xcd5189{constructor(_0x512956){super(_0x512956);const _0x2c7a07=_0x512956['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x2c7a07,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2c7a07,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x12cbd6=this['editor'],_0x17b24d=_0x12cbd6['plugins']['get'](m),_0x318894=_0x17b24d['isReady']?_0x17b24d['diff']['newRevisionId']:null;_0x12cbd6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x318894);}['refresh'](){const {isReady:_0x38cce3,isEnabled:_0x372efe,repository:_0x247136,diff:_0x31bc1d}=this['editor']['plugins']['get'](m),_0x2c4d96=_0x31bc1d&&_0x247136['getLaterVisibleRevision'](_0x31bc1d['newRevisionId']);this['isEnabled']=_0x38cce3&&_0x372efe&&Boolean(_0x2c4d96);}}class pt extends _0xcd5189{['_step'];constructor(_0x405b22,{direction:_0x5ba27f}){super(_0x405b22);const _0x3e9027=_0x405b22['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x5ba27f?0x1:-0x1,this['listenTo'](_0x3e9027,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3e9027,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3e9027,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x25a7e0=this['editor'],_0x11bbce=_0x25a7e0['plugins']['get'](m),{isNavigationMode:_0x318c72,currentChangeNumber:_0x11e01f}=_0x11bbce;let _0x3aa330;if(_0x11bbce['activeChange']=_0x318c72?_0x11bbce['diff']['changes']['get'](_0x11e01f+this['_step']):_0x11bbce['diff']['changes']['first'],_0x11bbce['activeChange']['data']['isOnRoot'])_0x3aa330=_0x25a7e0['editing']['view']['getDomRoot'](_0x11bbce['activeChange']['rootName']);else{const _0x4b9aa4=_0x25a7e0['model']['markers']['get']('revision:'+_0x11bbce['activeChange']['id']);_0x3aa330=_0x3d7f8a(_0x25a7e0['editing'],_0x4b9aa4);}_0x44fa1a({'target':_0x3aa330,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4dc0a6,currentChangeNumber:_0x30dfbf,numberOfChanges:_0x3cab6a,isReady:_0x1e0f3c,isEnabled:_0x4fa8c8}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4fa8c8&&_0x1e0f3c&&_0x3cab6a)&&(!_0x4dc0a6||(0x1===this['_step']?_0x30dfbf<_0x3cab6a-0x1:_0x30dfbf>0x0));}}class _i extends _0xe6f994{constructor(_0x54c069){super(_0x54c069);const _0x2790ce=this['bindTemplate'],_0x27df9a=new _0x2f1c51(_0x54c069),_0x736dfa=new _0x2f1c51(_0x54c069);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',(_0xbd3771,_0x886328)=>_0xbd3771&&_0x886328>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3875d8,_0xd7189c,_0x3e075b,_0xb8ae85)=>{if(!_0x3875d8)return g(_0x54c069,'Loading...');if(!_0x3e075b)return g(_0x54c069,'No\x20changes');const _0x26ddde=g(_0x54c069,'NUMBER_OF_CHANGES',_0x3e075b);return _0xb8ae85?g(_0x54c069,'X_OF_Y_CHANGES',[_0xd7189c+0x1,_0x3e075b]):_0x26ddde;}),_0x27df9a['set']({'label':g(_0x54c069,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x52cd02}),_0x736dfa['set']({'label':g(_0x54c069,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1c6260}),_0x27df9a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x736dfa['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x27df9a['on']('execute',()=>this['fire']('execute','backward')),_0x736dfa['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',_0x2790ce['if']('_isStatusLabelVisible','ck-hidden',_0x663327=>!_0x663327)]},'children':[{'text':_0x2790ce['to']('isNavigationMode',_0x40ffc5=>_0x40ffc5?g(_0x54c069,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x54c069,'Total')+':\x20')}]},{'text':_0x2790ce['to']('_statusText')}]},new _0x329cae(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x27df9a,_0x736dfa]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x2ec88b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x138816=this['editor']['editing']['view'];_0x138816['change'](_0x17abcc=>{for(const _0x28238d of _0x138816['document']['roots'])_0x17abcc['addClass'](ce,_0x28238d);});}['hide'](){const _0x563d2e=this['editor']['editing']['view'];_0x563d2e['change'](_0x56595e=>{for(const _0x56d211 of _0x563d2e['document']['roots'])_0x56595e['removeClass'](ce,_0x56d211);});}}class R extends _0x2ec88b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x19d541=this['editor'],_0x58b576=_0x19d541['plugins']['get'](m),_0x107d34=_0x19d541['plugins']['get'](le);_0x19d541['ui']['componentFactory']['add']('exitToEditing',_0x3e0ad3=>{const _0x395e50=new _0x2f1c51(_0x3e0ad3);return _0x395e50['set']({'label':g(_0x3e0ad3,'Back\x20to\x20editing'),'icon':_0x51d572,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x395e50,'execute',()=>{_0x19d541['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x395e50;}),_0x19d541['ui']['componentFactory']['add']('restoreRevision',_0xd7b2ab=>{const _0x4e78ca=new _0x2f1c51(_0xd7b2ab);return _0x4e78ca['set']({'label':g(_0xd7b2ab,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e78ca['bind']('isEnabled')['to'](_0x19d541['commands']['get']('restoreRevision')),this['listenTo'](_0x4e78ca,'execute',()=>_0x19d541['execute']('restoreRevision')),_0x4e78ca;}),_0x19d541['ui']['componentFactory']['add']('changesNavigation',_0x5dd718=>{const _0x15cdcd=new _i(_0x5dd718),_0x1c31d4=_0x19d541['commands']['get']('showPreviousChange'),_0x52dce4=_0x19d541['commands']['get']('showNextChange');return _0x15cdcd['bind']('isBackwardNavigationEnabled')['to'](_0x1c31d4,'isEnabled'),_0x15cdcd['bind']('isForwardNavigationEnabled')['to'](_0x52dce4,'isEnabled'),_0x15cdcd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x58b576),this['listenTo'](_0x15cdcd,'execute',(_0x53abbb,_0x393c30)=>{_0x19d541['execute']('forward'===_0x393c30?'showNextChange':'showPreviousChange');}),_0x15cdcd;}),_0x107d34['show'](),_0x58b576['on']('change:isReady',(_0x5e8cc5,_0x67fa70,_0x507410)=>{_0x507410?_0x107d34['hide']():_0x107d34['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x3bd76d,_0x1ad2ce){super(_0x3bd76d,_0x1ad2ce);const _0x3ff171=this['bindTemplate'];this['set']({'label':g(_0x3bd76d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x3bd76d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3ff171['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 _0x25f28d=this['fieldView']['element'];this['_tooltipString']=_0x25f28d['scrollWidth']>_0x25f28d['clientWidth']&&_0x25f28d['value']||'';}}class oi extends _0xe6f994{constructor(_0x1ac676,_0x40452d,_0x5abb07){super(_0x1ac676);const _0x17cc49=new _0x44385b();_0x17cc49['set']({'content':_0x3a3708,'viewBox':'0\x200\x2011\x2010'});const _0x51bd46=['ck','ck-revision-history-sidebar__revision-author'];_0x5abb07&&_0x51bd46['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1d2db2=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x1ac676,_0x5abb07?'Revision\x20creator':'Revision\x20author')},'children':[_0x17cc49,_0x40452d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x51bd46},'children':_0x1d2db2});}}function ni(_0x35179a,_0x249be0){const _0x3e9dd6=_0x35179a['bindTemplate'],_0xf93d72=_0x35179a['locale'],_0x4cf2b4=_0x2abc07(_0xf93d72);_0x4cf2b4['panelPosition']='sw';const _0x21d296=function(_0x1b105d,_0x1dd368){const _0x359ec9=function(_0x3cebdf,_0x1c7184){const _0x49a4cd=_0x3cebdf['locale'],_0x19c5a2={'Compare\x20against\x20selected':g(_0x49a4cd,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x49a4cd,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x49a4cd,'Restore\x20this\x20revision')};return _0x1c7184['map'](_0x40c28a=>{const _0x218fd6=_0x19c5a2[_0x40c28a['name']];return _0x218fd6&&_0x218fd6!==_0x40c28a['name']&&(_0x40c28a['name']=_0x218fd6),_0x40c28a;});}(_0x1b105d,_0x1dd368),_0xda6426=new _0x331cab();for(const _0x238abc of _0x359ec9){const _0x1e307e={'type':'button','model':new to({'label':_0x238abc['name'],'class':_0x238abc['class'],'withText':!0x0,'role':'menuitem','_action':_0x238abc['action']})};_0x1e307e['model']['bind']('isEnabled')['to'](_0x1b105d,'isActionsDropdownOpen',_0x32304d=>'function'!=typeof _0x238abc['isEnabled']||(!_0x32304d||_0x238abc['isEnabled'](_0x1b105d))),_0xda6426['add'](_0x1e307e);}return _0xda6426;}(_0x35179a,_0x249be0);return _0x35179a['bind']('isActionsDropdownOpen')['to'](_0x4cf2b4,'isOpen'),_0x4cf2b4['buttonView']['set']({'label':g(_0xf93d72,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x370fc}),_0x4cf2b4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e9dd6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3e9dd6['to'](_0x447bdc=>_0x447bdc['stopPropagation']())}}),_0x4cf2b4['on']('execute',_0x33ce0b=>{_0x35179a['isReady']&&'function'==typeof _0x33ce0b['source']['_action']&&_0x33ce0b['source']['_action'](_0x35179a);}),_0x55a4f7(_0x4cf2b4,_0x21d296,{'role':'menu'}),_0x4cf2b4['listenTo'](_0x35179a,'change:isActionsDropdownOpen',(_0x1ceb48,_0xe1a642,_0x2090a4)=>{if(_0x2090a4)for(const _0x4da5a1 of _0x4cf2b4['listView']['items']){const _0x3f6c9f=_0x4da5a1['children']['first'],_0x348c9d=_0x249be0['find'](_0x4c8657=>_0x4c8657['action']===_0x3f6c9f['_action'])['isVisible'];_0x4da5a1['isVisible']=void 0x0===_0x348c9d||_0x348c9d(_0x35179a);}}),_0x4cf2b4;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x520bf4,uid as _0x59025e,Collection as _0x21b12a,logWarning as _0x54c5fa,FocusTracker as _0x172a8c,KeystrokeHandler as _0x5f3d77,scrollViewportToShowTarget as _0x49b118,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x522443}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xf1f293,set as _0x27b088,unset as _0x56c087,isEqual as _0x5c4c3d}from'es-toolkit/compat';import{Plugin as _0x5eed52,PendingActions as _0x917bfc,Command as _0x58bd2b,ElementApiMixin as _0x1fc20d,Editor as _0x4fb190}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xb4be0f,getMarkerDomElement as _0x11c27b,ConfirmMixin as ti,sanitizeEditorConfig as _0x2c08e2}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x582581,ViewAttributeElement as _0x542fea,ViewEmptyElement as _0x25ef1b,ViewRawElement as _0xd85fc,ViewUIElement as _0x38a648,ViewDocumentFragment as _0x13f23c,ViewText as _0xa84ac0,ViewElement as _0x176410,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x13b80c,IconChevronUp as _0x201f6a,IconChevronDown as _0x4729af,IconUndo as _0x1fd945,IconUser as _0x3182c2,IconThreeVerticalDots as _0x241e6f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x18d3b9,submitHandler as _0xed5650,LabeledFieldView as _0x54c465,createLabeledInputText as _0x244aec,createDropdown as _0x369e9a,ListView as _0x13c811,ListItemView as _0x37e094,ButtonView as te,MenuBarMenuView as _0x3d3ac6,MenuBarMenuListView as _0x1f9cb5,MenuBarMenuListItemView as _0x277e82,MenuBarMenuListItemButtonView as _0x1bb789,ContextualBalloon as _0x251487,ToolbarSeparatorView as _0x83d1b5,IconView as _0x17b453,addListToDropdown as _0x436d94,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 _0x59e3d6}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x520bf4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4ca95f){super(),this['id']=_0x4ca95f['id']||_0x59025e(),this['creator']=_0x4ca95f['creator']||null,this['authors']=_0x4ca95f['authors']||[],this['diffData']=_0x4ca95f['diffData']||null,this['toVersion']=_0x4ca95f['toVersion']||0x0,this['fromVersion']=_0x4ca95f['fromVersion']||0x0,this['set']('name',_0x4ca95f['name']||''),this['set']('createdAt',_0x4ca95f['createdAt']||new Date()),this['set']('attributes',_0x4ca95f['attributes']||{});}['setName'](_0x5b9cc2){this['_update']({'name':_0x5b9cc2});}['setAttribute'](_0xf8c11d,_0x252048){const _0xa66e92=_0xf1f293(this['attributes']);_0x27b088(_0xa66e92,_0xf8c11d,_0x252048),this['_update']({'attributes':_0xa66e92});}['removeAttribute'](_0x4c6b93){const _0x42b513=_0xf1f293(this['attributes']);_0x56c087(_0x42b513,_0x4c6b93),this['_update']({'attributes':_0x42b513});}['_update'](_0x3987c3,_0x4a594d=!0x1){let _0x497463=!0x1;const _0x3aab1c={'id':this['id']},_0x3a18a8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5eddbb of _0x3a18a8){const _0x5b170f=_0x3987c3[_0x5eddbb];void 0x0!==_0x5b170f&&_0x5b170f!==this[_0x5eddbb]&&(this[_0x5eddbb]=_0x5b170f,_0x3aab1c[_0x5eddbb]=_0x5b170f,_0x497463=!0x0);}_0x497463&&(_0x3aab1c['authors']&&(_0x3aab1c['authorsIds']=_0x3aab1c['authors']['map'](_0x3e9441=>_0x3e9441['id']),delete _0x3aab1c['authors']),this['fire']('_update',_0x3aab1c,_0x4a594d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x47bf55=>_0x47bf55['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5eed52{['_revisions'];static get['requires'](){return[_0xb4be0f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x99cb02){super(_0x99cb02),this['_revisions']=new _0x21b12a();}['afterInit'](){!async function(_0x31c3de){const _0x14e3e6=_0x4b9dbe([0x63,0x56,0x32,0x77,0x45,0x6b,0x37,0x48,0x61,0x6a,0x44,0x53,0x76,0x58,0x6e,0x7a,0x33,0x36,0x4b,0x31,0x41,0x78,0x6d,0x55,0x49,0x38,0x4e,0x4f,0x5a,0x65,0x75,0x6f,0x70,0x64,0x79,0x72,0x42,0x71,0x67,0x74,0x68,0x51,0x66,0x30,0x4c,0x50,0x35,0x52,0x6c,0x39,0x4d,0x69,0x73,0x54,0x59,0x4a,0x57,0x34,0x47,0x43,0x62,0x46]),_0x1eb29e=0xeb829,_0x42b7be=0xb3968b9,_0x3ac754=0xb3e01d1^_0x42b7be,_0x2f6e4d=window[_0x4b9dbe([0x44,0x61,0x74,0x65])][_0x4b9dbe([0x6e,0x6f,0x77])](),_0x134b14=_0x31c3de[_0x4b9dbe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbccae1=new window[(_0x4b9dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bdf29=>{_0x134b14[_0x4b9dbe([0x6f,0x6e,0x63,0x65])](_0x4b9dbe([0x72,0x65,0x61,0x64,0x79]),_0x3bdf29);}),_0x1e6974={[_0x4b9dbe([0x6b,0x74,0x79])]:_0x4b9dbe([0x45,0x43]),[_0x4b9dbe([0x75,0x73,0x65])]:_0x4b9dbe([0x73,0x69,0x67]),[_0x4b9dbe([0x63,0x72,0x76])]:_0x4b9dbe([0x50,0x2d,0x32,0x35,0x36]),[_0x4b9dbe([0x78])]:_0x4b9dbe([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]),[_0x4b9dbe([0x79])]:_0x4b9dbe([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]),[_0x4b9dbe([0x61,0x6c,0x67])]:_0x4b9dbe([0x45,0x53,0x32,0x35,0x36])},_0x152696=_0x134b14[_0x4b9dbe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b9dbe([0x67,0x65,0x74])](_0x4b9dbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d4aa9(){let _0x559475,_0x243ec1=null,_0xaee45d=null;try{if(_0x152696==_0x4b9dbe([0x47,0x50,0x4c]))return _0x4b9dbe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x559475=_0xe04d0a(),!_0x559475)return _0x4b9dbe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x559475[_0x4b9dbe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xaee45d=_0x3bb6a9(_0x559475[_0x4b9dbe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x559475[_0x4b9dbe([0x6a,0x74,0x69])])),await _0x2d36b1()?_0x1eb725()?_0x3c3504()?_0x4b9dbe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x101d94()?(_0x559475[_0x4b9dbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b9dbe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x243ec1=_0x4a8fe3(_0x4b9dbe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x559475[_0x4b9dbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b9dbe([0x74,0x72,0x69,0x61,0x6c])&&(_0x243ec1=_0x4a8fe3(_0x4b9dbe([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x235a36()):_0x4b9dbe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b9dbe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b9dbe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b9dbe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c3504(){const _0x2869e9=[_0x4b9dbe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b9dbe([0x74,0x72,0x69,0x61,0x6c])][_0x4b9dbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x559475[_0x4b9dbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f6e4d/0x3e8:0xe10*_0x3ac754;return _0x559475[_0x4b9dbe([0x65,0x78,0x70])]<_0x2869e9;}function _0x1eb725(){const _0x55637e=_0x559475[_0x4b9dbe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x55637e)return!0x1;if(_0x55637e[_0x4b9dbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9dbe([0x2a])))return!0x0;if(_0x55637e[_0x4b9dbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9dbe([0x52,0x48])))return!0x0;if(_0x55637e[_0x4b9dbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9dbe([0x52,0x52,0x48]))){if(_0x3d889c())return!0x0;if(_0x37c928()||_0x720505())return!0x0;}return!0x1;}function _0x101d94(){const _0x2a00ee=_0x559475[_0x4b9dbe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a00ee||0x0==_0x2a00ee[_0x4b9dbe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3aeef5}=new URL(window[_0x4b9dbe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a00ee[_0x4b9dbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aeef5))return!0x0;const _0x202d07=_0x3aeef5[_0x4b9dbe([0x73,0x70,0x6c,0x69,0x74])](_0x4b9dbe([0x2e]));return _0x2a00ee[_0x4b9dbe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bdb5d=>_0x5bdb5d[_0x4b9dbe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9dbe([0x2a])))[_0x4b9dbe([0x6d,0x61,0x70])](_0x172506=>_0x172506[_0x4b9dbe([0x73,0x70,0x6c,0x69,0x74])](_0x4b9dbe([0x2e])))[_0x4b9dbe([0x73,0x6f,0x6d,0x65])](_0x2c0806=>_0x202d07[_0x4b9dbe([0x65,0x76,0x65,0x72,0x79])]((_0x31e08b,_0x501923)=>_0x2c0806[_0x501923]===_0x31e08b||_0x2c0806[_0x501923]===_0x4b9dbe([0x2a])));}function _0x235a36(){return _0x243ec1&&_0xaee45d?new window[(_0x4b9dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe85c9b,_0x38ebff)=>{_0x243ec1[_0x4b9dbe([0x74,0x68,0x65,0x6e])](_0xe85c9b,_0x38ebff),_0xaee45d[_0x4b9dbe([0x74,0x68,0x65,0x6e])](_0x1ee317=>{_0x1ee317!=_0x4b9dbe([0x56,0x61,0x6c,0x69,0x64])&&_0xe85c9b(_0x1ee317);},_0x38ebff);}):_0x243ec1||_0xaee45d||_0x4b9dbe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3bb6a9(_0x4505a1,_0x3bd6fc){return new window[(_0x4b9dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11ce2d=>{if(_0x4c5533())return _0x11ce2d(_0x4b9dbe([0x56,0x61,0x6c,0x69,0x64]));_0x344439(),_0x134b14[_0x4b9dbe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b9dbe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b16fd=!0x1;const _0x59316c=_0x59025e();function _0x2fe006(_0x441d36){return!!_0x441d36&&(typeof _0x441d36===_0x4b9dbe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x441d36===_0x4b9dbe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x441d36[_0x4b9dbe([0x74,0x68,0x65,0x6e])]===_0x4b9dbe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x441d36[_0x4b9dbe([0x63,0x61,0x74,0x63,0x68])]===_0x4b9dbe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e680f(_0x456508){_0x38c78a(_0x456508)[_0x4b9dbe([0x74,0x68,0x65,0x6e])](_0x15335d=>{if(!_0x15335d||_0x15335d[_0x4b9dbe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b9dbe([0x6f,0x6b]))return _0x4b9dbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e5ada(_0x6c1871(_0x59316c+_0x3bd6fc))!=_0x15335d[_0x4b9dbe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b9dbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b9dbe([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b9dbe([0x74,0x68,0x65,0x6e])](_0x20c02a=>(_0x1a3018(),_0x20c02a),()=>{const _0xdf56b9=_0x1a3cbc();return null==_0xdf56b9?(_0x1a3018(),_0x4b9dbe([0x56,0x61,0x6c,0x69,0x64])):_0x4b9dbe(_0x2f6e4d-_0xdf56b9>(0x2f35ecb9^_0x42b7be)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b9dbe([0x74,0x68,0x65,0x6e])](_0x11ce2d)[_0x4b9dbe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11ce2d(_0x4b9dbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7584f4=0xb0f8639^_0x42b7be;function _0x1a3018(){const _0x22b49d=_0x4b9dbe([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e5ada(_0x6c1871(_0x4505a1)),_0x3b9e0b=_0x415f70(_0x1e5ada(window[_0x4b9dbe([0x4d,0x61,0x74,0x68])][_0x4b9dbe([0x63,0x65,0x69,0x6c])](_0x2f6e4d/_0x7584f4)));window[_0x4b9dbe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b9dbe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22b49d,_0x3b9e0b);}function _0x1a3cbc(){const _0x4dabd7=_0x4b9dbe([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e5ada(_0x6c1871(_0x4505a1)),_0x52f1b0=window[_0x4b9dbe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b9dbe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dabd7);return _0x52f1b0?window[_0x4b9dbe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x415f70(_0x52f1b0),0x10)*_0x7584f4:null;}function _0x38c78a(_0x142e52){return new window[(_0x4b9dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d12e3,_0x1711cf)=>{_0x142e52[_0x4b9dbe([0x74,0x68,0x65,0x6e])](_0x2d12e3,_0x1711cf),window[_0x4b9dbe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1711cf,0xb38bc79^_0x42b7be);});}}_0x134b14[_0x4b9dbe([0x6f,0x6e])](_0x4b9dbe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf4bbc2,_0x1e310b)=>{if(_0x1e310b[0x0]!=_0x4505a1)return _0x11ce2d(_0x4b9dbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e310b[0x1]={..._0x1e310b[0x1],[_0x4b9dbe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59316c};},{[_0x4b9dbe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b9dbe([0x68,0x69,0x67,0x68])}),_0x134b14[_0x4b9dbe([0x6f,0x6e])](_0x4b9dbe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bd9bc=>{_0x2fe006(_0x4bd9bc[_0x4b9dbe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b16fd=!0x0,_0x3e680f(_0x4bd9bc[_0x4b9dbe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b9dbe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b9dbe([0x6c,0x6f,0x77])}),_0xbccae1[_0x4b9dbe([0x74,0x68,0x65,0x6e])](()=>{_0x5b16fd||_0x11ce2d(_0x4b9dbe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c5533(){return _0x134b14[_0x4b9dbe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b9dbe([0x76,0x69,0x65,0x77])][_0x4b9dbe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b9dbe([0x61,0x75,0x74,0x6f]);}function _0x344439(){_0x134b14[_0x4b9dbe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b9dbe([0x76,0x69,0x65,0x77])][_0x4b9dbe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b9dbe([0x61,0x75,0x74,0x6f]);}}function _0x4a8fe3(_0x4ee80d){const _0x2d9564=[new window[(_0x4b9dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x409ef5=>setTimeout(_0x409ef5,0xb305675^_0x42b7be)),_0xbccae1[_0x4b9dbe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b9dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cad2b=>{const _0x40409c=0xb3968be^_0x42b7be,_0x197cab=_0x31c3de[_0x4b9dbe([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x124bd6(){_0x197cab[_0x4b9dbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x40409c&&_0x4cad2b();}_0x124bd6(),_0x197cab[_0x4b9dbe([0x6f,0x6e])](_0x4b9dbe([0x61,0x64,0x64]),_0x124bd6);})),new window[(_0x4b9dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49bb3d=>{function _0x26e3c7(){for(const _0x3f81b5 in window)if(window[_0x4b9dbe([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4b9dbe([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3f81b5))&&window[_0x3f81b5]==_0x1eb29e)return _0x49bb3d();_0x134b14[_0x4b9dbe([0x73,0x74,0x61,0x74,0x65])]!=_0x4b9dbe([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4b9dbe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26e3c7,0xb397b31^_0x42b7be);}_0x347b07(_0x4b9dbe([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x26e3c7();})];return window[_0x4b9dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b9dbe([0x72,0x61,0x63,0x65])](_0x2d9564)[_0x4b9dbe([0x74,0x68,0x65,0x6e])](()=>_0x4ee80d);}async function _0x139b3a(){if(await _0xbccae1,_0x347b07(_0x4b9dbe([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x449532=_0x31c3de[_0x4b9dbe([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4e3142=_0x31c3de[_0x4b9dbe([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])](_0x449532[_0x4b9dbe([0x69,0x64])]),_0x3e5b63=_0x2ea192(_0x4b9dbe([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3e5b63[_0x4b9dbe([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x449532['id'],_0x4e3142?_0x4e3142['id']:null,!0x0),_0x3e5b63[_0x4b9dbe([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b9dbe([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3e5b63[_0x4b9dbe([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3e5b63[_0x4b9dbe([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x340a81,void(_0x3e5b63[_0x4b9dbe([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x340a81);}if(_0x347b07(_0x4b9dbe([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3a590a=_0x2ea192(_0x4b9dbe([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3a590a[_0x4b9dbe([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b9dbe([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a590a[_0x4b9dbe([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a590a[_0x4b9dbe([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x340a81,_0x3a590a[_0x4b9dbe([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x340a81;}_0x134b14[_0x4b9dbe([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b9dbe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x340a81,_0x134b14[_0x4b9dbe([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b9dbe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x340a81,_0x134b14[_0x4b9dbe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b9dbe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d889c(){return _0x347b07(_0x4b9dbe([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2ea192(_0x4b9dbe([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b9dbe([0x73,0x74,0x61,0x74,0x65])]==_0x4b9dbe([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x37c928(){return _0x347b07(_0x4b9dbe([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 _0x720505(){return _0x347b07(_0x4b9dbe([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x50ad07(_0x193db3){const _0x5cab9f=_0x2a4574();_0x134b14[_0x5cab9f]=_0x4b9dbe([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])+_0x193db3,_0x193db3[_0x4b9dbe([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4b9dbe([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2a4574()]=_0x1eb29e),_0x193db3!=_0x4b9dbe([0x56,0x61,0x6c,0x69,0x64])&&_0x139b3a();}function _0x2a4574(){const _0x514ae6=window[_0x4b9dbe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b9dbe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b9dbe([0x6e,0x6f,0x77])]())[_0x4b9dbe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b9dbe([0x2e]),'');let _0x1deb6d=_0x4b9dbe([0x63]);for(let _0x5eca59=0x0;_0x5eca59<_0x514ae6[_0x4b9dbe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5eca59+=0x2){let _0x3616b4=window[_0x4b9dbe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514ae6[_0x4b9dbe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5eca59,_0x5eca59+0x2));_0x3616b4>=_0x14e3e6[_0x4b9dbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3616b4-=_0x14e3e6[_0x4b9dbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1deb6d+=_0x14e3e6[_0x3616b4];}return _0x1deb6d;}function _0xe04d0a(){const _0x4a65a8=_0x152696[_0x4b9dbe([0x73,0x70,0x6c,0x69,0x74])](_0x4b9dbe([0x2e]));if(0x3!=_0x4a65a8[_0x4b9dbe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x313136(_0x4a65a8[0x1]);function _0x313136(_0x5530f8){const _0x42a30c=_0x490413(_0x5530f8);return _0x42a30c&&_0xedbb8a()?_0x42a30c:null;function _0xedbb8a(){const _0x565ae7=_0x42a30c[_0x4b9dbe([0x6a,0x74,0x69])],_0x1919ea=window[_0x4b9dbe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x565ae7[_0x4b9dbe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x565ae7[_0x4b9dbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e0829={..._0x42a30c,[_0x4b9dbe([0x6a,0x74,0x69])]:_0x565ae7[_0x4b9dbe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x565ae7[_0x4b9dbe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e0829[_0x4b9dbe([0x76,0x63])],_0x6c1871(_0x2e0829)==_0x1919ea;}}}async function _0x2d36b1(){let _0x3dc8ba=!0x0;try{const _0x2d05d1=_0x152696[_0x4b9dbe([0x73,0x70,0x6c,0x69,0x74])](_0x4b9dbe([0x2e])),[_0xc0d603,_0x550710,_0x2c5eea]=_0x2d05d1;return _0x5f3012(_0xc0d603),await _0x15fcee(_0xc0d603,_0x550710,_0x2c5eea),_0x3dc8ba;}catch{return!0x1;}function _0x5f3012(_0x317ca4){const _0x4ce788=_0x490413(_0x317ca4);_0x4ce788&&_0x4ce788[_0x4b9dbe([0x61,0x6c,0x67])]==_0x4b9dbe([0x45,0x53,0x32,0x35,0x36])||(_0x3dc8ba=!0x1);}async function _0x15fcee(_0x4e5c15,_0x4efe68,_0x5c1868){const _0x412b3b=window[_0x4b9dbe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b9dbe([0x66,0x72,0x6f,0x6d])](_0x48f3c6(_0x5c1868),_0x58d26e=>_0x58d26e[_0x4b9dbe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xba8fa9=new window[(_0x4b9dbe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b9dbe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e5c15+_0x4b9dbe([0x2e])+_0x4efe68),_0xd5078d=window[_0x4b9dbe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b9dbe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd5078d)return;const _0x3ead33=await _0xd5078d[_0x4b9dbe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b9dbe([0x6a,0x77,0x6b]),_0x1e6974,{[_0x4b9dbe([0x6e,0x61,0x6d,0x65])]:_0x4b9dbe([0x45,0x43,0x44,0x53,0x41]),[_0x4b9dbe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b9dbe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b9dbe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd5078d[_0x4b9dbe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b9dbe([0x6e,0x61,0x6d,0x65])]:_0x4b9dbe([0x45,0x43,0x44,0x53,0x41]),[_0x4b9dbe([0x68,0x61,0x73,0x68])]:{[_0x4b9dbe([0x6e,0x61,0x6d,0x65])]:_0x4b9dbe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ead33,_0x412b3b,_0xba8fa9)||(_0x3dc8ba=!0x1);}}function _0x490413(_0x2c9f88){return _0x2c9f88[_0x4b9dbe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b9dbe([0x65,0x79]))?JSON[_0x4b9dbe([0x70,0x61,0x72,0x73,0x65])](_0x48f3c6(_0x2c9f88)):null;}function _0x48f3c6(_0x3f1832){return window[_0x4b9dbe([0x61,0x74,0x6f,0x62])](_0x3f1832[_0x4b9dbe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b9dbe([0x2b]))[_0x4b9dbe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b9dbe([0x2f])));}function _0x6c1871(_0x40e71f){let _0x1d373d=0x1505;function _0x41a52c(_0x32fe2a){for(let _0x232751=0x0;_0x232751<_0x32fe2a[_0x4b9dbe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x232751++){const _0x101018=_0x32fe2a[_0x4b9dbe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x232751);_0x1d373d=(_0x1d373d<<0x5)+_0x1d373d+_0x101018,_0x1d373d&=_0x1d373d;}}function _0x2b6f01(_0x5be886){Array[_0x4b9dbe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5be886)?_0x5be886[_0x4b9dbe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b6f01):_0x5be886&&typeof _0x5be886==_0x4b9dbe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b9dbe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5be886)[_0x4b9dbe([0x73,0x6f,0x72,0x74])]()[_0x4b9dbe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7ca2d,_0x5a372a])=>{_0x41a52c(_0x7ca2d),_0x2b6f01(_0x5a372a);}):_0x41a52c(window[_0x4b9dbe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5be886));}return _0x2b6f01(_0x40e71f),_0x1d373d>>>0x0;}function _0x1e5ada(_0x580ece){return _0x580ece[_0x4b9dbe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b9dbe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b9dbe([0x30]));}function _0x415f70(_0x516c51){return _0x516c51[_0x4b9dbe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b9dbe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b9dbe([0x6a,0x6f,0x69,0x6e])]('');}function _0x347b07(_0x34056f){return _0x134b14[_0x4b9dbe([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b9dbe([0x68,0x61,0x73])](_0x34056f);}function _0x2ea192(_0x2e260c){return _0x134b14[_0x4b9dbe([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b9dbe([0x67,0x65,0x74])](_0x2e260c);}function _0x340a81(){}function _0x4b9dbe(_0x135952){return _0x135952['map'](_0xa03626=>String['fromCharCode'](_0xa03626))['join']('');}_0x50ad07(await _0x5d4aa9());}(this);}['createRevision'](_0xbef028){const _0x473e6e=this['editor']['plugins']['get']('Users');return new h({'id':_0xbef028['id'],'name':_0xbef028['name'],'creator':_0xbef028['creatorId']?_0x473e6e['getUser'](_0xbef028['creatorId']):null,'diffData':_0xbef028['diffData']||_0xbef028['data'],'authors':_0xbef028['authorsIds']['map'](_0x43e086=>_0x473e6e['getUser'](_0x43e086)),'createdAt':new Date(_0xbef028['createdAt']),'attributes':_0xbef028['attributes'],'fromVersion':_0xbef028['fromVersion'],'toVersion':_0xbef028['toVersion']});}['addRevision'](_0x3a52b9,_0x41e8b9=0x0){this['_revisions']['add'](_0x3a52b9,_0x41e8b9);}['getRevision'](_0x32d4c3){return this['_revisions']['get'](_0x32d4c3);}['getRevisions'](_0x4b3524={'toJSON':!0x1}){const _0x19f79c=Array['from'](this['_revisions']);return _0x19f79c['reverse'](),_0x4b3524['toJSON']?_0x19f79c['map'](_0x2a21d2=>_0x2a21d2['toJSON']()):_0x19f79c;}['getIndex'](_0x4e790e){return this['_revisions']['getIndex'](_0x4e790e);}['getEarlierVisibleRevision'](_0x338387){const [,_0x537d74]=this['getRevisionsIterator'](_0x338387,{'direction':'earlier'});return _0x537d74;}['getLaterVisibleRevision'](_0x1a55a3){const [,_0x342946]=this['getRevisionsIterator'](_0x1a55a3,{'direction':'later'});return _0x342946;}['getRevisionsInDiff'](_0x4665c1){const _0x25c1b3=[];for(const _0x2884eb of this['getRevisionsIterator'](_0x4665c1['newRevisionId']))if(_0x25c1b3['push'](_0x2884eb),_0x2884eb['id']===_0x4665c1['oldRevisionId'])break;return _0x25c1b3;}*['getRevisionsIterator'](_0x5ccc8f,{direction:_0x5aee2e='earlier',filter:_0x475720=()=>!0x0}={}){const _0x3d0279='earlier'===_0x5aee2e?0x1:-0x1;let _0x56d23d=this['_revisions']['get'](_0x5ccc8f),_0x46778f=this['getIndex'](_0x56d23d);for(yield _0x56d23d;_0x56d23d;){if(_0x46778f+=_0x3d0279,_0x56d23d=this['getRevision'](_0x46778f),!_0x56d23d)return;_0x475720(_0x56d23d)&&(yield _0x56d23d);}}}class V extends _0x5eed52{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x582581,'c'],[_0x542fea,'a'],[_0x25ef1b,'e'],[_0xd85fc,'r'],[_0x38a648,'u']]);['_typeCharToViewClass']=new Map([['c',_0x582581],['a',_0x542fea],['e',_0x25ef1b],['r',_0xd85fc],['u',_0x38a648]]);async['loadRevisionData'](_0x3cd53e,_0x5a15ba){if(_0x3cd53e['diffData']||!_0x5a15ba)return;const _0x551990=this['editor']['config']['get']('collaboration.channelId'),_0x4fe1a5=await _0x5a15ba['getRevision']({'channelId':_0x551990,'revisionId':_0x3cd53e['id']});_0x3cd53e['diffData']=_0x4fe1a5['diffData'];}['getRevisionDocumentData'](_0x39f097){const _0x3f9d0d={};for(const _0xac8bd2 in _0x39f097['diffData']){if(_0x39f097['diffData'][_0xac8bd2]['attachChange']&&!_0x39f097['diffData'][_0xac8bd2]['attachChange']['isAttached'])continue;const _0x585e50=this['_removeRevisionMarkers'](JSON['parse'](_0x39f097['diffData'][_0xac8bd2]['insertions'])),_0x43752c=this['editor']['editing']['view']['document'],_0x2fc810=new _0x13f23c(_0x43752c,_0x585e50['map'](_0x5950b3=>this['_getViewFromDiffObj'](_0x5950b3,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3f9d0d[_0xac8bd2]=this['editor']['data']['processor']['toData'](_0x2fc810),this['editor']['data']['processor']['useFillerType']('default');}return _0x3f9d0d;}['getRevisionRootsAttributes'](_0x24c197){const _0x32b72b={};for(const _0x539d0a in _0x24c197['diffData'])_0x24c197['diffData'][_0x539d0a]['attachChange']&&!_0x24c197['diffData'][_0x539d0a]['attachChange']['isAttached']||(_0x32b72b[_0x539d0a]=_0x24c197['diffData'][_0x539d0a]['attributesAfter']||{});return _0x32b72b;}['_getTypeCharForViewElement'](_0x2456a3){return this['_viewClassToTypeChar']['get'](_0x2456a3['constructor']);}['_getViewFromDiffObj'](_0xc32b0f,_0x152086){const _0xe828eb=this['editor']['editing']['view']['document'];if('string'==typeof _0xc32b0f)return new _0xa84ac0(_0xe828eb,_0xc32b0f);{let _0x3ce955,_0x7e385d;_0x7e385d='u'==_0xc32b0f['type']||'r'==_0xc32b0f['type']?[]:_0xc32b0f['children']['map'](_0x5a6da4=>this['_getViewFromDiffObj'](_0x5a6da4,_0x152086));const _0x3fe27b=this['_typeCharToViewClass']['get'](_0xc32b0f['type'])||_0x176410,_0x4aff5d=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3ce955=new _0x3fe27b(_0xe828eb,_0xc32b0f['name'],_0xc32b0f['attributes'],_0x7e385d),'u'==_0xc32b0f['type']&&_0xc32b0f['children'][0x0]){const _0x302ec1=_0xc32b0f['children'][0x0];if(_0x3ce955['render']=function(_0x38f3ff){const _0x5391a4=_0x38f3ff['createElement']('div');return _0x5391a4['innerHTML']=_0x302ec1,_0x5391a4['childNodes'][0x0];},_0x152086){const _0xb18d6e=new _0x13f23c(_0xe828eb);_0xb18d6e['_appendChild'](_0x3ce955);const _0x8fe2c7=Array['from'](_0x4aff5d['viewChildrenToDom'](_0xb18d6e,{'bind':!0x1})),_0x2b99ec=_0x4aff5d['domDocument']['createElement']('div');_0x2b99ec['append'](..._0x8fe2c7),_0x3ce955=Array['from'](_0x4aff5d['domChildrenToView'](_0x2b99ec))[0x0];}}else{if('r'==_0xc32b0f['type']&&_0xc32b0f['children'][0x0]){const _0x545152=_0xc32b0f['children'][0x0];if(_0x3ce955['render']=function(_0x49564c){_0x49564c['innerHTML']=_0x545152;},_0x152086){const _0x4d0f76=new _0x13f23c(_0xe828eb);_0x4d0f76['_appendChild'](_0x3ce955);const _0x52d09c=Array['from'](_0x4aff5d['viewChildrenToDom'](_0x4d0f76,{'bind':!0x1})),_0x5f5088=_0x4aff5d['domDocument']['createElement']('div');_0x5f5088['append'](..._0x52d09c);const _0x21d968=Array['from'](_0x4aff5d['domChildrenToView'](_0x5f5088));_0x21d968['length']>0x1?_0x3ce955['_appendChild'](_0x21d968):_0x3ce955=_0x21d968[0x0];}}}if(_0xc32b0f['customProperties']){for(const [_0x588330,_0x5b0204]of _0xc32b0f['customProperties'])_0x3ce955['_setCustomProperty'](_0x588330,_0x5b0204);}const _0x161bd1=void 0x0===_0xc32b0f['fillerOffset']?null:_0xc32b0f['fillerOffset'];return null!==_0x161bd1&&(_0x3ce955['getFillerOffset']=()=>_0x161bd1),_0x3ce955;}}['_makeModelFromViewString'](_0x36fd58){const _0x43e0aa=JSON['parse'](_0x36fd58),_0x4b1987=this['editor']['editing']['view']['document'],_0x374eb1=new _0x13f23c(_0x4b1987,_0x43e0aa['map'](_0x20f605=>this['_getViewFromDiffObj'](_0x20f605,!0x0)));return this['editor']['data']['toModel'](_0x374eb1);}['_removeRevisionMarkers'](_0x46923b){return(_0x46923b=_0x46923b['filter'](_0x461798=>!_0x461798['name']||'revision-start'!==_0x461798['name']&&'revision-end'!==_0x461798['name']))['forEach'](_0x3c602b=>{'string'!=typeof _0x3c602b&&(_0x3c602b['children']=this['_removeRevisionMarkers'](_0x3c602b['children']),_0x3c602b['attributes']=_0x3c602b['attributes']['filter'](_0x40b9d4=>!_0x40b9d4[0x0]['startsWith']('data-revision-')));}),_0x46923b;}}function g(_0x37713b,_0xef1df0,_0x3d5f5e){const t=_0x37713b['t'];switch(_0xef1df0){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'},_0x3d5f5e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3d5f5e);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 _0x5eed52{['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[_0xb4be0f,I,V,_0x917bfc];}constructor(_0x5d9929){super(_0x5d9929),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 _0x1940c0=_0x59025e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1940c0},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 _0x2d65ee=this['repository']['getRevision'](0x0),_0x304508=_0x2d65ee&&null===_0x2d65ee['creator']?_0x2d65ee:null;if(this['_continueCurrentRevision']=!!_0x304508&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3715e6=this['_source']['getCurrentRevisionId'](),_0xc7b2c1=this['repository']['getRevision'](_0x3715e6);if(_0xc7b2c1)this['_startingVersion']=_0xc7b2c1['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5acf96=this['_source']['history']['_operations']['find'](_0xa595bd=>!_0xa595bd['_isInit']),_0x580df3=_0x5acf96?_0x5acf96['baseVersion']:this['_source']['history']['version'];_0x2d65ee?(_0x2d65ee['toVersion']<_0x580df3&&_0x2d65ee['_update']({'toVersion':_0x580df3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x304508['id'],this['_startingVersion']=_0x304508['fromVersion']):(this['_startingVersion']=_0x2d65ee['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x580df3,this['_continueCurrentRevision']=!0x1);}}else _0x304508&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x304508['toVersion'],this['editor']['model']['document']['history']['version']),_0x304508['fromVersion']===_0x304508['toVersion']?(0x0!==_0x304508['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x304508['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x304508['id'],this['_startingVersion']=_0x304508['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',_0x29769c=>!_0x29769c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x393c67=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32c160;for(const _0x53dbf9 in _0x393c67){const _0x1b796b=_0x53dbf9,_0x1e271d=_0x393c67[_0x1b796b];if('revisionHistoryLicenseKeyValid'==_0x1e271d||'revisionHistoryLicenseKeyInvalid'==_0x1e271d||'revisionHistoryLicenseKeyExpired'==_0x1e271d||'revisionHistoryLicenseKeyDomainLimit'==_0x1e271d||'revisionHistoryLicenseKeyNotAllowed'==_0x1e271d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1e271d||'revisionHistoryLicenseKeyTrialLimit'==_0x1e271d||'revisionHistoryLicenseKeyUsageLimit'==_0x1e271d){delete _0x393c67[_0x1b796b],_0x32c160=_0x1e271d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x32c160&&_0x393c67['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x32c160&&_0x393c67['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x32c160&&_0x393c67['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x32c160&&_0x393c67['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x32c160&&_0x393c67['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x32c160&&_0x393c67['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x32c160&&_0x393c67['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x30491a=this['repository']['getRevision'](0x0),_0x54c291=await this['getRevisionDocumentData'](_0x30491a),_0x268895=await this['getRevisionRootsAttributes'](_0x30491a);this['_replaceEditorDataWithRevisionData'](_0x54c291,_0x268895);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x48bedc){this['_source']=_0x48bedc;}async['update'](){const _0x557df1=await this['_source']['getLatestVersion']();if(_0x557df1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e48ba=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x557df1});_0x4e48ba['authors']=_0x4e48ba['authorsIds']['map'](_0x4eeea9=>this['editor']['plugins']['get']('Users')['getUser'](_0x4eeea9)),this['currentRevision']['_update'](_0x4e48ba);}}async['saveRevision'](_0x36fa07={},_0x58f272=null){const _0x467aec=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x58f272>this['currentRevision']['toVersion']&&(_0x58f272=null),null===_0x58f272&&(_0x58f272=await this['_source']['getLatestVersion']());const _0x48b01f=this['_getFromVersion'](_0x58f272),_0x35e98b=this['buildRevisionData']({'from':_0x48b01f,'to':_0x58f272});if(this['currentRevision']['toVersion']<_0x58f272){const _0x4448e3=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x58f272,'to':_0x58f272});_0x4448e3['authors']=[],_0x4448e3['authorsIds']=[],_0x4448e3['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4448e3,!0x0),delete _0x4448e3['authors'],_0x467aec['push'](_0x4448e3);}_0x36fa07['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x36fa07['name']=_0x36fa07['name']||null,_0x36fa07['id']=_0x36fa07['id']||_0x59025e(),_0x36fa07={..._0x36fa07,..._0x35e98b};const _0x2b83c8=this['addRevisionData'](_0x36fa07);_0x467aec['push'](_0x36fa07);const _0x45ce18=this['repository']['getIndex'](_0x2b83c8);if(0x0!==_0x45ce18){const _0x475df1=this['repository']['getRevision'](_0x45ce18-0x1);if(_0x475df1['fromVersion']!==_0x58f272){const _0x48016f=this['_revisionDataBuilder']['getData'](_0x58f272,_0x475df1['toVersion']),_0x2d1084={'id':_0x475df1['id'],'diffData':_0x48016f['diffData'],'authorsIds':_0x48016f['authorsIds'],'authors':_0x48016f['authorsIds']['map'](_0x1ad952=>this['editor']['plugins']['get']('Users')['getUser'](_0x1ad952)),'fromVersion':_0x58f272};_0x475df1===this['currentRevision']&&(_0x2d1084['createdAt']=new Date(_0x36fa07['createdAt']['getTime']()+0xa)),_0x475df1['_update'](_0x2d1084,!0x0),delete _0x2d1084['authors'],_0x467aec['push'](_0x2d1084);}}if(this['adapter']){for(const _0x3ca92 of _0x467aec)this['_bufferUpdate'](_0x3ca92['id'],_0x3ca92,!0x0);this['sendBufferedUpdates']();}return _0x2b83c8;}['addRevisionData'](_0x264236){const _0x5cde51=this['repository']['createRevision'](_0x264236);return this['adapter']&&_0x5cde51['on']('_update',(_0x8802aa,_0x462c86,_0x53949e)=>{_0x53949e||(this['_bufferUpdate'](_0x462c86['id'],_0x462c86,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5cde51,this['_findInsertionIndex'](_0x5cde51)),_0x5cde51;}async['getRevisionDocumentData'](_0x5d1ed2){return await this['_utils']['loadRevisionData'](_0x5d1ed2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5d1ed2);}async['getRevisionRootsAttributes'](_0x58fe06){return await this['_utils']['loadRevisionData'](_0x58fe06,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x58fe06);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2d923c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x8f372c=0x0;_0x8f372c<_0x2d923c['length'];_0x8f372c++){const _0x4debe2=_0x2d923c[_0x8f372c];let _0xf3a8d=!0x1;for(const _0x5571b7 of Object['keys'](_0x4debe2))void 0x0===_0x4debe2[_0x5571b7]?delete _0x4debe2[_0x5571b7]:'id'!==_0x5571b7&&(_0xf3a8d=!0x0);_0xf3a8d||(_0x2d923c[_0x8f372c]=null);}if(_0x2d923c=_0x2d923c['filter'](_0x571ca=>null!==_0x571ca),!_0x2d923c['length'])return;for(let _0xa633bb=0x0;_0xa633bb<_0x2d923c['length'];_0xa633bb++){const _0x12906d=_0x2d923c[_0xa633bb];void 0x0!==_0x12906d['fromVersion']&&void 0x0===_0x12906d['toVersion']&&(_0x12906d['toVersion']=this['repository']['getRevision'](_0x12906d['id'])['toVersion']),void 0x0!==_0x12906d['toVersion']&&void 0x0===_0x12906d['fromVersion']&&(_0x12906d['fromVersion']=this['repository']['getRevision'](_0x12906d['id'])['fromVersion']);}const _0x4fe7b2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2d923c,_0x4fe7b2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2e6c56=>{if(_0x2e6c56){for(const _0x43b4b9 of _0x2e6c56)this['setRevisionData']({'id':_0x43b4b9['id'],'createdAt':_0x43b4b9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x18ea1d=null,from:_0x4e5d2a=null,to:_0x508601=null}){_0x4e5d2a=null!==_0x4e5d2a?_0x4e5d2a:_0x18ea1d['fromVersion'],_0x508601=null!==_0x508601?_0x508601:_0x18ea1d['toVersion'];const _0x451ddc=this['_revisionDataBuilder']['getData'](_0x4e5d2a,_0x508601),_0x5c709b={'diffData':_0x451ddc['diffData'],'authorsIds':_0x451ddc['authorsIds'],'fromVersion':_0x4e5d2a,'toVersion':_0x508601};if(!_0x18ea1d||_0x508601!==_0x18ea1d['toVersion']){const _0x7ab3a3=_0x508601-0x1,_0x11bdeb=this['_source']['history']['getOperation'](_0x7ab3a3);_0x5c709b['createdAt']=_0x11bdeb&&_0x11bdeb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e5d2a===this['_loadedStateData']['fromVersion']){for(const _0x30cffb of this['_loadedStateData']['authors'])_0x5c709b['authorsIds']['includes'](_0x30cffb['id'])||_0x5c709b['authorsIds']['push'](_0x30cffb['id']);}return _0x5c709b;}['_bufferUpdate'](_0x1cb3d4,_0x494f82,_0x37042d){if(this['_bufferedUpdates']['has'](_0x1cb3d4)){const _0x22d59d=this['_bufferedUpdates']['get'](_0x1cb3d4);_0x494f82=_0x37042d?{..._0x22d59d,..._0x494f82}:{..._0x494f82,..._0x22d59d};}this['_bufferedUpdates']['set'](_0x1cb3d4,_0x494f82);}['setRevisionData'](_0x15f89d){const _0x1cafb8=this['repository']['getRevision'](_0x15f89d['id']);if(_0x15f89d['createdAt']&&(_0x15f89d['createdAt']=new Date(_0x15f89d['createdAt'])),_0x15f89d['authorsIds']){const _0x14820e=this['editor']['plugins']['get']('Users');_0x15f89d['authors']=_0x15f89d['authorsIds']['map'](_0x4e59c3=>_0x14820e['getUser'](_0x4e59c3));}_0x1cafb8['_update'](_0x15f89d,!0x0);}['_createInitialRevision'](_0x6010f9){const _0x409093=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x409093)this['_initialRevisionId']=_0x409093['id'];else{const _0x3f43e1=!this['editor']['model']['document']['roots']['find'](_0x3f42bc=>this['editor']['model']['hasContent'](_0x3f42bc)),_0x29d118=this['editor']['plugins']['get']('Users')['me']['id'],_0x143fe8=g(this['editor']['locale'],_0x3f43e1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x6010f9,'to':_0x6010f9,'id':this['_initialRevisionId'],'name':_0x143fe8,'creatorId':_0x29d118});}}['_createCurrentRevision'](_0x6f9b8f){const _0x44ba49=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x44ba49),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x6f9b8f,'to':_0x6f9b8f,'id':_0x44ba49,'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'](_0x584aa1,_0x3b260c){let _0xe081a0=this['editor']['config']['get']('initialData'),_0x5694b7=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xe081a0){_0xe081a0={};for(const _0x26a004 of this['editor']['model']['document']['getRootNames']())_0xe081a0[_0x26a004]='';}if('string'==typeof _0xe081a0&&(_0xe081a0={'main':_0xe081a0}),void 0x0===_0x5694b7){_0x5694b7={};for(const _0xc5f939 of this['editor']['model']['document']['getRootNames']())_0x5694b7[_0xc5f939]={};}let _0xd53db8=!0x1;const _0x6f0670=Object['keys'](_0xe081a0),_0xb80e71=Object['keys'](_0x584aa1);for(const _0x2f57d6 of _0x6f0670){if(_0xe081a0[_0x2f57d6]!==_0x584aa1[_0x2f57d6]&&''!==_0xe081a0[_0x2f57d6]['trim']()){_0xd53db8=!0x0;break;}if(!_0x5c4c3d(_0x5694b7[_0x2f57d6],_0x3b260c[_0x2f57d6])&&Object['keys'](_0x5694b7[_0x2f57d6])['length']>0x0){_0xd53db8=!0x0;break;}}_0xd53db8||(_0xd53db8=_0xb80e71['some'](_0x3e3717=>!this['editor']['model']['document']['getRoot'](_0x3e3717))),_0xd53db8&&_0x54c5fa('editor-initial-data-replaced-with-revision-data',{'editorData':_0xe081a0,'editorRootsAttributes':_0x5694b7,'revisionData':_0x584aa1,'revisionRootsAttributes':_0x3b260c}),this['editor']['config']['set']('initialData',_0x584aa1),this['editor']['config']['set']('rootsAttributes',_0x3b260c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5892c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5892c['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x375c24){const _0x5c622e=this['repository']['getRevisions']();_0x5c622e['reverse']();let _0x27be9d=0x0;for(;_0x27be9d<_0x5c622e['length'];){const _0x23d92b=_0x5c622e[_0x27be9d];if(_0x23d92b===this['currentRevision']){_0x27be9d++;continue;}if(_0x23d92b['id']===this['_initialRevisionId'])break;const _0x2ce501=_0x375c24['toVersion']-_0x23d92b['toVersion']||_0x375c24['fromVersion']-_0x23d92b['fromVersion'];if(_0x2ce501>0x0)break;if(_0x2ce501<0x0)_0x27be9d++;else{if(!_0x375c24['creator']&&_0x23d92b['creator'])break;if(_0x23d92b['creator']||!_0x375c24['creator']){if(_0x375c24['createdAt']>_0x23d92b['createdAt'])break;_0x27be9d++;}else _0x27be9d++;}}return _0x27be9d;}['_getFromVersion'](_0x1d5910){const _0x34f584=this['repository']['getRevisions']();_0x34f584['reverse'](),_0x34f584['shift']();const _0x28a748=_0x34f584['find'](_0x35ccb9=>_0x35ccb9['toVersion']<=_0x1d5910)['toVersion'];return _0x28a748<this['_startingVersion']?this['_startingVersion']:_0x28a748;}['_makeRevision']({name:_0x558f15,from:_0x58d067,to:_0xe5eef9,creatorId:_0x297567,id:_0x4e3c2b}){const _0x561508=this['buildRevisionData']({'from':_0x58d067,'to':_0xe5eef9});_0x561508['name']=_0x558f15,_0x561508['creatorId']=_0x297567,_0x561508['id']=_0x4e3c2b;const _0x47a1e9=this['addRevisionData'](_0x561508);return this['adapter']&&this['_bufferUpdate'](_0x561508['id'],_0x561508,!0x0),_0x47a1e9;}['_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(_0x13d1a7){this['editor']=_0x13d1a7,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'](_0x2adee5){this['source']=_0x2adee5;const _0x5d9d99=new Map(),_0x16dc80=new Map(),_0x2e3cb0=this['editor']['model']['document']['roots']['map'](_0x340832=>_0x340832['rootName']);for(const _0x307f5b of _0x2e3cb0){const _0x12aa80=this['editor']['model']['document']['getRoot'](_0x307f5b),_0x2afb43=N(_0x12aa80);_0x5d9d99['set'](_0x307f5b,_0x2afb43),_0x16dc80['set'](_0x307f5b,Object['fromEntries'](_0x12aa80['getAttributes']()));}const _0x5aadb0=Array['from'](this['editor']['model']['markers'])['map'](_0x4df010=>[_0x4df010['name'],_0x4df010['getRange']()]),_0x39cbc9=this['source']['version'];this['_saveMetaData'](_0x39cbc9,_0x5d9d99,_0x5aadb0,_0x16dc80),this['_startingRevisionId']=this['_revisionId'];const _0x555f47=new Map(),_0x126dd1=new Map();for(const _0x11cffa of _0x2e3cb0){const _0x2f1a0a=P(_0x11cffa);_0x555f47['set'](_0x11cffa,_0x2f1a0a),_0x126dd1['set'](_0x11cffa,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x555f47,[],_0x126dd1);}['getData'](_0x1becc8,_0xba8d73){if(this['_lastFrom']===_0x1becc8&&this['_lastTo']<=_0xba8d73)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xba8d73,!0x0);else{if(!this['_savedMetaData']['has'](_0x1becc8)){const _0x20c414=this['_getPreviousFrom'](_0x1becc8);this['_calculateMetaData'](_0x20c414,_0x1becc8,!0x1);}this['_calculateMetaData'](_0x1becc8,_0xba8d73,!0x0);}return this['_lastFrom']=_0x1becc8,this['_lastTo']=_0xba8d73,this['_getState']();}['loadState'](_0x356d97){const _0x1f6a4a=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x356d97['fromVersion'],this['_lastTo']=_0x356d97['toVersion'];for(const _0x350265 in _0x356d97['diffData']){const _0x30fd83=_0x356d97['diffData'][_0x350265]['attachChange'],_0x1e915a=_0xf1f293(_0x356d97['diffData'][_0x350265]['attributesBefore'])||{},_0x5b9d75=_0x1f6a4a['_makeModelFromViewString'](_0x356d97['diffData'][_0x350265]['deletions']);_0x5b9d75['rootName']=_0x350265,_0x5b9d75['_isAttached']=!_0x30fd83||!_0x30fd83['isAttached'],_0x5b9d75['isAttached']=()=>_0x5b9d75['_isAttached'],this['_baseRoots']['set'](_0x350265,_0x5b9d75),this['_baseRootsAttributes']['set'](_0x350265,_0x1e915a),_0x30fd83&&this['_touchedRoots']['set'](_0x350265,_0x30fd83);const _0x4cca39=this['_makeIdsRoot'](_0x5b9d75);this['_baseIdsRoots']['set'](_0x350265,_0x4cca39);for(const [_0x238d37,_0x39b81b]of _0x5b9d75['markers']){if(!_0x238d37['startsWith']('revision:'))continue;const _0x29ba43=_0x238d37['split'](':')[0x2];for(const _0x580c28 of _0x39b81b['getWalker']({'singleCharacters':!0x0})){const _0x1f2b23=this['_getVidAttributeName'](_0x580c28),_0x2e0297='elementEnd'==_0x580c28['type']?_0x580c28['previousPosition']['path']['slice'](0x0,-0x1):_0x580c28['previousPosition']['path'],_0x168b74=_0x4cca39['getNodeByPath'](_0x2e0297)['getAttribute'](_0x1f2b23);this['_touched']['set'](_0x168b74,{'userId':_0x29ba43});}}}this['_startingRevisionId']=this['_revisionId'];const _0xd01b0e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xf31a50=>!this['_touched']['has'](_0xf31a50));let _0x397217=0x0;const _0x280346=new Map();for(const _0x3abbf4 in _0x356d97['diffData']){const _0x439d14=_0x356d97['diffData'][_0x3abbf4]['attachChange'],_0x4ca794=_0xf1f293(_0x356d97['diffData'][_0x3abbf4]['attributesAfter'])||{},_0x4ab541=_0x1f6a4a['_makeModelFromViewString'](_0x356d97['diffData'][_0x3abbf4]['insertions']);_0x4ab541['rootName']=_0x3abbf4,_0x4ab541['_isAttached']=!_0x439d14||_0x439d14['isAttached'],_0x4ab541['isAttached']=()=>_0x4ab541['_isAttached'],this['_diffRoots']['set'](_0x3abbf4,_0x4ab541),this['_diffRootsAttributes']['set'](_0x3abbf4,_0x4ca794);const _0x4fcf7c=this['_makeIdsRoot'](_0x4ab541,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3abbf4,_0x4fcf7c),_0x280346['set'](_0x3abbf4,_0x4ab541['isAttached']()?_0x4ca794:{});for(const [_0x101c36,_0x42d128]of _0x4ab541['markers']){if(!_0x101c36['startsWith']('revision:'))continue;const _0x5d390b=_0x101c36['split'](':')[0x2];for(const _0x275606 of _0x42d128['getWalker']({'singleCharacters':!0x0})){const _0x35c2b3=this['_getVidAttributeName'](_0x275606),_0x413a37=this['_revisionId']++,_0xd68acc='elementEnd'==_0x275606['type']?_0x275606['previousPosition']['path']['slice'](0x0,-0x1):_0x275606['previousPosition']['path'];_0x4fcf7c['getNodeByPath'](_0xd68acc)['_setAttribute'](_0x35c2b3,_0x413a37),this['_touched']['set'](_0x413a37,{'userId':_0x5d390b});}}for(const _0x442569 of this['editor']['model']['createRangeIn'](_0x4ab541)['getWalker']({'singleCharacters':!0x0})){const _0x1832be=this['_getVidAttributeName'](_0x442569),_0x208295='elementEnd'==_0x442569['type']?_0x442569['previousPosition']['path']['slice'](0x0,-0x1):_0x442569['previousPosition']['path'],_0xafd34a=_0x4fcf7c['getNodeByPath'](_0x208295);_0xafd34a['getAttribute'](_0x1832be)>0x0||_0xafd34a['_setAttribute'](_0x1832be,_0xd01b0e[_0x397217++]);}for(const [_0x4101a2,_0x21b569]of _0x4ab541['markers'])_0x4101a2['startsWith']('revision:')||this['_markers']['set'](_0x4101a2,_0x21b569);}const _0x2ad418=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2ad418),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2ad418,0x1));const _0x23c1bf=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x23c1bf),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x23c1bf,0x1));const _0x5b5147=Array['from'](this['_diffRoots'])['map'](([_0x772b00,_0x5293f8])=>[_0x772b00,N(_0x5293f8)]);this['_saveMetaData'](this['_lastTo'],_0x5b5147,this['_markers'],_0x280346);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x23fc57,_0x3beb95,_0x350151,_0x4b8ec7){const _0x5acd3b=new Map(_0x3beb95),_0x3d5233=new Map(_0xf1f293(_0x4b8ec7)),_0x35d8fc=new Map();for(const [_0x347227,_0x1aa993]of _0x350151)_0x35d8fc['set'](_0x347227,{'start':_0x1aa993['start']['clone'](),'end':_0x1aa993['end']['clone'](),'rootName':_0x1aa993['root']['rootName']});this['_savedMetaData']['set'](_0x23fc57,{'roots':_0x5acd3b,'markers':_0x35d8fc,'rootsAttributes':_0x3d5233});}['_removeMetaData'](_0x341a76){this['_savedMetaData']['delete'](_0x341a76);}['_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'](_0x26ad0c,_0x49f434=null){let _0xba3d55=null;_0x26ad0c['is']('documentFragment')||(_0xba3d55=new ut(_0x26ad0c['name'],{'vid_start':null===_0x49f434?this['_revisionId']++:_0x49f434++}));const _0x56ac10=[];for(const _0x119618 of _0x26ad0c['getChildren']())if(_0x119618['is']('element')){_0x56ac10['push'](this['_makeIdsRoot'](_0x119618,_0x49f434));const _0x23fca2=_0x56ac10[_0x56ac10['length']-0x1];null!==_0x49f434&&(_0x49f434=_0x23fca2['is']('element','$text')?_0x23fca2['getAttribute']('vid')+0x1:_0x23fca2['getAttribute']('vid_end')+0x1);}else{for(let _0x2bdd08=0x0;_0x2bdd08<_0x119618['offsetSize'];_0x2bdd08++)_0x56ac10['push'](new ut('$text',{'vid':null===_0x49f434?this['_revisionId']++:_0x49f434++}));}if(_0x26ad0c['is']('documentFragment')){const _0x3f37b1=P(_0x26ad0c['rootName']);return _0x3f37b1['_insertChild'](0x0,_0x56ac10),_0x3f37b1;}return _0xba3d55['_setAttribute']('vid_end',null===_0x49f434?this['_revisionId']++:_0x49f434++),_0xba3d55['_insertChild'](0x0,_0x56ac10),_0xba3d55;}['_calculateMetaData'](_0x58a28c,_0x4ed4d7,_0x19c76e){this['_reset']();const {roots:_0x165d53,markers:_0x52fc69,rootsAttributes:_0x124295}=this['_savedMetaData']['get'](_0x58a28c);this['_baseRoots']=new Map(_0x165d53),this['_baseRootsAttributes']=new Map(_0xf1f293(_0x124295));for(const [_0x5149df,_0x17dc2c]of this['_baseRoots'])if('$graveyard'!==_0x5149df&&(this['_diffRoots']['set'](_0x5149df,N(_0x17dc2c)),this['_diffRootsAttributes']=new Map(_0xf1f293(_0x124295)),_0x19c76e)){const _0x54a0f9=this['_revisionId'];this['_idsRoots']['set'](_0x5149df,this['_makeIdsRoot'](_0x17dc2c)),this['_baseIdsRoots']['set'](_0x5149df,this['_makeIdsRoot'](_0x17dc2c,_0x54a0f9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x19c76e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3cd38b,_0x1f0c03]of _0x52fc69){const _0x476bae=this['_baseRoots']['get'](_0x1f0c03['rootName']),_0xf16c7e=this['_diffRoots']['get'](_0x1f0c03['rootName']),_0x582019=new lt(this['_fixPosition'](_0x1f0c03['start'],_0x476bae),this['_fixPosition'](_0x1f0c03['end'],_0x476bae)),_0x181184=this['_fixRange'](_0x582019,_0xf16c7e);_0x476bae['markers']['set'](_0x3cd38b,_0x582019),this['_markers']['set'](_0x3cd38b,_0x181184);}this['_applyOperations'](_0x58a28c,_0x4ed4d7,_0x19c76e);}['_applyOperations'](_0xe23448,_0x393bff,_0x4f5195){for(const _0x4c84ec of this['source']['getOperations'](_0xe23448,_0x393bff))this['_handleOperation'](_0x4c84ec,_0x4f5195);for(const _0xa4ce14 of this['_diffRoots']['values']())_0xa4ce14['markers']['clear']();for(const [_0x527368,_0x54ced1]of this['_markers']){this['_diffRoots']['get'](_0x54ced1['root']['rootName'])['markers']['set'](_0x527368,_0x54ced1['clone']());}const _0x2b642e=new Map(),_0x44d68e=new Map();for(const [_0xc3e126,_0x7d1a13]of this['_diffRoots'])_0x2b642e['set'](_0xc3e126,N(_0x7d1a13)),_0x44d68e['set'](_0xc3e126,this['_diffRootsAttributes']['get'](_0xc3e126));this['_saveMetaData'](_0x393bff,_0x2b642e,this['_markers'],_0x44d68e);}['_getPreviousFrom'](_0x2b6874){const _0x109317=Array['from'](this['_savedMetaData']['keys']());_0x109317['sort']((_0x5bb1d3,_0x7fada1)=>_0x5bb1d3-_0x7fada1),_0x109317['reverse']();for(const _0x34c1c1 of _0x109317)if(_0x34c1c1<_0x2b6874)return _0x34c1c1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x55dc40,_0x57f809){const _0x454fcf=Array['from'](_0x57f809['markers'])['map'](([_0x5c8906,_0x5c61ac])=>[_0x5c8906,this['_fixRange'](_0x5c61ac,_0x55dc40)]);_0x55dc40['markers']=new Map(_0x454fcf);}['_transformMarkers'](_0x18df7e){for(const _0x3f6ad7 of this['_markers']['values']()){const _0x27e51b=_0x3f6ad7['getTransformedByOperation'](_0x18df7e),_0x48f1fa=lt['_createFromRanges'](_0x27e51b);_0x3f6ad7['start']=_0x48f1fa['start'],_0x3f6ad7['end']=_0x48f1fa['end'];}}['_handleOperation'](_0x2a67ac,_0x4d8949){if('addRoot'!=_0x2a67ac['type']&&'detachRoot'!=_0x2a67ac['type']){if('insert'==_0x2a67ac['type']){const _0x126907=_0x2a67ac['position']['root']['rootName'];this['_diffRoots']['has'](_0x126907)||(this['_diffRoots']['set'](_0x126907,P(_0x126907,!0x0)),this['_diffRootsAttributes']['set'](_0x126907,{}),_0x4d8949&&this['_idsRoots']['set'](_0x126907,P(_0x126907,!0x0)));}else{if('addRootAttribute'==_0x2a67ac['type']||'removeRootAttribute'==_0x2a67ac['type']||'changeRootAttribute'==_0x2a67ac['type'])return void this['_handleRootAttributeOperation'](_0x2a67ac);'marker'==_0x2a67ac['type']&&this['_handleMarkerOperation'](_0x2a67ac);}if('marker'!==_0x2a67ac['type']){const _0x16965b=this['_cloneOperation'](_0x2a67ac,this['_diffRoots']);_0x16965b['_execute'](),this['_transformMarkers'](_0x16965b);}if(_0x4d8949)switch(_0x2a67ac['type']){case'insert':this['_handleInsertOperation'](_0x2a67ac);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2a67ac);break;case'merge':this['_handleMergeOperation'](_0x2a67ac);break;case'split':this['_handleSplitOperation'](_0x2a67ac);}}else this['_handleRootOperation'](_0x2a67ac,_0x4d8949);}['_cloneOperation'](_0x2d7d43,_0x56c0c3){const _0x2deec3=_0x2d7d43['clone']();return _0x2deec3['_authorId']=_0x2d7d43['_authorId'],this['_fixOperation'](_0x2deec3,_0x56c0c3),_0x2deec3;}['_getBaseVids'](_0x478e11){return _0x478e11['map'](_0x19cdcf=>{const _0x5596e0=this['_getVidAttributeName'](_0x19cdcf);return Number(_0x19cdcf['item']['getAttribute'](_0x5596e0));});}['_generateTape'](_0x2fad3c,_0x490d57){if(_0x2fad3c['is']('element','$text'))_0x490d57['push']({'item':_0x2fad3c,'type':'text'});else{_0x2fad3c['is']('element')&&_0x490d57['push']({'item':_0x2fad3c,'type':'elementStart'});for(const _0x39eecf of _0x2fad3c['getChildren']())this['_generateTape'](_0x39eecf,_0x490d57);_0x2fad3c['is']('element')&&_0x490d57['push']({'item':_0x2fad3c,'type':'elementEnd'});}return _0x490d57;}['_getState'](){const _0x1b520e=new Map(this['_touched']),_0x23d010=new Map(_0x1b520e),_0x1c08ad=new Map(),_0x34e1c8={'insertions':{},'deletions':{}},_0x52ffc1={'insertions':{},'deletions':{}},_0x5d5ba6=new Map(),_0x558c75=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x558c75['delete']('$graveyard');for(const _0x246c50 of _0x558c75){const _0x227b7b=this['_diffRoots']['get'](_0x246c50)||P(_0x246c50,!0x1),_0x208dc1=this['_baseRoots']['get'](_0x246c50)||P(_0x246c50,!0x1);_0x227b7b['isAttached']()||_0x208dc1['isAttached']()?(_0x34e1c8['insertions'][_0x246c50]=N(_0x227b7b),_0x34e1c8['deletions'][_0x246c50]=N(_0x208dc1),this['_copyMarkers'](_0x34e1c8['deletions'][_0x246c50],_0x208dc1),this['_copyMarkers'](_0x34e1c8['insertions'][_0x246c50],_0x227b7b),_0x52ffc1['insertions'][_0x246c50]=this['_generateTape'](this['_idsRoots']['get'](_0x246c50),[]),_0x52ffc1['deletions'][_0x246c50]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x246c50)||P(_0x246c50,!0x1),[])):_0x558c75['delete'](_0x246c50);}for(const _0xfdc861 of _0x558c75){const _0x26aa2b=_0x52ffc1['insertions'][_0xfdc861];for(const _0x470c5d of _0x26aa2b){const _0x44d6ba=this['_getVidAttributeName'](_0x470c5d),_0x239c54=_0x470c5d['item']['getAttribute'](_0x44d6ba);_0x23d010['delete'](_0x239c54),_0x239c54>=this['_startingRevisionId']&&_0x1c08ad['set'](_0x239c54,_0x1b520e['get'](_0x239c54));}}for(const _0x17f7a3 of _0x558c75){const _0x306142=_0x52ffc1['insertions'][_0x17f7a3],_0x466530=this['_getBaseVids'](_0x52ffc1['deletions'][_0x17f7a3]);let _0x5b7de4=0x0;for(const _0x529572 of _0x306142){const _0x5a1ed3=this['_getVidAttributeName'](_0x529572),_0x8985ec=_0x529572['item']['getAttribute'](_0x5a1ed3);if(!_0x1c08ad['has'](_0x8985ec)&&!_0x5d5ba6['has'](_0x8985ec)){if(_0x23d010['has'](_0x8985ec))_0x5b7de4++;else{if(_0x8985ec!=_0x466530[_0x5b7de4]){const _0x2dd641=_0x1b520e['get'](_0x8985ec)||_0x1b520e['get'](_0x466530[_0x5b7de4]);for(;_0x8985ec!=_0x466530[_0x5b7de4];)_0x23d010['has'](_0x466530[_0x5b7de4])||(_0x5d5ba6['set'](_0x466530[_0x5b7de4],_0x2dd641),_0x1b520e['set'](_0x466530[_0x5b7de4],_0x2dd641)),_0x5b7de4++;}_0x5b7de4++;}}}}for(const _0x43f422 of _0x558c75){const _0x269006=_0x52ffc1['insertions'][_0x43f422];for(const _0x29ef0c of _0x269006){const _0x103198=this['_getVidAttributeName'](_0x29ef0c),_0x4bb6c7=_0x29ef0c['item']['getAttribute'](_0x103198);if(_0x5d5ba6['has'](_0x4bb6c7)){const _0xf827cd=_0x5d5ba6['get'](_0x4bb6c7);_0x23d010['has'](_0x4bb6c7)||_0x23d010['set'](_0x4bb6c7,{..._0xf827cd}),_0x1c08ad['set'](_0x4bb6c7,{..._0xf827cd});}}}for(const _0x22a071 of _0x23d010['keys']())_0x22a071>=this['_startingRevisionId']&&_0x23d010['delete'](_0x22a071);const _0x1e4255=new Map();for(const _0x24d073 of _0x558c75){let _0x1e0258=_0x52ffc1['insertions'][_0x24d073];for(const _0x469b08 of _0x1e0258)if(_0x469b08['item']['is']('element','tableCell')){const _0x15ef7e=this['_getVidAttributeName'](_0x469b08),_0x347224=_0x469b08['item']['getAttribute'](_0x15ef7e);if(_0x1c08ad['has'](_0x347224)){const _0x480c8b=_0x469b08['item']['parent']['parent']['getAttribute']('vid_start'),_0x23e09b=_0x1e4255['get'](_0x480c8b)||new Set();_0x23e09b['add'](_0x1c08ad['get'](_0x347224)['userId']),_0x1e4255['set'](_0x480c8b,_0x23e09b);}}_0x1e0258=_0x52ffc1['deletions'][_0x24d073];for(const _0x53fe5c of _0x1e0258)if(_0x53fe5c['item']['is']('element','tableCell')){const _0x4be2bf=this['_getVidAttributeName'](_0x53fe5c),_0xd235a8=_0x53fe5c['item']['getAttribute'](_0x4be2bf);if(_0x23d010['has'](_0xd235a8)){const _0x2d3a91=_0x53fe5c['item']['parent']['parent']['getAttribute']('vid_start'),_0x5af3d6=_0x1e4255['get'](_0x2d3a91)||new Set();_0x5af3d6['add'](_0x23d010['get'](_0xd235a8)['userId']),_0x1e4255['set'](_0x2d3a91,_0x5af3d6);}}for(const _0x3672f3 of _0x1e4255['keys']())(_0x1c08ad['has'](_0x3672f3)||_0x23d010['has'](_0x3672f3))&&_0x1e4255['delete'](_0x3672f3);}for(const _0x4ba794 of _0x558c75){const _0x4d06c4=_0x52ffc1['insertions'][_0x4ba794];let _0x535c12=null,_0x5b739a=null;for(const _0x4af8c2 of _0x4d06c4){const _0x534900=this['_getVidAttributeName'](_0x4af8c2),_0xf335dc=_0x4af8c2['item']['getAttribute'](_0x534900),_0x3f5a77=_0x1e4255['get'](_0xf335dc);_0x3f5a77&&'elementStart'==_0x4af8c2['type']&&(_0x535c12=Array['from'](_0x3f5a77)[0x0],_0x5b739a=_0x4af8c2['item']['getAttribute']('vid_end')),_0x535c12&&(_0x23d010['set'](_0xf335dc,{'userId':_0x535c12}),_0x1c08ad['set'](_0xf335dc,{'userId':_0x535c12})),_0xf335dc==_0x5b739a&&(_0x535c12=null,_0x5b739a=null);}}const _0xd5f2fe={},_0x41bde9=new Set();for(const _0x40bd35 of _0x558c75){const _0x1e4d10=_0x34e1c8['deletions'][_0x40bd35],_0x223113=_0x34e1c8['insertions'][_0x40bd35];for(const {userId:_0x37e9c5}of this['_touchedMarkers']['values']())null!==_0x37e9c5&&_0x41bde9['add'](_0x37e9c5);for(const {userId:_0x2415f6}of this['_touchedRoots']['values']())null!==_0x2415f6&&_0x41bde9['add'](_0x2415f6);this['_markChanges'](_0x223113,_0x52ffc1['insertions'][_0x40bd35],_0x1c08ad,'insertion',_0x41bde9),this['_markChanges'](_0x1e4d10,_0x52ffc1['deletions'][_0x40bd35],_0x23d010,'deletion',_0x41bde9),_0xd5f2fe[_0x40bd35]={'insertions':this['_prepareViewToSave'](_0x223113),'deletions':this['_prepareViewToSave'](_0x1e4d10),'attachChange':this['_touchedRoots']['get'](_0x40bd35)||null,'attributesBefore':_0xf1f293(this['_baseRootsAttributes']['get'](_0x40bd35))||{},'attributesAfter':_0xf1f293(this['_diffRootsAttributes']['get'](_0x40bd35))};}return{'diffData':_0xd5f2fe,'authorsIds':Array['from'](_0x41bde9)};}['_processRootBeforeSave'](_0x50442e){for(const [,_0x36b295]of _0x50442e['markers']){const _0x38c2d9=_0x36b295['start']['getAncestors']()['filter'](_0xeab1c6=>'tableCell'==_0xeab1c6['name']);for(const _0x261cc2 of _0x38c2d9)0x1==_0x261cc2['childCount']&&_0x261cc2['getChild'](0x0)['is']('element','paragraph')&&_0x261cc2['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x708e01){this['_processRootBeforeSave'](_0x708e01);const _0x1d70fb=this['editor']['data']['toView'](_0x708e01,{}),_0x4dfdeb=Array['from'](_0x1d70fb['getChildren']())['map'](_0x100edb=>this['_getViewJson'](_0x100edb));return JSON['stringify'](_0x4dfdeb);}['_getViewJson'](_0x10ca43){if(_0x10ca43['is']('$text'))return _0x10ca43['data'];{const _0x2a36ae=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2c1437=_0x10ca43,_0x858787=this['editor']['data']['htmlProcessor']['domConverter'],_0x55ef23={'type':_0x2a36ae['_getTypeCharForViewElement'](_0x2c1437),'name':_0x2c1437['name'],'attributes':Array['from'](_0x2c1437['getAttributes']()),'children':Array['from'](_0x2c1437['getChildren']())['map'](_0x12aee2=>this['_getViewJson'](_0x12aee2))};if(_0x10ca43['is']('uiElement')&&'$comment'!=_0x10ca43['name']){const _0x321ec6=_0x10ca43['render'](_0x858787['domDocument'],_0x858787);_0x55ef23['children']['push'](_0x321ec6['outerHTML']);}else{if(_0x10ca43['is']('rawElement')){const _0x257520=_0x858787['domDocument']['createElement'](_0x2c1437['name']);_0x10ca43['render'](_0x257520,_0x858787),_0x55ef23['children']['push'](_0x257520['innerHTML']);}}const _0x372780=Array['from'](_0x2c1437['getCustomProperties']());_0x372780['length']>0x0&&(_0x55ef23['customProperties']=_0x372780);const _0x16b4fe=_0x2c1437['getFillerOffset']();return null!==_0x16b4fe&&(_0x55ef23['fillerOffset']=_0x16b4fe),_0x55ef23;}}['_markChanges'](_0x3c8308,_0x26a27c,_0x421f7c,_0x14582e,_0xf9a5e6){let _0x2ee105=null,_0x4948df=null,_0x262616=0x0;const _0x7e39ba=this['editor']['model'];for(let _0x39639c=0x0;_0x39639c<_0x26a27c['length'];_0x39639c++){const _0x38c5fd=this['_getVidAttributeName'](_0x26a27c[_0x39639c]),_0x595e92=_0x26a27c[_0x39639c]['item']['getAttribute'](_0x38c5fd),_0x3abf0a=_0x421f7c['get'](_0x595e92),_0x48bf3a=_0x39639c==_0x26a27c['length']-0x1;(!_0x2ee105&&_0x3abf0a&&(_0x2ee105=_0x3abf0a,_0x4948df=_0x26a27c[_0x39639c]),_0x2ee105&&(!_0x3abf0a||_0x3abf0a['userId']!=_0x2ee105['userId']))&&(_0x4ee674(_0x3abf0a,F(_0x4948df,_0x3c8308,_0x7e39ba),F(_0x26a27c[_0x39639c],_0x3c8308,_0x7e39ba)),_0x2ee105=_0x3abf0a||null,_0x4948df=_0x3abf0a?_0x26a27c[_0x39639c]:null),_0x2ee105&&_0x48bf3a&&_0x4ee674(_0x3abf0a,F(_0x4948df,_0x3c8308,_0x7e39ba),B(_0x26a27c[_0x39639c],_0x3c8308,_0x7e39ba));}function _0x4ee674(_0xdeb43e,_0x1b29b0,_0x32ed9e){const _0x53b76d=_0x2ee105['userId'],_0x4cdd84='revision:'+_0x14582e+':'+_0x53b76d+':'+_0x262616++,_0x2e357b=_0x7e39ba['createRange'](_0x1b29b0,_0x32ed9e);_0x3c8308['markers']['set'](_0x4cdd84,_0x2e357b),null!==_0x53b76d&&_0xf9a5e6['add'](_0x53b76d);}}['_getVidAttributeName'](_0x205025){switch(_0x205025['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x523f1e,_0x4cc3b7){_0x523f1e['baseVersion']=null;for(const _0x1e153e in _0x523f1e){const _0x1e8817=_0x523f1e[_0x1e153e];if(_0x1e8817 instanceof ft){const _0x57fde9=_0x4cc3b7['get'](_0x1e8817['root']['rootName']);_0x523f1e[_0x1e153e]=this['_fixPosition'](_0x1e8817,_0x57fde9);}if(_0x1e8817 instanceof lt){const _0x59124f=_0x4cc3b7['get'](_0x1e8817['root']['rootName']);_0x523f1e[_0x1e153e]=this['_fixRange'](_0x1e8817,_0x59124f);}'root'===_0x1e153e&&(_0x523f1e['root']=_0x4cc3b7['get'](_0x523f1e['root']['rootName']));}}['_fixRange'](_0x209038,_0x35ab6b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x209038['start'],_0x35ab6b),this['_fixPosition'](_0x209038['end'],_0x35ab6b));}['_fixPosition'](_0x532c2b,_0x1abdf8){return this['editor']['model']['createPositionFromPath'](_0x1abdf8,_0x532c2b['path'],_0x532c2b['stickiness']);}['_handleInsertOperation'](_0x1ddee7){const _0x44c006=this['_idsRoots']['get'](_0x1ddee7['position']['root']['rootName']),_0xd517fc=this['_fixPosition'](_0x1ddee7['position'],_0x44c006),_0x465e42=null===_0x1ddee7['_authorId']?null:_0x1ddee7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x504982=_0xd517fc['parent'],_0x406112=this['_revisionId'],_0x511325=[];for(const _0xb5a16d of _0x1ddee7['nodes'])if(_0xb5a16d['is']('element'))_0x511325['push'](this['_makeIdsRoot'](_0xb5a16d));else{for(let _0x327387=0x0;_0x327387<_0xb5a16d['offsetSize'];_0x327387++)_0x511325['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x44dac2=this['_revisionId'];for(let _0x1070ee=_0x406112;_0x1070ee<_0x44dac2;_0x1070ee++)this['_touched']['set'](_0x1070ee,{'userId':_0x465e42});_0x504982['_insertChild'](_0xd517fc['offset'],_0x511325);}['_handleMoveOperation'](_0x50f29a){(_0x50f29a=this['_cloneOperation'](_0x50f29a,this['_idsRoots']))['_execute']();const _0x17aaac=null===_0x50f29a['_authorId']?null:_0x50f29a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c4305=_0x50f29a['getMovedRangeStart'](),_0x457abc=_0x1c4305['parent'],_0x3da920=_0x1c4305['offset'];!function _0x1e971e(_0x165969,_0x44c27d,_0x9bb04b,_0x74f083){for(let _0x4a40aa=_0x9bb04b;_0x4a40aa<_0x74f083;_0x4a40aa++){const _0x3bbb41=_0x44c27d['getChild'](_0x4a40aa);_0x3bbb41['is']('element','$text')?_0x165969['set'](_0x3bbb41['getAttribute']('vid'),{'userId':_0x17aaac}):(_0x165969['set'](_0x3bbb41['getAttribute']('vid_start'),{'userId':_0x17aaac}),_0x1e971e(_0x165969,_0x3bbb41,0x0,_0x3bbb41['childCount']),_0x165969['set'](_0x3bbb41['getAttribute']('vid_end'),{'userId':_0x17aaac}));}}(this['_touched'],_0x457abc,_0x3da920,_0x3da920+_0x50f29a['howMany']);}['_handleMergeOperation'](_0x1ab997){const _0x585b71=null===(_0x1ab997=this['_cloneOperation'](_0x1ab997,this['_idsRoots']))['_authorId']?null:_0x1ab997['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36a4b8=_0x1ab997['targetPosition']['parent'],_0x267f16=_0x1ab997['sourcePosition']['parent'],_0x5e7bbd=_0x36a4b8['getAttribute']('vid_end'),_0x2cab73=_0x267f16['getAttribute']('vid_start');_0x36a4b8['_setAttribute']('vid_end',_0x267f16['getAttribute']('vid_end')),_0x267f16['_setAttribute']('vid_end',_0x5e7bbd),this['_touched']['set'](_0x2cab73,{'userId':_0x585b71}),this['_touched']['set'](_0x5e7bbd,{'userId':_0x585b71}),_0x1ab997['_execute']();}['_handleSplitOperation'](_0x575171){const _0x1cbb5c=null===(_0x575171=this['_cloneOperation'](_0x575171,this['_idsRoots']))['_authorId']?null:_0x575171['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x260ac7=_0x575171['graveyardPosition'],_0x1f65c1=_0x575171['splitPosition']['parent'];_0x575171['_execute']();const _0xa38048=_0x1f65c1['getAttribute']('vid_end'),_0x232dc8=_0x575171['insertionPosition']['nodeAfter'];if(_0x260ac7){const _0x3ad5a9=_0x232dc8['getAttribute']('vid_end'),_0x531b83=_0x1f65c1['getAttribute']('vid_end');_0x1f65c1['_setAttribute']('vid_end',_0x3ad5a9),_0x232dc8['_setAttribute']('vid_end',_0x531b83),this['_touched']['set'](_0x1f65c1['getAttribute']('vid_end'),{'userId':_0x1cbb5c}),this['_touched']['set'](_0x232dc8['getAttribute']('vid_start'),{'userId':_0x1cbb5c});}else{const _0x4b0484=this['_revisionId']++,_0x3ae60c=this['_revisionId']++;_0x1f65c1['_setAttribute']('vid_end',_0x4b0484),_0x232dc8['_setAttribute']('vid_start',_0x3ae60c),_0x232dc8['_setAttribute']('vid_end',_0xa38048),this['_touched']['set'](_0x4b0484,{'userId':_0x1cbb5c}),this['_touched']['set'](_0x3ae60c,{'userId':_0x1cbb5c});}}['_handleMarkerOperation'](_0x534abd){if(!_0x534abd['affectsData'])return;const _0x3b0311=(_0x534abd=this['_cloneOperation'](_0x534abd,this['_diffRoots']))['oldRange']?_0x534abd['oldRange']['root']:null,_0xdabf24=_0x534abd['newRange']?_0x534abd['newRange']['root']:null;_0x3b0311&&this['_markers']['delete'](_0x534abd['name']),_0xdabf24&&this['_markers']['set'](_0x534abd['name'],_0x534abd['newRange']['clone']());const _0x53f142=null===_0x534abd['_authorId']?null:_0x534abd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7d708b=_0x534abd['name'];if(!this['_touchedMarkers']['has'](_0x7d708b))return void this['_touchedMarkers']['set'](_0x7d708b,{'range':_0x534abd['oldRange'],'userId':_0x53f142});const _0x5ba735=this['_touchedMarkers']['get'](_0x7d708b),_0x3cd217=_0x5ba735['range'],_0x1b014f=_0x534abd['newRange'];null==_0x3cd217&&null==_0x1b014f||_0x3cd217&&_0x1b014f&&_0x3cd217['isEqual'](_0x1b014f)?this['_touchedMarkers']['delete'](_0x534abd['name']):_0x5ba735['userId']=_0x53f142;}['_handleRootOperation'](_0x43c99b,_0xda7ea9){this['_diffRoots']['has'](_0x43c99b['rootName'])?this['_diffRoots']['get'](_0x43c99b['rootName'])['_isAttached']=_0x43c99b['isAdd']:(this['_diffRoots']['set'](_0x43c99b['rootName'],P(_0x43c99b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x43c99b['rootName'],{}),_0xda7ea9&&this['_idsRoots']['set'](_0x43c99b['rootName'],P(_0x43c99b['rootName'],!0x0)));const _0x59a1a9=null===_0x43c99b['_authorId']?null:_0x43c99b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x358c4a=this['_touchedRoots']['get'](_0x43c99b['rootName']);_0x358c4a&&_0x358c4a['userId']===_0x59a1a9?this['_touchedRoots']['delete'](_0x43c99b['rootName']):this['_touchedRoots']['set'](_0x43c99b['rootName'],{'userId':_0x59a1a9,'isAttached':_0x43c99b['isAdd']});}['_handleRootAttributeOperation'](_0x1e41b4){const _0x5290c8=this['_diffRootsAttributes']['get'](_0x1e41b4['root']['rootName']);null===_0x1e41b4['newValue']?delete _0x5290c8[_0x1e41b4['key']]:_0x5290c8[_0x1e41b4['key']]=_0x1e41b4['newValue'];}}function N(_0x412f14){const _0x1c4c3a=P(_0x412f14['rootName'],_0x412f14['isAttached']());for(const _0x1220d3 of _0x412f14['getChildren']()){const _0x4d74ed=_0x1220d3['_clone'](!0x0);_0x1c4c3a['_appendChild'](_0x4d74ed);}return _0x1c4c3a;}function P(_0x473475,_0xbf6e37=!0x0){const _0x158f89=new vt();return _0x158f89['rootName']=_0x473475,_0x158f89['_isAttached']=_0xbf6e37,_0x158f89['isAttached']=()=>_0x158f89['_isAttached'],_0x158f89;}function F(_0x3a2d9c,_0x1b2ec5,_0x2d809b){const _0x1fb74e='elementEnd'==_0x3a2d9c['type']?_0x2d809b['createPositionAt'](_0x3a2d9c['item'],'end'):_0x2d809b['createPositionBefore'](_0x3a2d9c['item']);return _0x2d809b['createPositionFromPath'](_0x1b2ec5,_0x1fb74e['path'],_0x1fb74e['stickiness']);}function B(_0x4b2e91,_0x35b16f,_0x4e66d9){const _0x43e554='elementStart'==_0x4b2e91['type']?_0x4e66d9['createPositionAt'](_0x4b2e91['item'],0x0):_0x4e66d9['createPositionAfter'](_0x4b2e91['item']);return _0x4e66d9['createPositionFromPath'](_0x35b16f,_0x43e554['path'],_0x43e554['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x58862f,_0x171543){super(_0x58862f),this['focusTracker']=new _0x172a8c(),this['keystrokes']=new _0x5f3d77(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x171543),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x18d3b9(this);}['render'](){super['render'](),_0xed5650({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4b752f=_0xfbf55b=>_0xfbf55b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4b752f),this['keystrokes']['set']('arrowleft',_0x4b752f),this['keystrokes']['set']('arrowup',_0x4b752f),this['keystrokes']['set']('arrowdown',_0x4b752f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x403bf5){this['revisionNameInputView']['fieldView']['element']['value']=_0x403bf5['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5d6eda){const _0xbad2a6=new _0x54c465(this['locale'],_0x244aec),_0xe83da0=_0xbad2a6['fieldView'];_0xe83da0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x316046=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5d6eda&&(_0x316046+='\x20('+g(this['locale'],'optional')+')'),(_0xbad2a6['label']=_0x316046,_0xe83da0['on']('input',()=>{this['revisionNameInputValue']=_0xe83da0['element']['value']['trim']();}),_0xbad2a6);}}class f extends _0x5eed52{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x27e634=this['editor'],_0xa4e5bc=_0x27e634['plugins']['get']('RevisionTracker');_0x27e634['ui']['componentFactory']['add']('revisionHistory',_0x5c5fc0=>{const _0x2492ac=_0x369e9a(_0x5c5fc0),_0xed4db5=_0x2492ac['panelView']['children'],_0xc27f00=new _0x13c811(_0x5c5fc0),_0x1f55ab=new _0x37e094(_0x5c5fc0),_0x42f3b2=new te(_0x5c5fc0),_0x271701=new _0x37e094(_0x5c5fc0),_0x47d6aa=new te(_0x5c5fc0);return _0x2492ac['bind']('isEnabled')['to'](_0xa4e5bc,'isReady',_0xa4e5bc,'isEnabled',_0x27e634,'isReadOnly',(_0x3089ff,_0x3a095f,_0x52034c)=>_0x3089ff&&_0x3a095f&&!_0x52034c),_0x2492ac['buttonView']['set']({'icon':_0x13b80c,'label':g(_0x5c5fc0,'Revision\x20history'),'tooltip':!0x0}),_0x42f3b2['set']({'label':g(_0x5c5fc0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x42f3b2['bind']('isEnabled')['to'](_0xa4e5bc,'isReady',_0xa4e5bc,'isEnabled',_0x27e634,'isReadOnly',(_0x2986c0,_0x379643,_0x53346a)=>_0x2986c0&&_0x379643&&!_0x53346a),_0x42f3b2['on']('execute',()=>this['_showDialog']()),_0x47d6aa['set']({'label':g(_0x5c5fc0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x47d6aa['bind']('isEnabled')['to'](_0xa4e5bc,'isReady',_0x27e634,'isReadOnly',(_0x18115d,_0x2b433e)=>_0x18115d&&!_0x2b433e),_0x47d6aa['on']('execute',()=>{_0x27e634['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2492ac['isOpen']=!0x1,_0x27e634['editing']['view']['focus']();}),_0x1f55ab['children']['add'](_0x42f3b2),_0x271701['children']['add'](_0x47d6aa),_0xc27f00['role']='menu',_0xc27f00['items']['addMany']([_0x1f55ab,_0x271701]),_0xed4db5['add'](_0xc27f00),_0x2492ac;}),_0x27e634['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xa032b9=this['editor'],_0x1d9a17=_0xa032b9['locale'],_0x363f96=new _0x3d3ac6(_0x1d9a17),_0xcadfb5=new _0x1f9cb5(_0x1d9a17);_0x363f96['buttonView']['set']({'icon':_0x13b80c,'label':g(_0x1d9a17,'Revision\x20history')});const _0x1e355b=new _0x277e82(_0x1d9a17,_0x363f96),_0x1dce67=new _0x1bb789(_0x1d9a17);_0x1dce67['set']({'label':g(_0x1d9a17,'Save\x20current\x20revision')}),_0x1dce67['delegate']('execute')['to'](_0x363f96),_0x1dce67['on']('execute',()=>{this['_showDialog']();}),_0x1e355b['children']['add'](_0x1dce67),_0xcadfb5['items']['add'](_0x1e355b);const _0x4fb086=new _0x277e82(_0x1d9a17,_0x363f96),_0x16fce3=new _0x1bb789(_0x1d9a17);return _0x16fce3['set']({'label':g(_0x1d9a17,'Open\x20revision\x20history')}),_0x16fce3['delegate']('execute')['to'](_0x363f96),_0x16fce3['on']('execute',()=>{_0xa032b9['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4fb086['children']['add'](_0x16fce3),_0xcadfb5['items']['add'](_0x4fb086),_0x363f96['panelView']['children']['add'](_0xcadfb5),_0x363f96;}['_showDialog'](){const _0x397bb9=this['editor'],_0x52b20f=_0x397bb9['locale'],_0x2e2cd6=_0x397bb9['plugins']['get']('Dialog'),_0x1748f6=_0x397bb9['plugins']['get']('RevisionTracker');function _0x5de86d(_0x42756d){_0x397bb9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x42756d['revisionName']?_0x42756d['revisionNameInputView']['errorText']=g(_0x52b20f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x397bb9['plugins']['get'](u)['saveRevision']({'name':_0x42756d['revisionName']}),_0x2e2cd6['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5de86d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2e2cd6['show']({'id':'revisionSave','title':g(_0x52b20f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x397bb9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2e2cd6['hide']()},{'label':g(_0x397bb9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x509a15){_0x509a15['bind']('isEnabled')['to'](_0x1748f6,'isReady',_0x1748f6,'isEnabled',_0x397bb9,'isReadOnly',(_0x217c60,_0x563129,_0x53e858)=>_0x217c60&&_0x563129&&!_0x53e858);},'onExecute':()=>_0x5de86d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x40a768=this['editor'],_0x22b78e=_0x40a768['locale'];this['_saveRevisionFormView']=new hs(_0x22b78e,_0x40a768['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x159be2,_0x3d3b5e){super(_0x159be2),this['_model']=_0x3d3b5e,this['changeId']=_0x3d3b5e['id'];const _0x30c3b4=this['bindTemplate'],_0x530ae9=g(_0x159be2,_0x3d3b5e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3d3b5e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3d3b5e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x30c3b4['to']('type',_0x4461a3=>'ck-revision-change__'+_0x4461a3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x530ae9}]},{'text':'\x20'+_0x3d3b5e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x520bf4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x8db7f3){super(),this['id']=_0x8db7f3['id']||_0x59025e(),this['author']=_0x8db7f3['author'],this['type']=_0x8db7f3['type'],this['data']=_0x8db7f3['data']||{},this['rootName']=_0x8db7f3['rootName'],this['set']('createdAt',_0x8db7f3['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(_0x2f595f,_0x14c818){this['newRevisionId']=_0x2f595f,this['oldRevisionId']=_0x14c818,this['changes']=new _0x21b12a();}['_setChanges'](_0xac585a){for(const _0xc51bb3 of _0xac585a)this['changes']['add'](_0xc51bb3);}}class m extends _0x5eed52{['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[_0xb4be0f,_0x251487,I,V];}constructor(_0xf0d79a){super(_0xf0d79a),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',(_0x14fcee,_0x412cd5,_0x3ab7fd)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x51df1d=>{for(const _0xebcd86 of this['editor']['editing']['view']['document']['roots'])_0x3ab7fd?_0x51df1d['removeClass']('ck-editor__editable__overlay',_0xebcd86):_0x51df1d['addClass']('ck-editor__editable__overlay',_0xebcd86);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x45b2d4=>null!==_0x45b2d4),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x45706f,_0x2fe7ee,_0x58ed3b)=>_0x45706f&&_0x58ed3b?_0x2fe7ee['changes']['getIndex'](_0x58ed3b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4153a9,_0x33fe35)=>_0x4153a9?_0x33fe35['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x251487);}['init'](){const _0x74f64d=this['editor'],_0x362198=new wt(_0x74f64d,{'direction':'backward'}),_0x597841=new wt(_0x74f64d,{'direction':'forward'});(_0x74f64d['commands']['add']('showPreviousChange',_0x362198),_0x74f64d['commands']['add']('showNextChange',_0x597841),_0x74f64d['commands']['add']('restoreRevision',new mt(_0x74f64d)),this['on']('change:numberOfChanges',()=>{_0x362198['refresh'](),_0x597841['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x74f64d['enableReadOnlyMode']('revision-viewer'),_0x74f64d['plugins']['has']('WidgetToolbarRepository'))&&_0x74f64d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4a499){return await this['_utils']['loadRevisionData'](_0x4a499,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4a499);}async['getRevisionRootsAttributes'](_0x29853b){return await this['_utils']['loadRevisionData'](_0x29853b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x29853b);}async['compare'](_0x5be3ba,_0x1fb7ec,_0x3523d5=!0x1){if(!this['isEnabled'])return;const _0x4fc9a0=this['diff'],_0x56c610=this['repository'],_0x29c3bb='string'==typeof _0x5be3ba?_0x56c610['getRevision'](_0x5be3ba):_0x5be3ba,_0x39b165='string'==typeof _0x1fb7ec?_0x56c610['getRevision'](_0x1fb7ec):_0x1fb7ec,_0x15a988=_0x29c3bb['id'],_0x37584d=_0x39b165?_0x39b165['id']:null;if(!_0x3523d5&&this['diff']&&this['diff']['newRevisionId']===_0x15a988&&this['diff']['oldRevisionId']===_0x37584d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x15a988,_0x37584d);const _0x5a925a=this['_getRevisionsRange'](_0x29c3bb,_0x39b165,!0x0)['map'](_0x3db7b7=>this['_utils']['loadRevisionData'](_0x3db7b7,this['adapter']));return _0x5a925a['push'](new Promise(_0x4de8ed=>{setTimeout(_0x4de8ed,0x14);})),Promise['all'](_0x5a925a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x487041=this['_getDiff'](_0x15a988,_0x37584d);for(const _0x48a2b3 of _0x487041['changes'])this['_changeIdToChange']['set'](_0x48a2b3['id'],_0x48a2b3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4269ff=>{for(const _0xd91901 of this['editor']['model']['document']['getRootNames']())_0x4269ff['detachRoot'](_0xd91901);for(const _0x334e83 of Object['keys'](_0x487041['model'])){const _0x15307e=_0x4269ff['addRoot'](_0x334e83);for(const _0x597140 of Object['keys'](_0x487041['attributes'][_0x334e83]))_0x4269ff['setAttribute'](_0x597140,_0x487041['attributes'][_0x334e83][_0x597140],_0x15307e);_0x4269ff['insert'](_0x487041['model'][_0x334e83],_0x15307e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x487041['changes'])),this['isReady']=!0x0;})['catch'](_0x594ae7=>{console['error'](_0x594ae7),this['_cleanUp'](),_0x4fc9a0&&(this['diff']=_0x4fc9a0),this['isReady']=!0x0;});}['addRevisionData'](_0x16dba7,_0x3fa86a){const _0x86828=this['repository']['createRevision'](_0x16dba7);return _0x86828['on']('_update',(_0x2dd0f9,_0x281601,_0x11ee11)=>_0x3fa86a(_0x281601,_0x11ee11,_0x86828)),this['repository']['addRevision'](_0x86828),_0x86828;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x23076d=>{for(const _0x74d55 of this['editor']['model']['document']['getRootNames']())_0x23076d['detachRoot'](_0x74d55);});}['_sortAndFilterDiffChanges'](_0x8d1b6e){const _0x9b1775=[],_0x4ce15e=new Map();for(const _0x203cee of this['editor']['model']['document']['getRootNames']()){const _0xa36d05=this['editor']['editing']['view']['getDomRoot'](_0x203cee);if(!_0xa36d05)continue;const _0x5b7a2f=_0xa36d05['getClientRects']()['item'](0x0);_0x5b7a2f&&(_0x9b1775['push'](_0x203cee),_0x4ce15e['set'](_0x203cee,_0x5b7a2f));}return _0x9b1775['sort']((_0x46007e,_0x5dbf8f)=>{const _0x32c6b7=_0x4ce15e['get'](_0x46007e),_0x34fd56=_0x4ce15e['get'](_0x5dbf8f);return _0x32c6b7['y']-_0x34fd56['y']||_0x32c6b7['x']-_0x34fd56['x'];}),(_0x8d1b6e=_0x8d1b6e['filter'](_0x4eff9e=>_0x9b1775['includes'](_0x4eff9e['rootName'])))['sort']((_0x5344c6,_0x7a3138)=>_0x9b1775['indexOf'](_0x5344c6['rootName'])-_0x9b1775['indexOf'](_0x7a3138['rootName'])),_0x8d1b6e;}['_makeTape'](_0x13b260){const _0x56358d=Array['from'](_0x13b260['markers'])['filter'](([_0x405a3a,_0x326fb4])=>_0x405a3a['startsWith']('revision:')&&!_0x326fb4['isCollapsed']),_0x46534b=Array['from'](this['editor']['model']['createRangeIn'](_0x13b260)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x56358d['length'])for(const _0x4b8092 of _0x46534b){const [_0x282cf3,_0x18b3cc]=_0x56358d[0x0],[,_0x4a3a7f,_0x6590e2]=_0x282cf3['split'](':');if(_0x18b3cc['end']['isEqual'](_0x4b8092['nextPosition'])&&_0x56358d['shift'](),(_0x4b8092['previousPosition']['isEqual'](_0x18b3cc['start'])||_0x4b8092['previousPosition']['isAfter'](_0x18b3cc['start']))&&('insertion'==_0x4a3a7f?_0x4b8092['isAdded']={'userId':_0x6590e2}:'deletion'==_0x4a3a7f&&(_0x4b8092['isRemoved']={'userId':_0x6590e2})),0x0==_0x56358d['length'])break;}return _0x46534b;}['_refreshStartEndIndex'](_0x58f340){const _0xc24733=new Map();for(let _0x121e8b=0x0;_0x121e8b<_0x58f340['length'];_0x121e8b++)'text'===_0x58f340[_0x121e8b]['type']?(_0x58f340[_0x121e8b]['item']['startIndex']=_0x121e8b,_0x58f340[_0x121e8b]['item']['endIndex']=_0x121e8b):('elementStart'===_0x58f340[_0x121e8b]['type']?_0x58f340[_0x121e8b]['item']['startIndex']=_0x121e8b:'elementEnd'===_0x58f340[_0x121e8b]['type']&&(_0x58f340[_0x121e8b]['item']['endIndex']=_0x121e8b),_0xc24733['set'](_0x58f340[_0x121e8b]['id'],_0x121e8b));for(const _0x26e446 of _0xc24733['values']())'elementStart'===_0x58f340[_0x26e446]['type']?_0x58f340[_0x26e446]['item']['endIndex']=_0xc24733['get'](_0x58f340[_0x26e446]['pairId']):'elementEnd'===_0x58f340[_0x26e446]['type']&&(_0x58f340[_0x26e446]['item']['startIndex']=_0xc24733['get'](_0x58f340[_0x26e446]['pairId']));}['_processTape'](_0x2f8d7c){for(let _0x53292c=0x0;_0x53292c<_0x2f8d7c['length'];_0x53292c++){if('elementStart'===_0x2f8d7c[_0x53292c]['type'])_0x2f8d7c[_0x53292c]['item']['startIndex']=_0x53292c;else{if('elementEnd'===_0x2f8d7c[_0x53292c]['type']){_0x2f8d7c[_0x53292c]['item']['endIndex']=_0x53292c;const _0x332d80=_0x2f8d7c[_0x53292c]['item']['startIndex'];_0x2f8d7c[_0x332d80]['pairId']=_0x2f8d7c[_0x53292c]['id'],_0x2f8d7c[_0x53292c]['pairId']=_0x2f8d7c[_0x332d80]['id'];}else _0x2f8d7c[_0x53292c]['item']['startIndex']=_0x53292c,_0x2f8d7c[_0x53292c]['item']['endIndex']=_0x53292c,_0x2f8d7c[_0x53292c]['pairId']=null;}_0x2f8d7c[_0x53292c]['markersStart']||(_0x2f8d7c[_0x53292c]['markersStart']=[],_0x2f8d7c[_0x53292c]['markersEnd']=[]);}}['_markInsertions'](_0x35a574,_0x34b71f){const _0x53f5cb=_0x35a574['filter'](_0x30429d=>!_0x30429d['isAdded']);for(let _0x164a0b=0x0;_0x164a0b<_0x34b71f['length'];_0x164a0b++)_0x34b71f[_0x164a0b]['isAdded']&&(_0x53f5cb[_0x164a0b]['isAdded']=_0x34b71f[_0x164a0b]['isAdded']);}['_getDiff'](_0x34c1e7,_0x2da6a9=null){const _0x322d28=this['repository']['getRevision'](_0x34c1e7),_0x405731=_0x2da6a9?this['repository']['getRevision'](_0x2da6a9):null,_0x385bc9=this['_getRevisionsRange'](_0x322d28,_0x405731),_0x493e3c=_0x385bc9[_0x385bc9['length']-0x1],_0x5e11b0=new Map(),_0x2f971e={'model':{},'attributes':{},'changes':[]},_0x39ac3f=new Set(),_0x52e4a6=new Map();for(let _0x4da13c=_0x385bc9['length']-0x1;_0x4da13c>=0x0;_0x4da13c--){const _0x399c0c=_0x385bc9[_0x4da13c];for(const _0xb2ae7f of Object['keys'](_0x399c0c['diffData']))if(_0x399c0c['diffData'][_0xb2ae7f]['attachChange']){const _0x3e9a87=_0x399c0c['diffData'][_0xb2ae7f]['attachChange'];_0x3e9a87['isAttached']?(_0x39ac3f['add'](_0xb2ae7f),_0x52e4a6['has'](_0xb2ae7f)&&_0x52e4a6['get'](_0xb2ae7f)['userId']==_0x3e9a87['userId']?_0x52e4a6['delete'](_0xb2ae7f):_0x52e4a6['set'](_0xb2ae7f,_0x3e9a87)):_0x52e4a6['has'](_0xb2ae7f)?(_0x39ac3f['delete'](_0xb2ae7f),_0x52e4a6['delete'](_0xb2ae7f)):(_0x39ac3f['add'](_0xb2ae7f),_0x52e4a6['set'](_0xb2ae7f,_0x3e9a87));}else _0x39ac3f['add'](_0xb2ae7f);}for(const _0x452461 of _0x39ac3f){const _0x141861=_0x52e4a6['has'](_0x452461)&&!_0x52e4a6['get'](_0x452461)['isAttached'];let _0x27153d=_0x141861?_0x385bc9['length']-0x1:0x0;const _0x335281=_0x141861?-0x1:0x1;for(;_0x385bc9[_0x27153d];){const _0x2e287f=_0x385bc9[_0x27153d];if(_0x2e287f['diffData'][_0x452461]){const _0x151772=_0x141861?_0x2e287f['diffData'][_0x452461]['attributesBefore']:_0x2e287f['diffData'][_0x452461]['attributesAfter'];_0x2f971e['attributes'][_0x452461]=_0x151772?_0xf1f293(_0x151772):{};break;}_0x27153d+=_0x335281;}}for(const _0x5e523b of _0x385bc9){_0x5e523b['model']={};for(const _0x783376 of _0x5e523b['authors'])_0x5e11b0['set'](_0x783376['id'],_0x783376);for(const _0x3eabed of _0x39ac3f){const _0x235bbb=_0x5e523b['diffData'][_0x3eabed]?_0x5e523b['diffData'][_0x3eabed]['insertions']:'[]',_0x55820a=_0x5e523b['diffData'][_0x3eabed]?_0x5e523b['diffData'][_0x3eabed]['deletions']:'[]';_0x5e523b['model'][_0x3eabed]={'insertions':this['_utils']['_makeModelFromViewString'](_0x235bbb),'deletions':this['_utils']['_makeModelFromViewString'](_0x55820a)};}}for(const _0x855d48 of _0x39ac3f){let _0x1815ad=null,_0xc60a8e=0x0;const _0x2121fd=new Map(Array['from'](_0x322d28['model'][_0x855d48]['insertions']['markers'])['filter'](([_0x1914d8])=>!_0x1914d8['startsWith']('revision:')));let _0x2cc68d=0x0;for(const _0x3b8a8c of _0x385bc9){const _0x1880d0=this['_makeTape'](_0x3b8a8c['model'][_0x855d48]['insertions']);_0x3b8a8c==_0x322d28?(_0x1815ad=_0x1880d0,_0xc60a8e=_0x1815ad['length'],_0x1815ad['forEach'](_0x132160=>{_0x132160['id']=_0x2cc68d++;}),this['_processTape'](_0x1815ad)):this['_markInsertions'](_0x1815ad,_0x1880d0);const _0x3463dc=_0x1815ad['filter'](_0x39bf0f=>!_0x39bf0f['isAdded'])['map'](_0x53114e=>_0x53114e['id']);let _0x5f5742=0x0;const _0x5afbd6=this['_makeTape'](_0x3b8a8c['model'][_0x855d48]['deletions']);_0x5afbd6['forEach'](_0x22afac=>{_0x22afac['isRemoved']?_0x22afac['id']=_0xc60a8e++:_0x22afac['id']=_0x3463dc[_0x5f5742++];}),this['_processTape'](_0x5afbd6),this['_setDistance'](_0x1815ad,'isAdded'),this['_setDistance'](_0x5afbd6,'isRemoved'),_0x3b8a8c==_0x322d28&&this['_markMarkers'](_0x1815ad,_0x2121fd),_0x1815ad=this['_joinTapes'](_0x1815ad,_0x5afbd6),this['_refreshStartEndIndex'](_0x1815ad),this['_setDistance'](_0x1815ad,'isRemoved');}_0x1815ad=_0x1815ad['filter'](_0x2058ca=>!(_0x2058ca['isAdded']&&_0x2058ca['isRemoved']));const _0x3cd72b=new Map(_0x493e3c['model'][_0x855d48]['deletions']['markers']),_0x34a65a=new Set(_0x2121fd['keys']());for(const _0xadde9f of _0x3cd72b['keys']())_0x34a65a['delete'](_0xadde9f);this['_markSuggestions'](_0x1815ad,_0x34a65a),this['_fixObsoleteTags'](_0x1815ad),_0x1815ad=this['_removeMissingPairs'](_0x1815ad),_0x1815ad=this['_markMismatchedRemovedTags'](_0x1815ad),_0x1815ad=this['_removeUnsupportedChanges'](_0x1815ad);const {root:_0x492c85,changes:_0x515fba}=this['_makeModelFromTape'](_0x1815ad,_0x5e11b0,_0x855d48);_0x2f971e['model'][_0x855d48]=_0x492c85;const _0x524f3c=_0x52e4a6['get'](_0x855d48);if(_0x524f3c){const _0xbb4a4b=_0x5e11b0['get'](_0x524f3c['userId']),_0x4cf610=new r({'author':_0xbb4a4b,'type':_0x524f3c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x855d48});_0x515fba['unshift'](_0x4cf610),_0x2f971e['attributes'][_0x855d48]['revisionHistoryAttachChange']=_0x4cf610['id'];}_0x2f971e['changes']=_0x2f971e['changes']['concat'](_0x515fba);}return _0x2f971e;}['_markMarkers'](_0x23b380,_0xb31909){for(let _0x4eaef0=0x0;_0x4eaef0<_0x23b380['length'];_0x4eaef0++)for(const [_0xd3c3c3,_0x474fab]of _0xb31909)!_0x474fab['isCollapsed']&&_0x474fab['start']['isEqual'](_0x23b380[_0x4eaef0]['previousPosition'])&&_0x23b380[_0x4eaef0]['markersStart']['push'](_0xd3c3c3),_0x474fab['end']['isEqual'](_0x23b380[_0x4eaef0]['nextPosition'])&&_0x23b380[_0x4eaef0]['markersEnd']['push'](_0xd3c3c3);}['_joinTapes'](_0x1a8f58,_0x1526db){let _0x37f63e=[],_0x2437c7=0x0,_0x37ed7e=0x0;for(;_0x2437c7<_0x1a8f58['length']||_0x37ed7e<_0x1526db['length'];){const _0x31f03a=_0x1a8f58[_0x2437c7]||{},_0x2a6b6b=_0x1526db[_0x37ed7e]||{};if(_0x31f03a['id']==_0x2a6b6b['id'])_0x2437c7++,_0x37ed7e++,_0x37f63e['push'](_0x31f03a);else{if(_0x2a6b6b['isRemoved']&&_0x31f03a['isAdded']){const {commonTape:_0x5c5e2c,iEnd:_0x20d3ae,jEnd:_0x4bdfdb}=this['_threeWayMerge'](_0x1a8f58,_0x2437c7,_0x1526db,_0x37ed7e);_0x37f63e=_0x37f63e['concat'](_0x5c5e2c),_0x2437c7=_0x20d3ae,_0x37ed7e=_0x4bdfdb;}else _0x2a6b6b['isRemoved']?(_0x37ed7e++,_0x37f63e['push'](_0x2a6b6b)):(_0x2437c7++,_0x37f63e['push'](_0x31f03a));}}return _0x37f63e;}['_markSuggestions'](_0x27d7df,_0x3521c5){const _0x432400=[];for(let _0x379b47=0x0;_0x379b47<_0x27d7df['length'];_0x379b47++){for(let _0x242550=0x0;_0x242550<_0x27d7df[_0x379b47]['markersStart']['length'];_0x242550++){const _0x1ac9b5=_0x27d7df[_0x379b47]['markersStart'][_0x242550];if(!_0x3521c5['has'](_0x1ac9b5))continue;const {group:_0x2e2b65,type:_0x37039c,authorId:_0x19f1b8}=_0x63da53(_0x1ac9b5);'revision-suggestion'!=_0x2e2b65||'insertion'!=_0x37039c&&'deletion'!=_0x37039c||(_0x432400['unshift']({'type':_0x37039c,'name':_0x1ac9b5,'userId':_0x19f1b8}),_0x27d7df[_0x379b47]['markersStart']['splice'](_0x242550,0x1),_0x242550--);}_0x27369e(_0x27d7df[_0x379b47]);for(let _0x1e78be=0x0;_0x1e78be<_0x27d7df[_0x379b47]['markersEnd']['length'];_0x1e78be++){const _0x5b3fbd=_0x27d7df[_0x379b47]['markersEnd'][_0x1e78be];if(!_0x3521c5['has'](_0x5b3fbd))continue;const {group:_0x43a359,type:_0x2cfd0d}=_0x63da53(_0x5b3fbd);if('revision-suggestion'!=_0x43a359||'insertion'!=_0x2cfd0d&&'deletion'!=_0x2cfd0d)continue;_0x27d7df[_0x379b47]['markersEnd']['splice'](_0x1e78be,0x1),_0x1e78be--;const _0x2bdc76=_0x432400['findIndex'](_0x492661=>_0x492661['name']==_0x5b3fbd);_0x2bdc76>-0x1&&_0x432400['splice'](_0x2bdc76,0x1);}}function _0x63da53(_0x236aa5){const _0x43c9cb=_0x236aa5['split'](':');return{'group':_0x43c9cb[0x0],'type':_0x43c9cb[0x1],'subType':_0x43c9cb['length']>=0x5?_0x43c9cb[0x2]:null,'id':_0x43c9cb['length']<0x5?_0x43c9cb[0x2]:_0x43c9cb[0x3],'authorId':_0x43c9cb['length']<0x5?_0x43c9cb[0x3]:_0x43c9cb[0x4],'markerCount':0x6==_0x43c9cb['length']?_0x43c9cb[0x5]:null};}function _0x27369e(_0x19e5c3){for(let _0x26dc0f=0x0;_0x26dc0f<_0x432400['length'];_0x26dc0f++){if(_0x19e5c3['isAdded']&&'insertion'==_0x432400[_0x26dc0f]['type']&&_0x19e5c3['isAdded']['userId']==_0x432400[_0x26dc0f]['userId'])return _0x19e5c3['isAddSuggestion']=_0x432400[_0x26dc0f],void delete _0x19e5c3['isAdded'];if(!_0x19e5c3['isAdded']&&!_0x19e5c3['isRemoved']&&'deletion'==_0x432400[_0x26dc0f]['type'])return void(_0x19e5c3['isRemoveSuggestion']=_0x432400[_0x26dc0f]);}}}['_setDistance'](_0x2f8435,_0x4d18e2){let _0x209802=0x0,_0x35b661=!0x1;const _0x2a8889=new Map();for(const _0x26542c of _0x2f8435)_0x26542c[_0x4d18e2]?_0x35b661&&(_0x209802++,_0x35b661=!0x1):(_0x209802++,_0x35b661=!0x0),_0x2a8889['set'](_0x26542c['id'],_0x209802);for(let _0x11d2e3=0x0;_0x11d2e3<_0x2f8435['length'];_0x11d2e3++){if('isRemoved'==_0x4d18e2&&_0x2f8435[_0x11d2e3]['isAdded']||'isAdded'==_0x4d18e2&&_0x2f8435[_0x11d2e3]['isRemoved'])continue;if('text'==_0x2f8435[_0x11d2e3]['type']){_0x2f8435[_0x11d2e3]['distance']=0x0;continue;}const _0x2b80f4=_0x2a8889['get'](_0x2f8435[_0x11d2e3]['pairId']),_0x1b1352=_0x2a8889['get'](_0x2f8435[_0x11d2e3]['id']);_0x2f8435[_0x11d2e3]['distance']=_0x2b80f4-_0x1b1352;}}['_getRevisionsRange'](_0x382b9d,_0x3d298b,_0x2cfe71=!0x1){const _0x263650=[];let _0x4849e8=this['repository']['getIndex'](_0x382b9d),_0x1b6cb6=this['repository']['getIndex'](_0x3d298b);for(-0x1==_0x1b6cb6&&(_0x1b6cb6=this['repository']['_revisions']['length'],_0x2cfe71=!0x1);_0x4849e8<_0x1b6cb6;)_0x263650['push'](this['repository']['getRevision'](_0x4849e8)),_0x4849e8++;return _0x2cfe71&&_0x263650['push'](this['repository']['getRevision'](_0x4849e8)),_0x263650;}['_threeWayMerge'](_0x4e6f93,_0x1a79fe,_0x549913,_0x159645){const _0x3e2371=this['editor']['model']['schema'];let _0x2f253c=_0x1a79fe;for(;_0x4e6f93[_0x2f253c]&&_0x4e6f93[_0x2f253c]['isAdded'];)_0x2f253c++;let _0x5160b9=_0x159645;for(;_0x549913[_0x5160b9]&&_0x549913[_0x5160b9]['isRemoved'];)_0x5160b9++;_0x29a96e(_0x4e6f93,_0x1a79fe,_0x2f253c),_0x29a96e(_0x549913,_0x159645,_0x5160b9);const _0x4f8d9b=_0x549913['slice'](_0x159645,_0x5160b9)['concat'](_0x4e6f93['slice'](_0x1a79fe,_0x2f253c));return _0x4f8d9b['sort']((_0x4fe030,_0x19aecd)=>_0x4fe030['side']!=_0x19aecd['side']?_0x4fe030['side']-_0x19aecd['side']:_0x4fe030['level']!=_0x19aecd['level']?_0x4fe030['level']-_0x19aecd['level']:_0x4fe030['distance']!=_0x19aecd['distance']?_0x19aecd['distance']-_0x4fe030['distance']:!!_0x4fe030['isAdded']!=!!_0x19aecd['isAdded']?-0x1==_0x4fe030['side']||0x0==_0x4fe030['side']?_0x4fe030['isAdded']?-0x1:0x1:_0x4fe030['isAdded']?0x1:-0x1:_0x4fe030['index']-_0x19aecd['index']),{'commonTape':_0x4f8d9b,'iEnd':_0x2f253c,'jEnd':_0x5160b9};function _0x29a96e(_0x191f8d,_0x5d3edb,_0x5e80d4){let _0xc09f67=-0x1,_0x9774ae=Number['POSITIVE_INFINITY'],_0x54fca3=!0x0;for(let _0xfd4e85=_0x5d3edb;_0xfd4e85<_0x5e80d4;_0xfd4e85++)if(_0x3e2371['isInline'](_0x191f8d[_0xfd4e85]['item'])||(_0x54fca3=!0x1),_0x191f8d[_0xfd4e85]['item']['startIndex']<_0x5d3edb&&(_0xc09f67=_0xfd4e85),_0x191f8d[_0xfd4e85]['item']['endIndex']>=_0x5e80d4){_0x9774ae=_0xfd4e85;break;}_0x54fca3&&(_0xc09f67=_0x5e80d4-0x1);for(let _0x78c563=_0x5d3edb;_0x78c563<_0x5e80d4;_0x78c563++)_0x191f8d[_0x78c563]['side']=_0x78c563<=_0xc09f67?-0x1:_0x78c563<_0x9774ae?0x0:0x1,_0x191f8d[_0x78c563]['index']=_0x78c563;let _0x5e2d18=0x0;for(let _0x46b587=_0x5d3edb;_0x46b587<=_0xc09f67;_0x46b587++)0x0==_0x191f8d[_0x46b587]['distance']?_0x191f8d[_0x46b587]['level']=_0x5e2d18:(_0x5e2d18++,_0x191f8d[_0x46b587]['level']=_0x5e2d18,_0x5e2d18++);for(let _0x426ca0=_0x5d3edb;_0x426ca0<_0x5e80d4;_0x426ca0++)0x0==_0x191f8d[_0x426ca0]['side']&&(_0x191f8d[_0x426ca0]['level']=_0x5e2d18);_0x5e2d18=0x0;for(let _0x430a0a=_0x5e80d4-0x1;_0x430a0a>=_0x9774ae;_0x430a0a--)0x0==_0x191f8d[_0x430a0a]['distance']?_0x191f8d[_0x430a0a]['level']=_0x5e2d18:(_0x5e2d18--,_0x191f8d[_0x430a0a]['level']=_0x5e2d18,_0x5e2d18--);}}['_fixObsoleteTags'](_0x1c961b){const _0xeddd0e=new Map(),_0xd74167=this['editor']['model']['schema'];for(let _0x48ae4e=0x1;_0x48ae4e<_0x1c961b['length'];_0x48ae4e++){let _0x4d8440,_0x386223,_0x577e41;const _0x206069=_0x1c961b[_0x48ae4e],_0x25dfa6=_0x1c961b[_0x48ae4e-0x1];if('text'==_0x206069['type'])continue;if(_0x206069['type']!=_0x25dfa6['type'])continue;if(!_0xd74167['isBlock'](_0x25dfa6['item'])||_0xd74167['isLimit'](_0x25dfa6['item']))continue;if(!_0xd74167['isBlock'](_0x206069['item'])||_0xd74167['isLimit'](_0x206069['item']))continue;if((_0x1c961b[_0x48ae4e]['isAdded']||_0x1c961b[_0x48ae4e]['isAddSuggestion'])&&_0x1c961b[_0x48ae4e-0x1]['isRemoved'])_0x4d8440=_0x1c961b[_0x48ae4e],_0x386223=_0x1c961b[_0x48ae4e-0x1],_0x577e41=_0x48ae4e-0x1;else{if(!_0x1c961b[_0x48ae4e]['isRemoved']||!_0x1c961b[_0x48ae4e-0x1]['isAdded']&&!_0x1c961b[_0x48ae4e-0x1]['isAddSuggestion'])continue;_0x4d8440=_0x1c961b[_0x48ae4e-0x1],_0x386223=_0x1c961b[_0x48ae4e],_0x577e41=_0x48ae4e;}const _0x3b4ba9=_0x4d8440['level']==_0x386223['level'],_0x44b9d4=Math['abs'](_0x4d8440['level'])<Math['abs'](_0x386223['level'])&&0x0==_0x386223['distance'];(_0x3b4ba9||_0x44b9d4)&&(_0xeddd0e['set'](_0x386223['id'],_0x4d8440['id']),_0x1c961b['splice'](_0x577e41,0x1),_0x48ae4e--,_0x4d8440['isAdded']=!0x1);}for(let _0x3ae1bc=0x0;_0x3ae1bc<_0x1c961b['length'];_0x3ae1bc++)_0xeddd0e['has'](_0x1c961b[_0x3ae1bc]['pairId'])&&(_0x1c961b[_0x3ae1bc]['pairId']=_0xeddd0e['get'](_0x1c961b[_0x3ae1bc]['pairId']));}['_removeMissingPairs'](_0x46794e){const _0x40be7e=new Set(_0x46794e['map'](_0x3caec8=>_0x3caec8['id']));for(let _0x2ab9d9=0x0;_0x2ab9d9<_0x46794e['length'];_0x2ab9d9++)_0x40be7e['has'](_0x46794e[_0x2ab9d9]['pairId'])||0x0==_0x46794e[_0x2ab9d9]['distance']||(_0x46794e[_0x2ab9d9]['isIncorrect']=!0x0);return _0x46794e['filter'](_0x3705cc=>!_0x3705cc['isIncorrect']);}['_markMismatchedRemovedTags'](_0x32fe75){const _0x3f29be=new Set();for(let _0x541715=0x0;_0x541715<_0x32fe75['length'];_0x541715++){if(_0x3f29be['has'](_0x32fe75[_0x541715]['id'])&&_0x32fe75[_0x541715]['isRemoved']&&(_0x32fe75[_0x541715]['isIncorrect']=!0x0),_0x32fe75[_0x541715]['isIncorrect'])continue;if(0x0==_0x32fe75[_0x541715]['distance'])continue;if('elementStart'!=_0x32fe75[_0x541715]['type'])continue;if(null==_0x32fe75[_0x541715]['pairId'])continue;let _0x11c6b2=_0x541715+0x1,_0x4c318e=0x0;for(;_0x32fe75[_0x11c6b2]['id']!=_0x32fe75[_0x541715]['pairId'];)'elementStart'==_0x32fe75[_0x11c6b2]['type']?_0x4c318e++:'elementEnd'==_0x32fe75[_0x11c6b2]['type']&&_0x4c318e--,_0x11c6b2++;if(0x0!=_0x4c318e){if(_0x32fe75[_0x541715]['isRemoved'])_0x32fe75[_0x541715]['isIncorrect']=!0x0;else{for(;_0x11c6b2!=_0x541715;)_0x32fe75[_0x11c6b2]['isRemoved']&&0x0!=_0x32fe75[_0x11c6b2]['distance']&&(_0x32fe75[_0x11c6b2]['isIncorrect']=!0x0,_0x3f29be['add'](_0x32fe75[_0x11c6b2]['pairId'])),_0x11c6b2--;}}}return _0x32fe75['filter'](_0x12ee95=>!_0x12ee95['isIncorrect']);}['_removeUnsupportedChanges'](_0x25500a){const _0x4e96a5=this['editor']['model']['schema'];for(let _0x1b562=0x0;_0x1b562<_0x25500a['length'];_0x1b562++){if(!(_0x25500a[_0x1b562]['isAdded']||_0x25500a[_0x1b562]['isAddSuggestion']||_0x25500a[_0x1b562]['isRemoved']||_0x25500a[_0x1b562]['isRemoveSuggestion']))continue;if(0x0==_0x25500a[_0x1b562]['distance'])continue;const _0x2ddaff=_0x25500a[_0x1b562]['item'];_0x4e96a5['isBlock'](_0x2ddaff)||_0x4e96a5['isLimit'](_0x2ddaff)||(_0x25500a[_0x1b562]['isAdded']&&delete _0x25500a[_0x1b562]['isAdded'],_0x25500a[_0x1b562]['isAddSuggestion']&&delete _0x25500a[_0x1b562]['isAddSuggestion'],_0x25500a[_0x1b562]['isRemoveSuggestion']&&delete _0x25500a[_0x1b562]['isRemoveSuggestion'],_0x25500a[_0x1b562]['isRemoved']&&(_0x25500a[_0x1b562]['isIncorrect']=!0x0));}return _0x25500a['filter'](_0x48c07e=>!_0x48c07e['isIncorrect']);}['_makeModelFromTape'](_0x3759dc,_0x19e165,_0xd3638c){const _0x1df66c=new vt(),_0x41f9f8=[],_0x5dc1a3=new Map(),_0x15b4ab=this['editor']['model'],_0xc8765c=_0x15b4ab['schema'],_0x347a85=[_0x1df66c],_0x221504={},_0x1d34cb={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x55ee5f=null;const _0x10ba0a=[0x0];for(let _0x2fefd7=0x0;_0x2fefd7<_0x3759dc['length'];_0x2fefd7++)if('elementStart'===_0x3759dc[_0x2fefd7]['type']){_0x3759dc[_0x2fefd7]['previousPosition']=_0x15b4ab['createPositionFromPath'](_0x1df66c,_0x10ba0a);const _0x3c784e=new ut(_0x3759dc[_0x2fefd7]['item']['name'],_0x3759dc[_0x2fefd7]['item']['getAttributes']());_0x347a85[0x0]['_appendChild'](_0x3c784e),_0x10ba0a['push'](0x0),_0x347a85['unshift'](_0x3c784e),_0x3759dc[_0x2fefd7]['nextPosition']=_0x15b4ab['createPositionFromPath'](_0x1df66c,_0x10ba0a);}else'elementEnd'===_0x3759dc[_0x2fefd7]['type']?(_0x347a85['shift'](),_0x3759dc[_0x2fefd7]['previousPosition']=_0x15b4ab['createPositionFromPath'](_0x1df66c,_0x10ba0a),_0x10ba0a['pop'](),_0x10ba0a[_0x10ba0a['length']-0x1]++,_0x3759dc[_0x2fefd7]['nextPosition']=_0x15b4ab['createPositionFromPath'](_0x1df66c,_0x10ba0a)):(_0x3759dc[_0x2fefd7]['previousPosition']=_0x15b4ab['createPositionFromPath'](_0x1df66c,_0x10ba0a),_0x55ee5f?_0x55ee5f['_data']+=_0x3759dc[_0x2fefd7]['item']['data']:_0x55ee5f=new gt(_0x3759dc[_0x2fefd7]['item']['data'],_0x3759dc[_0x2fefd7]['item']['getAttributes']()),_0x3759dc[_0x2fefd7+0x1]&&'text'===_0x3759dc[_0x2fefd7+0x1]['type']&&_0x49fcd3(_0x55ee5f,_0x3759dc[_0x2fefd7+0x1]['item'])||(_0x347a85[0x0]['_appendChild'](_0x55ee5f),_0x55ee5f=null),_0x10ba0a[_0x10ba0a['length']-0x1]+=_0x3759dc[_0x2fefd7]['item']['offsetSize'],_0x3759dc[_0x2fefd7]['nextPosition']=_0x15b4ab['createPositionFromPath'](_0x1df66c,_0x10ba0a));for(let _0xc3daee=0x0;_0xc3daee<_0x3759dc['length'];_0xc3daee++){const _0x23db45=_0x3759dc[_0xc3daee]['previousPosition'],_0x270a12=_0x3759dc[_0xc3daee]['nextPosition'];for(const _0x120465 of _0x3759dc[_0xc3daee]['markersStart'])_0x5dc1a3['set'](_0x120465,{'start':_0x23db45,'end':null});_0x5e2c5e('isRemoveSuggestion',_0xc3daee,_0x23db45,_0x270a12),_0x5e2c5e('isAddSuggestion',_0xc3daee,_0x23db45,_0x270a12),_0x5e2c5e('isRemoved',_0xc3daee,_0x23db45,_0x270a12),_0x5e2c5e('isAdded',_0xc3daee,_0x23db45,_0x270a12);for(const _0xf62bd2 of _0x3759dc[_0xc3daee]['markersEnd']){const _0x419afd=_0x5dc1a3['get'](_0xf62bd2);_0x419afd?_0x419afd['end']=_0x270a12:_0x5dc1a3['set'](_0xf62bd2,{'start':_0x270a12,'end':_0x270a12});}}for(const [_0x59b73a,_0xa9f50d]of _0x5dc1a3){const _0x5c7572=this['editor']['model']['createRange'](_0xa9f50d['start'],_0xa9f50d['end']);_0x1df66c['markers']['set'](_0x59b73a,_0x5c7572);}return _0x41f9f8['sort']((_0x26e8a1,_0x5be9b8)=>{const _0x634f56=_0x1df66c['markers']['get']('revision:'+_0x26e8a1['id']),_0x3c6742=_0x1df66c['markers']['get']('revision:'+_0x5be9b8['id']);return _0x634f56['start']['isBefore'](_0x3c6742['start'])?-0x1:_0x634f56['start']['isAfter'](_0x3c6742['start'])?0x1:_0x634f56['end']['isBefore'](_0x3c6742['end'])?-0x1:_0x634f56['end']['isAfter'](_0x3c6742['end'])?0x1:'add'===_0x26e8a1['type']?-0x1:0x1;}),{'root':_0x1df66c,'changes':_0x41f9f8};function _0x5e2c5e(_0x417585,_0x4b34ba,_0x2cbb2c,_0x25f89c){const _0x27e222=!!_0x3759dc[_0x4b34ba][_0x417585],_0x5e61d3=_0x27e222?_0x3759dc[_0x4b34ba][_0x417585]['userId']:null,_0xda8c17=_0x4b34ba===_0x3759dc['length']-0x1,_0x5bfd6d=_0x1d34cb[_0x417585][0x0],_0x2c28ab=_0xc8765c['isObject'](_0x3759dc[_0x4b34ba]['item']);!_0x221504[_0x417585]&&_0x27e222?_0x221504[_0x417585]={'start':_0x2cbb2c,'tapeItem':_0x3759dc[_0x4b34ba],'userId':_0x5e61d3,'type':_0x417585}:_0x221504[_0x417585]&&!_0x27e222?(_0x221504[_0x417585]['end']=_0x2cbb2c,_0x17db8d(_0x221504[_0x417585]),_0x221504[_0x417585]=null):_0x221504[_0x417585]&&_0x27e222&&_0x221504[_0x417585]['userId']!==_0x5e61d3&&(_0x221504[_0x417585]['end']=_0x2cbb2c,_0x5bfd6d&&_0x5bfd6d['userId']===_0x221504[_0x417585]['userId']||_0x17db8d(_0x221504[_0x417585]),_0x221504[_0x417585]={'start':_0x2cbb2c,'tapeItem':_0x3759dc[_0x4b34ba],'userId':_0x5e61d3,'type':_0x417585}),_0x221504[_0x417585]&&_0x2c28ab&&('elementStart'!==_0x3759dc[_0x4b34ba]['type']||_0x5bfd6d&&_0x5bfd6d['userId']===_0x5e61d3||_0x1d34cb[_0x417585]['unshift']({'userId':_0x5e61d3,'object':_0x3759dc[_0x4b34ba]['item'],'change':_0x221504[_0x417585]}),'elementEnd'===_0x3759dc[_0x4b34ba]['type']&&_0x5bfd6d&&_0x5bfd6d['object']===_0x3759dc[_0x4b34ba]['item']&&(_0x1d34cb[_0x417585]['shift'](),_0x221504[_0x417585]=_0x5bfd6d['change'])),_0x221504[_0x417585]&&_0xda8c17&&(_0x221504[_0x417585]['end']=_0x25f89c,_0x17db8d(_0x221504[_0x417585]),_0x221504[_0x417585]=null);}function _0x17db8d({start:_0x452b22,end:_0x10eefe,tapeItem:_0x38215f,userId:_0x4f3f63,type:_0x3dcd8b}){const _0x37ac68=_0x38215f['item'],_0x25154d=_0x15b4ab['schema']['isBlock'](_0x37ac68)&&!_0x15b4ab['schema']['isLimit'](_0x37ac68),_0x63d2f5=_0x452b22['nodeAfter']==_0x10eefe['parent']&&_0x10eefe['isAtStart'];if(_0x25154d&&_0x63d2f5)return;const _0x38815e=_0x15b4ab['createRange'](_0x452b22,_0x10eefe),_0x54ef0c=_0x19e165['get'](_0x4f3f63),_0x318beb=new r({'author':_0x54ef0c,'type':'isAdded'==_0x3dcd8b||'isAddSuggestion'==_0x3dcd8b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3dcd8b||'isRemoveSuggestion'==_0x3dcd8b},'createdAt':new Date(),'rootName':_0xd3638c});_0x41f9f8['push'](_0x318beb),_0x1df66c['markers']['set']('revision:'+_0x318beb['id'],_0x38815e);}function _0x49fcd3(_0x256b8c,_0x21a192){const _0x3cd324=_0x256b8c['getAttributes'](),_0x3d23a6=_0x21a192['getAttributes']();for(const _0x3d70f9 of _0x3cd324){if(_0x3d70f9[0x1]!==_0x21a192['getAttribute'](_0x3d70f9[0x0]))return!0x1;_0x3d23a6['next']();}return _0x3d23a6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2bce61=>{const _0x3c6681=_0x2bce61['markerName']['split'](':')[0x1],_0x4b163e=this['_getChangeFromId'](_0x3c6681);if(!_0x4b163e)return null;const _0x2fc40e='add'==_0x4b163e['type']?'insertion':'deletion',_0x33b519=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2fc40e];return _0x4b163e['data']['isSuggestion']&&_0x33b519['push']('ck-suggestion-marker-'+_0x2fc40e+'-new'),this['activeChange']==_0x4b163e&&_0x33b519['push']('ck-suggestion-marker--active'),{'classes':_0x33b519,'attributes':{'data-change-id':_0x3c6681}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e7976=>{_0x5e7976['on']('element:pre',(_0x19a61e,_0xdf7dd3,_0x21056c)=>{const _0x1b8909=_0xdf7dd3['viewItem']['getChild'](0x0);if(!_0x1b8909||!_0x1b8909['is']('element','code'))return;if(!_0x21056c['consumable']['consume'](_0x1b8909,{'attributes':['vid_start','vid_end']}))return;const _0x4256df=_0xdf7dd3['modelRange']['start']['nodeAfter'];_0x21056c['writer']['setAttribute']('vid_start',_0x1b8909['getAttribute']('vid_start'),_0x4256df),_0x21056c['writer']['setAttribute']('vid_end',_0x1b8909['getAttribute']('vid_end'),_0x4256df);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1fe7e8=>{_0x1fe7e8['on']('element',(_0x28974e,_0x1aa717,_0x5ca203)=>{if(!_0x5ca203['consumable']['consume'](_0x1aa717['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1aa717['modelRange']['isCollapsed'])return;const _0x5e448e=_0x1aa717['modelRange']['start']['nodeAfter'];_0x5e448e['hasAttribute']('vid_start')||_0x5e448e['hasAttribute']('vid')||(_0x5ca203['writer']['setAttribute']('vid_start',_0x1aa717['viewItem']['getAttribute']('vid_start'),_0x5e448e),_0x5ca203['writer']['setAttribute']('vid_end',_0x1aa717['viewItem']['getAttribute']('vid_end'),_0x5e448e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5e3e8f=>_0x5e3e8f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x86803,[,_0x1d5b54])=>{['vid_start','vid_end','vid']['includes'](_0x1d5b54)&&(_0x86803['return']=!0x0,_0x86803['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xd149a9=>{_0xd149a9['on']('attribute:vid',(_0x73315f,_0x3526f8,_0xbbcccc)=>{if('\x20'!=_0x3526f8['item']['data']||_0x3526f8['item']['parent']['maxOffset']>0x1)return;if(!_0xbbcccc['consumable']['consume'](_0x3526f8['item'],_0x73315f['name']))return;const _0x706651=_0xbbcccc['writer'],_0x258f99=_0xbbcccc['mapper']['toViewRange'](_0x3526f8['range']);_0x706651['wrap'](_0x258f99,_0x706651['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4eaaa0){const _0x1dcf43=_0x4eaaa0['plugins']['get']('RevisionViewer');return(_0x3646c9,_0x1cc447,_0x263b5a)=>{const _0x2ed0f6=_0x1cc447['markerName']['split'](':')[0x1],_0x4b9d78=_0x1dcf43['_getChangeFromId'](_0x2ed0f6);if(!_0x4b9d78)return null;const _0x53c2be='add'==_0x4b9d78['type']?'split':'merge';if(!_0x263b5a['consumable']['test'](_0x1cc447['markerRange'],_0x3646c9['name']))return;const _0x1c09ee=_0x1cc447['markerRange']['getWalker'](),_0x4fc484=_0x1cc447['markerRange']['start'],_0x48c7ff=_0x4eaaa0['model']['schema'];let _0x4a1aae=null,_0x2d2315=null,_0x216ef8=!0x1,_0x4b3514=!0x1;for(const _0x25bb91 of _0x1c09ee){const _0x1999a5=_0x25bb91['item'];_0x216ef8=_0x216ef8||_0x48c7ff['isContent'](_0x1999a5);const _0x40b833=_0x263b5a['mapper']['toViewElement'](_0x1999a5);if(_0x40b833&&_0x40b833['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25bb91['type']&&(_0x48c7ff['isBlock'](_0x1999a5)&&!_0x48c7ff['isLimit'](_0x1999a5)&&(_0x1999a5['nextSibling']||_0x4fc484['isAtEnd']?_0x4a1aae&&_0x4a1aae['parent']==_0x1999a5||(_0x4a1aae=_0x1999a5,_0xd3b8f(_0x25bb91['previousPosition']),_0x4b3514=!0x0):_0x2d2315=_0x2d2315||_0x25bb91['previousPosition']));}function _0xd3b8f(_0x456017){const _0x50c9ad=_0x263b5a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x53c2be}),_0x29a8d1=_0x263b5a['mapper']['toViewPosition'](_0x456017);_0x4b9d78['data']['isSuggestion']&&_0x263b5a['writer']['addClass']('ck-suggestion-marker-'+_0x53c2be+'-new',_0x50c9ad),_0x1dcf43['activeChange']==_0x4b9d78&&_0x263b5a['writer']['addClass']('ck-suggestion-marker--active',_0x50c9ad),_0x263b5a['writer']['insert'](_0x29a8d1,_0x50c9ad),_0x263b5a['mapper']['bindElementToMarker'](_0x50c9ad,_0x1cc447['markerName']);}_0x216ef8||_0x4b3514||!_0x2d2315||_0xd3b8f(_0x2d2315);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x962a7f,_0x339540,_0x38bf9a)=>{const _0x1c2c8b=_0x38bf9a['mapper']['markerNameToElements'](_0x339540['markerName']);if(_0x1c2c8b){for(const _0x12153d of _0x1c2c8b)(_0x12153d['hasClass']('ck-suggestion-marker-split')||_0x12153d['hasClass']('ck-suggestion-marker-merge'))&&(_0x38bf9a['mapper']['unbindElementFromMarkerName'](_0x12153d,_0x339540['markerName']),_0x38bf9a['writer']['remove'](_0x12153d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2d1011,_0x1649cc,_0x8564bd)=>{const _0x8597a2=_0x1649cc['markerName']['split'](':')[0x1],_0x30705d=this['_getChangeFromId'](_0x8597a2);if(!_0x30705d)return null;const _0x15bf43='add'==_0x30705d['type']?'split':'merge';if(_0x8564bd['consumable']['test'](_0x1649cc['markerRange'],_0x2d1011['name']))for(const _0x4038d9 of _0x1649cc['markerRange']['getItems']()){if(!_0x4038d9['is']('element','softBreak'))continue;const _0x158ca5=_0x8564bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15bf43}),_0x2f84c=_0x8564bd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4038d9));_0x30705d['data']['isSuggestion']&&_0x8564bd['writer']['addClass']('ck-suggestion-marker-'+_0x15bf43+'-new',_0x158ca5),this['activeChange']==_0x30705d&&_0x8564bd['writer']['addClass']('ck-suggestion-marker--active',_0x158ca5),_0x8564bd['writer']['insert'](_0x2f84c,_0x158ca5),_0x8564bd['mapper']['bindElementToMarker'](_0x158ca5,_0x1649cc['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5aa35a=>{for(const _0x59f13e of this['editor']['model']['document']['getRootNames']()){const _0x538a74=this['editor']['model']['document']['getRoot'](_0x59f13e),_0x311899=this['editor']['editing']['view']['document']['getRoot'](_0x59f13e);if(_0x311899){const _0x3d5de2=_0x538a74['getAttribute']('revisionHistoryAttachChange');if(_0x5aa35a['removeAttribute']('data-change-id',_0x311899),_0x5aa35a['removeClass']('ck-revision-history-root-add',_0x311899),_0x5aa35a['removeClass']('ck-revision-history-root-remove',_0x311899),_0x5aa35a['removeClass']('ck-revision-history-root--active',_0x311899),_0x3d5de2){const _0x333d0d=this['_getChangeFromId'](_0x3d5de2);if(!_0x333d0d)return null;_0x5aa35a['setAttribute']('data-change-id',_0x3d5de2,_0x311899),_0x5aa35a['addClass']('ck-revision-history-root-'+_0x333d0d['type'],_0x311899),this['activeChange']==_0x333d0d&&_0x5aa35a['addClass']('ck-revision-history-root--active',_0x311899);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x8af620=>'revision-comment:'+_0x8af620,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x79f421=>'revision-suggestion:'+_0x79f421,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x328bd8=>({'name':'suggestion:'+_0x328bd8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x103044=>{const _0x20e8bc=_0x103044['markerName']['split'](':')[0x1];return'insertion'!=_0x20e8bc&&'deletion'!=_0x20e8bc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x20e8bc]};}}),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',(_0x2ed86c,_0x9552d6,_0x4cb8bc)=>{const _0x348a17=_0x4cb8bc['mapper']['markerNameToElements'](_0x9552d6['markerName']);if(_0x348a17){for(const _0xf49558 of _0x348a17)_0xf49558['is']('uiElement')&&(_0x4cb8bc['mapper']['unbindElementFromMarkerName'](_0xf49558,_0x9552d6['markerName']),_0x4cb8bc['writer']['remove'](_0xf49558));}},{'priority':'high'});}['_getChangeFromId'](_0x593d3c){return this['_changeIdToChange']['get'](_0x593d3c);}['_getViewForChange'](_0x27d8d1){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x27d8d1),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x231be2,_0x5e5d44,_0xbf8ca1,_0x212f7a)=>{_0x212f7a&&this['_balloon']['remove'](_0x212f7a),_0xbf8ca1&&(this['_balloon']['add']({'view':_0xbf8ca1,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x224091=this['editor']['editing'],_0x1a4fff=this['_getChangeFromId'](_0xbf8ca1['changeId']);let _0x31a981;if(_0x1a4fff['data']['isOnRoot']){const _0x44ef2b=_0x224091['view']['getDomRoot'](_0x1a4fff['rootName']);_0x31a981=Array['from'](_0x44ef2b['getClientRects']());}else{const _0x2b9f35=this['editor']['model']['markers']['get']('revision:'+_0xbf8ca1['changeId']);_0x31a981=Array['from'](_0x224091['mapper']['markerNameToElements'](_0x2b9f35['name']))['map'](_0x361e2c=>_0x224091['view']['domConverter']['mapViewToDom'](_0x361e2c))['map'](_0x393675=>Array['from'](_0x393675['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x31a981[0x0];return _0x31a981['find'](_0x3e6f84=>_0x3e6f84['top']-0x3<=this['_activeViewTarget']['y']&&_0x3e6f84['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3e6f84['left']-0x3<=this['_activeViewTarget']['x']&&_0x3e6f84['right']+0x3>=this['_activeViewTarget']['x'])||_0x31a981[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5c408c,_0x20b067,_0xa3fbf9,_0x64a552)=>{this['activeView']=_0xa3fbf9?this['_getViewForChange'](_0xa3fbf9):null,this['editor']['model']['change'](()=>{const _0x32c97e=this['editor']['editing'];_0x64a552&&(_0x64a552['data']['isOnRoot']?_0x32c97e['view']['change'](_0x1686fd=>{_0x1686fd['removeClass']('ck-revision-history-root--active',_0x32c97e['view']['document']['getRoot'](_0x64a552['rootName']));}):_0x32c97e['reconvertMarker']('revision:'+_0x64a552['id'])),_0xa3fbf9&&(_0xa3fbf9['data']['isOnRoot']?_0x32c97e['view']['change'](_0x332005=>{_0x332005['addClass']('ck-revision-history-root--active',_0x32c97e['view']['document']['getRoot'](_0xa3fbf9['rootName']));}):_0x32c97e['reconvertMarker']('revision:'+_0xa3fbf9['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x53aca5,_0x31ba23)=>{if(this['activeChange'])return;const _0xf2cbd0=this['_findChangeIdFromDomTarget'](_0x31ba23['target']),_0x56afda=this['_changeIdToChange']['get'](_0xf2cbd0);_0x56afda?(this['_activeViewTarget']={'x':_0x31ba23['domEvent']['x'],'y':_0x31ba23['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x56afda)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2df5a0,_0x59058c)=>{const _0x4f1174=this['_findChangeIdFromDomTarget'](_0x59058c['target']),_0x5a6edd=this['_changeIdToChange']['get'](_0x4f1174);_0x5a6edd?(this['_activeViewTarget']={'x':_0x59058c['domEvent']['x'],'y':_0x59058c['domEvent']['y']},_0x5a6edd===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5a6edd):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3a0c4c){do{const _0x4198ee=_0x3a0c4c['getAttribute']('data-change-id');if(_0x4198ee)return _0x4198ee;_0x3a0c4c=_0x3a0c4c['parent'];}while(_0x3a0c4c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x51c1f3=>{for(const _0x5e87e6 of this['editor']['model']['markers'])_0x51c1f3['removeMarker'](_0x5e87e6);});}}function X(_0x2a2927,_0x45f55c){return(_0x3fa42f,_0x5ddfb3,_0x1b0a91)=>{if(!_0x1b0a91['consumable']['test'](_0x5ddfb3['markerRange'],_0x3fa42f['name']))return;const _0x3645a7=_0x5ddfb3['markerRange']['getWalker'](),_0x3cc852=_0x5ddfb3['markerRange']['start'],_0x2bff80=_0x2a2927['model']['schema'];let _0x2f52ee=null,_0x1f9c1a=null,_0x2719f0=!0x1,_0x496698=!0x1;for(const _0x4a2652 of _0x3645a7){const _0x353169=_0x4a2652['item'];_0x2719f0=_0x2719f0||_0x2bff80['isContent'](_0x353169);const _0x16f2c9=_0x1b0a91['mapper']['toViewElement'](_0x353169);if(_0x16f2c9&&_0x16f2c9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a2652['type']&&(_0x2bff80['isBlock'](_0x353169)&&!_0x2bff80['isLimit'](_0x353169)&&(_0x353169['nextSibling']||_0x3cc852['isAtEnd']?_0x2f52ee&&_0x2f52ee['parent']==_0x353169||(_0x2f52ee=_0x353169,_0x44af78(_0x4a2652['previousPosition']),_0x496698=!0x0):_0x1f9c1a=_0x1f9c1a||_0x4a2652['previousPosition']));}function _0x44af78(_0x5bca53){const _0x40995b=_0x1b0a91['mapper']['toViewPosition'](_0x5bca53),_0x167c0c=_0x1b0a91['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x45f55c});_0x1b0a91['writer']['insert'](_0x40995b,_0x167c0c),_0x1b0a91['mapper']['bindElementToMarker'](_0x167c0c,_0x5ddfb3['markerName']);}_0x2719f0||_0x496698||!_0x1f9c1a||_0x44af78(_0x1f9c1a);};}class mt extends _0x58bd2b{constructor(_0x3dee79){super(_0x3dee79);const _0x28ee81=_0x3dee79['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x28ee81,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28ee81,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x46b3cb=this['editor'],_0x48e6fa=_0x46b3cb['plugins']['get'](m),_0x4b881c=_0x48e6fa['isReady']?_0x48e6fa['diff']['newRevisionId']:null;_0x46b3cb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4b881c);}['refresh'](){const {isReady:_0x1aaaed,isEnabled:_0x1e2fbd,repository:_0x1e865f,diff:_0x381692}=this['editor']['plugins']['get'](m),_0x112a88=_0x381692&&_0x1e865f['getLaterVisibleRevision'](_0x381692['newRevisionId']);this['isEnabled']=_0x1aaaed&&_0x1e2fbd&&Boolean(_0x112a88);}}class wt extends _0x58bd2b{['_step'];constructor(_0x402e94,{direction:_0x37d7fa}){super(_0x402e94);const _0x3fd088=_0x402e94['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x37d7fa?0x1:-0x1,this['listenTo'](_0x3fd088,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3fd088,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3fd088,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x110ea3=this['editor'],_0xa52efa=_0x110ea3['plugins']['get'](m),{isNavigationMode:_0x1bba2a,currentChangeNumber:_0x188564}=_0xa52efa;let _0x176a5d;if(_0xa52efa['activeChange']=_0x1bba2a?_0xa52efa['diff']['changes']['get'](_0x188564+this['_step']):_0xa52efa['diff']['changes']['first'],_0xa52efa['activeChange']['data']['isOnRoot'])_0x176a5d=_0x110ea3['editing']['view']['getDomRoot'](_0xa52efa['activeChange']['rootName']);else{const _0x115f18=_0x110ea3['model']['markers']['get']('revision:'+_0xa52efa['activeChange']['id']);_0x176a5d=_0x11c27b(_0x110ea3['editing'],_0x115f18);}_0x49b118({'target':_0x176a5d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x29b2b5,currentChangeNumber:_0x723cb3,numberOfChanges:_0x44ed6c,isReady:_0x31238c,isEnabled:_0x33ce00}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x33ce00&&_0x31238c&&_0x44ed6c)&&(!_0x29b2b5||(0x1===this['_step']?_0x723cb3<_0x44ed6c-0x1:_0x723cb3>0x0));}}class _i extends ts{constructor(_0x23464b){super(_0x23464b);const _0x381cf2=this['bindTemplate'],_0x3c7dcc=new te(_0x23464b),_0x107240=new te(_0x23464b);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',(_0x2f2049,_0x3b5796)=>_0x2f2049&&_0x3b5796>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x580308,_0x5d666f,_0x171ce1,_0x5eb0eb)=>{if(!_0x580308)return g(_0x23464b,'Loading...');if(!_0x171ce1)return g(_0x23464b,'No\x20changes');const _0x1c35cf=g(_0x23464b,'NUMBER_OF_CHANGES',_0x171ce1);return _0x5eb0eb?g(_0x23464b,'X_OF_Y_CHANGES',[_0x5d666f+0x1,_0x171ce1]):_0x1c35cf;}),_0x3c7dcc['set']({'label':g(_0x23464b,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x201f6a}),_0x107240['set']({'label':g(_0x23464b,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4729af}),_0x3c7dcc['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x107240['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3c7dcc['on']('execute',()=>this['fire']('execute','backward')),_0x107240['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',_0x381cf2['if']('_isStatusLabelVisible','ck-hidden',_0x381c9d=>!_0x381c9d)]},'children':[{'text':_0x381cf2['to']('isNavigationMode',_0x47ff47=>_0x47ff47?g(_0x23464b,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x23464b,'Total')+':\x20')}]},{'text':_0x381cf2['to']('_statusText')}]},new _0x83d1b5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3c7dcc,_0x107240]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x5eed52{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x6e2b6e=this['editor']['editing']['view'];_0x6e2b6e['change'](_0x8e079c=>{for(const _0x2e33ed of _0x6e2b6e['document']['roots'])_0x8e079c['addClass'](le,_0x2e33ed);});}['hide'](){const _0x570071=this['editor']['editing']['view'];_0x570071['change'](_0x721eb6=>{for(const _0x4370aa of _0x570071['document']['roots'])_0x721eb6['removeClass'](le,_0x4370aa);});}}class R extends _0x5eed52{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0xa57f35=this['editor'],_0x162557=_0xa57f35['plugins']['get'](m),_0x2692da=_0xa57f35['plugins']['get'](ge);_0xa57f35['ui']['componentFactory']['add']('exitToEditing',_0x3e83a9=>{const _0x139dcf=new te(_0x3e83a9);return _0x139dcf['set']({'label':g(_0x3e83a9,'Back\x20to\x20editing'),'icon':_0x1fd945,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x139dcf,'execute',()=>{_0xa57f35['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x139dcf;}),_0xa57f35['ui']['componentFactory']['add']('restoreRevision',_0x403ace=>{const _0x227a9c=new te(_0x403ace);return _0x227a9c['set']({'label':g(_0x403ace,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x227a9c['bind']('isEnabled')['to'](_0xa57f35['commands']['get']('restoreRevision')),this['listenTo'](_0x227a9c,'execute',()=>_0xa57f35['execute']('restoreRevision')),_0x227a9c;}),_0xa57f35['ui']['componentFactory']['add']('changesNavigation',_0x54cf95=>{const _0x454bf2=new _i(_0x54cf95),_0xb06b5b=_0xa57f35['commands']['get']('showPreviousChange'),_0x37fdb4=_0xa57f35['commands']['get']('showNextChange');return _0x454bf2['bind']('isBackwardNavigationEnabled')['to'](_0xb06b5b,'isEnabled'),_0x454bf2['bind']('isForwardNavigationEnabled')['to'](_0x37fdb4,'isEnabled'),_0x454bf2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x162557),this['listenTo'](_0x454bf2,'execute',(_0x308309,_0x561431)=>{_0xa57f35['execute']('forward'===_0x561431?'showNextChange':'showPreviousChange');}),_0x454bf2;}),_0x2692da['show'](),_0x162557['on']('change:isReady',(_0x50c019,_0x300905,_0x615ca6)=>{_0x615ca6?_0x2692da['hide']():_0x2692da['show']();});}}class at extends _0x54c465{['_resizeObserver']=null;constructor(_0x501617,_0x1ccc92){super(_0x501617,_0x1ccc92);const _0x4721b6=this['bindTemplate'];this['set']({'label':g(_0x501617,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x501617,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4721b6['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 _0x4d547a=this['fieldView']['element'];this['_tooltipString']=_0x4d547a['scrollWidth']>_0x4d547a['clientWidth']&&_0x4d547a['value']||'';}}class si extends ts{constructor(_0x276b23,_0x5b070c,_0x5d6706){super(_0x276b23);const _0x51dba8=new _0x17b453();_0x51dba8['set']({'content':_0x3182c2,'viewBox':'0\x200\x2011\x2010'});const _0x3dea9f=['ck','ck-revision-history-sidebar__revision-author'];_0x5d6706&&_0x3dea9f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4fa3d1=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x276b23,_0x5d6706?'Revision\x20creator':'Revision\x20author')},'children':[_0x51dba8,_0x5b070c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3dea9f},'children':_0x4fa3d1});}}function oi(_0xac93a3,_0x2981f8){const _0x27aea3=_0xac93a3['bindTemplate'],_0x28a16c=_0xac93a3['locale'],_0x4e8fbc=_0x369e9a(_0x28a16c);_0x4e8fbc['panelPosition']='sw';const _0x90a8b8=function(_0x1ad0c3,_0x1e5600){const _0x5ad33a=function(_0x176ac6,_0xa1bea5){const _0x1768d7=_0x176ac6['locale'],_0x44f626={'Compare\x20against\x20selected':g(_0x1768d7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x1768d7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x1768d7,'Restore\x20this\x20revision')};return _0xa1bea5['map'](_0x258b44=>{const _0x9978f8=_0x44f626[_0x258b44['name']];return _0x9978f8&&_0x9978f8!==_0x258b44['name']&&(_0x258b44['name']=_0x9978f8),_0x258b44;});}(_0x1ad0c3,_0x1e5600),_0x1c911c=new _0x21b12a();for(const _0x5b63cc of _0x5ad33a){const _0x32c396={'type':'button','model':new to({'label':_0x5b63cc['name'],'class':_0x5b63cc['class'],'withText':!0x0,'role':'menuitem','_action':_0x5b63cc['action']})};_0x32c396['model']['bind']('isEnabled')['to'](_0x1ad0c3,'isActionsDropdownOpen',_0x267d7a=>'function'!=typeof _0x5b63cc['isEnabled']||(!_0x267d7a||_0x5b63cc['isEnabled'](_0x1ad0c3))),_0x1c911c['add'](_0x32c396);}return _0x1c911c;}(_0xac93a3,_0x2981f8);return _0xac93a3['bind']('isActionsDropdownOpen')['to'](_0x4e8fbc,'isOpen'),_0x4e8fbc['buttonView']['set']({'label':g(_0x28a16c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x241e6f}),_0x4e8fbc['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x27aea3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x27aea3['to'](_0x4faaae=>_0x4faaae['stopPropagation']())}}),_0x4e8fbc['on']('execute',_0x4d3f1f=>{_0xac93a3['isReady']&&'function'==typeof _0x4d3f1f['source']['_action']&&_0x4d3f1f['source']['_action'](_0xac93a3);}),_0x436d94(_0x4e8fbc,_0x90a8b8,{'role':'menu'}),_0x4e8fbc['listenTo'](_0xac93a3,'change:isActionsDropdownOpen',(_0x3ff561,_0x5b3228,_0x894122)=>{if(_0x894122)for(const _0x483c96 of _0x4e8fbc['listView']['items']){const _0x1f5cea=_0x483c96['children']['first'],_0xdda8bf=_0x2981f8['find'](_0x1041f1=>_0x1041f1['action']===_0x1f5cea['_action'])['isVisible'];_0x483c96['isVisible']=void 0x0===_0xdda8bf||_0xdda8bf(_0xac93a3);}}),_0x4e8fbc;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2f5eaf,_0x3d5521,_0x1a8078,_0x4c3a11){super(_0x2f5eaf);const _0x2e879a=this['bindTemplate'],_0x32782b=function(_0xae5240,_0x52bc25){const _0x376a8f=Array['from'](_0x52bc25['authors'])['filter'](_0x4de3d8=>_0x4de3d8!=_0x52bc25['creator']);return _0x52bc25['creator']&&_0x376a8f['unshift'](_0x52bc25['creator']),_0x376a8f['map'](_0x3d03a2=>new si(_0xae5240,_0x3d03a2,_0x3d03a2==_0x52bc25['creator']));}(_0x2f5eaf,_0x3d5521);this['id']=_0x3d5521['id'],this['_revision']=_0x3d5521,this['_requireRevisionName']=_0x4c3a11,this['bind']('name','createdAt')['to'](_0x3d5521),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x388897=>{return _0x44beca=_0x2f5eaf['uiLanguage'],(_0xa3156f=_0x388897)['toLocaleDateString'](_0x44beca,{'month':'long','day':'numeric'})+',\x20'+_0xa3156f['toLocaleTimeString'](_0x44beca,{'hour':'numeric','minute':'numeric'});var _0x44beca,_0xa3156f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2f5eaf,_0x244aec),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5e3105=>_0x5e3105||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4e969a,_0x2cd9b7)=>_0x4e969a&&_0x2cd9b7),this['revisionActionsView']=_0x1a8078&&_0x1a8078['length']?oi(this,_0x1a8078):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2e879a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2e879a['if']('isEnabled','ck-disabled',_0x457014=>!_0x457014),_0x2e879a['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2e879a['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2e879a['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':_0x2e879a['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':_0x32782b}]},this['revisionActionsView']],'on':{'click':_0x2e879a['to'](_0x589d4f=>{_0x589d4f['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xfb3d13=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xfb3d13,'change',()=>{this['_requireRevisionName']&&!_0xfb3d13['value']||this['fire']('setName',{'id':this['id'],'name':_0xfb3d13['value']}),_0xfb3d13['value']||(_0xfb3d13['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x447953,_0xd78a7){const _0x4cf270=_0x59e3d6['fromJSDate'](_0x447953)['setLocale'](_0xd78a7),_0x15f4b3=_0x59e3d6['local'](),_0x4e9c3d=_0x15f4b3['minus']({'days':0x1})['startOf']('day');let _0x2a8f78,_0x34e904;return _0x4cf270['hasSame'](_0x15f4b3,'day')?(_0x2a8f78=_0x4cf270['startOf']('day')['toJSDate'](),_0x34e904=_0x4cf270['toRelativeCalendar']()):_0x4cf270['hasSame'](_0x4e9c3d,'day')?(_0x2a8f78=_0x4e9c3d['toJSDate'](),_0x34e904=_0x4cf270['toRelativeCalendar']()):_0x4cf270['hasSame'](_0x15f4b3,'week')?(_0x2a8f78=_0x4cf270['startOf']('week')['toJSDate'](),_0x34e904=_0x4cf270['weekdayLong']||''):_0x4cf270['hasSame'](_0x15f4b3,'year')?(_0x2a8f78=_0x4cf270['startOf']('month')['toJSDate'](),_0x34e904=_0x4cf270['monthLong']||''):(_0x2a8f78=_0x4cf270['startOf']('year')['toJSDate'](),_0x34e904=String(_0x4cf270['year'])),{'startDate':_0x2a8f78,'localizedPeriodName':_0x34e904};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xf46c,_0x509437,_0x3e2bcb,_0x3527ef){super(_0xf46c);const _0xbcf0f0=ai(_0x509437,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x509437,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3e2bcb,this['_requireRevisionName']=_0x3527ef,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':_0xbcf0f0}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3f3175){const _0x9fc7a7=new hi(this['locale'],_0x3f3175,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x9fc7a7);}['removeRevision'](_0x59b6a3){const _0x299346=this['revisionViews']['find'](_0x201533=>_0x201533['id']===_0x59b6a3['id']);this['revisionViews']['remove'](_0x299346);}}class as extends ts{constructor(_0x4ba02e){super(_0x4ba02e);const _0x2316a4=new _0x17b453();_0x2316a4['content']=_0x13b80c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2316a4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x4ba02e,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x488147,_0xa3ea3c,_0x50a640,_0x3f3388){super(_0x488147);const _0x2769e2=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xa3ea3c,this['_revisionActions']=_0x50a640,this['_requireRevisionName']=_0x3f3388,this['on']('select',(_0x59a48,_0x116a0e)=>{this['fire']('revisionSelected',_0x116a0e);}),this['on']('setName',(_0x2b2246,_0x13d912)=>{this['fire']('revisionSetName',_0x13d912);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x488147),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2769e2['if']('isEnabled','ck-disabled',_0x11bb91=>!_0x11bb91)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x201df8 of this['_revisions'])this['_addRevision'](_0x201df8);this['_revisions']['on']('add',(_0x4a5efa,_0xf14bd)=>{this['_addRevision'](_0xf14bd);}),this['_revisions']['on']('remove',(_0x1ea2e8,_0x351b48)=>{this['_removeRevision'](_0x351b48);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3e6da1=>_0x3e6da1['revisionViews']['map'](_0x36fb6f=>_0x36fb6f))['flat']();}['selectRevision'](_0x4dbea0){for(const _0x4d0a4d of this['revisionViews'])_0x4dbea0&&_0x4dbea0['id']===_0x4d0a4d['id']?_0x4d0a4d['select']():_0x4d0a4d['deselect']();}['highlightRevisions'](_0x4639f0){for(const _0x3726a4 of this['revisionViews'])_0x4639f0['some'](({id:_0x51401d})=>_0x51401d===_0x3726a4['id'])?_0x3726a4['highlight']():_0x3726a4['unhighlight']();}['_addRevision'](_0x4e01a9){const _0x2d51e6=ai(_0x4e01a9['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4b94e1=this['timePeriodViews']['get'](0x0);_0x4b94e1&&_0x4b94e1['startDate']['getTime']()===_0x2d51e6['getTime']()||(_0x4b94e1=new di(this['locale'],_0x2d51e6,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4b94e1)),_0x4b94e1['addRevision'](_0x4e01a9);}['_removeRevision'](_0x1d15ab){const _0x40a789=ai(_0x1d15ab['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x40a789)['removeRevision'](_0x1d15ab);}['_getTimePeriodViewByStartDate'](_0x45838d){return this['timePeriodViews']['find'](_0x5059d1=>_0x5059d1['startDate']['getTime']()===_0x45838d['getTime']());}}class d extends _0x5eed52{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x5b5f2e(_0xd3a18){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3c85f5,_0x586b8d){super(_0x586b8d),this['sourceElement']=_0x3c85f5,this['model']['document']['createRoot']();const _0x249732=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x249732);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x449708,_0xa694e1){const _0x1f7a4c=new this(_0x449708,_0xa694e1);return await _0x1f7a4c['initPlugins'](),await _0x1f7a4c['ui']['init'](_0x449708),await _0x1f7a4c['data']['init'](_0x1f7a4c['config']['get']('initialData')||''),_0x1f7a4c['fire']('ready'),_0x1f7a4c;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x2ec88b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2eb5db){function _0x116867(_0xf7ca70){return _0xf7ca70['map'](_0x5c5d56=>String['fromCharCode'](_0x5c5d56))['join']('');}super(_0x2eb5db),this['result']='end',_0x2eb5db[_0x116867([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x116867([0x76,0x69,0x65,0x77])][_0x116867([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x116867([0x61,0x75,0x74,0x6f]),_0x2eb5db[_0x116867([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x116867([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x116867([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x116867([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x116867([0x6f,0x6b])});}}class k extends _0x2ec88b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x451f80){if(super(_0x451f80),!this['editor']['config']['get']('revisionHistory'))throw new _0x579d8c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3947fa=>this['_showRevisionViewer']({..._0x3947fa,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3c2009=>this['_closeRevisionViewer'](_0x3c2009)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3e7ecd=>this['_restoreRevision'](_0x3e7ecd)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x34251a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x34251a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3e1604){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3e1604);}['getRevision'](_0x14ce03){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x14ce03);}['getRevisions'](_0x3fc460){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3fc460||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x514f88=this['editor'],_0x26c598=_0x4b8a9e(_0x514f88,p),_0x6abb28=_0x514f88['plugins']['get']('RevisionTracker'),_0x29ce26=_0x514f88['plugins']['get']('Users')['users'];return _0x26c598['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x26c598['lazyRoots'],(_0x26c598['plugins']['push'](yt,m,R,class extends _0x2ec88b{static get['requires'](){return[m,'Users'];}['init'](){const _0x1ebf18=this['editor']['plugins']['get']('Users');for(const _0x2c10f5 of _0x29ce26)_0x2c10f5['isAnonymous']||_0x1ebf18['getUser'](_0x2c10f5['id'])||_0x1ebf18['addUser'](_0x2c10f5);const _0x577d23=_0x6abb28['repository']['getRevisions']();let _0x50fee8=null;const _0x4a232a=this['editor']['plugins']['get']('RevisionViewer');_0x4a232a['adapter']=_0x6abb28['adapter'],_0x4a232a['bind']('isEnabled')['to'](_0x6abb28),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x514f88,'isReadOnly',_0x1787ea=>!_0x1787ea);for(const _0x26b9d6 of _0x577d23){const _0x12ca44=null===_0x26b9d6['creator'];if(_0x12ca44&&_0x26b9d6['toVersion']===_0x26b9d6['fromVersion'])continue;const _0x111b91=_0x26b9d6['toJSON']();_0x4a232a['addRevisionData'](_0x111b91,(_0x173939,_0x34d36d,_0x318d87)=>{if(_0x12ca44){if(_0x50fee8)_0x50fee8['_update'](_0x173939,_0x34d36d);else{if(!_0x34d36d){const _0x1a80a6=_0x318d87['toJSON']();_0x1a80a6['id']=_0x1facad(),_0x6abb28['saveRevision'](_0x1a80a6,_0x318d87['toVersion'])['then'](_0x2f8d9c=>{_0x50fee8=_0x2f8d9c;});}}}else _0x26b9d6['_update'](_0x173939,_0x34d36d);});}}},d),_0x26c598);}['_enhanceShowRevisionViewerCallback'](){const _0x4e9ed6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5340f1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3e9512=this['editor']['plugins']['get']('Autosave');await _0x3e9512['save']();}else await _0x5340f1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2d4a5a=this['editor']['plugins']['get']('Dialog');_0x2d4a5a['isOpen']&&_0x2d4a5a['hide']();}const _0x227829=this['_getRevisionViewerEditorConfig']();return _0x4e9ed6(_0x227829)['then'](_0x3c0e4e=>{return(this['_viewerEditor']=_0x3c0e4e,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'),_0x3c0e4e);})['catch'](_0x544bc0=>(console['error'](_0x544bc0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xb1faf0=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'](),_0xb1faf0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x574763=this['editor']['plugins']['get']('Annotations');_0x574763['refreshVisibility'](),_0x574763['refreshPositioning']();}})));}['_showRevisionViewer'](_0x428350){const _0x523370=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3a8839=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x283ef5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x283ef5,_0x428350)['then'](_0x55833e=>(_0x3a8839['style']['display']='block',_0x523370['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x55833e));}['_closeRevisionViewer'](_0x48ee73){const _0x16396a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x16396a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x48ee73['destroy']();}async['_restoreRevision'](_0x441808){const _0x1ed9c5=this['editor'],_0x13da02=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x191f40=_0x1ed9c5['plugins']['get']('RevisionTracker'),_0x3cbd1c=_0x1ed9c5['plugins']['get']('RevisionHistoryUtils'),_0x5ea892=_0x13da02['repository']['getRevision'](_0x441808);let _0x47eb1c,_0x4d58ca,_0x339907;try{await _0x3cbd1c['loadRevisionData'](_0x5ea892,this['adapter']),_0x47eb1c=_0x3cbd1c['getRevisionDocumentData'](_0x5ea892),_0x4d58ca=_0x3cbd1c['getRevisionRootsAttributes'](_0x5ea892);}catch(_0x2d7bb3){return void console['error'](_0x2d7bb3);}_0x1ed9c5['model']['change'](_0x1e221f=>{for(const _0x42841f of Array['from'](_0x1ed9c5['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1e221f['removeMarker'](_0x42841f);}),_0x13da02['isReady']=!0x1,_0x1ed9c5['model']['enqueueChange'](_0x5e4f55=>{_0x5e4f55['setSelection'](null),_0x5e4f55['removeSelectionAttribute'](_0x1ed9c5['model']['document']['selection']['getAttributeKeys']());const _0x2259fb=Object['keys'](_0x47eb1c);for(const _0x25e2c8 of _0x1ed9c5['model']['document']['roots'])'$graveyard'!=_0x25e2c8['rootName']&&_0x25e2c8['isAttached']()&&!_0x2259fb['includes'](_0x25e2c8['rootName'])&&_0x5e4f55['detachRoot'](_0x25e2c8);for(const _0xdb581a of _0x2259fb){let _0x137481=_0x1ed9c5['model']['document']['getRoot'](_0xdb581a);_0x137481&&_0x137481['isAttached']()||(_0x137481=_0x5e4f55['addRoot'](_0xdb581a));const _0x4c12f3=_0x4d58ca[_0xdb581a],_0xeeaba2=Object['keys'](_0x4c12f3),_0x19ccd7=_0x47eb1c[_0xdb581a];for(const _0x380d00 of _0x137481['getAttributeKeys']())_0xeeaba2['includes'](_0x380d00)||_0x5e4f55['removeAttribute'](_0x380d00,_0x137481);for(const _0x128824 of _0xeeaba2)_0x5e4f55['setAttribute'](_0x128824,_0x4d58ca[_0xdb581a][_0x128824],_0x137481);_0x5e4f55['remove'](_0x5e4f55['createRangeIn'](_0x137481)),_0x5e4f55['insert'](_0x1ed9c5['data']['parse'](_0x19ccd7,_0x137481),_0x137481,0x0);}});const _0x436382=g(_0x1ed9c5['locale'],'Restored');if(_0x5ea892['name'])_0x339907=-0x1==_0x5ea892['name']['indexOf'](_0x436382)?_0x436382+':\x20'+_0x5ea892['name']:_0x5ea892['name'];else _0x339907=_0x436382+':\x20'+(_0x5ea892['createdAt']['toLocaleDateString'](_0x1ed9c5['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5ea892['createdAt']['toLocaleTimeString'](_0x1ed9c5['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x191f40['saveRevision']({'name':_0x339907}),_0x13da02['isReady']=!0x0,_0x1ed9c5['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};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x37d2cd){super(_0x37d2cd),this['_revisionViewer']=_0x37d2cd['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x399a91=this['_revisionsRepository']['_revisions'],_0x40fc7a=this['_createRevisionActions'](),_0x520328=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x399a91,_0x40fc7a,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',(_0x8add8,_0x5298c4)=>{_0x5298c4['revisionViews']['on']('add',(_0x296e10,_0x2ca352)=>{_0x2ca352['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)),_0x520328['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5da573=this['_revisionsRepository']['getRevision'](0x0);if(_0x5da573){const _0x5fde9a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5da573['id']);this['_revisionViewer']['compare'](_0x5da573,_0x5fde9a);}}['_handleRevisionSelected'](_0x28d553,_0x319c9f){const _0x4a3c25=this['_revisionsRepository']['getRevision'](_0x319c9f['id']),_0x44a373=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4a3c25['id']);this['_revisionViewer']['compare'](_0x4a3c25,_0x44a373);}['_handleRevisionSetName'](_0x4656ec,_0x43f8a4){this['_revisionsRepository']['getRevision'](_0x43f8a4['id'])['setName'](_0x43f8a4['name']);}['_handleDiffChange'](_0x86111d,_0x5d0b6d,_0x4ef5b5){const _0x4b9a99=this['_revisionsRepository']['getRevisionsInDiff'](_0x4ef5b5);_0x4b9a99['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4b9a99),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4b9a99[0x0]));}['_createRevisionActions'](){const _0x2fdee6=this['editor'],_0xdf0c00=d['availableRevisionActions'],_0x2deeff=_0x2fdee6['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x2deeff['length'])return _0x2deeff['map'](_0x53e61e=>{const _0x388f30='string'==typeof _0x53e61e?Object['assign']({},_0xdf0c00[_0x53e61e]):_0x53e61e;return _0x388f30['action']=_0x388f30['action']['bind'](this,_0x2fdee6),_0x388f30['isVisible']&&(_0x388f30['isVisible']=_0x388f30['isVisible']['bind'](this,_0x2fdee6)),_0x388f30;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x10c73c},_0x27040e)=>{const _0x33d32f=_0x10c73c['get'](m),_0x2807b8=_0x33d32f['repository'];let _0x11fa25=_0x33d32f['diff']['newRevisionId'],_0x19838e=_0x27040e['id'];_0x2807b8['getIndex'](_0x11fa25)>_0x2807b8['getIndex'](_0x19838e)&&([_0x11fa25,_0x19838e]=[_0x19838e,_0x11fa25]),_0x33d32f['compare'](_0x11fa25,_0x19838e);},'isVisible':({plugins:_0x29716c},_0x5181b7)=>{const _0x367c3f=_0x29716c['get'](m);return!(_0x367c3f['repository']['getRevisionsInDiff'](_0x367c3f['diff'])['length']>0x2)&&!_0x5181b7['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5c901d,{id:_0x31919d})=>{_0x5c901d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31919d);},'isVisible':({plugins:_0x6b0cff},_0x3c874f)=>!!_0x6b0cff['get'](m)['repository']['getLaterVisibleRevision'](_0x3c874f['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3e4880},{id:_0x4791be,revisionNameView:_0x1168e3})=>{const _0x35d6e8=_0x3e4880['get'](m),_0x5191f7=_0x35d6e8['repository']['getEarlierVisibleRevision'](_0x4791be);_0x35d6e8['compare'](_0x4791be,_0x5191f7),_0x1168e3['focus'](),_0x1168e3['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x36543e,_0x20c1ff){super(_0x36543e),this['_view']=_0x20c1ff,this['_toolbarConfig']=et(_0x36543e['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x1bc325){const _0x3032af=this['editor'],_0x2fba14=this['view'],_0x5e99fb=_0x3032af['editing']['view'],_0x3fa41f=_0x2fba14['editable'],_0xa48ec8=_0x5e99fb['document']['getRoot']();_0x3fa41f['name']=_0xa48ec8['rootName'],_0x2fba14['render']();const _0x11e869=_0x3fa41f['element'];this['setEditableElement'](_0x3fa41f['name'],_0x11e869),_0x2fba14['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5e99fb['attachDomRoot'](_0x11e869),this['_elementReplacer']['replace'](_0x1bc325,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2d8eb5=this['view'],_0x21e0a3=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x21e0a3['detachDomRoot'](_0x2d8eb5['editable']['name']),_0x2d8eb5['destroy']();}['_initToolbar'](){const _0x57496d=this['view'];_0x57496d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x57496d['stickyPanel']['limiterElement']=_0x57496d['element'],_0x57496d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x53a613})=>_0x53a613),_0x57496d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x57496d['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1a4e73,_0xdfca61,_0x1179b6={}){super(_0x1a4e73),this['stickyPanel']=new ht(_0x1a4e73),this['toolbar']=new dt(_0x1a4e73,{'shouldGroupWhenFull':_0x1179b6['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1a4e73,_0xdfca61);}['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
|
+
_0x1fc20d(_0x4fb190){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1d3440,_0x43902a){super(_0x43902a),this['sourceElement']=_0x1d3440,this['model']['document']['createRoot']();const _0x1dc2fe=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x1dc2fe);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xc940b7,_0x32ee60){const _0x2cdb6b=new this(_0xc940b7,_0x32ee60);return await _0x2cdb6b['initPlugins'](),await _0x2cdb6b['ui']['init'](_0xc940b7),await _0x2cdb6b['data']['init'](_0x2cdb6b['config']['get']('initialData')||''),_0x2cdb6b['fire']('ready'),_0x2cdb6b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x5eed52{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2dfa36){function _0x3cdf5c(_0x4fc2e0){return _0x4fc2e0['map'](_0x364433=>String['fromCharCode'](_0x364433))['join']('');}super(_0x2dfa36),this['result']='end',_0x2dfa36[_0x3cdf5c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cdf5c([0x76,0x69,0x65,0x77])][_0x3cdf5c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cdf5c([0x61,0x75,0x74,0x6f]),_0x2dfa36[_0x3cdf5c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3cdf5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cdf5c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3cdf5c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3cdf5c([0x6f,0x6b])});}}class k extends _0x5eed52{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x92c90e){if(super(_0x92c90e),!this['editor']['config']['get']('revisionHistory'))throw new _0x522443('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1dfb00=>this['_showRevisionViewer']({..._0x1dfb00,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x55a706=>this['_closeRevisionViewer'](_0x55a706)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x570d4a=>this['_restoreRevision'](_0x570d4a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x404d0b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x404d0b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x50e08c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x50e08c);}['getRevision'](_0x4f7699){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4f7699);}['getRevisions'](_0x276084){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x276084||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x58014e=this['editor'],_0x21c827=_0x2c08e2(_0x58014e,p),_0x53693d=_0x58014e['plugins']['get']('RevisionTracker'),_0x50a2fe=_0x58014e['plugins']['get']('Users')['users'];return _0x21c827['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x21c827['lazyRoots'],(_0x21c827['plugins']['push'](_t,m,R,class extends _0x5eed52{static get['requires'](){return[m,'Users'];}['init'](){const _0x5b4e01=this['editor']['plugins']['get']('Users');for(const _0x5ed73b of _0x50a2fe)_0x5ed73b['isAnonymous']||_0x5b4e01['getUser'](_0x5ed73b['id'])||_0x5b4e01['addUser'](_0x5ed73b);const _0x342ae6=_0x53693d['repository']['getRevisions']();let _0x4e69e5=null;const _0x42a962=this['editor']['plugins']['get']('RevisionViewer');_0x42a962['adapter']=_0x53693d['adapter'],_0x42a962['bind']('isEnabled')['to'](_0x53693d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x58014e,'isReadOnly',_0x24c245=>!_0x24c245);for(const _0x2f94af of _0x342ae6){const _0x31cbeb=null===_0x2f94af['creator'];if(_0x31cbeb&&_0x2f94af['toVersion']===_0x2f94af['fromVersion'])continue;const _0x3e6dc3=_0x2f94af['toJSON']();_0x42a962['addRevisionData'](_0x3e6dc3,(_0x321568,_0x2ad48c,_0x25ddf4)=>{if(_0x31cbeb){if(_0x4e69e5)_0x4e69e5['_update'](_0x321568,_0x2ad48c);else{if(!_0x2ad48c){const _0x132aa0=_0x25ddf4['toJSON']();_0x132aa0['id']=_0x59025e(),_0x53693d['saveRevision'](_0x132aa0,_0x25ddf4['toVersion'])['then'](_0x2cc2c4=>{_0x4e69e5=_0x2cc2c4;});}}}else _0x2f94af['_update'](_0x321568,_0x2ad48c);});}}},d),_0x21c827);}['_enhanceShowRevisionViewerCallback'](){const _0x10ebcd=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x17a871=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1203de=this['editor']['plugins']['get']('Autosave');await _0x1203de['save']();}else await _0x17a871['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4af408=this['editor']['plugins']['get']('Dialog');_0x4af408['isOpen']&&_0x4af408['hide']();}const _0x3836fd=this['_getRevisionViewerEditorConfig']();return _0x10ebcd(_0x3836fd)['then'](_0x3f8eef=>{return(this['_viewerEditor']=_0x3f8eef,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'),_0x3f8eef);})['catch'](_0x50908d=>(console['error'](_0x50908d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3b90f1=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'](),_0x3b90f1(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x344c5c=this['editor']['plugins']['get']('Annotations');_0x344c5c['refreshVisibility'](),_0x344c5c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x29f727){const _0x4364f4=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1f0e31=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2d8ee2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2d8ee2,_0x29f727)['then'](_0x20d3cd=>(_0x1f0e31['style']['display']='block',_0x4364f4['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x20d3cd));}['_closeRevisionViewer'](_0x55ade7){const _0x58df59=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x58df59['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x55ade7['destroy']();}async['_restoreRevision'](_0x2fccb3){const _0x3e40e4=this['editor'],_0x43a34c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x322be8=_0x3e40e4['plugins']['get']('RevisionTracker'),_0x3d42fa=_0x3e40e4['plugins']['get']('RevisionHistoryUtils'),_0x17fa94=_0x43a34c['repository']['getRevision'](_0x2fccb3);let _0x3da77d,_0x19fb26,_0x5550aa;try{await _0x3d42fa['loadRevisionData'](_0x17fa94,this['adapter']),_0x3da77d=_0x3d42fa['getRevisionDocumentData'](_0x17fa94),_0x19fb26=_0x3d42fa['getRevisionRootsAttributes'](_0x17fa94);}catch(_0x5699a6){return void console['error'](_0x5699a6);}_0x3e40e4['model']['change'](_0x574b8a=>{for(const _0x7a65b1 of Array['from'](_0x3e40e4['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x574b8a['removeMarker'](_0x7a65b1);}),_0x43a34c['isReady']=!0x1,_0x3e40e4['model']['enqueueChange'](_0x10aeea=>{_0x10aeea['setSelection'](null),_0x10aeea['removeSelectionAttribute'](_0x3e40e4['model']['document']['selection']['getAttributeKeys']());const _0xdd6b27=Object['keys'](_0x3da77d);for(const _0x30b31d of _0x3e40e4['model']['document']['roots'])'$graveyard'!=_0x30b31d['rootName']&&_0x30b31d['isAttached']()&&!_0xdd6b27['includes'](_0x30b31d['rootName'])&&_0x10aeea['detachRoot'](_0x30b31d);for(const _0xf3e827 of _0xdd6b27){let _0xbc20ed=_0x3e40e4['model']['document']['getRoot'](_0xf3e827);_0xbc20ed&&_0xbc20ed['isAttached']()||(_0xbc20ed=_0x10aeea['addRoot'](_0xf3e827));const _0x42b9e7=_0x19fb26[_0xf3e827],_0x14c861=Object['keys'](_0x42b9e7),_0x1955fa=_0x3da77d[_0xf3e827];for(const _0x312fe6 of _0xbc20ed['getAttributeKeys']())_0x14c861['includes'](_0x312fe6)||_0x10aeea['removeAttribute'](_0x312fe6,_0xbc20ed);for(const _0x197ddc of _0x14c861)_0x10aeea['setAttribute'](_0x197ddc,_0x19fb26[_0xf3e827][_0x197ddc],_0xbc20ed);_0x10aeea['remove'](_0x10aeea['createRangeIn'](_0xbc20ed)),_0x10aeea['insert'](_0x3e40e4['data']['parse'](_0x1955fa,_0xbc20ed),_0xbc20ed,0x0);}});const _0xe82232=g(_0x3e40e4['locale'],'Restored');if(_0x17fa94['name'])_0x5550aa=-0x1==_0x17fa94['name']['indexOf'](_0xe82232)?_0xe82232+':\x20'+_0x17fa94['name']:_0x17fa94['name'];else _0x5550aa=_0xe82232+':\x20'+(_0x17fa94['createdAt']['toLocaleDateString'](_0x3e40e4['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x17fa94['createdAt']['toLocaleTimeString'](_0x3e40e4['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x322be8['saveRevision']({'name':_0x5550aa}),_0x43a34c['isReady']=!0x0,_0x3e40e4['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};
|