@ckeditor/ckeditor5-revision-history 44.2.0-alpha.11 → 44.2.0-alpha.12
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
|
-
_0x18d1d6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5e7646){super(),this['id']=_0x5e7646['id']||_0x44825c(),this['creator']=_0x5e7646['creator']||null,this['authors']=_0x5e7646['authors']||[],this['diffData']=_0x5e7646['diffData']||null,this['toVersion']=_0x5e7646['toVersion']||0x0,this['fromVersion']=_0x5e7646['fromVersion']||0x0,this['set']('name',_0x5e7646['name']||''),this['set']('createdAt',_0x5e7646['createdAt']||new Date()),this['set']('attributes',_0x5e7646['attributes']||{});}['setName'](_0x25f782){this['_update']({'name':_0x25f782});}['setAttribute'](_0xfe5880,_0x7d0b3a){const _0x185444=_0x30ebd2(this['attributes']);_0x188a00(_0x185444,_0xfe5880,_0x7d0b3a),this['_update']({'attributes':_0x185444});}['removeAttribute'](_0x49c13a){const _0x306326=_0x30ebd2(this['attributes']);_0x1e1d30(_0x306326,_0x49c13a),this['_update']({'attributes':_0x306326});}['_update'](_0x345173,_0x21c5b8=!0x1){let _0x39bd0a=!0x1;const _0x23dbf={'id':this['id']},_0x52fe47=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x36de96 of _0x52fe47){const _0x5b4005=_0x345173[_0x36de96];void 0x0!==_0x5b4005&&_0x5b4005!==this[_0x36de96]&&(this[_0x36de96]=_0x5b4005,_0x23dbf[_0x36de96]=_0x5b4005,_0x39bd0a=!0x0);}_0x39bd0a&&(_0x23dbf['authors']&&(_0x23dbf['authorsIds']=_0x23dbf['authors']['map'](_0x496173=>_0x496173['id']),delete _0x23dbf['authors']),this['fire']('_update',_0x23dbf,_0x21c5b8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1efe53=>_0x1efe53['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x29e489{['_revisions'];static get['requires'](){return[_0xf4fc7b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x13bf81){super(_0x13bf81),this['_revisions']=new _0x5238b7();}['afterInit'](){!async function(_0xae8842){const _0x364623=_0x43bba4([0x30,0x76,0x56,0x38,0x32,0x47,0x46,0x63,0x4f,0x67,0x36,0x5a,0x66,0x44,0x62,0x73,0x51,0x42,0x43,0x4c,0x71,0x52,0x4d,0x41,0x6b,0x65,0x74,0x33,0x48,0x45,0x54,0x6c,0x4e,0x31,0x50,0x4a,0x37,0x35,0x6f,0x79,0x6d,0x6a,0x34,0x55,0x61,0x70,0x6e,0x59,0x77,0x7a,0x49,0x4b,0x57,0x72,0x69,0x53,0x75,0x68,0x78,0x64,0x39,0x58]),_0x1f6e65=0xeb829,_0x9c0b1b=0x58661761,_0x26ec76=0x586149b1^_0x9c0b1b,_0x14d19f=window[_0x43bba4([0x44,0x61,0x74,0x65])][_0x43bba4([0x6e,0x6f,0x77])](),_0x47b656=_0xae8842[_0x43bba4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x241d45=new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49156d=>{_0x47b656[_0x43bba4([0x6f,0x6e,0x63,0x65])](_0x43bba4([0x72,0x65,0x61,0x64,0x79]),_0x49156d);}),_0x4cd799={[_0x43bba4([0x6b,0x74,0x79])]:_0x43bba4([0x45,0x43]),[_0x43bba4([0x75,0x73,0x65])]:_0x43bba4([0x73,0x69,0x67]),[_0x43bba4([0x63,0x72,0x76])]:_0x43bba4([0x50,0x2d,0x32,0x35,0x36]),[_0x43bba4([0x78])]:_0x43bba4([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]),[_0x43bba4([0x79])]:_0x43bba4([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]),[_0x43bba4([0x61,0x6c,0x67])]:_0x43bba4([0x45,0x53,0x32,0x35,0x36])},_0x1c31ce=_0x47b656[_0x43bba4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43bba4([0x67,0x65,0x74])](_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47fc7b(){let _0x15a298,_0x3198af=null,_0x3ef175=null;try{if(_0x1c31ce==_0x43bba4([0x47,0x50,0x4c]))return _0x43bba4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15a298=_0x15d51c(),!_0x15a298)return _0x43bba4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15a298[_0x43bba4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ef175=_0x4584ab(_0x15a298[_0x43bba4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15a298[_0x43bba4([0x6a,0x74,0x69])])),await _0x370776()?_0xeb7b9f()?_0x462a27()?_0x43bba4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e92e0()?(_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43bba4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3198af=_0x3b7c94(_0x43bba4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43bba4([0x74,0x72,0x69,0x61,0x6c])&&(_0x3198af=_0x3b7c94(_0x43bba4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10cc29()):_0x43bba4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43bba4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43bba4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x69aa60){return _0x43bba4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x462a27(){const _0x14a7ea=[_0x43bba4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43bba4([0x74,0x72,0x69,0x61,0x6c])][_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14d19f/0x3e8:0xe10*_0x26ec76;return _0x15a298[_0x43bba4([0x65,0x78,0x70])]<_0x14a7ea;}function _0xeb7b9f(){const _0x3da541=_0x15a298[_0x43bba4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3da541)return!0x1;if(_0x3da541[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x2a])))return!0x0;if(_0x3da541[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x52,0x48])))return!0x0;if(_0x3da541[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x52,0x52,0x48]))){if(_0x192a4e())return!0x0;if(_0xef2ba3()||_0x1d3d4c())return!0x0;}return!0x1;}function _0x3e92e0(){const _0x3683d9=_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3683d9||0x0==_0x3683d9[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a6d28}=new URL(window[_0x43bba4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3683d9[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a6d28))return!0x0;const _0x3bdede=_0x3a6d28[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e]));return _0x3683d9[_0x43bba4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x314a8c=>_0x314a8c[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x2a])))[_0x43bba4([0x6d,0x61,0x70])](_0xdd344a=>_0xdd344a[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e])))[_0x43bba4([0x73,0x6f,0x6d,0x65])](_0x55431f=>_0x3bdede[_0x43bba4([0x65,0x76,0x65,0x72,0x79])]((_0x467afb,_0x4b82ee)=>_0x55431f[_0x4b82ee]===_0x467afb||_0x55431f[_0x4b82ee]===_0x43bba4([0x2a])));}function _0x10cc29(){return _0x3198af&&_0x3ef175?new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9b31,_0x399494)=>{_0x3198af[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x5b9b31,_0x399494),_0x3ef175[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x440c0a=>{_0x440c0a!=_0x43bba4([0x56,0x61,0x6c,0x69,0x64])&&_0x5b9b31(_0x440c0a);},_0x399494);}):_0x3198af||_0x3ef175||_0x43bba4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4584ab(_0x2c5be2,_0x1915d7){return new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x213e7f=>{if(_0x44073e())return _0x213e7f(_0x43bba4([0x56,0x61,0x6c,0x69,0x64]));_0x3f19d2(),_0x47b656[_0x43bba4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43bba4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f384c=!0x1;const _0x2b1487=_0x44825c();function _0x19158f(_0x15be9e){return!!_0x15be9e&&(typeof _0x15be9e===_0x43bba4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15be9e===_0x43bba4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15be9e[_0x43bba4([0x74,0x68,0x65,0x6e])]===_0x43bba4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15be9e[_0x43bba4([0x63,0x61,0x74,0x63,0x68])]===_0x43bba4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5da086(_0x1e0ea1){_0xf586ed(_0x1e0ea1)[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x196321=>{if(!_0x196321||_0x196321[_0x43bba4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43bba4([0x6f,0x6b]))return _0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48d9e7(_0x5d1b7d(_0x2b1487+_0x1915d7))!=_0x196321[_0x43bba4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43bba4([0x56,0x61,0x6c,0x69,0x64]);})[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x364cef=>(_0x255764(),_0x364cef),()=>{const _0x52e97b=_0x24229();return null==_0x52e97b?(_0x255764(),_0x43bba4([0x56,0x61,0x6c,0x69,0x64])):_0x43bba4(_0x14d19f-_0x52e97b>(0x7c6a9361^_0x9c0b1b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x213e7f)[_0x43bba4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x213e7f(_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e5933=0x5850f9e1^_0x9c0b1b;function _0x255764(){const _0x123e11=_0x43bba4([0x6c,0x6c,0x63,0x74,0x2d])+_0x48d9e7(_0x5d1b7d(_0x2c5be2)),_0x471675=_0x35a900(_0x48d9e7(window[_0x43bba4([0x4d,0x61,0x74,0x68])][_0x43bba4([0x63,0x65,0x69,0x6c])](_0x14d19f/_0x1e5933)));window[_0x43bba4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43bba4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x123e11,_0x471675);}function _0x24229(){const _0x3ac9a9=_0x43bba4([0x6c,0x6c,0x63,0x74,0x2d])+_0x48d9e7(_0x5d1b7d(_0x2c5be2)),_0x2b8b51=window[_0x43bba4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43bba4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ac9a9);return _0x2b8b51?window[_0x43bba4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35a900(_0x2b8b51),0x10)*_0x1e5933:null;}function _0xf586ed(_0x17e085){return new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3276fd,_0x5945ec)=>{_0x17e085[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x3276fd,_0x5945ec),window[_0x43bba4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5945ec,0x5867c3a1^_0x9c0b1b);});}}_0x47b656[_0x43bba4([0x6f,0x6e])](_0x43bba4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x401e94,_0xf2960)=>{if(_0xf2960[0x0]!=_0x2c5be2)return _0x213e7f(_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf2960[0x1]={..._0xf2960[0x1],[_0x43bba4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b1487};},{[_0x43bba4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43bba4([0x68,0x69,0x67,0x68])}),_0x47b656[_0x43bba4([0x6f,0x6e])](_0x43bba4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2117e1=>{_0x19158f(_0x2117e1[_0x43bba4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f384c=!0x0,_0x5da086(_0x2117e1[_0x43bba4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43bba4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43bba4([0x6c,0x6f,0x77])}),_0x241d45[_0x43bba4([0x74,0x68,0x65,0x6e])](()=>{_0x3f384c||_0x213e7f(_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44073e(){return _0x47b656[_0x43bba4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43bba4([0x76,0x69,0x65,0x77])][_0x43bba4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43bba4([0x61,0x75,0x74,0x6f]);}function _0x3f19d2(){_0x47b656[_0x43bba4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43bba4([0x76,0x69,0x65,0x77])][_0x43bba4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43bba4([0x61,0x75,0x74,0x6f]);}}function _0x3b7c94(_0x3aac4a){const _0x27c67d=[new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134429=>setTimeout(_0x134429,0x586f29ad^_0x9c0b1b)),_0x241d45[_0x43bba4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7bf4=>{const _0x13db83=0x58661766^_0x9c0b1b,_0x1d8047=_0xae8842[_0x43bba4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5d6279(){_0x1d8047[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x13db83&&_0x1e7bf4();}_0x5d6279(),_0x1d8047[_0x43bba4([0x6f,0x6e])](_0x43bba4([0x61,0x64,0x64]),_0x5d6279);})),new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38092b=>{function _0x498cfe(){for(const _0x3bceee in window)if(window[_0x43bba4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x43bba4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3bceee))&&window[_0x3bceee]==_0x1f6e65)return _0x38092b();_0x47b656[_0x43bba4([0x73,0x74,0x61,0x74,0x65])]!=_0x43bba4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x43bba4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x498cfe,0x586604e9^_0x9c0b1b);}_0x27379a(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x498cfe();})];return window[_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43bba4([0x72,0x61,0x63,0x65])](_0x27c67d)[_0x43bba4([0x74,0x68,0x65,0x6e])](()=>_0x3aac4a);}async function _0x2281a9(){if(await _0x241d45,_0x27379a(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3aae00=_0xae8842[_0x43bba4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x370e78=_0xae8842[_0x43bba4([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])](_0x3aae00[_0x43bba4([0x69,0x64])]),_0x2afcba=_0x1db485(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2afcba[_0x43bba4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3aae00['id'],_0x370e78?_0x370e78['id']:null,!0x0),_0x2afcba[_0x43bba4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2afcba[_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2afcba[_0x43bba4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3feb2f,void(_0x2afcba[_0x43bba4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3feb2f);}if(_0x27379a(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5e1f85=_0x1db485(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5e1f85[_0x43bba4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5e1f85[_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5e1f85[_0x43bba4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3feb2f,_0x5e1f85[_0x43bba4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3feb2f;}_0x47b656[_0x43bba4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43bba4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3feb2f,_0x47b656[_0x43bba4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43bba4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3feb2f,_0x47b656[_0x43bba4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43bba4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x192a4e(){return _0x27379a(_0x43bba4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1db485(_0x43bba4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x43bba4([0x73,0x74,0x61,0x74,0x65])]==_0x43bba4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xef2ba3(){return _0x27379a(_0x43bba4([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 _0x1d3d4c(){return _0x27379a(_0x43bba4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5b4272(_0x5e83c5){const _0x5d5f67=_0x1b6fa8();_0x47b656[_0x5d5f67]=_0x43bba4([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])+_0x5e83c5,_0x5e83c5[_0x43bba4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x43bba4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1b6fa8()]=_0x1f6e65),_0x5e83c5!=_0x43bba4([0x56,0x61,0x6c,0x69,0x64])&&_0x2281a9();}function _0x1b6fa8(){const _0x237c02=window[_0x43bba4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43bba4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43bba4([0x6e,0x6f,0x77])]())[_0x43bba4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43bba4([0x2e]),'');let _0x206a20=_0x43bba4([0x76]);for(let _0x1b499f=0x0;_0x1b499f<_0x237c02[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b499f+=0x2){let _0x421e63=window[_0x43bba4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x237c02[_0x43bba4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b499f,_0x1b499f+0x2));_0x421e63>=_0x364623[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x421e63-=_0x364623[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x206a20+=_0x364623[_0x421e63];}return _0x206a20;}function _0x15d51c(){const _0x2abdbd=_0x1c31ce[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e]));if(0x3!=_0x2abdbd[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fb190(_0x2abdbd[0x1]);function _0x4fb190(_0x37d6bd){const _0x374e94=_0xe911a5(_0x37d6bd);return _0x374e94&&_0x245fb4()?_0x374e94:null;function _0x245fb4(){const _0x50f686=_0x374e94[_0x43bba4([0x6a,0x74,0x69])],_0x14ea02=window[_0x43bba4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50f686[_0x43bba4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50f686[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d8edd={..._0x374e94,[_0x43bba4([0x6a,0x74,0x69])]:_0x50f686[_0x43bba4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50f686[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d8edd[_0x43bba4([0x76,0x63])],_0x5d1b7d(_0x2d8edd)==_0x14ea02;}}}async function _0x370776(){let _0x175ec9=!0x0;try{const _0x1551ca=_0x1c31ce[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e])),[_0x19a121,_0x4dec62,_0x363a57]=_0x1551ca;return _0x63186c(_0x19a121),await _0x2459cc(_0x19a121,_0x4dec62,_0x363a57),_0x175ec9;}catch(_0x57af9a){return!0x1;}function _0x63186c(_0x24c14a){const _0x2dbc83=_0xe911a5(_0x24c14a);_0x2dbc83&&_0x2dbc83[_0x43bba4([0x61,0x6c,0x67])]==_0x43bba4([0x45,0x53,0x32,0x35,0x36])||(_0x175ec9=!0x1);}async function _0x2459cc(_0x231c98,_0x308294,_0x35f852){const _0x745be6=window[_0x43bba4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43bba4([0x66,0x72,0x6f,0x6d])](_0xfebe14(_0x35f852),_0x2f6cfe=>_0x2f6cfe[_0x43bba4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe69a24=new window[(_0x43bba4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43bba4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x231c98+_0x43bba4([0x2e])+_0x308294),_0x59be68=window[_0x43bba4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43bba4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59be68)return;const _0x2bfab3=await _0x59be68[_0x43bba4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43bba4([0x6a,0x77,0x6b]),_0x4cd799,{[_0x43bba4([0x6e,0x61,0x6d,0x65])]:_0x43bba4([0x45,0x43,0x44,0x53,0x41]),[_0x43bba4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43bba4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43bba4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59be68[_0x43bba4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43bba4([0x6e,0x61,0x6d,0x65])]:_0x43bba4([0x45,0x43,0x44,0x53,0x41]),[_0x43bba4([0x68,0x61,0x73,0x68])]:{[_0x43bba4([0x6e,0x61,0x6d,0x65])]:_0x43bba4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2bfab3,_0x745be6,_0xe69a24)||(_0x175ec9=!0x1);}}function _0xe911a5(_0x3a6735){return _0x3a6735[_0x43bba4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43bba4([0x65,0x79]))?JSON[_0x43bba4([0x70,0x61,0x72,0x73,0x65])](_0xfebe14(_0x3a6735)):null;}function _0xfebe14(_0x5374a9){return window[_0x43bba4([0x61,0x74,0x6f,0x62])](_0x5374a9[_0x43bba4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43bba4([0x2b]))[_0x43bba4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43bba4([0x2f])));}function _0x5d1b7d(_0x3c2c68){let _0x528a6c=0x1505;function _0x5e2156(_0x58ce86){for(let _0x4809f2=0x0;_0x4809f2<_0x58ce86[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4809f2++){const _0x1fb45b=_0x58ce86[_0x43bba4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4809f2);_0x528a6c=(_0x528a6c<<0x5)+_0x528a6c+_0x1fb45b,_0x528a6c&=_0x528a6c;}}function _0x5b2849(_0x5f4b6c){Array[_0x43bba4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f4b6c)?_0x5f4b6c[_0x43bba4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b2849):_0x5f4b6c&&typeof _0x5f4b6c==_0x43bba4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43bba4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f4b6c)[_0x43bba4([0x73,0x6f,0x72,0x74])]()[_0x43bba4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55ad75,_0x1207a2])=>{_0x5e2156(_0x55ad75),_0x5b2849(_0x1207a2);}):_0x5e2156(window[_0x43bba4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f4b6c));}return _0x5b2849(_0x3c2c68),_0x528a6c>>>0x0;}function _0x48d9e7(_0x3a35aa){return _0x3a35aa[_0x43bba4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43bba4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43bba4([0x30]));}function _0x35a900(_0x390bfe){return _0x390bfe[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43bba4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43bba4([0x6a,0x6f,0x69,0x6e])]('');}function _0x27379a(_0x3f4278){return _0x47b656[_0x43bba4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43bba4([0x68,0x61,0x73])](_0x3f4278);}function _0x1db485(_0x37a4e9){return _0x47b656[_0x43bba4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43bba4([0x67,0x65,0x74])](_0x37a4e9);}function _0x3feb2f(){}function _0x43bba4(_0x349ff7){return _0x349ff7['map'](_0x5a53fd=>String['fromCharCode'](_0x5a53fd))['join']('');}_0x5b4272(await _0x47fc7b());}(this);}['createRevision'](_0x3a9c71){const _0x274023=this['editor']['plugins']['get']('Users');return new a({'id':_0x3a9c71['id'],'name':_0x3a9c71['name'],'creator':_0x3a9c71['creatorId']?_0x274023['getUser'](_0x3a9c71['creatorId']):null,'diffData':_0x3a9c71['diffData']||_0x3a9c71['data'],'authors':_0x3a9c71['authorsIds']['map'](_0x203091=>_0x274023['getUser'](_0x203091)),'createdAt':new Date(_0x3a9c71['createdAt']),'attributes':_0x3a9c71['attributes'],'fromVersion':_0x3a9c71['fromVersion'],'toVersion':_0x3a9c71['toVersion']});}['addRevision'](_0x50eca2,_0x4dc049=0x0){this['_revisions']['add'](_0x50eca2,_0x4dc049);}['getRevision'](_0x53bbcd){return this['_revisions']['get'](_0x53bbcd);}['getRevisions'](_0x535c0a={'toJSON':!0x1}){const _0x56b47a=Array['from'](this['_revisions']);return _0x56b47a['reverse'](),_0x535c0a['toJSON']?_0x56b47a['map'](_0x4e23a7=>_0x4e23a7['toJSON']()):_0x56b47a;}['getIndex'](_0x5885ed){return this['_revisions']['getIndex'](_0x5885ed);}['getEarlierVisibleRevision'](_0x4530e5){const [,_0xe5e168]=this['getRevisionsIterator'](_0x4530e5,{'direction':'earlier'});return _0xe5e168;}['getLaterVisibleRevision'](_0x19558b){const [,_0x38e615]=this['getRevisionsIterator'](_0x19558b,{'direction':'later'});return _0x38e615;}['getRevisionsInDiff'](_0x419d18){const _0x5b48a7=[];for(const _0x147ca5 of this['getRevisionsIterator'](_0x419d18['newRevisionId']))if(_0x5b48a7['push'](_0x147ca5),_0x147ca5['id']===_0x419d18['oldRevisionId'])break;return _0x5b48a7;}*['getRevisionsIterator'](_0xbe067c,{direction:_0x554828='earlier',filter:_0x4d0af2=()=>!0x0}={}){const _0x380e2a='earlier'===_0x554828?0x1:-0x1;let _0x328175=this['_revisions']['get'](_0xbe067c),_0x3aa058=this['getIndex'](_0x328175);for(yield _0x328175;_0x328175;){if(_0x3aa058+=_0x380e2a,_0x328175=this['getRevision'](_0x3aa058),!_0x328175)return;_0x4d0af2(_0x328175)&&(yield _0x328175);}}}function m(_0x5340cb,_0x19ed95,_0x253588){const t=_0x5340cb['t'];switch(_0x19ed95){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'},_0x253588);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x253588);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':_0x8712c5,'a':_0x1a7a3c,'e':_0x1fd110,'r':_0x53e239,'u':_0x49a806};class l extends _0x29e489{['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[_0xf4fc7b,j,_0x26a976];}constructor(_0x447868){super(_0x447868),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 _0x31a8f0=_0x44825c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x31a8f0},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 _0xd86036=this['repository']['getRevision'](0x0),_0x207457=_0xd86036&&null===_0xd86036['creator']?_0xd86036:null;if(this['_continueCurrentRevision']=!!_0x207457&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x53b4e9=this['_source']['getCurrentRevisionId'](),_0x45b054=this['repository']['getRevision'](_0x53b4e9);if(_0x45b054)this['_startingVersion']=_0x45b054['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5bb69c=this['_source']['history']['_operations']['find'](_0x172ec0=>!_0x172ec0['_isInit']),_0x337ee9=_0x5bb69c?_0x5bb69c['baseVersion']:this['_source']['history']['version'];_0xd86036?(_0xd86036['toVersion']<_0x337ee9&&_0xd86036['_update']({'toVersion':_0x337ee9}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x207457['id'],this['_startingVersion']=_0x207457['fromVersion']):(this['_startingVersion']=_0xd86036['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x337ee9,this['_continueCurrentRevision']=!0x1);}}else _0x207457&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x207457['toVersion'],this['editor']['model']['document']['history']['version']),_0x207457['fromVersion']===_0x207457['toVersion']?(0x0!==_0x207457['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x207457['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x207457['id'],this['_startingVersion']=_0x207457['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',_0x207e8e=>!_0x207e8e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x515cec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ad71f;for(const _0x22308d in _0x515cec){const _0x44c6c2=_0x22308d,_0x490b28=_0x515cec[_0x44c6c2];if('revisionHistoryLicenseKeyValid'==_0x490b28||'revisionHistoryLicenseKeyInvalid'==_0x490b28||'revisionHistoryLicenseKeyExpired'==_0x490b28||'revisionHistoryLicenseKeyDomainLimit'==_0x490b28||'revisionHistoryLicenseKeyNotAllowed'==_0x490b28||'revisionHistoryLicenseKeyEvaluationLimit'==_0x490b28||'revisionHistoryLicenseKeyTrialLimit'==_0x490b28||'revisionHistoryLicenseKeyUsageLimit'==_0x490b28){delete _0x515cec[_0x44c6c2],_0x3ad71f=_0x490b28,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3ad71f&&_0x515cec['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3ad71f&&_0x515cec['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3ad71f&&_0x515cec['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x207dfd=this['repository']['getRevision'](0x0),_0x400abd=await this['getRevisionDocumentData'](_0x207dfd),_0x231cc9=await this['getRevisionRootsAttributes'](_0x207dfd);this['_replaceEditorDataWithRevisionData'](_0x400abd,_0x231cc9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5f09cf){this['_source']=_0x5f09cf;}async['update'](){const _0x41adc3=await this['_source']['getLatestVersion']();if(_0x41adc3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x20d2de=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x41adc3});_0x20d2de['authors']=_0x20d2de['authorsIds']['map'](_0x33a4b2=>this['editor']['plugins']['get']('Users')['getUser'](_0x33a4b2)),this['currentRevision']['_update'](_0x20d2de);}}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'](_0xa51658={},_0x11e3c5=null){const _0x4bd0e0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x11e3c5>this['currentRevision']['toVersion']&&(_0x11e3c5=null),null===_0x11e3c5&&(_0x11e3c5=await this['_source']['getLatestVersion']());const _0x1c22d9=this['_getFromVersion'](_0x11e3c5),_0x536c1a=this['buildRevisionData']({'from':_0x1c22d9,'to':_0x11e3c5});if(this['currentRevision']['toVersion']<_0x11e3c5){const _0x40220f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x11e3c5,'to':_0x11e3c5});_0x40220f['authors']=[],_0x40220f['authorsIds']=[],_0x40220f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x40220f,!0x0),delete _0x40220f['authors'],_0x4bd0e0['push'](_0x40220f);}_0xa51658['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xa51658['name']=_0xa51658['name']||null,_0xa51658['id']=_0xa51658['id']||_0x44825c(),_0xa51658={..._0xa51658,..._0x536c1a};const _0x43634f=this['addRevisionData'](_0xa51658);_0x4bd0e0['push'](_0xa51658);const _0x1ef769=this['repository']['getIndex'](_0x43634f);if(0x0!==_0x1ef769){const _0x1098fd=this['repository']['getRevision'](_0x1ef769-0x1);if(_0x1098fd['fromVersion']!==_0x11e3c5){const _0x3cb4cc=this['_revisionDataBuilder']['getData'](_0x11e3c5,_0x1098fd['toVersion']),_0x57e87d={'id':_0x1098fd['id'],'diffData':_0x3cb4cc['diffData'],'authorsIds':_0x3cb4cc['authorsIds'],'authors':_0x3cb4cc['authorsIds']['map'](_0x5e0d47=>this['editor']['plugins']['get']('Users')['getUser'](_0x5e0d47)),'fromVersion':_0x11e3c5};_0x1098fd===this['currentRevision']&&(_0x57e87d['createdAt']=new Date(_0xa51658['createdAt']['getTime']()+0xa)),_0x1098fd['_update'](_0x57e87d,!0x0),delete _0x57e87d['authors'],_0x4bd0e0['push'](_0x57e87d);}}if(this['adapter']){for(const _0x1135ce of _0x4bd0e0)this['_bufferUpdate'](_0x1135ce['id'],_0x1135ce,!0x0);this['sendBufferedUpdates']();}return _0x43634f;}['addRevisionData'](_0x4aa765){const _0x270d23=this['repository']['createRevision'](_0x4aa765);return this['adapter']&&_0x270d23['on']('_update',(_0x5d933a,_0x1a2e78,_0x16607c)=>{_0x16607c||(this['_bufferUpdate'](_0x1a2e78['id'],_0x1a2e78,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x270d23,this['_findInsertionIndex'](_0x270d23)),_0x270d23;}async['getRevisionDocumentData'](_0x54f3d7){await this['_loadRevisionData'](_0x54f3d7);const _0x3932b6={};for(const _0x3bd651 in _0x54f3d7['diffData']){if(_0x54f3d7['diffData'][_0x3bd651]['attachChange']&&!_0x54f3d7['diffData'][_0x3bd651]['attachChange']['isAttached'])continue;const _0x59bc38=this['_removeRevisionMarkers'](JSON['parse'](_0x54f3d7['diffData'][_0x3bd651]['insertions'])),_0x5caf1d=this['editor']['editing']['view']['document'],_0x5c63a2=new _0x1716b3(_0x5caf1d,_0x59bc38['map'](_0x248e3c=>C(_0x248e3c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3932b6[_0x3bd651]=this['editor']['data']['processor']['toData'](_0x5c63a2),this['editor']['data']['processor']['useFillerType']('default');}return _0x3932b6;}async['getRevisionRootsAttributes'](_0x178eda){await this['_loadRevisionData'](_0x178eda);const _0x17fc6e={};for(const _0x37fcf3 in _0x178eda['diffData'])_0x178eda['diffData'][_0x37fcf3]['attachChange']&&!_0x178eda['diffData'][_0x37fcf3]['attachChange']['isAttached']||(_0x17fc6e[_0x37fcf3]=_0x178eda['diffData'][_0x37fcf3]['attributesAfter']||{});return _0x17fc6e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x131e22=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x17f79b=0x0;_0x17f79b<_0x131e22['length'];_0x17f79b++){const _0x485c6e=_0x131e22[_0x17f79b];let _0x16bd27=!0x1;for(const _0x4ce64e of Object['keys'](_0x485c6e))void 0x0===_0x485c6e[_0x4ce64e]?delete _0x485c6e[_0x4ce64e]:'id'!==_0x4ce64e&&(_0x16bd27=!0x0);_0x16bd27||(_0x131e22[_0x17f79b]=null);}if(_0x131e22=_0x131e22['filter'](_0x555ed8=>null!==_0x555ed8),!_0x131e22['length'])return;for(let _0x5dde8e=0x0;_0x5dde8e<_0x131e22['length'];_0x5dde8e++){const _0x29dec7=_0x131e22[_0x5dde8e];void 0x0!==_0x29dec7['fromVersion']&&void 0x0===_0x29dec7['toVersion']&&(_0x29dec7['toVersion']=this['repository']['getRevision'](_0x29dec7['id'])['toVersion']),void 0x0!==_0x29dec7['toVersion']&&void 0x0===_0x29dec7['fromVersion']&&(_0x29dec7['fromVersion']=this['repository']['getRevision'](_0x29dec7['id'])['fromVersion']);}const _0x4380c2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x131e22,_0x4380c2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x163373=>{if(_0x163373){for(const _0x2ab991 of _0x163373)this['setRevisionData']({'id':_0x2ab991['id'],'createdAt':_0x2ab991['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x375336,_0x102257){let _0x32e796=this['editor']['config']['get']('initialData'),_0x330e60=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x32e796){_0x32e796={};for(const _0x5ae272 of this['editor']['model']['document']['getRootNames']())_0x32e796[_0x5ae272]='';}if('string'==typeof _0x32e796&&(_0x32e796={'main':_0x32e796}),void 0x0===_0x330e60){_0x330e60={};for(const _0x324732 of this['editor']['model']['document']['getRootNames']())_0x330e60[_0x324732]={};}let _0x19ad28=!0x1;const _0x2bde09=Object['keys'](_0x32e796),_0x1ace16=Object['keys'](_0x375336);for(const _0x5bb8b5 of _0x2bde09){if(_0x32e796[_0x5bb8b5]!==_0x375336[_0x5bb8b5]&&''!==_0x32e796[_0x5bb8b5]['trim']()){_0x19ad28=!0x0;break;}if(!_0x3f09a7(_0x330e60[_0x5bb8b5],_0x102257[_0x5bb8b5])&&Object['keys'](_0x330e60[_0x5bb8b5])['length']>0x0){_0x19ad28=!0x0;break;}}_0x19ad28||(_0x19ad28=_0x1ace16['some'](_0x424ba7=>!this['editor']['model']['document']['getRoot'](_0x424ba7))),_0x19ad28&&_0x1b29aa('editor-initial-data-replaced-with-revision-data',{'editorData':_0x32e796,'editorRootsAttributes':_0x330e60,'revisionData':_0x375336,'revisionRootsAttributes':_0x102257}),this['editor']['config']['set']('initialData',_0x375336),this['editor']['config']['set']('rootsAttributes',_0x102257);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x61889b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x61889b['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x611e2f){const _0x373a03=this['repository']['getRevisions']();_0x373a03['reverse']();let _0x2106c9=0x0;for(;_0x2106c9<_0x373a03['length'];){const _0x527aef=_0x373a03[_0x2106c9];if(_0x527aef===this['currentRevision']){_0x2106c9++;continue;}if(_0x527aef['id']===this['_initialRevisionId'])break;const _0x5a72db=_0x611e2f['toVersion']-_0x527aef['toVersion']||_0x611e2f['fromVersion']-_0x527aef['fromVersion'];if(_0x5a72db>0x0)break;if(_0x5a72db<0x0)_0x2106c9++;else{if(!_0x611e2f['creator']&&_0x527aef['creator'])break;if(_0x527aef['creator']||!_0x611e2f['creator']){if(_0x611e2f['createdAt']>_0x527aef['createdAt'])break;_0x2106c9++;}else _0x2106c9++;}}return _0x2106c9;}['setRevisionData'](_0x18602f){const _0x1e577b=this['repository']['getRevision'](_0x18602f['id']);if(_0x18602f['createdAt']&&(_0x18602f['createdAt']=new Date(_0x18602f['createdAt'])),_0x18602f['authorsIds']){const _0x25a407=this['editor']['plugins']['get']('Users');_0x18602f['authors']=_0x18602f['authorsIds']['map'](_0x5d65c6=>_0x25a407['getUser'](_0x5d65c6));}_0x1e577b['_update'](_0x18602f,!0x0);}['buildRevisionData']({revision:_0x4d15b9=null,from:_0x3d9047=null,to:_0x190a26=null}){_0x3d9047=null!==_0x3d9047?_0x3d9047:_0x4d15b9['fromVersion'],_0x190a26=null!==_0x190a26?_0x190a26:_0x4d15b9['toVersion'];const _0x2d8e03=this['_revisionDataBuilder']['getData'](_0x3d9047,_0x190a26),_0x4a3c31={'diffData':_0x2d8e03['diffData'],'authorsIds':_0x2d8e03['authorsIds'],'fromVersion':_0x3d9047,'toVersion':_0x190a26};if(!_0x4d15b9||_0x190a26!==_0x4d15b9['toVersion']){const _0x2ea98e=_0x190a26-0x1,_0x3d9016=this['_source']['history']['getOperation'](_0x2ea98e);_0x4a3c31['createdAt']=_0x3d9016&&_0x3d9016['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3d9047===this['_loadedStateData']['fromVersion']){for(const _0x3b544e of this['_loadedStateData']['authors'])_0x4a3c31['authorsIds']['includes'](_0x3b544e['id'])||_0x4a3c31['authorsIds']['push'](_0x3b544e['id']);}return _0x4a3c31;}['_loadRevisionData'](_0x3e392a){if(!_0x3e392a||_0x3e392a['diffData'])return Promise['resolve']();{const _0x18efb6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x18efb6,'revisionId':_0x3e392a['id']})['then'](_0x37293d=>{_0x3e392a['diffData']=_0x37293d['diffData'];});}}['_bufferUpdate'](_0x31c500,_0x3c8130,_0x3c5f86){if(this['_bufferedUpdates']['has'](_0x31c500)){const _0x519858=this['_bufferedUpdates']['get'](_0x31c500);_0x3c8130=_0x3c5f86?{..._0x519858,..._0x3c8130}:{..._0x3c8130,..._0x519858};}this['_bufferedUpdates']['set'](_0x31c500,_0x3c8130);}['_getFromVersion'](_0x1913c6){const _0x382012=this['repository']['getRevisions']();_0x382012['reverse'](),_0x382012['shift']();const _0xdc5bd8=_0x382012['find'](_0x5a2d24=>_0x5a2d24['toVersion']<=_0x1913c6)['toVersion'];return _0xdc5bd8<this['_startingVersion']?this['_startingVersion']:_0xdc5bd8;}['_createInitialRevision'](_0x4c8ab4){const _0x22544a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x22544a)this['_initialRevisionId']=_0x22544a['id'];else{const _0x547437=!this['editor']['model']['document']['roots']['find'](_0x12ec1f=>this['editor']['model']['hasContent'](_0x12ec1f)),_0x179afb=this['editor']['plugins']['get']('Users')['me']['id'],_0xc434c3=m(this['editor']['locale'],_0x547437?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4c8ab4,'to':_0x4c8ab4,'id':this['_initialRevisionId'],'name':_0xc434c3,'creatorId':_0x179afb});}}['_createCurrentRevision'](_0x47244e){const _0x5527d0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5527d0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x47244e,'to':_0x47244e,'id':_0x5527d0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x6262c5,from:_0x2075be,to:_0x17eb5f,creatorId:_0x552524,id:_0x1dd9bf}){const _0x520072=this['buildRevisionData']({'from':_0x2075be,'to':_0x17eb5f});_0x520072['name']=_0x6262c5,_0x520072['creatorId']=_0x552524,_0x520072['id']=_0x1dd9bf;const _0x1e72e7=this['addRevisionData'](_0x520072);return this['adapter']&&this['_bufferUpdate'](_0x520072['id'],_0x520072,!0x0),_0x1e72e7;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4a0408){return(_0x4a0408=_0x4a0408['filter'](_0x37475d=>!_0x37475d['name']||'revision-start'!==_0x37475d['name']&&'revision-end'!==_0x37475d['name']))['forEach'](_0x4596f9=>{'string'!=typeof _0x4596f9&&(_0x4596f9['children']=this['_removeRevisionMarkers'](_0x4596f9['children']),_0x4596f9['attributes']=_0x4596f9['attributes']['filter'](_0x5eb05c=>!_0x5eb05c[0x0]['startsWith']('data-revision-')));}),_0x4a0408;}}function C(_0x2decf4,_0x5a3995){const _0x1e4ee5=_0x5a3995['editing']['view']['document'];if('string'==typeof _0x2decf4)return new _0x528d27(_0x1e4ee5,_0x2decf4);{const _0x20efaa=_0x2decf4['children']['map'](_0x3c1eb9=>C(_0x3c1eb9,_0x5a3995));return new(P[_0x2decf4['type']]||_0x4f78dd)(_0x1e4ee5,_0x2decf4['name'],_0x2decf4['attributes'],_0x20efaa);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5a4e2d){this['editor']=_0x5a4e2d,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'](_0xf5c972){this['source']=_0xf5c972;const _0x2bf7b0=new Map(),_0x594b8c=new Map(),_0x478000=this['editor']['model']['document']['roots']['map'](_0x42a919=>_0x42a919['rootName']);for(const _0x268354 of _0x478000){const _0x3b5db8=this['editor']['model']['document']['getRoot'](_0x268354),_0x349648=T(_0x3b5db8);_0x2bf7b0['set'](_0x268354,_0x349648),_0x594b8c['set'](_0x268354,Object['fromEntries'](_0x3b5db8['getAttributes']()));}const _0x4deeb5=Array['from'](this['editor']['model']['markers'])['map'](_0xe800ea=>[_0xe800ea['name'],_0xe800ea['getRange']()]),_0x25d7e8=this['source']['version'];this['_saveMetaData'](_0x25d7e8,_0x2bf7b0,_0x4deeb5,_0x594b8c),this['_startingRevisionId']=this['_revisionId'];const _0x35c960=new Map(),_0x279bf8=new Map();for(const _0x4c877f of _0x478000){const _0x46ece7=F(_0x4c877f);_0x35c960['set'](_0x4c877f,_0x46ece7),_0x279bf8['set'](_0x4c877f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x35c960,[],_0x279bf8);}['getData'](_0x2e9997,_0x4601ed){if(this['_lastFrom']===_0x2e9997&&this['_lastTo']<=_0x4601ed)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4601ed,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e9997)){const _0x38060c=this['_getPreviousFrom'](_0x2e9997);this['_calculateMetaData'](_0x38060c,_0x2e9997,!0x1);}this['_calculateMetaData'](_0x2e9997,_0x4601ed,!0x0);}return this['_lastFrom']=_0x2e9997,this['_lastTo']=_0x4601ed,this['_getState']();}['loadState'](_0x26a5aa){this['_reset'](),this['_lastFrom']=_0x26a5aa['fromVersion'],this['_lastTo']=_0x26a5aa['toVersion'];for(const _0x4ff8e3 in _0x26a5aa['diffData']){const _0x5c932a=_0x26a5aa['diffData'][_0x4ff8e3]['attachChange'],_0x35cd8b=_0x30ebd2(_0x26a5aa['diffData'][_0x4ff8e3]['attributesBefore'])||{},_0x5b7183=this['_makeModelFromViewString'](_0x26a5aa['diffData'][_0x4ff8e3]['deletions']);_0x5b7183['rootName']=_0x4ff8e3,_0x5b7183['_isAttached']=!_0x5c932a||!_0x5c932a['isAttached'],_0x5b7183['isAttached']=()=>_0x5b7183['_isAttached'],this['_baseRoots']['set'](_0x4ff8e3,_0x5b7183),this['_baseRootsAttributes']['set'](_0x4ff8e3,_0x35cd8b),_0x5c932a&&this['_touchedRoots']['set'](_0x4ff8e3,_0x5c932a);const _0x266865=this['_makeIdsRoot'](_0x5b7183);this['_baseIdsRoots']['set'](_0x4ff8e3,_0x266865);for(const [_0x1d94a1,_0x15b3d7]of _0x5b7183['markers']){if(!_0x1d94a1['startsWith']('revision:'))continue;const _0x31813d=_0x1d94a1['split'](':')[0x2];for(const _0x328c48 of _0x15b3d7['getWalker']({'singleCharacters':!0x0})){const _0x397ccf=this['_getVidAttributeName'](_0x328c48),_0x17a773='elementEnd'==_0x328c48['type']?_0x328c48['previousPosition']['path']['slice'](0x0,-0x1):_0x328c48['previousPosition']['path'],_0x1e948f=_0x266865['getNodeByPath'](_0x17a773)['getAttribute'](_0x397ccf);this['_touched']['set'](_0x1e948f,{'userId':_0x31813d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x418103=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x44b2aa=>!this['_touched']['has'](_0x44b2aa));let _0x21dc5c=0x0;const _0x5b69aa=new Map();for(const _0x16e898 in _0x26a5aa['diffData']){const _0x554787=_0x26a5aa['diffData'][_0x16e898]['attachChange'],_0x6f19ca=_0x30ebd2(_0x26a5aa['diffData'][_0x16e898]['attributesAfter'])||{},_0x2728f8=this['_makeModelFromViewString'](_0x26a5aa['diffData'][_0x16e898]['insertions']);_0x2728f8['rootName']=_0x16e898,_0x2728f8['_isAttached']=!_0x554787||_0x554787['isAttached'],_0x2728f8['isAttached']=()=>_0x2728f8['_isAttached'],this['_diffRoots']['set'](_0x16e898,_0x2728f8),this['_diffRootsAttributes']['set'](_0x16e898,_0x6f19ca);const _0x32c684=this['_makeIdsRoot'](_0x2728f8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x16e898,_0x32c684),_0x5b69aa['set'](_0x16e898,_0x2728f8['isAttached']()?_0x6f19ca:{});for(const [_0x162da8,_0x319d06]of _0x2728f8['markers']){if(!_0x162da8['startsWith']('revision:'))continue;const _0x288db0=_0x162da8['split'](':')[0x2];for(const _0x244e96 of _0x319d06['getWalker']({'singleCharacters':!0x0})){const _0x4d134d=this['_getVidAttributeName'](_0x244e96),_0x2f15a7=this['_revisionId']++,_0x352a37='elementEnd'==_0x244e96['type']?_0x244e96['previousPosition']['path']['slice'](0x0,-0x1):_0x244e96['previousPosition']['path'];_0x32c684['getNodeByPath'](_0x352a37)['_setAttribute'](_0x4d134d,_0x2f15a7),this['_touched']['set'](_0x2f15a7,{'userId':_0x288db0});}}for(const _0x7339ed of this['editor']['model']['createRangeIn'](_0x2728f8)['getWalker']({'singleCharacters':!0x0})){const _0x4cdf66=this['_getVidAttributeName'](_0x7339ed),_0x4a72a8='elementEnd'==_0x7339ed['type']?_0x7339ed['previousPosition']['path']['slice'](0x0,-0x1):_0x7339ed['previousPosition']['path'],_0x33485f=_0x32c684['getNodeByPath'](_0x4a72a8);_0x33485f['getAttribute'](_0x4cdf66)>0x0||_0x33485f['_setAttribute'](_0x4cdf66,_0x418103[_0x21dc5c++]);}for(const [_0x5b7f32,_0xe2761]of _0x2728f8['markers'])_0x5b7f32['startsWith']('revision:')||this['_markers']['set'](_0x5b7f32,_0xe2761);}const _0x2a5f0c=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2a5f0c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2a5f0c,0x1));const _0x141491=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x141491),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x141491,0x1));const _0x141feb=Array['from'](this['_diffRoots'])['map'](([_0x39d369,_0x5b7e63])=>[_0x39d369,T(_0x5b7e63)]);this['_saveMetaData'](this['_lastTo'],_0x141feb,this['_markers'],_0x5b69aa);}['_makeModelFromViewString'](_0x4d9553){const _0x39b953=JSON['parse'](_0x4d9553),_0x239980=this['editor']['editing']['view']['document'],_0x3dd5c1=new _0x1716b3(_0x239980,_0x39b953['map'](_0x233431=>C(_0x233431,this['editor'])));return this['editor']['data']['toModel'](_0x3dd5c1);}['_saveMetaData'](_0x58210c,_0x236758,_0x470791,_0xebd08e){const _0x9cb2bf=new Map(_0x236758),_0x25d52b=new Map(_0x30ebd2(_0xebd08e)),_0x11721f=new Map();for(const [_0x4ed044,_0x5328cc]of _0x470791)_0x11721f['set'](_0x4ed044,{'start':_0x5328cc['start']['clone'](),'end':_0x5328cc['end']['clone'](),'rootName':_0x5328cc['root']['rootName']});this['_savedMetaData']['set'](_0x58210c,{'roots':_0x9cb2bf,'markers':_0x11721f,'rootsAttributes':_0x25d52b});}['_removeMetaData'](_0x10a6f0){this['_savedMetaData']['delete'](_0x10a6f0);}['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'](_0x1ecc13,_0x1ffdab=null){let _0xebf0f4=null;_0x1ecc13['is']('documentFragment')||(_0xebf0f4=new ft(_0x1ecc13['name'],{'vid_start':null===_0x1ffdab?this['_revisionId']++:_0x1ffdab++}));const _0x2e5abe=[];for(const _0x4a3b1c of _0x1ecc13['getChildren']())if(_0x4a3b1c['is']('element')){_0x2e5abe['push'](this['_makeIdsRoot'](_0x4a3b1c,_0x1ffdab));const _0x11ed1a=_0x2e5abe[_0x2e5abe['length']-0x1];null!==_0x1ffdab&&(_0x1ffdab=_0x11ed1a['is']('element','$text')?_0x11ed1a['getAttribute']('vid')+0x1:_0x11ed1a['getAttribute']('vid_end')+0x1);}else{for(let _0x214d16=0x0;_0x214d16<_0x4a3b1c['offsetSize'];_0x214d16++)_0x2e5abe['push'](new ft('$text',{'vid':null===_0x1ffdab?this['_revisionId']++:_0x1ffdab++}));}if(_0x1ecc13['is']('documentFragment')){const _0x5b12c9=F(_0x1ecc13['rootName']);return _0x5b12c9['_insertChild'](0x0,_0x2e5abe),_0x5b12c9;}return _0xebf0f4['_setAttribute']('vid_end',null===_0x1ffdab?this['_revisionId']++:_0x1ffdab++),_0xebf0f4['_insertChild'](0x0,_0x2e5abe),_0xebf0f4;}['_calculateMetaData'](_0x480cae,_0x4e074f,_0xdf52b5){this['_reset']();const {roots:_0x11071b,markers:_0x222f0f,rootsAttributes:_0x4c7a28}=this['_savedMetaData']['get'](_0x480cae);this['_baseRoots']=new Map(_0x11071b),this['_baseRootsAttributes']=new Map(_0x30ebd2(_0x4c7a28));for(const [_0x39f183,_0x56cc22]of this['_baseRoots'])if('$graveyard'!==_0x39f183&&(this['_diffRoots']['set'](_0x39f183,T(_0x56cc22)),this['_diffRootsAttributes']=new Map(_0x30ebd2(_0x4c7a28)),_0xdf52b5)){const _0x1b8394=this['_revisionId'];this['_idsRoots']['set'](_0x39f183,this['_makeIdsRoot'](_0x56cc22)),this['_baseIdsRoots']['set'](_0x39f183,this['_makeIdsRoot'](_0x56cc22,_0x1b8394));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xdf52b5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x20d8db,_0x53a025]of _0x222f0f){const _0x3cf4a7=this['_baseRoots']['get'](_0x53a025['rootName']),_0x2a53e9=this['_diffRoots']['get'](_0x53a025['rootName']),_0x299739=new vt(this['_fixPosition'](_0x53a025['start'],_0x3cf4a7),this['_fixPosition'](_0x53a025['end'],_0x3cf4a7)),_0x302de0=this['_fixRange'](_0x299739,_0x2a53e9);_0x3cf4a7['markers']['set'](_0x20d8db,_0x299739),this['_markers']['set'](_0x20d8db,_0x302de0);}this['_applyOperations'](_0x480cae,_0x4e074f,_0xdf52b5);}['_applyOperations'](_0x5c99da,_0x38edbf,_0x3b9ea2){for(const _0x11def4 of this['source']['getOperations'](_0x5c99da,_0x38edbf))this['_handleOperation'](_0x11def4,_0x3b9ea2);for(const _0x3337f9 of this['_diffRoots']['values']())_0x3337f9['markers']['clear']();for(const [_0x7dda08,_0x923fe8]of this['_markers']){this['_diffRoots']['get'](_0x923fe8['root']['rootName'])['markers']['set'](_0x7dda08,_0x923fe8['clone']());}const _0x6dd741=new Map(),_0xbb4b57=new Map();for(const [_0x59e703,_0x193849]of this['_diffRoots'])_0x6dd741['set'](_0x59e703,T(_0x193849)),_0xbb4b57['set'](_0x59e703,this['_diffRootsAttributes']['get'](_0x59e703));this['_saveMetaData'](_0x38edbf,_0x6dd741,this['_markers'],_0xbb4b57);}['_getPreviousFrom'](_0x5dec5c){const _0x367c05=Array['from'](this['_savedMetaData']['keys']());_0x367c05['sort']((_0x285bcc,_0x33434c)=>_0x285bcc-_0x33434c),_0x367c05['reverse']();for(const _0x2ce0b4 of _0x367c05)if(_0x2ce0b4<_0x5dec5c)return _0x2ce0b4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2f3bb9,_0x2fa48b){const _0x48566c=Array['from'](_0x2fa48b['markers'])['map'](([_0x23c2e2,_0x16ee4e])=>[_0x23c2e2,this['_fixRange'](_0x16ee4e,_0x2f3bb9)]);_0x2f3bb9['markers']=new Map(_0x48566c);}['_transformMarkers'](_0xf7cf45){for(const _0x333593 of this['_markers']['values']()){const _0x473dbf=_0x333593['getTransformedByOperation'](_0xf7cf45),_0x2270d7=vt['_createFromRanges'](_0x473dbf);_0x333593['start']=_0x2270d7['start'],_0x333593['end']=_0x2270d7['end'];}}['_handleOperation'](_0x33d29d,_0x24d286){if('addRoot'!=_0x33d29d['type']&&'detachRoot'!=_0x33d29d['type']){if('insert'==_0x33d29d['type']){const _0x35b648=_0x33d29d['position']['root']['rootName'];this['_diffRoots']['has'](_0x35b648)||(this['_diffRoots']['set'](_0x35b648,F(_0x35b648,!0x0)),this['_diffRootsAttributes']['set'](_0x35b648,{}),_0x24d286&&this['_idsRoots']['set'](_0x35b648,F(_0x35b648,!0x0)));}else{if('addRootAttribute'==_0x33d29d['type']||'removeRootAttribute'==_0x33d29d['type']||'changeRootAttribute'==_0x33d29d['type'])return void this['_handleRootAttributeOperation'](_0x33d29d);'marker'==_0x33d29d['type']&&this['_handleMarkerOperation'](_0x33d29d);}if('marker'!==_0x33d29d['type']){const _0x2dae20=this['_cloneOperation'](_0x33d29d,this['_diffRoots']);_0x2dae20['_execute'](),this['_transformMarkers'](_0x2dae20);}if(_0x24d286)switch(_0x33d29d['type']){case'insert':this['_handleInsertOperation'](_0x33d29d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x33d29d);break;case'merge':this['_handleMergeOperation'](_0x33d29d);break;case'split':this['_handleSplitOperation'](_0x33d29d);}}else this['_handleRootOperation'](_0x33d29d,_0x24d286);}['_cloneOperation'](_0x3f1913,_0xea1d3c){const _0x4a27f0=_0x3f1913['clone']();return _0x4a27f0['_authorId']=_0x3f1913['_authorId'],this['_fixOperation'](_0x4a27f0,_0xea1d3c),_0x4a27f0;}['_getBaseVids'](_0x4f41a1){return _0x4f41a1['map'](_0x1ceade=>{const _0x5f3922=this['_getVidAttributeName'](_0x1ceade);return Number(_0x1ceade['item']['getAttribute'](_0x5f3922));});}['_generateTape'](_0x467b0f,_0x415d59){if(_0x467b0f['is']('element','$text'))_0x415d59['push']({'item':_0x467b0f,'type':'text'});else{_0x467b0f['is']('element')&&_0x415d59['push']({'item':_0x467b0f,'type':'elementStart'});for(const _0x5c5716 of _0x467b0f['getChildren']())this['_generateTape'](_0x5c5716,_0x415d59);_0x467b0f['is']('element')&&_0x415d59['push']({'item':_0x467b0f,'type':'elementEnd'});}return _0x415d59;}['_getState'](){const _0x3e903b=new Map(this['_touched']),_0x3f6ccc=new Map(_0x3e903b),_0x50ae36=new Map(),_0xebefc0={'insertions':{},'deletions':{}},_0x4039e3={'insertions':{},'deletions':{}},_0x261c23=new Map(),_0x15c4cf=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x15c4cf['delete']('$graveyard');for(const _0x186e34 of _0x15c4cf){const _0x1fcaa2=this['_diffRoots']['get'](_0x186e34)||F(_0x186e34,!0x1),_0x53fc64=this['_baseRoots']['get'](_0x186e34)||F(_0x186e34,!0x1);_0x1fcaa2['isAttached']()||_0x53fc64['isAttached']()?(_0xebefc0['insertions'][_0x186e34]=T(_0x1fcaa2),_0xebefc0['deletions'][_0x186e34]=T(_0x53fc64),this['_copyMarkers'](_0xebefc0['deletions'][_0x186e34],_0x53fc64),this['_copyMarkers'](_0xebefc0['insertions'][_0x186e34],_0x1fcaa2),_0x4039e3['insertions'][_0x186e34]=this['_generateTape'](this['_idsRoots']['get'](_0x186e34),[]),_0x4039e3['deletions'][_0x186e34]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x186e34)||F(_0x186e34,!0x1),[])):_0x15c4cf['delete'](_0x186e34);}for(const _0x4bafc7 of _0x15c4cf){const _0x1f7d4a=_0x4039e3['insertions'][_0x4bafc7];for(const _0x73b631 of _0x1f7d4a){const _0x1be66e=this['_getVidAttributeName'](_0x73b631),_0x16aa86=_0x73b631['item']['getAttribute'](_0x1be66e);_0x3f6ccc['delete'](_0x16aa86),_0x16aa86>=this['_startingRevisionId']&&_0x50ae36['set'](_0x16aa86,_0x3e903b['get'](_0x16aa86));}}for(const _0x15307 of _0x15c4cf){const _0x493599=_0x4039e3['insertions'][_0x15307],_0x242b3c=this['_getBaseVids'](_0x4039e3['deletions'][_0x15307]);let _0x18bcab=0x0;for(const _0x4647d5 of _0x493599){const _0x14ab19=this['_getVidAttributeName'](_0x4647d5),_0x32f41f=_0x4647d5['item']['getAttribute'](_0x14ab19);if(!_0x50ae36['has'](_0x32f41f)&&!_0x261c23['has'](_0x32f41f)){if(_0x3f6ccc['has'](_0x32f41f))_0x18bcab++;else{if(_0x32f41f!=_0x242b3c[_0x18bcab]){const _0x116255=_0x3e903b['get'](_0x32f41f)||_0x3e903b['get'](_0x242b3c[_0x18bcab]);for(;_0x32f41f!=_0x242b3c[_0x18bcab];)_0x3f6ccc['has'](_0x242b3c[_0x18bcab])||(_0x261c23['set'](_0x242b3c[_0x18bcab],_0x116255),_0x3e903b['set'](_0x242b3c[_0x18bcab],_0x116255)),_0x18bcab++;}_0x18bcab++;}}}}for(const _0x1a5a94 of _0x15c4cf){const _0x4333db=_0x4039e3['insertions'][_0x1a5a94];for(const _0x52c780 of _0x4333db){const _0x16437d=this['_getVidAttributeName'](_0x52c780),_0x573fb7=_0x52c780['item']['getAttribute'](_0x16437d);if(_0x261c23['has'](_0x573fb7)){const _0x338fe4=_0x261c23['get'](_0x573fb7);_0x3f6ccc['has'](_0x573fb7)||_0x3f6ccc['set'](_0x573fb7,{..._0x338fe4}),_0x50ae36['set'](_0x573fb7,{..._0x338fe4});}}}for(const _0x156516 of _0x3f6ccc['keys']())_0x156516>=this['_startingRevisionId']&&_0x3f6ccc['delete'](_0x156516);const _0x272a9d=new Map();for(const _0x40ef8d of _0x15c4cf){let _0xf25013=_0x4039e3['insertions'][_0x40ef8d];for(const _0x143064 of _0xf25013)if(_0x143064['item']['is']('element','tableCell')){const _0x46997f=this['_getVidAttributeName'](_0x143064),_0x468a3f=_0x143064['item']['getAttribute'](_0x46997f);if(_0x50ae36['has'](_0x468a3f)){const _0x153820=_0x143064['item']['parent']['parent']['getAttribute']('vid_start'),_0x45d88e=_0x272a9d['get'](_0x153820)||new Set();_0x45d88e['add'](_0x50ae36['get'](_0x468a3f)['userId']),_0x272a9d['set'](_0x153820,_0x45d88e);}}_0xf25013=_0x4039e3['deletions'][_0x40ef8d];for(const _0x21e129 of _0xf25013)if(_0x21e129['item']['is']('element','tableCell')){const _0x2d87bb=this['_getVidAttributeName'](_0x21e129),_0x110b17=_0x21e129['item']['getAttribute'](_0x2d87bb);if(_0x3f6ccc['has'](_0x110b17)){const _0x34abd4=_0x21e129['item']['parent']['parent']['getAttribute']('vid_start'),_0x5836d8=_0x272a9d['get'](_0x34abd4)||new Set();_0x5836d8['add'](_0x3f6ccc['get'](_0x110b17)['userId']),_0x272a9d['set'](_0x34abd4,_0x5836d8);}}for(const _0x4a60ff of _0x272a9d['keys']())(_0x50ae36['has'](_0x4a60ff)||_0x3f6ccc['has'](_0x4a60ff))&&_0x272a9d['delete'](_0x4a60ff);}for(const _0x270919 of _0x15c4cf){const _0x5428=_0x4039e3['insertions'][_0x270919];let _0x9f7899=null,_0x548e5d=null;for(const _0x3b068e of _0x5428){const _0x3642d3=this['_getVidAttributeName'](_0x3b068e),_0x5d29f0=_0x3b068e['item']['getAttribute'](_0x3642d3),_0x291455=_0x272a9d['get'](_0x5d29f0);_0x291455&&'elementStart'==_0x3b068e['type']&&(_0x9f7899=Array['from'](_0x291455)[0x0],_0x548e5d=_0x3b068e['item']['getAttribute']('vid_end')),_0x9f7899&&(_0x3f6ccc['set'](_0x5d29f0,{'userId':_0x9f7899}),_0x50ae36['set'](_0x5d29f0,{'userId':_0x9f7899})),_0x5d29f0==_0x548e5d&&(_0x9f7899=null,_0x548e5d=null);}}const _0x20e8ce={},_0x16c01b=new Set();for(const _0x391bf0 of _0x15c4cf){const _0x413f15=_0xebefc0['deletions'][_0x391bf0],_0xb1aa54=_0xebefc0['insertions'][_0x391bf0];for(const {userId:_0xe27755}of this['_touchedMarkers']['values']())null!==_0xe27755&&_0x16c01b['add'](_0xe27755);for(const {userId:_0x103b0a}of this['_touchedRoots']['values']())null!==_0x103b0a&&_0x16c01b['add'](_0x103b0a);this['_markChanges'](_0xb1aa54,_0x4039e3['insertions'][_0x391bf0],_0x50ae36,'insertion',_0x16c01b),this['_markChanges'](_0x413f15,_0x4039e3['deletions'][_0x391bf0],_0x3f6ccc,'deletion',_0x16c01b),_0x20e8ce[_0x391bf0]={'insertions':this['_prepareViewToSave'](_0xb1aa54),'deletions':this['_prepareViewToSave'](_0x413f15),'attachChange':this['_touchedRoots']['get'](_0x391bf0)||null,'attributesBefore':_0x30ebd2(this['_baseRootsAttributes']['get'](_0x391bf0))||{},'attributesAfter':_0x30ebd2(this['_diffRootsAttributes']['get'](_0x391bf0))};}return{'diffData':_0x20e8ce,'authorsIds':Array['from'](_0x16c01b)};}['_processRootBeforeSave'](_0x46b271){for(const [,_0x221279]of _0x46b271['markers']){const _0x5bf95a=_0x221279['start']['getAncestors']()['filter'](_0x552fe6=>'tableCell'==_0x552fe6['name']);for(const _0x2500a7 of _0x5bf95a)0x1==_0x2500a7['childCount']&&_0x2500a7['getChild'](0x0)['is']('element','paragraph')&&_0x2500a7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x31bac8){this['_processRootBeforeSave'](_0x31bac8);const _0x4030be=this['editor']['data']['toView'](_0x31bac8,{}),_0x2238fd=Array['from'](_0x4030be['getChildren']())['map'](_0x5c0fdb=>this['_getViewJson'](_0x5c0fdb));return JSON['stringify'](_0x2238fd);}['_getViewJson'](_0x55476d){if(_0x55476d['is']('$text'))return _0x55476d['data'];{const _0x349d5d=_0x55476d;return{'type':Object['keys'](P)['find'](_0x6d737e=>_0x55476d instanceof P[_0x6d737e]),'name':_0x349d5d['name'],'attributes':Array['from'](_0x349d5d['getAttributes']()),'children':Array['from'](_0x349d5d['getChildren']())['map'](_0x42bf26=>this['_getViewJson'](_0x42bf26))};}}['_markChanges'](_0x1d6c73,_0x28412d,_0x2394f7,_0xc4fb98,_0x12ebd2){let _0x5561c9=null,_0x1295ba=null,_0x208d50=0x0;const _0x28b545=this['editor']['model'];for(let _0x48da3c=0x0;_0x48da3c<_0x28412d['length'];_0x48da3c++){const _0x4911cc=this['_getVidAttributeName'](_0x28412d[_0x48da3c]),_0x2ad391=_0x28412d[_0x48da3c]['item']['getAttribute'](_0x4911cc),_0x5dc491=_0x2394f7['get'](_0x2ad391),_0x503819=_0x48da3c==_0x28412d['length']-0x1;(!_0x5561c9&&_0x5dc491&&(_0x5561c9=_0x5dc491,_0x1295ba=_0x28412d[_0x48da3c]),_0x5561c9&&(!_0x5dc491||_0x5dc491['userId']!=_0x5561c9['userId']))&&(_0x479e6d(_0x5dc491,B(_0x1295ba,_0x1d6c73,_0x28b545),B(_0x28412d[_0x48da3c],_0x1d6c73,_0x28b545)),_0x5561c9=_0x5dc491||null,_0x1295ba=_0x5dc491?_0x28412d[_0x48da3c]:null),_0x5561c9&&_0x503819&&_0x479e6d(_0x5dc491,B(_0x1295ba,_0x1d6c73,_0x28b545),J(_0x28412d[_0x48da3c],_0x1d6c73,_0x28b545));}function _0x479e6d(_0x5a44e6,_0x189667,_0x451662){const _0x48dfbd=_0x5561c9['userId'],_0x136fcc='revision:'+_0xc4fb98+':'+_0x48dfbd+':'+_0x208d50++,_0x35a4a9=_0x28b545['createRange'](_0x189667,_0x451662);_0x1d6c73['markers']['set'](_0x136fcc,_0x35a4a9),null!==_0x48dfbd&&_0x12ebd2['add'](_0x48dfbd);}}['_getVidAttributeName'](_0x5dd4d2){switch(_0x5dd4d2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2dff45,_0x459cf5){_0x2dff45['baseVersion']=null;for(const _0x12a121 in _0x2dff45){const _0x5a10f9=_0x2dff45[_0x12a121];if(_0x5a10f9 instanceof gt){const _0x1c6e0b=_0x459cf5['get'](_0x5a10f9['root']['rootName']);_0x2dff45[_0x12a121]=this['_fixPosition'](_0x5a10f9,_0x1c6e0b);}if(_0x5a10f9 instanceof vt){const _0x3d60fd=_0x459cf5['get'](_0x5a10f9['root']['rootName']);_0x2dff45[_0x12a121]=this['_fixRange'](_0x5a10f9,_0x3d60fd);}'root'===_0x12a121&&(_0x2dff45['root']=_0x459cf5['get'](_0x2dff45['root']['rootName']));}}['_fixRange'](_0x97730e,_0x3276ee){return this['editor']['model']['createRange'](this['_fixPosition'](_0x97730e['start'],_0x3276ee),this['_fixPosition'](_0x97730e['end'],_0x3276ee));}['_fixPosition'](_0x4db993,_0x18eb9a){return this['editor']['model']['createPositionFromPath'](_0x18eb9a,_0x4db993['path'],_0x4db993['stickiness']);}['_handleInsertOperation'](_0x2b68b5){const _0x50823c=this['_idsRoots']['get'](_0x2b68b5['position']['root']['rootName']),_0x4ae9e5=this['_fixPosition'](_0x2b68b5['position'],_0x50823c),_0x39f32f=null===_0x2b68b5['_authorId']?null:_0x2b68b5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37f837=_0x4ae9e5['parent'],_0x128f6a=this['_revisionId'],_0x196aee=[];for(const _0x5b1385 of _0x2b68b5['nodes'])if(_0x5b1385['is']('element'))_0x196aee['push'](this['_makeIdsRoot'](_0x5b1385));else{for(let _0x3828b1=0x0;_0x3828b1<_0x5b1385['offsetSize'];_0x3828b1++)_0x196aee['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3b6d75=this['_revisionId'];for(let _0x4d7a74=_0x128f6a;_0x4d7a74<_0x3b6d75;_0x4d7a74++)this['_touched']['set'](_0x4d7a74,{'userId':_0x39f32f});_0x37f837['_insertChild'](_0x4ae9e5['offset'],_0x196aee);}['_handleMoveOperation'](_0x3b3432){(_0x3b3432=this['_cloneOperation'](_0x3b3432,this['_idsRoots']))['_execute']();const _0x285b80=null===_0x3b3432['_authorId']?null:_0x3b3432['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c30bd=_0x3b3432['getMovedRangeStart'](),_0x29fa82=_0x2c30bd['parent'],_0x31407e=_0x2c30bd['offset'];!function _0x91c317(_0x19be6d,_0x275f7c,_0x588db4,_0x34cc9b){for(let _0x591a72=_0x588db4;_0x591a72<_0x34cc9b;_0x591a72++){const _0x495091=_0x275f7c['getChild'](_0x591a72);_0x495091['is']('element','$text')?_0x19be6d['set'](_0x495091['getAttribute']('vid'),{'userId':_0x285b80}):(_0x19be6d['set'](_0x495091['getAttribute']('vid_start'),{'userId':_0x285b80}),_0x91c317(_0x19be6d,_0x495091,0x0,_0x495091['childCount']),_0x19be6d['set'](_0x495091['getAttribute']('vid_end'),{'userId':_0x285b80}));}}(this['_touched'],_0x29fa82,_0x31407e,_0x31407e+_0x3b3432['howMany']);}['_handleMergeOperation'](_0x1de895){const _0x35b38b=null===(_0x1de895=this['_cloneOperation'](_0x1de895,this['_idsRoots']))['_authorId']?null:_0x1de895['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xecbe81=_0x1de895['targetPosition']['parent'],_0xa5687a=_0x1de895['sourcePosition']['parent'],_0x391883=_0xecbe81['getAttribute']('vid_end'),_0x360bfe=_0xa5687a['getAttribute']('vid_start');_0xecbe81['_setAttribute']('vid_end',_0xa5687a['getAttribute']('vid_end')),_0xa5687a['_setAttribute']('vid_end',_0x391883),this['_touched']['set'](_0x360bfe,{'userId':_0x35b38b}),this['_touched']['set'](_0x391883,{'userId':_0x35b38b}),_0x1de895['_execute']();}['_handleSplitOperation'](_0x2c4d5d){const _0x14d9a5=null===(_0x2c4d5d=this['_cloneOperation'](_0x2c4d5d,this['_idsRoots']))['_authorId']?null:_0x2c4d5d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55c57b=_0x2c4d5d['graveyardPosition'],_0x52abcc=_0x2c4d5d['splitPosition']['parent'];_0x2c4d5d['_execute']();const _0x73a5d4=_0x52abcc['getAttribute']('vid_end'),_0x3f09ed=_0x2c4d5d['insertionPosition']['nodeAfter'];if(_0x55c57b){const _0x3f0ab0=_0x3f09ed['getAttribute']('vid_end'),_0x4ce14e=_0x52abcc['getAttribute']('vid_end');_0x52abcc['_setAttribute']('vid_end',_0x3f0ab0),_0x3f09ed['_setAttribute']('vid_end',_0x4ce14e),this['_touched']['set'](_0x52abcc['getAttribute']('vid_end'),{'userId':_0x14d9a5}),this['_touched']['set'](_0x3f09ed['getAttribute']('vid_start'),{'userId':_0x14d9a5});}else{const _0x43e358=this['_revisionId']++,_0x13741c=this['_revisionId']++;_0x52abcc['_setAttribute']('vid_end',_0x43e358),_0x3f09ed['_setAttribute']('vid_start',_0x13741c),_0x3f09ed['_setAttribute']('vid_end',_0x73a5d4),this['_touched']['set'](_0x43e358,{'userId':_0x14d9a5}),this['_touched']['set'](_0x13741c,{'userId':_0x14d9a5});}}['_handleMarkerOperation'](_0x54307a){if(!_0x54307a['affectsData'])return;const _0x81ff7a=(_0x54307a=this['_cloneOperation'](_0x54307a,this['_diffRoots']))['oldRange']?_0x54307a['oldRange']['root']:null,_0x189039=_0x54307a['newRange']?_0x54307a['newRange']['root']:null;_0x81ff7a&&this['_markers']['delete'](_0x54307a['name']),_0x189039&&this['_markers']['set'](_0x54307a['name'],_0x54307a['newRange']['clone']());const _0x5456c1=null===_0x54307a['_authorId']?null:_0x54307a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xeeafe2=_0x54307a['name'];if(!this['_touchedMarkers']['has'](_0xeeafe2))return void this['_touchedMarkers']['set'](_0xeeafe2,{'range':_0x54307a['oldRange'],'userId':_0x5456c1});const _0x17b981=this['_touchedMarkers']['get'](_0xeeafe2),_0x464682=_0x17b981['range'],_0x2b9168=_0x54307a['newRange'];null==_0x464682&&null==_0x2b9168||_0x464682&&_0x2b9168&&_0x464682['isEqual'](_0x2b9168)?this['_touchedMarkers']['delete'](_0x54307a['name']):_0x17b981['userId']=_0x5456c1;}['_handleRootOperation'](_0x1f5452,_0x2819a7){this['_diffRoots']['has'](_0x1f5452['rootName'])?this['_diffRoots']['get'](_0x1f5452['rootName'])['_isAttached']=_0x1f5452['isAdd']:(this['_diffRoots']['set'](_0x1f5452['rootName'],F(_0x1f5452['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1f5452['rootName'],{}),_0x2819a7&&this['_idsRoots']['set'](_0x1f5452['rootName'],F(_0x1f5452['rootName'],!0x0)));const _0x137b33=null===_0x1f5452['_authorId']?null:_0x1f5452['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d1510=this['_touchedRoots']['get'](_0x1f5452['rootName']);_0x5d1510&&_0x5d1510['userId']===_0x137b33?this['_touchedRoots']['delete'](_0x1f5452['rootName']):this['_touchedRoots']['set'](_0x1f5452['rootName'],{'userId':_0x137b33,'isAttached':_0x1f5452['isAdd']});}['_handleRootAttributeOperation'](_0x1fd740){const _0x503816=this['_diffRootsAttributes']['get'](_0x1fd740['root']['rootName']);null===_0x1fd740['newValue']?delete _0x503816[_0x1fd740['key']]:_0x503816[_0x1fd740['key']]=_0x1fd740['newValue'];}}function T(_0x2c22b0){const _0x4e7b5a=F(_0x2c22b0['rootName'],_0x2c22b0['isAttached']());for(const _0x4e6fc5 of _0x2c22b0['getChildren']()){const _0x453513=_0x4e6fc5['_clone'](!0x0);_0x4e7b5a['_appendChild'](_0x453513);}return _0x4e7b5a;}function F(_0x39269f,_0x5206e8=!0x0){const _0x2601c2=new mt();return _0x2601c2['rootName']=_0x39269f,_0x2601c2['_isAttached']=_0x5206e8,_0x2601c2['isAttached']=()=>_0x2601c2['_isAttached'],_0x2601c2;}function B(_0x121269,_0x5db419,_0x577846){const _0x42d46a='elementEnd'==_0x121269['type']?_0x577846['createPositionAt'](_0x121269['item'],'end'):_0x577846['createPositionBefore'](_0x121269['item']);return _0x577846['createPositionFromPath'](_0x5db419,_0x42d46a['path'],_0x42d46a['stickiness']);}function J(_0x128032,_0x695dcd,_0x4e93d1){const _0x30bc12='elementStart'==_0x128032['type']?_0x4e93d1['createPositionAt'](_0x128032['item'],0x0):_0x4e93d1['createPositionAfter'](_0x128032['item']);return _0x4e93d1['createPositionFromPath'](_0x695dcd,_0x30bc12['path'],_0x30bc12['stickiness']);}class ns extends _0xb5bc71{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5ba432,_0x3e29fa){super(_0x5ba432),this['focusTracker']=new _0x23058c(),this['keystrokes']=new _0x9d560c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3e29fa),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'](),_0xed7b1e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x37da08=_0x3b8ce2=>_0x3b8ce2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x37da08),this['keystrokes']['set']('arrowleft',_0x37da08),this['keystrokes']['set']('arrowup',_0x37da08),this['keystrokes']['set']('arrowdown',_0x37da08);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x386eac){this['revisionNameInputView']['fieldView']['element']['value']=_0x386eac['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x74e484){const _0x843efe=new nt(this['locale'],_0x396089),_0x391bc5=_0x843efe['fieldView'];_0x391bc5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4811e6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x74e484&&(_0x4811e6+='\x20('+m(this['locale'],'optional')+')'),(_0x843efe['label']=_0x4811e6,_0x391bc5['on']('input',()=>{this['revisionNameInputValue']=_0x391bc5['element']['value']['trim']();}),_0x843efe);}}class u extends _0x29e489{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3c32ab=this['editor'],_0x4dd1f1=_0x3c32ab['plugins']['get']('RevisionTracker');_0x3c32ab['ui']['componentFactory']['add']('revisionHistory',_0x4fec9e=>{const _0xa2671e=_0x417cf8(_0x4fec9e),_0x599bb5=_0xa2671e['panelView']['children'],_0x33da48=new te(_0x4fec9e),_0x175237=new _0x12a450(_0x4fec9e),_0x1ad3ee=new _0xe84945(_0x4fec9e),_0x2ccea1=new _0x12a450(_0x4fec9e),_0x56fcca=new _0xe84945(_0x4fec9e);return _0xa2671e['bind']('isEnabled')['to'](_0x4dd1f1,'isReady',_0x4dd1f1,'isEnabled',_0x3c32ab,'isReadOnly',(_0x330325,_0x496fa7,_0x3eabdd)=>_0x330325&&_0x496fa7&&!_0x3eabdd),_0xa2671e['buttonView']['set']({'icon':_0x4a7550['history'],'label':m(_0x4fec9e,'Revision\x20history'),'tooltip':!0x0}),_0x1ad3ee['set']({'label':m(_0x4fec9e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ad3ee['bind']('isEnabled')['to'](_0x4dd1f1,'isReady',_0x4dd1f1,'isEnabled',_0x3c32ab,'isReadOnly',(_0x7e0129,_0x592362,_0xd3c497)=>_0x7e0129&&_0x592362&&!_0xd3c497),_0x1ad3ee['on']('execute',()=>this['_showDialog']()),_0x56fcca['set']({'label':m(_0x4fec9e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x56fcca['bind']('isEnabled')['to'](_0x4dd1f1,'isReady',_0x3c32ab,'isReadOnly',(_0xec6988,_0x449e39)=>_0xec6988&&!_0x449e39),_0x56fcca['on']('execute',()=>{_0x3c32ab['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xa2671e['isOpen']=!0x1,_0x3c32ab['editing']['view']['focus']();}),_0x175237['children']['add'](_0x1ad3ee),_0x2ccea1['children']['add'](_0x56fcca),_0x33da48['role']='menu',_0x33da48['items']['addMany']([_0x175237,_0x2ccea1]),_0x599bb5['add'](_0x33da48),_0xa2671e;}),_0x3c32ab['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2f49ce=this['editor'],_0x5ca0a6=_0x2f49ce['locale'],_0x35739e=new _0x568570(_0x5ca0a6),_0x19a89e=new _0x2b2504(_0x5ca0a6);_0x35739e['buttonView']['set']({'icon':_0x4a7550['history'],'label':m(_0x5ca0a6,'Revision\x20history')});const _0x5dc8dc=new _0x2a9944(_0x5ca0a6,_0x35739e),_0x38ed4e=new _0x433f31(_0x5ca0a6);_0x38ed4e['set']({'label':m(_0x5ca0a6,'Save\x20current\x20revision')}),_0x38ed4e['delegate']('execute')['to'](_0x35739e),_0x38ed4e['on']('execute',()=>{this['_showDialog']();}),_0x5dc8dc['children']['add'](_0x38ed4e),_0x19a89e['items']['add'](_0x5dc8dc);const _0x4110bc=new _0x2a9944(_0x5ca0a6,_0x35739e),_0x3cbb03=new _0x433f31(_0x5ca0a6);return _0x3cbb03['set']({'label':m(_0x5ca0a6,'Open\x20revision\x20history')}),_0x3cbb03['delegate']('execute')['to'](_0x35739e),_0x3cbb03['on']('execute',()=>{_0x2f49ce['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4110bc['children']['add'](_0x3cbb03),_0x19a89e['items']['add'](_0x4110bc),_0x35739e['panelView']['children']['add'](_0x19a89e),_0x35739e;}['_showDialog'](){const _0x3f0ce6=this['editor'],_0xe65734=_0x3f0ce6['locale'],_0x199ecf=_0x3f0ce6['plugins']['get']('Dialog'),_0x312af9=_0x3f0ce6['plugins']['get']('RevisionTracker');function _0x119ad6(_0x524462){_0x3f0ce6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x524462['revisionName']?_0x524462['revisionNameInputView']['errorText']=m(_0xe65734,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3f0ce6['plugins']['get'](l)['saveRevision']({'name':_0x524462['revisionName']}),_0x199ecf['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x119ad6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x199ecf['show']({'id':'revisionSave','title':m(_0xe65734,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x3f0ce6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x199ecf['hide']()},{'label':m(_0x3f0ce6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x29d90e){_0x29d90e['bind']('isEnabled')['to'](_0x312af9,'isReady',_0x312af9,'isEnabled',_0x3f0ce6,'isReadOnly',(_0x53aaf6,_0x397680,_0x4d1e44)=>_0x53aaf6&&_0x397680&&!_0x4d1e44);},'onExecute':()=>_0x119ad6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5dba75=this['editor'],_0x42d4eb=_0x5dba75['locale'];this['_saveRevisionFormView']=new ns(_0x42d4eb,_0x5dba75['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0xb5bc71{['changeId'];['_model'];constructor(_0x3cd2f4,_0x9d79b){super(_0x3cd2f4),this['_model']=_0x9d79b,this['changeId']=_0x9d79b['id'];const _0x7d83be=this['bindTemplate'],_0x31aef0=m(_0x3cd2f4,_0x9d79b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x9d79b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x9d79b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x7d83be['to']('type',_0x29733b=>'ck-revision-change__'+_0x29733b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x31aef0}]},{'text':'\x20'+_0x9d79b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x18d1d6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xd7792c){super(),this['id']=_0xd7792c['id']||_0x44825c(),this['author']=_0xd7792c['author'],this['type']=_0xd7792c['type'],this['data']=_0xd7792c['data']||{},this['rootName']=_0xd7792c['rootName'],this['set']('createdAt',_0xd7792c['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(_0x87dd50,_0x4290bb){this['newRevisionId']=_0x87dd50,this['oldRevisionId']=_0x4290bb,this['changes']=new _0x5238b7();}['_setChanges'](_0x3f74b3){for(const _0x3b250a of _0x3f74b3)this['changes']['add'](_0x3b250a);}}const Y={'c':_0x8712c5,'a':_0x1a7a3c,'e':_0x1fd110,'r':_0x53e239,'u':_0x49a806};class d extends _0x29e489{['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[_0xf4fc7b,_0xb9a914,j];}constructor(_0x4a3979){super(_0x4a3979),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',(_0x15a20a,_0x2355a7,_0x50171)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3a2ad6=>{for(const _0x13cfc8 of this['editor']['editing']['view']['document']['roots'])_0x50171?_0x3a2ad6['removeClass']('ck-editor__editable__overlay',_0x13cfc8):_0x3a2ad6['addClass']('ck-editor__editable__overlay',_0x13cfc8);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3ffa68=>null!==_0x3ffa68),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xf7854f,_0x574aac,_0xfeba0d)=>_0xf7854f&&_0xfeba0d?_0x574aac['changes']['getIndex'](_0xfeba0d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3ee3ad,_0x255946)=>_0x3ee3ad?_0x255946['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xb9a914);}['init'](){const _0x4672a7=this['editor'],_0x3e5b08=new yt(_0x4672a7,{'direction':'backward'}),_0x574605=new yt(_0x4672a7,{'direction':'forward'});(_0x4672a7['commands']['add']('showPreviousChange',_0x3e5b08),_0x4672a7['commands']['add']('showNextChange',_0x574605),_0x4672a7['commands']['add']('restoreRevision',new _t(_0x4672a7)),this['on']('change:numberOfChanges',()=>{_0x3e5b08['refresh'](),_0x574605['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4672a7['enableReadOnlyMode']('revision-viewer'),_0x4672a7['plugins']['has']('WidgetToolbarRepository'))&&_0x4672a7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x495522){await this['loadRevisionData'](_0x495522);const _0x52570f={};for(const _0x1c17f4 in _0x495522['diffData']){if(_0x495522['diffData'][_0x1c17f4]['attachChange']&&!_0x495522['diffData'][_0x1c17f4]['attachChange']['isAttached'])continue;const _0x5d942f=this['_removeRevisionMarkers'](JSON['parse'](_0x495522['diffData'][_0x1c17f4]['insertions'])),_0x117f70=this['editor']['editing']['view']['document'],_0x5bf5b4=new _0x1716b3(_0x117f70,_0x5d942f['map'](_0x214553=>this['_getViewObj'](_0x214553)));this['editor']['data']['processor']['useFillerType']('marked'),_0x52570f[_0x1c17f4]=this['editor']['data']['processor']['toData'](_0x5bf5b4),this['editor']['data']['processor']['useFillerType']('default');}return _0x52570f;}async['getRevisionRootsAttributes'](_0x20ebe6){await this['loadRevisionData'](_0x20ebe6);const _0x2d586c={};for(const _0x4e359c in _0x20ebe6['diffData'])_0x20ebe6['diffData'][_0x4e359c]['attachChange']&&!_0x20ebe6['diffData'][_0x4e359c]['attachChange']['isAttached']||(_0x2d586c[_0x4e359c]=_0x20ebe6['diffData'][_0x4e359c]['attributesAfter']||{});return _0x2d586c;}['_removeRevisionMarkers'](_0x209856){return(_0x209856=_0x209856['filter'](_0x1642c9=>!_0x1642c9['name']||'revision-start'!==_0x1642c9['name']&&'revision-end'!==_0x1642c9['name']))['forEach'](_0xe3999c=>{'string'!=typeof _0xe3999c&&(_0xe3999c['children']=this['_removeRevisionMarkers'](_0xe3999c['children']),_0xe3999c['attributes']=_0xe3999c['attributes']['filter'](_0x1974aa=>!_0x1974aa[0x0]['startsWith']('data-revision-')));}),_0x209856;}async['compare'](_0x119086,_0x3d271a,_0x549201=!0x1){if(!this['isEnabled'])return;const _0x57dcc8=this['diff'],_0x1907bb=this['repository'],_0x1a5192='string'==typeof _0x119086?_0x1907bb['getRevision'](_0x119086):_0x119086,_0x1792c8='string'==typeof _0x3d271a?_0x1907bb['getRevision'](_0x3d271a):_0x3d271a,_0x371747=_0x1a5192['id'],_0x3a6bcc=_0x1792c8?_0x1792c8['id']:null;if(!_0x549201&&this['diff']&&this['diff']['newRevisionId']===_0x371747&&this['diff']['oldRevisionId']===_0x3a6bcc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x371747,_0x3a6bcc);const _0x33a387=this['_getRevisionsRange'](_0x1a5192,_0x1792c8,!0x0)['map'](_0x5662aa=>this['loadRevisionData'](_0x5662aa));return _0x33a387['push'](new Promise(_0xb04e62=>{setTimeout(_0xb04e62,0x14);})),Promise['all'](_0x33a387)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x449139=this['_getDiff'](_0x371747,_0x3a6bcc);for(const _0x9d6cb2 of _0x449139['changes'])this['_changeIdToChange']['set'](_0x9d6cb2['id'],_0x9d6cb2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x54f14c=>{for(const _0x5763c3 of this['editor']['model']['document']['getRootNames']())_0x54f14c['detachRoot'](_0x5763c3);for(const _0x5ec79e of Object['keys'](_0x449139['model'])){const _0xcf4882=_0x54f14c['addRoot'](_0x5ec79e);for(const _0x2a5ff0 of Object['keys'](_0x449139['attributes'][_0x5ec79e]))_0x54f14c['setAttribute'](_0x2a5ff0,_0x449139['attributes'][_0x5ec79e][_0x2a5ff0],_0xcf4882);_0x54f14c['insert'](_0x449139['model'][_0x5ec79e],_0xcf4882,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x449139['changes'])),this['isReady']=!0x0;})['catch'](_0x19d6af=>{console['error'](_0x19d6af),this['_cleanUp'](),_0x57dcc8&&(this['diff']=_0x57dcc8),this['isReady']=!0x0;});}['addRevisionData'](_0x4d470a,_0x3ad26c){const _0x5571f1=this['repository']['createRevision'](_0x4d470a);return _0x5571f1['on']('_update',(_0x2c948e,_0x53729a,_0x4d50ca)=>_0x3ad26c(_0x53729a,_0x4d50ca,_0x5571f1)),this['repository']['addRevision'](_0x5571f1),_0x5571f1;}['loadRevisionData'](_0x47d5e8){if(!_0x47d5e8||_0x47d5e8['diffData'])return Promise['resolve']();{const _0x319101=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x319101,'revisionId':_0x47d5e8['id']})['then'](_0x329d38=>{_0x47d5e8['_update']({'diffData':_0x329d38['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},_0x3c5472=>{for(const _0x381732 of this['editor']['model']['document']['getRootNames']())_0x3c5472['detachRoot'](_0x381732);});}['_sortAndFilterDiffChanges'](_0xf8f971){const _0x27bf70=[],_0x4d4562=new Map();for(const _0x862fcc of this['editor']['model']['document']['getRootNames']()){const _0xc4695a=this['editor']['editing']['view']['getDomRoot'](_0x862fcc);if(!_0xc4695a)continue;const _0x278984=_0xc4695a['getClientRects']()['item'](0x0);_0x278984&&(_0x27bf70['push'](_0x862fcc),_0x4d4562['set'](_0x862fcc,_0x278984));}return _0x27bf70['sort']((_0x34a9e8,_0x247c1d)=>{const _0x1d0755=_0x4d4562['get'](_0x34a9e8),_0x47a584=_0x4d4562['get'](_0x247c1d);return _0x1d0755['y']-_0x47a584['y']||_0x1d0755['x']-_0x47a584['x'];}),(_0xf8f971=_0xf8f971['filter'](_0x33d4df=>_0x27bf70['includes'](_0x33d4df['rootName'])))['sort']((_0x580bf8,_0x1e069b)=>_0x27bf70['indexOf'](_0x580bf8['rootName'])-_0x27bf70['indexOf'](_0x1e069b['rootName'])),_0xf8f971;}['_makeTape'](_0x3b28da){const _0x5e6bf3=Array['from'](_0x3b28da['markers'])['filter'](([_0x447a4,_0x430e21])=>_0x447a4['startsWith']('revision:')&&!_0x430e21['isCollapsed']),_0x45807b=Array['from'](this['editor']['model']['createRangeIn'](_0x3b28da)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5e6bf3['length'])for(const _0x351089 of _0x45807b){const [_0x5a2a3e,_0x30afc6]=_0x5e6bf3[0x0],[,_0x475477,_0x53d3b2]=_0x5a2a3e['split'](':');if(_0x30afc6['end']['isEqual'](_0x351089['nextPosition'])&&_0x5e6bf3['shift'](),(_0x351089['previousPosition']['isEqual'](_0x30afc6['start'])||_0x351089['previousPosition']['isAfter'](_0x30afc6['start']))&&('insertion'==_0x475477?_0x351089['isAdded']={'userId':_0x53d3b2}:'deletion'==_0x475477&&(_0x351089['isRemoved']={'userId':_0x53d3b2})),0x0==_0x5e6bf3['length'])break;}return _0x45807b;}['_refreshStartEndIndex'](_0x57a4fc){const _0x4d6c22=new Map();for(let _0xbf4f08=0x0;_0xbf4f08<_0x57a4fc['length'];_0xbf4f08++)'text'===_0x57a4fc[_0xbf4f08]['type']?(_0x57a4fc[_0xbf4f08]['item']['startIndex']=_0xbf4f08,_0x57a4fc[_0xbf4f08]['item']['endIndex']=_0xbf4f08):('elementStart'===_0x57a4fc[_0xbf4f08]['type']?_0x57a4fc[_0xbf4f08]['item']['startIndex']=_0xbf4f08:'elementEnd'===_0x57a4fc[_0xbf4f08]['type']&&(_0x57a4fc[_0xbf4f08]['item']['endIndex']=_0xbf4f08),_0x4d6c22['set'](_0x57a4fc[_0xbf4f08]['id'],_0xbf4f08));for(const _0x13c2dc of _0x4d6c22['values']())'elementStart'===_0x57a4fc[_0x13c2dc]['type']?_0x57a4fc[_0x13c2dc]['item']['endIndex']=_0x4d6c22['get'](_0x57a4fc[_0x13c2dc]['pairId']):'elementEnd'===_0x57a4fc[_0x13c2dc]['type']&&(_0x57a4fc[_0x13c2dc]['item']['startIndex']=_0x4d6c22['get'](_0x57a4fc[_0x13c2dc]['pairId']));}['_processTape'](_0x3b272a){for(let _0x4c1579=0x0;_0x4c1579<_0x3b272a['length'];_0x4c1579++){if('elementStart'===_0x3b272a[_0x4c1579]['type'])_0x3b272a[_0x4c1579]['item']['startIndex']=_0x4c1579;else{if('elementEnd'===_0x3b272a[_0x4c1579]['type']){_0x3b272a[_0x4c1579]['item']['endIndex']=_0x4c1579;const _0x57f570=_0x3b272a[_0x4c1579]['item']['startIndex'];_0x3b272a[_0x57f570]['pairId']=_0x3b272a[_0x4c1579]['id'],_0x3b272a[_0x4c1579]['pairId']=_0x3b272a[_0x57f570]['id'];}else _0x3b272a[_0x4c1579]['item']['startIndex']=_0x4c1579,_0x3b272a[_0x4c1579]['item']['endIndex']=_0x4c1579,_0x3b272a[_0x4c1579]['pairId']=null;}_0x3b272a[_0x4c1579]['markersStart']||(_0x3b272a[_0x4c1579]['markersStart']=[],_0x3b272a[_0x4c1579]['markersEnd']=[]);}}['_markInsertions'](_0x45e919,_0x571d9f){const _0x171489=_0x45e919['filter'](_0x348dac=>!_0x348dac['isAdded']);for(let _0x13bc1e=0x0;_0x13bc1e<_0x571d9f['length'];_0x13bc1e++)_0x571d9f[_0x13bc1e]['isAdded']&&(_0x171489[_0x13bc1e]['isAdded']=_0x571d9f[_0x13bc1e]['isAdded']);}['_makeModelFromViewString'](_0x2bf807){const _0x34251e=JSON['parse'](_0x2bf807),_0x3553f7=this['editor']['editing']['view']['document'],_0x2b6935=new _0x1716b3(_0x3553f7,_0x34251e['map'](_0x19635d=>this['_getViewObj'](_0x19635d)));return this['editor']['data']['toModel'](_0x2b6935);}['_getViewObj'](_0x4e8da5){const _0x46949b=this['editor']['editing']['view']['document'];if('string'==typeof _0x4e8da5)return new _0x528d27(_0x46949b,_0x4e8da5);{const _0x241252=_0x4e8da5['children']['map'](_0xa597bc=>this['_getViewObj'](_0xa597bc));return new(Y[_0x4e8da5['type']]||_0x4f78dd)(_0x46949b,_0x4e8da5['name'],_0x4e8da5['attributes'],_0x241252);}}['_getDiff'](_0x33f5d7,_0x4f1590=null){const _0x2f8e5f=this['repository']['getRevision'](_0x33f5d7),_0x184254=_0x4f1590?this['repository']['getRevision'](_0x4f1590):null,_0x1cf881=this['_getRevisionsRange'](_0x2f8e5f,_0x184254),_0x457b25=_0x1cf881[_0x1cf881['length']-0x1],_0x32d404=new Map(),_0x3f717a={'model':{},'attributes':{},'changes':[]},_0x209677=new Set(),_0x51ee32=new Map();for(let _0xe73c97=_0x1cf881['length']-0x1;_0xe73c97>=0x0;_0xe73c97--){const _0x5b8b42=_0x1cf881[_0xe73c97];for(const _0x104a5e of Object['keys'](_0x5b8b42['diffData']))if(_0x5b8b42['diffData'][_0x104a5e]['attachChange']){const _0x4d7416=_0x5b8b42['diffData'][_0x104a5e]['attachChange'];_0x4d7416['isAttached']?(_0x209677['add'](_0x104a5e),_0x51ee32['has'](_0x104a5e)&&_0x51ee32['get'](_0x104a5e)['userId']==_0x4d7416['userId']?_0x51ee32['delete'](_0x104a5e):_0x51ee32['set'](_0x104a5e,_0x4d7416)):_0x51ee32['has'](_0x104a5e)?(_0x209677['delete'](_0x104a5e),_0x51ee32['delete'](_0x104a5e)):(_0x209677['add'](_0x104a5e),_0x51ee32['set'](_0x104a5e,_0x4d7416));}else _0x209677['add'](_0x104a5e);}for(const _0x44b8d8 of _0x209677){const _0x261357=_0x51ee32['has'](_0x44b8d8)&&!_0x51ee32['get'](_0x44b8d8)['isAttached'];let _0x2f83c5=_0x261357?_0x1cf881['length']-0x1:0x0;const _0x577178=_0x261357?-0x1:0x1;for(;_0x1cf881[_0x2f83c5];){const _0x2fddac=_0x1cf881[_0x2f83c5];if(_0x2fddac['diffData'][_0x44b8d8]){const _0x125514=_0x261357?_0x2fddac['diffData'][_0x44b8d8]['attributesBefore']:_0x2fddac['diffData'][_0x44b8d8]['attributesAfter'];_0x3f717a['attributes'][_0x44b8d8]=_0x125514?_0x30ebd2(_0x125514):{};break;}_0x2f83c5+=_0x577178;}}for(const _0x357962 of _0x1cf881){_0x357962['model']={};for(const _0x4ebb9b of _0x357962['authors'])_0x32d404['set'](_0x4ebb9b['id'],_0x4ebb9b);for(const _0x332391 of _0x209677){const _0x59837a=_0x357962['diffData'][_0x332391]?_0x357962['diffData'][_0x332391]['insertions']:'[]',_0xbf02ed=_0x357962['diffData'][_0x332391]?_0x357962['diffData'][_0x332391]['deletions']:'[]';_0x357962['model'][_0x332391]={'insertions':this['_makeModelFromViewString'](_0x59837a),'deletions':this['_makeModelFromViewString'](_0xbf02ed)};}}for(const _0x521f96 of _0x209677){let _0x176be9=null,_0x29b9c5=0x0;const _0x4fabee=new Map(Array['from'](_0x2f8e5f['model'][_0x521f96]['insertions']['markers'])['filter'](([_0x35a020])=>!_0x35a020['startsWith']('revision:')));let _0x20d067=0x0;for(const _0x20b295 of _0x1cf881){const _0x2b0021=this['_makeTape'](_0x20b295['model'][_0x521f96]['insertions']);_0x20b295==_0x2f8e5f?(_0x176be9=_0x2b0021,_0x29b9c5=_0x176be9['length'],_0x176be9['forEach'](_0x45d74a=>{_0x45d74a['id']=_0x20d067++;}),this['_processTape'](_0x176be9)):this['_markInsertions'](_0x176be9,_0x2b0021);const _0xaae583=_0x176be9['filter'](_0x3bfa4b=>!_0x3bfa4b['isAdded'])['map'](_0x2352d2=>_0x2352d2['id']);let _0x2f8222=0x0;const _0xa6cfe9=this['_makeTape'](_0x20b295['model'][_0x521f96]['deletions']);_0xa6cfe9['forEach'](_0x364f6d=>{_0x364f6d['isRemoved']?_0x364f6d['id']=_0x29b9c5++:_0x364f6d['id']=_0xaae583[_0x2f8222++];}),this['_processTape'](_0xa6cfe9),this['_setDistance'](_0x176be9,'isAdded'),this['_setDistance'](_0xa6cfe9,'isRemoved'),_0x20b295==_0x2f8e5f&&this['_markMarkers'](_0x176be9,_0x4fabee),_0x176be9=this['_joinTapes'](_0x176be9,_0xa6cfe9),this['_refreshStartEndIndex'](_0x176be9),this['_setDistance'](_0x176be9,'isRemoved');}_0x176be9=_0x176be9['filter'](_0x6e1cc5=>!(_0x6e1cc5['isAdded']&&_0x6e1cc5['isRemoved']));const _0x2a3803=new Map(_0x457b25['model'][_0x521f96]['deletions']['markers']),_0x41db5c=new Set(_0x4fabee['keys']());for(const _0x4c36a7 of _0x2a3803['keys']())_0x41db5c['delete'](_0x4c36a7);this['_markSuggestions'](_0x176be9,_0x41db5c),this['_fixObsoleteTags'](_0x176be9),_0x176be9=this['_removeMissingPairs'](_0x176be9),_0x176be9=this['_markMismatchedRemovedTags'](_0x176be9),_0x176be9=this['_removeUnsupportedChanges'](_0x176be9);const {root:_0x92f605,changes:_0x379658}=this['_makeModelFromTape'](_0x176be9,_0x32d404,_0x521f96);_0x3f717a['model'][_0x521f96]=_0x92f605;const _0x13eb03=_0x51ee32['get'](_0x521f96);if(_0x13eb03){const _0x3103e2=_0x32d404['get'](_0x13eb03['userId']),_0x473ee3=new r({'author':_0x3103e2,'type':_0x13eb03['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x521f96});_0x379658['unshift'](_0x473ee3),_0x3f717a['attributes'][_0x521f96]['revisionHistoryAttachChange']=_0x473ee3['id'];}_0x3f717a['changes']=_0x3f717a['changes']['concat'](_0x379658);}return _0x3f717a;}['_markMarkers'](_0x3e88ad,_0x586d74){for(let _0x446dd5=0x0;_0x446dd5<_0x3e88ad['length'];_0x446dd5++)for(const [_0x38971f,_0x4c638d]of _0x586d74)_0x4c638d['start']['isEqual'](_0x3e88ad[_0x446dd5]['previousPosition'])&&_0x3e88ad[_0x446dd5]['markersStart']['push'](_0x38971f),_0x4c638d['end']['isEqual'](_0x3e88ad[_0x446dd5]['nextPosition'])&&_0x3e88ad[_0x446dd5]['markersEnd']['push'](_0x38971f);}['_joinTapes'](_0x4775bc,_0x1765a7){let _0x18aaf7=[],_0x228a7a=0x0,_0x24f0c5=0x0;for(;_0x228a7a<_0x4775bc['length']||_0x24f0c5<_0x1765a7['length'];){const _0x2a0a72=_0x4775bc[_0x228a7a]||{},_0xa11b42=_0x1765a7[_0x24f0c5]||{};if(_0x2a0a72['id']==_0xa11b42['id'])_0x228a7a++,_0x24f0c5++,_0x18aaf7['push'](_0x2a0a72);else{if(_0xa11b42['isRemoved']&&_0x2a0a72['isAdded']){const {commonTape:_0x63a2c1,iEnd:_0x4cbb39,jEnd:_0x5bc752}=this['_threeWayMerge'](_0x4775bc,_0x228a7a,_0x1765a7,_0x24f0c5);_0x18aaf7=_0x18aaf7['concat'](_0x63a2c1),_0x228a7a=_0x4cbb39,_0x24f0c5=_0x5bc752;}else _0xa11b42['isRemoved']?(_0x24f0c5++,_0x18aaf7['push'](_0xa11b42)):(_0x228a7a++,_0x18aaf7['push'](_0x2a0a72));}}return _0x18aaf7;}['_markSuggestions'](_0x5dc4b4,_0x263ed2){const _0x39a4f6=[];for(let _0x40f18b=0x0;_0x40f18b<_0x5dc4b4['length'];_0x40f18b++){for(let _0x9e8ba=0x0;_0x9e8ba<_0x5dc4b4[_0x40f18b]['markersStart']['length'];_0x9e8ba++){const _0x486b85=_0x5dc4b4[_0x40f18b]['markersStart'][_0x9e8ba];if(!_0x263ed2['has'](_0x486b85))continue;const {group:_0x1123aa,type:_0x537c26,authorId:_0x245089}=_0x1c87ef(_0x486b85);'revision-suggestion'!=_0x1123aa||'insertion'!=_0x537c26&&'deletion'!=_0x537c26||(_0x39a4f6['unshift']({'type':_0x537c26,'name':_0x486b85,'userId':_0x245089}),_0x5dc4b4[_0x40f18b]['markersStart']['splice'](_0x9e8ba,0x1),_0x9e8ba--);}_0x1ccaef(_0x5dc4b4[_0x40f18b]);for(let _0x4c8083=0x0;_0x4c8083<_0x5dc4b4[_0x40f18b]['markersEnd']['length'];_0x4c8083++){const _0x45d7a6=_0x5dc4b4[_0x40f18b]['markersEnd'][_0x4c8083];if(!_0x263ed2['has'](_0x45d7a6))continue;const {group:_0x4280d8,type:_0x97279}=_0x1c87ef(_0x45d7a6);if('revision-suggestion'!=_0x4280d8||'insertion'!=_0x97279&&'deletion'!=_0x97279)continue;_0x5dc4b4[_0x40f18b]['markersEnd']['splice'](_0x4c8083,0x1),_0x4c8083--;const _0x2bc7dc=_0x39a4f6['findIndex'](_0x2916af=>_0x2916af['name']==_0x45d7a6);_0x2bc7dc>-0x1&&_0x39a4f6['splice'](_0x2bc7dc,0x1);}}function _0x1c87ef(_0x22cd5a){const _0x5d515a=_0x22cd5a['split'](':');return{'group':_0x5d515a[0x0],'type':_0x5d515a[0x1],'subType':_0x5d515a['length']>=0x5?_0x5d515a[0x2]:null,'id':_0x5d515a['length']<0x5?_0x5d515a[0x2]:_0x5d515a[0x3],'authorId':_0x5d515a['length']<0x5?_0x5d515a[0x3]:_0x5d515a[0x4],'markerCount':0x6==_0x5d515a['length']?_0x5d515a[0x5]:null};}function _0x1ccaef(_0x220d1f){for(let _0x5f3c27=0x0;_0x5f3c27<_0x39a4f6['length'];_0x5f3c27++){if(_0x220d1f['isAdded']&&'insertion'==_0x39a4f6[_0x5f3c27]['type'])return _0x220d1f['isAddSuggestion']=_0x39a4f6[_0x5f3c27],void delete _0x220d1f['isAdded'];if(!_0x220d1f['isAdded']&&!_0x220d1f['isRemoved']&&'deletion'==_0x39a4f6[_0x5f3c27]['type'])return void(_0x220d1f['isRemoveSuggestion']=_0x39a4f6[_0x5f3c27]);}}}['_setDistance'](_0xc27475,_0x4e3b6b){let _0x12f739=0x0,_0x1a632f=!0x1;const _0x541736=new Map();for(const _0x56937c of _0xc27475)_0x56937c[_0x4e3b6b]?_0x1a632f&&(_0x12f739++,_0x1a632f=!0x1):(_0x12f739++,_0x1a632f=!0x0),_0x541736['set'](_0x56937c['id'],_0x12f739);for(let _0x42d340=0x0;_0x42d340<_0xc27475['length'];_0x42d340++){if('isRemoved'==_0x4e3b6b&&_0xc27475[_0x42d340]['isAdded']||'isAdded'==_0x4e3b6b&&_0xc27475[_0x42d340]['isRemoved'])continue;if('text'==_0xc27475[_0x42d340]['type']){_0xc27475[_0x42d340]['distance']=0x0;continue;}const _0x291c04=_0x541736['get'](_0xc27475[_0x42d340]['pairId']),_0x3f6891=_0x541736['get'](_0xc27475[_0x42d340]['id']);_0xc27475[_0x42d340]['distance']=_0x291c04-_0x3f6891;}}['_getRevisionsRange'](_0x240444,_0x12cac9,_0x55d8a0=!0x1){const _0x230547=[];let _0x5dddf4=this['repository']['getIndex'](_0x240444),_0x231155=this['repository']['getIndex'](_0x12cac9);for(-0x1==_0x231155&&(_0x231155=this['repository']['_revisions']['length'],_0x55d8a0=!0x1);_0x5dddf4<_0x231155;)_0x230547['push'](this['repository']['getRevision'](_0x5dddf4)),_0x5dddf4++;return _0x55d8a0&&_0x230547['push'](this['repository']['getRevision'](_0x5dddf4)),_0x230547;}['_threeWayMerge'](_0xbffa90,_0x3f52a9,_0x318ca4,_0x276843){const _0x5ca96e=this['editor']['model']['schema'];let _0xb8f28e=_0x3f52a9;for(;_0xbffa90[_0xb8f28e]&&_0xbffa90[_0xb8f28e]['isAdded'];)_0xb8f28e++;let _0x2c46d1=_0x276843;for(;_0x318ca4[_0x2c46d1]&&_0x318ca4[_0x2c46d1]['isRemoved'];)_0x2c46d1++;_0x1b9c75(_0xbffa90,_0x3f52a9,_0xb8f28e),_0x1b9c75(_0x318ca4,_0x276843,_0x2c46d1);const _0x45fa2d=_0x318ca4['slice'](_0x276843,_0x2c46d1)['concat'](_0xbffa90['slice'](_0x3f52a9,_0xb8f28e));return _0x45fa2d['sort']((_0x549af9,_0x29786f)=>_0x549af9['side']!=_0x29786f['side']?_0x549af9['side']-_0x29786f['side']:_0x549af9['level']!=_0x29786f['level']?_0x549af9['level']-_0x29786f['level']:_0x549af9['distance']!=_0x29786f['distance']?_0x29786f['distance']-_0x549af9['distance']:!!_0x549af9['isAdded']!=!!_0x29786f['isAdded']?-0x1==_0x549af9['side']||0x0==_0x549af9['side']?_0x549af9['isAdded']?-0x1:0x1:_0x549af9['isAdded']?0x1:-0x1:_0x549af9['index']-_0x29786f['index']),{'commonTape':_0x45fa2d,'iEnd':_0xb8f28e,'jEnd':_0x2c46d1};function _0x1b9c75(_0x14a5db,_0x224ddf,_0x10ca95){let _0x56a85b=-0x1,_0x257ceb=Number['POSITIVE_INFINITY'],_0x4d0376=!0x0;for(let _0xa8eb5d=_0x224ddf;_0xa8eb5d<_0x10ca95;_0xa8eb5d++)if(_0x5ca96e['isInline'](_0x14a5db[_0xa8eb5d]['item'])||(_0x4d0376=!0x1),_0x14a5db[_0xa8eb5d]['item']['startIndex']<_0x224ddf&&(_0x56a85b=_0xa8eb5d),_0x14a5db[_0xa8eb5d]['item']['endIndex']>=_0x10ca95){_0x257ceb=_0xa8eb5d;break;}_0x4d0376&&(_0x56a85b=_0x10ca95-0x1);for(let _0xe0aa2a=_0x224ddf;_0xe0aa2a<_0x10ca95;_0xe0aa2a++)_0x14a5db[_0xe0aa2a]['side']=_0xe0aa2a<=_0x56a85b?-0x1:_0xe0aa2a<_0x257ceb?0x0:0x1,_0x14a5db[_0xe0aa2a]['index']=_0xe0aa2a;let _0xdb9fc2=0x0;for(let _0x35f1f8=_0x224ddf;_0x35f1f8<=_0x56a85b;_0x35f1f8++)0x0==_0x14a5db[_0x35f1f8]['distance']?_0x14a5db[_0x35f1f8]['level']=_0xdb9fc2:(_0xdb9fc2++,_0x14a5db[_0x35f1f8]['level']=_0xdb9fc2,_0xdb9fc2++);for(let _0x1f7840=_0x224ddf;_0x1f7840<_0x10ca95;_0x1f7840++)0x0==_0x14a5db[_0x1f7840]['side']&&(_0x14a5db[_0x1f7840]['level']=_0xdb9fc2);_0xdb9fc2=0x0;for(let _0x8bb581=_0x10ca95-0x1;_0x8bb581>=_0x257ceb;_0x8bb581--)0x0==_0x14a5db[_0x8bb581]['distance']?_0x14a5db[_0x8bb581]['level']=_0xdb9fc2:(_0xdb9fc2--,_0x14a5db[_0x8bb581]['level']=_0xdb9fc2,_0xdb9fc2--);}}['_fixObsoleteTags'](_0x20c87a){const _0x52c9ab=new Map(),_0x1e5635=this['editor']['model']['schema'];for(let _0xe4e697=0x1;_0xe4e697<_0x20c87a['length'];_0xe4e697++){let _0x442ae8,_0x39b072,_0x5336cf;const _0x3d2c57=_0x20c87a[_0xe4e697],_0x3d9e1b=_0x20c87a[_0xe4e697-0x1];if('text'==_0x3d2c57['type'])continue;if(_0x3d2c57['type']!=_0x3d9e1b['type'])continue;if(!_0x1e5635['isBlock'](_0x3d9e1b['item'])||_0x1e5635['isLimit'](_0x3d9e1b['item']))continue;if(!_0x1e5635['isBlock'](_0x3d2c57['item'])||_0x1e5635['isLimit'](_0x3d2c57['item']))continue;if((_0x20c87a[_0xe4e697]['isAdded']||_0x20c87a[_0xe4e697]['isAddSuggestion'])&&_0x20c87a[_0xe4e697-0x1]['isRemoved'])_0x442ae8=_0x20c87a[_0xe4e697],_0x39b072=_0x20c87a[_0xe4e697-0x1],_0x5336cf=_0xe4e697-0x1;else{if(!_0x20c87a[_0xe4e697]['isRemoved']||!_0x20c87a[_0xe4e697-0x1]['isAdded']&&!_0x20c87a[_0xe4e697-0x1]['isAddSuggestion'])continue;_0x442ae8=_0x20c87a[_0xe4e697-0x1],_0x39b072=_0x20c87a[_0xe4e697],_0x5336cf=_0xe4e697;}const _0x31e38c=_0x442ae8['level']==_0x39b072['level'],_0x166b64=Math['abs'](_0x442ae8['level'])<Math['abs'](_0x39b072['level'])&&0x0==_0x39b072['distance'];(_0x31e38c||_0x166b64)&&(_0x52c9ab['set'](_0x39b072['id'],_0x442ae8['id']),_0x20c87a['splice'](_0x5336cf,0x1),_0xe4e697--,_0x442ae8['isAdded']=!0x1);}for(let _0x242f04=0x0;_0x242f04<_0x20c87a['length'];_0x242f04++)_0x52c9ab['has'](_0x20c87a[_0x242f04]['pairId'])&&(_0x20c87a[_0x242f04]['pairId']=_0x52c9ab['get'](_0x20c87a[_0x242f04]['pairId']));}['_removeMissingPairs'](_0x2af9d7){const _0x21423f=new Set(_0x2af9d7['map'](_0x292f9a=>_0x292f9a['id']));for(let _0x1545d3=0x0;_0x1545d3<_0x2af9d7['length'];_0x1545d3++)_0x21423f['has'](_0x2af9d7[_0x1545d3]['pairId'])||0x0==_0x2af9d7[_0x1545d3]['distance']||(_0x2af9d7[_0x1545d3]['isIncorrect']=!0x0);return _0x2af9d7['filter'](_0x5eddb7=>!_0x5eddb7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x531ffd){const _0xb73e62=new Set();for(let _0x9f5dea=0x0;_0x9f5dea<_0x531ffd['length'];_0x9f5dea++){if(_0xb73e62['has'](_0x531ffd[_0x9f5dea]['id'])&&_0x531ffd[_0x9f5dea]['isRemoved']&&(_0x531ffd[_0x9f5dea]['isIncorrect']=!0x0),_0x531ffd[_0x9f5dea]['isIncorrect'])continue;if(0x0==_0x531ffd[_0x9f5dea]['distance'])continue;if('elementStart'!=_0x531ffd[_0x9f5dea]['type'])continue;if(null==_0x531ffd[_0x9f5dea]['pairId'])continue;let _0x2470ed=_0x9f5dea+0x1,_0x623f84=0x0;for(;_0x531ffd[_0x2470ed]['id']!=_0x531ffd[_0x9f5dea]['pairId'];)'elementStart'==_0x531ffd[_0x2470ed]['type']?_0x623f84++:'elementEnd'==_0x531ffd[_0x2470ed]['type']&&_0x623f84--,_0x2470ed++;if(0x0!=_0x623f84){if(_0x531ffd[_0x9f5dea]['isRemoved'])_0x531ffd[_0x9f5dea]['isIncorrect']=!0x0;else{for(;_0x2470ed!=_0x9f5dea;)_0x531ffd[_0x2470ed]['isRemoved']&&0x0!=_0x531ffd[_0x2470ed]['distance']&&(_0x531ffd[_0x2470ed]['isIncorrect']=!0x0,_0xb73e62['add'](_0x531ffd[_0x2470ed]['pairId'])),_0x2470ed--;}}}return _0x531ffd['filter'](_0x3fe1ae=>!_0x3fe1ae['isIncorrect']);}['_removeUnsupportedChanges'](_0x4237ef){const _0x2a40bd=this['editor']['model']['schema'];for(let _0x190278=0x0;_0x190278<_0x4237ef['length'];_0x190278++){if(!(_0x4237ef[_0x190278]['isAdded']||_0x4237ef[_0x190278]['isAddSuggestion']||_0x4237ef[_0x190278]['isRemoved']||_0x4237ef[_0x190278]['isRemoveSuggestion']))continue;if(0x0==_0x4237ef[_0x190278]['distance'])continue;const _0x2e2984=_0x4237ef[_0x190278]['item'];_0x2a40bd['isBlock'](_0x2e2984)||_0x2a40bd['isLimit'](_0x2e2984)||(_0x4237ef[_0x190278]['isAdded']&&delete _0x4237ef[_0x190278]['isAdded'],_0x4237ef[_0x190278]['isAddSuggestion']&&delete _0x4237ef[_0x190278]['isAddSuggestion'],_0x4237ef[_0x190278]['isRemoveSuggestion']&&delete _0x4237ef[_0x190278]['isRemoveSuggestion'],_0x4237ef[_0x190278]['isRemoved']&&(_0x4237ef[_0x190278]['isIncorrect']=!0x0));}return _0x4237ef['filter'](_0x26a151=>!_0x26a151['isIncorrect']);}['_makeModelFromTape'](_0x581b20,_0x1f6959,_0x31584c){const _0x1d790e=new mt(),_0x2b7082=[],_0x4887d2=new Map(),_0x8d3b46=this['editor']['model'],_0x4d805d=_0x8d3b46['schema'],_0x56c3d4=[_0x1d790e],_0x6eab93={},_0x29c6ca={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x58397b=null;const _0x46d309=[0x0];for(let _0x240afa=0x0;_0x240afa<_0x581b20['length'];_0x240afa++)if('elementStart'===_0x581b20[_0x240afa]['type']){_0x581b20[_0x240afa]['previousPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309);const _0xa828ae=new ft(_0x581b20[_0x240afa]['item']['name'],_0x581b20[_0x240afa]['item']['getAttributes']());_0x56c3d4[0x0]['_appendChild'](_0xa828ae),_0x46d309['push'](0x0),_0x56c3d4['unshift'](_0xa828ae),_0x581b20[_0x240afa]['nextPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309);}else'elementEnd'===_0x581b20[_0x240afa]['type']?(_0x56c3d4['shift'](),_0x581b20[_0x240afa]['previousPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309),_0x46d309['pop'](),_0x46d309[_0x46d309['length']-0x1]++,_0x581b20[_0x240afa]['nextPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309)):(_0x581b20[_0x240afa]['previousPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309),_0x58397b?_0x58397b['_data']+=_0x581b20[_0x240afa]['item']['data']:_0x58397b=new wt(_0x581b20[_0x240afa]['item']['data'],_0x581b20[_0x240afa]['item']['getAttributes']()),_0x581b20[_0x240afa+0x1]&&'text'===_0x581b20[_0x240afa+0x1]['type']&&_0x370dc3(_0x58397b,_0x581b20[_0x240afa+0x1]['item'])||(_0x56c3d4[0x0]['_appendChild'](_0x58397b),_0x58397b=null),_0x46d309[_0x46d309['length']-0x1]+=_0x581b20[_0x240afa]['item']['offsetSize'],_0x581b20[_0x240afa]['nextPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309));for(let _0x51e4f8=0x0;_0x51e4f8<_0x581b20['length'];_0x51e4f8++){const _0x80e972=_0x581b20[_0x51e4f8]['previousPosition'],_0x126462=_0x581b20[_0x51e4f8]['nextPosition'];for(const _0x5bb9fa of _0x581b20[_0x51e4f8]['markersStart'])_0x4887d2['set'](_0x5bb9fa,{'start':_0x80e972,'end':null});_0x1eeccb('isRemoveSuggestion',_0x51e4f8,_0x80e972,_0x126462),_0x1eeccb('isAddSuggestion',_0x51e4f8,_0x80e972,_0x126462),_0x1eeccb('isRemoved',_0x51e4f8,_0x80e972,_0x126462),_0x1eeccb('isAdded',_0x51e4f8,_0x80e972,_0x126462);for(const _0x34c6b5 of _0x581b20[_0x51e4f8]['markersEnd']){_0x4887d2['get'](_0x34c6b5)['end']=_0x126462;}}for(const [_0x2cb2e8,_0x41b6e1]of _0x4887d2){const _0x308c82=this['editor']['model']['createRange'](_0x41b6e1['start'],_0x41b6e1['end']);_0x1d790e['markers']['set'](_0x2cb2e8,_0x308c82);}return _0x2b7082['sort']((_0x477102,_0x1b02d9)=>{const _0x49bfb8=_0x1d790e['markers']['get']('revision:'+_0x477102['id']),_0x3ad560=_0x1d790e['markers']['get']('revision:'+_0x1b02d9['id']);return _0x49bfb8['start']['isBefore'](_0x3ad560['start'])?-0x1:_0x49bfb8['start']['isAfter'](_0x3ad560['start'])?0x1:_0x49bfb8['end']['isBefore'](_0x3ad560['end'])?-0x1:_0x49bfb8['end']['isAfter'](_0x3ad560['end'])?0x1:'add'===_0x477102['type']?-0x1:0x1;}),{'root':_0x1d790e,'changes':_0x2b7082};function _0x1eeccb(_0x426391,_0x467df1,_0x105232,_0x32129e){const _0xfad31f=!!_0x581b20[_0x467df1][_0x426391],_0x15ad28=_0xfad31f?_0x581b20[_0x467df1][_0x426391]['userId']:null,_0x5a7c78=_0x467df1===_0x581b20['length']-0x1,_0x2b19ea=_0x29c6ca[_0x426391][0x0],_0x48f6c6=_0x4d805d['isObject'](_0x581b20[_0x467df1]['item']);!_0x6eab93[_0x426391]&&_0xfad31f?_0x6eab93[_0x426391]={'start':_0x105232,'tapeItem':_0x581b20[_0x467df1],'userId':_0x15ad28,'type':_0x426391}:_0x6eab93[_0x426391]&&!_0xfad31f?(_0x6eab93[_0x426391]['end']=_0x105232,_0x52357e(_0x6eab93[_0x426391]),_0x6eab93[_0x426391]=null):_0x6eab93[_0x426391]&&_0xfad31f&&_0x6eab93[_0x426391]['userId']!==_0x15ad28&&(_0x6eab93[_0x426391]['end']=_0x105232,_0x2b19ea&&_0x2b19ea['userId']===_0x6eab93[_0x426391]['userId']||_0x52357e(_0x6eab93[_0x426391]),_0x6eab93[_0x426391]={'start':_0x105232,'tapeItem':_0x581b20[_0x467df1],'userId':_0x15ad28,'type':_0x426391}),_0x6eab93[_0x426391]&&_0x48f6c6&&('elementStart'!==_0x581b20[_0x467df1]['type']||_0x2b19ea&&_0x2b19ea['userId']===_0x15ad28||_0x29c6ca[_0x426391]['unshift']({'userId':_0x15ad28,'object':_0x581b20[_0x467df1]['item'],'change':_0x6eab93[_0x426391]}),'elementEnd'===_0x581b20[_0x467df1]['type']&&_0x2b19ea&&_0x2b19ea['object']===_0x581b20[_0x467df1]['item']&&(_0x29c6ca[_0x426391]['shift'](),_0x6eab93[_0x426391]=_0x2b19ea['change'])),_0x6eab93[_0x426391]&&_0x5a7c78&&(_0x6eab93[_0x426391]['end']=_0x32129e,_0x52357e(_0x6eab93[_0x426391]),_0x6eab93[_0x426391]=null);}function _0x52357e({start:_0x5c14bd,end:_0x1b580f,tapeItem:_0x54fefc,userId:_0x4a02eb,type:_0x53c49b}){const _0xd108c9=_0x54fefc['item'],_0x1ba816=_0x8d3b46['schema']['isBlock'](_0xd108c9)&&!_0x8d3b46['schema']['isLimit'](_0xd108c9),_0x3b63a2=_0x5c14bd['nodeAfter']==_0x1b580f['parent']&&_0x1b580f['isAtStart'];if(_0x1ba816&&_0x3b63a2)return;const _0x4b1cb1=_0x8d3b46['createRange'](_0x5c14bd,_0x1b580f),_0x56f82b=_0x1f6959['get'](_0x4a02eb),_0x54c1fa=new r({'author':_0x56f82b,'type':'isAdded'==_0x53c49b||'isAddSuggestion'==_0x53c49b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x53c49b||'isRemoveSuggestion'==_0x53c49b},'createdAt':new Date(),'rootName':_0x31584c});_0x2b7082['push'](_0x54c1fa),_0x1d790e['markers']['set']('revision:'+_0x54c1fa['id'],_0x4b1cb1);}function _0x370dc3(_0x2e7008,_0x2972d5){const _0xe008d7=_0x2e7008['getAttributes'](),_0x589d1c=_0x2972d5['getAttributes']();for(const _0x5cced3 of _0xe008d7){if(_0x5cced3[0x1]!==_0x2972d5['getAttribute'](_0x5cced3[0x0]))return!0x1;_0x589d1c['next']();}return _0x589d1c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3a9007=>{const _0x3b592a=_0x3a9007['markerName']['split'](':')[0x1],_0x254be5=this['_getChangeFromId'](_0x3b592a);if(!_0x254be5)return null;const _0x11e7fe='add'==_0x254be5['type']?'insertion':'deletion',_0x23eaf9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11e7fe];return _0x254be5['data']['isSuggestion']&&_0x23eaf9['push']('ck-suggestion-marker-'+_0x11e7fe+'-new'),this['activeChange']==_0x254be5&&_0x23eaf9['push']('ck-suggestion-marker--active'),{'classes':_0x23eaf9,'attributes':{'data-change-id':_0x3b592a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5d5278=>{_0x5d5278['on']('element:pre',(_0x203473,_0xa5da87,_0x391543)=>{const _0x3958c2=_0xa5da87['viewItem']['getChild'](0x0);if(!_0x3958c2||!_0x3958c2['is']('element','code'))return;if(!_0x391543['consumable']['consume'](_0x3958c2,{'attributes':['vid_start','vid_end']}))return;const _0x1212d3=_0xa5da87['modelRange']['start']['nodeAfter'];_0x391543['writer']['setAttribute']('vid_start',_0x3958c2['getAttribute']('vid_start'),_0x1212d3),_0x391543['writer']['setAttribute']('vid_end',_0x3958c2['getAttribute']('vid_end'),_0x1212d3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5112bb=>{_0x5112bb['on']('element',(_0x5caf3f,_0x2e4391,_0x5533fc)=>{if(!_0x5533fc['consumable']['consume'](_0x2e4391['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2e4391['modelRange']['isCollapsed'])return;const _0x516353=_0x2e4391['modelRange']['start']['nodeAfter'];_0x516353['hasAttribute']('vid_start')||_0x516353['hasAttribute']('vid')||(_0x5533fc['writer']['setAttribute']('vid_start',_0x2e4391['viewItem']['getAttribute']('vid_start'),_0x516353),_0x5533fc['writer']['setAttribute']('vid_end',_0x2e4391['viewItem']['getAttribute']('vid_end'),_0x516353));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3434b4=>_0x3434b4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x16a027,[,_0x6093b5])=>{['vid_start','vid_end','vid']['includes'](_0x6093b5)&&(_0x16a027['return']=!0x0,_0x16a027['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2b262a=>{_0x2b262a['on']('attribute:vid',(_0x1b2ef6,_0x4ec023,_0x486879)=>{if('\x20'!=_0x4ec023['item']['data']||_0x4ec023['item']['parent']['maxOffset']>0x1)return;if(!_0x486879['consumable']['consume'](_0x4ec023['item'],_0x1b2ef6['name']))return;const _0x2ab53a=_0x486879['writer'],_0x263609=_0x486879['mapper']['toViewRange'](_0x4ec023['range']);_0x2ab53a['wrap'](_0x263609,_0x2ab53a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2f064a){const _0xd61c6f=_0x2f064a['plugins']['get']('RevisionViewer');return(_0x40b7a2,_0x4ea769,_0x32e56d)=>{const _0x264765=_0x4ea769['markerName']['split'](':')[0x1],_0x1fbf57=_0xd61c6f['_getChangeFromId'](_0x264765);if(!_0x1fbf57)return null;const _0x8e4544='add'==_0x1fbf57['type']?'split':'merge';if(!_0x32e56d['consumable']['test'](_0x4ea769['markerRange'],_0x40b7a2['name']))return;const _0x22eb50=_0x4ea769['markerRange']['getWalker'](),_0xd0ea50=_0x4ea769['markerRange']['start'],_0x389c80=_0x2f064a['model']['schema'];let _0x186b47=null,_0x473b88=null,_0x43d0=!0x1,_0xad8a9=!0x1;for(const _0x13b599 of _0x22eb50){const _0x4facbf=_0x13b599['item'];_0x43d0=_0x43d0||_0x389c80['isContent'](_0x4facbf);const _0x11744c=_0x32e56d['mapper']['toViewElement'](_0x4facbf);if(_0x11744c&&_0x11744c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13b599['type']&&(_0x389c80['isBlock'](_0x4facbf)&&!_0x389c80['isLimit'](_0x4facbf)&&(_0x4facbf['nextSibling']||_0xd0ea50['isAtEnd']?_0x186b47&&_0x186b47['parent']==_0x4facbf||(_0x186b47=_0x4facbf,_0x2a0b1c(_0x13b599['previousPosition']),_0xad8a9=!0x0):_0x473b88=_0x473b88||_0x13b599['previousPosition']));}function _0x2a0b1c(_0x55fca5){const _0x1d14ee=_0x32e56d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8e4544}),_0x9d3c3e=_0x32e56d['mapper']['toViewPosition'](_0x55fca5);_0x1fbf57['data']['isSuggestion']&&_0x32e56d['writer']['addClass']('ck-suggestion-marker-'+_0x8e4544+'-new',_0x1d14ee),_0xd61c6f['activeChange']==_0x1fbf57&&_0x32e56d['writer']['addClass']('ck-suggestion-marker--active',_0x1d14ee),_0x32e56d['writer']['insert'](_0x9d3c3e,_0x1d14ee),_0x32e56d['mapper']['bindElementToMarker'](_0x1d14ee,_0x4ea769['markerName']);}_0x43d0||_0xad8a9||!_0x473b88||_0x2a0b1c(_0x473b88);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x33e9c7,_0x1ff832,_0x6e964e)=>{const _0x60390=_0x6e964e['mapper']['markerNameToElements'](_0x1ff832['markerName']);if(_0x60390){for(const _0x25764e of _0x60390)(_0x25764e['hasClass']('ck-suggestion-marker-split')||_0x25764e['hasClass']('ck-suggestion-marker-merge'))&&(_0x6e964e['mapper']['unbindElementFromMarkerName'](_0x25764e,_0x1ff832['markerName']),_0x6e964e['writer']['remove'](_0x25764e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd271c6,_0x1858c4,_0x53465e)=>{const _0x237c7a=_0x1858c4['markerName']['split'](':')[0x1],_0x19eec7=this['_getChangeFromId'](_0x237c7a);if(!_0x19eec7)return null;const _0x58fbb6='add'==_0x19eec7['type']?'split':'merge';if(_0x53465e['consumable']['test'](_0x1858c4['markerRange'],_0xd271c6['name']))for(const _0x19f2e1 of _0x1858c4['markerRange']['getItems']()){if(!_0x19f2e1['is']('element','softBreak'))continue;const _0x1c52ed=_0x53465e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58fbb6}),_0x5b3801=_0x53465e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x19f2e1));_0x19eec7['data']['isSuggestion']&&_0x53465e['writer']['addClass']('ck-suggestion-marker-'+_0x58fbb6+'-new',_0x1c52ed),this['activeChange']==_0x19eec7&&_0x53465e['writer']['addClass']('ck-suggestion-marker--active',_0x1c52ed),_0x53465e['writer']['insert'](_0x5b3801,_0x1c52ed),_0x53465e['mapper']['bindElementToMarker'](_0x1c52ed,_0x1858c4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3642bd=>{for(const _0x1bf9a2 of this['editor']['model']['document']['getRootNames']()){const _0x30970f=this['editor']['model']['document']['getRoot'](_0x1bf9a2),_0x3a27e4=this['editor']['editing']['view']['document']['getRoot'](_0x1bf9a2);if(_0x3a27e4){const _0x39ebbb=_0x30970f['getAttribute']('revisionHistoryAttachChange');if(_0x3642bd['removeAttribute']('data-change-id',_0x3a27e4),_0x3642bd['removeClass']('ck-revision-history-root-add',_0x3a27e4),_0x3642bd['removeClass']('ck-revision-history-root-remove',_0x3a27e4),_0x3642bd['removeClass']('ck-revision-history-root--active',_0x3a27e4),_0x39ebbb){const _0x5a12ef=this['_getChangeFromId'](_0x39ebbb);if(!_0x5a12ef)return null;_0x3642bd['setAttribute']('data-change-id',_0x39ebbb,_0x3a27e4),_0x3642bd['addClass']('ck-revision-history-root-'+_0x5a12ef['type'],_0x3a27e4),this['activeChange']==_0x5a12ef&&_0x3642bd['addClass']('ck-revision-history-root--active',_0x3a27e4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x116fca=>'revision-comment:'+_0x116fca,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x90113b=>'revision-suggestion:'+_0x90113b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1d5f12=>({'name':'suggestion:'+_0x1d5f12,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x46495b=>{const _0x2ff216=_0x46495b['markerName']['split'](':')[0x1];return'insertion'!=_0x2ff216&&'deletion'!=_0x2ff216?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2ff216]};}}),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',(_0x183625,_0x4afe16,_0x1913fc)=>{const _0x38cc5b=_0x1913fc['mapper']['markerNameToElements'](_0x4afe16['markerName']);if(_0x38cc5b){for(const _0x32bb0a of _0x38cc5b)_0x32bb0a['is']('uiElement')&&(_0x1913fc['mapper']['unbindElementFromMarkerName'](_0x32bb0a,_0x4afe16['markerName']),_0x1913fc['writer']['remove'](_0x32bb0a));}},{'priority':'high'});}['_getChangeFromId'](_0xe981dc){return this['_changeIdToChange']['get'](_0xe981dc);}['_getViewForChange'](_0x3705ba){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3705ba),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x41b811,_0x55efa9,_0x5d4f1f,_0x397617)=>{_0x397617&&this['_balloon']['remove'](_0x397617),_0x5d4f1f&&(this['_balloon']['add']({'view':_0x5d4f1f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x908611=this['editor']['editing'],_0x54f46e=this['_getChangeFromId'](_0x5d4f1f['changeId']);let _0x2a0040;if(_0x54f46e['data']['isOnRoot']){const _0x15fafa=_0x908611['view']['getDomRoot'](_0x54f46e['rootName']);_0x2a0040=Array['from'](_0x15fafa['getClientRects']());}else{const _0x16850e=this['editor']['model']['markers']['get']('revision:'+_0x5d4f1f['changeId']);_0x2a0040=Array['from'](_0x908611['mapper']['markerNameToElements'](_0x16850e['name']))['map'](_0x432bf7=>_0x908611['view']['domConverter']['mapViewToDom'](_0x432bf7))['map'](_0xbce470=>Array['from'](_0xbce470['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2a0040[0x0];return _0x2a0040['find'](_0x2e3e23=>_0x2e3e23['top']-0x3<=this['_activeViewTarget']['y']&&_0x2e3e23['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2e3e23['left']-0x3<=this['_activeViewTarget']['x']&&_0x2e3e23['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a0040[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5ba897,_0x5026c8,_0x3f93fd,_0x5d6595)=>{this['activeView']=_0x3f93fd?this['_getViewForChange'](_0x3f93fd):null,this['editor']['model']['change'](()=>{const _0x1c57c2=this['editor']['editing'];_0x5d6595&&(_0x5d6595['data']['isOnRoot']?_0x1c57c2['view']['change'](_0x4262dc=>{_0x4262dc['removeClass']('ck-revision-history-root--active',_0x1c57c2['view']['document']['getRoot'](_0x5d6595['rootName']));}):_0x1c57c2['reconvertMarker']('revision:'+_0x5d6595['id'])),_0x3f93fd&&(_0x3f93fd['data']['isOnRoot']?_0x1c57c2['view']['change'](_0x28bea5=>{_0x28bea5['addClass']('ck-revision-history-root--active',_0x1c57c2['view']['document']['getRoot'](_0x3f93fd['rootName']));}):_0x1c57c2['reconvertMarker']('revision:'+_0x3f93fd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1191e5,_0x388f41)=>{if(this['activeChange'])return;const _0x503fab=this['_findChangeIdFromDomTarget'](_0x388f41['target']),_0x54749c=this['_changeIdToChange']['get'](_0x503fab);_0x54749c?(this['_activeViewTarget']={'x':_0x388f41['domEvent']['x'],'y':_0x388f41['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x54749c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2425cc,_0xb7f237)=>{const _0x414704=this['_findChangeIdFromDomTarget'](_0xb7f237['target']),_0x2c1983=this['_changeIdToChange']['get'](_0x414704);_0x2c1983?(this['_activeViewTarget']={'x':_0xb7f237['domEvent']['x'],'y':_0xb7f237['domEvent']['y']},_0x2c1983===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2c1983):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d283a){do{const _0x174724=_0x1d283a['getAttribute']('data-change-id');if(_0x174724)return _0x174724;_0x1d283a=_0x1d283a['parent'];}while(_0x1d283a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x17ec69=>{for(const _0x48ae58 of this['editor']['model']['markers'])_0x17ec69['removeMarker'](_0x48ae58);});}}function Z(_0x2bd706,_0x56c603){return(_0x3c9622,_0xd4efcd,_0x4f3cb6)=>{if(!_0x4f3cb6['consumable']['test'](_0xd4efcd['markerRange'],_0x3c9622['name']))return;const _0x43eca2=_0xd4efcd['markerRange']['getWalker'](),_0x5ca82a=_0xd4efcd['markerRange']['start'],_0x31438e=_0x2bd706['model']['schema'];let _0x2d08f1=null,_0x5debd4=null,_0x2bfb97=!0x1,_0x3902ca=!0x1;for(const _0x49d145 of _0x43eca2){const _0x20b895=_0x49d145['item'];_0x2bfb97=_0x2bfb97||_0x31438e['isContent'](_0x20b895);const _0x123622=_0x4f3cb6['mapper']['toViewElement'](_0x20b895);if(_0x123622&&_0x123622['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49d145['type']&&(_0x31438e['isBlock'](_0x20b895)&&!_0x31438e['isLimit'](_0x20b895)&&(_0x20b895['nextSibling']||_0x5ca82a['isAtEnd']?_0x2d08f1&&_0x2d08f1['parent']==_0x20b895||(_0x2d08f1=_0x20b895,_0x3b6a4e(_0x49d145['previousPosition']),_0x3902ca=!0x0):_0x5debd4=_0x5debd4||_0x49d145['previousPosition']));}function _0x3b6a4e(_0x5382dc){const _0x3ab21c=_0x4f3cb6['mapper']['toViewPosition'](_0x5382dc),_0x14a68b=_0x4f3cb6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x56c603});_0x4f3cb6['writer']['insert'](_0x3ab21c,_0x14a68b),_0x4f3cb6['mapper']['bindElementToMarker'](_0x14a68b,_0xd4efcd['markerName']);}_0x2bfb97||_0x3902ca||!_0x5debd4||_0x3b6a4e(_0x5debd4);};}class _t extends _0x3ed6a1{constructor(_0x1b7f2a){super(_0x1b7f2a);const _0x39a2cc=_0x1b7f2a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x39a2cc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x39a2cc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x41bb19=this['editor'],_0x11ca79=_0x41bb19['plugins']['get'](d),_0x2cc89d=_0x11ca79['isReady']?_0x11ca79['diff']['newRevisionId']:null;_0x41bb19['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2cc89d);}['refresh'](){const {isReady:_0x5d7648,isEnabled:_0x5bb09e,repository:_0x47c112,diff:_0x26ab7b}=this['editor']['plugins']['get'](d),_0xaf6280=_0x26ab7b&&_0x47c112['getLaterVisibleRevision'](_0x26ab7b['newRevisionId']);this['isEnabled']=_0x5d7648&&_0x5bb09e&&Boolean(_0xaf6280);}}class yt extends _0x3ed6a1{['_step'];constructor(_0x272856,{direction:_0x280f07}){super(_0x272856);const _0x3a6ece=_0x272856['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x280f07?0x1:-0x1,this['listenTo'](_0x3a6ece,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a6ece,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3a6ece,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x44206a=this['editor'],_0x4f4bcf=_0x44206a['plugins']['get'](d),{isNavigationMode:_0x3a1c33,currentChangeNumber:_0x1a8d3d}=_0x4f4bcf;let _0x27a933;if(_0x4f4bcf['activeChange']=_0x3a1c33?_0x4f4bcf['diff']['changes']['get'](_0x1a8d3d+this['_step']):_0x4f4bcf['diff']['changes']['first'],_0x4f4bcf['activeChange']['data']['isOnRoot'])_0x27a933=_0x44206a['editing']['view']['getDomRoot'](_0x4f4bcf['activeChange']['rootName']);else{const _0x12b510=_0x44206a['model']['markers']['get']('revision:'+_0x4f4bcf['activeChange']['id']);_0x27a933=_0x59db08(_0x44206a['editing'],_0x12b510);}_0x503e76({'target':_0x27a933,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1d4631,currentChangeNumber:_0x2a0f6a,numberOfChanges:_0x4c390c,isReady:_0x4a174d,isEnabled:_0x439fb2}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x439fb2&&_0x4a174d&&_0x4c390c)&&(!_0x1d4631||(0x1===this['_step']?_0x2a0f6a<_0x4c390c-0x1:_0x2a0f6a>0x0));}}class _i extends _0xb5bc71{constructor(_0x49b967){super(_0x49b967);const _0x1d2774=this['bindTemplate'],_0x493d82=new _0xe84945(_0x49b967),_0x445ce5=new _0xe84945(_0x49b967);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',(_0x38f610,_0x32ca4c)=>_0x38f610&&_0x32ca4c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2c6a5a,_0x4f7425,_0x333e88,_0x1a58b1)=>{if(!_0x2c6a5a)return m(_0x49b967,'Loading...');if(!_0x333e88)return m(_0x49b967,'No\x20changes');const _0x568f18=m(_0x49b967,'NUMBER_OF_CHANGES',_0x333e88);return _0x1a58b1?m(_0x49b967,'X_OF_Y_CHANGES',[_0x4f7425+0x1,_0x333e88]):_0x568f18;}),_0x493d82['set']({'label':m(_0x49b967,'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'}),_0x445ce5['set']({'label':m(_0x49b967,'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'}),_0x493d82['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x445ce5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x493d82['on']('execute',()=>this['fire']('execute','backward')),_0x445ce5['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',_0x1d2774['if']('_isStatusLabelVisible','ck-hidden',_0x56dd0d=>!_0x56dd0d)]},'children':[{'text':_0x1d2774['to']('isNavigationMode',_0x7bf4b2=>_0x7bf4b2?m(_0x49b967,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x49b967,'Total')+':\x20')}]},{'text':_0x1d2774['to']('_statusText')}]},new _0xb4512e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x493d82,_0x445ce5]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x29e489{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x55706a=this['editor']['editing']['view'];_0x55706a['change'](_0xd44cdc=>{for(const _0x5a241e of _0x55706a['document']['roots'])_0xd44cdc['addClass'](ce,_0x5a241e);});}['hide'](){const _0x2d69a1=this['editor']['editing']['view'];_0x2d69a1['change'](_0x1cf533=>{for(const _0x5873b5 of _0x2d69a1['document']['roots'])_0x1cf533['removeClass'](ce,_0x5873b5);});}}class g extends _0x29e489{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x21fb78=this['editor'],_0x5adfb8=_0x21fb78['plugins']['get'](d),_0x2f3293=_0x21fb78['plugins']['get'](le);_0x21fb78['ui']['componentFactory']['add']('exitToEditing',_0x433072=>{const _0x2be49b=new _0xe84945(_0x433072);return _0x2be49b['set']({'label':m(_0x433072,'Back\x20to\x20editing'),'icon':_0x4a7550['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2be49b,'execute',()=>{_0x21fb78['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2be49b;}),_0x21fb78['ui']['componentFactory']['add']('restoreRevision',_0x240f22=>{const _0x1046c6=new _0xe84945(_0x240f22);return _0x1046c6['set']({'label':m(_0x240f22,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1046c6['bind']('isEnabled')['to'](_0x21fb78['commands']['get']('restoreRevision')),this['listenTo'](_0x1046c6,'execute',()=>_0x21fb78['execute']('restoreRevision')),_0x1046c6;}),_0x21fb78['ui']['componentFactory']['add']('changesNavigation',_0xfc25b5=>{const _0x3674af=new _i(_0xfc25b5),_0x34d652=_0x21fb78['commands']['get']('showPreviousChange'),_0x1e5461=_0x21fb78['commands']['get']('showNextChange');return _0x3674af['bind']('isBackwardNavigationEnabled')['to'](_0x34d652,'isEnabled'),_0x3674af['bind']('isForwardNavigationEnabled')['to'](_0x1e5461,'isEnabled'),_0x3674af['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5adfb8),this['listenTo'](_0x3674af,'execute',(_0x4172b6,_0x217001)=>{_0x21fb78['execute']('forward'===_0x217001?'showNextChange':'showPreviousChange');}),_0x3674af;}),_0x2f3293['show'](),_0x5adfb8['on']('change:isReady',(_0x49ee4b,_0x5a54d2,_0x24f72b)=>{_0x24f72b?_0x2f3293['hide']():_0x2f3293['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x388f32,_0x47cf3d){super(_0x388f32,_0x47cf3d);const _0x4ff2c7=this['bindTemplate'];this['set']({'label':m(_0x388f32,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x388f32,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ff2c7['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 _0x41bf6a=this['fieldView']['element'];this['_tooltipString']=_0x41bf6a['scrollWidth']>_0x41bf6a['clientWidth']&&_0x41bf6a['value']||'';}}class ti extends _0xb5bc71{constructor(_0x24c52b,_0x506960,_0x33791a){super(_0x24c52b);const _0x24cfbf=new _0x29d439();_0x24cfbf['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 _0x4cd79f=['ck','ck-revision-history-sidebar__revision-author'];_0x33791a&&_0x4cd79f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5a89ff=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x24c52b,_0x33791a?'Revision\x20creator':'Revision\x20author')},'children':[_0x24cfbf,_0x506960['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4cd79f},'children':_0x5a89ff});}}function ni(_0x5f320f,_0x52c36b){const _0x5498e5=_0x5f320f['bindTemplate'],_0x3f8e93=_0x5f320f['locale'],_0x5f30e0=_0x417cf8(_0x3f8e93);_0x5f30e0['panelPosition']='sw';const _0x45541d=function(_0x5464f6,_0x2bd298){const _0x554c5b=function(_0x3fa2b4,_0xd8e510){const _0xe8cd6a=_0x3fa2b4['locale'],_0x28d8cb={'Compare\x20against\x20selected':m(_0xe8cd6a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xe8cd6a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xe8cd6a,'Restore\x20this\x20revision')};return _0xd8e510['map'](_0x4da724=>{const _0x4a7e66=_0x28d8cb[_0x4da724['name']];return _0x4a7e66&&_0x4a7e66!==_0x4da724['name']&&(_0x4da724['name']=_0x4a7e66),_0x4da724;});}(_0x5464f6,_0x2bd298),_0x50b086=new _0x5238b7();for(const _0x2631f7 of _0x554c5b){const _0x5f1cbd={'type':'button','model':new to({'label':_0x2631f7['name'],'class':_0x2631f7['class'],'withText':!0x0,'role':'menuitem','_action':_0x2631f7['action']})};_0x5f1cbd['model']['bind']('isEnabled')['to'](_0x5464f6,'isActionsDropdownOpen',_0x57435f=>'function'!=typeof _0x2631f7['isEnabled']||(!_0x57435f||_0x2631f7['isEnabled'](_0x5464f6))),_0x50b086['add'](_0x5f1cbd);}return _0x50b086;}(_0x5f320f,_0x52c36b);return _0x5f320f['bind']('isActionsDropdownOpen')['to'](_0x5f30e0,'isOpen'),_0x5f30e0['buttonView']['set']({'label':m(_0x3f8e93,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4a7550['threeVerticalDots']}),_0x5f30e0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5498e5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5498e5['to'](_0x3acf7=>_0x3acf7['stopPropagation']())}}),_0x5f30e0['on']('execute',_0x383ba6=>{_0x5f320f['isReady']&&'function'==typeof _0x383ba6['source']['_action']&&_0x383ba6['source']['_action'](_0x5f320f);}),_0x1105a3(_0x5f30e0,_0x45541d,{'role':'menu'}),_0x5f30e0['listenTo'](_0x5f320f,'change:isActionsDropdownOpen',(_0x6ef7ed,_0x1d69ab,_0x473487)=>{if(_0x473487)for(const _0x233b18 of _0x5f30e0['listView']['items']){const _0x500dcf=_0x233b18['children']['first'],_0x18cf41=_0x52c36b['find'](_0x17d9ba=>_0x17d9ba['action']===_0x500dcf['_action'])['isVisible'];_0x233b18['isVisible']=void 0x0===_0x18cf41||_0x18cf41(_0x5f320f);}}),_0x5f30e0;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x5378c9,uid as _0x427eb0,Collection as _0x39be91,logWarning as _0x1b3e5d,FocusTracker as _0x4849a6,KeystrokeHandler as _0x2249ca,scrollViewportToShowTarget as _0x1add36,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x236075}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x17d3bd,set as _0x3445a4,unset as _0x458ae1,isEqual as _0x6de163}from'lodash-es';import{Plugin as _0x22cacb,PendingActions as _0x2db572,icons as _0x1c30e8,Command as _0x105923,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5d7a9e,getMarkerDomElement as _0x30cc80,ConfirmMixin as _0x40f150,sanitizeEditorConfig as _0x5671c3}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x54dec5,Element as ft,Range as vt,ViewUIElement as _0x357ea6,ViewRawElement as _0x30135e,ViewEmptyElement as _0x39b94a,ViewAttributeElement as _0x2c0178,ViewContainerElement as _0x3027ae,Position as gt,ViewText as _0x53f1ac,ViewElement as _0x353489,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x25d2fd,injectCssTransitionDisabler as ts,submitHandler as _0x378a9f,LabeledFieldView as nt,createLabeledInputText as _0x17aea7,createDropdown as _0x220ba1,ListView as _0x5cb30d,ListItemView as te,ButtonView as _0x516190,MenuBarMenuView as _0x3c1ad5,MenuBarMenuListView as _0x10c985,MenuBarMenuListItemView as _0x653c8d,MenuBarMenuListItemButtonView as _0x1c8b58,ContextualBalloon as _0x24705a,ToolbarSeparatorView as _0x55c71b,IconView as _0x2b845a,addListToDropdown as _0x164bbd,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 _0x1492d4}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5378c9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x25fa94){super(),this['id']=_0x25fa94['id']||_0x427eb0(),this['creator']=_0x25fa94['creator']||null,this['authors']=_0x25fa94['authors']||[],this['diffData']=_0x25fa94['diffData']||null,this['toVersion']=_0x25fa94['toVersion']||0x0,this['fromVersion']=_0x25fa94['fromVersion']||0x0,this['set']('name',_0x25fa94['name']||''),this['set']('createdAt',_0x25fa94['createdAt']||new Date()),this['set']('attributes',_0x25fa94['attributes']||{});}['setName'](_0x3f7ddb){this['_update']({'name':_0x3f7ddb});}['setAttribute'](_0x522401,_0x33cc78){const _0x308e30=_0x17d3bd(this['attributes']);_0x3445a4(_0x308e30,_0x522401,_0x33cc78),this['_update']({'attributes':_0x308e30});}['removeAttribute'](_0x20e859){const _0x46aeb6=_0x17d3bd(this['attributes']);_0x458ae1(_0x46aeb6,_0x20e859),this['_update']({'attributes':_0x46aeb6});}['_update'](_0x225ee0,_0x2f8aeb=!0x1){let _0x4f3788=!0x1;const _0x35ceac={'id':this['id']},_0x868638=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5ce487 of _0x868638){const _0x379a8e=_0x225ee0[_0x5ce487];void 0x0!==_0x379a8e&&_0x379a8e!==this[_0x5ce487]&&(this[_0x5ce487]=_0x379a8e,_0x35ceac[_0x5ce487]=_0x379a8e,_0x4f3788=!0x0);}_0x4f3788&&(_0x35ceac['authors']&&(_0x35ceac['authorsIds']=_0x35ceac['authors']['map'](_0x4d3539=>_0x4d3539['id']),delete _0x35ceac['authors']),this['fire']('_update',_0x35ceac,_0x2f8aeb));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4e08e9=>_0x4e08e9['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x22cacb{['_revisions'];static get['requires'](){return[_0x5d7a9e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x24911b){super(_0x24911b),this['_revisions']=new _0x39be91();}['afterInit'](){!async function(_0x3bb209){const _0x505c3b=_0x4179d4([0x52,0x4a,0x41,0x77,0x32,0x7a,0x69,0x65,0x57,0x61,0x51,0x53,0x4d,0x67,0x38,0x70,0x37,0x47,0x33,0x74,0x43,0x59,0x50,0x79,0x5a,0x56,0x71,0x6f,0x4f,0x46,0x54,0x6c,0x36,0x45,0x58,0x6b,0x73,0x4b,0x68,0x76,0x64,0x31,0x4c,0x63,0x44,0x6d,0x6a,0x42,0x78,0x39,0x62,0x72,0x34,0x30,0x6e,0x55,0x66,0x75,0x35,0x49,0x4e,0x48]),_0x395ebb=0xeb829,_0x5733c9=0x5d27d70,_0x5a7723=0x5d52398^_0x5733c9,_0x48695e=window[_0x4179d4([0x44,0x61,0x74,0x65])][_0x4179d4([0x6e,0x6f,0x77])](),_0x265887=_0x3bb209[_0x4179d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ecd47=new window[(_0x4179d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe6f0=>{_0x265887[_0x4179d4([0x6f,0x6e,0x63,0x65])](_0x4179d4([0x72,0x65,0x61,0x64,0x79]),_0x2fe6f0);}),_0x2aa93c={[_0x4179d4([0x6b,0x74,0x79])]:_0x4179d4([0x45,0x43]),[_0x4179d4([0x75,0x73,0x65])]:_0x4179d4([0x73,0x69,0x67]),[_0x4179d4([0x63,0x72,0x76])]:_0x4179d4([0x50,0x2d,0x32,0x35,0x36]),[_0x4179d4([0x78])]:_0x4179d4([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]),[_0x4179d4([0x79])]:_0x4179d4([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]),[_0x4179d4([0x61,0x6c,0x67])]:_0x4179d4([0x45,0x53,0x32,0x35,0x36])},_0x4ce637=_0x265887[_0x4179d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4179d4([0x67,0x65,0x74])](_0x4179d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30d38e(){let _0x493ed8,_0x11aa3d=null,_0x14ff07=null;try{if(_0x4ce637==_0x4179d4([0x47,0x50,0x4c]))return _0x4179d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x493ed8=_0x16f370(),!_0x493ed8)return _0x4179d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x493ed8[_0x4179d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14ff07=_0x4f177e(_0x493ed8[_0x4179d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x493ed8[_0x4179d4([0x6a,0x74,0x69])])),await _0x9841d()?_0x3b218f()?_0xbe0eaa()?_0x4179d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e45dd()?(_0x493ed8[_0x4179d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4179d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11aa3d=_0x7a4ed8(_0x4179d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x493ed8[_0x4179d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4179d4([0x74,0x72,0x69,0x61,0x6c])&&(_0x11aa3d=_0x7a4ed8(_0x4179d4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e4800()):_0x4179d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4179d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4179d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3706e0){return _0x4179d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xbe0eaa(){const _0x206177=[_0x4179d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4179d4([0x74,0x72,0x69,0x61,0x6c])][_0x4179d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x493ed8[_0x4179d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48695e/0x3e8:0xe10*_0x5a7723;return _0x493ed8[_0x4179d4([0x65,0x78,0x70])]<_0x206177;}function _0x3b218f(){const _0xfb4d87=_0x493ed8[_0x4179d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xfb4d87)return!0x1;if(_0xfb4d87[_0x4179d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4179d4([0x2a])))return!0x0;if(_0xfb4d87[_0x4179d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4179d4([0x52,0x48])))return!0x0;if(_0xfb4d87[_0x4179d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4179d4([0x52,0x52,0x48]))){if(_0x5b9eb8())return!0x0;if(_0x485746()||_0x31b935())return!0x0;}return!0x1;}function _0x2e45dd(){const _0x41265f=_0x493ed8[_0x4179d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41265f||0x0==_0x41265f[_0x4179d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a0460}=new URL(window[_0x4179d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x41265f[_0x4179d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0460))return!0x0;const _0x1f46d0=_0x5a0460[_0x4179d4([0x73,0x70,0x6c,0x69,0x74])](_0x4179d4([0x2e]));return _0x41265f[_0x4179d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28048e=>_0x28048e[_0x4179d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4179d4([0x2a])))[_0x4179d4([0x6d,0x61,0x70])](_0x57ba0f=>_0x57ba0f[_0x4179d4([0x73,0x70,0x6c,0x69,0x74])](_0x4179d4([0x2e])))[_0x4179d4([0x73,0x6f,0x6d,0x65])](_0x545f97=>_0x1f46d0[_0x4179d4([0x65,0x76,0x65,0x72,0x79])]((_0x128e74,_0x50b460)=>_0x545f97[_0x50b460]===_0x128e74||_0x545f97[_0x50b460]===_0x4179d4([0x2a])));}function _0x5e4800(){return _0x11aa3d&&_0x14ff07?new window[(_0x4179d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x420364,_0x5ddb64)=>{_0x11aa3d[_0x4179d4([0x74,0x68,0x65,0x6e])](_0x420364,_0x5ddb64),_0x14ff07[_0x4179d4([0x74,0x68,0x65,0x6e])](_0x47224b=>{_0x47224b!=_0x4179d4([0x56,0x61,0x6c,0x69,0x64])&&_0x420364(_0x47224b);},_0x5ddb64);}):_0x11aa3d||_0x14ff07||_0x4179d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f177e(_0x164e14,_0x2ad474){return new window[(_0x4179d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fdd44=>{if(_0x34895a())return _0x2fdd44(_0x4179d4([0x56,0x61,0x6c,0x69,0x64]));_0xfe64ec(),_0x265887[_0x4179d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4179d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13b15e=!0x1;const _0x253385=_0x427eb0();function _0x330e11(_0x47a224){return!!_0x47a224&&(typeof _0x47a224===_0x4179d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47a224===_0x4179d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47a224[_0x4179d4([0x74,0x68,0x65,0x6e])]===_0x4179d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47a224[_0x4179d4([0x63,0x61,0x74,0x63,0x68])]===_0x4179d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e427a(_0x1eb150){_0x186fc5(_0x1eb150)[_0x4179d4([0x74,0x68,0x65,0x6e])](_0x1e7ec9=>{if(!_0x1e7ec9||_0x1e7ec9[_0x4179d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4179d4([0x6f,0x6b]))return _0x4179d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x93978c(_0x38333e(_0x253385+_0x2ad474))!=_0x1e7ec9[_0x4179d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4179d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4179d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x4179d4([0x74,0x68,0x65,0x6e])](_0x330f95=>(_0x2c9b37(),_0x330f95),()=>{const _0x5eace4=_0x32f05c();return null==_0x5eace4?(_0x2c9b37(),_0x4179d4([0x56,0x61,0x6c,0x69,0x64])):_0x4179d4(_0x48695e-_0x5eace4>(0x21def970^_0x5733c9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4179d4([0x74,0x68,0x65,0x6e])](_0x2fdd44)[_0x4179d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fdd44(_0x4179d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1442fd=0x5e493f0^_0x5733c9;function _0x2c9b37(){const _0x1851b5=_0x4179d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x93978c(_0x38333e(_0x164e14)),_0x10a150=_0x2bde91(_0x93978c(window[_0x4179d4([0x4d,0x61,0x74,0x68])][_0x4179d4([0x63,0x65,0x69,0x6c])](_0x48695e/_0x1442fd)));window[_0x4179d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4179d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1851b5,_0x10a150);}function _0x32f05c(){const _0x369117=_0x4179d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x93978c(_0x38333e(_0x164e14)),_0x19aac1=window[_0x4179d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4179d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x369117);return _0x19aac1?window[_0x4179d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bde91(_0x19aac1),0x10)*_0x1442fd:null;}function _0x186fc5(_0x429bbc){return new window[(_0x4179d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2db103,_0xc3ba4a)=>{_0x429bbc[_0x4179d4([0x74,0x68,0x65,0x6e])](_0x2db103,_0xc3ba4a),window[_0x4179d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc3ba4a,0x5d3a9b0^_0x5733c9);});}}_0x265887[_0x4179d4([0x6f,0x6e])](_0x4179d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e0a9f,_0x37c174)=>{if(_0x37c174[0x0]!=_0x164e14)return _0x2fdd44(_0x4179d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37c174[0x1]={..._0x37c174[0x1],[_0x4179d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x253385};},{[_0x4179d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4179d4([0x68,0x69,0x67,0x68])}),_0x265887[_0x4179d4([0x6f,0x6e])](_0x4179d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53a874=>{_0x330e11(_0x53a874[_0x4179d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13b15e=!0x0,_0x3e427a(_0x53a874[_0x4179d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4179d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4179d4([0x6c,0x6f,0x77])}),_0x3ecd47[_0x4179d4([0x74,0x68,0x65,0x6e])](()=>{_0x13b15e||_0x2fdd44(_0x4179d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34895a(){return _0x265887[_0x4179d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4179d4([0x76,0x69,0x65,0x77])][_0x4179d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4179d4([0x61,0x75,0x74,0x6f]);}function _0xfe64ec(){_0x265887[_0x4179d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4179d4([0x76,0x69,0x65,0x77])][_0x4179d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4179d4([0x61,0x75,0x74,0x6f]);}}function _0x7a4ed8(_0x4d8b3d){const _0x454a34=[new window[(_0x4179d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbcdc52=>setTimeout(_0xbcdc52,0x5db43bc^_0x5733c9)),_0x3ecd47[_0x4179d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4179d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405fe=>{const _0x2e08ec=0x5d27d77^_0x5733c9,_0x4f52d1=_0x3bb209[_0x4179d4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x440e64(){_0x4f52d1[_0x4179d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2e08ec&&_0x405fe();}_0x440e64(),_0x4f52d1[_0x4179d4([0x6f,0x6e])](_0x4179d4([0x61,0x64,0x64]),_0x440e64);})),new window[(_0x4179d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45cab0=>{function _0x600e17(){for(const _0x36580e in window)if(window[_0x4179d4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4179d4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x36580e))&&window[_0x36580e]==_0x395ebb)return _0x45cab0();_0x265887[_0x4179d4([0x73,0x74,0x61,0x74,0x65])]!=_0x4179d4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4179d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x600e17,0x5d26ef8^_0x5733c9);}_0x4df655(_0x4179d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x600e17();})];return window[_0x4179d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4179d4([0x72,0x61,0x63,0x65])](_0x454a34)[_0x4179d4([0x74,0x68,0x65,0x6e])](()=>_0x4d8b3d);}async function _0x3e15c3(){if(await _0x3ecd47,_0x4df655(_0x4179d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1938d6=_0x3bb209[_0x4179d4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x444a52=_0x3bb209[_0x4179d4([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])](_0x1938d6[_0x4179d4([0x69,0x64])]),_0x4e1e23=_0x420082(_0x4179d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4e1e23[_0x4179d4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1938d6['id'],_0x444a52?_0x444a52['id']:null,!0x0),_0x4e1e23[_0x4179d4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4179d4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4e1e23[_0x4179d4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4e1e23[_0x4179d4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x464833,void(_0x4e1e23[_0x4179d4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x464833);}if(_0x4df655(_0x4179d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x26948d=_0x420082(_0x4179d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x26948d[_0x4179d4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4179d4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x26948d[_0x4179d4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x26948d[_0x4179d4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x464833,_0x26948d[_0x4179d4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x464833;}_0x265887[_0x4179d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4179d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x464833,_0x265887[_0x4179d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4179d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x464833,_0x265887[_0x4179d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4179d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b9eb8(){return _0x4df655(_0x4179d4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x420082(_0x4179d4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4179d4([0x73,0x74,0x61,0x74,0x65])]==_0x4179d4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x485746(){return _0x4df655(_0x4179d4([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 _0x31b935(){return _0x4df655(_0x4179d4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4838ec(_0x24d3b6){const _0x2bfc0a=_0xbf9cb4();_0x265887[_0x2bfc0a]=_0x4179d4([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])+_0x24d3b6,_0x24d3b6[_0x4179d4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4179d4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xbf9cb4()]=_0x395ebb),_0x24d3b6!=_0x4179d4([0x56,0x61,0x6c,0x69,0x64])&&_0x3e15c3();}function _0xbf9cb4(){const _0x49074f=window[_0x4179d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4179d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4179d4([0x6e,0x6f,0x77])]())[_0x4179d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4179d4([0x2e]),'');let _0x9d3e2e=_0x4179d4([0x52]);for(let _0x25fb0d=0x0;_0x25fb0d<_0x49074f[_0x4179d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25fb0d+=0x2){let _0x2f5339=window[_0x4179d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49074f[_0x4179d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25fb0d,_0x25fb0d+0x2));_0x2f5339>=_0x505c3b[_0x4179d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f5339-=_0x505c3b[_0x4179d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9d3e2e+=_0x505c3b[_0x2f5339];}return _0x9d3e2e;}function _0x16f370(){const _0x1f6367=_0x4ce637[_0x4179d4([0x73,0x70,0x6c,0x69,0x74])](_0x4179d4([0x2e]));if(0x3!=_0x1f6367[_0x4179d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bf5bc(_0x1f6367[0x1]);function _0x5bf5bc(_0x3ee153){const _0x16f429=_0x3587a3(_0x3ee153);return _0x16f429&&_0x23a7d2()?_0x16f429:null;function _0x23a7d2(){const _0x1161bc=_0x16f429[_0x4179d4([0x6a,0x74,0x69])],_0x119175=window[_0x4179d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1161bc[_0x4179d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1161bc[_0x4179d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26e44b={..._0x16f429,[_0x4179d4([0x6a,0x74,0x69])]:_0x1161bc[_0x4179d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1161bc[_0x4179d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26e44b[_0x4179d4([0x76,0x63])],_0x38333e(_0x26e44b)==_0x119175;}}}async function _0x9841d(){let _0x331156=!0x0;try{const _0x4aa350=_0x4ce637[_0x4179d4([0x73,0x70,0x6c,0x69,0x74])](_0x4179d4([0x2e])),[_0x16fb3b,_0xf8d7c3,_0x2e82e9]=_0x4aa350;return _0x2d04cb(_0x16fb3b),await _0x50dbbb(_0x16fb3b,_0xf8d7c3,_0x2e82e9),_0x331156;}catch(_0x4c9232){return!0x1;}function _0x2d04cb(_0x1c571c){const _0x31e9d7=_0x3587a3(_0x1c571c);_0x31e9d7&&_0x31e9d7[_0x4179d4([0x61,0x6c,0x67])]==_0x4179d4([0x45,0x53,0x32,0x35,0x36])||(_0x331156=!0x1);}async function _0x50dbbb(_0xc44958,_0x2561a1,_0x39096f){const _0x289f69=window[_0x4179d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4179d4([0x66,0x72,0x6f,0x6d])](_0x16994a(_0x39096f),_0x2eb559=>_0x2eb559[_0x4179d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14562e=new window[(_0x4179d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4179d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc44958+_0x4179d4([0x2e])+_0x2561a1),_0x6a9d2e=window[_0x4179d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4179d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6a9d2e)return;const _0x5181a0=await _0x6a9d2e[_0x4179d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4179d4([0x6a,0x77,0x6b]),_0x2aa93c,{[_0x4179d4([0x6e,0x61,0x6d,0x65])]:_0x4179d4([0x45,0x43,0x44,0x53,0x41]),[_0x4179d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4179d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4179d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6a9d2e[_0x4179d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4179d4([0x6e,0x61,0x6d,0x65])]:_0x4179d4([0x45,0x43,0x44,0x53,0x41]),[_0x4179d4([0x68,0x61,0x73,0x68])]:{[_0x4179d4([0x6e,0x61,0x6d,0x65])]:_0x4179d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5181a0,_0x289f69,_0x14562e)||(_0x331156=!0x1);}}function _0x3587a3(_0x439b07){return _0x439b07[_0x4179d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4179d4([0x65,0x79]))?JSON[_0x4179d4([0x70,0x61,0x72,0x73,0x65])](_0x16994a(_0x439b07)):null;}function _0x16994a(_0x598de3){return window[_0x4179d4([0x61,0x74,0x6f,0x62])](_0x598de3[_0x4179d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4179d4([0x2b]))[_0x4179d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4179d4([0x2f])));}function _0x38333e(_0xeda484){let _0x1ee5c5=0x1505;function _0x434532(_0x40ccf1){for(let _0x2286d6=0x0;_0x2286d6<_0x40ccf1[_0x4179d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2286d6++){const _0x31dd04=_0x40ccf1[_0x4179d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2286d6);_0x1ee5c5=(_0x1ee5c5<<0x5)+_0x1ee5c5+_0x31dd04,_0x1ee5c5&=_0x1ee5c5;}}function _0x25b6f4(_0x2d4b8a){Array[_0x4179d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d4b8a)?_0x2d4b8a[_0x4179d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25b6f4):_0x2d4b8a&&typeof _0x2d4b8a==_0x4179d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4179d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d4b8a)[_0x4179d4([0x73,0x6f,0x72,0x74])]()[_0x4179d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x365ddb,_0x39ea58])=>{_0x434532(_0x365ddb),_0x25b6f4(_0x39ea58);}):_0x434532(window[_0x4179d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d4b8a));}return _0x25b6f4(_0xeda484),_0x1ee5c5>>>0x0;}function _0x93978c(_0x56cdc2){return _0x56cdc2[_0x4179d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4179d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4179d4([0x30]));}function _0x2bde91(_0x2d0244){return _0x2d0244[_0x4179d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4179d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4179d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x4df655(_0x5e1c8a){return _0x265887[_0x4179d4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4179d4([0x68,0x61,0x73])](_0x5e1c8a);}function _0x420082(_0x10312c){return _0x265887[_0x4179d4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4179d4([0x67,0x65,0x74])](_0x10312c);}function _0x464833(){}function _0x4179d4(_0xf7203e){return _0xf7203e['map'](_0x39a3c2=>String['fromCharCode'](_0x39a3c2))['join']('');}_0x4838ec(await _0x30d38e());}(this);}['createRevision'](_0x2e296c){const _0xad41ae=this['editor']['plugins']['get']('Users');return new a({'id':_0x2e296c['id'],'name':_0x2e296c['name'],'creator':_0x2e296c['creatorId']?_0xad41ae['getUser'](_0x2e296c['creatorId']):null,'diffData':_0x2e296c['diffData']||_0x2e296c['data'],'authors':_0x2e296c['authorsIds']['map'](_0x43ea6f=>_0xad41ae['getUser'](_0x43ea6f)),'createdAt':new Date(_0x2e296c['createdAt']),'attributes':_0x2e296c['attributes'],'fromVersion':_0x2e296c['fromVersion'],'toVersion':_0x2e296c['toVersion']});}['addRevision'](_0x1d8bff,_0x20df2d=0x0){this['_revisions']['add'](_0x1d8bff,_0x20df2d);}['getRevision'](_0x28c926){return this['_revisions']['get'](_0x28c926);}['getRevisions'](_0x57b629={'toJSON':!0x1}){const _0x2e7c37=Array['from'](this['_revisions']);return _0x2e7c37['reverse'](),_0x57b629['toJSON']?_0x2e7c37['map'](_0x265fb8=>_0x265fb8['toJSON']()):_0x2e7c37;}['getIndex'](_0x1e8a06){return this['_revisions']['getIndex'](_0x1e8a06);}['getEarlierVisibleRevision'](_0x31f8c1){const [,_0x588ae8]=this['getRevisionsIterator'](_0x31f8c1,{'direction':'earlier'});return _0x588ae8;}['getLaterVisibleRevision'](_0x3383d0){const [,_0x4ee8a5]=this['getRevisionsIterator'](_0x3383d0,{'direction':'later'});return _0x4ee8a5;}['getRevisionsInDiff'](_0x21ec7e){const _0x3a484f=[];for(const _0xab6fe4 of this['getRevisionsIterator'](_0x21ec7e['newRevisionId']))if(_0x3a484f['push'](_0xab6fe4),_0xab6fe4['id']===_0x21ec7e['oldRevisionId'])break;return _0x3a484f;}*['getRevisionsIterator'](_0x49afd8,{direction:_0x13cae9='earlier',filter:_0x2ee416=()=>!0x0}={}){const _0x432d89='earlier'===_0x13cae9?0x1:-0x1;let _0x1fedb3=this['_revisions']['get'](_0x49afd8),_0x236f2f=this['getIndex'](_0x1fedb3);for(yield _0x1fedb3;_0x1fedb3;){if(_0x236f2f+=_0x432d89,_0x1fedb3=this['getRevision'](_0x236f2f),!_0x1fedb3)return;_0x2ee416(_0x1fedb3)&&(yield _0x1fedb3);}}}function m(_0x20c965,_0x27e5b5,_0x1813d0){const t=_0x20c965['t'];switch(_0x27e5b5){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'},_0x1813d0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1813d0);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':_0x3027ae,'a':_0x2c0178,'e':_0x39b94a,'r':_0x30135e,'u':_0x357ea6};class l extends _0x22cacb{['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[_0x5d7a9e,j,_0x2db572];}constructor(_0x46b0e7){super(_0x46b0e7),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 _0x178dbf=_0x427eb0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x178dbf},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 _0x863082=this['repository']['getRevision'](0x0),_0x1591ad=_0x863082&&null===_0x863082['creator']?_0x863082:null;if(this['_continueCurrentRevision']=!!_0x1591ad&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xe25da1=this['_source']['getCurrentRevisionId'](),_0x12d014=this['repository']['getRevision'](_0xe25da1);if(_0x12d014)this['_startingVersion']=_0x12d014['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x44de2a=this['_source']['history']['_operations']['find'](_0x4d9361=>!_0x4d9361['_isInit']),_0x2959c4=_0x44de2a?_0x44de2a['baseVersion']:this['_source']['history']['version'];_0x863082?(_0x863082['toVersion']<_0x2959c4&&_0x863082['_update']({'toVersion':_0x2959c4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1591ad['id'],this['_startingVersion']=_0x1591ad['fromVersion']):(this['_startingVersion']=_0x863082['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2959c4,this['_continueCurrentRevision']=!0x1);}}else _0x1591ad&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1591ad['toVersion'],this['editor']['model']['document']['history']['version']),_0x1591ad['fromVersion']===_0x1591ad['toVersion']?(0x0!==_0x1591ad['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1591ad['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1591ad['id'],this['_startingVersion']=_0x1591ad['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',_0xf57dff=>!_0xf57dff),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fc1e1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1681cd;for(const _0x4cb82a in _0x4fc1e1){const _0xa33beb=_0x4cb82a,_0x263119=_0x4fc1e1[_0xa33beb];if('revisionHistoryLicenseKeyValid'==_0x263119||'revisionHistoryLicenseKeyInvalid'==_0x263119||'revisionHistoryLicenseKeyExpired'==_0x263119||'revisionHistoryLicenseKeyDomainLimit'==_0x263119||'revisionHistoryLicenseKeyNotAllowed'==_0x263119||'revisionHistoryLicenseKeyEvaluationLimit'==_0x263119||'revisionHistoryLicenseKeyTrialLimit'==_0x263119||'revisionHistoryLicenseKeyUsageLimit'==_0x263119){delete _0x4fc1e1[_0xa33beb],_0x1681cd=_0x263119,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1681cd&&_0x4fc1e1['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1681cd&&_0x4fc1e1['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1681cd&&_0x4fc1e1['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1681cd&&_0x4fc1e1['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1681cd&&_0x4fc1e1['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1681cd&&_0x4fc1e1['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1681cd&&_0x4fc1e1['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1e365f=this['repository']['getRevision'](0x0),_0x1369c6=await this['getRevisionDocumentData'](_0x1e365f),_0x2ec28a=await this['getRevisionRootsAttributes'](_0x1e365f);this['_replaceEditorDataWithRevisionData'](_0x1369c6,_0x2ec28a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3a69bd){this['_source']=_0x3a69bd;}async['update'](){const _0x1cdd3a=await this['_source']['getLatestVersion']();if(_0x1cdd3a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x13c151=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1cdd3a});_0x13c151['authors']=_0x13c151['authorsIds']['map'](_0x24ba38=>this['editor']['plugins']['get']('Users')['getUser'](_0x24ba38)),this['currentRevision']['_update'](_0x13c151);}}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'](_0x275269={},_0x4ae3dd=null){const _0xef1805=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4ae3dd>this['currentRevision']['toVersion']&&(_0x4ae3dd=null),null===_0x4ae3dd&&(_0x4ae3dd=await this['_source']['getLatestVersion']());const _0x5525e7=this['_getFromVersion'](_0x4ae3dd),_0x3e4d7f=this['buildRevisionData']({'from':_0x5525e7,'to':_0x4ae3dd});if(this['currentRevision']['toVersion']<_0x4ae3dd){const _0xf88a1e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4ae3dd,'to':_0x4ae3dd});_0xf88a1e['authors']=[],_0xf88a1e['authorsIds']=[],_0xf88a1e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xf88a1e,!0x0),delete _0xf88a1e['authors'],_0xef1805['push'](_0xf88a1e);}_0x275269['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x275269['name']=_0x275269['name']||null,_0x275269['id']=_0x275269['id']||_0x427eb0(),_0x275269={..._0x275269,..._0x3e4d7f};const _0x4611c8=this['addRevisionData'](_0x275269);_0xef1805['push'](_0x275269);const _0x46fa6a=this['repository']['getIndex'](_0x4611c8);if(0x0!==_0x46fa6a){const _0xe5483b=this['repository']['getRevision'](_0x46fa6a-0x1);if(_0xe5483b['fromVersion']!==_0x4ae3dd){const _0x2cfb54=this['_revisionDataBuilder']['getData'](_0x4ae3dd,_0xe5483b['toVersion']),_0x5db18c={'id':_0xe5483b['id'],'diffData':_0x2cfb54['diffData'],'authorsIds':_0x2cfb54['authorsIds'],'authors':_0x2cfb54['authorsIds']['map'](_0x271352=>this['editor']['plugins']['get']('Users')['getUser'](_0x271352)),'fromVersion':_0x4ae3dd};_0xe5483b===this['currentRevision']&&(_0x5db18c['createdAt']=new Date(_0x275269['createdAt']['getTime']()+0xa)),_0xe5483b['_update'](_0x5db18c,!0x0),delete _0x5db18c['authors'],_0xef1805['push'](_0x5db18c);}}if(this['adapter']){for(const _0x51a8e6 of _0xef1805)this['_bufferUpdate'](_0x51a8e6['id'],_0x51a8e6,!0x0);this['sendBufferedUpdates']();}return _0x4611c8;}['addRevisionData'](_0x575d05){const _0x5ebdaa=this['repository']['createRevision'](_0x575d05);return this['adapter']&&_0x5ebdaa['on']('_update',(_0x4611bd,_0x245bc0,_0x4f4953)=>{_0x4f4953||(this['_bufferUpdate'](_0x245bc0['id'],_0x245bc0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5ebdaa,this['_findInsertionIndex'](_0x5ebdaa)),_0x5ebdaa;}async['getRevisionDocumentData'](_0x3d99a8){await this['_loadRevisionData'](_0x3d99a8);const _0x3f4c30={};for(const _0x2b41dd in _0x3d99a8['diffData']){if(_0x3d99a8['diffData'][_0x2b41dd]['attachChange']&&!_0x3d99a8['diffData'][_0x2b41dd]['attachChange']['isAttached'])continue;const _0x26a926=this['_removeRevisionMarkers'](JSON['parse'](_0x3d99a8['diffData'][_0x2b41dd]['insertions'])),_0x362f5f=this['editor']['editing']['view']['document'],_0x2dd7cc=new _0x54dec5(_0x362f5f,_0x26a926['map'](_0x176e2a=>C(_0x176e2a,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3f4c30[_0x2b41dd]=this['editor']['data']['processor']['toData'](_0x2dd7cc),this['editor']['data']['processor']['useFillerType']('default');}return _0x3f4c30;}async['getRevisionRootsAttributes'](_0xdb3e4){await this['_loadRevisionData'](_0xdb3e4);const _0x345953={};for(const _0x25da0b in _0xdb3e4['diffData'])_0xdb3e4['diffData'][_0x25da0b]['attachChange']&&!_0xdb3e4['diffData'][_0x25da0b]['attachChange']['isAttached']||(_0x345953[_0x25da0b]=_0xdb3e4['diffData'][_0x25da0b]['attributesAfter']||{});return _0x345953;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x125e20=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x259c22=0x0;_0x259c22<_0x125e20['length'];_0x259c22++){const _0x4cf88f=_0x125e20[_0x259c22];let _0x5c7ed7=!0x1;for(const _0x56f9a8 of Object['keys'](_0x4cf88f))void 0x0===_0x4cf88f[_0x56f9a8]?delete _0x4cf88f[_0x56f9a8]:'id'!==_0x56f9a8&&(_0x5c7ed7=!0x0);_0x5c7ed7||(_0x125e20[_0x259c22]=null);}if(_0x125e20=_0x125e20['filter'](_0x402d15=>null!==_0x402d15),!_0x125e20['length'])return;for(let _0x54d97c=0x0;_0x54d97c<_0x125e20['length'];_0x54d97c++){const _0x1bd343=_0x125e20[_0x54d97c];void 0x0!==_0x1bd343['fromVersion']&&void 0x0===_0x1bd343['toVersion']&&(_0x1bd343['toVersion']=this['repository']['getRevision'](_0x1bd343['id'])['toVersion']),void 0x0!==_0x1bd343['toVersion']&&void 0x0===_0x1bd343['fromVersion']&&(_0x1bd343['fromVersion']=this['repository']['getRevision'](_0x1bd343['id'])['fromVersion']);}const _0x40caf5=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x125e20,_0x40caf5)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x314de6=>{if(_0x314de6){for(const _0x388b94 of _0x314de6)this['setRevisionData']({'id':_0x388b94['id'],'createdAt':_0x388b94['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x176577,_0x506cd4){let _0x490edd=this['editor']['config']['get']('initialData'),_0x3d9a0b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x490edd){_0x490edd={};for(const _0x6ee720 of this['editor']['model']['document']['getRootNames']())_0x490edd[_0x6ee720]='';}if('string'==typeof _0x490edd&&(_0x490edd={'main':_0x490edd}),void 0x0===_0x3d9a0b){_0x3d9a0b={};for(const _0x184fc2 of this['editor']['model']['document']['getRootNames']())_0x3d9a0b[_0x184fc2]={};}let _0x376b74=!0x1;const _0x474ada=Object['keys'](_0x490edd),_0x4a32a8=Object['keys'](_0x176577);for(const _0x16add6 of _0x474ada){if(_0x490edd[_0x16add6]!==_0x176577[_0x16add6]&&''!==_0x490edd[_0x16add6]['trim']()){_0x376b74=!0x0;break;}if(!_0x6de163(_0x3d9a0b[_0x16add6],_0x506cd4[_0x16add6])&&Object['keys'](_0x3d9a0b[_0x16add6])['length']>0x0){_0x376b74=!0x0;break;}}_0x376b74||(_0x376b74=_0x4a32a8['some'](_0x4384fe=>!this['editor']['model']['document']['getRoot'](_0x4384fe))),_0x376b74&&_0x1b3e5d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x490edd,'editorRootsAttributes':_0x3d9a0b,'revisionData':_0x176577,'revisionRootsAttributes':_0x506cd4}),this['editor']['config']['set']('initialData',_0x176577),this['editor']['config']['set']('rootsAttributes',_0x506cd4);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x10949a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x10949a['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x302d52){const _0xdde004=this['repository']['getRevisions']();_0xdde004['reverse']();let _0x3c094e=0x0;for(;_0x3c094e<_0xdde004['length'];){const _0x57b165=_0xdde004[_0x3c094e];if(_0x57b165===this['currentRevision']){_0x3c094e++;continue;}if(_0x57b165['id']===this['_initialRevisionId'])break;const _0x4e9fd4=_0x302d52['toVersion']-_0x57b165['toVersion']||_0x302d52['fromVersion']-_0x57b165['fromVersion'];if(_0x4e9fd4>0x0)break;if(_0x4e9fd4<0x0)_0x3c094e++;else{if(!_0x302d52['creator']&&_0x57b165['creator'])break;if(_0x57b165['creator']||!_0x302d52['creator']){if(_0x302d52['createdAt']>_0x57b165['createdAt'])break;_0x3c094e++;}else _0x3c094e++;}}return _0x3c094e;}['setRevisionData'](_0xf63f0f){const _0x3773d7=this['repository']['getRevision'](_0xf63f0f['id']);if(_0xf63f0f['createdAt']&&(_0xf63f0f['createdAt']=new Date(_0xf63f0f['createdAt'])),_0xf63f0f['authorsIds']){const _0x4315f5=this['editor']['plugins']['get']('Users');_0xf63f0f['authors']=_0xf63f0f['authorsIds']['map'](_0x5d131d=>_0x4315f5['getUser'](_0x5d131d));}_0x3773d7['_update'](_0xf63f0f,!0x0);}['buildRevisionData']({revision:_0x1b9750=null,from:_0x329d52=null,to:_0x1dc24c=null}){_0x329d52=null!==_0x329d52?_0x329d52:_0x1b9750['fromVersion'],_0x1dc24c=null!==_0x1dc24c?_0x1dc24c:_0x1b9750['toVersion'];const _0x3bc89c=this['_revisionDataBuilder']['getData'](_0x329d52,_0x1dc24c),_0x409d56={'diffData':_0x3bc89c['diffData'],'authorsIds':_0x3bc89c['authorsIds'],'fromVersion':_0x329d52,'toVersion':_0x1dc24c};if(!_0x1b9750||_0x1dc24c!==_0x1b9750['toVersion']){const _0xba09c5=_0x1dc24c-0x1,_0xb4307c=this['_source']['history']['getOperation'](_0xba09c5);_0x409d56['createdAt']=_0xb4307c&&_0xb4307c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x329d52===this['_loadedStateData']['fromVersion']){for(const _0x4f98c3 of this['_loadedStateData']['authors'])_0x409d56['authorsIds']['includes'](_0x4f98c3['id'])||_0x409d56['authorsIds']['push'](_0x4f98c3['id']);}return _0x409d56;}['_loadRevisionData'](_0x5d79fa){if(!_0x5d79fa||_0x5d79fa['diffData'])return Promise['resolve']();{const _0x29e81f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x29e81f,'revisionId':_0x5d79fa['id']})['then'](_0x49ea95=>{_0x5d79fa['diffData']=_0x49ea95['diffData'];});}}['_bufferUpdate'](_0x3493b0,_0x30803d,_0x58d6cb){if(this['_bufferedUpdates']['has'](_0x3493b0)){const _0x37f2e1=this['_bufferedUpdates']['get'](_0x3493b0);_0x30803d=_0x58d6cb?{..._0x37f2e1,..._0x30803d}:{..._0x30803d,..._0x37f2e1};}this['_bufferedUpdates']['set'](_0x3493b0,_0x30803d);}['_getFromVersion'](_0x368760){const _0x1a6e9e=this['repository']['getRevisions']();_0x1a6e9e['reverse'](),_0x1a6e9e['shift']();const _0x5093dc=_0x1a6e9e['find'](_0x5c9c5d=>_0x5c9c5d['toVersion']<=_0x368760)['toVersion'];return _0x5093dc<this['_startingVersion']?this['_startingVersion']:_0x5093dc;}['_createInitialRevision'](_0x111644){const _0xeef3e3=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xeef3e3)this['_initialRevisionId']=_0xeef3e3['id'];else{const _0x1e4a5c=!this['editor']['model']['document']['roots']['find'](_0x235a96=>this['editor']['model']['hasContent'](_0x235a96)),_0x792f41=this['editor']['plugins']['get']('Users')['me']['id'],_0x5707d3=m(this['editor']['locale'],_0x1e4a5c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x111644,'to':_0x111644,'id':this['_initialRevisionId'],'name':_0x5707d3,'creatorId':_0x792f41});}}['_createCurrentRevision'](_0x1c1431){const _0x4a517d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4a517d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1c1431,'to':_0x1c1431,'id':_0x4a517d,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3b60a0,from:_0x3c4617,to:_0x5a8c11,creatorId:_0x1b997d,id:_0x55d2ac}){const _0x48b515=this['buildRevisionData']({'from':_0x3c4617,'to':_0x5a8c11});_0x48b515['name']=_0x3b60a0,_0x48b515['creatorId']=_0x1b997d,_0x48b515['id']=_0x55d2ac;const _0x405a58=this['addRevisionData'](_0x48b515);return this['adapter']&&this['_bufferUpdate'](_0x48b515['id'],_0x48b515,!0x0),_0x405a58;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x78b091){return(_0x78b091=_0x78b091['filter'](_0xe34e39=>!_0xe34e39['name']||'revision-start'!==_0xe34e39['name']&&'revision-end'!==_0xe34e39['name']))['forEach'](_0x1426c9=>{'string'!=typeof _0x1426c9&&(_0x1426c9['children']=this['_removeRevisionMarkers'](_0x1426c9['children']),_0x1426c9['attributes']=_0x1426c9['attributes']['filter'](_0x1a8906=>!_0x1a8906[0x0]['startsWith']('data-revision-')));}),_0x78b091;}}function C(_0x1f1740,_0x344f5f){const _0x3d5ee5=_0x344f5f['editing']['view']['document'];if('string'==typeof _0x1f1740)return new _0x53f1ac(_0x3d5ee5,_0x1f1740);{const _0xe84b1a=_0x1f1740['children']['map'](_0x12bd7f=>C(_0x12bd7f,_0x344f5f));return new(P[_0x1f1740['type']]||_0x353489)(_0x3d5ee5,_0x1f1740['name'],_0x1f1740['attributes'],_0xe84b1a);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1280a4){this['editor']=_0x1280a4,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'](_0x3d61b5){this['source']=_0x3d61b5;const _0x37b51f=new Map(),_0xfab155=new Map(),_0x737cb4=this['editor']['model']['document']['roots']['map'](_0x3ebc45=>_0x3ebc45['rootName']);for(const _0x1f4cf9 of _0x737cb4){const _0x4e9143=this['editor']['model']['document']['getRoot'](_0x1f4cf9),_0x2c7bbc=T(_0x4e9143);_0x37b51f['set'](_0x1f4cf9,_0x2c7bbc),_0xfab155['set'](_0x1f4cf9,Object['fromEntries'](_0x4e9143['getAttributes']()));}const _0x3f4beb=Array['from'](this['editor']['model']['markers'])['map'](_0x1b7256=>[_0x1b7256['name'],_0x1b7256['getRange']()]),_0x559e2f=this['source']['version'];this['_saveMetaData'](_0x559e2f,_0x37b51f,_0x3f4beb,_0xfab155),this['_startingRevisionId']=this['_revisionId'];const _0x2f7219=new Map(),_0x8bee9d=new Map();for(const _0x4f67a7 of _0x737cb4){const _0x49adea=F(_0x4f67a7);_0x2f7219['set'](_0x4f67a7,_0x49adea),_0x8bee9d['set'](_0x4f67a7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2f7219,[],_0x8bee9d);}['getData'](_0x197166,_0x52fb6a){if(this['_lastFrom']===_0x197166&&this['_lastTo']<=_0x52fb6a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x52fb6a,!0x0);else{if(!this['_savedMetaData']['has'](_0x197166)){const _0x4f79cb=this['_getPreviousFrom'](_0x197166);this['_calculateMetaData'](_0x4f79cb,_0x197166,!0x1);}this['_calculateMetaData'](_0x197166,_0x52fb6a,!0x0);}return this['_lastFrom']=_0x197166,this['_lastTo']=_0x52fb6a,this['_getState']();}['loadState'](_0x2155a2){this['_reset'](),this['_lastFrom']=_0x2155a2['fromVersion'],this['_lastTo']=_0x2155a2['toVersion'];for(const _0x2611c3 in _0x2155a2['diffData']){const _0x5c847c=_0x2155a2['diffData'][_0x2611c3]['attachChange'],_0x2a5a16=_0x17d3bd(_0x2155a2['diffData'][_0x2611c3]['attributesBefore'])||{},_0x5b0b30=this['_makeModelFromViewString'](_0x2155a2['diffData'][_0x2611c3]['deletions']);_0x5b0b30['rootName']=_0x2611c3,_0x5b0b30['_isAttached']=!_0x5c847c||!_0x5c847c['isAttached'],_0x5b0b30['isAttached']=()=>_0x5b0b30['_isAttached'],this['_baseRoots']['set'](_0x2611c3,_0x5b0b30),this['_baseRootsAttributes']['set'](_0x2611c3,_0x2a5a16),_0x5c847c&&this['_touchedRoots']['set'](_0x2611c3,_0x5c847c);const _0x5bfd71=this['_makeIdsRoot'](_0x5b0b30);this['_baseIdsRoots']['set'](_0x2611c3,_0x5bfd71);for(const [_0x209629,_0x3a7924]of _0x5b0b30['markers']){if(!_0x209629['startsWith']('revision:'))continue;const _0x3f70a2=_0x209629['split'](':')[0x2];for(const _0x45afef of _0x3a7924['getWalker']({'singleCharacters':!0x0})){const _0x5d8334=this['_getVidAttributeName'](_0x45afef),_0x462c5b='elementEnd'==_0x45afef['type']?_0x45afef['previousPosition']['path']['slice'](0x0,-0x1):_0x45afef['previousPosition']['path'],_0x3a1393=_0x5bfd71['getNodeByPath'](_0x462c5b)['getAttribute'](_0x5d8334);this['_touched']['set'](_0x3a1393,{'userId':_0x3f70a2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5228cd=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x328e83=>!this['_touched']['has'](_0x328e83));let _0x5b3a98=0x0;const _0x26cfe7=new Map();for(const _0x49b6cd in _0x2155a2['diffData']){const _0x8b8d7c=_0x2155a2['diffData'][_0x49b6cd]['attachChange'],_0x1e2cf0=_0x17d3bd(_0x2155a2['diffData'][_0x49b6cd]['attributesAfter'])||{},_0x14e58b=this['_makeModelFromViewString'](_0x2155a2['diffData'][_0x49b6cd]['insertions']);_0x14e58b['rootName']=_0x49b6cd,_0x14e58b['_isAttached']=!_0x8b8d7c||_0x8b8d7c['isAttached'],_0x14e58b['isAttached']=()=>_0x14e58b['_isAttached'],this['_diffRoots']['set'](_0x49b6cd,_0x14e58b),this['_diffRootsAttributes']['set'](_0x49b6cd,_0x1e2cf0);const _0x9d6017=this['_makeIdsRoot'](_0x14e58b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x49b6cd,_0x9d6017),_0x26cfe7['set'](_0x49b6cd,_0x14e58b['isAttached']()?_0x1e2cf0:{});for(const [_0x207a93,_0x11f925]of _0x14e58b['markers']){if(!_0x207a93['startsWith']('revision:'))continue;const _0x212c22=_0x207a93['split'](':')[0x2];for(const _0x5e889f of _0x11f925['getWalker']({'singleCharacters':!0x0})){const _0xcd64eb=this['_getVidAttributeName'](_0x5e889f),_0xe406dd=this['_revisionId']++,_0x1c27c1='elementEnd'==_0x5e889f['type']?_0x5e889f['previousPosition']['path']['slice'](0x0,-0x1):_0x5e889f['previousPosition']['path'];_0x9d6017['getNodeByPath'](_0x1c27c1)['_setAttribute'](_0xcd64eb,_0xe406dd),this['_touched']['set'](_0xe406dd,{'userId':_0x212c22});}}for(const _0x51750a of this['editor']['model']['createRangeIn'](_0x14e58b)['getWalker']({'singleCharacters':!0x0})){const _0x1a8337=this['_getVidAttributeName'](_0x51750a),_0x4bf193='elementEnd'==_0x51750a['type']?_0x51750a['previousPosition']['path']['slice'](0x0,-0x1):_0x51750a['previousPosition']['path'],_0x4cc31a=_0x9d6017['getNodeByPath'](_0x4bf193);_0x4cc31a['getAttribute'](_0x1a8337)>0x0||_0x4cc31a['_setAttribute'](_0x1a8337,_0x5228cd[_0x5b3a98++]);}for(const [_0x31cb2,_0x242db2]of _0x14e58b['markers'])_0x31cb2['startsWith']('revision:')||this['_markers']['set'](_0x31cb2,_0x242db2);}const _0xf4a2f6=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf4a2f6),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf4a2f6,0x1));const _0x1f632a=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1f632a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1f632a,0x1));const _0x480dba=Array['from'](this['_diffRoots'])['map'](([_0x48a3bd,_0x38db70])=>[_0x48a3bd,T(_0x38db70)]);this['_saveMetaData'](this['_lastTo'],_0x480dba,this['_markers'],_0x26cfe7);}['_makeModelFromViewString'](_0x96cbb0){const _0x153d3c=JSON['parse'](_0x96cbb0),_0x394611=this['editor']['editing']['view']['document'],_0x3f7b31=new _0x54dec5(_0x394611,_0x153d3c['map'](_0xee9814=>C(_0xee9814,this['editor'])));return this['editor']['data']['toModel'](_0x3f7b31);}['_saveMetaData'](_0x20b757,_0x43bda4,_0x11d716,_0xba07d1){const _0x4836ce=new Map(_0x43bda4),_0x30c190=new Map(_0x17d3bd(_0xba07d1)),_0x4f040a=new Map();for(const [_0x3c4004,_0x2ef140]of _0x11d716)_0x4f040a['set'](_0x3c4004,{'start':_0x2ef140['start']['clone'](),'end':_0x2ef140['end']['clone'](),'rootName':_0x2ef140['root']['rootName']});this['_savedMetaData']['set'](_0x20b757,{'roots':_0x4836ce,'markers':_0x4f040a,'rootsAttributes':_0x30c190});}['_removeMetaData'](_0x5c4f14){this['_savedMetaData']['delete'](_0x5c4f14);}['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'](_0x3a6ff0,_0x45c09c=null){let _0x14d03e=null;_0x3a6ff0['is']('documentFragment')||(_0x14d03e=new ft(_0x3a6ff0['name'],{'vid_start':null===_0x45c09c?this['_revisionId']++:_0x45c09c++}));const _0x3012f3=[];for(const _0x4a13be of _0x3a6ff0['getChildren']())if(_0x4a13be['is']('element')){_0x3012f3['push'](this['_makeIdsRoot'](_0x4a13be,_0x45c09c));const _0x5bf1a9=_0x3012f3[_0x3012f3['length']-0x1];null!==_0x45c09c&&(_0x45c09c=_0x5bf1a9['is']('element','$text')?_0x5bf1a9['getAttribute']('vid')+0x1:_0x5bf1a9['getAttribute']('vid_end')+0x1);}else{for(let _0x26351c=0x0;_0x26351c<_0x4a13be['offsetSize'];_0x26351c++)_0x3012f3['push'](new ft('$text',{'vid':null===_0x45c09c?this['_revisionId']++:_0x45c09c++}));}if(_0x3a6ff0['is']('documentFragment')){const _0xb8e6cc=F(_0x3a6ff0['rootName']);return _0xb8e6cc['_insertChild'](0x0,_0x3012f3),_0xb8e6cc;}return _0x14d03e['_setAttribute']('vid_end',null===_0x45c09c?this['_revisionId']++:_0x45c09c++),_0x14d03e['_insertChild'](0x0,_0x3012f3),_0x14d03e;}['_calculateMetaData'](_0x48c164,_0x2d57fc,_0x34201c){this['_reset']();const {roots:_0x15c9e9,markers:_0x2cc6aa,rootsAttributes:_0x2f39aa}=this['_savedMetaData']['get'](_0x48c164);this['_baseRoots']=new Map(_0x15c9e9),this['_baseRootsAttributes']=new Map(_0x17d3bd(_0x2f39aa));for(const [_0x2c280d,_0x50eb53]of this['_baseRoots'])if('$graveyard'!==_0x2c280d&&(this['_diffRoots']['set'](_0x2c280d,T(_0x50eb53)),this['_diffRootsAttributes']=new Map(_0x17d3bd(_0x2f39aa)),_0x34201c)){const _0x423d4e=this['_revisionId'];this['_idsRoots']['set'](_0x2c280d,this['_makeIdsRoot'](_0x50eb53)),this['_baseIdsRoots']['set'](_0x2c280d,this['_makeIdsRoot'](_0x50eb53,_0x423d4e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x34201c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x34c6a4,_0x266f02]of _0x2cc6aa){const _0x3e02c0=this['_baseRoots']['get'](_0x266f02['rootName']),_0x2e9d41=this['_diffRoots']['get'](_0x266f02['rootName']),_0xc81aa8=new vt(this['_fixPosition'](_0x266f02['start'],_0x3e02c0),this['_fixPosition'](_0x266f02['end'],_0x3e02c0)),_0xbb879c=this['_fixRange'](_0xc81aa8,_0x2e9d41);_0x3e02c0['markers']['set'](_0x34c6a4,_0xc81aa8),this['_markers']['set'](_0x34c6a4,_0xbb879c);}this['_applyOperations'](_0x48c164,_0x2d57fc,_0x34201c);}['_applyOperations'](_0x1114f1,_0x22375a,_0x3b2381){for(const _0x5773c2 of this['source']['getOperations'](_0x1114f1,_0x22375a))this['_handleOperation'](_0x5773c2,_0x3b2381);for(const _0x519f99 of this['_diffRoots']['values']())_0x519f99['markers']['clear']();for(const [_0x91ebc7,_0x4b2857]of this['_markers']){this['_diffRoots']['get'](_0x4b2857['root']['rootName'])['markers']['set'](_0x91ebc7,_0x4b2857['clone']());}const _0x445506=new Map(),_0x3a98e6=new Map();for(const [_0x3f488d,_0x4db8e2]of this['_diffRoots'])_0x445506['set'](_0x3f488d,T(_0x4db8e2)),_0x3a98e6['set'](_0x3f488d,this['_diffRootsAttributes']['get'](_0x3f488d));this['_saveMetaData'](_0x22375a,_0x445506,this['_markers'],_0x3a98e6);}['_getPreviousFrom'](_0x35dcf7){const _0x3d464e=Array['from'](this['_savedMetaData']['keys']());_0x3d464e['sort']((_0x548509,_0x3bfceb)=>_0x548509-_0x3bfceb),_0x3d464e['reverse']();for(const _0x44d4e6 of _0x3d464e)if(_0x44d4e6<_0x35dcf7)return _0x44d4e6;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3f4310,_0x3fbd61){const _0x473c0f=Array['from'](_0x3fbd61['markers'])['map'](([_0x54e9c3,_0x23f805])=>[_0x54e9c3,this['_fixRange'](_0x23f805,_0x3f4310)]);_0x3f4310['markers']=new Map(_0x473c0f);}['_transformMarkers'](_0x113ddb){for(const _0x4a7026 of this['_markers']['values']()){const _0x29b503=_0x4a7026['getTransformedByOperation'](_0x113ddb),_0x3cc625=vt['_createFromRanges'](_0x29b503);_0x4a7026['start']=_0x3cc625['start'],_0x4a7026['end']=_0x3cc625['end'];}}['_handleOperation'](_0x55ac51,_0x2202c9){if('addRoot'!=_0x55ac51['type']&&'detachRoot'!=_0x55ac51['type']){if('insert'==_0x55ac51['type']){const _0x14f0e3=_0x55ac51['position']['root']['rootName'];this['_diffRoots']['has'](_0x14f0e3)||(this['_diffRoots']['set'](_0x14f0e3,F(_0x14f0e3,!0x0)),this['_diffRootsAttributes']['set'](_0x14f0e3,{}),_0x2202c9&&this['_idsRoots']['set'](_0x14f0e3,F(_0x14f0e3,!0x0)));}else{if('addRootAttribute'==_0x55ac51['type']||'removeRootAttribute'==_0x55ac51['type']||'changeRootAttribute'==_0x55ac51['type'])return void this['_handleRootAttributeOperation'](_0x55ac51);'marker'==_0x55ac51['type']&&this['_handleMarkerOperation'](_0x55ac51);}if('marker'!==_0x55ac51['type']){const _0x36669e=this['_cloneOperation'](_0x55ac51,this['_diffRoots']);_0x36669e['_execute'](),this['_transformMarkers'](_0x36669e);}if(_0x2202c9)switch(_0x55ac51['type']){case'insert':this['_handleInsertOperation'](_0x55ac51);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x55ac51);break;case'merge':this['_handleMergeOperation'](_0x55ac51);break;case'split':this['_handleSplitOperation'](_0x55ac51);}}else this['_handleRootOperation'](_0x55ac51,_0x2202c9);}['_cloneOperation'](_0x58dab1,_0x77da3f){const _0x45e9f3=_0x58dab1['clone']();return _0x45e9f3['_authorId']=_0x58dab1['_authorId'],this['_fixOperation'](_0x45e9f3,_0x77da3f),_0x45e9f3;}['_getBaseVids'](_0x47f792){return _0x47f792['map'](_0x2ae016=>{const _0x18d395=this['_getVidAttributeName'](_0x2ae016);return Number(_0x2ae016['item']['getAttribute'](_0x18d395));});}['_generateTape'](_0x50feee,_0x26a5e5){if(_0x50feee['is']('element','$text'))_0x26a5e5['push']({'item':_0x50feee,'type':'text'});else{_0x50feee['is']('element')&&_0x26a5e5['push']({'item':_0x50feee,'type':'elementStart'});for(const _0x5f2966 of _0x50feee['getChildren']())this['_generateTape'](_0x5f2966,_0x26a5e5);_0x50feee['is']('element')&&_0x26a5e5['push']({'item':_0x50feee,'type':'elementEnd'});}return _0x26a5e5;}['_getState'](){const _0x425ed6=new Map(this['_touched']),_0x1b039d=new Map(_0x425ed6),_0x1bf623=new Map(),_0x4ea0e6={'insertions':{},'deletions':{}},_0x4ff1ec={'insertions':{},'deletions':{}},_0x40b0de=new Map(),_0x401043=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x401043['delete']('$graveyard');for(const _0x4c30f4 of _0x401043){const _0x417b53=this['_diffRoots']['get'](_0x4c30f4)||F(_0x4c30f4,!0x1),_0x19f1fc=this['_baseRoots']['get'](_0x4c30f4)||F(_0x4c30f4,!0x1);_0x417b53['isAttached']()||_0x19f1fc['isAttached']()?(_0x4ea0e6['insertions'][_0x4c30f4]=T(_0x417b53),_0x4ea0e6['deletions'][_0x4c30f4]=T(_0x19f1fc),this['_copyMarkers'](_0x4ea0e6['deletions'][_0x4c30f4],_0x19f1fc),this['_copyMarkers'](_0x4ea0e6['insertions'][_0x4c30f4],_0x417b53),_0x4ff1ec['insertions'][_0x4c30f4]=this['_generateTape'](this['_idsRoots']['get'](_0x4c30f4),[]),_0x4ff1ec['deletions'][_0x4c30f4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4c30f4)||F(_0x4c30f4,!0x1),[])):_0x401043['delete'](_0x4c30f4);}for(const _0xad118b of _0x401043){const _0x502dc3=_0x4ff1ec['insertions'][_0xad118b];for(const _0x4ef6fc of _0x502dc3){const _0x1d235f=this['_getVidAttributeName'](_0x4ef6fc),_0x1517e9=_0x4ef6fc['item']['getAttribute'](_0x1d235f);_0x1b039d['delete'](_0x1517e9),_0x1517e9>=this['_startingRevisionId']&&_0x1bf623['set'](_0x1517e9,_0x425ed6['get'](_0x1517e9));}}for(const _0x1f2f64 of _0x401043){const _0x349cc5=_0x4ff1ec['insertions'][_0x1f2f64],_0x4fccf7=this['_getBaseVids'](_0x4ff1ec['deletions'][_0x1f2f64]);let _0x4f1ef2=0x0;for(const _0x1aeeb7 of _0x349cc5){const _0x21c4ef=this['_getVidAttributeName'](_0x1aeeb7),_0x57acdd=_0x1aeeb7['item']['getAttribute'](_0x21c4ef);if(!_0x1bf623['has'](_0x57acdd)&&!_0x40b0de['has'](_0x57acdd)){if(_0x1b039d['has'](_0x57acdd))_0x4f1ef2++;else{if(_0x57acdd!=_0x4fccf7[_0x4f1ef2]){const _0x2800e3=_0x425ed6['get'](_0x57acdd)||_0x425ed6['get'](_0x4fccf7[_0x4f1ef2]);for(;_0x57acdd!=_0x4fccf7[_0x4f1ef2];)_0x1b039d['has'](_0x4fccf7[_0x4f1ef2])||(_0x40b0de['set'](_0x4fccf7[_0x4f1ef2],_0x2800e3),_0x425ed6['set'](_0x4fccf7[_0x4f1ef2],_0x2800e3)),_0x4f1ef2++;}_0x4f1ef2++;}}}}for(const _0x452bd4 of _0x401043){const _0x325a5e=_0x4ff1ec['insertions'][_0x452bd4];for(const _0x1966b8 of _0x325a5e){const _0x1a76fe=this['_getVidAttributeName'](_0x1966b8),_0x51291d=_0x1966b8['item']['getAttribute'](_0x1a76fe);if(_0x40b0de['has'](_0x51291d)){const _0x4f40fc=_0x40b0de['get'](_0x51291d);_0x1b039d['has'](_0x51291d)||_0x1b039d['set'](_0x51291d,{..._0x4f40fc}),_0x1bf623['set'](_0x51291d,{..._0x4f40fc});}}}for(const _0x14fd97 of _0x1b039d['keys']())_0x14fd97>=this['_startingRevisionId']&&_0x1b039d['delete'](_0x14fd97);const _0x4b3166=new Map();for(const _0x12021d of _0x401043){let _0x3f43f4=_0x4ff1ec['insertions'][_0x12021d];for(const _0x1300da of _0x3f43f4)if(_0x1300da['item']['is']('element','tableCell')){const _0x499294=this['_getVidAttributeName'](_0x1300da),_0x109147=_0x1300da['item']['getAttribute'](_0x499294);if(_0x1bf623['has'](_0x109147)){const _0x4236d6=_0x1300da['item']['parent']['parent']['getAttribute']('vid_start'),_0x88d8b6=_0x4b3166['get'](_0x4236d6)||new Set();_0x88d8b6['add'](_0x1bf623['get'](_0x109147)['userId']),_0x4b3166['set'](_0x4236d6,_0x88d8b6);}}_0x3f43f4=_0x4ff1ec['deletions'][_0x12021d];for(const _0x5c89c3 of _0x3f43f4)if(_0x5c89c3['item']['is']('element','tableCell')){const _0x168a69=this['_getVidAttributeName'](_0x5c89c3),_0x4cfa62=_0x5c89c3['item']['getAttribute'](_0x168a69);if(_0x1b039d['has'](_0x4cfa62)){const _0x303bd5=_0x5c89c3['item']['parent']['parent']['getAttribute']('vid_start'),_0x3e295b=_0x4b3166['get'](_0x303bd5)||new Set();_0x3e295b['add'](_0x1b039d['get'](_0x4cfa62)['userId']),_0x4b3166['set'](_0x303bd5,_0x3e295b);}}for(const _0x3b6dbf of _0x4b3166['keys']())(_0x1bf623['has'](_0x3b6dbf)||_0x1b039d['has'](_0x3b6dbf))&&_0x4b3166['delete'](_0x3b6dbf);}for(const _0x3019d8 of _0x401043){const _0x2baa8c=_0x4ff1ec['insertions'][_0x3019d8];let _0x498fed=null,_0x2562e1=null;for(const _0x2e373c of _0x2baa8c){const _0x3d0b34=this['_getVidAttributeName'](_0x2e373c),_0x575ab9=_0x2e373c['item']['getAttribute'](_0x3d0b34),_0x2846f9=_0x4b3166['get'](_0x575ab9);_0x2846f9&&'elementStart'==_0x2e373c['type']&&(_0x498fed=Array['from'](_0x2846f9)[0x0],_0x2562e1=_0x2e373c['item']['getAttribute']('vid_end')),_0x498fed&&(_0x1b039d['set'](_0x575ab9,{'userId':_0x498fed}),_0x1bf623['set'](_0x575ab9,{'userId':_0x498fed})),_0x575ab9==_0x2562e1&&(_0x498fed=null,_0x2562e1=null);}}const _0x32925f={},_0x203dfc=new Set();for(const _0x1e1e13 of _0x401043){const _0x43052d=_0x4ea0e6['deletions'][_0x1e1e13],_0x28839f=_0x4ea0e6['insertions'][_0x1e1e13];for(const {userId:_0xfde3c6}of this['_touchedMarkers']['values']())null!==_0xfde3c6&&_0x203dfc['add'](_0xfde3c6);for(const {userId:_0x16b669}of this['_touchedRoots']['values']())null!==_0x16b669&&_0x203dfc['add'](_0x16b669);this['_markChanges'](_0x28839f,_0x4ff1ec['insertions'][_0x1e1e13],_0x1bf623,'insertion',_0x203dfc),this['_markChanges'](_0x43052d,_0x4ff1ec['deletions'][_0x1e1e13],_0x1b039d,'deletion',_0x203dfc),_0x32925f[_0x1e1e13]={'insertions':this['_prepareViewToSave'](_0x28839f),'deletions':this['_prepareViewToSave'](_0x43052d),'attachChange':this['_touchedRoots']['get'](_0x1e1e13)||null,'attributesBefore':_0x17d3bd(this['_baseRootsAttributes']['get'](_0x1e1e13))||{},'attributesAfter':_0x17d3bd(this['_diffRootsAttributes']['get'](_0x1e1e13))};}return{'diffData':_0x32925f,'authorsIds':Array['from'](_0x203dfc)};}['_processRootBeforeSave'](_0x76103a){for(const [,_0x3e336e]of _0x76103a['markers']){const _0x1c7f6c=_0x3e336e['start']['getAncestors']()['filter'](_0x2e98f8=>'tableCell'==_0x2e98f8['name']);for(const _0x48ce2c of _0x1c7f6c)0x1==_0x48ce2c['childCount']&&_0x48ce2c['getChild'](0x0)['is']('element','paragraph')&&_0x48ce2c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x8de675){this['_processRootBeforeSave'](_0x8de675);const _0x45758d=this['editor']['data']['toView'](_0x8de675,{}),_0x10744e=Array['from'](_0x45758d['getChildren']())['map'](_0x4d5122=>this['_getViewJson'](_0x4d5122));return JSON['stringify'](_0x10744e);}['_getViewJson'](_0x4d2b1c){if(_0x4d2b1c['is']('$text'))return _0x4d2b1c['data'];{const _0x3313d5=_0x4d2b1c;return{'type':Object['keys'](P)['find'](_0x3de319=>_0x4d2b1c instanceof P[_0x3de319]),'name':_0x3313d5['name'],'attributes':Array['from'](_0x3313d5['getAttributes']()),'children':Array['from'](_0x3313d5['getChildren']())['map'](_0x35d733=>this['_getViewJson'](_0x35d733))};}}['_markChanges'](_0x4f507c,_0x584fb7,_0x16ab4d,_0x139244,_0x5a2c1){let _0x172079=null,_0x4f07de=null,_0x24e6f0=0x0;const _0x77a31b=this['editor']['model'];for(let _0x42168e=0x0;_0x42168e<_0x584fb7['length'];_0x42168e++){const _0x1bbf94=this['_getVidAttributeName'](_0x584fb7[_0x42168e]),_0x3eb62f=_0x584fb7[_0x42168e]['item']['getAttribute'](_0x1bbf94),_0x399d72=_0x16ab4d['get'](_0x3eb62f),_0x2b1069=_0x42168e==_0x584fb7['length']-0x1;(!_0x172079&&_0x399d72&&(_0x172079=_0x399d72,_0x4f07de=_0x584fb7[_0x42168e]),_0x172079&&(!_0x399d72||_0x399d72['userId']!=_0x172079['userId']))&&(_0x488343(_0x399d72,B(_0x4f07de,_0x4f507c,_0x77a31b),B(_0x584fb7[_0x42168e],_0x4f507c,_0x77a31b)),_0x172079=_0x399d72||null,_0x4f07de=_0x399d72?_0x584fb7[_0x42168e]:null),_0x172079&&_0x2b1069&&_0x488343(_0x399d72,B(_0x4f07de,_0x4f507c,_0x77a31b),J(_0x584fb7[_0x42168e],_0x4f507c,_0x77a31b));}function _0x488343(_0xbedda4,_0x1ed3bf,_0x43aba4){const _0xd3d481=_0x172079['userId'],_0x2c35f7='revision:'+_0x139244+':'+_0xd3d481+':'+_0x24e6f0++,_0x2274d7=_0x77a31b['createRange'](_0x1ed3bf,_0x43aba4);_0x4f507c['markers']['set'](_0x2c35f7,_0x2274d7),null!==_0xd3d481&&_0x5a2c1['add'](_0xd3d481);}}['_getVidAttributeName'](_0x502df7){switch(_0x502df7['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x54bfef,_0x26cd57){_0x54bfef['baseVersion']=null;for(const _0x4c3b70 in _0x54bfef){const _0x330b29=_0x54bfef[_0x4c3b70];if(_0x330b29 instanceof gt){const _0x132695=_0x26cd57['get'](_0x330b29['root']['rootName']);_0x54bfef[_0x4c3b70]=this['_fixPosition'](_0x330b29,_0x132695);}if(_0x330b29 instanceof vt){const _0xe3aaf1=_0x26cd57['get'](_0x330b29['root']['rootName']);_0x54bfef[_0x4c3b70]=this['_fixRange'](_0x330b29,_0xe3aaf1);}'root'===_0x4c3b70&&(_0x54bfef['root']=_0x26cd57['get'](_0x54bfef['root']['rootName']));}}['_fixRange'](_0x5d3f09,_0x1aa314){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5d3f09['start'],_0x1aa314),this['_fixPosition'](_0x5d3f09['end'],_0x1aa314));}['_fixPosition'](_0x82d678,_0x2c35c9){return this['editor']['model']['createPositionFromPath'](_0x2c35c9,_0x82d678['path'],_0x82d678['stickiness']);}['_handleInsertOperation'](_0x24b83f){const _0x50dee9=this['_idsRoots']['get'](_0x24b83f['position']['root']['rootName']),_0x40073b=this['_fixPosition'](_0x24b83f['position'],_0x50dee9),_0x2e0d3f=null===_0x24b83f['_authorId']?null:_0x24b83f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3615d1=_0x40073b['parent'],_0x464a94=this['_revisionId'],_0x3d3ec0=[];for(const _0x50cee9 of _0x24b83f['nodes'])if(_0x50cee9['is']('element'))_0x3d3ec0['push'](this['_makeIdsRoot'](_0x50cee9));else{for(let _0x1f0fea=0x0;_0x1f0fea<_0x50cee9['offsetSize'];_0x1f0fea++)_0x3d3ec0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x293d1=this['_revisionId'];for(let _0x55b58a=_0x464a94;_0x55b58a<_0x293d1;_0x55b58a++)this['_touched']['set'](_0x55b58a,{'userId':_0x2e0d3f});_0x3615d1['_insertChild'](_0x40073b['offset'],_0x3d3ec0);}['_handleMoveOperation'](_0x584a51){(_0x584a51=this['_cloneOperation'](_0x584a51,this['_idsRoots']))['_execute']();const _0x16b926=null===_0x584a51['_authorId']?null:_0x584a51['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5de9e3=_0x584a51['getMovedRangeStart'](),_0xfeec3b=_0x5de9e3['parent'],_0x3515ed=_0x5de9e3['offset'];!function _0x505869(_0x49e2f5,_0x19f783,_0x5cf658,_0x42ecbd){for(let _0x349d93=_0x5cf658;_0x349d93<_0x42ecbd;_0x349d93++){const _0x4f0235=_0x19f783['getChild'](_0x349d93);_0x4f0235['is']('element','$text')?_0x49e2f5['set'](_0x4f0235['getAttribute']('vid'),{'userId':_0x16b926}):(_0x49e2f5['set'](_0x4f0235['getAttribute']('vid_start'),{'userId':_0x16b926}),_0x505869(_0x49e2f5,_0x4f0235,0x0,_0x4f0235['childCount']),_0x49e2f5['set'](_0x4f0235['getAttribute']('vid_end'),{'userId':_0x16b926}));}}(this['_touched'],_0xfeec3b,_0x3515ed,_0x3515ed+_0x584a51['howMany']);}['_handleMergeOperation'](_0x2dfca6){const _0x5b00aa=null===(_0x2dfca6=this['_cloneOperation'](_0x2dfca6,this['_idsRoots']))['_authorId']?null:_0x2dfca6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x306856=_0x2dfca6['targetPosition']['parent'],_0x2aa94f=_0x2dfca6['sourcePosition']['parent'],_0x49c173=_0x306856['getAttribute']('vid_end'),_0x562f74=_0x2aa94f['getAttribute']('vid_start');_0x306856['_setAttribute']('vid_end',_0x2aa94f['getAttribute']('vid_end')),_0x2aa94f['_setAttribute']('vid_end',_0x49c173),this['_touched']['set'](_0x562f74,{'userId':_0x5b00aa}),this['_touched']['set'](_0x49c173,{'userId':_0x5b00aa}),_0x2dfca6['_execute']();}['_handleSplitOperation'](_0x325d5f){const _0x27cdb8=null===(_0x325d5f=this['_cloneOperation'](_0x325d5f,this['_idsRoots']))['_authorId']?null:_0x325d5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xac478=_0x325d5f['graveyardPosition'],_0x54b8fc=_0x325d5f['splitPosition']['parent'];_0x325d5f['_execute']();const _0x149f97=_0x54b8fc['getAttribute']('vid_end'),_0x19ff65=_0x325d5f['insertionPosition']['nodeAfter'];if(_0xac478){const _0x4b251f=_0x19ff65['getAttribute']('vid_end'),_0x164174=_0x54b8fc['getAttribute']('vid_end');_0x54b8fc['_setAttribute']('vid_end',_0x4b251f),_0x19ff65['_setAttribute']('vid_end',_0x164174),this['_touched']['set'](_0x54b8fc['getAttribute']('vid_end'),{'userId':_0x27cdb8}),this['_touched']['set'](_0x19ff65['getAttribute']('vid_start'),{'userId':_0x27cdb8});}else{const _0x362836=this['_revisionId']++,_0x52fbce=this['_revisionId']++;_0x54b8fc['_setAttribute']('vid_end',_0x362836),_0x19ff65['_setAttribute']('vid_start',_0x52fbce),_0x19ff65['_setAttribute']('vid_end',_0x149f97),this['_touched']['set'](_0x362836,{'userId':_0x27cdb8}),this['_touched']['set'](_0x52fbce,{'userId':_0x27cdb8});}}['_handleMarkerOperation'](_0xb0522e){if(!_0xb0522e['affectsData'])return;const _0xd4493d=(_0xb0522e=this['_cloneOperation'](_0xb0522e,this['_diffRoots']))['oldRange']?_0xb0522e['oldRange']['root']:null,_0x347c07=_0xb0522e['newRange']?_0xb0522e['newRange']['root']:null;_0xd4493d&&this['_markers']['delete'](_0xb0522e['name']),_0x347c07&&this['_markers']['set'](_0xb0522e['name'],_0xb0522e['newRange']['clone']());const _0x2c229e=null===_0xb0522e['_authorId']?null:_0xb0522e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d0157=_0xb0522e['name'];if(!this['_touchedMarkers']['has'](_0x4d0157))return void this['_touchedMarkers']['set'](_0x4d0157,{'range':_0xb0522e['oldRange'],'userId':_0x2c229e});const _0x3d335a=this['_touchedMarkers']['get'](_0x4d0157),_0x5ed27f=_0x3d335a['range'],_0x54db3c=_0xb0522e['newRange'];null==_0x5ed27f&&null==_0x54db3c||_0x5ed27f&&_0x54db3c&&_0x5ed27f['isEqual'](_0x54db3c)?this['_touchedMarkers']['delete'](_0xb0522e['name']):_0x3d335a['userId']=_0x2c229e;}['_handleRootOperation'](_0xb90cbc,_0x35239f){this['_diffRoots']['has'](_0xb90cbc['rootName'])?this['_diffRoots']['get'](_0xb90cbc['rootName'])['_isAttached']=_0xb90cbc['isAdd']:(this['_diffRoots']['set'](_0xb90cbc['rootName'],F(_0xb90cbc['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xb90cbc['rootName'],{}),_0x35239f&&this['_idsRoots']['set'](_0xb90cbc['rootName'],F(_0xb90cbc['rootName'],!0x0)));const _0x1dd8e0=null===_0xb90cbc['_authorId']?null:_0xb90cbc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x584f0a=this['_touchedRoots']['get'](_0xb90cbc['rootName']);_0x584f0a&&_0x584f0a['userId']===_0x1dd8e0?this['_touchedRoots']['delete'](_0xb90cbc['rootName']):this['_touchedRoots']['set'](_0xb90cbc['rootName'],{'userId':_0x1dd8e0,'isAttached':_0xb90cbc['isAdd']});}['_handleRootAttributeOperation'](_0x304d00){const _0x4d6478=this['_diffRootsAttributes']['get'](_0x304d00['root']['rootName']);null===_0x304d00['newValue']?delete _0x4d6478[_0x304d00['key']]:_0x4d6478[_0x304d00['key']]=_0x304d00['newValue'];}}function T(_0x22a088){const _0x2cfb4b=F(_0x22a088['rootName'],_0x22a088['isAttached']());for(const _0xb60473 of _0x22a088['getChildren']()){const _0x180391=_0xb60473['_clone'](!0x0);_0x2cfb4b['_appendChild'](_0x180391);}return _0x2cfb4b;}function F(_0x1f5ba4,_0x157430=!0x0){const _0x39dfff=new mt();return _0x39dfff['rootName']=_0x1f5ba4,_0x39dfff['_isAttached']=_0x157430,_0x39dfff['isAttached']=()=>_0x39dfff['_isAttached'],_0x39dfff;}function B(_0x504be7,_0x13c015,_0x27dcbe){const _0x461108='elementEnd'==_0x504be7['type']?_0x27dcbe['createPositionAt'](_0x504be7['item'],'end'):_0x27dcbe['createPositionBefore'](_0x504be7['item']);return _0x27dcbe['createPositionFromPath'](_0x13c015,_0x461108['path'],_0x461108['stickiness']);}function J(_0x3312ca,_0x265e0f,_0x37f930){const _0x3b837d='elementStart'==_0x3312ca['type']?_0x37f930['createPositionAt'](_0x3312ca['item'],0x0):_0x37f930['createPositionAfter'](_0x3312ca['item']);return _0x37f930['createPositionFromPath'](_0x265e0f,_0x3b837d['path'],_0x3b837d['stickiness']);}class ns extends _0x25d2fd{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3762a1,_0x25bd65){super(_0x3762a1),this['focusTracker']=new _0x4849a6(),this['keystrokes']=new _0x2249ca(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x25bd65),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'](),_0x378a9f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xab1fe1=_0x16db41=>_0x16db41['stopPropagation']();this['keystrokes']['set']('arrowright',_0xab1fe1),this['keystrokes']['set']('arrowleft',_0xab1fe1),this['keystrokes']['set']('arrowup',_0xab1fe1),this['keystrokes']['set']('arrowdown',_0xab1fe1);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x790604){this['revisionNameInputView']['fieldView']['element']['value']=_0x790604['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x263304){const _0x955914=new nt(this['locale'],_0x17aea7),_0x1b073e=_0x955914['fieldView'];_0x1b073e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x539688=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x263304&&(_0x539688+='\x20('+m(this['locale'],'optional')+')'),(_0x955914['label']=_0x539688,_0x1b073e['on']('input',()=>{this['revisionNameInputValue']=_0x1b073e['element']['value']['trim']();}),_0x955914);}}class u extends _0x22cacb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1d3887=this['editor'],_0x42eb81=_0x1d3887['plugins']['get']('RevisionTracker');_0x1d3887['ui']['componentFactory']['add']('revisionHistory',_0x492601=>{const _0x25e104=_0x220ba1(_0x492601),_0x1e7989=_0x25e104['panelView']['children'],_0x3962a7=new _0x5cb30d(_0x492601),_0x17f55e=new te(_0x492601),_0x383f2f=new _0x516190(_0x492601),_0x3ccb0f=new te(_0x492601),_0x32f33a=new _0x516190(_0x492601);return _0x25e104['bind']('isEnabled')['to'](_0x42eb81,'isReady',_0x42eb81,'isEnabled',_0x1d3887,'isReadOnly',(_0x450bb9,_0xc520ac,_0x40c3b4)=>_0x450bb9&&_0xc520ac&&!_0x40c3b4),_0x25e104['buttonView']['set']({'icon':_0x1c30e8['history'],'label':m(_0x492601,'Revision\x20history'),'tooltip':!0x0}),_0x383f2f['set']({'label':m(_0x492601,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x383f2f['bind']('isEnabled')['to'](_0x42eb81,'isReady',_0x42eb81,'isEnabled',_0x1d3887,'isReadOnly',(_0x196dbe,_0x227e16,_0xd2bbb2)=>_0x196dbe&&_0x227e16&&!_0xd2bbb2),_0x383f2f['on']('execute',()=>this['_showDialog']()),_0x32f33a['set']({'label':m(_0x492601,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x32f33a['bind']('isEnabled')['to'](_0x42eb81,'isReady',_0x1d3887,'isReadOnly',(_0x5a78c8,_0x28ad37)=>_0x5a78c8&&!_0x28ad37),_0x32f33a['on']('execute',()=>{_0x1d3887['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x25e104['isOpen']=!0x1,_0x1d3887['editing']['view']['focus']();}),_0x17f55e['children']['add'](_0x383f2f),_0x3ccb0f['children']['add'](_0x32f33a),_0x3962a7['role']='menu',_0x3962a7['items']['addMany']([_0x17f55e,_0x3ccb0f]),_0x1e7989['add'](_0x3962a7),_0x25e104;}),_0x1d3887['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1bc500=this['editor'],_0x5a17d9=_0x1bc500['locale'],_0xaa1223=new _0x3c1ad5(_0x5a17d9),_0x5c3902=new _0x10c985(_0x5a17d9);_0xaa1223['buttonView']['set']({'icon':_0x1c30e8['history'],'label':m(_0x5a17d9,'Revision\x20history')});const _0x1b911b=new _0x653c8d(_0x5a17d9,_0xaa1223),_0x42bea8=new _0x1c8b58(_0x5a17d9);_0x42bea8['set']({'label':m(_0x5a17d9,'Save\x20current\x20revision')}),_0x42bea8['delegate']('execute')['to'](_0xaa1223),_0x42bea8['on']('execute',()=>{this['_showDialog']();}),_0x1b911b['children']['add'](_0x42bea8),_0x5c3902['items']['add'](_0x1b911b);const _0x5c170a=new _0x653c8d(_0x5a17d9,_0xaa1223),_0x11de93=new _0x1c8b58(_0x5a17d9);return _0x11de93['set']({'label':m(_0x5a17d9,'Open\x20revision\x20history')}),_0x11de93['delegate']('execute')['to'](_0xaa1223),_0x11de93['on']('execute',()=>{_0x1bc500['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5c170a['children']['add'](_0x11de93),_0x5c3902['items']['add'](_0x5c170a),_0xaa1223['panelView']['children']['add'](_0x5c3902),_0xaa1223;}['_showDialog'](){const _0x45f1a4=this['editor'],_0x27bc0e=_0x45f1a4['locale'],_0x5d6a7e=_0x45f1a4['plugins']['get']('Dialog'),_0x1f67a3=_0x45f1a4['plugins']['get']('RevisionTracker');function _0x236da2(_0x2bf70b){_0x45f1a4['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2bf70b['revisionName']?_0x2bf70b['revisionNameInputView']['errorText']=m(_0x27bc0e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x45f1a4['plugins']['get'](l)['saveRevision']({'name':_0x2bf70b['revisionName']}),_0x5d6a7e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x236da2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5d6a7e['show']({'id':'revisionSave','title':m(_0x27bc0e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x45f1a4['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5d6a7e['hide']()},{'label':m(_0x45f1a4['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x32583a){_0x32583a['bind']('isEnabled')['to'](_0x1f67a3,'isReady',_0x1f67a3,'isEnabled',_0x45f1a4,'isReadOnly',(_0x42b851,_0x574c87,_0x1a3522)=>_0x42b851&&_0x574c87&&!_0x1a3522);},'onExecute':()=>_0x236da2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x407a3d=this['editor'],_0x5e3c38=_0x407a3d['locale'];this['_saveRevisionFormView']=new ns(_0x5e3c38,_0x407a3d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x25d2fd{['changeId'];['_model'];constructor(_0x4bf2e6,_0x10a269){super(_0x4bf2e6),this['_model']=_0x10a269,this['changeId']=_0x10a269['id'];const _0x4946ef=this['bindTemplate'],_0x128c65=m(_0x4bf2e6,_0x10a269['data']['isSuggestion']?'Suggested\x20by':'add'==_0x10a269['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x10a269['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4946ef['to']('type',_0x5246cb=>'ck-revision-change__'+_0x5246cb)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x128c65}]},{'text':'\x20'+_0x10a269['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5378c9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1c95df){super(),this['id']=_0x1c95df['id']||_0x427eb0(),this['author']=_0x1c95df['author'],this['type']=_0x1c95df['type'],this['data']=_0x1c95df['data']||{},this['rootName']=_0x1c95df['rootName'],this['set']('createdAt',_0x1c95df['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(_0x5e6ef0,_0x5a3102){this['newRevisionId']=_0x5e6ef0,this['oldRevisionId']=_0x5a3102,this['changes']=new _0x39be91();}['_setChanges'](_0x15a6f1){for(const _0x2dde5a of _0x15a6f1)this['changes']['add'](_0x2dde5a);}}const Y={'c':_0x3027ae,'a':_0x2c0178,'e':_0x39b94a,'r':_0x30135e,'u':_0x357ea6};class d extends _0x22cacb{['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[_0x5d7a9e,_0x24705a,j];}constructor(_0x38eb91){super(_0x38eb91),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',(_0x31d276,_0x26ed6d,_0x118a71)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x199737=>{for(const _0x2b9b84 of this['editor']['editing']['view']['document']['roots'])_0x118a71?_0x199737['removeClass']('ck-editor__editable__overlay',_0x2b9b84):_0x199737['addClass']('ck-editor__editable__overlay',_0x2b9b84);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x35c903=>null!==_0x35c903),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x15afdb,_0x9a8183,_0x557d16)=>_0x15afdb&&_0x557d16?_0x9a8183['changes']['getIndex'](_0x557d16):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x415e73,_0x266c66)=>_0x415e73?_0x266c66['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x24705a);}['init'](){const _0x1be388=this['editor'],_0x2eada3=new yt(_0x1be388,{'direction':'backward'}),_0x37a164=new yt(_0x1be388,{'direction':'forward'});(_0x1be388['commands']['add']('showPreviousChange',_0x2eada3),_0x1be388['commands']['add']('showNextChange',_0x37a164),_0x1be388['commands']['add']('restoreRevision',new _t(_0x1be388)),this['on']('change:numberOfChanges',()=>{_0x2eada3['refresh'](),_0x37a164['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1be388['enableReadOnlyMode']('revision-viewer'),_0x1be388['plugins']['has']('WidgetToolbarRepository'))&&_0x1be388['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x54df8c){await this['loadRevisionData'](_0x54df8c);const _0xe933fd={};for(const _0x4c9e00 in _0x54df8c['diffData']){if(_0x54df8c['diffData'][_0x4c9e00]['attachChange']&&!_0x54df8c['diffData'][_0x4c9e00]['attachChange']['isAttached'])continue;const _0x20320d=this['_removeRevisionMarkers'](JSON['parse'](_0x54df8c['diffData'][_0x4c9e00]['insertions'])),_0x25c0af=this['editor']['editing']['view']['document'],_0x396d22=new _0x54dec5(_0x25c0af,_0x20320d['map'](_0x2b6472=>this['_getViewObj'](_0x2b6472)));this['editor']['data']['processor']['useFillerType']('marked'),_0xe933fd[_0x4c9e00]=this['editor']['data']['processor']['toData'](_0x396d22),this['editor']['data']['processor']['useFillerType']('default');}return _0xe933fd;}async['getRevisionRootsAttributes'](_0x2a1527){await this['loadRevisionData'](_0x2a1527);const _0xec9a88={};for(const _0x15f543 in _0x2a1527['diffData'])_0x2a1527['diffData'][_0x15f543]['attachChange']&&!_0x2a1527['diffData'][_0x15f543]['attachChange']['isAttached']||(_0xec9a88[_0x15f543]=_0x2a1527['diffData'][_0x15f543]['attributesAfter']||{});return _0xec9a88;}['_removeRevisionMarkers'](_0x65a82){return(_0x65a82=_0x65a82['filter'](_0x3391e5=>!_0x3391e5['name']||'revision-start'!==_0x3391e5['name']&&'revision-end'!==_0x3391e5['name']))['forEach'](_0x14030c=>{'string'!=typeof _0x14030c&&(_0x14030c['children']=this['_removeRevisionMarkers'](_0x14030c['children']),_0x14030c['attributes']=_0x14030c['attributes']['filter'](_0x3a1ee4=>!_0x3a1ee4[0x0]['startsWith']('data-revision-')));}),_0x65a82;}async['compare'](_0x25dc24,_0x34d19e,_0x282060=!0x1){if(!this['isEnabled'])return;const _0x57bc65=this['diff'],_0x4c7821=this['repository'],_0x33766f='string'==typeof _0x25dc24?_0x4c7821['getRevision'](_0x25dc24):_0x25dc24,_0x13398b='string'==typeof _0x34d19e?_0x4c7821['getRevision'](_0x34d19e):_0x34d19e,_0x5eb6b4=_0x33766f['id'],_0x225e6f=_0x13398b?_0x13398b['id']:null;if(!_0x282060&&this['diff']&&this['diff']['newRevisionId']===_0x5eb6b4&&this['diff']['oldRevisionId']===_0x225e6f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5eb6b4,_0x225e6f);const _0x3d9f67=this['_getRevisionsRange'](_0x33766f,_0x13398b,!0x0)['map'](_0x337190=>this['loadRevisionData'](_0x337190));return _0x3d9f67['push'](new Promise(_0x47ce33=>{setTimeout(_0x47ce33,0x14);})),Promise['all'](_0x3d9f67)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x25d33e=this['_getDiff'](_0x5eb6b4,_0x225e6f);for(const _0x3100ae of _0x25d33e['changes'])this['_changeIdToChange']['set'](_0x3100ae['id'],_0x3100ae);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3b9e6f=>{for(const _0x3df5e7 of this['editor']['model']['document']['getRootNames']())_0x3b9e6f['detachRoot'](_0x3df5e7);for(const _0x118af6 of Object['keys'](_0x25d33e['model'])){const _0x2761eb=_0x3b9e6f['addRoot'](_0x118af6);for(const _0x48ac69 of Object['keys'](_0x25d33e['attributes'][_0x118af6]))_0x3b9e6f['setAttribute'](_0x48ac69,_0x25d33e['attributes'][_0x118af6][_0x48ac69],_0x2761eb);_0x3b9e6f['insert'](_0x25d33e['model'][_0x118af6],_0x2761eb,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x25d33e['changes'])),this['isReady']=!0x0;})['catch'](_0x1ba2ea=>{console['error'](_0x1ba2ea),this['_cleanUp'](),_0x57bc65&&(this['diff']=_0x57bc65),this['isReady']=!0x0;});}['addRevisionData'](_0xd9b303,_0x33ff04){const _0x2b8ed9=this['repository']['createRevision'](_0xd9b303);return _0x2b8ed9['on']('_update',(_0x18f868,_0x2304b7,_0x3f4530)=>_0x33ff04(_0x2304b7,_0x3f4530,_0x2b8ed9)),this['repository']['addRevision'](_0x2b8ed9),_0x2b8ed9;}['loadRevisionData'](_0x516a3d){if(!_0x516a3d||_0x516a3d['diffData'])return Promise['resolve']();{const _0xb550bb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xb550bb,'revisionId':_0x516a3d['id']})['then'](_0x28c3d3=>{_0x516a3d['_update']({'diffData':_0x28c3d3['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},_0x3652bc=>{for(const _0x24795e of this['editor']['model']['document']['getRootNames']())_0x3652bc['detachRoot'](_0x24795e);});}['_sortAndFilterDiffChanges'](_0x13a70e){const _0x3f1c1e=[],_0x253a6b=new Map();for(const _0x1f3fb8 of this['editor']['model']['document']['getRootNames']()){const _0x53e595=this['editor']['editing']['view']['getDomRoot'](_0x1f3fb8);if(!_0x53e595)continue;const _0x49b0d3=_0x53e595['getClientRects']()['item'](0x0);_0x49b0d3&&(_0x3f1c1e['push'](_0x1f3fb8),_0x253a6b['set'](_0x1f3fb8,_0x49b0d3));}return _0x3f1c1e['sort']((_0x2d755a,_0x177470)=>{const _0x5eac86=_0x253a6b['get'](_0x2d755a),_0x17e766=_0x253a6b['get'](_0x177470);return _0x5eac86['y']-_0x17e766['y']||_0x5eac86['x']-_0x17e766['x'];}),(_0x13a70e=_0x13a70e['filter'](_0x4423e1=>_0x3f1c1e['includes'](_0x4423e1['rootName'])))['sort']((_0x44cd0b,_0x9129ec)=>_0x3f1c1e['indexOf'](_0x44cd0b['rootName'])-_0x3f1c1e['indexOf'](_0x9129ec['rootName'])),_0x13a70e;}['_makeTape'](_0x3ea441){const _0x470d22=Array['from'](_0x3ea441['markers'])['filter'](([_0x36b0bb,_0x269787])=>_0x36b0bb['startsWith']('revision:')&&!_0x269787['isCollapsed']),_0x250075=Array['from'](this['editor']['model']['createRangeIn'](_0x3ea441)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x470d22['length'])for(const _0x155b0f of _0x250075){const [_0x28c932,_0x121cc1]=_0x470d22[0x0],[,_0x3d90c5,_0x4961db]=_0x28c932['split'](':');if(_0x121cc1['end']['isEqual'](_0x155b0f['nextPosition'])&&_0x470d22['shift'](),(_0x155b0f['previousPosition']['isEqual'](_0x121cc1['start'])||_0x155b0f['previousPosition']['isAfter'](_0x121cc1['start']))&&('insertion'==_0x3d90c5?_0x155b0f['isAdded']={'userId':_0x4961db}:'deletion'==_0x3d90c5&&(_0x155b0f['isRemoved']={'userId':_0x4961db})),0x0==_0x470d22['length'])break;}return _0x250075;}['_refreshStartEndIndex'](_0x46bc92){const _0x456e43=new Map();for(let _0x200033=0x0;_0x200033<_0x46bc92['length'];_0x200033++)'text'===_0x46bc92[_0x200033]['type']?(_0x46bc92[_0x200033]['item']['startIndex']=_0x200033,_0x46bc92[_0x200033]['item']['endIndex']=_0x200033):('elementStart'===_0x46bc92[_0x200033]['type']?_0x46bc92[_0x200033]['item']['startIndex']=_0x200033:'elementEnd'===_0x46bc92[_0x200033]['type']&&(_0x46bc92[_0x200033]['item']['endIndex']=_0x200033),_0x456e43['set'](_0x46bc92[_0x200033]['id'],_0x200033));for(const _0xdeeaf5 of _0x456e43['values']())'elementStart'===_0x46bc92[_0xdeeaf5]['type']?_0x46bc92[_0xdeeaf5]['item']['endIndex']=_0x456e43['get'](_0x46bc92[_0xdeeaf5]['pairId']):'elementEnd'===_0x46bc92[_0xdeeaf5]['type']&&(_0x46bc92[_0xdeeaf5]['item']['startIndex']=_0x456e43['get'](_0x46bc92[_0xdeeaf5]['pairId']));}['_processTape'](_0x272179){for(let _0x1c05bd=0x0;_0x1c05bd<_0x272179['length'];_0x1c05bd++){if('elementStart'===_0x272179[_0x1c05bd]['type'])_0x272179[_0x1c05bd]['item']['startIndex']=_0x1c05bd;else{if('elementEnd'===_0x272179[_0x1c05bd]['type']){_0x272179[_0x1c05bd]['item']['endIndex']=_0x1c05bd;const _0x56b5ef=_0x272179[_0x1c05bd]['item']['startIndex'];_0x272179[_0x56b5ef]['pairId']=_0x272179[_0x1c05bd]['id'],_0x272179[_0x1c05bd]['pairId']=_0x272179[_0x56b5ef]['id'];}else _0x272179[_0x1c05bd]['item']['startIndex']=_0x1c05bd,_0x272179[_0x1c05bd]['item']['endIndex']=_0x1c05bd,_0x272179[_0x1c05bd]['pairId']=null;}_0x272179[_0x1c05bd]['markersStart']||(_0x272179[_0x1c05bd]['markersStart']=[],_0x272179[_0x1c05bd]['markersEnd']=[]);}}['_markInsertions'](_0xaad388,_0x996b09){const _0x4eba22=_0xaad388['filter'](_0x38a1dc=>!_0x38a1dc['isAdded']);for(let _0x20d93=0x0;_0x20d93<_0x996b09['length'];_0x20d93++)_0x996b09[_0x20d93]['isAdded']&&(_0x4eba22[_0x20d93]['isAdded']=_0x996b09[_0x20d93]['isAdded']);}['_makeModelFromViewString'](_0x343a47){const _0x3ecdde=JSON['parse'](_0x343a47),_0x5093b9=this['editor']['editing']['view']['document'],_0x467cf6=new _0x54dec5(_0x5093b9,_0x3ecdde['map'](_0x3fb3e6=>this['_getViewObj'](_0x3fb3e6)));return this['editor']['data']['toModel'](_0x467cf6);}['_getViewObj'](_0x4eb84a){const _0x47b6bd=this['editor']['editing']['view']['document'];if('string'==typeof _0x4eb84a)return new _0x53f1ac(_0x47b6bd,_0x4eb84a);{const _0x2b69f2=_0x4eb84a['children']['map'](_0x38c868=>this['_getViewObj'](_0x38c868));return new(Y[_0x4eb84a['type']]||_0x353489)(_0x47b6bd,_0x4eb84a['name'],_0x4eb84a['attributes'],_0x2b69f2);}}['_getDiff'](_0x15d0cf,_0x1c09f0=null){const _0x4b33c8=this['repository']['getRevision'](_0x15d0cf),_0x540d93=_0x1c09f0?this['repository']['getRevision'](_0x1c09f0):null,_0x1184a1=this['_getRevisionsRange'](_0x4b33c8,_0x540d93),_0x5b6913=_0x1184a1[_0x1184a1['length']-0x1],_0x7d796a=new Map(),_0x2ab83a={'model':{},'attributes':{},'changes':[]},_0x5757c8=new Set(),_0x55fca3=new Map();for(let _0x70b941=_0x1184a1['length']-0x1;_0x70b941>=0x0;_0x70b941--){const _0x5a5a4e=_0x1184a1[_0x70b941];for(const _0x4c4991 of Object['keys'](_0x5a5a4e['diffData']))if(_0x5a5a4e['diffData'][_0x4c4991]['attachChange']){const _0x35c604=_0x5a5a4e['diffData'][_0x4c4991]['attachChange'];_0x35c604['isAttached']?(_0x5757c8['add'](_0x4c4991),_0x55fca3['has'](_0x4c4991)&&_0x55fca3['get'](_0x4c4991)['userId']==_0x35c604['userId']?_0x55fca3['delete'](_0x4c4991):_0x55fca3['set'](_0x4c4991,_0x35c604)):_0x55fca3['has'](_0x4c4991)?(_0x5757c8['delete'](_0x4c4991),_0x55fca3['delete'](_0x4c4991)):(_0x5757c8['add'](_0x4c4991),_0x55fca3['set'](_0x4c4991,_0x35c604));}else _0x5757c8['add'](_0x4c4991);}for(const _0xcd1b28 of _0x5757c8){const _0x2a7b00=_0x55fca3['has'](_0xcd1b28)&&!_0x55fca3['get'](_0xcd1b28)['isAttached'];let _0x160c72=_0x2a7b00?_0x1184a1['length']-0x1:0x0;const _0x4eae1b=_0x2a7b00?-0x1:0x1;for(;_0x1184a1[_0x160c72];){const _0x1fd915=_0x1184a1[_0x160c72];if(_0x1fd915['diffData'][_0xcd1b28]){const _0x119818=_0x2a7b00?_0x1fd915['diffData'][_0xcd1b28]['attributesBefore']:_0x1fd915['diffData'][_0xcd1b28]['attributesAfter'];_0x2ab83a['attributes'][_0xcd1b28]=_0x119818?_0x17d3bd(_0x119818):{};break;}_0x160c72+=_0x4eae1b;}}for(const _0x1453b7 of _0x1184a1){_0x1453b7['model']={};for(const _0xc4314b of _0x1453b7['authors'])_0x7d796a['set'](_0xc4314b['id'],_0xc4314b);for(const _0x99891e of _0x5757c8){const _0x5c0ab6=_0x1453b7['diffData'][_0x99891e]?_0x1453b7['diffData'][_0x99891e]['insertions']:'[]',_0x497068=_0x1453b7['diffData'][_0x99891e]?_0x1453b7['diffData'][_0x99891e]['deletions']:'[]';_0x1453b7['model'][_0x99891e]={'insertions':this['_makeModelFromViewString'](_0x5c0ab6),'deletions':this['_makeModelFromViewString'](_0x497068)};}}for(const _0x5512dd of _0x5757c8){let _0x3eec00=null,_0x291c4c=0x0;const _0x1c0e16=new Map(Array['from'](_0x4b33c8['model'][_0x5512dd]['insertions']['markers'])['filter'](([_0x192679])=>!_0x192679['startsWith']('revision:')));let _0x30bd2b=0x0;for(const _0x344672 of _0x1184a1){const _0x16a7f1=this['_makeTape'](_0x344672['model'][_0x5512dd]['insertions']);_0x344672==_0x4b33c8?(_0x3eec00=_0x16a7f1,_0x291c4c=_0x3eec00['length'],_0x3eec00['forEach'](_0x1a5339=>{_0x1a5339['id']=_0x30bd2b++;}),this['_processTape'](_0x3eec00)):this['_markInsertions'](_0x3eec00,_0x16a7f1);const _0x3a55ba=_0x3eec00['filter'](_0x617bb=>!_0x617bb['isAdded'])['map'](_0x2e8f11=>_0x2e8f11['id']);let _0x1c791e=0x0;const _0x1feb6b=this['_makeTape'](_0x344672['model'][_0x5512dd]['deletions']);_0x1feb6b['forEach'](_0x2a919d=>{_0x2a919d['isRemoved']?_0x2a919d['id']=_0x291c4c++:_0x2a919d['id']=_0x3a55ba[_0x1c791e++];}),this['_processTape'](_0x1feb6b),this['_setDistance'](_0x3eec00,'isAdded'),this['_setDistance'](_0x1feb6b,'isRemoved'),_0x344672==_0x4b33c8&&this['_markMarkers'](_0x3eec00,_0x1c0e16),_0x3eec00=this['_joinTapes'](_0x3eec00,_0x1feb6b),this['_refreshStartEndIndex'](_0x3eec00),this['_setDistance'](_0x3eec00,'isRemoved');}_0x3eec00=_0x3eec00['filter'](_0x21719c=>!(_0x21719c['isAdded']&&_0x21719c['isRemoved']));const _0x5cfe55=new Map(_0x5b6913['model'][_0x5512dd]['deletions']['markers']),_0x45681c=new Set(_0x1c0e16['keys']());for(const _0xe7ce21 of _0x5cfe55['keys']())_0x45681c['delete'](_0xe7ce21);this['_markSuggestions'](_0x3eec00,_0x45681c),this['_fixObsoleteTags'](_0x3eec00),_0x3eec00=this['_removeMissingPairs'](_0x3eec00),_0x3eec00=this['_markMismatchedRemovedTags'](_0x3eec00),_0x3eec00=this['_removeUnsupportedChanges'](_0x3eec00);const {root:_0xd73a2b,changes:_0xe7c005}=this['_makeModelFromTape'](_0x3eec00,_0x7d796a,_0x5512dd);_0x2ab83a['model'][_0x5512dd]=_0xd73a2b;const _0x96b651=_0x55fca3['get'](_0x5512dd);if(_0x96b651){const _0x29a131=_0x7d796a['get'](_0x96b651['userId']),_0x5c8760=new r({'author':_0x29a131,'type':_0x96b651['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5512dd});_0xe7c005['unshift'](_0x5c8760),_0x2ab83a['attributes'][_0x5512dd]['revisionHistoryAttachChange']=_0x5c8760['id'];}_0x2ab83a['changes']=_0x2ab83a['changes']['concat'](_0xe7c005);}return _0x2ab83a;}['_markMarkers'](_0xed3d3,_0x5b59d7){for(let _0x29aac0=0x0;_0x29aac0<_0xed3d3['length'];_0x29aac0++)for(const [_0x212c03,_0x552883]of _0x5b59d7)_0x552883['start']['isEqual'](_0xed3d3[_0x29aac0]['previousPosition'])&&_0xed3d3[_0x29aac0]['markersStart']['push'](_0x212c03),_0x552883['end']['isEqual'](_0xed3d3[_0x29aac0]['nextPosition'])&&_0xed3d3[_0x29aac0]['markersEnd']['push'](_0x212c03);}['_joinTapes'](_0x4604f0,_0x37ab96){let _0x145c90=[],_0x50123e=0x0,_0x4c1bdc=0x0;for(;_0x50123e<_0x4604f0['length']||_0x4c1bdc<_0x37ab96['length'];){const _0x2731e9=_0x4604f0[_0x50123e]||{},_0x3d6fe0=_0x37ab96[_0x4c1bdc]||{};if(_0x2731e9['id']==_0x3d6fe0['id'])_0x50123e++,_0x4c1bdc++,_0x145c90['push'](_0x2731e9);else{if(_0x3d6fe0['isRemoved']&&_0x2731e9['isAdded']){const {commonTape:_0x650407,iEnd:_0x169ed3,jEnd:_0x572b0b}=this['_threeWayMerge'](_0x4604f0,_0x50123e,_0x37ab96,_0x4c1bdc);_0x145c90=_0x145c90['concat'](_0x650407),_0x50123e=_0x169ed3,_0x4c1bdc=_0x572b0b;}else _0x3d6fe0['isRemoved']?(_0x4c1bdc++,_0x145c90['push'](_0x3d6fe0)):(_0x50123e++,_0x145c90['push'](_0x2731e9));}}return _0x145c90;}['_markSuggestions'](_0xca3aa9,_0x1a71a0){const _0x3d0afb=[];for(let _0x30a27a=0x0;_0x30a27a<_0xca3aa9['length'];_0x30a27a++){for(let _0x1a4f5e=0x0;_0x1a4f5e<_0xca3aa9[_0x30a27a]['markersStart']['length'];_0x1a4f5e++){const _0x371fe4=_0xca3aa9[_0x30a27a]['markersStart'][_0x1a4f5e];if(!_0x1a71a0['has'](_0x371fe4))continue;const {group:_0x205651,type:_0x481110,authorId:_0x201be9}=_0x450348(_0x371fe4);'revision-suggestion'!=_0x205651||'insertion'!=_0x481110&&'deletion'!=_0x481110||(_0x3d0afb['unshift']({'type':_0x481110,'name':_0x371fe4,'userId':_0x201be9}),_0xca3aa9[_0x30a27a]['markersStart']['splice'](_0x1a4f5e,0x1),_0x1a4f5e--);}_0x2484c6(_0xca3aa9[_0x30a27a]);for(let _0x44aef5=0x0;_0x44aef5<_0xca3aa9[_0x30a27a]['markersEnd']['length'];_0x44aef5++){const _0x2b8c2b=_0xca3aa9[_0x30a27a]['markersEnd'][_0x44aef5];if(!_0x1a71a0['has'](_0x2b8c2b))continue;const {group:_0x19c68f,type:_0x21e3d9}=_0x450348(_0x2b8c2b);if('revision-suggestion'!=_0x19c68f||'insertion'!=_0x21e3d9&&'deletion'!=_0x21e3d9)continue;_0xca3aa9[_0x30a27a]['markersEnd']['splice'](_0x44aef5,0x1),_0x44aef5--;const _0x30b515=_0x3d0afb['findIndex'](_0x5af685=>_0x5af685['name']==_0x2b8c2b);_0x30b515>-0x1&&_0x3d0afb['splice'](_0x30b515,0x1);}}function _0x450348(_0x1134dc){const _0x1fa4d8=_0x1134dc['split'](':');return{'group':_0x1fa4d8[0x0],'type':_0x1fa4d8[0x1],'subType':_0x1fa4d8['length']>=0x5?_0x1fa4d8[0x2]:null,'id':_0x1fa4d8['length']<0x5?_0x1fa4d8[0x2]:_0x1fa4d8[0x3],'authorId':_0x1fa4d8['length']<0x5?_0x1fa4d8[0x3]:_0x1fa4d8[0x4],'markerCount':0x6==_0x1fa4d8['length']?_0x1fa4d8[0x5]:null};}function _0x2484c6(_0x31c825){for(let _0x3c2b2f=0x0;_0x3c2b2f<_0x3d0afb['length'];_0x3c2b2f++){if(_0x31c825['isAdded']&&'insertion'==_0x3d0afb[_0x3c2b2f]['type'])return _0x31c825['isAddSuggestion']=_0x3d0afb[_0x3c2b2f],void delete _0x31c825['isAdded'];if(!_0x31c825['isAdded']&&!_0x31c825['isRemoved']&&'deletion'==_0x3d0afb[_0x3c2b2f]['type'])return void(_0x31c825['isRemoveSuggestion']=_0x3d0afb[_0x3c2b2f]);}}}['_setDistance'](_0x2cef9b,_0x41adb0){let _0x3459c0=0x0,_0x3eb80b=!0x1;const _0x5f2374=new Map();for(const _0x17db5d of _0x2cef9b)_0x17db5d[_0x41adb0]?_0x3eb80b&&(_0x3459c0++,_0x3eb80b=!0x1):(_0x3459c0++,_0x3eb80b=!0x0),_0x5f2374['set'](_0x17db5d['id'],_0x3459c0);for(let _0x40a313=0x0;_0x40a313<_0x2cef9b['length'];_0x40a313++){if('isRemoved'==_0x41adb0&&_0x2cef9b[_0x40a313]['isAdded']||'isAdded'==_0x41adb0&&_0x2cef9b[_0x40a313]['isRemoved'])continue;if('text'==_0x2cef9b[_0x40a313]['type']){_0x2cef9b[_0x40a313]['distance']=0x0;continue;}const _0x5225f6=_0x5f2374['get'](_0x2cef9b[_0x40a313]['pairId']),_0x4430da=_0x5f2374['get'](_0x2cef9b[_0x40a313]['id']);_0x2cef9b[_0x40a313]['distance']=_0x5225f6-_0x4430da;}}['_getRevisionsRange'](_0x1f0f03,_0x660570,_0x797a26=!0x1){const _0x21d870=[];let _0x361bd0=this['repository']['getIndex'](_0x1f0f03),_0x2c5370=this['repository']['getIndex'](_0x660570);for(-0x1==_0x2c5370&&(_0x2c5370=this['repository']['_revisions']['length'],_0x797a26=!0x1);_0x361bd0<_0x2c5370;)_0x21d870['push'](this['repository']['getRevision'](_0x361bd0)),_0x361bd0++;return _0x797a26&&_0x21d870['push'](this['repository']['getRevision'](_0x361bd0)),_0x21d870;}['_threeWayMerge'](_0x9e77cb,_0x18ab3f,_0x1db128,_0x26c39d){const _0x1b28f5=this['editor']['model']['schema'];let _0xffaeea=_0x18ab3f;for(;_0x9e77cb[_0xffaeea]&&_0x9e77cb[_0xffaeea]['isAdded'];)_0xffaeea++;let _0x418552=_0x26c39d;for(;_0x1db128[_0x418552]&&_0x1db128[_0x418552]['isRemoved'];)_0x418552++;_0x1d9b1e(_0x9e77cb,_0x18ab3f,_0xffaeea),_0x1d9b1e(_0x1db128,_0x26c39d,_0x418552);const _0x16917d=_0x1db128['slice'](_0x26c39d,_0x418552)['concat'](_0x9e77cb['slice'](_0x18ab3f,_0xffaeea));return _0x16917d['sort']((_0x35e278,_0x3b76c4)=>_0x35e278['side']!=_0x3b76c4['side']?_0x35e278['side']-_0x3b76c4['side']:_0x35e278['level']!=_0x3b76c4['level']?_0x35e278['level']-_0x3b76c4['level']:_0x35e278['distance']!=_0x3b76c4['distance']?_0x3b76c4['distance']-_0x35e278['distance']:!!_0x35e278['isAdded']!=!!_0x3b76c4['isAdded']?-0x1==_0x35e278['side']||0x0==_0x35e278['side']?_0x35e278['isAdded']?-0x1:0x1:_0x35e278['isAdded']?0x1:-0x1:_0x35e278['index']-_0x3b76c4['index']),{'commonTape':_0x16917d,'iEnd':_0xffaeea,'jEnd':_0x418552};function _0x1d9b1e(_0x705c41,_0x428821,_0x4d4594){let _0x300e6e=-0x1,_0x21fbb7=Number['POSITIVE_INFINITY'],_0x589f5f=!0x0;for(let _0x200520=_0x428821;_0x200520<_0x4d4594;_0x200520++)if(_0x1b28f5['isInline'](_0x705c41[_0x200520]['item'])||(_0x589f5f=!0x1),_0x705c41[_0x200520]['item']['startIndex']<_0x428821&&(_0x300e6e=_0x200520),_0x705c41[_0x200520]['item']['endIndex']>=_0x4d4594){_0x21fbb7=_0x200520;break;}_0x589f5f&&(_0x300e6e=_0x4d4594-0x1);for(let _0x1cb07a=_0x428821;_0x1cb07a<_0x4d4594;_0x1cb07a++)_0x705c41[_0x1cb07a]['side']=_0x1cb07a<=_0x300e6e?-0x1:_0x1cb07a<_0x21fbb7?0x0:0x1,_0x705c41[_0x1cb07a]['index']=_0x1cb07a;let _0x28333d=0x0;for(let _0x1e8607=_0x428821;_0x1e8607<=_0x300e6e;_0x1e8607++)0x0==_0x705c41[_0x1e8607]['distance']?_0x705c41[_0x1e8607]['level']=_0x28333d:(_0x28333d++,_0x705c41[_0x1e8607]['level']=_0x28333d,_0x28333d++);for(let _0x14c522=_0x428821;_0x14c522<_0x4d4594;_0x14c522++)0x0==_0x705c41[_0x14c522]['side']&&(_0x705c41[_0x14c522]['level']=_0x28333d);_0x28333d=0x0;for(let _0x2d99b4=_0x4d4594-0x1;_0x2d99b4>=_0x21fbb7;_0x2d99b4--)0x0==_0x705c41[_0x2d99b4]['distance']?_0x705c41[_0x2d99b4]['level']=_0x28333d:(_0x28333d--,_0x705c41[_0x2d99b4]['level']=_0x28333d,_0x28333d--);}}['_fixObsoleteTags'](_0x575f98){const _0x3b85b3=new Map(),_0x31c42a=this['editor']['model']['schema'];for(let _0x54281d=0x1;_0x54281d<_0x575f98['length'];_0x54281d++){let _0x5086a2,_0xfd25e5,_0x23a456;const _0x592902=_0x575f98[_0x54281d],_0x4cc2c7=_0x575f98[_0x54281d-0x1];if('text'==_0x592902['type'])continue;if(_0x592902['type']!=_0x4cc2c7['type'])continue;if(!_0x31c42a['isBlock'](_0x4cc2c7['item'])||_0x31c42a['isLimit'](_0x4cc2c7['item']))continue;if(!_0x31c42a['isBlock'](_0x592902['item'])||_0x31c42a['isLimit'](_0x592902['item']))continue;if((_0x575f98[_0x54281d]['isAdded']||_0x575f98[_0x54281d]['isAddSuggestion'])&&_0x575f98[_0x54281d-0x1]['isRemoved'])_0x5086a2=_0x575f98[_0x54281d],_0xfd25e5=_0x575f98[_0x54281d-0x1],_0x23a456=_0x54281d-0x1;else{if(!_0x575f98[_0x54281d]['isRemoved']||!_0x575f98[_0x54281d-0x1]['isAdded']&&!_0x575f98[_0x54281d-0x1]['isAddSuggestion'])continue;_0x5086a2=_0x575f98[_0x54281d-0x1],_0xfd25e5=_0x575f98[_0x54281d],_0x23a456=_0x54281d;}const _0x319e4f=_0x5086a2['level']==_0xfd25e5['level'],_0x2fd47e=Math['abs'](_0x5086a2['level'])<Math['abs'](_0xfd25e5['level'])&&0x0==_0xfd25e5['distance'];(_0x319e4f||_0x2fd47e)&&(_0x3b85b3['set'](_0xfd25e5['id'],_0x5086a2['id']),_0x575f98['splice'](_0x23a456,0x1),_0x54281d--,_0x5086a2['isAdded']=!0x1);}for(let _0x5dbf62=0x0;_0x5dbf62<_0x575f98['length'];_0x5dbf62++)_0x3b85b3['has'](_0x575f98[_0x5dbf62]['pairId'])&&(_0x575f98[_0x5dbf62]['pairId']=_0x3b85b3['get'](_0x575f98[_0x5dbf62]['pairId']));}['_removeMissingPairs'](_0x4cc166){const _0x5487a3=new Set(_0x4cc166['map'](_0x182ab1=>_0x182ab1['id']));for(let _0x58cfae=0x0;_0x58cfae<_0x4cc166['length'];_0x58cfae++)_0x5487a3['has'](_0x4cc166[_0x58cfae]['pairId'])||0x0==_0x4cc166[_0x58cfae]['distance']||(_0x4cc166[_0x58cfae]['isIncorrect']=!0x0);return _0x4cc166['filter'](_0x241b36=>!_0x241b36['isIncorrect']);}['_markMismatchedRemovedTags'](_0x404ed3){const _0xa2f294=new Set();for(let _0x45edf8=0x0;_0x45edf8<_0x404ed3['length'];_0x45edf8++){if(_0xa2f294['has'](_0x404ed3[_0x45edf8]['id'])&&_0x404ed3[_0x45edf8]['isRemoved']&&(_0x404ed3[_0x45edf8]['isIncorrect']=!0x0),_0x404ed3[_0x45edf8]['isIncorrect'])continue;if(0x0==_0x404ed3[_0x45edf8]['distance'])continue;if('elementStart'!=_0x404ed3[_0x45edf8]['type'])continue;if(null==_0x404ed3[_0x45edf8]['pairId'])continue;let _0x36ff7c=_0x45edf8+0x1,_0x4704c4=0x0;for(;_0x404ed3[_0x36ff7c]['id']!=_0x404ed3[_0x45edf8]['pairId'];)'elementStart'==_0x404ed3[_0x36ff7c]['type']?_0x4704c4++:'elementEnd'==_0x404ed3[_0x36ff7c]['type']&&_0x4704c4--,_0x36ff7c++;if(0x0!=_0x4704c4){if(_0x404ed3[_0x45edf8]['isRemoved'])_0x404ed3[_0x45edf8]['isIncorrect']=!0x0;else{for(;_0x36ff7c!=_0x45edf8;)_0x404ed3[_0x36ff7c]['isRemoved']&&0x0!=_0x404ed3[_0x36ff7c]['distance']&&(_0x404ed3[_0x36ff7c]['isIncorrect']=!0x0,_0xa2f294['add'](_0x404ed3[_0x36ff7c]['pairId'])),_0x36ff7c--;}}}return _0x404ed3['filter'](_0x28be91=>!_0x28be91['isIncorrect']);}['_removeUnsupportedChanges'](_0x4a6b52){const _0x306f6b=this['editor']['model']['schema'];for(let _0x2e44a9=0x0;_0x2e44a9<_0x4a6b52['length'];_0x2e44a9++){if(!(_0x4a6b52[_0x2e44a9]['isAdded']||_0x4a6b52[_0x2e44a9]['isAddSuggestion']||_0x4a6b52[_0x2e44a9]['isRemoved']||_0x4a6b52[_0x2e44a9]['isRemoveSuggestion']))continue;if(0x0==_0x4a6b52[_0x2e44a9]['distance'])continue;const _0x469bc0=_0x4a6b52[_0x2e44a9]['item'];_0x306f6b['isBlock'](_0x469bc0)||_0x306f6b['isLimit'](_0x469bc0)||(_0x4a6b52[_0x2e44a9]['isAdded']&&delete _0x4a6b52[_0x2e44a9]['isAdded'],_0x4a6b52[_0x2e44a9]['isAddSuggestion']&&delete _0x4a6b52[_0x2e44a9]['isAddSuggestion'],_0x4a6b52[_0x2e44a9]['isRemoveSuggestion']&&delete _0x4a6b52[_0x2e44a9]['isRemoveSuggestion'],_0x4a6b52[_0x2e44a9]['isRemoved']&&(_0x4a6b52[_0x2e44a9]['isIncorrect']=!0x0));}return _0x4a6b52['filter'](_0x4c17cc=>!_0x4c17cc['isIncorrect']);}['_makeModelFromTape'](_0x539d6b,_0x3cf5d1,_0x767d0b){const _0x56492c=new mt(),_0x1cb2fa=[],_0x1553ed=new Map(),_0x5baade=this['editor']['model'],_0x3bfba4=_0x5baade['schema'],_0x33e50f=[_0x56492c],_0x278cde={},_0x3ee12c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2328b3=null;const _0x201465=[0x0];for(let _0xcb7ba2=0x0;_0xcb7ba2<_0x539d6b['length'];_0xcb7ba2++)if('elementStart'===_0x539d6b[_0xcb7ba2]['type']){_0x539d6b[_0xcb7ba2]['previousPosition']=_0x5baade['createPositionFromPath'](_0x56492c,_0x201465);const _0x191067=new ft(_0x539d6b[_0xcb7ba2]['item']['name'],_0x539d6b[_0xcb7ba2]['item']['getAttributes']());_0x33e50f[0x0]['_appendChild'](_0x191067),_0x201465['push'](0x0),_0x33e50f['unshift'](_0x191067),_0x539d6b[_0xcb7ba2]['nextPosition']=_0x5baade['createPositionFromPath'](_0x56492c,_0x201465);}else'elementEnd'===_0x539d6b[_0xcb7ba2]['type']?(_0x33e50f['shift'](),_0x539d6b[_0xcb7ba2]['previousPosition']=_0x5baade['createPositionFromPath'](_0x56492c,_0x201465),_0x201465['pop'](),_0x201465[_0x201465['length']-0x1]++,_0x539d6b[_0xcb7ba2]['nextPosition']=_0x5baade['createPositionFromPath'](_0x56492c,_0x201465)):(_0x539d6b[_0xcb7ba2]['previousPosition']=_0x5baade['createPositionFromPath'](_0x56492c,_0x201465),_0x2328b3?_0x2328b3['_data']+=_0x539d6b[_0xcb7ba2]['item']['data']:_0x2328b3=new wt(_0x539d6b[_0xcb7ba2]['item']['data'],_0x539d6b[_0xcb7ba2]['item']['getAttributes']()),_0x539d6b[_0xcb7ba2+0x1]&&'text'===_0x539d6b[_0xcb7ba2+0x1]['type']&&_0x56c5d9(_0x2328b3,_0x539d6b[_0xcb7ba2+0x1]['item'])||(_0x33e50f[0x0]['_appendChild'](_0x2328b3),_0x2328b3=null),_0x201465[_0x201465['length']-0x1]+=_0x539d6b[_0xcb7ba2]['item']['offsetSize'],_0x539d6b[_0xcb7ba2]['nextPosition']=_0x5baade['createPositionFromPath'](_0x56492c,_0x201465));for(let _0x4b3ff1=0x0;_0x4b3ff1<_0x539d6b['length'];_0x4b3ff1++){const _0x1a8438=_0x539d6b[_0x4b3ff1]['previousPosition'],_0x3ecc1c=_0x539d6b[_0x4b3ff1]['nextPosition'];for(const _0x5ff362 of _0x539d6b[_0x4b3ff1]['markersStart'])_0x1553ed['set'](_0x5ff362,{'start':_0x1a8438,'end':null});_0x4e1153('isRemoveSuggestion',_0x4b3ff1,_0x1a8438,_0x3ecc1c),_0x4e1153('isAddSuggestion',_0x4b3ff1,_0x1a8438,_0x3ecc1c),_0x4e1153('isRemoved',_0x4b3ff1,_0x1a8438,_0x3ecc1c),_0x4e1153('isAdded',_0x4b3ff1,_0x1a8438,_0x3ecc1c);for(const _0x255840 of _0x539d6b[_0x4b3ff1]['markersEnd']){_0x1553ed['get'](_0x255840)['end']=_0x3ecc1c;}}for(const [_0x5100ef,_0x52e95e]of _0x1553ed){const _0x2daadd=this['editor']['model']['createRange'](_0x52e95e['start'],_0x52e95e['end']);_0x56492c['markers']['set'](_0x5100ef,_0x2daadd);}return _0x1cb2fa['sort']((_0x33832e,_0x3f8745)=>{const _0x26a0ec=_0x56492c['markers']['get']('revision:'+_0x33832e['id']),_0x5476b=_0x56492c['markers']['get']('revision:'+_0x3f8745['id']);return _0x26a0ec['start']['isBefore'](_0x5476b['start'])?-0x1:_0x26a0ec['start']['isAfter'](_0x5476b['start'])?0x1:_0x26a0ec['end']['isBefore'](_0x5476b['end'])?-0x1:_0x26a0ec['end']['isAfter'](_0x5476b['end'])?0x1:'add'===_0x33832e['type']?-0x1:0x1;}),{'root':_0x56492c,'changes':_0x1cb2fa};function _0x4e1153(_0x2f55b2,_0x5087ad,_0x436191,_0x45fded){const _0x67c8da=!!_0x539d6b[_0x5087ad][_0x2f55b2],_0x32fbe1=_0x67c8da?_0x539d6b[_0x5087ad][_0x2f55b2]['userId']:null,_0xf86d47=_0x5087ad===_0x539d6b['length']-0x1,_0x37c275=_0x3ee12c[_0x2f55b2][0x0],_0x3caf89=_0x3bfba4['isObject'](_0x539d6b[_0x5087ad]['item']);!_0x278cde[_0x2f55b2]&&_0x67c8da?_0x278cde[_0x2f55b2]={'start':_0x436191,'tapeItem':_0x539d6b[_0x5087ad],'userId':_0x32fbe1,'type':_0x2f55b2}:_0x278cde[_0x2f55b2]&&!_0x67c8da?(_0x278cde[_0x2f55b2]['end']=_0x436191,_0x5306e2(_0x278cde[_0x2f55b2]),_0x278cde[_0x2f55b2]=null):_0x278cde[_0x2f55b2]&&_0x67c8da&&_0x278cde[_0x2f55b2]['userId']!==_0x32fbe1&&(_0x278cde[_0x2f55b2]['end']=_0x436191,_0x37c275&&_0x37c275['userId']===_0x278cde[_0x2f55b2]['userId']||_0x5306e2(_0x278cde[_0x2f55b2]),_0x278cde[_0x2f55b2]={'start':_0x436191,'tapeItem':_0x539d6b[_0x5087ad],'userId':_0x32fbe1,'type':_0x2f55b2}),_0x278cde[_0x2f55b2]&&_0x3caf89&&('elementStart'!==_0x539d6b[_0x5087ad]['type']||_0x37c275&&_0x37c275['userId']===_0x32fbe1||_0x3ee12c[_0x2f55b2]['unshift']({'userId':_0x32fbe1,'object':_0x539d6b[_0x5087ad]['item'],'change':_0x278cde[_0x2f55b2]}),'elementEnd'===_0x539d6b[_0x5087ad]['type']&&_0x37c275&&_0x37c275['object']===_0x539d6b[_0x5087ad]['item']&&(_0x3ee12c[_0x2f55b2]['shift'](),_0x278cde[_0x2f55b2]=_0x37c275['change'])),_0x278cde[_0x2f55b2]&&_0xf86d47&&(_0x278cde[_0x2f55b2]['end']=_0x45fded,_0x5306e2(_0x278cde[_0x2f55b2]),_0x278cde[_0x2f55b2]=null);}function _0x5306e2({start:_0x3943a0,end:_0x8d23df,tapeItem:_0x334d63,userId:_0x58e4e6,type:_0xe6b18a}){const _0xad997f=_0x334d63['item'],_0x4e7715=_0x5baade['schema']['isBlock'](_0xad997f)&&!_0x5baade['schema']['isLimit'](_0xad997f),_0x342ad3=_0x3943a0['nodeAfter']==_0x8d23df['parent']&&_0x8d23df['isAtStart'];if(_0x4e7715&&_0x342ad3)return;const _0x5acb7d=_0x5baade['createRange'](_0x3943a0,_0x8d23df),_0x1a7629=_0x3cf5d1['get'](_0x58e4e6),_0x49cbaf=new r({'author':_0x1a7629,'type':'isAdded'==_0xe6b18a||'isAddSuggestion'==_0xe6b18a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xe6b18a||'isRemoveSuggestion'==_0xe6b18a},'createdAt':new Date(),'rootName':_0x767d0b});_0x1cb2fa['push'](_0x49cbaf),_0x56492c['markers']['set']('revision:'+_0x49cbaf['id'],_0x5acb7d);}function _0x56c5d9(_0x2b6a57,_0x5e7b6c){const _0x57e90f=_0x2b6a57['getAttributes'](),_0x1ac4c7=_0x5e7b6c['getAttributes']();for(const _0x444157 of _0x57e90f){if(_0x444157[0x1]!==_0x5e7b6c['getAttribute'](_0x444157[0x0]))return!0x1;_0x1ac4c7['next']();}return _0x1ac4c7['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x101a30=>{const _0x16c8e0=_0x101a30['markerName']['split'](':')[0x1],_0x273c4d=this['_getChangeFromId'](_0x16c8e0);if(!_0x273c4d)return null;const _0x4adb9a='add'==_0x273c4d['type']?'insertion':'deletion',_0x27abb5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4adb9a];return _0x273c4d['data']['isSuggestion']&&_0x27abb5['push']('ck-suggestion-marker-'+_0x4adb9a+'-new'),this['activeChange']==_0x273c4d&&_0x27abb5['push']('ck-suggestion-marker--active'),{'classes':_0x27abb5,'attributes':{'data-change-id':_0x16c8e0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x254c62=>{_0x254c62['on']('element:pre',(_0x19f4b6,_0x140c56,_0x1409f6)=>{const _0x40d0c4=_0x140c56['viewItem']['getChild'](0x0);if(!_0x40d0c4||!_0x40d0c4['is']('element','code'))return;if(!_0x1409f6['consumable']['consume'](_0x40d0c4,{'attributes':['vid_start','vid_end']}))return;const _0x214084=_0x140c56['modelRange']['start']['nodeAfter'];_0x1409f6['writer']['setAttribute']('vid_start',_0x40d0c4['getAttribute']('vid_start'),_0x214084),_0x1409f6['writer']['setAttribute']('vid_end',_0x40d0c4['getAttribute']('vid_end'),_0x214084);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x31a20d=>{_0x31a20d['on']('element',(_0x24baf6,_0x39fcdc,_0xed679e)=>{if(!_0xed679e['consumable']['consume'](_0x39fcdc['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x39fcdc['modelRange']['isCollapsed'])return;const _0xb060c3=_0x39fcdc['modelRange']['start']['nodeAfter'];_0xb060c3['hasAttribute']('vid_start')||_0xb060c3['hasAttribute']('vid')||(_0xed679e['writer']['setAttribute']('vid_start',_0x39fcdc['viewItem']['getAttribute']('vid_start'),_0xb060c3),_0xed679e['writer']['setAttribute']('vid_end',_0x39fcdc['viewItem']['getAttribute']('vid_end'),_0xb060c3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x288530=>_0x288530['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xf9d6a2,[,_0x72a731])=>{['vid_start','vid_end','vid']['includes'](_0x72a731)&&(_0xf9d6a2['return']=!0x0,_0xf9d6a2['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xce5367=>{_0xce5367['on']('attribute:vid',(_0x18f565,_0x21f10a,_0x3ea75d)=>{if('\x20'!=_0x21f10a['item']['data']||_0x21f10a['item']['parent']['maxOffset']>0x1)return;if(!_0x3ea75d['consumable']['consume'](_0x21f10a['item'],_0x18f565['name']))return;const _0x20f49a=_0x3ea75d['writer'],_0x43f648=_0x3ea75d['mapper']['toViewRange'](_0x21f10a['range']);_0x20f49a['wrap'](_0x43f648,_0x20f49a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2843b4){const _0x8ad69a=_0x2843b4['plugins']['get']('RevisionViewer');return(_0x4d11df,_0x27a74b,_0x234715)=>{const _0x4b176d=_0x27a74b['markerName']['split'](':')[0x1],_0x38af79=_0x8ad69a['_getChangeFromId'](_0x4b176d);if(!_0x38af79)return null;const _0x11fd8c='add'==_0x38af79['type']?'split':'merge';if(!_0x234715['consumable']['test'](_0x27a74b['markerRange'],_0x4d11df['name']))return;const _0x3a7623=_0x27a74b['markerRange']['getWalker'](),_0x3f2ac5=_0x27a74b['markerRange']['start'],_0x43bea3=_0x2843b4['model']['schema'];let _0x151c27=null,_0x1258c9=null,_0xff1393=!0x1,_0x395f7c=!0x1;for(const _0x43f27f of _0x3a7623){const _0x530789=_0x43f27f['item'];_0xff1393=_0xff1393||_0x43bea3['isContent'](_0x530789);const _0x2a9769=_0x234715['mapper']['toViewElement'](_0x530789);if(_0x2a9769&&_0x2a9769['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x43f27f['type']&&(_0x43bea3['isBlock'](_0x530789)&&!_0x43bea3['isLimit'](_0x530789)&&(_0x530789['nextSibling']||_0x3f2ac5['isAtEnd']?_0x151c27&&_0x151c27['parent']==_0x530789||(_0x151c27=_0x530789,_0x264498(_0x43f27f['previousPosition']),_0x395f7c=!0x0):_0x1258c9=_0x1258c9||_0x43f27f['previousPosition']));}function _0x264498(_0xf9c63f){const _0x4dd353=_0x234715['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11fd8c}),_0xb225e8=_0x234715['mapper']['toViewPosition'](_0xf9c63f);_0x38af79['data']['isSuggestion']&&_0x234715['writer']['addClass']('ck-suggestion-marker-'+_0x11fd8c+'-new',_0x4dd353),_0x8ad69a['activeChange']==_0x38af79&&_0x234715['writer']['addClass']('ck-suggestion-marker--active',_0x4dd353),_0x234715['writer']['insert'](_0xb225e8,_0x4dd353),_0x234715['mapper']['bindElementToMarker'](_0x4dd353,_0x27a74b['markerName']);}_0xff1393||_0x395f7c||!_0x1258c9||_0x264498(_0x1258c9);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x37484a,_0x137e5c,_0x23c76a)=>{const _0x41ba09=_0x23c76a['mapper']['markerNameToElements'](_0x137e5c['markerName']);if(_0x41ba09){for(const _0x59b109 of _0x41ba09)(_0x59b109['hasClass']('ck-suggestion-marker-split')||_0x59b109['hasClass']('ck-suggestion-marker-merge'))&&(_0x23c76a['mapper']['unbindElementFromMarkerName'](_0x59b109,_0x137e5c['markerName']),_0x23c76a['writer']['remove'](_0x59b109));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x49b44c,_0x4ce410,_0x2fb3e8)=>{const _0x25b85c=_0x4ce410['markerName']['split'](':')[0x1],_0x551fd5=this['_getChangeFromId'](_0x25b85c);if(!_0x551fd5)return null;const _0x1187c8='add'==_0x551fd5['type']?'split':'merge';if(_0x2fb3e8['consumable']['test'](_0x4ce410['markerRange'],_0x49b44c['name']))for(const _0x33edac of _0x4ce410['markerRange']['getItems']()){if(!_0x33edac['is']('element','softBreak'))continue;const _0x2d66f6=_0x2fb3e8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1187c8}),_0x373712=_0x2fb3e8['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x33edac));_0x551fd5['data']['isSuggestion']&&_0x2fb3e8['writer']['addClass']('ck-suggestion-marker-'+_0x1187c8+'-new',_0x2d66f6),this['activeChange']==_0x551fd5&&_0x2fb3e8['writer']['addClass']('ck-suggestion-marker--active',_0x2d66f6),_0x2fb3e8['writer']['insert'](_0x373712,_0x2d66f6),_0x2fb3e8['mapper']['bindElementToMarker'](_0x2d66f6,_0x4ce410['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2af64d=>{for(const _0x503496 of this['editor']['model']['document']['getRootNames']()){const _0x1b9151=this['editor']['model']['document']['getRoot'](_0x503496),_0x191ea0=this['editor']['editing']['view']['document']['getRoot'](_0x503496);if(_0x191ea0){const _0x4aff7f=_0x1b9151['getAttribute']('revisionHistoryAttachChange');if(_0x2af64d['removeAttribute']('data-change-id',_0x191ea0),_0x2af64d['removeClass']('ck-revision-history-root-add',_0x191ea0),_0x2af64d['removeClass']('ck-revision-history-root-remove',_0x191ea0),_0x2af64d['removeClass']('ck-revision-history-root--active',_0x191ea0),_0x4aff7f){const _0x3a6e72=this['_getChangeFromId'](_0x4aff7f);if(!_0x3a6e72)return null;_0x2af64d['setAttribute']('data-change-id',_0x4aff7f,_0x191ea0),_0x2af64d['addClass']('ck-revision-history-root-'+_0x3a6e72['type'],_0x191ea0),this['activeChange']==_0x3a6e72&&_0x2af64d['addClass']('ck-revision-history-root--active',_0x191ea0);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1cde96=>'revision-comment:'+_0x1cde96,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x25aed5=>'revision-suggestion:'+_0x25aed5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x183890=>({'name':'suggestion:'+_0x183890,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x58389c=>{const _0x5ec00d=_0x58389c['markerName']['split'](':')[0x1];return'insertion'!=_0x5ec00d&&'deletion'!=_0x5ec00d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5ec00d]};}}),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',(_0x254207,_0x3a7884,_0x34f6d2)=>{const _0x5bb935=_0x34f6d2['mapper']['markerNameToElements'](_0x3a7884['markerName']);if(_0x5bb935){for(const _0x33b68a of _0x5bb935)_0x33b68a['is']('uiElement')&&(_0x34f6d2['mapper']['unbindElementFromMarkerName'](_0x33b68a,_0x3a7884['markerName']),_0x34f6d2['writer']['remove'](_0x33b68a));}},{'priority':'high'});}['_getChangeFromId'](_0xfb954c){return this['_changeIdToChange']['get'](_0xfb954c);}['_getViewForChange'](_0x3ddf0c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3ddf0c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xc500d4,_0x5bdf57,_0xf04213,_0x35ba13)=>{_0x35ba13&&this['_balloon']['remove'](_0x35ba13),_0xf04213&&(this['_balloon']['add']({'view':_0xf04213,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2e15f3=this['editor']['editing'],_0x3c1748=this['_getChangeFromId'](_0xf04213['changeId']);let _0x3a29e5;if(_0x3c1748['data']['isOnRoot']){const _0x173b06=_0x2e15f3['view']['getDomRoot'](_0x3c1748['rootName']);_0x3a29e5=Array['from'](_0x173b06['getClientRects']());}else{const _0x561778=this['editor']['model']['markers']['get']('revision:'+_0xf04213['changeId']);_0x3a29e5=Array['from'](_0x2e15f3['mapper']['markerNameToElements'](_0x561778['name']))['map'](_0x307cca=>_0x2e15f3['view']['domConverter']['mapViewToDom'](_0x307cca))['map'](_0x1efaff=>Array['from'](_0x1efaff['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3a29e5[0x0];return _0x3a29e5['find'](_0x10ff0a=>_0x10ff0a['top']-0x3<=this['_activeViewTarget']['y']&&_0x10ff0a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x10ff0a['left']-0x3<=this['_activeViewTarget']['x']&&_0x10ff0a['right']+0x3>=this['_activeViewTarget']['x'])||_0x3a29e5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3e71bf,_0x347170,_0x426980,_0x33d9fb)=>{this['activeView']=_0x426980?this['_getViewForChange'](_0x426980):null,this['editor']['model']['change'](()=>{const _0x5bfee8=this['editor']['editing'];_0x33d9fb&&(_0x33d9fb['data']['isOnRoot']?_0x5bfee8['view']['change'](_0x2d12e3=>{_0x2d12e3['removeClass']('ck-revision-history-root--active',_0x5bfee8['view']['document']['getRoot'](_0x33d9fb['rootName']));}):_0x5bfee8['reconvertMarker']('revision:'+_0x33d9fb['id'])),_0x426980&&(_0x426980['data']['isOnRoot']?_0x5bfee8['view']['change'](_0x209237=>{_0x209237['addClass']('ck-revision-history-root--active',_0x5bfee8['view']['document']['getRoot'](_0x426980['rootName']));}):_0x5bfee8['reconvertMarker']('revision:'+_0x426980['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4045be,_0x25546e)=>{if(this['activeChange'])return;const _0x4167c3=this['_findChangeIdFromDomTarget'](_0x25546e['target']),_0x7b768c=this['_changeIdToChange']['get'](_0x4167c3);_0x7b768c?(this['_activeViewTarget']={'x':_0x25546e['domEvent']['x'],'y':_0x25546e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x7b768c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x21fae8,_0x1beec8)=>{const _0x4b1ee9=this['_findChangeIdFromDomTarget'](_0x1beec8['target']),_0x14db19=this['_changeIdToChange']['get'](_0x4b1ee9);_0x14db19?(this['_activeViewTarget']={'x':_0x1beec8['domEvent']['x'],'y':_0x1beec8['domEvent']['y']},_0x14db19===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x14db19):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2dd14a){do{const _0x4b143a=_0x2dd14a['getAttribute']('data-change-id');if(_0x4b143a)return _0x4b143a;_0x2dd14a=_0x2dd14a['parent'];}while(_0x2dd14a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x293eeb=>{for(const _0x5c509f of this['editor']['model']['markers'])_0x293eeb['removeMarker'](_0x5c509f);});}}function Z(_0x1ce404,_0x4adb2b){return(_0x4da955,_0x423833,_0x49c536)=>{if(!_0x49c536['consumable']['test'](_0x423833['markerRange'],_0x4da955['name']))return;const _0x4502d6=_0x423833['markerRange']['getWalker'](),_0xabe74d=_0x423833['markerRange']['start'],_0xece76f=_0x1ce404['model']['schema'];let _0x46c5fe=null,_0x37ce9d=null,_0x5b3663=!0x1,_0x5e2619=!0x1;for(const _0x221f6f of _0x4502d6){const _0x42e917=_0x221f6f['item'];_0x5b3663=_0x5b3663||_0xece76f['isContent'](_0x42e917);const _0xab0209=_0x49c536['mapper']['toViewElement'](_0x42e917);if(_0xab0209&&_0xab0209['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x221f6f['type']&&(_0xece76f['isBlock'](_0x42e917)&&!_0xece76f['isLimit'](_0x42e917)&&(_0x42e917['nextSibling']||_0xabe74d['isAtEnd']?_0x46c5fe&&_0x46c5fe['parent']==_0x42e917||(_0x46c5fe=_0x42e917,_0x34adec(_0x221f6f['previousPosition']),_0x5e2619=!0x0):_0x37ce9d=_0x37ce9d||_0x221f6f['previousPosition']));}function _0x34adec(_0x431530){const _0x26d93a=_0x49c536['mapper']['toViewPosition'](_0x431530),_0x15080e=_0x49c536['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4adb2b});_0x49c536['writer']['insert'](_0x26d93a,_0x15080e),_0x49c536['mapper']['bindElementToMarker'](_0x15080e,_0x423833['markerName']);}_0x5b3663||_0x5e2619||!_0x37ce9d||_0x34adec(_0x37ce9d);};}class _t extends _0x105923{constructor(_0x576336){super(_0x576336);const _0x5b768d=_0x576336['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5b768d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5b768d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5a9d52=this['editor'],_0xf0ac96=_0x5a9d52['plugins']['get'](d),_0x371de1=_0xf0ac96['isReady']?_0xf0ac96['diff']['newRevisionId']:null;_0x5a9d52['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x371de1);}['refresh'](){const {isReady:_0x286a86,isEnabled:_0x32e8d0,repository:_0x5b9a83,diff:_0xc9e076}=this['editor']['plugins']['get'](d),_0x67190=_0xc9e076&&_0x5b9a83['getLaterVisibleRevision'](_0xc9e076['newRevisionId']);this['isEnabled']=_0x286a86&&_0x32e8d0&&Boolean(_0x67190);}}class yt extends _0x105923{['_step'];constructor(_0xbf74dc,{direction:_0x125751}){super(_0xbf74dc);const _0x44eb03=_0xbf74dc['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x125751?0x1:-0x1,this['listenTo'](_0x44eb03,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x44eb03,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x44eb03,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3455fb=this['editor'],_0x39e751=_0x3455fb['plugins']['get'](d),{isNavigationMode:_0x1bc07a,currentChangeNumber:_0xa05a9f}=_0x39e751;let _0x5a7a7c;if(_0x39e751['activeChange']=_0x1bc07a?_0x39e751['diff']['changes']['get'](_0xa05a9f+this['_step']):_0x39e751['diff']['changes']['first'],_0x39e751['activeChange']['data']['isOnRoot'])_0x5a7a7c=_0x3455fb['editing']['view']['getDomRoot'](_0x39e751['activeChange']['rootName']);else{const _0x2d505f=_0x3455fb['model']['markers']['get']('revision:'+_0x39e751['activeChange']['id']);_0x5a7a7c=_0x30cc80(_0x3455fb['editing'],_0x2d505f);}_0x1add36({'target':_0x5a7a7c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x43f232,currentChangeNumber:_0x57b0ac,numberOfChanges:_0x46211d,isReady:_0x2e9fae,isEnabled:_0x2a7de9}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2a7de9&&_0x2e9fae&&_0x46211d)&&(!_0x43f232||(0x1===this['_step']?_0x57b0ac<_0x46211d-0x1:_0x57b0ac>0x0));}}class li extends _0x25d2fd{constructor(_0x5063ec){super(_0x5063ec);const _0x36cc88=this['bindTemplate'],_0x453bcf=new _0x516190(_0x5063ec),_0x465800=new _0x516190(_0x5063ec);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',(_0x48887d,_0x34e6d2)=>_0x48887d&&_0x34e6d2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1350e1,_0x3582e6,_0x8583dc,_0x2d0353)=>{if(!_0x1350e1)return m(_0x5063ec,'Loading...');if(!_0x8583dc)return m(_0x5063ec,'No\x20changes');const _0x183d03=m(_0x5063ec,'NUMBER_OF_CHANGES',_0x8583dc);return _0x2d0353?m(_0x5063ec,'X_OF_Y_CHANGES',[_0x3582e6+0x1,_0x8583dc]):_0x183d03;}),_0x453bcf['set']({'label':m(_0x5063ec,'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'}),_0x465800['set']({'label':m(_0x5063ec,'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'}),_0x453bcf['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x465800['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x453bcf['on']('execute',()=>this['fire']('execute','backward')),_0x465800['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',_0x36cc88['if']('_isStatusLabelVisible','ck-hidden',_0x769e96=>!_0x769e96)]},'children':[{'text':_0x36cc88['to']('isNavigationMode',_0x338154=>_0x338154?m(_0x5063ec,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5063ec,'Total')+':\x20')}]},{'text':_0x36cc88['to']('_statusText')}]},new _0x55c71b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x453bcf,_0x465800]}]});}}const ee='ck-editor__editable__loading-overlay';class ie extends _0x22cacb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3f0b0b=this['editor']['editing']['view'];_0x3f0b0b['change'](_0x1bb459=>{for(const _0x48ddd3 of _0x3f0b0b['document']['roots'])_0x1bb459['addClass'](ee,_0x48ddd3);});}['hide'](){const _0x105623=this['editor']['editing']['view'];_0x105623['change'](_0x3661d4=>{for(const _0x30d59a of _0x105623['document']['roots'])_0x3661d4['removeClass'](ee,_0x30d59a);});}}class g extends _0x22cacb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ie];}['init'](){const _0x17ae45=this['editor'],_0x354d03=_0x17ae45['plugins']['get'](d),_0x41f934=_0x17ae45['plugins']['get'](ie);_0x17ae45['ui']['componentFactory']['add']('exitToEditing',_0x5c3240=>{const _0x3ec837=new _0x516190(_0x5c3240);return _0x3ec837['set']({'label':m(_0x5c3240,'Back\x20to\x20editing'),'icon':_0x1c30e8['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3ec837,'execute',()=>{_0x17ae45['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3ec837;}),_0x17ae45['ui']['componentFactory']['add']('restoreRevision',_0x3ebd10=>{const _0xce8d86=new _0x516190(_0x3ebd10);return _0xce8d86['set']({'label':m(_0x3ebd10,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xce8d86['bind']('isEnabled')['to'](_0x17ae45['commands']['get']('restoreRevision')),this['listenTo'](_0xce8d86,'execute',()=>_0x17ae45['execute']('restoreRevision')),_0xce8d86;}),_0x17ae45['ui']['componentFactory']['add']('changesNavigation',_0x7440a6=>{const _0x3fc913=new li(_0x7440a6),_0x4c61c2=_0x17ae45['commands']['get']('showPreviousChange'),_0x21fe15=_0x17ae45['commands']['get']('showNextChange');return _0x3fc913['bind']('isBackwardNavigationEnabled')['to'](_0x4c61c2,'isEnabled'),_0x3fc913['bind']('isForwardNavigationEnabled')['to'](_0x21fe15,'isEnabled'),_0x3fc913['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x354d03),this['listenTo'](_0x3fc913,'execute',(_0x2ab4f7,_0x4f13c3)=>{_0x17ae45['execute']('forward'===_0x4f13c3?'showNextChange':'showPreviousChange');}),_0x3fc913;}),_0x41f934['show'](),_0x354d03['on']('change:isReady',(_0x285178,_0x22f0cc,_0x3b2f36)=>{_0x3b2f36?_0x41f934['hide']():_0x41f934['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x32acfe,_0x546b89){super(_0x32acfe,_0x546b89);const _0x420c74=this['bindTemplate'];this['set']({'label':m(_0x32acfe,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x32acfe,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x420c74['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 _0x55d098=this['fieldView']['element'];this['_tooltipString']=_0x55d098['scrollWidth']>_0x55d098['clientWidth']&&_0x55d098['value']||'';}}class ti extends _0x25d2fd{constructor(_0x2b44dc,_0x57b49b,_0x11023f){super(_0x2b44dc);const _0x89dd59=new _0x2b845a();_0x89dd59['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 _0x3baa23=['ck','ck-revision-history-sidebar__revision-author'];_0x11023f&&_0x3baa23['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3dcc1d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2b44dc,_0x11023f?'Revision\x20creator':'Revision\x20author')},'children':[_0x89dd59,_0x57b49b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3baa23},'children':_0x3dcc1d});}}function ni(_0x411512,_0x4b5776){const _0x5aebd4=_0x411512['bindTemplate'],_0x497cbd=_0x411512['locale'],_0x566aff=_0x220ba1(_0x497cbd);_0x566aff['panelPosition']='sw';const _0x87b47f=function(_0x1ff129,_0x5133e9){const _0x4b1964=function(_0x466f33,_0x3b59ea){const _0x3d7db0=_0x466f33['locale'],_0x296b1d={'Compare\x20against\x20selected':m(_0x3d7db0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3d7db0,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3d7db0,'Restore\x20this\x20revision')};return _0x3b59ea['map'](_0x90314b=>{const _0x5d3693=_0x296b1d[_0x90314b['name']];return _0x5d3693&&_0x5d3693!==_0x90314b['name']&&(_0x90314b['name']=_0x5d3693),_0x90314b;});}(_0x1ff129,_0x5133e9),_0xdc7e17=new _0x39be91();for(const _0x2fa2d1 of _0x4b1964){const _0x86520b={'type':'button','model':new to({'label':_0x2fa2d1['name'],'class':_0x2fa2d1['class'],'withText':!0x0,'role':'menuitem','_action':_0x2fa2d1['action']})};_0x86520b['model']['bind']('isEnabled')['to'](_0x1ff129,'isActionsDropdownOpen',_0x548c8a=>'function'!=typeof _0x2fa2d1['isEnabled']||(!_0x548c8a||_0x2fa2d1['isEnabled'](_0x1ff129))),_0xdc7e17['add'](_0x86520b);}return _0xdc7e17;}(_0x411512,_0x4b5776);return _0x411512['bind']('isActionsDropdownOpen')['to'](_0x566aff,'isOpen'),_0x566aff['buttonView']['set']({'label':m(_0x497cbd,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c30e8['threeVerticalDots']}),_0x566aff['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5aebd4['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5aebd4['to'](_0x5716bf=>_0x5716bf['stopPropagation']())}}),_0x566aff['on']('execute',_0x58f190=>{_0x411512['isReady']&&'function'==typeof _0x58f190['source']['_action']&&_0x58f190['source']['_action'](_0x411512);}),_0x164bbd(_0x566aff,_0x87b47f,{'role':'menu'}),_0x566aff['listenTo'](_0x411512,'change:isActionsDropdownOpen',(_0x5d9f74,_0x40dc0c,_0xa52637)=>{if(_0xa52637)for(const _0x5dedd5 of _0x566aff['listView']['items']){const _0x422f9c=_0x5dedd5['children']['first'],_0x2e7bc2=_0x4b5776['find'](_0x1c9de3=>_0x1c9de3['action']===_0x422f9c['_action'])['isVisible'];_0x5dedd5['isVisible']=void 0x0===_0x2e7bc2||_0x2e7bc2(_0x411512);}}),_0x566aff;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x40f150(_0x25d2fd){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x56f38a,_0x476c50,_0x2759ce,_0x26c63a){super(_0x56f38a);const _0x16d405=this['bindTemplate'],_0x2fb73a=function(_0xb8f1b4,_0x1a0a02){const _0x3500f0=Array['from'](_0x1a0a02['authors'])['filter'](_0x396eb7=>_0x396eb7!=_0x1a0a02['creator']);return _0x1a0a02['creator']&&_0x3500f0['unshift'](_0x1a0a02['creator']),_0x3500f0['map'](_0x5f5dd2=>new ti(_0xb8f1b4,_0x5f5dd2,_0x5f5dd2==_0x1a0a02['creator']));}(_0x56f38a,_0x476c50);this['id']=_0x476c50['id'],this['_revision']=_0x476c50,this['_requireRevisionName']=_0x26c63a,this['bind']('name','createdAt')['to'](_0x476c50),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5908ed=>{return _0x48d2fc=_0x56f38a['uiLanguage'],(_0x2fd3f0=_0x5908ed)['toLocaleDateString'](_0x48d2fc,{'month':'long','day':'numeric'})+',\x20'+_0x2fd3f0['toLocaleTimeString'](_0x48d2fc,{'hour':'numeric','minute':'numeric'});var _0x48d2fc,_0x2fd3f0;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x56f38a,_0x17aea7),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x37ef04=>_0x37ef04||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x347b91,_0x3de570)=>_0x347b91&&_0x3de570),this['revisionActionsView']=_0x2759ce&&_0x2759ce['length']?ni(this,_0x2759ce):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x16d405['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x16d405['if']('isEnabled','ck-disabled',_0x4fe2c0=>!_0x4fe2c0),_0x16d405['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x16d405['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x16d405['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':_0x16d405['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':_0x2fb73a}]},this['revisionActionsView']],'on':{'click':_0x16d405['to'](_0x44a0ce=>{_0x44a0ce['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5a7dac=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5a7dac,'change',()=>{this['_requireRevisionName']&&!_0x5a7dac['value']||this['fire']('setName',{'id':this['id'],'name':_0x5a7dac['value']}),_0x5a7dac['value']||(_0x5a7dac['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x327c17,_0x5158b5){const _0x24ee7f=_0x1492d4['fromJSDate'](_0x327c17)['setLocale'](_0x5158b5),_0x63ef64=_0x1492d4['local'](),_0x44bba4=_0x63ef64['minus']({'days':0x1})['startOf']('day');let _0x5896d5,_0x485755;return _0x24ee7f['hasSame'](_0x63ef64,'day')?(_0x5896d5=_0x24ee7f['startOf']('day')['toJSDate'](),_0x485755=_0x24ee7f['toRelativeCalendar']()):_0x24ee7f['hasSame'](_0x44bba4,'day')?(_0x5896d5=_0x44bba4['toJSDate'](),_0x485755=_0x24ee7f['toRelativeCalendar']()):_0x24ee7f['hasSame'](_0x63ef64,'week')?(_0x5896d5=_0x24ee7f['startOf']('week')['toJSDate'](),_0x485755=_0x24ee7f['weekdayLong']||''):_0x24ee7f['hasSame'](_0x63ef64,'year')?(_0x5896d5=_0x24ee7f['startOf']('month')['toJSDate'](),_0x485755=_0x24ee7f['monthLong']||''):(_0x5896d5=_0x24ee7f['startOf']('year')['toJSDate'](),_0x485755=String(_0x24ee7f['year'])),{'startDate':_0x5896d5,'localizedPeriodName':_0x485755};}class pi extends _0x25d2fd{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x348ffa,_0x3fc009,_0x25db08,_0x23e0eb){super(_0x348ffa);const _0x4c9539=mi(_0x3fc009,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3fc009,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x25db08,this['_requireRevisionName']=_0x23e0eb,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':_0x4c9539}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xe0460e){const _0x3f03c6=new ai(this['locale'],_0xe0460e,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3f03c6);}['removeRevision'](_0x37b364){const _0x3cc0b7=this['revisionViews']['find'](_0x3e523d=>_0x3e523d['id']===_0x37b364['id']);this['revisionViews']['remove'](_0x3cc0b7);}}class as extends _0x25d2fd{constructor(_0x76a157){super(_0x76a157);const _0x86ab5e=new _0x2b845a();_0x86ab5e['content']=_0x1c30e8['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x86ab5e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x76a157,'Revision\x20history')]}]});}}class vi extends _0x25d2fd{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xffb45f,_0x5c699b,_0x13b907,_0x252a51){super(_0xffb45f);const _0x22f48c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5c699b,this['_revisionActions']=_0x13b907,this['_requireRevisionName']=_0x252a51,this['on']('select',(_0x20c2a3,_0x3e00ef)=>{this['fire']('revisionSelected',_0x3e00ef);}),this['on']('setName',(_0x1a2841,_0xa9864c)=>{this['fire']('revisionSetName',_0xa9864c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xffb45f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x22f48c['if']('isEnabled','ck-disabled',_0x5e7cc5=>!_0x5e7cc5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x920657 of this['_revisions'])this['_addRevision'](_0x920657);this['_revisions']['on']('add',(_0x577139,_0x1f5d7)=>{this['_addRevision'](_0x1f5d7);}),this['_revisions']['on']('remove',(_0x32863b,_0xf4c2dd)=>{this['_removeRevision'](_0xf4c2dd);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4b4814=>_0x4b4814['revisionViews']['map'](_0x14bde3=>_0x14bde3))['flat']();}['selectRevision'](_0x4e5ea2){for(const _0x3c8b1a of this['revisionViews'])_0x4e5ea2&&_0x4e5ea2['id']===_0x3c8b1a['id']?_0x3c8b1a['select']():_0x3c8b1a['deselect']();}['highlightRevisions'](_0x8b5e44){for(const _0x57707a of this['revisionViews'])_0x8b5e44['some'](({id:_0x239e05})=>_0x239e05===_0x57707a['id'])?_0x57707a['highlight']():_0x57707a['unhighlight']();}['_addRevision'](_0x9cc294){const _0x3938a5=mi(_0x9cc294['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2759da=this['timePeriodViews']['get'](0x0);_0x2759da&&_0x2759da['startDate']['getTime']()===_0x3938a5['getTime']()||(_0x2759da=new pi(this['locale'],_0x3938a5,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2759da)),_0x2759da['addRevision'](_0x9cc294);}['_removeRevision'](_0x112da7){const _0xbe572c=mi(_0x112da7['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xbe572c)['removeRevision'](_0x112da7);}['_getTimePeriodViewByStartDate'](_0x51c431){return this['timePeriodViews']['find'](_0x23fb69=>_0x23fb69['startDate']['getTime']()===_0x51c431['getTime']());}}class w extends _0x22cacb{['_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(_0x19cf06,_0x2aa33f){super(_0x2aa33f),this['sourceElement']=_0x19cf06,this['model']['document']['createRoot']();const _0x17c798=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x17c798);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x387289,_0x4b39d7){const _0x2f32c8=new this(_0x387289,_0x4b39d7);return await _0x2f32c8['initPlugins'](),await _0x2f32c8['ui']['init'](_0x387289),await _0x2f32c8['data']['init'](_0x2f32c8['config']['get']('initialData')||''),_0x2f32c8['fire']('ready'),_0x2f32c8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x29e489{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x81bfbb){function _0x39f5e7(_0x4b4337){return _0x4b4337['map'](_0x3e9ea4=>String['fromCharCode'](_0x3e9ea4))['join']('');}super(_0x81bfbb),this['result']='end',_0x81bfbb[_0x39f5e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f5e7([0x76,0x69,0x65,0x77])][_0x39f5e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39f5e7([0x61,0x75,0x74,0x6f]),_0x81bfbb[_0x39f5e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39f5e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39f5e7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39f5e7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39f5e7([0x6f,0x6b])});}}class k extends _0x29e489{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x303a36){if(super(_0x303a36),!this['editor']['config']['get']('revisionHistory'))throw new _0x461a1a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x34e4bf=>this['_showRevisionViewer']({..._0x34e4bf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x28e7ed=>this['_closeRevisionViewer'](_0x28e7ed)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x488d2a=>this['_restoreRevision'](_0x488d2a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x254ed2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x254ed2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x33dc12){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x33dc12);}['getRevision'](_0x3ecee4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3ecee4);}['getRevisions'](_0x515034){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x515034||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x11e03f=this['editor'],_0x16e058=_0x5ef743(_0x11e03f,p),_0xcaeee1=_0x11e03f['plugins']['get']('RevisionTracker'),_0x10a8e5=_0x11e03f['plugins']['get']('Users')['users'];return _0x16e058['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x16e058['lazyRoots'],(_0x16e058['plugins']['push'](Rt,d,g,class extends _0x29e489{static get['requires'](){return[d,'Users'];}['init'](){const _0x5ae155=this['editor']['plugins']['get']('Users');for(const _0x2712dd of _0x10a8e5)_0x2712dd['isAnonymous']||_0x5ae155['getUser'](_0x2712dd['id'])||_0x5ae155['addUser'](_0x2712dd);const _0x34c633=_0xcaeee1['repository']['getRevisions']();let _0x43151e=null;const _0x519733=this['editor']['plugins']['get']('RevisionViewer');_0x519733['adapter']=_0xcaeee1['adapter'],_0x519733['bind']('isEnabled')['to'](_0xcaeee1),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x11e03f,'isReadOnly',_0x282065=>!_0x282065);for(const _0x1aaa33 of _0x34c633){const _0x1cb3f4=null===_0x1aaa33['creator'];if(_0x1cb3f4&&_0x1aaa33['toVersion']===_0x1aaa33['fromVersion'])continue;const _0x1de9c0=_0x1aaa33['toJSON']();_0x519733['addRevisionData'](_0x1de9c0,(_0x5f4d33,_0x5830ca,_0x8eced7)=>{if(_0x1cb3f4){if(_0x43151e)_0x43151e['_update'](_0x5f4d33,_0x5830ca);else{if(!_0x5830ca){const _0x2705e7=_0x8eced7['toJSON']();_0x2705e7['id']=_0x44825c(),_0xcaeee1['saveRevision'](_0x2705e7,_0x8eced7['toVersion'])['then'](_0x24a061=>{_0x43151e=_0x24a061;});}}}else _0x1aaa33['_update'](_0x5f4d33,_0x5830ca);});}}},w),_0x16e058);}['_enhanceShowRevisionViewerCallback'](){const _0x3bc2e8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x461450=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x11ca32=this['editor']['plugins']['get']('Autosave');await _0x11ca32['save']();}else await _0x461450['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x215ed1=this['editor']['plugins']['get']('Dialog');_0x215ed1['isOpen']&&_0x215ed1['hide']();}const _0x14b44d=this['_getRevisionViewerEditorConfig']();return _0x3bc2e8(_0x14b44d)['then'](_0x1f816e=>{return(this['_viewerEditor']=_0x1f816e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1f816e;})['catch'](_0x1edad0=>(console['error'](_0x1edad0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5db4bc=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'](),_0x5db4bc(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x54ef2a=this['editor']['plugins']['get']('Annotations');_0x54ef2a['refreshVisibility'](),_0x54ef2a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3a3fbb){const _0x6a31a1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x13f89c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x13e636=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x13e636,_0x3a3fbb)['then'](_0x34bb94=>(_0x13f89c['style']['display']='block',_0x6a31a1['style']['display']='none',_0x34bb94));}['_closeRevisionViewer'](_0x52f134){const _0x45923e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x45923e['style']['display']='',_0x52f134['destroy']();}async['_restoreRevision'](_0x1e7fb7){const _0x4edacf=this['editor'],_0x291e4c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x40eb1a=_0x4edacf['plugins']['get']('RevisionTracker'),_0x334a30=_0x291e4c['repository']['getRevision'](_0x1e7fb7);let _0x1757ae,_0x12ec0e,_0x34853;try{_0x1757ae=await _0x291e4c['getRevisionData'](_0x334a30),_0x12ec0e=await _0x291e4c['getRevisionRootsAttributes'](_0x334a30);}catch(_0x38f5dd){return void console['error'](_0x38f5dd);}_0x4edacf['model']['change'](_0x402418=>{for(const _0x33bac2 of Array['from'](_0x4edacf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x402418['removeMarker'](_0x33bac2);}),_0x291e4c['isReady']=!0x1,_0x4edacf['model']['enqueueChange'](_0x33aa32=>{_0x33aa32['setSelection'](null),_0x33aa32['removeSelectionAttribute'](_0x4edacf['model']['document']['selection']['getAttributeKeys']());const _0xb3d6d5=Object['keys'](_0x1757ae);for(const _0x1ffb81 of _0x4edacf['model']['document']['roots'])'$graveyard'!=_0x1ffb81['rootName']&&_0x1ffb81['isAttached']()&&!_0xb3d6d5['includes'](_0x1ffb81['rootName'])&&_0x33aa32['detachRoot'](_0x1ffb81);for(const _0x23d158 of _0xb3d6d5){let _0x5172c4=_0x4edacf['model']['document']['getRoot'](_0x23d158);_0x5172c4&&_0x5172c4['isAttached']()||(_0x5172c4=_0x33aa32['addRoot'](_0x23d158));const _0x3229f9=_0x12ec0e[_0x23d158],_0x3bd88d=Object['keys'](_0x3229f9),_0xff641=_0x1757ae[_0x23d158];for(const _0x3002d4 of _0x5172c4['getAttributeKeys']())_0x3bd88d['includes'](_0x3002d4)||_0x33aa32['removeAttribute'](_0x3002d4,_0x5172c4);for(const _0x2ba970 of _0x3bd88d)_0x33aa32['setAttribute'](_0x2ba970,_0x12ec0e[_0x23d158][_0x2ba970],_0x5172c4);_0x33aa32['remove'](_0x33aa32['createRangeIn'](_0x5172c4)),_0x33aa32['insert'](_0x4edacf['data']['parse'](_0xff641,_0x5172c4),_0x5172c4,0x0);}});const _0x5135d2=m(_0x4edacf['locale'],'Restored');if(_0x334a30['name'])_0x34853=-0x1==_0x334a30['name']['indexOf'](_0x5135d2)?_0x5135d2+':\x20'+_0x334a30['name']:_0x334a30['name'];else _0x34853=_0x5135d2+':\x20'+(_0x334a30['createdAt']['toLocaleDateString'](_0x4edacf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x334a30['createdAt']['toLocaleTimeString'](_0x4edacf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x40eb1a['saveRevision']({'name':_0x34853}),_0x291e4c['isReady']=!0x0,_0x4edacf['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};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x4bd3cc){super(_0x4bd3cc),this['_revisionViewer']=_0x4bd3cc['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x529d54=this['_revisionsRepository']['_revisions'],_0x31d762=this['_createRevisionActions'](),_0x47091e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x529d54,_0x31d762,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',(_0x489944,_0x2e3396)=>{_0x2e3396['revisionViews']['on']('add',(_0x4f55ac,_0x537c7c)=>{_0x537c7c['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)),_0x47091e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5a0acb=this['_revisionsRepository']['getRevision'](0x0);if(_0x5a0acb){const _0xa6351b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5a0acb['id']);this['_revisionViewer']['compare'](_0x5a0acb,_0xa6351b);}}['_handleRevisionSelected'](_0x47f9a2,_0x41d492){const _0x307452=this['_revisionsRepository']['getRevision'](_0x41d492['id']),_0x32e313=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x307452['id']);this['_revisionViewer']['compare'](_0x307452,_0x32e313);}['_handleRevisionSetName'](_0x23f4b0,_0x27617a){this['_revisionsRepository']['getRevision'](_0x27617a['id'])['setName'](_0x27617a['name']);}['_handleDiffChange'](_0x5bdba0,_0x2483a0,_0x4cb986){const _0x59662c=this['_revisionsRepository']['getRevisionsInDiff'](_0x4cb986);_0x59662c['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x59662c),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x59662c[0x0]));}['_createRevisionActions'](){const _0x2e24e4=this['editor'],_0x50f767=w['availableRevisionActions'],_0x18bcde=_0x2e24e4['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x18bcde['length'])return _0x18bcde['map'](_0x33b3ac=>{const _0x258d6e='string'==typeof _0x33b3ac?Object['assign']({},_0x50f767[_0x33b3ac]):_0x33b3ac;return _0x258d6e['action']=_0x258d6e['action']['bind'](this,_0x2e24e4),_0x258d6e['isVisible']&&(_0x258d6e['isVisible']=_0x258d6e['isVisible']['bind'](this,_0x2e24e4)),_0x258d6e;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1dafd8},_0x13290)=>{const _0x4fbd31=_0x1dafd8['get'](d),_0x4d9f28=_0x4fbd31['repository'];let _0x47ae70=_0x4fbd31['diff']['newRevisionId'],_0x4b09d2=_0x13290['id'];_0x4d9f28['getIndex'](_0x47ae70)>_0x4d9f28['getIndex'](_0x4b09d2)&&([_0x47ae70,_0x4b09d2]=[_0x4b09d2,_0x47ae70]),_0x4fbd31['compare'](_0x47ae70,_0x4b09d2);},'isVisible':({plugins:_0x3e8b57},_0x1045ef)=>{const _0x2fe184=_0x3e8b57['get'](d);return!(_0x2fe184['repository']['getRevisionsInDiff'](_0x2fe184['diff'])['length']>0x2)&&!_0x1045ef['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1afc50,{id:_0xae6c6f})=>{_0x1afc50['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xae6c6f);},'isVisible':({plugins:_0x38b089},_0x55641a)=>!!_0x38b089['get'](d)['repository']['getLaterVisibleRevision'](_0x55641a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3bee6a},{id:_0x3566f3,revisionNameView:_0x20f24a})=>{const _0xed1c9e=_0x3bee6a['get'](d),_0x19c756=_0xed1c9e['repository']['getEarlierVisibleRevision'](_0x3566f3);_0xed1c9e['compare'](_0x3566f3,_0x19c756),_0x20f24a['focus'](),_0x20f24a['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4145e3,_0x2c4ba7){super(_0x4145e3),this['_view']=_0x2c4ba7,this['_toolbarConfig']=ot(_0x4145e3['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xc0db72){const _0x5041c6=this['editor'],_0x5b28e7=this['view'],_0x462f25=_0x5041c6['editing']['view'],_0x19a5c0=_0x5b28e7['editable'],_0x5e34e9=_0x462f25['document']['getRoot']();_0x19a5c0['name']=_0x5e34e9['rootName'],_0x5b28e7['render']();const _0x7e5dab=_0x19a5c0['element'];this['setEditableElement'](_0x19a5c0['name'],_0x7e5dab),_0x5b28e7['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x462f25['attachDomRoot'](_0x7e5dab),this['_elementReplacer']['replace'](_0xc0db72,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x20ef3f=this['view'],_0x5a9c11=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5a9c11['detachDomRoot'](_0x20ef3f['editable']['name']),_0x20ef3f['destroy']();}['_initToolbar'](){const _0x14c11b=this['view'];_0x14c11b['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x14c11b['stickyPanel']['limiterElement']=_0x14c11b['element'],_0x14c11b['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x9e6a6d})=>_0x9e6a6d),_0x14c11b['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x14c11b['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2780e2,_0x299320,_0x443ca0={}){super(_0x2780e2),this['stickyPanel']=new ut(_0x2780e2),this['toolbar']=new lt(_0x2780e2,{'shouldGroupWhenFull':_0x443ca0['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2780e2,_0x299320);}['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(_0x4c9629,_0x31c7f2){super(_0x31c7f2),this['sourceElement']=_0x4c9629,this['model']['document']['createRoot']();const _0x3ef95a=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3ef95a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x74f95a,_0x3483a6){const _0x16a686=new this(_0x74f95a,_0x3483a6);return await _0x16a686['initPlugins'](),await _0x16a686['ui']['init'](_0x74f95a),await _0x16a686['data']['init'](_0x16a686['config']['get']('initialData')||''),_0x16a686['fire']('ready'),_0x16a686;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x22cacb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f497f){function _0x30d8dd(_0x42d507){return _0x42d507['map'](_0x7889fd=>String['fromCharCode'](_0x7889fd))['join']('');}super(_0x3f497f),this['result']='end',_0x3f497f[_0x30d8dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30d8dd([0x76,0x69,0x65,0x77])][_0x30d8dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30d8dd([0x61,0x75,0x74,0x6f]),_0x3f497f[_0x30d8dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x30d8dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30d8dd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x30d8dd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x30d8dd([0x6f,0x6b])});}}class k extends _0x22cacb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3b198b){if(super(_0x3b198b),!this['editor']['config']['get']('revisionHistory'))throw new _0x236075('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5ddbce=>this['_showRevisionViewer']({..._0x5ddbce,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2a9a7e=>this['_closeRevisionViewer'](_0x2a9a7e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x201ad5=>this['_restoreRevision'](_0x201ad5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x10e43b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x10e43b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4f9278){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4f9278);}['getRevision'](_0x4a83f7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4a83f7);}['getRevisions'](_0x9d019c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x9d019c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2ae3ca=this['editor'],_0x3e21e2=_0x5671c3(_0x2ae3ca,p),_0x4a9b83=_0x2ae3ca['plugins']['get']('RevisionTracker'),_0x3e5d2e=_0x2ae3ca['plugins']['get']('Users')['users'];return _0x3e21e2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3e21e2['lazyRoots'],(_0x3e21e2['plugins']['push'](Rt,d,g,class extends _0x22cacb{static get['requires'](){return[d,'Users'];}['init'](){const _0x37843a=this['editor']['plugins']['get']('Users');for(const _0x59823c of _0x3e5d2e)_0x59823c['isAnonymous']||_0x37843a['getUser'](_0x59823c['id'])||_0x37843a['addUser'](_0x59823c);const _0x32d227=_0x4a9b83['repository']['getRevisions']();let _0x45027c=null;const _0x2dbf5f=this['editor']['plugins']['get']('RevisionViewer');_0x2dbf5f['adapter']=_0x4a9b83['adapter'],_0x2dbf5f['bind']('isEnabled')['to'](_0x4a9b83),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2ae3ca,'isReadOnly',_0xb28f88=>!_0xb28f88);for(const _0x295741 of _0x32d227){const _0xef70e=null===_0x295741['creator'];if(_0xef70e&&_0x295741['toVersion']===_0x295741['fromVersion'])continue;const _0x5e88d1=_0x295741['toJSON']();_0x2dbf5f['addRevisionData'](_0x5e88d1,(_0x2ef533,_0x5ec7b2,_0x398cc6)=>{if(_0xef70e){if(_0x45027c)_0x45027c['_update'](_0x2ef533,_0x5ec7b2);else{if(!_0x5ec7b2){const _0x57f498=_0x398cc6['toJSON']();_0x57f498['id']=_0x427eb0(),_0x4a9b83['saveRevision'](_0x57f498,_0x398cc6['toVersion'])['then'](_0x1d8d0c=>{_0x45027c=_0x1d8d0c;});}}}else _0x295741['_update'](_0x2ef533,_0x5ec7b2);});}}},w),_0x3e21e2);}['_enhanceShowRevisionViewerCallback'](){const _0x5f33a8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x40bdc1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x481388=this['editor']['plugins']['get']('Autosave');await _0x481388['save']();}else await _0x40bdc1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x21e562=this['editor']['plugins']['get']('Dialog');_0x21e562['isOpen']&&_0x21e562['hide']();}const _0x1bcaab=this['_getRevisionViewerEditorConfig']();return _0x5f33a8(_0x1bcaab)['then'](_0x3d9341=>{return(this['_viewerEditor']=_0x3d9341,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3d9341;})['catch'](_0x56da61=>(console['error'](_0x56da61),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x307d53=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'](),_0x307d53(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4989da=this['editor']['plugins']['get']('Annotations');_0x4989da['refreshVisibility'](),_0x4989da['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2b1af6){const _0x4bb5d7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1c39a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x64b164=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x64b164,_0x2b1af6)['then'](_0x48b384=>(_0x1c39a['style']['display']='block',_0x4bb5d7['style']['display']='none',_0x48b384));}['_closeRevisionViewer'](_0x3e3d25){const _0x55b620=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x55b620['style']['display']='',_0x3e3d25['destroy']();}async['_restoreRevision'](_0x3a03a1){const _0x42bca6=this['editor'],_0x49e086=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x54e6da=_0x42bca6['plugins']['get']('RevisionTracker'),_0x3bf44f=_0x49e086['repository']['getRevision'](_0x3a03a1);let _0x21cdf7,_0x3584c9,_0x589736;try{_0x21cdf7=await _0x49e086['getRevisionData'](_0x3bf44f),_0x3584c9=await _0x49e086['getRevisionRootsAttributes'](_0x3bf44f);}catch(_0x5ec51e){return void console['error'](_0x5ec51e);}_0x42bca6['model']['change'](_0xdc5199=>{for(const _0x2232b4 of Array['from'](_0x42bca6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xdc5199['removeMarker'](_0x2232b4);}),_0x49e086['isReady']=!0x1,_0x42bca6['model']['enqueueChange'](_0x1db0b4=>{_0x1db0b4['setSelection'](null),_0x1db0b4['removeSelectionAttribute'](_0x42bca6['model']['document']['selection']['getAttributeKeys']());const _0x27a3c5=Object['keys'](_0x21cdf7);for(const _0x12a421 of _0x42bca6['model']['document']['roots'])'$graveyard'!=_0x12a421['rootName']&&_0x12a421['isAttached']()&&!_0x27a3c5['includes'](_0x12a421['rootName'])&&_0x1db0b4['detachRoot'](_0x12a421);for(const _0x1da277 of _0x27a3c5){let _0x41905a=_0x42bca6['model']['document']['getRoot'](_0x1da277);_0x41905a&&_0x41905a['isAttached']()||(_0x41905a=_0x1db0b4['addRoot'](_0x1da277));const _0xd2530b=_0x3584c9[_0x1da277],_0x5b9ce3=Object['keys'](_0xd2530b),_0x5c5b97=_0x21cdf7[_0x1da277];for(const _0x3cfbee of _0x41905a['getAttributeKeys']())_0x5b9ce3['includes'](_0x3cfbee)||_0x1db0b4['removeAttribute'](_0x3cfbee,_0x41905a);for(const _0x100f49 of _0x5b9ce3)_0x1db0b4['setAttribute'](_0x100f49,_0x3584c9[_0x1da277][_0x100f49],_0x41905a);_0x1db0b4['remove'](_0x1db0b4['createRangeIn'](_0x41905a)),_0x1db0b4['insert'](_0x42bca6['data']['parse'](_0x5c5b97,_0x41905a),_0x41905a,0x0);}});const _0xc9a8cf=m(_0x42bca6['locale'],'Restored');if(_0x3bf44f['name'])_0x589736=-0x1==_0x3bf44f['name']['indexOf'](_0xc9a8cf)?_0xc9a8cf+':\x20'+_0x3bf44f['name']:_0x3bf44f['name'];else _0x589736=_0xc9a8cf+':\x20'+(_0x3bf44f['createdAt']['toLocaleDateString'](_0x42bca6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3bf44f['createdAt']['toLocaleTimeString'](_0x42bca6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x54e6da['saveRevision']({'name':_0x589736}),_0x49e086['isReady']=!0x0,_0x42bca6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ie as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|