@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241212.0 → 0.0.0-nightly-20241214.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
|
-
_0x96c3fd(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x333052){super(),this['id']=_0x333052['id']||_0x4e6837(),this['creator']=_0x333052['creator']||null,this['authors']=_0x333052['authors']||[],this['diffData']=_0x333052['diffData']||null,this['toVersion']=_0x333052['toVersion']||0x0,this['fromVersion']=_0x333052['fromVersion']||0x0,this['set']('name',_0x333052['name']||''),this['set']('createdAt',_0x333052['createdAt']||new Date()),this['set']('attributes',_0x333052['attributes']||{});}['setName'](_0x18fd4d){this['_update']({'name':_0x18fd4d});}['setAttribute'](_0x5a5460,_0xab231b){const _0x5eae51=_0x3f3c34(this['attributes']);_0x1fadfa(_0x5eae51,_0x5a5460,_0xab231b),this['_update']({'attributes':_0x5eae51});}['removeAttribute'](_0x3781a4){const _0x2e675e=_0x3f3c34(this['attributes']);_0x5a11d4(_0x2e675e,_0x3781a4),this['_update']({'attributes':_0x2e675e});}['_update'](_0x2b2c58,_0xf6b2e7=!0x1){let _0x47aba6=!0x1;const _0x303e9b={'id':this['id']},_0x4acc25=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xfeeb3b of _0x4acc25){const _0x311eed=_0x2b2c58[_0xfeeb3b];void 0x0!==_0x311eed&&_0x311eed!==this[_0xfeeb3b]&&(this[_0xfeeb3b]=_0x311eed,_0x303e9b[_0xfeeb3b]=_0x311eed,_0x47aba6=!0x0);}_0x47aba6&&(_0x303e9b['authors']&&(_0x303e9b['authorsIds']=_0x303e9b['authors']['map'](_0x15d718=>_0x15d718['id']),delete _0x303e9b['authors']),this['fire']('_update',_0x303e9b,_0xf6b2e7));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1a1f87=>_0x1a1f87['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1c98c7{['_revisions'];static get['requires'](){return[_0x4ae6c4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x29e69d){super(_0x29e69d),this['_revisions']=new _0x3fda2b();}['afterInit'](){!async function(_0x97203d){const _0x173e42=_0x2d4aa2([0x38,0x57,0x69,0x45,0x44,0x4e,0x53,0x72,0x77,0x4d,0x71,0x51,0x4f,0x35,0x79,0x37,0x46,0x76,0x43,0x67,0x41,0x39,0x6b,0x42,0x75,0x4c,0x73,0x66,0x6e,0x62,0x68,0x5a,0x48,0x52,0x30,0x47,0x7a,0x64,0x78,0x6c,0x59,0x65,0x50,0x6d,0x56,0x49,0x31,0x55,0x36,0x6a,0x61,0x32,0x54,0x74,0x58,0x63,0x6f,0x70,0x4b,0x4a,0x33,0x34]),_0xa64e42=0xeb829,_0x26a46b=0xa9aa744,_0x4d69a5=0xa9dfe3c^_0x26a46b,_0x4637c6=window[_0x2d4aa2([0x44,0x61,0x74,0x65])][_0x2d4aa2([0x6e,0x6f,0x77])](),_0x994a51=_0x97203d[_0x2d4aa2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22c66d=new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159709=>{_0x994a51[_0x2d4aa2([0x6f,0x6e,0x63,0x65])](_0x2d4aa2([0x72,0x65,0x61,0x64,0x79]),_0x159709);}),_0xadc36c={[_0x2d4aa2([0x6b,0x74,0x79])]:_0x2d4aa2([0x45,0x43]),[_0x2d4aa2([0x75,0x73,0x65])]:_0x2d4aa2([0x73,0x69,0x67]),[_0x2d4aa2([0x63,0x72,0x76])]:_0x2d4aa2([0x50,0x2d,0x32,0x35,0x36]),[_0x2d4aa2([0x78])]:_0x2d4aa2([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]),[_0x2d4aa2([0x79])]:_0x2d4aa2([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]),[_0x2d4aa2([0x61,0x6c,0x67])]:_0x2d4aa2([0x45,0x53,0x32,0x35,0x36])},_0xb8cc20=_0x994a51[_0x2d4aa2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d4aa2([0x67,0x65,0x74])](_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ab42b(){let _0x1bded1,_0x4d942a=null,_0x40138b=null;try{if(_0xb8cc20==_0x2d4aa2([0x47,0x50,0x4c]))return _0x2d4aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bded1=_0x26607d(),!_0x1bded1)return _0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bded1[_0x2d4aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40138b=_0x2ad409(_0x1bded1[_0x2d4aa2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bded1[_0x2d4aa2([0x6a,0x74,0x69])])),await _0x3f55c9()?_0x1afa32()?_0x33a73e()?_0x2d4aa2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x372fde()?(_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d4aa2([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4d942a=_0x451e3f(_0x2d4aa2([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3677da()):_0x2d4aa2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d4aa2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d27ee){return _0x2d4aa2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33a73e(){const _0xcfe5e7=[_0x2d4aa2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d4aa2([0x74,0x72,0x69,0x61,0x6c])][_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4637c6/0x3e8:0xe10*_0x4d69a5;return _0x1bded1[_0x2d4aa2([0x65,0x78,0x70])]<_0xcfe5e7;}function _0x1afa32(){const _0xcb052a=_0x1bded1[_0x2d4aa2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xcb052a)return!0x1;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x2a])))return!0x0;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x52,0x48])))return!0x0;if(_0xcb052a[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x52,0x52,0x48]))){if(_0x58a8e1())return!0x0;if(_0x3181e0()||_0x12c53c())return!0x0;}return!0x1;}function _0x372fde(){const _0x48913e=_0x1bded1[_0x2d4aa2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48913e||0x0==_0x48913e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d5bd1}=new URL(window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48913e[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d5bd1))return!0x0;const _0xc82ba7=_0x2d5bd1[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e]));return _0x48913e[_0x2d4aa2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cc01d=>_0x4cc01d[_0x2d4aa2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d4aa2([0x2a])))[_0x2d4aa2([0x6d,0x61,0x70])](_0x1e89c2=>_0x1e89c2[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e])))[_0x2d4aa2([0x73,0x6f,0x6d,0x65])](_0x41ea90=>_0xc82ba7[_0x2d4aa2([0x65,0x76,0x65,0x72,0x79])]((_0x37e32d,_0x2a116b)=>_0x41ea90[_0x2a116b]===_0x37e32d||_0x41ea90[_0x2a116b]===_0x2d4aa2([0x2a])));}function _0x3677da(){return _0x4d942a&&_0x40138b?new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d1683,_0x440ca8)=>{_0x4d942a[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x1d1683,_0x440ca8),_0x40138b[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x4cea34=>{_0x4cea34!=_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x1d1683(_0x4cea34);},_0x440ca8);}):_0x4d942a||_0x40138b||_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ad409(_0x2be34f,_0x5d08ee){return new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42d912=>{if(_0x409d86())return _0x42d912(_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]));_0x2e9771(),_0x994a51[_0x2d4aa2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f4827=!0x1;const _0x4b9b67=_0x4e6837();function _0x15d54b(_0x59b6ac){return!!_0x59b6ac&&(typeof _0x59b6ac===_0x2d4aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59b6ac===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59b6ac[_0x2d4aa2([0x74,0x68,0x65,0x6e])]===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59b6ac[_0x2d4aa2([0x63,0x61,0x74,0x63,0x68])]===_0x2d4aa2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34c00b(_0x317549){_0x52a31e(_0x317549)[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x53bf7d=>{if(!_0x53bf7d||_0x53bf7d[_0x2d4aa2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d4aa2([0x6f,0x6b]))return _0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ad6e7(_0x5920c5(_0x4b9b67+_0x5d08ee))!=_0x53bf7d[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x2eb18e=>(_0x636a6(),_0x2eb18e),()=>{const _0x52af76=_0x35e8a6();return null==_0x52af76?(_0x636a6(),_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])):_0x2d4aa2(_0x4637c6-_0x52af76>(0x2e962344^_0x26a46b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x42d912)[_0x2d4aa2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x230d1b=0xaac49c4^_0x26a46b;function _0x636a6(){const _0x4d6b7d=_0x2d4aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad6e7(_0x5920c5(_0x2be34f)),_0x2321c7=_0x165100(_0x4ad6e7(window[_0x2d4aa2([0x4d,0x61,0x74,0x68])][_0x2d4aa2([0x63,0x65,0x69,0x6c])](_0x4637c6/_0x230d1b)));window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d4aa2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d6b7d,_0x2321c7);}function _0x35e8a6(){const _0x570856=_0x2d4aa2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ad6e7(_0x5920c5(_0x2be34f)),_0x3c4cb7=window[_0x2d4aa2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d4aa2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x570856);return _0x3c4cb7?window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165100(_0x3c4cb7),0x10)*_0x230d1b:null;}function _0x52a31e(_0x4ad23c){return new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38f93e,_0x3c2bee)=>{_0x4ad23c[_0x2d4aa2([0x74,0x68,0x65,0x6e])](_0x38f93e,_0x3c2bee),window[_0x2d4aa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c2bee,0xa9b7384^_0x26a46b);});}}_0x994a51[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2634fd,_0x3fb0c2)=>{if(_0x3fb0c2[0x0]!=_0x2be34f)return _0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fb0c2[0x1]={..._0x3fb0c2[0x1],[_0x2d4aa2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b9b67};},{[_0x2d4aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d4aa2([0x68,0x69,0x67,0x68])}),_0x994a51[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x645962=>{_0x15d54b(_0x645962[_0x2d4aa2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f4827=!0x0,_0x34c00b(_0x645962[_0x2d4aa2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d4aa2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d4aa2([0x6c,0x6f,0x77])}),_0x22c66d[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>{_0x3f4827||_0x42d912(_0x2d4aa2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x409d86(){return _0x994a51[_0x2d4aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d4aa2([0x76,0x69,0x65,0x77])][_0x2d4aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d4aa2([0x61,0x75,0x74,0x6f]);}function _0x2e9771(){_0x994a51[_0x2d4aa2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d4aa2([0x76,0x69,0x65,0x77])][_0x2d4aa2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d4aa2([0x61,0x75,0x74,0x6f]);}}function _0x451e3f(_0x2ffd0a){const _0xc38ed0=[new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546c6a=>setTimeout(_0x546c6a,0xa939988^_0x26a46b)),_0x22c66d[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b4d5a=>{const _0x5df74d=0xa9aa743^_0x26a46b,_0x53dd97=_0x97203d[_0x2d4aa2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x379a89(){_0x53dd97[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5df74d&&_0x2b4d5a();}_0x379a89(),_0x53dd97[_0x2d4aa2([0x6f,0x6e])](_0x2d4aa2([0x61,0x64,0x64]),_0x379a89);})),new window[(_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52405f=>{function _0x184b6a(){for(const _0x3d0bf1 in window)if(window[_0x2d4aa2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2d4aa2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3d0bf1))&&window[_0x3d0bf1]==_0xa64e42)return _0x52405f();_0x994a51[_0x2d4aa2([0x73,0x74,0x61,0x74,0x65])]!=_0x2d4aa2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2d4aa2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x184b6a,0xa9ab4cc^_0x26a46b);}_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x184b6a();})];return window[_0x2d4aa2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d4aa2([0x72,0x61,0x63,0x65])](_0xc38ed0)[_0x2d4aa2([0x74,0x68,0x65,0x6e])](()=>_0x2ffd0a);}async function _0x467304(){if(await _0x22c66d,_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5099d6=_0x97203d[_0x2d4aa2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x185dd9=_0x97203d[_0x2d4aa2([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])](_0x5099d6[_0x2d4aa2([0x69,0x64])]),_0x23da40=_0x1866be(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x23da40[_0x2d4aa2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5099d6['id'],_0x185dd9?_0x185dd9['id']:null,!0x0),_0x23da40[_0x2d4aa2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23da40[_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23da40[_0x2d4aa2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x138e18,void(_0x23da40[_0x2d4aa2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x138e18);}if(_0x237031(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x59bf98=_0x1866be(_0x2d4aa2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x59bf98[_0x2d4aa2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59bf98[_0x2d4aa2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59bf98[_0x2d4aa2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x138e18,_0x59bf98[_0x2d4aa2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x138e18;}_0x994a51[_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d4aa2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x138e18,_0x994a51[_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d4aa2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x138e18,_0x994a51[_0x2d4aa2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d4aa2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58a8e1(){return _0x237031(_0x2d4aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1866be(_0x2d4aa2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2d4aa2([0x73,0x74,0x61,0x74,0x65])]==_0x2d4aa2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3181e0(){return _0x237031(_0x2d4aa2([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 _0x12c53c(){return _0x237031(_0x2d4aa2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x261c28(_0xacb270){const _0x177026=_0x258151();_0x994a51[_0x177026]=_0x2d4aa2([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])+_0xacb270,_0xacb270[_0x2d4aa2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2d4aa2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x258151()]=_0xa64e42),_0xacb270!=_0x2d4aa2([0x56,0x61,0x6c,0x69,0x64])&&_0x467304();}function _0x258151(){const _0x5948a5=window[_0x2d4aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d4aa2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d4aa2([0x6e,0x6f,0x77])]())[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d4aa2([0x2e]),'');let _0x315c56=_0x2d4aa2([0x57]);for(let _0x369335=0x0;_0x369335<_0x5948a5[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x369335+=0x2){let _0x470078=window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5948a5[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x369335,_0x369335+0x2));_0x470078>=_0x173e42[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x470078-=_0x173e42[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x315c56+=_0x173e42[_0x470078];}return _0x315c56;}function _0x26607d(){const _0x358027=_0xb8cc20[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e]));if(0x3!=_0x358027[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45f7a6(_0x358027[0x1]);function _0x45f7a6(_0x4f934e){const _0x50811b=_0x1079f5(_0x4f934e);return _0x50811b&&_0x4aa9a4()?_0x50811b:null;function _0x4aa9a4(){const _0x58730e=_0x50811b[_0x2d4aa2([0x6a,0x74,0x69])],_0x4a498d=window[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58730e[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58730e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x495c7f={..._0x50811b,[_0x2d4aa2([0x6a,0x74,0x69])]:_0x58730e[_0x2d4aa2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58730e[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x495c7f[_0x2d4aa2([0x76,0x63])],_0x5920c5(_0x495c7f)==_0x4a498d;}}}async function _0x3f55c9(){let _0x24f2fa=!0x0;try{const _0x2f4866=_0xb8cc20[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])](_0x2d4aa2([0x2e])),[_0x45750f,_0x2b3fc0,_0x22e585]=_0x2f4866;return _0x3b1f6d(_0x45750f),await _0x1b6a95(_0x45750f,_0x2b3fc0,_0x22e585),_0x24f2fa;}catch(_0x2b1532){return!0x1;}function _0x3b1f6d(_0x107551){const _0x405d4d=_0x1079f5(_0x107551);_0x405d4d&&_0x405d4d[_0x2d4aa2([0x61,0x6c,0x67])]==_0x2d4aa2([0x45,0x53,0x32,0x35,0x36])||(_0x24f2fa=!0x1);}async function _0x1b6a95(_0x2059c8,_0x2fb8df,_0x22060e){const _0x52d447=window[_0x2d4aa2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d4aa2([0x66,0x72,0x6f,0x6d])](_0x25425a(_0x22060e),_0x1ddebc=>_0x1ddebc[_0x2d4aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22386b=new window[(_0x2d4aa2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d4aa2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2059c8+_0x2d4aa2([0x2e])+_0x2fb8df),_0x1115d1=window[_0x2d4aa2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d4aa2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1115d1)return;const _0x426c37=await _0x1115d1[_0x2d4aa2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d4aa2([0x6a,0x77,0x6b]),_0xadc36c,{[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x45,0x43,0x44,0x53,0x41]),[_0x2d4aa2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d4aa2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1115d1[_0x2d4aa2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x45,0x43,0x44,0x53,0x41]),[_0x2d4aa2([0x68,0x61,0x73,0x68])]:{[_0x2d4aa2([0x6e,0x61,0x6d,0x65])]:_0x2d4aa2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x426c37,_0x52d447,_0x22386b)||(_0x24f2fa=!0x1);}}function _0x1079f5(_0x185867){return _0x185867[_0x2d4aa2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d4aa2([0x65,0x79]))?JSON[_0x2d4aa2([0x70,0x61,0x72,0x73,0x65])](_0x25425a(_0x185867)):null;}function _0x25425a(_0x46acbb){return window[_0x2d4aa2([0x61,0x74,0x6f,0x62])](_0x46acbb[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d4aa2([0x2b]))[_0x2d4aa2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d4aa2([0x2f])));}function _0x5920c5(_0xc12e1){let _0x37db6c=0x1505;function _0x1734fb(_0x2367bf){for(let _0x182694=0x0;_0x182694<_0x2367bf[_0x2d4aa2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x182694++){const _0x6c19ce=_0x2367bf[_0x2d4aa2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x182694);_0x37db6c=(_0x37db6c<<0x5)+_0x37db6c+_0x6c19ce,_0x37db6c&=_0x37db6c;}}function _0x501e0a(_0x2ef2c5){Array[_0x2d4aa2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ef2c5)?_0x2ef2c5[_0x2d4aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x501e0a):_0x2ef2c5&&typeof _0x2ef2c5==_0x2d4aa2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d4aa2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ef2c5)[_0x2d4aa2([0x73,0x6f,0x72,0x74])]()[_0x2d4aa2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x85643e,_0x1172d3])=>{_0x1734fb(_0x85643e),_0x501e0a(_0x1172d3);}):_0x1734fb(window[_0x2d4aa2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ef2c5));}return _0x501e0a(_0xc12e1),_0x37db6c>>>0x0;}function _0x4ad6e7(_0x367eb1){return _0x367eb1[_0x2d4aa2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d4aa2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d4aa2([0x30]));}function _0x165100(_0x7592ad){return _0x7592ad[_0x2d4aa2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d4aa2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d4aa2([0x6a,0x6f,0x69,0x6e])]('');}function _0x237031(_0x23622f){return _0x994a51[_0x2d4aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d4aa2([0x68,0x61,0x73])](_0x23622f);}function _0x1866be(_0x1e7b06){return _0x994a51[_0x2d4aa2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2d4aa2([0x67,0x65,0x74])](_0x1e7b06);}function _0x138e18(){}function _0x2d4aa2(_0x40950e){return _0x40950e['map'](_0x2aacc0=>String['fromCharCode'](_0x2aacc0))['join']('');}_0x261c28(await _0x3ab42b());}(this);}['createRevision'](_0x4e42d5){const _0x362134=this['editor']['plugins']['get']('Users');return new a({'id':_0x4e42d5['id'],'name':_0x4e42d5['name'],'creator':_0x4e42d5['creatorId']?_0x362134['getUser'](_0x4e42d5['creatorId']):null,'diffData':_0x4e42d5['diffData']||_0x4e42d5['data'],'authors':_0x4e42d5['authorsIds']['map'](_0x2fb79e=>_0x362134['getUser'](_0x2fb79e)),'createdAt':new Date(_0x4e42d5['createdAt']),'attributes':_0x4e42d5['attributes'],'fromVersion':_0x4e42d5['fromVersion'],'toVersion':_0x4e42d5['toVersion']});}['addRevision'](_0x4b8687,_0x3855c0=0x0){this['_revisions']['add'](_0x4b8687,_0x3855c0);}['getRevision'](_0x4aa5ab){return this['_revisions']['get'](_0x4aa5ab);}['getRevisions'](_0x549a21={'toJSON':!0x1}){const _0x24bb76=Array['from'](this['_revisions']);return _0x24bb76['reverse'](),_0x549a21['toJSON']?_0x24bb76['map'](_0x51b606=>_0x51b606['toJSON']()):_0x24bb76;}['getIndex'](_0x5448a9){return this['_revisions']['getIndex'](_0x5448a9);}['getEarlierVisibleRevision'](_0x402752){const [,_0x5f0c12]=this['getRevisionsIterator'](_0x402752,{'direction':'earlier'});return _0x5f0c12;}['getLaterVisibleRevision'](_0x55d4f1){const [,_0x305a19]=this['getRevisionsIterator'](_0x55d4f1,{'direction':'later'});return _0x305a19;}['getRevisionsInDiff'](_0x229f59){const _0x3aac2f=[];for(const _0x24c77a of this['getRevisionsIterator'](_0x229f59['newRevisionId']))if(_0x3aac2f['push'](_0x24c77a),_0x24c77a['id']===_0x229f59['oldRevisionId'])break;return _0x3aac2f;}*['getRevisionsIterator'](_0x2a2f99,{direction:_0x5b9e71='earlier',filter:_0x5d1457=()=>!0x0}={}){const _0xf61819='earlier'===_0x5b9e71?0x1:-0x1;let _0x3b204a=this['_revisions']['get'](_0x2a2f99),_0x1080c9=this['getIndex'](_0x3b204a);for(yield _0x3b204a;_0x3b204a;){if(_0x1080c9+=_0xf61819,_0x3b204a=this['getRevision'](_0x1080c9),!_0x3b204a)return;_0x5d1457(_0x3b204a)&&(yield _0x3b204a);}}}function R(_0x4fd1a2,_0x2b08d4,_0x343f8e){const t=_0x4fd1a2['t'];switch(_0x2b08d4){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'},_0x343f8e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x343f8e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x58bc9a,'a':_0x4662ee,'e':_0x425a8a,'r':_0x206af8,'u':_0x224256};class l extends _0x1c98c7{['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[_0x4ae6c4,j,_0x1f7a70];}constructor(_0x2dc833){super(_0x2dc833),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x18b36f=_0x4e6837();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18b36f},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 _0x3b354a=this['repository']['getRevision'](0x0),_0x1daf2c=_0x3b354a&&null===_0x3b354a['creator']?_0x3b354a:null;if(this['_continueCurrentRevision']=!!_0x1daf2c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5ebe78=this['_source']['getCurrentRevisionId'](),_0x198a39=this['repository']['getRevision'](_0x5ebe78);if(_0x198a39)this['_startingVersion']=_0x198a39['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2dbd9e=this['_source']['history']['_operations']['find'](_0xa178b3=>!_0xa178b3['_isInit']),_0x267171=_0x2dbd9e?_0x2dbd9e['baseVersion']:this['_source']['history']['version'];_0x3b354a?(_0x3b354a['toVersion']<_0x267171&&_0x3b354a['_update']({'toVersion':_0x267171}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id'],this['_startingVersion']=_0x1daf2c['fromVersion']):(this['_startingVersion']=_0x3b354a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x267171,this['_continueCurrentRevision']=!0x1);}}else _0x1daf2c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1daf2c['toVersion'],this['editor']['model']['document']['history']['version']),_0x1daf2c['fromVersion']===_0x1daf2c['toVersion']?(0x0!==_0x1daf2c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1daf2c['id'],this['_startingVersion']=_0x1daf2c['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',_0x2c6183=>!_0x2c6183),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a9759=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d3602;for(const _0x158bcd in _0x4a9759){const _0x12579b=_0x158bcd,_0x241f01=_0x4a9759[_0x12579b];if('revisionHistoryLicenseKeyValid'==_0x241f01||'revisionHistoryLicenseKeyInvalid'==_0x241f01||'revisionHistoryLicenseKeyExpired'==_0x241f01||'revisionHistoryLicenseKeyDomainLimit'==_0x241f01||'revisionHistoryLicenseKeyNotAllowed'==_0x241f01||'revisionHistoryLicenseKeyEvaluationLimit'==_0x241f01||'revisionHistoryLicenseKeyTrialLimit'==_0x241f01||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x241f01||'revisionHistoryLicenseKeyUsageLimit'==_0x241f01){delete _0x4a9759[_0x12579b],_0x1d3602=_0x241f01,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1d3602&&_0x4a9759['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1d3602&&_0x4a9759['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1d3602&&_0x4a9759['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1d3602&&_0x4a9759['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4814d2=this['repository']['getRevision'](0x0),_0x4b4852=await this['getRevisionDocumentData'](_0x4814d2),_0xad1f70=await this['getRevisionRootsAttributes'](_0x4814d2);this['_replaceEditorDataWithRevisionData'](_0x4b4852,_0xad1f70);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x148bcc){this['_source']=_0x148bcc;}async['update'](){const _0x217770=await this['_source']['getLatestVersion']();if(_0x217770>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2c62bb=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x217770});_0x2c62bb['authors']=_0x2c62bb['authorsIds']['map'](_0x1377fc=>this['editor']['plugins']['get']('Users')['getUser'](_0x1377fc)),this['currentRevision']['_update'](_0x2c62bb);}}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'](_0x989d83={},_0x445979=null){const _0x32af2b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x445979>this['currentRevision']['toVersion']&&(_0x445979=null),null===_0x445979&&(_0x445979=await this['_source']['getLatestVersion']());const _0x1b4e70=this['_getFromVersion'](_0x445979),_0x557fa0=this['buildRevisionData']({'from':_0x1b4e70,'to':_0x445979});if(this['currentRevision']['toVersion']<_0x445979){const _0x3d03a5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x445979,'to':_0x445979});_0x3d03a5['authors']=[],_0x3d03a5['authorsIds']=[],_0x3d03a5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3d03a5,!0x0),delete _0x3d03a5['authors'],_0x32af2b['push'](_0x3d03a5);}_0x989d83['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x989d83['name']=_0x989d83['name']||null,_0x989d83['id']=_0x989d83['id']||_0x4e6837(),_0x989d83={..._0x989d83,..._0x557fa0};const _0x3b1872=this['addRevisionData'](_0x989d83);_0x32af2b['push'](_0x989d83);const _0x59c5a0=this['repository']['getIndex'](_0x3b1872);if(0x0!==_0x59c5a0){const _0x1d047f=this['repository']['getRevision'](_0x59c5a0-0x1);if(_0x1d047f['fromVersion']!==_0x445979){const _0x31c1a9=this['_revisionDataBuilder']['getData'](_0x445979,_0x1d047f['toVersion']),_0x123bc5={'id':_0x1d047f['id'],'diffData':_0x31c1a9['diffData'],'authorsIds':_0x31c1a9['authorsIds'],'authors':_0x31c1a9['authorsIds']['map'](_0x169a12=>this['editor']['plugins']['get']('Users')['getUser'](_0x169a12)),'fromVersion':_0x445979};_0x1d047f===this['currentRevision']&&(_0x123bc5['createdAt']=new Date(_0x989d83['createdAt']['getTime']()+0xa)),_0x1d047f['_update'](_0x123bc5,!0x0),delete _0x123bc5['authors'],_0x32af2b['push'](_0x123bc5);}}if(this['adapter']){for(const _0x437f0d of _0x32af2b)this['_bufferUpdate'](_0x437f0d['id'],_0x437f0d,!0x0);this['sendBufferedUpdates']();}return _0x3b1872;}['addRevisionData'](_0x31d2a4){const _0x4f1b01=this['repository']['createRevision'](_0x31d2a4);return this['adapter']&&_0x4f1b01['on']('_update',(_0x32d442,_0x27bb48,_0x35250a)=>{_0x35250a||(this['_bufferUpdate'](_0x27bb48['id'],_0x27bb48,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4f1b01,this['_findInsertionIndex'](_0x4f1b01)),_0x4f1b01;}async['getRevisionDocumentData'](_0x79b56a){await this['_loadRevisionData'](_0x79b56a);const _0x52ae8d={};for(const _0x231911 in _0x79b56a['diffData']){if(_0x79b56a['diffData'][_0x231911]['attachChange']&&!_0x79b56a['diffData'][_0x231911]['attachChange']['isAttached'])continue;const _0x5af120=this['_removeRevisionMarkers'](JSON['parse'](_0x79b56a['diffData'][_0x231911]['insertions'])),_0x1dc5c3=this['editor']['editing']['view']['document'],_0xb242a6=new _0x5a9f7e(_0x1dc5c3,_0x5af120['map'](_0x5c5493=>V(_0x5c5493,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x52ae8d[_0x231911]=this['editor']['data']['processor']['toData'](_0xb242a6),this['editor']['data']['processor']['useFillerType']('default');}return _0x52ae8d;}async['getRevisionRootsAttributes'](_0x43d750){await this['_loadRevisionData'](_0x43d750);const _0x44164d={};for(const _0x12e31c in _0x43d750['diffData'])_0x43d750['diffData'][_0x12e31c]['attachChange']&&!_0x43d750['diffData'][_0x12e31c]['attachChange']['isAttached']||(_0x44164d[_0x12e31c]=_0x43d750['diffData'][_0x12e31c]['attributesAfter']||{});return _0x44164d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x8c8367=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2e4159=0x0;_0x2e4159<_0x8c8367['length'];_0x2e4159++){const _0x4a7a7d=_0x8c8367[_0x2e4159];let _0x2fec27=!0x1;for(const _0x498d52 of Object['keys'](_0x4a7a7d))void 0x0===_0x4a7a7d[_0x498d52]?delete _0x4a7a7d[_0x498d52]:'id'!==_0x498d52&&(_0x2fec27=!0x0);_0x2fec27||(_0x8c8367[_0x2e4159]=null);}if(_0x8c8367=_0x8c8367['filter'](_0xcd4ad3=>null!==_0xcd4ad3),!_0x8c8367['length'])return;for(let _0x5d5dd3=0x0;_0x5d5dd3<_0x8c8367['length'];_0x5d5dd3++){const _0xf3f3fc=_0x8c8367[_0x5d5dd3];void 0x0!==_0xf3f3fc['fromVersion']&&void 0x0===_0xf3f3fc['toVersion']&&(_0xf3f3fc['toVersion']=this['repository']['getRevision'](_0xf3f3fc['id'])['toVersion']),void 0x0!==_0xf3f3fc['toVersion']&&void 0x0===_0xf3f3fc['fromVersion']&&(_0xf3f3fc['fromVersion']=this['repository']['getRevision'](_0xf3f3fc['id'])['fromVersion']);}const _0x5041fd=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x8c8367,_0x5041fd)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x30954c=>{if(_0x30954c){for(const _0x1fb40f of _0x30954c)this['setRevisionData']({'id':_0x1fb40f['id'],'createdAt':_0x1fb40f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x391cd6,_0x3ab9a8){let _0x538afc=this['editor']['config']['get']('initialData'),_0x915919=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x538afc){_0x538afc={};for(const _0xa3ec3 of this['editor']['model']['document']['getRootNames']())_0x538afc[_0xa3ec3]='';}if('string'==typeof _0x538afc&&(_0x538afc={'main':_0x538afc}),void 0x0===_0x915919){_0x915919={};for(const _0x30be8b of this['editor']['model']['document']['getRootNames']())_0x915919[_0x30be8b]={};}let _0x2bd28c=!0x1;const _0x7c8961=Object['keys'](_0x538afc),_0x5eab8f=Object['keys'](_0x391cd6);for(const _0x3bd5cb of _0x7c8961){if(_0x538afc[_0x3bd5cb]!==_0x391cd6[_0x3bd5cb]&&''!==_0x538afc[_0x3bd5cb]['trim']()){_0x2bd28c=!0x0;break;}if(!_0x3efd05(_0x915919[_0x3bd5cb],_0x3ab9a8[_0x3bd5cb])&&Object['keys'](_0x915919[_0x3bd5cb])['length']>0x0){_0x2bd28c=!0x0;break;}}_0x2bd28c||(_0x2bd28c=_0x5eab8f['some'](_0x482c4a=>!this['editor']['model']['document']['getRoot'](_0x482c4a))),_0x2bd28c&&_0x1d5680('editor-initial-data-replaced-with-revision-data',{'editorData':_0x538afc,'editorRootsAttributes':_0x915919,'revisionData':_0x391cd6,'revisionRootsAttributes':_0x3ab9a8}),this['editor']['config']['set']('initialData',_0x391cd6),this['editor']['config']['set']('rootsAttributes',_0x3ab9a8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xc74c32=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xc74c32['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x36bd64){const _0x1e05a0=this['repository']['getRevisions']();_0x1e05a0['reverse']();let _0x2aec8e=0x0;for(;_0x2aec8e<_0x1e05a0['length'];){const _0xd193bb=_0x1e05a0[_0x2aec8e];if(_0xd193bb===this['currentRevision']){_0x2aec8e++;continue;}if(_0xd193bb['id']===this['_initialRevisionId'])break;const _0x2596d1=_0x36bd64['toVersion']-_0xd193bb['toVersion']||_0x36bd64['fromVersion']-_0xd193bb['fromVersion'];if(_0x2596d1>0x0)break;if(_0x2596d1<0x0)_0x2aec8e++;else{if(!_0x36bd64['creator']&&_0xd193bb['creator'])break;if(_0xd193bb['creator']||!_0x36bd64['creator']){if(_0x36bd64['createdAt']>_0xd193bb['createdAt'])break;_0x2aec8e++;}else _0x2aec8e++;}}return _0x2aec8e;}['setRevisionData'](_0x147b91){const _0x569a60=this['repository']['getRevision'](_0x147b91['id']);if(_0x147b91['createdAt']&&(_0x147b91['createdAt']=new Date(_0x147b91['createdAt'])),_0x147b91['authorsIds']){const _0x2d5ead=this['editor']['plugins']['get']('Users');_0x147b91['authors']=_0x147b91['authorsIds']['map'](_0x160f28=>_0x2d5ead['getUser'](_0x160f28));}_0x569a60['_update'](_0x147b91,!0x0);}['buildRevisionData']({revision:_0x1b69f0=null,from:_0x5c62df=null,to:_0x5c0fc9=null}){_0x5c62df=null!==_0x5c62df?_0x5c62df:_0x1b69f0['fromVersion'],_0x5c0fc9=null!==_0x5c0fc9?_0x5c0fc9:_0x1b69f0['toVersion'];const _0x108de1=this['_revisionDataBuilder']['getData'](_0x5c62df,_0x5c0fc9),_0x1034b1={'diffData':_0x108de1['diffData'],'authorsIds':_0x108de1['authorsIds'],'fromVersion':_0x5c62df,'toVersion':_0x5c0fc9};if(!_0x1b69f0||_0x5c0fc9!==_0x1b69f0['toVersion']){const _0x13f9a6=_0x5c0fc9-0x1,_0x42a6d1=this['_source']['history']['getOperation'](_0x13f9a6);_0x1034b1['createdAt']=_0x42a6d1&&_0x42a6d1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5c62df===this['_loadedStateData']['fromVersion']){for(const _0x281bf0 of this['_loadedStateData']['authors'])_0x1034b1['authorsIds']['includes'](_0x281bf0['id'])||_0x1034b1['authorsIds']['push'](_0x281bf0['id']);}return _0x1034b1;}['_loadRevisionData'](_0x347fc6){if(!_0x347fc6||_0x347fc6['diffData'])return Promise['resolve']();{const _0x1a4aa0=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1a4aa0,'revisionId':_0x347fc6['id']})['then'](_0x28a5dc=>{_0x347fc6['diffData']=_0x28a5dc['diffData'];});}}['_bufferUpdate'](_0x35ee2a,_0x23f4b7,_0x30318a){if(this['_bufferedUpdates']['has'](_0x35ee2a)){const _0x173714=this['_bufferedUpdates']['get'](_0x35ee2a);_0x23f4b7=_0x30318a?{..._0x173714,..._0x23f4b7}:{..._0x23f4b7,..._0x173714};}this['_bufferedUpdates']['set'](_0x35ee2a,_0x23f4b7);}['_getFromVersion'](_0x36a7e9){const _0x4af5b6=this['repository']['getRevisions']();_0x4af5b6['reverse'](),_0x4af5b6['shift']();const _0x5059e3=_0x4af5b6['find'](_0x10509f=>_0x10509f['toVersion']<=_0x36a7e9)['toVersion'];return _0x5059e3<this['_startingVersion']?this['_startingVersion']:_0x5059e3;}['_createInitialRevision'](_0x218950){const _0x5d53d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5d53d)this['_initialRevisionId']=_0x5d53d['id'];else{const _0x228ad1=!this['editor']['model']['document']['roots']['find'](_0x30edfd=>this['editor']['model']['hasContent'](_0x30edfd)),_0x376409=this['editor']['plugins']['get']('Users')['me']['id'],_0x77f9e3=R(this['editor']['locale'],_0x228ad1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x218950,'to':_0x218950,'id':this['_initialRevisionId'],'name':_0x77f9e3,'creatorId':_0x376409});}}['_createCurrentRevision'](_0x4a1ccf){const _0x59540c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x59540c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a1ccf,'to':_0x4a1ccf,'id':_0x59540c,'name':'','creatorId':null}));}['_makeRevision']({name:_0x41d6f5,from:_0x19db80,to:_0x54d09a,creatorId:_0x3b3361,id:_0x3a4c4a}){const _0x2c016e=this['buildRevisionData']({'from':_0x19db80,'to':_0x54d09a});_0x2c016e['name']=_0x41d6f5,_0x2c016e['creatorId']=_0x3b3361,_0x2c016e['id']=_0x3a4c4a;const _0x5cc5fc=this['addRevisionData'](_0x2c016e);return this['adapter']&&this['_bufferUpdate'](_0x2c016e['id'],_0x2c016e,!0x0),_0x5cc5fc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5902b4){return(_0x5902b4=_0x5902b4['filter'](_0x5bfed2=>!_0x5bfed2['name']||'revision-start'!==_0x5bfed2['name']&&'revision-end'!==_0x5bfed2['name']))['forEach'](_0x1f7848=>{'string'!=typeof _0x1f7848&&(_0x1f7848['children']=this['_removeRevisionMarkers'](_0x1f7848['children']),_0x1f7848['attributes']=_0x1f7848['attributes']['filter'](_0x3e05a6=>!_0x3e05a6[0x0]['startsWith']('data-revision-')));}),_0x5902b4;}}function V(_0x5993e9,_0x48b367){const _0x14d1d8=_0x48b367['editing']['view']['document'];if('string'==typeof _0x5993e9)return new _0x377b5b(_0x14d1d8,_0x5993e9);{const _0x2487ed=_0x5993e9['children']['map'](_0x161bd6=>V(_0x161bd6,_0x48b367));return new(C[_0x5993e9['type']]||_0x1fac3b)(_0x14d1d8,_0x5993e9['name'],_0x5993e9['attributes'],_0x2487ed);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x34ec46){this['editor']=_0x34ec46,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'](_0x3824db){this['source']=_0x3824db;const _0xdb16aa=new Map(),_0x57ee08=new Map(),_0x566a46=this['editor']['model']['document']['roots']['map'](_0x251fee=>_0x251fee['rootName']);for(const _0xc2307e of _0x566a46){const _0x2a7f07=this['editor']['model']['document']['getRoot'](_0xc2307e),_0x5e700c=F(_0x2a7f07);_0xdb16aa['set'](_0xc2307e,_0x5e700c),_0x57ee08['set'](_0xc2307e,Object['fromEntries'](_0x2a7f07['getAttributes']()));}const _0x6244c1=Array['from'](this['editor']['model']['markers'])['map'](_0x2bb2a1=>[_0x2bb2a1['name'],_0x2bb2a1['getRange']()]),_0x4a5560=this['source']['version'];this['_saveMetaData'](_0x4a5560,_0xdb16aa,_0x6244c1,_0x57ee08),this['_startingRevisionId']=this['_revisionId'];const _0x3511a6=new Map(),_0x247f00=new Map();for(const _0x40efd4 of _0x566a46){const _0x31a8c7=B(_0x40efd4);_0x3511a6['set'](_0x40efd4,_0x31a8c7),_0x247f00['set'](_0x40efd4,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3511a6,[],_0x247f00);}['getData'](_0x2a0eae,_0x526e9c){if(this['_lastFrom']===_0x2a0eae&&this['_lastTo']<=_0x526e9c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x526e9c,!0x0);else{if(!this['_savedMetaData']['has'](_0x2a0eae)){const _0x4d3473=this['_getPreviousFrom'](_0x2a0eae);this['_calculateMetaData'](_0x4d3473,_0x2a0eae,!0x1);}this['_calculateMetaData'](_0x2a0eae,_0x526e9c,!0x0);}return this['_lastFrom']=_0x2a0eae,this['_lastTo']=_0x526e9c,this['_getState']();}['loadState'](_0x530e66){this['_reset'](),this['_lastFrom']=_0x530e66['fromVersion'],this['_lastTo']=_0x530e66['toVersion'];for(const _0x1f2a9c in _0x530e66['diffData']){const _0x2a562f=_0x530e66['diffData'][_0x1f2a9c]['attachChange'],_0x31924f=_0x3f3c34(_0x530e66['diffData'][_0x1f2a9c]['attributesBefore'])||{},_0x39cd08=this['_makeModelFromViewString'](_0x530e66['diffData'][_0x1f2a9c]['deletions']);_0x39cd08['rootName']=_0x1f2a9c,_0x39cd08['_isAttached']=!_0x2a562f||!_0x2a562f['isAttached'],_0x39cd08['isAttached']=()=>_0x39cd08['_isAttached'],this['_baseRoots']['set'](_0x1f2a9c,_0x39cd08),this['_baseRootsAttributes']['set'](_0x1f2a9c,_0x31924f),_0x2a562f&&this['_touchedRoots']['set'](_0x1f2a9c,_0x2a562f);const _0x37abfd=this['_makeIdsRoot'](_0x39cd08);this['_baseIdsRoots']['set'](_0x1f2a9c,_0x37abfd);for(const [_0x417f94,_0x480e6f]of _0x39cd08['markers']){if(!_0x417f94['startsWith']('revision:'))continue;const _0x1319e1=_0x417f94['split'](':')[0x2];for(const _0x5b8053 of _0x480e6f['getWalker']({'singleCharacters':!0x0})){const _0x49d8c5=this['_getVidAttributeName'](_0x5b8053),_0x1ff675='elementEnd'==_0x5b8053['type']?_0x5b8053['previousPosition']['path']['slice'](0x0,-0x1):_0x5b8053['previousPosition']['path'],_0x3e74d2=_0x37abfd['getNodeByPath'](_0x1ff675)['getAttribute'](_0x49d8c5);this['_touched']['set'](_0x3e74d2,{'userId':_0x1319e1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4277d3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x160509=>!this['_touched']['has'](_0x160509));let _0x2f39c0=0x0;const _0x50f18e=new Map();for(const _0xe3f441 in _0x530e66['diffData']){const _0xb671c1=_0x530e66['diffData'][_0xe3f441]['attachChange'],_0x4fea00=_0x3f3c34(_0x530e66['diffData'][_0xe3f441]['attributesAfter'])||{},_0x1b4edf=this['_makeModelFromViewString'](_0x530e66['diffData'][_0xe3f441]['insertions']);_0x1b4edf['rootName']=_0xe3f441,_0x1b4edf['_isAttached']=!_0xb671c1||_0xb671c1['isAttached'],_0x1b4edf['isAttached']=()=>_0x1b4edf['_isAttached'],this['_diffRoots']['set'](_0xe3f441,_0x1b4edf),this['_diffRootsAttributes']['set'](_0xe3f441,_0x4fea00);const _0x348ac1=this['_makeIdsRoot'](_0x1b4edf,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xe3f441,_0x348ac1),_0x50f18e['set'](_0xe3f441,_0x1b4edf['isAttached']()?_0x4fea00:{});for(const [_0x377323,_0x554940]of _0x1b4edf['markers']){if(!_0x377323['startsWith']('revision:'))continue;const _0x55cfb7=_0x377323['split'](':')[0x2];for(const _0x19e612 of _0x554940['getWalker']({'singleCharacters':!0x0})){const _0x1cad43=this['_getVidAttributeName'](_0x19e612),_0x1ed7a0=this['_revisionId']++,_0xeb40cc='elementEnd'==_0x19e612['type']?_0x19e612['previousPosition']['path']['slice'](0x0,-0x1):_0x19e612['previousPosition']['path'];_0x348ac1['getNodeByPath'](_0xeb40cc)['_setAttribute'](_0x1cad43,_0x1ed7a0),this['_touched']['set'](_0x1ed7a0,{'userId':_0x55cfb7});}}for(const _0x153d40 of this['editor']['model']['createRangeIn'](_0x1b4edf)['getWalker']({'singleCharacters':!0x0})){const _0x319c7b=this['_getVidAttributeName'](_0x153d40),_0x3c0233='elementEnd'==_0x153d40['type']?_0x153d40['previousPosition']['path']['slice'](0x0,-0x1):_0x153d40['previousPosition']['path'],_0x164d26=_0x348ac1['getNodeByPath'](_0x3c0233);_0x164d26['getAttribute'](_0x319c7b)>0x0||_0x164d26['_setAttribute'](_0x319c7b,_0x4277d3[_0x2f39c0++]);}for(const [_0x18506b,_0x1f226d]of _0x1b4edf['markers'])_0x18506b['startsWith']('revision:')||this['_markers']['set'](_0x18506b,_0x1f226d);}const _0x2eab7f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2eab7f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2eab7f,0x1));const _0x102491=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x102491),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x102491,0x1));const _0x5a7b6b=Array['from'](this['_diffRoots'])['map'](([_0x1071e8,_0xd172e3])=>[_0x1071e8,F(_0xd172e3)]);this['_saveMetaData'](this['_lastTo'],_0x5a7b6b,this['_markers'],_0x50f18e);}['_makeModelFromViewString'](_0x303b7e){const _0x4bfc04=JSON['parse'](_0x303b7e),_0x595e22=this['editor']['editing']['view']['document'],_0x3456dd=new _0x5a9f7e(_0x595e22,_0x4bfc04['map'](_0x377404=>V(_0x377404,this['editor'])));return this['editor']['data']['toModel'](_0x3456dd);}['_saveMetaData'](_0x5819da,_0x2796a7,_0x6ff55f,_0x5aec0b){const _0x8e7535=new Map(_0x2796a7),_0xb774a9=new Map(_0x3f3c34(_0x5aec0b)),_0x1ff715=new Map();for(const [_0x3ff8bf,_0x56de83]of _0x6ff55f)_0x1ff715['set'](_0x3ff8bf,{'start':_0x56de83['start']['clone'](),'end':_0x56de83['end']['clone'](),'rootName':_0x56de83['root']['rootName']});this['_savedMetaData']['set'](_0x5819da,{'roots':_0x8e7535,'markers':_0x1ff715,'rootsAttributes':_0xb774a9});}['_removeMetaData'](_0x3fa1e0){this['_savedMetaData']['delete'](_0x3fa1e0);}['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'](_0x45ae9f,_0x591515=null){let _0x9f349e=null;_0x45ae9f['is']('documentFragment')||(_0x9f349e=new ft(_0x45ae9f['name'],{'vid_start':null===_0x591515?this['_revisionId']++:_0x591515++}));const _0x2258fa=[];for(const _0x4cd92d of _0x45ae9f['getChildren']())if(_0x4cd92d['is']('element')){_0x2258fa['push'](this['_makeIdsRoot'](_0x4cd92d,_0x591515));const _0x4bf2b4=_0x2258fa[_0x2258fa['length']-0x1];null!==_0x591515&&(_0x591515=_0x4bf2b4['is']('element','$text')?_0x4bf2b4['getAttribute']('vid')+0x1:_0x4bf2b4['getAttribute']('vid_end')+0x1);}else{for(let _0x432b43=0x0;_0x432b43<_0x4cd92d['offsetSize'];_0x432b43++)_0x2258fa['push'](new ft('$text',{'vid':null===_0x591515?this['_revisionId']++:_0x591515++}));}if(_0x45ae9f['is']('documentFragment')){const _0x28162b=B(_0x45ae9f['rootName']);return _0x28162b['_insertChild'](0x0,_0x2258fa),_0x28162b;}return _0x9f349e['_setAttribute']('vid_end',null===_0x591515?this['_revisionId']++:_0x591515++),_0x9f349e['_insertChild'](0x0,_0x2258fa),_0x9f349e;}['_calculateMetaData'](_0x2a995b,_0x41b014,_0x38d895){this['_reset']();const {roots:_0x18a458,markers:_0x1b2f25,rootsAttributes:_0x3face3}=this['_savedMetaData']['get'](_0x2a995b);this['_baseRoots']=new Map(_0x18a458),this['_baseRootsAttributes']=new Map(_0x3f3c34(_0x3face3));for(const [_0x193002,_0x4f3880]of this['_baseRoots'])if('$graveyard'!==_0x193002&&(this['_diffRoots']['set'](_0x193002,F(_0x4f3880)),this['_diffRootsAttributes']=new Map(_0x3f3c34(_0x3face3)),_0x38d895)){const _0x255262=this['_revisionId'];this['_idsRoots']['set'](_0x193002,this['_makeIdsRoot'](_0x4f3880)),this['_baseIdsRoots']['set'](_0x193002,this['_makeIdsRoot'](_0x4f3880,_0x255262));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x38d895&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x44d849,_0x144a8e]of _0x1b2f25){const _0x4b5577=this['_baseRoots']['get'](_0x144a8e['rootName']),_0x2860f2=this['_diffRoots']['get'](_0x144a8e['rootName']),_0x31f8da=new vt(this['_fixPosition'](_0x144a8e['start'],_0x4b5577),this['_fixPosition'](_0x144a8e['end'],_0x4b5577)),_0x525613=this['_fixRange'](_0x31f8da,_0x2860f2);_0x4b5577['markers']['set'](_0x44d849,_0x31f8da),this['_markers']['set'](_0x44d849,_0x525613);}this['_applyOperations'](_0x2a995b,_0x41b014,_0x38d895);}['_applyOperations'](_0x910f9f,_0x3ecb3d,_0x188918){for(const _0x5f5d8d of this['source']['getOperations'](_0x910f9f,_0x3ecb3d))this['_handleOperation'](_0x5f5d8d,_0x188918);for(const _0x58960a of this['_diffRoots']['values']())_0x58960a['markers']['clear']();for(const [_0x77b59c,_0x560321]of this['_markers']){this['_diffRoots']['get'](_0x560321['root']['rootName'])['markers']['set'](_0x77b59c,_0x560321['clone']());}const _0x4d2ee0=new Map(),_0x2d2ded=new Map();for(const [_0x24594b,_0x373af0]of this['_diffRoots'])_0x4d2ee0['set'](_0x24594b,F(_0x373af0)),_0x2d2ded['set'](_0x24594b,this['_diffRootsAttributes']['get'](_0x24594b));this['_saveMetaData'](_0x3ecb3d,_0x4d2ee0,this['_markers'],_0x2d2ded);}['_getPreviousFrom'](_0x49d408){const _0xcc5bf8=Array['from'](this['_savedMetaData']['keys']());_0xcc5bf8['sort']((_0x410884,_0x558f8a)=>_0x410884-_0x558f8a),_0xcc5bf8['reverse']();for(const _0x39f6c2 of _0xcc5bf8)if(_0x39f6c2<_0x49d408)return _0x39f6c2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xb3d91f,_0x16e7e7){const _0x130882=Array['from'](_0x16e7e7['markers'])['map'](([_0x264390,_0x5b4da2])=>[_0x264390,this['_fixRange'](_0x5b4da2,_0xb3d91f)]);_0xb3d91f['markers']=new Map(_0x130882);}['_transformMarkers'](_0x18d8e1){for(const _0x747461 of this['_markers']['values']()){const _0x344a7b=_0x747461['getTransformedByOperation'](_0x18d8e1),_0x5b42d2=vt['_createFromRanges'](_0x344a7b);_0x747461['start']=_0x5b42d2['start'],_0x747461['end']=_0x5b42d2['end'];}}['_handleOperation'](_0x422aaa,_0x2594a9){if('addRoot'!=_0x422aaa['type']&&'detachRoot'!=_0x422aaa['type']){if('insert'==_0x422aaa['type']){const _0x156ce2=_0x422aaa['position']['root']['rootName'];this['_diffRoots']['has'](_0x156ce2)||(this['_diffRoots']['set'](_0x156ce2,B(_0x156ce2,!0x0)),this['_diffRootsAttributes']['set'](_0x156ce2,{}),_0x2594a9&&this['_idsRoots']['set'](_0x156ce2,B(_0x156ce2,!0x0)));}else{if('addRootAttribute'==_0x422aaa['type']||'removeRootAttribute'==_0x422aaa['type']||'changeRootAttribute'==_0x422aaa['type'])return void this['_handleRootAttributeOperation'](_0x422aaa);'marker'==_0x422aaa['type']&&this['_handleMarkerOperation'](_0x422aaa);}if('marker'!==_0x422aaa['type']){const _0x14019e=this['_cloneOperation'](_0x422aaa,this['_diffRoots']);_0x14019e['_execute'](),this['_transformMarkers'](_0x14019e);}if(_0x2594a9)switch(_0x422aaa['type']){case'insert':this['_handleInsertOperation'](_0x422aaa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x422aaa);break;case'merge':this['_handleMergeOperation'](_0x422aaa);break;case'split':this['_handleSplitOperation'](_0x422aaa);}}else this['_handleRootOperation'](_0x422aaa,_0x2594a9);}['_cloneOperation'](_0x19f7d5,_0x4ade41){const _0x57eeee=_0x19f7d5['clone']();return _0x57eeee['_authorId']=_0x19f7d5['_authorId'],this['_fixOperation'](_0x57eeee,_0x4ade41),_0x57eeee;}['_getBaseVids'](_0x52b370){return _0x52b370['map'](_0x119afb=>{const _0x4d0123=this['_getVidAttributeName'](_0x119afb);return Number(_0x119afb['item']['getAttribute'](_0x4d0123));});}['_generateTape'](_0x2854ed,_0x4d8a2b){if(_0x2854ed['is']('element','$text'))_0x4d8a2b['push']({'item':_0x2854ed,'type':'text'});else{_0x2854ed['is']('element')&&_0x4d8a2b['push']({'item':_0x2854ed,'type':'elementStart'});for(const _0x5a00b9 of _0x2854ed['getChildren']())this['_generateTape'](_0x5a00b9,_0x4d8a2b);_0x2854ed['is']('element')&&_0x4d8a2b['push']({'item':_0x2854ed,'type':'elementEnd'});}return _0x4d8a2b;}['_getState'](){const _0x108c05=new Map(this['_touched']),_0x1e4471=new Map(_0x108c05),_0x37be51=new Map(),_0x260249={'insertions':{},'deletions':{}},_0x8c7365={'insertions':{},'deletions':{}},_0x3dc0a1=new Map(),_0x34e5d2=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x34e5d2['delete']('$graveyard');for(const _0x2bd55e of _0x34e5d2){const _0x1b5e5a=this['_diffRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1),_0x2c7b10=this['_baseRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1);_0x1b5e5a['isAttached']()||_0x2c7b10['isAttached']()?(_0x260249['insertions'][_0x2bd55e]=F(_0x1b5e5a),_0x260249['deletions'][_0x2bd55e]=F(_0x2c7b10),this['_copyMarkers'](_0x260249['deletions'][_0x2bd55e],_0x2c7b10),this['_copyMarkers'](_0x260249['insertions'][_0x2bd55e],_0x1b5e5a),_0x8c7365['insertions'][_0x2bd55e]=this['_generateTape'](this['_idsRoots']['get'](_0x2bd55e),[]),_0x8c7365['deletions'][_0x2bd55e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2bd55e)||B(_0x2bd55e,!0x1),[])):_0x34e5d2['delete'](_0x2bd55e);}for(const _0x9deca9 of _0x34e5d2){const _0xf7d81b=_0x8c7365['insertions'][_0x9deca9];for(const _0x7bcba9 of _0xf7d81b){const _0x312480=this['_getVidAttributeName'](_0x7bcba9),_0x223cd5=_0x7bcba9['item']['getAttribute'](_0x312480);_0x1e4471['delete'](_0x223cd5),_0x223cd5>=this['_startingRevisionId']&&_0x37be51['set'](_0x223cd5,_0x108c05['get'](_0x223cd5));}}for(const _0x4fe543 of _0x34e5d2){const _0x4b3cbe=_0x8c7365['insertions'][_0x4fe543],_0x136fd6=this['_getBaseVids'](_0x8c7365['deletions'][_0x4fe543]);let _0x531208=0x0;for(const _0x5e395d of _0x4b3cbe){const _0x4083f7=this['_getVidAttributeName'](_0x5e395d),_0x9a0d12=_0x5e395d['item']['getAttribute'](_0x4083f7);if(!_0x37be51['has'](_0x9a0d12)&&!_0x3dc0a1['has'](_0x9a0d12)){if(_0x1e4471['has'](_0x9a0d12))_0x531208++;else{if(_0x9a0d12!=_0x136fd6[_0x531208]){const _0x1d6953=_0x108c05['get'](_0x9a0d12)||_0x108c05['get'](_0x136fd6[_0x531208]);for(;_0x9a0d12!=_0x136fd6[_0x531208];)_0x1e4471['has'](_0x136fd6[_0x531208])||(_0x3dc0a1['set'](_0x136fd6[_0x531208],_0x1d6953),_0x108c05['set'](_0x136fd6[_0x531208],_0x1d6953)),_0x531208++;}_0x531208++;}}}}for(const _0x2ad79e of _0x34e5d2){const _0x569ebd=_0x8c7365['insertions'][_0x2ad79e];for(const _0x1862a9 of _0x569ebd){const _0x31ddc9=this['_getVidAttributeName'](_0x1862a9),_0x4da945=_0x1862a9['item']['getAttribute'](_0x31ddc9);if(_0x3dc0a1['has'](_0x4da945)){const _0x671572=_0x3dc0a1['get'](_0x4da945);_0x1e4471['has'](_0x4da945)||_0x1e4471['set'](_0x4da945,{..._0x671572}),_0x37be51['set'](_0x4da945,{..._0x671572});}}}for(const _0x108b51 of _0x1e4471['keys']())_0x108b51>=this['_startingRevisionId']&&_0x1e4471['delete'](_0x108b51);const _0x37ed03=new Map();for(const _0x2ae239 of _0x34e5d2){let _0x23e607=_0x8c7365['insertions'][_0x2ae239];for(const _0x4b978b of _0x23e607)if(_0x4b978b['item']['is']('element','tableCell')){const _0x5df810=this['_getVidAttributeName'](_0x4b978b),_0x4dd7fc=_0x4b978b['item']['getAttribute'](_0x5df810);if(_0x37be51['has'](_0x4dd7fc)){const _0x258be2=_0x4b978b['item']['parent']['parent']['getAttribute']('vid_start'),_0x3fd12f=_0x37ed03['get'](_0x258be2)||new Set();_0x3fd12f['add'](_0x37be51['get'](_0x4dd7fc)['userId']),_0x37ed03['set'](_0x258be2,_0x3fd12f);}}_0x23e607=_0x8c7365['deletions'][_0x2ae239];for(const _0x509676 of _0x23e607)if(_0x509676['item']['is']('element','tableCell')){const _0x5e6361=this['_getVidAttributeName'](_0x509676),_0x1de920=_0x509676['item']['getAttribute'](_0x5e6361);if(_0x1e4471['has'](_0x1de920)){const _0x426b83=_0x509676['item']['parent']['parent']['getAttribute']('vid_start'),_0x136064=_0x37ed03['get'](_0x426b83)||new Set();_0x136064['add'](_0x1e4471['get'](_0x1de920)['userId']),_0x37ed03['set'](_0x426b83,_0x136064);}}for(const _0x4a6b39 of _0x37ed03['keys']())(_0x37be51['has'](_0x4a6b39)||_0x1e4471['has'](_0x4a6b39))&&_0x37ed03['delete'](_0x4a6b39);}for(const _0x56e0f3 of _0x34e5d2){const _0x2004d3=_0x8c7365['insertions'][_0x56e0f3];let _0x1c24ad=null,_0x216796=null;for(const _0x5b9397 of _0x2004d3){const _0x10264c=this['_getVidAttributeName'](_0x5b9397),_0x5bc9ce=_0x5b9397['item']['getAttribute'](_0x10264c),_0x283729=_0x37ed03['get'](_0x5bc9ce);_0x283729&&'elementStart'==_0x5b9397['type']&&(_0x1c24ad=Array['from'](_0x283729)[0x0],_0x216796=_0x5b9397['item']['getAttribute']('vid_end')),_0x1c24ad&&(_0x1e4471['set'](_0x5bc9ce,{'userId':_0x1c24ad}),_0x37be51['set'](_0x5bc9ce,{'userId':_0x1c24ad})),_0x5bc9ce==_0x216796&&(_0x1c24ad=null,_0x216796=null);}}const _0x53096c={},_0x394705=new Set();for(const _0x4440ae of _0x34e5d2){const _0x2af872=_0x260249['deletions'][_0x4440ae],_0x1e3379=_0x260249['insertions'][_0x4440ae];for(const {userId:_0x22ccce}of this['_touchedMarkers']['values']())null!==_0x22ccce&&_0x394705['add'](_0x22ccce);for(const {userId:_0x31e78c}of this['_touchedRoots']['values']())null!==_0x31e78c&&_0x394705['add'](_0x31e78c);this['_markChanges'](_0x1e3379,_0x8c7365['insertions'][_0x4440ae],_0x37be51,'insertion',_0x394705),this['_markChanges'](_0x2af872,_0x8c7365['deletions'][_0x4440ae],_0x1e4471,'deletion',_0x394705),_0x53096c[_0x4440ae]={'insertions':this['_prepareViewToSave'](_0x1e3379),'deletions':this['_prepareViewToSave'](_0x2af872),'attachChange':this['_touchedRoots']['get'](_0x4440ae)||null,'attributesBefore':_0x3f3c34(this['_baseRootsAttributes']['get'](_0x4440ae))||{},'attributesAfter':_0x3f3c34(this['_diffRootsAttributes']['get'](_0x4440ae))};}return{'diffData':_0x53096c,'authorsIds':Array['from'](_0x394705)};}['_processRootBeforeSave'](_0x13eb03){for(const [,_0x47cb8f]of _0x13eb03['markers']){const _0x155b4e=_0x47cb8f['start']['getAncestors']()['filter'](_0x26c093=>'tableCell'==_0x26c093['name']);for(const _0x4490b9 of _0x155b4e)0x1==_0x4490b9['childCount']&&_0x4490b9['getChild'](0x0)['is']('element','paragraph')&&_0x4490b9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x395538){this['_processRootBeforeSave'](_0x395538);const _0x585961=this['editor']['data']['toView'](_0x395538,{}),_0x15db11=Array['from'](_0x585961['getChildren']())['map'](_0x448c05=>this['_getViewJson'](_0x448c05));return JSON['stringify'](_0x15db11);}['_getViewJson'](_0x6181c9){if(_0x6181c9['is']('$text'))return _0x6181c9['data'];{const _0x4018a7=_0x6181c9;return{'type':Object['keys'](C)['find'](_0xdc7399=>_0x6181c9 instanceof C[_0xdc7399]),'name':_0x4018a7['name'],'attributes':Array['from'](_0x4018a7['getAttributes']()),'children':Array['from'](_0x4018a7['getChildren']())['map'](_0x512d6d=>this['_getViewJson'](_0x512d6d))};}}['_markChanges'](_0x4ea289,_0x16777f,_0x2c49ea,_0x22ae04,_0x31cfc1){let _0x174400=null,_0x1d6188=null,_0x1eeed8=0x0;const _0x57becc=this['editor']['model'];for(let _0x4ab630=0x0;_0x4ab630<_0x16777f['length'];_0x4ab630++){const _0x30ab4f=this['_getVidAttributeName'](_0x16777f[_0x4ab630]),_0x4e84b3=_0x16777f[_0x4ab630]['item']['getAttribute'](_0x30ab4f),_0x1c1b2b=_0x2c49ea['get'](_0x4e84b3),_0x229dd1=_0x4ab630==_0x16777f['length']-0x1;(!_0x174400&&_0x1c1b2b&&(_0x174400=_0x1c1b2b,_0x1d6188=_0x16777f[_0x4ab630]),_0x174400&&(!_0x1c1b2b||_0x1c1b2b['userId']!=_0x174400['userId']))&&(_0x152dbf(_0x1c1b2b,J(_0x1d6188,_0x4ea289,_0x57becc),J(_0x16777f[_0x4ab630],_0x4ea289,_0x57becc)),_0x174400=_0x1c1b2b||null,_0x1d6188=_0x1c1b2b?_0x16777f[_0x4ab630]:null),_0x174400&&_0x229dd1&&_0x152dbf(_0x1c1b2b,J(_0x1d6188,_0x4ea289,_0x57becc),q(_0x16777f[_0x4ab630],_0x4ea289,_0x57becc));}function _0x152dbf(_0x1c6bbb,_0x2b82f8,_0x190b7e){const _0x165fe7=_0x174400['userId'],_0x5e687='revision:'+_0x22ae04+':'+_0x165fe7+':'+_0x1eeed8++,_0xe2caeb=_0x57becc['createRange'](_0x2b82f8,_0x190b7e);_0x4ea289['markers']['set'](_0x5e687,_0xe2caeb),null!==_0x165fe7&&_0x31cfc1['add'](_0x165fe7);}}['_getVidAttributeName'](_0x3a6fae){switch(_0x3a6fae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13c286,_0x39e580){_0x13c286['baseVersion']=null;for(const _0xd15db2 in _0x13c286){const _0x23104e=_0x13c286[_0xd15db2];if(_0x23104e instanceof gt){const _0x49c185=_0x39e580['get'](_0x23104e['root']['rootName']);_0x13c286[_0xd15db2]=this['_fixPosition'](_0x23104e,_0x49c185);}if(_0x23104e instanceof vt){const _0x22d240=_0x39e580['get'](_0x23104e['root']['rootName']);_0x13c286[_0xd15db2]=this['_fixRange'](_0x23104e,_0x22d240);}'root'===_0xd15db2&&(_0x13c286['root']=_0x39e580['get'](_0x13c286['root']['rootName']));}}['_fixRange'](_0x587732,_0x531a8d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x587732['start'],_0x531a8d),this['_fixPosition'](_0x587732['end'],_0x531a8d));}['_fixPosition'](_0x1cffdd,_0x5f577a){return this['editor']['model']['createPositionFromPath'](_0x5f577a,_0x1cffdd['path'],_0x1cffdd['stickiness']);}['_handleInsertOperation'](_0x31e203){const _0x5bc1c8=this['_idsRoots']['get'](_0x31e203['position']['root']['rootName']),_0x30fe58=this['_fixPosition'](_0x31e203['position'],_0x5bc1c8),_0x31e6dc=null===_0x31e203['_authorId']?null:_0x31e203['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x366b09=_0x30fe58['parent'],_0x396ead=this['_revisionId'],_0x58f2e2=[];for(const _0x20db55 of _0x31e203['nodes'])if(_0x20db55['is']('element'))_0x58f2e2['push'](this['_makeIdsRoot'](_0x20db55));else{for(let _0x1f02db=0x0;_0x1f02db<_0x20db55['offsetSize'];_0x1f02db++)_0x58f2e2['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x55bacf=this['_revisionId'];for(let _0x2d0806=_0x396ead;_0x2d0806<_0x55bacf;_0x2d0806++)this['_touched']['set'](_0x2d0806,{'userId':_0x31e6dc});_0x366b09['_insertChild'](_0x30fe58['offset'],_0x58f2e2);}['_handleMoveOperation'](_0x189a0){(_0x189a0=this['_cloneOperation'](_0x189a0,this['_idsRoots']))['_execute']();const _0xaf4c79=null===_0x189a0['_authorId']?null:_0x189a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39492a=_0x189a0['getMovedRangeStart'](),_0x2c9578=_0x39492a['parent'],_0x448ba8=_0x39492a['offset'];!function _0x97595e(_0x56937a,_0x3bfb84,_0x5bd2fd,_0x23b71a){for(let _0x40dafb=_0x5bd2fd;_0x40dafb<_0x23b71a;_0x40dafb++){const _0x58ae59=_0x3bfb84['getChild'](_0x40dafb);_0x58ae59['is']('element','$text')?_0x56937a['set'](_0x58ae59['getAttribute']('vid'),{'userId':_0xaf4c79}):(_0x56937a['set'](_0x58ae59['getAttribute']('vid_start'),{'userId':_0xaf4c79}),_0x97595e(_0x56937a,_0x58ae59,0x0,_0x58ae59['childCount']),_0x56937a['set'](_0x58ae59['getAttribute']('vid_end'),{'userId':_0xaf4c79}));}}(this['_touched'],_0x2c9578,_0x448ba8,_0x448ba8+_0x189a0['howMany']);}['_handleMergeOperation'](_0xc44b06){const _0x39fc2a=null===(_0xc44b06=this['_cloneOperation'](_0xc44b06,this['_idsRoots']))['_authorId']?null:_0xc44b06['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29c261=_0xc44b06['targetPosition']['parent'],_0xa36c91=_0xc44b06['sourcePosition']['parent'],_0x4701b6=_0x29c261['getAttribute']('vid_end'),_0x2abfe6=_0xa36c91['getAttribute']('vid_start');_0x29c261['_setAttribute']('vid_end',_0xa36c91['getAttribute']('vid_end')),_0xa36c91['_setAttribute']('vid_end',_0x4701b6),this['_touched']['set'](_0x2abfe6,{'userId':_0x39fc2a}),this['_touched']['set'](_0x4701b6,{'userId':_0x39fc2a}),_0xc44b06['_execute']();}['_handleSplitOperation'](_0x5eb707){const _0x44abfa=null===(_0x5eb707=this['_cloneOperation'](_0x5eb707,this['_idsRoots']))['_authorId']?null:_0x5eb707['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ccf7f=_0x5eb707['graveyardPosition'],_0x45e9bc=_0x5eb707['splitPosition']['parent'];_0x5eb707['_execute']();const _0x3fd164=_0x45e9bc['getAttribute']('vid_end'),_0x46d043=_0x5eb707['insertionPosition']['nodeAfter'];if(_0x2ccf7f){const _0x33ab35=_0x46d043['getAttribute']('vid_end'),_0x442dbd=_0x45e9bc['getAttribute']('vid_end');_0x45e9bc['_setAttribute']('vid_end',_0x33ab35),_0x46d043['_setAttribute']('vid_end',_0x442dbd),this['_touched']['set'](_0x45e9bc['getAttribute']('vid_end'),{'userId':_0x44abfa}),this['_touched']['set'](_0x46d043['getAttribute']('vid_start'),{'userId':_0x44abfa});}else{const _0x2bef7e=this['_revisionId']++,_0x8a54c=this['_revisionId']++;_0x45e9bc['_setAttribute']('vid_end',_0x2bef7e),_0x46d043['_setAttribute']('vid_start',_0x8a54c),_0x46d043['_setAttribute']('vid_end',_0x3fd164),this['_touched']['set'](_0x2bef7e,{'userId':_0x44abfa}),this['_touched']['set'](_0x8a54c,{'userId':_0x44abfa});}}['_handleMarkerOperation'](_0x4f452f){if(!_0x4f452f['affectsData'])return;const _0x110cee=(_0x4f452f=this['_cloneOperation'](_0x4f452f,this['_diffRoots']))['oldRange']?_0x4f452f['oldRange']['root']:null,_0x356c91=_0x4f452f['newRange']?_0x4f452f['newRange']['root']:null;_0x110cee&&this['_markers']['delete'](_0x4f452f['name']),_0x356c91&&this['_markers']['set'](_0x4f452f['name'],_0x4f452f['newRange']['clone']());const _0x124f7e=null===_0x4f452f['_authorId']?null:_0x4f452f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4deead=_0x4f452f['name'];if(!this['_touchedMarkers']['has'](_0x4deead))return void this['_touchedMarkers']['set'](_0x4deead,{'range':_0x4f452f['oldRange'],'userId':_0x124f7e});const _0x5885ae=this['_touchedMarkers']['get'](_0x4deead),_0x3a7d1e=_0x5885ae['range'],_0x425f80=_0x4f452f['newRange'];null==_0x3a7d1e&&null==_0x425f80||_0x3a7d1e&&_0x425f80&&_0x3a7d1e['isEqual'](_0x425f80)?this['_touchedMarkers']['delete'](_0x4f452f['name']):_0x5885ae['userId']=_0x124f7e;}['_handleRootOperation'](_0x55701e,_0x445ea5){this['_diffRoots']['has'](_0x55701e['rootName'])?this['_diffRoots']['get'](_0x55701e['rootName'])['_isAttached']=_0x55701e['isAdd']:(this['_diffRoots']['set'](_0x55701e['rootName'],B(_0x55701e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x55701e['rootName'],{}),_0x445ea5&&this['_idsRoots']['set'](_0x55701e['rootName'],B(_0x55701e['rootName'],!0x0)));const _0x52202d=null===_0x55701e['_authorId']?null:_0x55701e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44057a=this['_touchedRoots']['get'](_0x55701e['rootName']);_0x44057a&&_0x44057a['userId']===_0x52202d?this['_touchedRoots']['delete'](_0x55701e['rootName']):this['_touchedRoots']['set'](_0x55701e['rootName'],{'userId':_0x52202d,'isAttached':_0x55701e['isAdd']});}['_handleRootAttributeOperation'](_0x4078a7){const _0x42d475=this['_diffRootsAttributes']['get'](_0x4078a7['root']['rootName']);null===_0x4078a7['newValue']?delete _0x42d475[_0x4078a7['key']]:_0x42d475[_0x4078a7['key']]=_0x4078a7['newValue'];}}function F(_0x2c7b62){const _0x855a5b=B(_0x2c7b62['rootName'],_0x2c7b62['isAttached']());for(const _0x20dc66 of _0x2c7b62['getChildren']()){const _0x2826ef=_0x20dc66['_clone'](!0x0);_0x855a5b['_appendChild'](_0x2826ef);}return _0x855a5b;}function B(_0x507716,_0x179657=!0x0){const _0x3c9c80=new mt();return _0x3c9c80['rootName']=_0x507716,_0x3c9c80['_isAttached']=_0x179657,_0x3c9c80['isAttached']=()=>_0x3c9c80['_isAttached'],_0x3c9c80;}function J(_0x4af3e3,_0x1313f2,_0x3354b7){const _0x3500f9='elementEnd'==_0x4af3e3['type']?_0x3354b7['createPositionAt'](_0x4af3e3['item'],'end'):_0x3354b7['createPositionBefore'](_0x4af3e3['item']);return _0x3354b7['createPositionFromPath'](_0x1313f2,_0x3500f9['path'],_0x3500f9['stickiness']);}function q(_0x5c4163,_0x25f3e9,_0x468bdb){const _0xb6550c='elementStart'==_0x5c4163['type']?_0x468bdb['createPositionAt'](_0x5c4163['item'],0x0):_0x468bdb['createPositionAfter'](_0x5c4163['item']);return _0x468bdb['createPositionFromPath'](_0x25f3e9,_0xb6550c['path'],_0xb6550c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2275f5,_0x41de56){super(_0x2275f5),this['focusTracker']=new _0x71f497(),this['keystrokes']=new _0x5cd6bf(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x41de56),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1e424c(this);}['render'](){super['render'](),_0x4c83e3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3fea55=_0x357780=>_0x357780['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3fea55),this['keystrokes']['set']('arrowleft',_0x3fea55),this['keystrokes']['set']('arrowup',_0x3fea55),this['keystrokes']['set']('arrowdown',_0x3fea55);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1764fd){this['revisionNameInputView']['fieldView']['element']['value']=_0x1764fd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x317ac2){const _0xa570e=new _0x3f921c(this['locale'],_0x2498fb),_0x5e3537=_0xa570e['fieldView'];_0x5e3537['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3d9726=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x317ac2&&(_0x3d9726+='\x20('+R(this['locale'],'optional')+')'),(_0xa570e['label']=_0x3d9726,_0x5e3537['on']('input',()=>{this['revisionNameInputValue']=_0x5e3537['element']['value']['trim']();}),_0xa570e);}}class u extends _0x1c98c7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x488eb5=this['editor'],_0xe6e9f6=_0x488eb5['plugins']['get']('RevisionTracker');_0x488eb5['ui']['componentFactory']['add']('revisionHistory',_0x290169=>{const _0x1cc3d9=_0x547500(_0x290169),_0x3e807f=_0x1cc3d9['panelView']['children'],_0x3d5c3e=new _0x1c3951(_0x290169),_0x436237=new _0x4d7d59(_0x290169),_0x2b7d8c=new te(_0x290169),_0x19cc66=new _0x4d7d59(_0x290169),_0x3a1034=new te(_0x290169);return _0x1cc3d9['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0xe6e9f6,'isEnabled',_0x488eb5,'isReadOnly',(_0x1b4c7a,_0x25298d,_0x2f7a67)=>_0x1b4c7a&&_0x25298d&&!_0x2f7a67),_0x1cc3d9['buttonView']['set']({'icon':_0x14c866['history'],'label':R(_0x290169,'Revision\x20history'),'tooltip':!0x0}),_0x2b7d8c['set']({'label':R(_0x290169,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2b7d8c['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0xe6e9f6,'isEnabled',_0x488eb5,'isReadOnly',(_0x45eeda,_0x2fccb2,_0x3fcc87)=>_0x45eeda&&_0x2fccb2&&!_0x3fcc87),_0x2b7d8c['on']('execute',()=>this['_showDialog']()),_0x3a1034['set']({'label':R(_0x290169,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3a1034['bind']('isEnabled')['to'](_0xe6e9f6,'isReady',_0x488eb5,'isReadOnly',(_0x439ec5,_0x547579)=>_0x439ec5&&!_0x547579),_0x3a1034['on']('execute',()=>{_0x488eb5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1cc3d9['isOpen']=!0x1,_0x488eb5['editing']['view']['focus']();}),_0x436237['children']['add'](_0x2b7d8c),_0x19cc66['children']['add'](_0x3a1034),_0x3d5c3e['role']='menu',_0x3d5c3e['items']['addMany']([_0x436237,_0x19cc66]),_0x3e807f['add'](_0x3d5c3e),_0x1cc3d9;}),_0x488eb5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x286ffb=this['editor'],_0x5db178=_0x286ffb['locale'],_0x3e76de=new _0x10f5c5(_0x5db178),_0x5c2a29=new _0xbf7996(_0x5db178);_0x3e76de['buttonView']['set']({'icon':_0x14c866['history'],'label':R(_0x5db178,'Revision\x20history')});const _0x125e10=new _0x228704(_0x5db178,_0x3e76de),_0x2b2ac4=new _0x3ceb1f(_0x5db178);_0x2b2ac4['set']({'label':R(_0x5db178,'Save\x20current\x20revision')}),_0x2b2ac4['delegate']('execute')['to'](_0x3e76de),_0x2b2ac4['on']('execute',()=>{this['_showDialog']();}),_0x125e10['children']['add'](_0x2b2ac4),_0x5c2a29['items']['add'](_0x125e10);const _0x4f4e1b=new _0x228704(_0x5db178,_0x3e76de),_0x2c9090=new _0x3ceb1f(_0x5db178);return _0x2c9090['set']({'label':R(_0x5db178,'Open\x20revision\x20history')}),_0x2c9090['delegate']('execute')['to'](_0x3e76de),_0x2c9090['on']('execute',()=>{_0x286ffb['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4f4e1b['children']['add'](_0x2c9090),_0x5c2a29['items']['add'](_0x4f4e1b),_0x3e76de['panelView']['children']['add'](_0x5c2a29),_0x3e76de;}['_showDialog'](){const _0x528480=this['editor'],_0x1f4e35=_0x528480['locale'],_0x50800f=_0x528480['plugins']['get']('Dialog'),_0x30f4ad=_0x528480['plugins']['get']('RevisionTracker');function _0x142ee8(_0x16d498){_0x528480['config']['get']('revisionHistory.requireRevisionName')&&''===_0x16d498['revisionName']?_0x16d498['revisionNameInputView']['errorText']=R(_0x1f4e35,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x528480['plugins']['get'](l)['saveRevision']({'name':_0x16d498['revisionName']}),_0x50800f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x142ee8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x50800f['show']({'id':'revisionSave','title':R(_0x1f4e35,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x528480['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x50800f['hide']()},{'label':R(_0x528480['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4aad56){_0x4aad56['bind']('isEnabled')['to'](_0x30f4ad,'isReady',_0x30f4ad,'isEnabled',_0x528480,'isReadOnly',(_0x3ea8ff,_0x601770,_0x46c117)=>_0x3ea8ff&&_0x601770&&!_0x46c117);},'onExecute':()=>_0x142ee8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x582dfc=this['editor'],_0x4ac349=_0x582dfc['locale'];this['_saveRevisionFormView']=new hs(_0x4ac349,_0x582dfc['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x335b04,_0x192fe0){super(_0x335b04),this['_model']=_0x192fe0,this['changeId']=_0x192fe0['id'];const _0x3d194f=this['bindTemplate'],_0x50b273=R(_0x335b04,_0x192fe0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x192fe0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x192fe0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3d194f['to']('type',_0x4154ec=>'ck-revision-change__'+_0x4154ec)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x50b273}]},{'text':'\x20'+_0x192fe0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x96c3fd(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5acc88){super(),this['id']=_0x5acc88['id']||_0x4e6837(),this['author']=_0x5acc88['author'],this['type']=_0x5acc88['type'],this['data']=_0x5acc88['data']||{},this['rootName']=_0x5acc88['rootName'],this['set']('createdAt',_0x5acc88['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(_0x57e549,_0x28d3ad){this['newRevisionId']=_0x57e549,this['oldRevisionId']=_0x28d3ad,this['changes']=new _0x3fda2b();}['_setChanges'](_0xacc8cd){for(const _0xd8f0aa of _0xacc8cd)this['changes']['add'](_0xd8f0aa);}}const Z={'c':_0x58bc9a,'a':_0x4662ee,'e':_0x425a8a,'r':_0x206af8,'u':_0x224256};class d extends _0x1c98c7{['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[_0x4ae6c4,_0x3c5899,j];}constructor(_0x424c7d){super(_0x424c7d),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',(_0x3819cf,_0xe52aa,_0x1f999c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x283103=>{for(const _0x17260c of this['editor']['editing']['view']['document']['roots'])_0x1f999c?_0x283103['removeClass']('ck-editor__editable__overlay',_0x17260c):_0x283103['addClass']('ck-editor__editable__overlay',_0x17260c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1741ed=>null!==_0x1741ed),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4b8dcb,_0xb89c52,_0x58c697)=>_0x4b8dcb&&_0x58c697?_0xb89c52['changes']['getIndex'](_0x58c697):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x577eca,_0x5dbd37)=>_0x577eca?_0x5dbd37['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3c5899);}['init'](){const _0x2cfd7e=this['editor'],_0x622e57=new yt(_0x2cfd7e,{'direction':'backward'}),_0xabd82e=new yt(_0x2cfd7e,{'direction':'forward'});(_0x2cfd7e['commands']['add']('showPreviousChange',_0x622e57),_0x2cfd7e['commands']['add']('showNextChange',_0xabd82e),_0x2cfd7e['commands']['add']('restoreRevision',new _t(_0x2cfd7e)),this['on']('change:numberOfChanges',()=>{_0x622e57['refresh'](),_0xabd82e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2cfd7e['enableReadOnlyMode']('revision-viewer'),_0x2cfd7e['plugins']['has']('WidgetToolbarRepository'))&&_0x2cfd7e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2528e9){await this['loadRevisionData'](_0x2528e9);const _0x207c7d={};for(const _0x3bbab4 in _0x2528e9['diffData']){if(_0x2528e9['diffData'][_0x3bbab4]['attachChange']&&!_0x2528e9['diffData'][_0x3bbab4]['attachChange']['isAttached'])continue;const _0x189242=this['_removeRevisionMarkers'](JSON['parse'](_0x2528e9['diffData'][_0x3bbab4]['insertions'])),_0x502715=this['editor']['editing']['view']['document'],_0x366877=new _0x5a9f7e(_0x502715,_0x189242['map'](_0x9b0d8c=>this['_getViewObj'](_0x9b0d8c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x207c7d[_0x3bbab4]=this['editor']['data']['processor']['toData'](_0x366877),this['editor']['data']['processor']['useFillerType']('default');}return _0x207c7d;}async['getRevisionRootsAttributes'](_0x57c69c){await this['loadRevisionData'](_0x57c69c);const _0x1b2689={};for(const _0x398cef in _0x57c69c['diffData'])_0x57c69c['diffData'][_0x398cef]['attachChange']&&!_0x57c69c['diffData'][_0x398cef]['attachChange']['isAttached']||(_0x1b2689[_0x398cef]=_0x57c69c['diffData'][_0x398cef]['attributesAfter']||{});return _0x1b2689;}['_removeRevisionMarkers'](_0x504c21){return(_0x504c21=_0x504c21['filter'](_0x3359dc=>!_0x3359dc['name']||'revision-start'!==_0x3359dc['name']&&'revision-end'!==_0x3359dc['name']))['forEach'](_0x1e4f29=>{'string'!=typeof _0x1e4f29&&(_0x1e4f29['children']=this['_removeRevisionMarkers'](_0x1e4f29['children']),_0x1e4f29['attributes']=_0x1e4f29['attributes']['filter'](_0x295e18=>!_0x295e18[0x0]['startsWith']('data-revision-')));}),_0x504c21;}async['compare'](_0x4202fd,_0x5a7cb1,_0x4054a8=!0x1){if(!this['isEnabled'])return;const _0x58048a=this['diff'],_0x33442d=this['repository'],_0x5e09d8='string'==typeof _0x4202fd?_0x33442d['getRevision'](_0x4202fd):_0x4202fd,_0x94638e='string'==typeof _0x5a7cb1?_0x33442d['getRevision'](_0x5a7cb1):_0x5a7cb1,_0xf842a2=_0x5e09d8['id'],_0x2fe09f=_0x94638e?_0x94638e['id']:null;if(!_0x4054a8&&this['diff']&&this['diff']['newRevisionId']===_0xf842a2&&this['diff']['oldRevisionId']===_0x2fe09f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xf842a2,_0x2fe09f);const _0x10ee2b=this['_getRevisionsRange'](_0x5e09d8,_0x94638e,!0x0)['map'](_0x2bcc95=>this['loadRevisionData'](_0x2bcc95));return _0x10ee2b['push'](new Promise(_0x4bc048=>{setTimeout(_0x4bc048,0x14);})),Promise['all'](_0x10ee2b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40b94f=this['_getDiff'](_0xf842a2,_0x2fe09f);for(const _0x41f0f8 of _0x40b94f['changes'])this['_changeIdToChange']['set'](_0x41f0f8['id'],_0x41f0f8);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x57489c=>{for(const _0x1370f3 of this['editor']['model']['document']['getRootNames']())_0x57489c['detachRoot'](_0x1370f3);for(const _0x3dfd4c of Object['keys'](_0x40b94f['model'])){const _0x39742e=_0x57489c['addRoot'](_0x3dfd4c);for(const _0x2a3b70 of Object['keys'](_0x40b94f['attributes'][_0x3dfd4c]))_0x57489c['setAttribute'](_0x2a3b70,_0x40b94f['attributes'][_0x3dfd4c][_0x2a3b70],_0x39742e);_0x57489c['insert'](_0x40b94f['model'][_0x3dfd4c],_0x39742e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40b94f['changes'])),this['isReady']=!0x0;})['catch'](_0x5d4204=>{console['error'](_0x5d4204),this['_cleanUp'](),_0x58048a&&(this['diff']=_0x58048a),this['isReady']=!0x0;});}['addRevisionData'](_0x52f057,_0x4f352e){const _0x51200a=this['repository']['createRevision'](_0x52f057);return _0x51200a['on']('_update',(_0x3d3834,_0x2235a4,_0x556265)=>_0x4f352e(_0x2235a4,_0x556265,_0x51200a)),this['repository']['addRevision'](_0x51200a),_0x51200a;}['loadRevisionData'](_0x1e8f1c){if(!_0x1e8f1c||_0x1e8f1c['diffData'])return Promise['resolve']();{const _0x2b8394=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b8394,'revisionId':_0x1e8f1c['id']})['then'](_0x25b7c9=>{_0x1e8f1c['_update']({'diffData':_0x25b7c9['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},_0x53b060=>{for(const _0x448b50 of this['editor']['model']['document']['getRootNames']())_0x53b060['detachRoot'](_0x448b50);});}['_sortAndFilterDiffChanges'](_0x197fc5){const _0x32b180=[],_0x329a28=new Map();for(const _0x4f25a9 of this['editor']['model']['document']['getRootNames']()){const _0x5650d5=this['editor']['editing']['view']['getDomRoot'](_0x4f25a9);if(!_0x5650d5)continue;const _0x190c08=_0x5650d5['getClientRects']()['item'](0x0);_0x190c08&&(_0x32b180['push'](_0x4f25a9),_0x329a28['set'](_0x4f25a9,_0x190c08));}return _0x32b180['sort']((_0x1af020,_0x3df4cb)=>{const _0x16e8a5=_0x329a28['get'](_0x1af020),_0x118d98=_0x329a28['get'](_0x3df4cb);return _0x16e8a5['y']-_0x118d98['y']||_0x16e8a5['x']-_0x118d98['x'];}),(_0x197fc5=_0x197fc5['filter'](_0x3c2adb=>_0x32b180['includes'](_0x3c2adb['rootName'])))['sort']((_0x2ad8c1,_0x270b28)=>_0x32b180['indexOf'](_0x2ad8c1['rootName'])-_0x32b180['indexOf'](_0x270b28['rootName'])),_0x197fc5;}['_makeTape'](_0x4b8a5f){const _0x1440af=Array['from'](_0x4b8a5f['markers'])['filter'](([_0x3291ae,_0x5795ec])=>_0x3291ae['startsWith']('revision:')&&!_0x5795ec['isCollapsed']),_0x3217df=Array['from'](this['editor']['model']['createRangeIn'](_0x4b8a5f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1440af['length'])for(const _0x89e716 of _0x3217df){const [_0x38c562,_0x5ca6a4]=_0x1440af[0x0],[,_0x54c4ce,_0x211979]=_0x38c562['split'](':');if(_0x5ca6a4['end']['isEqual'](_0x89e716['nextPosition'])&&_0x1440af['shift'](),(_0x89e716['previousPosition']['isEqual'](_0x5ca6a4['start'])||_0x89e716['previousPosition']['isAfter'](_0x5ca6a4['start']))&&('insertion'==_0x54c4ce?_0x89e716['isAdded']={'userId':_0x211979}:'deletion'==_0x54c4ce&&(_0x89e716['isRemoved']={'userId':_0x211979})),0x0==_0x1440af['length'])break;}return _0x3217df;}['_refreshStartEndIndex'](_0x2dbddf){const _0x5b39e5=new Map();for(let _0x21088d=0x0;_0x21088d<_0x2dbddf['length'];_0x21088d++)'text'===_0x2dbddf[_0x21088d]['type']?(_0x2dbddf[_0x21088d]['item']['startIndex']=_0x21088d,_0x2dbddf[_0x21088d]['item']['endIndex']=_0x21088d):('elementStart'===_0x2dbddf[_0x21088d]['type']?_0x2dbddf[_0x21088d]['item']['startIndex']=_0x21088d:'elementEnd'===_0x2dbddf[_0x21088d]['type']&&(_0x2dbddf[_0x21088d]['item']['endIndex']=_0x21088d),_0x5b39e5['set'](_0x2dbddf[_0x21088d]['id'],_0x21088d));for(const _0x34e36e of _0x5b39e5['values']())'elementStart'===_0x2dbddf[_0x34e36e]['type']?_0x2dbddf[_0x34e36e]['item']['endIndex']=_0x5b39e5['get'](_0x2dbddf[_0x34e36e]['pairId']):'elementEnd'===_0x2dbddf[_0x34e36e]['type']&&(_0x2dbddf[_0x34e36e]['item']['startIndex']=_0x5b39e5['get'](_0x2dbddf[_0x34e36e]['pairId']));}['_processTape'](_0x4c96f1){for(let _0x1bddec=0x0;_0x1bddec<_0x4c96f1['length'];_0x1bddec++){if('elementStart'===_0x4c96f1[_0x1bddec]['type'])_0x4c96f1[_0x1bddec]['item']['startIndex']=_0x1bddec;else{if('elementEnd'===_0x4c96f1[_0x1bddec]['type']){_0x4c96f1[_0x1bddec]['item']['endIndex']=_0x1bddec;const _0xd4286f=_0x4c96f1[_0x1bddec]['item']['startIndex'];_0x4c96f1[_0xd4286f]['pairId']=_0x4c96f1[_0x1bddec]['id'],_0x4c96f1[_0x1bddec]['pairId']=_0x4c96f1[_0xd4286f]['id'];}else _0x4c96f1[_0x1bddec]['item']['startIndex']=_0x1bddec,_0x4c96f1[_0x1bddec]['item']['endIndex']=_0x1bddec,_0x4c96f1[_0x1bddec]['pairId']=null;}_0x4c96f1[_0x1bddec]['markersStart']||(_0x4c96f1[_0x1bddec]['markersStart']=[],_0x4c96f1[_0x1bddec]['markersEnd']=[]);}}['_markInsertions'](_0x3352fc,_0x5d3e3d){const _0x522c29=_0x3352fc['filter'](_0x1764eb=>!_0x1764eb['isAdded']);for(let _0x26ce50=0x0;_0x26ce50<_0x5d3e3d['length'];_0x26ce50++)_0x5d3e3d[_0x26ce50]['isAdded']&&(_0x522c29[_0x26ce50]['isAdded']=_0x5d3e3d[_0x26ce50]['isAdded']);}['_makeModelFromViewString'](_0x552335){const _0x7e96db=JSON['parse'](_0x552335),_0x2271b7=this['editor']['editing']['view']['document'],_0x3e85ef=new _0x5a9f7e(_0x2271b7,_0x7e96db['map'](_0x2f05d7=>this['_getViewObj'](_0x2f05d7)));return this['editor']['data']['toModel'](_0x3e85ef);}['_getViewObj'](_0x47397d){const _0x3264cd=this['editor']['editing']['view']['document'];if('string'==typeof _0x47397d)return new _0x377b5b(_0x3264cd,_0x47397d);{const _0x4f9008=_0x47397d['children']['map'](_0x3fa9d4=>this['_getViewObj'](_0x3fa9d4));return new(Z[_0x47397d['type']]||_0x1fac3b)(_0x3264cd,_0x47397d['name'],_0x47397d['attributes'],_0x4f9008);}}['_getDiff'](_0x31dc3a,_0x46d85d=null){const _0x3bd816=this['repository']['getRevision'](_0x31dc3a),_0x1b3510=_0x46d85d?this['repository']['getRevision'](_0x46d85d):null,_0x465d3c=this['_getRevisionsRange'](_0x3bd816,_0x1b3510),_0x5236b9=_0x465d3c[_0x465d3c['length']-0x1],_0x1a4550=new Map(),_0x4f9961={'model':{},'attributes':{},'changes':[]},_0x3fc5e8=new Set(),_0x2ff99e=new Map();for(let _0x50292d=_0x465d3c['length']-0x1;_0x50292d>=0x0;_0x50292d--){const _0x3d72b6=_0x465d3c[_0x50292d];for(const _0x2ae8d9 of Object['keys'](_0x3d72b6['diffData']))if(_0x3d72b6['diffData'][_0x2ae8d9]['attachChange']){const _0x2ec889=_0x3d72b6['diffData'][_0x2ae8d9]['attachChange'];_0x2ec889['isAttached']?(_0x3fc5e8['add'](_0x2ae8d9),_0x2ff99e['has'](_0x2ae8d9)&&_0x2ff99e['get'](_0x2ae8d9)['userId']==_0x2ec889['userId']?_0x2ff99e['delete'](_0x2ae8d9):_0x2ff99e['set'](_0x2ae8d9,_0x2ec889)):_0x2ff99e['has'](_0x2ae8d9)?(_0x3fc5e8['delete'](_0x2ae8d9),_0x2ff99e['delete'](_0x2ae8d9)):(_0x3fc5e8['add'](_0x2ae8d9),_0x2ff99e['set'](_0x2ae8d9,_0x2ec889));}else _0x3fc5e8['add'](_0x2ae8d9);}for(const _0x2fc1d0 of _0x3fc5e8){const _0x49863e=_0x2ff99e['has'](_0x2fc1d0)&&!_0x2ff99e['get'](_0x2fc1d0)['isAttached'];let _0xfe194f=_0x49863e?_0x465d3c['length']-0x1:0x0;const _0x79e502=_0x49863e?-0x1:0x1;for(;_0x465d3c[_0xfe194f];){const _0x1e8080=_0x465d3c[_0xfe194f];if(_0x1e8080['diffData'][_0x2fc1d0]){const _0x49b706=_0x49863e?_0x1e8080['diffData'][_0x2fc1d0]['attributesBefore']:_0x1e8080['diffData'][_0x2fc1d0]['attributesAfter'];_0x4f9961['attributes'][_0x2fc1d0]=_0x49b706?_0x3f3c34(_0x49b706):{};break;}_0xfe194f+=_0x79e502;}}for(const _0x4cbc49 of _0x465d3c){_0x4cbc49['model']={};for(const _0x681178 of _0x4cbc49['authors'])_0x1a4550['set'](_0x681178['id'],_0x681178);for(const _0x54eff2 of _0x3fc5e8){const _0x2b320b=_0x4cbc49['diffData'][_0x54eff2]?_0x4cbc49['diffData'][_0x54eff2]['insertions']:'[]',_0x3834e7=_0x4cbc49['diffData'][_0x54eff2]?_0x4cbc49['diffData'][_0x54eff2]['deletions']:'[]';_0x4cbc49['model'][_0x54eff2]={'insertions':this['_makeModelFromViewString'](_0x2b320b),'deletions':this['_makeModelFromViewString'](_0x3834e7)};}}for(const _0xb6fff1 of _0x3fc5e8){let _0x3d3465=null,_0x32fbc8=0x0;const _0x12af27=new Map(Array['from'](_0x3bd816['model'][_0xb6fff1]['insertions']['markers'])['filter'](([_0xbc71c8])=>!_0xbc71c8['startsWith']('revision:')));let _0x2d1876=0x0;for(const _0x18b93c of _0x465d3c){const _0x4128e8=this['_makeTape'](_0x18b93c['model'][_0xb6fff1]['insertions']);_0x18b93c==_0x3bd816?(_0x3d3465=_0x4128e8,_0x32fbc8=_0x3d3465['length'],_0x3d3465['forEach'](_0x59801b=>{_0x59801b['id']=_0x2d1876++;}),this['_processTape'](_0x3d3465)):this['_markInsertions'](_0x3d3465,_0x4128e8);const _0x2cfafb=_0x3d3465['filter'](_0x4442f2=>!_0x4442f2['isAdded'])['map'](_0x29bae0=>_0x29bae0['id']);let _0x47f327=0x0;const _0x40f71f=this['_makeTape'](_0x18b93c['model'][_0xb6fff1]['deletions']);_0x40f71f['forEach'](_0x592dab=>{_0x592dab['isRemoved']?_0x592dab['id']=_0x32fbc8++:_0x592dab['id']=_0x2cfafb[_0x47f327++];}),this['_processTape'](_0x40f71f),this['_setDistance'](_0x3d3465,'isAdded'),this['_setDistance'](_0x40f71f,'isRemoved'),_0x18b93c==_0x3bd816&&this['_markMarkers'](_0x3d3465,_0x12af27),_0x3d3465=this['_joinTapes'](_0x3d3465,_0x40f71f),this['_refreshStartEndIndex'](_0x3d3465),this['_setDistance'](_0x3d3465,'isRemoved');}_0x3d3465=_0x3d3465['filter'](_0x4e2e43=>!(_0x4e2e43['isAdded']&&_0x4e2e43['isRemoved']));const _0xc080ce=new Map(_0x5236b9['model'][_0xb6fff1]['deletions']['markers']),_0x4f1988=new Set(_0x12af27['keys']());for(const _0x194089 of _0xc080ce['keys']())_0x4f1988['delete'](_0x194089);this['_markSuggestions'](_0x3d3465,_0x4f1988),this['_fixObsoleteTags'](_0x3d3465),_0x3d3465=this['_removeMissingPairs'](_0x3d3465),_0x3d3465=this['_markMismatchedRemovedTags'](_0x3d3465),_0x3d3465=this['_removeUnsupportedChanges'](_0x3d3465);const {root:_0x16e9c2,changes:_0x4d1ccc}=this['_makeModelFromTape'](_0x3d3465,_0x1a4550,_0xb6fff1);_0x4f9961['model'][_0xb6fff1]=_0x16e9c2;const _0x3e8eb7=_0x2ff99e['get'](_0xb6fff1);if(_0x3e8eb7){const _0x1fe813=_0x1a4550['get'](_0x3e8eb7['userId']),_0x2990d0=new r({'author':_0x1fe813,'type':_0x3e8eb7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xb6fff1});_0x4d1ccc['unshift'](_0x2990d0),_0x4f9961['attributes'][_0xb6fff1]['revisionHistoryAttachChange']=_0x2990d0['id'];}_0x4f9961['changes']=_0x4f9961['changes']['concat'](_0x4d1ccc);}return _0x4f9961;}['_markMarkers'](_0xb8d635,_0x2fc7c6){for(let _0x53ee7c=0x0;_0x53ee7c<_0xb8d635['length'];_0x53ee7c++)for(const [_0xcacf0b,_0x50a9f1]of _0x2fc7c6)_0x50a9f1['start']['isEqual'](_0xb8d635[_0x53ee7c]['previousPosition'])&&_0xb8d635[_0x53ee7c]['markersStart']['push'](_0xcacf0b),_0x50a9f1['end']['isEqual'](_0xb8d635[_0x53ee7c]['nextPosition'])&&_0xb8d635[_0x53ee7c]['markersEnd']['push'](_0xcacf0b);}['_joinTapes'](_0x1d1988,_0x2f39a0){let _0x196081=[],_0x3fce28=0x0,_0x3bf906=0x0;for(;_0x3fce28<_0x1d1988['length']||_0x3bf906<_0x2f39a0['length'];){const _0x3cb87d=_0x1d1988[_0x3fce28]||{},_0x5d922f=_0x2f39a0[_0x3bf906]||{};if(_0x3cb87d['id']==_0x5d922f['id'])_0x3fce28++,_0x3bf906++,_0x196081['push'](_0x3cb87d);else{if(_0x5d922f['isRemoved']&&_0x3cb87d['isAdded']){const {commonTape:_0x3bdfdc,iEnd:_0x1ed258,jEnd:_0xb16712}=this['_threeWayMerge'](_0x1d1988,_0x3fce28,_0x2f39a0,_0x3bf906);_0x196081=_0x196081['concat'](_0x3bdfdc),_0x3fce28=_0x1ed258,_0x3bf906=_0xb16712;}else _0x5d922f['isRemoved']?(_0x3bf906++,_0x196081['push'](_0x5d922f)):(_0x3fce28++,_0x196081['push'](_0x3cb87d));}}return _0x196081;}['_markSuggestions'](_0x49b626,_0x2f177f){const _0xb16d0d=[];for(let _0x492e71=0x0;_0x492e71<_0x49b626['length'];_0x492e71++){for(let _0x4ad2f3=0x0;_0x4ad2f3<_0x49b626[_0x492e71]['markersStart']['length'];_0x4ad2f3++){const _0xad5e2c=_0x49b626[_0x492e71]['markersStart'][_0x4ad2f3];if(!_0x2f177f['has'](_0xad5e2c))continue;const {group:_0x5a4a03,type:_0x43a6c1,authorId:_0x426420}=_0x4f9519(_0xad5e2c);'revision-suggestion'!=_0x5a4a03||'insertion'!=_0x43a6c1&&'deletion'!=_0x43a6c1||(_0xb16d0d['unshift']({'type':_0x43a6c1,'name':_0xad5e2c,'userId':_0x426420}),_0x49b626[_0x492e71]['markersStart']['splice'](_0x4ad2f3,0x1),_0x4ad2f3--);}_0x5677c0(_0x49b626[_0x492e71]);for(let _0x322d16=0x0;_0x322d16<_0x49b626[_0x492e71]['markersEnd']['length'];_0x322d16++){const _0x32f82e=_0x49b626[_0x492e71]['markersEnd'][_0x322d16];if(!_0x2f177f['has'](_0x32f82e))continue;const {group:_0x3f1694,type:_0x2c56b7}=_0x4f9519(_0x32f82e);if('revision-suggestion'!=_0x3f1694||'insertion'!=_0x2c56b7&&'deletion'!=_0x2c56b7)continue;_0x49b626[_0x492e71]['markersEnd']['splice'](_0x322d16,0x1),_0x322d16--;const _0x25e62e=_0xb16d0d['findIndex'](_0x1a8296=>_0x1a8296['name']==_0x32f82e);_0x25e62e>-0x1&&_0xb16d0d['splice'](_0x25e62e,0x1);}}function _0x4f9519(_0x180d31){const _0x24d488=_0x180d31['split'](':');return{'group':_0x24d488[0x0],'type':_0x24d488[0x1],'subType':_0x24d488['length']>=0x5?_0x24d488[0x2]:null,'id':_0x24d488['length']<0x5?_0x24d488[0x2]:_0x24d488[0x3],'authorId':_0x24d488['length']<0x5?_0x24d488[0x3]:_0x24d488[0x4],'markerCount':0x6==_0x24d488['length']?_0x24d488[0x5]:null};}function _0x5677c0(_0x52518a){for(let _0x18ad9c=0x0;_0x18ad9c<_0xb16d0d['length'];_0x18ad9c++){if(_0x52518a['isAdded']&&'insertion'==_0xb16d0d[_0x18ad9c]['type'])return _0x52518a['isAddSuggestion']=_0xb16d0d[_0x18ad9c],void delete _0x52518a['isAdded'];if(!_0x52518a['isAdded']&&!_0x52518a['isRemoved']&&'deletion'==_0xb16d0d[_0x18ad9c]['type'])return void(_0x52518a['isRemoveSuggestion']=_0xb16d0d[_0x18ad9c]);}}}['_setDistance'](_0x5349a4,_0x16bf2d){let _0x2eb1a2=0x0,_0x4d89fe=!0x1;const _0x5307ca=new Map();for(const _0x46ed81 of _0x5349a4)_0x46ed81[_0x16bf2d]?_0x4d89fe&&(_0x2eb1a2++,_0x4d89fe=!0x1):(_0x2eb1a2++,_0x4d89fe=!0x0),_0x5307ca['set'](_0x46ed81['id'],_0x2eb1a2);for(let _0x59dfee=0x0;_0x59dfee<_0x5349a4['length'];_0x59dfee++){if('isRemoved'==_0x16bf2d&&_0x5349a4[_0x59dfee]['isAdded']||'isAdded'==_0x16bf2d&&_0x5349a4[_0x59dfee]['isRemoved'])continue;if('text'==_0x5349a4[_0x59dfee]['type']){_0x5349a4[_0x59dfee]['distance']=0x0;continue;}const _0x27a4e1=_0x5307ca['get'](_0x5349a4[_0x59dfee]['pairId']),_0x5640ec=_0x5307ca['get'](_0x5349a4[_0x59dfee]['id']);_0x5349a4[_0x59dfee]['distance']=_0x27a4e1-_0x5640ec;}}['_getRevisionsRange'](_0x498a3d,_0x226a52,_0x54684c=!0x1){const _0x4e0239=[];let _0x2d38f9=this['repository']['getIndex'](_0x498a3d),_0x38ccb2=this['repository']['getIndex'](_0x226a52);for(-0x1==_0x38ccb2&&(_0x38ccb2=this['repository']['_revisions']['length'],_0x54684c=!0x1);_0x2d38f9<_0x38ccb2;)_0x4e0239['push'](this['repository']['getRevision'](_0x2d38f9)),_0x2d38f9++;return _0x54684c&&_0x4e0239['push'](this['repository']['getRevision'](_0x2d38f9)),_0x4e0239;}['_threeWayMerge'](_0x5e1aec,_0x1bdf49,_0x239198,_0xf00cf1){const _0x2f911a=this['editor']['model']['schema'];let _0x44a80f=_0x1bdf49;for(;_0x5e1aec[_0x44a80f]&&_0x5e1aec[_0x44a80f]['isAdded'];)_0x44a80f++;let _0x5015c6=_0xf00cf1;for(;_0x239198[_0x5015c6]&&_0x239198[_0x5015c6]['isRemoved'];)_0x5015c6++;_0x5911e5(_0x5e1aec,_0x1bdf49,_0x44a80f),_0x5911e5(_0x239198,_0xf00cf1,_0x5015c6);const _0x5680b6=_0x239198['slice'](_0xf00cf1,_0x5015c6)['concat'](_0x5e1aec['slice'](_0x1bdf49,_0x44a80f));return _0x5680b6['sort']((_0x52b04e,_0x2bf00b)=>_0x52b04e['side']!=_0x2bf00b['side']?_0x52b04e['side']-_0x2bf00b['side']:_0x52b04e['level']!=_0x2bf00b['level']?_0x52b04e['level']-_0x2bf00b['level']:_0x52b04e['distance']!=_0x2bf00b['distance']?_0x2bf00b['distance']-_0x52b04e['distance']:!!_0x52b04e['isAdded']!=!!_0x2bf00b['isAdded']?-0x1==_0x52b04e['side']||0x0==_0x52b04e['side']?_0x52b04e['isAdded']?-0x1:0x1:_0x52b04e['isAdded']?0x1:-0x1:_0x52b04e['index']-_0x2bf00b['index']),{'commonTape':_0x5680b6,'iEnd':_0x44a80f,'jEnd':_0x5015c6};function _0x5911e5(_0x4690e2,_0x6fbd40,_0x1e5b39){let _0x3a2601=-0x1,_0x434adc=Number['POSITIVE_INFINITY'],_0x3e6ee3=!0x0;for(let _0x18cdd3=_0x6fbd40;_0x18cdd3<_0x1e5b39;_0x18cdd3++)if(_0x2f911a['isInline'](_0x4690e2[_0x18cdd3]['item'])||(_0x3e6ee3=!0x1),_0x4690e2[_0x18cdd3]['item']['startIndex']<_0x6fbd40&&(_0x3a2601=_0x18cdd3),_0x4690e2[_0x18cdd3]['item']['endIndex']>=_0x1e5b39){_0x434adc=_0x18cdd3;break;}_0x3e6ee3&&(_0x3a2601=_0x1e5b39-0x1);for(let _0x34da7a=_0x6fbd40;_0x34da7a<_0x1e5b39;_0x34da7a++)_0x4690e2[_0x34da7a]['side']=_0x34da7a<=_0x3a2601?-0x1:_0x34da7a<_0x434adc?0x0:0x1,_0x4690e2[_0x34da7a]['index']=_0x34da7a;let _0x5133de=0x0;for(let _0xab89f3=_0x6fbd40;_0xab89f3<=_0x3a2601;_0xab89f3++)0x0==_0x4690e2[_0xab89f3]['distance']?_0x4690e2[_0xab89f3]['level']=_0x5133de:(_0x5133de++,_0x4690e2[_0xab89f3]['level']=_0x5133de,_0x5133de++);for(let _0x21e4dd=_0x6fbd40;_0x21e4dd<_0x1e5b39;_0x21e4dd++)0x0==_0x4690e2[_0x21e4dd]['side']&&(_0x4690e2[_0x21e4dd]['level']=_0x5133de);_0x5133de=0x0;for(let _0x5e49e8=_0x1e5b39-0x1;_0x5e49e8>=_0x434adc;_0x5e49e8--)0x0==_0x4690e2[_0x5e49e8]['distance']?_0x4690e2[_0x5e49e8]['level']=_0x5133de:(_0x5133de--,_0x4690e2[_0x5e49e8]['level']=_0x5133de,_0x5133de--);}}['_fixObsoleteTags'](_0x47d3b6){const _0x14ca75=new Map(),_0x4a4793=this['editor']['model']['schema'];for(let _0x21718d=0x1;_0x21718d<_0x47d3b6['length'];_0x21718d++){let _0x532ae1,_0x4f2a6d,_0x1954ee;const _0x59b968=_0x47d3b6[_0x21718d],_0x1c9b9c=_0x47d3b6[_0x21718d-0x1];if('text'==_0x59b968['type'])continue;if(_0x59b968['type']!=_0x1c9b9c['type'])continue;if(!_0x4a4793['isBlock'](_0x1c9b9c['item'])||_0x4a4793['isLimit'](_0x1c9b9c['item']))continue;if(!_0x4a4793['isBlock'](_0x59b968['item'])||_0x4a4793['isLimit'](_0x59b968['item']))continue;if((_0x47d3b6[_0x21718d]['isAdded']||_0x47d3b6[_0x21718d]['isAddSuggestion'])&&_0x47d3b6[_0x21718d-0x1]['isRemoved'])_0x532ae1=_0x47d3b6[_0x21718d],_0x4f2a6d=_0x47d3b6[_0x21718d-0x1],_0x1954ee=_0x21718d-0x1;else{if(!_0x47d3b6[_0x21718d]['isRemoved']||!_0x47d3b6[_0x21718d-0x1]['isAdded']&&!_0x47d3b6[_0x21718d-0x1]['isAddSuggestion'])continue;_0x532ae1=_0x47d3b6[_0x21718d-0x1],_0x4f2a6d=_0x47d3b6[_0x21718d],_0x1954ee=_0x21718d;}const _0x1cd6f3=_0x532ae1['level']==_0x4f2a6d['level'],_0x581eb9=Math['abs'](_0x532ae1['level'])<Math['abs'](_0x4f2a6d['level'])&&0x0==_0x4f2a6d['distance'];(_0x1cd6f3||_0x581eb9)&&(_0x14ca75['set'](_0x4f2a6d['id'],_0x532ae1['id']),_0x47d3b6['splice'](_0x1954ee,0x1),_0x21718d--,_0x532ae1['isAdded']=!0x1);}for(let _0x32ef6f=0x0;_0x32ef6f<_0x47d3b6['length'];_0x32ef6f++)_0x14ca75['has'](_0x47d3b6[_0x32ef6f]['pairId'])&&(_0x47d3b6[_0x32ef6f]['pairId']=_0x14ca75['get'](_0x47d3b6[_0x32ef6f]['pairId']));}['_removeMissingPairs'](_0x5161ed){const _0xc3a609=new Set(_0x5161ed['map'](_0x4645a0=>_0x4645a0['id']));for(let _0x152ebd=0x0;_0x152ebd<_0x5161ed['length'];_0x152ebd++)_0xc3a609['has'](_0x5161ed[_0x152ebd]['pairId'])||0x0==_0x5161ed[_0x152ebd]['distance']||(_0x5161ed[_0x152ebd]['isIncorrect']=!0x0);return _0x5161ed['filter'](_0x561afb=>!_0x561afb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x68e5dc){const _0x1eb5be=new Set();for(let _0x43af5b=0x0;_0x43af5b<_0x68e5dc['length'];_0x43af5b++){if(_0x1eb5be['has'](_0x68e5dc[_0x43af5b]['id'])&&_0x68e5dc[_0x43af5b]['isRemoved']&&(_0x68e5dc[_0x43af5b]['isIncorrect']=!0x0),_0x68e5dc[_0x43af5b]['isIncorrect'])continue;if(0x0==_0x68e5dc[_0x43af5b]['distance'])continue;if('elementStart'!=_0x68e5dc[_0x43af5b]['type'])continue;if(null==_0x68e5dc[_0x43af5b]['pairId'])continue;let _0x49d7e3=_0x43af5b+0x1,_0x4b02ef=0x0;for(;_0x68e5dc[_0x49d7e3]['id']!=_0x68e5dc[_0x43af5b]['pairId'];)'elementStart'==_0x68e5dc[_0x49d7e3]['type']?_0x4b02ef++:'elementEnd'==_0x68e5dc[_0x49d7e3]['type']&&_0x4b02ef--,_0x49d7e3++;if(0x0!=_0x4b02ef){if(_0x68e5dc[_0x43af5b]['isRemoved'])_0x68e5dc[_0x43af5b]['isIncorrect']=!0x0;else{for(;_0x49d7e3!=_0x43af5b;)_0x68e5dc[_0x49d7e3]['isRemoved']&&0x0!=_0x68e5dc[_0x49d7e3]['distance']&&(_0x68e5dc[_0x49d7e3]['isIncorrect']=!0x0,_0x1eb5be['add'](_0x68e5dc[_0x49d7e3]['pairId'])),_0x49d7e3--;}}}return _0x68e5dc['filter'](_0x5730c0=>!_0x5730c0['isIncorrect']);}['_removeUnsupportedChanges'](_0x5c24e2){const _0x96c338=this['editor']['model']['schema'];for(let _0x4bc968=0x0;_0x4bc968<_0x5c24e2['length'];_0x4bc968++){if(!(_0x5c24e2[_0x4bc968]['isAdded']||_0x5c24e2[_0x4bc968]['isAddSuggestion']||_0x5c24e2[_0x4bc968]['isRemoved']||_0x5c24e2[_0x4bc968]['isRemoveSuggestion']))continue;if(0x0==_0x5c24e2[_0x4bc968]['distance'])continue;const _0x5ce5fa=_0x5c24e2[_0x4bc968]['item'];_0x96c338['isBlock'](_0x5ce5fa)||_0x96c338['isLimit'](_0x5ce5fa)||(_0x5c24e2[_0x4bc968]['isAdded']&&delete _0x5c24e2[_0x4bc968]['isAdded'],_0x5c24e2[_0x4bc968]['isAddSuggestion']&&delete _0x5c24e2[_0x4bc968]['isAddSuggestion'],_0x5c24e2[_0x4bc968]['isRemoveSuggestion']&&delete _0x5c24e2[_0x4bc968]['isRemoveSuggestion'],_0x5c24e2[_0x4bc968]['isRemoved']&&(_0x5c24e2[_0x4bc968]['isIncorrect']=!0x0));}return _0x5c24e2['filter'](_0x5b5c5d=>!_0x5b5c5d['isIncorrect']);}['_makeModelFromTape'](_0x58e54c,_0x536d73,_0x53358d){const _0x245578=new mt(),_0x3cf2b6=[],_0x57f08c=new Map(),_0x253604=this['editor']['model'],_0x5b9327=_0x253604['schema'],_0xc0bcf4=[_0x245578],_0x405f44={},_0xe130a0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f4d01=null;const _0x3b441d=[0x0];for(let _0x29e84c=0x0;_0x29e84c<_0x58e54c['length'];_0x29e84c++)if('elementStart'===_0x58e54c[_0x29e84c]['type']){_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d);const _0x30ec59=new ft(_0x58e54c[_0x29e84c]['item']['name'],_0x58e54c[_0x29e84c]['item']['getAttributes']());_0xc0bcf4[0x0]['_appendChild'](_0x30ec59),_0x3b441d['push'](0x0),_0xc0bcf4['unshift'](_0x30ec59),_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d);}else'elementEnd'===_0x58e54c[_0x29e84c]['type']?(_0xc0bcf4['shift'](),_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d),_0x3b441d['pop'](),_0x3b441d[_0x3b441d['length']-0x1]++,_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d)):(_0x58e54c[_0x29e84c]['previousPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d),_0x3f4d01?_0x3f4d01['_data']+=_0x58e54c[_0x29e84c]['item']['data']:_0x3f4d01=new wt(_0x58e54c[_0x29e84c]['item']['data'],_0x58e54c[_0x29e84c]['item']['getAttributes']()),_0x58e54c[_0x29e84c+0x1]&&'text'===_0x58e54c[_0x29e84c+0x1]['type']&&_0x1d45e2(_0x3f4d01,_0x58e54c[_0x29e84c+0x1]['item'])||(_0xc0bcf4[0x0]['_appendChild'](_0x3f4d01),_0x3f4d01=null),_0x3b441d[_0x3b441d['length']-0x1]+=_0x58e54c[_0x29e84c]['item']['offsetSize'],_0x58e54c[_0x29e84c]['nextPosition']=_0x253604['createPositionFromPath'](_0x245578,_0x3b441d));for(let _0x42e237=0x0;_0x42e237<_0x58e54c['length'];_0x42e237++){const _0x444296=_0x58e54c[_0x42e237]['previousPosition'],_0x4c6168=_0x58e54c[_0x42e237]['nextPosition'];for(const _0x721b12 of _0x58e54c[_0x42e237]['markersStart'])_0x57f08c['set'](_0x721b12,{'start':_0x444296,'end':null});_0x3e4c61('isRemoveSuggestion',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isAddSuggestion',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isRemoved',_0x42e237,_0x444296,_0x4c6168),_0x3e4c61('isAdded',_0x42e237,_0x444296,_0x4c6168);for(const _0x25e7c7 of _0x58e54c[_0x42e237]['markersEnd']){_0x57f08c['get'](_0x25e7c7)['end']=_0x4c6168;}}for(const [_0x22002a,_0xd3076]of _0x57f08c){const _0x61737d=this['editor']['model']['createRange'](_0xd3076['start'],_0xd3076['end']);_0x245578['markers']['set'](_0x22002a,_0x61737d);}return _0x3cf2b6['sort']((_0x1f5000,_0x5cec0f)=>{const _0x58fc9e=_0x245578['markers']['get']('revision:'+_0x1f5000['id']),_0x11c560=_0x245578['markers']['get']('revision:'+_0x5cec0f['id']);return _0x58fc9e['start']['isBefore'](_0x11c560['start'])?-0x1:_0x58fc9e['start']['isAfter'](_0x11c560['start'])?0x1:_0x58fc9e['end']['isBefore'](_0x11c560['end'])?-0x1:_0x58fc9e['end']['isAfter'](_0x11c560['end'])?0x1:'add'===_0x1f5000['type']?-0x1:0x1;}),{'root':_0x245578,'changes':_0x3cf2b6};function _0x3e4c61(_0x556565,_0x1ae5f8,_0x5bfbf1,_0x147c06){const _0x3b0157=!!_0x58e54c[_0x1ae5f8][_0x556565],_0x543ae8=_0x3b0157?_0x58e54c[_0x1ae5f8][_0x556565]['userId']:null,_0x41c344=_0x1ae5f8===_0x58e54c['length']-0x1,_0x5942e0=_0xe130a0[_0x556565][0x0],_0x6b4cdb=_0x5b9327['isObject'](_0x58e54c[_0x1ae5f8]['item']);!_0x405f44[_0x556565]&&_0x3b0157?_0x405f44[_0x556565]={'start':_0x5bfbf1,'tapeItem':_0x58e54c[_0x1ae5f8],'userId':_0x543ae8,'type':_0x556565}:_0x405f44[_0x556565]&&!_0x3b0157?(_0x405f44[_0x556565]['end']=_0x5bfbf1,_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]=null):_0x405f44[_0x556565]&&_0x3b0157&&_0x405f44[_0x556565]['userId']!==_0x543ae8&&(_0x405f44[_0x556565]['end']=_0x5bfbf1,_0x5942e0&&_0x5942e0['userId']===_0x405f44[_0x556565]['userId']||_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]={'start':_0x5bfbf1,'tapeItem':_0x58e54c[_0x1ae5f8],'userId':_0x543ae8,'type':_0x556565}),_0x405f44[_0x556565]&&_0x6b4cdb&&('elementStart'!==_0x58e54c[_0x1ae5f8]['type']||_0x5942e0&&_0x5942e0['userId']===_0x543ae8||_0xe130a0[_0x556565]['unshift']({'userId':_0x543ae8,'object':_0x58e54c[_0x1ae5f8]['item'],'change':_0x405f44[_0x556565]}),'elementEnd'===_0x58e54c[_0x1ae5f8]['type']&&_0x5942e0&&_0x5942e0['object']===_0x58e54c[_0x1ae5f8]['item']&&(_0xe130a0[_0x556565]['shift'](),_0x405f44[_0x556565]=_0x5942e0['change'])),_0x405f44[_0x556565]&&_0x41c344&&(_0x405f44[_0x556565]['end']=_0x147c06,_0x426661(_0x405f44[_0x556565]),_0x405f44[_0x556565]=null);}function _0x426661({start:_0x45b4db,end:_0x1db0b9,tapeItem:_0x5ce24c,userId:_0x1fb8d1,type:_0x37efb3}){const _0x4133c0=_0x5ce24c['item'],_0x130c94=_0x253604['schema']['isBlock'](_0x4133c0)&&!_0x253604['schema']['isLimit'](_0x4133c0),_0x2ffa50=_0x45b4db['nodeAfter']==_0x1db0b9['parent']&&_0x1db0b9['isAtStart'];if(_0x130c94&&_0x2ffa50)return;const _0x31138a=_0x253604['createRange'](_0x45b4db,_0x1db0b9),_0x5ce5ea=_0x536d73['get'](_0x1fb8d1),_0x5b80bd=new r({'author':_0x5ce5ea,'type':'isAdded'==_0x37efb3||'isAddSuggestion'==_0x37efb3?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x37efb3||'isRemoveSuggestion'==_0x37efb3},'createdAt':new Date(),'rootName':_0x53358d});_0x3cf2b6['push'](_0x5b80bd),_0x245578['markers']['set']('revision:'+_0x5b80bd['id'],_0x31138a);}function _0x1d45e2(_0x37347d,_0xafd87f){const _0x236141=_0x37347d['getAttributes'](),_0x320730=_0xafd87f['getAttributes']();for(const _0x4ec0b7 of _0x236141){if(_0x4ec0b7[0x1]!==_0xafd87f['getAttribute'](_0x4ec0b7[0x0]))return!0x1;_0x320730['next']();}return _0x320730['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x39a522=>{const _0xb0f6c3=_0x39a522['markerName']['split'](':')[0x1],_0x17f378=this['_getChangeFromId'](_0xb0f6c3);if(!_0x17f378)return null;const _0x4e3adc='add'==_0x17f378['type']?'insertion':'deletion',_0x330842=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4e3adc];return _0x17f378['data']['isSuggestion']&&_0x330842['push']('ck-suggestion-marker-'+_0x4e3adc+'-new'),this['activeChange']==_0x17f378&&_0x330842['push']('ck-suggestion-marker--active'),{'classes':_0x330842,'attributes':{'data-change-id':_0xb0f6c3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5bd32b=>{_0x5bd32b['on']('element:pre',(_0x58cb6c,_0x2de3f4,_0x5282c9)=>{const _0x37384f=_0x2de3f4['viewItem']['getChild'](0x0);if(!_0x37384f||!_0x37384f['is']('element','code'))return;if(!_0x5282c9['consumable']['consume'](_0x37384f,{'attributes':['vid_start','vid_end']}))return;const _0x446c94=_0x2de3f4['modelRange']['start']['nodeAfter'];_0x5282c9['writer']['setAttribute']('vid_start',_0x37384f['getAttribute']('vid_start'),_0x446c94),_0x5282c9['writer']['setAttribute']('vid_end',_0x37384f['getAttribute']('vid_end'),_0x446c94);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4d5c5c=>{_0x4d5c5c['on']('element',(_0x5d5515,_0x1610d3,_0x291ff9)=>{if(!_0x291ff9['consumable']['consume'](_0x1610d3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1610d3['modelRange']['isCollapsed'])return;const _0x5760e7=_0x1610d3['modelRange']['start']['nodeAfter'];_0x5760e7['hasAttribute']('vid_start')||_0x5760e7['hasAttribute']('vid')||(_0x291ff9['writer']['setAttribute']('vid_start',_0x1610d3['viewItem']['getAttribute']('vid_start'),_0x5760e7),_0x291ff9['writer']['setAttribute']('vid_end',_0x1610d3['viewItem']['getAttribute']('vid_end'),_0x5760e7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x39d945=>_0x39d945['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5bd54a,[,_0x5c05f7])=>{['vid_start','vid_end','vid']['includes'](_0x5c05f7)&&(_0x5bd54a['return']=!0x0,_0x5bd54a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x315795=>{_0x315795['on']('attribute:vid',(_0x5a06dc,_0xc5a209,_0x2fa4f3)=>{if('\x20'!=_0xc5a209['item']['data']||_0xc5a209['item']['parent']['maxOffset']>0x1)return;if(!_0x2fa4f3['consumable']['consume'](_0xc5a209['item'],_0x5a06dc['name']))return;const _0x2a69d0=_0x2fa4f3['writer'],_0x4cf14f=_0x2fa4f3['mapper']['toViewRange'](_0xc5a209['range']);_0x2a69d0['wrap'](_0x4cf14f,_0x2a69d0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x401861){const _0x3d02bd=_0x401861['plugins']['get']('RevisionViewer');return(_0x118d13,_0x59df22,_0x417922)=>{const _0x27335b=_0x59df22['markerName']['split'](':')[0x1],_0x41509b=_0x3d02bd['_getChangeFromId'](_0x27335b);if(!_0x41509b)return null;const _0x3e6738='add'==_0x41509b['type']?'split':'merge';if(!_0x417922['consumable']['test'](_0x59df22['markerRange'],_0x118d13['name']))return;const _0x569158=_0x59df22['markerRange']['getWalker'](),_0x4221e0=_0x59df22['markerRange']['start'],_0x216768=_0x401861['model']['schema'];let _0x338518=null,_0x382885=null,_0x54c2f9=!0x1,_0x29ae58=!0x1;for(const _0xdeea49 of _0x569158){const _0x283218=_0xdeea49['item'];_0x54c2f9=_0x54c2f9||_0x216768['isContent'](_0x283218);const _0x1896d4=_0x417922['mapper']['toViewElement'](_0x283218);if(_0x1896d4&&_0x1896d4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdeea49['type']&&(_0x216768['isBlock'](_0x283218)&&!_0x216768['isLimit'](_0x283218)&&(_0x283218['nextSibling']||_0x4221e0['isAtEnd']?_0x338518&&_0x338518['parent']==_0x283218||(_0x338518=_0x283218,_0x50504b(_0xdeea49['previousPosition']),_0x29ae58=!0x0):_0x382885=_0x382885||_0xdeea49['previousPosition']));}function _0x50504b(_0x35d719){const _0x136708=_0x417922['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e6738}),_0x4c3c38=_0x417922['mapper']['toViewPosition'](_0x35d719);_0x41509b['data']['isSuggestion']&&_0x417922['writer']['addClass']('ck-suggestion-marker-'+_0x3e6738+'-new',_0x136708),_0x3d02bd['activeChange']==_0x41509b&&_0x417922['writer']['addClass']('ck-suggestion-marker--active',_0x136708),_0x417922['writer']['insert'](_0x4c3c38,_0x136708),_0x417922['mapper']['bindElementToMarker'](_0x136708,_0x59df22['markerName']);}_0x54c2f9||_0x29ae58||!_0x382885||_0x50504b(_0x382885);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x359f64,_0x5dde7f,_0x250fbc)=>{const _0xd5a86c=_0x250fbc['mapper']['markerNameToElements'](_0x5dde7f['markerName']);if(_0xd5a86c){for(const _0x30814e of _0xd5a86c)(_0x30814e['hasClass']('ck-suggestion-marker-split')||_0x30814e['hasClass']('ck-suggestion-marker-merge'))&&(_0x250fbc['mapper']['unbindElementFromMarkerName'](_0x30814e,_0x5dde7f['markerName']),_0x250fbc['writer']['remove'](_0x30814e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x105972,_0xc68bcd,_0x385b32)=>{const _0x43fc47=_0xc68bcd['markerName']['split'](':')[0x1],_0x1a4195=this['_getChangeFromId'](_0x43fc47);if(!_0x1a4195)return null;const _0x5a121e='add'==_0x1a4195['type']?'split':'merge';if(_0x385b32['consumable']['test'](_0xc68bcd['markerRange'],_0x105972['name']))for(const _0x5c06c6 of _0xc68bcd['markerRange']['getItems']()){if(!_0x5c06c6['is']('element','softBreak'))continue;const _0x291374=_0x385b32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5a121e}),_0x541ba1=_0x385b32['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5c06c6));_0x1a4195['data']['isSuggestion']&&_0x385b32['writer']['addClass']('ck-suggestion-marker-'+_0x5a121e+'-new',_0x291374),this['activeChange']==_0x1a4195&&_0x385b32['writer']['addClass']('ck-suggestion-marker--active',_0x291374),_0x385b32['writer']['insert'](_0x541ba1,_0x291374),_0x385b32['mapper']['bindElementToMarker'](_0x291374,_0xc68bcd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x215d77=>{for(const _0x253b06 of this['editor']['model']['document']['getRootNames']()){const _0x1af5dc=this['editor']['model']['document']['getRoot'](_0x253b06),_0x54babf=this['editor']['editing']['view']['document']['getRoot'](_0x253b06);if(_0x54babf){const _0x4afa69=_0x1af5dc['getAttribute']('revisionHistoryAttachChange');if(_0x215d77['removeAttribute']('data-change-id',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root-add',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root-remove',_0x54babf),_0x215d77['removeClass']('ck-revision-history-root--active',_0x54babf),_0x4afa69){const _0x228844=this['_getChangeFromId'](_0x4afa69);if(!_0x228844)return null;_0x215d77['setAttribute']('data-change-id',_0x4afa69,_0x54babf),_0x215d77['addClass']('ck-revision-history-root-'+_0x228844['type'],_0x54babf),this['activeChange']==_0x228844&&_0x215d77['addClass']('ck-revision-history-root--active',_0x54babf);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x39aeba=>'revision-comment:'+_0x39aeba,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x517bd1=>'revision-suggestion:'+_0x517bd1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x435fb2=>({'name':'suggestion:'+_0x435fb2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3076b5=>{const _0xcbf2dc=_0x3076b5['markerName']['split'](':')[0x1];return'insertion'!=_0xcbf2dc&&'deletion'!=_0xcbf2dc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xcbf2dc]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1277ca,_0x144d90,_0x11b631)=>{const _0x16e0ed=_0x11b631['mapper']['markerNameToElements'](_0x144d90['markerName']);if(_0x16e0ed){for(const _0x1e9c2e of _0x16e0ed)_0x1e9c2e['is']('uiElement')&&(_0x11b631['mapper']['unbindElementFromMarkerName'](_0x1e9c2e,_0x144d90['markerName']),_0x11b631['writer']['remove'](_0x1e9c2e));}},{'priority':'high'});}['_getChangeFromId'](_0x4e6416){return this['_changeIdToChange']['get'](_0x4e6416);}['_getViewForChange'](_0x15b4ef){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x15b4ef),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x317002,_0x3a178e,_0x51bc9c,_0x45de4e)=>{_0x45de4e&&this['_balloon']['remove'](_0x45de4e),_0x51bc9c&&(this['_balloon']['add']({'view':_0x51bc9c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3ce6b8=this['editor']['editing'],_0x34f5ba=this['_getChangeFromId'](_0x51bc9c['changeId']);let _0x2002c6;if(_0x34f5ba['data']['isOnRoot']){const _0x132a5d=_0x3ce6b8['view']['getDomRoot'](_0x34f5ba['rootName']);_0x2002c6=Array['from'](_0x132a5d['getClientRects']());}else{const _0x3aefb0=this['editor']['model']['markers']['get']('revision:'+_0x51bc9c['changeId']);_0x2002c6=Array['from'](_0x3ce6b8['mapper']['markerNameToElements'](_0x3aefb0['name']))['map'](_0x115456=>_0x3ce6b8['view']['domConverter']['mapViewToDom'](_0x115456))['map'](_0x339c2e=>Array['from'](_0x339c2e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2002c6[0x0];return _0x2002c6['find'](_0x5bcfe9=>_0x5bcfe9['top']-0x3<=this['_activeViewTarget']['y']&&_0x5bcfe9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5bcfe9['left']-0x3<=this['_activeViewTarget']['x']&&_0x5bcfe9['right']+0x3>=this['_activeViewTarget']['x'])||_0x2002c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3d04eb,_0xf01317,_0x34d0fa,_0x3fb023)=>{this['activeView']=_0x34d0fa?this['_getViewForChange'](_0x34d0fa):null,this['editor']['model']['change'](()=>{const _0x9820b8=this['editor']['editing'];_0x3fb023&&(_0x3fb023['data']['isOnRoot']?_0x9820b8['view']['change'](_0x52474f=>{_0x52474f['removeClass']('ck-revision-history-root--active',_0x9820b8['view']['document']['getRoot'](_0x3fb023['rootName']));}):_0x9820b8['reconvertMarker']('revision:'+_0x3fb023['id'])),_0x34d0fa&&(_0x34d0fa['data']['isOnRoot']?_0x9820b8['view']['change'](_0x72f372=>{_0x72f372['addClass']('ck-revision-history-root--active',_0x9820b8['view']['document']['getRoot'](_0x34d0fa['rootName']));}):_0x9820b8['reconvertMarker']('revision:'+_0x34d0fa['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xc6f2de,_0x3ef779)=>{if(this['activeChange'])return;const _0xd5b868=this['_findChangeIdFromDomTarget'](_0x3ef779['target']),_0x5a12c8=this['_changeIdToChange']['get'](_0xd5b868);_0x5a12c8?(this['_activeViewTarget']={'x':_0x3ef779['domEvent']['x'],'y':_0x3ef779['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5a12c8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2407cb,_0x25f07b)=>{const _0x7aec8c=this['_findChangeIdFromDomTarget'](_0x25f07b['target']),_0x5f2f2b=this['_changeIdToChange']['get'](_0x7aec8c);_0x5f2f2b?(this['_activeViewTarget']={'x':_0x25f07b['domEvent']['x'],'y':_0x25f07b['domEvent']['y']},_0x5f2f2b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5f2f2b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x572a8c){do{const _0x57fa83=_0x572a8c['getAttribute']('data-change-id');if(_0x57fa83)return _0x57fa83;_0x572a8c=_0x572a8c['parent'];}while(_0x572a8c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x42661f=>{for(const _0x586e5a of this['editor']['model']['markers'])_0x42661f['removeMarker'](_0x586e5a);});}}function tt(_0x1f47fb,_0x53d4d9){return(_0x2e2b61,_0x1b0714,_0x31b007)=>{if(!_0x31b007['consumable']['test'](_0x1b0714['markerRange'],_0x2e2b61['name']))return;const _0x5b2b22=_0x1b0714['markerRange']['getWalker'](),_0xa06657=_0x1b0714['markerRange']['start'],_0x56fb0c=_0x1f47fb['model']['schema'];let _0x4a4a3b=null,_0x32b52a=null,_0x810710=!0x1,_0x3a3e2e=!0x1;for(const _0x303aec of _0x5b2b22){const _0xce9e63=_0x303aec['item'];_0x810710=_0x810710||_0x56fb0c['isContent'](_0xce9e63);const _0x2d462d=_0x31b007['mapper']['toViewElement'](_0xce9e63);if(_0x2d462d&&_0x2d462d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x303aec['type']&&(_0x56fb0c['isBlock'](_0xce9e63)&&!_0x56fb0c['isLimit'](_0xce9e63)&&(_0xce9e63['nextSibling']||_0xa06657['isAtEnd']?_0x4a4a3b&&_0x4a4a3b['parent']==_0xce9e63||(_0x4a4a3b=_0xce9e63,_0x4c99b1(_0x303aec['previousPosition']),_0x3a3e2e=!0x0):_0x32b52a=_0x32b52a||_0x303aec['previousPosition']));}function _0x4c99b1(_0x3b943e){const _0xec5ae=_0x31b007['mapper']['toViewPosition'](_0x3b943e),_0x15743d=_0x31b007['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x53d4d9});_0x31b007['writer']['insert'](_0xec5ae,_0x15743d),_0x31b007['mapper']['bindElementToMarker'](_0x15743d,_0x1b0714['markerName']);}_0x810710||_0x3a3e2e||!_0x32b52a||_0x4c99b1(_0x32b52a);};}class _t extends _0x4faceb{constructor(_0x2bbe66){super(_0x2bbe66);const _0x1db6e4=_0x2bbe66['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1db6e4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1db6e4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x44ce3c=this['editor'],_0x47ac27=_0x44ce3c['plugins']['get'](d),_0x2988a2=_0x47ac27['isReady']?_0x47ac27['diff']['newRevisionId']:null;_0x44ce3c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2988a2);}['refresh'](){const {isReady:_0x5b59b2,isEnabled:_0x34468f,repository:_0x38cd70,diff:_0x47ad50}=this['editor']['plugins']['get'](d),_0x361069=_0x47ad50&&_0x38cd70['getLaterVisibleRevision'](_0x47ad50['newRevisionId']);this['isEnabled']=_0x5b59b2&&_0x34468f&&Boolean(_0x361069);}}class yt extends _0x4faceb{['_step'];constructor(_0x41a762,{direction:_0x5b85dc}){super(_0x41a762);const _0x3b8a7f=_0x41a762['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5b85dc?0x1:-0x1,this['listenTo'](_0x3b8a7f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3b8a7f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3b8a7f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1e9679=this['editor'],_0x2b3dbd=_0x1e9679['plugins']['get'](d),{isNavigationMode:_0x4066ab,currentChangeNumber:_0x10da1e}=_0x2b3dbd;let _0x5e09d9;if(_0x2b3dbd['activeChange']=_0x4066ab?_0x2b3dbd['diff']['changes']['get'](_0x10da1e+this['_step']):_0x2b3dbd['diff']['changes']['first'],_0x2b3dbd['activeChange']['data']['isOnRoot'])_0x5e09d9=_0x1e9679['editing']['view']['getDomRoot'](_0x2b3dbd['activeChange']['rootName']);else{const _0x5bcc1b=_0x1e9679['model']['markers']['get']('revision:'+_0x2b3dbd['activeChange']['id']);_0x5e09d9=_0x415cb4(_0x1e9679['editing'],_0x5bcc1b);}_0x28cd2e({'target':_0x5e09d9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x8f65bd,currentChangeNumber:_0x4e5861,numberOfChanges:_0x2efdee,isReady:_0x48d48f,isEnabled:_0x47059a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x47059a&&_0x48d48f&&_0x2efdee)&&(!_0x8f65bd||(0x1===this['_step']?_0x4e5861<_0x2efdee-0x1:_0x4e5861>0x0));}}class li extends ts{constructor(_0x3eab51){super(_0x3eab51);const _0x3cc218=this['bindTemplate'],_0x36bbb1=new te(_0x3eab51),_0x152c86=new te(_0x3eab51);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',(_0x1e972c,_0x1f94ae)=>_0x1e972c&&_0x1f94ae>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x6a30fa,_0x59cc36,_0x209136,_0x38cdd3)=>{if(!_0x6a30fa)return R(_0x3eab51,'Loading...');if(!_0x209136)return R(_0x3eab51,'No\x20changes');const _0x2574a5=R(_0x3eab51,'NUMBER_OF_CHANGES',_0x209136);return _0x38cdd3?R(_0x3eab51,'X_OF_Y_CHANGES',[_0x59cc36+0x1,_0x209136]):_0x2574a5;}),_0x36bbb1['set']({'label':R(_0x3eab51,'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'}),_0x152c86['set']({'label':R(_0x3eab51,'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'}),_0x36bbb1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x152c86['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x36bbb1['on']('execute',()=>this['fire']('execute','backward')),_0x152c86['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',_0x3cc218['if']('_isStatusLabelVisible','ck-hidden',_0x2890c3=>!_0x2890c3)]},'children':[{'text':_0x3cc218['to']('isNavigationMode',_0x1d243e=>_0x1d243e?R(_0x3eab51,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3eab51,'Total')+':\x20')}]},{'text':_0x3cc218['to']('_statusText')}]},new _0x54463f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x36bbb1,_0x152c86]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x1c98c7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2f7aa1=this['editor']['editing']['view'];_0x2f7aa1['change'](_0x53bd6e=>{for(const _0x4e1da7 of _0x2f7aa1['document']['roots'])_0x53bd6e['addClass'](le,_0x4e1da7);});}['hide'](){const _0x32c9f9=this['editor']['editing']['view'];_0x32c9f9['change'](_0x3e707e=>{for(const _0x5383db of _0x32c9f9['document']['roots'])_0x3e707e['removeClass'](le,_0x5383db);});}}class m extends _0x1c98c7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x38f2a3=this['editor'],_0x39e8da=_0x38f2a3['plugins']['get'](d),_0x55a6a3=_0x38f2a3['plugins']['get'](ge);_0x38f2a3['ui']['componentFactory']['add']('exitToEditing',_0x5cb0f4=>{const _0x3e434c=new te(_0x5cb0f4);return _0x3e434c['set']({'label':R(_0x5cb0f4,'Back\x20to\x20editing'),'icon':_0x14c866['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3e434c,'execute',()=>{_0x38f2a3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3e434c;}),_0x38f2a3['ui']['componentFactory']['add']('restoreRevision',_0x3cbe30=>{const _0xd91328=new te(_0x3cbe30);return _0xd91328['set']({'label':R(_0x3cbe30,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xd91328['bind']('isEnabled')['to'](_0x38f2a3['commands']['get']('restoreRevision')),this['listenTo'](_0xd91328,'execute',()=>_0x38f2a3['execute']('restoreRevision')),_0xd91328;}),_0x38f2a3['ui']['componentFactory']['add']('changesNavigation',_0x434e16=>{const _0x386e57=new li(_0x434e16),_0x1f6d1d=_0x38f2a3['commands']['get']('showPreviousChange'),_0x20ca66=_0x38f2a3['commands']['get']('showNextChange');return _0x386e57['bind']('isBackwardNavigationEnabled')['to'](_0x1f6d1d,'isEnabled'),_0x386e57['bind']('isForwardNavigationEnabled')['to'](_0x20ca66,'isEnabled'),_0x386e57['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39e8da),this['listenTo'](_0x386e57,'execute',(_0x1e8490,_0x40fdc)=>{_0x38f2a3['execute']('forward'===_0x40fdc?'showNextChange':'showPreviousChange');}),_0x386e57;}),_0x55a6a3['show'](),_0x39e8da['on']('change:isReady',(_0x576b0f,_0x16c2bd,_0xf58f5d)=>{_0xf58f5d?_0x55a6a3['hide']():_0x55a6a3['show']();});}}class pt extends _0x3f921c{['_resizeObserver']=null;constructor(_0x4a3020,_0x34fed1){super(_0x4a3020,_0x34fed1);const _0x246d84=this['bindTemplate'];this['set']({'label':R(_0x4a3020,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4a3020,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x246d84['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 _0x10b986=this['fieldView']['element'];this['_tooltipString']=_0x10b986['scrollWidth']>_0x10b986['clientWidth']&&_0x10b986['value']||'';}}class ri extends ts{constructor(_0x2a3fcb,_0x28669f,_0x378f47){super(_0x2a3fcb);const _0xc5ce24=new _0x825bd1();_0xc5ce24['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 _0x2b91fe=['ck','ck-revision-history-sidebar__revision-author'];_0x378f47&&_0x2b91fe['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3fae3e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2a3fcb,_0x378f47?'Revision\x20creator':'Revision\x20author')},'children':[_0xc5ce24,_0x28669f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2b91fe},'children':_0x3fae3e});}}function oi(_0x23e21d,_0x3dba61){const _0x1b1bc6=_0x23e21d['bindTemplate'],_0x5863c8=_0x23e21d['locale'],_0x56dab8=_0x547500(_0x5863c8);_0x56dab8['panelPosition']='sw';const _0x294a8a=function(_0x1e66e5,_0x2e7316){const _0x335fce=function(_0xdcc638,_0x1de993){const _0x2b3b95=_0xdcc638['locale'],_0xca59d1={'Compare\x20against\x20selected':R(_0x2b3b95,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2b3b95,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2b3b95,'Restore\x20this\x20revision')};return _0x1de993['map'](_0x362af0=>{const _0x1f9946=_0xca59d1[_0x362af0['name']];return _0x1f9946&&_0x1f9946!==_0x362af0['name']&&(_0x362af0['name']=_0x1f9946),_0x362af0;});}(_0x1e66e5,_0x2e7316),_0x575dc4=new _0x3fda2b();for(const _0x469bd5 of _0x335fce){const _0x236241={'type':'button','model':new _0x4c462f({'label':_0x469bd5['name'],'class':_0x469bd5['class'],'withText':!0x0,'role':'menuitem','_action':_0x469bd5['action']})};_0x236241['model']['bind']('isEnabled')['to'](_0x1e66e5,'isActionsDropdownOpen',_0x59ee81=>'function'!=typeof _0x469bd5['isEnabled']||(!_0x59ee81||_0x469bd5['isEnabled'](_0x1e66e5))),_0x575dc4['add'](_0x236241);}return _0x575dc4;}(_0x23e21d,_0x3dba61);return _0x23e21d['bind']('isActionsDropdownOpen')['to'](_0x56dab8,'isOpen'),_0x56dab8['buttonView']['set']({'label':R(_0x5863c8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x14c866['threeVerticalDots']}),_0x56dab8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b1bc6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b1bc6['to'](_0x43a8f2=>_0x43a8f2['stopPropagation']())}}),_0x56dab8['on']('execute',_0x5ab11a=>{_0x23e21d['isReady']&&'function'==typeof _0x5ab11a['source']['_action']&&_0x5ab11a['source']['_action'](_0x23e21d);}),to(_0x56dab8,_0x294a8a,{'role':'menu'}),_0x56dab8['listenTo'](_0x23e21d,'change:isActionsDropdownOpen',(_0x6401f7,_0x4b4699,_0x4e7b1f)=>{if(_0x4e7b1f)for(const _0x47c70d of _0x56dab8['listView']['items']){const _0x5a4c30=_0x47c70d['children']['first'],_0x358341=_0x3dba61['find'](_0x20a9de=>_0x20a9de['action']===_0x5a4c30['_action'])['isVisible'];_0x47c70d['isVisible']=void 0x0===_0x358341||_0x358341(_0x23e21d);}}),_0x56dab8;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x42fc44,uid as _0x45c6ed,Collection as _0xc46275,logWarning as _0x1f749e,FocusTracker as _0x426056,KeystrokeHandler as _0x5bb513,scrollViewportToShowTarget as _0x1c6bfe,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x2e7d78}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1fbbd4,set as _0x21c1f9,unset as _0x329f06,isEqual as _0x217429}from'lodash-es';import{Plugin as _0x5a5f64,PendingActions as _0xa8dbbf,icons as _0x2b22d2,Command as _0x455b3a,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x13a039,getMarkerDomElement as _0x494947,ConfirmMixin as _0x3151ef,sanitizeEditorConfig as _0x23d80d}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x29157b,ViewText as _0x580579,ViewElement as _0x9fe0f9,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x34a5a1,ViewAttributeElement as _0x598c3e,ViewEmptyElement as _0x29e244,ViewRawElement as _0x38a7d8,ViewUIElement as _0x196df5,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x59c2ca,injectCssTransitionDisabler as ts,submitHandler as _0x2b7941,LabeledFieldView as at,createLabeledInputText as _0x2931d8,createDropdown as _0x40e817,ListView as _0xab325d,ListItemView as te,ButtonView as _0x3b013d,MenuBarMenuView as _0x8cd669,MenuBarMenuListView as _0x3181c6,MenuBarMenuListItemView as _0x41624a,MenuBarMenuListItemButtonView as _0x58d60f,ContextualBalloon as _0xc8f96d,ToolbarSeparatorView as _0x491304,IconView as _0x58f379,addListToDropdown as _0x1d8c31,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3dbd8b}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x42fc44(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x561b95){super(),this['id']=_0x561b95['id']||_0x45c6ed(),this['creator']=_0x561b95['creator']||null,this['authors']=_0x561b95['authors']||[],this['diffData']=_0x561b95['diffData']||null,this['toVersion']=_0x561b95['toVersion']||0x0,this['fromVersion']=_0x561b95['fromVersion']||0x0,this['set']('name',_0x561b95['name']||''),this['set']('createdAt',_0x561b95['createdAt']||new Date()),this['set']('attributes',_0x561b95['attributes']||{});}['setName'](_0x3a5a05){this['_update']({'name':_0x3a5a05});}['setAttribute'](_0x2f5ce8,_0x199828){const _0x7f20e2=_0x1fbbd4(this['attributes']);_0x21c1f9(_0x7f20e2,_0x2f5ce8,_0x199828),this['_update']({'attributes':_0x7f20e2});}['removeAttribute'](_0x5c17a1){const _0x4dcc39=_0x1fbbd4(this['attributes']);_0x329f06(_0x4dcc39,_0x5c17a1),this['_update']({'attributes':_0x4dcc39});}['_update'](_0x12434f,_0x45ca45=!0x1){let _0x34d2b8=!0x1;const _0xa2324c={'id':this['id']},_0x52729d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5c1627 of _0x52729d){const _0x3cdd51=_0x12434f[_0x5c1627];void 0x0!==_0x3cdd51&&_0x3cdd51!==this[_0x5c1627]&&(this[_0x5c1627]=_0x3cdd51,_0xa2324c[_0x5c1627]=_0x3cdd51,_0x34d2b8=!0x0);}_0x34d2b8&&(_0xa2324c['authors']&&(_0xa2324c['authorsIds']=_0xa2324c['authors']['map'](_0x443358=>_0x443358['id']),delete _0xa2324c['authors']),this['fire']('_update',_0xa2324c,_0x45ca45));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3c6ec6=>_0x3c6ec6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5a5f64{['_revisions'];static get['requires'](){return[_0x13a039];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3c5b43){super(_0x3c5b43),this['_revisions']=new _0xc46275();}['afterInit'](){!async function(_0x1faa03){const _0x2b232b=_0xff6763([0x58,0x48,0x56,0x71,0x6a,0x4d,0x49,0x4a,0x6f,0x44,0x33,0x76,0x42,0x61,0x52,0x55,0x30,0x57,0x47,0x66,0x74,0x68,0x73,0x43,0x75,0x4c,0x39,0x72,0x69,0x54,0x53,0x4f,0x45,0x4e,0x4b,0x6e,0x77,0x35,0x6c,0x64,0x46,0x62,0x78,0x65,0x50,0x51,0x6d,0x37,0x63,0x70,0x31,0x34,0x36,0x38,0x6b,0x41,0x5a,0x79,0x67,0x32,0x7a,0x59]),_0x1a0697=0xeb829,_0x1620a8=0x45322756,_0x180ae9=0x45357efe^_0x1620a8,_0x2ea1b9=window[_0xff6763([0x44,0x61,0x74,0x65])][_0xff6763([0x6e,0x6f,0x77])](),_0x971275=_0x1faa03[_0xff6763([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b8527=new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f14c=>{_0x971275[_0xff6763([0x6f,0x6e,0x63,0x65])](_0xff6763([0x72,0x65,0x61,0x64,0x79]),_0x57f14c);}),_0x421329={[_0xff6763([0x6b,0x74,0x79])]:_0xff6763([0x45,0x43]),[_0xff6763([0x75,0x73,0x65])]:_0xff6763([0x73,0x69,0x67]),[_0xff6763([0x63,0x72,0x76])]:_0xff6763([0x50,0x2d,0x32,0x35,0x36]),[_0xff6763([0x78])]:_0xff6763([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]),[_0xff6763([0x79])]:_0xff6763([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]),[_0xff6763([0x61,0x6c,0x67])]:_0xff6763([0x45,0x53,0x32,0x35,0x36])},_0x4ba9d9=_0x971275[_0xff6763([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xff6763([0x67,0x65,0x74])](_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3db0b(){let _0x50a944,_0x42e224=null,_0x149014=null;try{if(_0x4ba9d9==_0xff6763([0x47,0x50,0x4c]))return _0xff6763([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50a944=_0x32582a(),!_0x50a944)return _0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50a944[_0xff6763([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x149014=_0x4aa9cb(_0x50a944[_0xff6763([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50a944[_0xff6763([0x6a,0x74,0x69])])),await _0x52e8ff()?_0x3e5ddb()?_0x493696()?_0xff6763([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50e7e1()?(_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42e224=_0x176998(_0xff6763([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x74,0x72,0x69,0x61,0x6c])&&(_0x42e224=_0x176998(_0xff6763([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x42e224=_0x176998(_0xff6763([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51aed2()):_0xff6763([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xff6763([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54001b){return _0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x493696(){const _0x2069d2=[_0xff6763([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xff6763([0x74,0x72,0x69,0x61,0x6c])][_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ea1b9/0x3e8:0xe10*_0x180ae9;return _0x50a944[_0xff6763([0x65,0x78,0x70])]<_0x2069d2;}function _0x3e5ddb(){const _0x1b8baf=_0x50a944[_0xff6763([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1b8baf)return!0x1;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x2a])))return!0x0;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x52,0x48])))return!0x0;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x52,0x52,0x48]))){if(_0x5f1e4f())return!0x0;if(_0x4d1d2f()||_0x272dd8())return!0x0;}return!0x1;}function _0x50e7e1(){const _0x5e07c9=_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e07c9||0x0==_0x5e07c9[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53db5b}=new URL(window[_0xff6763([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e07c9[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db5b))return!0x0;const _0x1fb7f4=_0x53db5b[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e]));return _0x5e07c9[_0xff6763([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x150c5b=>_0x150c5b[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x2a])))[_0xff6763([0x6d,0x61,0x70])](_0x3dd03c=>_0x3dd03c[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e])))[_0xff6763([0x73,0x6f,0x6d,0x65])](_0x1b996d=>_0x1fb7f4[_0xff6763([0x65,0x76,0x65,0x72,0x79])]((_0x182e03,_0x36c5e5)=>_0x1b996d[_0x36c5e5]===_0x182e03||_0x1b996d[_0x36c5e5]===_0xff6763([0x2a])));}function _0x51aed2(){return _0x42e224&&_0x149014?new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48a268,_0x347052)=>{_0x42e224[_0xff6763([0x74,0x68,0x65,0x6e])](_0x48a268,_0x347052),_0x149014[_0xff6763([0x74,0x68,0x65,0x6e])](_0x3f1e56=>{_0x3f1e56!=_0xff6763([0x56,0x61,0x6c,0x69,0x64])&&_0x48a268(_0x3f1e56);},_0x347052);}):_0x42e224||_0x149014||_0xff6763([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4aa9cb(_0x3f27d0,_0x37cc69){return new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48c950=>{if(_0x18c7e5())return _0x48c950(_0xff6763([0x56,0x61,0x6c,0x69,0x64]));_0x1bfdf1(),_0x971275[_0xff6763([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b3168=!0x1;const _0x4c2e48=_0x45c6ed();function _0x3e4fcd(_0x404afd){return!!_0x404afd&&(typeof _0x404afd===_0xff6763([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x404afd===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x404afd[_0xff6763([0x74,0x68,0x65,0x6e])]===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x404afd[_0xff6763([0x63,0x61,0x74,0x63,0x68])]===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdfaecc(_0x51685d){_0x597dc5(_0x51685d)[_0xff6763([0x74,0x68,0x65,0x6e])](_0x58484d=>{if(!_0x58484d||_0x58484d[_0xff6763([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xff6763([0x6f,0x6b]))return _0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x541f84(_0x71f6c5(_0x4c2e48+_0x37cc69))!=_0x58484d[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xff6763([0x56,0x61,0x6c,0x69,0x64]);})[_0xff6763([0x74,0x68,0x65,0x6e])](_0x544739=>(_0x23a44b(),_0x544739),()=>{const _0x55dbdf=_0x3d4fdc();return null==_0x55dbdf?(_0x23a44b(),_0xff6763([0x56,0x61,0x6c,0x69,0x64])):_0xff6763(_0x2ea1b9-_0x55dbdf>(0x613ea356^_0x1620a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xff6763([0x74,0x68,0x65,0x6e])](_0x48c950)[_0xff6763([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3fd6de=0x4504c9d6^_0x1620a8;function _0x23a44b(){const _0x22566c=_0xff6763([0x6c,0x6c,0x63,0x74,0x2d])+_0x541f84(_0x71f6c5(_0x3f27d0)),_0x3466dc=_0x3dc24c(_0x541f84(window[_0xff6763([0x4d,0x61,0x74,0x68])][_0xff6763([0x63,0x65,0x69,0x6c])](_0x2ea1b9/_0x3fd6de)));window[_0xff6763([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xff6763([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22566c,_0x3466dc);}function _0x3d4fdc(){const _0x1c2369=_0xff6763([0x6c,0x6c,0x63,0x74,0x2d])+_0x541f84(_0x71f6c5(_0x3f27d0)),_0x1ebdcb=window[_0xff6763([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xff6763([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c2369);return _0x1ebdcb?window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dc24c(_0x1ebdcb),0x10)*_0x3fd6de:null;}function _0x597dc5(_0x2a53e7){return new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x278de8,_0x4b9c67)=>{_0x2a53e7[_0xff6763([0x74,0x68,0x65,0x6e])](_0x278de8,_0x4b9c67),window[_0xff6763([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b9c67,0x4533f396^_0x1620a8);});}}_0x971275[_0xff6763([0x6f,0x6e])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54dfdd,_0x50edfa)=>{if(_0x50edfa[0x0]!=_0x3f27d0)return _0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50edfa[0x1]={..._0x50edfa[0x1],[_0xff6763([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c2e48};},{[_0xff6763([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xff6763([0x68,0x69,0x67,0x68])}),_0x971275[_0xff6763([0x6f,0x6e])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498451=>{_0x3e4fcd(_0x498451[_0xff6763([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b3168=!0x0,_0xdfaecc(_0x498451[_0xff6763([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xff6763([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xff6763([0x6c,0x6f,0x77])}),_0x4b8527[_0xff6763([0x74,0x68,0x65,0x6e])](()=>{_0x4b3168||_0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18c7e5(){return _0x971275[_0xff6763([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xff6763([0x76,0x69,0x65,0x77])][_0xff6763([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xff6763([0x61,0x75,0x74,0x6f]);}function _0x1bfdf1(){_0x971275[_0xff6763([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xff6763([0x76,0x69,0x65,0x77])][_0xff6763([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xff6763([0x61,0x75,0x74,0x6f]);}}function _0x176998(_0x2e2e97){const _0x5376eb=[new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165a18=>setTimeout(_0x165a18,0x453b199a^_0x1620a8)),_0x4b8527[_0xff6763([0x74,0x68,0x65,0x6e])](()=>new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23e2bf=>{const _0x27f565=0x45322751^_0x1620a8,_0x259727=_0x1faa03[_0xff6763([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xf5bc4e(){_0x259727[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x27f565&&_0x23e2bf();}_0xf5bc4e(),_0x259727[_0xff6763([0x6f,0x6e])](_0xff6763([0x61,0x64,0x64]),_0xf5bc4e);})),new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11f535=>{function _0x1aff21(){for(const _0x43b4bb in window)if(window[_0xff6763([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xff6763([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x43b4bb))&&window[_0x43b4bb]==_0x1a0697)return _0x11f535();_0x971275[_0xff6763([0x73,0x74,0x61,0x74,0x65])]!=_0xff6763([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xff6763([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1aff21,0x453234de^_0x1620a8);}_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1aff21();})];return window[_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xff6763([0x72,0x61,0x63,0x65])](_0x5376eb)[_0xff6763([0x74,0x68,0x65,0x6e])](()=>_0x2e2e97);}async function _0x156ddc(){if(await _0x4b8527,_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b24de=_0x1faa03[_0xff6763([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1f1c55=_0x1faa03[_0xff6763([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])](_0x1b24de[_0xff6763([0x69,0x64])]),_0x34d327=_0x15dd98(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x34d327[_0xff6763([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b24de['id'],_0x1f1c55?_0x1f1c55['id']:null,!0x0),_0x34d327[_0xff6763([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x34d327[_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x34d327[_0xff6763([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4925c9,void(_0x34d327[_0xff6763([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4925c9);}if(_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1ae611=_0x15dd98(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1ae611[_0xff6763([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1ae611[_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1ae611[_0xff6763([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4925c9,_0x1ae611[_0xff6763([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4925c9;}_0x971275[_0xff6763([0x6d,0x6f,0x64,0x65,0x6c])][_0xff6763([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4925c9,_0x971275[_0xff6763([0x6d,0x6f,0x64,0x65,0x6c])][_0xff6763([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4925c9,_0x971275[_0xff6763([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xff6763([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f1e4f(){return _0x27be7a(_0xff6763([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x15dd98(_0xff6763([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xff6763([0x73,0x74,0x61,0x74,0x65])]==_0xff6763([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d1d2f(){return _0x27be7a(_0xff6763([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 _0x272dd8(){return _0x27be7a(_0xff6763([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x18d08f(_0x44143d){const _0x44b5f1=_0x4d6562();_0x971275[_0x44b5f1]=_0xff6763([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])+_0x44143d,_0x44143d[_0xff6763([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xff6763([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4d6562()]=_0x1a0697),_0x44143d!=_0xff6763([0x56,0x61,0x6c,0x69,0x64])&&_0x156ddc();}function _0x4d6562(){const _0x51eb30=window[_0xff6763([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xff6763([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xff6763([0x6e,0x6f,0x77])]())[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xff6763([0x2e]),'');let _0x4b3122=_0xff6763([0x58]);for(let _0x47c4d5=0x0;_0x47c4d5<_0x51eb30[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47c4d5+=0x2){let _0x27ad52=window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51eb30[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47c4d5,_0x47c4d5+0x2));_0x27ad52>=_0x2b232b[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27ad52-=_0x2b232b[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b3122+=_0x2b232b[_0x27ad52];}return _0x4b3122;}function _0x32582a(){const _0x59f4a8=_0x4ba9d9[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e]));if(0x3!=_0x59f4a8[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545585(_0x59f4a8[0x1]);function _0x545585(_0x2f7d36){const _0x64863=_0x6f134a(_0x2f7d36);return _0x64863&&_0x440010()?_0x64863:null;function _0x440010(){const _0x114be0=_0x64863[_0xff6763([0x6a,0x74,0x69])],_0xfa9c38=window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114be0[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x114be0[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33ff4d={..._0x64863,[_0xff6763([0x6a,0x74,0x69])]:_0x114be0[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x114be0[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33ff4d[_0xff6763([0x76,0x63])],_0x71f6c5(_0x33ff4d)==_0xfa9c38;}}}async function _0x52e8ff(){let _0x1f47e6=!0x0;try{const _0x34e267=_0x4ba9d9[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e])),[_0x35d5f1,_0x26ce7c,_0x368afa]=_0x34e267;return _0x130c8c(_0x35d5f1),await _0x15ae60(_0x35d5f1,_0x26ce7c,_0x368afa),_0x1f47e6;}catch(_0x426c0e){return!0x1;}function _0x130c8c(_0x45faf8){const _0x148ae7=_0x6f134a(_0x45faf8);_0x148ae7&&_0x148ae7[_0xff6763([0x61,0x6c,0x67])]==_0xff6763([0x45,0x53,0x32,0x35,0x36])||(_0x1f47e6=!0x1);}async function _0x15ae60(_0x58d1e5,_0x29038c,_0x2d3c77){const _0x494603=window[_0xff6763([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xff6763([0x66,0x72,0x6f,0x6d])](_0x3e15aa(_0x2d3c77),_0x3a01d4=>_0x3a01d4[_0xff6763([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dd59d=new window[(_0xff6763([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xff6763([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58d1e5+_0xff6763([0x2e])+_0x29038c),_0x199e56=window[_0xff6763([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xff6763([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x199e56)return;const _0x32c7cf=await _0x199e56[_0xff6763([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xff6763([0x6a,0x77,0x6b]),_0x421329,{[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x45,0x43,0x44,0x53,0x41]),[_0xff6763([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xff6763([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x199e56[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x45,0x43,0x44,0x53,0x41]),[_0xff6763([0x68,0x61,0x73,0x68])]:{[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32c7cf,_0x494603,_0x4dd59d)||(_0x1f47e6=!0x1);}}function _0x6f134a(_0x39cb7f){return _0x39cb7f[_0xff6763([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xff6763([0x65,0x79]))?JSON[_0xff6763([0x70,0x61,0x72,0x73,0x65])](_0x3e15aa(_0x39cb7f)):null;}function _0x3e15aa(_0x2f7872){return window[_0xff6763([0x61,0x74,0x6f,0x62])](_0x2f7872[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xff6763([0x2b]))[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xff6763([0x2f])));}function _0x71f6c5(_0x191f8c){let _0x5165f7=0x1505;function _0x1b7acd(_0x212d0d){for(let _0x1f29cf=0x0;_0x1f29cf<_0x212d0d[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f29cf++){const _0x100bbe=_0x212d0d[_0xff6763([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f29cf);_0x5165f7=(_0x5165f7<<0x5)+_0x5165f7+_0x100bbe,_0x5165f7&=_0x5165f7;}}function _0x157513(_0x356efd){Array[_0xff6763([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x356efd)?_0x356efd[_0xff6763([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x157513):_0x356efd&&typeof _0x356efd==_0xff6763([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xff6763([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x356efd)[_0xff6763([0x73,0x6f,0x72,0x74])]()[_0xff6763([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x818b34,_0x24dc53])=>{_0x1b7acd(_0x818b34),_0x157513(_0x24dc53);}):_0x1b7acd(window[_0xff6763([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x356efd));}return _0x157513(_0x191f8c),_0x5165f7>>>0x0;}function _0x541f84(_0x14434c){return _0x14434c[_0xff6763([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xff6763([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xff6763([0x30]));}function _0x3dc24c(_0x4f17e4){return _0x4f17e4[_0xff6763([0x73,0x70,0x6c,0x69,0x74])]('')[_0xff6763([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xff6763([0x6a,0x6f,0x69,0x6e])]('');}function _0x27be7a(_0x208b3a){return _0x971275[_0xff6763([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xff6763([0x68,0x61,0x73])](_0x208b3a);}function _0x15dd98(_0x3202e7){return _0x971275[_0xff6763([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xff6763([0x67,0x65,0x74])](_0x3202e7);}function _0x4925c9(){}function _0xff6763(_0x2a1227){return _0x2a1227['map'](_0x24b4d7=>String['fromCharCode'](_0x24b4d7))['join']('');}_0x18d08f(await _0x3db0b());}(this);}['createRevision'](_0x3b0cd9){const _0xed4c41=this['editor']['plugins']['get']('Users');return new a({'id':_0x3b0cd9['id'],'name':_0x3b0cd9['name'],'creator':_0x3b0cd9['creatorId']?_0xed4c41['getUser'](_0x3b0cd9['creatorId']):null,'diffData':_0x3b0cd9['diffData']||_0x3b0cd9['data'],'authors':_0x3b0cd9['authorsIds']['map'](_0x51848e=>_0xed4c41['getUser'](_0x51848e)),'createdAt':new Date(_0x3b0cd9['createdAt']),'attributes':_0x3b0cd9['attributes'],'fromVersion':_0x3b0cd9['fromVersion'],'toVersion':_0x3b0cd9['toVersion']});}['addRevision'](_0x38c7c1,_0x2f1a5f=0x0){this['_revisions']['add'](_0x38c7c1,_0x2f1a5f);}['getRevision'](_0x3410b4){return this['_revisions']['get'](_0x3410b4);}['getRevisions'](_0x37f779={'toJSON':!0x1}){const _0x1aa772=Array['from'](this['_revisions']);return _0x1aa772['reverse'](),_0x37f779['toJSON']?_0x1aa772['map'](_0x1e497d=>_0x1e497d['toJSON']()):_0x1aa772;}['getIndex'](_0x7adb9){return this['_revisions']['getIndex'](_0x7adb9);}['getEarlierVisibleRevision'](_0xbdd507){const [,_0x463b6d]=this['getRevisionsIterator'](_0xbdd507,{'direction':'earlier'});return _0x463b6d;}['getLaterVisibleRevision'](_0x21a5fe){const [,_0xafeded]=this['getRevisionsIterator'](_0x21a5fe,{'direction':'later'});return _0xafeded;}['getRevisionsInDiff'](_0x481a6b){const _0x50d117=[];for(const _0x420bde of this['getRevisionsIterator'](_0x481a6b['newRevisionId']))if(_0x50d117['push'](_0x420bde),_0x420bde['id']===_0x481a6b['oldRevisionId'])break;return _0x50d117;}*['getRevisionsIterator'](_0x1d6217,{direction:_0x25ed2f='earlier',filter:_0x3ac180=()=>!0x0}={}){const _0xacf1e5='earlier'===_0x25ed2f?0x1:-0x1;let _0x2657d6=this['_revisions']['get'](_0x1d6217),_0x310944=this['getIndex'](_0x2657d6);for(yield _0x2657d6;_0x2657d6;){if(_0x310944+=_0xacf1e5,_0x2657d6=this['getRevision'](_0x310944),!_0x2657d6)return;_0x3ac180(_0x2657d6)&&(yield _0x2657d6);}}}function R(_0x398b14,_0x5ef7fa,_0xfe12d9){const t=_0x398b14['t'];switch(_0x5ef7fa){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'},_0xfe12d9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xfe12d9);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x34a5a1,'a':_0x598c3e,'e':_0x29e244,'r':_0x38a7d8,'u':_0x196df5};class l extends _0x5a5f64{['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[_0x13a039,j,_0xa8dbbf];}constructor(_0x1e65ec){super(_0x1e65ec),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2f6cf6=_0x45c6ed();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2f6cf6},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 _0xc199e5=this['repository']['getRevision'](0x0),_0x146a9d=_0xc199e5&&null===_0xc199e5['creator']?_0xc199e5:null;if(this['_continueCurrentRevision']=!!_0x146a9d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf6f992=this['_source']['getCurrentRevisionId'](),_0x55aff8=this['repository']['getRevision'](_0xf6f992);if(_0x55aff8)this['_startingVersion']=_0x55aff8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x51350d=this['_source']['history']['_operations']['find'](_0x52fefa=>!_0x52fefa['_isInit']),_0x3a5151=_0x51350d?_0x51350d['baseVersion']:this['_source']['history']['version'];_0xc199e5?(_0xc199e5['toVersion']<_0x3a5151&&_0xc199e5['_update']({'toVersion':_0x3a5151}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id'],this['_startingVersion']=_0x146a9d['fromVersion']):(this['_startingVersion']=_0xc199e5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a5151,this['_continueCurrentRevision']=!0x1);}}else _0x146a9d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x146a9d['toVersion'],this['editor']['model']['document']['history']['version']),_0x146a9d['fromVersion']===_0x146a9d['toVersion']?(0x0!==_0x146a9d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id'],this['_startingVersion']=_0x146a9d['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',_0x50e9e8=>!_0x50e9e8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x514db6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb35ab;for(const _0x18567e in _0x514db6){const _0x368bf4=_0x18567e,_0x3944e6=_0x514db6[_0x368bf4];if('revisionHistoryLicenseKeyValid'==_0x3944e6||'revisionHistoryLicenseKeyInvalid'==_0x3944e6||'revisionHistoryLicenseKeyExpired'==_0x3944e6||'revisionHistoryLicenseKeyDomainLimit'==_0x3944e6||'revisionHistoryLicenseKeyNotAllowed'==_0x3944e6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3944e6||'revisionHistoryLicenseKeyTrialLimit'==_0x3944e6||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3944e6||'revisionHistoryLicenseKeyUsageLimit'==_0x3944e6){delete _0x514db6[_0x368bf4],_0xb35ab=_0x3944e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xb35ab&&_0x514db6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xb35ab&&_0x514db6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xb35ab&&_0x514db6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xe59fdf=this['repository']['getRevision'](0x0),_0x2fda2b=await this['getRevisionDocumentData'](_0xe59fdf),_0x1dbfc9=await this['getRevisionRootsAttributes'](_0xe59fdf);this['_replaceEditorDataWithRevisionData'](_0x2fda2b,_0x1dbfc9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x59d9e7){this['_source']=_0x59d9e7;}async['update'](){const _0x4748ef=await this['_source']['getLatestVersion']();if(_0x4748ef>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5cc124=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4748ef});_0x5cc124['authors']=_0x5cc124['authorsIds']['map'](_0x4513fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x4513fb)),this['currentRevision']['_update'](_0x5cc124);}}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'](_0x1651ef={},_0x31885b=null){const _0x53feed=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31885b>this['currentRevision']['toVersion']&&(_0x31885b=null),null===_0x31885b&&(_0x31885b=await this['_source']['getLatestVersion']());const _0x493cfd=this['_getFromVersion'](_0x31885b),_0x17d185=this['buildRevisionData']({'from':_0x493cfd,'to':_0x31885b});if(this['currentRevision']['toVersion']<_0x31885b){const _0x48bf3a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x31885b,'to':_0x31885b});_0x48bf3a['authors']=[],_0x48bf3a['authorsIds']=[],_0x48bf3a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x48bf3a,!0x0),delete _0x48bf3a['authors'],_0x53feed['push'](_0x48bf3a);}_0x1651ef['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1651ef['name']=_0x1651ef['name']||null,_0x1651ef['id']=_0x1651ef['id']||_0x45c6ed(),_0x1651ef={..._0x1651ef,..._0x17d185};const _0x2dd961=this['addRevisionData'](_0x1651ef);_0x53feed['push'](_0x1651ef);const _0x476f68=this['repository']['getIndex'](_0x2dd961);if(0x0!==_0x476f68){const _0x1f2331=this['repository']['getRevision'](_0x476f68-0x1);if(_0x1f2331['fromVersion']!==_0x31885b){const _0x4b36ad=this['_revisionDataBuilder']['getData'](_0x31885b,_0x1f2331['toVersion']),_0x5d3974={'id':_0x1f2331['id'],'diffData':_0x4b36ad['diffData'],'authorsIds':_0x4b36ad['authorsIds'],'authors':_0x4b36ad['authorsIds']['map'](_0x3b7644=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b7644)),'fromVersion':_0x31885b};_0x1f2331===this['currentRevision']&&(_0x5d3974['createdAt']=new Date(_0x1651ef['createdAt']['getTime']()+0xa)),_0x1f2331['_update'](_0x5d3974,!0x0),delete _0x5d3974['authors'],_0x53feed['push'](_0x5d3974);}}if(this['adapter']){for(const _0x54ec41 of _0x53feed)this['_bufferUpdate'](_0x54ec41['id'],_0x54ec41,!0x0);this['sendBufferedUpdates']();}return _0x2dd961;}['addRevisionData'](_0x5b7d6a){const _0x1e6d9d=this['repository']['createRevision'](_0x5b7d6a);return this['adapter']&&_0x1e6d9d['on']('_update',(_0x51558e,_0x43abe2,_0x48273b)=>{_0x48273b||(this['_bufferUpdate'](_0x43abe2['id'],_0x43abe2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e6d9d,this['_findInsertionIndex'](_0x1e6d9d)),_0x1e6d9d;}async['getRevisionDocumentData'](_0x487601){await this['_loadRevisionData'](_0x487601);const _0x111d81={};for(const _0x45ab74 in _0x487601['diffData']){if(_0x487601['diffData'][_0x45ab74]['attachChange']&&!_0x487601['diffData'][_0x45ab74]['attachChange']['isAttached'])continue;const _0x3139d8=this['_removeRevisionMarkers'](JSON['parse'](_0x487601['diffData'][_0x45ab74]['insertions'])),_0x3774fb=this['editor']['editing']['view']['document'],_0x2140da=new _0x29157b(_0x3774fb,_0x3139d8['map'](_0x4f7cd5=>V(_0x4f7cd5,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x111d81[_0x45ab74]=this['editor']['data']['processor']['toData'](_0x2140da),this['editor']['data']['processor']['useFillerType']('default');}return _0x111d81;}async['getRevisionRootsAttributes'](_0x17741a){await this['_loadRevisionData'](_0x17741a);const _0xbb6214={};for(const _0x48bdef in _0x17741a['diffData'])_0x17741a['diffData'][_0x48bdef]['attachChange']&&!_0x17741a['diffData'][_0x48bdef]['attachChange']['isAttached']||(_0xbb6214[_0x48bdef]=_0x17741a['diffData'][_0x48bdef]['attributesAfter']||{});return _0xbb6214;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x228b63=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2fca85=0x0;_0x2fca85<_0x228b63['length'];_0x2fca85++){const _0x4562ae=_0x228b63[_0x2fca85];let _0xfdb3db=!0x1;for(const _0x290010 of Object['keys'](_0x4562ae))void 0x0===_0x4562ae[_0x290010]?delete _0x4562ae[_0x290010]:'id'!==_0x290010&&(_0xfdb3db=!0x0);_0xfdb3db||(_0x228b63[_0x2fca85]=null);}if(_0x228b63=_0x228b63['filter'](_0x1c6041=>null!==_0x1c6041),!_0x228b63['length'])return;for(let _0x5d3c43=0x0;_0x5d3c43<_0x228b63['length'];_0x5d3c43++){const _0x2bc3b0=_0x228b63[_0x5d3c43];void 0x0!==_0x2bc3b0['fromVersion']&&void 0x0===_0x2bc3b0['toVersion']&&(_0x2bc3b0['toVersion']=this['repository']['getRevision'](_0x2bc3b0['id'])['toVersion']),void 0x0!==_0x2bc3b0['toVersion']&&void 0x0===_0x2bc3b0['fromVersion']&&(_0x2bc3b0['fromVersion']=this['repository']['getRevision'](_0x2bc3b0['id'])['fromVersion']);}const _0x41ab06=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x228b63,_0x41ab06)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x177e0e=>{if(_0x177e0e){for(const _0x42b944 of _0x177e0e)this['setRevisionData']({'id':_0x42b944['id'],'createdAt':_0x42b944['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x974032,_0x158e1b){let _0x48bf90=this['editor']['config']['get']('initialData'),_0x89a535=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48bf90){_0x48bf90={};for(const _0x221223 of this['editor']['model']['document']['getRootNames']())_0x48bf90[_0x221223]='';}if('string'==typeof _0x48bf90&&(_0x48bf90={'main':_0x48bf90}),void 0x0===_0x89a535){_0x89a535={};for(const _0x34d412 of this['editor']['model']['document']['getRootNames']())_0x89a535[_0x34d412]={};}let _0x596621=!0x1;const _0x534b81=Object['keys'](_0x48bf90),_0x5be602=Object['keys'](_0x974032);for(const _0x3808e2 of _0x534b81){if(_0x48bf90[_0x3808e2]!==_0x974032[_0x3808e2]&&''!==_0x48bf90[_0x3808e2]['trim']()){_0x596621=!0x0;break;}if(!_0x217429(_0x89a535[_0x3808e2],_0x158e1b[_0x3808e2])&&Object['keys'](_0x89a535[_0x3808e2])['length']>0x0){_0x596621=!0x0;break;}}_0x596621||(_0x596621=_0x5be602['some'](_0x3ebc34=>!this['editor']['model']['document']['getRoot'](_0x3ebc34))),_0x596621&&_0x1f749e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48bf90,'editorRootsAttributes':_0x89a535,'revisionData':_0x974032,'revisionRootsAttributes':_0x158e1b}),this['editor']['config']['set']('initialData',_0x974032),this['editor']['config']['set']('rootsAttributes',_0x158e1b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24ed12=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24ed12['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x41d92c){const _0x3cf97a=this['repository']['getRevisions']();_0x3cf97a['reverse']();let _0x3415a1=0x0;for(;_0x3415a1<_0x3cf97a['length'];){const _0x37aa1b=_0x3cf97a[_0x3415a1];if(_0x37aa1b===this['currentRevision']){_0x3415a1++;continue;}if(_0x37aa1b['id']===this['_initialRevisionId'])break;const _0x42e326=_0x41d92c['toVersion']-_0x37aa1b['toVersion']||_0x41d92c['fromVersion']-_0x37aa1b['fromVersion'];if(_0x42e326>0x0)break;if(_0x42e326<0x0)_0x3415a1++;else{if(!_0x41d92c['creator']&&_0x37aa1b['creator'])break;if(_0x37aa1b['creator']||!_0x41d92c['creator']){if(_0x41d92c['createdAt']>_0x37aa1b['createdAt'])break;_0x3415a1++;}else _0x3415a1++;}}return _0x3415a1;}['setRevisionData'](_0xe442ed){const _0x52f1f7=this['repository']['getRevision'](_0xe442ed['id']);if(_0xe442ed['createdAt']&&(_0xe442ed['createdAt']=new Date(_0xe442ed['createdAt'])),_0xe442ed['authorsIds']){const _0x11ca40=this['editor']['plugins']['get']('Users');_0xe442ed['authors']=_0xe442ed['authorsIds']['map'](_0x12b623=>_0x11ca40['getUser'](_0x12b623));}_0x52f1f7['_update'](_0xe442ed,!0x0);}['buildRevisionData']({revision:_0x1ecb18=null,from:_0x2aba00=null,to:_0x29db43=null}){_0x2aba00=null!==_0x2aba00?_0x2aba00:_0x1ecb18['fromVersion'],_0x29db43=null!==_0x29db43?_0x29db43:_0x1ecb18['toVersion'];const _0x437a04=this['_revisionDataBuilder']['getData'](_0x2aba00,_0x29db43),_0x300bae={'diffData':_0x437a04['diffData'],'authorsIds':_0x437a04['authorsIds'],'fromVersion':_0x2aba00,'toVersion':_0x29db43};if(!_0x1ecb18||_0x29db43!==_0x1ecb18['toVersion']){const _0x2bc758=_0x29db43-0x1,_0x3f2861=this['_source']['history']['getOperation'](_0x2bc758);_0x300bae['createdAt']=_0x3f2861&&_0x3f2861['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2aba00===this['_loadedStateData']['fromVersion']){for(const _0x37de77 of this['_loadedStateData']['authors'])_0x300bae['authorsIds']['includes'](_0x37de77['id'])||_0x300bae['authorsIds']['push'](_0x37de77['id']);}return _0x300bae;}['_loadRevisionData'](_0xdccdf4){if(!_0xdccdf4||_0xdccdf4['diffData'])return Promise['resolve']();{const _0x389952=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x389952,'revisionId':_0xdccdf4['id']})['then'](_0x13114b=>{_0xdccdf4['diffData']=_0x13114b['diffData'];});}}['_bufferUpdate'](_0x12fe06,_0x2d2a5a,_0xfdb842){if(this['_bufferedUpdates']['has'](_0x12fe06)){const _0x3c790c=this['_bufferedUpdates']['get'](_0x12fe06);_0x2d2a5a=_0xfdb842?{..._0x3c790c,..._0x2d2a5a}:{..._0x2d2a5a,..._0x3c790c};}this['_bufferedUpdates']['set'](_0x12fe06,_0x2d2a5a);}['_getFromVersion'](_0x5a9e96){const _0x27f8e6=this['repository']['getRevisions']();_0x27f8e6['reverse'](),_0x27f8e6['shift']();const _0x4c1099=_0x27f8e6['find'](_0x602c6e=>_0x602c6e['toVersion']<=_0x5a9e96)['toVersion'];return _0x4c1099<this['_startingVersion']?this['_startingVersion']:_0x4c1099;}['_createInitialRevision'](_0x9ba8ed){const _0x245197=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x245197)this['_initialRevisionId']=_0x245197['id'];else{const _0x42da90=!this['editor']['model']['document']['roots']['find'](_0x579dd5=>this['editor']['model']['hasContent'](_0x579dd5)),_0x4c5f62=this['editor']['plugins']['get']('Users')['me']['id'],_0x1312d8=R(this['editor']['locale'],_0x42da90?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x9ba8ed,'to':_0x9ba8ed,'id':this['_initialRevisionId'],'name':_0x1312d8,'creatorId':_0x4c5f62});}}['_createCurrentRevision'](_0x1147c6){const _0x3dc5b2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3dc5b2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1147c6,'to':_0x1147c6,'id':_0x3dc5b2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1e5f80,from:_0x5842ac,to:_0xa0b246,creatorId:_0x17e6b1,id:_0x5c9c91}){const _0x4387bb=this['buildRevisionData']({'from':_0x5842ac,'to':_0xa0b246});_0x4387bb['name']=_0x1e5f80,_0x4387bb['creatorId']=_0x17e6b1,_0x4387bb['id']=_0x5c9c91;const _0x4e8a2b=this['addRevisionData'](_0x4387bb);return this['adapter']&&this['_bufferUpdate'](_0x4387bb['id'],_0x4387bb,!0x0),_0x4e8a2b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4920ea){return(_0x4920ea=_0x4920ea['filter'](_0x40c012=>!_0x40c012['name']||'revision-start'!==_0x40c012['name']&&'revision-end'!==_0x40c012['name']))['forEach'](_0x5c40a4=>{'string'!=typeof _0x5c40a4&&(_0x5c40a4['children']=this['_removeRevisionMarkers'](_0x5c40a4['children']),_0x5c40a4['attributes']=_0x5c40a4['attributes']['filter'](_0x1df344=>!_0x1df344[0x0]['startsWith']('data-revision-')));}),_0x4920ea;}}function V(_0x54e4f0,_0x547eb8){const _0x5a9f53=_0x547eb8['editing']['view']['document'];if('string'==typeof _0x54e4f0)return new _0x580579(_0x5a9f53,_0x54e4f0);{const _0x438c0b=_0x54e4f0['children']['map'](_0x31ebb6=>V(_0x31ebb6,_0x547eb8));return new(C[_0x54e4f0['type']]||_0x9fe0f9)(_0x5a9f53,_0x54e4f0['name'],_0x54e4f0['attributes'],_0x438c0b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3d0988){this['editor']=_0x3d0988,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'](_0x2e995d){this['source']=_0x2e995d;const _0x1347b3=new Map(),_0x43ef1f=new Map(),_0x9618b0=this['editor']['model']['document']['roots']['map'](_0x1d3730=>_0x1d3730['rootName']);for(const _0x46f26c of _0x9618b0){const _0x12c692=this['editor']['model']['document']['getRoot'](_0x46f26c),_0x3be5d1=F(_0x12c692);_0x1347b3['set'](_0x46f26c,_0x3be5d1),_0x43ef1f['set'](_0x46f26c,Object['fromEntries'](_0x12c692['getAttributes']()));}const _0x5c1801=Array['from'](this['editor']['model']['markers'])['map'](_0xcbab7c=>[_0xcbab7c['name'],_0xcbab7c['getRange']()]),_0x1d59ec=this['source']['version'];this['_saveMetaData'](_0x1d59ec,_0x1347b3,_0x5c1801,_0x43ef1f),this['_startingRevisionId']=this['_revisionId'];const _0x1909e2=new Map(),_0x543117=new Map();for(const _0x46aab0 of _0x9618b0){const _0x3e0b8e=B(_0x46aab0);_0x1909e2['set'](_0x46aab0,_0x3e0b8e),_0x543117['set'](_0x46aab0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1909e2,[],_0x543117);}['getData'](_0xe07e70,_0x4326d6){if(this['_lastFrom']===_0xe07e70&&this['_lastTo']<=_0x4326d6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4326d6,!0x0);else{if(!this['_savedMetaData']['has'](_0xe07e70)){const _0x189911=this['_getPreviousFrom'](_0xe07e70);this['_calculateMetaData'](_0x189911,_0xe07e70,!0x1);}this['_calculateMetaData'](_0xe07e70,_0x4326d6,!0x0);}return this['_lastFrom']=_0xe07e70,this['_lastTo']=_0x4326d6,this['_getState']();}['loadState'](_0x54bd85){this['_reset'](),this['_lastFrom']=_0x54bd85['fromVersion'],this['_lastTo']=_0x54bd85['toVersion'];for(const _0x40f569 in _0x54bd85['diffData']){const _0x303097=_0x54bd85['diffData'][_0x40f569]['attachChange'],_0x12086b=_0x1fbbd4(_0x54bd85['diffData'][_0x40f569]['attributesBefore'])||{},_0x2fc0a5=this['_makeModelFromViewString'](_0x54bd85['diffData'][_0x40f569]['deletions']);_0x2fc0a5['rootName']=_0x40f569,_0x2fc0a5['_isAttached']=!_0x303097||!_0x303097['isAttached'],_0x2fc0a5['isAttached']=()=>_0x2fc0a5['_isAttached'],this['_baseRoots']['set'](_0x40f569,_0x2fc0a5),this['_baseRootsAttributes']['set'](_0x40f569,_0x12086b),_0x303097&&this['_touchedRoots']['set'](_0x40f569,_0x303097);const _0x52b847=this['_makeIdsRoot'](_0x2fc0a5);this['_baseIdsRoots']['set'](_0x40f569,_0x52b847);for(const [_0x43dfca,_0xcd4df2]of _0x2fc0a5['markers']){if(!_0x43dfca['startsWith']('revision:'))continue;const _0x38fdb2=_0x43dfca['split'](':')[0x2];for(const _0x4b966b of _0xcd4df2['getWalker']({'singleCharacters':!0x0})){const _0x5dbb63=this['_getVidAttributeName'](_0x4b966b),_0x144e4b='elementEnd'==_0x4b966b['type']?_0x4b966b['previousPosition']['path']['slice'](0x0,-0x1):_0x4b966b['previousPosition']['path'],_0x5e3c0a=_0x52b847['getNodeByPath'](_0x144e4b)['getAttribute'](_0x5dbb63);this['_touched']['set'](_0x5e3c0a,{'userId':_0x38fdb2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x382784=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54e00d=>!this['_touched']['has'](_0x54e00d));let _0x51ecea=0x0;const _0x31e3f0=new Map();for(const _0x2c067e in _0x54bd85['diffData']){const _0x5526bb=_0x54bd85['diffData'][_0x2c067e]['attachChange'],_0x57741f=_0x1fbbd4(_0x54bd85['diffData'][_0x2c067e]['attributesAfter'])||{},_0x1f78a8=this['_makeModelFromViewString'](_0x54bd85['diffData'][_0x2c067e]['insertions']);_0x1f78a8['rootName']=_0x2c067e,_0x1f78a8['_isAttached']=!_0x5526bb||_0x5526bb['isAttached'],_0x1f78a8['isAttached']=()=>_0x1f78a8['_isAttached'],this['_diffRoots']['set'](_0x2c067e,_0x1f78a8),this['_diffRootsAttributes']['set'](_0x2c067e,_0x57741f);const _0x32694e=this['_makeIdsRoot'](_0x1f78a8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2c067e,_0x32694e),_0x31e3f0['set'](_0x2c067e,_0x1f78a8['isAttached']()?_0x57741f:{});for(const [_0x57b4c3,_0x383ac2]of _0x1f78a8['markers']){if(!_0x57b4c3['startsWith']('revision:'))continue;const _0x5236f2=_0x57b4c3['split'](':')[0x2];for(const _0x24461d of _0x383ac2['getWalker']({'singleCharacters':!0x0})){const _0x244cb9=this['_getVidAttributeName'](_0x24461d),_0x3407d2=this['_revisionId']++,_0x3d8b4d='elementEnd'==_0x24461d['type']?_0x24461d['previousPosition']['path']['slice'](0x0,-0x1):_0x24461d['previousPosition']['path'];_0x32694e['getNodeByPath'](_0x3d8b4d)['_setAttribute'](_0x244cb9,_0x3407d2),this['_touched']['set'](_0x3407d2,{'userId':_0x5236f2});}}for(const _0x59dee0 of this['editor']['model']['createRangeIn'](_0x1f78a8)['getWalker']({'singleCharacters':!0x0})){const _0x49ebed=this['_getVidAttributeName'](_0x59dee0),_0x83e81e='elementEnd'==_0x59dee0['type']?_0x59dee0['previousPosition']['path']['slice'](0x0,-0x1):_0x59dee0['previousPosition']['path'],_0x51242a=_0x32694e['getNodeByPath'](_0x83e81e);_0x51242a['getAttribute'](_0x49ebed)>0x0||_0x51242a['_setAttribute'](_0x49ebed,_0x382784[_0x51ecea++]);}for(const [_0x287f64,_0x1977cd]of _0x1f78a8['markers'])_0x287f64['startsWith']('revision:')||this['_markers']['set'](_0x287f64,_0x1977cd);}const _0x33aa06=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x33aa06),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33aa06,0x1));const _0x2ce5e3=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2ce5e3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2ce5e3,0x1));const _0x5cd82f=Array['from'](this['_diffRoots'])['map'](([_0x3ef481,_0x118d56])=>[_0x3ef481,F(_0x118d56)]);this['_saveMetaData'](this['_lastTo'],_0x5cd82f,this['_markers'],_0x31e3f0);}['_makeModelFromViewString'](_0x4b12ed){const _0x5a550b=JSON['parse'](_0x4b12ed),_0x2cf673=this['editor']['editing']['view']['document'],_0x1a0190=new _0x29157b(_0x2cf673,_0x5a550b['map'](_0x46b8be=>V(_0x46b8be,this['editor'])));return this['editor']['data']['toModel'](_0x1a0190);}['_saveMetaData'](_0x2a42ba,_0x4a5ecf,_0x44ebc7,_0x46faa3){const _0x67550a=new Map(_0x4a5ecf),_0x41e418=new Map(_0x1fbbd4(_0x46faa3)),_0x5ac75d=new Map();for(const [_0xca5da3,_0x2c0088]of _0x44ebc7)_0x5ac75d['set'](_0xca5da3,{'start':_0x2c0088['start']['clone'](),'end':_0x2c0088['end']['clone'](),'rootName':_0x2c0088['root']['rootName']});this['_savedMetaData']['set'](_0x2a42ba,{'roots':_0x67550a,'markers':_0x5ac75d,'rootsAttributes':_0x41e418});}['_removeMetaData'](_0x1165db){this['_savedMetaData']['delete'](_0x1165db);}['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'](_0x6852fd,_0x3e6043=null){let _0x2457eb=null;_0x6852fd['is']('documentFragment')||(_0x2457eb=new ft(_0x6852fd['name'],{'vid_start':null===_0x3e6043?this['_revisionId']++:_0x3e6043++}));const _0x4c3921=[];for(const _0x40ea8e of _0x6852fd['getChildren']())if(_0x40ea8e['is']('element')){_0x4c3921['push'](this['_makeIdsRoot'](_0x40ea8e,_0x3e6043));const _0x1c8ad0=_0x4c3921[_0x4c3921['length']-0x1];null!==_0x3e6043&&(_0x3e6043=_0x1c8ad0['is']('element','$text')?_0x1c8ad0['getAttribute']('vid')+0x1:_0x1c8ad0['getAttribute']('vid_end')+0x1);}else{for(let _0x1745e6=0x0;_0x1745e6<_0x40ea8e['offsetSize'];_0x1745e6++)_0x4c3921['push'](new ft('$text',{'vid':null===_0x3e6043?this['_revisionId']++:_0x3e6043++}));}if(_0x6852fd['is']('documentFragment')){const _0x5495a2=B(_0x6852fd['rootName']);return _0x5495a2['_insertChild'](0x0,_0x4c3921),_0x5495a2;}return _0x2457eb['_setAttribute']('vid_end',null===_0x3e6043?this['_revisionId']++:_0x3e6043++),_0x2457eb['_insertChild'](0x0,_0x4c3921),_0x2457eb;}['_calculateMetaData'](_0x2608ee,_0x20e39c,_0x14abe6){this['_reset']();const {roots:_0x220ff5,markers:_0x5245d6,rootsAttributes:_0x477e1a}=this['_savedMetaData']['get'](_0x2608ee);this['_baseRoots']=new Map(_0x220ff5),this['_baseRootsAttributes']=new Map(_0x1fbbd4(_0x477e1a));for(const [_0x5208b5,_0x7e488]of this['_baseRoots'])if('$graveyard'!==_0x5208b5&&(this['_diffRoots']['set'](_0x5208b5,F(_0x7e488)),this['_diffRootsAttributes']=new Map(_0x1fbbd4(_0x477e1a)),_0x14abe6)){const _0x2d6c44=this['_revisionId'];this['_idsRoots']['set'](_0x5208b5,this['_makeIdsRoot'](_0x7e488)),this['_baseIdsRoots']['set'](_0x5208b5,this['_makeIdsRoot'](_0x7e488,_0x2d6c44));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x14abe6&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x31b127,_0x16a6d3]of _0x5245d6){const _0x2a8ba7=this['_baseRoots']['get'](_0x16a6d3['rootName']),_0x467949=this['_diffRoots']['get'](_0x16a6d3['rootName']),_0x1547b2=new vt(this['_fixPosition'](_0x16a6d3['start'],_0x2a8ba7),this['_fixPosition'](_0x16a6d3['end'],_0x2a8ba7)),_0x1f3937=this['_fixRange'](_0x1547b2,_0x467949);_0x2a8ba7['markers']['set'](_0x31b127,_0x1547b2),this['_markers']['set'](_0x31b127,_0x1f3937);}this['_applyOperations'](_0x2608ee,_0x20e39c,_0x14abe6);}['_applyOperations'](_0x346cd6,_0x23e23b,_0x35f139){for(const _0x185dc7 of this['source']['getOperations'](_0x346cd6,_0x23e23b))this['_handleOperation'](_0x185dc7,_0x35f139);for(const _0x4fa5aa of this['_diffRoots']['values']())_0x4fa5aa['markers']['clear']();for(const [_0x14af02,_0x11682a]of this['_markers']){this['_diffRoots']['get'](_0x11682a['root']['rootName'])['markers']['set'](_0x14af02,_0x11682a['clone']());}const _0x4f166c=new Map(),_0x24453a=new Map();for(const [_0x5eceb8,_0x9710a3]of this['_diffRoots'])_0x4f166c['set'](_0x5eceb8,F(_0x9710a3)),_0x24453a['set'](_0x5eceb8,this['_diffRootsAttributes']['get'](_0x5eceb8));this['_saveMetaData'](_0x23e23b,_0x4f166c,this['_markers'],_0x24453a);}['_getPreviousFrom'](_0x5b1be8){const _0x7c5602=Array['from'](this['_savedMetaData']['keys']());_0x7c5602['sort']((_0x617aaa,_0x10a742)=>_0x617aaa-_0x10a742),_0x7c5602['reverse']();for(const _0x554759 of _0x7c5602)if(_0x554759<_0x5b1be8)return _0x554759;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12901e,_0x88668c){const _0x548d17=Array['from'](_0x88668c['markers'])['map'](([_0x501b52,_0x1cb914])=>[_0x501b52,this['_fixRange'](_0x1cb914,_0x12901e)]);_0x12901e['markers']=new Map(_0x548d17);}['_transformMarkers'](_0x2ba555){for(const _0x268499 of this['_markers']['values']()){const _0x318478=_0x268499['getTransformedByOperation'](_0x2ba555),_0x50ad36=vt['_createFromRanges'](_0x318478);_0x268499['start']=_0x50ad36['start'],_0x268499['end']=_0x50ad36['end'];}}['_handleOperation'](_0x630ef1,_0x10fa64){if('addRoot'!=_0x630ef1['type']&&'detachRoot'!=_0x630ef1['type']){if('insert'==_0x630ef1['type']){const _0x18a918=_0x630ef1['position']['root']['rootName'];this['_diffRoots']['has'](_0x18a918)||(this['_diffRoots']['set'](_0x18a918,B(_0x18a918,!0x0)),this['_diffRootsAttributes']['set'](_0x18a918,{}),_0x10fa64&&this['_idsRoots']['set'](_0x18a918,B(_0x18a918,!0x0)));}else{if('addRootAttribute'==_0x630ef1['type']||'removeRootAttribute'==_0x630ef1['type']||'changeRootAttribute'==_0x630ef1['type'])return void this['_handleRootAttributeOperation'](_0x630ef1);'marker'==_0x630ef1['type']&&this['_handleMarkerOperation'](_0x630ef1);}if('marker'!==_0x630ef1['type']){const _0x2464f7=this['_cloneOperation'](_0x630ef1,this['_diffRoots']);_0x2464f7['_execute'](),this['_transformMarkers'](_0x2464f7);}if(_0x10fa64)switch(_0x630ef1['type']){case'insert':this['_handleInsertOperation'](_0x630ef1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x630ef1);break;case'merge':this['_handleMergeOperation'](_0x630ef1);break;case'split':this['_handleSplitOperation'](_0x630ef1);}}else this['_handleRootOperation'](_0x630ef1,_0x10fa64);}['_cloneOperation'](_0x5ea7c1,_0x195d9d){const _0x962620=_0x5ea7c1['clone']();return _0x962620['_authorId']=_0x5ea7c1['_authorId'],this['_fixOperation'](_0x962620,_0x195d9d),_0x962620;}['_getBaseVids'](_0x2cc1ae){return _0x2cc1ae['map'](_0x59697d=>{const _0x471c7e=this['_getVidAttributeName'](_0x59697d);return Number(_0x59697d['item']['getAttribute'](_0x471c7e));});}['_generateTape'](_0x52940a,_0x26bde9){if(_0x52940a['is']('element','$text'))_0x26bde9['push']({'item':_0x52940a,'type':'text'});else{_0x52940a['is']('element')&&_0x26bde9['push']({'item':_0x52940a,'type':'elementStart'});for(const _0x24a729 of _0x52940a['getChildren']())this['_generateTape'](_0x24a729,_0x26bde9);_0x52940a['is']('element')&&_0x26bde9['push']({'item':_0x52940a,'type':'elementEnd'});}return _0x26bde9;}['_getState'](){const _0x2db93b=new Map(this['_touched']),_0x5e5edd=new Map(_0x2db93b),_0x532d7d=new Map(),_0x563df1={'insertions':{},'deletions':{}},_0x2b90df={'insertions':{},'deletions':{}},_0x56dae4=new Map(),_0x59f568=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x59f568['delete']('$graveyard');for(const _0x36c3a9 of _0x59f568){const _0x36ae61=this['_diffRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1),_0x21c621=this['_baseRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1);_0x36ae61['isAttached']()||_0x21c621['isAttached']()?(_0x563df1['insertions'][_0x36c3a9]=F(_0x36ae61),_0x563df1['deletions'][_0x36c3a9]=F(_0x21c621),this['_copyMarkers'](_0x563df1['deletions'][_0x36c3a9],_0x21c621),this['_copyMarkers'](_0x563df1['insertions'][_0x36c3a9],_0x36ae61),_0x2b90df['insertions'][_0x36c3a9]=this['_generateTape'](this['_idsRoots']['get'](_0x36c3a9),[]),_0x2b90df['deletions'][_0x36c3a9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1),[])):_0x59f568['delete'](_0x36c3a9);}for(const _0x1e5bb8 of _0x59f568){const _0x2aaa47=_0x2b90df['insertions'][_0x1e5bb8];for(const _0x2ee5b8 of _0x2aaa47){const _0x53a43c=this['_getVidAttributeName'](_0x2ee5b8),_0x22a844=_0x2ee5b8['item']['getAttribute'](_0x53a43c);_0x5e5edd['delete'](_0x22a844),_0x22a844>=this['_startingRevisionId']&&_0x532d7d['set'](_0x22a844,_0x2db93b['get'](_0x22a844));}}for(const _0x1985d0 of _0x59f568){const _0x4436a2=_0x2b90df['insertions'][_0x1985d0],_0xec75b2=this['_getBaseVids'](_0x2b90df['deletions'][_0x1985d0]);let _0xdfc885=0x0;for(const _0x50d732 of _0x4436a2){const _0x36bdbb=this['_getVidAttributeName'](_0x50d732),_0xaf5c9e=_0x50d732['item']['getAttribute'](_0x36bdbb);if(!_0x532d7d['has'](_0xaf5c9e)&&!_0x56dae4['has'](_0xaf5c9e)){if(_0x5e5edd['has'](_0xaf5c9e))_0xdfc885++;else{if(_0xaf5c9e!=_0xec75b2[_0xdfc885]){const _0x1347ff=_0x2db93b['get'](_0xaf5c9e)||_0x2db93b['get'](_0xec75b2[_0xdfc885]);for(;_0xaf5c9e!=_0xec75b2[_0xdfc885];)_0x5e5edd['has'](_0xec75b2[_0xdfc885])||(_0x56dae4['set'](_0xec75b2[_0xdfc885],_0x1347ff),_0x2db93b['set'](_0xec75b2[_0xdfc885],_0x1347ff)),_0xdfc885++;}_0xdfc885++;}}}}for(const _0x5dacb8 of _0x59f568){const _0x3f809d=_0x2b90df['insertions'][_0x5dacb8];for(const _0x2d0472 of _0x3f809d){const _0x233c26=this['_getVidAttributeName'](_0x2d0472),_0x128079=_0x2d0472['item']['getAttribute'](_0x233c26);if(_0x56dae4['has'](_0x128079)){const _0x42a711=_0x56dae4['get'](_0x128079);_0x5e5edd['has'](_0x128079)||_0x5e5edd['set'](_0x128079,{..._0x42a711}),_0x532d7d['set'](_0x128079,{..._0x42a711});}}}for(const _0x23c26c of _0x5e5edd['keys']())_0x23c26c>=this['_startingRevisionId']&&_0x5e5edd['delete'](_0x23c26c);const _0x927f3=new Map();for(const _0x2819b0 of _0x59f568){let _0x23f2d0=_0x2b90df['insertions'][_0x2819b0];for(const _0x39bc45 of _0x23f2d0)if(_0x39bc45['item']['is']('element','tableCell')){const _0x4189bf=this['_getVidAttributeName'](_0x39bc45),_0x1460f8=_0x39bc45['item']['getAttribute'](_0x4189bf);if(_0x532d7d['has'](_0x1460f8)){const _0x109c37=_0x39bc45['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d5381=_0x927f3['get'](_0x109c37)||new Set();_0x5d5381['add'](_0x532d7d['get'](_0x1460f8)['userId']),_0x927f3['set'](_0x109c37,_0x5d5381);}}_0x23f2d0=_0x2b90df['deletions'][_0x2819b0];for(const _0x4d0de7 of _0x23f2d0)if(_0x4d0de7['item']['is']('element','tableCell')){const _0x5d098a=this['_getVidAttributeName'](_0x4d0de7),_0x276c01=_0x4d0de7['item']['getAttribute'](_0x5d098a);if(_0x5e5edd['has'](_0x276c01)){const _0x189f8f=_0x4d0de7['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a6aef=_0x927f3['get'](_0x189f8f)||new Set();_0x3a6aef['add'](_0x5e5edd['get'](_0x276c01)['userId']),_0x927f3['set'](_0x189f8f,_0x3a6aef);}}for(const _0x30a225 of _0x927f3['keys']())(_0x532d7d['has'](_0x30a225)||_0x5e5edd['has'](_0x30a225))&&_0x927f3['delete'](_0x30a225);}for(const _0x13b965 of _0x59f568){const _0x1a562a=_0x2b90df['insertions'][_0x13b965];let _0xb8feff=null,_0x4cd556=null;for(const _0x30fb28 of _0x1a562a){const _0x145133=this['_getVidAttributeName'](_0x30fb28),_0x270912=_0x30fb28['item']['getAttribute'](_0x145133),_0x4925a0=_0x927f3['get'](_0x270912);_0x4925a0&&'elementStart'==_0x30fb28['type']&&(_0xb8feff=Array['from'](_0x4925a0)[0x0],_0x4cd556=_0x30fb28['item']['getAttribute']('vid_end')),_0xb8feff&&(_0x5e5edd['set'](_0x270912,{'userId':_0xb8feff}),_0x532d7d['set'](_0x270912,{'userId':_0xb8feff})),_0x270912==_0x4cd556&&(_0xb8feff=null,_0x4cd556=null);}}const _0x3ab72d={},_0x38c97f=new Set();for(const _0x38a5dd of _0x59f568){const _0x59e5dd=_0x563df1['deletions'][_0x38a5dd],_0x23fb23=_0x563df1['insertions'][_0x38a5dd];for(const {userId:_0x128b43}of this['_touchedMarkers']['values']())null!==_0x128b43&&_0x38c97f['add'](_0x128b43);for(const {userId:_0x255a7e}of this['_touchedRoots']['values']())null!==_0x255a7e&&_0x38c97f['add'](_0x255a7e);this['_markChanges'](_0x23fb23,_0x2b90df['insertions'][_0x38a5dd],_0x532d7d,'insertion',_0x38c97f),this['_markChanges'](_0x59e5dd,_0x2b90df['deletions'][_0x38a5dd],_0x5e5edd,'deletion',_0x38c97f),_0x3ab72d[_0x38a5dd]={'insertions':this['_prepareViewToSave'](_0x23fb23),'deletions':this['_prepareViewToSave'](_0x59e5dd),'attachChange':this['_touchedRoots']['get'](_0x38a5dd)||null,'attributesBefore':_0x1fbbd4(this['_baseRootsAttributes']['get'](_0x38a5dd))||{},'attributesAfter':_0x1fbbd4(this['_diffRootsAttributes']['get'](_0x38a5dd))};}return{'diffData':_0x3ab72d,'authorsIds':Array['from'](_0x38c97f)};}['_processRootBeforeSave'](_0x5f2fad){for(const [,_0x2cd9a8]of _0x5f2fad['markers']){const _0x29f512=_0x2cd9a8['start']['getAncestors']()['filter'](_0x52c4a5=>'tableCell'==_0x52c4a5['name']);for(const _0x17e4c7 of _0x29f512)0x1==_0x17e4c7['childCount']&&_0x17e4c7['getChild'](0x0)['is']('element','paragraph')&&_0x17e4c7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5d2de6){this['_processRootBeforeSave'](_0x5d2de6);const _0x5ca2b5=this['editor']['data']['toView'](_0x5d2de6,{}),_0x5764ee=Array['from'](_0x5ca2b5['getChildren']())['map'](_0x4743cb=>this['_getViewJson'](_0x4743cb));return JSON['stringify'](_0x5764ee);}['_getViewJson'](_0x53829c){if(_0x53829c['is']('$text'))return _0x53829c['data'];{const _0x23df38=_0x53829c;return{'type':Object['keys'](C)['find'](_0x25905b=>_0x53829c instanceof C[_0x25905b]),'name':_0x23df38['name'],'attributes':Array['from'](_0x23df38['getAttributes']()),'children':Array['from'](_0x23df38['getChildren']())['map'](_0x23f0e1=>this['_getViewJson'](_0x23f0e1))};}}['_markChanges'](_0x44059b,_0x494c70,_0x3f6145,_0x1d4c17,_0x1bd683){let _0x53a989=null,_0x30abed=null,_0x5705c7=0x0;const _0x144b4a=this['editor']['model'];for(let _0x1801b5=0x0;_0x1801b5<_0x494c70['length'];_0x1801b5++){const _0x1bdc1a=this['_getVidAttributeName'](_0x494c70[_0x1801b5]),_0x5efbdf=_0x494c70[_0x1801b5]['item']['getAttribute'](_0x1bdc1a),_0xcf152f=_0x3f6145['get'](_0x5efbdf),_0xbce1a2=_0x1801b5==_0x494c70['length']-0x1;(!_0x53a989&&_0xcf152f&&(_0x53a989=_0xcf152f,_0x30abed=_0x494c70[_0x1801b5]),_0x53a989&&(!_0xcf152f||_0xcf152f['userId']!=_0x53a989['userId']))&&(_0x160d05(_0xcf152f,J(_0x30abed,_0x44059b,_0x144b4a),J(_0x494c70[_0x1801b5],_0x44059b,_0x144b4a)),_0x53a989=_0xcf152f||null,_0x30abed=_0xcf152f?_0x494c70[_0x1801b5]:null),_0x53a989&&_0xbce1a2&&_0x160d05(_0xcf152f,J(_0x30abed,_0x44059b,_0x144b4a),q(_0x494c70[_0x1801b5],_0x44059b,_0x144b4a));}function _0x160d05(_0x4c8e21,_0x20aab9,_0x42fa30){const _0x2a16a2=_0x53a989['userId'],_0xe5527='revision:'+_0x1d4c17+':'+_0x2a16a2+':'+_0x5705c7++,_0x2e08fa=_0x144b4a['createRange'](_0x20aab9,_0x42fa30);_0x44059b['markers']['set'](_0xe5527,_0x2e08fa),null!==_0x2a16a2&&_0x1bd683['add'](_0x2a16a2);}}['_getVidAttributeName'](_0x539c14){switch(_0x539c14['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x512ba5,_0x59217f){_0x512ba5['baseVersion']=null;for(const _0x4ebe36 in _0x512ba5){const _0x109173=_0x512ba5[_0x4ebe36];if(_0x109173 instanceof gt){const _0x3cc437=_0x59217f['get'](_0x109173['root']['rootName']);_0x512ba5[_0x4ebe36]=this['_fixPosition'](_0x109173,_0x3cc437);}if(_0x109173 instanceof vt){const _0x5e59e2=_0x59217f['get'](_0x109173['root']['rootName']);_0x512ba5[_0x4ebe36]=this['_fixRange'](_0x109173,_0x5e59e2);}'root'===_0x4ebe36&&(_0x512ba5['root']=_0x59217f['get'](_0x512ba5['root']['rootName']));}}['_fixRange'](_0x2fc228,_0x4339cd){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2fc228['start'],_0x4339cd),this['_fixPosition'](_0x2fc228['end'],_0x4339cd));}['_fixPosition'](_0x3146c2,_0x2390b2){return this['editor']['model']['createPositionFromPath'](_0x2390b2,_0x3146c2['path'],_0x3146c2['stickiness']);}['_handleInsertOperation'](_0x8ff259){const _0x2b71a2=this['_idsRoots']['get'](_0x8ff259['position']['root']['rootName']),_0x2b215d=this['_fixPosition'](_0x8ff259['position'],_0x2b71a2),_0x117abd=null===_0x8ff259['_authorId']?null:_0x8ff259['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfe277=_0x2b215d['parent'],_0x374817=this['_revisionId'],_0x4ad98d=[];for(const _0x1478d2 of _0x8ff259['nodes'])if(_0x1478d2['is']('element'))_0x4ad98d['push'](this['_makeIdsRoot'](_0x1478d2));else{for(let _0x1b2867=0x0;_0x1b2867<_0x1478d2['offsetSize'];_0x1b2867++)_0x4ad98d['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x45d7f0=this['_revisionId'];for(let _0x50ad60=_0x374817;_0x50ad60<_0x45d7f0;_0x50ad60++)this['_touched']['set'](_0x50ad60,{'userId':_0x117abd});_0xfe277['_insertChild'](_0x2b215d['offset'],_0x4ad98d);}['_handleMoveOperation'](_0x173240){(_0x173240=this['_cloneOperation'](_0x173240,this['_idsRoots']))['_execute']();const _0x3cba08=null===_0x173240['_authorId']?null:_0x173240['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56aca9=_0x173240['getMovedRangeStart'](),_0x45f1bd=_0x56aca9['parent'],_0x421d77=_0x56aca9['offset'];!function _0x586e56(_0x3b155a,_0x127a53,_0x56dc6f,_0x3a4a9f){for(let _0x4d59ed=_0x56dc6f;_0x4d59ed<_0x3a4a9f;_0x4d59ed++){const _0xc121a9=_0x127a53['getChild'](_0x4d59ed);_0xc121a9['is']('element','$text')?_0x3b155a['set'](_0xc121a9['getAttribute']('vid'),{'userId':_0x3cba08}):(_0x3b155a['set'](_0xc121a9['getAttribute']('vid_start'),{'userId':_0x3cba08}),_0x586e56(_0x3b155a,_0xc121a9,0x0,_0xc121a9['childCount']),_0x3b155a['set'](_0xc121a9['getAttribute']('vid_end'),{'userId':_0x3cba08}));}}(this['_touched'],_0x45f1bd,_0x421d77,_0x421d77+_0x173240['howMany']);}['_handleMergeOperation'](_0x54272f){const _0xd3e70f=null===(_0x54272f=this['_cloneOperation'](_0x54272f,this['_idsRoots']))['_authorId']?null:_0x54272f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4db9ee=_0x54272f['targetPosition']['parent'],_0x410b1f=_0x54272f['sourcePosition']['parent'],_0xb182=_0x4db9ee['getAttribute']('vid_end'),_0x5a2f49=_0x410b1f['getAttribute']('vid_start');_0x4db9ee['_setAttribute']('vid_end',_0x410b1f['getAttribute']('vid_end')),_0x410b1f['_setAttribute']('vid_end',_0xb182),this['_touched']['set'](_0x5a2f49,{'userId':_0xd3e70f}),this['_touched']['set'](_0xb182,{'userId':_0xd3e70f}),_0x54272f['_execute']();}['_handleSplitOperation'](_0x4d3672){const _0x2bd32f=null===(_0x4d3672=this['_cloneOperation'](_0x4d3672,this['_idsRoots']))['_authorId']?null:_0x4d3672['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf71313=_0x4d3672['graveyardPosition'],_0x58f544=_0x4d3672['splitPosition']['parent'];_0x4d3672['_execute']();const _0x11836b=_0x58f544['getAttribute']('vid_end'),_0x1ee3bb=_0x4d3672['insertionPosition']['nodeAfter'];if(_0xf71313){const _0x51e074=_0x1ee3bb['getAttribute']('vid_end'),_0x165f86=_0x58f544['getAttribute']('vid_end');_0x58f544['_setAttribute']('vid_end',_0x51e074),_0x1ee3bb['_setAttribute']('vid_end',_0x165f86),this['_touched']['set'](_0x58f544['getAttribute']('vid_end'),{'userId':_0x2bd32f}),this['_touched']['set'](_0x1ee3bb['getAttribute']('vid_start'),{'userId':_0x2bd32f});}else{const _0x31e73d=this['_revisionId']++,_0x25d2e2=this['_revisionId']++;_0x58f544['_setAttribute']('vid_end',_0x31e73d),_0x1ee3bb['_setAttribute']('vid_start',_0x25d2e2),_0x1ee3bb['_setAttribute']('vid_end',_0x11836b),this['_touched']['set'](_0x31e73d,{'userId':_0x2bd32f}),this['_touched']['set'](_0x25d2e2,{'userId':_0x2bd32f});}}['_handleMarkerOperation'](_0x533505){if(!_0x533505['affectsData'])return;const _0x1c5c50=(_0x533505=this['_cloneOperation'](_0x533505,this['_diffRoots']))['oldRange']?_0x533505['oldRange']['root']:null,_0x421cc6=_0x533505['newRange']?_0x533505['newRange']['root']:null;_0x1c5c50&&this['_markers']['delete'](_0x533505['name']),_0x421cc6&&this['_markers']['set'](_0x533505['name'],_0x533505['newRange']['clone']());const _0x32b440=null===_0x533505['_authorId']?null:_0x533505['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bca63=_0x533505['name'];if(!this['_touchedMarkers']['has'](_0x2bca63))return void this['_touchedMarkers']['set'](_0x2bca63,{'range':_0x533505['oldRange'],'userId':_0x32b440});const _0x40bcc6=this['_touchedMarkers']['get'](_0x2bca63),_0x3e39ed=_0x40bcc6['range'],_0x17ebc3=_0x533505['newRange'];null==_0x3e39ed&&null==_0x17ebc3||_0x3e39ed&&_0x17ebc3&&_0x3e39ed['isEqual'](_0x17ebc3)?this['_touchedMarkers']['delete'](_0x533505['name']):_0x40bcc6['userId']=_0x32b440;}['_handleRootOperation'](_0x1e6456,_0x353553){this['_diffRoots']['has'](_0x1e6456['rootName'])?this['_diffRoots']['get'](_0x1e6456['rootName'])['_isAttached']=_0x1e6456['isAdd']:(this['_diffRoots']['set'](_0x1e6456['rootName'],B(_0x1e6456['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e6456['rootName'],{}),_0x353553&&this['_idsRoots']['set'](_0x1e6456['rootName'],B(_0x1e6456['rootName'],!0x0)));const _0x3639c7=null===_0x1e6456['_authorId']?null:_0x1e6456['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b9436=this['_touchedRoots']['get'](_0x1e6456['rootName']);_0x5b9436&&_0x5b9436['userId']===_0x3639c7?this['_touchedRoots']['delete'](_0x1e6456['rootName']):this['_touchedRoots']['set'](_0x1e6456['rootName'],{'userId':_0x3639c7,'isAttached':_0x1e6456['isAdd']});}['_handleRootAttributeOperation'](_0x3f38cb){const _0x3c4286=this['_diffRootsAttributes']['get'](_0x3f38cb['root']['rootName']);null===_0x3f38cb['newValue']?delete _0x3c4286[_0x3f38cb['key']]:_0x3c4286[_0x3f38cb['key']]=_0x3f38cb['newValue'];}}function F(_0x18d478){const _0x330720=B(_0x18d478['rootName'],_0x18d478['isAttached']());for(const _0x38f82e of _0x18d478['getChildren']()){const _0x400da1=_0x38f82e['_clone'](!0x0);_0x330720['_appendChild'](_0x400da1);}return _0x330720;}function B(_0x4c45ef,_0x5060d3=!0x0){const _0xf38868=new wt();return _0xf38868['rootName']=_0x4c45ef,_0xf38868['_isAttached']=_0x5060d3,_0xf38868['isAttached']=()=>_0xf38868['_isAttached'],_0xf38868;}function J(_0x4e9e29,_0x1344e8,_0x207e0c){const _0x429140='elementEnd'==_0x4e9e29['type']?_0x207e0c['createPositionAt'](_0x4e9e29['item'],'end'):_0x207e0c['createPositionBefore'](_0x4e9e29['item']);return _0x207e0c['createPositionFromPath'](_0x1344e8,_0x429140['path'],_0x429140['stickiness']);}function q(_0xefadd2,_0x281377,_0x115391){const _0x146e08='elementStart'==_0xefadd2['type']?_0x115391['createPositionAt'](_0xefadd2['item'],0x0):_0x115391['createPositionAfter'](_0xefadd2['item']);return _0x115391['createPositionFromPath'](_0x281377,_0x146e08['path'],_0x146e08['stickiness']);}class hs extends _0x59c2ca{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1896ab,_0x6d8c37){super(_0x1896ab),this['focusTracker']=new _0x426056(),this['keystrokes']=new _0x5bb513(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x6d8c37),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'](),_0x2b7941({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x151553=_0x3347bc=>_0x3347bc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x151553),this['keystrokes']['set']('arrowleft',_0x151553),this['keystrokes']['set']('arrowup',_0x151553),this['keystrokes']['set']('arrowdown',_0x151553);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3cbd2b){this['revisionNameInputView']['fieldView']['element']['value']=_0x3cbd2b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x539bc3){const _0x479067=new at(this['locale'],_0x2931d8),_0x13b4ca=_0x479067['fieldView'];_0x13b4ca['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x26e258=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x539bc3&&(_0x26e258+='\x20('+R(this['locale'],'optional')+')'),(_0x479067['label']=_0x26e258,_0x13b4ca['on']('input',()=>{this['revisionNameInputValue']=_0x13b4ca['element']['value']['trim']();}),_0x479067);}}class u extends _0x5a5f64{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x12f5be=this['editor'],_0x130906=_0x12f5be['plugins']['get']('RevisionTracker');_0x12f5be['ui']['componentFactory']['add']('revisionHistory',_0x4b6957=>{const _0x5144d8=_0x40e817(_0x4b6957),_0x45eb3d=_0x5144d8['panelView']['children'],_0x4a1ffd=new _0xab325d(_0x4b6957),_0x5ae1c8=new te(_0x4b6957),_0x5853cb=new _0x3b013d(_0x4b6957),_0xeacc99=new te(_0x4b6957),_0x5c9290=new _0x3b013d(_0x4b6957);return _0x5144d8['bind']('isEnabled')['to'](_0x130906,'isReady',_0x130906,'isEnabled',_0x12f5be,'isReadOnly',(_0x4b8c69,_0xa5d373,_0xdfcfd5)=>_0x4b8c69&&_0xa5d373&&!_0xdfcfd5),_0x5144d8['buttonView']['set']({'icon':_0x2b22d2['history'],'label':R(_0x4b6957,'Revision\x20history'),'tooltip':!0x0}),_0x5853cb['set']({'label':R(_0x4b6957,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5853cb['bind']('isEnabled')['to'](_0x130906,'isReady',_0x130906,'isEnabled',_0x12f5be,'isReadOnly',(_0x385a2b,_0x287c53,_0x5786d5)=>_0x385a2b&&_0x287c53&&!_0x5786d5),_0x5853cb['on']('execute',()=>this['_showDialog']()),_0x5c9290['set']({'label':R(_0x4b6957,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5c9290['bind']('isEnabled')['to'](_0x130906,'isReady',_0x12f5be,'isReadOnly',(_0x2bc45d,_0x4ab749)=>_0x2bc45d&&!_0x4ab749),_0x5c9290['on']('execute',()=>{_0x12f5be['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5144d8['isOpen']=!0x1,_0x12f5be['editing']['view']['focus']();}),_0x5ae1c8['children']['add'](_0x5853cb),_0xeacc99['children']['add'](_0x5c9290),_0x4a1ffd['role']='menu',_0x4a1ffd['items']['addMany']([_0x5ae1c8,_0xeacc99]),_0x45eb3d['add'](_0x4a1ffd),_0x5144d8;}),_0x12f5be['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x14ecd1=this['editor'],_0x146fa0=_0x14ecd1['locale'],_0x4d689e=new _0x8cd669(_0x146fa0),_0x3d0983=new _0x3181c6(_0x146fa0);_0x4d689e['buttonView']['set']({'icon':_0x2b22d2['history'],'label':R(_0x146fa0,'Revision\x20history')});const _0xc3d78c=new _0x41624a(_0x146fa0,_0x4d689e),_0x134035=new _0x58d60f(_0x146fa0);_0x134035['set']({'label':R(_0x146fa0,'Save\x20current\x20revision')}),_0x134035['delegate']('execute')['to'](_0x4d689e),_0x134035['on']('execute',()=>{this['_showDialog']();}),_0xc3d78c['children']['add'](_0x134035),_0x3d0983['items']['add'](_0xc3d78c);const _0x807ae0=new _0x41624a(_0x146fa0,_0x4d689e),_0xbd37e5=new _0x58d60f(_0x146fa0);return _0xbd37e5['set']({'label':R(_0x146fa0,'Open\x20revision\x20history')}),_0xbd37e5['delegate']('execute')['to'](_0x4d689e),_0xbd37e5['on']('execute',()=>{_0x14ecd1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x807ae0['children']['add'](_0xbd37e5),_0x3d0983['items']['add'](_0x807ae0),_0x4d689e['panelView']['children']['add'](_0x3d0983),_0x4d689e;}['_showDialog'](){const _0x6edda2=this['editor'],_0x382b8d=_0x6edda2['locale'],_0x212516=_0x6edda2['plugins']['get']('Dialog'),_0x34ee5b=_0x6edda2['plugins']['get']('RevisionTracker');function _0x492475(_0x3b1585){_0x6edda2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3b1585['revisionName']?_0x3b1585['revisionNameInputView']['errorText']=R(_0x382b8d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x6edda2['plugins']['get'](l)['saveRevision']({'name':_0x3b1585['revisionName']}),_0x212516['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x492475(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x212516['show']({'id':'revisionSave','title':R(_0x382b8d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x6edda2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x212516['hide']()},{'label':R(_0x6edda2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4ed09b){_0x4ed09b['bind']('isEnabled')['to'](_0x34ee5b,'isReady',_0x34ee5b,'isEnabled',_0x6edda2,'isReadOnly',(_0x204f12,_0x29073c,_0x26cc5a)=>_0x204f12&&_0x29073c&&!_0x26cc5a);},'onExecute':()=>_0x492475(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1b3681=this['editor'],_0x40b55a=_0x1b3681['locale'];this['_saveRevisionFormView']=new hs(_0x40b55a,_0x1b3681['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x59c2ca{['changeId'];['_model'];constructor(_0x2a3899,_0x5a09c7){super(_0x2a3899),this['_model']=_0x5a09c7,this['changeId']=_0x5a09c7['id'];const _0x1cefa2=this['bindTemplate'],_0xe347cb=R(_0x2a3899,_0x5a09c7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5a09c7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5a09c7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1cefa2['to']('type',_0x87bdcf=>'ck-revision-change__'+_0x87bdcf)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe347cb}]},{'text':'\x20'+_0x5a09c7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x42fc44(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1e13ca){super(),this['id']=_0x1e13ca['id']||_0x45c6ed(),this['author']=_0x1e13ca['author'],this['type']=_0x1e13ca['type'],this['data']=_0x1e13ca['data']||{},this['rootName']=_0x1e13ca['rootName'],this['set']('createdAt',_0x1e13ca['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(_0x153db1,_0x464f2a){this['newRevisionId']=_0x153db1,this['oldRevisionId']=_0x464f2a,this['changes']=new _0xc46275();}['_setChanges'](_0x140c25){for(const _0x332c7d of _0x140c25)this['changes']['add'](_0x332c7d);}}const Z={'c':_0x34a5a1,'a':_0x598c3e,'e':_0x29e244,'r':_0x38a7d8,'u':_0x196df5};class d extends _0x5a5f64{['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[_0x13a039,_0xc8f96d,j];}constructor(_0x57908d){super(_0x57908d),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',(_0x2263d5,_0x2e6017,_0x1e0ea4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x219635=>{for(const _0x1ff8b9 of this['editor']['editing']['view']['document']['roots'])_0x1e0ea4?_0x219635['removeClass']('ck-editor__editable__overlay',_0x1ff8b9):_0x219635['addClass']('ck-editor__editable__overlay',_0x1ff8b9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x56a33=>null!==_0x56a33),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5a4e67,_0x315b99,_0x491d61)=>_0x5a4e67&&_0x491d61?_0x315b99['changes']['getIndex'](_0x491d61):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x306ca9,_0x2fd040)=>_0x306ca9?_0x2fd040['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xc8f96d);}['init'](){const _0x2c87c5=this['editor'],_0x502983=new bt(_0x2c87c5,{'direction':'backward'}),_0x393ab9=new bt(_0x2c87c5,{'direction':'forward'});(_0x2c87c5['commands']['add']('showPreviousChange',_0x502983),_0x2c87c5['commands']['add']('showNextChange',_0x393ab9),_0x2c87c5['commands']['add']('restoreRevision',new yt(_0x2c87c5)),this['on']('change:numberOfChanges',()=>{_0x502983['refresh'](),_0x393ab9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2c87c5['enableReadOnlyMode']('revision-viewer'),_0x2c87c5['plugins']['has']('WidgetToolbarRepository'))&&_0x2c87c5['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1a13b9){await this['loadRevisionData'](_0x1a13b9);const _0x2ee7d7={};for(const _0x4a12a7 in _0x1a13b9['diffData']){if(_0x1a13b9['diffData'][_0x4a12a7]['attachChange']&&!_0x1a13b9['diffData'][_0x4a12a7]['attachChange']['isAttached'])continue;const _0x2e8b25=this['_removeRevisionMarkers'](JSON['parse'](_0x1a13b9['diffData'][_0x4a12a7]['insertions'])),_0x5e4e5d=this['editor']['editing']['view']['document'],_0x4fed5b=new _0x29157b(_0x5e4e5d,_0x2e8b25['map'](_0x5f5dd6=>this['_getViewObj'](_0x5f5dd6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2ee7d7[_0x4a12a7]=this['editor']['data']['processor']['toData'](_0x4fed5b),this['editor']['data']['processor']['useFillerType']('default');}return _0x2ee7d7;}async['getRevisionRootsAttributes'](_0x245b1b){await this['loadRevisionData'](_0x245b1b);const _0x5eeff5={};for(const _0x56d918 in _0x245b1b['diffData'])_0x245b1b['diffData'][_0x56d918]['attachChange']&&!_0x245b1b['diffData'][_0x56d918]['attachChange']['isAttached']||(_0x5eeff5[_0x56d918]=_0x245b1b['diffData'][_0x56d918]['attributesAfter']||{});return _0x5eeff5;}['_removeRevisionMarkers'](_0x43c751){return(_0x43c751=_0x43c751['filter'](_0x227ed3=>!_0x227ed3['name']||'revision-start'!==_0x227ed3['name']&&'revision-end'!==_0x227ed3['name']))['forEach'](_0x292c6f=>{'string'!=typeof _0x292c6f&&(_0x292c6f['children']=this['_removeRevisionMarkers'](_0x292c6f['children']),_0x292c6f['attributes']=_0x292c6f['attributes']['filter'](_0x1243c6=>!_0x1243c6[0x0]['startsWith']('data-revision-')));}),_0x43c751;}async['compare'](_0x28507d,_0x3093ad,_0x3b1ad7=!0x1){if(!this['isEnabled'])return;const _0x525b09=this['diff'],_0x21db0c=this['repository'],_0x27f3f6='string'==typeof _0x28507d?_0x21db0c['getRevision'](_0x28507d):_0x28507d,_0x3e4b8f='string'==typeof _0x3093ad?_0x21db0c['getRevision'](_0x3093ad):_0x3093ad,_0x2d2f37=_0x27f3f6['id'],_0x348f52=_0x3e4b8f?_0x3e4b8f['id']:null;if(!_0x3b1ad7&&this['diff']&&this['diff']['newRevisionId']===_0x2d2f37&&this['diff']['oldRevisionId']===_0x348f52)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2d2f37,_0x348f52);const _0x4b82df=this['_getRevisionsRange'](_0x27f3f6,_0x3e4b8f,!0x0)['map'](_0x500a4=>this['loadRevisionData'](_0x500a4));return _0x4b82df['push'](new Promise(_0x2969f2=>{setTimeout(_0x2969f2,0x14);})),Promise['all'](_0x4b82df)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1907d3=this['_getDiff'](_0x2d2f37,_0x348f52);for(const _0x5dd44f of _0x1907d3['changes'])this['_changeIdToChange']['set'](_0x5dd44f['id'],_0x5dd44f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x59eb56=>{for(const _0x9e9eae of this['editor']['model']['document']['getRootNames']())_0x59eb56['detachRoot'](_0x9e9eae);for(const _0x241771 of Object['keys'](_0x1907d3['model'])){const _0x324e79=_0x59eb56['addRoot'](_0x241771);for(const _0x43acaf of Object['keys'](_0x1907d3['attributes'][_0x241771]))_0x59eb56['setAttribute'](_0x43acaf,_0x1907d3['attributes'][_0x241771][_0x43acaf],_0x324e79);_0x59eb56['insert'](_0x1907d3['model'][_0x241771],_0x324e79,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1907d3['changes'])),this['isReady']=!0x0;})['catch'](_0x2bf360=>{console['error'](_0x2bf360),this['_cleanUp'](),_0x525b09&&(this['diff']=_0x525b09),this['isReady']=!0x0;});}['addRevisionData'](_0x1b1bab,_0x3499d5){const _0x1e431e=this['repository']['createRevision'](_0x1b1bab);return _0x1e431e['on']('_update',(_0x240a66,_0x185b89,_0x556ed8)=>_0x3499d5(_0x185b89,_0x556ed8,_0x1e431e)),this['repository']['addRevision'](_0x1e431e),_0x1e431e;}['loadRevisionData'](_0x1e3993){if(!_0x1e3993||_0x1e3993['diffData'])return Promise['resolve']();{const _0x185fc1=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x185fc1,'revisionId':_0x1e3993['id']})['then'](_0x4c3055=>{_0x1e3993['_update']({'diffData':_0x4c3055['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},_0x14c7c8=>{for(const _0x4cfb50 of this['editor']['model']['document']['getRootNames']())_0x14c7c8['detachRoot'](_0x4cfb50);});}['_sortAndFilterDiffChanges'](_0x387ac4){const _0x170aa6=[],_0x1914d3=new Map();for(const _0xf247c4 of this['editor']['model']['document']['getRootNames']()){const _0x9fcd70=this['editor']['editing']['view']['getDomRoot'](_0xf247c4);if(!_0x9fcd70)continue;const _0x3cf6d9=_0x9fcd70['getClientRects']()['item'](0x0);_0x3cf6d9&&(_0x170aa6['push'](_0xf247c4),_0x1914d3['set'](_0xf247c4,_0x3cf6d9));}return _0x170aa6['sort']((_0x646d61,_0x6540f6)=>{const _0x5a9d9b=_0x1914d3['get'](_0x646d61),_0x131b66=_0x1914d3['get'](_0x6540f6);return _0x5a9d9b['y']-_0x131b66['y']||_0x5a9d9b['x']-_0x131b66['x'];}),(_0x387ac4=_0x387ac4['filter'](_0x445483=>_0x170aa6['includes'](_0x445483['rootName'])))['sort']((_0x23c342,_0x4368e8)=>_0x170aa6['indexOf'](_0x23c342['rootName'])-_0x170aa6['indexOf'](_0x4368e8['rootName'])),_0x387ac4;}['_makeTape'](_0x150cf0){const _0x526906=Array['from'](_0x150cf0['markers'])['filter'](([_0x25fdd9,_0x3e6d90])=>_0x25fdd9['startsWith']('revision:')&&!_0x3e6d90['isCollapsed']),_0x48b5ed=Array['from'](this['editor']['model']['createRangeIn'](_0x150cf0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x526906['length'])for(const _0x480be6 of _0x48b5ed){const [_0x39e529,_0x47e5e0]=_0x526906[0x0],[,_0x1ee717,_0x21b1f6]=_0x39e529['split'](':');if(_0x47e5e0['end']['isEqual'](_0x480be6['nextPosition'])&&_0x526906['shift'](),(_0x480be6['previousPosition']['isEqual'](_0x47e5e0['start'])||_0x480be6['previousPosition']['isAfter'](_0x47e5e0['start']))&&('insertion'==_0x1ee717?_0x480be6['isAdded']={'userId':_0x21b1f6}:'deletion'==_0x1ee717&&(_0x480be6['isRemoved']={'userId':_0x21b1f6})),0x0==_0x526906['length'])break;}return _0x48b5ed;}['_refreshStartEndIndex'](_0x593f1c){const _0x315cac=new Map();for(let _0x2c6f20=0x0;_0x2c6f20<_0x593f1c['length'];_0x2c6f20++)'text'===_0x593f1c[_0x2c6f20]['type']?(_0x593f1c[_0x2c6f20]['item']['startIndex']=_0x2c6f20,_0x593f1c[_0x2c6f20]['item']['endIndex']=_0x2c6f20):('elementStart'===_0x593f1c[_0x2c6f20]['type']?_0x593f1c[_0x2c6f20]['item']['startIndex']=_0x2c6f20:'elementEnd'===_0x593f1c[_0x2c6f20]['type']&&(_0x593f1c[_0x2c6f20]['item']['endIndex']=_0x2c6f20),_0x315cac['set'](_0x593f1c[_0x2c6f20]['id'],_0x2c6f20));for(const _0x30e8f2 of _0x315cac['values']())'elementStart'===_0x593f1c[_0x30e8f2]['type']?_0x593f1c[_0x30e8f2]['item']['endIndex']=_0x315cac['get'](_0x593f1c[_0x30e8f2]['pairId']):'elementEnd'===_0x593f1c[_0x30e8f2]['type']&&(_0x593f1c[_0x30e8f2]['item']['startIndex']=_0x315cac['get'](_0x593f1c[_0x30e8f2]['pairId']));}['_processTape'](_0x17f139){for(let _0x83f327=0x0;_0x83f327<_0x17f139['length'];_0x83f327++){if('elementStart'===_0x17f139[_0x83f327]['type'])_0x17f139[_0x83f327]['item']['startIndex']=_0x83f327;else{if('elementEnd'===_0x17f139[_0x83f327]['type']){_0x17f139[_0x83f327]['item']['endIndex']=_0x83f327;const _0x516fec=_0x17f139[_0x83f327]['item']['startIndex'];_0x17f139[_0x516fec]['pairId']=_0x17f139[_0x83f327]['id'],_0x17f139[_0x83f327]['pairId']=_0x17f139[_0x516fec]['id'];}else _0x17f139[_0x83f327]['item']['startIndex']=_0x83f327,_0x17f139[_0x83f327]['item']['endIndex']=_0x83f327,_0x17f139[_0x83f327]['pairId']=null;}_0x17f139[_0x83f327]['markersStart']||(_0x17f139[_0x83f327]['markersStart']=[],_0x17f139[_0x83f327]['markersEnd']=[]);}}['_markInsertions'](_0x2494c2,_0x24e6fd){const _0x104de4=_0x2494c2['filter'](_0x4db2ed=>!_0x4db2ed['isAdded']);for(let _0x5445d3=0x0;_0x5445d3<_0x24e6fd['length'];_0x5445d3++)_0x24e6fd[_0x5445d3]['isAdded']&&(_0x104de4[_0x5445d3]['isAdded']=_0x24e6fd[_0x5445d3]['isAdded']);}['_makeModelFromViewString'](_0x51a208){const _0x4853d=JSON['parse'](_0x51a208),_0x5d63ec=this['editor']['editing']['view']['document'],_0x452e3f=new _0x29157b(_0x5d63ec,_0x4853d['map'](_0x2c6363=>this['_getViewObj'](_0x2c6363)));return this['editor']['data']['toModel'](_0x452e3f);}['_getViewObj'](_0x50d6ed){const _0x46bc03=this['editor']['editing']['view']['document'];if('string'==typeof _0x50d6ed)return new _0x580579(_0x46bc03,_0x50d6ed);{const _0x48d34e=_0x50d6ed['children']['map'](_0x4e8a7d=>this['_getViewObj'](_0x4e8a7d));return new(Z[_0x50d6ed['type']]||_0x9fe0f9)(_0x46bc03,_0x50d6ed['name'],_0x50d6ed['attributes'],_0x48d34e);}}['_getDiff'](_0x51efd1,_0x5e3ae6=null){const _0x1d1607=this['repository']['getRevision'](_0x51efd1),_0x3d3b88=_0x5e3ae6?this['repository']['getRevision'](_0x5e3ae6):null,_0x4084e6=this['_getRevisionsRange'](_0x1d1607,_0x3d3b88),_0x332264=_0x4084e6[_0x4084e6['length']-0x1],_0x22742d=new Map(),_0x275a00={'model':{},'attributes':{},'changes':[]},_0x3fd309=new Set(),_0x136e5d=new Map();for(let _0x3bb811=_0x4084e6['length']-0x1;_0x3bb811>=0x0;_0x3bb811--){const _0x5a0920=_0x4084e6[_0x3bb811];for(const _0x16d40f of Object['keys'](_0x5a0920['diffData']))if(_0x5a0920['diffData'][_0x16d40f]['attachChange']){const _0x190a6f=_0x5a0920['diffData'][_0x16d40f]['attachChange'];_0x190a6f['isAttached']?(_0x3fd309['add'](_0x16d40f),_0x136e5d['has'](_0x16d40f)&&_0x136e5d['get'](_0x16d40f)['userId']==_0x190a6f['userId']?_0x136e5d['delete'](_0x16d40f):_0x136e5d['set'](_0x16d40f,_0x190a6f)):_0x136e5d['has'](_0x16d40f)?(_0x3fd309['delete'](_0x16d40f),_0x136e5d['delete'](_0x16d40f)):(_0x3fd309['add'](_0x16d40f),_0x136e5d['set'](_0x16d40f,_0x190a6f));}else _0x3fd309['add'](_0x16d40f);}for(const _0x494b33 of _0x3fd309){const _0x3e2ee9=_0x136e5d['has'](_0x494b33)&&!_0x136e5d['get'](_0x494b33)['isAttached'];let _0x1b860c=_0x3e2ee9?_0x4084e6['length']-0x1:0x0;const _0x1be726=_0x3e2ee9?-0x1:0x1;for(;_0x4084e6[_0x1b860c];){const _0x4042c0=_0x4084e6[_0x1b860c];if(_0x4042c0['diffData'][_0x494b33]){const _0x147651=_0x3e2ee9?_0x4042c0['diffData'][_0x494b33]['attributesBefore']:_0x4042c0['diffData'][_0x494b33]['attributesAfter'];_0x275a00['attributes'][_0x494b33]=_0x147651?_0x1fbbd4(_0x147651):{};break;}_0x1b860c+=_0x1be726;}}for(const _0x16817c of _0x4084e6){_0x16817c['model']={};for(const _0x6495da of _0x16817c['authors'])_0x22742d['set'](_0x6495da['id'],_0x6495da);for(const _0x4bc340 of _0x3fd309){const _0xd1ea91=_0x16817c['diffData'][_0x4bc340]?_0x16817c['diffData'][_0x4bc340]['insertions']:'[]',_0x55cade=_0x16817c['diffData'][_0x4bc340]?_0x16817c['diffData'][_0x4bc340]['deletions']:'[]';_0x16817c['model'][_0x4bc340]={'insertions':this['_makeModelFromViewString'](_0xd1ea91),'deletions':this['_makeModelFromViewString'](_0x55cade)};}}for(const _0x306eb5 of _0x3fd309){let _0x105317=null,_0x440771=0x0;const _0x5f49a9=new Map(Array['from'](_0x1d1607['model'][_0x306eb5]['insertions']['markers'])['filter'](([_0x483bf3])=>!_0x483bf3['startsWith']('revision:')));let _0x20d50f=0x0;for(const _0x14a72f of _0x4084e6){const _0x2a5321=this['_makeTape'](_0x14a72f['model'][_0x306eb5]['insertions']);_0x14a72f==_0x1d1607?(_0x105317=_0x2a5321,_0x440771=_0x105317['length'],_0x105317['forEach'](_0x14a8d0=>{_0x14a8d0['id']=_0x20d50f++;}),this['_processTape'](_0x105317)):this['_markInsertions'](_0x105317,_0x2a5321);const _0x5b536c=_0x105317['filter'](_0x15491b=>!_0x15491b['isAdded'])['map'](_0x2f7325=>_0x2f7325['id']);let _0x48da24=0x0;const _0x2a1e41=this['_makeTape'](_0x14a72f['model'][_0x306eb5]['deletions']);_0x2a1e41['forEach'](_0x139f54=>{_0x139f54['isRemoved']?_0x139f54['id']=_0x440771++:_0x139f54['id']=_0x5b536c[_0x48da24++];}),this['_processTape'](_0x2a1e41),this['_setDistance'](_0x105317,'isAdded'),this['_setDistance'](_0x2a1e41,'isRemoved'),_0x14a72f==_0x1d1607&&this['_markMarkers'](_0x105317,_0x5f49a9),_0x105317=this['_joinTapes'](_0x105317,_0x2a1e41),this['_refreshStartEndIndex'](_0x105317),this['_setDistance'](_0x105317,'isRemoved');}_0x105317=_0x105317['filter'](_0xa8510d=>!(_0xa8510d['isAdded']&&_0xa8510d['isRemoved']));const _0x475c38=new Map(_0x332264['model'][_0x306eb5]['deletions']['markers']),_0x168709=new Set(_0x5f49a9['keys']());for(const _0x564ff2 of _0x475c38['keys']())_0x168709['delete'](_0x564ff2);this['_markSuggestions'](_0x105317,_0x168709),this['_fixObsoleteTags'](_0x105317),_0x105317=this['_removeMissingPairs'](_0x105317),_0x105317=this['_markMismatchedRemovedTags'](_0x105317),_0x105317=this['_removeUnsupportedChanges'](_0x105317);const {root:_0x303dbe,changes:_0x36b525}=this['_makeModelFromTape'](_0x105317,_0x22742d,_0x306eb5);_0x275a00['model'][_0x306eb5]=_0x303dbe;const _0x16f2eb=_0x136e5d['get'](_0x306eb5);if(_0x16f2eb){const _0x570dd9=_0x22742d['get'](_0x16f2eb['userId']),_0x52a12c=new r({'author':_0x570dd9,'type':_0x16f2eb['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x306eb5});_0x36b525['unshift'](_0x52a12c),_0x275a00['attributes'][_0x306eb5]['revisionHistoryAttachChange']=_0x52a12c['id'];}_0x275a00['changes']=_0x275a00['changes']['concat'](_0x36b525);}return _0x275a00;}['_markMarkers'](_0x4d359e,_0x5917f1){for(let _0xfb8bd4=0x0;_0xfb8bd4<_0x4d359e['length'];_0xfb8bd4++)for(const [_0x59b300,_0x4e7b7a]of _0x5917f1)_0x4e7b7a['start']['isEqual'](_0x4d359e[_0xfb8bd4]['previousPosition'])&&_0x4d359e[_0xfb8bd4]['markersStart']['push'](_0x59b300),_0x4e7b7a['end']['isEqual'](_0x4d359e[_0xfb8bd4]['nextPosition'])&&_0x4d359e[_0xfb8bd4]['markersEnd']['push'](_0x59b300);}['_joinTapes'](_0x40888b,_0xd06eb1){let _0x368315=[],_0x2e492c=0x0,_0x34c76a=0x0;for(;_0x2e492c<_0x40888b['length']||_0x34c76a<_0xd06eb1['length'];){const _0x422336=_0x40888b[_0x2e492c]||{},_0x378332=_0xd06eb1[_0x34c76a]||{};if(_0x422336['id']==_0x378332['id'])_0x2e492c++,_0x34c76a++,_0x368315['push'](_0x422336);else{if(_0x378332['isRemoved']&&_0x422336['isAdded']){const {commonTape:_0x44d7c4,iEnd:_0x3ada62,jEnd:_0x5c6b99}=this['_threeWayMerge'](_0x40888b,_0x2e492c,_0xd06eb1,_0x34c76a);_0x368315=_0x368315['concat'](_0x44d7c4),_0x2e492c=_0x3ada62,_0x34c76a=_0x5c6b99;}else _0x378332['isRemoved']?(_0x34c76a++,_0x368315['push'](_0x378332)):(_0x2e492c++,_0x368315['push'](_0x422336));}}return _0x368315;}['_markSuggestions'](_0x5ca50f,_0x470c39){const _0x41ca78=[];for(let _0x1994bd=0x0;_0x1994bd<_0x5ca50f['length'];_0x1994bd++){for(let _0x375291=0x0;_0x375291<_0x5ca50f[_0x1994bd]['markersStart']['length'];_0x375291++){const _0x4f412c=_0x5ca50f[_0x1994bd]['markersStart'][_0x375291];if(!_0x470c39['has'](_0x4f412c))continue;const {group:_0x4191cc,type:_0x110aab,authorId:_0x21462f}=_0x278fd6(_0x4f412c);'revision-suggestion'!=_0x4191cc||'insertion'!=_0x110aab&&'deletion'!=_0x110aab||(_0x41ca78['unshift']({'type':_0x110aab,'name':_0x4f412c,'userId':_0x21462f}),_0x5ca50f[_0x1994bd]['markersStart']['splice'](_0x375291,0x1),_0x375291--);}_0x3e8122(_0x5ca50f[_0x1994bd]);for(let _0x1264c5=0x0;_0x1264c5<_0x5ca50f[_0x1994bd]['markersEnd']['length'];_0x1264c5++){const _0x4f868f=_0x5ca50f[_0x1994bd]['markersEnd'][_0x1264c5];if(!_0x470c39['has'](_0x4f868f))continue;const {group:_0x3efd18,type:_0x153631}=_0x278fd6(_0x4f868f);if('revision-suggestion'!=_0x3efd18||'insertion'!=_0x153631&&'deletion'!=_0x153631)continue;_0x5ca50f[_0x1994bd]['markersEnd']['splice'](_0x1264c5,0x1),_0x1264c5--;const _0x1ebfb4=_0x41ca78['findIndex'](_0x16e82c=>_0x16e82c['name']==_0x4f868f);_0x1ebfb4>-0x1&&_0x41ca78['splice'](_0x1ebfb4,0x1);}}function _0x278fd6(_0x2e3163){const _0x1600e5=_0x2e3163['split'](':');return{'group':_0x1600e5[0x0],'type':_0x1600e5[0x1],'subType':_0x1600e5['length']>=0x5?_0x1600e5[0x2]:null,'id':_0x1600e5['length']<0x5?_0x1600e5[0x2]:_0x1600e5[0x3],'authorId':_0x1600e5['length']<0x5?_0x1600e5[0x3]:_0x1600e5[0x4],'markerCount':0x6==_0x1600e5['length']?_0x1600e5[0x5]:null};}function _0x3e8122(_0x30de5d){for(let _0x572417=0x0;_0x572417<_0x41ca78['length'];_0x572417++){if(_0x30de5d['isAdded']&&'insertion'==_0x41ca78[_0x572417]['type'])return _0x30de5d['isAddSuggestion']=_0x41ca78[_0x572417],void delete _0x30de5d['isAdded'];if(!_0x30de5d['isAdded']&&!_0x30de5d['isRemoved']&&'deletion'==_0x41ca78[_0x572417]['type'])return void(_0x30de5d['isRemoveSuggestion']=_0x41ca78[_0x572417]);}}}['_setDistance'](_0x51648f,_0x46c1ea){let _0x41c873=0x0,_0x5cfbba=!0x1;const _0x1d49b8=new Map();for(const _0x1c7840 of _0x51648f)_0x1c7840[_0x46c1ea]?_0x5cfbba&&(_0x41c873++,_0x5cfbba=!0x1):(_0x41c873++,_0x5cfbba=!0x0),_0x1d49b8['set'](_0x1c7840['id'],_0x41c873);for(let _0x2ddb43=0x0;_0x2ddb43<_0x51648f['length'];_0x2ddb43++){if('isRemoved'==_0x46c1ea&&_0x51648f[_0x2ddb43]['isAdded']||'isAdded'==_0x46c1ea&&_0x51648f[_0x2ddb43]['isRemoved'])continue;if('text'==_0x51648f[_0x2ddb43]['type']){_0x51648f[_0x2ddb43]['distance']=0x0;continue;}const _0xd32339=_0x1d49b8['get'](_0x51648f[_0x2ddb43]['pairId']),_0x1b0b37=_0x1d49b8['get'](_0x51648f[_0x2ddb43]['id']);_0x51648f[_0x2ddb43]['distance']=_0xd32339-_0x1b0b37;}}['_getRevisionsRange'](_0x11767b,_0x2b2be7,_0x10f321=!0x1){const _0x483449=[];let _0x463506=this['repository']['getIndex'](_0x11767b),_0x1f9c7f=this['repository']['getIndex'](_0x2b2be7);for(-0x1==_0x1f9c7f&&(_0x1f9c7f=this['repository']['_revisions']['length'],_0x10f321=!0x1);_0x463506<_0x1f9c7f;)_0x483449['push'](this['repository']['getRevision'](_0x463506)),_0x463506++;return _0x10f321&&_0x483449['push'](this['repository']['getRevision'](_0x463506)),_0x483449;}['_threeWayMerge'](_0x1362e7,_0x215547,_0x1dc4a0,_0x2a4e48){const _0x115bcf=this['editor']['model']['schema'];let _0x200312=_0x215547;for(;_0x1362e7[_0x200312]&&_0x1362e7[_0x200312]['isAdded'];)_0x200312++;let _0x20da61=_0x2a4e48;for(;_0x1dc4a0[_0x20da61]&&_0x1dc4a0[_0x20da61]['isRemoved'];)_0x20da61++;_0x10d60b(_0x1362e7,_0x215547,_0x200312),_0x10d60b(_0x1dc4a0,_0x2a4e48,_0x20da61);const _0x247b59=_0x1dc4a0['slice'](_0x2a4e48,_0x20da61)['concat'](_0x1362e7['slice'](_0x215547,_0x200312));return _0x247b59['sort']((_0x2cd9eb,_0x5532d3)=>_0x2cd9eb['side']!=_0x5532d3['side']?_0x2cd9eb['side']-_0x5532d3['side']:_0x2cd9eb['level']!=_0x5532d3['level']?_0x2cd9eb['level']-_0x5532d3['level']:_0x2cd9eb['distance']!=_0x5532d3['distance']?_0x5532d3['distance']-_0x2cd9eb['distance']:!!_0x2cd9eb['isAdded']!=!!_0x5532d3['isAdded']?-0x1==_0x2cd9eb['side']||0x0==_0x2cd9eb['side']?_0x2cd9eb['isAdded']?-0x1:0x1:_0x2cd9eb['isAdded']?0x1:-0x1:_0x2cd9eb['index']-_0x5532d3['index']),{'commonTape':_0x247b59,'iEnd':_0x200312,'jEnd':_0x20da61};function _0x10d60b(_0x319f0e,_0x2af40d,_0x28bd8a){let _0x4c4945=-0x1,_0x9e57cb=Number['POSITIVE_INFINITY'],_0x5edcd3=!0x0;for(let _0x2c1a17=_0x2af40d;_0x2c1a17<_0x28bd8a;_0x2c1a17++)if(_0x115bcf['isInline'](_0x319f0e[_0x2c1a17]['item'])||(_0x5edcd3=!0x1),_0x319f0e[_0x2c1a17]['item']['startIndex']<_0x2af40d&&(_0x4c4945=_0x2c1a17),_0x319f0e[_0x2c1a17]['item']['endIndex']>=_0x28bd8a){_0x9e57cb=_0x2c1a17;break;}_0x5edcd3&&(_0x4c4945=_0x28bd8a-0x1);for(let _0x36bc39=_0x2af40d;_0x36bc39<_0x28bd8a;_0x36bc39++)_0x319f0e[_0x36bc39]['side']=_0x36bc39<=_0x4c4945?-0x1:_0x36bc39<_0x9e57cb?0x0:0x1,_0x319f0e[_0x36bc39]['index']=_0x36bc39;let _0x1e3b7e=0x0;for(let _0x247509=_0x2af40d;_0x247509<=_0x4c4945;_0x247509++)0x0==_0x319f0e[_0x247509]['distance']?_0x319f0e[_0x247509]['level']=_0x1e3b7e:(_0x1e3b7e++,_0x319f0e[_0x247509]['level']=_0x1e3b7e,_0x1e3b7e++);for(let _0x348dab=_0x2af40d;_0x348dab<_0x28bd8a;_0x348dab++)0x0==_0x319f0e[_0x348dab]['side']&&(_0x319f0e[_0x348dab]['level']=_0x1e3b7e);_0x1e3b7e=0x0;for(let _0x105c1a=_0x28bd8a-0x1;_0x105c1a>=_0x9e57cb;_0x105c1a--)0x0==_0x319f0e[_0x105c1a]['distance']?_0x319f0e[_0x105c1a]['level']=_0x1e3b7e:(_0x1e3b7e--,_0x319f0e[_0x105c1a]['level']=_0x1e3b7e,_0x1e3b7e--);}}['_fixObsoleteTags'](_0x5b5b06){const _0xeafc5d=new Map(),_0xe9a752=this['editor']['model']['schema'];for(let _0x57a2fe=0x1;_0x57a2fe<_0x5b5b06['length'];_0x57a2fe++){let _0x504211,_0x176562,_0x3c8ab4;const _0x1d3643=_0x5b5b06[_0x57a2fe],_0xe7b3a5=_0x5b5b06[_0x57a2fe-0x1];if('text'==_0x1d3643['type'])continue;if(_0x1d3643['type']!=_0xe7b3a5['type'])continue;if(!_0xe9a752['isBlock'](_0xe7b3a5['item'])||_0xe9a752['isLimit'](_0xe7b3a5['item']))continue;if(!_0xe9a752['isBlock'](_0x1d3643['item'])||_0xe9a752['isLimit'](_0x1d3643['item']))continue;if((_0x5b5b06[_0x57a2fe]['isAdded']||_0x5b5b06[_0x57a2fe]['isAddSuggestion'])&&_0x5b5b06[_0x57a2fe-0x1]['isRemoved'])_0x504211=_0x5b5b06[_0x57a2fe],_0x176562=_0x5b5b06[_0x57a2fe-0x1],_0x3c8ab4=_0x57a2fe-0x1;else{if(!_0x5b5b06[_0x57a2fe]['isRemoved']||!_0x5b5b06[_0x57a2fe-0x1]['isAdded']&&!_0x5b5b06[_0x57a2fe-0x1]['isAddSuggestion'])continue;_0x504211=_0x5b5b06[_0x57a2fe-0x1],_0x176562=_0x5b5b06[_0x57a2fe],_0x3c8ab4=_0x57a2fe;}const _0x5e92d0=_0x504211['level']==_0x176562['level'],_0x4d04a7=Math['abs'](_0x504211['level'])<Math['abs'](_0x176562['level'])&&0x0==_0x176562['distance'];(_0x5e92d0||_0x4d04a7)&&(_0xeafc5d['set'](_0x176562['id'],_0x504211['id']),_0x5b5b06['splice'](_0x3c8ab4,0x1),_0x57a2fe--,_0x504211['isAdded']=!0x1);}for(let _0x3e7ea4=0x0;_0x3e7ea4<_0x5b5b06['length'];_0x3e7ea4++)_0xeafc5d['has'](_0x5b5b06[_0x3e7ea4]['pairId'])&&(_0x5b5b06[_0x3e7ea4]['pairId']=_0xeafc5d['get'](_0x5b5b06[_0x3e7ea4]['pairId']));}['_removeMissingPairs'](_0x136a6d){const _0x584409=new Set(_0x136a6d['map'](_0x50e67d=>_0x50e67d['id']));for(let _0x5da352=0x0;_0x5da352<_0x136a6d['length'];_0x5da352++)_0x584409['has'](_0x136a6d[_0x5da352]['pairId'])||0x0==_0x136a6d[_0x5da352]['distance']||(_0x136a6d[_0x5da352]['isIncorrect']=!0x0);return _0x136a6d['filter'](_0x187ce5=>!_0x187ce5['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4be1df){const _0x3c5e12=new Set();for(let _0x344c98=0x0;_0x344c98<_0x4be1df['length'];_0x344c98++){if(_0x3c5e12['has'](_0x4be1df[_0x344c98]['id'])&&_0x4be1df[_0x344c98]['isRemoved']&&(_0x4be1df[_0x344c98]['isIncorrect']=!0x0),_0x4be1df[_0x344c98]['isIncorrect'])continue;if(0x0==_0x4be1df[_0x344c98]['distance'])continue;if('elementStart'!=_0x4be1df[_0x344c98]['type'])continue;if(null==_0x4be1df[_0x344c98]['pairId'])continue;let _0x26bb7a=_0x344c98+0x1,_0x3e1c55=0x0;for(;_0x4be1df[_0x26bb7a]['id']!=_0x4be1df[_0x344c98]['pairId'];)'elementStart'==_0x4be1df[_0x26bb7a]['type']?_0x3e1c55++:'elementEnd'==_0x4be1df[_0x26bb7a]['type']&&_0x3e1c55--,_0x26bb7a++;if(0x0!=_0x3e1c55){if(_0x4be1df[_0x344c98]['isRemoved'])_0x4be1df[_0x344c98]['isIncorrect']=!0x0;else{for(;_0x26bb7a!=_0x344c98;)_0x4be1df[_0x26bb7a]['isRemoved']&&0x0!=_0x4be1df[_0x26bb7a]['distance']&&(_0x4be1df[_0x26bb7a]['isIncorrect']=!0x0,_0x3c5e12['add'](_0x4be1df[_0x26bb7a]['pairId'])),_0x26bb7a--;}}}return _0x4be1df['filter'](_0x5843ff=>!_0x5843ff['isIncorrect']);}['_removeUnsupportedChanges'](_0x8c9caa){const _0x1a089e=this['editor']['model']['schema'];for(let _0x2b87fd=0x0;_0x2b87fd<_0x8c9caa['length'];_0x2b87fd++){if(!(_0x8c9caa[_0x2b87fd]['isAdded']||_0x8c9caa[_0x2b87fd]['isAddSuggestion']||_0x8c9caa[_0x2b87fd]['isRemoved']||_0x8c9caa[_0x2b87fd]['isRemoveSuggestion']))continue;if(0x0==_0x8c9caa[_0x2b87fd]['distance'])continue;const _0x215ea3=_0x8c9caa[_0x2b87fd]['item'];_0x1a089e['isBlock'](_0x215ea3)||_0x1a089e['isLimit'](_0x215ea3)||(_0x8c9caa[_0x2b87fd]['isAdded']&&delete _0x8c9caa[_0x2b87fd]['isAdded'],_0x8c9caa[_0x2b87fd]['isAddSuggestion']&&delete _0x8c9caa[_0x2b87fd]['isAddSuggestion'],_0x8c9caa[_0x2b87fd]['isRemoveSuggestion']&&delete _0x8c9caa[_0x2b87fd]['isRemoveSuggestion'],_0x8c9caa[_0x2b87fd]['isRemoved']&&(_0x8c9caa[_0x2b87fd]['isIncorrect']=!0x0));}return _0x8c9caa['filter'](_0x56ee74=>!_0x56ee74['isIncorrect']);}['_makeModelFromTape'](_0x720d4c,_0x324503,_0xec3f19){const _0x35918e=new wt(),_0x38794a=[],_0x502a07=new Map(),_0x7c1729=this['editor']['model'],_0x55eccf=_0x7c1729['schema'],_0x405ba5=[_0x35918e],_0x2413e2={},_0x1feb98={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x6ac410=null;const _0x15e2ca=[0x0];for(let _0x1c2fca=0x0;_0x1c2fca<_0x720d4c['length'];_0x1c2fca++)if('elementStart'===_0x720d4c[_0x1c2fca]['type']){_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca);const _0x3306df=new ft(_0x720d4c[_0x1c2fca]['item']['name'],_0x720d4c[_0x1c2fca]['item']['getAttributes']());_0x405ba5[0x0]['_appendChild'](_0x3306df),_0x15e2ca['push'](0x0),_0x405ba5['unshift'](_0x3306df),_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca);}else'elementEnd'===_0x720d4c[_0x1c2fca]['type']?(_0x405ba5['shift'](),_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca),_0x15e2ca['pop'](),_0x15e2ca[_0x15e2ca['length']-0x1]++,_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca)):(_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca),_0x6ac410?_0x6ac410['_data']+=_0x720d4c[_0x1c2fca]['item']['data']:_0x6ac410=new _t(_0x720d4c[_0x1c2fca]['item']['data'],_0x720d4c[_0x1c2fca]['item']['getAttributes']()),_0x720d4c[_0x1c2fca+0x1]&&'text'===_0x720d4c[_0x1c2fca+0x1]['type']&&_0x160049(_0x6ac410,_0x720d4c[_0x1c2fca+0x1]['item'])||(_0x405ba5[0x0]['_appendChild'](_0x6ac410),_0x6ac410=null),_0x15e2ca[_0x15e2ca['length']-0x1]+=_0x720d4c[_0x1c2fca]['item']['offsetSize'],_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca));for(let _0x1c959e=0x0;_0x1c959e<_0x720d4c['length'];_0x1c959e++){const _0x42f613=_0x720d4c[_0x1c959e]['previousPosition'],_0x1449e5=_0x720d4c[_0x1c959e]['nextPosition'];for(const _0x4228ea of _0x720d4c[_0x1c959e]['markersStart'])_0x502a07['set'](_0x4228ea,{'start':_0x42f613,'end':null});_0x2a309c('isRemoveSuggestion',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isAddSuggestion',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isRemoved',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isAdded',_0x1c959e,_0x42f613,_0x1449e5);for(const _0x594c90 of _0x720d4c[_0x1c959e]['markersEnd']){_0x502a07['get'](_0x594c90)['end']=_0x1449e5;}}for(const [_0x3621c8,_0x1b121f]of _0x502a07){const _0x423102=this['editor']['model']['createRange'](_0x1b121f['start'],_0x1b121f['end']);_0x35918e['markers']['set'](_0x3621c8,_0x423102);}return _0x38794a['sort']((_0x46976a,_0x2dad2b)=>{const _0x1663d5=_0x35918e['markers']['get']('revision:'+_0x46976a['id']),_0x3ebd44=_0x35918e['markers']['get']('revision:'+_0x2dad2b['id']);return _0x1663d5['start']['isBefore'](_0x3ebd44['start'])?-0x1:_0x1663d5['start']['isAfter'](_0x3ebd44['start'])?0x1:_0x1663d5['end']['isBefore'](_0x3ebd44['end'])?-0x1:_0x1663d5['end']['isAfter'](_0x3ebd44['end'])?0x1:'add'===_0x46976a['type']?-0x1:0x1;}),{'root':_0x35918e,'changes':_0x38794a};function _0x2a309c(_0x17e5cd,_0x428182,_0x31921c,_0x51a500){const _0x38fc9e=!!_0x720d4c[_0x428182][_0x17e5cd],_0x3a7a0d=_0x38fc9e?_0x720d4c[_0x428182][_0x17e5cd]['userId']:null,_0x19917b=_0x428182===_0x720d4c['length']-0x1,_0x30a8c3=_0x1feb98[_0x17e5cd][0x0],_0x3aa00f=_0x55eccf['isObject'](_0x720d4c[_0x428182]['item']);!_0x2413e2[_0x17e5cd]&&_0x38fc9e?_0x2413e2[_0x17e5cd]={'start':_0x31921c,'tapeItem':_0x720d4c[_0x428182],'userId':_0x3a7a0d,'type':_0x17e5cd}:_0x2413e2[_0x17e5cd]&&!_0x38fc9e?(_0x2413e2[_0x17e5cd]['end']=_0x31921c,_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]=null):_0x2413e2[_0x17e5cd]&&_0x38fc9e&&_0x2413e2[_0x17e5cd]['userId']!==_0x3a7a0d&&(_0x2413e2[_0x17e5cd]['end']=_0x31921c,_0x30a8c3&&_0x30a8c3['userId']===_0x2413e2[_0x17e5cd]['userId']||_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]={'start':_0x31921c,'tapeItem':_0x720d4c[_0x428182],'userId':_0x3a7a0d,'type':_0x17e5cd}),_0x2413e2[_0x17e5cd]&&_0x3aa00f&&('elementStart'!==_0x720d4c[_0x428182]['type']||_0x30a8c3&&_0x30a8c3['userId']===_0x3a7a0d||_0x1feb98[_0x17e5cd]['unshift']({'userId':_0x3a7a0d,'object':_0x720d4c[_0x428182]['item'],'change':_0x2413e2[_0x17e5cd]}),'elementEnd'===_0x720d4c[_0x428182]['type']&&_0x30a8c3&&_0x30a8c3['object']===_0x720d4c[_0x428182]['item']&&(_0x1feb98[_0x17e5cd]['shift'](),_0x2413e2[_0x17e5cd]=_0x30a8c3['change'])),_0x2413e2[_0x17e5cd]&&_0x19917b&&(_0x2413e2[_0x17e5cd]['end']=_0x51a500,_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]=null);}function _0x338464({start:_0x1aa512,end:_0xff4cf6,tapeItem:_0x4e3d48,userId:_0x33b825,type:_0x47828b}){const _0xcaf971=_0x4e3d48['item'],_0x442289=_0x7c1729['schema']['isBlock'](_0xcaf971)&&!_0x7c1729['schema']['isLimit'](_0xcaf971),_0x1d5025=_0x1aa512['nodeAfter']==_0xff4cf6['parent']&&_0xff4cf6['isAtStart'];if(_0x442289&&_0x1d5025)return;const _0x18d8d3=_0x7c1729['createRange'](_0x1aa512,_0xff4cf6),_0x10bdf6=_0x324503['get'](_0x33b825),_0x2ff90e=new r({'author':_0x10bdf6,'type':'isAdded'==_0x47828b||'isAddSuggestion'==_0x47828b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x47828b||'isRemoveSuggestion'==_0x47828b},'createdAt':new Date(),'rootName':_0xec3f19});_0x38794a['push'](_0x2ff90e),_0x35918e['markers']['set']('revision:'+_0x2ff90e['id'],_0x18d8d3);}function _0x160049(_0x11a51a,_0xff702e){const _0x4dac59=_0x11a51a['getAttributes'](),_0x52ec91=_0xff702e['getAttributes']();for(const _0x307189 of _0x4dac59){if(_0x307189[0x1]!==_0xff702e['getAttribute'](_0x307189[0x0]))return!0x1;_0x52ec91['next']();}return _0x52ec91['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x12ef21=>{const _0x48d509=_0x12ef21['markerName']['split'](':')[0x1],_0x186a14=this['_getChangeFromId'](_0x48d509);if(!_0x186a14)return null;const _0x4ac026='add'==_0x186a14['type']?'insertion':'deletion',_0x4e9a06=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4ac026];return _0x186a14['data']['isSuggestion']&&_0x4e9a06['push']('ck-suggestion-marker-'+_0x4ac026+'-new'),this['activeChange']==_0x186a14&&_0x4e9a06['push']('ck-suggestion-marker--active'),{'classes':_0x4e9a06,'attributes':{'data-change-id':_0x48d509}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x300b66=>{_0x300b66['on']('element:pre',(_0x5468e8,_0x50c95e,_0x3a803e)=>{const _0x3f63e2=_0x50c95e['viewItem']['getChild'](0x0);if(!_0x3f63e2||!_0x3f63e2['is']('element','code'))return;if(!_0x3a803e['consumable']['consume'](_0x3f63e2,{'attributes':['vid_start','vid_end']}))return;const _0x2bee65=_0x50c95e['modelRange']['start']['nodeAfter'];_0x3a803e['writer']['setAttribute']('vid_start',_0x3f63e2['getAttribute']('vid_start'),_0x2bee65),_0x3a803e['writer']['setAttribute']('vid_end',_0x3f63e2['getAttribute']('vid_end'),_0x2bee65);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x58e7c2=>{_0x58e7c2['on']('element',(_0x140bd1,_0x3ebe38,_0x4ea50f)=>{if(!_0x4ea50f['consumable']['consume'](_0x3ebe38['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ebe38['modelRange']['isCollapsed'])return;const _0x2ea93a=_0x3ebe38['modelRange']['start']['nodeAfter'];_0x2ea93a['hasAttribute']('vid_start')||_0x2ea93a['hasAttribute']('vid')||(_0x4ea50f['writer']['setAttribute']('vid_start',_0x3ebe38['viewItem']['getAttribute']('vid_start'),_0x2ea93a),_0x4ea50f['writer']['setAttribute']('vid_end',_0x3ebe38['viewItem']['getAttribute']('vid_end'),_0x2ea93a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x556a3d=>_0x556a3d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2f32c0,[,_0x1ac732])=>{['vid_start','vid_end','vid']['includes'](_0x1ac732)&&(_0x2f32c0['return']=!0x0,_0x2f32c0['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x149cfb=>{_0x149cfb['on']('attribute:vid',(_0x5a34f1,_0x33855f,_0x28468a)=>{if('\x20'!=_0x33855f['item']['data']||_0x33855f['item']['parent']['maxOffset']>0x1)return;if(!_0x28468a['consumable']['consume'](_0x33855f['item'],_0x5a34f1['name']))return;const _0x1ce5db=_0x28468a['writer'],_0x541f08=_0x28468a['mapper']['toViewRange'](_0x33855f['range']);_0x1ce5db['wrap'](_0x541f08,_0x1ce5db['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x342ba4){const _0x4e1d21=_0x342ba4['plugins']['get']('RevisionViewer');return(_0x1b617b,_0x741401,_0x16da06)=>{const _0x1b6abc=_0x741401['markerName']['split'](':')[0x1],_0x46165e=_0x4e1d21['_getChangeFromId'](_0x1b6abc);if(!_0x46165e)return null;const _0x1818c6='add'==_0x46165e['type']?'split':'merge';if(!_0x16da06['consumable']['test'](_0x741401['markerRange'],_0x1b617b['name']))return;const _0x198466=_0x741401['markerRange']['getWalker'](),_0x42ef35=_0x741401['markerRange']['start'],_0x53329e=_0x342ba4['model']['schema'];let _0x161404=null,_0x3d52bd=null,_0x413ce5=!0x1,_0x5d106c=!0x1;for(const _0x28cd05 of _0x198466){const _0x13191d=_0x28cd05['item'];_0x413ce5=_0x413ce5||_0x53329e['isContent'](_0x13191d);const _0xbb87d1=_0x16da06['mapper']['toViewElement'](_0x13191d);if(_0xbb87d1&&_0xbb87d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x28cd05['type']&&(_0x53329e['isBlock'](_0x13191d)&&!_0x53329e['isLimit'](_0x13191d)&&(_0x13191d['nextSibling']||_0x42ef35['isAtEnd']?_0x161404&&_0x161404['parent']==_0x13191d||(_0x161404=_0x13191d,_0x488a52(_0x28cd05['previousPosition']),_0x5d106c=!0x0):_0x3d52bd=_0x3d52bd||_0x28cd05['previousPosition']));}function _0x488a52(_0x275a18){const _0x4de643=_0x16da06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1818c6}),_0x3c6bb4=_0x16da06['mapper']['toViewPosition'](_0x275a18);_0x46165e['data']['isSuggestion']&&_0x16da06['writer']['addClass']('ck-suggestion-marker-'+_0x1818c6+'-new',_0x4de643),_0x4e1d21['activeChange']==_0x46165e&&_0x16da06['writer']['addClass']('ck-suggestion-marker--active',_0x4de643),_0x16da06['writer']['insert'](_0x3c6bb4,_0x4de643),_0x16da06['mapper']['bindElementToMarker'](_0x4de643,_0x741401['markerName']);}_0x413ce5||_0x5d106c||!_0x3d52bd||_0x488a52(_0x3d52bd);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x26e809,_0x28ce1f,_0x32c813)=>{const _0x3a2515=_0x32c813['mapper']['markerNameToElements'](_0x28ce1f['markerName']);if(_0x3a2515){for(const _0x52b34f of _0x3a2515)(_0x52b34f['hasClass']('ck-suggestion-marker-split')||_0x52b34f['hasClass']('ck-suggestion-marker-merge'))&&(_0x32c813['mapper']['unbindElementFromMarkerName'](_0x52b34f,_0x28ce1f['markerName']),_0x32c813['writer']['remove'](_0x52b34f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x52af8e,_0x5430e4,_0x1011bd)=>{const _0x2edfb5=_0x5430e4['markerName']['split'](':')[0x1],_0x852d9d=this['_getChangeFromId'](_0x2edfb5);if(!_0x852d9d)return null;const _0x3bf632='add'==_0x852d9d['type']?'split':'merge';if(_0x1011bd['consumable']['test'](_0x5430e4['markerRange'],_0x52af8e['name']))for(const _0x20509f of _0x5430e4['markerRange']['getItems']()){if(!_0x20509f['is']('element','softBreak'))continue;const _0x40a078=_0x1011bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3bf632}),_0x1ab5a0=_0x1011bd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x20509f));_0x852d9d['data']['isSuggestion']&&_0x1011bd['writer']['addClass']('ck-suggestion-marker-'+_0x3bf632+'-new',_0x40a078),this['activeChange']==_0x852d9d&&_0x1011bd['writer']['addClass']('ck-suggestion-marker--active',_0x40a078),_0x1011bd['writer']['insert'](_0x1ab5a0,_0x40a078),_0x1011bd['mapper']['bindElementToMarker'](_0x40a078,_0x5430e4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x41a2ab=>{for(const _0x14bfe3 of this['editor']['model']['document']['getRootNames']()){const _0x31af72=this['editor']['model']['document']['getRoot'](_0x14bfe3),_0x166b94=this['editor']['editing']['view']['document']['getRoot'](_0x14bfe3);if(_0x166b94){const _0x2e8fc3=_0x31af72['getAttribute']('revisionHistoryAttachChange');if(_0x41a2ab['removeAttribute']('data-change-id',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root-add',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root-remove',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root--active',_0x166b94),_0x2e8fc3){const _0x340c97=this['_getChangeFromId'](_0x2e8fc3);if(!_0x340c97)return null;_0x41a2ab['setAttribute']('data-change-id',_0x2e8fc3,_0x166b94),_0x41a2ab['addClass']('ck-revision-history-root-'+_0x340c97['type'],_0x166b94),this['activeChange']==_0x340c97&&_0x41a2ab['addClass']('ck-revision-history-root--active',_0x166b94);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xc73da7=>'revision-comment:'+_0xc73da7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x494d71=>'revision-suggestion:'+_0x494d71,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x13c7fc=>({'name':'suggestion:'+_0x13c7fc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3307e0=>{const _0x3f9950=_0x3307e0['markerName']['split'](':')[0x1];return'insertion'!=_0x3f9950&&'deletion'!=_0x3f9950?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3f9950]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x40c28d,_0x19041e,_0x511397)=>{const _0x4474bd=_0x511397['mapper']['markerNameToElements'](_0x19041e['markerName']);if(_0x4474bd){for(const _0x62ede1 of _0x4474bd)_0x62ede1['is']('uiElement')&&(_0x511397['mapper']['unbindElementFromMarkerName'](_0x62ede1,_0x19041e['markerName']),_0x511397['writer']['remove'](_0x62ede1));}},{'priority':'high'});}['_getChangeFromId'](_0x5be9ce){return this['_changeIdToChange']['get'](_0x5be9ce);}['_getViewForChange'](_0x5a821a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5a821a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x113ba6,_0x283d78,_0x246a70,_0x4c6505)=>{_0x4c6505&&this['_balloon']['remove'](_0x4c6505),_0x246a70&&(this['_balloon']['add']({'view':_0x246a70,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x29a0f3=this['editor']['editing'],_0x54bf4b=this['_getChangeFromId'](_0x246a70['changeId']);let _0x300987;if(_0x54bf4b['data']['isOnRoot']){const _0x541663=_0x29a0f3['view']['getDomRoot'](_0x54bf4b['rootName']);_0x300987=Array['from'](_0x541663['getClientRects']());}else{const _0x4917a8=this['editor']['model']['markers']['get']('revision:'+_0x246a70['changeId']);_0x300987=Array['from'](_0x29a0f3['mapper']['markerNameToElements'](_0x4917a8['name']))['map'](_0x4ff298=>_0x29a0f3['view']['domConverter']['mapViewToDom'](_0x4ff298))['map'](_0x391efd=>Array['from'](_0x391efd['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x300987[0x0];return _0x300987['find'](_0xeedcd2=>_0xeedcd2['top']-0x3<=this['_activeViewTarget']['y']&&_0xeedcd2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xeedcd2['left']-0x3<=this['_activeViewTarget']['x']&&_0xeedcd2['right']+0x3>=this['_activeViewTarget']['x'])||_0x300987[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x280fbc,_0x1b8edc,_0x32aee,_0x245756)=>{this['activeView']=_0x32aee?this['_getViewForChange'](_0x32aee):null,this['editor']['model']['change'](()=>{const _0xb23f5a=this['editor']['editing'];_0x245756&&(_0x245756['data']['isOnRoot']?_0xb23f5a['view']['change'](_0x2e2f10=>{_0x2e2f10['removeClass']('ck-revision-history-root--active',_0xb23f5a['view']['document']['getRoot'](_0x245756['rootName']));}):_0xb23f5a['reconvertMarker']('revision:'+_0x245756['id'])),_0x32aee&&(_0x32aee['data']['isOnRoot']?_0xb23f5a['view']['change'](_0x49ca3c=>{_0x49ca3c['addClass']('ck-revision-history-root--active',_0xb23f5a['view']['document']['getRoot'](_0x32aee['rootName']));}):_0xb23f5a['reconvertMarker']('revision:'+_0x32aee['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xf584da,_0x5e291c)=>{if(this['activeChange'])return;const _0x47b78a=this['_findChangeIdFromDomTarget'](_0x5e291c['target']),_0xf73df5=this['_changeIdToChange']['get'](_0x47b78a);_0xf73df5?(this['_activeViewTarget']={'x':_0x5e291c['domEvent']['x'],'y':_0x5e291c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf73df5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2871e9,_0x2bc8e6)=>{const _0x8330ec=this['_findChangeIdFromDomTarget'](_0x2bc8e6['target']),_0x283e75=this['_changeIdToChange']['get'](_0x8330ec);_0x283e75?(this['_activeViewTarget']={'x':_0x2bc8e6['domEvent']['x'],'y':_0x2bc8e6['domEvent']['y']},_0x283e75===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x283e75):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x17d6e7){do{const _0x4924dd=_0x17d6e7['getAttribute']('data-change-id');if(_0x4924dd)return _0x4924dd;_0x17d6e7=_0x17d6e7['parent'];}while(_0x17d6e7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x50f901=>{for(const _0x4d75ec of this['editor']['model']['markers'])_0x50f901['removeMarker'](_0x4d75ec);});}}function tt(_0x2312b8,_0x56a552){return(_0x4a173b,_0x5a03a3,_0x2187e5)=>{if(!_0x2187e5['consumable']['test'](_0x5a03a3['markerRange'],_0x4a173b['name']))return;const _0x48eddd=_0x5a03a3['markerRange']['getWalker'](),_0x599c64=_0x5a03a3['markerRange']['start'],_0x5938cd=_0x2312b8['model']['schema'];let _0x4866cc=null,_0x2d8324=null,_0x5907a1=!0x1,_0x4e21ec=!0x1;for(const _0x4fd88b of _0x48eddd){const _0x34e312=_0x4fd88b['item'];_0x5907a1=_0x5907a1||_0x5938cd['isContent'](_0x34e312);const _0x47999f=_0x2187e5['mapper']['toViewElement'](_0x34e312);if(_0x47999f&&_0x47999f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4fd88b['type']&&(_0x5938cd['isBlock'](_0x34e312)&&!_0x5938cd['isLimit'](_0x34e312)&&(_0x34e312['nextSibling']||_0x599c64['isAtEnd']?_0x4866cc&&_0x4866cc['parent']==_0x34e312||(_0x4866cc=_0x34e312,_0x46a080(_0x4fd88b['previousPosition']),_0x4e21ec=!0x0):_0x2d8324=_0x2d8324||_0x4fd88b['previousPosition']));}function _0x46a080(_0x5e9df8){const _0x3b031e=_0x2187e5['mapper']['toViewPosition'](_0x5e9df8),_0x54f687=_0x2187e5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x56a552});_0x2187e5['writer']['insert'](_0x3b031e,_0x54f687),_0x2187e5['mapper']['bindElementToMarker'](_0x54f687,_0x5a03a3['markerName']);}_0x5907a1||_0x4e21ec||!_0x2d8324||_0x46a080(_0x2d8324);};}class yt extends _0x455b3a{constructor(_0x3640a3){super(_0x3640a3);const _0x48189c=_0x3640a3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x48189c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x48189c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x25384e=this['editor'],_0x16f9a6=_0x25384e['plugins']['get'](d),_0x31f2c8=_0x16f9a6['isReady']?_0x16f9a6['diff']['newRevisionId']:null;_0x25384e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31f2c8);}['refresh'](){const {isReady:_0x5ed7e7,isEnabled:_0x3180de,repository:_0x35e437,diff:_0xe48d5c}=this['editor']['plugins']['get'](d),_0x268578=_0xe48d5c&&_0x35e437['getLaterVisibleRevision'](_0xe48d5c['newRevisionId']);this['isEnabled']=_0x5ed7e7&&_0x3180de&&Boolean(_0x268578);}}class bt extends _0x455b3a{['_step'];constructor(_0x34d7bf,{direction:_0x527ad8}){super(_0x34d7bf);const _0x5cf3ca=_0x34d7bf['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x527ad8?0x1:-0x1,this['listenTo'](_0x5cf3ca,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5cf3ca,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5cf3ca,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x188411=this['editor'],_0x320e93=_0x188411['plugins']['get'](d),{isNavigationMode:_0x2f7754,currentChangeNumber:_0x3758b6}=_0x320e93;let _0x499577;if(_0x320e93['activeChange']=_0x2f7754?_0x320e93['diff']['changes']['get'](_0x3758b6+this['_step']):_0x320e93['diff']['changes']['first'],_0x320e93['activeChange']['data']['isOnRoot'])_0x499577=_0x188411['editing']['view']['getDomRoot'](_0x320e93['activeChange']['rootName']);else{const _0x276eaf=_0x188411['model']['markers']['get']('revision:'+_0x320e93['activeChange']['id']);_0x499577=_0x494947(_0x188411['editing'],_0x276eaf);}_0x1c6bfe({'target':_0x499577,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x17f5a9,currentChangeNumber:_0x5fe137,numberOfChanges:_0x462213,isReady:_0x24455c,isEnabled:_0x2b7526}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2b7526&&_0x24455c&&_0x462213)&&(!_0x17f5a9||(0x1===this['_step']?_0x5fe137<_0x462213-0x1:_0x5fe137>0x0));}}class _i extends _0x59c2ca{constructor(_0x3fbf8c){super(_0x3fbf8c);const _0x3185d1=this['bindTemplate'],_0x4e8041=new _0x3b013d(_0x3fbf8c),_0x2eddd2=new _0x3b013d(_0x3fbf8c);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',(_0x41b5e6,_0x3d2e5e)=>_0x41b5e6&&_0x3d2e5e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3bb14f,_0x36d0bb,_0x404058,_0x38f349)=>{if(!_0x3bb14f)return R(_0x3fbf8c,'Loading...');if(!_0x404058)return R(_0x3fbf8c,'No\x20changes');const _0x40f983=R(_0x3fbf8c,'NUMBER_OF_CHANGES',_0x404058);return _0x38f349?R(_0x3fbf8c,'X_OF_Y_CHANGES',[_0x36d0bb+0x1,_0x404058]):_0x40f983;}),_0x4e8041['set']({'label':R(_0x3fbf8c,'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'}),_0x2eddd2['set']({'label':R(_0x3fbf8c,'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'}),_0x4e8041['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2eddd2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e8041['on']('execute',()=>this['fire']('execute','backward')),_0x2eddd2['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',_0x3185d1['if']('_isStatusLabelVisible','ck-hidden',_0x2981f4=>!_0x2981f4)]},'children':[{'text':_0x3185d1['to']('isNavigationMode',_0x598029=>_0x598029?R(_0x3fbf8c,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3fbf8c,'Total')+':\x20')}]},{'text':_0x3185d1['to']('_statusText')}]},new _0x491304(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e8041,_0x2eddd2]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5a5f64{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1801ca=this['editor']['editing']['view'];_0x1801ca['change'](_0x3456f5=>{for(const _0x3adcaf of _0x1801ca['document']['roots'])_0x3456f5['addClass'](ce,_0x3adcaf);});}['hide'](){const _0x2c9021=this['editor']['editing']['view'];_0x2c9021['change'](_0x1c05f0=>{for(const _0x526475 of _0x2c9021['document']['roots'])_0x1c05f0['removeClass'](ce,_0x526475);});}}class m extends _0x5a5f64{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x4ad935=this['editor'],_0x547c4b=_0x4ad935['plugins']['get'](d),_0x5247e8=_0x4ad935['plugins']['get'](le);_0x4ad935['ui']['componentFactory']['add']('exitToEditing',_0x3f6276=>{const _0x3bde07=new _0x3b013d(_0x3f6276);return _0x3bde07['set']({'label':R(_0x3f6276,'Back\x20to\x20editing'),'icon':_0x2b22d2['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3bde07,'execute',()=>{_0x4ad935['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3bde07;}),_0x4ad935['ui']['componentFactory']['add']('restoreRevision',_0x3355fd=>{const _0x5ed90e=new _0x3b013d(_0x3355fd);return _0x5ed90e['set']({'label':R(_0x3355fd,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5ed90e['bind']('isEnabled')['to'](_0x4ad935['commands']['get']('restoreRevision')),this['listenTo'](_0x5ed90e,'execute',()=>_0x4ad935['execute']('restoreRevision')),_0x5ed90e;}),_0x4ad935['ui']['componentFactory']['add']('changesNavigation',_0x3f30fa=>{const _0xf4e6b5=new _i(_0x3f30fa),_0x559005=_0x4ad935['commands']['get']('showPreviousChange'),_0xb9a2c6=_0x4ad935['commands']['get']('showNextChange');return _0xf4e6b5['bind']('isBackwardNavigationEnabled')['to'](_0x559005,'isEnabled'),_0xf4e6b5['bind']('isForwardNavigationEnabled')['to'](_0xb9a2c6,'isEnabled'),_0xf4e6b5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x547c4b),this['listenTo'](_0xf4e6b5,'execute',(_0x275c7e,_0x53f63b)=>{_0x4ad935['execute']('forward'===_0x53f63b?'showNextChange':'showPreviousChange');}),_0xf4e6b5;}),_0x5247e8['show'](),_0x547c4b['on']('change:isReady',(_0x155681,_0x3dd84c,_0x174515)=>{_0x174515?_0x5247e8['hide']():_0x5247e8['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x3a77db,_0x64b8ce){super(_0x3a77db,_0x64b8ce);const _0x4d18e2=this['bindTemplate'];this['set']({'label':R(_0x3a77db,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3a77db,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4d18e2['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xb04384=this['fieldView']['element'];this['_tooltipString']=_0xb04384['scrollWidth']>_0xb04384['clientWidth']&&_0xb04384['value']||'';}}class ti extends _0x59c2ca{constructor(_0x1e703d,_0x392d8f,_0x275852){super(_0x1e703d);const _0xa79f2f=new _0x58f379();_0xa79f2f['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 _0x483ffc=['ck','ck-revision-history-sidebar__revision-author'];_0x275852&&_0x483ffc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x53ca68=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1e703d,_0x275852?'Revision\x20creator':'Revision\x20author')},'children':[_0xa79f2f,_0x392d8f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x483ffc},'children':_0x53ca68});}}function ni(_0x277141,_0xa1b789){const _0x1cde6d=_0x277141['bindTemplate'],_0x3fa13a=_0x277141['locale'],_0x4a5227=_0x40e817(_0x3fa13a);_0x4a5227['panelPosition']='sw';const _0x325a83=function(_0x51cf05,_0x48acf6){const _0x3cb12f=function(_0x46f92a,_0x230ae4){const _0x55b19e=_0x46f92a['locale'],_0x200fd3={'Compare\x20against\x20selected':R(_0x55b19e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x55b19e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x55b19e,'Restore\x20this\x20revision')};return _0x230ae4['map'](_0x313e0e=>{const _0x3a4e66=_0x200fd3[_0x313e0e['name']];return _0x3a4e66&&_0x3a4e66!==_0x313e0e['name']&&(_0x313e0e['name']=_0x3a4e66),_0x313e0e;});}(_0x51cf05,_0x48acf6),_0x3a384f=new _0xc46275();for(const _0x103d7c of _0x3cb12f){const _0x559956={'type':'button','model':new to({'label':_0x103d7c['name'],'class':_0x103d7c['class'],'withText':!0x0,'role':'menuitem','_action':_0x103d7c['action']})};_0x559956['model']['bind']('isEnabled')['to'](_0x51cf05,'isActionsDropdownOpen',_0x5611bf=>'function'!=typeof _0x103d7c['isEnabled']||(!_0x5611bf||_0x103d7c['isEnabled'](_0x51cf05))),_0x3a384f['add'](_0x559956);}return _0x3a384f;}(_0x277141,_0xa1b789);return _0x277141['bind']('isActionsDropdownOpen')['to'](_0x4a5227,'isOpen'),_0x4a5227['buttonView']['set']({'label':R(_0x3fa13a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2b22d2['threeVerticalDots']}),_0x4a5227['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1cde6d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1cde6d['to'](_0x223df0=>_0x223df0['stopPropagation']())}}),_0x4a5227['on']('execute',_0x24766c=>{_0x277141['isReady']&&'function'==typeof _0x24766c['source']['_action']&&_0x24766c['source']['_action'](_0x277141);}),_0x1d8c31(_0x4a5227,_0x325a83,{'role':'menu'}),_0x4a5227['listenTo'](_0x277141,'change:isActionsDropdownOpen',(_0x1740a6,_0xf4a1f2,_0x1f5040)=>{if(_0x1f5040)for(const _0x27972b of _0x4a5227['listView']['items']){const _0x16509c=_0x27972b['children']['first'],_0x13114e=_0xa1b789['find'](_0x58b106=>_0x58b106['action']===_0x16509c['_action'])['isVisible'];_0x27972b['isVisible']=void 0x0===_0x13114e||_0x13114e(_0x277141);}}),_0x4a5227;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3151ef(_0x59c2ca){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1bdfdb,_0x54596d,_0xfa0d9b,_0x566cb1){super(_0x1bdfdb);const _0x3239b3=this['bindTemplate'],_0x3cad78=function(_0x1f9618,_0x20e3be){const _0x4c52e0=Array['from'](_0x20e3be['authors'])['filter'](_0x3e5d29=>_0x3e5d29!=_0x20e3be['creator']);return _0x20e3be['creator']&&_0x4c52e0['unshift'](_0x20e3be['creator']),_0x4c52e0['map'](_0x3d7f7f=>new ti(_0x1f9618,_0x3d7f7f,_0x3d7f7f==_0x20e3be['creator']));}(_0x1bdfdb,_0x54596d);this['id']=_0x54596d['id'],this['_revision']=_0x54596d,this['_requireRevisionName']=_0x566cb1,this['bind']('name','createdAt')['to'](_0x54596d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x63956=>{return _0x2872cb=_0x1bdfdb['uiLanguage'],(_0x16effe=_0x63956)['toLocaleDateString'](_0x2872cb,{'month':'long','day':'numeric'})+',\x20'+_0x16effe['toLocaleTimeString'](_0x2872cb,{'hour':'numeric','minute':'numeric'});var _0x2872cb,_0x16effe;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x1bdfdb,_0x2931d8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3503e4=>_0x3503e4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x107f26,_0x5a26d7)=>_0x107f26&&_0x5a26d7),this['revisionActionsView']=_0xfa0d9b&&_0xfa0d9b['length']?ni(this,_0xfa0d9b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3239b3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3239b3['if']('isEnabled','ck-disabled',_0x1a1755=>!_0x1a1755),_0x3239b3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3239b3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3239b3['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':_0x3239b3['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':_0x3cad78}]},this['revisionActionsView']],'on':{'click':_0x3239b3['to'](_0x24c4d7=>{_0x24c4d7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b577a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1b577a,'change',()=>{this['_requireRevisionName']&&!_0x1b577a['value']||this['fire']('setName',{'id':this['id'],'name':_0x1b577a['value']}),_0x1b577a['value']||(_0x1b577a['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x584a07,_0x1ab3de){const _0x490483=_0x3dbd8b['fromJSDate'](_0x584a07)['setLocale'](_0x1ab3de),_0xeb316d=_0x3dbd8b['local'](),_0x20e2bd=_0xeb316d['minus']({'days':0x1})['startOf']('day');let _0x175bda,_0xcf22c8;return _0x490483['hasSame'](_0xeb316d,'day')?(_0x175bda=_0x490483['startOf']('day')['toJSDate'](),_0xcf22c8=_0x490483['toRelativeCalendar']()):_0x490483['hasSame'](_0x20e2bd,'day')?(_0x175bda=_0x20e2bd['toJSDate'](),_0xcf22c8=_0x490483['toRelativeCalendar']()):_0x490483['hasSame'](_0xeb316d,'week')?(_0x175bda=_0x490483['startOf']('week')['toJSDate'](),_0xcf22c8=_0x490483['weekdayLong']||''):_0x490483['hasSame'](_0xeb316d,'year')?(_0x175bda=_0x490483['startOf']('month')['toJSDate'](),_0xcf22c8=_0x490483['monthLong']||''):(_0x175bda=_0x490483['startOf']('year')['toJSDate'](),_0xcf22c8=String(_0x490483['year'])),{'startDate':_0x175bda,'localizedPeriodName':_0xcf22c8};}class mi extends _0x59c2ca{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58b29b,_0x6fd646,_0x3935a4,_0x10d5b6){super(_0x58b29b);const _0x13afe6=di(_0x6fd646,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x6fd646,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3935a4,this['_requireRevisionName']=_0x10d5b6,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':_0x13afe6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54ccd0){const _0x99fcb9=new ai(this['locale'],_0x54ccd0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x99fcb9);}['removeRevision'](_0x5c0d3d){const _0x3dd76f=this['revisionViews']['find'](_0x524b7e=>_0x524b7e['id']===_0x5c0d3d['id']);this['revisionViews']['remove'](_0x3dd76f);}}class rs extends _0x59c2ca{constructor(_0x491366){super(_0x491366);const _0x4bce6b=new _0x58f379();_0x4bce6b['content']=_0x2b22d2['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4bce6b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x491366,'Revision\x20history')]}]});}}class ci extends _0x59c2ca{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3650e8,_0x92dc43,_0x36f038,_0x15a769){super(_0x3650e8);const _0x23bca1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x92dc43,this['_revisionActions']=_0x36f038,this['_requireRevisionName']=_0x15a769,this['on']('select',(_0x1a0c33,_0x35e8c7)=>{this['fire']('revisionSelected',_0x35e8c7);}),this['on']('setName',(_0x917d0d,_0x1fce9b)=>{this['fire']('revisionSetName',_0x1fce9b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x3650e8),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x23bca1['if']('isEnabled','ck-disabled',_0xe3668f=>!_0xe3668f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5364a0 of this['_revisions'])this['_addRevision'](_0x5364a0);this['_revisions']['on']('add',(_0x6eae1f,_0x418e21)=>{this['_addRevision'](_0x418e21);}),this['_revisions']['on']('remove',(_0x2f2af0,_0x53c9f6)=>{this['_removeRevision'](_0x53c9f6);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5a203b=>_0x5a203b['revisionViews']['map'](_0x5c3146=>_0x5c3146))['flat']();}['selectRevision'](_0x36a85b){for(const _0x9e8d1d of this['revisionViews'])_0x36a85b&&_0x36a85b['id']===_0x9e8d1d['id']?_0x9e8d1d['select']():_0x9e8d1d['deselect']();}['highlightRevisions'](_0x4cf5ae){for(const _0x1da81b of this['revisionViews'])_0x4cf5ae['some'](({id:_0x4d1d1c})=>_0x4d1d1c===_0x1da81b['id'])?_0x1da81b['highlight']():_0x1da81b['unhighlight']();}['_addRevision'](_0x36adbb){const _0x2e3040=di(_0x36adbb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36fa1d=this['timePeriodViews']['get'](0x0);_0x36fa1d&&_0x36fa1d['startDate']['getTime']()===_0x2e3040['getTime']()||(_0x36fa1d=new mi(this['locale'],_0x2e3040,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36fa1d)),_0x36fa1d['addRevision'](_0x36adbb);}['_removeRevision'](_0x33a0ef){const _0xb19cc4=di(_0x33a0ef['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xb19cc4)['removeRevision'](_0x33a0ef);}['_getTimePeriodViewByStartDate'](_0x9ba463){return this['timePeriodViews']['find'](_0x205139=>_0x205139['startDate']['getTime']()===_0x9ba463['getTime']());}}class g extends _0x5a5f64{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5d71eb,_0x21d95e){super(_0x21d95e),this['sourceElement']=_0x5d71eb,this['model']['document']['createRoot']();const _0x33da70=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x33da70);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x148f07,_0x168bde){const _0x10af56=new this(_0x148f07,_0x168bde);return await _0x10af56['initPlugins'](),await _0x10af56['ui']['init'](_0x148f07),await _0x10af56['data']['init'](_0x10af56['config']['get']('initialData')||''),_0x10af56['fire']('ready'),_0x10af56;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x1c98c7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10904c){function _0x3564d9(_0x435afb){return _0x435afb['map'](_0x21afa3=>String['fromCharCode'](_0x21afa3))['join']('');}super(_0x10904c),this['result']='end',_0x10904c[_0x3564d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3564d9([0x76,0x69,0x65,0x77])][_0x3564d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3564d9([0x61,0x75,0x74,0x6f]),_0x10904c[_0x3564d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3564d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3564d9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3564d9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3564d9([0x6f,0x6b])});}}class H extends _0x1c98c7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5456a1){if(super(_0x5456a1),!this['editor']['config']['get']('revisionHistory'))throw new _0x420f22('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1265dc=>this['_showRevisionViewer']({..._0x1265dc,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4fe975=>this['_closeRevisionViewer'](_0x4fe975)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x7a5ffa=>this['_restoreRevision'](_0x7a5ffa)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x27c451){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x27c451;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x408c08){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x408c08);}['getRevision'](_0x6614d8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6614d8);}['getRevisions'](_0x138000){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x138000||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x13e9c0=this['editor'],_0x285a2e=_0x1541f1(_0x13e9c0,p),_0x55e75b=_0x13e9c0['plugins']['get']('RevisionTracker'),_0x4d39a7=_0x13e9c0['plugins']['get']('Users')['users'];return _0x285a2e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x285a2e['lazyRoots'],(_0x285a2e['plugins']['push'](k,d,m,class extends _0x1c98c7{static get['requires'](){return[d,'Users'];}['init'](){const _0x4b248f=this['editor']['plugins']['get']('Users');for(const _0x22f12f of _0x4d39a7)_0x22f12f['isAnonymous']||_0x4b248f['getUser'](_0x22f12f['id'])||_0x4b248f['addUser'](_0x22f12f);const _0x6a1835=_0x55e75b['repository']['getRevisions']();let _0x202b33=null;const _0x290675=this['editor']['plugins']['get']('RevisionViewer');_0x290675['adapter']=_0x55e75b['adapter'],_0x290675['bind']('isEnabled')['to'](_0x55e75b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x13e9c0,'isReadOnly',_0x5be65e=>!_0x5be65e);for(const _0x3fa9b0 of _0x6a1835){const _0x1ecb3f=null===_0x3fa9b0['creator'];if(_0x1ecb3f&&_0x3fa9b0['toVersion']===_0x3fa9b0['fromVersion'])continue;const _0x2a563c=_0x3fa9b0['toJSON']();_0x290675['addRevisionData'](_0x2a563c,(_0x376c97,_0x113b7f,_0x370565)=>{if(_0x1ecb3f){if(_0x202b33)_0x202b33['_update'](_0x376c97,_0x113b7f);else{if(!_0x113b7f){const _0x12c88d=_0x370565['toJSON']();_0x12c88d['id']=_0x4e6837(),_0x55e75b['saveRevision'](_0x12c88d,_0x370565['toVersion'])['then'](_0x246e5d=>{_0x202b33=_0x246e5d;});}}}else _0x3fa9b0['_update'](_0x376c97,_0x113b7f);});}}},g),_0x285a2e);}['_enhanceShowRevisionViewerCallback'](){const _0x123edf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2098ce=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3aeb19=this['editor']['plugins']['get']('Autosave');await _0x3aeb19['save']();}else await _0x2098ce['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x197e77=this['editor']['plugins']['get']('Dialog');_0x197e77['isOpen']&&_0x197e77['hide']();}const _0x44f0dc=this['_getRevisionViewerEditorConfig']();return _0x123edf(_0x44f0dc)['then'](_0x1af658=>{return(this['_viewerEditor']=_0x1af658,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1af658;})['catch'](_0x20f2c2=>(console['error'](_0x20f2c2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x594968=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'](),_0x594968(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xc6afe0=this['editor']['plugins']['get']('Annotations');_0xc6afe0['refreshVisibility'](),_0xc6afe0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x23b9f5){const _0x23b934=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe55349=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x433c68=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x433c68,_0x23b9f5)['then'](_0x42e440=>(_0xe55349['style']['display']='block',_0x23b934['style']['display']='none',_0x42e440));}['_closeRevisionViewer'](_0x1bd05e){const _0x5e3ca7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5e3ca7['style']['display']='',_0x1bd05e['destroy']();}async['_restoreRevision'](_0x36ceca){const _0xf4ac42=this['editor'],_0x29be6d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1c5ff7=_0xf4ac42['plugins']['get']('RevisionTracker'),_0x43079c=_0x29be6d['repository']['getRevision'](_0x36ceca);let _0x3489c7,_0x544cc9,_0x227f29;try{_0x3489c7=await _0x29be6d['getRevisionData'](_0x43079c),_0x544cc9=await _0x29be6d['getRevisionRootsAttributes'](_0x43079c);}catch(_0x492c60){return void console['error'](_0x492c60);}_0xf4ac42['model']['change'](_0x555826=>{for(const _0x1d45bc of Array['from'](_0xf4ac42['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x555826['removeMarker'](_0x1d45bc);}),_0x29be6d['isReady']=!0x1,_0xf4ac42['model']['enqueueChange'](_0x4f1dd6=>{_0x4f1dd6['setSelection'](null),_0x4f1dd6['removeSelectionAttribute'](_0xf4ac42['model']['document']['selection']['getAttributeKeys']());const _0x3ca098=Object['keys'](_0x3489c7);for(const _0x58a407 of _0xf4ac42['model']['document']['roots'])'$graveyard'!=_0x58a407['rootName']&&_0x58a407['isAttached']()&&!_0x3ca098['includes'](_0x58a407['rootName'])&&_0x4f1dd6['detachRoot'](_0x58a407);for(const _0x433e93 of _0x3ca098){let _0x12c493=_0xf4ac42['model']['document']['getRoot'](_0x433e93);_0x12c493&&_0x12c493['isAttached']()||(_0x12c493=_0x4f1dd6['addRoot'](_0x433e93));const _0x5279fc=_0x544cc9[_0x433e93],_0x59f81d=Object['keys'](_0x5279fc),_0x1bf7d9=_0x3489c7[_0x433e93];for(const _0x12784c of _0x12c493['getAttributeKeys']())_0x59f81d['includes'](_0x12784c)||_0x4f1dd6['removeAttribute'](_0x12784c,_0x12c493);for(const _0x728448 of _0x59f81d)_0x4f1dd6['setAttribute'](_0x728448,_0x544cc9[_0x433e93][_0x728448],_0x12c493);_0x4f1dd6['remove'](_0x4f1dd6['createRangeIn'](_0x12c493)),_0x4f1dd6['insert'](_0xf4ac42['data']['parse'](_0x1bf7d9,_0x12c493),_0x12c493,0x0);}});const _0x759c30=R(_0xf4ac42['locale'],'Restored');if(_0x43079c['name'])_0x227f29=-0x1==_0x43079c['name']['indexOf'](_0x759c30)?_0x759c30+':\x20'+_0x43079c['name']:_0x43079c['name'];else _0x227f29=_0x759c30+':\x20'+(_0x43079c['createdAt']['toLocaleDateString'](_0xf4ac42['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x43079c['createdAt']['toLocaleTimeString'](_0xf4ac42['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1c5ff7['saveRevision']({'name':_0x227f29}),_0x29be6d['isReady']=!0x0,_0xf4ac42['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x3090c6){super(_0x3090c6),this['_revisionViewer']=_0x3090c6['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1e7bf2=this['_revisionsRepository']['_revisions'],_0x527ce9=this['_createRevisionActions'](),_0x77d94b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x1e7bf2,_0x527ce9,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',(_0x40a448,_0x51c0f3)=>{_0x51c0f3['revisionViews']['on']('add',(_0x35f9e7,_0x7961df)=>{_0x7961df['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)),_0x77d94b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x42e994=this['_revisionsRepository']['getRevision'](0x0);if(_0x42e994){const _0x370da2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x42e994['id']);this['_revisionViewer']['compare'](_0x42e994,_0x370da2);}}['_handleRevisionSelected'](_0x118e3f,_0x2fc8a3){const _0x3798e5=this['_revisionsRepository']['getRevision'](_0x2fc8a3['id']),_0xb53d44=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3798e5['id']);this['_revisionViewer']['compare'](_0x3798e5,_0xb53d44);}['_handleRevisionSetName'](_0x499674,_0xada889){this['_revisionsRepository']['getRevision'](_0xada889['id'])['setName'](_0xada889['name']);}['_handleDiffChange'](_0x241417,_0x59ca25,_0x5113de){const _0x31025d=this['_revisionsRepository']['getRevisionsInDiff'](_0x5113de);_0x31025d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x31025d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x31025d[0x0]));}['_createRevisionActions'](){const _0xf9c1cd=this['editor'],_0x4ac7bc=g['availableRevisionActions'],_0x32e15b=_0xf9c1cd['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x32e15b['length'])return _0x32e15b['map'](_0x5aff07=>{const _0x5dae43='string'==typeof _0x5aff07?Object['assign']({},_0x4ac7bc[_0x5aff07]):_0x5aff07;return _0x5dae43['action']=_0x5dae43['action']['bind'](this,_0xf9c1cd),_0x5dae43['isVisible']&&(_0x5dae43['isVisible']=_0x5dae43['isVisible']['bind'](this,_0xf9c1cd)),_0x5dae43;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4a4a33},_0x214bd5)=>{const _0x49b297=_0x4a4a33['get'](d),_0x5a41af=_0x49b297['repository'];let _0x1e1e67=_0x49b297['diff']['newRevisionId'],_0x523e7c=_0x214bd5['id'];_0x5a41af['getIndex'](_0x1e1e67)>_0x5a41af['getIndex'](_0x523e7c)&&([_0x1e1e67,_0x523e7c]=[_0x523e7c,_0x1e1e67]),_0x49b297['compare'](_0x1e1e67,_0x523e7c);},'isVisible':({plugins:_0x1408a9},_0x43170f)=>{const _0x349155=_0x1408a9['get'](d);return!(_0x349155['repository']['getRevisionsInDiff'](_0x349155['diff'])['length']>0x2)&&!_0x43170f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x23ba78,{id:_0x2c7929})=>{_0x23ba78['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c7929);},'isVisible':({plugins:_0x3c102b},_0x28f6a4)=>!!_0x3c102b['get'](d)['repository']['getLaterVisibleRevision'](_0x28f6a4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2952b0},{id:_0x4fdc37,revisionNameView:_0x496ca6})=>{const _0x23a6ac=_0x2952b0['get'](d),_0x2137a3=_0x23a6ac['repository']['getEarlierVisibleRevision'](_0x4fdc37);_0x23a6ac['compare'](_0x4fdc37,_0x2137a3),_0x496ca6['focus'](),_0x496ca6['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x15e66e,_0x4e87a3){super(_0x15e66e),this['_view']=_0x4e87a3,this['_toolbarConfig']=ht(_0x15e66e['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x5f3824){const _0xa946dc=this['editor'],_0x5b7ac2=this['view'],_0x287d1e=_0xa946dc['editing']['view'],_0x1d1686=_0x5b7ac2['editable'],_0x1aef1e=_0x287d1e['document']['getRoot']();_0x1d1686['name']=_0x1aef1e['rootName'],_0x5b7ac2['render']();const _0x1970e4=_0x1d1686['element'];this['setEditableElement'](_0x1d1686['name'],_0x1970e4),_0x5b7ac2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x287d1e['attachDomRoot'](_0x1970e4),this['_elementReplacer']['replace'](_0x5f3824,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x54139a=this['view'],_0x91a9ad=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x91a9ad['detachDomRoot'](_0x54139a['editable']['name']),_0x54139a['destroy']();}['_initToolbar'](){const _0x50f533=this['view'];_0x50f533['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x50f533['stickyPanel']['limiterElement']=_0x50f533['element'],_0x50f533['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x493149})=>_0x493149),_0x50f533['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x50f533['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3cac9d,_0xe0dad4,_0x3be185={}){super(_0x3cac9d),this['stickyPanel']=new lt(_0x3cac9d),this['toolbar']=new nt(_0x3cac9d,{'shouldGroupWhenFull':_0x3be185['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x3cac9d,_0xe0dad4);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x555cf9,_0x2f5436){super(_0x2f5436),this['sourceElement']=_0x555cf9,this['model']['document']['createRoot']();const _0x173e27=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x173e27);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5ab1bc,_0x2b814c){const _0x3ab7cb=new this(_0x5ab1bc,_0x2b814c);return await _0x3ab7cb['initPlugins'](),await _0x3ab7cb['ui']['init'](_0x5ab1bc),await _0x3ab7cb['data']['init'](_0x3ab7cb['config']['get']('initialData')||''),_0x3ab7cb['fire']('ready'),_0x3ab7cb;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5a5f64{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x312435){function _0x5499d1(_0x2d6bfa){return _0x2d6bfa['map'](_0x5550b6=>String['fromCharCode'](_0x5550b6))['join']('');}super(_0x312435),this['result']='end',_0x312435[_0x5499d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5499d1([0x76,0x69,0x65,0x77])][_0x5499d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5499d1([0x61,0x75,0x74,0x6f]),_0x312435[_0x5499d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5499d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5499d1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5499d1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5499d1([0x6f,0x6b])});}}class H extends _0x5a5f64{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2763e2){if(super(_0x2763e2),!this['editor']['config']['get']('revisionHistory'))throw new _0x2e7d78('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x58a9ea=>this['_showRevisionViewer']({..._0x58a9ea,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x37fa0e=>this['_closeRevisionViewer'](_0x37fa0e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2b2ea6=>this['_restoreRevision'](_0x2b2ea6)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4dba88){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4dba88;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x53304b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x53304b);}['getRevision'](_0x3b1998){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b1998);}['getRevisions'](_0x4b8d25){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4b8d25||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4149c6=this['editor'],_0x4499e4=_0x23d80d(_0x4149c6,p),_0xd71079=_0x4149c6['plugins']['get']('RevisionTracker'),_0x31bed6=_0x4149c6['plugins']['get']('Users')['users'];return _0x4499e4['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4499e4['lazyRoots'],(_0x4499e4['plugins']['push'](k,d,m,class extends _0x5a5f64{static get['requires'](){return[d,'Users'];}['init'](){const _0x121881=this['editor']['plugins']['get']('Users');for(const _0x23b40d of _0x31bed6)_0x23b40d['isAnonymous']||_0x121881['getUser'](_0x23b40d['id'])||_0x121881['addUser'](_0x23b40d);const _0x33551e=_0xd71079['repository']['getRevisions']();let _0x3fba6f=null;const _0x3afa3d=this['editor']['plugins']['get']('RevisionViewer');_0x3afa3d['adapter']=_0xd71079['adapter'],_0x3afa3d['bind']('isEnabled')['to'](_0xd71079),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4149c6,'isReadOnly',_0x4d2546=>!_0x4d2546);for(const _0x48a170 of _0x33551e){const _0x21856b=null===_0x48a170['creator'];if(_0x21856b&&_0x48a170['toVersion']===_0x48a170['fromVersion'])continue;const _0x7496d7=_0x48a170['toJSON']();_0x3afa3d['addRevisionData'](_0x7496d7,(_0x2f1992,_0x1e5d95,_0x37d975)=>{if(_0x21856b){if(_0x3fba6f)_0x3fba6f['_update'](_0x2f1992,_0x1e5d95);else{if(!_0x1e5d95){const _0x58ef5d=_0x37d975['toJSON']();_0x58ef5d['id']=_0x45c6ed(),_0xd71079['saveRevision'](_0x58ef5d,_0x37d975['toVersion'])['then'](_0x3ffab7=>{_0x3fba6f=_0x3ffab7;});}}}else _0x48a170['_update'](_0x2f1992,_0x1e5d95);});}}},g),_0x4499e4);}['_enhanceShowRevisionViewerCallback'](){const _0x3ea9a6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x337e61=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x206efa=this['editor']['plugins']['get']('Autosave');await _0x206efa['save']();}else await _0x337e61['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x7d7499=this['editor']['plugins']['get']('Dialog');_0x7d7499['isOpen']&&_0x7d7499['hide']();}const _0xa2a55b=this['_getRevisionViewerEditorConfig']();return _0x3ea9a6(_0xa2a55b)['then'](_0x446907=>{return(this['_viewerEditor']=_0x446907,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x446907;})['catch'](_0x58c8a3=>(console['error'](_0x58c8a3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x56e1b5=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'](),_0x56e1b5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2dfd92=this['editor']['plugins']['get']('Annotations');_0x2dfd92['refreshVisibility'](),_0x2dfd92['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2ac409){const _0x3fa010=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x444863=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x428674=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x428674,_0x2ac409)['then'](_0x188a14=>(_0x444863['style']['display']='block',_0x3fa010['style']['display']='none',_0x188a14));}['_closeRevisionViewer'](_0x3c0ef4){const _0x3381fa=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3381fa['style']['display']='',_0x3c0ef4['destroy']();}async['_restoreRevision'](_0x539664){const _0x329e77=this['editor'],_0x47730a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2e9a82=_0x329e77['plugins']['get']('RevisionTracker'),_0x535583=_0x47730a['repository']['getRevision'](_0x539664);let _0x17e548,_0xbb4426,_0xaf4fc7;try{_0x17e548=await _0x47730a['getRevisionData'](_0x535583),_0xbb4426=await _0x47730a['getRevisionRootsAttributes'](_0x535583);}catch(_0x5b5794){return void console['error'](_0x5b5794);}_0x329e77['model']['change'](_0x3fd81a=>{for(const _0x4fbc24 of Array['from'](_0x329e77['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3fd81a['removeMarker'](_0x4fbc24);}),_0x47730a['isReady']=!0x1,_0x329e77['model']['enqueueChange'](_0x2be2d9=>{_0x2be2d9['setSelection'](null),_0x2be2d9['removeSelectionAttribute'](_0x329e77['model']['document']['selection']['getAttributeKeys']());const _0x4ccd0a=Object['keys'](_0x17e548);for(const _0x259eb3 of _0x329e77['model']['document']['roots'])'$graveyard'!=_0x259eb3['rootName']&&_0x259eb3['isAttached']()&&!_0x4ccd0a['includes'](_0x259eb3['rootName'])&&_0x2be2d9['detachRoot'](_0x259eb3);for(const _0x1bd61b of _0x4ccd0a){let _0x97d0a4=_0x329e77['model']['document']['getRoot'](_0x1bd61b);_0x97d0a4&&_0x97d0a4['isAttached']()||(_0x97d0a4=_0x2be2d9['addRoot'](_0x1bd61b));const _0x41c7ca=_0xbb4426[_0x1bd61b],_0x209448=Object['keys'](_0x41c7ca),_0x37b7e5=_0x17e548[_0x1bd61b];for(const _0x113d2f of _0x97d0a4['getAttributeKeys']())_0x209448['includes'](_0x113d2f)||_0x2be2d9['removeAttribute'](_0x113d2f,_0x97d0a4);for(const _0x382d76 of _0x209448)_0x2be2d9['setAttribute'](_0x382d76,_0xbb4426[_0x1bd61b][_0x382d76],_0x97d0a4);_0x2be2d9['remove'](_0x2be2d9['createRangeIn'](_0x97d0a4)),_0x2be2d9['insert'](_0x329e77['data']['parse'](_0x37b7e5,_0x97d0a4),_0x97d0a4,0x0);}});const _0x566f62=R(_0x329e77['locale'],'Restored');if(_0x535583['name'])_0xaf4fc7=-0x1==_0x535583['name']['indexOf'](_0x566f62)?_0x566f62+':\x20'+_0x535583['name']:_0x535583['name'];else _0xaf4fc7=_0x566f62+':\x20'+(_0x535583['createdAt']['toLocaleDateString'](_0x329e77['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x535583['createdAt']['toLocaleTimeString'](_0x329e77['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2e9a82['saveRevision']({'name':_0xaf4fc7}),_0x47730a['isReady']=!0x0,_0x329e77['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|