@ckeditor/ckeditor5-revision-history 44.3.0-alpha.1 → 44.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x2332e5(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x57fdad){super(),this['id']=_0x57fdad['id']||_0x52d906(),this['creator']=_0x57fdad['creator']||null,this['authors']=_0x57fdad['authors']||[],this['diffData']=_0x57fdad['diffData']||null,this['toVersion']=_0x57fdad['toVersion']||0x0,this['fromVersion']=_0x57fdad['fromVersion']||0x0,this['set']('name',_0x57fdad['name']||''),this['set']('createdAt',_0x57fdad['createdAt']||new Date()),this['set']('attributes',_0x57fdad['attributes']||{});}['setName'](_0x3b2b39){this['_update']({'name':_0x3b2b39});}['setAttribute'](_0x3e571b,_0x445a7c){const _0x168c6d=_0x5af04f(this['attributes']);_0x3d3cf1(_0x168c6d,_0x3e571b,_0x445a7c),this['_update']({'attributes':_0x168c6d});}['removeAttribute'](_0x299007){const _0x3cdc61=_0x5af04f(this['attributes']);_0xdbbb68(_0x3cdc61,_0x299007),this['_update']({'attributes':_0x3cdc61});}['_update'](_0x3c36ad,_0x522239=!0x1){let _0xe34e1d=!0x1;const _0x2a88fd={'id':this['id']},_0x5e6fce=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x42adee of _0x5e6fce){const _0x14b53b=_0x3c36ad[_0x42adee];void 0x0!==_0x14b53b&&_0x14b53b!==this[_0x42adee]&&(this[_0x42adee]=_0x14b53b,_0x2a88fd[_0x42adee]=_0x14b53b,_0xe34e1d=!0x0);}_0xe34e1d&&(_0x2a88fd['authors']&&(_0x2a88fd['authorsIds']=_0x2a88fd['authors']['map'](_0xf4fd00=>_0xf4fd00['id']),delete _0x2a88fd['authors']),this['fire']('_update',_0x2a88fd,_0x522239));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x29fb7e=>_0x29fb7e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x361651{['_revisions'];static get['requires'](){return[_0x176997];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3289c8){super(_0x3289c8),this['_revisions']=new _0x2ebcff();}['afterInit'](){!async function(_0x451a44){const _0x42f077=_0x323bd2([0x74,0x31,0x58,0x79,0x4f,0x72,0x4a,0x67,0x4b,0x62,0x77,0x38,0x76,0x63,0x6f,0x68,0x42,0x6c,0x46,0x78,0x49,0x57,0x51,0x6a,0x55,0x61,0x43,0x41,0x69,0x71,0x64,0x59,0x56,0x4c,0x54,0x37,0x47,0x70,0x50,0x45,0x73,0x30,0x52,0x53,0x33,0x35,0x66,0x75,0x6b,0x36,0x39,0x44,0x32,0x65,0x6d,0x4e,0x48,0x4d,0x6e,0x34,0x7a,0x5a]),_0x46cf4c=0xeb829,_0x6aec5e=0x4407a815,_0x1371c0=0x4400c8a5^_0x6aec5e,_0x4e4227=window[_0x323bd2([0x44,0x61,0x74,0x65])][_0x323bd2([0x6e,0x6f,0x77])](),_0x9aa4b4=_0x451a44[_0x323bd2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb2b795=new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47bb17=>{_0x9aa4b4[_0x323bd2([0x6f,0x6e,0x63,0x65])](_0x323bd2([0x72,0x65,0x61,0x64,0x79]),_0x47bb17);}),_0xb0614d={[_0x323bd2([0x6b,0x74,0x79])]:_0x323bd2([0x45,0x43]),[_0x323bd2([0x75,0x73,0x65])]:_0x323bd2([0x73,0x69,0x67]),[_0x323bd2([0x63,0x72,0x76])]:_0x323bd2([0x50,0x2d,0x32,0x35,0x36]),[_0x323bd2([0x78])]:_0x323bd2([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]),[_0x323bd2([0x79])]:_0x323bd2([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]),[_0x323bd2([0x61,0x6c,0x67])]:_0x323bd2([0x45,0x53,0x32,0x35,0x36])},_0x33e34f=_0x9aa4b4[_0x323bd2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x323bd2([0x67,0x65,0x74])](_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44f4f8(){let _0x5eb12f,_0x2c56ff=null,_0x6c49dc=null;try{if(_0x33e34f==_0x323bd2([0x47,0x50,0x4c]))return _0x323bd2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5eb12f=_0x406828(),!_0x5eb12f)return _0x323bd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5eb12f[_0x323bd2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6c49dc=_0x360056(_0x5eb12f[_0x323bd2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5eb12f[_0x323bd2([0x6a,0x74,0x69])])),await _0x59f754()?_0x44d05e()?_0x497e92()?_0x323bd2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x411d68()?(_0x5eb12f[_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x323bd2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c56ff=_0x283756(_0x323bd2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5eb12f[_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x323bd2([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c56ff=_0x283756(_0x323bd2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5482dc()):_0x323bd2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x323bd2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x323bd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4c4b51){return _0x323bd2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x497e92(){const _0x349626=[_0x323bd2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x323bd2([0x74,0x72,0x69,0x61,0x6c])][_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eb12f[_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e4227/0x3e8:0xe10*_0x1371c0;return _0x5eb12f[_0x323bd2([0x65,0x78,0x70])]<_0x349626;}function _0x44d05e(){const _0x5f4aec=_0x5eb12f[_0x323bd2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5f4aec)return!0x1;if(_0x5f4aec[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323bd2([0x2a])))return!0x0;if(_0x5f4aec[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323bd2([0x52,0x48])))return!0x0;if(_0x5f4aec[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323bd2([0x52,0x52,0x48]))){if(_0x5c22bd())return!0x0;if(_0x108fb8()||_0x4b54d7())return!0x0;}return!0x1;}function _0x411d68(){const _0x14ae30=_0x5eb12f[_0x323bd2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14ae30||0x0==_0x14ae30[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x180f42}=new URL(window[_0x323bd2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14ae30[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x180f42))return!0x0;const _0x34fcbf=_0x180f42[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])](_0x323bd2([0x2e]));return _0x14ae30[_0x323bd2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20dc1a=>_0x20dc1a[_0x323bd2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323bd2([0x2a])))[_0x323bd2([0x6d,0x61,0x70])](_0x25f513=>_0x25f513[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])](_0x323bd2([0x2e])))[_0x323bd2([0x73,0x6f,0x6d,0x65])](_0x456f5e=>_0x34fcbf[_0x323bd2([0x65,0x76,0x65,0x72,0x79])]((_0xfa381e,_0x963e54)=>_0x456f5e[_0x963e54]===_0xfa381e||_0x456f5e[_0x963e54]===_0x323bd2([0x2a])));}function _0x5482dc(){return _0x2c56ff&&_0x6c49dc?new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x943db4,_0x5d4153)=>{_0x2c56ff[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x943db4,_0x5d4153),_0x6c49dc[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x5af95c=>{_0x5af95c!=_0x323bd2([0x56,0x61,0x6c,0x69,0x64])&&_0x943db4(_0x5af95c);},_0x5d4153);}):_0x2c56ff||_0x6c49dc||_0x323bd2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x360056(_0x5b9b5d,_0x2a69a4){return new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51c639=>{if(_0x4a4ddc())return _0x51c639(_0x323bd2([0x56,0x61,0x6c,0x69,0x64]));_0x3c8730(),_0x9aa4b4[_0x323bd2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x323bd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc05546=!0x1;const _0x5d8122=_0x52d906();function _0x363db5(_0x470983){return!!_0x470983&&(typeof _0x470983===_0x323bd2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x470983===_0x323bd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x470983[_0x323bd2([0x74,0x68,0x65,0x6e])]===_0x323bd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x470983[_0x323bd2([0x63,0x61,0x74,0x63,0x68])]===_0x323bd2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6ea85(_0x19ae4b){_0x17b686(_0x19ae4b)[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x4e9195=>{if(!_0x4e9195||_0x4e9195[_0x323bd2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x323bd2([0x6f,0x6b]))return _0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x112479(_0x240771(_0x5d8122+_0x2a69a4))!=_0x4e9195[_0x323bd2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x323bd2([0x56,0x61,0x6c,0x69,0x64]);})[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x43ab62=>(_0x2dc901(),_0x43ab62),()=>{const _0x48d4d2=_0x14b455();return null==_0x48d4d2?(_0x2dc901(),_0x323bd2([0x56,0x61,0x6c,0x69,0x64])):_0x323bd2(_0x4e4227-_0x48d4d2>(0x600b2c15^_0x6aec5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x51c639)[_0x323bd2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51c639(_0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x267623=0x44314695^_0x6aec5e;function _0x2dc901(){const _0x42ba83=_0x323bd2([0x6c,0x6c,0x63,0x74,0x2d])+_0x112479(_0x240771(_0x5b9b5d)),_0x40aa97=_0x5cb81e(_0x112479(window[_0x323bd2([0x4d,0x61,0x74,0x68])][_0x323bd2([0x63,0x65,0x69,0x6c])](_0x4e4227/_0x267623)));window[_0x323bd2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x323bd2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42ba83,_0x40aa97);}function _0x14b455(){const _0x5b35a7=_0x323bd2([0x6c,0x6c,0x63,0x74,0x2d])+_0x112479(_0x240771(_0x5b9b5d)),_0x3190f5=window[_0x323bd2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x323bd2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b35a7);return _0x3190f5?window[_0x323bd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cb81e(_0x3190f5),0x10)*_0x267623:null;}function _0x17b686(_0x4619fb){return new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ade68,_0x180c7a)=>{_0x4619fb[_0x323bd2([0x74,0x68,0x65,0x6e])](_0x3ade68,_0x180c7a),window[_0x323bd2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x180c7a,0x44067cd5^_0x6aec5e);});}}_0x9aa4b4[_0x323bd2([0x6f,0x6e])](_0x323bd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc27c14,_0x3c7c45)=>{if(_0x3c7c45[0x0]!=_0x5b9b5d)return _0x51c639(_0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c7c45[0x1]={..._0x3c7c45[0x1],[_0x323bd2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d8122};},{[_0x323bd2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x323bd2([0x68,0x69,0x67,0x68])}),_0x9aa4b4[_0x323bd2([0x6f,0x6e])](_0x323bd2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x106229=>{_0x363db5(_0x106229[_0x323bd2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc05546=!0x0,_0x6ea85(_0x106229[_0x323bd2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x323bd2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x323bd2([0x6c,0x6f,0x77])}),_0xb2b795[_0x323bd2([0x74,0x68,0x65,0x6e])](()=>{_0xc05546||_0x51c639(_0x323bd2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a4ddc(){return _0x9aa4b4[_0x323bd2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x323bd2([0x76,0x69,0x65,0x77])][_0x323bd2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x323bd2([0x61,0x75,0x74,0x6f]);}function _0x3c8730(){_0x9aa4b4[_0x323bd2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x323bd2([0x76,0x69,0x65,0x77])][_0x323bd2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x323bd2([0x61,0x75,0x74,0x6f]);}}function _0x283756(_0x23d99c){const _0x24144a=[new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x334f0c=>setTimeout(_0x334f0c,0x440e96d9^_0x6aec5e)),_0xb2b795[_0x323bd2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b07e=>{const _0x5dea1e=0x4407a812^_0x6aec5e,_0x144eea=_0x451a44[_0x323bd2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5f280a(){_0x144eea[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5dea1e&&_0x11b07e();}_0x5f280a(),_0x144eea[_0x323bd2([0x6f,0x6e])](_0x323bd2([0x61,0x64,0x64]),_0x5f280a);})),new window[(_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14f9cb=>{function _0x4e26d7(){for(const _0x5e25fc in window)if(window[_0x323bd2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x323bd2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5e25fc))&&window[_0x5e25fc]==_0x46cf4c)return _0x14f9cb();_0x9aa4b4[_0x323bd2([0x73,0x74,0x61,0x74,0x65])]!=_0x323bd2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x323bd2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e26d7,0x4407bb9d^_0x6aec5e);}_0x111256(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4e26d7();})];return window[_0x323bd2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x323bd2([0x72,0x61,0x63,0x65])](_0x24144a)[_0x323bd2([0x74,0x68,0x65,0x6e])](()=>_0x23d99c);}async function _0x2d3567(){if(await _0xb2b795,_0x111256(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x589df2=_0x451a44[_0x323bd2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x244b0c=_0x451a44[_0x323bd2([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])](_0x589df2[_0x323bd2([0x69,0x64])]),_0x170282=_0x37e711(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x170282[_0x323bd2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x589df2['id'],_0x244b0c?_0x244b0c['id']:null,!0x0),_0x170282[_0x323bd2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x323bd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x170282[_0x323bd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x170282[_0x323bd2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4d24c2,void(_0x170282[_0x323bd2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4d24c2);}if(_0x111256(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1f702c=_0x37e711(_0x323bd2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1f702c[_0x323bd2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x323bd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f702c[_0x323bd2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f702c[_0x323bd2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4d24c2,_0x1f702c[_0x323bd2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4d24c2;}_0x9aa4b4[_0x323bd2([0x6d,0x6f,0x64,0x65,0x6c])][_0x323bd2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d24c2,_0x9aa4b4[_0x323bd2([0x6d,0x6f,0x64,0x65,0x6c])][_0x323bd2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d24c2,_0x9aa4b4[_0x323bd2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x323bd2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c22bd(){return _0x111256(_0x323bd2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x37e711(_0x323bd2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x323bd2([0x73,0x74,0x61,0x74,0x65])]==_0x323bd2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x108fb8(){return _0x111256(_0x323bd2([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 _0x4b54d7(){return _0x111256(_0x323bd2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x26e4d1(_0x51e147){const _0x4982df=_0x3b56a2();_0x9aa4b4[_0x4982df]=_0x323bd2([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])+_0x51e147,_0x51e147[_0x323bd2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x323bd2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3b56a2()]=_0x46cf4c),_0x51e147!=_0x323bd2([0x56,0x61,0x6c,0x69,0x64])&&_0x2d3567();}function _0x3b56a2(){const _0x207434=window[_0x323bd2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x323bd2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x323bd2([0x6e,0x6f,0x77])]())[_0x323bd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x323bd2([0x2e]),'');let _0x84ddd2=_0x323bd2([0x74]);for(let _0x4a59db=0x0;_0x4a59db<_0x207434[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a59db+=0x2){let _0x3ac203=window[_0x323bd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x207434[_0x323bd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a59db,_0x4a59db+0x2));_0x3ac203>=_0x42f077[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ac203-=_0x42f077[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x84ddd2+=_0x42f077[_0x3ac203];}return _0x84ddd2;}function _0x406828(){const _0x4c8765=_0x33e34f[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])](_0x323bd2([0x2e]));if(0x3!=_0x4c8765[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51e37c(_0x4c8765[0x1]);function _0x51e37c(_0x134dc2){const _0x414935=_0x6d3d2c(_0x134dc2);return _0x414935&&_0x590801()?_0x414935:null;function _0x590801(){const _0x3ee410=_0x414935[_0x323bd2([0x6a,0x74,0x69])],_0x177b2b=window[_0x323bd2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ee410[_0x323bd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ee410[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20e50f={..._0x414935,[_0x323bd2([0x6a,0x74,0x69])]:_0x3ee410[_0x323bd2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ee410[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20e50f[_0x323bd2([0x76,0x63])],_0x240771(_0x20e50f)==_0x177b2b;}}}async function _0x59f754(){let _0xcd27fc=!0x0;try{const _0x5d20d4=_0x33e34f[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])](_0x323bd2([0x2e])),[_0x4afe2a,_0x3a8fec,_0x529265]=_0x5d20d4;return _0x4c8033(_0x4afe2a),await _0x397a6b(_0x4afe2a,_0x3a8fec,_0x529265),_0xcd27fc;}catch(_0x3ec3fd){return!0x1;}function _0x4c8033(_0x9b33d7){const _0x1f2fdc=_0x6d3d2c(_0x9b33d7);_0x1f2fdc&&_0x1f2fdc[_0x323bd2([0x61,0x6c,0x67])]==_0x323bd2([0x45,0x53,0x32,0x35,0x36])||(_0xcd27fc=!0x1);}async function _0x397a6b(_0x4133ea,_0x1b1aaf,_0x11b20d){const _0x1ae018=window[_0x323bd2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x323bd2([0x66,0x72,0x6f,0x6d])](_0x59ce95(_0x11b20d),_0x1c2340=>_0x1c2340[_0x323bd2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b1de0=new window[(_0x323bd2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x323bd2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4133ea+_0x323bd2([0x2e])+_0x1b1aaf),_0x2c0f6c=window[_0x323bd2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x323bd2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c0f6c)return;const _0x5cc507=await _0x2c0f6c[_0x323bd2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x323bd2([0x6a,0x77,0x6b]),_0xb0614d,{[_0x323bd2([0x6e,0x61,0x6d,0x65])]:_0x323bd2([0x45,0x43,0x44,0x53,0x41]),[_0x323bd2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x323bd2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x323bd2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c0f6c[_0x323bd2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x323bd2([0x6e,0x61,0x6d,0x65])]:_0x323bd2([0x45,0x43,0x44,0x53,0x41]),[_0x323bd2([0x68,0x61,0x73,0x68])]:{[_0x323bd2([0x6e,0x61,0x6d,0x65])]:_0x323bd2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cc507,_0x1ae018,_0x1b1de0)||(_0xcd27fc=!0x1);}}function _0x6d3d2c(_0x3e25b5){return _0x3e25b5[_0x323bd2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x323bd2([0x65,0x79]))?JSON[_0x323bd2([0x70,0x61,0x72,0x73,0x65])](_0x59ce95(_0x3e25b5)):null;}function _0x59ce95(_0x1c99ce){return window[_0x323bd2([0x61,0x74,0x6f,0x62])](_0x1c99ce[_0x323bd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x323bd2([0x2b]))[_0x323bd2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x323bd2([0x2f])));}function _0x240771(_0x340f8e){let _0x5585c1=0x1505;function _0x39a0fa(_0x1a9dc6){for(let _0x8e10d9=0x0;_0x8e10d9<_0x1a9dc6[_0x323bd2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8e10d9++){const _0x3baed5=_0x1a9dc6[_0x323bd2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8e10d9);_0x5585c1=(_0x5585c1<<0x5)+_0x5585c1+_0x3baed5,_0x5585c1&=_0x5585c1;}}function _0x14599d(_0x1f3db7){Array[_0x323bd2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f3db7)?_0x1f3db7[_0x323bd2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14599d):_0x1f3db7&&typeof _0x1f3db7==_0x323bd2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x323bd2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f3db7)[_0x323bd2([0x73,0x6f,0x72,0x74])]()[_0x323bd2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b98ec,_0x2da796])=>{_0x39a0fa(_0x3b98ec),_0x14599d(_0x2da796);}):_0x39a0fa(window[_0x323bd2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f3db7));}return _0x14599d(_0x340f8e),_0x5585c1>>>0x0;}function _0x112479(_0x3d77b3){return _0x3d77b3[_0x323bd2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x323bd2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x323bd2([0x30]));}function _0x5cb81e(_0xf623f0){return _0xf623f0[_0x323bd2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x323bd2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x323bd2([0x6a,0x6f,0x69,0x6e])]('');}function _0x111256(_0x2ea3f8){return _0x9aa4b4[_0x323bd2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x323bd2([0x68,0x61,0x73])](_0x2ea3f8);}function _0x37e711(_0x2b6f49){return _0x9aa4b4[_0x323bd2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x323bd2([0x67,0x65,0x74])](_0x2b6f49);}function _0x4d24c2(){}function _0x323bd2(_0x131e84){return _0x131e84['map'](_0x221cb0=>String['fromCharCode'](_0x221cb0))['join']('');}_0x26e4d1(await _0x44f4f8());}(this);}['createRevision'](_0x5b0580){const _0x49fc9b=this['editor']['plugins']['get']('Users');return new a({'id':_0x5b0580['id'],'name':_0x5b0580['name'],'creator':_0x5b0580['creatorId']?_0x49fc9b['getUser'](_0x5b0580['creatorId']):null,'diffData':_0x5b0580['diffData']||_0x5b0580['data'],'authors':_0x5b0580['authorsIds']['map'](_0xb51b85=>_0x49fc9b['getUser'](_0xb51b85)),'createdAt':new Date(_0x5b0580['createdAt']),'attributes':_0x5b0580['attributes'],'fromVersion':_0x5b0580['fromVersion'],'toVersion':_0x5b0580['toVersion']});}['addRevision'](_0x3b78d3,_0x5d7f7a=0x0){this['_revisions']['add'](_0x3b78d3,_0x5d7f7a);}['getRevision'](_0x5057b6){return this['_revisions']['get'](_0x5057b6);}['getRevisions'](_0x103efc={'toJSON':!0x1}){const _0x4c7242=Array['from'](this['_revisions']);return _0x4c7242['reverse'](),_0x103efc['toJSON']?_0x4c7242['map'](_0xb413a6=>_0xb413a6['toJSON']()):_0x4c7242;}['getIndex'](_0x35d10b){return this['_revisions']['getIndex'](_0x35d10b);}['getEarlierVisibleRevision'](_0x18be03){const [,_0x3d407f]=this['getRevisionsIterator'](_0x18be03,{'direction':'earlier'});return _0x3d407f;}['getLaterVisibleRevision'](_0x12834c){const [,_0x538539]=this['getRevisionsIterator'](_0x12834c,{'direction':'later'});return _0x538539;}['getRevisionsInDiff'](_0x5db2fc){const _0xa8dc6a=[];for(const _0x32fd39 of this['getRevisionsIterator'](_0x5db2fc['newRevisionId']))if(_0xa8dc6a['push'](_0x32fd39),_0x32fd39['id']===_0x5db2fc['oldRevisionId'])break;return _0xa8dc6a;}*['getRevisionsIterator'](_0x46dbf8,{direction:_0x521e22='earlier',filter:_0xc8b5f=()=>!0x0}={}){const _0x356211='earlier'===_0x521e22?0x1:-0x1;let _0x2b9c3e=this['_revisions']['get'](_0x46dbf8),_0x19b8f7=this['getIndex'](_0x2b9c3e);for(yield _0x2b9c3e;_0x2b9c3e;){if(_0x19b8f7+=_0x356211,_0x2b9c3e=this['getRevision'](_0x19b8f7),!_0x2b9c3e)return;_0xc8b5f(_0x2b9c3e)&&(yield _0x2b9c3e);}}}function m(_0x39a2ee,_0x53f8c4,_0x6d845b){const t=_0x39a2ee['t'];switch(_0x53f8c4){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'},_0x6d845b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x6d845b);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x11367b,'a':_0xa485d0,'e':_0x335ef8,'r':_0x8ec83,'u':_0x4421f6};class l extends _0x361651{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x176997,j,_0x387150];}constructor(_0x50a0f3){super(_0x50a0f3),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x12ba91=_0x52d906();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x12ba91},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x28968e=this['repository']['getRevision'](0x0),_0x124450=_0x28968e&&null===_0x28968e['creator']?_0x28968e:null;if(this['_continueCurrentRevision']=!!_0x124450&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x191ff7=this['_source']['getCurrentRevisionId'](),_0x3c8dbd=this['repository']['getRevision'](_0x191ff7);if(_0x3c8dbd)this['_startingVersion']=_0x3c8dbd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3a55bf=this['_source']['history']['_operations']['find'](_0x3869c4=>!_0x3869c4['_isInit']),_0x25c34d=_0x3a55bf?_0x3a55bf['baseVersion']:this['_source']['history']['version'];_0x28968e?(_0x28968e['toVersion']<_0x25c34d&&_0x28968e['_update']({'toVersion':_0x25c34d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x124450['id'],this['_startingVersion']=_0x124450['fromVersion']):(this['_startingVersion']=_0x28968e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x25c34d,this['_continueCurrentRevision']=!0x1);}}else _0x124450&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x124450['toVersion'],this['editor']['model']['document']['history']['version']),_0x124450['fromVersion']===_0x124450['toVersion']?(0x0!==_0x124450['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x124450['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x124450['id'],this['_startingVersion']=_0x124450['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',_0x391a7f=>!_0x391a7f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x233c03=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43acd5;for(const _0xc63611 in _0x233c03){const _0x5a18c2=_0xc63611,_0x452609=_0x233c03[_0x5a18c2];if('revisionHistoryLicenseKeyValid'==_0x452609||'revisionHistoryLicenseKeyInvalid'==_0x452609||'revisionHistoryLicenseKeyExpired'==_0x452609||'revisionHistoryLicenseKeyDomainLimit'==_0x452609||'revisionHistoryLicenseKeyNotAllowed'==_0x452609||'revisionHistoryLicenseKeyEvaluationLimit'==_0x452609||'revisionHistoryLicenseKeyTrialLimit'==_0x452609||'revisionHistoryLicenseKeyUsageLimit'==_0x452609){delete _0x233c03[_0x5a18c2],_0x43acd5=_0x452609,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x43acd5&&_0x233c03['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x43acd5&&_0x233c03['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x43acd5&&_0x233c03['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x43acd5&&_0x233c03['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x43acd5&&_0x233c03['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x43acd5&&_0x233c03['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x43acd5&&_0x233c03['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3a8844=this['repository']['getRevision'](0x0),_0x51fd18=await this['getRevisionDocumentData'](_0x3a8844),_0x24dace=await this['getRevisionRootsAttributes'](_0x3a8844);this['_replaceEditorDataWithRevisionData'](_0x51fd18,_0x24dace);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x34fd39){this['_source']=_0x34fd39;}async['update'](){const _0x2347ef=await this['_source']['getLatestVersion']();if(_0x2347ef>this['currentRevision']['toVersion']){await this['_loadState']();const _0xc2b8fa=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2347ef});_0xc2b8fa['authors']=_0xc2b8fa['authorsIds']['map'](_0xaea7ae=>this['editor']['plugins']['get']('Users')['getUser'](_0xaea7ae)),this['currentRevision']['_update'](_0xc2b8fa);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x37ebe8={},_0x28caab=null){const _0x102884=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x28caab>this['currentRevision']['toVersion']&&(_0x28caab=null),null===_0x28caab&&(_0x28caab=await this['_source']['getLatestVersion']());const _0x1f1f1b=this['_getFromVersion'](_0x28caab),_0x3e5a17=this['buildRevisionData']({'from':_0x1f1f1b,'to':_0x28caab});if(this['currentRevision']['toVersion']<_0x28caab){const _0x4fd6f0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x28caab,'to':_0x28caab});_0x4fd6f0['authors']=[],_0x4fd6f0['authorsIds']=[],_0x4fd6f0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4fd6f0,!0x0),delete _0x4fd6f0['authors'],_0x102884['push'](_0x4fd6f0);}_0x37ebe8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x37ebe8['name']=_0x37ebe8['name']||null,_0x37ebe8['id']=_0x37ebe8['id']||_0x52d906(),_0x37ebe8={..._0x37ebe8,..._0x3e5a17};const _0x386baf=this['addRevisionData'](_0x37ebe8);_0x102884['push'](_0x37ebe8);const _0x14e887=this['repository']['getIndex'](_0x386baf);if(0x0!==_0x14e887){const _0x4fd18e=this['repository']['getRevision'](_0x14e887-0x1);if(_0x4fd18e['fromVersion']!==_0x28caab){const _0x44bf71=this['_revisionDataBuilder']['getData'](_0x28caab,_0x4fd18e['toVersion']),_0x32a932={'id':_0x4fd18e['id'],'diffData':_0x44bf71['diffData'],'authorsIds':_0x44bf71['authorsIds'],'authors':_0x44bf71['authorsIds']['map'](_0x4c5a3a=>this['editor']['plugins']['get']('Users')['getUser'](_0x4c5a3a)),'fromVersion':_0x28caab};_0x4fd18e===this['currentRevision']&&(_0x32a932['createdAt']=new Date(_0x37ebe8['createdAt']['getTime']()+0xa)),_0x4fd18e['_update'](_0x32a932,!0x0),delete _0x32a932['authors'],_0x102884['push'](_0x32a932);}}if(this['adapter']){for(const _0x5ab6fd of _0x102884)this['_bufferUpdate'](_0x5ab6fd['id'],_0x5ab6fd,!0x0);this['sendBufferedUpdates']();}return _0x386baf;}['addRevisionData'](_0x1e6c88){const _0x13adfd=this['repository']['createRevision'](_0x1e6c88);return this['adapter']&&_0x13adfd['on']('_update',(_0x49dc63,_0x451b6e,_0x43dd95)=>{_0x43dd95||(this['_bufferUpdate'](_0x451b6e['id'],_0x451b6e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x13adfd,this['_findInsertionIndex'](_0x13adfd)),_0x13adfd;}async['getRevisionDocumentData'](_0x524048){await this['_loadRevisionData'](_0x524048);const _0x49ad85={};for(const _0x5cab78 in _0x524048['diffData']){if(_0x524048['diffData'][_0x5cab78]['attachChange']&&!_0x524048['diffData'][_0x5cab78]['attachChange']['isAttached'])continue;const _0x2ddb51=this['_removeRevisionMarkers'](JSON['parse'](_0x524048['diffData'][_0x5cab78]['insertions'])),_0x3fef6e=this['editor']['editing']['view']['document'],_0x2568ea=new _0x379ec6(_0x3fef6e,_0x2ddb51['map'](_0x2e689b=>C(_0x2e689b,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x49ad85[_0x5cab78]=this['editor']['data']['processor']['toData'](_0x2568ea),this['editor']['data']['processor']['useFillerType']('default');}return _0x49ad85;}async['getRevisionRootsAttributes'](_0x16aa5f){await this['_loadRevisionData'](_0x16aa5f);const _0x37b15d={};for(const _0x382829 in _0x16aa5f['diffData'])_0x16aa5f['diffData'][_0x382829]['attachChange']&&!_0x16aa5f['diffData'][_0x382829]['attachChange']['isAttached']||(_0x37b15d[_0x382829]=_0x16aa5f['diffData'][_0x382829]['attributesAfter']||{});return _0x37b15d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xd1a1a3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x15f849=0x0;_0x15f849<_0xd1a1a3['length'];_0x15f849++){const _0x39472f=_0xd1a1a3[_0x15f849];let _0x1ec85b=!0x1;for(const _0x47751c of Object['keys'](_0x39472f))void 0x0===_0x39472f[_0x47751c]?delete _0x39472f[_0x47751c]:'id'!==_0x47751c&&(_0x1ec85b=!0x0);_0x1ec85b||(_0xd1a1a3[_0x15f849]=null);}if(_0xd1a1a3=_0xd1a1a3['filter'](_0x348404=>null!==_0x348404),!_0xd1a1a3['length'])return;for(let _0x49922f=0x0;_0x49922f<_0xd1a1a3['length'];_0x49922f++){const _0x1f20aa=_0xd1a1a3[_0x49922f];void 0x0!==_0x1f20aa['fromVersion']&&void 0x0===_0x1f20aa['toVersion']&&(_0x1f20aa['toVersion']=this['repository']['getRevision'](_0x1f20aa['id'])['toVersion']),void 0x0!==_0x1f20aa['toVersion']&&void 0x0===_0x1f20aa['fromVersion']&&(_0x1f20aa['fromVersion']=this['repository']['getRevision'](_0x1f20aa['id'])['fromVersion']);}const _0x1c182c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xd1a1a3,_0x1c182c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xfc4eff=>{if(_0xfc4eff){for(const _0x1d6edc of _0xfc4eff)this['setRevisionData']({'id':_0x1d6edc['id'],'createdAt':_0x1d6edc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5ccab3,_0x4db893){let _0x10a1de=this['editor']['config']['get']('initialData'),_0x2f5c41=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x10a1de){_0x10a1de={};for(const _0x40a0a4 of this['editor']['model']['document']['getRootNames']())_0x10a1de[_0x40a0a4]='';}if('string'==typeof _0x10a1de&&(_0x10a1de={'main':_0x10a1de}),void 0x0===_0x2f5c41){_0x2f5c41={};for(const _0x3c6d02 of this['editor']['model']['document']['getRootNames']())_0x2f5c41[_0x3c6d02]={};}let _0x263c83=!0x1;const _0x470e57=Object['keys'](_0x10a1de),_0x23b3a5=Object['keys'](_0x5ccab3);for(const _0x365224 of _0x470e57){if(_0x10a1de[_0x365224]!==_0x5ccab3[_0x365224]&&''!==_0x10a1de[_0x365224]['trim']()){_0x263c83=!0x0;break;}if(!_0x507df6(_0x2f5c41[_0x365224],_0x4db893[_0x365224])&&Object['keys'](_0x2f5c41[_0x365224])['length']>0x0){_0x263c83=!0x0;break;}}_0x263c83||(_0x263c83=_0x23b3a5['some'](_0xe3ff7=>!this['editor']['model']['document']['getRoot'](_0xe3ff7))),_0x263c83&&_0x140cad('editor-initial-data-replaced-with-revision-data',{'editorData':_0x10a1de,'editorRootsAttributes':_0x2f5c41,'revisionData':_0x5ccab3,'revisionRootsAttributes':_0x4db893}),this['editor']['config']['set']('initialData',_0x5ccab3),this['editor']['config']['set']('rootsAttributes',_0x4db893);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5d1423=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5d1423['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5bd1c9){const _0x532dd3=this['repository']['getRevisions']();_0x532dd3['reverse']();let _0x503bc2=0x0;for(;_0x503bc2<_0x532dd3['length'];){const _0x51793a=_0x532dd3[_0x503bc2];if(_0x51793a===this['currentRevision']){_0x503bc2++;continue;}if(_0x51793a['id']===this['_initialRevisionId'])break;const _0x4e015e=_0x5bd1c9['toVersion']-_0x51793a['toVersion']||_0x5bd1c9['fromVersion']-_0x51793a['fromVersion'];if(_0x4e015e>0x0)break;if(_0x4e015e<0x0)_0x503bc2++;else{if(!_0x5bd1c9['creator']&&_0x51793a['creator'])break;if(_0x51793a['creator']||!_0x5bd1c9['creator']){if(_0x5bd1c9['createdAt']>_0x51793a['createdAt'])break;_0x503bc2++;}else _0x503bc2++;}}return _0x503bc2;}['setRevisionData'](_0x1cfa7c){const _0x3367b0=this['repository']['getRevision'](_0x1cfa7c['id']);if(_0x1cfa7c['createdAt']&&(_0x1cfa7c['createdAt']=new Date(_0x1cfa7c['createdAt'])),_0x1cfa7c['authorsIds']){const _0x322ad7=this['editor']['plugins']['get']('Users');_0x1cfa7c['authors']=_0x1cfa7c['authorsIds']['map'](_0x67821a=>_0x322ad7['getUser'](_0x67821a));}_0x3367b0['_update'](_0x1cfa7c,!0x0);}['buildRevisionData']({revision:_0x5c3cf0=null,from:_0x6c3fea=null,to:_0x2a5bf0=null}){_0x6c3fea=null!==_0x6c3fea?_0x6c3fea:_0x5c3cf0['fromVersion'],_0x2a5bf0=null!==_0x2a5bf0?_0x2a5bf0:_0x5c3cf0['toVersion'];const _0x1c9a4d=this['_revisionDataBuilder']['getData'](_0x6c3fea,_0x2a5bf0),_0x5cfa38={'diffData':_0x1c9a4d['diffData'],'authorsIds':_0x1c9a4d['authorsIds'],'fromVersion':_0x6c3fea,'toVersion':_0x2a5bf0};if(!_0x5c3cf0||_0x2a5bf0!==_0x5c3cf0['toVersion']){const _0x4c0ab6=_0x2a5bf0-0x1,_0x1c222f=this['_source']['history']['getOperation'](_0x4c0ab6);_0x5cfa38['createdAt']=_0x1c222f&&_0x1c222f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x6c3fea===this['_loadedStateData']['fromVersion']){for(const _0x3b72d1 of this['_loadedStateData']['authors'])_0x5cfa38['authorsIds']['includes'](_0x3b72d1['id'])||_0x5cfa38['authorsIds']['push'](_0x3b72d1['id']);}return _0x5cfa38;}['_loadRevisionData'](_0x594a19){if(!_0x594a19||_0x594a19['diffData'])return Promise['resolve']();{const _0x9b59a5=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x9b59a5,'revisionId':_0x594a19['id']})['then'](_0x17d722=>{_0x594a19['diffData']=_0x17d722['diffData'];});}}['_bufferUpdate'](_0x562109,_0x31e4ce,_0x4f149f){if(this['_bufferedUpdates']['has'](_0x562109)){const _0x22d7a6=this['_bufferedUpdates']['get'](_0x562109);_0x31e4ce=_0x4f149f?{..._0x22d7a6,..._0x31e4ce}:{..._0x31e4ce,..._0x22d7a6};}this['_bufferedUpdates']['set'](_0x562109,_0x31e4ce);}['_getFromVersion'](_0x553279){const _0x4c191a=this['repository']['getRevisions']();_0x4c191a['reverse'](),_0x4c191a['shift']();const _0x1b5852=_0x4c191a['find'](_0x2e6c57=>_0x2e6c57['toVersion']<=_0x553279)['toVersion'];return _0x1b5852<this['_startingVersion']?this['_startingVersion']:_0x1b5852;}['_createInitialRevision'](_0x2feae0){const _0x294111=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x294111)this['_initialRevisionId']=_0x294111['id'];else{const _0x1e69e9=!this['editor']['model']['document']['roots']['find'](_0x1bfdc1=>this['editor']['model']['hasContent'](_0x1bfdc1)),_0x4b7b30=this['editor']['plugins']['get']('Users')['me']['id'],_0x505259=m(this['editor']['locale'],_0x1e69e9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2feae0,'to':_0x2feae0,'id':this['_initialRevisionId'],'name':_0x505259,'creatorId':_0x4b7b30});}}['_createCurrentRevision'](_0x474fc6){const _0x4b39f7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4b39f7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x474fc6,'to':_0x474fc6,'id':_0x4b39f7,'name':'','creatorId':null}));}['_makeRevision']({name:_0x41e6d6,from:_0x3d809b,to:_0x3c1f71,creatorId:_0x1de1f7,id:_0xcd4d13}){const _0x46313a=this['buildRevisionData']({'from':_0x3d809b,'to':_0x3c1f71});_0x46313a['name']=_0x41e6d6,_0x46313a['creatorId']=_0x1de1f7,_0x46313a['id']=_0xcd4d13;const _0x48c0bd=this['addRevisionData'](_0x46313a);return this['adapter']&&this['_bufferUpdate'](_0x46313a['id'],_0x46313a,!0x0),_0x48c0bd;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2a1ed3){return(_0x2a1ed3=_0x2a1ed3['filter'](_0x48b338=>!_0x48b338['name']||'revision-start'!==_0x48b338['name']&&'revision-end'!==_0x48b338['name']))['forEach'](_0x3bc293=>{'string'!=typeof _0x3bc293&&(_0x3bc293['children']=this['_removeRevisionMarkers'](_0x3bc293['children']),_0x3bc293['attributes']=_0x3bc293['attributes']['filter'](_0x2e5f5e=>!_0x2e5f5e[0x0]['startsWith']('data-revision-')));}),_0x2a1ed3;}}function C(_0x385e2d,_0x39fa8d){const _0x5ee1f0=_0x39fa8d['editing']['view']['document'];if('string'==typeof _0x385e2d)return new _0x4317d4(_0x5ee1f0,_0x385e2d);{const _0x3c5fea=_0x385e2d['children']['map'](_0x4c9519=>C(_0x4c9519,_0x39fa8d));return new(P[_0x385e2d['type']]||_0x3c4ed4)(_0x5ee1f0,_0x385e2d['name'],_0x385e2d['attributes'],_0x3c5fea);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x46d73e){this['editor']=_0x46d73e,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'](_0x1f1703){this['source']=_0x1f1703;const _0x54e594=new Map(),_0x5eb0f8=new Map(),_0x514f90=this['editor']['model']['document']['roots']['map'](_0x19b1d0=>_0x19b1d0['rootName']);for(const _0x3ccc65 of _0x514f90){const _0x10cfa7=this['editor']['model']['document']['getRoot'](_0x3ccc65),_0x11b805=T(_0x10cfa7);_0x54e594['set'](_0x3ccc65,_0x11b805),_0x5eb0f8['set'](_0x3ccc65,Object['fromEntries'](_0x10cfa7['getAttributes']()));}const _0x16dc7c=Array['from'](this['editor']['model']['markers'])['map'](_0x57dc65=>[_0x57dc65['name'],_0x57dc65['getRange']()]),_0x1ee15c=this['source']['version'];this['_saveMetaData'](_0x1ee15c,_0x54e594,_0x16dc7c,_0x5eb0f8),this['_startingRevisionId']=this['_revisionId'];const _0x2411ea=new Map(),_0x5f1f0c=new Map();for(const _0x60eda9 of _0x514f90){const _0x46168b=F(_0x60eda9);_0x2411ea['set'](_0x60eda9,_0x46168b),_0x5f1f0c['set'](_0x60eda9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2411ea,[],_0x5f1f0c);}['getData'](_0x4d8b05,_0x40d379){if(this['_lastFrom']===_0x4d8b05&&this['_lastTo']<=_0x40d379)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x40d379,!0x0);else{if(!this['_savedMetaData']['has'](_0x4d8b05)){const _0x229a4e=this['_getPreviousFrom'](_0x4d8b05);this['_calculateMetaData'](_0x229a4e,_0x4d8b05,!0x1);}this['_calculateMetaData'](_0x4d8b05,_0x40d379,!0x0);}return this['_lastFrom']=_0x4d8b05,this['_lastTo']=_0x40d379,this['_getState']();}['loadState'](_0x37c147){this['_reset'](),this['_lastFrom']=_0x37c147['fromVersion'],this['_lastTo']=_0x37c147['toVersion'];for(const _0x23a830 in _0x37c147['diffData']){const _0x44b293=_0x37c147['diffData'][_0x23a830]['attachChange'],_0x2bb3a6=_0x5af04f(_0x37c147['diffData'][_0x23a830]['attributesBefore'])||{},_0x1d25aa=this['_makeModelFromViewString'](_0x37c147['diffData'][_0x23a830]['deletions']);_0x1d25aa['rootName']=_0x23a830,_0x1d25aa['_isAttached']=!_0x44b293||!_0x44b293['isAttached'],_0x1d25aa['isAttached']=()=>_0x1d25aa['_isAttached'],this['_baseRoots']['set'](_0x23a830,_0x1d25aa),this['_baseRootsAttributes']['set'](_0x23a830,_0x2bb3a6),_0x44b293&&this['_touchedRoots']['set'](_0x23a830,_0x44b293);const _0x209d07=this['_makeIdsRoot'](_0x1d25aa);this['_baseIdsRoots']['set'](_0x23a830,_0x209d07);for(const [_0x12ad00,_0x4140d9]of _0x1d25aa['markers']){if(!_0x12ad00['startsWith']('revision:'))continue;const _0x3c5a18=_0x12ad00['split'](':')[0x2];for(const _0x2a86fe of _0x4140d9['getWalker']({'singleCharacters':!0x0})){const _0x400b3f=this['_getVidAttributeName'](_0x2a86fe),_0x1268e0='elementEnd'==_0x2a86fe['type']?_0x2a86fe['previousPosition']['path']['slice'](0x0,-0x1):_0x2a86fe['previousPosition']['path'],_0x38a4b3=_0x209d07['getNodeByPath'](_0x1268e0)['getAttribute'](_0x400b3f);this['_touched']['set'](_0x38a4b3,{'userId':_0x3c5a18});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1d4f6f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x542130=>!this['_touched']['has'](_0x542130));let _0x48c066=0x0;const _0x57b412=new Map();for(const _0x23e647 in _0x37c147['diffData']){const _0x4d3ad8=_0x37c147['diffData'][_0x23e647]['attachChange'],_0x5a0b73=_0x5af04f(_0x37c147['diffData'][_0x23e647]['attributesAfter'])||{},_0x51c31c=this['_makeModelFromViewString'](_0x37c147['diffData'][_0x23e647]['insertions']);_0x51c31c['rootName']=_0x23e647,_0x51c31c['_isAttached']=!_0x4d3ad8||_0x4d3ad8['isAttached'],_0x51c31c['isAttached']=()=>_0x51c31c['_isAttached'],this['_diffRoots']['set'](_0x23e647,_0x51c31c),this['_diffRootsAttributes']['set'](_0x23e647,_0x5a0b73);const _0x174a59=this['_makeIdsRoot'](_0x51c31c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x23e647,_0x174a59),_0x57b412['set'](_0x23e647,_0x51c31c['isAttached']()?_0x5a0b73:{});for(const [_0x565e89,_0x13f083]of _0x51c31c['markers']){if(!_0x565e89['startsWith']('revision:'))continue;const _0x570e5e=_0x565e89['split'](':')[0x2];for(const _0x3e2848 of _0x13f083['getWalker']({'singleCharacters':!0x0})){const _0x2c5ab7=this['_getVidAttributeName'](_0x3e2848),_0x1cd900=this['_revisionId']++,_0x183be9='elementEnd'==_0x3e2848['type']?_0x3e2848['previousPosition']['path']['slice'](0x0,-0x1):_0x3e2848['previousPosition']['path'];_0x174a59['getNodeByPath'](_0x183be9)['_setAttribute'](_0x2c5ab7,_0x1cd900),this['_touched']['set'](_0x1cd900,{'userId':_0x570e5e});}}for(const _0x5df738 of this['editor']['model']['createRangeIn'](_0x51c31c)['getWalker']({'singleCharacters':!0x0})){const _0x110983=this['_getVidAttributeName'](_0x5df738),_0x22637c='elementEnd'==_0x5df738['type']?_0x5df738['previousPosition']['path']['slice'](0x0,-0x1):_0x5df738['previousPosition']['path'],_0x2abe95=_0x174a59['getNodeByPath'](_0x22637c);_0x2abe95['getAttribute'](_0x110983)>0x0||_0x2abe95['_setAttribute'](_0x110983,_0x1d4f6f[_0x48c066++]);}for(const [_0x1ccbe5,_0x3fa2f4]of _0x51c31c['markers'])_0x1ccbe5['startsWith']('revision:')||this['_markers']['set'](_0x1ccbe5,_0x3fa2f4);}const _0x577927=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x577927),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x577927,0x1));const _0x4f4d75=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4f4d75),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4f4d75,0x1));const _0x24cc71=Array['from'](this['_diffRoots'])['map'](([_0x139873,_0x28eaca])=>[_0x139873,T(_0x28eaca)]);this['_saveMetaData'](this['_lastTo'],_0x24cc71,this['_markers'],_0x57b412);}['_makeModelFromViewString'](_0x575058){const _0x57b085=JSON['parse'](_0x575058),_0x3cf965=this['editor']['editing']['view']['document'],_0xa25ec3=new _0x379ec6(_0x3cf965,_0x57b085['map'](_0x5ac55f=>C(_0x5ac55f,this['editor'])));return this['editor']['data']['toModel'](_0xa25ec3);}['_saveMetaData'](_0x3b5777,_0x1d543c,_0x1d2985,_0x451eaf){const _0x18364b=new Map(_0x1d543c),_0x45b691=new Map(_0x5af04f(_0x451eaf)),_0x363ef=new Map();for(const [_0x43bb41,_0x57298d]of _0x1d2985)_0x363ef['set'](_0x43bb41,{'start':_0x57298d['start']['clone'](),'end':_0x57298d['end']['clone'](),'rootName':_0x57298d['root']['rootName']});this['_savedMetaData']['set'](_0x3b5777,{'roots':_0x18364b,'markers':_0x363ef,'rootsAttributes':_0x45b691});}['_removeMetaData'](_0x3c3ce3){this['_savedMetaData']['delete'](_0x3c3ce3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x40a938,_0x200c70=null){let _0x5690c5=null;_0x40a938['is']('documentFragment')||(_0x5690c5=new ft(_0x40a938['name'],{'vid_start':null===_0x200c70?this['_revisionId']++:_0x200c70++}));const _0x5e6de3=[];for(const _0x45262d of _0x40a938['getChildren']())if(_0x45262d['is']('element')){_0x5e6de3['push'](this['_makeIdsRoot'](_0x45262d,_0x200c70));const _0x2da897=_0x5e6de3[_0x5e6de3['length']-0x1];null!==_0x200c70&&(_0x200c70=_0x2da897['is']('element','$text')?_0x2da897['getAttribute']('vid')+0x1:_0x2da897['getAttribute']('vid_end')+0x1);}else{for(let _0x2fc4e5=0x0;_0x2fc4e5<_0x45262d['offsetSize'];_0x2fc4e5++)_0x5e6de3['push'](new ft('$text',{'vid':null===_0x200c70?this['_revisionId']++:_0x200c70++}));}if(_0x40a938['is']('documentFragment')){const _0x54c327=F(_0x40a938['rootName']);return _0x54c327['_insertChild'](0x0,_0x5e6de3),_0x54c327;}return _0x5690c5['_setAttribute']('vid_end',null===_0x200c70?this['_revisionId']++:_0x200c70++),_0x5690c5['_insertChild'](0x0,_0x5e6de3),_0x5690c5;}['_calculateMetaData'](_0x18f496,_0x452c2e,_0x2afa1a){this['_reset']();const {roots:_0x344ee6,markers:_0x8693c7,rootsAttributes:_0x27628f}=this['_savedMetaData']['get'](_0x18f496);this['_baseRoots']=new Map(_0x344ee6),this['_baseRootsAttributes']=new Map(_0x5af04f(_0x27628f));for(const [_0x10e714,_0x361cfa]of this['_baseRoots'])if('$graveyard'!==_0x10e714&&(this['_diffRoots']['set'](_0x10e714,T(_0x361cfa)),this['_diffRootsAttributes']=new Map(_0x5af04f(_0x27628f)),_0x2afa1a)){const _0x5ef99d=this['_revisionId'];this['_idsRoots']['set'](_0x10e714,this['_makeIdsRoot'](_0x361cfa)),this['_baseIdsRoots']['set'](_0x10e714,this['_makeIdsRoot'](_0x361cfa,_0x5ef99d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2afa1a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4727bf,_0xb42109]of _0x8693c7){const _0x1b0360=this['_baseRoots']['get'](_0xb42109['rootName']),_0x27d366=this['_diffRoots']['get'](_0xb42109['rootName']),_0x1a001c=new vt(this['_fixPosition'](_0xb42109['start'],_0x1b0360),this['_fixPosition'](_0xb42109['end'],_0x1b0360)),_0x5ec82a=this['_fixRange'](_0x1a001c,_0x27d366);_0x1b0360['markers']['set'](_0x4727bf,_0x1a001c),this['_markers']['set'](_0x4727bf,_0x5ec82a);}this['_applyOperations'](_0x18f496,_0x452c2e,_0x2afa1a);}['_applyOperations'](_0x2a7b03,_0x1d0dd9,_0x1a70c1){for(const _0x1c2540 of this['source']['getOperations'](_0x2a7b03,_0x1d0dd9))this['_handleOperation'](_0x1c2540,_0x1a70c1);for(const _0x479585 of this['_diffRoots']['values']())_0x479585['markers']['clear']();for(const [_0x3a3142,_0x39b799]of this['_markers']){this['_diffRoots']['get'](_0x39b799['root']['rootName'])['markers']['set'](_0x3a3142,_0x39b799['clone']());}const _0x4a9121=new Map(),_0x85553b=new Map();for(const [_0x480648,_0x1062a3]of this['_diffRoots'])_0x4a9121['set'](_0x480648,T(_0x1062a3)),_0x85553b['set'](_0x480648,this['_diffRootsAttributes']['get'](_0x480648));this['_saveMetaData'](_0x1d0dd9,_0x4a9121,this['_markers'],_0x85553b);}['_getPreviousFrom'](_0x4b87c6){const _0x503d15=Array['from'](this['_savedMetaData']['keys']());_0x503d15['sort']((_0x483bf9,_0x37154d)=>_0x483bf9-_0x37154d),_0x503d15['reverse']();for(const _0x526c06 of _0x503d15)if(_0x526c06<_0x4b87c6)return _0x526c06;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4f12f4,_0x379945){const _0x196c60=Array['from'](_0x379945['markers'])['map'](([_0x3c5635,_0xe4e232])=>[_0x3c5635,this['_fixRange'](_0xe4e232,_0x4f12f4)]);_0x4f12f4['markers']=new Map(_0x196c60);}['_transformMarkers'](_0x3cfc02){for(const _0x2e040e of this['_markers']['values']()){const _0x375581=_0x2e040e['getTransformedByOperation'](_0x3cfc02),_0x54dc5d=vt['_createFromRanges'](_0x375581);_0x2e040e['start']=_0x54dc5d['start'],_0x2e040e['end']=_0x54dc5d['end'];}}['_handleOperation'](_0x38ea5f,_0x6bfb90){if('addRoot'!=_0x38ea5f['type']&&'detachRoot'!=_0x38ea5f['type']){if('insert'==_0x38ea5f['type']){const _0x5dfba7=_0x38ea5f['position']['root']['rootName'];this['_diffRoots']['has'](_0x5dfba7)||(this['_diffRoots']['set'](_0x5dfba7,F(_0x5dfba7,!0x0)),this['_diffRootsAttributes']['set'](_0x5dfba7,{}),_0x6bfb90&&this['_idsRoots']['set'](_0x5dfba7,F(_0x5dfba7,!0x0)));}else{if('addRootAttribute'==_0x38ea5f['type']||'removeRootAttribute'==_0x38ea5f['type']||'changeRootAttribute'==_0x38ea5f['type'])return void this['_handleRootAttributeOperation'](_0x38ea5f);'marker'==_0x38ea5f['type']&&this['_handleMarkerOperation'](_0x38ea5f);}if('marker'!==_0x38ea5f['type']){const _0x6d45c6=this['_cloneOperation'](_0x38ea5f,this['_diffRoots']);_0x6d45c6['_execute'](),this['_transformMarkers'](_0x6d45c6);}if(_0x6bfb90)switch(_0x38ea5f['type']){case'insert':this['_handleInsertOperation'](_0x38ea5f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x38ea5f);break;case'merge':this['_handleMergeOperation'](_0x38ea5f);break;case'split':this['_handleSplitOperation'](_0x38ea5f);}}else this['_handleRootOperation'](_0x38ea5f,_0x6bfb90);}['_cloneOperation'](_0x341a63,_0x5ec50f){const _0x3af203=_0x341a63['clone']();return _0x3af203['_authorId']=_0x341a63['_authorId'],this['_fixOperation'](_0x3af203,_0x5ec50f),_0x3af203;}['_getBaseVids'](_0x238329){return _0x238329['map'](_0x53dfb7=>{const _0x10d537=this['_getVidAttributeName'](_0x53dfb7);return Number(_0x53dfb7['item']['getAttribute'](_0x10d537));});}['_generateTape'](_0x291370,_0x2d0e4c){if(_0x291370['is']('element','$text'))_0x2d0e4c['push']({'item':_0x291370,'type':'text'});else{_0x291370['is']('element')&&_0x2d0e4c['push']({'item':_0x291370,'type':'elementStart'});for(const _0x594e9e of _0x291370['getChildren']())this['_generateTape'](_0x594e9e,_0x2d0e4c);_0x291370['is']('element')&&_0x2d0e4c['push']({'item':_0x291370,'type':'elementEnd'});}return _0x2d0e4c;}['_getState'](){const _0x249e35=new Map(this['_touched']),_0x201bf4=new Map(_0x249e35),_0xaee2db=new Map(),_0x1660c1={'insertions':{},'deletions':{}},_0xbf299b={'insertions':{},'deletions':{}},_0x5f37f6=new Map(),_0x3d21a9=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d21a9['delete']('$graveyard');for(const _0x50910b of _0x3d21a9){const _0x2e46c2=this['_diffRoots']['get'](_0x50910b)||F(_0x50910b,!0x1),_0xf675fd=this['_baseRoots']['get'](_0x50910b)||F(_0x50910b,!0x1);_0x2e46c2['isAttached']()||_0xf675fd['isAttached']()?(_0x1660c1['insertions'][_0x50910b]=T(_0x2e46c2),_0x1660c1['deletions'][_0x50910b]=T(_0xf675fd),this['_copyMarkers'](_0x1660c1['deletions'][_0x50910b],_0xf675fd),this['_copyMarkers'](_0x1660c1['insertions'][_0x50910b],_0x2e46c2),_0xbf299b['insertions'][_0x50910b]=this['_generateTape'](this['_idsRoots']['get'](_0x50910b),[]),_0xbf299b['deletions'][_0x50910b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x50910b)||F(_0x50910b,!0x1),[])):_0x3d21a9['delete'](_0x50910b);}for(const _0x125418 of _0x3d21a9){const _0x34052a=_0xbf299b['insertions'][_0x125418];for(const _0x5ba36f of _0x34052a){const _0x4d07fd=this['_getVidAttributeName'](_0x5ba36f),_0x3b8ac8=_0x5ba36f['item']['getAttribute'](_0x4d07fd);_0x201bf4['delete'](_0x3b8ac8),_0x3b8ac8>=this['_startingRevisionId']&&_0xaee2db['set'](_0x3b8ac8,_0x249e35['get'](_0x3b8ac8));}}for(const _0xff828b of _0x3d21a9){const _0xb95791=_0xbf299b['insertions'][_0xff828b],_0x31924c=this['_getBaseVids'](_0xbf299b['deletions'][_0xff828b]);let _0x2013bd=0x0;for(const _0x1f2848 of _0xb95791){const _0x559c39=this['_getVidAttributeName'](_0x1f2848),_0x329dd2=_0x1f2848['item']['getAttribute'](_0x559c39);if(!_0xaee2db['has'](_0x329dd2)&&!_0x5f37f6['has'](_0x329dd2)){if(_0x201bf4['has'](_0x329dd2))_0x2013bd++;else{if(_0x329dd2!=_0x31924c[_0x2013bd]){const _0x4bace4=_0x249e35['get'](_0x329dd2)||_0x249e35['get'](_0x31924c[_0x2013bd]);for(;_0x329dd2!=_0x31924c[_0x2013bd];)_0x201bf4['has'](_0x31924c[_0x2013bd])||(_0x5f37f6['set'](_0x31924c[_0x2013bd],_0x4bace4),_0x249e35['set'](_0x31924c[_0x2013bd],_0x4bace4)),_0x2013bd++;}_0x2013bd++;}}}}for(const _0x128619 of _0x3d21a9){const _0xab773a=_0xbf299b['insertions'][_0x128619];for(const _0x3cc81d of _0xab773a){const _0xa0cedc=this['_getVidAttributeName'](_0x3cc81d),_0x283208=_0x3cc81d['item']['getAttribute'](_0xa0cedc);if(_0x5f37f6['has'](_0x283208)){const _0x147f8c=_0x5f37f6['get'](_0x283208);_0x201bf4['has'](_0x283208)||_0x201bf4['set'](_0x283208,{..._0x147f8c}),_0xaee2db['set'](_0x283208,{..._0x147f8c});}}}for(const _0x4cf1d6 of _0x201bf4['keys']())_0x4cf1d6>=this['_startingRevisionId']&&_0x201bf4['delete'](_0x4cf1d6);const _0x4a25b9=new Map();for(const _0x2d45ec of _0x3d21a9){let _0x361d61=_0xbf299b['insertions'][_0x2d45ec];for(const _0xeffc10 of _0x361d61)if(_0xeffc10['item']['is']('element','tableCell')){const _0x3e26d5=this['_getVidAttributeName'](_0xeffc10),_0x331e7=_0xeffc10['item']['getAttribute'](_0x3e26d5);if(_0xaee2db['has'](_0x331e7)){const _0x37de9d=_0xeffc10['item']['parent']['parent']['getAttribute']('vid_start'),_0x2b3e17=_0x4a25b9['get'](_0x37de9d)||new Set();_0x2b3e17['add'](_0xaee2db['get'](_0x331e7)['userId']),_0x4a25b9['set'](_0x37de9d,_0x2b3e17);}}_0x361d61=_0xbf299b['deletions'][_0x2d45ec];for(const _0x5c2372 of _0x361d61)if(_0x5c2372['item']['is']('element','tableCell')){const _0xf88132=this['_getVidAttributeName'](_0x5c2372),_0x55e691=_0x5c2372['item']['getAttribute'](_0xf88132);if(_0x201bf4['has'](_0x55e691)){const _0x505330=_0x5c2372['item']['parent']['parent']['getAttribute']('vid_start'),_0x2f9b6f=_0x4a25b9['get'](_0x505330)||new Set();_0x2f9b6f['add'](_0x201bf4['get'](_0x55e691)['userId']),_0x4a25b9['set'](_0x505330,_0x2f9b6f);}}for(const _0x4de05c of _0x4a25b9['keys']())(_0xaee2db['has'](_0x4de05c)||_0x201bf4['has'](_0x4de05c))&&_0x4a25b9['delete'](_0x4de05c);}for(const _0x317716 of _0x3d21a9){const _0x279cf2=_0xbf299b['insertions'][_0x317716];let _0x22a79d=null,_0x1035fa=null;for(const _0x2896f0 of _0x279cf2){const _0x3eadf6=this['_getVidAttributeName'](_0x2896f0),_0x3dd2aa=_0x2896f0['item']['getAttribute'](_0x3eadf6),_0x4d7e10=_0x4a25b9['get'](_0x3dd2aa);_0x4d7e10&&'elementStart'==_0x2896f0['type']&&(_0x22a79d=Array['from'](_0x4d7e10)[0x0],_0x1035fa=_0x2896f0['item']['getAttribute']('vid_end')),_0x22a79d&&(_0x201bf4['set'](_0x3dd2aa,{'userId':_0x22a79d}),_0xaee2db['set'](_0x3dd2aa,{'userId':_0x22a79d})),_0x3dd2aa==_0x1035fa&&(_0x22a79d=null,_0x1035fa=null);}}const _0x4df6d9={},_0x134e56=new Set();for(const _0x19d3a8 of _0x3d21a9){const _0x31b320=_0x1660c1['deletions'][_0x19d3a8],_0x2a633a=_0x1660c1['insertions'][_0x19d3a8];for(const {userId:_0xe40d7c}of this['_touchedMarkers']['values']())null!==_0xe40d7c&&_0x134e56['add'](_0xe40d7c);for(const {userId:_0x49c8cd}of this['_touchedRoots']['values']())null!==_0x49c8cd&&_0x134e56['add'](_0x49c8cd);this['_markChanges'](_0x2a633a,_0xbf299b['insertions'][_0x19d3a8],_0xaee2db,'insertion',_0x134e56),this['_markChanges'](_0x31b320,_0xbf299b['deletions'][_0x19d3a8],_0x201bf4,'deletion',_0x134e56),_0x4df6d9[_0x19d3a8]={'insertions':this['_prepareViewToSave'](_0x2a633a),'deletions':this['_prepareViewToSave'](_0x31b320),'attachChange':this['_touchedRoots']['get'](_0x19d3a8)||null,'attributesBefore':_0x5af04f(this['_baseRootsAttributes']['get'](_0x19d3a8))||{},'attributesAfter':_0x5af04f(this['_diffRootsAttributes']['get'](_0x19d3a8))};}return{'diffData':_0x4df6d9,'authorsIds':Array['from'](_0x134e56)};}['_processRootBeforeSave'](_0x56c3e8){for(const [,_0x5249a3]of _0x56c3e8['markers']){const _0x252204=_0x5249a3['start']['getAncestors']()['filter'](_0x49cc39=>'tableCell'==_0x49cc39['name']);for(const _0x499cfd of _0x252204)0x1==_0x499cfd['childCount']&&_0x499cfd['getChild'](0x0)['is']('element','paragraph')&&_0x499cfd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x235c11){this['_processRootBeforeSave'](_0x235c11);const _0x566899=this['editor']['data']['toView'](_0x235c11,{}),_0x5c4f26=Array['from'](_0x566899['getChildren']())['map'](_0xa672fa=>this['_getViewJson'](_0xa672fa));return JSON['stringify'](_0x5c4f26);}['_getViewJson'](_0x329683){if(_0x329683['is']('$text'))return _0x329683['data'];{const _0x2019f5=_0x329683;return{'type':Object['keys'](P)['find'](_0x353d0d=>_0x329683 instanceof P[_0x353d0d]),'name':_0x2019f5['name'],'attributes':Array['from'](_0x2019f5['getAttributes']()),'children':Array['from'](_0x2019f5['getChildren']())['map'](_0xbe071f=>this['_getViewJson'](_0xbe071f))};}}['_markChanges'](_0x4a9732,_0x2e2f45,_0x33562e,_0x3d791f,_0x3ae8ba){let _0x277e7f=null,_0x3c197b=null,_0x1b6f66=0x0;const _0xac505e=this['editor']['model'];for(let _0x30f840=0x0;_0x30f840<_0x2e2f45['length'];_0x30f840++){const _0x3c9e3e=this['_getVidAttributeName'](_0x2e2f45[_0x30f840]),_0x291efe=_0x2e2f45[_0x30f840]['item']['getAttribute'](_0x3c9e3e),_0x31f41f=_0x33562e['get'](_0x291efe),_0x13d80a=_0x30f840==_0x2e2f45['length']-0x1;(!_0x277e7f&&_0x31f41f&&(_0x277e7f=_0x31f41f,_0x3c197b=_0x2e2f45[_0x30f840]),_0x277e7f&&(!_0x31f41f||_0x31f41f['userId']!=_0x277e7f['userId']))&&(_0x4f5966(_0x31f41f,B(_0x3c197b,_0x4a9732,_0xac505e),B(_0x2e2f45[_0x30f840],_0x4a9732,_0xac505e)),_0x277e7f=_0x31f41f||null,_0x3c197b=_0x31f41f?_0x2e2f45[_0x30f840]:null),_0x277e7f&&_0x13d80a&&_0x4f5966(_0x31f41f,B(_0x3c197b,_0x4a9732,_0xac505e),J(_0x2e2f45[_0x30f840],_0x4a9732,_0xac505e));}function _0x4f5966(_0x29a821,_0xe96a5,_0x5acb1c){const _0x546dc1=_0x277e7f['userId'],_0x49b44b='revision:'+_0x3d791f+':'+_0x546dc1+':'+_0x1b6f66++,_0x1b0f82=_0xac505e['createRange'](_0xe96a5,_0x5acb1c);_0x4a9732['markers']['set'](_0x49b44b,_0x1b0f82),null!==_0x546dc1&&_0x3ae8ba['add'](_0x546dc1);}}['_getVidAttributeName'](_0x18132b){switch(_0x18132b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x22c44f,_0x552340){_0x22c44f['baseVersion']=null;for(const _0x4f62f8 in _0x22c44f){const _0x279841=_0x22c44f[_0x4f62f8];if(_0x279841 instanceof gt){const _0x392586=_0x552340['get'](_0x279841['root']['rootName']);_0x22c44f[_0x4f62f8]=this['_fixPosition'](_0x279841,_0x392586);}if(_0x279841 instanceof vt){const _0x2717fa=_0x552340['get'](_0x279841['root']['rootName']);_0x22c44f[_0x4f62f8]=this['_fixRange'](_0x279841,_0x2717fa);}'root'===_0x4f62f8&&(_0x22c44f['root']=_0x552340['get'](_0x22c44f['root']['rootName']));}}['_fixRange'](_0x562521,_0x2479f2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x562521['start'],_0x2479f2),this['_fixPosition'](_0x562521['end'],_0x2479f2));}['_fixPosition'](_0x13d829,_0x17502c){return this['editor']['model']['createPositionFromPath'](_0x17502c,_0x13d829['path'],_0x13d829['stickiness']);}['_handleInsertOperation'](_0x1b5c52){const _0x4dadbd=this['_idsRoots']['get'](_0x1b5c52['position']['root']['rootName']),_0x1fbf47=this['_fixPosition'](_0x1b5c52['position'],_0x4dadbd),_0x246f1d=null===_0x1b5c52['_authorId']?null:_0x1b5c52['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x87e35c=_0x1fbf47['parent'],_0x411d75=this['_revisionId'],_0x1cf5af=[];for(const _0x54bb11 of _0x1b5c52['nodes'])if(_0x54bb11['is']('element'))_0x1cf5af['push'](this['_makeIdsRoot'](_0x54bb11));else{for(let _0x10983f=0x0;_0x10983f<_0x54bb11['offsetSize'];_0x10983f++)_0x1cf5af['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4fc461=this['_revisionId'];for(let _0x35285e=_0x411d75;_0x35285e<_0x4fc461;_0x35285e++)this['_touched']['set'](_0x35285e,{'userId':_0x246f1d});_0x87e35c['_insertChild'](_0x1fbf47['offset'],_0x1cf5af);}['_handleMoveOperation'](_0x2c7a00){(_0x2c7a00=this['_cloneOperation'](_0x2c7a00,this['_idsRoots']))['_execute']();const _0x5711f6=null===_0x2c7a00['_authorId']?null:_0x2c7a00['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c9a38=_0x2c7a00['getMovedRangeStart'](),_0x675c3c=_0x3c9a38['parent'],_0xd13d4a=_0x3c9a38['offset'];!function _0x97fb5a(_0x150226,_0x272ac4,_0x4528e5,_0x1c542b){for(let _0x35a434=_0x4528e5;_0x35a434<_0x1c542b;_0x35a434++){const _0x3e71c0=_0x272ac4['getChild'](_0x35a434);_0x3e71c0['is']('element','$text')?_0x150226['set'](_0x3e71c0['getAttribute']('vid'),{'userId':_0x5711f6}):(_0x150226['set'](_0x3e71c0['getAttribute']('vid_start'),{'userId':_0x5711f6}),_0x97fb5a(_0x150226,_0x3e71c0,0x0,_0x3e71c0['childCount']),_0x150226['set'](_0x3e71c0['getAttribute']('vid_end'),{'userId':_0x5711f6}));}}(this['_touched'],_0x675c3c,_0xd13d4a,_0xd13d4a+_0x2c7a00['howMany']);}['_handleMergeOperation'](_0x4e8bce){const _0x354389=null===(_0x4e8bce=this['_cloneOperation'](_0x4e8bce,this['_idsRoots']))['_authorId']?null:_0x4e8bce['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x443dc3=_0x4e8bce['targetPosition']['parent'],_0x53884=_0x4e8bce['sourcePosition']['parent'],_0x42428b=_0x443dc3['getAttribute']('vid_end'),_0x56b288=_0x53884['getAttribute']('vid_start');_0x443dc3['_setAttribute']('vid_end',_0x53884['getAttribute']('vid_end')),_0x53884['_setAttribute']('vid_end',_0x42428b),this['_touched']['set'](_0x56b288,{'userId':_0x354389}),this['_touched']['set'](_0x42428b,{'userId':_0x354389}),_0x4e8bce['_execute']();}['_handleSplitOperation'](_0x2dff0d){const _0x515bf4=null===(_0x2dff0d=this['_cloneOperation'](_0x2dff0d,this['_idsRoots']))['_authorId']?null:_0x2dff0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1cfc68=_0x2dff0d['graveyardPosition'],_0x17eb39=_0x2dff0d['splitPosition']['parent'];_0x2dff0d['_execute']();const _0x384fe6=_0x17eb39['getAttribute']('vid_end'),_0x3f67f8=_0x2dff0d['insertionPosition']['nodeAfter'];if(_0x1cfc68){const _0x3ff97e=_0x3f67f8['getAttribute']('vid_end'),_0x46e4fa=_0x17eb39['getAttribute']('vid_end');_0x17eb39['_setAttribute']('vid_end',_0x3ff97e),_0x3f67f8['_setAttribute']('vid_end',_0x46e4fa),this['_touched']['set'](_0x17eb39['getAttribute']('vid_end'),{'userId':_0x515bf4}),this['_touched']['set'](_0x3f67f8['getAttribute']('vid_start'),{'userId':_0x515bf4});}else{const _0x214780=this['_revisionId']++,_0x3d474a=this['_revisionId']++;_0x17eb39['_setAttribute']('vid_end',_0x214780),_0x3f67f8['_setAttribute']('vid_start',_0x3d474a),_0x3f67f8['_setAttribute']('vid_end',_0x384fe6),this['_touched']['set'](_0x214780,{'userId':_0x515bf4}),this['_touched']['set'](_0x3d474a,{'userId':_0x515bf4});}}['_handleMarkerOperation'](_0x39ec33){if(!_0x39ec33['affectsData'])return;const _0x88ee6d=(_0x39ec33=this['_cloneOperation'](_0x39ec33,this['_diffRoots']))['oldRange']?_0x39ec33['oldRange']['root']:null,_0x5692b5=_0x39ec33['newRange']?_0x39ec33['newRange']['root']:null;_0x88ee6d&&this['_markers']['delete'](_0x39ec33['name']),_0x5692b5&&this['_markers']['set'](_0x39ec33['name'],_0x39ec33['newRange']['clone']());const _0x2c94e1=null===_0x39ec33['_authorId']?null:_0x39ec33['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x158ccc=_0x39ec33['name'];if(!this['_touchedMarkers']['has'](_0x158ccc))return void this['_touchedMarkers']['set'](_0x158ccc,{'range':_0x39ec33['oldRange'],'userId':_0x2c94e1});const _0x56d9d3=this['_touchedMarkers']['get'](_0x158ccc),_0x27fa75=_0x56d9d3['range'],_0x196f25=_0x39ec33['newRange'];null==_0x27fa75&&null==_0x196f25||_0x27fa75&&_0x196f25&&_0x27fa75['isEqual'](_0x196f25)?this['_touchedMarkers']['delete'](_0x39ec33['name']):_0x56d9d3['userId']=_0x2c94e1;}['_handleRootOperation'](_0x296587,_0x28f1c8){this['_diffRoots']['has'](_0x296587['rootName'])?this['_diffRoots']['get'](_0x296587['rootName'])['_isAttached']=_0x296587['isAdd']:(this['_diffRoots']['set'](_0x296587['rootName'],F(_0x296587['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x296587['rootName'],{}),_0x28f1c8&&this['_idsRoots']['set'](_0x296587['rootName'],F(_0x296587['rootName'],!0x0)));const _0x291b77=null===_0x296587['_authorId']?null:_0x296587['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1980f4=this['_touchedRoots']['get'](_0x296587['rootName']);_0x1980f4&&_0x1980f4['userId']===_0x291b77?this['_touchedRoots']['delete'](_0x296587['rootName']):this['_touchedRoots']['set'](_0x296587['rootName'],{'userId':_0x291b77,'isAttached':_0x296587['isAdd']});}['_handleRootAttributeOperation'](_0x24e0ed){const _0x3a8197=this['_diffRootsAttributes']['get'](_0x24e0ed['root']['rootName']);null===_0x24e0ed['newValue']?delete _0x3a8197[_0x24e0ed['key']]:_0x3a8197[_0x24e0ed['key']]=_0x24e0ed['newValue'];}}function T(_0x3d3b21){const _0x101efe=F(_0x3d3b21['rootName'],_0x3d3b21['isAttached']());for(const _0x383de8 of _0x3d3b21['getChildren']()){const _0xde9dd2=_0x383de8['_clone'](!0x0);_0x101efe['_appendChild'](_0xde9dd2);}return _0x101efe;}function F(_0x4ce394,_0x2b60c7=!0x0){const _0x529e84=new mt();return _0x529e84['rootName']=_0x4ce394,_0x529e84['_isAttached']=_0x2b60c7,_0x529e84['isAttached']=()=>_0x529e84['_isAttached'],_0x529e84;}function B(_0x4b92a3,_0xf6d85a,_0x221754){const _0x2aeab3='elementEnd'==_0x4b92a3['type']?_0x221754['createPositionAt'](_0x4b92a3['item'],'end'):_0x221754['createPositionBefore'](_0x4b92a3['item']);return _0x221754['createPositionFromPath'](_0xf6d85a,_0x2aeab3['path'],_0x2aeab3['stickiness']);}function J(_0x19ed66,_0x228f38,_0x4c120f){const _0x20cf08='elementStart'==_0x19ed66['type']?_0x4c120f['createPositionAt'](_0x19ed66['item'],0x0):_0x4c120f['createPositionAfter'](_0x19ed66['item']);return _0x4c120f['createPositionFromPath'](_0x228f38,_0x20cf08['path'],_0x20cf08['stickiness']);}class ns extends _0x376464{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x28186c,_0x2d66ee){super(_0x28186c),this['focusTracker']=new _0x7d4c72(),this['keystrokes']=new _0x4053e6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2d66ee),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'](),_0xbcf98b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x209d4b=_0x390010=>_0x390010['stopPropagation']();this['keystrokes']['set']('arrowright',_0x209d4b),this['keystrokes']['set']('arrowleft',_0x209d4b),this['keystrokes']['set']('arrowup',_0x209d4b),this['keystrokes']['set']('arrowdown',_0x209d4b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x760562){this['revisionNameInputView']['fieldView']['element']['value']=_0x760562['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x35cc1c){const _0x2cab63=new nt(this['locale'],_0xcbfa91),_0xcebaae=_0x2cab63['fieldView'];_0xcebaae['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4c0254=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x35cc1c&&(_0x4c0254+='\x20('+m(this['locale'],'optional')+')'),(_0x2cab63['label']=_0x4c0254,_0xcebaae['on']('input',()=>{this['revisionNameInputValue']=_0xcebaae['element']['value']['trim']();}),_0x2cab63);}}class u extends _0x361651{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x10a3e6=this['editor'],_0x10d710=_0x10a3e6['plugins']['get']('RevisionTracker');_0x10a3e6['ui']['componentFactory']['add']('revisionHistory',_0x5f1914=>{const _0x260bad=_0x11399b(_0x5f1914),_0xb219cf=_0x260bad['panelView']['children'],_0x177930=new te(_0x5f1914),_0x2fa2e0=new _0x3ce312(_0x5f1914),_0x24c359=new _0x58a9b0(_0x5f1914),_0x5b3e72=new _0x3ce312(_0x5f1914),_0x281593=new _0x58a9b0(_0x5f1914);return _0x260bad['bind']('isEnabled')['to'](_0x10d710,'isReady',_0x10d710,'isEnabled',_0x10a3e6,'isReadOnly',(_0x499364,_0x2f1fa1,_0x3a7229)=>_0x499364&&_0x2f1fa1&&!_0x3a7229),_0x260bad['buttonView']['set']({'icon':_0x2a914a['history'],'label':m(_0x5f1914,'Revision\x20history'),'tooltip':!0x0}),_0x24c359['set']({'label':m(_0x5f1914,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x24c359['bind']('isEnabled')['to'](_0x10d710,'isReady',_0x10d710,'isEnabled',_0x10a3e6,'isReadOnly',(_0x3f8cab,_0x25e609,_0x2ebaa3)=>_0x3f8cab&&_0x25e609&&!_0x2ebaa3),_0x24c359['on']('execute',()=>this['_showDialog']()),_0x281593['set']({'label':m(_0x5f1914,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x281593['bind']('isEnabled')['to'](_0x10d710,'isReady',_0x10a3e6,'isReadOnly',(_0x11f6ef,_0x13c15c)=>_0x11f6ef&&!_0x13c15c),_0x281593['on']('execute',()=>{_0x10a3e6['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x260bad['isOpen']=!0x1,_0x10a3e6['editing']['view']['focus']();}),_0x2fa2e0['children']['add'](_0x24c359),_0x5b3e72['children']['add'](_0x281593),_0x177930['role']='menu',_0x177930['items']['addMany']([_0x2fa2e0,_0x5b3e72]),_0xb219cf['add'](_0x177930),_0x260bad;}),_0x10a3e6['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4ac786=this['editor'],_0x49c651=_0x4ac786['locale'],_0x2aeff6=new _0x1643c5(_0x49c651),_0x4b5e77=new _0x2732e5(_0x49c651);_0x2aeff6['buttonView']['set']({'icon':_0x2a914a['history'],'label':m(_0x49c651,'Revision\x20history')});const _0x25f7ce=new _0x21400a(_0x49c651,_0x2aeff6),_0x4b8511=new _0x178c59(_0x49c651);_0x4b8511['set']({'label':m(_0x49c651,'Save\x20current\x20revision')}),_0x4b8511['delegate']('execute')['to'](_0x2aeff6),_0x4b8511['on']('execute',()=>{this['_showDialog']();}),_0x25f7ce['children']['add'](_0x4b8511),_0x4b5e77['items']['add'](_0x25f7ce);const _0x2afca5=new _0x21400a(_0x49c651,_0x2aeff6),_0xaa21c9=new _0x178c59(_0x49c651);return _0xaa21c9['set']({'label':m(_0x49c651,'Open\x20revision\x20history')}),_0xaa21c9['delegate']('execute')['to'](_0x2aeff6),_0xaa21c9['on']('execute',()=>{_0x4ac786['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2afca5['children']['add'](_0xaa21c9),_0x4b5e77['items']['add'](_0x2afca5),_0x2aeff6['panelView']['children']['add'](_0x4b5e77),_0x2aeff6;}['_showDialog'](){const _0x16e1d3=this['editor'],_0x1940c6=_0x16e1d3['locale'],_0x435183=_0x16e1d3['plugins']['get']('Dialog'),_0x1dcdd5=_0x16e1d3['plugins']['get']('RevisionTracker');function _0x26381b(_0x5e62c4){_0x16e1d3['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5e62c4['revisionName']?_0x5e62c4['revisionNameInputView']['errorText']=m(_0x1940c6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x16e1d3['plugins']['get'](l)['saveRevision']({'name':_0x5e62c4['revisionName']}),_0x435183['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x26381b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x435183['show']({'id':'revisionSave','title':m(_0x1940c6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x16e1d3['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x435183['hide']()},{'label':m(_0x16e1d3['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2ae965){_0x2ae965['bind']('isEnabled')['to'](_0x1dcdd5,'isReady',_0x1dcdd5,'isEnabled',_0x16e1d3,'isReadOnly',(_0x42f6f2,_0x2d91b7,_0xd58870)=>_0x42f6f2&&_0x2d91b7&&!_0xd58870);},'onExecute':()=>_0x26381b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x34cd8e=this['editor'],_0x2552fe=_0x34cd8e['locale'];this['_saveRevisionFormView']=new ns(_0x2552fe,_0x34cd8e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x376464{['changeId'];['_model'];constructor(_0x4baf29,_0x1cbe62){super(_0x4baf29),this['_model']=_0x1cbe62,this['changeId']=_0x1cbe62['id'];const _0x2056bb=this['bindTemplate'],_0x191cad=m(_0x4baf29,_0x1cbe62['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1cbe62['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1cbe62['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2056bb['to']('type',_0x48ad6f=>'ck-revision-change__'+_0x48ad6f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x191cad}]},{'text':'\x20'+_0x1cbe62['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2332e5(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4efd5d){super(),this['id']=_0x4efd5d['id']||_0x52d906(),this['author']=_0x4efd5d['author'],this['type']=_0x4efd5d['type'],this['data']=_0x4efd5d['data']||{},this['rootName']=_0x4efd5d['rootName'],this['set']('createdAt',_0x4efd5d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x179d73,_0x56080e){this['newRevisionId']=_0x179d73,this['oldRevisionId']=_0x56080e,this['changes']=new _0x2ebcff();}['_setChanges'](_0x5f586d){for(const _0x385429 of _0x5f586d)this['changes']['add'](_0x385429);}}const Y={'c':_0x11367b,'a':_0xa485d0,'e':_0x335ef8,'r':_0x8ec83,'u':_0x4421f6};class d extends _0x361651{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x176997,_0x47b965,j];}constructor(_0x5684d7){super(_0x5684d7),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4b1b5e,_0x53b07a,_0x2ce33a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1f885b=>{for(const _0x3b144e of this['editor']['editing']['view']['document']['roots'])_0x2ce33a?_0x1f885b['removeClass']('ck-editor__editable__overlay',_0x3b144e):_0x1f885b['addClass']('ck-editor__editable__overlay',_0x3b144e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4d88dc=>null!==_0x4d88dc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5d3e79,_0x40be49,_0xf64fb6)=>_0x5d3e79&&_0xf64fb6?_0x40be49['changes']['getIndex'](_0xf64fb6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2b0792,_0x135f91)=>_0x2b0792?_0x135f91['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x47b965);}['init'](){const _0x374e96=this['editor'],_0x26abb0=new yt(_0x374e96,{'direction':'backward'}),_0x30990b=new yt(_0x374e96,{'direction':'forward'});(_0x374e96['commands']['add']('showPreviousChange',_0x26abb0),_0x374e96['commands']['add']('showNextChange',_0x30990b),_0x374e96['commands']['add']('restoreRevision',new _t(_0x374e96)),this['on']('change:numberOfChanges',()=>{_0x26abb0['refresh'](),_0x30990b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x374e96['enableReadOnlyMode']('revision-viewer'),_0x374e96['plugins']['has']('WidgetToolbarRepository'))&&_0x374e96['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x183974){await this['loadRevisionData'](_0x183974);const _0x59a75b={};for(const _0xfe6ccc in _0x183974['diffData']){if(_0x183974['diffData'][_0xfe6ccc]['attachChange']&&!_0x183974['diffData'][_0xfe6ccc]['attachChange']['isAttached'])continue;const _0x5a7147=this['_removeRevisionMarkers'](JSON['parse'](_0x183974['diffData'][_0xfe6ccc]['insertions'])),_0x34ea99=this['editor']['editing']['view']['document'],_0x5ce991=new _0x379ec6(_0x34ea99,_0x5a7147['map'](_0x250ba4=>this['_getViewObj'](_0x250ba4)));this['editor']['data']['processor']['useFillerType']('marked'),_0x59a75b[_0xfe6ccc]=this['editor']['data']['processor']['toData'](_0x5ce991),this['editor']['data']['processor']['useFillerType']('default');}return _0x59a75b;}async['getRevisionRootsAttributes'](_0x9e5a72){await this['loadRevisionData'](_0x9e5a72);const _0x29cd01={};for(const _0xa1fd2c in _0x9e5a72['diffData'])_0x9e5a72['diffData'][_0xa1fd2c]['attachChange']&&!_0x9e5a72['diffData'][_0xa1fd2c]['attachChange']['isAttached']||(_0x29cd01[_0xa1fd2c]=_0x9e5a72['diffData'][_0xa1fd2c]['attributesAfter']||{});return _0x29cd01;}['_removeRevisionMarkers'](_0xe10bc9){return(_0xe10bc9=_0xe10bc9['filter'](_0xf85106=>!_0xf85106['name']||'revision-start'!==_0xf85106['name']&&'revision-end'!==_0xf85106['name']))['forEach'](_0x3c677d=>{'string'!=typeof _0x3c677d&&(_0x3c677d['children']=this['_removeRevisionMarkers'](_0x3c677d['children']),_0x3c677d['attributes']=_0x3c677d['attributes']['filter'](_0x233f26=>!_0x233f26[0x0]['startsWith']('data-revision-')));}),_0xe10bc9;}async['compare'](_0x52a6b2,_0x9ee164,_0x936cbe=!0x1){if(!this['isEnabled'])return;const _0xea6ec2=this['diff'],_0x5f56db=this['repository'],_0x47e576='string'==typeof _0x52a6b2?_0x5f56db['getRevision'](_0x52a6b2):_0x52a6b2,_0xdebc36='string'==typeof _0x9ee164?_0x5f56db['getRevision'](_0x9ee164):_0x9ee164,_0x400c95=_0x47e576['id'],_0x32f32c=_0xdebc36?_0xdebc36['id']:null;if(!_0x936cbe&&this['diff']&&this['diff']['newRevisionId']===_0x400c95&&this['diff']['oldRevisionId']===_0x32f32c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x400c95,_0x32f32c);const _0x53b679=this['_getRevisionsRange'](_0x47e576,_0xdebc36,!0x0)['map'](_0x2240df=>this['loadRevisionData'](_0x2240df));return _0x53b679['push'](new Promise(_0x30bdfc=>{setTimeout(_0x30bdfc,0x14);})),Promise['all'](_0x53b679)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x54a655=this['_getDiff'](_0x400c95,_0x32f32c);for(const _0x3c3e7a of _0x54a655['changes'])this['_changeIdToChange']['set'](_0x3c3e7a['id'],_0x3c3e7a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x50dd25=>{for(const _0x3740b5 of this['editor']['model']['document']['getRootNames']())_0x50dd25['detachRoot'](_0x3740b5);for(const _0x522283 of Object['keys'](_0x54a655['model'])){const _0x35645b=_0x50dd25['addRoot'](_0x522283);for(const _0x522aa of Object['keys'](_0x54a655['attributes'][_0x522283]))_0x50dd25['setAttribute'](_0x522aa,_0x54a655['attributes'][_0x522283][_0x522aa],_0x35645b);_0x50dd25['insert'](_0x54a655['model'][_0x522283],_0x35645b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x54a655['changes'])),this['isReady']=!0x0;})['catch'](_0x12776a=>{console['error'](_0x12776a),this['_cleanUp'](),_0xea6ec2&&(this['diff']=_0xea6ec2),this['isReady']=!0x0;});}['addRevisionData'](_0xf28b8a,_0x2d53c3){const _0x39673d=this['repository']['createRevision'](_0xf28b8a);return _0x39673d['on']('_update',(_0x4d7343,_0x2e4d18,_0x432a6c)=>_0x2d53c3(_0x2e4d18,_0x432a6c,_0x39673d)),this['repository']['addRevision'](_0x39673d),_0x39673d;}['loadRevisionData'](_0x3db5b7){if(!_0x3db5b7||_0x3db5b7['diffData'])return Promise['resolve']();{const _0x2f5c0f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2f5c0f,'revisionId':_0x3db5b7['id']})['then'](_0x41044d=>{_0x3db5b7['_update']({'diffData':_0x41044d['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5c1a5c=>{for(const _0x2fe3f9 of this['editor']['model']['document']['getRootNames']())_0x5c1a5c['detachRoot'](_0x2fe3f9);});}['_sortAndFilterDiffChanges'](_0x251831){const _0x31797e=[],_0x1396d0=new Map();for(const _0x3c07ed of this['editor']['model']['document']['getRootNames']()){const _0xf73539=this['editor']['editing']['view']['getDomRoot'](_0x3c07ed);if(!_0xf73539)continue;const _0x32caaf=_0xf73539['getClientRects']()['item'](0x0);_0x32caaf&&(_0x31797e['push'](_0x3c07ed),_0x1396d0['set'](_0x3c07ed,_0x32caaf));}return _0x31797e['sort']((_0x519ae9,_0x47f90a)=>{const _0x434cab=_0x1396d0['get'](_0x519ae9),_0x541a78=_0x1396d0['get'](_0x47f90a);return _0x434cab['y']-_0x541a78['y']||_0x434cab['x']-_0x541a78['x'];}),(_0x251831=_0x251831['filter'](_0xe2169=>_0x31797e['includes'](_0xe2169['rootName'])))['sort']((_0x48a2c4,_0x10b49f)=>_0x31797e['indexOf'](_0x48a2c4['rootName'])-_0x31797e['indexOf'](_0x10b49f['rootName'])),_0x251831;}['_makeTape'](_0x12f040){const _0x2932aa=Array['from'](_0x12f040['markers'])['filter'](([_0x3cbcbb,_0x32d3d3])=>_0x3cbcbb['startsWith']('revision:')&&!_0x32d3d3['isCollapsed']),_0x20e6b0=Array['from'](this['editor']['model']['createRangeIn'](_0x12f040)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2932aa['length'])for(const _0x1d6269 of _0x20e6b0){const [_0x1dcdcf,_0x58e269]=_0x2932aa[0x0],[,_0x4e921c,_0x567829]=_0x1dcdcf['split'](':');if(_0x58e269['end']['isEqual'](_0x1d6269['nextPosition'])&&_0x2932aa['shift'](),(_0x1d6269['previousPosition']['isEqual'](_0x58e269['start'])||_0x1d6269['previousPosition']['isAfter'](_0x58e269['start']))&&('insertion'==_0x4e921c?_0x1d6269['isAdded']={'userId':_0x567829}:'deletion'==_0x4e921c&&(_0x1d6269['isRemoved']={'userId':_0x567829})),0x0==_0x2932aa['length'])break;}return _0x20e6b0;}['_refreshStartEndIndex'](_0x4075a8){const _0x581a12=new Map();for(let _0x37a94f=0x0;_0x37a94f<_0x4075a8['length'];_0x37a94f++)'text'===_0x4075a8[_0x37a94f]['type']?(_0x4075a8[_0x37a94f]['item']['startIndex']=_0x37a94f,_0x4075a8[_0x37a94f]['item']['endIndex']=_0x37a94f):('elementStart'===_0x4075a8[_0x37a94f]['type']?_0x4075a8[_0x37a94f]['item']['startIndex']=_0x37a94f:'elementEnd'===_0x4075a8[_0x37a94f]['type']&&(_0x4075a8[_0x37a94f]['item']['endIndex']=_0x37a94f),_0x581a12['set'](_0x4075a8[_0x37a94f]['id'],_0x37a94f));for(const _0x14e2e0 of _0x581a12['values']())'elementStart'===_0x4075a8[_0x14e2e0]['type']?_0x4075a8[_0x14e2e0]['item']['endIndex']=_0x581a12['get'](_0x4075a8[_0x14e2e0]['pairId']):'elementEnd'===_0x4075a8[_0x14e2e0]['type']&&(_0x4075a8[_0x14e2e0]['item']['startIndex']=_0x581a12['get'](_0x4075a8[_0x14e2e0]['pairId']));}['_processTape'](_0x5f497a){for(let _0x443f75=0x0;_0x443f75<_0x5f497a['length'];_0x443f75++){if('elementStart'===_0x5f497a[_0x443f75]['type'])_0x5f497a[_0x443f75]['item']['startIndex']=_0x443f75;else{if('elementEnd'===_0x5f497a[_0x443f75]['type']){_0x5f497a[_0x443f75]['item']['endIndex']=_0x443f75;const _0x36363c=_0x5f497a[_0x443f75]['item']['startIndex'];_0x5f497a[_0x36363c]['pairId']=_0x5f497a[_0x443f75]['id'],_0x5f497a[_0x443f75]['pairId']=_0x5f497a[_0x36363c]['id'];}else _0x5f497a[_0x443f75]['item']['startIndex']=_0x443f75,_0x5f497a[_0x443f75]['item']['endIndex']=_0x443f75,_0x5f497a[_0x443f75]['pairId']=null;}_0x5f497a[_0x443f75]['markersStart']||(_0x5f497a[_0x443f75]['markersStart']=[],_0x5f497a[_0x443f75]['markersEnd']=[]);}}['_markInsertions'](_0x36f014,_0x3c3d4a){const _0x28dee9=_0x36f014['filter'](_0x21e4ac=>!_0x21e4ac['isAdded']);for(let _0x579945=0x0;_0x579945<_0x3c3d4a['length'];_0x579945++)_0x3c3d4a[_0x579945]['isAdded']&&(_0x28dee9[_0x579945]['isAdded']=_0x3c3d4a[_0x579945]['isAdded']);}['_makeModelFromViewString'](_0x2b399e){const _0x200f5a=JSON['parse'](_0x2b399e),_0x58bb3b=this['editor']['editing']['view']['document'],_0x49aa68=new _0x379ec6(_0x58bb3b,_0x200f5a['map'](_0x3ba4af=>this['_getViewObj'](_0x3ba4af)));return this['editor']['data']['toModel'](_0x49aa68);}['_getViewObj'](_0x56aad6){const _0x307f00=this['editor']['editing']['view']['document'];if('string'==typeof _0x56aad6)return new _0x4317d4(_0x307f00,_0x56aad6);{const _0x440539=_0x56aad6['children']['map'](_0x13dd75=>this['_getViewObj'](_0x13dd75));return new(Y[_0x56aad6['type']]||_0x3c4ed4)(_0x307f00,_0x56aad6['name'],_0x56aad6['attributes'],_0x440539);}}['_getDiff'](_0x23836f,_0x12f996=null){const _0x1fb459=this['repository']['getRevision'](_0x23836f),_0x570894=_0x12f996?this['repository']['getRevision'](_0x12f996):null,_0x508002=this['_getRevisionsRange'](_0x1fb459,_0x570894),_0x5f5236=_0x508002[_0x508002['length']-0x1],_0x4e8a60=new Map(),_0x14abbb={'model':{},'attributes':{},'changes':[]},_0x410f00=new Set(),_0x290e57=new Map();for(let _0x56a4ed=_0x508002['length']-0x1;_0x56a4ed>=0x0;_0x56a4ed--){const _0x275a73=_0x508002[_0x56a4ed];for(const _0xf2b664 of Object['keys'](_0x275a73['diffData']))if(_0x275a73['diffData'][_0xf2b664]['attachChange']){const _0x55cb34=_0x275a73['diffData'][_0xf2b664]['attachChange'];_0x55cb34['isAttached']?(_0x410f00['add'](_0xf2b664),_0x290e57['has'](_0xf2b664)&&_0x290e57['get'](_0xf2b664)['userId']==_0x55cb34['userId']?_0x290e57['delete'](_0xf2b664):_0x290e57['set'](_0xf2b664,_0x55cb34)):_0x290e57['has'](_0xf2b664)?(_0x410f00['delete'](_0xf2b664),_0x290e57['delete'](_0xf2b664)):(_0x410f00['add'](_0xf2b664),_0x290e57['set'](_0xf2b664,_0x55cb34));}else _0x410f00['add'](_0xf2b664);}for(const _0x56880d of _0x410f00){const _0x35946e=_0x290e57['has'](_0x56880d)&&!_0x290e57['get'](_0x56880d)['isAttached'];let _0x46bcdb=_0x35946e?_0x508002['length']-0x1:0x0;const _0x365189=_0x35946e?-0x1:0x1;for(;_0x508002[_0x46bcdb];){const _0x356f0a=_0x508002[_0x46bcdb];if(_0x356f0a['diffData'][_0x56880d]){const _0x1a6ed1=_0x35946e?_0x356f0a['diffData'][_0x56880d]['attributesBefore']:_0x356f0a['diffData'][_0x56880d]['attributesAfter'];_0x14abbb['attributes'][_0x56880d]=_0x1a6ed1?_0x5af04f(_0x1a6ed1):{};break;}_0x46bcdb+=_0x365189;}}for(const _0xdd0766 of _0x508002){_0xdd0766['model']={};for(const _0x5c545b of _0xdd0766['authors'])_0x4e8a60['set'](_0x5c545b['id'],_0x5c545b);for(const _0x1ac9cb of _0x410f00){const _0x392239=_0xdd0766['diffData'][_0x1ac9cb]?_0xdd0766['diffData'][_0x1ac9cb]['insertions']:'[]',_0x493d8b=_0xdd0766['diffData'][_0x1ac9cb]?_0xdd0766['diffData'][_0x1ac9cb]['deletions']:'[]';_0xdd0766['model'][_0x1ac9cb]={'insertions':this['_makeModelFromViewString'](_0x392239),'deletions':this['_makeModelFromViewString'](_0x493d8b)};}}for(const _0x4459e2 of _0x410f00){let _0x3c2b68=null,_0xa37d9d=0x0;const _0x361225=new Map(Array['from'](_0x1fb459['model'][_0x4459e2]['insertions']['markers'])['filter'](([_0x17b7c1])=>!_0x17b7c1['startsWith']('revision:')));let _0x6aa6d0=0x0;for(const _0x18dc37 of _0x508002){const _0x32a672=this['_makeTape'](_0x18dc37['model'][_0x4459e2]['insertions']);_0x18dc37==_0x1fb459?(_0x3c2b68=_0x32a672,_0xa37d9d=_0x3c2b68['length'],_0x3c2b68['forEach'](_0x1b3790=>{_0x1b3790['id']=_0x6aa6d0++;}),this['_processTape'](_0x3c2b68)):this['_markInsertions'](_0x3c2b68,_0x32a672);const _0x230091=_0x3c2b68['filter'](_0x4b6dda=>!_0x4b6dda['isAdded'])['map'](_0x3e0bde=>_0x3e0bde['id']);let _0x1c32f7=0x0;const _0x2d437b=this['_makeTape'](_0x18dc37['model'][_0x4459e2]['deletions']);_0x2d437b['forEach'](_0x465962=>{_0x465962['isRemoved']?_0x465962['id']=_0xa37d9d++:_0x465962['id']=_0x230091[_0x1c32f7++];}),this['_processTape'](_0x2d437b),this['_setDistance'](_0x3c2b68,'isAdded'),this['_setDistance'](_0x2d437b,'isRemoved'),_0x18dc37==_0x1fb459&&this['_markMarkers'](_0x3c2b68,_0x361225),_0x3c2b68=this['_joinTapes'](_0x3c2b68,_0x2d437b),this['_refreshStartEndIndex'](_0x3c2b68),this['_setDistance'](_0x3c2b68,'isRemoved');}_0x3c2b68=_0x3c2b68['filter'](_0x2e2a77=>!(_0x2e2a77['isAdded']&&_0x2e2a77['isRemoved']));const _0x5dc54a=new Map(_0x5f5236['model'][_0x4459e2]['deletions']['markers']),_0x48bcb9=new Set(_0x361225['keys']());for(const _0x5bc9be of _0x5dc54a['keys']())_0x48bcb9['delete'](_0x5bc9be);this['_markSuggestions'](_0x3c2b68,_0x48bcb9),this['_fixObsoleteTags'](_0x3c2b68),_0x3c2b68=this['_removeMissingPairs'](_0x3c2b68),_0x3c2b68=this['_markMismatchedRemovedTags'](_0x3c2b68),_0x3c2b68=this['_removeUnsupportedChanges'](_0x3c2b68);const {root:_0xae10d,changes:_0xf5ad0c}=this['_makeModelFromTape'](_0x3c2b68,_0x4e8a60,_0x4459e2);_0x14abbb['model'][_0x4459e2]=_0xae10d;const _0x51b473=_0x290e57['get'](_0x4459e2);if(_0x51b473){const _0x281288=_0x4e8a60['get'](_0x51b473['userId']),_0x5e55cb=new r({'author':_0x281288,'type':_0x51b473['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4459e2});_0xf5ad0c['unshift'](_0x5e55cb),_0x14abbb['attributes'][_0x4459e2]['revisionHistoryAttachChange']=_0x5e55cb['id'];}_0x14abbb['changes']=_0x14abbb['changes']['concat'](_0xf5ad0c);}return _0x14abbb;}['_markMarkers'](_0x3184b8,_0x5ccd6f){for(let _0x21a5a4=0x0;_0x21a5a4<_0x3184b8['length'];_0x21a5a4++)for(const [_0x354554,_0x2d76d1]of _0x5ccd6f)_0x2d76d1['start']['isEqual'](_0x3184b8[_0x21a5a4]['previousPosition'])&&_0x3184b8[_0x21a5a4]['markersStart']['push'](_0x354554),_0x2d76d1['end']['isEqual'](_0x3184b8[_0x21a5a4]['nextPosition'])&&_0x3184b8[_0x21a5a4]['markersEnd']['push'](_0x354554);}['_joinTapes'](_0x271af7,_0x3bd2cd){let _0x525874=[],_0x1b4d47=0x0,_0xeb7e6d=0x0;for(;_0x1b4d47<_0x271af7['length']||_0xeb7e6d<_0x3bd2cd['length'];){const _0x5809e3=_0x271af7[_0x1b4d47]||{},_0x2333c1=_0x3bd2cd[_0xeb7e6d]||{};if(_0x5809e3['id']==_0x2333c1['id'])_0x1b4d47++,_0xeb7e6d++,_0x525874['push'](_0x5809e3);else{if(_0x2333c1['isRemoved']&&_0x5809e3['isAdded']){const {commonTape:_0x199d82,iEnd:_0x1138f5,jEnd:_0x4be194}=this['_threeWayMerge'](_0x271af7,_0x1b4d47,_0x3bd2cd,_0xeb7e6d);_0x525874=_0x525874['concat'](_0x199d82),_0x1b4d47=_0x1138f5,_0xeb7e6d=_0x4be194;}else _0x2333c1['isRemoved']?(_0xeb7e6d++,_0x525874['push'](_0x2333c1)):(_0x1b4d47++,_0x525874['push'](_0x5809e3));}}return _0x525874;}['_markSuggestions'](_0x696d9b,_0x48e4f1){const _0x4ab28b=[];for(let _0x29a55c=0x0;_0x29a55c<_0x696d9b['length'];_0x29a55c++){for(let _0x2a8150=0x0;_0x2a8150<_0x696d9b[_0x29a55c]['markersStart']['length'];_0x2a8150++){const _0x563007=_0x696d9b[_0x29a55c]['markersStart'][_0x2a8150];if(!_0x48e4f1['has'](_0x563007))continue;const {group:_0x5edcc3,type:_0x529ff8,authorId:_0x5831d3}=_0x4c5eae(_0x563007);'revision-suggestion'!=_0x5edcc3||'insertion'!=_0x529ff8&&'deletion'!=_0x529ff8||(_0x4ab28b['unshift']({'type':_0x529ff8,'name':_0x563007,'userId':_0x5831d3}),_0x696d9b[_0x29a55c]['markersStart']['splice'](_0x2a8150,0x1),_0x2a8150--);}_0x3451f0(_0x696d9b[_0x29a55c]);for(let _0x11eca6=0x0;_0x11eca6<_0x696d9b[_0x29a55c]['markersEnd']['length'];_0x11eca6++){const _0x325ef6=_0x696d9b[_0x29a55c]['markersEnd'][_0x11eca6];if(!_0x48e4f1['has'](_0x325ef6))continue;const {group:_0x106871,type:_0x1fc518}=_0x4c5eae(_0x325ef6);if('revision-suggestion'!=_0x106871||'insertion'!=_0x1fc518&&'deletion'!=_0x1fc518)continue;_0x696d9b[_0x29a55c]['markersEnd']['splice'](_0x11eca6,0x1),_0x11eca6--;const _0x4d1538=_0x4ab28b['findIndex'](_0x536b15=>_0x536b15['name']==_0x325ef6);_0x4d1538>-0x1&&_0x4ab28b['splice'](_0x4d1538,0x1);}}function _0x4c5eae(_0x917716){const _0x44fb88=_0x917716['split'](':');return{'group':_0x44fb88[0x0],'type':_0x44fb88[0x1],'subType':_0x44fb88['length']>=0x5?_0x44fb88[0x2]:null,'id':_0x44fb88['length']<0x5?_0x44fb88[0x2]:_0x44fb88[0x3],'authorId':_0x44fb88['length']<0x5?_0x44fb88[0x3]:_0x44fb88[0x4],'markerCount':0x6==_0x44fb88['length']?_0x44fb88[0x5]:null};}function _0x3451f0(_0x311d76){for(let _0x44ca48=0x0;_0x44ca48<_0x4ab28b['length'];_0x44ca48++){if(_0x311d76['isAdded']&&'insertion'==_0x4ab28b[_0x44ca48]['type'])return _0x311d76['isAddSuggestion']=_0x4ab28b[_0x44ca48],void delete _0x311d76['isAdded'];if(!_0x311d76['isAdded']&&!_0x311d76['isRemoved']&&'deletion'==_0x4ab28b[_0x44ca48]['type'])return void(_0x311d76['isRemoveSuggestion']=_0x4ab28b[_0x44ca48]);}}}['_setDistance'](_0x250a26,_0x48d07e){let _0x402ff7=0x0,_0x3487c4=!0x1;const _0x42f880=new Map();for(const _0x2d188f of _0x250a26)_0x2d188f[_0x48d07e]?_0x3487c4&&(_0x402ff7++,_0x3487c4=!0x1):(_0x402ff7++,_0x3487c4=!0x0),_0x42f880['set'](_0x2d188f['id'],_0x402ff7);for(let _0x4e63b9=0x0;_0x4e63b9<_0x250a26['length'];_0x4e63b9++){if('isRemoved'==_0x48d07e&&_0x250a26[_0x4e63b9]['isAdded']||'isAdded'==_0x48d07e&&_0x250a26[_0x4e63b9]['isRemoved'])continue;if('text'==_0x250a26[_0x4e63b9]['type']){_0x250a26[_0x4e63b9]['distance']=0x0;continue;}const _0x23362d=_0x42f880['get'](_0x250a26[_0x4e63b9]['pairId']),_0x2c5ce0=_0x42f880['get'](_0x250a26[_0x4e63b9]['id']);_0x250a26[_0x4e63b9]['distance']=_0x23362d-_0x2c5ce0;}}['_getRevisionsRange'](_0x4d600f,_0x38c3a9,_0x4d6519=!0x1){const _0x287a45=[];let _0x4fd2fc=this['repository']['getIndex'](_0x4d600f),_0x2f6da9=this['repository']['getIndex'](_0x38c3a9);for(-0x1==_0x2f6da9&&(_0x2f6da9=this['repository']['_revisions']['length'],_0x4d6519=!0x1);_0x4fd2fc<_0x2f6da9;)_0x287a45['push'](this['repository']['getRevision'](_0x4fd2fc)),_0x4fd2fc++;return _0x4d6519&&_0x287a45['push'](this['repository']['getRevision'](_0x4fd2fc)),_0x287a45;}['_threeWayMerge'](_0x7ea196,_0x539920,_0xd2478f,_0x55daab){const _0x1f675a=this['editor']['model']['schema'];let _0x13a83a=_0x539920;for(;_0x7ea196[_0x13a83a]&&_0x7ea196[_0x13a83a]['isAdded'];)_0x13a83a++;let _0x23401b=_0x55daab;for(;_0xd2478f[_0x23401b]&&_0xd2478f[_0x23401b]['isRemoved'];)_0x23401b++;_0x1497ba(_0x7ea196,_0x539920,_0x13a83a),_0x1497ba(_0xd2478f,_0x55daab,_0x23401b);const _0x5236df=_0xd2478f['slice'](_0x55daab,_0x23401b)['concat'](_0x7ea196['slice'](_0x539920,_0x13a83a));return _0x5236df['sort']((_0x2ebeb5,_0x3c708e)=>_0x2ebeb5['side']!=_0x3c708e['side']?_0x2ebeb5['side']-_0x3c708e['side']:_0x2ebeb5['level']!=_0x3c708e['level']?_0x2ebeb5['level']-_0x3c708e['level']:_0x2ebeb5['distance']!=_0x3c708e['distance']?_0x3c708e['distance']-_0x2ebeb5['distance']:!!_0x2ebeb5['isAdded']!=!!_0x3c708e['isAdded']?-0x1==_0x2ebeb5['side']||0x0==_0x2ebeb5['side']?_0x2ebeb5['isAdded']?-0x1:0x1:_0x2ebeb5['isAdded']?0x1:-0x1:_0x2ebeb5['index']-_0x3c708e['index']),{'commonTape':_0x5236df,'iEnd':_0x13a83a,'jEnd':_0x23401b};function _0x1497ba(_0x1733ff,_0xb66f32,_0x1a11b3){let _0x42722f=-0x1,_0x4de679=Number['POSITIVE_INFINITY'],_0x53ae7c=!0x0;for(let _0x27b964=_0xb66f32;_0x27b964<_0x1a11b3;_0x27b964++)if(_0x1f675a['isInline'](_0x1733ff[_0x27b964]['item'])||(_0x53ae7c=!0x1),_0x1733ff[_0x27b964]['item']['startIndex']<_0xb66f32&&(_0x42722f=_0x27b964),_0x1733ff[_0x27b964]['item']['endIndex']>=_0x1a11b3){_0x4de679=_0x27b964;break;}_0x53ae7c&&(_0x42722f=_0x1a11b3-0x1);for(let _0x530a3e=_0xb66f32;_0x530a3e<_0x1a11b3;_0x530a3e++)_0x1733ff[_0x530a3e]['side']=_0x530a3e<=_0x42722f?-0x1:_0x530a3e<_0x4de679?0x0:0x1,_0x1733ff[_0x530a3e]['index']=_0x530a3e;let _0x2cc7e5=0x0;for(let _0x3e4919=_0xb66f32;_0x3e4919<=_0x42722f;_0x3e4919++)0x0==_0x1733ff[_0x3e4919]['distance']?_0x1733ff[_0x3e4919]['level']=_0x2cc7e5:(_0x2cc7e5++,_0x1733ff[_0x3e4919]['level']=_0x2cc7e5,_0x2cc7e5++);for(let _0x2a9b82=_0xb66f32;_0x2a9b82<_0x1a11b3;_0x2a9b82++)0x0==_0x1733ff[_0x2a9b82]['side']&&(_0x1733ff[_0x2a9b82]['level']=_0x2cc7e5);_0x2cc7e5=0x0;for(let _0x36bd8f=_0x1a11b3-0x1;_0x36bd8f>=_0x4de679;_0x36bd8f--)0x0==_0x1733ff[_0x36bd8f]['distance']?_0x1733ff[_0x36bd8f]['level']=_0x2cc7e5:(_0x2cc7e5--,_0x1733ff[_0x36bd8f]['level']=_0x2cc7e5,_0x2cc7e5--);}}['_fixObsoleteTags'](_0x1d6bbc){const _0x267c80=new Map(),_0x2ec3ee=this['editor']['model']['schema'];for(let _0x1827a4=0x1;_0x1827a4<_0x1d6bbc['length'];_0x1827a4++){let _0x50c6e6,_0xb9e3ab,_0x27ae42;const _0x19d986=_0x1d6bbc[_0x1827a4],_0x318883=_0x1d6bbc[_0x1827a4-0x1];if('text'==_0x19d986['type'])continue;if(_0x19d986['type']!=_0x318883['type'])continue;if(!_0x2ec3ee['isBlock'](_0x318883['item'])||_0x2ec3ee['isLimit'](_0x318883['item']))continue;if(!_0x2ec3ee['isBlock'](_0x19d986['item'])||_0x2ec3ee['isLimit'](_0x19d986['item']))continue;if((_0x1d6bbc[_0x1827a4]['isAdded']||_0x1d6bbc[_0x1827a4]['isAddSuggestion'])&&_0x1d6bbc[_0x1827a4-0x1]['isRemoved'])_0x50c6e6=_0x1d6bbc[_0x1827a4],_0xb9e3ab=_0x1d6bbc[_0x1827a4-0x1],_0x27ae42=_0x1827a4-0x1;else{if(!_0x1d6bbc[_0x1827a4]['isRemoved']||!_0x1d6bbc[_0x1827a4-0x1]['isAdded']&&!_0x1d6bbc[_0x1827a4-0x1]['isAddSuggestion'])continue;_0x50c6e6=_0x1d6bbc[_0x1827a4-0x1],_0xb9e3ab=_0x1d6bbc[_0x1827a4],_0x27ae42=_0x1827a4;}const _0x3e44f6=_0x50c6e6['level']==_0xb9e3ab['level'],_0x5bf9d8=Math['abs'](_0x50c6e6['level'])<Math['abs'](_0xb9e3ab['level'])&&0x0==_0xb9e3ab['distance'];(_0x3e44f6||_0x5bf9d8)&&(_0x267c80['set'](_0xb9e3ab['id'],_0x50c6e6['id']),_0x1d6bbc['splice'](_0x27ae42,0x1),_0x1827a4--,_0x50c6e6['isAdded']=!0x1);}for(let _0x28b37c=0x0;_0x28b37c<_0x1d6bbc['length'];_0x28b37c++)_0x267c80['has'](_0x1d6bbc[_0x28b37c]['pairId'])&&(_0x1d6bbc[_0x28b37c]['pairId']=_0x267c80['get'](_0x1d6bbc[_0x28b37c]['pairId']));}['_removeMissingPairs'](_0x12f6ba){const _0x3c7ee7=new Set(_0x12f6ba['map'](_0xf23740=>_0xf23740['id']));for(let _0x6b123b=0x0;_0x6b123b<_0x12f6ba['length'];_0x6b123b++)_0x3c7ee7['has'](_0x12f6ba[_0x6b123b]['pairId'])||0x0==_0x12f6ba[_0x6b123b]['distance']||(_0x12f6ba[_0x6b123b]['isIncorrect']=!0x0);return _0x12f6ba['filter'](_0x223ec4=>!_0x223ec4['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5a3885){const _0x11adcc=new Set();for(let _0x1e7882=0x0;_0x1e7882<_0x5a3885['length'];_0x1e7882++){if(_0x11adcc['has'](_0x5a3885[_0x1e7882]['id'])&&_0x5a3885[_0x1e7882]['isRemoved']&&(_0x5a3885[_0x1e7882]['isIncorrect']=!0x0),_0x5a3885[_0x1e7882]['isIncorrect'])continue;if(0x0==_0x5a3885[_0x1e7882]['distance'])continue;if('elementStart'!=_0x5a3885[_0x1e7882]['type'])continue;if(null==_0x5a3885[_0x1e7882]['pairId'])continue;let _0x37b397=_0x1e7882+0x1,_0x2c32bf=0x0;for(;_0x5a3885[_0x37b397]['id']!=_0x5a3885[_0x1e7882]['pairId'];)'elementStart'==_0x5a3885[_0x37b397]['type']?_0x2c32bf++:'elementEnd'==_0x5a3885[_0x37b397]['type']&&_0x2c32bf--,_0x37b397++;if(0x0!=_0x2c32bf){if(_0x5a3885[_0x1e7882]['isRemoved'])_0x5a3885[_0x1e7882]['isIncorrect']=!0x0;else{for(;_0x37b397!=_0x1e7882;)_0x5a3885[_0x37b397]['isRemoved']&&0x0!=_0x5a3885[_0x37b397]['distance']&&(_0x5a3885[_0x37b397]['isIncorrect']=!0x0,_0x11adcc['add'](_0x5a3885[_0x37b397]['pairId'])),_0x37b397--;}}}return _0x5a3885['filter'](_0x47fa93=>!_0x47fa93['isIncorrect']);}['_removeUnsupportedChanges'](_0x3cf411){const _0x3871f2=this['editor']['model']['schema'];for(let _0x463e4c=0x0;_0x463e4c<_0x3cf411['length'];_0x463e4c++){if(!(_0x3cf411[_0x463e4c]['isAdded']||_0x3cf411[_0x463e4c]['isAddSuggestion']||_0x3cf411[_0x463e4c]['isRemoved']||_0x3cf411[_0x463e4c]['isRemoveSuggestion']))continue;if(0x0==_0x3cf411[_0x463e4c]['distance'])continue;const _0x39205e=_0x3cf411[_0x463e4c]['item'];_0x3871f2['isBlock'](_0x39205e)||_0x3871f2['isLimit'](_0x39205e)||(_0x3cf411[_0x463e4c]['isAdded']&&delete _0x3cf411[_0x463e4c]['isAdded'],_0x3cf411[_0x463e4c]['isAddSuggestion']&&delete _0x3cf411[_0x463e4c]['isAddSuggestion'],_0x3cf411[_0x463e4c]['isRemoveSuggestion']&&delete _0x3cf411[_0x463e4c]['isRemoveSuggestion'],_0x3cf411[_0x463e4c]['isRemoved']&&(_0x3cf411[_0x463e4c]['isIncorrect']=!0x0));}return _0x3cf411['filter'](_0x5abc53=>!_0x5abc53['isIncorrect']);}['_makeModelFromTape'](_0x12071d,_0xb79b6f,_0x3eb3ed){const _0x222871=new mt(),_0x3abebf=[],_0x508155=new Map(),_0x58ce3e=this['editor']['model'],_0x1d8136=_0x58ce3e['schema'],_0x117daa=[_0x222871],_0x298588={},_0x101cc2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x35e4de=null;const _0x55ef4c=[0x0];for(let _0x1f3773=0x0;_0x1f3773<_0x12071d['length'];_0x1f3773++)if('elementStart'===_0x12071d[_0x1f3773]['type']){_0x12071d[_0x1f3773]['previousPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c);const _0x342018=new ft(_0x12071d[_0x1f3773]['item']['name'],_0x12071d[_0x1f3773]['item']['getAttributes']());_0x117daa[0x0]['_appendChild'](_0x342018),_0x55ef4c['push'](0x0),_0x117daa['unshift'](_0x342018),_0x12071d[_0x1f3773]['nextPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c);}else'elementEnd'===_0x12071d[_0x1f3773]['type']?(_0x117daa['shift'](),_0x12071d[_0x1f3773]['previousPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c),_0x55ef4c['pop'](),_0x55ef4c[_0x55ef4c['length']-0x1]++,_0x12071d[_0x1f3773]['nextPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c)):(_0x12071d[_0x1f3773]['previousPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c),_0x35e4de?_0x35e4de['_data']+=_0x12071d[_0x1f3773]['item']['data']:_0x35e4de=new wt(_0x12071d[_0x1f3773]['item']['data'],_0x12071d[_0x1f3773]['item']['getAttributes']()),_0x12071d[_0x1f3773+0x1]&&'text'===_0x12071d[_0x1f3773+0x1]['type']&&_0x31a757(_0x35e4de,_0x12071d[_0x1f3773+0x1]['item'])||(_0x117daa[0x0]['_appendChild'](_0x35e4de),_0x35e4de=null),_0x55ef4c[_0x55ef4c['length']-0x1]+=_0x12071d[_0x1f3773]['item']['offsetSize'],_0x12071d[_0x1f3773]['nextPosition']=_0x58ce3e['createPositionFromPath'](_0x222871,_0x55ef4c));for(let _0x4ac1bf=0x0;_0x4ac1bf<_0x12071d['length'];_0x4ac1bf++){const _0x33142d=_0x12071d[_0x4ac1bf]['previousPosition'],_0x93b576=_0x12071d[_0x4ac1bf]['nextPosition'];for(const _0x23b00a of _0x12071d[_0x4ac1bf]['markersStart'])_0x508155['set'](_0x23b00a,{'start':_0x33142d,'end':null});_0x17ac39('isRemoveSuggestion',_0x4ac1bf,_0x33142d,_0x93b576),_0x17ac39('isAddSuggestion',_0x4ac1bf,_0x33142d,_0x93b576),_0x17ac39('isRemoved',_0x4ac1bf,_0x33142d,_0x93b576),_0x17ac39('isAdded',_0x4ac1bf,_0x33142d,_0x93b576);for(const _0x1ee241 of _0x12071d[_0x4ac1bf]['markersEnd']){_0x508155['get'](_0x1ee241)['end']=_0x93b576;}}for(const [_0x45459f,_0x426b03]of _0x508155){const _0x35eb12=this['editor']['model']['createRange'](_0x426b03['start'],_0x426b03['end']);_0x222871['markers']['set'](_0x45459f,_0x35eb12);}return _0x3abebf['sort']((_0x482ac8,_0x498992)=>{const _0x462db2=_0x222871['markers']['get']('revision:'+_0x482ac8['id']),_0x5952c1=_0x222871['markers']['get']('revision:'+_0x498992['id']);return _0x462db2['start']['isBefore'](_0x5952c1['start'])?-0x1:_0x462db2['start']['isAfter'](_0x5952c1['start'])?0x1:_0x462db2['end']['isBefore'](_0x5952c1['end'])?-0x1:_0x462db2['end']['isAfter'](_0x5952c1['end'])?0x1:'add'===_0x482ac8['type']?-0x1:0x1;}),{'root':_0x222871,'changes':_0x3abebf};function _0x17ac39(_0x48c065,_0x29bd73,_0x2cf443,_0x22acfc){const _0x39b4e8=!!_0x12071d[_0x29bd73][_0x48c065],_0x3944be=_0x39b4e8?_0x12071d[_0x29bd73][_0x48c065]['userId']:null,_0x10c1bc=_0x29bd73===_0x12071d['length']-0x1,_0x22d9cd=_0x101cc2[_0x48c065][0x0],_0x2e9f33=_0x1d8136['isObject'](_0x12071d[_0x29bd73]['item']);!_0x298588[_0x48c065]&&_0x39b4e8?_0x298588[_0x48c065]={'start':_0x2cf443,'tapeItem':_0x12071d[_0x29bd73],'userId':_0x3944be,'type':_0x48c065}:_0x298588[_0x48c065]&&!_0x39b4e8?(_0x298588[_0x48c065]['end']=_0x2cf443,_0x5ad6ba(_0x298588[_0x48c065]),_0x298588[_0x48c065]=null):_0x298588[_0x48c065]&&_0x39b4e8&&_0x298588[_0x48c065]['userId']!==_0x3944be&&(_0x298588[_0x48c065]['end']=_0x2cf443,_0x22d9cd&&_0x22d9cd['userId']===_0x298588[_0x48c065]['userId']||_0x5ad6ba(_0x298588[_0x48c065]),_0x298588[_0x48c065]={'start':_0x2cf443,'tapeItem':_0x12071d[_0x29bd73],'userId':_0x3944be,'type':_0x48c065}),_0x298588[_0x48c065]&&_0x2e9f33&&('elementStart'!==_0x12071d[_0x29bd73]['type']||_0x22d9cd&&_0x22d9cd['userId']===_0x3944be||_0x101cc2[_0x48c065]['unshift']({'userId':_0x3944be,'object':_0x12071d[_0x29bd73]['item'],'change':_0x298588[_0x48c065]}),'elementEnd'===_0x12071d[_0x29bd73]['type']&&_0x22d9cd&&_0x22d9cd['object']===_0x12071d[_0x29bd73]['item']&&(_0x101cc2[_0x48c065]['shift'](),_0x298588[_0x48c065]=_0x22d9cd['change'])),_0x298588[_0x48c065]&&_0x10c1bc&&(_0x298588[_0x48c065]['end']=_0x22acfc,_0x5ad6ba(_0x298588[_0x48c065]),_0x298588[_0x48c065]=null);}function _0x5ad6ba({start:_0x5961de,end:_0x5de395,tapeItem:_0x5a439f,userId:_0x48f5a4,type:_0x5010d9}){const _0x401830=_0x5a439f['item'],_0x18b515=_0x58ce3e['schema']['isBlock'](_0x401830)&&!_0x58ce3e['schema']['isLimit'](_0x401830),_0x5468fd=_0x5961de['nodeAfter']==_0x5de395['parent']&&_0x5de395['isAtStart'];if(_0x18b515&&_0x5468fd)return;const _0x300928=_0x58ce3e['createRange'](_0x5961de,_0x5de395),_0x278e58=_0xb79b6f['get'](_0x48f5a4),_0x16e3d8=new r({'author':_0x278e58,'type':'isAdded'==_0x5010d9||'isAddSuggestion'==_0x5010d9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5010d9||'isRemoveSuggestion'==_0x5010d9},'createdAt':new Date(),'rootName':_0x3eb3ed});_0x3abebf['push'](_0x16e3d8),_0x222871['markers']['set']('revision:'+_0x16e3d8['id'],_0x300928);}function _0x31a757(_0x5dcddf,_0x3d0068){const _0x599113=_0x5dcddf['getAttributes'](),_0x52c997=_0x3d0068['getAttributes']();for(const _0x4da422 of _0x599113){if(_0x4da422[0x1]!==_0x3d0068['getAttribute'](_0x4da422[0x0]))return!0x1;_0x52c997['next']();}return _0x52c997['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42e3e7=>{const _0x5e3509=_0x42e3e7['markerName']['split'](':')[0x1],_0x227353=this['_getChangeFromId'](_0x5e3509);if(!_0x227353)return null;const _0x476a5d='add'==_0x227353['type']?'insertion':'deletion',_0x5c021e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x476a5d];return _0x227353['data']['isSuggestion']&&_0x5c021e['push']('ck-suggestion-marker-'+_0x476a5d+'-new'),this['activeChange']==_0x227353&&_0x5c021e['push']('ck-suggestion-marker--active'),{'classes':_0x5c021e,'attributes':{'data-change-id':_0x5e3509}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x195260=>{_0x195260['on']('element:pre',(_0x15b0a5,_0x4ba037,_0x4621d7)=>{const _0x344737=_0x4ba037['viewItem']['getChild'](0x0);if(!_0x344737||!_0x344737['is']('element','code'))return;if(!_0x4621d7['consumable']['consume'](_0x344737,{'attributes':['vid_start','vid_end']}))return;const _0x2bc08a=_0x4ba037['modelRange']['start']['nodeAfter'];_0x4621d7['writer']['setAttribute']('vid_start',_0x344737['getAttribute']('vid_start'),_0x2bc08a),_0x4621d7['writer']['setAttribute']('vid_end',_0x344737['getAttribute']('vid_end'),_0x2bc08a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4de021=>{_0x4de021['on']('element',(_0x40299b,_0xbc4520,_0x2b60d4)=>{if(!_0x2b60d4['consumable']['consume'](_0xbc4520['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xbc4520['modelRange']['isCollapsed'])return;const _0x256290=_0xbc4520['modelRange']['start']['nodeAfter'];_0x256290['hasAttribute']('vid_start')||_0x256290['hasAttribute']('vid')||(_0x2b60d4['writer']['setAttribute']('vid_start',_0xbc4520['viewItem']['getAttribute']('vid_start'),_0x256290),_0x2b60d4['writer']['setAttribute']('vid_end',_0xbc4520['viewItem']['getAttribute']('vid_end'),_0x256290));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xa3804b=>_0xa3804b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x414427,[,_0x2136db])=>{['vid_start','vid_end','vid']['includes'](_0x2136db)&&(_0x414427['return']=!0x0,_0x414427['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x21a99e=>{_0x21a99e['on']('attribute:vid',(_0x3f51f7,_0x4f5bf0,_0x4b9522)=>{if('\x20'!=_0x4f5bf0['item']['data']||_0x4f5bf0['item']['parent']['maxOffset']>0x1)return;if(!_0x4b9522['consumable']['consume'](_0x4f5bf0['item'],_0x3f51f7['name']))return;const _0xa9d3a1=_0x4b9522['writer'],_0x1eb957=_0x4b9522['mapper']['toViewRange'](_0x4f5bf0['range']);_0xa9d3a1['wrap'](_0x1eb957,_0xa9d3a1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4bafa0){const _0x31b643=_0x4bafa0['plugins']['get']('RevisionViewer');return(_0x4325d9,_0x51f6e2,_0x3cff69)=>{const _0x2228b9=_0x51f6e2['markerName']['split'](':')[0x1],_0x376e39=_0x31b643['_getChangeFromId'](_0x2228b9);if(!_0x376e39)return null;const _0x67452f='add'==_0x376e39['type']?'split':'merge';if(!_0x3cff69['consumable']['test'](_0x51f6e2['markerRange'],_0x4325d9['name']))return;const _0x53306a=_0x51f6e2['markerRange']['getWalker'](),_0x4a9914=_0x51f6e2['markerRange']['start'],_0x2a93a2=_0x4bafa0['model']['schema'];let _0x488268=null,_0x99ad99=null,_0x13bc18=!0x1,_0x5f3436=!0x1;for(const _0x6333dc of _0x53306a){const _0x1fdb4f=_0x6333dc['item'];_0x13bc18=_0x13bc18||_0x2a93a2['isContent'](_0x1fdb4f);const _0x171ad4=_0x3cff69['mapper']['toViewElement'](_0x1fdb4f);if(_0x171ad4&&_0x171ad4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x6333dc['type']&&(_0x2a93a2['isBlock'](_0x1fdb4f)&&!_0x2a93a2['isLimit'](_0x1fdb4f)&&(_0x1fdb4f['nextSibling']||_0x4a9914['isAtEnd']?_0x488268&&_0x488268['parent']==_0x1fdb4f||(_0x488268=_0x1fdb4f,_0x2c2204(_0x6333dc['previousPosition']),_0x5f3436=!0x0):_0x99ad99=_0x99ad99||_0x6333dc['previousPosition']));}function _0x2c2204(_0x347d0b){const _0x1a2285=_0x3cff69['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x67452f}),_0x4e2020=_0x3cff69['mapper']['toViewPosition'](_0x347d0b);_0x376e39['data']['isSuggestion']&&_0x3cff69['writer']['addClass']('ck-suggestion-marker-'+_0x67452f+'-new',_0x1a2285),_0x31b643['activeChange']==_0x376e39&&_0x3cff69['writer']['addClass']('ck-suggestion-marker--active',_0x1a2285),_0x3cff69['writer']['insert'](_0x4e2020,_0x1a2285),_0x3cff69['mapper']['bindElementToMarker'](_0x1a2285,_0x51f6e2['markerName']);}_0x13bc18||_0x5f3436||!_0x99ad99||_0x2c2204(_0x99ad99);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x309a48,_0xd62c96,_0x82f0e1)=>{const _0x3284bc=_0x82f0e1['mapper']['markerNameToElements'](_0xd62c96['markerName']);if(_0x3284bc){for(const _0x7e24cd of _0x3284bc)(_0x7e24cd['hasClass']('ck-suggestion-marker-split')||_0x7e24cd['hasClass']('ck-suggestion-marker-merge'))&&(_0x82f0e1['mapper']['unbindElementFromMarkerName'](_0x7e24cd,_0xd62c96['markerName']),_0x82f0e1['writer']['remove'](_0x7e24cd));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4a4acb,_0x332957,_0x542b90)=>{const _0x2cf25f=_0x332957['markerName']['split'](':')[0x1],_0x40e8c8=this['_getChangeFromId'](_0x2cf25f);if(!_0x40e8c8)return null;const _0x5c4e0e='add'==_0x40e8c8['type']?'split':'merge';if(_0x542b90['consumable']['test'](_0x332957['markerRange'],_0x4a4acb['name']))for(const _0x42f233 of _0x332957['markerRange']['getItems']()){if(!_0x42f233['is']('element','softBreak'))continue;const _0x589503=_0x542b90['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c4e0e}),_0x12ec73=_0x542b90['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x42f233));_0x40e8c8['data']['isSuggestion']&&_0x542b90['writer']['addClass']('ck-suggestion-marker-'+_0x5c4e0e+'-new',_0x589503),this['activeChange']==_0x40e8c8&&_0x542b90['writer']['addClass']('ck-suggestion-marker--active',_0x589503),_0x542b90['writer']['insert'](_0x12ec73,_0x589503),_0x542b90['mapper']['bindElementToMarker'](_0x589503,_0x332957['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x510d99=>{for(const _0x4b5ea6 of this['editor']['model']['document']['getRootNames']()){const _0x53828c=this['editor']['model']['document']['getRoot'](_0x4b5ea6),_0x554093=this['editor']['editing']['view']['document']['getRoot'](_0x4b5ea6);if(_0x554093){const _0x9c7e4c=_0x53828c['getAttribute']('revisionHistoryAttachChange');if(_0x510d99['removeAttribute']('data-change-id',_0x554093),_0x510d99['removeClass']('ck-revision-history-root-add',_0x554093),_0x510d99['removeClass']('ck-revision-history-root-remove',_0x554093),_0x510d99['removeClass']('ck-revision-history-root--active',_0x554093),_0x9c7e4c){const _0x2ceb04=this['_getChangeFromId'](_0x9c7e4c);if(!_0x2ceb04)return null;_0x510d99['setAttribute']('data-change-id',_0x9c7e4c,_0x554093),_0x510d99['addClass']('ck-revision-history-root-'+_0x2ceb04['type'],_0x554093),this['activeChange']==_0x2ceb04&&_0x510d99['addClass']('ck-revision-history-root--active',_0x554093);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4b98ea=>'revision-comment:'+_0x4b98ea,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4e1aac=>'revision-suggestion:'+_0x4e1aac,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x421d90=>({'name':'suggestion:'+_0x421d90,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x216dfc=>{const _0x4e6dad=_0x216dfc['markerName']['split'](':')[0x1];return'insertion'!=_0x4e6dad&&'deletion'!=_0x4e6dad?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4e6dad]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x41468c,_0xe6a64c,_0x66f055)=>{const _0x20e32b=_0x66f055['mapper']['markerNameToElements'](_0xe6a64c['markerName']);if(_0x20e32b){for(const _0x1ec571 of _0x20e32b)_0x1ec571['is']('uiElement')&&(_0x66f055['mapper']['unbindElementFromMarkerName'](_0x1ec571,_0xe6a64c['markerName']),_0x66f055['writer']['remove'](_0x1ec571));}},{'priority':'high'});}['_getChangeFromId'](_0x55b44c){return this['_changeIdToChange']['get'](_0x55b44c);}['_getViewForChange'](_0x16aa9f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x16aa9f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x595ade,_0x14e484,_0x4329e6,_0x896fb0)=>{_0x896fb0&&this['_balloon']['remove'](_0x896fb0),_0x4329e6&&(this['_balloon']['add']({'view':_0x4329e6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x50aa6a=this['editor']['editing'],_0x33f312=this['_getChangeFromId'](_0x4329e6['changeId']);let _0x268db8;if(_0x33f312['data']['isOnRoot']){const _0x5b5c7d=_0x50aa6a['view']['getDomRoot'](_0x33f312['rootName']);_0x268db8=Array['from'](_0x5b5c7d['getClientRects']());}else{const _0xa40a87=this['editor']['model']['markers']['get']('revision:'+_0x4329e6['changeId']);_0x268db8=Array['from'](_0x50aa6a['mapper']['markerNameToElements'](_0xa40a87['name']))['map'](_0x44b200=>_0x50aa6a['view']['domConverter']['mapViewToDom'](_0x44b200))['map'](_0x4fa8e0=>Array['from'](_0x4fa8e0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x268db8[0x0];return _0x268db8['find'](_0x4c23fa=>_0x4c23fa['top']-0x3<=this['_activeViewTarget']['y']&&_0x4c23fa['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4c23fa['left']-0x3<=this['_activeViewTarget']['x']&&_0x4c23fa['right']+0x3>=this['_activeViewTarget']['x'])||_0x268db8[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x26246f,_0xeb7d8,_0x236eec,_0x2cc293)=>{this['activeView']=_0x236eec?this['_getViewForChange'](_0x236eec):null,this['editor']['model']['change'](()=>{const _0x176b0d=this['editor']['editing'];_0x2cc293&&(_0x2cc293['data']['isOnRoot']?_0x176b0d['view']['change'](_0x44077b=>{_0x44077b['removeClass']('ck-revision-history-root--active',_0x176b0d['view']['document']['getRoot'](_0x2cc293['rootName']));}):_0x176b0d['reconvertMarker']('revision:'+_0x2cc293['id'])),_0x236eec&&(_0x236eec['data']['isOnRoot']?_0x176b0d['view']['change'](_0x38c158=>{_0x38c158['addClass']('ck-revision-history-root--active',_0x176b0d['view']['document']['getRoot'](_0x236eec['rootName']));}):_0x176b0d['reconvertMarker']('revision:'+_0x236eec['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2b35ed,_0x5e020e)=>{if(this['activeChange'])return;const _0x2d774d=this['_findChangeIdFromDomTarget'](_0x5e020e['target']),_0x160e96=this['_changeIdToChange']['get'](_0x2d774d);_0x160e96?(this['_activeViewTarget']={'x':_0x5e020e['domEvent']['x'],'y':_0x5e020e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x160e96)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x516069,_0xd99d8c)=>{const _0x137cd6=this['_findChangeIdFromDomTarget'](_0xd99d8c['target']),_0x110702=this['_changeIdToChange']['get'](_0x137cd6);_0x110702?(this['_activeViewTarget']={'x':_0xd99d8c['domEvent']['x'],'y':_0xd99d8c['domEvent']['y']},_0x110702===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x110702):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2dd6a6){do{const _0x36520e=_0x2dd6a6['getAttribute']('data-change-id');if(_0x36520e)return _0x36520e;_0x2dd6a6=_0x2dd6a6['parent'];}while(_0x2dd6a6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5ab91a=>{for(const _0x1bc7c4 of this['editor']['model']['markers'])_0x5ab91a['removeMarker'](_0x1bc7c4);});}}function Z(_0x336dc9,_0xa52bc0){return(_0x3502af,_0x30ada8,_0x114976)=>{if(!_0x114976['consumable']['test'](_0x30ada8['markerRange'],_0x3502af['name']))return;const _0x41880e=_0x30ada8['markerRange']['getWalker'](),_0x2928f9=_0x30ada8['markerRange']['start'],_0xbd2fe7=_0x336dc9['model']['schema'];let _0x332f87=null,_0x1e389a=null,_0x573359=!0x1,_0x3efa91=!0x1;for(const _0x167107 of _0x41880e){const _0x44286b=_0x167107['item'];_0x573359=_0x573359||_0xbd2fe7['isContent'](_0x44286b);const _0x39b627=_0x114976['mapper']['toViewElement'](_0x44286b);if(_0x39b627&&_0x39b627['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x167107['type']&&(_0xbd2fe7['isBlock'](_0x44286b)&&!_0xbd2fe7['isLimit'](_0x44286b)&&(_0x44286b['nextSibling']||_0x2928f9['isAtEnd']?_0x332f87&&_0x332f87['parent']==_0x44286b||(_0x332f87=_0x44286b,_0x55b047(_0x167107['previousPosition']),_0x3efa91=!0x0):_0x1e389a=_0x1e389a||_0x167107['previousPosition']));}function _0x55b047(_0xb5ae9a){const _0x14c3ee=_0x114976['mapper']['toViewPosition'](_0xb5ae9a),_0xb30b29=_0x114976['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xa52bc0});_0x114976['writer']['insert'](_0x14c3ee,_0xb30b29),_0x114976['mapper']['bindElementToMarker'](_0xb30b29,_0x30ada8['markerName']);}_0x573359||_0x3efa91||!_0x1e389a||_0x55b047(_0x1e389a);};}class _t extends _0x2f351f{constructor(_0x4672af){super(_0x4672af);const _0x592c6e=_0x4672af['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x592c6e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x592c6e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x51da82=this['editor'],_0x54aaa9=_0x51da82['plugins']['get'](d),_0x19bb7a=_0x54aaa9['isReady']?_0x54aaa9['diff']['newRevisionId']:null;_0x51da82['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x19bb7a);}['refresh'](){const {isReady:_0x41e5c5,isEnabled:_0x2d28dd,repository:_0x4736c6,diff:_0x46acd5}=this['editor']['plugins']['get'](d),_0x353680=_0x46acd5&&_0x4736c6['getLaterVisibleRevision'](_0x46acd5['newRevisionId']);this['isEnabled']=_0x41e5c5&&_0x2d28dd&&Boolean(_0x353680);}}class yt extends _0x2f351f{['_step'];constructor(_0x5968b0,{direction:_0x249010}){super(_0x5968b0);const _0x2646ad=_0x5968b0['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x249010?0x1:-0x1,this['listenTo'](_0x2646ad,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2646ad,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2646ad,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x203e1a=this['editor'],_0x40304f=_0x203e1a['plugins']['get'](d),{isNavigationMode:_0x3067ce,currentChangeNumber:_0x4dbd22}=_0x40304f;let _0x22c86f;if(_0x40304f['activeChange']=_0x3067ce?_0x40304f['diff']['changes']['get'](_0x4dbd22+this['_step']):_0x40304f['diff']['changes']['first'],_0x40304f['activeChange']['data']['isOnRoot'])_0x22c86f=_0x203e1a['editing']['view']['getDomRoot'](_0x40304f['activeChange']['rootName']);else{const _0x19dbf8=_0x203e1a['model']['markers']['get']('revision:'+_0x40304f['activeChange']['id']);_0x22c86f=_0x54db46(_0x203e1a['editing'],_0x19dbf8);}_0x30a2cb({'target':_0x22c86f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ca879,currentChangeNumber:_0x2fff7e,numberOfChanges:_0x520962,isReady:_0xf84405,isEnabled:_0x14a5d0}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x14a5d0&&_0xf84405&&_0x520962)&&(!_0x4ca879||(0x1===this['_step']?_0x2fff7e<_0x520962-0x1:_0x2fff7e>0x0));}}class di extends _0x376464{constructor(_0x2472da){super(_0x2472da);const _0x44732c=this['bindTemplate'],_0x13e2b2=new _0x58a9b0(_0x2472da),_0x2a7ffe=new _0x58a9b0(_0x2472da);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',(_0x45c4c6,_0x268d45)=>_0x45c4c6&&_0x268d45>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5bdb13,_0x22bd01,_0x3dbf29,_0x8cd7ba)=>{if(!_0x5bdb13)return m(_0x2472da,'Loading...');if(!_0x3dbf29)return m(_0x2472da,'No\x20changes');const _0x5f5490=m(_0x2472da,'NUMBER_OF_CHANGES',_0x3dbf29);return _0x8cd7ba?m(_0x2472da,'X_OF_Y_CHANGES',[_0x22bd01+0x1,_0x3dbf29]):_0x5f5490;}),_0x13e2b2['set']({'label':m(_0x2472da,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2a7ffe['set']({'label':m(_0x2472da,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x13e2b2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2a7ffe['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x13e2b2['on']('execute',()=>this['fire']('execute','backward')),_0x2a7ffe['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',_0x44732c['if']('_isStatusLabelVisible','ck-hidden',_0x45e913=>!_0x45e913)]},'children':[{'text':_0x44732c['to']('isNavigationMode',_0x470d64=>_0x470d64?m(_0x2472da,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2472da,'Total')+':\x20')}]},{'text':_0x44732c['to']('_statusText')}]},new _0x1378c1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x13e2b2,_0x2a7ffe]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x361651{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xe3a8b3=this['editor']['editing']['view'];_0xe3a8b3['change'](_0x13a4d4=>{for(const _0x214ccf of _0xe3a8b3['document']['roots'])_0x13a4d4['addClass'](ce,_0x214ccf);});}['hide'](){const _0x3f8e04=this['editor']['editing']['view'];_0x3f8e04['change'](_0x4bd34c=>{for(const _0x32ab49 of _0x3f8e04['document']['roots'])_0x4bd34c['removeClass'](ce,_0x32ab49);});}}class g extends _0x361651{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x2b7c13=this['editor'],_0x2a2511=_0x2b7c13['plugins']['get'](d),_0x1ccee7=_0x2b7c13['plugins']['get'](ae);_0x2b7c13['ui']['componentFactory']['add']('exitToEditing',_0x391737=>{const _0x3dd70c=new _0x58a9b0(_0x391737);return _0x3dd70c['set']({'label':m(_0x391737,'Back\x20to\x20editing'),'icon':_0x2a914a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3dd70c,'execute',()=>{_0x2b7c13['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3dd70c;}),_0x2b7c13['ui']['componentFactory']['add']('restoreRevision',_0x29b26c=>{const _0x4b0519=new _0x58a9b0(_0x29b26c);return _0x4b0519['set']({'label':m(_0x29b26c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4b0519['bind']('isEnabled')['to'](_0x2b7c13['commands']['get']('restoreRevision')),this['listenTo'](_0x4b0519,'execute',()=>_0x2b7c13['execute']('restoreRevision')),_0x4b0519;}),_0x2b7c13['ui']['componentFactory']['add']('changesNavigation',_0x4de4de=>{const _0x288f57=new di(_0x4de4de),_0x24b11e=_0x2b7c13['commands']['get']('showPreviousChange'),_0x3b0ada=_0x2b7c13['commands']['get']('showNextChange');return _0x288f57['bind']('isBackwardNavigationEnabled')['to'](_0x24b11e,'isEnabled'),_0x288f57['bind']('isForwardNavigationEnabled')['to'](_0x3b0ada,'isEnabled'),_0x288f57['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2a2511),this['listenTo'](_0x288f57,'execute',(_0xabc14f,_0x9e6523)=>{_0x2b7c13['execute']('forward'===_0x9e6523?'showNextChange':'showPreviousChange');}),_0x288f57;}),_0x1ccee7['show'](),_0x2a2511['on']('change:isReady',(_0x26fdbd,_0x144e53,_0x2bd47d)=>{_0x2bd47d?_0x1ccee7['hide']():_0x1ccee7['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x2c0582,_0x1403f9){super(_0x2c0582,_0x1403f9);const _0x200e14=this['bindTemplate'];this['set']({'label':m(_0x2c0582,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2c0582,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x200e14['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 _0x1d6537=this['fieldView']['element'];this['_tooltipString']=_0x1d6537['scrollWidth']>_0x1d6537['clientWidth']&&_0x1d6537['value']||'';}}class ti extends _0x376464{constructor(_0x1eccb,_0x5c303c,_0x43c1d6){super(_0x1eccb);const _0x2acd3c=new _0x2719fb();_0x2acd3c['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x2fe993=['ck','ck-revision-history-sidebar__revision-author'];_0x43c1d6&&_0x2fe993['push']('ck-revision-history-sidebar__revision-author_creator');const _0x425121=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1eccb,_0x43c1d6?'Revision\x20creator':'Revision\x20author')},'children':[_0x2acd3c,_0x5c303c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2fe993},'children':_0x425121});}}function ni(_0x399b68,_0xc33545){const _0x3a9a9f=_0x399b68['bindTemplate'],_0x225b78=_0x399b68['locale'],_0x5441f1=_0x11399b(_0x225b78);_0x5441f1['panelPosition']='sw';const _0x5ce047=function(_0x36fc1e,_0x5f9841){const _0x367fec=function(_0x3444e0,_0x43a7f4){const _0x5d0d2f=_0x3444e0['locale'],_0xd059d5={'Compare\x20against\x20selected':m(_0x5d0d2f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5d0d2f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5d0d2f,'Restore\x20this\x20revision')};return _0x43a7f4['map'](_0x37fe67=>{const _0x577bfc=_0xd059d5[_0x37fe67['name']];return _0x577bfc&&_0x577bfc!==_0x37fe67['name']&&(_0x37fe67['name']=_0x577bfc),_0x37fe67;});}(_0x36fc1e,_0x5f9841),_0x571209=new _0x2ebcff();for(const _0x5da8ad of _0x367fec){const _0xbfa000={'type':'button','model':new to({'label':_0x5da8ad['name'],'class':_0x5da8ad['class'],'withText':!0x0,'role':'menuitem','_action':_0x5da8ad['action']})};_0xbfa000['model']['bind']('isEnabled')['to'](_0x36fc1e,'isActionsDropdownOpen',_0x5e31f0=>'function'!=typeof _0x5da8ad['isEnabled']||(!_0x5e31f0||_0x5da8ad['isEnabled'](_0x36fc1e))),_0x571209['add'](_0xbfa000);}return _0x571209;}(_0x399b68,_0xc33545);return _0x399b68['bind']('isActionsDropdownOpen')['to'](_0x5441f1,'isOpen'),_0x5441f1['buttonView']['set']({'label':m(_0x225b78,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2a914a['threeVerticalDots']}),_0x5441f1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3a9a9f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3a9a9f['to'](_0x324aa8=>_0x324aa8['stopPropagation']())}}),_0x5441f1['on']('execute',_0x15ed76=>{_0x399b68['isReady']&&'function'==typeof _0x15ed76['source']['_action']&&_0x15ed76['source']['_action'](_0x399b68);}),_0x112459(_0x5441f1,_0x5ce047,{'role':'menu'}),_0x5441f1['listenTo'](_0x399b68,'change:isActionsDropdownOpen',(_0x192d01,_0x477061,_0x533ba9)=>{if(_0x533ba9)for(const _0x5c3a43 of _0x5441f1['listView']['items']){const _0x3e77d6=_0x5c3a43['children']['first'],_0x229594=_0xc33545['find'](_0x795cbe=>_0x795cbe['action']===_0x3e77d6['_action'])['isVisible'];_0x5c3a43['isVisible']=void 0x0===_0x229594||_0x229594(_0x399b68);}}),_0x5441f1;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x217fff,uid as _0x5d66aa,Collection as _0xcf6e93,logWarning as _0x3cc76b,FocusTracker as _0x2cdc04,KeystrokeHandler as _0x430444,scrollViewportToShowTarget as _0x170d53,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x5ea7ff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x77b43c,set as _0x532155,unset as _0xf42061,isEqual as _0x466067}from'lodash-es';import{Plugin as _0x1420a4,PendingActions as _0x59b98d,icons as _0x247700,Command as _0x1d782e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4f378f,getMarkerDomElement as _0x40ad99,ConfirmMixin as ti,sanitizeEditorConfig as _0xbfc40b}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x57bee1,Element as ft,Range as vt,ViewUIElement as _0x28e93a,ViewRawElement as _0x1e3674,ViewEmptyElement as _0x1ac8e8,ViewAttributeElement as _0x4e3bae,ViewContainerElement as _0x32a864,Position as gt,ViewText as _0xe73c6d,ViewElement as _0x5e2f0f,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x338fd2,submitHandler as _0x53558e,LabeledFieldView as _0xe538c1,createLabeledInputText as _0x368611,createDropdown as _0x1e0a60,ListView as _0x4646f5,ListItemView as _0x503a4e,ButtonView as te,MenuBarMenuView as _0x827bd6,MenuBarMenuListView as _0x170de9,MenuBarMenuListItemView as _0x4b4311,MenuBarMenuListItemButtonView as _0x2b7259,ContextualBalloon as _0x1e2672,ToolbarSeparatorView as _0x4101c0,IconView as _0x151b45,addListToDropdown as to,ViewModel as _0x58fc48,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xd4c326}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x217fff(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x279f9a){super(),this['id']=_0x279f9a['id']||_0x5d66aa(),this['creator']=_0x279f9a['creator']||null,this['authors']=_0x279f9a['authors']||[],this['diffData']=_0x279f9a['diffData']||null,this['toVersion']=_0x279f9a['toVersion']||0x0,this['fromVersion']=_0x279f9a['fromVersion']||0x0,this['set']('name',_0x279f9a['name']||''),this['set']('createdAt',_0x279f9a['createdAt']||new Date()),this['set']('attributes',_0x279f9a['attributes']||{});}['setName'](_0x59dd10){this['_update']({'name':_0x59dd10});}['setAttribute'](_0x44fb92,_0x3a07fa){const _0x5cadbc=_0x77b43c(this['attributes']);_0x532155(_0x5cadbc,_0x44fb92,_0x3a07fa),this['_update']({'attributes':_0x5cadbc});}['removeAttribute'](_0x75fa07){const _0x149c26=_0x77b43c(this['attributes']);_0xf42061(_0x149c26,_0x75fa07),this['_update']({'attributes':_0x149c26});}['_update'](_0x251944,_0x42a129=!0x1){let _0x24562d=!0x1;const _0xb5f985={'id':this['id']},_0x5d1648=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xe876ad of _0x5d1648){const _0x56cdb4=_0x251944[_0xe876ad];void 0x0!==_0x56cdb4&&_0x56cdb4!==this[_0xe876ad]&&(this[_0xe876ad]=_0x56cdb4,_0xb5f985[_0xe876ad]=_0x56cdb4,_0x24562d=!0x0);}_0x24562d&&(_0xb5f985['authors']&&(_0xb5f985['authorsIds']=_0xb5f985['authors']['map'](_0x331f5e=>_0x331f5e['id']),delete _0xb5f985['authors']),this['fire']('_update',_0xb5f985,_0x42a129));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3e57ac=>_0x3e57ac['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1420a4{['_revisions'];static get['requires'](){return[_0x4f378f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d1414){super(_0x4d1414),this['_revisions']=new _0xcf6e93();}['afterInit'](){!async function(_0x4dd962){const _0x4a3e05=_0x183b43([0x57,0x43,0x47,0x32,0x79,0x34,0x4e,0x72,0x49,0x61,0x31,0x6f,0x66,0x62,0x77,0x56,0x36,0x74,0x37,0x39,0x6e,0x4c,0x4f,0x33,0x38,0x67,0x6c,0x50,0x30,0x44,0x73,0x4a,0x69,0x59,0x76,0x5a,0x52,0x42,0x78,0x75,0x51,0x41,0x53,0x71,0x55,0x6d,0x70,0x46,0x6b,0x68,0x35,0x58,0x4b,0x7a,0x4d,0x48,0x45,0x64,0x54,0x65,0x6a,0x63]),_0x1d3969=0xeb829,_0x2a051e=0x23bf4070,_0x2b2b3a=0x23b82090^_0x2a051e,_0x2c0a5d=window[_0x183b43([0x44,0x61,0x74,0x65])][_0x183b43([0x6e,0x6f,0x77])](),_0x214631=_0x4dd962[_0x183b43([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x520299=new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ac214=>{_0x214631[_0x183b43([0x6f,0x6e,0x63,0x65])](_0x183b43([0x72,0x65,0x61,0x64,0x79]),_0x3ac214);}),_0x2d4663={[_0x183b43([0x6b,0x74,0x79])]:_0x183b43([0x45,0x43]),[_0x183b43([0x75,0x73,0x65])]:_0x183b43([0x73,0x69,0x67]),[_0x183b43([0x63,0x72,0x76])]:_0x183b43([0x50,0x2d,0x32,0x35,0x36]),[_0x183b43([0x78])]:_0x183b43([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]),[_0x183b43([0x79])]:_0x183b43([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]),[_0x183b43([0x61,0x6c,0x67])]:_0x183b43([0x45,0x53,0x32,0x35,0x36])},_0x2f40dd=_0x214631[_0x183b43([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x183b43([0x67,0x65,0x74])](_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c2c94(){let _0x375cb2,_0x4eab7e=null,_0x5c1953=null;try{if(_0x2f40dd==_0x183b43([0x47,0x50,0x4c]))return _0x183b43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x375cb2=_0x47f9fe(),!_0x375cb2)return _0x183b43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x375cb2[_0x183b43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c1953=_0x950af8(_0x375cb2[_0x183b43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x375cb2[_0x183b43([0x6a,0x74,0x69])])),await _0x47ba7d()?_0x555a86()?_0x3e9760()?_0x183b43([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x235fa1()?(_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183b43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4eab7e=_0x1c89b7(_0x183b43([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183b43([0x74,0x72,0x69,0x61,0x6c])&&(_0x4eab7e=_0x1c89b7(_0x183b43([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4270d6()):_0x183b43([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x183b43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x183b43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34a87e){return _0x183b43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e9760(){const _0x334f3f=[_0x183b43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x183b43([0x74,0x72,0x69,0x61,0x6c])][_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c0a5d/0x3e8:0xe10*_0x2b2b3a;return _0x375cb2[_0x183b43([0x65,0x78,0x70])]<_0x334f3f;}function _0x555a86(){const _0x5aa3a4=_0x375cb2[_0x183b43([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aa3a4)return!0x1;if(_0x5aa3a4[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x2a])))return!0x0;if(_0x5aa3a4[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x52,0x48])))return!0x0;if(_0x5aa3a4[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x52,0x52,0x48]))){if(_0x4d0bdd())return!0x0;if(_0x4d9606()||_0x667b67())return!0x0;}return!0x1;}function _0x235fa1(){const _0x322e92=_0x375cb2[_0x183b43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x322e92||0x0==_0x322e92[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14a8b3}=new URL(window[_0x183b43([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x322e92[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14a8b3))return!0x0;const _0x1fceab=_0x14a8b3[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e]));return _0x322e92[_0x183b43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b5d37=>_0x1b5d37[_0x183b43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183b43([0x2a])))[_0x183b43([0x6d,0x61,0x70])](_0x491e6a=>_0x491e6a[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e])))[_0x183b43([0x73,0x6f,0x6d,0x65])](_0x33c6cb=>_0x1fceab[_0x183b43([0x65,0x76,0x65,0x72,0x79])]((_0x386900,_0x48b710)=>_0x33c6cb[_0x48b710]===_0x386900||_0x33c6cb[_0x48b710]===_0x183b43([0x2a])));}function _0x4270d6(){return _0x4eab7e&&_0x5c1953?new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40da9e,_0xa7ea43)=>{_0x4eab7e[_0x183b43([0x74,0x68,0x65,0x6e])](_0x40da9e,_0xa7ea43),_0x5c1953[_0x183b43([0x74,0x68,0x65,0x6e])](_0x9c0b5=>{_0x9c0b5!=_0x183b43([0x56,0x61,0x6c,0x69,0x64])&&_0x40da9e(_0x9c0b5);},_0xa7ea43);}):_0x4eab7e||_0x5c1953||_0x183b43([0x56,0x61,0x6c,0x69,0x64]);}}function _0x950af8(_0x3e0ed7,_0x5b9cab){return new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bfd4d=>{if(_0x3c5145())return _0x2bfd4d(_0x183b43([0x56,0x61,0x6c,0x69,0x64]));_0x121e18(),_0x214631[_0x183b43([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x183b43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11d527=!0x1;const _0x3fa7ac=_0x5d66aa();function _0x5f28fd(_0x23ea99){return!!_0x23ea99&&(typeof _0x23ea99===_0x183b43([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23ea99===_0x183b43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23ea99[_0x183b43([0x74,0x68,0x65,0x6e])]===_0x183b43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23ea99[_0x183b43([0x63,0x61,0x74,0x63,0x68])]===_0x183b43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59372e(_0x2603ae){_0xfd6f2e(_0x2603ae)[_0x183b43([0x74,0x68,0x65,0x6e])](_0x62728c=>{if(!_0x62728c||_0x62728c[_0x183b43([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x183b43([0x6f,0x6b]))return _0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb34bb0(_0x580d5e(_0x3fa7ac+_0x5b9cab))!=_0x62728c[_0x183b43([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x183b43([0x56,0x61,0x6c,0x69,0x64]);})[_0x183b43([0x74,0x68,0x65,0x6e])](_0x44237b=>(_0x4e4419(),_0x44237b),()=>{const _0x23f357=_0x1d14d7();return null==_0x23f357?(_0x4e4419(),_0x183b43([0x56,0x61,0x6c,0x69,0x64])):_0x183b43(_0x2c0a5d-_0x23f357>(0x7b3c470^_0x2a051e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x183b43([0x74,0x68,0x65,0x6e])](_0x2bfd4d)[_0x183b43([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bfd4d(_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf5a3da=0x2389aef0^_0x2a051e;function _0x4e4419(){const _0x2e5143=_0x183b43([0x6c,0x6c,0x63,0x74,0x2d])+_0xb34bb0(_0x580d5e(_0x3e0ed7)),_0x581d51=_0x1d6793(_0xb34bb0(window[_0x183b43([0x4d,0x61,0x74,0x68])][_0x183b43([0x63,0x65,0x69,0x6c])](_0x2c0a5d/_0xf5a3da)));window[_0x183b43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183b43([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e5143,_0x581d51);}function _0x1d14d7(){const _0x318907=_0x183b43([0x6c,0x6c,0x63,0x74,0x2d])+_0xb34bb0(_0x580d5e(_0x3e0ed7)),_0x556dbc=window[_0x183b43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183b43([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x318907);return _0x556dbc?window[_0x183b43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d6793(_0x556dbc),0x10)*_0xf5a3da:null;}function _0xfd6f2e(_0x22f3ca){return new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x484598,_0x8c5ca7)=>{_0x22f3ca[_0x183b43([0x74,0x68,0x65,0x6e])](_0x484598,_0x8c5ca7),window[_0x183b43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8c5ca7,0x23be94b0^_0x2a051e);});}}_0x214631[_0x183b43([0x6f,0x6e])](_0x183b43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1370d3,_0x3460ee)=>{if(_0x3460ee[0x0]!=_0x3e0ed7)return _0x2bfd4d(_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3460ee[0x1]={..._0x3460ee[0x1],[_0x183b43([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fa7ac};},{[_0x183b43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183b43([0x68,0x69,0x67,0x68])}),_0x214631[_0x183b43([0x6f,0x6e])](_0x183b43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x295dc6=>{_0x5f28fd(_0x295dc6[_0x183b43([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11d527=!0x0,_0x59372e(_0x295dc6[_0x183b43([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x183b43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183b43([0x6c,0x6f,0x77])}),_0x520299[_0x183b43([0x74,0x68,0x65,0x6e])](()=>{_0x11d527||_0x2bfd4d(_0x183b43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c5145(){return _0x214631[_0x183b43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183b43([0x76,0x69,0x65,0x77])][_0x183b43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x183b43([0x61,0x75,0x74,0x6f]);}function _0x121e18(){_0x214631[_0x183b43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183b43([0x76,0x69,0x65,0x77])][_0x183b43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x183b43([0x61,0x75,0x74,0x6f]);}}function _0x1c89b7(_0x16f011){const _0x249993=[new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6f03=>setTimeout(_0x4e6f03,0x23b67ebc^_0x2a051e)),_0x520299[_0x183b43([0x74,0x68,0x65,0x6e])](()=>new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x189242=>{const _0x35c99c=0x23bf4077^_0x2a051e,_0x45c2e1=_0x4dd962[_0x183b43([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3cbd41(){_0x45c2e1[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35c99c&&_0x189242();}_0x3cbd41(),_0x45c2e1[_0x183b43([0x6f,0x6e])](_0x183b43([0x61,0x64,0x64]),_0x3cbd41);})),new window[(_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4140e9=>{function _0x206e86(){for(const _0x57c4ae in window)if(window[_0x183b43([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x183b43([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x57c4ae))&&window[_0x57c4ae]==_0x1d3969)return _0x4140e9();_0x214631[_0x183b43([0x73,0x74,0x61,0x74,0x65])]!=_0x183b43([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x183b43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x206e86,0x23bf53f8^_0x2a051e);}_0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x206e86();})];return window[_0x183b43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x183b43([0x72,0x61,0x63,0x65])](_0x249993)[_0x183b43([0x74,0x68,0x65,0x6e])](()=>_0x16f011);}async function _0x132f62(){if(await _0x520299,_0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x57277b=_0x4dd962[_0x183b43([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3f51eb=_0x4dd962[_0x183b43([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])](_0x57277b[_0x183b43([0x69,0x64])]),_0x457e88=_0x4baec3(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x457e88[_0x183b43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x57277b['id'],_0x3f51eb?_0x3f51eb['id']:null,!0x0),_0x457e88[_0x183b43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x457e88[_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x457e88[_0x183b43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x232662,void(_0x457e88[_0x183b43([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x232662);}if(_0x439c06(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5230e7=_0x4baec3(_0x183b43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5230e7[_0x183b43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5230e7[_0x183b43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5230e7[_0x183b43([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x232662,_0x5230e7[_0x183b43([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x232662;}_0x214631[_0x183b43([0x6d,0x6f,0x64,0x65,0x6c])][_0x183b43([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x232662,_0x214631[_0x183b43([0x6d,0x6f,0x64,0x65,0x6c])][_0x183b43([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x232662,_0x214631[_0x183b43([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x183b43([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d0bdd(){return _0x439c06(_0x183b43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4baec3(_0x183b43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x183b43([0x73,0x74,0x61,0x74,0x65])]==_0x183b43([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d9606(){return _0x439c06(_0x183b43([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 _0x667b67(){return _0x439c06(_0x183b43([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3e8c09(_0x424f69){const _0x3016ca=_0xe1f1b4();_0x214631[_0x3016ca]=_0x183b43([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])+_0x424f69,_0x424f69[_0x183b43([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x183b43([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xe1f1b4()]=_0x1d3969),_0x424f69!=_0x183b43([0x56,0x61,0x6c,0x69,0x64])&&_0x132f62();}function _0xe1f1b4(){const _0x1296bd=window[_0x183b43([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x183b43([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x183b43([0x6e,0x6f,0x77])]())[_0x183b43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x183b43([0x2e]),'');let _0x1d7d69=_0x183b43([0x57]);for(let _0x309b1e=0x0;_0x309b1e<_0x1296bd[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x309b1e+=0x2){let _0x395912=window[_0x183b43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1296bd[_0x183b43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309b1e,_0x309b1e+0x2));_0x395912>=_0x4a3e05[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x395912-=_0x4a3e05[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d7d69+=_0x4a3e05[_0x395912];}return _0x1d7d69;}function _0x47f9fe(){const _0x5bec8d=_0x2f40dd[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e]));if(0x3!=_0x5bec8d[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7bb2b(_0x5bec8d[0x1]);function _0x7bb2b(_0x565276){const _0xff69b7=_0x2163cb(_0x565276);return _0xff69b7&&_0x2b7324()?_0xff69b7:null;function _0x2b7324(){const _0x34dbd7=_0xff69b7[_0x183b43([0x6a,0x74,0x69])],_0x590af7=window[_0x183b43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34dbd7[_0x183b43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34dbd7[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x589f2d={..._0xff69b7,[_0x183b43([0x6a,0x74,0x69])]:_0x34dbd7[_0x183b43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34dbd7[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x589f2d[_0x183b43([0x76,0x63])],_0x580d5e(_0x589f2d)==_0x590af7;}}}async function _0x47ba7d(){let _0x56304f=!0x0;try{const _0x1cca61=_0x2f40dd[_0x183b43([0x73,0x70,0x6c,0x69,0x74])](_0x183b43([0x2e])),[_0x122a9f,_0x47d55d,_0x1569d2]=_0x1cca61;return _0x5901cf(_0x122a9f),await _0x3a5c8a(_0x122a9f,_0x47d55d,_0x1569d2),_0x56304f;}catch(_0x2ed658){return!0x1;}function _0x5901cf(_0x51529e){const _0x4f5ead=_0x2163cb(_0x51529e);_0x4f5ead&&_0x4f5ead[_0x183b43([0x61,0x6c,0x67])]==_0x183b43([0x45,0x53,0x32,0x35,0x36])||(_0x56304f=!0x1);}async function _0x3a5c8a(_0xc4efe3,_0x6995d7,_0x1e71a7){const _0x1ababb=window[_0x183b43([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x183b43([0x66,0x72,0x6f,0x6d])](_0x5dd555(_0x1e71a7),_0x2f9b70=>_0x2f9b70[_0x183b43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25aab1=new window[(_0x183b43([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x183b43([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc4efe3+_0x183b43([0x2e])+_0x6995d7),_0x2ce462=window[_0x183b43([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x183b43([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ce462)return;const _0x4d83e5=await _0x2ce462[_0x183b43([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x183b43([0x6a,0x77,0x6b]),_0x2d4663,{[_0x183b43([0x6e,0x61,0x6d,0x65])]:_0x183b43([0x45,0x43,0x44,0x53,0x41]),[_0x183b43([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x183b43([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x183b43([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ce462[_0x183b43([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x183b43([0x6e,0x61,0x6d,0x65])]:_0x183b43([0x45,0x43,0x44,0x53,0x41]),[_0x183b43([0x68,0x61,0x73,0x68])]:{[_0x183b43([0x6e,0x61,0x6d,0x65])]:_0x183b43([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d83e5,_0x1ababb,_0x25aab1)||(_0x56304f=!0x1);}}function _0x2163cb(_0x1d8faa){return _0x1d8faa[_0x183b43([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x183b43([0x65,0x79]))?JSON[_0x183b43([0x70,0x61,0x72,0x73,0x65])](_0x5dd555(_0x1d8faa)):null;}function _0x5dd555(_0x1bd55a){return window[_0x183b43([0x61,0x74,0x6f,0x62])](_0x1bd55a[_0x183b43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x183b43([0x2b]))[_0x183b43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x183b43([0x2f])));}function _0x580d5e(_0x35e37a){let _0x14781c=0x1505;function _0x59f42d(_0x5702a2){for(let _0x58ac19=0x0;_0x58ac19<_0x5702a2[_0x183b43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58ac19++){const _0x187695=_0x5702a2[_0x183b43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x58ac19);_0x14781c=(_0x14781c<<0x5)+_0x14781c+_0x187695,_0x14781c&=_0x14781c;}}function _0x14e871(_0x435da2){Array[_0x183b43([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x435da2)?_0x435da2[_0x183b43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14e871):_0x435da2&&typeof _0x435da2==_0x183b43([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x183b43([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x435da2)[_0x183b43([0x73,0x6f,0x72,0x74])]()[_0x183b43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x34ec92,_0x2c2b6b])=>{_0x59f42d(_0x34ec92),_0x14e871(_0x2c2b6b);}):_0x59f42d(window[_0x183b43([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x435da2));}return _0x14e871(_0x35e37a),_0x14781c>>>0x0;}function _0xb34bb0(_0x54a529){return _0x54a529[_0x183b43([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x183b43([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x183b43([0x30]));}function _0x1d6793(_0x4e3a8a){return _0x4e3a8a[_0x183b43([0x73,0x70,0x6c,0x69,0x74])]('')[_0x183b43([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x183b43([0x6a,0x6f,0x69,0x6e])]('');}function _0x439c06(_0x2a1bc6){return _0x214631[_0x183b43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x183b43([0x68,0x61,0x73])](_0x2a1bc6);}function _0x4baec3(_0x3ff686){return _0x214631[_0x183b43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x183b43([0x67,0x65,0x74])](_0x3ff686);}function _0x232662(){}function _0x183b43(_0x3e66eb){return _0x3e66eb['map'](_0x27721a=>String['fromCharCode'](_0x27721a))['join']('');}_0x3e8c09(await _0x1c2c94());}(this);}['createRevision'](_0x58f58f){const _0x1ba703=this['editor']['plugins']['get']('Users');return new a({'id':_0x58f58f['id'],'name':_0x58f58f['name'],'creator':_0x58f58f['creatorId']?_0x1ba703['getUser'](_0x58f58f['creatorId']):null,'diffData':_0x58f58f['diffData']||_0x58f58f['data'],'authors':_0x58f58f['authorsIds']['map'](_0x20cf79=>_0x1ba703['getUser'](_0x20cf79)),'createdAt':new Date(_0x58f58f['createdAt']),'attributes':_0x58f58f['attributes'],'fromVersion':_0x58f58f['fromVersion'],'toVersion':_0x58f58f['toVersion']});}['addRevision'](_0x17a8da,_0x5a0dbd=0x0){this['_revisions']['add'](_0x17a8da,_0x5a0dbd);}['getRevision'](_0x4a24b7){return this['_revisions']['get'](_0x4a24b7);}['getRevisions'](_0x590bae={'toJSON':!0x1}){const _0x418fe4=Array['from'](this['_revisions']);return _0x418fe4['reverse'](),_0x590bae['toJSON']?_0x418fe4['map'](_0x290da9=>_0x290da9['toJSON']()):_0x418fe4;}['getIndex'](_0x35c687){return this['_revisions']['getIndex'](_0x35c687);}['getEarlierVisibleRevision'](_0x24bb32){const [,_0x16afda]=this['getRevisionsIterator'](_0x24bb32,{'direction':'earlier'});return _0x16afda;}['getLaterVisibleRevision'](_0x4a9757){const [,_0x595af4]=this['getRevisionsIterator'](_0x4a9757,{'direction':'later'});return _0x595af4;}['getRevisionsInDiff'](_0x3e362a){const _0x576b72=[];for(const _0x16c0fa of this['getRevisionsIterator'](_0x3e362a['newRevisionId']))if(_0x576b72['push'](_0x16c0fa),_0x16c0fa['id']===_0x3e362a['oldRevisionId'])break;return _0x576b72;}*['getRevisionsIterator'](_0x1014a8,{direction:_0x53dd6d='earlier',filter:_0x2cc585=()=>!0x0}={}){const _0x23e5fd='earlier'===_0x53dd6d?0x1:-0x1;let _0x237266=this['_revisions']['get'](_0x1014a8),_0x31e67a=this['getIndex'](_0x237266);for(yield _0x237266;_0x237266;){if(_0x31e67a+=_0x23e5fd,_0x237266=this['getRevision'](_0x31e67a),!_0x237266)return;_0x2cc585(_0x237266)&&(yield _0x237266);}}}function m(_0x34f1ff,_0x2190d6,_0x109833){const t=_0x34f1ff['t'];switch(_0x2190d6){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'},_0x109833);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x109833);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x32a864,'a':_0x4e3bae,'e':_0x1ac8e8,'r':_0x1e3674,'u':_0x28e93a};class l extends _0x1420a4{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4f378f,j,_0x59b98d];}constructor(_0x2fc1b3){super(_0x2fc1b3),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5633c5=_0x5d66aa();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5633c5},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x54597e=this['repository']['getRevision'](0x0),_0x28075c=_0x54597e&&null===_0x54597e['creator']?_0x54597e:null;if(this['_continueCurrentRevision']=!!_0x28075c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x383bb1=this['_source']['getCurrentRevisionId'](),_0x598736=this['repository']['getRevision'](_0x383bb1);if(_0x598736)this['_startingVersion']=_0x598736['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xd2a274=this['_source']['history']['_operations']['find'](_0x3e03b0=>!_0x3e03b0['_isInit']),_0x23c03a=_0xd2a274?_0xd2a274['baseVersion']:this['_source']['history']['version'];_0x54597e?(_0x54597e['toVersion']<_0x23c03a&&_0x54597e['_update']({'toVersion':_0x23c03a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x28075c['id'],this['_startingVersion']=_0x28075c['fromVersion']):(this['_startingVersion']=_0x54597e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x23c03a,this['_continueCurrentRevision']=!0x1);}}else _0x28075c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x28075c['toVersion'],this['editor']['model']['document']['history']['version']),_0x28075c['fromVersion']===_0x28075c['toVersion']?(0x0!==_0x28075c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x28075c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x28075c['id'],this['_startingVersion']=_0x28075c['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',_0x45581e=>!_0x45581e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29c658=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x279542;for(const _0x812ad8 in _0x29c658){const _0x50185d=_0x812ad8,_0x15e33a=_0x29c658[_0x50185d];if('revisionHistoryLicenseKeyValid'==_0x15e33a||'revisionHistoryLicenseKeyInvalid'==_0x15e33a||'revisionHistoryLicenseKeyExpired'==_0x15e33a||'revisionHistoryLicenseKeyDomainLimit'==_0x15e33a||'revisionHistoryLicenseKeyNotAllowed'==_0x15e33a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x15e33a||'revisionHistoryLicenseKeyTrialLimit'==_0x15e33a||'revisionHistoryLicenseKeyUsageLimit'==_0x15e33a){delete _0x29c658[_0x50185d],_0x279542=_0x15e33a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x279542&&_0x29c658['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x279542&&_0x29c658['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x279542&&_0x29c658['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x279542&&_0x29c658['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x279542&&_0x29c658['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x279542&&_0x29c658['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x279542&&_0x29c658['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2af2aa=this['repository']['getRevision'](0x0),_0x338a2f=await this['getRevisionDocumentData'](_0x2af2aa),_0x27268e=await this['getRevisionRootsAttributes'](_0x2af2aa);this['_replaceEditorDataWithRevisionData'](_0x338a2f,_0x27268e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x259d8f){this['_source']=_0x259d8f;}async['update'](){const _0x124563=await this['_source']['getLatestVersion']();if(_0x124563>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2060f3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x124563});_0x2060f3['authors']=_0x2060f3['authorsIds']['map'](_0x37d773=>this['editor']['plugins']['get']('Users')['getUser'](_0x37d773)),this['currentRevision']['_update'](_0x2060f3);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x3b41e9={},_0x3012e9=null){const _0x406221=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3012e9>this['currentRevision']['toVersion']&&(_0x3012e9=null),null===_0x3012e9&&(_0x3012e9=await this['_source']['getLatestVersion']());const _0x3453fd=this['_getFromVersion'](_0x3012e9),_0x3a185e=this['buildRevisionData']({'from':_0x3453fd,'to':_0x3012e9});if(this['currentRevision']['toVersion']<_0x3012e9){const _0x4c4b34=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3012e9,'to':_0x3012e9});_0x4c4b34['authors']=[],_0x4c4b34['authorsIds']=[],_0x4c4b34['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4c4b34,!0x0),delete _0x4c4b34['authors'],_0x406221['push'](_0x4c4b34);}_0x3b41e9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b41e9['name']=_0x3b41e9['name']||null,_0x3b41e9['id']=_0x3b41e9['id']||_0x5d66aa(),_0x3b41e9={..._0x3b41e9,..._0x3a185e};const _0x506d0b=this['addRevisionData'](_0x3b41e9);_0x406221['push'](_0x3b41e9);const _0x2648f3=this['repository']['getIndex'](_0x506d0b);if(0x0!==_0x2648f3){const _0x7d97ba=this['repository']['getRevision'](_0x2648f3-0x1);if(_0x7d97ba['fromVersion']!==_0x3012e9){const _0x21465b=this['_revisionDataBuilder']['getData'](_0x3012e9,_0x7d97ba['toVersion']),_0x5db9b3={'id':_0x7d97ba['id'],'diffData':_0x21465b['diffData'],'authorsIds':_0x21465b['authorsIds'],'authors':_0x21465b['authorsIds']['map'](_0x4cbb1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x4cbb1d)),'fromVersion':_0x3012e9};_0x7d97ba===this['currentRevision']&&(_0x5db9b3['createdAt']=new Date(_0x3b41e9['createdAt']['getTime']()+0xa)),_0x7d97ba['_update'](_0x5db9b3,!0x0),delete _0x5db9b3['authors'],_0x406221['push'](_0x5db9b3);}}if(this['adapter']){for(const _0x54a987 of _0x406221)this['_bufferUpdate'](_0x54a987['id'],_0x54a987,!0x0);this['sendBufferedUpdates']();}return _0x506d0b;}['addRevisionData'](_0x518661){const _0x888eb8=this['repository']['createRevision'](_0x518661);return this['adapter']&&_0x888eb8['on']('_update',(_0x50859b,_0x2e7a07,_0x229c6e)=>{_0x229c6e||(this['_bufferUpdate'](_0x2e7a07['id'],_0x2e7a07,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x888eb8,this['_findInsertionIndex'](_0x888eb8)),_0x888eb8;}async['getRevisionDocumentData'](_0x33b024){await this['_loadRevisionData'](_0x33b024);const _0x17f0c9={};for(const _0xe1652e in _0x33b024['diffData']){if(_0x33b024['diffData'][_0xe1652e]['attachChange']&&!_0x33b024['diffData'][_0xe1652e]['attachChange']['isAttached'])continue;const _0x582f1f=this['_removeRevisionMarkers'](JSON['parse'](_0x33b024['diffData'][_0xe1652e]['insertions'])),_0x2786df=this['editor']['editing']['view']['document'],_0x5be6fb=new _0x57bee1(_0x2786df,_0x582f1f['map'](_0x36ae3e=>C(_0x36ae3e,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x17f0c9[_0xe1652e]=this['editor']['data']['processor']['toData'](_0x5be6fb),this['editor']['data']['processor']['useFillerType']('default');}return _0x17f0c9;}async['getRevisionRootsAttributes'](_0x34acc7){await this['_loadRevisionData'](_0x34acc7);const _0x42a34b={};for(const _0x230024 in _0x34acc7['diffData'])_0x34acc7['diffData'][_0x230024]['attachChange']&&!_0x34acc7['diffData'][_0x230024]['attachChange']['isAttached']||(_0x42a34b[_0x230024]=_0x34acc7['diffData'][_0x230024]['attributesAfter']||{});return _0x42a34b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xb5e886=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4f55c7=0x0;_0x4f55c7<_0xb5e886['length'];_0x4f55c7++){const _0x126e6d=_0xb5e886[_0x4f55c7];let _0x3a6c6a=!0x1;for(const _0x16bb4f of Object['keys'](_0x126e6d))void 0x0===_0x126e6d[_0x16bb4f]?delete _0x126e6d[_0x16bb4f]:'id'!==_0x16bb4f&&(_0x3a6c6a=!0x0);_0x3a6c6a||(_0xb5e886[_0x4f55c7]=null);}if(_0xb5e886=_0xb5e886['filter'](_0x52cdf6=>null!==_0x52cdf6),!_0xb5e886['length'])return;for(let _0x3fa82a=0x0;_0x3fa82a<_0xb5e886['length'];_0x3fa82a++){const _0x596d05=_0xb5e886[_0x3fa82a];void 0x0!==_0x596d05['fromVersion']&&void 0x0===_0x596d05['toVersion']&&(_0x596d05['toVersion']=this['repository']['getRevision'](_0x596d05['id'])['toVersion']),void 0x0!==_0x596d05['toVersion']&&void 0x0===_0x596d05['fromVersion']&&(_0x596d05['fromVersion']=this['repository']['getRevision'](_0x596d05['id'])['fromVersion']);}const _0x257af4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xb5e886,_0x257af4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x34970d=>{if(_0x34970d){for(const _0x38d6ad of _0x34970d)this['setRevisionData']({'id':_0x38d6ad['id'],'createdAt':_0x38d6ad['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x9b79ba,_0x26f1b5){let _0xdfbfd4=this['editor']['config']['get']('initialData'),_0x2a1072=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xdfbfd4){_0xdfbfd4={};for(const _0xfffd4a of this['editor']['model']['document']['getRootNames']())_0xdfbfd4[_0xfffd4a]='';}if('string'==typeof _0xdfbfd4&&(_0xdfbfd4={'main':_0xdfbfd4}),void 0x0===_0x2a1072){_0x2a1072={};for(const _0x2a2b29 of this['editor']['model']['document']['getRootNames']())_0x2a1072[_0x2a2b29]={};}let _0x4bbe91=!0x1;const _0x396ab4=Object['keys'](_0xdfbfd4),_0x466d91=Object['keys'](_0x9b79ba);for(const _0x5f34de of _0x396ab4){if(_0xdfbfd4[_0x5f34de]!==_0x9b79ba[_0x5f34de]&&''!==_0xdfbfd4[_0x5f34de]['trim']()){_0x4bbe91=!0x0;break;}if(!_0x466067(_0x2a1072[_0x5f34de],_0x26f1b5[_0x5f34de])&&Object['keys'](_0x2a1072[_0x5f34de])['length']>0x0){_0x4bbe91=!0x0;break;}}_0x4bbe91||(_0x4bbe91=_0x466d91['some'](_0x115c54=>!this['editor']['model']['document']['getRoot'](_0x115c54))),_0x4bbe91&&_0x3cc76b('editor-initial-data-replaced-with-revision-data',{'editorData':_0xdfbfd4,'editorRootsAttributes':_0x2a1072,'revisionData':_0x9b79ba,'revisionRootsAttributes':_0x26f1b5}),this['editor']['config']['set']('initialData',_0x9b79ba),this['editor']['config']['set']('rootsAttributes',_0x26f1b5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1b3276=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1b3276['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x14166c){const _0x1d16a1=this['repository']['getRevisions']();_0x1d16a1['reverse']();let _0x2b5019=0x0;for(;_0x2b5019<_0x1d16a1['length'];){const _0x3350d8=_0x1d16a1[_0x2b5019];if(_0x3350d8===this['currentRevision']){_0x2b5019++;continue;}if(_0x3350d8['id']===this['_initialRevisionId'])break;const _0x492d87=_0x14166c['toVersion']-_0x3350d8['toVersion']||_0x14166c['fromVersion']-_0x3350d8['fromVersion'];if(_0x492d87>0x0)break;if(_0x492d87<0x0)_0x2b5019++;else{if(!_0x14166c['creator']&&_0x3350d8['creator'])break;if(_0x3350d8['creator']||!_0x14166c['creator']){if(_0x14166c['createdAt']>_0x3350d8['createdAt'])break;_0x2b5019++;}else _0x2b5019++;}}return _0x2b5019;}['setRevisionData'](_0x2c0881){const _0xcf0dcd=this['repository']['getRevision'](_0x2c0881['id']);if(_0x2c0881['createdAt']&&(_0x2c0881['createdAt']=new Date(_0x2c0881['createdAt'])),_0x2c0881['authorsIds']){const _0x9d3afd=this['editor']['plugins']['get']('Users');_0x2c0881['authors']=_0x2c0881['authorsIds']['map'](_0x575688=>_0x9d3afd['getUser'](_0x575688));}_0xcf0dcd['_update'](_0x2c0881,!0x0);}['buildRevisionData']({revision:_0x4a02b6=null,from:_0x5f524b=null,to:_0x1c17d4=null}){_0x5f524b=null!==_0x5f524b?_0x5f524b:_0x4a02b6['fromVersion'],_0x1c17d4=null!==_0x1c17d4?_0x1c17d4:_0x4a02b6['toVersion'];const _0xc1ea7c=this['_revisionDataBuilder']['getData'](_0x5f524b,_0x1c17d4),_0x1a17e7={'diffData':_0xc1ea7c['diffData'],'authorsIds':_0xc1ea7c['authorsIds'],'fromVersion':_0x5f524b,'toVersion':_0x1c17d4};if(!_0x4a02b6||_0x1c17d4!==_0x4a02b6['toVersion']){const _0x233e09=_0x1c17d4-0x1,_0xed5063=this['_source']['history']['getOperation'](_0x233e09);_0x1a17e7['createdAt']=_0xed5063&&_0xed5063['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5f524b===this['_loadedStateData']['fromVersion']){for(const _0x136d67 of this['_loadedStateData']['authors'])_0x1a17e7['authorsIds']['includes'](_0x136d67['id'])||_0x1a17e7['authorsIds']['push'](_0x136d67['id']);}return _0x1a17e7;}['_loadRevisionData'](_0x28117d){if(!_0x28117d||_0x28117d['diffData'])return Promise['resolve']();{const _0x3f81ca=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3f81ca,'revisionId':_0x28117d['id']})['then'](_0x3652cf=>{_0x28117d['diffData']=_0x3652cf['diffData'];});}}['_bufferUpdate'](_0x1a67a9,_0x2997e2,_0x31d9dc){if(this['_bufferedUpdates']['has'](_0x1a67a9)){const _0x5e880e=this['_bufferedUpdates']['get'](_0x1a67a9);_0x2997e2=_0x31d9dc?{..._0x5e880e,..._0x2997e2}:{..._0x2997e2,..._0x5e880e};}this['_bufferedUpdates']['set'](_0x1a67a9,_0x2997e2);}['_getFromVersion'](_0x2620b1){const _0x5c7cd2=this['repository']['getRevisions']();_0x5c7cd2['reverse'](),_0x5c7cd2['shift']();const _0x1cdcfd=_0x5c7cd2['find'](_0x1946d6=>_0x1946d6['toVersion']<=_0x2620b1)['toVersion'];return _0x1cdcfd<this['_startingVersion']?this['_startingVersion']:_0x1cdcfd;}['_createInitialRevision'](_0x4b7bdb){const _0x104c4e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x104c4e)this['_initialRevisionId']=_0x104c4e['id'];else{const _0xd3b2d2=!this['editor']['model']['document']['roots']['find'](_0x17040c=>this['editor']['model']['hasContent'](_0x17040c)),_0x1c173f=this['editor']['plugins']['get']('Users')['me']['id'],_0x32e4d0=m(this['editor']['locale'],_0xd3b2d2?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4b7bdb,'to':_0x4b7bdb,'id':this['_initialRevisionId'],'name':_0x32e4d0,'creatorId':_0x1c173f});}}['_createCurrentRevision'](_0x2ea7e7){const _0x18ee9d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x18ee9d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2ea7e7,'to':_0x2ea7e7,'id':_0x18ee9d,'name':'','creatorId':null}));}['_makeRevision']({name:_0x15237f,from:_0x524ad9,to:_0x41e244,creatorId:_0x5e57ea,id:_0x112c1d}){const _0x132bb2=this['buildRevisionData']({'from':_0x524ad9,'to':_0x41e244});_0x132bb2['name']=_0x15237f,_0x132bb2['creatorId']=_0x5e57ea,_0x132bb2['id']=_0x112c1d;const _0x65b68d=this['addRevisionData'](_0x132bb2);return this['adapter']&&this['_bufferUpdate'](_0x132bb2['id'],_0x132bb2,!0x0),_0x65b68d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x8c4225){return(_0x8c4225=_0x8c4225['filter'](_0x1b9bd8=>!_0x1b9bd8['name']||'revision-start'!==_0x1b9bd8['name']&&'revision-end'!==_0x1b9bd8['name']))['forEach'](_0x52d4c0=>{'string'!=typeof _0x52d4c0&&(_0x52d4c0['children']=this['_removeRevisionMarkers'](_0x52d4c0['children']),_0x52d4c0['attributes']=_0x52d4c0['attributes']['filter'](_0x5689b8=>!_0x5689b8[0x0]['startsWith']('data-revision-')));}),_0x8c4225;}}function C(_0x1f63ee,_0x381171){const _0x2f9e41=_0x381171['editing']['view']['document'];if('string'==typeof _0x1f63ee)return new _0xe73c6d(_0x2f9e41,_0x1f63ee);{const _0x563c0d=_0x1f63ee['children']['map'](_0x571c4a=>C(_0x571c4a,_0x381171));return new(P[_0x1f63ee['type']]||_0x5e2f0f)(_0x2f9e41,_0x1f63ee['name'],_0x1f63ee['attributes'],_0x563c0d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5cbde8){this['editor']=_0x5cbde8,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'](_0x4af9d8){this['source']=_0x4af9d8;const _0x3f4525=new Map(),_0x1326f2=new Map(),_0x172ffc=this['editor']['model']['document']['roots']['map'](_0x5780fb=>_0x5780fb['rootName']);for(const _0xc66324 of _0x172ffc){const _0x1651cb=this['editor']['model']['document']['getRoot'](_0xc66324),_0x3c91b2=T(_0x1651cb);_0x3f4525['set'](_0xc66324,_0x3c91b2),_0x1326f2['set'](_0xc66324,Object['fromEntries'](_0x1651cb['getAttributes']()));}const _0x19b593=Array['from'](this['editor']['model']['markers'])['map'](_0x5c254f=>[_0x5c254f['name'],_0x5c254f['getRange']()]),_0x16a8d7=this['source']['version'];this['_saveMetaData'](_0x16a8d7,_0x3f4525,_0x19b593,_0x1326f2),this['_startingRevisionId']=this['_revisionId'];const _0x6746fa=new Map(),_0x35b76f=new Map();for(const _0x373f12 of _0x172ffc){const _0x52d562=F(_0x373f12);_0x6746fa['set'](_0x373f12,_0x52d562),_0x35b76f['set'](_0x373f12,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x6746fa,[],_0x35b76f);}['getData'](_0x52880b,_0xe40fad){if(this['_lastFrom']===_0x52880b&&this['_lastTo']<=_0xe40fad)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xe40fad,!0x0);else{if(!this['_savedMetaData']['has'](_0x52880b)){const _0x437a9e=this['_getPreviousFrom'](_0x52880b);this['_calculateMetaData'](_0x437a9e,_0x52880b,!0x1);}this['_calculateMetaData'](_0x52880b,_0xe40fad,!0x0);}return this['_lastFrom']=_0x52880b,this['_lastTo']=_0xe40fad,this['_getState']();}['loadState'](_0x2dd282){this['_reset'](),this['_lastFrom']=_0x2dd282['fromVersion'],this['_lastTo']=_0x2dd282['toVersion'];for(const _0x512629 in _0x2dd282['diffData']){const _0x2fe203=_0x2dd282['diffData'][_0x512629]['attachChange'],_0x312685=_0x77b43c(_0x2dd282['diffData'][_0x512629]['attributesBefore'])||{},_0x38035f=this['_makeModelFromViewString'](_0x2dd282['diffData'][_0x512629]['deletions']);_0x38035f['rootName']=_0x512629,_0x38035f['_isAttached']=!_0x2fe203||!_0x2fe203['isAttached'],_0x38035f['isAttached']=()=>_0x38035f['_isAttached'],this['_baseRoots']['set'](_0x512629,_0x38035f),this['_baseRootsAttributes']['set'](_0x512629,_0x312685),_0x2fe203&&this['_touchedRoots']['set'](_0x512629,_0x2fe203);const _0x29df55=this['_makeIdsRoot'](_0x38035f);this['_baseIdsRoots']['set'](_0x512629,_0x29df55);for(const [_0x35fa87,_0x35e8ac]of _0x38035f['markers']){if(!_0x35fa87['startsWith']('revision:'))continue;const _0x29cc52=_0x35fa87['split'](':')[0x2];for(const _0xe4cc1e of _0x35e8ac['getWalker']({'singleCharacters':!0x0})){const _0x5939bf=this['_getVidAttributeName'](_0xe4cc1e),_0x4a5ec8='elementEnd'==_0xe4cc1e['type']?_0xe4cc1e['previousPosition']['path']['slice'](0x0,-0x1):_0xe4cc1e['previousPosition']['path'],_0x1b0b4e=_0x29df55['getNodeByPath'](_0x4a5ec8)['getAttribute'](_0x5939bf);this['_touched']['set'](_0x1b0b4e,{'userId':_0x29cc52});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3e7159=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x254447=>!this['_touched']['has'](_0x254447));let _0x34ea3e=0x0;const _0x5142ab=new Map();for(const _0x4e95e9 in _0x2dd282['diffData']){const _0x2f52ad=_0x2dd282['diffData'][_0x4e95e9]['attachChange'],_0x2dafa7=_0x77b43c(_0x2dd282['diffData'][_0x4e95e9]['attributesAfter'])||{},_0x4f7eee=this['_makeModelFromViewString'](_0x2dd282['diffData'][_0x4e95e9]['insertions']);_0x4f7eee['rootName']=_0x4e95e9,_0x4f7eee['_isAttached']=!_0x2f52ad||_0x2f52ad['isAttached'],_0x4f7eee['isAttached']=()=>_0x4f7eee['_isAttached'],this['_diffRoots']['set'](_0x4e95e9,_0x4f7eee),this['_diffRootsAttributes']['set'](_0x4e95e9,_0x2dafa7);const _0x6aa54a=this['_makeIdsRoot'](_0x4f7eee,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e95e9,_0x6aa54a),_0x5142ab['set'](_0x4e95e9,_0x4f7eee['isAttached']()?_0x2dafa7:{});for(const [_0x20da15,_0x5f2478]of _0x4f7eee['markers']){if(!_0x20da15['startsWith']('revision:'))continue;const _0x3c62b1=_0x20da15['split'](':')[0x2];for(const _0x114644 of _0x5f2478['getWalker']({'singleCharacters':!0x0})){const _0x51edd1=this['_getVidAttributeName'](_0x114644),_0x277b40=this['_revisionId']++,_0x1712d9='elementEnd'==_0x114644['type']?_0x114644['previousPosition']['path']['slice'](0x0,-0x1):_0x114644['previousPosition']['path'];_0x6aa54a['getNodeByPath'](_0x1712d9)['_setAttribute'](_0x51edd1,_0x277b40),this['_touched']['set'](_0x277b40,{'userId':_0x3c62b1});}}for(const _0x37cb0b of this['editor']['model']['createRangeIn'](_0x4f7eee)['getWalker']({'singleCharacters':!0x0})){const _0x42e098=this['_getVidAttributeName'](_0x37cb0b),_0x278400='elementEnd'==_0x37cb0b['type']?_0x37cb0b['previousPosition']['path']['slice'](0x0,-0x1):_0x37cb0b['previousPosition']['path'],_0x1d548c=_0x6aa54a['getNodeByPath'](_0x278400);_0x1d548c['getAttribute'](_0x42e098)>0x0||_0x1d548c['_setAttribute'](_0x42e098,_0x3e7159[_0x34ea3e++]);}for(const [_0x280885,_0x26c43d]of _0x4f7eee['markers'])_0x280885['startsWith']('revision:')||this['_markers']['set'](_0x280885,_0x26c43d);}const _0x53d3fc=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x53d3fc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x53d3fc,0x1));const _0x4440f6=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4440f6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4440f6,0x1));const _0x17bbb3=Array['from'](this['_diffRoots'])['map'](([_0x30657c,_0x496090])=>[_0x30657c,T(_0x496090)]);this['_saveMetaData'](this['_lastTo'],_0x17bbb3,this['_markers'],_0x5142ab);}['_makeModelFromViewString'](_0x26bdd4){const _0x3b6ecf=JSON['parse'](_0x26bdd4),_0x5ecc3a=this['editor']['editing']['view']['document'],_0x3315a4=new _0x57bee1(_0x5ecc3a,_0x3b6ecf['map'](_0x46ab3f=>C(_0x46ab3f,this['editor'])));return this['editor']['data']['toModel'](_0x3315a4);}['_saveMetaData'](_0x4bfa9f,_0x5250ef,_0x4b5ed1,_0x32799e){const _0x3da13e=new Map(_0x5250ef),_0x18ea41=new Map(_0x77b43c(_0x32799e)),_0x1e2f90=new Map();for(const [_0x202d0d,_0x390b35]of _0x4b5ed1)_0x1e2f90['set'](_0x202d0d,{'start':_0x390b35['start']['clone'](),'end':_0x390b35['end']['clone'](),'rootName':_0x390b35['root']['rootName']});this['_savedMetaData']['set'](_0x4bfa9f,{'roots':_0x3da13e,'markers':_0x1e2f90,'rootsAttributes':_0x18ea41});}['_removeMetaData'](_0x500c3d){this['_savedMetaData']['delete'](_0x500c3d);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x59afc6,_0x40d8dd=null){let _0x4d0943=null;_0x59afc6['is']('documentFragment')||(_0x4d0943=new ft(_0x59afc6['name'],{'vid_start':null===_0x40d8dd?this['_revisionId']++:_0x40d8dd++}));const _0x5ea99b=[];for(const _0x5c256b of _0x59afc6['getChildren']())if(_0x5c256b['is']('element')){_0x5ea99b['push'](this['_makeIdsRoot'](_0x5c256b,_0x40d8dd));const _0x238442=_0x5ea99b[_0x5ea99b['length']-0x1];null!==_0x40d8dd&&(_0x40d8dd=_0x238442['is']('element','$text')?_0x238442['getAttribute']('vid')+0x1:_0x238442['getAttribute']('vid_end')+0x1);}else{for(let _0xb27571=0x0;_0xb27571<_0x5c256b['offsetSize'];_0xb27571++)_0x5ea99b['push'](new ft('$text',{'vid':null===_0x40d8dd?this['_revisionId']++:_0x40d8dd++}));}if(_0x59afc6['is']('documentFragment')){const _0x53de5f=F(_0x59afc6['rootName']);return _0x53de5f['_insertChild'](0x0,_0x5ea99b),_0x53de5f;}return _0x4d0943['_setAttribute']('vid_end',null===_0x40d8dd?this['_revisionId']++:_0x40d8dd++),_0x4d0943['_insertChild'](0x0,_0x5ea99b),_0x4d0943;}['_calculateMetaData'](_0x3d158a,_0xc127e2,_0x1e3fda){this['_reset']();const {roots:_0x471431,markers:_0x373107,rootsAttributes:_0x19760f}=this['_savedMetaData']['get'](_0x3d158a);this['_baseRoots']=new Map(_0x471431),this['_baseRootsAttributes']=new Map(_0x77b43c(_0x19760f));for(const [_0x4c6e15,_0x137a5c]of this['_baseRoots'])if('$graveyard'!==_0x4c6e15&&(this['_diffRoots']['set'](_0x4c6e15,T(_0x137a5c)),this['_diffRootsAttributes']=new Map(_0x77b43c(_0x19760f)),_0x1e3fda)){const _0xabccfb=this['_revisionId'];this['_idsRoots']['set'](_0x4c6e15,this['_makeIdsRoot'](_0x137a5c)),this['_baseIdsRoots']['set'](_0x4c6e15,this['_makeIdsRoot'](_0x137a5c,_0xabccfb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x1e3fda&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3239c9,_0x58ab95]of _0x373107){const _0xd3e165=this['_baseRoots']['get'](_0x58ab95['rootName']),_0x10a4f6=this['_diffRoots']['get'](_0x58ab95['rootName']),_0x4fccfe=new vt(this['_fixPosition'](_0x58ab95['start'],_0xd3e165),this['_fixPosition'](_0x58ab95['end'],_0xd3e165)),_0x3955a1=this['_fixRange'](_0x4fccfe,_0x10a4f6);_0xd3e165['markers']['set'](_0x3239c9,_0x4fccfe),this['_markers']['set'](_0x3239c9,_0x3955a1);}this['_applyOperations'](_0x3d158a,_0xc127e2,_0x1e3fda);}['_applyOperations'](_0x810af5,_0x152d44,_0x27a1db){for(const _0xf47008 of this['source']['getOperations'](_0x810af5,_0x152d44))this['_handleOperation'](_0xf47008,_0x27a1db);for(const _0x42b9f2 of this['_diffRoots']['values']())_0x42b9f2['markers']['clear']();for(const [_0x57a757,_0x4063d3]of this['_markers']){this['_diffRoots']['get'](_0x4063d3['root']['rootName'])['markers']['set'](_0x57a757,_0x4063d3['clone']());}const _0x17afa9=new Map(),_0x23d5dd=new Map();for(const [_0x2a1db0,_0x3c5439]of this['_diffRoots'])_0x17afa9['set'](_0x2a1db0,T(_0x3c5439)),_0x23d5dd['set'](_0x2a1db0,this['_diffRootsAttributes']['get'](_0x2a1db0));this['_saveMetaData'](_0x152d44,_0x17afa9,this['_markers'],_0x23d5dd);}['_getPreviousFrom'](_0x3f460f){const _0x13a685=Array['from'](this['_savedMetaData']['keys']());_0x13a685['sort']((_0x57cbd9,_0x2354f0)=>_0x57cbd9-_0x2354f0),_0x13a685['reverse']();for(const _0x4952dc of _0x13a685)if(_0x4952dc<_0x3f460f)return _0x4952dc;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x34ba88,_0xe468a5){const _0x318d11=Array['from'](_0xe468a5['markers'])['map'](([_0x30fd03,_0x2915e4])=>[_0x30fd03,this['_fixRange'](_0x2915e4,_0x34ba88)]);_0x34ba88['markers']=new Map(_0x318d11);}['_transformMarkers'](_0x2664c8){for(const _0x39c900 of this['_markers']['values']()){const _0x5d2c31=_0x39c900['getTransformedByOperation'](_0x2664c8),_0x39f995=vt['_createFromRanges'](_0x5d2c31);_0x39c900['start']=_0x39f995['start'],_0x39c900['end']=_0x39f995['end'];}}['_handleOperation'](_0x51228c,_0x22aa19){if('addRoot'!=_0x51228c['type']&&'detachRoot'!=_0x51228c['type']){if('insert'==_0x51228c['type']){const _0x42413e=_0x51228c['position']['root']['rootName'];this['_diffRoots']['has'](_0x42413e)||(this['_diffRoots']['set'](_0x42413e,F(_0x42413e,!0x0)),this['_diffRootsAttributes']['set'](_0x42413e,{}),_0x22aa19&&this['_idsRoots']['set'](_0x42413e,F(_0x42413e,!0x0)));}else{if('addRootAttribute'==_0x51228c['type']||'removeRootAttribute'==_0x51228c['type']||'changeRootAttribute'==_0x51228c['type'])return void this['_handleRootAttributeOperation'](_0x51228c);'marker'==_0x51228c['type']&&this['_handleMarkerOperation'](_0x51228c);}if('marker'!==_0x51228c['type']){const _0x41a14f=this['_cloneOperation'](_0x51228c,this['_diffRoots']);_0x41a14f['_execute'](),this['_transformMarkers'](_0x41a14f);}if(_0x22aa19)switch(_0x51228c['type']){case'insert':this['_handleInsertOperation'](_0x51228c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x51228c);break;case'merge':this['_handleMergeOperation'](_0x51228c);break;case'split':this['_handleSplitOperation'](_0x51228c);}}else this['_handleRootOperation'](_0x51228c,_0x22aa19);}['_cloneOperation'](_0x4b6dad,_0xb50f17){const _0x376d8e=_0x4b6dad['clone']();return _0x376d8e['_authorId']=_0x4b6dad['_authorId'],this['_fixOperation'](_0x376d8e,_0xb50f17),_0x376d8e;}['_getBaseVids'](_0x178b1c){return _0x178b1c['map'](_0x99a7fb=>{const _0x36bfa5=this['_getVidAttributeName'](_0x99a7fb);return Number(_0x99a7fb['item']['getAttribute'](_0x36bfa5));});}['_generateTape'](_0x5118ef,_0x4a836c){if(_0x5118ef['is']('element','$text'))_0x4a836c['push']({'item':_0x5118ef,'type':'text'});else{_0x5118ef['is']('element')&&_0x4a836c['push']({'item':_0x5118ef,'type':'elementStart'});for(const _0x1e7b0a of _0x5118ef['getChildren']())this['_generateTape'](_0x1e7b0a,_0x4a836c);_0x5118ef['is']('element')&&_0x4a836c['push']({'item':_0x5118ef,'type':'elementEnd'});}return _0x4a836c;}['_getState'](){const _0x1e78b2=new Map(this['_touched']),_0x33027e=new Map(_0x1e78b2),_0x38859a=new Map(),_0x5cf274={'insertions':{},'deletions':{}},_0xfeec5a={'insertions':{},'deletions':{}},_0x29ed50=new Map(),_0x4cc3c7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4cc3c7['delete']('$graveyard');for(const _0x299499 of _0x4cc3c7){const _0x5529e4=this['_diffRoots']['get'](_0x299499)||F(_0x299499,!0x1),_0x3dd95a=this['_baseRoots']['get'](_0x299499)||F(_0x299499,!0x1);_0x5529e4['isAttached']()||_0x3dd95a['isAttached']()?(_0x5cf274['insertions'][_0x299499]=T(_0x5529e4),_0x5cf274['deletions'][_0x299499]=T(_0x3dd95a),this['_copyMarkers'](_0x5cf274['deletions'][_0x299499],_0x3dd95a),this['_copyMarkers'](_0x5cf274['insertions'][_0x299499],_0x5529e4),_0xfeec5a['insertions'][_0x299499]=this['_generateTape'](this['_idsRoots']['get'](_0x299499),[]),_0xfeec5a['deletions'][_0x299499]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x299499)||F(_0x299499,!0x1),[])):_0x4cc3c7['delete'](_0x299499);}for(const _0x194c3e of _0x4cc3c7){const _0x2c41f2=_0xfeec5a['insertions'][_0x194c3e];for(const _0x200cb1 of _0x2c41f2){const _0x3f77ee=this['_getVidAttributeName'](_0x200cb1),_0x2c8f48=_0x200cb1['item']['getAttribute'](_0x3f77ee);_0x33027e['delete'](_0x2c8f48),_0x2c8f48>=this['_startingRevisionId']&&_0x38859a['set'](_0x2c8f48,_0x1e78b2['get'](_0x2c8f48));}}for(const _0x948e35 of _0x4cc3c7){const _0x5edf6f=_0xfeec5a['insertions'][_0x948e35],_0x452085=this['_getBaseVids'](_0xfeec5a['deletions'][_0x948e35]);let _0x10d66d=0x0;for(const _0x1052b8 of _0x5edf6f){const _0x27824c=this['_getVidAttributeName'](_0x1052b8),_0x1b7ba3=_0x1052b8['item']['getAttribute'](_0x27824c);if(!_0x38859a['has'](_0x1b7ba3)&&!_0x29ed50['has'](_0x1b7ba3)){if(_0x33027e['has'](_0x1b7ba3))_0x10d66d++;else{if(_0x1b7ba3!=_0x452085[_0x10d66d]){const _0x516a2e=_0x1e78b2['get'](_0x1b7ba3)||_0x1e78b2['get'](_0x452085[_0x10d66d]);for(;_0x1b7ba3!=_0x452085[_0x10d66d];)_0x33027e['has'](_0x452085[_0x10d66d])||(_0x29ed50['set'](_0x452085[_0x10d66d],_0x516a2e),_0x1e78b2['set'](_0x452085[_0x10d66d],_0x516a2e)),_0x10d66d++;}_0x10d66d++;}}}}for(const _0x2a2545 of _0x4cc3c7){const _0x3d61c7=_0xfeec5a['insertions'][_0x2a2545];for(const _0x54aa57 of _0x3d61c7){const _0x1e7833=this['_getVidAttributeName'](_0x54aa57),_0x43c235=_0x54aa57['item']['getAttribute'](_0x1e7833);if(_0x29ed50['has'](_0x43c235)){const _0x9aa867=_0x29ed50['get'](_0x43c235);_0x33027e['has'](_0x43c235)||_0x33027e['set'](_0x43c235,{..._0x9aa867}),_0x38859a['set'](_0x43c235,{..._0x9aa867});}}}for(const _0x36c85a of _0x33027e['keys']())_0x36c85a>=this['_startingRevisionId']&&_0x33027e['delete'](_0x36c85a);const _0xaf599f=new Map();for(const _0x2a92ff of _0x4cc3c7){let _0x1aa4ce=_0xfeec5a['insertions'][_0x2a92ff];for(const _0xe621e0 of _0x1aa4ce)if(_0xe621e0['item']['is']('element','tableCell')){const _0x3628d9=this['_getVidAttributeName'](_0xe621e0),_0x52f691=_0xe621e0['item']['getAttribute'](_0x3628d9);if(_0x38859a['has'](_0x52f691)){const _0x2ad0cb=_0xe621e0['item']['parent']['parent']['getAttribute']('vid_start'),_0x4982c4=_0xaf599f['get'](_0x2ad0cb)||new Set();_0x4982c4['add'](_0x38859a['get'](_0x52f691)['userId']),_0xaf599f['set'](_0x2ad0cb,_0x4982c4);}}_0x1aa4ce=_0xfeec5a['deletions'][_0x2a92ff];for(const _0x4fd7a3 of _0x1aa4ce)if(_0x4fd7a3['item']['is']('element','tableCell')){const _0x2e3de4=this['_getVidAttributeName'](_0x4fd7a3),_0xfbc29b=_0x4fd7a3['item']['getAttribute'](_0x2e3de4);if(_0x33027e['has'](_0xfbc29b)){const _0x38a1c4=_0x4fd7a3['item']['parent']['parent']['getAttribute']('vid_start'),_0x24afcb=_0xaf599f['get'](_0x38a1c4)||new Set();_0x24afcb['add'](_0x33027e['get'](_0xfbc29b)['userId']),_0xaf599f['set'](_0x38a1c4,_0x24afcb);}}for(const _0x364359 of _0xaf599f['keys']())(_0x38859a['has'](_0x364359)||_0x33027e['has'](_0x364359))&&_0xaf599f['delete'](_0x364359);}for(const _0x538e2a of _0x4cc3c7){const _0x155197=_0xfeec5a['insertions'][_0x538e2a];let _0x5a7bb9=null,_0x2c5604=null;for(const _0x193df3 of _0x155197){const _0x47dbc3=this['_getVidAttributeName'](_0x193df3),_0x36dc05=_0x193df3['item']['getAttribute'](_0x47dbc3),_0x7ad6f1=_0xaf599f['get'](_0x36dc05);_0x7ad6f1&&'elementStart'==_0x193df3['type']&&(_0x5a7bb9=Array['from'](_0x7ad6f1)[0x0],_0x2c5604=_0x193df3['item']['getAttribute']('vid_end')),_0x5a7bb9&&(_0x33027e['set'](_0x36dc05,{'userId':_0x5a7bb9}),_0x38859a['set'](_0x36dc05,{'userId':_0x5a7bb9})),_0x36dc05==_0x2c5604&&(_0x5a7bb9=null,_0x2c5604=null);}}const _0x3746f={},_0x4baf55=new Set();for(const _0xa858cb of _0x4cc3c7){const _0x130631=_0x5cf274['deletions'][_0xa858cb],_0x2ffbbf=_0x5cf274['insertions'][_0xa858cb];for(const {userId:_0x11ec8e}of this['_touchedMarkers']['values']())null!==_0x11ec8e&&_0x4baf55['add'](_0x11ec8e);for(const {userId:_0x1776e4}of this['_touchedRoots']['values']())null!==_0x1776e4&&_0x4baf55['add'](_0x1776e4);this['_markChanges'](_0x2ffbbf,_0xfeec5a['insertions'][_0xa858cb],_0x38859a,'insertion',_0x4baf55),this['_markChanges'](_0x130631,_0xfeec5a['deletions'][_0xa858cb],_0x33027e,'deletion',_0x4baf55),_0x3746f[_0xa858cb]={'insertions':this['_prepareViewToSave'](_0x2ffbbf),'deletions':this['_prepareViewToSave'](_0x130631),'attachChange':this['_touchedRoots']['get'](_0xa858cb)||null,'attributesBefore':_0x77b43c(this['_baseRootsAttributes']['get'](_0xa858cb))||{},'attributesAfter':_0x77b43c(this['_diffRootsAttributes']['get'](_0xa858cb))};}return{'diffData':_0x3746f,'authorsIds':Array['from'](_0x4baf55)};}['_processRootBeforeSave'](_0x40f18b){for(const [,_0x174a1e]of _0x40f18b['markers']){const _0x3fcd15=_0x174a1e['start']['getAncestors']()['filter'](_0x1535dd=>'tableCell'==_0x1535dd['name']);for(const _0x1cf220 of _0x3fcd15)0x1==_0x1cf220['childCount']&&_0x1cf220['getChild'](0x0)['is']('element','paragraph')&&_0x1cf220['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x59f6a1){this['_processRootBeforeSave'](_0x59f6a1);const _0x509f59=this['editor']['data']['toView'](_0x59f6a1,{}),_0x9bcfdb=Array['from'](_0x509f59['getChildren']())['map'](_0x384c7e=>this['_getViewJson'](_0x384c7e));return JSON['stringify'](_0x9bcfdb);}['_getViewJson'](_0x3bcbf5){if(_0x3bcbf5['is']('$text'))return _0x3bcbf5['data'];{const _0x58df57=_0x3bcbf5;return{'type':Object['keys'](P)['find'](_0x167350=>_0x3bcbf5 instanceof P[_0x167350]),'name':_0x58df57['name'],'attributes':Array['from'](_0x58df57['getAttributes']()),'children':Array['from'](_0x58df57['getChildren']())['map'](_0x22f734=>this['_getViewJson'](_0x22f734))};}}['_markChanges'](_0x4dda38,_0xe1489e,_0x1b4f4a,_0x185ace,_0xe0eba4){let _0x1f7de7=null,_0x4348c6=null,_0x4540a4=0x0;const _0x5307cd=this['editor']['model'];for(let _0x142a80=0x0;_0x142a80<_0xe1489e['length'];_0x142a80++){const _0x37de12=this['_getVidAttributeName'](_0xe1489e[_0x142a80]),_0x268817=_0xe1489e[_0x142a80]['item']['getAttribute'](_0x37de12),_0x3a88b6=_0x1b4f4a['get'](_0x268817),_0x396769=_0x142a80==_0xe1489e['length']-0x1;(!_0x1f7de7&&_0x3a88b6&&(_0x1f7de7=_0x3a88b6,_0x4348c6=_0xe1489e[_0x142a80]),_0x1f7de7&&(!_0x3a88b6||_0x3a88b6['userId']!=_0x1f7de7['userId']))&&(_0x25b618(_0x3a88b6,B(_0x4348c6,_0x4dda38,_0x5307cd),B(_0xe1489e[_0x142a80],_0x4dda38,_0x5307cd)),_0x1f7de7=_0x3a88b6||null,_0x4348c6=_0x3a88b6?_0xe1489e[_0x142a80]:null),_0x1f7de7&&_0x396769&&_0x25b618(_0x3a88b6,B(_0x4348c6,_0x4dda38,_0x5307cd),J(_0xe1489e[_0x142a80],_0x4dda38,_0x5307cd));}function _0x25b618(_0x2a039f,_0x214fb3,_0x37648a){const _0x326158=_0x1f7de7['userId'],_0x371d34='revision:'+_0x185ace+':'+_0x326158+':'+_0x4540a4++,_0x11e68e=_0x5307cd['createRange'](_0x214fb3,_0x37648a);_0x4dda38['markers']['set'](_0x371d34,_0x11e68e),null!==_0x326158&&_0xe0eba4['add'](_0x326158);}}['_getVidAttributeName'](_0x2495c8){switch(_0x2495c8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x43874f,_0x3012f5){_0x43874f['baseVersion']=null;for(const _0x308e47 in _0x43874f){const _0x275a7f=_0x43874f[_0x308e47];if(_0x275a7f instanceof gt){const _0x29a04f=_0x3012f5['get'](_0x275a7f['root']['rootName']);_0x43874f[_0x308e47]=this['_fixPosition'](_0x275a7f,_0x29a04f);}if(_0x275a7f instanceof vt){const _0x415feb=_0x3012f5['get'](_0x275a7f['root']['rootName']);_0x43874f[_0x308e47]=this['_fixRange'](_0x275a7f,_0x415feb);}'root'===_0x308e47&&(_0x43874f['root']=_0x3012f5['get'](_0x43874f['root']['rootName']));}}['_fixRange'](_0x4946e8,_0x498619){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4946e8['start'],_0x498619),this['_fixPosition'](_0x4946e8['end'],_0x498619));}['_fixPosition'](_0x26ca51,_0xa5b6ec){return this['editor']['model']['createPositionFromPath'](_0xa5b6ec,_0x26ca51['path'],_0x26ca51['stickiness']);}['_handleInsertOperation'](_0x4abab9){const _0x14b066=this['_idsRoots']['get'](_0x4abab9['position']['root']['rootName']),_0x4bfec2=this['_fixPosition'](_0x4abab9['position'],_0x14b066),_0x9c6af2=null===_0x4abab9['_authorId']?null:_0x4abab9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b11dc=_0x4bfec2['parent'],_0x46f23c=this['_revisionId'],_0x205f3a=[];for(const _0xec8cb3 of _0x4abab9['nodes'])if(_0xec8cb3['is']('element'))_0x205f3a['push'](this['_makeIdsRoot'](_0xec8cb3));else{for(let _0x55cb33=0x0;_0x55cb33<_0xec8cb3['offsetSize'];_0x55cb33++)_0x205f3a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x1e027e=this['_revisionId'];for(let _0x38912e=_0x46f23c;_0x38912e<_0x1e027e;_0x38912e++)this['_touched']['set'](_0x38912e,{'userId':_0x9c6af2});_0x1b11dc['_insertChild'](_0x4bfec2['offset'],_0x205f3a);}['_handleMoveOperation'](_0x14fbce){(_0x14fbce=this['_cloneOperation'](_0x14fbce,this['_idsRoots']))['_execute']();const _0x986bbc=null===_0x14fbce['_authorId']?null:_0x14fbce['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x191216=_0x14fbce['getMovedRangeStart'](),_0x2bcfc1=_0x191216['parent'],_0x276043=_0x191216['offset'];!function _0x45a16a(_0x2854b1,_0x26413b,_0x18d6df,_0x578afd){for(let _0x337384=_0x18d6df;_0x337384<_0x578afd;_0x337384++){const _0x192e19=_0x26413b['getChild'](_0x337384);_0x192e19['is']('element','$text')?_0x2854b1['set'](_0x192e19['getAttribute']('vid'),{'userId':_0x986bbc}):(_0x2854b1['set'](_0x192e19['getAttribute']('vid_start'),{'userId':_0x986bbc}),_0x45a16a(_0x2854b1,_0x192e19,0x0,_0x192e19['childCount']),_0x2854b1['set'](_0x192e19['getAttribute']('vid_end'),{'userId':_0x986bbc}));}}(this['_touched'],_0x2bcfc1,_0x276043,_0x276043+_0x14fbce['howMany']);}['_handleMergeOperation'](_0x59fe33){const _0x4ead31=null===(_0x59fe33=this['_cloneOperation'](_0x59fe33,this['_idsRoots']))['_authorId']?null:_0x59fe33['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c76f1=_0x59fe33['targetPosition']['parent'],_0xc2ac05=_0x59fe33['sourcePosition']['parent'],_0x4235b8=_0x3c76f1['getAttribute']('vid_end'),_0x12fe8b=_0xc2ac05['getAttribute']('vid_start');_0x3c76f1['_setAttribute']('vid_end',_0xc2ac05['getAttribute']('vid_end')),_0xc2ac05['_setAttribute']('vid_end',_0x4235b8),this['_touched']['set'](_0x12fe8b,{'userId':_0x4ead31}),this['_touched']['set'](_0x4235b8,{'userId':_0x4ead31}),_0x59fe33['_execute']();}['_handleSplitOperation'](_0x49ad5f){const _0x117916=null===(_0x49ad5f=this['_cloneOperation'](_0x49ad5f,this['_idsRoots']))['_authorId']?null:_0x49ad5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eadc2=_0x49ad5f['graveyardPosition'],_0x52ae04=_0x49ad5f['splitPosition']['parent'];_0x49ad5f['_execute']();const _0x19e3a4=_0x52ae04['getAttribute']('vid_end'),_0xabf750=_0x49ad5f['insertionPosition']['nodeAfter'];if(_0x1eadc2){const _0x2c392d=_0xabf750['getAttribute']('vid_end'),_0xe737bc=_0x52ae04['getAttribute']('vid_end');_0x52ae04['_setAttribute']('vid_end',_0x2c392d),_0xabf750['_setAttribute']('vid_end',_0xe737bc),this['_touched']['set'](_0x52ae04['getAttribute']('vid_end'),{'userId':_0x117916}),this['_touched']['set'](_0xabf750['getAttribute']('vid_start'),{'userId':_0x117916});}else{const _0x2fe9e5=this['_revisionId']++,_0x3eb5b8=this['_revisionId']++;_0x52ae04['_setAttribute']('vid_end',_0x2fe9e5),_0xabf750['_setAttribute']('vid_start',_0x3eb5b8),_0xabf750['_setAttribute']('vid_end',_0x19e3a4),this['_touched']['set'](_0x2fe9e5,{'userId':_0x117916}),this['_touched']['set'](_0x3eb5b8,{'userId':_0x117916});}}['_handleMarkerOperation'](_0x507253){if(!_0x507253['affectsData'])return;const _0x3bb3e0=(_0x507253=this['_cloneOperation'](_0x507253,this['_diffRoots']))['oldRange']?_0x507253['oldRange']['root']:null,_0xe094bc=_0x507253['newRange']?_0x507253['newRange']['root']:null;_0x3bb3e0&&this['_markers']['delete'](_0x507253['name']),_0xe094bc&&this['_markers']['set'](_0x507253['name'],_0x507253['newRange']['clone']());const _0x31a8b6=null===_0x507253['_authorId']?null:_0x507253['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x189af3=_0x507253['name'];if(!this['_touchedMarkers']['has'](_0x189af3))return void this['_touchedMarkers']['set'](_0x189af3,{'range':_0x507253['oldRange'],'userId':_0x31a8b6});const _0x250e70=this['_touchedMarkers']['get'](_0x189af3),_0x4d835f=_0x250e70['range'],_0x18006c=_0x507253['newRange'];null==_0x4d835f&&null==_0x18006c||_0x4d835f&&_0x18006c&&_0x4d835f['isEqual'](_0x18006c)?this['_touchedMarkers']['delete'](_0x507253['name']):_0x250e70['userId']=_0x31a8b6;}['_handleRootOperation'](_0x1bc513,_0x4d7af2){this['_diffRoots']['has'](_0x1bc513['rootName'])?this['_diffRoots']['get'](_0x1bc513['rootName'])['_isAttached']=_0x1bc513['isAdd']:(this['_diffRoots']['set'](_0x1bc513['rootName'],F(_0x1bc513['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1bc513['rootName'],{}),_0x4d7af2&&this['_idsRoots']['set'](_0x1bc513['rootName'],F(_0x1bc513['rootName'],!0x0)));const _0x5539a8=null===_0x1bc513['_authorId']?null:_0x1bc513['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54e5a2=this['_touchedRoots']['get'](_0x1bc513['rootName']);_0x54e5a2&&_0x54e5a2['userId']===_0x5539a8?this['_touchedRoots']['delete'](_0x1bc513['rootName']):this['_touchedRoots']['set'](_0x1bc513['rootName'],{'userId':_0x5539a8,'isAttached':_0x1bc513['isAdd']});}['_handleRootAttributeOperation'](_0x3e6a15){const _0x187d07=this['_diffRootsAttributes']['get'](_0x3e6a15['root']['rootName']);null===_0x3e6a15['newValue']?delete _0x187d07[_0x3e6a15['key']]:_0x187d07[_0x3e6a15['key']]=_0x3e6a15['newValue'];}}function T(_0x1ae50e){const _0x673dae=F(_0x1ae50e['rootName'],_0x1ae50e['isAttached']());for(const _0x20860b of _0x1ae50e['getChildren']()){const _0x3daad4=_0x20860b['_clone'](!0x0);_0x673dae['_appendChild'](_0x3daad4);}return _0x673dae;}function F(_0x28619d,_0x74df6a=!0x0){const _0x93e1b1=new mt();return _0x93e1b1['rootName']=_0x28619d,_0x93e1b1['_isAttached']=_0x74df6a,_0x93e1b1['isAttached']=()=>_0x93e1b1['_isAttached'],_0x93e1b1;}function B(_0x13d13f,_0xc8e738,_0x275517){const _0x545b7d='elementEnd'==_0x13d13f['type']?_0x275517['createPositionAt'](_0x13d13f['item'],'end'):_0x275517['createPositionBefore'](_0x13d13f['item']);return _0x275517['createPositionFromPath'](_0xc8e738,_0x545b7d['path'],_0x545b7d['stickiness']);}function J(_0x37c1b0,_0x5c57a4,_0xb66ab3){const _0x38a856='elementStart'==_0x37c1b0['type']?_0xb66ab3['createPositionAt'](_0x37c1b0['item'],0x0):_0xb66ab3['createPositionAfter'](_0x37c1b0['item']);return _0xb66ab3['createPositionFromPath'](_0x5c57a4,_0x38a856['path'],_0x38a856['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x25f995,_0x49423c){super(_0x25f995),this['focusTracker']=new _0x2cdc04(),this['keystrokes']=new _0x430444(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x49423c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x338fd2(this);}['render'](){super['render'](),_0x53558e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x511943=_0x31485d=>_0x31485d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x511943),this['keystrokes']['set']('arrowleft',_0x511943),this['keystrokes']['set']('arrowup',_0x511943),this['keystrokes']['set']('arrowdown',_0x511943);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5c5cc9){this['revisionNameInputView']['fieldView']['element']['value']=_0x5c5cc9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x56f378){const _0x13dfec=new _0xe538c1(this['locale'],_0x368611),_0x50b88b=_0x13dfec['fieldView'];_0x50b88b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1f408c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x56f378&&(_0x1f408c+='\x20('+m(this['locale'],'optional')+')'),(_0x13dfec['label']=_0x1f408c,_0x50b88b['on']('input',()=>{this['revisionNameInputValue']=_0x50b88b['element']['value']['trim']();}),_0x13dfec);}}class u extends _0x1420a4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x20443d=this['editor'],_0x229214=_0x20443d['plugins']['get']('RevisionTracker');_0x20443d['ui']['componentFactory']['add']('revisionHistory',_0x127d5d=>{const _0x1eb6a4=_0x1e0a60(_0x127d5d),_0x1c9f5b=_0x1eb6a4['panelView']['children'],_0x1e9e70=new _0x4646f5(_0x127d5d),_0x2dc59e=new _0x503a4e(_0x127d5d),_0x55318b=new te(_0x127d5d),_0xe9c586=new _0x503a4e(_0x127d5d),_0xd39516=new te(_0x127d5d);return _0x1eb6a4['bind']('isEnabled')['to'](_0x229214,'isReady',_0x229214,'isEnabled',_0x20443d,'isReadOnly',(_0x4dfc90,_0x4347b8,_0xa64501)=>_0x4dfc90&&_0x4347b8&&!_0xa64501),_0x1eb6a4['buttonView']['set']({'icon':_0x247700['history'],'label':m(_0x127d5d,'Revision\x20history'),'tooltip':!0x0}),_0x55318b['set']({'label':m(_0x127d5d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x55318b['bind']('isEnabled')['to'](_0x229214,'isReady',_0x229214,'isEnabled',_0x20443d,'isReadOnly',(_0x464390,_0x44041c,_0x260a35)=>_0x464390&&_0x44041c&&!_0x260a35),_0x55318b['on']('execute',()=>this['_showDialog']()),_0xd39516['set']({'label':m(_0x127d5d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xd39516['bind']('isEnabled')['to'](_0x229214,'isReady',_0x20443d,'isReadOnly',(_0x2dd954,_0x584ed1)=>_0x2dd954&&!_0x584ed1),_0xd39516['on']('execute',()=>{_0x20443d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1eb6a4['isOpen']=!0x1,_0x20443d['editing']['view']['focus']();}),_0x2dc59e['children']['add'](_0x55318b),_0xe9c586['children']['add'](_0xd39516),_0x1e9e70['role']='menu',_0x1e9e70['items']['addMany']([_0x2dc59e,_0xe9c586]),_0x1c9f5b['add'](_0x1e9e70),_0x1eb6a4;}),_0x20443d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x41aa49=this['editor'],_0x5a67aa=_0x41aa49['locale'],_0x5a619f=new _0x827bd6(_0x5a67aa),_0x49cf56=new _0x170de9(_0x5a67aa);_0x5a619f['buttonView']['set']({'icon':_0x247700['history'],'label':m(_0x5a67aa,'Revision\x20history')});const _0xfa7961=new _0x4b4311(_0x5a67aa,_0x5a619f),_0x27aa4d=new _0x2b7259(_0x5a67aa);_0x27aa4d['set']({'label':m(_0x5a67aa,'Save\x20current\x20revision')}),_0x27aa4d['delegate']('execute')['to'](_0x5a619f),_0x27aa4d['on']('execute',()=>{this['_showDialog']();}),_0xfa7961['children']['add'](_0x27aa4d),_0x49cf56['items']['add'](_0xfa7961);const _0x454874=new _0x4b4311(_0x5a67aa,_0x5a619f),_0x568a7a=new _0x2b7259(_0x5a67aa);return _0x568a7a['set']({'label':m(_0x5a67aa,'Open\x20revision\x20history')}),_0x568a7a['delegate']('execute')['to'](_0x5a619f),_0x568a7a['on']('execute',()=>{_0x41aa49['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x454874['children']['add'](_0x568a7a),_0x49cf56['items']['add'](_0x454874),_0x5a619f['panelView']['children']['add'](_0x49cf56),_0x5a619f;}['_showDialog'](){const _0x58d500=this['editor'],_0x365ba3=_0x58d500['locale'],_0x4e1cd5=_0x58d500['plugins']['get']('Dialog'),_0x293ba0=_0x58d500['plugins']['get']('RevisionTracker');function _0x3dfb9e(_0x1a6158){_0x58d500['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1a6158['revisionName']?_0x1a6158['revisionNameInputView']['errorText']=m(_0x365ba3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x58d500['plugins']['get'](l)['saveRevision']({'name':_0x1a6158['revisionName']}),_0x4e1cd5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3dfb9e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4e1cd5['show']({'id':'revisionSave','title':m(_0x365ba3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x58d500['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4e1cd5['hide']()},{'label':m(_0x58d500['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d6df0){_0x1d6df0['bind']('isEnabled')['to'](_0x293ba0,'isReady',_0x293ba0,'isEnabled',_0x58d500,'isReadOnly',(_0x57ff1a,_0x45bc04,_0x1e81b3)=>_0x57ff1a&&_0x45bc04&&!_0x1e81b3);},'onExecute':()=>_0x3dfb9e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1dd8c4=this['editor'],_0x532904=_0x1dd8c4['locale'];this['_saveRevisionFormView']=new hs(_0x532904,_0x1dd8c4['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x59071d,_0x1cda80){super(_0x59071d),this['_model']=_0x1cda80,this['changeId']=_0x1cda80['id'];const _0x401279=this['bindTemplate'],_0x12afac=m(_0x59071d,_0x1cda80['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1cda80['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1cda80['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x401279['to']('type',_0x1fa879=>'ck-revision-change__'+_0x1fa879)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x12afac}]},{'text':'\x20'+_0x1cda80['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x217fff(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3e6f84){super(),this['id']=_0x3e6f84['id']||_0x5d66aa(),this['author']=_0x3e6f84['author'],this['type']=_0x3e6f84['type'],this['data']=_0x3e6f84['data']||{},this['rootName']=_0x3e6f84['rootName'],this['set']('createdAt',_0x3e6f84['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x308a92,_0x34c1e9){this['newRevisionId']=_0x308a92,this['oldRevisionId']=_0x34c1e9,this['changes']=new _0xcf6e93();}['_setChanges'](_0x3aca52){for(const _0x1d6db8 of _0x3aca52)this['changes']['add'](_0x1d6db8);}}const Y={'c':_0x32a864,'a':_0x4e3bae,'e':_0x1ac8e8,'r':_0x1e3674,'u':_0x28e93a};class d extends _0x1420a4{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4f378f,_0x1e2672,j];}constructor(_0x21adb8){super(_0x21adb8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0xfc6e13,_0x1ecb7f,_0x1c14a7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x102040=>{for(const _0x4cd044 of this['editor']['editing']['view']['document']['roots'])_0x1c14a7?_0x102040['removeClass']('ck-editor__editable__overlay',_0x4cd044):_0x102040['addClass']('ck-editor__editable__overlay',_0x4cd044);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1ea5d8=>null!==_0x1ea5d8),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4f7510,_0x454908,_0x2ebd0a)=>_0x4f7510&&_0x2ebd0a?_0x454908['changes']['getIndex'](_0x2ebd0a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e5a06,_0x322dda)=>_0x5e5a06?_0x322dda['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1e2672);}['init'](){const _0x5ff3eb=this['editor'],_0x25e3ca=new _t(_0x5ff3eb,{'direction':'backward'}),_0x1e6fca=new _t(_0x5ff3eb,{'direction':'forward'});(_0x5ff3eb['commands']['add']('showPreviousChange',_0x25e3ca),_0x5ff3eb['commands']['add']('showNextChange',_0x1e6fca),_0x5ff3eb['commands']['add']('restoreRevision',new pt(_0x5ff3eb)),this['on']('change:numberOfChanges',()=>{_0x25e3ca['refresh'](),_0x1e6fca['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5ff3eb['enableReadOnlyMode']('revision-viewer'),_0x5ff3eb['plugins']['has']('WidgetToolbarRepository'))&&_0x5ff3eb['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x9e0492){await this['loadRevisionData'](_0x9e0492);const _0x3069c4={};for(const _0x299faf in _0x9e0492['diffData']){if(_0x9e0492['diffData'][_0x299faf]['attachChange']&&!_0x9e0492['diffData'][_0x299faf]['attachChange']['isAttached'])continue;const _0x15497f=this['_removeRevisionMarkers'](JSON['parse'](_0x9e0492['diffData'][_0x299faf]['insertions'])),_0x1436f1=this['editor']['editing']['view']['document'],_0x449ebe=new _0x57bee1(_0x1436f1,_0x15497f['map'](_0x562dab=>this['_getViewObj'](_0x562dab)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3069c4[_0x299faf]=this['editor']['data']['processor']['toData'](_0x449ebe),this['editor']['data']['processor']['useFillerType']('default');}return _0x3069c4;}async['getRevisionRootsAttributes'](_0x27c2c1){await this['loadRevisionData'](_0x27c2c1);const _0x349ec0={};for(const _0x54e2f0 in _0x27c2c1['diffData'])_0x27c2c1['diffData'][_0x54e2f0]['attachChange']&&!_0x27c2c1['diffData'][_0x54e2f0]['attachChange']['isAttached']||(_0x349ec0[_0x54e2f0]=_0x27c2c1['diffData'][_0x54e2f0]['attributesAfter']||{});return _0x349ec0;}['_removeRevisionMarkers'](_0x42115a){return(_0x42115a=_0x42115a['filter'](_0x3734e7=>!_0x3734e7['name']||'revision-start'!==_0x3734e7['name']&&'revision-end'!==_0x3734e7['name']))['forEach'](_0x9af19a=>{'string'!=typeof _0x9af19a&&(_0x9af19a['children']=this['_removeRevisionMarkers'](_0x9af19a['children']),_0x9af19a['attributes']=_0x9af19a['attributes']['filter'](_0x266a15=>!_0x266a15[0x0]['startsWith']('data-revision-')));}),_0x42115a;}async['compare'](_0xe7b205,_0xf03f08,_0x3f10f5=!0x1){if(!this['isEnabled'])return;const _0xc69680=this['diff'],_0x173106=this['repository'],_0x3f9cd5='string'==typeof _0xe7b205?_0x173106['getRevision'](_0xe7b205):_0xe7b205,_0x3e31f2='string'==typeof _0xf03f08?_0x173106['getRevision'](_0xf03f08):_0xf03f08,_0x49198c=_0x3f9cd5['id'],_0x10170f=_0x3e31f2?_0x3e31f2['id']:null;if(!_0x3f10f5&&this['diff']&&this['diff']['newRevisionId']===_0x49198c&&this['diff']['oldRevisionId']===_0x10170f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x49198c,_0x10170f);const _0x325e0e=this['_getRevisionsRange'](_0x3f9cd5,_0x3e31f2,!0x0)['map'](_0x2b20c8=>this['loadRevisionData'](_0x2b20c8));return _0x325e0e['push'](new Promise(_0x2258bd=>{setTimeout(_0x2258bd,0x14);})),Promise['all'](_0x325e0e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x30096a=this['_getDiff'](_0x49198c,_0x10170f);for(const _0x5c01b5 of _0x30096a['changes'])this['_changeIdToChange']['set'](_0x5c01b5['id'],_0x5c01b5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc5a026=>{for(const _0x4dd314 of this['editor']['model']['document']['getRootNames']())_0xc5a026['detachRoot'](_0x4dd314);for(const _0xfffadf of Object['keys'](_0x30096a['model'])){const _0x2f17fd=_0xc5a026['addRoot'](_0xfffadf);for(const _0x1a50e7 of Object['keys'](_0x30096a['attributes'][_0xfffadf]))_0xc5a026['setAttribute'](_0x1a50e7,_0x30096a['attributes'][_0xfffadf][_0x1a50e7],_0x2f17fd);_0xc5a026['insert'](_0x30096a['model'][_0xfffadf],_0x2f17fd,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x30096a['changes'])),this['isReady']=!0x0;})['catch'](_0x34ca99=>{console['error'](_0x34ca99),this['_cleanUp'](),_0xc69680&&(this['diff']=_0xc69680),this['isReady']=!0x0;});}['addRevisionData'](_0x34db75,_0x4948b9){const _0x5b6288=this['repository']['createRevision'](_0x34db75);return _0x5b6288['on']('_update',(_0x1b4200,_0x2401cc,_0x3d300f)=>_0x4948b9(_0x2401cc,_0x3d300f,_0x5b6288)),this['repository']['addRevision'](_0x5b6288),_0x5b6288;}['loadRevisionData'](_0x489a33){if(!_0x489a33||_0x489a33['diffData'])return Promise['resolve']();{const _0x354487=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x354487,'revisionId':_0x489a33['id']})['then'](_0x8f2136=>{_0x489a33['_update']({'diffData':_0x8f2136['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1650a5=>{for(const _0x5d4666 of this['editor']['model']['document']['getRootNames']())_0x1650a5['detachRoot'](_0x5d4666);});}['_sortAndFilterDiffChanges'](_0x416b2c){const _0x398f87=[],_0x56d6d4=new Map();for(const _0x46cd16 of this['editor']['model']['document']['getRootNames']()){const _0x487403=this['editor']['editing']['view']['getDomRoot'](_0x46cd16);if(!_0x487403)continue;const _0x565aeb=_0x487403['getClientRects']()['item'](0x0);_0x565aeb&&(_0x398f87['push'](_0x46cd16),_0x56d6d4['set'](_0x46cd16,_0x565aeb));}return _0x398f87['sort']((_0x460ee3,_0x956682)=>{const _0x4f94c3=_0x56d6d4['get'](_0x460ee3),_0x4a2765=_0x56d6d4['get'](_0x956682);return _0x4f94c3['y']-_0x4a2765['y']||_0x4f94c3['x']-_0x4a2765['x'];}),(_0x416b2c=_0x416b2c['filter'](_0x432479=>_0x398f87['includes'](_0x432479['rootName'])))['sort']((_0x22546b,_0x4f5b19)=>_0x398f87['indexOf'](_0x22546b['rootName'])-_0x398f87['indexOf'](_0x4f5b19['rootName'])),_0x416b2c;}['_makeTape'](_0x3d0ac7){const _0x5efa76=Array['from'](_0x3d0ac7['markers'])['filter'](([_0x95878,_0x1c3b9d])=>_0x95878['startsWith']('revision:')&&!_0x1c3b9d['isCollapsed']),_0x13e22b=Array['from'](this['editor']['model']['createRangeIn'](_0x3d0ac7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5efa76['length'])for(const _0x248c47 of _0x13e22b){const [_0x439ad5,_0xa07233]=_0x5efa76[0x0],[,_0x911314,_0x3c36ec]=_0x439ad5['split'](':');if(_0xa07233['end']['isEqual'](_0x248c47['nextPosition'])&&_0x5efa76['shift'](),(_0x248c47['previousPosition']['isEqual'](_0xa07233['start'])||_0x248c47['previousPosition']['isAfter'](_0xa07233['start']))&&('insertion'==_0x911314?_0x248c47['isAdded']={'userId':_0x3c36ec}:'deletion'==_0x911314&&(_0x248c47['isRemoved']={'userId':_0x3c36ec})),0x0==_0x5efa76['length'])break;}return _0x13e22b;}['_refreshStartEndIndex'](_0x572ae9){const _0x31661c=new Map();for(let _0x2a9308=0x0;_0x2a9308<_0x572ae9['length'];_0x2a9308++)'text'===_0x572ae9[_0x2a9308]['type']?(_0x572ae9[_0x2a9308]['item']['startIndex']=_0x2a9308,_0x572ae9[_0x2a9308]['item']['endIndex']=_0x2a9308):('elementStart'===_0x572ae9[_0x2a9308]['type']?_0x572ae9[_0x2a9308]['item']['startIndex']=_0x2a9308:'elementEnd'===_0x572ae9[_0x2a9308]['type']&&(_0x572ae9[_0x2a9308]['item']['endIndex']=_0x2a9308),_0x31661c['set'](_0x572ae9[_0x2a9308]['id'],_0x2a9308));for(const _0x2ffc68 of _0x31661c['values']())'elementStart'===_0x572ae9[_0x2ffc68]['type']?_0x572ae9[_0x2ffc68]['item']['endIndex']=_0x31661c['get'](_0x572ae9[_0x2ffc68]['pairId']):'elementEnd'===_0x572ae9[_0x2ffc68]['type']&&(_0x572ae9[_0x2ffc68]['item']['startIndex']=_0x31661c['get'](_0x572ae9[_0x2ffc68]['pairId']));}['_processTape'](_0xdf3323){for(let _0x358406=0x0;_0x358406<_0xdf3323['length'];_0x358406++){if('elementStart'===_0xdf3323[_0x358406]['type'])_0xdf3323[_0x358406]['item']['startIndex']=_0x358406;else{if('elementEnd'===_0xdf3323[_0x358406]['type']){_0xdf3323[_0x358406]['item']['endIndex']=_0x358406;const _0x25adb0=_0xdf3323[_0x358406]['item']['startIndex'];_0xdf3323[_0x25adb0]['pairId']=_0xdf3323[_0x358406]['id'],_0xdf3323[_0x358406]['pairId']=_0xdf3323[_0x25adb0]['id'];}else _0xdf3323[_0x358406]['item']['startIndex']=_0x358406,_0xdf3323[_0x358406]['item']['endIndex']=_0x358406,_0xdf3323[_0x358406]['pairId']=null;}_0xdf3323[_0x358406]['markersStart']||(_0xdf3323[_0x358406]['markersStart']=[],_0xdf3323[_0x358406]['markersEnd']=[]);}}['_markInsertions'](_0x4f7fed,_0x47be4c){const _0x319e6d=_0x4f7fed['filter'](_0x2e2a72=>!_0x2e2a72['isAdded']);for(let _0x537395=0x0;_0x537395<_0x47be4c['length'];_0x537395++)_0x47be4c[_0x537395]['isAdded']&&(_0x319e6d[_0x537395]['isAdded']=_0x47be4c[_0x537395]['isAdded']);}['_makeModelFromViewString'](_0x35d0ab){const _0x29dcb5=JSON['parse'](_0x35d0ab),_0x25265e=this['editor']['editing']['view']['document'],_0x38ca25=new _0x57bee1(_0x25265e,_0x29dcb5['map'](_0x1cc680=>this['_getViewObj'](_0x1cc680)));return this['editor']['data']['toModel'](_0x38ca25);}['_getViewObj'](_0x30659a){const _0x642aac=this['editor']['editing']['view']['document'];if('string'==typeof _0x30659a)return new _0xe73c6d(_0x642aac,_0x30659a);{const _0x338cba=_0x30659a['children']['map'](_0x47cf31=>this['_getViewObj'](_0x47cf31));return new(Y[_0x30659a['type']]||_0x5e2f0f)(_0x642aac,_0x30659a['name'],_0x30659a['attributes'],_0x338cba);}}['_getDiff'](_0x3d1e90,_0x255f23=null){const _0x44b714=this['repository']['getRevision'](_0x3d1e90),_0x4c5a38=_0x255f23?this['repository']['getRevision'](_0x255f23):null,_0x155924=this['_getRevisionsRange'](_0x44b714,_0x4c5a38),_0x478d81=_0x155924[_0x155924['length']-0x1],_0x17d0a0=new Map(),_0x666382={'model':{},'attributes':{},'changes':[]},_0x3e8c40=new Set(),_0xd3bb19=new Map();for(let _0x44d855=_0x155924['length']-0x1;_0x44d855>=0x0;_0x44d855--){const _0x3909ae=_0x155924[_0x44d855];for(const _0x50aff9 of Object['keys'](_0x3909ae['diffData']))if(_0x3909ae['diffData'][_0x50aff9]['attachChange']){const _0x469ce9=_0x3909ae['diffData'][_0x50aff9]['attachChange'];_0x469ce9['isAttached']?(_0x3e8c40['add'](_0x50aff9),_0xd3bb19['has'](_0x50aff9)&&_0xd3bb19['get'](_0x50aff9)['userId']==_0x469ce9['userId']?_0xd3bb19['delete'](_0x50aff9):_0xd3bb19['set'](_0x50aff9,_0x469ce9)):_0xd3bb19['has'](_0x50aff9)?(_0x3e8c40['delete'](_0x50aff9),_0xd3bb19['delete'](_0x50aff9)):(_0x3e8c40['add'](_0x50aff9),_0xd3bb19['set'](_0x50aff9,_0x469ce9));}else _0x3e8c40['add'](_0x50aff9);}for(const _0x4a751b of _0x3e8c40){const _0x4fd243=_0xd3bb19['has'](_0x4a751b)&&!_0xd3bb19['get'](_0x4a751b)['isAttached'];let _0x36f777=_0x4fd243?_0x155924['length']-0x1:0x0;const _0x26b66c=_0x4fd243?-0x1:0x1;for(;_0x155924[_0x36f777];){const _0x2188f2=_0x155924[_0x36f777];if(_0x2188f2['diffData'][_0x4a751b]){const _0x345967=_0x4fd243?_0x2188f2['diffData'][_0x4a751b]['attributesBefore']:_0x2188f2['diffData'][_0x4a751b]['attributesAfter'];_0x666382['attributes'][_0x4a751b]=_0x345967?_0x77b43c(_0x345967):{};break;}_0x36f777+=_0x26b66c;}}for(const _0x452f2f of _0x155924){_0x452f2f['model']={};for(const _0x3ae91f of _0x452f2f['authors'])_0x17d0a0['set'](_0x3ae91f['id'],_0x3ae91f);for(const _0x21f020 of _0x3e8c40){const _0x18cca1=_0x452f2f['diffData'][_0x21f020]?_0x452f2f['diffData'][_0x21f020]['insertions']:'[]',_0x1f4c74=_0x452f2f['diffData'][_0x21f020]?_0x452f2f['diffData'][_0x21f020]['deletions']:'[]';_0x452f2f['model'][_0x21f020]={'insertions':this['_makeModelFromViewString'](_0x18cca1),'deletions':this['_makeModelFromViewString'](_0x1f4c74)};}}for(const _0x82accc of _0x3e8c40){let _0x2e40ce=null,_0x56fb37=0x0;const _0x43780d=new Map(Array['from'](_0x44b714['model'][_0x82accc]['insertions']['markers'])['filter'](([_0x1bd17f])=>!_0x1bd17f['startsWith']('revision:')));let _0x1531c2=0x0;for(const _0x1858f0 of _0x155924){const _0x53e116=this['_makeTape'](_0x1858f0['model'][_0x82accc]['insertions']);_0x1858f0==_0x44b714?(_0x2e40ce=_0x53e116,_0x56fb37=_0x2e40ce['length'],_0x2e40ce['forEach'](_0x18bece=>{_0x18bece['id']=_0x1531c2++;}),this['_processTape'](_0x2e40ce)):this['_markInsertions'](_0x2e40ce,_0x53e116);const _0x3ee358=_0x2e40ce['filter'](_0x546252=>!_0x546252['isAdded'])['map'](_0x3aab3d=>_0x3aab3d['id']);let _0x340917=0x0;const _0x113f0a=this['_makeTape'](_0x1858f0['model'][_0x82accc]['deletions']);_0x113f0a['forEach'](_0x57d7ae=>{_0x57d7ae['isRemoved']?_0x57d7ae['id']=_0x56fb37++:_0x57d7ae['id']=_0x3ee358[_0x340917++];}),this['_processTape'](_0x113f0a),this['_setDistance'](_0x2e40ce,'isAdded'),this['_setDistance'](_0x113f0a,'isRemoved'),_0x1858f0==_0x44b714&&this['_markMarkers'](_0x2e40ce,_0x43780d),_0x2e40ce=this['_joinTapes'](_0x2e40ce,_0x113f0a),this['_refreshStartEndIndex'](_0x2e40ce),this['_setDistance'](_0x2e40ce,'isRemoved');}_0x2e40ce=_0x2e40ce['filter'](_0x21ffef=>!(_0x21ffef['isAdded']&&_0x21ffef['isRemoved']));const _0xb9c6e7=new Map(_0x478d81['model'][_0x82accc]['deletions']['markers']),_0x5ebf6a=new Set(_0x43780d['keys']());for(const _0x2a1c6c of _0xb9c6e7['keys']())_0x5ebf6a['delete'](_0x2a1c6c);this['_markSuggestions'](_0x2e40ce,_0x5ebf6a),this['_fixObsoleteTags'](_0x2e40ce),_0x2e40ce=this['_removeMissingPairs'](_0x2e40ce),_0x2e40ce=this['_markMismatchedRemovedTags'](_0x2e40ce),_0x2e40ce=this['_removeUnsupportedChanges'](_0x2e40ce);const {root:_0x521579,changes:_0x1e1622}=this['_makeModelFromTape'](_0x2e40ce,_0x17d0a0,_0x82accc);_0x666382['model'][_0x82accc]=_0x521579;const _0x11a877=_0xd3bb19['get'](_0x82accc);if(_0x11a877){const _0x5be509=_0x17d0a0['get'](_0x11a877['userId']),_0x1c67a9=new r({'author':_0x5be509,'type':_0x11a877['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x82accc});_0x1e1622['unshift'](_0x1c67a9),_0x666382['attributes'][_0x82accc]['revisionHistoryAttachChange']=_0x1c67a9['id'];}_0x666382['changes']=_0x666382['changes']['concat'](_0x1e1622);}return _0x666382;}['_markMarkers'](_0x61a971,_0x4c93b4){for(let _0xaa1b42=0x0;_0xaa1b42<_0x61a971['length'];_0xaa1b42++)for(const [_0x20eba4,_0x3c3af5]of _0x4c93b4)_0x3c3af5['start']['isEqual'](_0x61a971[_0xaa1b42]['previousPosition'])&&_0x61a971[_0xaa1b42]['markersStart']['push'](_0x20eba4),_0x3c3af5['end']['isEqual'](_0x61a971[_0xaa1b42]['nextPosition'])&&_0x61a971[_0xaa1b42]['markersEnd']['push'](_0x20eba4);}['_joinTapes'](_0x4f92e5,_0x39ce36){let _0x29c550=[],_0x5ebff4=0x0,_0x1a56b2=0x0;for(;_0x5ebff4<_0x4f92e5['length']||_0x1a56b2<_0x39ce36['length'];){const _0x2b6ff5=_0x4f92e5[_0x5ebff4]||{},_0x31c622=_0x39ce36[_0x1a56b2]||{};if(_0x2b6ff5['id']==_0x31c622['id'])_0x5ebff4++,_0x1a56b2++,_0x29c550['push'](_0x2b6ff5);else{if(_0x31c622['isRemoved']&&_0x2b6ff5['isAdded']){const {commonTape:_0x4d2d96,iEnd:_0x2b9d8f,jEnd:_0x20bf94}=this['_threeWayMerge'](_0x4f92e5,_0x5ebff4,_0x39ce36,_0x1a56b2);_0x29c550=_0x29c550['concat'](_0x4d2d96),_0x5ebff4=_0x2b9d8f,_0x1a56b2=_0x20bf94;}else _0x31c622['isRemoved']?(_0x1a56b2++,_0x29c550['push'](_0x31c622)):(_0x5ebff4++,_0x29c550['push'](_0x2b6ff5));}}return _0x29c550;}['_markSuggestions'](_0x2d06d4,_0x28ca36){const _0x1cb48e=[];for(let _0x555e1f=0x0;_0x555e1f<_0x2d06d4['length'];_0x555e1f++){for(let _0xdff107=0x0;_0xdff107<_0x2d06d4[_0x555e1f]['markersStart']['length'];_0xdff107++){const _0x4f10c4=_0x2d06d4[_0x555e1f]['markersStart'][_0xdff107];if(!_0x28ca36['has'](_0x4f10c4))continue;const {group:_0x47f239,type:_0x44239d,authorId:_0x1c0fd9}=_0x418e6c(_0x4f10c4);'revision-suggestion'!=_0x47f239||'insertion'!=_0x44239d&&'deletion'!=_0x44239d||(_0x1cb48e['unshift']({'type':_0x44239d,'name':_0x4f10c4,'userId':_0x1c0fd9}),_0x2d06d4[_0x555e1f]['markersStart']['splice'](_0xdff107,0x1),_0xdff107--);}_0x5058d1(_0x2d06d4[_0x555e1f]);for(let _0x65ff9a=0x0;_0x65ff9a<_0x2d06d4[_0x555e1f]['markersEnd']['length'];_0x65ff9a++){const _0x2457b0=_0x2d06d4[_0x555e1f]['markersEnd'][_0x65ff9a];if(!_0x28ca36['has'](_0x2457b0))continue;const {group:_0x560c1c,type:_0x3d81b7}=_0x418e6c(_0x2457b0);if('revision-suggestion'!=_0x560c1c||'insertion'!=_0x3d81b7&&'deletion'!=_0x3d81b7)continue;_0x2d06d4[_0x555e1f]['markersEnd']['splice'](_0x65ff9a,0x1),_0x65ff9a--;const _0x9fadee=_0x1cb48e['findIndex'](_0x101613=>_0x101613['name']==_0x2457b0);_0x9fadee>-0x1&&_0x1cb48e['splice'](_0x9fadee,0x1);}}function _0x418e6c(_0xac3111){const _0x20ac6a=_0xac3111['split'](':');return{'group':_0x20ac6a[0x0],'type':_0x20ac6a[0x1],'subType':_0x20ac6a['length']>=0x5?_0x20ac6a[0x2]:null,'id':_0x20ac6a['length']<0x5?_0x20ac6a[0x2]:_0x20ac6a[0x3],'authorId':_0x20ac6a['length']<0x5?_0x20ac6a[0x3]:_0x20ac6a[0x4],'markerCount':0x6==_0x20ac6a['length']?_0x20ac6a[0x5]:null};}function _0x5058d1(_0x2194b8){for(let _0x521df5=0x0;_0x521df5<_0x1cb48e['length'];_0x521df5++){if(_0x2194b8['isAdded']&&'insertion'==_0x1cb48e[_0x521df5]['type'])return _0x2194b8['isAddSuggestion']=_0x1cb48e[_0x521df5],void delete _0x2194b8['isAdded'];if(!_0x2194b8['isAdded']&&!_0x2194b8['isRemoved']&&'deletion'==_0x1cb48e[_0x521df5]['type'])return void(_0x2194b8['isRemoveSuggestion']=_0x1cb48e[_0x521df5]);}}}['_setDistance'](_0x416d86,_0x16261b){let _0x552664=0x0,_0x45d1ce=!0x1;const _0x46da5d=new Map();for(const _0x323596 of _0x416d86)_0x323596[_0x16261b]?_0x45d1ce&&(_0x552664++,_0x45d1ce=!0x1):(_0x552664++,_0x45d1ce=!0x0),_0x46da5d['set'](_0x323596['id'],_0x552664);for(let _0x397e0f=0x0;_0x397e0f<_0x416d86['length'];_0x397e0f++){if('isRemoved'==_0x16261b&&_0x416d86[_0x397e0f]['isAdded']||'isAdded'==_0x16261b&&_0x416d86[_0x397e0f]['isRemoved'])continue;if('text'==_0x416d86[_0x397e0f]['type']){_0x416d86[_0x397e0f]['distance']=0x0;continue;}const _0x503967=_0x46da5d['get'](_0x416d86[_0x397e0f]['pairId']),_0xd12b75=_0x46da5d['get'](_0x416d86[_0x397e0f]['id']);_0x416d86[_0x397e0f]['distance']=_0x503967-_0xd12b75;}}['_getRevisionsRange'](_0x42793e,_0x52b263,_0x5ea001=!0x1){const _0xd043d9=[];let _0x73ee47=this['repository']['getIndex'](_0x42793e),_0x4e3e0e=this['repository']['getIndex'](_0x52b263);for(-0x1==_0x4e3e0e&&(_0x4e3e0e=this['repository']['_revisions']['length'],_0x5ea001=!0x1);_0x73ee47<_0x4e3e0e;)_0xd043d9['push'](this['repository']['getRevision'](_0x73ee47)),_0x73ee47++;return _0x5ea001&&_0xd043d9['push'](this['repository']['getRevision'](_0x73ee47)),_0xd043d9;}['_threeWayMerge'](_0x68e67b,_0x380b38,_0x5b0314,_0x5ab4eb){const _0x1acf6b=this['editor']['model']['schema'];let _0xaf597d=_0x380b38;for(;_0x68e67b[_0xaf597d]&&_0x68e67b[_0xaf597d]['isAdded'];)_0xaf597d++;let _0x3996d7=_0x5ab4eb;for(;_0x5b0314[_0x3996d7]&&_0x5b0314[_0x3996d7]['isRemoved'];)_0x3996d7++;_0x3e0739(_0x68e67b,_0x380b38,_0xaf597d),_0x3e0739(_0x5b0314,_0x5ab4eb,_0x3996d7);const _0x45e3eb=_0x5b0314['slice'](_0x5ab4eb,_0x3996d7)['concat'](_0x68e67b['slice'](_0x380b38,_0xaf597d));return _0x45e3eb['sort']((_0x1d56fd,_0x222c0b)=>_0x1d56fd['side']!=_0x222c0b['side']?_0x1d56fd['side']-_0x222c0b['side']:_0x1d56fd['level']!=_0x222c0b['level']?_0x1d56fd['level']-_0x222c0b['level']:_0x1d56fd['distance']!=_0x222c0b['distance']?_0x222c0b['distance']-_0x1d56fd['distance']:!!_0x1d56fd['isAdded']!=!!_0x222c0b['isAdded']?-0x1==_0x1d56fd['side']||0x0==_0x1d56fd['side']?_0x1d56fd['isAdded']?-0x1:0x1:_0x1d56fd['isAdded']?0x1:-0x1:_0x1d56fd['index']-_0x222c0b['index']),{'commonTape':_0x45e3eb,'iEnd':_0xaf597d,'jEnd':_0x3996d7};function _0x3e0739(_0x5cbea0,_0x5f5d0a,_0x492af6){let _0x316f06=-0x1,_0x3dd429=Number['POSITIVE_INFINITY'],_0x55179a=!0x0;for(let _0x40db4f=_0x5f5d0a;_0x40db4f<_0x492af6;_0x40db4f++)if(_0x1acf6b['isInline'](_0x5cbea0[_0x40db4f]['item'])||(_0x55179a=!0x1),_0x5cbea0[_0x40db4f]['item']['startIndex']<_0x5f5d0a&&(_0x316f06=_0x40db4f),_0x5cbea0[_0x40db4f]['item']['endIndex']>=_0x492af6){_0x3dd429=_0x40db4f;break;}_0x55179a&&(_0x316f06=_0x492af6-0x1);for(let _0x19e3d9=_0x5f5d0a;_0x19e3d9<_0x492af6;_0x19e3d9++)_0x5cbea0[_0x19e3d9]['side']=_0x19e3d9<=_0x316f06?-0x1:_0x19e3d9<_0x3dd429?0x0:0x1,_0x5cbea0[_0x19e3d9]['index']=_0x19e3d9;let _0x11e064=0x0;for(let _0x4a7c51=_0x5f5d0a;_0x4a7c51<=_0x316f06;_0x4a7c51++)0x0==_0x5cbea0[_0x4a7c51]['distance']?_0x5cbea0[_0x4a7c51]['level']=_0x11e064:(_0x11e064++,_0x5cbea0[_0x4a7c51]['level']=_0x11e064,_0x11e064++);for(let _0x1e2aaa=_0x5f5d0a;_0x1e2aaa<_0x492af6;_0x1e2aaa++)0x0==_0x5cbea0[_0x1e2aaa]['side']&&(_0x5cbea0[_0x1e2aaa]['level']=_0x11e064);_0x11e064=0x0;for(let _0x4135a1=_0x492af6-0x1;_0x4135a1>=_0x3dd429;_0x4135a1--)0x0==_0x5cbea0[_0x4135a1]['distance']?_0x5cbea0[_0x4135a1]['level']=_0x11e064:(_0x11e064--,_0x5cbea0[_0x4135a1]['level']=_0x11e064,_0x11e064--);}}['_fixObsoleteTags'](_0x482175){const _0x3f4958=new Map(),_0x24a8ec=this['editor']['model']['schema'];for(let _0x3d2d62=0x1;_0x3d2d62<_0x482175['length'];_0x3d2d62++){let _0x297170,_0x112d73,_0xb2a217;const _0x427e8d=_0x482175[_0x3d2d62],_0x2f12e5=_0x482175[_0x3d2d62-0x1];if('text'==_0x427e8d['type'])continue;if(_0x427e8d['type']!=_0x2f12e5['type'])continue;if(!_0x24a8ec['isBlock'](_0x2f12e5['item'])||_0x24a8ec['isLimit'](_0x2f12e5['item']))continue;if(!_0x24a8ec['isBlock'](_0x427e8d['item'])||_0x24a8ec['isLimit'](_0x427e8d['item']))continue;if((_0x482175[_0x3d2d62]['isAdded']||_0x482175[_0x3d2d62]['isAddSuggestion'])&&_0x482175[_0x3d2d62-0x1]['isRemoved'])_0x297170=_0x482175[_0x3d2d62],_0x112d73=_0x482175[_0x3d2d62-0x1],_0xb2a217=_0x3d2d62-0x1;else{if(!_0x482175[_0x3d2d62]['isRemoved']||!_0x482175[_0x3d2d62-0x1]['isAdded']&&!_0x482175[_0x3d2d62-0x1]['isAddSuggestion'])continue;_0x297170=_0x482175[_0x3d2d62-0x1],_0x112d73=_0x482175[_0x3d2d62],_0xb2a217=_0x3d2d62;}const _0x3640d3=_0x297170['level']==_0x112d73['level'],_0x5f17de=Math['abs'](_0x297170['level'])<Math['abs'](_0x112d73['level'])&&0x0==_0x112d73['distance'];(_0x3640d3||_0x5f17de)&&(_0x3f4958['set'](_0x112d73['id'],_0x297170['id']),_0x482175['splice'](_0xb2a217,0x1),_0x3d2d62--,_0x297170['isAdded']=!0x1);}for(let _0x44da32=0x0;_0x44da32<_0x482175['length'];_0x44da32++)_0x3f4958['has'](_0x482175[_0x44da32]['pairId'])&&(_0x482175[_0x44da32]['pairId']=_0x3f4958['get'](_0x482175[_0x44da32]['pairId']));}['_removeMissingPairs'](_0x259891){const _0x5f260a=new Set(_0x259891['map'](_0x5c60b4=>_0x5c60b4['id']));for(let _0x49d92e=0x0;_0x49d92e<_0x259891['length'];_0x49d92e++)_0x5f260a['has'](_0x259891[_0x49d92e]['pairId'])||0x0==_0x259891[_0x49d92e]['distance']||(_0x259891[_0x49d92e]['isIncorrect']=!0x0);return _0x259891['filter'](_0x50e555=>!_0x50e555['isIncorrect']);}['_markMismatchedRemovedTags'](_0x127b52){const _0xa5fc78=new Set();for(let _0x511fcf=0x0;_0x511fcf<_0x127b52['length'];_0x511fcf++){if(_0xa5fc78['has'](_0x127b52[_0x511fcf]['id'])&&_0x127b52[_0x511fcf]['isRemoved']&&(_0x127b52[_0x511fcf]['isIncorrect']=!0x0),_0x127b52[_0x511fcf]['isIncorrect'])continue;if(0x0==_0x127b52[_0x511fcf]['distance'])continue;if('elementStart'!=_0x127b52[_0x511fcf]['type'])continue;if(null==_0x127b52[_0x511fcf]['pairId'])continue;let _0x3ebcc2=_0x511fcf+0x1,_0x4ec936=0x0;for(;_0x127b52[_0x3ebcc2]['id']!=_0x127b52[_0x511fcf]['pairId'];)'elementStart'==_0x127b52[_0x3ebcc2]['type']?_0x4ec936++:'elementEnd'==_0x127b52[_0x3ebcc2]['type']&&_0x4ec936--,_0x3ebcc2++;if(0x0!=_0x4ec936){if(_0x127b52[_0x511fcf]['isRemoved'])_0x127b52[_0x511fcf]['isIncorrect']=!0x0;else{for(;_0x3ebcc2!=_0x511fcf;)_0x127b52[_0x3ebcc2]['isRemoved']&&0x0!=_0x127b52[_0x3ebcc2]['distance']&&(_0x127b52[_0x3ebcc2]['isIncorrect']=!0x0,_0xa5fc78['add'](_0x127b52[_0x3ebcc2]['pairId'])),_0x3ebcc2--;}}}return _0x127b52['filter'](_0x57b902=>!_0x57b902['isIncorrect']);}['_removeUnsupportedChanges'](_0x41cd9f){const _0x3dd921=this['editor']['model']['schema'];for(let _0x49ec61=0x0;_0x49ec61<_0x41cd9f['length'];_0x49ec61++){if(!(_0x41cd9f[_0x49ec61]['isAdded']||_0x41cd9f[_0x49ec61]['isAddSuggestion']||_0x41cd9f[_0x49ec61]['isRemoved']||_0x41cd9f[_0x49ec61]['isRemoveSuggestion']))continue;if(0x0==_0x41cd9f[_0x49ec61]['distance'])continue;const _0x2380f3=_0x41cd9f[_0x49ec61]['item'];_0x3dd921['isBlock'](_0x2380f3)||_0x3dd921['isLimit'](_0x2380f3)||(_0x41cd9f[_0x49ec61]['isAdded']&&delete _0x41cd9f[_0x49ec61]['isAdded'],_0x41cd9f[_0x49ec61]['isAddSuggestion']&&delete _0x41cd9f[_0x49ec61]['isAddSuggestion'],_0x41cd9f[_0x49ec61]['isRemoveSuggestion']&&delete _0x41cd9f[_0x49ec61]['isRemoveSuggestion'],_0x41cd9f[_0x49ec61]['isRemoved']&&(_0x41cd9f[_0x49ec61]['isIncorrect']=!0x0));}return _0x41cd9f['filter'](_0x4f3370=>!_0x4f3370['isIncorrect']);}['_makeModelFromTape'](_0x4a76d3,_0x4812ce,_0x42bdb6){const _0x402507=new mt(),_0x1871d3=[],_0x188f7b=new Map(),_0x56afb3=this['editor']['model'],_0x463ab2=_0x56afb3['schema'],_0x4c2644=[_0x402507],_0x307cd1={},_0x3ef066={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xdaf75=null;const _0x41afad=[0x0];for(let _0x52f542=0x0;_0x52f542<_0x4a76d3['length'];_0x52f542++)if('elementStart'===_0x4a76d3[_0x52f542]['type']){_0x4a76d3[_0x52f542]['previousPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad);const _0x197021=new ft(_0x4a76d3[_0x52f542]['item']['name'],_0x4a76d3[_0x52f542]['item']['getAttributes']());_0x4c2644[0x0]['_appendChild'](_0x197021),_0x41afad['push'](0x0),_0x4c2644['unshift'](_0x197021),_0x4a76d3[_0x52f542]['nextPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad);}else'elementEnd'===_0x4a76d3[_0x52f542]['type']?(_0x4c2644['shift'](),_0x4a76d3[_0x52f542]['previousPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad),_0x41afad['pop'](),_0x41afad[_0x41afad['length']-0x1]++,_0x4a76d3[_0x52f542]['nextPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad)):(_0x4a76d3[_0x52f542]['previousPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad),_0xdaf75?_0xdaf75['_data']+=_0x4a76d3[_0x52f542]['item']['data']:_0xdaf75=new wt(_0x4a76d3[_0x52f542]['item']['data'],_0x4a76d3[_0x52f542]['item']['getAttributes']()),_0x4a76d3[_0x52f542+0x1]&&'text'===_0x4a76d3[_0x52f542+0x1]['type']&&_0x47bc24(_0xdaf75,_0x4a76d3[_0x52f542+0x1]['item'])||(_0x4c2644[0x0]['_appendChild'](_0xdaf75),_0xdaf75=null),_0x41afad[_0x41afad['length']-0x1]+=_0x4a76d3[_0x52f542]['item']['offsetSize'],_0x4a76d3[_0x52f542]['nextPosition']=_0x56afb3['createPositionFromPath'](_0x402507,_0x41afad));for(let _0x3fd02b=0x0;_0x3fd02b<_0x4a76d3['length'];_0x3fd02b++){const _0x3cde4e=_0x4a76d3[_0x3fd02b]['previousPosition'],_0x2d0c92=_0x4a76d3[_0x3fd02b]['nextPosition'];for(const _0x17c234 of _0x4a76d3[_0x3fd02b]['markersStart'])_0x188f7b['set'](_0x17c234,{'start':_0x3cde4e,'end':null});_0xa53845('isRemoveSuggestion',_0x3fd02b,_0x3cde4e,_0x2d0c92),_0xa53845('isAddSuggestion',_0x3fd02b,_0x3cde4e,_0x2d0c92),_0xa53845('isRemoved',_0x3fd02b,_0x3cde4e,_0x2d0c92),_0xa53845('isAdded',_0x3fd02b,_0x3cde4e,_0x2d0c92);for(const _0x4743d2 of _0x4a76d3[_0x3fd02b]['markersEnd']){_0x188f7b['get'](_0x4743d2)['end']=_0x2d0c92;}}for(const [_0x4e800e,_0x4c8bea]of _0x188f7b){const _0x4cb81a=this['editor']['model']['createRange'](_0x4c8bea['start'],_0x4c8bea['end']);_0x402507['markers']['set'](_0x4e800e,_0x4cb81a);}return _0x1871d3['sort']((_0x13c876,_0x5ee4ce)=>{const _0x4ac0fb=_0x402507['markers']['get']('revision:'+_0x13c876['id']),_0x1a7b4b=_0x402507['markers']['get']('revision:'+_0x5ee4ce['id']);return _0x4ac0fb['start']['isBefore'](_0x1a7b4b['start'])?-0x1:_0x4ac0fb['start']['isAfter'](_0x1a7b4b['start'])?0x1:_0x4ac0fb['end']['isBefore'](_0x1a7b4b['end'])?-0x1:_0x4ac0fb['end']['isAfter'](_0x1a7b4b['end'])?0x1:'add'===_0x13c876['type']?-0x1:0x1;}),{'root':_0x402507,'changes':_0x1871d3};function _0xa53845(_0x901214,_0x35b3eb,_0x30898c,_0x308072){const _0x248be3=!!_0x4a76d3[_0x35b3eb][_0x901214],_0xe29d1e=_0x248be3?_0x4a76d3[_0x35b3eb][_0x901214]['userId']:null,_0x3a5769=_0x35b3eb===_0x4a76d3['length']-0x1,_0x26fa3a=_0x3ef066[_0x901214][0x0],_0x543171=_0x463ab2['isObject'](_0x4a76d3[_0x35b3eb]['item']);!_0x307cd1[_0x901214]&&_0x248be3?_0x307cd1[_0x901214]={'start':_0x30898c,'tapeItem':_0x4a76d3[_0x35b3eb],'userId':_0xe29d1e,'type':_0x901214}:_0x307cd1[_0x901214]&&!_0x248be3?(_0x307cd1[_0x901214]['end']=_0x30898c,_0x2c0392(_0x307cd1[_0x901214]),_0x307cd1[_0x901214]=null):_0x307cd1[_0x901214]&&_0x248be3&&_0x307cd1[_0x901214]['userId']!==_0xe29d1e&&(_0x307cd1[_0x901214]['end']=_0x30898c,_0x26fa3a&&_0x26fa3a['userId']===_0x307cd1[_0x901214]['userId']||_0x2c0392(_0x307cd1[_0x901214]),_0x307cd1[_0x901214]={'start':_0x30898c,'tapeItem':_0x4a76d3[_0x35b3eb],'userId':_0xe29d1e,'type':_0x901214}),_0x307cd1[_0x901214]&&_0x543171&&('elementStart'!==_0x4a76d3[_0x35b3eb]['type']||_0x26fa3a&&_0x26fa3a['userId']===_0xe29d1e||_0x3ef066[_0x901214]['unshift']({'userId':_0xe29d1e,'object':_0x4a76d3[_0x35b3eb]['item'],'change':_0x307cd1[_0x901214]}),'elementEnd'===_0x4a76d3[_0x35b3eb]['type']&&_0x26fa3a&&_0x26fa3a['object']===_0x4a76d3[_0x35b3eb]['item']&&(_0x3ef066[_0x901214]['shift'](),_0x307cd1[_0x901214]=_0x26fa3a['change'])),_0x307cd1[_0x901214]&&_0x3a5769&&(_0x307cd1[_0x901214]['end']=_0x308072,_0x2c0392(_0x307cd1[_0x901214]),_0x307cd1[_0x901214]=null);}function _0x2c0392({start:_0x526ad1,end:_0x27fcb9,tapeItem:_0x5254b9,userId:_0x2d5fae,type:_0xb7dde4}){const _0x293622=_0x5254b9['item'],_0x29a622=_0x56afb3['schema']['isBlock'](_0x293622)&&!_0x56afb3['schema']['isLimit'](_0x293622),_0x441e25=_0x526ad1['nodeAfter']==_0x27fcb9['parent']&&_0x27fcb9['isAtStart'];if(_0x29a622&&_0x441e25)return;const _0x2052e1=_0x56afb3['createRange'](_0x526ad1,_0x27fcb9),_0x2ba0ca=_0x4812ce['get'](_0x2d5fae),_0x32c47a=new r({'author':_0x2ba0ca,'type':'isAdded'==_0xb7dde4||'isAddSuggestion'==_0xb7dde4?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xb7dde4||'isRemoveSuggestion'==_0xb7dde4},'createdAt':new Date(),'rootName':_0x42bdb6});_0x1871d3['push'](_0x32c47a),_0x402507['markers']['set']('revision:'+_0x32c47a['id'],_0x2052e1);}function _0x47bc24(_0x23373b,_0x234019){const _0xbe187c=_0x23373b['getAttributes'](),_0x2eb3b4=_0x234019['getAttributes']();for(const _0xa2cfda of _0xbe187c){if(_0xa2cfda[0x1]!==_0x234019['getAttribute'](_0xa2cfda[0x0]))return!0x1;_0x2eb3b4['next']();}return _0x2eb3b4['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x57370c=>{const _0x2b0ddc=_0x57370c['markerName']['split'](':')[0x1],_0x16c7de=this['_getChangeFromId'](_0x2b0ddc);if(!_0x16c7de)return null;const _0x3c7622='add'==_0x16c7de['type']?'insertion':'deletion',_0x39d5e7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c7622];return _0x16c7de['data']['isSuggestion']&&_0x39d5e7['push']('ck-suggestion-marker-'+_0x3c7622+'-new'),this['activeChange']==_0x16c7de&&_0x39d5e7['push']('ck-suggestion-marker--active'),{'classes':_0x39d5e7,'attributes':{'data-change-id':_0x2b0ddc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x534b5f=>{_0x534b5f['on']('element:pre',(_0x221f0f,_0x1a480a,_0x107fe6)=>{const _0xe2353f=_0x1a480a['viewItem']['getChild'](0x0);if(!_0xe2353f||!_0xe2353f['is']('element','code'))return;if(!_0x107fe6['consumable']['consume'](_0xe2353f,{'attributes':['vid_start','vid_end']}))return;const _0x2e792b=_0x1a480a['modelRange']['start']['nodeAfter'];_0x107fe6['writer']['setAttribute']('vid_start',_0xe2353f['getAttribute']('vid_start'),_0x2e792b),_0x107fe6['writer']['setAttribute']('vid_end',_0xe2353f['getAttribute']('vid_end'),_0x2e792b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x229bf9=>{_0x229bf9['on']('element',(_0x547f3f,_0x46009c,_0x4fca2d)=>{if(!_0x4fca2d['consumable']['consume'](_0x46009c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x46009c['modelRange']['isCollapsed'])return;const _0x5d60f5=_0x46009c['modelRange']['start']['nodeAfter'];_0x5d60f5['hasAttribute']('vid_start')||_0x5d60f5['hasAttribute']('vid')||(_0x4fca2d['writer']['setAttribute']('vid_start',_0x46009c['viewItem']['getAttribute']('vid_start'),_0x5d60f5),_0x4fca2d['writer']['setAttribute']('vid_end',_0x46009c['viewItem']['getAttribute']('vid_end'),_0x5d60f5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x143db0=>_0x143db0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3b3410,[,_0x456863])=>{['vid_start','vid_end','vid']['includes'](_0x456863)&&(_0x3b3410['return']=!0x0,_0x3b3410['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x407600=>{_0x407600['on']('attribute:vid',(_0x5b52fe,_0x90c0a8,_0xc6435)=>{if('\x20'!=_0x90c0a8['item']['data']||_0x90c0a8['item']['parent']['maxOffset']>0x1)return;if(!_0xc6435['consumable']['consume'](_0x90c0a8['item'],_0x5b52fe['name']))return;const _0x1950d6=_0xc6435['writer'],_0x1d5181=_0xc6435['mapper']['toViewRange'](_0x90c0a8['range']);_0x1950d6['wrap'](_0x1d5181,_0x1950d6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x394b16){const _0xbb1949=_0x394b16['plugins']['get']('RevisionViewer');return(_0x5bb37e,_0x1e301b,_0x2704a6)=>{const _0x1dacd2=_0x1e301b['markerName']['split'](':')[0x1],_0x11fe52=_0xbb1949['_getChangeFromId'](_0x1dacd2);if(!_0x11fe52)return null;const _0x1f7982='add'==_0x11fe52['type']?'split':'merge';if(!_0x2704a6['consumable']['test'](_0x1e301b['markerRange'],_0x5bb37e['name']))return;const _0x97ed77=_0x1e301b['markerRange']['getWalker'](),_0x41ce85=_0x1e301b['markerRange']['start'],_0x5cd118=_0x394b16['model']['schema'];let _0x413925=null,_0x916c8e=null,_0x2ac79c=!0x1,_0x5cfea7=!0x1;for(const _0x1dd5e1 of _0x97ed77){const _0x199756=_0x1dd5e1['item'];_0x2ac79c=_0x2ac79c||_0x5cd118['isContent'](_0x199756);const _0x5a6928=_0x2704a6['mapper']['toViewElement'](_0x199756);if(_0x5a6928&&_0x5a6928['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1dd5e1['type']&&(_0x5cd118['isBlock'](_0x199756)&&!_0x5cd118['isLimit'](_0x199756)&&(_0x199756['nextSibling']||_0x41ce85['isAtEnd']?_0x413925&&_0x413925['parent']==_0x199756||(_0x413925=_0x199756,_0x248415(_0x1dd5e1['previousPosition']),_0x5cfea7=!0x0):_0x916c8e=_0x916c8e||_0x1dd5e1['previousPosition']));}function _0x248415(_0x461c17){const _0x2a5e9e=_0x2704a6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f7982}),_0x30494d=_0x2704a6['mapper']['toViewPosition'](_0x461c17);_0x11fe52['data']['isSuggestion']&&_0x2704a6['writer']['addClass']('ck-suggestion-marker-'+_0x1f7982+'-new',_0x2a5e9e),_0xbb1949['activeChange']==_0x11fe52&&_0x2704a6['writer']['addClass']('ck-suggestion-marker--active',_0x2a5e9e),_0x2704a6['writer']['insert'](_0x30494d,_0x2a5e9e),_0x2704a6['mapper']['bindElementToMarker'](_0x2a5e9e,_0x1e301b['markerName']);}_0x2ac79c||_0x5cfea7||!_0x916c8e||_0x248415(_0x916c8e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x41eaa4,_0x3e6945,_0x534976)=>{const _0x268634=_0x534976['mapper']['markerNameToElements'](_0x3e6945['markerName']);if(_0x268634){for(const _0x172435 of _0x268634)(_0x172435['hasClass']('ck-suggestion-marker-split')||_0x172435['hasClass']('ck-suggestion-marker-merge'))&&(_0x534976['mapper']['unbindElementFromMarkerName'](_0x172435,_0x3e6945['markerName']),_0x534976['writer']['remove'](_0x172435));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x137a9e,_0x52b955,_0x422a30)=>{const _0x2997d2=_0x52b955['markerName']['split'](':')[0x1],_0x1999f8=this['_getChangeFromId'](_0x2997d2);if(!_0x1999f8)return null;const _0x6f4801='add'==_0x1999f8['type']?'split':'merge';if(_0x422a30['consumable']['test'](_0x52b955['markerRange'],_0x137a9e['name']))for(const _0x31f1bd of _0x52b955['markerRange']['getItems']()){if(!_0x31f1bd['is']('element','softBreak'))continue;const _0xc067ac=_0x422a30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6f4801}),_0x1ad713=_0x422a30['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x31f1bd));_0x1999f8['data']['isSuggestion']&&_0x422a30['writer']['addClass']('ck-suggestion-marker-'+_0x6f4801+'-new',_0xc067ac),this['activeChange']==_0x1999f8&&_0x422a30['writer']['addClass']('ck-suggestion-marker--active',_0xc067ac),_0x422a30['writer']['insert'](_0x1ad713,_0xc067ac),_0x422a30['mapper']['bindElementToMarker'](_0xc067ac,_0x52b955['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x17187d=>{for(const _0x2aea47 of this['editor']['model']['document']['getRootNames']()){const _0x50cc26=this['editor']['model']['document']['getRoot'](_0x2aea47),_0x214c44=this['editor']['editing']['view']['document']['getRoot'](_0x2aea47);if(_0x214c44){const _0x36aabc=_0x50cc26['getAttribute']('revisionHistoryAttachChange');if(_0x17187d['removeAttribute']('data-change-id',_0x214c44),_0x17187d['removeClass']('ck-revision-history-root-add',_0x214c44),_0x17187d['removeClass']('ck-revision-history-root-remove',_0x214c44),_0x17187d['removeClass']('ck-revision-history-root--active',_0x214c44),_0x36aabc){const _0x16b0e6=this['_getChangeFromId'](_0x36aabc);if(!_0x16b0e6)return null;_0x17187d['setAttribute']('data-change-id',_0x36aabc,_0x214c44),_0x17187d['addClass']('ck-revision-history-root-'+_0x16b0e6['type'],_0x214c44),this['activeChange']==_0x16b0e6&&_0x17187d['addClass']('ck-revision-history-root--active',_0x214c44);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x207523=>'revision-comment:'+_0x207523,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x49d307=>'revision-suggestion:'+_0x49d307,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3b8e30=>({'name':'suggestion:'+_0x3b8e30,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x341c71=>{const _0x33d46e=_0x341c71['markerName']['split'](':')[0x1];return'insertion'!=_0x33d46e&&'deletion'!=_0x33d46e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x33d46e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x54244c,_0x2a5a65,_0x1d413d)=>{const _0x20715a=_0x1d413d['mapper']['markerNameToElements'](_0x2a5a65['markerName']);if(_0x20715a){for(const _0x403735 of _0x20715a)_0x403735['is']('uiElement')&&(_0x1d413d['mapper']['unbindElementFromMarkerName'](_0x403735,_0x2a5a65['markerName']),_0x1d413d['writer']['remove'](_0x403735));}},{'priority':'high'});}['_getChangeFromId'](_0x381035){return this['_changeIdToChange']['get'](_0x381035);}['_getViewForChange'](_0x589ebb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x589ebb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x320b3b,_0x322c2d,_0x21637f,_0x51e74a)=>{_0x51e74a&&this['_balloon']['remove'](_0x51e74a),_0x21637f&&(this['_balloon']['add']({'view':_0x21637f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c1595=this['editor']['editing'],_0x2ca1e2=this['_getChangeFromId'](_0x21637f['changeId']);let _0x271c2f;if(_0x2ca1e2['data']['isOnRoot']){const _0x202961=_0x2c1595['view']['getDomRoot'](_0x2ca1e2['rootName']);_0x271c2f=Array['from'](_0x202961['getClientRects']());}else{const _0x3371d1=this['editor']['model']['markers']['get']('revision:'+_0x21637f['changeId']);_0x271c2f=Array['from'](_0x2c1595['mapper']['markerNameToElements'](_0x3371d1['name']))['map'](_0xdbeb2d=>_0x2c1595['view']['domConverter']['mapViewToDom'](_0xdbeb2d))['map'](_0xf2333d=>Array['from'](_0xf2333d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x271c2f[0x0];return _0x271c2f['find'](_0xeea292=>_0xeea292['top']-0x3<=this['_activeViewTarget']['y']&&_0xeea292['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xeea292['left']-0x3<=this['_activeViewTarget']['x']&&_0xeea292['right']+0x3>=this['_activeViewTarget']['x'])||_0x271c2f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xa659aa,_0x5e7b06,_0x1bc497,_0x29b467)=>{this['activeView']=_0x1bc497?this['_getViewForChange'](_0x1bc497):null,this['editor']['model']['change'](()=>{const _0x36bf6f=this['editor']['editing'];_0x29b467&&(_0x29b467['data']['isOnRoot']?_0x36bf6f['view']['change'](_0x4d8d2d=>{_0x4d8d2d['removeClass']('ck-revision-history-root--active',_0x36bf6f['view']['document']['getRoot'](_0x29b467['rootName']));}):_0x36bf6f['reconvertMarker']('revision:'+_0x29b467['id'])),_0x1bc497&&(_0x1bc497['data']['isOnRoot']?_0x36bf6f['view']['change'](_0x3c7910=>{_0x3c7910['addClass']('ck-revision-history-root--active',_0x36bf6f['view']['document']['getRoot'](_0x1bc497['rootName']));}):_0x36bf6f['reconvertMarker']('revision:'+_0x1bc497['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x23f074,_0x567bf0)=>{if(this['activeChange'])return;const _0x563303=this['_findChangeIdFromDomTarget'](_0x567bf0['target']),_0x52e247=this['_changeIdToChange']['get'](_0x563303);_0x52e247?(this['_activeViewTarget']={'x':_0x567bf0['domEvent']['x'],'y':_0x567bf0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x52e247)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x43619e,_0x2b2476)=>{const _0x4227e5=this['_findChangeIdFromDomTarget'](_0x2b2476['target']),_0x2c8462=this['_changeIdToChange']['get'](_0x4227e5);_0x2c8462?(this['_activeViewTarget']={'x':_0x2b2476['domEvent']['x'],'y':_0x2b2476['domEvent']['y']},_0x2c8462===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2c8462):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x52b8ec){do{const _0x129e80=_0x52b8ec['getAttribute']('data-change-id');if(_0x129e80)return _0x129e80;_0x52b8ec=_0x52b8ec['parent'];}while(_0x52b8ec);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x20cdd4=>{for(const _0x559b4c of this['editor']['model']['markers'])_0x20cdd4['removeMarker'](_0x559b4c);});}}function Z(_0x2ac33b,_0x518be2){return(_0x59c9ff,_0x35211d,_0x25652a)=>{if(!_0x25652a['consumable']['test'](_0x35211d['markerRange'],_0x59c9ff['name']))return;const _0x4a7e6d=_0x35211d['markerRange']['getWalker'](),_0x3f0e5f=_0x35211d['markerRange']['start'],_0x58e7bb=_0x2ac33b['model']['schema'];let _0x434593=null,_0x575d00=null,_0xd4bfc8=!0x1,_0x28ce9d=!0x1;for(const _0x4ba0cd of _0x4a7e6d){const _0xa76e87=_0x4ba0cd['item'];_0xd4bfc8=_0xd4bfc8||_0x58e7bb['isContent'](_0xa76e87);const _0x35a513=_0x25652a['mapper']['toViewElement'](_0xa76e87);if(_0x35a513&&_0x35a513['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ba0cd['type']&&(_0x58e7bb['isBlock'](_0xa76e87)&&!_0x58e7bb['isLimit'](_0xa76e87)&&(_0xa76e87['nextSibling']||_0x3f0e5f['isAtEnd']?_0x434593&&_0x434593['parent']==_0xa76e87||(_0x434593=_0xa76e87,_0x4652b9(_0x4ba0cd['previousPosition']),_0x28ce9d=!0x0):_0x575d00=_0x575d00||_0x4ba0cd['previousPosition']));}function _0x4652b9(_0x1345d7){const _0x1db31a=_0x25652a['mapper']['toViewPosition'](_0x1345d7),_0x2f28ca=_0x25652a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x518be2});_0x25652a['writer']['insert'](_0x1db31a,_0x2f28ca),_0x25652a['mapper']['bindElementToMarker'](_0x2f28ca,_0x35211d['markerName']);}_0xd4bfc8||_0x28ce9d||!_0x575d00||_0x4652b9(_0x575d00);};}class pt extends _0x1d782e{constructor(_0xd3d341){super(_0xd3d341);const _0x4d8545=_0xd3d341['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4d8545,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d8545,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x352074=this['editor'],_0x2f20b9=_0x352074['plugins']['get'](d),_0xca07d8=_0x2f20b9['isReady']?_0x2f20b9['diff']['newRevisionId']:null;_0x352074['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xca07d8);}['refresh'](){const {isReady:_0x5c612b,isEnabled:_0x4e8870,repository:_0x5c35f7,diff:_0x26be50}=this['editor']['plugins']['get'](d),_0x347a9b=_0x26be50&&_0x5c35f7['getLaterVisibleRevision'](_0x26be50['newRevisionId']);this['isEnabled']=_0x5c612b&&_0x4e8870&&Boolean(_0x347a9b);}}class _t extends _0x1d782e{['_step'];constructor(_0x376db5,{direction:_0x1aafb3}){super(_0x376db5);const _0x427924=_0x376db5['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1aafb3?0x1:-0x1,this['listenTo'](_0x427924,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x427924,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x427924,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x382d9d=this['editor'],_0x23cf60=_0x382d9d['plugins']['get'](d),{isNavigationMode:_0x599db7,currentChangeNumber:_0x1b4f47}=_0x23cf60;let _0x2319bc;if(_0x23cf60['activeChange']=_0x599db7?_0x23cf60['diff']['changes']['get'](_0x1b4f47+this['_step']):_0x23cf60['diff']['changes']['first'],_0x23cf60['activeChange']['data']['isOnRoot'])_0x2319bc=_0x382d9d['editing']['view']['getDomRoot'](_0x23cf60['activeChange']['rootName']);else{const _0x3e6fc6=_0x382d9d['model']['markers']['get']('revision:'+_0x23cf60['activeChange']['id']);_0x2319bc=_0x40ad99(_0x382d9d['editing'],_0x3e6fc6);}_0x170d53({'target':_0x2319bc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1e1839,currentChangeNumber:_0x25a4f1,numberOfChanges:_0x4c3fd6,isReady:_0x3992ac,isEnabled:_0x1a3f9c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1a3f9c&&_0x3992ac&&_0x4c3fd6)&&(!_0x1e1839||(0x1===this['_step']?_0x25a4f1<_0x4c3fd6-0x1:_0x25a4f1>0x0));}}class li extends ts{constructor(_0x10d957){super(_0x10d957);const _0x25118c=this['bindTemplate'],_0x4e45bf=new te(_0x10d957),_0x39e6fd=new te(_0x10d957);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',(_0x477902,_0x312e00)=>_0x477902&&_0x312e00>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x332bb3,_0x401d5e,_0x44dba7,_0x1c6004)=>{if(!_0x332bb3)return m(_0x10d957,'Loading...');if(!_0x44dba7)return m(_0x10d957,'No\x20changes');const _0x56671a=m(_0x10d957,'NUMBER_OF_CHANGES',_0x44dba7);return _0x1c6004?m(_0x10d957,'X_OF_Y_CHANGES',[_0x401d5e+0x1,_0x44dba7]):_0x56671a;}),_0x4e45bf['set']({'label':m(_0x10d957,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x39e6fd['set']({'label':m(_0x10d957,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x4e45bf['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x39e6fd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e45bf['on']('execute',()=>this['fire']('execute','backward')),_0x39e6fd['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',_0x25118c['if']('_isStatusLabelVisible','ck-hidden',_0x59dd6d=>!_0x59dd6d)]},'children':[{'text':_0x25118c['to']('isNavigationMode',_0x54d895=>_0x54d895?m(_0x10d957,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x10d957,'Total')+':\x20')}]},{'text':_0x25118c['to']('_statusText')}]},new _0x4101c0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e45bf,_0x39e6fd]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x1420a4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3714c7=this['editor']['editing']['view'];_0x3714c7['change'](_0x964742=>{for(const _0xe05202 of _0x3714c7['document']['roots'])_0x964742['addClass'](le,_0xe05202);});}['hide'](){const _0x2d360c=this['editor']['editing']['view'];_0x2d360c['change'](_0x53f9ea=>{for(const _0x52569d of _0x2d360c['document']['roots'])_0x53f9ea['removeClass'](le,_0x52569d);});}}class g extends _0x1420a4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x56b112=this['editor'],_0x39f179=_0x56b112['plugins']['get'](d),_0x25d734=_0x56b112['plugins']['get'](ge);_0x56b112['ui']['componentFactory']['add']('exitToEditing',_0x538dd1=>{const _0x39be8f=new te(_0x538dd1);return _0x39be8f['set']({'label':m(_0x538dd1,'Back\x20to\x20editing'),'icon':_0x247700['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x39be8f,'execute',()=>{_0x56b112['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x39be8f;}),_0x56b112['ui']['componentFactory']['add']('restoreRevision',_0x2618bb=>{const _0x1612d4=new te(_0x2618bb);return _0x1612d4['set']({'label':m(_0x2618bb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1612d4['bind']('isEnabled')['to'](_0x56b112['commands']['get']('restoreRevision')),this['listenTo'](_0x1612d4,'execute',()=>_0x56b112['execute']('restoreRevision')),_0x1612d4;}),_0x56b112['ui']['componentFactory']['add']('changesNavigation',_0x201032=>{const _0x29709b=new li(_0x201032),_0x4a0c5a=_0x56b112['commands']['get']('showPreviousChange'),_0x5777d8=_0x56b112['commands']['get']('showNextChange');return _0x29709b['bind']('isBackwardNavigationEnabled')['to'](_0x4a0c5a,'isEnabled'),_0x29709b['bind']('isForwardNavigationEnabled')['to'](_0x5777d8,'isEnabled'),_0x29709b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39f179),this['listenTo'](_0x29709b,'execute',(_0x1667ad,_0x5dabb8)=>{_0x56b112['execute']('forward'===_0x5dabb8?'showNextChange':'showPreviousChange');}),_0x29709b;}),_0x25d734['show'](),_0x39f179['on']('change:isReady',(_0x45b833,_0x2c424c,_0x566408)=>{_0x566408?_0x25d734['hide']():_0x25d734['show']();});}}class at extends _0xe538c1{['_resizeObserver']=null;constructor(_0x4b9198,_0x3662db){super(_0x4b9198,_0x3662db);const _0x23147c=this['bindTemplate'];this['set']({'label':m(_0x4b9198,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4b9198,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x23147c['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 _0x5e25ca=this['fieldView']['element'];this['_tooltipString']=_0x5e25ca['scrollWidth']>_0x5e25ca['clientWidth']&&_0x5e25ca['value']||'';}}class ri extends ts{constructor(_0x482a4e,_0x521360,_0x67e42a){super(_0x482a4e);const _0x27e2df=new _0x151b45();_0x27e2df['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x1a131f=['ck','ck-revision-history-sidebar__revision-author'];_0x67e42a&&_0x1a131f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2419ee=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x482a4e,_0x67e42a?'Revision\x20creator':'Revision\x20author')},'children':[_0x27e2df,_0x521360['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1a131f},'children':_0x2419ee});}}function oi(_0x58a4f0,_0x1f81b4){const _0xc8a8ee=_0x58a4f0['bindTemplate'],_0x1a22e0=_0x58a4f0['locale'],_0x626e70=_0x1e0a60(_0x1a22e0);_0x626e70['panelPosition']='sw';const _0x1a9d37=function(_0x3cc103,_0x4884de){const _0x596780=function(_0x26d074,_0x283996){const _0x12e8b1=_0x26d074['locale'],_0x219ca1={'Compare\x20against\x20selected':m(_0x12e8b1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12e8b1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12e8b1,'Restore\x20this\x20revision')};return _0x283996['map'](_0x3a629e=>{const _0x24ac03=_0x219ca1[_0x3a629e['name']];return _0x24ac03&&_0x24ac03!==_0x3a629e['name']&&(_0x3a629e['name']=_0x24ac03),_0x3a629e;});}(_0x3cc103,_0x4884de),_0x9adb05=new _0xcf6e93();for(const _0x3f69a1 of _0x596780){const _0x1ccbbb={'type':'button','model':new _0x58fc48({'label':_0x3f69a1['name'],'class':_0x3f69a1['class'],'withText':!0x0,'role':'menuitem','_action':_0x3f69a1['action']})};_0x1ccbbb['model']['bind']('isEnabled')['to'](_0x3cc103,'isActionsDropdownOpen',_0x271e33=>'function'!=typeof _0x3f69a1['isEnabled']||(!_0x271e33||_0x3f69a1['isEnabled'](_0x3cc103))),_0x9adb05['add'](_0x1ccbbb);}return _0x9adb05;}(_0x58a4f0,_0x1f81b4);return _0x58a4f0['bind']('isActionsDropdownOpen')['to'](_0x626e70,'isOpen'),_0x626e70['buttonView']['set']({'label':m(_0x1a22e0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x247700['threeVerticalDots']}),_0x626e70['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xc8a8ee['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xc8a8ee['to'](_0x40523e=>_0x40523e['stopPropagation']())}}),_0x626e70['on']('execute',_0x218b5c=>{_0x58a4f0['isReady']&&'function'==typeof _0x218b5c['source']['_action']&&_0x218b5c['source']['_action'](_0x58a4f0);}),to(_0x626e70,_0x1a9d37,{'role':'menu'}),_0x626e70['listenTo'](_0x58a4f0,'change:isActionsDropdownOpen',(_0x2b09aa,_0x3fb6c3,_0x14f488)=>{if(_0x14f488)for(const _0x20f60c of _0x626e70['listView']['items']){const _0x22bc47=_0x20f60c['children']['first'],_0xc7d649=_0x1f81b4['find'](_0x13f3f6=>_0x13f3f6['action']===_0x22bc47['_action'])['isVisible'];_0x20f60c['isVisible']=void 0x0===_0xc7d649||_0xc7d649(_0x58a4f0);}}),_0x626e70;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2c1d09,_0x1b1187,_0xc7ea7f,_0x3f4c47){super(_0x2c1d09);const _0x1b3578=this['bindTemplate'],_0x2c9766=function(_0x1e4440,_0x38bd8f){const _0x404880=Array['from'](_0x38bd8f['authors'])['filter'](_0x5665b2=>_0x5665b2!=_0x38bd8f['creator']);return _0x38bd8f['creator']&&_0x404880['unshift'](_0x38bd8f['creator']),_0x404880['map'](_0x2b247f=>new ri(_0x1e4440,_0x2b247f,_0x2b247f==_0x38bd8f['creator']));}(_0x2c1d09,_0x1b1187);this['id']=_0x1b1187['id'],this['_revision']=_0x1b1187,this['_requireRevisionName']=_0x3f4c47,this['bind']('name','createdAt')['to'](_0x1b1187),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x22a0cb=>{return _0x48566e=_0x2c1d09['uiLanguage'],(_0xa5db0a=_0x22a0cb)['toLocaleDateString'](_0x48566e,{'month':'long','day':'numeric'})+',\x20'+_0xa5db0a['toLocaleTimeString'](_0x48566e,{'hour':'numeric','minute':'numeric'});var _0x48566e,_0xa5db0a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2c1d09,_0x368611),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x362f54=>_0x362f54||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3efb5f,_0x5459f5)=>_0x3efb5f&&_0x5459f5),this['revisionActionsView']=_0xc7ea7f&&_0xc7ea7f['length']?oi(this,_0xc7ea7f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1b3578['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1b3578['if']('isEnabled','ck-disabled',_0xf16000=>!_0xf16000),_0x1b3578['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1b3578['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1b3578['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':_0x1b3578['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':_0x2c9766}]},this['revisionActionsView']],'on':{'click':_0x1b3578['to'](_0x5e90e9=>{_0x5e90e9['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x429017=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x429017,'change',()=>{this['_requireRevisionName']&&!_0x429017['value']||this['fire']('setName',{'id':this['id'],'name':_0x429017['value']}),_0x429017['value']||(_0x429017['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x16e4bc,_0x1fe900){const _0x136312=_0xd4c326['fromJSDate'](_0x16e4bc)['setLocale'](_0x1fe900),_0x48f46f=_0xd4c326['local'](),_0x4ca31c=_0x48f46f['minus']({'days':0x1})['startOf']('day');let _0x5bc7de,_0x5331e6;return _0x136312['hasSame'](_0x48f46f,'day')?(_0x5bc7de=_0x136312['startOf']('day')['toJSDate'](),_0x5331e6=_0x136312['toRelativeCalendar']()):_0x136312['hasSame'](_0x4ca31c,'day')?(_0x5bc7de=_0x4ca31c['toJSDate'](),_0x5331e6=_0x136312['toRelativeCalendar']()):_0x136312['hasSame'](_0x48f46f,'week')?(_0x5bc7de=_0x136312['startOf']('week')['toJSDate'](),_0x5331e6=_0x136312['weekdayLong']||''):_0x136312['hasSame'](_0x48f46f,'year')?(_0x5bc7de=_0x136312['startOf']('month')['toJSDate'](),_0x5331e6=_0x136312['monthLong']||''):(_0x5bc7de=_0x136312['startOf']('year')['toJSDate'](),_0x5331e6=String(_0x136312['year'])),{'startDate':_0x5bc7de,'localizedPeriodName':_0x5331e6};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4b6810,_0x1a3257,_0x56e0a6,_0x35f40b){super(_0x4b6810);const _0x4f0123=ci(_0x1a3257,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1a3257,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x56e0a6,this['_requireRevisionName']=_0x35f40b,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':_0x4f0123}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x56d7d2){const _0x4c60e7=new hi(this['locale'],_0x56d7d2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4c60e7);}['removeRevision'](_0x69c5e8){const _0xe16800=this['revisionViews']['find'](_0x198fca=>_0x198fca['id']===_0x69c5e8['id']);this['revisionViews']['remove'](_0xe16800);}}class as extends ts{constructor(_0x40b8f7){super(_0x40b8f7);const _0x360ec6=new _0x151b45();_0x360ec6['content']=_0x247700['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x360ec6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x40b8f7,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x511122,_0x2212b8,_0x3c99b4,_0x3b0e46){super(_0x511122);const _0x571a53=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2212b8,this['_revisionActions']=_0x3c99b4,this['_requireRevisionName']=_0x3b0e46,this['on']('select',(_0x59d5c3,_0x22b63d)=>{this['fire']('revisionSelected',_0x22b63d);}),this['on']('setName',(_0x3fdf7c,_0x3c4222)=>{this['fire']('revisionSetName',_0x3c4222);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x511122),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x571a53['if']('isEnabled','ck-disabled',_0x57e0ed=>!_0x57e0ed)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2866cf of this['_revisions'])this['_addRevision'](_0x2866cf);this['_revisions']['on']('add',(_0x4cd7ff,_0x1acbf0)=>{this['_addRevision'](_0x1acbf0);}),this['_revisions']['on']('remove',(_0x18f72b,_0x253928)=>{this['_removeRevision'](_0x253928);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1857d1=>_0x1857d1['revisionViews']['map'](_0x1b6da3=>_0x1b6da3))['flat']();}['selectRevision'](_0x562b0a){for(const _0xb90707 of this['revisionViews'])_0x562b0a&&_0x562b0a['id']===_0xb90707['id']?_0xb90707['select']():_0xb90707['deselect']();}['highlightRevisions'](_0x27f4f3){for(const _0x2cb8b4 of this['revisionViews'])_0x27f4f3['some'](({id:_0x4c2998})=>_0x4c2998===_0x2cb8b4['id'])?_0x2cb8b4['highlight']():_0x2cb8b4['unhighlight']();}['_addRevision'](_0x53d901){const _0x449c68=ci(_0x53d901['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xa9319a=this['timePeriodViews']['get'](0x0);_0xa9319a&&_0xa9319a['startDate']['getTime']()===_0x449c68['getTime']()||(_0xa9319a=new ai(this['locale'],_0x449c68,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xa9319a)),_0xa9319a['addRevision'](_0x53d901);}['_removeRevision'](_0x33ca8f){const _0x3f48be=ci(_0x33ca8f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3f48be)['removeRevision'](_0x33ca8f);}['_getTimePeriodViewByStartDate'](_0x4d3ac1){return this['timePeriodViews']['find'](_0x5835e0=>_0x5835e0['startDate']['getTime']()===_0x4d3ac1['getTime']());}}class w extends _0x1420a4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4bbab9,_0x509cb2){super(_0x509cb2),this['sourceElement']=_0x4bbab9,this['model']['document']['createRoot']();const _0xef5478=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0xef5478);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x477054,_0x4381e8){const _0x457881=new this(_0x477054,_0x4381e8);return await _0x457881['initPlugins'](),await _0x457881['ui']['init'](_0x477054),await _0x457881['data']['init'](_0x457881['config']['get']('initialData')||''),_0x457881['fire']('ready'),_0x457881;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x361651{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x976eda){function _0x3954ee(_0x54ffbe){return _0x54ffbe['map'](_0x225f42=>String['fromCharCode'](_0x225f42))['join']('');}super(_0x976eda),this['result']='end',_0x976eda[_0x3954ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3954ee([0x76,0x69,0x65,0x77])][_0x3954ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3954ee([0x61,0x75,0x74,0x6f]),_0x976eda[_0x3954ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3954ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3954ee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3954ee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3954ee([0x6f,0x6b])});}}class k extends _0x361651{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2d2967){if(super(_0x2d2967),!this['editor']['config']['get']('revisionHistory'))throw new _0x1cd261('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x40ece0=>this['_showRevisionViewer']({..._0x40ece0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xc5bd60=>this['_closeRevisionViewer'](_0xc5bd60)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3be02c=>this['_restoreRevision'](_0x3be02c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2935c8){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2935c8;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1bce7e){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1bce7e);}['getRevision'](_0x4a21cc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4a21cc);}['getRevisions'](_0x1d8368){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1d8368||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x52bee8=this['editor'],_0x14b0a3=_0xc76ffb(_0x52bee8,p),_0x27759a=_0x52bee8['plugins']['get']('RevisionTracker'),_0x36e350=_0x52bee8['plugins']['get']('Users')['users'];return _0x14b0a3['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x14b0a3['lazyRoots'],(_0x14b0a3['plugins']['push'](Rt,d,g,class extends _0x361651{static get['requires'](){return[d,'Users'];}['init'](){const _0xe3a790=this['editor']['plugins']['get']('Users');for(const _0x524367 of _0x36e350)_0x524367['isAnonymous']||_0xe3a790['getUser'](_0x524367['id'])||_0xe3a790['addUser'](_0x524367);const _0x3a7505=_0x27759a['repository']['getRevisions']();let _0x3aa195=null;const _0x587d65=this['editor']['plugins']['get']('RevisionViewer');_0x587d65['adapter']=_0x27759a['adapter'],_0x587d65['bind']('isEnabled')['to'](_0x27759a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x52bee8,'isReadOnly',_0x5b4369=>!_0x5b4369);for(const _0x2c495f of _0x3a7505){const _0x557bd0=null===_0x2c495f['creator'];if(_0x557bd0&&_0x2c495f['toVersion']===_0x2c495f['fromVersion'])continue;const _0x590a8e=_0x2c495f['toJSON']();_0x587d65['addRevisionData'](_0x590a8e,(_0x46b6c2,_0x70559c,_0x3f03ef)=>{if(_0x557bd0){if(_0x3aa195)_0x3aa195['_update'](_0x46b6c2,_0x70559c);else{if(!_0x70559c){const _0x5d0ec4=_0x3f03ef['toJSON']();_0x5d0ec4['id']=_0x52d906(),_0x27759a['saveRevision'](_0x5d0ec4,_0x3f03ef['toVersion'])['then'](_0x40ef63=>{_0x3aa195=_0x40ef63;});}}}else _0x2c495f['_update'](_0x46b6c2,_0x70559c);});}}},w),_0x14b0a3);}['_enhanceShowRevisionViewerCallback'](){const _0x393f1e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2ab61d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x50f3e5=this['editor']['plugins']['get']('Autosave');await _0x50f3e5['save']();}else await _0x2ab61d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x298b17=this['editor']['plugins']['get']('Dialog');_0x298b17['isOpen']&&_0x298b17['hide']();}const _0x3fbbef=this['_getRevisionViewerEditorConfig']();return _0x393f1e(_0x3fbbef)['then'](_0x231637=>{return(this['_viewerEditor']=_0x231637,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x231637;})['catch'](_0x116ffc=>(console['error'](_0x116ffc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x30d963=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x30d963(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x21c773=this['editor']['plugins']['get']('Annotations');_0x21c773['refreshVisibility'](),_0x21c773['refreshPositioning']();}})));}['_showRevisionViewer'](_0x344ff3){const _0x3a82f1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2a4137=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5b3b6a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x5b3b6a,_0x344ff3)['then'](_0x4fd931=>(_0x2a4137['style']['display']='block',_0x3a82f1['style']['display']='none',_0x4fd931));}['_closeRevisionViewer'](_0x121bc6){const _0x2bc904=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2bc904['style']['display']='',_0x121bc6['destroy']();}async['_restoreRevision'](_0x183742){const _0x49bbd7=this['editor'],_0x12c60d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x51fa6d=_0x49bbd7['plugins']['get']('RevisionTracker'),_0x1e0f82=_0x12c60d['repository']['getRevision'](_0x183742);let _0x36b96b,_0x169d2a,_0x2f6a9d;try{_0x36b96b=await _0x12c60d['getRevisionData'](_0x1e0f82),_0x169d2a=await _0x12c60d['getRevisionRootsAttributes'](_0x1e0f82);}catch(_0x11f813){return void console['error'](_0x11f813);}_0x49bbd7['model']['change'](_0x22d01d=>{for(const _0x172311 of Array['from'](_0x49bbd7['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x22d01d['removeMarker'](_0x172311);}),_0x12c60d['isReady']=!0x1,_0x49bbd7['model']['enqueueChange'](_0x5dc8c4=>{_0x5dc8c4['setSelection'](null),_0x5dc8c4['removeSelectionAttribute'](_0x49bbd7['model']['document']['selection']['getAttributeKeys']());const _0x93da8c=Object['keys'](_0x36b96b);for(const _0x3612c9 of _0x49bbd7['model']['document']['roots'])'$graveyard'!=_0x3612c9['rootName']&&_0x3612c9['isAttached']()&&!_0x93da8c['includes'](_0x3612c9['rootName'])&&_0x5dc8c4['detachRoot'](_0x3612c9);for(const _0x130aee of _0x93da8c){let _0x52dbe7=_0x49bbd7['model']['document']['getRoot'](_0x130aee);_0x52dbe7&&_0x52dbe7['isAttached']()||(_0x52dbe7=_0x5dc8c4['addRoot'](_0x130aee));const _0x3154f6=_0x169d2a[_0x130aee],_0x2625f7=Object['keys'](_0x3154f6),_0x2cc418=_0x36b96b[_0x130aee];for(const _0xede685 of _0x52dbe7['getAttributeKeys']())_0x2625f7['includes'](_0xede685)||_0x5dc8c4['removeAttribute'](_0xede685,_0x52dbe7);for(const _0x3cd3a1 of _0x2625f7)_0x5dc8c4['setAttribute'](_0x3cd3a1,_0x169d2a[_0x130aee][_0x3cd3a1],_0x52dbe7);_0x5dc8c4['remove'](_0x5dc8c4['createRangeIn'](_0x52dbe7)),_0x5dc8c4['insert'](_0x49bbd7['data']['parse'](_0x2cc418,_0x52dbe7),_0x52dbe7,0x0);}});const _0x25cf65=m(_0x49bbd7['locale'],'Restored');if(_0x1e0f82['name'])_0x2f6a9d=-0x1==_0x1e0f82['name']['indexOf'](_0x25cf65)?_0x25cf65+':\x20'+_0x1e0f82['name']:_0x1e0f82['name'];else _0x2f6a9d=_0x25cf65+':\x20'+(_0x1e0f82['createdAt']['toLocaleDateString'](_0x49bbd7['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1e0f82['createdAt']['toLocaleTimeString'](_0x49bbd7['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x51fa6d['saveRevision']({'name':_0x2f6a9d}),_0x12c60d['isReady']=!0x0,_0x49bbd7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1cb16c){super(_0x1cb16c),this['_revisionViewer']=_0x1cb16c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x66cc60=this['_revisionsRepository']['_revisions'],_0xdbf100=this['_createRevisionActions'](),_0x5783a0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x66cc60,_0xdbf100,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',(_0xbf0c4b,_0x731eb1)=>{_0x731eb1['revisionViews']['on']('add',(_0x55fdb1,_0x13366b)=>{_0x13366b['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)),_0x5783a0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2723ef=this['_revisionsRepository']['getRevision'](0x0);if(_0x2723ef){const _0x65bfa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2723ef['id']);this['_revisionViewer']['compare'](_0x2723ef,_0x65bfa);}}['_handleRevisionSelected'](_0x1df0bf,_0x30c73e){const _0x2f2c83=this['_revisionsRepository']['getRevision'](_0x30c73e['id']),_0x527199=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2f2c83['id']);this['_revisionViewer']['compare'](_0x2f2c83,_0x527199);}['_handleRevisionSetName'](_0x2e17d4,_0x198d37){this['_revisionsRepository']['getRevision'](_0x198d37['id'])['setName'](_0x198d37['name']);}['_handleDiffChange'](_0x87e677,_0x3f1d28,_0x195e44){const _0x9d51a9=this['_revisionsRepository']['getRevisionsInDiff'](_0x195e44);_0x9d51a9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x9d51a9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x9d51a9[0x0]));}['_createRevisionActions'](){const _0x27783d=this['editor'],_0x1207af=w['availableRevisionActions'],_0x3fe426=_0x27783d['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x3fe426['length'])return _0x3fe426['map'](_0x4a068d=>{const _0x297909='string'==typeof _0x4a068d?Object['assign']({},_0x1207af[_0x4a068d]):_0x4a068d;return _0x297909['action']=_0x297909['action']['bind'](this,_0x27783d),_0x297909['isVisible']&&(_0x297909['isVisible']=_0x297909['isVisible']['bind'](this,_0x27783d)),_0x297909;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x124343},_0x2f5351)=>{const _0x3b4f5e=_0x124343['get'](d),_0x32c70b=_0x3b4f5e['repository'];let _0x20d8aa=_0x3b4f5e['diff']['newRevisionId'],_0x5d7539=_0x2f5351['id'];_0x32c70b['getIndex'](_0x20d8aa)>_0x32c70b['getIndex'](_0x5d7539)&&([_0x20d8aa,_0x5d7539]=[_0x5d7539,_0x20d8aa]),_0x3b4f5e['compare'](_0x20d8aa,_0x5d7539);},'isVisible':({plugins:_0x5a3942},_0x516fdb)=>{const _0x247e0c=_0x5a3942['get'](d);return!(_0x247e0c['repository']['getRevisionsInDiff'](_0x247e0c['diff'])['length']>0x2)&&!_0x516fdb['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3b4dc2,{id:_0x40effd})=>{_0x3b4dc2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x40effd);},'isVisible':({plugins:_0x57c3d5},_0x57c8bc)=>!!_0x57c3d5['get'](d)['repository']['getLaterVisibleRevision'](_0x57c8bc['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2b48a2},{id:_0x3bd6d2,revisionNameView:_0x4bf00a})=>{const _0xc2dcfe=_0x2b48a2['get'](d),_0x25071a=_0xc2dcfe['repository']['getEarlierVisibleRevision'](_0x3bd6d2);_0xc2dcfe['compare'](_0x3bd6d2,_0x25071a),_0x4bf00a['focus'](),_0x4bf00a['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x12f4ba,_0x161766){super(_0x12f4ba),this['_view']=_0x161766,this['_toolbarConfig']=ot(_0x12f4ba['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3c585c){const _0x23ca2b=this['editor'],_0x199c7d=this['view'],_0x1ef987=_0x23ca2b['editing']['view'],_0x3adf1b=_0x199c7d['editable'],_0x2709f5=_0x1ef987['document']['getRoot']();_0x3adf1b['name']=_0x2709f5['rootName'],_0x199c7d['render']();const _0x1494f9=_0x3adf1b['element'];this['setEditableElement'](_0x3adf1b['name'],_0x1494f9),_0x199c7d['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1ef987['attachDomRoot'](_0x1494f9),this['_elementReplacer']['replace'](_0x3c585c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x18b8bf=this['view'],_0x94a072=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x94a072['detachDomRoot'](_0x18b8bf['editable']['name']),_0x18b8bf['destroy']();}['_initToolbar'](){const _0xfca0f3=this['view'];_0xfca0f3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xfca0f3['stickyPanel']['limiterElement']=_0xfca0f3['element'],_0xfca0f3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x95ea2})=>_0x95ea2),_0xfca0f3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xfca0f3['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x34dd17,_0x105a74,_0x47efd6={}){super(_0x34dd17),this['stickyPanel']=new ut(_0x34dd17),this['toolbar']=new lt(_0x34dd17,{'shouldGroupWhenFull':_0x47efd6['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x34dd17,_0x105a74);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x21e1ad,_0xc6e691){super(_0xc6e691),this['sourceElement']=_0x21e1ad,this['model']['document']['createRoot']();const _0x17bc22=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x17bc22);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32f147,_0x3413d0){const _0x5783f1=new this(_0x32f147,_0x3413d0);return await _0x5783f1['initPlugins'](),await _0x5783f1['ui']['init'](_0x32f147),await _0x5783f1['data']['init'](_0x5783f1['config']['get']('initialData')||''),_0x5783f1['fire']('ready'),_0x5783f1;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x1420a4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b2f20){function _0x1782cb(_0x58a055){return _0x58a055['map'](_0xce4d16=>String['fromCharCode'](_0xce4d16))['join']('');}super(_0x1b2f20),this['result']='end',_0x1b2f20[_0x1782cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1782cb([0x76,0x69,0x65,0x77])][_0x1782cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1782cb([0x61,0x75,0x74,0x6f]),_0x1b2f20[_0x1782cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1782cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1782cb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1782cb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1782cb([0x6f,0x6b])});}}class k extends _0x1420a4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xaf1526){if(super(_0xaf1526),!this['editor']['config']['get']('revisionHistory'))throw new _0x5ea7ff('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x48ecd7=>this['_showRevisionViewer']({..._0x48ecd7,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xef42a5=>this['_closeRevisionViewer'](_0xef42a5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x44ecb=>this['_restoreRevision'](_0x44ecb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1239d0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1239d0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1bef05){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1bef05);}['getRevision'](_0x4d0315){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4d0315);}['getRevisions'](_0x686e17){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x686e17||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x59ef11=this['editor'],_0x7a5ab0=_0xbfc40b(_0x59ef11,p),_0x5150e2=_0x59ef11['plugins']['get']('RevisionTracker'),_0x1567e8=_0x59ef11['plugins']['get']('Users')['users'];return _0x7a5ab0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x7a5ab0['lazyRoots'],(_0x7a5ab0['plugins']['push'](bt,d,g,class extends _0x1420a4{static get['requires'](){return[d,'Users'];}['init'](){const _0x56822e=this['editor']['plugins']['get']('Users');for(const _0xfe313e of _0x1567e8)_0xfe313e['isAnonymous']||_0x56822e['getUser'](_0xfe313e['id'])||_0x56822e['addUser'](_0xfe313e);const _0x5cb0ec=_0x5150e2['repository']['getRevisions']();let _0x274f58=null;const _0x518e87=this['editor']['plugins']['get']('RevisionViewer');_0x518e87['adapter']=_0x5150e2['adapter'],_0x518e87['bind']('isEnabled')['to'](_0x5150e2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x59ef11,'isReadOnly',_0x2754f5=>!_0x2754f5);for(const _0x5f2e29 of _0x5cb0ec){const _0x352055=null===_0x5f2e29['creator'];if(_0x352055&&_0x5f2e29['toVersion']===_0x5f2e29['fromVersion'])continue;const _0x2217eb=_0x5f2e29['toJSON']();_0x518e87['addRevisionData'](_0x2217eb,(_0x280939,_0xa3b555,_0x180b89)=>{if(_0x352055){if(_0x274f58)_0x274f58['_update'](_0x280939,_0xa3b555);else{if(!_0xa3b555){const _0x258460=_0x180b89['toJSON']();_0x258460['id']=_0x5d66aa(),_0x5150e2['saveRevision'](_0x258460,_0x180b89['toVersion'])['then'](_0x46854a=>{_0x274f58=_0x46854a;});}}}else _0x5f2e29['_update'](_0x280939,_0xa3b555);});}}},w),_0x7a5ab0);}['_enhanceShowRevisionViewerCallback'](){const _0xce541c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x59e97f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4f2da0=this['editor']['plugins']['get']('Autosave');await _0x4f2da0['save']();}else await _0x59e97f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x203dec=this['editor']['plugins']['get']('Dialog');_0x203dec['isOpen']&&_0x203dec['hide']();}const _0x5a8984=this['_getRevisionViewerEditorConfig']();return _0xce541c(_0x5a8984)['then'](_0x15cc0c=>{return(this['_viewerEditor']=_0x15cc0c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x15cc0c;})['catch'](_0x704e40=>(console['error'](_0x704e40),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x35cc34=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x35cc34(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x587ccc=this['editor']['plugins']['get']('Annotations');_0x587ccc['refreshVisibility'](),_0x587ccc['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4d912b){const _0x1a075a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x296988=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1af494=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1af494,_0x4d912b)['then'](_0x1aa783=>(_0x296988['style']['display']='block',_0x1a075a['style']['display']='none',_0x1aa783));}['_closeRevisionViewer'](_0x35bbc5){const _0x4c394a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4c394a['style']['display']='',_0x35bbc5['destroy']();}async['_restoreRevision'](_0x2f72ac){const _0x4c5d4f=this['editor'],_0x3f381e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x432f4e=_0x4c5d4f['plugins']['get']('RevisionTracker'),_0x55c149=_0x3f381e['repository']['getRevision'](_0x2f72ac);let _0x123f66,_0x1c2659,_0x5c7290;try{_0x123f66=await _0x3f381e['getRevisionData'](_0x55c149),_0x1c2659=await _0x3f381e['getRevisionRootsAttributes'](_0x55c149);}catch(_0xe2989e){return void console['error'](_0xe2989e);}_0x4c5d4f['model']['change'](_0x3ab56a=>{for(const _0x31d132 of Array['from'](_0x4c5d4f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3ab56a['removeMarker'](_0x31d132);}),_0x3f381e['isReady']=!0x1,_0x4c5d4f['model']['enqueueChange'](_0x5d4018=>{_0x5d4018['setSelection'](null),_0x5d4018['removeSelectionAttribute'](_0x4c5d4f['model']['document']['selection']['getAttributeKeys']());const _0x1bb9f3=Object['keys'](_0x123f66);for(const _0x4da2c0 of _0x4c5d4f['model']['document']['roots'])'$graveyard'!=_0x4da2c0['rootName']&&_0x4da2c0['isAttached']()&&!_0x1bb9f3['includes'](_0x4da2c0['rootName'])&&_0x5d4018['detachRoot'](_0x4da2c0);for(const _0x6109c1 of _0x1bb9f3){let _0x55998e=_0x4c5d4f['model']['document']['getRoot'](_0x6109c1);_0x55998e&&_0x55998e['isAttached']()||(_0x55998e=_0x5d4018['addRoot'](_0x6109c1));const _0x47e3e2=_0x1c2659[_0x6109c1],_0xe71936=Object['keys'](_0x47e3e2),_0x5b9dd1=_0x123f66[_0x6109c1];for(const _0xcb8a40 of _0x55998e['getAttributeKeys']())_0xe71936['includes'](_0xcb8a40)||_0x5d4018['removeAttribute'](_0xcb8a40,_0x55998e);for(const _0x20f45d of _0xe71936)_0x5d4018['setAttribute'](_0x20f45d,_0x1c2659[_0x6109c1][_0x20f45d],_0x55998e);_0x5d4018['remove'](_0x5d4018['createRangeIn'](_0x55998e)),_0x5d4018['insert'](_0x4c5d4f['data']['parse'](_0x5b9dd1,_0x55998e),_0x55998e,0x0);}});const _0x1ec31c=m(_0x4c5d4f['locale'],'Restored');if(_0x55c149['name'])_0x5c7290=-0x1==_0x55c149['name']['indexOf'](_0x1ec31c)?_0x1ec31c+':\x20'+_0x55c149['name']:_0x55c149['name'];else _0x5c7290=_0x1ec31c+':\x20'+(_0x55c149['createdAt']['toLocaleDateString'](_0x4c5d4f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x55c149['createdAt']['toLocaleTimeString'](_0x4c5d4f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x432f4e['saveRevision']({'name':_0x5c7290}),_0x3f381e['isReady']=!0x0,_0x4c5d4f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|