@ckeditor/ckeditor5-revision-history 45.0.0-alpha.8 → 45.0.0-alpha.9
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/be.js +1 -1
- package/dist/translations/be.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 +11 -11
- 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/revisionhistoryutils.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
|
-
_0x5d9049(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x37b477){super(),this['id']=_0x37b477['id']||_0x5a7eff(),this['creator']=_0x37b477['creator']||null,this['authors']=_0x37b477['authors']||[],this['diffData']=_0x37b477['diffData']||null,this['toVersion']=_0x37b477['toVersion']||0x0,this['fromVersion']=_0x37b477['fromVersion']||0x0,this['set']('name',_0x37b477['name']||''),this['set']('createdAt',_0x37b477['createdAt']||new Date()),this['set']('attributes',_0x37b477['attributes']||{});}['setName'](_0x48c236){this['_update']({'name':_0x48c236});}['setAttribute'](_0x15f411,_0x193d77){const _0x1825c4=_0x2d8281(this['attributes']);_0x738720(_0x1825c4,_0x15f411,_0x193d77),this['_update']({'attributes':_0x1825c4});}['removeAttribute'](_0xe25017){const _0x3f3506=_0x2d8281(this['attributes']);_0x4ddbbb(_0x3f3506,_0xe25017),this['_update']({'attributes':_0x3f3506});}['_update'](_0x2e6a1f,_0x5c0d71=!0x1){let _0x127595=!0x1;const _0x15cf74={'id':this['id']},_0x102ee5=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x244905 of _0x102ee5){const _0x1c9a87=_0x2e6a1f[_0x244905];void 0x0!==_0x1c9a87&&_0x1c9a87!==this[_0x244905]&&(this[_0x244905]=_0x1c9a87,_0x15cf74[_0x244905]=_0x1c9a87,_0x127595=!0x0);}_0x127595&&(_0x15cf74['authors']&&(_0x15cf74['authorsIds']=_0x15cf74['authors']['map'](_0x5a231b=>_0x5a231b['id']),delete _0x15cf74['authors']),this['fire']('_update',_0x15cf74,_0x5c0d71));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3b7547=>_0x3b7547['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4e23c9{['_revisions'];static get['requires'](){return[_0x2bbe8d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x31216e){super(_0x31216e),this['_revisions']=new _0x201912();}['afterInit'](){!async function(_0x274353){const _0x2e3f3e=_0x3692c3([0x6d,0x62,0x30,0x37,0x6e,0x6b,0x64,0x6f,0x4e,0x38,0x75,0x63,0x7a,0x61,0x52,0x51,0x74,0x72,0x33,0x44,0x56,0x58,0x48,0x6c,0x32,0x39,0x45,0x68,0x65,0x54,0x35,0x47,0x4c,0x34,0x4d,0x69,0x77,0x36,0x76,0x5a,0x31,0x4f,0x78,0x46,0x71,0x50,0x59,0x4a,0x53,0x79,0x42,0x6a,0x73,0x4b,0x66,0x55,0x49,0x70,0x41,0x57,0x43,0x67]),_0x233624=0xeb829,_0x3a4d11=0x530fae5,_0x33d434=0x537991d^_0x3a4d11,_0x55571e=window[_0x3692c3([0x44,0x61,0x74,0x65])][_0x3692c3([0x6e,0x6f,0x77])](),_0x3c072f=_0x274353[_0x3692c3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d5f60=new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32e693=>{_0x3c072f[_0x3692c3([0x6f,0x6e,0x63,0x65])](_0x3692c3([0x72,0x65,0x61,0x64,0x79]),_0x32e693);}),_0x2d20eb={[_0x3692c3([0x6b,0x74,0x79])]:_0x3692c3([0x45,0x43]),[_0x3692c3([0x75,0x73,0x65])]:_0x3692c3([0x73,0x69,0x67]),[_0x3692c3([0x63,0x72,0x76])]:_0x3692c3([0x50,0x2d,0x32,0x35,0x36]),[_0x3692c3([0x78])]:_0x3692c3([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]),[_0x3692c3([0x79])]:_0x3692c3([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]),[_0x3692c3([0x61,0x6c,0x67])]:_0x3692c3([0x45,0x53,0x32,0x35,0x36])},_0x107125=_0x3c072f[_0x3692c3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3692c3([0x67,0x65,0x74])](_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x71b52d(){let _0x108bb4,_0x221554=null,_0xa00a74=null;try{if(_0x107125==_0x3692c3([0x47,0x50,0x4c]))return _0x3692c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x108bb4=_0x51a6d8(),!_0x108bb4)return _0x3692c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x108bb4[_0x3692c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa00a74=_0x3c3972(_0x108bb4[_0x3692c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x108bb4[_0x3692c3([0x6a,0x74,0x69])])),await _0x485b79()?_0x365edb()?_0x1b9338()?_0x3692c3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdcc946()?(_0x108bb4[_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3692c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x221554=_0x4948e9(_0x3692c3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x108bb4[_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3692c3([0x74,0x72,0x69,0x61,0x6c])&&(_0x221554=_0x4948e9(_0x3692c3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a22b1()):_0x3692c3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3692c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3692c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5b5fc1){return _0x3692c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b9338(){const _0x262ba0=[_0x3692c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3692c3([0x74,0x72,0x69,0x61,0x6c])][_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x108bb4[_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55571e/0x3e8:0xe10*_0x33d434;return _0x108bb4[_0x3692c3([0x65,0x78,0x70])]<_0x262ba0;}function _0x365edb(){const _0x109410=_0x108bb4[_0x3692c3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x109410)return!0x1;if(_0x109410[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3692c3([0x2a])))return!0x0;if(_0x109410[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3692c3([0x52,0x48])))return!0x0;if(_0x109410[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3692c3([0x52,0x52,0x48]))){if(_0x416e32())return!0x0;if(_0x1ccfac()||_0xbc4b7c())return!0x0;}return!0x1;}function _0xdcc946(){const _0x1bebd4=_0x108bb4[_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bebd4||0x0==_0x1bebd4[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21969e}=new URL(window[_0x3692c3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1bebd4[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21969e))return!0x0;const _0xc4c429=_0x21969e[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])](_0x3692c3([0x2e]));return _0x1bebd4[_0x3692c3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d4f59=>_0x5d4f59[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3692c3([0x2a])))[_0x3692c3([0x6d,0x61,0x70])](_0x3a6ade=>_0x3a6ade[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])](_0x3692c3([0x2e])))[_0x3692c3([0x73,0x6f,0x6d,0x65])](_0x113b3d=>_0xc4c429[_0x3692c3([0x65,0x76,0x65,0x72,0x79])]((_0x5b4bc1,_0x2496a8)=>_0x113b3d[_0x2496a8]===_0x5b4bc1||_0x113b3d[_0x2496a8]===_0x3692c3([0x2a])));}function _0x1a22b1(){return _0x221554&&_0xa00a74?new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2788cc,_0x3f20ac)=>{_0x221554[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x2788cc,_0x3f20ac),_0xa00a74[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x58b85a=>{_0x58b85a!=_0x3692c3([0x56,0x61,0x6c,0x69,0x64])&&_0x2788cc(_0x58b85a);},_0x3f20ac);}):_0x221554||_0xa00a74||_0x3692c3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c3972(_0x22ab41,_0x15eed6){return new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb0030=>{if(_0x1ea896())return _0xcb0030(_0x3692c3([0x56,0x61,0x6c,0x69,0x64]));_0xb461fb(),_0x3c072f[_0x3692c3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3692c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e053a=!0x1;const _0x4ed48b=_0x5a7eff();function _0x80882b(_0x4cf345){return!!_0x4cf345&&(typeof _0x4cf345===_0x3692c3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4cf345===_0x3692c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4cf345[_0x3692c3([0x74,0x68,0x65,0x6e])]===_0x3692c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4cf345[_0x3692c3([0x63,0x61,0x74,0x63,0x68])]===_0x3692c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x556d81(_0x1c3746){_0x77d089(_0x1c3746)[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x5ba4f6=>{if(!_0x5ba4f6||_0x5ba4f6[_0x3692c3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3692c3([0x6f,0x6b]))return _0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41d378(_0x20c7c1(_0x4ed48b+_0x15eed6))!=_0x5ba4f6[_0x3692c3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3692c3([0x56,0x61,0x6c,0x69,0x64]);})[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x300de8=>(_0x42a36e(),_0x300de8),()=>{const _0x2f7e74=_0xeff25f();return null==_0x2f7e74?(_0x42a36e(),_0x3692c3([0x56,0x61,0x6c,0x69,0x64])):_0x3692c3(_0x55571e-_0x2f7e74>(0x213c7ee5^_0x3a4d11)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3692c3([0x74,0x68,0x65,0x6e])](_0xcb0030)[_0x3692c3([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcb0030(_0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x82a04e=0x5061465^_0x3a4d11;function _0x42a36e(){const _0x283681=_0x3692c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x41d378(_0x20c7c1(_0x22ab41)),_0x3f600d=_0x58b4a2(_0x41d378(window[_0x3692c3([0x4d,0x61,0x74,0x68])][_0x3692c3([0x63,0x65,0x69,0x6c])](_0x55571e/_0x82a04e)));window[_0x3692c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3692c3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x283681,_0x3f600d);}function _0xeff25f(){const _0x342eea=_0x3692c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x41d378(_0x20c7c1(_0x22ab41)),_0x39ce3b=window[_0x3692c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3692c3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x342eea);return _0x39ce3b?window[_0x3692c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b4a2(_0x39ce3b),0x10)*_0x82a04e:null;}function _0x77d089(_0x2faaf0){return new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55261e,_0x5d6f4c)=>{_0x2faaf0[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x55261e,_0x5d6f4c),window[_0x3692c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d6f4c,0x5312e25^_0x3a4d11);});}}_0x3c072f[_0x3692c3([0x6f,0x6e])](_0x3692c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39f1c7,_0x54405b)=>{if(_0x54405b[0x0]!=_0x22ab41)return _0xcb0030(_0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54405b[0x1]={..._0x54405b[0x1],[_0x3692c3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ed48b};},{[_0x3692c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3692c3([0x68,0x69,0x67,0x68])}),_0x3c072f[_0x3692c3([0x6f,0x6e])](_0x3692c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13dc90=>{_0x80882b(_0x13dc90[_0x3692c3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e053a=!0x0,_0x556d81(_0x13dc90[_0x3692c3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3692c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3692c3([0x6c,0x6f,0x77])}),_0x2d5f60[_0x3692c3([0x74,0x68,0x65,0x6e])](()=>{_0x5e053a||_0xcb0030(_0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ea896(){return _0x3c072f[_0x3692c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3692c3([0x76,0x69,0x65,0x77])][_0x3692c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3692c3([0x61,0x75,0x74,0x6f]);}function _0xb461fb(){_0x3c072f[_0x3692c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3692c3([0x76,0x69,0x65,0x77])][_0x3692c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3692c3([0x61,0x75,0x74,0x6f]);}}function _0x4948e9(_0x2af8c4){const _0x104ab5=[new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220efa=>setTimeout(_0x220efa,0x539c429^_0x3a4d11)),_0x2d5f60[_0x3692c3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38459b=>{const _0x10ad73=0x530fae2^_0x3a4d11,_0x1d3569=_0x274353[_0x3692c3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x493ea5(){_0x1d3569[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10ad73&&_0x38459b();}_0x493ea5(),_0x1d3569[_0x3692c3([0x6f,0x6e])](_0x3692c3([0x61,0x64,0x64]),_0x493ea5);})),new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22defd=>{function _0x13970d(){for(const _0x47ae15 in window)if(window[_0x3692c3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3692c3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x47ae15))&&window[_0x47ae15]==_0x233624)return _0x22defd();_0x3c072f[_0x3692c3([0x73,0x74,0x61,0x74,0x65])]!=_0x3692c3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3692c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13970d,0x530e96d^_0x3a4d11);}_0x734281(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x13970d();})];return window[_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3692c3([0x72,0x61,0x63,0x65])](_0x104ab5)[_0x3692c3([0x74,0x68,0x65,0x6e])](()=>_0x2af8c4);}async function _0x5421c1(){if(await _0x2d5f60,_0x734281(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x56a0b0=_0x274353[_0x3692c3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2e67ff=_0x274353[_0x3692c3([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])](_0x56a0b0[_0x3692c3([0x69,0x64])]),_0x221706=_0x485bcc(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x221706[_0x3692c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x56a0b0['id'],_0x2e67ff?_0x2e67ff['id']:null,!0x0),_0x221706[_0x3692c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3692c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x221706[_0x3692c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x221706[_0x3692c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4fa511,void(_0x221706[_0x3692c3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4fa511);}if(_0x734281(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x58a2ae=_0x485bcc(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x58a2ae[_0x3692c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3692c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58a2ae[_0x3692c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58a2ae[_0x3692c3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4fa511,_0x58a2ae[_0x3692c3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4fa511;}_0x3c072f[_0x3692c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3692c3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa511,_0x3c072f[_0x3692c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3692c3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa511,_0x3c072f[_0x3692c3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3692c3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x416e32(){return _0x734281(_0x3692c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x485bcc(_0x3692c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3692c3([0x73,0x74,0x61,0x74,0x65])]==_0x3692c3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ccfac(){return _0x734281(_0x3692c3([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 _0xbc4b7c(){return _0x734281(_0x3692c3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x358658(_0x4ddf54){const _0x9baaaf=_0xda700d();_0x3c072f[_0x9baaaf]=_0x3692c3([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])+_0x4ddf54,_0x4ddf54[_0x3692c3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3692c3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xda700d()]=_0x233624),_0x4ddf54!=_0x3692c3([0x56,0x61,0x6c,0x69,0x64])&&_0x5421c1();}function _0xda700d(){const _0x580fdc=window[_0x3692c3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3692c3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3692c3([0x6e,0x6f,0x77])]())[_0x3692c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3692c3([0x2e]),'');let _0x58c0d5=_0x3692c3([0x6d]);for(let _0x3e14c5=0x0;_0x3e14c5<_0x580fdc[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e14c5+=0x2){let _0x31e61d=window[_0x3692c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x580fdc[_0x3692c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e14c5,_0x3e14c5+0x2));_0x31e61d>=_0x2e3f3e[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31e61d-=_0x2e3f3e[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58c0d5+=_0x2e3f3e[_0x31e61d];}return _0x58c0d5;}function _0x51a6d8(){const _0x5c0bcf=_0x107125[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])](_0x3692c3([0x2e]));if(0x3!=_0x5c0bcf[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3763bf(_0x5c0bcf[0x1]);function _0x3763bf(_0x1b0b8e){const _0x24a5dc=_0x362acc(_0x1b0b8e);return _0x24a5dc&&_0x38a6cf()?_0x24a5dc:null;function _0x38a6cf(){const _0x45e616=_0x24a5dc[_0x3692c3([0x6a,0x74,0x69])],_0x54e7de=window[_0x3692c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45e616[_0x3692c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45e616[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5025c2={..._0x24a5dc,[_0x3692c3([0x6a,0x74,0x69])]:_0x45e616[_0x3692c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45e616[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5025c2[_0x3692c3([0x76,0x63])],_0x20c7c1(_0x5025c2)==_0x54e7de;}}}async function _0x485b79(){let _0x582a32=!0x0;try{const _0x147728=_0x107125[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])](_0x3692c3([0x2e])),[_0x378554,_0x589066,_0x5a0809]=_0x147728;return _0x17f057(_0x378554),await _0x3b0323(_0x378554,_0x589066,_0x5a0809),_0x582a32;}catch(_0x39ca95){return!0x1;}function _0x17f057(_0x5abd93){const _0x33980a=_0x362acc(_0x5abd93);_0x33980a&&_0x33980a[_0x3692c3([0x61,0x6c,0x67])]==_0x3692c3([0x45,0x53,0x32,0x35,0x36])||(_0x582a32=!0x1);}async function _0x3b0323(_0x1912b5,_0x43e038,_0x30d56d){const _0x5864cf=window[_0x3692c3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3692c3([0x66,0x72,0x6f,0x6d])](_0x3dd024(_0x30d56d),_0x40b980=>_0x40b980[_0x3692c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x310d13=new window[(_0x3692c3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3692c3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1912b5+_0x3692c3([0x2e])+_0x43e038),_0x3cd296=window[_0x3692c3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3692c3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cd296)return;const _0x3bd668=await _0x3cd296[_0x3692c3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3692c3([0x6a,0x77,0x6b]),_0x2d20eb,{[_0x3692c3([0x6e,0x61,0x6d,0x65])]:_0x3692c3([0x45,0x43,0x44,0x53,0x41]),[_0x3692c3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3692c3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3692c3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cd296[_0x3692c3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3692c3([0x6e,0x61,0x6d,0x65])]:_0x3692c3([0x45,0x43,0x44,0x53,0x41]),[_0x3692c3([0x68,0x61,0x73,0x68])]:{[_0x3692c3([0x6e,0x61,0x6d,0x65])]:_0x3692c3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3bd668,_0x5864cf,_0x310d13)||(_0x582a32=!0x1);}}function _0x362acc(_0x5bc2d5){return _0x5bc2d5[_0x3692c3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3692c3([0x65,0x79]))?JSON[_0x3692c3([0x70,0x61,0x72,0x73,0x65])](_0x3dd024(_0x5bc2d5)):null;}function _0x3dd024(_0x5c6871){return window[_0x3692c3([0x61,0x74,0x6f,0x62])](_0x5c6871[_0x3692c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3692c3([0x2b]))[_0x3692c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3692c3([0x2f])));}function _0x20c7c1(_0x86def0){let _0xa54650=0x1505;function _0x1c90ec(_0x56c4ad){for(let _0x373030=0x0;_0x373030<_0x56c4ad[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x373030++){const _0x3c9e2c=_0x56c4ad[_0x3692c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x373030);_0xa54650=(_0xa54650<<0x5)+_0xa54650+_0x3c9e2c,_0xa54650&=_0xa54650;}}function _0x5c26e2(_0x11933d){Array[_0x3692c3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11933d)?_0x11933d[_0x3692c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c26e2):_0x11933d&&typeof _0x11933d==_0x3692c3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3692c3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11933d)[_0x3692c3([0x73,0x6f,0x72,0x74])]()[_0x3692c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5fa36b,_0x54ea45])=>{_0x1c90ec(_0x5fa36b),_0x5c26e2(_0x54ea45);}):_0x1c90ec(window[_0x3692c3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11933d));}return _0x5c26e2(_0x86def0),_0xa54650>>>0x0;}function _0x41d378(_0x3b5444){return _0x3b5444[_0x3692c3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3692c3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3692c3([0x30]));}function _0x58b4a2(_0x2a77e0){return _0x2a77e0[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3692c3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3692c3([0x6a,0x6f,0x69,0x6e])]('');}function _0x734281(_0x40ff80){return _0x3c072f[_0x3692c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3692c3([0x68,0x61,0x73])](_0x40ff80);}function _0x485bcc(_0x56c5a6){return _0x3c072f[_0x3692c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3692c3([0x67,0x65,0x74])](_0x56c5a6);}function _0x4fa511(){}function _0x3692c3(_0x16dc13){return _0x16dc13['map'](_0x1e9951=>String['fromCharCode'](_0x1e9951))['join']('');}_0x358658(await _0x71b52d());}(this);}['createRevision'](_0x29aae2){const _0x2c7855=this['editor']['plugins']['get']('Users');return new h({'id':_0x29aae2['id'],'name':_0x29aae2['name'],'creator':_0x29aae2['creatorId']?_0x2c7855['getUser'](_0x29aae2['creatorId']):null,'diffData':_0x29aae2['diffData']||_0x29aae2['data'],'authors':_0x29aae2['authorsIds']['map'](_0x5e2330=>_0x2c7855['getUser'](_0x5e2330)),'createdAt':new Date(_0x29aae2['createdAt']),'attributes':_0x29aae2['attributes'],'fromVersion':_0x29aae2['fromVersion'],'toVersion':_0x29aae2['toVersion']});}['addRevision'](_0xe8e94d,_0xeba6e2=0x0){this['_revisions']['add'](_0xe8e94d,_0xeba6e2);}['getRevision'](_0x157f0e){return this['_revisions']['get'](_0x157f0e);}['getRevisions'](_0x50b662={'toJSON':!0x1}){const _0x46e2da=Array['from'](this['_revisions']);return _0x46e2da['reverse'](),_0x50b662['toJSON']?_0x46e2da['map'](_0x53da72=>_0x53da72['toJSON']()):_0x46e2da;}['getIndex'](_0x465a63){return this['_revisions']['getIndex'](_0x465a63);}['getEarlierVisibleRevision'](_0x46bb6e){const [,_0x4e3656]=this['getRevisionsIterator'](_0x46bb6e,{'direction':'earlier'});return _0x4e3656;}['getLaterVisibleRevision'](_0x5a79b4){const [,_0xf4ec16]=this['getRevisionsIterator'](_0x5a79b4,{'direction':'later'});return _0xf4ec16;}['getRevisionsInDiff'](_0x3ba6f3){const _0xdb336a=[];for(const _0xe5d49e of this['getRevisionsIterator'](_0x3ba6f3['newRevisionId']))if(_0xdb336a['push'](_0xe5d49e),_0xe5d49e['id']===_0x3ba6f3['oldRevisionId'])break;return _0xdb336a;}*['getRevisionsIterator'](_0x291ce2,{direction:_0xa286cb='earlier',filter:_0x3e7223=()=>!0x0}={}){const _0x278230='earlier'===_0xa286cb?0x1:-0x1;let _0x22a6d4=this['_revisions']['get'](_0x291ce2),_0x443647=this['getIndex'](_0x22a6d4);for(yield _0x22a6d4;_0x22a6d4;){if(_0x443647+=_0x278230,_0x22a6d4=this['getRevision'](_0x443647),!_0x22a6d4)return;_0x3e7223(_0x22a6d4)&&(yield _0x22a6d4);}}}class V extends _0x4e23c9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x455180,'c'],[_0x2250e7,'a'],[_0x1a1427,'e'],[_0x4f51b0,'r'],[_0xad452b,'u']]);['_typeCharToViewClass']=new Map([['c',_0x455180],['a',_0x2250e7],['e',_0x1a1427],['r',_0x4f51b0],['u',_0xad452b]]);async['loadRevisionData'](_0x335579,_0x3baf7a){if(_0x335579['diffData']||!_0x3baf7a)return;const _0x54ccdb=this['editor']['config']['get']('collaboration.channelId'),_0x36b2b2=await _0x3baf7a['getRevision']({'channelId':_0x54ccdb,'revisionId':_0x335579['id']});_0x335579['diffData']=_0x36b2b2['diffData'];}['getRevisionDocumentData'](_0x3b7f49){const _0xdfa338={};for(const _0x352f54 in _0x3b7f49['diffData']){if(_0x3b7f49['diffData'][_0x352f54]['attachChange']&&!_0x3b7f49['diffData'][_0x352f54]['attachChange']['isAttached'])continue;const _0x4f34d1=this['_removeRevisionMarkers'](JSON['parse'](_0x3b7f49['diffData'][_0x352f54]['insertions'])),_0x3e17a1=this['editor']['editing']['view']['document'],_0x17cb25=new _0x4aad50(_0x3e17a1,_0x4f34d1['map'](_0x5416fb=>this['_getViewFromDiffObj'](_0x5416fb,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xdfa338[_0x352f54]=this['editor']['data']['processor']['toData'](_0x17cb25),this['editor']['data']['processor']['useFillerType']('default');}return _0xdfa338;}['getRevisionRootsAttributes'](_0x2f3f0e){const _0x4b37cc={};for(const _0x427527 in _0x2f3f0e['diffData'])_0x2f3f0e['diffData'][_0x427527]['attachChange']&&!_0x2f3f0e['diffData'][_0x427527]['attachChange']['isAttached']||(_0x4b37cc[_0x427527]=_0x2f3f0e['diffData'][_0x427527]['attributesAfter']||{});return _0x4b37cc;}['_getTypeCharForViewElement'](_0x378861){return this['_viewClassToTypeChar']['get'](_0x378861['constructor']);}['_getViewFromDiffObj'](_0xdce109,_0x394980){const _0x1e0acd=this['editor']['editing']['view']['document'];if('string'==typeof _0xdce109)return new _0x9b3328(_0x1e0acd,_0xdce109);{let _0x42726e,_0x383e97;_0x383e97='u'==_0xdce109['type']||'r'==_0xdce109['type']?[]:_0xdce109['children']['map'](_0x48888b=>this['_getViewFromDiffObj'](_0x48888b,_0x394980));const _0x5bd8cb=this['_typeCharToViewClass']['get'](_0xdce109['type'])||_0x1c3a33,_0xc76380=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x42726e=new _0x5bd8cb(_0x1e0acd,_0xdce109['name'],_0xdce109['attributes'],_0x383e97),'u'==_0xdce109['type']&&_0xdce109['children'][0x0]){const _0x58735e=_0xdce109['children'][0x0];if(_0x42726e['render']=function(_0x30a1bc){const _0xd04e39=_0x30a1bc['createElement']('div');return _0xd04e39['innerHTML']=_0x58735e,_0xd04e39['childNodes'][0x0];},_0x394980){const _0x3b302d=new _0x4aad50(_0x1e0acd);_0x3b302d['_appendChild'](_0x42726e);const _0x4d2963=Array['from'](_0xc76380['viewChildrenToDom'](_0x3b302d,{'bind':!0x1})),_0x193d7c=_0xc76380['domDocument']['createElement']('div');_0x193d7c['append'](..._0x4d2963),_0x42726e=Array['from'](_0xc76380['domChildrenToView'](_0x193d7c))[0x0];}}else{if('r'==_0xdce109['type']&&_0xdce109['children'][0x0]){const _0x1aed6b=_0xdce109['children'][0x0];if(_0x42726e['render']=function(_0x40112b){_0x40112b['innerHTML']=_0x1aed6b;},_0x394980){const _0x26105b=new _0x4aad50(_0x1e0acd);_0x26105b['_appendChild'](_0x42726e);const _0xc1869=Array['from'](_0xc76380['viewChildrenToDom'](_0x26105b,{'bind':!0x1})),_0x58040a=_0xc76380['domDocument']['createElement']('div');_0x58040a['append'](..._0xc1869);const _0x1aecd9=Array['from'](_0xc76380['domChildrenToView'](_0x58040a));_0x1aecd9['length']>0x1?_0x42726e['_appendChild'](_0x1aecd9):_0x42726e=_0x1aecd9[0x0];}}}if(_0xdce109['customProperties']){for(const [_0x437e75,_0xdc2b6]of _0xdce109['customProperties'])_0x42726e['_setCustomProperty'](_0x437e75,_0xdc2b6);}const _0x58ae12=void 0x0===_0xdce109['fillerOffset']?null:_0xdce109['fillerOffset'];return null!==_0x58ae12&&(_0x42726e['getFillerOffset']=()=>_0x58ae12),_0x42726e;}}['_makeModelFromViewString'](_0x4c36b3){const _0x6ebe3c=JSON['parse'](_0x4c36b3),_0x405528=this['editor']['editing']['view']['document'],_0x97584b=new _0x4aad50(_0x405528,_0x6ebe3c['map'](_0x2fdb33=>this['_getViewFromDiffObj'](_0x2fdb33,!0x0)));return this['editor']['data']['toModel'](_0x97584b);}['_removeRevisionMarkers'](_0x269e36){return(_0x269e36=_0x269e36['filter'](_0xbb8ec0=>!_0xbb8ec0['name']||'revision-start'!==_0xbb8ec0['name']&&'revision-end'!==_0xbb8ec0['name']))['forEach'](_0x3a8e82=>{'string'!=typeof _0x3a8e82&&(_0x3a8e82['children']=this['_removeRevisionMarkers'](_0x3a8e82['children']),_0x3a8e82['attributes']=_0x3a8e82['attributes']['filter'](_0x951db9=>!_0x951db9[0x0]['startsWith']('data-revision-')));}),_0x269e36;}}function g(_0x473123,_0x1882c3,_0x3df9c2){const t=_0x473123['t'];switch(_0x1882c3){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'},_0x3df9c2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3df9c2);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'';}}class u extends _0x4e23c9{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2bbe8d,I,V,_0x75fc49];}constructor(_0x3671a9){super(_0x3671a9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x50d7c5=_0x5a7eff();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x50d7c5},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3b741a=this['repository']['getRevision'](0x0),_0x1d7733=_0x3b741a&&null===_0x3b741a['creator']?_0x3b741a:null;if(this['_continueCurrentRevision']=!!_0x1d7733&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2993c3=this['_source']['getCurrentRevisionId'](),_0x13e4b6=this['repository']['getRevision'](_0x2993c3);if(_0x13e4b6)this['_startingVersion']=_0x13e4b6['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x32575e=this['_source']['history']['_operations']['find'](_0x23a191=>!_0x23a191['_isInit']),_0x2ea30c=_0x32575e?_0x32575e['baseVersion']:this['_source']['history']['version'];_0x3b741a?(_0x3b741a['toVersion']<_0x2ea30c&&_0x3b741a['_update']({'toVersion':_0x2ea30c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1d7733['id'],this['_startingVersion']=_0x1d7733['fromVersion']):(this['_startingVersion']=_0x3b741a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ea30c,this['_continueCurrentRevision']=!0x1);}}else _0x1d7733&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1d7733['toVersion'],this['editor']['model']['document']['history']['version']),_0x1d7733['fromVersion']===_0x1d7733['toVersion']?(0x0!==_0x1d7733['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d7733['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d7733['id'],this['_startingVersion']=_0x1d7733['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',_0x4d8d6f=>!_0x4d8d6f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ce09f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3fc2b0;for(const _0x28fdfb in _0x5ce09f){const _0x149e6b=_0x28fdfb,_0x334918=_0x5ce09f[_0x149e6b];if('revisionHistoryLicenseKeyValid'==_0x334918||'revisionHistoryLicenseKeyInvalid'==_0x334918||'revisionHistoryLicenseKeyExpired'==_0x334918||'revisionHistoryLicenseKeyDomainLimit'==_0x334918||'revisionHistoryLicenseKeyNotAllowed'==_0x334918||'revisionHistoryLicenseKeyEvaluationLimit'==_0x334918||'revisionHistoryLicenseKeyTrialLimit'==_0x334918||'revisionHistoryLicenseKeyUsageLimit'==_0x334918){delete _0x5ce09f[_0x149e6b],_0x3fc2b0=_0x334918,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x106676=this['repository']['getRevision'](0x0),_0x2a1549=await this['getRevisionDocumentData'](_0x106676),_0x1f8e34=await this['getRevisionRootsAttributes'](_0x106676);this['_replaceEditorDataWithRevisionData'](_0x2a1549,_0x1f8e34);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x143f8d){this['_source']=_0x143f8d;}async['update'](){const _0x3d8bb2=await this['_source']['getLatestVersion']();if(_0x3d8bb2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3aebbb=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d8bb2});_0x3aebbb['authors']=_0x3aebbb['authorsIds']['map'](_0x2407e2=>this['editor']['plugins']['get']('Users')['getUser'](_0x2407e2)),this['currentRevision']['_update'](_0x3aebbb);}}async['saveRevision'](_0x169c60={},_0x315b68=null){const _0x4b6e2c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x315b68>this['currentRevision']['toVersion']&&(_0x315b68=null),null===_0x315b68&&(_0x315b68=await this['_source']['getLatestVersion']());const _0x1f791d=this['_getFromVersion'](_0x315b68),_0x5b1b3c=this['buildRevisionData']({'from':_0x1f791d,'to':_0x315b68});if(this['currentRevision']['toVersion']<_0x315b68){const _0x2fa24a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x315b68,'to':_0x315b68});_0x2fa24a['authors']=[],_0x2fa24a['authorsIds']=[],_0x2fa24a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2fa24a,!0x0),delete _0x2fa24a['authors'],_0x4b6e2c['push'](_0x2fa24a);}_0x169c60['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x169c60['name']=_0x169c60['name']||null,_0x169c60['id']=_0x169c60['id']||_0x5a7eff(),_0x169c60={..._0x169c60,..._0x5b1b3c};const _0x39c213=this['addRevisionData'](_0x169c60);_0x4b6e2c['push'](_0x169c60);const _0x2274c3=this['repository']['getIndex'](_0x39c213);if(0x0!==_0x2274c3){const _0x3c8397=this['repository']['getRevision'](_0x2274c3-0x1);if(_0x3c8397['fromVersion']!==_0x315b68){const _0x2cc393=this['_revisionDataBuilder']['getData'](_0x315b68,_0x3c8397['toVersion']),_0x473e77={'id':_0x3c8397['id'],'diffData':_0x2cc393['diffData'],'authorsIds':_0x2cc393['authorsIds'],'authors':_0x2cc393['authorsIds']['map'](_0x574ff9=>this['editor']['plugins']['get']('Users')['getUser'](_0x574ff9)),'fromVersion':_0x315b68};_0x3c8397===this['currentRevision']&&(_0x473e77['createdAt']=new Date(_0x169c60['createdAt']['getTime']()+0xa)),_0x3c8397['_update'](_0x473e77,!0x0),delete _0x473e77['authors'],_0x4b6e2c['push'](_0x473e77);}}if(this['adapter']){for(const _0x4df7f7 of _0x4b6e2c)this['_bufferUpdate'](_0x4df7f7['id'],_0x4df7f7,!0x0);this['sendBufferedUpdates']();}return _0x39c213;}['addRevisionData'](_0x1fe7b7){const _0x294246=this['repository']['createRevision'](_0x1fe7b7);return this['adapter']&&_0x294246['on']('_update',(_0x1288a3,_0x594663,_0x587022)=>{_0x587022||(this['_bufferUpdate'](_0x594663['id'],_0x594663,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x294246,this['_findInsertionIndex'](_0x294246)),_0x294246;}async['getRevisionDocumentData'](_0x4208f6){return await this['_utils']['loadRevisionData'](_0x4208f6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4208f6);}async['getRevisionRootsAttributes'](_0x5e9800){return await this['_utils']['loadRevisionData'](_0x5e9800,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5e9800);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4fc5aa=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x591d6a=0x0;_0x591d6a<_0x4fc5aa['length'];_0x591d6a++){const _0x372a95=_0x4fc5aa[_0x591d6a];let _0x4ffb55=!0x1;for(const _0xd4b4f4 of Object['keys'](_0x372a95))void 0x0===_0x372a95[_0xd4b4f4]?delete _0x372a95[_0xd4b4f4]:'id'!==_0xd4b4f4&&(_0x4ffb55=!0x0);_0x4ffb55||(_0x4fc5aa[_0x591d6a]=null);}if(_0x4fc5aa=_0x4fc5aa['filter'](_0x5d06ed=>null!==_0x5d06ed),!_0x4fc5aa['length'])return;for(let _0x19f8d8=0x0;_0x19f8d8<_0x4fc5aa['length'];_0x19f8d8++){const _0x429287=_0x4fc5aa[_0x19f8d8];void 0x0!==_0x429287['fromVersion']&&void 0x0===_0x429287['toVersion']&&(_0x429287['toVersion']=this['repository']['getRevision'](_0x429287['id'])['toVersion']),void 0x0!==_0x429287['toVersion']&&void 0x0===_0x429287['fromVersion']&&(_0x429287['fromVersion']=this['repository']['getRevision'](_0x429287['id'])['fromVersion']);}const _0xe1e5d1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4fc5aa,_0xe1e5d1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x231f56=>{if(_0x231f56){for(const _0x5ab7df of _0x231f56)this['setRevisionData']({'id':_0x5ab7df['id'],'createdAt':_0x5ab7df['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x383be3=null,from:_0x319417=null,to:_0x436ba4=null}){_0x319417=null!==_0x319417?_0x319417:_0x383be3['fromVersion'],_0x436ba4=null!==_0x436ba4?_0x436ba4:_0x383be3['toVersion'];const _0x5294df=this['_revisionDataBuilder']['getData'](_0x319417,_0x436ba4),_0x46b1ca={'diffData':_0x5294df['diffData'],'authorsIds':_0x5294df['authorsIds'],'fromVersion':_0x319417,'toVersion':_0x436ba4};if(!_0x383be3||_0x436ba4!==_0x383be3['toVersion']){const _0x2ebb47=_0x436ba4-0x1,_0x2b75f3=this['_source']['history']['getOperation'](_0x2ebb47);_0x46b1ca['createdAt']=_0x2b75f3&&_0x2b75f3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x319417===this['_loadedStateData']['fromVersion']){for(const _0xeaf43d of this['_loadedStateData']['authors'])_0x46b1ca['authorsIds']['includes'](_0xeaf43d['id'])||_0x46b1ca['authorsIds']['push'](_0xeaf43d['id']);}return _0x46b1ca;}['_bufferUpdate'](_0x6e584e,_0x403510,_0x2e5835){if(this['_bufferedUpdates']['has'](_0x6e584e)){const _0x2abf32=this['_bufferedUpdates']['get'](_0x6e584e);_0x403510=_0x2e5835?{..._0x2abf32,..._0x403510}:{..._0x403510,..._0x2abf32};}this['_bufferedUpdates']['set'](_0x6e584e,_0x403510);}['setRevisionData'](_0xe9cb70){const _0x456a11=this['repository']['getRevision'](_0xe9cb70['id']);if(_0xe9cb70['createdAt']&&(_0xe9cb70['createdAt']=new Date(_0xe9cb70['createdAt'])),_0xe9cb70['authorsIds']){const _0x35e423=this['editor']['plugins']['get']('Users');_0xe9cb70['authors']=_0xe9cb70['authorsIds']['map'](_0x12c34e=>_0x35e423['getUser'](_0x12c34e));}_0x456a11['_update'](_0xe9cb70,!0x0);}['_createInitialRevision'](_0x48d7df){const _0x19c34d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x19c34d)this['_initialRevisionId']=_0x19c34d['id'];else{const _0x46638f=!this['editor']['model']['document']['roots']['find'](_0x54a21c=>this['editor']['model']['hasContent'](_0x54a21c)),_0x1ee210=this['editor']['plugins']['get']('Users')['me']['id'],_0x113439=g(this['editor']['locale'],_0x46638f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x48d7df,'to':_0x48d7df,'id':this['_initialRevisionId'],'name':_0x113439,'creatorId':_0x1ee210});}}['_createCurrentRevision'](_0x4fa263){const _0x173409=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x173409),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4fa263,'to':_0x4fa263,'id':_0x173409,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x231971,_0x5019c0){let _0x4b1621=this['editor']['config']['get']('initialData'),_0x277e3b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4b1621){_0x4b1621={};for(const _0x3ca773 of this['editor']['model']['document']['getRootNames']())_0x4b1621[_0x3ca773]='';}if('string'==typeof _0x4b1621&&(_0x4b1621={'main':_0x4b1621}),void 0x0===_0x277e3b){_0x277e3b={};for(const _0x5077bd of this['editor']['model']['document']['getRootNames']())_0x277e3b[_0x5077bd]={};}let _0x590c4b=!0x1;const _0x6c0770=Object['keys'](_0x4b1621),_0x4ce301=Object['keys'](_0x231971);for(const _0xde94b5 of _0x6c0770){if(_0x4b1621[_0xde94b5]!==_0x231971[_0xde94b5]&&''!==_0x4b1621[_0xde94b5]['trim']()){_0x590c4b=!0x0;break;}if(!_0x1dba9f(_0x277e3b[_0xde94b5],_0x5019c0[_0xde94b5])&&Object['keys'](_0x277e3b[_0xde94b5])['length']>0x0){_0x590c4b=!0x0;break;}}_0x590c4b||(_0x590c4b=_0x4ce301['some'](_0x417a78=>!this['editor']['model']['document']['getRoot'](_0x417a78))),_0x590c4b&&_0x3f770d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4b1621,'editorRootsAttributes':_0x277e3b,'revisionData':_0x231971,'revisionRootsAttributes':_0x5019c0}),this['editor']['config']['set']('initialData',_0x231971),this['editor']['config']['set']('rootsAttributes',_0x5019c0);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x30823f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x30823f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x164148){const _0x1774a5=this['repository']['getRevisions']();_0x1774a5['reverse']();let _0x1a5b27=0x0;for(;_0x1a5b27<_0x1774a5['length'];){const _0x1e57a4=_0x1774a5[_0x1a5b27];if(_0x1e57a4===this['currentRevision']){_0x1a5b27++;continue;}if(_0x1e57a4['id']===this['_initialRevisionId'])break;const _0x51069d=_0x164148['toVersion']-_0x1e57a4['toVersion']||_0x164148['fromVersion']-_0x1e57a4['fromVersion'];if(_0x51069d>0x0)break;if(_0x51069d<0x0)_0x1a5b27++;else{if(!_0x164148['creator']&&_0x1e57a4['creator'])break;if(_0x1e57a4['creator']||!_0x164148['creator']){if(_0x164148['createdAt']>_0x1e57a4['createdAt'])break;_0x1a5b27++;}else _0x1a5b27++;}}return _0x1a5b27;}['_getFromVersion'](_0x3b22d0){const _0xccf8e1=this['repository']['getRevisions']();_0xccf8e1['reverse'](),_0xccf8e1['shift']();const _0x1c6dfa=_0xccf8e1['find'](_0x362396=>_0x362396['toVersion']<=_0x3b22d0)['toVersion'];return _0x1c6dfa<this['_startingVersion']?this['_startingVersion']:_0x1c6dfa;}['_makeRevision']({name:_0x7f9cc1,from:_0x25555e,to:_0x1dee4f,creatorId:_0x4eb9f0,id:_0x3e6d0a}){const _0x32d03c=this['buildRevisionData']({'from':_0x25555e,'to':_0x1dee4f});_0x32d03c['name']=_0x7f9cc1,_0x32d03c['creatorId']=_0x4eb9f0,_0x32d03c['id']=_0x3e6d0a;const _0x5e60f3=this['addRevisionData'](_0x32d03c);return this['adapter']&&this['_bufferUpdate'](_0x32d03c['id'],_0x32d03c,!0x0),_0x5e60f3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1b0cc2){this['editor']=_0x1b0cc2,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'](_0x23e443){this['source']=_0x23e443;const _0x3126e8=new Map(),_0x5c23c7=new Map(),_0x34ce15=this['editor']['model']['document']['roots']['map'](_0x5c4b5b=>_0x5c4b5b['rootName']);for(const _0x34f068 of _0x34ce15){const _0x5d9b7d=this['editor']['model']['document']['getRoot'](_0x34f068),_0x288a58=N(_0x5d9b7d);_0x3126e8['set'](_0x34f068,_0x288a58),_0x5c23c7['set'](_0x34f068,Object['fromEntries'](_0x5d9b7d['getAttributes']()));}const _0x55b440=Array['from'](this['editor']['model']['markers'])['map'](_0x3a4a55=>[_0x3a4a55['name'],_0x3a4a55['getRange']()]),_0x4ba34c=this['source']['version'];this['_saveMetaData'](_0x4ba34c,_0x3126e8,_0x55b440,_0x5c23c7),this['_startingRevisionId']=this['_revisionId'];const _0x3e0cea=new Map(),_0x5b4846=new Map();for(const _0x5b396a of _0x34ce15){const _0x518ba6=P(_0x5b396a);_0x3e0cea['set'](_0x5b396a,_0x518ba6),_0x5b4846['set'](_0x5b396a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3e0cea,[],_0x5b4846);}['getData'](_0x33900e,_0x11afb4){if(this['_lastFrom']===_0x33900e&&this['_lastTo']<=_0x11afb4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x11afb4,!0x0);else{if(!this['_savedMetaData']['has'](_0x33900e)){const _0x1476fb=this['_getPreviousFrom'](_0x33900e);this['_calculateMetaData'](_0x1476fb,_0x33900e,!0x1);}this['_calculateMetaData'](_0x33900e,_0x11afb4,!0x0);}return this['_lastFrom']=_0x33900e,this['_lastTo']=_0x11afb4,this['_getState']();}['loadState'](_0x297a53){const _0x53bfed=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x297a53['fromVersion'],this['_lastTo']=_0x297a53['toVersion'];for(const _0x2586f3 in _0x297a53['diffData']){const _0x5007c6=_0x297a53['diffData'][_0x2586f3]['attachChange'],_0x2e9a41=_0x2d8281(_0x297a53['diffData'][_0x2586f3]['attributesBefore'])||{},_0x439d0c=_0x53bfed['_makeModelFromViewString'](_0x297a53['diffData'][_0x2586f3]['deletions']);_0x439d0c['rootName']=_0x2586f3,_0x439d0c['_isAttached']=!_0x5007c6||!_0x5007c6['isAttached'],_0x439d0c['isAttached']=()=>_0x439d0c['_isAttached'],this['_baseRoots']['set'](_0x2586f3,_0x439d0c),this['_baseRootsAttributes']['set'](_0x2586f3,_0x2e9a41),_0x5007c6&&this['_touchedRoots']['set'](_0x2586f3,_0x5007c6);const _0x6f9b3e=this['_makeIdsRoot'](_0x439d0c);this['_baseIdsRoots']['set'](_0x2586f3,_0x6f9b3e);for(const [_0x35cb37,_0x415b73]of _0x439d0c['markers']){if(!_0x35cb37['startsWith']('revision:'))continue;const _0x56e31f=_0x35cb37['split'](':')[0x2];for(const _0x4d52ce of _0x415b73['getWalker']({'singleCharacters':!0x0})){const _0x2d0ea0=this['_getVidAttributeName'](_0x4d52ce),_0x39711b='elementEnd'==_0x4d52ce['type']?_0x4d52ce['previousPosition']['path']['slice'](0x0,-0x1):_0x4d52ce['previousPosition']['path'],_0x17f5b5=_0x6f9b3e['getNodeByPath'](_0x39711b)['getAttribute'](_0x2d0ea0);this['_touched']['set'](_0x17f5b5,{'userId':_0x56e31f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x24248f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4cb8df=>!this['_touched']['has'](_0x4cb8df));let _0x4859cf=0x0;const _0x25a76a=new Map();for(const _0x55a96b in _0x297a53['diffData']){const _0x41030a=_0x297a53['diffData'][_0x55a96b]['attachChange'],_0x5e1a9d=_0x2d8281(_0x297a53['diffData'][_0x55a96b]['attributesAfter'])||{},_0x373c82=_0x53bfed['_makeModelFromViewString'](_0x297a53['diffData'][_0x55a96b]['insertions']);_0x373c82['rootName']=_0x55a96b,_0x373c82['_isAttached']=!_0x41030a||_0x41030a['isAttached'],_0x373c82['isAttached']=()=>_0x373c82['_isAttached'],this['_diffRoots']['set'](_0x55a96b,_0x373c82),this['_diffRootsAttributes']['set'](_0x55a96b,_0x5e1a9d);const _0x22ec59=this['_makeIdsRoot'](_0x373c82,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x55a96b,_0x22ec59),_0x25a76a['set'](_0x55a96b,_0x373c82['isAttached']()?_0x5e1a9d:{});for(const [_0x3655d5,_0x24b951]of _0x373c82['markers']){if(!_0x3655d5['startsWith']('revision:'))continue;const _0x55cd2a=_0x3655d5['split'](':')[0x2];for(const _0x41a548 of _0x24b951['getWalker']({'singleCharacters':!0x0})){const _0x4cfa21=this['_getVidAttributeName'](_0x41a548),_0x377a01=this['_revisionId']++,_0x1b8e4c='elementEnd'==_0x41a548['type']?_0x41a548['previousPosition']['path']['slice'](0x0,-0x1):_0x41a548['previousPosition']['path'];_0x22ec59['getNodeByPath'](_0x1b8e4c)['_setAttribute'](_0x4cfa21,_0x377a01),this['_touched']['set'](_0x377a01,{'userId':_0x55cd2a});}}for(const _0xa7b7e7 of this['editor']['model']['createRangeIn'](_0x373c82)['getWalker']({'singleCharacters':!0x0})){const _0x527a69=this['_getVidAttributeName'](_0xa7b7e7),_0x5831ef='elementEnd'==_0xa7b7e7['type']?_0xa7b7e7['previousPosition']['path']['slice'](0x0,-0x1):_0xa7b7e7['previousPosition']['path'],_0xb91d20=_0x22ec59['getNodeByPath'](_0x5831ef);_0xb91d20['getAttribute'](_0x527a69)>0x0||_0xb91d20['_setAttribute'](_0x527a69,_0x24248f[_0x4859cf++]);}for(const [_0x54ea05,_0x280e4e]of _0x373c82['markers'])_0x54ea05['startsWith']('revision:')||this['_markers']['set'](_0x54ea05,_0x280e4e);}const _0x12f717=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x12f717),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x12f717,0x1));const _0x192e67=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x192e67),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x192e67,0x1));const _0x2c0b84=Array['from'](this['_diffRoots'])['map'](([_0x4d3d13,_0x186888])=>[_0x4d3d13,N(_0x186888)]);this['_saveMetaData'](this['_lastTo'],_0x2c0b84,this['_markers'],_0x25a76a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1a554c,_0x29c3c4,_0x19c717,_0x2338cf){const _0x138a96=new Map(_0x29c3c4),_0x5afe24=new Map(_0x2d8281(_0x2338cf)),_0x408b81=new Map();for(const [_0x5c21d5,_0x41a5a3]of _0x19c717)_0x408b81['set'](_0x5c21d5,{'start':_0x41a5a3['start']['clone'](),'end':_0x41a5a3['end']['clone'](),'rootName':_0x41a5a3['root']['rootName']});this['_savedMetaData']['set'](_0x1a554c,{'roots':_0x138a96,'markers':_0x408b81,'rootsAttributes':_0x5afe24});}['_removeMetaData'](_0xa04b1f){this['_savedMetaData']['delete'](_0xa04b1f);}['_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'](_0xc7ae82,_0x312fb6=null){let _0x1fe7f7=null;_0xc7ae82['is']('documentFragment')||(_0x1fe7f7=new ut(_0xc7ae82['name'],{'vid_start':null===_0x312fb6?this['_revisionId']++:_0x312fb6++}));const _0x2c3acc=[];for(const _0x42d2b5 of _0xc7ae82['getChildren']())if(_0x42d2b5['is']('element')){_0x2c3acc['push'](this['_makeIdsRoot'](_0x42d2b5,_0x312fb6));const _0x5564c5=_0x2c3acc[_0x2c3acc['length']-0x1];null!==_0x312fb6&&(_0x312fb6=_0x5564c5['is']('element','$text')?_0x5564c5['getAttribute']('vid')+0x1:_0x5564c5['getAttribute']('vid_end')+0x1);}else{for(let _0x24fc44=0x0;_0x24fc44<_0x42d2b5['offsetSize'];_0x24fc44++)_0x2c3acc['push'](new ut('$text',{'vid':null===_0x312fb6?this['_revisionId']++:_0x312fb6++}));}if(_0xc7ae82['is']('documentFragment')){const _0x217e46=P(_0xc7ae82['rootName']);return _0x217e46['_insertChild'](0x0,_0x2c3acc),_0x217e46;}return _0x1fe7f7['_setAttribute']('vid_end',null===_0x312fb6?this['_revisionId']++:_0x312fb6++),_0x1fe7f7['_insertChild'](0x0,_0x2c3acc),_0x1fe7f7;}['_calculateMetaData'](_0x354e23,_0x3f41bd,_0x41996a){this['_reset']();const {roots:_0x4f864d,markers:_0x3c4593,rootsAttributes:_0x38d248}=this['_savedMetaData']['get'](_0x354e23);this['_baseRoots']=new Map(_0x4f864d),this['_baseRootsAttributes']=new Map(_0x2d8281(_0x38d248));for(const [_0x4b3c7c,_0x713655]of this['_baseRoots'])if('$graveyard'!==_0x4b3c7c&&(this['_diffRoots']['set'](_0x4b3c7c,N(_0x713655)),this['_diffRootsAttributes']=new Map(_0x2d8281(_0x38d248)),_0x41996a)){const _0x2f6110=this['_revisionId'];this['_idsRoots']['set'](_0x4b3c7c,this['_makeIdsRoot'](_0x713655)),this['_baseIdsRoots']['set'](_0x4b3c7c,this['_makeIdsRoot'](_0x713655,_0x2f6110));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x41996a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x15dd02,_0x418302]of _0x3c4593){const _0x5576db=this['_baseRoots']['get'](_0x418302['rootName']),_0x1f6109=this['_diffRoots']['get'](_0x418302['rootName']),_0x468483=new lt(this['_fixPosition'](_0x418302['start'],_0x5576db),this['_fixPosition'](_0x418302['end'],_0x5576db)),_0x322417=this['_fixRange'](_0x468483,_0x1f6109);_0x5576db['markers']['set'](_0x15dd02,_0x468483),this['_markers']['set'](_0x15dd02,_0x322417);}this['_applyOperations'](_0x354e23,_0x3f41bd,_0x41996a);}['_applyOperations'](_0x3745cd,_0x3b7163,_0x4b1d5b){for(const _0x36ef19 of this['source']['getOperations'](_0x3745cd,_0x3b7163))this['_handleOperation'](_0x36ef19,_0x4b1d5b);for(const _0x5ad492 of this['_diffRoots']['values']())_0x5ad492['markers']['clear']();for(const [_0x7992d0,_0x3a3e8d]of this['_markers']){this['_diffRoots']['get'](_0x3a3e8d['root']['rootName'])['markers']['set'](_0x7992d0,_0x3a3e8d['clone']());}const _0x5e851a=new Map(),_0xde4cd9=new Map();for(const [_0x1470dc,_0x35a1a0]of this['_diffRoots'])_0x5e851a['set'](_0x1470dc,N(_0x35a1a0)),_0xde4cd9['set'](_0x1470dc,this['_diffRootsAttributes']['get'](_0x1470dc));this['_saveMetaData'](_0x3b7163,_0x5e851a,this['_markers'],_0xde4cd9);}['_getPreviousFrom'](_0xb5f65b){const _0x306cdb=Array['from'](this['_savedMetaData']['keys']());_0x306cdb['sort']((_0x1d5ee7,_0x212ee0)=>_0x1d5ee7-_0x212ee0),_0x306cdb['reverse']();for(const _0x5307d7 of _0x306cdb)if(_0x5307d7<_0xb5f65b)return _0x5307d7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4264b3,_0x4c09af){const _0x404ca2=Array['from'](_0x4c09af['markers'])['map'](([_0x5c257d,_0x2a23cf])=>[_0x5c257d,this['_fixRange'](_0x2a23cf,_0x4264b3)]);_0x4264b3['markers']=new Map(_0x404ca2);}['_transformMarkers'](_0x2f5a2a){for(const _0x3a0dfd of this['_markers']['values']()){const _0x193ed2=_0x3a0dfd['getTransformedByOperation'](_0x2f5a2a),_0x4db845=lt['_createFromRanges'](_0x193ed2);_0x3a0dfd['start']=_0x4db845['start'],_0x3a0dfd['end']=_0x4db845['end'];}}['_handleOperation'](_0x482e76,_0x18fab8){if('addRoot'!=_0x482e76['type']&&'detachRoot'!=_0x482e76['type']){if('insert'==_0x482e76['type']){const _0x262c16=_0x482e76['position']['root']['rootName'];this['_diffRoots']['has'](_0x262c16)||(this['_diffRoots']['set'](_0x262c16,P(_0x262c16,!0x0)),this['_diffRootsAttributes']['set'](_0x262c16,{}),_0x18fab8&&this['_idsRoots']['set'](_0x262c16,P(_0x262c16,!0x0)));}else{if('addRootAttribute'==_0x482e76['type']||'removeRootAttribute'==_0x482e76['type']||'changeRootAttribute'==_0x482e76['type'])return void this['_handleRootAttributeOperation'](_0x482e76);'marker'==_0x482e76['type']&&this['_handleMarkerOperation'](_0x482e76);}if('marker'!==_0x482e76['type']){const _0x3288e6=this['_cloneOperation'](_0x482e76,this['_diffRoots']);_0x3288e6['_execute'](),this['_transformMarkers'](_0x3288e6);}if(_0x18fab8)switch(_0x482e76['type']){case'insert':this['_handleInsertOperation'](_0x482e76);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x482e76);break;case'merge':this['_handleMergeOperation'](_0x482e76);break;case'split':this['_handleSplitOperation'](_0x482e76);}}else this['_handleRootOperation'](_0x482e76,_0x18fab8);}['_cloneOperation'](_0x3aa38f,_0x39f621){const _0x5a68fc=_0x3aa38f['clone']();return _0x5a68fc['_authorId']=_0x3aa38f['_authorId'],this['_fixOperation'](_0x5a68fc,_0x39f621),_0x5a68fc;}['_getBaseVids'](_0x58ef0c){return _0x58ef0c['map'](_0x2203b0=>{const _0x521990=this['_getVidAttributeName'](_0x2203b0);return Number(_0x2203b0['item']['getAttribute'](_0x521990));});}['_generateTape'](_0x552ac4,_0x239a51){if(_0x552ac4['is']('element','$text'))_0x239a51['push']({'item':_0x552ac4,'type':'text'});else{_0x552ac4['is']('element')&&_0x239a51['push']({'item':_0x552ac4,'type':'elementStart'});for(const _0x8d8e72 of _0x552ac4['getChildren']())this['_generateTape'](_0x8d8e72,_0x239a51);_0x552ac4['is']('element')&&_0x239a51['push']({'item':_0x552ac4,'type':'elementEnd'});}return _0x239a51;}['_getState'](){const _0x4d14fb=new Map(this['_touched']),_0x1cffc7=new Map(_0x4d14fb),_0x2f3e2=new Map(),_0x29f980={'insertions':{},'deletions':{}},_0x49c335={'insertions':{},'deletions':{}},_0x4cf3e6=new Map(),_0x4e4bc8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4e4bc8['delete']('$graveyard');for(const _0x32274c of _0x4e4bc8){const _0x5bd994=this['_diffRoots']['get'](_0x32274c)||P(_0x32274c,!0x1),_0x53d647=this['_baseRoots']['get'](_0x32274c)||P(_0x32274c,!0x1);_0x5bd994['isAttached']()||_0x53d647['isAttached']()?(_0x29f980['insertions'][_0x32274c]=N(_0x5bd994),_0x29f980['deletions'][_0x32274c]=N(_0x53d647),this['_copyMarkers'](_0x29f980['deletions'][_0x32274c],_0x53d647),this['_copyMarkers'](_0x29f980['insertions'][_0x32274c],_0x5bd994),_0x49c335['insertions'][_0x32274c]=this['_generateTape'](this['_idsRoots']['get'](_0x32274c),[]),_0x49c335['deletions'][_0x32274c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x32274c)||P(_0x32274c,!0x1),[])):_0x4e4bc8['delete'](_0x32274c);}for(const _0x321a74 of _0x4e4bc8){const _0xbad53d=_0x49c335['insertions'][_0x321a74];for(const _0x414c6b of _0xbad53d){const _0x1be28f=this['_getVidAttributeName'](_0x414c6b),_0xe2eed5=_0x414c6b['item']['getAttribute'](_0x1be28f);_0x1cffc7['delete'](_0xe2eed5),_0xe2eed5>=this['_startingRevisionId']&&_0x2f3e2['set'](_0xe2eed5,_0x4d14fb['get'](_0xe2eed5));}}for(const _0x307dc1 of _0x4e4bc8){const _0x17544d=_0x49c335['insertions'][_0x307dc1],_0xbaa5cd=this['_getBaseVids'](_0x49c335['deletions'][_0x307dc1]);let _0x105ef2=0x0;for(const _0x356867 of _0x17544d){const _0x171bb3=this['_getVidAttributeName'](_0x356867),_0x5e402d=_0x356867['item']['getAttribute'](_0x171bb3);if(!_0x2f3e2['has'](_0x5e402d)&&!_0x4cf3e6['has'](_0x5e402d)){if(_0x1cffc7['has'](_0x5e402d))_0x105ef2++;else{if(_0x5e402d!=_0xbaa5cd[_0x105ef2]){const _0x1f01eb=_0x4d14fb['get'](_0x5e402d)||_0x4d14fb['get'](_0xbaa5cd[_0x105ef2]);for(;_0x5e402d!=_0xbaa5cd[_0x105ef2];)_0x1cffc7['has'](_0xbaa5cd[_0x105ef2])||(_0x4cf3e6['set'](_0xbaa5cd[_0x105ef2],_0x1f01eb),_0x4d14fb['set'](_0xbaa5cd[_0x105ef2],_0x1f01eb)),_0x105ef2++;}_0x105ef2++;}}}}for(const _0x3726d6 of _0x4e4bc8){const _0x530bb6=_0x49c335['insertions'][_0x3726d6];for(const _0x76f65e of _0x530bb6){const _0x2e7538=this['_getVidAttributeName'](_0x76f65e),_0x20c255=_0x76f65e['item']['getAttribute'](_0x2e7538);if(_0x4cf3e6['has'](_0x20c255)){const _0xa79391=_0x4cf3e6['get'](_0x20c255);_0x1cffc7['has'](_0x20c255)||_0x1cffc7['set'](_0x20c255,{..._0xa79391}),_0x2f3e2['set'](_0x20c255,{..._0xa79391});}}}for(const _0x5264b6 of _0x1cffc7['keys']())_0x5264b6>=this['_startingRevisionId']&&_0x1cffc7['delete'](_0x5264b6);const _0x4a80e0=new Map();for(const _0x296bf4 of _0x4e4bc8){let _0x53ed4c=_0x49c335['insertions'][_0x296bf4];for(const _0x3bd995 of _0x53ed4c)if(_0x3bd995['item']['is']('element','tableCell')){const _0xc3011f=this['_getVidAttributeName'](_0x3bd995),_0x318b3c=_0x3bd995['item']['getAttribute'](_0xc3011f);if(_0x2f3e2['has'](_0x318b3c)){const _0x17b001=_0x3bd995['item']['parent']['parent']['getAttribute']('vid_start'),_0x12410b=_0x4a80e0['get'](_0x17b001)||new Set();_0x12410b['add'](_0x2f3e2['get'](_0x318b3c)['userId']),_0x4a80e0['set'](_0x17b001,_0x12410b);}}_0x53ed4c=_0x49c335['deletions'][_0x296bf4];for(const _0x2d05ca of _0x53ed4c)if(_0x2d05ca['item']['is']('element','tableCell')){const _0x41d2e1=this['_getVidAttributeName'](_0x2d05ca),_0x256547=_0x2d05ca['item']['getAttribute'](_0x41d2e1);if(_0x1cffc7['has'](_0x256547)){const _0x3b8cc8=_0x2d05ca['item']['parent']['parent']['getAttribute']('vid_start'),_0x543cd7=_0x4a80e0['get'](_0x3b8cc8)||new Set();_0x543cd7['add'](_0x1cffc7['get'](_0x256547)['userId']),_0x4a80e0['set'](_0x3b8cc8,_0x543cd7);}}for(const _0x186d75 of _0x4a80e0['keys']())(_0x2f3e2['has'](_0x186d75)||_0x1cffc7['has'](_0x186d75))&&_0x4a80e0['delete'](_0x186d75);}for(const _0x380c9d of _0x4e4bc8){const _0x22c529=_0x49c335['insertions'][_0x380c9d];let _0x2d99d1=null,_0x5bd915=null;for(const _0xec85be of _0x22c529){const _0x2873fa=this['_getVidAttributeName'](_0xec85be),_0x3a9e68=_0xec85be['item']['getAttribute'](_0x2873fa),_0xd51cf6=_0x4a80e0['get'](_0x3a9e68);_0xd51cf6&&'elementStart'==_0xec85be['type']&&(_0x2d99d1=Array['from'](_0xd51cf6)[0x0],_0x5bd915=_0xec85be['item']['getAttribute']('vid_end')),_0x2d99d1&&(_0x1cffc7['set'](_0x3a9e68,{'userId':_0x2d99d1}),_0x2f3e2['set'](_0x3a9e68,{'userId':_0x2d99d1})),_0x3a9e68==_0x5bd915&&(_0x2d99d1=null,_0x5bd915=null);}}const _0x492c1f={},_0xa6fecf=new Set();for(const _0x3c0e6f of _0x4e4bc8){const _0x1f0c24=_0x29f980['deletions'][_0x3c0e6f],_0x43646a=_0x29f980['insertions'][_0x3c0e6f];for(const {userId:_0x1be53f}of this['_touchedMarkers']['values']())null!==_0x1be53f&&_0xa6fecf['add'](_0x1be53f);for(const {userId:_0x431d09}of this['_touchedRoots']['values']())null!==_0x431d09&&_0xa6fecf['add'](_0x431d09);this['_markChanges'](_0x43646a,_0x49c335['insertions'][_0x3c0e6f],_0x2f3e2,'insertion',_0xa6fecf),this['_markChanges'](_0x1f0c24,_0x49c335['deletions'][_0x3c0e6f],_0x1cffc7,'deletion',_0xa6fecf),_0x492c1f[_0x3c0e6f]={'insertions':this['_prepareViewToSave'](_0x43646a),'deletions':this['_prepareViewToSave'](_0x1f0c24),'attachChange':this['_touchedRoots']['get'](_0x3c0e6f)||null,'attributesBefore':_0x2d8281(this['_baseRootsAttributes']['get'](_0x3c0e6f))||{},'attributesAfter':_0x2d8281(this['_diffRootsAttributes']['get'](_0x3c0e6f))};}return{'diffData':_0x492c1f,'authorsIds':Array['from'](_0xa6fecf)};}['_processRootBeforeSave'](_0x152403){for(const [,_0x793b72]of _0x152403['markers']){const _0x108178=_0x793b72['start']['getAncestors']()['filter'](_0x51405c=>'tableCell'==_0x51405c['name']);for(const _0x3ae999 of _0x108178)0x1==_0x3ae999['childCount']&&_0x3ae999['getChild'](0x0)['is']('element','paragraph')&&_0x3ae999['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x43d1b9){this['_processRootBeforeSave'](_0x43d1b9);const _0x3b9da9=this['editor']['data']['toView'](_0x43d1b9,{}),_0x411e73=Array['from'](_0x3b9da9['getChildren']())['map'](_0x3124b3=>this['_getViewJson'](_0x3124b3));return JSON['stringify'](_0x411e73);}['_getViewJson'](_0x1ae8da){if(_0x1ae8da['is']('$text'))return _0x1ae8da['data'];{const _0x18a77d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3492ab=_0x1ae8da,_0x4dc847=this['editor']['data']['htmlProcessor']['domConverter'],_0x39ca1e={'type':_0x18a77d['_getTypeCharForViewElement'](_0x3492ab),'name':_0x3492ab['name'],'attributes':Array['from'](_0x3492ab['getAttributes']()),'children':Array['from'](_0x3492ab['getChildren']())['map'](_0x19a091=>this['_getViewJson'](_0x19a091))};if(_0x1ae8da['is']('uiElement')&&'$comment'!=_0x1ae8da['name']){const _0x41d921=_0x1ae8da['render'](_0x4dc847['domDocument'],_0x4dc847);_0x39ca1e['children']['push'](_0x41d921['outerHTML']);}else{if(_0x1ae8da['is']('rawElement')){const _0x2b1756=_0x4dc847['domDocument']['createElement'](_0x3492ab['name']);_0x1ae8da['render'](_0x2b1756,_0x4dc847),_0x39ca1e['children']['push'](_0x2b1756['innerHTML']);}}const _0x5c3ea6=Array['from'](_0x3492ab['getCustomProperties']());_0x5c3ea6['length']>0x0&&(_0x39ca1e['customProperties']=_0x5c3ea6);const _0x42163d=_0x3492ab['getFillerOffset']();return null!==_0x42163d&&(_0x39ca1e['fillerOffset']=_0x42163d),_0x39ca1e;}}['_markChanges'](_0x11dfb4,_0x2d4769,_0x1f4c6e,_0x1e5bc0,_0x645612){let _0x125533=null,_0x2179f5=null,_0x28fb5b=0x0;const _0x54e558=this['editor']['model'];for(let _0x3c714d=0x0;_0x3c714d<_0x2d4769['length'];_0x3c714d++){const _0x5cad49=this['_getVidAttributeName'](_0x2d4769[_0x3c714d]),_0x1d5b20=_0x2d4769[_0x3c714d]['item']['getAttribute'](_0x5cad49),_0x1e1c57=_0x1f4c6e['get'](_0x1d5b20),_0x333f13=_0x3c714d==_0x2d4769['length']-0x1;(!_0x125533&&_0x1e1c57&&(_0x125533=_0x1e1c57,_0x2179f5=_0x2d4769[_0x3c714d]),_0x125533&&(!_0x1e1c57||_0x1e1c57['userId']!=_0x125533['userId']))&&(_0x814f2d(_0x1e1c57,F(_0x2179f5,_0x11dfb4,_0x54e558),F(_0x2d4769[_0x3c714d],_0x11dfb4,_0x54e558)),_0x125533=_0x1e1c57||null,_0x2179f5=_0x1e1c57?_0x2d4769[_0x3c714d]:null),_0x125533&&_0x333f13&&_0x814f2d(_0x1e1c57,F(_0x2179f5,_0x11dfb4,_0x54e558),B(_0x2d4769[_0x3c714d],_0x11dfb4,_0x54e558));}function _0x814f2d(_0xbe4939,_0x5ca7ab,_0x365400){const _0x5145a2=_0x125533['userId'],_0x1cafd6='revision:'+_0x1e5bc0+':'+_0x5145a2+':'+_0x28fb5b++,_0x1ecd43=_0x54e558['createRange'](_0x5ca7ab,_0x365400);_0x11dfb4['markers']['set'](_0x1cafd6,_0x1ecd43),null!==_0x5145a2&&_0x645612['add'](_0x5145a2);}}['_getVidAttributeName'](_0x1b2d4c){switch(_0x1b2d4c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x550b03,_0x6498c8){_0x550b03['baseVersion']=null;for(const _0x3b0bfc in _0x550b03){const _0x2150ef=_0x550b03[_0x3b0bfc];if(_0x2150ef instanceof ft){const _0x3bdc0b=_0x6498c8['get'](_0x2150ef['root']['rootName']);_0x550b03[_0x3b0bfc]=this['_fixPosition'](_0x2150ef,_0x3bdc0b);}if(_0x2150ef instanceof lt){const _0x1aaeba=_0x6498c8['get'](_0x2150ef['root']['rootName']);_0x550b03[_0x3b0bfc]=this['_fixRange'](_0x2150ef,_0x1aaeba);}'root'===_0x3b0bfc&&(_0x550b03['root']=_0x6498c8['get'](_0x550b03['root']['rootName']));}}['_fixRange'](_0x2ca7aa,_0xf52fe1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2ca7aa['start'],_0xf52fe1),this['_fixPosition'](_0x2ca7aa['end'],_0xf52fe1));}['_fixPosition'](_0x325f09,_0x17813f){return this['editor']['model']['createPositionFromPath'](_0x17813f,_0x325f09['path'],_0x325f09['stickiness']);}['_handleInsertOperation'](_0xd56b1){const _0x401036=this['_idsRoots']['get'](_0xd56b1['position']['root']['rootName']),_0x2d7849=this['_fixPosition'](_0xd56b1['position'],_0x401036),_0x4b55c7=null===_0xd56b1['_authorId']?null:_0xd56b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58c4bb=_0x2d7849['parent'],_0x391ce7=this['_revisionId'],_0x482f1d=[];for(const _0x153551 of _0xd56b1['nodes'])if(_0x153551['is']('element'))_0x482f1d['push'](this['_makeIdsRoot'](_0x153551));else{for(let _0x314554=0x0;_0x314554<_0x153551['offsetSize'];_0x314554++)_0x482f1d['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x26f85b=this['_revisionId'];for(let _0x59b42f=_0x391ce7;_0x59b42f<_0x26f85b;_0x59b42f++)this['_touched']['set'](_0x59b42f,{'userId':_0x4b55c7});_0x58c4bb['_insertChild'](_0x2d7849['offset'],_0x482f1d);}['_handleMoveOperation'](_0x1c6714){(_0x1c6714=this['_cloneOperation'](_0x1c6714,this['_idsRoots']))['_execute']();const _0x5b9f91=null===_0x1c6714['_authorId']?null:_0x1c6714['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d85cb=_0x1c6714['getMovedRangeStart'](),_0x11fc99=_0x2d85cb['parent'],_0x159d52=_0x2d85cb['offset'];!function _0xc92658(_0x5394e4,_0x2aafe5,_0x2b6232,_0x3fb4d9){for(let _0x29ae9d=_0x2b6232;_0x29ae9d<_0x3fb4d9;_0x29ae9d++){const _0x1ace10=_0x2aafe5['getChild'](_0x29ae9d);_0x1ace10['is']('element','$text')?_0x5394e4['set'](_0x1ace10['getAttribute']('vid'),{'userId':_0x5b9f91}):(_0x5394e4['set'](_0x1ace10['getAttribute']('vid_start'),{'userId':_0x5b9f91}),_0xc92658(_0x5394e4,_0x1ace10,0x0,_0x1ace10['childCount']),_0x5394e4['set'](_0x1ace10['getAttribute']('vid_end'),{'userId':_0x5b9f91}));}}(this['_touched'],_0x11fc99,_0x159d52,_0x159d52+_0x1c6714['howMany']);}['_handleMergeOperation'](_0x17a192){const _0xbaf838=null===(_0x17a192=this['_cloneOperation'](_0x17a192,this['_idsRoots']))['_authorId']?null:_0x17a192['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f869f=_0x17a192['targetPosition']['parent'],_0x272a6c=_0x17a192['sourcePosition']['parent'],_0x2363f0=_0x1f869f['getAttribute']('vid_end'),_0x2ca672=_0x272a6c['getAttribute']('vid_start');_0x1f869f['_setAttribute']('vid_end',_0x272a6c['getAttribute']('vid_end')),_0x272a6c['_setAttribute']('vid_end',_0x2363f0),this['_touched']['set'](_0x2ca672,{'userId':_0xbaf838}),this['_touched']['set'](_0x2363f0,{'userId':_0xbaf838}),_0x17a192['_execute']();}['_handleSplitOperation'](_0x1ade52){const _0x5e6409=null===(_0x1ade52=this['_cloneOperation'](_0x1ade52,this['_idsRoots']))['_authorId']?null:_0x1ade52['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12dc3b=_0x1ade52['graveyardPosition'],_0x5c25f9=_0x1ade52['splitPosition']['parent'];_0x1ade52['_execute']();const _0x104a78=_0x5c25f9['getAttribute']('vid_end'),_0x207920=_0x1ade52['insertionPosition']['nodeAfter'];if(_0x12dc3b){const _0xe1895c=_0x207920['getAttribute']('vid_end'),_0x464a93=_0x5c25f9['getAttribute']('vid_end');_0x5c25f9['_setAttribute']('vid_end',_0xe1895c),_0x207920['_setAttribute']('vid_end',_0x464a93),this['_touched']['set'](_0x5c25f9['getAttribute']('vid_end'),{'userId':_0x5e6409}),this['_touched']['set'](_0x207920['getAttribute']('vid_start'),{'userId':_0x5e6409});}else{const _0x8d1cdf=this['_revisionId']++,_0x4b8210=this['_revisionId']++;_0x5c25f9['_setAttribute']('vid_end',_0x8d1cdf),_0x207920['_setAttribute']('vid_start',_0x4b8210),_0x207920['_setAttribute']('vid_end',_0x104a78),this['_touched']['set'](_0x8d1cdf,{'userId':_0x5e6409}),this['_touched']['set'](_0x4b8210,{'userId':_0x5e6409});}}['_handleMarkerOperation'](_0x4ee301){if(!_0x4ee301['affectsData'])return;const _0x39ab66=(_0x4ee301=this['_cloneOperation'](_0x4ee301,this['_diffRoots']))['oldRange']?_0x4ee301['oldRange']['root']:null,_0x2db390=_0x4ee301['newRange']?_0x4ee301['newRange']['root']:null;_0x39ab66&&this['_markers']['delete'](_0x4ee301['name']),_0x2db390&&this['_markers']['set'](_0x4ee301['name'],_0x4ee301['newRange']['clone']());const _0x2772ce=null===_0x4ee301['_authorId']?null:_0x4ee301['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c33ae=_0x4ee301['name'];if(!this['_touchedMarkers']['has'](_0x4c33ae))return void this['_touchedMarkers']['set'](_0x4c33ae,{'range':_0x4ee301['oldRange'],'userId':_0x2772ce});const _0x11a96c=this['_touchedMarkers']['get'](_0x4c33ae),_0x502a72=_0x11a96c['range'],_0x534f1f=_0x4ee301['newRange'];null==_0x502a72&&null==_0x534f1f||_0x502a72&&_0x534f1f&&_0x502a72['isEqual'](_0x534f1f)?this['_touchedMarkers']['delete'](_0x4ee301['name']):_0x11a96c['userId']=_0x2772ce;}['_handleRootOperation'](_0x1659eb,_0x10fdf1){this['_diffRoots']['has'](_0x1659eb['rootName'])?this['_diffRoots']['get'](_0x1659eb['rootName'])['_isAttached']=_0x1659eb['isAdd']:(this['_diffRoots']['set'](_0x1659eb['rootName'],P(_0x1659eb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1659eb['rootName'],{}),_0x10fdf1&&this['_idsRoots']['set'](_0x1659eb['rootName'],P(_0x1659eb['rootName'],!0x0)));const _0x4c13c5=null===_0x1659eb['_authorId']?null:_0x1659eb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x378ce1=this['_touchedRoots']['get'](_0x1659eb['rootName']);_0x378ce1&&_0x378ce1['userId']===_0x4c13c5?this['_touchedRoots']['delete'](_0x1659eb['rootName']):this['_touchedRoots']['set'](_0x1659eb['rootName'],{'userId':_0x4c13c5,'isAttached':_0x1659eb['isAdd']});}['_handleRootAttributeOperation'](_0xa06851){const _0x111342=this['_diffRootsAttributes']['get'](_0xa06851['root']['rootName']);null===_0xa06851['newValue']?delete _0x111342[_0xa06851['key']]:_0x111342[_0xa06851['key']]=_0xa06851['newValue'];}}function N(_0x513001){const _0x2f601b=P(_0x513001['rootName'],_0x513001['isAttached']());for(const _0x57bfa6 of _0x513001['getChildren']()){const _0xefc015=_0x57bfa6['_clone'](!0x0);_0x2f601b['_appendChild'](_0xefc015);}return _0x2f601b;}function P(_0x36ca03,_0x1bf1c0=!0x0){const _0x27f04d=new vt();return _0x27f04d['rootName']=_0x36ca03,_0x27f04d['_isAttached']=_0x1bf1c0,_0x27f04d['isAttached']=()=>_0x27f04d['_isAttached'],_0x27f04d;}function F(_0x242267,_0x364ac4,_0x2253e7){const _0x2bc2ec='elementEnd'==_0x242267['type']?_0x2253e7['createPositionAt'](_0x242267['item'],'end'):_0x2253e7['createPositionBefore'](_0x242267['item']);return _0x2253e7['createPositionFromPath'](_0x364ac4,_0x2bc2ec['path'],_0x2bc2ec['stickiness']);}function B(_0x3be19f,_0x59b581,_0x32ada8){const _0x5d8d21='elementStart'==_0x3be19f['type']?_0x32ada8['createPositionAt'](_0x3be19f['item'],0x0):_0x32ada8['createPositionAfter'](_0x3be19f['item']);return _0x32ada8['createPositionFromPath'](_0x59b581,_0x5d8d21['path'],_0x5d8d21['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4762f8,_0x2961cd){super(_0x4762f8),this['focusTracker']=new _0x1d2150(),this['keystrokes']=new _0x23b021(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2961cd),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x3a6a54(this);}['render'](){super['render'](),_0x2f1fdf({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x14128c=_0x1fb36a=>_0x1fb36a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14128c),this['keystrokes']['set']('arrowleft',_0x14128c),this['keystrokes']['set']('arrowup',_0x14128c),this['keystrokes']['set']('arrowdown',_0x14128c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3b13b2){this['revisionNameInputView']['fieldView']['element']['value']=_0x3b13b2['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x128e9e){const _0xa238fb=new _0xd95170(this['locale'],_0x3fbf0a),_0x5e6b0a=_0xa238fb['fieldView'];_0x5e6b0a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x254550=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x128e9e&&(_0x254550+='\x20('+g(this['locale'],'optional')+')'),(_0xa238fb['label']=_0x254550,_0x5e6b0a['on']('input',()=>{this['revisionNameInputValue']=_0x5e6b0a['element']['value']['trim']();}),_0xa238fb);}}class f extends _0x4e23c9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3ccf16=this['editor'],_0x1ac94d=_0x3ccf16['plugins']['get']('RevisionTracker');_0x3ccf16['ui']['componentFactory']['add']('revisionHistory',_0x3fa11f=>{const _0x399588=_0x1d1841(_0x3fa11f),_0x51ca48=_0x399588['panelView']['children'],_0x472a4a=new _0x6ee4ed(_0x3fa11f),_0x5d9102=new _0x173dad(_0x3fa11f),_0x358cdf=new te(_0x3fa11f),_0x57843e=new _0x173dad(_0x3fa11f),_0x14172e=new te(_0x3fa11f);return _0x399588['bind']('isEnabled')['to'](_0x1ac94d,'isReady',_0x1ac94d,'isEnabled',_0x3ccf16,'isReadOnly',(_0x21d3c0,_0x17e9d1,_0x2d8419)=>_0x21d3c0&&_0x17e9d1&&!_0x2d8419),_0x399588['buttonView']['set']({'icon':_0x3e5a1e,'label':g(_0x3fa11f,'Revision\x20history'),'tooltip':!0x0}),_0x358cdf['set']({'label':g(_0x3fa11f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x358cdf['bind']('isEnabled')['to'](_0x1ac94d,'isReady',_0x1ac94d,'isEnabled',_0x3ccf16,'isReadOnly',(_0x249e51,_0x3a8d27,_0x3b2cb5)=>_0x249e51&&_0x3a8d27&&!_0x3b2cb5),_0x358cdf['on']('execute',()=>this['_showDialog']()),_0x14172e['set']({'label':g(_0x3fa11f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x14172e['bind']('isEnabled')['to'](_0x1ac94d,'isReady',_0x3ccf16,'isReadOnly',(_0x457b8c,_0x4194ae)=>_0x457b8c&&!_0x4194ae),_0x14172e['on']('execute',()=>{_0x3ccf16['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x399588['isOpen']=!0x1,_0x3ccf16['editing']['view']['focus']();}),_0x5d9102['children']['add'](_0x358cdf),_0x57843e['children']['add'](_0x14172e),_0x472a4a['role']='menu',_0x472a4a['items']['addMany']([_0x5d9102,_0x57843e]),_0x51ca48['add'](_0x472a4a),_0x399588;}),_0x3ccf16['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x495d65=this['editor'],_0x924275=_0x495d65['locale'],_0x5e35bd=new _0x4c3235(_0x924275),_0x53e408=new _0x5f41fa(_0x924275);_0x5e35bd['buttonView']['set']({'icon':_0x3e5a1e,'label':g(_0x924275,'Revision\x20history')});const _0x10c94b=new _0x4701fa(_0x924275,_0x5e35bd),_0x378b87=new _0x1f7652(_0x924275);_0x378b87['set']({'label':g(_0x924275,'Save\x20current\x20revision')}),_0x378b87['delegate']('execute')['to'](_0x5e35bd),_0x378b87['on']('execute',()=>{this['_showDialog']();}),_0x10c94b['children']['add'](_0x378b87),_0x53e408['items']['add'](_0x10c94b);const _0x2d5d3b=new _0x4701fa(_0x924275,_0x5e35bd),_0x4d086b=new _0x1f7652(_0x924275);return _0x4d086b['set']({'label':g(_0x924275,'Open\x20revision\x20history')}),_0x4d086b['delegate']('execute')['to'](_0x5e35bd),_0x4d086b['on']('execute',()=>{_0x495d65['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2d5d3b['children']['add'](_0x4d086b),_0x53e408['items']['add'](_0x2d5d3b),_0x5e35bd['panelView']['children']['add'](_0x53e408),_0x5e35bd;}['_showDialog'](){const _0x1256c0=this['editor'],_0x542c19=_0x1256c0['locale'],_0x1ff274=_0x1256c0['plugins']['get']('Dialog'),_0x47989b=_0x1256c0['plugins']['get']('RevisionTracker');function _0x11f8d7(_0x546cac){_0x1256c0['config']['get']('revisionHistory.requireRevisionName')&&''===_0x546cac['revisionName']?_0x546cac['revisionNameInputView']['errorText']=g(_0x542c19,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1256c0['plugins']['get'](u)['saveRevision']({'name':_0x546cac['revisionName']}),_0x1ff274['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x11f8d7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1ff274['show']({'id':'revisionSave','title':g(_0x542c19,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1256c0['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1ff274['hide']()},{'label':g(_0x1256c0['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x542b2d){_0x542b2d['bind']('isEnabled')['to'](_0x47989b,'isReady',_0x47989b,'isEnabled',_0x1256c0,'isReadOnly',(_0x2a6cac,_0x5399b4,_0x4a059c)=>_0x2a6cac&&_0x5399b4&&!_0x4a059c);},'onExecute':()=>_0x11f8d7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x28bfc7=this['editor'],_0x424050=_0x28bfc7['locale'];this['_saveRevisionFormView']=new hs(_0x424050,_0x28bfc7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1e2762,_0xc66cb5){super(_0x1e2762),this['_model']=_0xc66cb5,this['changeId']=_0xc66cb5['id'];const _0x375780=this['bindTemplate'],_0x3563fd=g(_0x1e2762,_0xc66cb5['data']['isSuggestion']?'Suggested\x20by':'add'==_0xc66cb5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xc66cb5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x375780['to']('type',_0x24880a=>'ck-revision-change__'+_0x24880a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3563fd}]},{'text':'\x20'+_0xc66cb5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5d9049(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x53365d){super(),this['id']=_0x53365d['id']||_0x5a7eff(),this['author']=_0x53365d['author'],this['type']=_0x53365d['type'],this['data']=_0x53365d['data']||{},this['rootName']=_0x53365d['rootName'],this['set']('createdAt',_0x53365d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x57f0cb,_0x57904c){this['newRevisionId']=_0x57f0cb,this['oldRevisionId']=_0x57904c,this['changes']=new _0x201912();}['_setChanges'](_0x2ca2d3){for(const _0x16ddac of _0x2ca2d3)this['changes']['add'](_0x16ddac);}}class m extends _0x4e23c9{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2bbe8d,_0x13610c,I,V];}constructor(_0x48aba0){super(_0x48aba0),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x457cd4,_0x5c96a5,_0x1b68ed)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x178630=>{for(const _0x171282 of this['editor']['editing']['view']['document']['roots'])_0x1b68ed?_0x178630['removeClass']('ck-editor__editable__overlay',_0x171282):_0x178630['addClass']('ck-editor__editable__overlay',_0x171282);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x14cad2=>null!==_0x14cad2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4467a2,_0x62e1f0,_0x2c4ed6)=>_0x4467a2&&_0x2c4ed6?_0x62e1f0['changes']['getIndex'](_0x2c4ed6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x17c697,_0x28a6f8)=>_0x17c697?_0x28a6f8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x13610c);}['init'](){const _0x770537=this['editor'],_0x15efbb=new wt(_0x770537,{'direction':'backward'}),_0x3794d1=new wt(_0x770537,{'direction':'forward'});(_0x770537['commands']['add']('showPreviousChange',_0x15efbb),_0x770537['commands']['add']('showNextChange',_0x3794d1),_0x770537['commands']['add']('restoreRevision',new mt(_0x770537)),this['on']('change:numberOfChanges',()=>{_0x15efbb['refresh'](),_0x3794d1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x770537['enableReadOnlyMode']('revision-viewer'),_0x770537['plugins']['has']('WidgetToolbarRepository'))&&_0x770537['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x13661d){return await this['_utils']['loadRevisionData'](_0x13661d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x13661d);}async['getRevisionRootsAttributes'](_0x39e5b4){return await this['_utils']['loadRevisionData'](_0x39e5b4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x39e5b4);}async['compare'](_0x124660,_0x44a7d6,_0x37adb2=!0x1){if(!this['isEnabled'])return;const _0x45e739=this['diff'],_0x74383e=this['repository'],_0x2559de='string'==typeof _0x124660?_0x74383e['getRevision'](_0x124660):_0x124660,_0x1dace6='string'==typeof _0x44a7d6?_0x74383e['getRevision'](_0x44a7d6):_0x44a7d6,_0xac988=_0x2559de['id'],_0x2c5f50=_0x1dace6?_0x1dace6['id']:null;if(!_0x37adb2&&this['diff']&&this['diff']['newRevisionId']===_0xac988&&this['diff']['oldRevisionId']===_0x2c5f50)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xac988,_0x2c5f50);const _0xd616ee=this['_getRevisionsRange'](_0x2559de,_0x1dace6,!0x0)['map'](_0x1a2fd7=>this['_utils']['loadRevisionData'](_0x1a2fd7,this['adapter']));return _0xd616ee['push'](new Promise(_0x37d9ce=>{setTimeout(_0x37d9ce,0x14);})),Promise['all'](_0xd616ee)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4c8a20=this['_getDiff'](_0xac988,_0x2c5f50);for(const _0xb8fec2 of _0x4c8a20['changes'])this['_changeIdToChange']['set'](_0xb8fec2['id'],_0xb8fec2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1b8156=>{for(const _0x1fb15e of this['editor']['model']['document']['getRootNames']())_0x1b8156['detachRoot'](_0x1fb15e);for(const _0x3750ef of Object['keys'](_0x4c8a20['model'])){const _0x559228=_0x1b8156['addRoot'](_0x3750ef);for(const _0x166611 of Object['keys'](_0x4c8a20['attributes'][_0x3750ef]))_0x1b8156['setAttribute'](_0x166611,_0x4c8a20['attributes'][_0x3750ef][_0x166611],_0x559228);_0x1b8156['insert'](_0x4c8a20['model'][_0x3750ef],_0x559228,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4c8a20['changes'])),this['isReady']=!0x0;})['catch'](_0x4e3aa6=>{console['error'](_0x4e3aa6),this['_cleanUp'](),_0x45e739&&(this['diff']=_0x45e739),this['isReady']=!0x0;});}['addRevisionData'](_0x347ec7,_0x10a790){const _0x120696=this['repository']['createRevision'](_0x347ec7);return _0x120696['on']('_update',(_0x43180e,_0x58953a,_0x58c2aa)=>_0x10a790(_0x58953a,_0x58c2aa,_0x120696)),this['repository']['addRevision'](_0x120696),_0x120696;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x55ed13=>{for(const _0x34766c of this['editor']['model']['document']['getRootNames']())_0x55ed13['detachRoot'](_0x34766c);});}['_sortAndFilterDiffChanges'](_0x6a6fe4){const _0x5e42db=[],_0x159eb3=new Map();for(const _0x267ac0 of this['editor']['model']['document']['getRootNames']()){const _0x2fb40d=this['editor']['editing']['view']['getDomRoot'](_0x267ac0);if(!_0x2fb40d)continue;const _0x3fcf13=_0x2fb40d['getClientRects']()['item'](0x0);_0x3fcf13&&(_0x5e42db['push'](_0x267ac0),_0x159eb3['set'](_0x267ac0,_0x3fcf13));}return _0x5e42db['sort']((_0x485cce,_0x501d94)=>{const _0x5dcded=_0x159eb3['get'](_0x485cce),_0x444f36=_0x159eb3['get'](_0x501d94);return _0x5dcded['y']-_0x444f36['y']||_0x5dcded['x']-_0x444f36['x'];}),(_0x6a6fe4=_0x6a6fe4['filter'](_0x2138b5=>_0x5e42db['includes'](_0x2138b5['rootName'])))['sort']((_0x2dcf75,_0x360a4d)=>_0x5e42db['indexOf'](_0x2dcf75['rootName'])-_0x5e42db['indexOf'](_0x360a4d['rootName'])),_0x6a6fe4;}['_makeTape'](_0x274dd2){const _0x3480eb=Array['from'](_0x274dd2['markers'])['filter'](([_0xe6c72a,_0x1e535a])=>_0xe6c72a['startsWith']('revision:')&&!_0x1e535a['isCollapsed']),_0x5b1bd9=Array['from'](this['editor']['model']['createRangeIn'](_0x274dd2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3480eb['length'])for(const _0x47f15a of _0x5b1bd9){const [_0x2eaf71,_0x5994a0]=_0x3480eb[0x0],[,_0x3c0c23,_0x4accd8]=_0x2eaf71['split'](':');if(_0x5994a0['end']['isEqual'](_0x47f15a['nextPosition'])&&_0x3480eb['shift'](),(_0x47f15a['previousPosition']['isEqual'](_0x5994a0['start'])||_0x47f15a['previousPosition']['isAfter'](_0x5994a0['start']))&&('insertion'==_0x3c0c23?_0x47f15a['isAdded']={'userId':_0x4accd8}:'deletion'==_0x3c0c23&&(_0x47f15a['isRemoved']={'userId':_0x4accd8})),0x0==_0x3480eb['length'])break;}return _0x5b1bd9;}['_refreshStartEndIndex'](_0x5d4e04){const _0x4e503e=new Map();for(let _0xd179dd=0x0;_0xd179dd<_0x5d4e04['length'];_0xd179dd++)'text'===_0x5d4e04[_0xd179dd]['type']?(_0x5d4e04[_0xd179dd]['item']['startIndex']=_0xd179dd,_0x5d4e04[_0xd179dd]['item']['endIndex']=_0xd179dd):('elementStart'===_0x5d4e04[_0xd179dd]['type']?_0x5d4e04[_0xd179dd]['item']['startIndex']=_0xd179dd:'elementEnd'===_0x5d4e04[_0xd179dd]['type']&&(_0x5d4e04[_0xd179dd]['item']['endIndex']=_0xd179dd),_0x4e503e['set'](_0x5d4e04[_0xd179dd]['id'],_0xd179dd));for(const _0x1f5062 of _0x4e503e['values']())'elementStart'===_0x5d4e04[_0x1f5062]['type']?_0x5d4e04[_0x1f5062]['item']['endIndex']=_0x4e503e['get'](_0x5d4e04[_0x1f5062]['pairId']):'elementEnd'===_0x5d4e04[_0x1f5062]['type']&&(_0x5d4e04[_0x1f5062]['item']['startIndex']=_0x4e503e['get'](_0x5d4e04[_0x1f5062]['pairId']));}['_processTape'](_0x5cf4e1){for(let _0x4f0dc6=0x0;_0x4f0dc6<_0x5cf4e1['length'];_0x4f0dc6++){if('elementStart'===_0x5cf4e1[_0x4f0dc6]['type'])_0x5cf4e1[_0x4f0dc6]['item']['startIndex']=_0x4f0dc6;else{if('elementEnd'===_0x5cf4e1[_0x4f0dc6]['type']){_0x5cf4e1[_0x4f0dc6]['item']['endIndex']=_0x4f0dc6;const _0xdefbc2=_0x5cf4e1[_0x4f0dc6]['item']['startIndex'];_0x5cf4e1[_0xdefbc2]['pairId']=_0x5cf4e1[_0x4f0dc6]['id'],_0x5cf4e1[_0x4f0dc6]['pairId']=_0x5cf4e1[_0xdefbc2]['id'];}else _0x5cf4e1[_0x4f0dc6]['item']['startIndex']=_0x4f0dc6,_0x5cf4e1[_0x4f0dc6]['item']['endIndex']=_0x4f0dc6,_0x5cf4e1[_0x4f0dc6]['pairId']=null;}_0x5cf4e1[_0x4f0dc6]['markersStart']||(_0x5cf4e1[_0x4f0dc6]['markersStart']=[],_0x5cf4e1[_0x4f0dc6]['markersEnd']=[]);}}['_markInsertions'](_0x4dc236,_0x43851a){const _0x4a2a58=_0x4dc236['filter'](_0x2fe737=>!_0x2fe737['isAdded']);for(let _0x38d660=0x0;_0x38d660<_0x43851a['length'];_0x38d660++)_0x43851a[_0x38d660]['isAdded']&&(_0x4a2a58[_0x38d660]['isAdded']=_0x43851a[_0x38d660]['isAdded']);}['_getDiff'](_0x5ddac3,_0xfb5371=null){const _0x2a73e4=this['repository']['getRevision'](_0x5ddac3),_0x55b8ef=_0xfb5371?this['repository']['getRevision'](_0xfb5371):null,_0x4595ca=this['_getRevisionsRange'](_0x2a73e4,_0x55b8ef),_0x5be366=_0x4595ca[_0x4595ca['length']-0x1],_0x23ecdf=new Map(),_0x28780e={'model':{},'attributes':{},'changes':[]},_0x5794af=new Set(),_0x20baf3=new Map();for(let _0x8cb46e=_0x4595ca['length']-0x1;_0x8cb46e>=0x0;_0x8cb46e--){const _0x4a169a=_0x4595ca[_0x8cb46e];for(const _0x99e49e of Object['keys'](_0x4a169a['diffData']))if(_0x4a169a['diffData'][_0x99e49e]['attachChange']){const _0x5e5bb8=_0x4a169a['diffData'][_0x99e49e]['attachChange'];_0x5e5bb8['isAttached']?(_0x5794af['add'](_0x99e49e),_0x20baf3['has'](_0x99e49e)&&_0x20baf3['get'](_0x99e49e)['userId']==_0x5e5bb8['userId']?_0x20baf3['delete'](_0x99e49e):_0x20baf3['set'](_0x99e49e,_0x5e5bb8)):_0x20baf3['has'](_0x99e49e)?(_0x5794af['delete'](_0x99e49e),_0x20baf3['delete'](_0x99e49e)):(_0x5794af['add'](_0x99e49e),_0x20baf3['set'](_0x99e49e,_0x5e5bb8));}else _0x5794af['add'](_0x99e49e);}for(const _0x3d0ad2 of _0x5794af){const _0x421e33=_0x20baf3['has'](_0x3d0ad2)&&!_0x20baf3['get'](_0x3d0ad2)['isAttached'];let _0x3d4c10=_0x421e33?_0x4595ca['length']-0x1:0x0;const _0x14109a=_0x421e33?-0x1:0x1;for(;_0x4595ca[_0x3d4c10];){const _0x1e3040=_0x4595ca[_0x3d4c10];if(_0x1e3040['diffData'][_0x3d0ad2]){const _0x1e61fa=_0x421e33?_0x1e3040['diffData'][_0x3d0ad2]['attributesBefore']:_0x1e3040['diffData'][_0x3d0ad2]['attributesAfter'];_0x28780e['attributes'][_0x3d0ad2]=_0x1e61fa?_0x2d8281(_0x1e61fa):{};break;}_0x3d4c10+=_0x14109a;}}for(const _0x166496 of _0x4595ca){_0x166496['model']={};for(const _0x585a1f of _0x166496['authors'])_0x23ecdf['set'](_0x585a1f['id'],_0x585a1f);for(const _0x27168 of _0x5794af){const _0x329cd6=_0x166496['diffData'][_0x27168]?_0x166496['diffData'][_0x27168]['insertions']:'[]',_0x25de3b=_0x166496['diffData'][_0x27168]?_0x166496['diffData'][_0x27168]['deletions']:'[]';_0x166496['model'][_0x27168]={'insertions':this['_utils']['_makeModelFromViewString'](_0x329cd6),'deletions':this['_utils']['_makeModelFromViewString'](_0x25de3b)};}}for(const _0x2c861d of _0x5794af){let _0x59ab43=null,_0xf96598=0x0;const _0x4c67bb=new Map(Array['from'](_0x2a73e4['model'][_0x2c861d]['insertions']['markers'])['filter'](([_0x271195])=>!_0x271195['startsWith']('revision:')));let _0x3dad59=0x0;for(const _0x1110d8 of _0x4595ca){const _0x5d64e3=this['_makeTape'](_0x1110d8['model'][_0x2c861d]['insertions']);_0x1110d8==_0x2a73e4?(_0x59ab43=_0x5d64e3,_0xf96598=_0x59ab43['length'],_0x59ab43['forEach'](_0xf61409=>{_0xf61409['id']=_0x3dad59++;}),this['_processTape'](_0x59ab43)):this['_markInsertions'](_0x59ab43,_0x5d64e3);const _0x55226f=_0x59ab43['filter'](_0x4698be=>!_0x4698be['isAdded'])['map'](_0x3d5fa3=>_0x3d5fa3['id']);let _0x2d77f9=0x0;const _0x5a1eba=this['_makeTape'](_0x1110d8['model'][_0x2c861d]['deletions']);_0x5a1eba['forEach'](_0x42fc8d=>{_0x42fc8d['isRemoved']?_0x42fc8d['id']=_0xf96598++:_0x42fc8d['id']=_0x55226f[_0x2d77f9++];}),this['_processTape'](_0x5a1eba),this['_setDistance'](_0x59ab43,'isAdded'),this['_setDistance'](_0x5a1eba,'isRemoved'),_0x1110d8==_0x2a73e4&&this['_markMarkers'](_0x59ab43,_0x4c67bb),_0x59ab43=this['_joinTapes'](_0x59ab43,_0x5a1eba),this['_refreshStartEndIndex'](_0x59ab43),this['_setDistance'](_0x59ab43,'isRemoved');}_0x59ab43=_0x59ab43['filter'](_0xb391ca=>!(_0xb391ca['isAdded']&&_0xb391ca['isRemoved']));const _0x53e776=new Map(_0x5be366['model'][_0x2c861d]['deletions']['markers']),_0x13c2c1=new Set(_0x4c67bb['keys']());for(const _0x2c320d of _0x53e776['keys']())_0x13c2c1['delete'](_0x2c320d);this['_markSuggestions'](_0x59ab43,_0x13c2c1),this['_fixObsoleteTags'](_0x59ab43),_0x59ab43=this['_removeMissingPairs'](_0x59ab43),_0x59ab43=this['_markMismatchedRemovedTags'](_0x59ab43),_0x59ab43=this['_removeUnsupportedChanges'](_0x59ab43);const {root:_0x46bd35,changes:_0x39f159}=this['_makeModelFromTape'](_0x59ab43,_0x23ecdf,_0x2c861d);_0x28780e['model'][_0x2c861d]=_0x46bd35;const _0x579403=_0x20baf3['get'](_0x2c861d);if(_0x579403){const _0x595762=_0x23ecdf['get'](_0x579403['userId']),_0x4989cd=new r({'author':_0x595762,'type':_0x579403['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2c861d});_0x39f159['unshift'](_0x4989cd),_0x28780e['attributes'][_0x2c861d]['revisionHistoryAttachChange']=_0x4989cd['id'];}_0x28780e['changes']=_0x28780e['changes']['concat'](_0x39f159);}return _0x28780e;}['_markMarkers'](_0x975326,_0x35a7be){for(let _0x2af6a7=0x0;_0x2af6a7<_0x975326['length'];_0x2af6a7++)for(const [_0x19f58c,_0x4668a7]of _0x35a7be)!_0x4668a7['isCollapsed']&&_0x4668a7['start']['isEqual'](_0x975326[_0x2af6a7]['previousPosition'])&&_0x975326[_0x2af6a7]['markersStart']['push'](_0x19f58c),_0x4668a7['end']['isEqual'](_0x975326[_0x2af6a7]['nextPosition'])&&_0x975326[_0x2af6a7]['markersEnd']['push'](_0x19f58c);}['_joinTapes'](_0x4ffcb2,_0x14ac59){let _0xc2b474=[],_0x56abfa=0x0,_0x208b5f=0x0;for(;_0x56abfa<_0x4ffcb2['length']||_0x208b5f<_0x14ac59['length'];){const _0x5e0c5d=_0x4ffcb2[_0x56abfa]||{},_0x4ee6b7=_0x14ac59[_0x208b5f]||{};if(_0x5e0c5d['id']==_0x4ee6b7['id'])_0x56abfa++,_0x208b5f++,_0xc2b474['push'](_0x5e0c5d);else{if(_0x4ee6b7['isRemoved']&&_0x5e0c5d['isAdded']){const {commonTape:_0x1bd178,iEnd:_0x590daf,jEnd:_0x7ad865}=this['_threeWayMerge'](_0x4ffcb2,_0x56abfa,_0x14ac59,_0x208b5f);_0xc2b474=_0xc2b474['concat'](_0x1bd178),_0x56abfa=_0x590daf,_0x208b5f=_0x7ad865;}else _0x4ee6b7['isRemoved']?(_0x208b5f++,_0xc2b474['push'](_0x4ee6b7)):(_0x56abfa++,_0xc2b474['push'](_0x5e0c5d));}}return _0xc2b474;}['_markSuggestions'](_0x5469ca,_0x37cac6){const _0x35d8bf=[];for(let _0x1c248b=0x0;_0x1c248b<_0x5469ca['length'];_0x1c248b++){for(let _0x364b66=0x0;_0x364b66<_0x5469ca[_0x1c248b]['markersStart']['length'];_0x364b66++){const _0x55d795=_0x5469ca[_0x1c248b]['markersStart'][_0x364b66];if(!_0x37cac6['has'](_0x55d795))continue;const {group:_0x1e6cfe,type:_0x4a198c,authorId:_0x12c080}=_0x3e3800(_0x55d795);'revision-suggestion'!=_0x1e6cfe||'insertion'!=_0x4a198c&&'deletion'!=_0x4a198c||(_0x35d8bf['unshift']({'type':_0x4a198c,'name':_0x55d795,'userId':_0x12c080}),_0x5469ca[_0x1c248b]['markersStart']['splice'](_0x364b66,0x1),_0x364b66--);}_0x54566b(_0x5469ca[_0x1c248b]);for(let _0x5d6718=0x0;_0x5d6718<_0x5469ca[_0x1c248b]['markersEnd']['length'];_0x5d6718++){const _0x333a4b=_0x5469ca[_0x1c248b]['markersEnd'][_0x5d6718];if(!_0x37cac6['has'](_0x333a4b))continue;const {group:_0x431f9a,type:_0x475441}=_0x3e3800(_0x333a4b);if('revision-suggestion'!=_0x431f9a||'insertion'!=_0x475441&&'deletion'!=_0x475441)continue;_0x5469ca[_0x1c248b]['markersEnd']['splice'](_0x5d6718,0x1),_0x5d6718--;const _0x5f0089=_0x35d8bf['findIndex'](_0x551cc4=>_0x551cc4['name']==_0x333a4b);_0x5f0089>-0x1&&_0x35d8bf['splice'](_0x5f0089,0x1);}}function _0x3e3800(_0x4e1a41){const _0x5cfef6=_0x4e1a41['split'](':');return{'group':_0x5cfef6[0x0],'type':_0x5cfef6[0x1],'subType':_0x5cfef6['length']>=0x5?_0x5cfef6[0x2]:null,'id':_0x5cfef6['length']<0x5?_0x5cfef6[0x2]:_0x5cfef6[0x3],'authorId':_0x5cfef6['length']<0x5?_0x5cfef6[0x3]:_0x5cfef6[0x4],'markerCount':0x6==_0x5cfef6['length']?_0x5cfef6[0x5]:null};}function _0x54566b(_0x5c39a5){for(let _0x12cddc=0x0;_0x12cddc<_0x35d8bf['length'];_0x12cddc++){if(_0x5c39a5['isAdded']&&'insertion'==_0x35d8bf[_0x12cddc]['type'])return _0x5c39a5['isAddSuggestion']=_0x35d8bf[_0x12cddc],void delete _0x5c39a5['isAdded'];if(!_0x5c39a5['isAdded']&&!_0x5c39a5['isRemoved']&&'deletion'==_0x35d8bf[_0x12cddc]['type'])return void(_0x5c39a5['isRemoveSuggestion']=_0x35d8bf[_0x12cddc]);}}}['_setDistance'](_0x1c9650,_0x462ab1){let _0x20f0f0=0x0,_0x3c845f=!0x1;const _0x31e80a=new Map();for(const _0x39ab4a of _0x1c9650)_0x39ab4a[_0x462ab1]?_0x3c845f&&(_0x20f0f0++,_0x3c845f=!0x1):(_0x20f0f0++,_0x3c845f=!0x0),_0x31e80a['set'](_0x39ab4a['id'],_0x20f0f0);for(let _0x322dde=0x0;_0x322dde<_0x1c9650['length'];_0x322dde++){if('isRemoved'==_0x462ab1&&_0x1c9650[_0x322dde]['isAdded']||'isAdded'==_0x462ab1&&_0x1c9650[_0x322dde]['isRemoved'])continue;if('text'==_0x1c9650[_0x322dde]['type']){_0x1c9650[_0x322dde]['distance']=0x0;continue;}const _0x277fa0=_0x31e80a['get'](_0x1c9650[_0x322dde]['pairId']),_0x364d71=_0x31e80a['get'](_0x1c9650[_0x322dde]['id']);_0x1c9650[_0x322dde]['distance']=_0x277fa0-_0x364d71;}}['_getRevisionsRange'](_0x197bf3,_0x58d440,_0x12953b=!0x1){const _0x1d7e88=[];let _0x5dbe52=this['repository']['getIndex'](_0x197bf3),_0x5ef98a=this['repository']['getIndex'](_0x58d440);for(-0x1==_0x5ef98a&&(_0x5ef98a=this['repository']['_revisions']['length'],_0x12953b=!0x1);_0x5dbe52<_0x5ef98a;)_0x1d7e88['push'](this['repository']['getRevision'](_0x5dbe52)),_0x5dbe52++;return _0x12953b&&_0x1d7e88['push'](this['repository']['getRevision'](_0x5dbe52)),_0x1d7e88;}['_threeWayMerge'](_0x527b21,_0x4d0601,_0x1aeb94,_0x13709f){const _0x42c840=this['editor']['model']['schema'];let _0x3980d8=_0x4d0601;for(;_0x527b21[_0x3980d8]&&_0x527b21[_0x3980d8]['isAdded'];)_0x3980d8++;let _0x1c5f96=_0x13709f;for(;_0x1aeb94[_0x1c5f96]&&_0x1aeb94[_0x1c5f96]['isRemoved'];)_0x1c5f96++;_0x10492f(_0x527b21,_0x4d0601,_0x3980d8),_0x10492f(_0x1aeb94,_0x13709f,_0x1c5f96);const _0x112c78=_0x1aeb94['slice'](_0x13709f,_0x1c5f96)['concat'](_0x527b21['slice'](_0x4d0601,_0x3980d8));return _0x112c78['sort']((_0x351ab4,_0x136906)=>_0x351ab4['side']!=_0x136906['side']?_0x351ab4['side']-_0x136906['side']:_0x351ab4['level']!=_0x136906['level']?_0x351ab4['level']-_0x136906['level']:_0x351ab4['distance']!=_0x136906['distance']?_0x136906['distance']-_0x351ab4['distance']:!!_0x351ab4['isAdded']!=!!_0x136906['isAdded']?-0x1==_0x351ab4['side']||0x0==_0x351ab4['side']?_0x351ab4['isAdded']?-0x1:0x1:_0x351ab4['isAdded']?0x1:-0x1:_0x351ab4['index']-_0x136906['index']),{'commonTape':_0x112c78,'iEnd':_0x3980d8,'jEnd':_0x1c5f96};function _0x10492f(_0x98f7bf,_0x1f7bf4,_0x12e82e){let _0x44d59f=-0x1,_0x3cf243=Number['POSITIVE_INFINITY'],_0x3013a8=!0x0;for(let _0x3684ee=_0x1f7bf4;_0x3684ee<_0x12e82e;_0x3684ee++)if(_0x42c840['isInline'](_0x98f7bf[_0x3684ee]['item'])||(_0x3013a8=!0x1),_0x98f7bf[_0x3684ee]['item']['startIndex']<_0x1f7bf4&&(_0x44d59f=_0x3684ee),_0x98f7bf[_0x3684ee]['item']['endIndex']>=_0x12e82e){_0x3cf243=_0x3684ee;break;}_0x3013a8&&(_0x44d59f=_0x12e82e-0x1);for(let _0x55abea=_0x1f7bf4;_0x55abea<_0x12e82e;_0x55abea++)_0x98f7bf[_0x55abea]['side']=_0x55abea<=_0x44d59f?-0x1:_0x55abea<_0x3cf243?0x0:0x1,_0x98f7bf[_0x55abea]['index']=_0x55abea;let _0xba5ffa=0x0;for(let _0x1845eb=_0x1f7bf4;_0x1845eb<=_0x44d59f;_0x1845eb++)0x0==_0x98f7bf[_0x1845eb]['distance']?_0x98f7bf[_0x1845eb]['level']=_0xba5ffa:(_0xba5ffa++,_0x98f7bf[_0x1845eb]['level']=_0xba5ffa,_0xba5ffa++);for(let _0x2b85f3=_0x1f7bf4;_0x2b85f3<_0x12e82e;_0x2b85f3++)0x0==_0x98f7bf[_0x2b85f3]['side']&&(_0x98f7bf[_0x2b85f3]['level']=_0xba5ffa);_0xba5ffa=0x0;for(let _0x2874ea=_0x12e82e-0x1;_0x2874ea>=_0x3cf243;_0x2874ea--)0x0==_0x98f7bf[_0x2874ea]['distance']?_0x98f7bf[_0x2874ea]['level']=_0xba5ffa:(_0xba5ffa--,_0x98f7bf[_0x2874ea]['level']=_0xba5ffa,_0xba5ffa--);}}['_fixObsoleteTags'](_0x571fc3){const _0x251c7f=new Map(),_0x201e4b=this['editor']['model']['schema'];for(let _0x582ef1=0x1;_0x582ef1<_0x571fc3['length'];_0x582ef1++){let _0x25378c,_0x3a251e,_0x33f52b;const _0x3edcda=_0x571fc3[_0x582ef1],_0x222625=_0x571fc3[_0x582ef1-0x1];if('text'==_0x3edcda['type'])continue;if(_0x3edcda['type']!=_0x222625['type'])continue;if(!_0x201e4b['isBlock'](_0x222625['item'])||_0x201e4b['isLimit'](_0x222625['item']))continue;if(!_0x201e4b['isBlock'](_0x3edcda['item'])||_0x201e4b['isLimit'](_0x3edcda['item']))continue;if((_0x571fc3[_0x582ef1]['isAdded']||_0x571fc3[_0x582ef1]['isAddSuggestion'])&&_0x571fc3[_0x582ef1-0x1]['isRemoved'])_0x25378c=_0x571fc3[_0x582ef1],_0x3a251e=_0x571fc3[_0x582ef1-0x1],_0x33f52b=_0x582ef1-0x1;else{if(!_0x571fc3[_0x582ef1]['isRemoved']||!_0x571fc3[_0x582ef1-0x1]['isAdded']&&!_0x571fc3[_0x582ef1-0x1]['isAddSuggestion'])continue;_0x25378c=_0x571fc3[_0x582ef1-0x1],_0x3a251e=_0x571fc3[_0x582ef1],_0x33f52b=_0x582ef1;}const _0x33b1d2=_0x25378c['level']==_0x3a251e['level'],_0x2f56a5=Math['abs'](_0x25378c['level'])<Math['abs'](_0x3a251e['level'])&&0x0==_0x3a251e['distance'];(_0x33b1d2||_0x2f56a5)&&(_0x251c7f['set'](_0x3a251e['id'],_0x25378c['id']),_0x571fc3['splice'](_0x33f52b,0x1),_0x582ef1--,_0x25378c['isAdded']=!0x1);}for(let _0x30b826=0x0;_0x30b826<_0x571fc3['length'];_0x30b826++)_0x251c7f['has'](_0x571fc3[_0x30b826]['pairId'])&&(_0x571fc3[_0x30b826]['pairId']=_0x251c7f['get'](_0x571fc3[_0x30b826]['pairId']));}['_removeMissingPairs'](_0x506a80){const _0x18bacc=new Set(_0x506a80['map'](_0x13f056=>_0x13f056['id']));for(let _0x5898df=0x0;_0x5898df<_0x506a80['length'];_0x5898df++)_0x18bacc['has'](_0x506a80[_0x5898df]['pairId'])||0x0==_0x506a80[_0x5898df]['distance']||(_0x506a80[_0x5898df]['isIncorrect']=!0x0);return _0x506a80['filter'](_0x5e9faf=>!_0x5e9faf['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5caba1){const _0x29b91d=new Set();for(let _0x4f4424=0x0;_0x4f4424<_0x5caba1['length'];_0x4f4424++){if(_0x29b91d['has'](_0x5caba1[_0x4f4424]['id'])&&_0x5caba1[_0x4f4424]['isRemoved']&&(_0x5caba1[_0x4f4424]['isIncorrect']=!0x0),_0x5caba1[_0x4f4424]['isIncorrect'])continue;if(0x0==_0x5caba1[_0x4f4424]['distance'])continue;if('elementStart'!=_0x5caba1[_0x4f4424]['type'])continue;if(null==_0x5caba1[_0x4f4424]['pairId'])continue;let _0x12de4a=_0x4f4424+0x1,_0x2e5520=0x0;for(;_0x5caba1[_0x12de4a]['id']!=_0x5caba1[_0x4f4424]['pairId'];)'elementStart'==_0x5caba1[_0x12de4a]['type']?_0x2e5520++:'elementEnd'==_0x5caba1[_0x12de4a]['type']&&_0x2e5520--,_0x12de4a++;if(0x0!=_0x2e5520){if(_0x5caba1[_0x4f4424]['isRemoved'])_0x5caba1[_0x4f4424]['isIncorrect']=!0x0;else{for(;_0x12de4a!=_0x4f4424;)_0x5caba1[_0x12de4a]['isRemoved']&&0x0!=_0x5caba1[_0x12de4a]['distance']&&(_0x5caba1[_0x12de4a]['isIncorrect']=!0x0,_0x29b91d['add'](_0x5caba1[_0x12de4a]['pairId'])),_0x12de4a--;}}}return _0x5caba1['filter'](_0x2e4d59=>!_0x2e4d59['isIncorrect']);}['_removeUnsupportedChanges'](_0x5e1994){const _0x289fad=this['editor']['model']['schema'];for(let _0x286c8f=0x0;_0x286c8f<_0x5e1994['length'];_0x286c8f++){if(!(_0x5e1994[_0x286c8f]['isAdded']||_0x5e1994[_0x286c8f]['isAddSuggestion']||_0x5e1994[_0x286c8f]['isRemoved']||_0x5e1994[_0x286c8f]['isRemoveSuggestion']))continue;if(0x0==_0x5e1994[_0x286c8f]['distance'])continue;const _0x372151=_0x5e1994[_0x286c8f]['item'];_0x289fad['isBlock'](_0x372151)||_0x289fad['isLimit'](_0x372151)||(_0x5e1994[_0x286c8f]['isAdded']&&delete _0x5e1994[_0x286c8f]['isAdded'],_0x5e1994[_0x286c8f]['isAddSuggestion']&&delete _0x5e1994[_0x286c8f]['isAddSuggestion'],_0x5e1994[_0x286c8f]['isRemoveSuggestion']&&delete _0x5e1994[_0x286c8f]['isRemoveSuggestion'],_0x5e1994[_0x286c8f]['isRemoved']&&(_0x5e1994[_0x286c8f]['isIncorrect']=!0x0));}return _0x5e1994['filter'](_0x4db2cb=>!_0x4db2cb['isIncorrect']);}['_makeModelFromTape'](_0x1e1758,_0x173649,_0x4110ca){const _0xced0a=new vt(),_0x105221=[],_0x4359d6=new Map(),_0x3bb5f8=this['editor']['model'],_0x3830ee=_0x3bb5f8['schema'],_0x425a3c=[_0xced0a],_0x24a197={},_0x10d999={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b4c60=null;const _0x3d9c98=[0x0];for(let _0x1f18d5=0x0;_0x1f18d5<_0x1e1758['length'];_0x1f18d5++)if('elementStart'===_0x1e1758[_0x1f18d5]['type']){_0x1e1758[_0x1f18d5]['previousPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98);const _0x4d293a=new ut(_0x1e1758[_0x1f18d5]['item']['name'],_0x1e1758[_0x1f18d5]['item']['getAttributes']());_0x425a3c[0x0]['_appendChild'](_0x4d293a),_0x3d9c98['push'](0x0),_0x425a3c['unshift'](_0x4d293a),_0x1e1758[_0x1f18d5]['nextPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98);}else'elementEnd'===_0x1e1758[_0x1f18d5]['type']?(_0x425a3c['shift'](),_0x1e1758[_0x1f18d5]['previousPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98),_0x3d9c98['pop'](),_0x3d9c98[_0x3d9c98['length']-0x1]++,_0x1e1758[_0x1f18d5]['nextPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98)):(_0x1e1758[_0x1f18d5]['previousPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98),_0x5b4c60?_0x5b4c60['_data']+=_0x1e1758[_0x1f18d5]['item']['data']:_0x5b4c60=new gt(_0x1e1758[_0x1f18d5]['item']['data'],_0x1e1758[_0x1f18d5]['item']['getAttributes']()),_0x1e1758[_0x1f18d5+0x1]&&'text'===_0x1e1758[_0x1f18d5+0x1]['type']&&_0x26a4a9(_0x5b4c60,_0x1e1758[_0x1f18d5+0x1]['item'])||(_0x425a3c[0x0]['_appendChild'](_0x5b4c60),_0x5b4c60=null),_0x3d9c98[_0x3d9c98['length']-0x1]+=_0x1e1758[_0x1f18d5]['item']['offsetSize'],_0x1e1758[_0x1f18d5]['nextPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98));for(let _0x1e9f9c=0x0;_0x1e9f9c<_0x1e1758['length'];_0x1e9f9c++){const _0x309114=_0x1e1758[_0x1e9f9c]['previousPosition'],_0xaa958b=_0x1e1758[_0x1e9f9c]['nextPosition'];for(const _0x54969d of _0x1e1758[_0x1e9f9c]['markersStart'])_0x4359d6['set'](_0x54969d,{'start':_0x309114,'end':null});_0x2fc0d3('isRemoveSuggestion',_0x1e9f9c,_0x309114,_0xaa958b),_0x2fc0d3('isAddSuggestion',_0x1e9f9c,_0x309114,_0xaa958b),_0x2fc0d3('isRemoved',_0x1e9f9c,_0x309114,_0xaa958b),_0x2fc0d3('isAdded',_0x1e9f9c,_0x309114,_0xaa958b);for(const _0x35409c of _0x1e1758[_0x1e9f9c]['markersEnd']){const _0x55072b=_0x4359d6['get'](_0x35409c);_0x55072b?_0x55072b['end']=_0xaa958b:_0x4359d6['set'](_0x35409c,{'start':_0xaa958b,'end':_0xaa958b});}}for(const [_0x5c7c8c,_0x20f535]of _0x4359d6){const _0x588d73=this['editor']['model']['createRange'](_0x20f535['start'],_0x20f535['end']);_0xced0a['markers']['set'](_0x5c7c8c,_0x588d73);}return _0x105221['sort']((_0x57b4aa,_0x31eafd)=>{const _0x24326d=_0xced0a['markers']['get']('revision:'+_0x57b4aa['id']),_0x2fbacb=_0xced0a['markers']['get']('revision:'+_0x31eafd['id']);return _0x24326d['start']['isBefore'](_0x2fbacb['start'])?-0x1:_0x24326d['start']['isAfter'](_0x2fbacb['start'])?0x1:_0x24326d['end']['isBefore'](_0x2fbacb['end'])?-0x1:_0x24326d['end']['isAfter'](_0x2fbacb['end'])?0x1:'add'===_0x57b4aa['type']?-0x1:0x1;}),{'root':_0xced0a,'changes':_0x105221};function _0x2fc0d3(_0x5ac93b,_0x307d3a,_0x2d3229,_0x373cfa){const _0x9c75ab=!!_0x1e1758[_0x307d3a][_0x5ac93b],_0x59b301=_0x9c75ab?_0x1e1758[_0x307d3a][_0x5ac93b]['userId']:null,_0x53c4fe=_0x307d3a===_0x1e1758['length']-0x1,_0x2f8cfc=_0x10d999[_0x5ac93b][0x0],_0x3b24b8=_0x3830ee['isObject'](_0x1e1758[_0x307d3a]['item']);!_0x24a197[_0x5ac93b]&&_0x9c75ab?_0x24a197[_0x5ac93b]={'start':_0x2d3229,'tapeItem':_0x1e1758[_0x307d3a],'userId':_0x59b301,'type':_0x5ac93b}:_0x24a197[_0x5ac93b]&&!_0x9c75ab?(_0x24a197[_0x5ac93b]['end']=_0x2d3229,_0x2b28a5(_0x24a197[_0x5ac93b]),_0x24a197[_0x5ac93b]=null):_0x24a197[_0x5ac93b]&&_0x9c75ab&&_0x24a197[_0x5ac93b]['userId']!==_0x59b301&&(_0x24a197[_0x5ac93b]['end']=_0x2d3229,_0x2f8cfc&&_0x2f8cfc['userId']===_0x24a197[_0x5ac93b]['userId']||_0x2b28a5(_0x24a197[_0x5ac93b]),_0x24a197[_0x5ac93b]={'start':_0x2d3229,'tapeItem':_0x1e1758[_0x307d3a],'userId':_0x59b301,'type':_0x5ac93b}),_0x24a197[_0x5ac93b]&&_0x3b24b8&&('elementStart'!==_0x1e1758[_0x307d3a]['type']||_0x2f8cfc&&_0x2f8cfc['userId']===_0x59b301||_0x10d999[_0x5ac93b]['unshift']({'userId':_0x59b301,'object':_0x1e1758[_0x307d3a]['item'],'change':_0x24a197[_0x5ac93b]}),'elementEnd'===_0x1e1758[_0x307d3a]['type']&&_0x2f8cfc&&_0x2f8cfc['object']===_0x1e1758[_0x307d3a]['item']&&(_0x10d999[_0x5ac93b]['shift'](),_0x24a197[_0x5ac93b]=_0x2f8cfc['change'])),_0x24a197[_0x5ac93b]&&_0x53c4fe&&(_0x24a197[_0x5ac93b]['end']=_0x373cfa,_0x2b28a5(_0x24a197[_0x5ac93b]),_0x24a197[_0x5ac93b]=null);}function _0x2b28a5({start:_0x481308,end:_0x39c53a,tapeItem:_0x4531a5,userId:_0x31a9fc,type:_0x23e3d0}){const _0x2f029c=_0x4531a5['item'],_0x4c8f4b=_0x3bb5f8['schema']['isBlock'](_0x2f029c)&&!_0x3bb5f8['schema']['isLimit'](_0x2f029c),_0x205332=_0x481308['nodeAfter']==_0x39c53a['parent']&&_0x39c53a['isAtStart'];if(_0x4c8f4b&&_0x205332)return;const _0x3071b0=_0x3bb5f8['createRange'](_0x481308,_0x39c53a),_0x36b594=_0x173649['get'](_0x31a9fc),_0x9c3b4e=new r({'author':_0x36b594,'type':'isAdded'==_0x23e3d0||'isAddSuggestion'==_0x23e3d0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x23e3d0||'isRemoveSuggestion'==_0x23e3d0},'createdAt':new Date(),'rootName':_0x4110ca});_0x105221['push'](_0x9c3b4e),_0xced0a['markers']['set']('revision:'+_0x9c3b4e['id'],_0x3071b0);}function _0x26a4a9(_0x37eda1,_0x15922d){const _0x4cdb90=_0x37eda1['getAttributes'](),_0x101cba=_0x15922d['getAttributes']();for(const _0x52623c of _0x4cdb90){if(_0x52623c[0x1]!==_0x15922d['getAttribute'](_0x52623c[0x0]))return!0x1;_0x101cba['next']();}return _0x101cba['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3b416e=>{const _0x7afc00=_0x3b416e['markerName']['split'](':')[0x1],_0x529813=this['_getChangeFromId'](_0x7afc00);if(!_0x529813)return null;const _0xc393db='add'==_0x529813['type']?'insertion':'deletion',_0x427b70=['ck-suggestion-marker','ck-suggestion-marker-'+_0xc393db];return _0x529813['data']['isSuggestion']&&_0x427b70['push']('ck-suggestion-marker-'+_0xc393db+'-new'),this['activeChange']==_0x529813&&_0x427b70['push']('ck-suggestion-marker--active'),{'classes':_0x427b70,'attributes':{'data-change-id':_0x7afc00}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x31e2b2=>{_0x31e2b2['on']('element:pre',(_0x283c23,_0x188ead,_0x55c701)=>{const _0x3da664=_0x188ead['viewItem']['getChild'](0x0);if(!_0x3da664||!_0x3da664['is']('element','code'))return;if(!_0x55c701['consumable']['consume'](_0x3da664,{'attributes':['vid_start','vid_end']}))return;const _0xd3aa40=_0x188ead['modelRange']['start']['nodeAfter'];_0x55c701['writer']['setAttribute']('vid_start',_0x3da664['getAttribute']('vid_start'),_0xd3aa40),_0x55c701['writer']['setAttribute']('vid_end',_0x3da664['getAttribute']('vid_end'),_0xd3aa40);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x49d1a6=>{_0x49d1a6['on']('element',(_0x7f2bb2,_0x3e6056,_0x8784f3)=>{if(!_0x8784f3['consumable']['consume'](_0x3e6056['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e6056['modelRange']['isCollapsed'])return;const _0x3cd81c=_0x3e6056['modelRange']['start']['nodeAfter'];_0x3cd81c['hasAttribute']('vid_start')||_0x3cd81c['hasAttribute']('vid')||(_0x8784f3['writer']['setAttribute']('vid_start',_0x3e6056['viewItem']['getAttribute']('vid_start'),_0x3cd81c),_0x8784f3['writer']['setAttribute']('vid_end',_0x3e6056['viewItem']['getAttribute']('vid_end'),_0x3cd81c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x147253=>_0x147253['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x250480,[,_0x4413c6])=>{['vid_start','vid_end','vid']['includes'](_0x4413c6)&&(_0x250480['return']=!0x0,_0x250480['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1ebd30=>{_0x1ebd30['on']('attribute:vid',(_0x26ecc4,_0x2ea193,_0x3ed259)=>{if('\x20'!=_0x2ea193['item']['data']||_0x2ea193['item']['parent']['maxOffset']>0x1)return;if(!_0x3ed259['consumable']['consume'](_0x2ea193['item'],_0x26ecc4['name']))return;const _0x3f55cf=_0x3ed259['writer'],_0x5dd891=_0x3ed259['mapper']['toViewRange'](_0x2ea193['range']);_0x3f55cf['wrap'](_0x5dd891,_0x3f55cf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x13172a){const _0x38151c=_0x13172a['plugins']['get']('RevisionViewer');return(_0x2db728,_0x7118,_0x56668d)=>{const _0x211183=_0x7118['markerName']['split'](':')[0x1],_0x1d29b2=_0x38151c['_getChangeFromId'](_0x211183);if(!_0x1d29b2)return null;const _0x5c5718='add'==_0x1d29b2['type']?'split':'merge';if(!_0x56668d['consumable']['test'](_0x7118['markerRange'],_0x2db728['name']))return;const _0x3f200f=_0x7118['markerRange']['getWalker'](),_0x57e18e=_0x7118['markerRange']['start'],_0x1841c2=_0x13172a['model']['schema'];let _0x3fe0e0=null,_0x37a285=null,_0x2699f0=!0x1,_0x110b67=!0x1;for(const _0x1295d9 of _0x3f200f){const _0x388522=_0x1295d9['item'];_0x2699f0=_0x2699f0||_0x1841c2['isContent'](_0x388522);const _0x5a8b95=_0x56668d['mapper']['toViewElement'](_0x388522);if(_0x5a8b95&&_0x5a8b95['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1295d9['type']&&(_0x1841c2['isBlock'](_0x388522)&&!_0x1841c2['isLimit'](_0x388522)&&(_0x388522['nextSibling']||_0x57e18e['isAtEnd']?_0x3fe0e0&&_0x3fe0e0['parent']==_0x388522||(_0x3fe0e0=_0x388522,_0x202800(_0x1295d9['previousPosition']),_0x110b67=!0x0):_0x37a285=_0x37a285||_0x1295d9['previousPosition']));}function _0x202800(_0x43f3d8){const _0x3882f=_0x56668d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c5718}),_0x286491=_0x56668d['mapper']['toViewPosition'](_0x43f3d8);_0x1d29b2['data']['isSuggestion']&&_0x56668d['writer']['addClass']('ck-suggestion-marker-'+_0x5c5718+'-new',_0x3882f),_0x38151c['activeChange']==_0x1d29b2&&_0x56668d['writer']['addClass']('ck-suggestion-marker--active',_0x3882f),_0x56668d['writer']['insert'](_0x286491,_0x3882f),_0x56668d['mapper']['bindElementToMarker'](_0x3882f,_0x7118['markerName']);}_0x2699f0||_0x110b67||!_0x37a285||_0x202800(_0x37a285);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xbf1566,_0x2fa6d8,_0x5c6a86)=>{const _0x1697b3=_0x5c6a86['mapper']['markerNameToElements'](_0x2fa6d8['markerName']);if(_0x1697b3){for(const _0x3b9659 of _0x1697b3)(_0x3b9659['hasClass']('ck-suggestion-marker-split')||_0x3b9659['hasClass']('ck-suggestion-marker-merge'))&&(_0x5c6a86['mapper']['unbindElementFromMarkerName'](_0x3b9659,_0x2fa6d8['markerName']),_0x5c6a86['writer']['remove'](_0x3b9659));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5a862b,_0x410938,_0x522a70)=>{const _0x490d2b=_0x410938['markerName']['split'](':')[0x1],_0x3ca4e5=this['_getChangeFromId'](_0x490d2b);if(!_0x3ca4e5)return null;const _0x3052de='add'==_0x3ca4e5['type']?'split':'merge';if(_0x522a70['consumable']['test'](_0x410938['markerRange'],_0x5a862b['name']))for(const _0x13a914 of _0x410938['markerRange']['getItems']()){if(!_0x13a914['is']('element','softBreak'))continue;const _0x2dba1b=_0x522a70['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3052de}),_0x7a931f=_0x522a70['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x13a914));_0x3ca4e5['data']['isSuggestion']&&_0x522a70['writer']['addClass']('ck-suggestion-marker-'+_0x3052de+'-new',_0x2dba1b),this['activeChange']==_0x3ca4e5&&_0x522a70['writer']['addClass']('ck-suggestion-marker--active',_0x2dba1b),_0x522a70['writer']['insert'](_0x7a931f,_0x2dba1b),_0x522a70['mapper']['bindElementToMarker'](_0x2dba1b,_0x410938['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x14fa6d=>{for(const _0xfa947 of this['editor']['model']['document']['getRootNames']()){const _0x4429b4=this['editor']['model']['document']['getRoot'](_0xfa947),_0x1be09a=this['editor']['editing']['view']['document']['getRoot'](_0xfa947);if(_0x1be09a){const _0x52273a=_0x4429b4['getAttribute']('revisionHistoryAttachChange');if(_0x14fa6d['removeAttribute']('data-change-id',_0x1be09a),_0x14fa6d['removeClass']('ck-revision-history-root-add',_0x1be09a),_0x14fa6d['removeClass']('ck-revision-history-root-remove',_0x1be09a),_0x14fa6d['removeClass']('ck-revision-history-root--active',_0x1be09a),_0x52273a){const _0x385408=this['_getChangeFromId'](_0x52273a);if(!_0x385408)return null;_0x14fa6d['setAttribute']('data-change-id',_0x52273a,_0x1be09a),_0x14fa6d['addClass']('ck-revision-history-root-'+_0x385408['type'],_0x1be09a),this['activeChange']==_0x385408&&_0x14fa6d['addClass']('ck-revision-history-root--active',_0x1be09a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x25974d=>'revision-comment:'+_0x25974d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x34eabd=>'revision-suggestion:'+_0x34eabd,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x41631f=>({'name':'suggestion:'+_0x41631f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xaa2e99=>{const _0xadb5e2=_0xaa2e99['markerName']['split'](':')[0x1];return'insertion'!=_0xadb5e2&&'deletion'!=_0xadb5e2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xadb5e2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3cf717,_0x1a2626,_0xcc8753)=>{const _0x4d41a8=_0xcc8753['mapper']['markerNameToElements'](_0x1a2626['markerName']);if(_0x4d41a8){for(const _0x14db19 of _0x4d41a8)_0x14db19['is']('uiElement')&&(_0xcc8753['mapper']['unbindElementFromMarkerName'](_0x14db19,_0x1a2626['markerName']),_0xcc8753['writer']['remove'](_0x14db19));}},{'priority':'high'});}['_getChangeFromId'](_0x188e9e){return this['_changeIdToChange']['get'](_0x188e9e);}['_getViewForChange'](_0x469ecc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x469ecc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x57e017,_0x523740,_0x2f0cbe,_0x4fe58c)=>{_0x4fe58c&&this['_balloon']['remove'](_0x4fe58c),_0x2f0cbe&&(this['_balloon']['add']({'view':_0x2f0cbe,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2fe4b9=this['editor']['editing'],_0x2ad542=this['_getChangeFromId'](_0x2f0cbe['changeId']);let _0x12dd70;if(_0x2ad542['data']['isOnRoot']){const _0x16040a=_0x2fe4b9['view']['getDomRoot'](_0x2ad542['rootName']);_0x12dd70=Array['from'](_0x16040a['getClientRects']());}else{const _0x226b83=this['editor']['model']['markers']['get']('revision:'+_0x2f0cbe['changeId']);_0x12dd70=Array['from'](_0x2fe4b9['mapper']['markerNameToElements'](_0x226b83['name']))['map'](_0x51e4be=>_0x2fe4b9['view']['domConverter']['mapViewToDom'](_0x51e4be))['map'](_0x3f968c=>Array['from'](_0x3f968c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x12dd70[0x0];return _0x12dd70['find'](_0x74a72=>_0x74a72['top']-0x3<=this['_activeViewTarget']['y']&&_0x74a72['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x74a72['left']-0x3<=this['_activeViewTarget']['x']&&_0x74a72['right']+0x3>=this['_activeViewTarget']['x'])||_0x12dd70[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x534bb2,_0x4115b9,_0x48bb18,_0x214b97)=>{this['activeView']=_0x48bb18?this['_getViewForChange'](_0x48bb18):null,this['editor']['model']['change'](()=>{const _0x32ea13=this['editor']['editing'];_0x214b97&&(_0x214b97['data']['isOnRoot']?_0x32ea13['view']['change'](_0x215e63=>{_0x215e63['removeClass']('ck-revision-history-root--active',_0x32ea13['view']['document']['getRoot'](_0x214b97['rootName']));}):_0x32ea13['reconvertMarker']('revision:'+_0x214b97['id'])),_0x48bb18&&(_0x48bb18['data']['isOnRoot']?_0x32ea13['view']['change'](_0x2c5d3c=>{_0x2c5d3c['addClass']('ck-revision-history-root--active',_0x32ea13['view']['document']['getRoot'](_0x48bb18['rootName']));}):_0x32ea13['reconvertMarker']('revision:'+_0x48bb18['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3cf8eb,_0x4697fb)=>{if(this['activeChange'])return;const _0x24c50b=this['_findChangeIdFromDomTarget'](_0x4697fb['target']),_0x4fbfc3=this['_changeIdToChange']['get'](_0x24c50b);_0x4fbfc3?(this['_activeViewTarget']={'x':_0x4697fb['domEvent']['x'],'y':_0x4697fb['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4fbfc3)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1fe4c2,_0x32117a)=>{const _0xe8d565=this['_findChangeIdFromDomTarget'](_0x32117a['target']),_0x561dc4=this['_changeIdToChange']['get'](_0xe8d565);_0x561dc4?(this['_activeViewTarget']={'x':_0x32117a['domEvent']['x'],'y':_0x32117a['domEvent']['y']},_0x561dc4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x561dc4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x376d94){do{const _0x1af19a=_0x376d94['getAttribute']('data-change-id');if(_0x1af19a)return _0x1af19a;_0x376d94=_0x376d94['parent'];}while(_0x376d94);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x49df5a=>{for(const _0x228a4b of this['editor']['model']['markers'])_0x49df5a['removeMarker'](_0x228a4b);});}}function X(_0x170111,_0x476cbf){return(_0x1eab1c,_0xdca701,_0x512eac)=>{if(!_0x512eac['consumable']['test'](_0xdca701['markerRange'],_0x1eab1c['name']))return;const _0x42c46d=_0xdca701['markerRange']['getWalker'](),_0x13d1da=_0xdca701['markerRange']['start'],_0x216ca4=_0x170111['model']['schema'];let _0x73c7c8=null,_0x236720=null,_0x225483=!0x1,_0x3af2fe=!0x1;for(const _0x212f98 of _0x42c46d){const _0x206a03=_0x212f98['item'];_0x225483=_0x225483||_0x216ca4['isContent'](_0x206a03);const _0x4c7b6c=_0x512eac['mapper']['toViewElement'](_0x206a03);if(_0x4c7b6c&&_0x4c7b6c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x212f98['type']&&(_0x216ca4['isBlock'](_0x206a03)&&!_0x216ca4['isLimit'](_0x206a03)&&(_0x206a03['nextSibling']||_0x13d1da['isAtEnd']?_0x73c7c8&&_0x73c7c8['parent']==_0x206a03||(_0x73c7c8=_0x206a03,_0x116202(_0x212f98['previousPosition']),_0x3af2fe=!0x0):_0x236720=_0x236720||_0x212f98['previousPosition']));}function _0x116202(_0x4f151f){const _0x508d3a=_0x512eac['mapper']['toViewPosition'](_0x4f151f),_0x4c907e=_0x512eac['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x476cbf});_0x512eac['writer']['insert'](_0x508d3a,_0x4c907e),_0x512eac['mapper']['bindElementToMarker'](_0x4c907e,_0xdca701['markerName']);}_0x225483||_0x3af2fe||!_0x236720||_0x116202(_0x236720);};}class mt extends _0x44b670{constructor(_0xe8b722){super(_0xe8b722);const _0x380998=_0xe8b722['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x380998,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x380998,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x283e51=this['editor'],_0x38b684=_0x283e51['plugins']['get'](m),_0x54d0e4=_0x38b684['isReady']?_0x38b684['diff']['newRevisionId']:null;_0x283e51['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x54d0e4);}['refresh'](){const {isReady:_0x2dfbb5,isEnabled:_0x30d98f,repository:_0x1e0807,diff:_0x11db00}=this['editor']['plugins']['get'](m),_0x2f2805=_0x11db00&&_0x1e0807['getLaterVisibleRevision'](_0x11db00['newRevisionId']);this['isEnabled']=_0x2dfbb5&&_0x30d98f&&Boolean(_0x2f2805);}}class wt extends _0x44b670{['_step'];constructor(_0x39a8a4,{direction:_0x39a1dd}){super(_0x39a8a4);const _0x342fda=_0x39a8a4['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x39a1dd?0x1:-0x1,this['listenTo'](_0x342fda,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x342fda,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x342fda,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3a6fd7=this['editor'],_0x4d489a=_0x3a6fd7['plugins']['get'](m),{isNavigationMode:_0x152031,currentChangeNumber:_0x10e2f7}=_0x4d489a;let _0x3b6ab6;if(_0x4d489a['activeChange']=_0x152031?_0x4d489a['diff']['changes']['get'](_0x10e2f7+this['_step']):_0x4d489a['diff']['changes']['first'],_0x4d489a['activeChange']['data']['isOnRoot'])_0x3b6ab6=_0x3a6fd7['editing']['view']['getDomRoot'](_0x4d489a['activeChange']['rootName']);else{const _0x4ce5ad=_0x3a6fd7['model']['markers']['get']('revision:'+_0x4d489a['activeChange']['id']);_0x3b6ab6=_0x5625d8(_0x3a6fd7['editing'],_0x4ce5ad);}_0x43357b({'target':_0x3b6ab6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5b5e8b,currentChangeNumber:_0x31ad11,numberOfChanges:_0x3ade57,isReady:_0x1c6234,isEnabled:_0x37532a}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x37532a&&_0x1c6234&&_0x3ade57)&&(!_0x5b5e8b||(0x1===this['_step']?_0x31ad11<_0x3ade57-0x1:_0x31ad11>0x0));}}class _i extends ts{constructor(_0x7702ad){super(_0x7702ad);const _0x32f6eb=this['bindTemplate'],_0x2598eb=new te(_0x7702ad),_0x44c1bc=new te(_0x7702ad);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',(_0x2ebac6,_0x4468dc)=>_0x2ebac6&&_0x4468dc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5d3fd4,_0x22b1fe,_0x484794,_0x4897ac)=>{if(!_0x5d3fd4)return g(_0x7702ad,'Loading...');if(!_0x484794)return g(_0x7702ad,'No\x20changes');const _0x53ec4a=g(_0x7702ad,'NUMBER_OF_CHANGES',_0x484794);return _0x4897ac?g(_0x7702ad,'X_OF_Y_CHANGES',[_0x22b1fe+0x1,_0x484794]):_0x53ec4a;}),_0x2598eb['set']({'label':g(_0x7702ad,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xe65ac}),_0x44c1bc['set']({'label':g(_0x7702ad,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2bbf01}),_0x2598eb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x44c1bc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2598eb['on']('execute',()=>this['fire']('execute','backward')),_0x44c1bc['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',_0x32f6eb['if']('_isStatusLabelVisible','ck-hidden',_0x6b7d4a=>!_0x6b7d4a)]},'children':[{'text':_0x32f6eb['to']('isNavigationMode',_0x3f46a8=>_0x3f46a8?g(_0x7702ad,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x7702ad,'Total')+':\x20')}]},{'text':_0x32f6eb['to']('_statusText')}]},new _0x668f32(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2598eb,_0x44c1bc]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4e23c9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x173273=this['editor']['editing']['view'];_0x173273['change'](_0x498df9=>{for(const _0x8b4b78 of _0x173273['document']['roots'])_0x498df9['addClass'](le,_0x8b4b78);});}['hide'](){const _0xd919e5=this['editor']['editing']['view'];_0xd919e5['change'](_0x3d4183=>{for(const _0x396a1a of _0xd919e5['document']['roots'])_0x3d4183['removeClass'](le,_0x396a1a);});}}class R extends _0x4e23c9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x26966c=this['editor'],_0x5e4fa2=_0x26966c['plugins']['get'](m),_0x2f0a6d=_0x26966c['plugins']['get'](ge);_0x26966c['ui']['componentFactory']['add']('exitToEditing',_0x2ca381=>{const _0x272dfc=new te(_0x2ca381);return _0x272dfc['set']({'label':g(_0x2ca381,'Back\x20to\x20editing'),'icon':_0x59629e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x272dfc,'execute',()=>{_0x26966c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x272dfc;}),_0x26966c['ui']['componentFactory']['add']('restoreRevision',_0x32a25b=>{const _0x46718d=new te(_0x32a25b);return _0x46718d['set']({'label':g(_0x32a25b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x46718d['bind']('isEnabled')['to'](_0x26966c['commands']['get']('restoreRevision')),this['listenTo'](_0x46718d,'execute',()=>_0x26966c['execute']('restoreRevision')),_0x46718d;}),_0x26966c['ui']['componentFactory']['add']('changesNavigation',_0x43439b=>{const _0x36ad97=new _i(_0x43439b),_0x4197e7=_0x26966c['commands']['get']('showPreviousChange'),_0x37193f=_0x26966c['commands']['get']('showNextChange');return _0x36ad97['bind']('isBackwardNavigationEnabled')['to'](_0x4197e7,'isEnabled'),_0x36ad97['bind']('isForwardNavigationEnabled')['to'](_0x37193f,'isEnabled'),_0x36ad97['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5e4fa2),this['listenTo'](_0x36ad97,'execute',(_0x5a230c,_0x579d66)=>{_0x26966c['execute']('forward'===_0x579d66?'showNextChange':'showPreviousChange');}),_0x36ad97;}),_0x2f0a6d['show'](),_0x5e4fa2['on']('change:isReady',(_0x59943d,_0x59e04a,_0x380687)=>{_0x380687?_0x2f0a6d['hide']():_0x2f0a6d['show']();});}}class at extends _0xd95170{['_resizeObserver']=null;constructor(_0x21509d,_0x3361fd){super(_0x21509d,_0x3361fd);const _0x521dc8=this['bindTemplate'];this['set']({'label':g(_0x21509d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x21509d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x521dc8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4ea27d=this['fieldView']['element'];this['_tooltipString']=_0x4ea27d['scrollWidth']>_0x4ea27d['clientWidth']&&_0x4ea27d['value']||'';}}class si extends ts{constructor(_0x81fecc,_0x3ea9a3,_0x1ef3da){super(_0x81fecc);const _0x3eccc4=new _0x5ada3b();_0x3eccc4['set']({'content':_0x42ad19,'viewBox':'0\x200\x2011\x2010'});const _0xef442d=['ck','ck-revision-history-sidebar__revision-author'];_0x1ef3da&&_0xef442d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3e94cd=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x81fecc,_0x1ef3da?'Revision\x20creator':'Revision\x20author')},'children':[_0x3eccc4,_0x3ea9a3['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xef442d},'children':_0x3e94cd});}}function oi(_0x7dccab,_0x52e854){const _0x3a947d=_0x7dccab['bindTemplate'],_0x3b747f=_0x7dccab['locale'],_0x32200e=_0x1d1841(_0x3b747f);_0x32200e['panelPosition']='sw';const _0x4381db=function(_0x316ba0,_0x4026e2){const _0x4c273d=function(_0x2ed308,_0x335423){const _0x19b4a9=_0x2ed308['locale'],_0x383f24={'Compare\x20against\x20selected':g(_0x19b4a9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x19b4a9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x19b4a9,'Restore\x20this\x20revision')};return _0x335423['map'](_0x1ae878=>{const _0x304a63=_0x383f24[_0x1ae878['name']];return _0x304a63&&_0x304a63!==_0x1ae878['name']&&(_0x1ae878['name']=_0x304a63),_0x1ae878;});}(_0x316ba0,_0x4026e2),_0x28c346=new _0x201912();for(const _0x13a5ab of _0x4c273d){const _0x39454c={'type':'button','model':new to({'label':_0x13a5ab['name'],'class':_0x13a5ab['class'],'withText':!0x0,'role':'menuitem','_action':_0x13a5ab['action']})};_0x39454c['model']['bind']('isEnabled')['to'](_0x316ba0,'isActionsDropdownOpen',_0x6afd07=>'function'!=typeof _0x13a5ab['isEnabled']||(!_0x6afd07||_0x13a5ab['isEnabled'](_0x316ba0))),_0x28c346['add'](_0x39454c);}return _0x28c346;}(_0x7dccab,_0x52e854);return _0x7dccab['bind']('isActionsDropdownOpen')['to'](_0x32200e,'isOpen'),_0x32200e['buttonView']['set']({'label':g(_0x3b747f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x19dfc7}),_0x32200e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3a947d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3a947d['to'](_0x3b3618=>_0x3b3618['stopPropagation']())}}),_0x32200e['on']('execute',_0x2dc515=>{_0x7dccab['isReady']&&'function'==typeof _0x2dc515['source']['_action']&&_0x2dc515['source']['_action'](_0x7dccab);}),_0x217bb6(_0x32200e,_0x4381db,{'role':'menu'}),_0x32200e['listenTo'](_0x7dccab,'change:isActionsDropdownOpen',(_0x58834e,_0x4c56fd,_0x49af11)=>{if(_0x49af11)for(const _0x34e2c9 of _0x32200e['listView']['items']){const _0x25c42c=_0x34e2c9['children']['first'],_0x1fa2fc=_0x52e854['find'](_0x6710bd=>_0x6710bd['action']===_0x25c42c['_action'])['isVisible'];_0x34e2c9['isVisible']=void 0x0===_0x1fa2fc||_0x1fa2fc(_0x7dccab);}}),_0x32200e;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x2c368b,uid as _0x16f76d,Collection as _0x69516b,logWarning as _0x471a3e,FocusTracker as _0x1f2f53,KeystrokeHandler as _0x1637b1,scrollViewportToShowTarget as _0x2f2e96,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x5029e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x18fd17,set as _0x3dd0fa,unset as _0x2bccf8,isEqual as _0x29102d}from'es-toolkit/compat';import{Plugin as _0x23aa96,PendingActions as _0x3a8db9,Command as _0x2815ab,ElementApiMixin as _0x223e5e,Editor as _0x682623}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5d7e11,getMarkerDomElement as _0x3c2bc9,ConfirmMixin as _0x3012aa,sanitizeEditorConfig as _0x2c70c5}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x13b076,ViewAttributeElement as _0xd412d3,ViewEmptyElement as _0x3117e1,ViewRawElement as _0xaef14,ViewUIElement as _0x41c7ad,ViewDocumentFragment as _0x5e83c3,ViewText as _0x950840,ViewElement as _0x24cd19,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x521926,IconChevronUp as _0x536b9d,IconChevronDown as _0x285265,IconUndo as _0x1ea5d1,IconUser as _0x49e023,IconThreeVerticalDots as _0x43079a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4aa4e8,injectCssTransitionDisabler as ts,submitHandler as _0x95214,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x4a74fb,ListView as _0x171d59,ListItemView as te,ButtonView as _0x3b1d40,MenuBarMenuView as _0x572593,MenuBarMenuListView as _0x159fb7,MenuBarMenuListItemView as _0x32767b,MenuBarMenuListItemButtonView as _0x31cf84,ContextualBalloon as _0x54e8ad,ToolbarSeparatorView as _0x391b17,IconView as _0x573a08,addListToDropdown as _0x15f5b3,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5c5aaa}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2c368b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5c85d0){super(),this['id']=_0x5c85d0['id']||_0x16f76d(),this['creator']=_0x5c85d0['creator']||null,this['authors']=_0x5c85d0['authors']||[],this['diffData']=_0x5c85d0['diffData']||null,this['toVersion']=_0x5c85d0['toVersion']||0x0,this['fromVersion']=_0x5c85d0['fromVersion']||0x0,this['set']('name',_0x5c85d0['name']||''),this['set']('createdAt',_0x5c85d0['createdAt']||new Date()),this['set']('attributes',_0x5c85d0['attributes']||{});}['setName'](_0x4aa9c2){this['_update']({'name':_0x4aa9c2});}['setAttribute'](_0x13ff10,_0x2a7c98){const _0xe0355b=_0x18fd17(this['attributes']);_0x3dd0fa(_0xe0355b,_0x13ff10,_0x2a7c98),this['_update']({'attributes':_0xe0355b});}['removeAttribute'](_0x437dab){const _0xf993a6=_0x18fd17(this['attributes']);_0x2bccf8(_0xf993a6,_0x437dab),this['_update']({'attributes':_0xf993a6});}['_update'](_0x152cb4,_0xa7e2fc=!0x1){let _0x5d696b=!0x1;const _0x3a0f60={'id':this['id']},_0x43ce5a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5d1e9d of _0x43ce5a){const _0x1c649c=_0x152cb4[_0x5d1e9d];void 0x0!==_0x1c649c&&_0x1c649c!==this[_0x5d1e9d]&&(this[_0x5d1e9d]=_0x1c649c,_0x3a0f60[_0x5d1e9d]=_0x1c649c,_0x5d696b=!0x0);}_0x5d696b&&(_0x3a0f60['authors']&&(_0x3a0f60['authorsIds']=_0x3a0f60['authors']['map'](_0x545d70=>_0x545d70['id']),delete _0x3a0f60['authors']),this['fire']('_update',_0x3a0f60,_0xa7e2fc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5ab850=>_0x5ab850['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x23aa96{['_revisions'];static get['requires'](){return[_0x5d7e11];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xbffe46){super(_0xbffe46),this['_revisions']=new _0x69516b();}['afterInit'](){!async function(_0x4d91b9){const _0x2a4b68=_0x2f4a67([0x64,0x41,0x5a,0x32,0x54,0x34,0x76,0x73,0x6f,0x45,0x46,0x33,0x4c,0x6b,0x4b,0x38,0x49,0x65,0x57,0x70,0x7a,0x51,0x50,0x42,0x30,0x55,0x6c,0x4d,0x62,0x35,0x63,0x69,0x72,0x39,0x77,0x44,0x66,0x56,0x53,0x75,0x6e,0x58,0x43,0x52,0x6a,0x4e,0x68,0x67,0x6d,0x59,0x79,0x48,0x47,0x61,0x37,0x4f,0x71,0x78,0x36,0x4a,0x74,0x31]),_0x553e59=0xeb829,_0x16e521=0x7817fe0c,_0x332a94=0x78109a1c^_0x16e521,_0x450bb3=window[_0x2f4a67([0x44,0x61,0x74,0x65])][_0x2f4a67([0x6e,0x6f,0x77])](),_0x49c02f=_0x4d91b9[_0x2f4a67([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4433b9=new window[(_0x2f4a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c666b=>{_0x49c02f[_0x2f4a67([0x6f,0x6e,0x63,0x65])](_0x2f4a67([0x72,0x65,0x61,0x64,0x79]),_0x2c666b);}),_0x4b0f1e={[_0x2f4a67([0x6b,0x74,0x79])]:_0x2f4a67([0x45,0x43]),[_0x2f4a67([0x75,0x73,0x65])]:_0x2f4a67([0x73,0x69,0x67]),[_0x2f4a67([0x63,0x72,0x76])]:_0x2f4a67([0x50,0x2d,0x32,0x35,0x36]),[_0x2f4a67([0x78])]:_0x2f4a67([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]),[_0x2f4a67([0x79])]:_0x2f4a67([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]),[_0x2f4a67([0x61,0x6c,0x67])]:_0x2f4a67([0x45,0x53,0x32,0x35,0x36])},_0x586f91=_0x49c02f[_0x2f4a67([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f4a67([0x67,0x65,0x74])](_0x2f4a67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x265c93(){let _0x2c1a9,_0x5cc6fb=null,_0x5979da=null;try{if(_0x586f91==_0x2f4a67([0x47,0x50,0x4c]))return _0x2f4a67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c1a9=_0x2e54ac(),!_0x2c1a9)return _0x2f4a67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c1a9[_0x2f4a67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5979da=_0x116605(_0x2c1a9[_0x2f4a67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c1a9[_0x2f4a67([0x6a,0x74,0x69])])),await _0x34cec7()?_0x4156d9()?_0x2379d7()?_0x2f4a67([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cceae()?(_0x2c1a9[_0x2f4a67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f4a67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5cc6fb=_0x5775ce(_0x2f4a67([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c1a9[_0x2f4a67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f4a67([0x74,0x72,0x69,0x61,0x6c])&&(_0x5cc6fb=_0x5775ce(_0x2f4a67([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5507bc()):_0x2f4a67([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f4a67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f4a67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xda82bf){return _0x2f4a67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2379d7(){const _0x1878a6=[_0x2f4a67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f4a67([0x74,0x72,0x69,0x61,0x6c])][_0x2f4a67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c1a9[_0x2f4a67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x450bb3/0x3e8:0xe10*_0x332a94;return _0x2c1a9[_0x2f4a67([0x65,0x78,0x70])]<_0x1878a6;}function _0x4156d9(){const _0x49f34=_0x2c1a9[_0x2f4a67([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x49f34)return!0x1;if(_0x49f34[_0x2f4a67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f4a67([0x2a])))return!0x0;if(_0x49f34[_0x2f4a67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f4a67([0x52,0x48])))return!0x0;if(_0x49f34[_0x2f4a67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f4a67([0x52,0x52,0x48]))){if(_0x509c48())return!0x0;if(_0x503e13()||_0x137aa0())return!0x0;}return!0x1;}function _0x4cceae(){const _0x4c56c4=_0x2c1a9[_0x2f4a67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c56c4||0x0==_0x4c56c4[_0x2f4a67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc82040}=new URL(window[_0x2f4a67([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c56c4[_0x2f4a67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc82040))return!0x0;const _0x596943=_0xc82040[_0x2f4a67([0x73,0x70,0x6c,0x69,0x74])](_0x2f4a67([0x2e]));return _0x4c56c4[_0x2f4a67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x210bdb=>_0x210bdb[_0x2f4a67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f4a67([0x2a])))[_0x2f4a67([0x6d,0x61,0x70])](_0x23fc49=>_0x23fc49[_0x2f4a67([0x73,0x70,0x6c,0x69,0x74])](_0x2f4a67([0x2e])))[_0x2f4a67([0x73,0x6f,0x6d,0x65])](_0x4bd5b8=>_0x596943[_0x2f4a67([0x65,0x76,0x65,0x72,0x79])]((_0x1ad760,_0x1d99bb)=>_0x4bd5b8[_0x1d99bb]===_0x1ad760||_0x4bd5b8[_0x1d99bb]===_0x2f4a67([0x2a])));}function _0x5507bc(){return _0x5cc6fb&&_0x5979da?new window[(_0x2f4a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13b927,_0x34e21f)=>{_0x5cc6fb[_0x2f4a67([0x74,0x68,0x65,0x6e])](_0x13b927,_0x34e21f),_0x5979da[_0x2f4a67([0x74,0x68,0x65,0x6e])](_0x25bdc4=>{_0x25bdc4!=_0x2f4a67([0x56,0x61,0x6c,0x69,0x64])&&_0x13b927(_0x25bdc4);},_0x34e21f);}):_0x5cc6fb||_0x5979da||_0x2f4a67([0x56,0x61,0x6c,0x69,0x64]);}}function _0x116605(_0x4b39ed,_0x2b9ef3){return new window[(_0x2f4a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x257076=>{if(_0x4f9e02())return _0x257076(_0x2f4a67([0x56,0x61,0x6c,0x69,0x64]));_0x2df5c8(),_0x49c02f[_0x2f4a67([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f4a67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x519aa4=!0x1;const _0x30d10c=_0x16f76d();function _0x1e23ec(_0x864966){return!!_0x864966&&(typeof _0x864966===_0x2f4a67([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x864966===_0x2f4a67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x864966[_0x2f4a67([0x74,0x68,0x65,0x6e])]===_0x2f4a67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x864966[_0x2f4a67([0x63,0x61,0x74,0x63,0x68])]===_0x2f4a67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcbcf39(_0x3109aa){_0x4ed3bf(_0x3109aa)[_0x2f4a67([0x74,0x68,0x65,0x6e])](_0x26f906=>{if(!_0x26f906||_0x26f906[_0x2f4a67([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f4a67([0x6f,0x6b]))return _0x2f4a67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x199660(_0x3765fd(_0x30d10c+_0x2b9ef3))!=_0x26f906[_0x2f4a67([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f4a67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f4a67([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f4a67([0x74,0x68,0x65,0x6e])](_0x53b7c9=>(_0x2da9b8(),_0x53b7c9),()=>{const _0x22fb33=_0x2abce7();return null==_0x22fb33?(_0x2da9b8(),_0x2f4a67([0x56,0x61,0x6c,0x69,0x64])):_0x2f4a67(_0x450bb3-_0x22fb33>(0x5c1b7a0c^_0x16e521)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f4a67([0x74,0x68,0x65,0x6e])](_0x257076)[_0x2f4a67([0x63,0x61,0x74,0x63,0x68])](()=>{_0x257076(_0x2f4a67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe37156=0x7821108c^_0x16e521;function _0x2da9b8(){const _0x126b80=_0x2f4a67([0x6c,0x6c,0x63,0x74,0x2d])+_0x199660(_0x3765fd(_0x4b39ed)),_0x32a71e=_0x1f18d6(_0x199660(window[_0x2f4a67([0x4d,0x61,0x74,0x68])][_0x2f4a67([0x63,0x65,0x69,0x6c])](_0x450bb3/_0xe37156)));window[_0x2f4a67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f4a67([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x126b80,_0x32a71e);}function _0x2abce7(){const _0x4c39c5=_0x2f4a67([0x6c,0x6c,0x63,0x74,0x2d])+_0x199660(_0x3765fd(_0x4b39ed)),_0x38caea=window[_0x2f4a67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f4a67([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c39c5);return _0x38caea?window[_0x2f4a67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f18d6(_0x38caea),0x10)*_0xe37156:null;}function _0x4ed3bf(_0x3dedb4){return new window[(_0x2f4a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46dce9,_0x1e1bd0)=>{_0x3dedb4[_0x2f4a67([0x74,0x68,0x65,0x6e])](_0x46dce9,_0x1e1bd0),window[_0x2f4a67([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e1bd0,0x78162acc^_0x16e521);});}}_0x49c02f[_0x2f4a67([0x6f,0x6e])](_0x2f4a67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a915b,_0x47cacd)=>{if(_0x47cacd[0x0]!=_0x4b39ed)return _0x257076(_0x2f4a67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47cacd[0x1]={..._0x47cacd[0x1],[_0x2f4a67([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30d10c};},{[_0x2f4a67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f4a67([0x68,0x69,0x67,0x68])}),_0x49c02f[_0x2f4a67([0x6f,0x6e])](_0x2f4a67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d71ec=>{_0x1e23ec(_0x1d71ec[_0x2f4a67([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x519aa4=!0x0,_0xcbcf39(_0x1d71ec[_0x2f4a67([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f4a67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f4a67([0x6c,0x6f,0x77])}),_0x4433b9[_0x2f4a67([0x74,0x68,0x65,0x6e])](()=>{_0x519aa4||_0x257076(_0x2f4a67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f9e02(){return _0x49c02f[_0x2f4a67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f4a67([0x76,0x69,0x65,0x77])][_0x2f4a67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f4a67([0x61,0x75,0x74,0x6f]);}function _0x2df5c8(){_0x49c02f[_0x2f4a67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f4a67([0x76,0x69,0x65,0x77])][_0x2f4a67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f4a67([0x61,0x75,0x74,0x6f]);}}function _0x5775ce(_0x177ae6){const _0x419ffb=[new window[(_0x2f4a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ba92c=>setTimeout(_0x5ba92c,0x781ec0c0^_0x16e521)),_0x4433b9[_0x2f4a67([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f4a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24c69c=>{const _0x4cde15=0x7817fe0b^_0x16e521,_0x240ba0=_0x4d91b9[_0x2f4a67([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5f4c0b(){_0x240ba0[_0x2f4a67([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4cde15&&_0x24c69c();}_0x5f4c0b(),_0x240ba0[_0x2f4a67([0x6f,0x6e])](_0x2f4a67([0x61,0x64,0x64]),_0x5f4c0b);})),new window[(_0x2f4a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d0246=>{function _0x15278e(){for(const _0x1f1d97 in window)if(window[_0x2f4a67([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2f4a67([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1f1d97))&&window[_0x1f1d97]==_0x553e59)return _0x3d0246();_0x49c02f[_0x2f4a67([0x73,0x74,0x61,0x74,0x65])]!=_0x2f4a67([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2f4a67([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15278e,0x7817ed84^_0x16e521);}_0x43db27(_0x2f4a67([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x15278e();})];return window[_0x2f4a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f4a67([0x72,0x61,0x63,0x65])](_0x419ffb)[_0x2f4a67([0x74,0x68,0x65,0x6e])](()=>_0x177ae6);}async function _0x22dcfb(){if(await _0x4433b9,_0x43db27(_0x2f4a67([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2fdf31=_0x4d91b9[_0x2f4a67([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x55d71c=_0x4d91b9[_0x2f4a67([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])](_0x2fdf31[_0x2f4a67([0x69,0x64])]),_0x380ff5=_0xa9807e(_0x2f4a67([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x380ff5[_0x2f4a67([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2fdf31['id'],_0x55d71c?_0x55d71c['id']:null,!0x0),_0x380ff5[_0x2f4a67([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2f4a67([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x380ff5[_0x2f4a67([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x380ff5[_0x2f4a67([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x20c5dd,void(_0x380ff5[_0x2f4a67([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x20c5dd);}if(_0x43db27(_0x2f4a67([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5331f6=_0xa9807e(_0x2f4a67([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5331f6[_0x2f4a67([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2f4a67([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5331f6[_0x2f4a67([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5331f6[_0x2f4a67([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x20c5dd,_0x5331f6[_0x2f4a67([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x20c5dd;}_0x49c02f[_0x2f4a67([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f4a67([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20c5dd,_0x49c02f[_0x2f4a67([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f4a67([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20c5dd,_0x49c02f[_0x2f4a67([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f4a67([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x509c48(){return _0x43db27(_0x2f4a67([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xa9807e(_0x2f4a67([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2f4a67([0x73,0x74,0x61,0x74,0x65])]==_0x2f4a67([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x503e13(){return _0x43db27(_0x2f4a67([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 _0x137aa0(){return _0x43db27(_0x2f4a67([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1125bc(_0x1bc99d){const _0x47cfa7=_0x59042c();_0x49c02f[_0x47cfa7]=_0x2f4a67([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])+_0x1bc99d,_0x1bc99d[_0x2f4a67([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2f4a67([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x59042c()]=_0x553e59),_0x1bc99d!=_0x2f4a67([0x56,0x61,0x6c,0x69,0x64])&&_0x22dcfb();}function _0x59042c(){const _0x417c66=window[_0x2f4a67([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f4a67([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f4a67([0x6e,0x6f,0x77])]())[_0x2f4a67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f4a67([0x2e]),'');let _0x2f8d27=_0x2f4a67([0x64]);for(let _0x500e1e=0x0;_0x500e1e<_0x417c66[_0x2f4a67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x500e1e+=0x2){let _0x32add4=window[_0x2f4a67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x417c66[_0x2f4a67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x500e1e,_0x500e1e+0x2));_0x32add4>=_0x2a4b68[_0x2f4a67([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32add4-=_0x2a4b68[_0x2f4a67([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f8d27+=_0x2a4b68[_0x32add4];}return _0x2f8d27;}function _0x2e54ac(){const _0xd6267d=_0x586f91[_0x2f4a67([0x73,0x70,0x6c,0x69,0x74])](_0x2f4a67([0x2e]));if(0x3!=_0xd6267d[_0x2f4a67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29e44e(_0xd6267d[0x1]);function _0x29e44e(_0x55ae2b){const _0x4be5e1=_0x11acd9(_0x55ae2b);return _0x4be5e1&&_0x142e72()?_0x4be5e1:null;function _0x142e72(){const _0x436038=_0x4be5e1[_0x2f4a67([0x6a,0x74,0x69])],_0x193150=window[_0x2f4a67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x436038[_0x2f4a67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x436038[_0x2f4a67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5bc128={..._0x4be5e1,[_0x2f4a67([0x6a,0x74,0x69])]:_0x436038[_0x2f4a67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x436038[_0x2f4a67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5bc128[_0x2f4a67([0x76,0x63])],_0x3765fd(_0x5bc128)==_0x193150;}}}async function _0x34cec7(){let _0x23a5da=!0x0;try{const _0x2e2829=_0x586f91[_0x2f4a67([0x73,0x70,0x6c,0x69,0x74])](_0x2f4a67([0x2e])),[_0x1b9a18,_0x3e2504,_0x33bd06]=_0x2e2829;return _0x31ffd6(_0x1b9a18),await _0x202ffa(_0x1b9a18,_0x3e2504,_0x33bd06),_0x23a5da;}catch(_0x27a93d){return!0x1;}function _0x31ffd6(_0x344a87){const _0x1d459c=_0x11acd9(_0x344a87);_0x1d459c&&_0x1d459c[_0x2f4a67([0x61,0x6c,0x67])]==_0x2f4a67([0x45,0x53,0x32,0x35,0x36])||(_0x23a5da=!0x1);}async function _0x202ffa(_0x360ff0,_0x4554da,_0x1e4391){const _0x97f91b=window[_0x2f4a67([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f4a67([0x66,0x72,0x6f,0x6d])](_0x14a494(_0x1e4391),_0x2cd294=>_0x2cd294[_0x2f4a67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f32ef=new window[(_0x2f4a67([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f4a67([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x360ff0+_0x2f4a67([0x2e])+_0x4554da),_0x28d23d=window[_0x2f4a67([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f4a67([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28d23d)return;const _0x1401c9=await _0x28d23d[_0x2f4a67([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f4a67([0x6a,0x77,0x6b]),_0x4b0f1e,{[_0x2f4a67([0x6e,0x61,0x6d,0x65])]:_0x2f4a67([0x45,0x43,0x44,0x53,0x41]),[_0x2f4a67([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f4a67([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f4a67([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28d23d[_0x2f4a67([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f4a67([0x6e,0x61,0x6d,0x65])]:_0x2f4a67([0x45,0x43,0x44,0x53,0x41]),[_0x2f4a67([0x68,0x61,0x73,0x68])]:{[_0x2f4a67([0x6e,0x61,0x6d,0x65])]:_0x2f4a67([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1401c9,_0x97f91b,_0x4f32ef)||(_0x23a5da=!0x1);}}function _0x11acd9(_0x2fcc93){return _0x2fcc93[_0x2f4a67([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f4a67([0x65,0x79]))?JSON[_0x2f4a67([0x70,0x61,0x72,0x73,0x65])](_0x14a494(_0x2fcc93)):null;}function _0x14a494(_0x28fe30){return window[_0x2f4a67([0x61,0x74,0x6f,0x62])](_0x28fe30[_0x2f4a67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f4a67([0x2b]))[_0x2f4a67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f4a67([0x2f])));}function _0x3765fd(_0x21c5e0){let _0x4338f4=0x1505;function _0x2365cc(_0x2100e1){for(let _0x530260=0x0;_0x530260<_0x2100e1[_0x2f4a67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x530260++){const _0x240821=_0x2100e1[_0x2f4a67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x530260);_0x4338f4=(_0x4338f4<<0x5)+_0x4338f4+_0x240821,_0x4338f4&=_0x4338f4;}}function _0x3fcba9(_0x3cea9e){Array[_0x2f4a67([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3cea9e)?_0x3cea9e[_0x2f4a67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3fcba9):_0x3cea9e&&typeof _0x3cea9e==_0x2f4a67([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f4a67([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3cea9e)[_0x2f4a67([0x73,0x6f,0x72,0x74])]()[_0x2f4a67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x540083,_0x199213])=>{_0x2365cc(_0x540083),_0x3fcba9(_0x199213);}):_0x2365cc(window[_0x2f4a67([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3cea9e));}return _0x3fcba9(_0x21c5e0),_0x4338f4>>>0x0;}function _0x199660(_0x2733ac){return _0x2733ac[_0x2f4a67([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f4a67([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f4a67([0x30]));}function _0x1f18d6(_0x52d975){return _0x52d975[_0x2f4a67([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f4a67([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f4a67([0x6a,0x6f,0x69,0x6e])]('');}function _0x43db27(_0x4d5fc8){return _0x49c02f[_0x2f4a67([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f4a67([0x68,0x61,0x73])](_0x4d5fc8);}function _0xa9807e(_0x25120b){return _0x49c02f[_0x2f4a67([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f4a67([0x67,0x65,0x74])](_0x25120b);}function _0x20c5dd(){}function _0x2f4a67(_0x16badc){return _0x16badc['map'](_0x1182ea=>String['fromCharCode'](_0x1182ea))['join']('');}_0x1125bc(await _0x265c93());}(this);}['createRevision'](_0x45e018){const _0x130b92=this['editor']['plugins']['get']('Users');return new h({'id':_0x45e018['id'],'name':_0x45e018['name'],'creator':_0x45e018['creatorId']?_0x130b92['getUser'](_0x45e018['creatorId']):null,'diffData':_0x45e018['diffData']||_0x45e018['data'],'authors':_0x45e018['authorsIds']['map'](_0x5e39b1=>_0x130b92['getUser'](_0x5e39b1)),'createdAt':new Date(_0x45e018['createdAt']),'attributes':_0x45e018['attributes'],'fromVersion':_0x45e018['fromVersion'],'toVersion':_0x45e018['toVersion']});}['addRevision'](_0x744f41,_0x4acec9=0x0){this['_revisions']['add'](_0x744f41,_0x4acec9);}['getRevision'](_0x1a60fd){return this['_revisions']['get'](_0x1a60fd);}['getRevisions'](_0x15df92={'toJSON':!0x1}){const _0x47101c=Array['from'](this['_revisions']);return _0x47101c['reverse'](),_0x15df92['toJSON']?_0x47101c['map'](_0x182190=>_0x182190['toJSON']()):_0x47101c;}['getIndex'](_0x5093b3){return this['_revisions']['getIndex'](_0x5093b3);}['getEarlierVisibleRevision'](_0x522841){const [,_0x281771]=this['getRevisionsIterator'](_0x522841,{'direction':'earlier'});return _0x281771;}['getLaterVisibleRevision'](_0x14a2ee){const [,_0x3328ac]=this['getRevisionsIterator'](_0x14a2ee,{'direction':'later'});return _0x3328ac;}['getRevisionsInDiff'](_0x1f440d){const _0xa1f862=[];for(const _0x1cb9d0 of this['getRevisionsIterator'](_0x1f440d['newRevisionId']))if(_0xa1f862['push'](_0x1cb9d0),_0x1cb9d0['id']===_0x1f440d['oldRevisionId'])break;return _0xa1f862;}*['getRevisionsIterator'](_0x5c6b08,{direction:_0x16faff='earlier',filter:_0xd2e32a=()=>!0x0}={}){const _0x351055='earlier'===_0x16faff?0x1:-0x1;let _0x528b69=this['_revisions']['get'](_0x5c6b08),_0x1c44c1=this['getIndex'](_0x528b69);for(yield _0x528b69;_0x528b69;){if(_0x1c44c1+=_0x351055,_0x528b69=this['getRevision'](_0x1c44c1),!_0x528b69)return;_0xd2e32a(_0x528b69)&&(yield _0x528b69);}}}class V extends _0x23aa96{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x13b076,'c'],[_0xd412d3,'a'],[_0x3117e1,'e'],[_0xaef14,'r'],[_0x41c7ad,'u']]);['_typeCharToViewClass']=new Map([['c',_0x13b076],['a',_0xd412d3],['e',_0x3117e1],['r',_0xaef14],['u',_0x41c7ad]]);async['loadRevisionData'](_0x80db86,_0x42622a){if(_0x80db86['diffData']||!_0x42622a)return;const _0x49181b=this['editor']['config']['get']('collaboration.channelId'),_0x1919f2=await _0x42622a['getRevision']({'channelId':_0x49181b,'revisionId':_0x80db86['id']});_0x80db86['diffData']=_0x1919f2['diffData'];}['getRevisionDocumentData'](_0x7a9b4a){const _0x43cf35={};for(const _0x9fbb3b in _0x7a9b4a['diffData']){if(_0x7a9b4a['diffData'][_0x9fbb3b]['attachChange']&&!_0x7a9b4a['diffData'][_0x9fbb3b]['attachChange']['isAttached'])continue;const _0x490efc=this['_removeRevisionMarkers'](JSON['parse'](_0x7a9b4a['diffData'][_0x9fbb3b]['insertions'])),_0x5920d5=this['editor']['editing']['view']['document'],_0x2cf8f5=new _0x5e83c3(_0x5920d5,_0x490efc['map'](_0x51f3a5=>this['_getViewFromDiffObj'](_0x51f3a5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x43cf35[_0x9fbb3b]=this['editor']['data']['processor']['toData'](_0x2cf8f5),this['editor']['data']['processor']['useFillerType']('default');}return _0x43cf35;}['getRevisionRootsAttributes'](_0xb28632){const _0x5b81c3={};for(const _0x25c2d8 in _0xb28632['diffData'])_0xb28632['diffData'][_0x25c2d8]['attachChange']&&!_0xb28632['diffData'][_0x25c2d8]['attachChange']['isAttached']||(_0x5b81c3[_0x25c2d8]=_0xb28632['diffData'][_0x25c2d8]['attributesAfter']||{});return _0x5b81c3;}['_getTypeCharForViewElement'](_0x248324){return this['_viewClassToTypeChar']['get'](_0x248324['constructor']);}['_getViewFromDiffObj'](_0x2aefdb,_0x3ec44f){const _0x378dcd=this['editor']['editing']['view']['document'];if('string'==typeof _0x2aefdb)return new _0x950840(_0x378dcd,_0x2aefdb);{let _0x3ca37b,_0x36f7fe;_0x36f7fe='u'==_0x2aefdb['type']||'r'==_0x2aefdb['type']?[]:_0x2aefdb['children']['map'](_0x583e24=>this['_getViewFromDiffObj'](_0x583e24,_0x3ec44f));const _0x1c3a7f=this['_typeCharToViewClass']['get'](_0x2aefdb['type'])||_0x24cd19,_0x3c32b5=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3ca37b=new _0x1c3a7f(_0x378dcd,_0x2aefdb['name'],_0x2aefdb['attributes'],_0x36f7fe),'u'==_0x2aefdb['type']&&_0x2aefdb['children'][0x0]){const _0x3e1e9d=_0x2aefdb['children'][0x0];if(_0x3ca37b['render']=function(_0x1b425a){const _0x2a2775=_0x1b425a['createElement']('div');return _0x2a2775['innerHTML']=_0x3e1e9d,_0x2a2775['childNodes'][0x0];},_0x3ec44f){const _0x480420=new _0x5e83c3(_0x378dcd);_0x480420['_appendChild'](_0x3ca37b);const _0x286f5d=Array['from'](_0x3c32b5['viewChildrenToDom'](_0x480420,{'bind':!0x1})),_0x48f28f=_0x3c32b5['domDocument']['createElement']('div');_0x48f28f['append'](..._0x286f5d),_0x3ca37b=Array['from'](_0x3c32b5['domChildrenToView'](_0x48f28f))[0x0];}}else{if('r'==_0x2aefdb['type']&&_0x2aefdb['children'][0x0]){const _0x320727=_0x2aefdb['children'][0x0];if(_0x3ca37b['render']=function(_0x14a3b9){_0x14a3b9['innerHTML']=_0x320727;},_0x3ec44f){const _0xd9a02d=new _0x5e83c3(_0x378dcd);_0xd9a02d['_appendChild'](_0x3ca37b);const _0x596a4b=Array['from'](_0x3c32b5['viewChildrenToDom'](_0xd9a02d,{'bind':!0x1})),_0x1d589d=_0x3c32b5['domDocument']['createElement']('div');_0x1d589d['append'](..._0x596a4b);const _0x529665=Array['from'](_0x3c32b5['domChildrenToView'](_0x1d589d));_0x529665['length']>0x1?_0x3ca37b['_appendChild'](_0x529665):_0x3ca37b=_0x529665[0x0];}}}if(_0x2aefdb['customProperties']){for(const [_0x411b75,_0x33e791]of _0x2aefdb['customProperties'])_0x3ca37b['_setCustomProperty'](_0x411b75,_0x33e791);}const _0x16b600=void 0x0===_0x2aefdb['fillerOffset']?null:_0x2aefdb['fillerOffset'];return null!==_0x16b600&&(_0x3ca37b['getFillerOffset']=()=>_0x16b600),_0x3ca37b;}}['_makeModelFromViewString'](_0x427b4f){const _0x10b069=JSON['parse'](_0x427b4f),_0x1fb6ab=this['editor']['editing']['view']['document'],_0x5397b9=new _0x5e83c3(_0x1fb6ab,_0x10b069['map'](_0x52ec06=>this['_getViewFromDiffObj'](_0x52ec06,!0x0)));return this['editor']['data']['toModel'](_0x5397b9);}['_removeRevisionMarkers'](_0x15cae9){return(_0x15cae9=_0x15cae9['filter'](_0x72c92e=>!_0x72c92e['name']||'revision-start'!==_0x72c92e['name']&&'revision-end'!==_0x72c92e['name']))['forEach'](_0x74c3=>{'string'!=typeof _0x74c3&&(_0x74c3['children']=this['_removeRevisionMarkers'](_0x74c3['children']),_0x74c3['attributes']=_0x74c3['attributes']['filter'](_0x3b4a92=>!_0x3b4a92[0x0]['startsWith']('data-revision-')));}),_0x15cae9;}}function g(_0x3ca2a9,_0x5ad601,_0x21fbc8){const t=_0x3ca2a9['t'];switch(_0x5ad601){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'},_0x21fbc8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x21fbc8);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'';}}class u extends _0x23aa96{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5d7e11,I,V,_0x3a8db9];}constructor(_0x36b675){super(_0x36b675),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1929f8=_0x16f76d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1929f8},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x125891=this['repository']['getRevision'](0x0),_0x354235=_0x125891&&null===_0x125891['creator']?_0x125891:null;if(this['_continueCurrentRevision']=!!_0x354235&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x96f824=this['_source']['getCurrentRevisionId'](),_0x1f9a70=this['repository']['getRevision'](_0x96f824);if(_0x1f9a70)this['_startingVersion']=_0x1f9a70['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x975c5d=this['_source']['history']['_operations']['find'](_0x4d092f=>!_0x4d092f['_isInit']),_0x4ea5e9=_0x975c5d?_0x975c5d['baseVersion']:this['_source']['history']['version'];_0x125891?(_0x125891['toVersion']<_0x4ea5e9&&_0x125891['_update']({'toVersion':_0x4ea5e9}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x354235['id'],this['_startingVersion']=_0x354235['fromVersion']):(this['_startingVersion']=_0x125891['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4ea5e9,this['_continueCurrentRevision']=!0x1);}}else _0x354235&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x354235['toVersion'],this['editor']['model']['document']['history']['version']),_0x354235['fromVersion']===_0x354235['toVersion']?(0x0!==_0x354235['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x354235['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x354235['id'],this['_startingVersion']=_0x354235['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',_0x4ffe9f=>!_0x4ffe9f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xa1c769=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x91c835;for(const _0x10666a in _0xa1c769){const _0xc73efe=_0x10666a,_0x17d67b=_0xa1c769[_0xc73efe];if('revisionHistoryLicenseKeyValid'==_0x17d67b||'revisionHistoryLicenseKeyInvalid'==_0x17d67b||'revisionHistoryLicenseKeyExpired'==_0x17d67b||'revisionHistoryLicenseKeyDomainLimit'==_0x17d67b||'revisionHistoryLicenseKeyNotAllowed'==_0x17d67b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x17d67b||'revisionHistoryLicenseKeyTrialLimit'==_0x17d67b||'revisionHistoryLicenseKeyUsageLimit'==_0x17d67b){delete _0xa1c769[_0xc73efe],_0x91c835=_0x17d67b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x91c835&&_0xa1c769['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x91c835&&_0xa1c769['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x91c835&&_0xa1c769['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x91c835&&_0xa1c769['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x91c835&&_0xa1c769['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x91c835&&_0xa1c769['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x91c835&&_0xa1c769['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x31a93b=this['repository']['getRevision'](0x0),_0x15ba9f=await this['getRevisionDocumentData'](_0x31a93b),_0x30340a=await this['getRevisionRootsAttributes'](_0x31a93b);this['_replaceEditorDataWithRevisionData'](_0x15ba9f,_0x30340a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x47ffcf){this['_source']=_0x47ffcf;}async['update'](){const _0x3a6804=await this['_source']['getLatestVersion']();if(_0x3a6804>this['currentRevision']['toVersion']){await this['_loadState']();const _0x404b76=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3a6804});_0x404b76['authors']=_0x404b76['authorsIds']['map'](_0x16ade1=>this['editor']['plugins']['get']('Users')['getUser'](_0x16ade1)),this['currentRevision']['_update'](_0x404b76);}}async['saveRevision'](_0x2c0404={},_0x3b9560=null){const _0x575743=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3b9560>this['currentRevision']['toVersion']&&(_0x3b9560=null),null===_0x3b9560&&(_0x3b9560=await this['_source']['getLatestVersion']());const _0x342a58=this['_getFromVersion'](_0x3b9560),_0x78497f=this['buildRevisionData']({'from':_0x342a58,'to':_0x3b9560});if(this['currentRevision']['toVersion']<_0x3b9560){const _0x5136ca=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3b9560,'to':_0x3b9560});_0x5136ca['authors']=[],_0x5136ca['authorsIds']=[],_0x5136ca['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5136ca,!0x0),delete _0x5136ca['authors'],_0x575743['push'](_0x5136ca);}_0x2c0404['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c0404['name']=_0x2c0404['name']||null,_0x2c0404['id']=_0x2c0404['id']||_0x16f76d(),_0x2c0404={..._0x2c0404,..._0x78497f};const _0x4ac0ea=this['addRevisionData'](_0x2c0404);_0x575743['push'](_0x2c0404);const _0x2dd25e=this['repository']['getIndex'](_0x4ac0ea);if(0x0!==_0x2dd25e){const _0x1dc472=this['repository']['getRevision'](_0x2dd25e-0x1);if(_0x1dc472['fromVersion']!==_0x3b9560){const _0x407102=this['_revisionDataBuilder']['getData'](_0x3b9560,_0x1dc472['toVersion']),_0x590fa0={'id':_0x1dc472['id'],'diffData':_0x407102['diffData'],'authorsIds':_0x407102['authorsIds'],'authors':_0x407102['authorsIds']['map'](_0x125be0=>this['editor']['plugins']['get']('Users')['getUser'](_0x125be0)),'fromVersion':_0x3b9560};_0x1dc472===this['currentRevision']&&(_0x590fa0['createdAt']=new Date(_0x2c0404['createdAt']['getTime']()+0xa)),_0x1dc472['_update'](_0x590fa0,!0x0),delete _0x590fa0['authors'],_0x575743['push'](_0x590fa0);}}if(this['adapter']){for(const _0x53e16b of _0x575743)this['_bufferUpdate'](_0x53e16b['id'],_0x53e16b,!0x0);this['sendBufferedUpdates']();}return _0x4ac0ea;}['addRevisionData'](_0xb014b4){const _0x615125=this['repository']['createRevision'](_0xb014b4);return this['adapter']&&_0x615125['on']('_update',(_0x2521a6,_0x227ce3,_0xb91669)=>{_0xb91669||(this['_bufferUpdate'](_0x227ce3['id'],_0x227ce3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x615125,this['_findInsertionIndex'](_0x615125)),_0x615125;}async['getRevisionDocumentData'](_0x3796aa){return await this['_utils']['loadRevisionData'](_0x3796aa,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3796aa);}async['getRevisionRootsAttributes'](_0x3edd81){return await this['_utils']['loadRevisionData'](_0x3edd81,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3edd81);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x160da4=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2d5844=0x0;_0x2d5844<_0x160da4['length'];_0x2d5844++){const _0xe83c06=_0x160da4[_0x2d5844];let _0x273ee6=!0x1;for(const _0x2493d5 of Object['keys'](_0xe83c06))void 0x0===_0xe83c06[_0x2493d5]?delete _0xe83c06[_0x2493d5]:'id'!==_0x2493d5&&(_0x273ee6=!0x0);_0x273ee6||(_0x160da4[_0x2d5844]=null);}if(_0x160da4=_0x160da4['filter'](_0x43ee5c=>null!==_0x43ee5c),!_0x160da4['length'])return;for(let _0x470810=0x0;_0x470810<_0x160da4['length'];_0x470810++){const _0x5e8de7=_0x160da4[_0x470810];void 0x0!==_0x5e8de7['fromVersion']&&void 0x0===_0x5e8de7['toVersion']&&(_0x5e8de7['toVersion']=this['repository']['getRevision'](_0x5e8de7['id'])['toVersion']),void 0x0!==_0x5e8de7['toVersion']&&void 0x0===_0x5e8de7['fromVersion']&&(_0x5e8de7['fromVersion']=this['repository']['getRevision'](_0x5e8de7['id'])['fromVersion']);}const _0x2b94c9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x160da4,_0x2b94c9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3634fe=>{if(_0x3634fe){for(const _0x2b6304 of _0x3634fe)this['setRevisionData']({'id':_0x2b6304['id'],'createdAt':_0x2b6304['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x26db11=null,from:_0x1a2358=null,to:_0x1e158a=null}){_0x1a2358=null!==_0x1a2358?_0x1a2358:_0x26db11['fromVersion'],_0x1e158a=null!==_0x1e158a?_0x1e158a:_0x26db11['toVersion'];const _0x3e8e01=this['_revisionDataBuilder']['getData'](_0x1a2358,_0x1e158a),_0x2d4a60={'diffData':_0x3e8e01['diffData'],'authorsIds':_0x3e8e01['authorsIds'],'fromVersion':_0x1a2358,'toVersion':_0x1e158a};if(!_0x26db11||_0x1e158a!==_0x26db11['toVersion']){const _0x12c3b1=_0x1e158a-0x1,_0x33b3d6=this['_source']['history']['getOperation'](_0x12c3b1);_0x2d4a60['createdAt']=_0x33b3d6&&_0x33b3d6['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1a2358===this['_loadedStateData']['fromVersion']){for(const _0x4a4d90 of this['_loadedStateData']['authors'])_0x2d4a60['authorsIds']['includes'](_0x4a4d90['id'])||_0x2d4a60['authorsIds']['push'](_0x4a4d90['id']);}return _0x2d4a60;}['_bufferUpdate'](_0x3ad30a,_0x2eed61,_0x2f45be){if(this['_bufferedUpdates']['has'](_0x3ad30a)){const _0x2c783a=this['_bufferedUpdates']['get'](_0x3ad30a);_0x2eed61=_0x2f45be?{..._0x2c783a,..._0x2eed61}:{..._0x2eed61,..._0x2c783a};}this['_bufferedUpdates']['set'](_0x3ad30a,_0x2eed61);}['setRevisionData'](_0x2d8ce7){const _0x4dd7d6=this['repository']['getRevision'](_0x2d8ce7['id']);if(_0x2d8ce7['createdAt']&&(_0x2d8ce7['createdAt']=new Date(_0x2d8ce7['createdAt'])),_0x2d8ce7['authorsIds']){const _0x35301d=this['editor']['plugins']['get']('Users');_0x2d8ce7['authors']=_0x2d8ce7['authorsIds']['map'](_0x8ea2a=>_0x35301d['getUser'](_0x8ea2a));}_0x4dd7d6['_update'](_0x2d8ce7,!0x0);}['_createInitialRevision'](_0x10b027){const _0x3bdf75=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3bdf75)this['_initialRevisionId']=_0x3bdf75['id'];else{const _0x5f482e=!this['editor']['model']['document']['roots']['find'](_0x264365=>this['editor']['model']['hasContent'](_0x264365)),_0x3682a5=this['editor']['plugins']['get']('Users')['me']['id'],_0x2e0f92=g(this['editor']['locale'],_0x5f482e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x10b027,'to':_0x10b027,'id':this['_initialRevisionId'],'name':_0x2e0f92,'creatorId':_0x3682a5});}}['_createCurrentRevision'](_0x12cdbf){const _0x20099f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x20099f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x12cdbf,'to':_0x12cdbf,'id':_0x20099f,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x2b0736,_0xd21086){let _0x44acd2=this['editor']['config']['get']('initialData'),_0x431156=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x44acd2){_0x44acd2={};for(const _0x383f8a of this['editor']['model']['document']['getRootNames']())_0x44acd2[_0x383f8a]='';}if('string'==typeof _0x44acd2&&(_0x44acd2={'main':_0x44acd2}),void 0x0===_0x431156){_0x431156={};for(const _0x1990d4 of this['editor']['model']['document']['getRootNames']())_0x431156[_0x1990d4]={};}let _0xf46a81=!0x1;const _0x520ce2=Object['keys'](_0x44acd2),_0x17b8e3=Object['keys'](_0x2b0736);for(const _0x6322d of _0x520ce2){if(_0x44acd2[_0x6322d]!==_0x2b0736[_0x6322d]&&''!==_0x44acd2[_0x6322d]['trim']()){_0xf46a81=!0x0;break;}if(!_0x29102d(_0x431156[_0x6322d],_0xd21086[_0x6322d])&&Object['keys'](_0x431156[_0x6322d])['length']>0x0){_0xf46a81=!0x0;break;}}_0xf46a81||(_0xf46a81=_0x17b8e3['some'](_0x497c67=>!this['editor']['model']['document']['getRoot'](_0x497c67))),_0xf46a81&&_0x471a3e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x44acd2,'editorRootsAttributes':_0x431156,'revisionData':_0x2b0736,'revisionRootsAttributes':_0xd21086}),this['editor']['config']['set']('initialData',_0x2b0736),this['editor']['config']['set']('rootsAttributes',_0xd21086);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2596df=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2596df['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xcd698e){const _0x4286ad=this['repository']['getRevisions']();_0x4286ad['reverse']();let _0x269d76=0x0;for(;_0x269d76<_0x4286ad['length'];){const _0x2c9b36=_0x4286ad[_0x269d76];if(_0x2c9b36===this['currentRevision']){_0x269d76++;continue;}if(_0x2c9b36['id']===this['_initialRevisionId'])break;const _0x9b1470=_0xcd698e['toVersion']-_0x2c9b36['toVersion']||_0xcd698e['fromVersion']-_0x2c9b36['fromVersion'];if(_0x9b1470>0x0)break;if(_0x9b1470<0x0)_0x269d76++;else{if(!_0xcd698e['creator']&&_0x2c9b36['creator'])break;if(_0x2c9b36['creator']||!_0xcd698e['creator']){if(_0xcd698e['createdAt']>_0x2c9b36['createdAt'])break;_0x269d76++;}else _0x269d76++;}}return _0x269d76;}['_getFromVersion'](_0x4a7f1b){const _0x5dc957=this['repository']['getRevisions']();_0x5dc957['reverse'](),_0x5dc957['shift']();const _0x1c3bf7=_0x5dc957['find'](_0xf67140=>_0xf67140['toVersion']<=_0x4a7f1b)['toVersion'];return _0x1c3bf7<this['_startingVersion']?this['_startingVersion']:_0x1c3bf7;}['_makeRevision']({name:_0x5c520c,from:_0x3456a1,to:_0x1993b5,creatorId:_0x722a7b,id:_0x1fac11}){const _0x8e70a5=this['buildRevisionData']({'from':_0x3456a1,'to':_0x1993b5});_0x8e70a5['name']=_0x5c520c,_0x8e70a5['creatorId']=_0x722a7b,_0x8e70a5['id']=_0x1fac11;const _0xa3d718=this['addRevisionData'](_0x8e70a5);return this['adapter']&&this['_bufferUpdate'](_0x8e70a5['id'],_0x8e70a5,!0x0),_0xa3d718;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x52e288){this['editor']=_0x52e288,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'](_0x1b2980){this['source']=_0x1b2980;const _0x729a94=new Map(),_0x2ed17b=new Map(),_0x3b0c60=this['editor']['model']['document']['roots']['map'](_0x2f5368=>_0x2f5368['rootName']);for(const _0x4aaca9 of _0x3b0c60){const _0x2f21fb=this['editor']['model']['document']['getRoot'](_0x4aaca9),_0x2d2d9d=N(_0x2f21fb);_0x729a94['set'](_0x4aaca9,_0x2d2d9d),_0x2ed17b['set'](_0x4aaca9,Object['fromEntries'](_0x2f21fb['getAttributes']()));}const _0xcfaa78=Array['from'](this['editor']['model']['markers'])['map'](_0x26b498=>[_0x26b498['name'],_0x26b498['getRange']()]),_0x254be8=this['source']['version'];this['_saveMetaData'](_0x254be8,_0x729a94,_0xcfaa78,_0x2ed17b),this['_startingRevisionId']=this['_revisionId'];const _0x94fc1e=new Map(),_0x2adff0=new Map();for(const _0x28bf3d of _0x3b0c60){const _0xffe773=P(_0x28bf3d);_0x94fc1e['set'](_0x28bf3d,_0xffe773),_0x2adff0['set'](_0x28bf3d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x94fc1e,[],_0x2adff0);}['getData'](_0xcae99f,_0x10dccf){if(this['_lastFrom']===_0xcae99f&&this['_lastTo']<=_0x10dccf)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x10dccf,!0x0);else{if(!this['_savedMetaData']['has'](_0xcae99f)){const _0x2e6f60=this['_getPreviousFrom'](_0xcae99f);this['_calculateMetaData'](_0x2e6f60,_0xcae99f,!0x1);}this['_calculateMetaData'](_0xcae99f,_0x10dccf,!0x0);}return this['_lastFrom']=_0xcae99f,this['_lastTo']=_0x10dccf,this['_getState']();}['loadState'](_0x2db5ae){const _0xd4449a=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2db5ae['fromVersion'],this['_lastTo']=_0x2db5ae['toVersion'];for(const _0x44c407 in _0x2db5ae['diffData']){const _0x511d90=_0x2db5ae['diffData'][_0x44c407]['attachChange'],_0x515cf5=_0x18fd17(_0x2db5ae['diffData'][_0x44c407]['attributesBefore'])||{},_0x487910=_0xd4449a['_makeModelFromViewString'](_0x2db5ae['diffData'][_0x44c407]['deletions']);_0x487910['rootName']=_0x44c407,_0x487910['_isAttached']=!_0x511d90||!_0x511d90['isAttached'],_0x487910['isAttached']=()=>_0x487910['_isAttached'],this['_baseRoots']['set'](_0x44c407,_0x487910),this['_baseRootsAttributes']['set'](_0x44c407,_0x515cf5),_0x511d90&&this['_touchedRoots']['set'](_0x44c407,_0x511d90);const _0x5197c1=this['_makeIdsRoot'](_0x487910);this['_baseIdsRoots']['set'](_0x44c407,_0x5197c1);for(const [_0x3e196d,_0x29debe]of _0x487910['markers']){if(!_0x3e196d['startsWith']('revision:'))continue;const _0xd66c2d=_0x3e196d['split'](':')[0x2];for(const _0xc3a7d3 of _0x29debe['getWalker']({'singleCharacters':!0x0})){const _0x381e34=this['_getVidAttributeName'](_0xc3a7d3),_0x14a65f='elementEnd'==_0xc3a7d3['type']?_0xc3a7d3['previousPosition']['path']['slice'](0x0,-0x1):_0xc3a7d3['previousPosition']['path'],_0xd28265=_0x5197c1['getNodeByPath'](_0x14a65f)['getAttribute'](_0x381e34);this['_touched']['set'](_0xd28265,{'userId':_0xd66c2d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2db1a4=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x225464=>!this['_touched']['has'](_0x225464));let _0xce2f7f=0x0;const _0x50f095=new Map();for(const _0xc9ee11 in _0x2db5ae['diffData']){const _0x54c2fe=_0x2db5ae['diffData'][_0xc9ee11]['attachChange'],_0x4cc100=_0x18fd17(_0x2db5ae['diffData'][_0xc9ee11]['attributesAfter'])||{},_0x240870=_0xd4449a['_makeModelFromViewString'](_0x2db5ae['diffData'][_0xc9ee11]['insertions']);_0x240870['rootName']=_0xc9ee11,_0x240870['_isAttached']=!_0x54c2fe||_0x54c2fe['isAttached'],_0x240870['isAttached']=()=>_0x240870['_isAttached'],this['_diffRoots']['set'](_0xc9ee11,_0x240870),this['_diffRootsAttributes']['set'](_0xc9ee11,_0x4cc100);const _0x53869a=this['_makeIdsRoot'](_0x240870,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xc9ee11,_0x53869a),_0x50f095['set'](_0xc9ee11,_0x240870['isAttached']()?_0x4cc100:{});for(const [_0x313236,_0x38ebe8]of _0x240870['markers']){if(!_0x313236['startsWith']('revision:'))continue;const _0x340a90=_0x313236['split'](':')[0x2];for(const _0xa375ca of _0x38ebe8['getWalker']({'singleCharacters':!0x0})){const _0x36796d=this['_getVidAttributeName'](_0xa375ca),_0x2b5f44=this['_revisionId']++,_0x31c28a='elementEnd'==_0xa375ca['type']?_0xa375ca['previousPosition']['path']['slice'](0x0,-0x1):_0xa375ca['previousPosition']['path'];_0x53869a['getNodeByPath'](_0x31c28a)['_setAttribute'](_0x36796d,_0x2b5f44),this['_touched']['set'](_0x2b5f44,{'userId':_0x340a90});}}for(const _0x32904b of this['editor']['model']['createRangeIn'](_0x240870)['getWalker']({'singleCharacters':!0x0})){const _0x13d141=this['_getVidAttributeName'](_0x32904b),_0x1a0b45='elementEnd'==_0x32904b['type']?_0x32904b['previousPosition']['path']['slice'](0x0,-0x1):_0x32904b['previousPosition']['path'],_0x2dc2d9=_0x53869a['getNodeByPath'](_0x1a0b45);_0x2dc2d9['getAttribute'](_0x13d141)>0x0||_0x2dc2d9['_setAttribute'](_0x13d141,_0x2db1a4[_0xce2f7f++]);}for(const [_0x841997,_0x541bc1]of _0x240870['markers'])_0x841997['startsWith']('revision:')||this['_markers']['set'](_0x841997,_0x541bc1);}const _0x5c2c5c=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5c2c5c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c2c5c,0x1));const _0x159f0e=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x159f0e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x159f0e,0x1));const _0x248262=Array['from'](this['_diffRoots'])['map'](([_0x3c8234,_0x23c5e3])=>[_0x3c8234,N(_0x23c5e3)]);this['_saveMetaData'](this['_lastTo'],_0x248262,this['_markers'],_0x50f095);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5558c2,_0x55cf3e,_0x2e57b2,_0x2871a3){const _0x3d9633=new Map(_0x55cf3e),_0x8fcf8e=new Map(_0x18fd17(_0x2871a3)),_0x13a0d9=new Map();for(const [_0x200e83,_0xbedf3]of _0x2e57b2)_0x13a0d9['set'](_0x200e83,{'start':_0xbedf3['start']['clone'](),'end':_0xbedf3['end']['clone'](),'rootName':_0xbedf3['root']['rootName']});this['_savedMetaData']['set'](_0x5558c2,{'roots':_0x3d9633,'markers':_0x13a0d9,'rootsAttributes':_0x8fcf8e});}['_removeMetaData'](_0x37b10a){this['_savedMetaData']['delete'](_0x37b10a);}['_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'](_0x3f5030,_0x1d453e=null){let _0x15dc7d=null;_0x3f5030['is']('documentFragment')||(_0x15dc7d=new ut(_0x3f5030['name'],{'vid_start':null===_0x1d453e?this['_revisionId']++:_0x1d453e++}));const _0x2bad0b=[];for(const _0x312b56 of _0x3f5030['getChildren']())if(_0x312b56['is']('element')){_0x2bad0b['push'](this['_makeIdsRoot'](_0x312b56,_0x1d453e));const _0x48ab77=_0x2bad0b[_0x2bad0b['length']-0x1];null!==_0x1d453e&&(_0x1d453e=_0x48ab77['is']('element','$text')?_0x48ab77['getAttribute']('vid')+0x1:_0x48ab77['getAttribute']('vid_end')+0x1);}else{for(let _0xdbd253=0x0;_0xdbd253<_0x312b56['offsetSize'];_0xdbd253++)_0x2bad0b['push'](new ut('$text',{'vid':null===_0x1d453e?this['_revisionId']++:_0x1d453e++}));}if(_0x3f5030['is']('documentFragment')){const _0x595dec=P(_0x3f5030['rootName']);return _0x595dec['_insertChild'](0x0,_0x2bad0b),_0x595dec;}return _0x15dc7d['_setAttribute']('vid_end',null===_0x1d453e?this['_revisionId']++:_0x1d453e++),_0x15dc7d['_insertChild'](0x0,_0x2bad0b),_0x15dc7d;}['_calculateMetaData'](_0x8b25f7,_0x3f5a52,_0x18463c){this['_reset']();const {roots:_0x2d8551,markers:_0x12460c,rootsAttributes:_0x5c78c5}=this['_savedMetaData']['get'](_0x8b25f7);this['_baseRoots']=new Map(_0x2d8551),this['_baseRootsAttributes']=new Map(_0x18fd17(_0x5c78c5));for(const [_0x13f2bf,_0x3344d8]of this['_baseRoots'])if('$graveyard'!==_0x13f2bf&&(this['_diffRoots']['set'](_0x13f2bf,N(_0x3344d8)),this['_diffRootsAttributes']=new Map(_0x18fd17(_0x5c78c5)),_0x18463c)){const _0x495db4=this['_revisionId'];this['_idsRoots']['set'](_0x13f2bf,this['_makeIdsRoot'](_0x3344d8)),this['_baseIdsRoots']['set'](_0x13f2bf,this['_makeIdsRoot'](_0x3344d8,_0x495db4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x18463c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x370c01,_0x490970]of _0x12460c){const _0x4ccff2=this['_baseRoots']['get'](_0x490970['rootName']),_0x190427=this['_diffRoots']['get'](_0x490970['rootName']),_0x1df840=new ft(this['_fixPosition'](_0x490970['start'],_0x4ccff2),this['_fixPosition'](_0x490970['end'],_0x4ccff2)),_0x35c006=this['_fixRange'](_0x1df840,_0x190427);_0x4ccff2['markers']['set'](_0x370c01,_0x1df840),this['_markers']['set'](_0x370c01,_0x35c006);}this['_applyOperations'](_0x8b25f7,_0x3f5a52,_0x18463c);}['_applyOperations'](_0x9e82e,_0x49abc6,_0x13ca4d){for(const _0x3884ed of this['source']['getOperations'](_0x9e82e,_0x49abc6))this['_handleOperation'](_0x3884ed,_0x13ca4d);for(const _0x552393 of this['_diffRoots']['values']())_0x552393['markers']['clear']();for(const [_0x343325,_0x563f6c]of this['_markers']){this['_diffRoots']['get'](_0x563f6c['root']['rootName'])['markers']['set'](_0x343325,_0x563f6c['clone']());}const _0x449643=new Map(),_0x3b71b2=new Map();for(const [_0x342307,_0x4cd91e]of this['_diffRoots'])_0x449643['set'](_0x342307,N(_0x4cd91e)),_0x3b71b2['set'](_0x342307,this['_diffRootsAttributes']['get'](_0x342307));this['_saveMetaData'](_0x49abc6,_0x449643,this['_markers'],_0x3b71b2);}['_getPreviousFrom'](_0x4b1c6e){const _0x5a653a=Array['from'](this['_savedMetaData']['keys']());_0x5a653a['sort']((_0x18c27a,_0x29e8af)=>_0x18c27a-_0x29e8af),_0x5a653a['reverse']();for(const _0x5b4ac9 of _0x5a653a)if(_0x5b4ac9<_0x4b1c6e)return _0x5b4ac9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x242a7b,_0x2264cf){const _0x40d778=Array['from'](_0x2264cf['markers'])['map'](([_0xe7d794,_0x9ac120])=>[_0xe7d794,this['_fixRange'](_0x9ac120,_0x242a7b)]);_0x242a7b['markers']=new Map(_0x40d778);}['_transformMarkers'](_0x269e80){for(const _0x5dc72b of this['_markers']['values']()){const _0x319ef7=_0x5dc72b['getTransformedByOperation'](_0x269e80),_0x917148=ft['_createFromRanges'](_0x319ef7);_0x5dc72b['start']=_0x917148['start'],_0x5dc72b['end']=_0x917148['end'];}}['_handleOperation'](_0x384e2d,_0x28fa0c){if('addRoot'!=_0x384e2d['type']&&'detachRoot'!=_0x384e2d['type']){if('insert'==_0x384e2d['type']){const _0x52799b=_0x384e2d['position']['root']['rootName'];this['_diffRoots']['has'](_0x52799b)||(this['_diffRoots']['set'](_0x52799b,P(_0x52799b,!0x0)),this['_diffRootsAttributes']['set'](_0x52799b,{}),_0x28fa0c&&this['_idsRoots']['set'](_0x52799b,P(_0x52799b,!0x0)));}else{if('addRootAttribute'==_0x384e2d['type']||'removeRootAttribute'==_0x384e2d['type']||'changeRootAttribute'==_0x384e2d['type'])return void this['_handleRootAttributeOperation'](_0x384e2d);'marker'==_0x384e2d['type']&&this['_handleMarkerOperation'](_0x384e2d);}if('marker'!==_0x384e2d['type']){const _0x59ea2a=this['_cloneOperation'](_0x384e2d,this['_diffRoots']);_0x59ea2a['_execute'](),this['_transformMarkers'](_0x59ea2a);}if(_0x28fa0c)switch(_0x384e2d['type']){case'insert':this['_handleInsertOperation'](_0x384e2d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x384e2d);break;case'merge':this['_handleMergeOperation'](_0x384e2d);break;case'split':this['_handleSplitOperation'](_0x384e2d);}}else this['_handleRootOperation'](_0x384e2d,_0x28fa0c);}['_cloneOperation'](_0x294fa3,_0x353776){const _0x1ebf57=_0x294fa3['clone']();return _0x1ebf57['_authorId']=_0x294fa3['_authorId'],this['_fixOperation'](_0x1ebf57,_0x353776),_0x1ebf57;}['_getBaseVids'](_0x40827c){return _0x40827c['map'](_0x44afb3=>{const _0x4f2beb=this['_getVidAttributeName'](_0x44afb3);return Number(_0x44afb3['item']['getAttribute'](_0x4f2beb));});}['_generateTape'](_0x2a5d75,_0x2790d1){if(_0x2a5d75['is']('element','$text'))_0x2790d1['push']({'item':_0x2a5d75,'type':'text'});else{_0x2a5d75['is']('element')&&_0x2790d1['push']({'item':_0x2a5d75,'type':'elementStart'});for(const _0x26d3e5 of _0x2a5d75['getChildren']())this['_generateTape'](_0x26d3e5,_0x2790d1);_0x2a5d75['is']('element')&&_0x2790d1['push']({'item':_0x2a5d75,'type':'elementEnd'});}return _0x2790d1;}['_getState'](){const _0x331ee4=new Map(this['_touched']),_0x329ede=new Map(_0x331ee4),_0x214dfb=new Map(),_0x1b068a={'insertions':{},'deletions':{}},_0x3ac61b={'insertions':{},'deletions':{}},_0xeb0c65=new Map(),_0x278651=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x278651['delete']('$graveyard');for(const _0x1a49bd of _0x278651){const _0x271003=this['_diffRoots']['get'](_0x1a49bd)||P(_0x1a49bd,!0x1),_0x34ce97=this['_baseRoots']['get'](_0x1a49bd)||P(_0x1a49bd,!0x1);_0x271003['isAttached']()||_0x34ce97['isAttached']()?(_0x1b068a['insertions'][_0x1a49bd]=N(_0x271003),_0x1b068a['deletions'][_0x1a49bd]=N(_0x34ce97),this['_copyMarkers'](_0x1b068a['deletions'][_0x1a49bd],_0x34ce97),this['_copyMarkers'](_0x1b068a['insertions'][_0x1a49bd],_0x271003),_0x3ac61b['insertions'][_0x1a49bd]=this['_generateTape'](this['_idsRoots']['get'](_0x1a49bd),[]),_0x3ac61b['deletions'][_0x1a49bd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1a49bd)||P(_0x1a49bd,!0x1),[])):_0x278651['delete'](_0x1a49bd);}for(const _0x543165 of _0x278651){const _0x4fc63b=_0x3ac61b['insertions'][_0x543165];for(const _0x564c18 of _0x4fc63b){const _0x1774fd=this['_getVidAttributeName'](_0x564c18),_0x4de180=_0x564c18['item']['getAttribute'](_0x1774fd);_0x329ede['delete'](_0x4de180),_0x4de180>=this['_startingRevisionId']&&_0x214dfb['set'](_0x4de180,_0x331ee4['get'](_0x4de180));}}for(const _0x46b512 of _0x278651){const _0x5e7cd1=_0x3ac61b['insertions'][_0x46b512],_0x1d0a17=this['_getBaseVids'](_0x3ac61b['deletions'][_0x46b512]);let _0x3b0dab=0x0;for(const _0x59c633 of _0x5e7cd1){const _0x348873=this['_getVidAttributeName'](_0x59c633),_0x9d7440=_0x59c633['item']['getAttribute'](_0x348873);if(!_0x214dfb['has'](_0x9d7440)&&!_0xeb0c65['has'](_0x9d7440)){if(_0x329ede['has'](_0x9d7440))_0x3b0dab++;else{if(_0x9d7440!=_0x1d0a17[_0x3b0dab]){const _0x5b6f27=_0x331ee4['get'](_0x9d7440)||_0x331ee4['get'](_0x1d0a17[_0x3b0dab]);for(;_0x9d7440!=_0x1d0a17[_0x3b0dab];)_0x329ede['has'](_0x1d0a17[_0x3b0dab])||(_0xeb0c65['set'](_0x1d0a17[_0x3b0dab],_0x5b6f27),_0x331ee4['set'](_0x1d0a17[_0x3b0dab],_0x5b6f27)),_0x3b0dab++;}_0x3b0dab++;}}}}for(const _0x45522a of _0x278651){const _0x5e02c2=_0x3ac61b['insertions'][_0x45522a];for(const _0x12d627 of _0x5e02c2){const _0x3bdfbf=this['_getVidAttributeName'](_0x12d627),_0x50659b=_0x12d627['item']['getAttribute'](_0x3bdfbf);if(_0xeb0c65['has'](_0x50659b)){const _0x5ad017=_0xeb0c65['get'](_0x50659b);_0x329ede['has'](_0x50659b)||_0x329ede['set'](_0x50659b,{..._0x5ad017}),_0x214dfb['set'](_0x50659b,{..._0x5ad017});}}}for(const _0x1daef9 of _0x329ede['keys']())_0x1daef9>=this['_startingRevisionId']&&_0x329ede['delete'](_0x1daef9);const _0x61a48b=new Map();for(const _0x2c0319 of _0x278651){let _0x48cb7c=_0x3ac61b['insertions'][_0x2c0319];for(const _0x5b4635 of _0x48cb7c)if(_0x5b4635['item']['is']('element','tableCell')){const _0x50e248=this['_getVidAttributeName'](_0x5b4635),_0x4e5a94=_0x5b4635['item']['getAttribute'](_0x50e248);if(_0x214dfb['has'](_0x4e5a94)){const _0x386d7a=_0x5b4635['item']['parent']['parent']['getAttribute']('vid_start'),_0x1e80e8=_0x61a48b['get'](_0x386d7a)||new Set();_0x1e80e8['add'](_0x214dfb['get'](_0x4e5a94)['userId']),_0x61a48b['set'](_0x386d7a,_0x1e80e8);}}_0x48cb7c=_0x3ac61b['deletions'][_0x2c0319];for(const _0x25c89b of _0x48cb7c)if(_0x25c89b['item']['is']('element','tableCell')){const _0x1d0980=this['_getVidAttributeName'](_0x25c89b),_0x4122f8=_0x25c89b['item']['getAttribute'](_0x1d0980);if(_0x329ede['has'](_0x4122f8)){const _0x4a33d6=_0x25c89b['item']['parent']['parent']['getAttribute']('vid_start'),_0x44fae9=_0x61a48b['get'](_0x4a33d6)||new Set();_0x44fae9['add'](_0x329ede['get'](_0x4122f8)['userId']),_0x61a48b['set'](_0x4a33d6,_0x44fae9);}}for(const _0x4a3cf4 of _0x61a48b['keys']())(_0x214dfb['has'](_0x4a3cf4)||_0x329ede['has'](_0x4a3cf4))&&_0x61a48b['delete'](_0x4a3cf4);}for(const _0x3a49b1 of _0x278651){const _0x37adf9=_0x3ac61b['insertions'][_0x3a49b1];let _0x22a8e1=null,_0x29e733=null;for(const _0x18a83c of _0x37adf9){const _0x59b0d1=this['_getVidAttributeName'](_0x18a83c),_0x48faa9=_0x18a83c['item']['getAttribute'](_0x59b0d1),_0xe06b70=_0x61a48b['get'](_0x48faa9);_0xe06b70&&'elementStart'==_0x18a83c['type']&&(_0x22a8e1=Array['from'](_0xe06b70)[0x0],_0x29e733=_0x18a83c['item']['getAttribute']('vid_end')),_0x22a8e1&&(_0x329ede['set'](_0x48faa9,{'userId':_0x22a8e1}),_0x214dfb['set'](_0x48faa9,{'userId':_0x22a8e1})),_0x48faa9==_0x29e733&&(_0x22a8e1=null,_0x29e733=null);}}const _0x2d5b7c={},_0x47726e=new Set();for(const _0x3ebfea of _0x278651){const _0xfdfd3a=_0x1b068a['deletions'][_0x3ebfea],_0x244ee1=_0x1b068a['insertions'][_0x3ebfea];for(const {userId:_0x488147}of this['_touchedMarkers']['values']())null!==_0x488147&&_0x47726e['add'](_0x488147);for(const {userId:_0x4bdf59}of this['_touchedRoots']['values']())null!==_0x4bdf59&&_0x47726e['add'](_0x4bdf59);this['_markChanges'](_0x244ee1,_0x3ac61b['insertions'][_0x3ebfea],_0x214dfb,'insertion',_0x47726e),this['_markChanges'](_0xfdfd3a,_0x3ac61b['deletions'][_0x3ebfea],_0x329ede,'deletion',_0x47726e),_0x2d5b7c[_0x3ebfea]={'insertions':this['_prepareViewToSave'](_0x244ee1),'deletions':this['_prepareViewToSave'](_0xfdfd3a),'attachChange':this['_touchedRoots']['get'](_0x3ebfea)||null,'attributesBefore':_0x18fd17(this['_baseRootsAttributes']['get'](_0x3ebfea))||{},'attributesAfter':_0x18fd17(this['_diffRootsAttributes']['get'](_0x3ebfea))};}return{'diffData':_0x2d5b7c,'authorsIds':Array['from'](_0x47726e)};}['_processRootBeforeSave'](_0x6fa9a3){for(const [,_0x4bfd50]of _0x6fa9a3['markers']){const _0x5ebab8=_0x4bfd50['start']['getAncestors']()['filter'](_0x295a32=>'tableCell'==_0x295a32['name']);for(const _0x122b92 of _0x5ebab8)0x1==_0x122b92['childCount']&&_0x122b92['getChild'](0x0)['is']('element','paragraph')&&_0x122b92['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x36945b){this['_processRootBeforeSave'](_0x36945b);const _0x570dd7=this['editor']['data']['toView'](_0x36945b,{}),_0x2a1a64=Array['from'](_0x570dd7['getChildren']())['map'](_0x156e32=>this['_getViewJson'](_0x156e32));return JSON['stringify'](_0x2a1a64);}['_getViewJson'](_0x4df3c9){if(_0x4df3c9['is']('$text'))return _0x4df3c9['data'];{const _0x2e86b1=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xb60e78=_0x4df3c9,_0x64790=this['editor']['data']['htmlProcessor']['domConverter'],_0x2360bf={'type':_0x2e86b1['_getTypeCharForViewElement'](_0xb60e78),'name':_0xb60e78['name'],'attributes':Array['from'](_0xb60e78['getAttributes']()),'children':Array['from'](_0xb60e78['getChildren']())['map'](_0x12a3a9=>this['_getViewJson'](_0x12a3a9))};if(_0x4df3c9['is']('uiElement')&&'$comment'!=_0x4df3c9['name']){const _0x391806=_0x4df3c9['render'](_0x64790['domDocument'],_0x64790);_0x2360bf['children']['push'](_0x391806['outerHTML']);}else{if(_0x4df3c9['is']('rawElement')){const _0x37b6af=_0x64790['domDocument']['createElement'](_0xb60e78['name']);_0x4df3c9['render'](_0x37b6af,_0x64790),_0x2360bf['children']['push'](_0x37b6af['innerHTML']);}}const _0x20089a=Array['from'](_0xb60e78['getCustomProperties']());_0x20089a['length']>0x0&&(_0x2360bf['customProperties']=_0x20089a);const _0x2a2cc7=_0xb60e78['getFillerOffset']();return null!==_0x2a2cc7&&(_0x2360bf['fillerOffset']=_0x2a2cc7),_0x2360bf;}}['_markChanges'](_0x3c3bd8,_0x5386a2,_0x3d145c,_0x3545d0,_0x1bbeff){let _0x5503e7=null,_0x416946=null,_0x5b1ff2=0x0;const _0x1bb351=this['editor']['model'];for(let _0x167125=0x0;_0x167125<_0x5386a2['length'];_0x167125++){const _0x148f50=this['_getVidAttributeName'](_0x5386a2[_0x167125]),_0x18972b=_0x5386a2[_0x167125]['item']['getAttribute'](_0x148f50),_0xe01638=_0x3d145c['get'](_0x18972b),_0x3452df=_0x167125==_0x5386a2['length']-0x1;(!_0x5503e7&&_0xe01638&&(_0x5503e7=_0xe01638,_0x416946=_0x5386a2[_0x167125]),_0x5503e7&&(!_0xe01638||_0xe01638['userId']!=_0x5503e7['userId']))&&(_0x2d28e1(_0xe01638,F(_0x416946,_0x3c3bd8,_0x1bb351),F(_0x5386a2[_0x167125],_0x3c3bd8,_0x1bb351)),_0x5503e7=_0xe01638||null,_0x416946=_0xe01638?_0x5386a2[_0x167125]:null),_0x5503e7&&_0x3452df&&_0x2d28e1(_0xe01638,F(_0x416946,_0x3c3bd8,_0x1bb351),B(_0x5386a2[_0x167125],_0x3c3bd8,_0x1bb351));}function _0x2d28e1(_0x3b38c0,_0x427c85,_0x156ec4){const _0x1eb543=_0x5503e7['userId'],_0x3c4541='revision:'+_0x3545d0+':'+_0x1eb543+':'+_0x5b1ff2++,_0x39c2f6=_0x1bb351['createRange'](_0x427c85,_0x156ec4);_0x3c3bd8['markers']['set'](_0x3c4541,_0x39c2f6),null!==_0x1eb543&&_0x1bbeff['add'](_0x1eb543);}}['_getVidAttributeName'](_0xd5f070){switch(_0xd5f070['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x58f1cb,_0xf50de1){_0x58f1cb['baseVersion']=null;for(const _0x407758 in _0x58f1cb){const _0x5df633=_0x58f1cb[_0x407758];if(_0x5df633 instanceof vt){const _0x381b90=_0xf50de1['get'](_0x5df633['root']['rootName']);_0x58f1cb[_0x407758]=this['_fixPosition'](_0x5df633,_0x381b90);}if(_0x5df633 instanceof ft){const _0x1d8c5d=_0xf50de1['get'](_0x5df633['root']['rootName']);_0x58f1cb[_0x407758]=this['_fixRange'](_0x5df633,_0x1d8c5d);}'root'===_0x407758&&(_0x58f1cb['root']=_0xf50de1['get'](_0x58f1cb['root']['rootName']));}}['_fixRange'](_0x262ecc,_0x4858b3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x262ecc['start'],_0x4858b3),this['_fixPosition'](_0x262ecc['end'],_0x4858b3));}['_fixPosition'](_0x26f103,_0x5d81d9){return this['editor']['model']['createPositionFromPath'](_0x5d81d9,_0x26f103['path'],_0x26f103['stickiness']);}['_handleInsertOperation'](_0x57d38c){const _0x374aa9=this['_idsRoots']['get'](_0x57d38c['position']['root']['rootName']),_0x42de4b=this['_fixPosition'](_0x57d38c['position'],_0x374aa9),_0x3acb79=null===_0x57d38c['_authorId']?null:_0x57d38c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4683e3=_0x42de4b['parent'],_0x1b9c07=this['_revisionId'],_0xa50318=[];for(const _0x597c9d of _0x57d38c['nodes'])if(_0x597c9d['is']('element'))_0xa50318['push'](this['_makeIdsRoot'](_0x597c9d));else{for(let _0x3d4016=0x0;_0x3d4016<_0x597c9d['offsetSize'];_0x3d4016++)_0xa50318['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2bddfa=this['_revisionId'];for(let _0xbbc36=_0x1b9c07;_0xbbc36<_0x2bddfa;_0xbbc36++)this['_touched']['set'](_0xbbc36,{'userId':_0x3acb79});_0x4683e3['_insertChild'](_0x42de4b['offset'],_0xa50318);}['_handleMoveOperation'](_0xc433a2){(_0xc433a2=this['_cloneOperation'](_0xc433a2,this['_idsRoots']))['_execute']();const _0x4dd22c=null===_0xc433a2['_authorId']?null:_0xc433a2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c53d6=_0xc433a2['getMovedRangeStart'](),_0x5593e5=_0x2c53d6['parent'],_0x38021d=_0x2c53d6['offset'];!function _0x25e916(_0x90f663,_0x4d78b6,_0x445220,_0x133190){for(let _0x30c2d2=_0x445220;_0x30c2d2<_0x133190;_0x30c2d2++){const _0x49fd0a=_0x4d78b6['getChild'](_0x30c2d2);_0x49fd0a['is']('element','$text')?_0x90f663['set'](_0x49fd0a['getAttribute']('vid'),{'userId':_0x4dd22c}):(_0x90f663['set'](_0x49fd0a['getAttribute']('vid_start'),{'userId':_0x4dd22c}),_0x25e916(_0x90f663,_0x49fd0a,0x0,_0x49fd0a['childCount']),_0x90f663['set'](_0x49fd0a['getAttribute']('vid_end'),{'userId':_0x4dd22c}));}}(this['_touched'],_0x5593e5,_0x38021d,_0x38021d+_0xc433a2['howMany']);}['_handleMergeOperation'](_0x428d32){const _0x50ded2=null===(_0x428d32=this['_cloneOperation'](_0x428d32,this['_idsRoots']))['_authorId']?null:_0x428d32['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x489398=_0x428d32['targetPosition']['parent'],_0x43fe17=_0x428d32['sourcePosition']['parent'],_0x4619a9=_0x489398['getAttribute']('vid_end'),_0x15a393=_0x43fe17['getAttribute']('vid_start');_0x489398['_setAttribute']('vid_end',_0x43fe17['getAttribute']('vid_end')),_0x43fe17['_setAttribute']('vid_end',_0x4619a9),this['_touched']['set'](_0x15a393,{'userId':_0x50ded2}),this['_touched']['set'](_0x4619a9,{'userId':_0x50ded2}),_0x428d32['_execute']();}['_handleSplitOperation'](_0xe9f9d0){const _0x1836db=null===(_0xe9f9d0=this['_cloneOperation'](_0xe9f9d0,this['_idsRoots']))['_authorId']?null:_0xe9f9d0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c9a53=_0xe9f9d0['graveyardPosition'],_0x4531ff=_0xe9f9d0['splitPosition']['parent'];_0xe9f9d0['_execute']();const _0xacd953=_0x4531ff['getAttribute']('vid_end'),_0x38ed56=_0xe9f9d0['insertionPosition']['nodeAfter'];if(_0x4c9a53){const _0x62687d=_0x38ed56['getAttribute']('vid_end'),_0x5f025f=_0x4531ff['getAttribute']('vid_end');_0x4531ff['_setAttribute']('vid_end',_0x62687d),_0x38ed56['_setAttribute']('vid_end',_0x5f025f),this['_touched']['set'](_0x4531ff['getAttribute']('vid_end'),{'userId':_0x1836db}),this['_touched']['set'](_0x38ed56['getAttribute']('vid_start'),{'userId':_0x1836db});}else{const _0x39caeb=this['_revisionId']++,_0x3a370c=this['_revisionId']++;_0x4531ff['_setAttribute']('vid_end',_0x39caeb),_0x38ed56['_setAttribute']('vid_start',_0x3a370c),_0x38ed56['_setAttribute']('vid_end',_0xacd953),this['_touched']['set'](_0x39caeb,{'userId':_0x1836db}),this['_touched']['set'](_0x3a370c,{'userId':_0x1836db});}}['_handleMarkerOperation'](_0xe612d0){if(!_0xe612d0['affectsData'])return;const _0x505727=(_0xe612d0=this['_cloneOperation'](_0xe612d0,this['_diffRoots']))['oldRange']?_0xe612d0['oldRange']['root']:null,_0x4ac56e=_0xe612d0['newRange']?_0xe612d0['newRange']['root']:null;_0x505727&&this['_markers']['delete'](_0xe612d0['name']),_0x4ac56e&&this['_markers']['set'](_0xe612d0['name'],_0xe612d0['newRange']['clone']());const _0x1a35d2=null===_0xe612d0['_authorId']?null:_0xe612d0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x138625=_0xe612d0['name'];if(!this['_touchedMarkers']['has'](_0x138625))return void this['_touchedMarkers']['set'](_0x138625,{'range':_0xe612d0['oldRange'],'userId':_0x1a35d2});const _0x252b84=this['_touchedMarkers']['get'](_0x138625),_0x566d13=_0x252b84['range'],_0x95f51=_0xe612d0['newRange'];null==_0x566d13&&null==_0x95f51||_0x566d13&&_0x95f51&&_0x566d13['isEqual'](_0x95f51)?this['_touchedMarkers']['delete'](_0xe612d0['name']):_0x252b84['userId']=_0x1a35d2;}['_handleRootOperation'](_0x27e382,_0x4f3b35){this['_diffRoots']['has'](_0x27e382['rootName'])?this['_diffRoots']['get'](_0x27e382['rootName'])['_isAttached']=_0x27e382['isAdd']:(this['_diffRoots']['set'](_0x27e382['rootName'],P(_0x27e382['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x27e382['rootName'],{}),_0x4f3b35&&this['_idsRoots']['set'](_0x27e382['rootName'],P(_0x27e382['rootName'],!0x0)));const _0x2b7b7b=null===_0x27e382['_authorId']?null:_0x27e382['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x428f5b=this['_touchedRoots']['get'](_0x27e382['rootName']);_0x428f5b&&_0x428f5b['userId']===_0x2b7b7b?this['_touchedRoots']['delete'](_0x27e382['rootName']):this['_touchedRoots']['set'](_0x27e382['rootName'],{'userId':_0x2b7b7b,'isAttached':_0x27e382['isAdd']});}['_handleRootAttributeOperation'](_0x22faac){const _0x2d9f4f=this['_diffRootsAttributes']['get'](_0x22faac['root']['rootName']);null===_0x22faac['newValue']?delete _0x2d9f4f[_0x22faac['key']]:_0x2d9f4f[_0x22faac['key']]=_0x22faac['newValue'];}}function N(_0x4f321a){const _0x75ddf3=P(_0x4f321a['rootName'],_0x4f321a['isAttached']());for(const _0x22412e of _0x4f321a['getChildren']()){const _0x43868a=_0x22412e['_clone'](!0x0);_0x75ddf3['_appendChild'](_0x43868a);}return _0x75ddf3;}function P(_0x17523b,_0x21aa8d=!0x0){const _0x21f570=new gt();return _0x21f570['rootName']=_0x17523b,_0x21f570['_isAttached']=_0x21aa8d,_0x21f570['isAttached']=()=>_0x21f570['_isAttached'],_0x21f570;}function F(_0x304a53,_0x521fac,_0x343874){const _0x315bff='elementEnd'==_0x304a53['type']?_0x343874['createPositionAt'](_0x304a53['item'],'end'):_0x343874['createPositionBefore'](_0x304a53['item']);return _0x343874['createPositionFromPath'](_0x521fac,_0x315bff['path'],_0x315bff['stickiness']);}function B(_0x2493f1,_0x46c6fd,_0x5ec46b){const _0x2f0a2c='elementStart'==_0x2493f1['type']?_0x5ec46b['createPositionAt'](_0x2493f1['item'],0x0):_0x5ec46b['createPositionAfter'](_0x2493f1['item']);return _0x5ec46b['createPositionFromPath'](_0x46c6fd,_0x2f0a2c['path'],_0x2f0a2c['stickiness']);}class os extends _0x4aa4e8{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2d509f,_0x1ad876){super(_0x2d509f),this['focusTracker']=new _0x1f2f53(),this['keystrokes']=new _0x1637b1(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1ad876),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'](),_0x95214({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x237119=_0x24b6fe=>_0x24b6fe['stopPropagation']();this['keystrokes']['set']('arrowright',_0x237119),this['keystrokes']['set']('arrowleft',_0x237119),this['keystrokes']['set']('arrowup',_0x237119),this['keystrokes']['set']('arrowdown',_0x237119);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x232a46){this['revisionNameInputView']['fieldView']['element']['value']=_0x232a46['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1eda95){const _0x21dc31=new nt(this['locale'],ti),_0x4d3870=_0x21dc31['fieldView'];_0x4d3870['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1dd179=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1eda95&&(_0x1dd179+='\x20('+g(this['locale'],'optional')+')'),(_0x21dc31['label']=_0x1dd179,_0x4d3870['on']('input',()=>{this['revisionNameInputValue']=_0x4d3870['element']['value']['trim']();}),_0x21dc31);}}class f extends _0x23aa96{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x35db22=this['editor'],_0x240e5b=_0x35db22['plugins']['get']('RevisionTracker');_0x35db22['ui']['componentFactory']['add']('revisionHistory',_0x17a5cc=>{const _0x2dc106=_0x4a74fb(_0x17a5cc),_0x182c4d=_0x2dc106['panelView']['children'],_0x2d26ca=new _0x171d59(_0x17a5cc),_0x586284=new te(_0x17a5cc),_0x55074c=new _0x3b1d40(_0x17a5cc),_0xb84a0e=new te(_0x17a5cc),_0x418673=new _0x3b1d40(_0x17a5cc);return _0x2dc106['bind']('isEnabled')['to'](_0x240e5b,'isReady',_0x240e5b,'isEnabled',_0x35db22,'isReadOnly',(_0x369c64,_0x3da386,_0x198c98)=>_0x369c64&&_0x3da386&&!_0x198c98),_0x2dc106['buttonView']['set']({'icon':_0x521926,'label':g(_0x17a5cc,'Revision\x20history'),'tooltip':!0x0}),_0x55074c['set']({'label':g(_0x17a5cc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x55074c['bind']('isEnabled')['to'](_0x240e5b,'isReady',_0x240e5b,'isEnabled',_0x35db22,'isReadOnly',(_0x2a6835,_0x4fdf1f,_0x130ecc)=>_0x2a6835&&_0x4fdf1f&&!_0x130ecc),_0x55074c['on']('execute',()=>this['_showDialog']()),_0x418673['set']({'label':g(_0x17a5cc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x418673['bind']('isEnabled')['to'](_0x240e5b,'isReady',_0x35db22,'isReadOnly',(_0x500a69,_0x5949d7)=>_0x500a69&&!_0x5949d7),_0x418673['on']('execute',()=>{_0x35db22['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2dc106['isOpen']=!0x1,_0x35db22['editing']['view']['focus']();}),_0x586284['children']['add'](_0x55074c),_0xb84a0e['children']['add'](_0x418673),_0x2d26ca['role']='menu',_0x2d26ca['items']['addMany']([_0x586284,_0xb84a0e]),_0x182c4d['add'](_0x2d26ca),_0x2dc106;}),_0x35db22['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2034ca=this['editor'],_0x2404b7=_0x2034ca['locale'],_0x316bcb=new _0x572593(_0x2404b7),_0x1e06d1=new _0x159fb7(_0x2404b7);_0x316bcb['buttonView']['set']({'icon':_0x521926,'label':g(_0x2404b7,'Revision\x20history')});const _0xc10f=new _0x32767b(_0x2404b7,_0x316bcb),_0x61b579=new _0x31cf84(_0x2404b7);_0x61b579['set']({'label':g(_0x2404b7,'Save\x20current\x20revision')}),_0x61b579['delegate']('execute')['to'](_0x316bcb),_0x61b579['on']('execute',()=>{this['_showDialog']();}),_0xc10f['children']['add'](_0x61b579),_0x1e06d1['items']['add'](_0xc10f);const _0x42cdf9=new _0x32767b(_0x2404b7,_0x316bcb),_0x462e9b=new _0x31cf84(_0x2404b7);return _0x462e9b['set']({'label':g(_0x2404b7,'Open\x20revision\x20history')}),_0x462e9b['delegate']('execute')['to'](_0x316bcb),_0x462e9b['on']('execute',()=>{_0x2034ca['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x42cdf9['children']['add'](_0x462e9b),_0x1e06d1['items']['add'](_0x42cdf9),_0x316bcb['panelView']['children']['add'](_0x1e06d1),_0x316bcb;}['_showDialog'](){const _0x55fce9=this['editor'],_0xd03bd1=_0x55fce9['locale'],_0xcd6abd=_0x55fce9['plugins']['get']('Dialog'),_0x365719=_0x55fce9['plugins']['get']('RevisionTracker');function _0x5619f2(_0x489730){_0x55fce9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x489730['revisionName']?_0x489730['revisionNameInputView']['errorText']=g(_0xd03bd1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x55fce9['plugins']['get'](u)['saveRevision']({'name':_0x489730['revisionName']}),_0xcd6abd['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5619f2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xcd6abd['show']({'id':'revisionSave','title':g(_0xd03bd1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x55fce9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xcd6abd['hide']()},{'label':g(_0x55fce9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x399dca){_0x399dca['bind']('isEnabled')['to'](_0x365719,'isReady',_0x365719,'isEnabled',_0x55fce9,'isReadOnly',(_0x2ffbad,_0x313f49,_0x343678)=>_0x2ffbad&&_0x313f49&&!_0x343678);},'onExecute':()=>_0x5619f2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4fb54a=this['editor'],_0x6846e=_0x4fb54a['locale'];this['_saveRevisionFormView']=new os(_0x6846e,_0x4fb54a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x4aa4e8{['changeId'];['_model'];constructor(_0x11f783,_0x340d53){super(_0x11f783),this['_model']=_0x340d53,this['changeId']=_0x340d53['id'];const _0x16e4ad=this['bindTemplate'],_0x30ef8e=g(_0x11f783,_0x340d53['data']['isSuggestion']?'Suggested\x20by':'add'==_0x340d53['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x340d53['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x16e4ad['to']('type',_0x186a8d=>'ck-revision-change__'+_0x186a8d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x30ef8e}]},{'text':'\x20'+_0x340d53['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2c368b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5c642b){super(),this['id']=_0x5c642b['id']||_0x16f76d(),this['author']=_0x5c642b['author'],this['type']=_0x5c642b['type'],this['data']=_0x5c642b['data']||{},this['rootName']=_0x5c642b['rootName'],this['set']('createdAt',_0x5c642b['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xb10c7e,_0x16485c){this['newRevisionId']=_0xb10c7e,this['oldRevisionId']=_0x16485c,this['changes']=new _0x69516b();}['_setChanges'](_0x213b34){for(const _0x44aa6b of _0x213b34)this['changes']['add'](_0x44aa6b);}}class m extends _0x23aa96{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5d7e11,_0x54e8ad,I,V];}constructor(_0x49311e){super(_0x49311e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x17b39b,_0x6a8b6a,_0x2131d9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x398968=>{for(const _0x1449d4 of this['editor']['editing']['view']['document']['roots'])_0x2131d9?_0x398968['removeClass']('ck-editor__editable__overlay',_0x1449d4):_0x398968['addClass']('ck-editor__editable__overlay',_0x1449d4);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4778e3=>null!==_0x4778e3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2add07,_0x58ba84,_0x463404)=>_0x2add07&&_0x463404?_0x58ba84['changes']['getIndex'](_0x463404):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1955d0,_0x13d3d0)=>_0x1955d0?_0x13d3d0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x54e8ad);}['init'](){const _0x1004b1=this['editor'],_0x8973f9=new pt(_0x1004b1,{'direction':'backward'}),_0x2e458a=new pt(_0x1004b1,{'direction':'forward'});(_0x1004b1['commands']['add']('showPreviousChange',_0x8973f9),_0x1004b1['commands']['add']('showNextChange',_0x2e458a),_0x1004b1['commands']['add']('restoreRevision',new wt(_0x1004b1)),this['on']('change:numberOfChanges',()=>{_0x8973f9['refresh'](),_0x2e458a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1004b1['enableReadOnlyMode']('revision-viewer'),_0x1004b1['plugins']['has']('WidgetToolbarRepository'))&&_0x1004b1['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x47e824){return await this['_utils']['loadRevisionData'](_0x47e824,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x47e824);}async['getRevisionRootsAttributes'](_0x464095){return await this['_utils']['loadRevisionData'](_0x464095,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x464095);}async['compare'](_0x480077,_0xc536f7,_0x15cab3=!0x1){if(!this['isEnabled'])return;const _0x3b88f6=this['diff'],_0x21b792=this['repository'],_0x7fa103='string'==typeof _0x480077?_0x21b792['getRevision'](_0x480077):_0x480077,_0x2b428e='string'==typeof _0xc536f7?_0x21b792['getRevision'](_0xc536f7):_0xc536f7,_0x4f884f=_0x7fa103['id'],_0x1fb08a=_0x2b428e?_0x2b428e['id']:null;if(!_0x15cab3&&this['diff']&&this['diff']['newRevisionId']===_0x4f884f&&this['diff']['oldRevisionId']===_0x1fb08a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x4f884f,_0x1fb08a);const _0x3d2b83=this['_getRevisionsRange'](_0x7fa103,_0x2b428e,!0x0)['map'](_0x398eb8=>this['_utils']['loadRevisionData'](_0x398eb8,this['adapter']));return _0x3d2b83['push'](new Promise(_0x231c3e=>{setTimeout(_0x231c3e,0x14);})),Promise['all'](_0x3d2b83)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x49c38c=this['_getDiff'](_0x4f884f,_0x1fb08a);for(const _0x457e91 of _0x49c38c['changes'])this['_changeIdToChange']['set'](_0x457e91['id'],_0x457e91);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x253bd0=>{for(const _0x878a8d of this['editor']['model']['document']['getRootNames']())_0x253bd0['detachRoot'](_0x878a8d);for(const _0x49d081 of Object['keys'](_0x49c38c['model'])){const _0x3400b9=_0x253bd0['addRoot'](_0x49d081);for(const _0x1e49e6 of Object['keys'](_0x49c38c['attributes'][_0x49d081]))_0x253bd0['setAttribute'](_0x1e49e6,_0x49c38c['attributes'][_0x49d081][_0x1e49e6],_0x3400b9);_0x253bd0['insert'](_0x49c38c['model'][_0x49d081],_0x3400b9,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x49c38c['changes'])),this['isReady']=!0x0;})['catch'](_0xb86717=>{console['error'](_0xb86717),this['_cleanUp'](),_0x3b88f6&&(this['diff']=_0x3b88f6),this['isReady']=!0x0;});}['addRevisionData'](_0x239f45,_0x2cf12e){const _0x245d6a=this['repository']['createRevision'](_0x239f45);return _0x245d6a['on']('_update',(_0x4b222b,_0x2032a4,_0x4ebed5)=>_0x2cf12e(_0x2032a4,_0x4ebed5,_0x245d6a)),this['repository']['addRevision'](_0x245d6a),_0x245d6a;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xedd78=>{for(const _0x5bf0ee of this['editor']['model']['document']['getRootNames']())_0xedd78['detachRoot'](_0x5bf0ee);});}['_sortAndFilterDiffChanges'](_0x25e7d1){const _0x159235=[],_0x4a2470=new Map();for(const _0xe5d151 of this['editor']['model']['document']['getRootNames']()){const _0x7b9888=this['editor']['editing']['view']['getDomRoot'](_0xe5d151);if(!_0x7b9888)continue;const _0x4150ba=_0x7b9888['getClientRects']()['item'](0x0);_0x4150ba&&(_0x159235['push'](_0xe5d151),_0x4a2470['set'](_0xe5d151,_0x4150ba));}return _0x159235['sort']((_0x562cbc,_0x5763f1)=>{const _0x3e8763=_0x4a2470['get'](_0x562cbc),_0x5a4bbc=_0x4a2470['get'](_0x5763f1);return _0x3e8763['y']-_0x5a4bbc['y']||_0x3e8763['x']-_0x5a4bbc['x'];}),(_0x25e7d1=_0x25e7d1['filter'](_0x49dc0c=>_0x159235['includes'](_0x49dc0c['rootName'])))['sort']((_0x35a3a2,_0x48fcf7)=>_0x159235['indexOf'](_0x35a3a2['rootName'])-_0x159235['indexOf'](_0x48fcf7['rootName'])),_0x25e7d1;}['_makeTape'](_0x599c2e){const _0x5613f3=Array['from'](_0x599c2e['markers'])['filter'](([_0x279016,_0x4d2af1])=>_0x279016['startsWith']('revision:')&&!_0x4d2af1['isCollapsed']),_0x370220=Array['from'](this['editor']['model']['createRangeIn'](_0x599c2e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5613f3['length'])for(const _0x5e9a08 of _0x370220){const [_0x5284fe,_0x497b6d]=_0x5613f3[0x0],[,_0x3ef200,_0x4024f8]=_0x5284fe['split'](':');if(_0x497b6d['end']['isEqual'](_0x5e9a08['nextPosition'])&&_0x5613f3['shift'](),(_0x5e9a08['previousPosition']['isEqual'](_0x497b6d['start'])||_0x5e9a08['previousPosition']['isAfter'](_0x497b6d['start']))&&('insertion'==_0x3ef200?_0x5e9a08['isAdded']={'userId':_0x4024f8}:'deletion'==_0x3ef200&&(_0x5e9a08['isRemoved']={'userId':_0x4024f8})),0x0==_0x5613f3['length'])break;}return _0x370220;}['_refreshStartEndIndex'](_0x984a57){const _0x4b3588=new Map();for(let _0x3d8a4b=0x0;_0x3d8a4b<_0x984a57['length'];_0x3d8a4b++)'text'===_0x984a57[_0x3d8a4b]['type']?(_0x984a57[_0x3d8a4b]['item']['startIndex']=_0x3d8a4b,_0x984a57[_0x3d8a4b]['item']['endIndex']=_0x3d8a4b):('elementStart'===_0x984a57[_0x3d8a4b]['type']?_0x984a57[_0x3d8a4b]['item']['startIndex']=_0x3d8a4b:'elementEnd'===_0x984a57[_0x3d8a4b]['type']&&(_0x984a57[_0x3d8a4b]['item']['endIndex']=_0x3d8a4b),_0x4b3588['set'](_0x984a57[_0x3d8a4b]['id'],_0x3d8a4b));for(const _0x2031b1 of _0x4b3588['values']())'elementStart'===_0x984a57[_0x2031b1]['type']?_0x984a57[_0x2031b1]['item']['endIndex']=_0x4b3588['get'](_0x984a57[_0x2031b1]['pairId']):'elementEnd'===_0x984a57[_0x2031b1]['type']&&(_0x984a57[_0x2031b1]['item']['startIndex']=_0x4b3588['get'](_0x984a57[_0x2031b1]['pairId']));}['_processTape'](_0x114eee){for(let _0x2c7f53=0x0;_0x2c7f53<_0x114eee['length'];_0x2c7f53++){if('elementStart'===_0x114eee[_0x2c7f53]['type'])_0x114eee[_0x2c7f53]['item']['startIndex']=_0x2c7f53;else{if('elementEnd'===_0x114eee[_0x2c7f53]['type']){_0x114eee[_0x2c7f53]['item']['endIndex']=_0x2c7f53;const _0xb378d1=_0x114eee[_0x2c7f53]['item']['startIndex'];_0x114eee[_0xb378d1]['pairId']=_0x114eee[_0x2c7f53]['id'],_0x114eee[_0x2c7f53]['pairId']=_0x114eee[_0xb378d1]['id'];}else _0x114eee[_0x2c7f53]['item']['startIndex']=_0x2c7f53,_0x114eee[_0x2c7f53]['item']['endIndex']=_0x2c7f53,_0x114eee[_0x2c7f53]['pairId']=null;}_0x114eee[_0x2c7f53]['markersStart']||(_0x114eee[_0x2c7f53]['markersStart']=[],_0x114eee[_0x2c7f53]['markersEnd']=[]);}}['_markInsertions'](_0x25a8d7,_0x5598dd){const _0x4ca2d9=_0x25a8d7['filter'](_0x4f281a=>!_0x4f281a['isAdded']);for(let _0x1b9e16=0x0;_0x1b9e16<_0x5598dd['length'];_0x1b9e16++)_0x5598dd[_0x1b9e16]['isAdded']&&(_0x4ca2d9[_0x1b9e16]['isAdded']=_0x5598dd[_0x1b9e16]['isAdded']);}['_getDiff'](_0x2d619d,_0x24f79a=null){const _0x8c69c2=this['repository']['getRevision'](_0x2d619d),_0x55c84b=_0x24f79a?this['repository']['getRevision'](_0x24f79a):null,_0x3a642e=this['_getRevisionsRange'](_0x8c69c2,_0x55c84b),_0x3f1f4b=_0x3a642e[_0x3a642e['length']-0x1],_0x32e94a=new Map(),_0x1d2a1b={'model':{},'attributes':{},'changes':[]},_0xf6201=new Set(),_0x2df221=new Map();for(let _0x2ab370=_0x3a642e['length']-0x1;_0x2ab370>=0x0;_0x2ab370--){const _0x194854=_0x3a642e[_0x2ab370];for(const _0x5a124 of Object['keys'](_0x194854['diffData']))if(_0x194854['diffData'][_0x5a124]['attachChange']){const _0x4b38dc=_0x194854['diffData'][_0x5a124]['attachChange'];_0x4b38dc['isAttached']?(_0xf6201['add'](_0x5a124),_0x2df221['has'](_0x5a124)&&_0x2df221['get'](_0x5a124)['userId']==_0x4b38dc['userId']?_0x2df221['delete'](_0x5a124):_0x2df221['set'](_0x5a124,_0x4b38dc)):_0x2df221['has'](_0x5a124)?(_0xf6201['delete'](_0x5a124),_0x2df221['delete'](_0x5a124)):(_0xf6201['add'](_0x5a124),_0x2df221['set'](_0x5a124,_0x4b38dc));}else _0xf6201['add'](_0x5a124);}for(const _0x129d4a of _0xf6201){const _0x5845f4=_0x2df221['has'](_0x129d4a)&&!_0x2df221['get'](_0x129d4a)['isAttached'];let _0x9bb998=_0x5845f4?_0x3a642e['length']-0x1:0x0;const _0x3d89b4=_0x5845f4?-0x1:0x1;for(;_0x3a642e[_0x9bb998];){const _0x19ccbf=_0x3a642e[_0x9bb998];if(_0x19ccbf['diffData'][_0x129d4a]){const _0x4ef1f0=_0x5845f4?_0x19ccbf['diffData'][_0x129d4a]['attributesBefore']:_0x19ccbf['diffData'][_0x129d4a]['attributesAfter'];_0x1d2a1b['attributes'][_0x129d4a]=_0x4ef1f0?_0x18fd17(_0x4ef1f0):{};break;}_0x9bb998+=_0x3d89b4;}}for(const _0x2852df of _0x3a642e){_0x2852df['model']={};for(const _0x1d1c79 of _0x2852df['authors'])_0x32e94a['set'](_0x1d1c79['id'],_0x1d1c79);for(const _0x345f1e of _0xf6201){const _0xc7fe6=_0x2852df['diffData'][_0x345f1e]?_0x2852df['diffData'][_0x345f1e]['insertions']:'[]',_0x5941bb=_0x2852df['diffData'][_0x345f1e]?_0x2852df['diffData'][_0x345f1e]['deletions']:'[]';_0x2852df['model'][_0x345f1e]={'insertions':this['_utils']['_makeModelFromViewString'](_0xc7fe6),'deletions':this['_utils']['_makeModelFromViewString'](_0x5941bb)};}}for(const _0x1a33fa of _0xf6201){let _0x28bf52=null,_0x30178e=0x0;const _0x5d1b84=new Map(Array['from'](_0x8c69c2['model'][_0x1a33fa]['insertions']['markers'])['filter'](([_0x1143c2])=>!_0x1143c2['startsWith']('revision:')));let _0x5b92de=0x0;for(const _0x4dde67 of _0x3a642e){const _0x14741e=this['_makeTape'](_0x4dde67['model'][_0x1a33fa]['insertions']);_0x4dde67==_0x8c69c2?(_0x28bf52=_0x14741e,_0x30178e=_0x28bf52['length'],_0x28bf52['forEach'](_0x591d9c=>{_0x591d9c['id']=_0x5b92de++;}),this['_processTape'](_0x28bf52)):this['_markInsertions'](_0x28bf52,_0x14741e);const _0x4ad8f4=_0x28bf52['filter'](_0x268f52=>!_0x268f52['isAdded'])['map'](_0x331695=>_0x331695['id']);let _0x25b8c6=0x0;const _0xe050a3=this['_makeTape'](_0x4dde67['model'][_0x1a33fa]['deletions']);_0xe050a3['forEach'](_0x439f2e=>{_0x439f2e['isRemoved']?_0x439f2e['id']=_0x30178e++:_0x439f2e['id']=_0x4ad8f4[_0x25b8c6++];}),this['_processTape'](_0xe050a3),this['_setDistance'](_0x28bf52,'isAdded'),this['_setDistance'](_0xe050a3,'isRemoved'),_0x4dde67==_0x8c69c2&&this['_markMarkers'](_0x28bf52,_0x5d1b84),_0x28bf52=this['_joinTapes'](_0x28bf52,_0xe050a3),this['_refreshStartEndIndex'](_0x28bf52),this['_setDistance'](_0x28bf52,'isRemoved');}_0x28bf52=_0x28bf52['filter'](_0x4229a6=>!(_0x4229a6['isAdded']&&_0x4229a6['isRemoved']));const _0xc2f1f=new Map(_0x3f1f4b['model'][_0x1a33fa]['deletions']['markers']),_0x3277c7=new Set(_0x5d1b84['keys']());for(const _0x29521f of _0xc2f1f['keys']())_0x3277c7['delete'](_0x29521f);this['_markSuggestions'](_0x28bf52,_0x3277c7),this['_fixObsoleteTags'](_0x28bf52),_0x28bf52=this['_removeMissingPairs'](_0x28bf52),_0x28bf52=this['_markMismatchedRemovedTags'](_0x28bf52),_0x28bf52=this['_removeUnsupportedChanges'](_0x28bf52);const {root:_0x1c12d8,changes:_0x55274d}=this['_makeModelFromTape'](_0x28bf52,_0x32e94a,_0x1a33fa);_0x1d2a1b['model'][_0x1a33fa]=_0x1c12d8;const _0x1898e7=_0x2df221['get'](_0x1a33fa);if(_0x1898e7){const _0x29997e=_0x32e94a['get'](_0x1898e7['userId']),_0x5edf41=new r({'author':_0x29997e,'type':_0x1898e7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1a33fa});_0x55274d['unshift'](_0x5edf41),_0x1d2a1b['attributes'][_0x1a33fa]['revisionHistoryAttachChange']=_0x5edf41['id'];}_0x1d2a1b['changes']=_0x1d2a1b['changes']['concat'](_0x55274d);}return _0x1d2a1b;}['_markMarkers'](_0x18adc3,_0x35e80d){for(let _0x58ed4a=0x0;_0x58ed4a<_0x18adc3['length'];_0x58ed4a++)for(const [_0x313172,_0x1722e3]of _0x35e80d)!_0x1722e3['isCollapsed']&&_0x1722e3['start']['isEqual'](_0x18adc3[_0x58ed4a]['previousPosition'])&&_0x18adc3[_0x58ed4a]['markersStart']['push'](_0x313172),_0x1722e3['end']['isEqual'](_0x18adc3[_0x58ed4a]['nextPosition'])&&_0x18adc3[_0x58ed4a]['markersEnd']['push'](_0x313172);}['_joinTapes'](_0x10b3cb,_0x1c1cf7){let _0xe0d8cc=[],_0x2fd4b6=0x0,_0x4357fe=0x0;for(;_0x2fd4b6<_0x10b3cb['length']||_0x4357fe<_0x1c1cf7['length'];){const _0x5eec54=_0x10b3cb[_0x2fd4b6]||{},_0x332a72=_0x1c1cf7[_0x4357fe]||{};if(_0x5eec54['id']==_0x332a72['id'])_0x2fd4b6++,_0x4357fe++,_0xe0d8cc['push'](_0x5eec54);else{if(_0x332a72['isRemoved']&&_0x5eec54['isAdded']){const {commonTape:_0x342db6,iEnd:_0x246166,jEnd:_0x4a541f}=this['_threeWayMerge'](_0x10b3cb,_0x2fd4b6,_0x1c1cf7,_0x4357fe);_0xe0d8cc=_0xe0d8cc['concat'](_0x342db6),_0x2fd4b6=_0x246166,_0x4357fe=_0x4a541f;}else _0x332a72['isRemoved']?(_0x4357fe++,_0xe0d8cc['push'](_0x332a72)):(_0x2fd4b6++,_0xe0d8cc['push'](_0x5eec54));}}return _0xe0d8cc;}['_markSuggestions'](_0x510d71,_0x4939b2){const _0x4930d4=[];for(let _0x427169=0x0;_0x427169<_0x510d71['length'];_0x427169++){for(let _0x137348=0x0;_0x137348<_0x510d71[_0x427169]['markersStart']['length'];_0x137348++){const _0x6099a6=_0x510d71[_0x427169]['markersStart'][_0x137348];if(!_0x4939b2['has'](_0x6099a6))continue;const {group:_0xf99a25,type:_0x3facb1,authorId:_0x30be60}=_0x295d5a(_0x6099a6);'revision-suggestion'!=_0xf99a25||'insertion'!=_0x3facb1&&'deletion'!=_0x3facb1||(_0x4930d4['unshift']({'type':_0x3facb1,'name':_0x6099a6,'userId':_0x30be60}),_0x510d71[_0x427169]['markersStart']['splice'](_0x137348,0x1),_0x137348--);}_0x57c278(_0x510d71[_0x427169]);for(let _0x11882b=0x0;_0x11882b<_0x510d71[_0x427169]['markersEnd']['length'];_0x11882b++){const _0x1acdb0=_0x510d71[_0x427169]['markersEnd'][_0x11882b];if(!_0x4939b2['has'](_0x1acdb0))continue;const {group:_0x51b100,type:_0x1fb04e}=_0x295d5a(_0x1acdb0);if('revision-suggestion'!=_0x51b100||'insertion'!=_0x1fb04e&&'deletion'!=_0x1fb04e)continue;_0x510d71[_0x427169]['markersEnd']['splice'](_0x11882b,0x1),_0x11882b--;const _0x336c6d=_0x4930d4['findIndex'](_0xc1b0b4=>_0xc1b0b4['name']==_0x1acdb0);_0x336c6d>-0x1&&_0x4930d4['splice'](_0x336c6d,0x1);}}function _0x295d5a(_0x385b84){const _0x401eb7=_0x385b84['split'](':');return{'group':_0x401eb7[0x0],'type':_0x401eb7[0x1],'subType':_0x401eb7['length']>=0x5?_0x401eb7[0x2]:null,'id':_0x401eb7['length']<0x5?_0x401eb7[0x2]:_0x401eb7[0x3],'authorId':_0x401eb7['length']<0x5?_0x401eb7[0x3]:_0x401eb7[0x4],'markerCount':0x6==_0x401eb7['length']?_0x401eb7[0x5]:null};}function _0x57c278(_0x41e179){for(let _0x2e71d2=0x0;_0x2e71d2<_0x4930d4['length'];_0x2e71d2++){if(_0x41e179['isAdded']&&'insertion'==_0x4930d4[_0x2e71d2]['type'])return _0x41e179['isAddSuggestion']=_0x4930d4[_0x2e71d2],void delete _0x41e179['isAdded'];if(!_0x41e179['isAdded']&&!_0x41e179['isRemoved']&&'deletion'==_0x4930d4[_0x2e71d2]['type'])return void(_0x41e179['isRemoveSuggestion']=_0x4930d4[_0x2e71d2]);}}}['_setDistance'](_0x156f7d,_0x20dec6){let _0xdaf73e=0x0,_0x58a27a=!0x1;const _0x4d8995=new Map();for(const _0x51dd23 of _0x156f7d)_0x51dd23[_0x20dec6]?_0x58a27a&&(_0xdaf73e++,_0x58a27a=!0x1):(_0xdaf73e++,_0x58a27a=!0x0),_0x4d8995['set'](_0x51dd23['id'],_0xdaf73e);for(let _0x131622=0x0;_0x131622<_0x156f7d['length'];_0x131622++){if('isRemoved'==_0x20dec6&&_0x156f7d[_0x131622]['isAdded']||'isAdded'==_0x20dec6&&_0x156f7d[_0x131622]['isRemoved'])continue;if('text'==_0x156f7d[_0x131622]['type']){_0x156f7d[_0x131622]['distance']=0x0;continue;}const _0x9c8df3=_0x4d8995['get'](_0x156f7d[_0x131622]['pairId']),_0x38d010=_0x4d8995['get'](_0x156f7d[_0x131622]['id']);_0x156f7d[_0x131622]['distance']=_0x9c8df3-_0x38d010;}}['_getRevisionsRange'](_0x565232,_0xde431,_0x39d4df=!0x1){const _0x2212a3=[];let _0x5af3f9=this['repository']['getIndex'](_0x565232),_0x423e9d=this['repository']['getIndex'](_0xde431);for(-0x1==_0x423e9d&&(_0x423e9d=this['repository']['_revisions']['length'],_0x39d4df=!0x1);_0x5af3f9<_0x423e9d;)_0x2212a3['push'](this['repository']['getRevision'](_0x5af3f9)),_0x5af3f9++;return _0x39d4df&&_0x2212a3['push'](this['repository']['getRevision'](_0x5af3f9)),_0x2212a3;}['_threeWayMerge'](_0x592c10,_0x19f5ee,_0x177ceb,_0x488f60){const _0x8a246c=this['editor']['model']['schema'];let _0x3ccfe6=_0x19f5ee;for(;_0x592c10[_0x3ccfe6]&&_0x592c10[_0x3ccfe6]['isAdded'];)_0x3ccfe6++;let _0x2729db=_0x488f60;for(;_0x177ceb[_0x2729db]&&_0x177ceb[_0x2729db]['isRemoved'];)_0x2729db++;_0x3e82ed(_0x592c10,_0x19f5ee,_0x3ccfe6),_0x3e82ed(_0x177ceb,_0x488f60,_0x2729db);const _0x1e8efb=_0x177ceb['slice'](_0x488f60,_0x2729db)['concat'](_0x592c10['slice'](_0x19f5ee,_0x3ccfe6));return _0x1e8efb['sort']((_0x3dfd66,_0x44a92b)=>_0x3dfd66['side']!=_0x44a92b['side']?_0x3dfd66['side']-_0x44a92b['side']:_0x3dfd66['level']!=_0x44a92b['level']?_0x3dfd66['level']-_0x44a92b['level']:_0x3dfd66['distance']!=_0x44a92b['distance']?_0x44a92b['distance']-_0x3dfd66['distance']:!!_0x3dfd66['isAdded']!=!!_0x44a92b['isAdded']?-0x1==_0x3dfd66['side']||0x0==_0x3dfd66['side']?_0x3dfd66['isAdded']?-0x1:0x1:_0x3dfd66['isAdded']?0x1:-0x1:_0x3dfd66['index']-_0x44a92b['index']),{'commonTape':_0x1e8efb,'iEnd':_0x3ccfe6,'jEnd':_0x2729db};function _0x3e82ed(_0x1e5ca2,_0x4a1841,_0x1525ad){let _0x87f070=-0x1,_0x31d7d1=Number['POSITIVE_INFINITY'],_0x1c8ab7=!0x0;for(let _0xf780dd=_0x4a1841;_0xf780dd<_0x1525ad;_0xf780dd++)if(_0x8a246c['isInline'](_0x1e5ca2[_0xf780dd]['item'])||(_0x1c8ab7=!0x1),_0x1e5ca2[_0xf780dd]['item']['startIndex']<_0x4a1841&&(_0x87f070=_0xf780dd),_0x1e5ca2[_0xf780dd]['item']['endIndex']>=_0x1525ad){_0x31d7d1=_0xf780dd;break;}_0x1c8ab7&&(_0x87f070=_0x1525ad-0x1);for(let _0x4c3cd0=_0x4a1841;_0x4c3cd0<_0x1525ad;_0x4c3cd0++)_0x1e5ca2[_0x4c3cd0]['side']=_0x4c3cd0<=_0x87f070?-0x1:_0x4c3cd0<_0x31d7d1?0x0:0x1,_0x1e5ca2[_0x4c3cd0]['index']=_0x4c3cd0;let _0xbfbe8d=0x0;for(let _0x36c9de=_0x4a1841;_0x36c9de<=_0x87f070;_0x36c9de++)0x0==_0x1e5ca2[_0x36c9de]['distance']?_0x1e5ca2[_0x36c9de]['level']=_0xbfbe8d:(_0xbfbe8d++,_0x1e5ca2[_0x36c9de]['level']=_0xbfbe8d,_0xbfbe8d++);for(let _0x473c73=_0x4a1841;_0x473c73<_0x1525ad;_0x473c73++)0x0==_0x1e5ca2[_0x473c73]['side']&&(_0x1e5ca2[_0x473c73]['level']=_0xbfbe8d);_0xbfbe8d=0x0;for(let _0xc231b6=_0x1525ad-0x1;_0xc231b6>=_0x31d7d1;_0xc231b6--)0x0==_0x1e5ca2[_0xc231b6]['distance']?_0x1e5ca2[_0xc231b6]['level']=_0xbfbe8d:(_0xbfbe8d--,_0x1e5ca2[_0xc231b6]['level']=_0xbfbe8d,_0xbfbe8d--);}}['_fixObsoleteTags'](_0x25b327){const _0x46e04e=new Map(),_0x46d33b=this['editor']['model']['schema'];for(let _0x2c4019=0x1;_0x2c4019<_0x25b327['length'];_0x2c4019++){let _0x4b101c,_0x4ee6d4,_0x2751a7;const _0x4353e7=_0x25b327[_0x2c4019],_0x39046a=_0x25b327[_0x2c4019-0x1];if('text'==_0x4353e7['type'])continue;if(_0x4353e7['type']!=_0x39046a['type'])continue;if(!_0x46d33b['isBlock'](_0x39046a['item'])||_0x46d33b['isLimit'](_0x39046a['item']))continue;if(!_0x46d33b['isBlock'](_0x4353e7['item'])||_0x46d33b['isLimit'](_0x4353e7['item']))continue;if((_0x25b327[_0x2c4019]['isAdded']||_0x25b327[_0x2c4019]['isAddSuggestion'])&&_0x25b327[_0x2c4019-0x1]['isRemoved'])_0x4b101c=_0x25b327[_0x2c4019],_0x4ee6d4=_0x25b327[_0x2c4019-0x1],_0x2751a7=_0x2c4019-0x1;else{if(!_0x25b327[_0x2c4019]['isRemoved']||!_0x25b327[_0x2c4019-0x1]['isAdded']&&!_0x25b327[_0x2c4019-0x1]['isAddSuggestion'])continue;_0x4b101c=_0x25b327[_0x2c4019-0x1],_0x4ee6d4=_0x25b327[_0x2c4019],_0x2751a7=_0x2c4019;}const _0x4faf79=_0x4b101c['level']==_0x4ee6d4['level'],_0x4f5a25=Math['abs'](_0x4b101c['level'])<Math['abs'](_0x4ee6d4['level'])&&0x0==_0x4ee6d4['distance'];(_0x4faf79||_0x4f5a25)&&(_0x46e04e['set'](_0x4ee6d4['id'],_0x4b101c['id']),_0x25b327['splice'](_0x2751a7,0x1),_0x2c4019--,_0x4b101c['isAdded']=!0x1);}for(let _0x2512a0=0x0;_0x2512a0<_0x25b327['length'];_0x2512a0++)_0x46e04e['has'](_0x25b327[_0x2512a0]['pairId'])&&(_0x25b327[_0x2512a0]['pairId']=_0x46e04e['get'](_0x25b327[_0x2512a0]['pairId']));}['_removeMissingPairs'](_0x1afd69){const _0x241782=new Set(_0x1afd69['map'](_0x4f5654=>_0x4f5654['id']));for(let _0x52a006=0x0;_0x52a006<_0x1afd69['length'];_0x52a006++)_0x241782['has'](_0x1afd69[_0x52a006]['pairId'])||0x0==_0x1afd69[_0x52a006]['distance']||(_0x1afd69[_0x52a006]['isIncorrect']=!0x0);return _0x1afd69['filter'](_0x41780e=>!_0x41780e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4bef34){const _0x102661=new Set();for(let _0x12953b=0x0;_0x12953b<_0x4bef34['length'];_0x12953b++){if(_0x102661['has'](_0x4bef34[_0x12953b]['id'])&&_0x4bef34[_0x12953b]['isRemoved']&&(_0x4bef34[_0x12953b]['isIncorrect']=!0x0),_0x4bef34[_0x12953b]['isIncorrect'])continue;if(0x0==_0x4bef34[_0x12953b]['distance'])continue;if('elementStart'!=_0x4bef34[_0x12953b]['type'])continue;if(null==_0x4bef34[_0x12953b]['pairId'])continue;let _0x14342c=_0x12953b+0x1,_0x224221=0x0;for(;_0x4bef34[_0x14342c]['id']!=_0x4bef34[_0x12953b]['pairId'];)'elementStart'==_0x4bef34[_0x14342c]['type']?_0x224221++:'elementEnd'==_0x4bef34[_0x14342c]['type']&&_0x224221--,_0x14342c++;if(0x0!=_0x224221){if(_0x4bef34[_0x12953b]['isRemoved'])_0x4bef34[_0x12953b]['isIncorrect']=!0x0;else{for(;_0x14342c!=_0x12953b;)_0x4bef34[_0x14342c]['isRemoved']&&0x0!=_0x4bef34[_0x14342c]['distance']&&(_0x4bef34[_0x14342c]['isIncorrect']=!0x0,_0x102661['add'](_0x4bef34[_0x14342c]['pairId'])),_0x14342c--;}}}return _0x4bef34['filter'](_0x5646f2=>!_0x5646f2['isIncorrect']);}['_removeUnsupportedChanges'](_0x62dc57){const _0x2b1df6=this['editor']['model']['schema'];for(let _0x2aded1=0x0;_0x2aded1<_0x62dc57['length'];_0x2aded1++){if(!(_0x62dc57[_0x2aded1]['isAdded']||_0x62dc57[_0x2aded1]['isAddSuggestion']||_0x62dc57[_0x2aded1]['isRemoved']||_0x62dc57[_0x2aded1]['isRemoveSuggestion']))continue;if(0x0==_0x62dc57[_0x2aded1]['distance'])continue;const _0x8c7487=_0x62dc57[_0x2aded1]['item'];_0x2b1df6['isBlock'](_0x8c7487)||_0x2b1df6['isLimit'](_0x8c7487)||(_0x62dc57[_0x2aded1]['isAdded']&&delete _0x62dc57[_0x2aded1]['isAdded'],_0x62dc57[_0x2aded1]['isAddSuggestion']&&delete _0x62dc57[_0x2aded1]['isAddSuggestion'],_0x62dc57[_0x2aded1]['isRemoveSuggestion']&&delete _0x62dc57[_0x2aded1]['isRemoveSuggestion'],_0x62dc57[_0x2aded1]['isRemoved']&&(_0x62dc57[_0x2aded1]['isIncorrect']=!0x0));}return _0x62dc57['filter'](_0x5bf1e3=>!_0x5bf1e3['isIncorrect']);}['_makeModelFromTape'](_0x1f40e2,_0x269858,_0x11ff9e){const _0x46be92=new gt(),_0xf1502=[],_0x476f4d=new Map(),_0x2ddacc=this['editor']['model'],_0xcc3a57=_0x2ddacc['schema'],_0x4c6866=[_0x46be92],_0x1e83e0={},_0x7abe7d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x12462d=null;const _0x3732ce=[0x0];for(let _0x24b5b0=0x0;_0x24b5b0<_0x1f40e2['length'];_0x24b5b0++)if('elementStart'===_0x1f40e2[_0x24b5b0]['type']){_0x1f40e2[_0x24b5b0]['previousPosition']=_0x2ddacc['createPositionFromPath'](_0x46be92,_0x3732ce);const _0x48b52c=new ut(_0x1f40e2[_0x24b5b0]['item']['name'],_0x1f40e2[_0x24b5b0]['item']['getAttributes']());_0x4c6866[0x0]['_appendChild'](_0x48b52c),_0x3732ce['push'](0x0),_0x4c6866['unshift'](_0x48b52c),_0x1f40e2[_0x24b5b0]['nextPosition']=_0x2ddacc['createPositionFromPath'](_0x46be92,_0x3732ce);}else'elementEnd'===_0x1f40e2[_0x24b5b0]['type']?(_0x4c6866['shift'](),_0x1f40e2[_0x24b5b0]['previousPosition']=_0x2ddacc['createPositionFromPath'](_0x46be92,_0x3732ce),_0x3732ce['pop'](),_0x3732ce[_0x3732ce['length']-0x1]++,_0x1f40e2[_0x24b5b0]['nextPosition']=_0x2ddacc['createPositionFromPath'](_0x46be92,_0x3732ce)):(_0x1f40e2[_0x24b5b0]['previousPosition']=_0x2ddacc['createPositionFromPath'](_0x46be92,_0x3732ce),_0x12462d?_0x12462d['_data']+=_0x1f40e2[_0x24b5b0]['item']['data']:_0x12462d=new mt(_0x1f40e2[_0x24b5b0]['item']['data'],_0x1f40e2[_0x24b5b0]['item']['getAttributes']()),_0x1f40e2[_0x24b5b0+0x1]&&'text'===_0x1f40e2[_0x24b5b0+0x1]['type']&&_0x315451(_0x12462d,_0x1f40e2[_0x24b5b0+0x1]['item'])||(_0x4c6866[0x0]['_appendChild'](_0x12462d),_0x12462d=null),_0x3732ce[_0x3732ce['length']-0x1]+=_0x1f40e2[_0x24b5b0]['item']['offsetSize'],_0x1f40e2[_0x24b5b0]['nextPosition']=_0x2ddacc['createPositionFromPath'](_0x46be92,_0x3732ce));for(let _0x54be9c=0x0;_0x54be9c<_0x1f40e2['length'];_0x54be9c++){const _0x1534d2=_0x1f40e2[_0x54be9c]['previousPosition'],_0x595117=_0x1f40e2[_0x54be9c]['nextPosition'];for(const _0xa560ed of _0x1f40e2[_0x54be9c]['markersStart'])_0x476f4d['set'](_0xa560ed,{'start':_0x1534d2,'end':null});_0x2616ec('isRemoveSuggestion',_0x54be9c,_0x1534d2,_0x595117),_0x2616ec('isAddSuggestion',_0x54be9c,_0x1534d2,_0x595117),_0x2616ec('isRemoved',_0x54be9c,_0x1534d2,_0x595117),_0x2616ec('isAdded',_0x54be9c,_0x1534d2,_0x595117);for(const _0x204cfd of _0x1f40e2[_0x54be9c]['markersEnd']){const _0x5865f4=_0x476f4d['get'](_0x204cfd);_0x5865f4?_0x5865f4['end']=_0x595117:_0x476f4d['set'](_0x204cfd,{'start':_0x595117,'end':_0x595117});}}for(const [_0x30d42a,_0x3f97e5]of _0x476f4d){const _0x189e50=this['editor']['model']['createRange'](_0x3f97e5['start'],_0x3f97e5['end']);_0x46be92['markers']['set'](_0x30d42a,_0x189e50);}return _0xf1502['sort']((_0x3c5c73,_0x3a8e23)=>{const _0x397fb0=_0x46be92['markers']['get']('revision:'+_0x3c5c73['id']),_0x4c018a=_0x46be92['markers']['get']('revision:'+_0x3a8e23['id']);return _0x397fb0['start']['isBefore'](_0x4c018a['start'])?-0x1:_0x397fb0['start']['isAfter'](_0x4c018a['start'])?0x1:_0x397fb0['end']['isBefore'](_0x4c018a['end'])?-0x1:_0x397fb0['end']['isAfter'](_0x4c018a['end'])?0x1:'add'===_0x3c5c73['type']?-0x1:0x1;}),{'root':_0x46be92,'changes':_0xf1502};function _0x2616ec(_0xa0a596,_0x66c816,_0x3693e8,_0x3b7ebe){const _0x44a011=!!_0x1f40e2[_0x66c816][_0xa0a596],_0x10e16f=_0x44a011?_0x1f40e2[_0x66c816][_0xa0a596]['userId']:null,_0x560761=_0x66c816===_0x1f40e2['length']-0x1,_0x3f37e6=_0x7abe7d[_0xa0a596][0x0],_0x46ce4e=_0xcc3a57['isObject'](_0x1f40e2[_0x66c816]['item']);!_0x1e83e0[_0xa0a596]&&_0x44a011?_0x1e83e0[_0xa0a596]={'start':_0x3693e8,'tapeItem':_0x1f40e2[_0x66c816],'userId':_0x10e16f,'type':_0xa0a596}:_0x1e83e0[_0xa0a596]&&!_0x44a011?(_0x1e83e0[_0xa0a596]['end']=_0x3693e8,_0x4f73a4(_0x1e83e0[_0xa0a596]),_0x1e83e0[_0xa0a596]=null):_0x1e83e0[_0xa0a596]&&_0x44a011&&_0x1e83e0[_0xa0a596]['userId']!==_0x10e16f&&(_0x1e83e0[_0xa0a596]['end']=_0x3693e8,_0x3f37e6&&_0x3f37e6['userId']===_0x1e83e0[_0xa0a596]['userId']||_0x4f73a4(_0x1e83e0[_0xa0a596]),_0x1e83e0[_0xa0a596]={'start':_0x3693e8,'tapeItem':_0x1f40e2[_0x66c816],'userId':_0x10e16f,'type':_0xa0a596}),_0x1e83e0[_0xa0a596]&&_0x46ce4e&&('elementStart'!==_0x1f40e2[_0x66c816]['type']||_0x3f37e6&&_0x3f37e6['userId']===_0x10e16f||_0x7abe7d[_0xa0a596]['unshift']({'userId':_0x10e16f,'object':_0x1f40e2[_0x66c816]['item'],'change':_0x1e83e0[_0xa0a596]}),'elementEnd'===_0x1f40e2[_0x66c816]['type']&&_0x3f37e6&&_0x3f37e6['object']===_0x1f40e2[_0x66c816]['item']&&(_0x7abe7d[_0xa0a596]['shift'](),_0x1e83e0[_0xa0a596]=_0x3f37e6['change'])),_0x1e83e0[_0xa0a596]&&_0x560761&&(_0x1e83e0[_0xa0a596]['end']=_0x3b7ebe,_0x4f73a4(_0x1e83e0[_0xa0a596]),_0x1e83e0[_0xa0a596]=null);}function _0x4f73a4({start:_0xa6d265,end:_0x411462,tapeItem:_0x1c6632,userId:_0x295778,type:_0x3d10d6}){const _0x205567=_0x1c6632['item'],_0x2d309f=_0x2ddacc['schema']['isBlock'](_0x205567)&&!_0x2ddacc['schema']['isLimit'](_0x205567),_0x48d33e=_0xa6d265['nodeAfter']==_0x411462['parent']&&_0x411462['isAtStart'];if(_0x2d309f&&_0x48d33e)return;const _0x7fe220=_0x2ddacc['createRange'](_0xa6d265,_0x411462),_0xb979ea=_0x269858['get'](_0x295778),_0x4c5293=new r({'author':_0xb979ea,'type':'isAdded'==_0x3d10d6||'isAddSuggestion'==_0x3d10d6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3d10d6||'isRemoveSuggestion'==_0x3d10d6},'createdAt':new Date(),'rootName':_0x11ff9e});_0xf1502['push'](_0x4c5293),_0x46be92['markers']['set']('revision:'+_0x4c5293['id'],_0x7fe220);}function _0x315451(_0x178318,_0x440902){const _0x39d0c6=_0x178318['getAttributes'](),_0x2f5ba1=_0x440902['getAttributes']();for(const _0xbbf0c6 of _0x39d0c6){if(_0xbbf0c6[0x1]!==_0x440902['getAttribute'](_0xbbf0c6[0x0]))return!0x1;_0x2f5ba1['next']();}return _0x2f5ba1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x593bcc=>{const _0x347f04=_0x593bcc['markerName']['split'](':')[0x1],_0x305404=this['_getChangeFromId'](_0x347f04);if(!_0x305404)return null;const _0x277af8='add'==_0x305404['type']?'insertion':'deletion',_0x1dde7e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x277af8];return _0x305404['data']['isSuggestion']&&_0x1dde7e['push']('ck-suggestion-marker-'+_0x277af8+'-new'),this['activeChange']==_0x305404&&_0x1dde7e['push']('ck-suggestion-marker--active'),{'classes':_0x1dde7e,'attributes':{'data-change-id':_0x347f04}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5225d0=>{_0x5225d0['on']('element:pre',(_0x1593d0,_0x14f62b,_0x187b62)=>{const _0x29a375=_0x14f62b['viewItem']['getChild'](0x0);if(!_0x29a375||!_0x29a375['is']('element','code'))return;if(!_0x187b62['consumable']['consume'](_0x29a375,{'attributes':['vid_start','vid_end']}))return;const _0x41dee1=_0x14f62b['modelRange']['start']['nodeAfter'];_0x187b62['writer']['setAttribute']('vid_start',_0x29a375['getAttribute']('vid_start'),_0x41dee1),_0x187b62['writer']['setAttribute']('vid_end',_0x29a375['getAttribute']('vid_end'),_0x41dee1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x44597e=>{_0x44597e['on']('element',(_0x498c14,_0xb7bbff,_0x57fb7f)=>{if(!_0x57fb7f['consumable']['consume'](_0xb7bbff['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xb7bbff['modelRange']['isCollapsed'])return;const _0x516547=_0xb7bbff['modelRange']['start']['nodeAfter'];_0x516547['hasAttribute']('vid_start')||_0x516547['hasAttribute']('vid')||(_0x57fb7f['writer']['setAttribute']('vid_start',_0xb7bbff['viewItem']['getAttribute']('vid_start'),_0x516547),_0x57fb7f['writer']['setAttribute']('vid_end',_0xb7bbff['viewItem']['getAttribute']('vid_end'),_0x516547));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3c599f=>_0x3c599f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4166af,[,_0x49d8bf])=>{['vid_start','vid_end','vid']['includes'](_0x49d8bf)&&(_0x4166af['return']=!0x0,_0x4166af['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x303155=>{_0x303155['on']('attribute:vid',(_0x1aedef,_0x568e62,_0x11a5fe)=>{if('\x20'!=_0x568e62['item']['data']||_0x568e62['item']['parent']['maxOffset']>0x1)return;if(!_0x11a5fe['consumable']['consume'](_0x568e62['item'],_0x1aedef['name']))return;const _0x3f73bb=_0x11a5fe['writer'],_0x9f2cca=_0x11a5fe['mapper']['toViewRange'](_0x568e62['range']);_0x3f73bb['wrap'](_0x9f2cca,_0x3f73bb['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4380f0){const _0x2e1f60=_0x4380f0['plugins']['get']('RevisionViewer');return(_0x5a0af6,_0x517d37,_0x45c2bd)=>{const _0x46189f=_0x517d37['markerName']['split'](':')[0x1],_0x26f0e1=_0x2e1f60['_getChangeFromId'](_0x46189f);if(!_0x26f0e1)return null;const _0x3551f5='add'==_0x26f0e1['type']?'split':'merge';if(!_0x45c2bd['consumable']['test'](_0x517d37['markerRange'],_0x5a0af6['name']))return;const _0x41fb88=_0x517d37['markerRange']['getWalker'](),_0x2f763b=_0x517d37['markerRange']['start'],_0x393a3a=_0x4380f0['model']['schema'];let _0x2fc43c=null,_0x4d555f=null,_0x22c1e4=!0x1,_0x3b7745=!0x1;for(const _0x22a71a of _0x41fb88){const _0x2bce1c=_0x22a71a['item'];_0x22c1e4=_0x22c1e4||_0x393a3a['isContent'](_0x2bce1c);const _0x5ded12=_0x45c2bd['mapper']['toViewElement'](_0x2bce1c);if(_0x5ded12&&_0x5ded12['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22a71a['type']&&(_0x393a3a['isBlock'](_0x2bce1c)&&!_0x393a3a['isLimit'](_0x2bce1c)&&(_0x2bce1c['nextSibling']||_0x2f763b['isAtEnd']?_0x2fc43c&&_0x2fc43c['parent']==_0x2bce1c||(_0x2fc43c=_0x2bce1c,_0x32c1e5(_0x22a71a['previousPosition']),_0x3b7745=!0x0):_0x4d555f=_0x4d555f||_0x22a71a['previousPosition']));}function _0x32c1e5(_0x173a7b){const _0xc69f3e=_0x45c2bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3551f5}),_0x1b48b0=_0x45c2bd['mapper']['toViewPosition'](_0x173a7b);_0x26f0e1['data']['isSuggestion']&&_0x45c2bd['writer']['addClass']('ck-suggestion-marker-'+_0x3551f5+'-new',_0xc69f3e),_0x2e1f60['activeChange']==_0x26f0e1&&_0x45c2bd['writer']['addClass']('ck-suggestion-marker--active',_0xc69f3e),_0x45c2bd['writer']['insert'](_0x1b48b0,_0xc69f3e),_0x45c2bd['mapper']['bindElementToMarker'](_0xc69f3e,_0x517d37['markerName']);}_0x22c1e4||_0x3b7745||!_0x4d555f||_0x32c1e5(_0x4d555f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x8858f9,_0xbbded8,_0xb78a4c)=>{const _0x2894f4=_0xb78a4c['mapper']['markerNameToElements'](_0xbbded8['markerName']);if(_0x2894f4){for(const _0x2867d2 of _0x2894f4)(_0x2867d2['hasClass']('ck-suggestion-marker-split')||_0x2867d2['hasClass']('ck-suggestion-marker-merge'))&&(_0xb78a4c['mapper']['unbindElementFromMarkerName'](_0x2867d2,_0xbbded8['markerName']),_0xb78a4c['writer']['remove'](_0x2867d2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x429fe2,_0x36b748,_0x287499)=>{const _0x3bba43=_0x36b748['markerName']['split'](':')[0x1],_0xc01cb=this['_getChangeFromId'](_0x3bba43);if(!_0xc01cb)return null;const _0x154ef6='add'==_0xc01cb['type']?'split':'merge';if(_0x287499['consumable']['test'](_0x36b748['markerRange'],_0x429fe2['name']))for(const _0xffdd24 of _0x36b748['markerRange']['getItems']()){if(!_0xffdd24['is']('element','softBreak'))continue;const _0x208bd0=_0x287499['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x154ef6}),_0x30e38e=_0x287499['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xffdd24));_0xc01cb['data']['isSuggestion']&&_0x287499['writer']['addClass']('ck-suggestion-marker-'+_0x154ef6+'-new',_0x208bd0),this['activeChange']==_0xc01cb&&_0x287499['writer']['addClass']('ck-suggestion-marker--active',_0x208bd0),_0x287499['writer']['insert'](_0x30e38e,_0x208bd0),_0x287499['mapper']['bindElementToMarker'](_0x208bd0,_0x36b748['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x48ef6d=>{for(const _0x403ab3 of this['editor']['model']['document']['getRootNames']()){const _0x329cc6=this['editor']['model']['document']['getRoot'](_0x403ab3),_0x2dec89=this['editor']['editing']['view']['document']['getRoot'](_0x403ab3);if(_0x2dec89){const _0x291ae5=_0x329cc6['getAttribute']('revisionHistoryAttachChange');if(_0x48ef6d['removeAttribute']('data-change-id',_0x2dec89),_0x48ef6d['removeClass']('ck-revision-history-root-add',_0x2dec89),_0x48ef6d['removeClass']('ck-revision-history-root-remove',_0x2dec89),_0x48ef6d['removeClass']('ck-revision-history-root--active',_0x2dec89),_0x291ae5){const _0x1e9b78=this['_getChangeFromId'](_0x291ae5);if(!_0x1e9b78)return null;_0x48ef6d['setAttribute']('data-change-id',_0x291ae5,_0x2dec89),_0x48ef6d['addClass']('ck-revision-history-root-'+_0x1e9b78['type'],_0x2dec89),this['activeChange']==_0x1e9b78&&_0x48ef6d['addClass']('ck-revision-history-root--active',_0x2dec89);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2f06dd=>'revision-comment:'+_0x2f06dd,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5453fe=>'revision-suggestion:'+_0x5453fe,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2eb641=>({'name':'suggestion:'+_0x2eb641,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2833d5=>{const _0x38e32e=_0x2833d5['markerName']['split'](':')[0x1];return'insertion'!=_0x38e32e&&'deletion'!=_0x38e32e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x38e32e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2e2f14,_0x390c2d,_0x4b9906)=>{const _0x54e1d5=_0x4b9906['mapper']['markerNameToElements'](_0x390c2d['markerName']);if(_0x54e1d5){for(const _0x449a92 of _0x54e1d5)_0x449a92['is']('uiElement')&&(_0x4b9906['mapper']['unbindElementFromMarkerName'](_0x449a92,_0x390c2d['markerName']),_0x4b9906['writer']['remove'](_0x449a92));}},{'priority':'high'});}['_getChangeFromId'](_0x474688){return this['_changeIdToChange']['get'](_0x474688);}['_getViewForChange'](_0x2c0c27){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2c0c27),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x204ac5,_0x4f609d,_0x3b0ad7,_0x3b50ec)=>{_0x3b50ec&&this['_balloon']['remove'](_0x3b50ec),_0x3b0ad7&&(this['_balloon']['add']({'view':_0x3b0ad7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2154c0=this['editor']['editing'],_0x2a8413=this['_getChangeFromId'](_0x3b0ad7['changeId']);let _0x5e9578;if(_0x2a8413['data']['isOnRoot']){const _0x7c4e3b=_0x2154c0['view']['getDomRoot'](_0x2a8413['rootName']);_0x5e9578=Array['from'](_0x7c4e3b['getClientRects']());}else{const _0x59a1bf=this['editor']['model']['markers']['get']('revision:'+_0x3b0ad7['changeId']);_0x5e9578=Array['from'](_0x2154c0['mapper']['markerNameToElements'](_0x59a1bf['name']))['map'](_0x198a97=>_0x2154c0['view']['domConverter']['mapViewToDom'](_0x198a97))['map'](_0x244f37=>Array['from'](_0x244f37['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5e9578[0x0];return _0x5e9578['find'](_0x5ce3dc=>_0x5ce3dc['top']-0x3<=this['_activeViewTarget']['y']&&_0x5ce3dc['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5ce3dc['left']-0x3<=this['_activeViewTarget']['x']&&_0x5ce3dc['right']+0x3>=this['_activeViewTarget']['x'])||_0x5e9578[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x464bdc,_0x50eb2d,_0x1517ad,_0xc7be80)=>{this['activeView']=_0x1517ad?this['_getViewForChange'](_0x1517ad):null,this['editor']['model']['change'](()=>{const _0x13218f=this['editor']['editing'];_0xc7be80&&(_0xc7be80['data']['isOnRoot']?_0x13218f['view']['change'](_0x5a398d=>{_0x5a398d['removeClass']('ck-revision-history-root--active',_0x13218f['view']['document']['getRoot'](_0xc7be80['rootName']));}):_0x13218f['reconvertMarker']('revision:'+_0xc7be80['id'])),_0x1517ad&&(_0x1517ad['data']['isOnRoot']?_0x13218f['view']['change'](_0x2e32ba=>{_0x2e32ba['addClass']('ck-revision-history-root--active',_0x13218f['view']['document']['getRoot'](_0x1517ad['rootName']));}):_0x13218f['reconvertMarker']('revision:'+_0x1517ad['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3c38af,_0xb3cc38)=>{if(this['activeChange'])return;const _0x3a6a43=this['_findChangeIdFromDomTarget'](_0xb3cc38['target']),_0x3e7f3e=this['_changeIdToChange']['get'](_0x3a6a43);_0x3e7f3e?(this['_activeViewTarget']={'x':_0xb3cc38['domEvent']['x'],'y':_0xb3cc38['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3e7f3e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x24dfcf,_0x6fda4e)=>{const _0x401f2c=this['_findChangeIdFromDomTarget'](_0x6fda4e['target']),_0x46638a=this['_changeIdToChange']['get'](_0x401f2c);_0x46638a?(this['_activeViewTarget']={'x':_0x6fda4e['domEvent']['x'],'y':_0x6fda4e['domEvent']['y']},_0x46638a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x46638a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x19e7bd){do{const _0x1a1251=_0x19e7bd['getAttribute']('data-change-id');if(_0x1a1251)return _0x1a1251;_0x19e7bd=_0x19e7bd['parent'];}while(_0x19e7bd);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x768293=>{for(const _0x166716 of this['editor']['model']['markers'])_0x768293['removeMarker'](_0x166716);});}}function X(_0x5eed67,_0x1d80d8){return(_0x6d51f0,_0x6991dd,_0x33f789)=>{if(!_0x33f789['consumable']['test'](_0x6991dd['markerRange'],_0x6d51f0['name']))return;const _0x3fba22=_0x6991dd['markerRange']['getWalker'](),_0x4698e5=_0x6991dd['markerRange']['start'],_0x51e947=_0x5eed67['model']['schema'];let _0x53cbf2=null,_0x2c3a21=null,_0x4ca4e5=!0x1,_0x15b3b2=!0x1;for(const _0x5d1d28 of _0x3fba22){const _0x4d8108=_0x5d1d28['item'];_0x4ca4e5=_0x4ca4e5||_0x51e947['isContent'](_0x4d8108);const _0x56a9ad=_0x33f789['mapper']['toViewElement'](_0x4d8108);if(_0x56a9ad&&_0x56a9ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5d1d28['type']&&(_0x51e947['isBlock'](_0x4d8108)&&!_0x51e947['isLimit'](_0x4d8108)&&(_0x4d8108['nextSibling']||_0x4698e5['isAtEnd']?_0x53cbf2&&_0x53cbf2['parent']==_0x4d8108||(_0x53cbf2=_0x4d8108,_0x4c2bf2(_0x5d1d28['previousPosition']),_0x15b3b2=!0x0):_0x2c3a21=_0x2c3a21||_0x5d1d28['previousPosition']));}function _0x4c2bf2(_0x118ace){const _0x6dddb4=_0x33f789['mapper']['toViewPosition'](_0x118ace),_0x45f9cd=_0x33f789['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1d80d8});_0x33f789['writer']['insert'](_0x6dddb4,_0x45f9cd),_0x33f789['mapper']['bindElementToMarker'](_0x45f9cd,_0x6991dd['markerName']);}_0x4ca4e5||_0x15b3b2||!_0x2c3a21||_0x4c2bf2(_0x2c3a21);};}class wt extends _0x2815ab{constructor(_0x5c7da2){super(_0x5c7da2);const _0x505253=_0x5c7da2['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x505253,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x505253,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2a72f2=this['editor'],_0x40b278=_0x2a72f2['plugins']['get'](m),_0x2a0990=_0x40b278['isReady']?_0x40b278['diff']['newRevisionId']:null;_0x2a72f2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2a0990);}['refresh'](){const {isReady:_0x374d1a,isEnabled:_0x429cd4,repository:_0x3b6c7c,diff:_0x5dd83b}=this['editor']['plugins']['get'](m),_0x5121e0=_0x5dd83b&&_0x3b6c7c['getLaterVisibleRevision'](_0x5dd83b['newRevisionId']);this['isEnabled']=_0x374d1a&&_0x429cd4&&Boolean(_0x5121e0);}}class pt extends _0x2815ab{['_step'];constructor(_0xe0f80a,{direction:_0x1666fe}){super(_0xe0f80a);const _0x3b802c=_0xe0f80a['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x1666fe?0x1:-0x1,this['listenTo'](_0x3b802c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3b802c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3b802c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xc051bc=this['editor'],_0x20a31b=_0xc051bc['plugins']['get'](m),{isNavigationMode:_0x4eb4c0,currentChangeNumber:_0x43add2}=_0x20a31b;let _0x34f980;if(_0x20a31b['activeChange']=_0x4eb4c0?_0x20a31b['diff']['changes']['get'](_0x43add2+this['_step']):_0x20a31b['diff']['changes']['first'],_0x20a31b['activeChange']['data']['isOnRoot'])_0x34f980=_0xc051bc['editing']['view']['getDomRoot'](_0x20a31b['activeChange']['rootName']);else{const _0x52a3c0=_0xc051bc['model']['markers']['get']('revision:'+_0x20a31b['activeChange']['id']);_0x34f980=_0x3c2bc9(_0xc051bc['editing'],_0x52a3c0);}_0x2f2e96({'target':_0x34f980,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1f5af3,currentChangeNumber:_0x45b902,numberOfChanges:_0x55649f,isReady:_0x115457,isEnabled:_0x18ce95}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x18ce95&&_0x115457&&_0x55649f)&&(!_0x1f5af3||(0x1===this['_step']?_0x45b902<_0x55649f-0x1:_0x45b902>0x0));}}class li extends _0x4aa4e8{constructor(_0x1a4a33){super(_0x1a4a33);const _0x311e92=this['bindTemplate'],_0xfa8f1=new _0x3b1d40(_0x1a4a33),_0x134ed5=new _0x3b1d40(_0x1a4a33);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',(_0xfb46f2,_0x57cab4)=>_0xfb46f2&&_0x57cab4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3f7fd9,_0x27e0ba,_0x6be9f6,_0x3dfc52)=>{if(!_0x3f7fd9)return g(_0x1a4a33,'Loading...');if(!_0x6be9f6)return g(_0x1a4a33,'No\x20changes');const _0x17f870=g(_0x1a4a33,'NUMBER_OF_CHANGES',_0x6be9f6);return _0x3dfc52?g(_0x1a4a33,'X_OF_Y_CHANGES',[_0x27e0ba+0x1,_0x6be9f6]):_0x17f870;}),_0xfa8f1['set']({'label':g(_0x1a4a33,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x536b9d}),_0x134ed5['set']({'label':g(_0x1a4a33,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x285265}),_0xfa8f1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x134ed5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xfa8f1['on']('execute',()=>this['fire']('execute','backward')),_0x134ed5['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',_0x311e92['if']('_isStatusLabelVisible','ck-hidden',_0x5c7371=>!_0x5c7371)]},'children':[{'text':_0x311e92['to']('isNavigationMode',_0x4f8cf1=>_0x4f8cf1?g(_0x1a4a33,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x1a4a33,'Total')+':\x20')}]},{'text':_0x311e92['to']('_statusText')}]},new _0x391b17(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xfa8f1,_0x134ed5]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x23aa96{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x29b6aa=this['editor']['editing']['view'];_0x29b6aa['change'](_0x412999=>{for(const _0x5ee345 of _0x29b6aa['document']['roots'])_0x412999['addClass'](ce,_0x5ee345);});}['hide'](){const _0x52340e=this['editor']['editing']['view'];_0x52340e['change'](_0x1f4354=>{for(const _0x582b08 of _0x52340e['document']['roots'])_0x1f4354['removeClass'](ce,_0x582b08);});}}class R extends _0x23aa96{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x4ab2b1=this['editor'],_0x36876d=_0x4ab2b1['plugins']['get'](m),_0x2b6fca=_0x4ab2b1['plugins']['get'](le);_0x4ab2b1['ui']['componentFactory']['add']('exitToEditing',_0x1ce6c7=>{const _0x559127=new _0x3b1d40(_0x1ce6c7);return _0x559127['set']({'label':g(_0x1ce6c7,'Back\x20to\x20editing'),'icon':_0x1ea5d1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x559127,'execute',()=>{_0x4ab2b1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x559127;}),_0x4ab2b1['ui']['componentFactory']['add']('restoreRevision',_0x2305f5=>{const _0x562675=new _0x3b1d40(_0x2305f5);return _0x562675['set']({'label':g(_0x2305f5,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x562675['bind']('isEnabled')['to'](_0x4ab2b1['commands']['get']('restoreRevision')),this['listenTo'](_0x562675,'execute',()=>_0x4ab2b1['execute']('restoreRevision')),_0x562675;}),_0x4ab2b1['ui']['componentFactory']['add']('changesNavigation',_0x407e69=>{const _0x534934=new li(_0x407e69),_0x115f75=_0x4ab2b1['commands']['get']('showPreviousChange'),_0x51d7f8=_0x4ab2b1['commands']['get']('showNextChange');return _0x534934['bind']('isBackwardNavigationEnabled')['to'](_0x115f75,'isEnabled'),_0x534934['bind']('isForwardNavigationEnabled')['to'](_0x51d7f8,'isEnabled'),_0x534934['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x36876d),this['listenTo'](_0x534934,'execute',(_0x10c3d6,_0xac435c)=>{_0x4ab2b1['execute']('forward'===_0xac435c?'showNextChange':'showPreviousChange');}),_0x534934;}),_0x2b6fca['show'](),_0x36876d['on']('change:isReady',(_0x294e76,_0x1f8017,_0x18f7c7)=>{_0x18f7c7?_0x2b6fca['hide']():_0x2b6fca['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x5e0aa5,_0x452cc2){super(_0x5e0aa5,_0x452cc2);const _0xc1bad2=this['bindTemplate'];this['set']({'label':g(_0x5e0aa5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5e0aa5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xc1bad2['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 _0x5689ca=this['fieldView']['element'];this['_tooltipString']=_0x5689ca['scrollWidth']>_0x5689ca['clientWidth']&&_0x5689ca['value']||'';}}class oi extends _0x4aa4e8{constructor(_0x4111b4,_0x264413,_0xbee999){super(_0x4111b4);const _0x45fc19=new _0x573a08();_0x45fc19['set']({'content':_0x49e023,'viewBox':'0\x200\x2011\x2010'});const _0x354ba7=['ck','ck-revision-history-sidebar__revision-author'];_0xbee999&&_0x354ba7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1f7a1e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4111b4,_0xbee999?'Revision\x20creator':'Revision\x20author')},'children':[_0x45fc19,_0x264413['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x354ba7},'children':_0x1f7a1e});}}function ni(_0x38c347,_0x61cc2a){const _0x3c0482=_0x38c347['bindTemplate'],_0x2a9b40=_0x38c347['locale'],_0x1d81e2=_0x4a74fb(_0x2a9b40);_0x1d81e2['panelPosition']='sw';const _0x1c2e79=function(_0x43ef93,_0x295a42){const _0x191fa2=function(_0x3d4db5,_0x27415a){const _0x3027b2=_0x3d4db5['locale'],_0x225f1d={'Compare\x20against\x20selected':g(_0x3027b2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3027b2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3027b2,'Restore\x20this\x20revision')};return _0x27415a['map'](_0x217e79=>{const _0x29d1ac=_0x225f1d[_0x217e79['name']];return _0x29d1ac&&_0x29d1ac!==_0x217e79['name']&&(_0x217e79['name']=_0x29d1ac),_0x217e79;});}(_0x43ef93,_0x295a42),_0x510c2e=new _0x69516b();for(const _0x518de0 of _0x191fa2){const _0x29c602={'type':'button','model':new to({'label':_0x518de0['name'],'class':_0x518de0['class'],'withText':!0x0,'role':'menuitem','_action':_0x518de0['action']})};_0x29c602['model']['bind']('isEnabled')['to'](_0x43ef93,'isActionsDropdownOpen',_0x35188b=>'function'!=typeof _0x518de0['isEnabled']||(!_0x35188b||_0x518de0['isEnabled'](_0x43ef93))),_0x510c2e['add'](_0x29c602);}return _0x510c2e;}(_0x38c347,_0x61cc2a);return _0x38c347['bind']('isActionsDropdownOpen')['to'](_0x1d81e2,'isOpen'),_0x1d81e2['buttonView']['set']({'label':g(_0x2a9b40,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x43079a}),_0x1d81e2['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3c0482['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3c0482['to'](_0x5761fb=>_0x5761fb['stopPropagation']())}}),_0x1d81e2['on']('execute',_0xe0d74f=>{_0x38c347['isReady']&&'function'==typeof _0xe0d74f['source']['_action']&&_0xe0d74f['source']['_action'](_0x38c347);}),_0x15f5b3(_0x1d81e2,_0x1c2e79,{'role':'menu'}),_0x1d81e2['listenTo'](_0x38c347,'change:isActionsDropdownOpen',(_0x27d02c,_0x292ec8,_0x44122a)=>{if(_0x44122a)for(const _0x32e909 of _0x1d81e2['listView']['items']){const _0x18de03=_0x32e909['children']['first'],_0x1a0f65=_0x61cc2a['find'](_0x595dd9=>_0x595dd9['action']===_0x18de03['_action'])['isVisible'];_0x32e909['isVisible']=void 0x0===_0x1a0f65||_0x1a0f65(_0x38c347);}}),_0x1d81e2;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3012aa(_0x4aa4e8){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3c1594,_0x2aebc2,_0x1d4bfa,_0x2bb933){super(_0x3c1594);const _0x514ef8=this['bindTemplate'],_0x9f4163=function(_0x1470c5,_0x5d55d0){const _0x2d4490=Array['from'](_0x5d55d0['authors'])['filter'](_0xfa9e2f=>_0xfa9e2f!=_0x5d55d0['creator']);return _0x5d55d0['creator']&&_0x2d4490['unshift'](_0x5d55d0['creator']),_0x2d4490['map'](_0x97de61=>new oi(_0x1470c5,_0x97de61,_0x97de61==_0x5d55d0['creator']));}(_0x3c1594,_0x2aebc2);this['id']=_0x2aebc2['id'],this['_revision']=_0x2aebc2,this['_requireRevisionName']=_0x2bb933,this['bind']('name','createdAt')['to'](_0x2aebc2),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x54ab18=>{return _0x1a2f9b=_0x3c1594['uiLanguage'],(_0x352787=_0x54ab18)['toLocaleDateString'](_0x1a2f9b,{'month':'long','day':'numeric'})+',\x20'+_0x352787['toLocaleTimeString'](_0x1a2f9b,{'hour':'numeric','minute':'numeric'});var _0x1a2f9b,_0x352787;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x3c1594,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x55a3fb=>_0x55a3fb||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x16894c,_0x42c20e)=>_0x16894c&&_0x42c20e),this['revisionActionsView']=_0x1d4bfa&&_0x1d4bfa['length']?ni(this,_0x1d4bfa):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x514ef8['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x514ef8['if']('isEnabled','ck-disabled',_0x30d6dd=>!_0x30d6dd),_0x514ef8['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x514ef8['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x514ef8['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':_0x514ef8['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':_0x9f4163}]},this['revisionActionsView']],'on':{'click':_0x514ef8['to'](_0xf1d7a=>{_0xf1d7a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x13270f=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x13270f,'change',()=>{this['_requireRevisionName']&&!_0x13270f['value']||this['fire']('setName',{'id':this['id'],'name':_0x13270f['value']}),_0x13270f['value']||(_0x13270f['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x1b1e5c,_0x1e09cc){const _0x2c6132=_0x5c5aaa['fromJSDate'](_0x1b1e5c)['setLocale'](_0x1e09cc),_0x15d0ac=_0x5c5aaa['local'](),_0x42cc03=_0x15d0ac['minus']({'days':0x1})['startOf']('day');let _0x1e135d,_0x42e281;return _0x2c6132['hasSame'](_0x15d0ac,'day')?(_0x1e135d=_0x2c6132['startOf']('day')['toJSDate'](),_0x42e281=_0x2c6132['toRelativeCalendar']()):_0x2c6132['hasSame'](_0x42cc03,'day')?(_0x1e135d=_0x42cc03['toJSDate'](),_0x42e281=_0x2c6132['toRelativeCalendar']()):_0x2c6132['hasSame'](_0x15d0ac,'week')?(_0x1e135d=_0x2c6132['startOf']('week')['toJSDate'](),_0x42e281=_0x2c6132['weekdayLong']||''):_0x2c6132['hasSame'](_0x15d0ac,'year')?(_0x1e135d=_0x2c6132['startOf']('month')['toJSDate'](),_0x42e281=_0x2c6132['monthLong']||''):(_0x1e135d=_0x2c6132['startOf']('year')['toJSDate'](),_0x42e281=String(_0x2c6132['year'])),{'startDate':_0x1e135d,'localizedPeriodName':_0x42e281};}class _i extends _0x4aa4e8{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x275939,_0x1a5624,_0x2e6c95,_0x3ddf19){super(_0x275939);const _0x1a4cf9=mi(_0x1a5624,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1a5624,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2e6c95,this['_requireRevisionName']=_0x3ddf19,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':_0x1a4cf9}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x10da1a){const _0x2d53ce=new ai(this['locale'],_0x10da1a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2d53ce);}['removeRevision'](_0x29fbf0){const _0x368ccc=this['revisionViews']['find'](_0x1db244=>_0x1db244['id']===_0x29fbf0['id']);this['revisionViews']['remove'](_0x368ccc);}}class as extends _0x4aa4e8{constructor(_0x4c4a08){super(_0x4c4a08);const _0x360611=new _0x573a08();_0x360611['content']=_0x521926,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x360611,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x4c4a08,'Revision\x20history')]}]});}}class vi extends _0x4aa4e8{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1fb6cf,_0x2203bf,_0x52a53e,_0x1965e0){super(_0x1fb6cf);const _0x3fa16f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2203bf,this['_revisionActions']=_0x52a53e,this['_requireRevisionName']=_0x1965e0,this['on']('select',(_0x267200,_0x1b0b02)=>{this['fire']('revisionSelected',_0x1b0b02);}),this['on']('setName',(_0x5522ce,_0x1ba016)=>{this['fire']('revisionSetName',_0x1ba016);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x1fb6cf),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3fa16f['if']('isEnabled','ck-disabled',_0x18c029=>!_0x18c029)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x171f2e of this['_revisions'])this['_addRevision'](_0x171f2e);this['_revisions']['on']('add',(_0x1f957d,_0x3a261d)=>{this['_addRevision'](_0x3a261d);}),this['_revisions']['on']('remove',(_0x4dc086,_0x1222c4)=>{this['_removeRevision'](_0x1222c4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x22f493=>_0x22f493['revisionViews']['map'](_0x3c0363=>_0x3c0363))['flat']();}['selectRevision'](_0x4afa85){for(const _0x5c722a of this['revisionViews'])_0x4afa85&&_0x4afa85['id']===_0x5c722a['id']?_0x5c722a['select']():_0x5c722a['deselect']();}['highlightRevisions'](_0x1f6a0b){for(const _0x4a5e3b of this['revisionViews'])_0x1f6a0b['some'](({id:_0x542da4})=>_0x542da4===_0x4a5e3b['id'])?_0x4a5e3b['highlight']():_0x4a5e3b['unhighlight']();}['_addRevision'](_0x54c5a2){const _0x26cd16=mi(_0x54c5a2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x7cba30=this['timePeriodViews']['get'](0x0);_0x7cba30&&_0x7cba30['startDate']['getTime']()===_0x26cd16['getTime']()||(_0x7cba30=new _i(this['locale'],_0x26cd16,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x7cba30)),_0x7cba30['addRevision'](_0x54c5a2);}['_removeRevision'](_0x56c704){const _0x41dcd3=mi(_0x56c704['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x41dcd3)['removeRevision'](_0x56c704);}['_getTimePeriodViewByStartDate'](_0x14461f){return this['timePeriodViews']['find'](_0x59adce=>_0x59adce['startDate']['getTime']()===_0x14461f['getTime']());}}class d extends _0x23aa96{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x1df5e0(_0x33974a){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4cc05e,_0x31788d){super(_0x31788d),this['sourceElement']=_0x4cc05e,this['model']['document']['createRoot']();const _0x72c654=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x72c654);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x201e7c,_0x59bb95){const _0x17038f=new this(_0x201e7c,_0x59bb95);return await _0x17038f['initPlugins'](),await _0x17038f['ui']['init'](_0x201e7c),await _0x17038f['data']['init'](_0x17038f['config']['get']('initialData')||''),_0x17038f['fire']('ready'),_0x17038f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4e23c9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ba781){function _0x1324c9(_0x352be7){return _0x352be7['map'](_0x404b0f=>String['fromCharCode'](_0x404b0f))['join']('');}super(_0x4ba781),this['result']='end',_0x4ba781[_0x1324c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1324c9([0x76,0x69,0x65,0x77])][_0x1324c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1324c9([0x61,0x75,0x74,0x6f]),_0x4ba781[_0x1324c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1324c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1324c9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1324c9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1324c9([0x6f,0x6b])});}}class k extends _0x4e23c9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x32cab4){if(super(_0x32cab4),!this['editor']['config']['get']('revisionHistory'))throw new _0x5c9d7f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x49c21b=>this['_showRevisionViewer']({..._0x49c21b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xccc3a=>this['_closeRevisionViewer'](_0xccc3a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x430cdb=>this['_restoreRevision'](_0x430cdb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3a535b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3a535b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1c58fb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1c58fb);}['getRevision'](_0x94bd6c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x94bd6c);}['getRevisions'](_0x235674){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x235674||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4517e9=this['editor'],_0x427fb6=_0x43bed1(_0x4517e9,p),_0xf2ec6b=_0x4517e9['plugins']['get']('RevisionTracker'),_0x2c0304=_0x4517e9['plugins']['get']('Users')['users'];return _0x427fb6['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x427fb6['lazyRoots'],(_0x427fb6['plugins']['push'](_t,m,R,class extends _0x4e23c9{static get['requires'](){return[m,'Users'];}['init'](){const _0x34caa6=this['editor']['plugins']['get']('Users');for(const _0x563248 of _0x2c0304)_0x563248['isAnonymous']||_0x34caa6['getUser'](_0x563248['id'])||_0x34caa6['addUser'](_0x563248);const _0x441f43=_0xf2ec6b['repository']['getRevisions']();let _0x29e82c=null;const _0xc1d007=this['editor']['plugins']['get']('RevisionViewer');_0xc1d007['adapter']=_0xf2ec6b['adapter'],_0xc1d007['bind']('isEnabled')['to'](_0xf2ec6b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4517e9,'isReadOnly',_0x4179dd=>!_0x4179dd);for(const _0x4e9369 of _0x441f43){const _0x56ee92=null===_0x4e9369['creator'];if(_0x56ee92&&_0x4e9369['toVersion']===_0x4e9369['fromVersion'])continue;const _0x27a4bc=_0x4e9369['toJSON']();_0xc1d007['addRevisionData'](_0x27a4bc,(_0xb92818,_0xf63a02,_0x2ede12)=>{if(_0x56ee92){if(_0x29e82c)_0x29e82c['_update'](_0xb92818,_0xf63a02);else{if(!_0xf63a02){const _0x132607=_0x2ede12['toJSON']();_0x132607['id']=_0x5a7eff(),_0xf2ec6b['saveRevision'](_0x132607,_0x2ede12['toVersion'])['then'](_0x4f9724=>{_0x29e82c=_0x4f9724;});}}}else _0x4e9369['_update'](_0xb92818,_0xf63a02);});}}},d),_0x427fb6);}['_enhanceShowRevisionViewerCallback'](){const _0x33a250=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x41d827=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4b77e3=this['editor']['plugins']['get']('Autosave');await _0x4b77e3['save']();}else await _0x41d827['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1b0eca=this['editor']['plugins']['get']('Dialog');_0x1b0eca['isOpen']&&_0x1b0eca['hide']();}const _0x190f52=this['_getRevisionViewerEditorConfig']();return _0x33a250(_0x190f52)['then'](_0x3d33d2=>{return(this['_viewerEditor']=_0x3d33d2,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3d33d2);})['catch'](_0x1617e5=>(console['error'](_0x1617e5),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x27040a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x27040a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3417f5=this['editor']['plugins']['get']('Annotations');_0x3417f5['refreshVisibility'](),_0x3417f5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x44cc8a){const _0x299967=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5c8c94=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x611826=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x611826,_0x44cc8a)['then'](_0x22141c=>(_0x5c8c94['style']['display']='block',_0x299967['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x22141c));}['_closeRevisionViewer'](_0x15b51d){const _0x4269f5=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4269f5['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x15b51d['destroy']();}async['_restoreRevision'](_0x2bd6bb){const _0x1e1b34=this['editor'],_0x16a4a2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1a9421=_0x1e1b34['plugins']['get']('RevisionTracker'),_0x2174c3=_0x1e1b34['plugins']['get']('RevisionHistoryUtils'),_0x15402f=_0x16a4a2['repository']['getRevision'](_0x2bd6bb);let _0x3e97bf,_0x529749,_0x385f47;try{await _0x2174c3['loadRevisionData'](_0x15402f,this['adapter']),_0x3e97bf=_0x2174c3['getRevisionDocumentData'](_0x15402f),_0x529749=_0x2174c3['getRevisionRootsAttributes'](_0x15402f);}catch(_0x19d67c){return void console['error'](_0x19d67c);}_0x1e1b34['model']['change'](_0x469c46=>{for(const _0x4180f1 of Array['from'](_0x1e1b34['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x469c46['removeMarker'](_0x4180f1);}),_0x16a4a2['isReady']=!0x1,_0x1e1b34['model']['enqueueChange'](_0xb62c4c=>{_0xb62c4c['setSelection'](null),_0xb62c4c['removeSelectionAttribute'](_0x1e1b34['model']['document']['selection']['getAttributeKeys']());const _0x5e9507=Object['keys'](_0x3e97bf);for(const _0x19ac78 of _0x1e1b34['model']['document']['roots'])'$graveyard'!=_0x19ac78['rootName']&&_0x19ac78['isAttached']()&&!_0x5e9507['includes'](_0x19ac78['rootName'])&&_0xb62c4c['detachRoot'](_0x19ac78);for(const _0x543885 of _0x5e9507){let _0x41dab5=_0x1e1b34['model']['document']['getRoot'](_0x543885);_0x41dab5&&_0x41dab5['isAttached']()||(_0x41dab5=_0xb62c4c['addRoot'](_0x543885));const _0x3b907e=_0x529749[_0x543885],_0x4f6cad=Object['keys'](_0x3b907e),_0x44a854=_0x3e97bf[_0x543885];for(const _0x885207 of _0x41dab5['getAttributeKeys']())_0x4f6cad['includes'](_0x885207)||_0xb62c4c['removeAttribute'](_0x885207,_0x41dab5);for(const _0xfac657 of _0x4f6cad)_0xb62c4c['setAttribute'](_0xfac657,_0x529749[_0x543885][_0xfac657],_0x41dab5);_0xb62c4c['remove'](_0xb62c4c['createRangeIn'](_0x41dab5)),_0xb62c4c['insert'](_0x1e1b34['data']['parse'](_0x44a854,_0x41dab5),_0x41dab5,0x0);}});const _0x53ccc4=g(_0x1e1b34['locale'],'Restored');if(_0x15402f['name'])_0x385f47=-0x1==_0x15402f['name']['indexOf'](_0x53ccc4)?_0x53ccc4+':\x20'+_0x15402f['name']:_0x15402f['name'];else _0x385f47=_0x53ccc4+':\x20'+(_0x15402f['createdAt']['toLocaleDateString'](_0x1e1b34['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x15402f['createdAt']['toLocaleTimeString'](_0x1e1b34['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1a9421['saveRevision']({'name':_0x385f47}),_0x16a4a2['isReady']=!0x0,_0x1e1b34['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x1c2fb5){super(_0x1c2fb5),this['_revisionViewer']=_0x1c2fb5['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x30bebc=this['_revisionsRepository']['_revisions'],_0x1ef5c2=this['_createRevisionActions'](),_0x112c4b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x30bebc,_0x1ef5c2,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',(_0x568df6,_0x4a6e63)=>{_0x4a6e63['revisionViews']['on']('add',(_0x14e299,_0x1f0259)=>{_0x1f0259['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)),_0x112c4b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x24acbd=this['_revisionsRepository']['getRevision'](0x0);if(_0x24acbd){const _0x461294=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x24acbd['id']);this['_revisionViewer']['compare'](_0x24acbd,_0x461294);}}['_handleRevisionSelected'](_0x357b09,_0x5eaa84){const _0x173dfb=this['_revisionsRepository']['getRevision'](_0x5eaa84['id']),_0x2d0607=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x173dfb['id']);this['_revisionViewer']['compare'](_0x173dfb,_0x2d0607);}['_handleRevisionSetName'](_0x98c42d,_0x165dd9){this['_revisionsRepository']['getRevision'](_0x165dd9['id'])['setName'](_0x165dd9['name']);}['_handleDiffChange'](_0x4fc69c,_0x2b73fa,_0x34df7){const _0x3029d5=this['_revisionsRepository']['getRevisionsInDiff'](_0x34df7);_0x3029d5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3029d5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3029d5[0x0]));}['_createRevisionActions'](){const _0xae128=this['editor'],_0x2ebeed=d['availableRevisionActions'],_0x2fb19a=_0xae128['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x2fb19a['length'])return _0x2fb19a['map'](_0xb1b8a1=>{const _0x1cd1b7='string'==typeof _0xb1b8a1?Object['assign']({},_0x2ebeed[_0xb1b8a1]):_0xb1b8a1;return _0x1cd1b7['action']=_0x1cd1b7['action']['bind'](this,_0xae128),_0x1cd1b7['isVisible']&&(_0x1cd1b7['isVisible']=_0x1cd1b7['isVisible']['bind'](this,_0xae128)),_0x1cd1b7;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xc4e9f9},_0x3e210f)=>{const _0x48d22a=_0xc4e9f9['get'](m),_0x54d82a=_0x48d22a['repository'];let _0x9f514e=_0x48d22a['diff']['newRevisionId'],_0x1e9a1a=_0x3e210f['id'];_0x54d82a['getIndex'](_0x9f514e)>_0x54d82a['getIndex'](_0x1e9a1a)&&([_0x9f514e,_0x1e9a1a]=[_0x1e9a1a,_0x9f514e]),_0x48d22a['compare'](_0x9f514e,_0x1e9a1a);},'isVisible':({plugins:_0x5b9d88},_0x45332e)=>{const _0x415f0d=_0x5b9d88['get'](m);return!(_0x415f0d['repository']['getRevisionsInDiff'](_0x415f0d['diff'])['length']>0x2)&&!_0x45332e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4e8889,{id:_0x146f6c})=>{_0x4e8889['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x146f6c);},'isVisible':({plugins:_0x299767},_0x3a77ec)=>!!_0x299767['get'](m)['repository']['getLaterVisibleRevision'](_0x3a77ec['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x549738},{id:_0x2cac58,revisionNameView:_0x27653})=>{const _0x4b52b3=_0x549738['get'](m),_0x1b1182=_0x4b52b3['repository']['getEarlierVisibleRevision'](_0x2cac58);_0x4b52b3['compare'](_0x2cac58,_0x1b1182),_0x27653['focus'](),_0x27653['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x150ae9,_0x134e34){super(_0x150ae9),this['_view']=_0x134e34,this['_toolbarConfig']=et(_0x150ae9['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x3e616d){const _0x5223fe=this['editor'],_0x29de6c=this['view'],_0x388161=_0x5223fe['editing']['view'],_0x41e8ea=_0x29de6c['editable'],_0x2ab7aa=_0x388161['document']['getRoot']();_0x41e8ea['name']=_0x2ab7aa['rootName'],_0x29de6c['render']();const _0x27f638=_0x41e8ea['element'];this['setEditableElement'](_0x41e8ea['name'],_0x27f638),_0x29de6c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x388161['attachDomRoot'](_0x27f638),this['_elementReplacer']['replace'](_0x3e616d,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1b5d86=this['view'],_0x534b65=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x534b65['detachDomRoot'](_0x1b5d86['editable']['name']),_0x1b5d86['destroy']();}['_initToolbar'](){const _0xd98c17=this['view'];_0xd98c17['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xd98c17['stickyPanel']['limiterElement']=_0xd98c17['element'],_0xd98c17['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xbe6b4a})=>_0xbe6b4a),_0xd98c17['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xd98c17['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2baa6b,_0x157862,_0x4e8fc4={}){super(_0x2baa6b),this['stickyPanel']=new ht(_0x2baa6b),this['toolbar']=new dt(_0x2baa6b,{'shouldGroupWhenFull':_0x4e8fc4['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x2baa6b,_0x157862);}['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
|
+
_0x223e5e(_0x682623){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xc1124b,_0x31b213){super(_0x31b213),this['sourceElement']=_0xc1124b,this['model']['document']['createRoot']();const _0x4c05da=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4c05da);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x90fb36,_0x491d6e){const _0x342f42=new this(_0x90fb36,_0x491d6e);return await _0x342f42['initPlugins'](),await _0x342f42['ui']['init'](_0x90fb36),await _0x342f42['data']['init'](_0x342f42['config']['get']('initialData')||''),_0x342f42['fire']('ready'),_0x342f42;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x23aa96{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ad9c1){function _0x5d1c70(_0x18d74b){return _0x18d74b['map'](_0x5499f7=>String['fromCharCode'](_0x5499f7))['join']('');}super(_0x1ad9c1),this['result']='end',_0x1ad9c1[_0x5d1c70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d1c70([0x76,0x69,0x65,0x77])][_0x5d1c70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d1c70([0x61,0x75,0x74,0x6f]),_0x1ad9c1[_0x5d1c70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5d1c70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d1c70([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5d1c70([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5d1c70([0x6f,0x6b])});}}class k extends _0x23aa96{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x98af94){if(super(_0x98af94),!this['editor']['config']['get']('revisionHistory'))throw new _0x5029e0('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xf21d1d=>this['_showRevisionViewer']({..._0xf21d1d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2a37cb=>this['_closeRevisionViewer'](_0x2a37cb)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x44ef49=>this['_restoreRevision'](_0x44ef49)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x12b7c5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x12b7c5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x272f63){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x272f63);}['getRevision'](_0x513e17){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x513e17);}['getRevisions'](_0x325a67){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x325a67||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5515c5=this['editor'],_0x29c5ee=_0x2c70c5(_0x5515c5,p),_0x512120=_0x5515c5['plugins']['get']('RevisionTracker'),_0x15532e=_0x5515c5['plugins']['get']('Users')['users'];return _0x29c5ee['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x29c5ee['lazyRoots'],(_0x29c5ee['plugins']['push'](yt,m,R,class extends _0x23aa96{static get['requires'](){return[m,'Users'];}['init'](){const _0x480fd0=this['editor']['plugins']['get']('Users');for(const _0xc43b52 of _0x15532e)_0xc43b52['isAnonymous']||_0x480fd0['getUser'](_0xc43b52['id'])||_0x480fd0['addUser'](_0xc43b52);const _0x19c5d4=_0x512120['repository']['getRevisions']();let _0x546e03=null;const _0x5c5994=this['editor']['plugins']['get']('RevisionViewer');_0x5c5994['adapter']=_0x512120['adapter'],_0x5c5994['bind']('isEnabled')['to'](_0x512120),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5515c5,'isReadOnly',_0x294186=>!_0x294186);for(const _0x5b6dce of _0x19c5d4){const _0x4a6e5d=null===_0x5b6dce['creator'];if(_0x4a6e5d&&_0x5b6dce['toVersion']===_0x5b6dce['fromVersion'])continue;const _0x4dc105=_0x5b6dce['toJSON']();_0x5c5994['addRevisionData'](_0x4dc105,(_0x219c17,_0x1d14c7,_0x25f2b4)=>{if(_0x4a6e5d){if(_0x546e03)_0x546e03['_update'](_0x219c17,_0x1d14c7);else{if(!_0x1d14c7){const _0x2beb1d=_0x25f2b4['toJSON']();_0x2beb1d['id']=_0x16f76d(),_0x512120['saveRevision'](_0x2beb1d,_0x25f2b4['toVersion'])['then'](_0x39e279=>{_0x546e03=_0x39e279;});}}}else _0x5b6dce['_update'](_0x219c17,_0x1d14c7);});}}},d),_0x29c5ee);}['_enhanceShowRevisionViewerCallback'](){const _0x4dc76a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x373bf4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x54bb6d=this['editor']['plugins']['get']('Autosave');await _0x54bb6d['save']();}else await _0x373bf4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5adf76=this['editor']['plugins']['get']('Dialog');_0x5adf76['isOpen']&&_0x5adf76['hide']();}const _0x1d6cf4=this['_getRevisionViewerEditorConfig']();return _0x4dc76a(_0x1d6cf4)['then'](_0x295a1e=>{return(this['_viewerEditor']=_0x295a1e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x295a1e);})['catch'](_0x15019c=>(console['error'](_0x15019c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x79f5cb=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x79f5cb(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x465cd3=this['editor']['plugins']['get']('Annotations');_0x465cd3['refreshVisibility'](),_0x465cd3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4d86a3){const _0x2cc536=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4f6327=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xee1b6a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xee1b6a,_0x4d86a3)['then'](_0x2051f6=>(_0x4f6327['style']['display']='block',_0x2cc536['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2051f6));}['_closeRevisionViewer'](_0x5b19a7){const _0x5d42c4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5d42c4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5b19a7['destroy']();}async['_restoreRevision'](_0x416751){const _0x483914=this['editor'],_0x38cf1e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x24df48=_0x483914['plugins']['get']('RevisionTracker'),_0x5e4c0f=_0x483914['plugins']['get']('RevisionHistoryUtils'),_0x16f491=_0x38cf1e['repository']['getRevision'](_0x416751);let _0x3edf01,_0x153290,_0x345177;try{await _0x5e4c0f['loadRevisionData'](_0x16f491,this['adapter']),_0x3edf01=_0x5e4c0f['getRevisionDocumentData'](_0x16f491),_0x153290=_0x5e4c0f['getRevisionRootsAttributes'](_0x16f491);}catch(_0x385835){return void console['error'](_0x385835);}_0x483914['model']['change'](_0x1438bd=>{for(const _0x3cf014 of Array['from'](_0x483914['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1438bd['removeMarker'](_0x3cf014);}),_0x38cf1e['isReady']=!0x1,_0x483914['model']['enqueueChange'](_0x1d2e6a=>{_0x1d2e6a['setSelection'](null),_0x1d2e6a['removeSelectionAttribute'](_0x483914['model']['document']['selection']['getAttributeKeys']());const _0x276156=Object['keys'](_0x3edf01);for(const _0x1c1851 of _0x483914['model']['document']['roots'])'$graveyard'!=_0x1c1851['rootName']&&_0x1c1851['isAttached']()&&!_0x276156['includes'](_0x1c1851['rootName'])&&_0x1d2e6a['detachRoot'](_0x1c1851);for(const _0xdfab13 of _0x276156){let _0x5dfe24=_0x483914['model']['document']['getRoot'](_0xdfab13);_0x5dfe24&&_0x5dfe24['isAttached']()||(_0x5dfe24=_0x1d2e6a['addRoot'](_0xdfab13));const _0x16d140=_0x153290[_0xdfab13],_0x6da8e9=Object['keys'](_0x16d140),_0x244820=_0x3edf01[_0xdfab13];for(const _0x3d024a of _0x5dfe24['getAttributeKeys']())_0x6da8e9['includes'](_0x3d024a)||_0x1d2e6a['removeAttribute'](_0x3d024a,_0x5dfe24);for(const _0x4c25f4 of _0x6da8e9)_0x1d2e6a['setAttribute'](_0x4c25f4,_0x153290[_0xdfab13][_0x4c25f4],_0x5dfe24);_0x1d2e6a['remove'](_0x1d2e6a['createRangeIn'](_0x5dfe24)),_0x1d2e6a['insert'](_0x483914['data']['parse'](_0x244820,_0x5dfe24),_0x5dfe24,0x0);}});const _0x28a876=g(_0x483914['locale'],'Restored');if(_0x16f491['name'])_0x345177=-0x1==_0x16f491['name']['indexOf'](_0x28a876)?_0x28a876+':\x20'+_0x16f491['name']:_0x16f491['name'];else _0x345177=_0x28a876+':\x20'+(_0x16f491['createdAt']['toLocaleDateString'](_0x483914['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x16f491['createdAt']['toLocaleTimeString'](_0x483914['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x24df48['saveRevision']({'name':_0x345177}),_0x38cf1e['isReady']=!0x0,_0x483914['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|