@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250115.0 → 0.0.0-nightly-20250117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- 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
|
-
_0x39a396(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x51bcd4){super(),this['id']=_0x51bcd4['id']||_0x1a2a42(),this['creator']=_0x51bcd4['creator']||null,this['authors']=_0x51bcd4['authors']||[],this['diffData']=_0x51bcd4['diffData']||null,this['toVersion']=_0x51bcd4['toVersion']||0x0,this['fromVersion']=_0x51bcd4['fromVersion']||0x0,this['set']('name',_0x51bcd4['name']||''),this['set']('createdAt',_0x51bcd4['createdAt']||new Date()),this['set']('attributes',_0x51bcd4['attributes']||{});}['setName'](_0x3a6340){this['_update']({'name':_0x3a6340});}['setAttribute'](_0x28f659,_0x2619ce){const _0x15d68a=_0x556891(this['attributes']);_0x12a6d4(_0x15d68a,_0x28f659,_0x2619ce),this['_update']({'attributes':_0x15d68a});}['removeAttribute'](_0x34ff53){const _0x228571=_0x556891(this['attributes']);_0x115d87(_0x228571,_0x34ff53),this['_update']({'attributes':_0x228571});}['_update'](_0x4a7c6c,_0x38fe88=!0x1){let _0x3e06cb=!0x1;const _0x2c981d={'id':this['id']},_0xce3851=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x332fe4 of _0xce3851){const _0x1771ca=_0x4a7c6c[_0x332fe4];void 0x0!==_0x1771ca&&_0x1771ca!==this[_0x332fe4]&&(this[_0x332fe4]=_0x1771ca,_0x2c981d[_0x332fe4]=_0x1771ca,_0x3e06cb=!0x0);}_0x3e06cb&&(_0x2c981d['authors']&&(_0x2c981d['authorsIds']=_0x2c981d['authors']['map'](_0x3ac6ff=>_0x3ac6ff['id']),delete _0x2c981d['authors']),this['fire']('_update',_0x2c981d,_0x38fe88));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x433326=>_0x433326['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5d28bb{['_revisions'];static get['requires'](){return[_0x199de6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1792bf){super(_0x1792bf),this['_revisions']=new _0x4e5af3();}['afterInit'](){!async function(_0x1c8385){const _0x4ea571=_0x230bd4([0x77,0x6e,0x48,0x36,0x4f,0x7a,0x67,0x64,0x74,0x66,0x53,0x4b,0x59,0x44,0x41,0x78,0x38,0x47,0x6c,0x79,0x30,0x6a,0x49,0x35,0x57,0x65,0x46,0x71,0x6f,0x61,0x54,0x69,0x6b,0x68,0x42,0x4e,0x51,0x4c,0x31,0x63,0x4a,0x55,0x4d,0x73,0x37,0x70,0x39,0x76,0x50,0x75,0x62,0x43,0x45,0x33,0x34,0x32,0x5a,0x56,0x72,0x6d,0x52,0x58]),_0x2bb1bf=0xeb829,_0x501ed8=0x2d24a923,_0x4f7611=0x2d23f58b^_0x501ed8,_0x49bcb8=window[_0x230bd4([0x44,0x61,0x74,0x65])][_0x230bd4([0x6e,0x6f,0x77])](),_0x323d84=_0x1c8385[_0x230bd4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38bec2=new window[(_0x230bd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x336bfe=>{_0x323d84[_0x230bd4([0x6f,0x6e,0x63,0x65])](_0x230bd4([0x72,0x65,0x61,0x64,0x79]),_0x336bfe);}),_0x4d28f0={[_0x230bd4([0x6b,0x74,0x79])]:_0x230bd4([0x45,0x43]),[_0x230bd4([0x75,0x73,0x65])]:_0x230bd4([0x73,0x69,0x67]),[_0x230bd4([0x63,0x72,0x76])]:_0x230bd4([0x50,0x2d,0x32,0x35,0x36]),[_0x230bd4([0x78])]:_0x230bd4([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]),[_0x230bd4([0x79])]:_0x230bd4([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]),[_0x230bd4([0x61,0x6c,0x67])]:_0x230bd4([0x45,0x53,0x32,0x35,0x36])},_0x2105e4=_0x323d84[_0x230bd4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x230bd4([0x67,0x65,0x74])](_0x230bd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4084f5(){let _0x457167,_0x5d7ede=null,_0x504ee5=null;try{if(_0x2105e4==_0x230bd4([0x47,0x50,0x4c]))return _0x230bd4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x457167=_0x464824(),!_0x457167)return _0x230bd4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x457167[_0x230bd4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x504ee5=_0x5ea7bc(_0x457167[_0x230bd4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x457167[_0x230bd4([0x6a,0x74,0x69])])),await _0x4da1a8()?_0x2e3443()?_0x4edf5f()?_0x230bd4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x289ffb()?(_0x457167[_0x230bd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x230bd4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d7ede=_0x41f68b(_0x230bd4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x457167[_0x230bd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x230bd4([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d7ede=_0x41f68b(_0x230bd4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x457167[_0x230bd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x230bd4([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x5d7ede=_0x41f68b(_0x230bd4([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10a850()):_0x230bd4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x230bd4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x230bd4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d6352){return _0x230bd4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4edf5f(){const _0x4169d0=[_0x230bd4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x230bd4([0x74,0x72,0x69,0x61,0x6c])][_0x230bd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457167[_0x230bd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49bcb8/0x3e8:0xe10*_0x4f7611;return _0x457167[_0x230bd4([0x65,0x78,0x70])]<_0x4169d0;}function _0x2e3443(){const _0x1be6e6=_0x457167[_0x230bd4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1be6e6)return!0x1;if(_0x1be6e6[_0x230bd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x230bd4([0x2a])))return!0x0;if(_0x1be6e6[_0x230bd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x230bd4([0x52,0x48])))return!0x0;if(_0x1be6e6[_0x230bd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x230bd4([0x52,0x52,0x48]))){if(_0x172948())return!0x0;if(_0x155a7d()||_0x552314())return!0x0;}return!0x1;}function _0x289ffb(){const _0x102e7f=_0x457167[_0x230bd4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x102e7f||0x0==_0x102e7f[_0x230bd4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36f394}=new URL(window[_0x230bd4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x102e7f[_0x230bd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36f394))return!0x0;const _0x499ca5=_0x36f394[_0x230bd4([0x73,0x70,0x6c,0x69,0x74])](_0x230bd4([0x2e]));return _0x102e7f[_0x230bd4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x361936=>_0x361936[_0x230bd4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x230bd4([0x2a])))[_0x230bd4([0x6d,0x61,0x70])](_0x5369ee=>_0x5369ee[_0x230bd4([0x73,0x70,0x6c,0x69,0x74])](_0x230bd4([0x2e])))[_0x230bd4([0x73,0x6f,0x6d,0x65])](_0x29d4bc=>_0x499ca5[_0x230bd4([0x65,0x76,0x65,0x72,0x79])]((_0x19bb6d,_0x53f042)=>_0x29d4bc[_0x53f042]===_0x19bb6d||_0x29d4bc[_0x53f042]===_0x230bd4([0x2a])));}function _0x10a850(){return _0x5d7ede&&_0x504ee5?new window[(_0x230bd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4252fd,_0x277bc1)=>{_0x5d7ede[_0x230bd4([0x74,0x68,0x65,0x6e])](_0x4252fd,_0x277bc1),_0x504ee5[_0x230bd4([0x74,0x68,0x65,0x6e])](_0xbcd7a2=>{_0xbcd7a2!=_0x230bd4([0x56,0x61,0x6c,0x69,0x64])&&_0x4252fd(_0xbcd7a2);},_0x277bc1);}):_0x5d7ede||_0x504ee5||_0x230bd4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ea7bc(_0xae0d79,_0x42fe24){return new window[(_0x230bd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x114e4f=>{if(_0x4c58ca())return _0x114e4f(_0x230bd4([0x56,0x61,0x6c,0x69,0x64]));_0x471883(),_0x323d84[_0x230bd4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x230bd4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2eaf43=!0x1;const _0x475e94=_0x1a2a42();function _0x37c5a6(_0x5c99eb){return!!_0x5c99eb&&(typeof _0x5c99eb===_0x230bd4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c99eb===_0x230bd4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c99eb[_0x230bd4([0x74,0x68,0x65,0x6e])]===_0x230bd4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c99eb[_0x230bd4([0x63,0x61,0x74,0x63,0x68])]===_0x230bd4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xaab741(_0x2608f1){_0x24b4e9(_0x2608f1)[_0x230bd4([0x74,0x68,0x65,0x6e])](_0x44980f=>{if(!_0x44980f||_0x44980f[_0x230bd4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x230bd4([0x6f,0x6b]))return _0x230bd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51a2cd(_0x3e72ff(_0x475e94+_0x42fe24))!=_0x44980f[_0x230bd4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x230bd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x230bd4([0x56,0x61,0x6c,0x69,0x64]);})[_0x230bd4([0x74,0x68,0x65,0x6e])](_0x3e45f5=>(_0xdfb211(),_0x3e45f5),()=>{const _0x2c2593=_0x45a710();return null==_0x2c2593?(_0xdfb211(),_0x230bd4([0x56,0x61,0x6c,0x69,0x64])):_0x230bd4(_0x49bcb8-_0x2c2593>(0x9282d23^_0x501ed8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x230bd4([0x74,0x68,0x65,0x6e])](_0x114e4f)[_0x230bd4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x114e4f(_0x230bd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37cfe6=0x2d1247a3^_0x501ed8;function _0xdfb211(){const _0x53e521=_0x230bd4([0x6c,0x6c,0x63,0x74,0x2d])+_0x51a2cd(_0x3e72ff(_0xae0d79)),_0x27c3aa=_0x55bdfe(_0x51a2cd(window[_0x230bd4([0x4d,0x61,0x74,0x68])][_0x230bd4([0x63,0x65,0x69,0x6c])](_0x49bcb8/_0x37cfe6)));window[_0x230bd4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x230bd4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53e521,_0x27c3aa);}function _0x45a710(){const _0x15c4aa=_0x230bd4([0x6c,0x6c,0x63,0x74,0x2d])+_0x51a2cd(_0x3e72ff(_0xae0d79)),_0x5e8415=window[_0x230bd4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x230bd4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15c4aa);return _0x5e8415?window[_0x230bd4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55bdfe(_0x5e8415),0x10)*_0x37cfe6:null;}function _0x24b4e9(_0x1d02e6){return new window[(_0x230bd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x324f10,_0x16e199)=>{_0x1d02e6[_0x230bd4([0x74,0x68,0x65,0x6e])](_0x324f10,_0x16e199),window[_0x230bd4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16e199,0x2d257de3^_0x501ed8);});}}_0x323d84[_0x230bd4([0x6f,0x6e])](_0x230bd4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f63e0,_0x5c79e2)=>{if(_0x5c79e2[0x0]!=_0xae0d79)return _0x114e4f(_0x230bd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c79e2[0x1]={..._0x5c79e2[0x1],[_0x230bd4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x475e94};},{[_0x230bd4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x230bd4([0x68,0x69,0x67,0x68])}),_0x323d84[_0x230bd4([0x6f,0x6e])](_0x230bd4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3eb67e=>{_0x37c5a6(_0x3eb67e[_0x230bd4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2eaf43=!0x0,_0xaab741(_0x3eb67e[_0x230bd4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x230bd4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x230bd4([0x6c,0x6f,0x77])}),_0x38bec2[_0x230bd4([0x74,0x68,0x65,0x6e])](()=>{_0x2eaf43||_0x114e4f(_0x230bd4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c58ca(){return _0x323d84[_0x230bd4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x230bd4([0x76,0x69,0x65,0x77])][_0x230bd4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x230bd4([0x61,0x75,0x74,0x6f]);}function _0x471883(){_0x323d84[_0x230bd4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x230bd4([0x76,0x69,0x65,0x77])][_0x230bd4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x230bd4([0x61,0x75,0x74,0x6f]);}}function _0x41f68b(_0x17680e){const _0x2d6dba=[new window[(_0x230bd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x233a0d=>setTimeout(_0x233a0d,0x2d2d97ef^_0x501ed8)),_0x38bec2[_0x230bd4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x230bd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f889c=>{const _0x304756=0x2d24a924^_0x501ed8,_0x4f60f3=_0x1c8385[_0x230bd4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1e14cb(){_0x4f60f3[_0x230bd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x304756&&_0x4f889c();}_0x1e14cb(),_0x4f60f3[_0x230bd4([0x6f,0x6e])](_0x230bd4([0x61,0x64,0x64]),_0x1e14cb);})),new window[(_0x230bd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ffbf8=>{function _0x2905fc(){for(const _0x35cd01 in window)if(window[_0x230bd4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x230bd4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x35cd01))&&window[_0x35cd01]==_0x2bb1bf)return _0x4ffbf8();_0x323d84[_0x230bd4([0x73,0x74,0x61,0x74,0x65])]!=_0x230bd4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x230bd4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2905fc,0x2d24baab^_0x501ed8);}_0x59a80b(_0x230bd4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2905fc();})];return window[_0x230bd4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x230bd4([0x72,0x61,0x63,0x65])](_0x2d6dba)[_0x230bd4([0x74,0x68,0x65,0x6e])](()=>_0x17680e);}async function _0x3ccff8(){if(await _0x38bec2,_0x59a80b(_0x230bd4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2120f8=_0x1c8385[_0x230bd4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x58a573=_0x1c8385[_0x230bd4([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])](_0x2120f8[_0x230bd4([0x69,0x64])]),_0x147ad0=_0x4beac5(_0x230bd4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x147ad0[_0x230bd4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2120f8['id'],_0x58a573?_0x58a573['id']:null,!0x0),_0x147ad0[_0x230bd4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x230bd4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x147ad0[_0x230bd4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x147ad0[_0x230bd4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x59549e,void(_0x147ad0[_0x230bd4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x59549e);}if(_0x59a80b(_0x230bd4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x551b70=_0x4beac5(_0x230bd4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x551b70[_0x230bd4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x230bd4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x551b70[_0x230bd4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x551b70[_0x230bd4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x59549e,_0x551b70[_0x230bd4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x59549e;}_0x323d84[_0x230bd4([0x6d,0x6f,0x64,0x65,0x6c])][_0x230bd4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59549e,_0x323d84[_0x230bd4([0x6d,0x6f,0x64,0x65,0x6c])][_0x230bd4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59549e,_0x323d84[_0x230bd4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x230bd4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x172948(){return _0x59a80b(_0x230bd4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4beac5(_0x230bd4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x230bd4([0x73,0x74,0x61,0x74,0x65])]==_0x230bd4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x155a7d(){return _0x59a80b(_0x230bd4([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 _0x552314(){return _0x59a80b(_0x230bd4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x6dc969(_0x5219b){const _0x4aa8f9=_0x433475();_0x323d84[_0x4aa8f9]=_0x230bd4([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])+_0x5219b,_0x5219b[_0x230bd4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x230bd4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x433475()]=_0x2bb1bf),_0x5219b!=_0x230bd4([0x56,0x61,0x6c,0x69,0x64])&&_0x3ccff8();}function _0x433475(){const _0xbd4270=window[_0x230bd4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x230bd4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x230bd4([0x6e,0x6f,0x77])]())[_0x230bd4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x230bd4([0x2e]),'');let _0x2c3de2=_0x230bd4([0x77]);for(let _0x37e46e=0x0;_0x37e46e<_0xbd4270[_0x230bd4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37e46e+=0x2){let _0x264103=window[_0x230bd4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbd4270[_0x230bd4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37e46e,_0x37e46e+0x2));_0x264103>=_0x4ea571[_0x230bd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x264103-=_0x4ea571[_0x230bd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c3de2+=_0x4ea571[_0x264103];}return _0x2c3de2;}function _0x464824(){const _0x54ebb2=_0x2105e4[_0x230bd4([0x73,0x70,0x6c,0x69,0x74])](_0x230bd4([0x2e]));if(0x3!=_0x54ebb2[_0x230bd4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b74b3(_0x54ebb2[0x1]);function _0x2b74b3(_0x1443d9){const _0x2793d3=_0x5518f5(_0x1443d9);return _0x2793d3&&_0x2cc952()?_0x2793d3:null;function _0x2cc952(){const _0x57d7c7=_0x2793d3[_0x230bd4([0x6a,0x74,0x69])],_0x3a5efd=window[_0x230bd4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57d7c7[_0x230bd4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57d7c7[_0x230bd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25c769={..._0x2793d3,[_0x230bd4([0x6a,0x74,0x69])]:_0x57d7c7[_0x230bd4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57d7c7[_0x230bd4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25c769[_0x230bd4([0x76,0x63])],_0x3e72ff(_0x25c769)==_0x3a5efd;}}}async function _0x4da1a8(){let _0x4457de=!0x0;try{const _0xf02e64=_0x2105e4[_0x230bd4([0x73,0x70,0x6c,0x69,0x74])](_0x230bd4([0x2e])),[_0x5a6328,_0xed3dab,_0x31d158]=_0xf02e64;return _0x4a787a(_0x5a6328),await _0x1972c9(_0x5a6328,_0xed3dab,_0x31d158),_0x4457de;}catch(_0x49a48e){return!0x1;}function _0x4a787a(_0x1eae7b){const _0xddd4a3=_0x5518f5(_0x1eae7b);_0xddd4a3&&_0xddd4a3[_0x230bd4([0x61,0x6c,0x67])]==_0x230bd4([0x45,0x53,0x32,0x35,0x36])||(_0x4457de=!0x1);}async function _0x1972c9(_0x570654,_0x38d3bc,_0xe07c02){const _0xffbcff=window[_0x230bd4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x230bd4([0x66,0x72,0x6f,0x6d])](_0xd92f49(_0xe07c02),_0x523b87=>_0x523b87[_0x230bd4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c9baf=new window[(_0x230bd4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x230bd4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x570654+_0x230bd4([0x2e])+_0x38d3bc),_0x27762f=window[_0x230bd4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x230bd4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27762f)return;const _0x513388=await _0x27762f[_0x230bd4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x230bd4([0x6a,0x77,0x6b]),_0x4d28f0,{[_0x230bd4([0x6e,0x61,0x6d,0x65])]:_0x230bd4([0x45,0x43,0x44,0x53,0x41]),[_0x230bd4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x230bd4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x230bd4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27762f[_0x230bd4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x230bd4([0x6e,0x61,0x6d,0x65])]:_0x230bd4([0x45,0x43,0x44,0x53,0x41]),[_0x230bd4([0x68,0x61,0x73,0x68])]:{[_0x230bd4([0x6e,0x61,0x6d,0x65])]:_0x230bd4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x513388,_0xffbcff,_0x4c9baf)||(_0x4457de=!0x1);}}function _0x5518f5(_0x3ed5fb){return _0x3ed5fb[_0x230bd4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x230bd4([0x65,0x79]))?JSON[_0x230bd4([0x70,0x61,0x72,0x73,0x65])](_0xd92f49(_0x3ed5fb)):null;}function _0xd92f49(_0x25a377){return window[_0x230bd4([0x61,0x74,0x6f,0x62])](_0x25a377[_0x230bd4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x230bd4([0x2b]))[_0x230bd4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x230bd4([0x2f])));}function _0x3e72ff(_0x17ec9b){let _0x2b8287=0x1505;function _0x62442a(_0x53eb83){for(let _0x46fa1b=0x0;_0x46fa1b<_0x53eb83[_0x230bd4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46fa1b++){const _0x53e6e9=_0x53eb83[_0x230bd4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46fa1b);_0x2b8287=(_0x2b8287<<0x5)+_0x2b8287+_0x53e6e9,_0x2b8287&=_0x2b8287;}}function _0x25eadf(_0x12eab0){Array[_0x230bd4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12eab0)?_0x12eab0[_0x230bd4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25eadf):_0x12eab0&&typeof _0x12eab0==_0x230bd4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x230bd4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12eab0)[_0x230bd4([0x73,0x6f,0x72,0x74])]()[_0x230bd4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ff859,_0x450255])=>{_0x62442a(_0x1ff859),_0x25eadf(_0x450255);}):_0x62442a(window[_0x230bd4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12eab0));}return _0x25eadf(_0x17ec9b),_0x2b8287>>>0x0;}function _0x51a2cd(_0x40b820){return _0x40b820[_0x230bd4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x230bd4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x230bd4([0x30]));}function _0x55bdfe(_0x1ec328){return _0x1ec328[_0x230bd4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x230bd4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x230bd4([0x6a,0x6f,0x69,0x6e])]('');}function _0x59a80b(_0x14f36b){return _0x323d84[_0x230bd4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x230bd4([0x68,0x61,0x73])](_0x14f36b);}function _0x4beac5(_0x437919){return _0x323d84[_0x230bd4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x230bd4([0x67,0x65,0x74])](_0x437919);}function _0x59549e(){}function _0x230bd4(_0x51f479){return _0x51f479['map'](_0x405ab2=>String['fromCharCode'](_0x405ab2))['join']('');}_0x6dc969(await _0x4084f5());}(this);}['createRevision'](_0x284ede){const _0x211ec4=this['editor']['plugins']['get']('Users');return new a({'id':_0x284ede['id'],'name':_0x284ede['name'],'creator':_0x284ede['creatorId']?_0x211ec4['getUser'](_0x284ede['creatorId']):null,'diffData':_0x284ede['diffData']||_0x284ede['data'],'authors':_0x284ede['authorsIds']['map'](_0x2e8cfb=>_0x211ec4['getUser'](_0x2e8cfb)),'createdAt':new Date(_0x284ede['createdAt']),'attributes':_0x284ede['attributes'],'fromVersion':_0x284ede['fromVersion'],'toVersion':_0x284ede['toVersion']});}['addRevision'](_0x3f878e,_0x3ccd29=0x0){this['_revisions']['add'](_0x3f878e,_0x3ccd29);}['getRevision'](_0x4ee173){return this['_revisions']['get'](_0x4ee173);}['getRevisions'](_0x17282f={'toJSON':!0x1}){const _0x1a2fd9=Array['from'](this['_revisions']);return _0x1a2fd9['reverse'](),_0x17282f['toJSON']?_0x1a2fd9['map'](_0x58488d=>_0x58488d['toJSON']()):_0x1a2fd9;}['getIndex'](_0x1873d9){return this['_revisions']['getIndex'](_0x1873d9);}['getEarlierVisibleRevision'](_0x2b5b8c){const [,_0x35af84]=this['getRevisionsIterator'](_0x2b5b8c,{'direction':'earlier'});return _0x35af84;}['getLaterVisibleRevision'](_0x456cdc){const [,_0x21eb4c]=this['getRevisionsIterator'](_0x456cdc,{'direction':'later'});return _0x21eb4c;}['getRevisionsInDiff'](_0x4177a9){const _0x334720=[];for(const _0x574502 of this['getRevisionsIterator'](_0x4177a9['newRevisionId']))if(_0x334720['push'](_0x574502),_0x574502['id']===_0x4177a9['oldRevisionId'])break;return _0x334720;}*['getRevisionsIterator'](_0x47c5f7,{direction:_0x48dae6='earlier',filter:_0x3b9b7d=()=>!0x0}={}){const _0x14b729='earlier'===_0x48dae6?0x1:-0x1;let _0x29dffd=this['_revisions']['get'](_0x47c5f7),_0x3d2772=this['getIndex'](_0x29dffd);for(yield _0x29dffd;_0x29dffd;){if(_0x3d2772+=_0x14b729,_0x29dffd=this['getRevision'](_0x3d2772),!_0x29dffd)return;_0x3b9b7d(_0x29dffd)&&(yield _0x29dffd);}}}function m(_0x31dd06,_0x1ee97e,_0x12f5b6){const t=_0x31dd06['t'];switch(_0x1ee97e){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'},_0x12f5b6);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x12f5b6);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':_0x4dc15c,'a':_0x505159,'e':_0x40aeb3,'r':_0x2dd990,'u':_0x2c56df};class l extends _0x5d28bb{['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[_0x199de6,j,_0x147e72];}constructor(_0x390bc9){super(_0x390bc9),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 _0x99593d=_0x1a2a42();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x99593d},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 _0x17877f=this['repository']['getRevision'](0x0),_0x12cd84=_0x17877f&&null===_0x17877f['creator']?_0x17877f:null;if(this['_continueCurrentRevision']=!!_0x12cd84&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5ce6cd=this['_source']['getCurrentRevisionId'](),_0x3d849c=this['repository']['getRevision'](_0x5ce6cd);if(_0x3d849c)this['_startingVersion']=_0x3d849c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1fa72f=this['_source']['history']['_operations']['find'](_0x55b8e0=>!_0x55b8e0['_isInit']),_0x302ea0=_0x1fa72f?_0x1fa72f['baseVersion']:this['_source']['history']['version'];_0x17877f?(_0x17877f['toVersion']<_0x302ea0&&_0x17877f['_update']({'toVersion':_0x302ea0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x12cd84['id'],this['_startingVersion']=_0x12cd84['fromVersion']):(this['_startingVersion']=_0x17877f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x302ea0,this['_continueCurrentRevision']=!0x1);}}else _0x12cd84&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x12cd84['toVersion'],this['editor']['model']['document']['history']['version']),_0x12cd84['fromVersion']===_0x12cd84['toVersion']?(0x0!==_0x12cd84['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x12cd84['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x12cd84['id'],this['_startingVersion']=_0x12cd84['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',_0x1e170d=>!_0x1e170d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ee42f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11e56b;for(const _0x4d75e3 in _0x1ee42f){const _0x51aa00=_0x4d75e3,_0x55f46e=_0x1ee42f[_0x51aa00];if('revisionHistoryLicenseKeyValid'==_0x55f46e||'revisionHistoryLicenseKeyInvalid'==_0x55f46e||'revisionHistoryLicenseKeyExpired'==_0x55f46e||'revisionHistoryLicenseKeyDomainLimit'==_0x55f46e||'revisionHistoryLicenseKeyNotAllowed'==_0x55f46e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x55f46e||'revisionHistoryLicenseKeyTrialLimit'==_0x55f46e||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x55f46e||'revisionHistoryLicenseKeyUsageLimit'==_0x55f46e){delete _0x1ee42f[_0x51aa00],_0x11e56b=_0x55f46e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x11e56b&&_0x1ee42f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x11e56b&&_0x1ee42f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x11e56b&&_0x1ee42f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x11e56b&&_0x1ee42f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x11e56b&&_0x1ee42f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x11e56b&&_0x1ee42f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x11e56b&&_0x1ee42f['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x11e56b&&_0x1ee42f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x521508=this['repository']['getRevision'](0x0),_0x29b6e2=await this['getRevisionDocumentData'](_0x521508),_0x2a2a2f=await this['getRevisionRootsAttributes'](_0x521508);this['_replaceEditorDataWithRevisionData'](_0x29b6e2,_0x2a2a2f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x144667){this['_source']=_0x144667;}async['update'](){const _0x51ab45=await this['_source']['getLatestVersion']();if(_0x51ab45>this['currentRevision']['toVersion']){await this['_loadState']();const _0x997b88=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x51ab45});_0x997b88['authors']=_0x997b88['authorsIds']['map'](_0x1d1354=>this['editor']['plugins']['get']('Users')['getUser'](_0x1d1354)),this['currentRevision']['_update'](_0x997b88);}}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'](_0x1eed19={},_0x538a94=null){const _0x3f8bef=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x538a94>this['currentRevision']['toVersion']&&(_0x538a94=null),null===_0x538a94&&(_0x538a94=await this['_source']['getLatestVersion']());const _0x255d48=this['_getFromVersion'](_0x538a94),_0x201396=this['buildRevisionData']({'from':_0x255d48,'to':_0x538a94});if(this['currentRevision']['toVersion']<_0x538a94){const _0x25eb8e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x538a94,'to':_0x538a94});_0x25eb8e['authors']=[],_0x25eb8e['authorsIds']=[],_0x25eb8e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x25eb8e,!0x0),delete _0x25eb8e['authors'],_0x3f8bef['push'](_0x25eb8e);}_0x1eed19['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1eed19['name']=_0x1eed19['name']||null,_0x1eed19['id']=_0x1eed19['id']||_0x1a2a42(),_0x1eed19={..._0x1eed19,..._0x201396};const _0x12788d=this['addRevisionData'](_0x1eed19);_0x3f8bef['push'](_0x1eed19);const _0x589944=this['repository']['getIndex'](_0x12788d);if(0x0!==_0x589944){const _0x448d01=this['repository']['getRevision'](_0x589944-0x1);if(_0x448d01['fromVersion']!==_0x538a94){const _0x3acc30=this['_revisionDataBuilder']['getData'](_0x538a94,_0x448d01['toVersion']),_0x5cd24d={'id':_0x448d01['id'],'diffData':_0x3acc30['diffData'],'authorsIds':_0x3acc30['authorsIds'],'authors':_0x3acc30['authorsIds']['map'](_0x416548=>this['editor']['plugins']['get']('Users')['getUser'](_0x416548)),'fromVersion':_0x538a94};_0x448d01===this['currentRevision']&&(_0x5cd24d['createdAt']=new Date(_0x1eed19['createdAt']['getTime']()+0xa)),_0x448d01['_update'](_0x5cd24d,!0x0),delete _0x5cd24d['authors'],_0x3f8bef['push'](_0x5cd24d);}}if(this['adapter']){for(const _0xa4e29f of _0x3f8bef)this['_bufferUpdate'](_0xa4e29f['id'],_0xa4e29f,!0x0);this['sendBufferedUpdates']();}return _0x12788d;}['addRevisionData'](_0x57c874){const _0x482c80=this['repository']['createRevision'](_0x57c874);return this['adapter']&&_0x482c80['on']('_update',(_0x1bd0f6,_0x80a38e,_0x32b16c)=>{_0x32b16c||(this['_bufferUpdate'](_0x80a38e['id'],_0x80a38e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x482c80,this['_findInsertionIndex'](_0x482c80)),_0x482c80;}async['getRevisionDocumentData'](_0x55b756){await this['_loadRevisionData'](_0x55b756);const _0x58ef80={};for(const _0x23ca50 in _0x55b756['diffData']){if(_0x55b756['diffData'][_0x23ca50]['attachChange']&&!_0x55b756['diffData'][_0x23ca50]['attachChange']['isAttached'])continue;const _0x251d21=this['_removeRevisionMarkers'](JSON['parse'](_0x55b756['diffData'][_0x23ca50]['insertions'])),_0x5585f4=this['editor']['editing']['view']['document'],_0x323367=new _0x4d5c6a(_0x5585f4,_0x251d21['map'](_0x1ad7c7=>C(_0x1ad7c7,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x58ef80[_0x23ca50]=this['editor']['data']['processor']['toData'](_0x323367),this['editor']['data']['processor']['useFillerType']('default');}return _0x58ef80;}async['getRevisionRootsAttributes'](_0xbdc437){await this['_loadRevisionData'](_0xbdc437);const _0x52e5b0={};for(const _0x2b1f7f in _0xbdc437['diffData'])_0xbdc437['diffData'][_0x2b1f7f]['attachChange']&&!_0xbdc437['diffData'][_0x2b1f7f]['attachChange']['isAttached']||(_0x52e5b0[_0x2b1f7f]=_0xbdc437['diffData'][_0x2b1f7f]['attributesAfter']||{});return _0x52e5b0;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x23fc8d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x532b8a=0x0;_0x532b8a<_0x23fc8d['length'];_0x532b8a++){const _0x53dc78=_0x23fc8d[_0x532b8a];let _0x574d79=!0x1;for(const _0x585cb9 of Object['keys'](_0x53dc78))void 0x0===_0x53dc78[_0x585cb9]?delete _0x53dc78[_0x585cb9]:'id'!==_0x585cb9&&(_0x574d79=!0x0);_0x574d79||(_0x23fc8d[_0x532b8a]=null);}if(_0x23fc8d=_0x23fc8d['filter'](_0x37b759=>null!==_0x37b759),!_0x23fc8d['length'])return;for(let _0x4f2494=0x0;_0x4f2494<_0x23fc8d['length'];_0x4f2494++){const _0x5672ba=_0x23fc8d[_0x4f2494];void 0x0!==_0x5672ba['fromVersion']&&void 0x0===_0x5672ba['toVersion']&&(_0x5672ba['toVersion']=this['repository']['getRevision'](_0x5672ba['id'])['toVersion']),void 0x0!==_0x5672ba['toVersion']&&void 0x0===_0x5672ba['fromVersion']&&(_0x5672ba['fromVersion']=this['repository']['getRevision'](_0x5672ba['id'])['fromVersion']);}const _0x188a47=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x23fc8d,_0x188a47)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x183a7b=>{if(_0x183a7b){for(const _0x303d21 of _0x183a7b)this['setRevisionData']({'id':_0x303d21['id'],'createdAt':_0x303d21['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2414b7,_0x12081f){let _0x332689=this['editor']['config']['get']('initialData'),_0x1eafcc=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x332689){_0x332689={};for(const _0x1a45e9 of this['editor']['model']['document']['getRootNames']())_0x332689[_0x1a45e9]='';}if('string'==typeof _0x332689&&(_0x332689={'main':_0x332689}),void 0x0===_0x1eafcc){_0x1eafcc={};for(const _0xc56232 of this['editor']['model']['document']['getRootNames']())_0x1eafcc[_0xc56232]={};}let _0x34547d=!0x1;const _0x2023a2=Object['keys'](_0x332689),_0x3a58ef=Object['keys'](_0x2414b7);for(const _0x5872a9 of _0x2023a2){if(_0x332689[_0x5872a9]!==_0x2414b7[_0x5872a9]&&''!==_0x332689[_0x5872a9]['trim']()){_0x34547d=!0x0;break;}if(!_0x14186e(_0x1eafcc[_0x5872a9],_0x12081f[_0x5872a9])&&Object['keys'](_0x1eafcc[_0x5872a9])['length']>0x0){_0x34547d=!0x0;break;}}_0x34547d||(_0x34547d=_0x3a58ef['some'](_0x3efd85=>!this['editor']['model']['document']['getRoot'](_0x3efd85))),_0x34547d&&_0x33335d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x332689,'editorRootsAttributes':_0x1eafcc,'revisionData':_0x2414b7,'revisionRootsAttributes':_0x12081f}),this['editor']['config']['set']('initialData',_0x2414b7),this['editor']['config']['set']('rootsAttributes',_0x12081f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2b2615=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2b2615['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x21d8fc){const _0x5ac3a2=this['repository']['getRevisions']();_0x5ac3a2['reverse']();let _0x57095a=0x0;for(;_0x57095a<_0x5ac3a2['length'];){const _0x3f51b6=_0x5ac3a2[_0x57095a];if(_0x3f51b6===this['currentRevision']){_0x57095a++;continue;}if(_0x3f51b6['id']===this['_initialRevisionId'])break;const _0x2c0a9f=_0x21d8fc['toVersion']-_0x3f51b6['toVersion']||_0x21d8fc['fromVersion']-_0x3f51b6['fromVersion'];if(_0x2c0a9f>0x0)break;if(_0x2c0a9f<0x0)_0x57095a++;else{if(!_0x21d8fc['creator']&&_0x3f51b6['creator'])break;if(_0x3f51b6['creator']||!_0x21d8fc['creator']){if(_0x21d8fc['createdAt']>_0x3f51b6['createdAt'])break;_0x57095a++;}else _0x57095a++;}}return _0x57095a;}['setRevisionData'](_0xd22b00){const _0x3c032b=this['repository']['getRevision'](_0xd22b00['id']);if(_0xd22b00['createdAt']&&(_0xd22b00['createdAt']=new Date(_0xd22b00['createdAt'])),_0xd22b00['authorsIds']){const _0x2a610e=this['editor']['plugins']['get']('Users');_0xd22b00['authors']=_0xd22b00['authorsIds']['map'](_0x94d296=>_0x2a610e['getUser'](_0x94d296));}_0x3c032b['_update'](_0xd22b00,!0x0);}['buildRevisionData']({revision:_0x2b7abe=null,from:_0x159f32=null,to:_0x97ef3f=null}){_0x159f32=null!==_0x159f32?_0x159f32:_0x2b7abe['fromVersion'],_0x97ef3f=null!==_0x97ef3f?_0x97ef3f:_0x2b7abe['toVersion'];const _0x232ea1=this['_revisionDataBuilder']['getData'](_0x159f32,_0x97ef3f),_0x2da66c={'diffData':_0x232ea1['diffData'],'authorsIds':_0x232ea1['authorsIds'],'fromVersion':_0x159f32,'toVersion':_0x97ef3f};if(!_0x2b7abe||_0x97ef3f!==_0x2b7abe['toVersion']){const _0x5a0e0e=_0x97ef3f-0x1,_0x39886e=this['_source']['history']['getOperation'](_0x5a0e0e);_0x2da66c['createdAt']=_0x39886e&&_0x39886e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x159f32===this['_loadedStateData']['fromVersion']){for(const _0x13f82a of this['_loadedStateData']['authors'])_0x2da66c['authorsIds']['includes'](_0x13f82a['id'])||_0x2da66c['authorsIds']['push'](_0x13f82a['id']);}return _0x2da66c;}['_loadRevisionData'](_0x2c95a6){if(!_0x2c95a6||_0x2c95a6['diffData'])return Promise['resolve']();{const _0x48f3ac=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x48f3ac,'revisionId':_0x2c95a6['id']})['then'](_0x5f2c61=>{_0x2c95a6['diffData']=_0x5f2c61['diffData'];});}}['_bufferUpdate'](_0x4703dc,_0x3bc8c7,_0x835a6b){if(this['_bufferedUpdates']['has'](_0x4703dc)){const _0x420ff3=this['_bufferedUpdates']['get'](_0x4703dc);_0x3bc8c7=_0x835a6b?{..._0x420ff3,..._0x3bc8c7}:{..._0x3bc8c7,..._0x420ff3};}this['_bufferedUpdates']['set'](_0x4703dc,_0x3bc8c7);}['_getFromVersion'](_0xa5cf4c){const _0x2f660e=this['repository']['getRevisions']();_0x2f660e['reverse'](),_0x2f660e['shift']();const _0x3ca369=_0x2f660e['find'](_0x52de19=>_0x52de19['toVersion']<=_0xa5cf4c)['toVersion'];return _0x3ca369<this['_startingVersion']?this['_startingVersion']:_0x3ca369;}['_createInitialRevision'](_0x28c3cb){const _0x5b3267=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5b3267)this['_initialRevisionId']=_0x5b3267['id'];else{const _0x78beea=!this['editor']['model']['document']['roots']['find'](_0x22e139=>this['editor']['model']['hasContent'](_0x22e139)),_0x2a05b3=this['editor']['plugins']['get']('Users')['me']['id'],_0x9745d=m(this['editor']['locale'],_0x78beea?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x28c3cb,'to':_0x28c3cb,'id':this['_initialRevisionId'],'name':_0x9745d,'creatorId':_0x2a05b3});}}['_createCurrentRevision'](_0x2f0aeb){const _0x11822b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x11822b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2f0aeb,'to':_0x2f0aeb,'id':_0x11822b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2b0fb9,from:_0x4a28f7,to:_0x1cd82c,creatorId:_0x241610,id:_0x2fe2c8}){const _0x3740e0=this['buildRevisionData']({'from':_0x4a28f7,'to':_0x1cd82c});_0x3740e0['name']=_0x2b0fb9,_0x3740e0['creatorId']=_0x241610,_0x3740e0['id']=_0x2fe2c8;const _0x3eee62=this['addRevisionData'](_0x3740e0);return this['adapter']&&this['_bufferUpdate'](_0x3740e0['id'],_0x3740e0,!0x0),_0x3eee62;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3e3c99){return(_0x3e3c99=_0x3e3c99['filter'](_0x46d6c6=>!_0x46d6c6['name']||'revision-start'!==_0x46d6c6['name']&&'revision-end'!==_0x46d6c6['name']))['forEach'](_0x26eaa3=>{'string'!=typeof _0x26eaa3&&(_0x26eaa3['children']=this['_removeRevisionMarkers'](_0x26eaa3['children']),_0x26eaa3['attributes']=_0x26eaa3['attributes']['filter'](_0x24e9c1=>!_0x24e9c1[0x0]['startsWith']('data-revision-')));}),_0x3e3c99;}}function C(_0x1ef8f2,_0x50b5f2){const _0x1bd2be=_0x50b5f2['editing']['view']['document'];if('string'==typeof _0x1ef8f2)return new _0x5bbf56(_0x1bd2be,_0x1ef8f2);{const _0x30d6de=_0x1ef8f2['children']['map'](_0x5d449a=>C(_0x5d449a,_0x50b5f2));return new(P[_0x1ef8f2['type']]||_0x57bb1e)(_0x1bd2be,_0x1ef8f2['name'],_0x1ef8f2['attributes'],_0x30d6de);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x55146a){this['editor']=_0x55146a,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'](_0xa69c81){this['source']=_0xa69c81;const _0xfb1376=new Map(),_0x37484f=new Map(),_0x3bd4f8=this['editor']['model']['document']['roots']['map'](_0x4aef86=>_0x4aef86['rootName']);for(const _0x532f78 of _0x3bd4f8){const _0x1557d4=this['editor']['model']['document']['getRoot'](_0x532f78),_0x23fe9f=T(_0x1557d4);_0xfb1376['set'](_0x532f78,_0x23fe9f),_0x37484f['set'](_0x532f78,Object['fromEntries'](_0x1557d4['getAttributes']()));}const _0x4caa60=Array['from'](this['editor']['model']['markers'])['map'](_0x359c02=>[_0x359c02['name'],_0x359c02['getRange']()]),_0x5ce77f=this['source']['version'];this['_saveMetaData'](_0x5ce77f,_0xfb1376,_0x4caa60,_0x37484f),this['_startingRevisionId']=this['_revisionId'];const _0x1cc859=new Map(),_0x24cf2e=new Map();for(const _0x46d55f of _0x3bd4f8){const _0x5b833c=F(_0x46d55f);_0x1cc859['set'](_0x46d55f,_0x5b833c),_0x24cf2e['set'](_0x46d55f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1cc859,[],_0x24cf2e);}['getData'](_0x28f4b5,_0x59b14f){if(this['_lastFrom']===_0x28f4b5&&this['_lastTo']<=_0x59b14f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x59b14f,!0x0);else{if(!this['_savedMetaData']['has'](_0x28f4b5)){const _0x446698=this['_getPreviousFrom'](_0x28f4b5);this['_calculateMetaData'](_0x446698,_0x28f4b5,!0x1);}this['_calculateMetaData'](_0x28f4b5,_0x59b14f,!0x0);}return this['_lastFrom']=_0x28f4b5,this['_lastTo']=_0x59b14f,this['_getState']();}['loadState'](_0x5b34b7){this['_reset'](),this['_lastFrom']=_0x5b34b7['fromVersion'],this['_lastTo']=_0x5b34b7['toVersion'];for(const _0x37b992 in _0x5b34b7['diffData']){const _0x3b0662=_0x5b34b7['diffData'][_0x37b992]['attachChange'],_0x31a199=_0x556891(_0x5b34b7['diffData'][_0x37b992]['attributesBefore'])||{},_0x57c72a=this['_makeModelFromViewString'](_0x5b34b7['diffData'][_0x37b992]['deletions']);_0x57c72a['rootName']=_0x37b992,_0x57c72a['_isAttached']=!_0x3b0662||!_0x3b0662['isAttached'],_0x57c72a['isAttached']=()=>_0x57c72a['_isAttached'],this['_baseRoots']['set'](_0x37b992,_0x57c72a),this['_baseRootsAttributes']['set'](_0x37b992,_0x31a199),_0x3b0662&&this['_touchedRoots']['set'](_0x37b992,_0x3b0662);const _0x3ff240=this['_makeIdsRoot'](_0x57c72a);this['_baseIdsRoots']['set'](_0x37b992,_0x3ff240);for(const [_0x52a63d,_0x48c17d]of _0x57c72a['markers']){if(!_0x52a63d['startsWith']('revision:'))continue;const _0x4a8b07=_0x52a63d['split'](':')[0x2];for(const _0x3dd90a of _0x48c17d['getWalker']({'singleCharacters':!0x0})){const _0x55befa=this['_getVidAttributeName'](_0x3dd90a),_0x1145d3='elementEnd'==_0x3dd90a['type']?_0x3dd90a['previousPosition']['path']['slice'](0x0,-0x1):_0x3dd90a['previousPosition']['path'],_0x23c74c=_0x3ff240['getNodeByPath'](_0x1145d3)['getAttribute'](_0x55befa);this['_touched']['set'](_0x23c74c,{'userId':_0x4a8b07});}}}this['_startingRevisionId']=this['_revisionId'];const _0x522ecb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x506d49=>!this['_touched']['has'](_0x506d49));let _0x5976a5=0x0;const _0x1b0041=new Map();for(const _0x9e7a0f in _0x5b34b7['diffData']){const _0x3f8a72=_0x5b34b7['diffData'][_0x9e7a0f]['attachChange'],_0x52ca63=_0x556891(_0x5b34b7['diffData'][_0x9e7a0f]['attributesAfter'])||{},_0x37dc12=this['_makeModelFromViewString'](_0x5b34b7['diffData'][_0x9e7a0f]['insertions']);_0x37dc12['rootName']=_0x9e7a0f,_0x37dc12['_isAttached']=!_0x3f8a72||_0x3f8a72['isAttached'],_0x37dc12['isAttached']=()=>_0x37dc12['_isAttached'],this['_diffRoots']['set'](_0x9e7a0f,_0x37dc12),this['_diffRootsAttributes']['set'](_0x9e7a0f,_0x52ca63);const _0xae3ff3=this['_makeIdsRoot'](_0x37dc12,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x9e7a0f,_0xae3ff3),_0x1b0041['set'](_0x9e7a0f,_0x37dc12['isAttached']()?_0x52ca63:{});for(const [_0x440b6e,_0x46e53f]of _0x37dc12['markers']){if(!_0x440b6e['startsWith']('revision:'))continue;const _0xf5f38=_0x440b6e['split'](':')[0x2];for(const _0x3caa84 of _0x46e53f['getWalker']({'singleCharacters':!0x0})){const _0x225c8e=this['_getVidAttributeName'](_0x3caa84),_0x59d54f=this['_revisionId']++,_0xc6381a='elementEnd'==_0x3caa84['type']?_0x3caa84['previousPosition']['path']['slice'](0x0,-0x1):_0x3caa84['previousPosition']['path'];_0xae3ff3['getNodeByPath'](_0xc6381a)['_setAttribute'](_0x225c8e,_0x59d54f),this['_touched']['set'](_0x59d54f,{'userId':_0xf5f38});}}for(const _0x409b2f of this['editor']['model']['createRangeIn'](_0x37dc12)['getWalker']({'singleCharacters':!0x0})){const _0x1bfd09=this['_getVidAttributeName'](_0x409b2f),_0x382d7a='elementEnd'==_0x409b2f['type']?_0x409b2f['previousPosition']['path']['slice'](0x0,-0x1):_0x409b2f['previousPosition']['path'],_0x2b5050=_0xae3ff3['getNodeByPath'](_0x382d7a);_0x2b5050['getAttribute'](_0x1bfd09)>0x0||_0x2b5050['_setAttribute'](_0x1bfd09,_0x522ecb[_0x5976a5++]);}for(const [_0x351867,_0x112fea]of _0x37dc12['markers'])_0x351867['startsWith']('revision:')||this['_markers']['set'](_0x351867,_0x112fea);}const _0x22fcf1=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x22fcf1),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x22fcf1,0x1));const _0x8295a3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x8295a3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x8295a3,0x1));const _0x2ef71b=Array['from'](this['_diffRoots'])['map'](([_0x55a58f,_0x51f669])=>[_0x55a58f,T(_0x51f669)]);this['_saveMetaData'](this['_lastTo'],_0x2ef71b,this['_markers'],_0x1b0041);}['_makeModelFromViewString'](_0x5ca23b){const _0x1ff374=JSON['parse'](_0x5ca23b),_0x5191a1=this['editor']['editing']['view']['document'],_0x5b7e5e=new _0x4d5c6a(_0x5191a1,_0x1ff374['map'](_0x214566=>C(_0x214566,this['editor'])));return this['editor']['data']['toModel'](_0x5b7e5e);}['_saveMetaData'](_0x17b58e,_0x5b1bd5,_0x42a52d,_0x4dcf49){const _0x24e2b3=new Map(_0x5b1bd5),_0x3b84b1=new Map(_0x556891(_0x4dcf49)),_0x35b0f0=new Map();for(const [_0xad35df,_0x2f97ba]of _0x42a52d)_0x35b0f0['set'](_0xad35df,{'start':_0x2f97ba['start']['clone'](),'end':_0x2f97ba['end']['clone'](),'rootName':_0x2f97ba['root']['rootName']});this['_savedMetaData']['set'](_0x17b58e,{'roots':_0x24e2b3,'markers':_0x35b0f0,'rootsAttributes':_0x3b84b1});}['_removeMetaData'](_0x5d1366){this['_savedMetaData']['delete'](_0x5d1366);}['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'](_0x5344b3,_0x35403e=null){let _0x5af0ec=null;_0x5344b3['is']('documentFragment')||(_0x5af0ec=new ft(_0x5344b3['name'],{'vid_start':null===_0x35403e?this['_revisionId']++:_0x35403e++}));const _0x41d14d=[];for(const _0x3316c2 of _0x5344b3['getChildren']())if(_0x3316c2['is']('element')){_0x41d14d['push'](this['_makeIdsRoot'](_0x3316c2,_0x35403e));const _0x4fef8c=_0x41d14d[_0x41d14d['length']-0x1];null!==_0x35403e&&(_0x35403e=_0x4fef8c['is']('element','$text')?_0x4fef8c['getAttribute']('vid')+0x1:_0x4fef8c['getAttribute']('vid_end')+0x1);}else{for(let _0x26250d=0x0;_0x26250d<_0x3316c2['offsetSize'];_0x26250d++)_0x41d14d['push'](new ft('$text',{'vid':null===_0x35403e?this['_revisionId']++:_0x35403e++}));}if(_0x5344b3['is']('documentFragment')){const _0x5e0c8d=F(_0x5344b3['rootName']);return _0x5e0c8d['_insertChild'](0x0,_0x41d14d),_0x5e0c8d;}return _0x5af0ec['_setAttribute']('vid_end',null===_0x35403e?this['_revisionId']++:_0x35403e++),_0x5af0ec['_insertChild'](0x0,_0x41d14d),_0x5af0ec;}['_calculateMetaData'](_0x1e746f,_0x554edd,_0x525b82){this['_reset']();const {roots:_0x272522,markers:_0x5c2533,rootsAttributes:_0x194674}=this['_savedMetaData']['get'](_0x1e746f);this['_baseRoots']=new Map(_0x272522),this['_baseRootsAttributes']=new Map(_0x556891(_0x194674));for(const [_0x26867f,_0x45ad51]of this['_baseRoots'])if('$graveyard'!==_0x26867f&&(this['_diffRoots']['set'](_0x26867f,T(_0x45ad51)),this['_diffRootsAttributes']=new Map(_0x556891(_0x194674)),_0x525b82)){const _0x801426=this['_revisionId'];this['_idsRoots']['set'](_0x26867f,this['_makeIdsRoot'](_0x45ad51)),this['_baseIdsRoots']['set'](_0x26867f,this['_makeIdsRoot'](_0x45ad51,_0x801426));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x525b82&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2eb0e1,_0x6d0a5]of _0x5c2533){const _0x454e4b=this['_baseRoots']['get'](_0x6d0a5['rootName']),_0x9766cb=this['_diffRoots']['get'](_0x6d0a5['rootName']),_0x2536b8=new vt(this['_fixPosition'](_0x6d0a5['start'],_0x454e4b),this['_fixPosition'](_0x6d0a5['end'],_0x454e4b)),_0x1420c2=this['_fixRange'](_0x2536b8,_0x9766cb);_0x454e4b['markers']['set'](_0x2eb0e1,_0x2536b8),this['_markers']['set'](_0x2eb0e1,_0x1420c2);}this['_applyOperations'](_0x1e746f,_0x554edd,_0x525b82);}['_applyOperations'](_0x33aa2c,_0x407987,_0x29ff7c){for(const _0x25cf69 of this['source']['getOperations'](_0x33aa2c,_0x407987))this['_handleOperation'](_0x25cf69,_0x29ff7c);for(const _0x24a2d7 of this['_diffRoots']['values']())_0x24a2d7['markers']['clear']();for(const [_0x5cd26d,_0x5c09d1]of this['_markers']){this['_diffRoots']['get'](_0x5c09d1['root']['rootName'])['markers']['set'](_0x5cd26d,_0x5c09d1['clone']());}const _0x5d4bb7=new Map(),_0x19be98=new Map();for(const [_0x1e59b7,_0x505c4e]of this['_diffRoots'])_0x5d4bb7['set'](_0x1e59b7,T(_0x505c4e)),_0x19be98['set'](_0x1e59b7,this['_diffRootsAttributes']['get'](_0x1e59b7));this['_saveMetaData'](_0x407987,_0x5d4bb7,this['_markers'],_0x19be98);}['_getPreviousFrom'](_0x37dc5b){const _0x590fa6=Array['from'](this['_savedMetaData']['keys']());_0x590fa6['sort']((_0x2c4d36,_0x4facad)=>_0x2c4d36-_0x4facad),_0x590fa6['reverse']();for(const _0x167d83 of _0x590fa6)if(_0x167d83<_0x37dc5b)return _0x167d83;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4f4b81,_0x1f364b){const _0x35634d=Array['from'](_0x1f364b['markers'])['map'](([_0x281c62,_0x2f2ff7])=>[_0x281c62,this['_fixRange'](_0x2f2ff7,_0x4f4b81)]);_0x4f4b81['markers']=new Map(_0x35634d);}['_transformMarkers'](_0x16f2a5){for(const _0x222ba1 of this['_markers']['values']()){const _0x21a4ab=_0x222ba1['getTransformedByOperation'](_0x16f2a5),_0x191324=vt['_createFromRanges'](_0x21a4ab);_0x222ba1['start']=_0x191324['start'],_0x222ba1['end']=_0x191324['end'];}}['_handleOperation'](_0x54fdf5,_0x3d9268){if('addRoot'!=_0x54fdf5['type']&&'detachRoot'!=_0x54fdf5['type']){if('insert'==_0x54fdf5['type']){const _0x400c53=_0x54fdf5['position']['root']['rootName'];this['_diffRoots']['has'](_0x400c53)||(this['_diffRoots']['set'](_0x400c53,F(_0x400c53,!0x0)),this['_diffRootsAttributes']['set'](_0x400c53,{}),_0x3d9268&&this['_idsRoots']['set'](_0x400c53,F(_0x400c53,!0x0)));}else{if('addRootAttribute'==_0x54fdf5['type']||'removeRootAttribute'==_0x54fdf5['type']||'changeRootAttribute'==_0x54fdf5['type'])return void this['_handleRootAttributeOperation'](_0x54fdf5);'marker'==_0x54fdf5['type']&&this['_handleMarkerOperation'](_0x54fdf5);}if('marker'!==_0x54fdf5['type']){const _0x3677f5=this['_cloneOperation'](_0x54fdf5,this['_diffRoots']);_0x3677f5['_execute'](),this['_transformMarkers'](_0x3677f5);}if(_0x3d9268)switch(_0x54fdf5['type']){case'insert':this['_handleInsertOperation'](_0x54fdf5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x54fdf5);break;case'merge':this['_handleMergeOperation'](_0x54fdf5);break;case'split':this['_handleSplitOperation'](_0x54fdf5);}}else this['_handleRootOperation'](_0x54fdf5,_0x3d9268);}['_cloneOperation'](_0x2ca0c0,_0x582395){const _0x299ec5=_0x2ca0c0['clone']();return _0x299ec5['_authorId']=_0x2ca0c0['_authorId'],this['_fixOperation'](_0x299ec5,_0x582395),_0x299ec5;}['_getBaseVids'](_0x39e7d0){return _0x39e7d0['map'](_0x14ff61=>{const _0x107ec2=this['_getVidAttributeName'](_0x14ff61);return Number(_0x14ff61['item']['getAttribute'](_0x107ec2));});}['_generateTape'](_0x72e9a,_0x3e36d3){if(_0x72e9a['is']('element','$text'))_0x3e36d3['push']({'item':_0x72e9a,'type':'text'});else{_0x72e9a['is']('element')&&_0x3e36d3['push']({'item':_0x72e9a,'type':'elementStart'});for(const _0xbf7b24 of _0x72e9a['getChildren']())this['_generateTape'](_0xbf7b24,_0x3e36d3);_0x72e9a['is']('element')&&_0x3e36d3['push']({'item':_0x72e9a,'type':'elementEnd'});}return _0x3e36d3;}['_getState'](){const _0x1382c2=new Map(this['_touched']),_0xa158f9=new Map(_0x1382c2),_0x1ae7d2=new Map(),_0x8d677e={'insertions':{},'deletions':{}},_0x3eeceb={'insertions':{},'deletions':{}},_0x317d9e=new Map(),_0x309975=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x309975['delete']('$graveyard');for(const _0x53950d of _0x309975){const _0x5e3c95=this['_diffRoots']['get'](_0x53950d)||F(_0x53950d,!0x1),_0x37ea6d=this['_baseRoots']['get'](_0x53950d)||F(_0x53950d,!0x1);_0x5e3c95['isAttached']()||_0x37ea6d['isAttached']()?(_0x8d677e['insertions'][_0x53950d]=T(_0x5e3c95),_0x8d677e['deletions'][_0x53950d]=T(_0x37ea6d),this['_copyMarkers'](_0x8d677e['deletions'][_0x53950d],_0x37ea6d),this['_copyMarkers'](_0x8d677e['insertions'][_0x53950d],_0x5e3c95),_0x3eeceb['insertions'][_0x53950d]=this['_generateTape'](this['_idsRoots']['get'](_0x53950d),[]),_0x3eeceb['deletions'][_0x53950d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x53950d)||F(_0x53950d,!0x1),[])):_0x309975['delete'](_0x53950d);}for(const _0x202184 of _0x309975){const _0x19d0e6=_0x3eeceb['insertions'][_0x202184];for(const _0x225d5a of _0x19d0e6){const _0x309180=this['_getVidAttributeName'](_0x225d5a),_0x3f5be1=_0x225d5a['item']['getAttribute'](_0x309180);_0xa158f9['delete'](_0x3f5be1),_0x3f5be1>=this['_startingRevisionId']&&_0x1ae7d2['set'](_0x3f5be1,_0x1382c2['get'](_0x3f5be1));}}for(const _0x46a52b of _0x309975){const _0x4a25ef=_0x3eeceb['insertions'][_0x46a52b],_0x5d8a80=this['_getBaseVids'](_0x3eeceb['deletions'][_0x46a52b]);let _0x47fa1e=0x0;for(const _0xbd24f7 of _0x4a25ef){const _0x2edcb0=this['_getVidAttributeName'](_0xbd24f7),_0x5e1c64=_0xbd24f7['item']['getAttribute'](_0x2edcb0);if(!_0x1ae7d2['has'](_0x5e1c64)&&!_0x317d9e['has'](_0x5e1c64)){if(_0xa158f9['has'](_0x5e1c64))_0x47fa1e++;else{if(_0x5e1c64!=_0x5d8a80[_0x47fa1e]){const _0x32dfc8=_0x1382c2['get'](_0x5e1c64)||_0x1382c2['get'](_0x5d8a80[_0x47fa1e]);for(;_0x5e1c64!=_0x5d8a80[_0x47fa1e];)_0xa158f9['has'](_0x5d8a80[_0x47fa1e])||(_0x317d9e['set'](_0x5d8a80[_0x47fa1e],_0x32dfc8),_0x1382c2['set'](_0x5d8a80[_0x47fa1e],_0x32dfc8)),_0x47fa1e++;}_0x47fa1e++;}}}}for(const _0x2751fb of _0x309975){const _0x13136b=_0x3eeceb['insertions'][_0x2751fb];for(const _0x4c5dae of _0x13136b){const _0x1d2aaa=this['_getVidAttributeName'](_0x4c5dae),_0x5ad2fd=_0x4c5dae['item']['getAttribute'](_0x1d2aaa);if(_0x317d9e['has'](_0x5ad2fd)){const _0x4fba6a=_0x317d9e['get'](_0x5ad2fd);_0xa158f9['has'](_0x5ad2fd)||_0xa158f9['set'](_0x5ad2fd,{..._0x4fba6a}),_0x1ae7d2['set'](_0x5ad2fd,{..._0x4fba6a});}}}for(const _0x562761 of _0xa158f9['keys']())_0x562761>=this['_startingRevisionId']&&_0xa158f9['delete'](_0x562761);const _0x442595=new Map();for(const _0x23e951 of _0x309975){let _0x14990a=_0x3eeceb['insertions'][_0x23e951];for(const _0x24c107 of _0x14990a)if(_0x24c107['item']['is']('element','tableCell')){const _0x4a86b3=this['_getVidAttributeName'](_0x24c107),_0x199b0a=_0x24c107['item']['getAttribute'](_0x4a86b3);if(_0x1ae7d2['has'](_0x199b0a)){const _0xd75428=_0x24c107['item']['parent']['parent']['getAttribute']('vid_start'),_0xef7072=_0x442595['get'](_0xd75428)||new Set();_0xef7072['add'](_0x1ae7d2['get'](_0x199b0a)['userId']),_0x442595['set'](_0xd75428,_0xef7072);}}_0x14990a=_0x3eeceb['deletions'][_0x23e951];for(const _0x52aa3e of _0x14990a)if(_0x52aa3e['item']['is']('element','tableCell')){const _0x2b1a26=this['_getVidAttributeName'](_0x52aa3e),_0x46d324=_0x52aa3e['item']['getAttribute'](_0x2b1a26);if(_0xa158f9['has'](_0x46d324)){const _0x5c0ee6=_0x52aa3e['item']['parent']['parent']['getAttribute']('vid_start'),_0x5a5977=_0x442595['get'](_0x5c0ee6)||new Set();_0x5a5977['add'](_0xa158f9['get'](_0x46d324)['userId']),_0x442595['set'](_0x5c0ee6,_0x5a5977);}}for(const _0xff3ee of _0x442595['keys']())(_0x1ae7d2['has'](_0xff3ee)||_0xa158f9['has'](_0xff3ee))&&_0x442595['delete'](_0xff3ee);}for(const _0x449c4e of _0x309975){const _0x2d613e=_0x3eeceb['insertions'][_0x449c4e];let _0x253f1a=null,_0x58d3a6=null;for(const _0x26c47c of _0x2d613e){const _0x501013=this['_getVidAttributeName'](_0x26c47c),_0x2d39e9=_0x26c47c['item']['getAttribute'](_0x501013),_0x4131ac=_0x442595['get'](_0x2d39e9);_0x4131ac&&'elementStart'==_0x26c47c['type']&&(_0x253f1a=Array['from'](_0x4131ac)[0x0],_0x58d3a6=_0x26c47c['item']['getAttribute']('vid_end')),_0x253f1a&&(_0xa158f9['set'](_0x2d39e9,{'userId':_0x253f1a}),_0x1ae7d2['set'](_0x2d39e9,{'userId':_0x253f1a})),_0x2d39e9==_0x58d3a6&&(_0x253f1a=null,_0x58d3a6=null);}}const _0x3ffeb1={},_0x1ca3d6=new Set();for(const _0x471eb1 of _0x309975){const _0xe91adb=_0x8d677e['deletions'][_0x471eb1],_0x2655a5=_0x8d677e['insertions'][_0x471eb1];for(const {userId:_0x20a513}of this['_touchedMarkers']['values']())null!==_0x20a513&&_0x1ca3d6['add'](_0x20a513);for(const {userId:_0x6feb1e}of this['_touchedRoots']['values']())null!==_0x6feb1e&&_0x1ca3d6['add'](_0x6feb1e);this['_markChanges'](_0x2655a5,_0x3eeceb['insertions'][_0x471eb1],_0x1ae7d2,'insertion',_0x1ca3d6),this['_markChanges'](_0xe91adb,_0x3eeceb['deletions'][_0x471eb1],_0xa158f9,'deletion',_0x1ca3d6),_0x3ffeb1[_0x471eb1]={'insertions':this['_prepareViewToSave'](_0x2655a5),'deletions':this['_prepareViewToSave'](_0xe91adb),'attachChange':this['_touchedRoots']['get'](_0x471eb1)||null,'attributesBefore':_0x556891(this['_baseRootsAttributes']['get'](_0x471eb1))||{},'attributesAfter':_0x556891(this['_diffRootsAttributes']['get'](_0x471eb1))};}return{'diffData':_0x3ffeb1,'authorsIds':Array['from'](_0x1ca3d6)};}['_processRootBeforeSave'](_0x461916){for(const [,_0x4c180d]of _0x461916['markers']){const _0x487944=_0x4c180d['start']['getAncestors']()['filter'](_0x59244d=>'tableCell'==_0x59244d['name']);for(const _0x57badb of _0x487944)0x1==_0x57badb['childCount']&&_0x57badb['getChild'](0x0)['is']('element','paragraph')&&_0x57badb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3b2d29){this['_processRootBeforeSave'](_0x3b2d29);const _0x2928bb=this['editor']['data']['toView'](_0x3b2d29,{}),_0x8753d4=Array['from'](_0x2928bb['getChildren']())['map'](_0xb906fe=>this['_getViewJson'](_0xb906fe));return JSON['stringify'](_0x8753d4);}['_getViewJson'](_0x56ef9b){if(_0x56ef9b['is']('$text'))return _0x56ef9b['data'];{const _0x5b5a01=_0x56ef9b;return{'type':Object['keys'](P)['find'](_0x94131=>_0x56ef9b instanceof P[_0x94131]),'name':_0x5b5a01['name'],'attributes':Array['from'](_0x5b5a01['getAttributes']()),'children':Array['from'](_0x5b5a01['getChildren']())['map'](_0x1a6309=>this['_getViewJson'](_0x1a6309))};}}['_markChanges'](_0x3cbb42,_0x4a6421,_0x1b8f4d,_0x2d7888,_0xeb37b4){let _0x11572e=null,_0xe4238e=null,_0x1701e7=0x0;const _0x5b5890=this['editor']['model'];for(let _0x1b417d=0x0;_0x1b417d<_0x4a6421['length'];_0x1b417d++){const _0x367a21=this['_getVidAttributeName'](_0x4a6421[_0x1b417d]),_0x18c4ec=_0x4a6421[_0x1b417d]['item']['getAttribute'](_0x367a21),_0x13eabc=_0x1b8f4d['get'](_0x18c4ec),_0x576be3=_0x1b417d==_0x4a6421['length']-0x1;(!_0x11572e&&_0x13eabc&&(_0x11572e=_0x13eabc,_0xe4238e=_0x4a6421[_0x1b417d]),_0x11572e&&(!_0x13eabc||_0x13eabc['userId']!=_0x11572e['userId']))&&(_0x3ead5e(_0x13eabc,B(_0xe4238e,_0x3cbb42,_0x5b5890),B(_0x4a6421[_0x1b417d],_0x3cbb42,_0x5b5890)),_0x11572e=_0x13eabc||null,_0xe4238e=_0x13eabc?_0x4a6421[_0x1b417d]:null),_0x11572e&&_0x576be3&&_0x3ead5e(_0x13eabc,B(_0xe4238e,_0x3cbb42,_0x5b5890),J(_0x4a6421[_0x1b417d],_0x3cbb42,_0x5b5890));}function _0x3ead5e(_0xd1b714,_0x57c707,_0xfe4c02){const _0x369c09=_0x11572e['userId'],_0x5609c9='revision:'+_0x2d7888+':'+_0x369c09+':'+_0x1701e7++,_0x1801c2=_0x5b5890['createRange'](_0x57c707,_0xfe4c02);_0x3cbb42['markers']['set'](_0x5609c9,_0x1801c2),null!==_0x369c09&&_0xeb37b4['add'](_0x369c09);}}['_getVidAttributeName'](_0x500250){switch(_0x500250['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4126cd,_0x101a25){_0x4126cd['baseVersion']=null;for(const _0x2cd408 in _0x4126cd){const _0x2d6ebd=_0x4126cd[_0x2cd408];if(_0x2d6ebd instanceof gt){const _0x578cf3=_0x101a25['get'](_0x2d6ebd['root']['rootName']);_0x4126cd[_0x2cd408]=this['_fixPosition'](_0x2d6ebd,_0x578cf3);}if(_0x2d6ebd instanceof vt){const _0x47f1f8=_0x101a25['get'](_0x2d6ebd['root']['rootName']);_0x4126cd[_0x2cd408]=this['_fixRange'](_0x2d6ebd,_0x47f1f8);}'root'===_0x2cd408&&(_0x4126cd['root']=_0x101a25['get'](_0x4126cd['root']['rootName']));}}['_fixRange'](_0x5d3881,_0x18317c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5d3881['start'],_0x18317c),this['_fixPosition'](_0x5d3881['end'],_0x18317c));}['_fixPosition'](_0xd01663,_0x48cb5e){return this['editor']['model']['createPositionFromPath'](_0x48cb5e,_0xd01663['path'],_0xd01663['stickiness']);}['_handleInsertOperation'](_0x6536e4){const _0x3ac511=this['_idsRoots']['get'](_0x6536e4['position']['root']['rootName']),_0x54ebb1=this['_fixPosition'](_0x6536e4['position'],_0x3ac511),_0x44dfb3=null===_0x6536e4['_authorId']?null:_0x6536e4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x89208e=_0x54ebb1['parent'],_0x1ca7b5=this['_revisionId'],_0x3893af=[];for(const _0x457235 of _0x6536e4['nodes'])if(_0x457235['is']('element'))_0x3893af['push'](this['_makeIdsRoot'](_0x457235));else{for(let _0x5a6ab4=0x0;_0x5a6ab4<_0x457235['offsetSize'];_0x5a6ab4++)_0x3893af['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4f00fb=this['_revisionId'];for(let _0x3c8412=_0x1ca7b5;_0x3c8412<_0x4f00fb;_0x3c8412++)this['_touched']['set'](_0x3c8412,{'userId':_0x44dfb3});_0x89208e['_insertChild'](_0x54ebb1['offset'],_0x3893af);}['_handleMoveOperation'](_0x40e0f4){(_0x40e0f4=this['_cloneOperation'](_0x40e0f4,this['_idsRoots']))['_execute']();const _0xc0e97a=null===_0x40e0f4['_authorId']?null:_0x40e0f4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23dc63=_0x40e0f4['getMovedRangeStart'](),_0x3d2fc4=_0x23dc63['parent'],_0x4fbfc6=_0x23dc63['offset'];!function _0x1478b8(_0x4e7665,_0x557530,_0xe011dd,_0x53a573){for(let _0x1f1456=_0xe011dd;_0x1f1456<_0x53a573;_0x1f1456++){const _0x180658=_0x557530['getChild'](_0x1f1456);_0x180658['is']('element','$text')?_0x4e7665['set'](_0x180658['getAttribute']('vid'),{'userId':_0xc0e97a}):(_0x4e7665['set'](_0x180658['getAttribute']('vid_start'),{'userId':_0xc0e97a}),_0x1478b8(_0x4e7665,_0x180658,0x0,_0x180658['childCount']),_0x4e7665['set'](_0x180658['getAttribute']('vid_end'),{'userId':_0xc0e97a}));}}(this['_touched'],_0x3d2fc4,_0x4fbfc6,_0x4fbfc6+_0x40e0f4['howMany']);}['_handleMergeOperation'](_0x3f0e31){const _0x8344b7=null===(_0x3f0e31=this['_cloneOperation'](_0x3f0e31,this['_idsRoots']))['_authorId']?null:_0x3f0e31['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30d75f=_0x3f0e31['targetPosition']['parent'],_0x45830f=_0x3f0e31['sourcePosition']['parent'],_0x52aa52=_0x30d75f['getAttribute']('vid_end'),_0xc59b90=_0x45830f['getAttribute']('vid_start');_0x30d75f['_setAttribute']('vid_end',_0x45830f['getAttribute']('vid_end')),_0x45830f['_setAttribute']('vid_end',_0x52aa52),this['_touched']['set'](_0xc59b90,{'userId':_0x8344b7}),this['_touched']['set'](_0x52aa52,{'userId':_0x8344b7}),_0x3f0e31['_execute']();}['_handleSplitOperation'](_0x1f4d9d){const _0x53f2a7=null===(_0x1f4d9d=this['_cloneOperation'](_0x1f4d9d,this['_idsRoots']))['_authorId']?null:_0x1f4d9d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b1c0d=_0x1f4d9d['graveyardPosition'],_0x13ea0a=_0x1f4d9d['splitPosition']['parent'];_0x1f4d9d['_execute']();const _0xdc19e9=_0x13ea0a['getAttribute']('vid_end'),_0x53291f=_0x1f4d9d['insertionPosition']['nodeAfter'];if(_0x5b1c0d){const _0x532def=_0x53291f['getAttribute']('vid_end'),_0x63f288=_0x13ea0a['getAttribute']('vid_end');_0x13ea0a['_setAttribute']('vid_end',_0x532def),_0x53291f['_setAttribute']('vid_end',_0x63f288),this['_touched']['set'](_0x13ea0a['getAttribute']('vid_end'),{'userId':_0x53f2a7}),this['_touched']['set'](_0x53291f['getAttribute']('vid_start'),{'userId':_0x53f2a7});}else{const _0x414c2a=this['_revisionId']++,_0x22b58d=this['_revisionId']++;_0x13ea0a['_setAttribute']('vid_end',_0x414c2a),_0x53291f['_setAttribute']('vid_start',_0x22b58d),_0x53291f['_setAttribute']('vid_end',_0xdc19e9),this['_touched']['set'](_0x414c2a,{'userId':_0x53f2a7}),this['_touched']['set'](_0x22b58d,{'userId':_0x53f2a7});}}['_handleMarkerOperation'](_0x138b20){if(!_0x138b20['affectsData'])return;const _0x2a72c0=(_0x138b20=this['_cloneOperation'](_0x138b20,this['_diffRoots']))['oldRange']?_0x138b20['oldRange']['root']:null,_0x1b6978=_0x138b20['newRange']?_0x138b20['newRange']['root']:null;_0x2a72c0&&this['_markers']['delete'](_0x138b20['name']),_0x1b6978&&this['_markers']['set'](_0x138b20['name'],_0x138b20['newRange']['clone']());const _0x200e7a=null===_0x138b20['_authorId']?null:_0x138b20['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2095f0=_0x138b20['name'];if(!this['_touchedMarkers']['has'](_0x2095f0))return void this['_touchedMarkers']['set'](_0x2095f0,{'range':_0x138b20['oldRange'],'userId':_0x200e7a});const _0x2b97ef=this['_touchedMarkers']['get'](_0x2095f0),_0x15818b=_0x2b97ef['range'],_0x3fb13c=_0x138b20['newRange'];null==_0x15818b&&null==_0x3fb13c||_0x15818b&&_0x3fb13c&&_0x15818b['isEqual'](_0x3fb13c)?this['_touchedMarkers']['delete'](_0x138b20['name']):_0x2b97ef['userId']=_0x200e7a;}['_handleRootOperation'](_0x121382,_0x43674c){this['_diffRoots']['has'](_0x121382['rootName'])?this['_diffRoots']['get'](_0x121382['rootName'])['_isAttached']=_0x121382['isAdd']:(this['_diffRoots']['set'](_0x121382['rootName'],F(_0x121382['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x121382['rootName'],{}),_0x43674c&&this['_idsRoots']['set'](_0x121382['rootName'],F(_0x121382['rootName'],!0x0)));const _0x295465=null===_0x121382['_authorId']?null:_0x121382['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b37a5=this['_touchedRoots']['get'](_0x121382['rootName']);_0x1b37a5&&_0x1b37a5['userId']===_0x295465?this['_touchedRoots']['delete'](_0x121382['rootName']):this['_touchedRoots']['set'](_0x121382['rootName'],{'userId':_0x295465,'isAttached':_0x121382['isAdd']});}['_handleRootAttributeOperation'](_0x374aff){const _0x2b9dff=this['_diffRootsAttributes']['get'](_0x374aff['root']['rootName']);null===_0x374aff['newValue']?delete _0x2b9dff[_0x374aff['key']]:_0x2b9dff[_0x374aff['key']]=_0x374aff['newValue'];}}function T(_0x2f9e97){const _0x295c5f=F(_0x2f9e97['rootName'],_0x2f9e97['isAttached']());for(const _0x35a148 of _0x2f9e97['getChildren']()){const _0x39e6eb=_0x35a148['_clone'](!0x0);_0x295c5f['_appendChild'](_0x39e6eb);}return _0x295c5f;}function F(_0x402185,_0x1fe57e=!0x0){const _0x514e19=new mt();return _0x514e19['rootName']=_0x402185,_0x514e19['_isAttached']=_0x1fe57e,_0x514e19['isAttached']=()=>_0x514e19['_isAttached'],_0x514e19;}function B(_0x16fabe,_0x1d2768,_0x129743){const _0x135c76='elementEnd'==_0x16fabe['type']?_0x129743['createPositionAt'](_0x16fabe['item'],'end'):_0x129743['createPositionBefore'](_0x16fabe['item']);return _0x129743['createPositionFromPath'](_0x1d2768,_0x135c76['path'],_0x135c76['stickiness']);}function J(_0x402d27,_0x2300b9,_0x16fa30){const _0x1d87e7='elementStart'==_0x402d27['type']?_0x16fa30['createPositionAt'](_0x402d27['item'],0x0):_0x16fa30['createPositionAfter'](_0x402d27['item']);return _0x16fa30['createPositionFromPath'](_0x2300b9,_0x1d87e7['path'],_0x1d87e7['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x401f06,_0x42447a){super(_0x401f06),this['focusTracker']=new _0x486e3c(),this['keystrokes']=new _0x57bb71(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x42447a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4ceab2(this);}['render'](){super['render'](),_0x9f9bc1({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5af2a6=_0x2b42af=>_0x2b42af['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5af2a6),this['keystrokes']['set']('arrowleft',_0x5af2a6),this['keystrokes']['set']('arrowup',_0x5af2a6),this['keystrokes']['set']('arrowdown',_0x5af2a6);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x51ec79){this['revisionNameInputView']['fieldView']['element']['value']=_0x51ec79['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x28a7f2){const _0x3aed42=new _0x5592ec(this['locale'],_0x2fede8),_0x3f4c41=_0x3aed42['fieldView'];_0x3f4c41['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xa5b1ed=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x28a7f2&&(_0xa5b1ed+='\x20('+m(this['locale'],'optional')+')'),(_0x3aed42['label']=_0xa5b1ed,_0x3f4c41['on']('input',()=>{this['revisionNameInputValue']=_0x3f4c41['element']['value']['trim']();}),_0x3aed42);}}class u extends _0x5d28bb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2d9b71=this['editor'],_0x443b8b=_0x2d9b71['plugins']['get']('RevisionTracker');_0x2d9b71['ui']['componentFactory']['add']('revisionHistory',_0x3c19e5=>{const _0x2978a3=_0x50695a(_0x3c19e5),_0x343cbb=_0x2978a3['panelView']['children'],_0x125d50=new _0x57ef3b(_0x3c19e5),_0x2bf479=new _0x11d672(_0x3c19e5),_0x20c930=new te(_0x3c19e5),_0x2f3619=new _0x11d672(_0x3c19e5),_0x1572db=new te(_0x3c19e5);return _0x2978a3['bind']('isEnabled')['to'](_0x443b8b,'isReady',_0x443b8b,'isEnabled',_0x2d9b71,'isReadOnly',(_0x5edfff,_0x445835,_0x4264bf)=>_0x5edfff&&_0x445835&&!_0x4264bf),_0x2978a3['buttonView']['set']({'icon':_0xea7b21['history'],'label':m(_0x3c19e5,'Revision\x20history'),'tooltip':!0x0}),_0x20c930['set']({'label':m(_0x3c19e5,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x20c930['bind']('isEnabled')['to'](_0x443b8b,'isReady',_0x443b8b,'isEnabled',_0x2d9b71,'isReadOnly',(_0x32a593,_0x54625e,_0x25ac63)=>_0x32a593&&_0x54625e&&!_0x25ac63),_0x20c930['on']('execute',()=>this['_showDialog']()),_0x1572db['set']({'label':m(_0x3c19e5,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1572db['bind']('isEnabled')['to'](_0x443b8b,'isReady',_0x2d9b71,'isReadOnly',(_0x37b073,_0x2c4a54)=>_0x37b073&&!_0x2c4a54),_0x1572db['on']('execute',()=>{_0x2d9b71['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2978a3['isOpen']=!0x1,_0x2d9b71['editing']['view']['focus']();}),_0x2bf479['children']['add'](_0x20c930),_0x2f3619['children']['add'](_0x1572db),_0x125d50['role']='menu',_0x125d50['items']['addMany']([_0x2bf479,_0x2f3619]),_0x343cbb['add'](_0x125d50),_0x2978a3;}),_0x2d9b71['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5080f3=this['editor'],_0x397598=_0x5080f3['locale'],_0xf7f695=new _0x3764ad(_0x397598),_0x333c09=new _0x360f39(_0x397598);_0xf7f695['buttonView']['set']({'icon':_0xea7b21['history'],'label':m(_0x397598,'Revision\x20history')});const _0x53d20b=new _0x543864(_0x397598,_0xf7f695),_0x26060a=new _0x8060c1(_0x397598);_0x26060a['set']({'label':m(_0x397598,'Save\x20current\x20revision')}),_0x26060a['delegate']('execute')['to'](_0xf7f695),_0x26060a['on']('execute',()=>{this['_showDialog']();}),_0x53d20b['children']['add'](_0x26060a),_0x333c09['items']['add'](_0x53d20b);const _0x369ae3=new _0x543864(_0x397598,_0xf7f695),_0x148fb1=new _0x8060c1(_0x397598);return _0x148fb1['set']({'label':m(_0x397598,'Open\x20revision\x20history')}),_0x148fb1['delegate']('execute')['to'](_0xf7f695),_0x148fb1['on']('execute',()=>{_0x5080f3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x369ae3['children']['add'](_0x148fb1),_0x333c09['items']['add'](_0x369ae3),_0xf7f695['panelView']['children']['add'](_0x333c09),_0xf7f695;}['_showDialog'](){const _0x3d2f57=this['editor'],_0x75e59c=_0x3d2f57['locale'],_0x505f5d=_0x3d2f57['plugins']['get']('Dialog'),_0x51c8f2=_0x3d2f57['plugins']['get']('RevisionTracker');function _0x1ff4c8(_0x4a525b){_0x3d2f57['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4a525b['revisionName']?_0x4a525b['revisionNameInputView']['errorText']=m(_0x75e59c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3d2f57['plugins']['get'](l)['saveRevision']({'name':_0x4a525b['revisionName']}),_0x505f5d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1ff4c8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x505f5d['show']({'id':'revisionSave','title':m(_0x75e59c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x3d2f57['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x505f5d['hide']()},{'label':m(_0x3d2f57['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x516144){_0x516144['bind']('isEnabled')['to'](_0x51c8f2,'isReady',_0x51c8f2,'isEnabled',_0x3d2f57,'isReadOnly',(_0x542d65,_0xe513ee,_0x3da92d)=>_0x542d65&&_0xe513ee&&!_0x3da92d);},'onExecute':()=>_0x1ff4c8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x42f9bd=this['editor'],_0x26f93b=_0x42f9bd['locale'];this['_saveRevisionFormView']=new hs(_0x26f93b,_0x42f9bd['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x1f338c,_0x5bee10){super(_0x1f338c),this['_model']=_0x5bee10,this['changeId']=_0x5bee10['id'];const _0x21dcb1=this['bindTemplate'],_0x491860=m(_0x1f338c,_0x5bee10['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5bee10['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5bee10['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x21dcb1['to']('type',_0x5a7110=>'ck-revision-change__'+_0x5a7110)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x491860}]},{'text':'\x20'+_0x5bee10['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x39a396(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1ecf84){super(),this['id']=_0x1ecf84['id']||_0x1a2a42(),this['author']=_0x1ecf84['author'],this['type']=_0x1ecf84['type'],this['data']=_0x1ecf84['data']||{},this['rootName']=_0x1ecf84['rootName'],this['set']('createdAt',_0x1ecf84['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(_0x29b5d8,_0x1d9936){this['newRevisionId']=_0x29b5d8,this['oldRevisionId']=_0x1d9936,this['changes']=new _0x4e5af3();}['_setChanges'](_0x425aa3){for(const _0x2fd877 of _0x425aa3)this['changes']['add'](_0x2fd877);}}const Y={'c':_0x4dc15c,'a':_0x505159,'e':_0x40aeb3,'r':_0x2dd990,'u':_0x2c56df};class d extends _0x5d28bb{['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[_0x199de6,_0x2c03fe,j];}constructor(_0x325027){super(_0x325027),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',(_0x3d0c6b,_0x9d7b20,_0x2afb5a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5b9359=>{for(const _0x5deaa5 of this['editor']['editing']['view']['document']['roots'])_0x2afb5a?_0x5b9359['removeClass']('ck-editor__editable__overlay',_0x5deaa5):_0x5b9359['addClass']('ck-editor__editable__overlay',_0x5deaa5);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x7a9dd3=>null!==_0x7a9dd3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x334cf4,_0x1d7fff,_0x56dfcc)=>_0x334cf4&&_0x56dfcc?_0x1d7fff['changes']['getIndex'](_0x56dfcc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1d2f7d,_0x5afcdc)=>_0x1d2f7d?_0x5afcdc['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2c03fe);}['init'](){const _0x10fd0b=this['editor'],_0x266f96=new _t(_0x10fd0b,{'direction':'backward'}),_0x586d12=new _t(_0x10fd0b,{'direction':'forward'});(_0x10fd0b['commands']['add']('showPreviousChange',_0x266f96),_0x10fd0b['commands']['add']('showNextChange',_0x586d12),_0x10fd0b['commands']['add']('restoreRevision',new pt(_0x10fd0b)),this['on']('change:numberOfChanges',()=>{_0x266f96['refresh'](),_0x586d12['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x10fd0b['enableReadOnlyMode']('revision-viewer'),_0x10fd0b['plugins']['has']('WidgetToolbarRepository'))&&_0x10fd0b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xe74194){await this['loadRevisionData'](_0xe74194);const _0x3afed1={};for(const _0x2c0123 in _0xe74194['diffData']){if(_0xe74194['diffData'][_0x2c0123]['attachChange']&&!_0xe74194['diffData'][_0x2c0123]['attachChange']['isAttached'])continue;const _0x2d65ae=this['_removeRevisionMarkers'](JSON['parse'](_0xe74194['diffData'][_0x2c0123]['insertions'])),_0x5cba32=this['editor']['editing']['view']['document'],_0xa6f57c=new _0x4d5c6a(_0x5cba32,_0x2d65ae['map'](_0x36e1b5=>this['_getViewObj'](_0x36e1b5)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3afed1[_0x2c0123]=this['editor']['data']['processor']['toData'](_0xa6f57c),this['editor']['data']['processor']['useFillerType']('default');}return _0x3afed1;}async['getRevisionRootsAttributes'](_0x4fc59b){await this['loadRevisionData'](_0x4fc59b);const _0x40865={};for(const _0x51fa44 in _0x4fc59b['diffData'])_0x4fc59b['diffData'][_0x51fa44]['attachChange']&&!_0x4fc59b['diffData'][_0x51fa44]['attachChange']['isAttached']||(_0x40865[_0x51fa44]=_0x4fc59b['diffData'][_0x51fa44]['attributesAfter']||{});return _0x40865;}['_removeRevisionMarkers'](_0x56c5a2){return(_0x56c5a2=_0x56c5a2['filter'](_0xfb7eae=>!_0xfb7eae['name']||'revision-start'!==_0xfb7eae['name']&&'revision-end'!==_0xfb7eae['name']))['forEach'](_0x407c6f=>{'string'!=typeof _0x407c6f&&(_0x407c6f['children']=this['_removeRevisionMarkers'](_0x407c6f['children']),_0x407c6f['attributes']=_0x407c6f['attributes']['filter'](_0x500cc8=>!_0x500cc8[0x0]['startsWith']('data-revision-')));}),_0x56c5a2;}async['compare'](_0x2364b8,_0x443dfd,_0x2e01c3=!0x1){if(!this['isEnabled'])return;const _0x3575fb=this['diff'],_0x357380=this['repository'],_0x24233f='string'==typeof _0x2364b8?_0x357380['getRevision'](_0x2364b8):_0x2364b8,_0x42b2e4='string'==typeof _0x443dfd?_0x357380['getRevision'](_0x443dfd):_0x443dfd,_0x4a1219=_0x24233f['id'],_0x8666ad=_0x42b2e4?_0x42b2e4['id']:null;if(!_0x2e01c3&&this['diff']&&this['diff']['newRevisionId']===_0x4a1219&&this['diff']['oldRevisionId']===_0x8666ad)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4a1219,_0x8666ad);const _0x34b43d=this['_getRevisionsRange'](_0x24233f,_0x42b2e4,!0x0)['map'](_0x44dbad=>this['loadRevisionData'](_0x44dbad));return _0x34b43d['push'](new Promise(_0x37d28f=>{setTimeout(_0x37d28f,0x14);})),Promise['all'](_0x34b43d)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x245796=this['_getDiff'](_0x4a1219,_0x8666ad);for(const _0x4a4d00 of _0x245796['changes'])this['_changeIdToChange']['set'](_0x4a4d00['id'],_0x4a4d00);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3d32b5=>{for(const _0x446129 of this['editor']['model']['document']['getRootNames']())_0x3d32b5['detachRoot'](_0x446129);for(const _0x36444c of Object['keys'](_0x245796['model'])){const _0x1c35b3=_0x3d32b5['addRoot'](_0x36444c);for(const _0x2a25a8 of Object['keys'](_0x245796['attributes'][_0x36444c]))_0x3d32b5['setAttribute'](_0x2a25a8,_0x245796['attributes'][_0x36444c][_0x2a25a8],_0x1c35b3);_0x3d32b5['insert'](_0x245796['model'][_0x36444c],_0x1c35b3,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x245796['changes'])),this['isReady']=!0x0;})['catch'](_0x2f49ff=>{console['error'](_0x2f49ff),this['_cleanUp'](),_0x3575fb&&(this['diff']=_0x3575fb),this['isReady']=!0x0;});}['addRevisionData'](_0x2d4ea0,_0x1b076b){const _0x42f753=this['repository']['createRevision'](_0x2d4ea0);return _0x42f753['on']('_update',(_0x59f009,_0x455b26,_0x30433f)=>_0x1b076b(_0x455b26,_0x30433f,_0x42f753)),this['repository']['addRevision'](_0x42f753),_0x42f753;}['loadRevisionData'](_0x35873f){if(!_0x35873f||_0x35873f['diffData'])return Promise['resolve']();{const _0x17cd40=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x17cd40,'revisionId':_0x35873f['id']})['then'](_0xbc8412=>{_0x35873f['_update']({'diffData':_0xbc8412['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},_0xf429b7=>{for(const _0x45cf51 of this['editor']['model']['document']['getRootNames']())_0xf429b7['detachRoot'](_0x45cf51);});}['_sortAndFilterDiffChanges'](_0x4f7d98){const _0x49f4ab=[],_0x57bb93=new Map();for(const _0x472532 of this['editor']['model']['document']['getRootNames']()){const _0xd0057c=this['editor']['editing']['view']['getDomRoot'](_0x472532);if(!_0xd0057c)continue;const _0x2f2e23=_0xd0057c['getClientRects']()['item'](0x0);_0x2f2e23&&(_0x49f4ab['push'](_0x472532),_0x57bb93['set'](_0x472532,_0x2f2e23));}return _0x49f4ab['sort']((_0x3ffd29,_0x167163)=>{const _0x15735a=_0x57bb93['get'](_0x3ffd29),_0x2405cf=_0x57bb93['get'](_0x167163);return _0x15735a['y']-_0x2405cf['y']||_0x15735a['x']-_0x2405cf['x'];}),(_0x4f7d98=_0x4f7d98['filter'](_0x11b5a9=>_0x49f4ab['includes'](_0x11b5a9['rootName'])))['sort']((_0x12f2a,_0x767107)=>_0x49f4ab['indexOf'](_0x12f2a['rootName'])-_0x49f4ab['indexOf'](_0x767107['rootName'])),_0x4f7d98;}['_makeTape'](_0x4842b1){const _0xf04939=Array['from'](_0x4842b1['markers'])['filter'](([_0x301146,_0x3b9d28])=>_0x301146['startsWith']('revision:')&&!_0x3b9d28['isCollapsed']),_0x120392=Array['from'](this['editor']['model']['createRangeIn'](_0x4842b1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xf04939['length'])for(const _0x1d43f0 of _0x120392){const [_0x531dbf,_0x13cfbf]=_0xf04939[0x0],[,_0x24ff64,_0x1ee593]=_0x531dbf['split'](':');if(_0x13cfbf['end']['isEqual'](_0x1d43f0['nextPosition'])&&_0xf04939['shift'](),(_0x1d43f0['previousPosition']['isEqual'](_0x13cfbf['start'])||_0x1d43f0['previousPosition']['isAfter'](_0x13cfbf['start']))&&('insertion'==_0x24ff64?_0x1d43f0['isAdded']={'userId':_0x1ee593}:'deletion'==_0x24ff64&&(_0x1d43f0['isRemoved']={'userId':_0x1ee593})),0x0==_0xf04939['length'])break;}return _0x120392;}['_refreshStartEndIndex'](_0x26d661){const _0x4da058=new Map();for(let _0x4575e3=0x0;_0x4575e3<_0x26d661['length'];_0x4575e3++)'text'===_0x26d661[_0x4575e3]['type']?(_0x26d661[_0x4575e3]['item']['startIndex']=_0x4575e3,_0x26d661[_0x4575e3]['item']['endIndex']=_0x4575e3):('elementStart'===_0x26d661[_0x4575e3]['type']?_0x26d661[_0x4575e3]['item']['startIndex']=_0x4575e3:'elementEnd'===_0x26d661[_0x4575e3]['type']&&(_0x26d661[_0x4575e3]['item']['endIndex']=_0x4575e3),_0x4da058['set'](_0x26d661[_0x4575e3]['id'],_0x4575e3));for(const _0x240556 of _0x4da058['values']())'elementStart'===_0x26d661[_0x240556]['type']?_0x26d661[_0x240556]['item']['endIndex']=_0x4da058['get'](_0x26d661[_0x240556]['pairId']):'elementEnd'===_0x26d661[_0x240556]['type']&&(_0x26d661[_0x240556]['item']['startIndex']=_0x4da058['get'](_0x26d661[_0x240556]['pairId']));}['_processTape'](_0x46e9b3){for(let _0x5f5db6=0x0;_0x5f5db6<_0x46e9b3['length'];_0x5f5db6++){if('elementStart'===_0x46e9b3[_0x5f5db6]['type'])_0x46e9b3[_0x5f5db6]['item']['startIndex']=_0x5f5db6;else{if('elementEnd'===_0x46e9b3[_0x5f5db6]['type']){_0x46e9b3[_0x5f5db6]['item']['endIndex']=_0x5f5db6;const _0x53afdd=_0x46e9b3[_0x5f5db6]['item']['startIndex'];_0x46e9b3[_0x53afdd]['pairId']=_0x46e9b3[_0x5f5db6]['id'],_0x46e9b3[_0x5f5db6]['pairId']=_0x46e9b3[_0x53afdd]['id'];}else _0x46e9b3[_0x5f5db6]['item']['startIndex']=_0x5f5db6,_0x46e9b3[_0x5f5db6]['item']['endIndex']=_0x5f5db6,_0x46e9b3[_0x5f5db6]['pairId']=null;}_0x46e9b3[_0x5f5db6]['markersStart']||(_0x46e9b3[_0x5f5db6]['markersStart']=[],_0x46e9b3[_0x5f5db6]['markersEnd']=[]);}}['_markInsertions'](_0x8fe75,_0x546ea2){const _0x5c8d57=_0x8fe75['filter'](_0x39d183=>!_0x39d183['isAdded']);for(let _0x55c456=0x0;_0x55c456<_0x546ea2['length'];_0x55c456++)_0x546ea2[_0x55c456]['isAdded']&&(_0x5c8d57[_0x55c456]['isAdded']=_0x546ea2[_0x55c456]['isAdded']);}['_makeModelFromViewString'](_0x3c5ebe){const _0x1ea846=JSON['parse'](_0x3c5ebe),_0x86bb93=this['editor']['editing']['view']['document'],_0x5b5664=new _0x4d5c6a(_0x86bb93,_0x1ea846['map'](_0x4bc118=>this['_getViewObj'](_0x4bc118)));return this['editor']['data']['toModel'](_0x5b5664);}['_getViewObj'](_0x281f3b){const _0x303cdf=this['editor']['editing']['view']['document'];if('string'==typeof _0x281f3b)return new _0x5bbf56(_0x303cdf,_0x281f3b);{const _0x2951ba=_0x281f3b['children']['map'](_0x46c20b=>this['_getViewObj'](_0x46c20b));return new(Y[_0x281f3b['type']]||_0x57bb1e)(_0x303cdf,_0x281f3b['name'],_0x281f3b['attributes'],_0x2951ba);}}['_getDiff'](_0x3f6776,_0x41863c=null){const _0x526062=this['repository']['getRevision'](_0x3f6776),_0x140298=_0x41863c?this['repository']['getRevision'](_0x41863c):null,_0x487e60=this['_getRevisionsRange'](_0x526062,_0x140298),_0x373ee1=_0x487e60[_0x487e60['length']-0x1],_0xcadaa0=new Map(),_0x6c0093={'model':{},'attributes':{},'changes':[]},_0x14650b=new Set(),_0x4fb048=new Map();for(let _0x1e9c21=_0x487e60['length']-0x1;_0x1e9c21>=0x0;_0x1e9c21--){const _0x2d4ef7=_0x487e60[_0x1e9c21];for(const _0x30d0e8 of Object['keys'](_0x2d4ef7['diffData']))if(_0x2d4ef7['diffData'][_0x30d0e8]['attachChange']){const _0x14d522=_0x2d4ef7['diffData'][_0x30d0e8]['attachChange'];_0x14d522['isAttached']?(_0x14650b['add'](_0x30d0e8),_0x4fb048['has'](_0x30d0e8)&&_0x4fb048['get'](_0x30d0e8)['userId']==_0x14d522['userId']?_0x4fb048['delete'](_0x30d0e8):_0x4fb048['set'](_0x30d0e8,_0x14d522)):_0x4fb048['has'](_0x30d0e8)?(_0x14650b['delete'](_0x30d0e8),_0x4fb048['delete'](_0x30d0e8)):(_0x14650b['add'](_0x30d0e8),_0x4fb048['set'](_0x30d0e8,_0x14d522));}else _0x14650b['add'](_0x30d0e8);}for(const _0x2e84b4 of _0x14650b){const _0x98ec0a=_0x4fb048['has'](_0x2e84b4)&&!_0x4fb048['get'](_0x2e84b4)['isAttached'];let _0x31c56a=_0x98ec0a?_0x487e60['length']-0x1:0x0;const _0xfc36e2=_0x98ec0a?-0x1:0x1;for(;_0x487e60[_0x31c56a];){const _0x48c830=_0x487e60[_0x31c56a];if(_0x48c830['diffData'][_0x2e84b4]){const _0x3aeaf3=_0x98ec0a?_0x48c830['diffData'][_0x2e84b4]['attributesBefore']:_0x48c830['diffData'][_0x2e84b4]['attributesAfter'];_0x6c0093['attributes'][_0x2e84b4]=_0x3aeaf3?_0x556891(_0x3aeaf3):{};break;}_0x31c56a+=_0xfc36e2;}}for(const _0x18841d of _0x487e60){_0x18841d['model']={};for(const _0x1e5b47 of _0x18841d['authors'])_0xcadaa0['set'](_0x1e5b47['id'],_0x1e5b47);for(const _0x383427 of _0x14650b){const _0x21e475=_0x18841d['diffData'][_0x383427]?_0x18841d['diffData'][_0x383427]['insertions']:'[]',_0x258275=_0x18841d['diffData'][_0x383427]?_0x18841d['diffData'][_0x383427]['deletions']:'[]';_0x18841d['model'][_0x383427]={'insertions':this['_makeModelFromViewString'](_0x21e475),'deletions':this['_makeModelFromViewString'](_0x258275)};}}for(const _0x1c8b2b of _0x14650b){let _0x425f5f=null,_0x4e4a57=0x0;const _0x474996=new Map(Array['from'](_0x526062['model'][_0x1c8b2b]['insertions']['markers'])['filter'](([_0x442c7c])=>!_0x442c7c['startsWith']('revision:')));let _0x3a6846=0x0;for(const _0x57b093 of _0x487e60){const _0x12a4f0=this['_makeTape'](_0x57b093['model'][_0x1c8b2b]['insertions']);_0x57b093==_0x526062?(_0x425f5f=_0x12a4f0,_0x4e4a57=_0x425f5f['length'],_0x425f5f['forEach'](_0x30e214=>{_0x30e214['id']=_0x3a6846++;}),this['_processTape'](_0x425f5f)):this['_markInsertions'](_0x425f5f,_0x12a4f0);const _0x59239e=_0x425f5f['filter'](_0x2be4ef=>!_0x2be4ef['isAdded'])['map'](_0x798b99=>_0x798b99['id']);let _0x5b2b4b=0x0;const _0x5adef1=this['_makeTape'](_0x57b093['model'][_0x1c8b2b]['deletions']);_0x5adef1['forEach'](_0x61cd4e=>{_0x61cd4e['isRemoved']?_0x61cd4e['id']=_0x4e4a57++:_0x61cd4e['id']=_0x59239e[_0x5b2b4b++];}),this['_processTape'](_0x5adef1),this['_setDistance'](_0x425f5f,'isAdded'),this['_setDistance'](_0x5adef1,'isRemoved'),_0x57b093==_0x526062&&this['_markMarkers'](_0x425f5f,_0x474996),_0x425f5f=this['_joinTapes'](_0x425f5f,_0x5adef1),this['_refreshStartEndIndex'](_0x425f5f),this['_setDistance'](_0x425f5f,'isRemoved');}_0x425f5f=_0x425f5f['filter'](_0x38fe15=>!(_0x38fe15['isAdded']&&_0x38fe15['isRemoved']));const _0x4d632e=new Map(_0x373ee1['model'][_0x1c8b2b]['deletions']['markers']),_0x3fb7e6=new Set(_0x474996['keys']());for(const _0x46fa64 of _0x4d632e['keys']())_0x3fb7e6['delete'](_0x46fa64);this['_markSuggestions'](_0x425f5f,_0x3fb7e6),this['_fixObsoleteTags'](_0x425f5f),_0x425f5f=this['_removeMissingPairs'](_0x425f5f),_0x425f5f=this['_markMismatchedRemovedTags'](_0x425f5f),_0x425f5f=this['_removeUnsupportedChanges'](_0x425f5f);const {root:_0x5afeaa,changes:_0x4a08d4}=this['_makeModelFromTape'](_0x425f5f,_0xcadaa0,_0x1c8b2b);_0x6c0093['model'][_0x1c8b2b]=_0x5afeaa;const _0x1e6dbe=_0x4fb048['get'](_0x1c8b2b);if(_0x1e6dbe){const _0x4d0f6d=_0xcadaa0['get'](_0x1e6dbe['userId']),_0x124709=new r({'author':_0x4d0f6d,'type':_0x1e6dbe['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1c8b2b});_0x4a08d4['unshift'](_0x124709),_0x6c0093['attributes'][_0x1c8b2b]['revisionHistoryAttachChange']=_0x124709['id'];}_0x6c0093['changes']=_0x6c0093['changes']['concat'](_0x4a08d4);}return _0x6c0093;}['_markMarkers'](_0x1a0c78,_0x4e9d05){for(let _0x425630=0x0;_0x425630<_0x1a0c78['length'];_0x425630++)for(const [_0x44499e,_0x51d122]of _0x4e9d05)_0x51d122['start']['isEqual'](_0x1a0c78[_0x425630]['previousPosition'])&&_0x1a0c78[_0x425630]['markersStart']['push'](_0x44499e),_0x51d122['end']['isEqual'](_0x1a0c78[_0x425630]['nextPosition'])&&_0x1a0c78[_0x425630]['markersEnd']['push'](_0x44499e);}['_joinTapes'](_0xb1d31,_0x4448a0){let _0x9eaf8=[],_0x1c204c=0x0,_0x5757dc=0x0;for(;_0x1c204c<_0xb1d31['length']||_0x5757dc<_0x4448a0['length'];){const _0x49d6ff=_0xb1d31[_0x1c204c]||{},_0x139c8c=_0x4448a0[_0x5757dc]||{};if(_0x49d6ff['id']==_0x139c8c['id'])_0x1c204c++,_0x5757dc++,_0x9eaf8['push'](_0x49d6ff);else{if(_0x139c8c['isRemoved']&&_0x49d6ff['isAdded']){const {commonTape:_0x45eff1,iEnd:_0x3d0e8e,jEnd:_0xcedbdb}=this['_threeWayMerge'](_0xb1d31,_0x1c204c,_0x4448a0,_0x5757dc);_0x9eaf8=_0x9eaf8['concat'](_0x45eff1),_0x1c204c=_0x3d0e8e,_0x5757dc=_0xcedbdb;}else _0x139c8c['isRemoved']?(_0x5757dc++,_0x9eaf8['push'](_0x139c8c)):(_0x1c204c++,_0x9eaf8['push'](_0x49d6ff));}}return _0x9eaf8;}['_markSuggestions'](_0x432d49,_0x11f3aa){const _0x164c87=[];for(let _0x19e144=0x0;_0x19e144<_0x432d49['length'];_0x19e144++){for(let _0x501686=0x0;_0x501686<_0x432d49[_0x19e144]['markersStart']['length'];_0x501686++){const _0x50d7b1=_0x432d49[_0x19e144]['markersStart'][_0x501686];if(!_0x11f3aa['has'](_0x50d7b1))continue;const {group:_0x421cea,type:_0x3ec01c,authorId:_0x438f1c}=_0x1a60df(_0x50d7b1);'revision-suggestion'!=_0x421cea||'insertion'!=_0x3ec01c&&'deletion'!=_0x3ec01c||(_0x164c87['unshift']({'type':_0x3ec01c,'name':_0x50d7b1,'userId':_0x438f1c}),_0x432d49[_0x19e144]['markersStart']['splice'](_0x501686,0x1),_0x501686--);}_0x3f57d1(_0x432d49[_0x19e144]);for(let _0x2b020f=0x0;_0x2b020f<_0x432d49[_0x19e144]['markersEnd']['length'];_0x2b020f++){const _0x367f21=_0x432d49[_0x19e144]['markersEnd'][_0x2b020f];if(!_0x11f3aa['has'](_0x367f21))continue;const {group:_0x38ce6f,type:_0xa1ca58}=_0x1a60df(_0x367f21);if('revision-suggestion'!=_0x38ce6f||'insertion'!=_0xa1ca58&&'deletion'!=_0xa1ca58)continue;_0x432d49[_0x19e144]['markersEnd']['splice'](_0x2b020f,0x1),_0x2b020f--;const _0x466a40=_0x164c87['findIndex'](_0x413dfe=>_0x413dfe['name']==_0x367f21);_0x466a40>-0x1&&_0x164c87['splice'](_0x466a40,0x1);}}function _0x1a60df(_0x567d5a){const _0x5aac31=_0x567d5a['split'](':');return{'group':_0x5aac31[0x0],'type':_0x5aac31[0x1],'subType':_0x5aac31['length']>=0x5?_0x5aac31[0x2]:null,'id':_0x5aac31['length']<0x5?_0x5aac31[0x2]:_0x5aac31[0x3],'authorId':_0x5aac31['length']<0x5?_0x5aac31[0x3]:_0x5aac31[0x4],'markerCount':0x6==_0x5aac31['length']?_0x5aac31[0x5]:null};}function _0x3f57d1(_0x48cadb){for(let _0x5e751e=0x0;_0x5e751e<_0x164c87['length'];_0x5e751e++){if(_0x48cadb['isAdded']&&'insertion'==_0x164c87[_0x5e751e]['type'])return _0x48cadb['isAddSuggestion']=_0x164c87[_0x5e751e],void delete _0x48cadb['isAdded'];if(!_0x48cadb['isAdded']&&!_0x48cadb['isRemoved']&&'deletion'==_0x164c87[_0x5e751e]['type'])return void(_0x48cadb['isRemoveSuggestion']=_0x164c87[_0x5e751e]);}}}['_setDistance'](_0x819ae,_0x18c125){let _0x9ed70e=0x0,_0x3759b6=!0x1;const _0x5e928=new Map();for(const _0x646d28 of _0x819ae)_0x646d28[_0x18c125]?_0x3759b6&&(_0x9ed70e++,_0x3759b6=!0x1):(_0x9ed70e++,_0x3759b6=!0x0),_0x5e928['set'](_0x646d28['id'],_0x9ed70e);for(let _0x753f25=0x0;_0x753f25<_0x819ae['length'];_0x753f25++){if('isRemoved'==_0x18c125&&_0x819ae[_0x753f25]['isAdded']||'isAdded'==_0x18c125&&_0x819ae[_0x753f25]['isRemoved'])continue;if('text'==_0x819ae[_0x753f25]['type']){_0x819ae[_0x753f25]['distance']=0x0;continue;}const _0x2096c3=_0x5e928['get'](_0x819ae[_0x753f25]['pairId']),_0x2d26c1=_0x5e928['get'](_0x819ae[_0x753f25]['id']);_0x819ae[_0x753f25]['distance']=_0x2096c3-_0x2d26c1;}}['_getRevisionsRange'](_0x584b13,_0x1c65e8,_0x16c931=!0x1){const _0x10395a=[];let _0x336c8c=this['repository']['getIndex'](_0x584b13),_0x125af4=this['repository']['getIndex'](_0x1c65e8);for(-0x1==_0x125af4&&(_0x125af4=this['repository']['_revisions']['length'],_0x16c931=!0x1);_0x336c8c<_0x125af4;)_0x10395a['push'](this['repository']['getRevision'](_0x336c8c)),_0x336c8c++;return _0x16c931&&_0x10395a['push'](this['repository']['getRevision'](_0x336c8c)),_0x10395a;}['_threeWayMerge'](_0x4bd2eb,_0x42647d,_0x32adb3,_0x180445){const _0x41cd55=this['editor']['model']['schema'];let _0x3c1490=_0x42647d;for(;_0x4bd2eb[_0x3c1490]&&_0x4bd2eb[_0x3c1490]['isAdded'];)_0x3c1490++;let _0x13b1d5=_0x180445;for(;_0x32adb3[_0x13b1d5]&&_0x32adb3[_0x13b1d5]['isRemoved'];)_0x13b1d5++;_0x3e5a9d(_0x4bd2eb,_0x42647d,_0x3c1490),_0x3e5a9d(_0x32adb3,_0x180445,_0x13b1d5);const _0x398556=_0x32adb3['slice'](_0x180445,_0x13b1d5)['concat'](_0x4bd2eb['slice'](_0x42647d,_0x3c1490));return _0x398556['sort']((_0x3096e5,_0x308769)=>_0x3096e5['side']!=_0x308769['side']?_0x3096e5['side']-_0x308769['side']:_0x3096e5['level']!=_0x308769['level']?_0x3096e5['level']-_0x308769['level']:_0x3096e5['distance']!=_0x308769['distance']?_0x308769['distance']-_0x3096e5['distance']:!!_0x3096e5['isAdded']!=!!_0x308769['isAdded']?-0x1==_0x3096e5['side']||0x0==_0x3096e5['side']?_0x3096e5['isAdded']?-0x1:0x1:_0x3096e5['isAdded']?0x1:-0x1:_0x3096e5['index']-_0x308769['index']),{'commonTape':_0x398556,'iEnd':_0x3c1490,'jEnd':_0x13b1d5};function _0x3e5a9d(_0x5f1403,_0x5ed8b3,_0x4310dd){let _0x5c7cd0=-0x1,_0x5d016c=Number['POSITIVE_INFINITY'],_0x53a585=!0x0;for(let _0x14a423=_0x5ed8b3;_0x14a423<_0x4310dd;_0x14a423++)if(_0x41cd55['isInline'](_0x5f1403[_0x14a423]['item'])||(_0x53a585=!0x1),_0x5f1403[_0x14a423]['item']['startIndex']<_0x5ed8b3&&(_0x5c7cd0=_0x14a423),_0x5f1403[_0x14a423]['item']['endIndex']>=_0x4310dd){_0x5d016c=_0x14a423;break;}_0x53a585&&(_0x5c7cd0=_0x4310dd-0x1);for(let _0x19e08f=_0x5ed8b3;_0x19e08f<_0x4310dd;_0x19e08f++)_0x5f1403[_0x19e08f]['side']=_0x19e08f<=_0x5c7cd0?-0x1:_0x19e08f<_0x5d016c?0x0:0x1,_0x5f1403[_0x19e08f]['index']=_0x19e08f;let _0x3ab361=0x0;for(let _0x542777=_0x5ed8b3;_0x542777<=_0x5c7cd0;_0x542777++)0x0==_0x5f1403[_0x542777]['distance']?_0x5f1403[_0x542777]['level']=_0x3ab361:(_0x3ab361++,_0x5f1403[_0x542777]['level']=_0x3ab361,_0x3ab361++);for(let _0x450904=_0x5ed8b3;_0x450904<_0x4310dd;_0x450904++)0x0==_0x5f1403[_0x450904]['side']&&(_0x5f1403[_0x450904]['level']=_0x3ab361);_0x3ab361=0x0;for(let _0x436ef1=_0x4310dd-0x1;_0x436ef1>=_0x5d016c;_0x436ef1--)0x0==_0x5f1403[_0x436ef1]['distance']?_0x5f1403[_0x436ef1]['level']=_0x3ab361:(_0x3ab361--,_0x5f1403[_0x436ef1]['level']=_0x3ab361,_0x3ab361--);}}['_fixObsoleteTags'](_0x2c0cd0){const _0xd27172=new Map(),_0x564a38=this['editor']['model']['schema'];for(let _0x49f5c2=0x1;_0x49f5c2<_0x2c0cd0['length'];_0x49f5c2++){let _0x3295c3,_0x250ae1,_0x5d960d;const _0x54016a=_0x2c0cd0[_0x49f5c2],_0x1d25ff=_0x2c0cd0[_0x49f5c2-0x1];if('text'==_0x54016a['type'])continue;if(_0x54016a['type']!=_0x1d25ff['type'])continue;if(!_0x564a38['isBlock'](_0x1d25ff['item'])||_0x564a38['isLimit'](_0x1d25ff['item']))continue;if(!_0x564a38['isBlock'](_0x54016a['item'])||_0x564a38['isLimit'](_0x54016a['item']))continue;if((_0x2c0cd0[_0x49f5c2]['isAdded']||_0x2c0cd0[_0x49f5c2]['isAddSuggestion'])&&_0x2c0cd0[_0x49f5c2-0x1]['isRemoved'])_0x3295c3=_0x2c0cd0[_0x49f5c2],_0x250ae1=_0x2c0cd0[_0x49f5c2-0x1],_0x5d960d=_0x49f5c2-0x1;else{if(!_0x2c0cd0[_0x49f5c2]['isRemoved']||!_0x2c0cd0[_0x49f5c2-0x1]['isAdded']&&!_0x2c0cd0[_0x49f5c2-0x1]['isAddSuggestion'])continue;_0x3295c3=_0x2c0cd0[_0x49f5c2-0x1],_0x250ae1=_0x2c0cd0[_0x49f5c2],_0x5d960d=_0x49f5c2;}const _0x875b9e=_0x3295c3['level']==_0x250ae1['level'],_0x4f7c4f=Math['abs'](_0x3295c3['level'])<Math['abs'](_0x250ae1['level'])&&0x0==_0x250ae1['distance'];(_0x875b9e||_0x4f7c4f)&&(_0xd27172['set'](_0x250ae1['id'],_0x3295c3['id']),_0x2c0cd0['splice'](_0x5d960d,0x1),_0x49f5c2--,_0x3295c3['isAdded']=!0x1);}for(let _0x64c339=0x0;_0x64c339<_0x2c0cd0['length'];_0x64c339++)_0xd27172['has'](_0x2c0cd0[_0x64c339]['pairId'])&&(_0x2c0cd0[_0x64c339]['pairId']=_0xd27172['get'](_0x2c0cd0[_0x64c339]['pairId']));}['_removeMissingPairs'](_0x576ad3){const _0x1f230b=new Set(_0x576ad3['map'](_0x4e8edd=>_0x4e8edd['id']));for(let _0x3381e0=0x0;_0x3381e0<_0x576ad3['length'];_0x3381e0++)_0x1f230b['has'](_0x576ad3[_0x3381e0]['pairId'])||0x0==_0x576ad3[_0x3381e0]['distance']||(_0x576ad3[_0x3381e0]['isIncorrect']=!0x0);return _0x576ad3['filter'](_0x128ac2=>!_0x128ac2['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4eb07e){const _0x3c232b=new Set();for(let _0x2fc738=0x0;_0x2fc738<_0x4eb07e['length'];_0x2fc738++){if(_0x3c232b['has'](_0x4eb07e[_0x2fc738]['id'])&&_0x4eb07e[_0x2fc738]['isRemoved']&&(_0x4eb07e[_0x2fc738]['isIncorrect']=!0x0),_0x4eb07e[_0x2fc738]['isIncorrect'])continue;if(0x0==_0x4eb07e[_0x2fc738]['distance'])continue;if('elementStart'!=_0x4eb07e[_0x2fc738]['type'])continue;if(null==_0x4eb07e[_0x2fc738]['pairId'])continue;let _0xba7e76=_0x2fc738+0x1,_0xcad449=0x0;for(;_0x4eb07e[_0xba7e76]['id']!=_0x4eb07e[_0x2fc738]['pairId'];)'elementStart'==_0x4eb07e[_0xba7e76]['type']?_0xcad449++:'elementEnd'==_0x4eb07e[_0xba7e76]['type']&&_0xcad449--,_0xba7e76++;if(0x0!=_0xcad449){if(_0x4eb07e[_0x2fc738]['isRemoved'])_0x4eb07e[_0x2fc738]['isIncorrect']=!0x0;else{for(;_0xba7e76!=_0x2fc738;)_0x4eb07e[_0xba7e76]['isRemoved']&&0x0!=_0x4eb07e[_0xba7e76]['distance']&&(_0x4eb07e[_0xba7e76]['isIncorrect']=!0x0,_0x3c232b['add'](_0x4eb07e[_0xba7e76]['pairId'])),_0xba7e76--;}}}return _0x4eb07e['filter'](_0x3d7f7f=>!_0x3d7f7f['isIncorrect']);}['_removeUnsupportedChanges'](_0x584dc4){const _0x14508f=this['editor']['model']['schema'];for(let _0x497d36=0x0;_0x497d36<_0x584dc4['length'];_0x497d36++){if(!(_0x584dc4[_0x497d36]['isAdded']||_0x584dc4[_0x497d36]['isAddSuggestion']||_0x584dc4[_0x497d36]['isRemoved']||_0x584dc4[_0x497d36]['isRemoveSuggestion']))continue;if(0x0==_0x584dc4[_0x497d36]['distance'])continue;const _0x59e89f=_0x584dc4[_0x497d36]['item'];_0x14508f['isBlock'](_0x59e89f)||_0x14508f['isLimit'](_0x59e89f)||(_0x584dc4[_0x497d36]['isAdded']&&delete _0x584dc4[_0x497d36]['isAdded'],_0x584dc4[_0x497d36]['isAddSuggestion']&&delete _0x584dc4[_0x497d36]['isAddSuggestion'],_0x584dc4[_0x497d36]['isRemoveSuggestion']&&delete _0x584dc4[_0x497d36]['isRemoveSuggestion'],_0x584dc4[_0x497d36]['isRemoved']&&(_0x584dc4[_0x497d36]['isIncorrect']=!0x0));}return _0x584dc4['filter'](_0x11a9cd=>!_0x11a9cd['isIncorrect']);}['_makeModelFromTape'](_0x38f3b1,_0x230f01,_0x2d0221){const _0x290d97=new mt(),_0x4e7c6e=[],_0x231053=new Map(),_0x5361f6=this['editor']['model'],_0x2fb838=_0x5361f6['schema'],_0x1c04db=[_0x290d97],_0x1a3450={},_0x4f3075={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x245a35=null;const _0x118acd=[0x0];for(let _0x26bff8=0x0;_0x26bff8<_0x38f3b1['length'];_0x26bff8++)if('elementStart'===_0x38f3b1[_0x26bff8]['type']){_0x38f3b1[_0x26bff8]['previousPosition']=_0x5361f6['createPositionFromPath'](_0x290d97,_0x118acd);const _0x3d3916=new ft(_0x38f3b1[_0x26bff8]['item']['name'],_0x38f3b1[_0x26bff8]['item']['getAttributes']());_0x1c04db[0x0]['_appendChild'](_0x3d3916),_0x118acd['push'](0x0),_0x1c04db['unshift'](_0x3d3916),_0x38f3b1[_0x26bff8]['nextPosition']=_0x5361f6['createPositionFromPath'](_0x290d97,_0x118acd);}else'elementEnd'===_0x38f3b1[_0x26bff8]['type']?(_0x1c04db['shift'](),_0x38f3b1[_0x26bff8]['previousPosition']=_0x5361f6['createPositionFromPath'](_0x290d97,_0x118acd),_0x118acd['pop'](),_0x118acd[_0x118acd['length']-0x1]++,_0x38f3b1[_0x26bff8]['nextPosition']=_0x5361f6['createPositionFromPath'](_0x290d97,_0x118acd)):(_0x38f3b1[_0x26bff8]['previousPosition']=_0x5361f6['createPositionFromPath'](_0x290d97,_0x118acd),_0x245a35?_0x245a35['_data']+=_0x38f3b1[_0x26bff8]['item']['data']:_0x245a35=new wt(_0x38f3b1[_0x26bff8]['item']['data'],_0x38f3b1[_0x26bff8]['item']['getAttributes']()),_0x38f3b1[_0x26bff8+0x1]&&'text'===_0x38f3b1[_0x26bff8+0x1]['type']&&_0x5e0e6f(_0x245a35,_0x38f3b1[_0x26bff8+0x1]['item'])||(_0x1c04db[0x0]['_appendChild'](_0x245a35),_0x245a35=null),_0x118acd[_0x118acd['length']-0x1]+=_0x38f3b1[_0x26bff8]['item']['offsetSize'],_0x38f3b1[_0x26bff8]['nextPosition']=_0x5361f6['createPositionFromPath'](_0x290d97,_0x118acd));for(let _0x2326ae=0x0;_0x2326ae<_0x38f3b1['length'];_0x2326ae++){const _0x411afb=_0x38f3b1[_0x2326ae]['previousPosition'],_0x4e92f4=_0x38f3b1[_0x2326ae]['nextPosition'];for(const _0x3639e9 of _0x38f3b1[_0x2326ae]['markersStart'])_0x231053['set'](_0x3639e9,{'start':_0x411afb,'end':null});_0x3b6c05('isRemoveSuggestion',_0x2326ae,_0x411afb,_0x4e92f4),_0x3b6c05('isAddSuggestion',_0x2326ae,_0x411afb,_0x4e92f4),_0x3b6c05('isRemoved',_0x2326ae,_0x411afb,_0x4e92f4),_0x3b6c05('isAdded',_0x2326ae,_0x411afb,_0x4e92f4);for(const _0x3c3cc8 of _0x38f3b1[_0x2326ae]['markersEnd']){_0x231053['get'](_0x3c3cc8)['end']=_0x4e92f4;}}for(const [_0x52e04c,_0x25a84a]of _0x231053){const _0x180aff=this['editor']['model']['createRange'](_0x25a84a['start'],_0x25a84a['end']);_0x290d97['markers']['set'](_0x52e04c,_0x180aff);}return _0x4e7c6e['sort']((_0x433b6e,_0x3bed4a)=>{const _0x13474e=_0x290d97['markers']['get']('revision:'+_0x433b6e['id']),_0x42c551=_0x290d97['markers']['get']('revision:'+_0x3bed4a['id']);return _0x13474e['start']['isBefore'](_0x42c551['start'])?-0x1:_0x13474e['start']['isAfter'](_0x42c551['start'])?0x1:_0x13474e['end']['isBefore'](_0x42c551['end'])?-0x1:_0x13474e['end']['isAfter'](_0x42c551['end'])?0x1:'add'===_0x433b6e['type']?-0x1:0x1;}),{'root':_0x290d97,'changes':_0x4e7c6e};function _0x3b6c05(_0x25c49b,_0x163cdc,_0x2467a9,_0x5ee4b5){const _0x140f5e=!!_0x38f3b1[_0x163cdc][_0x25c49b],_0x334f9b=_0x140f5e?_0x38f3b1[_0x163cdc][_0x25c49b]['userId']:null,_0x242d66=_0x163cdc===_0x38f3b1['length']-0x1,_0x376353=_0x4f3075[_0x25c49b][0x0],_0x1546da=_0x2fb838['isObject'](_0x38f3b1[_0x163cdc]['item']);!_0x1a3450[_0x25c49b]&&_0x140f5e?_0x1a3450[_0x25c49b]={'start':_0x2467a9,'tapeItem':_0x38f3b1[_0x163cdc],'userId':_0x334f9b,'type':_0x25c49b}:_0x1a3450[_0x25c49b]&&!_0x140f5e?(_0x1a3450[_0x25c49b]['end']=_0x2467a9,_0x2cf986(_0x1a3450[_0x25c49b]),_0x1a3450[_0x25c49b]=null):_0x1a3450[_0x25c49b]&&_0x140f5e&&_0x1a3450[_0x25c49b]['userId']!==_0x334f9b&&(_0x1a3450[_0x25c49b]['end']=_0x2467a9,_0x376353&&_0x376353['userId']===_0x1a3450[_0x25c49b]['userId']||_0x2cf986(_0x1a3450[_0x25c49b]),_0x1a3450[_0x25c49b]={'start':_0x2467a9,'tapeItem':_0x38f3b1[_0x163cdc],'userId':_0x334f9b,'type':_0x25c49b}),_0x1a3450[_0x25c49b]&&_0x1546da&&('elementStart'!==_0x38f3b1[_0x163cdc]['type']||_0x376353&&_0x376353['userId']===_0x334f9b||_0x4f3075[_0x25c49b]['unshift']({'userId':_0x334f9b,'object':_0x38f3b1[_0x163cdc]['item'],'change':_0x1a3450[_0x25c49b]}),'elementEnd'===_0x38f3b1[_0x163cdc]['type']&&_0x376353&&_0x376353['object']===_0x38f3b1[_0x163cdc]['item']&&(_0x4f3075[_0x25c49b]['shift'](),_0x1a3450[_0x25c49b]=_0x376353['change'])),_0x1a3450[_0x25c49b]&&_0x242d66&&(_0x1a3450[_0x25c49b]['end']=_0x5ee4b5,_0x2cf986(_0x1a3450[_0x25c49b]),_0x1a3450[_0x25c49b]=null);}function _0x2cf986({start:_0xac9380,end:_0x3388db,tapeItem:_0x1defd3,userId:_0x50582e,type:_0x9ec46}){const _0x374527=_0x1defd3['item'],_0x24c2f7=_0x5361f6['schema']['isBlock'](_0x374527)&&!_0x5361f6['schema']['isLimit'](_0x374527),_0x301e95=_0xac9380['nodeAfter']==_0x3388db['parent']&&_0x3388db['isAtStart'];if(_0x24c2f7&&_0x301e95)return;const _0x5acab7=_0x5361f6['createRange'](_0xac9380,_0x3388db),_0x133816=_0x230f01['get'](_0x50582e),_0x5170d7=new r({'author':_0x133816,'type':'isAdded'==_0x9ec46||'isAddSuggestion'==_0x9ec46?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x9ec46||'isRemoveSuggestion'==_0x9ec46},'createdAt':new Date(),'rootName':_0x2d0221});_0x4e7c6e['push'](_0x5170d7),_0x290d97['markers']['set']('revision:'+_0x5170d7['id'],_0x5acab7);}function _0x5e0e6f(_0x3b6616,_0x546307){const _0x34eac3=_0x3b6616['getAttributes'](),_0x20a9ab=_0x546307['getAttributes']();for(const _0x56e3cf of _0x34eac3){if(_0x56e3cf[0x1]!==_0x546307['getAttribute'](_0x56e3cf[0x0]))return!0x1;_0x20a9ab['next']();}return _0x20a9ab['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x24fdef=>{const _0x3f73c7=_0x24fdef['markerName']['split'](':')[0x1],_0x4a3be9=this['_getChangeFromId'](_0x3f73c7);if(!_0x4a3be9)return null;const _0x205b4e='add'==_0x4a3be9['type']?'insertion':'deletion',_0xfa3fe0=['ck-suggestion-marker','ck-suggestion-marker-'+_0x205b4e];return _0x4a3be9['data']['isSuggestion']&&_0xfa3fe0['push']('ck-suggestion-marker-'+_0x205b4e+'-new'),this['activeChange']==_0x4a3be9&&_0xfa3fe0['push']('ck-suggestion-marker--active'),{'classes':_0xfa3fe0,'attributes':{'data-change-id':_0x3f73c7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5de959=>{_0x5de959['on']('element:pre',(_0x34cc6c,_0x3e6e82,_0xfbd5be)=>{const _0x65a5d8=_0x3e6e82['viewItem']['getChild'](0x0);if(!_0x65a5d8||!_0x65a5d8['is']('element','code'))return;if(!_0xfbd5be['consumable']['consume'](_0x65a5d8,{'attributes':['vid_start','vid_end']}))return;const _0x5d90d0=_0x3e6e82['modelRange']['start']['nodeAfter'];_0xfbd5be['writer']['setAttribute']('vid_start',_0x65a5d8['getAttribute']('vid_start'),_0x5d90d0),_0xfbd5be['writer']['setAttribute']('vid_end',_0x65a5d8['getAttribute']('vid_end'),_0x5d90d0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1842a6=>{_0x1842a6['on']('element',(_0x1737da,_0x40ddb7,_0x4d2b94)=>{if(!_0x4d2b94['consumable']['consume'](_0x40ddb7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x40ddb7['modelRange']['isCollapsed'])return;const _0x5f2839=_0x40ddb7['modelRange']['start']['nodeAfter'];_0x5f2839['hasAttribute']('vid_start')||_0x5f2839['hasAttribute']('vid')||(_0x4d2b94['writer']['setAttribute']('vid_start',_0x40ddb7['viewItem']['getAttribute']('vid_start'),_0x5f2839),_0x4d2b94['writer']['setAttribute']('vid_end',_0x40ddb7['viewItem']['getAttribute']('vid_end'),_0x5f2839));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2f861e=>_0x2f861e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x549d14,[,_0x5257ca])=>{['vid_start','vid_end','vid']['includes'](_0x5257ca)&&(_0x549d14['return']=!0x0,_0x549d14['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x24b57d=>{_0x24b57d['on']('attribute:vid',(_0x6aba8d,_0x1648f5,_0x53259a)=>{if('\x20'!=_0x1648f5['item']['data']||_0x1648f5['item']['parent']['maxOffset']>0x1)return;if(!_0x53259a['consumable']['consume'](_0x1648f5['item'],_0x6aba8d['name']))return;const _0x1eb9b7=_0x53259a['writer'],_0x17dd59=_0x53259a['mapper']['toViewRange'](_0x1648f5['range']);_0x1eb9b7['wrap'](_0x17dd59,_0x1eb9b7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4981f3){const _0x51018c=_0x4981f3['plugins']['get']('RevisionViewer');return(_0x394179,_0x186296,_0x314658)=>{const _0x52a621=_0x186296['markerName']['split'](':')[0x1],_0x172f9e=_0x51018c['_getChangeFromId'](_0x52a621);if(!_0x172f9e)return null;const _0x102f30='add'==_0x172f9e['type']?'split':'merge';if(!_0x314658['consumable']['test'](_0x186296['markerRange'],_0x394179['name']))return;const _0x4c1204=_0x186296['markerRange']['getWalker'](),_0x48e8c6=_0x186296['markerRange']['start'],_0xad39df=_0x4981f3['model']['schema'];let _0x33e24b=null,_0x34d704=null,_0x52bd05=!0x1,_0x44dc7a=!0x1;for(const _0x1463f2 of _0x4c1204){const _0x51b63a=_0x1463f2['item'];_0x52bd05=_0x52bd05||_0xad39df['isContent'](_0x51b63a);const _0x4db598=_0x314658['mapper']['toViewElement'](_0x51b63a);if(_0x4db598&&_0x4db598['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1463f2['type']&&(_0xad39df['isBlock'](_0x51b63a)&&!_0xad39df['isLimit'](_0x51b63a)&&(_0x51b63a['nextSibling']||_0x48e8c6['isAtEnd']?_0x33e24b&&_0x33e24b['parent']==_0x51b63a||(_0x33e24b=_0x51b63a,_0x3e1660(_0x1463f2['previousPosition']),_0x44dc7a=!0x0):_0x34d704=_0x34d704||_0x1463f2['previousPosition']));}function _0x3e1660(_0x101b9a){const _0x5867e6=_0x314658['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x102f30}),_0x20df0e=_0x314658['mapper']['toViewPosition'](_0x101b9a);_0x172f9e['data']['isSuggestion']&&_0x314658['writer']['addClass']('ck-suggestion-marker-'+_0x102f30+'-new',_0x5867e6),_0x51018c['activeChange']==_0x172f9e&&_0x314658['writer']['addClass']('ck-suggestion-marker--active',_0x5867e6),_0x314658['writer']['insert'](_0x20df0e,_0x5867e6),_0x314658['mapper']['bindElementToMarker'](_0x5867e6,_0x186296['markerName']);}_0x52bd05||_0x44dc7a||!_0x34d704||_0x3e1660(_0x34d704);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x27b1af,_0x33f191,_0xa83f0)=>{const _0xa05603=_0xa83f0['mapper']['markerNameToElements'](_0x33f191['markerName']);if(_0xa05603){for(const _0x34f3d7 of _0xa05603)(_0x34f3d7['hasClass']('ck-suggestion-marker-split')||_0x34f3d7['hasClass']('ck-suggestion-marker-merge'))&&(_0xa83f0['mapper']['unbindElementFromMarkerName'](_0x34f3d7,_0x33f191['markerName']),_0xa83f0['writer']['remove'](_0x34f3d7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4e20d7,_0x4c8980,_0x211c6a)=>{const _0x194cc8=_0x4c8980['markerName']['split'](':')[0x1],_0xf958a8=this['_getChangeFromId'](_0x194cc8);if(!_0xf958a8)return null;const _0x446dc9='add'==_0xf958a8['type']?'split':'merge';if(_0x211c6a['consumable']['test'](_0x4c8980['markerRange'],_0x4e20d7['name']))for(const _0xeb6d66 of _0x4c8980['markerRange']['getItems']()){if(!_0xeb6d66['is']('element','softBreak'))continue;const _0x37cec9=_0x211c6a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x446dc9}),_0x483755=_0x211c6a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xeb6d66));_0xf958a8['data']['isSuggestion']&&_0x211c6a['writer']['addClass']('ck-suggestion-marker-'+_0x446dc9+'-new',_0x37cec9),this['activeChange']==_0xf958a8&&_0x211c6a['writer']['addClass']('ck-suggestion-marker--active',_0x37cec9),_0x211c6a['writer']['insert'](_0x483755,_0x37cec9),_0x211c6a['mapper']['bindElementToMarker'](_0x37cec9,_0x4c8980['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x14bca4=>{for(const _0x1ab5b9 of this['editor']['model']['document']['getRootNames']()){const _0x15ede1=this['editor']['model']['document']['getRoot'](_0x1ab5b9),_0x177bc4=this['editor']['editing']['view']['document']['getRoot'](_0x1ab5b9);if(_0x177bc4){const _0x411881=_0x15ede1['getAttribute']('revisionHistoryAttachChange');if(_0x14bca4['removeAttribute']('data-change-id',_0x177bc4),_0x14bca4['removeClass']('ck-revision-history-root-add',_0x177bc4),_0x14bca4['removeClass']('ck-revision-history-root-remove',_0x177bc4),_0x14bca4['removeClass']('ck-revision-history-root--active',_0x177bc4),_0x411881){const _0x12bf12=this['_getChangeFromId'](_0x411881);if(!_0x12bf12)return null;_0x14bca4['setAttribute']('data-change-id',_0x411881,_0x177bc4),_0x14bca4['addClass']('ck-revision-history-root-'+_0x12bf12['type'],_0x177bc4),this['activeChange']==_0x12bf12&&_0x14bca4['addClass']('ck-revision-history-root--active',_0x177bc4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3af831=>'revision-comment:'+_0x3af831,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x364875=>'revision-suggestion:'+_0x364875,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x122e32=>({'name':'suggestion:'+_0x122e32,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2f2f51=>{const _0x55e021=_0x2f2f51['markerName']['split'](':')[0x1];return'insertion'!=_0x55e021&&'deletion'!=_0x55e021?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x55e021]};}}),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',(_0x358ce4,_0x379c12,_0x5d15af)=>{const _0x32895b=_0x5d15af['mapper']['markerNameToElements'](_0x379c12['markerName']);if(_0x32895b){for(const _0x58abe1 of _0x32895b)_0x58abe1['is']('uiElement')&&(_0x5d15af['mapper']['unbindElementFromMarkerName'](_0x58abe1,_0x379c12['markerName']),_0x5d15af['writer']['remove'](_0x58abe1));}},{'priority':'high'});}['_getChangeFromId'](_0x4a08b4){return this['_changeIdToChange']['get'](_0x4a08b4);}['_getViewForChange'](_0x5cfd70){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5cfd70),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5ac1b2,_0x235250,_0x4352fa,_0x52fa0d)=>{_0x52fa0d&&this['_balloon']['remove'](_0x52fa0d),_0x4352fa&&(this['_balloon']['add']({'view':_0x4352fa,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5e586b=this['editor']['editing'],_0x58d9c7=this['_getChangeFromId'](_0x4352fa['changeId']);let _0xfcd403;if(_0x58d9c7['data']['isOnRoot']){const _0x6bcf5e=_0x5e586b['view']['getDomRoot'](_0x58d9c7['rootName']);_0xfcd403=Array['from'](_0x6bcf5e['getClientRects']());}else{const _0xbebc5c=this['editor']['model']['markers']['get']('revision:'+_0x4352fa['changeId']);_0xfcd403=Array['from'](_0x5e586b['mapper']['markerNameToElements'](_0xbebc5c['name']))['map'](_0x304e55=>_0x5e586b['view']['domConverter']['mapViewToDom'](_0x304e55))['map'](_0x17da47=>Array['from'](_0x17da47['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xfcd403[0x0];return _0xfcd403['find'](_0x4c05f5=>_0x4c05f5['top']-0x3<=this['_activeViewTarget']['y']&&_0x4c05f5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4c05f5['left']-0x3<=this['_activeViewTarget']['x']&&_0x4c05f5['right']+0x3>=this['_activeViewTarget']['x'])||_0xfcd403[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4c12fe,_0x53b01f,_0x3395d8,_0x3e008c)=>{this['activeView']=_0x3395d8?this['_getViewForChange'](_0x3395d8):null,this['editor']['model']['change'](()=>{const _0xfed856=this['editor']['editing'];_0x3e008c&&(_0x3e008c['data']['isOnRoot']?_0xfed856['view']['change'](_0x2401a2=>{_0x2401a2['removeClass']('ck-revision-history-root--active',_0xfed856['view']['document']['getRoot'](_0x3e008c['rootName']));}):_0xfed856['reconvertMarker']('revision:'+_0x3e008c['id'])),_0x3395d8&&(_0x3395d8['data']['isOnRoot']?_0xfed856['view']['change'](_0x133a51=>{_0x133a51['addClass']('ck-revision-history-root--active',_0xfed856['view']['document']['getRoot'](_0x3395d8['rootName']));}):_0xfed856['reconvertMarker']('revision:'+_0x3395d8['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x22d6e8,_0x2ac621)=>{if(this['activeChange'])return;const _0xf2fd50=this['_findChangeIdFromDomTarget'](_0x2ac621['target']),_0x553f1b=this['_changeIdToChange']['get'](_0xf2fd50);_0x553f1b?(this['_activeViewTarget']={'x':_0x2ac621['domEvent']['x'],'y':_0x2ac621['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x553f1b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x273a70,_0x31d9d9)=>{const _0x365985=this['_findChangeIdFromDomTarget'](_0x31d9d9['target']),_0x5787d6=this['_changeIdToChange']['get'](_0x365985);_0x5787d6?(this['_activeViewTarget']={'x':_0x31d9d9['domEvent']['x'],'y':_0x31d9d9['domEvent']['y']},_0x5787d6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5787d6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4aaec1){do{const _0xf5daa8=_0x4aaec1['getAttribute']('data-change-id');if(_0xf5daa8)return _0xf5daa8;_0x4aaec1=_0x4aaec1['parent'];}while(_0x4aaec1);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3fc5e2=>{for(const _0x7d5ad0 of this['editor']['model']['markers'])_0x3fc5e2['removeMarker'](_0x7d5ad0);});}}function Z(_0x3af37d,_0x15d83f){return(_0x28043e,_0x4fcfd2,_0x255864)=>{if(!_0x255864['consumable']['test'](_0x4fcfd2['markerRange'],_0x28043e['name']))return;const _0x17b4b4=_0x4fcfd2['markerRange']['getWalker'](),_0x578d48=_0x4fcfd2['markerRange']['start'],_0x2cdef1=_0x3af37d['model']['schema'];let _0x5b1d98=null,_0x362306=null,_0xb62157=!0x1,_0x6f5e09=!0x1;for(const _0x30b941 of _0x17b4b4){const _0x245880=_0x30b941['item'];_0xb62157=_0xb62157||_0x2cdef1['isContent'](_0x245880);const _0x411236=_0x255864['mapper']['toViewElement'](_0x245880);if(_0x411236&&_0x411236['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30b941['type']&&(_0x2cdef1['isBlock'](_0x245880)&&!_0x2cdef1['isLimit'](_0x245880)&&(_0x245880['nextSibling']||_0x578d48['isAtEnd']?_0x5b1d98&&_0x5b1d98['parent']==_0x245880||(_0x5b1d98=_0x245880,_0xa6c621(_0x30b941['previousPosition']),_0x6f5e09=!0x0):_0x362306=_0x362306||_0x30b941['previousPosition']));}function _0xa6c621(_0x687eb6){const _0x116ef8=_0x255864['mapper']['toViewPosition'](_0x687eb6),_0x5e9f45=_0x255864['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x15d83f});_0x255864['writer']['insert'](_0x116ef8,_0x5e9f45),_0x255864['mapper']['bindElementToMarker'](_0x5e9f45,_0x4fcfd2['markerName']);}_0xb62157||_0x6f5e09||!_0x362306||_0xa6c621(_0x362306);};}class pt extends _0x56ed2c{constructor(_0xaa6dea){super(_0xaa6dea);const _0x2b382b=_0xaa6dea['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x2b382b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2b382b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x389633=this['editor'],_0x23314a=_0x389633['plugins']['get'](d),_0xc3f75c=_0x23314a['isReady']?_0x23314a['diff']['newRevisionId']:null;_0x389633['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xc3f75c);}['refresh'](){const {isReady:_0x3e2fab,isEnabled:_0x491024,repository:_0x5aabf3,diff:_0x1ade97}=this['editor']['plugins']['get'](d),_0xb0d62=_0x1ade97&&_0x5aabf3['getLaterVisibleRevision'](_0x1ade97['newRevisionId']);this['isEnabled']=_0x3e2fab&&_0x491024&&Boolean(_0xb0d62);}}class _t extends _0x56ed2c{['_step'];constructor(_0x1053e9,{direction:_0x336923}){super(_0x1053e9);const _0x204fa6=_0x1053e9['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x336923?0x1:-0x1,this['listenTo'](_0x204fa6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x204fa6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x204fa6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4d2fc4=this['editor'],_0x3f3be6=_0x4d2fc4['plugins']['get'](d),{isNavigationMode:_0x59cea9,currentChangeNumber:_0x3c5cd6}=_0x3f3be6;let _0x3ae048;if(_0x3f3be6['activeChange']=_0x59cea9?_0x3f3be6['diff']['changes']['get'](_0x3c5cd6+this['_step']):_0x3f3be6['diff']['changes']['first'],_0x3f3be6['activeChange']['data']['isOnRoot'])_0x3ae048=_0x4d2fc4['editing']['view']['getDomRoot'](_0x3f3be6['activeChange']['rootName']);else{const _0xe6ffc4=_0x4d2fc4['model']['markers']['get']('revision:'+_0x3f3be6['activeChange']['id']);_0x3ae048=_0x2636a1(_0x4d2fc4['editing'],_0xe6ffc4);}_0x528857({'target':_0x3ae048,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5ed430,currentChangeNumber:_0x307c14,numberOfChanges:_0x271f83,isReady:_0x221d27,isEnabled:_0x3ea046}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3ea046&&_0x221d27&&_0x271f83)&&(!_0x5ed430||(0x1===this['_step']?_0x307c14<_0x271f83-0x1:_0x307c14>0x0));}}class li extends ts{constructor(_0x1bc10a){super(_0x1bc10a);const _0x5a844c=this['bindTemplate'],_0x5e15f8=new te(_0x1bc10a),_0x187198=new te(_0x1bc10a);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',(_0x307520,_0x3d89b8)=>_0x307520&&_0x3d89b8>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x422628,_0x53d83a,_0x44bd14,_0x515fae)=>{if(!_0x422628)return m(_0x1bc10a,'Loading...');if(!_0x44bd14)return m(_0x1bc10a,'No\x20changes');const _0x52e4dd=m(_0x1bc10a,'NUMBER_OF_CHANGES',_0x44bd14);return _0x515fae?m(_0x1bc10a,'X_OF_Y_CHANGES',[_0x53d83a+0x1,_0x44bd14]):_0x52e4dd;}),_0x5e15f8['set']({'label':m(_0x1bc10a,'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'}),_0x187198['set']({'label':m(_0x1bc10a,'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'}),_0x5e15f8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x187198['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5e15f8['on']('execute',()=>this['fire']('execute','backward')),_0x187198['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',_0x5a844c['if']('_isStatusLabelVisible','ck-hidden',_0x55c2b4=>!_0x55c2b4)]},'children':[{'text':_0x5a844c['to']('isNavigationMode',_0x22248d=>_0x22248d?m(_0x1bc10a,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1bc10a,'Total')+':\x20')}]},{'text':_0x5a844c['to']('_statusText')}]},new _0x20f3c2(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5e15f8,_0x187198]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x5d28bb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3a42c2=this['editor']['editing']['view'];_0x3a42c2['change'](_0x326fb2=>{for(const _0x255074 of _0x3a42c2['document']['roots'])_0x326fb2['addClass'](le,_0x255074);});}['hide'](){const _0x36c118=this['editor']['editing']['view'];_0x36c118['change'](_0x461496=>{for(const _0x1496dd of _0x36c118['document']['roots'])_0x461496['removeClass'](le,_0x1496dd);});}}class g extends _0x5d28bb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x5d32c3=this['editor'],_0xa0fa9b=_0x5d32c3['plugins']['get'](d),_0x12de0d=_0x5d32c3['plugins']['get'](ge);_0x5d32c3['ui']['componentFactory']['add']('exitToEditing',_0x30b9dd=>{const _0x1f5d3a=new te(_0x30b9dd);return _0x1f5d3a['set']({'label':m(_0x30b9dd,'Back\x20to\x20editing'),'icon':_0xea7b21['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1f5d3a,'execute',()=>{_0x5d32c3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1f5d3a;}),_0x5d32c3['ui']['componentFactory']['add']('restoreRevision',_0x4ec76b=>{const _0x1495a8=new te(_0x4ec76b);return _0x1495a8['set']({'label':m(_0x4ec76b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1495a8['bind']('isEnabled')['to'](_0x5d32c3['commands']['get']('restoreRevision')),this['listenTo'](_0x1495a8,'execute',()=>_0x5d32c3['execute']('restoreRevision')),_0x1495a8;}),_0x5d32c3['ui']['componentFactory']['add']('changesNavigation',_0x527404=>{const _0x37b4e2=new li(_0x527404),_0x558aec=_0x5d32c3['commands']['get']('showPreviousChange'),_0x331b5d=_0x5d32c3['commands']['get']('showNextChange');return _0x37b4e2['bind']('isBackwardNavigationEnabled')['to'](_0x558aec,'isEnabled'),_0x37b4e2['bind']('isForwardNavigationEnabled')['to'](_0x331b5d,'isEnabled'),_0x37b4e2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xa0fa9b),this['listenTo'](_0x37b4e2,'execute',(_0x547e19,_0x5b6f6d)=>{_0x5d32c3['execute']('forward'===_0x5b6f6d?'showNextChange':'showPreviousChange');}),_0x37b4e2;}),_0x12de0d['show'](),_0xa0fa9b['on']('change:isReady',(_0x4a0c70,_0x2d38ee,_0x10c909)=>{_0x10c909?_0x12de0d['hide']():_0x12de0d['show']();});}}class at extends _0x5592ec{['_resizeObserver']=null;constructor(_0x2b81a7,_0x3797e6){super(_0x2b81a7,_0x3797e6);const _0x15b217=this['bindTemplate'];this['set']({'label':m(_0x2b81a7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2b81a7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x15b217['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x33912c=this['fieldView']['element'];this['_tooltipString']=_0x33912c['scrollWidth']>_0x33912c['clientWidth']&&_0x33912c['value']||'';}}class ri extends ts{constructor(_0x55cc8,_0xcbc180,_0x4e6757){super(_0x55cc8);const _0x22dae2=new _0x587423();_0x22dae2['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 _0x163aa=['ck','ck-revision-history-sidebar__revision-author'];_0x4e6757&&_0x163aa['push']('ck-revision-history-sidebar__revision-author_creator');const _0x22028e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x55cc8,_0x4e6757?'Revision\x20creator':'Revision\x20author')},'children':[_0x22dae2,_0xcbc180['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x163aa},'children':_0x22028e});}}function oi(_0x219b1a,_0x4b151d){const _0x69a1d4=_0x219b1a['bindTemplate'],_0x5f8c09=_0x219b1a['locale'],_0x4e561d=_0x50695a(_0x5f8c09);_0x4e561d['panelPosition']='sw';const _0x4c0da0=function(_0xf017fa,_0x1033f9){const _0x13ca7f=function(_0x2581f5,_0x319269){const _0x5e4c28=_0x2581f5['locale'],_0x1a6b3e={'Compare\x20against\x20selected':m(_0x5e4c28,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5e4c28,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5e4c28,'Restore\x20this\x20revision')};return _0x319269['map'](_0x511f6d=>{const _0x3ad752=_0x1a6b3e[_0x511f6d['name']];return _0x3ad752&&_0x3ad752!==_0x511f6d['name']&&(_0x511f6d['name']=_0x3ad752),_0x511f6d;});}(_0xf017fa,_0x1033f9),_0x2d2e39=new _0x4e5af3();for(const _0x1b9a7c of _0x13ca7f){const _0x3c8e14={'type':'button','model':new _0x44a60a({'label':_0x1b9a7c['name'],'class':_0x1b9a7c['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b9a7c['action']})};_0x3c8e14['model']['bind']('isEnabled')['to'](_0xf017fa,'isActionsDropdownOpen',_0x4b4014=>'function'!=typeof _0x1b9a7c['isEnabled']||(!_0x4b4014||_0x1b9a7c['isEnabled'](_0xf017fa))),_0x2d2e39['add'](_0x3c8e14);}return _0x2d2e39;}(_0x219b1a,_0x4b151d);return _0x219b1a['bind']('isActionsDropdownOpen')['to'](_0x4e561d,'isOpen'),_0x4e561d['buttonView']['set']({'label':m(_0x5f8c09,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xea7b21['threeVerticalDots']}),_0x4e561d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x69a1d4['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x69a1d4['to'](_0x1b06c3=>_0x1b06c3['stopPropagation']())}}),_0x4e561d['on']('execute',_0x2c39d3=>{_0x219b1a['isReady']&&'function'==typeof _0x2c39d3['source']['_action']&&_0x2c39d3['source']['_action'](_0x219b1a);}),to(_0x4e561d,_0x4c0da0,{'role':'menu'}),_0x4e561d['listenTo'](_0x219b1a,'change:isActionsDropdownOpen',(_0x19f015,_0x39a3eb,_0xb15050)=>{if(_0xb15050)for(const _0x25d3d1 of _0x4e561d['listView']['items']){const _0x162b0a=_0x25d3d1['children']['first'],_0x3d73cb=_0x4b151d['find'](_0x2f25f5=>_0x2f25f5['action']===_0x162b0a['_action'])['isVisible'];_0x25d3d1['isVisible']=void 0x0===_0x3d73cb||_0x3d73cb(_0x219b1a);}}),_0x4e561d;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x55d8ba,uid as _0x3df0fe,Collection as _0xdaacf2,logWarning as _0x4cdd34,FocusTracker as _0x4e6e95,KeystrokeHandler as _0x9c92d6,scrollViewportToShowTarget as _0x2d4a6e,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x39d5e7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4778e2,set as _0x5c61fe,unset as _0x1716f8,isEqual as _0x1fb762}from'lodash-es';import{Plugin as _0x1f8aed,PendingActions as _0x4e6a06,icons as _0x722761,Command as _0x436a8b,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x49e53f,getMarkerDomElement as _0x1f62cd,ConfirmMixin as _0x2914cb,sanitizeEditorConfig as _0x48c460}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x52878a,ViewText as _0x101d7d,ViewElement as _0x42aced,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x342bc1,ViewAttributeElement as _0x1ec15c,ViewEmptyElement as _0x1aba2a,ViewRawElement as _0x15065c,ViewUIElement as _0xb94bd4,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x326023,injectCssTransitionDisabler as ts,submitHandler as _0x3d084a,LabeledFieldView as nt,createLabeledInputText as _0xde4bb0,createDropdown as _0x113c2e,ListView as te,ListItemView as _0x33e21b,ButtonView as _0x30c871,MenuBarMenuView as _0x227e97,MenuBarMenuListView as _0x41adae,MenuBarMenuListItemView as _0x2d0af5,MenuBarMenuListItemButtonView as _0x9d951c,ContextualBalloon as _0x27abf9,ToolbarSeparatorView as _0x4c888d,IconView as _0x28ac27,addListToDropdown as _0x302b3d,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 _0x25c7b8}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x55d8ba(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5c7272){super(),this['id']=_0x5c7272['id']||_0x3df0fe(),this['creator']=_0x5c7272['creator']||null,this['authors']=_0x5c7272['authors']||[],this['diffData']=_0x5c7272['diffData']||null,this['toVersion']=_0x5c7272['toVersion']||0x0,this['fromVersion']=_0x5c7272['fromVersion']||0x0,this['set']('name',_0x5c7272['name']||''),this['set']('createdAt',_0x5c7272['createdAt']||new Date()),this['set']('attributes',_0x5c7272['attributes']||{});}['setName'](_0x34a6ed){this['_update']({'name':_0x34a6ed});}['setAttribute'](_0x55481d,_0x25d090){const _0x233c00=_0x4778e2(this['attributes']);_0x5c61fe(_0x233c00,_0x55481d,_0x25d090),this['_update']({'attributes':_0x233c00});}['removeAttribute'](_0x16827c){const _0x280c07=_0x4778e2(this['attributes']);_0x1716f8(_0x280c07,_0x16827c),this['_update']({'attributes':_0x280c07});}['_update'](_0x4b3390,_0x2b7ce0=!0x1){let _0x580828=!0x1;const _0x3ed9cf={'id':this['id']},_0x2fafec=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3ebee8 of _0x2fafec){const _0x589fce=_0x4b3390[_0x3ebee8];void 0x0!==_0x589fce&&_0x589fce!==this[_0x3ebee8]&&(this[_0x3ebee8]=_0x589fce,_0x3ed9cf[_0x3ebee8]=_0x589fce,_0x580828=!0x0);}_0x580828&&(_0x3ed9cf['authors']&&(_0x3ed9cf['authorsIds']=_0x3ed9cf['authors']['map'](_0x15b889=>_0x15b889['id']),delete _0x3ed9cf['authors']),this['fire']('_update',_0x3ed9cf,_0x2b7ce0));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x555f47=>_0x555f47['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1f8aed{['_revisions'];static get['requires'](){return[_0x49e53f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4a6605){super(_0x4a6605),this['_revisions']=new _0xdaacf2();}['afterInit'](){!async function(_0xc72346){const _0x561ffd=_0x11dad3([0x44,0x58,0x42,0x48,0x4c,0x55,0x36,0x31,0x34,0x43,0x72,0x45,0x59,0x56,0x37,0x79,0x46,0x64,0x4d,0x63,0x53,0x75,0x77,0x4a,0x78,0x49,0x73,0x62,0x76,0x66,0x4b,0x33,0x32,0x30,0x68,0x39,0x6a,0x47,0x54,0x61,0x4e,0x50,0x6f,0x4f,0x35,0x70,0x74,0x67,0x6d,0x57,0x6e,0x6b,0x69,0x5a,0x65,0x38,0x51,0x7a,0x71,0x6c,0x52,0x41]),_0x306c2b=0xeb829,_0x1b27c0=0x29e370ac,_0x5227de=0x29e42c74^_0x1b27c0,_0x23c9d1=window[_0x11dad3([0x44,0x61,0x74,0x65])][_0x11dad3([0x6e,0x6f,0x77])](),_0xea7e=_0xc72346[_0x11dad3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18ee8e=new window[(_0x11dad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x402a35=>{_0xea7e[_0x11dad3([0x6f,0x6e,0x63,0x65])](_0x11dad3([0x72,0x65,0x61,0x64,0x79]),_0x402a35);}),_0x2e8b52={[_0x11dad3([0x6b,0x74,0x79])]:_0x11dad3([0x45,0x43]),[_0x11dad3([0x75,0x73,0x65])]:_0x11dad3([0x73,0x69,0x67]),[_0x11dad3([0x63,0x72,0x76])]:_0x11dad3([0x50,0x2d,0x32,0x35,0x36]),[_0x11dad3([0x78])]:_0x11dad3([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]),[_0x11dad3([0x79])]:_0x11dad3([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]),[_0x11dad3([0x61,0x6c,0x67])]:_0x11dad3([0x45,0x53,0x32,0x35,0x36])},_0x373f28=_0xea7e[_0x11dad3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11dad3([0x67,0x65,0x74])](_0x11dad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3be9b3(){let _0x513703,_0xe95c39=null,_0x5b2619=null;try{if(_0x373f28==_0x11dad3([0x47,0x50,0x4c]))return _0x11dad3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x513703=_0x409ea1(),!_0x513703)return _0x11dad3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x513703[_0x11dad3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b2619=_0x9bafa2(_0x513703[_0x11dad3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x513703[_0x11dad3([0x6a,0x74,0x69])])),await _0x4b8373()?_0x1c870b()?_0x10fa29()?_0x11dad3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x414501()?(_0x513703[_0x11dad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11dad3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe95c39=_0x4de87d(_0x11dad3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x513703[_0x11dad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11dad3([0x74,0x72,0x69,0x61,0x6c])&&(_0xe95c39=_0x4de87d(_0x11dad3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x513703[_0x11dad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11dad3([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xe95c39=_0x4de87d(_0x11dad3([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2920f5()):_0x11dad3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11dad3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11dad3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2a007f){return _0x11dad3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10fa29(){const _0x171275=[_0x11dad3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11dad3([0x74,0x72,0x69,0x61,0x6c])][_0x11dad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513703[_0x11dad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23c9d1/0x3e8:0xe10*_0x5227de;return _0x513703[_0x11dad3([0x65,0x78,0x70])]<_0x171275;}function _0x1c870b(){const _0x2e43e7=_0x513703[_0x11dad3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e43e7)return!0x1;if(_0x2e43e7[_0x11dad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11dad3([0x2a])))return!0x0;if(_0x2e43e7[_0x11dad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11dad3([0x52,0x48])))return!0x0;if(_0x2e43e7[_0x11dad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11dad3([0x52,0x52,0x48]))){if(_0x31ea50())return!0x0;if(_0x40d5e0()||_0x5b85b6())return!0x0;}return!0x1;}function _0x414501(){const _0x12e379=_0x513703[_0x11dad3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12e379||0x0==_0x12e379[_0x11dad3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f8f45}=new URL(window[_0x11dad3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x12e379[_0x11dad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8f45))return!0x0;const _0x1087ef=_0x4f8f45[_0x11dad3([0x73,0x70,0x6c,0x69,0x74])](_0x11dad3([0x2e]));return _0x12e379[_0x11dad3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15481e=>_0x15481e[_0x11dad3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11dad3([0x2a])))[_0x11dad3([0x6d,0x61,0x70])](_0x22dbf4=>_0x22dbf4[_0x11dad3([0x73,0x70,0x6c,0x69,0x74])](_0x11dad3([0x2e])))[_0x11dad3([0x73,0x6f,0x6d,0x65])](_0x26e11a=>_0x1087ef[_0x11dad3([0x65,0x76,0x65,0x72,0x79])]((_0x31746f,_0x347d88)=>_0x26e11a[_0x347d88]===_0x31746f||_0x26e11a[_0x347d88]===_0x11dad3([0x2a])));}function _0x2920f5(){return _0xe95c39&&_0x5b2619?new window[(_0x11dad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53d488,_0x265def)=>{_0xe95c39[_0x11dad3([0x74,0x68,0x65,0x6e])](_0x53d488,_0x265def),_0x5b2619[_0x11dad3([0x74,0x68,0x65,0x6e])](_0x321aa9=>{_0x321aa9!=_0x11dad3([0x56,0x61,0x6c,0x69,0x64])&&_0x53d488(_0x321aa9);},_0x265def);}):_0xe95c39||_0x5b2619||_0x11dad3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9bafa2(_0x5b602d,_0x493d6e){return new window[(_0x11dad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54c3cb=>{if(_0x543e16())return _0x54c3cb(_0x11dad3([0x56,0x61,0x6c,0x69,0x64]));_0x289251(),_0xea7e[_0x11dad3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11dad3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x492bb1=!0x1;const _0x2ab0d8=_0x3df0fe();function _0x3ca0e8(_0x28b711){return!!_0x28b711&&(typeof _0x28b711===_0x11dad3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28b711===_0x11dad3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28b711[_0x11dad3([0x74,0x68,0x65,0x6e])]===_0x11dad3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28b711[_0x11dad3([0x63,0x61,0x74,0x63,0x68])]===_0x11dad3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xca688d(_0x5dcd9b){_0x3db57b(_0x5dcd9b)[_0x11dad3([0x74,0x68,0x65,0x6e])](_0x352075=>{if(!_0x352075||_0x352075[_0x11dad3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11dad3([0x6f,0x6b]))return _0x11dad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d8a60(_0xeb9506(_0x2ab0d8+_0x493d6e))!=_0x352075[_0x11dad3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11dad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11dad3([0x56,0x61,0x6c,0x69,0x64]);})[_0x11dad3([0x74,0x68,0x65,0x6e])](_0x4251bc=>(_0xae292f(),_0x4251bc),()=>{const _0x4ccb35=_0x5c94a3();return null==_0x4ccb35?(_0xae292f(),_0x11dad3([0x56,0x61,0x6c,0x69,0x64])):_0x11dad3(_0x23c9d1-_0x4ccb35>(0xdeff4ac^_0x1b27c0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11dad3([0x74,0x68,0x65,0x6e])](_0x54c3cb)[_0x11dad3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54c3cb(_0x11dad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55ccc7=0x29d59e2c^_0x1b27c0;function _0xae292f(){const _0x9e0066=_0x11dad3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d8a60(_0xeb9506(_0x5b602d)),_0x3f4971=_0x8e3c1b(_0x4d8a60(window[_0x11dad3([0x4d,0x61,0x74,0x68])][_0x11dad3([0x63,0x65,0x69,0x6c])](_0x23c9d1/_0x55ccc7)));window[_0x11dad3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11dad3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9e0066,_0x3f4971);}function _0x5c94a3(){const _0x57f108=_0x11dad3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d8a60(_0xeb9506(_0x5b602d)),_0x29e85e=window[_0x11dad3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11dad3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57f108);return _0x29e85e?window[_0x11dad3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8e3c1b(_0x29e85e),0x10)*_0x55ccc7:null;}function _0x3db57b(_0x3b06cd){return new window[(_0x11dad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbcca29,_0x556093)=>{_0x3b06cd[_0x11dad3([0x74,0x68,0x65,0x6e])](_0xbcca29,_0x556093),window[_0x11dad3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x556093,0x29e2a46c^_0x1b27c0);});}}_0xea7e[_0x11dad3([0x6f,0x6e])](_0x11dad3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x265921,_0x4c94f9)=>{if(_0x4c94f9[0x0]!=_0x5b602d)return _0x54c3cb(_0x11dad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c94f9[0x1]={..._0x4c94f9[0x1],[_0x11dad3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ab0d8};},{[_0x11dad3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11dad3([0x68,0x69,0x67,0x68])}),_0xea7e[_0x11dad3([0x6f,0x6e])](_0x11dad3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x346767=>{_0x3ca0e8(_0x346767[_0x11dad3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x492bb1=!0x0,_0xca688d(_0x346767[_0x11dad3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11dad3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11dad3([0x6c,0x6f,0x77])}),_0x18ee8e[_0x11dad3([0x74,0x68,0x65,0x6e])](()=>{_0x492bb1||_0x54c3cb(_0x11dad3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x543e16(){return _0xea7e[_0x11dad3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11dad3([0x76,0x69,0x65,0x77])][_0x11dad3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11dad3([0x61,0x75,0x74,0x6f]);}function _0x289251(){_0xea7e[_0x11dad3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11dad3([0x76,0x69,0x65,0x77])][_0x11dad3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11dad3([0x61,0x75,0x74,0x6f]);}}function _0x4de87d(_0x2ff4cb){const _0x24a6c3=[new window[(_0x11dad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11c0b2=>setTimeout(_0x11c0b2,0x29ea4e60^_0x1b27c0)),_0x18ee8e[_0x11dad3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11dad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17ea69=>{const _0x2d0671=0x29e370ab^_0x1b27c0,_0x2072d0=_0xc72346[_0x11dad3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1fd261(){_0x2072d0[_0x11dad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d0671&&_0x17ea69();}_0x1fd261(),_0x2072d0[_0x11dad3([0x6f,0x6e])](_0x11dad3([0x61,0x64,0x64]),_0x1fd261);})),new window[(_0x11dad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c72c6=>{function _0xfb0349(){for(const _0x34cdf6 in window)if(window[_0x11dad3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x11dad3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x34cdf6))&&window[_0x34cdf6]==_0x306c2b)return _0x1c72c6();_0xea7e[_0x11dad3([0x73,0x74,0x61,0x74,0x65])]!=_0x11dad3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x11dad3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfb0349,0x29e36324^_0x1b27c0);}_0x11e7bf(_0x11dad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xfb0349();})];return window[_0x11dad3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11dad3([0x72,0x61,0x63,0x65])](_0x24a6c3)[_0x11dad3([0x74,0x68,0x65,0x6e])](()=>_0x2ff4cb);}async function _0x4b52f1(){if(await _0x18ee8e,_0x11e7bf(_0x11dad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x262f38=_0xc72346[_0x11dad3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4e0b26=_0xc72346[_0x11dad3([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])](_0x262f38[_0x11dad3([0x69,0x64])]),_0xfdf99d=_0x915807(_0x11dad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xfdf99d[_0x11dad3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x262f38['id'],_0x4e0b26?_0x4e0b26['id']:null,!0x0),_0xfdf99d[_0x11dad3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x11dad3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xfdf99d[_0x11dad3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xfdf99d[_0x11dad3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x29d0b4,void(_0xfdf99d[_0x11dad3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x29d0b4);}if(_0x11e7bf(_0x11dad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x246dbf=_0x915807(_0x11dad3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x246dbf[_0x11dad3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x11dad3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x246dbf[_0x11dad3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x246dbf[_0x11dad3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x29d0b4,_0x246dbf[_0x11dad3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x29d0b4;}_0xea7e[_0x11dad3([0x6d,0x6f,0x64,0x65,0x6c])][_0x11dad3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29d0b4,_0xea7e[_0x11dad3([0x6d,0x6f,0x64,0x65,0x6c])][_0x11dad3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29d0b4,_0xea7e[_0x11dad3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11dad3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31ea50(){return _0x11e7bf(_0x11dad3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x915807(_0x11dad3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x11dad3([0x73,0x74,0x61,0x74,0x65])]==_0x11dad3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x40d5e0(){return _0x11e7bf(_0x11dad3([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 _0x5b85b6(){return _0x11e7bf(_0x11dad3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x444112(_0x17d8c2){const _0x4ab790=_0x5daaba();_0xea7e[_0x4ab790]=_0x11dad3([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])+_0x17d8c2,_0x17d8c2[_0x11dad3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x11dad3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5daaba()]=_0x306c2b),_0x17d8c2!=_0x11dad3([0x56,0x61,0x6c,0x69,0x64])&&_0x4b52f1();}function _0x5daaba(){const _0x40f068=window[_0x11dad3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11dad3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11dad3([0x6e,0x6f,0x77])]())[_0x11dad3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11dad3([0x2e]),'');let _0x3fcbd7=_0x11dad3([0x44]);for(let _0x3b5f3a=0x0;_0x3b5f3a<_0x40f068[_0x11dad3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b5f3a+=0x2){let _0x2a0333=window[_0x11dad3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40f068[_0x11dad3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b5f3a,_0x3b5f3a+0x2));_0x2a0333>=_0x561ffd[_0x11dad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a0333-=_0x561ffd[_0x11dad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fcbd7+=_0x561ffd[_0x2a0333];}return _0x3fcbd7;}function _0x409ea1(){const _0x173d11=_0x373f28[_0x11dad3([0x73,0x70,0x6c,0x69,0x74])](_0x11dad3([0x2e]));if(0x3!=_0x173d11[_0x11dad3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5fa469(_0x173d11[0x1]);function _0x5fa469(_0x4909f4){const _0xab0273=_0x5c2527(_0x4909f4);return _0xab0273&&_0x4a4323()?_0xab0273:null;function _0x4a4323(){const _0x5a2d6e=_0xab0273[_0x11dad3([0x6a,0x74,0x69])],_0x1469e6=window[_0x11dad3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a2d6e[_0x11dad3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a2d6e[_0x11dad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16941c={..._0xab0273,[_0x11dad3([0x6a,0x74,0x69])]:_0x5a2d6e[_0x11dad3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a2d6e[_0x11dad3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16941c[_0x11dad3([0x76,0x63])],_0xeb9506(_0x16941c)==_0x1469e6;}}}async function _0x4b8373(){let _0x418fc5=!0x0;try{const _0x30bb05=_0x373f28[_0x11dad3([0x73,0x70,0x6c,0x69,0x74])](_0x11dad3([0x2e])),[_0x55e2f6,_0x47f7fe,_0x5b3a7e]=_0x30bb05;return _0x507be7(_0x55e2f6),await _0x4dc11f(_0x55e2f6,_0x47f7fe,_0x5b3a7e),_0x418fc5;}catch(_0x142c8b){return!0x1;}function _0x507be7(_0x52437f){const _0x39bf7e=_0x5c2527(_0x52437f);_0x39bf7e&&_0x39bf7e[_0x11dad3([0x61,0x6c,0x67])]==_0x11dad3([0x45,0x53,0x32,0x35,0x36])||(_0x418fc5=!0x1);}async function _0x4dc11f(_0x670bfb,_0x3216ea,_0x257c00){const _0x69e8d5=window[_0x11dad3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11dad3([0x66,0x72,0x6f,0x6d])](_0x85a37f(_0x257c00),_0x146f98=>_0x146f98[_0x11dad3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x64e396=new window[(_0x11dad3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11dad3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x670bfb+_0x11dad3([0x2e])+_0x3216ea),_0x2f9166=window[_0x11dad3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11dad3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f9166)return;const _0x309633=await _0x2f9166[_0x11dad3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11dad3([0x6a,0x77,0x6b]),_0x2e8b52,{[_0x11dad3([0x6e,0x61,0x6d,0x65])]:_0x11dad3([0x45,0x43,0x44,0x53,0x41]),[_0x11dad3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11dad3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11dad3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f9166[_0x11dad3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11dad3([0x6e,0x61,0x6d,0x65])]:_0x11dad3([0x45,0x43,0x44,0x53,0x41]),[_0x11dad3([0x68,0x61,0x73,0x68])]:{[_0x11dad3([0x6e,0x61,0x6d,0x65])]:_0x11dad3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x309633,_0x69e8d5,_0x64e396)||(_0x418fc5=!0x1);}}function _0x5c2527(_0xbb9d23){return _0xbb9d23[_0x11dad3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11dad3([0x65,0x79]))?JSON[_0x11dad3([0x70,0x61,0x72,0x73,0x65])](_0x85a37f(_0xbb9d23)):null;}function _0x85a37f(_0x35faa9){return window[_0x11dad3([0x61,0x74,0x6f,0x62])](_0x35faa9[_0x11dad3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11dad3([0x2b]))[_0x11dad3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11dad3([0x2f])));}function _0xeb9506(_0x19463e){let _0x3adf9b=0x1505;function _0x216b19(_0x5e1e4d){for(let _0x294a26=0x0;_0x294a26<_0x5e1e4d[_0x11dad3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x294a26++){const _0x1be85d=_0x5e1e4d[_0x11dad3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x294a26);_0x3adf9b=(_0x3adf9b<<0x5)+_0x3adf9b+_0x1be85d,_0x3adf9b&=_0x3adf9b;}}function _0x8ee521(_0x590bd1){Array[_0x11dad3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x590bd1)?_0x590bd1[_0x11dad3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8ee521):_0x590bd1&&typeof _0x590bd1==_0x11dad3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11dad3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x590bd1)[_0x11dad3([0x73,0x6f,0x72,0x74])]()[_0x11dad3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4912b7,_0x221797])=>{_0x216b19(_0x4912b7),_0x8ee521(_0x221797);}):_0x216b19(window[_0x11dad3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x590bd1));}return _0x8ee521(_0x19463e),_0x3adf9b>>>0x0;}function _0x4d8a60(_0x552984){return _0x552984[_0x11dad3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11dad3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11dad3([0x30]));}function _0x8e3c1b(_0x2ba1af){return _0x2ba1af[_0x11dad3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11dad3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11dad3([0x6a,0x6f,0x69,0x6e])]('');}function _0x11e7bf(_0x3a3247){return _0xea7e[_0x11dad3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11dad3([0x68,0x61,0x73])](_0x3a3247);}function _0x915807(_0xf2976c){return _0xea7e[_0x11dad3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11dad3([0x67,0x65,0x74])](_0xf2976c);}function _0x29d0b4(){}function _0x11dad3(_0xdbf009){return _0xdbf009['map'](_0x384ed5=>String['fromCharCode'](_0x384ed5))['join']('');}_0x444112(await _0x3be9b3());}(this);}['createRevision'](_0x51104e){const _0x28864c=this['editor']['plugins']['get']('Users');return new a({'id':_0x51104e['id'],'name':_0x51104e['name'],'creator':_0x51104e['creatorId']?_0x28864c['getUser'](_0x51104e['creatorId']):null,'diffData':_0x51104e['diffData']||_0x51104e['data'],'authors':_0x51104e['authorsIds']['map'](_0x48697c=>_0x28864c['getUser'](_0x48697c)),'createdAt':new Date(_0x51104e['createdAt']),'attributes':_0x51104e['attributes'],'fromVersion':_0x51104e['fromVersion'],'toVersion':_0x51104e['toVersion']});}['addRevision'](_0x4146e1,_0x369c8e=0x0){this['_revisions']['add'](_0x4146e1,_0x369c8e);}['getRevision'](_0x532084){return this['_revisions']['get'](_0x532084);}['getRevisions'](_0x20eaf3={'toJSON':!0x1}){const _0x1ffe2f=Array['from'](this['_revisions']);return _0x1ffe2f['reverse'](),_0x20eaf3['toJSON']?_0x1ffe2f['map'](_0x14ebc5=>_0x14ebc5['toJSON']()):_0x1ffe2f;}['getIndex'](_0xfca540){return this['_revisions']['getIndex'](_0xfca540);}['getEarlierVisibleRevision'](_0x800954){const [,_0x5e69f9]=this['getRevisionsIterator'](_0x800954,{'direction':'earlier'});return _0x5e69f9;}['getLaterVisibleRevision'](_0x262b04){const [,_0xa63522]=this['getRevisionsIterator'](_0x262b04,{'direction':'later'});return _0xa63522;}['getRevisionsInDiff'](_0x2b996d){const _0x1799a8=[];for(const _0x3c765e of this['getRevisionsIterator'](_0x2b996d['newRevisionId']))if(_0x1799a8['push'](_0x3c765e),_0x3c765e['id']===_0x2b996d['oldRevisionId'])break;return _0x1799a8;}*['getRevisionsIterator'](_0x4e1057,{direction:_0x334f33='earlier',filter:_0x2fb0e9=()=>!0x0}={}){const _0x56e03f='earlier'===_0x334f33?0x1:-0x1;let _0x25d825=this['_revisions']['get'](_0x4e1057),_0x33bea7=this['getIndex'](_0x25d825);for(yield _0x25d825;_0x25d825;){if(_0x33bea7+=_0x56e03f,_0x25d825=this['getRevision'](_0x33bea7),!_0x25d825)return;_0x2fb0e9(_0x25d825)&&(yield _0x25d825);}}}function m(_0x5cdde9,_0x30bfbc,_0x50a0b2){const t=_0x5cdde9['t'];switch(_0x30bfbc){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'},_0x50a0b2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x50a0b2);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':_0x342bc1,'a':_0x1ec15c,'e':_0x1aba2a,'r':_0x15065c,'u':_0xb94bd4};class l extends _0x1f8aed{['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[_0x49e53f,j,_0x4e6a06];}constructor(_0x4d8a74){super(_0x4d8a74),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 _0x52739b=_0x3df0fe();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x52739b},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 _0xf1cd99=this['repository']['getRevision'](0x0),_0x185275=_0xf1cd99&&null===_0xf1cd99['creator']?_0xf1cd99:null;if(this['_continueCurrentRevision']=!!_0x185275&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x16fd80=this['_source']['getCurrentRevisionId'](),_0x500aaa=this['repository']['getRevision'](_0x16fd80);if(_0x500aaa)this['_startingVersion']=_0x500aaa['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x31ea4c=this['_source']['history']['_operations']['find'](_0x29d460=>!_0x29d460['_isInit']),_0xe11895=_0x31ea4c?_0x31ea4c['baseVersion']:this['_source']['history']['version'];_0xf1cd99?(_0xf1cd99['toVersion']<_0xe11895&&_0xf1cd99['_update']({'toVersion':_0xe11895}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x185275['id'],this['_startingVersion']=_0x185275['fromVersion']):(this['_startingVersion']=_0xf1cd99['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xe11895,this['_continueCurrentRevision']=!0x1);}}else _0x185275&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x185275['toVersion'],this['editor']['model']['document']['history']['version']),_0x185275['fromVersion']===_0x185275['toVersion']?(0x0!==_0x185275['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x185275['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x185275['id'],this['_startingVersion']=_0x185275['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',_0x297707=>!_0x297707),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x55affa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d1bd9;for(const _0x30128d in _0x55affa){const _0x3d0c21=_0x30128d,_0x1b943c=_0x55affa[_0x3d0c21];if('revisionHistoryLicenseKeyValid'==_0x1b943c||'revisionHistoryLicenseKeyInvalid'==_0x1b943c||'revisionHistoryLicenseKeyExpired'==_0x1b943c||'revisionHistoryLicenseKeyDomainLimit'==_0x1b943c||'revisionHistoryLicenseKeyNotAllowed'==_0x1b943c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1b943c||'revisionHistoryLicenseKeyTrialLimit'==_0x1b943c||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1b943c||'revisionHistoryLicenseKeyUsageLimit'==_0x1b943c){delete _0x55affa[_0x3d0c21],_0x1d1bd9=_0x1b943c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1d1bd9&&_0x55affa['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1d1bd9&&_0x55affa['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1d1bd9&&_0x55affa['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1d1bd9&&_0x55affa['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1d1bd9&&_0x55affa['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1d1bd9&&_0x55affa['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1d1bd9&&_0x55affa['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1d1bd9&&_0x55affa['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x24bc04=this['repository']['getRevision'](0x0),_0x7b8fb5=await this['getRevisionDocumentData'](_0x24bc04),_0x4ab8eb=await this['getRevisionRootsAttributes'](_0x24bc04);this['_replaceEditorDataWithRevisionData'](_0x7b8fb5,_0x4ab8eb);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x324281){this['_source']=_0x324281;}async['update'](){const _0x772a47=await this['_source']['getLatestVersion']();if(_0x772a47>this['currentRevision']['toVersion']){await this['_loadState']();const _0x64da56=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x772a47});_0x64da56['authors']=_0x64da56['authorsIds']['map'](_0x282db1=>this['editor']['plugins']['get']('Users')['getUser'](_0x282db1)),this['currentRevision']['_update'](_0x64da56);}}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'](_0x4aa6e1={},_0x4bfc86=null){const _0x3ca6a7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4bfc86>this['currentRevision']['toVersion']&&(_0x4bfc86=null),null===_0x4bfc86&&(_0x4bfc86=await this['_source']['getLatestVersion']());const _0x2cbf45=this['_getFromVersion'](_0x4bfc86),_0x4f10ad=this['buildRevisionData']({'from':_0x2cbf45,'to':_0x4bfc86});if(this['currentRevision']['toVersion']<_0x4bfc86){const _0x2a3fed=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4bfc86,'to':_0x4bfc86});_0x2a3fed['authors']=[],_0x2a3fed['authorsIds']=[],_0x2a3fed['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2a3fed,!0x0),delete _0x2a3fed['authors'],_0x3ca6a7['push'](_0x2a3fed);}_0x4aa6e1['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4aa6e1['name']=_0x4aa6e1['name']||null,_0x4aa6e1['id']=_0x4aa6e1['id']||_0x3df0fe(),_0x4aa6e1={..._0x4aa6e1,..._0x4f10ad};const _0x211ac8=this['addRevisionData'](_0x4aa6e1);_0x3ca6a7['push'](_0x4aa6e1);const _0x35e61f=this['repository']['getIndex'](_0x211ac8);if(0x0!==_0x35e61f){const _0x543ef5=this['repository']['getRevision'](_0x35e61f-0x1);if(_0x543ef5['fromVersion']!==_0x4bfc86){const _0x25a038=this['_revisionDataBuilder']['getData'](_0x4bfc86,_0x543ef5['toVersion']),_0x3de060={'id':_0x543ef5['id'],'diffData':_0x25a038['diffData'],'authorsIds':_0x25a038['authorsIds'],'authors':_0x25a038['authorsIds']['map'](_0x1db164=>this['editor']['plugins']['get']('Users')['getUser'](_0x1db164)),'fromVersion':_0x4bfc86};_0x543ef5===this['currentRevision']&&(_0x3de060['createdAt']=new Date(_0x4aa6e1['createdAt']['getTime']()+0xa)),_0x543ef5['_update'](_0x3de060,!0x0),delete _0x3de060['authors'],_0x3ca6a7['push'](_0x3de060);}}if(this['adapter']){for(const _0x42a890 of _0x3ca6a7)this['_bufferUpdate'](_0x42a890['id'],_0x42a890,!0x0);this['sendBufferedUpdates']();}return _0x211ac8;}['addRevisionData'](_0x408de7){const _0x424f89=this['repository']['createRevision'](_0x408de7);return this['adapter']&&_0x424f89['on']('_update',(_0x11032b,_0x5ed959,_0xa5b3bf)=>{_0xa5b3bf||(this['_bufferUpdate'](_0x5ed959['id'],_0x5ed959,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x424f89,this['_findInsertionIndex'](_0x424f89)),_0x424f89;}async['getRevisionDocumentData'](_0x151f4a){await this['_loadRevisionData'](_0x151f4a);const _0x47d3c8={};for(const _0x5cfea9 in _0x151f4a['diffData']){if(_0x151f4a['diffData'][_0x5cfea9]['attachChange']&&!_0x151f4a['diffData'][_0x5cfea9]['attachChange']['isAttached'])continue;const _0x130dd9=this['_removeRevisionMarkers'](JSON['parse'](_0x151f4a['diffData'][_0x5cfea9]['insertions'])),_0x558066=this['editor']['editing']['view']['document'],_0x331a89=new _0x52878a(_0x558066,_0x130dd9['map'](_0x5c4fbb=>C(_0x5c4fbb,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x47d3c8[_0x5cfea9]=this['editor']['data']['processor']['toData'](_0x331a89),this['editor']['data']['processor']['useFillerType']('default');}return _0x47d3c8;}async['getRevisionRootsAttributes'](_0x3b8d7d){await this['_loadRevisionData'](_0x3b8d7d);const _0x5647e8={};for(const _0x4546af in _0x3b8d7d['diffData'])_0x3b8d7d['diffData'][_0x4546af]['attachChange']&&!_0x3b8d7d['diffData'][_0x4546af]['attachChange']['isAttached']||(_0x5647e8[_0x4546af]=_0x3b8d7d['diffData'][_0x4546af]['attributesAfter']||{});return _0x5647e8;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x519bc3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xf19eea=0x0;_0xf19eea<_0x519bc3['length'];_0xf19eea++){const _0x1fbcc7=_0x519bc3[_0xf19eea];let _0x8e74f4=!0x1;for(const _0x23eab5 of Object['keys'](_0x1fbcc7))void 0x0===_0x1fbcc7[_0x23eab5]?delete _0x1fbcc7[_0x23eab5]:'id'!==_0x23eab5&&(_0x8e74f4=!0x0);_0x8e74f4||(_0x519bc3[_0xf19eea]=null);}if(_0x519bc3=_0x519bc3['filter'](_0x28b93=>null!==_0x28b93),!_0x519bc3['length'])return;for(let _0x2d3927=0x0;_0x2d3927<_0x519bc3['length'];_0x2d3927++){const _0x4a802e=_0x519bc3[_0x2d3927];void 0x0!==_0x4a802e['fromVersion']&&void 0x0===_0x4a802e['toVersion']&&(_0x4a802e['toVersion']=this['repository']['getRevision'](_0x4a802e['id'])['toVersion']),void 0x0!==_0x4a802e['toVersion']&&void 0x0===_0x4a802e['fromVersion']&&(_0x4a802e['fromVersion']=this['repository']['getRevision'](_0x4a802e['id'])['fromVersion']);}const _0x3b7120=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x519bc3,_0x3b7120)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x7e4cd9=>{if(_0x7e4cd9){for(const _0x445e1e of _0x7e4cd9)this['setRevisionData']({'id':_0x445e1e['id'],'createdAt':_0x445e1e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xf16851,_0x59faf3){let _0x41cea3=this['editor']['config']['get']('initialData'),_0x1f51be=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x41cea3){_0x41cea3={};for(const _0x6ee4fd of this['editor']['model']['document']['getRootNames']())_0x41cea3[_0x6ee4fd]='';}if('string'==typeof _0x41cea3&&(_0x41cea3={'main':_0x41cea3}),void 0x0===_0x1f51be){_0x1f51be={};for(const _0x17e815 of this['editor']['model']['document']['getRootNames']())_0x1f51be[_0x17e815]={};}let _0x44256f=!0x1;const _0xb2a8b7=Object['keys'](_0x41cea3),_0x46ccaf=Object['keys'](_0xf16851);for(const _0x1bfa56 of _0xb2a8b7){if(_0x41cea3[_0x1bfa56]!==_0xf16851[_0x1bfa56]&&''!==_0x41cea3[_0x1bfa56]['trim']()){_0x44256f=!0x0;break;}if(!_0x1fb762(_0x1f51be[_0x1bfa56],_0x59faf3[_0x1bfa56])&&Object['keys'](_0x1f51be[_0x1bfa56])['length']>0x0){_0x44256f=!0x0;break;}}_0x44256f||(_0x44256f=_0x46ccaf['some'](_0x10b23d=>!this['editor']['model']['document']['getRoot'](_0x10b23d))),_0x44256f&&_0x4cdd34('editor-initial-data-replaced-with-revision-data',{'editorData':_0x41cea3,'editorRootsAttributes':_0x1f51be,'revisionData':_0xf16851,'revisionRootsAttributes':_0x59faf3}),this['editor']['config']['set']('initialData',_0xf16851),this['editor']['config']['set']('rootsAttributes',_0x59faf3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1de763=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1de763['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5663b3){const _0x44dd41=this['repository']['getRevisions']();_0x44dd41['reverse']();let _0x4f8151=0x0;for(;_0x4f8151<_0x44dd41['length'];){const _0x5e653e=_0x44dd41[_0x4f8151];if(_0x5e653e===this['currentRevision']){_0x4f8151++;continue;}if(_0x5e653e['id']===this['_initialRevisionId'])break;const _0x3a0a66=_0x5663b3['toVersion']-_0x5e653e['toVersion']||_0x5663b3['fromVersion']-_0x5e653e['fromVersion'];if(_0x3a0a66>0x0)break;if(_0x3a0a66<0x0)_0x4f8151++;else{if(!_0x5663b3['creator']&&_0x5e653e['creator'])break;if(_0x5e653e['creator']||!_0x5663b3['creator']){if(_0x5663b3['createdAt']>_0x5e653e['createdAt'])break;_0x4f8151++;}else _0x4f8151++;}}return _0x4f8151;}['setRevisionData'](_0x1473b4){const _0x59eec7=this['repository']['getRevision'](_0x1473b4['id']);if(_0x1473b4['createdAt']&&(_0x1473b4['createdAt']=new Date(_0x1473b4['createdAt'])),_0x1473b4['authorsIds']){const _0x5f1807=this['editor']['plugins']['get']('Users');_0x1473b4['authors']=_0x1473b4['authorsIds']['map'](_0x159bef=>_0x5f1807['getUser'](_0x159bef));}_0x59eec7['_update'](_0x1473b4,!0x0);}['buildRevisionData']({revision:_0x3889cf=null,from:_0x312534=null,to:_0x2ac0c6=null}){_0x312534=null!==_0x312534?_0x312534:_0x3889cf['fromVersion'],_0x2ac0c6=null!==_0x2ac0c6?_0x2ac0c6:_0x3889cf['toVersion'];const _0x14ea44=this['_revisionDataBuilder']['getData'](_0x312534,_0x2ac0c6),_0x6f834f={'diffData':_0x14ea44['diffData'],'authorsIds':_0x14ea44['authorsIds'],'fromVersion':_0x312534,'toVersion':_0x2ac0c6};if(!_0x3889cf||_0x2ac0c6!==_0x3889cf['toVersion']){const _0x1be13f=_0x2ac0c6-0x1,_0x2d44bf=this['_source']['history']['getOperation'](_0x1be13f);_0x6f834f['createdAt']=_0x2d44bf&&_0x2d44bf['createdAt']||new Date();}if(this['_loadedStateData']&&_0x312534===this['_loadedStateData']['fromVersion']){for(const _0x2ed21d of this['_loadedStateData']['authors'])_0x6f834f['authorsIds']['includes'](_0x2ed21d['id'])||_0x6f834f['authorsIds']['push'](_0x2ed21d['id']);}return _0x6f834f;}['_loadRevisionData'](_0x3506ee){if(!_0x3506ee||_0x3506ee['diffData'])return Promise['resolve']();{const _0x4e9922=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4e9922,'revisionId':_0x3506ee['id']})['then'](_0x595efc=>{_0x3506ee['diffData']=_0x595efc['diffData'];});}}['_bufferUpdate'](_0x531d7b,_0x1bcd73,_0xb0040d){if(this['_bufferedUpdates']['has'](_0x531d7b)){const _0x235be2=this['_bufferedUpdates']['get'](_0x531d7b);_0x1bcd73=_0xb0040d?{..._0x235be2,..._0x1bcd73}:{..._0x1bcd73,..._0x235be2};}this['_bufferedUpdates']['set'](_0x531d7b,_0x1bcd73);}['_getFromVersion'](_0x276610){const _0x13d8aa=this['repository']['getRevisions']();_0x13d8aa['reverse'](),_0x13d8aa['shift']();const _0xca46a2=_0x13d8aa['find'](_0x2a7fe1=>_0x2a7fe1['toVersion']<=_0x276610)['toVersion'];return _0xca46a2<this['_startingVersion']?this['_startingVersion']:_0xca46a2;}['_createInitialRevision'](_0x32ee9b){const _0x5b93ed=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5b93ed)this['_initialRevisionId']=_0x5b93ed['id'];else{const _0x111ed9=!this['editor']['model']['document']['roots']['find'](_0x203b5f=>this['editor']['model']['hasContent'](_0x203b5f)),_0x40c417=this['editor']['plugins']['get']('Users')['me']['id'],_0x16961c=m(this['editor']['locale'],_0x111ed9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x32ee9b,'to':_0x32ee9b,'id':this['_initialRevisionId'],'name':_0x16961c,'creatorId':_0x40c417});}}['_createCurrentRevision'](_0x109693){const _0x3560ce=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3560ce),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x109693,'to':_0x109693,'id':_0x3560ce,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1584d6,from:_0x3ae1a3,to:_0x2efb67,creatorId:_0x35e96f,id:_0x5fb2d8}){const _0x34d5f5=this['buildRevisionData']({'from':_0x3ae1a3,'to':_0x2efb67});_0x34d5f5['name']=_0x1584d6,_0x34d5f5['creatorId']=_0x35e96f,_0x34d5f5['id']=_0x5fb2d8;const _0x46fb2f=this['addRevisionData'](_0x34d5f5);return this['adapter']&&this['_bufferUpdate'](_0x34d5f5['id'],_0x34d5f5,!0x0),_0x46fb2f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x22553b){return(_0x22553b=_0x22553b['filter'](_0x175c1b=>!_0x175c1b['name']||'revision-start'!==_0x175c1b['name']&&'revision-end'!==_0x175c1b['name']))['forEach'](_0x1fa39c=>{'string'!=typeof _0x1fa39c&&(_0x1fa39c['children']=this['_removeRevisionMarkers'](_0x1fa39c['children']),_0x1fa39c['attributes']=_0x1fa39c['attributes']['filter'](_0x3b56bd=>!_0x3b56bd[0x0]['startsWith']('data-revision-')));}),_0x22553b;}}function C(_0x14254c,_0x285a29){const _0x2c8b3a=_0x285a29['editing']['view']['document'];if('string'==typeof _0x14254c)return new _0x101d7d(_0x2c8b3a,_0x14254c);{const _0x283708=_0x14254c['children']['map'](_0x5d1eec=>C(_0x5d1eec,_0x285a29));return new(P[_0x14254c['type']]||_0x42aced)(_0x2c8b3a,_0x14254c['name'],_0x14254c['attributes'],_0x283708);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x24fbe9){this['editor']=_0x24fbe9,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'](_0xb055f7){this['source']=_0xb055f7;const _0x3f35e9=new Map(),_0x6480e1=new Map(),_0x4bb64b=this['editor']['model']['document']['roots']['map'](_0x2fe237=>_0x2fe237['rootName']);for(const _0x22c8a4 of _0x4bb64b){const _0x259bf5=this['editor']['model']['document']['getRoot'](_0x22c8a4),_0x39957b=T(_0x259bf5);_0x3f35e9['set'](_0x22c8a4,_0x39957b),_0x6480e1['set'](_0x22c8a4,Object['fromEntries'](_0x259bf5['getAttributes']()));}const _0x1a8c8a=Array['from'](this['editor']['model']['markers'])['map'](_0x258a12=>[_0x258a12['name'],_0x258a12['getRange']()]),_0x4e2c14=this['source']['version'];this['_saveMetaData'](_0x4e2c14,_0x3f35e9,_0x1a8c8a,_0x6480e1),this['_startingRevisionId']=this['_revisionId'];const _0x355b32=new Map(),_0x87b25b=new Map();for(const _0x54904b of _0x4bb64b){const _0x494bd6=F(_0x54904b);_0x355b32['set'](_0x54904b,_0x494bd6),_0x87b25b['set'](_0x54904b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x355b32,[],_0x87b25b);}['getData'](_0x3685c5,_0x5bdbfa){if(this['_lastFrom']===_0x3685c5&&this['_lastTo']<=_0x5bdbfa)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5bdbfa,!0x0);else{if(!this['_savedMetaData']['has'](_0x3685c5)){const _0x14fa42=this['_getPreviousFrom'](_0x3685c5);this['_calculateMetaData'](_0x14fa42,_0x3685c5,!0x1);}this['_calculateMetaData'](_0x3685c5,_0x5bdbfa,!0x0);}return this['_lastFrom']=_0x3685c5,this['_lastTo']=_0x5bdbfa,this['_getState']();}['loadState'](_0x2014ab){this['_reset'](),this['_lastFrom']=_0x2014ab['fromVersion'],this['_lastTo']=_0x2014ab['toVersion'];for(const _0x27f037 in _0x2014ab['diffData']){const _0x51c50a=_0x2014ab['diffData'][_0x27f037]['attachChange'],_0x40fcdb=_0x4778e2(_0x2014ab['diffData'][_0x27f037]['attributesBefore'])||{},_0x13f574=this['_makeModelFromViewString'](_0x2014ab['diffData'][_0x27f037]['deletions']);_0x13f574['rootName']=_0x27f037,_0x13f574['_isAttached']=!_0x51c50a||!_0x51c50a['isAttached'],_0x13f574['isAttached']=()=>_0x13f574['_isAttached'],this['_baseRoots']['set'](_0x27f037,_0x13f574),this['_baseRootsAttributes']['set'](_0x27f037,_0x40fcdb),_0x51c50a&&this['_touchedRoots']['set'](_0x27f037,_0x51c50a);const _0x3d737d=this['_makeIdsRoot'](_0x13f574);this['_baseIdsRoots']['set'](_0x27f037,_0x3d737d);for(const [_0x20ed0e,_0xbbd983]of _0x13f574['markers']){if(!_0x20ed0e['startsWith']('revision:'))continue;const _0x267b24=_0x20ed0e['split'](':')[0x2];for(const _0x58726a of _0xbbd983['getWalker']({'singleCharacters':!0x0})){const _0x39c897=this['_getVidAttributeName'](_0x58726a),_0x13b0c3='elementEnd'==_0x58726a['type']?_0x58726a['previousPosition']['path']['slice'](0x0,-0x1):_0x58726a['previousPosition']['path'],_0x180092=_0x3d737d['getNodeByPath'](_0x13b0c3)['getAttribute'](_0x39c897);this['_touched']['set'](_0x180092,{'userId':_0x267b24});}}}this['_startingRevisionId']=this['_revisionId'];const _0x24a450=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x219c19=>!this['_touched']['has'](_0x219c19));let _0xc7522d=0x0;const _0x445aa2=new Map();for(const _0x5e817e in _0x2014ab['diffData']){const _0x49f23b=_0x2014ab['diffData'][_0x5e817e]['attachChange'],_0x11af7a=_0x4778e2(_0x2014ab['diffData'][_0x5e817e]['attributesAfter'])||{},_0x29c5ac=this['_makeModelFromViewString'](_0x2014ab['diffData'][_0x5e817e]['insertions']);_0x29c5ac['rootName']=_0x5e817e,_0x29c5ac['_isAttached']=!_0x49f23b||_0x49f23b['isAttached'],_0x29c5ac['isAttached']=()=>_0x29c5ac['_isAttached'],this['_diffRoots']['set'](_0x5e817e,_0x29c5ac),this['_diffRootsAttributes']['set'](_0x5e817e,_0x11af7a);const _0x4e6ddd=this['_makeIdsRoot'](_0x29c5ac,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5e817e,_0x4e6ddd),_0x445aa2['set'](_0x5e817e,_0x29c5ac['isAttached']()?_0x11af7a:{});for(const [_0xb06187,_0x24b128]of _0x29c5ac['markers']){if(!_0xb06187['startsWith']('revision:'))continue;const _0x54b6ee=_0xb06187['split'](':')[0x2];for(const _0x204474 of _0x24b128['getWalker']({'singleCharacters':!0x0})){const _0x98ba01=this['_getVidAttributeName'](_0x204474),_0x7135b8=this['_revisionId']++,_0xcf4e8b='elementEnd'==_0x204474['type']?_0x204474['previousPosition']['path']['slice'](0x0,-0x1):_0x204474['previousPosition']['path'];_0x4e6ddd['getNodeByPath'](_0xcf4e8b)['_setAttribute'](_0x98ba01,_0x7135b8),this['_touched']['set'](_0x7135b8,{'userId':_0x54b6ee});}}for(const _0x137b8b of this['editor']['model']['createRangeIn'](_0x29c5ac)['getWalker']({'singleCharacters':!0x0})){const _0x180df6=this['_getVidAttributeName'](_0x137b8b),_0x2bc0a1='elementEnd'==_0x137b8b['type']?_0x137b8b['previousPosition']['path']['slice'](0x0,-0x1):_0x137b8b['previousPosition']['path'],_0x50dcfe=_0x4e6ddd['getNodeByPath'](_0x2bc0a1);_0x50dcfe['getAttribute'](_0x180df6)>0x0||_0x50dcfe['_setAttribute'](_0x180df6,_0x24a450[_0xc7522d++]);}for(const [_0x329f9e,_0x3759cd]of _0x29c5ac['markers'])_0x329f9e['startsWith']('revision:')||this['_markers']['set'](_0x329f9e,_0x3759cd);}const _0xfdf15e=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0xfdf15e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xfdf15e,0x1));const _0x131b9b=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x131b9b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x131b9b,0x1));const _0x2ae71b=Array['from'](this['_diffRoots'])['map'](([_0xc20e8f,_0x926e3d])=>[_0xc20e8f,T(_0x926e3d)]);this['_saveMetaData'](this['_lastTo'],_0x2ae71b,this['_markers'],_0x445aa2);}['_makeModelFromViewString'](_0x150240){const _0x5996ba=JSON['parse'](_0x150240),_0x3b93b1=this['editor']['editing']['view']['document'],_0x31cc90=new _0x52878a(_0x3b93b1,_0x5996ba['map'](_0x55d9db=>C(_0x55d9db,this['editor'])));return this['editor']['data']['toModel'](_0x31cc90);}['_saveMetaData'](_0x57b8ec,_0x4dbfb7,_0x28245c,_0x312820){const _0x2e1230=new Map(_0x4dbfb7),_0xee3bb5=new Map(_0x4778e2(_0x312820)),_0xfbab4a=new Map();for(const [_0x3eda28,_0x50b8a7]of _0x28245c)_0xfbab4a['set'](_0x3eda28,{'start':_0x50b8a7['start']['clone'](),'end':_0x50b8a7['end']['clone'](),'rootName':_0x50b8a7['root']['rootName']});this['_savedMetaData']['set'](_0x57b8ec,{'roots':_0x2e1230,'markers':_0xfbab4a,'rootsAttributes':_0xee3bb5});}['_removeMetaData'](_0x3d73f4){this['_savedMetaData']['delete'](_0x3d73f4);}['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'](_0x8572a9,_0x1fdd25=null){let _0x1082ed=null;_0x8572a9['is']('documentFragment')||(_0x1082ed=new ft(_0x8572a9['name'],{'vid_start':null===_0x1fdd25?this['_revisionId']++:_0x1fdd25++}));const _0x8ea030=[];for(const _0x973fc0 of _0x8572a9['getChildren']())if(_0x973fc0['is']('element')){_0x8ea030['push'](this['_makeIdsRoot'](_0x973fc0,_0x1fdd25));const _0x5eb93c=_0x8ea030[_0x8ea030['length']-0x1];null!==_0x1fdd25&&(_0x1fdd25=_0x5eb93c['is']('element','$text')?_0x5eb93c['getAttribute']('vid')+0x1:_0x5eb93c['getAttribute']('vid_end')+0x1);}else{for(let _0x40cdec=0x0;_0x40cdec<_0x973fc0['offsetSize'];_0x40cdec++)_0x8ea030['push'](new ft('$text',{'vid':null===_0x1fdd25?this['_revisionId']++:_0x1fdd25++}));}if(_0x8572a9['is']('documentFragment')){const _0x5b012a=F(_0x8572a9['rootName']);return _0x5b012a['_insertChild'](0x0,_0x8ea030),_0x5b012a;}return _0x1082ed['_setAttribute']('vid_end',null===_0x1fdd25?this['_revisionId']++:_0x1fdd25++),_0x1082ed['_insertChild'](0x0,_0x8ea030),_0x1082ed;}['_calculateMetaData'](_0x373605,_0x521c6d,_0x36135a){this['_reset']();const {roots:_0x3adbbe,markers:_0x494464,rootsAttributes:_0x564a41}=this['_savedMetaData']['get'](_0x373605);this['_baseRoots']=new Map(_0x3adbbe),this['_baseRootsAttributes']=new Map(_0x4778e2(_0x564a41));for(const [_0x31db33,_0x35f1e8]of this['_baseRoots'])if('$graveyard'!==_0x31db33&&(this['_diffRoots']['set'](_0x31db33,T(_0x35f1e8)),this['_diffRootsAttributes']=new Map(_0x4778e2(_0x564a41)),_0x36135a)){const _0x1a316c=this['_revisionId'];this['_idsRoots']['set'](_0x31db33,this['_makeIdsRoot'](_0x35f1e8)),this['_baseIdsRoots']['set'](_0x31db33,this['_makeIdsRoot'](_0x35f1e8,_0x1a316c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x36135a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2f791d,_0x4e95a4]of _0x494464){const _0x213280=this['_baseRoots']['get'](_0x4e95a4['rootName']),_0x557ebe=this['_diffRoots']['get'](_0x4e95a4['rootName']),_0xf3ccf5=new vt(this['_fixPosition'](_0x4e95a4['start'],_0x213280),this['_fixPosition'](_0x4e95a4['end'],_0x213280)),_0x13be17=this['_fixRange'](_0xf3ccf5,_0x557ebe);_0x213280['markers']['set'](_0x2f791d,_0xf3ccf5),this['_markers']['set'](_0x2f791d,_0x13be17);}this['_applyOperations'](_0x373605,_0x521c6d,_0x36135a);}['_applyOperations'](_0x1d48c7,_0x5c1168,_0x5ec17f){for(const _0xa4bfa5 of this['source']['getOperations'](_0x1d48c7,_0x5c1168))this['_handleOperation'](_0xa4bfa5,_0x5ec17f);for(const _0x71023d of this['_diffRoots']['values']())_0x71023d['markers']['clear']();for(const [_0x39a9ae,_0x2b3d46]of this['_markers']){this['_diffRoots']['get'](_0x2b3d46['root']['rootName'])['markers']['set'](_0x39a9ae,_0x2b3d46['clone']());}const _0x495201=new Map(),_0x44def0=new Map();for(const [_0x263c71,_0x4e3470]of this['_diffRoots'])_0x495201['set'](_0x263c71,T(_0x4e3470)),_0x44def0['set'](_0x263c71,this['_diffRootsAttributes']['get'](_0x263c71));this['_saveMetaData'](_0x5c1168,_0x495201,this['_markers'],_0x44def0);}['_getPreviousFrom'](_0x5300c1){const _0x2e4237=Array['from'](this['_savedMetaData']['keys']());_0x2e4237['sort']((_0x3da02d,_0x4624ee)=>_0x3da02d-_0x4624ee),_0x2e4237['reverse']();for(const _0x4b0bc4 of _0x2e4237)if(_0x4b0bc4<_0x5300c1)return _0x4b0bc4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3ef0f0,_0x54beab){const _0x84cdc8=Array['from'](_0x54beab['markers'])['map'](([_0x15fb12,_0x3c3157])=>[_0x15fb12,this['_fixRange'](_0x3c3157,_0x3ef0f0)]);_0x3ef0f0['markers']=new Map(_0x84cdc8);}['_transformMarkers'](_0x32b967){for(const _0x172f3d of this['_markers']['values']()){const _0x5d92d3=_0x172f3d['getTransformedByOperation'](_0x32b967),_0x2d8596=vt['_createFromRanges'](_0x5d92d3);_0x172f3d['start']=_0x2d8596['start'],_0x172f3d['end']=_0x2d8596['end'];}}['_handleOperation'](_0x53c4ae,_0x3598bf){if('addRoot'!=_0x53c4ae['type']&&'detachRoot'!=_0x53c4ae['type']){if('insert'==_0x53c4ae['type']){const _0x52e77b=_0x53c4ae['position']['root']['rootName'];this['_diffRoots']['has'](_0x52e77b)||(this['_diffRoots']['set'](_0x52e77b,F(_0x52e77b,!0x0)),this['_diffRootsAttributes']['set'](_0x52e77b,{}),_0x3598bf&&this['_idsRoots']['set'](_0x52e77b,F(_0x52e77b,!0x0)));}else{if('addRootAttribute'==_0x53c4ae['type']||'removeRootAttribute'==_0x53c4ae['type']||'changeRootAttribute'==_0x53c4ae['type'])return void this['_handleRootAttributeOperation'](_0x53c4ae);'marker'==_0x53c4ae['type']&&this['_handleMarkerOperation'](_0x53c4ae);}if('marker'!==_0x53c4ae['type']){const _0x4155ab=this['_cloneOperation'](_0x53c4ae,this['_diffRoots']);_0x4155ab['_execute'](),this['_transformMarkers'](_0x4155ab);}if(_0x3598bf)switch(_0x53c4ae['type']){case'insert':this['_handleInsertOperation'](_0x53c4ae);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x53c4ae);break;case'merge':this['_handleMergeOperation'](_0x53c4ae);break;case'split':this['_handleSplitOperation'](_0x53c4ae);}}else this['_handleRootOperation'](_0x53c4ae,_0x3598bf);}['_cloneOperation'](_0x4337b4,_0x2a74fd){const _0x487972=_0x4337b4['clone']();return _0x487972['_authorId']=_0x4337b4['_authorId'],this['_fixOperation'](_0x487972,_0x2a74fd),_0x487972;}['_getBaseVids'](_0x52633a){return _0x52633a['map'](_0x5d709f=>{const _0x3076c8=this['_getVidAttributeName'](_0x5d709f);return Number(_0x5d709f['item']['getAttribute'](_0x3076c8));});}['_generateTape'](_0x3f01bb,_0x37638f){if(_0x3f01bb['is']('element','$text'))_0x37638f['push']({'item':_0x3f01bb,'type':'text'});else{_0x3f01bb['is']('element')&&_0x37638f['push']({'item':_0x3f01bb,'type':'elementStart'});for(const _0x4c7419 of _0x3f01bb['getChildren']())this['_generateTape'](_0x4c7419,_0x37638f);_0x3f01bb['is']('element')&&_0x37638f['push']({'item':_0x3f01bb,'type':'elementEnd'});}return _0x37638f;}['_getState'](){const _0x4bf91b=new Map(this['_touched']),_0x536aa5=new Map(_0x4bf91b),_0x52230e=new Map(),_0x18a1fd={'insertions':{},'deletions':{}},_0x9e5093={'insertions':{},'deletions':{}},_0x723e4b=new Map(),_0x133386=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x133386['delete']('$graveyard');for(const _0x25afee of _0x133386){const _0x4115f2=this['_diffRoots']['get'](_0x25afee)||F(_0x25afee,!0x1),_0x384298=this['_baseRoots']['get'](_0x25afee)||F(_0x25afee,!0x1);_0x4115f2['isAttached']()||_0x384298['isAttached']()?(_0x18a1fd['insertions'][_0x25afee]=T(_0x4115f2),_0x18a1fd['deletions'][_0x25afee]=T(_0x384298),this['_copyMarkers'](_0x18a1fd['deletions'][_0x25afee],_0x384298),this['_copyMarkers'](_0x18a1fd['insertions'][_0x25afee],_0x4115f2),_0x9e5093['insertions'][_0x25afee]=this['_generateTape'](this['_idsRoots']['get'](_0x25afee),[]),_0x9e5093['deletions'][_0x25afee]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x25afee)||F(_0x25afee,!0x1),[])):_0x133386['delete'](_0x25afee);}for(const _0x429c66 of _0x133386){const _0x54e040=_0x9e5093['insertions'][_0x429c66];for(const _0x1e9367 of _0x54e040){const _0x342527=this['_getVidAttributeName'](_0x1e9367),_0x5188a2=_0x1e9367['item']['getAttribute'](_0x342527);_0x536aa5['delete'](_0x5188a2),_0x5188a2>=this['_startingRevisionId']&&_0x52230e['set'](_0x5188a2,_0x4bf91b['get'](_0x5188a2));}}for(const _0x5eeb37 of _0x133386){const _0x1bfbb3=_0x9e5093['insertions'][_0x5eeb37],_0x2a3ac0=this['_getBaseVids'](_0x9e5093['deletions'][_0x5eeb37]);let _0x522ba6=0x0;for(const _0x3589e1 of _0x1bfbb3){const _0x1af6f0=this['_getVidAttributeName'](_0x3589e1),_0x2cde56=_0x3589e1['item']['getAttribute'](_0x1af6f0);if(!_0x52230e['has'](_0x2cde56)&&!_0x723e4b['has'](_0x2cde56)){if(_0x536aa5['has'](_0x2cde56))_0x522ba6++;else{if(_0x2cde56!=_0x2a3ac0[_0x522ba6]){const _0xb613e9=_0x4bf91b['get'](_0x2cde56)||_0x4bf91b['get'](_0x2a3ac0[_0x522ba6]);for(;_0x2cde56!=_0x2a3ac0[_0x522ba6];)_0x536aa5['has'](_0x2a3ac0[_0x522ba6])||(_0x723e4b['set'](_0x2a3ac0[_0x522ba6],_0xb613e9),_0x4bf91b['set'](_0x2a3ac0[_0x522ba6],_0xb613e9)),_0x522ba6++;}_0x522ba6++;}}}}for(const _0xf936a5 of _0x133386){const _0x3c4b6b=_0x9e5093['insertions'][_0xf936a5];for(const _0x4871f1 of _0x3c4b6b){const _0x30d7bc=this['_getVidAttributeName'](_0x4871f1),_0x16432a=_0x4871f1['item']['getAttribute'](_0x30d7bc);if(_0x723e4b['has'](_0x16432a)){const _0x4bc77d=_0x723e4b['get'](_0x16432a);_0x536aa5['has'](_0x16432a)||_0x536aa5['set'](_0x16432a,{..._0x4bc77d}),_0x52230e['set'](_0x16432a,{..._0x4bc77d});}}}for(const _0x5b134b of _0x536aa5['keys']())_0x5b134b>=this['_startingRevisionId']&&_0x536aa5['delete'](_0x5b134b);const _0x4ff7cf=new Map();for(const _0x3cfb50 of _0x133386){let _0x4c30ad=_0x9e5093['insertions'][_0x3cfb50];for(const _0xf56414 of _0x4c30ad)if(_0xf56414['item']['is']('element','tableCell')){const _0x4253bc=this['_getVidAttributeName'](_0xf56414),_0x32eeb=_0xf56414['item']['getAttribute'](_0x4253bc);if(_0x52230e['has'](_0x32eeb)){const _0x204c15=_0xf56414['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f27a5=_0x4ff7cf['get'](_0x204c15)||new Set();_0x4f27a5['add'](_0x52230e['get'](_0x32eeb)['userId']),_0x4ff7cf['set'](_0x204c15,_0x4f27a5);}}_0x4c30ad=_0x9e5093['deletions'][_0x3cfb50];for(const _0x59c8dc of _0x4c30ad)if(_0x59c8dc['item']['is']('element','tableCell')){const _0xd1375a=this['_getVidAttributeName'](_0x59c8dc),_0xf63eac=_0x59c8dc['item']['getAttribute'](_0xd1375a);if(_0x536aa5['has'](_0xf63eac)){const _0x588790=_0x59c8dc['item']['parent']['parent']['getAttribute']('vid_start'),_0x341795=_0x4ff7cf['get'](_0x588790)||new Set();_0x341795['add'](_0x536aa5['get'](_0xf63eac)['userId']),_0x4ff7cf['set'](_0x588790,_0x341795);}}for(const _0xbd7de2 of _0x4ff7cf['keys']())(_0x52230e['has'](_0xbd7de2)||_0x536aa5['has'](_0xbd7de2))&&_0x4ff7cf['delete'](_0xbd7de2);}for(const _0x379ccb of _0x133386){const _0x581f98=_0x9e5093['insertions'][_0x379ccb];let _0x3c6850=null,_0x381987=null;for(const _0x18adfe of _0x581f98){const _0x3a7f8f=this['_getVidAttributeName'](_0x18adfe),_0x420774=_0x18adfe['item']['getAttribute'](_0x3a7f8f),_0x16557e=_0x4ff7cf['get'](_0x420774);_0x16557e&&'elementStart'==_0x18adfe['type']&&(_0x3c6850=Array['from'](_0x16557e)[0x0],_0x381987=_0x18adfe['item']['getAttribute']('vid_end')),_0x3c6850&&(_0x536aa5['set'](_0x420774,{'userId':_0x3c6850}),_0x52230e['set'](_0x420774,{'userId':_0x3c6850})),_0x420774==_0x381987&&(_0x3c6850=null,_0x381987=null);}}const _0x4f6b91={},_0x5b0b41=new Set();for(const _0x1f76b3 of _0x133386){const _0x419933=_0x18a1fd['deletions'][_0x1f76b3],_0x202736=_0x18a1fd['insertions'][_0x1f76b3];for(const {userId:_0x2e31bd}of this['_touchedMarkers']['values']())null!==_0x2e31bd&&_0x5b0b41['add'](_0x2e31bd);for(const {userId:_0x475c66}of this['_touchedRoots']['values']())null!==_0x475c66&&_0x5b0b41['add'](_0x475c66);this['_markChanges'](_0x202736,_0x9e5093['insertions'][_0x1f76b3],_0x52230e,'insertion',_0x5b0b41),this['_markChanges'](_0x419933,_0x9e5093['deletions'][_0x1f76b3],_0x536aa5,'deletion',_0x5b0b41),_0x4f6b91[_0x1f76b3]={'insertions':this['_prepareViewToSave'](_0x202736),'deletions':this['_prepareViewToSave'](_0x419933),'attachChange':this['_touchedRoots']['get'](_0x1f76b3)||null,'attributesBefore':_0x4778e2(this['_baseRootsAttributes']['get'](_0x1f76b3))||{},'attributesAfter':_0x4778e2(this['_diffRootsAttributes']['get'](_0x1f76b3))};}return{'diffData':_0x4f6b91,'authorsIds':Array['from'](_0x5b0b41)};}['_processRootBeforeSave'](_0x3c6531){for(const [,_0x19f516]of _0x3c6531['markers']){const _0x241ea4=_0x19f516['start']['getAncestors']()['filter'](_0x3a6117=>'tableCell'==_0x3a6117['name']);for(const _0x1cb0fb of _0x241ea4)0x1==_0x1cb0fb['childCount']&&_0x1cb0fb['getChild'](0x0)['is']('element','paragraph')&&_0x1cb0fb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x38627b){this['_processRootBeforeSave'](_0x38627b);const _0x517a59=this['editor']['data']['toView'](_0x38627b,{}),_0x11ea62=Array['from'](_0x517a59['getChildren']())['map'](_0xa1eb2f=>this['_getViewJson'](_0xa1eb2f));return JSON['stringify'](_0x11ea62);}['_getViewJson'](_0x26e73a){if(_0x26e73a['is']('$text'))return _0x26e73a['data'];{const _0xffd793=_0x26e73a;return{'type':Object['keys'](P)['find'](_0x14d9e7=>_0x26e73a instanceof P[_0x14d9e7]),'name':_0xffd793['name'],'attributes':Array['from'](_0xffd793['getAttributes']()),'children':Array['from'](_0xffd793['getChildren']())['map'](_0x5008bd=>this['_getViewJson'](_0x5008bd))};}}['_markChanges'](_0xe64262,_0x30a562,_0x31e2cd,_0xab475,_0xa70d23){let _0x29a651=null,_0x5152cc=null,_0xeafa32=0x0;const _0x3580d1=this['editor']['model'];for(let _0x6c766=0x0;_0x6c766<_0x30a562['length'];_0x6c766++){const _0x3005d6=this['_getVidAttributeName'](_0x30a562[_0x6c766]),_0x40bab1=_0x30a562[_0x6c766]['item']['getAttribute'](_0x3005d6),_0x55230d=_0x31e2cd['get'](_0x40bab1),_0x510094=_0x6c766==_0x30a562['length']-0x1;(!_0x29a651&&_0x55230d&&(_0x29a651=_0x55230d,_0x5152cc=_0x30a562[_0x6c766]),_0x29a651&&(!_0x55230d||_0x55230d['userId']!=_0x29a651['userId']))&&(_0x5c53e4(_0x55230d,B(_0x5152cc,_0xe64262,_0x3580d1),B(_0x30a562[_0x6c766],_0xe64262,_0x3580d1)),_0x29a651=_0x55230d||null,_0x5152cc=_0x55230d?_0x30a562[_0x6c766]:null),_0x29a651&&_0x510094&&_0x5c53e4(_0x55230d,B(_0x5152cc,_0xe64262,_0x3580d1),J(_0x30a562[_0x6c766],_0xe64262,_0x3580d1));}function _0x5c53e4(_0x5f98cf,_0x53dc90,_0x5df4d8){const _0x51bfe9=_0x29a651['userId'],_0x2025ee='revision:'+_0xab475+':'+_0x51bfe9+':'+_0xeafa32++,_0x1b88bd=_0x3580d1['createRange'](_0x53dc90,_0x5df4d8);_0xe64262['markers']['set'](_0x2025ee,_0x1b88bd),null!==_0x51bfe9&&_0xa70d23['add'](_0x51bfe9);}}['_getVidAttributeName'](_0x4b9dd6){switch(_0x4b9dd6['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x39c192,_0x51b806){_0x39c192['baseVersion']=null;for(const _0x3096e3 in _0x39c192){const _0x2b5beb=_0x39c192[_0x3096e3];if(_0x2b5beb instanceof gt){const _0x428357=_0x51b806['get'](_0x2b5beb['root']['rootName']);_0x39c192[_0x3096e3]=this['_fixPosition'](_0x2b5beb,_0x428357);}if(_0x2b5beb instanceof vt){const _0x50417d=_0x51b806['get'](_0x2b5beb['root']['rootName']);_0x39c192[_0x3096e3]=this['_fixRange'](_0x2b5beb,_0x50417d);}'root'===_0x3096e3&&(_0x39c192['root']=_0x51b806['get'](_0x39c192['root']['rootName']));}}['_fixRange'](_0x19a60e,_0x14dda9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x19a60e['start'],_0x14dda9),this['_fixPosition'](_0x19a60e['end'],_0x14dda9));}['_fixPosition'](_0x253f9d,_0x5da1c3){return this['editor']['model']['createPositionFromPath'](_0x5da1c3,_0x253f9d['path'],_0x253f9d['stickiness']);}['_handleInsertOperation'](_0x5ae571){const _0x5d9d73=this['_idsRoots']['get'](_0x5ae571['position']['root']['rootName']),_0xb07712=this['_fixPosition'](_0x5ae571['position'],_0x5d9d73),_0x22283b=null===_0x5ae571['_authorId']?null:_0x5ae571['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb228d3=_0xb07712['parent'],_0xebd487=this['_revisionId'],_0x40ca7e=[];for(const _0x36e966 of _0x5ae571['nodes'])if(_0x36e966['is']('element'))_0x40ca7e['push'](this['_makeIdsRoot'](_0x36e966));else{for(let _0x1c4631=0x0;_0x1c4631<_0x36e966['offsetSize'];_0x1c4631++)_0x40ca7e['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5402de=this['_revisionId'];for(let _0x134804=_0xebd487;_0x134804<_0x5402de;_0x134804++)this['_touched']['set'](_0x134804,{'userId':_0x22283b});_0xb228d3['_insertChild'](_0xb07712['offset'],_0x40ca7e);}['_handleMoveOperation'](_0x5d6e56){(_0x5d6e56=this['_cloneOperation'](_0x5d6e56,this['_idsRoots']))['_execute']();const _0x2b80ce=null===_0x5d6e56['_authorId']?null:_0x5d6e56['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55ac12=_0x5d6e56['getMovedRangeStart'](),_0x370ed8=_0x55ac12['parent'],_0xfcdebb=_0x55ac12['offset'];!function _0x488abc(_0xa026f7,_0x5ca3a5,_0xcdc4cc,_0x5b5ab2){for(let _0x5f3b59=_0xcdc4cc;_0x5f3b59<_0x5b5ab2;_0x5f3b59++){const _0x21fb3d=_0x5ca3a5['getChild'](_0x5f3b59);_0x21fb3d['is']('element','$text')?_0xa026f7['set'](_0x21fb3d['getAttribute']('vid'),{'userId':_0x2b80ce}):(_0xa026f7['set'](_0x21fb3d['getAttribute']('vid_start'),{'userId':_0x2b80ce}),_0x488abc(_0xa026f7,_0x21fb3d,0x0,_0x21fb3d['childCount']),_0xa026f7['set'](_0x21fb3d['getAttribute']('vid_end'),{'userId':_0x2b80ce}));}}(this['_touched'],_0x370ed8,_0xfcdebb,_0xfcdebb+_0x5d6e56['howMany']);}['_handleMergeOperation'](_0x161a69){const _0x33dede=null===(_0x161a69=this['_cloneOperation'](_0x161a69,this['_idsRoots']))['_authorId']?null:_0x161a69['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5424ba=_0x161a69['targetPosition']['parent'],_0x5117de=_0x161a69['sourcePosition']['parent'],_0x329002=_0x5424ba['getAttribute']('vid_end'),_0x4deb11=_0x5117de['getAttribute']('vid_start');_0x5424ba['_setAttribute']('vid_end',_0x5117de['getAttribute']('vid_end')),_0x5117de['_setAttribute']('vid_end',_0x329002),this['_touched']['set'](_0x4deb11,{'userId':_0x33dede}),this['_touched']['set'](_0x329002,{'userId':_0x33dede}),_0x161a69['_execute']();}['_handleSplitOperation'](_0x13c96f){const _0x4982bc=null===(_0x13c96f=this['_cloneOperation'](_0x13c96f,this['_idsRoots']))['_authorId']?null:_0x13c96f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5dbd4e=_0x13c96f['graveyardPosition'],_0x176975=_0x13c96f['splitPosition']['parent'];_0x13c96f['_execute']();const _0x371983=_0x176975['getAttribute']('vid_end'),_0x322a0c=_0x13c96f['insertionPosition']['nodeAfter'];if(_0x5dbd4e){const _0x51c8f2=_0x322a0c['getAttribute']('vid_end'),_0x55a7f5=_0x176975['getAttribute']('vid_end');_0x176975['_setAttribute']('vid_end',_0x51c8f2),_0x322a0c['_setAttribute']('vid_end',_0x55a7f5),this['_touched']['set'](_0x176975['getAttribute']('vid_end'),{'userId':_0x4982bc}),this['_touched']['set'](_0x322a0c['getAttribute']('vid_start'),{'userId':_0x4982bc});}else{const _0x92bb28=this['_revisionId']++,_0x2dd443=this['_revisionId']++;_0x176975['_setAttribute']('vid_end',_0x92bb28),_0x322a0c['_setAttribute']('vid_start',_0x2dd443),_0x322a0c['_setAttribute']('vid_end',_0x371983),this['_touched']['set'](_0x92bb28,{'userId':_0x4982bc}),this['_touched']['set'](_0x2dd443,{'userId':_0x4982bc});}}['_handleMarkerOperation'](_0x5ef293){if(!_0x5ef293['affectsData'])return;const _0x4f5f35=(_0x5ef293=this['_cloneOperation'](_0x5ef293,this['_diffRoots']))['oldRange']?_0x5ef293['oldRange']['root']:null,_0x373b20=_0x5ef293['newRange']?_0x5ef293['newRange']['root']:null;_0x4f5f35&&this['_markers']['delete'](_0x5ef293['name']),_0x373b20&&this['_markers']['set'](_0x5ef293['name'],_0x5ef293['newRange']['clone']());const _0x6c4997=null===_0x5ef293['_authorId']?null:_0x5ef293['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ce8cd=_0x5ef293['name'];if(!this['_touchedMarkers']['has'](_0x4ce8cd))return void this['_touchedMarkers']['set'](_0x4ce8cd,{'range':_0x5ef293['oldRange'],'userId':_0x6c4997});const _0x23c72f=this['_touchedMarkers']['get'](_0x4ce8cd),_0x197102=_0x23c72f['range'],_0x23c475=_0x5ef293['newRange'];null==_0x197102&&null==_0x23c475||_0x197102&&_0x23c475&&_0x197102['isEqual'](_0x23c475)?this['_touchedMarkers']['delete'](_0x5ef293['name']):_0x23c72f['userId']=_0x6c4997;}['_handleRootOperation'](_0x1e139f,_0x3a3fe8){this['_diffRoots']['has'](_0x1e139f['rootName'])?this['_diffRoots']['get'](_0x1e139f['rootName'])['_isAttached']=_0x1e139f['isAdd']:(this['_diffRoots']['set'](_0x1e139f['rootName'],F(_0x1e139f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e139f['rootName'],{}),_0x3a3fe8&&this['_idsRoots']['set'](_0x1e139f['rootName'],F(_0x1e139f['rootName'],!0x0)));const _0x5d7bcc=null===_0x1e139f['_authorId']?null:_0x1e139f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb20c99=this['_touchedRoots']['get'](_0x1e139f['rootName']);_0xb20c99&&_0xb20c99['userId']===_0x5d7bcc?this['_touchedRoots']['delete'](_0x1e139f['rootName']):this['_touchedRoots']['set'](_0x1e139f['rootName'],{'userId':_0x5d7bcc,'isAttached':_0x1e139f['isAdd']});}['_handleRootAttributeOperation'](_0x47ad67){const _0xf85a4b=this['_diffRootsAttributes']['get'](_0x47ad67['root']['rootName']);null===_0x47ad67['newValue']?delete _0xf85a4b[_0x47ad67['key']]:_0xf85a4b[_0x47ad67['key']]=_0x47ad67['newValue'];}}function T(_0x79e51){const _0x34be06=F(_0x79e51['rootName'],_0x79e51['isAttached']());for(const _0x54d7f5 of _0x79e51['getChildren']()){const _0x2434fc=_0x54d7f5['_clone'](!0x0);_0x34be06['_appendChild'](_0x2434fc);}return _0x34be06;}function F(_0x2dd759,_0x97837c=!0x0){const _0x2ec1b0=new mt();return _0x2ec1b0['rootName']=_0x2dd759,_0x2ec1b0['_isAttached']=_0x97837c,_0x2ec1b0['isAttached']=()=>_0x2ec1b0['_isAttached'],_0x2ec1b0;}function B(_0x4342a0,_0x45faa3,_0x517d4e){const _0x1bd2ed='elementEnd'==_0x4342a0['type']?_0x517d4e['createPositionAt'](_0x4342a0['item'],'end'):_0x517d4e['createPositionBefore'](_0x4342a0['item']);return _0x517d4e['createPositionFromPath'](_0x45faa3,_0x1bd2ed['path'],_0x1bd2ed['stickiness']);}function J(_0x444364,_0x4eb73b,_0x49b8e3){const _0x3dd6a7='elementStart'==_0x444364['type']?_0x49b8e3['createPositionAt'](_0x444364['item'],0x0):_0x49b8e3['createPositionAfter'](_0x444364['item']);return _0x49b8e3['createPositionFromPath'](_0x4eb73b,_0x3dd6a7['path'],_0x3dd6a7['stickiness']);}class ns extends _0x326023{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x103170,_0x4170c2){super(_0x103170),this['focusTracker']=new _0x4e6e95(),this['keystrokes']=new _0x9c92d6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4170c2),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'](),_0x3d084a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xabff4a=_0x54e084=>_0x54e084['stopPropagation']();this['keystrokes']['set']('arrowright',_0xabff4a),this['keystrokes']['set']('arrowleft',_0xabff4a),this['keystrokes']['set']('arrowup',_0xabff4a),this['keystrokes']['set']('arrowdown',_0xabff4a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x376976){this['revisionNameInputView']['fieldView']['element']['value']=_0x376976['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x10df97){const _0x1fcbc7=new nt(this['locale'],_0xde4bb0),_0x56357e=_0x1fcbc7['fieldView'];_0x56357e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x263254=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x10df97&&(_0x263254+='\x20('+m(this['locale'],'optional')+')'),(_0x1fcbc7['label']=_0x263254,_0x56357e['on']('input',()=>{this['revisionNameInputValue']=_0x56357e['element']['value']['trim']();}),_0x1fcbc7);}}class u extends _0x1f8aed{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4103d4=this['editor'],_0x525672=_0x4103d4['plugins']['get']('RevisionTracker');_0x4103d4['ui']['componentFactory']['add']('revisionHistory',_0x7c649d=>{const _0x502df3=_0x113c2e(_0x7c649d),_0x182f35=_0x502df3['panelView']['children'],_0x481110=new te(_0x7c649d),_0x57b177=new _0x33e21b(_0x7c649d),_0x480dac=new _0x30c871(_0x7c649d),_0x4fcb40=new _0x33e21b(_0x7c649d),_0x58cb6d=new _0x30c871(_0x7c649d);return _0x502df3['bind']('isEnabled')['to'](_0x525672,'isReady',_0x525672,'isEnabled',_0x4103d4,'isReadOnly',(_0x455c18,_0x367450,_0x605cd)=>_0x455c18&&_0x367450&&!_0x605cd),_0x502df3['buttonView']['set']({'icon':_0x722761['history'],'label':m(_0x7c649d,'Revision\x20history'),'tooltip':!0x0}),_0x480dac['set']({'label':m(_0x7c649d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x480dac['bind']('isEnabled')['to'](_0x525672,'isReady',_0x525672,'isEnabled',_0x4103d4,'isReadOnly',(_0x430ab6,_0x51d596,_0x2ad6ae)=>_0x430ab6&&_0x51d596&&!_0x2ad6ae),_0x480dac['on']('execute',()=>this['_showDialog']()),_0x58cb6d['set']({'label':m(_0x7c649d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x58cb6d['bind']('isEnabled')['to'](_0x525672,'isReady',_0x4103d4,'isReadOnly',(_0x57b376,_0x2fbd1a)=>_0x57b376&&!_0x2fbd1a),_0x58cb6d['on']('execute',()=>{_0x4103d4['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x502df3['isOpen']=!0x1,_0x4103d4['editing']['view']['focus']();}),_0x57b177['children']['add'](_0x480dac),_0x4fcb40['children']['add'](_0x58cb6d),_0x481110['role']='menu',_0x481110['items']['addMany']([_0x57b177,_0x4fcb40]),_0x182f35['add'](_0x481110),_0x502df3;}),_0x4103d4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x29885e=this['editor'],_0x428536=_0x29885e['locale'],_0x1f392a=new _0x227e97(_0x428536),_0x5443f6=new _0x41adae(_0x428536);_0x1f392a['buttonView']['set']({'icon':_0x722761['history'],'label':m(_0x428536,'Revision\x20history')});const _0x53713d=new _0x2d0af5(_0x428536,_0x1f392a),_0x5c7b64=new _0x9d951c(_0x428536);_0x5c7b64['set']({'label':m(_0x428536,'Save\x20current\x20revision')}),_0x5c7b64['delegate']('execute')['to'](_0x1f392a),_0x5c7b64['on']('execute',()=>{this['_showDialog']();}),_0x53713d['children']['add'](_0x5c7b64),_0x5443f6['items']['add'](_0x53713d);const _0xf872f=new _0x2d0af5(_0x428536,_0x1f392a),_0x28d43c=new _0x9d951c(_0x428536);return _0x28d43c['set']({'label':m(_0x428536,'Open\x20revision\x20history')}),_0x28d43c['delegate']('execute')['to'](_0x1f392a),_0x28d43c['on']('execute',()=>{_0x29885e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xf872f['children']['add'](_0x28d43c),_0x5443f6['items']['add'](_0xf872f),_0x1f392a['panelView']['children']['add'](_0x5443f6),_0x1f392a;}['_showDialog'](){const _0x1cb8c9=this['editor'],_0x567dc2=_0x1cb8c9['locale'],_0x578f0d=_0x1cb8c9['plugins']['get']('Dialog'),_0x5e0dbb=_0x1cb8c9['plugins']['get']('RevisionTracker');function _0x9e2b15(_0xca1186){_0x1cb8c9['config']['get']('revisionHistory.requireRevisionName')&&''===_0xca1186['revisionName']?_0xca1186['revisionNameInputView']['errorText']=m(_0x567dc2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1cb8c9['plugins']['get'](l)['saveRevision']({'name':_0xca1186['revisionName']}),_0x578f0d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x9e2b15(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x578f0d['show']({'id':'revisionSave','title':m(_0x567dc2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1cb8c9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x578f0d['hide']()},{'label':m(_0x1cb8c9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4e77c0){_0x4e77c0['bind']('isEnabled')['to'](_0x5e0dbb,'isReady',_0x5e0dbb,'isEnabled',_0x1cb8c9,'isReadOnly',(_0x427eec,_0x288eea,_0x2e50c9)=>_0x427eec&&_0x288eea&&!_0x2e50c9);},'onExecute':()=>_0x9e2b15(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5c9a6e=this['editor'],_0x3bde2c=_0x5c9a6e['locale'];this['_saveRevisionFormView']=new ns(_0x3bde2c,_0x5c9a6e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x326023{['changeId'];['_model'];constructor(_0x7d937d,_0x5bcbe4){super(_0x7d937d),this['_model']=_0x5bcbe4,this['changeId']=_0x5bcbe4['id'];const _0xab4f04=this['bindTemplate'],_0x2f35ab=m(_0x7d937d,_0x5bcbe4['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5bcbe4['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5bcbe4['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xab4f04['to']('type',_0x3e5c66=>'ck-revision-change__'+_0x3e5c66)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2f35ab}]},{'text':'\x20'+_0x5bcbe4['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x55d8ba(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x41ec44){super(),this['id']=_0x41ec44['id']||_0x3df0fe(),this['author']=_0x41ec44['author'],this['type']=_0x41ec44['type'],this['data']=_0x41ec44['data']||{},this['rootName']=_0x41ec44['rootName'],this['set']('createdAt',_0x41ec44['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(_0x30eacd,_0x55c29c){this['newRevisionId']=_0x30eacd,this['oldRevisionId']=_0x55c29c,this['changes']=new _0xdaacf2();}['_setChanges'](_0x272d92){for(const _0x216536 of _0x272d92)this['changes']['add'](_0x216536);}}const Y={'c':_0x342bc1,'a':_0x1ec15c,'e':_0x1aba2a,'r':_0x15065c,'u':_0xb94bd4};class d extends _0x1f8aed{['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[_0x49e53f,_0x27abf9,j];}constructor(_0x21824a){super(_0x21824a),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',(_0x958f55,_0x18d79e,_0x44aca1)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x48d8a4=>{for(const _0x3253e3 of this['editor']['editing']['view']['document']['roots'])_0x44aca1?_0x48d8a4['removeClass']('ck-editor__editable__overlay',_0x3253e3):_0x48d8a4['addClass']('ck-editor__editable__overlay',_0x3253e3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xe4469a=>null!==_0xe4469a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x431a38,_0x3a24a1,_0x247a5b)=>_0x431a38&&_0x247a5b?_0x3a24a1['changes']['getIndex'](_0x247a5b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5453fb,_0x2c43ef)=>_0x5453fb?_0x2c43ef['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x27abf9);}['init'](){const _0x14d2cf=this['editor'],_0x1b118c=new yt(_0x14d2cf,{'direction':'backward'}),_0x4616f5=new yt(_0x14d2cf,{'direction':'forward'});(_0x14d2cf['commands']['add']('showPreviousChange',_0x1b118c),_0x14d2cf['commands']['add']('showNextChange',_0x4616f5),_0x14d2cf['commands']['add']('restoreRevision',new _t(_0x14d2cf)),this['on']('change:numberOfChanges',()=>{_0x1b118c['refresh'](),_0x4616f5['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x14d2cf['enableReadOnlyMode']('revision-viewer'),_0x14d2cf['plugins']['has']('WidgetToolbarRepository'))&&_0x14d2cf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1e7cd8){await this['loadRevisionData'](_0x1e7cd8);const _0x184d28={};for(const _0x5813e2 in _0x1e7cd8['diffData']){if(_0x1e7cd8['diffData'][_0x5813e2]['attachChange']&&!_0x1e7cd8['diffData'][_0x5813e2]['attachChange']['isAttached'])continue;const _0x5996a4=this['_removeRevisionMarkers'](JSON['parse'](_0x1e7cd8['diffData'][_0x5813e2]['insertions'])),_0x46e44a=this['editor']['editing']['view']['document'],_0x23b222=new _0x52878a(_0x46e44a,_0x5996a4['map'](_0x1c38f6=>this['_getViewObj'](_0x1c38f6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x184d28[_0x5813e2]=this['editor']['data']['processor']['toData'](_0x23b222),this['editor']['data']['processor']['useFillerType']('default');}return _0x184d28;}async['getRevisionRootsAttributes'](_0x39ac8c){await this['loadRevisionData'](_0x39ac8c);const _0x88bb00={};for(const _0x45a5d2 in _0x39ac8c['diffData'])_0x39ac8c['diffData'][_0x45a5d2]['attachChange']&&!_0x39ac8c['diffData'][_0x45a5d2]['attachChange']['isAttached']||(_0x88bb00[_0x45a5d2]=_0x39ac8c['diffData'][_0x45a5d2]['attributesAfter']||{});return _0x88bb00;}['_removeRevisionMarkers'](_0x428e1c){return(_0x428e1c=_0x428e1c['filter'](_0x61a009=>!_0x61a009['name']||'revision-start'!==_0x61a009['name']&&'revision-end'!==_0x61a009['name']))['forEach'](_0x6294d1=>{'string'!=typeof _0x6294d1&&(_0x6294d1['children']=this['_removeRevisionMarkers'](_0x6294d1['children']),_0x6294d1['attributes']=_0x6294d1['attributes']['filter'](_0x590dd4=>!_0x590dd4[0x0]['startsWith']('data-revision-')));}),_0x428e1c;}async['compare'](_0x530780,_0x4b7c57,_0x8d863b=!0x1){if(!this['isEnabled'])return;const _0x4355be=this['diff'],_0xcf2b22=this['repository'],_0x20d50f='string'==typeof _0x530780?_0xcf2b22['getRevision'](_0x530780):_0x530780,_0x329bb8='string'==typeof _0x4b7c57?_0xcf2b22['getRevision'](_0x4b7c57):_0x4b7c57,_0x42903f=_0x20d50f['id'],_0x400db3=_0x329bb8?_0x329bb8['id']:null;if(!_0x8d863b&&this['diff']&&this['diff']['newRevisionId']===_0x42903f&&this['diff']['oldRevisionId']===_0x400db3)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x42903f,_0x400db3);const _0x504367=this['_getRevisionsRange'](_0x20d50f,_0x329bb8,!0x0)['map'](_0x2750e8=>this['loadRevisionData'](_0x2750e8));return _0x504367['push'](new Promise(_0x3c31a1=>{setTimeout(_0x3c31a1,0x14);})),Promise['all'](_0x504367)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1e5431=this['_getDiff'](_0x42903f,_0x400db3);for(const _0x363456 of _0x1e5431['changes'])this['_changeIdToChange']['set'](_0x363456['id'],_0x363456);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x181533=>{for(const _0x40874a of this['editor']['model']['document']['getRootNames']())_0x181533['detachRoot'](_0x40874a);for(const _0xaaac4f of Object['keys'](_0x1e5431['model'])){const _0x4bc13f=_0x181533['addRoot'](_0xaaac4f);for(const _0x462979 of Object['keys'](_0x1e5431['attributes'][_0xaaac4f]))_0x181533['setAttribute'](_0x462979,_0x1e5431['attributes'][_0xaaac4f][_0x462979],_0x4bc13f);_0x181533['insert'](_0x1e5431['model'][_0xaaac4f],_0x4bc13f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1e5431['changes'])),this['isReady']=!0x0;})['catch'](_0x200480=>{console['error'](_0x200480),this['_cleanUp'](),_0x4355be&&(this['diff']=_0x4355be),this['isReady']=!0x0;});}['addRevisionData'](_0x1c1f7f,_0x24546e){const _0x3c077d=this['repository']['createRevision'](_0x1c1f7f);return _0x3c077d['on']('_update',(_0x21302f,_0xd37364,_0x2797be)=>_0x24546e(_0xd37364,_0x2797be,_0x3c077d)),this['repository']['addRevision'](_0x3c077d),_0x3c077d;}['loadRevisionData'](_0x55b66f){if(!_0x55b66f||_0x55b66f['diffData'])return Promise['resolve']();{const _0x2610ba=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2610ba,'revisionId':_0x55b66f['id']})['then'](_0x5a310c=>{_0x55b66f['_update']({'diffData':_0x5a310c['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},_0x537bfb=>{for(const _0x11dcfe of this['editor']['model']['document']['getRootNames']())_0x537bfb['detachRoot'](_0x11dcfe);});}['_sortAndFilterDiffChanges'](_0x41e261){const _0xc2ae07=[],_0x5a047e=new Map();for(const _0x246ecf of this['editor']['model']['document']['getRootNames']()){const _0x3fe782=this['editor']['editing']['view']['getDomRoot'](_0x246ecf);if(!_0x3fe782)continue;const _0x13bd3c=_0x3fe782['getClientRects']()['item'](0x0);_0x13bd3c&&(_0xc2ae07['push'](_0x246ecf),_0x5a047e['set'](_0x246ecf,_0x13bd3c));}return _0xc2ae07['sort']((_0x591a1a,_0x410c87)=>{const _0x10f6d4=_0x5a047e['get'](_0x591a1a),_0xa05fbf=_0x5a047e['get'](_0x410c87);return _0x10f6d4['y']-_0xa05fbf['y']||_0x10f6d4['x']-_0xa05fbf['x'];}),(_0x41e261=_0x41e261['filter'](_0x40ea51=>_0xc2ae07['includes'](_0x40ea51['rootName'])))['sort']((_0x197b09,_0x57219b)=>_0xc2ae07['indexOf'](_0x197b09['rootName'])-_0xc2ae07['indexOf'](_0x57219b['rootName'])),_0x41e261;}['_makeTape'](_0x5bbac0){const _0x459c50=Array['from'](_0x5bbac0['markers'])['filter'](([_0x223874,_0x1e7199])=>_0x223874['startsWith']('revision:')&&!_0x1e7199['isCollapsed']),_0x4de17e=Array['from'](this['editor']['model']['createRangeIn'](_0x5bbac0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x459c50['length'])for(const _0x514dde of _0x4de17e){const [_0x122844,_0x27dce3]=_0x459c50[0x0],[,_0x4cffef,_0x108d4c]=_0x122844['split'](':');if(_0x27dce3['end']['isEqual'](_0x514dde['nextPosition'])&&_0x459c50['shift'](),(_0x514dde['previousPosition']['isEqual'](_0x27dce3['start'])||_0x514dde['previousPosition']['isAfter'](_0x27dce3['start']))&&('insertion'==_0x4cffef?_0x514dde['isAdded']={'userId':_0x108d4c}:'deletion'==_0x4cffef&&(_0x514dde['isRemoved']={'userId':_0x108d4c})),0x0==_0x459c50['length'])break;}return _0x4de17e;}['_refreshStartEndIndex'](_0x1ab2b7){const _0x36734f=new Map();for(let _0x54cc4f=0x0;_0x54cc4f<_0x1ab2b7['length'];_0x54cc4f++)'text'===_0x1ab2b7[_0x54cc4f]['type']?(_0x1ab2b7[_0x54cc4f]['item']['startIndex']=_0x54cc4f,_0x1ab2b7[_0x54cc4f]['item']['endIndex']=_0x54cc4f):('elementStart'===_0x1ab2b7[_0x54cc4f]['type']?_0x1ab2b7[_0x54cc4f]['item']['startIndex']=_0x54cc4f:'elementEnd'===_0x1ab2b7[_0x54cc4f]['type']&&(_0x1ab2b7[_0x54cc4f]['item']['endIndex']=_0x54cc4f),_0x36734f['set'](_0x1ab2b7[_0x54cc4f]['id'],_0x54cc4f));for(const _0x3344d0 of _0x36734f['values']())'elementStart'===_0x1ab2b7[_0x3344d0]['type']?_0x1ab2b7[_0x3344d0]['item']['endIndex']=_0x36734f['get'](_0x1ab2b7[_0x3344d0]['pairId']):'elementEnd'===_0x1ab2b7[_0x3344d0]['type']&&(_0x1ab2b7[_0x3344d0]['item']['startIndex']=_0x36734f['get'](_0x1ab2b7[_0x3344d0]['pairId']));}['_processTape'](_0xf4a5ec){for(let _0x4685d2=0x0;_0x4685d2<_0xf4a5ec['length'];_0x4685d2++){if('elementStart'===_0xf4a5ec[_0x4685d2]['type'])_0xf4a5ec[_0x4685d2]['item']['startIndex']=_0x4685d2;else{if('elementEnd'===_0xf4a5ec[_0x4685d2]['type']){_0xf4a5ec[_0x4685d2]['item']['endIndex']=_0x4685d2;const _0x1dc666=_0xf4a5ec[_0x4685d2]['item']['startIndex'];_0xf4a5ec[_0x1dc666]['pairId']=_0xf4a5ec[_0x4685d2]['id'],_0xf4a5ec[_0x4685d2]['pairId']=_0xf4a5ec[_0x1dc666]['id'];}else _0xf4a5ec[_0x4685d2]['item']['startIndex']=_0x4685d2,_0xf4a5ec[_0x4685d2]['item']['endIndex']=_0x4685d2,_0xf4a5ec[_0x4685d2]['pairId']=null;}_0xf4a5ec[_0x4685d2]['markersStart']||(_0xf4a5ec[_0x4685d2]['markersStart']=[],_0xf4a5ec[_0x4685d2]['markersEnd']=[]);}}['_markInsertions'](_0x6ace8f,_0x26000e){const _0x348885=_0x6ace8f['filter'](_0x1644da=>!_0x1644da['isAdded']);for(let _0x22c460=0x0;_0x22c460<_0x26000e['length'];_0x22c460++)_0x26000e[_0x22c460]['isAdded']&&(_0x348885[_0x22c460]['isAdded']=_0x26000e[_0x22c460]['isAdded']);}['_makeModelFromViewString'](_0x8cac95){const _0x47c476=JSON['parse'](_0x8cac95),_0x474b7d=this['editor']['editing']['view']['document'],_0x2640c5=new _0x52878a(_0x474b7d,_0x47c476['map'](_0x48f46f=>this['_getViewObj'](_0x48f46f)));return this['editor']['data']['toModel'](_0x2640c5);}['_getViewObj'](_0x4446d4){const _0x361550=this['editor']['editing']['view']['document'];if('string'==typeof _0x4446d4)return new _0x101d7d(_0x361550,_0x4446d4);{const _0x2597d1=_0x4446d4['children']['map'](_0x7e3c4=>this['_getViewObj'](_0x7e3c4));return new(Y[_0x4446d4['type']]||_0x42aced)(_0x361550,_0x4446d4['name'],_0x4446d4['attributes'],_0x2597d1);}}['_getDiff'](_0x49d237,_0x1eccf4=null){const _0x5c2d67=this['repository']['getRevision'](_0x49d237),_0x32e590=_0x1eccf4?this['repository']['getRevision'](_0x1eccf4):null,_0x3f370c=this['_getRevisionsRange'](_0x5c2d67,_0x32e590),_0x52ad38=_0x3f370c[_0x3f370c['length']-0x1],_0x2bc051=new Map(),_0x3ca5f2={'model':{},'attributes':{},'changes':[]},_0x321e70=new Set(),_0x3cca3d=new Map();for(let _0x1f3442=_0x3f370c['length']-0x1;_0x1f3442>=0x0;_0x1f3442--){const _0x2a1c29=_0x3f370c[_0x1f3442];for(const _0x50d3a7 of Object['keys'](_0x2a1c29['diffData']))if(_0x2a1c29['diffData'][_0x50d3a7]['attachChange']){const _0x3d42c7=_0x2a1c29['diffData'][_0x50d3a7]['attachChange'];_0x3d42c7['isAttached']?(_0x321e70['add'](_0x50d3a7),_0x3cca3d['has'](_0x50d3a7)&&_0x3cca3d['get'](_0x50d3a7)['userId']==_0x3d42c7['userId']?_0x3cca3d['delete'](_0x50d3a7):_0x3cca3d['set'](_0x50d3a7,_0x3d42c7)):_0x3cca3d['has'](_0x50d3a7)?(_0x321e70['delete'](_0x50d3a7),_0x3cca3d['delete'](_0x50d3a7)):(_0x321e70['add'](_0x50d3a7),_0x3cca3d['set'](_0x50d3a7,_0x3d42c7));}else _0x321e70['add'](_0x50d3a7);}for(const _0xb6c2e7 of _0x321e70){const _0x351bcc=_0x3cca3d['has'](_0xb6c2e7)&&!_0x3cca3d['get'](_0xb6c2e7)['isAttached'];let _0x548598=_0x351bcc?_0x3f370c['length']-0x1:0x0;const _0x634c4b=_0x351bcc?-0x1:0x1;for(;_0x3f370c[_0x548598];){const _0x23c176=_0x3f370c[_0x548598];if(_0x23c176['diffData'][_0xb6c2e7]){const _0x3a5d76=_0x351bcc?_0x23c176['diffData'][_0xb6c2e7]['attributesBefore']:_0x23c176['diffData'][_0xb6c2e7]['attributesAfter'];_0x3ca5f2['attributes'][_0xb6c2e7]=_0x3a5d76?_0x4778e2(_0x3a5d76):{};break;}_0x548598+=_0x634c4b;}}for(const _0x3a4715 of _0x3f370c){_0x3a4715['model']={};for(const _0x2e3158 of _0x3a4715['authors'])_0x2bc051['set'](_0x2e3158['id'],_0x2e3158);for(const _0x326433 of _0x321e70){const _0x301bfd=_0x3a4715['diffData'][_0x326433]?_0x3a4715['diffData'][_0x326433]['insertions']:'[]',_0x495034=_0x3a4715['diffData'][_0x326433]?_0x3a4715['diffData'][_0x326433]['deletions']:'[]';_0x3a4715['model'][_0x326433]={'insertions':this['_makeModelFromViewString'](_0x301bfd),'deletions':this['_makeModelFromViewString'](_0x495034)};}}for(const _0x496aee of _0x321e70){let _0x479ad0=null,_0x52dc22=0x0;const _0xa9e914=new Map(Array['from'](_0x5c2d67['model'][_0x496aee]['insertions']['markers'])['filter'](([_0x458644])=>!_0x458644['startsWith']('revision:')));let _0x2986d3=0x0;for(const _0x172a64 of _0x3f370c){const _0x2fa610=this['_makeTape'](_0x172a64['model'][_0x496aee]['insertions']);_0x172a64==_0x5c2d67?(_0x479ad0=_0x2fa610,_0x52dc22=_0x479ad0['length'],_0x479ad0['forEach'](_0x34107a=>{_0x34107a['id']=_0x2986d3++;}),this['_processTape'](_0x479ad0)):this['_markInsertions'](_0x479ad0,_0x2fa610);const _0x4b354c=_0x479ad0['filter'](_0x2a45ac=>!_0x2a45ac['isAdded'])['map'](_0x2174e3=>_0x2174e3['id']);let _0x3f963e=0x0;const _0x1c853b=this['_makeTape'](_0x172a64['model'][_0x496aee]['deletions']);_0x1c853b['forEach'](_0x11978c=>{_0x11978c['isRemoved']?_0x11978c['id']=_0x52dc22++:_0x11978c['id']=_0x4b354c[_0x3f963e++];}),this['_processTape'](_0x1c853b),this['_setDistance'](_0x479ad0,'isAdded'),this['_setDistance'](_0x1c853b,'isRemoved'),_0x172a64==_0x5c2d67&&this['_markMarkers'](_0x479ad0,_0xa9e914),_0x479ad0=this['_joinTapes'](_0x479ad0,_0x1c853b),this['_refreshStartEndIndex'](_0x479ad0),this['_setDistance'](_0x479ad0,'isRemoved');}_0x479ad0=_0x479ad0['filter'](_0x37cc9d=>!(_0x37cc9d['isAdded']&&_0x37cc9d['isRemoved']));const _0x4c3942=new Map(_0x52ad38['model'][_0x496aee]['deletions']['markers']),_0x594b96=new Set(_0xa9e914['keys']());for(const _0x5f414a of _0x4c3942['keys']())_0x594b96['delete'](_0x5f414a);this['_markSuggestions'](_0x479ad0,_0x594b96),this['_fixObsoleteTags'](_0x479ad0),_0x479ad0=this['_removeMissingPairs'](_0x479ad0),_0x479ad0=this['_markMismatchedRemovedTags'](_0x479ad0),_0x479ad0=this['_removeUnsupportedChanges'](_0x479ad0);const {root:_0x518a9b,changes:_0x4c59fb}=this['_makeModelFromTape'](_0x479ad0,_0x2bc051,_0x496aee);_0x3ca5f2['model'][_0x496aee]=_0x518a9b;const _0x2bbae1=_0x3cca3d['get'](_0x496aee);if(_0x2bbae1){const _0x3475c7=_0x2bc051['get'](_0x2bbae1['userId']),_0x44a7c1=new r({'author':_0x3475c7,'type':_0x2bbae1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x496aee});_0x4c59fb['unshift'](_0x44a7c1),_0x3ca5f2['attributes'][_0x496aee]['revisionHistoryAttachChange']=_0x44a7c1['id'];}_0x3ca5f2['changes']=_0x3ca5f2['changes']['concat'](_0x4c59fb);}return _0x3ca5f2;}['_markMarkers'](_0x331fa4,_0x4fd698){for(let _0x537e1d=0x0;_0x537e1d<_0x331fa4['length'];_0x537e1d++)for(const [_0x2bccc8,_0x48f7dd]of _0x4fd698)_0x48f7dd['start']['isEqual'](_0x331fa4[_0x537e1d]['previousPosition'])&&_0x331fa4[_0x537e1d]['markersStart']['push'](_0x2bccc8),_0x48f7dd['end']['isEqual'](_0x331fa4[_0x537e1d]['nextPosition'])&&_0x331fa4[_0x537e1d]['markersEnd']['push'](_0x2bccc8);}['_joinTapes'](_0x45eb82,_0x14ef8b){let _0x156e4a=[],_0x139829=0x0,_0x1c93c7=0x0;for(;_0x139829<_0x45eb82['length']||_0x1c93c7<_0x14ef8b['length'];){const _0x472168=_0x45eb82[_0x139829]||{},_0x161579=_0x14ef8b[_0x1c93c7]||{};if(_0x472168['id']==_0x161579['id'])_0x139829++,_0x1c93c7++,_0x156e4a['push'](_0x472168);else{if(_0x161579['isRemoved']&&_0x472168['isAdded']){const {commonTape:_0x48236b,iEnd:_0x59305a,jEnd:_0x2456c7}=this['_threeWayMerge'](_0x45eb82,_0x139829,_0x14ef8b,_0x1c93c7);_0x156e4a=_0x156e4a['concat'](_0x48236b),_0x139829=_0x59305a,_0x1c93c7=_0x2456c7;}else _0x161579['isRemoved']?(_0x1c93c7++,_0x156e4a['push'](_0x161579)):(_0x139829++,_0x156e4a['push'](_0x472168));}}return _0x156e4a;}['_markSuggestions'](_0x104afd,_0x5ceab6){const _0x1b07cf=[];for(let _0x134270=0x0;_0x134270<_0x104afd['length'];_0x134270++){for(let _0x484c55=0x0;_0x484c55<_0x104afd[_0x134270]['markersStart']['length'];_0x484c55++){const _0x3bcb30=_0x104afd[_0x134270]['markersStart'][_0x484c55];if(!_0x5ceab6['has'](_0x3bcb30))continue;const {group:_0x51c50b,type:_0x8599bd,authorId:_0x3a8c76}=_0x2ba4a(_0x3bcb30);'revision-suggestion'!=_0x51c50b||'insertion'!=_0x8599bd&&'deletion'!=_0x8599bd||(_0x1b07cf['unshift']({'type':_0x8599bd,'name':_0x3bcb30,'userId':_0x3a8c76}),_0x104afd[_0x134270]['markersStart']['splice'](_0x484c55,0x1),_0x484c55--);}_0xe5e3f1(_0x104afd[_0x134270]);for(let _0x366e3e=0x0;_0x366e3e<_0x104afd[_0x134270]['markersEnd']['length'];_0x366e3e++){const _0x34d80d=_0x104afd[_0x134270]['markersEnd'][_0x366e3e];if(!_0x5ceab6['has'](_0x34d80d))continue;const {group:_0x251cdf,type:_0x1d1d1d}=_0x2ba4a(_0x34d80d);if('revision-suggestion'!=_0x251cdf||'insertion'!=_0x1d1d1d&&'deletion'!=_0x1d1d1d)continue;_0x104afd[_0x134270]['markersEnd']['splice'](_0x366e3e,0x1),_0x366e3e--;const _0x5495bb=_0x1b07cf['findIndex'](_0x1c62aa=>_0x1c62aa['name']==_0x34d80d);_0x5495bb>-0x1&&_0x1b07cf['splice'](_0x5495bb,0x1);}}function _0x2ba4a(_0x515201){const _0x2468b0=_0x515201['split'](':');return{'group':_0x2468b0[0x0],'type':_0x2468b0[0x1],'subType':_0x2468b0['length']>=0x5?_0x2468b0[0x2]:null,'id':_0x2468b0['length']<0x5?_0x2468b0[0x2]:_0x2468b0[0x3],'authorId':_0x2468b0['length']<0x5?_0x2468b0[0x3]:_0x2468b0[0x4],'markerCount':0x6==_0x2468b0['length']?_0x2468b0[0x5]:null};}function _0xe5e3f1(_0x1184bd){for(let _0x31e3c9=0x0;_0x31e3c9<_0x1b07cf['length'];_0x31e3c9++){if(_0x1184bd['isAdded']&&'insertion'==_0x1b07cf[_0x31e3c9]['type'])return _0x1184bd['isAddSuggestion']=_0x1b07cf[_0x31e3c9],void delete _0x1184bd['isAdded'];if(!_0x1184bd['isAdded']&&!_0x1184bd['isRemoved']&&'deletion'==_0x1b07cf[_0x31e3c9]['type'])return void(_0x1184bd['isRemoveSuggestion']=_0x1b07cf[_0x31e3c9]);}}}['_setDistance'](_0x4f9ab6,_0x38016a){let _0x280941=0x0,_0x4877e6=!0x1;const _0x5bed89=new Map();for(const _0x25f46c of _0x4f9ab6)_0x25f46c[_0x38016a]?_0x4877e6&&(_0x280941++,_0x4877e6=!0x1):(_0x280941++,_0x4877e6=!0x0),_0x5bed89['set'](_0x25f46c['id'],_0x280941);for(let _0x25950e=0x0;_0x25950e<_0x4f9ab6['length'];_0x25950e++){if('isRemoved'==_0x38016a&&_0x4f9ab6[_0x25950e]['isAdded']||'isAdded'==_0x38016a&&_0x4f9ab6[_0x25950e]['isRemoved'])continue;if('text'==_0x4f9ab6[_0x25950e]['type']){_0x4f9ab6[_0x25950e]['distance']=0x0;continue;}const _0x27c7ed=_0x5bed89['get'](_0x4f9ab6[_0x25950e]['pairId']),_0x284d97=_0x5bed89['get'](_0x4f9ab6[_0x25950e]['id']);_0x4f9ab6[_0x25950e]['distance']=_0x27c7ed-_0x284d97;}}['_getRevisionsRange'](_0x1d1c62,_0x2c46ce,_0xea1f1b=!0x1){const _0x3054ac=[];let _0x33da52=this['repository']['getIndex'](_0x1d1c62),_0x6d1509=this['repository']['getIndex'](_0x2c46ce);for(-0x1==_0x6d1509&&(_0x6d1509=this['repository']['_revisions']['length'],_0xea1f1b=!0x1);_0x33da52<_0x6d1509;)_0x3054ac['push'](this['repository']['getRevision'](_0x33da52)),_0x33da52++;return _0xea1f1b&&_0x3054ac['push'](this['repository']['getRevision'](_0x33da52)),_0x3054ac;}['_threeWayMerge'](_0x52c338,_0x313f87,_0x4c1ec1,_0x12d258){const _0x29f449=this['editor']['model']['schema'];let _0x24f1c4=_0x313f87;for(;_0x52c338[_0x24f1c4]&&_0x52c338[_0x24f1c4]['isAdded'];)_0x24f1c4++;let _0x2dafab=_0x12d258;for(;_0x4c1ec1[_0x2dafab]&&_0x4c1ec1[_0x2dafab]['isRemoved'];)_0x2dafab++;_0x407e9a(_0x52c338,_0x313f87,_0x24f1c4),_0x407e9a(_0x4c1ec1,_0x12d258,_0x2dafab);const _0x50693b=_0x4c1ec1['slice'](_0x12d258,_0x2dafab)['concat'](_0x52c338['slice'](_0x313f87,_0x24f1c4));return _0x50693b['sort']((_0x3a7c2f,_0x271a4a)=>_0x3a7c2f['side']!=_0x271a4a['side']?_0x3a7c2f['side']-_0x271a4a['side']:_0x3a7c2f['level']!=_0x271a4a['level']?_0x3a7c2f['level']-_0x271a4a['level']:_0x3a7c2f['distance']!=_0x271a4a['distance']?_0x271a4a['distance']-_0x3a7c2f['distance']:!!_0x3a7c2f['isAdded']!=!!_0x271a4a['isAdded']?-0x1==_0x3a7c2f['side']||0x0==_0x3a7c2f['side']?_0x3a7c2f['isAdded']?-0x1:0x1:_0x3a7c2f['isAdded']?0x1:-0x1:_0x3a7c2f['index']-_0x271a4a['index']),{'commonTape':_0x50693b,'iEnd':_0x24f1c4,'jEnd':_0x2dafab};function _0x407e9a(_0x5bc78f,_0x3ffad9,_0x116a0e){let _0x5628a8=-0x1,_0x45acb6=Number['POSITIVE_INFINITY'],_0x2b992f=!0x0;for(let _0x5351a7=_0x3ffad9;_0x5351a7<_0x116a0e;_0x5351a7++)if(_0x29f449['isInline'](_0x5bc78f[_0x5351a7]['item'])||(_0x2b992f=!0x1),_0x5bc78f[_0x5351a7]['item']['startIndex']<_0x3ffad9&&(_0x5628a8=_0x5351a7),_0x5bc78f[_0x5351a7]['item']['endIndex']>=_0x116a0e){_0x45acb6=_0x5351a7;break;}_0x2b992f&&(_0x5628a8=_0x116a0e-0x1);for(let _0x5c7e02=_0x3ffad9;_0x5c7e02<_0x116a0e;_0x5c7e02++)_0x5bc78f[_0x5c7e02]['side']=_0x5c7e02<=_0x5628a8?-0x1:_0x5c7e02<_0x45acb6?0x0:0x1,_0x5bc78f[_0x5c7e02]['index']=_0x5c7e02;let _0x5137d5=0x0;for(let _0x1f3b37=_0x3ffad9;_0x1f3b37<=_0x5628a8;_0x1f3b37++)0x0==_0x5bc78f[_0x1f3b37]['distance']?_0x5bc78f[_0x1f3b37]['level']=_0x5137d5:(_0x5137d5++,_0x5bc78f[_0x1f3b37]['level']=_0x5137d5,_0x5137d5++);for(let _0xec6c22=_0x3ffad9;_0xec6c22<_0x116a0e;_0xec6c22++)0x0==_0x5bc78f[_0xec6c22]['side']&&(_0x5bc78f[_0xec6c22]['level']=_0x5137d5);_0x5137d5=0x0;for(let _0x2ee561=_0x116a0e-0x1;_0x2ee561>=_0x45acb6;_0x2ee561--)0x0==_0x5bc78f[_0x2ee561]['distance']?_0x5bc78f[_0x2ee561]['level']=_0x5137d5:(_0x5137d5--,_0x5bc78f[_0x2ee561]['level']=_0x5137d5,_0x5137d5--);}}['_fixObsoleteTags'](_0x5984b3){const _0x9c22a3=new Map(),_0x47852f=this['editor']['model']['schema'];for(let _0x4918f1=0x1;_0x4918f1<_0x5984b3['length'];_0x4918f1++){let _0x4de2ef,_0x33c89b,_0x68548;const _0x39c33c=_0x5984b3[_0x4918f1],_0x4b9f95=_0x5984b3[_0x4918f1-0x1];if('text'==_0x39c33c['type'])continue;if(_0x39c33c['type']!=_0x4b9f95['type'])continue;if(!_0x47852f['isBlock'](_0x4b9f95['item'])||_0x47852f['isLimit'](_0x4b9f95['item']))continue;if(!_0x47852f['isBlock'](_0x39c33c['item'])||_0x47852f['isLimit'](_0x39c33c['item']))continue;if((_0x5984b3[_0x4918f1]['isAdded']||_0x5984b3[_0x4918f1]['isAddSuggestion'])&&_0x5984b3[_0x4918f1-0x1]['isRemoved'])_0x4de2ef=_0x5984b3[_0x4918f1],_0x33c89b=_0x5984b3[_0x4918f1-0x1],_0x68548=_0x4918f1-0x1;else{if(!_0x5984b3[_0x4918f1]['isRemoved']||!_0x5984b3[_0x4918f1-0x1]['isAdded']&&!_0x5984b3[_0x4918f1-0x1]['isAddSuggestion'])continue;_0x4de2ef=_0x5984b3[_0x4918f1-0x1],_0x33c89b=_0x5984b3[_0x4918f1],_0x68548=_0x4918f1;}const _0x4a7c10=_0x4de2ef['level']==_0x33c89b['level'],_0x2cc09b=Math['abs'](_0x4de2ef['level'])<Math['abs'](_0x33c89b['level'])&&0x0==_0x33c89b['distance'];(_0x4a7c10||_0x2cc09b)&&(_0x9c22a3['set'](_0x33c89b['id'],_0x4de2ef['id']),_0x5984b3['splice'](_0x68548,0x1),_0x4918f1--,_0x4de2ef['isAdded']=!0x1);}for(let _0x39e4ae=0x0;_0x39e4ae<_0x5984b3['length'];_0x39e4ae++)_0x9c22a3['has'](_0x5984b3[_0x39e4ae]['pairId'])&&(_0x5984b3[_0x39e4ae]['pairId']=_0x9c22a3['get'](_0x5984b3[_0x39e4ae]['pairId']));}['_removeMissingPairs'](_0x443853){const _0x3c452a=new Set(_0x443853['map'](_0x3e8323=>_0x3e8323['id']));for(let _0x23f736=0x0;_0x23f736<_0x443853['length'];_0x23f736++)_0x3c452a['has'](_0x443853[_0x23f736]['pairId'])||0x0==_0x443853[_0x23f736]['distance']||(_0x443853[_0x23f736]['isIncorrect']=!0x0);return _0x443853['filter'](_0x140883=>!_0x140883['isIncorrect']);}['_markMismatchedRemovedTags'](_0x12ad88){const _0x2eadda=new Set();for(let _0x4a77e1=0x0;_0x4a77e1<_0x12ad88['length'];_0x4a77e1++){if(_0x2eadda['has'](_0x12ad88[_0x4a77e1]['id'])&&_0x12ad88[_0x4a77e1]['isRemoved']&&(_0x12ad88[_0x4a77e1]['isIncorrect']=!0x0),_0x12ad88[_0x4a77e1]['isIncorrect'])continue;if(0x0==_0x12ad88[_0x4a77e1]['distance'])continue;if('elementStart'!=_0x12ad88[_0x4a77e1]['type'])continue;if(null==_0x12ad88[_0x4a77e1]['pairId'])continue;let _0x426625=_0x4a77e1+0x1,_0x134135=0x0;for(;_0x12ad88[_0x426625]['id']!=_0x12ad88[_0x4a77e1]['pairId'];)'elementStart'==_0x12ad88[_0x426625]['type']?_0x134135++:'elementEnd'==_0x12ad88[_0x426625]['type']&&_0x134135--,_0x426625++;if(0x0!=_0x134135){if(_0x12ad88[_0x4a77e1]['isRemoved'])_0x12ad88[_0x4a77e1]['isIncorrect']=!0x0;else{for(;_0x426625!=_0x4a77e1;)_0x12ad88[_0x426625]['isRemoved']&&0x0!=_0x12ad88[_0x426625]['distance']&&(_0x12ad88[_0x426625]['isIncorrect']=!0x0,_0x2eadda['add'](_0x12ad88[_0x426625]['pairId'])),_0x426625--;}}}return _0x12ad88['filter'](_0xa07f54=>!_0xa07f54['isIncorrect']);}['_removeUnsupportedChanges'](_0x43fff2){const _0x157839=this['editor']['model']['schema'];for(let _0xcf5b72=0x0;_0xcf5b72<_0x43fff2['length'];_0xcf5b72++){if(!(_0x43fff2[_0xcf5b72]['isAdded']||_0x43fff2[_0xcf5b72]['isAddSuggestion']||_0x43fff2[_0xcf5b72]['isRemoved']||_0x43fff2[_0xcf5b72]['isRemoveSuggestion']))continue;if(0x0==_0x43fff2[_0xcf5b72]['distance'])continue;const _0x387adf=_0x43fff2[_0xcf5b72]['item'];_0x157839['isBlock'](_0x387adf)||_0x157839['isLimit'](_0x387adf)||(_0x43fff2[_0xcf5b72]['isAdded']&&delete _0x43fff2[_0xcf5b72]['isAdded'],_0x43fff2[_0xcf5b72]['isAddSuggestion']&&delete _0x43fff2[_0xcf5b72]['isAddSuggestion'],_0x43fff2[_0xcf5b72]['isRemoveSuggestion']&&delete _0x43fff2[_0xcf5b72]['isRemoveSuggestion'],_0x43fff2[_0xcf5b72]['isRemoved']&&(_0x43fff2[_0xcf5b72]['isIncorrect']=!0x0));}return _0x43fff2['filter'](_0x183681=>!_0x183681['isIncorrect']);}['_makeModelFromTape'](_0x330b86,_0x48c073,_0x41b9b6){const _0x26d90e=new mt(),_0x5da880=[],_0x42425d=new Map(),_0x419c38=this['editor']['model'],_0x4f7de9=_0x419c38['schema'],_0x58200a=[_0x26d90e],_0x5d0708={},_0x14fc44={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3e90f3=null;const _0x50dbed=[0x0];for(let _0x404b7a=0x0;_0x404b7a<_0x330b86['length'];_0x404b7a++)if('elementStart'===_0x330b86[_0x404b7a]['type']){_0x330b86[_0x404b7a]['previousPosition']=_0x419c38['createPositionFromPath'](_0x26d90e,_0x50dbed);const _0x29af82=new ft(_0x330b86[_0x404b7a]['item']['name'],_0x330b86[_0x404b7a]['item']['getAttributes']());_0x58200a[0x0]['_appendChild'](_0x29af82),_0x50dbed['push'](0x0),_0x58200a['unshift'](_0x29af82),_0x330b86[_0x404b7a]['nextPosition']=_0x419c38['createPositionFromPath'](_0x26d90e,_0x50dbed);}else'elementEnd'===_0x330b86[_0x404b7a]['type']?(_0x58200a['shift'](),_0x330b86[_0x404b7a]['previousPosition']=_0x419c38['createPositionFromPath'](_0x26d90e,_0x50dbed),_0x50dbed['pop'](),_0x50dbed[_0x50dbed['length']-0x1]++,_0x330b86[_0x404b7a]['nextPosition']=_0x419c38['createPositionFromPath'](_0x26d90e,_0x50dbed)):(_0x330b86[_0x404b7a]['previousPosition']=_0x419c38['createPositionFromPath'](_0x26d90e,_0x50dbed),_0x3e90f3?_0x3e90f3['_data']+=_0x330b86[_0x404b7a]['item']['data']:_0x3e90f3=new wt(_0x330b86[_0x404b7a]['item']['data'],_0x330b86[_0x404b7a]['item']['getAttributes']()),_0x330b86[_0x404b7a+0x1]&&'text'===_0x330b86[_0x404b7a+0x1]['type']&&_0x4047e8(_0x3e90f3,_0x330b86[_0x404b7a+0x1]['item'])||(_0x58200a[0x0]['_appendChild'](_0x3e90f3),_0x3e90f3=null),_0x50dbed[_0x50dbed['length']-0x1]+=_0x330b86[_0x404b7a]['item']['offsetSize'],_0x330b86[_0x404b7a]['nextPosition']=_0x419c38['createPositionFromPath'](_0x26d90e,_0x50dbed));for(let _0x15aaac=0x0;_0x15aaac<_0x330b86['length'];_0x15aaac++){const _0x14db12=_0x330b86[_0x15aaac]['previousPosition'],_0x104726=_0x330b86[_0x15aaac]['nextPosition'];for(const _0x30d133 of _0x330b86[_0x15aaac]['markersStart'])_0x42425d['set'](_0x30d133,{'start':_0x14db12,'end':null});_0xc49fc6('isRemoveSuggestion',_0x15aaac,_0x14db12,_0x104726),_0xc49fc6('isAddSuggestion',_0x15aaac,_0x14db12,_0x104726),_0xc49fc6('isRemoved',_0x15aaac,_0x14db12,_0x104726),_0xc49fc6('isAdded',_0x15aaac,_0x14db12,_0x104726);for(const _0x3f1334 of _0x330b86[_0x15aaac]['markersEnd']){_0x42425d['get'](_0x3f1334)['end']=_0x104726;}}for(const [_0x380b90,_0x1385c7]of _0x42425d){const _0x373254=this['editor']['model']['createRange'](_0x1385c7['start'],_0x1385c7['end']);_0x26d90e['markers']['set'](_0x380b90,_0x373254);}return _0x5da880['sort']((_0xb5f993,_0x1ddc9f)=>{const _0x45136e=_0x26d90e['markers']['get']('revision:'+_0xb5f993['id']),_0x1e4595=_0x26d90e['markers']['get']('revision:'+_0x1ddc9f['id']);return _0x45136e['start']['isBefore'](_0x1e4595['start'])?-0x1:_0x45136e['start']['isAfter'](_0x1e4595['start'])?0x1:_0x45136e['end']['isBefore'](_0x1e4595['end'])?-0x1:_0x45136e['end']['isAfter'](_0x1e4595['end'])?0x1:'add'===_0xb5f993['type']?-0x1:0x1;}),{'root':_0x26d90e,'changes':_0x5da880};function _0xc49fc6(_0x42c265,_0x2e8ab9,_0x187a91,_0x139c3f){const _0x282c90=!!_0x330b86[_0x2e8ab9][_0x42c265],_0x375220=_0x282c90?_0x330b86[_0x2e8ab9][_0x42c265]['userId']:null,_0x43191a=_0x2e8ab9===_0x330b86['length']-0x1,_0x54b07d=_0x14fc44[_0x42c265][0x0],_0x89e0=_0x4f7de9['isObject'](_0x330b86[_0x2e8ab9]['item']);!_0x5d0708[_0x42c265]&&_0x282c90?_0x5d0708[_0x42c265]={'start':_0x187a91,'tapeItem':_0x330b86[_0x2e8ab9],'userId':_0x375220,'type':_0x42c265}:_0x5d0708[_0x42c265]&&!_0x282c90?(_0x5d0708[_0x42c265]['end']=_0x187a91,_0x23be4d(_0x5d0708[_0x42c265]),_0x5d0708[_0x42c265]=null):_0x5d0708[_0x42c265]&&_0x282c90&&_0x5d0708[_0x42c265]['userId']!==_0x375220&&(_0x5d0708[_0x42c265]['end']=_0x187a91,_0x54b07d&&_0x54b07d['userId']===_0x5d0708[_0x42c265]['userId']||_0x23be4d(_0x5d0708[_0x42c265]),_0x5d0708[_0x42c265]={'start':_0x187a91,'tapeItem':_0x330b86[_0x2e8ab9],'userId':_0x375220,'type':_0x42c265}),_0x5d0708[_0x42c265]&&_0x89e0&&('elementStart'!==_0x330b86[_0x2e8ab9]['type']||_0x54b07d&&_0x54b07d['userId']===_0x375220||_0x14fc44[_0x42c265]['unshift']({'userId':_0x375220,'object':_0x330b86[_0x2e8ab9]['item'],'change':_0x5d0708[_0x42c265]}),'elementEnd'===_0x330b86[_0x2e8ab9]['type']&&_0x54b07d&&_0x54b07d['object']===_0x330b86[_0x2e8ab9]['item']&&(_0x14fc44[_0x42c265]['shift'](),_0x5d0708[_0x42c265]=_0x54b07d['change'])),_0x5d0708[_0x42c265]&&_0x43191a&&(_0x5d0708[_0x42c265]['end']=_0x139c3f,_0x23be4d(_0x5d0708[_0x42c265]),_0x5d0708[_0x42c265]=null);}function _0x23be4d({start:_0x413805,end:_0x21ba82,tapeItem:_0x4b8ad8,userId:_0x5613e5,type:_0x27007f}){const _0x12d4fc=_0x4b8ad8['item'],_0x4c84d0=_0x419c38['schema']['isBlock'](_0x12d4fc)&&!_0x419c38['schema']['isLimit'](_0x12d4fc),_0x39e995=_0x413805['nodeAfter']==_0x21ba82['parent']&&_0x21ba82['isAtStart'];if(_0x4c84d0&&_0x39e995)return;const _0x21fb12=_0x419c38['createRange'](_0x413805,_0x21ba82),_0x4f340b=_0x48c073['get'](_0x5613e5),_0x37f998=new r({'author':_0x4f340b,'type':'isAdded'==_0x27007f||'isAddSuggestion'==_0x27007f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x27007f||'isRemoveSuggestion'==_0x27007f},'createdAt':new Date(),'rootName':_0x41b9b6});_0x5da880['push'](_0x37f998),_0x26d90e['markers']['set']('revision:'+_0x37f998['id'],_0x21fb12);}function _0x4047e8(_0x1857af,_0x1d4dae){const _0x10fa6f=_0x1857af['getAttributes'](),_0x36cdbf=_0x1d4dae['getAttributes']();for(const _0xf42fec of _0x10fa6f){if(_0xf42fec[0x1]!==_0x1d4dae['getAttribute'](_0xf42fec[0x0]))return!0x1;_0x36cdbf['next']();}return _0x36cdbf['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x319f9c=>{const _0x41f075=_0x319f9c['markerName']['split'](':')[0x1],_0x152450=this['_getChangeFromId'](_0x41f075);if(!_0x152450)return null;const _0x5bbde0='add'==_0x152450['type']?'insertion':'deletion',_0x3d36c3=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5bbde0];return _0x152450['data']['isSuggestion']&&_0x3d36c3['push']('ck-suggestion-marker-'+_0x5bbde0+'-new'),this['activeChange']==_0x152450&&_0x3d36c3['push']('ck-suggestion-marker--active'),{'classes':_0x3d36c3,'attributes':{'data-change-id':_0x41f075}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x109739=>{_0x109739['on']('element:pre',(_0x2b0e69,_0x3775bd,_0x59ec85)=>{const _0x2f0152=_0x3775bd['viewItem']['getChild'](0x0);if(!_0x2f0152||!_0x2f0152['is']('element','code'))return;if(!_0x59ec85['consumable']['consume'](_0x2f0152,{'attributes':['vid_start','vid_end']}))return;const _0x59fca6=_0x3775bd['modelRange']['start']['nodeAfter'];_0x59ec85['writer']['setAttribute']('vid_start',_0x2f0152['getAttribute']('vid_start'),_0x59fca6),_0x59ec85['writer']['setAttribute']('vid_end',_0x2f0152['getAttribute']('vid_end'),_0x59fca6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2d8f5e=>{_0x2d8f5e['on']('element',(_0x482431,_0x298f63,_0x376914)=>{if(!_0x376914['consumable']['consume'](_0x298f63['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x298f63['modelRange']['isCollapsed'])return;const _0x2d044d=_0x298f63['modelRange']['start']['nodeAfter'];_0x2d044d['hasAttribute']('vid_start')||_0x2d044d['hasAttribute']('vid')||(_0x376914['writer']['setAttribute']('vid_start',_0x298f63['viewItem']['getAttribute']('vid_start'),_0x2d044d),_0x376914['writer']['setAttribute']('vid_end',_0x298f63['viewItem']['getAttribute']('vid_end'),_0x2d044d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x74ec35=>_0x74ec35['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x291ce4,[,_0x270767])=>{['vid_start','vid_end','vid']['includes'](_0x270767)&&(_0x291ce4['return']=!0x0,_0x291ce4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x539400=>{_0x539400['on']('attribute:vid',(_0x28ba1f,_0x951df,_0x531b25)=>{if('\x20'!=_0x951df['item']['data']||_0x951df['item']['parent']['maxOffset']>0x1)return;if(!_0x531b25['consumable']['consume'](_0x951df['item'],_0x28ba1f['name']))return;const _0x18c558=_0x531b25['writer'],_0x4aa666=_0x531b25['mapper']['toViewRange'](_0x951df['range']);_0x18c558['wrap'](_0x4aa666,_0x18c558['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x52f095){const _0x1c58e1=_0x52f095['plugins']['get']('RevisionViewer');return(_0x36a292,_0x5c8f3e,_0x1776ac)=>{const _0x88e79d=_0x5c8f3e['markerName']['split'](':')[0x1],_0x1da33b=_0x1c58e1['_getChangeFromId'](_0x88e79d);if(!_0x1da33b)return null;const _0x57be08='add'==_0x1da33b['type']?'split':'merge';if(!_0x1776ac['consumable']['test'](_0x5c8f3e['markerRange'],_0x36a292['name']))return;const _0x18e847=_0x5c8f3e['markerRange']['getWalker'](),_0x1a07f2=_0x5c8f3e['markerRange']['start'],_0x3a9563=_0x52f095['model']['schema'];let _0x3b30d8=null,_0x2cfe96=null,_0x429bb7=!0x1,_0x1835c3=!0x1;for(const _0x47d905 of _0x18e847){const _0x41ff18=_0x47d905['item'];_0x429bb7=_0x429bb7||_0x3a9563['isContent'](_0x41ff18);const _0x4991bc=_0x1776ac['mapper']['toViewElement'](_0x41ff18);if(_0x4991bc&&_0x4991bc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47d905['type']&&(_0x3a9563['isBlock'](_0x41ff18)&&!_0x3a9563['isLimit'](_0x41ff18)&&(_0x41ff18['nextSibling']||_0x1a07f2['isAtEnd']?_0x3b30d8&&_0x3b30d8['parent']==_0x41ff18||(_0x3b30d8=_0x41ff18,_0x32be22(_0x47d905['previousPosition']),_0x1835c3=!0x0):_0x2cfe96=_0x2cfe96||_0x47d905['previousPosition']));}function _0x32be22(_0x5d2ef9){const _0x3d18e1=_0x1776ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x57be08}),_0x38e72c=_0x1776ac['mapper']['toViewPosition'](_0x5d2ef9);_0x1da33b['data']['isSuggestion']&&_0x1776ac['writer']['addClass']('ck-suggestion-marker-'+_0x57be08+'-new',_0x3d18e1),_0x1c58e1['activeChange']==_0x1da33b&&_0x1776ac['writer']['addClass']('ck-suggestion-marker--active',_0x3d18e1),_0x1776ac['writer']['insert'](_0x38e72c,_0x3d18e1),_0x1776ac['mapper']['bindElementToMarker'](_0x3d18e1,_0x5c8f3e['markerName']);}_0x429bb7||_0x1835c3||!_0x2cfe96||_0x32be22(_0x2cfe96);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5e25e6,_0x48955e,_0x3df06f)=>{const _0x57055f=_0x3df06f['mapper']['markerNameToElements'](_0x48955e['markerName']);if(_0x57055f){for(const _0x49a1c6 of _0x57055f)(_0x49a1c6['hasClass']('ck-suggestion-marker-split')||_0x49a1c6['hasClass']('ck-suggestion-marker-merge'))&&(_0x3df06f['mapper']['unbindElementFromMarkerName'](_0x49a1c6,_0x48955e['markerName']),_0x3df06f['writer']['remove'](_0x49a1c6));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xe84b22,_0x1e4e9e,_0x4e0a21)=>{const _0x11a990=_0x1e4e9e['markerName']['split'](':')[0x1],_0x117f1e=this['_getChangeFromId'](_0x11a990);if(!_0x117f1e)return null;const _0x3168f2='add'==_0x117f1e['type']?'split':'merge';if(_0x4e0a21['consumable']['test'](_0x1e4e9e['markerRange'],_0xe84b22['name']))for(const _0xe095f3 of _0x1e4e9e['markerRange']['getItems']()){if(!_0xe095f3['is']('element','softBreak'))continue;const _0x454810=_0x4e0a21['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3168f2}),_0x156fd1=_0x4e0a21['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xe095f3));_0x117f1e['data']['isSuggestion']&&_0x4e0a21['writer']['addClass']('ck-suggestion-marker-'+_0x3168f2+'-new',_0x454810),this['activeChange']==_0x117f1e&&_0x4e0a21['writer']['addClass']('ck-suggestion-marker--active',_0x454810),_0x4e0a21['writer']['insert'](_0x156fd1,_0x454810),_0x4e0a21['mapper']['bindElementToMarker'](_0x454810,_0x1e4e9e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x368346=>{for(const _0x434956 of this['editor']['model']['document']['getRootNames']()){const _0x3f7079=this['editor']['model']['document']['getRoot'](_0x434956),_0x3c7534=this['editor']['editing']['view']['document']['getRoot'](_0x434956);if(_0x3c7534){const _0x31b4e2=_0x3f7079['getAttribute']('revisionHistoryAttachChange');if(_0x368346['removeAttribute']('data-change-id',_0x3c7534),_0x368346['removeClass']('ck-revision-history-root-add',_0x3c7534),_0x368346['removeClass']('ck-revision-history-root-remove',_0x3c7534),_0x368346['removeClass']('ck-revision-history-root--active',_0x3c7534),_0x31b4e2){const _0x313f65=this['_getChangeFromId'](_0x31b4e2);if(!_0x313f65)return null;_0x368346['setAttribute']('data-change-id',_0x31b4e2,_0x3c7534),_0x368346['addClass']('ck-revision-history-root-'+_0x313f65['type'],_0x3c7534),this['activeChange']==_0x313f65&&_0x368346['addClass']('ck-revision-history-root--active',_0x3c7534);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x8c1d9d=>'revision-comment:'+_0x8c1d9d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5a992e=>'revision-suggestion:'+_0x5a992e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x364cd8=>({'name':'suggestion:'+_0x364cd8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x265044=>{const _0x1be93e=_0x265044['markerName']['split'](':')[0x1];return'insertion'!=_0x1be93e&&'deletion'!=_0x1be93e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1be93e]};}}),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',(_0x43b9f3,_0x5ba9a4,_0x18d1ee)=>{const _0x3b8126=_0x18d1ee['mapper']['markerNameToElements'](_0x5ba9a4['markerName']);if(_0x3b8126){for(const _0xa4b702 of _0x3b8126)_0xa4b702['is']('uiElement')&&(_0x18d1ee['mapper']['unbindElementFromMarkerName'](_0xa4b702,_0x5ba9a4['markerName']),_0x18d1ee['writer']['remove'](_0xa4b702));}},{'priority':'high'});}['_getChangeFromId'](_0x31a1d1){return this['_changeIdToChange']['get'](_0x31a1d1);}['_getViewForChange'](_0x5e9c39){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5e9c39),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x157ad2,_0x525d47,_0x300925,_0x1b0358)=>{_0x1b0358&&this['_balloon']['remove'](_0x1b0358),_0x300925&&(this['_balloon']['add']({'view':_0x300925,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x177d1d=this['editor']['editing'],_0x46256f=this['_getChangeFromId'](_0x300925['changeId']);let _0x21255c;if(_0x46256f['data']['isOnRoot']){const _0x3155c6=_0x177d1d['view']['getDomRoot'](_0x46256f['rootName']);_0x21255c=Array['from'](_0x3155c6['getClientRects']());}else{const _0x443b88=this['editor']['model']['markers']['get']('revision:'+_0x300925['changeId']);_0x21255c=Array['from'](_0x177d1d['mapper']['markerNameToElements'](_0x443b88['name']))['map'](_0x57ba9a=>_0x177d1d['view']['domConverter']['mapViewToDom'](_0x57ba9a))['map'](_0x262ed8=>Array['from'](_0x262ed8['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x21255c[0x0];return _0x21255c['find'](_0x28c9f1=>_0x28c9f1['top']-0x3<=this['_activeViewTarget']['y']&&_0x28c9f1['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x28c9f1['left']-0x3<=this['_activeViewTarget']['x']&&_0x28c9f1['right']+0x3>=this['_activeViewTarget']['x'])||_0x21255c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x12790e,_0x1c48d2,_0xdc2cef,_0x2e96da)=>{this['activeView']=_0xdc2cef?this['_getViewForChange'](_0xdc2cef):null,this['editor']['model']['change'](()=>{const _0x4da09b=this['editor']['editing'];_0x2e96da&&(_0x2e96da['data']['isOnRoot']?_0x4da09b['view']['change'](_0x2c5431=>{_0x2c5431['removeClass']('ck-revision-history-root--active',_0x4da09b['view']['document']['getRoot'](_0x2e96da['rootName']));}):_0x4da09b['reconvertMarker']('revision:'+_0x2e96da['id'])),_0xdc2cef&&(_0xdc2cef['data']['isOnRoot']?_0x4da09b['view']['change'](_0x31902a=>{_0x31902a['addClass']('ck-revision-history-root--active',_0x4da09b['view']['document']['getRoot'](_0xdc2cef['rootName']));}):_0x4da09b['reconvertMarker']('revision:'+_0xdc2cef['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4b597a,_0x2f7b2)=>{if(this['activeChange'])return;const _0x1681e7=this['_findChangeIdFromDomTarget'](_0x2f7b2['target']),_0x346a39=this['_changeIdToChange']['get'](_0x1681e7);_0x346a39?(this['_activeViewTarget']={'x':_0x2f7b2['domEvent']['x'],'y':_0x2f7b2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x346a39)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x9fe797,_0xa883ce)=>{const _0x5016ed=this['_findChangeIdFromDomTarget'](_0xa883ce['target']),_0x48f3fe=this['_changeIdToChange']['get'](_0x5016ed);_0x48f3fe?(this['_activeViewTarget']={'x':_0xa883ce['domEvent']['x'],'y':_0xa883ce['domEvent']['y']},_0x48f3fe===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x48f3fe):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x563ce8){do{const _0x26db54=_0x563ce8['getAttribute']('data-change-id');if(_0x26db54)return _0x26db54;_0x563ce8=_0x563ce8['parent'];}while(_0x563ce8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x45afa0=>{for(const _0x284ab1 of this['editor']['model']['markers'])_0x45afa0['removeMarker'](_0x284ab1);});}}function Z(_0x262581,_0x30a2a9){return(_0xb65411,_0x4f867b,_0x5170e7)=>{if(!_0x5170e7['consumable']['test'](_0x4f867b['markerRange'],_0xb65411['name']))return;const _0x473c77=_0x4f867b['markerRange']['getWalker'](),_0x2f0eb5=_0x4f867b['markerRange']['start'],_0x354fc8=_0x262581['model']['schema'];let _0x1b0246=null,_0x215dbc=null,_0x40428d=!0x1,_0x2d07a6=!0x1;for(const _0x134761 of _0x473c77){const _0x3a6fca=_0x134761['item'];_0x40428d=_0x40428d||_0x354fc8['isContent'](_0x3a6fca);const _0x5ac74e=_0x5170e7['mapper']['toViewElement'](_0x3a6fca);if(_0x5ac74e&&_0x5ac74e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x134761['type']&&(_0x354fc8['isBlock'](_0x3a6fca)&&!_0x354fc8['isLimit'](_0x3a6fca)&&(_0x3a6fca['nextSibling']||_0x2f0eb5['isAtEnd']?_0x1b0246&&_0x1b0246['parent']==_0x3a6fca||(_0x1b0246=_0x3a6fca,_0x16dadb(_0x134761['previousPosition']),_0x2d07a6=!0x0):_0x215dbc=_0x215dbc||_0x134761['previousPosition']));}function _0x16dadb(_0x30e42c){const _0x2c5036=_0x5170e7['mapper']['toViewPosition'](_0x30e42c),_0x39b719=_0x5170e7['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x30a2a9});_0x5170e7['writer']['insert'](_0x2c5036,_0x39b719),_0x5170e7['mapper']['bindElementToMarker'](_0x39b719,_0x4f867b['markerName']);}_0x40428d||_0x2d07a6||!_0x215dbc||_0x16dadb(_0x215dbc);};}class _t extends _0x436a8b{constructor(_0x3e1736){super(_0x3e1736);const _0xc55222=_0x3e1736['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xc55222,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xc55222,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x48bbdd=this['editor'],_0x36ba20=_0x48bbdd['plugins']['get'](d),_0x3a27eb=_0x36ba20['isReady']?_0x36ba20['diff']['newRevisionId']:null;_0x48bbdd['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a27eb);}['refresh'](){const {isReady:_0x100c40,isEnabled:_0xbdb06c,repository:_0x4e2412,diff:_0x2832c4}=this['editor']['plugins']['get'](d),_0x14abca=_0x2832c4&&_0x4e2412['getLaterVisibleRevision'](_0x2832c4['newRevisionId']);this['isEnabled']=_0x100c40&&_0xbdb06c&&Boolean(_0x14abca);}}class yt extends _0x436a8b{['_step'];constructor(_0x1bfafd,{direction:_0x249364}){super(_0x1bfafd);const _0x139edb=_0x1bfafd['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x249364?0x1:-0x1,this['listenTo'](_0x139edb,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x139edb,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x139edb,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2d4ed0=this['editor'],_0x553a73=_0x2d4ed0['plugins']['get'](d),{isNavigationMode:_0xc90d85,currentChangeNumber:_0x7e209e}=_0x553a73;let _0xc2ada4;if(_0x553a73['activeChange']=_0xc90d85?_0x553a73['diff']['changes']['get'](_0x7e209e+this['_step']):_0x553a73['diff']['changes']['first'],_0x553a73['activeChange']['data']['isOnRoot'])_0xc2ada4=_0x2d4ed0['editing']['view']['getDomRoot'](_0x553a73['activeChange']['rootName']);else{const _0x1f511c=_0x2d4ed0['model']['markers']['get']('revision:'+_0x553a73['activeChange']['id']);_0xc2ada4=_0x1f62cd(_0x2d4ed0['editing'],_0x1f511c);}_0x2d4a6e({'target':_0xc2ada4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x335e87,currentChangeNumber:_0x41c7a9,numberOfChanges:_0x4da63c,isReady:_0x3ada50,isEnabled:_0x3e4174}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3e4174&&_0x3ada50&&_0x4da63c)&&(!_0x335e87||(0x1===this['_step']?_0x41c7a9<_0x4da63c-0x1:_0x41c7a9>0x0));}}class di extends _0x326023{constructor(_0x1df5ee){super(_0x1df5ee);const _0x4f1630=this['bindTemplate'],_0x48a155=new _0x30c871(_0x1df5ee),_0x22244c=new _0x30c871(_0x1df5ee);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',(_0x3e65e5,_0x405ff2)=>_0x3e65e5&&_0x405ff2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x45b38f,_0x305365,_0x2ace73,_0x4746ce)=>{if(!_0x45b38f)return m(_0x1df5ee,'Loading...');if(!_0x2ace73)return m(_0x1df5ee,'No\x20changes');const _0x2e788e=m(_0x1df5ee,'NUMBER_OF_CHANGES',_0x2ace73);return _0x4746ce?m(_0x1df5ee,'X_OF_Y_CHANGES',[_0x305365+0x1,_0x2ace73]):_0x2e788e;}),_0x48a155['set']({'label':m(_0x1df5ee,'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'}),_0x22244c['set']({'label':m(_0x1df5ee,'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'}),_0x48a155['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x22244c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x48a155['on']('execute',()=>this['fire']('execute','backward')),_0x22244c['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',_0x4f1630['if']('_isStatusLabelVisible','ck-hidden',_0x41029e=>!_0x41029e)]},'children':[{'text':_0x4f1630['to']('isNavigationMode',_0x31039a=>_0x31039a?m(_0x1df5ee,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1df5ee,'Total')+':\x20')}]},{'text':_0x4f1630['to']('_statusText')}]},new _0x4c888d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x48a155,_0x22244c]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x1f8aed{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x12a013=this['editor']['editing']['view'];_0x12a013['change'](_0x469a2c=>{for(const _0x52a3b5 of _0x12a013['document']['roots'])_0x469a2c['addClass'](ce,_0x52a3b5);});}['hide'](){const _0x10a561=this['editor']['editing']['view'];_0x10a561['change'](_0x9dcef7=>{for(const _0x1ff243 of _0x10a561['document']['roots'])_0x9dcef7['removeClass'](ce,_0x1ff243);});}}class g extends _0x1f8aed{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x4f1b27=this['editor'],_0x22ae41=_0x4f1b27['plugins']['get'](d),_0x10cb84=_0x4f1b27['plugins']['get'](ae);_0x4f1b27['ui']['componentFactory']['add']('exitToEditing',_0x2a6706=>{const _0x53b68d=new _0x30c871(_0x2a6706);return _0x53b68d['set']({'label':m(_0x2a6706,'Back\x20to\x20editing'),'icon':_0x722761['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x53b68d,'execute',()=>{_0x4f1b27['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x53b68d;}),_0x4f1b27['ui']['componentFactory']['add']('restoreRevision',_0x50b1eb=>{const _0x51fb32=new _0x30c871(_0x50b1eb);return _0x51fb32['set']({'label':m(_0x50b1eb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x51fb32['bind']('isEnabled')['to'](_0x4f1b27['commands']['get']('restoreRevision')),this['listenTo'](_0x51fb32,'execute',()=>_0x4f1b27['execute']('restoreRevision')),_0x51fb32;}),_0x4f1b27['ui']['componentFactory']['add']('changesNavigation',_0x4cf836=>{const _0x17b5c4=new di(_0x4cf836),_0xa7bde9=_0x4f1b27['commands']['get']('showPreviousChange'),_0x1fe6d0=_0x4f1b27['commands']['get']('showNextChange');return _0x17b5c4['bind']('isBackwardNavigationEnabled')['to'](_0xa7bde9,'isEnabled'),_0x17b5c4['bind']('isForwardNavigationEnabled')['to'](_0x1fe6d0,'isEnabled'),_0x17b5c4['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x22ae41),this['listenTo'](_0x17b5c4,'execute',(_0x2eca56,_0x1f6725)=>{_0x4f1b27['execute']('forward'===_0x1f6725?'showNextChange':'showPreviousChange');}),_0x17b5c4;}),_0x10cb84['show'](),_0x22ae41['on']('change:isReady',(_0x53f862,_0x288039,_0xfecfdb)=>{_0xfecfdb?_0x10cb84['hide']():_0x10cb84['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x54e26f,_0x3d7e05){super(_0x54e26f,_0x3d7e05);const _0x322fd2=this['bindTemplate'];this['set']({'label':m(_0x54e26f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x54e26f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x322fd2['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 _0x4898d2=this['fieldView']['element'];this['_tooltipString']=_0x4898d2['scrollWidth']>_0x4898d2['clientWidth']&&_0x4898d2['value']||'';}}class ti extends _0x326023{constructor(_0x1f5fd8,_0xbba773,_0x266784){super(_0x1f5fd8);const _0x415d23=new _0x28ac27();_0x415d23['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 _0x2ecd87=['ck','ck-revision-history-sidebar__revision-author'];_0x266784&&_0x2ecd87['push']('ck-revision-history-sidebar__revision-author_creator');const _0x18397f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1f5fd8,_0x266784?'Revision\x20creator':'Revision\x20author')},'children':[_0x415d23,_0xbba773['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2ecd87},'children':_0x18397f});}}function ni(_0x42b5c4,_0x3daa99){const _0x58afc2=_0x42b5c4['bindTemplate'],_0x5516a1=_0x42b5c4['locale'],_0x538c25=_0x113c2e(_0x5516a1);_0x538c25['panelPosition']='sw';const _0x42d2b2=function(_0x150144,_0xf14382){const _0x3c75fd=function(_0x5067a1,_0x35c2e5){const _0x3b661c=_0x5067a1['locale'],_0x26100d={'Compare\x20against\x20selected':m(_0x3b661c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3b661c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3b661c,'Restore\x20this\x20revision')};return _0x35c2e5['map'](_0x1c4244=>{const _0x31875d=_0x26100d[_0x1c4244['name']];return _0x31875d&&_0x31875d!==_0x1c4244['name']&&(_0x1c4244['name']=_0x31875d),_0x1c4244;});}(_0x150144,_0xf14382),_0x1af63d=new _0xdaacf2();for(const _0x233af6 of _0x3c75fd){const _0x6845fe={'type':'button','model':new to({'label':_0x233af6['name'],'class':_0x233af6['class'],'withText':!0x0,'role':'menuitem','_action':_0x233af6['action']})};_0x6845fe['model']['bind']('isEnabled')['to'](_0x150144,'isActionsDropdownOpen',_0x5bd7b1=>'function'!=typeof _0x233af6['isEnabled']||(!_0x5bd7b1||_0x233af6['isEnabled'](_0x150144))),_0x1af63d['add'](_0x6845fe);}return _0x1af63d;}(_0x42b5c4,_0x3daa99);return _0x42b5c4['bind']('isActionsDropdownOpen')['to'](_0x538c25,'isOpen'),_0x538c25['buttonView']['set']({'label':m(_0x5516a1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x722761['threeVerticalDots']}),_0x538c25['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x58afc2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x58afc2['to'](_0x4e74cc=>_0x4e74cc['stopPropagation']())}}),_0x538c25['on']('execute',_0x176653=>{_0x42b5c4['isReady']&&'function'==typeof _0x176653['source']['_action']&&_0x176653['source']['_action'](_0x42b5c4);}),_0x302b3d(_0x538c25,_0x42d2b2,{'role':'menu'}),_0x538c25['listenTo'](_0x42b5c4,'change:isActionsDropdownOpen',(_0x551728,_0xeac7e7,_0x2c732f)=>{if(_0x2c732f)for(const _0x2658b5 of _0x538c25['listView']['items']){const _0x54ffda=_0x2658b5['children']['first'],_0x4aa9f5=_0x3daa99['find'](_0x373458=>_0x373458['action']===_0x54ffda['_action'])['isVisible'];_0x2658b5['isVisible']=void 0x0===_0x4aa9f5||_0x4aa9f5(_0x42b5c4);}}),_0x538c25;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2914cb(_0x326023){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xf3fbf1,_0x3a2964,_0x4b6cec,_0x1657d7){super(_0xf3fbf1);const _0x4f6509=this['bindTemplate'],_0x28ea38=function(_0x323ce5,_0x56cc5a){const _0x13ceca=Array['from'](_0x56cc5a['authors'])['filter'](_0x4f252c=>_0x4f252c!=_0x56cc5a['creator']);return _0x56cc5a['creator']&&_0x13ceca['unshift'](_0x56cc5a['creator']),_0x13ceca['map'](_0x4f846b=>new ti(_0x323ce5,_0x4f846b,_0x4f846b==_0x56cc5a['creator']));}(_0xf3fbf1,_0x3a2964);this['id']=_0x3a2964['id'],this['_revision']=_0x3a2964,this['_requireRevisionName']=_0x1657d7,this['bind']('name','createdAt')['to'](_0x3a2964),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x40f536=>{return _0x4d1a7e=_0xf3fbf1['uiLanguage'],(_0x299d64=_0x40f536)['toLocaleDateString'](_0x4d1a7e,{'month':'long','day':'numeric'})+',\x20'+_0x299d64['toLocaleTimeString'](_0x4d1a7e,{'hour':'numeric','minute':'numeric'});var _0x4d1a7e,_0x299d64;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xf3fbf1,_0xde4bb0),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x456c50=>_0x456c50||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3a6581,_0x42fad1)=>_0x3a6581&&_0x42fad1),this['revisionActionsView']=_0x4b6cec&&_0x4b6cec['length']?ni(this,_0x4b6cec):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4f6509['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4f6509['if']('isEnabled','ck-disabled',_0x5b927a=>!_0x5b927a),_0x4f6509['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4f6509['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4f6509['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':_0x4f6509['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':_0x28ea38}]},this['revisionActionsView']],'on':{'click':_0x4f6509['to'](_0x42759b=>{_0x42759b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3888d3=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3888d3,'change',()=>{this['_requireRevisionName']&&!_0x3888d3['value']||this['fire']('setName',{'id':this['id'],'name':_0x3888d3['value']}),_0x3888d3['value']||(_0x3888d3['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(_0x432655,_0xb00200){const _0xdefed3=_0x25c7b8['fromJSDate'](_0x432655)['setLocale'](_0xb00200),_0x18f942=_0x25c7b8['local'](),_0x1b9b51=_0x18f942['minus']({'days':0x1})['startOf']('day');let _0x17f5ac,_0x30bc3c;return _0xdefed3['hasSame'](_0x18f942,'day')?(_0x17f5ac=_0xdefed3['startOf']('day')['toJSDate'](),_0x30bc3c=_0xdefed3['toRelativeCalendar']()):_0xdefed3['hasSame'](_0x1b9b51,'day')?(_0x17f5ac=_0x1b9b51['toJSDate'](),_0x30bc3c=_0xdefed3['toRelativeCalendar']()):_0xdefed3['hasSame'](_0x18f942,'week')?(_0x17f5ac=_0xdefed3['startOf']('week')['toJSDate'](),_0x30bc3c=_0xdefed3['weekdayLong']||''):_0xdefed3['hasSame'](_0x18f942,'year')?(_0x17f5ac=_0xdefed3['startOf']('month')['toJSDate'](),_0x30bc3c=_0xdefed3['monthLong']||''):(_0x17f5ac=_0xdefed3['startOf']('year')['toJSDate'](),_0x30bc3c=String(_0xdefed3['year'])),{'startDate':_0x17f5ac,'localizedPeriodName':_0x30bc3c};}class vi extends _0x326023{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5577f8,_0x562181,_0x467e52,_0x1fe1d1){super(_0x5577f8);const _0x11d929=mi(_0x562181,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x562181,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x467e52,this['_requireRevisionName']=_0x1fe1d1,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':_0x11d929}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4ebae0){const _0x245ee4=new ai(this['locale'],_0x4ebae0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x245ee4);}['removeRevision'](_0x39a3c1){const _0xd221b8=this['revisionViews']['find'](_0x11523a=>_0x11523a['id']===_0x39a3c1['id']);this['revisionViews']['remove'](_0xd221b8);}}class as extends _0x326023{constructor(_0x514056){super(_0x514056);const _0x2e54be=new _0x28ac27();_0x2e54be['content']=_0x722761['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2e54be,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x514056,'Revision\x20history')]}]});}}class li extends _0x326023{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4e1940,_0x36cf29,_0x285c87,_0x3bebd1){super(_0x4e1940);const _0x22ba93=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x36cf29,this['_revisionActions']=_0x285c87,this['_requireRevisionName']=_0x3bebd1,this['on']('select',(_0x40600c,_0x5a25e1)=>{this['fire']('revisionSelected',_0x5a25e1);}),this['on']('setName',(_0x437b9a,_0x3356f8)=>{this['fire']('revisionSetName',_0x3356f8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4e1940),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x22ba93['if']('isEnabled','ck-disabled',_0x42dc72=>!_0x42dc72)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x254eb2 of this['_revisions'])this['_addRevision'](_0x254eb2);this['_revisions']['on']('add',(_0x3fd080,_0x18f249)=>{this['_addRevision'](_0x18f249);}),this['_revisions']['on']('remove',(_0x1cd2c9,_0x4bb8bb)=>{this['_removeRevision'](_0x4bb8bb);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x276122=>_0x276122['revisionViews']['map'](_0x12521f=>_0x12521f))['flat']();}['selectRevision'](_0x215722){for(const _0x3c3570 of this['revisionViews'])_0x215722&&_0x215722['id']===_0x3c3570['id']?_0x3c3570['select']():_0x3c3570['deselect']();}['highlightRevisions'](_0x41a065){for(const _0x4a8196 of this['revisionViews'])_0x41a065['some'](({id:_0x252e08})=>_0x252e08===_0x4a8196['id'])?_0x4a8196['highlight']():_0x4a8196['unhighlight']();}['_addRevision'](_0x7719e0){const _0x53c8ef=mi(_0x7719e0['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x7c5f43=this['timePeriodViews']['get'](0x0);_0x7c5f43&&_0x7c5f43['startDate']['getTime']()===_0x53c8ef['getTime']()||(_0x7c5f43=new vi(this['locale'],_0x53c8ef,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x7c5f43)),_0x7c5f43['addRevision'](_0x7719e0);}['_removeRevision'](_0x1d39c2){const _0x4f54e8=mi(_0x1d39c2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4f54e8)['removeRevision'](_0x1d39c2);}['_getTimePeriodViewByStartDate'](_0x36d695){return this['timePeriodViews']['find'](_0x3d8357=>_0x3d8357['startDate']['getTime']()===_0x36d695['getTime']());}}class w extends _0x1f8aed{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5bb65e,_0x45c06f){super(_0x45c06f),this['sourceElement']=_0x5bb65e,this['model']['document']['createRoot']();const _0x2673f3=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2673f3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x31a658,_0x389cae){const _0x14ee03=new this(_0x31a658,_0x389cae);return await _0x14ee03['initPlugins'](),await _0x14ee03['ui']['init'](_0x31a658),await _0x14ee03['data']['init'](_0x14ee03['config']['get']('initialData')||''),_0x14ee03['fire']('ready'),_0x14ee03;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x5d28bb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6af698){function _0x5af041(_0x20f693){return _0x20f693['map'](_0x3dbc5b=>String['fromCharCode'](_0x3dbc5b))['join']('');}super(_0x6af698),this['result']='end',_0x6af698[_0x5af041([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5af041([0x76,0x69,0x65,0x77])][_0x5af041([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5af041([0x61,0x75,0x74,0x6f]),_0x6af698[_0x5af041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5af041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5af041([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5af041([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5af041([0x6f,0x6b])});}}class k extends _0x5d28bb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3436cb){if(super(_0x3436cb),!this['editor']['config']['get']('revisionHistory'))throw new _0x13cf8d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x30f5d0=>this['_showRevisionViewer']({..._0x30f5d0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4d3999=>this['_closeRevisionViewer'](_0x4d3999)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1554ba=>this['_restoreRevision'](_0x1554ba)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x382915){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x382915;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2e73d5){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2e73d5);}['getRevision'](_0x57085a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x57085a);}['getRevisions'](_0x4b5d8c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4b5d8c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x40eb04=this['editor'],_0x1176a6=_0x266f66(_0x40eb04,p),_0x408681=_0x40eb04['plugins']['get']('RevisionTracker'),_0x1d0e88=_0x40eb04['plugins']['get']('Users')['users'];return _0x1176a6['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1176a6['lazyRoots'],(_0x1176a6['plugins']['push'](bt,d,g,class extends _0x5d28bb{static get['requires'](){return[d,'Users'];}['init'](){const _0x1934e4=this['editor']['plugins']['get']('Users');for(const _0x4f246a of _0x1d0e88)_0x4f246a['isAnonymous']||_0x1934e4['getUser'](_0x4f246a['id'])||_0x1934e4['addUser'](_0x4f246a);const _0x24ed9f=_0x408681['repository']['getRevisions']();let _0x4957f1=null;const _0x18494c=this['editor']['plugins']['get']('RevisionViewer');_0x18494c['adapter']=_0x408681['adapter'],_0x18494c['bind']('isEnabled')['to'](_0x408681),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x40eb04,'isReadOnly',_0xcfefed=>!_0xcfefed);for(const _0x208c36 of _0x24ed9f){const _0x958218=null===_0x208c36['creator'];if(_0x958218&&_0x208c36['toVersion']===_0x208c36['fromVersion'])continue;const _0x37af62=_0x208c36['toJSON']();_0x18494c['addRevisionData'](_0x37af62,(_0x38a7ce,_0x116703,_0x6fd9f2)=>{if(_0x958218){if(_0x4957f1)_0x4957f1['_update'](_0x38a7ce,_0x116703);else{if(!_0x116703){const _0x4448e7=_0x6fd9f2['toJSON']();_0x4448e7['id']=_0x1a2a42(),_0x408681['saveRevision'](_0x4448e7,_0x6fd9f2['toVersion'])['then'](_0x218579=>{_0x4957f1=_0x218579;});}}}else _0x208c36['_update'](_0x38a7ce,_0x116703);});}}},w),_0x1176a6);}['_enhanceShowRevisionViewerCallback'](){const _0x203736=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xa9e296=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1750a7=this['editor']['plugins']['get']('Autosave');await _0x1750a7['save']();}else await _0xa9e296['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3be0b1=this['editor']['plugins']['get']('Dialog');_0x3be0b1['isOpen']&&_0x3be0b1['hide']();}const _0x4975e2=this['_getRevisionViewerEditorConfig']();return _0x203736(_0x4975e2)['then'](_0x504df4=>{return(this['_viewerEditor']=_0x504df4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x504df4;})['catch'](_0x540c4e=>(console['error'](_0x540c4e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1db506=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'](),_0x1db506(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xd4a215=this['editor']['plugins']['get']('Annotations');_0xd4a215['refreshVisibility'](),_0xd4a215['refreshPositioning']();}})));}['_showRevisionViewer'](_0x164c4e){const _0x3916cb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x488093=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xbb5c64=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xbb5c64,_0x164c4e)['then'](_0x3086cb=>(_0x488093['style']['display']='block',_0x3916cb['style']['display']='none',_0x3086cb));}['_closeRevisionViewer'](_0x261f45){const _0x45ce2a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x45ce2a['style']['display']='',_0x261f45['destroy']();}async['_restoreRevision'](_0xe1412c){const _0x2018ec=this['editor'],_0x43c707=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x28a33c=_0x2018ec['plugins']['get']('RevisionTracker'),_0x2c644a=_0x43c707['repository']['getRevision'](_0xe1412c);let _0x4b7672,_0x1dfb9a,_0x4b88f6;try{_0x4b7672=await _0x43c707['getRevisionData'](_0x2c644a),_0x1dfb9a=await _0x43c707['getRevisionRootsAttributes'](_0x2c644a);}catch(_0x2e8b48){return void console['error'](_0x2e8b48);}_0x2018ec['model']['change'](_0x83550d=>{for(const _0x57c0bd of Array['from'](_0x2018ec['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x83550d['removeMarker'](_0x57c0bd);}),_0x43c707['isReady']=!0x1,_0x2018ec['model']['enqueueChange'](_0x30bf4b=>{_0x30bf4b['setSelection'](null),_0x30bf4b['removeSelectionAttribute'](_0x2018ec['model']['document']['selection']['getAttributeKeys']());const _0x1301d2=Object['keys'](_0x4b7672);for(const _0x119af7 of _0x2018ec['model']['document']['roots'])'$graveyard'!=_0x119af7['rootName']&&_0x119af7['isAttached']()&&!_0x1301d2['includes'](_0x119af7['rootName'])&&_0x30bf4b['detachRoot'](_0x119af7);for(const _0x1b17a3 of _0x1301d2){let _0x156c77=_0x2018ec['model']['document']['getRoot'](_0x1b17a3);_0x156c77&&_0x156c77['isAttached']()||(_0x156c77=_0x30bf4b['addRoot'](_0x1b17a3));const _0x3bb453=_0x1dfb9a[_0x1b17a3],_0x15bb9b=Object['keys'](_0x3bb453),_0x5f4984=_0x4b7672[_0x1b17a3];for(const _0x45efe7 of _0x156c77['getAttributeKeys']())_0x15bb9b['includes'](_0x45efe7)||_0x30bf4b['removeAttribute'](_0x45efe7,_0x156c77);for(const _0x5de316 of _0x15bb9b)_0x30bf4b['setAttribute'](_0x5de316,_0x1dfb9a[_0x1b17a3][_0x5de316],_0x156c77);_0x30bf4b['remove'](_0x30bf4b['createRangeIn'](_0x156c77)),_0x30bf4b['insert'](_0x2018ec['data']['parse'](_0x5f4984,_0x156c77),_0x156c77,0x0);}});const _0x2eb037=m(_0x2018ec['locale'],'Restored');if(_0x2c644a['name'])_0x4b88f6=-0x1==_0x2c644a['name']['indexOf'](_0x2eb037)?_0x2eb037+':\x20'+_0x2c644a['name']:_0x2c644a['name'];else _0x4b88f6=_0x2eb037+':\x20'+(_0x2c644a['createdAt']['toLocaleDateString'](_0x2018ec['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2c644a['createdAt']['toLocaleTimeString'](_0x2018ec['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x28a33c['saveRevision']({'name':_0x4b88f6}),_0x43c707['isReady']=!0x0,_0x2018ec['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x29c6b7){super(_0x29c6b7),this['_revisionViewer']=_0x29c6b7['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5b1923=this['_revisionsRepository']['_revisions'],_0x5e3cc4=this['_createRevisionActions'](),_0x33b352=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x5b1923,_0x5e3cc4,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',(_0x253d9f,_0x47a8fa)=>{_0x47a8fa['revisionViews']['on']('add',(_0x272b37,_0x2e047e)=>{_0x2e047e['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)),_0x33b352['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x203168=this['_revisionsRepository']['getRevision'](0x0);if(_0x203168){const _0x4c248b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x203168['id']);this['_revisionViewer']['compare'](_0x203168,_0x4c248b);}}['_handleRevisionSelected'](_0x393646,_0x2ba1f6){const _0x3e75ef=this['_revisionsRepository']['getRevision'](_0x2ba1f6['id']),_0xb4b8ee=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3e75ef['id']);this['_revisionViewer']['compare'](_0x3e75ef,_0xb4b8ee);}['_handleRevisionSetName'](_0x2c46d5,_0x25f481){this['_revisionsRepository']['getRevision'](_0x25f481['id'])['setName'](_0x25f481['name']);}['_handleDiffChange'](_0x3ff15d,_0xf4f8cc,_0x218742){const _0x379de5=this['_revisionsRepository']['getRevisionsInDiff'](_0x218742);_0x379de5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x379de5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x379de5[0x0]));}['_createRevisionActions'](){const _0x555890=this['editor'],_0x259323=w['availableRevisionActions'],_0x1f6b81=_0x555890['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x1f6b81['length'])return _0x1f6b81['map'](_0x28a1cc=>{const _0x3799dd='string'==typeof _0x28a1cc?Object['assign']({},_0x259323[_0x28a1cc]):_0x28a1cc;return _0x3799dd['action']=_0x3799dd['action']['bind'](this,_0x555890),_0x3799dd['isVisible']&&(_0x3799dd['isVisible']=_0x3799dd['isVisible']['bind'](this,_0x555890)),_0x3799dd;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ae36b},_0x174396)=>{const _0x54e1d5=_0x5ae36b['get'](d),_0x4e63d6=_0x54e1d5['repository'];let _0x45251e=_0x54e1d5['diff']['newRevisionId'],_0x9a641f=_0x174396['id'];_0x4e63d6['getIndex'](_0x45251e)>_0x4e63d6['getIndex'](_0x9a641f)&&([_0x45251e,_0x9a641f]=[_0x9a641f,_0x45251e]),_0x54e1d5['compare'](_0x45251e,_0x9a641f);},'isVisible':({plugins:_0x321e45},_0x34e573)=>{const _0x1ff2b0=_0x321e45['get'](d);return!(_0x1ff2b0['repository']['getRevisionsInDiff'](_0x1ff2b0['diff'])['length']>0x2)&&!_0x34e573['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x370ea8,{id:_0x383069})=>{_0x370ea8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x383069);},'isVisible':({plugins:_0x25009f},_0xa8d9ca)=>!!_0x25009f['get'](d)['repository']['getLaterVisibleRevision'](_0xa8d9ca['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x599ebc},{id:_0x4067ca,revisionNameView:_0x35864c})=>{const _0x695c1e=_0x599ebc['get'](d),_0x1a0819=_0x695c1e['repository']['getEarlierVisibleRevision'](_0x4067ca);_0x695c1e['compare'](_0x4067ca,_0x1a0819),_0x35864c['focus'](),_0x35864c['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x308cad,_0xd6fc71){super(_0x308cad),this['_view']=_0xd6fc71,this['_toolbarConfig']=ot(_0x308cad['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x45af1b){const _0x57e250=this['editor'],_0x3c826a=this['view'],_0x130fdd=_0x57e250['editing']['view'],_0x53839e=_0x3c826a['editable'],_0x560226=_0x130fdd['document']['getRoot']();_0x53839e['name']=_0x560226['rootName'],_0x3c826a['render']();const _0x427af3=_0x53839e['element'];this['setEditableElement'](_0x53839e['name'],_0x427af3),_0x3c826a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x130fdd['attachDomRoot'](_0x427af3),this['_elementReplacer']['replace'](_0x45af1b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2e919a=this['view'],_0x3fd2b2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3fd2b2['detachDomRoot'](_0x2e919a['editable']['name']),_0x2e919a['destroy']();}['_initToolbar'](){const _0x3e4b7a=this['view'];_0x3e4b7a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3e4b7a['stickyPanel']['limiterElement']=_0x3e4b7a['element'],_0x3e4b7a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x254254})=>_0x254254),_0x3e4b7a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3e4b7a['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4608d9,_0x3407b6,_0x559e08={}){super(_0x4608d9),this['stickyPanel']=new ut(_0x4608d9),this['toolbar']=new lt(_0x4608d9,{'shouldGroupWhenFull':_0x559e08['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x4608d9,_0x3407b6);}['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(_0x518d6b,_0x2743d2){super(_0x2743d2),this['sourceElement']=_0x518d6b,this['model']['document']['createRoot']();const _0x3f9810=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3f9810);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1356ce,_0x45e75d){const _0x139553=new this(_0x1356ce,_0x45e75d);return await _0x139553['initPlugins'](),await _0x139553['ui']['init'](_0x1356ce),await _0x139553['data']['init'](_0x139553['config']['get']('initialData')||''),_0x139553['fire']('ready'),_0x139553;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x1f8aed{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd91693){function _0x518238(_0x4719c9){return _0x4719c9['map'](_0x18847f=>String['fromCharCode'](_0x18847f))['join']('');}super(_0xd91693),this['result']='end',_0xd91693[_0x518238([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x518238([0x76,0x69,0x65,0x77])][_0x518238([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x518238([0x61,0x75,0x74,0x6f]),_0xd91693[_0x518238([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x518238([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x518238([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x518238([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x518238([0x6f,0x6b])});}}class k extends _0x1f8aed{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2863d9){if(super(_0x2863d9),!this['editor']['config']['get']('revisionHistory'))throw new _0x39d5e7('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x460373=>this['_showRevisionViewer']({..._0x460373,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5047b8=>this['_closeRevisionViewer'](_0x5047b8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x256621=>this['_restoreRevision'](_0x256621)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x11d114){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x11d114;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x17e657){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x17e657);}['getRevision'](_0x38008c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x38008c);}['getRevisions'](_0x273a10){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x273a10||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x122142=this['editor'],_0x397386=_0x48c460(_0x122142,p),_0x956e31=_0x122142['plugins']['get']('RevisionTracker'),_0x45328=_0x122142['plugins']['get']('Users')['users'];return _0x397386['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x397386['lazyRoots'],(_0x397386['plugins']['push'](Rt,d,g,class extends _0x1f8aed{static get['requires'](){return[d,'Users'];}['init'](){const _0x55e28e=this['editor']['plugins']['get']('Users');for(const _0x124911 of _0x45328)_0x124911['isAnonymous']||_0x55e28e['getUser'](_0x124911['id'])||_0x55e28e['addUser'](_0x124911);const _0x5c00a5=_0x956e31['repository']['getRevisions']();let _0x48f5eb=null;const _0x2a15af=this['editor']['plugins']['get']('RevisionViewer');_0x2a15af['adapter']=_0x956e31['adapter'],_0x2a15af['bind']('isEnabled')['to'](_0x956e31),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x122142,'isReadOnly',_0x448a12=>!_0x448a12);for(const _0x477527 of _0x5c00a5){const _0x11b054=null===_0x477527['creator'];if(_0x11b054&&_0x477527['toVersion']===_0x477527['fromVersion'])continue;const _0x315690=_0x477527['toJSON']();_0x2a15af['addRevisionData'](_0x315690,(_0x3f7d11,_0x563798,_0x55b3ae)=>{if(_0x11b054){if(_0x48f5eb)_0x48f5eb['_update'](_0x3f7d11,_0x563798);else{if(!_0x563798){const _0x19b748=_0x55b3ae['toJSON']();_0x19b748['id']=_0x3df0fe(),_0x956e31['saveRevision'](_0x19b748,_0x55b3ae['toVersion'])['then'](_0x46e6f5=>{_0x48f5eb=_0x46e6f5;});}}}else _0x477527['_update'](_0x3f7d11,_0x563798);});}}},w),_0x397386);}['_enhanceShowRevisionViewerCallback'](){const _0x3b839=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x383100=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x47cef1=this['editor']['plugins']['get']('Autosave');await _0x47cef1['save']();}else await _0x383100['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5b16b9=this['editor']['plugins']['get']('Dialog');_0x5b16b9['isOpen']&&_0x5b16b9['hide']();}const _0xe36cc9=this['_getRevisionViewerEditorConfig']();return _0x3b839(_0xe36cc9)['then'](_0xa5897f=>{return(this['_viewerEditor']=_0xa5897f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xa5897f;})['catch'](_0x4c9b74=>(console['error'](_0x4c9b74),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x6b081d=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'](),_0x6b081d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x63276a=this['editor']['plugins']['get']('Annotations');_0x63276a['refreshVisibility'](),_0x63276a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1872a8){const _0x342622=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x213d06=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1a1f79=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1a1f79,_0x1872a8)['then'](_0x565ef7=>(_0x213d06['style']['display']='block',_0x342622['style']['display']='none',_0x565ef7));}['_closeRevisionViewer'](_0x598965){const _0xc31c19=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xc31c19['style']['display']='',_0x598965['destroy']();}async['_restoreRevision'](_0x54b438){const _0x3974c8=this['editor'],_0x3e2a11=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x450fc6=_0x3974c8['plugins']['get']('RevisionTracker'),_0x8d4b87=_0x3e2a11['repository']['getRevision'](_0x54b438);let _0x4e7f02,_0x4b1c11,_0x9fa995;try{_0x4e7f02=await _0x3e2a11['getRevisionData'](_0x8d4b87),_0x4b1c11=await _0x3e2a11['getRevisionRootsAttributes'](_0x8d4b87);}catch(_0x2e3d86){return void console['error'](_0x2e3d86);}_0x3974c8['model']['change'](_0x2a6166=>{for(const _0x3a4f2e of Array['from'](_0x3974c8['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2a6166['removeMarker'](_0x3a4f2e);}),_0x3e2a11['isReady']=!0x1,_0x3974c8['model']['enqueueChange'](_0x55d367=>{_0x55d367['setSelection'](null),_0x55d367['removeSelectionAttribute'](_0x3974c8['model']['document']['selection']['getAttributeKeys']());const _0xd7a952=Object['keys'](_0x4e7f02);for(const _0x3e7d68 of _0x3974c8['model']['document']['roots'])'$graveyard'!=_0x3e7d68['rootName']&&_0x3e7d68['isAttached']()&&!_0xd7a952['includes'](_0x3e7d68['rootName'])&&_0x55d367['detachRoot'](_0x3e7d68);for(const _0x3d8698 of _0xd7a952){let _0x2761ec=_0x3974c8['model']['document']['getRoot'](_0x3d8698);_0x2761ec&&_0x2761ec['isAttached']()||(_0x2761ec=_0x55d367['addRoot'](_0x3d8698));const _0x50343f=_0x4b1c11[_0x3d8698],_0x16e094=Object['keys'](_0x50343f),_0x2282ea=_0x4e7f02[_0x3d8698];for(const _0x3cf31f of _0x2761ec['getAttributeKeys']())_0x16e094['includes'](_0x3cf31f)||_0x55d367['removeAttribute'](_0x3cf31f,_0x2761ec);for(const _0x3396b1 of _0x16e094)_0x55d367['setAttribute'](_0x3396b1,_0x4b1c11[_0x3d8698][_0x3396b1],_0x2761ec);_0x55d367['remove'](_0x55d367['createRangeIn'](_0x2761ec)),_0x55d367['insert'](_0x3974c8['data']['parse'](_0x2282ea,_0x2761ec),_0x2761ec,0x0);}});const _0x185901=m(_0x3974c8['locale'],'Restored');if(_0x8d4b87['name'])_0x9fa995=-0x1==_0x8d4b87['name']['indexOf'](_0x185901)?_0x185901+':\x20'+_0x8d4b87['name']:_0x8d4b87['name'];else _0x9fa995=_0x185901+':\x20'+(_0x8d4b87['createdAt']['toLocaleDateString'](_0x3974c8['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x8d4b87['createdAt']['toLocaleTimeString'](_0x3974c8['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x450fc6['saveRevision']({'name':_0x9fa995}),_0x3e2a11['isReady']=!0x0,_0x3974c8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|