@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20230913.0 → 0.0.0-nightly-20230915.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "0.0.0-nightly-20230913.0",
3
+ "version": "0.0.0-nightly-20230915.0",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "0.0.0-nightly-20230913.0",
34
+ "ckeditor5": "0.0.0-nightly-20230915.0",
35
35
  "date-fns": "2.30.0"
36
36
  },
37
37
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x488c=['plugins','includes','CommentsOnly','commands','config','context','addCommentThread','comment:admin','permissions-set-permissions-invalid-channel-id','get','document:write','setPermissions','no-permissions','find','noPermissions','comment:write','disableReadOnlyMode','collaboration.channelId','enableReadOnlyMode','editors','comment:modify_all'];(function(_0x23105b,_0x488c02){const _0x1f76a1=function(_0x2ba275){while(--_0x2ba275){_0x23105b['push'](_0x23105b['shift']());}};_0x1f76a1(++_0x488c02);}(_0x488c,0xf7));const _0x1f76=function(_0x23105b,_0x488c02){_0x23105b=_0x23105b-0x0;let _0x1f76a1=_0x488c[_0x23105b];return _0x1f76a1;};import{ContextPlugin as _0xebcb96,Editor as _0x130f53}from'ckeditor5/src/core';import{CKEditorError as _0x2602c2}from'ckeditor5/src/utils';export default class n extends _0xebcb96{static get['pluginName'](){return'Permissions';}['setPermissions'](_0x3afbb8,_0x5872f4){let _0x1739db;if(_0x5872f4||(_0x5872f4=this[_0x1f76('0xa')]['config'][_0x1f76('0xe')](_0x1f76('0x1'))),this['context'][_0x1f76('0x9')][_0x1f76('0xe')](_0x1f76('0x1'))==_0x5872f4?_0x1739db=this[_0x1f76('0xa')]:_0x1f76('0x3')in this[_0x1f76('0xa')]&&this[_0x1f76('0xa')][_0x1f76('0x3')]&&(_0x1739db=this[_0x1f76('0xa')][_0x1f76('0x3')][_0x1f76('0x12')](_0x230913=>_0x230913[_0x1f76('0x9')][_0x1f76('0xe')]('collaboration.channelId')==_0x5872f4)),!_0x1739db)throw new _0x2602c2(_0x1f76('0xd'),null);const _0x211d72=_0x1739db[_0x1f76('0x5')],_0x3fbd19=_0x211d72['has']('CommentsRepository')?_0x211d72[_0x1f76('0xe')]('CommentsRepository'):void 0x0,_0x27eedc=_0x211d72['has'](_0x1f76('0x7'))&&_0x211d72[_0x1f76('0xe')]('CommentsOnly'),_0x23214a=_0x3afbb8['includes'](_0x1f76('0xf')),_0x1f9443=_0x3afbb8[_0x1f76('0x6')](_0x1f76('0x4')),_0x5abbf9=_0x3afbb8[_0x1f76('0x6')](_0x1f76('0xc')),_0x228c84=_0x3afbb8[_0x1f76('0x6')](_0x1f76('0x14')),_0x28771e=_0x228c84||_0x5abbf9,_0x3db2c3=_0x28771e||_0x1f9443,_0x358611=_0x23214a||_0x28771e;(_0x27eedc&&(_0x27eedc['isEnabled']=!_0x23214a&&_0x3db2c3),_0x1739db instanceof _0x130f53)&&(!(_0x23214a||_0x3db2c3&&_0x3fbd19)?_0x1739db[_0x1f76('0x2')]('no-permissions'):_0x1739db[_0x1f76('0x0')](_0x1f76('0x11')));if(_0x3fbd19){_0x3fbd19[_0x1f76('0x10')]({'admin':_0x5abbf9,'modifyAll':_0x1f9443,'write':_0x228c84,'resolve':_0x358611},_0x5872f4);const _0x1a76ef=_0x1739db instanceof _0x130f53&&_0x1739db[_0x1f76('0x8')][_0x1f76('0xe')](_0x1f76('0xb'));_0x1a76ef&&(_0x28771e?_0x1a76ef['clearForceDisabled'](_0x1f76('0x13')):_0x1a76ef['forceDisabled'](_0x1f76('0x13')));}}}
23
+ const _0xe3ec=['includes','get','permissions-set-permissions-invalid-channel-id','plugins','forceDisabled','comment:write','CommentsRepository','document:write','context','addCommentThread','commands','comment:admin','Permissions','collaboration.channelId','setPermissions','config','no-permissions','enableReadOnlyMode','CommentsOnly','find','isEnabled','has','editors','noPermissions','disableReadOnlyMode','comment:modify_all'];(function(_0x3e0f91,_0xe3ecc1){const _0x5b60b8=function(_0x12dd86){while(--_0x12dd86){_0x3e0f91['push'](_0x3e0f91['shift']());}};_0x5b60b8(++_0xe3ecc1);}(_0xe3ec,0x168));const _0x5b60=function(_0x3e0f91,_0xe3ecc1){_0x3e0f91=_0x3e0f91-0x0;let _0x5b60b8=_0xe3ec[_0x3e0f91];return _0x5b60b8;};import{ContextPlugin as _0x2634d7,Editor as _0x447e88}from'ckeditor5/src/core';import{CKEditorError as _0x201485}from'ckeditor5/src/utils';export default class n extends _0x2634d7{static get['pluginName'](){return _0x5b60('0x10');}[_0x5b60('0x12')](_0x283297,_0xd68faa){let _0x16234b;if(_0xd68faa||(_0xd68faa=this[_0x5b60('0xc')][_0x5b60('0x13')]['get'](_0x5b60('0x11'))),this[_0x5b60('0xc')][_0x5b60('0x13')][_0x5b60('0x5')](_0x5b60('0x11'))==_0xd68faa?_0x16234b=this[_0x5b60('0xc')]:_0x5b60('0x0')in this[_0x5b60('0xc')]&&this[_0x5b60('0xc')][_0x5b60('0x0')]&&(_0x16234b=this['context'][_0x5b60('0x0')][_0x5b60('0x17')](_0x214727=>_0x214727['config']['get'](_0x5b60('0x11'))==_0xd68faa)),!_0x16234b)throw new _0x201485(_0x5b60('0x6'),null);const _0x4e6c2b=_0x16234b[_0x5b60('0x7')],_0x30f616=_0x4e6c2b[_0x5b60('0x19')](_0x5b60('0xa'))?_0x4e6c2b['get'](_0x5b60('0xa')):void 0x0,_0x32f484=_0x4e6c2b['has'](_0x5b60('0x16'))&&_0x4e6c2b[_0x5b60('0x5')](_0x5b60('0x16')),_0x487a00=_0x283297[_0x5b60('0x4')](_0x5b60('0xb')),_0x51bf3f=_0x283297[_0x5b60('0x4')](_0x5b60('0x3')),_0x1470f1=_0x283297['includes'](_0x5b60('0xf')),_0x31124b=_0x283297['includes'](_0x5b60('0x9')),_0x17654d=_0x31124b||_0x1470f1,_0x8f7ccf=_0x17654d||_0x51bf3f,_0x1d5c63=_0x487a00||_0x17654d;(_0x32f484&&(_0x32f484[_0x5b60('0x18')]=!_0x487a00&&_0x8f7ccf),_0x16234b instanceof _0x447e88)&&(!(_0x487a00||_0x8f7ccf&&_0x30f616)?_0x16234b[_0x5b60('0x15')](_0x5b60('0x14')):_0x16234b[_0x5b60('0x2')]('no-permissions'));if(_0x30f616){_0x30f616[_0x5b60('0x12')]({'admin':_0x1470f1,'modifyAll':_0x51bf3f,'write':_0x31124b,'resolve':_0x1d5c63},_0xd68faa);const _0x5657ef=_0x16234b instanceof _0x447e88&&_0x16234b[_0x5b60('0xe')][_0x5b60('0x5')](_0x5b60('0xd'));_0x5657ef&&(_0x17654d?_0x5657ef['clearForceDisabled'](_0x5b60('0x1')):_0x5657ef[_0x5b60('0x8')](_0x5b60('0x1')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f37=['push','url(\x27','div','avatar','ck-user__notification','notificationView','ck\x20ck-user__name','setTemplate','name','ck-user__img','extendTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__anonymous','ck-user','ck-user__icon','isAnonymous'];(function(_0x1f7675,_0x3f372e){const _0x25cef4=function(_0x14bebf){while(--_0x14bebf){_0x1f7675['push'](_0x1f7675['shift']());}};_0x25cef4(++_0x3f372e);}(_0x3f37,0x6c));const _0x25ce=function(_0x1f7675,_0x3f372e){_0x1f7675=_0x1f7675-0x0;let _0x25cef4=_0x3f37[_0x1f7675];return _0x25cef4;};import{View as _0xfe1ef2,IconView as _0x553751}from'ckeditor5/src/ui';import _0x335da1 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0xfe1ef2{constructor(_0x5eb3fa,_0x3fdc04,_0xf9da0b){super(_0x5eb3fa),this[_0x25ce('0xc')]=_0x3fdc04['name'],this[_0x25ce('0x9')]=null;const _0xdf0c6e=['ck',_0x25ce('0xd')];if(_0x3fdc04[_0x25ce('0x3')]&&_0xdf0c6e['push'](_0x25ce('0x0')),_0x3fdc04['avatar']&&_0xdf0c6e[_0x25ce('0x4')]('ck-user__avatar'),_0xf9da0b){const _0x3cb17f=new _0x553751();_0x3cb17f[_0x25ce('0xe')]({'attributes':{'class':[_0x25ce('0x2')]}}),_0x3cb17f['content']=_0x335da1,this['notificationView']={'tag':_0x25ce('0x6'),'attributes':{'class':['ck',_0x25ce('0x8')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0xf9da0b},'children':[_0x3cb17f]};}const _0x6e3be4=[{'tag':'div','attributes':{'class':_0xdf0c6e,'style':{'background-image':_0x3fdc04['avatar']?_0x25ce('0x5')+_0x3fdc04['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x3fdc04[_0x25ce('0x7')]?_0x25ce('0xf'):_0x25ce('0xa')},'children':[{'text':_0x3fdc04['initials']}]}];this[_0x25ce('0x9')]&&_0x6e3be4[_0x25ce('0x4')](this[_0x25ce('0x9')]),this[_0x25ce('0xb')]({'tag':_0x25ce('0x6'),'attributes':{'class':['ck',_0x25ce('0x1')],'data-user-id':_0x3fdc04['id']},'children':_0x6e3be4});}}
23
+ const _0x5041=['avatar','ck\x20ck-user__name','isAnonymous','ck\x20ck-user__name\x20ck-user__name--hidden','initials','name','ck-user','div','push','setTemplate','notificationView','ck-user__img','ck-user__notification','ck-user__anonymous','extendTemplate','url(\x27'];(function(_0x116877,_0x50413e){const _0x4444d1=function(_0x3acf39){while(--_0x3acf39){_0x116877['push'](_0x116877['shift']());}};_0x4444d1(++_0x50413e);}(_0x5041,0x68));const _0x4444=function(_0x116877,_0x50413e){_0x116877=_0x116877-0x0;let _0x4444d1=_0x5041[_0x116877];return _0x4444d1;};import{View as _0x5c3a0b,IconView as _0x25b987}from'ckeditor5/src/ui';import _0x344404 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x5c3a0b{constructor(_0xea53b2,_0x2d44ec,_0x101ae3){super(_0xea53b2),this[_0x4444('0xd')]=_0x2d44ec[_0x4444('0xd')],this['notificationView']=null;const _0x121135=['ck',_0x4444('0x3')];if(_0x2d44ec[_0x4444('0xa')]&&_0x121135[_0x4444('0x0')](_0x4444('0x5')),_0x2d44ec[_0x4444('0x8')]&&_0x121135[_0x4444('0x0')]('ck-user__avatar'),_0x101ae3){const _0x34b1ad=new _0x25b987();_0x34b1ad[_0x4444('0x6')]({'attributes':{'class':['ck-user__icon']}}),_0x34b1ad['content']=_0x344404,this[_0x4444('0x2')]={'tag':_0x4444('0xf'),'attributes':{'class':['ck',_0x4444('0x4')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x101ae3},'children':[_0x34b1ad]};}const _0x3c839c=[{'tag':_0x4444('0xf'),'attributes':{'class':_0x121135,'style':{'background-image':_0x2d44ec['avatar']?_0x4444('0x7')+_0x2d44ec[_0x4444('0x8')]+'\x27)':''}}},{'tag':_0x4444('0xf'),'attributes':{'class':_0x2d44ec[_0x4444('0x8')]?_0x4444('0xb'):_0x4444('0x9')},'children':[{'text':_0x2d44ec[_0x4444('0xc')]}]}];this[_0x4444('0x2')]&&_0x3c839c[_0x4444('0x0')](this['notificationView']),this[_0x4444('0x1')]({'tag':_0x4444('0xf'),'attributes':{'class':['ck',_0x4444('0xe')],'data-user-id':_0x2d44ec['id']},'children':_0x3c839c});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x474d=['getBackgroundColorClass','trial-license-key-reached-limit-time','decorate','charAt','licenseKeyInvalid','licenseKey','users-add-duplicated-id','getSelectionClass','trial-license-key-reached-limit-revisions','color','licenseKeyValid','ck-user__selection--','length','invalid-license-key','get','Anonymous','users','licenseKeyTrial','_locale','has','licenseKeyTrialLimit:revisions','string','anonymous-user','trial-license-key-reached-limit-changes','licenseKeyTrialLimit:operations','info','avatar','context','useAnonymousUser','_id','Users','users.colorsCount','_licenseKeyCheckInterval','_getNextColor','name','ck-user__bg-color--','_isAnonymous','split','initials','_myId','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','addUser','getUser','config','pluginName','define','licenseKeyTrialLimit:time','init','requires','users-me-already-defined','getMarkerClass','defineMe','getOperationAuthor','_lastColor','locale','destroy','toUpperCase','_getInitial','_addAnonymousUser','add','users-me-missing-user','users.anonymousUserId','includes'];(function(_0x4c4564,_0x474d1c){const _0x495131=function(_0x50fc27){while(--_0x50fc27){_0x4c4564['push'](_0x4c4564['shift']());}};_0x495131(++_0x474d1c);}(_0x474d,0x1a4));const _0x4951=function(_0x4c4564,_0x474d1c){_0x4c4564=_0x4c4564-0x0;let _0x495131=_0x474d[_0x4c4564];return _0x495131;};import{ContextPlugin as _0x1b2a39}from'ckeditor5/src/core';import{Collection as _0x483e2e,CKEditorError as _0x1c0d9f}from'ckeditor5/src/utils';import _0xa03c42 from'./permissions';import{getTranslation as _0x5b3d3d}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x1b2a39{static get[_0x4951('0x2')](){return _0x4951('0x33');}static get[_0x4951('0x6')](){return[_0xa03c42];}constructor(_0xf136de){super(_0xf136de),this[_0x4951('0x30')][_0x4951('0x1')]['define']('users.anonymousUserId',_0x4951('0x2b')),this[_0x4951('0x30')][_0x4951('0x1')][_0x4951('0x3')](_0x4951('0x34'),0x8),this[_0x4951('0x25')]=new _0x483e2e(),this['_locale']=_0xf136de[_0x4951('0xc')],this['_licenseKeyCheckInterval']=null,this[_0x4951('0xb')]=0x0,this[_0x4951('0x3c')]=null,this[_0x4951('0x17')]('getOperationAuthor');}[_0x4951('0x5')](){const _0x24acaf=this[_0x4951('0x30')];this['licenseKey']=_0x24acaf['config']['get'](_0x4951('0x1a'));const _0x2d0d70=[_0x4951('0x26'),'licenseKeyInvalid',_0x4951('0x1f'),'licenseKeyTrialLimit:operations','licenseKeyTrialLimit:time',_0x4951('0x29')];this[_0x4951('0x35')]=setInterval(()=>{let _0x4f10cc;for(const _0x4ef438 in _0x24acaf){const _0x23b3fc=_0x24acaf[_0x4ef438];if(_0x2d0d70[_0x4951('0x14')](_0x23b3fc)){delete _0x24acaf[_0x4ef438],_0x4f10cc=_0x23b3fc;break;}}if(_0x4951('0x19')===_0x4f10cc)throw clearInterval(this[_0x4951('0x35')]),new _0x1c0d9f(_0x4951('0x22'),null);if(_0x4951('0x26')===_0x4f10cc&&console[_0x4951('0x2e')](_0x4951('0x3d')),_0x4951('0x2d')===_0x4f10cc)throw clearInterval(this[_0x4951('0x35')]),new _0x1c0d9f(_0x4951('0x2c'),null);if(_0x4951('0x4')===_0x4f10cc)throw clearInterval(this[_0x4951('0x35')]),new _0x1c0d9f(_0x4951('0x16'),null);if('licenseKeyTrialLimit:revisions'===_0x4f10cc)throw clearInterval(this[_0x4951('0x35')]),new _0x1c0d9f(_0x4951('0x1d'),null);'licenseKeyValid'===_0x4f10cc&&clearInterval(this[_0x4951('0x35')]);},0x3e8),this[_0x4951('0x10')]();}get['me'](){return null==this['_myId']?null:this['getUser'](this[_0x4951('0x3c')]);}['addUser']({id:_0x57479f,name:_0x255604,..._0x2c7106}){if(!_0x57479f||_0x4951('0x2a')!=typeof _0x57479f)throw new _0x1c0d9f('users-add-invalid-id');if(this[_0x4951('0x25')][_0x4951('0x28')](_0x57479f))throw new _0x1c0d9f(_0x4951('0x1b'),null,{'id':_0x57479f});const _0x841b9a={..._0x2c7106,'id':_0x57479f,'name':a(this[_0x4951('0x27')],_0x255604),'color':this[_0x4951('0x36')]()};_0x841b9a['name']=a(this['_locale'],_0x841b9a[_0x4951('0x37')]);const _0x1fd8e0=new User(_0x841b9a);return this[_0x4951('0x25')][_0x4951('0x11')](_0x1fd8e0),_0x1fd8e0;}['getUser'](_0x50007b){return this[_0x4951('0x25')]['get'](_0x50007b);}[_0x4951('0x31')](){const _0x1923bc=this[_0x4951('0x30')][_0x4951('0x1')][_0x4951('0x23')]('users.anonymousUserId');this[_0x4951('0x3c')]||this[_0x4951('0x9')](_0x1923bc);}[_0x4951('0x9')](_0x43eaac){if(this[_0x4951('0x3c')])throw new _0x1c0d9f(_0x4951('0x7'),null);if(!this[_0x4951('0x0')](_0x43eaac))throw new _0x1c0d9f(_0x4951('0x12'),null);this[_0x4951('0x3c')]=_0x43eaac;}[_0x4951('0xa')](){return this['me'];}['destroy'](){super[_0x4951('0xd')](),clearInterval(this[_0x4951('0x35')]);}[_0x4951('0x36')](){const _0x19b0c1=this[_0x4951('0x30')][_0x4951('0x1')][_0x4951('0x23')](_0x4951('0x34'));return this[_0x4951('0xb')]>=_0x19b0c1&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}[_0x4951('0x10')](){const _0x17ce69=this[_0x4951('0x30')]['config'][_0x4951('0x23')](_0x4951('0x13'));this[_0x4951('0x3e')]({'id':_0x17ce69,'name':_0x5b3d3d(this[_0x4951('0x27')],_0x4951('0x24'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x34c1f4){this['id']=_0x34c1f4['id'],this[_0x4951('0x1e')]=_0x34c1f4['color'],this[_0x4951('0x37')]=_0x34c1f4[_0x4951('0x37')],this[_0x4951('0x2f')]=_0x34c1f4[_0x4951('0x2f')],this[_0x4951('0x39')]=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get[_0x4951('0x3b')](){const _0xe95b96=this['name'][_0x4951('0x3a')]('\x20');return 0x1===_0xe95b96['length']?this[_0x4951('0xf')](_0xe95b96[0x0]):this[_0x4951('0xf')](_0xe95b96[0x0])+this[_0x4951('0xf')](_0xe95b96[_0xe95b96[_0x4951('0x21')]-0x1]);}[_0x4951('0xf')](_0xf20106){return _0xf20106[_0x4951('0x18')](0x0)[_0x4951('0xe')]();}}function a(_0x381404,_0x77171=''){return''==(_0x77171=_0x77171['trim']())?_0x5b3d3d(_0x381404,_0x4951('0x24')):_0x77171;}class u{constructor(_0x431309){this['_id']=_0x431309;}[_0x4951('0x15')](){return _0x4951('0x38')+this[_0x4951('0x32')];}[_0x4951('0x1c')](){return _0x4951('0x20')+this['_id'];}[_0x4951('0x8')](){return'ck-user__marker--'+this[_0x4951('0x32')];}}
23
+ const _0x84d1=['getBackgroundColorClass','split','_addAnonymousUser','licenseKey','defineMe','getOperationAuthor','trial-license-key-reached-limit-time','licenseKeyTrialLimit:time','requires','users-add-invalid-id','users-me-already-defined','getSelectionClass','has','anonymous-user','users','users.anonymousUserId','licenseKeyTrialLimit:revisions','isAnonymous','get','_getInitial','users-add-duplicated-id','getMarkerClass','getUser','string','avatar','includes','_locale','length','define','licenseKeyInvalid','context','config','invalid-license-key','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','_isAnonymous','licenseKeyTrial','ck-user__marker--','users.colorsCount','_myId','destroy','licenseKeyTrialLimit:operations','_licenseKeyCheckInterval','_getNextColor','trial-license-key-reached-limit-changes','_lastColor','name','toUpperCase','trim','useAnonymousUser','trial-license-key-reached-limit-revisions','init','licenseKeyValid','color','info','_id','users-me-missing-user'];(function(_0x659db8,_0x84d1a9){const _0x2d884a=function(_0x4688f4){while(--_0x4688f4){_0x659db8['push'](_0x659db8['shift']());}};_0x2d884a(++_0x84d1a9);}(_0x84d1,0x7e));const _0x2d88=function(_0x659db8,_0x84d1a9){_0x659db8=_0x659db8-0x0;let _0x2d884a=_0x84d1[_0x659db8];return _0x2d884a;};import{ContextPlugin as _0x5c40c4}from'ckeditor5/src/core';import{Collection as _0x30b1f0,CKEditorError as _0xc7bf31}from'ckeditor5/src/utils';import _0x175a84 from'./permissions';import{getTranslation as _0x28448c}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x5c40c4{static get['pluginName'](){return'Users';}static get[_0x2d88('0x32')](){return[_0x175a84];}constructor(_0x43b73a){super(_0x43b73a),this[_0x2d88('0x10')][_0x2d88('0x11')]['define'](_0x2d88('0x1'),_0x2d88('0x37')),this[_0x2d88('0x10')][_0x2d88('0x11')][_0x2d88('0xe')](_0x2d88('0x17'),0x8),this['users']=new _0x30b1f0(),this[_0x2d88('0xc')]=_0x43b73a['locale'],this[_0x2d88('0x1b')]=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate'](_0x2d88('0x2f'));}[_0x2d88('0x24')](){const _0x5449d8=this[_0x2d88('0x10')];this[_0x2d88('0x2d')]=_0x5449d8['config'][_0x2d88('0x4')](_0x2d88('0x2d'));const _0x58ff1c=[_0x2d88('0x15'),'licenseKeyInvalid','licenseKeyValid',_0x2d88('0x1a'),_0x2d88('0x31'),'licenseKeyTrialLimit:revisions'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d57cc;for(const _0x80bd36 in _0x5449d8){const _0x151961=_0x5449d8[_0x80bd36];if(_0x58ff1c[_0x2d88('0xb')](_0x151961)){delete _0x5449d8[_0x80bd36],_0x2d57cc=_0x151961;break;}}if(_0x2d88('0xf')===_0x2d57cc)throw clearInterval(this[_0x2d88('0x1b')]),new _0xc7bf31(_0x2d88('0x12'),null);if('licenseKeyTrial'===_0x2d57cc&&console[_0x2d88('0x27')](_0x2d88('0x13')),_0x2d88('0x1a')===_0x2d57cc)throw clearInterval(this[_0x2d88('0x1b')]),new _0xc7bf31(_0x2d88('0x1d'),null);if(_0x2d88('0x31')===_0x2d57cc)throw clearInterval(this[_0x2d88('0x1b')]),new _0xc7bf31(_0x2d88('0x30'),null);if(_0x2d88('0x2')===_0x2d57cc)throw clearInterval(this[_0x2d88('0x1b')]),new _0xc7bf31(_0x2d88('0x23'),null);_0x2d88('0x25')===_0x2d57cc&&clearInterval(this[_0x2d88('0x1b')]);},0x3e8),this[_0x2d88('0x2c')]();}get['me'](){return null==this[_0x2d88('0x18')]?null:this[_0x2d88('0x8')](this[_0x2d88('0x18')]);}['addUser']({id:_0x555efb,name:_0x579d5b,..._0x3f7514}){if(!_0x555efb||_0x2d88('0x9')!=typeof _0x555efb)throw new _0xc7bf31(_0x2d88('0x33'));if(this[_0x2d88('0x0')][_0x2d88('0x36')](_0x555efb))throw new _0xc7bf31(_0x2d88('0x6'),null,{'id':_0x555efb});const _0x2853ef={..._0x3f7514,'id':_0x555efb,'name':a(this[_0x2d88('0xc')],_0x579d5b),'color':this['_getNextColor']()};_0x2853ef['name']=a(this['_locale'],_0x2853ef[_0x2d88('0x1f')]);const _0x480842=new User(_0x2853ef);return this[_0x2d88('0x0')]['add'](_0x480842),_0x480842;}[_0x2d88('0x8')](_0x51db2d){return this[_0x2d88('0x0')][_0x2d88('0x4')](_0x51db2d);}[_0x2d88('0x22')](){const _0x155f75=this[_0x2d88('0x10')][_0x2d88('0x11')][_0x2d88('0x4')](_0x2d88('0x1'));this[_0x2d88('0x18')]||this[_0x2d88('0x2e')](_0x155f75);}[_0x2d88('0x2e')](_0x4cd0b4){if(this[_0x2d88('0x18')])throw new _0xc7bf31(_0x2d88('0x34'),null);if(!this['getUser'](_0x4cd0b4))throw new _0xc7bf31(_0x2d88('0x29'),null);this[_0x2d88('0x18')]=_0x4cd0b4;}[_0x2d88('0x2f')](){return this['me'];}[_0x2d88('0x19')](){super[_0x2d88('0x19')](),clearInterval(this[_0x2d88('0x1b')]);}[_0x2d88('0x1c')](){const _0x24302f=this[_0x2d88('0x10')][_0x2d88('0x11')]['get'](_0x2d88('0x17'));return this['_lastColor']>=_0x24302f&&(this[_0x2d88('0x1e')]=0x0),new u(this[_0x2d88('0x1e')]++);}['_addAnonymousUser'](){const _0x3ba9a2=this[_0x2d88('0x10')][_0x2d88('0x11')][_0x2d88('0x4')](_0x2d88('0x1'));this['addUser']({'id':_0x3ba9a2,'name':_0x28448c(this[_0x2d88('0xc')],'Anonymous')})[_0x2d88('0x14')]=!0x0;}}export class User{constructor(_0x25608b){this['id']=_0x25608b['id'],this[_0x2d88('0x26')]=_0x25608b['color'],this[_0x2d88('0x1f')]=_0x25608b['name'],this[_0x2d88('0xa')]=_0x25608b[_0x2d88('0xa')],this[_0x2d88('0x14')]=!0x1;}get[_0x2d88('0x3')](){return this[_0x2d88('0x14')];}get['initials'](){const _0xd9d3ae=this['name'][_0x2d88('0x2b')]('\x20');return 0x1===_0xd9d3ae[_0x2d88('0xd')]?this[_0x2d88('0x5')](_0xd9d3ae[0x0]):this[_0x2d88('0x5')](_0xd9d3ae[0x0])+this[_0x2d88('0x5')](_0xd9d3ae[_0xd9d3ae[_0x2d88('0xd')]-0x1]);}[_0x2d88('0x5')](_0x24e3f6){return _0x24e3f6['charAt'](0x0)[_0x2d88('0x20')]();}}function a(_0x28c3b8,_0x3db848=''){return''==(_0x3db848=_0x3db848[_0x2d88('0x21')]())?_0x28448c(_0x28c3b8,'Anonymous'):_0x3db848;}class u{constructor(_0x460b47){this[_0x2d88('0x28')]=_0x460b47;}[_0x2d88('0x2a')](){return'ck-user__bg-color--'+this[_0x2d88('0x28')];}[_0x2d88('0x35')](){return'ck-user__selection--'+this[_0x2d88('0x28')];}[_0x2d88('0x7')](){return _0x2d88('0x16')+this[_0x2d88('0x28')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5369ac,_0x5eda41){const t=_0x5369ac['t'];switch(_0x5eda41){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
23
+ export function getTranslation(_0x244445,_0x44f356){const t=_0x244445['t'];switch(_0x44f356){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4384=['_removeConfirm','focus','registerChild','once','element','deregisterChild','appendChild','isConfirm','cancel','cancelConfirm','submit','fire','showConfirm','confirmView','remove','set'];(function(_0x5a9a37,_0x438458){var _0x1047ac=function(_0x1d5c0f){while(--_0x1d5c0f){_0x5a9a37['push'](_0x5a9a37['shift']());}};_0x1047ac(++_0x438458);}(_0x4384,0x1e0));var _0x1047=function(_0x5a9a37,_0x438458){_0x5a9a37=_0x5a9a37-0x0;var _0x1047ac=_0x4384[_0x5a9a37];return _0x1047ac;};import _0x5d6fa7 from'./confirmview';export default function m(_0x2dcf0e){return class extends _0x2dcf0e{[_0x1047('0xc')](_0x5cce0e,_0x38e8e4){return this['confirmView']=new _0x5d6fa7(this['locale']),this['confirmView']['render'](),this[_0x1047('0xd')]['message']=_0x5cce0e,this[_0x1047('0xd')]['once'](_0x1047('0x8'),()=>{this['_removeConfirm']();}),this[_0x1047('0xd')][_0x1047('0x3')](_0x1047('0xa'),()=>{this[_0x1047('0x0')]();}),_0x38e8e4[_0x1047('0x6')](this['confirmView'][_0x1047('0x4')]),this[_0x1047('0x2')](this[_0x1047('0xd')]),this[_0x1047('0x4')][_0x1047('0x1')](),this[_0x1047('0xf')](_0x1047('0x7'),!0x0),new Promise(_0x502c80=>this[_0x1047('0xd')]['on'](_0x1047('0xa'),_0x502c80));}[_0x1047('0x9')](){this[_0x1047('0x7')]&&this[_0x1047('0xd')][_0x1047('0xb')](_0x1047('0x8'));}[_0x1047('0x0')](){this[_0x1047('0x4')]&&this[_0x1047('0xd')]&&this[_0x1047('0xd')][_0x1047('0x4')]&&(this[_0x1047('0x4')][_0x1047('0x1')](),this[_0x1047('0xd')][_0x1047('0x4')][_0x1047('0xe')](),this[_0x1047('0x5')](this[_0x1047('0xd')]),this[_0x1047('0x7')]=!0x1,this[_0x1047('0xd')]['destroy'](),this[_0x1047('0xd')]=void 0x0);}};}
23
+ var _0x4311=['locale','remove','submit','once','focus','appendChild','element','showConfirm','cancelConfirm','message','render','registerChild','set','isConfirm','destroy','cancel','confirmView'];(function(_0xba0dc6,_0x4311ab){var _0x23ac84=function(_0x48b925){while(--_0x48b925){_0xba0dc6['push'](_0xba0dc6['shift']());}};_0x23ac84(++_0x4311ab);}(_0x4311,0x94));var _0x23ac=function(_0xba0dc6,_0x4311ab){_0xba0dc6=_0xba0dc6-0x0;var _0x23ac84=_0x4311[_0xba0dc6];return _0x23ac84;};import _0x35e6c6 from'./confirmview';export default function m(_0x15d6ec){return class extends _0x15d6ec{[_0x23ac('0xc')](_0xaf695d,_0x5c5e32){return this[_0x23ac('0x4')]=new _0x35e6c6(this[_0x23ac('0x5')]),this[_0x23ac('0x4')][_0x23ac('0xf')](),this[_0x23ac('0x4')][_0x23ac('0xe')]=_0xaf695d,this[_0x23ac('0x4')][_0x23ac('0x8')](_0x23ac('0x3'),()=>{this['_removeConfirm']();}),this['confirmView'][_0x23ac('0x8')](_0x23ac('0x7'),()=>{this['_removeConfirm']();}),_0x5c5e32[_0x23ac('0xa')](this['confirmView'][_0x23ac('0xb')]),this[_0x23ac('0x10')](this[_0x23ac('0x4')]),this[_0x23ac('0xb')][_0x23ac('0x9')](),this[_0x23ac('0x0')](_0x23ac('0x1'),!0x0),new Promise(_0x73931d=>this[_0x23ac('0x4')]['on']('submit',_0x73931d));}[_0x23ac('0xd')](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this[_0x23ac('0xb')]&&this[_0x23ac('0x4')]&&this[_0x23ac('0x4')][_0x23ac('0xb')]&&(this[_0x23ac('0xb')][_0x23ac('0x9')](),this['confirmView']['element'][_0x23ac('0x6')](),this['deregisterChild'](this[_0x23ac('0x4')]),this[_0x23ac('0x1')]=!0x1,this[_0x23ac('0x4')][_0x23ac('0x2')](),this['confirmView']=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f65=['check','label','_createButtonView','icon','message','ck-thread__remove-confirm-','set','submitView','cancelView','ck-thread__remove-confirm-actions','setTemplate','Yes','div','cancel','execute','Are\x20you\x20sure?','extendTemplate','bindTemplate'];(function(_0x2f906c,_0x4f6568){const _0x1f06af=function(_0x19058d){while(--_0x19058d){_0x2f906c['push'](_0x2f906c['shift']());}};_0x1f06af(++_0x4f6568);}(_0x4f65,0x12b));const _0x1f06=function(_0x2f906c,_0x4f6568){_0x2f906c=_0x2f906c-0x0;let _0x1f06af=_0x4f65[_0x2f906c];return _0x1f06af;};import{View as _0x18ab79,ButtonView as _0x401f88}from'ckeditor5/src/ui';import{icons as _0x7e11d6}from'ckeditor5/src/core';import{getTranslation as _0x3c5760}from'./common-translations';export default class h extends _0x18ab79{constructor(_0x3524ce){super(_0x3524ce);const _0x608740=this[_0x1f06('0x6')];this[_0x1f06('0xe')]=this[_0x1f06('0x9')](_0x3524ce,_0x3c5760(_0x3524ce,_0x1f06('0x0')),_0x7e11d6[_0x1f06('0x7')],'submit'),this[_0x1f06('0xf')]=this[_0x1f06('0x9')](_0x3524ce,_0x3c5760(_0x3524ce,'No'),_0x7e11d6[_0x1f06('0x2')],_0x1f06('0x2')),this[_0x1f06('0xd')]('message',_0x3c5760(_0x3524ce,_0x1f06('0x4'))),this[_0x1f06('0x11')]({'tag':_0x1f06('0x1'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x1f06('0x1'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x608740['to'](_0x1f06('0xb'))}]},{'tag':_0x1f06('0x1'),'attributes':{'class':_0x1f06('0x10')},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x5b9f8d,_0x123333,_0x218e06,_0x122480){const _0x446304=new _0x401f88(_0x5b9f8d);return _0x446304[_0x1f06('0x8')]=_0x123333,_0x446304[_0x1f06('0xa')]=_0x218e06,_0x446304[_0x1f06('0x5')]({'attributes':{'class':_0x1f06('0xc')+_0x122480}}),_0x446304['on'](_0x1f06('0x3'),()=>this['fire'](_0x122480)),_0x446304;}}
23
+ const _0x115f=['submit','Yes','ck-thread__remove-confirm','div','cancelView','message','icon','bindTemplate','fire','extendTemplate','ck-thread__remove-confirm-inner','execute','cancel','set','Are\x20you\x20sure?','submitView','ck-thread__remove-confirm-actions','label'];(function(_0x4e07c1,_0x115f00){const _0x5758cf=function(_0x17aafc){while(--_0x17aafc){_0x4e07c1['push'](_0x4e07c1['shift']());}};_0x5758cf(++_0x115f00);}(_0x115f,0x1ac));const _0x5758=function(_0x4e07c1,_0x115f00){_0x4e07c1=_0x4e07c1-0x0;let _0x5758cf=_0x115f[_0x4e07c1];return _0x5758cf;};import{View as _0x39b571,ButtonView as _0x1821ee}from'ckeditor5/src/ui';import{icons as _0x4c84dd}from'ckeditor5/src/core';import{getTranslation as _0x5afdf0}from'./common-translations';export default class h extends _0x39b571{constructor(_0xc4a05c){super(_0xc4a05c);const _0x285fa7=this[_0x5758('0xb')];this[_0x5758('0x1')]=this['_createButtonView'](_0xc4a05c,_0x5afdf0(_0xc4a05c,_0x5758('0x5')),_0x4c84dd['check'],_0x5758('0x4')),this['cancelView']=this['_createButtonView'](_0xc4a05c,_0x5afdf0(_0xc4a05c,'No'),_0x4c84dd[_0x5758('0x10')],'cancel'),this[_0x5758('0x11')](_0x5758('0x9'),_0x5afdf0(_0xc4a05c,_0x5758('0x0'))),this['setTemplate']({'tag':_0x5758('0x7'),'attributes':{'class':[_0x5758('0x6')]},'children':[{'tag':_0x5758('0x7'),'attributes':{'class':_0x5758('0xe')},'children':[{'tag':'p','children':[{'text':_0x285fa7['to'](_0x5758('0x9'))}]},{'tag':_0x5758('0x7'),'attributes':{'class':_0x5758('0x2')},'children':[this[_0x5758('0x1')],this[_0x5758('0x8')]]}]}]});}['_createButtonView'](_0x12a5da,_0x302479,_0x4d2304,_0x42e770){const _0xdf13bb=new _0x1821ee(_0x12a5da);return _0xdf13bb[_0x5758('0x3')]=_0x302479,_0xdf13bb[_0x5758('0xa')]=_0x4d2304,_0xdf13bb[_0x5758('0xd')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x42e770}}),_0xdf13bb['on'](_0x5758('0xf'),()=>this[_0x5758('0xc')](_0x42e770)),_0xdf13bb;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48a9=['dateTimeFormat','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','string','invalid-date-time-format','\x27Last\x27\x20EEEE\x20hh:mma','function'];(function(_0x5de81d,_0x48a9d5){const _0xd01e17=function(_0xaeac91){while(--_0xaeac91){_0x5de81d['push'](_0x5de81d['shift']());}};_0xd01e17(++_0x48a9d5);}(_0x48a9,0x1ee));const _0xd01e=function(_0x5de81d,_0x48a9d5){_0x5de81d=_0x5de81d-0x0;let _0xd01e17=_0x48a9[_0x5de81d];return _0xd01e17;};import _0x4d345b from'date-fns/format';import _0x1de881 from'date-fns/parseISO';import _0xcf6333 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x534d66}from'ckeditor5/src/utils';export default function E(_0x9f4ad8={}){if(void 0x0!==_0x9f4ad8[_0xd01e('0x3')]&&_0xd01e('0x2')!=typeof _0x9f4ad8[_0xd01e('0x3')])throw new _0x534d66(_0xd01e('0x0'));return _0x2089b4=>{const _0x29a16d=_0xd01e('0x6')==typeof _0x2089b4?_0x1de881(_0x2089b4):_0x2089b4,_0x275508=new Date(),_0x1bb3b9=_0xcf6333(_0x275508,_0x29a16d);return _0x9f4ad8[_0xd01e('0x3')]?_0x9f4ad8[_0xd01e('0x3')](_0x29a16d):_0x4d345b(_0x29a16d,0x0===_0x1bb3b9?'\x27Today\x27\x20hh:mma':0x1===_0x1bb3b9?_0xd01e('0x4'):_0x1bb3b9<0x7?_0xd01e('0x1'):_0xd01e('0x5'));};}
23
+ const _0x30d4=['string','\x27Last\x27\x20EEEE\x20hh:mma','MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format'];(function(_0x5008cb,_0x30d4fa){const _0x198beb=function(_0x228ac1){while(--_0x228ac1){_0x5008cb['push'](_0x5008cb['shift']());}};_0x198beb(++_0x30d4fa);}(_0x30d4,0x1b4));const _0x198b=function(_0x5008cb,_0x30d4fa){_0x5008cb=_0x5008cb-0x0;let _0x198beb=_0x30d4[_0x5008cb];return _0x198beb;};import _0x2d9756 from'date-fns/format';import _0x5389da from'date-fns/parseISO';import _0x9f600d from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x5e4058}from'ckeditor5/src/utils';export default function E(_0x403b30={}){if(void 0x0!==_0x403b30[_0x198b('0x3')]&&'function'!=typeof _0x403b30[_0x198b('0x3')])throw new _0x5e4058(_0x198b('0x4'));return _0xc8e59f=>{const _0x3abe4d=_0x198b('0x5')==typeof _0xc8e59f?_0x5389da(_0xc8e59f):_0xc8e59f,_0x5b9cd3=new Date(),_0x38253a=_0x9f600d(_0x5b9cd3,_0x3abe4d);return _0x403b30[_0x198b('0x3')]?_0x403b30['dateTimeFormat'](_0x3abe4d):_0x2d9756(_0x3abe4d,0x0===_0x38253a?_0x198b('0x2'):0x1===_0x38253a?_0x198b('0x1'):_0x38253a<0x7?_0x198b('0x6'):_0x198b('0x0'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4edb=['length','filter','map','getClientRects','name','domElement','markerNameToElements','push','mapViewToDom','sort','mapper','view','domConverter'];(function(_0x5bf384,_0x4edb2b){const _0x2c8317=function(_0x4cabb0){while(--_0x4cabb0){_0x5bf384['push'](_0x5bf384['shift']());}};_0x2c8317(++_0x4edb2b);}(_0x4edb,0x1e6));const _0x2c83=function(_0x5bf384,_0x4edb2b){_0x5bf384=_0x5bf384-0x0;let _0x2c8317=_0x4edb[_0x5bf384];return _0x2c8317;};import{first as _0x4ef8c6}from'ckeditor5/src/utils';export default function k(_0x26b708,_0x2a7e84){const _0x21b889=_0x26b708[_0x2c83('0x5')][_0x2c83('0x1')](_0x2a7e84[_0x2c83('0xc')]);if(!_0x21b889)return null;const _0xceeaae=_0x4ef8c6(_0x21b889['values']());return _0x26b708['view'][_0x2c83('0x7')][_0x2c83('0x3')](_0xceeaae)||null;}export function getAllMarkersDomElementsSorted(_0x180c99,_0x2a7943){if(0x0===_0x2a7943[_0x2c83('0x8')])return null;const _0x352f42=[],_0x5466b8=_0x180c99[_0x2c83('0x6')][_0x2c83('0x7')];for(const _0x8cf5d4 of _0x2a7943){const _0x13fcda=_0x180c99[_0x2c83('0x5')]['markerNameToElements'](_0x8cf5d4[_0x2c83('0xc')]);if(!_0x13fcda)continue;const _0x4f1193=Array['from'](_0x13fcda)[_0x2c83('0xa')](_0x27e2b9=>_0x5466b8[_0x2c83('0x3')](_0x27e2b9))[_0x2c83('0x9')](_0x1a7b07=>!!_0x1a7b07);_0x352f42[_0x2c83('0x2')](..._0x4f1193);}if(0x0===_0x352f42[_0x2c83('0x8')])return null;const _0x2f0f67=[];for(const _0x4acfc7 of _0x352f42){const _0xee5242=_0x4acfc7[_0x2c83('0xb')]()['item'](0x0);_0xee5242&&_0x2f0f67[_0x2c83('0x2')]({'x':_0xee5242['x'],'y':_0xee5242['y'],'domElement':_0x4acfc7});}return 0x0===_0x2f0f67[_0x2c83('0x8')]?null:(_0x2f0f67[_0x2c83('0x4')]((_0x506166,_0x5a9059)=>_0x506166['y']-_0x5a9059['y']||_0x506166['x']-_0x5a9059['x']),_0x2f0f67[_0x2c83('0xa')](_0xdb17ec=>_0xdb17ec[_0x2c83('0x0')]));}
23
+ const _0x5001=['values','getClientRects','length','domConverter','push','name','mapViewToDom','markerNameToElements','map','mapper','domElement','view'];(function(_0x1316ba,_0x50014c){const _0x11650d=function(_0x5c204b){while(--_0x5c204b){_0x1316ba['push'](_0x1316ba['shift']());}};_0x11650d(++_0x50014c);}(_0x5001,0xb4));const _0x1165=function(_0x1316ba,_0x50014c){_0x1316ba=_0x1316ba-0x0;let _0x11650d=_0x5001[_0x1316ba];return _0x11650d;};import{first as _0x36d511}from'ckeditor5/src/utils';export default function k(_0x5c5849,_0x54de33){const _0x3a8ec5=_0x5c5849['mapper'][_0x1165('0x7')](_0x54de33[_0x1165('0x5')]);if(!_0x3a8ec5)return null;const _0x15c3e4=_0x36d511(_0x3a8ec5[_0x1165('0x0')]());return _0x5c5849['view'][_0x1165('0x3')][_0x1165('0x6')](_0x15c3e4)||null;}export function getAllMarkersDomElementsSorted(_0x4eb08f,_0xce8ec6){if(0x0===_0xce8ec6[_0x1165('0x2')])return null;const _0x58a26a=[],_0x419c8c=_0x4eb08f[_0x1165('0xb')][_0x1165('0x3')];for(const _0x199144 of _0xce8ec6){const _0x4201bd=_0x4eb08f[_0x1165('0x9')]['markerNameToElements'](_0x199144[_0x1165('0x5')]);if(!_0x4201bd)continue;const _0x13c9c9=Array['from'](_0x4201bd)[_0x1165('0x8')](_0x3d2952=>_0x419c8c[_0x1165('0x6')](_0x3d2952))['filter'](_0x1c8ef1=>!!_0x1c8ef1);_0x58a26a[_0x1165('0x4')](..._0x13c9c9);}if(0x0===_0x58a26a[_0x1165('0x2')])return null;const _0x321381=[];for(const _0x319994 of _0x58a26a){const _0x45fa35=_0x319994[_0x1165('0x1')]()['item'](0x0);_0x45fa35&&_0x321381['push']({'x':_0x45fa35['x'],'y':_0x45fa35['y'],'domElement':_0x319994});}return 0x0===_0x321381[_0x1165('0x2')]?null:(_0x321381['sort']((_0x523bcc,_0x3dd700)=>_0x523bcc['y']-_0x3dd700['y']||_0x523bcc['x']-_0x3dd700['x']),_0x321381[_0x1165('0x8')](_0x58c76d=>_0x58c76d[_0x1165('0xa')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x376c=['boolean','sign','isArray','sort','string','charCodeAt','object'];(function(_0x29d1f2,_0x376c51){const _0x1794a6=function(_0x5c14f8){while(--_0x5c14f8){_0x29d1f2['push'](_0x29d1f2['shift']());}};_0x1794a6(++_0x376c51);}(_0x376c,0x113));const _0x1794=function(_0x29d1f2,_0x376c51){_0x29d1f2=_0x29d1f2-0x0;let _0x1794a6=_0x376c[_0x29d1f2];return _0x1794a6;};export default function b(_0xdbfcf4){let _0x32b951=0x0,_0xc517e2=0x0;for(const _0x3318c0 of g(_0xdbfcf4))_0x32b951=(_0x32b951<<0x5)-_0x32b951+_0x3318c0,_0x32b951&=_0x32b951,[_0x32b951,_0xc517e2]=[_0xc517e2,_0x32b951];return O(_0x32b951)+O(_0xc517e2);}function*j(_0x212de8){_0x212de8?_0x1794('0x5')==typeof _0x212de8?yield 0x1:Array[_0x1794('0x0')](_0x212de8)?yield*function*(_0x2e0708){for(const _0x1d49b9 of _0x2e0708)yield*j(_0x1d49b9);}(_0x212de8):_0x1794('0x4')==typeof _0x212de8?yield*g(_0x212de8):_0x1794('0x2')==typeof _0x212de8?yield*A(_0x212de8):'number'==typeof _0x212de8&&(yield _0x212de8):yield 0x0;}function*g(_0x447ffd){if(yield M('{'),_0x447ffd){const _0x1f7dd0=Object['keys'](_0x447ffd)[_0x1794('0x1')]();for(const _0x4dea8a of _0x1f7dd0){yield*A(_0x4dea8a),yield M(':');const _0x38b97d=_0x447ffd[_0x4dea8a];yield*j(_0x38b97d);}}yield M('}');}function*A(_0x41a337){yield M('\x22');for(const _0xd2db2e of _0x41a337)yield M(_0xd2db2e);yield M('\x22');}function M(_0x39f3d4){return _0x39f3d4[_0x1794('0x3')](0x0);}function O(_0x5d0406){return(_0x5d0406*=Math[_0x1794('0x6')](_0x5d0406))['toString'](0x24);}
23
+ const _0x46fe=['isArray','keys','string','boolean','sort','sign','object'];(function(_0xa43508,_0x46fe1b){const _0x19f790=function(_0x5f3c0b){while(--_0x5f3c0b){_0xa43508['push'](_0xa43508['shift']());}};_0x19f790(++_0x46fe1b);}(_0x46fe,0x8f));const _0x19f7=function(_0xa43508,_0x46fe1b){_0xa43508=_0xa43508-0x0;let _0x19f790=_0x46fe[_0xa43508];return _0x19f790;};export default function b(_0x4c0c80){let _0x1e032c=0x0,_0x2cac0d=0x0;for(const _0x43594e of g(_0x4c0c80))_0x1e032c=(_0x1e032c<<0x5)-_0x1e032c+_0x43594e,_0x1e032c&=_0x1e032c,[_0x1e032c,_0x2cac0d]=[_0x2cac0d,_0x1e032c];return O(_0x1e032c)+O(_0x2cac0d);}function*j(_0x34e487){_0x34e487?_0x19f7('0x0')==typeof _0x34e487?yield 0x1:Array[_0x19f7('0x4')](_0x34e487)?yield*function*(_0x33d559){for(const _0xc1eccf of _0x33d559)yield*j(_0xc1eccf);}(_0x34e487):_0x19f7('0x3')==typeof _0x34e487?yield*g(_0x34e487):_0x19f7('0x6')==typeof _0x34e487?yield*A(_0x34e487):'number'==typeof _0x34e487&&(yield _0x34e487):yield 0x0;}function*g(_0x26bd5c){if(yield M('{'),_0x26bd5c){const _0x39bb74=Object[_0x19f7('0x5')](_0x26bd5c)[_0x19f7('0x1')]();for(const _0x125a8a of _0x39bb74){yield*A(_0x125a8a),yield M(':');const _0xf06c51=_0x26bd5c[_0x125a8a];yield*j(_0xf06c51);}}yield M('}');}function*A(_0x325420){yield M('\x22');for(const _0x4ee1dd of _0x325420)yield M(_0x4ee1dd);yield M('\x22');}function M(_0x4a0c74){return _0x4a0c74['charCodeAt'](0x0);}function O(_0x1a6c39){return(_0x1a6c39*=Math[_0x19f7('0x2')](_0x1a6c39))['toString'](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b2c=['filter','removePlugins','every','concat','context','names','WordCount','WebSocketGateway','get','name','includes','extraPlugins','pluginName','rootsAttributes','Autosave','set','plugins','config','toolbar','length','string','find','constructor','builtinPlugins','requires','DocumentOutline','WProofreader','from','initialData'];(function(_0x80528e,_0x2b2c14){const _0x47a2e7=function(_0x25c570){while(--_0x25c570){_0x80528e['push'](_0x80528e['shift']());}};_0x47a2e7(++_0x2b2c14);}(_0x2b2c,0x85));const _0x47a2=function(_0x80528e,_0x2b2c14){_0x80528e=_0x80528e-0x0;let _0x47a2e7=_0x2b2c[_0x80528e];return _0x47a2e7;};const w=[_0x47a2('0xb'),_0x47a2('0x10'),_0x47a2('0x1'),_0x47a2('0x19')],W=[_0x47a2('0x13'),'RevisionTracker',_0x47a2('0x1a'),_0x47a2('0x12'),_0x47a2('0x8'),_0x47a2('0x9')];function v(_0x17346b,_0x22dfd0,_0x478cae,_0x58bf91=[]){const _0x200504=_0x47a2('0x3')==typeof _0x17346b?_0x478cae[_0x47a2('0x14')](_0x17346b)[_0x47a2('0x5')]:_0x17346b,_0x3c38c2=_0x200504[_0x47a2('0x18')]||_0x200504[_0x47a2('0x15')];if(_0x22dfd0['has'](_0x3c38c2))return _0x22dfd0[_0x47a2('0x14')](_0x3c38c2);if(_0x22dfd0['set'](_0x3c38c2,!0x0),_0x3c38c2&&W[_0x47a2('0xf')](_0x58bf91)[_0x47a2('0x16')](_0x3c38c2))return _0x22dfd0[_0x47a2('0x1b')](_0x3c38c2,!0x1),!0x1;if(!_0x200504[_0x47a2('0x7')])return _0x22dfd0[_0x47a2('0x1b')](_0x3c38c2,!0x0),!0x0;const _0x11470b=_0x200504[_0x47a2('0x7')][_0x47a2('0xe')](_0x15a736=>v(_0x15a736,_0x22dfd0,_0x478cae,_0x58bf91));return _0x22dfd0[_0x47a2('0x1b')](_0x3c38c2,_0x11470b),_0x11470b;}export default function D(_0x5b2864,_0x27f49f){const _0x5555b3={};for(const _0x293952 of _0x5b2864[_0x47a2('0x0')][_0x47a2('0x11')]())w[_0x47a2('0x16')](_0x293952)||(_0x5555b3[_0x293952]=_0x5b2864[_0x47a2('0x0')]['get'](_0x293952));const _0x188a56=_0x5555b3['plugins']||[],_0x4aca21=_0x5b2864[_0x47a2('0x5')][_0x47a2('0x6')]||[],_0x31da37=_0x188a56[_0x47a2('0x2')]?_0x188a56:_0x4aca21,_0x2cdbf1=_0x5555b3[_0x47a2('0x17')]||[];delete _0x5555b3[_0x47a2('0x17')];const _0x17ec77=_0x5555b3[_0x47a2('0xd')]||[];delete _0x5555b3[_0x47a2('0xd')];const _0x212de5=_0x5b2864['_context'][_0x47a2('0x0')][_0x47a2('0x14')](_0x47a2('0x1c'))||[],_0x92d752=_0x31da37[_0x47a2('0xf')](_0x2cdbf1)['concat'](_0x212de5)['map'](_0x6e7bdc=>'string'==typeof _0x6e7bdc?_0x4aca21[_0x47a2('0x4')](_0xa303df=>_0xa303df[_0x47a2('0x18')]==_0x6e7bdc):_0x6e7bdc)[_0x47a2('0xc')](_0x1985a5=>!_0x17ec77[_0x47a2('0x16')](_0x1985a5)),_0x2552cd=Array[_0x47a2('0xa')](new Set(_0x92d752)),_0x488e17=new Map();return _0x5555b3[_0x47a2('0x1c')]=_0x2552cd[_0x47a2('0xc')](_0x479eb8=>v(_0x479eb8,_0x488e17,_0x5b2864['plugins'],_0x27f49f)),_0x5555b3;}
23
+ const _0xada5=['pluginName','string','filter','Autosave','requires','plugins','initialData','set','WProofreader','toolbar','config','DocumentOutline','every','find','context','from','get','_context','concat','WebSocketGateway','extraPlugins','includes','removePlugins','RevisionTracker','constructor','builtinPlugins','name','length','names'];(function(_0x3da457,_0xada5b5){const _0x496cee=function(_0x387630){while(--_0x387630){_0x3da457['push'](_0x3da457['shift']());}};_0x496cee(++_0xada5b5);}(_0xada5,0x74));const _0x496c=function(_0x3da457,_0xada5b5){_0x3da457=_0x3da457-0x0;let _0x496cee=_0xada5[_0x3da457];return _0x496cee;};const w=[_0x496c('0x6'),_0x496c('0xe'),_0x496c('0x9'),'rootsAttributes'],W=[_0x496c('0x13'),_0x496c('0x17'),_0x496c('0x3'),'WordCount',_0x496c('0xb'),_0x496c('0x8')];function v(_0xd217f9,_0xc2a48,_0x19a43f,_0xaadea8=[]){const _0x3fbef1=_0x496c('0x1')==typeof _0xd217f9?_0x19a43f['get'](_0xd217f9)[_0x496c('0x18')]:_0xd217f9,_0x3901a7=_0x3fbef1[_0x496c('0x0')]||_0x3fbef1[_0x496c('0x1a')];if(_0xc2a48['has'](_0x3901a7))return _0xc2a48[_0x496c('0x10')](_0x3901a7);if(_0xc2a48[_0x496c('0x7')](_0x3901a7,!0x0),_0x3901a7&&W[_0x496c('0x12')](_0xaadea8)[_0x496c('0x15')](_0x3901a7))return _0xc2a48['set'](_0x3901a7,!0x1),!0x1;if(!_0x3fbef1['requires'])return _0xc2a48['set'](_0x3901a7,!0x0),!0x0;const _0xf8ac0a=_0x3fbef1[_0x496c('0x4')][_0x496c('0xc')](_0x5433cd=>v(_0x5433cd,_0xc2a48,_0x19a43f,_0xaadea8));return _0xc2a48[_0x496c('0x7')](_0x3901a7,_0xf8ac0a),_0xf8ac0a;}export default function D(_0x563cce,_0x1c14be){const _0x43ad00={};for(const _0xe92c92 of _0x563cce['config'][_0x496c('0x1c')]())w['includes'](_0xe92c92)||(_0x43ad00[_0xe92c92]=_0x563cce[_0x496c('0xa')]['get'](_0xe92c92));const _0x4a0518=_0x43ad00[_0x496c('0x5')]||[],_0x5336a6=_0x563cce['constructor'][_0x496c('0x19')]||[],_0x133e59=_0x4a0518[_0x496c('0x1b')]?_0x4a0518:_0x5336a6,_0x4a58a6=_0x43ad00['extraPlugins']||[];delete _0x43ad00[_0x496c('0x14')];const _0xb28e67=_0x43ad00['removePlugins']||[];delete _0x43ad00[_0x496c('0x16')];const _0x2ac41f=_0x563cce[_0x496c('0x11')][_0x496c('0xa')][_0x496c('0x10')](_0x496c('0x5'))||[],_0x532713=_0x133e59[_0x496c('0x12')](_0x4a58a6)[_0x496c('0x12')](_0x2ac41f)['map'](_0x5c484e=>_0x496c('0x1')==typeof _0x5c484e?_0x5336a6[_0x496c('0xd')](_0x368635=>_0x368635[_0x496c('0x0')]==_0x5c484e):_0x5c484e)[_0x496c('0x2')](_0x2abcfc=>!_0xb28e67[_0x496c('0x15')](_0x2abcfc)),_0xe1d88e=Array[_0x496c('0xf')](new Set(_0x532713)),_0x21a038=new Map();return _0x43ad00[_0x496c('0x5')]=_0xe1d88e[_0x496c('0x2')](_0x439642=>v(_0x439642,_0x21a038,_0x563cce[_0x496c('0x5')],_0x1c14be)),_0x43ad00;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c2a=['slice','length','match','...','startsWith','split','join','replace','substring','pop','push','indexOf'];(function(_0x137b54,_0x4c2ad6){const _0x8299ab=function(_0x3b1f2d){while(--_0x3b1f2d){_0x137b54['push'](_0x137b54['shift']());}};_0x8299ab(++_0x4c2ad6);}(_0x4c2a,0xb5));const _0x8299=function(_0x137b54,_0x4c2ad6){_0x137b54=_0x137b54-0x0;let _0x8299ab=_0x4c2a[_0x137b54];return _0x8299ab;};export default function z(_0x4fc205,{limit:_0x145c59,suffix:_0xc75e92=_0x8299('0x2')}){const _0x11d115=[];let _0x2bd710=0x0;const _0x170599=_0x4fc205['replace'](/</g,'\x0a<')[_0x8299('0x6')](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')[_0x8299('0x4')]('\x0a');for(let _0x14b107=0x0;_0x14b107<_0x170599[_0x8299('0x0')];_0x14b107++){let _0x4d9468=_0x170599[_0x14b107];const _0x1e1988=Z(_0x4d9468);if(_0x4d9468['startsWith']('<')){if(_0x2bd710>=_0x145c59){const _0x12ba39=_0x4d9468[_0x8299('0x1')](/[a-zA-Z]+/);if(!_0x12ba39){_0x170599[_0x14b107]='';continue;}const _0xb1aa61=_0x12ba39[0x0];_0x4d9468[_0x8299('0x3')]('</')?(_0x11d115[_0x8299('0x0')]&&(_0x4d9468=''),_0x11d115[_0x8299('0x8')]()):(_0x11d115['push'](_0xb1aa61),_0x4d9468='');}}else{if(_0x2bd710>=_0x145c59)_0x4d9468='';else{if(_0x2bd710+_0x1e1988[_0x8299('0x0')]>=_0x145c59){let _0x41708e=_0x145c59-_0x2bd710;if('\x20'===_0x1e1988[_0x41708e-0x1])_0x41708e--;else{const _0x5c2062=_0x1e1988['slice'](_0x41708e)[_0x8299('0xa')]('\x20');-0x1!==_0x5c2062?_0x41708e+=_0x5c2062:_0x41708e=_0x4d9468[_0x8299('0x0')];}_0x4d9468=_0x1e1988[_0x8299('0xb')](0x0,_0x41708e)[_0x8299('0x5')]('')+_0xc75e92,_0x2bd710=_0x145c59;}else _0x2bd710+=_0x1e1988[_0x8299('0x0')];}}_0x170599[_0x14b107]=_0x4d9468;}return _0x170599[_0x8299('0x5')]('\x0a')['replace'](/\n/g,'');}function Z(_0x1dab2a){const _0x102661=[];for(let _0x4dc77b=0x0;_0x4dc77b<_0x1dab2a[_0x8299('0x0')];_0x4dc77b++){const _0x3da424=_0x1dab2a[_0x8299('0x7')](_0x4dc77b)[_0x8299('0x1')](/^&[a-z0-9#]+;/);if(_0x3da424){const _0x200b62=_0x3da424[0x0];_0x102661['push'](_0x200b62),_0x4dc77b+=_0x200b62['length']-0x1;}else _0x102661[_0x8299('0x9')](_0x1dab2a[_0x4dc77b]);}return _0x102661;}
23
+ const _0x1daf=['substring','push','indexOf','join','slice','match','startsWith','pop','length','replace'];(function(_0x23f5c4,_0x1daf06){const _0x4d16ca=function(_0x21e09){while(--_0x21e09){_0x23f5c4['push'](_0x23f5c4['shift']());}};_0x4d16ca(++_0x1daf06);}(_0x1daf,0xfb));const _0x4d16=function(_0x23f5c4,_0x1daf06){_0x23f5c4=_0x23f5c4-0x0;let _0x4d16ca=_0x1daf[_0x23f5c4];return _0x4d16ca;};export default function z(_0x39c56f,{limit:_0x5c5fb0,suffix:_0x5de559='...'}){const _0x4a302e=[];let _0x430b36=0x0;const _0x292703=_0x39c56f['replace'](/</g,'\x0a<')[_0x4d16('0x8')](/>/g,'>\x0a')[_0x4d16('0x8')](/^\n/g,'')[_0x4d16('0x8')](/\n$/g,'')['split']('\x0a');for(let _0x5cddd6=0x0;_0x5cddd6<_0x292703[_0x4d16('0x7')];_0x5cddd6++){let _0x8e24b6=_0x292703[_0x5cddd6];const _0x5f4185=Z(_0x8e24b6);if(_0x8e24b6[_0x4d16('0x5')]('<')){if(_0x430b36>=_0x5c5fb0){const _0x2ceb0e=_0x8e24b6[_0x4d16('0x4')](/[a-zA-Z]+/);if(!_0x2ceb0e){_0x292703[_0x5cddd6]='';continue;}const _0x5d0ed6=_0x2ceb0e[0x0];_0x8e24b6[_0x4d16('0x5')]('</')?(_0x4a302e[_0x4d16('0x7')]&&(_0x8e24b6=''),_0x4a302e[_0x4d16('0x6')]()):(_0x4a302e[_0x4d16('0x0')](_0x5d0ed6),_0x8e24b6='');}}else{if(_0x430b36>=_0x5c5fb0)_0x8e24b6='';else{if(_0x430b36+_0x5f4185[_0x4d16('0x7')]>=_0x5c5fb0){let _0x4d6c9e=_0x5c5fb0-_0x430b36;if('\x20'===_0x5f4185[_0x4d6c9e-0x1])_0x4d6c9e--;else{const _0x46ed2c=_0x5f4185[_0x4d16('0x3')](_0x4d6c9e)[_0x4d16('0x1')]('\x20');-0x1!==_0x46ed2c?_0x4d6c9e+=_0x46ed2c:_0x4d6c9e=_0x8e24b6[_0x4d16('0x7')];}_0x8e24b6=_0x5f4185[_0x4d16('0x3')](0x0,_0x4d6c9e)[_0x4d16('0x2')]('')+_0x5de559,_0x430b36=_0x5c5fb0;}else _0x430b36+=_0x5f4185[_0x4d16('0x7')];}}_0x292703[_0x5cddd6]=_0x8e24b6;}return _0x292703[_0x4d16('0x2')]('\x0a')[_0x4d16('0x8')](/\n/g,'');}function Z(_0xc4d3be){const _0x3cb706=[];for(let _0x276d1e=0x0;_0x276d1e<_0xc4d3be['length'];_0x276d1e++){const _0x134901=_0xc4d3be[_0x4d16('0x9')](_0x276d1e)[_0x4d16('0x4')](/^&[a-z0-9#]+;/);if(_0x134901){const _0x1a3e04=_0x134901[0x0];_0x3cb706['push'](_0x1a3e04),_0x276d1e+=_0x1a3e04['length']-0x1;}else _0x3cb706[_0x4d16('0x0')](_0xc4d3be[_0x276d1e]);}return _0x3cb706;}