@ckeditor/ckeditor5-revision-history 44.0.0-alpha.4 → 44.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +8 -8
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x354be7(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3dcec4){super(),this['id']=_0x3dcec4['id']||_0x20d582(),this['creator']=_0x3dcec4['creator']||null,this['authors']=_0x3dcec4['authors']||[],this['diffData']=_0x3dcec4['diffData']||null,this['toVersion']=_0x3dcec4['toVersion']||0x0,this['fromVersion']=_0x3dcec4['fromVersion']||0x0,this['set']('name',_0x3dcec4['name']||''),this['set']('createdAt',_0x3dcec4['createdAt']||new Date()),this['set']('attributes',_0x3dcec4['attributes']||{});}['setName'](_0x3be90d){this['_update']({'name':_0x3be90d});}['setAttribute'](_0x32e157,_0x539db7){const _0x3100b1=_0x1046c5(this['attributes']);_0x12df9f(_0x3100b1,_0x32e157,_0x539db7),this['_update']({'attributes':_0x3100b1});}['removeAttribute'](_0x5c76a2){const _0x3f0fc7=_0x1046c5(this['attributes']);_0x42c3b9(_0x3f0fc7,_0x5c76a2),this['_update']({'attributes':_0x3f0fc7});}['_update'](_0x35f71f,_0x318f79=!0x1){let _0x1e73c9=!0x1;const _0x4232c3={'id':this['id']},_0x4aac8f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1b7a30 of _0x4aac8f){const _0x418840=_0x35f71f[_0x1b7a30];void 0x0!==_0x418840&&_0x418840!==this[_0x1b7a30]&&(this[_0x1b7a30]=_0x418840,_0x4232c3[_0x1b7a30]=_0x418840,_0x1e73c9=!0x0);}_0x1e73c9&&(_0x4232c3['authors']&&(_0x4232c3['authorsIds']=_0x4232c3['authors']['map'](_0x5c0cb0=>_0x5c0cb0['id']),delete _0x4232c3['authors']),this['fire']('_update',_0x4232c3,_0x318f79));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2b12b5=>_0x2b12b5['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x49113c{['_revisions'];static get['requires'](){return[_0x580655];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xbd2cbd){super(_0xbd2cbd),this['_revisions']=new _0x5b23d0();}['afterInit'](){!async function(_0x50ddb5){const _0x58c5d6=_0x20994f([0x62,0x77,0x39,0x43,0x67,0x68,0x44,0x74,0x36,0x52,0x6c,0x6b,0x54,0x76,0x63,0x49,0x38,0x53,0x41,0x37,0x65,0x50,0x73,0x6f,0x56,0x58,0x4c,0x55,0x69,0x59,0x72,0x57,0x33,0x71,0x51,0x48,0x6d,0x5a,0x61,0x42,0x31,0x46,0x75,0x4b,0x4f,0x34,0x4a,0x70,0x7a,0x45,0x32,0x30,0x64,0x4d,0x6e,0x4e,0x66,0x78,0x47,0x6a,0x79,0x35]),_0x2e89bb=0xeb829,_0x154b11=0x3aaa257f,_0x2c063c=0x3aad72b7^_0x154b11,_0x4144d6=window[_0x20994f([0x44,0x61,0x74,0x65])][_0x20994f([0x6e,0x6f,0x77])](),_0x23d37c=_0x50ddb5[_0x20994f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x56a46a=new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36392d=>{_0x23d37c[_0x20994f([0x6f,0x6e,0x63,0x65])](_0x20994f([0x72,0x65,0x61,0x64,0x79]),_0x36392d);}),_0x46d573={[_0x20994f([0x6b,0x74,0x79])]:_0x20994f([0x45,0x43]),[_0x20994f([0x75,0x73,0x65])]:_0x20994f([0x73,0x69,0x67]),[_0x20994f([0x63,0x72,0x76])]:_0x20994f([0x50,0x2d,0x32,0x35,0x36]),[_0x20994f([0x78])]:_0x20994f([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]),[_0x20994f([0x79])]:_0x20994f([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]),[_0x20994f([0x61,0x6c,0x67])]:_0x20994f([0x45,0x53,0x32,0x35,0x36])},_0x37c5ba=_0x23d37c[_0x20994f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20994f([0x67,0x65,0x74])](_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x259cdf(){let _0x5cbb2a,_0x34d5bd=null,_0xf5c7bd=null;try{if(_0x37c5ba==_0x20994f([0x47,0x50,0x4c]))return _0x20994f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5cbb2a=_0x7b9664(),!_0x5cbb2a)return _0x20994f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5cbb2a[_0x20994f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf5c7bd=_0x2cde04(_0x5cbb2a[_0x20994f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5cbb2a[_0x20994f([0x6a,0x74,0x69])])),await _0x463a6c()?_0x4e0888()?_0x15573e()?_0x20994f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d9472()?(_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20994f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34d5bd=_0x2bc980(_0x20994f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20994f([0x74,0x72,0x69,0x61,0x6c])&&(_0x34d5bd=_0x2bc980(_0x20994f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20994f([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x34d5bd=_0x2bc980(_0x20994f([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e3711()):_0x20994f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20994f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20994f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x577136){return _0x20994f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15573e(){const _0xc11a4f=[_0x20994f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20994f([0x74,0x72,0x69,0x61,0x6c])][_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4144d6/0x3e8:0xe10*_0x2c063c;return _0x5cbb2a[_0x20994f([0x65,0x78,0x70])]<_0xc11a4f;}function _0x4e0888(){const _0xc94e7b=_0x5cbb2a[_0x20994f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc94e7b&&(!!_0xc94e7b[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20994f([0x2a]))||(!!_0xc94e7b[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20994f([0x52,0x48]))||!(!_0xc94e7b[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20994f([0x52,0x52,0x48]))||!_0x4d06fe())));}function _0x5d9472(){const _0x59c05e=_0x5cbb2a[_0x20994f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59c05e||0x0==_0x59c05e[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2015cd}=new URL(window[_0x20994f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59c05e[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2015cd))return!0x0;const _0x12df3f=_0x2015cd[_0x20994f([0x73,0x70,0x6c,0x69,0x74])](_0x20994f([0x2e]));return _0x59c05e[_0x20994f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a91a1=>_0x4a91a1[_0x20994f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20994f([0x2a])))[_0x20994f([0x6d,0x61,0x70])](_0x5c2e80=>_0x5c2e80[_0x20994f([0x73,0x70,0x6c,0x69,0x74])](_0x20994f([0x2e])))[_0x20994f([0x73,0x6f,0x6d,0x65])](_0x4c4bdd=>_0x12df3f[_0x20994f([0x65,0x76,0x65,0x72,0x79])]((_0x3db08b,_0x2ff7ca)=>_0x4c4bdd[_0x2ff7ca]===_0x3db08b||_0x4c4bdd[_0x2ff7ca]===_0x20994f([0x2a])));}function _0x4e3711(){return _0x34d5bd&&_0xf5c7bd?new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50789e,_0x102ee9)=>{_0x34d5bd[_0x20994f([0x74,0x68,0x65,0x6e])](_0x50789e,_0x102ee9),_0xf5c7bd[_0x20994f([0x74,0x68,0x65,0x6e])](_0x2e374d=>{_0x2e374d!=_0x20994f([0x56,0x61,0x6c,0x69,0x64])&&_0x50789e(_0x2e374d);},_0x102ee9);}):_0x34d5bd||_0xf5c7bd||_0x20994f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cde04(_0x6f5ff,_0x13849a){return new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27176d=>{if(_0xba8722())return _0x27176d(_0x20994f([0x56,0x61,0x6c,0x69,0x64]));_0x290225(),_0x23d37c[_0x20994f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20994f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b5a91=!0x1;const _0x3f0cd4=_0x20d582();function _0x167103(_0x3a66c2){return!!_0x3a66c2&&(typeof _0x3a66c2===_0x20994f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a66c2===_0x20994f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a66c2[_0x20994f([0x74,0x68,0x65,0x6e])]===_0x20994f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a66c2[_0x20994f([0x63,0x61,0x74,0x63,0x68])]===_0x20994f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x785e05(_0x1e1f9f){_0xc37286(_0x1e1f9f)[_0x20994f([0x74,0x68,0x65,0x6e])](_0x5094c4=>{if(!_0x5094c4||_0x5094c4[_0x20994f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20994f([0x6f,0x6b]))return _0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x583013(_0xe2f8b0(_0x3f0cd4+_0x13849a))!=_0x5094c4[_0x20994f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20994f([0x56,0x61,0x6c,0x69,0x64]);})[_0x20994f([0x74,0x68,0x65,0x6e])](_0x5d790a=>(_0xba8346(),_0x5d790a),()=>{const _0x52a1fe=_0x24290e();return null==_0x52a1fe?(_0xba8346(),_0x20994f([0x56,0x61,0x6c,0x69,0x64])):_0x20994f(_0x4144d6-_0x52a1fe>(0x1ea6a17f^_0x154b11)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20994f([0x74,0x68,0x65,0x6e])](_0x27176d)[_0x20994f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27176d(_0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d5b8e=0x3a9ccbff^_0x154b11;function _0xba8346(){const _0x5037b7=_0x20994f([0x6c,0x6c,0x63,0x74,0x2d])+_0x583013(_0xe2f8b0(_0x6f5ff)),_0x150fdb=_0x4b6ea4(_0x583013(window[_0x20994f([0x4d,0x61,0x74,0x68])][_0x20994f([0x63,0x65,0x69,0x6c])](_0x4144d6/_0x2d5b8e)));window[_0x20994f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20994f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5037b7,_0x150fdb);}function _0x24290e(){const _0x36b070=_0x20994f([0x6c,0x6c,0x63,0x74,0x2d])+_0x583013(_0xe2f8b0(_0x6f5ff)),_0x4ab12f=window[_0x20994f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20994f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36b070);return _0x4ab12f?window[_0x20994f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b6ea4(_0x4ab12f),0x10)*_0x2d5b8e:null;}function _0xc37286(_0x4729a6){return new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x462700,_0xfa817d)=>{_0x4729a6[_0x20994f([0x74,0x68,0x65,0x6e])](_0x462700,_0xfa817d),window[_0x20994f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfa817d,0x3aabf1bf^_0x154b11);});}}_0x23d37c[_0x20994f([0x6f,0x6e])](_0x20994f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52ab38,_0x3e559e)=>{if(_0x3e559e[0x0]!=_0x6f5ff)return _0x27176d(_0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e559e[0x1]={..._0x3e559e[0x1],[_0x20994f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f0cd4};},{[_0x20994f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20994f([0x68,0x69,0x67,0x68])}),_0x23d37c[_0x20994f([0x6f,0x6e])](_0x20994f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfed50c=>{_0x167103(_0xfed50c[_0x20994f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b5a91=!0x0,_0x785e05(_0xfed50c[_0x20994f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20994f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20994f([0x6c,0x6f,0x77])}),_0x56a46a[_0x20994f([0x74,0x68,0x65,0x6e])](()=>{_0x4b5a91||_0x27176d(_0x20994f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xba8722(){return _0x23d37c[_0x20994f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20994f([0x76,0x69,0x65,0x77])][_0x20994f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20994f([0x61,0x75,0x74,0x6f]);}function _0x290225(){_0x23d37c[_0x20994f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20994f([0x76,0x69,0x65,0x77])][_0x20994f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20994f([0x61,0x75,0x74,0x6f]);}}function _0x2bc980(_0x4ae4f4){const _0x1bcebd=[new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47ef2a=>setTimeout(_0x47ef2a,0x3aa31bb3^_0x154b11)),_0x56a46a[_0x20994f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b9185=>{const _0x30362b=0x3aaa2578^_0x154b11,_0x390793=_0x50ddb5[_0x20994f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4904de(){_0x390793[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x30362b&&_0x4b9185();}_0x4904de(),_0x390793[_0x20994f([0x6f,0x6e])](_0x20994f([0x61,0x64,0x64]),_0x4904de);})),new window[(_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x779180=>{function _0x9c8966(){for(const _0x4ddeb4 in window)if(window[_0x20994f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x20994f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4ddeb4))&&window[_0x4ddeb4]==_0x2e89bb)return _0x779180();_0x23d37c[_0x20994f([0x73,0x74,0x61,0x74,0x65])]!=_0x20994f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x20994f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9c8966,0x3aaa36f7^_0x154b11);}_0x116d6f(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x9c8966();})];return window[_0x20994f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20994f([0x72,0x61,0x63,0x65])](_0x1bcebd)[_0x20994f([0x74,0x68,0x65,0x6e])](()=>_0x4ae4f4);}async function _0x5b9d6a(){if(await _0x56a46a,_0x116d6f(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3c7e3f=_0x50ddb5[_0x20994f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4a9053=_0x50ddb5[_0x20994f([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])](_0x3c7e3f[_0x20994f([0x69,0x64])]),_0xddcaf7=_0x26f8d0(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xddcaf7[_0x20994f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3c7e3f['id'],_0x4a9053?_0x4a9053['id']:null,!0x0),_0xddcaf7[_0x20994f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x20994f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xddcaf7[_0x20994f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xddcaf7[_0x20994f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x39c513,void(_0xddcaf7[_0x20994f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x39c513);}if(_0x116d6f(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4e69d2=_0x26f8d0(_0x20994f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4e69d2[_0x20994f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x20994f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4e69d2[_0x20994f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4e69d2[_0x20994f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x39c513,_0x4e69d2[_0x20994f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x39c513;}_0x23d37c[_0x20994f([0x6d,0x6f,0x64,0x65,0x6c])][_0x20994f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39c513,_0x23d37c[_0x20994f([0x6d,0x6f,0x64,0x65,0x6c])][_0x20994f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39c513,_0x23d37c[_0x20994f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20994f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d06fe(){return _0x116d6f(_0x20994f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x26f8d0(_0x20994f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x20994f([0x73,0x74,0x61,0x74,0x65])]==_0x20994f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x9c9e86(_0x44367c){const _0xbaf47e=_0x3ad605();_0x23d37c[_0xbaf47e]=_0x20994f([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])+_0x44367c,_0x44367c[_0x20994f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x20994f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3ad605()]=_0x2e89bb),_0x44367c!=_0x20994f([0x56,0x61,0x6c,0x69,0x64])&&_0x5b9d6a();}function _0x3ad605(){const _0x3a261c=window[_0x20994f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20994f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20994f([0x6e,0x6f,0x77])]())[_0x20994f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20994f([0x2e]),'');let _0x494228=_0x20994f([0x62]);for(let _0x437504=0x0;_0x437504<_0x3a261c[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x437504+=0x2){let _0x16440c=window[_0x20994f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a261c[_0x20994f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x437504,_0x437504+0x2));_0x16440c>=_0x58c5d6[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16440c-=_0x58c5d6[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x494228+=_0x58c5d6[_0x16440c];}return _0x494228;}function _0x7b9664(){const _0x16de83=_0x37c5ba[_0x20994f([0x73,0x70,0x6c,0x69,0x74])](_0x20994f([0x2e]));if(0x3!=_0x16de83[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11633c(_0x16de83[0x1]);function _0x11633c(_0x32c428){const _0x2ae028=_0x52576f(_0x32c428);return _0x2ae028&&_0x2cee69()?_0x2ae028:null;function _0x2cee69(){const _0x1f4b3e=_0x2ae028[_0x20994f([0x6a,0x74,0x69])],_0x1114ce=window[_0x20994f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f4b3e[_0x20994f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f4b3e[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fd8e1={..._0x2ae028,[_0x20994f([0x6a,0x74,0x69])]:_0x1f4b3e[_0x20994f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f4b3e[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fd8e1[_0x20994f([0x76,0x63])],_0xe2f8b0(_0x3fd8e1)==_0x1114ce;}}}async function _0x463a6c(){let _0x160022=!0x0;try{const _0x51f699=_0x37c5ba[_0x20994f([0x73,0x70,0x6c,0x69,0x74])](_0x20994f([0x2e])),[_0x33d9b2,_0x1e076a,_0x41eed5]=_0x51f699;return _0x178c21(_0x33d9b2),await _0x47b39e(_0x33d9b2,_0x1e076a,_0x41eed5),_0x160022;}catch(_0x38f7c8){return!0x1;}function _0x178c21(_0x5b6ef5){const _0x122723=_0x52576f(_0x5b6ef5);_0x122723&&_0x122723[_0x20994f([0x61,0x6c,0x67])]==_0x20994f([0x45,0x53,0x32,0x35,0x36])||(_0x160022=!0x1);}async function _0x47b39e(_0x7f7e07,_0x495714,_0x3bda47){const _0x2378db=window[_0x20994f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20994f([0x66,0x72,0x6f,0x6d])](_0x3255ee(_0x3bda47),_0x7180f7=>_0x7180f7[_0x20994f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf030c9=new window[(_0x20994f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20994f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7f7e07+_0x20994f([0x2e])+_0x495714),_0xdd124=window[_0x20994f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20994f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdd124)return;const _0x18d9e0=await _0xdd124[_0x20994f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20994f([0x6a,0x77,0x6b]),_0x46d573,{[_0x20994f([0x6e,0x61,0x6d,0x65])]:_0x20994f([0x45,0x43,0x44,0x53,0x41]),[_0x20994f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20994f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20994f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdd124[_0x20994f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20994f([0x6e,0x61,0x6d,0x65])]:_0x20994f([0x45,0x43,0x44,0x53,0x41]),[_0x20994f([0x68,0x61,0x73,0x68])]:{[_0x20994f([0x6e,0x61,0x6d,0x65])]:_0x20994f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18d9e0,_0x2378db,_0xf030c9)||(_0x160022=!0x1);}}function _0x52576f(_0x24ca42){return _0x24ca42[_0x20994f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20994f([0x65,0x79]))?JSON[_0x20994f([0x70,0x61,0x72,0x73,0x65])](_0x3255ee(_0x24ca42)):null;}function _0x3255ee(_0x31ea3f){return window[_0x20994f([0x61,0x74,0x6f,0x62])](_0x31ea3f[_0x20994f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20994f([0x2b]))[_0x20994f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20994f([0x2f])));}function _0xe2f8b0(_0x15c8f5){let _0xe0df03=0x1505;function _0x5722bc(_0x223d88){for(let _0x126920=0x0;_0x126920<_0x223d88[_0x20994f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x126920++){const _0x375879=_0x223d88[_0x20994f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x126920);_0xe0df03=(_0xe0df03<<0x5)+_0xe0df03+_0x375879,_0xe0df03&=_0xe0df03;}}function _0x2f7df6(_0x43abbc){Array[_0x20994f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43abbc)?_0x43abbc[_0x20994f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f7df6):_0x43abbc&&typeof _0x43abbc==_0x20994f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20994f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43abbc)[_0x20994f([0x73,0x6f,0x72,0x74])]()[_0x20994f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44b145,_0x50dc7d])=>{_0x5722bc(_0x44b145),_0x2f7df6(_0x50dc7d);}):_0x5722bc(window[_0x20994f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43abbc));}return _0x2f7df6(_0x15c8f5),_0xe0df03>>>0x0;}function _0x583013(_0x599af5){return _0x599af5[_0x20994f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20994f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20994f([0x30]));}function _0x4b6ea4(_0x4043b7){return _0x4043b7[_0x20994f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20994f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20994f([0x6a,0x6f,0x69,0x6e])]('');}function _0x116d6f(_0x2e601a){return _0x23d37c[_0x20994f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20994f([0x68,0x61,0x73])](_0x2e601a);}function _0x26f8d0(_0x48c0ac){return _0x23d37c[_0x20994f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20994f([0x67,0x65,0x74])](_0x48c0ac);}function _0x39c513(){}function _0x20994f(_0x23cbda){return _0x23cbda['map'](_0x4490a9=>String['fromCharCode'](_0x4490a9))['join']('');}_0x9c9e86(await _0x259cdf());}(this);}['createRevision'](_0x49bff6){const _0x3426a4=this['editor']['plugins']['get']('Users');return new a({'id':_0x49bff6['id'],'name':_0x49bff6['name'],'creator':_0x49bff6['creatorId']?_0x3426a4['getUser'](_0x49bff6['creatorId']):null,'diffData':_0x49bff6['diffData']||_0x49bff6['data'],'authors':_0x49bff6['authorsIds']['map'](_0x5e126c=>_0x3426a4['getUser'](_0x5e126c)),'createdAt':new Date(_0x49bff6['createdAt']),'attributes':_0x49bff6['attributes'],'fromVersion':_0x49bff6['fromVersion'],'toVersion':_0x49bff6['toVersion']});}['addRevision'](_0x2c8e5,_0xc7128a=0x0){this['_revisions']['add'](_0x2c8e5,_0xc7128a);}['getRevision'](_0xa633ea){return this['_revisions']['get'](_0xa633ea);}['getRevisions'](_0x44ecde={'toJSON':!0x1}){const _0x32ac24=Array['from'](this['_revisions']);return _0x32ac24['reverse'](),_0x44ecde['toJSON']?_0x32ac24['map'](_0x1e0a77=>_0x1e0a77['toJSON']()):_0x32ac24;}['getIndex'](_0x34e5c6){return this['_revisions']['getIndex'](_0x34e5c6);}['getEarlierVisibleRevision'](_0x20982a){const [,_0x436790]=this['getRevisionsIterator'](_0x20982a,{'direction':'earlier'});return _0x436790;}['getLaterVisibleRevision'](_0x3e7ede){const [,_0x28f805]=this['getRevisionsIterator'](_0x3e7ede,{'direction':'later'});return _0x28f805;}['getRevisionsInDiff'](_0x1fb8bc){const _0x5a5bab=[];for(const _0x16648c of this['getRevisionsIterator'](_0x1fb8bc['newRevisionId']))if(_0x5a5bab['push'](_0x16648c),_0x16648c['id']===_0x1fb8bc['oldRevisionId'])break;return _0x5a5bab;}*['getRevisionsIterator'](_0x10227b,{direction:_0x37893b='earlier',filter:_0x5eaeb2=()=>!0x0}={}){const _0x3d0124='earlier'===_0x37893b?0x1:-0x1;let _0x199980=this['_revisions']['get'](_0x10227b),_0x357976=this['getIndex'](_0x199980);for(yield _0x199980;_0x199980;){if(_0x357976+=_0x3d0124,_0x199980=this['getRevision'](_0x357976),!_0x199980)return;_0x5eaeb2(_0x199980)&&(yield _0x199980);}}}function R(_0x1de825,_0x1c8bf7,_0x5f4c47){const t=_0x1de825['t'];switch(_0x1c8bf7){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'},_0x5f4c47);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5f4c47);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x25a049,'a':_0x597a04,'e':_0x55fbd8,'r':_0x10d393,'u':_0x5c14f2};class l extends _0x49113c{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x580655,j,_0x25f2bd];}constructor(_0xa305ab){super(_0xa305ab),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x101bff=_0x20d582();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x101bff},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2e1531=this['repository']['getRevision'](0x0),_0x233f2d=_0x2e1531&&null===_0x2e1531['creator']?_0x2e1531:null;if(this['_continueCurrentRevision']=!!_0x233f2d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x279ca2=this['_source']['getCurrentRevisionId'](),_0x49c486=this['repository']['getRevision'](_0x279ca2);if(_0x49c486)this['_startingVersion']=_0x49c486['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1c3a1c=this['_source']['history']['_operations']['find'](_0x14f57c=>!_0x14f57c['_isInit']),_0xb75385=_0x1c3a1c?_0x1c3a1c['baseVersion']:this['_source']['history']['version'];_0x2e1531?(_0x2e1531['toVersion']<_0xb75385&&_0x2e1531['_update']({'toVersion':_0xb75385}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x233f2d['id'],this['_startingVersion']=_0x233f2d['fromVersion']):(this['_startingVersion']=_0x2e1531['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xb75385,this['_continueCurrentRevision']=!0x1);}}else _0x233f2d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x233f2d['toVersion'],this['editor']['model']['document']['history']['version']),_0x233f2d['fromVersion']===_0x233f2d['toVersion']?(0x0!==_0x233f2d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x233f2d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x233f2d['id'],this['_startingVersion']=_0x233f2d['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',_0x4e4b7a=>!_0x4e4b7a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c0339=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x87249f;for(const _0x397005 in _0x1c0339){const _0x2850fb=_0x397005,_0x1624aa=_0x1c0339[_0x2850fb];if('revisionHistoryLicenseKeyValid'==_0x1624aa||'revisionHistoryLicenseKeyInvalid'==_0x1624aa||'revisionHistoryLicenseKeyExpired'==_0x1624aa||'revisionHistoryLicenseKeyDomainLimit'==_0x1624aa||'revisionHistoryLicenseKeyNotAllowed'==_0x1624aa||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1624aa||'revisionHistoryLicenseKeyTrialLimit'==_0x1624aa||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1624aa||'revisionHistoryLicenseKeyUsageLimit'==_0x1624aa){delete _0x1c0339[_0x2850fb],_0x87249f=_0x1624aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x87249f&&_0x1c0339['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x87249f&&_0x1c0339['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x87249f&&_0x1c0339['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x87249f&&_0x1c0339['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xb91d73=this['repository']['getRevision'](0x0),_0x58de11=await this['getRevisionDocumentData'](_0xb91d73),_0x746845=await this['getRevisionRootsAttributes'](_0xb91d73);this['_replaceEditorDataWithRevisionData'](_0x58de11,_0x746845);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2b9a8f){this['_source']=_0x2b9a8f;}async['update'](){const _0x1d488c=await this['_source']['getLatestVersion']();if(_0x1d488c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x245410=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1d488c});_0x245410['authors']=_0x245410['authorsIds']['map'](_0x182299=>this['editor']['plugins']['get']('Users')['getUser'](_0x182299)),this['currentRevision']['_update'](_0x245410);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x4b78a4={},_0x744c87=null){const _0x5f0641=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x744c87>this['currentRevision']['toVersion']&&(_0x744c87=null),null===_0x744c87&&(_0x744c87=await this['_source']['getLatestVersion']());const _0x135c1d=this['_getFromVersion'](_0x744c87),_0x2b45cf=this['buildRevisionData']({'from':_0x135c1d,'to':_0x744c87});if(this['currentRevision']['toVersion']<_0x744c87){const _0x3a5f26=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x744c87,'to':_0x744c87});_0x3a5f26['authors']=[],_0x3a5f26['authorsIds']=[],_0x3a5f26['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3a5f26,!0x0),delete _0x3a5f26['authors'],_0x5f0641['push'](_0x3a5f26);}_0x4b78a4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b78a4['name']=_0x4b78a4['name']||null,_0x4b78a4['id']=_0x4b78a4['id']||_0x20d582(),_0x4b78a4={..._0x4b78a4,..._0x2b45cf};const _0x1b3128=this['addRevisionData'](_0x4b78a4);_0x5f0641['push'](_0x4b78a4);const _0x1860e1=this['repository']['getIndex'](_0x1b3128);if(0x0!==_0x1860e1){const _0x1d6178=this['repository']['getRevision'](_0x1860e1-0x1);if(_0x1d6178['fromVersion']!==_0x744c87){const _0x36bf2d=this['_revisionDataBuilder']['getData'](_0x744c87,_0x1d6178['toVersion']),_0x593d90={'id':_0x1d6178['id'],'diffData':_0x36bf2d['diffData'],'authorsIds':_0x36bf2d['authorsIds'],'authors':_0x36bf2d['authorsIds']['map'](_0x4f8ea3=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f8ea3)),'fromVersion':_0x744c87};_0x1d6178===this['currentRevision']&&(_0x593d90['createdAt']=new Date(_0x4b78a4['createdAt']['getTime']()+0xa)),_0x1d6178['_update'](_0x593d90,!0x0),delete _0x593d90['authors'],_0x5f0641['push'](_0x593d90);}}if(this['adapter']){for(const _0x1e8795 of _0x5f0641)this['_bufferUpdate'](_0x1e8795['id'],_0x1e8795,!0x0);this['sendBufferedUpdates']();}return _0x1b3128;}['addRevisionData'](_0x15914e){const _0x2e85f2=this['repository']['createRevision'](_0x15914e);return this['adapter']&&_0x2e85f2['on']('_update',(_0x5601a2,_0x3a5479,_0x1624a9)=>{_0x1624a9||(this['_bufferUpdate'](_0x3a5479['id'],_0x3a5479,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2e85f2,this['_findInsertionIndex'](_0x2e85f2)),_0x2e85f2;}async['getRevisionDocumentData'](_0x21db7f){await this['_loadRevisionData'](_0x21db7f);const _0x1ca7ce={};for(const _0x1d74f3 in _0x21db7f['diffData']){if(_0x21db7f['diffData'][_0x1d74f3]['attachChange']&&!_0x21db7f['diffData'][_0x1d74f3]['attachChange']['isAttached'])continue;const _0x57eea2=this['_removeRevisionMarkers'](JSON['parse'](_0x21db7f['diffData'][_0x1d74f3]['insertions'])),_0x1667bc=this['editor']['editing']['view']['document'],_0x2638ef=new _0x1b99e2(_0x1667bc,_0x57eea2['map'](_0x2b1295=>V(_0x2b1295,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1ca7ce[_0x1d74f3]=this['editor']['data']['processor']['toData'](_0x2638ef),this['editor']['data']['processor']['useFillerType']('default');}return _0x1ca7ce;}async['getRevisionRootsAttributes'](_0x46144b){await this['_loadRevisionData'](_0x46144b);const _0x186615={};for(const _0x54b53a in _0x46144b['diffData'])_0x46144b['diffData'][_0x54b53a]['attachChange']&&!_0x46144b['diffData'][_0x54b53a]['attachChange']['isAttached']||(_0x186615[_0x54b53a]=_0x46144b['diffData'][_0x54b53a]['attributesAfter']||{});return _0x186615;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xc3b801=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x54804e=0x0;_0x54804e<_0xc3b801['length'];_0x54804e++){const _0x1aa930=_0xc3b801[_0x54804e];let _0x5c2491=!0x1;for(const _0x5a4f5a of Object['keys'](_0x1aa930))void 0x0===_0x1aa930[_0x5a4f5a]?delete _0x1aa930[_0x5a4f5a]:'id'!==_0x5a4f5a&&(_0x5c2491=!0x0);_0x5c2491||(_0xc3b801[_0x54804e]=null);}if(_0xc3b801=_0xc3b801['filter'](_0x4fce5c=>null!==_0x4fce5c),!_0xc3b801['length'])return;for(let _0x194dd6=0x0;_0x194dd6<_0xc3b801['length'];_0x194dd6++){const _0x5bb960=_0xc3b801[_0x194dd6];void 0x0!==_0x5bb960['fromVersion']&&void 0x0===_0x5bb960['toVersion']&&(_0x5bb960['toVersion']=this['repository']['getRevision'](_0x5bb960['id'])['toVersion']),void 0x0!==_0x5bb960['toVersion']&&void 0x0===_0x5bb960['fromVersion']&&(_0x5bb960['fromVersion']=this['repository']['getRevision'](_0x5bb960['id'])['fromVersion']);}const _0x1dfecf=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xc3b801,_0x1dfecf)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3efcef=>{if(_0x3efcef){for(const _0x5b4d7f of _0x3efcef)this['setRevisionData']({'id':_0x5b4d7f['id'],'createdAt':_0x5b4d7f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x113b7e,_0x552a3e){let _0x394a3a=this['editor']['config']['get']('initialData'),_0x6f19ab=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x394a3a){_0x394a3a={};for(const _0x18976a of this['editor']['model']['document']['getRootNames']())_0x394a3a[_0x18976a]='';}if('string'==typeof _0x394a3a&&(_0x394a3a={'main':_0x394a3a}),void 0x0===_0x6f19ab){_0x6f19ab={};for(const _0x5cbbbb of this['editor']['model']['document']['getRootNames']())_0x6f19ab[_0x5cbbbb]={};}let _0x163eaf=!0x1;const _0x959f4f=Object['keys'](_0x394a3a),_0x830b57=Object['keys'](_0x113b7e);for(const _0x5cd3f1 of _0x959f4f){if(_0x394a3a[_0x5cd3f1]!==_0x113b7e[_0x5cd3f1]&&''!==_0x394a3a[_0x5cd3f1]['trim']()){_0x163eaf=!0x0;break;}if(!_0x106b29(_0x6f19ab[_0x5cd3f1],_0x552a3e[_0x5cd3f1])&&Object['keys'](_0x6f19ab[_0x5cd3f1])['length']>0x0){_0x163eaf=!0x0;break;}}_0x163eaf||(_0x163eaf=_0x830b57['some'](_0x25bf86=>!this['editor']['model']['document']['getRoot'](_0x25bf86))),_0x163eaf&&_0xa4cba7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x394a3a,'editorRootsAttributes':_0x6f19ab,'revisionData':_0x113b7e,'revisionRootsAttributes':_0x552a3e}),this['editor']['config']['set']('initialData',_0x113b7e),this['editor']['config']['set']('rootsAttributes',_0x552a3e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2e27eb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2e27eb['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x31cc72){const _0x546fdf=this['repository']['getRevisions']();_0x546fdf['reverse']();let _0xd4d607=0x0;for(;_0xd4d607<_0x546fdf['length'];){const _0x5e0b7e=_0x546fdf[_0xd4d607];if(_0x5e0b7e===this['currentRevision']){_0xd4d607++;continue;}if(_0x5e0b7e['id']===this['_initialRevisionId'])break;const _0x3a1c46=_0x31cc72['toVersion']-_0x5e0b7e['toVersion']||_0x31cc72['fromVersion']-_0x5e0b7e['fromVersion'];if(_0x3a1c46>0x0)break;if(_0x3a1c46<0x0)_0xd4d607++;else{if(!_0x31cc72['creator']&&_0x5e0b7e['creator'])break;if(_0x5e0b7e['creator']||!_0x31cc72['creator']){if(_0x31cc72['createdAt']>_0x5e0b7e['createdAt'])break;_0xd4d607++;}else _0xd4d607++;}}return _0xd4d607;}['setRevisionData'](_0x57e235){const _0x223954=this['repository']['getRevision'](_0x57e235['id']);if(_0x57e235['createdAt']&&(_0x57e235['createdAt']=new Date(_0x57e235['createdAt'])),_0x57e235['authorsIds']){const _0x1defce=this['editor']['plugins']['get']('Users');_0x57e235['authors']=_0x57e235['authorsIds']['map'](_0x5ae903=>_0x1defce['getUser'](_0x5ae903));}_0x223954['_update'](_0x57e235,!0x0);}['buildRevisionData']({revision:_0x5e37f3=null,from:_0x134cc7=null,to:_0x190cfc=null}){_0x134cc7=null!==_0x134cc7?_0x134cc7:_0x5e37f3['fromVersion'],_0x190cfc=null!==_0x190cfc?_0x190cfc:_0x5e37f3['toVersion'];const _0x5a6a97=this['_revisionDataBuilder']['getData'](_0x134cc7,_0x190cfc),_0x4483c4={'diffData':_0x5a6a97['diffData'],'authorsIds':_0x5a6a97['authorsIds'],'fromVersion':_0x134cc7,'toVersion':_0x190cfc};if(!_0x5e37f3||_0x190cfc!==_0x5e37f3['toVersion']){const _0x48e415=_0x190cfc-0x1,_0x29f369=this['_source']['history']['getOperation'](_0x48e415);_0x4483c4['createdAt']=_0x29f369&&_0x29f369['createdAt']||new Date();}if(this['_loadedStateData']&&_0x134cc7===this['_loadedStateData']['fromVersion']){for(const _0x54cd06 of this['_loadedStateData']['authors'])_0x4483c4['authorsIds']['includes'](_0x54cd06['id'])||_0x4483c4['authorsIds']['push'](_0x54cd06['id']);}return _0x4483c4;}['_loadRevisionData'](_0x2407a3){if(!_0x2407a3||_0x2407a3['diffData'])return Promise['resolve']();{const _0x4feac9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4feac9,'revisionId':_0x2407a3['id']})['then'](_0x95525c=>{_0x2407a3['diffData']=_0x95525c['diffData'];});}}['_bufferUpdate'](_0x571ce9,_0x3ef59a,_0x1f55e7){if(this['_bufferedUpdates']['has'](_0x571ce9)){const _0x1c49ac=this['_bufferedUpdates']['get'](_0x571ce9);_0x3ef59a=_0x1f55e7?{..._0x1c49ac,..._0x3ef59a}:{..._0x3ef59a,..._0x1c49ac};}this['_bufferedUpdates']['set'](_0x571ce9,_0x3ef59a);}['_getFromVersion'](_0x5b528e){const _0x447abf=this['repository']['getRevisions']();_0x447abf['reverse'](),_0x447abf['shift']();const _0x1f043e=_0x447abf['find'](_0x320032=>_0x320032['toVersion']<=_0x5b528e)['toVersion'];return _0x1f043e<this['_startingVersion']?this['_startingVersion']:_0x1f043e;}['_createInitialRevision'](_0x5d8359){const _0xe055e0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xe055e0)this['_initialRevisionId']=_0xe055e0['id'];else{const _0x22e918=!this['editor']['model']['document']['roots']['find'](_0x58f6a5=>this['editor']['model']['hasContent'](_0x58f6a5)),_0x38dd3d=this['editor']['plugins']['get']('Users')['me']['id'],_0x5eed93=R(this['editor']['locale'],_0x22e918?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5d8359,'to':_0x5d8359,'id':this['_initialRevisionId'],'name':_0x5eed93,'creatorId':_0x38dd3d});}}['_createCurrentRevision'](_0x5b86c5){const _0x2fa8c8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2fa8c8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5b86c5,'to':_0x5b86c5,'id':_0x2fa8c8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x24cd1f,from:_0xaec831,to:_0x15666b,creatorId:_0x2de062,id:_0x42aeda}){const _0x22c6d7=this['buildRevisionData']({'from':_0xaec831,'to':_0x15666b});_0x22c6d7['name']=_0x24cd1f,_0x22c6d7['creatorId']=_0x2de062,_0x22c6d7['id']=_0x42aeda;const _0xb2910b=this['addRevisionData'](_0x22c6d7);return this['adapter']&&this['_bufferUpdate'](_0x22c6d7['id'],_0x22c6d7,!0x0),_0xb2910b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x54ad97){return(_0x54ad97=_0x54ad97['filter'](_0x3db28a=>!_0x3db28a['name']||'revision-start'!==_0x3db28a['name']&&'revision-end'!==_0x3db28a['name']))['forEach'](_0x38c652=>{'string'!=typeof _0x38c652&&(_0x38c652['children']=this['_removeRevisionMarkers'](_0x38c652['children']),_0x38c652['attributes']=_0x38c652['attributes']['filter'](_0x115937=>!_0x115937[0x0]['startsWith']('data-revision-')));}),_0x54ad97;}}function V(_0x24d7e1,_0x260abb){const _0x3ba2be=_0x260abb['editing']['view']['document'];if('string'==typeof _0x24d7e1)return new _0x10d8cb(_0x3ba2be,_0x24d7e1);{const _0x499836=_0x24d7e1['children']['map'](_0x46d77d=>V(_0x46d77d,_0x260abb));return new(C[_0x24d7e1['type']]||_0x3b4ce6)(_0x3ba2be,_0x24d7e1['name'],_0x24d7e1['attributes'],_0x499836);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x42e71e){this['editor']=_0x42e71e,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'](_0x298120){this['source']=_0x298120;const _0x37e967=new Map(),_0x329278=new Map(),_0x1afa3a=this['editor']['model']['document']['roots']['map'](_0x99ccde=>_0x99ccde['rootName']);for(const _0x4d8841 of _0x1afa3a){const _0x3500fd=this['editor']['model']['document']['getRoot'](_0x4d8841),_0x565de3=F(_0x3500fd);_0x37e967['set'](_0x4d8841,_0x565de3),_0x329278['set'](_0x4d8841,Object['fromEntries'](_0x3500fd['getAttributes']()));}const _0x163523=Array['from'](this['editor']['model']['markers'])['map'](_0x4e62cd=>[_0x4e62cd['name'],_0x4e62cd['getRange']()]),_0xaf2709=this['source']['version'];this['_saveMetaData'](_0xaf2709,_0x37e967,_0x163523,_0x329278),this['_startingRevisionId']=this['_revisionId'];const _0x382042=new Map(),_0xef08=new Map();for(const _0x1508ef of _0x1afa3a){const _0x25e0e9=B(_0x1508ef);_0x382042['set'](_0x1508ef,_0x25e0e9),_0xef08['set'](_0x1508ef,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x382042,[],_0xef08);}['getData'](_0x35cee2,_0x3abf84){if(this['_lastFrom']===_0x35cee2&&this['_lastTo']<=_0x3abf84)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3abf84,!0x0);else{if(!this['_savedMetaData']['has'](_0x35cee2)){const _0xda6a1a=this['_getPreviousFrom'](_0x35cee2);this['_calculateMetaData'](_0xda6a1a,_0x35cee2,!0x1);}this['_calculateMetaData'](_0x35cee2,_0x3abf84,!0x0);}return this['_lastFrom']=_0x35cee2,this['_lastTo']=_0x3abf84,this['_getState']();}['loadState'](_0x2128a1){this['_reset'](),this['_lastFrom']=_0x2128a1['fromVersion'],this['_lastTo']=_0x2128a1['toVersion'];for(const _0x272b6e in _0x2128a1['diffData']){const _0x528116=_0x2128a1['diffData'][_0x272b6e]['attachChange'],_0x3a0830=_0x1046c5(_0x2128a1['diffData'][_0x272b6e]['attributesBefore'])||{},_0x264357=this['_makeModelFromViewString'](_0x2128a1['diffData'][_0x272b6e]['deletions']);_0x264357['rootName']=_0x272b6e,_0x264357['_isAttached']=!_0x528116||!_0x528116['isAttached'],_0x264357['isAttached']=()=>_0x264357['_isAttached'],this['_baseRoots']['set'](_0x272b6e,_0x264357),this['_baseRootsAttributes']['set'](_0x272b6e,_0x3a0830),_0x528116&&this['_touchedRoots']['set'](_0x272b6e,_0x528116);const _0x24c7bd=this['_makeIdsRoot'](_0x264357);this['_baseIdsRoots']['set'](_0x272b6e,_0x24c7bd);for(const [_0x351f4b,_0x2a4a3b]of _0x264357['markers']){if(!_0x351f4b['startsWith']('revision:'))continue;const _0x1c5dc0=_0x351f4b['split'](':')[0x2];for(const _0x3fc67a of _0x2a4a3b['getWalker']({'singleCharacters':!0x0})){const _0x409fc4=this['_getVidAttributeName'](_0x3fc67a),_0x19dd77='elementEnd'==_0x3fc67a['type']?_0x3fc67a['previousPosition']['path']['slice'](0x0,-0x1):_0x3fc67a['previousPosition']['path'],_0x1d977e=_0x24c7bd['getNodeByPath'](_0x19dd77)['getAttribute'](_0x409fc4);this['_touched']['set'](_0x1d977e,{'userId':_0x1c5dc0});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2a5946=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x136b66=>!this['_touched']['has'](_0x136b66));let _0x16079c=0x0;const _0x4f5190=new Map();for(const _0x363465 in _0x2128a1['diffData']){const _0x29cbcd=_0x2128a1['diffData'][_0x363465]['attachChange'],_0x2276e3=_0x1046c5(_0x2128a1['diffData'][_0x363465]['attributesAfter'])||{},_0x22a844=this['_makeModelFromViewString'](_0x2128a1['diffData'][_0x363465]['insertions']);_0x22a844['rootName']=_0x363465,_0x22a844['_isAttached']=!_0x29cbcd||_0x29cbcd['isAttached'],_0x22a844['isAttached']=()=>_0x22a844['_isAttached'],this['_diffRoots']['set'](_0x363465,_0x22a844),this['_diffRootsAttributes']['set'](_0x363465,_0x2276e3);const _0x2fe146=this['_makeIdsRoot'](_0x22a844,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x363465,_0x2fe146),_0x4f5190['set'](_0x363465,_0x22a844['isAttached']()?_0x2276e3:{});for(const [_0x58c409,_0x5d8a83]of _0x22a844['markers']){if(!_0x58c409['startsWith']('revision:'))continue;const _0x5318bc=_0x58c409['split'](':')[0x2];for(const _0x265cbe of _0x5d8a83['getWalker']({'singleCharacters':!0x0})){const _0x531c95=this['_getVidAttributeName'](_0x265cbe),_0x33ba68=this['_revisionId']++,_0x16aca1='elementEnd'==_0x265cbe['type']?_0x265cbe['previousPosition']['path']['slice'](0x0,-0x1):_0x265cbe['previousPosition']['path'];_0x2fe146['getNodeByPath'](_0x16aca1)['_setAttribute'](_0x531c95,_0x33ba68),this['_touched']['set'](_0x33ba68,{'userId':_0x5318bc});}}for(const _0x56b4b4 of this['editor']['model']['createRangeIn'](_0x22a844)['getWalker']({'singleCharacters':!0x0})){const _0x4b0257=this['_getVidAttributeName'](_0x56b4b4),_0x59b935='elementEnd'==_0x56b4b4['type']?_0x56b4b4['previousPosition']['path']['slice'](0x0,-0x1):_0x56b4b4['previousPosition']['path'],_0xb7c06=_0x2fe146['getNodeByPath'](_0x59b935);_0xb7c06['getAttribute'](_0x4b0257)>0x0||_0xb7c06['_setAttribute'](_0x4b0257,_0x2a5946[_0x16079c++]);}for(const [_0x189386,_0x375bbd]of _0x22a844['markers'])_0x189386['startsWith']('revision:')||this['_markers']['set'](_0x189386,_0x375bbd);}const _0x488210=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x488210),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x488210,0x1));const _0x52941e=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x52941e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x52941e,0x1));const _0x8ed05=Array['from'](this['_diffRoots'])['map'](([_0x389a15,_0x5d2079])=>[_0x389a15,F(_0x5d2079)]);this['_saveMetaData'](this['_lastTo'],_0x8ed05,this['_markers'],_0x4f5190);}['_makeModelFromViewString'](_0x2b8413){const _0x311e13=JSON['parse'](_0x2b8413),_0x4e6aaa=this['editor']['editing']['view']['document'],_0x4c4b1b=new _0x1b99e2(_0x4e6aaa,_0x311e13['map'](_0x121c72=>V(_0x121c72,this['editor'])));return this['editor']['data']['toModel'](_0x4c4b1b);}['_saveMetaData'](_0x39acd1,_0x4f0f52,_0x3430b8,_0x22578b){const _0xe09c4a=new Map(_0x4f0f52),_0xa89573=new Map(_0x1046c5(_0x22578b)),_0x554ef9=new Map();for(const [_0x35d611,_0x3113e1]of _0x3430b8)_0x554ef9['set'](_0x35d611,{'start':_0x3113e1['start']['clone'](),'end':_0x3113e1['end']['clone'](),'rootName':_0x3113e1['root']['rootName']});this['_savedMetaData']['set'](_0x39acd1,{'roots':_0xe09c4a,'markers':_0x554ef9,'rootsAttributes':_0xa89573});}['_removeMetaData'](_0xa5c4c3){this['_savedMetaData']['delete'](_0xa5c4c3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x545726,_0x325335=null){let _0x5af956=null;_0x545726['is']('documentFragment')||(_0x5af956=new ft(_0x545726['name'],{'vid_start':null===_0x325335?this['_revisionId']++:_0x325335++}));const _0x3db151=[];for(const _0x439966 of _0x545726['getChildren']())if(_0x439966['is']('element')){_0x3db151['push'](this['_makeIdsRoot'](_0x439966,_0x325335));const _0x2a137a=_0x3db151[_0x3db151['length']-0x1];null!==_0x325335&&(_0x325335=_0x2a137a['is']('element','$text')?_0x2a137a['getAttribute']('vid')+0x1:_0x2a137a['getAttribute']('vid_end')+0x1);}else{for(let _0x104da8=0x0;_0x104da8<_0x439966['offsetSize'];_0x104da8++)_0x3db151['push'](new ft('$text',{'vid':null===_0x325335?this['_revisionId']++:_0x325335++}));}if(_0x545726['is']('documentFragment')){const _0x1f01f1=B(_0x545726['rootName']);return _0x1f01f1['_insertChild'](0x0,_0x3db151),_0x1f01f1;}return _0x5af956['_setAttribute']('vid_end',null===_0x325335?this['_revisionId']++:_0x325335++),_0x5af956['_insertChild'](0x0,_0x3db151),_0x5af956;}['_calculateMetaData'](_0x1ef1f0,_0x3c7273,_0x5a27cf){this['_reset']();const {roots:_0x338f6b,markers:_0x2de35c,rootsAttributes:_0x269db1}=this['_savedMetaData']['get'](_0x1ef1f0);this['_baseRoots']=new Map(_0x338f6b),this['_baseRootsAttributes']=new Map(_0x1046c5(_0x269db1));for(const [_0x3929dd,_0xfc5631]of this['_baseRoots'])if('$graveyard'!==_0x3929dd&&(this['_diffRoots']['set'](_0x3929dd,F(_0xfc5631)),this['_diffRootsAttributes']=new Map(_0x1046c5(_0x269db1)),_0x5a27cf)){const _0x4f4da8=this['_revisionId'];this['_idsRoots']['set'](_0x3929dd,this['_makeIdsRoot'](_0xfc5631)),this['_baseIdsRoots']['set'](_0x3929dd,this['_makeIdsRoot'](_0xfc5631,_0x4f4da8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5a27cf&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x35b3cb,_0x4d9ea8]of _0x2de35c){const _0x323719=this['_baseRoots']['get'](_0x4d9ea8['rootName']),_0x246421=this['_diffRoots']['get'](_0x4d9ea8['rootName']),_0xbe7539=new vt(this['_fixPosition'](_0x4d9ea8['start'],_0x323719),this['_fixPosition'](_0x4d9ea8['end'],_0x323719)),_0x4c8afd=this['_fixRange'](_0xbe7539,_0x246421);_0x323719['markers']['set'](_0x35b3cb,_0xbe7539),this['_markers']['set'](_0x35b3cb,_0x4c8afd);}this['_applyOperations'](_0x1ef1f0,_0x3c7273,_0x5a27cf);}['_applyOperations'](_0x4b0352,_0x136568,_0x1d5c82){for(const _0x1511d2 of this['source']['getOperations'](_0x4b0352,_0x136568))this['_handleOperation'](_0x1511d2,_0x1d5c82);for(const _0x4dad26 of this['_diffRoots']['values']())_0x4dad26['markers']['clear']();for(const [_0x219705,_0x59cd3a]of this['_markers']){this['_diffRoots']['get'](_0x59cd3a['root']['rootName'])['markers']['set'](_0x219705,_0x59cd3a['clone']());}const _0x396218=new Map(),_0x61f9c6=new Map();for(const [_0x4d2269,_0x61d012]of this['_diffRoots'])_0x396218['set'](_0x4d2269,F(_0x61d012)),_0x61f9c6['set'](_0x4d2269,this['_diffRootsAttributes']['get'](_0x4d2269));this['_saveMetaData'](_0x136568,_0x396218,this['_markers'],_0x61f9c6);}['_getPreviousFrom'](_0x4b8651){const _0x1d0f80=Array['from'](this['_savedMetaData']['keys']());_0x1d0f80['sort']((_0x56cec3,_0x4c54cf)=>_0x56cec3-_0x4c54cf),_0x1d0f80['reverse']();for(const _0x25144b of _0x1d0f80)if(_0x25144b<_0x4b8651)return _0x25144b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x791814,_0x1390e5){const _0x3e724d=Array['from'](_0x1390e5['markers'])['map'](([_0x583fdb,_0x1b695a])=>[_0x583fdb,this['_fixRange'](_0x1b695a,_0x791814)]);_0x791814['markers']=new Map(_0x3e724d);}['_transformMarkers'](_0x32518f){for(const _0x496028 of this['_markers']['values']()){const _0x3d7450=_0x496028['getTransformedByOperation'](_0x32518f),_0x59806c=vt['_createFromRanges'](_0x3d7450);_0x496028['start']=_0x59806c['start'],_0x496028['end']=_0x59806c['end'];}}['_handleOperation'](_0x18a796,_0x478b59){if('addRoot'!=_0x18a796['type']&&'detachRoot'!=_0x18a796['type']){if('insert'==_0x18a796['type']){const _0xb51874=_0x18a796['position']['root']['rootName'];this['_diffRoots']['has'](_0xb51874)||(this['_diffRoots']['set'](_0xb51874,B(_0xb51874,!0x0)),this['_diffRootsAttributes']['set'](_0xb51874,{}),_0x478b59&&this['_idsRoots']['set'](_0xb51874,B(_0xb51874,!0x0)));}else{if('addRootAttribute'==_0x18a796['type']||'removeRootAttribute'==_0x18a796['type']||'changeRootAttribute'==_0x18a796['type'])return void this['_handleRootAttributeOperation'](_0x18a796);'marker'==_0x18a796['type']&&this['_handleMarkerOperation'](_0x18a796);}if('marker'!==_0x18a796['type']){const _0x1442d3=this['_cloneOperation'](_0x18a796,this['_diffRoots']);_0x1442d3['_execute'](),this['_transformMarkers'](_0x1442d3);}if(_0x478b59)switch(_0x18a796['type']){case'insert':this['_handleInsertOperation'](_0x18a796);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x18a796);break;case'merge':this['_handleMergeOperation'](_0x18a796);break;case'split':this['_handleSplitOperation'](_0x18a796);}}else this['_handleRootOperation'](_0x18a796,_0x478b59);}['_cloneOperation'](_0x205afa,_0x15cf94){const _0x29e056=_0x205afa['clone']();return _0x29e056['_authorId']=_0x205afa['_authorId'],this['_fixOperation'](_0x29e056,_0x15cf94),_0x29e056;}['_getBaseVids'](_0x10f98c){return _0x10f98c['map'](_0x66a0c9=>{const _0x3d1a01=this['_getVidAttributeName'](_0x66a0c9);return Number(_0x66a0c9['item']['getAttribute'](_0x3d1a01));});}['_generateTape'](_0xf0b52e,_0x5a1dae){if(_0xf0b52e['is']('element','$text'))_0x5a1dae['push']({'item':_0xf0b52e,'type':'text'});else{_0xf0b52e['is']('element')&&_0x5a1dae['push']({'item':_0xf0b52e,'type':'elementStart'});for(const _0x4f1f74 of _0xf0b52e['getChildren']())this['_generateTape'](_0x4f1f74,_0x5a1dae);_0xf0b52e['is']('element')&&_0x5a1dae['push']({'item':_0xf0b52e,'type':'elementEnd'});}return _0x5a1dae;}['_getState'](){const _0x3cc399=new Map(this['_touched']),_0x43932c=new Map(_0x3cc399),_0x476e58=new Map(),_0x298f02={'insertions':{},'deletions':{}},_0x4d325e={'insertions':{},'deletions':{}},_0x1dcaba=new Map(),_0x171988=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x171988['delete']('$graveyard');for(const _0x317e45 of _0x171988){const _0x488c45=this['_diffRoots']['get'](_0x317e45)||B(_0x317e45,!0x1),_0x231d00=this['_baseRoots']['get'](_0x317e45)||B(_0x317e45,!0x1);_0x488c45['isAttached']()||_0x231d00['isAttached']()?(_0x298f02['insertions'][_0x317e45]=F(_0x488c45),_0x298f02['deletions'][_0x317e45]=F(_0x231d00),this['_copyMarkers'](_0x298f02['deletions'][_0x317e45],_0x231d00),this['_copyMarkers'](_0x298f02['insertions'][_0x317e45],_0x488c45),_0x4d325e['insertions'][_0x317e45]=this['_generateTape'](this['_idsRoots']['get'](_0x317e45),[]),_0x4d325e['deletions'][_0x317e45]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x317e45)||B(_0x317e45,!0x1),[])):_0x171988['delete'](_0x317e45);}for(const _0x1a2ac4 of _0x171988){const _0x9532ac=_0x4d325e['insertions'][_0x1a2ac4];for(const _0x384894 of _0x9532ac){const _0x29d160=this['_getVidAttributeName'](_0x384894),_0x1b7786=_0x384894['item']['getAttribute'](_0x29d160);_0x43932c['delete'](_0x1b7786),_0x1b7786>=this['_startingRevisionId']&&_0x476e58['set'](_0x1b7786,_0x3cc399['get'](_0x1b7786));}}for(const _0x151474 of _0x171988){const _0x1dd2e5=_0x4d325e['insertions'][_0x151474],_0x42c799=this['_getBaseVids'](_0x4d325e['deletions'][_0x151474]);let _0x2a4476=0x0;for(const _0x293c8c of _0x1dd2e5){const _0x502883=this['_getVidAttributeName'](_0x293c8c),_0x2e3b8b=_0x293c8c['item']['getAttribute'](_0x502883);if(!_0x476e58['has'](_0x2e3b8b)&&!_0x1dcaba['has'](_0x2e3b8b)){if(_0x43932c['has'](_0x2e3b8b))_0x2a4476++;else{if(_0x2e3b8b!=_0x42c799[_0x2a4476]){const _0x58a4eb=_0x3cc399['get'](_0x2e3b8b)||_0x3cc399['get'](_0x42c799[_0x2a4476]);for(;_0x2e3b8b!=_0x42c799[_0x2a4476];)_0x43932c['has'](_0x42c799[_0x2a4476])||(_0x1dcaba['set'](_0x42c799[_0x2a4476],_0x58a4eb),_0x3cc399['set'](_0x42c799[_0x2a4476],_0x58a4eb)),_0x2a4476++;}_0x2a4476++;}}}}for(const _0x589a74 of _0x171988){const _0x14bbfa=_0x4d325e['insertions'][_0x589a74];for(const _0x124aae of _0x14bbfa){const _0x41a5e5=this['_getVidAttributeName'](_0x124aae),_0x38a93e=_0x124aae['item']['getAttribute'](_0x41a5e5);if(_0x1dcaba['has'](_0x38a93e)){const _0x203979=_0x1dcaba['get'](_0x38a93e);_0x43932c['has'](_0x38a93e)||_0x43932c['set'](_0x38a93e,{..._0x203979}),_0x476e58['set'](_0x38a93e,{..._0x203979});}}}for(const _0x347c67 of _0x43932c['keys']())_0x347c67>=this['_startingRevisionId']&&_0x43932c['delete'](_0x347c67);const _0x38e6e9=new Map();for(const _0xf293db of _0x171988){let _0x3b0dcf=_0x4d325e['insertions'][_0xf293db];for(const _0x675937 of _0x3b0dcf)if(_0x675937['item']['is']('element','tableCell')){const _0x1d00c7=this['_getVidAttributeName'](_0x675937),_0x721a4f=_0x675937['item']['getAttribute'](_0x1d00c7);if(_0x476e58['has'](_0x721a4f)){const _0x42aaf8=_0x675937['item']['parent']['parent']['getAttribute']('vid_start'),_0x4b6f16=_0x38e6e9['get'](_0x42aaf8)||new Set();_0x4b6f16['add'](_0x476e58['get'](_0x721a4f)['userId']),_0x38e6e9['set'](_0x42aaf8,_0x4b6f16);}}_0x3b0dcf=_0x4d325e['deletions'][_0xf293db];for(const _0x1021ff of _0x3b0dcf)if(_0x1021ff['item']['is']('element','tableCell')){const _0x20bdb2=this['_getVidAttributeName'](_0x1021ff),_0x5032c1=_0x1021ff['item']['getAttribute'](_0x20bdb2);if(_0x43932c['has'](_0x5032c1)){const _0x4e3ef8=_0x1021ff['item']['parent']['parent']['getAttribute']('vid_start'),_0x208e99=_0x38e6e9['get'](_0x4e3ef8)||new Set();_0x208e99['add'](_0x43932c['get'](_0x5032c1)['userId']),_0x38e6e9['set'](_0x4e3ef8,_0x208e99);}}for(const _0x27f19f of _0x38e6e9['keys']())(_0x476e58['has'](_0x27f19f)||_0x43932c['has'](_0x27f19f))&&_0x38e6e9['delete'](_0x27f19f);}for(const _0x27dfa2 of _0x171988){const _0x4ef808=_0x4d325e['insertions'][_0x27dfa2];let _0x3233be=null,_0x17a3a3=null;for(const _0x30f444 of _0x4ef808){const _0x106e0d=this['_getVidAttributeName'](_0x30f444),_0x45246c=_0x30f444['item']['getAttribute'](_0x106e0d),_0x143245=_0x38e6e9['get'](_0x45246c);_0x143245&&'elementStart'==_0x30f444['type']&&(_0x3233be=Array['from'](_0x143245)[0x0],_0x17a3a3=_0x30f444['item']['getAttribute']('vid_end')),_0x3233be&&(_0x43932c['set'](_0x45246c,{'userId':_0x3233be}),_0x476e58['set'](_0x45246c,{'userId':_0x3233be})),_0x45246c==_0x17a3a3&&(_0x3233be=null,_0x17a3a3=null);}}const _0x317b35={},_0x1a0da7=new Set();for(const _0x11eb7d of _0x171988){const _0x4a5d45=_0x298f02['deletions'][_0x11eb7d],_0x54129b=_0x298f02['insertions'][_0x11eb7d];for(const {userId:_0x317507}of this['_touchedMarkers']['values']())null!==_0x317507&&_0x1a0da7['add'](_0x317507);for(const {userId:_0xe74b5a}of this['_touchedRoots']['values']())null!==_0xe74b5a&&_0x1a0da7['add'](_0xe74b5a);this['_markChanges'](_0x54129b,_0x4d325e['insertions'][_0x11eb7d],_0x476e58,'insertion',_0x1a0da7),this['_markChanges'](_0x4a5d45,_0x4d325e['deletions'][_0x11eb7d],_0x43932c,'deletion',_0x1a0da7),_0x317b35[_0x11eb7d]={'insertions':this['_prepareViewToSave'](_0x54129b),'deletions':this['_prepareViewToSave'](_0x4a5d45),'attachChange':this['_touchedRoots']['get'](_0x11eb7d)||null,'attributesBefore':_0x1046c5(this['_baseRootsAttributes']['get'](_0x11eb7d))||{},'attributesAfter':_0x1046c5(this['_diffRootsAttributes']['get'](_0x11eb7d))};}return{'diffData':_0x317b35,'authorsIds':Array['from'](_0x1a0da7)};}['_processRootBeforeSave'](_0x487e02){for(const [,_0x5a3349]of _0x487e02['markers']){const _0x5a0d78=_0x5a3349['start']['getAncestors']()['filter'](_0xfa5786=>'tableCell'==_0xfa5786['name']);for(const _0x364d98 of _0x5a0d78)0x1==_0x364d98['childCount']&&_0x364d98['getChild'](0x0)['is']('element','paragraph')&&_0x364d98['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x190782){this['_processRootBeforeSave'](_0x190782);const _0xeaee00=this['editor']['data']['toView'](_0x190782,{}),_0x558aef=Array['from'](_0xeaee00['getChildren']())['map'](_0x12a6ed=>this['_getViewJson'](_0x12a6ed));return JSON['stringify'](_0x558aef);}['_getViewJson'](_0x44813c){if(_0x44813c['is']('$text'))return _0x44813c['data'];{const _0x48dd76=_0x44813c;return{'type':Object['keys'](C)['find'](_0x5ad0c8=>_0x44813c instanceof C[_0x5ad0c8]),'name':_0x48dd76['name'],'attributes':Array['from'](_0x48dd76['getAttributes']()),'children':Array['from'](_0x48dd76['getChildren']())['map'](_0x4ec2d5=>this['_getViewJson'](_0x4ec2d5))};}}['_markChanges'](_0x487b66,_0x2c8cac,_0x45283a,_0x7f9d6f,_0x2df5ef){let _0x27548f=null,_0x1f2a0c=null,_0x5c6165=0x0;const _0x1efbcf=this['editor']['model'];for(let _0x41f32c=0x0;_0x41f32c<_0x2c8cac['length'];_0x41f32c++){const _0x1e76e4=this['_getVidAttributeName'](_0x2c8cac[_0x41f32c]),_0x4778d7=_0x2c8cac[_0x41f32c]['item']['getAttribute'](_0x1e76e4),_0x145303=_0x45283a['get'](_0x4778d7),_0x5c506e=_0x41f32c==_0x2c8cac['length']-0x1;(!_0x27548f&&_0x145303&&(_0x27548f=_0x145303,_0x1f2a0c=_0x2c8cac[_0x41f32c]),_0x27548f&&(!_0x145303||_0x145303['userId']!=_0x27548f['userId']))&&(_0x4e5ff7(_0x145303,J(_0x1f2a0c,_0x487b66,_0x1efbcf),J(_0x2c8cac[_0x41f32c],_0x487b66,_0x1efbcf)),_0x27548f=_0x145303||null,_0x1f2a0c=_0x145303?_0x2c8cac[_0x41f32c]:null),_0x27548f&&_0x5c506e&&_0x4e5ff7(_0x145303,J(_0x1f2a0c,_0x487b66,_0x1efbcf),q(_0x2c8cac[_0x41f32c],_0x487b66,_0x1efbcf));}function _0x4e5ff7(_0x2d77ff,_0x57aedf,_0x4594e1){const _0x28ec87=_0x27548f['userId'],_0xc91995='revision:'+_0x7f9d6f+':'+_0x28ec87+':'+_0x5c6165++,_0x516920=_0x1efbcf['createRange'](_0x57aedf,_0x4594e1);_0x487b66['markers']['set'](_0xc91995,_0x516920),null!==_0x28ec87&&_0x2df5ef['add'](_0x28ec87);}}['_getVidAttributeName'](_0x53eba4){switch(_0x53eba4['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x28e688,_0x3eda15){_0x28e688['baseVersion']=null;for(const _0x581646 in _0x28e688){const _0x53acd8=_0x28e688[_0x581646];if(_0x53acd8 instanceof gt){const _0x28e92a=_0x3eda15['get'](_0x53acd8['root']['rootName']);_0x28e688[_0x581646]=this['_fixPosition'](_0x53acd8,_0x28e92a);}if(_0x53acd8 instanceof vt){const _0x28b89e=_0x3eda15['get'](_0x53acd8['root']['rootName']);_0x28e688[_0x581646]=this['_fixRange'](_0x53acd8,_0x28b89e);}'root'===_0x581646&&(_0x28e688['root']=_0x3eda15['get'](_0x28e688['root']['rootName']));}}['_fixRange'](_0x4b3425,_0x705a3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4b3425['start'],_0x705a3),this['_fixPosition'](_0x4b3425['end'],_0x705a3));}['_fixPosition'](_0x1cf4b8,_0x213ac1){return this['editor']['model']['createPositionFromPath'](_0x213ac1,_0x1cf4b8['path'],_0x1cf4b8['stickiness']);}['_handleInsertOperation'](_0x13764e){const _0x4d0824=this['_idsRoots']['get'](_0x13764e['position']['root']['rootName']),_0x3ea75b=this['_fixPosition'](_0x13764e['position'],_0x4d0824),_0x38f6d1=null===_0x13764e['_authorId']?null:_0x13764e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47e00e=_0x3ea75b['parent'],_0x34e73b=this['_revisionId'],_0x31b313=[];for(const _0x2a1e5e of _0x13764e['nodes'])if(_0x2a1e5e['is']('element'))_0x31b313['push'](this['_makeIdsRoot'](_0x2a1e5e));else{for(let _0x41531d=0x0;_0x41531d<_0x2a1e5e['offsetSize'];_0x41531d++)_0x31b313['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x96b88e=this['_revisionId'];for(let _0x379b11=_0x34e73b;_0x379b11<_0x96b88e;_0x379b11++)this['_touched']['set'](_0x379b11,{'userId':_0x38f6d1});_0x47e00e['_insertChild'](_0x3ea75b['offset'],_0x31b313);}['_handleMoveOperation'](_0x415d7a){(_0x415d7a=this['_cloneOperation'](_0x415d7a,this['_idsRoots']))['_execute']();const _0x5853cb=null===_0x415d7a['_authorId']?null:_0x415d7a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e24fc=_0x415d7a['getMovedRangeStart'](),_0x3428bf=_0x4e24fc['parent'],_0x3d0c4f=_0x4e24fc['offset'];!function _0x5d1cf5(_0x3d420f,_0xaa57ab,_0x563d0e,_0x1eed61){for(let _0x59dd98=_0x563d0e;_0x59dd98<_0x1eed61;_0x59dd98++){const _0x206196=_0xaa57ab['getChild'](_0x59dd98);_0x206196['is']('element','$text')?_0x3d420f['set'](_0x206196['getAttribute']('vid'),{'userId':_0x5853cb}):(_0x3d420f['set'](_0x206196['getAttribute']('vid_start'),{'userId':_0x5853cb}),_0x5d1cf5(_0x3d420f,_0x206196,0x0,_0x206196['childCount']),_0x3d420f['set'](_0x206196['getAttribute']('vid_end'),{'userId':_0x5853cb}));}}(this['_touched'],_0x3428bf,_0x3d0c4f,_0x3d0c4f+_0x415d7a['howMany']);}['_handleMergeOperation'](_0x77313f){const _0x33c444=null===(_0x77313f=this['_cloneOperation'](_0x77313f,this['_idsRoots']))['_authorId']?null:_0x77313f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4541de=_0x77313f['targetPosition']['parent'],_0x51f3ba=_0x77313f['sourcePosition']['parent'],_0x182bc7=_0x4541de['getAttribute']('vid_end'),_0x473076=_0x51f3ba['getAttribute']('vid_start');_0x4541de['_setAttribute']('vid_end',_0x51f3ba['getAttribute']('vid_end')),_0x51f3ba['_setAttribute']('vid_end',_0x182bc7),this['_touched']['set'](_0x473076,{'userId':_0x33c444}),this['_touched']['set'](_0x182bc7,{'userId':_0x33c444}),_0x77313f['_execute']();}['_handleSplitOperation'](_0xf28d90){const _0x2adec8=null===(_0xf28d90=this['_cloneOperation'](_0xf28d90,this['_idsRoots']))['_authorId']?null:_0xf28d90['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1151bf=_0xf28d90['graveyardPosition'],_0xe73164=_0xf28d90['splitPosition']['parent'];_0xf28d90['_execute']();const _0x2740b9=_0xe73164['getAttribute']('vid_end'),_0x3a8f88=_0xf28d90['insertionPosition']['nodeAfter'];if(_0x1151bf){const _0x5f0a2e=_0x3a8f88['getAttribute']('vid_end'),_0x1151da=_0xe73164['getAttribute']('vid_end');_0xe73164['_setAttribute']('vid_end',_0x5f0a2e),_0x3a8f88['_setAttribute']('vid_end',_0x1151da),this['_touched']['set'](_0xe73164['getAttribute']('vid_end'),{'userId':_0x2adec8}),this['_touched']['set'](_0x3a8f88['getAttribute']('vid_start'),{'userId':_0x2adec8});}else{const _0x55a1a8=this['_revisionId']++,_0x58b231=this['_revisionId']++;_0xe73164['_setAttribute']('vid_end',_0x55a1a8),_0x3a8f88['_setAttribute']('vid_start',_0x58b231),_0x3a8f88['_setAttribute']('vid_end',_0x2740b9),this['_touched']['set'](_0x55a1a8,{'userId':_0x2adec8}),this['_touched']['set'](_0x58b231,{'userId':_0x2adec8});}}['_handleMarkerOperation'](_0x3fbbe0){if(!_0x3fbbe0['affectsData'])return;const _0x4e8d70=(_0x3fbbe0=this['_cloneOperation'](_0x3fbbe0,this['_diffRoots']))['oldRange']?_0x3fbbe0['oldRange']['root']:null,_0x183eff=_0x3fbbe0['newRange']?_0x3fbbe0['newRange']['root']:null;_0x4e8d70&&this['_markers']['delete'](_0x3fbbe0['name']),_0x183eff&&this['_markers']['set'](_0x3fbbe0['name'],_0x3fbbe0['newRange']['clone']());const _0xc675=null===_0x3fbbe0['_authorId']?null:_0x3fbbe0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x439a0c=_0x3fbbe0['name'];if(!this['_touchedMarkers']['has'](_0x439a0c))return void this['_touchedMarkers']['set'](_0x439a0c,{'range':_0x3fbbe0['oldRange'],'userId':_0xc675});const _0x3dca0e=this['_touchedMarkers']['get'](_0x439a0c),_0x4f500b=_0x3dca0e['range'],_0x58ffef=_0x3fbbe0['newRange'];null==_0x4f500b&&null==_0x58ffef||_0x4f500b&&_0x58ffef&&_0x4f500b['isEqual'](_0x58ffef)?this['_touchedMarkers']['delete'](_0x3fbbe0['name']):_0x3dca0e['userId']=_0xc675;}['_handleRootOperation'](_0x39491a,_0x27f4de){this['_diffRoots']['has'](_0x39491a['rootName'])?this['_diffRoots']['get'](_0x39491a['rootName'])['_isAttached']=_0x39491a['isAdd']:(this['_diffRoots']['set'](_0x39491a['rootName'],B(_0x39491a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x39491a['rootName'],{}),_0x27f4de&&this['_idsRoots']['set'](_0x39491a['rootName'],B(_0x39491a['rootName'],!0x0)));const _0x335401=null===_0x39491a['_authorId']?null:_0x39491a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c49cb=this['_touchedRoots']['get'](_0x39491a['rootName']);_0x5c49cb&&_0x5c49cb['userId']===_0x335401?this['_touchedRoots']['delete'](_0x39491a['rootName']):this['_touchedRoots']['set'](_0x39491a['rootName'],{'userId':_0x335401,'isAttached':_0x39491a['isAdd']});}['_handleRootAttributeOperation'](_0x1274a0){const _0x1a0aa0=this['_diffRootsAttributes']['get'](_0x1274a0['root']['rootName']);null===_0x1274a0['newValue']?delete _0x1a0aa0[_0x1274a0['key']]:_0x1a0aa0[_0x1274a0['key']]=_0x1274a0['newValue'];}}function F(_0x47dba2){const _0x4c1611=B(_0x47dba2['rootName'],_0x47dba2['isAttached']());for(const _0x578b3e of _0x47dba2['getChildren']()){const _0xf9a804=_0x578b3e['_clone'](!0x0);_0x4c1611['_appendChild'](_0xf9a804);}return _0x4c1611;}function B(_0x40bb49,_0x103cd0=!0x0){const _0xe4a221=new mt();return _0xe4a221['rootName']=_0x40bb49,_0xe4a221['_isAttached']=_0x103cd0,_0xe4a221['isAttached']=()=>_0xe4a221['_isAttached'],_0xe4a221;}function J(_0xe9cba4,_0x596fff,_0x17f1cb){const _0x2b6264='elementEnd'==_0xe9cba4['type']?_0x17f1cb['createPositionAt'](_0xe9cba4['item'],'end'):_0x17f1cb['createPositionBefore'](_0xe9cba4['item']);return _0x17f1cb['createPositionFromPath'](_0x596fff,_0x2b6264['path'],_0x2b6264['stickiness']);}function q(_0x2bf36f,_0x296af7,_0x56ee10){const _0x25ab16='elementStart'==_0x2bf36f['type']?_0x56ee10['createPositionAt'](_0x2bf36f['item'],0x0):_0x56ee10['createPositionAfter'](_0x2bf36f['item']);return _0x56ee10['createPositionFromPath'](_0x296af7,_0x25ab16['path'],_0x25ab16['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5f468e,_0x3046ab){super(_0x5f468e),this['focusTracker']=new _0x1d3bd3(),this['keystrokes']=new _0x5bd07a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3046ab),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x221a1e(this);}['render'](){super['render'](),_0x6fdeae({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xc44fad=_0x74a19d=>_0x74a19d['stopPropagation']();this['keystrokes']['set']('arrowright',_0xc44fad),this['keystrokes']['set']('arrowleft',_0xc44fad),this['keystrokes']['set']('arrowup',_0xc44fad),this['keystrokes']['set']('arrowdown',_0xc44fad);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x451bb2){this['revisionNameInputView']['fieldView']['element']['value']=_0x451bb2['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x40b5b5){const _0xd0c101=new _0x4e4e87(this['locale'],_0x10f75e),_0x3a9a18=_0xd0c101['fieldView'];_0x3a9a18['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x47c0c7=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x40b5b5&&(_0x47c0c7+='\x20('+R(this['locale'],'optional')+')'),(_0xd0c101['label']=_0x47c0c7,_0x3a9a18['on']('input',()=>{this['revisionNameInputValue']=_0x3a9a18['element']['value']['trim']();}),_0xd0c101);}}class u extends _0x49113c{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4896e5=this['editor'],_0x129091=_0x4896e5['plugins']['get']('RevisionTracker');_0x4896e5['ui']['componentFactory']['add']('revisionHistory',_0x5c59ed=>{const _0x307415=_0xf41fd9(_0x5c59ed),_0x33cc18=_0x307415['panelView']['children'],_0x1d60cb=new _0x5cb7ac(_0x5c59ed),_0x236d88=new _0x543a5b(_0x5c59ed),_0x26ca7e=new te(_0x5c59ed),_0x1dbf93=new _0x543a5b(_0x5c59ed),_0x218271=new te(_0x5c59ed);return _0x307415['bind']('isEnabled')['to'](_0x129091,'isReady',_0x129091,'isEnabled',_0x4896e5,'isReadOnly',(_0x4895e1,_0x4fec04,_0x525b09)=>_0x4895e1&&_0x4fec04&&!_0x525b09),_0x307415['buttonView']['set']({'icon':_0x54bba4['history'],'label':R(_0x5c59ed,'Revision\x20history'),'tooltip':!0x0}),_0x26ca7e['set']({'label':R(_0x5c59ed,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x26ca7e['bind']('isEnabled')['to'](_0x129091,'isReady',_0x129091,'isEnabled',_0x4896e5,'isReadOnly',(_0x5a2762,_0x16aa1b,_0x2ea57d)=>_0x5a2762&&_0x16aa1b&&!_0x2ea57d),_0x26ca7e['on']('execute',()=>this['_showDialog']()),_0x218271['set']({'label':R(_0x5c59ed,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x218271['bind']('isEnabled')['to'](_0x129091,'isReady',_0x4896e5,'isReadOnly',(_0xcf5236,_0x2ce57d)=>_0xcf5236&&!_0x2ce57d),_0x218271['on']('execute',()=>{_0x4896e5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x307415['isOpen']=!0x1,_0x4896e5['editing']['view']['focus']();}),_0x236d88['children']['add'](_0x26ca7e),_0x1dbf93['children']['add'](_0x218271),_0x1d60cb['role']='menu',_0x1d60cb['items']['addMany']([_0x236d88,_0x1dbf93]),_0x33cc18['add'](_0x1d60cb),_0x307415;}),_0x4896e5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4dbaa2=this['editor'],_0x543a4e=_0x4dbaa2['locale'],_0x53ffd7=new _0xe02d1b(_0x543a4e),_0x19cb21=new _0x449759(_0x543a4e);_0x53ffd7['buttonView']['set']({'icon':_0x54bba4['history'],'label':R(_0x543a4e,'Revision\x20history')});const _0x47e3f7=new _0xf67f(_0x543a4e,_0x53ffd7),_0x6961f7=new _0xb420ba(_0x543a4e);_0x6961f7['set']({'label':R(_0x543a4e,'Save\x20current\x20revision')}),_0x6961f7['delegate']('execute')['to'](_0x53ffd7),_0x6961f7['on']('execute',()=>{this['_showDialog']();}),_0x47e3f7['children']['add'](_0x6961f7),_0x19cb21['items']['add'](_0x47e3f7);const _0x16ee71=new _0xf67f(_0x543a4e,_0x53ffd7),_0x48de29=new _0xb420ba(_0x543a4e);return _0x48de29['set']({'label':R(_0x543a4e,'Open\x20revision\x20history')}),_0x48de29['delegate']('execute')['to'](_0x53ffd7),_0x48de29['on']('execute',()=>{_0x4dbaa2['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x16ee71['children']['add'](_0x48de29),_0x19cb21['items']['add'](_0x16ee71),_0x53ffd7['panelView']['children']['add'](_0x19cb21),_0x53ffd7;}['_showDialog'](){const _0x2c3d48=this['editor'],_0x4d5fea=_0x2c3d48['locale'],_0x3162ad=_0x2c3d48['plugins']['get']('Dialog'),_0x2e00ba=_0x2c3d48['plugins']['get']('RevisionTracker');function _0x3bfa89(_0x445b32){_0x2c3d48['config']['get']('revisionHistory.requireRevisionName')&&''===_0x445b32['revisionName']?_0x445b32['revisionNameInputView']['errorText']=R(_0x4d5fea,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2c3d48['plugins']['get'](l)['saveRevision']({'name':_0x445b32['revisionName']}),_0x3162ad['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3bfa89(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3162ad['show']({'id':'revisionSave','title':R(_0x4d5fea,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2c3d48['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3162ad['hide']()},{'label':R(_0x2c3d48['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x51a3fe){_0x51a3fe['bind']('isEnabled')['to'](_0x2e00ba,'isReady',_0x2e00ba,'isEnabled',_0x2c3d48,'isReadOnly',(_0x286986,_0x14c124,_0x2a997f)=>_0x286986&&_0x14c124&&!_0x2a997f);},'onExecute':()=>_0x3bfa89(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xd3ac91=this['editor'],_0x11d3e1=_0xd3ac91['locale'];this['_saveRevisionFormView']=new hs(_0x11d3e1,_0xd3ac91['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0xe5910e,_0x3d13f6){super(_0xe5910e),this['_model']=_0x3d13f6,this['changeId']=_0x3d13f6['id'];const _0x251cb6=this['bindTemplate'],_0xd0f235=R(_0xe5910e,_0x3d13f6['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3d13f6['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3d13f6['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x251cb6['to']('type',_0x457518=>'ck-revision-change__'+_0x457518)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xd0f235}]},{'text':'\x20'+_0x3d13f6['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x354be7(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5e59ef){super(),this['id']=_0x5e59ef['id']||_0x20d582(),this['author']=_0x5e59ef['author'],this['type']=_0x5e59ef['type'],this['data']=_0x5e59ef['data']||{},this['rootName']=_0x5e59ef['rootName'],this['set']('createdAt',_0x5e59ef['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4cc28e,_0x1f02b3){this['newRevisionId']=_0x4cc28e,this['oldRevisionId']=_0x1f02b3,this['changes']=new _0x5b23d0();}['_setChanges'](_0x314d96){for(const _0x30ac66 of _0x314d96)this['changes']['add'](_0x30ac66);}}const Z={'c':_0x25a049,'a':_0x597a04,'e':_0x55fbd8,'r':_0x10d393,'u':_0x5c14f2};class d extends _0x49113c{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x580655,_0x7472c6,j];}constructor(_0x203347){super(_0x203347),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x421837,_0x3ee938,_0x40f1f7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x13d54c=>{for(const _0x54b53d of this['editor']['editing']['view']['document']['roots'])_0x40f1f7?_0x13d54c['removeClass']('ck-editor__editable__overlay',_0x54b53d):_0x13d54c['addClass']('ck-editor__editable__overlay',_0x54b53d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5b1b0d=>null!==_0x5b1b0d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4d5127,_0x3d487b,_0x4a1b2f)=>_0x4d5127&&_0x4a1b2f?_0x3d487b['changes']['getIndex'](_0x4a1b2f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x8a3d76,_0x4c74f3)=>_0x8a3d76?_0x4c74f3['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x7472c6);}['init'](){const _0xcdf3cd=this['editor'],_0x8ec71b=new yt(_0xcdf3cd,{'direction':'backward'}),_0x5d5d32=new yt(_0xcdf3cd,{'direction':'forward'});(_0xcdf3cd['commands']['add']('showPreviousChange',_0x8ec71b),_0xcdf3cd['commands']['add']('showNextChange',_0x5d5d32),_0xcdf3cd['commands']['add']('restoreRevision',new _t(_0xcdf3cd)),this['on']('change:numberOfChanges',()=>{_0x8ec71b['refresh'](),_0x5d5d32['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xcdf3cd['enableReadOnlyMode']('revision-viewer'),_0xcdf3cd['plugins']['has']('WidgetToolbarRepository'))&&_0xcdf3cd['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x403ed4){await this['loadRevisionData'](_0x403ed4);const _0x271c34={};for(const _0x4eae82 in _0x403ed4['diffData']){if(_0x403ed4['diffData'][_0x4eae82]['attachChange']&&!_0x403ed4['diffData'][_0x4eae82]['attachChange']['isAttached'])continue;const _0x2bf7c9=this['_removeRevisionMarkers'](JSON['parse'](_0x403ed4['diffData'][_0x4eae82]['insertions'])),_0x2e9b07=this['editor']['editing']['view']['document'],_0x17bb20=new _0x1b99e2(_0x2e9b07,_0x2bf7c9['map'](_0x94cdb6=>this['_getViewObj'](_0x94cdb6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x271c34[_0x4eae82]=this['editor']['data']['processor']['toData'](_0x17bb20),this['editor']['data']['processor']['useFillerType']('default');}return _0x271c34;}async['getRevisionRootsAttributes'](_0x5a4112){await this['loadRevisionData'](_0x5a4112);const _0x29cd5b={};for(const _0x220156 in _0x5a4112['diffData'])_0x5a4112['diffData'][_0x220156]['attachChange']&&!_0x5a4112['diffData'][_0x220156]['attachChange']['isAttached']||(_0x29cd5b[_0x220156]=_0x5a4112['diffData'][_0x220156]['attributesAfter']||{});return _0x29cd5b;}['_removeRevisionMarkers'](_0x49950e){return(_0x49950e=_0x49950e['filter'](_0x5a4aba=>!_0x5a4aba['name']||'revision-start'!==_0x5a4aba['name']&&'revision-end'!==_0x5a4aba['name']))['forEach'](_0x53bfbd=>{'string'!=typeof _0x53bfbd&&(_0x53bfbd['children']=this['_removeRevisionMarkers'](_0x53bfbd['children']),_0x53bfbd['attributes']=_0x53bfbd['attributes']['filter'](_0x2d84e9=>!_0x2d84e9[0x0]['startsWith']('data-revision-')));}),_0x49950e;}async['compare'](_0x11c6d1,_0x41e431,_0x121118=!0x1){if(!this['isEnabled'])return;const _0xa8df18=this['diff'],_0x1a6506=this['repository'],_0x5c51f0='string'==typeof _0x11c6d1?_0x1a6506['getRevision'](_0x11c6d1):_0x11c6d1,_0x11d40c='string'==typeof _0x41e431?_0x1a6506['getRevision'](_0x41e431):_0x41e431,_0x416fbe=_0x5c51f0['id'],_0x2a557e=_0x11d40c?_0x11d40c['id']:null;if(!_0x121118&&this['diff']&&this['diff']['newRevisionId']===_0x416fbe&&this['diff']['oldRevisionId']===_0x2a557e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x416fbe,_0x2a557e);const _0x5050fe=this['_getRevisionsRange'](_0x5c51f0,_0x11d40c,!0x0)['map'](_0x5c044e=>this['loadRevisionData'](_0x5c044e));return _0x5050fe['push'](new Promise(_0x366a52=>{setTimeout(_0x366a52,0x14);})),Promise['all'](_0x5050fe)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5c9f50=this['_getDiff'](_0x416fbe,_0x2a557e);for(const _0x108f01 of _0x5c9f50['changes'])this['_changeIdToChange']['set'](_0x108f01['id'],_0x108f01);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3aac51=>{for(const _0x505388 of this['editor']['model']['document']['getRootNames']())_0x3aac51['detachRoot'](_0x505388);for(const _0x27f94e of Object['keys'](_0x5c9f50['model'])){const _0x10a292=_0x3aac51['addRoot'](_0x27f94e);for(const _0x4b9672 of Object['keys'](_0x5c9f50['attributes'][_0x27f94e]))_0x3aac51['setAttribute'](_0x4b9672,_0x5c9f50['attributes'][_0x27f94e][_0x4b9672],_0x10a292);_0x3aac51['insert'](_0x5c9f50['model'][_0x27f94e],_0x10a292,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5c9f50['changes'])),this['isReady']=!0x0;})['catch'](_0x9e4a38=>{console['error'](_0x9e4a38),this['_cleanUp'](),_0xa8df18&&(this['diff']=_0xa8df18),this['isReady']=!0x0;});}['addRevisionData'](_0x51d8fe,_0x168d9d){const _0x5b4709=this['repository']['createRevision'](_0x51d8fe);return _0x5b4709['on']('_update',(_0x5b3342,_0x5bd618,_0x18212a)=>_0x168d9d(_0x5bd618,_0x18212a,_0x5b4709)),this['repository']['addRevision'](_0x5b4709),_0x5b4709;}['loadRevisionData'](_0x45fb98){if(!_0x45fb98||_0x45fb98['diffData'])return Promise['resolve']();{const _0x2c6d44=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2c6d44,'revisionId':_0x45fb98['id']})['then'](_0x79275c=>{_0x45fb98['_update']({'diffData':_0x79275c['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2c9bb1=>{for(const _0x143c29 of this['editor']['model']['document']['getRootNames']())_0x2c9bb1['detachRoot'](_0x143c29);});}['_sortAndFilterDiffChanges'](_0x4250d){const _0x459192=[],_0x2464e2=new Map();for(const _0x2a271b of this['editor']['model']['document']['getRootNames']()){const _0x3d882b=this['editor']['editing']['view']['getDomRoot'](_0x2a271b);if(!_0x3d882b)continue;const _0x3f9a87=_0x3d882b['getClientRects']()['item'](0x0);_0x3f9a87&&(_0x459192['push'](_0x2a271b),_0x2464e2['set'](_0x2a271b,_0x3f9a87));}return _0x459192['sort']((_0x3b0572,_0x2c7a7e)=>{const _0x42cec1=_0x2464e2['get'](_0x3b0572),_0x258514=_0x2464e2['get'](_0x2c7a7e);return _0x42cec1['y']-_0x258514['y']||_0x42cec1['x']-_0x258514['x'];}),(_0x4250d=_0x4250d['filter'](_0x26118d=>_0x459192['includes'](_0x26118d['rootName'])))['sort']((_0x5ce84a,_0x19bde6)=>_0x459192['indexOf'](_0x5ce84a['rootName'])-_0x459192['indexOf'](_0x19bde6['rootName'])),_0x4250d;}['_makeTape'](_0x2084f3){const _0x2b5a2b=Array['from'](_0x2084f3['markers'])['filter'](([_0xa73b24,_0x18a918])=>_0xa73b24['startsWith']('revision:')&&!_0x18a918['isCollapsed']),_0x1c9683=Array['from'](this['editor']['model']['createRangeIn'](_0x2084f3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2b5a2b['length'])for(const _0x34ea1e of _0x1c9683){const [_0x5c42c8,_0x193ead]=_0x2b5a2b[0x0],[,_0x92af28,_0xbb9d02]=_0x5c42c8['split'](':');if(_0x193ead['end']['isEqual'](_0x34ea1e['nextPosition'])&&_0x2b5a2b['shift'](),(_0x34ea1e['previousPosition']['isEqual'](_0x193ead['start'])||_0x34ea1e['previousPosition']['isAfter'](_0x193ead['start']))&&('insertion'==_0x92af28?_0x34ea1e['isAdded']={'userId':_0xbb9d02}:'deletion'==_0x92af28&&(_0x34ea1e['isRemoved']={'userId':_0xbb9d02})),0x0==_0x2b5a2b['length'])break;}return _0x1c9683;}['_refreshStartEndIndex'](_0x1693b6){const _0x58f153=new Map();for(let _0x1cd340=0x0;_0x1cd340<_0x1693b6['length'];_0x1cd340++)'text'===_0x1693b6[_0x1cd340]['type']?(_0x1693b6[_0x1cd340]['item']['startIndex']=_0x1cd340,_0x1693b6[_0x1cd340]['item']['endIndex']=_0x1cd340):('elementStart'===_0x1693b6[_0x1cd340]['type']?_0x1693b6[_0x1cd340]['item']['startIndex']=_0x1cd340:'elementEnd'===_0x1693b6[_0x1cd340]['type']&&(_0x1693b6[_0x1cd340]['item']['endIndex']=_0x1cd340),_0x58f153['set'](_0x1693b6[_0x1cd340]['id'],_0x1cd340));for(const _0x488165 of _0x58f153['values']())'elementStart'===_0x1693b6[_0x488165]['type']?_0x1693b6[_0x488165]['item']['endIndex']=_0x58f153['get'](_0x1693b6[_0x488165]['pairId']):'elementEnd'===_0x1693b6[_0x488165]['type']&&(_0x1693b6[_0x488165]['item']['startIndex']=_0x58f153['get'](_0x1693b6[_0x488165]['pairId']));}['_processTape'](_0x119578){for(let _0x28d42a=0x0;_0x28d42a<_0x119578['length'];_0x28d42a++){if('elementStart'===_0x119578[_0x28d42a]['type'])_0x119578[_0x28d42a]['item']['startIndex']=_0x28d42a;else{if('elementEnd'===_0x119578[_0x28d42a]['type']){_0x119578[_0x28d42a]['item']['endIndex']=_0x28d42a;const _0x7cef45=_0x119578[_0x28d42a]['item']['startIndex'];_0x119578[_0x7cef45]['pairId']=_0x119578[_0x28d42a]['id'],_0x119578[_0x28d42a]['pairId']=_0x119578[_0x7cef45]['id'];}else _0x119578[_0x28d42a]['item']['startIndex']=_0x28d42a,_0x119578[_0x28d42a]['item']['endIndex']=_0x28d42a,_0x119578[_0x28d42a]['pairId']=null;}_0x119578[_0x28d42a]['markersStart']||(_0x119578[_0x28d42a]['markersStart']=[],_0x119578[_0x28d42a]['markersEnd']=[]);}}['_markInsertions'](_0x2673fb,_0x554e02){const _0x21cd46=_0x2673fb['filter'](_0x1ecd05=>!_0x1ecd05['isAdded']);for(let _0x2201bc=0x0;_0x2201bc<_0x554e02['length'];_0x2201bc++)_0x554e02[_0x2201bc]['isAdded']&&(_0x21cd46[_0x2201bc]['isAdded']=_0x554e02[_0x2201bc]['isAdded']);}['_makeModelFromViewString'](_0x47f748){const _0x343d6e=JSON['parse'](_0x47f748),_0x3f38a4=this['editor']['editing']['view']['document'],_0x549e39=new _0x1b99e2(_0x3f38a4,_0x343d6e['map'](_0x3d054d=>this['_getViewObj'](_0x3d054d)));return this['editor']['data']['toModel'](_0x549e39);}['_getViewObj'](_0x41fbfe){const _0xc40b05=this['editor']['editing']['view']['document'];if('string'==typeof _0x41fbfe)return new _0x10d8cb(_0xc40b05,_0x41fbfe);{const _0x482b64=_0x41fbfe['children']['map'](_0x36d309=>this['_getViewObj'](_0x36d309));return new(Z[_0x41fbfe['type']]||_0x3b4ce6)(_0xc40b05,_0x41fbfe['name'],_0x41fbfe['attributes'],_0x482b64);}}['_getDiff'](_0x5ce44a,_0x5116c6=null){const _0x4e0a3f=this['repository']['getRevision'](_0x5ce44a),_0x2a9cc2=_0x5116c6?this['repository']['getRevision'](_0x5116c6):null,_0x58d27c=this['_getRevisionsRange'](_0x4e0a3f,_0x2a9cc2),_0x46af1e=_0x58d27c[_0x58d27c['length']-0x1],_0x22427a=new Map(),_0x30898f={'model':{},'attributes':{},'changes':[]},_0x58e61a=new Set(),_0x202321=new Map();for(let _0x1169aa=_0x58d27c['length']-0x1;_0x1169aa>=0x0;_0x1169aa--){const _0x3c345e=_0x58d27c[_0x1169aa];for(const _0x258491 of Object['keys'](_0x3c345e['diffData']))if(_0x3c345e['diffData'][_0x258491]['attachChange']){const _0x1a6f0b=_0x3c345e['diffData'][_0x258491]['attachChange'];_0x1a6f0b['isAttached']?(_0x58e61a['add'](_0x258491),_0x202321['has'](_0x258491)&&_0x202321['get'](_0x258491)['userId']==_0x1a6f0b['userId']?_0x202321['delete'](_0x258491):_0x202321['set'](_0x258491,_0x1a6f0b)):_0x202321['has'](_0x258491)?(_0x58e61a['delete'](_0x258491),_0x202321['delete'](_0x258491)):(_0x58e61a['add'](_0x258491),_0x202321['set'](_0x258491,_0x1a6f0b));}else _0x58e61a['add'](_0x258491);}for(const _0x25b9fb of _0x58e61a){const _0xd9abb4=_0x202321['has'](_0x25b9fb)&&!_0x202321['get'](_0x25b9fb)['isAttached'];let _0x9f4be3=_0xd9abb4?_0x58d27c['length']-0x1:0x0;const _0x5aeeba=_0xd9abb4?-0x1:0x1;for(;_0x58d27c[_0x9f4be3];){const _0x5b4994=_0x58d27c[_0x9f4be3];if(_0x5b4994['diffData'][_0x25b9fb]){const _0x3af2ba=_0xd9abb4?_0x5b4994['diffData'][_0x25b9fb]['attributesBefore']:_0x5b4994['diffData'][_0x25b9fb]['attributesAfter'];_0x30898f['attributes'][_0x25b9fb]=_0x3af2ba?_0x1046c5(_0x3af2ba):{};break;}_0x9f4be3+=_0x5aeeba;}}for(const _0x57978a of _0x58d27c){_0x57978a['model']={};for(const _0x25230e of _0x57978a['authors'])_0x22427a['set'](_0x25230e['id'],_0x25230e);for(const _0x5bd138 of _0x58e61a){const _0x44d583=_0x57978a['diffData'][_0x5bd138]?_0x57978a['diffData'][_0x5bd138]['insertions']:'[]',_0x3da779=_0x57978a['diffData'][_0x5bd138]?_0x57978a['diffData'][_0x5bd138]['deletions']:'[]';_0x57978a['model'][_0x5bd138]={'insertions':this['_makeModelFromViewString'](_0x44d583),'deletions':this['_makeModelFromViewString'](_0x3da779)};}}for(const _0x22549c of _0x58e61a){let _0x34618a=null,_0x137400=0x0;const _0x3bf819=new Map(Array['from'](_0x4e0a3f['model'][_0x22549c]['insertions']['markers'])['filter'](([_0x363a02])=>!_0x363a02['startsWith']('revision:')));let _0x3bf04e=0x0;for(const _0x568745 of _0x58d27c){const _0x3098e7=this['_makeTape'](_0x568745['model'][_0x22549c]['insertions']);_0x568745==_0x4e0a3f?(_0x34618a=_0x3098e7,_0x137400=_0x34618a['length'],_0x34618a['forEach'](_0x21da39=>{_0x21da39['id']=_0x3bf04e++;}),this['_processTape'](_0x34618a)):this['_markInsertions'](_0x34618a,_0x3098e7);const _0x41adfe=_0x34618a['filter'](_0x3bf17e=>!_0x3bf17e['isAdded'])['map'](_0x40a071=>_0x40a071['id']);let _0x3fcf39=0x0;const _0x484650=this['_makeTape'](_0x568745['model'][_0x22549c]['deletions']);_0x484650['forEach'](_0x37a8d5=>{_0x37a8d5['isRemoved']?_0x37a8d5['id']=_0x137400++:_0x37a8d5['id']=_0x41adfe[_0x3fcf39++];}),this['_processTape'](_0x484650),this['_setDistance'](_0x34618a,'isAdded'),this['_setDistance'](_0x484650,'isRemoved'),_0x568745==_0x4e0a3f&&this['_markMarkers'](_0x34618a,_0x3bf819),_0x34618a=this['_joinTapes'](_0x34618a,_0x484650),this['_refreshStartEndIndex'](_0x34618a),this['_setDistance'](_0x34618a,'isRemoved');}_0x34618a=_0x34618a['filter'](_0x90e863=>!(_0x90e863['isAdded']&&_0x90e863['isRemoved']));const _0x3bcbba=new Map(_0x46af1e['model'][_0x22549c]['deletions']['markers']),_0x549f22=new Set(_0x3bf819['keys']());for(const _0x52a085 of _0x3bcbba['keys']())_0x549f22['delete'](_0x52a085);this['_markSuggestions'](_0x34618a,_0x549f22),this['_fixObsoleteTags'](_0x34618a),_0x34618a=this['_removeMissingPairs'](_0x34618a),_0x34618a=this['_markMismatchedRemovedTags'](_0x34618a),_0x34618a=this['_removeUnsupportedChanges'](_0x34618a);const {root:_0x5f281d,changes:_0x3eed8f}=this['_makeModelFromTape'](_0x34618a,_0x22427a,_0x22549c);_0x30898f['model'][_0x22549c]=_0x5f281d;const _0x2522ed=_0x202321['get'](_0x22549c);if(_0x2522ed){const _0x230d05=_0x22427a['get'](_0x2522ed['userId']),_0xaa2769=new r({'author':_0x230d05,'type':_0x2522ed['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x22549c});_0x3eed8f['unshift'](_0xaa2769),_0x30898f['attributes'][_0x22549c]['revisionHistoryAttachChange']=_0xaa2769['id'];}_0x30898f['changes']=_0x30898f['changes']['concat'](_0x3eed8f);}return _0x30898f;}['_markMarkers'](_0x258f51,_0x17ffa8){for(let _0x4cf904=0x0;_0x4cf904<_0x258f51['length'];_0x4cf904++)for(const [_0x204243,_0x493a0e]of _0x17ffa8)_0x493a0e['start']['isEqual'](_0x258f51[_0x4cf904]['previousPosition'])&&_0x258f51[_0x4cf904]['markersStart']['push'](_0x204243),_0x493a0e['end']['isEqual'](_0x258f51[_0x4cf904]['nextPosition'])&&_0x258f51[_0x4cf904]['markersEnd']['push'](_0x204243);}['_joinTapes'](_0x38efb1,_0x323876){let _0x221440=[],_0x88fbbe=0x0,_0x14bbae=0x0;for(;_0x88fbbe<_0x38efb1['length']||_0x14bbae<_0x323876['length'];){const _0x3a708d=_0x38efb1[_0x88fbbe]||{},_0x4d73d8=_0x323876[_0x14bbae]||{};if(_0x3a708d['id']==_0x4d73d8['id'])_0x88fbbe++,_0x14bbae++,_0x221440['push'](_0x3a708d);else{if(_0x4d73d8['isRemoved']&&_0x3a708d['isAdded']){const {commonTape:_0x1bbd2d,iEnd:_0x3f6be3,jEnd:_0x3c2350}=this['_threeWayMerge'](_0x38efb1,_0x88fbbe,_0x323876,_0x14bbae);_0x221440=_0x221440['concat'](_0x1bbd2d),_0x88fbbe=_0x3f6be3,_0x14bbae=_0x3c2350;}else _0x4d73d8['isRemoved']?(_0x14bbae++,_0x221440['push'](_0x4d73d8)):(_0x88fbbe++,_0x221440['push'](_0x3a708d));}}return _0x221440;}['_markSuggestions'](_0x4ad78c,_0x5688ab){const _0xee306d=[];for(let _0x508542=0x0;_0x508542<_0x4ad78c['length'];_0x508542++){for(let _0x3e9469=0x0;_0x3e9469<_0x4ad78c[_0x508542]['markersStart']['length'];_0x3e9469++){const _0xe66de9=_0x4ad78c[_0x508542]['markersStart'][_0x3e9469];if(!_0x5688ab['has'](_0xe66de9))continue;const {group:_0x2492e4,type:_0x5e9a42,authorId:_0x1c728f}=_0x1fe150(_0xe66de9);'revision-suggestion'!=_0x2492e4||'insertion'!=_0x5e9a42&&'deletion'!=_0x5e9a42||(_0xee306d['unshift']({'type':_0x5e9a42,'name':_0xe66de9,'userId':_0x1c728f}),_0x4ad78c[_0x508542]['markersStart']['splice'](_0x3e9469,0x1),_0x3e9469--);}_0x3f0326(_0x4ad78c[_0x508542]);for(let _0x2be061=0x0;_0x2be061<_0x4ad78c[_0x508542]['markersEnd']['length'];_0x2be061++){const _0x2c0deb=_0x4ad78c[_0x508542]['markersEnd'][_0x2be061];if(!_0x5688ab['has'](_0x2c0deb))continue;const {group:_0x4d582f,type:_0x255530}=_0x1fe150(_0x2c0deb);if('revision-suggestion'!=_0x4d582f||'insertion'!=_0x255530&&'deletion'!=_0x255530)continue;_0x4ad78c[_0x508542]['markersEnd']['splice'](_0x2be061,0x1),_0x2be061--;const _0x27a7a9=_0xee306d['findIndex'](_0x545c97=>_0x545c97['name']==_0x2c0deb);_0x27a7a9>-0x1&&_0xee306d['splice'](_0x27a7a9,0x1);}}function _0x1fe150(_0x3fe635){const _0x1b7fc8=_0x3fe635['split'](':');return{'group':_0x1b7fc8[0x0],'type':_0x1b7fc8[0x1],'subType':_0x1b7fc8['length']>=0x5?_0x1b7fc8[0x2]:null,'id':_0x1b7fc8['length']<0x5?_0x1b7fc8[0x2]:_0x1b7fc8[0x3],'authorId':_0x1b7fc8['length']<0x5?_0x1b7fc8[0x3]:_0x1b7fc8[0x4],'markerCount':0x6==_0x1b7fc8['length']?_0x1b7fc8[0x5]:null};}function _0x3f0326(_0x2d1017){for(let _0x126c02=0x0;_0x126c02<_0xee306d['length'];_0x126c02++){if(_0x2d1017['isAdded']&&'insertion'==_0xee306d[_0x126c02]['type'])return _0x2d1017['isAddSuggestion']=_0xee306d[_0x126c02],void delete _0x2d1017['isAdded'];if(!_0x2d1017['isAdded']&&!_0x2d1017['isRemoved']&&'deletion'==_0xee306d[_0x126c02]['type'])return void(_0x2d1017['isRemoveSuggestion']=_0xee306d[_0x126c02]);}}}['_setDistance'](_0x54f036,_0x2fbd27){let _0x5e2fb9=0x0,_0x584e8d=!0x1;const _0x4d6f0b=new Map();for(const _0x39f2df of _0x54f036)_0x39f2df[_0x2fbd27]?_0x584e8d&&(_0x5e2fb9++,_0x584e8d=!0x1):(_0x5e2fb9++,_0x584e8d=!0x0),_0x4d6f0b['set'](_0x39f2df['id'],_0x5e2fb9);for(let _0x5b010e=0x0;_0x5b010e<_0x54f036['length'];_0x5b010e++){if('isRemoved'==_0x2fbd27&&_0x54f036[_0x5b010e]['isAdded']||'isAdded'==_0x2fbd27&&_0x54f036[_0x5b010e]['isRemoved'])continue;if('text'==_0x54f036[_0x5b010e]['type']){_0x54f036[_0x5b010e]['distance']=0x0;continue;}const _0x1b98b4=_0x4d6f0b['get'](_0x54f036[_0x5b010e]['pairId']),_0x5784c1=_0x4d6f0b['get'](_0x54f036[_0x5b010e]['id']);_0x54f036[_0x5b010e]['distance']=_0x1b98b4-_0x5784c1;}}['_getRevisionsRange'](_0x94decb,_0x429d95,_0x191ed2=!0x1){const _0x3b5e5f=[];let _0x34a901=this['repository']['getIndex'](_0x94decb),_0x2c9efe=this['repository']['getIndex'](_0x429d95);for(-0x1==_0x2c9efe&&(_0x2c9efe=this['repository']['_revisions']['length'],_0x191ed2=!0x1);_0x34a901<_0x2c9efe;)_0x3b5e5f['push'](this['repository']['getRevision'](_0x34a901)),_0x34a901++;return _0x191ed2&&_0x3b5e5f['push'](this['repository']['getRevision'](_0x34a901)),_0x3b5e5f;}['_threeWayMerge'](_0x50f098,_0x3b16ba,_0xb1ffd0,_0x4000b8){const _0x36b367=this['editor']['model']['schema'];let _0x114aff=_0x3b16ba;for(;_0x50f098[_0x114aff]&&_0x50f098[_0x114aff]['isAdded'];)_0x114aff++;let _0x245790=_0x4000b8;for(;_0xb1ffd0[_0x245790]&&_0xb1ffd0[_0x245790]['isRemoved'];)_0x245790++;_0x2f3989(_0x50f098,_0x3b16ba,_0x114aff),_0x2f3989(_0xb1ffd0,_0x4000b8,_0x245790);const _0x1fa0a8=_0xb1ffd0['slice'](_0x4000b8,_0x245790)['concat'](_0x50f098['slice'](_0x3b16ba,_0x114aff));return _0x1fa0a8['sort']((_0x1f5a2e,_0xafc7b8)=>_0x1f5a2e['side']!=_0xafc7b8['side']?_0x1f5a2e['side']-_0xafc7b8['side']:_0x1f5a2e['level']!=_0xafc7b8['level']?_0x1f5a2e['level']-_0xafc7b8['level']:_0x1f5a2e['distance']!=_0xafc7b8['distance']?_0xafc7b8['distance']-_0x1f5a2e['distance']:!!_0x1f5a2e['isAdded']!=!!_0xafc7b8['isAdded']?-0x1==_0x1f5a2e['side']||0x0==_0x1f5a2e['side']?_0x1f5a2e['isAdded']?-0x1:0x1:_0x1f5a2e['isAdded']?0x1:-0x1:_0x1f5a2e['index']-_0xafc7b8['index']),{'commonTape':_0x1fa0a8,'iEnd':_0x114aff,'jEnd':_0x245790};function _0x2f3989(_0x135a0a,_0x39f3e0,_0x58eed0){let _0x4c74c6=-0x1,_0x1244e3=Number['POSITIVE_INFINITY'],_0x2fc993=!0x0;for(let _0x3ad78f=_0x39f3e0;_0x3ad78f<_0x58eed0;_0x3ad78f++)if(_0x36b367['isInline'](_0x135a0a[_0x3ad78f]['item'])||(_0x2fc993=!0x1),_0x135a0a[_0x3ad78f]['item']['startIndex']<_0x39f3e0&&(_0x4c74c6=_0x3ad78f),_0x135a0a[_0x3ad78f]['item']['endIndex']>=_0x58eed0){_0x1244e3=_0x3ad78f;break;}_0x2fc993&&(_0x4c74c6=_0x58eed0-0x1);for(let _0x3186de=_0x39f3e0;_0x3186de<_0x58eed0;_0x3186de++)_0x135a0a[_0x3186de]['side']=_0x3186de<=_0x4c74c6?-0x1:_0x3186de<_0x1244e3?0x0:0x1,_0x135a0a[_0x3186de]['index']=_0x3186de;let _0x1b9a64=0x0;for(let _0x57f71f=_0x39f3e0;_0x57f71f<=_0x4c74c6;_0x57f71f++)0x0==_0x135a0a[_0x57f71f]['distance']?_0x135a0a[_0x57f71f]['level']=_0x1b9a64:(_0x1b9a64++,_0x135a0a[_0x57f71f]['level']=_0x1b9a64,_0x1b9a64++);for(let _0x30fef1=_0x39f3e0;_0x30fef1<_0x58eed0;_0x30fef1++)0x0==_0x135a0a[_0x30fef1]['side']&&(_0x135a0a[_0x30fef1]['level']=_0x1b9a64);_0x1b9a64=0x0;for(let _0x3dfe6e=_0x58eed0-0x1;_0x3dfe6e>=_0x1244e3;_0x3dfe6e--)0x0==_0x135a0a[_0x3dfe6e]['distance']?_0x135a0a[_0x3dfe6e]['level']=_0x1b9a64:(_0x1b9a64--,_0x135a0a[_0x3dfe6e]['level']=_0x1b9a64,_0x1b9a64--);}}['_fixObsoleteTags'](_0x4193a6){const _0x25aa10=new Map(),_0x141504=this['editor']['model']['schema'];for(let _0xd1c2b=0x1;_0xd1c2b<_0x4193a6['length'];_0xd1c2b++){let _0x16e0e0,_0x16fcfe,_0x1e07c8;const _0x13c94c=_0x4193a6[_0xd1c2b],_0x174e43=_0x4193a6[_0xd1c2b-0x1];if('text'==_0x13c94c['type'])continue;if(_0x13c94c['type']!=_0x174e43['type'])continue;if(!_0x141504['isBlock'](_0x174e43['item'])||_0x141504['isLimit'](_0x174e43['item']))continue;if(!_0x141504['isBlock'](_0x13c94c['item'])||_0x141504['isLimit'](_0x13c94c['item']))continue;if((_0x4193a6[_0xd1c2b]['isAdded']||_0x4193a6[_0xd1c2b]['isAddSuggestion'])&&_0x4193a6[_0xd1c2b-0x1]['isRemoved'])_0x16e0e0=_0x4193a6[_0xd1c2b],_0x16fcfe=_0x4193a6[_0xd1c2b-0x1],_0x1e07c8=_0xd1c2b-0x1;else{if(!_0x4193a6[_0xd1c2b]['isRemoved']||!_0x4193a6[_0xd1c2b-0x1]['isAdded']&&!_0x4193a6[_0xd1c2b-0x1]['isAddSuggestion'])continue;_0x16e0e0=_0x4193a6[_0xd1c2b-0x1],_0x16fcfe=_0x4193a6[_0xd1c2b],_0x1e07c8=_0xd1c2b;}const _0x264e03=_0x16e0e0['level']==_0x16fcfe['level'],_0x5805e7=Math['abs'](_0x16e0e0['level'])<Math['abs'](_0x16fcfe['level'])&&0x0==_0x16fcfe['distance'];(_0x264e03||_0x5805e7)&&(_0x25aa10['set'](_0x16fcfe['id'],_0x16e0e0['id']),_0x4193a6['splice'](_0x1e07c8,0x1),_0xd1c2b--,_0x16e0e0['isAdded']=!0x1);}for(let _0x1c7306=0x0;_0x1c7306<_0x4193a6['length'];_0x1c7306++)_0x25aa10['has'](_0x4193a6[_0x1c7306]['pairId'])&&(_0x4193a6[_0x1c7306]['pairId']=_0x25aa10['get'](_0x4193a6[_0x1c7306]['pairId']));}['_removeMissingPairs'](_0xd3f694){const _0x301bb5=new Set(_0xd3f694['map'](_0x3a517e=>_0x3a517e['id']));for(let _0x2f41ed=0x0;_0x2f41ed<_0xd3f694['length'];_0x2f41ed++)_0x301bb5['has'](_0xd3f694[_0x2f41ed]['pairId'])||0x0==_0xd3f694[_0x2f41ed]['distance']||(_0xd3f694[_0x2f41ed]['isIncorrect']=!0x0);return _0xd3f694['filter'](_0x1451fc=>!_0x1451fc['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2f2e84){const _0x49eba5=new Set();for(let _0x587e6f=0x0;_0x587e6f<_0x2f2e84['length'];_0x587e6f++){if(_0x49eba5['has'](_0x2f2e84[_0x587e6f]['id'])&&_0x2f2e84[_0x587e6f]['isRemoved']&&(_0x2f2e84[_0x587e6f]['isIncorrect']=!0x0),_0x2f2e84[_0x587e6f]['isIncorrect'])continue;if(0x0==_0x2f2e84[_0x587e6f]['distance'])continue;if('elementStart'!=_0x2f2e84[_0x587e6f]['type'])continue;if(null==_0x2f2e84[_0x587e6f]['pairId'])continue;let _0x44fd72=_0x587e6f+0x1,_0x430539=0x0;for(;_0x2f2e84[_0x44fd72]['id']!=_0x2f2e84[_0x587e6f]['pairId'];)'elementStart'==_0x2f2e84[_0x44fd72]['type']?_0x430539++:'elementEnd'==_0x2f2e84[_0x44fd72]['type']&&_0x430539--,_0x44fd72++;if(0x0!=_0x430539){if(_0x2f2e84[_0x587e6f]['isRemoved'])_0x2f2e84[_0x587e6f]['isIncorrect']=!0x0;else{for(;_0x44fd72!=_0x587e6f;)_0x2f2e84[_0x44fd72]['isRemoved']&&0x0!=_0x2f2e84[_0x44fd72]['distance']&&(_0x2f2e84[_0x44fd72]['isIncorrect']=!0x0,_0x49eba5['add'](_0x2f2e84[_0x44fd72]['pairId'])),_0x44fd72--;}}}return _0x2f2e84['filter'](_0xb2b9b7=>!_0xb2b9b7['isIncorrect']);}['_removeUnsupportedChanges'](_0x53a3c8){const _0x47c896=this['editor']['model']['schema'];for(let _0x369620=0x0;_0x369620<_0x53a3c8['length'];_0x369620++){if(!(_0x53a3c8[_0x369620]['isAdded']||_0x53a3c8[_0x369620]['isAddSuggestion']||_0x53a3c8[_0x369620]['isRemoved']||_0x53a3c8[_0x369620]['isRemoveSuggestion']))continue;if(0x0==_0x53a3c8[_0x369620]['distance'])continue;const _0x1e6dce=_0x53a3c8[_0x369620]['item'];_0x47c896['isBlock'](_0x1e6dce)||_0x47c896['isLimit'](_0x1e6dce)||(_0x53a3c8[_0x369620]['isAdded']&&delete _0x53a3c8[_0x369620]['isAdded'],_0x53a3c8[_0x369620]['isAddSuggestion']&&delete _0x53a3c8[_0x369620]['isAddSuggestion'],_0x53a3c8[_0x369620]['isRemoveSuggestion']&&delete _0x53a3c8[_0x369620]['isRemoveSuggestion'],_0x53a3c8[_0x369620]['isRemoved']&&(_0x53a3c8[_0x369620]['isIncorrect']=!0x0));}return _0x53a3c8['filter'](_0x297cd6=>!_0x297cd6['isIncorrect']);}['_makeModelFromTape'](_0x49d279,_0x5cb612,_0x4e27c0){const _0x39f122=new mt(),_0x2a6aa6=[],_0x3da254=new Map(),_0x5bb4a0=this['editor']['model'],_0x3dd49a=_0x5bb4a0['schema'],_0x26350c=[_0x39f122],_0x7467fb={},_0x950988={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x435f7f=null;const _0xc68a8e=[0x0];for(let _0x4f1644=0x0;_0x4f1644<_0x49d279['length'];_0x4f1644++)if('elementStart'===_0x49d279[_0x4f1644]['type']){_0x49d279[_0x4f1644]['previousPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e);const _0x4d1b54=new ft(_0x49d279[_0x4f1644]['item']['name'],_0x49d279[_0x4f1644]['item']['getAttributes']());_0x26350c[0x0]['_appendChild'](_0x4d1b54),_0xc68a8e['push'](0x0),_0x26350c['unshift'](_0x4d1b54),_0x49d279[_0x4f1644]['nextPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e);}else'elementEnd'===_0x49d279[_0x4f1644]['type']?(_0x26350c['shift'](),_0x49d279[_0x4f1644]['previousPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e),_0xc68a8e['pop'](),_0xc68a8e[_0xc68a8e['length']-0x1]++,_0x49d279[_0x4f1644]['nextPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e)):(_0x49d279[_0x4f1644]['previousPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e),_0x435f7f?_0x435f7f['_data']+=_0x49d279[_0x4f1644]['item']['data']:_0x435f7f=new wt(_0x49d279[_0x4f1644]['item']['data'],_0x49d279[_0x4f1644]['item']['getAttributes']()),_0x49d279[_0x4f1644+0x1]&&'text'===_0x49d279[_0x4f1644+0x1]['type']&&_0x5b3905(_0x435f7f,_0x49d279[_0x4f1644+0x1]['item'])||(_0x26350c[0x0]['_appendChild'](_0x435f7f),_0x435f7f=null),_0xc68a8e[_0xc68a8e['length']-0x1]+=_0x49d279[_0x4f1644]['item']['offsetSize'],_0x49d279[_0x4f1644]['nextPosition']=_0x5bb4a0['createPositionFromPath'](_0x39f122,_0xc68a8e));for(let _0x102cf0=0x0;_0x102cf0<_0x49d279['length'];_0x102cf0++){const _0x36a48b=_0x49d279[_0x102cf0]['previousPosition'],_0x47c996=_0x49d279[_0x102cf0]['nextPosition'];for(const _0x4ddc30 of _0x49d279[_0x102cf0]['markersStart'])_0x3da254['set'](_0x4ddc30,{'start':_0x36a48b,'end':null});_0xc5db98('isRemoveSuggestion',_0x102cf0,_0x36a48b,_0x47c996),_0xc5db98('isAddSuggestion',_0x102cf0,_0x36a48b,_0x47c996),_0xc5db98('isRemoved',_0x102cf0,_0x36a48b,_0x47c996),_0xc5db98('isAdded',_0x102cf0,_0x36a48b,_0x47c996);for(const _0xe6e030 of _0x49d279[_0x102cf0]['markersEnd']){_0x3da254['get'](_0xe6e030)['end']=_0x47c996;}}for(const [_0x5d52cf,_0xd1c449]of _0x3da254){const _0x56303e=this['editor']['model']['createRange'](_0xd1c449['start'],_0xd1c449['end']);_0x39f122['markers']['set'](_0x5d52cf,_0x56303e);}return _0x2a6aa6['sort']((_0x2353fe,_0x27498b)=>{const _0x2889bc=_0x39f122['markers']['get']('revision:'+_0x2353fe['id']),_0x1a6b8c=_0x39f122['markers']['get']('revision:'+_0x27498b['id']);return _0x2889bc['start']['isBefore'](_0x1a6b8c['start'])?-0x1:_0x2889bc['start']['isAfter'](_0x1a6b8c['start'])?0x1:_0x2889bc['end']['isBefore'](_0x1a6b8c['end'])?-0x1:_0x2889bc['end']['isAfter'](_0x1a6b8c['end'])?0x1:'add'===_0x2353fe['type']?-0x1:0x1;}),{'root':_0x39f122,'changes':_0x2a6aa6};function _0xc5db98(_0x32899f,_0x52ca8b,_0x1ab76a,_0x52508e){const _0x47167c=!!_0x49d279[_0x52ca8b][_0x32899f],_0x2f84d3=_0x47167c?_0x49d279[_0x52ca8b][_0x32899f]['userId']:null,_0x2a16c2=_0x52ca8b===_0x49d279['length']-0x1,_0x426c36=_0x950988[_0x32899f][0x0],_0x5caa98=_0x3dd49a['isObject'](_0x49d279[_0x52ca8b]['item']);!_0x7467fb[_0x32899f]&&_0x47167c?_0x7467fb[_0x32899f]={'start':_0x1ab76a,'tapeItem':_0x49d279[_0x52ca8b],'userId':_0x2f84d3,'type':_0x32899f}:_0x7467fb[_0x32899f]&&!_0x47167c?(_0x7467fb[_0x32899f]['end']=_0x1ab76a,_0x1f64dd(_0x7467fb[_0x32899f]),_0x7467fb[_0x32899f]=null):_0x7467fb[_0x32899f]&&_0x47167c&&_0x7467fb[_0x32899f]['userId']!==_0x2f84d3&&(_0x7467fb[_0x32899f]['end']=_0x1ab76a,_0x426c36&&_0x426c36['userId']===_0x7467fb[_0x32899f]['userId']||_0x1f64dd(_0x7467fb[_0x32899f]),_0x7467fb[_0x32899f]={'start':_0x1ab76a,'tapeItem':_0x49d279[_0x52ca8b],'userId':_0x2f84d3,'type':_0x32899f}),_0x7467fb[_0x32899f]&&_0x5caa98&&('elementStart'!==_0x49d279[_0x52ca8b]['type']||_0x426c36&&_0x426c36['userId']===_0x2f84d3||_0x950988[_0x32899f]['unshift']({'userId':_0x2f84d3,'object':_0x49d279[_0x52ca8b]['item'],'change':_0x7467fb[_0x32899f]}),'elementEnd'===_0x49d279[_0x52ca8b]['type']&&_0x426c36&&_0x426c36['object']===_0x49d279[_0x52ca8b]['item']&&(_0x950988[_0x32899f]['shift'](),_0x7467fb[_0x32899f]=_0x426c36['change'])),_0x7467fb[_0x32899f]&&_0x2a16c2&&(_0x7467fb[_0x32899f]['end']=_0x52508e,_0x1f64dd(_0x7467fb[_0x32899f]),_0x7467fb[_0x32899f]=null);}function _0x1f64dd({start:_0x3e8205,end:_0x172250,tapeItem:_0xb94d9e,userId:_0x1cea10,type:_0x41ed0e}){const _0x581c6c=_0xb94d9e['item'],_0xe51b68=_0x5bb4a0['schema']['isBlock'](_0x581c6c)&&!_0x5bb4a0['schema']['isLimit'](_0x581c6c),_0x3ef035=_0x3e8205['nodeAfter']==_0x172250['parent']&&_0x172250['isAtStart'];if(_0xe51b68&&_0x3ef035)return;const _0x74afef=_0x5bb4a0['createRange'](_0x3e8205,_0x172250),_0x3b9294=_0x5cb612['get'](_0x1cea10),_0x57b97d=new r({'author':_0x3b9294,'type':'isAdded'==_0x41ed0e||'isAddSuggestion'==_0x41ed0e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x41ed0e||'isRemoveSuggestion'==_0x41ed0e},'createdAt':new Date(),'rootName':_0x4e27c0});_0x2a6aa6['push'](_0x57b97d),_0x39f122['markers']['set']('revision:'+_0x57b97d['id'],_0x74afef);}function _0x5b3905(_0x92fd3a,_0x385287){const _0x36bdc6=_0x92fd3a['getAttributes'](),_0x5efc9d=_0x385287['getAttributes']();for(const _0x2f3e84 of _0x36bdc6){if(_0x2f3e84[0x1]!==_0x385287['getAttribute'](_0x2f3e84[0x0]))return!0x1;_0x5efc9d['next']();}return _0x5efc9d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5bd5d7=>{const _0x5c231d=_0x5bd5d7['markerName']['split'](':')[0x1],_0x4e57a0=this['_getChangeFromId'](_0x5c231d);if(!_0x4e57a0)return null;const _0x1f7220='add'==_0x4e57a0['type']?'insertion':'deletion',_0x582277=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1f7220];return _0x4e57a0['data']['isSuggestion']&&_0x582277['push']('ck-suggestion-marker-'+_0x1f7220+'-new'),this['activeChange']==_0x4e57a0&&_0x582277['push']('ck-suggestion-marker--active'),{'classes':_0x582277,'attributes':{'data-change-id':_0x5c231d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x243d93=>{_0x243d93['on']('element:pre',(_0x2b4694,_0xbd1be3,_0x4036e8)=>{const _0x5c6051=_0xbd1be3['viewItem']['getChild'](0x0);if(!_0x5c6051||!_0x5c6051['is']('element','code'))return;if(!_0x4036e8['consumable']['consume'](_0x5c6051,{'attributes':['vid_start','vid_end']}))return;const _0x280531=_0xbd1be3['modelRange']['start']['nodeAfter'];_0x4036e8['writer']['setAttribute']('vid_start',_0x5c6051['getAttribute']('vid_start'),_0x280531),_0x4036e8['writer']['setAttribute']('vid_end',_0x5c6051['getAttribute']('vid_end'),_0x280531);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2de0f2=>{_0x2de0f2['on']('element',(_0x3e5e56,_0x27525e,_0x13bfcb)=>{if(!_0x13bfcb['consumable']['consume'](_0x27525e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x27525e['modelRange']['isCollapsed'])return;const _0x107c61=_0x27525e['modelRange']['start']['nodeAfter'];_0x107c61['hasAttribute']('vid_start')||_0x107c61['hasAttribute']('vid')||(_0x13bfcb['writer']['setAttribute']('vid_start',_0x27525e['viewItem']['getAttribute']('vid_start'),_0x107c61),_0x13bfcb['writer']['setAttribute']('vid_end',_0x27525e['viewItem']['getAttribute']('vid_end'),_0x107c61));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x9b02f7=>_0x9b02f7['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x52df3c,[,_0x1ca685])=>{['vid_start','vid_end','vid']['includes'](_0x1ca685)&&(_0x52df3c['return']=!0x0,_0x52df3c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5eea43=>{_0x5eea43['on']('attribute:vid',(_0x233d37,_0x5830af,_0x48a221)=>{if('\x20'!=_0x5830af['item']['data']||_0x5830af['item']['parent']['maxOffset']>0x1)return;if(!_0x48a221['consumable']['consume'](_0x5830af['item'],_0x233d37['name']))return;const _0x5c18d7=_0x48a221['writer'],_0xbbc3e2=_0x48a221['mapper']['toViewRange'](_0x5830af['range']);_0x5c18d7['wrap'](_0xbbc3e2,_0x5c18d7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x395b38){const _0x484f32=_0x395b38['plugins']['get']('RevisionViewer');return(_0x1c4b53,_0x3b6bf1,_0x499470)=>{const _0x581c34=_0x3b6bf1['markerName']['split'](':')[0x1],_0x366410=_0x484f32['_getChangeFromId'](_0x581c34);if(!_0x366410)return null;const _0xeb503f='add'==_0x366410['type']?'split':'merge';if(!_0x499470['consumable']['test'](_0x3b6bf1['markerRange'],_0x1c4b53['name']))return;const _0x10d0d4=_0x3b6bf1['markerRange']['getWalker'](),_0xaaaf6d=_0x3b6bf1['markerRange']['start'],_0x1da3c6=_0x395b38['model']['schema'];let _0x4b1a02=null,_0x4c11f6=null,_0x771141=!0x1,_0x24d7cd=!0x1;for(const _0x2fc14e of _0x10d0d4){const _0x23916b=_0x2fc14e['item'];_0x771141=_0x771141||_0x1da3c6['isContent'](_0x23916b);const _0xaeaa0b=_0x499470['mapper']['toViewElement'](_0x23916b);if(_0xaeaa0b&&_0xaeaa0b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fc14e['type']&&(_0x1da3c6['isBlock'](_0x23916b)&&!_0x1da3c6['isLimit'](_0x23916b)&&(_0x23916b['nextSibling']||_0xaaaf6d['isAtEnd']?_0x4b1a02&&_0x4b1a02['parent']==_0x23916b||(_0x4b1a02=_0x23916b,_0x374b5d(_0x2fc14e['previousPosition']),_0x24d7cd=!0x0):_0x4c11f6=_0x4c11f6||_0x2fc14e['previousPosition']));}function _0x374b5d(_0x171e6e){const _0x35b5be=_0x499470['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xeb503f}),_0x28d9d1=_0x499470['mapper']['toViewPosition'](_0x171e6e);_0x366410['data']['isSuggestion']&&_0x499470['writer']['addClass']('ck-suggestion-marker-'+_0xeb503f+'-new',_0x35b5be),_0x484f32['activeChange']==_0x366410&&_0x499470['writer']['addClass']('ck-suggestion-marker--active',_0x35b5be),_0x499470['writer']['insert'](_0x28d9d1,_0x35b5be),_0x499470['mapper']['bindElementToMarker'](_0x35b5be,_0x3b6bf1['markerName']);}_0x771141||_0x24d7cd||!_0x4c11f6||_0x374b5d(_0x4c11f6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3bd74e,_0x8fe32f,_0x1eca03)=>{const _0x3bbe1b=_0x1eca03['mapper']['markerNameToElements'](_0x8fe32f['markerName']);if(_0x3bbe1b){for(const _0x247cd0 of _0x3bbe1b)(_0x247cd0['hasClass']('ck-suggestion-marker-split')||_0x247cd0['hasClass']('ck-suggestion-marker-merge'))&&(_0x1eca03['mapper']['unbindElementFromMarkerName'](_0x247cd0,_0x8fe32f['markerName']),_0x1eca03['writer']['remove'](_0x247cd0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3f3658,_0x4dac7c,_0x3deb9b)=>{const _0x430c15=_0x4dac7c['markerName']['split'](':')[0x1],_0x5d0a02=this['_getChangeFromId'](_0x430c15);if(!_0x5d0a02)return null;const _0x469b12='add'==_0x5d0a02['type']?'split':'merge';if(_0x3deb9b['consumable']['test'](_0x4dac7c['markerRange'],_0x3f3658['name']))for(const _0x32fc5d of _0x4dac7c['markerRange']['getItems']()){if(!_0x32fc5d['is']('element','softBreak'))continue;const _0x184228=_0x3deb9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x469b12}),_0x3e31af=_0x3deb9b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x32fc5d));_0x5d0a02['data']['isSuggestion']&&_0x3deb9b['writer']['addClass']('ck-suggestion-marker-'+_0x469b12+'-new',_0x184228),this['activeChange']==_0x5d0a02&&_0x3deb9b['writer']['addClass']('ck-suggestion-marker--active',_0x184228),_0x3deb9b['writer']['insert'](_0x3e31af,_0x184228),_0x3deb9b['mapper']['bindElementToMarker'](_0x184228,_0x4dac7c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x13c23d=>{for(const _0x3ebaae of this['editor']['model']['document']['getRootNames']()){const _0x2a0232=this['editor']['model']['document']['getRoot'](_0x3ebaae),_0x1796c4=this['editor']['editing']['view']['document']['getRoot'](_0x3ebaae);if(_0x1796c4){const _0x76ac00=_0x2a0232['getAttribute']('revisionHistoryAttachChange');if(_0x13c23d['removeAttribute']('data-change-id',_0x1796c4),_0x13c23d['removeClass']('ck-revision-history-root-add',_0x1796c4),_0x13c23d['removeClass']('ck-revision-history-root-remove',_0x1796c4),_0x13c23d['removeClass']('ck-revision-history-root--active',_0x1796c4),_0x76ac00){const _0x69b349=this['_getChangeFromId'](_0x76ac00);if(!_0x69b349)return null;_0x13c23d['setAttribute']('data-change-id',_0x76ac00,_0x1796c4),_0x13c23d['addClass']('ck-revision-history-root-'+_0x69b349['type'],_0x1796c4),this['activeChange']==_0x69b349&&_0x13c23d['addClass']('ck-revision-history-root--active',_0x1796c4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4e8f19=>'revision-comment:'+_0x4e8f19,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x41037f=>'revision-suggestion:'+_0x41037f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1a34db=>({'name':'suggestion:'+_0x1a34db,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2413b1=>{const _0x5a37db=_0x2413b1['markerName']['split'](':')[0x1];return'insertion'!=_0x5a37db&&'deletion'!=_0x5a37db?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5a37db]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x227b9c,_0x318642,_0x52740f)=>{const _0x474b0c=_0x52740f['mapper']['markerNameToElements'](_0x318642['markerName']);if(_0x474b0c){for(const _0x4f822d of _0x474b0c)_0x4f822d['is']('uiElement')&&(_0x52740f['mapper']['unbindElementFromMarkerName'](_0x4f822d,_0x318642['markerName']),_0x52740f['writer']['remove'](_0x4f822d));}},{'priority':'high'});}['_getChangeFromId'](_0x36cd82){return this['_changeIdToChange']['get'](_0x36cd82);}['_getViewForChange'](_0x14a11f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x14a11f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x557c2a,_0x5ddf8e,_0x5753b5,_0x396e2f)=>{_0x396e2f&&this['_balloon']['remove'](_0x396e2f),_0x5753b5&&(this['_balloon']['add']({'view':_0x5753b5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x331ef2=this['editor']['editing'],_0x563964=this['_getChangeFromId'](_0x5753b5['changeId']);let _0x4ed483;if(_0x563964['data']['isOnRoot']){const _0x18af40=_0x331ef2['view']['getDomRoot'](_0x563964['rootName']);_0x4ed483=Array['from'](_0x18af40['getClientRects']());}else{const _0x300598=this['editor']['model']['markers']['get']('revision:'+_0x5753b5['changeId']);_0x4ed483=Array['from'](_0x331ef2['mapper']['markerNameToElements'](_0x300598['name']))['map'](_0x5219f2=>_0x331ef2['view']['domConverter']['mapViewToDom'](_0x5219f2))['map'](_0x17ebf9=>Array['from'](_0x17ebf9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4ed483[0x0];return _0x4ed483['find'](_0x3b632e=>_0x3b632e['top']-0x3<=this['_activeViewTarget']['y']&&_0x3b632e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3b632e['left']-0x3<=this['_activeViewTarget']['x']&&_0x3b632e['right']+0x3>=this['_activeViewTarget']['x'])||_0x4ed483[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x46d743,_0x53f19b,_0x490635,_0x255d03)=>{this['activeView']=_0x490635?this['_getViewForChange'](_0x490635):null,this['editor']['model']['change'](()=>{const _0x376167=this['editor']['editing'];_0x255d03&&(_0x255d03['data']['isOnRoot']?_0x376167['view']['change'](_0x1f4b00=>{_0x1f4b00['removeClass']('ck-revision-history-root--active',_0x376167['view']['document']['getRoot'](_0x255d03['rootName']));}):_0x376167['reconvertMarker']('revision:'+_0x255d03['id'])),_0x490635&&(_0x490635['data']['isOnRoot']?_0x376167['view']['change'](_0x498570=>{_0x498570['addClass']('ck-revision-history-root--active',_0x376167['view']['document']['getRoot'](_0x490635['rootName']));}):_0x376167['reconvertMarker']('revision:'+_0x490635['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x10f046,_0x583d86)=>{if(this['activeChange'])return;const _0x220358=this['_findChangeIdFromDomTarget'](_0x583d86['target']),_0xaa82bc=this['_changeIdToChange']['get'](_0x220358);_0xaa82bc?(this['_activeViewTarget']={'x':_0x583d86['domEvent']['x'],'y':_0x583d86['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xaa82bc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x9845ae,_0x6b2226)=>{const _0x421c5b=this['_findChangeIdFromDomTarget'](_0x6b2226['target']),_0x274233=this['_changeIdToChange']['get'](_0x421c5b);_0x274233?(this['_activeViewTarget']={'x':_0x6b2226['domEvent']['x'],'y':_0x6b2226['domEvent']['y']},_0x274233===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x274233):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x235b63){do{const _0xb0865c=_0x235b63['getAttribute']('data-change-id');if(_0xb0865c)return _0xb0865c;_0x235b63=_0x235b63['parent'];}while(_0x235b63);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4fd551=>{for(const _0x535f12 of this['editor']['model']['markers'])_0x4fd551['removeMarker'](_0x535f12);});}}function tt(_0x5071cb,_0x10668f){return(_0xb1b3e5,_0x2d2b2a,_0x6ed6fa)=>{if(!_0x6ed6fa['consumable']['test'](_0x2d2b2a['markerRange'],_0xb1b3e5['name']))return;const _0xb4c957=_0x2d2b2a['markerRange']['getWalker'](),_0x319571=_0x2d2b2a['markerRange']['start'],_0x18956b=_0x5071cb['model']['schema'];let _0x517202=null,_0x4961e9=null,_0xcedb05=!0x1,_0x405888=!0x1;for(const _0x4b725e of _0xb4c957){const _0x218292=_0x4b725e['item'];_0xcedb05=_0xcedb05||_0x18956b['isContent'](_0x218292);const _0x1d70e8=_0x6ed6fa['mapper']['toViewElement'](_0x218292);if(_0x1d70e8&&_0x1d70e8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b725e['type']&&(_0x18956b['isBlock'](_0x218292)&&!_0x18956b['isLimit'](_0x218292)&&(_0x218292['nextSibling']||_0x319571['isAtEnd']?_0x517202&&_0x517202['parent']==_0x218292||(_0x517202=_0x218292,_0x2c307f(_0x4b725e['previousPosition']),_0x405888=!0x0):_0x4961e9=_0x4961e9||_0x4b725e['previousPosition']));}function _0x2c307f(_0x3c6640){const _0x51dc0c=_0x6ed6fa['mapper']['toViewPosition'](_0x3c6640),_0x51968a=_0x6ed6fa['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x10668f});_0x6ed6fa['writer']['insert'](_0x51dc0c,_0x51968a),_0x6ed6fa['mapper']['bindElementToMarker'](_0x51968a,_0x2d2b2a['markerName']);}_0xcedb05||_0x405888||!_0x4961e9||_0x2c307f(_0x4961e9);};}class _t extends _0x491dde{constructor(_0x587792){super(_0x587792);const _0x4ec093=_0x587792['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4ec093,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ec093,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3086b9=this['editor'],_0x42589f=_0x3086b9['plugins']['get'](d),_0x78de87=_0x42589f['isReady']?_0x42589f['diff']['newRevisionId']:null;_0x3086b9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x78de87);}['refresh'](){const {isReady:_0xf37a15,isEnabled:_0x4e6752}=this['editor']['plugins']['get'](d);this['isEnabled']=_0xf37a15&&_0x4e6752;}}class yt extends _0x491dde{['_step'];constructor(_0x265bda,{direction:_0x4fe56f}){super(_0x265bda);const _0x4ab402=_0x265bda['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4fe56f?0x1:-0x1,this['listenTo'](_0x4ab402,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ab402,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4ab402,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x471f60=this['editor'],_0x738cc4=_0x471f60['plugins']['get'](d),{isNavigationMode:_0x59841d,currentChangeNumber:_0x5a2bfd}=_0x738cc4;let _0x4cf302;if(_0x738cc4['activeChange']=_0x59841d?_0x738cc4['diff']['changes']['get'](_0x5a2bfd+this['_step']):_0x738cc4['diff']['changes']['first'],_0x738cc4['activeChange']['data']['isOnRoot'])_0x4cf302=_0x471f60['editing']['view']['getDomRoot'](_0x738cc4['activeChange']['rootName']);else{const _0x17d99c=_0x471f60['model']['markers']['get']('revision:'+_0x738cc4['activeChange']['id']);_0x4cf302=_0x35a040(_0x471f60['editing'],_0x17d99c);}_0x29a9ec({'target':_0x4cf302,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x136ed8,currentChangeNumber:_0x34ba45,numberOfChanges:_0x29ce1b,isReady:_0x2036f8,isEnabled:_0x3a36d1}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3a36d1&&_0x2036f8&&_0x29ce1b)&&(!_0x136ed8||(0x1===this['_step']?_0x34ba45<_0x29ce1b-0x1:_0x34ba45>0x0));}}class ui extends ts{constructor(_0x5756cb){super(_0x5756cb);const _0x2326b1=this['bindTemplate'],_0x3b6aa1=new te(_0x5756cb),_0x29941a=new te(_0x5756cb);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',(_0x2080d3,_0x27c047)=>_0x2080d3&&_0x27c047>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2a59a1,_0xfb5805,_0x210710,_0x5993e5)=>{if(!_0x2a59a1)return R(_0x5756cb,'Loading...');if(!_0x210710)return R(_0x5756cb,'No\x20changes');const _0x1be5a1=R(_0x5756cb,'NUMBER_OF_CHANGES',_0x210710);return _0x5993e5?R(_0x5756cb,'X_OF_Y_CHANGES',[_0xfb5805+0x1,_0x210710]):_0x1be5a1;}),_0x3b6aa1['set']({'label':R(_0x5756cb,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x29941a['set']({'label':R(_0x5756cb,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3b6aa1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x29941a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3b6aa1['on']('execute',()=>this['fire']('execute','backward')),_0x29941a['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',_0x2326b1['if']('_isStatusLabelVisible','ck-hidden',_0x3ffdaa=>!_0x3ffdaa)]},'children':[{'text':_0x2326b1['to']('isNavigationMode',_0x2e61a1=>_0x2e61a1?R(_0x5756cb,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5756cb,'Total')+':\x20')}]},{'text':_0x2326b1['to']('_statusText')}]},new _0x1a2c61(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3b6aa1,_0x29941a]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x49113c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x100818=this['editor']['editing']['view'];_0x100818['change'](_0x5959ab=>{for(const _0x1f73bb of _0x100818['document']['roots'])_0x5959ab['addClass'](le,_0x1f73bb);});}['hide'](){const _0x18643b=this['editor']['editing']['view'];_0x18643b['change'](_0xb59c=>{for(const _0x49f8e1 of _0x18643b['document']['roots'])_0xb59c['removeClass'](le,_0x49f8e1);});}}class m extends _0x49113c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x41a687=this['editor'],_0x1b536b=_0x41a687['plugins']['get'](d),_0x2995d7=_0x41a687['plugins']['get'](de);_0x41a687['ui']['componentFactory']['add']('exitToEditing',_0x248bb5=>{const _0x28e79c=new te(_0x248bb5);return _0x28e79c['set']({'label':R(_0x248bb5,'Back\x20to\x20editing'),'icon':_0x54bba4['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x28e79c,'execute',()=>{_0x41a687['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x28e79c;}),_0x41a687['ui']['componentFactory']['add']('restoreRevision',_0x4a0c96=>{const _0x7a9db5=new te(_0x4a0c96);return _0x7a9db5['set']({'label':R(_0x4a0c96,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x7a9db5['bind']('isEnabled')['to'](_0x41a687['commands']['get']('restoreRevision')),this['listenTo'](_0x7a9db5,'execute',()=>_0x41a687['execute']('restoreRevision')),_0x7a9db5;}),_0x41a687['ui']['componentFactory']['add']('changesNavigation',_0x4a648d=>{const _0x4f00e7=new ui(_0x4a648d),_0x33bae1=_0x41a687['commands']['get']('showPreviousChange'),_0x44d83a=_0x41a687['commands']['get']('showNextChange');return _0x4f00e7['bind']('isBackwardNavigationEnabled')['to'](_0x33bae1,'isEnabled'),_0x4f00e7['bind']('isForwardNavigationEnabled')['to'](_0x44d83a,'isEnabled'),_0x4f00e7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1b536b),this['listenTo'](_0x4f00e7,'execute',(_0x26a7d7,_0x5b3263)=>{_0x41a687['execute']('forward'===_0x5b3263?'showNextChange':'showPreviousChange');}),_0x4f00e7;}),_0x2995d7['show'](),_0x1b536b['on']('change:isReady',(_0x393d4d,_0x5b76f5,_0x3cfede)=>{_0x3cfede?_0x2995d7['hide']():_0x2995d7['show']();});}}class pt extends _0x4e4e87{['_resizeObserver']=null;constructor(_0x3fedb3,_0x2f9332){super(_0x3fedb3,_0x2f9332);const _0x4c80b1=this['bindTemplate'];this['set']({'label':R(_0x3fedb3,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3fedb3,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4c80b1['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 _0x5d5c8c=this['fieldView']['element'];this['_tooltipString']=_0x5d5c8c['scrollWidth']>_0x5d5c8c['clientWidth']&&_0x5d5c8c['value']||'';}}class ri extends ts{constructor(_0x54d769,_0x3ab0b7,_0x541473){super(_0x54d769);const _0x2aea2d=new _0x515d3f();_0x2aea2d['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x357568=['ck','ck-revision-history-sidebar__revision-author'];_0x541473&&_0x357568['push']('ck-revision-history-sidebar__revision-author_creator');const _0xbbf630=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x54d769,_0x541473?'Revision\x20creator':'Revision\x20author')},'children':[_0x2aea2d,_0x3ab0b7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x357568},'children':_0xbbf630});}}function oi(_0xf7540a,_0xcdc812){const _0x576b04=_0xf7540a['bindTemplate'],_0x3fe261=_0xf7540a['locale'],_0x393108=_0xf41fd9(_0x3fe261);_0x393108['panelPosition']='sw';const _0x526c03=function(_0x5a6931,_0x4f6523){const _0x39bdd7=function(_0x275f16,_0xfe4a27){const _0x57b760=_0x275f16['locale'],_0x37073d={'Compare\x20against\x20selected':R(_0x57b760,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x57b760,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x57b760,'Restore\x20this\x20revision')};return _0xfe4a27['map'](_0x4a9c86=>{const _0x50b237=_0x37073d[_0x4a9c86['name']];return _0x50b237&&_0x50b237!==_0x4a9c86['name']&&(_0x4a9c86['name']=_0x50b237),_0x4a9c86;});}(_0x5a6931,_0x4f6523),_0x336aa2=new _0x5b23d0();for(const _0x42e9f1 of _0x39bdd7){const _0x265b5b={'type':'button','model':new _0x5b5906({'label':_0x42e9f1['name'],'class':_0x42e9f1['class'],'withText':!0x0,'role':'menuitem','_action':_0x42e9f1['action']})};_0x265b5b['model']['bind']('isEnabled')['to'](_0x5a6931,'isActionsDropdownOpen',_0x30e3bb=>'function'!=typeof _0x42e9f1['isEnabled']||(!_0x30e3bb||_0x42e9f1['isEnabled'](_0x5a6931))),_0x336aa2['add'](_0x265b5b);}return _0x336aa2;}(_0xf7540a,_0xcdc812);return _0xf7540a['bind']('isActionsDropdownOpen')['to'](_0x393108,'isOpen'),_0x393108['buttonView']['set']({'label':R(_0x3fe261,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x54bba4['threeVerticalDots']}),_0x393108['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x576b04['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x576b04['to'](_0x3b185a=>_0x3b185a['stopPropagation']())}}),_0x393108['on']('execute',_0x1eb473=>{_0xf7540a['isReady']&&'function'==typeof _0x1eb473['source']['_action']&&_0x1eb473['source']['_action'](_0xf7540a);}),to(_0x393108,_0x526c03,{'role':'menu'}),_0x393108['listenTo'](_0xf7540a,'change:isActionsDropdownOpen',(_0x33b467,_0x40134a,_0x56f9c5)=>{if(_0x56f9c5)for(const _0x31f0e4 of _0x393108['listView']['items']){const _0xd14b50=_0x31f0e4['children']['first'],_0x5ac9b3=_0xcdc812['find'](_0x49bf73=>_0x49bf73['action']===_0xd14b50['_action'])['isVisible'];_0x31f0e4['isVisible']=void 0x0===_0x5ac9b3||_0x5ac9b3(_0xf7540a);}}),_0x393108;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x1212e4,uid as _0x1ced54,Collection as _0x2f121a,logWarning as _0x320a3b,FocusTracker as _0x20319a,KeystrokeHandler as _0x3c6629,scrollViewportToShowTarget as _0xdc13e8,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x52c9ac}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xd15063,set as _0xe216fa,unset as _0x20a92e,isEqual as _0xf460ad}from'lodash-es';import{Plugin as _0x9a5545,PendingActions as _0xf8d3ba,icons as _0x25fa55,Command as _0x16bd35,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5241b4,getMarkerDomElement as _0x1e3d9d,ConfirmMixin as _0x735357,sanitizeEditorConfig as _0x48122b}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x30434f,ViewText as _0x5b9193,ViewElement as _0x3ff468,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x4221dd,ViewAttributeElement as _0x414029,ViewEmptyElement as _0x452337,ViewRawElement as _0x3497f3,ViewUIElement as _0xa39994,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x4f4dcf,injectCssTransitionDisabler as ts,submitHandler as _0x258bed,LabeledFieldView as at,createLabeledInputText as _0x5e8fe9,createDropdown as _0x5c06d4,ListView as te,ListItemView as _0xeca532,ButtonView as _0x18590d,MenuBarMenuView as _0x5afccc,MenuBarMenuListView as _0x1e0c87,MenuBarMenuListItemView as _0x51e979,MenuBarMenuListItemButtonView as _0x39a7a7,ContextualBalloon as _0x613301,ToolbarSeparatorView as _0x3b7cad,IconView as _0x58df23,addListToDropdown as _0x584b38,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x143ed1}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1212e4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3e292d){super(),this['id']=_0x3e292d['id']||_0x1ced54(),this['creator']=_0x3e292d['creator']||null,this['authors']=_0x3e292d['authors']||[],this['diffData']=_0x3e292d['diffData']||null,this['toVersion']=_0x3e292d['toVersion']||0x0,this['fromVersion']=_0x3e292d['fromVersion']||0x0,this['set']('name',_0x3e292d['name']||''),this['set']('createdAt',_0x3e292d['createdAt']||new Date()),this['set']('attributes',_0x3e292d['attributes']||{});}['setName'](_0x59bcb1){this['_update']({'name':_0x59bcb1});}['setAttribute'](_0xdfa05d,_0x49e506){const _0x208a58=_0xd15063(this['attributes']);_0xe216fa(_0x208a58,_0xdfa05d,_0x49e506),this['_update']({'attributes':_0x208a58});}['removeAttribute'](_0x2eb7a7){const _0x5aea12=_0xd15063(this['attributes']);_0x20a92e(_0x5aea12,_0x2eb7a7),this['_update']({'attributes':_0x5aea12});}['_update'](_0x257183,_0x6a8b4=!0x1){let _0x52f5a9=!0x1;const _0x502de6={'id':this['id']},_0x3d74d9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x270e45 of _0x3d74d9){const _0x2900d9=_0x257183[_0x270e45];void 0x0!==_0x2900d9&&_0x2900d9!==this[_0x270e45]&&(this[_0x270e45]=_0x2900d9,_0x502de6[_0x270e45]=_0x2900d9,_0x52f5a9=!0x0);}_0x52f5a9&&(_0x502de6['authors']&&(_0x502de6['authorsIds']=_0x502de6['authors']['map'](_0x38030e=>_0x38030e['id']),delete _0x502de6['authors']),this['fire']('_update',_0x502de6,_0x6a8b4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xe1d03e=>_0xe1d03e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x9a5545{['_revisions'];static get['requires'](){return[_0x5241b4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x20eb18){super(_0x20eb18),this['_revisions']=new _0x2f121a();}['afterInit'](){!async function(_0x36e148){const _0x564740=_0x4f50b1([0x62,0x30,0x73,0x4f,0x68,0x74,0x53,0x6f,0x37,0x49,0x55,0x34,0x70,0x4c,0x32,0x6a,0x64,0x76,0x31,0x75,0x63,0x61,0x6c,0x56,0x4b,0x65,0x5a,0x69,0x6e,0x4e,0x44,0x33,0x6b,0x43,0x78,0x39,0x4d,0x72,0x58,0x77,0x54,0x66,0x7a,0x4a,0x59,0x47,0x51,0x50,0x6d,0x67,0x35,0x46,0x71,0x79,0x36,0x38,0x42,0x57,0x48,0x45,0x52,0x41]),_0x3cae14=0xeb829,_0x3ecc3c=0x29160cc0,_0x4d65e2=0x29115b20^_0x3ecc3c,_0x2d8397=window[_0x4f50b1([0x44,0x61,0x74,0x65])][_0x4f50b1([0x6e,0x6f,0x77])](),_0x2efc27=_0x36e148[_0x4f50b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c618a=new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bae80=>{_0x2efc27[_0x4f50b1([0x6f,0x6e,0x63,0x65])](_0x4f50b1([0x72,0x65,0x61,0x64,0x79]),_0x5bae80);}),_0x443165={[_0x4f50b1([0x6b,0x74,0x79])]:_0x4f50b1([0x45,0x43]),[_0x4f50b1([0x75,0x73,0x65])]:_0x4f50b1([0x73,0x69,0x67]),[_0x4f50b1([0x63,0x72,0x76])]:_0x4f50b1([0x50,0x2d,0x32,0x35,0x36]),[_0x4f50b1([0x78])]:_0x4f50b1([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]),[_0x4f50b1([0x79])]:_0x4f50b1([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]),[_0x4f50b1([0x61,0x6c,0x67])]:_0x4f50b1([0x45,0x53,0x32,0x35,0x36])},_0x2d1332=_0x2efc27[_0x4f50b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f50b1([0x67,0x65,0x74])](_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe7b31e(){let _0x308f5d,_0x33c268=null,_0x276938=null;try{if(_0x2d1332==_0x4f50b1([0x47,0x50,0x4c]))return _0x4f50b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x308f5d=_0x2c0ce4(),!_0x308f5d)return _0x4f50b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x308f5d[_0x4f50b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x276938=_0x1cc86d(_0x308f5d[_0x4f50b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x308f5d[_0x4f50b1([0x6a,0x74,0x69])])),await _0x3b4b59()?_0x27058f()?_0x3aa300()?_0x4f50b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f2bbf()?(_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f50b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33c268=_0x4bff2c(_0x4f50b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f50b1([0x74,0x72,0x69,0x61,0x6c])&&(_0x33c268=_0x4bff2c(_0x4f50b1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f50b1([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x33c268=_0x4bff2c(_0x4f50b1([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12a683()):_0x4f50b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f50b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f50b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x21a99d){return _0x4f50b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3aa300(){const _0x2af4a7=[_0x4f50b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f50b1([0x74,0x72,0x69,0x61,0x6c])][_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d8397/0x3e8:0xe10*_0x4d65e2;return _0x308f5d[_0x4f50b1([0x65,0x78,0x70])]<_0x2af4a7;}function _0x27058f(){const _0x11f6bf=_0x308f5d[_0x4f50b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x11f6bf&&(!!_0x11f6bf[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x2a]))||(!!_0x11f6bf[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x52,0x48]))||!(!_0x11f6bf[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x52,0x52,0x48]))||!_0x4ea81b())));}function _0x4f2bbf(){const _0x119b9d=_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x119b9d||0x0==_0x119b9d[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x529d99}=new URL(window[_0x4f50b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x119b9d[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529d99))return!0x0;const _0x36df3e=_0x529d99[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e]));return _0x119b9d[_0x4f50b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x198c07=>_0x198c07[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x2a])))[_0x4f50b1([0x6d,0x61,0x70])](_0x9f920=>_0x9f920[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e])))[_0x4f50b1([0x73,0x6f,0x6d,0x65])](_0x5ceccd=>_0x36df3e[_0x4f50b1([0x65,0x76,0x65,0x72,0x79])]((_0x17ead8,_0x43ae7d)=>_0x5ceccd[_0x43ae7d]===_0x17ead8||_0x5ceccd[_0x43ae7d]===_0x4f50b1([0x2a])));}function _0x12a683(){return _0x33c268&&_0x276938?new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x533776,_0x2e47d8)=>{_0x33c268[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x533776,_0x2e47d8),_0x276938[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x269128=>{_0x269128!=_0x4f50b1([0x56,0x61,0x6c,0x69,0x64])&&_0x533776(_0x269128);},_0x2e47d8);}):_0x33c268||_0x276938||_0x4f50b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cc86d(_0x2c8aab,_0x141903){return new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f865d=>{if(_0x55f01b())return _0x1f865d(_0x4f50b1([0x56,0x61,0x6c,0x69,0x64]));_0x54669c(),_0x2efc27[_0x4f50b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f50b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4780ed=!0x1;const _0x2f2edf=_0x1ced54();function _0x236631(_0x30b89b){return!!_0x30b89b&&(typeof _0x30b89b===_0x4f50b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30b89b===_0x4f50b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30b89b[_0x4f50b1([0x74,0x68,0x65,0x6e])]===_0x4f50b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30b89b[_0x4f50b1([0x63,0x61,0x74,0x63,0x68])]===_0x4f50b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e2612(_0x499309){_0x27c590(_0x499309)[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x5a52b3=>{if(!_0x5a52b3||_0x5a52b3[_0x4f50b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f50b1([0x6f,0x6b]))return _0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b5d11(_0x5c6119(_0x2f2edf+_0x141903))!=_0x5a52b3[_0x4f50b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f50b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x3658c6=>(_0x396ddb(),_0x3658c6),()=>{const _0x9b0e40=_0x35724d();return null==_0x9b0e40?(_0x396ddb(),_0x4f50b1([0x56,0x61,0x6c,0x69,0x64])):_0x4f50b1(_0x2d8397-_0x9b0e40>(0xd1a88c0^_0x3ecc3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x1f865d)[_0x4f50b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f865d(_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x429bc2=0x2920e240^_0x3ecc3c;function _0x396ddb(){const _0x267576=_0x4f50b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5d11(_0x5c6119(_0x2c8aab)),_0x1251fd=_0x5102d9(_0x4b5d11(window[_0x4f50b1([0x4d,0x61,0x74,0x68])][_0x4f50b1([0x63,0x65,0x69,0x6c])](_0x2d8397/_0x429bc2)));window[_0x4f50b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f50b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x267576,_0x1251fd);}function _0x35724d(){const _0x375c32=_0x4f50b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5d11(_0x5c6119(_0x2c8aab)),_0xa575ff=window[_0x4f50b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f50b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x375c32);return _0xa575ff?window[_0x4f50b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5102d9(_0xa575ff),0x10)*_0x429bc2:null;}function _0x27c590(_0x207a8b){return new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34bc25,_0x55da7c)=>{_0x207a8b[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x34bc25,_0x55da7c),window[_0x4f50b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55da7c,0x2917d800^_0x3ecc3c);});}}_0x2efc27[_0x4f50b1([0x6f,0x6e])](_0x4f50b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d127f,_0x75c61c)=>{if(_0x75c61c[0x0]!=_0x2c8aab)return _0x1f865d(_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x75c61c[0x1]={..._0x75c61c[0x1],[_0x4f50b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f2edf};},{[_0x4f50b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f50b1([0x68,0x69,0x67,0x68])}),_0x2efc27[_0x4f50b1([0x6f,0x6e])](_0x4f50b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f428a=>{_0x236631(_0x4f428a[_0x4f50b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4780ed=!0x0,_0x4e2612(_0x4f428a[_0x4f50b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f50b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f50b1([0x6c,0x6f,0x77])}),_0x5c618a[_0x4f50b1([0x74,0x68,0x65,0x6e])](()=>{_0x4780ed||_0x1f865d(_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55f01b(){return _0x2efc27[_0x4f50b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f50b1([0x76,0x69,0x65,0x77])][_0x4f50b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f50b1([0x61,0x75,0x74,0x6f]);}function _0x54669c(){_0x2efc27[_0x4f50b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f50b1([0x76,0x69,0x65,0x77])][_0x4f50b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f50b1([0x61,0x75,0x74,0x6f]);}}function _0x4bff2c(_0x7cb3e){const _0x3c906e=[new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3780c4=>setTimeout(_0x3780c4,0x291f320c^_0x3ecc3c)),_0x5c618a[_0x4f50b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a4cc7=>{const _0x3eb300=0x29160cc7^_0x3ecc3c,_0x53e1e0=_0x36e148[_0x4f50b1([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x125f5e(){_0x53e1e0[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3eb300&&_0x5a4cc7();}_0x125f5e(),_0x53e1e0[_0x4f50b1([0x6f,0x6e])](_0x4f50b1([0x61,0x64,0x64]),_0x125f5e);})),new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcafe2f=>{function _0x4e6f9b(){for(const _0x4a72e3 in window)if(window[_0x4f50b1([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4f50b1([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4a72e3))&&window[_0x4a72e3]==_0x3cae14)return _0xcafe2f();_0x2efc27[_0x4f50b1([0x73,0x74,0x61,0x74,0x65])]!=_0x4f50b1([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4f50b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e6f9b,0x29161f48^_0x3ecc3c);}_0x20b07d(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4e6f9b();})];return window[_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f50b1([0x72,0x61,0x63,0x65])](_0x3c906e)[_0x4f50b1([0x74,0x68,0x65,0x6e])](()=>_0x7cb3e);}async function _0x4542d4(){if(await _0x5c618a,_0x20b07d(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5a9905=_0x36e148[_0x4f50b1([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x749ee=_0x36e148[_0x4f50b1([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])](_0x5a9905[_0x4f50b1([0x69,0x64])]),_0x26f0fb=_0x183142(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x26f0fb[_0x4f50b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5a9905['id'],_0x749ee?_0x749ee['id']:null,!0x0),_0x26f0fb[_0x4f50b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x26f0fb[_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x26f0fb[_0x4f50b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x508bb8,void(_0x26f0fb[_0x4f50b1([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x508bb8);}if(_0x20b07d(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5d6d87=_0x183142(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5d6d87[_0x4f50b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5d6d87[_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5d6d87[_0x4f50b1([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x508bb8,_0x5d6d87[_0x4f50b1([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x508bb8;}_0x2efc27[_0x4f50b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f50b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x508bb8,_0x2efc27[_0x4f50b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f50b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x508bb8,_0x2efc27[_0x4f50b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f50b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ea81b(){return _0x20b07d(_0x4f50b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x183142(_0x4f50b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f50b1([0x73,0x74,0x61,0x74,0x65])]==_0x4f50b1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x287a9c(_0x3739ef){const _0x524a84=_0x31fb17();_0x2efc27[_0x524a84]=_0x4f50b1([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])+_0x3739ef,_0x3739ef[_0x4f50b1([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4f50b1([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x31fb17()]=_0x3cae14),_0x3739ef!=_0x4f50b1([0x56,0x61,0x6c,0x69,0x64])&&_0x4542d4();}function _0x31fb17(){const _0x56d6a0=window[_0x4f50b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f50b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f50b1([0x6e,0x6f,0x77])]())[_0x4f50b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f50b1([0x2e]),'');let _0x408500=_0x4f50b1([0x62]);for(let _0x3f6fc4=0x0;_0x3f6fc4<_0x56d6a0[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f6fc4+=0x2){let _0x5a2d1e=window[_0x4f50b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56d6a0[_0x4f50b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f6fc4,_0x3f6fc4+0x2));_0x5a2d1e>=_0x564740[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a2d1e-=_0x564740[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x408500+=_0x564740[_0x5a2d1e];}return _0x408500;}function _0x2c0ce4(){const _0x16acfa=_0x2d1332[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e]));if(0x3!=_0x16acfa[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ce748(_0x16acfa[0x1]);function _0x1ce748(_0x338e46){const _0x1e8954=_0x389842(_0x338e46);return _0x1e8954&&_0x1d5be2()?_0x1e8954:null;function _0x1d5be2(){const _0x510844=_0x1e8954[_0x4f50b1([0x6a,0x74,0x69])],_0x30a62a=window[_0x4f50b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x510844[_0x4f50b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x510844[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48d158={..._0x1e8954,[_0x4f50b1([0x6a,0x74,0x69])]:_0x510844[_0x4f50b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x510844[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48d158[_0x4f50b1([0x76,0x63])],_0x5c6119(_0x48d158)==_0x30a62a;}}}async function _0x3b4b59(){let _0x29cf83=!0x0;try{const _0x55782d=_0x2d1332[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e])),[_0x541a01,_0x46327b,_0x944afc]=_0x55782d;return _0x55dfeb(_0x541a01),await _0x27c3d9(_0x541a01,_0x46327b,_0x944afc),_0x29cf83;}catch(_0x4971fc){return!0x1;}function _0x55dfeb(_0x21328a){const _0xf846f2=_0x389842(_0x21328a);_0xf846f2&&_0xf846f2[_0x4f50b1([0x61,0x6c,0x67])]==_0x4f50b1([0x45,0x53,0x32,0x35,0x36])||(_0x29cf83=!0x1);}async function _0x27c3d9(_0x793f22,_0x529985,_0x391d05){const _0x50e4bc=window[_0x4f50b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f50b1([0x66,0x72,0x6f,0x6d])](_0x3c377b(_0x391d05),_0x82d19c=>_0x82d19c[_0x4f50b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2181da=new window[(_0x4f50b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f50b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x793f22+_0x4f50b1([0x2e])+_0x529985),_0xa4c199=window[_0x4f50b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f50b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa4c199)return;const _0x4632f9=await _0xa4c199[_0x4f50b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f50b1([0x6a,0x77,0x6b]),_0x443165,{[_0x4f50b1([0x6e,0x61,0x6d,0x65])]:_0x4f50b1([0x45,0x43,0x44,0x53,0x41]),[_0x4f50b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f50b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f50b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa4c199[_0x4f50b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f50b1([0x6e,0x61,0x6d,0x65])]:_0x4f50b1([0x45,0x43,0x44,0x53,0x41]),[_0x4f50b1([0x68,0x61,0x73,0x68])]:{[_0x4f50b1([0x6e,0x61,0x6d,0x65])]:_0x4f50b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4632f9,_0x50e4bc,_0x2181da)||(_0x29cf83=!0x1);}}function _0x389842(_0x55bac2){return _0x55bac2[_0x4f50b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f50b1([0x65,0x79]))?JSON[_0x4f50b1([0x70,0x61,0x72,0x73,0x65])](_0x3c377b(_0x55bac2)):null;}function _0x3c377b(_0x45c12f){return window[_0x4f50b1([0x61,0x74,0x6f,0x62])](_0x45c12f[_0x4f50b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f50b1([0x2b]))[_0x4f50b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f50b1([0x2f])));}function _0x5c6119(_0x1c8675){let _0x69b08b=0x1505;function _0x536316(_0x5ba64d){for(let _0x294200=0x0;_0x294200<_0x5ba64d[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x294200++){const _0x16c861=_0x5ba64d[_0x4f50b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x294200);_0x69b08b=(_0x69b08b<<0x5)+_0x69b08b+_0x16c861,_0x69b08b&=_0x69b08b;}}function _0x4c3b8f(_0x47d968){Array[_0x4f50b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47d968)?_0x47d968[_0x4f50b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c3b8f):_0x47d968&&typeof _0x47d968==_0x4f50b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f50b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47d968)[_0x4f50b1([0x73,0x6f,0x72,0x74])]()[_0x4f50b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7582e5,_0x556d2c])=>{_0x536316(_0x7582e5),_0x4c3b8f(_0x556d2c);}):_0x536316(window[_0x4f50b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47d968));}return _0x4c3b8f(_0x1c8675),_0x69b08b>>>0x0;}function _0x4b5d11(_0x3bc980){return _0x3bc980[_0x4f50b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f50b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f50b1([0x30]));}function _0x5102d9(_0x2ff206){return _0x2ff206[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f50b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f50b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x20b07d(_0x1a163e){return _0x2efc27[_0x4f50b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f50b1([0x68,0x61,0x73])](_0x1a163e);}function _0x183142(_0x1fdfdb){return _0x2efc27[_0x4f50b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f50b1([0x67,0x65,0x74])](_0x1fdfdb);}function _0x508bb8(){}function _0x4f50b1(_0x311dab){return _0x311dab['map'](_0x1087ab=>String['fromCharCode'](_0x1087ab))['join']('');}_0x287a9c(await _0xe7b31e());}(this);}['createRevision'](_0x5d57a5){const _0x1ee771=this['editor']['plugins']['get']('Users');return new a({'id':_0x5d57a5['id'],'name':_0x5d57a5['name'],'creator':_0x5d57a5['creatorId']?_0x1ee771['getUser'](_0x5d57a5['creatorId']):null,'diffData':_0x5d57a5['diffData']||_0x5d57a5['data'],'authors':_0x5d57a5['authorsIds']['map'](_0xe8a8ca=>_0x1ee771['getUser'](_0xe8a8ca)),'createdAt':new Date(_0x5d57a5['createdAt']),'attributes':_0x5d57a5['attributes'],'fromVersion':_0x5d57a5['fromVersion'],'toVersion':_0x5d57a5['toVersion']});}['addRevision'](_0x33f324,_0x5300d8=0x0){this['_revisions']['add'](_0x33f324,_0x5300d8);}['getRevision'](_0x1184e5){return this['_revisions']['get'](_0x1184e5);}['getRevisions'](_0x11c25a={'toJSON':!0x1}){const _0xfcc66=Array['from'](this['_revisions']);return _0xfcc66['reverse'](),_0x11c25a['toJSON']?_0xfcc66['map'](_0x460776=>_0x460776['toJSON']()):_0xfcc66;}['getIndex'](_0x4eccd4){return this['_revisions']['getIndex'](_0x4eccd4);}['getEarlierVisibleRevision'](_0x3ebe5f){const [,_0x45e6ea]=this['getRevisionsIterator'](_0x3ebe5f,{'direction':'earlier'});return _0x45e6ea;}['getLaterVisibleRevision'](_0xb9c4ef){const [,_0x59e670]=this['getRevisionsIterator'](_0xb9c4ef,{'direction':'later'});return _0x59e670;}['getRevisionsInDiff'](_0x21a5d4){const _0x1b703b=[];for(const _0x10d506 of this['getRevisionsIterator'](_0x21a5d4['newRevisionId']))if(_0x1b703b['push'](_0x10d506),_0x10d506['id']===_0x21a5d4['oldRevisionId'])break;return _0x1b703b;}*['getRevisionsIterator'](_0x3f67de,{direction:_0x1e46ca='earlier',filter:_0x31650f=()=>!0x0}={}){const _0x357040='earlier'===_0x1e46ca?0x1:-0x1;let _0x38f41a=this['_revisions']['get'](_0x3f67de),_0x45e251=this['getIndex'](_0x38f41a);for(yield _0x38f41a;_0x38f41a;){if(_0x45e251+=_0x357040,_0x38f41a=this['getRevision'](_0x45e251),!_0x38f41a)return;_0x31650f(_0x38f41a)&&(yield _0x38f41a);}}}function R(_0x4451aa,_0xf04b54,_0xb35b1d){const t=_0x4451aa['t'];switch(_0xf04b54){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'},_0xb35b1d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xb35b1d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x4221dd,'a':_0x414029,'e':_0x452337,'r':_0x3497f3,'u':_0xa39994};class l extends _0x9a5545{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5241b4,j,_0xf8d3ba];}constructor(_0x4b6197){super(_0x4b6197),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2e2abc=_0x1ced54();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2e2abc},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x17a5c9=this['repository']['getRevision'](0x0),_0x11e90c=_0x17a5c9&&null===_0x17a5c9['creator']?_0x17a5c9:null;if(this['_continueCurrentRevision']=!!_0x11e90c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x54e0a5=this['_source']['getCurrentRevisionId'](),_0x452314=this['repository']['getRevision'](_0x54e0a5);if(_0x452314)this['_startingVersion']=_0x452314['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x35e2ba=this['_source']['history']['_operations']['find'](_0xd59e77=>!_0xd59e77['_isInit']),_0x4f157b=_0x35e2ba?_0x35e2ba['baseVersion']:this['_source']['history']['version'];_0x17a5c9?(_0x17a5c9['toVersion']<_0x4f157b&&_0x17a5c9['_update']({'toVersion':_0x4f157b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x11e90c['id'],this['_startingVersion']=_0x11e90c['fromVersion']):(this['_startingVersion']=_0x17a5c9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4f157b,this['_continueCurrentRevision']=!0x1);}}else _0x11e90c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x11e90c['toVersion'],this['editor']['model']['document']['history']['version']),_0x11e90c['fromVersion']===_0x11e90c['toVersion']?(0x0!==_0x11e90c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x11e90c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x11e90c['id'],this['_startingVersion']=_0x11e90c['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',_0x572a12=>!_0x572a12),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x369a29=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x514078;for(const _0x51ad47 in _0x369a29){const _0x19817a=_0x51ad47,_0x2fd0aa=_0x369a29[_0x19817a];if('revisionHistoryLicenseKeyValid'==_0x2fd0aa||'revisionHistoryLicenseKeyInvalid'==_0x2fd0aa||'revisionHistoryLicenseKeyExpired'==_0x2fd0aa||'revisionHistoryLicenseKeyDomainLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyNotAllowed'==_0x2fd0aa||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyTrialLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyUsageLimit'==_0x2fd0aa){delete _0x369a29[_0x19817a],_0x514078=_0x2fd0aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x514078&&_0x369a29['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x514078&&_0x369a29['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x514078&&_0x369a29['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x514078&&_0x369a29['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x514078&&_0x369a29['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x514078&&_0x369a29['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x514078&&_0x369a29['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x514078&&_0x369a29['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x257a1f=this['repository']['getRevision'](0x0),_0xcc3649=await this['getRevisionDocumentData'](_0x257a1f),_0xc68c1=await this['getRevisionRootsAttributes'](_0x257a1f);this['_replaceEditorDataWithRevisionData'](_0xcc3649,_0xc68c1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x23bc83){this['_source']=_0x23bc83;}async['update'](){const _0x320a4c=await this['_source']['getLatestVersion']();if(_0x320a4c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3116a7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x320a4c});_0x3116a7['authors']=_0x3116a7['authorsIds']['map'](_0x1cc378=>this['editor']['plugins']['get']('Users')['getUser'](_0x1cc378)),this['currentRevision']['_update'](_0x3116a7);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x1e2f02={},_0x2588ed=null){const _0x293239=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2588ed>this['currentRevision']['toVersion']&&(_0x2588ed=null),null===_0x2588ed&&(_0x2588ed=await this['_source']['getLatestVersion']());const _0x45defb=this['_getFromVersion'](_0x2588ed),_0x4b3002=this['buildRevisionData']({'from':_0x45defb,'to':_0x2588ed});if(this['currentRevision']['toVersion']<_0x2588ed){const _0x2a7d9c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2588ed,'to':_0x2588ed});_0x2a7d9c['authors']=[],_0x2a7d9c['authorsIds']=[],_0x2a7d9c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2a7d9c,!0x0),delete _0x2a7d9c['authors'],_0x293239['push'](_0x2a7d9c);}_0x1e2f02['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e2f02['name']=_0x1e2f02['name']||null,_0x1e2f02['id']=_0x1e2f02['id']||_0x1ced54(),_0x1e2f02={..._0x1e2f02,..._0x4b3002};const _0x262452=this['addRevisionData'](_0x1e2f02);_0x293239['push'](_0x1e2f02);const _0x49b7c3=this['repository']['getIndex'](_0x262452);if(0x0!==_0x49b7c3){const _0x640c4a=this['repository']['getRevision'](_0x49b7c3-0x1);if(_0x640c4a['fromVersion']!==_0x2588ed){const _0x103f4b=this['_revisionDataBuilder']['getData'](_0x2588ed,_0x640c4a['toVersion']),_0x54d7a8={'id':_0x640c4a['id'],'diffData':_0x103f4b['diffData'],'authorsIds':_0x103f4b['authorsIds'],'authors':_0x103f4b['authorsIds']['map'](_0x589b84=>this['editor']['plugins']['get']('Users')['getUser'](_0x589b84)),'fromVersion':_0x2588ed};_0x640c4a===this['currentRevision']&&(_0x54d7a8['createdAt']=new Date(_0x1e2f02['createdAt']['getTime']()+0xa)),_0x640c4a['_update'](_0x54d7a8,!0x0),delete _0x54d7a8['authors'],_0x293239['push'](_0x54d7a8);}}if(this['adapter']){for(const _0x3aee3c of _0x293239)this['_bufferUpdate'](_0x3aee3c['id'],_0x3aee3c,!0x0);this['sendBufferedUpdates']();}return _0x262452;}['addRevisionData'](_0x31039c){const _0x3c9f9b=this['repository']['createRevision'](_0x31039c);return this['adapter']&&_0x3c9f9b['on']('_update',(_0x5f26d7,_0x38595f,_0x19c246)=>{_0x19c246||(this['_bufferUpdate'](_0x38595f['id'],_0x38595f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3c9f9b,this['_findInsertionIndex'](_0x3c9f9b)),_0x3c9f9b;}async['getRevisionDocumentData'](_0x59fd42){await this['_loadRevisionData'](_0x59fd42);const _0x152637={};for(const _0x157879 in _0x59fd42['diffData']){if(_0x59fd42['diffData'][_0x157879]['attachChange']&&!_0x59fd42['diffData'][_0x157879]['attachChange']['isAttached'])continue;const _0x4b6dea=this['_removeRevisionMarkers'](JSON['parse'](_0x59fd42['diffData'][_0x157879]['insertions'])),_0x1ef48f=this['editor']['editing']['view']['document'],_0x2090a6=new _0x30434f(_0x1ef48f,_0x4b6dea['map'](_0x4b61e3=>V(_0x4b61e3,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x152637[_0x157879]=this['editor']['data']['processor']['toData'](_0x2090a6),this['editor']['data']['processor']['useFillerType']('default');}return _0x152637;}async['getRevisionRootsAttributes'](_0x5263f3){await this['_loadRevisionData'](_0x5263f3);const _0x434aa5={};for(const _0x4782f8 in _0x5263f3['diffData'])_0x5263f3['diffData'][_0x4782f8]['attachChange']&&!_0x5263f3['diffData'][_0x4782f8]['attachChange']['isAttached']||(_0x434aa5[_0x4782f8]=_0x5263f3['diffData'][_0x4782f8]['attributesAfter']||{});return _0x434aa5;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1d7e76=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x806576=0x0;_0x806576<_0x1d7e76['length'];_0x806576++){const _0x19bd9f=_0x1d7e76[_0x806576];let _0x38c1d2=!0x1;for(const _0x2165c9 of Object['keys'](_0x19bd9f))void 0x0===_0x19bd9f[_0x2165c9]?delete _0x19bd9f[_0x2165c9]:'id'!==_0x2165c9&&(_0x38c1d2=!0x0);_0x38c1d2||(_0x1d7e76[_0x806576]=null);}if(_0x1d7e76=_0x1d7e76['filter'](_0x1ca83a=>null!==_0x1ca83a),!_0x1d7e76['length'])return;for(let _0x199cc4=0x0;_0x199cc4<_0x1d7e76['length'];_0x199cc4++){const _0x122b9e=_0x1d7e76[_0x199cc4];void 0x0!==_0x122b9e['fromVersion']&&void 0x0===_0x122b9e['toVersion']&&(_0x122b9e['toVersion']=this['repository']['getRevision'](_0x122b9e['id'])['toVersion']),void 0x0!==_0x122b9e['toVersion']&&void 0x0===_0x122b9e['fromVersion']&&(_0x122b9e['fromVersion']=this['repository']['getRevision'](_0x122b9e['id'])['fromVersion']);}const _0x2deaca=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1d7e76,_0x2deaca)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1fe2b4=>{if(_0x1fe2b4){for(const _0xc20de4 of _0x1fe2b4)this['setRevisionData']({'id':_0xc20de4['id'],'createdAt':_0xc20de4['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xe4a59d,_0x353fe9){let _0x33f652=this['editor']['config']['get']('initialData'),_0x3c833=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x33f652){_0x33f652={};for(const _0x4f2881 of this['editor']['model']['document']['getRootNames']())_0x33f652[_0x4f2881]='';}if('string'==typeof _0x33f652&&(_0x33f652={'main':_0x33f652}),void 0x0===_0x3c833){_0x3c833={};for(const _0x42bd50 of this['editor']['model']['document']['getRootNames']())_0x3c833[_0x42bd50]={};}let _0x4f1b0a=!0x1;const _0x4ae45d=Object['keys'](_0x33f652),_0x590ea4=Object['keys'](_0xe4a59d);for(const _0x5a8a9f of _0x4ae45d){if(_0x33f652[_0x5a8a9f]!==_0xe4a59d[_0x5a8a9f]&&''!==_0x33f652[_0x5a8a9f]['trim']()){_0x4f1b0a=!0x0;break;}if(!_0xf460ad(_0x3c833[_0x5a8a9f],_0x353fe9[_0x5a8a9f])&&Object['keys'](_0x3c833[_0x5a8a9f])['length']>0x0){_0x4f1b0a=!0x0;break;}}_0x4f1b0a||(_0x4f1b0a=_0x590ea4['some'](_0x4118d1=>!this['editor']['model']['document']['getRoot'](_0x4118d1))),_0x4f1b0a&&_0x320a3b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x33f652,'editorRootsAttributes':_0x3c833,'revisionData':_0xe4a59d,'revisionRootsAttributes':_0x353fe9}),this['editor']['config']['set']('initialData',_0xe4a59d),this['editor']['config']['set']('rootsAttributes',_0x353fe9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x560353=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x560353['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x28f796){const _0x583c29=this['repository']['getRevisions']();_0x583c29['reverse']();let _0x557590=0x0;for(;_0x557590<_0x583c29['length'];){const _0x14b778=_0x583c29[_0x557590];if(_0x14b778===this['currentRevision']){_0x557590++;continue;}if(_0x14b778['id']===this['_initialRevisionId'])break;const _0xb738e0=_0x28f796['toVersion']-_0x14b778['toVersion']||_0x28f796['fromVersion']-_0x14b778['fromVersion'];if(_0xb738e0>0x0)break;if(_0xb738e0<0x0)_0x557590++;else{if(!_0x28f796['creator']&&_0x14b778['creator'])break;if(_0x14b778['creator']||!_0x28f796['creator']){if(_0x28f796['createdAt']>_0x14b778['createdAt'])break;_0x557590++;}else _0x557590++;}}return _0x557590;}['setRevisionData'](_0x5e442a){const _0x31fde8=this['repository']['getRevision'](_0x5e442a['id']);if(_0x5e442a['createdAt']&&(_0x5e442a['createdAt']=new Date(_0x5e442a['createdAt'])),_0x5e442a['authorsIds']){const _0x3066d2=this['editor']['plugins']['get']('Users');_0x5e442a['authors']=_0x5e442a['authorsIds']['map'](_0x313160=>_0x3066d2['getUser'](_0x313160));}_0x31fde8['_update'](_0x5e442a,!0x0);}['buildRevisionData']({revision:_0x20db19=null,from:_0x4e5a95=null,to:_0x2462b9=null}){_0x4e5a95=null!==_0x4e5a95?_0x4e5a95:_0x20db19['fromVersion'],_0x2462b9=null!==_0x2462b9?_0x2462b9:_0x20db19['toVersion'];const _0x314554=this['_revisionDataBuilder']['getData'](_0x4e5a95,_0x2462b9),_0x1c7f36={'diffData':_0x314554['diffData'],'authorsIds':_0x314554['authorsIds'],'fromVersion':_0x4e5a95,'toVersion':_0x2462b9};if(!_0x20db19||_0x2462b9!==_0x20db19['toVersion']){const _0x50e886=_0x2462b9-0x1,_0x175ed7=this['_source']['history']['getOperation'](_0x50e886);_0x1c7f36['createdAt']=_0x175ed7&&_0x175ed7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e5a95===this['_loadedStateData']['fromVersion']){for(const _0x2d1d8 of this['_loadedStateData']['authors'])_0x1c7f36['authorsIds']['includes'](_0x2d1d8['id'])||_0x1c7f36['authorsIds']['push'](_0x2d1d8['id']);}return _0x1c7f36;}['_loadRevisionData'](_0x49c4bf){if(!_0x49c4bf||_0x49c4bf['diffData'])return Promise['resolve']();{const _0x5e1561=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5e1561,'revisionId':_0x49c4bf['id']})['then'](_0x158054=>{_0x49c4bf['diffData']=_0x158054['diffData'];});}}['_bufferUpdate'](_0x47617c,_0x30a90b,_0x267c0b){if(this['_bufferedUpdates']['has'](_0x47617c)){const _0x3ec4a8=this['_bufferedUpdates']['get'](_0x47617c);_0x30a90b=_0x267c0b?{..._0x3ec4a8,..._0x30a90b}:{..._0x30a90b,..._0x3ec4a8};}this['_bufferedUpdates']['set'](_0x47617c,_0x30a90b);}['_getFromVersion'](_0x4c23ac){const _0x37c4a7=this['repository']['getRevisions']();_0x37c4a7['reverse'](),_0x37c4a7['shift']();const _0x48a91b=_0x37c4a7['find'](_0x168bb6=>_0x168bb6['toVersion']<=_0x4c23ac)['toVersion'];return _0x48a91b<this['_startingVersion']?this['_startingVersion']:_0x48a91b;}['_createInitialRevision'](_0x5ce619){const _0x32e0aa=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x32e0aa)this['_initialRevisionId']=_0x32e0aa['id'];else{const _0x5d93d4=!this['editor']['model']['document']['roots']['find'](_0x399d37=>this['editor']['model']['hasContent'](_0x399d37)),_0xfa8534=this['editor']['plugins']['get']('Users')['me']['id'],_0x501c53=R(this['editor']['locale'],_0x5d93d4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5ce619,'to':_0x5ce619,'id':this['_initialRevisionId'],'name':_0x501c53,'creatorId':_0xfa8534});}}['_createCurrentRevision'](_0x5eb640){const _0x1466fb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1466fb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5eb640,'to':_0x5eb640,'id':_0x1466fb,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4a8d3c,from:_0xae28c6,to:_0x3c3c62,creatorId:_0x4669ee,id:_0x15bb9f}){const _0x2ab37c=this['buildRevisionData']({'from':_0xae28c6,'to':_0x3c3c62});_0x2ab37c['name']=_0x4a8d3c,_0x2ab37c['creatorId']=_0x4669ee,_0x2ab37c['id']=_0x15bb9f;const _0x16ce4a=this['addRevisionData'](_0x2ab37c);return this['adapter']&&this['_bufferUpdate'](_0x2ab37c['id'],_0x2ab37c,!0x0),_0x16ce4a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4f760a){return(_0x4f760a=_0x4f760a['filter'](_0x585e26=>!_0x585e26['name']||'revision-start'!==_0x585e26['name']&&'revision-end'!==_0x585e26['name']))['forEach'](_0x222b0e=>{'string'!=typeof _0x222b0e&&(_0x222b0e['children']=this['_removeRevisionMarkers'](_0x222b0e['children']),_0x222b0e['attributes']=_0x222b0e['attributes']['filter'](_0x4b57ce=>!_0x4b57ce[0x0]['startsWith']('data-revision-')));}),_0x4f760a;}}function V(_0x563f52,_0x5f5c22){const _0x472d7a=_0x5f5c22['editing']['view']['document'];if('string'==typeof _0x563f52)return new _0x5b9193(_0x472d7a,_0x563f52);{const _0x3e1c1a=_0x563f52['children']['map'](_0x42053b=>V(_0x42053b,_0x5f5c22));return new(C[_0x563f52['type']]||_0x3ff468)(_0x472d7a,_0x563f52['name'],_0x563f52['attributes'],_0x3e1c1a);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x24541f){this['editor']=_0x24541f,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'](_0x28002b){this['source']=_0x28002b;const _0x38ac9c=new Map(),_0x5c8e57=new Map(),_0x5a3c3f=this['editor']['model']['document']['roots']['map'](_0x3d2590=>_0x3d2590['rootName']);for(const _0x4cb64a of _0x5a3c3f){const _0x445a69=this['editor']['model']['document']['getRoot'](_0x4cb64a),_0x4a30c5=F(_0x445a69);_0x38ac9c['set'](_0x4cb64a,_0x4a30c5),_0x5c8e57['set'](_0x4cb64a,Object['fromEntries'](_0x445a69['getAttributes']()));}const _0x38af73=Array['from'](this['editor']['model']['markers'])['map'](_0x5a1ed6=>[_0x5a1ed6['name'],_0x5a1ed6['getRange']()]),_0x388808=this['source']['version'];this['_saveMetaData'](_0x388808,_0x38ac9c,_0x38af73,_0x5c8e57),this['_startingRevisionId']=this['_revisionId'];const _0x198437=new Map(),_0x56a9e2=new Map();for(const _0x5d18a0 of _0x5a3c3f){const _0x595040=B(_0x5d18a0);_0x198437['set'](_0x5d18a0,_0x595040),_0x56a9e2['set'](_0x5d18a0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x198437,[],_0x56a9e2);}['getData'](_0x36dfcf,_0xb0c92c){if(this['_lastFrom']===_0x36dfcf&&this['_lastTo']<=_0xb0c92c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xb0c92c,!0x0);else{if(!this['_savedMetaData']['has'](_0x36dfcf)){const _0x560a81=this['_getPreviousFrom'](_0x36dfcf);this['_calculateMetaData'](_0x560a81,_0x36dfcf,!0x1);}this['_calculateMetaData'](_0x36dfcf,_0xb0c92c,!0x0);}return this['_lastFrom']=_0x36dfcf,this['_lastTo']=_0xb0c92c,this['_getState']();}['loadState'](_0x53d8fe){this['_reset'](),this['_lastFrom']=_0x53d8fe['fromVersion'],this['_lastTo']=_0x53d8fe['toVersion'];for(const _0xd98a42 in _0x53d8fe['diffData']){const _0x251172=_0x53d8fe['diffData'][_0xd98a42]['attachChange'],_0x238f86=_0xd15063(_0x53d8fe['diffData'][_0xd98a42]['attributesBefore'])||{},_0xf436e7=this['_makeModelFromViewString'](_0x53d8fe['diffData'][_0xd98a42]['deletions']);_0xf436e7['rootName']=_0xd98a42,_0xf436e7['_isAttached']=!_0x251172||!_0x251172['isAttached'],_0xf436e7['isAttached']=()=>_0xf436e7['_isAttached'],this['_baseRoots']['set'](_0xd98a42,_0xf436e7),this['_baseRootsAttributes']['set'](_0xd98a42,_0x238f86),_0x251172&&this['_touchedRoots']['set'](_0xd98a42,_0x251172);const _0xa55aed=this['_makeIdsRoot'](_0xf436e7);this['_baseIdsRoots']['set'](_0xd98a42,_0xa55aed);for(const [_0x33a898,_0x5732f8]of _0xf436e7['markers']){if(!_0x33a898['startsWith']('revision:'))continue;const _0x297b4f=_0x33a898['split'](':')[0x2];for(const _0x1b6e0f of _0x5732f8['getWalker']({'singleCharacters':!0x0})){const _0x17fd5f=this['_getVidAttributeName'](_0x1b6e0f),_0x59d79a='elementEnd'==_0x1b6e0f['type']?_0x1b6e0f['previousPosition']['path']['slice'](0x0,-0x1):_0x1b6e0f['previousPosition']['path'],_0x2328c1=_0xa55aed['getNodeByPath'](_0x59d79a)['getAttribute'](_0x17fd5f);this['_touched']['set'](_0x2328c1,{'userId':_0x297b4f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x162757=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4eef4c=>!this['_touched']['has'](_0x4eef4c));let _0x27e0bf=0x0;const _0xb57577=new Map();for(const _0x529e45 in _0x53d8fe['diffData']){const _0x570621=_0x53d8fe['diffData'][_0x529e45]['attachChange'],_0xd5021c=_0xd15063(_0x53d8fe['diffData'][_0x529e45]['attributesAfter'])||{},_0x5b2118=this['_makeModelFromViewString'](_0x53d8fe['diffData'][_0x529e45]['insertions']);_0x5b2118['rootName']=_0x529e45,_0x5b2118['_isAttached']=!_0x570621||_0x570621['isAttached'],_0x5b2118['isAttached']=()=>_0x5b2118['_isAttached'],this['_diffRoots']['set'](_0x529e45,_0x5b2118),this['_diffRootsAttributes']['set'](_0x529e45,_0xd5021c);const _0x582a92=this['_makeIdsRoot'](_0x5b2118,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x529e45,_0x582a92),_0xb57577['set'](_0x529e45,_0x5b2118['isAttached']()?_0xd5021c:{});for(const [_0x28983e,_0xe375d9]of _0x5b2118['markers']){if(!_0x28983e['startsWith']('revision:'))continue;const _0x256872=_0x28983e['split'](':')[0x2];for(const _0x346b7f of _0xe375d9['getWalker']({'singleCharacters':!0x0})){const _0x29bef0=this['_getVidAttributeName'](_0x346b7f),_0x5a13be=this['_revisionId']++,_0x14d471='elementEnd'==_0x346b7f['type']?_0x346b7f['previousPosition']['path']['slice'](0x0,-0x1):_0x346b7f['previousPosition']['path'];_0x582a92['getNodeByPath'](_0x14d471)['_setAttribute'](_0x29bef0,_0x5a13be),this['_touched']['set'](_0x5a13be,{'userId':_0x256872});}}for(const _0x17e592 of this['editor']['model']['createRangeIn'](_0x5b2118)['getWalker']({'singleCharacters':!0x0})){const _0xe502fd=this['_getVidAttributeName'](_0x17e592),_0x228be5='elementEnd'==_0x17e592['type']?_0x17e592['previousPosition']['path']['slice'](0x0,-0x1):_0x17e592['previousPosition']['path'],_0x201243=_0x582a92['getNodeByPath'](_0x228be5);_0x201243['getAttribute'](_0xe502fd)>0x0||_0x201243['_setAttribute'](_0xe502fd,_0x162757[_0x27e0bf++]);}for(const [_0x10f6d7,_0xe53e22]of _0x5b2118['markers'])_0x10f6d7['startsWith']('revision:')||this['_markers']['set'](_0x10f6d7,_0xe53e22);}const _0x17ddbe=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x17ddbe),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x17ddbe,0x1));const _0x40f33c=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x40f33c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x40f33c,0x1));const _0x105fa6=Array['from'](this['_diffRoots'])['map'](([_0x102baf,_0x377fa6])=>[_0x102baf,F(_0x377fa6)]);this['_saveMetaData'](this['_lastTo'],_0x105fa6,this['_markers'],_0xb57577);}['_makeModelFromViewString'](_0xdc683a){const _0x66104e=JSON['parse'](_0xdc683a),_0x353f86=this['editor']['editing']['view']['document'],_0x56d0a8=new _0x30434f(_0x353f86,_0x66104e['map'](_0x1aa266=>V(_0x1aa266,this['editor'])));return this['editor']['data']['toModel'](_0x56d0a8);}['_saveMetaData'](_0x206b41,_0x5b1cd4,_0x4e5dd7,_0xf43cc1){const _0x22eb59=new Map(_0x5b1cd4),_0x2cc01c=new Map(_0xd15063(_0xf43cc1)),_0x1e3cc5=new Map();for(const [_0x515dbc,_0x234db3]of _0x4e5dd7)_0x1e3cc5['set'](_0x515dbc,{'start':_0x234db3['start']['clone'](),'end':_0x234db3['end']['clone'](),'rootName':_0x234db3['root']['rootName']});this['_savedMetaData']['set'](_0x206b41,{'roots':_0x22eb59,'markers':_0x1e3cc5,'rootsAttributes':_0x2cc01c});}['_removeMetaData'](_0x4c035a){this['_savedMetaData']['delete'](_0x4c035a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x3677e2,_0x49fb74=null){let _0x20f99c=null;_0x3677e2['is']('documentFragment')||(_0x20f99c=new ft(_0x3677e2['name'],{'vid_start':null===_0x49fb74?this['_revisionId']++:_0x49fb74++}));const _0x38eb22=[];for(const _0x4cbb54 of _0x3677e2['getChildren']())if(_0x4cbb54['is']('element')){_0x38eb22['push'](this['_makeIdsRoot'](_0x4cbb54,_0x49fb74));const _0x493f12=_0x38eb22[_0x38eb22['length']-0x1];null!==_0x49fb74&&(_0x49fb74=_0x493f12['is']('element','$text')?_0x493f12['getAttribute']('vid')+0x1:_0x493f12['getAttribute']('vid_end')+0x1);}else{for(let _0x5f3f49=0x0;_0x5f3f49<_0x4cbb54['offsetSize'];_0x5f3f49++)_0x38eb22['push'](new ft('$text',{'vid':null===_0x49fb74?this['_revisionId']++:_0x49fb74++}));}if(_0x3677e2['is']('documentFragment')){const _0x16fe45=B(_0x3677e2['rootName']);return _0x16fe45['_insertChild'](0x0,_0x38eb22),_0x16fe45;}return _0x20f99c['_setAttribute']('vid_end',null===_0x49fb74?this['_revisionId']++:_0x49fb74++),_0x20f99c['_insertChild'](0x0,_0x38eb22),_0x20f99c;}['_calculateMetaData'](_0x43cc2a,_0x3a260d,_0x3d3442){this['_reset']();const {roots:_0x17a079,markers:_0x416817,rootsAttributes:_0x42596f}=this['_savedMetaData']['get'](_0x43cc2a);this['_baseRoots']=new Map(_0x17a079),this['_baseRootsAttributes']=new Map(_0xd15063(_0x42596f));for(const [_0xd81ae0,_0x27d165]of this['_baseRoots'])if('$graveyard'!==_0xd81ae0&&(this['_diffRoots']['set'](_0xd81ae0,F(_0x27d165)),this['_diffRootsAttributes']=new Map(_0xd15063(_0x42596f)),_0x3d3442)){const _0x1f2d77=this['_revisionId'];this['_idsRoots']['set'](_0xd81ae0,this['_makeIdsRoot'](_0x27d165)),this['_baseIdsRoots']['set'](_0xd81ae0,this['_makeIdsRoot'](_0x27d165,_0x1f2d77));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3d3442&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1f0dc8,_0x41884f]of _0x416817){const _0x74f1a5=this['_baseRoots']['get'](_0x41884f['rootName']),_0x35d859=this['_diffRoots']['get'](_0x41884f['rootName']),_0x2931a3=new vt(this['_fixPosition'](_0x41884f['start'],_0x74f1a5),this['_fixPosition'](_0x41884f['end'],_0x74f1a5)),_0x49efc3=this['_fixRange'](_0x2931a3,_0x35d859);_0x74f1a5['markers']['set'](_0x1f0dc8,_0x2931a3),this['_markers']['set'](_0x1f0dc8,_0x49efc3);}this['_applyOperations'](_0x43cc2a,_0x3a260d,_0x3d3442);}['_applyOperations'](_0x4f7133,_0x1554b1,_0x1d065a){for(const _0x5884e5 of this['source']['getOperations'](_0x4f7133,_0x1554b1))this['_handleOperation'](_0x5884e5,_0x1d065a);for(const _0x13245d of this['_diffRoots']['values']())_0x13245d['markers']['clear']();for(const [_0x2878eb,_0x28fc50]of this['_markers']){this['_diffRoots']['get'](_0x28fc50['root']['rootName'])['markers']['set'](_0x2878eb,_0x28fc50['clone']());}const _0x48b161=new Map(),_0x2c4f01=new Map();for(const [_0x1cd86d,_0x2c072a]of this['_diffRoots'])_0x48b161['set'](_0x1cd86d,F(_0x2c072a)),_0x2c4f01['set'](_0x1cd86d,this['_diffRootsAttributes']['get'](_0x1cd86d));this['_saveMetaData'](_0x1554b1,_0x48b161,this['_markers'],_0x2c4f01);}['_getPreviousFrom'](_0x3de369){const _0x1d087c=Array['from'](this['_savedMetaData']['keys']());_0x1d087c['sort']((_0x50de8c,_0x860ca9)=>_0x50de8c-_0x860ca9),_0x1d087c['reverse']();for(const _0x1b25be of _0x1d087c)if(_0x1b25be<_0x3de369)return _0x1b25be;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x229e18,_0x1bfbbe){const _0x35c6e6=Array['from'](_0x1bfbbe['markers'])['map'](([_0x301e36,_0x83f688])=>[_0x301e36,this['_fixRange'](_0x83f688,_0x229e18)]);_0x229e18['markers']=new Map(_0x35c6e6);}['_transformMarkers'](_0x430535){for(const _0x3ccbd5 of this['_markers']['values']()){const _0x435368=_0x3ccbd5['getTransformedByOperation'](_0x430535),_0x457937=vt['_createFromRanges'](_0x435368);_0x3ccbd5['start']=_0x457937['start'],_0x3ccbd5['end']=_0x457937['end'];}}['_handleOperation'](_0xbc77ff,_0x251fb7){if('addRoot'!=_0xbc77ff['type']&&'detachRoot'!=_0xbc77ff['type']){if('insert'==_0xbc77ff['type']){const _0x181047=_0xbc77ff['position']['root']['rootName'];this['_diffRoots']['has'](_0x181047)||(this['_diffRoots']['set'](_0x181047,B(_0x181047,!0x0)),this['_diffRootsAttributes']['set'](_0x181047,{}),_0x251fb7&&this['_idsRoots']['set'](_0x181047,B(_0x181047,!0x0)));}else{if('addRootAttribute'==_0xbc77ff['type']||'removeRootAttribute'==_0xbc77ff['type']||'changeRootAttribute'==_0xbc77ff['type'])return void this['_handleRootAttributeOperation'](_0xbc77ff);'marker'==_0xbc77ff['type']&&this['_handleMarkerOperation'](_0xbc77ff);}if('marker'!==_0xbc77ff['type']){const _0xdefa37=this['_cloneOperation'](_0xbc77ff,this['_diffRoots']);_0xdefa37['_execute'](),this['_transformMarkers'](_0xdefa37);}if(_0x251fb7)switch(_0xbc77ff['type']){case'insert':this['_handleInsertOperation'](_0xbc77ff);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xbc77ff);break;case'merge':this['_handleMergeOperation'](_0xbc77ff);break;case'split':this['_handleSplitOperation'](_0xbc77ff);}}else this['_handleRootOperation'](_0xbc77ff,_0x251fb7);}['_cloneOperation'](_0x42f707,_0x12c45e){const _0x2ac3d3=_0x42f707['clone']();return _0x2ac3d3['_authorId']=_0x42f707['_authorId'],this['_fixOperation'](_0x2ac3d3,_0x12c45e),_0x2ac3d3;}['_getBaseVids'](_0x7018a3){return _0x7018a3['map'](_0x529f95=>{const _0x28a456=this['_getVidAttributeName'](_0x529f95);return Number(_0x529f95['item']['getAttribute'](_0x28a456));});}['_generateTape'](_0x1bd8e7,_0x5e9c40){if(_0x1bd8e7['is']('element','$text'))_0x5e9c40['push']({'item':_0x1bd8e7,'type':'text'});else{_0x1bd8e7['is']('element')&&_0x5e9c40['push']({'item':_0x1bd8e7,'type':'elementStart'});for(const _0x1477c7 of _0x1bd8e7['getChildren']())this['_generateTape'](_0x1477c7,_0x5e9c40);_0x1bd8e7['is']('element')&&_0x5e9c40['push']({'item':_0x1bd8e7,'type':'elementEnd'});}return _0x5e9c40;}['_getState'](){const _0x5a1db7=new Map(this['_touched']),_0x169da6=new Map(_0x5a1db7),_0x2b4b65=new Map(),_0x203df6={'insertions':{},'deletions':{}},_0x21bfc4={'insertions':{},'deletions':{}},_0x199bec=new Map(),_0x164801=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x164801['delete']('$graveyard');for(const _0x35157b of _0x164801){const _0x417bf6=this['_diffRoots']['get'](_0x35157b)||B(_0x35157b,!0x1),_0x5e09ed=this['_baseRoots']['get'](_0x35157b)||B(_0x35157b,!0x1);_0x417bf6['isAttached']()||_0x5e09ed['isAttached']()?(_0x203df6['insertions'][_0x35157b]=F(_0x417bf6),_0x203df6['deletions'][_0x35157b]=F(_0x5e09ed),this['_copyMarkers'](_0x203df6['deletions'][_0x35157b],_0x5e09ed),this['_copyMarkers'](_0x203df6['insertions'][_0x35157b],_0x417bf6),_0x21bfc4['insertions'][_0x35157b]=this['_generateTape'](this['_idsRoots']['get'](_0x35157b),[]),_0x21bfc4['deletions'][_0x35157b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x35157b)||B(_0x35157b,!0x1),[])):_0x164801['delete'](_0x35157b);}for(const _0x3c115d of _0x164801){const _0x3d56a4=_0x21bfc4['insertions'][_0x3c115d];for(const _0x5739d7 of _0x3d56a4){const _0x39265a=this['_getVidAttributeName'](_0x5739d7),_0x150980=_0x5739d7['item']['getAttribute'](_0x39265a);_0x169da6['delete'](_0x150980),_0x150980>=this['_startingRevisionId']&&_0x2b4b65['set'](_0x150980,_0x5a1db7['get'](_0x150980));}}for(const _0x51595f of _0x164801){const _0x74368e=_0x21bfc4['insertions'][_0x51595f],_0x32d194=this['_getBaseVids'](_0x21bfc4['deletions'][_0x51595f]);let _0x11577c=0x0;for(const _0x871ce0 of _0x74368e){const _0x95a981=this['_getVidAttributeName'](_0x871ce0),_0x145f43=_0x871ce0['item']['getAttribute'](_0x95a981);if(!_0x2b4b65['has'](_0x145f43)&&!_0x199bec['has'](_0x145f43)){if(_0x169da6['has'](_0x145f43))_0x11577c++;else{if(_0x145f43!=_0x32d194[_0x11577c]){const _0x1b62e6=_0x5a1db7['get'](_0x145f43)||_0x5a1db7['get'](_0x32d194[_0x11577c]);for(;_0x145f43!=_0x32d194[_0x11577c];)_0x169da6['has'](_0x32d194[_0x11577c])||(_0x199bec['set'](_0x32d194[_0x11577c],_0x1b62e6),_0x5a1db7['set'](_0x32d194[_0x11577c],_0x1b62e6)),_0x11577c++;}_0x11577c++;}}}}for(const _0x11f9b0 of _0x164801){const _0x35f8e6=_0x21bfc4['insertions'][_0x11f9b0];for(const _0x364158 of _0x35f8e6){const _0x3c105b=this['_getVidAttributeName'](_0x364158),_0x2e1cd6=_0x364158['item']['getAttribute'](_0x3c105b);if(_0x199bec['has'](_0x2e1cd6)){const _0xde6226=_0x199bec['get'](_0x2e1cd6);_0x169da6['has'](_0x2e1cd6)||_0x169da6['set'](_0x2e1cd6,{..._0xde6226}),_0x2b4b65['set'](_0x2e1cd6,{..._0xde6226});}}}for(const _0xcec316 of _0x169da6['keys']())_0xcec316>=this['_startingRevisionId']&&_0x169da6['delete'](_0xcec316);const _0x9d684b=new Map();for(const _0x22a4bc of _0x164801){let _0x145755=_0x21bfc4['insertions'][_0x22a4bc];for(const _0x41e486 of _0x145755)if(_0x41e486['item']['is']('element','tableCell')){const _0x1d9d1b=this['_getVidAttributeName'](_0x41e486),_0x2afb78=_0x41e486['item']['getAttribute'](_0x1d9d1b);if(_0x2b4b65['has'](_0x2afb78)){const _0x4ac1f3=_0x41e486['item']['parent']['parent']['getAttribute']('vid_start'),_0x50241c=_0x9d684b['get'](_0x4ac1f3)||new Set();_0x50241c['add'](_0x2b4b65['get'](_0x2afb78)['userId']),_0x9d684b['set'](_0x4ac1f3,_0x50241c);}}_0x145755=_0x21bfc4['deletions'][_0x22a4bc];for(const _0xa5407f of _0x145755)if(_0xa5407f['item']['is']('element','tableCell')){const _0x5b1377=this['_getVidAttributeName'](_0xa5407f),_0x5f3ee7=_0xa5407f['item']['getAttribute'](_0x5b1377);if(_0x169da6['has'](_0x5f3ee7)){const _0xcea671=_0xa5407f['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ce4d=_0x9d684b['get'](_0xcea671)||new Set();_0x4ce4d['add'](_0x169da6['get'](_0x5f3ee7)['userId']),_0x9d684b['set'](_0xcea671,_0x4ce4d);}}for(const _0x2be9c1 of _0x9d684b['keys']())(_0x2b4b65['has'](_0x2be9c1)||_0x169da6['has'](_0x2be9c1))&&_0x9d684b['delete'](_0x2be9c1);}for(const _0x2d50ab of _0x164801){const _0xc9520e=_0x21bfc4['insertions'][_0x2d50ab];let _0x184e98=null,_0x27c93f=null;for(const _0x148679 of _0xc9520e){const _0xf4a7ef=this['_getVidAttributeName'](_0x148679),_0x12f8ee=_0x148679['item']['getAttribute'](_0xf4a7ef),_0x3d3c5f=_0x9d684b['get'](_0x12f8ee);_0x3d3c5f&&'elementStart'==_0x148679['type']&&(_0x184e98=Array['from'](_0x3d3c5f)[0x0],_0x27c93f=_0x148679['item']['getAttribute']('vid_end')),_0x184e98&&(_0x169da6['set'](_0x12f8ee,{'userId':_0x184e98}),_0x2b4b65['set'](_0x12f8ee,{'userId':_0x184e98})),_0x12f8ee==_0x27c93f&&(_0x184e98=null,_0x27c93f=null);}}const _0x4c991a={},_0x39f86f=new Set();for(const _0x30fd48 of _0x164801){const _0x2050b3=_0x203df6['deletions'][_0x30fd48],_0x3619cf=_0x203df6['insertions'][_0x30fd48];for(const {userId:_0x469cc6}of this['_touchedMarkers']['values']())null!==_0x469cc6&&_0x39f86f['add'](_0x469cc6);for(const {userId:_0x506483}of this['_touchedRoots']['values']())null!==_0x506483&&_0x39f86f['add'](_0x506483);this['_markChanges'](_0x3619cf,_0x21bfc4['insertions'][_0x30fd48],_0x2b4b65,'insertion',_0x39f86f),this['_markChanges'](_0x2050b3,_0x21bfc4['deletions'][_0x30fd48],_0x169da6,'deletion',_0x39f86f),_0x4c991a[_0x30fd48]={'insertions':this['_prepareViewToSave'](_0x3619cf),'deletions':this['_prepareViewToSave'](_0x2050b3),'attachChange':this['_touchedRoots']['get'](_0x30fd48)||null,'attributesBefore':_0xd15063(this['_baseRootsAttributes']['get'](_0x30fd48))||{},'attributesAfter':_0xd15063(this['_diffRootsAttributes']['get'](_0x30fd48))};}return{'diffData':_0x4c991a,'authorsIds':Array['from'](_0x39f86f)};}['_processRootBeforeSave'](_0x272068){for(const [,_0x2ccaf9]of _0x272068['markers']){const _0x402f59=_0x2ccaf9['start']['getAncestors']()['filter'](_0x256785=>'tableCell'==_0x256785['name']);for(const _0x5aa23d of _0x402f59)0x1==_0x5aa23d['childCount']&&_0x5aa23d['getChild'](0x0)['is']('element','paragraph')&&_0x5aa23d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4c4e2d){this['_processRootBeforeSave'](_0x4c4e2d);const _0xbdf34f=this['editor']['data']['toView'](_0x4c4e2d,{}),_0x1910ac=Array['from'](_0xbdf34f['getChildren']())['map'](_0x51d4a8=>this['_getViewJson'](_0x51d4a8));return JSON['stringify'](_0x1910ac);}['_getViewJson'](_0x231782){if(_0x231782['is']('$text'))return _0x231782['data'];{const _0x180c44=_0x231782;return{'type':Object['keys'](C)['find'](_0x24512a=>_0x231782 instanceof C[_0x24512a]),'name':_0x180c44['name'],'attributes':Array['from'](_0x180c44['getAttributes']()),'children':Array['from'](_0x180c44['getChildren']())['map'](_0x417945=>this['_getViewJson'](_0x417945))};}}['_markChanges'](_0x503de1,_0x27c5b4,_0x29ec93,_0x2d4fab,_0x5508e4){let _0x3c317a=null,_0x1b056e=null,_0x576476=0x0;const _0x20540e=this['editor']['model'];for(let _0x2bace4=0x0;_0x2bace4<_0x27c5b4['length'];_0x2bace4++){const _0x51ab31=this['_getVidAttributeName'](_0x27c5b4[_0x2bace4]),_0x5acfe1=_0x27c5b4[_0x2bace4]['item']['getAttribute'](_0x51ab31),_0x2c1408=_0x29ec93['get'](_0x5acfe1),_0x54032f=_0x2bace4==_0x27c5b4['length']-0x1;(!_0x3c317a&&_0x2c1408&&(_0x3c317a=_0x2c1408,_0x1b056e=_0x27c5b4[_0x2bace4]),_0x3c317a&&(!_0x2c1408||_0x2c1408['userId']!=_0x3c317a['userId']))&&(_0x2a9af0(_0x2c1408,J(_0x1b056e,_0x503de1,_0x20540e),J(_0x27c5b4[_0x2bace4],_0x503de1,_0x20540e)),_0x3c317a=_0x2c1408||null,_0x1b056e=_0x2c1408?_0x27c5b4[_0x2bace4]:null),_0x3c317a&&_0x54032f&&_0x2a9af0(_0x2c1408,J(_0x1b056e,_0x503de1,_0x20540e),q(_0x27c5b4[_0x2bace4],_0x503de1,_0x20540e));}function _0x2a9af0(_0x53a7c9,_0x53bd90,_0x1e2183){const _0x503e44=_0x3c317a['userId'],_0x53eff9='revision:'+_0x2d4fab+':'+_0x503e44+':'+_0x576476++,_0x1346ca=_0x20540e['createRange'](_0x53bd90,_0x1e2183);_0x503de1['markers']['set'](_0x53eff9,_0x1346ca),null!==_0x503e44&&_0x5508e4['add'](_0x503e44);}}['_getVidAttributeName'](_0x38d1ae){switch(_0x38d1ae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x344811,_0x49641d){_0x344811['baseVersion']=null;for(const _0x27c5e0 in _0x344811){const _0x48cd8a=_0x344811[_0x27c5e0];if(_0x48cd8a instanceof gt){const _0x3afd5d=_0x49641d['get'](_0x48cd8a['root']['rootName']);_0x344811[_0x27c5e0]=this['_fixPosition'](_0x48cd8a,_0x3afd5d);}if(_0x48cd8a instanceof vt){const _0x497537=_0x49641d['get'](_0x48cd8a['root']['rootName']);_0x344811[_0x27c5e0]=this['_fixRange'](_0x48cd8a,_0x497537);}'root'===_0x27c5e0&&(_0x344811['root']=_0x49641d['get'](_0x344811['root']['rootName']));}}['_fixRange'](_0x18f54f,_0x4a0ac2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x18f54f['start'],_0x4a0ac2),this['_fixPosition'](_0x18f54f['end'],_0x4a0ac2));}['_fixPosition'](_0x45165d,_0x4afbce){return this['editor']['model']['createPositionFromPath'](_0x4afbce,_0x45165d['path'],_0x45165d['stickiness']);}['_handleInsertOperation'](_0x57b34e){const _0x14b899=this['_idsRoots']['get'](_0x57b34e['position']['root']['rootName']),_0x3351a5=this['_fixPosition'](_0x57b34e['position'],_0x14b899),_0x54735c=null===_0x57b34e['_authorId']?null:_0x57b34e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51e79a=_0x3351a5['parent'],_0x42735c=this['_revisionId'],_0x447c0f=[];for(const _0x308bab of _0x57b34e['nodes'])if(_0x308bab['is']('element'))_0x447c0f['push'](this['_makeIdsRoot'](_0x308bab));else{for(let _0x2f6c1d=0x0;_0x2f6c1d<_0x308bab['offsetSize'];_0x2f6c1d++)_0x447c0f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5a93e4=this['_revisionId'];for(let _0x41e7a5=_0x42735c;_0x41e7a5<_0x5a93e4;_0x41e7a5++)this['_touched']['set'](_0x41e7a5,{'userId':_0x54735c});_0x51e79a['_insertChild'](_0x3351a5['offset'],_0x447c0f);}['_handleMoveOperation'](_0x19926b){(_0x19926b=this['_cloneOperation'](_0x19926b,this['_idsRoots']))['_execute']();const _0xb9d175=null===_0x19926b['_authorId']?null:_0x19926b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5abcc2=_0x19926b['getMovedRangeStart'](),_0xfad0d7=_0x5abcc2['parent'],_0x1caa36=_0x5abcc2['offset'];!function _0x5d5529(_0x5bf133,_0x59f6c6,_0x1f592e,_0x4875fd){for(let _0xf995da=_0x1f592e;_0xf995da<_0x4875fd;_0xf995da++){const _0x36d164=_0x59f6c6['getChild'](_0xf995da);_0x36d164['is']('element','$text')?_0x5bf133['set'](_0x36d164['getAttribute']('vid'),{'userId':_0xb9d175}):(_0x5bf133['set'](_0x36d164['getAttribute']('vid_start'),{'userId':_0xb9d175}),_0x5d5529(_0x5bf133,_0x36d164,0x0,_0x36d164['childCount']),_0x5bf133['set'](_0x36d164['getAttribute']('vid_end'),{'userId':_0xb9d175}));}}(this['_touched'],_0xfad0d7,_0x1caa36,_0x1caa36+_0x19926b['howMany']);}['_handleMergeOperation'](_0x2e77ee){const _0x32c25a=null===(_0x2e77ee=this['_cloneOperation'](_0x2e77ee,this['_idsRoots']))['_authorId']?null:_0x2e77ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c3fe1=_0x2e77ee['targetPosition']['parent'],_0x438dcf=_0x2e77ee['sourcePosition']['parent'],_0x40cb44=_0x4c3fe1['getAttribute']('vid_end'),_0x35b874=_0x438dcf['getAttribute']('vid_start');_0x4c3fe1['_setAttribute']('vid_end',_0x438dcf['getAttribute']('vid_end')),_0x438dcf['_setAttribute']('vid_end',_0x40cb44),this['_touched']['set'](_0x35b874,{'userId':_0x32c25a}),this['_touched']['set'](_0x40cb44,{'userId':_0x32c25a}),_0x2e77ee['_execute']();}['_handleSplitOperation'](_0x5923c1){const _0x5499a3=null===(_0x5923c1=this['_cloneOperation'](_0x5923c1,this['_idsRoots']))['_authorId']?null:_0x5923c1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x725209=_0x5923c1['graveyardPosition'],_0x47b78e=_0x5923c1['splitPosition']['parent'];_0x5923c1['_execute']();const _0x53d347=_0x47b78e['getAttribute']('vid_end'),_0x1b6acd=_0x5923c1['insertionPosition']['nodeAfter'];if(_0x725209){const _0x2118b2=_0x1b6acd['getAttribute']('vid_end'),_0x5401ad=_0x47b78e['getAttribute']('vid_end');_0x47b78e['_setAttribute']('vid_end',_0x2118b2),_0x1b6acd['_setAttribute']('vid_end',_0x5401ad),this['_touched']['set'](_0x47b78e['getAttribute']('vid_end'),{'userId':_0x5499a3}),this['_touched']['set'](_0x1b6acd['getAttribute']('vid_start'),{'userId':_0x5499a3});}else{const _0x4bae47=this['_revisionId']++,_0x2572ef=this['_revisionId']++;_0x47b78e['_setAttribute']('vid_end',_0x4bae47),_0x1b6acd['_setAttribute']('vid_start',_0x2572ef),_0x1b6acd['_setAttribute']('vid_end',_0x53d347),this['_touched']['set'](_0x4bae47,{'userId':_0x5499a3}),this['_touched']['set'](_0x2572ef,{'userId':_0x5499a3});}}['_handleMarkerOperation'](_0x243f6e){if(!_0x243f6e['affectsData'])return;const _0x27ae72=(_0x243f6e=this['_cloneOperation'](_0x243f6e,this['_diffRoots']))['oldRange']?_0x243f6e['oldRange']['root']:null,_0x152afa=_0x243f6e['newRange']?_0x243f6e['newRange']['root']:null;_0x27ae72&&this['_markers']['delete'](_0x243f6e['name']),_0x152afa&&this['_markers']['set'](_0x243f6e['name'],_0x243f6e['newRange']['clone']());const _0x44bfe6=null===_0x243f6e['_authorId']?null:_0x243f6e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d8d80=_0x243f6e['name'];if(!this['_touchedMarkers']['has'](_0x1d8d80))return void this['_touchedMarkers']['set'](_0x1d8d80,{'range':_0x243f6e['oldRange'],'userId':_0x44bfe6});const _0x15d06c=this['_touchedMarkers']['get'](_0x1d8d80),_0x4ba06e=_0x15d06c['range'],_0x3e8211=_0x243f6e['newRange'];null==_0x4ba06e&&null==_0x3e8211||_0x4ba06e&&_0x3e8211&&_0x4ba06e['isEqual'](_0x3e8211)?this['_touchedMarkers']['delete'](_0x243f6e['name']):_0x15d06c['userId']=_0x44bfe6;}['_handleRootOperation'](_0x56bbca,_0x1af674){this['_diffRoots']['has'](_0x56bbca['rootName'])?this['_diffRoots']['get'](_0x56bbca['rootName'])['_isAttached']=_0x56bbca['isAdd']:(this['_diffRoots']['set'](_0x56bbca['rootName'],B(_0x56bbca['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x56bbca['rootName'],{}),_0x1af674&&this['_idsRoots']['set'](_0x56bbca['rootName'],B(_0x56bbca['rootName'],!0x0)));const _0x3c65dd=null===_0x56bbca['_authorId']?null:_0x56bbca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10f74f=this['_touchedRoots']['get'](_0x56bbca['rootName']);_0x10f74f&&_0x10f74f['userId']===_0x3c65dd?this['_touchedRoots']['delete'](_0x56bbca['rootName']):this['_touchedRoots']['set'](_0x56bbca['rootName'],{'userId':_0x3c65dd,'isAttached':_0x56bbca['isAdd']});}['_handleRootAttributeOperation'](_0x3cf4f4){const _0xbea939=this['_diffRootsAttributes']['get'](_0x3cf4f4['root']['rootName']);null===_0x3cf4f4['newValue']?delete _0xbea939[_0x3cf4f4['key']]:_0xbea939[_0x3cf4f4['key']]=_0x3cf4f4['newValue'];}}function F(_0x3944d1){const _0x3ff8c0=B(_0x3944d1['rootName'],_0x3944d1['isAttached']());for(const _0x3c5f1f of _0x3944d1['getChildren']()){const _0x40c57b=_0x3c5f1f['_clone'](!0x0);_0x3ff8c0['_appendChild'](_0x40c57b);}return _0x3ff8c0;}function B(_0x1abf3c,_0x2116a2=!0x0){const _0x54abfb=new wt();return _0x54abfb['rootName']=_0x1abf3c,_0x54abfb['_isAttached']=_0x2116a2,_0x54abfb['isAttached']=()=>_0x54abfb['_isAttached'],_0x54abfb;}function J(_0x2ead10,_0x11a15b,_0x32c54e){const _0x55e92e='elementEnd'==_0x2ead10['type']?_0x32c54e['createPositionAt'](_0x2ead10['item'],'end'):_0x32c54e['createPositionBefore'](_0x2ead10['item']);return _0x32c54e['createPositionFromPath'](_0x11a15b,_0x55e92e['path'],_0x55e92e['stickiness']);}function q(_0x483a0c,_0x14c205,_0x537390){const _0x2a5fbe='elementStart'==_0x483a0c['type']?_0x537390['createPositionAt'](_0x483a0c['item'],0x0):_0x537390['createPositionAfter'](_0x483a0c['item']);return _0x537390['createPositionFromPath'](_0x14c205,_0x2a5fbe['path'],_0x2a5fbe['stickiness']);}class ns extends _0x4f4dcf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x38c630,_0x3b0c64){super(_0x38c630),this['focusTracker']=new _0x20319a(),this['keystrokes']=new _0x3c6629(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3b0c64),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'](),_0x258bed({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x40832a=_0xc53dc7=>_0xc53dc7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x40832a),this['keystrokes']['set']('arrowleft',_0x40832a),this['keystrokes']['set']('arrowup',_0x40832a),this['keystrokes']['set']('arrowdown',_0x40832a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3df83f){this['revisionNameInputView']['fieldView']['element']['value']=_0x3df83f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x267ff1){const _0x2198c9=new at(this['locale'],_0x5e8fe9),_0x318b21=_0x2198c9['fieldView'];_0x318b21['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3c50bf=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x267ff1&&(_0x3c50bf+='\x20('+R(this['locale'],'optional')+')'),(_0x2198c9['label']=_0x3c50bf,_0x318b21['on']('input',()=>{this['revisionNameInputValue']=_0x318b21['element']['value']['trim']();}),_0x2198c9);}}class u extends _0x9a5545{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x38a021=this['editor'],_0x446b5b=_0x38a021['plugins']['get']('RevisionTracker');_0x38a021['ui']['componentFactory']['add']('revisionHistory',_0x2a6813=>{const _0x56f1b9=_0x5c06d4(_0x2a6813),_0x475eae=_0x56f1b9['panelView']['children'],_0x315652=new te(_0x2a6813),_0x4126c5=new _0xeca532(_0x2a6813),_0x77fd2f=new _0x18590d(_0x2a6813),_0x2df7f5=new _0xeca532(_0x2a6813),_0x31220b=new _0x18590d(_0x2a6813);return _0x56f1b9['bind']('isEnabled')['to'](_0x446b5b,'isReady',_0x446b5b,'isEnabled',_0x38a021,'isReadOnly',(_0x57e9c2,_0x11d88d,_0x28ab9f)=>_0x57e9c2&&_0x11d88d&&!_0x28ab9f),_0x56f1b9['buttonView']['set']({'icon':_0x25fa55['history'],'label':R(_0x2a6813,'Revision\x20history'),'tooltip':!0x0}),_0x77fd2f['set']({'label':R(_0x2a6813,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x77fd2f['bind']('isEnabled')['to'](_0x446b5b,'isReady',_0x446b5b,'isEnabled',_0x38a021,'isReadOnly',(_0x3abce1,_0x4e0496,_0x2a7d12)=>_0x3abce1&&_0x4e0496&&!_0x2a7d12),_0x77fd2f['on']('execute',()=>this['_showDialog']()),_0x31220b['set']({'label':R(_0x2a6813,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x31220b['bind']('isEnabled')['to'](_0x446b5b,'isReady',_0x38a021,'isReadOnly',(_0x723d4d,_0x5defbe)=>_0x723d4d&&!_0x5defbe),_0x31220b['on']('execute',()=>{_0x38a021['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x56f1b9['isOpen']=!0x1,_0x38a021['editing']['view']['focus']();}),_0x4126c5['children']['add'](_0x77fd2f),_0x2df7f5['children']['add'](_0x31220b),_0x315652['role']='menu',_0x315652['items']['addMany']([_0x4126c5,_0x2df7f5]),_0x475eae['add'](_0x315652),_0x56f1b9;}),_0x38a021['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5b3e9e=this['editor'],_0x33fc12=_0x5b3e9e['locale'],_0x3bba36=new _0x5afccc(_0x33fc12),_0x4a5c05=new _0x1e0c87(_0x33fc12);_0x3bba36['buttonView']['set']({'icon':_0x25fa55['history'],'label':R(_0x33fc12,'Revision\x20history')});const _0x42cce8=new _0x51e979(_0x33fc12,_0x3bba36),_0x32d6d9=new _0x39a7a7(_0x33fc12);_0x32d6d9['set']({'label':R(_0x33fc12,'Save\x20current\x20revision')}),_0x32d6d9['delegate']('execute')['to'](_0x3bba36),_0x32d6d9['on']('execute',()=>{this['_showDialog']();}),_0x42cce8['children']['add'](_0x32d6d9),_0x4a5c05['items']['add'](_0x42cce8);const _0x5d919b=new _0x51e979(_0x33fc12,_0x3bba36),_0x1a9045=new _0x39a7a7(_0x33fc12);return _0x1a9045['set']({'label':R(_0x33fc12,'Open\x20revision\x20history')}),_0x1a9045['delegate']('execute')['to'](_0x3bba36),_0x1a9045['on']('execute',()=>{_0x5b3e9e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5d919b['children']['add'](_0x1a9045),_0x4a5c05['items']['add'](_0x5d919b),_0x3bba36['panelView']['children']['add'](_0x4a5c05),_0x3bba36;}['_showDialog'](){const _0x9bea38=this['editor'],_0x448209=_0x9bea38['locale'],_0x5b0dc9=_0x9bea38['plugins']['get']('Dialog'),_0x49c6ab=_0x9bea38['plugins']['get']('RevisionTracker');function _0x4cdaec(_0x346f10){_0x9bea38['config']['get']('revisionHistory.requireRevisionName')&&''===_0x346f10['revisionName']?_0x346f10['revisionNameInputView']['errorText']=R(_0x448209,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x9bea38['plugins']['get'](l)['saveRevision']({'name':_0x346f10['revisionName']}),_0x5b0dc9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4cdaec(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5b0dc9['show']({'id':'revisionSave','title':R(_0x448209,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x9bea38['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5b0dc9['hide']()},{'label':R(_0x9bea38['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4e0a62){_0x4e0a62['bind']('isEnabled')['to'](_0x49c6ab,'isReady',_0x49c6ab,'isEnabled',_0x9bea38,'isReadOnly',(_0x1dfe4d,_0x109787,_0x14b67f)=>_0x1dfe4d&&_0x109787&&!_0x14b67f);},'onExecute':()=>_0x4cdaec(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x55bb89=this['editor'],_0x430080=_0x55bb89['locale'];this['_saveRevisionFormView']=new ns(_0x430080,_0x55bb89['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x4f4dcf{['changeId'];['_model'];constructor(_0x14bcea,_0x1d6ff5){super(_0x14bcea),this['_model']=_0x1d6ff5,this['changeId']=_0x1d6ff5['id'];const _0x46ce0c=this['bindTemplate'],_0x14cc00=R(_0x14bcea,_0x1d6ff5['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1d6ff5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1d6ff5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x46ce0c['to']('type',_0x387b59=>'ck-revision-change__'+_0x387b59)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x14cc00}]},{'text':'\x20'+_0x1d6ff5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1212e4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x34ae7a){super(),this['id']=_0x34ae7a['id']||_0x1ced54(),this['author']=_0x34ae7a['author'],this['type']=_0x34ae7a['type'],this['data']=_0x34ae7a['data']||{},this['rootName']=_0x34ae7a['rootName'],this['set']('createdAt',_0x34ae7a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1a6426,_0x5c5079){this['newRevisionId']=_0x1a6426,this['oldRevisionId']=_0x5c5079,this['changes']=new _0x2f121a();}['_setChanges'](_0x2e3124){for(const _0x463904 of _0x2e3124)this['changes']['add'](_0x463904);}}const Z={'c':_0x4221dd,'a':_0x414029,'e':_0x452337,'r':_0x3497f3,'u':_0xa39994};class d extends _0x9a5545{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5241b4,_0x613301,j];}constructor(_0x5a8d84){super(_0x5a8d84),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x11459b,_0x51d503,_0x744414)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x567ea1=>{for(const _0x4239cc of this['editor']['editing']['view']['document']['roots'])_0x744414?_0x567ea1['removeClass']('ck-editor__editable__overlay',_0x4239cc):_0x567ea1['addClass']('ck-editor__editable__overlay',_0x4239cc);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x354764=>null!==_0x354764),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xc13487,_0x1c4974,_0x1efadc)=>_0xc13487&&_0x1efadc?_0x1c4974['changes']['getIndex'](_0x1efadc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2570a5,_0x1208f6)=>_0x2570a5?_0x1208f6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x613301);}['init'](){const _0x55ddd2=this['editor'],_0x47df75=new bt(_0x55ddd2,{'direction':'backward'}),_0x25e73a=new bt(_0x55ddd2,{'direction':'forward'});(_0x55ddd2['commands']['add']('showPreviousChange',_0x47df75),_0x55ddd2['commands']['add']('showNextChange',_0x25e73a),_0x55ddd2['commands']['add']('restoreRevision',new yt(_0x55ddd2)),this['on']('change:numberOfChanges',()=>{_0x47df75['refresh'](),_0x25e73a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x55ddd2['enableReadOnlyMode']('revision-viewer'),_0x55ddd2['plugins']['has']('WidgetToolbarRepository'))&&_0x55ddd2['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5f575c){await this['loadRevisionData'](_0x5f575c);const _0x160f72={};for(const _0x4abe9f in _0x5f575c['diffData']){if(_0x5f575c['diffData'][_0x4abe9f]['attachChange']&&!_0x5f575c['diffData'][_0x4abe9f]['attachChange']['isAttached'])continue;const _0x44639f=this['_removeRevisionMarkers'](JSON['parse'](_0x5f575c['diffData'][_0x4abe9f]['insertions'])),_0x2f465a=this['editor']['editing']['view']['document'],_0x196dda=new _0x30434f(_0x2f465a,_0x44639f['map'](_0x5c0ad9=>this['_getViewObj'](_0x5c0ad9)));this['editor']['data']['processor']['useFillerType']('marked'),_0x160f72[_0x4abe9f]=this['editor']['data']['processor']['toData'](_0x196dda),this['editor']['data']['processor']['useFillerType']('default');}return _0x160f72;}async['getRevisionRootsAttributes'](_0x13ca62){await this['loadRevisionData'](_0x13ca62);const _0x377ef7={};for(const _0x213603 in _0x13ca62['diffData'])_0x13ca62['diffData'][_0x213603]['attachChange']&&!_0x13ca62['diffData'][_0x213603]['attachChange']['isAttached']||(_0x377ef7[_0x213603]=_0x13ca62['diffData'][_0x213603]['attributesAfter']||{});return _0x377ef7;}['_removeRevisionMarkers'](_0x1e0c46){return(_0x1e0c46=_0x1e0c46['filter'](_0x535ded=>!_0x535ded['name']||'revision-start'!==_0x535ded['name']&&'revision-end'!==_0x535ded['name']))['forEach'](_0x222cf5=>{'string'!=typeof _0x222cf5&&(_0x222cf5['children']=this['_removeRevisionMarkers'](_0x222cf5['children']),_0x222cf5['attributes']=_0x222cf5['attributes']['filter'](_0x3e9aa8=>!_0x3e9aa8[0x0]['startsWith']('data-revision-')));}),_0x1e0c46;}async['compare'](_0x5d59d4,_0x101049,_0x1f04f5=!0x1){if(!this['isEnabled'])return;const _0x5b64d7=this['diff'],_0x405ae4=this['repository'],_0x33870b='string'==typeof _0x5d59d4?_0x405ae4['getRevision'](_0x5d59d4):_0x5d59d4,_0x470141='string'==typeof _0x101049?_0x405ae4['getRevision'](_0x101049):_0x101049,_0x3a1ac1=_0x33870b['id'],_0x5bc1d5=_0x470141?_0x470141['id']:null;if(!_0x1f04f5&&this['diff']&&this['diff']['newRevisionId']===_0x3a1ac1&&this['diff']['oldRevisionId']===_0x5bc1d5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3a1ac1,_0x5bc1d5);const _0x5ef374=this['_getRevisionsRange'](_0x33870b,_0x470141,!0x0)['map'](_0x330052=>this['loadRevisionData'](_0x330052));return _0x5ef374['push'](new Promise(_0x5cfee3=>{setTimeout(_0x5cfee3,0x14);})),Promise['all'](_0x5ef374)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4e9e21=this['_getDiff'](_0x3a1ac1,_0x5bc1d5);for(const _0x23a8a0 of _0x4e9e21['changes'])this['_changeIdToChange']['set'](_0x23a8a0['id'],_0x23a8a0);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4ed0d6=>{for(const _0xca3d9a of this['editor']['model']['document']['getRootNames']())_0x4ed0d6['detachRoot'](_0xca3d9a);for(const _0x1433dc of Object['keys'](_0x4e9e21['model'])){const _0x293463=_0x4ed0d6['addRoot'](_0x1433dc);for(const _0x435483 of Object['keys'](_0x4e9e21['attributes'][_0x1433dc]))_0x4ed0d6['setAttribute'](_0x435483,_0x4e9e21['attributes'][_0x1433dc][_0x435483],_0x293463);_0x4ed0d6['insert'](_0x4e9e21['model'][_0x1433dc],_0x293463,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4e9e21['changes'])),this['isReady']=!0x0;})['catch'](_0x598481=>{console['error'](_0x598481),this['_cleanUp'](),_0x5b64d7&&(this['diff']=_0x5b64d7),this['isReady']=!0x0;});}['addRevisionData'](_0x43b846,_0x57db55){const _0x5a3ffb=this['repository']['createRevision'](_0x43b846);return _0x5a3ffb['on']('_update',(_0x1be6a8,_0x3693ef,_0x1ab509)=>_0x57db55(_0x3693ef,_0x1ab509,_0x5a3ffb)),this['repository']['addRevision'](_0x5a3ffb),_0x5a3ffb;}['loadRevisionData'](_0x6b3834){if(!_0x6b3834||_0x6b3834['diffData'])return Promise['resolve']();{const _0x3aa90e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3aa90e,'revisionId':_0x6b3834['id']})['then'](_0x2b5e70=>{_0x6b3834['_update']({'diffData':_0x2b5e70['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x576aa5=>{for(const _0x52e0eb of this['editor']['model']['document']['getRootNames']())_0x576aa5['detachRoot'](_0x52e0eb);});}['_sortAndFilterDiffChanges'](_0xc7b9a6){const _0xa739eb=[],_0x2dd155=new Map();for(const _0x49c34c of this['editor']['model']['document']['getRootNames']()){const _0x47c88f=this['editor']['editing']['view']['getDomRoot'](_0x49c34c);if(!_0x47c88f)continue;const _0x4dfacb=_0x47c88f['getClientRects']()['item'](0x0);_0x4dfacb&&(_0xa739eb['push'](_0x49c34c),_0x2dd155['set'](_0x49c34c,_0x4dfacb));}return _0xa739eb['sort']((_0x1ad2fb,_0x1dca5e)=>{const _0x242ce4=_0x2dd155['get'](_0x1ad2fb),_0x30ee77=_0x2dd155['get'](_0x1dca5e);return _0x242ce4['y']-_0x30ee77['y']||_0x242ce4['x']-_0x30ee77['x'];}),(_0xc7b9a6=_0xc7b9a6['filter'](_0x5536f6=>_0xa739eb['includes'](_0x5536f6['rootName'])))['sort']((_0x1ef54c,_0x4fe01b)=>_0xa739eb['indexOf'](_0x1ef54c['rootName'])-_0xa739eb['indexOf'](_0x4fe01b['rootName'])),_0xc7b9a6;}['_makeTape'](_0x560f1f){const _0x3a96c3=Array['from'](_0x560f1f['markers'])['filter'](([_0x2bac06,_0x47032e])=>_0x2bac06['startsWith']('revision:')&&!_0x47032e['isCollapsed']),_0x1ec013=Array['from'](this['editor']['model']['createRangeIn'](_0x560f1f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3a96c3['length'])for(const _0x397f9d of _0x1ec013){const [_0x393a69,_0x567d9b]=_0x3a96c3[0x0],[,_0x191ad7,_0x5017f0]=_0x393a69['split'](':');if(_0x567d9b['end']['isEqual'](_0x397f9d['nextPosition'])&&_0x3a96c3['shift'](),(_0x397f9d['previousPosition']['isEqual'](_0x567d9b['start'])||_0x397f9d['previousPosition']['isAfter'](_0x567d9b['start']))&&('insertion'==_0x191ad7?_0x397f9d['isAdded']={'userId':_0x5017f0}:'deletion'==_0x191ad7&&(_0x397f9d['isRemoved']={'userId':_0x5017f0})),0x0==_0x3a96c3['length'])break;}return _0x1ec013;}['_refreshStartEndIndex'](_0x336642){const _0x2ed4de=new Map();for(let _0x45b39c=0x0;_0x45b39c<_0x336642['length'];_0x45b39c++)'text'===_0x336642[_0x45b39c]['type']?(_0x336642[_0x45b39c]['item']['startIndex']=_0x45b39c,_0x336642[_0x45b39c]['item']['endIndex']=_0x45b39c):('elementStart'===_0x336642[_0x45b39c]['type']?_0x336642[_0x45b39c]['item']['startIndex']=_0x45b39c:'elementEnd'===_0x336642[_0x45b39c]['type']&&(_0x336642[_0x45b39c]['item']['endIndex']=_0x45b39c),_0x2ed4de['set'](_0x336642[_0x45b39c]['id'],_0x45b39c));for(const _0x24e052 of _0x2ed4de['values']())'elementStart'===_0x336642[_0x24e052]['type']?_0x336642[_0x24e052]['item']['endIndex']=_0x2ed4de['get'](_0x336642[_0x24e052]['pairId']):'elementEnd'===_0x336642[_0x24e052]['type']&&(_0x336642[_0x24e052]['item']['startIndex']=_0x2ed4de['get'](_0x336642[_0x24e052]['pairId']));}['_processTape'](_0x36941c){for(let _0x272dee=0x0;_0x272dee<_0x36941c['length'];_0x272dee++){if('elementStart'===_0x36941c[_0x272dee]['type'])_0x36941c[_0x272dee]['item']['startIndex']=_0x272dee;else{if('elementEnd'===_0x36941c[_0x272dee]['type']){_0x36941c[_0x272dee]['item']['endIndex']=_0x272dee;const _0x97f2d5=_0x36941c[_0x272dee]['item']['startIndex'];_0x36941c[_0x97f2d5]['pairId']=_0x36941c[_0x272dee]['id'],_0x36941c[_0x272dee]['pairId']=_0x36941c[_0x97f2d5]['id'];}else _0x36941c[_0x272dee]['item']['startIndex']=_0x272dee,_0x36941c[_0x272dee]['item']['endIndex']=_0x272dee,_0x36941c[_0x272dee]['pairId']=null;}_0x36941c[_0x272dee]['markersStart']||(_0x36941c[_0x272dee]['markersStart']=[],_0x36941c[_0x272dee]['markersEnd']=[]);}}['_markInsertions'](_0x1086b7,_0x56f97a){const _0xd0a074=_0x1086b7['filter'](_0x1bdca8=>!_0x1bdca8['isAdded']);for(let _0x54bd17=0x0;_0x54bd17<_0x56f97a['length'];_0x54bd17++)_0x56f97a[_0x54bd17]['isAdded']&&(_0xd0a074[_0x54bd17]['isAdded']=_0x56f97a[_0x54bd17]['isAdded']);}['_makeModelFromViewString'](_0x1cab2e){const _0x40dca9=JSON['parse'](_0x1cab2e),_0x34fbcb=this['editor']['editing']['view']['document'],_0x872766=new _0x30434f(_0x34fbcb,_0x40dca9['map'](_0x3ef8b6=>this['_getViewObj'](_0x3ef8b6)));return this['editor']['data']['toModel'](_0x872766);}['_getViewObj'](_0x562b26){const _0x2ab79b=this['editor']['editing']['view']['document'];if('string'==typeof _0x562b26)return new _0x5b9193(_0x2ab79b,_0x562b26);{const _0x2f49cc=_0x562b26['children']['map'](_0x7923e9=>this['_getViewObj'](_0x7923e9));return new(Z[_0x562b26['type']]||_0x3ff468)(_0x2ab79b,_0x562b26['name'],_0x562b26['attributes'],_0x2f49cc);}}['_getDiff'](_0x2510c4,_0x1e881b=null){const _0x34b88a=this['repository']['getRevision'](_0x2510c4),_0x538d98=_0x1e881b?this['repository']['getRevision'](_0x1e881b):null,_0x354309=this['_getRevisionsRange'](_0x34b88a,_0x538d98),_0x4e3d32=_0x354309[_0x354309['length']-0x1],_0x58d264=new Map(),_0x385d6c={'model':{},'attributes':{},'changes':[]},_0x18abe4=new Set(),_0x303db5=new Map();for(let _0x2b82c4=_0x354309['length']-0x1;_0x2b82c4>=0x0;_0x2b82c4--){const _0x5ea5ea=_0x354309[_0x2b82c4];for(const _0x3b75d3 of Object['keys'](_0x5ea5ea['diffData']))if(_0x5ea5ea['diffData'][_0x3b75d3]['attachChange']){const _0x2fdad6=_0x5ea5ea['diffData'][_0x3b75d3]['attachChange'];_0x2fdad6['isAttached']?(_0x18abe4['add'](_0x3b75d3),_0x303db5['has'](_0x3b75d3)&&_0x303db5['get'](_0x3b75d3)['userId']==_0x2fdad6['userId']?_0x303db5['delete'](_0x3b75d3):_0x303db5['set'](_0x3b75d3,_0x2fdad6)):_0x303db5['has'](_0x3b75d3)?(_0x18abe4['delete'](_0x3b75d3),_0x303db5['delete'](_0x3b75d3)):(_0x18abe4['add'](_0x3b75d3),_0x303db5['set'](_0x3b75d3,_0x2fdad6));}else _0x18abe4['add'](_0x3b75d3);}for(const _0x1afe61 of _0x18abe4){const _0x473dca=_0x303db5['has'](_0x1afe61)&&!_0x303db5['get'](_0x1afe61)['isAttached'];let _0x163ac9=_0x473dca?_0x354309['length']-0x1:0x0;const _0x5ed6d1=_0x473dca?-0x1:0x1;for(;_0x354309[_0x163ac9];){const _0x48d9b0=_0x354309[_0x163ac9];if(_0x48d9b0['diffData'][_0x1afe61]){const _0x28aba0=_0x473dca?_0x48d9b0['diffData'][_0x1afe61]['attributesBefore']:_0x48d9b0['diffData'][_0x1afe61]['attributesAfter'];_0x385d6c['attributes'][_0x1afe61]=_0x28aba0?_0xd15063(_0x28aba0):{};break;}_0x163ac9+=_0x5ed6d1;}}for(const _0x41c74f of _0x354309){_0x41c74f['model']={};for(const _0x3bf481 of _0x41c74f['authors'])_0x58d264['set'](_0x3bf481['id'],_0x3bf481);for(const _0x2d360a of _0x18abe4){const _0xe3d2b6=_0x41c74f['diffData'][_0x2d360a]?_0x41c74f['diffData'][_0x2d360a]['insertions']:'[]',_0x47923d=_0x41c74f['diffData'][_0x2d360a]?_0x41c74f['diffData'][_0x2d360a]['deletions']:'[]';_0x41c74f['model'][_0x2d360a]={'insertions':this['_makeModelFromViewString'](_0xe3d2b6),'deletions':this['_makeModelFromViewString'](_0x47923d)};}}for(const _0x4c315b of _0x18abe4){let _0x4995e4=null,_0x73cf6a=0x0;const _0x689606=new Map(Array['from'](_0x34b88a['model'][_0x4c315b]['insertions']['markers'])['filter'](([_0x507616])=>!_0x507616['startsWith']('revision:')));let _0x211e6a=0x0;for(const _0x8f95c4 of _0x354309){const _0x5b868d=this['_makeTape'](_0x8f95c4['model'][_0x4c315b]['insertions']);_0x8f95c4==_0x34b88a?(_0x4995e4=_0x5b868d,_0x73cf6a=_0x4995e4['length'],_0x4995e4['forEach'](_0x27ebe9=>{_0x27ebe9['id']=_0x211e6a++;}),this['_processTape'](_0x4995e4)):this['_markInsertions'](_0x4995e4,_0x5b868d);const _0x3039b0=_0x4995e4['filter'](_0x3c54b5=>!_0x3c54b5['isAdded'])['map'](_0xea6d6d=>_0xea6d6d['id']);let _0x2bc5e0=0x0;const _0x40c89e=this['_makeTape'](_0x8f95c4['model'][_0x4c315b]['deletions']);_0x40c89e['forEach'](_0x3c6618=>{_0x3c6618['isRemoved']?_0x3c6618['id']=_0x73cf6a++:_0x3c6618['id']=_0x3039b0[_0x2bc5e0++];}),this['_processTape'](_0x40c89e),this['_setDistance'](_0x4995e4,'isAdded'),this['_setDistance'](_0x40c89e,'isRemoved'),_0x8f95c4==_0x34b88a&&this['_markMarkers'](_0x4995e4,_0x689606),_0x4995e4=this['_joinTapes'](_0x4995e4,_0x40c89e),this['_refreshStartEndIndex'](_0x4995e4),this['_setDistance'](_0x4995e4,'isRemoved');}_0x4995e4=_0x4995e4['filter'](_0x5bff4b=>!(_0x5bff4b['isAdded']&&_0x5bff4b['isRemoved']));const _0x3f8d13=new Map(_0x4e3d32['model'][_0x4c315b]['deletions']['markers']),_0x106532=new Set(_0x689606['keys']());for(const _0x448e31 of _0x3f8d13['keys']())_0x106532['delete'](_0x448e31);this['_markSuggestions'](_0x4995e4,_0x106532),this['_fixObsoleteTags'](_0x4995e4),_0x4995e4=this['_removeMissingPairs'](_0x4995e4),_0x4995e4=this['_markMismatchedRemovedTags'](_0x4995e4),_0x4995e4=this['_removeUnsupportedChanges'](_0x4995e4);const {root:_0x1b0539,changes:_0x1483c3}=this['_makeModelFromTape'](_0x4995e4,_0x58d264,_0x4c315b);_0x385d6c['model'][_0x4c315b]=_0x1b0539;const _0x202848=_0x303db5['get'](_0x4c315b);if(_0x202848){const _0x565287=_0x58d264['get'](_0x202848['userId']),_0x467b07=new r({'author':_0x565287,'type':_0x202848['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4c315b});_0x1483c3['unshift'](_0x467b07),_0x385d6c['attributes'][_0x4c315b]['revisionHistoryAttachChange']=_0x467b07['id'];}_0x385d6c['changes']=_0x385d6c['changes']['concat'](_0x1483c3);}return _0x385d6c;}['_markMarkers'](_0x5e3225,_0x51ef48){for(let _0x500f1b=0x0;_0x500f1b<_0x5e3225['length'];_0x500f1b++)for(const [_0x3612d4,_0x57d34b]of _0x51ef48)_0x57d34b['start']['isEqual'](_0x5e3225[_0x500f1b]['previousPosition'])&&_0x5e3225[_0x500f1b]['markersStart']['push'](_0x3612d4),_0x57d34b['end']['isEqual'](_0x5e3225[_0x500f1b]['nextPosition'])&&_0x5e3225[_0x500f1b]['markersEnd']['push'](_0x3612d4);}['_joinTapes'](_0xe73a08,_0x5d96ff){let _0x1c8e6b=[],_0x1daf80=0x0,_0x114c97=0x0;for(;_0x1daf80<_0xe73a08['length']||_0x114c97<_0x5d96ff['length'];){const _0x2fd481=_0xe73a08[_0x1daf80]||{},_0x15dd11=_0x5d96ff[_0x114c97]||{};if(_0x2fd481['id']==_0x15dd11['id'])_0x1daf80++,_0x114c97++,_0x1c8e6b['push'](_0x2fd481);else{if(_0x15dd11['isRemoved']&&_0x2fd481['isAdded']){const {commonTape:_0x23ee69,iEnd:_0x106106,jEnd:_0x5d5b47}=this['_threeWayMerge'](_0xe73a08,_0x1daf80,_0x5d96ff,_0x114c97);_0x1c8e6b=_0x1c8e6b['concat'](_0x23ee69),_0x1daf80=_0x106106,_0x114c97=_0x5d5b47;}else _0x15dd11['isRemoved']?(_0x114c97++,_0x1c8e6b['push'](_0x15dd11)):(_0x1daf80++,_0x1c8e6b['push'](_0x2fd481));}}return _0x1c8e6b;}['_markSuggestions'](_0x3dd7ae,_0x3e5cba){const _0x155368=[];for(let _0x36f468=0x0;_0x36f468<_0x3dd7ae['length'];_0x36f468++){for(let _0x12e251=0x0;_0x12e251<_0x3dd7ae[_0x36f468]['markersStart']['length'];_0x12e251++){const _0x1219aa=_0x3dd7ae[_0x36f468]['markersStart'][_0x12e251];if(!_0x3e5cba['has'](_0x1219aa))continue;const {group:_0x2ef843,type:_0x3db1a8,authorId:_0x5d51bc}=_0x3cfb68(_0x1219aa);'revision-suggestion'!=_0x2ef843||'insertion'!=_0x3db1a8&&'deletion'!=_0x3db1a8||(_0x155368['unshift']({'type':_0x3db1a8,'name':_0x1219aa,'userId':_0x5d51bc}),_0x3dd7ae[_0x36f468]['markersStart']['splice'](_0x12e251,0x1),_0x12e251--);}_0x588cb2(_0x3dd7ae[_0x36f468]);for(let _0x578f06=0x0;_0x578f06<_0x3dd7ae[_0x36f468]['markersEnd']['length'];_0x578f06++){const _0x49d078=_0x3dd7ae[_0x36f468]['markersEnd'][_0x578f06];if(!_0x3e5cba['has'](_0x49d078))continue;const {group:_0x1509bb,type:_0x5090e3}=_0x3cfb68(_0x49d078);if('revision-suggestion'!=_0x1509bb||'insertion'!=_0x5090e3&&'deletion'!=_0x5090e3)continue;_0x3dd7ae[_0x36f468]['markersEnd']['splice'](_0x578f06,0x1),_0x578f06--;const _0x2d63fe=_0x155368['findIndex'](_0x503f5e=>_0x503f5e['name']==_0x49d078);_0x2d63fe>-0x1&&_0x155368['splice'](_0x2d63fe,0x1);}}function _0x3cfb68(_0x48637b){const _0x419bd1=_0x48637b['split'](':');return{'group':_0x419bd1[0x0],'type':_0x419bd1[0x1],'subType':_0x419bd1['length']>=0x5?_0x419bd1[0x2]:null,'id':_0x419bd1['length']<0x5?_0x419bd1[0x2]:_0x419bd1[0x3],'authorId':_0x419bd1['length']<0x5?_0x419bd1[0x3]:_0x419bd1[0x4],'markerCount':0x6==_0x419bd1['length']?_0x419bd1[0x5]:null};}function _0x588cb2(_0x15239a){for(let _0x581d82=0x0;_0x581d82<_0x155368['length'];_0x581d82++){if(_0x15239a['isAdded']&&'insertion'==_0x155368[_0x581d82]['type'])return _0x15239a['isAddSuggestion']=_0x155368[_0x581d82],void delete _0x15239a['isAdded'];if(!_0x15239a['isAdded']&&!_0x15239a['isRemoved']&&'deletion'==_0x155368[_0x581d82]['type'])return void(_0x15239a['isRemoveSuggestion']=_0x155368[_0x581d82]);}}}['_setDistance'](_0x274b60,_0x49b6cb){let _0x34a0c9=0x0,_0x3c83a2=!0x1;const _0x2b2992=new Map();for(const _0x286033 of _0x274b60)_0x286033[_0x49b6cb]?_0x3c83a2&&(_0x34a0c9++,_0x3c83a2=!0x1):(_0x34a0c9++,_0x3c83a2=!0x0),_0x2b2992['set'](_0x286033['id'],_0x34a0c9);for(let _0x353a62=0x0;_0x353a62<_0x274b60['length'];_0x353a62++){if('isRemoved'==_0x49b6cb&&_0x274b60[_0x353a62]['isAdded']||'isAdded'==_0x49b6cb&&_0x274b60[_0x353a62]['isRemoved'])continue;if('text'==_0x274b60[_0x353a62]['type']){_0x274b60[_0x353a62]['distance']=0x0;continue;}const _0x590c21=_0x2b2992['get'](_0x274b60[_0x353a62]['pairId']),_0x18a2a6=_0x2b2992['get'](_0x274b60[_0x353a62]['id']);_0x274b60[_0x353a62]['distance']=_0x590c21-_0x18a2a6;}}['_getRevisionsRange'](_0x3f898b,_0x323660,_0xe6e5eb=!0x1){const _0x5c90af=[];let _0x1946fd=this['repository']['getIndex'](_0x3f898b),_0x5495d6=this['repository']['getIndex'](_0x323660);for(-0x1==_0x5495d6&&(_0x5495d6=this['repository']['_revisions']['length'],_0xe6e5eb=!0x1);_0x1946fd<_0x5495d6;)_0x5c90af['push'](this['repository']['getRevision'](_0x1946fd)),_0x1946fd++;return _0xe6e5eb&&_0x5c90af['push'](this['repository']['getRevision'](_0x1946fd)),_0x5c90af;}['_threeWayMerge'](_0x33a5ba,_0x5578b2,_0x17920f,_0xe37068){const _0x48a88a=this['editor']['model']['schema'];let _0x3ab8ec=_0x5578b2;for(;_0x33a5ba[_0x3ab8ec]&&_0x33a5ba[_0x3ab8ec]['isAdded'];)_0x3ab8ec++;let _0x3c3e4f=_0xe37068;for(;_0x17920f[_0x3c3e4f]&&_0x17920f[_0x3c3e4f]['isRemoved'];)_0x3c3e4f++;_0x452bb4(_0x33a5ba,_0x5578b2,_0x3ab8ec),_0x452bb4(_0x17920f,_0xe37068,_0x3c3e4f);const _0x2f9a15=_0x17920f['slice'](_0xe37068,_0x3c3e4f)['concat'](_0x33a5ba['slice'](_0x5578b2,_0x3ab8ec));return _0x2f9a15['sort']((_0x485120,_0x2d63ea)=>_0x485120['side']!=_0x2d63ea['side']?_0x485120['side']-_0x2d63ea['side']:_0x485120['level']!=_0x2d63ea['level']?_0x485120['level']-_0x2d63ea['level']:_0x485120['distance']!=_0x2d63ea['distance']?_0x2d63ea['distance']-_0x485120['distance']:!!_0x485120['isAdded']!=!!_0x2d63ea['isAdded']?-0x1==_0x485120['side']||0x0==_0x485120['side']?_0x485120['isAdded']?-0x1:0x1:_0x485120['isAdded']?0x1:-0x1:_0x485120['index']-_0x2d63ea['index']),{'commonTape':_0x2f9a15,'iEnd':_0x3ab8ec,'jEnd':_0x3c3e4f};function _0x452bb4(_0x39730b,_0x108f91,_0x4b99cd){let _0x59c750=-0x1,_0x462914=Number['POSITIVE_INFINITY'],_0x109749=!0x0;for(let _0x656749=_0x108f91;_0x656749<_0x4b99cd;_0x656749++)if(_0x48a88a['isInline'](_0x39730b[_0x656749]['item'])||(_0x109749=!0x1),_0x39730b[_0x656749]['item']['startIndex']<_0x108f91&&(_0x59c750=_0x656749),_0x39730b[_0x656749]['item']['endIndex']>=_0x4b99cd){_0x462914=_0x656749;break;}_0x109749&&(_0x59c750=_0x4b99cd-0x1);for(let _0x9d23f6=_0x108f91;_0x9d23f6<_0x4b99cd;_0x9d23f6++)_0x39730b[_0x9d23f6]['side']=_0x9d23f6<=_0x59c750?-0x1:_0x9d23f6<_0x462914?0x0:0x1,_0x39730b[_0x9d23f6]['index']=_0x9d23f6;let _0xc0e2ad=0x0;for(let _0x419764=_0x108f91;_0x419764<=_0x59c750;_0x419764++)0x0==_0x39730b[_0x419764]['distance']?_0x39730b[_0x419764]['level']=_0xc0e2ad:(_0xc0e2ad++,_0x39730b[_0x419764]['level']=_0xc0e2ad,_0xc0e2ad++);for(let _0x20c5bb=_0x108f91;_0x20c5bb<_0x4b99cd;_0x20c5bb++)0x0==_0x39730b[_0x20c5bb]['side']&&(_0x39730b[_0x20c5bb]['level']=_0xc0e2ad);_0xc0e2ad=0x0;for(let _0x3a314a=_0x4b99cd-0x1;_0x3a314a>=_0x462914;_0x3a314a--)0x0==_0x39730b[_0x3a314a]['distance']?_0x39730b[_0x3a314a]['level']=_0xc0e2ad:(_0xc0e2ad--,_0x39730b[_0x3a314a]['level']=_0xc0e2ad,_0xc0e2ad--);}}['_fixObsoleteTags'](_0x5c36cd){const _0x91369e=new Map(),_0x365d96=this['editor']['model']['schema'];for(let _0xb99a90=0x1;_0xb99a90<_0x5c36cd['length'];_0xb99a90++){let _0x412476,_0x32949b,_0x277196;const _0x3c45ea=_0x5c36cd[_0xb99a90],_0x55af84=_0x5c36cd[_0xb99a90-0x1];if('text'==_0x3c45ea['type'])continue;if(_0x3c45ea['type']!=_0x55af84['type'])continue;if(!_0x365d96['isBlock'](_0x55af84['item'])||_0x365d96['isLimit'](_0x55af84['item']))continue;if(!_0x365d96['isBlock'](_0x3c45ea['item'])||_0x365d96['isLimit'](_0x3c45ea['item']))continue;if((_0x5c36cd[_0xb99a90]['isAdded']||_0x5c36cd[_0xb99a90]['isAddSuggestion'])&&_0x5c36cd[_0xb99a90-0x1]['isRemoved'])_0x412476=_0x5c36cd[_0xb99a90],_0x32949b=_0x5c36cd[_0xb99a90-0x1],_0x277196=_0xb99a90-0x1;else{if(!_0x5c36cd[_0xb99a90]['isRemoved']||!_0x5c36cd[_0xb99a90-0x1]['isAdded']&&!_0x5c36cd[_0xb99a90-0x1]['isAddSuggestion'])continue;_0x412476=_0x5c36cd[_0xb99a90-0x1],_0x32949b=_0x5c36cd[_0xb99a90],_0x277196=_0xb99a90;}const _0x2d9393=_0x412476['level']==_0x32949b['level'],_0x19da3b=Math['abs'](_0x412476['level'])<Math['abs'](_0x32949b['level'])&&0x0==_0x32949b['distance'];(_0x2d9393||_0x19da3b)&&(_0x91369e['set'](_0x32949b['id'],_0x412476['id']),_0x5c36cd['splice'](_0x277196,0x1),_0xb99a90--,_0x412476['isAdded']=!0x1);}for(let _0x37a60f=0x0;_0x37a60f<_0x5c36cd['length'];_0x37a60f++)_0x91369e['has'](_0x5c36cd[_0x37a60f]['pairId'])&&(_0x5c36cd[_0x37a60f]['pairId']=_0x91369e['get'](_0x5c36cd[_0x37a60f]['pairId']));}['_removeMissingPairs'](_0x58ccc2){const _0x396544=new Set(_0x58ccc2['map'](_0x2907a2=>_0x2907a2['id']));for(let _0x2b9d86=0x0;_0x2b9d86<_0x58ccc2['length'];_0x2b9d86++)_0x396544['has'](_0x58ccc2[_0x2b9d86]['pairId'])||0x0==_0x58ccc2[_0x2b9d86]['distance']||(_0x58ccc2[_0x2b9d86]['isIncorrect']=!0x0);return _0x58ccc2['filter'](_0x10cf9c=>!_0x10cf9c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3a17ca){const _0x516187=new Set();for(let _0x1a48e2=0x0;_0x1a48e2<_0x3a17ca['length'];_0x1a48e2++){if(_0x516187['has'](_0x3a17ca[_0x1a48e2]['id'])&&_0x3a17ca[_0x1a48e2]['isRemoved']&&(_0x3a17ca[_0x1a48e2]['isIncorrect']=!0x0),_0x3a17ca[_0x1a48e2]['isIncorrect'])continue;if(0x0==_0x3a17ca[_0x1a48e2]['distance'])continue;if('elementStart'!=_0x3a17ca[_0x1a48e2]['type'])continue;if(null==_0x3a17ca[_0x1a48e2]['pairId'])continue;let _0xa2a73a=_0x1a48e2+0x1,_0x5523d5=0x0;for(;_0x3a17ca[_0xa2a73a]['id']!=_0x3a17ca[_0x1a48e2]['pairId'];)'elementStart'==_0x3a17ca[_0xa2a73a]['type']?_0x5523d5++:'elementEnd'==_0x3a17ca[_0xa2a73a]['type']&&_0x5523d5--,_0xa2a73a++;if(0x0!=_0x5523d5){if(_0x3a17ca[_0x1a48e2]['isRemoved'])_0x3a17ca[_0x1a48e2]['isIncorrect']=!0x0;else{for(;_0xa2a73a!=_0x1a48e2;)_0x3a17ca[_0xa2a73a]['isRemoved']&&0x0!=_0x3a17ca[_0xa2a73a]['distance']&&(_0x3a17ca[_0xa2a73a]['isIncorrect']=!0x0,_0x516187['add'](_0x3a17ca[_0xa2a73a]['pairId'])),_0xa2a73a--;}}}return _0x3a17ca['filter'](_0x1f200f=>!_0x1f200f['isIncorrect']);}['_removeUnsupportedChanges'](_0x47c4a0){const _0x47b287=this['editor']['model']['schema'];for(let _0x48dd77=0x0;_0x48dd77<_0x47c4a0['length'];_0x48dd77++){if(!(_0x47c4a0[_0x48dd77]['isAdded']||_0x47c4a0[_0x48dd77]['isAddSuggestion']||_0x47c4a0[_0x48dd77]['isRemoved']||_0x47c4a0[_0x48dd77]['isRemoveSuggestion']))continue;if(0x0==_0x47c4a0[_0x48dd77]['distance'])continue;const _0x12590a=_0x47c4a0[_0x48dd77]['item'];_0x47b287['isBlock'](_0x12590a)||_0x47b287['isLimit'](_0x12590a)||(_0x47c4a0[_0x48dd77]['isAdded']&&delete _0x47c4a0[_0x48dd77]['isAdded'],_0x47c4a0[_0x48dd77]['isAddSuggestion']&&delete _0x47c4a0[_0x48dd77]['isAddSuggestion'],_0x47c4a0[_0x48dd77]['isRemoveSuggestion']&&delete _0x47c4a0[_0x48dd77]['isRemoveSuggestion'],_0x47c4a0[_0x48dd77]['isRemoved']&&(_0x47c4a0[_0x48dd77]['isIncorrect']=!0x0));}return _0x47c4a0['filter'](_0x279406=>!_0x279406['isIncorrect']);}['_makeModelFromTape'](_0x3f2afa,_0x9162b9,_0xfaa90c){const _0x4b88ad=new wt(),_0x4d4790=[],_0x8a2e84=new Map(),_0x42c364=this['editor']['model'],_0x299ff1=_0x42c364['schema'],_0xb9e352=[_0x4b88ad],_0x1a5bf9={},_0x4efe17={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3068cf=null;const _0x141561=[0x0];for(let _0x2b9d32=0x0;_0x2b9d32<_0x3f2afa['length'];_0x2b9d32++)if('elementStart'===_0x3f2afa[_0x2b9d32]['type']){_0x3f2afa[_0x2b9d32]['previousPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561);const _0x56eca9=new ft(_0x3f2afa[_0x2b9d32]['item']['name'],_0x3f2afa[_0x2b9d32]['item']['getAttributes']());_0xb9e352[0x0]['_appendChild'](_0x56eca9),_0x141561['push'](0x0),_0xb9e352['unshift'](_0x56eca9),_0x3f2afa[_0x2b9d32]['nextPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561);}else'elementEnd'===_0x3f2afa[_0x2b9d32]['type']?(_0xb9e352['shift'](),_0x3f2afa[_0x2b9d32]['previousPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561),_0x141561['pop'](),_0x141561[_0x141561['length']-0x1]++,_0x3f2afa[_0x2b9d32]['nextPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561)):(_0x3f2afa[_0x2b9d32]['previousPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561),_0x3068cf?_0x3068cf['_data']+=_0x3f2afa[_0x2b9d32]['item']['data']:_0x3068cf=new _t(_0x3f2afa[_0x2b9d32]['item']['data'],_0x3f2afa[_0x2b9d32]['item']['getAttributes']()),_0x3f2afa[_0x2b9d32+0x1]&&'text'===_0x3f2afa[_0x2b9d32+0x1]['type']&&_0x45ac5c(_0x3068cf,_0x3f2afa[_0x2b9d32+0x1]['item'])||(_0xb9e352[0x0]['_appendChild'](_0x3068cf),_0x3068cf=null),_0x141561[_0x141561['length']-0x1]+=_0x3f2afa[_0x2b9d32]['item']['offsetSize'],_0x3f2afa[_0x2b9d32]['nextPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561));for(let _0x27996d=0x0;_0x27996d<_0x3f2afa['length'];_0x27996d++){const _0x66007d=_0x3f2afa[_0x27996d]['previousPosition'],_0x3810f4=_0x3f2afa[_0x27996d]['nextPosition'];for(const _0x469dc9 of _0x3f2afa[_0x27996d]['markersStart'])_0x8a2e84['set'](_0x469dc9,{'start':_0x66007d,'end':null});_0x443076('isRemoveSuggestion',_0x27996d,_0x66007d,_0x3810f4),_0x443076('isAddSuggestion',_0x27996d,_0x66007d,_0x3810f4),_0x443076('isRemoved',_0x27996d,_0x66007d,_0x3810f4),_0x443076('isAdded',_0x27996d,_0x66007d,_0x3810f4);for(const _0x256564 of _0x3f2afa[_0x27996d]['markersEnd']){_0x8a2e84['get'](_0x256564)['end']=_0x3810f4;}}for(const [_0x246a4d,_0x1c2a00]of _0x8a2e84){const _0x65f7b=this['editor']['model']['createRange'](_0x1c2a00['start'],_0x1c2a00['end']);_0x4b88ad['markers']['set'](_0x246a4d,_0x65f7b);}return _0x4d4790['sort']((_0x2558e1,_0x33e897)=>{const _0x2b4312=_0x4b88ad['markers']['get']('revision:'+_0x2558e1['id']),_0x36e7eb=_0x4b88ad['markers']['get']('revision:'+_0x33e897['id']);return _0x2b4312['start']['isBefore'](_0x36e7eb['start'])?-0x1:_0x2b4312['start']['isAfter'](_0x36e7eb['start'])?0x1:_0x2b4312['end']['isBefore'](_0x36e7eb['end'])?-0x1:_0x2b4312['end']['isAfter'](_0x36e7eb['end'])?0x1:'add'===_0x2558e1['type']?-0x1:0x1;}),{'root':_0x4b88ad,'changes':_0x4d4790};function _0x443076(_0x5b3369,_0x4a1f5a,_0x118d89,_0x3dba3f){const _0x5102b8=!!_0x3f2afa[_0x4a1f5a][_0x5b3369],_0x432849=_0x5102b8?_0x3f2afa[_0x4a1f5a][_0x5b3369]['userId']:null,_0x26e526=_0x4a1f5a===_0x3f2afa['length']-0x1,_0x4257fe=_0x4efe17[_0x5b3369][0x0],_0x1b2258=_0x299ff1['isObject'](_0x3f2afa[_0x4a1f5a]['item']);!_0x1a5bf9[_0x5b3369]&&_0x5102b8?_0x1a5bf9[_0x5b3369]={'start':_0x118d89,'tapeItem':_0x3f2afa[_0x4a1f5a],'userId':_0x432849,'type':_0x5b3369}:_0x1a5bf9[_0x5b3369]&&!_0x5102b8?(_0x1a5bf9[_0x5b3369]['end']=_0x118d89,_0x1d8364(_0x1a5bf9[_0x5b3369]),_0x1a5bf9[_0x5b3369]=null):_0x1a5bf9[_0x5b3369]&&_0x5102b8&&_0x1a5bf9[_0x5b3369]['userId']!==_0x432849&&(_0x1a5bf9[_0x5b3369]['end']=_0x118d89,_0x4257fe&&_0x4257fe['userId']===_0x1a5bf9[_0x5b3369]['userId']||_0x1d8364(_0x1a5bf9[_0x5b3369]),_0x1a5bf9[_0x5b3369]={'start':_0x118d89,'tapeItem':_0x3f2afa[_0x4a1f5a],'userId':_0x432849,'type':_0x5b3369}),_0x1a5bf9[_0x5b3369]&&_0x1b2258&&('elementStart'!==_0x3f2afa[_0x4a1f5a]['type']||_0x4257fe&&_0x4257fe['userId']===_0x432849||_0x4efe17[_0x5b3369]['unshift']({'userId':_0x432849,'object':_0x3f2afa[_0x4a1f5a]['item'],'change':_0x1a5bf9[_0x5b3369]}),'elementEnd'===_0x3f2afa[_0x4a1f5a]['type']&&_0x4257fe&&_0x4257fe['object']===_0x3f2afa[_0x4a1f5a]['item']&&(_0x4efe17[_0x5b3369]['shift'](),_0x1a5bf9[_0x5b3369]=_0x4257fe['change'])),_0x1a5bf9[_0x5b3369]&&_0x26e526&&(_0x1a5bf9[_0x5b3369]['end']=_0x3dba3f,_0x1d8364(_0x1a5bf9[_0x5b3369]),_0x1a5bf9[_0x5b3369]=null);}function _0x1d8364({start:_0x245733,end:_0x50ea8f,tapeItem:_0x31ccc3,userId:_0x3ec4a9,type:_0x597c58}){const _0x1ef9c6=_0x31ccc3['item'],_0x170835=_0x42c364['schema']['isBlock'](_0x1ef9c6)&&!_0x42c364['schema']['isLimit'](_0x1ef9c6),_0x59910a=_0x245733['nodeAfter']==_0x50ea8f['parent']&&_0x50ea8f['isAtStart'];if(_0x170835&&_0x59910a)return;const _0x41de29=_0x42c364['createRange'](_0x245733,_0x50ea8f),_0xb9ffba=_0x9162b9['get'](_0x3ec4a9),_0x58c438=new r({'author':_0xb9ffba,'type':'isAdded'==_0x597c58||'isAddSuggestion'==_0x597c58?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x597c58||'isRemoveSuggestion'==_0x597c58},'createdAt':new Date(),'rootName':_0xfaa90c});_0x4d4790['push'](_0x58c438),_0x4b88ad['markers']['set']('revision:'+_0x58c438['id'],_0x41de29);}function _0x45ac5c(_0x242032,_0x5cc6fb){const _0x1c0799=_0x242032['getAttributes'](),_0x1a513c=_0x5cc6fb['getAttributes']();for(const _0x6571f0 of _0x1c0799){if(_0x6571f0[0x1]!==_0x5cc6fb['getAttribute'](_0x6571f0[0x0]))return!0x1;_0x1a513c['next']();}return _0x1a513c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x156c98=>{const _0x1e99d3=_0x156c98['markerName']['split'](':')[0x1],_0x1a2fc6=this['_getChangeFromId'](_0x1e99d3);if(!_0x1a2fc6)return null;const _0x5b6532='add'==_0x1a2fc6['type']?'insertion':'deletion',_0x203cac=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5b6532];return _0x1a2fc6['data']['isSuggestion']&&_0x203cac['push']('ck-suggestion-marker-'+_0x5b6532+'-new'),this['activeChange']==_0x1a2fc6&&_0x203cac['push']('ck-suggestion-marker--active'),{'classes':_0x203cac,'attributes':{'data-change-id':_0x1e99d3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e2153=>{_0x5e2153['on']('element:pre',(_0x4a5b98,_0x50ae90,_0x2aab8a)=>{const _0x74e635=_0x50ae90['viewItem']['getChild'](0x0);if(!_0x74e635||!_0x74e635['is']('element','code'))return;if(!_0x2aab8a['consumable']['consume'](_0x74e635,{'attributes':['vid_start','vid_end']}))return;const _0x55056a=_0x50ae90['modelRange']['start']['nodeAfter'];_0x2aab8a['writer']['setAttribute']('vid_start',_0x74e635['getAttribute']('vid_start'),_0x55056a),_0x2aab8a['writer']['setAttribute']('vid_end',_0x74e635['getAttribute']('vid_end'),_0x55056a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x268c04=>{_0x268c04['on']('element',(_0x286bff,_0x3419ad,_0x41b322)=>{if(!_0x41b322['consumable']['consume'](_0x3419ad['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3419ad['modelRange']['isCollapsed'])return;const _0x144ce3=_0x3419ad['modelRange']['start']['nodeAfter'];_0x144ce3['hasAttribute']('vid_start')||_0x144ce3['hasAttribute']('vid')||(_0x41b322['writer']['setAttribute']('vid_start',_0x3419ad['viewItem']['getAttribute']('vid_start'),_0x144ce3),_0x41b322['writer']['setAttribute']('vid_end',_0x3419ad['viewItem']['getAttribute']('vid_end'),_0x144ce3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xbde84f=>_0xbde84f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3b19a0,[,_0x38b397])=>{['vid_start','vid_end','vid']['includes'](_0x38b397)&&(_0x3b19a0['return']=!0x0,_0x3b19a0['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x57de3a=>{_0x57de3a['on']('attribute:vid',(_0x5bb448,_0x3172de,_0x13beec)=>{if('\x20'!=_0x3172de['item']['data']||_0x3172de['item']['parent']['maxOffset']>0x1)return;if(!_0x13beec['consumable']['consume'](_0x3172de['item'],_0x5bb448['name']))return;const _0x577d47=_0x13beec['writer'],_0xa852ea=_0x13beec['mapper']['toViewRange'](_0x3172de['range']);_0x577d47['wrap'](_0xa852ea,_0x577d47['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x27ac6f){const _0x48efad=_0x27ac6f['plugins']['get']('RevisionViewer');return(_0x5f08f8,_0x1801ad,_0x5a4d1c)=>{const _0x29cebf=_0x1801ad['markerName']['split'](':')[0x1],_0x526ba1=_0x48efad['_getChangeFromId'](_0x29cebf);if(!_0x526ba1)return null;const _0x393bdb='add'==_0x526ba1['type']?'split':'merge';if(!_0x5a4d1c['consumable']['test'](_0x1801ad['markerRange'],_0x5f08f8['name']))return;const _0x48771b=_0x1801ad['markerRange']['getWalker'](),_0x455671=_0x1801ad['markerRange']['start'],_0x405f92=_0x27ac6f['model']['schema'];let _0x3f28e3=null,_0x418ac4=null,_0xfec8de=!0x1,_0x5c9638=!0x1;for(const _0x49c91a of _0x48771b){const _0xb04513=_0x49c91a['item'];_0xfec8de=_0xfec8de||_0x405f92['isContent'](_0xb04513);const _0x1d07a4=_0x5a4d1c['mapper']['toViewElement'](_0xb04513);if(_0x1d07a4&&_0x1d07a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49c91a['type']&&(_0x405f92['isBlock'](_0xb04513)&&!_0x405f92['isLimit'](_0xb04513)&&(_0xb04513['nextSibling']||_0x455671['isAtEnd']?_0x3f28e3&&_0x3f28e3['parent']==_0xb04513||(_0x3f28e3=_0xb04513,_0x2e7ea4(_0x49c91a['previousPosition']),_0x5c9638=!0x0):_0x418ac4=_0x418ac4||_0x49c91a['previousPosition']));}function _0x2e7ea4(_0x24aa67){const _0x1ffe32=_0x5a4d1c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x393bdb}),_0x3addfe=_0x5a4d1c['mapper']['toViewPosition'](_0x24aa67);_0x526ba1['data']['isSuggestion']&&_0x5a4d1c['writer']['addClass']('ck-suggestion-marker-'+_0x393bdb+'-new',_0x1ffe32),_0x48efad['activeChange']==_0x526ba1&&_0x5a4d1c['writer']['addClass']('ck-suggestion-marker--active',_0x1ffe32),_0x5a4d1c['writer']['insert'](_0x3addfe,_0x1ffe32),_0x5a4d1c['mapper']['bindElementToMarker'](_0x1ffe32,_0x1801ad['markerName']);}_0xfec8de||_0x5c9638||!_0x418ac4||_0x2e7ea4(_0x418ac4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2be13a,_0x305797,_0x52fd14)=>{const _0x118f0a=_0x52fd14['mapper']['markerNameToElements'](_0x305797['markerName']);if(_0x118f0a){for(const _0x299887 of _0x118f0a)(_0x299887['hasClass']('ck-suggestion-marker-split')||_0x299887['hasClass']('ck-suggestion-marker-merge'))&&(_0x52fd14['mapper']['unbindElementFromMarkerName'](_0x299887,_0x305797['markerName']),_0x52fd14['writer']['remove'](_0x299887));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x17c8be,_0x5b055c,_0x69cc58)=>{const _0x27877f=_0x5b055c['markerName']['split'](':')[0x1],_0x150195=this['_getChangeFromId'](_0x27877f);if(!_0x150195)return null;const _0x35b0c0='add'==_0x150195['type']?'split':'merge';if(_0x69cc58['consumable']['test'](_0x5b055c['markerRange'],_0x17c8be['name']))for(const _0x200c6f of _0x5b055c['markerRange']['getItems']()){if(!_0x200c6f['is']('element','softBreak'))continue;const _0x3c903f=_0x69cc58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35b0c0}),_0x51c7c3=_0x69cc58['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x200c6f));_0x150195['data']['isSuggestion']&&_0x69cc58['writer']['addClass']('ck-suggestion-marker-'+_0x35b0c0+'-new',_0x3c903f),this['activeChange']==_0x150195&&_0x69cc58['writer']['addClass']('ck-suggestion-marker--active',_0x3c903f),_0x69cc58['writer']['insert'](_0x51c7c3,_0x3c903f),_0x69cc58['mapper']['bindElementToMarker'](_0x3c903f,_0x5b055c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x583821=>{for(const _0xdf6ac8 of this['editor']['model']['document']['getRootNames']()){const _0x5f30f6=this['editor']['model']['document']['getRoot'](_0xdf6ac8),_0x3b1941=this['editor']['editing']['view']['document']['getRoot'](_0xdf6ac8);if(_0x3b1941){const _0x57248c=_0x5f30f6['getAttribute']('revisionHistoryAttachChange');if(_0x583821['removeAttribute']('data-change-id',_0x3b1941),_0x583821['removeClass']('ck-revision-history-root-add',_0x3b1941),_0x583821['removeClass']('ck-revision-history-root-remove',_0x3b1941),_0x583821['removeClass']('ck-revision-history-root--active',_0x3b1941),_0x57248c){const _0x25d32a=this['_getChangeFromId'](_0x57248c);if(!_0x25d32a)return null;_0x583821['setAttribute']('data-change-id',_0x57248c,_0x3b1941),_0x583821['addClass']('ck-revision-history-root-'+_0x25d32a['type'],_0x3b1941),this['activeChange']==_0x25d32a&&_0x583821['addClass']('ck-revision-history-root--active',_0x3b1941);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x18de01=>'revision-comment:'+_0x18de01,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xa54a02=>'revision-suggestion:'+_0xa54a02,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x22b0f2=>({'name':'suggestion:'+_0x22b0f2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x51efd3=>{const _0x56cbf0=_0x51efd3['markerName']['split'](':')[0x1];return'insertion'!=_0x56cbf0&&'deletion'!=_0x56cbf0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x56cbf0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x575894,_0x546158,_0x435ef8)=>{const _0x4b6714=_0x435ef8['mapper']['markerNameToElements'](_0x546158['markerName']);if(_0x4b6714){for(const _0x43d126 of _0x4b6714)_0x43d126['is']('uiElement')&&(_0x435ef8['mapper']['unbindElementFromMarkerName'](_0x43d126,_0x546158['markerName']),_0x435ef8['writer']['remove'](_0x43d126));}},{'priority':'high'});}['_getChangeFromId'](_0x12e7a7){return this['_changeIdToChange']['get'](_0x12e7a7);}['_getViewForChange'](_0x5b4c85){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5b4c85),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xba4acd,_0x5dd626,_0x3c5857,_0x58bfa4)=>{_0x58bfa4&&this['_balloon']['remove'](_0x58bfa4),_0x3c5857&&(this['_balloon']['add']({'view':_0x3c5857,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2ff0cb=this['editor']['editing'],_0x3bedf2=this['_getChangeFromId'](_0x3c5857['changeId']);let _0x1dcf02;if(_0x3bedf2['data']['isOnRoot']){const _0x3cfe6d=_0x2ff0cb['view']['getDomRoot'](_0x3bedf2['rootName']);_0x1dcf02=Array['from'](_0x3cfe6d['getClientRects']());}else{const _0x5d6aef=this['editor']['model']['markers']['get']('revision:'+_0x3c5857['changeId']);_0x1dcf02=Array['from'](_0x2ff0cb['mapper']['markerNameToElements'](_0x5d6aef['name']))['map'](_0x3b9cb5=>_0x2ff0cb['view']['domConverter']['mapViewToDom'](_0x3b9cb5))['map'](_0x52d462=>Array['from'](_0x52d462['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1dcf02[0x0];return _0x1dcf02['find'](_0x2bd09d=>_0x2bd09d['top']-0x3<=this['_activeViewTarget']['y']&&_0x2bd09d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2bd09d['left']-0x3<=this['_activeViewTarget']['x']&&_0x2bd09d['right']+0x3>=this['_activeViewTarget']['x'])||_0x1dcf02[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2c91a3,_0x5727aa,_0x5f4f00,_0x3180ca)=>{this['activeView']=_0x5f4f00?this['_getViewForChange'](_0x5f4f00):null,this['editor']['model']['change'](()=>{const _0x590a8f=this['editor']['editing'];_0x3180ca&&(_0x3180ca['data']['isOnRoot']?_0x590a8f['view']['change'](_0x1f77ed=>{_0x1f77ed['removeClass']('ck-revision-history-root--active',_0x590a8f['view']['document']['getRoot'](_0x3180ca['rootName']));}):_0x590a8f['reconvertMarker']('revision:'+_0x3180ca['id'])),_0x5f4f00&&(_0x5f4f00['data']['isOnRoot']?_0x590a8f['view']['change'](_0x5ecb55=>{_0x5ecb55['addClass']('ck-revision-history-root--active',_0x590a8f['view']['document']['getRoot'](_0x5f4f00['rootName']));}):_0x590a8f['reconvertMarker']('revision:'+_0x5f4f00['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x59a574,_0x50e861)=>{if(this['activeChange'])return;const _0x34b1a2=this['_findChangeIdFromDomTarget'](_0x50e861['target']),_0x5dc35d=this['_changeIdToChange']['get'](_0x34b1a2);_0x5dc35d?(this['_activeViewTarget']={'x':_0x50e861['domEvent']['x'],'y':_0x50e861['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5dc35d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x31fcc5,_0x4af0df)=>{const _0x38f491=this['_findChangeIdFromDomTarget'](_0x4af0df['target']),_0x25793c=this['_changeIdToChange']['get'](_0x38f491);_0x25793c?(this['_activeViewTarget']={'x':_0x4af0df['domEvent']['x'],'y':_0x4af0df['domEvent']['y']},_0x25793c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25793c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x22fe6b){do{const _0x21a965=_0x22fe6b['getAttribute']('data-change-id');if(_0x21a965)return _0x21a965;_0x22fe6b=_0x22fe6b['parent'];}while(_0x22fe6b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4d5849=>{for(const _0x15fd1b of this['editor']['model']['markers'])_0x4d5849['removeMarker'](_0x15fd1b);});}}function tt(_0x5f019c,_0x453ed9){return(_0x51e891,_0x44c247,_0x1836a5)=>{if(!_0x1836a5['consumable']['test'](_0x44c247['markerRange'],_0x51e891['name']))return;const _0x2b6804=_0x44c247['markerRange']['getWalker'](),_0x11f572=_0x44c247['markerRange']['start'],_0x2197a1=_0x5f019c['model']['schema'];let _0x2cb332=null,_0x199063=null,_0x505531=!0x1,_0x20af7d=!0x1;for(const _0x239049 of _0x2b6804){const _0x483f85=_0x239049['item'];_0x505531=_0x505531||_0x2197a1['isContent'](_0x483f85);const _0x11a92b=_0x1836a5['mapper']['toViewElement'](_0x483f85);if(_0x11a92b&&_0x11a92b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x239049['type']&&(_0x2197a1['isBlock'](_0x483f85)&&!_0x2197a1['isLimit'](_0x483f85)&&(_0x483f85['nextSibling']||_0x11f572['isAtEnd']?_0x2cb332&&_0x2cb332['parent']==_0x483f85||(_0x2cb332=_0x483f85,_0x1b6bdc(_0x239049['previousPosition']),_0x20af7d=!0x0):_0x199063=_0x199063||_0x239049['previousPosition']));}function _0x1b6bdc(_0x1b763f){const _0x477fd3=_0x1836a5['mapper']['toViewPosition'](_0x1b763f),_0x2e713d=_0x1836a5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x453ed9});_0x1836a5['writer']['insert'](_0x477fd3,_0x2e713d),_0x1836a5['mapper']['bindElementToMarker'](_0x2e713d,_0x44c247['markerName']);}_0x505531||_0x20af7d||!_0x199063||_0x1b6bdc(_0x199063);};}class yt extends _0x16bd35{constructor(_0x1d91ca){super(_0x1d91ca);const _0xef3b6d=_0x1d91ca['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xef3b6d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xef3b6d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x504ca0=this['editor'],_0x23ff04=_0x504ca0['plugins']['get'](d),_0x1b4d19=_0x23ff04['isReady']?_0x23ff04['diff']['newRevisionId']:null;_0x504ca0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1b4d19);}['refresh'](){const {isReady:_0x2c1d08,isEnabled:_0x2fab54}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x2c1d08&&_0x2fab54;}}class bt extends _0x16bd35{['_step'];constructor(_0xf80c81,{direction:_0x30d909}){super(_0xf80c81);const _0x2137c9=_0xf80c81['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x30d909?0x1:-0x1,this['listenTo'](_0x2137c9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2137c9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2137c9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2ce991=this['editor'],_0x492b09=_0x2ce991['plugins']['get'](d),{isNavigationMode:_0x3654b1,currentChangeNumber:_0xf6f6bc}=_0x492b09;let _0x3425d2;if(_0x492b09['activeChange']=_0x3654b1?_0x492b09['diff']['changes']['get'](_0xf6f6bc+this['_step']):_0x492b09['diff']['changes']['first'],_0x492b09['activeChange']['data']['isOnRoot'])_0x3425d2=_0x2ce991['editing']['view']['getDomRoot'](_0x492b09['activeChange']['rootName']);else{const _0x5cac28=_0x2ce991['model']['markers']['get']('revision:'+_0x492b09['activeChange']['id']);_0x3425d2=_0x1e3d9d(_0x2ce991['editing'],_0x5cac28);}_0xdc13e8({'target':_0x3425d2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x35aea9,currentChangeNumber:_0x39240b,numberOfChanges:_0x4198c4,isReady:_0x2b8057,isEnabled:_0xdf8550}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xdf8550&&_0x2b8057&&_0x4198c4)&&(!_0x35aea9||(0x1===this['_step']?_0x39240b<_0x4198c4-0x1:_0x39240b>0x0));}}class di extends _0x4f4dcf{constructor(_0x315ea2){super(_0x315ea2);const _0x1b5dde=this['bindTemplate'],_0x3f7bdf=new _0x18590d(_0x315ea2),_0x92cd7c=new _0x18590d(_0x315ea2);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',(_0xc36be0,_0x5bcf0e)=>_0xc36be0&&_0x5bcf0e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x144d8b,_0x16e4c8,_0x23a613,_0x19f4f5)=>{if(!_0x144d8b)return R(_0x315ea2,'Loading...');if(!_0x23a613)return R(_0x315ea2,'No\x20changes');const _0x33042b=R(_0x315ea2,'NUMBER_OF_CHANGES',_0x23a613);return _0x19f4f5?R(_0x315ea2,'X_OF_Y_CHANGES',[_0x16e4c8+0x1,_0x23a613]):_0x33042b;}),_0x3f7bdf['set']({'label':R(_0x315ea2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x92cd7c['set']({'label':R(_0x315ea2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3f7bdf['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x92cd7c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f7bdf['on']('execute',()=>this['fire']('execute','backward')),_0x92cd7c['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',_0x1b5dde['if']('_isStatusLabelVisible','ck-hidden',_0x5e9126=>!_0x5e9126)]},'children':[{'text':_0x1b5dde['to']('isNavigationMode',_0xb5db1f=>_0xb5db1f?R(_0x315ea2,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x315ea2,'Total')+':\x20')}]},{'text':_0x1b5dde['to']('_statusText')}]},new _0x3b7cad(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f7bdf,_0x92cd7c]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x9a5545{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xbed15a=this['editor']['editing']['view'];_0xbed15a['change'](_0x5b0291=>{for(const _0x363d68 of _0xbed15a['document']['roots'])_0x5b0291['addClass'](ce,_0x363d68);});}['hide'](){const _0x4d35ca=this['editor']['editing']['view'];_0x4d35ca['change'](_0x451487=>{for(const _0x278be8 of _0x4d35ca['document']['roots'])_0x451487['removeClass'](ce,_0x278be8);});}}class m extends _0x9a5545{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x29bedc=this['editor'],_0x4e1132=_0x29bedc['plugins']['get'](d),_0xec447f=_0x29bedc['plugins']['get'](ae);_0x29bedc['ui']['componentFactory']['add']('exitToEditing',_0x2be7a7=>{const _0x25e763=new _0x18590d(_0x2be7a7);return _0x25e763['set']({'label':R(_0x2be7a7,'Back\x20to\x20editing'),'icon':_0x25fa55['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x25e763,'execute',()=>{_0x29bedc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x25e763;}),_0x29bedc['ui']['componentFactory']['add']('restoreRevision',_0x183354=>{const _0x3b4e41=new _0x18590d(_0x183354);return _0x3b4e41['set']({'label':R(_0x183354,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3b4e41['bind']('isEnabled')['to'](_0x29bedc['commands']['get']('restoreRevision')),this['listenTo'](_0x3b4e41,'execute',()=>_0x29bedc['execute']('restoreRevision')),_0x3b4e41;}),_0x29bedc['ui']['componentFactory']['add']('changesNavigation',_0x2c8d33=>{const _0x2c1633=new di(_0x2c8d33),_0x59715b=_0x29bedc['commands']['get']('showPreviousChange'),_0x12ef38=_0x29bedc['commands']['get']('showNextChange');return _0x2c1633['bind']('isBackwardNavigationEnabled')['to'](_0x59715b,'isEnabled'),_0x2c1633['bind']('isForwardNavigationEnabled')['to'](_0x12ef38,'isEnabled'),_0x2c1633['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4e1132),this['listenTo'](_0x2c1633,'execute',(_0x13ebdb,_0x18e0a4)=>{_0x29bedc['execute']('forward'===_0x18e0a4?'showNextChange':'showPreviousChange');}),_0x2c1633;}),_0xec447f['show'](),_0x4e1132['on']('change:isReady',(_0x1e8d5b,_0x28d650,_0x21e609)=>{_0x21e609?_0xec447f['hide']():_0xec447f['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x407381,_0x9c6319){super(_0x407381,_0x9c6319);const _0x7f271c=this['bindTemplate'];this['set']({'label':R(_0x407381,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x407381,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x7f271c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5d5db1=this['fieldView']['element'];this['_tooltipString']=_0x5d5db1['scrollWidth']>_0x5d5db1['clientWidth']&&_0x5d5db1['value']||'';}}class ti extends _0x4f4dcf{constructor(_0x2f6ccd,_0x265d92,_0x1c190b){super(_0x2f6ccd);const _0x59c38a=new _0x58df23();_0x59c38a['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x4731e0=['ck','ck-revision-history-sidebar__revision-author'];_0x1c190b&&_0x4731e0['push']('ck-revision-history-sidebar__revision-author_creator');const _0xa19858=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2f6ccd,_0x1c190b?'Revision\x20creator':'Revision\x20author')},'children':[_0x59c38a,_0x265d92['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4731e0},'children':_0xa19858});}}function ni(_0x225c61,_0x5d269b){const _0x2b0080=_0x225c61['bindTemplate'],_0x41a643=_0x225c61['locale'],_0x504e9a=_0x5c06d4(_0x41a643);_0x504e9a['panelPosition']='sw';const _0x50b68d=function(_0x3090de,_0x47512b){const _0x53d1f4=function(_0x20e461,_0x193b93){const _0x57b863=_0x20e461['locale'],_0x143e68={'Compare\x20against\x20selected':R(_0x57b863,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x57b863,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x57b863,'Restore\x20this\x20revision')};return _0x193b93['map'](_0xbf7a77=>{const _0x5ef09b=_0x143e68[_0xbf7a77['name']];return _0x5ef09b&&_0x5ef09b!==_0xbf7a77['name']&&(_0xbf7a77['name']=_0x5ef09b),_0xbf7a77;});}(_0x3090de,_0x47512b),_0x527d94=new _0x2f121a();for(const _0x341765 of _0x53d1f4){const _0x3310ad={'type':'button','model':new to({'label':_0x341765['name'],'class':_0x341765['class'],'withText':!0x0,'role':'menuitem','_action':_0x341765['action']})};_0x3310ad['model']['bind']('isEnabled')['to'](_0x3090de,'isActionsDropdownOpen',_0x3cc4ef=>'function'!=typeof _0x341765['isEnabled']||(!_0x3cc4ef||_0x341765['isEnabled'](_0x3090de))),_0x527d94['add'](_0x3310ad);}return _0x527d94;}(_0x225c61,_0x5d269b);return _0x225c61['bind']('isActionsDropdownOpen')['to'](_0x504e9a,'isOpen'),_0x504e9a['buttonView']['set']({'label':R(_0x41a643,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x25fa55['threeVerticalDots']}),_0x504e9a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2b0080['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2b0080['to'](_0x2870b2=>_0x2870b2['stopPropagation']())}}),_0x504e9a['on']('execute',_0x10b435=>{_0x225c61['isReady']&&'function'==typeof _0x10b435['source']['_action']&&_0x10b435['source']['_action'](_0x225c61);}),_0x584b38(_0x504e9a,_0x50b68d,{'role':'menu'}),_0x504e9a['listenTo'](_0x225c61,'change:isActionsDropdownOpen',(_0x3ab9d3,_0x3e89f2,_0x11d9a0)=>{if(_0x11d9a0)for(const _0x2954e2 of _0x504e9a['listView']['items']){const _0x1cf105=_0x2954e2['children']['first'],_0x13f8bf=_0x5d269b['find'](_0x35a40d=>_0x35a40d['action']===_0x1cf105['_action'])['isVisible'];_0x2954e2['isVisible']=void 0x0===_0x13f8bf||_0x13f8bf(_0x225c61);}}),_0x504e9a;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x735357(_0x4f4dcf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x327c5a,_0xa53223,_0x459cb3,_0x1fb3ab){super(_0x327c5a);const _0x1142a1=this['bindTemplate'],_0x3ee046=function(_0xedded2,_0x10647d){const _0x3aeb12=Array['from'](_0x10647d['authors'])['filter'](_0x15e303=>_0x15e303!=_0x10647d['creator']);return _0x10647d['creator']&&_0x3aeb12['unshift'](_0x10647d['creator']),_0x3aeb12['map'](_0x469b0a=>new ti(_0xedded2,_0x469b0a,_0x469b0a==_0x10647d['creator']));}(_0x327c5a,_0xa53223);this['id']=_0xa53223['id'],this['_revision']=_0xa53223,this['_requireRevisionName']=_0x1fb3ab,this['bind']('name','createdAt')['to'](_0xa53223),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x53b294=>{return _0x285ecb=_0x327c5a['uiLanguage'],(_0x3578be=_0x53b294)['toLocaleDateString'](_0x285ecb,{'month':'long','day':'numeric'})+',\x20'+_0x3578be['toLocaleTimeString'](_0x285ecb,{'hour':'numeric','minute':'numeric'});var _0x285ecb,_0x3578be;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x327c5a,_0x5e8fe9),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x18b073=>_0x18b073||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x259e75,_0x43da7d)=>_0x259e75&&_0x43da7d),this['revisionActionsView']=_0x459cb3&&_0x459cb3['length']?ni(this,_0x459cb3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1142a1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1142a1['if']('isEnabled','ck-disabled',_0x20c4ec=>!_0x20c4ec),_0x1142a1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1142a1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1142a1['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':_0x1142a1['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':_0x3ee046}]},this['revisionActionsView']],'on':{'click':_0x1142a1['to'](_0x133a74=>{_0x133a74['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3045d1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3045d1,'change',()=>{this['_requireRevisionName']&&!_0x3045d1['value']||this['fire']('setName',{'id':this['id'],'name':_0x3045d1['value']}),_0x3045d1['value']||(_0x3045d1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3482a4,_0x10a765){const _0xdd84d2=_0x143ed1['fromJSDate'](_0x3482a4)['setLocale'](_0x10a765),_0x14ad43=_0x143ed1['local'](),_0x1a98c1=_0x14ad43['minus']({'days':0x1})['startOf']('day');let _0x489f11,_0xdcfba2;return _0xdd84d2['hasSame'](_0x14ad43,'day')?(_0x489f11=_0xdd84d2['startOf']('day')['toJSDate'](),_0xdcfba2=_0xdd84d2['toRelativeCalendar']()):_0xdd84d2['hasSame'](_0x1a98c1,'day')?(_0x489f11=_0x1a98c1['toJSDate'](),_0xdcfba2=_0xdd84d2['toRelativeCalendar']()):_0xdd84d2['hasSame'](_0x14ad43,'week')?(_0x489f11=_0xdd84d2['startOf']('week')['toJSDate'](),_0xdcfba2=_0xdd84d2['weekdayLong']||''):_0xdd84d2['hasSame'](_0x14ad43,'year')?(_0x489f11=_0xdd84d2['startOf']('month')['toJSDate'](),_0xdcfba2=_0xdd84d2['monthLong']||''):(_0x489f11=_0xdd84d2['startOf']('year')['toJSDate'](),_0xdcfba2=String(_0xdd84d2['year'])),{'startDate':_0x489f11,'localizedPeriodName':_0xdcfba2};}class vi extends _0x4f4dcf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xcf4a2,_0x345c68,_0x49adec,_0x16f75a){super(_0xcf4a2);const _0x35f603=mi(_0x345c68,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x345c68,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x49adec,this['_requireRevisionName']=_0x16f75a,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':_0x35f603}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3e7098){const _0x202987=new ai(this['locale'],_0x3e7098,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x202987);}['removeRevision'](_0x5d0c46){const _0x12b0b5=this['revisionViews']['find'](_0x170518=>_0x170518['id']===_0x5d0c46['id']);this['revisionViews']['remove'](_0x12b0b5);}}class as extends _0x4f4dcf{constructor(_0x28c0ff){super(_0x28c0ff);const _0x57d5df=new _0x58df23();_0x57d5df['content']=_0x25fa55['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x57d5df,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x28c0ff,'Revision\x20history')]}]});}}class li extends _0x4f4dcf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x292239,_0x45dbf2,_0xc98234,_0x4e6e42){super(_0x292239);const _0x232589=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x45dbf2,this['_revisionActions']=_0xc98234,this['_requireRevisionName']=_0x4e6e42,this['on']('select',(_0x43932f,_0x91cf7)=>{this['fire']('revisionSelected',_0x91cf7);}),this['on']('setName',(_0x32e797,_0x5e54c8)=>{this['fire']('revisionSetName',_0x5e54c8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x292239),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x232589['if']('isEnabled','ck-disabled',_0x2ee6ce=>!_0x2ee6ce)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x158639 of this['_revisions'])this['_addRevision'](_0x158639);this['_revisions']['on']('add',(_0x287578,_0x85660f)=>{this['_addRevision'](_0x85660f);}),this['_revisions']['on']('remove',(_0x2a222f,_0x276219)=>{this['_removeRevision'](_0x276219);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4a4c11=>_0x4a4c11['revisionViews']['map'](_0x26d26f=>_0x26d26f))['flat']();}['selectRevision'](_0x205846){for(const _0x56c2a8 of this['revisionViews'])_0x205846&&_0x205846['id']===_0x56c2a8['id']?_0x56c2a8['select']():_0x56c2a8['deselect']();}['highlightRevisions'](_0x52f06a){for(const _0x18bb7b of this['revisionViews'])_0x52f06a['some'](({id:_0x78a731})=>_0x78a731===_0x18bb7b['id'])?_0x18bb7b['highlight']():_0x18bb7b['unhighlight']();}['_addRevision'](_0xcd8947){const _0x2d76e2=mi(_0xcd8947['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x28a811=this['timePeriodViews']['get'](0x0);_0x28a811&&_0x28a811['startDate']['getTime']()===_0x2d76e2['getTime']()||(_0x28a811=new vi(this['locale'],_0x2d76e2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x28a811)),_0x28a811['addRevision'](_0xcd8947);}['_removeRevision'](_0x5e9a31){const _0x183d3d=mi(_0x5e9a31['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x183d3d)['removeRevision'](_0x5e9a31);}['_getTimePeriodViewByStartDate'](_0x3329b4){return this['timePeriodViews']['find'](_0x58a335=>_0x58a335['startDate']['getTime']()===_0x3329b4['getTime']());}}class g extends _0x9a5545{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1dc2fe,_0x4c8e53){super(_0x4c8e53),this['sourceElement']=_0x1dc2fe,this['model']['document']['createRoot']();const _0x36299c=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x36299c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3f863b,_0x20c068){const _0x2684f7=new this(_0x3f863b,_0x20c068);return await _0x2684f7['initPlugins'](),await _0x2684f7['ui']['init'](_0x3f863b),await _0x2684f7['data']['init'](_0x2684f7['config']['get']('initialData')||''),_0x2684f7['fire']('ready'),_0x2684f7;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x49113c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25c712){function _0x239e32(_0x23a0b0){return _0x23a0b0['map'](_0x317681=>String['fromCharCode'](_0x317681))['join']('');}super(_0x25c712),this['result']='end',_0x25c712[_0x239e32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x239e32([0x76,0x69,0x65,0x77])][_0x239e32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x239e32([0x61,0x75,0x74,0x6f]),_0x25c712[_0x239e32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x239e32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x239e32([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x239e32([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x239e32([0x6f,0x6b])});}}class H extends _0x49113c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x10ee9b){if(super(_0x10ee9b),!this['editor']['config']['get']('revisionHistory'))throw new _0x2b8e95('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1d7910=>this['_showRevisionViewer']({..._0x1d7910,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4a4865=>this['_closeRevisionViewer'](_0x4a4865)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5c2b0a=>this['_restoreRevision'](_0x5c2b0a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x208ecf){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x208ecf;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x17490b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x17490b);}['getRevision'](_0x59d820){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x59d820);}['getRevisions'](_0x3fe463){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3fe463||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2150c5=this['editor'],_0x123df7=_0x596c40(_0x2150c5,p),_0x33d331=_0x2150c5['plugins']['get']('RevisionTracker'),_0x22864e=_0x2150c5['plugins']['get']('Users')['users'];return _0x123df7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x123df7['lazyRoots'],(_0x123df7['plugins']['push'](k,d,m,class extends _0x49113c{static get['requires'](){return[d,'Users'];}['init'](){const _0xdddc0d=this['editor']['plugins']['get']('Users');for(const _0x4a65c3 of _0x22864e)_0x4a65c3['isAnonymous']||_0xdddc0d['getUser'](_0x4a65c3['id'])||_0xdddc0d['addUser'](_0x4a65c3);const _0x5ee51e=_0x33d331['repository']['getRevisions']();let _0x116707=null;const _0x42e13e=this['editor']['plugins']['get']('RevisionViewer');_0x42e13e['adapter']=_0x33d331['adapter'],_0x42e13e['bind']('isEnabled')['to'](_0x33d331),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2150c5,'isReadOnly',_0x46a4ac=>!_0x46a4ac);for(const _0x30e64f of _0x5ee51e){const _0x34bd6f=null===_0x30e64f['creator'];if(_0x34bd6f&&_0x30e64f['toVersion']===_0x30e64f['fromVersion'])continue;const _0x126684=_0x30e64f['toJSON']();_0x42e13e['addRevisionData'](_0x126684,(_0x47afea,_0x446cea,_0x2d78d9)=>{if(_0x34bd6f){if(_0x116707)_0x116707['_update'](_0x47afea,_0x446cea);else{if(!_0x446cea){const _0x1dfddd=_0x2d78d9['toJSON']();_0x1dfddd['id']=_0x20d582(),_0x33d331['saveRevision'](_0x1dfddd,_0x2d78d9['toVersion'])['then'](_0x362b08=>{_0x116707=_0x362b08;});}}}else _0x30e64f['_update'](_0x47afea,_0x446cea);});}}},g),_0x123df7);}['_enhanceShowRevisionViewerCallback'](){const _0x26dad6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x220728=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x135a26=this['editor']['plugins']['get']('Autosave');await _0x135a26['save']();}else await _0x220728['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5760d6=this['editor']['plugins']['get']('Dialog');_0x5760d6['isOpen']&&_0x5760d6['hide']();}const _0x4acd11=this['_getRevisionViewerEditorConfig']();return _0x26dad6(_0x4acd11)['then'](_0x3c8d09=>{return(this['_viewerEditor']=_0x3c8d09,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3c8d09;})['catch'](_0x3b9cb3=>(console['error'](_0x3b9cb3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3fab45=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3fab45(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2368f9=this['editor']['plugins']['get']('Annotations');_0x2368f9['refreshVisibility'](),_0x2368f9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5e55ce){const _0x485408=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3304e9=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3f8056=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3f8056,_0x5e55ce)['then'](_0x3d6b8f=>(_0x3304e9['style']['display']='block',_0x485408['style']['display']='none',_0x3d6b8f));}['_closeRevisionViewer'](_0x42faa8){const _0x401b91=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x401b91['style']['display']='',_0x42faa8['destroy']();}async['_restoreRevision'](_0xd37200){const _0x379497=this['editor'],_0x13c704=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x30e3ae=_0x379497['plugins']['get']('RevisionTracker'),_0x2deca1=_0x13c704['repository']['getRevision'](_0xd37200);let _0x1a35cc,_0x21817d,_0x2987cd;try{_0x1a35cc=await _0x13c704['getRevisionData'](_0x2deca1),_0x21817d=await _0x13c704['getRevisionRootsAttributes'](_0x2deca1);}catch(_0x1b81bc){return void console['error'](_0x1b81bc);}_0x379497['model']['change'](_0x162d82=>{for(const _0x2cb929 of Array['from'](_0x379497['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x162d82['removeMarker'](_0x2cb929);}),_0x13c704['isReady']=!0x1,_0x379497['model']['enqueueChange'](_0x230636=>{_0x230636['setSelection'](null),_0x230636['removeSelectionAttribute'](_0x379497['model']['document']['selection']['getAttributeKeys']());const _0x493cbb=Object['keys'](_0x1a35cc);for(const _0x3805b8 of _0x379497['model']['document']['roots'])'$graveyard'!=_0x3805b8['rootName']&&_0x3805b8['isAttached']()&&!_0x493cbb['includes'](_0x3805b8['rootName'])&&_0x230636['detachRoot'](_0x3805b8);for(const _0x6c4e62 of _0x493cbb){let _0x19add5=_0x379497['model']['document']['getRoot'](_0x6c4e62);_0x19add5&&_0x19add5['isAttached']()||(_0x19add5=_0x230636['addRoot'](_0x6c4e62));const _0x5aa298=_0x21817d[_0x6c4e62],_0x2393f2=Object['keys'](_0x5aa298),_0x246ba3=_0x1a35cc[_0x6c4e62];for(const _0x257c60 of _0x19add5['getAttributeKeys']())_0x2393f2['includes'](_0x257c60)||_0x230636['removeAttribute'](_0x257c60,_0x19add5);for(const _0x326fab of _0x2393f2)_0x230636['setAttribute'](_0x326fab,_0x21817d[_0x6c4e62][_0x326fab],_0x19add5);_0x230636['remove'](_0x230636['createRangeIn'](_0x19add5)),_0x230636['insert'](_0x379497['data']['parse'](_0x246ba3,_0x19add5),_0x19add5,0x0);}});const _0x513d6e=R(_0x379497['locale'],'Restored');if(_0x2deca1['name'])_0x2987cd=-0x1==_0x2deca1['name']['indexOf'](_0x513d6e)?_0x513d6e+':\x20'+_0x2deca1['name']:_0x2deca1['name'];else _0x2987cd=_0x513d6e+':\x20'+(_0x2deca1['createdAt']['toLocaleDateString'](_0x379497['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2deca1['createdAt']['toLocaleTimeString'](_0x379497['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x30e3ae['saveRevision']({'name':_0x2987cd}),_0x13c704['isReady']=!0x0,_0x379497['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x196587){super(_0x196587),this['_revisionViewer']=_0x196587['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x15421c=this['_revisionsRepository']['_revisions'],_0x69158b=this['_createRevisionActions'](),_0x642bcf=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x15421c,_0x69158b,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',(_0x25b510,_0x1d2dbe)=>{_0x1d2dbe['revisionViews']['on']('add',(_0x51f4d9,_0x4c7283)=>{_0x4c7283['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)),_0x642bcf['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3e87df=this['_revisionsRepository']['getRevision'](0x0);if(_0x3e87df){const _0x7b0916=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3e87df['id']);this['_revisionViewer']['compare'](_0x3e87df,_0x7b0916);}}['_handleRevisionSelected'](_0x3828c0,_0x49e711){const _0x8f019b=this['_revisionsRepository']['getRevision'](_0x49e711['id']),_0x1aac4f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x8f019b['id']);this['_revisionViewer']['compare'](_0x8f019b,_0x1aac4f);}['_handleRevisionSetName'](_0x5a4a64,_0xcae481){this['_revisionsRepository']['getRevision'](_0xcae481['id'])['setName'](_0xcae481['name']);}['_handleDiffChange'](_0x5ce7c8,_0x23a68e,_0x32c9b5){const _0x3d08c8=this['_revisionsRepository']['getRevisionsInDiff'](_0x32c9b5);_0x3d08c8['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3d08c8),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3d08c8[0x0]));}['_createRevisionActions'](){const _0x4fba7b=this['editor'],_0x3a10f4=g['availableRevisionActions'],_0x1903db=_0x4fba7b['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1903db['length'])return _0x1903db['map'](_0x474ffa=>{const _0x528ced='string'==typeof _0x474ffa?Object['assign']({},_0x3a10f4[_0x474ffa]):_0x474ffa;return _0x528ced['action']=_0x528ced['action']['bind'](this,_0x4fba7b),_0x528ced['isVisible']&&(_0x528ced['isVisible']=_0x528ced['isVisible']['bind'](this,_0x4fba7b)),_0x528ced;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x14aa36},_0x576b28)=>{const _0x417a8d=_0x14aa36['get'](d),_0x18bab9=_0x417a8d['repository'];let _0x21b288=_0x417a8d['diff']['newRevisionId'],_0x4fc41f=_0x576b28['id'];_0x18bab9['getIndex'](_0x21b288)>_0x18bab9['getIndex'](_0x4fc41f)&&([_0x21b288,_0x4fc41f]=[_0x4fc41f,_0x21b288]),_0x417a8d['compare'](_0x21b288,_0x4fc41f);},'isVisible':({plugins:_0x1796e4},_0x3f152a)=>{const _0x389089=_0x1796e4['get'](d);return!(_0x389089['repository']['getRevisionsInDiff'](_0x389089['diff'])['length']>0x2)&&!_0x3f152a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x486651,{id:_0x1e8b32})=>{_0x486651['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1e8b32);},'isVisible':({plugins:_0x40ef11},_0x535ccc)=>!!_0x40ef11['get'](d)['repository']['getLaterVisibleRevision'](_0x535ccc['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x110fcd},{id:_0x4cf8e0,revisionNameView:_0x2d3a7a})=>{const _0x142bbf=_0x110fcd['get'](d),_0x559ba4=_0x142bbf['repository']['getEarlierVisibleRevision'](_0x4cf8e0);_0x142bbf['compare'](_0x4cf8e0,_0x559ba4),_0x2d3a7a['focus'](),_0x2d3a7a['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1d5326,_0x1af508){super(_0x1d5326),this['_view']=_0x1af508,this['_toolbarConfig']=ht(_0x1d5326['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x1e2f16){const _0x18c458=this['editor'],_0x6d201c=this['view'],_0x25987a=_0x18c458['editing']['view'],_0x2d7e37=_0x6d201c['editable'],_0x39f0af=_0x25987a['document']['getRoot']();_0x2d7e37['name']=_0x39f0af['rootName'],_0x6d201c['render']();const _0x4cfb76=_0x2d7e37['element'];this['setEditableElement'](_0x2d7e37['name'],_0x4cfb76),_0x6d201c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x25987a['attachDomRoot'](_0x4cfb76),this['_elementReplacer']['replace'](_0x1e2f16,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xebc8f9=this['view'],_0x5cef8b=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5cef8b['detachDomRoot'](_0xebc8f9['editable']['name']),_0xebc8f9['destroy']();}['_initToolbar'](){const _0x34630a=this['view'];_0x34630a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x34630a['stickyPanel']['limiterElement']=_0x34630a['element'],_0x34630a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4c1d1b})=>_0x4c1d1b),_0x34630a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x34630a['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4b700c,_0x2611db,_0x369898={}){super(_0x4b700c),this['stickyPanel']=new lt(_0x4b700c),this['toolbar']=new nt(_0x4b700c,{'shouldGroupWhenFull':_0x369898['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x4b700c,_0x2611db);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x205c10,_0x292749){super(_0x292749),this['sourceElement']=_0x205c10,this['model']['document']['createRoot']();const _0x15be77=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x15be77);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x125290,_0x4484d6){const _0x2b92d3=new this(_0x125290,_0x4484d6);return await _0x2b92d3['initPlugins'](),await _0x2b92d3['ui']['init'](_0x125290),await _0x2b92d3['data']['init'](_0x2b92d3['config']['get']('initialData')||''),_0x2b92d3['fire']('ready'),_0x2b92d3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x9a5545{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c5713){function _0x1ac147(_0x3d5207){return _0x3d5207['map'](_0x9d4357=>String['fromCharCode'](_0x9d4357))['join']('');}super(_0x3c5713),this['result']='end',_0x3c5713[_0x1ac147([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ac147([0x76,0x69,0x65,0x77])][_0x1ac147([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ac147([0x61,0x75,0x74,0x6f]),_0x3c5713[_0x1ac147([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1ac147([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ac147([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1ac147([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1ac147([0x6f,0x6b])});}}class H extends _0x9a5545{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3671e5){if(super(_0x3671e5),!this['editor']['config']['get']('revisionHistory'))throw new _0x52c9ac('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xd1dcb3=>this['_showRevisionViewer']({..._0xd1dcb3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1e610f=>this['_closeRevisionViewer'](_0x1e610f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x14378c=>this['_restoreRevision'](_0x14378c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xaa7ef5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xaa7ef5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x336ea6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x336ea6);}['getRevision'](_0x4fefed){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4fefed);}['getRevisions'](_0x4ab34a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4ab34a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4cb82c=this['editor'],_0x1e833f=_0x48122b(_0x4cb82c,p),_0x3d535d=_0x4cb82c['plugins']['get']('RevisionTracker'),_0x27f321=_0x4cb82c['plugins']['get']('Users')['users'];return _0x1e833f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1e833f['lazyRoots'],(_0x1e833f['plugins']['push'](k,d,m,class extends _0x9a5545{static get['requires'](){return[d,'Users'];}['init'](){const _0x8960f0=this['editor']['plugins']['get']('Users');for(const _0x4c521a of _0x27f321)_0x4c521a['isAnonymous']||_0x8960f0['getUser'](_0x4c521a['id'])||_0x8960f0['addUser'](_0x4c521a);const _0x24bd02=_0x3d535d['repository']['getRevisions']();let _0x302dbe=null;const _0x89efa0=this['editor']['plugins']['get']('RevisionViewer');_0x89efa0['adapter']=_0x3d535d['adapter'],_0x89efa0['bind']('isEnabled')['to'](_0x3d535d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4cb82c,'isReadOnly',_0x1df206=>!_0x1df206);for(const _0x538037 of _0x24bd02){const _0x38210a=null===_0x538037['creator'];if(_0x38210a&&_0x538037['toVersion']===_0x538037['fromVersion'])continue;const _0x4ea644=_0x538037['toJSON']();_0x89efa0['addRevisionData'](_0x4ea644,(_0x1ecd1c,_0x276866,_0x55f73e)=>{if(_0x38210a){if(_0x302dbe)_0x302dbe['_update'](_0x1ecd1c,_0x276866);else{if(!_0x276866){const _0x5b08e0=_0x55f73e['toJSON']();_0x5b08e0['id']=_0x1ced54(),_0x3d535d['saveRevision'](_0x5b08e0,_0x55f73e['toVersion'])['then'](_0x4e472a=>{_0x302dbe=_0x4e472a;});}}}else _0x538037['_update'](_0x1ecd1c,_0x276866);});}}},g),_0x1e833f);}['_enhanceShowRevisionViewerCallback'](){const _0x3e00d1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x48b95a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x52dcfa=this['editor']['plugins']['get']('Autosave');await _0x52dcfa['save']();}else await _0x48b95a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4161db=this['editor']['plugins']['get']('Dialog');_0x4161db['isOpen']&&_0x4161db['hide']();}const _0x56c004=this['_getRevisionViewerEditorConfig']();return _0x3e00d1(_0x56c004)['then'](_0x37b99a=>{return(this['_viewerEditor']=_0x37b99a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x37b99a;})['catch'](_0x5ac3f6=>(console['error'](_0x5ac3f6),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xc17422=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xc17422(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x39e2bf=this['editor']['plugins']['get']('Annotations');_0x39e2bf['refreshVisibility'](),_0x39e2bf['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5f0f0c){const _0x1d8bf6=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x437908=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2830c2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2830c2,_0x5f0f0c)['then'](_0xb848c3=>(_0x437908['style']['display']='block',_0x1d8bf6['style']['display']='none',_0xb848c3));}['_closeRevisionViewer'](_0x5b240a){const _0x56654f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x56654f['style']['display']='',_0x5b240a['destroy']();}async['_restoreRevision'](_0x41033e){const _0x42da29=this['editor'],_0x2d39b1=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x58b872=_0x42da29['plugins']['get']('RevisionTracker'),_0x3e16bb=_0x2d39b1['repository']['getRevision'](_0x41033e);let _0x23f3f4,_0x3d240d,_0x575e66;try{_0x23f3f4=await _0x2d39b1['getRevisionData'](_0x3e16bb),_0x3d240d=await _0x2d39b1['getRevisionRootsAttributes'](_0x3e16bb);}catch(_0x1843d4){return void console['error'](_0x1843d4);}_0x42da29['model']['change'](_0x58b400=>{for(const _0x382d89 of Array['from'](_0x42da29['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x58b400['removeMarker'](_0x382d89);}),_0x2d39b1['isReady']=!0x1,_0x42da29['model']['enqueueChange'](_0x311643=>{_0x311643['setSelection'](null),_0x311643['removeSelectionAttribute'](_0x42da29['model']['document']['selection']['getAttributeKeys']());const _0x451bd5=Object['keys'](_0x23f3f4);for(const _0x49df59 of _0x42da29['model']['document']['roots'])'$graveyard'!=_0x49df59['rootName']&&_0x49df59['isAttached']()&&!_0x451bd5['includes'](_0x49df59['rootName'])&&_0x311643['detachRoot'](_0x49df59);for(const _0x3af571 of _0x451bd5){let _0x1307ff=_0x42da29['model']['document']['getRoot'](_0x3af571);_0x1307ff&&_0x1307ff['isAttached']()||(_0x1307ff=_0x311643['addRoot'](_0x3af571));const _0x29e9db=_0x3d240d[_0x3af571],_0x6f4fc7=Object['keys'](_0x29e9db),_0x492c19=_0x23f3f4[_0x3af571];for(const _0x2ae031 of _0x1307ff['getAttributeKeys']())_0x6f4fc7['includes'](_0x2ae031)||_0x311643['removeAttribute'](_0x2ae031,_0x1307ff);for(const _0x395f9c of _0x6f4fc7)_0x311643['setAttribute'](_0x395f9c,_0x3d240d[_0x3af571][_0x395f9c],_0x1307ff);_0x311643['remove'](_0x311643['createRangeIn'](_0x1307ff)),_0x311643['insert'](_0x42da29['data']['parse'](_0x492c19,_0x1307ff),_0x1307ff,0x0);}});const _0x311173=R(_0x42da29['locale'],'Restored');if(_0x3e16bb['name'])_0x575e66=-0x1==_0x3e16bb['name']['indexOf'](_0x311173)?_0x311173+':\x20'+_0x3e16bb['name']:_0x3e16bb['name'];else _0x575e66=_0x311173+':\x20'+(_0x3e16bb['createdAt']['toLocaleDateString'](_0x42da29['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3e16bb['createdAt']['toLocaleTimeString'](_0x42da29['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x58b872['saveRevision']({'name':_0x575e66}),_0x2d39b1['isReady']=!0x0,_0x42da29['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|