@ckeditor/ckeditor5-revision-history 44.2.0 → 44.2.1-alpha.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
|
-
_0x5320d2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x567435){super(),this['id']=_0x567435['id']||_0x2a0190(),this['creator']=_0x567435['creator']||null,this['authors']=_0x567435['authors']||[],this['diffData']=_0x567435['diffData']||null,this['toVersion']=_0x567435['toVersion']||0x0,this['fromVersion']=_0x567435['fromVersion']||0x0,this['set']('name',_0x567435['name']||''),this['set']('createdAt',_0x567435['createdAt']||new Date()),this['set']('attributes',_0x567435['attributes']||{});}['setName'](_0x1eb82){this['_update']({'name':_0x1eb82});}['setAttribute'](_0x2620b3,_0xc9aa37){const _0x28a859=_0x582feb(this['attributes']);_0x52a819(_0x28a859,_0x2620b3,_0xc9aa37),this['_update']({'attributes':_0x28a859});}['removeAttribute'](_0x4f6f6c){const _0x57d64f=_0x582feb(this['attributes']);_0x586896(_0x57d64f,_0x4f6f6c),this['_update']({'attributes':_0x57d64f});}['_update'](_0xb0d798,_0x3aa777=!0x1){let _0x154f57=!0x1;const _0x3f4d9a={'id':this['id']},_0x182643=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x6dbd21 of _0x182643){const _0x457dfd=_0xb0d798[_0x6dbd21];void 0x0!==_0x457dfd&&_0x457dfd!==this[_0x6dbd21]&&(this[_0x6dbd21]=_0x457dfd,_0x3f4d9a[_0x6dbd21]=_0x457dfd,_0x154f57=!0x0);}_0x154f57&&(_0x3f4d9a['authors']&&(_0x3f4d9a['authorsIds']=_0x3f4d9a['authors']['map'](_0x16ece9=>_0x16ece9['id']),delete _0x3f4d9a['authors']),this['fire']('_update',_0x3f4d9a,_0x3aa777));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x55f871=>_0x55f871['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x417e25{['_revisions'];static get['requires'](){return[_0xce5c9b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x53f7bf){super(_0x53f7bf),this['_revisions']=new _0x10516c();}['afterInit'](){!async function(_0xaeecf3){const _0x2905dc=_0x4b5ba2([0x51,0x6d,0x59,0x35,0x78,0x4e,0x71,0x6f,0x67,0x7a,0x39,0x31,0x30,0x76,0x47,0x55,0x48,0x65,0x70,0x52,0x54,0x46,0x45,0x34,0x50,0x49,0x61,0x5a,0x4b,0x56,0x6c,0x33,0x4c,0x6b,0x66,0x6a,0x64,0x68,0x4a,0x53,0x6e,0x77,0x36,0x69,0x41,0x37,0x58,0x42,0x73,0x79,0x43,0x4f,0x32,0x62,0x38,0x74,0x72,0x63,0x4d,0x75,0x57,0x44]),_0x13f5eb=0xeb829,_0x22510c=0x4981b689,_0x1539eb=0x4986e9c1^_0x22510c,_0x3b81d1=window[_0x4b5ba2([0x44,0x61,0x74,0x65])][_0x4b5ba2([0x6e,0x6f,0x77])](),_0x1199bc=_0xaeecf3[_0x4b5ba2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b95bc=new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a4008=>{_0x1199bc[_0x4b5ba2([0x6f,0x6e,0x63,0x65])](_0x4b5ba2([0x72,0x65,0x61,0x64,0x79]),_0x5a4008);}),_0x12f5a4={[_0x4b5ba2([0x6b,0x74,0x79])]:_0x4b5ba2([0x45,0x43]),[_0x4b5ba2([0x75,0x73,0x65])]:_0x4b5ba2([0x73,0x69,0x67]),[_0x4b5ba2([0x63,0x72,0x76])]:_0x4b5ba2([0x50,0x2d,0x32,0x35,0x36]),[_0x4b5ba2([0x78])]:_0x4b5ba2([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]),[_0x4b5ba2([0x79])]:_0x4b5ba2([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]),[_0x4b5ba2([0x61,0x6c,0x67])]:_0x4b5ba2([0x45,0x53,0x32,0x35,0x36])},_0x3a72b0=_0x1199bc[_0x4b5ba2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b5ba2([0x67,0x65,0x74])](_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ba9fe(){let _0x5ea99f,_0xc9d04=null,_0x288624=null;try{if(_0x3a72b0==_0x4b5ba2([0x47,0x50,0x4c]))return _0x4b5ba2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ea99f=_0x3488c2(),!_0x5ea99f)return _0x4b5ba2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ea99f[_0x4b5ba2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x288624=_0x1525aa(_0x5ea99f[_0x4b5ba2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ea99f[_0x4b5ba2([0x6a,0x74,0x69])])),await _0x40e0c5()?_0x24ea18()?_0x506730()?_0x4b5ba2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd6637b()?(_0x5ea99f[_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b5ba2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc9d04=_0x1a4f0b(_0x4b5ba2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ea99f[_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b5ba2([0x74,0x72,0x69,0x61,0x6c])&&(_0xc9d04=_0x1a4f0b(_0x4b5ba2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47892e()):_0x4b5ba2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b5ba2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b5ba2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x127856){return _0x4b5ba2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x506730(){const _0x3b0bce=[_0x4b5ba2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b5ba2([0x74,0x72,0x69,0x61,0x6c])][_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea99f[_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b81d1/0x3e8:0xe10*_0x1539eb;return _0x5ea99f[_0x4b5ba2([0x65,0x78,0x70])]<_0x3b0bce;}function _0x24ea18(){const _0x360e96=_0x5ea99f[_0x4b5ba2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x360e96)return!0x1;if(_0x360e96[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ba2([0x2a])))return!0x0;if(_0x360e96[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ba2([0x52,0x48])))return!0x0;if(_0x360e96[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ba2([0x52,0x52,0x48]))){if(_0x555f43())return!0x0;if(_0xcd072b()||_0x2a5a99())return!0x0;}return!0x1;}function _0xd6637b(){const _0x400f18=_0x5ea99f[_0x4b5ba2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x400f18||0x0==_0x400f18[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x583740}=new URL(window[_0x4b5ba2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x400f18[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x583740))return!0x0;const _0x2a06c2=_0x583740[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ba2([0x2e]));return _0x400f18[_0x4b5ba2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c6f5a=>_0x4c6f5a[_0x4b5ba2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ba2([0x2a])))[_0x4b5ba2([0x6d,0x61,0x70])](_0x5ec55f=>_0x5ec55f[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ba2([0x2e])))[_0x4b5ba2([0x73,0x6f,0x6d,0x65])](_0x577fbc=>_0x2a06c2[_0x4b5ba2([0x65,0x76,0x65,0x72,0x79])]((_0x8209fe,_0x565127)=>_0x577fbc[_0x565127]===_0x8209fe||_0x577fbc[_0x565127]===_0x4b5ba2([0x2a])));}function _0x47892e(){return _0xc9d04&&_0x288624?new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12f134,_0x542389)=>{_0xc9d04[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x12f134,_0x542389),_0x288624[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x3f7b91=>{_0x3f7b91!=_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64])&&_0x12f134(_0x3f7b91);},_0x542389);}):_0xc9d04||_0x288624||_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1525aa(_0x32fa7f,_0x53346c){return new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62e944=>{if(_0x917917())return _0x62e944(_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64]));_0x17c5f7(),_0x1199bc[_0x4b5ba2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b5ba2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x364ced=!0x1;const _0x4d9c1e=_0x2a0190();function _0x4b6af7(_0x599c45){return!!_0x599c45&&(typeof _0x599c45===_0x4b5ba2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x599c45===_0x4b5ba2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x599c45[_0x4b5ba2([0x74,0x68,0x65,0x6e])]===_0x4b5ba2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x599c45[_0x4b5ba2([0x63,0x61,0x74,0x63,0x68])]===_0x4b5ba2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42a24b(_0x1ce627){_0x4f9aab(_0x1ce627)[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x3ab6da=>{if(!_0x3ab6da||_0x3ab6da[_0x4b5ba2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b5ba2([0x6f,0x6b]))return _0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x114328(_0x1f9339(_0x4d9c1e+_0x53346c))!=_0x3ab6da[_0x4b5ba2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x8e0768=>(_0x4af6e3(),_0x8e0768),()=>{const _0xeb70d9=_0x4cfe64();return null==_0xeb70d9?(_0x4af6e3(),_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64])):_0x4b5ba2(_0x3b81d1-_0xeb70d9>(0x6d8d3289^_0x22510c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x62e944)[_0x4b5ba2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x62e944(_0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x196da9=0x49b75809^_0x22510c;function _0x4af6e3(){const _0x32106e=_0x4b5ba2([0x6c,0x6c,0x63,0x74,0x2d])+_0x114328(_0x1f9339(_0x32fa7f)),_0x508752=_0x590f18(_0x114328(window[_0x4b5ba2([0x4d,0x61,0x74,0x68])][_0x4b5ba2([0x63,0x65,0x69,0x6c])](_0x3b81d1/_0x196da9)));window[_0x4b5ba2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b5ba2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32106e,_0x508752);}function _0x4cfe64(){const _0x3325f4=_0x4b5ba2([0x6c,0x6c,0x63,0x74,0x2d])+_0x114328(_0x1f9339(_0x32fa7f)),_0x1c3aaa=window[_0x4b5ba2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b5ba2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3325f4);return _0x1c3aaa?window[_0x4b5ba2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x590f18(_0x1c3aaa),0x10)*_0x196da9:null;}function _0x4f9aab(_0x2ae5ca){return new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x327824,_0x694d4)=>{_0x2ae5ca[_0x4b5ba2([0x74,0x68,0x65,0x6e])](_0x327824,_0x694d4),window[_0x4b5ba2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x694d4,0x49806249^_0x22510c);});}}_0x1199bc[_0x4b5ba2([0x6f,0x6e])](_0x4b5ba2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28649f,_0x32d984)=>{if(_0x32d984[0x0]!=_0x32fa7f)return _0x62e944(_0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32d984[0x1]={..._0x32d984[0x1],[_0x4b5ba2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d9c1e};},{[_0x4b5ba2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b5ba2([0x68,0x69,0x67,0x68])}),_0x1199bc[_0x4b5ba2([0x6f,0x6e])](_0x4b5ba2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16e2fb=>{_0x4b6af7(_0x16e2fb[_0x4b5ba2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x364ced=!0x0,_0x42a24b(_0x16e2fb[_0x4b5ba2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b5ba2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b5ba2([0x6c,0x6f,0x77])}),_0x3b95bc[_0x4b5ba2([0x74,0x68,0x65,0x6e])](()=>{_0x364ced||_0x62e944(_0x4b5ba2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x917917(){return _0x1199bc[_0x4b5ba2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b5ba2([0x76,0x69,0x65,0x77])][_0x4b5ba2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b5ba2([0x61,0x75,0x74,0x6f]);}function _0x17c5f7(){_0x1199bc[_0x4b5ba2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b5ba2([0x76,0x69,0x65,0x77])][_0x4b5ba2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b5ba2([0x61,0x75,0x74,0x6f]);}}function _0x1a4f0b(_0x5692b9){const _0x3ac877=[new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51348f=>setTimeout(_0x51348f,0x49888845^_0x22510c)),_0x3b95bc[_0x4b5ba2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a449e=>{const _0x460a6c=0x4981b68e^_0x22510c,_0xd05392=_0xaeecf3[_0x4b5ba2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x155d13(){_0xd05392[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x460a6c&&_0x2a449e();}_0x155d13(),_0xd05392[_0x4b5ba2([0x6f,0x6e])](_0x4b5ba2([0x61,0x64,0x64]),_0x155d13);})),new window[(_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e585d=>{function _0x2d4926(){for(const _0x2bcaa3 in window)if(window[_0x4b5ba2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4b5ba2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2bcaa3))&&window[_0x2bcaa3]==_0x13f5eb)return _0x2e585d();_0x1199bc[_0x4b5ba2([0x73,0x74,0x61,0x74,0x65])]!=_0x4b5ba2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4b5ba2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d4926,0x4981a501^_0x22510c);}_0x169929(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2d4926();})];return window[_0x4b5ba2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b5ba2([0x72,0x61,0x63,0x65])](_0x3ac877)[_0x4b5ba2([0x74,0x68,0x65,0x6e])](()=>_0x5692b9);}async function _0x1f8562(){if(await _0x3b95bc,_0x169929(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4076a7=_0xaeecf3[_0x4b5ba2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x833f53=_0xaeecf3[_0x4b5ba2([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])](_0x4076a7[_0x4b5ba2([0x69,0x64])]),_0x10f1bd=_0x1f9a87(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x10f1bd[_0x4b5ba2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4076a7['id'],_0x833f53?_0x833f53['id']:null,!0x0),_0x10f1bd[_0x4b5ba2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b5ba2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x10f1bd[_0x4b5ba2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x10f1bd[_0x4b5ba2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x261543,void(_0x10f1bd[_0x4b5ba2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x261543);}if(_0x169929(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x11a71f=_0x1f9a87(_0x4b5ba2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x11a71f[_0x4b5ba2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b5ba2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x11a71f[_0x4b5ba2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x11a71f[_0x4b5ba2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x261543,_0x11a71f[_0x4b5ba2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x261543;}_0x1199bc[_0x4b5ba2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b5ba2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x261543,_0x1199bc[_0x4b5ba2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b5ba2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x261543,_0x1199bc[_0x4b5ba2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b5ba2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x555f43(){return _0x169929(_0x4b5ba2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f9a87(_0x4b5ba2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b5ba2([0x73,0x74,0x61,0x74,0x65])]==_0x4b5ba2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xcd072b(){return _0x169929(_0x4b5ba2([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 _0x2a5a99(){return _0x169929(_0x4b5ba2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1f9702(_0x139574){const _0x1c1001=_0x5cf888();_0x1199bc[_0x1c1001]=_0x4b5ba2([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])+_0x139574,_0x139574[_0x4b5ba2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4b5ba2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5cf888()]=_0x13f5eb),_0x139574!=_0x4b5ba2([0x56,0x61,0x6c,0x69,0x64])&&_0x1f8562();}function _0x5cf888(){const _0x19a78b=window[_0x4b5ba2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b5ba2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b5ba2([0x6e,0x6f,0x77])]())[_0x4b5ba2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b5ba2([0x2e]),'');let _0x105269=_0x4b5ba2([0x51]);for(let _0x443ebe=0x0;_0x443ebe<_0x19a78b[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x443ebe+=0x2){let _0x1e9777=window[_0x4b5ba2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19a78b[_0x4b5ba2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x443ebe,_0x443ebe+0x2));_0x1e9777>=_0x2905dc[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e9777-=_0x2905dc[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x105269+=_0x2905dc[_0x1e9777];}return _0x105269;}function _0x3488c2(){const _0x365d83=_0x3a72b0[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ba2([0x2e]));if(0x3!=_0x365d83[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x447077(_0x365d83[0x1]);function _0x447077(_0x142b2b){const _0x526da5=_0x3a9c31(_0x142b2b);return _0x526da5&&_0x149a0f()?_0x526da5:null;function _0x149a0f(){const _0x4c2513=_0x526da5[_0x4b5ba2([0x6a,0x74,0x69])],_0x2270fb=window[_0x4b5ba2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c2513[_0x4b5ba2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c2513[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58d955={..._0x526da5,[_0x4b5ba2([0x6a,0x74,0x69])]:_0x4c2513[_0x4b5ba2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c2513[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58d955[_0x4b5ba2([0x76,0x63])],_0x1f9339(_0x58d955)==_0x2270fb;}}}async function _0x40e0c5(){let _0x4dc270=!0x0;try{const _0x1000b6=_0x3a72b0[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ba2([0x2e])),[_0x356ae2,_0x47334f,_0x338c81]=_0x1000b6;return _0xee93cd(_0x356ae2),await _0x83f51d(_0x356ae2,_0x47334f,_0x338c81),_0x4dc270;}catch(_0x3934d4){return!0x1;}function _0xee93cd(_0x1bde86){const _0x431dd0=_0x3a9c31(_0x1bde86);_0x431dd0&&_0x431dd0[_0x4b5ba2([0x61,0x6c,0x67])]==_0x4b5ba2([0x45,0x53,0x32,0x35,0x36])||(_0x4dc270=!0x1);}async function _0x83f51d(_0x3f46af,_0x4ff688,_0x5d9d2f){const _0x5c65df=window[_0x4b5ba2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b5ba2([0x66,0x72,0x6f,0x6d])](_0x2f1e2b(_0x5d9d2f),_0x36d17e=>_0x36d17e[_0x4b5ba2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x182ae3=new window[(_0x4b5ba2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b5ba2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f46af+_0x4b5ba2([0x2e])+_0x4ff688),_0x1444c2=window[_0x4b5ba2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b5ba2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1444c2)return;const _0x127abf=await _0x1444c2[_0x4b5ba2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b5ba2([0x6a,0x77,0x6b]),_0x12f5a4,{[_0x4b5ba2([0x6e,0x61,0x6d,0x65])]:_0x4b5ba2([0x45,0x43,0x44,0x53,0x41]),[_0x4b5ba2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b5ba2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b5ba2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1444c2[_0x4b5ba2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b5ba2([0x6e,0x61,0x6d,0x65])]:_0x4b5ba2([0x45,0x43,0x44,0x53,0x41]),[_0x4b5ba2([0x68,0x61,0x73,0x68])]:{[_0x4b5ba2([0x6e,0x61,0x6d,0x65])]:_0x4b5ba2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x127abf,_0x5c65df,_0x182ae3)||(_0x4dc270=!0x1);}}function _0x3a9c31(_0x3c2faa){return _0x3c2faa[_0x4b5ba2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b5ba2([0x65,0x79]))?JSON[_0x4b5ba2([0x70,0x61,0x72,0x73,0x65])](_0x2f1e2b(_0x3c2faa)):null;}function _0x2f1e2b(_0x26bc27){return window[_0x4b5ba2([0x61,0x74,0x6f,0x62])](_0x26bc27[_0x4b5ba2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b5ba2([0x2b]))[_0x4b5ba2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b5ba2([0x2f])));}function _0x1f9339(_0x70120d){let _0x567350=0x1505;function _0x57747a(_0x559e08){for(let _0x4d3830=0x0;_0x4d3830<_0x559e08[_0x4b5ba2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d3830++){const _0x50a0c9=_0x559e08[_0x4b5ba2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d3830);_0x567350=(_0x567350<<0x5)+_0x567350+_0x50a0c9,_0x567350&=_0x567350;}}function _0x572d86(_0xfc3c0b){Array[_0x4b5ba2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfc3c0b)?_0xfc3c0b[_0x4b5ba2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x572d86):_0xfc3c0b&&typeof _0xfc3c0b==_0x4b5ba2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b5ba2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfc3c0b)[_0x4b5ba2([0x73,0x6f,0x72,0x74])]()[_0x4b5ba2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4539ef,_0x320412])=>{_0x57747a(_0x4539ef),_0x572d86(_0x320412);}):_0x57747a(window[_0x4b5ba2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfc3c0b));}return _0x572d86(_0x70120d),_0x567350>>>0x0;}function _0x114328(_0x11e125){return _0x11e125[_0x4b5ba2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b5ba2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b5ba2([0x30]));}function _0x590f18(_0x102402){return _0x102402[_0x4b5ba2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b5ba2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b5ba2([0x6a,0x6f,0x69,0x6e])]('');}function _0x169929(_0x19e02e){return _0x1199bc[_0x4b5ba2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b5ba2([0x68,0x61,0x73])](_0x19e02e);}function _0x1f9a87(_0x33286f){return _0x1199bc[_0x4b5ba2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b5ba2([0x67,0x65,0x74])](_0x33286f);}function _0x261543(){}function _0x4b5ba2(_0x53650a){return _0x53650a['map'](_0x206b6e=>String['fromCharCode'](_0x206b6e))['join']('');}_0x1f9702(await _0x5ba9fe());}(this);}['createRevision'](_0x2b3047){const _0xa3e473=this['editor']['plugins']['get']('Users');return new a({'id':_0x2b3047['id'],'name':_0x2b3047['name'],'creator':_0x2b3047['creatorId']?_0xa3e473['getUser'](_0x2b3047['creatorId']):null,'diffData':_0x2b3047['diffData']||_0x2b3047['data'],'authors':_0x2b3047['authorsIds']['map'](_0x4341cd=>_0xa3e473['getUser'](_0x4341cd)),'createdAt':new Date(_0x2b3047['createdAt']),'attributes':_0x2b3047['attributes'],'fromVersion':_0x2b3047['fromVersion'],'toVersion':_0x2b3047['toVersion']});}['addRevision'](_0x2125c7,_0x36a65b=0x0){this['_revisions']['add'](_0x2125c7,_0x36a65b);}['getRevision'](_0x380edd){return this['_revisions']['get'](_0x380edd);}['getRevisions'](_0x8b252f={'toJSON':!0x1}){const _0x4a28d3=Array['from'](this['_revisions']);return _0x4a28d3['reverse'](),_0x8b252f['toJSON']?_0x4a28d3['map'](_0x29ef04=>_0x29ef04['toJSON']()):_0x4a28d3;}['getIndex'](_0x226d3f){return this['_revisions']['getIndex'](_0x226d3f);}['getEarlierVisibleRevision'](_0x510afa){const [,_0x10a747]=this['getRevisionsIterator'](_0x510afa,{'direction':'earlier'});return _0x10a747;}['getLaterVisibleRevision'](_0x20dc06){const [,_0x137e64]=this['getRevisionsIterator'](_0x20dc06,{'direction':'later'});return _0x137e64;}['getRevisionsInDiff'](_0x77e835){const _0x4fb8cc=[];for(const _0x59fef1 of this['getRevisionsIterator'](_0x77e835['newRevisionId']))if(_0x4fb8cc['push'](_0x59fef1),_0x59fef1['id']===_0x77e835['oldRevisionId'])break;return _0x4fb8cc;}*['getRevisionsIterator'](_0x2d9aa7,{direction:_0x1bfe18='earlier',filter:_0x527152=()=>!0x0}={}){const _0x5810f1='earlier'===_0x1bfe18?0x1:-0x1;let _0x571f79=this['_revisions']['get'](_0x2d9aa7),_0x549f9f=this['getIndex'](_0x571f79);for(yield _0x571f79;_0x571f79;){if(_0x549f9f+=_0x5810f1,_0x571f79=this['getRevision'](_0x549f9f),!_0x571f79)return;_0x527152(_0x571f79)&&(yield _0x571f79);}}}function m(_0x3c0ed8,_0x1a8954,_0x32e891){const t=_0x3c0ed8['t'];switch(_0x1a8954){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'},_0x32e891);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x32e891);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':_0x306303,'a':_0x15c3ec,'e':_0x563432,'r':_0x2ff39b,'u':_0x1f63be};class l extends _0x417e25{['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[_0xce5c9b,j,_0x37e6c8];}constructor(_0x2ae8f0){super(_0x2ae8f0),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 _0x401e95=_0x2a0190();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x401e95},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 _0x3e40ea=this['repository']['getRevision'](0x0),_0x54f90c=_0x3e40ea&&null===_0x3e40ea['creator']?_0x3e40ea:null;if(this['_continueCurrentRevision']=!!_0x54f90c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x21f17e=this['_source']['getCurrentRevisionId'](),_0x128aeb=this['repository']['getRevision'](_0x21f17e);if(_0x128aeb)this['_startingVersion']=_0x128aeb['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1199db=this['_source']['history']['_operations']['find'](_0x43324f=>!_0x43324f['_isInit']),_0xe613e0=_0x1199db?_0x1199db['baseVersion']:this['_source']['history']['version'];_0x3e40ea?(_0x3e40ea['toVersion']<_0xe613e0&&_0x3e40ea['_update']({'toVersion':_0xe613e0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x54f90c['id'],this['_startingVersion']=_0x54f90c['fromVersion']):(this['_startingVersion']=_0x3e40ea['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xe613e0,this['_continueCurrentRevision']=!0x1);}}else _0x54f90c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x54f90c['toVersion'],this['editor']['model']['document']['history']['version']),_0x54f90c['fromVersion']===_0x54f90c['toVersion']?(0x0!==_0x54f90c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x54f90c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x54f90c['id'],this['_startingVersion']=_0x54f90c['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',_0x4248a7=>!_0x4248a7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x246d16=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x171672;for(const _0xe1d359 in _0x246d16){const _0x326caf=_0xe1d359,_0x572b61=_0x246d16[_0x326caf];if('revisionHistoryLicenseKeyValid'==_0x572b61||'revisionHistoryLicenseKeyInvalid'==_0x572b61||'revisionHistoryLicenseKeyExpired'==_0x572b61||'revisionHistoryLicenseKeyDomainLimit'==_0x572b61||'revisionHistoryLicenseKeyNotAllowed'==_0x572b61||'revisionHistoryLicenseKeyEvaluationLimit'==_0x572b61||'revisionHistoryLicenseKeyTrialLimit'==_0x572b61||'revisionHistoryLicenseKeyUsageLimit'==_0x572b61){delete _0x246d16[_0x326caf],_0x171672=_0x572b61,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x171672&&_0x246d16['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x171672&&_0x246d16['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x171672&&_0x246d16['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x171672&&_0x246d16['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x171672&&_0x246d16['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x171672&&_0x246d16['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x171672&&_0x246d16['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x13a2a9=this['repository']['getRevision'](0x0),_0x254ac5=await this['getRevisionDocumentData'](_0x13a2a9),_0x31dedc=await this['getRevisionRootsAttributes'](_0x13a2a9);this['_replaceEditorDataWithRevisionData'](_0x254ac5,_0x31dedc);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x10f3d6){this['_source']=_0x10f3d6;}async['update'](){const _0x261b44=await this['_source']['getLatestVersion']();if(_0x261b44>this['currentRevision']['toVersion']){await this['_loadState']();const _0x26512f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x261b44});_0x26512f['authors']=_0x26512f['authorsIds']['map'](_0x58fed3=>this['editor']['plugins']['get']('Users')['getUser'](_0x58fed3)),this['currentRevision']['_update'](_0x26512f);}}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'](_0x592a1e={},_0x30534a=null){const _0x23636a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x30534a>this['currentRevision']['toVersion']&&(_0x30534a=null),null===_0x30534a&&(_0x30534a=await this['_source']['getLatestVersion']());const _0x258c6f=this['_getFromVersion'](_0x30534a),_0x37b42e=this['buildRevisionData']({'from':_0x258c6f,'to':_0x30534a});if(this['currentRevision']['toVersion']<_0x30534a){const _0x5c47e0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x30534a,'to':_0x30534a});_0x5c47e0['authors']=[],_0x5c47e0['authorsIds']=[],_0x5c47e0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5c47e0,!0x0),delete _0x5c47e0['authors'],_0x23636a['push'](_0x5c47e0);}_0x592a1e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x592a1e['name']=_0x592a1e['name']||null,_0x592a1e['id']=_0x592a1e['id']||_0x2a0190(),_0x592a1e={..._0x592a1e,..._0x37b42e};const _0x459f92=this['addRevisionData'](_0x592a1e);_0x23636a['push'](_0x592a1e);const _0x5c4746=this['repository']['getIndex'](_0x459f92);if(0x0!==_0x5c4746){const _0x3a086d=this['repository']['getRevision'](_0x5c4746-0x1);if(_0x3a086d['fromVersion']!==_0x30534a){const _0x407ac5=this['_revisionDataBuilder']['getData'](_0x30534a,_0x3a086d['toVersion']),_0x562ee8={'id':_0x3a086d['id'],'diffData':_0x407ac5['diffData'],'authorsIds':_0x407ac5['authorsIds'],'authors':_0x407ac5['authorsIds']['map'](_0x14a5ff=>this['editor']['plugins']['get']('Users')['getUser'](_0x14a5ff)),'fromVersion':_0x30534a};_0x3a086d===this['currentRevision']&&(_0x562ee8['createdAt']=new Date(_0x592a1e['createdAt']['getTime']()+0xa)),_0x3a086d['_update'](_0x562ee8,!0x0),delete _0x562ee8['authors'],_0x23636a['push'](_0x562ee8);}}if(this['adapter']){for(const _0x50565a of _0x23636a)this['_bufferUpdate'](_0x50565a['id'],_0x50565a,!0x0);this['sendBufferedUpdates']();}return _0x459f92;}['addRevisionData'](_0x16f35f){const _0x59e93b=this['repository']['createRevision'](_0x16f35f);return this['adapter']&&_0x59e93b['on']('_update',(_0x4e9029,_0x49abcd,_0x21df6e)=>{_0x21df6e||(this['_bufferUpdate'](_0x49abcd['id'],_0x49abcd,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x59e93b,this['_findInsertionIndex'](_0x59e93b)),_0x59e93b;}async['getRevisionDocumentData'](_0x2fa378){await this['_loadRevisionData'](_0x2fa378);const _0x2f968d={};for(const _0x133e15 in _0x2fa378['diffData']){if(_0x2fa378['diffData'][_0x133e15]['attachChange']&&!_0x2fa378['diffData'][_0x133e15]['attachChange']['isAttached'])continue;const _0x4656ac=this['_removeRevisionMarkers'](JSON['parse'](_0x2fa378['diffData'][_0x133e15]['insertions'])),_0x18c4fc=this['editor']['editing']['view']['document'],_0x88d172=new _0x47c620(_0x18c4fc,_0x4656ac['map'](_0x1e2503=>C(_0x1e2503,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2f968d[_0x133e15]=this['editor']['data']['processor']['toData'](_0x88d172),this['editor']['data']['processor']['useFillerType']('default');}return _0x2f968d;}async['getRevisionRootsAttributes'](_0x32b7b2){await this['_loadRevisionData'](_0x32b7b2);const _0x3b66ca={};for(const _0x166b47 in _0x32b7b2['diffData'])_0x32b7b2['diffData'][_0x166b47]['attachChange']&&!_0x32b7b2['diffData'][_0x166b47]['attachChange']['isAttached']||(_0x3b66ca[_0x166b47]=_0x32b7b2['diffData'][_0x166b47]['attributesAfter']||{});return _0x3b66ca;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xefef34=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5b0b6b=0x0;_0x5b0b6b<_0xefef34['length'];_0x5b0b6b++){const _0x18ea39=_0xefef34[_0x5b0b6b];let _0x2782d1=!0x1;for(const _0x6ca086 of Object['keys'](_0x18ea39))void 0x0===_0x18ea39[_0x6ca086]?delete _0x18ea39[_0x6ca086]:'id'!==_0x6ca086&&(_0x2782d1=!0x0);_0x2782d1||(_0xefef34[_0x5b0b6b]=null);}if(_0xefef34=_0xefef34['filter'](_0x1ec2ca=>null!==_0x1ec2ca),!_0xefef34['length'])return;for(let _0x4061c4=0x0;_0x4061c4<_0xefef34['length'];_0x4061c4++){const _0x35bb63=_0xefef34[_0x4061c4];void 0x0!==_0x35bb63['fromVersion']&&void 0x0===_0x35bb63['toVersion']&&(_0x35bb63['toVersion']=this['repository']['getRevision'](_0x35bb63['id'])['toVersion']),void 0x0!==_0x35bb63['toVersion']&&void 0x0===_0x35bb63['fromVersion']&&(_0x35bb63['fromVersion']=this['repository']['getRevision'](_0x35bb63['id'])['fromVersion']);}const _0x28bf5e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xefef34,_0x28bf5e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1ff3b3=>{if(_0x1ff3b3){for(const _0x495504 of _0x1ff3b3)this['setRevisionData']({'id':_0x495504['id'],'createdAt':_0x495504['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x20f88e,_0x1804a7){let _0x2fa237=this['editor']['config']['get']('initialData'),_0x48a3b3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2fa237){_0x2fa237={};for(const _0x570181 of this['editor']['model']['document']['getRootNames']())_0x2fa237[_0x570181]='';}if('string'==typeof _0x2fa237&&(_0x2fa237={'main':_0x2fa237}),void 0x0===_0x48a3b3){_0x48a3b3={};for(const _0x3878f5 of this['editor']['model']['document']['getRootNames']())_0x48a3b3[_0x3878f5]={};}let _0x21b4f4=!0x1;const _0x57bc34=Object['keys'](_0x2fa237),_0x421659=Object['keys'](_0x20f88e);for(const _0x2d9d4d of _0x57bc34){if(_0x2fa237[_0x2d9d4d]!==_0x20f88e[_0x2d9d4d]&&''!==_0x2fa237[_0x2d9d4d]['trim']()){_0x21b4f4=!0x0;break;}if(!_0x30663f(_0x48a3b3[_0x2d9d4d],_0x1804a7[_0x2d9d4d])&&Object['keys'](_0x48a3b3[_0x2d9d4d])['length']>0x0){_0x21b4f4=!0x0;break;}}_0x21b4f4||(_0x21b4f4=_0x421659['some'](_0x5bc37f=>!this['editor']['model']['document']['getRoot'](_0x5bc37f))),_0x21b4f4&&_0x302d86('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2fa237,'editorRootsAttributes':_0x48a3b3,'revisionData':_0x20f88e,'revisionRootsAttributes':_0x1804a7}),this['editor']['config']['set']('initialData',_0x20f88e),this['editor']['config']['set']('rootsAttributes',_0x1804a7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x29f58d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x29f58d['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x541d3c){const _0x4fb62c=this['repository']['getRevisions']();_0x4fb62c['reverse']();let _0x2ad3ac=0x0;for(;_0x2ad3ac<_0x4fb62c['length'];){const _0x5a6152=_0x4fb62c[_0x2ad3ac];if(_0x5a6152===this['currentRevision']){_0x2ad3ac++;continue;}if(_0x5a6152['id']===this['_initialRevisionId'])break;const _0x446c1d=_0x541d3c['toVersion']-_0x5a6152['toVersion']||_0x541d3c['fromVersion']-_0x5a6152['fromVersion'];if(_0x446c1d>0x0)break;if(_0x446c1d<0x0)_0x2ad3ac++;else{if(!_0x541d3c['creator']&&_0x5a6152['creator'])break;if(_0x5a6152['creator']||!_0x541d3c['creator']){if(_0x541d3c['createdAt']>_0x5a6152['createdAt'])break;_0x2ad3ac++;}else _0x2ad3ac++;}}return _0x2ad3ac;}['setRevisionData'](_0xe47975){const _0x5416a4=this['repository']['getRevision'](_0xe47975['id']);if(_0xe47975['createdAt']&&(_0xe47975['createdAt']=new Date(_0xe47975['createdAt'])),_0xe47975['authorsIds']){const _0x325762=this['editor']['plugins']['get']('Users');_0xe47975['authors']=_0xe47975['authorsIds']['map'](_0x371f57=>_0x325762['getUser'](_0x371f57));}_0x5416a4['_update'](_0xe47975,!0x0);}['buildRevisionData']({revision:_0x3a246a=null,from:_0x5f9bec=null,to:_0x5cbf43=null}){_0x5f9bec=null!==_0x5f9bec?_0x5f9bec:_0x3a246a['fromVersion'],_0x5cbf43=null!==_0x5cbf43?_0x5cbf43:_0x3a246a['toVersion'];const _0x2a9434=this['_revisionDataBuilder']['getData'](_0x5f9bec,_0x5cbf43),_0x42901f={'diffData':_0x2a9434['diffData'],'authorsIds':_0x2a9434['authorsIds'],'fromVersion':_0x5f9bec,'toVersion':_0x5cbf43};if(!_0x3a246a||_0x5cbf43!==_0x3a246a['toVersion']){const _0x1114a2=_0x5cbf43-0x1,_0x9e4f13=this['_source']['history']['getOperation'](_0x1114a2);_0x42901f['createdAt']=_0x9e4f13&&_0x9e4f13['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5f9bec===this['_loadedStateData']['fromVersion']){for(const _0x57376c of this['_loadedStateData']['authors'])_0x42901f['authorsIds']['includes'](_0x57376c['id'])||_0x42901f['authorsIds']['push'](_0x57376c['id']);}return _0x42901f;}['_loadRevisionData'](_0x4386f5){if(!_0x4386f5||_0x4386f5['diffData'])return Promise['resolve']();{const _0x2531d3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2531d3,'revisionId':_0x4386f5['id']})['then'](_0x25b89f=>{_0x4386f5['diffData']=_0x25b89f['diffData'];});}}['_bufferUpdate'](_0x370335,_0x48eaf9,_0x293030){if(this['_bufferedUpdates']['has'](_0x370335)){const _0x2cb379=this['_bufferedUpdates']['get'](_0x370335);_0x48eaf9=_0x293030?{..._0x2cb379,..._0x48eaf9}:{..._0x48eaf9,..._0x2cb379};}this['_bufferedUpdates']['set'](_0x370335,_0x48eaf9);}['_getFromVersion'](_0x55fdb4){const _0x460878=this['repository']['getRevisions']();_0x460878['reverse'](),_0x460878['shift']();const _0x31bf12=_0x460878['find'](_0x536574=>_0x536574['toVersion']<=_0x55fdb4)['toVersion'];return _0x31bf12<this['_startingVersion']?this['_startingVersion']:_0x31bf12;}['_createInitialRevision'](_0x51085b){const _0x4e0cab=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4e0cab)this['_initialRevisionId']=_0x4e0cab['id'];else{const _0xf62e3e=!this['editor']['model']['document']['roots']['find'](_0xa6c859=>this['editor']['model']['hasContent'](_0xa6c859)),_0x205544=this['editor']['plugins']['get']('Users')['me']['id'],_0xb749f4=m(this['editor']['locale'],_0xf62e3e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x51085b,'to':_0x51085b,'id':this['_initialRevisionId'],'name':_0xb749f4,'creatorId':_0x205544});}}['_createCurrentRevision'](_0x48943c){const _0x31f46d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x31f46d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x48943c,'to':_0x48943c,'id':_0x31f46d,'name':'','creatorId':null}));}['_makeRevision']({name:_0xc27f99,from:_0x4332ff,to:_0x35eae6,creatorId:_0x39b8ed,id:_0x57567a}){const _0x4a4525=this['buildRevisionData']({'from':_0x4332ff,'to':_0x35eae6});_0x4a4525['name']=_0xc27f99,_0x4a4525['creatorId']=_0x39b8ed,_0x4a4525['id']=_0x57567a;const _0x371a7c=this['addRevisionData'](_0x4a4525);return this['adapter']&&this['_bufferUpdate'](_0x4a4525['id'],_0x4a4525,!0x0),_0x371a7c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xa48f66){return(_0xa48f66=_0xa48f66['filter'](_0xa45f25=>!_0xa45f25['name']||'revision-start'!==_0xa45f25['name']&&'revision-end'!==_0xa45f25['name']))['forEach'](_0x2d46b3=>{'string'!=typeof _0x2d46b3&&(_0x2d46b3['children']=this['_removeRevisionMarkers'](_0x2d46b3['children']),_0x2d46b3['attributes']=_0x2d46b3['attributes']['filter'](_0xd501d7=>!_0xd501d7[0x0]['startsWith']('data-revision-')));}),_0xa48f66;}}function C(_0x448431,_0x2a74c2){const _0xe00187=_0x2a74c2['editing']['view']['document'];if('string'==typeof _0x448431)return new _0x468e6d(_0xe00187,_0x448431);{const _0x561c90=_0x448431['children']['map'](_0x36c15f=>C(_0x36c15f,_0x2a74c2));return new(P[_0x448431['type']]||_0xd24324)(_0xe00187,_0x448431['name'],_0x448431['attributes'],_0x561c90);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x27707c){this['editor']=_0x27707c,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'](_0x54ed66){this['source']=_0x54ed66;const _0x185b93=new Map(),_0x134361=new Map(),_0x45c95e=this['editor']['model']['document']['roots']['map'](_0x41c234=>_0x41c234['rootName']);for(const _0xcf47d6 of _0x45c95e){const _0x6bef32=this['editor']['model']['document']['getRoot'](_0xcf47d6),_0xa15755=T(_0x6bef32);_0x185b93['set'](_0xcf47d6,_0xa15755),_0x134361['set'](_0xcf47d6,Object['fromEntries'](_0x6bef32['getAttributes']()));}const _0x350381=Array['from'](this['editor']['model']['markers'])['map'](_0x20506b=>[_0x20506b['name'],_0x20506b['getRange']()]),_0x15b186=this['source']['version'];this['_saveMetaData'](_0x15b186,_0x185b93,_0x350381,_0x134361),this['_startingRevisionId']=this['_revisionId'];const _0xe97cdd=new Map(),_0x3e602a=new Map();for(const _0x1ee9a0 of _0x45c95e){const _0x447c99=F(_0x1ee9a0);_0xe97cdd['set'](_0x1ee9a0,_0x447c99),_0x3e602a['set'](_0x1ee9a0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xe97cdd,[],_0x3e602a);}['getData'](_0x28de56,_0x4c0284){if(this['_lastFrom']===_0x28de56&&this['_lastTo']<=_0x4c0284)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4c0284,!0x0);else{if(!this['_savedMetaData']['has'](_0x28de56)){const _0xc205df=this['_getPreviousFrom'](_0x28de56);this['_calculateMetaData'](_0xc205df,_0x28de56,!0x1);}this['_calculateMetaData'](_0x28de56,_0x4c0284,!0x0);}return this['_lastFrom']=_0x28de56,this['_lastTo']=_0x4c0284,this['_getState']();}['loadState'](_0xc59c5c){this['_reset'](),this['_lastFrom']=_0xc59c5c['fromVersion'],this['_lastTo']=_0xc59c5c['toVersion'];for(const _0x13cd16 in _0xc59c5c['diffData']){const _0x4371ab=_0xc59c5c['diffData'][_0x13cd16]['attachChange'],_0x2938d2=_0x582feb(_0xc59c5c['diffData'][_0x13cd16]['attributesBefore'])||{},_0x413387=this['_makeModelFromViewString'](_0xc59c5c['diffData'][_0x13cd16]['deletions']);_0x413387['rootName']=_0x13cd16,_0x413387['_isAttached']=!_0x4371ab||!_0x4371ab['isAttached'],_0x413387['isAttached']=()=>_0x413387['_isAttached'],this['_baseRoots']['set'](_0x13cd16,_0x413387),this['_baseRootsAttributes']['set'](_0x13cd16,_0x2938d2),_0x4371ab&&this['_touchedRoots']['set'](_0x13cd16,_0x4371ab);const _0x2a2081=this['_makeIdsRoot'](_0x413387);this['_baseIdsRoots']['set'](_0x13cd16,_0x2a2081);for(const [_0x57eb31,_0x24f396]of _0x413387['markers']){if(!_0x57eb31['startsWith']('revision:'))continue;const _0x1e13ae=_0x57eb31['split'](':')[0x2];for(const _0x365289 of _0x24f396['getWalker']({'singleCharacters':!0x0})){const _0x50d60a=this['_getVidAttributeName'](_0x365289),_0x2e4e40='elementEnd'==_0x365289['type']?_0x365289['previousPosition']['path']['slice'](0x0,-0x1):_0x365289['previousPosition']['path'],_0x2db5e2=_0x2a2081['getNodeByPath'](_0x2e4e40)['getAttribute'](_0x50d60a);this['_touched']['set'](_0x2db5e2,{'userId':_0x1e13ae});}}}this['_startingRevisionId']=this['_revisionId'];const _0x57121f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x168042=>!this['_touched']['has'](_0x168042));let _0x1b6ef2=0x0;const _0x5a451b=new Map();for(const _0x374aa5 in _0xc59c5c['diffData']){const _0x37b493=_0xc59c5c['diffData'][_0x374aa5]['attachChange'],_0x53b810=_0x582feb(_0xc59c5c['diffData'][_0x374aa5]['attributesAfter'])||{},_0x37ddcc=this['_makeModelFromViewString'](_0xc59c5c['diffData'][_0x374aa5]['insertions']);_0x37ddcc['rootName']=_0x374aa5,_0x37ddcc['_isAttached']=!_0x37b493||_0x37b493['isAttached'],_0x37ddcc['isAttached']=()=>_0x37ddcc['_isAttached'],this['_diffRoots']['set'](_0x374aa5,_0x37ddcc),this['_diffRootsAttributes']['set'](_0x374aa5,_0x53b810);const _0x370f37=this['_makeIdsRoot'](_0x37ddcc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x374aa5,_0x370f37),_0x5a451b['set'](_0x374aa5,_0x37ddcc['isAttached']()?_0x53b810:{});for(const [_0x204f20,_0x302160]of _0x37ddcc['markers']){if(!_0x204f20['startsWith']('revision:'))continue;const _0x4e8258=_0x204f20['split'](':')[0x2];for(const _0x487a8a of _0x302160['getWalker']({'singleCharacters':!0x0})){const _0x1194a6=this['_getVidAttributeName'](_0x487a8a),_0x521cb4=this['_revisionId']++,_0x4be8a4='elementEnd'==_0x487a8a['type']?_0x487a8a['previousPosition']['path']['slice'](0x0,-0x1):_0x487a8a['previousPosition']['path'];_0x370f37['getNodeByPath'](_0x4be8a4)['_setAttribute'](_0x1194a6,_0x521cb4),this['_touched']['set'](_0x521cb4,{'userId':_0x4e8258});}}for(const _0x2de38a of this['editor']['model']['createRangeIn'](_0x37ddcc)['getWalker']({'singleCharacters':!0x0})){const _0xde4436=this['_getVidAttributeName'](_0x2de38a),_0x6b2b67='elementEnd'==_0x2de38a['type']?_0x2de38a['previousPosition']['path']['slice'](0x0,-0x1):_0x2de38a['previousPosition']['path'],_0x34ed60=_0x370f37['getNodeByPath'](_0x6b2b67);_0x34ed60['getAttribute'](_0xde4436)>0x0||_0x34ed60['_setAttribute'](_0xde4436,_0x57121f[_0x1b6ef2++]);}for(const [_0x35f2e3,_0x288800]of _0x37ddcc['markers'])_0x35f2e3['startsWith']('revision:')||this['_markers']['set'](_0x35f2e3,_0x288800);}const _0x20767c=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x20767c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x20767c,0x1));const _0x41cac8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x41cac8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x41cac8,0x1));const _0x178e4e=Array['from'](this['_diffRoots'])['map'](([_0x4337f7,_0x427c27])=>[_0x4337f7,T(_0x427c27)]);this['_saveMetaData'](this['_lastTo'],_0x178e4e,this['_markers'],_0x5a451b);}['_makeModelFromViewString'](_0x25ad09){const _0x30513d=JSON['parse'](_0x25ad09),_0x35deb4=this['editor']['editing']['view']['document'],_0x3643fd=new _0x47c620(_0x35deb4,_0x30513d['map'](_0x4db6ba=>C(_0x4db6ba,this['editor'])));return this['editor']['data']['toModel'](_0x3643fd);}['_saveMetaData'](_0x250332,_0x4d2566,_0x250038,_0x2d0a2e){const _0x26ff99=new Map(_0x4d2566),_0x3926e3=new Map(_0x582feb(_0x2d0a2e)),_0xc98189=new Map();for(const [_0x59715d,_0x592845]of _0x250038)_0xc98189['set'](_0x59715d,{'start':_0x592845['start']['clone'](),'end':_0x592845['end']['clone'](),'rootName':_0x592845['root']['rootName']});this['_savedMetaData']['set'](_0x250332,{'roots':_0x26ff99,'markers':_0xc98189,'rootsAttributes':_0x3926e3});}['_removeMetaData'](_0xb7268a){this['_savedMetaData']['delete'](_0xb7268a);}['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'](_0x1b56b9,_0x4db590=null){let _0x27b1b2=null;_0x1b56b9['is']('documentFragment')||(_0x27b1b2=new ft(_0x1b56b9['name'],{'vid_start':null===_0x4db590?this['_revisionId']++:_0x4db590++}));const _0x2020b0=[];for(const _0x4cca4e of _0x1b56b9['getChildren']())if(_0x4cca4e['is']('element')){_0x2020b0['push'](this['_makeIdsRoot'](_0x4cca4e,_0x4db590));const _0x23df83=_0x2020b0[_0x2020b0['length']-0x1];null!==_0x4db590&&(_0x4db590=_0x23df83['is']('element','$text')?_0x23df83['getAttribute']('vid')+0x1:_0x23df83['getAttribute']('vid_end')+0x1);}else{for(let _0x55aef6=0x0;_0x55aef6<_0x4cca4e['offsetSize'];_0x55aef6++)_0x2020b0['push'](new ft('$text',{'vid':null===_0x4db590?this['_revisionId']++:_0x4db590++}));}if(_0x1b56b9['is']('documentFragment')){const _0x14ed4d=F(_0x1b56b9['rootName']);return _0x14ed4d['_insertChild'](0x0,_0x2020b0),_0x14ed4d;}return _0x27b1b2['_setAttribute']('vid_end',null===_0x4db590?this['_revisionId']++:_0x4db590++),_0x27b1b2['_insertChild'](0x0,_0x2020b0),_0x27b1b2;}['_calculateMetaData'](_0x4f6bbb,_0x3604ec,_0x37d9bb){this['_reset']();const {roots:_0x388b66,markers:_0x1f4b86,rootsAttributes:_0x1a3c94}=this['_savedMetaData']['get'](_0x4f6bbb);this['_baseRoots']=new Map(_0x388b66),this['_baseRootsAttributes']=new Map(_0x582feb(_0x1a3c94));for(const [_0x849aff,_0x2a4856]of this['_baseRoots'])if('$graveyard'!==_0x849aff&&(this['_diffRoots']['set'](_0x849aff,T(_0x2a4856)),this['_diffRootsAttributes']=new Map(_0x582feb(_0x1a3c94)),_0x37d9bb)){const _0x56ccf6=this['_revisionId'];this['_idsRoots']['set'](_0x849aff,this['_makeIdsRoot'](_0x2a4856)),this['_baseIdsRoots']['set'](_0x849aff,this['_makeIdsRoot'](_0x2a4856,_0x56ccf6));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x37d9bb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x16c2bd,_0x1a752a]of _0x1f4b86){const _0x26de94=this['_baseRoots']['get'](_0x1a752a['rootName']),_0x359d22=this['_diffRoots']['get'](_0x1a752a['rootName']),_0x2ac894=new vt(this['_fixPosition'](_0x1a752a['start'],_0x26de94),this['_fixPosition'](_0x1a752a['end'],_0x26de94)),_0x177ab9=this['_fixRange'](_0x2ac894,_0x359d22);_0x26de94['markers']['set'](_0x16c2bd,_0x2ac894),this['_markers']['set'](_0x16c2bd,_0x177ab9);}this['_applyOperations'](_0x4f6bbb,_0x3604ec,_0x37d9bb);}['_applyOperations'](_0xb467a0,_0x7659db,_0x48ffe5){for(const _0x1f6aa1 of this['source']['getOperations'](_0xb467a0,_0x7659db))this['_handleOperation'](_0x1f6aa1,_0x48ffe5);for(const _0x3a7c54 of this['_diffRoots']['values']())_0x3a7c54['markers']['clear']();for(const [_0x49a407,_0x57f0f5]of this['_markers']){this['_diffRoots']['get'](_0x57f0f5['root']['rootName'])['markers']['set'](_0x49a407,_0x57f0f5['clone']());}const _0x3feea9=new Map(),_0xbc2d5c=new Map();for(const [_0x34ec4a,_0x32489e]of this['_diffRoots'])_0x3feea9['set'](_0x34ec4a,T(_0x32489e)),_0xbc2d5c['set'](_0x34ec4a,this['_diffRootsAttributes']['get'](_0x34ec4a));this['_saveMetaData'](_0x7659db,_0x3feea9,this['_markers'],_0xbc2d5c);}['_getPreviousFrom'](_0x313d54){const _0x2d4cd3=Array['from'](this['_savedMetaData']['keys']());_0x2d4cd3['sort']((_0x11dc7b,_0x127c06)=>_0x11dc7b-_0x127c06),_0x2d4cd3['reverse']();for(const _0x35ed72 of _0x2d4cd3)if(_0x35ed72<_0x313d54)return _0x35ed72;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1c5a51,_0x56a192){const _0x59b92f=Array['from'](_0x56a192['markers'])['map'](([_0x298eb3,_0x50096a])=>[_0x298eb3,this['_fixRange'](_0x50096a,_0x1c5a51)]);_0x1c5a51['markers']=new Map(_0x59b92f);}['_transformMarkers'](_0x1d19e3){for(const _0x23b333 of this['_markers']['values']()){const _0x42a3ed=_0x23b333['getTransformedByOperation'](_0x1d19e3),_0x1964f9=vt['_createFromRanges'](_0x42a3ed);_0x23b333['start']=_0x1964f9['start'],_0x23b333['end']=_0x1964f9['end'];}}['_handleOperation'](_0x2e5262,_0x26dbbd){if('addRoot'!=_0x2e5262['type']&&'detachRoot'!=_0x2e5262['type']){if('insert'==_0x2e5262['type']){const _0x10a418=_0x2e5262['position']['root']['rootName'];this['_diffRoots']['has'](_0x10a418)||(this['_diffRoots']['set'](_0x10a418,F(_0x10a418,!0x0)),this['_diffRootsAttributes']['set'](_0x10a418,{}),_0x26dbbd&&this['_idsRoots']['set'](_0x10a418,F(_0x10a418,!0x0)));}else{if('addRootAttribute'==_0x2e5262['type']||'removeRootAttribute'==_0x2e5262['type']||'changeRootAttribute'==_0x2e5262['type'])return void this['_handleRootAttributeOperation'](_0x2e5262);'marker'==_0x2e5262['type']&&this['_handleMarkerOperation'](_0x2e5262);}if('marker'!==_0x2e5262['type']){const _0x22724a=this['_cloneOperation'](_0x2e5262,this['_diffRoots']);_0x22724a['_execute'](),this['_transformMarkers'](_0x22724a);}if(_0x26dbbd)switch(_0x2e5262['type']){case'insert':this['_handleInsertOperation'](_0x2e5262);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2e5262);break;case'merge':this['_handleMergeOperation'](_0x2e5262);break;case'split':this['_handleSplitOperation'](_0x2e5262);}}else this['_handleRootOperation'](_0x2e5262,_0x26dbbd);}['_cloneOperation'](_0x243e46,_0x306efd){const _0x4c50c8=_0x243e46['clone']();return _0x4c50c8['_authorId']=_0x243e46['_authorId'],this['_fixOperation'](_0x4c50c8,_0x306efd),_0x4c50c8;}['_getBaseVids'](_0x6efc8e){return _0x6efc8e['map'](_0x5c5f03=>{const _0x4f0343=this['_getVidAttributeName'](_0x5c5f03);return Number(_0x5c5f03['item']['getAttribute'](_0x4f0343));});}['_generateTape'](_0x24367f,_0x4cd459){if(_0x24367f['is']('element','$text'))_0x4cd459['push']({'item':_0x24367f,'type':'text'});else{_0x24367f['is']('element')&&_0x4cd459['push']({'item':_0x24367f,'type':'elementStart'});for(const _0x22b65e of _0x24367f['getChildren']())this['_generateTape'](_0x22b65e,_0x4cd459);_0x24367f['is']('element')&&_0x4cd459['push']({'item':_0x24367f,'type':'elementEnd'});}return _0x4cd459;}['_getState'](){const _0x29595c=new Map(this['_touched']),_0x1d8ca2=new Map(_0x29595c),_0x1f9a3f=new Map(),_0x23ebf4={'insertions':{},'deletions':{}},_0x3866e0={'insertions':{},'deletions':{}},_0x4c6016=new Map(),_0x22dc72=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x22dc72['delete']('$graveyard');for(const _0x340cf3 of _0x22dc72){const _0x14cea4=this['_diffRoots']['get'](_0x340cf3)||F(_0x340cf3,!0x1),_0x42f979=this['_baseRoots']['get'](_0x340cf3)||F(_0x340cf3,!0x1);_0x14cea4['isAttached']()||_0x42f979['isAttached']()?(_0x23ebf4['insertions'][_0x340cf3]=T(_0x14cea4),_0x23ebf4['deletions'][_0x340cf3]=T(_0x42f979),this['_copyMarkers'](_0x23ebf4['deletions'][_0x340cf3],_0x42f979),this['_copyMarkers'](_0x23ebf4['insertions'][_0x340cf3],_0x14cea4),_0x3866e0['insertions'][_0x340cf3]=this['_generateTape'](this['_idsRoots']['get'](_0x340cf3),[]),_0x3866e0['deletions'][_0x340cf3]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x340cf3)||F(_0x340cf3,!0x1),[])):_0x22dc72['delete'](_0x340cf3);}for(const _0x501d22 of _0x22dc72){const _0x4e59ce=_0x3866e0['insertions'][_0x501d22];for(const _0x4f356d of _0x4e59ce){const _0x1e6436=this['_getVidAttributeName'](_0x4f356d),_0x4b04c2=_0x4f356d['item']['getAttribute'](_0x1e6436);_0x1d8ca2['delete'](_0x4b04c2),_0x4b04c2>=this['_startingRevisionId']&&_0x1f9a3f['set'](_0x4b04c2,_0x29595c['get'](_0x4b04c2));}}for(const _0x44dd8d of _0x22dc72){const _0x5b2b60=_0x3866e0['insertions'][_0x44dd8d],_0x202601=this['_getBaseVids'](_0x3866e0['deletions'][_0x44dd8d]);let _0x12754a=0x0;for(const _0x290e7c of _0x5b2b60){const _0x150504=this['_getVidAttributeName'](_0x290e7c),_0x11eeac=_0x290e7c['item']['getAttribute'](_0x150504);if(!_0x1f9a3f['has'](_0x11eeac)&&!_0x4c6016['has'](_0x11eeac)){if(_0x1d8ca2['has'](_0x11eeac))_0x12754a++;else{if(_0x11eeac!=_0x202601[_0x12754a]){const _0x5dca33=_0x29595c['get'](_0x11eeac)||_0x29595c['get'](_0x202601[_0x12754a]);for(;_0x11eeac!=_0x202601[_0x12754a];)_0x1d8ca2['has'](_0x202601[_0x12754a])||(_0x4c6016['set'](_0x202601[_0x12754a],_0x5dca33),_0x29595c['set'](_0x202601[_0x12754a],_0x5dca33)),_0x12754a++;}_0x12754a++;}}}}for(const _0x3b8abe of _0x22dc72){const _0x5a1e77=_0x3866e0['insertions'][_0x3b8abe];for(const _0x4d5d91 of _0x5a1e77){const _0x37e4c2=this['_getVidAttributeName'](_0x4d5d91),_0x4926a2=_0x4d5d91['item']['getAttribute'](_0x37e4c2);if(_0x4c6016['has'](_0x4926a2)){const _0x1fa772=_0x4c6016['get'](_0x4926a2);_0x1d8ca2['has'](_0x4926a2)||_0x1d8ca2['set'](_0x4926a2,{..._0x1fa772}),_0x1f9a3f['set'](_0x4926a2,{..._0x1fa772});}}}for(const _0x29004a of _0x1d8ca2['keys']())_0x29004a>=this['_startingRevisionId']&&_0x1d8ca2['delete'](_0x29004a);const _0x255a3a=new Map();for(const _0x331ff3 of _0x22dc72){let _0x70733=_0x3866e0['insertions'][_0x331ff3];for(const _0x1950cf of _0x70733)if(_0x1950cf['item']['is']('element','tableCell')){const _0x18a837=this['_getVidAttributeName'](_0x1950cf),_0x5dc7cd=_0x1950cf['item']['getAttribute'](_0x18a837);if(_0x1f9a3f['has'](_0x5dc7cd)){const _0x2ec209=_0x1950cf['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f3958=_0x255a3a['get'](_0x2ec209)||new Set();_0x4f3958['add'](_0x1f9a3f['get'](_0x5dc7cd)['userId']),_0x255a3a['set'](_0x2ec209,_0x4f3958);}}_0x70733=_0x3866e0['deletions'][_0x331ff3];for(const _0x373d5a of _0x70733)if(_0x373d5a['item']['is']('element','tableCell')){const _0x312e3f=this['_getVidAttributeName'](_0x373d5a),_0xf362e=_0x373d5a['item']['getAttribute'](_0x312e3f);if(_0x1d8ca2['has'](_0xf362e)){const _0x2b3e93=_0x373d5a['item']['parent']['parent']['getAttribute']('vid_start'),_0xd90501=_0x255a3a['get'](_0x2b3e93)||new Set();_0xd90501['add'](_0x1d8ca2['get'](_0xf362e)['userId']),_0x255a3a['set'](_0x2b3e93,_0xd90501);}}for(const _0x59e2a1 of _0x255a3a['keys']())(_0x1f9a3f['has'](_0x59e2a1)||_0x1d8ca2['has'](_0x59e2a1))&&_0x255a3a['delete'](_0x59e2a1);}for(const _0x144e7b of _0x22dc72){const _0xc68ce2=_0x3866e0['insertions'][_0x144e7b];let _0x1453c0=null,_0x13716e=null;for(const _0x1c45d2 of _0xc68ce2){const _0xeb4eb8=this['_getVidAttributeName'](_0x1c45d2),_0x4237eb=_0x1c45d2['item']['getAttribute'](_0xeb4eb8),_0x359b28=_0x255a3a['get'](_0x4237eb);_0x359b28&&'elementStart'==_0x1c45d2['type']&&(_0x1453c0=Array['from'](_0x359b28)[0x0],_0x13716e=_0x1c45d2['item']['getAttribute']('vid_end')),_0x1453c0&&(_0x1d8ca2['set'](_0x4237eb,{'userId':_0x1453c0}),_0x1f9a3f['set'](_0x4237eb,{'userId':_0x1453c0})),_0x4237eb==_0x13716e&&(_0x1453c0=null,_0x13716e=null);}}const _0x5bd296={},_0x2c4a52=new Set();for(const _0x3795f7 of _0x22dc72){const _0x55e01a=_0x23ebf4['deletions'][_0x3795f7],_0x452cce=_0x23ebf4['insertions'][_0x3795f7];for(const {userId:_0x23c2e0}of this['_touchedMarkers']['values']())null!==_0x23c2e0&&_0x2c4a52['add'](_0x23c2e0);for(const {userId:_0x5a3a95}of this['_touchedRoots']['values']())null!==_0x5a3a95&&_0x2c4a52['add'](_0x5a3a95);this['_markChanges'](_0x452cce,_0x3866e0['insertions'][_0x3795f7],_0x1f9a3f,'insertion',_0x2c4a52),this['_markChanges'](_0x55e01a,_0x3866e0['deletions'][_0x3795f7],_0x1d8ca2,'deletion',_0x2c4a52),_0x5bd296[_0x3795f7]={'insertions':this['_prepareViewToSave'](_0x452cce),'deletions':this['_prepareViewToSave'](_0x55e01a),'attachChange':this['_touchedRoots']['get'](_0x3795f7)||null,'attributesBefore':_0x582feb(this['_baseRootsAttributes']['get'](_0x3795f7))||{},'attributesAfter':_0x582feb(this['_diffRootsAttributes']['get'](_0x3795f7))};}return{'diffData':_0x5bd296,'authorsIds':Array['from'](_0x2c4a52)};}['_processRootBeforeSave'](_0x3761fa){for(const [,_0x40639d]of _0x3761fa['markers']){const _0x429181=_0x40639d['start']['getAncestors']()['filter'](_0x41829f=>'tableCell'==_0x41829f['name']);for(const _0x50145b of _0x429181)0x1==_0x50145b['childCount']&&_0x50145b['getChild'](0x0)['is']('element','paragraph')&&_0x50145b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x48de50){this['_processRootBeforeSave'](_0x48de50);const _0x5eb59b=this['editor']['data']['toView'](_0x48de50,{}),_0x12c289=Array['from'](_0x5eb59b['getChildren']())['map'](_0x1ff645=>this['_getViewJson'](_0x1ff645));return JSON['stringify'](_0x12c289);}['_getViewJson'](_0x1f2831){if(_0x1f2831['is']('$text'))return _0x1f2831['data'];{const _0x518693=_0x1f2831;return{'type':Object['keys'](P)['find'](_0x29bb52=>_0x1f2831 instanceof P[_0x29bb52]),'name':_0x518693['name'],'attributes':Array['from'](_0x518693['getAttributes']()),'children':Array['from'](_0x518693['getChildren']())['map'](_0x42cd0f=>this['_getViewJson'](_0x42cd0f))};}}['_markChanges'](_0xa759e1,_0x22831a,_0x4963fd,_0xdb94e5,_0x5cd12c){let _0x5246b0=null,_0x22230b=null,_0x3553a3=0x0;const _0x357600=this['editor']['model'];for(let _0x179614=0x0;_0x179614<_0x22831a['length'];_0x179614++){const _0x47fbb0=this['_getVidAttributeName'](_0x22831a[_0x179614]),_0x18ee81=_0x22831a[_0x179614]['item']['getAttribute'](_0x47fbb0),_0x4d6e76=_0x4963fd['get'](_0x18ee81),_0x3830b5=_0x179614==_0x22831a['length']-0x1;(!_0x5246b0&&_0x4d6e76&&(_0x5246b0=_0x4d6e76,_0x22230b=_0x22831a[_0x179614]),_0x5246b0&&(!_0x4d6e76||_0x4d6e76['userId']!=_0x5246b0['userId']))&&(_0x18673e(_0x4d6e76,B(_0x22230b,_0xa759e1,_0x357600),B(_0x22831a[_0x179614],_0xa759e1,_0x357600)),_0x5246b0=_0x4d6e76||null,_0x22230b=_0x4d6e76?_0x22831a[_0x179614]:null),_0x5246b0&&_0x3830b5&&_0x18673e(_0x4d6e76,B(_0x22230b,_0xa759e1,_0x357600),J(_0x22831a[_0x179614],_0xa759e1,_0x357600));}function _0x18673e(_0xce01af,_0x538962,_0xf89005){const _0x5b8055=_0x5246b0['userId'],_0x5f3862='revision:'+_0xdb94e5+':'+_0x5b8055+':'+_0x3553a3++,_0x111935=_0x357600['createRange'](_0x538962,_0xf89005);_0xa759e1['markers']['set'](_0x5f3862,_0x111935),null!==_0x5b8055&&_0x5cd12c['add'](_0x5b8055);}}['_getVidAttributeName'](_0x11b812){switch(_0x11b812['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x10bfac,_0x3e1b65){_0x10bfac['baseVersion']=null;for(const _0x3d9c5b in _0x10bfac){const _0x123477=_0x10bfac[_0x3d9c5b];if(_0x123477 instanceof gt){const _0x2cbd69=_0x3e1b65['get'](_0x123477['root']['rootName']);_0x10bfac[_0x3d9c5b]=this['_fixPosition'](_0x123477,_0x2cbd69);}if(_0x123477 instanceof vt){const _0x1abfe3=_0x3e1b65['get'](_0x123477['root']['rootName']);_0x10bfac[_0x3d9c5b]=this['_fixRange'](_0x123477,_0x1abfe3);}'root'===_0x3d9c5b&&(_0x10bfac['root']=_0x3e1b65['get'](_0x10bfac['root']['rootName']));}}['_fixRange'](_0x4391c5,_0x41b547){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4391c5['start'],_0x41b547),this['_fixPosition'](_0x4391c5['end'],_0x41b547));}['_fixPosition'](_0x2c8e76,_0x3df525){return this['editor']['model']['createPositionFromPath'](_0x3df525,_0x2c8e76['path'],_0x2c8e76['stickiness']);}['_handleInsertOperation'](_0x5ef4b4){const _0x5f6b71=this['_idsRoots']['get'](_0x5ef4b4['position']['root']['rootName']),_0x25fb87=this['_fixPosition'](_0x5ef4b4['position'],_0x5f6b71),_0x20f277=null===_0x5ef4b4['_authorId']?null:_0x5ef4b4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2697a1=_0x25fb87['parent'],_0x3cf896=this['_revisionId'],_0x5445c3=[];for(const _0x3a2af3 of _0x5ef4b4['nodes'])if(_0x3a2af3['is']('element'))_0x5445c3['push'](this['_makeIdsRoot'](_0x3a2af3));else{for(let _0x32fe4a=0x0;_0x32fe4a<_0x3a2af3['offsetSize'];_0x32fe4a++)_0x5445c3['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x164edf=this['_revisionId'];for(let _0x2cf17c=_0x3cf896;_0x2cf17c<_0x164edf;_0x2cf17c++)this['_touched']['set'](_0x2cf17c,{'userId':_0x20f277});_0x2697a1['_insertChild'](_0x25fb87['offset'],_0x5445c3);}['_handleMoveOperation'](_0x14b682){(_0x14b682=this['_cloneOperation'](_0x14b682,this['_idsRoots']))['_execute']();const _0x765329=null===_0x14b682['_authorId']?null:_0x14b682['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a0b7e=_0x14b682['getMovedRangeStart'](),_0x1d5d21=_0x5a0b7e['parent'],_0x21bfe0=_0x5a0b7e['offset'];!function _0x4a3b56(_0x3f944e,_0x1f42ad,_0x2c1736,_0xb33b1b){for(let _0x648482=_0x2c1736;_0x648482<_0xb33b1b;_0x648482++){const _0x32706a=_0x1f42ad['getChild'](_0x648482);_0x32706a['is']('element','$text')?_0x3f944e['set'](_0x32706a['getAttribute']('vid'),{'userId':_0x765329}):(_0x3f944e['set'](_0x32706a['getAttribute']('vid_start'),{'userId':_0x765329}),_0x4a3b56(_0x3f944e,_0x32706a,0x0,_0x32706a['childCount']),_0x3f944e['set'](_0x32706a['getAttribute']('vid_end'),{'userId':_0x765329}));}}(this['_touched'],_0x1d5d21,_0x21bfe0,_0x21bfe0+_0x14b682['howMany']);}['_handleMergeOperation'](_0x47b4b8){const _0x48cd97=null===(_0x47b4b8=this['_cloneOperation'](_0x47b4b8,this['_idsRoots']))['_authorId']?null:_0x47b4b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55bb3f=_0x47b4b8['targetPosition']['parent'],_0x2b1203=_0x47b4b8['sourcePosition']['parent'],_0x39b948=_0x55bb3f['getAttribute']('vid_end'),_0x4b00ff=_0x2b1203['getAttribute']('vid_start');_0x55bb3f['_setAttribute']('vid_end',_0x2b1203['getAttribute']('vid_end')),_0x2b1203['_setAttribute']('vid_end',_0x39b948),this['_touched']['set'](_0x4b00ff,{'userId':_0x48cd97}),this['_touched']['set'](_0x39b948,{'userId':_0x48cd97}),_0x47b4b8['_execute']();}['_handleSplitOperation'](_0x4ed291){const _0x529e3e=null===(_0x4ed291=this['_cloneOperation'](_0x4ed291,this['_idsRoots']))['_authorId']?null:_0x4ed291['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x112c32=_0x4ed291['graveyardPosition'],_0x2cc085=_0x4ed291['splitPosition']['parent'];_0x4ed291['_execute']();const _0x2b7614=_0x2cc085['getAttribute']('vid_end'),_0x5009b2=_0x4ed291['insertionPosition']['nodeAfter'];if(_0x112c32){const _0x415972=_0x5009b2['getAttribute']('vid_end'),_0x300cd1=_0x2cc085['getAttribute']('vid_end');_0x2cc085['_setAttribute']('vid_end',_0x415972),_0x5009b2['_setAttribute']('vid_end',_0x300cd1),this['_touched']['set'](_0x2cc085['getAttribute']('vid_end'),{'userId':_0x529e3e}),this['_touched']['set'](_0x5009b2['getAttribute']('vid_start'),{'userId':_0x529e3e});}else{const _0x24ec65=this['_revisionId']++,_0x42008b=this['_revisionId']++;_0x2cc085['_setAttribute']('vid_end',_0x24ec65),_0x5009b2['_setAttribute']('vid_start',_0x42008b),_0x5009b2['_setAttribute']('vid_end',_0x2b7614),this['_touched']['set'](_0x24ec65,{'userId':_0x529e3e}),this['_touched']['set'](_0x42008b,{'userId':_0x529e3e});}}['_handleMarkerOperation'](_0x2fca25){if(!_0x2fca25['affectsData'])return;const _0x5eb5b7=(_0x2fca25=this['_cloneOperation'](_0x2fca25,this['_diffRoots']))['oldRange']?_0x2fca25['oldRange']['root']:null,_0x4d79ce=_0x2fca25['newRange']?_0x2fca25['newRange']['root']:null;_0x5eb5b7&&this['_markers']['delete'](_0x2fca25['name']),_0x4d79ce&&this['_markers']['set'](_0x2fca25['name'],_0x2fca25['newRange']['clone']());const _0x21ce3a=null===_0x2fca25['_authorId']?null:_0x2fca25['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe48c23=_0x2fca25['name'];if(!this['_touchedMarkers']['has'](_0xe48c23))return void this['_touchedMarkers']['set'](_0xe48c23,{'range':_0x2fca25['oldRange'],'userId':_0x21ce3a});const _0x8f9002=this['_touchedMarkers']['get'](_0xe48c23),_0x442a8b=_0x8f9002['range'],_0x2b65c6=_0x2fca25['newRange'];null==_0x442a8b&&null==_0x2b65c6||_0x442a8b&&_0x2b65c6&&_0x442a8b['isEqual'](_0x2b65c6)?this['_touchedMarkers']['delete'](_0x2fca25['name']):_0x8f9002['userId']=_0x21ce3a;}['_handleRootOperation'](_0x46c52b,_0x4faa0d){this['_diffRoots']['has'](_0x46c52b['rootName'])?this['_diffRoots']['get'](_0x46c52b['rootName'])['_isAttached']=_0x46c52b['isAdd']:(this['_diffRoots']['set'](_0x46c52b['rootName'],F(_0x46c52b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x46c52b['rootName'],{}),_0x4faa0d&&this['_idsRoots']['set'](_0x46c52b['rootName'],F(_0x46c52b['rootName'],!0x0)));const _0x297cce=null===_0x46c52b['_authorId']?null:_0x46c52b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5cfeef=this['_touchedRoots']['get'](_0x46c52b['rootName']);_0x5cfeef&&_0x5cfeef['userId']===_0x297cce?this['_touchedRoots']['delete'](_0x46c52b['rootName']):this['_touchedRoots']['set'](_0x46c52b['rootName'],{'userId':_0x297cce,'isAttached':_0x46c52b['isAdd']});}['_handleRootAttributeOperation'](_0x54c9d2){const _0x486587=this['_diffRootsAttributes']['get'](_0x54c9d2['root']['rootName']);null===_0x54c9d2['newValue']?delete _0x486587[_0x54c9d2['key']]:_0x486587[_0x54c9d2['key']]=_0x54c9d2['newValue'];}}function T(_0x5a54c2){const _0x5ce59b=F(_0x5a54c2['rootName'],_0x5a54c2['isAttached']());for(const _0x58211c of _0x5a54c2['getChildren']()){const _0x15fe8e=_0x58211c['_clone'](!0x0);_0x5ce59b['_appendChild'](_0x15fe8e);}return _0x5ce59b;}function F(_0xe223f,_0x49b244=!0x0){const _0xc485ed=new mt();return _0xc485ed['rootName']=_0xe223f,_0xc485ed['_isAttached']=_0x49b244,_0xc485ed['isAttached']=()=>_0xc485ed['_isAttached'],_0xc485ed;}function B(_0x5eabcb,_0x10896b,_0x5c80c2){const _0xa7347d='elementEnd'==_0x5eabcb['type']?_0x5c80c2['createPositionAt'](_0x5eabcb['item'],'end'):_0x5c80c2['createPositionBefore'](_0x5eabcb['item']);return _0x5c80c2['createPositionFromPath'](_0x10896b,_0xa7347d['path'],_0xa7347d['stickiness']);}function J(_0x593b99,_0x55860c,_0x4eefc2){const _0xeb6ad5='elementStart'==_0x593b99['type']?_0x4eefc2['createPositionAt'](_0x593b99['item'],0x0):_0x4eefc2['createPositionAfter'](_0x593b99['item']);return _0x4eefc2['createPositionFromPath'](_0x55860c,_0xeb6ad5['path'],_0xeb6ad5['stickiness']);}class hs extends _0xe423a3{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x205e2d,_0x2341c1){super(_0x205e2d),this['focusTracker']=new _0x529518(),this['keystrokes']=new _0x559742(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2341c1),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'](),_0xce764({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x569cb0=_0x3d6f74=>_0x3d6f74['stopPropagation']();this['keystrokes']['set']('arrowright',_0x569cb0),this['keystrokes']['set']('arrowleft',_0x569cb0),this['keystrokes']['set']('arrowup',_0x569cb0),this['keystrokes']['set']('arrowdown',_0x569cb0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x345305){this['revisionNameInputView']['fieldView']['element']['value']=_0x345305['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x282c71){const _0x567c25=new nt(this['locale'],_0x1e4dd9),_0x5dbb50=_0x567c25['fieldView'];_0x5dbb50['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2c75f7=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x282c71&&(_0x2c75f7+='\x20('+m(this['locale'],'optional')+')'),(_0x567c25['label']=_0x2c75f7,_0x5dbb50['on']('input',()=>{this['revisionNameInputValue']=_0x5dbb50['element']['value']['trim']();}),_0x567c25);}}class u extends _0x417e25{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4a1663=this['editor'],_0x2e6fb8=_0x4a1663['plugins']['get']('RevisionTracker');_0x4a1663['ui']['componentFactory']['add']('revisionHistory',_0x49ae57=>{const _0x287f3c=_0x4c6b24(_0x49ae57),_0x5e844e=_0x287f3c['panelView']['children'],_0x7fdb94=new _0xf7138(_0x49ae57),_0x3889db=new _0x5931da(_0x49ae57),_0x2c2110=new _0x5a62bb(_0x49ae57),_0x44517f=new _0x5931da(_0x49ae57),_0x182b02=new _0x5a62bb(_0x49ae57);return _0x287f3c['bind']('isEnabled')['to'](_0x2e6fb8,'isReady',_0x2e6fb8,'isEnabled',_0x4a1663,'isReadOnly',(_0x50843c,_0x28fdc2,_0x369f26)=>_0x50843c&&_0x28fdc2&&!_0x369f26),_0x287f3c['buttonView']['set']({'icon':_0x5aa4d3['history'],'label':m(_0x49ae57,'Revision\x20history'),'tooltip':!0x0}),_0x2c2110['set']({'label':m(_0x49ae57,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2c2110['bind']('isEnabled')['to'](_0x2e6fb8,'isReady',_0x2e6fb8,'isEnabled',_0x4a1663,'isReadOnly',(_0x14146f,_0x25c838,_0x570af4)=>_0x14146f&&_0x25c838&&!_0x570af4),_0x2c2110['on']('execute',()=>this['_showDialog']()),_0x182b02['set']({'label':m(_0x49ae57,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x182b02['bind']('isEnabled')['to'](_0x2e6fb8,'isReady',_0x4a1663,'isReadOnly',(_0x37ac53,_0xe1dbab)=>_0x37ac53&&!_0xe1dbab),_0x182b02['on']('execute',()=>{_0x4a1663['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x287f3c['isOpen']=!0x1,_0x4a1663['editing']['view']['focus']();}),_0x3889db['children']['add'](_0x2c2110),_0x44517f['children']['add'](_0x182b02),_0x7fdb94['role']='menu',_0x7fdb94['items']['addMany']([_0x3889db,_0x44517f]),_0x5e844e['add'](_0x7fdb94),_0x287f3c;}),_0x4a1663['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3a24c3=this['editor'],_0x2573d7=_0x3a24c3['locale'],_0x195f2b=new _0x2ac09c(_0x2573d7),_0x3cbcf9=new _0x3d3595(_0x2573d7);_0x195f2b['buttonView']['set']({'icon':_0x5aa4d3['history'],'label':m(_0x2573d7,'Revision\x20history')});const _0x20fd51=new _0x1e773c(_0x2573d7,_0x195f2b),_0x2b2ede=new _0x320f1a(_0x2573d7);_0x2b2ede['set']({'label':m(_0x2573d7,'Save\x20current\x20revision')}),_0x2b2ede['delegate']('execute')['to'](_0x195f2b),_0x2b2ede['on']('execute',()=>{this['_showDialog']();}),_0x20fd51['children']['add'](_0x2b2ede),_0x3cbcf9['items']['add'](_0x20fd51);const _0xccc5d6=new _0x1e773c(_0x2573d7,_0x195f2b),_0x4fe038=new _0x320f1a(_0x2573d7);return _0x4fe038['set']({'label':m(_0x2573d7,'Open\x20revision\x20history')}),_0x4fe038['delegate']('execute')['to'](_0x195f2b),_0x4fe038['on']('execute',()=>{_0x3a24c3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xccc5d6['children']['add'](_0x4fe038),_0x3cbcf9['items']['add'](_0xccc5d6),_0x195f2b['panelView']['children']['add'](_0x3cbcf9),_0x195f2b;}['_showDialog'](){const _0x2f0883=this['editor'],_0x5c9ae2=_0x2f0883['locale'],_0x48d661=_0x2f0883['plugins']['get']('Dialog'),_0x482307=_0x2f0883['plugins']['get']('RevisionTracker');function _0x383493(_0x120496){_0x2f0883['config']['get']('revisionHistory.requireRevisionName')&&''===_0x120496['revisionName']?_0x120496['revisionNameInputView']['errorText']=m(_0x5c9ae2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2f0883['plugins']['get'](l)['saveRevision']({'name':_0x120496['revisionName']}),_0x48d661['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x383493(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x48d661['show']({'id':'revisionSave','title':m(_0x5c9ae2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2f0883['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x48d661['hide']()},{'label':m(_0x2f0883['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1263f2){_0x1263f2['bind']('isEnabled')['to'](_0x482307,'isReady',_0x482307,'isEnabled',_0x2f0883,'isReadOnly',(_0x29ff1b,_0x5923ec,_0x22b91c)=>_0x29ff1b&&_0x5923ec&&!_0x22b91c);},'onExecute':()=>_0x383493(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x36e38e=this['editor'],_0x2349ed=_0x36e38e['locale'];this['_saveRevisionFormView']=new hs(_0x2349ed,_0x36e38e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0xe423a3{['changeId'];['_model'];constructor(_0xe0b16b,_0x3e54be){super(_0xe0b16b),this['_model']=_0x3e54be,this['changeId']=_0x3e54be['id'];const _0xeb981d=this['bindTemplate'],_0x1860b8=m(_0xe0b16b,_0x3e54be['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3e54be['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3e54be['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xeb981d['to']('type',_0x104254=>'ck-revision-change__'+_0x104254)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1860b8}]},{'text':'\x20'+_0x3e54be['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5320d2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x22da73){super(),this['id']=_0x22da73['id']||_0x2a0190(),this['author']=_0x22da73['author'],this['type']=_0x22da73['type'],this['data']=_0x22da73['data']||{},this['rootName']=_0x22da73['rootName'],this['set']('createdAt',_0x22da73['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(_0x453479,_0x56a4ba){this['newRevisionId']=_0x453479,this['oldRevisionId']=_0x56a4ba,this['changes']=new _0x10516c();}['_setChanges'](_0x3536e7){for(const _0x304b8a of _0x3536e7)this['changes']['add'](_0x304b8a);}}const Y={'c':_0x306303,'a':_0x15c3ec,'e':_0x563432,'r':_0x2ff39b,'u':_0x1f63be};class d extends _0x417e25{['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[_0xce5c9b,_0x56df4e,j];}constructor(_0x33e651){super(_0x33e651),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',(_0x4f8a80,_0x332485,_0x39b5a6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x341221=>{for(const _0x5e5908 of this['editor']['editing']['view']['document']['roots'])_0x39b5a6?_0x341221['removeClass']('ck-editor__editable__overlay',_0x5e5908):_0x341221['addClass']('ck-editor__editable__overlay',_0x5e5908);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2af1db=>null!==_0x2af1db),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2d7a78,_0x4b229a,_0x5f0b03)=>_0x2d7a78&&_0x5f0b03?_0x4b229a['changes']['getIndex'](_0x5f0b03):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x225ac5,_0x176033)=>_0x225ac5?_0x176033['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x56df4e);}['init'](){const _0x2fb971=this['editor'],_0x28e90a=new yt(_0x2fb971,{'direction':'backward'}),_0x1ecf82=new yt(_0x2fb971,{'direction':'forward'});(_0x2fb971['commands']['add']('showPreviousChange',_0x28e90a),_0x2fb971['commands']['add']('showNextChange',_0x1ecf82),_0x2fb971['commands']['add']('restoreRevision',new _t(_0x2fb971)),this['on']('change:numberOfChanges',()=>{_0x28e90a['refresh'](),_0x1ecf82['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2fb971['enableReadOnlyMode']('revision-viewer'),_0x2fb971['plugins']['has']('WidgetToolbarRepository'))&&_0x2fb971['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x261b2c){await this['loadRevisionData'](_0x261b2c);const _0x1916dd={};for(const _0x528e8e in _0x261b2c['diffData']){if(_0x261b2c['diffData'][_0x528e8e]['attachChange']&&!_0x261b2c['diffData'][_0x528e8e]['attachChange']['isAttached'])continue;const _0x504c25=this['_removeRevisionMarkers'](JSON['parse'](_0x261b2c['diffData'][_0x528e8e]['insertions'])),_0x185cec=this['editor']['editing']['view']['document'],_0x463828=new _0x47c620(_0x185cec,_0x504c25['map'](_0x14c607=>this['_getViewObj'](_0x14c607)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1916dd[_0x528e8e]=this['editor']['data']['processor']['toData'](_0x463828),this['editor']['data']['processor']['useFillerType']('default');}return _0x1916dd;}async['getRevisionRootsAttributes'](_0x5085d4){await this['loadRevisionData'](_0x5085d4);const _0x38f4d6={};for(const _0x353ab5 in _0x5085d4['diffData'])_0x5085d4['diffData'][_0x353ab5]['attachChange']&&!_0x5085d4['diffData'][_0x353ab5]['attachChange']['isAttached']||(_0x38f4d6[_0x353ab5]=_0x5085d4['diffData'][_0x353ab5]['attributesAfter']||{});return _0x38f4d6;}['_removeRevisionMarkers'](_0x488881){return(_0x488881=_0x488881['filter'](_0x5f0273=>!_0x5f0273['name']||'revision-start'!==_0x5f0273['name']&&'revision-end'!==_0x5f0273['name']))['forEach'](_0x16a8b6=>{'string'!=typeof _0x16a8b6&&(_0x16a8b6['children']=this['_removeRevisionMarkers'](_0x16a8b6['children']),_0x16a8b6['attributes']=_0x16a8b6['attributes']['filter'](_0x22af1d=>!_0x22af1d[0x0]['startsWith']('data-revision-')));}),_0x488881;}async['compare'](_0x23cb03,_0x34d832,_0x191ff5=!0x1){if(!this['isEnabled'])return;const _0x29c38c=this['diff'],_0x15d62c=this['repository'],_0x35a27c='string'==typeof _0x23cb03?_0x15d62c['getRevision'](_0x23cb03):_0x23cb03,_0x28b96f='string'==typeof _0x34d832?_0x15d62c['getRevision'](_0x34d832):_0x34d832,_0x2c7644=_0x35a27c['id'],_0x1444e2=_0x28b96f?_0x28b96f['id']:null;if(!_0x191ff5&&this['diff']&&this['diff']['newRevisionId']===_0x2c7644&&this['diff']['oldRevisionId']===_0x1444e2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2c7644,_0x1444e2);const _0x4b2bda=this['_getRevisionsRange'](_0x35a27c,_0x28b96f,!0x0)['map'](_0x17b586=>this['loadRevisionData'](_0x17b586));return _0x4b2bda['push'](new Promise(_0x5cf483=>{setTimeout(_0x5cf483,0x14);})),Promise['all'](_0x4b2bda)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40b390=this['_getDiff'](_0x2c7644,_0x1444e2);for(const _0x47e02d of _0x40b390['changes'])this['_changeIdToChange']['set'](_0x47e02d['id'],_0x47e02d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xa2c098=>{for(const _0x15d86f of this['editor']['model']['document']['getRootNames']())_0xa2c098['detachRoot'](_0x15d86f);for(const _0x8fd9fa of Object['keys'](_0x40b390['model'])){const _0xe3371c=_0xa2c098['addRoot'](_0x8fd9fa);for(const _0x265788 of Object['keys'](_0x40b390['attributes'][_0x8fd9fa]))_0xa2c098['setAttribute'](_0x265788,_0x40b390['attributes'][_0x8fd9fa][_0x265788],_0xe3371c);_0xa2c098['insert'](_0x40b390['model'][_0x8fd9fa],_0xe3371c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40b390['changes'])),this['isReady']=!0x0;})['catch'](_0x429262=>{console['error'](_0x429262),this['_cleanUp'](),_0x29c38c&&(this['diff']=_0x29c38c),this['isReady']=!0x0;});}['addRevisionData'](_0x4d6389,_0x32ef75){const _0x288ace=this['repository']['createRevision'](_0x4d6389);return _0x288ace['on']('_update',(_0x51fe0c,_0x44743f,_0x5be911)=>_0x32ef75(_0x44743f,_0x5be911,_0x288ace)),this['repository']['addRevision'](_0x288ace),_0x288ace;}['loadRevisionData'](_0x5ca114){if(!_0x5ca114||_0x5ca114['diffData'])return Promise['resolve']();{const _0x1a6b82=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1a6b82,'revisionId':_0x5ca114['id']})['then'](_0x2e7f2b=>{_0x5ca114['_update']({'diffData':_0x2e7f2b['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},_0x4d5903=>{for(const _0x890997 of this['editor']['model']['document']['getRootNames']())_0x4d5903['detachRoot'](_0x890997);});}['_sortAndFilterDiffChanges'](_0x50f64f){const _0x50c6e0=[],_0x13d747=new Map();for(const _0x553489 of this['editor']['model']['document']['getRootNames']()){const _0x5a9e59=this['editor']['editing']['view']['getDomRoot'](_0x553489);if(!_0x5a9e59)continue;const _0x3fdcea=_0x5a9e59['getClientRects']()['item'](0x0);_0x3fdcea&&(_0x50c6e0['push'](_0x553489),_0x13d747['set'](_0x553489,_0x3fdcea));}return _0x50c6e0['sort']((_0x524f6f,_0x37cf34)=>{const _0x14f2dd=_0x13d747['get'](_0x524f6f),_0x519b07=_0x13d747['get'](_0x37cf34);return _0x14f2dd['y']-_0x519b07['y']||_0x14f2dd['x']-_0x519b07['x'];}),(_0x50f64f=_0x50f64f['filter'](_0x3a7b2a=>_0x50c6e0['includes'](_0x3a7b2a['rootName'])))['sort']((_0x1a6fb4,_0x34684f)=>_0x50c6e0['indexOf'](_0x1a6fb4['rootName'])-_0x50c6e0['indexOf'](_0x34684f['rootName'])),_0x50f64f;}['_makeTape'](_0xdb5102){const _0x993f9e=Array['from'](_0xdb5102['markers'])['filter'](([_0x4922b7,_0x6a398d])=>_0x4922b7['startsWith']('revision:')&&!_0x6a398d['isCollapsed']),_0x5d5e3d=Array['from'](this['editor']['model']['createRangeIn'](_0xdb5102)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x993f9e['length'])for(const _0x3495ea of _0x5d5e3d){const [_0x492f65,_0x5ec379]=_0x993f9e[0x0],[,_0x58b0f9,_0x4cb646]=_0x492f65['split'](':');if(_0x5ec379['end']['isEqual'](_0x3495ea['nextPosition'])&&_0x993f9e['shift'](),(_0x3495ea['previousPosition']['isEqual'](_0x5ec379['start'])||_0x3495ea['previousPosition']['isAfter'](_0x5ec379['start']))&&('insertion'==_0x58b0f9?_0x3495ea['isAdded']={'userId':_0x4cb646}:'deletion'==_0x58b0f9&&(_0x3495ea['isRemoved']={'userId':_0x4cb646})),0x0==_0x993f9e['length'])break;}return _0x5d5e3d;}['_refreshStartEndIndex'](_0x114fe6){const _0x26fab6=new Map();for(let _0x2fe296=0x0;_0x2fe296<_0x114fe6['length'];_0x2fe296++)'text'===_0x114fe6[_0x2fe296]['type']?(_0x114fe6[_0x2fe296]['item']['startIndex']=_0x2fe296,_0x114fe6[_0x2fe296]['item']['endIndex']=_0x2fe296):('elementStart'===_0x114fe6[_0x2fe296]['type']?_0x114fe6[_0x2fe296]['item']['startIndex']=_0x2fe296:'elementEnd'===_0x114fe6[_0x2fe296]['type']&&(_0x114fe6[_0x2fe296]['item']['endIndex']=_0x2fe296),_0x26fab6['set'](_0x114fe6[_0x2fe296]['id'],_0x2fe296));for(const _0x527bff of _0x26fab6['values']())'elementStart'===_0x114fe6[_0x527bff]['type']?_0x114fe6[_0x527bff]['item']['endIndex']=_0x26fab6['get'](_0x114fe6[_0x527bff]['pairId']):'elementEnd'===_0x114fe6[_0x527bff]['type']&&(_0x114fe6[_0x527bff]['item']['startIndex']=_0x26fab6['get'](_0x114fe6[_0x527bff]['pairId']));}['_processTape'](_0x561fa9){for(let _0x25cccd=0x0;_0x25cccd<_0x561fa9['length'];_0x25cccd++){if('elementStart'===_0x561fa9[_0x25cccd]['type'])_0x561fa9[_0x25cccd]['item']['startIndex']=_0x25cccd;else{if('elementEnd'===_0x561fa9[_0x25cccd]['type']){_0x561fa9[_0x25cccd]['item']['endIndex']=_0x25cccd;const _0x52120e=_0x561fa9[_0x25cccd]['item']['startIndex'];_0x561fa9[_0x52120e]['pairId']=_0x561fa9[_0x25cccd]['id'],_0x561fa9[_0x25cccd]['pairId']=_0x561fa9[_0x52120e]['id'];}else _0x561fa9[_0x25cccd]['item']['startIndex']=_0x25cccd,_0x561fa9[_0x25cccd]['item']['endIndex']=_0x25cccd,_0x561fa9[_0x25cccd]['pairId']=null;}_0x561fa9[_0x25cccd]['markersStart']||(_0x561fa9[_0x25cccd]['markersStart']=[],_0x561fa9[_0x25cccd]['markersEnd']=[]);}}['_markInsertions'](_0x179e84,_0x426fa0){const _0x5cb29c=_0x179e84['filter'](_0x7e0c2c=>!_0x7e0c2c['isAdded']);for(let _0x4c0d93=0x0;_0x4c0d93<_0x426fa0['length'];_0x4c0d93++)_0x426fa0[_0x4c0d93]['isAdded']&&(_0x5cb29c[_0x4c0d93]['isAdded']=_0x426fa0[_0x4c0d93]['isAdded']);}['_makeModelFromViewString'](_0x4ca7fa){const _0xc2c62a=JSON['parse'](_0x4ca7fa),_0x1672b6=this['editor']['editing']['view']['document'],_0x4eb560=new _0x47c620(_0x1672b6,_0xc2c62a['map'](_0x1bd03a=>this['_getViewObj'](_0x1bd03a)));return this['editor']['data']['toModel'](_0x4eb560);}['_getViewObj'](_0x284c5d){const _0x16f0b4=this['editor']['editing']['view']['document'];if('string'==typeof _0x284c5d)return new _0x468e6d(_0x16f0b4,_0x284c5d);{const _0x3bf63a=_0x284c5d['children']['map'](_0x75f50e=>this['_getViewObj'](_0x75f50e));return new(Y[_0x284c5d['type']]||_0xd24324)(_0x16f0b4,_0x284c5d['name'],_0x284c5d['attributes'],_0x3bf63a);}}['_getDiff'](_0x2c382d,_0x3d1d40=null){const _0x3c00e7=this['repository']['getRevision'](_0x2c382d),_0x2c7158=_0x3d1d40?this['repository']['getRevision'](_0x3d1d40):null,_0x490110=this['_getRevisionsRange'](_0x3c00e7,_0x2c7158),_0x574425=_0x490110[_0x490110['length']-0x1],_0x466df4=new Map(),_0x5b8459={'model':{},'attributes':{},'changes':[]},_0x3e1864=new Set(),_0x40cc95=new Map();for(let _0x4be7f6=_0x490110['length']-0x1;_0x4be7f6>=0x0;_0x4be7f6--){const _0x3bd132=_0x490110[_0x4be7f6];for(const _0x2c0b5b of Object['keys'](_0x3bd132['diffData']))if(_0x3bd132['diffData'][_0x2c0b5b]['attachChange']){const _0x531154=_0x3bd132['diffData'][_0x2c0b5b]['attachChange'];_0x531154['isAttached']?(_0x3e1864['add'](_0x2c0b5b),_0x40cc95['has'](_0x2c0b5b)&&_0x40cc95['get'](_0x2c0b5b)['userId']==_0x531154['userId']?_0x40cc95['delete'](_0x2c0b5b):_0x40cc95['set'](_0x2c0b5b,_0x531154)):_0x40cc95['has'](_0x2c0b5b)?(_0x3e1864['delete'](_0x2c0b5b),_0x40cc95['delete'](_0x2c0b5b)):(_0x3e1864['add'](_0x2c0b5b),_0x40cc95['set'](_0x2c0b5b,_0x531154));}else _0x3e1864['add'](_0x2c0b5b);}for(const _0x4c12c1 of _0x3e1864){const _0x3282ff=_0x40cc95['has'](_0x4c12c1)&&!_0x40cc95['get'](_0x4c12c1)['isAttached'];let _0x18907c=_0x3282ff?_0x490110['length']-0x1:0x0;const _0x2514d7=_0x3282ff?-0x1:0x1;for(;_0x490110[_0x18907c];){const _0x57686b=_0x490110[_0x18907c];if(_0x57686b['diffData'][_0x4c12c1]){const _0x351c23=_0x3282ff?_0x57686b['diffData'][_0x4c12c1]['attributesBefore']:_0x57686b['diffData'][_0x4c12c1]['attributesAfter'];_0x5b8459['attributes'][_0x4c12c1]=_0x351c23?_0x582feb(_0x351c23):{};break;}_0x18907c+=_0x2514d7;}}for(const _0x126a14 of _0x490110){_0x126a14['model']={};for(const _0x12d25f of _0x126a14['authors'])_0x466df4['set'](_0x12d25f['id'],_0x12d25f);for(const _0x4651fc of _0x3e1864){const _0x37a181=_0x126a14['diffData'][_0x4651fc]?_0x126a14['diffData'][_0x4651fc]['insertions']:'[]',_0x30b2fb=_0x126a14['diffData'][_0x4651fc]?_0x126a14['diffData'][_0x4651fc]['deletions']:'[]';_0x126a14['model'][_0x4651fc]={'insertions':this['_makeModelFromViewString'](_0x37a181),'deletions':this['_makeModelFromViewString'](_0x30b2fb)};}}for(const _0x4d352c of _0x3e1864){let _0x986c0b=null,_0x4179e4=0x0;const _0x24a401=new Map(Array['from'](_0x3c00e7['model'][_0x4d352c]['insertions']['markers'])['filter'](([_0x27759f])=>!_0x27759f['startsWith']('revision:')));let _0x14ca23=0x0;for(const _0x52f44c of _0x490110){const _0x5f0d10=this['_makeTape'](_0x52f44c['model'][_0x4d352c]['insertions']);_0x52f44c==_0x3c00e7?(_0x986c0b=_0x5f0d10,_0x4179e4=_0x986c0b['length'],_0x986c0b['forEach'](_0x386b7c=>{_0x386b7c['id']=_0x14ca23++;}),this['_processTape'](_0x986c0b)):this['_markInsertions'](_0x986c0b,_0x5f0d10);const _0xd78c0e=_0x986c0b['filter'](_0x28f2c4=>!_0x28f2c4['isAdded'])['map'](_0x5b089e=>_0x5b089e['id']);let _0x239ae7=0x0;const _0x5c8f83=this['_makeTape'](_0x52f44c['model'][_0x4d352c]['deletions']);_0x5c8f83['forEach'](_0x2f1fc1=>{_0x2f1fc1['isRemoved']?_0x2f1fc1['id']=_0x4179e4++:_0x2f1fc1['id']=_0xd78c0e[_0x239ae7++];}),this['_processTape'](_0x5c8f83),this['_setDistance'](_0x986c0b,'isAdded'),this['_setDistance'](_0x5c8f83,'isRemoved'),_0x52f44c==_0x3c00e7&&this['_markMarkers'](_0x986c0b,_0x24a401),_0x986c0b=this['_joinTapes'](_0x986c0b,_0x5c8f83),this['_refreshStartEndIndex'](_0x986c0b),this['_setDistance'](_0x986c0b,'isRemoved');}_0x986c0b=_0x986c0b['filter'](_0x23d448=>!(_0x23d448['isAdded']&&_0x23d448['isRemoved']));const _0x59ba34=new Map(_0x574425['model'][_0x4d352c]['deletions']['markers']),_0x5d064b=new Set(_0x24a401['keys']());for(const _0x33cc7f of _0x59ba34['keys']())_0x5d064b['delete'](_0x33cc7f);this['_markSuggestions'](_0x986c0b,_0x5d064b),this['_fixObsoleteTags'](_0x986c0b),_0x986c0b=this['_removeMissingPairs'](_0x986c0b),_0x986c0b=this['_markMismatchedRemovedTags'](_0x986c0b),_0x986c0b=this['_removeUnsupportedChanges'](_0x986c0b);const {root:_0x254ca3,changes:_0x39907b}=this['_makeModelFromTape'](_0x986c0b,_0x466df4,_0x4d352c);_0x5b8459['model'][_0x4d352c]=_0x254ca3;const _0x37c7f8=_0x40cc95['get'](_0x4d352c);if(_0x37c7f8){const _0x4e7a51=_0x466df4['get'](_0x37c7f8['userId']),_0x5b902f=new r({'author':_0x4e7a51,'type':_0x37c7f8['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4d352c});_0x39907b['unshift'](_0x5b902f),_0x5b8459['attributes'][_0x4d352c]['revisionHistoryAttachChange']=_0x5b902f['id'];}_0x5b8459['changes']=_0x5b8459['changes']['concat'](_0x39907b);}return _0x5b8459;}['_markMarkers'](_0x35b42a,_0x48df0f){for(let _0x411696=0x0;_0x411696<_0x35b42a['length'];_0x411696++)for(const [_0x428f3d,_0x87d7f]of _0x48df0f)_0x87d7f['start']['isEqual'](_0x35b42a[_0x411696]['previousPosition'])&&_0x35b42a[_0x411696]['markersStart']['push'](_0x428f3d),_0x87d7f['end']['isEqual'](_0x35b42a[_0x411696]['nextPosition'])&&_0x35b42a[_0x411696]['markersEnd']['push'](_0x428f3d);}['_joinTapes'](_0xa73429,_0x72e0ca){let _0x171ff8=[],_0x3c52f3=0x0,_0x5ab081=0x0;for(;_0x3c52f3<_0xa73429['length']||_0x5ab081<_0x72e0ca['length'];){const _0x304ba8=_0xa73429[_0x3c52f3]||{},_0x26725c=_0x72e0ca[_0x5ab081]||{};if(_0x304ba8['id']==_0x26725c['id'])_0x3c52f3++,_0x5ab081++,_0x171ff8['push'](_0x304ba8);else{if(_0x26725c['isRemoved']&&_0x304ba8['isAdded']){const {commonTape:_0xb77ce3,iEnd:_0x132555,jEnd:_0x4ba134}=this['_threeWayMerge'](_0xa73429,_0x3c52f3,_0x72e0ca,_0x5ab081);_0x171ff8=_0x171ff8['concat'](_0xb77ce3),_0x3c52f3=_0x132555,_0x5ab081=_0x4ba134;}else _0x26725c['isRemoved']?(_0x5ab081++,_0x171ff8['push'](_0x26725c)):(_0x3c52f3++,_0x171ff8['push'](_0x304ba8));}}return _0x171ff8;}['_markSuggestions'](_0x5f5088,_0x2db92e){const _0xb29239=[];for(let _0x14a69f=0x0;_0x14a69f<_0x5f5088['length'];_0x14a69f++){for(let _0x294306=0x0;_0x294306<_0x5f5088[_0x14a69f]['markersStart']['length'];_0x294306++){const _0x5d4df5=_0x5f5088[_0x14a69f]['markersStart'][_0x294306];if(!_0x2db92e['has'](_0x5d4df5))continue;const {group:_0x46f30d,type:_0x959747,authorId:_0x2e07a2}=_0x410bff(_0x5d4df5);'revision-suggestion'!=_0x46f30d||'insertion'!=_0x959747&&'deletion'!=_0x959747||(_0xb29239['unshift']({'type':_0x959747,'name':_0x5d4df5,'userId':_0x2e07a2}),_0x5f5088[_0x14a69f]['markersStart']['splice'](_0x294306,0x1),_0x294306--);}_0x2eca65(_0x5f5088[_0x14a69f]);for(let _0x2dcd0d=0x0;_0x2dcd0d<_0x5f5088[_0x14a69f]['markersEnd']['length'];_0x2dcd0d++){const _0xa73d92=_0x5f5088[_0x14a69f]['markersEnd'][_0x2dcd0d];if(!_0x2db92e['has'](_0xa73d92))continue;const {group:_0x5ef805,type:_0x1e157b}=_0x410bff(_0xa73d92);if('revision-suggestion'!=_0x5ef805||'insertion'!=_0x1e157b&&'deletion'!=_0x1e157b)continue;_0x5f5088[_0x14a69f]['markersEnd']['splice'](_0x2dcd0d,0x1),_0x2dcd0d--;const _0x36f69a=_0xb29239['findIndex'](_0x7544d0=>_0x7544d0['name']==_0xa73d92);_0x36f69a>-0x1&&_0xb29239['splice'](_0x36f69a,0x1);}}function _0x410bff(_0x228e48){const _0x23f758=_0x228e48['split'](':');return{'group':_0x23f758[0x0],'type':_0x23f758[0x1],'subType':_0x23f758['length']>=0x5?_0x23f758[0x2]:null,'id':_0x23f758['length']<0x5?_0x23f758[0x2]:_0x23f758[0x3],'authorId':_0x23f758['length']<0x5?_0x23f758[0x3]:_0x23f758[0x4],'markerCount':0x6==_0x23f758['length']?_0x23f758[0x5]:null};}function _0x2eca65(_0x1ebacb){for(let _0x1c85d6=0x0;_0x1c85d6<_0xb29239['length'];_0x1c85d6++){if(_0x1ebacb['isAdded']&&'insertion'==_0xb29239[_0x1c85d6]['type'])return _0x1ebacb['isAddSuggestion']=_0xb29239[_0x1c85d6],void delete _0x1ebacb['isAdded'];if(!_0x1ebacb['isAdded']&&!_0x1ebacb['isRemoved']&&'deletion'==_0xb29239[_0x1c85d6]['type'])return void(_0x1ebacb['isRemoveSuggestion']=_0xb29239[_0x1c85d6]);}}}['_setDistance'](_0x1c37a4,_0x583fef){let _0x365d11=0x0,_0x2c3014=!0x1;const _0x58afe1=new Map();for(const _0x2bd93d of _0x1c37a4)_0x2bd93d[_0x583fef]?_0x2c3014&&(_0x365d11++,_0x2c3014=!0x1):(_0x365d11++,_0x2c3014=!0x0),_0x58afe1['set'](_0x2bd93d['id'],_0x365d11);for(let _0x2be85d=0x0;_0x2be85d<_0x1c37a4['length'];_0x2be85d++){if('isRemoved'==_0x583fef&&_0x1c37a4[_0x2be85d]['isAdded']||'isAdded'==_0x583fef&&_0x1c37a4[_0x2be85d]['isRemoved'])continue;if('text'==_0x1c37a4[_0x2be85d]['type']){_0x1c37a4[_0x2be85d]['distance']=0x0;continue;}const _0x527055=_0x58afe1['get'](_0x1c37a4[_0x2be85d]['pairId']),_0x41e711=_0x58afe1['get'](_0x1c37a4[_0x2be85d]['id']);_0x1c37a4[_0x2be85d]['distance']=_0x527055-_0x41e711;}}['_getRevisionsRange'](_0x4e1621,_0x468b88,_0x2bc4f5=!0x1){const _0x979b7d=[];let _0xe0dd9=this['repository']['getIndex'](_0x4e1621),_0x5aa9ff=this['repository']['getIndex'](_0x468b88);for(-0x1==_0x5aa9ff&&(_0x5aa9ff=this['repository']['_revisions']['length'],_0x2bc4f5=!0x1);_0xe0dd9<_0x5aa9ff;)_0x979b7d['push'](this['repository']['getRevision'](_0xe0dd9)),_0xe0dd9++;return _0x2bc4f5&&_0x979b7d['push'](this['repository']['getRevision'](_0xe0dd9)),_0x979b7d;}['_threeWayMerge'](_0x24b592,_0x5e1efc,_0x52cf8f,_0x4f0764){const _0x3d75d3=this['editor']['model']['schema'];let _0x435c86=_0x5e1efc;for(;_0x24b592[_0x435c86]&&_0x24b592[_0x435c86]['isAdded'];)_0x435c86++;let _0x25676f=_0x4f0764;for(;_0x52cf8f[_0x25676f]&&_0x52cf8f[_0x25676f]['isRemoved'];)_0x25676f++;_0x5d6c17(_0x24b592,_0x5e1efc,_0x435c86),_0x5d6c17(_0x52cf8f,_0x4f0764,_0x25676f);const _0x13f335=_0x52cf8f['slice'](_0x4f0764,_0x25676f)['concat'](_0x24b592['slice'](_0x5e1efc,_0x435c86));return _0x13f335['sort']((_0x3e8227,_0x3cb3d8)=>_0x3e8227['side']!=_0x3cb3d8['side']?_0x3e8227['side']-_0x3cb3d8['side']:_0x3e8227['level']!=_0x3cb3d8['level']?_0x3e8227['level']-_0x3cb3d8['level']:_0x3e8227['distance']!=_0x3cb3d8['distance']?_0x3cb3d8['distance']-_0x3e8227['distance']:!!_0x3e8227['isAdded']!=!!_0x3cb3d8['isAdded']?-0x1==_0x3e8227['side']||0x0==_0x3e8227['side']?_0x3e8227['isAdded']?-0x1:0x1:_0x3e8227['isAdded']?0x1:-0x1:_0x3e8227['index']-_0x3cb3d8['index']),{'commonTape':_0x13f335,'iEnd':_0x435c86,'jEnd':_0x25676f};function _0x5d6c17(_0x5964c6,_0x47e3ed,_0x5280e7){let _0x5bf4c4=-0x1,_0x12fe79=Number['POSITIVE_INFINITY'],_0xe56776=!0x0;for(let _0x17802c=_0x47e3ed;_0x17802c<_0x5280e7;_0x17802c++)if(_0x3d75d3['isInline'](_0x5964c6[_0x17802c]['item'])||(_0xe56776=!0x1),_0x5964c6[_0x17802c]['item']['startIndex']<_0x47e3ed&&(_0x5bf4c4=_0x17802c),_0x5964c6[_0x17802c]['item']['endIndex']>=_0x5280e7){_0x12fe79=_0x17802c;break;}_0xe56776&&(_0x5bf4c4=_0x5280e7-0x1);for(let _0x5da591=_0x47e3ed;_0x5da591<_0x5280e7;_0x5da591++)_0x5964c6[_0x5da591]['side']=_0x5da591<=_0x5bf4c4?-0x1:_0x5da591<_0x12fe79?0x0:0x1,_0x5964c6[_0x5da591]['index']=_0x5da591;let _0x398d06=0x0;for(let _0x32999c=_0x47e3ed;_0x32999c<=_0x5bf4c4;_0x32999c++)0x0==_0x5964c6[_0x32999c]['distance']?_0x5964c6[_0x32999c]['level']=_0x398d06:(_0x398d06++,_0x5964c6[_0x32999c]['level']=_0x398d06,_0x398d06++);for(let _0x4a9f01=_0x47e3ed;_0x4a9f01<_0x5280e7;_0x4a9f01++)0x0==_0x5964c6[_0x4a9f01]['side']&&(_0x5964c6[_0x4a9f01]['level']=_0x398d06);_0x398d06=0x0;for(let _0x20f3c5=_0x5280e7-0x1;_0x20f3c5>=_0x12fe79;_0x20f3c5--)0x0==_0x5964c6[_0x20f3c5]['distance']?_0x5964c6[_0x20f3c5]['level']=_0x398d06:(_0x398d06--,_0x5964c6[_0x20f3c5]['level']=_0x398d06,_0x398d06--);}}['_fixObsoleteTags'](_0x7a89df){const _0x358295=new Map(),_0x2b44cf=this['editor']['model']['schema'];for(let _0x2d678d=0x1;_0x2d678d<_0x7a89df['length'];_0x2d678d++){let _0x35ad96,_0x59b895,_0x130ea9;const _0x603abc=_0x7a89df[_0x2d678d],_0x341878=_0x7a89df[_0x2d678d-0x1];if('text'==_0x603abc['type'])continue;if(_0x603abc['type']!=_0x341878['type'])continue;if(!_0x2b44cf['isBlock'](_0x341878['item'])||_0x2b44cf['isLimit'](_0x341878['item']))continue;if(!_0x2b44cf['isBlock'](_0x603abc['item'])||_0x2b44cf['isLimit'](_0x603abc['item']))continue;if((_0x7a89df[_0x2d678d]['isAdded']||_0x7a89df[_0x2d678d]['isAddSuggestion'])&&_0x7a89df[_0x2d678d-0x1]['isRemoved'])_0x35ad96=_0x7a89df[_0x2d678d],_0x59b895=_0x7a89df[_0x2d678d-0x1],_0x130ea9=_0x2d678d-0x1;else{if(!_0x7a89df[_0x2d678d]['isRemoved']||!_0x7a89df[_0x2d678d-0x1]['isAdded']&&!_0x7a89df[_0x2d678d-0x1]['isAddSuggestion'])continue;_0x35ad96=_0x7a89df[_0x2d678d-0x1],_0x59b895=_0x7a89df[_0x2d678d],_0x130ea9=_0x2d678d;}const _0x1e030d=_0x35ad96['level']==_0x59b895['level'],_0x5cdafd=Math['abs'](_0x35ad96['level'])<Math['abs'](_0x59b895['level'])&&0x0==_0x59b895['distance'];(_0x1e030d||_0x5cdafd)&&(_0x358295['set'](_0x59b895['id'],_0x35ad96['id']),_0x7a89df['splice'](_0x130ea9,0x1),_0x2d678d--,_0x35ad96['isAdded']=!0x1);}for(let _0x28d9a6=0x0;_0x28d9a6<_0x7a89df['length'];_0x28d9a6++)_0x358295['has'](_0x7a89df[_0x28d9a6]['pairId'])&&(_0x7a89df[_0x28d9a6]['pairId']=_0x358295['get'](_0x7a89df[_0x28d9a6]['pairId']));}['_removeMissingPairs'](_0x8a423b){const _0x1a39cb=new Set(_0x8a423b['map'](_0x477be4=>_0x477be4['id']));for(let _0x5dea14=0x0;_0x5dea14<_0x8a423b['length'];_0x5dea14++)_0x1a39cb['has'](_0x8a423b[_0x5dea14]['pairId'])||0x0==_0x8a423b[_0x5dea14]['distance']||(_0x8a423b[_0x5dea14]['isIncorrect']=!0x0);return _0x8a423b['filter'](_0x4e84db=>!_0x4e84db['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2fbec4){const _0x26bc4f=new Set();for(let _0x3f351e=0x0;_0x3f351e<_0x2fbec4['length'];_0x3f351e++){if(_0x26bc4f['has'](_0x2fbec4[_0x3f351e]['id'])&&_0x2fbec4[_0x3f351e]['isRemoved']&&(_0x2fbec4[_0x3f351e]['isIncorrect']=!0x0),_0x2fbec4[_0x3f351e]['isIncorrect'])continue;if(0x0==_0x2fbec4[_0x3f351e]['distance'])continue;if('elementStart'!=_0x2fbec4[_0x3f351e]['type'])continue;if(null==_0x2fbec4[_0x3f351e]['pairId'])continue;let _0x483eb9=_0x3f351e+0x1,_0x17bb76=0x0;for(;_0x2fbec4[_0x483eb9]['id']!=_0x2fbec4[_0x3f351e]['pairId'];)'elementStart'==_0x2fbec4[_0x483eb9]['type']?_0x17bb76++:'elementEnd'==_0x2fbec4[_0x483eb9]['type']&&_0x17bb76--,_0x483eb9++;if(0x0!=_0x17bb76){if(_0x2fbec4[_0x3f351e]['isRemoved'])_0x2fbec4[_0x3f351e]['isIncorrect']=!0x0;else{for(;_0x483eb9!=_0x3f351e;)_0x2fbec4[_0x483eb9]['isRemoved']&&0x0!=_0x2fbec4[_0x483eb9]['distance']&&(_0x2fbec4[_0x483eb9]['isIncorrect']=!0x0,_0x26bc4f['add'](_0x2fbec4[_0x483eb9]['pairId'])),_0x483eb9--;}}}return _0x2fbec4['filter'](_0x2269bc=>!_0x2269bc['isIncorrect']);}['_removeUnsupportedChanges'](_0x43fcd1){const _0x1a859b=this['editor']['model']['schema'];for(let _0x273523=0x0;_0x273523<_0x43fcd1['length'];_0x273523++){if(!(_0x43fcd1[_0x273523]['isAdded']||_0x43fcd1[_0x273523]['isAddSuggestion']||_0x43fcd1[_0x273523]['isRemoved']||_0x43fcd1[_0x273523]['isRemoveSuggestion']))continue;if(0x0==_0x43fcd1[_0x273523]['distance'])continue;const _0x4a29c5=_0x43fcd1[_0x273523]['item'];_0x1a859b['isBlock'](_0x4a29c5)||_0x1a859b['isLimit'](_0x4a29c5)||(_0x43fcd1[_0x273523]['isAdded']&&delete _0x43fcd1[_0x273523]['isAdded'],_0x43fcd1[_0x273523]['isAddSuggestion']&&delete _0x43fcd1[_0x273523]['isAddSuggestion'],_0x43fcd1[_0x273523]['isRemoveSuggestion']&&delete _0x43fcd1[_0x273523]['isRemoveSuggestion'],_0x43fcd1[_0x273523]['isRemoved']&&(_0x43fcd1[_0x273523]['isIncorrect']=!0x0));}return _0x43fcd1['filter'](_0x2c9446=>!_0x2c9446['isIncorrect']);}['_makeModelFromTape'](_0x4944d9,_0x47ec96,_0x32e74a){const _0x111086=new mt(),_0x177797=[],_0x1c8e5c=new Map(),_0x2d2784=this['editor']['model'],_0x5b64e8=_0x2d2784['schema'],_0x3f33a4=[_0x111086],_0x5cb7d9={},_0x253ae7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56074f=null;const _0x3083bb=[0x0];for(let _0x11bb55=0x0;_0x11bb55<_0x4944d9['length'];_0x11bb55++)if('elementStart'===_0x4944d9[_0x11bb55]['type']){_0x4944d9[_0x11bb55]['previousPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb);const _0x16de1b=new ft(_0x4944d9[_0x11bb55]['item']['name'],_0x4944d9[_0x11bb55]['item']['getAttributes']());_0x3f33a4[0x0]['_appendChild'](_0x16de1b),_0x3083bb['push'](0x0),_0x3f33a4['unshift'](_0x16de1b),_0x4944d9[_0x11bb55]['nextPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb);}else'elementEnd'===_0x4944d9[_0x11bb55]['type']?(_0x3f33a4['shift'](),_0x4944d9[_0x11bb55]['previousPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb),_0x3083bb['pop'](),_0x3083bb[_0x3083bb['length']-0x1]++,_0x4944d9[_0x11bb55]['nextPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb)):(_0x4944d9[_0x11bb55]['previousPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb),_0x56074f?_0x56074f['_data']+=_0x4944d9[_0x11bb55]['item']['data']:_0x56074f=new wt(_0x4944d9[_0x11bb55]['item']['data'],_0x4944d9[_0x11bb55]['item']['getAttributes']()),_0x4944d9[_0x11bb55+0x1]&&'text'===_0x4944d9[_0x11bb55+0x1]['type']&&_0x4885f9(_0x56074f,_0x4944d9[_0x11bb55+0x1]['item'])||(_0x3f33a4[0x0]['_appendChild'](_0x56074f),_0x56074f=null),_0x3083bb[_0x3083bb['length']-0x1]+=_0x4944d9[_0x11bb55]['item']['offsetSize'],_0x4944d9[_0x11bb55]['nextPosition']=_0x2d2784['createPositionFromPath'](_0x111086,_0x3083bb));for(let _0x3241d0=0x0;_0x3241d0<_0x4944d9['length'];_0x3241d0++){const _0x1f1ecc=_0x4944d9[_0x3241d0]['previousPosition'],_0x4d4719=_0x4944d9[_0x3241d0]['nextPosition'];for(const _0x283db0 of _0x4944d9[_0x3241d0]['markersStart'])_0x1c8e5c['set'](_0x283db0,{'start':_0x1f1ecc,'end':null});_0x43df24('isRemoveSuggestion',_0x3241d0,_0x1f1ecc,_0x4d4719),_0x43df24('isAddSuggestion',_0x3241d0,_0x1f1ecc,_0x4d4719),_0x43df24('isRemoved',_0x3241d0,_0x1f1ecc,_0x4d4719),_0x43df24('isAdded',_0x3241d0,_0x1f1ecc,_0x4d4719);for(const _0x3f3dfd of _0x4944d9[_0x3241d0]['markersEnd']){_0x1c8e5c['get'](_0x3f3dfd)['end']=_0x4d4719;}}for(const [_0x118935,_0x3f5d18]of _0x1c8e5c){const _0x5afc81=this['editor']['model']['createRange'](_0x3f5d18['start'],_0x3f5d18['end']);_0x111086['markers']['set'](_0x118935,_0x5afc81);}return _0x177797['sort']((_0xb4fa7,_0x573c9c)=>{const _0x40e29d=_0x111086['markers']['get']('revision:'+_0xb4fa7['id']),_0x516570=_0x111086['markers']['get']('revision:'+_0x573c9c['id']);return _0x40e29d['start']['isBefore'](_0x516570['start'])?-0x1:_0x40e29d['start']['isAfter'](_0x516570['start'])?0x1:_0x40e29d['end']['isBefore'](_0x516570['end'])?-0x1:_0x40e29d['end']['isAfter'](_0x516570['end'])?0x1:'add'===_0xb4fa7['type']?-0x1:0x1;}),{'root':_0x111086,'changes':_0x177797};function _0x43df24(_0x591343,_0x35d194,_0x5de9c3,_0x408386){const _0x37ae0f=!!_0x4944d9[_0x35d194][_0x591343],_0x179c0b=_0x37ae0f?_0x4944d9[_0x35d194][_0x591343]['userId']:null,_0x5d2670=_0x35d194===_0x4944d9['length']-0x1,_0x3ce3ff=_0x253ae7[_0x591343][0x0],_0x1e7c40=_0x5b64e8['isObject'](_0x4944d9[_0x35d194]['item']);!_0x5cb7d9[_0x591343]&&_0x37ae0f?_0x5cb7d9[_0x591343]={'start':_0x5de9c3,'tapeItem':_0x4944d9[_0x35d194],'userId':_0x179c0b,'type':_0x591343}:_0x5cb7d9[_0x591343]&&!_0x37ae0f?(_0x5cb7d9[_0x591343]['end']=_0x5de9c3,_0xe98729(_0x5cb7d9[_0x591343]),_0x5cb7d9[_0x591343]=null):_0x5cb7d9[_0x591343]&&_0x37ae0f&&_0x5cb7d9[_0x591343]['userId']!==_0x179c0b&&(_0x5cb7d9[_0x591343]['end']=_0x5de9c3,_0x3ce3ff&&_0x3ce3ff['userId']===_0x5cb7d9[_0x591343]['userId']||_0xe98729(_0x5cb7d9[_0x591343]),_0x5cb7d9[_0x591343]={'start':_0x5de9c3,'tapeItem':_0x4944d9[_0x35d194],'userId':_0x179c0b,'type':_0x591343}),_0x5cb7d9[_0x591343]&&_0x1e7c40&&('elementStart'!==_0x4944d9[_0x35d194]['type']||_0x3ce3ff&&_0x3ce3ff['userId']===_0x179c0b||_0x253ae7[_0x591343]['unshift']({'userId':_0x179c0b,'object':_0x4944d9[_0x35d194]['item'],'change':_0x5cb7d9[_0x591343]}),'elementEnd'===_0x4944d9[_0x35d194]['type']&&_0x3ce3ff&&_0x3ce3ff['object']===_0x4944d9[_0x35d194]['item']&&(_0x253ae7[_0x591343]['shift'](),_0x5cb7d9[_0x591343]=_0x3ce3ff['change'])),_0x5cb7d9[_0x591343]&&_0x5d2670&&(_0x5cb7d9[_0x591343]['end']=_0x408386,_0xe98729(_0x5cb7d9[_0x591343]),_0x5cb7d9[_0x591343]=null);}function _0xe98729({start:_0x51c9e3,end:_0x373a41,tapeItem:_0x54e24c,userId:_0x165f70,type:_0x341208}){const _0x47e3b4=_0x54e24c['item'],_0x24e9d0=_0x2d2784['schema']['isBlock'](_0x47e3b4)&&!_0x2d2784['schema']['isLimit'](_0x47e3b4),_0x32b7d8=_0x51c9e3['nodeAfter']==_0x373a41['parent']&&_0x373a41['isAtStart'];if(_0x24e9d0&&_0x32b7d8)return;const _0x5c2eb4=_0x2d2784['createRange'](_0x51c9e3,_0x373a41),_0x221962=_0x47ec96['get'](_0x165f70),_0xc3dddb=new r({'author':_0x221962,'type':'isAdded'==_0x341208||'isAddSuggestion'==_0x341208?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x341208||'isRemoveSuggestion'==_0x341208},'createdAt':new Date(),'rootName':_0x32e74a});_0x177797['push'](_0xc3dddb),_0x111086['markers']['set']('revision:'+_0xc3dddb['id'],_0x5c2eb4);}function _0x4885f9(_0x312149,_0x4d5d1b){const _0x17590b=_0x312149['getAttributes'](),_0x372782=_0x4d5d1b['getAttributes']();for(const _0x57248f of _0x17590b){if(_0x57248f[0x1]!==_0x4d5d1b['getAttribute'](_0x57248f[0x0]))return!0x1;_0x372782['next']();}return _0x372782['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x396c88=>{const _0x140d9d=_0x396c88['markerName']['split'](':')[0x1],_0x5a9672=this['_getChangeFromId'](_0x140d9d);if(!_0x5a9672)return null;const _0x5e7e99='add'==_0x5a9672['type']?'insertion':'deletion',_0x8f0c16=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5e7e99];return _0x5a9672['data']['isSuggestion']&&_0x8f0c16['push']('ck-suggestion-marker-'+_0x5e7e99+'-new'),this['activeChange']==_0x5a9672&&_0x8f0c16['push']('ck-suggestion-marker--active'),{'classes':_0x8f0c16,'attributes':{'data-change-id':_0x140d9d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1bcf4a=>{_0x1bcf4a['on']('element:pre',(_0x1a74b8,_0x5906d0,_0x5141ec)=>{const _0x755efd=_0x5906d0['viewItem']['getChild'](0x0);if(!_0x755efd||!_0x755efd['is']('element','code'))return;if(!_0x5141ec['consumable']['consume'](_0x755efd,{'attributes':['vid_start','vid_end']}))return;const _0x1e1d57=_0x5906d0['modelRange']['start']['nodeAfter'];_0x5141ec['writer']['setAttribute']('vid_start',_0x755efd['getAttribute']('vid_start'),_0x1e1d57),_0x5141ec['writer']['setAttribute']('vid_end',_0x755efd['getAttribute']('vid_end'),_0x1e1d57);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x12332c=>{_0x12332c['on']('element',(_0x23d33e,_0x1acf46,_0x48ba88)=>{if(!_0x48ba88['consumable']['consume'](_0x1acf46['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1acf46['modelRange']['isCollapsed'])return;const _0x1d7300=_0x1acf46['modelRange']['start']['nodeAfter'];_0x1d7300['hasAttribute']('vid_start')||_0x1d7300['hasAttribute']('vid')||(_0x48ba88['writer']['setAttribute']('vid_start',_0x1acf46['viewItem']['getAttribute']('vid_start'),_0x1d7300),_0x48ba88['writer']['setAttribute']('vid_end',_0x1acf46['viewItem']['getAttribute']('vid_end'),_0x1d7300));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xf36f84=>_0xf36f84['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x36b181,[,_0x54952b])=>{['vid_start','vid_end','vid']['includes'](_0x54952b)&&(_0x36b181['return']=!0x0,_0x36b181['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2dc53b=>{_0x2dc53b['on']('attribute:vid',(_0x20e2d8,_0x2c4a33,_0xd7e64e)=>{if('\x20'!=_0x2c4a33['item']['data']||_0x2c4a33['item']['parent']['maxOffset']>0x1)return;if(!_0xd7e64e['consumable']['consume'](_0x2c4a33['item'],_0x20e2d8['name']))return;const _0x3b3313=_0xd7e64e['writer'],_0x54c003=_0xd7e64e['mapper']['toViewRange'](_0x2c4a33['range']);_0x3b3313['wrap'](_0x54c003,_0x3b3313['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xe31551){const _0x349a03=_0xe31551['plugins']['get']('RevisionViewer');return(_0x293fcb,_0xba2d13,_0xd5f8c7)=>{const _0x58b90=_0xba2d13['markerName']['split'](':')[0x1],_0x3a3d12=_0x349a03['_getChangeFromId'](_0x58b90);if(!_0x3a3d12)return null;const _0x5b1e31='add'==_0x3a3d12['type']?'split':'merge';if(!_0xd5f8c7['consumable']['test'](_0xba2d13['markerRange'],_0x293fcb['name']))return;const _0x479f51=_0xba2d13['markerRange']['getWalker'](),_0xc504c5=_0xba2d13['markerRange']['start'],_0x57b58c=_0xe31551['model']['schema'];let _0x4857cc=null,_0x3f88db=null,_0x2ea7d6=!0x1,_0x2364b9=!0x1;for(const _0x281061 of _0x479f51){const _0xb179f3=_0x281061['item'];_0x2ea7d6=_0x2ea7d6||_0x57b58c['isContent'](_0xb179f3);const _0x110cde=_0xd5f8c7['mapper']['toViewElement'](_0xb179f3);if(_0x110cde&&_0x110cde['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x281061['type']&&(_0x57b58c['isBlock'](_0xb179f3)&&!_0x57b58c['isLimit'](_0xb179f3)&&(_0xb179f3['nextSibling']||_0xc504c5['isAtEnd']?_0x4857cc&&_0x4857cc['parent']==_0xb179f3||(_0x4857cc=_0xb179f3,_0x37197d(_0x281061['previousPosition']),_0x2364b9=!0x0):_0x3f88db=_0x3f88db||_0x281061['previousPosition']));}function _0x37197d(_0x1339b3){const _0x482567=_0xd5f8c7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b1e31}),_0x141b16=_0xd5f8c7['mapper']['toViewPosition'](_0x1339b3);_0x3a3d12['data']['isSuggestion']&&_0xd5f8c7['writer']['addClass']('ck-suggestion-marker-'+_0x5b1e31+'-new',_0x482567),_0x349a03['activeChange']==_0x3a3d12&&_0xd5f8c7['writer']['addClass']('ck-suggestion-marker--active',_0x482567),_0xd5f8c7['writer']['insert'](_0x141b16,_0x482567),_0xd5f8c7['mapper']['bindElementToMarker'](_0x482567,_0xba2d13['markerName']);}_0x2ea7d6||_0x2364b9||!_0x3f88db||_0x37197d(_0x3f88db);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4bf251,_0x9bd7c0,_0x2a1943)=>{const _0x45c0b=_0x2a1943['mapper']['markerNameToElements'](_0x9bd7c0['markerName']);if(_0x45c0b){for(const _0x4aff3e of _0x45c0b)(_0x4aff3e['hasClass']('ck-suggestion-marker-split')||_0x4aff3e['hasClass']('ck-suggestion-marker-merge'))&&(_0x2a1943['mapper']['unbindElementFromMarkerName'](_0x4aff3e,_0x9bd7c0['markerName']),_0x2a1943['writer']['remove'](_0x4aff3e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2f8959,_0x5df710,_0xb56e2f)=>{const _0x150da2=_0x5df710['markerName']['split'](':')[0x1],_0x570cf0=this['_getChangeFromId'](_0x150da2);if(!_0x570cf0)return null;const _0x474ab8='add'==_0x570cf0['type']?'split':'merge';if(_0xb56e2f['consumable']['test'](_0x5df710['markerRange'],_0x2f8959['name']))for(const _0x4e1e7c of _0x5df710['markerRange']['getItems']()){if(!_0x4e1e7c['is']('element','softBreak'))continue;const _0x4b8d1a=_0xb56e2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x474ab8}),_0x1b77f5=_0xb56e2f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4e1e7c));_0x570cf0['data']['isSuggestion']&&_0xb56e2f['writer']['addClass']('ck-suggestion-marker-'+_0x474ab8+'-new',_0x4b8d1a),this['activeChange']==_0x570cf0&&_0xb56e2f['writer']['addClass']('ck-suggestion-marker--active',_0x4b8d1a),_0xb56e2f['writer']['insert'](_0x1b77f5,_0x4b8d1a),_0xb56e2f['mapper']['bindElementToMarker'](_0x4b8d1a,_0x5df710['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x41ac73=>{for(const _0x363303 of this['editor']['model']['document']['getRootNames']()){const _0x187c16=this['editor']['model']['document']['getRoot'](_0x363303),_0x805a27=this['editor']['editing']['view']['document']['getRoot'](_0x363303);if(_0x805a27){const _0x527b4e=_0x187c16['getAttribute']('revisionHistoryAttachChange');if(_0x41ac73['removeAttribute']('data-change-id',_0x805a27),_0x41ac73['removeClass']('ck-revision-history-root-add',_0x805a27),_0x41ac73['removeClass']('ck-revision-history-root-remove',_0x805a27),_0x41ac73['removeClass']('ck-revision-history-root--active',_0x805a27),_0x527b4e){const _0x464798=this['_getChangeFromId'](_0x527b4e);if(!_0x464798)return null;_0x41ac73['setAttribute']('data-change-id',_0x527b4e,_0x805a27),_0x41ac73['addClass']('ck-revision-history-root-'+_0x464798['type'],_0x805a27),this['activeChange']==_0x464798&&_0x41ac73['addClass']('ck-revision-history-root--active',_0x805a27);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xc72e69=>'revision-comment:'+_0xc72e69,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5d0e00=>'revision-suggestion:'+_0x5d0e00,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5ae37a=>({'name':'suggestion:'+_0x5ae37a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4df5dd=>{const _0x49aed6=_0x4df5dd['markerName']['split'](':')[0x1];return'insertion'!=_0x49aed6&&'deletion'!=_0x49aed6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x49aed6]};}}),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',(_0x25c794,_0x3b9425,_0x5e1af3)=>{const _0x54b209=_0x5e1af3['mapper']['markerNameToElements'](_0x3b9425['markerName']);if(_0x54b209){for(const _0x2b709b of _0x54b209)_0x2b709b['is']('uiElement')&&(_0x5e1af3['mapper']['unbindElementFromMarkerName'](_0x2b709b,_0x3b9425['markerName']),_0x5e1af3['writer']['remove'](_0x2b709b));}},{'priority':'high'});}['_getChangeFromId'](_0x10dcda){return this['_changeIdToChange']['get'](_0x10dcda);}['_getViewForChange'](_0x8befe3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x8befe3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x520b74,_0x407d5c,_0x3665f5,_0x51690c)=>{_0x51690c&&this['_balloon']['remove'](_0x51690c),_0x3665f5&&(this['_balloon']['add']({'view':_0x3665f5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x41d8f9=this['editor']['editing'],_0x5667ab=this['_getChangeFromId'](_0x3665f5['changeId']);let _0x29170e;if(_0x5667ab['data']['isOnRoot']){const _0x31a74d=_0x41d8f9['view']['getDomRoot'](_0x5667ab['rootName']);_0x29170e=Array['from'](_0x31a74d['getClientRects']());}else{const _0x533c1e=this['editor']['model']['markers']['get']('revision:'+_0x3665f5['changeId']);_0x29170e=Array['from'](_0x41d8f9['mapper']['markerNameToElements'](_0x533c1e['name']))['map'](_0x3e931d=>_0x41d8f9['view']['domConverter']['mapViewToDom'](_0x3e931d))['map'](_0x1f33b5=>Array['from'](_0x1f33b5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x29170e[0x0];return _0x29170e['find'](_0x1a4088=>_0x1a4088['top']-0x3<=this['_activeViewTarget']['y']&&_0x1a4088['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1a4088['left']-0x3<=this['_activeViewTarget']['x']&&_0x1a4088['right']+0x3>=this['_activeViewTarget']['x'])||_0x29170e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x7648c1,_0x282287,_0x522749,_0x259f8c)=>{this['activeView']=_0x522749?this['_getViewForChange'](_0x522749):null,this['editor']['model']['change'](()=>{const _0x47d39d=this['editor']['editing'];_0x259f8c&&(_0x259f8c['data']['isOnRoot']?_0x47d39d['view']['change'](_0x22297f=>{_0x22297f['removeClass']('ck-revision-history-root--active',_0x47d39d['view']['document']['getRoot'](_0x259f8c['rootName']));}):_0x47d39d['reconvertMarker']('revision:'+_0x259f8c['id'])),_0x522749&&(_0x522749['data']['isOnRoot']?_0x47d39d['view']['change'](_0xdf6f5d=>{_0xdf6f5d['addClass']('ck-revision-history-root--active',_0x47d39d['view']['document']['getRoot'](_0x522749['rootName']));}):_0x47d39d['reconvertMarker']('revision:'+_0x522749['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x693c36,_0x18cdf8)=>{if(this['activeChange'])return;const _0x55cf03=this['_findChangeIdFromDomTarget'](_0x18cdf8['target']),_0xe3f08d=this['_changeIdToChange']['get'](_0x55cf03);_0xe3f08d?(this['_activeViewTarget']={'x':_0x18cdf8['domEvent']['x'],'y':_0x18cdf8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe3f08d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5acc51,_0x5c2236)=>{const _0x4e3321=this['_findChangeIdFromDomTarget'](_0x5c2236['target']),_0x42e6fb=this['_changeIdToChange']['get'](_0x4e3321);_0x42e6fb?(this['_activeViewTarget']={'x':_0x5c2236['domEvent']['x'],'y':_0x5c2236['domEvent']['y']},_0x42e6fb===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x42e6fb):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2466b6){do{const _0x5ca482=_0x2466b6['getAttribute']('data-change-id');if(_0x5ca482)return _0x5ca482;_0x2466b6=_0x2466b6['parent'];}while(_0x2466b6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3e48fc=>{for(const _0x3a6446 of this['editor']['model']['markers'])_0x3e48fc['removeMarker'](_0x3a6446);});}}function Z(_0x44f6bd,_0x12c60a){return(_0x5c1474,_0x18fbbe,_0x4955bc)=>{if(!_0x4955bc['consumable']['test'](_0x18fbbe['markerRange'],_0x5c1474['name']))return;const _0x9e777e=_0x18fbbe['markerRange']['getWalker'](),_0x374a3e=_0x18fbbe['markerRange']['start'],_0x45e1fa=_0x44f6bd['model']['schema'];let _0x3e2194=null,_0x326ba7=null,_0x16f708=!0x1,_0x521348=!0x1;for(const _0x4f7b63 of _0x9e777e){const _0x130108=_0x4f7b63['item'];_0x16f708=_0x16f708||_0x45e1fa['isContent'](_0x130108);const _0x25d923=_0x4955bc['mapper']['toViewElement'](_0x130108);if(_0x25d923&&_0x25d923['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f7b63['type']&&(_0x45e1fa['isBlock'](_0x130108)&&!_0x45e1fa['isLimit'](_0x130108)&&(_0x130108['nextSibling']||_0x374a3e['isAtEnd']?_0x3e2194&&_0x3e2194['parent']==_0x130108||(_0x3e2194=_0x130108,_0x909299(_0x4f7b63['previousPosition']),_0x521348=!0x0):_0x326ba7=_0x326ba7||_0x4f7b63['previousPosition']));}function _0x909299(_0x228e25){const _0x451f6b=_0x4955bc['mapper']['toViewPosition'](_0x228e25),_0x483520=_0x4955bc['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x12c60a});_0x4955bc['writer']['insert'](_0x451f6b,_0x483520),_0x4955bc['mapper']['bindElementToMarker'](_0x483520,_0x18fbbe['markerName']);}_0x16f708||_0x521348||!_0x326ba7||_0x909299(_0x326ba7);};}class _t extends _0x5703f7{constructor(_0x4fd855){super(_0x4fd855);const _0x5955e4=_0x4fd855['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5955e4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5955e4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2dfde7=this['editor'],_0x2016b1=_0x2dfde7['plugins']['get'](d),_0x4f30d3=_0x2016b1['isReady']?_0x2016b1['diff']['newRevisionId']:null;_0x2dfde7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4f30d3);}['refresh'](){const {isReady:_0x289459,isEnabled:_0x363072,repository:_0x5c8a23,diff:_0x28853d}=this['editor']['plugins']['get'](d),_0x282ac8=_0x28853d&&_0x5c8a23['getLaterVisibleRevision'](_0x28853d['newRevisionId']);this['isEnabled']=_0x289459&&_0x363072&&Boolean(_0x282ac8);}}class yt extends _0x5703f7{['_step'];constructor(_0x2b55bd,{direction:_0x1ef0f0}){super(_0x2b55bd);const _0x592dd6=_0x2b55bd['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1ef0f0?0x1:-0x1,this['listenTo'](_0x592dd6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x592dd6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x592dd6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1842db=this['editor'],_0x3b30ac=_0x1842db['plugins']['get'](d),{isNavigationMode:_0x5bdb06,currentChangeNumber:_0x2a22d7}=_0x3b30ac;let _0x3c40f0;if(_0x3b30ac['activeChange']=_0x5bdb06?_0x3b30ac['diff']['changes']['get'](_0x2a22d7+this['_step']):_0x3b30ac['diff']['changes']['first'],_0x3b30ac['activeChange']['data']['isOnRoot'])_0x3c40f0=_0x1842db['editing']['view']['getDomRoot'](_0x3b30ac['activeChange']['rootName']);else{const _0x4353ab=_0x1842db['model']['markers']['get']('revision:'+_0x3b30ac['activeChange']['id']);_0x3c40f0=_0x55db30(_0x1842db['editing'],_0x4353ab);}_0xd96e53({'target':_0x3c40f0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x15daa7,currentChangeNumber:_0xe698b6,numberOfChanges:_0x261474,isReady:_0xb12c89,isEnabled:_0x5a7758}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5a7758&&_0xb12c89&&_0x261474)&&(!_0x15daa7||(0x1===this['_step']?_0xe698b6<_0x261474-0x1:_0xe698b6>0x0));}}class bi extends _0xe423a3{constructor(_0x4ad392){super(_0x4ad392);const _0x366aa8=this['bindTemplate'],_0x4c55c2=new _0x5a62bb(_0x4ad392),_0x477ecc=new _0x5a62bb(_0x4ad392);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',(_0xe1164f,_0x58b097)=>_0xe1164f&&_0x58b097>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1ed313,_0x10342c,_0xd64d1b,_0x15866e)=>{if(!_0x1ed313)return m(_0x4ad392,'Loading...');if(!_0xd64d1b)return m(_0x4ad392,'No\x20changes');const _0x324e0f=m(_0x4ad392,'NUMBER_OF_CHANGES',_0xd64d1b);return _0x15866e?m(_0x4ad392,'X_OF_Y_CHANGES',[_0x10342c+0x1,_0xd64d1b]):_0x324e0f;}),_0x4c55c2['set']({'label':m(_0x4ad392,'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'}),_0x477ecc['set']({'label':m(_0x4ad392,'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'}),_0x4c55c2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x477ecc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4c55c2['on']('execute',()=>this['fire']('execute','backward')),_0x477ecc['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',_0x366aa8['if']('_isStatusLabelVisible','ck-hidden',_0x30c531=>!_0x30c531)]},'children':[{'text':_0x366aa8['to']('isNavigationMode',_0xa3e5fb=>_0xa3e5fb?m(_0x4ad392,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4ad392,'Total')+':\x20')}]},{'text':_0x366aa8['to']('_statusText')}]},new _0x535beb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4c55c2,_0x477ecc]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x417e25{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x38abfc=this['editor']['editing']['view'];_0x38abfc['change'](_0x2e190f=>{for(const _0x4e8fd1 of _0x38abfc['document']['roots'])_0x2e190f['addClass'](ie,_0x4e8fd1);});}['hide'](){const _0x51aee3=this['editor']['editing']['view'];_0x51aee3['change'](_0x18678e=>{for(const _0x8f73fe of _0x51aee3['document']['roots'])_0x18678e['removeClass'](ie,_0x8f73fe);});}}class g extends _0x417e25{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x11fcd6=this['editor'],_0x288eef=_0x11fcd6['plugins']['get'](d),_0x29304c=_0x11fcd6['plugins']['get'](te);_0x11fcd6['ui']['componentFactory']['add']('exitToEditing',_0x3566ec=>{const _0x5a0139=new _0x5a62bb(_0x3566ec);return _0x5a0139['set']({'label':m(_0x3566ec,'Back\x20to\x20editing'),'icon':_0x5aa4d3['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5a0139,'execute',()=>{_0x11fcd6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5a0139;}),_0x11fcd6['ui']['componentFactory']['add']('restoreRevision',_0x18668f=>{const _0x1d0037=new _0x5a62bb(_0x18668f);return _0x1d0037['set']({'label':m(_0x18668f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1d0037['bind']('isEnabled')['to'](_0x11fcd6['commands']['get']('restoreRevision')),this['listenTo'](_0x1d0037,'execute',()=>_0x11fcd6['execute']('restoreRevision')),_0x1d0037;}),_0x11fcd6['ui']['componentFactory']['add']('changesNavigation',_0x5ba944=>{const _0x5b29fa=new bi(_0x5ba944),_0x35b7e6=_0x11fcd6['commands']['get']('showPreviousChange'),_0x27b84f=_0x11fcd6['commands']['get']('showNextChange');return _0x5b29fa['bind']('isBackwardNavigationEnabled')['to'](_0x35b7e6,'isEnabled'),_0x5b29fa['bind']('isForwardNavigationEnabled')['to'](_0x27b84f,'isEnabled'),_0x5b29fa['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x288eef),this['listenTo'](_0x5b29fa,'execute',(_0xc6a0c7,_0x43142c)=>{_0x11fcd6['execute']('forward'===_0x43142c?'showNextChange':'showPreviousChange');}),_0x5b29fa;}),_0x29304c['show'](),_0x288eef['on']('change:isReady',(_0x16b541,_0x29ff7c,_0x429585)=>{_0x429585?_0x29304c['hide']():_0x29304c['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x59fed2,_0xdab9e5){super(_0x59fed2,_0xdab9e5);const _0x25e9a9=this['bindTemplate'];this['set']({'label':m(_0x59fed2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x59fed2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x25e9a9['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 _0x3a4f91=this['fieldView']['element'];this['_tooltipString']=_0x3a4f91['scrollWidth']>_0x3a4f91['clientWidth']&&_0x3a4f91['value']||'';}}class ti extends _0xe423a3{constructor(_0x30af41,_0x54e2f8,_0x3cc86a){super(_0x30af41);const _0x4afb60=new _0x5b866();_0x4afb60['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 _0x487cd0=['ck','ck-revision-history-sidebar__revision-author'];_0x3cc86a&&_0x487cd0['push']('ck-revision-history-sidebar__revision-author_creator');const _0x429b4b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x30af41,_0x3cc86a?'Revision\x20creator':'Revision\x20author')},'children':[_0x4afb60,_0x54e2f8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x487cd0},'children':_0x429b4b});}}function ni(_0x553c5c,_0x56aa4c){const _0x5d7a7c=_0x553c5c['bindTemplate'],_0x7f6979=_0x553c5c['locale'],_0x3ee2f3=_0x4c6b24(_0x7f6979);_0x3ee2f3['panelPosition']='sw';const _0xe5cf73=function(_0x37ec02,_0x495d4f){const _0x986c48=function(_0x1cec2b,_0x35d99d){const _0x472451=_0x1cec2b['locale'],_0x576e47={'Compare\x20against\x20selected':m(_0x472451,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x472451,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x472451,'Restore\x20this\x20revision')};return _0x35d99d['map'](_0x5bd0b9=>{const _0x1698e7=_0x576e47[_0x5bd0b9['name']];return _0x1698e7&&_0x1698e7!==_0x5bd0b9['name']&&(_0x5bd0b9['name']=_0x1698e7),_0x5bd0b9;});}(_0x37ec02,_0x495d4f),_0xe4d72d=new _0x10516c();for(const _0xf0aa80 of _0x986c48){const _0x557c84={'type':'button','model':new to({'label':_0xf0aa80['name'],'class':_0xf0aa80['class'],'withText':!0x0,'role':'menuitem','_action':_0xf0aa80['action']})};_0x557c84['model']['bind']('isEnabled')['to'](_0x37ec02,'isActionsDropdownOpen',_0x2a2575=>'function'!=typeof _0xf0aa80['isEnabled']||(!_0x2a2575||_0xf0aa80['isEnabled'](_0x37ec02))),_0xe4d72d['add'](_0x557c84);}return _0xe4d72d;}(_0x553c5c,_0x56aa4c);return _0x553c5c['bind']('isActionsDropdownOpen')['to'](_0x3ee2f3,'isOpen'),_0x3ee2f3['buttonView']['set']({'label':m(_0x7f6979,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5aa4d3['threeVerticalDots']}),_0x3ee2f3['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5d7a7c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5d7a7c['to'](_0x5c18c2=>_0x5c18c2['stopPropagation']())}}),_0x3ee2f3['on']('execute',_0x2da411=>{_0x553c5c['isReady']&&'function'==typeof _0x2da411['source']['_action']&&_0x2da411['source']['_action'](_0x553c5c);}),_0x408539(_0x3ee2f3,_0xe5cf73,{'role':'menu'}),_0x3ee2f3['listenTo'](_0x553c5c,'change:isActionsDropdownOpen',(_0x32f75e,_0x353350,_0xb8737a)=>{if(_0xb8737a)for(const _0x1123bc of _0x3ee2f3['listView']['items']){const _0x1368e6=_0x1123bc['children']['first'],_0x35d0a6=_0x56aa4c['find'](_0x41757c=>_0x41757c['action']===_0x1368e6['_action'])['isVisible'];_0x1123bc['isVisible']=void 0x0===_0x35d0a6||_0x35d0a6(_0x553c5c);}}),_0x3ee2f3;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x1af8ce,uid as _0x522a16,Collection as _0x348058,logWarning as _0x4c21f5,FocusTracker as _0x374fa8,KeystrokeHandler as _0x4c9c93,scrollViewportToShowTarget as _0x246e00,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x4d683e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2e632a,set as _0x1e6b1a,unset as _0x506342,isEqual as _0x103b49}from'lodash-es';import{Plugin as _0x167142,PendingActions as _0x594010,icons as _0x385e25,Command as _0x1b8a8d,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x50c3f1,getMarkerDomElement as _0x1d15f9,ConfirmMixin as _0x1448cf,sanitizeEditorConfig as _0x5b4d95}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x304a1b,Element as ft,Range as vt,ViewUIElement as _0x3a6fc7,ViewRawElement as _0x1bcc36,ViewEmptyElement as _0x53c6dc,ViewAttributeElement as _0x3348fb,ViewContainerElement as _0x426bd3,Position as gt,ViewText as _0x44a3c7,ViewElement as _0xb48d93,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x5ca5eb,injectCssTransitionDisabler as ts,submitHandler as _0x359b2b,LabeledFieldView as nt,createLabeledInputText as _0x59699b,createDropdown as _0x5549cd,ListView as te,ListItemView as _0x3bec46,ButtonView as _0x2a10f9,MenuBarMenuView as _0x579b3d,MenuBarMenuListView as _0x34ebb5,MenuBarMenuListItemView as _0xc6f60d,MenuBarMenuListItemButtonView as _0x20ab11,ContextualBalloon as _0x34c41e,ToolbarSeparatorView as _0x1b5db4,IconView as _0x536c86,addListToDropdown as _0x3ba534,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 _0x4e3244}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1af8ce(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1d0c80){super(),this['id']=_0x1d0c80['id']||_0x522a16(),this['creator']=_0x1d0c80['creator']||null,this['authors']=_0x1d0c80['authors']||[],this['diffData']=_0x1d0c80['diffData']||null,this['toVersion']=_0x1d0c80['toVersion']||0x0,this['fromVersion']=_0x1d0c80['fromVersion']||0x0,this['set']('name',_0x1d0c80['name']||''),this['set']('createdAt',_0x1d0c80['createdAt']||new Date()),this['set']('attributes',_0x1d0c80['attributes']||{});}['setName'](_0x35b8f4){this['_update']({'name':_0x35b8f4});}['setAttribute'](_0x28c53a,_0x58d5af){const _0x1bace3=_0x2e632a(this['attributes']);_0x1e6b1a(_0x1bace3,_0x28c53a,_0x58d5af),this['_update']({'attributes':_0x1bace3});}['removeAttribute'](_0x2cbc81){const _0x2e7479=_0x2e632a(this['attributes']);_0x506342(_0x2e7479,_0x2cbc81),this['_update']({'attributes':_0x2e7479});}['_update'](_0x4ed5ba,_0x2d68ae=!0x1){let _0x1103d3=!0x1;const _0x2e7285={'id':this['id']},_0x169362=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x9ebcd2 of _0x169362){const _0x7bfdaf=_0x4ed5ba[_0x9ebcd2];void 0x0!==_0x7bfdaf&&_0x7bfdaf!==this[_0x9ebcd2]&&(this[_0x9ebcd2]=_0x7bfdaf,_0x2e7285[_0x9ebcd2]=_0x7bfdaf,_0x1103d3=!0x0);}_0x1103d3&&(_0x2e7285['authors']&&(_0x2e7285['authorsIds']=_0x2e7285['authors']['map'](_0x2f6fb1=>_0x2f6fb1['id']),delete _0x2e7285['authors']),this['fire']('_update',_0x2e7285,_0x2d68ae));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x10b874=>_0x10b874['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x167142{['_revisions'];static get['requires'](){return[_0x50c3f1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x51e623){super(_0x51e623),this['_revisions']=new _0x348058();}['afterInit'](){!async function(_0x478986){const _0x1e9a2e=_0xaa503f([0x32,0x54,0x64,0x6e,0x69,0x51,0x31,0x56,0x63,0x4d,0x65,0x6b,0x70,0x62,0x6a,0x4b,0x72,0x34,0x4f,0x57,0x74,0x36,0x37,0x68,0x33,0x49,0x6c,0x39,0x45,0x48,0x30,0x52,0x41,0x50,0x67,0x35,0x6d,0x76,0x6f,0x42,0x75,0x38,0x43,0x79,0x4e,0x78,0x7a,0x73,0x61,0x53,0x44,0x55,0x59,0x71,0x4a,0x58,0x66,0x5a,0x47,0x77,0x4c,0x46]),_0x3bd7a2=0xeb829,_0x2fdae7=0x7f8a2fb9,_0x298cd7=0x7f8d7049^_0x2fdae7,_0x29e711=window[_0xaa503f([0x44,0x61,0x74,0x65])][_0xaa503f([0x6e,0x6f,0x77])](),_0x2d8f4a=_0x478986[_0xaa503f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x129660=new window[(_0xaa503f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cf865=>{_0x2d8f4a[_0xaa503f([0x6f,0x6e,0x63,0x65])](_0xaa503f([0x72,0x65,0x61,0x64,0x79]),_0x2cf865);}),_0x155db6={[_0xaa503f([0x6b,0x74,0x79])]:_0xaa503f([0x45,0x43]),[_0xaa503f([0x75,0x73,0x65])]:_0xaa503f([0x73,0x69,0x67]),[_0xaa503f([0x63,0x72,0x76])]:_0xaa503f([0x50,0x2d,0x32,0x35,0x36]),[_0xaa503f([0x78])]:_0xaa503f([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]),[_0xaa503f([0x79])]:_0xaa503f([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]),[_0xaa503f([0x61,0x6c,0x67])]:_0xaa503f([0x45,0x53,0x32,0x35,0x36])},_0x363125=_0x2d8f4a[_0xaa503f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xaa503f([0x67,0x65,0x74])](_0xaa503f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a6405(){let _0x1793ef,_0x2dabb2=null,_0x142504=null;try{if(_0x363125==_0xaa503f([0x47,0x50,0x4c]))return _0xaa503f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1793ef=_0x56e561(),!_0x1793ef)return _0xaa503f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1793ef[_0xaa503f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x142504=_0x449e9d(_0x1793ef[_0xaa503f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1793ef[_0xaa503f([0x6a,0x74,0x69])])),await _0x5da2f9()?_0x1bdb12()?_0x342a05()?_0xaa503f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x63fae0()?(_0x1793ef[_0xaa503f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xaa503f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2dabb2=_0x133fd7(_0xaa503f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1793ef[_0xaa503f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xaa503f([0x74,0x72,0x69,0x61,0x6c])&&(_0x2dabb2=_0x133fd7(_0xaa503f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x270114()):_0xaa503f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xaa503f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xaa503f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x215ded){return _0xaa503f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x342a05(){const _0x547526=[_0xaa503f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xaa503f([0x74,0x72,0x69,0x61,0x6c])][_0xaa503f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1793ef[_0xaa503f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29e711/0x3e8:0xe10*_0x298cd7;return _0x1793ef[_0xaa503f([0x65,0x78,0x70])]<_0x547526;}function _0x1bdb12(){const _0x37abd8=_0x1793ef[_0xaa503f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37abd8)return!0x1;if(_0x37abd8[_0xaa503f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa503f([0x2a])))return!0x0;if(_0x37abd8[_0xaa503f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa503f([0x52,0x48])))return!0x0;if(_0x37abd8[_0xaa503f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa503f([0x52,0x52,0x48]))){if(_0x153e4b())return!0x0;if(_0x5ccfd6()||_0x479ac4())return!0x0;}return!0x1;}function _0x63fae0(){const _0x1346a5=_0x1793ef[_0xaa503f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1346a5||0x0==_0x1346a5[_0xaa503f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23d814}=new URL(window[_0xaa503f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1346a5[_0xaa503f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d814))return!0x0;const _0x256d5c=_0x23d814[_0xaa503f([0x73,0x70,0x6c,0x69,0x74])](_0xaa503f([0x2e]));return _0x1346a5[_0xaa503f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x272998=>_0x272998[_0xaa503f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa503f([0x2a])))[_0xaa503f([0x6d,0x61,0x70])](_0x3ac96a=>_0x3ac96a[_0xaa503f([0x73,0x70,0x6c,0x69,0x74])](_0xaa503f([0x2e])))[_0xaa503f([0x73,0x6f,0x6d,0x65])](_0x3c5abb=>_0x256d5c[_0xaa503f([0x65,0x76,0x65,0x72,0x79])]((_0x4fcd18,_0x297c57)=>_0x3c5abb[_0x297c57]===_0x4fcd18||_0x3c5abb[_0x297c57]===_0xaa503f([0x2a])));}function _0x270114(){return _0x2dabb2&&_0x142504?new window[(_0xaa503f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f1195,_0x1e5880)=>{_0x2dabb2[_0xaa503f([0x74,0x68,0x65,0x6e])](_0x3f1195,_0x1e5880),_0x142504[_0xaa503f([0x74,0x68,0x65,0x6e])](_0x5d5eb9=>{_0x5d5eb9!=_0xaa503f([0x56,0x61,0x6c,0x69,0x64])&&_0x3f1195(_0x5d5eb9);},_0x1e5880);}):_0x2dabb2||_0x142504||_0xaa503f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x449e9d(_0x50f59c,_0x47b394){return new window[(_0xaa503f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x216520=>{if(_0x56651e())return _0x216520(_0xaa503f([0x56,0x61,0x6c,0x69,0x64]));_0x356b4c(),_0x2d8f4a[_0xaa503f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xaa503f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48c427=!0x1;const _0x1ad994=_0x522a16();function _0x43b8ec(_0x39bebc){return!!_0x39bebc&&(typeof _0x39bebc===_0xaa503f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39bebc===_0xaa503f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39bebc[_0xaa503f([0x74,0x68,0x65,0x6e])]===_0xaa503f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39bebc[_0xaa503f([0x63,0x61,0x74,0x63,0x68])]===_0xaa503f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2588e9(_0x31b8f6){_0xffcce4(_0x31b8f6)[_0xaa503f([0x74,0x68,0x65,0x6e])](_0x2a4a9d=>{if(!_0x2a4a9d||_0x2a4a9d[_0xaa503f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xaa503f([0x6f,0x6b]))return _0xaa503f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x687b03(_0x2e0b3f(_0x1ad994+_0x47b394))!=_0x2a4a9d[_0xaa503f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xaa503f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xaa503f([0x56,0x61,0x6c,0x69,0x64]);})[_0xaa503f([0x74,0x68,0x65,0x6e])](_0x4818cd=>(_0x394b92(),_0x4818cd),()=>{const _0x37badd=_0x5bc0e3();return null==_0x37badd?(_0x394b92(),_0xaa503f([0x56,0x61,0x6c,0x69,0x64])):_0xaa503f(_0x29e711-_0x37badd>(0x5b86abb9^_0x2fdae7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xaa503f([0x74,0x68,0x65,0x6e])](_0x216520)[_0xaa503f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x216520(_0xaa503f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28d643=0x7fbcc139^_0x2fdae7;function _0x394b92(){const _0x40c323=_0xaa503f([0x6c,0x6c,0x63,0x74,0x2d])+_0x687b03(_0x2e0b3f(_0x50f59c)),_0x2e0e99=_0x232f9f(_0x687b03(window[_0xaa503f([0x4d,0x61,0x74,0x68])][_0xaa503f([0x63,0x65,0x69,0x6c])](_0x29e711/_0x28d643)));window[_0xaa503f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaa503f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40c323,_0x2e0e99);}function _0x5bc0e3(){const _0x7c07e0=_0xaa503f([0x6c,0x6c,0x63,0x74,0x2d])+_0x687b03(_0x2e0b3f(_0x50f59c)),_0x42e15e=window[_0xaa503f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaa503f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7c07e0);return _0x42e15e?window[_0xaa503f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x232f9f(_0x42e15e),0x10)*_0x28d643:null;}function _0xffcce4(_0x8cb6a9){return new window[(_0xaa503f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x210a1f,_0x3f9889)=>{_0x8cb6a9[_0xaa503f([0x74,0x68,0x65,0x6e])](_0x210a1f,_0x3f9889),window[_0xaa503f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f9889,0x7f8bfb79^_0x2fdae7);});}}_0x2d8f4a[_0xaa503f([0x6f,0x6e])](_0xaa503f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa0ac65,_0x303c02)=>{if(_0x303c02[0x0]!=_0x50f59c)return _0x216520(_0xaa503f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x303c02[0x1]={..._0x303c02[0x1],[_0xaa503f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ad994};},{[_0xaa503f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaa503f([0x68,0x69,0x67,0x68])}),_0x2d8f4a[_0xaa503f([0x6f,0x6e])](_0xaa503f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b310e=>{_0x43b8ec(_0x5b310e[_0xaa503f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48c427=!0x0,_0x2588e9(_0x5b310e[_0xaa503f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xaa503f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaa503f([0x6c,0x6f,0x77])}),_0x129660[_0xaa503f([0x74,0x68,0x65,0x6e])](()=>{_0x48c427||_0x216520(_0xaa503f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56651e(){return _0x2d8f4a[_0xaa503f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaa503f([0x76,0x69,0x65,0x77])][_0xaa503f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xaa503f([0x61,0x75,0x74,0x6f]);}function _0x356b4c(){_0x2d8f4a[_0xaa503f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaa503f([0x76,0x69,0x65,0x77])][_0xaa503f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xaa503f([0x61,0x75,0x74,0x6f]);}}function _0x133fd7(_0x30f5db){const _0x24e3b1=[new window[(_0xaa503f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x598da4=>setTimeout(_0x598da4,0x7f831175^_0x2fdae7)),_0x129660[_0xaa503f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xaa503f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38d958=>{const _0x337eb1=0x7f8a2fbe^_0x2fdae7,_0x54c97f=_0x478986[_0xaa503f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3498e9(){_0x54c97f[_0xaa503f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x337eb1&&_0x38d958();}_0x3498e9(),_0x54c97f[_0xaa503f([0x6f,0x6e])](_0xaa503f([0x61,0x64,0x64]),_0x3498e9);})),new window[(_0xaa503f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4671d9=>{function _0x1fa2b7(){for(const _0x3af8f3 in window)if(window[_0xaa503f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xaa503f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3af8f3))&&window[_0x3af8f3]==_0x3bd7a2)return _0x4671d9();_0x2d8f4a[_0xaa503f([0x73,0x74,0x61,0x74,0x65])]!=_0xaa503f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xaa503f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fa2b7,0x7f8a3c31^_0x2fdae7);}_0x5a8914(_0xaa503f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1fa2b7();})];return window[_0xaa503f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xaa503f([0x72,0x61,0x63,0x65])](_0x24e3b1)[_0xaa503f([0x74,0x68,0x65,0x6e])](()=>_0x30f5db);}async function _0x2339d0(){if(await _0x129660,_0x5a8914(_0xaa503f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x15fc88=_0x478986[_0xaa503f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xfbd4db=_0x478986[_0xaa503f([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])](_0x15fc88[_0xaa503f([0x69,0x64])]),_0x1cdfa5=_0x371586(_0xaa503f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1cdfa5[_0xaa503f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x15fc88['id'],_0xfbd4db?_0xfbd4db['id']:null,!0x0),_0x1cdfa5[_0xaa503f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xaa503f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1cdfa5[_0xaa503f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1cdfa5[_0xaa503f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1a5dba,void(_0x1cdfa5[_0xaa503f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1a5dba);}if(_0x5a8914(_0xaa503f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2dfd3f=_0x371586(_0xaa503f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2dfd3f[_0xaa503f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xaa503f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2dfd3f[_0xaa503f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2dfd3f[_0xaa503f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1a5dba,_0x2dfd3f[_0xaa503f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1a5dba;}_0x2d8f4a[_0xaa503f([0x6d,0x6f,0x64,0x65,0x6c])][_0xaa503f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a5dba,_0x2d8f4a[_0xaa503f([0x6d,0x6f,0x64,0x65,0x6c])][_0xaa503f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a5dba,_0x2d8f4a[_0xaa503f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xaa503f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x153e4b(){return _0x5a8914(_0xaa503f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x371586(_0xaa503f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xaa503f([0x73,0x74,0x61,0x74,0x65])]==_0xaa503f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5ccfd6(){return _0x5a8914(_0xaa503f([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 _0x479ac4(){return _0x5a8914(_0xaa503f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4e04d4(_0x2db1aa){const _0x523f55=_0x2c16f3();_0x2d8f4a[_0x523f55]=_0xaa503f([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])+_0x2db1aa,_0x2db1aa[_0xaa503f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xaa503f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2c16f3()]=_0x3bd7a2),_0x2db1aa!=_0xaa503f([0x56,0x61,0x6c,0x69,0x64])&&_0x2339d0();}function _0x2c16f3(){const _0x21ec12=window[_0xaa503f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xaa503f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xaa503f([0x6e,0x6f,0x77])]())[_0xaa503f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xaa503f([0x2e]),'');let _0x552219=_0xaa503f([0x54]);for(let _0x1f4ffc=0x0;_0x1f4ffc<_0x21ec12[_0xaa503f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f4ffc+=0x2){let _0x2909f8=window[_0xaa503f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21ec12[_0xaa503f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f4ffc,_0x1f4ffc+0x2));_0x2909f8>=_0x1e9a2e[_0xaa503f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2909f8-=_0x1e9a2e[_0xaa503f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x552219+=_0x1e9a2e[_0x2909f8];}return _0x552219;}function _0x56e561(){const _0x318389=_0x363125[_0xaa503f([0x73,0x70,0x6c,0x69,0x74])](_0xaa503f([0x2e]));if(0x3!=_0x318389[_0xaa503f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1c7714(_0x318389[0x1]);function _0x1c7714(_0x34aa33){const _0x143d5e=_0x1ffb3c(_0x34aa33);return _0x143d5e&&_0x5b74c0()?_0x143d5e:null;function _0x5b74c0(){const _0x523e19=_0x143d5e[_0xaa503f([0x6a,0x74,0x69])],_0x30195d=window[_0xaa503f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x523e19[_0xaa503f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x523e19[_0xaa503f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x521c78={..._0x143d5e,[_0xaa503f([0x6a,0x74,0x69])]:_0x523e19[_0xaa503f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x523e19[_0xaa503f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x521c78[_0xaa503f([0x76,0x63])],_0x2e0b3f(_0x521c78)==_0x30195d;}}}async function _0x5da2f9(){let _0x1e3233=!0x0;try{const _0x165841=_0x363125[_0xaa503f([0x73,0x70,0x6c,0x69,0x74])](_0xaa503f([0x2e])),[_0xe94a29,_0x47c73a,_0x5f1a35]=_0x165841;return _0x24455b(_0xe94a29),await _0x1991ff(_0xe94a29,_0x47c73a,_0x5f1a35),_0x1e3233;}catch(_0x3eda1c){return!0x1;}function _0x24455b(_0x55b5e3){const _0x18e08b=_0x1ffb3c(_0x55b5e3);_0x18e08b&&_0x18e08b[_0xaa503f([0x61,0x6c,0x67])]==_0xaa503f([0x45,0x53,0x32,0x35,0x36])||(_0x1e3233=!0x1);}async function _0x1991ff(_0x53e33d,_0x3b04c2,_0x4ed517){const _0x380608=window[_0xaa503f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xaa503f([0x66,0x72,0x6f,0x6d])](_0xbbdf04(_0x4ed517),_0x37a2ab=>_0x37a2ab[_0xaa503f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x589256=new window[(_0xaa503f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xaa503f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53e33d+_0xaa503f([0x2e])+_0x3b04c2),_0x3b9fcd=window[_0xaa503f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xaa503f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b9fcd)return;const _0xa78111=await _0x3b9fcd[_0xaa503f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xaa503f([0x6a,0x77,0x6b]),_0x155db6,{[_0xaa503f([0x6e,0x61,0x6d,0x65])]:_0xaa503f([0x45,0x43,0x44,0x53,0x41]),[_0xaa503f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xaa503f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xaa503f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b9fcd[_0xaa503f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xaa503f([0x6e,0x61,0x6d,0x65])]:_0xaa503f([0x45,0x43,0x44,0x53,0x41]),[_0xaa503f([0x68,0x61,0x73,0x68])]:{[_0xaa503f([0x6e,0x61,0x6d,0x65])]:_0xaa503f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa78111,_0x380608,_0x589256)||(_0x1e3233=!0x1);}}function _0x1ffb3c(_0x5b29a3){return _0x5b29a3[_0xaa503f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xaa503f([0x65,0x79]))?JSON[_0xaa503f([0x70,0x61,0x72,0x73,0x65])](_0xbbdf04(_0x5b29a3)):null;}function _0xbbdf04(_0x135b31){return window[_0xaa503f([0x61,0x74,0x6f,0x62])](_0x135b31[_0xaa503f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xaa503f([0x2b]))[_0xaa503f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xaa503f([0x2f])));}function _0x2e0b3f(_0x55e27d){let _0xd6e845=0x1505;function _0x18c60f(_0x55aa34){for(let _0x3b9a81=0x0;_0x3b9a81<_0x55aa34[_0xaa503f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b9a81++){const _0x171b9b=_0x55aa34[_0xaa503f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b9a81);_0xd6e845=(_0xd6e845<<0x5)+_0xd6e845+_0x171b9b,_0xd6e845&=_0xd6e845;}}function _0x1ba776(_0x3aa779){Array[_0xaa503f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3aa779)?_0x3aa779[_0xaa503f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ba776):_0x3aa779&&typeof _0x3aa779==_0xaa503f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xaa503f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3aa779)[_0xaa503f([0x73,0x6f,0x72,0x74])]()[_0xaa503f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52b325,_0x4788d3])=>{_0x18c60f(_0x52b325),_0x1ba776(_0x4788d3);}):_0x18c60f(window[_0xaa503f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3aa779));}return _0x1ba776(_0x55e27d),_0xd6e845>>>0x0;}function _0x687b03(_0x1dfcfd){return _0x1dfcfd[_0xaa503f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xaa503f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xaa503f([0x30]));}function _0x232f9f(_0x2940fe){return _0x2940fe[_0xaa503f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xaa503f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xaa503f([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a8914(_0x7f949f){return _0x2d8f4a[_0xaa503f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xaa503f([0x68,0x61,0x73])](_0x7f949f);}function _0x371586(_0x3c9e5){return _0x2d8f4a[_0xaa503f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xaa503f([0x67,0x65,0x74])](_0x3c9e5);}function _0x1a5dba(){}function _0xaa503f(_0x80e6ba){return _0x80e6ba['map'](_0x2651f9=>String['fromCharCode'](_0x2651f9))['join']('');}_0x4e04d4(await _0x5a6405());}(this);}['createRevision'](_0x3b78c1){const _0x182fca=this['editor']['plugins']['get']('Users');return new a({'id':_0x3b78c1['id'],'name':_0x3b78c1['name'],'creator':_0x3b78c1['creatorId']?_0x182fca['getUser'](_0x3b78c1['creatorId']):null,'diffData':_0x3b78c1['diffData']||_0x3b78c1['data'],'authors':_0x3b78c1['authorsIds']['map'](_0x5be677=>_0x182fca['getUser'](_0x5be677)),'createdAt':new Date(_0x3b78c1['createdAt']),'attributes':_0x3b78c1['attributes'],'fromVersion':_0x3b78c1['fromVersion'],'toVersion':_0x3b78c1['toVersion']});}['addRevision'](_0x5ae828,_0x286350=0x0){this['_revisions']['add'](_0x5ae828,_0x286350);}['getRevision'](_0x17ff52){return this['_revisions']['get'](_0x17ff52);}['getRevisions'](_0x3c5ace={'toJSON':!0x1}){const _0x33b9dd=Array['from'](this['_revisions']);return _0x33b9dd['reverse'](),_0x3c5ace['toJSON']?_0x33b9dd['map'](_0x5be80f=>_0x5be80f['toJSON']()):_0x33b9dd;}['getIndex'](_0x59f217){return this['_revisions']['getIndex'](_0x59f217);}['getEarlierVisibleRevision'](_0x4391fe){const [,_0x387369]=this['getRevisionsIterator'](_0x4391fe,{'direction':'earlier'});return _0x387369;}['getLaterVisibleRevision'](_0x500f6a){const [,_0x148645]=this['getRevisionsIterator'](_0x500f6a,{'direction':'later'});return _0x148645;}['getRevisionsInDiff'](_0x33fa09){const _0x2a1b24=[];for(const _0x359078 of this['getRevisionsIterator'](_0x33fa09['newRevisionId']))if(_0x2a1b24['push'](_0x359078),_0x359078['id']===_0x33fa09['oldRevisionId'])break;return _0x2a1b24;}*['getRevisionsIterator'](_0x596784,{direction:_0x357724='earlier',filter:_0x103419=()=>!0x0}={}){const _0x413989='earlier'===_0x357724?0x1:-0x1;let _0x24b207=this['_revisions']['get'](_0x596784),_0x2cb193=this['getIndex'](_0x24b207);for(yield _0x24b207;_0x24b207;){if(_0x2cb193+=_0x413989,_0x24b207=this['getRevision'](_0x2cb193),!_0x24b207)return;_0x103419(_0x24b207)&&(yield _0x24b207);}}}function m(_0x5c476b,_0x29e233,_0x527db4){const t=_0x5c476b['t'];switch(_0x29e233){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'},_0x527db4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x527db4);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':_0x426bd3,'a':_0x3348fb,'e':_0x53c6dc,'r':_0x1bcc36,'u':_0x3a6fc7};class l extends _0x167142{['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[_0x50c3f1,j,_0x594010];}constructor(_0x94e4e0){super(_0x94e4e0),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 _0x1f92dc=_0x522a16();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1f92dc},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 _0x463cae=this['repository']['getRevision'](0x0),_0x212346=_0x463cae&&null===_0x463cae['creator']?_0x463cae:null;if(this['_continueCurrentRevision']=!!_0x212346&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x31cf3b=this['_source']['getCurrentRevisionId'](),_0x16f7eb=this['repository']['getRevision'](_0x31cf3b);if(_0x16f7eb)this['_startingVersion']=_0x16f7eb['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x458323=this['_source']['history']['_operations']['find'](_0x322da5=>!_0x322da5['_isInit']),_0x394ccd=_0x458323?_0x458323['baseVersion']:this['_source']['history']['version'];_0x463cae?(_0x463cae['toVersion']<_0x394ccd&&_0x463cae['_update']({'toVersion':_0x394ccd}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x212346['id'],this['_startingVersion']=_0x212346['fromVersion']):(this['_startingVersion']=_0x463cae['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x394ccd,this['_continueCurrentRevision']=!0x1);}}else _0x212346&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x212346['toVersion'],this['editor']['model']['document']['history']['version']),_0x212346['fromVersion']===_0x212346['toVersion']?(0x0!==_0x212346['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x212346['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x212346['id'],this['_startingVersion']=_0x212346['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',_0x172f92=>!_0x172f92),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4671dd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x58face;for(const _0x514a5b in _0x4671dd){const _0x310a3d=_0x514a5b,_0xe8284d=_0x4671dd[_0x310a3d];if('revisionHistoryLicenseKeyValid'==_0xe8284d||'revisionHistoryLicenseKeyInvalid'==_0xe8284d||'revisionHistoryLicenseKeyExpired'==_0xe8284d||'revisionHistoryLicenseKeyDomainLimit'==_0xe8284d||'revisionHistoryLicenseKeyNotAllowed'==_0xe8284d||'revisionHistoryLicenseKeyEvaluationLimit'==_0xe8284d||'revisionHistoryLicenseKeyTrialLimit'==_0xe8284d||'revisionHistoryLicenseKeyUsageLimit'==_0xe8284d){delete _0x4671dd[_0x310a3d],_0x58face=_0xe8284d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x58face&&_0x4671dd['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x58face&&_0x4671dd['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x58face&&_0x4671dd['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x58face&&_0x4671dd['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x58face&&_0x4671dd['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x58face&&_0x4671dd['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x58face&&_0x4671dd['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1ca57d=this['repository']['getRevision'](0x0),_0x10fb1e=await this['getRevisionDocumentData'](_0x1ca57d),_0x41e6f1=await this['getRevisionRootsAttributes'](_0x1ca57d);this['_replaceEditorDataWithRevisionData'](_0x10fb1e,_0x41e6f1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x8330e7){this['_source']=_0x8330e7;}async['update'](){const _0x5eedc4=await this['_source']['getLatestVersion']();if(_0x5eedc4>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3fc72a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5eedc4});_0x3fc72a['authors']=_0x3fc72a['authorsIds']['map'](_0x19d1ea=>this['editor']['plugins']['get']('Users')['getUser'](_0x19d1ea)),this['currentRevision']['_update'](_0x3fc72a);}}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'](_0x26f91b={},_0xad5a48=null){const _0x311694=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xad5a48>this['currentRevision']['toVersion']&&(_0xad5a48=null),null===_0xad5a48&&(_0xad5a48=await this['_source']['getLatestVersion']());const _0xae9c3a=this['_getFromVersion'](_0xad5a48),_0x9e3257=this['buildRevisionData']({'from':_0xae9c3a,'to':_0xad5a48});if(this['currentRevision']['toVersion']<_0xad5a48){const _0x4f1068=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xad5a48,'to':_0xad5a48});_0x4f1068['authors']=[],_0x4f1068['authorsIds']=[],_0x4f1068['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4f1068,!0x0),delete _0x4f1068['authors'],_0x311694['push'](_0x4f1068);}_0x26f91b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x26f91b['name']=_0x26f91b['name']||null,_0x26f91b['id']=_0x26f91b['id']||_0x522a16(),_0x26f91b={..._0x26f91b,..._0x9e3257};const _0x38064b=this['addRevisionData'](_0x26f91b);_0x311694['push'](_0x26f91b);const _0x194bcb=this['repository']['getIndex'](_0x38064b);if(0x0!==_0x194bcb){const _0x50e82a=this['repository']['getRevision'](_0x194bcb-0x1);if(_0x50e82a['fromVersion']!==_0xad5a48){const _0xbb4017=this['_revisionDataBuilder']['getData'](_0xad5a48,_0x50e82a['toVersion']),_0x368787={'id':_0x50e82a['id'],'diffData':_0xbb4017['diffData'],'authorsIds':_0xbb4017['authorsIds'],'authors':_0xbb4017['authorsIds']['map'](_0x4224c8=>this['editor']['plugins']['get']('Users')['getUser'](_0x4224c8)),'fromVersion':_0xad5a48};_0x50e82a===this['currentRevision']&&(_0x368787['createdAt']=new Date(_0x26f91b['createdAt']['getTime']()+0xa)),_0x50e82a['_update'](_0x368787,!0x0),delete _0x368787['authors'],_0x311694['push'](_0x368787);}}if(this['adapter']){for(const _0x476708 of _0x311694)this['_bufferUpdate'](_0x476708['id'],_0x476708,!0x0);this['sendBufferedUpdates']();}return _0x38064b;}['addRevisionData'](_0x16d5ac){const _0xe18fdc=this['repository']['createRevision'](_0x16d5ac);return this['adapter']&&_0xe18fdc['on']('_update',(_0x500276,_0x1297b0,_0x3de21e)=>{_0x3de21e||(this['_bufferUpdate'](_0x1297b0['id'],_0x1297b0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xe18fdc,this['_findInsertionIndex'](_0xe18fdc)),_0xe18fdc;}async['getRevisionDocumentData'](_0x43b6e8){await this['_loadRevisionData'](_0x43b6e8);const _0x20422d={};for(const _0x13b67f in _0x43b6e8['diffData']){if(_0x43b6e8['diffData'][_0x13b67f]['attachChange']&&!_0x43b6e8['diffData'][_0x13b67f]['attachChange']['isAttached'])continue;const _0x26fcef=this['_removeRevisionMarkers'](JSON['parse'](_0x43b6e8['diffData'][_0x13b67f]['insertions'])),_0xeda84e=this['editor']['editing']['view']['document'],_0x16d4ee=new _0x304a1b(_0xeda84e,_0x26fcef['map'](_0xe9dd7d=>C(_0xe9dd7d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x20422d[_0x13b67f]=this['editor']['data']['processor']['toData'](_0x16d4ee),this['editor']['data']['processor']['useFillerType']('default');}return _0x20422d;}async['getRevisionRootsAttributes'](_0x1264d2){await this['_loadRevisionData'](_0x1264d2);const _0x82fbf0={};for(const _0x562c3f in _0x1264d2['diffData'])_0x1264d2['diffData'][_0x562c3f]['attachChange']&&!_0x1264d2['diffData'][_0x562c3f]['attachChange']['isAttached']||(_0x82fbf0[_0x562c3f]=_0x1264d2['diffData'][_0x562c3f]['attributesAfter']||{});return _0x82fbf0;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5d910d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3c627c=0x0;_0x3c627c<_0x5d910d['length'];_0x3c627c++){const _0x4e173e=_0x5d910d[_0x3c627c];let _0x15418f=!0x1;for(const _0x3f87bb of Object['keys'](_0x4e173e))void 0x0===_0x4e173e[_0x3f87bb]?delete _0x4e173e[_0x3f87bb]:'id'!==_0x3f87bb&&(_0x15418f=!0x0);_0x15418f||(_0x5d910d[_0x3c627c]=null);}if(_0x5d910d=_0x5d910d['filter'](_0x94b6bb=>null!==_0x94b6bb),!_0x5d910d['length'])return;for(let _0x34c95a=0x0;_0x34c95a<_0x5d910d['length'];_0x34c95a++){const _0x2f3ffb=_0x5d910d[_0x34c95a];void 0x0!==_0x2f3ffb['fromVersion']&&void 0x0===_0x2f3ffb['toVersion']&&(_0x2f3ffb['toVersion']=this['repository']['getRevision'](_0x2f3ffb['id'])['toVersion']),void 0x0!==_0x2f3ffb['toVersion']&&void 0x0===_0x2f3ffb['fromVersion']&&(_0x2f3ffb['fromVersion']=this['repository']['getRevision'](_0x2f3ffb['id'])['fromVersion']);}const _0x258f5c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5d910d,_0x258f5c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x30adfd=>{if(_0x30adfd){for(const _0x512b05 of _0x30adfd)this['setRevisionData']({'id':_0x512b05['id'],'createdAt':_0x512b05['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4b4f2b,_0x41a212){let _0x57e5fa=this['editor']['config']['get']('initialData'),_0x449007=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x57e5fa){_0x57e5fa={};for(const _0x48d64e of this['editor']['model']['document']['getRootNames']())_0x57e5fa[_0x48d64e]='';}if('string'==typeof _0x57e5fa&&(_0x57e5fa={'main':_0x57e5fa}),void 0x0===_0x449007){_0x449007={};for(const _0x49d091 of this['editor']['model']['document']['getRootNames']())_0x449007[_0x49d091]={};}let _0x1f7d31=!0x1;const _0x44d611=Object['keys'](_0x57e5fa),_0x54fbfe=Object['keys'](_0x4b4f2b);for(const _0x5e8043 of _0x44d611){if(_0x57e5fa[_0x5e8043]!==_0x4b4f2b[_0x5e8043]&&''!==_0x57e5fa[_0x5e8043]['trim']()){_0x1f7d31=!0x0;break;}if(!_0x103b49(_0x449007[_0x5e8043],_0x41a212[_0x5e8043])&&Object['keys'](_0x449007[_0x5e8043])['length']>0x0){_0x1f7d31=!0x0;break;}}_0x1f7d31||(_0x1f7d31=_0x54fbfe['some'](_0x5d345d=>!this['editor']['model']['document']['getRoot'](_0x5d345d))),_0x1f7d31&&_0x4c21f5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x57e5fa,'editorRootsAttributes':_0x449007,'revisionData':_0x4b4f2b,'revisionRootsAttributes':_0x41a212}),this['editor']['config']['set']('initialData',_0x4b4f2b),this['editor']['config']['set']('rootsAttributes',_0x41a212);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1f7db3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1f7db3['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1c96d8){const _0x46c075=this['repository']['getRevisions']();_0x46c075['reverse']();let _0xc250ab=0x0;for(;_0xc250ab<_0x46c075['length'];){const _0x295e59=_0x46c075[_0xc250ab];if(_0x295e59===this['currentRevision']){_0xc250ab++;continue;}if(_0x295e59['id']===this['_initialRevisionId'])break;const _0x581ab2=_0x1c96d8['toVersion']-_0x295e59['toVersion']||_0x1c96d8['fromVersion']-_0x295e59['fromVersion'];if(_0x581ab2>0x0)break;if(_0x581ab2<0x0)_0xc250ab++;else{if(!_0x1c96d8['creator']&&_0x295e59['creator'])break;if(_0x295e59['creator']||!_0x1c96d8['creator']){if(_0x1c96d8['createdAt']>_0x295e59['createdAt'])break;_0xc250ab++;}else _0xc250ab++;}}return _0xc250ab;}['setRevisionData'](_0x599c69){const _0x5379f7=this['repository']['getRevision'](_0x599c69['id']);if(_0x599c69['createdAt']&&(_0x599c69['createdAt']=new Date(_0x599c69['createdAt'])),_0x599c69['authorsIds']){const _0x505099=this['editor']['plugins']['get']('Users');_0x599c69['authors']=_0x599c69['authorsIds']['map'](_0x22e79c=>_0x505099['getUser'](_0x22e79c));}_0x5379f7['_update'](_0x599c69,!0x0);}['buildRevisionData']({revision:_0x3ba89b=null,from:_0x57dfe4=null,to:_0x12646f=null}){_0x57dfe4=null!==_0x57dfe4?_0x57dfe4:_0x3ba89b['fromVersion'],_0x12646f=null!==_0x12646f?_0x12646f:_0x3ba89b['toVersion'];const _0x1141d9=this['_revisionDataBuilder']['getData'](_0x57dfe4,_0x12646f),_0x41bda1={'diffData':_0x1141d9['diffData'],'authorsIds':_0x1141d9['authorsIds'],'fromVersion':_0x57dfe4,'toVersion':_0x12646f};if(!_0x3ba89b||_0x12646f!==_0x3ba89b['toVersion']){const _0x1c79d3=_0x12646f-0x1,_0x137dbe=this['_source']['history']['getOperation'](_0x1c79d3);_0x41bda1['createdAt']=_0x137dbe&&_0x137dbe['createdAt']||new Date();}if(this['_loadedStateData']&&_0x57dfe4===this['_loadedStateData']['fromVersion']){for(const _0xd8f037 of this['_loadedStateData']['authors'])_0x41bda1['authorsIds']['includes'](_0xd8f037['id'])||_0x41bda1['authorsIds']['push'](_0xd8f037['id']);}return _0x41bda1;}['_loadRevisionData'](_0xa2f653){if(!_0xa2f653||_0xa2f653['diffData'])return Promise['resolve']();{const _0x186944=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x186944,'revisionId':_0xa2f653['id']})['then'](_0x1a5db0=>{_0xa2f653['diffData']=_0x1a5db0['diffData'];});}}['_bufferUpdate'](_0x56ed6b,_0x38158c,_0x5379b4){if(this['_bufferedUpdates']['has'](_0x56ed6b)){const _0x42d28a=this['_bufferedUpdates']['get'](_0x56ed6b);_0x38158c=_0x5379b4?{..._0x42d28a,..._0x38158c}:{..._0x38158c,..._0x42d28a};}this['_bufferedUpdates']['set'](_0x56ed6b,_0x38158c);}['_getFromVersion'](_0xcf4e66){const _0x405baf=this['repository']['getRevisions']();_0x405baf['reverse'](),_0x405baf['shift']();const _0x3a1f90=_0x405baf['find'](_0x2c6a43=>_0x2c6a43['toVersion']<=_0xcf4e66)['toVersion'];return _0x3a1f90<this['_startingVersion']?this['_startingVersion']:_0x3a1f90;}['_createInitialRevision'](_0x3b39d3){const _0x3bc980=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3bc980)this['_initialRevisionId']=_0x3bc980['id'];else{const _0x3778a4=!this['editor']['model']['document']['roots']['find'](_0xaa0fb3=>this['editor']['model']['hasContent'](_0xaa0fb3)),_0x43a29f=this['editor']['plugins']['get']('Users')['me']['id'],_0x423ac7=m(this['editor']['locale'],_0x3778a4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3b39d3,'to':_0x3b39d3,'id':this['_initialRevisionId'],'name':_0x423ac7,'creatorId':_0x43a29f});}}['_createCurrentRevision'](_0x48882e){const _0x2d050c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2d050c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x48882e,'to':_0x48882e,'id':_0x2d050c,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2a88a1,from:_0x1a5175,to:_0x3459bc,creatorId:_0xf9c89e,id:_0x1698c1}){const _0x266de6=this['buildRevisionData']({'from':_0x1a5175,'to':_0x3459bc});_0x266de6['name']=_0x2a88a1,_0x266de6['creatorId']=_0xf9c89e,_0x266de6['id']=_0x1698c1;const _0xf75780=this['addRevisionData'](_0x266de6);return this['adapter']&&this['_bufferUpdate'](_0x266de6['id'],_0x266de6,!0x0),_0xf75780;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x59107f){return(_0x59107f=_0x59107f['filter'](_0x319386=>!_0x319386['name']||'revision-start'!==_0x319386['name']&&'revision-end'!==_0x319386['name']))['forEach'](_0x3df657=>{'string'!=typeof _0x3df657&&(_0x3df657['children']=this['_removeRevisionMarkers'](_0x3df657['children']),_0x3df657['attributes']=_0x3df657['attributes']['filter'](_0x54c90d=>!_0x54c90d[0x0]['startsWith']('data-revision-')));}),_0x59107f;}}function C(_0x4b9d4c,_0x1cc401){const _0x2f1be4=_0x1cc401['editing']['view']['document'];if('string'==typeof _0x4b9d4c)return new _0x44a3c7(_0x2f1be4,_0x4b9d4c);{const _0x474a9d=_0x4b9d4c['children']['map'](_0x374373=>C(_0x374373,_0x1cc401));return new(P[_0x4b9d4c['type']]||_0xb48d93)(_0x2f1be4,_0x4b9d4c['name'],_0x4b9d4c['attributes'],_0x474a9d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3ca474){this['editor']=_0x3ca474,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'](_0x41ffe1){this['source']=_0x41ffe1;const _0x54fbbb=new Map(),_0x555d3d=new Map(),_0x233348=this['editor']['model']['document']['roots']['map'](_0x18c6ed=>_0x18c6ed['rootName']);for(const _0x2a1fd8 of _0x233348){const _0x328f4e=this['editor']['model']['document']['getRoot'](_0x2a1fd8),_0x27ecc7=T(_0x328f4e);_0x54fbbb['set'](_0x2a1fd8,_0x27ecc7),_0x555d3d['set'](_0x2a1fd8,Object['fromEntries'](_0x328f4e['getAttributes']()));}const _0x14292a=Array['from'](this['editor']['model']['markers'])['map'](_0xa8baeb=>[_0xa8baeb['name'],_0xa8baeb['getRange']()]),_0x487557=this['source']['version'];this['_saveMetaData'](_0x487557,_0x54fbbb,_0x14292a,_0x555d3d),this['_startingRevisionId']=this['_revisionId'];const _0x5dfdfc=new Map(),_0x1d8f30=new Map();for(const _0x2e0b3b of _0x233348){const _0x1fc245=F(_0x2e0b3b);_0x5dfdfc['set'](_0x2e0b3b,_0x1fc245),_0x1d8f30['set'](_0x2e0b3b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5dfdfc,[],_0x1d8f30);}['getData'](_0x4effcd,_0x422599){if(this['_lastFrom']===_0x4effcd&&this['_lastTo']<=_0x422599)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x422599,!0x0);else{if(!this['_savedMetaData']['has'](_0x4effcd)){const _0x38bec2=this['_getPreviousFrom'](_0x4effcd);this['_calculateMetaData'](_0x38bec2,_0x4effcd,!0x1);}this['_calculateMetaData'](_0x4effcd,_0x422599,!0x0);}return this['_lastFrom']=_0x4effcd,this['_lastTo']=_0x422599,this['_getState']();}['loadState'](_0x14d067){this['_reset'](),this['_lastFrom']=_0x14d067['fromVersion'],this['_lastTo']=_0x14d067['toVersion'];for(const _0x441a9f in _0x14d067['diffData']){const _0x53ddbe=_0x14d067['diffData'][_0x441a9f]['attachChange'],_0x359858=_0x2e632a(_0x14d067['diffData'][_0x441a9f]['attributesBefore'])||{},_0x18bd94=this['_makeModelFromViewString'](_0x14d067['diffData'][_0x441a9f]['deletions']);_0x18bd94['rootName']=_0x441a9f,_0x18bd94['_isAttached']=!_0x53ddbe||!_0x53ddbe['isAttached'],_0x18bd94['isAttached']=()=>_0x18bd94['_isAttached'],this['_baseRoots']['set'](_0x441a9f,_0x18bd94),this['_baseRootsAttributes']['set'](_0x441a9f,_0x359858),_0x53ddbe&&this['_touchedRoots']['set'](_0x441a9f,_0x53ddbe);const _0xd99adc=this['_makeIdsRoot'](_0x18bd94);this['_baseIdsRoots']['set'](_0x441a9f,_0xd99adc);for(const [_0x2acc33,_0x5e0a30]of _0x18bd94['markers']){if(!_0x2acc33['startsWith']('revision:'))continue;const _0x384767=_0x2acc33['split'](':')[0x2];for(const _0x264c17 of _0x5e0a30['getWalker']({'singleCharacters':!0x0})){const _0x13745d=this['_getVidAttributeName'](_0x264c17),_0x10b822='elementEnd'==_0x264c17['type']?_0x264c17['previousPosition']['path']['slice'](0x0,-0x1):_0x264c17['previousPosition']['path'],_0x5ad8c0=_0xd99adc['getNodeByPath'](_0x10b822)['getAttribute'](_0x13745d);this['_touched']['set'](_0x5ad8c0,{'userId':_0x384767});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5a1e9d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x208072=>!this['_touched']['has'](_0x208072));let _0x125bd5=0x0;const _0x42e0da=new Map();for(const _0x4e1a7e in _0x14d067['diffData']){const _0x542d3e=_0x14d067['diffData'][_0x4e1a7e]['attachChange'],_0x5eff0e=_0x2e632a(_0x14d067['diffData'][_0x4e1a7e]['attributesAfter'])||{},_0x2586db=this['_makeModelFromViewString'](_0x14d067['diffData'][_0x4e1a7e]['insertions']);_0x2586db['rootName']=_0x4e1a7e,_0x2586db['_isAttached']=!_0x542d3e||_0x542d3e['isAttached'],_0x2586db['isAttached']=()=>_0x2586db['_isAttached'],this['_diffRoots']['set'](_0x4e1a7e,_0x2586db),this['_diffRootsAttributes']['set'](_0x4e1a7e,_0x5eff0e);const _0x8498a9=this['_makeIdsRoot'](_0x2586db,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e1a7e,_0x8498a9),_0x42e0da['set'](_0x4e1a7e,_0x2586db['isAttached']()?_0x5eff0e:{});for(const [_0x409d75,_0x1f7296]of _0x2586db['markers']){if(!_0x409d75['startsWith']('revision:'))continue;const _0x191b80=_0x409d75['split'](':')[0x2];for(const _0x15a38a of _0x1f7296['getWalker']({'singleCharacters':!0x0})){const _0x41cfa3=this['_getVidAttributeName'](_0x15a38a),_0x15398a=this['_revisionId']++,_0x335071='elementEnd'==_0x15a38a['type']?_0x15a38a['previousPosition']['path']['slice'](0x0,-0x1):_0x15a38a['previousPosition']['path'];_0x8498a9['getNodeByPath'](_0x335071)['_setAttribute'](_0x41cfa3,_0x15398a),this['_touched']['set'](_0x15398a,{'userId':_0x191b80});}}for(const _0x4439ed of this['editor']['model']['createRangeIn'](_0x2586db)['getWalker']({'singleCharacters':!0x0})){const _0xc6350c=this['_getVidAttributeName'](_0x4439ed),_0x43c025='elementEnd'==_0x4439ed['type']?_0x4439ed['previousPosition']['path']['slice'](0x0,-0x1):_0x4439ed['previousPosition']['path'],_0x123288=_0x8498a9['getNodeByPath'](_0x43c025);_0x123288['getAttribute'](_0xc6350c)>0x0||_0x123288['_setAttribute'](_0xc6350c,_0x5a1e9d[_0x125bd5++]);}for(const [_0x2b5d01,_0x2c8955]of _0x2586db['markers'])_0x2b5d01['startsWith']('revision:')||this['_markers']['set'](_0x2b5d01,_0x2c8955);}const _0x2be822=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2be822),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2be822,0x1));const _0x11055b=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x11055b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x11055b,0x1));const _0x3641e5=Array['from'](this['_diffRoots'])['map'](([_0x2f467b,_0x5c1be5])=>[_0x2f467b,T(_0x5c1be5)]);this['_saveMetaData'](this['_lastTo'],_0x3641e5,this['_markers'],_0x42e0da);}['_makeModelFromViewString'](_0x4998a8){const _0x43691f=JSON['parse'](_0x4998a8),_0x548520=this['editor']['editing']['view']['document'],_0x1e41c2=new _0x304a1b(_0x548520,_0x43691f['map'](_0x312f6a=>C(_0x312f6a,this['editor'])));return this['editor']['data']['toModel'](_0x1e41c2);}['_saveMetaData'](_0x35d575,_0x51c9f6,_0x2028d6,_0xed7ea7){const _0xa3464d=new Map(_0x51c9f6),_0xcc8e7a=new Map(_0x2e632a(_0xed7ea7)),_0x5438cb=new Map();for(const [_0x4f40b9,_0x1d1000]of _0x2028d6)_0x5438cb['set'](_0x4f40b9,{'start':_0x1d1000['start']['clone'](),'end':_0x1d1000['end']['clone'](),'rootName':_0x1d1000['root']['rootName']});this['_savedMetaData']['set'](_0x35d575,{'roots':_0xa3464d,'markers':_0x5438cb,'rootsAttributes':_0xcc8e7a});}['_removeMetaData'](_0x42b7e6){this['_savedMetaData']['delete'](_0x42b7e6);}['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'](_0x22d0a6,_0x32e234=null){let _0x288457=null;_0x22d0a6['is']('documentFragment')||(_0x288457=new ft(_0x22d0a6['name'],{'vid_start':null===_0x32e234?this['_revisionId']++:_0x32e234++}));const _0x1163c5=[];for(const _0x32c043 of _0x22d0a6['getChildren']())if(_0x32c043['is']('element')){_0x1163c5['push'](this['_makeIdsRoot'](_0x32c043,_0x32e234));const _0x4d1135=_0x1163c5[_0x1163c5['length']-0x1];null!==_0x32e234&&(_0x32e234=_0x4d1135['is']('element','$text')?_0x4d1135['getAttribute']('vid')+0x1:_0x4d1135['getAttribute']('vid_end')+0x1);}else{for(let _0x56207f=0x0;_0x56207f<_0x32c043['offsetSize'];_0x56207f++)_0x1163c5['push'](new ft('$text',{'vid':null===_0x32e234?this['_revisionId']++:_0x32e234++}));}if(_0x22d0a6['is']('documentFragment')){const _0x15a6a9=F(_0x22d0a6['rootName']);return _0x15a6a9['_insertChild'](0x0,_0x1163c5),_0x15a6a9;}return _0x288457['_setAttribute']('vid_end',null===_0x32e234?this['_revisionId']++:_0x32e234++),_0x288457['_insertChild'](0x0,_0x1163c5),_0x288457;}['_calculateMetaData'](_0x35855c,_0x36df0e,_0x34f727){this['_reset']();const {roots:_0x3c68d2,markers:_0x55fef1,rootsAttributes:_0x1ad210}=this['_savedMetaData']['get'](_0x35855c);this['_baseRoots']=new Map(_0x3c68d2),this['_baseRootsAttributes']=new Map(_0x2e632a(_0x1ad210));for(const [_0x5ecf4a,_0x547709]of this['_baseRoots'])if('$graveyard'!==_0x5ecf4a&&(this['_diffRoots']['set'](_0x5ecf4a,T(_0x547709)),this['_diffRootsAttributes']=new Map(_0x2e632a(_0x1ad210)),_0x34f727)){const _0x2875b2=this['_revisionId'];this['_idsRoots']['set'](_0x5ecf4a,this['_makeIdsRoot'](_0x547709)),this['_baseIdsRoots']['set'](_0x5ecf4a,this['_makeIdsRoot'](_0x547709,_0x2875b2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x34f727&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x193cd9,_0x55a579]of _0x55fef1){const _0x10a452=this['_baseRoots']['get'](_0x55a579['rootName']),_0x583a32=this['_diffRoots']['get'](_0x55a579['rootName']),_0x320523=new vt(this['_fixPosition'](_0x55a579['start'],_0x10a452),this['_fixPosition'](_0x55a579['end'],_0x10a452)),_0x40cbac=this['_fixRange'](_0x320523,_0x583a32);_0x10a452['markers']['set'](_0x193cd9,_0x320523),this['_markers']['set'](_0x193cd9,_0x40cbac);}this['_applyOperations'](_0x35855c,_0x36df0e,_0x34f727);}['_applyOperations'](_0x7553b,_0x5336f7,_0x3ed812){for(const _0x243263 of this['source']['getOperations'](_0x7553b,_0x5336f7))this['_handleOperation'](_0x243263,_0x3ed812);for(const _0x5c8050 of this['_diffRoots']['values']())_0x5c8050['markers']['clear']();for(const [_0x3ed3d6,_0x4e8ced]of this['_markers']){this['_diffRoots']['get'](_0x4e8ced['root']['rootName'])['markers']['set'](_0x3ed3d6,_0x4e8ced['clone']());}const _0x2dc305=new Map(),_0x4a92d5=new Map();for(const [_0x35db34,_0x272047]of this['_diffRoots'])_0x2dc305['set'](_0x35db34,T(_0x272047)),_0x4a92d5['set'](_0x35db34,this['_diffRootsAttributes']['get'](_0x35db34));this['_saveMetaData'](_0x5336f7,_0x2dc305,this['_markers'],_0x4a92d5);}['_getPreviousFrom'](_0x1e8a48){const _0xbeddaa=Array['from'](this['_savedMetaData']['keys']());_0xbeddaa['sort']((_0x1e316f,_0x30aa4c)=>_0x1e316f-_0x30aa4c),_0xbeddaa['reverse']();for(const _0x1177b7 of _0xbeddaa)if(_0x1177b7<_0x1e8a48)return _0x1177b7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2caba8,_0x3a73cf){const _0x38933d=Array['from'](_0x3a73cf['markers'])['map'](([_0x40b365,_0xe112f8])=>[_0x40b365,this['_fixRange'](_0xe112f8,_0x2caba8)]);_0x2caba8['markers']=new Map(_0x38933d);}['_transformMarkers'](_0x19a830){for(const _0x51250b of this['_markers']['values']()){const _0x4be26c=_0x51250b['getTransformedByOperation'](_0x19a830),_0x1228ff=vt['_createFromRanges'](_0x4be26c);_0x51250b['start']=_0x1228ff['start'],_0x51250b['end']=_0x1228ff['end'];}}['_handleOperation'](_0x5dd98f,_0x2cb3da){if('addRoot'!=_0x5dd98f['type']&&'detachRoot'!=_0x5dd98f['type']){if('insert'==_0x5dd98f['type']){const _0x34d388=_0x5dd98f['position']['root']['rootName'];this['_diffRoots']['has'](_0x34d388)||(this['_diffRoots']['set'](_0x34d388,F(_0x34d388,!0x0)),this['_diffRootsAttributes']['set'](_0x34d388,{}),_0x2cb3da&&this['_idsRoots']['set'](_0x34d388,F(_0x34d388,!0x0)));}else{if('addRootAttribute'==_0x5dd98f['type']||'removeRootAttribute'==_0x5dd98f['type']||'changeRootAttribute'==_0x5dd98f['type'])return void this['_handleRootAttributeOperation'](_0x5dd98f);'marker'==_0x5dd98f['type']&&this['_handleMarkerOperation'](_0x5dd98f);}if('marker'!==_0x5dd98f['type']){const _0x1fa337=this['_cloneOperation'](_0x5dd98f,this['_diffRoots']);_0x1fa337['_execute'](),this['_transformMarkers'](_0x1fa337);}if(_0x2cb3da)switch(_0x5dd98f['type']){case'insert':this['_handleInsertOperation'](_0x5dd98f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5dd98f);break;case'merge':this['_handleMergeOperation'](_0x5dd98f);break;case'split':this['_handleSplitOperation'](_0x5dd98f);}}else this['_handleRootOperation'](_0x5dd98f,_0x2cb3da);}['_cloneOperation'](_0x5709ea,_0x42eb0b){const _0xb16ea0=_0x5709ea['clone']();return _0xb16ea0['_authorId']=_0x5709ea['_authorId'],this['_fixOperation'](_0xb16ea0,_0x42eb0b),_0xb16ea0;}['_getBaseVids'](_0x5070a4){return _0x5070a4['map'](_0x1ee286=>{const _0x3e5780=this['_getVidAttributeName'](_0x1ee286);return Number(_0x1ee286['item']['getAttribute'](_0x3e5780));});}['_generateTape'](_0x99ee71,_0x3deb6f){if(_0x99ee71['is']('element','$text'))_0x3deb6f['push']({'item':_0x99ee71,'type':'text'});else{_0x99ee71['is']('element')&&_0x3deb6f['push']({'item':_0x99ee71,'type':'elementStart'});for(const _0x2cd886 of _0x99ee71['getChildren']())this['_generateTape'](_0x2cd886,_0x3deb6f);_0x99ee71['is']('element')&&_0x3deb6f['push']({'item':_0x99ee71,'type':'elementEnd'});}return _0x3deb6f;}['_getState'](){const _0x287820=new Map(this['_touched']),_0x3f6784=new Map(_0x287820),_0x10b247=new Map(),_0x253d94={'insertions':{},'deletions':{}},_0x1f5d3c={'insertions':{},'deletions':{}},_0x30e1a2=new Map(),_0x5b72eb=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5b72eb['delete']('$graveyard');for(const _0x36ba93 of _0x5b72eb){const _0x6f58=this['_diffRoots']['get'](_0x36ba93)||F(_0x36ba93,!0x1),_0x20e9bb=this['_baseRoots']['get'](_0x36ba93)||F(_0x36ba93,!0x1);_0x6f58['isAttached']()||_0x20e9bb['isAttached']()?(_0x253d94['insertions'][_0x36ba93]=T(_0x6f58),_0x253d94['deletions'][_0x36ba93]=T(_0x20e9bb),this['_copyMarkers'](_0x253d94['deletions'][_0x36ba93],_0x20e9bb),this['_copyMarkers'](_0x253d94['insertions'][_0x36ba93],_0x6f58),_0x1f5d3c['insertions'][_0x36ba93]=this['_generateTape'](this['_idsRoots']['get'](_0x36ba93),[]),_0x1f5d3c['deletions'][_0x36ba93]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x36ba93)||F(_0x36ba93,!0x1),[])):_0x5b72eb['delete'](_0x36ba93);}for(const _0x33b68c of _0x5b72eb){const _0x54ee6e=_0x1f5d3c['insertions'][_0x33b68c];for(const _0x2f51d0 of _0x54ee6e){const _0x5df19a=this['_getVidAttributeName'](_0x2f51d0),_0x4aa1c2=_0x2f51d0['item']['getAttribute'](_0x5df19a);_0x3f6784['delete'](_0x4aa1c2),_0x4aa1c2>=this['_startingRevisionId']&&_0x10b247['set'](_0x4aa1c2,_0x287820['get'](_0x4aa1c2));}}for(const _0x3fd948 of _0x5b72eb){const _0x2ce120=_0x1f5d3c['insertions'][_0x3fd948],_0x42c171=this['_getBaseVids'](_0x1f5d3c['deletions'][_0x3fd948]);let _0x41f61f=0x0;for(const _0x44f291 of _0x2ce120){const _0x5e8eaf=this['_getVidAttributeName'](_0x44f291),_0x3d59f9=_0x44f291['item']['getAttribute'](_0x5e8eaf);if(!_0x10b247['has'](_0x3d59f9)&&!_0x30e1a2['has'](_0x3d59f9)){if(_0x3f6784['has'](_0x3d59f9))_0x41f61f++;else{if(_0x3d59f9!=_0x42c171[_0x41f61f]){const _0x3665f7=_0x287820['get'](_0x3d59f9)||_0x287820['get'](_0x42c171[_0x41f61f]);for(;_0x3d59f9!=_0x42c171[_0x41f61f];)_0x3f6784['has'](_0x42c171[_0x41f61f])||(_0x30e1a2['set'](_0x42c171[_0x41f61f],_0x3665f7),_0x287820['set'](_0x42c171[_0x41f61f],_0x3665f7)),_0x41f61f++;}_0x41f61f++;}}}}for(const _0x204e5f of _0x5b72eb){const _0x36f946=_0x1f5d3c['insertions'][_0x204e5f];for(const _0x1c1c7a of _0x36f946){const _0x366ca5=this['_getVidAttributeName'](_0x1c1c7a),_0x263544=_0x1c1c7a['item']['getAttribute'](_0x366ca5);if(_0x30e1a2['has'](_0x263544)){const _0x531f9e=_0x30e1a2['get'](_0x263544);_0x3f6784['has'](_0x263544)||_0x3f6784['set'](_0x263544,{..._0x531f9e}),_0x10b247['set'](_0x263544,{..._0x531f9e});}}}for(const _0x7c6024 of _0x3f6784['keys']())_0x7c6024>=this['_startingRevisionId']&&_0x3f6784['delete'](_0x7c6024);const _0x33ab10=new Map();for(const _0x27ffc7 of _0x5b72eb){let _0x3d19a0=_0x1f5d3c['insertions'][_0x27ffc7];for(const _0x53856d of _0x3d19a0)if(_0x53856d['item']['is']('element','tableCell')){const _0x3328e4=this['_getVidAttributeName'](_0x53856d),_0x203480=_0x53856d['item']['getAttribute'](_0x3328e4);if(_0x10b247['has'](_0x203480)){const _0x2977f8=_0x53856d['item']['parent']['parent']['getAttribute']('vid_start'),_0x18ce8c=_0x33ab10['get'](_0x2977f8)||new Set();_0x18ce8c['add'](_0x10b247['get'](_0x203480)['userId']),_0x33ab10['set'](_0x2977f8,_0x18ce8c);}}_0x3d19a0=_0x1f5d3c['deletions'][_0x27ffc7];for(const _0x575d5a of _0x3d19a0)if(_0x575d5a['item']['is']('element','tableCell')){const _0x457323=this['_getVidAttributeName'](_0x575d5a),_0x5dd0fb=_0x575d5a['item']['getAttribute'](_0x457323);if(_0x3f6784['has'](_0x5dd0fb)){const _0x4c17cc=_0x575d5a['item']['parent']['parent']['getAttribute']('vid_start'),_0x5f4a06=_0x33ab10['get'](_0x4c17cc)||new Set();_0x5f4a06['add'](_0x3f6784['get'](_0x5dd0fb)['userId']),_0x33ab10['set'](_0x4c17cc,_0x5f4a06);}}for(const _0x277592 of _0x33ab10['keys']())(_0x10b247['has'](_0x277592)||_0x3f6784['has'](_0x277592))&&_0x33ab10['delete'](_0x277592);}for(const _0x57790a of _0x5b72eb){const _0x224bff=_0x1f5d3c['insertions'][_0x57790a];let _0x446fae=null,_0x540092=null;for(const _0x30b6f9 of _0x224bff){const _0x20bcd0=this['_getVidAttributeName'](_0x30b6f9),_0x4ea61f=_0x30b6f9['item']['getAttribute'](_0x20bcd0),_0x176966=_0x33ab10['get'](_0x4ea61f);_0x176966&&'elementStart'==_0x30b6f9['type']&&(_0x446fae=Array['from'](_0x176966)[0x0],_0x540092=_0x30b6f9['item']['getAttribute']('vid_end')),_0x446fae&&(_0x3f6784['set'](_0x4ea61f,{'userId':_0x446fae}),_0x10b247['set'](_0x4ea61f,{'userId':_0x446fae})),_0x4ea61f==_0x540092&&(_0x446fae=null,_0x540092=null);}}const _0x33ca84={},_0x34abc6=new Set();for(const _0x43f99b of _0x5b72eb){const _0x388435=_0x253d94['deletions'][_0x43f99b],_0x37d52d=_0x253d94['insertions'][_0x43f99b];for(const {userId:_0x5c7a22}of this['_touchedMarkers']['values']())null!==_0x5c7a22&&_0x34abc6['add'](_0x5c7a22);for(const {userId:_0x438299}of this['_touchedRoots']['values']())null!==_0x438299&&_0x34abc6['add'](_0x438299);this['_markChanges'](_0x37d52d,_0x1f5d3c['insertions'][_0x43f99b],_0x10b247,'insertion',_0x34abc6),this['_markChanges'](_0x388435,_0x1f5d3c['deletions'][_0x43f99b],_0x3f6784,'deletion',_0x34abc6),_0x33ca84[_0x43f99b]={'insertions':this['_prepareViewToSave'](_0x37d52d),'deletions':this['_prepareViewToSave'](_0x388435),'attachChange':this['_touchedRoots']['get'](_0x43f99b)||null,'attributesBefore':_0x2e632a(this['_baseRootsAttributes']['get'](_0x43f99b))||{},'attributesAfter':_0x2e632a(this['_diffRootsAttributes']['get'](_0x43f99b))};}return{'diffData':_0x33ca84,'authorsIds':Array['from'](_0x34abc6)};}['_processRootBeforeSave'](_0x493fde){for(const [,_0x4564fb]of _0x493fde['markers']){const _0x2314e2=_0x4564fb['start']['getAncestors']()['filter'](_0x109870=>'tableCell'==_0x109870['name']);for(const _0x2e8c53 of _0x2314e2)0x1==_0x2e8c53['childCount']&&_0x2e8c53['getChild'](0x0)['is']('element','paragraph')&&_0x2e8c53['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x66bbff){this['_processRootBeforeSave'](_0x66bbff);const _0x4062cf=this['editor']['data']['toView'](_0x66bbff,{}),_0x2a83cb=Array['from'](_0x4062cf['getChildren']())['map'](_0x4423f0=>this['_getViewJson'](_0x4423f0));return JSON['stringify'](_0x2a83cb);}['_getViewJson'](_0x5662ab){if(_0x5662ab['is']('$text'))return _0x5662ab['data'];{const _0x321644=_0x5662ab;return{'type':Object['keys'](P)['find'](_0x28da42=>_0x5662ab instanceof P[_0x28da42]),'name':_0x321644['name'],'attributes':Array['from'](_0x321644['getAttributes']()),'children':Array['from'](_0x321644['getChildren']())['map'](_0x34ce4c=>this['_getViewJson'](_0x34ce4c))};}}['_markChanges'](_0x95ba62,_0x571180,_0x49a05b,_0x8d7361,_0x1b6275){let _0x27d44a=null,_0x3a952d=null,_0x3382dd=0x0;const _0x257951=this['editor']['model'];for(let _0x50421c=0x0;_0x50421c<_0x571180['length'];_0x50421c++){const _0x286a54=this['_getVidAttributeName'](_0x571180[_0x50421c]),_0x9ff66c=_0x571180[_0x50421c]['item']['getAttribute'](_0x286a54),_0x1cf0f7=_0x49a05b['get'](_0x9ff66c),_0x4867fb=_0x50421c==_0x571180['length']-0x1;(!_0x27d44a&&_0x1cf0f7&&(_0x27d44a=_0x1cf0f7,_0x3a952d=_0x571180[_0x50421c]),_0x27d44a&&(!_0x1cf0f7||_0x1cf0f7['userId']!=_0x27d44a['userId']))&&(_0x33ad12(_0x1cf0f7,B(_0x3a952d,_0x95ba62,_0x257951),B(_0x571180[_0x50421c],_0x95ba62,_0x257951)),_0x27d44a=_0x1cf0f7||null,_0x3a952d=_0x1cf0f7?_0x571180[_0x50421c]:null),_0x27d44a&&_0x4867fb&&_0x33ad12(_0x1cf0f7,B(_0x3a952d,_0x95ba62,_0x257951),J(_0x571180[_0x50421c],_0x95ba62,_0x257951));}function _0x33ad12(_0x15f67c,_0x47be94,_0x21c54c){const _0x1deaaf=_0x27d44a['userId'],_0x152985='revision:'+_0x8d7361+':'+_0x1deaaf+':'+_0x3382dd++,_0x2b7a52=_0x257951['createRange'](_0x47be94,_0x21c54c);_0x95ba62['markers']['set'](_0x152985,_0x2b7a52),null!==_0x1deaaf&&_0x1b6275['add'](_0x1deaaf);}}['_getVidAttributeName'](_0xdb6b99){switch(_0xdb6b99['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x423dcb,_0x4377ae){_0x423dcb['baseVersion']=null;for(const _0x38d794 in _0x423dcb){const _0x4f7c1b=_0x423dcb[_0x38d794];if(_0x4f7c1b instanceof gt){const _0x5d45e1=_0x4377ae['get'](_0x4f7c1b['root']['rootName']);_0x423dcb[_0x38d794]=this['_fixPosition'](_0x4f7c1b,_0x5d45e1);}if(_0x4f7c1b instanceof vt){const _0x493b44=_0x4377ae['get'](_0x4f7c1b['root']['rootName']);_0x423dcb[_0x38d794]=this['_fixRange'](_0x4f7c1b,_0x493b44);}'root'===_0x38d794&&(_0x423dcb['root']=_0x4377ae['get'](_0x423dcb['root']['rootName']));}}['_fixRange'](_0x510f7e,_0x3fc17e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x510f7e['start'],_0x3fc17e),this['_fixPosition'](_0x510f7e['end'],_0x3fc17e));}['_fixPosition'](_0x58de7e,_0x26a110){return this['editor']['model']['createPositionFromPath'](_0x26a110,_0x58de7e['path'],_0x58de7e['stickiness']);}['_handleInsertOperation'](_0x4e08f3){const _0x2f0868=this['_idsRoots']['get'](_0x4e08f3['position']['root']['rootName']),_0x5dbc9f=this['_fixPosition'](_0x4e08f3['position'],_0x2f0868),_0x404acb=null===_0x4e08f3['_authorId']?null:_0x4e08f3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5bef53=_0x5dbc9f['parent'],_0xe50cf4=this['_revisionId'],_0x4f44d8=[];for(const _0x51e17b of _0x4e08f3['nodes'])if(_0x51e17b['is']('element'))_0x4f44d8['push'](this['_makeIdsRoot'](_0x51e17b));else{for(let _0x5df240=0x0;_0x5df240<_0x51e17b['offsetSize'];_0x5df240++)_0x4f44d8['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4fabdb=this['_revisionId'];for(let _0x473456=_0xe50cf4;_0x473456<_0x4fabdb;_0x473456++)this['_touched']['set'](_0x473456,{'userId':_0x404acb});_0x5bef53['_insertChild'](_0x5dbc9f['offset'],_0x4f44d8);}['_handleMoveOperation'](_0x2fdb81){(_0x2fdb81=this['_cloneOperation'](_0x2fdb81,this['_idsRoots']))['_execute']();const _0x3acb90=null===_0x2fdb81['_authorId']?null:_0x2fdb81['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f64ee=_0x2fdb81['getMovedRangeStart'](),_0xe2eaf4=_0x3f64ee['parent'],_0x2bc369=_0x3f64ee['offset'];!function _0xcedfc7(_0x2fae15,_0x334f04,_0x5659d4,_0x7797ff){for(let _0x4ce8b4=_0x5659d4;_0x4ce8b4<_0x7797ff;_0x4ce8b4++){const _0x3c7ef9=_0x334f04['getChild'](_0x4ce8b4);_0x3c7ef9['is']('element','$text')?_0x2fae15['set'](_0x3c7ef9['getAttribute']('vid'),{'userId':_0x3acb90}):(_0x2fae15['set'](_0x3c7ef9['getAttribute']('vid_start'),{'userId':_0x3acb90}),_0xcedfc7(_0x2fae15,_0x3c7ef9,0x0,_0x3c7ef9['childCount']),_0x2fae15['set'](_0x3c7ef9['getAttribute']('vid_end'),{'userId':_0x3acb90}));}}(this['_touched'],_0xe2eaf4,_0x2bc369,_0x2bc369+_0x2fdb81['howMany']);}['_handleMergeOperation'](_0x17d541){const _0x897d93=null===(_0x17d541=this['_cloneOperation'](_0x17d541,this['_idsRoots']))['_authorId']?null:_0x17d541['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x59545f=_0x17d541['targetPosition']['parent'],_0x2368fb=_0x17d541['sourcePosition']['parent'],_0x1edf2a=_0x59545f['getAttribute']('vid_end'),_0x1f651f=_0x2368fb['getAttribute']('vid_start');_0x59545f['_setAttribute']('vid_end',_0x2368fb['getAttribute']('vid_end')),_0x2368fb['_setAttribute']('vid_end',_0x1edf2a),this['_touched']['set'](_0x1f651f,{'userId':_0x897d93}),this['_touched']['set'](_0x1edf2a,{'userId':_0x897d93}),_0x17d541['_execute']();}['_handleSplitOperation'](_0x415e0a){const _0x18a5dc=null===(_0x415e0a=this['_cloneOperation'](_0x415e0a,this['_idsRoots']))['_authorId']?null:_0x415e0a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ad31b=_0x415e0a['graveyardPosition'],_0x45b776=_0x415e0a['splitPosition']['parent'];_0x415e0a['_execute']();const _0x58595f=_0x45b776['getAttribute']('vid_end'),_0x53763a=_0x415e0a['insertionPosition']['nodeAfter'];if(_0x1ad31b){const _0x3a2e4c=_0x53763a['getAttribute']('vid_end'),_0x41f545=_0x45b776['getAttribute']('vid_end');_0x45b776['_setAttribute']('vid_end',_0x3a2e4c),_0x53763a['_setAttribute']('vid_end',_0x41f545),this['_touched']['set'](_0x45b776['getAttribute']('vid_end'),{'userId':_0x18a5dc}),this['_touched']['set'](_0x53763a['getAttribute']('vid_start'),{'userId':_0x18a5dc});}else{const _0x217169=this['_revisionId']++,_0x58cbec=this['_revisionId']++;_0x45b776['_setAttribute']('vid_end',_0x217169),_0x53763a['_setAttribute']('vid_start',_0x58cbec),_0x53763a['_setAttribute']('vid_end',_0x58595f),this['_touched']['set'](_0x217169,{'userId':_0x18a5dc}),this['_touched']['set'](_0x58cbec,{'userId':_0x18a5dc});}}['_handleMarkerOperation'](_0x2cf8b8){if(!_0x2cf8b8['affectsData'])return;const _0xd69c8=(_0x2cf8b8=this['_cloneOperation'](_0x2cf8b8,this['_diffRoots']))['oldRange']?_0x2cf8b8['oldRange']['root']:null,_0x4aa06e=_0x2cf8b8['newRange']?_0x2cf8b8['newRange']['root']:null;_0xd69c8&&this['_markers']['delete'](_0x2cf8b8['name']),_0x4aa06e&&this['_markers']['set'](_0x2cf8b8['name'],_0x2cf8b8['newRange']['clone']());const _0x581a88=null===_0x2cf8b8['_authorId']?null:_0x2cf8b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x526efa=_0x2cf8b8['name'];if(!this['_touchedMarkers']['has'](_0x526efa))return void this['_touchedMarkers']['set'](_0x526efa,{'range':_0x2cf8b8['oldRange'],'userId':_0x581a88});const _0x2b43e8=this['_touchedMarkers']['get'](_0x526efa),_0x3aebcc=_0x2b43e8['range'],_0x259f7d=_0x2cf8b8['newRange'];null==_0x3aebcc&&null==_0x259f7d||_0x3aebcc&&_0x259f7d&&_0x3aebcc['isEqual'](_0x259f7d)?this['_touchedMarkers']['delete'](_0x2cf8b8['name']):_0x2b43e8['userId']=_0x581a88;}['_handleRootOperation'](_0x2d1f83,_0x2d2b96){this['_diffRoots']['has'](_0x2d1f83['rootName'])?this['_diffRoots']['get'](_0x2d1f83['rootName'])['_isAttached']=_0x2d1f83['isAdd']:(this['_diffRoots']['set'](_0x2d1f83['rootName'],F(_0x2d1f83['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d1f83['rootName'],{}),_0x2d2b96&&this['_idsRoots']['set'](_0x2d1f83['rootName'],F(_0x2d1f83['rootName'],!0x0)));const _0x1c2abc=null===_0x2d1f83['_authorId']?null:_0x2d1f83['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5be8f6=this['_touchedRoots']['get'](_0x2d1f83['rootName']);_0x5be8f6&&_0x5be8f6['userId']===_0x1c2abc?this['_touchedRoots']['delete'](_0x2d1f83['rootName']):this['_touchedRoots']['set'](_0x2d1f83['rootName'],{'userId':_0x1c2abc,'isAttached':_0x2d1f83['isAdd']});}['_handleRootAttributeOperation'](_0x5b6e46){const _0x36fa76=this['_diffRootsAttributes']['get'](_0x5b6e46['root']['rootName']);null===_0x5b6e46['newValue']?delete _0x36fa76[_0x5b6e46['key']]:_0x36fa76[_0x5b6e46['key']]=_0x5b6e46['newValue'];}}function T(_0x3cbcc1){const _0x35f1d5=F(_0x3cbcc1['rootName'],_0x3cbcc1['isAttached']());for(const _0x4f1237 of _0x3cbcc1['getChildren']()){const _0x4f4e3a=_0x4f1237['_clone'](!0x0);_0x35f1d5['_appendChild'](_0x4f4e3a);}return _0x35f1d5;}function F(_0x2541f1,_0x163583=!0x0){const _0x2918ae=new mt();return _0x2918ae['rootName']=_0x2541f1,_0x2918ae['_isAttached']=_0x163583,_0x2918ae['isAttached']=()=>_0x2918ae['_isAttached'],_0x2918ae;}function B(_0x64fb95,_0x4b325b,_0x26900b){const _0x31f62c='elementEnd'==_0x64fb95['type']?_0x26900b['createPositionAt'](_0x64fb95['item'],'end'):_0x26900b['createPositionBefore'](_0x64fb95['item']);return _0x26900b['createPositionFromPath'](_0x4b325b,_0x31f62c['path'],_0x31f62c['stickiness']);}function J(_0x5953ea,_0x21c34c,_0x340889){const _0x35c377='elementStart'==_0x5953ea['type']?_0x340889['createPositionAt'](_0x5953ea['item'],0x0):_0x340889['createPositionAfter'](_0x5953ea['item']);return _0x340889['createPositionFromPath'](_0x21c34c,_0x35c377['path'],_0x35c377['stickiness']);}class ns extends _0x5ca5eb{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2253c4,_0x5828e5){super(_0x2253c4),this['focusTracker']=new _0x374fa8(),this['keystrokes']=new _0x4c9c93(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5828e5),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'](),_0x359b2b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x51e445=_0x5e6072=>_0x5e6072['stopPropagation']();this['keystrokes']['set']('arrowright',_0x51e445),this['keystrokes']['set']('arrowleft',_0x51e445),this['keystrokes']['set']('arrowup',_0x51e445),this['keystrokes']['set']('arrowdown',_0x51e445);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x149b86){this['revisionNameInputView']['fieldView']['element']['value']=_0x149b86['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x55ca18){const _0x40160d=new nt(this['locale'],_0x59699b),_0x2dccf4=_0x40160d['fieldView'];_0x2dccf4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x42730e=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x55ca18&&(_0x42730e+='\x20('+m(this['locale'],'optional')+')'),(_0x40160d['label']=_0x42730e,_0x2dccf4['on']('input',()=>{this['revisionNameInputValue']=_0x2dccf4['element']['value']['trim']();}),_0x40160d);}}class u extends _0x167142{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3a5cbf=this['editor'],_0xb33061=_0x3a5cbf['plugins']['get']('RevisionTracker');_0x3a5cbf['ui']['componentFactory']['add']('revisionHistory',_0x4dd132=>{const _0xdb6c04=_0x5549cd(_0x4dd132),_0x4dc518=_0xdb6c04['panelView']['children'],_0x656583=new te(_0x4dd132),_0x1f341e=new _0x3bec46(_0x4dd132),_0x45c51b=new _0x2a10f9(_0x4dd132),_0x561f40=new _0x3bec46(_0x4dd132),_0x266f12=new _0x2a10f9(_0x4dd132);return _0xdb6c04['bind']('isEnabled')['to'](_0xb33061,'isReady',_0xb33061,'isEnabled',_0x3a5cbf,'isReadOnly',(_0x5c5c58,_0x53e1f8,_0x778293)=>_0x5c5c58&&_0x53e1f8&&!_0x778293),_0xdb6c04['buttonView']['set']({'icon':_0x385e25['history'],'label':m(_0x4dd132,'Revision\x20history'),'tooltip':!0x0}),_0x45c51b['set']({'label':m(_0x4dd132,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x45c51b['bind']('isEnabled')['to'](_0xb33061,'isReady',_0xb33061,'isEnabled',_0x3a5cbf,'isReadOnly',(_0x13cf3d,_0x5558e2,_0x241e0e)=>_0x13cf3d&&_0x5558e2&&!_0x241e0e),_0x45c51b['on']('execute',()=>this['_showDialog']()),_0x266f12['set']({'label':m(_0x4dd132,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x266f12['bind']('isEnabled')['to'](_0xb33061,'isReady',_0x3a5cbf,'isReadOnly',(_0x10d9b1,_0xf3af56)=>_0x10d9b1&&!_0xf3af56),_0x266f12['on']('execute',()=>{_0x3a5cbf['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xdb6c04['isOpen']=!0x1,_0x3a5cbf['editing']['view']['focus']();}),_0x1f341e['children']['add'](_0x45c51b),_0x561f40['children']['add'](_0x266f12),_0x656583['role']='menu',_0x656583['items']['addMany']([_0x1f341e,_0x561f40]),_0x4dc518['add'](_0x656583),_0xdb6c04;}),_0x3a5cbf['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x331c12=this['editor'],_0x2aae30=_0x331c12['locale'],_0x284cf8=new _0x579b3d(_0x2aae30),_0x5c5484=new _0x34ebb5(_0x2aae30);_0x284cf8['buttonView']['set']({'icon':_0x385e25['history'],'label':m(_0x2aae30,'Revision\x20history')});const _0xd00725=new _0xc6f60d(_0x2aae30,_0x284cf8),_0x52e2e9=new _0x20ab11(_0x2aae30);_0x52e2e9['set']({'label':m(_0x2aae30,'Save\x20current\x20revision')}),_0x52e2e9['delegate']('execute')['to'](_0x284cf8),_0x52e2e9['on']('execute',()=>{this['_showDialog']();}),_0xd00725['children']['add'](_0x52e2e9),_0x5c5484['items']['add'](_0xd00725);const _0x2718e4=new _0xc6f60d(_0x2aae30,_0x284cf8),_0x54f2a2=new _0x20ab11(_0x2aae30);return _0x54f2a2['set']({'label':m(_0x2aae30,'Open\x20revision\x20history')}),_0x54f2a2['delegate']('execute')['to'](_0x284cf8),_0x54f2a2['on']('execute',()=>{_0x331c12['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2718e4['children']['add'](_0x54f2a2),_0x5c5484['items']['add'](_0x2718e4),_0x284cf8['panelView']['children']['add'](_0x5c5484),_0x284cf8;}['_showDialog'](){const _0x9d758f=this['editor'],_0x27fb15=_0x9d758f['locale'],_0xdd9ed0=_0x9d758f['plugins']['get']('Dialog'),_0x318240=_0x9d758f['plugins']['get']('RevisionTracker');function _0x50d395(_0x34837d){_0x9d758f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x34837d['revisionName']?_0x34837d['revisionNameInputView']['errorText']=m(_0x27fb15,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x9d758f['plugins']['get'](l)['saveRevision']({'name':_0x34837d['revisionName']}),_0xdd9ed0['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x50d395(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xdd9ed0['show']({'id':'revisionSave','title':m(_0x27fb15,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x9d758f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xdd9ed0['hide']()},{'label':m(_0x9d758f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1b8368){_0x1b8368['bind']('isEnabled')['to'](_0x318240,'isReady',_0x318240,'isEnabled',_0x9d758f,'isReadOnly',(_0x4daaf0,_0x47579e,_0x47090e)=>_0x4daaf0&&_0x47579e&&!_0x47090e);},'onExecute':()=>_0x50d395(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1af8d2=this['editor'],_0x58a0a7=_0x1af8d2['locale'];this['_saveRevisionFormView']=new ns(_0x58a0a7,_0x1af8d2['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x5ca5eb{['changeId'];['_model'];constructor(_0xf16ca2,_0x299b06){super(_0xf16ca2),this['_model']=_0x299b06,this['changeId']=_0x299b06['id'];const _0x231130=this['bindTemplate'],_0x450744=m(_0xf16ca2,_0x299b06['data']['isSuggestion']?'Suggested\x20by':'add'==_0x299b06['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x299b06['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x231130['to']('type',_0x48db9c=>'ck-revision-change__'+_0x48db9c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x450744}]},{'text':'\x20'+_0x299b06['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1af8ce(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x51f0b9){super(),this['id']=_0x51f0b9['id']||_0x522a16(),this['author']=_0x51f0b9['author'],this['type']=_0x51f0b9['type'],this['data']=_0x51f0b9['data']||{},this['rootName']=_0x51f0b9['rootName'],this['set']('createdAt',_0x51f0b9['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(_0x42dbee,_0x4928a0){this['newRevisionId']=_0x42dbee,this['oldRevisionId']=_0x4928a0,this['changes']=new _0x348058();}['_setChanges'](_0x59fa5e){for(const _0x99adef of _0x59fa5e)this['changes']['add'](_0x99adef);}}const Y={'c':_0x426bd3,'a':_0x3348fb,'e':_0x53c6dc,'r':_0x1bcc36,'u':_0x3a6fc7};class d extends _0x167142{['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[_0x50c3f1,_0x34c41e,j];}constructor(_0x3086d4){super(_0x3086d4),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',(_0xf1f35,_0x4c5343,_0x5514d0)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x857982=>{for(const _0x19bd6d of this['editor']['editing']['view']['document']['roots'])_0x5514d0?_0x857982['removeClass']('ck-editor__editable__overlay',_0x19bd6d):_0x857982['addClass']('ck-editor__editable__overlay',_0x19bd6d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2c2df8=>null!==_0x2c2df8),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x26ec05,_0x1d1d2c,_0x416851)=>_0x26ec05&&_0x416851?_0x1d1d2c['changes']['getIndex'](_0x416851):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x185a02,_0x513524)=>_0x185a02?_0x513524['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x34c41e);}['init'](){const _0x1816a4=this['editor'],_0x4e5cd1=new yt(_0x1816a4,{'direction':'backward'}),_0x425866=new yt(_0x1816a4,{'direction':'forward'});(_0x1816a4['commands']['add']('showPreviousChange',_0x4e5cd1),_0x1816a4['commands']['add']('showNextChange',_0x425866),_0x1816a4['commands']['add']('restoreRevision',new _t(_0x1816a4)),this['on']('change:numberOfChanges',()=>{_0x4e5cd1['refresh'](),_0x425866['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1816a4['enableReadOnlyMode']('revision-viewer'),_0x1816a4['plugins']['has']('WidgetToolbarRepository'))&&_0x1816a4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x22e4d9){await this['loadRevisionData'](_0x22e4d9);const _0x1c919d={};for(const _0x2d806a in _0x22e4d9['diffData']){if(_0x22e4d9['diffData'][_0x2d806a]['attachChange']&&!_0x22e4d9['diffData'][_0x2d806a]['attachChange']['isAttached'])continue;const _0x2517fc=this['_removeRevisionMarkers'](JSON['parse'](_0x22e4d9['diffData'][_0x2d806a]['insertions'])),_0x2405f4=this['editor']['editing']['view']['document'],_0x3ceace=new _0x304a1b(_0x2405f4,_0x2517fc['map'](_0x2aad3f=>this['_getViewObj'](_0x2aad3f)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c919d[_0x2d806a]=this['editor']['data']['processor']['toData'](_0x3ceace),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c919d;}async['getRevisionRootsAttributes'](_0x386605){await this['loadRevisionData'](_0x386605);const _0x5e53b9={};for(const _0x444244 in _0x386605['diffData'])_0x386605['diffData'][_0x444244]['attachChange']&&!_0x386605['diffData'][_0x444244]['attachChange']['isAttached']||(_0x5e53b9[_0x444244]=_0x386605['diffData'][_0x444244]['attributesAfter']||{});return _0x5e53b9;}['_removeRevisionMarkers'](_0x53240b){return(_0x53240b=_0x53240b['filter'](_0x1575b5=>!_0x1575b5['name']||'revision-start'!==_0x1575b5['name']&&'revision-end'!==_0x1575b5['name']))['forEach'](_0x5e1072=>{'string'!=typeof _0x5e1072&&(_0x5e1072['children']=this['_removeRevisionMarkers'](_0x5e1072['children']),_0x5e1072['attributes']=_0x5e1072['attributes']['filter'](_0x300bf6=>!_0x300bf6[0x0]['startsWith']('data-revision-')));}),_0x53240b;}async['compare'](_0xafe30f,_0x92b70,_0x2b1b90=!0x1){if(!this['isEnabled'])return;const _0x54f159=this['diff'],_0x3b9d29=this['repository'],_0x53828c='string'==typeof _0xafe30f?_0x3b9d29['getRevision'](_0xafe30f):_0xafe30f,_0x65b8ef='string'==typeof _0x92b70?_0x3b9d29['getRevision'](_0x92b70):_0x92b70,_0x1dc397=_0x53828c['id'],_0x45a0da=_0x65b8ef?_0x65b8ef['id']:null;if(!_0x2b1b90&&this['diff']&&this['diff']['newRevisionId']===_0x1dc397&&this['diff']['oldRevisionId']===_0x45a0da)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1dc397,_0x45a0da);const _0x54c5cd=this['_getRevisionsRange'](_0x53828c,_0x65b8ef,!0x0)['map'](_0x4f16d0=>this['loadRevisionData'](_0x4f16d0));return _0x54c5cd['push'](new Promise(_0x26dc0b=>{setTimeout(_0x26dc0b,0x14);})),Promise['all'](_0x54c5cd)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x42a66f=this['_getDiff'](_0x1dc397,_0x45a0da);for(const _0x5f0fec of _0x42a66f['changes'])this['_changeIdToChange']['set'](_0x5f0fec['id'],_0x5f0fec);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x40ee5f=>{for(const _0x3b3493 of this['editor']['model']['document']['getRootNames']())_0x40ee5f['detachRoot'](_0x3b3493);for(const _0x54732f of Object['keys'](_0x42a66f['model'])){const _0x114894=_0x40ee5f['addRoot'](_0x54732f);for(const _0x4733fe of Object['keys'](_0x42a66f['attributes'][_0x54732f]))_0x40ee5f['setAttribute'](_0x4733fe,_0x42a66f['attributes'][_0x54732f][_0x4733fe],_0x114894);_0x40ee5f['insert'](_0x42a66f['model'][_0x54732f],_0x114894,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x42a66f['changes'])),this['isReady']=!0x0;})['catch'](_0x19a64d=>{console['error'](_0x19a64d),this['_cleanUp'](),_0x54f159&&(this['diff']=_0x54f159),this['isReady']=!0x0;});}['addRevisionData'](_0x29f624,_0x48b9fb){const _0x1eb688=this['repository']['createRevision'](_0x29f624);return _0x1eb688['on']('_update',(_0x8b6148,_0x54f46f,_0x496805)=>_0x48b9fb(_0x54f46f,_0x496805,_0x1eb688)),this['repository']['addRevision'](_0x1eb688),_0x1eb688;}['loadRevisionData'](_0x10ed84){if(!_0x10ed84||_0x10ed84['diffData'])return Promise['resolve']();{const _0x34bb60=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x34bb60,'revisionId':_0x10ed84['id']})['then'](_0x3720c4=>{_0x10ed84['_update']({'diffData':_0x3720c4['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},_0x55c542=>{for(const _0x59b1e2 of this['editor']['model']['document']['getRootNames']())_0x55c542['detachRoot'](_0x59b1e2);});}['_sortAndFilterDiffChanges'](_0xb4c41a){const _0x2bed2d=[],_0x4a511a=new Map();for(const _0x17f0ab of this['editor']['model']['document']['getRootNames']()){const _0x97126c=this['editor']['editing']['view']['getDomRoot'](_0x17f0ab);if(!_0x97126c)continue;const _0x427529=_0x97126c['getClientRects']()['item'](0x0);_0x427529&&(_0x2bed2d['push'](_0x17f0ab),_0x4a511a['set'](_0x17f0ab,_0x427529));}return _0x2bed2d['sort']((_0x3c268f,_0x27e17e)=>{const _0x58fb51=_0x4a511a['get'](_0x3c268f),_0x261452=_0x4a511a['get'](_0x27e17e);return _0x58fb51['y']-_0x261452['y']||_0x58fb51['x']-_0x261452['x'];}),(_0xb4c41a=_0xb4c41a['filter'](_0x48ece9=>_0x2bed2d['includes'](_0x48ece9['rootName'])))['sort']((_0x52756e,_0x3ea203)=>_0x2bed2d['indexOf'](_0x52756e['rootName'])-_0x2bed2d['indexOf'](_0x3ea203['rootName'])),_0xb4c41a;}['_makeTape'](_0x1b0d46){const _0x5dd36c=Array['from'](_0x1b0d46['markers'])['filter'](([_0x1f1dd9,_0x368eef])=>_0x1f1dd9['startsWith']('revision:')&&!_0x368eef['isCollapsed']),_0x2946e7=Array['from'](this['editor']['model']['createRangeIn'](_0x1b0d46)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5dd36c['length'])for(const _0x9f2d19 of _0x2946e7){const [_0x3fabcc,_0x45df82]=_0x5dd36c[0x0],[,_0xa76496,_0x5cd7b8]=_0x3fabcc['split'](':');if(_0x45df82['end']['isEqual'](_0x9f2d19['nextPosition'])&&_0x5dd36c['shift'](),(_0x9f2d19['previousPosition']['isEqual'](_0x45df82['start'])||_0x9f2d19['previousPosition']['isAfter'](_0x45df82['start']))&&('insertion'==_0xa76496?_0x9f2d19['isAdded']={'userId':_0x5cd7b8}:'deletion'==_0xa76496&&(_0x9f2d19['isRemoved']={'userId':_0x5cd7b8})),0x0==_0x5dd36c['length'])break;}return _0x2946e7;}['_refreshStartEndIndex'](_0x5a922f){const _0x2439c4=new Map();for(let _0x299dbb=0x0;_0x299dbb<_0x5a922f['length'];_0x299dbb++)'text'===_0x5a922f[_0x299dbb]['type']?(_0x5a922f[_0x299dbb]['item']['startIndex']=_0x299dbb,_0x5a922f[_0x299dbb]['item']['endIndex']=_0x299dbb):('elementStart'===_0x5a922f[_0x299dbb]['type']?_0x5a922f[_0x299dbb]['item']['startIndex']=_0x299dbb:'elementEnd'===_0x5a922f[_0x299dbb]['type']&&(_0x5a922f[_0x299dbb]['item']['endIndex']=_0x299dbb),_0x2439c4['set'](_0x5a922f[_0x299dbb]['id'],_0x299dbb));for(const _0x55a49b of _0x2439c4['values']())'elementStart'===_0x5a922f[_0x55a49b]['type']?_0x5a922f[_0x55a49b]['item']['endIndex']=_0x2439c4['get'](_0x5a922f[_0x55a49b]['pairId']):'elementEnd'===_0x5a922f[_0x55a49b]['type']&&(_0x5a922f[_0x55a49b]['item']['startIndex']=_0x2439c4['get'](_0x5a922f[_0x55a49b]['pairId']));}['_processTape'](_0x1dc090){for(let _0x1bc048=0x0;_0x1bc048<_0x1dc090['length'];_0x1bc048++){if('elementStart'===_0x1dc090[_0x1bc048]['type'])_0x1dc090[_0x1bc048]['item']['startIndex']=_0x1bc048;else{if('elementEnd'===_0x1dc090[_0x1bc048]['type']){_0x1dc090[_0x1bc048]['item']['endIndex']=_0x1bc048;const _0x57b8bc=_0x1dc090[_0x1bc048]['item']['startIndex'];_0x1dc090[_0x57b8bc]['pairId']=_0x1dc090[_0x1bc048]['id'],_0x1dc090[_0x1bc048]['pairId']=_0x1dc090[_0x57b8bc]['id'];}else _0x1dc090[_0x1bc048]['item']['startIndex']=_0x1bc048,_0x1dc090[_0x1bc048]['item']['endIndex']=_0x1bc048,_0x1dc090[_0x1bc048]['pairId']=null;}_0x1dc090[_0x1bc048]['markersStart']||(_0x1dc090[_0x1bc048]['markersStart']=[],_0x1dc090[_0x1bc048]['markersEnd']=[]);}}['_markInsertions'](_0x8d5796,_0x5f2422){const _0x47a430=_0x8d5796['filter'](_0x7c953b=>!_0x7c953b['isAdded']);for(let _0xa88f29=0x0;_0xa88f29<_0x5f2422['length'];_0xa88f29++)_0x5f2422[_0xa88f29]['isAdded']&&(_0x47a430[_0xa88f29]['isAdded']=_0x5f2422[_0xa88f29]['isAdded']);}['_makeModelFromViewString'](_0x2f74cf){const _0x15f266=JSON['parse'](_0x2f74cf),_0xd70208=this['editor']['editing']['view']['document'],_0x42f15f=new _0x304a1b(_0xd70208,_0x15f266['map'](_0x2eb05c=>this['_getViewObj'](_0x2eb05c)));return this['editor']['data']['toModel'](_0x42f15f);}['_getViewObj'](_0x3080a3){const _0x40258a=this['editor']['editing']['view']['document'];if('string'==typeof _0x3080a3)return new _0x44a3c7(_0x40258a,_0x3080a3);{const _0x23770c=_0x3080a3['children']['map'](_0x521c7c=>this['_getViewObj'](_0x521c7c));return new(Y[_0x3080a3['type']]||_0xb48d93)(_0x40258a,_0x3080a3['name'],_0x3080a3['attributes'],_0x23770c);}}['_getDiff'](_0x55b375,_0x2e8765=null){const _0x46df5d=this['repository']['getRevision'](_0x55b375),_0x5ea532=_0x2e8765?this['repository']['getRevision'](_0x2e8765):null,_0x5bb40d=this['_getRevisionsRange'](_0x46df5d,_0x5ea532),_0x75117a=_0x5bb40d[_0x5bb40d['length']-0x1],_0x48185b=new Map(),_0x2618a9={'model':{},'attributes':{},'changes':[]},_0x30f240=new Set(),_0x51ee2c=new Map();for(let _0x23d975=_0x5bb40d['length']-0x1;_0x23d975>=0x0;_0x23d975--){const _0x52df52=_0x5bb40d[_0x23d975];for(const _0xeeb951 of Object['keys'](_0x52df52['diffData']))if(_0x52df52['diffData'][_0xeeb951]['attachChange']){const _0x1e1d22=_0x52df52['diffData'][_0xeeb951]['attachChange'];_0x1e1d22['isAttached']?(_0x30f240['add'](_0xeeb951),_0x51ee2c['has'](_0xeeb951)&&_0x51ee2c['get'](_0xeeb951)['userId']==_0x1e1d22['userId']?_0x51ee2c['delete'](_0xeeb951):_0x51ee2c['set'](_0xeeb951,_0x1e1d22)):_0x51ee2c['has'](_0xeeb951)?(_0x30f240['delete'](_0xeeb951),_0x51ee2c['delete'](_0xeeb951)):(_0x30f240['add'](_0xeeb951),_0x51ee2c['set'](_0xeeb951,_0x1e1d22));}else _0x30f240['add'](_0xeeb951);}for(const _0x4d96bb of _0x30f240){const _0x4bafb1=_0x51ee2c['has'](_0x4d96bb)&&!_0x51ee2c['get'](_0x4d96bb)['isAttached'];let _0x5bc5a1=_0x4bafb1?_0x5bb40d['length']-0x1:0x0;const _0x393140=_0x4bafb1?-0x1:0x1;for(;_0x5bb40d[_0x5bc5a1];){const _0x3c8d2a=_0x5bb40d[_0x5bc5a1];if(_0x3c8d2a['diffData'][_0x4d96bb]){const _0x3da453=_0x4bafb1?_0x3c8d2a['diffData'][_0x4d96bb]['attributesBefore']:_0x3c8d2a['diffData'][_0x4d96bb]['attributesAfter'];_0x2618a9['attributes'][_0x4d96bb]=_0x3da453?_0x2e632a(_0x3da453):{};break;}_0x5bc5a1+=_0x393140;}}for(const _0xec8f88 of _0x5bb40d){_0xec8f88['model']={};for(const _0x179324 of _0xec8f88['authors'])_0x48185b['set'](_0x179324['id'],_0x179324);for(const _0x39ad3d of _0x30f240){const _0x41150e=_0xec8f88['diffData'][_0x39ad3d]?_0xec8f88['diffData'][_0x39ad3d]['insertions']:'[]',_0x2670de=_0xec8f88['diffData'][_0x39ad3d]?_0xec8f88['diffData'][_0x39ad3d]['deletions']:'[]';_0xec8f88['model'][_0x39ad3d]={'insertions':this['_makeModelFromViewString'](_0x41150e),'deletions':this['_makeModelFromViewString'](_0x2670de)};}}for(const _0x202898 of _0x30f240){let _0x19672b=null,_0x1a2ef2=0x0;const _0x308ed4=new Map(Array['from'](_0x46df5d['model'][_0x202898]['insertions']['markers'])['filter'](([_0x409139])=>!_0x409139['startsWith']('revision:')));let _0x18c6b8=0x0;for(const _0x24589d of _0x5bb40d){const _0x142bf1=this['_makeTape'](_0x24589d['model'][_0x202898]['insertions']);_0x24589d==_0x46df5d?(_0x19672b=_0x142bf1,_0x1a2ef2=_0x19672b['length'],_0x19672b['forEach'](_0x3e3f0f=>{_0x3e3f0f['id']=_0x18c6b8++;}),this['_processTape'](_0x19672b)):this['_markInsertions'](_0x19672b,_0x142bf1);const _0x373d15=_0x19672b['filter'](_0x147b93=>!_0x147b93['isAdded'])['map'](_0x533658=>_0x533658['id']);let _0x2fac4c=0x0;const _0x15b142=this['_makeTape'](_0x24589d['model'][_0x202898]['deletions']);_0x15b142['forEach'](_0x52680e=>{_0x52680e['isRemoved']?_0x52680e['id']=_0x1a2ef2++:_0x52680e['id']=_0x373d15[_0x2fac4c++];}),this['_processTape'](_0x15b142),this['_setDistance'](_0x19672b,'isAdded'),this['_setDistance'](_0x15b142,'isRemoved'),_0x24589d==_0x46df5d&&this['_markMarkers'](_0x19672b,_0x308ed4),_0x19672b=this['_joinTapes'](_0x19672b,_0x15b142),this['_refreshStartEndIndex'](_0x19672b),this['_setDistance'](_0x19672b,'isRemoved');}_0x19672b=_0x19672b['filter'](_0x4247d1=>!(_0x4247d1['isAdded']&&_0x4247d1['isRemoved']));const _0x82809=new Map(_0x75117a['model'][_0x202898]['deletions']['markers']),_0x133d57=new Set(_0x308ed4['keys']());for(const _0x1aa0bc of _0x82809['keys']())_0x133d57['delete'](_0x1aa0bc);this['_markSuggestions'](_0x19672b,_0x133d57),this['_fixObsoleteTags'](_0x19672b),_0x19672b=this['_removeMissingPairs'](_0x19672b),_0x19672b=this['_markMismatchedRemovedTags'](_0x19672b),_0x19672b=this['_removeUnsupportedChanges'](_0x19672b);const {root:_0x11695e,changes:_0x31b7a9}=this['_makeModelFromTape'](_0x19672b,_0x48185b,_0x202898);_0x2618a9['model'][_0x202898]=_0x11695e;const _0x3c1889=_0x51ee2c['get'](_0x202898);if(_0x3c1889){const _0x5ea16d=_0x48185b['get'](_0x3c1889['userId']),_0x547dbf=new r({'author':_0x5ea16d,'type':_0x3c1889['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x202898});_0x31b7a9['unshift'](_0x547dbf),_0x2618a9['attributes'][_0x202898]['revisionHistoryAttachChange']=_0x547dbf['id'];}_0x2618a9['changes']=_0x2618a9['changes']['concat'](_0x31b7a9);}return _0x2618a9;}['_markMarkers'](_0x387d89,_0x11cf26){for(let _0x32011c=0x0;_0x32011c<_0x387d89['length'];_0x32011c++)for(const [_0x1ebda6,_0x127432]of _0x11cf26)_0x127432['start']['isEqual'](_0x387d89[_0x32011c]['previousPosition'])&&_0x387d89[_0x32011c]['markersStart']['push'](_0x1ebda6),_0x127432['end']['isEqual'](_0x387d89[_0x32011c]['nextPosition'])&&_0x387d89[_0x32011c]['markersEnd']['push'](_0x1ebda6);}['_joinTapes'](_0x187c2f,_0x5722a1){let _0x1296fc=[],_0xc93eac=0x0,_0x27e27e=0x0;for(;_0xc93eac<_0x187c2f['length']||_0x27e27e<_0x5722a1['length'];){const _0x4670d4=_0x187c2f[_0xc93eac]||{},_0x4289f3=_0x5722a1[_0x27e27e]||{};if(_0x4670d4['id']==_0x4289f3['id'])_0xc93eac++,_0x27e27e++,_0x1296fc['push'](_0x4670d4);else{if(_0x4289f3['isRemoved']&&_0x4670d4['isAdded']){const {commonTape:_0x1373dd,iEnd:_0x5f68a8,jEnd:_0x26017b}=this['_threeWayMerge'](_0x187c2f,_0xc93eac,_0x5722a1,_0x27e27e);_0x1296fc=_0x1296fc['concat'](_0x1373dd),_0xc93eac=_0x5f68a8,_0x27e27e=_0x26017b;}else _0x4289f3['isRemoved']?(_0x27e27e++,_0x1296fc['push'](_0x4289f3)):(_0xc93eac++,_0x1296fc['push'](_0x4670d4));}}return _0x1296fc;}['_markSuggestions'](_0x2843b2,_0xaf824e){const _0x3165e6=[];for(let _0x12ec0b=0x0;_0x12ec0b<_0x2843b2['length'];_0x12ec0b++){for(let _0x1d2896=0x0;_0x1d2896<_0x2843b2[_0x12ec0b]['markersStart']['length'];_0x1d2896++){const _0x4fc64b=_0x2843b2[_0x12ec0b]['markersStart'][_0x1d2896];if(!_0xaf824e['has'](_0x4fc64b))continue;const {group:_0x105b49,type:_0x11cdfe,authorId:_0x5cc433}=_0xd07c65(_0x4fc64b);'revision-suggestion'!=_0x105b49||'insertion'!=_0x11cdfe&&'deletion'!=_0x11cdfe||(_0x3165e6['unshift']({'type':_0x11cdfe,'name':_0x4fc64b,'userId':_0x5cc433}),_0x2843b2[_0x12ec0b]['markersStart']['splice'](_0x1d2896,0x1),_0x1d2896--);}_0x30094b(_0x2843b2[_0x12ec0b]);for(let _0x74214=0x0;_0x74214<_0x2843b2[_0x12ec0b]['markersEnd']['length'];_0x74214++){const _0x2683d3=_0x2843b2[_0x12ec0b]['markersEnd'][_0x74214];if(!_0xaf824e['has'](_0x2683d3))continue;const {group:_0x5c88cf,type:_0xae2f3a}=_0xd07c65(_0x2683d3);if('revision-suggestion'!=_0x5c88cf||'insertion'!=_0xae2f3a&&'deletion'!=_0xae2f3a)continue;_0x2843b2[_0x12ec0b]['markersEnd']['splice'](_0x74214,0x1),_0x74214--;const _0x288033=_0x3165e6['findIndex'](_0x1d2656=>_0x1d2656['name']==_0x2683d3);_0x288033>-0x1&&_0x3165e6['splice'](_0x288033,0x1);}}function _0xd07c65(_0x20d53e){const _0x35c809=_0x20d53e['split'](':');return{'group':_0x35c809[0x0],'type':_0x35c809[0x1],'subType':_0x35c809['length']>=0x5?_0x35c809[0x2]:null,'id':_0x35c809['length']<0x5?_0x35c809[0x2]:_0x35c809[0x3],'authorId':_0x35c809['length']<0x5?_0x35c809[0x3]:_0x35c809[0x4],'markerCount':0x6==_0x35c809['length']?_0x35c809[0x5]:null};}function _0x30094b(_0x1b914f){for(let _0x2e5570=0x0;_0x2e5570<_0x3165e6['length'];_0x2e5570++){if(_0x1b914f['isAdded']&&'insertion'==_0x3165e6[_0x2e5570]['type'])return _0x1b914f['isAddSuggestion']=_0x3165e6[_0x2e5570],void delete _0x1b914f['isAdded'];if(!_0x1b914f['isAdded']&&!_0x1b914f['isRemoved']&&'deletion'==_0x3165e6[_0x2e5570]['type'])return void(_0x1b914f['isRemoveSuggestion']=_0x3165e6[_0x2e5570]);}}}['_setDistance'](_0x27c326,_0x5c35b7){let _0x2a550b=0x0,_0x4e449e=!0x1;const _0x47fcca=new Map();for(const _0x33242d of _0x27c326)_0x33242d[_0x5c35b7]?_0x4e449e&&(_0x2a550b++,_0x4e449e=!0x1):(_0x2a550b++,_0x4e449e=!0x0),_0x47fcca['set'](_0x33242d['id'],_0x2a550b);for(let _0x220797=0x0;_0x220797<_0x27c326['length'];_0x220797++){if('isRemoved'==_0x5c35b7&&_0x27c326[_0x220797]['isAdded']||'isAdded'==_0x5c35b7&&_0x27c326[_0x220797]['isRemoved'])continue;if('text'==_0x27c326[_0x220797]['type']){_0x27c326[_0x220797]['distance']=0x0;continue;}const _0x1a9b9f=_0x47fcca['get'](_0x27c326[_0x220797]['pairId']),_0x42bee0=_0x47fcca['get'](_0x27c326[_0x220797]['id']);_0x27c326[_0x220797]['distance']=_0x1a9b9f-_0x42bee0;}}['_getRevisionsRange'](_0xf432ac,_0x5050a5,_0x549f11=!0x1){const _0x397afc=[];let _0x2b5e4a=this['repository']['getIndex'](_0xf432ac),_0x3dd1c1=this['repository']['getIndex'](_0x5050a5);for(-0x1==_0x3dd1c1&&(_0x3dd1c1=this['repository']['_revisions']['length'],_0x549f11=!0x1);_0x2b5e4a<_0x3dd1c1;)_0x397afc['push'](this['repository']['getRevision'](_0x2b5e4a)),_0x2b5e4a++;return _0x549f11&&_0x397afc['push'](this['repository']['getRevision'](_0x2b5e4a)),_0x397afc;}['_threeWayMerge'](_0x2874e9,_0x29f340,_0x4cb320,_0x5d02ae){const _0x3c55fb=this['editor']['model']['schema'];let _0x3f3ca1=_0x29f340;for(;_0x2874e9[_0x3f3ca1]&&_0x2874e9[_0x3f3ca1]['isAdded'];)_0x3f3ca1++;let _0x55678=_0x5d02ae;for(;_0x4cb320[_0x55678]&&_0x4cb320[_0x55678]['isRemoved'];)_0x55678++;_0x41b5e6(_0x2874e9,_0x29f340,_0x3f3ca1),_0x41b5e6(_0x4cb320,_0x5d02ae,_0x55678);const _0x52a8c0=_0x4cb320['slice'](_0x5d02ae,_0x55678)['concat'](_0x2874e9['slice'](_0x29f340,_0x3f3ca1));return _0x52a8c0['sort']((_0x5777f5,_0x26f0f4)=>_0x5777f5['side']!=_0x26f0f4['side']?_0x5777f5['side']-_0x26f0f4['side']:_0x5777f5['level']!=_0x26f0f4['level']?_0x5777f5['level']-_0x26f0f4['level']:_0x5777f5['distance']!=_0x26f0f4['distance']?_0x26f0f4['distance']-_0x5777f5['distance']:!!_0x5777f5['isAdded']!=!!_0x26f0f4['isAdded']?-0x1==_0x5777f5['side']||0x0==_0x5777f5['side']?_0x5777f5['isAdded']?-0x1:0x1:_0x5777f5['isAdded']?0x1:-0x1:_0x5777f5['index']-_0x26f0f4['index']),{'commonTape':_0x52a8c0,'iEnd':_0x3f3ca1,'jEnd':_0x55678};function _0x41b5e6(_0x366f34,_0x575d0d,_0x24a8b6){let _0x19bbe7=-0x1,_0x20c850=Number['POSITIVE_INFINITY'],_0x1cf52c=!0x0;for(let _0x3e3e14=_0x575d0d;_0x3e3e14<_0x24a8b6;_0x3e3e14++)if(_0x3c55fb['isInline'](_0x366f34[_0x3e3e14]['item'])||(_0x1cf52c=!0x1),_0x366f34[_0x3e3e14]['item']['startIndex']<_0x575d0d&&(_0x19bbe7=_0x3e3e14),_0x366f34[_0x3e3e14]['item']['endIndex']>=_0x24a8b6){_0x20c850=_0x3e3e14;break;}_0x1cf52c&&(_0x19bbe7=_0x24a8b6-0x1);for(let _0x2276c8=_0x575d0d;_0x2276c8<_0x24a8b6;_0x2276c8++)_0x366f34[_0x2276c8]['side']=_0x2276c8<=_0x19bbe7?-0x1:_0x2276c8<_0x20c850?0x0:0x1,_0x366f34[_0x2276c8]['index']=_0x2276c8;let _0x4980cc=0x0;for(let _0x24544e=_0x575d0d;_0x24544e<=_0x19bbe7;_0x24544e++)0x0==_0x366f34[_0x24544e]['distance']?_0x366f34[_0x24544e]['level']=_0x4980cc:(_0x4980cc++,_0x366f34[_0x24544e]['level']=_0x4980cc,_0x4980cc++);for(let _0x210956=_0x575d0d;_0x210956<_0x24a8b6;_0x210956++)0x0==_0x366f34[_0x210956]['side']&&(_0x366f34[_0x210956]['level']=_0x4980cc);_0x4980cc=0x0;for(let _0x5a7430=_0x24a8b6-0x1;_0x5a7430>=_0x20c850;_0x5a7430--)0x0==_0x366f34[_0x5a7430]['distance']?_0x366f34[_0x5a7430]['level']=_0x4980cc:(_0x4980cc--,_0x366f34[_0x5a7430]['level']=_0x4980cc,_0x4980cc--);}}['_fixObsoleteTags'](_0x3d1851){const _0x4f28dc=new Map(),_0x59747c=this['editor']['model']['schema'];for(let _0x119d68=0x1;_0x119d68<_0x3d1851['length'];_0x119d68++){let _0x1da77a,_0x1ccc71,_0x8c5aa2;const _0x14e13a=_0x3d1851[_0x119d68],_0x2d110f=_0x3d1851[_0x119d68-0x1];if('text'==_0x14e13a['type'])continue;if(_0x14e13a['type']!=_0x2d110f['type'])continue;if(!_0x59747c['isBlock'](_0x2d110f['item'])||_0x59747c['isLimit'](_0x2d110f['item']))continue;if(!_0x59747c['isBlock'](_0x14e13a['item'])||_0x59747c['isLimit'](_0x14e13a['item']))continue;if((_0x3d1851[_0x119d68]['isAdded']||_0x3d1851[_0x119d68]['isAddSuggestion'])&&_0x3d1851[_0x119d68-0x1]['isRemoved'])_0x1da77a=_0x3d1851[_0x119d68],_0x1ccc71=_0x3d1851[_0x119d68-0x1],_0x8c5aa2=_0x119d68-0x1;else{if(!_0x3d1851[_0x119d68]['isRemoved']||!_0x3d1851[_0x119d68-0x1]['isAdded']&&!_0x3d1851[_0x119d68-0x1]['isAddSuggestion'])continue;_0x1da77a=_0x3d1851[_0x119d68-0x1],_0x1ccc71=_0x3d1851[_0x119d68],_0x8c5aa2=_0x119d68;}const _0x479a6d=_0x1da77a['level']==_0x1ccc71['level'],_0xd4c55d=Math['abs'](_0x1da77a['level'])<Math['abs'](_0x1ccc71['level'])&&0x0==_0x1ccc71['distance'];(_0x479a6d||_0xd4c55d)&&(_0x4f28dc['set'](_0x1ccc71['id'],_0x1da77a['id']),_0x3d1851['splice'](_0x8c5aa2,0x1),_0x119d68--,_0x1da77a['isAdded']=!0x1);}for(let _0x456247=0x0;_0x456247<_0x3d1851['length'];_0x456247++)_0x4f28dc['has'](_0x3d1851[_0x456247]['pairId'])&&(_0x3d1851[_0x456247]['pairId']=_0x4f28dc['get'](_0x3d1851[_0x456247]['pairId']));}['_removeMissingPairs'](_0x340528){const _0x34123d=new Set(_0x340528['map'](_0x218055=>_0x218055['id']));for(let _0x58082e=0x0;_0x58082e<_0x340528['length'];_0x58082e++)_0x34123d['has'](_0x340528[_0x58082e]['pairId'])||0x0==_0x340528[_0x58082e]['distance']||(_0x340528[_0x58082e]['isIncorrect']=!0x0);return _0x340528['filter'](_0x2ec1b0=>!_0x2ec1b0['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3b7723){const _0x1be357=new Set();for(let _0x15c80e=0x0;_0x15c80e<_0x3b7723['length'];_0x15c80e++){if(_0x1be357['has'](_0x3b7723[_0x15c80e]['id'])&&_0x3b7723[_0x15c80e]['isRemoved']&&(_0x3b7723[_0x15c80e]['isIncorrect']=!0x0),_0x3b7723[_0x15c80e]['isIncorrect'])continue;if(0x0==_0x3b7723[_0x15c80e]['distance'])continue;if('elementStart'!=_0x3b7723[_0x15c80e]['type'])continue;if(null==_0x3b7723[_0x15c80e]['pairId'])continue;let _0x528f83=_0x15c80e+0x1,_0x23f735=0x0;for(;_0x3b7723[_0x528f83]['id']!=_0x3b7723[_0x15c80e]['pairId'];)'elementStart'==_0x3b7723[_0x528f83]['type']?_0x23f735++:'elementEnd'==_0x3b7723[_0x528f83]['type']&&_0x23f735--,_0x528f83++;if(0x0!=_0x23f735){if(_0x3b7723[_0x15c80e]['isRemoved'])_0x3b7723[_0x15c80e]['isIncorrect']=!0x0;else{for(;_0x528f83!=_0x15c80e;)_0x3b7723[_0x528f83]['isRemoved']&&0x0!=_0x3b7723[_0x528f83]['distance']&&(_0x3b7723[_0x528f83]['isIncorrect']=!0x0,_0x1be357['add'](_0x3b7723[_0x528f83]['pairId'])),_0x528f83--;}}}return _0x3b7723['filter'](_0x5c137c=>!_0x5c137c['isIncorrect']);}['_removeUnsupportedChanges'](_0x41c330){const _0x40fb01=this['editor']['model']['schema'];for(let _0x13fd27=0x0;_0x13fd27<_0x41c330['length'];_0x13fd27++){if(!(_0x41c330[_0x13fd27]['isAdded']||_0x41c330[_0x13fd27]['isAddSuggestion']||_0x41c330[_0x13fd27]['isRemoved']||_0x41c330[_0x13fd27]['isRemoveSuggestion']))continue;if(0x0==_0x41c330[_0x13fd27]['distance'])continue;const _0x3137b5=_0x41c330[_0x13fd27]['item'];_0x40fb01['isBlock'](_0x3137b5)||_0x40fb01['isLimit'](_0x3137b5)||(_0x41c330[_0x13fd27]['isAdded']&&delete _0x41c330[_0x13fd27]['isAdded'],_0x41c330[_0x13fd27]['isAddSuggestion']&&delete _0x41c330[_0x13fd27]['isAddSuggestion'],_0x41c330[_0x13fd27]['isRemoveSuggestion']&&delete _0x41c330[_0x13fd27]['isRemoveSuggestion'],_0x41c330[_0x13fd27]['isRemoved']&&(_0x41c330[_0x13fd27]['isIncorrect']=!0x0));}return _0x41c330['filter'](_0x2eada5=>!_0x2eada5['isIncorrect']);}['_makeModelFromTape'](_0x381645,_0x4c9d90,_0x13d4c5){const _0x3e2f2c=new mt(),_0x1915a6=[],_0x1757f7=new Map(),_0x4bdf89=this['editor']['model'],_0x3f210c=_0x4bdf89['schema'],_0x89efa7=[_0x3e2f2c],_0x4520e0={},_0x595968={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4208c8=null;const _0x5b961b=[0x0];for(let _0xf2d2cb=0x0;_0xf2d2cb<_0x381645['length'];_0xf2d2cb++)if('elementStart'===_0x381645[_0xf2d2cb]['type']){_0x381645[_0xf2d2cb]['previousPosition']=_0x4bdf89['createPositionFromPath'](_0x3e2f2c,_0x5b961b);const _0x55541e=new ft(_0x381645[_0xf2d2cb]['item']['name'],_0x381645[_0xf2d2cb]['item']['getAttributes']());_0x89efa7[0x0]['_appendChild'](_0x55541e),_0x5b961b['push'](0x0),_0x89efa7['unshift'](_0x55541e),_0x381645[_0xf2d2cb]['nextPosition']=_0x4bdf89['createPositionFromPath'](_0x3e2f2c,_0x5b961b);}else'elementEnd'===_0x381645[_0xf2d2cb]['type']?(_0x89efa7['shift'](),_0x381645[_0xf2d2cb]['previousPosition']=_0x4bdf89['createPositionFromPath'](_0x3e2f2c,_0x5b961b),_0x5b961b['pop'](),_0x5b961b[_0x5b961b['length']-0x1]++,_0x381645[_0xf2d2cb]['nextPosition']=_0x4bdf89['createPositionFromPath'](_0x3e2f2c,_0x5b961b)):(_0x381645[_0xf2d2cb]['previousPosition']=_0x4bdf89['createPositionFromPath'](_0x3e2f2c,_0x5b961b),_0x4208c8?_0x4208c8['_data']+=_0x381645[_0xf2d2cb]['item']['data']:_0x4208c8=new wt(_0x381645[_0xf2d2cb]['item']['data'],_0x381645[_0xf2d2cb]['item']['getAttributes']()),_0x381645[_0xf2d2cb+0x1]&&'text'===_0x381645[_0xf2d2cb+0x1]['type']&&_0x4e0aee(_0x4208c8,_0x381645[_0xf2d2cb+0x1]['item'])||(_0x89efa7[0x0]['_appendChild'](_0x4208c8),_0x4208c8=null),_0x5b961b[_0x5b961b['length']-0x1]+=_0x381645[_0xf2d2cb]['item']['offsetSize'],_0x381645[_0xf2d2cb]['nextPosition']=_0x4bdf89['createPositionFromPath'](_0x3e2f2c,_0x5b961b));for(let _0x2cd81a=0x0;_0x2cd81a<_0x381645['length'];_0x2cd81a++){const _0x393c5d=_0x381645[_0x2cd81a]['previousPosition'],_0x2263cc=_0x381645[_0x2cd81a]['nextPosition'];for(const _0x56f449 of _0x381645[_0x2cd81a]['markersStart'])_0x1757f7['set'](_0x56f449,{'start':_0x393c5d,'end':null});_0x46e736('isRemoveSuggestion',_0x2cd81a,_0x393c5d,_0x2263cc),_0x46e736('isAddSuggestion',_0x2cd81a,_0x393c5d,_0x2263cc),_0x46e736('isRemoved',_0x2cd81a,_0x393c5d,_0x2263cc),_0x46e736('isAdded',_0x2cd81a,_0x393c5d,_0x2263cc);for(const _0x304925 of _0x381645[_0x2cd81a]['markersEnd']){_0x1757f7['get'](_0x304925)['end']=_0x2263cc;}}for(const [_0xf0ed6e,_0x302835]of _0x1757f7){const _0x3acb3c=this['editor']['model']['createRange'](_0x302835['start'],_0x302835['end']);_0x3e2f2c['markers']['set'](_0xf0ed6e,_0x3acb3c);}return _0x1915a6['sort']((_0xe3cb09,_0x4a1be9)=>{const _0x1fb058=_0x3e2f2c['markers']['get']('revision:'+_0xe3cb09['id']),_0xa3a244=_0x3e2f2c['markers']['get']('revision:'+_0x4a1be9['id']);return _0x1fb058['start']['isBefore'](_0xa3a244['start'])?-0x1:_0x1fb058['start']['isAfter'](_0xa3a244['start'])?0x1:_0x1fb058['end']['isBefore'](_0xa3a244['end'])?-0x1:_0x1fb058['end']['isAfter'](_0xa3a244['end'])?0x1:'add'===_0xe3cb09['type']?-0x1:0x1;}),{'root':_0x3e2f2c,'changes':_0x1915a6};function _0x46e736(_0xb48112,_0x381447,_0x5f0d91,_0x499925){const _0xd98c2c=!!_0x381645[_0x381447][_0xb48112],_0x457e52=_0xd98c2c?_0x381645[_0x381447][_0xb48112]['userId']:null,_0x406ccf=_0x381447===_0x381645['length']-0x1,_0x560a6d=_0x595968[_0xb48112][0x0],_0x5f3b57=_0x3f210c['isObject'](_0x381645[_0x381447]['item']);!_0x4520e0[_0xb48112]&&_0xd98c2c?_0x4520e0[_0xb48112]={'start':_0x5f0d91,'tapeItem':_0x381645[_0x381447],'userId':_0x457e52,'type':_0xb48112}:_0x4520e0[_0xb48112]&&!_0xd98c2c?(_0x4520e0[_0xb48112]['end']=_0x5f0d91,_0x158b7f(_0x4520e0[_0xb48112]),_0x4520e0[_0xb48112]=null):_0x4520e0[_0xb48112]&&_0xd98c2c&&_0x4520e0[_0xb48112]['userId']!==_0x457e52&&(_0x4520e0[_0xb48112]['end']=_0x5f0d91,_0x560a6d&&_0x560a6d['userId']===_0x4520e0[_0xb48112]['userId']||_0x158b7f(_0x4520e0[_0xb48112]),_0x4520e0[_0xb48112]={'start':_0x5f0d91,'tapeItem':_0x381645[_0x381447],'userId':_0x457e52,'type':_0xb48112}),_0x4520e0[_0xb48112]&&_0x5f3b57&&('elementStart'!==_0x381645[_0x381447]['type']||_0x560a6d&&_0x560a6d['userId']===_0x457e52||_0x595968[_0xb48112]['unshift']({'userId':_0x457e52,'object':_0x381645[_0x381447]['item'],'change':_0x4520e0[_0xb48112]}),'elementEnd'===_0x381645[_0x381447]['type']&&_0x560a6d&&_0x560a6d['object']===_0x381645[_0x381447]['item']&&(_0x595968[_0xb48112]['shift'](),_0x4520e0[_0xb48112]=_0x560a6d['change'])),_0x4520e0[_0xb48112]&&_0x406ccf&&(_0x4520e0[_0xb48112]['end']=_0x499925,_0x158b7f(_0x4520e0[_0xb48112]),_0x4520e0[_0xb48112]=null);}function _0x158b7f({start:_0x984f15,end:_0xedda0,tapeItem:_0x368110,userId:_0x4cbbbb,type:_0x5798e6}){const _0x21d68d=_0x368110['item'],_0x58225f=_0x4bdf89['schema']['isBlock'](_0x21d68d)&&!_0x4bdf89['schema']['isLimit'](_0x21d68d),_0x36c9b2=_0x984f15['nodeAfter']==_0xedda0['parent']&&_0xedda0['isAtStart'];if(_0x58225f&&_0x36c9b2)return;const _0x11ee32=_0x4bdf89['createRange'](_0x984f15,_0xedda0),_0x3b6934=_0x4c9d90['get'](_0x4cbbbb),_0x2e8ad9=new r({'author':_0x3b6934,'type':'isAdded'==_0x5798e6||'isAddSuggestion'==_0x5798e6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5798e6||'isRemoveSuggestion'==_0x5798e6},'createdAt':new Date(),'rootName':_0x13d4c5});_0x1915a6['push'](_0x2e8ad9),_0x3e2f2c['markers']['set']('revision:'+_0x2e8ad9['id'],_0x11ee32);}function _0x4e0aee(_0x370e2f,_0x251c8c){const _0x41fdd7=_0x370e2f['getAttributes'](),_0x376200=_0x251c8c['getAttributes']();for(const _0x13aa9e of _0x41fdd7){if(_0x13aa9e[0x1]!==_0x251c8c['getAttribute'](_0x13aa9e[0x0]))return!0x1;_0x376200['next']();}return _0x376200['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x25c3c5=>{const _0x46fb7e=_0x25c3c5['markerName']['split'](':')[0x1],_0xb4ce01=this['_getChangeFromId'](_0x46fb7e);if(!_0xb4ce01)return null;const _0x49e67f='add'==_0xb4ce01['type']?'insertion':'deletion',_0x1ffb4c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x49e67f];return _0xb4ce01['data']['isSuggestion']&&_0x1ffb4c['push']('ck-suggestion-marker-'+_0x49e67f+'-new'),this['activeChange']==_0xb4ce01&&_0x1ffb4c['push']('ck-suggestion-marker--active'),{'classes':_0x1ffb4c,'attributes':{'data-change-id':_0x46fb7e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x57f64c=>{_0x57f64c['on']('element:pre',(_0x8b2155,_0x383309,_0x253ab3)=>{const _0x486e47=_0x383309['viewItem']['getChild'](0x0);if(!_0x486e47||!_0x486e47['is']('element','code'))return;if(!_0x253ab3['consumable']['consume'](_0x486e47,{'attributes':['vid_start','vid_end']}))return;const _0x560b65=_0x383309['modelRange']['start']['nodeAfter'];_0x253ab3['writer']['setAttribute']('vid_start',_0x486e47['getAttribute']('vid_start'),_0x560b65),_0x253ab3['writer']['setAttribute']('vid_end',_0x486e47['getAttribute']('vid_end'),_0x560b65);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x339a73=>{_0x339a73['on']('element',(_0x596a98,_0x3b97ef,_0x2c9fb6)=>{if(!_0x2c9fb6['consumable']['consume'](_0x3b97ef['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3b97ef['modelRange']['isCollapsed'])return;const _0x32801b=_0x3b97ef['modelRange']['start']['nodeAfter'];_0x32801b['hasAttribute']('vid_start')||_0x32801b['hasAttribute']('vid')||(_0x2c9fb6['writer']['setAttribute']('vid_start',_0x3b97ef['viewItem']['getAttribute']('vid_start'),_0x32801b),_0x2c9fb6['writer']['setAttribute']('vid_end',_0x3b97ef['viewItem']['getAttribute']('vid_end'),_0x32801b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xe319a2=>_0xe319a2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3f6e0a,[,_0x2370a9])=>{['vid_start','vid_end','vid']['includes'](_0x2370a9)&&(_0x3f6e0a['return']=!0x0,_0x3f6e0a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5b454d=>{_0x5b454d['on']('attribute:vid',(_0x346f47,_0x1deadb,_0x71a9d5)=>{if('\x20'!=_0x1deadb['item']['data']||_0x1deadb['item']['parent']['maxOffset']>0x1)return;if(!_0x71a9d5['consumable']['consume'](_0x1deadb['item'],_0x346f47['name']))return;const _0x4a48dc=_0x71a9d5['writer'],_0x4b4004=_0x71a9d5['mapper']['toViewRange'](_0x1deadb['range']);_0x4a48dc['wrap'](_0x4b4004,_0x4a48dc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1287f8){const _0x1b7f73=_0x1287f8['plugins']['get']('RevisionViewer');return(_0x2ade59,_0x4daa07,_0x488387)=>{const _0x3ecbd1=_0x4daa07['markerName']['split'](':')[0x1],_0x67524b=_0x1b7f73['_getChangeFromId'](_0x3ecbd1);if(!_0x67524b)return null;const _0x134bbf='add'==_0x67524b['type']?'split':'merge';if(!_0x488387['consumable']['test'](_0x4daa07['markerRange'],_0x2ade59['name']))return;const _0x19f678=_0x4daa07['markerRange']['getWalker'](),_0x33b64f=_0x4daa07['markerRange']['start'],_0x5b9a73=_0x1287f8['model']['schema'];let _0x153c76=null,_0x58b9f3=null,_0x472b6d=!0x1,_0x2a711d=!0x1;for(const _0x3275ba of _0x19f678){const _0x2951f1=_0x3275ba['item'];_0x472b6d=_0x472b6d||_0x5b9a73['isContent'](_0x2951f1);const _0x5b5f50=_0x488387['mapper']['toViewElement'](_0x2951f1);if(_0x5b5f50&&_0x5b5f50['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3275ba['type']&&(_0x5b9a73['isBlock'](_0x2951f1)&&!_0x5b9a73['isLimit'](_0x2951f1)&&(_0x2951f1['nextSibling']||_0x33b64f['isAtEnd']?_0x153c76&&_0x153c76['parent']==_0x2951f1||(_0x153c76=_0x2951f1,_0x393b1f(_0x3275ba['previousPosition']),_0x2a711d=!0x0):_0x58b9f3=_0x58b9f3||_0x3275ba['previousPosition']));}function _0x393b1f(_0x1853a6){const _0x18af91=_0x488387['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x134bbf}),_0x3780e1=_0x488387['mapper']['toViewPosition'](_0x1853a6);_0x67524b['data']['isSuggestion']&&_0x488387['writer']['addClass']('ck-suggestion-marker-'+_0x134bbf+'-new',_0x18af91),_0x1b7f73['activeChange']==_0x67524b&&_0x488387['writer']['addClass']('ck-suggestion-marker--active',_0x18af91),_0x488387['writer']['insert'](_0x3780e1,_0x18af91),_0x488387['mapper']['bindElementToMarker'](_0x18af91,_0x4daa07['markerName']);}_0x472b6d||_0x2a711d||!_0x58b9f3||_0x393b1f(_0x58b9f3);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x28addf,_0x101215,_0xbb4a0)=>{const _0x46cb03=_0xbb4a0['mapper']['markerNameToElements'](_0x101215['markerName']);if(_0x46cb03){for(const _0x7741c7 of _0x46cb03)(_0x7741c7['hasClass']('ck-suggestion-marker-split')||_0x7741c7['hasClass']('ck-suggestion-marker-merge'))&&(_0xbb4a0['mapper']['unbindElementFromMarkerName'](_0x7741c7,_0x101215['markerName']),_0xbb4a0['writer']['remove'](_0x7741c7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x292845,_0x4d7a7f,_0x3662eb)=>{const _0x8dfd4=_0x4d7a7f['markerName']['split'](':')[0x1],_0x3122f9=this['_getChangeFromId'](_0x8dfd4);if(!_0x3122f9)return null;const _0x8b778b='add'==_0x3122f9['type']?'split':'merge';if(_0x3662eb['consumable']['test'](_0x4d7a7f['markerRange'],_0x292845['name']))for(const _0xe11621 of _0x4d7a7f['markerRange']['getItems']()){if(!_0xe11621['is']('element','softBreak'))continue;const _0x12b3a6=_0x3662eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8b778b}),_0x2fd67b=_0x3662eb['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xe11621));_0x3122f9['data']['isSuggestion']&&_0x3662eb['writer']['addClass']('ck-suggestion-marker-'+_0x8b778b+'-new',_0x12b3a6),this['activeChange']==_0x3122f9&&_0x3662eb['writer']['addClass']('ck-suggestion-marker--active',_0x12b3a6),_0x3662eb['writer']['insert'](_0x2fd67b,_0x12b3a6),_0x3662eb['mapper']['bindElementToMarker'](_0x12b3a6,_0x4d7a7f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4d2d97=>{for(const _0x3972b1 of this['editor']['model']['document']['getRootNames']()){const _0x1fd9d7=this['editor']['model']['document']['getRoot'](_0x3972b1),_0x558ee5=this['editor']['editing']['view']['document']['getRoot'](_0x3972b1);if(_0x558ee5){const _0x436da3=_0x1fd9d7['getAttribute']('revisionHistoryAttachChange');if(_0x4d2d97['removeAttribute']('data-change-id',_0x558ee5),_0x4d2d97['removeClass']('ck-revision-history-root-add',_0x558ee5),_0x4d2d97['removeClass']('ck-revision-history-root-remove',_0x558ee5),_0x4d2d97['removeClass']('ck-revision-history-root--active',_0x558ee5),_0x436da3){const _0x291b7d=this['_getChangeFromId'](_0x436da3);if(!_0x291b7d)return null;_0x4d2d97['setAttribute']('data-change-id',_0x436da3,_0x558ee5),_0x4d2d97['addClass']('ck-revision-history-root-'+_0x291b7d['type'],_0x558ee5),this['activeChange']==_0x291b7d&&_0x4d2d97['addClass']('ck-revision-history-root--active',_0x558ee5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x37ea10=>'revision-comment:'+_0x37ea10,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4017b4=>'revision-suggestion:'+_0x4017b4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x110863=>({'name':'suggestion:'+_0x110863,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5413d9=>{const _0x4ffcde=_0x5413d9['markerName']['split'](':')[0x1];return'insertion'!=_0x4ffcde&&'deletion'!=_0x4ffcde?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4ffcde]};}}),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',(_0x4fc66f,_0x1f5890,_0x15acb8)=>{const _0x14dd51=_0x15acb8['mapper']['markerNameToElements'](_0x1f5890['markerName']);if(_0x14dd51){for(const _0x4cef3f of _0x14dd51)_0x4cef3f['is']('uiElement')&&(_0x15acb8['mapper']['unbindElementFromMarkerName'](_0x4cef3f,_0x1f5890['markerName']),_0x15acb8['writer']['remove'](_0x4cef3f));}},{'priority':'high'});}['_getChangeFromId'](_0x1946f4){return this['_changeIdToChange']['get'](_0x1946f4);}['_getViewForChange'](_0x48f3f2){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x48f3f2),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x494285,_0x829999,_0x398754,_0x516f25)=>{_0x516f25&&this['_balloon']['remove'](_0x516f25),_0x398754&&(this['_balloon']['add']({'view':_0x398754,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x30a03f=this['editor']['editing'],_0x54bf15=this['_getChangeFromId'](_0x398754['changeId']);let _0x5019b4;if(_0x54bf15['data']['isOnRoot']){const _0x34e55b=_0x30a03f['view']['getDomRoot'](_0x54bf15['rootName']);_0x5019b4=Array['from'](_0x34e55b['getClientRects']());}else{const _0xac7012=this['editor']['model']['markers']['get']('revision:'+_0x398754['changeId']);_0x5019b4=Array['from'](_0x30a03f['mapper']['markerNameToElements'](_0xac7012['name']))['map'](_0x5cade4=>_0x30a03f['view']['domConverter']['mapViewToDom'](_0x5cade4))['map'](_0x33c022=>Array['from'](_0x33c022['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5019b4[0x0];return _0x5019b4['find'](_0x32f878=>_0x32f878['top']-0x3<=this['_activeViewTarget']['y']&&_0x32f878['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x32f878['left']-0x3<=this['_activeViewTarget']['x']&&_0x32f878['right']+0x3>=this['_activeViewTarget']['x'])||_0x5019b4[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x37ca28,_0xa3290f,_0x1c46a1,_0x1c077e)=>{this['activeView']=_0x1c46a1?this['_getViewForChange'](_0x1c46a1):null,this['editor']['model']['change'](()=>{const _0x23a599=this['editor']['editing'];_0x1c077e&&(_0x1c077e['data']['isOnRoot']?_0x23a599['view']['change'](_0x274a29=>{_0x274a29['removeClass']('ck-revision-history-root--active',_0x23a599['view']['document']['getRoot'](_0x1c077e['rootName']));}):_0x23a599['reconvertMarker']('revision:'+_0x1c077e['id'])),_0x1c46a1&&(_0x1c46a1['data']['isOnRoot']?_0x23a599['view']['change'](_0xb5995d=>{_0xb5995d['addClass']('ck-revision-history-root--active',_0x23a599['view']['document']['getRoot'](_0x1c46a1['rootName']));}):_0x23a599['reconvertMarker']('revision:'+_0x1c46a1['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x39a990,_0x47e4d9)=>{if(this['activeChange'])return;const _0xf45b1f=this['_findChangeIdFromDomTarget'](_0x47e4d9['target']),_0x11fd32=this['_changeIdToChange']['get'](_0xf45b1f);_0x11fd32?(this['_activeViewTarget']={'x':_0x47e4d9['domEvent']['x'],'y':_0x47e4d9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x11fd32)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x25ae44,_0x56dc13)=>{const _0x393873=this['_findChangeIdFromDomTarget'](_0x56dc13['target']),_0x41689d=this['_changeIdToChange']['get'](_0x393873);_0x41689d?(this['_activeViewTarget']={'x':_0x56dc13['domEvent']['x'],'y':_0x56dc13['domEvent']['y']},_0x41689d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x41689d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x24c203){do{const _0x2a505b=_0x24c203['getAttribute']('data-change-id');if(_0x2a505b)return _0x2a505b;_0x24c203=_0x24c203['parent'];}while(_0x24c203);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x20455e=>{for(const _0x268c07 of this['editor']['model']['markers'])_0x20455e['removeMarker'](_0x268c07);});}}function Z(_0x1b5ce9,_0x3d841c){return(_0xa91d52,_0x4d896e,_0x4136f1)=>{if(!_0x4136f1['consumable']['test'](_0x4d896e['markerRange'],_0xa91d52['name']))return;const _0x5ada8c=_0x4d896e['markerRange']['getWalker'](),_0x371c6f=_0x4d896e['markerRange']['start'],_0x2ba0c3=_0x1b5ce9['model']['schema'];let _0x32db5b=null,_0x20a83f=null,_0x4b412b=!0x1,_0x5628ee=!0x1;for(const _0x445a8e of _0x5ada8c){const _0x25eea4=_0x445a8e['item'];_0x4b412b=_0x4b412b||_0x2ba0c3['isContent'](_0x25eea4);const _0x5a8cb8=_0x4136f1['mapper']['toViewElement'](_0x25eea4);if(_0x5a8cb8&&_0x5a8cb8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x445a8e['type']&&(_0x2ba0c3['isBlock'](_0x25eea4)&&!_0x2ba0c3['isLimit'](_0x25eea4)&&(_0x25eea4['nextSibling']||_0x371c6f['isAtEnd']?_0x32db5b&&_0x32db5b['parent']==_0x25eea4||(_0x32db5b=_0x25eea4,_0x2fc593(_0x445a8e['previousPosition']),_0x5628ee=!0x0):_0x20a83f=_0x20a83f||_0x445a8e['previousPosition']));}function _0x2fc593(_0x2e477a){const _0x5b3230=_0x4136f1['mapper']['toViewPosition'](_0x2e477a),_0x16a382=_0x4136f1['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3d841c});_0x4136f1['writer']['insert'](_0x5b3230,_0x16a382),_0x4136f1['mapper']['bindElementToMarker'](_0x16a382,_0x4d896e['markerName']);}_0x4b412b||_0x5628ee||!_0x20a83f||_0x2fc593(_0x20a83f);};}class _t extends _0x1b8a8d{constructor(_0x372d32){super(_0x372d32);const _0x5f2da3=_0x372d32['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5f2da3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f2da3,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x394b40=this['editor'],_0x437e92=_0x394b40['plugins']['get'](d),_0x46e213=_0x437e92['isReady']?_0x437e92['diff']['newRevisionId']:null;_0x394b40['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x46e213);}['refresh'](){const {isReady:_0x22f9fa,isEnabled:_0xbaa62d,repository:_0x4ec6f3,diff:_0x23db12}=this['editor']['plugins']['get'](d),_0x2cbce7=_0x23db12&&_0x4ec6f3['getLaterVisibleRevision'](_0x23db12['newRevisionId']);this['isEnabled']=_0x22f9fa&&_0xbaa62d&&Boolean(_0x2cbce7);}}class yt extends _0x1b8a8d{['_step'];constructor(_0x4cbf25,{direction:_0x55a0d6}){super(_0x4cbf25);const _0x9913cb=_0x4cbf25['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x55a0d6?0x1:-0x1,this['listenTo'](_0x9913cb,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x9913cb,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x9913cb,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5b6209=this['editor'],_0x165fa2=_0x5b6209['plugins']['get'](d),{isNavigationMode:_0x58408,currentChangeNumber:_0x3aa7d8}=_0x165fa2;let _0x1c91f1;if(_0x165fa2['activeChange']=_0x58408?_0x165fa2['diff']['changes']['get'](_0x3aa7d8+this['_step']):_0x165fa2['diff']['changes']['first'],_0x165fa2['activeChange']['data']['isOnRoot'])_0x1c91f1=_0x5b6209['editing']['view']['getDomRoot'](_0x165fa2['activeChange']['rootName']);else{const _0x37f55c=_0x5b6209['model']['markers']['get']('revision:'+_0x165fa2['activeChange']['id']);_0x1c91f1=_0x1d15f9(_0x5b6209['editing'],_0x37f55c);}_0x246e00({'target':_0x1c91f1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x43a00c,currentChangeNumber:_0x2f0992,numberOfChanges:_0x5b8ee8,isReady:_0x3e6333,isEnabled:_0x7bf7c5}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x7bf7c5&&_0x3e6333&&_0x5b8ee8)&&(!_0x43a00c||(0x1===this['_step']?_0x2f0992<_0x5b8ee8-0x1:_0x2f0992>0x0));}}class _i extends _0x5ca5eb{constructor(_0x4b812e){super(_0x4b812e);const _0x3c7794=this['bindTemplate'],_0x37008b=new _0x2a10f9(_0x4b812e),_0x397b5e=new _0x2a10f9(_0x4b812e);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',(_0x13e908,_0x26e7f1)=>_0x13e908&&_0x26e7f1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3c7333,_0x24cfe9,_0x21ecce,_0x4209e0)=>{if(!_0x3c7333)return m(_0x4b812e,'Loading...');if(!_0x21ecce)return m(_0x4b812e,'No\x20changes');const _0x5456a1=m(_0x4b812e,'NUMBER_OF_CHANGES',_0x21ecce);return _0x4209e0?m(_0x4b812e,'X_OF_Y_CHANGES',[_0x24cfe9+0x1,_0x21ecce]):_0x5456a1;}),_0x37008b['set']({'label':m(_0x4b812e,'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'}),_0x397b5e['set']({'label':m(_0x4b812e,'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'}),_0x37008b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x397b5e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x37008b['on']('execute',()=>this['fire']('execute','backward')),_0x397b5e['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',_0x3c7794['if']('_isStatusLabelVisible','ck-hidden',_0x38f3b0=>!_0x38f3b0)]},'children':[{'text':_0x3c7794['to']('isNavigationMode',_0x57f9b3=>_0x57f9b3?m(_0x4b812e,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4b812e,'Total')+':\x20')}]},{'text':_0x3c7794['to']('_statusText')}]},new _0x1b5db4(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x37008b,_0x397b5e]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x167142{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x7d70ff=this['editor']['editing']['view'];_0x7d70ff['change'](_0x1ddfb3=>{for(const _0x36d843 of _0x7d70ff['document']['roots'])_0x1ddfb3['addClass'](ce,_0x36d843);});}['hide'](){const _0xaba305=this['editor']['editing']['view'];_0xaba305['change'](_0x2e056e=>{for(const _0x494aa9 of _0xaba305['document']['roots'])_0x2e056e['removeClass'](ce,_0x494aa9);});}}class g extends _0x167142{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x22cf22=this['editor'],_0x3cf473=_0x22cf22['plugins']['get'](d),_0x2d2889=_0x22cf22['plugins']['get'](le);_0x22cf22['ui']['componentFactory']['add']('exitToEditing',_0xbba81a=>{const _0x227731=new _0x2a10f9(_0xbba81a);return _0x227731['set']({'label':m(_0xbba81a,'Back\x20to\x20editing'),'icon':_0x385e25['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x227731,'execute',()=>{_0x22cf22['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x227731;}),_0x22cf22['ui']['componentFactory']['add']('restoreRevision',_0x4dc5ac=>{const _0x2ff3b9=new _0x2a10f9(_0x4dc5ac);return _0x2ff3b9['set']({'label':m(_0x4dc5ac,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2ff3b9['bind']('isEnabled')['to'](_0x22cf22['commands']['get']('restoreRevision')),this['listenTo'](_0x2ff3b9,'execute',()=>_0x22cf22['execute']('restoreRevision')),_0x2ff3b9;}),_0x22cf22['ui']['componentFactory']['add']('changesNavigation',_0xe34040=>{const _0x55af1f=new _i(_0xe34040),_0x468efa=_0x22cf22['commands']['get']('showPreviousChange'),_0x505f5a=_0x22cf22['commands']['get']('showNextChange');return _0x55af1f['bind']('isBackwardNavigationEnabled')['to'](_0x468efa,'isEnabled'),_0x55af1f['bind']('isForwardNavigationEnabled')['to'](_0x505f5a,'isEnabled'),_0x55af1f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3cf473),this['listenTo'](_0x55af1f,'execute',(_0x25a250,_0x5ae8d3)=>{_0x22cf22['execute']('forward'===_0x5ae8d3?'showNextChange':'showPreviousChange');}),_0x55af1f;}),_0x2d2889['show'](),_0x3cf473['on']('change:isReady',(_0x21a22d,_0xa0d48f,_0x43b37f)=>{_0x43b37f?_0x2d2889['hide']():_0x2d2889['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x2c999f,_0x4eaf32){super(_0x2c999f,_0x4eaf32);const _0x1ac719=this['bindTemplate'];this['set']({'label':m(_0x2c999f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2c999f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1ac719['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 _0x4ef13f=this['fieldView']['element'];this['_tooltipString']=_0x4ef13f['scrollWidth']>_0x4ef13f['clientWidth']&&_0x4ef13f['value']||'';}}class ti extends _0x5ca5eb{constructor(_0x4da97d,_0x3c9def,_0xf8719b){super(_0x4da97d);const _0x5c6f96=new _0x536c86();_0x5c6f96['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 _0x1cf790=['ck','ck-revision-history-sidebar__revision-author'];_0xf8719b&&_0x1cf790['push']('ck-revision-history-sidebar__revision-author_creator');const _0x357c45=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4da97d,_0xf8719b?'Revision\x20creator':'Revision\x20author')},'children':[_0x5c6f96,_0x3c9def['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1cf790},'children':_0x357c45});}}function ni(_0x189f2b,_0x279d3d){const _0x4093f2=_0x189f2b['bindTemplate'],_0x43f6db=_0x189f2b['locale'],_0x2ed0d1=_0x5549cd(_0x43f6db);_0x2ed0d1['panelPosition']='sw';const _0x21f708=function(_0x557fda,_0x2eba92){const _0x2da422=function(_0x4285b4,_0x3648f4){const _0x124dbf=_0x4285b4['locale'],_0x46a3e5={'Compare\x20against\x20selected':m(_0x124dbf,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x124dbf,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x124dbf,'Restore\x20this\x20revision')};return _0x3648f4['map'](_0x1b47d6=>{const _0x218bbc=_0x46a3e5[_0x1b47d6['name']];return _0x218bbc&&_0x218bbc!==_0x1b47d6['name']&&(_0x1b47d6['name']=_0x218bbc),_0x1b47d6;});}(_0x557fda,_0x2eba92),_0x482dce=new _0x348058();for(const _0x3e36d8 of _0x2da422){const _0x2fe3f4={'type':'button','model':new to({'label':_0x3e36d8['name'],'class':_0x3e36d8['class'],'withText':!0x0,'role':'menuitem','_action':_0x3e36d8['action']})};_0x2fe3f4['model']['bind']('isEnabled')['to'](_0x557fda,'isActionsDropdownOpen',_0x220355=>'function'!=typeof _0x3e36d8['isEnabled']||(!_0x220355||_0x3e36d8['isEnabled'](_0x557fda))),_0x482dce['add'](_0x2fe3f4);}return _0x482dce;}(_0x189f2b,_0x279d3d);return _0x189f2b['bind']('isActionsDropdownOpen')['to'](_0x2ed0d1,'isOpen'),_0x2ed0d1['buttonView']['set']({'label':m(_0x43f6db,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x385e25['threeVerticalDots']}),_0x2ed0d1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4093f2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4093f2['to'](_0x34cc4a=>_0x34cc4a['stopPropagation']())}}),_0x2ed0d1['on']('execute',_0xd005d=>{_0x189f2b['isReady']&&'function'==typeof _0xd005d['source']['_action']&&_0xd005d['source']['_action'](_0x189f2b);}),_0x3ba534(_0x2ed0d1,_0x21f708,{'role':'menu'}),_0x2ed0d1['listenTo'](_0x189f2b,'change:isActionsDropdownOpen',(_0x221865,_0x1c06b9,_0x3eb419)=>{if(_0x3eb419)for(const _0x26a706 of _0x2ed0d1['listView']['items']){const _0x375529=_0x26a706['children']['first'],_0x5e7429=_0x279d3d['find'](_0x18e290=>_0x18e290['action']===_0x375529['_action'])['isVisible'];_0x26a706['isVisible']=void 0x0===_0x5e7429||_0x5e7429(_0x189f2b);}}),_0x2ed0d1;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1448cf(_0x5ca5eb){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x263151,_0x456455,_0x18bf38,_0x3e7910){super(_0x263151);const _0x346660=this['bindTemplate'],_0xc41c60=function(_0x4cb182,_0x164b28){const _0x59552f=Array['from'](_0x164b28['authors'])['filter'](_0x24e5ca=>_0x24e5ca!=_0x164b28['creator']);return _0x164b28['creator']&&_0x59552f['unshift'](_0x164b28['creator']),_0x59552f['map'](_0x4cbd4e=>new ti(_0x4cb182,_0x4cbd4e,_0x4cbd4e==_0x164b28['creator']));}(_0x263151,_0x456455);this['id']=_0x456455['id'],this['_revision']=_0x456455,this['_requireRevisionName']=_0x3e7910,this['bind']('name','createdAt')['to'](_0x456455),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x29d6af=>{return _0x18895f=_0x263151['uiLanguage'],(_0x36023f=_0x29d6af)['toLocaleDateString'](_0x18895f,{'month':'long','day':'numeric'})+',\x20'+_0x36023f['toLocaleTimeString'](_0x18895f,{'hour':'numeric','minute':'numeric'});var _0x18895f,_0x36023f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x263151,_0x59699b),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4bb7a9=>_0x4bb7a9||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x445c58,_0x535938)=>_0x445c58&&_0x535938),this['revisionActionsView']=_0x18bf38&&_0x18bf38['length']?ni(this,_0x18bf38):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x346660['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x346660['if']('isEnabled','ck-disabled',_0x55131e=>!_0x55131e),_0x346660['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x346660['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x346660['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':_0x346660['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':_0xc41c60}]},this['revisionActionsView']],'on':{'click':_0x346660['to'](_0x177771=>{_0x177771['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5cfbef=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5cfbef,'change',()=>{this['_requireRevisionName']&&!_0x5cfbef['value']||this['fire']('setName',{'id':this['id'],'name':_0x5cfbef['value']}),_0x5cfbef['value']||(_0x5cfbef['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(_0x49b307,_0x499fd4){const _0x9b1c21=_0x4e3244['fromJSDate'](_0x49b307)['setLocale'](_0x499fd4),_0xcba3ed=_0x4e3244['local'](),_0x21e02f=_0xcba3ed['minus']({'days':0x1})['startOf']('day');let _0x24338b,_0x41f125;return _0x9b1c21['hasSame'](_0xcba3ed,'day')?(_0x24338b=_0x9b1c21['startOf']('day')['toJSDate'](),_0x41f125=_0x9b1c21['toRelativeCalendar']()):_0x9b1c21['hasSame'](_0x21e02f,'day')?(_0x24338b=_0x21e02f['toJSDate'](),_0x41f125=_0x9b1c21['toRelativeCalendar']()):_0x9b1c21['hasSame'](_0xcba3ed,'week')?(_0x24338b=_0x9b1c21['startOf']('week')['toJSDate'](),_0x41f125=_0x9b1c21['weekdayLong']||''):_0x9b1c21['hasSame'](_0xcba3ed,'year')?(_0x24338b=_0x9b1c21['startOf']('month')['toJSDate'](),_0x41f125=_0x9b1c21['monthLong']||''):(_0x24338b=_0x9b1c21['startOf']('year')['toJSDate'](),_0x41f125=String(_0x9b1c21['year'])),{'startDate':_0x24338b,'localizedPeriodName':_0x41f125};}class mi extends _0x5ca5eb{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x16f2cc,_0x11b35a,_0x4081f7,_0x2e9bae){super(_0x16f2cc);const _0x4a9d81=di(_0x11b35a,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x11b35a,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4081f7,this['_requireRevisionName']=_0x2e9bae,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':_0x4a9d81}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4968a6){const _0x3119bb=new ai(this['locale'],_0x4968a6,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3119bb);}['removeRevision'](_0x378075){const _0x1ef4b0=this['revisionViews']['find'](_0x1a2cab=>_0x1a2cab['id']===_0x378075['id']);this['revisionViews']['remove'](_0x1ef4b0);}}class as extends _0x5ca5eb{constructor(_0x4a60b8){super(_0x4a60b8);const _0x3106dc=new _0x536c86();_0x3106dc['content']=_0x385e25['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3106dc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x4a60b8,'Revision\x20history')]}]});}}class ci extends _0x5ca5eb{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x26ac25,_0x2d04d,_0x3d23f9,_0xd75274){super(_0x26ac25);const _0x2e22a3=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2d04d,this['_revisionActions']=_0x3d23f9,this['_requireRevisionName']=_0xd75274,this['on']('select',(_0x5a47e0,_0x404806)=>{this['fire']('revisionSelected',_0x404806);}),this['on']('setName',(_0x5c76d8,_0x16e81b)=>{this['fire']('revisionSetName',_0x16e81b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x26ac25),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2e22a3['if']('isEnabled','ck-disabled',_0x3f1aee=>!_0x3f1aee)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x21e6d4 of this['_revisions'])this['_addRevision'](_0x21e6d4);this['_revisions']['on']('add',(_0x3231d9,_0x3d21c4)=>{this['_addRevision'](_0x3d21c4);}),this['_revisions']['on']('remove',(_0x2f82a6,_0x4e8e42)=>{this['_removeRevision'](_0x4e8e42);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x177938=>_0x177938['revisionViews']['map'](_0x126d63=>_0x126d63))['flat']();}['selectRevision'](_0x1b57ff){for(const _0x3aca92 of this['revisionViews'])_0x1b57ff&&_0x1b57ff['id']===_0x3aca92['id']?_0x3aca92['select']():_0x3aca92['deselect']();}['highlightRevisions'](_0x3d7588){for(const _0x4abd7b of this['revisionViews'])_0x3d7588['some'](({id:_0x1cdafd})=>_0x1cdafd===_0x4abd7b['id'])?_0x4abd7b['highlight']():_0x4abd7b['unhighlight']();}['_addRevision'](_0x380c46){const _0x317208=di(_0x380c46['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4546cd=this['timePeriodViews']['get'](0x0);_0x4546cd&&_0x4546cd['startDate']['getTime']()===_0x317208['getTime']()||(_0x4546cd=new mi(this['locale'],_0x317208,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4546cd)),_0x4546cd['addRevision'](_0x380c46);}['_removeRevision'](_0x478dda){const _0x48a3e5=di(_0x478dda['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x48a3e5)['removeRevision'](_0x478dda);}['_getTimePeriodViewByStartDate'](_0x42666c){return this['timePeriodViews']['find'](_0x470130=>_0x470130['startDate']['getTime']()===_0x42666c['getTime']());}}class w extends _0x167142{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2022a7,_0x5823a0){super(_0x5823a0),this['sourceElement']=_0x2022a7,this['model']['document']['createRoot']();const _0x40d1e5=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x40d1e5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1a232d,_0x2fffa9){const _0xf6feac=new this(_0x1a232d,_0x2fffa9);return await _0xf6feac['initPlugins'](),await _0xf6feac['ui']['init'](_0x1a232d),await _0xf6feac['data']['init'](_0xf6feac['config']['get']('initialData')||''),_0xf6feac['fire']('ready'),_0xf6feac;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x417e25{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b17a0){function _0x152f70(_0x3d2f44){return _0x3d2f44['map'](_0x4c443f=>String['fromCharCode'](_0x4c443f))['join']('');}super(_0x1b17a0),this['result']='end',_0x1b17a0[_0x152f70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x152f70([0x76,0x69,0x65,0x77])][_0x152f70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x152f70([0x61,0x75,0x74,0x6f]),_0x1b17a0[_0x152f70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x152f70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x152f70([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x152f70([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x152f70([0x6f,0x6b])});}}class k extends _0x417e25{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1cae88){if(super(_0x1cae88),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a09f3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xf75a32=>this['_showRevisionViewer']({..._0xf75a32,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x355fa6=>this['_closeRevisionViewer'](_0x355fa6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x54a4e5=>this['_restoreRevision'](_0x54a4e5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x6dabe7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x6dabe7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x458971){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x458971);}['getRevision'](_0xd19dcf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xd19dcf);}['getRevisions'](_0x3986b3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3986b3||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x47bee7=this['editor'],_0x51508f=_0x1dce46(_0x47bee7,p),_0x471891=_0x47bee7['plugins']['get']('RevisionTracker'),_0x108c5a=_0x47bee7['plugins']['get']('Users')['users'];return _0x51508f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x51508f['lazyRoots'],(_0x51508f['plugins']['push'](Rt,d,g,class extends _0x417e25{static get['requires'](){return[d,'Users'];}['init'](){const _0x37d814=this['editor']['plugins']['get']('Users');for(const _0x3d37a2 of _0x108c5a)_0x3d37a2['isAnonymous']||_0x37d814['getUser'](_0x3d37a2['id'])||_0x37d814['addUser'](_0x3d37a2);const _0x23e824=_0x471891['repository']['getRevisions']();let _0x6c3b1a=null;const _0x4af80b=this['editor']['plugins']['get']('RevisionViewer');_0x4af80b['adapter']=_0x471891['adapter'],_0x4af80b['bind']('isEnabled')['to'](_0x471891),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x47bee7,'isReadOnly',_0x3e2c4a=>!_0x3e2c4a);for(const _0x1c5a90 of _0x23e824){const _0x171cfc=null===_0x1c5a90['creator'];if(_0x171cfc&&_0x1c5a90['toVersion']===_0x1c5a90['fromVersion'])continue;const _0x313c04=_0x1c5a90['toJSON']();_0x4af80b['addRevisionData'](_0x313c04,(_0x512aab,_0x3202bd,_0x334a15)=>{if(_0x171cfc){if(_0x6c3b1a)_0x6c3b1a['_update'](_0x512aab,_0x3202bd);else{if(!_0x3202bd){const _0x4ecb4b=_0x334a15['toJSON']();_0x4ecb4b['id']=_0x2a0190(),_0x471891['saveRevision'](_0x4ecb4b,_0x334a15['toVersion'])['then'](_0x59e84a=>{_0x6c3b1a=_0x59e84a;});}}}else _0x1c5a90['_update'](_0x512aab,_0x3202bd);});}}},w),_0x51508f);}['_enhanceShowRevisionViewerCallback'](){const _0x3daf68=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3154fd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x192424=this['editor']['plugins']['get']('Autosave');await _0x192424['save']();}else await _0x3154fd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x36375a=this['editor']['plugins']['get']('Dialog');_0x36375a['isOpen']&&_0x36375a['hide']();}const _0x1ba7b=this['_getRevisionViewerEditorConfig']();return _0x3daf68(_0x1ba7b)['then'](_0x210452=>{return(this['_viewerEditor']=_0x210452,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x210452;})['catch'](_0x406088=>(console['error'](_0x406088),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x577387=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'](),_0x577387(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2e26c0=this['editor']['plugins']['get']('Annotations');_0x2e26c0['refreshVisibility'](),_0x2e26c0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x38ea38){const _0x112c96=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4493d8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2e8e77=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2e8e77,_0x38ea38)['then'](_0x229da2=>(_0x4493d8['style']['display']='block',_0x112c96['style']['display']='none',_0x229da2));}['_closeRevisionViewer'](_0x511742){const _0x3b2351=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3b2351['style']['display']='',_0x511742['destroy']();}async['_restoreRevision'](_0x118334){const _0x554890=this['editor'],_0x202332=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x37b779=_0x554890['plugins']['get']('RevisionTracker'),_0x2fb782=_0x202332['repository']['getRevision'](_0x118334);let _0x13616b,_0x505d80,_0x5af923;try{_0x13616b=await _0x202332['getRevisionData'](_0x2fb782),_0x505d80=await _0x202332['getRevisionRootsAttributes'](_0x2fb782);}catch(_0x3e238b){return void console['error'](_0x3e238b);}_0x554890['model']['change'](_0x21160f=>{for(const _0x51384a of Array['from'](_0x554890['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x21160f['removeMarker'](_0x51384a);}),_0x202332['isReady']=!0x1,_0x554890['model']['enqueueChange'](_0x2bfc2b=>{_0x2bfc2b['setSelection'](null),_0x2bfc2b['removeSelectionAttribute'](_0x554890['model']['document']['selection']['getAttributeKeys']());const _0x2ff017=Object['keys'](_0x13616b);for(const _0x10df10 of _0x554890['model']['document']['roots'])'$graveyard'!=_0x10df10['rootName']&&_0x10df10['isAttached']()&&!_0x2ff017['includes'](_0x10df10['rootName'])&&_0x2bfc2b['detachRoot'](_0x10df10);for(const _0x45bc40 of _0x2ff017){let _0xde38dd=_0x554890['model']['document']['getRoot'](_0x45bc40);_0xde38dd&&_0xde38dd['isAttached']()||(_0xde38dd=_0x2bfc2b['addRoot'](_0x45bc40));const _0x5b6ff4=_0x505d80[_0x45bc40],_0x110eea=Object['keys'](_0x5b6ff4),_0x59cf98=_0x13616b[_0x45bc40];for(const _0x501574 of _0xde38dd['getAttributeKeys']())_0x110eea['includes'](_0x501574)||_0x2bfc2b['removeAttribute'](_0x501574,_0xde38dd);for(const _0x232abb of _0x110eea)_0x2bfc2b['setAttribute'](_0x232abb,_0x505d80[_0x45bc40][_0x232abb],_0xde38dd);_0x2bfc2b['remove'](_0x2bfc2b['createRangeIn'](_0xde38dd)),_0x2bfc2b['insert'](_0x554890['data']['parse'](_0x59cf98,_0xde38dd),_0xde38dd,0x0);}});const _0x18a392=m(_0x554890['locale'],'Restored');if(_0x2fb782['name'])_0x5af923=-0x1==_0x2fb782['name']['indexOf'](_0x18a392)?_0x18a392+':\x20'+_0x2fb782['name']:_0x2fb782['name'];else _0x5af923=_0x18a392+':\x20'+(_0x2fb782['createdAt']['toLocaleDateString'](_0x554890['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2fb782['createdAt']['toLocaleTimeString'](_0x554890['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x37b779['saveRevision']({'name':_0x5af923}),_0x202332['isReady']=!0x0,_0x554890['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te 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(_0x38eb41){super(_0x38eb41),this['_revisionViewer']=_0x38eb41['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x413148=this['_revisionsRepository']['_revisions'],_0x3daf5f=this['_createRevisionActions'](),_0x563b43=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x413148,_0x3daf5f,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',(_0x2074d4,_0x4b74ec)=>{_0x4b74ec['revisionViews']['on']('add',(_0x3c1922,_0x53ece3)=>{_0x53ece3['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)),_0x563b43['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x293ba4=this['_revisionsRepository']['getRevision'](0x0);if(_0x293ba4){const _0x908597=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x293ba4['id']);this['_revisionViewer']['compare'](_0x293ba4,_0x908597);}}['_handleRevisionSelected'](_0x517200,_0x3fa064){const _0x41573a=this['_revisionsRepository']['getRevision'](_0x3fa064['id']),_0x352529=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x41573a['id']);this['_revisionViewer']['compare'](_0x41573a,_0x352529);}['_handleRevisionSetName'](_0x2170ae,_0xf0a64b){this['_revisionsRepository']['getRevision'](_0xf0a64b['id'])['setName'](_0xf0a64b['name']);}['_handleDiffChange'](_0x2b8aba,_0x3eae31,_0x544eec){const _0xcb5e74=this['_revisionsRepository']['getRevisionsInDiff'](_0x544eec);_0xcb5e74['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xcb5e74),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xcb5e74[0x0]));}['_createRevisionActions'](){const _0x365064=this['editor'],_0x1d2e06=w['availableRevisionActions'],_0x5f0199=_0x365064['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x5f0199['length'])return _0x5f0199['map'](_0x591b0f=>{const _0x5c9d16='string'==typeof _0x591b0f?Object['assign']({},_0x1d2e06[_0x591b0f]):_0x591b0f;return _0x5c9d16['action']=_0x5c9d16['action']['bind'](this,_0x365064),_0x5c9d16['isVisible']&&(_0x5c9d16['isVisible']=_0x5c9d16['isVisible']['bind'](this,_0x365064)),_0x5c9d16;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x12261a},_0x5cfcce)=>{const _0x90e391=_0x12261a['get'](d),_0x44c19e=_0x90e391['repository'];let _0xe3bc4b=_0x90e391['diff']['newRevisionId'],_0x572c4e=_0x5cfcce['id'];_0x44c19e['getIndex'](_0xe3bc4b)>_0x44c19e['getIndex'](_0x572c4e)&&([_0xe3bc4b,_0x572c4e]=[_0x572c4e,_0xe3bc4b]),_0x90e391['compare'](_0xe3bc4b,_0x572c4e);},'isVisible':({plugins:_0x361da3},_0x3de346)=>{const _0x1130ab=_0x361da3['get'](d);return!(_0x1130ab['repository']['getRevisionsInDiff'](_0x1130ab['diff'])['length']>0x2)&&!_0x3de346['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5c80e2,{id:_0x7b4eb1})=>{_0x5c80e2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x7b4eb1);},'isVisible':({plugins:_0x2bd5b0},_0x5ed34d)=>!!_0x2bd5b0['get'](d)['repository']['getLaterVisibleRevision'](_0x5ed34d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x44f1b6},{id:_0x552f6e,revisionNameView:_0x3595bb})=>{const _0x15715b=_0x44f1b6['get'](d),_0x16075b=_0x15715b['repository']['getEarlierVisibleRevision'](_0x552f6e);_0x15715b['compare'](_0x552f6e,_0x16075b),_0x3595bb['focus'](),_0x3595bb['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x18006a,_0x3459f6){super(_0x18006a),this['_view']=_0x3459f6,this['_toolbarConfig']=ot(_0x18006a['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2d3626){const _0x259f64=this['editor'],_0x3c7e63=this['view'],_0x177a59=_0x259f64['editing']['view'],_0x4c0b1c=_0x3c7e63['editable'],_0x533866=_0x177a59['document']['getRoot']();_0x4c0b1c['name']=_0x533866['rootName'],_0x3c7e63['render']();const _0x1373cb=_0x4c0b1c['element'];this['setEditableElement'](_0x4c0b1c['name'],_0x1373cb),_0x3c7e63['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x177a59['attachDomRoot'](_0x1373cb),this['_elementReplacer']['replace'](_0x2d3626,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x276dd4=this['view'],_0x457337=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x457337['detachDomRoot'](_0x276dd4['editable']['name']),_0x276dd4['destroy']();}['_initToolbar'](){const _0x17f899=this['view'];_0x17f899['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x17f899['stickyPanel']['limiterElement']=_0x17f899['element'],_0x17f899['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4941a2})=>_0x4941a2),_0x17f899['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x17f899['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x52bef2,_0x65baf0,_0x100965={}){super(_0x52bef2),this['stickyPanel']=new ut(_0x52bef2),this['toolbar']=new lt(_0x52bef2,{'shouldGroupWhenFull':_0x100965['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x52bef2,_0x65baf0);}['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(_0x16eb02,_0x37808b){super(_0x37808b),this['sourceElement']=_0x16eb02,this['model']['document']['createRoot']();const _0x49fd0f=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x49fd0f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xb86d5c,_0x712d40){const _0x58988a=new this(_0xb86d5c,_0x712d40);return await _0x58988a['initPlugins'](),await _0x58988a['ui']['init'](_0xb86d5c),await _0x58988a['data']['init'](_0x58988a['config']['get']('initialData')||''),_0x58988a['fire']('ready'),_0x58988a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x167142{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4680d0){function _0xd17303(_0x1a3c8e){return _0x1a3c8e['map'](_0x802fa8=>String['fromCharCode'](_0x802fa8))['join']('');}super(_0x4680d0),this['result']='end',_0x4680d0[_0xd17303([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd17303([0x76,0x69,0x65,0x77])][_0xd17303([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd17303([0x61,0x75,0x74,0x6f]),_0x4680d0[_0xd17303([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xd17303([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd17303([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xd17303([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xd17303([0x6f,0x6b])});}}class k extends _0x167142{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1da500){if(super(_0x1da500),!this['editor']['config']['get']('revisionHistory'))throw new _0x4d683e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x29b471=>this['_showRevisionViewer']({..._0x29b471,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x8d43da=>this['_closeRevisionViewer'](_0x8d43da)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2a8f0e=>this['_restoreRevision'](_0x2a8f0e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x464645){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x464645;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x540ab7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x540ab7);}['getRevision'](_0x3061aa){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3061aa);}['getRevisions'](_0x17a48c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x17a48c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x363985=this['editor'],_0x2d2456=_0x5b4d95(_0x363985,p),_0x11b37f=_0x363985['plugins']['get']('RevisionTracker'),_0x4b9e1d=_0x363985['plugins']['get']('Users')['users'];return _0x2d2456['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2d2456['lazyRoots'],(_0x2d2456['plugins']['push'](Rt,d,g,class extends _0x167142{static get['requires'](){return[d,'Users'];}['init'](){const _0x57922d=this['editor']['plugins']['get']('Users');for(const _0x1ab402 of _0x4b9e1d)_0x1ab402['isAnonymous']||_0x57922d['getUser'](_0x1ab402['id'])||_0x57922d['addUser'](_0x1ab402);const _0x2455f7=_0x11b37f['repository']['getRevisions']();let _0x21345f=null;const _0x32e9a4=this['editor']['plugins']['get']('RevisionViewer');_0x32e9a4['adapter']=_0x11b37f['adapter'],_0x32e9a4['bind']('isEnabled')['to'](_0x11b37f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x363985,'isReadOnly',_0x3b1fd7=>!_0x3b1fd7);for(const _0x309c84 of _0x2455f7){const _0x3c3c58=null===_0x309c84['creator'];if(_0x3c3c58&&_0x309c84['toVersion']===_0x309c84['fromVersion'])continue;const _0x44e118=_0x309c84['toJSON']();_0x32e9a4['addRevisionData'](_0x44e118,(_0x247ed5,_0x1dad99,_0x17da88)=>{if(_0x3c3c58){if(_0x21345f)_0x21345f['_update'](_0x247ed5,_0x1dad99);else{if(!_0x1dad99){const _0x4d2639=_0x17da88['toJSON']();_0x4d2639['id']=_0x522a16(),_0x11b37f['saveRevision'](_0x4d2639,_0x17da88['toVersion'])['then'](_0x63b2f4=>{_0x21345f=_0x63b2f4;});}}}else _0x309c84['_update'](_0x247ed5,_0x1dad99);});}}},w),_0x2d2456);}['_enhanceShowRevisionViewerCallback'](){const _0xdeae17=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x21564a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x502c1b=this['editor']['plugins']['get']('Autosave');await _0x502c1b['save']();}else await _0x21564a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x39c46d=this['editor']['plugins']['get']('Dialog');_0x39c46d['isOpen']&&_0x39c46d['hide']();}const _0x2cc4c5=this['_getRevisionViewerEditorConfig']();return _0xdeae17(_0x2cc4c5)['then'](_0x6641b7=>{return(this['_viewerEditor']=_0x6641b7,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x6641b7;})['catch'](_0x4d6476=>(console['error'](_0x4d6476),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1ebfde=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'](),_0x1ebfde(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x23a5e6=this['editor']['plugins']['get']('Annotations');_0x23a5e6['refreshVisibility'](),_0x23a5e6['refreshPositioning']();}})));}['_showRevisionViewer'](_0x129b23){const _0x1ebc15=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5165c7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x533bc5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x533bc5,_0x129b23)['then'](_0x5b836f=>(_0x5165c7['style']['display']='block',_0x1ebc15['style']['display']='none',_0x5b836f));}['_closeRevisionViewer'](_0x1508b7){const _0x4cad3a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4cad3a['style']['display']='',_0x1508b7['destroy']();}async['_restoreRevision'](_0x25bf25){const _0x118536=this['editor'],_0x39b820=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x59aeb3=_0x118536['plugins']['get']('RevisionTracker'),_0x54a537=_0x39b820['repository']['getRevision'](_0x25bf25);let _0x425057,_0x33de9e,_0x22c4e1;try{_0x425057=await _0x39b820['getRevisionData'](_0x54a537),_0x33de9e=await _0x39b820['getRevisionRootsAttributes'](_0x54a537);}catch(_0x53f3e8){return void console['error'](_0x53f3e8);}_0x118536['model']['change'](_0x15c6f8=>{for(const _0x238924 of Array['from'](_0x118536['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x15c6f8['removeMarker'](_0x238924);}),_0x39b820['isReady']=!0x1,_0x118536['model']['enqueueChange'](_0x317e21=>{_0x317e21['setSelection'](null),_0x317e21['removeSelectionAttribute'](_0x118536['model']['document']['selection']['getAttributeKeys']());const _0x2cb7ac=Object['keys'](_0x425057);for(const _0x19d6f0 of _0x118536['model']['document']['roots'])'$graveyard'!=_0x19d6f0['rootName']&&_0x19d6f0['isAttached']()&&!_0x2cb7ac['includes'](_0x19d6f0['rootName'])&&_0x317e21['detachRoot'](_0x19d6f0);for(const _0x30a3e2 of _0x2cb7ac){let _0x2c5a23=_0x118536['model']['document']['getRoot'](_0x30a3e2);_0x2c5a23&&_0x2c5a23['isAttached']()||(_0x2c5a23=_0x317e21['addRoot'](_0x30a3e2));const _0x48e96c=_0x33de9e[_0x30a3e2],_0x1865be=Object['keys'](_0x48e96c),_0x2f1666=_0x425057[_0x30a3e2];for(const _0x362b26 of _0x2c5a23['getAttributeKeys']())_0x1865be['includes'](_0x362b26)||_0x317e21['removeAttribute'](_0x362b26,_0x2c5a23);for(const _0x317325 of _0x1865be)_0x317e21['setAttribute'](_0x317325,_0x33de9e[_0x30a3e2][_0x317325],_0x2c5a23);_0x317e21['remove'](_0x317e21['createRangeIn'](_0x2c5a23)),_0x317e21['insert'](_0x118536['data']['parse'](_0x2f1666,_0x2c5a23),_0x2c5a23,0x0);}});const _0x1b4930=m(_0x118536['locale'],'Restored');if(_0x54a537['name'])_0x22c4e1=-0x1==_0x54a537['name']['indexOf'](_0x1b4930)?_0x1b4930+':\x20'+_0x54a537['name']:_0x54a537['name'];else _0x22c4e1=_0x1b4930+':\x20'+(_0x54a537['createdAt']['toLocaleDateString'](_0x118536['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x54a537['createdAt']['toLocaleTimeString'](_0x118536['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x59aeb3['saveRevision']({'name':_0x22c4e1}),_0x39b820['isReady']=!0x0,_0x118536['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};
|