@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250213.0 → 0.0.0-nightly-20250214.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.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/revision/utils.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/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x3c8524(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x26ee56){super(),this['id']=_0x26ee56['id']||_0x3306a9(),this['creator']=_0x26ee56['creator']||null,this['authors']=_0x26ee56['authors']||[],this['diffData']=_0x26ee56['diffData']||null,this['toVersion']=_0x26ee56['toVersion']||0x0,this['fromVersion']=_0x26ee56['fromVersion']||0x0,this['set']('name',_0x26ee56['name']||''),this['set']('createdAt',_0x26ee56['createdAt']||new Date()),this['set']('attributes',_0x26ee56['attributes']||{});}['setName'](_0x3e878e){this['_update']({'name':_0x3e878e});}['setAttribute'](_0x3b8470,_0x2fea9b){const _0xea2cb7=_0x1625ab(this['attributes']);_0x24db01(_0xea2cb7,_0x3b8470,_0x2fea9b),this['_update']({'attributes':_0xea2cb7});}['removeAttribute'](_0x48c313){const _0x3b04bd=_0x1625ab(this['attributes']);_0x5f4337(_0x3b04bd,_0x48c313),this['_update']({'attributes':_0x3b04bd});}['_update'](_0x304e27,_0xcdf5ab=!0x1){let _0xb6ec17=!0x1;const _0x1218cf={'id':this['id']},_0x4d120f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x14786b of _0x4d120f){const _0x3db00c=_0x304e27[_0x14786b];void 0x0!==_0x3db00c&&_0x3db00c!==this[_0x14786b]&&(this[_0x14786b]=_0x3db00c,_0x1218cf[_0x14786b]=_0x3db00c,_0xb6ec17=!0x0);}_0xb6ec17&&(_0x1218cf['authors']&&(_0x1218cf['authorsIds']=_0x1218cf['authors']['map'](_0x5af2d6=>_0x5af2d6['id']),delete _0x1218cf['authors']),this['fire']('_update',_0x1218cf,_0xcdf5ab));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x477f90=>_0x477f90['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x21de30{['_revisions'];static get['requires'](){return[_0x1e9bf6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4871fd){super(_0x4871fd),this['_revisions']=new _0x2a5e32();}['afterInit'](){!async function(_0x11533f){const _0xc59b27=_0x864053([0x35,0x30,0x31,0x55,0x58,0x75,0x5a,0x42,0x6d,0x62,0x77,0x72,0x32,0x4a,0x54,0x52,0x51,0x43,0x79,0x44,0x33,0x78,0x53,0x71,0x59,0x6a,0x7a,0x47,0x6b,0x61,0x70,0x4b,0x45,0x4f,0x48,0x63,0x67,0x6e,0x68,0x37,0x41,0x4d,0x39,0x50,0x73,0x69,0x49,0x38,0x74,0x46,0x34,0x6f,0x36,0x76,0x4e,0x66,0x65,0x64,0x4c,0x57,0x6c,0x56]),_0x40c3e2=0xeb829,_0x12618e=0x5a520b21,_0x3550d1=0x5a555441^_0x12618e,_0x9702c2=window[_0x864053([0x44,0x61,0x74,0x65])][_0x864053([0x6e,0x6f,0x77])](),_0x50dbed=_0x11533f[_0x864053([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44aad2=new window[(_0x864053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50efc0=>{_0x50dbed[_0x864053([0x6f,0x6e,0x63,0x65])](_0x864053([0x72,0x65,0x61,0x64,0x79]),_0x50efc0);}),_0x50788c={[_0x864053([0x6b,0x74,0x79])]:_0x864053([0x45,0x43]),[_0x864053([0x75,0x73,0x65])]:_0x864053([0x73,0x69,0x67]),[_0x864053([0x63,0x72,0x76])]:_0x864053([0x50,0x2d,0x32,0x35,0x36]),[_0x864053([0x78])]:_0x864053([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]),[_0x864053([0x79])]:_0x864053([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]),[_0x864053([0x61,0x6c,0x67])]:_0x864053([0x45,0x53,0x32,0x35,0x36])},_0xcf076e=_0x50dbed[_0x864053([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x864053([0x67,0x65,0x74])](_0x864053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9d3a6e(){let _0x601209,_0x407c46=null,_0x30e86b=null;try{if(_0xcf076e==_0x864053([0x47,0x50,0x4c]))return _0x864053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x601209=_0x44d25b(),!_0x601209)return _0x864053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x601209[_0x864053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30e86b=_0x22e1e8(_0x601209[_0x864053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x601209[_0x864053([0x6a,0x74,0x69])])),await _0x5387d5()?_0x57700c()?_0xfabfba()?_0x864053([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23cb14()?(_0x601209[_0x864053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x864053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x407c46=_0x5c1872(_0x864053([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x601209[_0x864053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x864053([0x74,0x72,0x69,0x61,0x6c])&&(_0x407c46=_0x5c1872(_0x864053([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5011d0()):_0x864053([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x864053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x864053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11c531){return _0x864053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xfabfba(){const _0x2788a1=[_0x864053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x864053([0x74,0x72,0x69,0x61,0x6c])][_0x864053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x601209[_0x864053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9702c2/0x3e8:0xe10*_0x3550d1;return _0x601209[_0x864053([0x65,0x78,0x70])]<_0x2788a1;}function _0x57700c(){const _0x110ba4=_0x601209[_0x864053([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x110ba4)return!0x1;if(_0x110ba4[_0x864053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x864053([0x2a])))return!0x0;if(_0x110ba4[_0x864053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x864053([0x52,0x48])))return!0x0;if(_0x110ba4[_0x864053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x864053([0x52,0x52,0x48]))){if(_0x17dd65())return!0x0;if(_0x27a911()||_0x24de6b())return!0x0;}return!0x1;}function _0x23cb14(){const _0x431017=_0x601209[_0x864053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x431017||0x0==_0x431017[_0x864053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53cabb}=new URL(window[_0x864053([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x431017[_0x864053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53cabb))return!0x0;const _0x2fc293=_0x53cabb[_0x864053([0x73,0x70,0x6c,0x69,0x74])](_0x864053([0x2e]));return _0x431017[_0x864053([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x93521a=>_0x93521a[_0x864053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x864053([0x2a])))[_0x864053([0x6d,0x61,0x70])](_0x40b806=>_0x40b806[_0x864053([0x73,0x70,0x6c,0x69,0x74])](_0x864053([0x2e])))[_0x864053([0x73,0x6f,0x6d,0x65])](_0x52fa5a=>_0x2fc293[_0x864053([0x65,0x76,0x65,0x72,0x79])]((_0x27b222,_0x9f2a91)=>_0x52fa5a[_0x9f2a91]===_0x27b222||_0x52fa5a[_0x9f2a91]===_0x864053([0x2a])));}function _0x5011d0(){return _0x407c46&&_0x30e86b?new window[(_0x864053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2318a1,_0x1229c8)=>{_0x407c46[_0x864053([0x74,0x68,0x65,0x6e])](_0x2318a1,_0x1229c8),_0x30e86b[_0x864053([0x74,0x68,0x65,0x6e])](_0x1888b7=>{_0x1888b7!=_0x864053([0x56,0x61,0x6c,0x69,0x64])&&_0x2318a1(_0x1888b7);},_0x1229c8);}):_0x407c46||_0x30e86b||_0x864053([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22e1e8(_0x374b57,_0x5b2c0d){return new window[(_0x864053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x185a0a=>{if(_0x355ce7())return _0x185a0a(_0x864053([0x56,0x61,0x6c,0x69,0x64]));_0x31e2f4(),_0x50dbed[_0x864053([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x864053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ed0dc=!0x1;const _0x97db58=_0x3306a9();function _0x4f0e2f(_0x29a265){return!!_0x29a265&&(typeof _0x29a265===_0x864053([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29a265===_0x864053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29a265[_0x864053([0x74,0x68,0x65,0x6e])]===_0x864053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29a265[_0x864053([0x63,0x61,0x74,0x63,0x68])]===_0x864053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2747d7(_0x12a990){_0x4c289f(_0x12a990)[_0x864053([0x74,0x68,0x65,0x6e])](_0x3e2146=>{if(!_0x3e2146||_0x3e2146[_0x864053([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x864053([0x6f,0x6b]))return _0x864053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43d2e0(_0x1db494(_0x97db58+_0x5b2c0d))!=_0x3e2146[_0x864053([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x864053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x864053([0x56,0x61,0x6c,0x69,0x64]);})[_0x864053([0x74,0x68,0x65,0x6e])](_0x38ee10=>(_0x542243(),_0x38ee10),()=>{const _0x2289fc=_0x14dcb3();return null==_0x2289fc?(_0x542243(),_0x864053([0x56,0x61,0x6c,0x69,0x64])):_0x864053(_0x9702c2-_0x2289fc>(0x7e5e8f21^_0x12618e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x864053([0x74,0x68,0x65,0x6e])](_0x185a0a)[_0x864053([0x63,0x61,0x74,0x63,0x68])](()=>{_0x185a0a(_0x864053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x358e3c=0x5a64e5a1^_0x12618e;function _0x542243(){const _0x19ce87=_0x864053([0x6c,0x6c,0x63,0x74,0x2d])+_0x43d2e0(_0x1db494(_0x374b57)),_0x3e30cd=_0x31eb42(_0x43d2e0(window[_0x864053([0x4d,0x61,0x74,0x68])][_0x864053([0x63,0x65,0x69,0x6c])](_0x9702c2/_0x358e3c)));window[_0x864053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x864053([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19ce87,_0x3e30cd);}function _0x14dcb3(){const _0x36d2b3=_0x864053([0x6c,0x6c,0x63,0x74,0x2d])+_0x43d2e0(_0x1db494(_0x374b57)),_0x13cbe5=window[_0x864053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x864053([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36d2b3);return _0x13cbe5?window[_0x864053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31eb42(_0x13cbe5),0x10)*_0x358e3c:null;}function _0x4c289f(_0x1226fa){return new window[(_0x864053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x171ed8,_0x221000)=>{_0x1226fa[_0x864053([0x74,0x68,0x65,0x6e])](_0x171ed8,_0x221000),window[_0x864053([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x221000,0x5a53dfe1^_0x12618e);});}}_0x50dbed[_0x864053([0x6f,0x6e])](_0x864053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x454af3,_0x2995e3)=>{if(_0x2995e3[0x0]!=_0x374b57)return _0x185a0a(_0x864053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2995e3[0x1]={..._0x2995e3[0x1],[_0x864053([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x97db58};},{[_0x864053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x864053([0x68,0x69,0x67,0x68])}),_0x50dbed[_0x864053([0x6f,0x6e])](_0x864053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37861e=>{_0x4f0e2f(_0x37861e[_0x864053([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ed0dc=!0x0,_0x2747d7(_0x37861e[_0x864053([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x864053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x864053([0x6c,0x6f,0x77])}),_0x44aad2[_0x864053([0x74,0x68,0x65,0x6e])](()=>{_0x5ed0dc||_0x185a0a(_0x864053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x355ce7(){return _0x50dbed[_0x864053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x864053([0x76,0x69,0x65,0x77])][_0x864053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x864053([0x61,0x75,0x74,0x6f]);}function _0x31e2f4(){_0x50dbed[_0x864053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x864053([0x76,0x69,0x65,0x77])][_0x864053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x864053([0x61,0x75,0x74,0x6f]);}}function _0x5c1872(_0x156d19){const _0x597efd=[new window[(_0x864053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e8c90=>setTimeout(_0x5e8c90,0x5a5b35ed^_0x12618e)),_0x44aad2[_0x864053([0x74,0x68,0x65,0x6e])](()=>new window[(_0x864053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x631404=>{const _0xb93653=0x5a520b26^_0x12618e,_0x1040e4=_0x11533f[_0x864053([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x37a031(){_0x1040e4[_0x864053([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xb93653&&_0x631404();}_0x37a031(),_0x1040e4[_0x864053([0x6f,0x6e])](_0x864053([0x61,0x64,0x64]),_0x37a031);})),new window[(_0x864053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4947b9=>{function _0x206524(){for(const _0x1cee52 in window)if(window[_0x864053([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x864053([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1cee52))&&window[_0x1cee52]==_0x40c3e2)return _0x4947b9();_0x50dbed[_0x864053([0x73,0x74,0x61,0x74,0x65])]!=_0x864053([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x864053([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x206524,0x5a5218a9^_0x12618e);}_0x3e76e9(_0x864053([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x206524();})];return window[_0x864053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x864053([0x72,0x61,0x63,0x65])](_0x597efd)[_0x864053([0x74,0x68,0x65,0x6e])](()=>_0x156d19);}async function _0x4164b5(){if(await _0x44aad2,_0x3e76e9(_0x864053([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5dda91=_0x11533f[_0x864053([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x10030f=_0x11533f[_0x864053([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])](_0x5dda91[_0x864053([0x69,0x64])]),_0x388eba=_0x54e25d(_0x864053([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x388eba[_0x864053([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5dda91['id'],_0x10030f?_0x10030f['id']:null,!0x0),_0x388eba[_0x864053([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x864053([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x388eba[_0x864053([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x388eba[_0x864053([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x10c0ba,void(_0x388eba[_0x864053([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x10c0ba);}if(_0x3e76e9(_0x864053([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2a90bd=_0x54e25d(_0x864053([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2a90bd[_0x864053([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x864053([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2a90bd[_0x864053([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2a90bd[_0x864053([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x10c0ba,_0x2a90bd[_0x864053([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x10c0ba;}_0x50dbed[_0x864053([0x6d,0x6f,0x64,0x65,0x6c])][_0x864053([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10c0ba,_0x50dbed[_0x864053([0x6d,0x6f,0x64,0x65,0x6c])][_0x864053([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10c0ba,_0x50dbed[_0x864053([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x864053([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17dd65(){return _0x3e76e9(_0x864053([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54e25d(_0x864053([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x864053([0x73,0x74,0x61,0x74,0x65])]==_0x864053([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x27a911(){return _0x3e76e9(_0x864053([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x24de6b(){return _0x3e76e9(_0x864053([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x57a5b7(_0x242f96){const _0x40b002=_0x440b42();_0x50dbed[_0x40b002]=_0x864053([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])+_0x242f96,_0x242f96[_0x864053([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x864053([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x440b42()]=_0x40c3e2),_0x242f96!=_0x864053([0x56,0x61,0x6c,0x69,0x64])&&_0x4164b5();}function _0x440b42(){const _0x315554=window[_0x864053([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x864053([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x864053([0x6e,0x6f,0x77])]())[_0x864053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x864053([0x2e]),'');let _0x5d8eb1=_0x864053([0x55]);for(let _0xefc752=0x0;_0xefc752<_0x315554[_0x864053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xefc752+=0x2){let _0x372dc2=window[_0x864053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x315554[_0x864053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xefc752,_0xefc752+0x2));_0x372dc2>=_0xc59b27[_0x864053([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x372dc2-=_0xc59b27[_0x864053([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d8eb1+=_0xc59b27[_0x372dc2];}return _0x5d8eb1;}function _0x44d25b(){const _0x3afe9f=_0xcf076e[_0x864053([0x73,0x70,0x6c,0x69,0x74])](_0x864053([0x2e]));if(0x3!=_0x3afe9f[_0x864053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5da442(_0x3afe9f[0x1]);function _0x5da442(_0x556016){const _0x2c62a9=_0x567ab0(_0x556016);return _0x2c62a9&&_0xb4e4f2()?_0x2c62a9:null;function _0xb4e4f2(){const _0x9178fb=_0x2c62a9[_0x864053([0x6a,0x74,0x69])],_0x323f2f=window[_0x864053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9178fb[_0x864053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9178fb[_0x864053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc25460={..._0x2c62a9,[_0x864053([0x6a,0x74,0x69])]:_0x9178fb[_0x864053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9178fb[_0x864053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc25460[_0x864053([0x76,0x63])],_0x1db494(_0xc25460)==_0x323f2f;}}}async function _0x5387d5(){let _0x88f7ff=!0x0;try{const _0x4fcc7b=_0xcf076e[_0x864053([0x73,0x70,0x6c,0x69,0x74])](_0x864053([0x2e])),[_0x4c8ba8,_0x27fd80,_0x441e48]=_0x4fcc7b;return _0x13c16b(_0x4c8ba8),await _0x5528c6(_0x4c8ba8,_0x27fd80,_0x441e48),_0x88f7ff;}catch(_0x2b33c5){return!0x1;}function _0x13c16b(_0x1e2c2c){const _0x4b71bc=_0x567ab0(_0x1e2c2c);_0x4b71bc&&_0x4b71bc[_0x864053([0x61,0x6c,0x67])]==_0x864053([0x45,0x53,0x32,0x35,0x36])||(_0x88f7ff=!0x1);}async function _0x5528c6(_0x3fdb33,_0x31d30a,_0x521042){const _0x14d900=window[_0x864053([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x864053([0x66,0x72,0x6f,0x6d])](_0x2c4c57(_0x521042),_0x329968=>_0x329968[_0x864053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5011b0=new window[(_0x864053([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x864053([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3fdb33+_0x864053([0x2e])+_0x31d30a),_0x186382=window[_0x864053([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x864053([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x186382)return;const _0x54fa3c=await _0x186382[_0x864053([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x864053([0x6a,0x77,0x6b]),_0x50788c,{[_0x864053([0x6e,0x61,0x6d,0x65])]:_0x864053([0x45,0x43,0x44,0x53,0x41]),[_0x864053([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x864053([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x864053([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x186382[_0x864053([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x864053([0x6e,0x61,0x6d,0x65])]:_0x864053([0x45,0x43,0x44,0x53,0x41]),[_0x864053([0x68,0x61,0x73,0x68])]:{[_0x864053([0x6e,0x61,0x6d,0x65])]:_0x864053([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54fa3c,_0x14d900,_0x5011b0)||(_0x88f7ff=!0x1);}}function _0x567ab0(_0x35dc90){return _0x35dc90[_0x864053([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x864053([0x65,0x79]))?JSON[_0x864053([0x70,0x61,0x72,0x73,0x65])](_0x2c4c57(_0x35dc90)):null;}function _0x2c4c57(_0x2f9e6e){return window[_0x864053([0x61,0x74,0x6f,0x62])](_0x2f9e6e[_0x864053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x864053([0x2b]))[_0x864053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x864053([0x2f])));}function _0x1db494(_0x1d3e68){let _0x1800a3=0x1505;function _0x1fc430(_0x4cce58){for(let _0x5a5782=0x0;_0x5a5782<_0x4cce58[_0x864053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a5782++){const _0x123788=_0x4cce58[_0x864053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a5782);_0x1800a3=(_0x1800a3<<0x5)+_0x1800a3+_0x123788,_0x1800a3&=_0x1800a3;}}function _0x4bde67(_0x337af6){Array[_0x864053([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x337af6)?_0x337af6[_0x864053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bde67):_0x337af6&&typeof _0x337af6==_0x864053([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x864053([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x337af6)[_0x864053([0x73,0x6f,0x72,0x74])]()[_0x864053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ecc36,_0x41eea5])=>{_0x1fc430(_0x3ecc36),_0x4bde67(_0x41eea5);}):_0x1fc430(window[_0x864053([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x337af6));}return _0x4bde67(_0x1d3e68),_0x1800a3>>>0x0;}function _0x43d2e0(_0x4813f3){return _0x4813f3[_0x864053([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x864053([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x864053([0x30]));}function _0x31eb42(_0x2586b3){return _0x2586b3[_0x864053([0x73,0x70,0x6c,0x69,0x74])]('')[_0x864053([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x864053([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e76e9(_0x165375){return _0x50dbed[_0x864053([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x864053([0x68,0x61,0x73])](_0x165375);}function _0x54e25d(_0x59819b){return _0x50dbed[_0x864053([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x864053([0x67,0x65,0x74])](_0x59819b);}function _0x10c0ba(){}function _0x864053(_0x149ddc){return _0x149ddc['map'](_0x491d2f=>String['fromCharCode'](_0x491d2f))['join']('');}_0x57a5b7(await _0x9d3a6e());}(this);}['createRevision'](_0x2032c0){const _0x45e92d=this['editor']['plugins']['get']('Users');return new a({'id':_0x2032c0['id'],'name':_0x2032c0['name'],'creator':_0x2032c0['creatorId']?_0x45e92d['getUser'](_0x2032c0['creatorId']):null,'diffData':_0x2032c0['diffData']||_0x2032c0['data'],'authors':_0x2032c0['authorsIds']['map'](_0x68269f=>_0x45e92d['getUser'](_0x68269f)),'createdAt':new Date(_0x2032c0['createdAt']),'attributes':_0x2032c0['attributes'],'fromVersion':_0x2032c0['fromVersion'],'toVersion':_0x2032c0['toVersion']});}['addRevision'](_0x57cd08,_0x4a3725=0x0){this['_revisions']['add'](_0x57cd08,_0x4a3725);}['getRevision'](_0x2c7859){return this['_revisions']['get'](_0x2c7859);}['getRevisions'](_0x100fac={'toJSON':!0x1}){const _0x1e97c0=Array['from'](this['_revisions']);return _0x1e97c0['reverse'](),_0x100fac['toJSON']?_0x1e97c0['map'](_0x91ef06=>_0x91ef06['toJSON']()):_0x1e97c0;}['getIndex'](_0x315e0b){return this['_revisions']['getIndex'](_0x315e0b);}['getEarlierVisibleRevision'](_0x45bc57){const [,_0x121fa9]=this['getRevisionsIterator'](_0x45bc57,{'direction':'earlier'});return _0x121fa9;}['getLaterVisibleRevision'](_0x43ec0a){const [,_0x59cbf9]=this['getRevisionsIterator'](_0x43ec0a,{'direction':'later'});return _0x59cbf9;}['getRevisionsInDiff'](_0x7b9610){const _0x2b178d=[];for(const _0x1aa519 of this['getRevisionsIterator'](_0x7b9610['newRevisionId']))if(_0x2b178d['push'](_0x1aa519),_0x1aa519['id']===_0x7b9610['oldRevisionId'])break;return _0x2b178d;}*['getRevisionsIterator'](_0x3f3f69,{direction:_0x269d82='earlier',filter:_0x4a5547=()=>!0x0}={}){const _0x27ab56='earlier'===_0x269d82?0x1:-0x1;let _0x1fc75e=this['_revisions']['get'](_0x3f3f69),_0x27a335=this['getIndex'](_0x1fc75e);for(yield _0x1fc75e;_0x1fc75e;){if(_0x27a335+=_0x27ab56,_0x1fc75e=this['getRevision'](_0x27a335),!_0x1fc75e)return;_0x4a5547(_0x1fc75e)&&(yield _0x1fc75e);}}}function m(_0x57f336,_0x38b97c,_0x46a163){const t=_0x57f336['t'];switch(_0x38b97c){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'},_0x46a163);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x46a163);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 P={'c':_0x4a64f2,'a':_0x1b8cef,'e':_0x258f56,'r':_0x4f462b,'u':_0xf04fa4};class l extends _0x21de30{['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[_0x1e9bf6,j,_0x40cc0e];}constructor(_0x3cfb98){super(_0x3cfb98),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5a428f=_0x3306a9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5a428f},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 _0x4408a9=this['repository']['getRevision'](0x0),_0x1a42bc=_0x4408a9&&null===_0x4408a9['creator']?_0x4408a9:null;if(this['_continueCurrentRevision']=!!_0x1a42bc&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x20b9c=this['_source']['getCurrentRevisionId'](),_0x16b492=this['repository']['getRevision'](_0x20b9c);if(_0x16b492)this['_startingVersion']=_0x16b492['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x26055f=this['_source']['history']['_operations']['find'](_0x51bf5e=>!_0x51bf5e['_isInit']),_0x2ab96a=_0x26055f?_0x26055f['baseVersion']:this['_source']['history']['version'];_0x4408a9?(_0x4408a9['toVersion']<_0x2ab96a&&_0x4408a9['_update']({'toVersion':_0x2ab96a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1a42bc['id'],this['_startingVersion']=_0x1a42bc['fromVersion']):(this['_startingVersion']=_0x4408a9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ab96a,this['_continueCurrentRevision']=!0x1);}}else _0x1a42bc&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1a42bc['toVersion'],this['editor']['model']['document']['history']['version']),_0x1a42bc['fromVersion']===_0x1a42bc['toVersion']?(0x0!==_0x1a42bc['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a42bc['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a42bc['id'],this['_startingVersion']=_0x1a42bc['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',_0x25b079=>!_0x25b079),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2634cd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44d332;for(const _0x13ad83 in _0x2634cd){const _0x1798c0=_0x13ad83,_0x5e66a9=_0x2634cd[_0x1798c0];if('revisionHistoryLicenseKeyValid'==_0x5e66a9||'revisionHistoryLicenseKeyInvalid'==_0x5e66a9||'revisionHistoryLicenseKeyExpired'==_0x5e66a9||'revisionHistoryLicenseKeyDomainLimit'==_0x5e66a9||'revisionHistoryLicenseKeyNotAllowed'==_0x5e66a9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5e66a9||'revisionHistoryLicenseKeyTrialLimit'==_0x5e66a9||'revisionHistoryLicenseKeyUsageLimit'==_0x5e66a9){delete _0x2634cd[_0x1798c0],_0x44d332=_0x5e66a9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x44d332&&_0x2634cd['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x44d332&&_0x2634cd['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x44d332&&_0x2634cd['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x44d332&&_0x2634cd['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x44d332&&_0x2634cd['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x44d332&&_0x2634cd['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x44d332&&_0x2634cd['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2053f4=this['repository']['getRevision'](0x0),_0x2450f2=await this['getRevisionDocumentData'](_0x2053f4),_0x2312b3=await this['getRevisionRootsAttributes'](_0x2053f4);this['_replaceEditorDataWithRevisionData'](_0x2450f2,_0x2312b3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2bdaf1){this['_source']=_0x2bdaf1;}async['update'](){const _0x27807c=await this['_source']['getLatestVersion']();if(_0x27807c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x47468b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x27807c});_0x47468b['authors']=_0x47468b['authorsIds']['map'](_0x5d853d=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d853d)),this['currentRevision']['_update'](_0x47468b);}}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'](_0x4c5864={},_0x93e8d4=null){const _0x3f81f1=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x93e8d4>this['currentRevision']['toVersion']&&(_0x93e8d4=null),null===_0x93e8d4&&(_0x93e8d4=await this['_source']['getLatestVersion']());const _0x101619=this['_getFromVersion'](_0x93e8d4),_0x412a67=this['buildRevisionData']({'from':_0x101619,'to':_0x93e8d4});if(this['currentRevision']['toVersion']<_0x93e8d4){const _0x2c8582=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x93e8d4,'to':_0x93e8d4});_0x2c8582['authors']=[],_0x2c8582['authorsIds']=[],_0x2c8582['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2c8582,!0x0),delete _0x2c8582['authors'],_0x3f81f1['push'](_0x2c8582);}_0x4c5864['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c5864['name']=_0x4c5864['name']||null,_0x4c5864['id']=_0x4c5864['id']||_0x3306a9(),_0x4c5864={..._0x4c5864,..._0x412a67};const _0x367a92=this['addRevisionData'](_0x4c5864);_0x3f81f1['push'](_0x4c5864);const _0x36db1a=this['repository']['getIndex'](_0x367a92);if(0x0!==_0x36db1a){const _0x1059ba=this['repository']['getRevision'](_0x36db1a-0x1);if(_0x1059ba['fromVersion']!==_0x93e8d4){const _0x45323f=this['_revisionDataBuilder']['getData'](_0x93e8d4,_0x1059ba['toVersion']),_0x4f85fd={'id':_0x1059ba['id'],'diffData':_0x45323f['diffData'],'authorsIds':_0x45323f['authorsIds'],'authors':_0x45323f['authorsIds']['map'](_0x37eb27=>this['editor']['plugins']['get']('Users')['getUser'](_0x37eb27)),'fromVersion':_0x93e8d4};_0x1059ba===this['currentRevision']&&(_0x4f85fd['createdAt']=new Date(_0x4c5864['createdAt']['getTime']()+0xa)),_0x1059ba['_update'](_0x4f85fd,!0x0),delete _0x4f85fd['authors'],_0x3f81f1['push'](_0x4f85fd);}}if(this['adapter']){for(const _0x38e203 of _0x3f81f1)this['_bufferUpdate'](_0x38e203['id'],_0x38e203,!0x0);this['sendBufferedUpdates']();}return _0x367a92;}['addRevisionData'](_0x997a6){const _0x30b78d=this['repository']['createRevision'](_0x997a6);return this['adapter']&&_0x30b78d['on']('_update',(_0x5c851e,_0xdc7663,_0x28ffef)=>{_0x28ffef||(this['_bufferUpdate'](_0xdc7663['id'],_0xdc7663,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x30b78d,this['_findInsertionIndex'](_0x30b78d)),_0x30b78d;}async['getRevisionDocumentData'](_0x4c53e2){await this['_loadRevisionData'](_0x4c53e2);const _0x1ced2f={};for(const _0x539ea1 in _0x4c53e2['diffData']){if(_0x4c53e2['diffData'][_0x539ea1]['attachChange']&&!_0x4c53e2['diffData'][_0x539ea1]['attachChange']['isAttached'])continue;const _0x3dcb34=this['_removeRevisionMarkers'](JSON['parse'](_0x4c53e2['diffData'][_0x539ea1]['insertions'])),_0xdd13ca=this['editor']['editing']['view']['document'],_0x5da01c=new _0x5a4efd(_0xdd13ca,_0x3dcb34['map'](_0x5a5b2d=>C(_0x5a5b2d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1ced2f[_0x539ea1]=this['editor']['data']['processor']['toData'](_0x5da01c),this['editor']['data']['processor']['useFillerType']('default');}return _0x1ced2f;}async['getRevisionRootsAttributes'](_0x56575e){await this['_loadRevisionData'](_0x56575e);const _0x5058f1={};for(const _0x10a89e in _0x56575e['diffData'])_0x56575e['diffData'][_0x10a89e]['attachChange']&&!_0x56575e['diffData'][_0x10a89e]['attachChange']['isAttached']||(_0x5058f1[_0x10a89e]=_0x56575e['diffData'][_0x10a89e]['attributesAfter']||{});return _0x5058f1;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3b9c98=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x6c09c3=0x0;_0x6c09c3<_0x3b9c98['length'];_0x6c09c3++){const _0x3754fe=_0x3b9c98[_0x6c09c3];let _0x582b0c=!0x1;for(const _0x4af895 of Object['keys'](_0x3754fe))void 0x0===_0x3754fe[_0x4af895]?delete _0x3754fe[_0x4af895]:'id'!==_0x4af895&&(_0x582b0c=!0x0);_0x582b0c||(_0x3b9c98[_0x6c09c3]=null);}if(_0x3b9c98=_0x3b9c98['filter'](_0x4a8443=>null!==_0x4a8443),!_0x3b9c98['length'])return;for(let _0x3b0b83=0x0;_0x3b0b83<_0x3b9c98['length'];_0x3b0b83++){const _0x3b64ca=_0x3b9c98[_0x3b0b83];void 0x0!==_0x3b64ca['fromVersion']&&void 0x0===_0x3b64ca['toVersion']&&(_0x3b64ca['toVersion']=this['repository']['getRevision'](_0x3b64ca['id'])['toVersion']),void 0x0!==_0x3b64ca['toVersion']&&void 0x0===_0x3b64ca['fromVersion']&&(_0x3b64ca['fromVersion']=this['repository']['getRevision'](_0x3b64ca['id'])['fromVersion']);}const _0x666978=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3b9c98,_0x666978)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x48d74f=>{if(_0x48d74f){for(const _0x5ba4c6 of _0x48d74f)this['setRevisionData']({'id':_0x5ba4c6['id'],'createdAt':_0x5ba4c6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x54e054,_0x521c40){let _0x16a09c=this['editor']['config']['get']('initialData'),_0x3ca2b4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x16a09c){_0x16a09c={};for(const _0x2b9cb9 of this['editor']['model']['document']['getRootNames']())_0x16a09c[_0x2b9cb9]='';}if('string'==typeof _0x16a09c&&(_0x16a09c={'main':_0x16a09c}),void 0x0===_0x3ca2b4){_0x3ca2b4={};for(const _0x340b59 of this['editor']['model']['document']['getRootNames']())_0x3ca2b4[_0x340b59]={};}let _0x9fb1c0=!0x1;const _0x587e7e=Object['keys'](_0x16a09c),_0x189e53=Object['keys'](_0x54e054);for(const _0x4b4b01 of _0x587e7e){if(_0x16a09c[_0x4b4b01]!==_0x54e054[_0x4b4b01]&&''!==_0x16a09c[_0x4b4b01]['trim']()){_0x9fb1c0=!0x0;break;}if(!_0x6e705d(_0x3ca2b4[_0x4b4b01],_0x521c40[_0x4b4b01])&&Object['keys'](_0x3ca2b4[_0x4b4b01])['length']>0x0){_0x9fb1c0=!0x0;break;}}_0x9fb1c0||(_0x9fb1c0=_0x189e53['some'](_0x502502=>!this['editor']['model']['document']['getRoot'](_0x502502))),_0x9fb1c0&&_0x2a9d0a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x16a09c,'editorRootsAttributes':_0x3ca2b4,'revisionData':_0x54e054,'revisionRootsAttributes':_0x521c40}),this['editor']['config']['set']('initialData',_0x54e054),this['editor']['config']['set']('rootsAttributes',_0x521c40);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x40529e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x40529e['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xc2f291){const _0x1f2655=this['repository']['getRevisions']();_0x1f2655['reverse']();let _0x3440c6=0x0;for(;_0x3440c6<_0x1f2655['length'];){const _0x19bc2f=_0x1f2655[_0x3440c6];if(_0x19bc2f===this['currentRevision']){_0x3440c6++;continue;}if(_0x19bc2f['id']===this['_initialRevisionId'])break;const _0x1b0035=_0xc2f291['toVersion']-_0x19bc2f['toVersion']||_0xc2f291['fromVersion']-_0x19bc2f['fromVersion'];if(_0x1b0035>0x0)break;if(_0x1b0035<0x0)_0x3440c6++;else{if(!_0xc2f291['creator']&&_0x19bc2f['creator'])break;if(_0x19bc2f['creator']||!_0xc2f291['creator']){if(_0xc2f291['createdAt']>_0x19bc2f['createdAt'])break;_0x3440c6++;}else _0x3440c6++;}}return _0x3440c6;}['setRevisionData'](_0x1370b1){const _0x17dcf1=this['repository']['getRevision'](_0x1370b1['id']);if(_0x1370b1['createdAt']&&(_0x1370b1['createdAt']=new Date(_0x1370b1['createdAt'])),_0x1370b1['authorsIds']){const _0x443002=this['editor']['plugins']['get']('Users');_0x1370b1['authors']=_0x1370b1['authorsIds']['map'](_0x3b1acd=>_0x443002['getUser'](_0x3b1acd));}_0x17dcf1['_update'](_0x1370b1,!0x0);}['buildRevisionData']({revision:_0x533437=null,from:_0x1a63fd=null,to:_0x1ec48d=null}){_0x1a63fd=null!==_0x1a63fd?_0x1a63fd:_0x533437['fromVersion'],_0x1ec48d=null!==_0x1ec48d?_0x1ec48d:_0x533437['toVersion'];const _0x384bdf=this['_revisionDataBuilder']['getData'](_0x1a63fd,_0x1ec48d),_0x44ec40={'diffData':_0x384bdf['diffData'],'authorsIds':_0x384bdf['authorsIds'],'fromVersion':_0x1a63fd,'toVersion':_0x1ec48d};if(!_0x533437||_0x1ec48d!==_0x533437['toVersion']){const _0x4b136c=_0x1ec48d-0x1,_0x24533b=this['_source']['history']['getOperation'](_0x4b136c);_0x44ec40['createdAt']=_0x24533b&&_0x24533b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1a63fd===this['_loadedStateData']['fromVersion']){for(const _0x1b953d of this['_loadedStateData']['authors'])_0x44ec40['authorsIds']['includes'](_0x1b953d['id'])||_0x44ec40['authorsIds']['push'](_0x1b953d['id']);}return _0x44ec40;}['_loadRevisionData'](_0x3ff7ab){if(!_0x3ff7ab||_0x3ff7ab['diffData'])return Promise['resolve']();{const _0xc7578e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xc7578e,'revisionId':_0x3ff7ab['id']})['then'](_0x270c50=>{_0x3ff7ab['diffData']=_0x270c50['diffData'];});}}['_bufferUpdate'](_0x1a4e39,_0xb347f7,_0x2e770b){if(this['_bufferedUpdates']['has'](_0x1a4e39)){const _0x262475=this['_bufferedUpdates']['get'](_0x1a4e39);_0xb347f7=_0x2e770b?{..._0x262475,..._0xb347f7}:{..._0xb347f7,..._0x262475};}this['_bufferedUpdates']['set'](_0x1a4e39,_0xb347f7);}['_getFromVersion'](_0x2b8536){const _0x40e5fd=this['repository']['getRevisions']();_0x40e5fd['reverse'](),_0x40e5fd['shift']();const _0x3ce28c=_0x40e5fd['find'](_0x584396=>_0x584396['toVersion']<=_0x2b8536)['toVersion'];return _0x3ce28c<this['_startingVersion']?this['_startingVersion']:_0x3ce28c;}['_createInitialRevision'](_0x136bb9){const _0x5840a8=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5840a8)this['_initialRevisionId']=_0x5840a8['id'];else{const _0xdeea46=!this['editor']['model']['document']['roots']['find'](_0x4a5230=>this['editor']['model']['hasContent'](_0x4a5230)),_0xa91c00=this['editor']['plugins']['get']('Users')['me']['id'],_0x110744=m(this['editor']['locale'],_0xdeea46?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x136bb9,'to':_0x136bb9,'id':this['_initialRevisionId'],'name':_0x110744,'creatorId':_0xa91c00});}}['_createCurrentRevision'](_0x57f573){const _0x353f83=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x353f83),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x57f573,'to':_0x57f573,'id':_0x353f83,'name':'','creatorId':null}));}['_makeRevision']({name:_0xb71e7,from:_0x390b5c,to:_0x17f37e,creatorId:_0x5c292f,id:_0x16abca}){const _0x973778=this['buildRevisionData']({'from':_0x390b5c,'to':_0x17f37e});_0x973778['name']=_0xb71e7,_0x973778['creatorId']=_0x5c292f,_0x973778['id']=_0x16abca;const _0x49f7d1=this['addRevisionData'](_0x973778);return this['adapter']&&this['_bufferUpdate'](_0x973778['id'],_0x973778,!0x0),_0x49f7d1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x35b70c){return(_0x35b70c=_0x35b70c['filter'](_0x2f8cb3=>!_0x2f8cb3['name']||'revision-start'!==_0x2f8cb3['name']&&'revision-end'!==_0x2f8cb3['name']))['forEach'](_0x190663=>{'string'!=typeof _0x190663&&(_0x190663['children']=this['_removeRevisionMarkers'](_0x190663['children']),_0x190663['attributes']=_0x190663['attributes']['filter'](_0x553000=>!_0x553000[0x0]['startsWith']('data-revision-')));}),_0x35b70c;}}function C(_0x7ff795,_0x5046fc){const _0x43fd08=_0x5046fc['editing']['view']['document'];if('string'==typeof _0x7ff795)return new _0xb06d2d(_0x43fd08,_0x7ff795);{const _0x3525e5=_0x7ff795['children']['map'](_0x5e43dd=>C(_0x5e43dd,_0x5046fc));return new(P[_0x7ff795['type']]||_0x1185ac)(_0x43fd08,_0x7ff795['name'],_0x7ff795['attributes'],_0x3525e5);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1106b4){this['editor']=_0x1106b4,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'](_0x2766a0){this['source']=_0x2766a0;const _0xb7385f=new Map(),_0x1eed9b=new Map(),_0x27557f=this['editor']['model']['document']['roots']['map'](_0x287f6b=>_0x287f6b['rootName']);for(const _0x2fd562 of _0x27557f){const _0x3abfb3=this['editor']['model']['document']['getRoot'](_0x2fd562),_0x303d18=T(_0x3abfb3);_0xb7385f['set'](_0x2fd562,_0x303d18),_0x1eed9b['set'](_0x2fd562,Object['fromEntries'](_0x3abfb3['getAttributes']()));}const _0x2a14de=Array['from'](this['editor']['model']['markers'])['map'](_0x5df622=>[_0x5df622['name'],_0x5df622['getRange']()]),_0x67134a=this['source']['version'];this['_saveMetaData'](_0x67134a,_0xb7385f,_0x2a14de,_0x1eed9b),this['_startingRevisionId']=this['_revisionId'];const _0x4367cd=new Map(),_0x1caf1f=new Map();for(const _0x4f2348 of _0x27557f){const _0x5c9e5f=F(_0x4f2348);_0x4367cd['set'](_0x4f2348,_0x5c9e5f),_0x1caf1f['set'](_0x4f2348,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4367cd,[],_0x1caf1f);}['getData'](_0x1fbe99,_0x114fb6){if(this['_lastFrom']===_0x1fbe99&&this['_lastTo']<=_0x114fb6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x114fb6,!0x0);else{if(!this['_savedMetaData']['has'](_0x1fbe99)){const _0x7e60da=this['_getPreviousFrom'](_0x1fbe99);this['_calculateMetaData'](_0x7e60da,_0x1fbe99,!0x1);}this['_calculateMetaData'](_0x1fbe99,_0x114fb6,!0x0);}return this['_lastFrom']=_0x1fbe99,this['_lastTo']=_0x114fb6,this['_getState']();}['loadState'](_0x581d78){this['_reset'](),this['_lastFrom']=_0x581d78['fromVersion'],this['_lastTo']=_0x581d78['toVersion'];for(const _0x4d4427 in _0x581d78['diffData']){const _0x5e001d=_0x581d78['diffData'][_0x4d4427]['attachChange'],_0x3e31e3=_0x1625ab(_0x581d78['diffData'][_0x4d4427]['attributesBefore'])||{},_0x1d3b64=this['_makeModelFromViewString'](_0x581d78['diffData'][_0x4d4427]['deletions']);_0x1d3b64['rootName']=_0x4d4427,_0x1d3b64['_isAttached']=!_0x5e001d||!_0x5e001d['isAttached'],_0x1d3b64['isAttached']=()=>_0x1d3b64['_isAttached'],this['_baseRoots']['set'](_0x4d4427,_0x1d3b64),this['_baseRootsAttributes']['set'](_0x4d4427,_0x3e31e3),_0x5e001d&&this['_touchedRoots']['set'](_0x4d4427,_0x5e001d);const _0x4afed4=this['_makeIdsRoot'](_0x1d3b64);this['_baseIdsRoots']['set'](_0x4d4427,_0x4afed4);for(const [_0x1279a6,_0x5333c7]of _0x1d3b64['markers']){if(!_0x1279a6['startsWith']('revision:'))continue;const _0x40efdb=_0x1279a6['split'](':')[0x2];for(const _0x2efe90 of _0x5333c7['getWalker']({'singleCharacters':!0x0})){const _0x541514=this['_getVidAttributeName'](_0x2efe90),_0x479359='elementEnd'==_0x2efe90['type']?_0x2efe90['previousPosition']['path']['slice'](0x0,-0x1):_0x2efe90['previousPosition']['path'],_0x2ec608=_0x4afed4['getNodeByPath'](_0x479359)['getAttribute'](_0x541514);this['_touched']['set'](_0x2ec608,{'userId':_0x40efdb});}}}this['_startingRevisionId']=this['_revisionId'];const _0x40d6be=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x63aa57=>!this['_touched']['has'](_0x63aa57));let _0x486c00=0x0;const _0x41e41c=new Map();for(const _0x5ef7e9 in _0x581d78['diffData']){const _0x470e21=_0x581d78['diffData'][_0x5ef7e9]['attachChange'],_0x379e17=_0x1625ab(_0x581d78['diffData'][_0x5ef7e9]['attributesAfter'])||{},_0x49beed=this['_makeModelFromViewString'](_0x581d78['diffData'][_0x5ef7e9]['insertions']);_0x49beed['rootName']=_0x5ef7e9,_0x49beed['_isAttached']=!_0x470e21||_0x470e21['isAttached'],_0x49beed['isAttached']=()=>_0x49beed['_isAttached'],this['_diffRoots']['set'](_0x5ef7e9,_0x49beed),this['_diffRootsAttributes']['set'](_0x5ef7e9,_0x379e17);const _0x394ad6=this['_makeIdsRoot'](_0x49beed,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5ef7e9,_0x394ad6),_0x41e41c['set'](_0x5ef7e9,_0x49beed['isAttached']()?_0x379e17:{});for(const [_0x5a2aa1,_0xb85097]of _0x49beed['markers']){if(!_0x5a2aa1['startsWith']('revision:'))continue;const _0x25938b=_0x5a2aa1['split'](':')[0x2];for(const _0x57d4f3 of _0xb85097['getWalker']({'singleCharacters':!0x0})){const _0x5421b2=this['_getVidAttributeName'](_0x57d4f3),_0x4ce91b=this['_revisionId']++,_0x18e149='elementEnd'==_0x57d4f3['type']?_0x57d4f3['previousPosition']['path']['slice'](0x0,-0x1):_0x57d4f3['previousPosition']['path'];_0x394ad6['getNodeByPath'](_0x18e149)['_setAttribute'](_0x5421b2,_0x4ce91b),this['_touched']['set'](_0x4ce91b,{'userId':_0x25938b});}}for(const _0x160116 of this['editor']['model']['createRangeIn'](_0x49beed)['getWalker']({'singleCharacters':!0x0})){const _0xcbd615=this['_getVidAttributeName'](_0x160116),_0x1919b4='elementEnd'==_0x160116['type']?_0x160116['previousPosition']['path']['slice'](0x0,-0x1):_0x160116['previousPosition']['path'],_0x590c0d=_0x394ad6['getNodeByPath'](_0x1919b4);_0x590c0d['getAttribute'](_0xcbd615)>0x0||_0x590c0d['_setAttribute'](_0xcbd615,_0x40d6be[_0x486c00++]);}for(const [_0x45e746,_0x21e151]of _0x49beed['markers'])_0x45e746['startsWith']('revision:')||this['_markers']['set'](_0x45e746,_0x21e151);}const _0x222c57=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x222c57),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x222c57,0x1));const _0x4e72c5=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4e72c5),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4e72c5,0x1));const _0x1a0f52=Array['from'](this['_diffRoots'])['map'](([_0x305b27,_0x50b1e7])=>[_0x305b27,T(_0x50b1e7)]);this['_saveMetaData'](this['_lastTo'],_0x1a0f52,this['_markers'],_0x41e41c);}['_makeModelFromViewString'](_0x4f1228){const _0x2abed8=JSON['parse'](_0x4f1228),_0x2452b7=this['editor']['editing']['view']['document'],_0x2591fe=new _0x5a4efd(_0x2452b7,_0x2abed8['map'](_0x595df5=>C(_0x595df5,this['editor'])));return this['editor']['data']['toModel'](_0x2591fe);}['_saveMetaData'](_0x3d52f3,_0x45f900,_0xf142b,_0x268538){const _0x540a83=new Map(_0x45f900),_0x3e1480=new Map(_0x1625ab(_0x268538)),_0x3bd881=new Map();for(const [_0x306f30,_0x484aa4]of _0xf142b)_0x3bd881['set'](_0x306f30,{'start':_0x484aa4['start']['clone'](),'end':_0x484aa4['end']['clone'](),'rootName':_0x484aa4['root']['rootName']});this['_savedMetaData']['set'](_0x3d52f3,{'roots':_0x540a83,'markers':_0x3bd881,'rootsAttributes':_0x3e1480});}['_removeMetaData'](_0x3ae20f){this['_savedMetaData']['delete'](_0x3ae20f);}['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'](_0x3565dd,_0x27a7b3=null){let _0x55f98d=null;_0x3565dd['is']('documentFragment')||(_0x55f98d=new ft(_0x3565dd['name'],{'vid_start':null===_0x27a7b3?this['_revisionId']++:_0x27a7b3++}));const _0x146f15=[];for(const _0x17652f of _0x3565dd['getChildren']())if(_0x17652f['is']('element')){_0x146f15['push'](this['_makeIdsRoot'](_0x17652f,_0x27a7b3));const _0x5c0a46=_0x146f15[_0x146f15['length']-0x1];null!==_0x27a7b3&&(_0x27a7b3=_0x5c0a46['is']('element','$text')?_0x5c0a46['getAttribute']('vid')+0x1:_0x5c0a46['getAttribute']('vid_end')+0x1);}else{for(let _0x56dd51=0x0;_0x56dd51<_0x17652f['offsetSize'];_0x56dd51++)_0x146f15['push'](new ft('$text',{'vid':null===_0x27a7b3?this['_revisionId']++:_0x27a7b3++}));}if(_0x3565dd['is']('documentFragment')){const _0x1c3792=F(_0x3565dd['rootName']);return _0x1c3792['_insertChild'](0x0,_0x146f15),_0x1c3792;}return _0x55f98d['_setAttribute']('vid_end',null===_0x27a7b3?this['_revisionId']++:_0x27a7b3++),_0x55f98d['_insertChild'](0x0,_0x146f15),_0x55f98d;}['_calculateMetaData'](_0x25c824,_0x1362e9,_0x118f86){this['_reset']();const {roots:_0x1fa7b4,markers:_0x1e6a06,rootsAttributes:_0x24244c}=this['_savedMetaData']['get'](_0x25c824);this['_baseRoots']=new Map(_0x1fa7b4),this['_baseRootsAttributes']=new Map(_0x1625ab(_0x24244c));for(const [_0x2de27a,_0x56bd2c]of this['_baseRoots'])if('$graveyard'!==_0x2de27a&&(this['_diffRoots']['set'](_0x2de27a,T(_0x56bd2c)),this['_diffRootsAttributes']=new Map(_0x1625ab(_0x24244c)),_0x118f86)){const _0xcc96ca=this['_revisionId'];this['_idsRoots']['set'](_0x2de27a,this['_makeIdsRoot'](_0x56bd2c)),this['_baseIdsRoots']['set'](_0x2de27a,this['_makeIdsRoot'](_0x56bd2c,_0xcc96ca));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x118f86&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1217d2,_0x232855]of _0x1e6a06){const _0x1e1838=this['_baseRoots']['get'](_0x232855['rootName']),_0x370927=this['_diffRoots']['get'](_0x232855['rootName']),_0x3ea209=new vt(this['_fixPosition'](_0x232855['start'],_0x1e1838),this['_fixPosition'](_0x232855['end'],_0x1e1838)),_0x1af611=this['_fixRange'](_0x3ea209,_0x370927);_0x1e1838['markers']['set'](_0x1217d2,_0x3ea209),this['_markers']['set'](_0x1217d2,_0x1af611);}this['_applyOperations'](_0x25c824,_0x1362e9,_0x118f86);}['_applyOperations'](_0x352987,_0x191e47,_0x354ada){for(const _0x2d19d3 of this['source']['getOperations'](_0x352987,_0x191e47))this['_handleOperation'](_0x2d19d3,_0x354ada);for(const _0x427ad2 of this['_diffRoots']['values']())_0x427ad2['markers']['clear']();for(const [_0x200771,_0x5e03d9]of this['_markers']){this['_diffRoots']['get'](_0x5e03d9['root']['rootName'])['markers']['set'](_0x200771,_0x5e03d9['clone']());}const _0x57e694=new Map(),_0x40af1b=new Map();for(const [_0x4df5a3,_0x56c1fd]of this['_diffRoots'])_0x57e694['set'](_0x4df5a3,T(_0x56c1fd)),_0x40af1b['set'](_0x4df5a3,this['_diffRootsAttributes']['get'](_0x4df5a3));this['_saveMetaData'](_0x191e47,_0x57e694,this['_markers'],_0x40af1b);}['_getPreviousFrom'](_0x4b86c9){const _0x4b09eb=Array['from'](this['_savedMetaData']['keys']());_0x4b09eb['sort']((_0x289e95,_0x1f0269)=>_0x289e95-_0x1f0269),_0x4b09eb['reverse']();for(const _0x3dfcf1 of _0x4b09eb)if(_0x3dfcf1<_0x4b86c9)return _0x3dfcf1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x35634f,_0x1e36a9){const _0x3537d9=Array['from'](_0x1e36a9['markers'])['map'](([_0x185aa4,_0x1be1f3])=>[_0x185aa4,this['_fixRange'](_0x1be1f3,_0x35634f)]);_0x35634f['markers']=new Map(_0x3537d9);}['_transformMarkers'](_0xe6f072){for(const _0x1cea0f of this['_markers']['values']()){const _0x14d944=_0x1cea0f['getTransformedByOperation'](_0xe6f072),_0x1a4262=vt['_createFromRanges'](_0x14d944);_0x1cea0f['start']=_0x1a4262['start'],_0x1cea0f['end']=_0x1a4262['end'];}}['_handleOperation'](_0x2793ac,_0x5b836d){if('addRoot'!=_0x2793ac['type']&&'detachRoot'!=_0x2793ac['type']){if('insert'==_0x2793ac['type']){const _0x1195c8=_0x2793ac['position']['root']['rootName'];this['_diffRoots']['has'](_0x1195c8)||(this['_diffRoots']['set'](_0x1195c8,F(_0x1195c8,!0x0)),this['_diffRootsAttributes']['set'](_0x1195c8,{}),_0x5b836d&&this['_idsRoots']['set'](_0x1195c8,F(_0x1195c8,!0x0)));}else{if('addRootAttribute'==_0x2793ac['type']||'removeRootAttribute'==_0x2793ac['type']||'changeRootAttribute'==_0x2793ac['type'])return void this['_handleRootAttributeOperation'](_0x2793ac);'marker'==_0x2793ac['type']&&this['_handleMarkerOperation'](_0x2793ac);}if('marker'!==_0x2793ac['type']){const _0x341ff8=this['_cloneOperation'](_0x2793ac,this['_diffRoots']);_0x341ff8['_execute'](),this['_transformMarkers'](_0x341ff8);}if(_0x5b836d)switch(_0x2793ac['type']){case'insert':this['_handleInsertOperation'](_0x2793ac);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2793ac);break;case'merge':this['_handleMergeOperation'](_0x2793ac);break;case'split':this['_handleSplitOperation'](_0x2793ac);}}else this['_handleRootOperation'](_0x2793ac,_0x5b836d);}['_cloneOperation'](_0x41fef3,_0x8db834){const _0x54270b=_0x41fef3['clone']();return _0x54270b['_authorId']=_0x41fef3['_authorId'],this['_fixOperation'](_0x54270b,_0x8db834),_0x54270b;}['_getBaseVids'](_0x515e13){return _0x515e13['map'](_0xf4f501=>{const _0x4f98a9=this['_getVidAttributeName'](_0xf4f501);return Number(_0xf4f501['item']['getAttribute'](_0x4f98a9));});}['_generateTape'](_0x4f6f25,_0x329f0d){if(_0x4f6f25['is']('element','$text'))_0x329f0d['push']({'item':_0x4f6f25,'type':'text'});else{_0x4f6f25['is']('element')&&_0x329f0d['push']({'item':_0x4f6f25,'type':'elementStart'});for(const _0x1b8e21 of _0x4f6f25['getChildren']())this['_generateTape'](_0x1b8e21,_0x329f0d);_0x4f6f25['is']('element')&&_0x329f0d['push']({'item':_0x4f6f25,'type':'elementEnd'});}return _0x329f0d;}['_getState'](){const _0x44bf89=new Map(this['_touched']),_0x28824e=new Map(_0x44bf89),_0x136447=new Map(),_0x35806e={'insertions':{},'deletions':{}},_0x738044={'insertions':{},'deletions':{}},_0x4f79fd=new Map(),_0x146c0a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x146c0a['delete']('$graveyard');for(const _0x47b30a of _0x146c0a){const _0xe113b5=this['_diffRoots']['get'](_0x47b30a)||F(_0x47b30a,!0x1),_0x238d9e=this['_baseRoots']['get'](_0x47b30a)||F(_0x47b30a,!0x1);_0xe113b5['isAttached']()||_0x238d9e['isAttached']()?(_0x35806e['insertions'][_0x47b30a]=T(_0xe113b5),_0x35806e['deletions'][_0x47b30a]=T(_0x238d9e),this['_copyMarkers'](_0x35806e['deletions'][_0x47b30a],_0x238d9e),this['_copyMarkers'](_0x35806e['insertions'][_0x47b30a],_0xe113b5),_0x738044['insertions'][_0x47b30a]=this['_generateTape'](this['_idsRoots']['get'](_0x47b30a),[]),_0x738044['deletions'][_0x47b30a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x47b30a)||F(_0x47b30a,!0x1),[])):_0x146c0a['delete'](_0x47b30a);}for(const _0x340174 of _0x146c0a){const _0x1d991c=_0x738044['insertions'][_0x340174];for(const _0x31e37a of _0x1d991c){const _0x28953c=this['_getVidAttributeName'](_0x31e37a),_0x3e945d=_0x31e37a['item']['getAttribute'](_0x28953c);_0x28824e['delete'](_0x3e945d),_0x3e945d>=this['_startingRevisionId']&&_0x136447['set'](_0x3e945d,_0x44bf89['get'](_0x3e945d));}}for(const _0x50e934 of _0x146c0a){const _0xaf0e0b=_0x738044['insertions'][_0x50e934],_0x51dbcf=this['_getBaseVids'](_0x738044['deletions'][_0x50e934]);let _0xcc5a66=0x0;for(const _0x48fdb7 of _0xaf0e0b){const _0x2377af=this['_getVidAttributeName'](_0x48fdb7),_0x48a391=_0x48fdb7['item']['getAttribute'](_0x2377af);if(!_0x136447['has'](_0x48a391)&&!_0x4f79fd['has'](_0x48a391)){if(_0x28824e['has'](_0x48a391))_0xcc5a66++;else{if(_0x48a391!=_0x51dbcf[_0xcc5a66]){const _0x1550a8=_0x44bf89['get'](_0x48a391)||_0x44bf89['get'](_0x51dbcf[_0xcc5a66]);for(;_0x48a391!=_0x51dbcf[_0xcc5a66];)_0x28824e['has'](_0x51dbcf[_0xcc5a66])||(_0x4f79fd['set'](_0x51dbcf[_0xcc5a66],_0x1550a8),_0x44bf89['set'](_0x51dbcf[_0xcc5a66],_0x1550a8)),_0xcc5a66++;}_0xcc5a66++;}}}}for(const _0x51a9f4 of _0x146c0a){const _0x3e48e2=_0x738044['insertions'][_0x51a9f4];for(const _0x42d5cc of _0x3e48e2){const _0x89178d=this['_getVidAttributeName'](_0x42d5cc),_0x36c6ce=_0x42d5cc['item']['getAttribute'](_0x89178d);if(_0x4f79fd['has'](_0x36c6ce)){const _0x1c5e71=_0x4f79fd['get'](_0x36c6ce);_0x28824e['has'](_0x36c6ce)||_0x28824e['set'](_0x36c6ce,{..._0x1c5e71}),_0x136447['set'](_0x36c6ce,{..._0x1c5e71});}}}for(const _0x1afe62 of _0x28824e['keys']())_0x1afe62>=this['_startingRevisionId']&&_0x28824e['delete'](_0x1afe62);const _0x48c3f4=new Map();for(const _0x2f46f8 of _0x146c0a){let _0x264950=_0x738044['insertions'][_0x2f46f8];for(const _0x2df07c of _0x264950)if(_0x2df07c['item']['is']('element','tableCell')){const _0x5c7bfc=this['_getVidAttributeName'](_0x2df07c),_0x4993b3=_0x2df07c['item']['getAttribute'](_0x5c7bfc);if(_0x136447['has'](_0x4993b3)){const _0x5e3f6b=_0x2df07c['item']['parent']['parent']['getAttribute']('vid_start'),_0x408a9a=_0x48c3f4['get'](_0x5e3f6b)||new Set();_0x408a9a['add'](_0x136447['get'](_0x4993b3)['userId']),_0x48c3f4['set'](_0x5e3f6b,_0x408a9a);}}_0x264950=_0x738044['deletions'][_0x2f46f8];for(const _0x2a15a1 of _0x264950)if(_0x2a15a1['item']['is']('element','tableCell')){const _0x1cc1de=this['_getVidAttributeName'](_0x2a15a1),_0x18692a=_0x2a15a1['item']['getAttribute'](_0x1cc1de);if(_0x28824e['has'](_0x18692a)){const _0x3630eb=_0x2a15a1['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d9027=_0x48c3f4['get'](_0x3630eb)||new Set();_0x5d9027['add'](_0x28824e['get'](_0x18692a)['userId']),_0x48c3f4['set'](_0x3630eb,_0x5d9027);}}for(const _0x1c8e2b of _0x48c3f4['keys']())(_0x136447['has'](_0x1c8e2b)||_0x28824e['has'](_0x1c8e2b))&&_0x48c3f4['delete'](_0x1c8e2b);}for(const _0x251551 of _0x146c0a){const _0x31def3=_0x738044['insertions'][_0x251551];let _0x47cc43=null,_0x466757=null;for(const _0xb798e7 of _0x31def3){const _0x158574=this['_getVidAttributeName'](_0xb798e7),_0x200a80=_0xb798e7['item']['getAttribute'](_0x158574),_0x16d6ce=_0x48c3f4['get'](_0x200a80);_0x16d6ce&&'elementStart'==_0xb798e7['type']&&(_0x47cc43=Array['from'](_0x16d6ce)[0x0],_0x466757=_0xb798e7['item']['getAttribute']('vid_end')),_0x47cc43&&(_0x28824e['set'](_0x200a80,{'userId':_0x47cc43}),_0x136447['set'](_0x200a80,{'userId':_0x47cc43})),_0x200a80==_0x466757&&(_0x47cc43=null,_0x466757=null);}}const _0x378851={},_0xdb8cc4=new Set();for(const _0x273a4d of _0x146c0a){const _0x47eda6=_0x35806e['deletions'][_0x273a4d],_0x342d17=_0x35806e['insertions'][_0x273a4d];for(const {userId:_0xe224a4}of this['_touchedMarkers']['values']())null!==_0xe224a4&&_0xdb8cc4['add'](_0xe224a4);for(const {userId:_0x2b3038}of this['_touchedRoots']['values']())null!==_0x2b3038&&_0xdb8cc4['add'](_0x2b3038);this['_markChanges'](_0x342d17,_0x738044['insertions'][_0x273a4d],_0x136447,'insertion',_0xdb8cc4),this['_markChanges'](_0x47eda6,_0x738044['deletions'][_0x273a4d],_0x28824e,'deletion',_0xdb8cc4),_0x378851[_0x273a4d]={'insertions':this['_prepareViewToSave'](_0x342d17),'deletions':this['_prepareViewToSave'](_0x47eda6),'attachChange':this['_touchedRoots']['get'](_0x273a4d)||null,'attributesBefore':_0x1625ab(this['_baseRootsAttributes']['get'](_0x273a4d))||{},'attributesAfter':_0x1625ab(this['_diffRootsAttributes']['get'](_0x273a4d))};}return{'diffData':_0x378851,'authorsIds':Array['from'](_0xdb8cc4)};}['_processRootBeforeSave'](_0x471c62){for(const [,_0x58d36d]of _0x471c62['markers']){const _0x239ed8=_0x58d36d['start']['getAncestors']()['filter'](_0x259978=>'tableCell'==_0x259978['name']);for(const _0x520033 of _0x239ed8)0x1==_0x520033['childCount']&&_0x520033['getChild'](0x0)['is']('element','paragraph')&&_0x520033['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x170a68){this['_processRootBeforeSave'](_0x170a68);const _0x4d20df=this['editor']['data']['toView'](_0x170a68,{}),_0x51f5c8=Array['from'](_0x4d20df['getChildren']())['map'](_0x10ff33=>this['_getViewJson'](_0x10ff33));return JSON['stringify'](_0x51f5c8);}['_getViewJson'](_0x1e5f34){if(_0x1e5f34['is']('$text'))return _0x1e5f34['data'];{const _0x3458d2=_0x1e5f34;return{'type':Object['keys'](P)['find'](_0x32b75e=>_0x1e5f34 instanceof P[_0x32b75e]),'name':_0x3458d2['name'],'attributes':Array['from'](_0x3458d2['getAttributes']()),'children':Array['from'](_0x3458d2['getChildren']())['map'](_0x2adee9=>this['_getViewJson'](_0x2adee9))};}}['_markChanges'](_0x35bd70,_0x1cb084,_0x53d5b4,_0x1d9d92,_0x582c04){let _0x3d17f0=null,_0x446e9d=null,_0x34360f=0x0;const _0x70c60c=this['editor']['model'];for(let _0x2fe685=0x0;_0x2fe685<_0x1cb084['length'];_0x2fe685++){const _0x324a75=this['_getVidAttributeName'](_0x1cb084[_0x2fe685]),_0x342e9a=_0x1cb084[_0x2fe685]['item']['getAttribute'](_0x324a75),_0x2d927a=_0x53d5b4['get'](_0x342e9a),_0x51e5e5=_0x2fe685==_0x1cb084['length']-0x1;(!_0x3d17f0&&_0x2d927a&&(_0x3d17f0=_0x2d927a,_0x446e9d=_0x1cb084[_0x2fe685]),_0x3d17f0&&(!_0x2d927a||_0x2d927a['userId']!=_0x3d17f0['userId']))&&(_0x514518(_0x2d927a,B(_0x446e9d,_0x35bd70,_0x70c60c),B(_0x1cb084[_0x2fe685],_0x35bd70,_0x70c60c)),_0x3d17f0=_0x2d927a||null,_0x446e9d=_0x2d927a?_0x1cb084[_0x2fe685]:null),_0x3d17f0&&_0x51e5e5&&_0x514518(_0x2d927a,B(_0x446e9d,_0x35bd70,_0x70c60c),J(_0x1cb084[_0x2fe685],_0x35bd70,_0x70c60c));}function _0x514518(_0xa6de71,_0x170bbe,_0x538b5a){const _0x2a4bc6=_0x3d17f0['userId'],_0x3ed6aa='revision:'+_0x1d9d92+':'+_0x2a4bc6+':'+_0x34360f++,_0x121df5=_0x70c60c['createRange'](_0x170bbe,_0x538b5a);_0x35bd70['markers']['set'](_0x3ed6aa,_0x121df5),null!==_0x2a4bc6&&_0x582c04['add'](_0x2a4bc6);}}['_getVidAttributeName'](_0x16ed15){switch(_0x16ed15['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x26463a,_0x5c4b3d){_0x26463a['baseVersion']=null;for(const _0xbdc87c in _0x26463a){const _0x153ee1=_0x26463a[_0xbdc87c];if(_0x153ee1 instanceof gt){const _0x364575=_0x5c4b3d['get'](_0x153ee1['root']['rootName']);_0x26463a[_0xbdc87c]=this['_fixPosition'](_0x153ee1,_0x364575);}if(_0x153ee1 instanceof vt){const _0x39821a=_0x5c4b3d['get'](_0x153ee1['root']['rootName']);_0x26463a[_0xbdc87c]=this['_fixRange'](_0x153ee1,_0x39821a);}'root'===_0xbdc87c&&(_0x26463a['root']=_0x5c4b3d['get'](_0x26463a['root']['rootName']));}}['_fixRange'](_0x1b630b,_0x473356){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1b630b['start'],_0x473356),this['_fixPosition'](_0x1b630b['end'],_0x473356));}['_fixPosition'](_0x2de1ac,_0x556511){return this['editor']['model']['createPositionFromPath'](_0x556511,_0x2de1ac['path'],_0x2de1ac['stickiness']);}['_handleInsertOperation'](_0x48c48d){const _0x587832=this['_idsRoots']['get'](_0x48c48d['position']['root']['rootName']),_0x49700b=this['_fixPosition'](_0x48c48d['position'],_0x587832),_0x533244=null===_0x48c48d['_authorId']?null:_0x48c48d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x214ddd=_0x49700b['parent'],_0x261fc0=this['_revisionId'],_0x96f317=[];for(const _0x3c74a6 of _0x48c48d['nodes'])if(_0x3c74a6['is']('element'))_0x96f317['push'](this['_makeIdsRoot'](_0x3c74a6));else{for(let _0xeb6c02=0x0;_0xeb6c02<_0x3c74a6['offsetSize'];_0xeb6c02++)_0x96f317['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x1ab053=this['_revisionId'];for(let _0x246a20=_0x261fc0;_0x246a20<_0x1ab053;_0x246a20++)this['_touched']['set'](_0x246a20,{'userId':_0x533244});_0x214ddd['_insertChild'](_0x49700b['offset'],_0x96f317);}['_handleMoveOperation'](_0x53eed2){(_0x53eed2=this['_cloneOperation'](_0x53eed2,this['_idsRoots']))['_execute']();const _0x4a2df2=null===_0x53eed2['_authorId']?null:_0x53eed2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3cc908=_0x53eed2['getMovedRangeStart'](),_0x1760e9=_0x3cc908['parent'],_0x340541=_0x3cc908['offset'];!function _0x5e23b7(_0x1dbd72,_0x44680a,_0x54a08d,_0x14db26){for(let _0x3bf1bc=_0x54a08d;_0x3bf1bc<_0x14db26;_0x3bf1bc++){const _0x116b56=_0x44680a['getChild'](_0x3bf1bc);_0x116b56['is']('element','$text')?_0x1dbd72['set'](_0x116b56['getAttribute']('vid'),{'userId':_0x4a2df2}):(_0x1dbd72['set'](_0x116b56['getAttribute']('vid_start'),{'userId':_0x4a2df2}),_0x5e23b7(_0x1dbd72,_0x116b56,0x0,_0x116b56['childCount']),_0x1dbd72['set'](_0x116b56['getAttribute']('vid_end'),{'userId':_0x4a2df2}));}}(this['_touched'],_0x1760e9,_0x340541,_0x340541+_0x53eed2['howMany']);}['_handleMergeOperation'](_0x2c82c0){const _0x29e065=null===(_0x2c82c0=this['_cloneOperation'](_0x2c82c0,this['_idsRoots']))['_authorId']?null:_0x2c82c0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x312980=_0x2c82c0['targetPosition']['parent'],_0x4b03f4=_0x2c82c0['sourcePosition']['parent'],_0x57708f=_0x312980['getAttribute']('vid_end'),_0x3fbc87=_0x4b03f4['getAttribute']('vid_start');_0x312980['_setAttribute']('vid_end',_0x4b03f4['getAttribute']('vid_end')),_0x4b03f4['_setAttribute']('vid_end',_0x57708f),this['_touched']['set'](_0x3fbc87,{'userId':_0x29e065}),this['_touched']['set'](_0x57708f,{'userId':_0x29e065}),_0x2c82c0['_execute']();}['_handleSplitOperation'](_0x3acd58){const _0x47a39a=null===(_0x3acd58=this['_cloneOperation'](_0x3acd58,this['_idsRoots']))['_authorId']?null:_0x3acd58['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xcf1cd9=_0x3acd58['graveyardPosition'],_0x55ed0f=_0x3acd58['splitPosition']['parent'];_0x3acd58['_execute']();const _0x505514=_0x55ed0f['getAttribute']('vid_end'),_0x1233ad=_0x3acd58['insertionPosition']['nodeAfter'];if(_0xcf1cd9){const _0x50b482=_0x1233ad['getAttribute']('vid_end'),_0x3610b8=_0x55ed0f['getAttribute']('vid_end');_0x55ed0f['_setAttribute']('vid_end',_0x50b482),_0x1233ad['_setAttribute']('vid_end',_0x3610b8),this['_touched']['set'](_0x55ed0f['getAttribute']('vid_end'),{'userId':_0x47a39a}),this['_touched']['set'](_0x1233ad['getAttribute']('vid_start'),{'userId':_0x47a39a});}else{const _0x5631e3=this['_revisionId']++,_0x394057=this['_revisionId']++;_0x55ed0f['_setAttribute']('vid_end',_0x5631e3),_0x1233ad['_setAttribute']('vid_start',_0x394057),_0x1233ad['_setAttribute']('vid_end',_0x505514),this['_touched']['set'](_0x5631e3,{'userId':_0x47a39a}),this['_touched']['set'](_0x394057,{'userId':_0x47a39a});}}['_handleMarkerOperation'](_0x328774){if(!_0x328774['affectsData'])return;const _0x3045cd=(_0x328774=this['_cloneOperation'](_0x328774,this['_diffRoots']))['oldRange']?_0x328774['oldRange']['root']:null,_0xc64af5=_0x328774['newRange']?_0x328774['newRange']['root']:null;_0x3045cd&&this['_markers']['delete'](_0x328774['name']),_0xc64af5&&this['_markers']['set'](_0x328774['name'],_0x328774['newRange']['clone']());const _0x3902e2=null===_0x328774['_authorId']?null:_0x328774['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25e068=_0x328774['name'];if(!this['_touchedMarkers']['has'](_0x25e068))return void this['_touchedMarkers']['set'](_0x25e068,{'range':_0x328774['oldRange'],'userId':_0x3902e2});const _0xc2f16a=this['_touchedMarkers']['get'](_0x25e068),_0x59d98a=_0xc2f16a['range'],_0x1e78c3=_0x328774['newRange'];null==_0x59d98a&&null==_0x1e78c3||_0x59d98a&&_0x1e78c3&&_0x59d98a['isEqual'](_0x1e78c3)?this['_touchedMarkers']['delete'](_0x328774['name']):_0xc2f16a['userId']=_0x3902e2;}['_handleRootOperation'](_0x3f58a8,_0x67ab66){this['_diffRoots']['has'](_0x3f58a8['rootName'])?this['_diffRoots']['get'](_0x3f58a8['rootName'])['_isAttached']=_0x3f58a8['isAdd']:(this['_diffRoots']['set'](_0x3f58a8['rootName'],F(_0x3f58a8['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3f58a8['rootName'],{}),_0x67ab66&&this['_idsRoots']['set'](_0x3f58a8['rootName'],F(_0x3f58a8['rootName'],!0x0)));const _0x3ee241=null===_0x3f58a8['_authorId']?null:_0x3f58a8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35587f=this['_touchedRoots']['get'](_0x3f58a8['rootName']);_0x35587f&&_0x35587f['userId']===_0x3ee241?this['_touchedRoots']['delete'](_0x3f58a8['rootName']):this['_touchedRoots']['set'](_0x3f58a8['rootName'],{'userId':_0x3ee241,'isAttached':_0x3f58a8['isAdd']});}['_handleRootAttributeOperation'](_0x5ce822){const _0xf803c2=this['_diffRootsAttributes']['get'](_0x5ce822['root']['rootName']);null===_0x5ce822['newValue']?delete _0xf803c2[_0x5ce822['key']]:_0xf803c2[_0x5ce822['key']]=_0x5ce822['newValue'];}}function T(_0x4bef29){const _0x1f3ba9=F(_0x4bef29['rootName'],_0x4bef29['isAttached']());for(const _0x2161eb of _0x4bef29['getChildren']()){const _0x4fba86=_0x2161eb['_clone'](!0x0);_0x1f3ba9['_appendChild'](_0x4fba86);}return _0x1f3ba9;}function F(_0x3c4304,_0x3b9894=!0x0){const _0x1ff95c=new mt();return _0x1ff95c['rootName']=_0x3c4304,_0x1ff95c['_isAttached']=_0x3b9894,_0x1ff95c['isAttached']=()=>_0x1ff95c['_isAttached'],_0x1ff95c;}function B(_0x1c17fc,_0x1a945e,_0x328f50){const _0x43578e='elementEnd'==_0x1c17fc['type']?_0x328f50['createPositionAt'](_0x1c17fc['item'],'end'):_0x328f50['createPositionBefore'](_0x1c17fc['item']);return _0x328f50['createPositionFromPath'](_0x1a945e,_0x43578e['path'],_0x43578e['stickiness']);}function J(_0x50487d,_0x224b2a,_0x4527e2){const _0x44e8b8='elementStart'==_0x50487d['type']?_0x4527e2['createPositionAt'](_0x50487d['item'],0x0):_0x4527e2['createPositionAfter'](_0x50487d['item']);return _0x4527e2['createPositionFromPath'](_0x224b2a,_0x44e8b8['path'],_0x44e8b8['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xb358f6,_0x4c9b91){super(_0xb358f6),this['focusTracker']=new _0x1f94f8(),this['keystrokes']=new _0x3867fb(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4c9b91),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x40307b(this);}['render'](){super['render'](),_0x1e4dc7({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1213c4=_0xa2ebeb=>_0xa2ebeb['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1213c4),this['keystrokes']['set']('arrowleft',_0x1213c4),this['keystrokes']['set']('arrowup',_0x1213c4),this['keystrokes']['set']('arrowdown',_0x1213c4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3f0293){this['revisionNameInputView']['fieldView']['element']['value']=_0x3f0293['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2bddd5){const _0x31721d=new _0x20c6fd(this['locale'],_0x3242da),_0x595c43=_0x31721d['fieldView'];_0x595c43['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2332fe=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2bddd5&&(_0x2332fe+='\x20('+m(this['locale'],'optional')+')'),(_0x31721d['label']=_0x2332fe,_0x595c43['on']('input',()=>{this['revisionNameInputValue']=_0x595c43['element']['value']['trim']();}),_0x31721d);}}class u extends _0x21de30{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x98ca80=this['editor'],_0xface7b=_0x98ca80['plugins']['get']('RevisionTracker');_0x98ca80['ui']['componentFactory']['add']('revisionHistory',_0xa8143=>{const _0x3507f8=_0x3d244a(_0xa8143),_0x11a1d4=_0x3507f8['panelView']['children'],_0x176ffb=new _0xc08c5b(_0xa8143),_0x11ae37=new _0xf5d5fc(_0xa8143),_0x4bd543=new te(_0xa8143),_0x36d195=new _0xf5d5fc(_0xa8143),_0x40a5ed=new te(_0xa8143);return _0x3507f8['bind']('isEnabled')['to'](_0xface7b,'isReady',_0xface7b,'isEnabled',_0x98ca80,'isReadOnly',(_0x1afa9,_0x50f8ad,_0x5050b4)=>_0x1afa9&&_0x50f8ad&&!_0x5050b4),_0x3507f8['buttonView']['set']({'icon':_0x28f082['history'],'label':m(_0xa8143,'Revision\x20history'),'tooltip':!0x0}),_0x4bd543['set']({'label':m(_0xa8143,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4bd543['bind']('isEnabled')['to'](_0xface7b,'isReady',_0xface7b,'isEnabled',_0x98ca80,'isReadOnly',(_0x3c184f,_0x50fe5a,_0x106c95)=>_0x3c184f&&_0x50fe5a&&!_0x106c95),_0x4bd543['on']('execute',()=>this['_showDialog']()),_0x40a5ed['set']({'label':m(_0xa8143,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x40a5ed['bind']('isEnabled')['to'](_0xface7b,'isReady',_0x98ca80,'isReadOnly',(_0x14512f,_0x213ea3)=>_0x14512f&&!_0x213ea3),_0x40a5ed['on']('execute',()=>{_0x98ca80['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3507f8['isOpen']=!0x1,_0x98ca80['editing']['view']['focus']();}),_0x11ae37['children']['add'](_0x4bd543),_0x36d195['children']['add'](_0x40a5ed),_0x176ffb['role']='menu',_0x176ffb['items']['addMany']([_0x11ae37,_0x36d195]),_0x11a1d4['add'](_0x176ffb),_0x3507f8;}),_0x98ca80['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4c98a0=this['editor'],_0x35fa7f=_0x4c98a0['locale'],_0x564a07=new _0x474c2d(_0x35fa7f),_0x3c9ecd=new _0x4859d1(_0x35fa7f);_0x564a07['buttonView']['set']({'icon':_0x28f082['history'],'label':m(_0x35fa7f,'Revision\x20history')});const _0x26a82b=new _0x8f929a(_0x35fa7f,_0x564a07),_0x3a1aaf=new _0x3b9881(_0x35fa7f);_0x3a1aaf['set']({'label':m(_0x35fa7f,'Save\x20current\x20revision')}),_0x3a1aaf['delegate']('execute')['to'](_0x564a07),_0x3a1aaf['on']('execute',()=>{this['_showDialog']();}),_0x26a82b['children']['add'](_0x3a1aaf),_0x3c9ecd['items']['add'](_0x26a82b);const _0x4a0626=new _0x8f929a(_0x35fa7f,_0x564a07),_0x407bd2=new _0x3b9881(_0x35fa7f);return _0x407bd2['set']({'label':m(_0x35fa7f,'Open\x20revision\x20history')}),_0x407bd2['delegate']('execute')['to'](_0x564a07),_0x407bd2['on']('execute',()=>{_0x4c98a0['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4a0626['children']['add'](_0x407bd2),_0x3c9ecd['items']['add'](_0x4a0626),_0x564a07['panelView']['children']['add'](_0x3c9ecd),_0x564a07;}['_showDialog'](){const _0x1d0762=this['editor'],_0x4ef57f=_0x1d0762['locale'],_0x354fe0=_0x1d0762['plugins']['get']('Dialog'),_0x31ca96=_0x1d0762['plugins']['get']('RevisionTracker');function _0x195ddb(_0x3acdd5){_0x1d0762['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3acdd5['revisionName']?_0x3acdd5['revisionNameInputView']['errorText']=m(_0x4ef57f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1d0762['plugins']['get'](l)['saveRevision']({'name':_0x3acdd5['revisionName']}),_0x354fe0['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x195ddb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x354fe0['show']({'id':'revisionSave','title':m(_0x4ef57f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1d0762['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x354fe0['hide']()},{'label':m(_0x1d0762['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x13500c){_0x13500c['bind']('isEnabled')['to'](_0x31ca96,'isReady',_0x31ca96,'isEnabled',_0x1d0762,'isReadOnly',(_0x291ae2,_0x427f39,_0x59b27a)=>_0x291ae2&&_0x427f39&&!_0x59b27a);},'onExecute':()=>_0x195ddb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4a19d3=this['editor'],_0xf1accd=_0x4a19d3['locale'];this['_saveRevisionFormView']=new hs(_0xf1accd,_0x4a19d3['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x5d3e7c,_0x3b62d0){super(_0x5d3e7c),this['_model']=_0x3b62d0,this['changeId']=_0x3b62d0['id'];const _0x337570=this['bindTemplate'],_0x4f27d0=m(_0x5d3e7c,_0x3b62d0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3b62d0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3b62d0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x337570['to']('type',_0x4f5016=>'ck-revision-change__'+_0x4f5016)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4f27d0}]},{'text':'\x20'+_0x3b62d0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3c8524(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1ec07d){super(),this['id']=_0x1ec07d['id']||_0x3306a9(),this['author']=_0x1ec07d['author'],this['type']=_0x1ec07d['type'],this['data']=_0x1ec07d['data']||{},this['rootName']=_0x1ec07d['rootName'],this['set']('createdAt',_0x1ec07d['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(_0x3d3c09,_0x1bb448){this['newRevisionId']=_0x3d3c09,this['oldRevisionId']=_0x1bb448,this['changes']=new _0x2a5e32();}['_setChanges'](_0x1c2367){for(const _0xba3bf of _0x1c2367)this['changes']['add'](_0xba3bf);}}const Y={'c':_0x4a64f2,'a':_0x1b8cef,'e':_0x258f56,'r':_0x4f462b,'u':_0xf04fa4};class d extends _0x21de30{['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[_0x1e9bf6,_0x28513d,j];}constructor(_0x4a8b4a){super(_0x4a8b4a),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',(_0x2fb73f,_0x225081,_0x336c5d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x11f6e8=>{for(const _0x3cc922 of this['editor']['editing']['view']['document']['roots'])_0x336c5d?_0x11f6e8['removeClass']('ck-editor__editable__overlay',_0x3cc922):_0x11f6e8['addClass']('ck-editor__editable__overlay',_0x3cc922);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x28c89b=>null!==_0x28c89b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3cf4c0,_0x5cb673,_0xce3b65)=>_0x3cf4c0&&_0xce3b65?_0x5cb673['changes']['getIndex'](_0xce3b65):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf512d4,_0x47b55a)=>_0xf512d4?_0x47b55a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x28513d);}['init'](){const _0x39570b=this['editor'],_0x43a7e8=new _t(_0x39570b,{'direction':'backward'}),_0x4b81e8=new _t(_0x39570b,{'direction':'forward'});(_0x39570b['commands']['add']('showPreviousChange',_0x43a7e8),_0x39570b['commands']['add']('showNextChange',_0x4b81e8),_0x39570b['commands']['add']('restoreRevision',new pt(_0x39570b)),this['on']('change:numberOfChanges',()=>{_0x43a7e8['refresh'](),_0x4b81e8['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x39570b['enableReadOnlyMode']('revision-viewer'),_0x39570b['plugins']['has']('WidgetToolbarRepository'))&&_0x39570b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x34ffc4){await this['loadRevisionData'](_0x34ffc4);const _0x83e9b8={};for(const _0x204b4b in _0x34ffc4['diffData']){if(_0x34ffc4['diffData'][_0x204b4b]['attachChange']&&!_0x34ffc4['diffData'][_0x204b4b]['attachChange']['isAttached'])continue;const _0x34b4dd=this['_removeRevisionMarkers'](JSON['parse'](_0x34ffc4['diffData'][_0x204b4b]['insertions'])),_0x212953=this['editor']['editing']['view']['document'],_0x394fbf=new _0x5a4efd(_0x212953,_0x34b4dd['map'](_0x27b17a=>this['_getViewObj'](_0x27b17a)));this['editor']['data']['processor']['useFillerType']('marked'),_0x83e9b8[_0x204b4b]=this['editor']['data']['processor']['toData'](_0x394fbf),this['editor']['data']['processor']['useFillerType']('default');}return _0x83e9b8;}async['getRevisionRootsAttributes'](_0x428abe){await this['loadRevisionData'](_0x428abe);const _0x2c377b={};for(const _0x290c4b in _0x428abe['diffData'])_0x428abe['diffData'][_0x290c4b]['attachChange']&&!_0x428abe['diffData'][_0x290c4b]['attachChange']['isAttached']||(_0x2c377b[_0x290c4b]=_0x428abe['diffData'][_0x290c4b]['attributesAfter']||{});return _0x2c377b;}['_removeRevisionMarkers'](_0x25e6d9){return(_0x25e6d9=_0x25e6d9['filter'](_0x20e0cd=>!_0x20e0cd['name']||'revision-start'!==_0x20e0cd['name']&&'revision-end'!==_0x20e0cd['name']))['forEach'](_0x857ba9=>{'string'!=typeof _0x857ba9&&(_0x857ba9['children']=this['_removeRevisionMarkers'](_0x857ba9['children']),_0x857ba9['attributes']=_0x857ba9['attributes']['filter'](_0x35a76c=>!_0x35a76c[0x0]['startsWith']('data-revision-')));}),_0x25e6d9;}async['compare'](_0x1291a2,_0x25b362,_0x420457=!0x1){if(!this['isEnabled'])return;const _0xeb0cab=this['diff'],_0x253ed5=this['repository'],_0x5ec129='string'==typeof _0x1291a2?_0x253ed5['getRevision'](_0x1291a2):_0x1291a2,_0x16fe97='string'==typeof _0x25b362?_0x253ed5['getRevision'](_0x25b362):_0x25b362,_0x2a6937=_0x5ec129['id'],_0x383162=_0x16fe97?_0x16fe97['id']:null;if(!_0x420457&&this['diff']&&this['diff']['newRevisionId']===_0x2a6937&&this['diff']['oldRevisionId']===_0x383162)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2a6937,_0x383162);const _0x92466c=this['_getRevisionsRange'](_0x5ec129,_0x16fe97,!0x0)['map'](_0x5a96ce=>this['loadRevisionData'](_0x5a96ce));return _0x92466c['push'](new Promise(_0x35f0cc=>{setTimeout(_0x35f0cc,0x14);})),Promise['all'](_0x92466c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x24726d=this['_getDiff'](_0x2a6937,_0x383162);for(const _0x31aa17 of _0x24726d['changes'])this['_changeIdToChange']['set'](_0x31aa17['id'],_0x31aa17);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1c6217=>{for(const _0x54fa00 of this['editor']['model']['document']['getRootNames']())_0x1c6217['detachRoot'](_0x54fa00);for(const _0x79e62e of Object['keys'](_0x24726d['model'])){const _0x3d6811=_0x1c6217['addRoot'](_0x79e62e);for(const _0x2743b2 of Object['keys'](_0x24726d['attributes'][_0x79e62e]))_0x1c6217['setAttribute'](_0x2743b2,_0x24726d['attributes'][_0x79e62e][_0x2743b2],_0x3d6811);_0x1c6217['insert'](_0x24726d['model'][_0x79e62e],_0x3d6811,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x24726d['changes'])),this['isReady']=!0x0;})['catch'](_0xc880f6=>{console['error'](_0xc880f6),this['_cleanUp'](),_0xeb0cab&&(this['diff']=_0xeb0cab),this['isReady']=!0x0;});}['addRevisionData'](_0x2c6e4d,_0x2b52fb){const _0xfd8545=this['repository']['createRevision'](_0x2c6e4d);return _0xfd8545['on']('_update',(_0x3d5d3e,_0x4d120e,_0x504b1a)=>_0x2b52fb(_0x4d120e,_0x504b1a,_0xfd8545)),this['repository']['addRevision'](_0xfd8545),_0xfd8545;}['loadRevisionData'](_0x544ec2){if(!_0x544ec2||_0x544ec2['diffData'])return Promise['resolve']();{const _0x3b2d68=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3b2d68,'revisionId':_0x544ec2['id']})['then'](_0x4a914a=>{_0x544ec2['_update']({'diffData':_0x4a914a['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},_0xe002cc=>{for(const _0x365acf of this['editor']['model']['document']['getRootNames']())_0xe002cc['detachRoot'](_0x365acf);});}['_sortAndFilterDiffChanges'](_0x1b709d){const _0x1af559=[],_0x52a871=new Map();for(const _0x198e59 of this['editor']['model']['document']['getRootNames']()){const _0x17277e=this['editor']['editing']['view']['getDomRoot'](_0x198e59);if(!_0x17277e)continue;const _0x3ce506=_0x17277e['getClientRects']()['item'](0x0);_0x3ce506&&(_0x1af559['push'](_0x198e59),_0x52a871['set'](_0x198e59,_0x3ce506));}return _0x1af559['sort']((_0x106b39,_0x12a570)=>{const _0x109ce3=_0x52a871['get'](_0x106b39),_0x407231=_0x52a871['get'](_0x12a570);return _0x109ce3['y']-_0x407231['y']||_0x109ce3['x']-_0x407231['x'];}),(_0x1b709d=_0x1b709d['filter'](_0x116824=>_0x1af559['includes'](_0x116824['rootName'])))['sort']((_0x369aa3,_0x23df60)=>_0x1af559['indexOf'](_0x369aa3['rootName'])-_0x1af559['indexOf'](_0x23df60['rootName'])),_0x1b709d;}['_makeTape'](_0xb87064){const _0x41cb69=Array['from'](_0xb87064['markers'])['filter'](([_0x292f6f,_0x1427e0])=>_0x292f6f['startsWith']('revision:')&&!_0x1427e0['isCollapsed']),_0x2a0b8d=Array['from'](this['editor']['model']['createRangeIn'](_0xb87064)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x41cb69['length'])for(const _0x51b902 of _0x2a0b8d){const [_0xa81304,_0x4dd8ed]=_0x41cb69[0x0],[,_0x1f5933,_0x538dba]=_0xa81304['split'](':');if(_0x4dd8ed['end']['isEqual'](_0x51b902['nextPosition'])&&_0x41cb69['shift'](),(_0x51b902['previousPosition']['isEqual'](_0x4dd8ed['start'])||_0x51b902['previousPosition']['isAfter'](_0x4dd8ed['start']))&&('insertion'==_0x1f5933?_0x51b902['isAdded']={'userId':_0x538dba}:'deletion'==_0x1f5933&&(_0x51b902['isRemoved']={'userId':_0x538dba})),0x0==_0x41cb69['length'])break;}return _0x2a0b8d;}['_refreshStartEndIndex'](_0x51753e){const _0xb9086a=new Map();for(let _0x5da84b=0x0;_0x5da84b<_0x51753e['length'];_0x5da84b++)'text'===_0x51753e[_0x5da84b]['type']?(_0x51753e[_0x5da84b]['item']['startIndex']=_0x5da84b,_0x51753e[_0x5da84b]['item']['endIndex']=_0x5da84b):('elementStart'===_0x51753e[_0x5da84b]['type']?_0x51753e[_0x5da84b]['item']['startIndex']=_0x5da84b:'elementEnd'===_0x51753e[_0x5da84b]['type']&&(_0x51753e[_0x5da84b]['item']['endIndex']=_0x5da84b),_0xb9086a['set'](_0x51753e[_0x5da84b]['id'],_0x5da84b));for(const _0x5756c2 of _0xb9086a['values']())'elementStart'===_0x51753e[_0x5756c2]['type']?_0x51753e[_0x5756c2]['item']['endIndex']=_0xb9086a['get'](_0x51753e[_0x5756c2]['pairId']):'elementEnd'===_0x51753e[_0x5756c2]['type']&&(_0x51753e[_0x5756c2]['item']['startIndex']=_0xb9086a['get'](_0x51753e[_0x5756c2]['pairId']));}['_processTape'](_0x20a008){for(let _0x2186c2=0x0;_0x2186c2<_0x20a008['length'];_0x2186c2++){if('elementStart'===_0x20a008[_0x2186c2]['type'])_0x20a008[_0x2186c2]['item']['startIndex']=_0x2186c2;else{if('elementEnd'===_0x20a008[_0x2186c2]['type']){_0x20a008[_0x2186c2]['item']['endIndex']=_0x2186c2;const _0x36361a=_0x20a008[_0x2186c2]['item']['startIndex'];_0x20a008[_0x36361a]['pairId']=_0x20a008[_0x2186c2]['id'],_0x20a008[_0x2186c2]['pairId']=_0x20a008[_0x36361a]['id'];}else _0x20a008[_0x2186c2]['item']['startIndex']=_0x2186c2,_0x20a008[_0x2186c2]['item']['endIndex']=_0x2186c2,_0x20a008[_0x2186c2]['pairId']=null;}_0x20a008[_0x2186c2]['markersStart']||(_0x20a008[_0x2186c2]['markersStart']=[],_0x20a008[_0x2186c2]['markersEnd']=[]);}}['_markInsertions'](_0xc2b784,_0x52466a){const _0x5af9ad=_0xc2b784['filter'](_0x5342d2=>!_0x5342d2['isAdded']);for(let _0x6c5991=0x0;_0x6c5991<_0x52466a['length'];_0x6c5991++)_0x52466a[_0x6c5991]['isAdded']&&(_0x5af9ad[_0x6c5991]['isAdded']=_0x52466a[_0x6c5991]['isAdded']);}['_makeModelFromViewString'](_0x29eb25){const _0x38fed8=JSON['parse'](_0x29eb25),_0x573891=this['editor']['editing']['view']['document'],_0x14e983=new _0x5a4efd(_0x573891,_0x38fed8['map'](_0x555f20=>this['_getViewObj'](_0x555f20)));return this['editor']['data']['toModel'](_0x14e983);}['_getViewObj'](_0x3b2413){const _0x44eaef=this['editor']['editing']['view']['document'];if('string'==typeof _0x3b2413)return new _0xb06d2d(_0x44eaef,_0x3b2413);{const _0x46c80c=_0x3b2413['children']['map'](_0xb0de83=>this['_getViewObj'](_0xb0de83));return new(Y[_0x3b2413['type']]||_0x1185ac)(_0x44eaef,_0x3b2413['name'],_0x3b2413['attributes'],_0x46c80c);}}['_getDiff'](_0x6a9c9a,_0x5a06e2=null){const _0x18189f=this['repository']['getRevision'](_0x6a9c9a),_0x12cb74=_0x5a06e2?this['repository']['getRevision'](_0x5a06e2):null,_0x980d46=this['_getRevisionsRange'](_0x18189f,_0x12cb74),_0x4397c4=_0x980d46[_0x980d46['length']-0x1],_0x42fc0c=new Map(),_0x5abc67={'model':{},'attributes':{},'changes':[]},_0x3cfaec=new Set(),_0x301287=new Map();for(let _0x1c13b1=_0x980d46['length']-0x1;_0x1c13b1>=0x0;_0x1c13b1--){const _0x22a4ba=_0x980d46[_0x1c13b1];for(const _0x501d1f of Object['keys'](_0x22a4ba['diffData']))if(_0x22a4ba['diffData'][_0x501d1f]['attachChange']){const _0x4d3f16=_0x22a4ba['diffData'][_0x501d1f]['attachChange'];_0x4d3f16['isAttached']?(_0x3cfaec['add'](_0x501d1f),_0x301287['has'](_0x501d1f)&&_0x301287['get'](_0x501d1f)['userId']==_0x4d3f16['userId']?_0x301287['delete'](_0x501d1f):_0x301287['set'](_0x501d1f,_0x4d3f16)):_0x301287['has'](_0x501d1f)?(_0x3cfaec['delete'](_0x501d1f),_0x301287['delete'](_0x501d1f)):(_0x3cfaec['add'](_0x501d1f),_0x301287['set'](_0x501d1f,_0x4d3f16));}else _0x3cfaec['add'](_0x501d1f);}for(const _0x3029c7 of _0x3cfaec){const _0x2c5263=_0x301287['has'](_0x3029c7)&&!_0x301287['get'](_0x3029c7)['isAttached'];let _0x1442c4=_0x2c5263?_0x980d46['length']-0x1:0x0;const _0x337f7e=_0x2c5263?-0x1:0x1;for(;_0x980d46[_0x1442c4];){const _0x1ce749=_0x980d46[_0x1442c4];if(_0x1ce749['diffData'][_0x3029c7]){const _0x322c10=_0x2c5263?_0x1ce749['diffData'][_0x3029c7]['attributesBefore']:_0x1ce749['diffData'][_0x3029c7]['attributesAfter'];_0x5abc67['attributes'][_0x3029c7]=_0x322c10?_0x1625ab(_0x322c10):{};break;}_0x1442c4+=_0x337f7e;}}for(const _0x5ed73b of _0x980d46){_0x5ed73b['model']={};for(const _0x493046 of _0x5ed73b['authors'])_0x42fc0c['set'](_0x493046['id'],_0x493046);for(const _0x499917 of _0x3cfaec){const _0x44d502=_0x5ed73b['diffData'][_0x499917]?_0x5ed73b['diffData'][_0x499917]['insertions']:'[]',_0x21d345=_0x5ed73b['diffData'][_0x499917]?_0x5ed73b['diffData'][_0x499917]['deletions']:'[]';_0x5ed73b['model'][_0x499917]={'insertions':this['_makeModelFromViewString'](_0x44d502),'deletions':this['_makeModelFromViewString'](_0x21d345)};}}for(const _0xb84119 of _0x3cfaec){let _0x56b14a=null,_0x343978=0x0;const _0x4aa682=new Map(Array['from'](_0x18189f['model'][_0xb84119]['insertions']['markers'])['filter'](([_0x146d54])=>!_0x146d54['startsWith']('revision:')));let _0x23f7fb=0x0;for(const _0x4fa105 of _0x980d46){const _0x429996=this['_makeTape'](_0x4fa105['model'][_0xb84119]['insertions']);_0x4fa105==_0x18189f?(_0x56b14a=_0x429996,_0x343978=_0x56b14a['length'],_0x56b14a['forEach'](_0x23e9e3=>{_0x23e9e3['id']=_0x23f7fb++;}),this['_processTape'](_0x56b14a)):this['_markInsertions'](_0x56b14a,_0x429996);const _0x558ac3=_0x56b14a['filter'](_0x256362=>!_0x256362['isAdded'])['map'](_0x29b2c1=>_0x29b2c1['id']);let _0x1cb6a9=0x0;const _0xc561c2=this['_makeTape'](_0x4fa105['model'][_0xb84119]['deletions']);_0xc561c2['forEach'](_0x4a3232=>{_0x4a3232['isRemoved']?_0x4a3232['id']=_0x343978++:_0x4a3232['id']=_0x558ac3[_0x1cb6a9++];}),this['_processTape'](_0xc561c2),this['_setDistance'](_0x56b14a,'isAdded'),this['_setDistance'](_0xc561c2,'isRemoved'),_0x4fa105==_0x18189f&&this['_markMarkers'](_0x56b14a,_0x4aa682),_0x56b14a=this['_joinTapes'](_0x56b14a,_0xc561c2),this['_refreshStartEndIndex'](_0x56b14a),this['_setDistance'](_0x56b14a,'isRemoved');}_0x56b14a=_0x56b14a['filter'](_0x3671ce=>!(_0x3671ce['isAdded']&&_0x3671ce['isRemoved']));const _0x1319f2=new Map(_0x4397c4['model'][_0xb84119]['deletions']['markers']),_0x255db2=new Set(_0x4aa682['keys']());for(const _0x257c0f of _0x1319f2['keys']())_0x255db2['delete'](_0x257c0f);this['_markSuggestions'](_0x56b14a,_0x255db2),this['_fixObsoleteTags'](_0x56b14a),_0x56b14a=this['_removeMissingPairs'](_0x56b14a),_0x56b14a=this['_markMismatchedRemovedTags'](_0x56b14a),_0x56b14a=this['_removeUnsupportedChanges'](_0x56b14a);const {root:_0x5665b9,changes:_0x33e425}=this['_makeModelFromTape'](_0x56b14a,_0x42fc0c,_0xb84119);_0x5abc67['model'][_0xb84119]=_0x5665b9;const _0x18f8b2=_0x301287['get'](_0xb84119);if(_0x18f8b2){const _0x164329=_0x42fc0c['get'](_0x18f8b2['userId']),_0x20e165=new r({'author':_0x164329,'type':_0x18f8b2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xb84119});_0x33e425['unshift'](_0x20e165),_0x5abc67['attributes'][_0xb84119]['revisionHistoryAttachChange']=_0x20e165['id'];}_0x5abc67['changes']=_0x5abc67['changes']['concat'](_0x33e425);}return _0x5abc67;}['_markMarkers'](_0x257e31,_0x3a397d){for(let _0xad4a36=0x0;_0xad4a36<_0x257e31['length'];_0xad4a36++)for(const [_0x2fbe05,_0x1f015c]of _0x3a397d)_0x1f015c['start']['isEqual'](_0x257e31[_0xad4a36]['previousPosition'])&&_0x257e31[_0xad4a36]['markersStart']['push'](_0x2fbe05),_0x1f015c['end']['isEqual'](_0x257e31[_0xad4a36]['nextPosition'])&&_0x257e31[_0xad4a36]['markersEnd']['push'](_0x2fbe05);}['_joinTapes'](_0x2adb46,_0x5aa339){let _0x5c4bb5=[],_0x17a603=0x0,_0x1fd1ab=0x0;for(;_0x17a603<_0x2adb46['length']||_0x1fd1ab<_0x5aa339['length'];){const _0x561890=_0x2adb46[_0x17a603]||{},_0x641f45=_0x5aa339[_0x1fd1ab]||{};if(_0x561890['id']==_0x641f45['id'])_0x17a603++,_0x1fd1ab++,_0x5c4bb5['push'](_0x561890);else{if(_0x641f45['isRemoved']&&_0x561890['isAdded']){const {commonTape:_0x3622fd,iEnd:_0x3ea0ea,jEnd:_0x42f396}=this['_threeWayMerge'](_0x2adb46,_0x17a603,_0x5aa339,_0x1fd1ab);_0x5c4bb5=_0x5c4bb5['concat'](_0x3622fd),_0x17a603=_0x3ea0ea,_0x1fd1ab=_0x42f396;}else _0x641f45['isRemoved']?(_0x1fd1ab++,_0x5c4bb5['push'](_0x641f45)):(_0x17a603++,_0x5c4bb5['push'](_0x561890));}}return _0x5c4bb5;}['_markSuggestions'](_0x166a69,_0x366298){const _0x1c6eae=[];for(let _0x40c5b8=0x0;_0x40c5b8<_0x166a69['length'];_0x40c5b8++){for(let _0x57c242=0x0;_0x57c242<_0x166a69[_0x40c5b8]['markersStart']['length'];_0x57c242++){const _0x575520=_0x166a69[_0x40c5b8]['markersStart'][_0x57c242];if(!_0x366298['has'](_0x575520))continue;const {group:_0x440708,type:_0x52d277,authorId:_0x55d443}=_0x44b044(_0x575520);'revision-suggestion'!=_0x440708||'insertion'!=_0x52d277&&'deletion'!=_0x52d277||(_0x1c6eae['unshift']({'type':_0x52d277,'name':_0x575520,'userId':_0x55d443}),_0x166a69[_0x40c5b8]['markersStart']['splice'](_0x57c242,0x1),_0x57c242--);}_0x46b422(_0x166a69[_0x40c5b8]);for(let _0x1ef42a=0x0;_0x1ef42a<_0x166a69[_0x40c5b8]['markersEnd']['length'];_0x1ef42a++){const _0x13f8bf=_0x166a69[_0x40c5b8]['markersEnd'][_0x1ef42a];if(!_0x366298['has'](_0x13f8bf))continue;const {group:_0x36dfdb,type:_0x3612fd}=_0x44b044(_0x13f8bf);if('revision-suggestion'!=_0x36dfdb||'insertion'!=_0x3612fd&&'deletion'!=_0x3612fd)continue;_0x166a69[_0x40c5b8]['markersEnd']['splice'](_0x1ef42a,0x1),_0x1ef42a--;const _0x4146e8=_0x1c6eae['findIndex'](_0x92300e=>_0x92300e['name']==_0x13f8bf);_0x4146e8>-0x1&&_0x1c6eae['splice'](_0x4146e8,0x1);}}function _0x44b044(_0x257b73){const _0x2c4508=_0x257b73['split'](':');return{'group':_0x2c4508[0x0],'type':_0x2c4508[0x1],'subType':_0x2c4508['length']>=0x5?_0x2c4508[0x2]:null,'id':_0x2c4508['length']<0x5?_0x2c4508[0x2]:_0x2c4508[0x3],'authorId':_0x2c4508['length']<0x5?_0x2c4508[0x3]:_0x2c4508[0x4],'markerCount':0x6==_0x2c4508['length']?_0x2c4508[0x5]:null};}function _0x46b422(_0x4be3fe){for(let _0x526096=0x0;_0x526096<_0x1c6eae['length'];_0x526096++){if(_0x4be3fe['isAdded']&&'insertion'==_0x1c6eae[_0x526096]['type'])return _0x4be3fe['isAddSuggestion']=_0x1c6eae[_0x526096],void delete _0x4be3fe['isAdded'];if(!_0x4be3fe['isAdded']&&!_0x4be3fe['isRemoved']&&'deletion'==_0x1c6eae[_0x526096]['type'])return void(_0x4be3fe['isRemoveSuggestion']=_0x1c6eae[_0x526096]);}}}['_setDistance'](_0x675ebe,_0x1cf427){let _0x29aefa=0x0,_0x59619c=!0x1;const _0x3720a6=new Map();for(const _0x349e05 of _0x675ebe)_0x349e05[_0x1cf427]?_0x59619c&&(_0x29aefa++,_0x59619c=!0x1):(_0x29aefa++,_0x59619c=!0x0),_0x3720a6['set'](_0x349e05['id'],_0x29aefa);for(let _0x20f71a=0x0;_0x20f71a<_0x675ebe['length'];_0x20f71a++){if('isRemoved'==_0x1cf427&&_0x675ebe[_0x20f71a]['isAdded']||'isAdded'==_0x1cf427&&_0x675ebe[_0x20f71a]['isRemoved'])continue;if('text'==_0x675ebe[_0x20f71a]['type']){_0x675ebe[_0x20f71a]['distance']=0x0;continue;}const _0x44ae0d=_0x3720a6['get'](_0x675ebe[_0x20f71a]['pairId']),_0x51b43c=_0x3720a6['get'](_0x675ebe[_0x20f71a]['id']);_0x675ebe[_0x20f71a]['distance']=_0x44ae0d-_0x51b43c;}}['_getRevisionsRange'](_0x142a10,_0x48fe2f,_0x6ca837=!0x1){const _0x4ee13d=[];let _0x567b18=this['repository']['getIndex'](_0x142a10),_0x17492b=this['repository']['getIndex'](_0x48fe2f);for(-0x1==_0x17492b&&(_0x17492b=this['repository']['_revisions']['length'],_0x6ca837=!0x1);_0x567b18<_0x17492b;)_0x4ee13d['push'](this['repository']['getRevision'](_0x567b18)),_0x567b18++;return _0x6ca837&&_0x4ee13d['push'](this['repository']['getRevision'](_0x567b18)),_0x4ee13d;}['_threeWayMerge'](_0x5c329c,_0x5f96a3,_0x5289d9,_0x1a93c2){const _0x13a69d=this['editor']['model']['schema'];let _0x20b419=_0x5f96a3;for(;_0x5c329c[_0x20b419]&&_0x5c329c[_0x20b419]['isAdded'];)_0x20b419++;let _0x229dab=_0x1a93c2;for(;_0x5289d9[_0x229dab]&&_0x5289d9[_0x229dab]['isRemoved'];)_0x229dab++;_0x2afc30(_0x5c329c,_0x5f96a3,_0x20b419),_0x2afc30(_0x5289d9,_0x1a93c2,_0x229dab);const _0x518bb5=_0x5289d9['slice'](_0x1a93c2,_0x229dab)['concat'](_0x5c329c['slice'](_0x5f96a3,_0x20b419));return _0x518bb5['sort']((_0x301d36,_0x2079e5)=>_0x301d36['side']!=_0x2079e5['side']?_0x301d36['side']-_0x2079e5['side']:_0x301d36['level']!=_0x2079e5['level']?_0x301d36['level']-_0x2079e5['level']:_0x301d36['distance']!=_0x2079e5['distance']?_0x2079e5['distance']-_0x301d36['distance']:!!_0x301d36['isAdded']!=!!_0x2079e5['isAdded']?-0x1==_0x301d36['side']||0x0==_0x301d36['side']?_0x301d36['isAdded']?-0x1:0x1:_0x301d36['isAdded']?0x1:-0x1:_0x301d36['index']-_0x2079e5['index']),{'commonTape':_0x518bb5,'iEnd':_0x20b419,'jEnd':_0x229dab};function _0x2afc30(_0x59b0f6,_0x1cec8a,_0x5643a0){let _0x53be2c=-0x1,_0xec55fd=Number['POSITIVE_INFINITY'],_0x296d77=!0x0;for(let _0x2878c0=_0x1cec8a;_0x2878c0<_0x5643a0;_0x2878c0++)if(_0x13a69d['isInline'](_0x59b0f6[_0x2878c0]['item'])||(_0x296d77=!0x1),_0x59b0f6[_0x2878c0]['item']['startIndex']<_0x1cec8a&&(_0x53be2c=_0x2878c0),_0x59b0f6[_0x2878c0]['item']['endIndex']>=_0x5643a0){_0xec55fd=_0x2878c0;break;}_0x296d77&&(_0x53be2c=_0x5643a0-0x1);for(let _0x6620b5=_0x1cec8a;_0x6620b5<_0x5643a0;_0x6620b5++)_0x59b0f6[_0x6620b5]['side']=_0x6620b5<=_0x53be2c?-0x1:_0x6620b5<_0xec55fd?0x0:0x1,_0x59b0f6[_0x6620b5]['index']=_0x6620b5;let _0x506524=0x0;for(let _0x2e897e=_0x1cec8a;_0x2e897e<=_0x53be2c;_0x2e897e++)0x0==_0x59b0f6[_0x2e897e]['distance']?_0x59b0f6[_0x2e897e]['level']=_0x506524:(_0x506524++,_0x59b0f6[_0x2e897e]['level']=_0x506524,_0x506524++);for(let _0x3b06f7=_0x1cec8a;_0x3b06f7<_0x5643a0;_0x3b06f7++)0x0==_0x59b0f6[_0x3b06f7]['side']&&(_0x59b0f6[_0x3b06f7]['level']=_0x506524);_0x506524=0x0;for(let _0x4b17b9=_0x5643a0-0x1;_0x4b17b9>=_0xec55fd;_0x4b17b9--)0x0==_0x59b0f6[_0x4b17b9]['distance']?_0x59b0f6[_0x4b17b9]['level']=_0x506524:(_0x506524--,_0x59b0f6[_0x4b17b9]['level']=_0x506524,_0x506524--);}}['_fixObsoleteTags'](_0x1948be){const _0x1fded2=new Map(),_0x20d56d=this['editor']['model']['schema'];for(let _0x25297d=0x1;_0x25297d<_0x1948be['length'];_0x25297d++){let _0x220382,_0x46e90a,_0x4515a1;const _0x3e81f9=_0x1948be[_0x25297d],_0x35b6c4=_0x1948be[_0x25297d-0x1];if('text'==_0x3e81f9['type'])continue;if(_0x3e81f9['type']!=_0x35b6c4['type'])continue;if(!_0x20d56d['isBlock'](_0x35b6c4['item'])||_0x20d56d['isLimit'](_0x35b6c4['item']))continue;if(!_0x20d56d['isBlock'](_0x3e81f9['item'])||_0x20d56d['isLimit'](_0x3e81f9['item']))continue;if((_0x1948be[_0x25297d]['isAdded']||_0x1948be[_0x25297d]['isAddSuggestion'])&&_0x1948be[_0x25297d-0x1]['isRemoved'])_0x220382=_0x1948be[_0x25297d],_0x46e90a=_0x1948be[_0x25297d-0x1],_0x4515a1=_0x25297d-0x1;else{if(!_0x1948be[_0x25297d]['isRemoved']||!_0x1948be[_0x25297d-0x1]['isAdded']&&!_0x1948be[_0x25297d-0x1]['isAddSuggestion'])continue;_0x220382=_0x1948be[_0x25297d-0x1],_0x46e90a=_0x1948be[_0x25297d],_0x4515a1=_0x25297d;}const _0x518be7=_0x220382['level']==_0x46e90a['level'],_0x2327e8=Math['abs'](_0x220382['level'])<Math['abs'](_0x46e90a['level'])&&0x0==_0x46e90a['distance'];(_0x518be7||_0x2327e8)&&(_0x1fded2['set'](_0x46e90a['id'],_0x220382['id']),_0x1948be['splice'](_0x4515a1,0x1),_0x25297d--,_0x220382['isAdded']=!0x1);}for(let _0x2cfee8=0x0;_0x2cfee8<_0x1948be['length'];_0x2cfee8++)_0x1fded2['has'](_0x1948be[_0x2cfee8]['pairId'])&&(_0x1948be[_0x2cfee8]['pairId']=_0x1fded2['get'](_0x1948be[_0x2cfee8]['pairId']));}['_removeMissingPairs'](_0x529e8c){const _0x1a80f6=new Set(_0x529e8c['map'](_0x4d7bfd=>_0x4d7bfd['id']));for(let _0x59fb32=0x0;_0x59fb32<_0x529e8c['length'];_0x59fb32++)_0x1a80f6['has'](_0x529e8c[_0x59fb32]['pairId'])||0x0==_0x529e8c[_0x59fb32]['distance']||(_0x529e8c[_0x59fb32]['isIncorrect']=!0x0);return _0x529e8c['filter'](_0x400953=>!_0x400953['isIncorrect']);}['_markMismatchedRemovedTags'](_0x193a97){const _0x4b5a35=new Set();for(let _0x2cac26=0x0;_0x2cac26<_0x193a97['length'];_0x2cac26++){if(_0x4b5a35['has'](_0x193a97[_0x2cac26]['id'])&&_0x193a97[_0x2cac26]['isRemoved']&&(_0x193a97[_0x2cac26]['isIncorrect']=!0x0),_0x193a97[_0x2cac26]['isIncorrect'])continue;if(0x0==_0x193a97[_0x2cac26]['distance'])continue;if('elementStart'!=_0x193a97[_0x2cac26]['type'])continue;if(null==_0x193a97[_0x2cac26]['pairId'])continue;let _0x48f202=_0x2cac26+0x1,_0x2a987e=0x0;for(;_0x193a97[_0x48f202]['id']!=_0x193a97[_0x2cac26]['pairId'];)'elementStart'==_0x193a97[_0x48f202]['type']?_0x2a987e++:'elementEnd'==_0x193a97[_0x48f202]['type']&&_0x2a987e--,_0x48f202++;if(0x0!=_0x2a987e){if(_0x193a97[_0x2cac26]['isRemoved'])_0x193a97[_0x2cac26]['isIncorrect']=!0x0;else{for(;_0x48f202!=_0x2cac26;)_0x193a97[_0x48f202]['isRemoved']&&0x0!=_0x193a97[_0x48f202]['distance']&&(_0x193a97[_0x48f202]['isIncorrect']=!0x0,_0x4b5a35['add'](_0x193a97[_0x48f202]['pairId'])),_0x48f202--;}}}return _0x193a97['filter'](_0x4b0327=>!_0x4b0327['isIncorrect']);}['_removeUnsupportedChanges'](_0x48c9a8){const _0x55eb91=this['editor']['model']['schema'];for(let _0xb3b0ad=0x0;_0xb3b0ad<_0x48c9a8['length'];_0xb3b0ad++){if(!(_0x48c9a8[_0xb3b0ad]['isAdded']||_0x48c9a8[_0xb3b0ad]['isAddSuggestion']||_0x48c9a8[_0xb3b0ad]['isRemoved']||_0x48c9a8[_0xb3b0ad]['isRemoveSuggestion']))continue;if(0x0==_0x48c9a8[_0xb3b0ad]['distance'])continue;const _0x2c7218=_0x48c9a8[_0xb3b0ad]['item'];_0x55eb91['isBlock'](_0x2c7218)||_0x55eb91['isLimit'](_0x2c7218)||(_0x48c9a8[_0xb3b0ad]['isAdded']&&delete _0x48c9a8[_0xb3b0ad]['isAdded'],_0x48c9a8[_0xb3b0ad]['isAddSuggestion']&&delete _0x48c9a8[_0xb3b0ad]['isAddSuggestion'],_0x48c9a8[_0xb3b0ad]['isRemoveSuggestion']&&delete _0x48c9a8[_0xb3b0ad]['isRemoveSuggestion'],_0x48c9a8[_0xb3b0ad]['isRemoved']&&(_0x48c9a8[_0xb3b0ad]['isIncorrect']=!0x0));}return _0x48c9a8['filter'](_0x3e64c2=>!_0x3e64c2['isIncorrect']);}['_makeModelFromTape'](_0x785d8c,_0x45cc83,_0x264ef5){const _0x3448c2=new mt(),_0x16244f=[],_0x14317e=new Map(),_0x5d7934=this['editor']['model'],_0x4f786c=_0x5d7934['schema'],_0x5e241b=[_0x3448c2],_0x3f448a={},_0x4cf26b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x18ebea=null;const _0x19473b=[0x0];for(let _0x4520f2=0x0;_0x4520f2<_0x785d8c['length'];_0x4520f2++)if('elementStart'===_0x785d8c[_0x4520f2]['type']){_0x785d8c[_0x4520f2]['previousPosition']=_0x5d7934['createPositionFromPath'](_0x3448c2,_0x19473b);const _0x2d432f=new ft(_0x785d8c[_0x4520f2]['item']['name'],_0x785d8c[_0x4520f2]['item']['getAttributes']());_0x5e241b[0x0]['_appendChild'](_0x2d432f),_0x19473b['push'](0x0),_0x5e241b['unshift'](_0x2d432f),_0x785d8c[_0x4520f2]['nextPosition']=_0x5d7934['createPositionFromPath'](_0x3448c2,_0x19473b);}else'elementEnd'===_0x785d8c[_0x4520f2]['type']?(_0x5e241b['shift'](),_0x785d8c[_0x4520f2]['previousPosition']=_0x5d7934['createPositionFromPath'](_0x3448c2,_0x19473b),_0x19473b['pop'](),_0x19473b[_0x19473b['length']-0x1]++,_0x785d8c[_0x4520f2]['nextPosition']=_0x5d7934['createPositionFromPath'](_0x3448c2,_0x19473b)):(_0x785d8c[_0x4520f2]['previousPosition']=_0x5d7934['createPositionFromPath'](_0x3448c2,_0x19473b),_0x18ebea?_0x18ebea['_data']+=_0x785d8c[_0x4520f2]['item']['data']:_0x18ebea=new wt(_0x785d8c[_0x4520f2]['item']['data'],_0x785d8c[_0x4520f2]['item']['getAttributes']()),_0x785d8c[_0x4520f2+0x1]&&'text'===_0x785d8c[_0x4520f2+0x1]['type']&&_0x3e07e7(_0x18ebea,_0x785d8c[_0x4520f2+0x1]['item'])||(_0x5e241b[0x0]['_appendChild'](_0x18ebea),_0x18ebea=null),_0x19473b[_0x19473b['length']-0x1]+=_0x785d8c[_0x4520f2]['item']['offsetSize'],_0x785d8c[_0x4520f2]['nextPosition']=_0x5d7934['createPositionFromPath'](_0x3448c2,_0x19473b));for(let _0x1df00a=0x0;_0x1df00a<_0x785d8c['length'];_0x1df00a++){const _0x84ce57=_0x785d8c[_0x1df00a]['previousPosition'],_0x1cb2fc=_0x785d8c[_0x1df00a]['nextPosition'];for(const _0x54c7eb of _0x785d8c[_0x1df00a]['markersStart'])_0x14317e['set'](_0x54c7eb,{'start':_0x84ce57,'end':null});_0xd3ce38('isRemoveSuggestion',_0x1df00a,_0x84ce57,_0x1cb2fc),_0xd3ce38('isAddSuggestion',_0x1df00a,_0x84ce57,_0x1cb2fc),_0xd3ce38('isRemoved',_0x1df00a,_0x84ce57,_0x1cb2fc),_0xd3ce38('isAdded',_0x1df00a,_0x84ce57,_0x1cb2fc);for(const _0x176312 of _0x785d8c[_0x1df00a]['markersEnd']){_0x14317e['get'](_0x176312)['end']=_0x1cb2fc;}}for(const [_0x3f4f01,_0x48c6aa]of _0x14317e){const _0xd9295=this['editor']['model']['createRange'](_0x48c6aa['start'],_0x48c6aa['end']);_0x3448c2['markers']['set'](_0x3f4f01,_0xd9295);}return _0x16244f['sort']((_0x1ddabd,_0x104f45)=>{const _0x1fbb2b=_0x3448c2['markers']['get']('revision:'+_0x1ddabd['id']),_0x537318=_0x3448c2['markers']['get']('revision:'+_0x104f45['id']);return _0x1fbb2b['start']['isBefore'](_0x537318['start'])?-0x1:_0x1fbb2b['start']['isAfter'](_0x537318['start'])?0x1:_0x1fbb2b['end']['isBefore'](_0x537318['end'])?-0x1:_0x1fbb2b['end']['isAfter'](_0x537318['end'])?0x1:'add'===_0x1ddabd['type']?-0x1:0x1;}),{'root':_0x3448c2,'changes':_0x16244f};function _0xd3ce38(_0x306686,_0x294354,_0x131678,_0x4bd06d){const _0xf7bdc=!!_0x785d8c[_0x294354][_0x306686],_0x3d186b=_0xf7bdc?_0x785d8c[_0x294354][_0x306686]['userId']:null,_0x12ded6=_0x294354===_0x785d8c['length']-0x1,_0x46cc29=_0x4cf26b[_0x306686][0x0],_0x2137eb=_0x4f786c['isObject'](_0x785d8c[_0x294354]['item']);!_0x3f448a[_0x306686]&&_0xf7bdc?_0x3f448a[_0x306686]={'start':_0x131678,'tapeItem':_0x785d8c[_0x294354],'userId':_0x3d186b,'type':_0x306686}:_0x3f448a[_0x306686]&&!_0xf7bdc?(_0x3f448a[_0x306686]['end']=_0x131678,_0x16717d(_0x3f448a[_0x306686]),_0x3f448a[_0x306686]=null):_0x3f448a[_0x306686]&&_0xf7bdc&&_0x3f448a[_0x306686]['userId']!==_0x3d186b&&(_0x3f448a[_0x306686]['end']=_0x131678,_0x46cc29&&_0x46cc29['userId']===_0x3f448a[_0x306686]['userId']||_0x16717d(_0x3f448a[_0x306686]),_0x3f448a[_0x306686]={'start':_0x131678,'tapeItem':_0x785d8c[_0x294354],'userId':_0x3d186b,'type':_0x306686}),_0x3f448a[_0x306686]&&_0x2137eb&&('elementStart'!==_0x785d8c[_0x294354]['type']||_0x46cc29&&_0x46cc29['userId']===_0x3d186b||_0x4cf26b[_0x306686]['unshift']({'userId':_0x3d186b,'object':_0x785d8c[_0x294354]['item'],'change':_0x3f448a[_0x306686]}),'elementEnd'===_0x785d8c[_0x294354]['type']&&_0x46cc29&&_0x46cc29['object']===_0x785d8c[_0x294354]['item']&&(_0x4cf26b[_0x306686]['shift'](),_0x3f448a[_0x306686]=_0x46cc29['change'])),_0x3f448a[_0x306686]&&_0x12ded6&&(_0x3f448a[_0x306686]['end']=_0x4bd06d,_0x16717d(_0x3f448a[_0x306686]),_0x3f448a[_0x306686]=null);}function _0x16717d({start:_0x109ff0,end:_0x59b1d7,tapeItem:_0x4aef1d,userId:_0x29df9e,type:_0x48bb28}){const _0x473b47=_0x4aef1d['item'],_0x24d669=_0x5d7934['schema']['isBlock'](_0x473b47)&&!_0x5d7934['schema']['isLimit'](_0x473b47),_0x24b53b=_0x109ff0['nodeAfter']==_0x59b1d7['parent']&&_0x59b1d7['isAtStart'];if(_0x24d669&&_0x24b53b)return;const _0x5498c3=_0x5d7934['createRange'](_0x109ff0,_0x59b1d7),_0x34f55c=_0x45cc83['get'](_0x29df9e),_0x4753b2=new r({'author':_0x34f55c,'type':'isAdded'==_0x48bb28||'isAddSuggestion'==_0x48bb28?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x48bb28||'isRemoveSuggestion'==_0x48bb28},'createdAt':new Date(),'rootName':_0x264ef5});_0x16244f['push'](_0x4753b2),_0x3448c2['markers']['set']('revision:'+_0x4753b2['id'],_0x5498c3);}function _0x3e07e7(_0x4ec957,_0x4d6047){const _0x50058f=_0x4ec957['getAttributes'](),_0x259f90=_0x4d6047['getAttributes']();for(const _0x15be16 of _0x50058f){if(_0x15be16[0x1]!==_0x4d6047['getAttribute'](_0x15be16[0x0]))return!0x1;_0x259f90['next']();}return _0x259f90['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x46e5c9=>{const _0x363a64=_0x46e5c9['markerName']['split'](':')[0x1],_0xac73c1=this['_getChangeFromId'](_0x363a64);if(!_0xac73c1)return null;const _0x20b9b6='add'==_0xac73c1['type']?'insertion':'deletion',_0x576ac6=['ck-suggestion-marker','ck-suggestion-marker-'+_0x20b9b6];return _0xac73c1['data']['isSuggestion']&&_0x576ac6['push']('ck-suggestion-marker-'+_0x20b9b6+'-new'),this['activeChange']==_0xac73c1&&_0x576ac6['push']('ck-suggestion-marker--active'),{'classes':_0x576ac6,'attributes':{'data-change-id':_0x363a64}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x469ac8=>{_0x469ac8['on']('element:pre',(_0x1315e7,_0x3050f5,_0x52a1c8)=>{const _0x15eb31=_0x3050f5['viewItem']['getChild'](0x0);if(!_0x15eb31||!_0x15eb31['is']('element','code'))return;if(!_0x52a1c8['consumable']['consume'](_0x15eb31,{'attributes':['vid_start','vid_end']}))return;const _0x27bda3=_0x3050f5['modelRange']['start']['nodeAfter'];_0x52a1c8['writer']['setAttribute']('vid_start',_0x15eb31['getAttribute']('vid_start'),_0x27bda3),_0x52a1c8['writer']['setAttribute']('vid_end',_0x15eb31['getAttribute']('vid_end'),_0x27bda3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x446211=>{_0x446211['on']('element',(_0x5b90c7,_0x223e92,_0x265f97)=>{if(!_0x265f97['consumable']['consume'](_0x223e92['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x223e92['modelRange']['isCollapsed'])return;const _0xb961f3=_0x223e92['modelRange']['start']['nodeAfter'];_0xb961f3['hasAttribute']('vid_start')||_0xb961f3['hasAttribute']('vid')||(_0x265f97['writer']['setAttribute']('vid_start',_0x223e92['viewItem']['getAttribute']('vid_start'),_0xb961f3),_0x265f97['writer']['setAttribute']('vid_end',_0x223e92['viewItem']['getAttribute']('vid_end'),_0xb961f3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x55c984=>_0x55c984['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4fa632,[,_0x1e27f1])=>{['vid_start','vid_end','vid']['includes'](_0x1e27f1)&&(_0x4fa632['return']=!0x0,_0x4fa632['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x16be00=>{_0x16be00['on']('attribute:vid',(_0x57ae9a,_0x29636f,_0x9ffae4)=>{if('\x20'!=_0x29636f['item']['data']||_0x29636f['item']['parent']['maxOffset']>0x1)return;if(!_0x9ffae4['consumable']['consume'](_0x29636f['item'],_0x57ae9a['name']))return;const _0x7a7ea4=_0x9ffae4['writer'],_0x449cff=_0x9ffae4['mapper']['toViewRange'](_0x29636f['range']);_0x7a7ea4['wrap'](_0x449cff,_0x7a7ea4['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x59c71a){const _0x34c5c=_0x59c71a['plugins']['get']('RevisionViewer');return(_0x405dee,_0x444d6a,_0x397ff5)=>{const _0x38cff7=_0x444d6a['markerName']['split'](':')[0x1],_0x1c9208=_0x34c5c['_getChangeFromId'](_0x38cff7);if(!_0x1c9208)return null;const _0x1855e6='add'==_0x1c9208['type']?'split':'merge';if(!_0x397ff5['consumable']['test'](_0x444d6a['markerRange'],_0x405dee['name']))return;const _0x4fe0c7=_0x444d6a['markerRange']['getWalker'](),_0x21f204=_0x444d6a['markerRange']['start'],_0x2e7db7=_0x59c71a['model']['schema'];let _0x3ef173=null,_0x3a43b1=null,_0x3f9167=!0x1,_0x1f6a82=!0x1;for(const _0x56a330 of _0x4fe0c7){const _0x447759=_0x56a330['item'];_0x3f9167=_0x3f9167||_0x2e7db7['isContent'](_0x447759);const _0xd962f6=_0x397ff5['mapper']['toViewElement'](_0x447759);if(_0xd962f6&&_0xd962f6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56a330['type']&&(_0x2e7db7['isBlock'](_0x447759)&&!_0x2e7db7['isLimit'](_0x447759)&&(_0x447759['nextSibling']||_0x21f204['isAtEnd']?_0x3ef173&&_0x3ef173['parent']==_0x447759||(_0x3ef173=_0x447759,_0x21a6f6(_0x56a330['previousPosition']),_0x1f6a82=!0x0):_0x3a43b1=_0x3a43b1||_0x56a330['previousPosition']));}function _0x21a6f6(_0x9e9da4){const _0x31fcf9=_0x397ff5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1855e6}),_0x8e9bef=_0x397ff5['mapper']['toViewPosition'](_0x9e9da4);_0x1c9208['data']['isSuggestion']&&_0x397ff5['writer']['addClass']('ck-suggestion-marker-'+_0x1855e6+'-new',_0x31fcf9),_0x34c5c['activeChange']==_0x1c9208&&_0x397ff5['writer']['addClass']('ck-suggestion-marker--active',_0x31fcf9),_0x397ff5['writer']['insert'](_0x8e9bef,_0x31fcf9),_0x397ff5['mapper']['bindElementToMarker'](_0x31fcf9,_0x444d6a['markerName']);}_0x3f9167||_0x1f6a82||!_0x3a43b1||_0x21a6f6(_0x3a43b1);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x55b17a,_0x5cc881,_0x3c5e4e)=>{const _0x4c1bd8=_0x3c5e4e['mapper']['markerNameToElements'](_0x5cc881['markerName']);if(_0x4c1bd8){for(const _0x25858e of _0x4c1bd8)(_0x25858e['hasClass']('ck-suggestion-marker-split')||_0x25858e['hasClass']('ck-suggestion-marker-merge'))&&(_0x3c5e4e['mapper']['unbindElementFromMarkerName'](_0x25858e,_0x5cc881['markerName']),_0x3c5e4e['writer']['remove'](_0x25858e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3c4b16,_0x19880b,_0x4c8a55)=>{const _0x2d303c=_0x19880b['markerName']['split'](':')[0x1],_0x623236=this['_getChangeFromId'](_0x2d303c);if(!_0x623236)return null;const _0x58937b='add'==_0x623236['type']?'split':'merge';if(_0x4c8a55['consumable']['test'](_0x19880b['markerRange'],_0x3c4b16['name']))for(const _0x3d4efa of _0x19880b['markerRange']['getItems']()){if(!_0x3d4efa['is']('element','softBreak'))continue;const _0x4f48fd=_0x4c8a55['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58937b}),_0x123e00=_0x4c8a55['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3d4efa));_0x623236['data']['isSuggestion']&&_0x4c8a55['writer']['addClass']('ck-suggestion-marker-'+_0x58937b+'-new',_0x4f48fd),this['activeChange']==_0x623236&&_0x4c8a55['writer']['addClass']('ck-suggestion-marker--active',_0x4f48fd),_0x4c8a55['writer']['insert'](_0x123e00,_0x4f48fd),_0x4c8a55['mapper']['bindElementToMarker'](_0x4f48fd,_0x19880b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x113351=>{for(const _0x39d363 of this['editor']['model']['document']['getRootNames']()){const _0x3b6d66=this['editor']['model']['document']['getRoot'](_0x39d363),_0x8fd140=this['editor']['editing']['view']['document']['getRoot'](_0x39d363);if(_0x8fd140){const _0x373f22=_0x3b6d66['getAttribute']('revisionHistoryAttachChange');if(_0x113351['removeAttribute']('data-change-id',_0x8fd140),_0x113351['removeClass']('ck-revision-history-root-add',_0x8fd140),_0x113351['removeClass']('ck-revision-history-root-remove',_0x8fd140),_0x113351['removeClass']('ck-revision-history-root--active',_0x8fd140),_0x373f22){const _0x23cc51=this['_getChangeFromId'](_0x373f22);if(!_0x23cc51)return null;_0x113351['setAttribute']('data-change-id',_0x373f22,_0x8fd140),_0x113351['addClass']('ck-revision-history-root-'+_0x23cc51['type'],_0x8fd140),this['activeChange']==_0x23cc51&&_0x113351['addClass']('ck-revision-history-root--active',_0x8fd140);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2b70ec=>'revision-comment:'+_0x2b70ec,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x199b2f=>'revision-suggestion:'+_0x199b2f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x990589=>({'name':'suggestion:'+_0x990589,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x12d9ba=>{const _0x4c5e98=_0x12d9ba['markerName']['split'](':')[0x1];return'insertion'!=_0x4c5e98&&'deletion'!=_0x4c5e98?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4c5e98]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4cb1be,_0xfa1c37,_0x58f737)=>{const _0x1a90eb=_0x58f737['mapper']['markerNameToElements'](_0xfa1c37['markerName']);if(_0x1a90eb){for(const _0xdd442e of _0x1a90eb)_0xdd442e['is']('uiElement')&&(_0x58f737['mapper']['unbindElementFromMarkerName'](_0xdd442e,_0xfa1c37['markerName']),_0x58f737['writer']['remove'](_0xdd442e));}},{'priority':'high'});}['_getChangeFromId'](_0x5ebabb){return this['_changeIdToChange']['get'](_0x5ebabb);}['_getViewForChange'](_0x46908f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x46908f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1eb54,_0x5801bd,_0x387107,_0x205487)=>{_0x205487&&this['_balloon']['remove'](_0x205487),_0x387107&&(this['_balloon']['add']({'view':_0x387107,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5994b6=this['editor']['editing'],_0x1f4f12=this['_getChangeFromId'](_0x387107['changeId']);let _0x480b13;if(_0x1f4f12['data']['isOnRoot']){const _0x4377de=_0x5994b6['view']['getDomRoot'](_0x1f4f12['rootName']);_0x480b13=Array['from'](_0x4377de['getClientRects']());}else{const _0x363f1b=this['editor']['model']['markers']['get']('revision:'+_0x387107['changeId']);_0x480b13=Array['from'](_0x5994b6['mapper']['markerNameToElements'](_0x363f1b['name']))['map'](_0x2d0a2c=>_0x5994b6['view']['domConverter']['mapViewToDom'](_0x2d0a2c))['map'](_0x57efb0=>Array['from'](_0x57efb0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x480b13[0x0];return _0x480b13['find'](_0x4b468a=>_0x4b468a['top']-0x3<=this['_activeViewTarget']['y']&&_0x4b468a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4b468a['left']-0x3<=this['_activeViewTarget']['x']&&_0x4b468a['right']+0x3>=this['_activeViewTarget']['x'])||_0x480b13[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1684eb,_0x5680b3,_0x4b3d0b,_0x1aa103)=>{this['activeView']=_0x4b3d0b?this['_getViewForChange'](_0x4b3d0b):null,this['editor']['model']['change'](()=>{const _0x3b529c=this['editor']['editing'];_0x1aa103&&(_0x1aa103['data']['isOnRoot']?_0x3b529c['view']['change'](_0x40e7f7=>{_0x40e7f7['removeClass']('ck-revision-history-root--active',_0x3b529c['view']['document']['getRoot'](_0x1aa103['rootName']));}):_0x3b529c['reconvertMarker']('revision:'+_0x1aa103['id'])),_0x4b3d0b&&(_0x4b3d0b['data']['isOnRoot']?_0x3b529c['view']['change'](_0x117ca4=>{_0x117ca4['addClass']('ck-revision-history-root--active',_0x3b529c['view']['document']['getRoot'](_0x4b3d0b['rootName']));}):_0x3b529c['reconvertMarker']('revision:'+_0x4b3d0b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x383a00,_0x32b91c)=>{if(this['activeChange'])return;const _0x10f859=this['_findChangeIdFromDomTarget'](_0x32b91c['target']),_0xb97a16=this['_changeIdToChange']['get'](_0x10f859);_0xb97a16?(this['_activeViewTarget']={'x':_0x32b91c['domEvent']['x'],'y':_0x32b91c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xb97a16)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x23691c,_0x5910e4)=>{const _0x3170b9=this['_findChangeIdFromDomTarget'](_0x5910e4['target']),_0x91da61=this['_changeIdToChange']['get'](_0x3170b9);_0x91da61?(this['_activeViewTarget']={'x':_0x5910e4['domEvent']['x'],'y':_0x5910e4['domEvent']['y']},_0x91da61===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x91da61):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4ed995){do{const _0xc7eb20=_0x4ed995['getAttribute']('data-change-id');if(_0xc7eb20)return _0xc7eb20;_0x4ed995=_0x4ed995['parent'];}while(_0x4ed995);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x66befb=>{for(const _0x34a4c2 of this['editor']['model']['markers'])_0x66befb['removeMarker'](_0x34a4c2);});}}function Z(_0x1090ba,_0x396116){return(_0xfe97bb,_0x30eca7,_0x543704)=>{if(!_0x543704['consumable']['test'](_0x30eca7['markerRange'],_0xfe97bb['name']))return;const _0x440cd2=_0x30eca7['markerRange']['getWalker'](),_0x5327a4=_0x30eca7['markerRange']['start'],_0x12088e=_0x1090ba['model']['schema'];let _0x2a0e95=null,_0x3d4c8e=null,_0x591625=!0x1,_0x3a9f3b=!0x1;for(const _0x3fcdf4 of _0x440cd2){const _0x3934e0=_0x3fcdf4['item'];_0x591625=_0x591625||_0x12088e['isContent'](_0x3934e0);const _0x2940bc=_0x543704['mapper']['toViewElement'](_0x3934e0);if(_0x2940bc&&_0x2940bc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3fcdf4['type']&&(_0x12088e['isBlock'](_0x3934e0)&&!_0x12088e['isLimit'](_0x3934e0)&&(_0x3934e0['nextSibling']||_0x5327a4['isAtEnd']?_0x2a0e95&&_0x2a0e95['parent']==_0x3934e0||(_0x2a0e95=_0x3934e0,_0x3b1611(_0x3fcdf4['previousPosition']),_0x3a9f3b=!0x0):_0x3d4c8e=_0x3d4c8e||_0x3fcdf4['previousPosition']));}function _0x3b1611(_0x2ff59c){const _0x13cdec=_0x543704['mapper']['toViewPosition'](_0x2ff59c),_0x41e1e4=_0x543704['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x396116});_0x543704['writer']['insert'](_0x13cdec,_0x41e1e4),_0x543704['mapper']['bindElementToMarker'](_0x41e1e4,_0x30eca7['markerName']);}_0x591625||_0x3a9f3b||!_0x3d4c8e||_0x3b1611(_0x3d4c8e);};}class pt extends _0x497cb3{constructor(_0x56953b){super(_0x56953b);const _0x10dd0d=_0x56953b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x10dd0d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10dd0d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x530c9c=this['editor'],_0x5ce57a=_0x530c9c['plugins']['get'](d),_0x59d9f8=_0x5ce57a['isReady']?_0x5ce57a['diff']['newRevisionId']:null;_0x530c9c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x59d9f8);}['refresh'](){const {isReady:_0x1dbc54,isEnabled:_0x2222ef,repository:_0xe8cb32,diff:_0x8b6bae}=this['editor']['plugins']['get'](d),_0x3e3814=_0x8b6bae&&_0xe8cb32['getLaterVisibleRevision'](_0x8b6bae['newRevisionId']);this['isEnabled']=_0x1dbc54&&_0x2222ef&&Boolean(_0x3e3814);}}class _t extends _0x497cb3{['_step'];constructor(_0x5ace3d,{direction:_0x4ef676}){super(_0x5ace3d);const _0x45bfe0=_0x5ace3d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4ef676?0x1:-0x1,this['listenTo'](_0x45bfe0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x45bfe0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x45bfe0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x103f46=this['editor'],_0x3ccb7f=_0x103f46['plugins']['get'](d),{isNavigationMode:_0x4bab8c,currentChangeNumber:_0x8e3fee}=_0x3ccb7f;let _0xe14043;if(_0x3ccb7f['activeChange']=_0x4bab8c?_0x3ccb7f['diff']['changes']['get'](_0x8e3fee+this['_step']):_0x3ccb7f['diff']['changes']['first'],_0x3ccb7f['activeChange']['data']['isOnRoot'])_0xe14043=_0x103f46['editing']['view']['getDomRoot'](_0x3ccb7f['activeChange']['rootName']);else{const _0x666728=_0x103f46['model']['markers']['get']('revision:'+_0x3ccb7f['activeChange']['id']);_0xe14043=_0x2c305b(_0x103f46['editing'],_0x666728);}_0x4624c8({'target':_0xe14043,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x21158,currentChangeNumber:_0x1a7297,numberOfChanges:_0x4fb379,isReady:_0xfecb90,isEnabled:_0x508943}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x508943&&_0xfecb90&&_0x4fb379)&&(!_0x21158||(0x1===this['_step']?_0x1a7297<_0x4fb379-0x1:_0x1a7297>0x0));}}class li extends ts{constructor(_0xdc8c91){super(_0xdc8c91);const _0x4a2cfd=this['bindTemplate'],_0x278424=new te(_0xdc8c91),_0x210ea2=new te(_0xdc8c91);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',(_0x1e8dcd,_0x4ea22e)=>_0x1e8dcd&&_0x4ea22e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3d9b96,_0x37ef96,_0x1c32f5,_0x1dc2eb)=>{if(!_0x3d9b96)return m(_0xdc8c91,'Loading...');if(!_0x1c32f5)return m(_0xdc8c91,'No\x20changes');const _0x52da8b=m(_0xdc8c91,'NUMBER_OF_CHANGES',_0x1c32f5);return _0x1dc2eb?m(_0xdc8c91,'X_OF_Y_CHANGES',[_0x37ef96+0x1,_0x1c32f5]):_0x52da8b;}),_0x278424['set']({'label':m(_0xdc8c91,'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'}),_0x210ea2['set']({'label':m(_0xdc8c91,'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'}),_0x278424['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x210ea2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x278424['on']('execute',()=>this['fire']('execute','backward')),_0x210ea2['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',_0x4a2cfd['if']('_isStatusLabelVisible','ck-hidden',_0x21526e=>!_0x21526e)]},'children':[{'text':_0x4a2cfd['to']('isNavigationMode',_0x362da9=>_0x362da9?m(_0xdc8c91,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xdc8c91,'Total')+':\x20')}]},{'text':_0x4a2cfd['to']('_statusText')}]},new _0x2e84ba(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x278424,_0x210ea2]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x21de30{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1df11a=this['editor']['editing']['view'];_0x1df11a['change'](_0x10be9e=>{for(const _0xf9aeb4 of _0x1df11a['document']['roots'])_0x10be9e['addClass'](le,_0xf9aeb4);});}['hide'](){const _0x1c03f9=this['editor']['editing']['view'];_0x1c03f9['change'](_0x372a23=>{for(const _0x4d2503 of _0x1c03f9['document']['roots'])_0x372a23['removeClass'](le,_0x4d2503);});}}class g extends _0x21de30{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1a3355=this['editor'],_0x4361ed=_0x1a3355['plugins']['get'](d),_0x54e91e=_0x1a3355['plugins']['get'](ge);_0x1a3355['ui']['componentFactory']['add']('exitToEditing',_0xadb2d4=>{const _0x362e26=new te(_0xadb2d4);return _0x362e26['set']({'label':m(_0xadb2d4,'Back\x20to\x20editing'),'icon':_0x28f082['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x362e26,'execute',()=>{_0x1a3355['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x362e26;}),_0x1a3355['ui']['componentFactory']['add']('restoreRevision',_0x5755d4=>{const _0x59091c=new te(_0x5755d4);return _0x59091c['set']({'label':m(_0x5755d4,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x59091c['bind']('isEnabled')['to'](_0x1a3355['commands']['get']('restoreRevision')),this['listenTo'](_0x59091c,'execute',()=>_0x1a3355['execute']('restoreRevision')),_0x59091c;}),_0x1a3355['ui']['componentFactory']['add']('changesNavigation',_0x681707=>{const _0x105992=new li(_0x681707),_0x54aa55=_0x1a3355['commands']['get']('showPreviousChange'),_0x37713e=_0x1a3355['commands']['get']('showNextChange');return _0x105992['bind']('isBackwardNavigationEnabled')['to'](_0x54aa55,'isEnabled'),_0x105992['bind']('isForwardNavigationEnabled')['to'](_0x37713e,'isEnabled'),_0x105992['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4361ed),this['listenTo'](_0x105992,'execute',(_0x35fe70,_0x13e6f0)=>{_0x1a3355['execute']('forward'===_0x13e6f0?'showNextChange':'showPreviousChange');}),_0x105992;}),_0x54e91e['show'](),_0x4361ed['on']('change:isReady',(_0x47e3ab,_0x492f07,_0x13edf1)=>{_0x13edf1?_0x54e91e['hide']():_0x54e91e['show']();});}}class at extends _0x20c6fd{['_resizeObserver']=null;constructor(_0x3b3ab5,_0x213bed){super(_0x3b3ab5,_0x213bed);const _0x324329=this['bindTemplate'];this['set']({'label':m(_0x3b3ab5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x3b3ab5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x324329['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x502635=this['fieldView']['element'];this['_tooltipString']=_0x502635['scrollWidth']>_0x502635['clientWidth']&&_0x502635['value']||'';}}class ri extends ts{constructor(_0x401158,_0x5d350d,_0x5eabf6){super(_0x401158);const _0x6c1d09=new _0x2db71c();_0x6c1d09['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 _0x1262ae=['ck','ck-revision-history-sidebar__revision-author'];_0x5eabf6&&_0x1262ae['push']('ck-revision-history-sidebar__revision-author_creator');const _0x10a7aa=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x401158,_0x5eabf6?'Revision\x20creator':'Revision\x20author')},'children':[_0x6c1d09,_0x5d350d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1262ae},'children':_0x10a7aa});}}function oi(_0x1db3b2,_0x4e8c2e){const _0x1afcea=_0x1db3b2['bindTemplate'],_0x4094c3=_0x1db3b2['locale'],_0x4e89da=_0x3d244a(_0x4094c3);_0x4e89da['panelPosition']='sw';const _0x5461d2=function(_0x1c7735,_0x17201f){const _0x279472=function(_0x2fb139,_0x42ecc9){const _0x3e0c0f=_0x2fb139['locale'],_0xdbc128={'Compare\x20against\x20selected':m(_0x3e0c0f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3e0c0f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3e0c0f,'Restore\x20this\x20revision')};return _0x42ecc9['map'](_0xabdc66=>{const _0x193ec9=_0xdbc128[_0xabdc66['name']];return _0x193ec9&&_0x193ec9!==_0xabdc66['name']&&(_0xabdc66['name']=_0x193ec9),_0xabdc66;});}(_0x1c7735,_0x17201f),_0x1e5576=new _0x2a5e32();for(const _0x1af93f of _0x279472){const _0x431bc6={'type':'button','model':new _0x1828e8({'label':_0x1af93f['name'],'class':_0x1af93f['class'],'withText':!0x0,'role':'menuitem','_action':_0x1af93f['action']})};_0x431bc6['model']['bind']('isEnabled')['to'](_0x1c7735,'isActionsDropdownOpen',_0x18f2d3=>'function'!=typeof _0x1af93f['isEnabled']||(!_0x18f2d3||_0x1af93f['isEnabled'](_0x1c7735))),_0x1e5576['add'](_0x431bc6);}return _0x1e5576;}(_0x1db3b2,_0x4e8c2e);return _0x1db3b2['bind']('isActionsDropdownOpen')['to'](_0x4e89da,'isOpen'),_0x4e89da['buttonView']['set']({'label':m(_0x4094c3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28f082['threeVerticalDots']}),_0x4e89da['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1afcea['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1afcea['to'](_0x133deb=>_0x133deb['stopPropagation']())}}),_0x4e89da['on']('execute',_0x3d21e8=>{_0x1db3b2['isReady']&&'function'==typeof _0x3d21e8['source']['_action']&&_0x3d21e8['source']['_action'](_0x1db3b2);}),to(_0x4e89da,_0x5461d2,{'role':'menu'}),_0x4e89da['listenTo'](_0x1db3b2,'change:isActionsDropdownOpen',(_0x5bc039,_0x51a8b3,_0x2e1cf7)=>{if(_0x2e1cf7)for(const _0x1790c0 of _0x4e89da['listView']['items']){const _0x1cebf3=_0x1790c0['children']['first'],_0x415a98=_0x4e8c2e['find'](_0x12791a=>_0x12791a['action']===_0x1cebf3['_action'])['isVisible'];_0x1790c0['isVisible']=void 0x0===_0x415a98||_0x415a98(_0x1db3b2);}}),_0x4e89da;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x2d9680,uid as _0x358749,Collection as _0x42ce0a,logWarning as _0x13b4f9,FocusTracker as _0x14a05e,KeystrokeHandler as _0x593668,scrollViewportToShowTarget as _0x182fa2,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x5f4f1d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x49c00c,set as _0x3ee33f,unset as _0x1b0d3c,isEqual as _0x31d3ce}from'lodash-es';import{Plugin as _0x38c4e4,PendingActions as _0x26d8a9,icons as _0x226c5d,Command as _0x56d2a8,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x25c78c,getMarkerDomElement as _0x3ac489,ConfirmMixin as _0x43bb9d,sanitizeEditorConfig as _0x1e169a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0xe0cd86,Element as ft,Range as vt,ViewUIElement as _0x2dca08,ViewRawElement as _0x11a6f7,ViewEmptyElement as _0x48c1f7,ViewAttributeElement as _0x2053cd,ViewContainerElement as _0x73e509,Position as gt,ViewText as _0x293831,ViewElement as _0x1faa4b,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x3f0f05,injectCssTransitionDisabler as ts,submitHandler as _0x6652f9,LabeledFieldView as nt,createLabeledInputText as _0x1d572c,createDropdown as _0x2a9d1c,ListView as te,ListItemView as _0x451921,ButtonView as _0x13b3b7,MenuBarMenuView as _0x1b77ca,MenuBarMenuListView as _0x3b79b8,MenuBarMenuListItemView as _0x50d7f2,MenuBarMenuListItemButtonView as _0x37066d,ContextualBalloon as _0x377694,ToolbarSeparatorView as _0x492e02,IconView as _0x5787b7,addListToDropdown as _0x546d70,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x446d2f}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2d9680(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1ae52d){super(),this['id']=_0x1ae52d['id']||_0x358749(),this['creator']=_0x1ae52d['creator']||null,this['authors']=_0x1ae52d['authors']||[],this['diffData']=_0x1ae52d['diffData']||null,this['toVersion']=_0x1ae52d['toVersion']||0x0,this['fromVersion']=_0x1ae52d['fromVersion']||0x0,this['set']('name',_0x1ae52d['name']||''),this['set']('createdAt',_0x1ae52d['createdAt']||new Date()),this['set']('attributes',_0x1ae52d['attributes']||{});}['setName'](_0x54295b){this['_update']({'name':_0x54295b});}['setAttribute'](_0x41d357,_0x2c1f26){const _0x43e069=_0x49c00c(this['attributes']);_0x3ee33f(_0x43e069,_0x41d357,_0x2c1f26),this['_update']({'attributes':_0x43e069});}['removeAttribute'](_0x213254){const _0x296243=_0x49c00c(this['attributes']);_0x1b0d3c(_0x296243,_0x213254),this['_update']({'attributes':_0x296243});}['_update'](_0xcfb2ca,_0x41d94f=!0x1){let _0xf0de75=!0x1;const _0x7081e1={'id':this['id']},_0x138886=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x7f2046 of _0x138886){const _0x46295a=_0xcfb2ca[_0x7f2046];void 0x0!==_0x46295a&&_0x46295a!==this[_0x7f2046]&&(this[_0x7f2046]=_0x46295a,_0x7081e1[_0x7f2046]=_0x46295a,_0xf0de75=!0x0);}_0xf0de75&&(_0x7081e1['authors']&&(_0x7081e1['authorsIds']=_0x7081e1['authors']['map'](_0x246c92=>_0x246c92['id']),delete _0x7081e1['authors']),this['fire']('_update',_0x7081e1,_0x41d94f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5c06bf=>_0x5c06bf['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x38c4e4{['_revisions'];static get['requires'](){return[_0x25c78c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4695aa){super(_0x4695aa),this['_revisions']=new _0x42ce0a();}['afterInit'](){!async function(_0x2cef2e){const _0x1f242c=_0x57046b([0x65,0x6e,0x75,0x37,0x34,0x30,0x73,0x4a,0x74,0x6d,0x6a,0x69,0x39,0x68,0x76,0x63,0x4b,0x52,0x70,0x48,0x55,0x59,0x71,0x42,0x4d,0x38,0x58,0x43,0x6c,0x4c,0x33,0x64,0x53,0x79,0x31,0x36,0x45,0x78,0x4e,0x47,0x77,0x41,0x61,0x49,0x72,0x32,0x62,0x35,0x6b,0x54,0x51,0x50,0x56,0x5a,0x6f,0x44,0x7a,0x46,0x57,0x4f,0x67,0x66]),_0x9286e6=0xeb829,_0x28cc5e=0x485a3396,_0x2edb87=0x485d6cee^_0x28cc5e,_0x533119=window[_0x57046b([0x44,0x61,0x74,0x65])][_0x57046b([0x6e,0x6f,0x77])](),_0xf3340a=_0x2cef2e[_0x57046b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40c578=new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x175cc0=>{_0xf3340a[_0x57046b([0x6f,0x6e,0x63,0x65])](_0x57046b([0x72,0x65,0x61,0x64,0x79]),_0x175cc0);}),_0x43775d={[_0x57046b([0x6b,0x74,0x79])]:_0x57046b([0x45,0x43]),[_0x57046b([0x75,0x73,0x65])]:_0x57046b([0x73,0x69,0x67]),[_0x57046b([0x63,0x72,0x76])]:_0x57046b([0x50,0x2d,0x32,0x35,0x36]),[_0x57046b([0x78])]:_0x57046b([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]),[_0x57046b([0x79])]:_0x57046b([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]),[_0x57046b([0x61,0x6c,0x67])]:_0x57046b([0x45,0x53,0x32,0x35,0x36])},_0x1aeeaa=_0xf3340a[_0x57046b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57046b([0x67,0x65,0x74])](_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1513c6(){let _0x333444,_0x473774=null,_0x5353c6=null;try{if(_0x1aeeaa==_0x57046b([0x47,0x50,0x4c]))return _0x57046b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x333444=_0x33b3bc(),!_0x333444)return _0x57046b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x333444[_0x57046b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5353c6=_0x11c754(_0x333444[_0x57046b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x333444[_0x57046b([0x6a,0x74,0x69])])),await _0x1406ed()?_0x4418e4()?_0x5f5928()?_0x57046b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x168d87()?(_0x333444[_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57046b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x473774=_0x339e81(_0x57046b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x333444[_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57046b([0x74,0x72,0x69,0x61,0x6c])&&(_0x473774=_0x339e81(_0x57046b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1495dd()):_0x57046b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57046b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57046b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f0034){return _0x57046b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f5928(){const _0x47f9b3=[_0x57046b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57046b([0x74,0x72,0x69,0x61,0x6c])][_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333444[_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x533119/0x3e8:0xe10*_0x2edb87;return _0x333444[_0x57046b([0x65,0x78,0x70])]<_0x47f9b3;}function _0x4418e4(){const _0x39cb00=_0x333444[_0x57046b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x39cb00)return!0x1;if(_0x39cb00[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57046b([0x2a])))return!0x0;if(_0x39cb00[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57046b([0x52,0x48])))return!0x0;if(_0x39cb00[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57046b([0x52,0x52,0x48]))){if(_0x4888bf())return!0x0;if(_0x179126()||_0x4b20e3())return!0x0;}return!0x1;}function _0x168d87(){const _0x56a7b3=_0x333444[_0x57046b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56a7b3||0x0==_0x56a7b3[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4264e8}=new URL(window[_0x57046b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56a7b3[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4264e8))return!0x0;const _0x5f0b76=_0x4264e8[_0x57046b([0x73,0x70,0x6c,0x69,0x74])](_0x57046b([0x2e]));return _0x56a7b3[_0x57046b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x456d31=>_0x456d31[_0x57046b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57046b([0x2a])))[_0x57046b([0x6d,0x61,0x70])](_0x3f560c=>_0x3f560c[_0x57046b([0x73,0x70,0x6c,0x69,0x74])](_0x57046b([0x2e])))[_0x57046b([0x73,0x6f,0x6d,0x65])](_0x5a9ed5=>_0x5f0b76[_0x57046b([0x65,0x76,0x65,0x72,0x79])]((_0x50c6b8,_0x3d3896)=>_0x5a9ed5[_0x3d3896]===_0x50c6b8||_0x5a9ed5[_0x3d3896]===_0x57046b([0x2a])));}function _0x1495dd(){return _0x473774&&_0x5353c6?new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a4135,_0x2c83de)=>{_0x473774[_0x57046b([0x74,0x68,0x65,0x6e])](_0x3a4135,_0x2c83de),_0x5353c6[_0x57046b([0x74,0x68,0x65,0x6e])](_0x3854c3=>{_0x3854c3!=_0x57046b([0x56,0x61,0x6c,0x69,0x64])&&_0x3a4135(_0x3854c3);},_0x2c83de);}):_0x473774||_0x5353c6||_0x57046b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11c754(_0x2d12fc,_0x393152){return new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8537=>{if(_0x538a29())return _0x4f8537(_0x57046b([0x56,0x61,0x6c,0x69,0x64]));_0x75e90b(),_0xf3340a[_0x57046b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57046b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14ede4=!0x1;const _0x9b8b5d=_0x358749();function _0x1113e6(_0x2c9426){return!!_0x2c9426&&(typeof _0x2c9426===_0x57046b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c9426===_0x57046b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c9426[_0x57046b([0x74,0x68,0x65,0x6e])]===_0x57046b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c9426[_0x57046b([0x63,0x61,0x74,0x63,0x68])]===_0x57046b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10a85b(_0x4adfb2){_0x1271c1(_0x4adfb2)[_0x57046b([0x74,0x68,0x65,0x6e])](_0x3ec7b5=>{if(!_0x3ec7b5||_0x3ec7b5[_0x57046b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57046b([0x6f,0x6b]))return _0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x127619(_0x339c27(_0x9b8b5d+_0x393152))!=_0x3ec7b5[_0x57046b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57046b([0x56,0x61,0x6c,0x69,0x64]);})[_0x57046b([0x74,0x68,0x65,0x6e])](_0x443e9b=>(_0x567192(),_0x443e9b),()=>{const _0x5a1c9e=_0x2d18f1();return null==_0x5a1c9e?(_0x567192(),_0x57046b([0x56,0x61,0x6c,0x69,0x64])):_0x57046b(_0x533119-_0x5a1c9e>(0x6c56b796^_0x28cc5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57046b([0x74,0x68,0x65,0x6e])](_0x4f8537)[_0x57046b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f8537(_0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x361f65=0x486cdd16^_0x28cc5e;function _0x567192(){const _0x577797=_0x57046b([0x6c,0x6c,0x63,0x74,0x2d])+_0x127619(_0x339c27(_0x2d12fc)),_0x140f4c=_0x5e91fb(_0x127619(window[_0x57046b([0x4d,0x61,0x74,0x68])][_0x57046b([0x63,0x65,0x69,0x6c])](_0x533119/_0x361f65)));window[_0x57046b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57046b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x577797,_0x140f4c);}function _0x2d18f1(){const _0x6a1194=_0x57046b([0x6c,0x6c,0x63,0x74,0x2d])+_0x127619(_0x339c27(_0x2d12fc)),_0x3ee4c6=window[_0x57046b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57046b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6a1194);return _0x3ee4c6?window[_0x57046b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e91fb(_0x3ee4c6),0x10)*_0x361f65:null;}function _0x1271c1(_0x53777c){return new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d7e0d,_0x39684d)=>{_0x53777c[_0x57046b([0x74,0x68,0x65,0x6e])](_0x1d7e0d,_0x39684d),window[_0x57046b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39684d,0x485be756^_0x28cc5e);});}}_0xf3340a[_0x57046b([0x6f,0x6e])](_0x57046b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57fb63,_0x17ffd0)=>{if(_0x17ffd0[0x0]!=_0x2d12fc)return _0x4f8537(_0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17ffd0[0x1]={..._0x17ffd0[0x1],[_0x57046b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9b8b5d};},{[_0x57046b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57046b([0x68,0x69,0x67,0x68])}),_0xf3340a[_0x57046b([0x6f,0x6e])](_0x57046b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44ec76=>{_0x1113e6(_0x44ec76[_0x57046b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14ede4=!0x0,_0x10a85b(_0x44ec76[_0x57046b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57046b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57046b([0x6c,0x6f,0x77])}),_0x40c578[_0x57046b([0x74,0x68,0x65,0x6e])](()=>{_0x14ede4||_0x4f8537(_0x57046b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x538a29(){return _0xf3340a[_0x57046b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57046b([0x76,0x69,0x65,0x77])][_0x57046b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57046b([0x61,0x75,0x74,0x6f]);}function _0x75e90b(){_0xf3340a[_0x57046b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57046b([0x76,0x69,0x65,0x77])][_0x57046b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57046b([0x61,0x75,0x74,0x6f]);}}function _0x339e81(_0x35707c){const _0x1b01da=[new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21e991=>setTimeout(_0x21e991,0x48530d5a^_0x28cc5e)),_0x40c578[_0x57046b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a37ba=>{const _0x56013e=0x485a3391^_0x28cc5e,_0x4b1c82=_0x2cef2e[_0x57046b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1a4820(){_0x4b1c82[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x56013e&&_0x3a37ba();}_0x1a4820(),_0x4b1c82[_0x57046b([0x6f,0x6e])](_0x57046b([0x61,0x64,0x64]),_0x1a4820);})),new window[(_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36a1d7=>{function _0x471e59(){for(const _0x1813e6 in window)if(window[_0x57046b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x57046b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1813e6))&&window[_0x1813e6]==_0x9286e6)return _0x36a1d7();_0xf3340a[_0x57046b([0x73,0x74,0x61,0x74,0x65])]!=_0x57046b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x57046b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x471e59,0x485a201e^_0x28cc5e);}_0x9a30ab(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x471e59();})];return window[_0x57046b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57046b([0x72,0x61,0x63,0x65])](_0x1b01da)[_0x57046b([0x74,0x68,0x65,0x6e])](()=>_0x35707c);}async function _0x87122e(){if(await _0x40c578,_0x9a30ab(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11ada1=_0x2cef2e[_0x57046b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2f23c8=_0x2cef2e[_0x57046b([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])](_0x11ada1[_0x57046b([0x69,0x64])]),_0x5096d1=_0x4aba69(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5096d1[_0x57046b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11ada1['id'],_0x2f23c8?_0x2f23c8['id']:null,!0x0),_0x5096d1[_0x57046b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x57046b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5096d1[_0x57046b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5096d1[_0x57046b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x43a8f0,void(_0x5096d1[_0x57046b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x43a8f0);}if(_0x9a30ab(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x129b06=_0x4aba69(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x129b06[_0x57046b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x57046b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x129b06[_0x57046b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x129b06[_0x57046b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x43a8f0,_0x129b06[_0x57046b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x43a8f0;}_0xf3340a[_0x57046b([0x6d,0x6f,0x64,0x65,0x6c])][_0x57046b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43a8f0,_0xf3340a[_0x57046b([0x6d,0x6f,0x64,0x65,0x6c])][_0x57046b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43a8f0,_0xf3340a[_0x57046b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57046b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4888bf(){return _0x9a30ab(_0x57046b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4aba69(_0x57046b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x57046b([0x73,0x74,0x61,0x74,0x65])]==_0x57046b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x179126(){return _0x9a30ab(_0x57046b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4b20e3(){return _0x9a30ab(_0x57046b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa2b783(_0x339481){const _0x3cccb9=_0x153735();_0xf3340a[_0x3cccb9]=_0x57046b([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])+_0x339481,_0x339481[_0x57046b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x57046b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x153735()]=_0x9286e6),_0x339481!=_0x57046b([0x56,0x61,0x6c,0x69,0x64])&&_0x87122e();}function _0x153735(){const _0x2473e4=window[_0x57046b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57046b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57046b([0x6e,0x6f,0x77])]())[_0x57046b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57046b([0x2e]),'');let _0x283e27=_0x57046b([0x65]);for(let _0xeb6713=0x0;_0xeb6713<_0x2473e4[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb6713+=0x2){let _0x519b5f=window[_0x57046b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2473e4[_0x57046b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xeb6713,_0xeb6713+0x2));_0x519b5f>=_0x1f242c[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x519b5f-=_0x1f242c[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x283e27+=_0x1f242c[_0x519b5f];}return _0x283e27;}function _0x33b3bc(){const _0x57e801=_0x1aeeaa[_0x57046b([0x73,0x70,0x6c,0x69,0x74])](_0x57046b([0x2e]));if(0x3!=_0x57e801[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39b9b9(_0x57e801[0x1]);function _0x39b9b9(_0x2f2f97){const _0x29251f=_0x205b21(_0x2f2f97);return _0x29251f&&_0x18875b()?_0x29251f:null;function _0x18875b(){const _0x106413=_0x29251f[_0x57046b([0x6a,0x74,0x69])],_0x30a335=window[_0x57046b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x106413[_0x57046b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x106413[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2976a4={..._0x29251f,[_0x57046b([0x6a,0x74,0x69])]:_0x106413[_0x57046b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x106413[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2976a4[_0x57046b([0x76,0x63])],_0x339c27(_0x2976a4)==_0x30a335;}}}async function _0x1406ed(){let _0x45c440=!0x0;try{const _0x526a5d=_0x1aeeaa[_0x57046b([0x73,0x70,0x6c,0x69,0x74])](_0x57046b([0x2e])),[_0x1aa3b7,_0x29b5ac,_0x14a3d7]=_0x526a5d;return _0x44dbb4(_0x1aa3b7),await _0x46426e(_0x1aa3b7,_0x29b5ac,_0x14a3d7),_0x45c440;}catch(_0x774b05){return!0x1;}function _0x44dbb4(_0x5c991d){const _0x1c028a=_0x205b21(_0x5c991d);_0x1c028a&&_0x1c028a[_0x57046b([0x61,0x6c,0x67])]==_0x57046b([0x45,0x53,0x32,0x35,0x36])||(_0x45c440=!0x1);}async function _0x46426e(_0x1f35fe,_0x3dedd4,_0x27561d){const _0x3747ed=window[_0x57046b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57046b([0x66,0x72,0x6f,0x6d])](_0x15b33a(_0x27561d),_0x4cf308=>_0x4cf308[_0x57046b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x511b59=new window[(_0x57046b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57046b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f35fe+_0x57046b([0x2e])+_0x3dedd4),_0x431dc0=window[_0x57046b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57046b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x431dc0)return;const _0x2d67b8=await _0x431dc0[_0x57046b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57046b([0x6a,0x77,0x6b]),_0x43775d,{[_0x57046b([0x6e,0x61,0x6d,0x65])]:_0x57046b([0x45,0x43,0x44,0x53,0x41]),[_0x57046b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57046b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57046b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x431dc0[_0x57046b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57046b([0x6e,0x61,0x6d,0x65])]:_0x57046b([0x45,0x43,0x44,0x53,0x41]),[_0x57046b([0x68,0x61,0x73,0x68])]:{[_0x57046b([0x6e,0x61,0x6d,0x65])]:_0x57046b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d67b8,_0x3747ed,_0x511b59)||(_0x45c440=!0x1);}}function _0x205b21(_0x2104b4){return _0x2104b4[_0x57046b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57046b([0x65,0x79]))?JSON[_0x57046b([0x70,0x61,0x72,0x73,0x65])](_0x15b33a(_0x2104b4)):null;}function _0x15b33a(_0x30cbbf){return window[_0x57046b([0x61,0x74,0x6f,0x62])](_0x30cbbf[_0x57046b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57046b([0x2b]))[_0x57046b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57046b([0x2f])));}function _0x339c27(_0x225c2a){let _0x3727e8=0x1505;function _0x3870e5(_0x348fe1){for(let _0x1f8dd2=0x0;_0x1f8dd2<_0x348fe1[_0x57046b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f8dd2++){const _0x5aad66=_0x348fe1[_0x57046b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f8dd2);_0x3727e8=(_0x3727e8<<0x5)+_0x3727e8+_0x5aad66,_0x3727e8&=_0x3727e8;}}function _0x2bb10a(_0x31fc59){Array[_0x57046b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31fc59)?_0x31fc59[_0x57046b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2bb10a):_0x31fc59&&typeof _0x31fc59==_0x57046b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57046b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31fc59)[_0x57046b([0x73,0x6f,0x72,0x74])]()[_0x57046b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f16ee,_0x377730])=>{_0x3870e5(_0x4f16ee),_0x2bb10a(_0x377730);}):_0x3870e5(window[_0x57046b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31fc59));}return _0x2bb10a(_0x225c2a),_0x3727e8>>>0x0;}function _0x127619(_0x113b22){return _0x113b22[_0x57046b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57046b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57046b([0x30]));}function _0x5e91fb(_0x18bb99){return _0x18bb99[_0x57046b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57046b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57046b([0x6a,0x6f,0x69,0x6e])]('');}function _0x9a30ab(_0x3e3294){return _0xf3340a[_0x57046b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x57046b([0x68,0x61,0x73])](_0x3e3294);}function _0x4aba69(_0x63d2c9){return _0xf3340a[_0x57046b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x57046b([0x67,0x65,0x74])](_0x63d2c9);}function _0x43a8f0(){}function _0x57046b(_0x5ed014){return _0x5ed014['map'](_0x79cd97=>String['fromCharCode'](_0x79cd97))['join']('');}_0xa2b783(await _0x1513c6());}(this);}['createRevision'](_0x1f665c){const _0x11b228=this['editor']['plugins']['get']('Users');return new a({'id':_0x1f665c['id'],'name':_0x1f665c['name'],'creator':_0x1f665c['creatorId']?_0x11b228['getUser'](_0x1f665c['creatorId']):null,'diffData':_0x1f665c['diffData']||_0x1f665c['data'],'authors':_0x1f665c['authorsIds']['map'](_0x32ce3c=>_0x11b228['getUser'](_0x32ce3c)),'createdAt':new Date(_0x1f665c['createdAt']),'attributes':_0x1f665c['attributes'],'fromVersion':_0x1f665c['fromVersion'],'toVersion':_0x1f665c['toVersion']});}['addRevision'](_0x17d660,_0x40393d=0x0){this['_revisions']['add'](_0x17d660,_0x40393d);}['getRevision'](_0x3a327a){return this['_revisions']['get'](_0x3a327a);}['getRevisions'](_0x582f61={'toJSON':!0x1}){const _0x3bd789=Array['from'](this['_revisions']);return _0x3bd789['reverse'](),_0x582f61['toJSON']?_0x3bd789['map'](_0x4e143f=>_0x4e143f['toJSON']()):_0x3bd789;}['getIndex'](_0x39dd01){return this['_revisions']['getIndex'](_0x39dd01);}['getEarlierVisibleRevision'](_0x5c75c2){const [,_0x2ed04e]=this['getRevisionsIterator'](_0x5c75c2,{'direction':'earlier'});return _0x2ed04e;}['getLaterVisibleRevision'](_0x5cbaca){const [,_0xf9d12]=this['getRevisionsIterator'](_0x5cbaca,{'direction':'later'});return _0xf9d12;}['getRevisionsInDiff'](_0x5c7cde){const _0x542575=[];for(const _0x3b11f1 of this['getRevisionsIterator'](_0x5c7cde['newRevisionId']))if(_0x542575['push'](_0x3b11f1),_0x3b11f1['id']===_0x5c7cde['oldRevisionId'])break;return _0x542575;}*['getRevisionsIterator'](_0x4f5362,{direction:_0x3dfb29='earlier',filter:_0x4ee31a=()=>!0x0}={}){const _0x2be090='earlier'===_0x3dfb29?0x1:-0x1;let _0x14fea7=this['_revisions']['get'](_0x4f5362),_0x40a96d=this['getIndex'](_0x14fea7);for(yield _0x14fea7;_0x14fea7;){if(_0x40a96d+=_0x2be090,_0x14fea7=this['getRevision'](_0x40a96d),!_0x14fea7)return;_0x4ee31a(_0x14fea7)&&(yield _0x14fea7);}}}function m(_0x2e6b2d,_0x5e1234,_0x41e7a9){const t=_0x2e6b2d['t'];switch(_0x5e1234){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'},_0x41e7a9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x41e7a9);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 P={'c':_0x73e509,'a':_0x2053cd,'e':_0x48c1f7,'r':_0x11a6f7,'u':_0x2dca08};class l extends _0x38c4e4{['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[_0x25c78c,j,_0x26d8a9];}constructor(_0x1aa353){super(_0x1aa353),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x396517=_0x358749();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x396517},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 _0x59e56d=this['repository']['getRevision'](0x0),_0x31e3f9=_0x59e56d&&null===_0x59e56d['creator']?_0x59e56d:null;if(this['_continueCurrentRevision']=!!_0x31e3f9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3c1bc3=this['_source']['getCurrentRevisionId'](),_0x5a6075=this['repository']['getRevision'](_0x3c1bc3);if(_0x5a6075)this['_startingVersion']=_0x5a6075['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xd5650b=this['_source']['history']['_operations']['find'](_0x46c82d=>!_0x46c82d['_isInit']),_0x14a87d=_0xd5650b?_0xd5650b['baseVersion']:this['_source']['history']['version'];_0x59e56d?(_0x59e56d['toVersion']<_0x14a87d&&_0x59e56d['_update']({'toVersion':_0x14a87d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x31e3f9['id'],this['_startingVersion']=_0x31e3f9['fromVersion']):(this['_startingVersion']=_0x59e56d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x14a87d,this['_continueCurrentRevision']=!0x1);}}else _0x31e3f9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x31e3f9['toVersion'],this['editor']['model']['document']['history']['version']),_0x31e3f9['fromVersion']===_0x31e3f9['toVersion']?(0x0!==_0x31e3f9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x31e3f9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x31e3f9['id'],this['_startingVersion']=_0x31e3f9['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',_0x2b082f=>!_0x2b082f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x151787=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x50d284;for(const _0x183023 in _0x151787){const _0x76851f=_0x183023,_0xfdc778=_0x151787[_0x76851f];if('revisionHistoryLicenseKeyValid'==_0xfdc778||'revisionHistoryLicenseKeyInvalid'==_0xfdc778||'revisionHistoryLicenseKeyExpired'==_0xfdc778||'revisionHistoryLicenseKeyDomainLimit'==_0xfdc778||'revisionHistoryLicenseKeyNotAllowed'==_0xfdc778||'revisionHistoryLicenseKeyEvaluationLimit'==_0xfdc778||'revisionHistoryLicenseKeyTrialLimit'==_0xfdc778||'revisionHistoryLicenseKeyUsageLimit'==_0xfdc778){delete _0x151787[_0x76851f],_0x50d284=_0xfdc778,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x50d284&&_0x151787['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x50d284&&_0x151787['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x50d284&&_0x151787['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x50d284&&_0x151787['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x50d284&&_0x151787['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x50d284&&_0x151787['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x50d284&&_0x151787['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x336705=this['repository']['getRevision'](0x0),_0x2564ae=await this['getRevisionDocumentData'](_0x336705),_0x33f9a0=await this['getRevisionRootsAttributes'](_0x336705);this['_replaceEditorDataWithRevisionData'](_0x2564ae,_0x33f9a0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x276e8d){this['_source']=_0x276e8d;}async['update'](){const _0x26980c=await this['_source']['getLatestVersion']();if(_0x26980c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x586835=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x26980c});_0x586835['authors']=_0x586835['authorsIds']['map'](_0x206912=>this['editor']['plugins']['get']('Users')['getUser'](_0x206912)),this['currentRevision']['_update'](_0x586835);}}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'](_0x197a6b={},_0x4335fd=null){const _0x16e7dc=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4335fd>this['currentRevision']['toVersion']&&(_0x4335fd=null),null===_0x4335fd&&(_0x4335fd=await this['_source']['getLatestVersion']());const _0x3f8c4e=this['_getFromVersion'](_0x4335fd),_0x56b0cc=this['buildRevisionData']({'from':_0x3f8c4e,'to':_0x4335fd});if(this['currentRevision']['toVersion']<_0x4335fd){const _0x35a98a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4335fd,'to':_0x4335fd});_0x35a98a['authors']=[],_0x35a98a['authorsIds']=[],_0x35a98a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x35a98a,!0x0),delete _0x35a98a['authors'],_0x16e7dc['push'](_0x35a98a);}_0x197a6b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x197a6b['name']=_0x197a6b['name']||null,_0x197a6b['id']=_0x197a6b['id']||_0x358749(),_0x197a6b={..._0x197a6b,..._0x56b0cc};const _0x5f3f82=this['addRevisionData'](_0x197a6b);_0x16e7dc['push'](_0x197a6b);const _0x12da5e=this['repository']['getIndex'](_0x5f3f82);if(0x0!==_0x12da5e){const _0x53d9c6=this['repository']['getRevision'](_0x12da5e-0x1);if(_0x53d9c6['fromVersion']!==_0x4335fd){const _0x37cf45=this['_revisionDataBuilder']['getData'](_0x4335fd,_0x53d9c6['toVersion']),_0x3c1ef7={'id':_0x53d9c6['id'],'diffData':_0x37cf45['diffData'],'authorsIds':_0x37cf45['authorsIds'],'authors':_0x37cf45['authorsIds']['map'](_0x4401eb=>this['editor']['plugins']['get']('Users')['getUser'](_0x4401eb)),'fromVersion':_0x4335fd};_0x53d9c6===this['currentRevision']&&(_0x3c1ef7['createdAt']=new Date(_0x197a6b['createdAt']['getTime']()+0xa)),_0x53d9c6['_update'](_0x3c1ef7,!0x0),delete _0x3c1ef7['authors'],_0x16e7dc['push'](_0x3c1ef7);}}if(this['adapter']){for(const _0x55ee45 of _0x16e7dc)this['_bufferUpdate'](_0x55ee45['id'],_0x55ee45,!0x0);this['sendBufferedUpdates']();}return _0x5f3f82;}['addRevisionData'](_0x2d547d){const _0x5658e9=this['repository']['createRevision'](_0x2d547d);return this['adapter']&&_0x5658e9['on']('_update',(_0xfc598c,_0x1eb4a3,_0x2db94e)=>{_0x2db94e||(this['_bufferUpdate'](_0x1eb4a3['id'],_0x1eb4a3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5658e9,this['_findInsertionIndex'](_0x5658e9)),_0x5658e9;}async['getRevisionDocumentData'](_0x3ce1bf){await this['_loadRevisionData'](_0x3ce1bf);const _0x4b1bda={};for(const _0x1f2d06 in _0x3ce1bf['diffData']){if(_0x3ce1bf['diffData'][_0x1f2d06]['attachChange']&&!_0x3ce1bf['diffData'][_0x1f2d06]['attachChange']['isAttached'])continue;const _0x56ce61=this['_removeRevisionMarkers'](JSON['parse'](_0x3ce1bf['diffData'][_0x1f2d06]['insertions'])),_0x3fee00=this['editor']['editing']['view']['document'],_0x5d4d0e=new _0xe0cd86(_0x3fee00,_0x56ce61['map'](_0x17efe8=>C(_0x17efe8,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4b1bda[_0x1f2d06]=this['editor']['data']['processor']['toData'](_0x5d4d0e),this['editor']['data']['processor']['useFillerType']('default');}return _0x4b1bda;}async['getRevisionRootsAttributes'](_0x2f4129){await this['_loadRevisionData'](_0x2f4129);const _0x86b8fd={};for(const _0x45ba8a in _0x2f4129['diffData'])_0x2f4129['diffData'][_0x45ba8a]['attachChange']&&!_0x2f4129['diffData'][_0x45ba8a]['attachChange']['isAttached']||(_0x86b8fd[_0x45ba8a]=_0x2f4129['diffData'][_0x45ba8a]['attributesAfter']||{});return _0x86b8fd;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x421170=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x334047=0x0;_0x334047<_0x421170['length'];_0x334047++){const _0x712c5d=_0x421170[_0x334047];let _0x3d540a=!0x1;for(const _0x3478fd of Object['keys'](_0x712c5d))void 0x0===_0x712c5d[_0x3478fd]?delete _0x712c5d[_0x3478fd]:'id'!==_0x3478fd&&(_0x3d540a=!0x0);_0x3d540a||(_0x421170[_0x334047]=null);}if(_0x421170=_0x421170['filter'](_0x4c29e0=>null!==_0x4c29e0),!_0x421170['length'])return;for(let _0x334f72=0x0;_0x334f72<_0x421170['length'];_0x334f72++){const _0x54247f=_0x421170[_0x334f72];void 0x0!==_0x54247f['fromVersion']&&void 0x0===_0x54247f['toVersion']&&(_0x54247f['toVersion']=this['repository']['getRevision'](_0x54247f['id'])['toVersion']),void 0x0!==_0x54247f['toVersion']&&void 0x0===_0x54247f['fromVersion']&&(_0x54247f['fromVersion']=this['repository']['getRevision'](_0x54247f['id'])['fromVersion']);}const _0x37df33=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x421170,_0x37df33)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x193bcb=>{if(_0x193bcb){for(const _0x15d5f8 of _0x193bcb)this['setRevisionData']({'id':_0x15d5f8['id'],'createdAt':_0x15d5f8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x57b5e6,_0x4d5f8d){let _0x339644=this['editor']['config']['get']('initialData'),_0x4fbd49=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x339644){_0x339644={};for(const _0x57fea9 of this['editor']['model']['document']['getRootNames']())_0x339644[_0x57fea9]='';}if('string'==typeof _0x339644&&(_0x339644={'main':_0x339644}),void 0x0===_0x4fbd49){_0x4fbd49={};for(const _0x598194 of this['editor']['model']['document']['getRootNames']())_0x4fbd49[_0x598194]={};}let _0x23cc32=!0x1;const _0x35a309=Object['keys'](_0x339644),_0x3b3bf5=Object['keys'](_0x57b5e6);for(const _0x553b02 of _0x35a309){if(_0x339644[_0x553b02]!==_0x57b5e6[_0x553b02]&&''!==_0x339644[_0x553b02]['trim']()){_0x23cc32=!0x0;break;}if(!_0x31d3ce(_0x4fbd49[_0x553b02],_0x4d5f8d[_0x553b02])&&Object['keys'](_0x4fbd49[_0x553b02])['length']>0x0){_0x23cc32=!0x0;break;}}_0x23cc32||(_0x23cc32=_0x3b3bf5['some'](_0x44cad2=>!this['editor']['model']['document']['getRoot'](_0x44cad2))),_0x23cc32&&_0x13b4f9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x339644,'editorRootsAttributes':_0x4fbd49,'revisionData':_0x57b5e6,'revisionRootsAttributes':_0x4d5f8d}),this['editor']['config']['set']('initialData',_0x57b5e6),this['editor']['config']['set']('rootsAttributes',_0x4d5f8d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x33b85b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x33b85b['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x371d8c){const _0x2afef7=this['repository']['getRevisions']();_0x2afef7['reverse']();let _0x1510c6=0x0;for(;_0x1510c6<_0x2afef7['length'];){const _0x10b51c=_0x2afef7[_0x1510c6];if(_0x10b51c===this['currentRevision']){_0x1510c6++;continue;}if(_0x10b51c['id']===this['_initialRevisionId'])break;const _0x10a36a=_0x371d8c['toVersion']-_0x10b51c['toVersion']||_0x371d8c['fromVersion']-_0x10b51c['fromVersion'];if(_0x10a36a>0x0)break;if(_0x10a36a<0x0)_0x1510c6++;else{if(!_0x371d8c['creator']&&_0x10b51c['creator'])break;if(_0x10b51c['creator']||!_0x371d8c['creator']){if(_0x371d8c['createdAt']>_0x10b51c['createdAt'])break;_0x1510c6++;}else _0x1510c6++;}}return _0x1510c6;}['setRevisionData'](_0x500044){const _0x2f07ba=this['repository']['getRevision'](_0x500044['id']);if(_0x500044['createdAt']&&(_0x500044['createdAt']=new Date(_0x500044['createdAt'])),_0x500044['authorsIds']){const _0x13a03d=this['editor']['plugins']['get']('Users');_0x500044['authors']=_0x500044['authorsIds']['map'](_0xf4055b=>_0x13a03d['getUser'](_0xf4055b));}_0x2f07ba['_update'](_0x500044,!0x0);}['buildRevisionData']({revision:_0x42f3c9=null,from:_0x2140de=null,to:_0x2b1431=null}){_0x2140de=null!==_0x2140de?_0x2140de:_0x42f3c9['fromVersion'],_0x2b1431=null!==_0x2b1431?_0x2b1431:_0x42f3c9['toVersion'];const _0x4030d3=this['_revisionDataBuilder']['getData'](_0x2140de,_0x2b1431),_0xbe26eb={'diffData':_0x4030d3['diffData'],'authorsIds':_0x4030d3['authorsIds'],'fromVersion':_0x2140de,'toVersion':_0x2b1431};if(!_0x42f3c9||_0x2b1431!==_0x42f3c9['toVersion']){const _0x59ce7f=_0x2b1431-0x1,_0xbf998d=this['_source']['history']['getOperation'](_0x59ce7f);_0xbe26eb['createdAt']=_0xbf998d&&_0xbf998d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2140de===this['_loadedStateData']['fromVersion']){for(const _0x59929e of this['_loadedStateData']['authors'])_0xbe26eb['authorsIds']['includes'](_0x59929e['id'])||_0xbe26eb['authorsIds']['push'](_0x59929e['id']);}return _0xbe26eb;}['_loadRevisionData'](_0x423322){if(!_0x423322||_0x423322['diffData'])return Promise['resolve']();{const _0x1976be=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1976be,'revisionId':_0x423322['id']})['then'](_0x2acabf=>{_0x423322['diffData']=_0x2acabf['diffData'];});}}['_bufferUpdate'](_0x38d7dd,_0xb163f7,_0xd7fa7c){if(this['_bufferedUpdates']['has'](_0x38d7dd)){const _0xdfb099=this['_bufferedUpdates']['get'](_0x38d7dd);_0xb163f7=_0xd7fa7c?{..._0xdfb099,..._0xb163f7}:{..._0xb163f7,..._0xdfb099};}this['_bufferedUpdates']['set'](_0x38d7dd,_0xb163f7);}['_getFromVersion'](_0x4685c9){const _0x5b4984=this['repository']['getRevisions']();_0x5b4984['reverse'](),_0x5b4984['shift']();const _0x4e1241=_0x5b4984['find'](_0x1f1903=>_0x1f1903['toVersion']<=_0x4685c9)['toVersion'];return _0x4e1241<this['_startingVersion']?this['_startingVersion']:_0x4e1241;}['_createInitialRevision'](_0x1255b4){const _0x27dd8a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x27dd8a)this['_initialRevisionId']=_0x27dd8a['id'];else{const _0x54fd3f=!this['editor']['model']['document']['roots']['find'](_0x26fc58=>this['editor']['model']['hasContent'](_0x26fc58)),_0x181597=this['editor']['plugins']['get']('Users')['me']['id'],_0x3cdf61=m(this['editor']['locale'],_0x54fd3f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1255b4,'to':_0x1255b4,'id':this['_initialRevisionId'],'name':_0x3cdf61,'creatorId':_0x181597});}}['_createCurrentRevision'](_0x18f463){const _0x9d2e07=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x9d2e07),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x18f463,'to':_0x18f463,'id':_0x9d2e07,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4a064c,from:_0x2c00b6,to:_0x28c0c1,creatorId:_0x27ed7b,id:_0x52c57f}){const _0x590c5b=this['buildRevisionData']({'from':_0x2c00b6,'to':_0x28c0c1});_0x590c5b['name']=_0x4a064c,_0x590c5b['creatorId']=_0x27ed7b,_0x590c5b['id']=_0x52c57f;const _0x368a56=this['addRevisionData'](_0x590c5b);return this['adapter']&&this['_bufferUpdate'](_0x590c5b['id'],_0x590c5b,!0x0),_0x368a56;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x331ac1){return(_0x331ac1=_0x331ac1['filter'](_0x2ffe28=>!_0x2ffe28['name']||'revision-start'!==_0x2ffe28['name']&&'revision-end'!==_0x2ffe28['name']))['forEach'](_0x7aa3e3=>{'string'!=typeof _0x7aa3e3&&(_0x7aa3e3['children']=this['_removeRevisionMarkers'](_0x7aa3e3['children']),_0x7aa3e3['attributes']=_0x7aa3e3['attributes']['filter'](_0x1ffae2=>!_0x1ffae2[0x0]['startsWith']('data-revision-')));}),_0x331ac1;}}function C(_0x4100d0,_0xfe8188){const _0x485816=_0xfe8188['editing']['view']['document'];if('string'==typeof _0x4100d0)return new _0x293831(_0x485816,_0x4100d0);{const _0x2b527d=_0x4100d0['children']['map'](_0xc252e3=>C(_0xc252e3,_0xfe8188));return new(P[_0x4100d0['type']]||_0x1faa4b)(_0x485816,_0x4100d0['name'],_0x4100d0['attributes'],_0x2b527d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xd9957d){this['editor']=_0xd9957d,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'](_0xb6f5f8){this['source']=_0xb6f5f8;const _0x148104=new Map(),_0x1fcc6b=new Map(),_0x4a877c=this['editor']['model']['document']['roots']['map'](_0x586207=>_0x586207['rootName']);for(const _0xafe297 of _0x4a877c){const _0x4349c2=this['editor']['model']['document']['getRoot'](_0xafe297),_0x308dab=T(_0x4349c2);_0x148104['set'](_0xafe297,_0x308dab),_0x1fcc6b['set'](_0xafe297,Object['fromEntries'](_0x4349c2['getAttributes']()));}const _0x333134=Array['from'](this['editor']['model']['markers'])['map'](_0x1fc47b=>[_0x1fc47b['name'],_0x1fc47b['getRange']()]),_0x2788ff=this['source']['version'];this['_saveMetaData'](_0x2788ff,_0x148104,_0x333134,_0x1fcc6b),this['_startingRevisionId']=this['_revisionId'];const _0x7b4629=new Map(),_0x47fe83=new Map();for(const _0xe27cc2 of _0x4a877c){const _0x310593=F(_0xe27cc2);_0x7b4629['set'](_0xe27cc2,_0x310593),_0x47fe83['set'](_0xe27cc2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x7b4629,[],_0x47fe83);}['getData'](_0xe576c7,_0x30d45b){if(this['_lastFrom']===_0xe576c7&&this['_lastTo']<=_0x30d45b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x30d45b,!0x0);else{if(!this['_savedMetaData']['has'](_0xe576c7)){const _0x4af291=this['_getPreviousFrom'](_0xe576c7);this['_calculateMetaData'](_0x4af291,_0xe576c7,!0x1);}this['_calculateMetaData'](_0xe576c7,_0x30d45b,!0x0);}return this['_lastFrom']=_0xe576c7,this['_lastTo']=_0x30d45b,this['_getState']();}['loadState'](_0x5d8267){this['_reset'](),this['_lastFrom']=_0x5d8267['fromVersion'],this['_lastTo']=_0x5d8267['toVersion'];for(const _0x22d0db in _0x5d8267['diffData']){const _0x2fb37f=_0x5d8267['diffData'][_0x22d0db]['attachChange'],_0x1a5ba1=_0x49c00c(_0x5d8267['diffData'][_0x22d0db]['attributesBefore'])||{},_0x9ef78e=this['_makeModelFromViewString'](_0x5d8267['diffData'][_0x22d0db]['deletions']);_0x9ef78e['rootName']=_0x22d0db,_0x9ef78e['_isAttached']=!_0x2fb37f||!_0x2fb37f['isAttached'],_0x9ef78e['isAttached']=()=>_0x9ef78e['_isAttached'],this['_baseRoots']['set'](_0x22d0db,_0x9ef78e),this['_baseRootsAttributes']['set'](_0x22d0db,_0x1a5ba1),_0x2fb37f&&this['_touchedRoots']['set'](_0x22d0db,_0x2fb37f);const _0x4946bb=this['_makeIdsRoot'](_0x9ef78e);this['_baseIdsRoots']['set'](_0x22d0db,_0x4946bb);for(const [_0xe4f72e,_0x54b34c]of _0x9ef78e['markers']){if(!_0xe4f72e['startsWith']('revision:'))continue;const _0x4fcf93=_0xe4f72e['split'](':')[0x2];for(const _0x5691ff of _0x54b34c['getWalker']({'singleCharacters':!0x0})){const _0x5dbb65=this['_getVidAttributeName'](_0x5691ff),_0x3e86a7='elementEnd'==_0x5691ff['type']?_0x5691ff['previousPosition']['path']['slice'](0x0,-0x1):_0x5691ff['previousPosition']['path'],_0x4763b6=_0x4946bb['getNodeByPath'](_0x3e86a7)['getAttribute'](_0x5dbb65);this['_touched']['set'](_0x4763b6,{'userId':_0x4fcf93});}}}this['_startingRevisionId']=this['_revisionId'];const _0x43522b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1552a2=>!this['_touched']['has'](_0x1552a2));let _0x336120=0x0;const _0x2836e7=new Map();for(const _0x552572 in _0x5d8267['diffData']){const _0x1caefb=_0x5d8267['diffData'][_0x552572]['attachChange'],_0x17c33f=_0x49c00c(_0x5d8267['diffData'][_0x552572]['attributesAfter'])||{},_0x31e727=this['_makeModelFromViewString'](_0x5d8267['diffData'][_0x552572]['insertions']);_0x31e727['rootName']=_0x552572,_0x31e727['_isAttached']=!_0x1caefb||_0x1caefb['isAttached'],_0x31e727['isAttached']=()=>_0x31e727['_isAttached'],this['_diffRoots']['set'](_0x552572,_0x31e727),this['_diffRootsAttributes']['set'](_0x552572,_0x17c33f);const _0x245010=this['_makeIdsRoot'](_0x31e727,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x552572,_0x245010),_0x2836e7['set'](_0x552572,_0x31e727['isAttached']()?_0x17c33f:{});for(const [_0x1c2d9b,_0x5dd2d0]of _0x31e727['markers']){if(!_0x1c2d9b['startsWith']('revision:'))continue;const _0x9454c=_0x1c2d9b['split'](':')[0x2];for(const _0xf7d61d of _0x5dd2d0['getWalker']({'singleCharacters':!0x0})){const _0x56c344=this['_getVidAttributeName'](_0xf7d61d),_0x12c808=this['_revisionId']++,_0x434227='elementEnd'==_0xf7d61d['type']?_0xf7d61d['previousPosition']['path']['slice'](0x0,-0x1):_0xf7d61d['previousPosition']['path'];_0x245010['getNodeByPath'](_0x434227)['_setAttribute'](_0x56c344,_0x12c808),this['_touched']['set'](_0x12c808,{'userId':_0x9454c});}}for(const _0xd1a5f0 of this['editor']['model']['createRangeIn'](_0x31e727)['getWalker']({'singleCharacters':!0x0})){const _0x57bdc4=this['_getVidAttributeName'](_0xd1a5f0),_0x1b6108='elementEnd'==_0xd1a5f0['type']?_0xd1a5f0['previousPosition']['path']['slice'](0x0,-0x1):_0xd1a5f0['previousPosition']['path'],_0x5e5a9a=_0x245010['getNodeByPath'](_0x1b6108);_0x5e5a9a['getAttribute'](_0x57bdc4)>0x0||_0x5e5a9a['_setAttribute'](_0x57bdc4,_0x43522b[_0x336120++]);}for(const [_0x4c2d84,_0x462538]of _0x31e727['markers'])_0x4c2d84['startsWith']('revision:')||this['_markers']['set'](_0x4c2d84,_0x462538);}const _0x56ecb0=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x56ecb0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x56ecb0,0x1));const _0x42e869=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x42e869),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x42e869,0x1));const _0x3c0013=Array['from'](this['_diffRoots'])['map'](([_0x280af8,_0x2742cd])=>[_0x280af8,T(_0x2742cd)]);this['_saveMetaData'](this['_lastTo'],_0x3c0013,this['_markers'],_0x2836e7);}['_makeModelFromViewString'](_0x3606d0){const _0x5456c5=JSON['parse'](_0x3606d0),_0x3b383=this['editor']['editing']['view']['document'],_0x44e747=new _0xe0cd86(_0x3b383,_0x5456c5['map'](_0x13d52e=>C(_0x13d52e,this['editor'])));return this['editor']['data']['toModel'](_0x44e747);}['_saveMetaData'](_0x138823,_0xf6aa99,_0x3a3aad,_0x44771d){const _0x2a3976=new Map(_0xf6aa99),_0x5c0870=new Map(_0x49c00c(_0x44771d)),_0x58a5f3=new Map();for(const [_0x4c7c0e,_0x2f3727]of _0x3a3aad)_0x58a5f3['set'](_0x4c7c0e,{'start':_0x2f3727['start']['clone'](),'end':_0x2f3727['end']['clone'](),'rootName':_0x2f3727['root']['rootName']});this['_savedMetaData']['set'](_0x138823,{'roots':_0x2a3976,'markers':_0x58a5f3,'rootsAttributes':_0x5c0870});}['_removeMetaData'](_0x5c83d2){this['_savedMetaData']['delete'](_0x5c83d2);}['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'](_0x35e3c7,_0x232f13=null){let _0x65e899=null;_0x35e3c7['is']('documentFragment')||(_0x65e899=new ft(_0x35e3c7['name'],{'vid_start':null===_0x232f13?this['_revisionId']++:_0x232f13++}));const _0x103b39=[];for(const _0xea48bf of _0x35e3c7['getChildren']())if(_0xea48bf['is']('element')){_0x103b39['push'](this['_makeIdsRoot'](_0xea48bf,_0x232f13));const _0x29ed32=_0x103b39[_0x103b39['length']-0x1];null!==_0x232f13&&(_0x232f13=_0x29ed32['is']('element','$text')?_0x29ed32['getAttribute']('vid')+0x1:_0x29ed32['getAttribute']('vid_end')+0x1);}else{for(let _0x7ab58=0x0;_0x7ab58<_0xea48bf['offsetSize'];_0x7ab58++)_0x103b39['push'](new ft('$text',{'vid':null===_0x232f13?this['_revisionId']++:_0x232f13++}));}if(_0x35e3c7['is']('documentFragment')){const _0x151351=F(_0x35e3c7['rootName']);return _0x151351['_insertChild'](0x0,_0x103b39),_0x151351;}return _0x65e899['_setAttribute']('vid_end',null===_0x232f13?this['_revisionId']++:_0x232f13++),_0x65e899['_insertChild'](0x0,_0x103b39),_0x65e899;}['_calculateMetaData'](_0x1edb12,_0x370d8c,_0x389679){this['_reset']();const {roots:_0x10a308,markers:_0x237288,rootsAttributes:_0x5d28da}=this['_savedMetaData']['get'](_0x1edb12);this['_baseRoots']=new Map(_0x10a308),this['_baseRootsAttributes']=new Map(_0x49c00c(_0x5d28da));for(const [_0x3286cd,_0x346f7b]of this['_baseRoots'])if('$graveyard'!==_0x3286cd&&(this['_diffRoots']['set'](_0x3286cd,T(_0x346f7b)),this['_diffRootsAttributes']=new Map(_0x49c00c(_0x5d28da)),_0x389679)){const _0x54380f=this['_revisionId'];this['_idsRoots']['set'](_0x3286cd,this['_makeIdsRoot'](_0x346f7b)),this['_baseIdsRoots']['set'](_0x3286cd,this['_makeIdsRoot'](_0x346f7b,_0x54380f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x389679&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x145698,_0x50567f]of _0x237288){const _0x3a84d2=this['_baseRoots']['get'](_0x50567f['rootName']),_0x363a02=this['_diffRoots']['get'](_0x50567f['rootName']),_0x52cee4=new vt(this['_fixPosition'](_0x50567f['start'],_0x3a84d2),this['_fixPosition'](_0x50567f['end'],_0x3a84d2)),_0x4fdacc=this['_fixRange'](_0x52cee4,_0x363a02);_0x3a84d2['markers']['set'](_0x145698,_0x52cee4),this['_markers']['set'](_0x145698,_0x4fdacc);}this['_applyOperations'](_0x1edb12,_0x370d8c,_0x389679);}['_applyOperations'](_0x3f0824,_0x54ef35,_0x1b9195){for(const _0x5196d4 of this['source']['getOperations'](_0x3f0824,_0x54ef35))this['_handleOperation'](_0x5196d4,_0x1b9195);for(const _0x4fed6b of this['_diffRoots']['values']())_0x4fed6b['markers']['clear']();for(const [_0x32095a,_0x513a41]of this['_markers']){this['_diffRoots']['get'](_0x513a41['root']['rootName'])['markers']['set'](_0x32095a,_0x513a41['clone']());}const _0x2242cb=new Map(),_0x15b7c0=new Map();for(const [_0x19555a,_0x285ec0]of this['_diffRoots'])_0x2242cb['set'](_0x19555a,T(_0x285ec0)),_0x15b7c0['set'](_0x19555a,this['_diffRootsAttributes']['get'](_0x19555a));this['_saveMetaData'](_0x54ef35,_0x2242cb,this['_markers'],_0x15b7c0);}['_getPreviousFrom'](_0x700416){const _0x287274=Array['from'](this['_savedMetaData']['keys']());_0x287274['sort']((_0x406b1f,_0x361d4d)=>_0x406b1f-_0x361d4d),_0x287274['reverse']();for(const _0x38db5b of _0x287274)if(_0x38db5b<_0x700416)return _0x38db5b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2e7cd8,_0x44707e){const _0x44c033=Array['from'](_0x44707e['markers'])['map'](([_0x33d8e6,_0x398973])=>[_0x33d8e6,this['_fixRange'](_0x398973,_0x2e7cd8)]);_0x2e7cd8['markers']=new Map(_0x44c033);}['_transformMarkers'](_0x58d2b9){for(const _0x36fd02 of this['_markers']['values']()){const _0x55400d=_0x36fd02['getTransformedByOperation'](_0x58d2b9),_0x51faf6=vt['_createFromRanges'](_0x55400d);_0x36fd02['start']=_0x51faf6['start'],_0x36fd02['end']=_0x51faf6['end'];}}['_handleOperation'](_0x131b21,_0x16b8b7){if('addRoot'!=_0x131b21['type']&&'detachRoot'!=_0x131b21['type']){if('insert'==_0x131b21['type']){const _0xe6625c=_0x131b21['position']['root']['rootName'];this['_diffRoots']['has'](_0xe6625c)||(this['_diffRoots']['set'](_0xe6625c,F(_0xe6625c,!0x0)),this['_diffRootsAttributes']['set'](_0xe6625c,{}),_0x16b8b7&&this['_idsRoots']['set'](_0xe6625c,F(_0xe6625c,!0x0)));}else{if('addRootAttribute'==_0x131b21['type']||'removeRootAttribute'==_0x131b21['type']||'changeRootAttribute'==_0x131b21['type'])return void this['_handleRootAttributeOperation'](_0x131b21);'marker'==_0x131b21['type']&&this['_handleMarkerOperation'](_0x131b21);}if('marker'!==_0x131b21['type']){const _0xedc831=this['_cloneOperation'](_0x131b21,this['_diffRoots']);_0xedc831['_execute'](),this['_transformMarkers'](_0xedc831);}if(_0x16b8b7)switch(_0x131b21['type']){case'insert':this['_handleInsertOperation'](_0x131b21);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x131b21);break;case'merge':this['_handleMergeOperation'](_0x131b21);break;case'split':this['_handleSplitOperation'](_0x131b21);}}else this['_handleRootOperation'](_0x131b21,_0x16b8b7);}['_cloneOperation'](_0x16f6fc,_0x3eccf7){const _0x2ae636=_0x16f6fc['clone']();return _0x2ae636['_authorId']=_0x16f6fc['_authorId'],this['_fixOperation'](_0x2ae636,_0x3eccf7),_0x2ae636;}['_getBaseVids'](_0x54291d){return _0x54291d['map'](_0x4d543f=>{const _0x5d5ab8=this['_getVidAttributeName'](_0x4d543f);return Number(_0x4d543f['item']['getAttribute'](_0x5d5ab8));});}['_generateTape'](_0x382099,_0x592828){if(_0x382099['is']('element','$text'))_0x592828['push']({'item':_0x382099,'type':'text'});else{_0x382099['is']('element')&&_0x592828['push']({'item':_0x382099,'type':'elementStart'});for(const _0x551e31 of _0x382099['getChildren']())this['_generateTape'](_0x551e31,_0x592828);_0x382099['is']('element')&&_0x592828['push']({'item':_0x382099,'type':'elementEnd'});}return _0x592828;}['_getState'](){const _0x2e606a=new Map(this['_touched']),_0x2347bc=new Map(_0x2e606a),_0x47e7d3=new Map(),_0x51febf={'insertions':{},'deletions':{}},_0x34830b={'insertions':{},'deletions':{}},_0x3e7577=new Map(),_0x450f6d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x450f6d['delete']('$graveyard');for(const _0x198a2c of _0x450f6d){const _0x3ec0bf=this['_diffRoots']['get'](_0x198a2c)||F(_0x198a2c,!0x1),_0x274a2c=this['_baseRoots']['get'](_0x198a2c)||F(_0x198a2c,!0x1);_0x3ec0bf['isAttached']()||_0x274a2c['isAttached']()?(_0x51febf['insertions'][_0x198a2c]=T(_0x3ec0bf),_0x51febf['deletions'][_0x198a2c]=T(_0x274a2c),this['_copyMarkers'](_0x51febf['deletions'][_0x198a2c],_0x274a2c),this['_copyMarkers'](_0x51febf['insertions'][_0x198a2c],_0x3ec0bf),_0x34830b['insertions'][_0x198a2c]=this['_generateTape'](this['_idsRoots']['get'](_0x198a2c),[]),_0x34830b['deletions'][_0x198a2c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x198a2c)||F(_0x198a2c,!0x1),[])):_0x450f6d['delete'](_0x198a2c);}for(const _0x38ecfb of _0x450f6d){const _0x16c372=_0x34830b['insertions'][_0x38ecfb];for(const _0x462f28 of _0x16c372){const _0x503e7f=this['_getVidAttributeName'](_0x462f28),_0x493dc3=_0x462f28['item']['getAttribute'](_0x503e7f);_0x2347bc['delete'](_0x493dc3),_0x493dc3>=this['_startingRevisionId']&&_0x47e7d3['set'](_0x493dc3,_0x2e606a['get'](_0x493dc3));}}for(const _0x290cb3 of _0x450f6d){const _0x593197=_0x34830b['insertions'][_0x290cb3],_0x38e3aa=this['_getBaseVids'](_0x34830b['deletions'][_0x290cb3]);let _0x2afeef=0x0;for(const _0x5f6182 of _0x593197){const _0x5dd3f3=this['_getVidAttributeName'](_0x5f6182),_0x12103b=_0x5f6182['item']['getAttribute'](_0x5dd3f3);if(!_0x47e7d3['has'](_0x12103b)&&!_0x3e7577['has'](_0x12103b)){if(_0x2347bc['has'](_0x12103b))_0x2afeef++;else{if(_0x12103b!=_0x38e3aa[_0x2afeef]){const _0x7a1f02=_0x2e606a['get'](_0x12103b)||_0x2e606a['get'](_0x38e3aa[_0x2afeef]);for(;_0x12103b!=_0x38e3aa[_0x2afeef];)_0x2347bc['has'](_0x38e3aa[_0x2afeef])||(_0x3e7577['set'](_0x38e3aa[_0x2afeef],_0x7a1f02),_0x2e606a['set'](_0x38e3aa[_0x2afeef],_0x7a1f02)),_0x2afeef++;}_0x2afeef++;}}}}for(const _0x3d8006 of _0x450f6d){const _0x43ca3b=_0x34830b['insertions'][_0x3d8006];for(const _0x2001de of _0x43ca3b){const _0x3162a4=this['_getVidAttributeName'](_0x2001de),_0x4c3ad6=_0x2001de['item']['getAttribute'](_0x3162a4);if(_0x3e7577['has'](_0x4c3ad6)){const _0x3b0ce6=_0x3e7577['get'](_0x4c3ad6);_0x2347bc['has'](_0x4c3ad6)||_0x2347bc['set'](_0x4c3ad6,{..._0x3b0ce6}),_0x47e7d3['set'](_0x4c3ad6,{..._0x3b0ce6});}}}for(const _0x4310bc of _0x2347bc['keys']())_0x4310bc>=this['_startingRevisionId']&&_0x2347bc['delete'](_0x4310bc);const _0x283fc2=new Map();for(const _0x585855 of _0x450f6d){let _0x26aea5=_0x34830b['insertions'][_0x585855];for(const _0x3979e9 of _0x26aea5)if(_0x3979e9['item']['is']('element','tableCell')){const _0x1e70eb=this['_getVidAttributeName'](_0x3979e9),_0x386de8=_0x3979e9['item']['getAttribute'](_0x1e70eb);if(_0x47e7d3['has'](_0x386de8)){const _0x49e273=_0x3979e9['item']['parent']['parent']['getAttribute']('vid_start'),_0x13e189=_0x283fc2['get'](_0x49e273)||new Set();_0x13e189['add'](_0x47e7d3['get'](_0x386de8)['userId']),_0x283fc2['set'](_0x49e273,_0x13e189);}}_0x26aea5=_0x34830b['deletions'][_0x585855];for(const _0xac8d02 of _0x26aea5)if(_0xac8d02['item']['is']('element','tableCell')){const _0x38628d=this['_getVidAttributeName'](_0xac8d02),_0x204606=_0xac8d02['item']['getAttribute'](_0x38628d);if(_0x2347bc['has'](_0x204606)){const _0x12c5bd=_0xac8d02['item']['parent']['parent']['getAttribute']('vid_start'),_0x1901c5=_0x283fc2['get'](_0x12c5bd)||new Set();_0x1901c5['add'](_0x2347bc['get'](_0x204606)['userId']),_0x283fc2['set'](_0x12c5bd,_0x1901c5);}}for(const _0x5de2ac of _0x283fc2['keys']())(_0x47e7d3['has'](_0x5de2ac)||_0x2347bc['has'](_0x5de2ac))&&_0x283fc2['delete'](_0x5de2ac);}for(const _0x4cff28 of _0x450f6d){const _0x4e8d6e=_0x34830b['insertions'][_0x4cff28];let _0x47035b=null,_0x3197df=null;for(const _0x411f38 of _0x4e8d6e){const _0x3c7b03=this['_getVidAttributeName'](_0x411f38),_0x87b92=_0x411f38['item']['getAttribute'](_0x3c7b03),_0x291d67=_0x283fc2['get'](_0x87b92);_0x291d67&&'elementStart'==_0x411f38['type']&&(_0x47035b=Array['from'](_0x291d67)[0x0],_0x3197df=_0x411f38['item']['getAttribute']('vid_end')),_0x47035b&&(_0x2347bc['set'](_0x87b92,{'userId':_0x47035b}),_0x47e7d3['set'](_0x87b92,{'userId':_0x47035b})),_0x87b92==_0x3197df&&(_0x47035b=null,_0x3197df=null);}}const _0x2e33b1={},_0x355271=new Set();for(const _0x9b9b29 of _0x450f6d){const _0x275373=_0x51febf['deletions'][_0x9b9b29],_0x2233fe=_0x51febf['insertions'][_0x9b9b29];for(const {userId:_0x2dceff}of this['_touchedMarkers']['values']())null!==_0x2dceff&&_0x355271['add'](_0x2dceff);for(const {userId:_0x3a10a4}of this['_touchedRoots']['values']())null!==_0x3a10a4&&_0x355271['add'](_0x3a10a4);this['_markChanges'](_0x2233fe,_0x34830b['insertions'][_0x9b9b29],_0x47e7d3,'insertion',_0x355271),this['_markChanges'](_0x275373,_0x34830b['deletions'][_0x9b9b29],_0x2347bc,'deletion',_0x355271),_0x2e33b1[_0x9b9b29]={'insertions':this['_prepareViewToSave'](_0x2233fe),'deletions':this['_prepareViewToSave'](_0x275373),'attachChange':this['_touchedRoots']['get'](_0x9b9b29)||null,'attributesBefore':_0x49c00c(this['_baseRootsAttributes']['get'](_0x9b9b29))||{},'attributesAfter':_0x49c00c(this['_diffRootsAttributes']['get'](_0x9b9b29))};}return{'diffData':_0x2e33b1,'authorsIds':Array['from'](_0x355271)};}['_processRootBeforeSave'](_0x57d30c){for(const [,_0x42c7c7]of _0x57d30c['markers']){const _0x5793dc=_0x42c7c7['start']['getAncestors']()['filter'](_0x32af7f=>'tableCell'==_0x32af7f['name']);for(const _0x1a33d0 of _0x5793dc)0x1==_0x1a33d0['childCount']&&_0x1a33d0['getChild'](0x0)['is']('element','paragraph')&&_0x1a33d0['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x260d1b){this['_processRootBeforeSave'](_0x260d1b);const _0x32ef48=this['editor']['data']['toView'](_0x260d1b,{}),_0x5d4ce0=Array['from'](_0x32ef48['getChildren']())['map'](_0x16e445=>this['_getViewJson'](_0x16e445));return JSON['stringify'](_0x5d4ce0);}['_getViewJson'](_0x460f01){if(_0x460f01['is']('$text'))return _0x460f01['data'];{const _0x133bac=_0x460f01;return{'type':Object['keys'](P)['find'](_0x1691cb=>_0x460f01 instanceof P[_0x1691cb]),'name':_0x133bac['name'],'attributes':Array['from'](_0x133bac['getAttributes']()),'children':Array['from'](_0x133bac['getChildren']())['map'](_0x2ee5d9=>this['_getViewJson'](_0x2ee5d9))};}}['_markChanges'](_0x55745f,_0x503b6d,_0x1960db,_0x2ca6a0,_0x3f4432){let _0x2a8a24=null,_0x3950dd=null,_0x375247=0x0;const _0x26af40=this['editor']['model'];for(let _0xfe9d0d=0x0;_0xfe9d0d<_0x503b6d['length'];_0xfe9d0d++){const _0x39b9bb=this['_getVidAttributeName'](_0x503b6d[_0xfe9d0d]),_0x5a43e2=_0x503b6d[_0xfe9d0d]['item']['getAttribute'](_0x39b9bb),_0x588575=_0x1960db['get'](_0x5a43e2),_0x5ddb41=_0xfe9d0d==_0x503b6d['length']-0x1;(!_0x2a8a24&&_0x588575&&(_0x2a8a24=_0x588575,_0x3950dd=_0x503b6d[_0xfe9d0d]),_0x2a8a24&&(!_0x588575||_0x588575['userId']!=_0x2a8a24['userId']))&&(_0x44e53d(_0x588575,B(_0x3950dd,_0x55745f,_0x26af40),B(_0x503b6d[_0xfe9d0d],_0x55745f,_0x26af40)),_0x2a8a24=_0x588575||null,_0x3950dd=_0x588575?_0x503b6d[_0xfe9d0d]:null),_0x2a8a24&&_0x5ddb41&&_0x44e53d(_0x588575,B(_0x3950dd,_0x55745f,_0x26af40),J(_0x503b6d[_0xfe9d0d],_0x55745f,_0x26af40));}function _0x44e53d(_0x5a1577,_0x3ed57c,_0x4d1f8a){const _0x2c9142=_0x2a8a24['userId'],_0x4ffb78='revision:'+_0x2ca6a0+':'+_0x2c9142+':'+_0x375247++,_0x3036cb=_0x26af40['createRange'](_0x3ed57c,_0x4d1f8a);_0x55745f['markers']['set'](_0x4ffb78,_0x3036cb),null!==_0x2c9142&&_0x3f4432['add'](_0x2c9142);}}['_getVidAttributeName'](_0x21b3e3){switch(_0x21b3e3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x30dfc5,_0x46ba5a){_0x30dfc5['baseVersion']=null;for(const _0x3f87c7 in _0x30dfc5){const _0x137478=_0x30dfc5[_0x3f87c7];if(_0x137478 instanceof gt){const _0x538877=_0x46ba5a['get'](_0x137478['root']['rootName']);_0x30dfc5[_0x3f87c7]=this['_fixPosition'](_0x137478,_0x538877);}if(_0x137478 instanceof vt){const _0x2d9b16=_0x46ba5a['get'](_0x137478['root']['rootName']);_0x30dfc5[_0x3f87c7]=this['_fixRange'](_0x137478,_0x2d9b16);}'root'===_0x3f87c7&&(_0x30dfc5['root']=_0x46ba5a['get'](_0x30dfc5['root']['rootName']));}}['_fixRange'](_0x44bfff,_0x47c7e2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x44bfff['start'],_0x47c7e2),this['_fixPosition'](_0x44bfff['end'],_0x47c7e2));}['_fixPosition'](_0x5837e5,_0x3a7945){return this['editor']['model']['createPositionFromPath'](_0x3a7945,_0x5837e5['path'],_0x5837e5['stickiness']);}['_handleInsertOperation'](_0xd1a81f){const _0x13e4cf=this['_idsRoots']['get'](_0xd1a81f['position']['root']['rootName']),_0x280980=this['_fixPosition'](_0xd1a81f['position'],_0x13e4cf),_0x43b02b=null===_0xd1a81f['_authorId']?null:_0xd1a81f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c339f=_0x280980['parent'],_0x27e931=this['_revisionId'],_0x3fac47=[];for(const _0x53ec3d of _0xd1a81f['nodes'])if(_0x53ec3d['is']('element'))_0x3fac47['push'](this['_makeIdsRoot'](_0x53ec3d));else{for(let _0x4726a0=0x0;_0x4726a0<_0x53ec3d['offsetSize'];_0x4726a0++)_0x3fac47['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x101302=this['_revisionId'];for(let _0x3cb430=_0x27e931;_0x3cb430<_0x101302;_0x3cb430++)this['_touched']['set'](_0x3cb430,{'userId':_0x43b02b});_0x5c339f['_insertChild'](_0x280980['offset'],_0x3fac47);}['_handleMoveOperation'](_0x4db02e){(_0x4db02e=this['_cloneOperation'](_0x4db02e,this['_idsRoots']))['_execute']();const _0x15c41=null===_0x4db02e['_authorId']?null:_0x4db02e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x118080=_0x4db02e['getMovedRangeStart'](),_0x426d87=_0x118080['parent'],_0x2b94df=_0x118080['offset'];!function _0x1057e4(_0x4eec27,_0x71f8ec,_0x4421e2,_0x2b1c2c){for(let _0x377a87=_0x4421e2;_0x377a87<_0x2b1c2c;_0x377a87++){const _0x3c4616=_0x71f8ec['getChild'](_0x377a87);_0x3c4616['is']('element','$text')?_0x4eec27['set'](_0x3c4616['getAttribute']('vid'),{'userId':_0x15c41}):(_0x4eec27['set'](_0x3c4616['getAttribute']('vid_start'),{'userId':_0x15c41}),_0x1057e4(_0x4eec27,_0x3c4616,0x0,_0x3c4616['childCount']),_0x4eec27['set'](_0x3c4616['getAttribute']('vid_end'),{'userId':_0x15c41}));}}(this['_touched'],_0x426d87,_0x2b94df,_0x2b94df+_0x4db02e['howMany']);}['_handleMergeOperation'](_0x3335b5){const _0x4e3613=null===(_0x3335b5=this['_cloneOperation'](_0x3335b5,this['_idsRoots']))['_authorId']?null:_0x3335b5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d89a8=_0x3335b5['targetPosition']['parent'],_0x3fb572=_0x3335b5['sourcePosition']['parent'],_0x1e9d78=_0x3d89a8['getAttribute']('vid_end'),_0x1a4b02=_0x3fb572['getAttribute']('vid_start');_0x3d89a8['_setAttribute']('vid_end',_0x3fb572['getAttribute']('vid_end')),_0x3fb572['_setAttribute']('vid_end',_0x1e9d78),this['_touched']['set'](_0x1a4b02,{'userId':_0x4e3613}),this['_touched']['set'](_0x1e9d78,{'userId':_0x4e3613}),_0x3335b5['_execute']();}['_handleSplitOperation'](_0x5397e2){const _0x2d9df7=null===(_0x5397e2=this['_cloneOperation'](_0x5397e2,this['_idsRoots']))['_authorId']?null:_0x5397e2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b674a=_0x5397e2['graveyardPosition'],_0x1793bf=_0x5397e2['splitPosition']['parent'];_0x5397e2['_execute']();const _0x3fb8d5=_0x1793bf['getAttribute']('vid_end'),_0x30bbe7=_0x5397e2['insertionPosition']['nodeAfter'];if(_0x2b674a){const _0x3f419b=_0x30bbe7['getAttribute']('vid_end'),_0x384bee=_0x1793bf['getAttribute']('vid_end');_0x1793bf['_setAttribute']('vid_end',_0x3f419b),_0x30bbe7['_setAttribute']('vid_end',_0x384bee),this['_touched']['set'](_0x1793bf['getAttribute']('vid_end'),{'userId':_0x2d9df7}),this['_touched']['set'](_0x30bbe7['getAttribute']('vid_start'),{'userId':_0x2d9df7});}else{const _0xcdac79=this['_revisionId']++,_0x5a7bc2=this['_revisionId']++;_0x1793bf['_setAttribute']('vid_end',_0xcdac79),_0x30bbe7['_setAttribute']('vid_start',_0x5a7bc2),_0x30bbe7['_setAttribute']('vid_end',_0x3fb8d5),this['_touched']['set'](_0xcdac79,{'userId':_0x2d9df7}),this['_touched']['set'](_0x5a7bc2,{'userId':_0x2d9df7});}}['_handleMarkerOperation'](_0x364b2f){if(!_0x364b2f['affectsData'])return;const _0x3e58c3=(_0x364b2f=this['_cloneOperation'](_0x364b2f,this['_diffRoots']))['oldRange']?_0x364b2f['oldRange']['root']:null,_0x24b221=_0x364b2f['newRange']?_0x364b2f['newRange']['root']:null;_0x3e58c3&&this['_markers']['delete'](_0x364b2f['name']),_0x24b221&&this['_markers']['set'](_0x364b2f['name'],_0x364b2f['newRange']['clone']());const _0x3b46ea=null===_0x364b2f['_authorId']?null:_0x364b2f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x191be4=_0x364b2f['name'];if(!this['_touchedMarkers']['has'](_0x191be4))return void this['_touchedMarkers']['set'](_0x191be4,{'range':_0x364b2f['oldRange'],'userId':_0x3b46ea});const _0x4d55fd=this['_touchedMarkers']['get'](_0x191be4),_0x5e41a7=_0x4d55fd['range'],_0x4f0cbd=_0x364b2f['newRange'];null==_0x5e41a7&&null==_0x4f0cbd||_0x5e41a7&&_0x4f0cbd&&_0x5e41a7['isEqual'](_0x4f0cbd)?this['_touchedMarkers']['delete'](_0x364b2f['name']):_0x4d55fd['userId']=_0x3b46ea;}['_handleRootOperation'](_0x36b2ca,_0x344da2){this['_diffRoots']['has'](_0x36b2ca['rootName'])?this['_diffRoots']['get'](_0x36b2ca['rootName'])['_isAttached']=_0x36b2ca['isAdd']:(this['_diffRoots']['set'](_0x36b2ca['rootName'],F(_0x36b2ca['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x36b2ca['rootName'],{}),_0x344da2&&this['_idsRoots']['set'](_0x36b2ca['rootName'],F(_0x36b2ca['rootName'],!0x0)));const _0x408cfd=null===_0x36b2ca['_authorId']?null:_0x36b2ca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b14b4=this['_touchedRoots']['get'](_0x36b2ca['rootName']);_0x3b14b4&&_0x3b14b4['userId']===_0x408cfd?this['_touchedRoots']['delete'](_0x36b2ca['rootName']):this['_touchedRoots']['set'](_0x36b2ca['rootName'],{'userId':_0x408cfd,'isAttached':_0x36b2ca['isAdd']});}['_handleRootAttributeOperation'](_0x2d4490){const _0x5647ea=this['_diffRootsAttributes']['get'](_0x2d4490['root']['rootName']);null===_0x2d4490['newValue']?delete _0x5647ea[_0x2d4490['key']]:_0x5647ea[_0x2d4490['key']]=_0x2d4490['newValue'];}}function T(_0x44e413){const _0x27c7c3=F(_0x44e413['rootName'],_0x44e413['isAttached']());for(const _0x3b8e81 of _0x44e413['getChildren']()){const _0x26e11b=_0x3b8e81['_clone'](!0x0);_0x27c7c3['_appendChild'](_0x26e11b);}return _0x27c7c3;}function F(_0x4ab756,_0x50c57b=!0x0){const _0x2767dc=new mt();return _0x2767dc['rootName']=_0x4ab756,_0x2767dc['_isAttached']=_0x50c57b,_0x2767dc['isAttached']=()=>_0x2767dc['_isAttached'],_0x2767dc;}function B(_0x22acfc,_0x7c5176,_0x31d993){const _0x5a9526='elementEnd'==_0x22acfc['type']?_0x31d993['createPositionAt'](_0x22acfc['item'],'end'):_0x31d993['createPositionBefore'](_0x22acfc['item']);return _0x31d993['createPositionFromPath'](_0x7c5176,_0x5a9526['path'],_0x5a9526['stickiness']);}function J(_0x2c68c9,_0x4ef0fa,_0x181ba7){const _0x52fd62='elementStart'==_0x2c68c9['type']?_0x181ba7['createPositionAt'](_0x2c68c9['item'],0x0):_0x181ba7['createPositionAfter'](_0x2c68c9['item']);return _0x181ba7['createPositionFromPath'](_0x4ef0fa,_0x52fd62['path'],_0x52fd62['stickiness']);}class ns extends _0x3f0f05{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2a9518,_0x58a1e9){super(_0x2a9518),this['focusTracker']=new _0x14a05e(),this['keystrokes']=new _0x593668(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x58a1e9),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'](),_0x6652f9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3f6750=_0x19ddc2=>_0x19ddc2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3f6750),this['keystrokes']['set']('arrowleft',_0x3f6750),this['keystrokes']['set']('arrowup',_0x3f6750),this['keystrokes']['set']('arrowdown',_0x3f6750);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x247974){this['revisionNameInputView']['fieldView']['element']['value']=_0x247974['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4f65de){const _0x1ff2eb=new nt(this['locale'],_0x1d572c),_0x45cb5b=_0x1ff2eb['fieldView'];_0x45cb5b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3ed297=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4f65de&&(_0x3ed297+='\x20('+m(this['locale'],'optional')+')'),(_0x1ff2eb['label']=_0x3ed297,_0x45cb5b['on']('input',()=>{this['revisionNameInputValue']=_0x45cb5b['element']['value']['trim']();}),_0x1ff2eb);}}class u extends _0x38c4e4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x25369f=this['editor'],_0x595b11=_0x25369f['plugins']['get']('RevisionTracker');_0x25369f['ui']['componentFactory']['add']('revisionHistory',_0x3f1969=>{const _0x37b6e8=_0x2a9d1c(_0x3f1969),_0x3971d0=_0x37b6e8['panelView']['children'],_0x3538d0=new te(_0x3f1969),_0x227dd1=new _0x451921(_0x3f1969),_0x2381fe=new _0x13b3b7(_0x3f1969),_0x403330=new _0x451921(_0x3f1969),_0x1c641e=new _0x13b3b7(_0x3f1969);return _0x37b6e8['bind']('isEnabled')['to'](_0x595b11,'isReady',_0x595b11,'isEnabled',_0x25369f,'isReadOnly',(_0x5a87ea,_0x12f695,_0x10713d)=>_0x5a87ea&&_0x12f695&&!_0x10713d),_0x37b6e8['buttonView']['set']({'icon':_0x226c5d['history'],'label':m(_0x3f1969,'Revision\x20history'),'tooltip':!0x0}),_0x2381fe['set']({'label':m(_0x3f1969,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2381fe['bind']('isEnabled')['to'](_0x595b11,'isReady',_0x595b11,'isEnabled',_0x25369f,'isReadOnly',(_0x45d437,_0x5b8db4,_0x5dc08e)=>_0x45d437&&_0x5b8db4&&!_0x5dc08e),_0x2381fe['on']('execute',()=>this['_showDialog']()),_0x1c641e['set']({'label':m(_0x3f1969,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1c641e['bind']('isEnabled')['to'](_0x595b11,'isReady',_0x25369f,'isReadOnly',(_0x4be990,_0x3f2b69)=>_0x4be990&&!_0x3f2b69),_0x1c641e['on']('execute',()=>{_0x25369f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x37b6e8['isOpen']=!0x1,_0x25369f['editing']['view']['focus']();}),_0x227dd1['children']['add'](_0x2381fe),_0x403330['children']['add'](_0x1c641e),_0x3538d0['role']='menu',_0x3538d0['items']['addMany']([_0x227dd1,_0x403330]),_0x3971d0['add'](_0x3538d0),_0x37b6e8;}),_0x25369f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x12725c=this['editor'],_0x275877=_0x12725c['locale'],_0x183e64=new _0x1b77ca(_0x275877),_0x22c74e=new _0x3b79b8(_0x275877);_0x183e64['buttonView']['set']({'icon':_0x226c5d['history'],'label':m(_0x275877,'Revision\x20history')});const _0x41eb73=new _0x50d7f2(_0x275877,_0x183e64),_0x4cfe22=new _0x37066d(_0x275877);_0x4cfe22['set']({'label':m(_0x275877,'Save\x20current\x20revision')}),_0x4cfe22['delegate']('execute')['to'](_0x183e64),_0x4cfe22['on']('execute',()=>{this['_showDialog']();}),_0x41eb73['children']['add'](_0x4cfe22),_0x22c74e['items']['add'](_0x41eb73);const _0x32b75f=new _0x50d7f2(_0x275877,_0x183e64),_0x3a8072=new _0x37066d(_0x275877);return _0x3a8072['set']({'label':m(_0x275877,'Open\x20revision\x20history')}),_0x3a8072['delegate']('execute')['to'](_0x183e64),_0x3a8072['on']('execute',()=>{_0x12725c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x32b75f['children']['add'](_0x3a8072),_0x22c74e['items']['add'](_0x32b75f),_0x183e64['panelView']['children']['add'](_0x22c74e),_0x183e64;}['_showDialog'](){const _0x4be217=this['editor'],_0x22e1d0=_0x4be217['locale'],_0x5b993f=_0x4be217['plugins']['get']('Dialog'),_0x4c6fad=_0x4be217['plugins']['get']('RevisionTracker');function _0x9d5cc2(_0x358e85){_0x4be217['config']['get']('revisionHistory.requireRevisionName')&&''===_0x358e85['revisionName']?_0x358e85['revisionNameInputView']['errorText']=m(_0x22e1d0,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4be217['plugins']['get'](l)['saveRevision']({'name':_0x358e85['revisionName']}),_0x5b993f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x9d5cc2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5b993f['show']({'id':'revisionSave','title':m(_0x22e1d0,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4be217['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5b993f['hide']()},{'label':m(_0x4be217['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1291c0){_0x1291c0['bind']('isEnabled')['to'](_0x4c6fad,'isReady',_0x4c6fad,'isEnabled',_0x4be217,'isReadOnly',(_0x5ea6fc,_0x7baaa7,_0x341957)=>_0x5ea6fc&&_0x7baaa7&&!_0x341957);},'onExecute':()=>_0x9d5cc2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2126d2=this['editor'],_0x2ca0da=_0x2126d2['locale'];this['_saveRevisionFormView']=new ns(_0x2ca0da,_0x2126d2['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3f0f05{['changeId'];['_model'];constructor(_0xe7867,_0x534d07){super(_0xe7867),this['_model']=_0x534d07,this['changeId']=_0x534d07['id'];const _0x4295b1=this['bindTemplate'],_0x36e3c3=m(_0xe7867,_0x534d07['data']['isSuggestion']?'Suggested\x20by':'add'==_0x534d07['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x534d07['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4295b1['to']('type',_0x3251ed=>'ck-revision-change__'+_0x3251ed)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x36e3c3}]},{'text':'\x20'+_0x534d07['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2d9680(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3698ed){super(),this['id']=_0x3698ed['id']||_0x358749(),this['author']=_0x3698ed['author'],this['type']=_0x3698ed['type'],this['data']=_0x3698ed['data']||{},this['rootName']=_0x3698ed['rootName'],this['set']('createdAt',_0x3698ed['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(_0x2f31a8,_0x482247){this['newRevisionId']=_0x2f31a8,this['oldRevisionId']=_0x482247,this['changes']=new _0x42ce0a();}['_setChanges'](_0x18c523){for(const _0x36c33e of _0x18c523)this['changes']['add'](_0x36c33e);}}const Y={'c':_0x73e509,'a':_0x2053cd,'e':_0x48c1f7,'r':_0x11a6f7,'u':_0x2dca08};class d extends _0x38c4e4{['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[_0x25c78c,_0x377694,j];}constructor(_0x11bd9d){super(_0x11bd9d),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',(_0x343923,_0x12e025,_0xbd5a1b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x80a50d=>{for(const _0x2917e3 of this['editor']['editing']['view']['document']['roots'])_0xbd5a1b?_0x80a50d['removeClass']('ck-editor__editable__overlay',_0x2917e3):_0x80a50d['addClass']('ck-editor__editable__overlay',_0x2917e3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4ca113=>null!==_0x4ca113),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x45725c,_0x170024,_0x5d66df)=>_0x45725c&&_0x5d66df?_0x170024['changes']['getIndex'](_0x5d66df):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x44fe98,_0x2c23ae)=>_0x44fe98?_0x2c23ae['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x377694);}['init'](){const _0x34d14b=this['editor'],_0x2b0410=new yt(_0x34d14b,{'direction':'backward'}),_0x5b21e0=new yt(_0x34d14b,{'direction':'forward'});(_0x34d14b['commands']['add']('showPreviousChange',_0x2b0410),_0x34d14b['commands']['add']('showNextChange',_0x5b21e0),_0x34d14b['commands']['add']('restoreRevision',new _t(_0x34d14b)),this['on']('change:numberOfChanges',()=>{_0x2b0410['refresh'](),_0x5b21e0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x34d14b['enableReadOnlyMode']('revision-viewer'),_0x34d14b['plugins']['has']('WidgetToolbarRepository'))&&_0x34d14b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4a6b51){await this['loadRevisionData'](_0x4a6b51);const _0x521c0e={};for(const _0x4bc531 in _0x4a6b51['diffData']){if(_0x4a6b51['diffData'][_0x4bc531]['attachChange']&&!_0x4a6b51['diffData'][_0x4bc531]['attachChange']['isAttached'])continue;const _0x37fc18=this['_removeRevisionMarkers'](JSON['parse'](_0x4a6b51['diffData'][_0x4bc531]['insertions'])),_0x133531=this['editor']['editing']['view']['document'],_0x5b8696=new _0xe0cd86(_0x133531,_0x37fc18['map'](_0x1f86af=>this['_getViewObj'](_0x1f86af)));this['editor']['data']['processor']['useFillerType']('marked'),_0x521c0e[_0x4bc531]=this['editor']['data']['processor']['toData'](_0x5b8696),this['editor']['data']['processor']['useFillerType']('default');}return _0x521c0e;}async['getRevisionRootsAttributes'](_0x2236eb){await this['loadRevisionData'](_0x2236eb);const _0x3127e8={};for(const _0x1c5a7c in _0x2236eb['diffData'])_0x2236eb['diffData'][_0x1c5a7c]['attachChange']&&!_0x2236eb['diffData'][_0x1c5a7c]['attachChange']['isAttached']||(_0x3127e8[_0x1c5a7c]=_0x2236eb['diffData'][_0x1c5a7c]['attributesAfter']||{});return _0x3127e8;}['_removeRevisionMarkers'](_0x54f523){return(_0x54f523=_0x54f523['filter'](_0x57e4b5=>!_0x57e4b5['name']||'revision-start'!==_0x57e4b5['name']&&'revision-end'!==_0x57e4b5['name']))['forEach'](_0x4f2162=>{'string'!=typeof _0x4f2162&&(_0x4f2162['children']=this['_removeRevisionMarkers'](_0x4f2162['children']),_0x4f2162['attributes']=_0x4f2162['attributes']['filter'](_0x2889ee=>!_0x2889ee[0x0]['startsWith']('data-revision-')));}),_0x54f523;}async['compare'](_0x1a2f8f,_0x25c03a,_0x26738f=!0x1){if(!this['isEnabled'])return;const _0x44c958=this['diff'],_0x5e6d99=this['repository'],_0x374240='string'==typeof _0x1a2f8f?_0x5e6d99['getRevision'](_0x1a2f8f):_0x1a2f8f,_0x14a162='string'==typeof _0x25c03a?_0x5e6d99['getRevision'](_0x25c03a):_0x25c03a,_0x10e2d6=_0x374240['id'],_0x4a3e5f=_0x14a162?_0x14a162['id']:null;if(!_0x26738f&&this['diff']&&this['diff']['newRevisionId']===_0x10e2d6&&this['diff']['oldRevisionId']===_0x4a3e5f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x10e2d6,_0x4a3e5f);const _0x4aeb8b=this['_getRevisionsRange'](_0x374240,_0x14a162,!0x0)['map'](_0x2fc848=>this['loadRevisionData'](_0x2fc848));return _0x4aeb8b['push'](new Promise(_0x155315=>{setTimeout(_0x155315,0x14);})),Promise['all'](_0x4aeb8b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xac6078=this['_getDiff'](_0x10e2d6,_0x4a3e5f);for(const _0x3bffe1 of _0xac6078['changes'])this['_changeIdToChange']['set'](_0x3bffe1['id'],_0x3bffe1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xb9d785=>{for(const _0x539433 of this['editor']['model']['document']['getRootNames']())_0xb9d785['detachRoot'](_0x539433);for(const _0x443b0d of Object['keys'](_0xac6078['model'])){const _0x4d8101=_0xb9d785['addRoot'](_0x443b0d);for(const _0x3a8938 of Object['keys'](_0xac6078['attributes'][_0x443b0d]))_0xb9d785['setAttribute'](_0x3a8938,_0xac6078['attributes'][_0x443b0d][_0x3a8938],_0x4d8101);_0xb9d785['insert'](_0xac6078['model'][_0x443b0d],_0x4d8101,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xac6078['changes'])),this['isReady']=!0x0;})['catch'](_0x298789=>{console['error'](_0x298789),this['_cleanUp'](),_0x44c958&&(this['diff']=_0x44c958),this['isReady']=!0x0;});}['addRevisionData'](_0x6f788e,_0x219a81){const _0x49024d=this['repository']['createRevision'](_0x6f788e);return _0x49024d['on']('_update',(_0x1f8738,_0x54652c,_0x1e6a82)=>_0x219a81(_0x54652c,_0x1e6a82,_0x49024d)),this['repository']['addRevision'](_0x49024d),_0x49024d;}['loadRevisionData'](_0x4b1d47){if(!_0x4b1d47||_0x4b1d47['diffData'])return Promise['resolve']();{const _0x348c9a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x348c9a,'revisionId':_0x4b1d47['id']})['then'](_0x4a33b2=>{_0x4b1d47['_update']({'diffData':_0x4a33b2['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},_0x4b0622=>{for(const _0x49ef69 of this['editor']['model']['document']['getRootNames']())_0x4b0622['detachRoot'](_0x49ef69);});}['_sortAndFilterDiffChanges'](_0x432fda){const _0x1bd203=[],_0x33bc5b=new Map();for(const _0x4c7913 of this['editor']['model']['document']['getRootNames']()){const _0x247923=this['editor']['editing']['view']['getDomRoot'](_0x4c7913);if(!_0x247923)continue;const _0x206109=_0x247923['getClientRects']()['item'](0x0);_0x206109&&(_0x1bd203['push'](_0x4c7913),_0x33bc5b['set'](_0x4c7913,_0x206109));}return _0x1bd203['sort']((_0x5377b8,_0x380b07)=>{const _0x359a1c=_0x33bc5b['get'](_0x5377b8),_0x3280fd=_0x33bc5b['get'](_0x380b07);return _0x359a1c['y']-_0x3280fd['y']||_0x359a1c['x']-_0x3280fd['x'];}),(_0x432fda=_0x432fda['filter'](_0x20af5c=>_0x1bd203['includes'](_0x20af5c['rootName'])))['sort']((_0x44fc28,_0x464efc)=>_0x1bd203['indexOf'](_0x44fc28['rootName'])-_0x1bd203['indexOf'](_0x464efc['rootName'])),_0x432fda;}['_makeTape'](_0xda741d){const _0x3fff92=Array['from'](_0xda741d['markers'])['filter'](([_0x13586b,_0x5b0245])=>_0x13586b['startsWith']('revision:')&&!_0x5b0245['isCollapsed']),_0x3a7ec3=Array['from'](this['editor']['model']['createRangeIn'](_0xda741d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3fff92['length'])for(const _0x46487e of _0x3a7ec3){const [_0x2a9c53,_0x2421ec]=_0x3fff92[0x0],[,_0x4af7b2,_0x3adc13]=_0x2a9c53['split'](':');if(_0x2421ec['end']['isEqual'](_0x46487e['nextPosition'])&&_0x3fff92['shift'](),(_0x46487e['previousPosition']['isEqual'](_0x2421ec['start'])||_0x46487e['previousPosition']['isAfter'](_0x2421ec['start']))&&('insertion'==_0x4af7b2?_0x46487e['isAdded']={'userId':_0x3adc13}:'deletion'==_0x4af7b2&&(_0x46487e['isRemoved']={'userId':_0x3adc13})),0x0==_0x3fff92['length'])break;}return _0x3a7ec3;}['_refreshStartEndIndex'](_0x5400a5){const _0x8be168=new Map();for(let _0x615757=0x0;_0x615757<_0x5400a5['length'];_0x615757++)'text'===_0x5400a5[_0x615757]['type']?(_0x5400a5[_0x615757]['item']['startIndex']=_0x615757,_0x5400a5[_0x615757]['item']['endIndex']=_0x615757):('elementStart'===_0x5400a5[_0x615757]['type']?_0x5400a5[_0x615757]['item']['startIndex']=_0x615757:'elementEnd'===_0x5400a5[_0x615757]['type']&&(_0x5400a5[_0x615757]['item']['endIndex']=_0x615757),_0x8be168['set'](_0x5400a5[_0x615757]['id'],_0x615757));for(const _0x476aca of _0x8be168['values']())'elementStart'===_0x5400a5[_0x476aca]['type']?_0x5400a5[_0x476aca]['item']['endIndex']=_0x8be168['get'](_0x5400a5[_0x476aca]['pairId']):'elementEnd'===_0x5400a5[_0x476aca]['type']&&(_0x5400a5[_0x476aca]['item']['startIndex']=_0x8be168['get'](_0x5400a5[_0x476aca]['pairId']));}['_processTape'](_0x55529d){for(let _0x262a1b=0x0;_0x262a1b<_0x55529d['length'];_0x262a1b++){if('elementStart'===_0x55529d[_0x262a1b]['type'])_0x55529d[_0x262a1b]['item']['startIndex']=_0x262a1b;else{if('elementEnd'===_0x55529d[_0x262a1b]['type']){_0x55529d[_0x262a1b]['item']['endIndex']=_0x262a1b;const _0x493056=_0x55529d[_0x262a1b]['item']['startIndex'];_0x55529d[_0x493056]['pairId']=_0x55529d[_0x262a1b]['id'],_0x55529d[_0x262a1b]['pairId']=_0x55529d[_0x493056]['id'];}else _0x55529d[_0x262a1b]['item']['startIndex']=_0x262a1b,_0x55529d[_0x262a1b]['item']['endIndex']=_0x262a1b,_0x55529d[_0x262a1b]['pairId']=null;}_0x55529d[_0x262a1b]['markersStart']||(_0x55529d[_0x262a1b]['markersStart']=[],_0x55529d[_0x262a1b]['markersEnd']=[]);}}['_markInsertions'](_0x3adbf5,_0x49810f){const _0xe46394=_0x3adbf5['filter'](_0x622f90=>!_0x622f90['isAdded']);for(let _0x57a6f5=0x0;_0x57a6f5<_0x49810f['length'];_0x57a6f5++)_0x49810f[_0x57a6f5]['isAdded']&&(_0xe46394[_0x57a6f5]['isAdded']=_0x49810f[_0x57a6f5]['isAdded']);}['_makeModelFromViewString'](_0xea873d){const _0x8771d3=JSON['parse'](_0xea873d),_0x43c04a=this['editor']['editing']['view']['document'],_0xd931bd=new _0xe0cd86(_0x43c04a,_0x8771d3['map'](_0x4d994=>this['_getViewObj'](_0x4d994)));return this['editor']['data']['toModel'](_0xd931bd);}['_getViewObj'](_0x7797c5){const _0x1ac49b=this['editor']['editing']['view']['document'];if('string'==typeof _0x7797c5)return new _0x293831(_0x1ac49b,_0x7797c5);{const _0x539382=_0x7797c5['children']['map'](_0x302937=>this['_getViewObj'](_0x302937));return new(Y[_0x7797c5['type']]||_0x1faa4b)(_0x1ac49b,_0x7797c5['name'],_0x7797c5['attributes'],_0x539382);}}['_getDiff'](_0x452120,_0x25c090=null){const _0x358754=this['repository']['getRevision'](_0x452120),_0x4f4035=_0x25c090?this['repository']['getRevision'](_0x25c090):null,_0x7f7188=this['_getRevisionsRange'](_0x358754,_0x4f4035),_0x3207d3=_0x7f7188[_0x7f7188['length']-0x1],_0x4f91e3=new Map(),_0x320009={'model':{},'attributes':{},'changes':[]},_0x39a81d=new Set(),_0x4c6fcd=new Map();for(let _0x13b844=_0x7f7188['length']-0x1;_0x13b844>=0x0;_0x13b844--){const _0x5c10ed=_0x7f7188[_0x13b844];for(const _0x168d86 of Object['keys'](_0x5c10ed['diffData']))if(_0x5c10ed['diffData'][_0x168d86]['attachChange']){const _0x5c8ac3=_0x5c10ed['diffData'][_0x168d86]['attachChange'];_0x5c8ac3['isAttached']?(_0x39a81d['add'](_0x168d86),_0x4c6fcd['has'](_0x168d86)&&_0x4c6fcd['get'](_0x168d86)['userId']==_0x5c8ac3['userId']?_0x4c6fcd['delete'](_0x168d86):_0x4c6fcd['set'](_0x168d86,_0x5c8ac3)):_0x4c6fcd['has'](_0x168d86)?(_0x39a81d['delete'](_0x168d86),_0x4c6fcd['delete'](_0x168d86)):(_0x39a81d['add'](_0x168d86),_0x4c6fcd['set'](_0x168d86,_0x5c8ac3));}else _0x39a81d['add'](_0x168d86);}for(const _0x39ccfd of _0x39a81d){const _0x29854d=_0x4c6fcd['has'](_0x39ccfd)&&!_0x4c6fcd['get'](_0x39ccfd)['isAttached'];let _0x415752=_0x29854d?_0x7f7188['length']-0x1:0x0;const _0xa77c7b=_0x29854d?-0x1:0x1;for(;_0x7f7188[_0x415752];){const _0xaf9c14=_0x7f7188[_0x415752];if(_0xaf9c14['diffData'][_0x39ccfd]){const _0x26ae51=_0x29854d?_0xaf9c14['diffData'][_0x39ccfd]['attributesBefore']:_0xaf9c14['diffData'][_0x39ccfd]['attributesAfter'];_0x320009['attributes'][_0x39ccfd]=_0x26ae51?_0x49c00c(_0x26ae51):{};break;}_0x415752+=_0xa77c7b;}}for(const _0x430172 of _0x7f7188){_0x430172['model']={};for(const _0x53d2c8 of _0x430172['authors'])_0x4f91e3['set'](_0x53d2c8['id'],_0x53d2c8);for(const _0x2385f9 of _0x39a81d){const _0x337b81=_0x430172['diffData'][_0x2385f9]?_0x430172['diffData'][_0x2385f9]['insertions']:'[]',_0x2a91b6=_0x430172['diffData'][_0x2385f9]?_0x430172['diffData'][_0x2385f9]['deletions']:'[]';_0x430172['model'][_0x2385f9]={'insertions':this['_makeModelFromViewString'](_0x337b81),'deletions':this['_makeModelFromViewString'](_0x2a91b6)};}}for(const _0x3896dc of _0x39a81d){let _0x43f90d=null,_0x54c8be=0x0;const _0x555ee8=new Map(Array['from'](_0x358754['model'][_0x3896dc]['insertions']['markers'])['filter'](([_0x59a1f4])=>!_0x59a1f4['startsWith']('revision:')));let _0xeafdb7=0x0;for(const _0x12da58 of _0x7f7188){const _0xa9caf=this['_makeTape'](_0x12da58['model'][_0x3896dc]['insertions']);_0x12da58==_0x358754?(_0x43f90d=_0xa9caf,_0x54c8be=_0x43f90d['length'],_0x43f90d['forEach'](_0x4de588=>{_0x4de588['id']=_0xeafdb7++;}),this['_processTape'](_0x43f90d)):this['_markInsertions'](_0x43f90d,_0xa9caf);const _0x382783=_0x43f90d['filter'](_0x4532db=>!_0x4532db['isAdded'])['map'](_0x7b911a=>_0x7b911a['id']);let _0x298ada=0x0;const _0x25e8c3=this['_makeTape'](_0x12da58['model'][_0x3896dc]['deletions']);_0x25e8c3['forEach'](_0x3c0fbe=>{_0x3c0fbe['isRemoved']?_0x3c0fbe['id']=_0x54c8be++:_0x3c0fbe['id']=_0x382783[_0x298ada++];}),this['_processTape'](_0x25e8c3),this['_setDistance'](_0x43f90d,'isAdded'),this['_setDistance'](_0x25e8c3,'isRemoved'),_0x12da58==_0x358754&&this['_markMarkers'](_0x43f90d,_0x555ee8),_0x43f90d=this['_joinTapes'](_0x43f90d,_0x25e8c3),this['_refreshStartEndIndex'](_0x43f90d),this['_setDistance'](_0x43f90d,'isRemoved');}_0x43f90d=_0x43f90d['filter'](_0x354b5a=>!(_0x354b5a['isAdded']&&_0x354b5a['isRemoved']));const _0x1919f9=new Map(_0x3207d3['model'][_0x3896dc]['deletions']['markers']),_0x2bb2bd=new Set(_0x555ee8['keys']());for(const _0x47d112 of _0x1919f9['keys']())_0x2bb2bd['delete'](_0x47d112);this['_markSuggestions'](_0x43f90d,_0x2bb2bd),this['_fixObsoleteTags'](_0x43f90d),_0x43f90d=this['_removeMissingPairs'](_0x43f90d),_0x43f90d=this['_markMismatchedRemovedTags'](_0x43f90d),_0x43f90d=this['_removeUnsupportedChanges'](_0x43f90d);const {root:_0x59117a,changes:_0x559368}=this['_makeModelFromTape'](_0x43f90d,_0x4f91e3,_0x3896dc);_0x320009['model'][_0x3896dc]=_0x59117a;const _0x2632da=_0x4c6fcd['get'](_0x3896dc);if(_0x2632da){const _0x299fd8=_0x4f91e3['get'](_0x2632da['userId']),_0x3944a4=new r({'author':_0x299fd8,'type':_0x2632da['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3896dc});_0x559368['unshift'](_0x3944a4),_0x320009['attributes'][_0x3896dc]['revisionHistoryAttachChange']=_0x3944a4['id'];}_0x320009['changes']=_0x320009['changes']['concat'](_0x559368);}return _0x320009;}['_markMarkers'](_0x1ded16,_0x439692){for(let _0xbee46=0x0;_0xbee46<_0x1ded16['length'];_0xbee46++)for(const [_0x3b081d,_0x234c27]of _0x439692)_0x234c27['start']['isEqual'](_0x1ded16[_0xbee46]['previousPosition'])&&_0x1ded16[_0xbee46]['markersStart']['push'](_0x3b081d),_0x234c27['end']['isEqual'](_0x1ded16[_0xbee46]['nextPosition'])&&_0x1ded16[_0xbee46]['markersEnd']['push'](_0x3b081d);}['_joinTapes'](_0x10a324,_0x5eda9e){let _0x322964=[],_0x270b7e=0x0,_0x1912b4=0x0;for(;_0x270b7e<_0x10a324['length']||_0x1912b4<_0x5eda9e['length'];){const _0x22ea0c=_0x10a324[_0x270b7e]||{},_0x59e411=_0x5eda9e[_0x1912b4]||{};if(_0x22ea0c['id']==_0x59e411['id'])_0x270b7e++,_0x1912b4++,_0x322964['push'](_0x22ea0c);else{if(_0x59e411['isRemoved']&&_0x22ea0c['isAdded']){const {commonTape:_0xfe7fa5,iEnd:_0x300294,jEnd:_0x130c3c}=this['_threeWayMerge'](_0x10a324,_0x270b7e,_0x5eda9e,_0x1912b4);_0x322964=_0x322964['concat'](_0xfe7fa5),_0x270b7e=_0x300294,_0x1912b4=_0x130c3c;}else _0x59e411['isRemoved']?(_0x1912b4++,_0x322964['push'](_0x59e411)):(_0x270b7e++,_0x322964['push'](_0x22ea0c));}}return _0x322964;}['_markSuggestions'](_0x27a8a5,_0x2990be){const _0x30ff62=[];for(let _0x4abe2b=0x0;_0x4abe2b<_0x27a8a5['length'];_0x4abe2b++){for(let _0x45e1fe=0x0;_0x45e1fe<_0x27a8a5[_0x4abe2b]['markersStart']['length'];_0x45e1fe++){const _0x440afe=_0x27a8a5[_0x4abe2b]['markersStart'][_0x45e1fe];if(!_0x2990be['has'](_0x440afe))continue;const {group:_0x5f0ea5,type:_0x192feb,authorId:_0x12dbd5}=_0x1d8062(_0x440afe);'revision-suggestion'!=_0x5f0ea5||'insertion'!=_0x192feb&&'deletion'!=_0x192feb||(_0x30ff62['unshift']({'type':_0x192feb,'name':_0x440afe,'userId':_0x12dbd5}),_0x27a8a5[_0x4abe2b]['markersStart']['splice'](_0x45e1fe,0x1),_0x45e1fe--);}_0x905d61(_0x27a8a5[_0x4abe2b]);for(let _0x39634f=0x0;_0x39634f<_0x27a8a5[_0x4abe2b]['markersEnd']['length'];_0x39634f++){const _0x16ec31=_0x27a8a5[_0x4abe2b]['markersEnd'][_0x39634f];if(!_0x2990be['has'](_0x16ec31))continue;const {group:_0x199ec0,type:_0x3cce53}=_0x1d8062(_0x16ec31);if('revision-suggestion'!=_0x199ec0||'insertion'!=_0x3cce53&&'deletion'!=_0x3cce53)continue;_0x27a8a5[_0x4abe2b]['markersEnd']['splice'](_0x39634f,0x1),_0x39634f--;const _0x1ad091=_0x30ff62['findIndex'](_0x430cc6=>_0x430cc6['name']==_0x16ec31);_0x1ad091>-0x1&&_0x30ff62['splice'](_0x1ad091,0x1);}}function _0x1d8062(_0x2554f8){const _0x5ce60b=_0x2554f8['split'](':');return{'group':_0x5ce60b[0x0],'type':_0x5ce60b[0x1],'subType':_0x5ce60b['length']>=0x5?_0x5ce60b[0x2]:null,'id':_0x5ce60b['length']<0x5?_0x5ce60b[0x2]:_0x5ce60b[0x3],'authorId':_0x5ce60b['length']<0x5?_0x5ce60b[0x3]:_0x5ce60b[0x4],'markerCount':0x6==_0x5ce60b['length']?_0x5ce60b[0x5]:null};}function _0x905d61(_0x22b960){for(let _0x57e1a2=0x0;_0x57e1a2<_0x30ff62['length'];_0x57e1a2++){if(_0x22b960['isAdded']&&'insertion'==_0x30ff62[_0x57e1a2]['type'])return _0x22b960['isAddSuggestion']=_0x30ff62[_0x57e1a2],void delete _0x22b960['isAdded'];if(!_0x22b960['isAdded']&&!_0x22b960['isRemoved']&&'deletion'==_0x30ff62[_0x57e1a2]['type'])return void(_0x22b960['isRemoveSuggestion']=_0x30ff62[_0x57e1a2]);}}}['_setDistance'](_0x576079,_0x117543){let _0x1bbe50=0x0,_0x1bfe41=!0x1;const _0x124826=new Map();for(const _0x4bb4a8 of _0x576079)_0x4bb4a8[_0x117543]?_0x1bfe41&&(_0x1bbe50++,_0x1bfe41=!0x1):(_0x1bbe50++,_0x1bfe41=!0x0),_0x124826['set'](_0x4bb4a8['id'],_0x1bbe50);for(let _0x55a945=0x0;_0x55a945<_0x576079['length'];_0x55a945++){if('isRemoved'==_0x117543&&_0x576079[_0x55a945]['isAdded']||'isAdded'==_0x117543&&_0x576079[_0x55a945]['isRemoved'])continue;if('text'==_0x576079[_0x55a945]['type']){_0x576079[_0x55a945]['distance']=0x0;continue;}const _0x1ce2c8=_0x124826['get'](_0x576079[_0x55a945]['pairId']),_0x802314=_0x124826['get'](_0x576079[_0x55a945]['id']);_0x576079[_0x55a945]['distance']=_0x1ce2c8-_0x802314;}}['_getRevisionsRange'](_0x257c15,_0x1d32c3,_0x1339a5=!0x1){const _0x5d51b9=[];let _0xa57ffd=this['repository']['getIndex'](_0x257c15),_0x4f11ef=this['repository']['getIndex'](_0x1d32c3);for(-0x1==_0x4f11ef&&(_0x4f11ef=this['repository']['_revisions']['length'],_0x1339a5=!0x1);_0xa57ffd<_0x4f11ef;)_0x5d51b9['push'](this['repository']['getRevision'](_0xa57ffd)),_0xa57ffd++;return _0x1339a5&&_0x5d51b9['push'](this['repository']['getRevision'](_0xa57ffd)),_0x5d51b9;}['_threeWayMerge'](_0x17ee53,_0x4e8e10,_0x40aa93,_0x1ca163){const _0x70525f=this['editor']['model']['schema'];let _0x344771=_0x4e8e10;for(;_0x17ee53[_0x344771]&&_0x17ee53[_0x344771]['isAdded'];)_0x344771++;let _0x1f567a=_0x1ca163;for(;_0x40aa93[_0x1f567a]&&_0x40aa93[_0x1f567a]['isRemoved'];)_0x1f567a++;_0x4f7180(_0x17ee53,_0x4e8e10,_0x344771),_0x4f7180(_0x40aa93,_0x1ca163,_0x1f567a);const _0x95f49c=_0x40aa93['slice'](_0x1ca163,_0x1f567a)['concat'](_0x17ee53['slice'](_0x4e8e10,_0x344771));return _0x95f49c['sort']((_0x54ebf5,_0x46c610)=>_0x54ebf5['side']!=_0x46c610['side']?_0x54ebf5['side']-_0x46c610['side']:_0x54ebf5['level']!=_0x46c610['level']?_0x54ebf5['level']-_0x46c610['level']:_0x54ebf5['distance']!=_0x46c610['distance']?_0x46c610['distance']-_0x54ebf5['distance']:!!_0x54ebf5['isAdded']!=!!_0x46c610['isAdded']?-0x1==_0x54ebf5['side']||0x0==_0x54ebf5['side']?_0x54ebf5['isAdded']?-0x1:0x1:_0x54ebf5['isAdded']?0x1:-0x1:_0x54ebf5['index']-_0x46c610['index']),{'commonTape':_0x95f49c,'iEnd':_0x344771,'jEnd':_0x1f567a};function _0x4f7180(_0x19854c,_0x246ea8,_0x221740){let _0x5c2108=-0x1,_0x7333f3=Number['POSITIVE_INFINITY'],_0x3aeaca=!0x0;for(let _0x21844b=_0x246ea8;_0x21844b<_0x221740;_0x21844b++)if(_0x70525f['isInline'](_0x19854c[_0x21844b]['item'])||(_0x3aeaca=!0x1),_0x19854c[_0x21844b]['item']['startIndex']<_0x246ea8&&(_0x5c2108=_0x21844b),_0x19854c[_0x21844b]['item']['endIndex']>=_0x221740){_0x7333f3=_0x21844b;break;}_0x3aeaca&&(_0x5c2108=_0x221740-0x1);for(let _0x300c16=_0x246ea8;_0x300c16<_0x221740;_0x300c16++)_0x19854c[_0x300c16]['side']=_0x300c16<=_0x5c2108?-0x1:_0x300c16<_0x7333f3?0x0:0x1,_0x19854c[_0x300c16]['index']=_0x300c16;let _0x57ffc8=0x0;for(let _0x57c141=_0x246ea8;_0x57c141<=_0x5c2108;_0x57c141++)0x0==_0x19854c[_0x57c141]['distance']?_0x19854c[_0x57c141]['level']=_0x57ffc8:(_0x57ffc8++,_0x19854c[_0x57c141]['level']=_0x57ffc8,_0x57ffc8++);for(let _0x4d910f=_0x246ea8;_0x4d910f<_0x221740;_0x4d910f++)0x0==_0x19854c[_0x4d910f]['side']&&(_0x19854c[_0x4d910f]['level']=_0x57ffc8);_0x57ffc8=0x0;for(let _0x2743ba=_0x221740-0x1;_0x2743ba>=_0x7333f3;_0x2743ba--)0x0==_0x19854c[_0x2743ba]['distance']?_0x19854c[_0x2743ba]['level']=_0x57ffc8:(_0x57ffc8--,_0x19854c[_0x2743ba]['level']=_0x57ffc8,_0x57ffc8--);}}['_fixObsoleteTags'](_0x52ad21){const _0x54efcb=new Map(),_0x322d54=this['editor']['model']['schema'];for(let _0x4ff0d5=0x1;_0x4ff0d5<_0x52ad21['length'];_0x4ff0d5++){let _0x146fff,_0x1e122d,_0x1872af;const _0x2f11b3=_0x52ad21[_0x4ff0d5],_0x477fa6=_0x52ad21[_0x4ff0d5-0x1];if('text'==_0x2f11b3['type'])continue;if(_0x2f11b3['type']!=_0x477fa6['type'])continue;if(!_0x322d54['isBlock'](_0x477fa6['item'])||_0x322d54['isLimit'](_0x477fa6['item']))continue;if(!_0x322d54['isBlock'](_0x2f11b3['item'])||_0x322d54['isLimit'](_0x2f11b3['item']))continue;if((_0x52ad21[_0x4ff0d5]['isAdded']||_0x52ad21[_0x4ff0d5]['isAddSuggestion'])&&_0x52ad21[_0x4ff0d5-0x1]['isRemoved'])_0x146fff=_0x52ad21[_0x4ff0d5],_0x1e122d=_0x52ad21[_0x4ff0d5-0x1],_0x1872af=_0x4ff0d5-0x1;else{if(!_0x52ad21[_0x4ff0d5]['isRemoved']||!_0x52ad21[_0x4ff0d5-0x1]['isAdded']&&!_0x52ad21[_0x4ff0d5-0x1]['isAddSuggestion'])continue;_0x146fff=_0x52ad21[_0x4ff0d5-0x1],_0x1e122d=_0x52ad21[_0x4ff0d5],_0x1872af=_0x4ff0d5;}const _0x4ae3dd=_0x146fff['level']==_0x1e122d['level'],_0x3ce002=Math['abs'](_0x146fff['level'])<Math['abs'](_0x1e122d['level'])&&0x0==_0x1e122d['distance'];(_0x4ae3dd||_0x3ce002)&&(_0x54efcb['set'](_0x1e122d['id'],_0x146fff['id']),_0x52ad21['splice'](_0x1872af,0x1),_0x4ff0d5--,_0x146fff['isAdded']=!0x1);}for(let _0x3a13f9=0x0;_0x3a13f9<_0x52ad21['length'];_0x3a13f9++)_0x54efcb['has'](_0x52ad21[_0x3a13f9]['pairId'])&&(_0x52ad21[_0x3a13f9]['pairId']=_0x54efcb['get'](_0x52ad21[_0x3a13f9]['pairId']));}['_removeMissingPairs'](_0x90e54c){const _0xa5ee03=new Set(_0x90e54c['map'](_0x57e4ae=>_0x57e4ae['id']));for(let _0x1810d8=0x0;_0x1810d8<_0x90e54c['length'];_0x1810d8++)_0xa5ee03['has'](_0x90e54c[_0x1810d8]['pairId'])||0x0==_0x90e54c[_0x1810d8]['distance']||(_0x90e54c[_0x1810d8]['isIncorrect']=!0x0);return _0x90e54c['filter'](_0x5c0a38=>!_0x5c0a38['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1de930){const _0x1218f8=new Set();for(let _0x1dcdad=0x0;_0x1dcdad<_0x1de930['length'];_0x1dcdad++){if(_0x1218f8['has'](_0x1de930[_0x1dcdad]['id'])&&_0x1de930[_0x1dcdad]['isRemoved']&&(_0x1de930[_0x1dcdad]['isIncorrect']=!0x0),_0x1de930[_0x1dcdad]['isIncorrect'])continue;if(0x0==_0x1de930[_0x1dcdad]['distance'])continue;if('elementStart'!=_0x1de930[_0x1dcdad]['type'])continue;if(null==_0x1de930[_0x1dcdad]['pairId'])continue;let _0x4856a5=_0x1dcdad+0x1,_0x4a0203=0x0;for(;_0x1de930[_0x4856a5]['id']!=_0x1de930[_0x1dcdad]['pairId'];)'elementStart'==_0x1de930[_0x4856a5]['type']?_0x4a0203++:'elementEnd'==_0x1de930[_0x4856a5]['type']&&_0x4a0203--,_0x4856a5++;if(0x0!=_0x4a0203){if(_0x1de930[_0x1dcdad]['isRemoved'])_0x1de930[_0x1dcdad]['isIncorrect']=!0x0;else{for(;_0x4856a5!=_0x1dcdad;)_0x1de930[_0x4856a5]['isRemoved']&&0x0!=_0x1de930[_0x4856a5]['distance']&&(_0x1de930[_0x4856a5]['isIncorrect']=!0x0,_0x1218f8['add'](_0x1de930[_0x4856a5]['pairId'])),_0x4856a5--;}}}return _0x1de930['filter'](_0x37a730=>!_0x37a730['isIncorrect']);}['_removeUnsupportedChanges'](_0x107490){const _0x16cc80=this['editor']['model']['schema'];for(let _0x257992=0x0;_0x257992<_0x107490['length'];_0x257992++){if(!(_0x107490[_0x257992]['isAdded']||_0x107490[_0x257992]['isAddSuggestion']||_0x107490[_0x257992]['isRemoved']||_0x107490[_0x257992]['isRemoveSuggestion']))continue;if(0x0==_0x107490[_0x257992]['distance'])continue;const _0x294ebf=_0x107490[_0x257992]['item'];_0x16cc80['isBlock'](_0x294ebf)||_0x16cc80['isLimit'](_0x294ebf)||(_0x107490[_0x257992]['isAdded']&&delete _0x107490[_0x257992]['isAdded'],_0x107490[_0x257992]['isAddSuggestion']&&delete _0x107490[_0x257992]['isAddSuggestion'],_0x107490[_0x257992]['isRemoveSuggestion']&&delete _0x107490[_0x257992]['isRemoveSuggestion'],_0x107490[_0x257992]['isRemoved']&&(_0x107490[_0x257992]['isIncorrect']=!0x0));}return _0x107490['filter'](_0x33b259=>!_0x33b259['isIncorrect']);}['_makeModelFromTape'](_0x501b13,_0xe0a6f4,_0x441846){const _0x2509d2=new mt(),_0x54112c=[],_0x3cdfc3=new Map(),_0x67433e=this['editor']['model'],_0x427e77=_0x67433e['schema'],_0x22238b=[_0x2509d2],_0x2bc102={},_0x28f080={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24345d=null;const _0x2f00c0=[0x0];for(let _0x11048e=0x0;_0x11048e<_0x501b13['length'];_0x11048e++)if('elementStart'===_0x501b13[_0x11048e]['type']){_0x501b13[_0x11048e]['previousPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0);const _0x686158=new ft(_0x501b13[_0x11048e]['item']['name'],_0x501b13[_0x11048e]['item']['getAttributes']());_0x22238b[0x0]['_appendChild'](_0x686158),_0x2f00c0['push'](0x0),_0x22238b['unshift'](_0x686158),_0x501b13[_0x11048e]['nextPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0);}else'elementEnd'===_0x501b13[_0x11048e]['type']?(_0x22238b['shift'](),_0x501b13[_0x11048e]['previousPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0),_0x2f00c0['pop'](),_0x2f00c0[_0x2f00c0['length']-0x1]++,_0x501b13[_0x11048e]['nextPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0)):(_0x501b13[_0x11048e]['previousPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0),_0x24345d?_0x24345d['_data']+=_0x501b13[_0x11048e]['item']['data']:_0x24345d=new wt(_0x501b13[_0x11048e]['item']['data'],_0x501b13[_0x11048e]['item']['getAttributes']()),_0x501b13[_0x11048e+0x1]&&'text'===_0x501b13[_0x11048e+0x1]['type']&&_0x33ccbf(_0x24345d,_0x501b13[_0x11048e+0x1]['item'])||(_0x22238b[0x0]['_appendChild'](_0x24345d),_0x24345d=null),_0x2f00c0[_0x2f00c0['length']-0x1]+=_0x501b13[_0x11048e]['item']['offsetSize'],_0x501b13[_0x11048e]['nextPosition']=_0x67433e['createPositionFromPath'](_0x2509d2,_0x2f00c0));for(let _0x51796d=0x0;_0x51796d<_0x501b13['length'];_0x51796d++){const _0x2c1296=_0x501b13[_0x51796d]['previousPosition'],_0x19566c=_0x501b13[_0x51796d]['nextPosition'];for(const _0x38b05b of _0x501b13[_0x51796d]['markersStart'])_0x3cdfc3['set'](_0x38b05b,{'start':_0x2c1296,'end':null});_0x24c477('isRemoveSuggestion',_0x51796d,_0x2c1296,_0x19566c),_0x24c477('isAddSuggestion',_0x51796d,_0x2c1296,_0x19566c),_0x24c477('isRemoved',_0x51796d,_0x2c1296,_0x19566c),_0x24c477('isAdded',_0x51796d,_0x2c1296,_0x19566c);for(const _0x54ee5b of _0x501b13[_0x51796d]['markersEnd']){_0x3cdfc3['get'](_0x54ee5b)['end']=_0x19566c;}}for(const [_0x479300,_0x37cf39]of _0x3cdfc3){const _0x3cc6ea=this['editor']['model']['createRange'](_0x37cf39['start'],_0x37cf39['end']);_0x2509d2['markers']['set'](_0x479300,_0x3cc6ea);}return _0x54112c['sort']((_0x4ddd6b,_0xfc42bf)=>{const _0x2d8309=_0x2509d2['markers']['get']('revision:'+_0x4ddd6b['id']),_0x58af1e=_0x2509d2['markers']['get']('revision:'+_0xfc42bf['id']);return _0x2d8309['start']['isBefore'](_0x58af1e['start'])?-0x1:_0x2d8309['start']['isAfter'](_0x58af1e['start'])?0x1:_0x2d8309['end']['isBefore'](_0x58af1e['end'])?-0x1:_0x2d8309['end']['isAfter'](_0x58af1e['end'])?0x1:'add'===_0x4ddd6b['type']?-0x1:0x1;}),{'root':_0x2509d2,'changes':_0x54112c};function _0x24c477(_0x12937a,_0x2de933,_0x15137b,_0x23834c){const _0x396cd8=!!_0x501b13[_0x2de933][_0x12937a],_0x167184=_0x396cd8?_0x501b13[_0x2de933][_0x12937a]['userId']:null,_0x21759a=_0x2de933===_0x501b13['length']-0x1,_0x123dee=_0x28f080[_0x12937a][0x0],_0x598d05=_0x427e77['isObject'](_0x501b13[_0x2de933]['item']);!_0x2bc102[_0x12937a]&&_0x396cd8?_0x2bc102[_0x12937a]={'start':_0x15137b,'tapeItem':_0x501b13[_0x2de933],'userId':_0x167184,'type':_0x12937a}:_0x2bc102[_0x12937a]&&!_0x396cd8?(_0x2bc102[_0x12937a]['end']=_0x15137b,_0x319185(_0x2bc102[_0x12937a]),_0x2bc102[_0x12937a]=null):_0x2bc102[_0x12937a]&&_0x396cd8&&_0x2bc102[_0x12937a]['userId']!==_0x167184&&(_0x2bc102[_0x12937a]['end']=_0x15137b,_0x123dee&&_0x123dee['userId']===_0x2bc102[_0x12937a]['userId']||_0x319185(_0x2bc102[_0x12937a]),_0x2bc102[_0x12937a]={'start':_0x15137b,'tapeItem':_0x501b13[_0x2de933],'userId':_0x167184,'type':_0x12937a}),_0x2bc102[_0x12937a]&&_0x598d05&&('elementStart'!==_0x501b13[_0x2de933]['type']||_0x123dee&&_0x123dee['userId']===_0x167184||_0x28f080[_0x12937a]['unshift']({'userId':_0x167184,'object':_0x501b13[_0x2de933]['item'],'change':_0x2bc102[_0x12937a]}),'elementEnd'===_0x501b13[_0x2de933]['type']&&_0x123dee&&_0x123dee['object']===_0x501b13[_0x2de933]['item']&&(_0x28f080[_0x12937a]['shift'](),_0x2bc102[_0x12937a]=_0x123dee['change'])),_0x2bc102[_0x12937a]&&_0x21759a&&(_0x2bc102[_0x12937a]['end']=_0x23834c,_0x319185(_0x2bc102[_0x12937a]),_0x2bc102[_0x12937a]=null);}function _0x319185({start:_0x1ca794,end:_0x42f4f4,tapeItem:_0x22726c,userId:_0x166da7,type:_0x537c57}){const _0x43b228=_0x22726c['item'],_0x5196f=_0x67433e['schema']['isBlock'](_0x43b228)&&!_0x67433e['schema']['isLimit'](_0x43b228),_0x770d6c=_0x1ca794['nodeAfter']==_0x42f4f4['parent']&&_0x42f4f4['isAtStart'];if(_0x5196f&&_0x770d6c)return;const _0x2fc55e=_0x67433e['createRange'](_0x1ca794,_0x42f4f4),_0x114343=_0xe0a6f4['get'](_0x166da7),_0x4ec205=new r({'author':_0x114343,'type':'isAdded'==_0x537c57||'isAddSuggestion'==_0x537c57?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x537c57||'isRemoveSuggestion'==_0x537c57},'createdAt':new Date(),'rootName':_0x441846});_0x54112c['push'](_0x4ec205),_0x2509d2['markers']['set']('revision:'+_0x4ec205['id'],_0x2fc55e);}function _0x33ccbf(_0x11df9f,_0x267d93){const _0x2bdc22=_0x11df9f['getAttributes'](),_0x3607fa=_0x267d93['getAttributes']();for(const _0x1f06d8 of _0x2bdc22){if(_0x1f06d8[0x1]!==_0x267d93['getAttribute'](_0x1f06d8[0x0]))return!0x1;_0x3607fa['next']();}return _0x3607fa['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x471c23=>{const _0x396935=_0x471c23['markerName']['split'](':')[0x1],_0x2e8ed7=this['_getChangeFromId'](_0x396935);if(!_0x2e8ed7)return null;const _0x20abdc='add'==_0x2e8ed7['type']?'insertion':'deletion',_0x534e46=['ck-suggestion-marker','ck-suggestion-marker-'+_0x20abdc];return _0x2e8ed7['data']['isSuggestion']&&_0x534e46['push']('ck-suggestion-marker-'+_0x20abdc+'-new'),this['activeChange']==_0x2e8ed7&&_0x534e46['push']('ck-suggestion-marker--active'),{'classes':_0x534e46,'attributes':{'data-change-id':_0x396935}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x201a23=>{_0x201a23['on']('element:pre',(_0x2094b3,_0x18838e,_0x36166e)=>{const _0xbb41ae=_0x18838e['viewItem']['getChild'](0x0);if(!_0xbb41ae||!_0xbb41ae['is']('element','code'))return;if(!_0x36166e['consumable']['consume'](_0xbb41ae,{'attributes':['vid_start','vid_end']}))return;const _0x17850e=_0x18838e['modelRange']['start']['nodeAfter'];_0x36166e['writer']['setAttribute']('vid_start',_0xbb41ae['getAttribute']('vid_start'),_0x17850e),_0x36166e['writer']['setAttribute']('vid_end',_0xbb41ae['getAttribute']('vid_end'),_0x17850e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5f4b73=>{_0x5f4b73['on']('element',(_0xbfac30,_0x3e34b3,_0x385d9a)=>{if(!_0x385d9a['consumable']['consume'](_0x3e34b3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e34b3['modelRange']['isCollapsed'])return;const _0x24197f=_0x3e34b3['modelRange']['start']['nodeAfter'];_0x24197f['hasAttribute']('vid_start')||_0x24197f['hasAttribute']('vid')||(_0x385d9a['writer']['setAttribute']('vid_start',_0x3e34b3['viewItem']['getAttribute']('vid_start'),_0x24197f),_0x385d9a['writer']['setAttribute']('vid_end',_0x3e34b3['viewItem']['getAttribute']('vid_end'),_0x24197f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1a560c=>_0x1a560c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4230e4,[,_0x4e122a])=>{['vid_start','vid_end','vid']['includes'](_0x4e122a)&&(_0x4230e4['return']=!0x0,_0x4230e4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1d951b=>{_0x1d951b['on']('attribute:vid',(_0x161b71,_0x452695,_0x56a884)=>{if('\x20'!=_0x452695['item']['data']||_0x452695['item']['parent']['maxOffset']>0x1)return;if(!_0x56a884['consumable']['consume'](_0x452695['item'],_0x161b71['name']))return;const _0x499dc4=_0x56a884['writer'],_0x4ada06=_0x56a884['mapper']['toViewRange'](_0x452695['range']);_0x499dc4['wrap'](_0x4ada06,_0x499dc4['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x21a308){const _0x564f6c=_0x21a308['plugins']['get']('RevisionViewer');return(_0xa203ec,_0x496c21,_0x397707)=>{const _0x1b10d6=_0x496c21['markerName']['split'](':')[0x1],_0x3c21b6=_0x564f6c['_getChangeFromId'](_0x1b10d6);if(!_0x3c21b6)return null;const _0x11c48d='add'==_0x3c21b6['type']?'split':'merge';if(!_0x397707['consumable']['test'](_0x496c21['markerRange'],_0xa203ec['name']))return;const _0x4b9247=_0x496c21['markerRange']['getWalker'](),_0x15bbca=_0x496c21['markerRange']['start'],_0x2a8d29=_0x21a308['model']['schema'];let _0x4cf777=null,_0x2c877e=null,_0x1cd4cc=!0x1,_0x2c28dc=!0x1;for(const _0x21a9d1 of _0x4b9247){const _0x48f21a=_0x21a9d1['item'];_0x1cd4cc=_0x1cd4cc||_0x2a8d29['isContent'](_0x48f21a);const _0x4b31cd=_0x397707['mapper']['toViewElement'](_0x48f21a);if(_0x4b31cd&&_0x4b31cd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21a9d1['type']&&(_0x2a8d29['isBlock'](_0x48f21a)&&!_0x2a8d29['isLimit'](_0x48f21a)&&(_0x48f21a['nextSibling']||_0x15bbca['isAtEnd']?_0x4cf777&&_0x4cf777['parent']==_0x48f21a||(_0x4cf777=_0x48f21a,_0x145ee5(_0x21a9d1['previousPosition']),_0x2c28dc=!0x0):_0x2c877e=_0x2c877e||_0x21a9d1['previousPosition']));}function _0x145ee5(_0x5eb4b5){const _0x1fb2ba=_0x397707['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11c48d}),_0x4ef7a2=_0x397707['mapper']['toViewPosition'](_0x5eb4b5);_0x3c21b6['data']['isSuggestion']&&_0x397707['writer']['addClass']('ck-suggestion-marker-'+_0x11c48d+'-new',_0x1fb2ba),_0x564f6c['activeChange']==_0x3c21b6&&_0x397707['writer']['addClass']('ck-suggestion-marker--active',_0x1fb2ba),_0x397707['writer']['insert'](_0x4ef7a2,_0x1fb2ba),_0x397707['mapper']['bindElementToMarker'](_0x1fb2ba,_0x496c21['markerName']);}_0x1cd4cc||_0x2c28dc||!_0x2c877e||_0x145ee5(_0x2c877e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5b7dbf,_0x5b22a2,_0xd093d6)=>{const _0x5629c0=_0xd093d6['mapper']['markerNameToElements'](_0x5b22a2['markerName']);if(_0x5629c0){for(const _0x1bb422 of _0x5629c0)(_0x1bb422['hasClass']('ck-suggestion-marker-split')||_0x1bb422['hasClass']('ck-suggestion-marker-merge'))&&(_0xd093d6['mapper']['unbindElementFromMarkerName'](_0x1bb422,_0x5b22a2['markerName']),_0xd093d6['writer']['remove'](_0x1bb422));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x6fe920,_0xd04bc3,_0x4662da)=>{const _0x3015db=_0xd04bc3['markerName']['split'](':')[0x1],_0x372d5d=this['_getChangeFromId'](_0x3015db);if(!_0x372d5d)return null;const _0x1fef7a='add'==_0x372d5d['type']?'split':'merge';if(_0x4662da['consumable']['test'](_0xd04bc3['markerRange'],_0x6fe920['name']))for(const _0x1d4d20 of _0xd04bc3['markerRange']['getItems']()){if(!_0x1d4d20['is']('element','softBreak'))continue;const _0x76860b=_0x4662da['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fef7a}),_0x5718ac=_0x4662da['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1d4d20));_0x372d5d['data']['isSuggestion']&&_0x4662da['writer']['addClass']('ck-suggestion-marker-'+_0x1fef7a+'-new',_0x76860b),this['activeChange']==_0x372d5d&&_0x4662da['writer']['addClass']('ck-suggestion-marker--active',_0x76860b),_0x4662da['writer']['insert'](_0x5718ac,_0x76860b),_0x4662da['mapper']['bindElementToMarker'](_0x76860b,_0xd04bc3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x390ca3=>{for(const _0x95fe6b of this['editor']['model']['document']['getRootNames']()){const _0x2d8817=this['editor']['model']['document']['getRoot'](_0x95fe6b),_0x138933=this['editor']['editing']['view']['document']['getRoot'](_0x95fe6b);if(_0x138933){const _0x332190=_0x2d8817['getAttribute']('revisionHistoryAttachChange');if(_0x390ca3['removeAttribute']('data-change-id',_0x138933),_0x390ca3['removeClass']('ck-revision-history-root-add',_0x138933),_0x390ca3['removeClass']('ck-revision-history-root-remove',_0x138933),_0x390ca3['removeClass']('ck-revision-history-root--active',_0x138933),_0x332190){const _0x46ca3c=this['_getChangeFromId'](_0x332190);if(!_0x46ca3c)return null;_0x390ca3['setAttribute']('data-change-id',_0x332190,_0x138933),_0x390ca3['addClass']('ck-revision-history-root-'+_0x46ca3c['type'],_0x138933),this['activeChange']==_0x46ca3c&&_0x390ca3['addClass']('ck-revision-history-root--active',_0x138933);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x555764=>'revision-comment:'+_0x555764,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x448fa4=>'revision-suggestion:'+_0x448fa4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1ee9e2=>({'name':'suggestion:'+_0x1ee9e2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x11bf36=>{const _0x5a89be=_0x11bf36['markerName']['split'](':')[0x1];return'insertion'!=_0x5a89be&&'deletion'!=_0x5a89be?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5a89be]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x456671,_0x558cce,_0x2158b1)=>{const _0x355520=_0x2158b1['mapper']['markerNameToElements'](_0x558cce['markerName']);if(_0x355520){for(const _0x442017 of _0x355520)_0x442017['is']('uiElement')&&(_0x2158b1['mapper']['unbindElementFromMarkerName'](_0x442017,_0x558cce['markerName']),_0x2158b1['writer']['remove'](_0x442017));}},{'priority':'high'});}['_getChangeFromId'](_0x5f45f7){return this['_changeIdToChange']['get'](_0x5f45f7);}['_getViewForChange'](_0xb704ac){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xb704ac),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x37917a,_0x875523,_0x5d822a,_0x1f1161)=>{_0x1f1161&&this['_balloon']['remove'](_0x1f1161),_0x5d822a&&(this['_balloon']['add']({'view':_0x5d822a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4a702e=this['editor']['editing'],_0xb9ee36=this['_getChangeFromId'](_0x5d822a['changeId']);let _0x6cdb30;if(_0xb9ee36['data']['isOnRoot']){const _0x2a4ee1=_0x4a702e['view']['getDomRoot'](_0xb9ee36['rootName']);_0x6cdb30=Array['from'](_0x2a4ee1['getClientRects']());}else{const _0x2f40aa=this['editor']['model']['markers']['get']('revision:'+_0x5d822a['changeId']);_0x6cdb30=Array['from'](_0x4a702e['mapper']['markerNameToElements'](_0x2f40aa['name']))['map'](_0x5dabd8=>_0x4a702e['view']['domConverter']['mapViewToDom'](_0x5dabd8))['map'](_0xaef0a4=>Array['from'](_0xaef0a4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x6cdb30[0x0];return _0x6cdb30['find'](_0x5acf52=>_0x5acf52['top']-0x3<=this['_activeViewTarget']['y']&&_0x5acf52['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5acf52['left']-0x3<=this['_activeViewTarget']['x']&&_0x5acf52['right']+0x3>=this['_activeViewTarget']['x'])||_0x6cdb30[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2fee32,_0x2b61ee,_0x45eda4,_0x351375)=>{this['activeView']=_0x45eda4?this['_getViewForChange'](_0x45eda4):null,this['editor']['model']['change'](()=>{const _0x2c5483=this['editor']['editing'];_0x351375&&(_0x351375['data']['isOnRoot']?_0x2c5483['view']['change'](_0x455f6d=>{_0x455f6d['removeClass']('ck-revision-history-root--active',_0x2c5483['view']['document']['getRoot'](_0x351375['rootName']));}):_0x2c5483['reconvertMarker']('revision:'+_0x351375['id'])),_0x45eda4&&(_0x45eda4['data']['isOnRoot']?_0x2c5483['view']['change'](_0x132444=>{_0x132444['addClass']('ck-revision-history-root--active',_0x2c5483['view']['document']['getRoot'](_0x45eda4['rootName']));}):_0x2c5483['reconvertMarker']('revision:'+_0x45eda4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x321ee4,_0x2f6bbf)=>{if(this['activeChange'])return;const _0x519243=this['_findChangeIdFromDomTarget'](_0x2f6bbf['target']),_0x465ad1=this['_changeIdToChange']['get'](_0x519243);_0x465ad1?(this['_activeViewTarget']={'x':_0x2f6bbf['domEvent']['x'],'y':_0x2f6bbf['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x465ad1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5193c1,_0x3fdd50)=>{const _0xc915f7=this['_findChangeIdFromDomTarget'](_0x3fdd50['target']),_0x165903=this['_changeIdToChange']['get'](_0xc915f7);_0x165903?(this['_activeViewTarget']={'x':_0x3fdd50['domEvent']['x'],'y':_0x3fdd50['domEvent']['y']},_0x165903===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x165903):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x23b91c){do{const _0x366a73=_0x23b91c['getAttribute']('data-change-id');if(_0x366a73)return _0x366a73;_0x23b91c=_0x23b91c['parent'];}while(_0x23b91c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1e7332=>{for(const _0xa9e47d of this['editor']['model']['markers'])_0x1e7332['removeMarker'](_0xa9e47d);});}}function Z(_0x20aa8a,_0x7e1d33){return(_0x51c81e,_0x265ba0,_0x377477)=>{if(!_0x377477['consumable']['test'](_0x265ba0['markerRange'],_0x51c81e['name']))return;const _0x4754b1=_0x265ba0['markerRange']['getWalker'](),_0xea112d=_0x265ba0['markerRange']['start'],_0x41377e=_0x20aa8a['model']['schema'];let _0x3dd317=null,_0x1f902d=null,_0x282d9e=!0x1,_0x532854=!0x1;for(const _0x51b1cd of _0x4754b1){const _0x47fab7=_0x51b1cd['item'];_0x282d9e=_0x282d9e||_0x41377e['isContent'](_0x47fab7);const _0x1054f5=_0x377477['mapper']['toViewElement'](_0x47fab7);if(_0x1054f5&&_0x1054f5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x51b1cd['type']&&(_0x41377e['isBlock'](_0x47fab7)&&!_0x41377e['isLimit'](_0x47fab7)&&(_0x47fab7['nextSibling']||_0xea112d['isAtEnd']?_0x3dd317&&_0x3dd317['parent']==_0x47fab7||(_0x3dd317=_0x47fab7,_0x2e0122(_0x51b1cd['previousPosition']),_0x532854=!0x0):_0x1f902d=_0x1f902d||_0x51b1cd['previousPosition']));}function _0x2e0122(_0x1ffcaa){const _0x3afa66=_0x377477['mapper']['toViewPosition'](_0x1ffcaa),_0x1b94dc=_0x377477['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x7e1d33});_0x377477['writer']['insert'](_0x3afa66,_0x1b94dc),_0x377477['mapper']['bindElementToMarker'](_0x1b94dc,_0x265ba0['markerName']);}_0x282d9e||_0x532854||!_0x1f902d||_0x2e0122(_0x1f902d);};}class _t extends _0x56d2a8{constructor(_0x47110c){super(_0x47110c);const _0xb63246=_0x47110c['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xb63246,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xb63246,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x541ad0=this['editor'],_0x3cf3b3=_0x541ad0['plugins']['get'](d),_0x12b3b4=_0x3cf3b3['isReady']?_0x3cf3b3['diff']['newRevisionId']:null;_0x541ad0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x12b3b4);}['refresh'](){const {isReady:_0x4d59db,isEnabled:_0x1a6e08,repository:_0x36d455,diff:_0x54348c}=this['editor']['plugins']['get'](d),_0x5c0f05=_0x54348c&&_0x36d455['getLaterVisibleRevision'](_0x54348c['newRevisionId']);this['isEnabled']=_0x4d59db&&_0x1a6e08&&Boolean(_0x5c0f05);}}class yt extends _0x56d2a8{['_step'];constructor(_0x535745,{direction:_0x2ba5cc}){super(_0x535745);const _0x547013=_0x535745['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2ba5cc?0x1:-0x1,this['listenTo'](_0x547013,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x547013,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x547013,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x552220=this['editor'],_0x42fd8b=_0x552220['plugins']['get'](d),{isNavigationMode:_0x130c22,currentChangeNumber:_0x319359}=_0x42fd8b;let _0x3c8837;if(_0x42fd8b['activeChange']=_0x130c22?_0x42fd8b['diff']['changes']['get'](_0x319359+this['_step']):_0x42fd8b['diff']['changes']['first'],_0x42fd8b['activeChange']['data']['isOnRoot'])_0x3c8837=_0x552220['editing']['view']['getDomRoot'](_0x42fd8b['activeChange']['rootName']);else{const _0x4009a3=_0x552220['model']['markers']['get']('revision:'+_0x42fd8b['activeChange']['id']);_0x3c8837=_0x3ac489(_0x552220['editing'],_0x4009a3);}_0x182fa2({'target':_0x3c8837,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3996c4,currentChangeNumber:_0x243d13,numberOfChanges:_0x1e5846,isReady:_0x5204c4,isEnabled:_0x36c91b}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x36c91b&&_0x5204c4&&_0x1e5846)&&(!_0x3996c4||(0x1===this['_step']?_0x243d13<_0x1e5846-0x1:_0x243d13>0x0));}}class _i extends _0x3f0f05{constructor(_0x86132c){super(_0x86132c);const _0x394588=this['bindTemplate'],_0x1ab82e=new _0x13b3b7(_0x86132c),_0x136402=new _0x13b3b7(_0x86132c);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',(_0x1b749f,_0xa31168)=>_0x1b749f&&_0xa31168>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3a6e0a,_0x32ab4a,_0x5577d2,_0x54e6b6)=>{if(!_0x3a6e0a)return m(_0x86132c,'Loading...');if(!_0x5577d2)return m(_0x86132c,'No\x20changes');const _0x33c990=m(_0x86132c,'NUMBER_OF_CHANGES',_0x5577d2);return _0x54e6b6?m(_0x86132c,'X_OF_Y_CHANGES',[_0x32ab4a+0x1,_0x5577d2]):_0x33c990;}),_0x1ab82e['set']({'label':m(_0x86132c,'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'}),_0x136402['set']({'label':m(_0x86132c,'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'}),_0x1ab82e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x136402['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ab82e['on']('execute',()=>this['fire']('execute','backward')),_0x136402['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',_0x394588['if']('_isStatusLabelVisible','ck-hidden',_0x1791be=>!_0x1791be)]},'children':[{'text':_0x394588['to']('isNavigationMode',_0x41314b=>_0x41314b?m(_0x86132c,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x86132c,'Total')+':\x20')}]},{'text':_0x394588['to']('_statusText')}]},new _0x492e02(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ab82e,_0x136402]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x38c4e4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x42da06=this['editor']['editing']['view'];_0x42da06['change'](_0x4465e4=>{for(const _0x266c21 of _0x42da06['document']['roots'])_0x4465e4['addClass'](ce,_0x266c21);});}['hide'](){const _0x4cfb2a=this['editor']['editing']['view'];_0x4cfb2a['change'](_0x20799f=>{for(const _0x2203c6 of _0x4cfb2a['document']['roots'])_0x20799f['removeClass'](ce,_0x2203c6);});}}class g extends _0x38c4e4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x7615e3=this['editor'],_0x1016e0=_0x7615e3['plugins']['get'](d),_0x400541=_0x7615e3['plugins']['get'](le);_0x7615e3['ui']['componentFactory']['add']('exitToEditing',_0x21d007=>{const _0xf0c93b=new _0x13b3b7(_0x21d007);return _0xf0c93b['set']({'label':m(_0x21d007,'Back\x20to\x20editing'),'icon':_0x226c5d['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xf0c93b,'execute',()=>{_0x7615e3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xf0c93b;}),_0x7615e3['ui']['componentFactory']['add']('restoreRevision',_0x3d7817=>{const _0xcd2edf=new _0x13b3b7(_0x3d7817);return _0xcd2edf['set']({'label':m(_0x3d7817,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xcd2edf['bind']('isEnabled')['to'](_0x7615e3['commands']['get']('restoreRevision')),this['listenTo'](_0xcd2edf,'execute',()=>_0x7615e3['execute']('restoreRevision')),_0xcd2edf;}),_0x7615e3['ui']['componentFactory']['add']('changesNavigation',_0x67437e=>{const _0x4f5c4b=new _i(_0x67437e),_0x53bc1d=_0x7615e3['commands']['get']('showPreviousChange'),_0x15e105=_0x7615e3['commands']['get']('showNextChange');return _0x4f5c4b['bind']('isBackwardNavigationEnabled')['to'](_0x53bc1d,'isEnabled'),_0x4f5c4b['bind']('isForwardNavigationEnabled')['to'](_0x15e105,'isEnabled'),_0x4f5c4b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1016e0),this['listenTo'](_0x4f5c4b,'execute',(_0x3caeab,_0x533e3c)=>{_0x7615e3['execute']('forward'===_0x533e3c?'showNextChange':'showPreviousChange');}),_0x4f5c4b;}),_0x400541['show'](),_0x1016e0['on']('change:isReady',(_0x50effd,_0x1ce11a,_0x2228e2)=>{_0x2228e2?_0x400541['hide']():_0x400541['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x2bdb58,_0x2761b7){super(_0x2bdb58,_0x2761b7);const _0x4fc9d5=this['bindTemplate'];this['set']({'label':m(_0x2bdb58,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2bdb58,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4fc9d5['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 _0x476eac=this['fieldView']['element'];this['_tooltipString']=_0x476eac['scrollWidth']>_0x476eac['clientWidth']&&_0x476eac['value']||'';}}class ti extends _0x3f0f05{constructor(_0x21a6c4,_0x5d23c4,_0x29f12b){super(_0x21a6c4);const _0x2073c8=new _0x5787b7();_0x2073c8['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 _0x375331=['ck','ck-revision-history-sidebar__revision-author'];_0x29f12b&&_0x375331['push']('ck-revision-history-sidebar__revision-author_creator');const _0x457697=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x21a6c4,_0x29f12b?'Revision\x20creator':'Revision\x20author')},'children':[_0x2073c8,_0x5d23c4['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x375331},'children':_0x457697});}}function ni(_0x306b2d,_0x59aed1){const _0x4a6ac0=_0x306b2d['bindTemplate'],_0x36239a=_0x306b2d['locale'],_0x1f1572=_0x2a9d1c(_0x36239a);_0x1f1572['panelPosition']='sw';const _0x544f56=function(_0x485da1,_0x5e759d){const _0x364696=function(_0x52b801,_0x58d1eb){const _0x12fa27=_0x52b801['locale'],_0x4c304a={'Compare\x20against\x20selected':m(_0x12fa27,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12fa27,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12fa27,'Restore\x20this\x20revision')};return _0x58d1eb['map'](_0x51834a=>{const _0x5339e4=_0x4c304a[_0x51834a['name']];return _0x5339e4&&_0x5339e4!==_0x51834a['name']&&(_0x51834a['name']=_0x5339e4),_0x51834a;});}(_0x485da1,_0x5e759d),_0x4cadae=new _0x42ce0a();for(const _0x59c912 of _0x364696){const _0x565eb8={'type':'button','model':new to({'label':_0x59c912['name'],'class':_0x59c912['class'],'withText':!0x0,'role':'menuitem','_action':_0x59c912['action']})};_0x565eb8['model']['bind']('isEnabled')['to'](_0x485da1,'isActionsDropdownOpen',_0x76b8eb=>'function'!=typeof _0x59c912['isEnabled']||(!_0x76b8eb||_0x59c912['isEnabled'](_0x485da1))),_0x4cadae['add'](_0x565eb8);}return _0x4cadae;}(_0x306b2d,_0x59aed1);return _0x306b2d['bind']('isActionsDropdownOpen')['to'](_0x1f1572,'isOpen'),_0x1f1572['buttonView']['set']({'label':m(_0x36239a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x226c5d['threeVerticalDots']}),_0x1f1572['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4a6ac0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4a6ac0['to'](_0x32b930=>_0x32b930['stopPropagation']())}}),_0x1f1572['on']('execute',_0x1d47f5=>{_0x306b2d['isReady']&&'function'==typeof _0x1d47f5['source']['_action']&&_0x1d47f5['source']['_action'](_0x306b2d);}),_0x546d70(_0x1f1572,_0x544f56,{'role':'menu'}),_0x1f1572['listenTo'](_0x306b2d,'change:isActionsDropdownOpen',(_0x30b700,_0x13b305,_0x515cec)=>{if(_0x515cec)for(const _0x5df475 of _0x1f1572['listView']['items']){const _0x4fb66a=_0x5df475['children']['first'],_0x2c63cf=_0x59aed1['find'](_0x556c9c=>_0x556c9c['action']===_0x4fb66a['_action'])['isVisible'];_0x5df475['isVisible']=void 0x0===_0x2c63cf||_0x2c63cf(_0x306b2d);}}),_0x1f1572;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x43bb9d(_0x3f0f05){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x427e53,_0x1258f4,_0xe6d299,_0x3db52b){super(_0x427e53);const _0x5b62f4=this['bindTemplate'],_0x4abbed=function(_0x410755,_0x36badc){const _0x4a7980=Array['from'](_0x36badc['authors'])['filter'](_0x3fe7f6=>_0x3fe7f6!=_0x36badc['creator']);return _0x36badc['creator']&&_0x4a7980['unshift'](_0x36badc['creator']),_0x4a7980['map'](_0x3e74c8=>new ti(_0x410755,_0x3e74c8,_0x3e74c8==_0x36badc['creator']));}(_0x427e53,_0x1258f4);this['id']=_0x1258f4['id'],this['_revision']=_0x1258f4,this['_requireRevisionName']=_0x3db52b,this['bind']('name','createdAt')['to'](_0x1258f4),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xcdfebb=>{return _0xc5a685=_0x427e53['uiLanguage'],(_0x324317=_0xcdfebb)['toLocaleDateString'](_0xc5a685,{'month':'long','day':'numeric'})+',\x20'+_0x324317['toLocaleTimeString'](_0xc5a685,{'hour':'numeric','minute':'numeric'});var _0xc5a685,_0x324317;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x427e53,_0x1d572c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3c0f3d=>_0x3c0f3d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1187bd,_0x933d9)=>_0x1187bd&&_0x933d9),this['revisionActionsView']=_0xe6d299&&_0xe6d299['length']?ni(this,_0xe6d299):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5b62f4['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5b62f4['if']('isEnabled','ck-disabled',_0x541858=>!_0x541858),_0x5b62f4['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5b62f4['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5b62f4['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':_0x5b62f4['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':_0x4abbed}]},this['revisionActionsView']],'on':{'click':_0x5b62f4['to'](_0x1e57e0=>{_0x1e57e0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4cb107=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4cb107,'change',()=>{this['_requireRevisionName']&&!_0x4cb107['value']||this['fire']('setName',{'id':this['id'],'name':_0x4cb107['value']}),_0x4cb107['value']||(_0x4cb107['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x4384a6,_0x3d2657){const _0x1fcd20=_0x446d2f['fromJSDate'](_0x4384a6)['setLocale'](_0x3d2657),_0x5bb0fc=_0x446d2f['local'](),_0x454769=_0x5bb0fc['minus']({'days':0x1})['startOf']('day');let _0x3fcc2f,_0x1b0563;return _0x1fcd20['hasSame'](_0x5bb0fc,'day')?(_0x3fcc2f=_0x1fcd20['startOf']('day')['toJSDate'](),_0x1b0563=_0x1fcd20['toRelativeCalendar']()):_0x1fcd20['hasSame'](_0x454769,'day')?(_0x3fcc2f=_0x454769['toJSDate'](),_0x1b0563=_0x1fcd20['toRelativeCalendar']()):_0x1fcd20['hasSame'](_0x5bb0fc,'week')?(_0x3fcc2f=_0x1fcd20['startOf']('week')['toJSDate'](),_0x1b0563=_0x1fcd20['weekdayLong']||''):_0x1fcd20['hasSame'](_0x5bb0fc,'year')?(_0x3fcc2f=_0x1fcd20['startOf']('month')['toJSDate'](),_0x1b0563=_0x1fcd20['monthLong']||''):(_0x3fcc2f=_0x1fcd20['startOf']('year')['toJSDate'](),_0x1b0563=String(_0x1fcd20['year'])),{'startDate':_0x3fcc2f,'localizedPeriodName':_0x1b0563};}class mi extends _0x3f0f05{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x41fd02,_0x7f8174,_0x1dbb30,_0x5ec5a2){super(_0x41fd02);const _0x5eda58=di(_0x7f8174,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x7f8174,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1dbb30,this['_requireRevisionName']=_0x5ec5a2,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':_0x5eda58}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3ad299){const _0x2e3645=new ai(this['locale'],_0x3ad299,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2e3645);}['removeRevision'](_0x1b42c0){const _0x16da14=this['revisionViews']['find'](_0x3eb6c1=>_0x3eb6c1['id']===_0x1b42c0['id']);this['revisionViews']['remove'](_0x16da14);}}class as extends _0x3f0f05{constructor(_0x1a03de){super(_0x1a03de);const _0x1fb0e8=new _0x5787b7();_0x1fb0e8['content']=_0x226c5d['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1fb0e8,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1a03de,'Revision\x20history')]}]});}}class ci extends _0x3f0f05{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x10df9f,_0x184ee8,_0x519318,_0x5ee44b){super(_0x10df9f);const _0x364cca=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x184ee8,this['_revisionActions']=_0x519318,this['_requireRevisionName']=_0x5ee44b,this['on']('select',(_0x3cfb1a,_0x4194fd)=>{this['fire']('revisionSelected',_0x4194fd);}),this['on']('setName',(_0x42b36a,_0x1bcf87)=>{this['fire']('revisionSetName',_0x1bcf87);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x10df9f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x364cca['if']('isEnabled','ck-disabled',_0x51869e=>!_0x51869e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3d3d50 of this['_revisions'])this['_addRevision'](_0x3d3d50);this['_revisions']['on']('add',(_0x553555,_0x29c8a1)=>{this['_addRevision'](_0x29c8a1);}),this['_revisions']['on']('remove',(_0x4135cc,_0x250af2)=>{this['_removeRevision'](_0x250af2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5b5cad=>_0x5b5cad['revisionViews']['map'](_0x328963=>_0x328963))['flat']();}['selectRevision'](_0x2bc996){for(const _0x37cc57 of this['revisionViews'])_0x2bc996&&_0x2bc996['id']===_0x37cc57['id']?_0x37cc57['select']():_0x37cc57['deselect']();}['highlightRevisions'](_0x3bf857){for(const _0x1a8c20 of this['revisionViews'])_0x3bf857['some'](({id:_0x2ae1ca})=>_0x2ae1ca===_0x1a8c20['id'])?_0x1a8c20['highlight']():_0x1a8c20['unhighlight']();}['_addRevision'](_0x2c4afa){const _0x1b1a1e=di(_0x2c4afa['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4def4d=this['timePeriodViews']['get'](0x0);_0x4def4d&&_0x4def4d['startDate']['getTime']()===_0x1b1a1e['getTime']()||(_0x4def4d=new mi(this['locale'],_0x1b1a1e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4def4d)),_0x4def4d['addRevision'](_0x2c4afa);}['_removeRevision'](_0x410c09){const _0x4c1092=di(_0x410c09['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4c1092)['removeRevision'](_0x410c09);}['_getTimePeriodViewByStartDate'](_0x33c4d3){return this['timePeriodViews']['find'](_0x49da4c=>_0x49da4c['startDate']['getTime']()===_0x33c4d3['getTime']());}}class w extends _0x38c4e4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x139129,_0x137e20){super(_0x137e20),this['sourceElement']=_0x139129,this['model']['document']['createRoot']();const _0x96bf31=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x96bf31);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x339ba7,_0x19fd09){const _0x57a689=new this(_0x339ba7,_0x19fd09);return await _0x57a689['initPlugins'](),await _0x57a689['ui']['init'](_0x339ba7),await _0x57a689['data']['init'](_0x57a689['config']['get']('initialData')||''),_0x57a689['fire']('ready'),_0x57a689;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x21de30{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x171e41){function _0x279ee2(_0x3dc0fd){return _0x3dc0fd['map'](_0x355fee=>String['fromCharCode'](_0x355fee))['join']('');}super(_0x171e41),this['result']='end',_0x171e41[_0x279ee2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x279ee2([0x76,0x69,0x65,0x77])][_0x279ee2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x279ee2([0x61,0x75,0x74,0x6f]),_0x171e41[_0x279ee2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x279ee2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x279ee2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x279ee2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x279ee2([0x6f,0x6b])});}}class k extends _0x21de30{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xf09e72){if(super(_0xf09e72),!this['editor']['config']['get']('revisionHistory'))throw new _0x1bc125('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x311195=>this['_showRevisionViewer']({..._0x311195,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x44df5f=>this['_closeRevisionViewer'](_0x44df5f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x283606=>this['_restoreRevision'](_0x283606)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x510127){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x510127;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3752e8){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3752e8);}['getRevision'](_0x3492cc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3492cc);}['getRevisions'](_0x442ac8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x442ac8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2784dc=this['editor'],_0x5f0f38=_0x2a8ae3(_0x2784dc,p),_0x49e86b=_0x2784dc['plugins']['get']('RevisionTracker'),_0x59b08c=_0x2784dc['plugins']['get']('Users')['users'];return _0x5f0f38['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5f0f38['lazyRoots'],(_0x5f0f38['plugins']['push'](bt,d,g,class extends _0x21de30{static get['requires'](){return[d,'Users'];}['init'](){const _0x1e9e9c=this['editor']['plugins']['get']('Users');for(const _0x1fc04d of _0x59b08c)_0x1fc04d['isAnonymous']||_0x1e9e9c['getUser'](_0x1fc04d['id'])||_0x1e9e9c['addUser'](_0x1fc04d);const _0x160f1a=_0x49e86b['repository']['getRevisions']();let _0x445e01=null;const _0x7a2f08=this['editor']['plugins']['get']('RevisionViewer');_0x7a2f08['adapter']=_0x49e86b['adapter'],_0x7a2f08['bind']('isEnabled')['to'](_0x49e86b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2784dc,'isReadOnly',_0x45fc99=>!_0x45fc99);for(const _0x280be3 of _0x160f1a){const _0x3a7e1b=null===_0x280be3['creator'];if(_0x3a7e1b&&_0x280be3['toVersion']===_0x280be3['fromVersion'])continue;const _0x31dc12=_0x280be3['toJSON']();_0x7a2f08['addRevisionData'](_0x31dc12,(_0x37e890,_0x2f8854,_0x41202b)=>{if(_0x3a7e1b){if(_0x445e01)_0x445e01['_update'](_0x37e890,_0x2f8854);else{if(!_0x2f8854){const _0x2610a4=_0x41202b['toJSON']();_0x2610a4['id']=_0x3306a9(),_0x49e86b['saveRevision'](_0x2610a4,_0x41202b['toVersion'])['then'](_0x34a2f7=>{_0x445e01=_0x34a2f7;});}}}else _0x280be3['_update'](_0x37e890,_0x2f8854);});}}},w),_0x5f0f38);}['_enhanceShowRevisionViewerCallback'](){const _0x1ea37f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x18f648=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x13f3ce=this['editor']['plugins']['get']('Autosave');await _0x13f3ce['save']();}else await _0x18f648['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x59f067=this['editor']['plugins']['get']('Dialog');_0x59f067['isOpen']&&_0x59f067['hide']();}const _0x2b092e=this['_getRevisionViewerEditorConfig']();return _0x1ea37f(_0x2b092e)['then'](_0x4c4e02=>{return(this['_viewerEditor']=_0x4c4e02,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4c4e02;})['catch'](_0x47e5d1=>(console['error'](_0x47e5d1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xfe341=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'](),_0xfe341(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3cc6ed=this['editor']['plugins']['get']('Annotations');_0x3cc6ed['refreshVisibility'](),_0x3cc6ed['refreshPositioning']();}})));}['_showRevisionViewer'](_0x108931){const _0x5a643b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x456b5d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1641a1=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1641a1,_0x108931)['then'](_0x109fd8=>(_0x456b5d['style']['display']='block',_0x5a643b['style']['display']='none',_0x109fd8));}['_closeRevisionViewer'](_0x4dcb5e){const _0x4f316b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4f316b['style']['display']='',_0x4dcb5e['destroy']();}async['_restoreRevision'](_0x3d18d4){const _0x20652d=this['editor'],_0x7ccc66=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4e1b61=_0x20652d['plugins']['get']('RevisionTracker'),_0x55e798=_0x7ccc66['repository']['getRevision'](_0x3d18d4);let _0x20a3c4,_0x176a77,_0x36456d;try{_0x20a3c4=await _0x7ccc66['getRevisionData'](_0x55e798),_0x176a77=await _0x7ccc66['getRevisionRootsAttributes'](_0x55e798);}catch(_0x2253f2){return void console['error'](_0x2253f2);}_0x20652d['model']['change'](_0x495f14=>{for(const _0x5b88cc of Array['from'](_0x20652d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x495f14['removeMarker'](_0x5b88cc);}),_0x7ccc66['isReady']=!0x1,_0x20652d['model']['enqueueChange'](_0x49c3f1=>{_0x49c3f1['setSelection'](null),_0x49c3f1['removeSelectionAttribute'](_0x20652d['model']['document']['selection']['getAttributeKeys']());const _0xb83ed2=Object['keys'](_0x20a3c4);for(const _0x34d598 of _0x20652d['model']['document']['roots'])'$graveyard'!=_0x34d598['rootName']&&_0x34d598['isAttached']()&&!_0xb83ed2['includes'](_0x34d598['rootName'])&&_0x49c3f1['detachRoot'](_0x34d598);for(const _0x205208 of _0xb83ed2){let _0x18de75=_0x20652d['model']['document']['getRoot'](_0x205208);_0x18de75&&_0x18de75['isAttached']()||(_0x18de75=_0x49c3f1['addRoot'](_0x205208));const _0x3eacdd=_0x176a77[_0x205208],_0x421c64=Object['keys'](_0x3eacdd),_0x450fc5=_0x20a3c4[_0x205208];for(const _0x1d203d of _0x18de75['getAttributeKeys']())_0x421c64['includes'](_0x1d203d)||_0x49c3f1['removeAttribute'](_0x1d203d,_0x18de75);for(const _0xc4ee75 of _0x421c64)_0x49c3f1['setAttribute'](_0xc4ee75,_0x176a77[_0x205208][_0xc4ee75],_0x18de75);_0x49c3f1['remove'](_0x49c3f1['createRangeIn'](_0x18de75)),_0x49c3f1['insert'](_0x20652d['data']['parse'](_0x450fc5,_0x18de75),_0x18de75,0x0);}});const _0x2315cd=m(_0x20652d['locale'],'Restored');if(_0x55e798['name'])_0x36456d=-0x1==_0x55e798['name']['indexOf'](_0x2315cd)?_0x2315cd+':\x20'+_0x55e798['name']:_0x55e798['name'];else _0x36456d=_0x2315cd+':\x20'+(_0x55e798['createdAt']['toLocaleDateString'](_0x20652d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x55e798['createdAt']['toLocaleTimeString'](_0x20652d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4e1b61['saveRevision']({'name':_0x36456d}),_0x7ccc66['isReady']=!0x0,_0x20652d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x433838){super(_0x433838),this['_revisionViewer']=_0x433838['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xce4d35=this['_revisionsRepository']['_revisions'],_0x138638=this['_createRevisionActions'](),_0x163f8c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0xce4d35,_0x138638,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',(_0x4bdb92,_0xf42c8e)=>{_0xf42c8e['revisionViews']['on']('add',(_0x498622,_0x2b57d5)=>{_0x2b57d5['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)),_0x163f8c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x53ef9f=this['_revisionsRepository']['getRevision'](0x0);if(_0x53ef9f){const _0xfe237f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x53ef9f['id']);this['_revisionViewer']['compare'](_0x53ef9f,_0xfe237f);}}['_handleRevisionSelected'](_0x42447c,_0x23e179){const _0x2d027=this['_revisionsRepository']['getRevision'](_0x23e179['id']),_0x20cfd0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2d027['id']);this['_revisionViewer']['compare'](_0x2d027,_0x20cfd0);}['_handleRevisionSetName'](_0x28ef15,_0x24f3d1){this['_revisionsRepository']['getRevision'](_0x24f3d1['id'])['setName'](_0x24f3d1['name']);}['_handleDiffChange'](_0xcffee6,_0x488388,_0x2d4616){const _0x1d526d=this['_revisionsRepository']['getRevisionsInDiff'](_0x2d4616);_0x1d526d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1d526d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1d526d[0x0]));}['_createRevisionActions'](){const _0x35e80f=this['editor'],_0x4832a7=w['availableRevisionActions'],_0x6b7d78=_0x35e80f['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x6b7d78['length'])return _0x6b7d78['map'](_0x59a390=>{const _0x54ca8c='string'==typeof _0x59a390?Object['assign']({},_0x4832a7[_0x59a390]):_0x59a390;return _0x54ca8c['action']=_0x54ca8c['action']['bind'](this,_0x35e80f),_0x54ca8c['isVisible']&&(_0x54ca8c['isVisible']=_0x54ca8c['isVisible']['bind'](this,_0x35e80f)),_0x54ca8c;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xe599c3},_0x76ae16)=>{const _0x258a54=_0xe599c3['get'](d),_0x2ceb68=_0x258a54['repository'];let _0x2d7e05=_0x258a54['diff']['newRevisionId'],_0x47cd46=_0x76ae16['id'];_0x2ceb68['getIndex'](_0x2d7e05)>_0x2ceb68['getIndex'](_0x47cd46)&&([_0x2d7e05,_0x47cd46]=[_0x47cd46,_0x2d7e05]),_0x258a54['compare'](_0x2d7e05,_0x47cd46);},'isVisible':({plugins:_0x4f4d3b},_0x39f0f6)=>{const _0xf3c317=_0x4f4d3b['get'](d);return!(_0xf3c317['repository']['getRevisionsInDiff'](_0xf3c317['diff'])['length']>0x2)&&!_0x39f0f6['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4bebd2,{id:_0x1155c3})=>{_0x4bebd2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1155c3);},'isVisible':({plugins:_0x322942},_0x5f3d5e)=>!!_0x322942['get'](d)['repository']['getLaterVisibleRevision'](_0x5f3d5e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x546997},{id:_0x4351ae,revisionNameView:_0x1c2352})=>{const _0x379cba=_0x546997['get'](d),_0x528ceb=_0x379cba['repository']['getEarlierVisibleRevision'](_0x4351ae);_0x379cba['compare'](_0x4351ae,_0x528ceb),_0x1c2352['focus'](),_0x1c2352['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xc1b732,_0x3569b7){super(_0xc1b732),this['_view']=_0x3569b7,this['_toolbarConfig']=ot(_0xc1b732['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xdd5de1){const _0x509da1=this['editor'],_0x1b3d1a=this['view'],_0x2fb247=_0x509da1['editing']['view'],_0x4c27de=_0x1b3d1a['editable'],_0x54f4f1=_0x2fb247['document']['getRoot']();_0x4c27de['name']=_0x54f4f1['rootName'],_0x1b3d1a['render']();const _0x3d55f6=_0x4c27de['element'];this['setEditableElement'](_0x4c27de['name'],_0x3d55f6),_0x1b3d1a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2fb247['attachDomRoot'](_0x3d55f6),this['_elementReplacer']['replace'](_0xdd5de1,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x321698=this['view'],_0x1595a9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1595a9['detachDomRoot'](_0x321698['editable']['name']),_0x321698['destroy']();}['_initToolbar'](){const _0x258a7d=this['view'];_0x258a7d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x258a7d['stickyPanel']['limiterElement']=_0x258a7d['element'],_0x258a7d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x24822d})=>_0x24822d),_0x258a7d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x258a7d['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5cd3bc,_0xe49e81,_0x416e69={}){super(_0x5cd3bc),this['stickyPanel']=new ut(_0x5cd3bc),this['toolbar']=new lt(_0x5cd3bc,{'shouldGroupWhenFull':_0x416e69['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x5cd3bc,_0xe49e81);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4d3c96,_0x2aaa54){super(_0x2aaa54),this['sourceElement']=_0x4d3c96,this['model']['document']['createRoot']();const _0x4ec558=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x4ec558);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x449537,_0x3d8445){const _0x3ad8c7=new this(_0x449537,_0x3d8445);return await _0x3ad8c7['initPlugins'](),await _0x3ad8c7['ui']['init'](_0x449537),await _0x3ad8c7['data']['init'](_0x3ad8c7['config']['get']('initialData')||''),_0x3ad8c7['fire']('ready'),_0x3ad8c7;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x38c4e4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8c1934){function _0x3a70f3(_0x5cdf98){return _0x5cdf98['map'](_0x57fe89=>String['fromCharCode'](_0x57fe89))['join']('');}super(_0x8c1934),this['result']='end',_0x8c1934[_0x3a70f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a70f3([0x76,0x69,0x65,0x77])][_0x3a70f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a70f3([0x61,0x75,0x74,0x6f]),_0x8c1934[_0x3a70f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3a70f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a70f3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3a70f3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3a70f3([0x6f,0x6b])});}}class k extends _0x38c4e4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5757b0){if(super(_0x5757b0),!this['editor']['config']['get']('revisionHistory'))throw new _0x5f4f1d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x211ea8=>this['_showRevisionViewer']({..._0x211ea8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x227a1b=>this['_closeRevisionViewer'](_0x227a1b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x56f289=>this['_restoreRevision'](_0x56f289)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x522f66){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x522f66;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xc7736d){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xc7736d);}['getRevision'](_0x2a767a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2a767a);}['getRevisions'](_0x15b278){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x15b278||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x35f659=this['editor'],_0x33149a=_0x1e169a(_0x35f659,p),_0x3b99f7=_0x35f659['plugins']['get']('RevisionTracker'),_0x40670e=_0x35f659['plugins']['get']('Users')['users'];return _0x33149a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x33149a['lazyRoots'],(_0x33149a['plugins']['push'](Rt,d,g,class extends _0x38c4e4{static get['requires'](){return[d,'Users'];}['init'](){const _0x5d1f2e=this['editor']['plugins']['get']('Users');for(const _0x1ae7ff of _0x40670e)_0x1ae7ff['isAnonymous']||_0x5d1f2e['getUser'](_0x1ae7ff['id'])||_0x5d1f2e['addUser'](_0x1ae7ff);const _0x1485c2=_0x3b99f7['repository']['getRevisions']();let _0x30d3ba=null;const _0x3e5587=this['editor']['plugins']['get']('RevisionViewer');_0x3e5587['adapter']=_0x3b99f7['adapter'],_0x3e5587['bind']('isEnabled')['to'](_0x3b99f7),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x35f659,'isReadOnly',_0x2e6b38=>!_0x2e6b38);for(const _0x40b71e of _0x1485c2){const _0xa28a40=null===_0x40b71e['creator'];if(_0xa28a40&&_0x40b71e['toVersion']===_0x40b71e['fromVersion'])continue;const _0x14882b=_0x40b71e['toJSON']();_0x3e5587['addRevisionData'](_0x14882b,(_0x750814,_0x310efa,_0x232083)=>{if(_0xa28a40){if(_0x30d3ba)_0x30d3ba['_update'](_0x750814,_0x310efa);else{if(!_0x310efa){const _0x483a73=_0x232083['toJSON']();_0x483a73['id']=_0x358749(),_0x3b99f7['saveRevision'](_0x483a73,_0x232083['toVersion'])['then'](_0x11bd28=>{_0x30d3ba=_0x11bd28;});}}}else _0x40b71e['_update'](_0x750814,_0x310efa);});}}},w),_0x33149a);}['_enhanceShowRevisionViewerCallback'](){const _0xd02b09=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xf053cd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x17a3eb=this['editor']['plugins']['get']('Autosave');await _0x17a3eb['save']();}else await _0xf053cd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4d7282=this['editor']['plugins']['get']('Dialog');_0x4d7282['isOpen']&&_0x4d7282['hide']();}const _0x187b21=this['_getRevisionViewerEditorConfig']();return _0xd02b09(_0x187b21)['then'](_0x16cc68=>{return(this['_viewerEditor']=_0x16cc68,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x16cc68;})['catch'](_0x10832b=>(console['error'](_0x10832b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x55d3cf=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'](),_0x55d3cf(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x27b26f=this['editor']['plugins']['get']('Annotations');_0x27b26f['refreshVisibility'](),_0x27b26f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3bc640){const _0x2576c5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x202005=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2dcc0d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2dcc0d,_0x3bc640)['then'](_0x3c5d40=>(_0x202005['style']['display']='block',_0x2576c5['style']['display']='none',_0x3c5d40));}['_closeRevisionViewer'](_0x988651){const _0x57b6b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x57b6b['style']['display']='',_0x988651['destroy']();}async['_restoreRevision'](_0x2f6659){const _0x234e85=this['editor'],_0x5a508d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1651d5=_0x234e85['plugins']['get']('RevisionTracker'),_0x321a2a=_0x5a508d['repository']['getRevision'](_0x2f6659);let _0x522d6a,_0x24fcef,_0x185d4d;try{_0x522d6a=await _0x5a508d['getRevisionData'](_0x321a2a),_0x24fcef=await _0x5a508d['getRevisionRootsAttributes'](_0x321a2a);}catch(_0x278d79){return void console['error'](_0x278d79);}_0x234e85['model']['change'](_0x240c9d=>{for(const _0x499b04 of Array['from'](_0x234e85['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x240c9d['removeMarker'](_0x499b04);}),_0x5a508d['isReady']=!0x1,_0x234e85['model']['enqueueChange'](_0x4d5b29=>{_0x4d5b29['setSelection'](null),_0x4d5b29['removeSelectionAttribute'](_0x234e85['model']['document']['selection']['getAttributeKeys']());const _0x3e5093=Object['keys'](_0x522d6a);for(const _0x1ce743 of _0x234e85['model']['document']['roots'])'$graveyard'!=_0x1ce743['rootName']&&_0x1ce743['isAttached']()&&!_0x3e5093['includes'](_0x1ce743['rootName'])&&_0x4d5b29['detachRoot'](_0x1ce743);for(const _0x366226 of _0x3e5093){let _0x353172=_0x234e85['model']['document']['getRoot'](_0x366226);_0x353172&&_0x353172['isAttached']()||(_0x353172=_0x4d5b29['addRoot'](_0x366226));const _0x31429c=_0x24fcef[_0x366226],_0x3008ac=Object['keys'](_0x31429c),_0x2a7934=_0x522d6a[_0x366226];for(const _0x1bc5a3 of _0x353172['getAttributeKeys']())_0x3008ac['includes'](_0x1bc5a3)||_0x4d5b29['removeAttribute'](_0x1bc5a3,_0x353172);for(const _0x48973e of _0x3008ac)_0x4d5b29['setAttribute'](_0x48973e,_0x24fcef[_0x366226][_0x48973e],_0x353172);_0x4d5b29['remove'](_0x4d5b29['createRangeIn'](_0x353172)),_0x4d5b29['insert'](_0x234e85['data']['parse'](_0x2a7934,_0x353172),_0x353172,0x0);}});const _0x546452=m(_0x234e85['locale'],'Restored');if(_0x321a2a['name'])_0x185d4d=-0x1==_0x321a2a['name']['indexOf'](_0x546452)?_0x546452+':\x20'+_0x321a2a['name']:_0x321a2a['name'];else _0x185d4d=_0x546452+':\x20'+(_0x321a2a['createdAt']['toLocaleDateString'](_0x234e85['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x321a2a['createdAt']['toLocaleTimeString'](_0x234e85['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1651d5['saveRevision']({'name':_0x185d4d}),_0x5a508d['isReady']=!0x0,_0x234e85['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|