@ckeditor/ckeditor5-collaboration-core 38.0.0 → 38.1.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,9 +1,12 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "38.0.0",
3
+ "version": "38.1.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/)",
7
+ "bugs": {
8
+ "url": "https://support.ckeditor.com/hc/en-us/requests/new"
9
+ },
7
10
  "homepage": "https://ckeditor.com/collaboration/",
8
11
  "keywords": [
9
12
  "CKEditor",
@@ -28,9 +31,13 @@
28
31
  ],
29
32
  "main": "src/index.js",
30
33
  "dependencies": {
31
- "ckeditor5": "^38.0.0",
34
+ "ckeditor5": "38.1.0",
32
35
  "date-fns": "^2.17.0"
33
36
  },
37
+ "engines": {
38
+ "node": ">=16.0.0",
39
+ "npm": ">=5.7.1"
40
+ },
34
41
  "files": [
35
42
  "lang",
36
43
  "src/**/*.js",
@@ -38,10 +45,6 @@
38
45
  "theme",
39
46
  "CHANGELOG.md"
40
47
  ],
41
- "scripts": {
42
- "build": "tsc -p ./tsconfig.json",
43
- "postversion": "npm run build"
44
- },
45
48
  "types": "src/index.d.ts",
46
49
  "obfuscated": true
47
50
  }
@@ -1 +1,17 @@
1
- export {};
1
+ /**
2
+ * @module collaboration-core/collaborationhistory
3
+ * @publicApi
4
+ */
5
+ import type { default as CollaborationOperation } from './collaborationoperation';
6
+ /**
7
+ * Interface compatible with {@link module:engine/model/history~History} with the difference that it uses
8
+ * {@link module:collaboration-core/collaborationoperation~CollaborationOperation} instead of regular model operations.
9
+ */
10
+ export default interface CollaborationHistory {
11
+ _operations: Array<CollaborationOperation>;
12
+ version: number;
13
+ getOperations(fromBaseVersion?: number, toBaseVersion?: number): Array<CollaborationOperation>;
14
+ getOperation(baseVersion: number): CollaborationOperation | undefined;
15
+ addOperation(operation: CollaborationOperation): void;
16
+ reset(): void;
17
+ }
@@ -26,7 +26,7 @@ export default class Permissions extends ContextPlugin {
26
26
  /**
27
27
  * @inheritDoc
28
28
  */
29
- static get pluginName(): 'Permissions';
29
+ static get pluginName(): "Permissions";
30
30
  /**
31
31
  * Sets permissions for editor/context instance with given `channelId`.
32
32
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x95b2=['CommentsOnly','config','document:write','comment:write','editors','Permissions','find','CommentsRepository','noPermissions','addCommentThread','plugins','pluginName','commands','comment:modify_all','collaboration.channelId','has','includes','forceDisabled','get','context','no-permissions','enableReadOnlyMode','setPermissions','comment:admin','disableReadOnlyMode'];(function(_0x5bb32b,_0x95b244){const _0x40447d=function(_0x141bfe){while(--_0x141bfe){_0x5bb32b['push'](_0x5bb32b['shift']());}};_0x40447d(++_0x95b244);}(_0x95b2,0x1e5));const _0x4044=function(_0x5bb32b,_0x95b244){_0x5bb32b=_0x5bb32b-0x0;let _0x40447d=_0x95b2[_0x5bb32b];return _0x40447d;};import{ContextPlugin as _0x41d38c,Editor as _0x35b4b7}from'ckeditor5/src/core';import{CKEditorError as _0x1de67b}from'ckeditor5/src/utils';export default class n extends _0x41d38c{static get[_0x4044('0x1')](){return _0x4044('0x14');}[_0x4044('0xc')](_0x4cd807,_0x3a620f){let _0x29fcb2;if(_0x3a620f||(_0x3a620f=this[_0x4044('0x9')]['config'][_0x4044('0x8')](_0x4044('0x4'))),this[_0x4044('0x9')][_0x4044('0x10')][_0x4044('0x8')](_0x4044('0x4'))==_0x3a620f?_0x29fcb2=this[_0x4044('0x9')]:_0x4044('0x13')in this[_0x4044('0x9')]&&this[_0x4044('0x9')][_0x4044('0x13')]&&(_0x29fcb2=this[_0x4044('0x9')]['editors'][_0x4044('0x15')](_0x16a612=>_0x16a612['config'][_0x4044('0x8')](_0x4044('0x4'))==_0x3a620f)),!_0x29fcb2)throw new _0x1de67b('permissions-set-permissions-invalid-channel-id',null);const _0x127b3d=_0x29fcb2[_0x4044('0x0')],_0x1a25a8=_0x127b3d[_0x4044('0x5')](_0x4044('0x16'))?_0x127b3d['get'](_0x4044('0x16')):void 0x0,_0x290bd2=_0x127b3d['has'](_0x4044('0xf'))&&_0x127b3d[_0x4044('0x8')](_0x4044('0xf')),_0x397b20=_0x4cd807[_0x4044('0x6')](_0x4044('0x11')),_0x27cbfa=_0x4cd807[_0x4044('0x6')](_0x4044('0x3')),_0x1eb89e=_0x4cd807['includes'](_0x4044('0xd')),_0x3acbb4=_0x4cd807[_0x4044('0x6')](_0x4044('0x12')),_0x4bd464=_0x3acbb4||_0x1eb89e,_0x3c3201=_0x4bd464||_0x27cbfa;(_0x290bd2&&(_0x290bd2['isEnabled']=!_0x397b20&&_0x3c3201),_0x29fcb2 instanceof _0x35b4b7)&&(!(_0x397b20||_0x3c3201&&_0x1a25a8)?_0x29fcb2[_0x4044('0xb')](_0x4044('0xa')):_0x29fcb2[_0x4044('0xe')](_0x4044('0xa')));if(_0x1a25a8){_0x1a25a8[_0x4044('0xc')]({'admin':_0x1eb89e,'modifyAll':_0x27cbfa,'write':_0x3acbb4},_0x3a620f);const _0x3cc298=_0x29fcb2 instanceof _0x35b4b7&&_0x29fcb2[_0x4044('0x2')][_0x4044('0x8')](_0x4044('0x18'));_0x3cc298&&(_0x4bd464?_0x3cc298['clearForceDisabled'](_0x4044('0x17')):_0x3cc298[_0x4044('0x7')](_0x4044('0x17')));}}}
23
+ const _0x5e8c=['no-permissions','disableReadOnlyMode','isEnabled','commands','get','Permissions','editors','comment:admin','pluginName','collaboration.channelId','clearForceDisabled','comment:write','comment:modify_all','noPermissions','context','forceDisabled','has','enableReadOnlyMode','setPermissions','CommentsOnly','config','includes','find','document:write','CommentsRepository'];(function(_0x7b83b2,_0x5e8ccd){const _0x32d686=function(_0x5a5d79){while(--_0x5a5d79){_0x7b83b2['push'](_0x7b83b2['shift']());}};_0x32d686(++_0x5e8ccd);}(_0x5e8c,0x84));const _0x32d6=function(_0x7b83b2,_0x5e8ccd){_0x7b83b2=_0x7b83b2-0x0;let _0x32d686=_0x5e8c[_0x7b83b2];return _0x32d686;};import{ContextPlugin as _0x43782b,Editor as _0x577200}from'ckeditor5/src/core';import{CKEditorError as _0x53ded7}from'ckeditor5/src/utils';export default class n extends _0x43782b{static get[_0x32d6('0x1')](){return _0x32d6('0x17');}[_0x32d6('0xb')](_0x1e1478,_0x3cbda9){let _0x7ec22;if(_0x3cbda9||(_0x3cbda9=this[_0x32d6('0x7')]['config'][_0x32d6('0x16')](_0x32d6('0x2'))),this['context'][_0x32d6('0xd')][_0x32d6('0x16')](_0x32d6('0x2'))==_0x3cbda9?_0x7ec22=this[_0x32d6('0x7')]:_0x32d6('0x18')in this[_0x32d6('0x7')]&&this[_0x32d6('0x7')][_0x32d6('0x18')]&&(_0x7ec22=this['context']['editors'][_0x32d6('0xf')](_0x2fab39=>_0x2fab39[_0x32d6('0xd')]['get'](_0x32d6('0x2'))==_0x3cbda9)),!_0x7ec22)throw new _0x53ded7('permissions-set-permissions-invalid-channel-id',null);const _0x327d96=_0x7ec22['plugins'],_0x4d11c5=_0x327d96[_0x32d6('0x9')]('CommentsRepository')?_0x327d96[_0x32d6('0x16')](_0x32d6('0x11')):void 0x0,_0x1daf58=_0x327d96[_0x32d6('0x9')]('CommentsOnly')&&_0x327d96[_0x32d6('0x16')](_0x32d6('0xc')),_0x6d144=_0x1e1478[_0x32d6('0xe')](_0x32d6('0x10')),_0x2de56d=_0x1e1478[_0x32d6('0xe')](_0x32d6('0x5')),_0x5199fc=_0x1e1478['includes'](_0x32d6('0x0')),_0x4de50e=_0x1e1478[_0x32d6('0xe')](_0x32d6('0x4')),_0x5cdf33=_0x4de50e||_0x5199fc,_0x356c15=_0x5cdf33||_0x2de56d,_0x50308e=_0x6d144||_0x5cdf33;(_0x1daf58&&(_0x1daf58[_0x32d6('0x14')]=!_0x6d144&&_0x356c15),_0x7ec22 instanceof _0x577200)&&(!(_0x6d144||_0x356c15&&_0x4d11c5)?_0x7ec22[_0x32d6('0xa')](_0x32d6('0x12')):_0x7ec22[_0x32d6('0x13')](_0x32d6('0x12')));if(_0x4d11c5){_0x4d11c5[_0x32d6('0xb')]({'admin':_0x5199fc,'modifyAll':_0x2de56d,'write':_0x4de50e,'resolve':_0x50308e},_0x3cbda9);const _0x2578d5=_0x7ec22 instanceof _0x577200&&_0x7ec22[_0x32d6('0x15')]['get']('addCommentThread');_0x2578d5&&(_0x5cdf33?_0x2578d5[_0x32d6('0x3')]('noPermissions'):_0x2578d5[_0x32d6('0x8')](_0x32d6('0x6')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15de=['extendTemplate','div','ck-user','push','isAnonymous','name','ck-user__icon','ck-user__anonymous','avatar','ck\x20ck-user__name','ck-user__img','setTemplate','notificationView','ck-user__avatar'];(function(_0x960ddb,_0x15de43){const _0x54f744=function(_0x100d49){while(--_0x100d49){_0x960ddb['push'](_0x960ddb['shift']());}};_0x54f744(++_0x15de43);}(_0x15de,0x8b));const _0x54f7=function(_0x960ddb,_0x15de43){_0x960ddb=_0x960ddb-0x0;let _0x54f744=_0x15de[_0x960ddb];return _0x54f744;};import{View as _0x419ab2,IconView as _0xb09462}from'ckeditor5/src/ui';import _0x31e317 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x419ab2{constructor(_0x2b8f12,_0x4d68f7,_0x3119d0){super(_0x2b8f12),this[_0x54f7('0x6')]=_0x4d68f7[_0x54f7('0x6')],this[_0x54f7('0xd')]=null;const _0x50e95a=['ck',_0x54f7('0xb')];if(_0x4d68f7[_0x54f7('0x5')]&&_0x50e95a[_0x54f7('0x4')](_0x54f7('0x8')),_0x4d68f7[_0x54f7('0x9')]&&_0x50e95a[_0x54f7('0x4')](_0x54f7('0x0')),_0x3119d0){const _0x13c31c=new _0xb09462();_0x13c31c[_0x54f7('0x1')]({'attributes':{'class':[_0x54f7('0x7')]}}),_0x13c31c['content']=_0x31e317,this['notificationView']={'tag':_0x54f7('0x2'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3119d0},'children':[_0x13c31c]};}const _0x562dba=[{'tag':_0x54f7('0x2'),'attributes':{'class':_0x50e95a,'style':{'background-image':_0x4d68f7[_0x54f7('0x9')]?'url(\x27'+_0x4d68f7['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x4d68f7[_0x54f7('0x9')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x54f7('0xa')},'children':[{'text':_0x4d68f7['initials']}]}];this[_0x54f7('0xd')]&&_0x562dba['push'](this['notificationView']),this[_0x54f7('0xc')]({'tag':_0x54f7('0x2'),'attributes':{'class':['ck',_0x54f7('0x3')],'data-user-id':_0x4d68f7['id']},'children':_0x562dba});}}
23
+ const _0x3f7e=['url(\x27','ck\x20ck-user__name','isAnonymous','avatar','div','ck-user__icon','extendTemplate','ck-user__avatar','push','ck-user__img','ck-user__notification','notificationView','setTemplate','initials','ck-user__anonymous','name'];(function(_0x95af5f,_0x3f7e59){const _0x4cee84=function(_0x277dea){while(--_0x277dea){_0x95af5f['push'](_0x95af5f['shift']());}};_0x4cee84(++_0x3f7e59);}(_0x3f7e,0x8b));const _0x4cee=function(_0x95af5f,_0x3f7e59){_0x95af5f=_0x95af5f-0x0;let _0x4cee84=_0x3f7e[_0x95af5f];return _0x4cee84;};import{View as _0x2f4640,IconView as _0x573e9a}from'ckeditor5/src/ui';import _0x54d400 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x2f4640{constructor(_0xec9e06,_0xc4ff21,_0x5ac762){super(_0xec9e06),this['name']=_0xc4ff21[_0x4cee('0x4')],this[_0x4cee('0x0')]=null;const _0x5dd025=['ck',_0x4cee('0xe')];if(_0xc4ff21[_0x4cee('0x7')]&&_0x5dd025[_0x4cee('0xd')](_0x4cee('0x3')),_0xc4ff21[_0x4cee('0x8')]&&_0x5dd025['push'](_0x4cee('0xc')),_0x5ac762){const _0x41ef86=new _0x573e9a();_0x41ef86[_0x4cee('0xb')]({'attributes':{'class':[_0x4cee('0xa')]}}),_0x41ef86['content']=_0x54d400,this['notificationView']={'tag':_0x4cee('0x9'),'attributes':{'class':['ck',_0x4cee('0xf')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x5ac762},'children':[_0x41ef86]};}const _0x322cf6=[{'tag':'div','attributes':{'class':_0x5dd025,'style':{'background-image':_0xc4ff21[_0x4cee('0x8')]?_0x4cee('0x5')+_0xc4ff21['avatar']+'\x27)':''}}},{'tag':_0x4cee('0x9'),'attributes':{'class':_0xc4ff21[_0x4cee('0x8')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x4cee('0x6')},'children':[{'text':_0xc4ff21[_0x4cee('0x2')]}]}];this[_0x4cee('0x0')]&&_0x322cf6[_0x4cee('0xd')](this[_0x4cee('0x0')]),this[_0x4cee('0x1')]({'tag':_0x4cee('0x9'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0xc4ff21['id']},'children':_0x322cf6});}}
package/src/users.d.ts CHANGED
@@ -2,8 +2,9 @@
2
2
  * @module collaboration-core/users
3
3
  * @publicApi
4
4
  */
5
- import { ContextPlugin, type ContextPluginDependencies, type Context, type Editor } from 'ckeditor5/src/core';
5
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
6
6
  import { Collection } from 'ckeditor5/src/utils';
7
+ import Permissions from './permissions';
7
8
  import '../theme/usercolors.css';
8
9
  /**
9
10
  * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
@@ -25,11 +26,11 @@ export default class Users extends ContextPlugin {
25
26
  /**
26
27
  * @inheritDoc
27
28
  */
28
- static get pluginName(): 'Users';
29
+ static get pluginName(): "Users";
29
30
  /**
30
31
  * @inheritDoc
31
32
  */
32
- static get requires(): ContextPluginDependencies;
33
+ static get requires(): readonly [typeof Permissions];
33
34
  /**
34
35
  * @inheritDoc
35
36
  */
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3844=['trial-license-key-reached-limit-changes','licenseKeyTrial','ck-user__marker--','string','context','Anonymous','licenseKeyTrialLimit:revisions','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.','users-add-duplicated-id','licenseKeyValid','decorate','users-add-invalid-id','add','requires','licenseKeyTrialLimit:operations','_getInitial','color','name','info','_id','users.colorsCount','useAnonymousUser','avatar','_licenseKeyCheckInterval','_isAnonymous','_myId','_addAnonymousUser','licenseKey','includes','getOperationAuthor','trim','locale','length','addUser','Users','initials','_getNextColor','define','_locale','_lastColor','users.anonymousUserId','charAt','config','isAnonymous','licenseKeyTrialLimit:time','ck-user__selection--','licenseKeyInvalid','defineMe','ck-user__bg-color--','init','getUser','getSelectionClass','split','get','users','destroy'];(function(_0x15e831,_0x3844a8){const _0x1ca5f1=function(_0x36cd47){while(--_0x36cd47){_0x15e831['push'](_0x15e831['shift']());}};_0x1ca5f1(++_0x3844a8);}(_0x3844,0xc0));const _0x1ca5=function(_0x15e831,_0x3844a8){_0x15e831=_0x15e831-0x0;let _0x1ca5f1=_0x3844[_0x15e831];return _0x1ca5f1;};import{ContextPlugin as _0x4115b0}from'ckeditor5/src/core';import{Collection as _0x55f971,CKEditorError as _0x379a24}from'ckeditor5/src/utils';import _0x3879d8 from'./permissions';import{getTranslation as _0x20cdbc}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x4115b0{static get['pluginName'](){return _0x1ca5('0xa');}static get[_0x1ca5('0x2d')](){return[_0x3879d8];}constructor(_0x55153f){super(_0x55153f),this[_0x1ca5('0x24')][_0x1ca5('0x12')][_0x1ca5('0xd')](_0x1ca5('0x10'),'anonymous-user'),this[_0x1ca5('0x24')]['config'][_0x1ca5('0xd')](_0x1ca5('0x34'),0x8),this['users']=new _0x55f971(),this['_locale']=_0x55153f[_0x1ca5('0x7')],this['_licenseKeyCheckInterval']=null,this[_0x1ca5('0xf')]=0x0,this[_0x1ca5('0x1')]=null,this[_0x1ca5('0x2a')](_0x1ca5('0x5'));}[_0x1ca5('0x19')](){const _0x314fe8=this[_0x1ca5('0x24')];this['licenseKey']=_0x314fe8['config'][_0x1ca5('0x1d')](_0x1ca5('0x3'));const _0x302a90=['licenseKeyTrial',_0x1ca5('0x16'),_0x1ca5('0x29'),_0x1ca5('0x2e'),_0x1ca5('0x14'),_0x1ca5('0x26')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a7a95;for(const _0x3a50b3 in _0x314fe8){const _0x21294e=_0x314fe8[_0x3a50b3];if(_0x302a90[_0x1ca5('0x4')](_0x21294e)){delete _0x314fe8[_0x3a50b3],_0x4a7a95=_0x21294e;break;}}if('licenseKeyInvalid'===_0x4a7a95)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x379a24('invalid-license-key',null);if(_0x1ca5('0x21')===_0x4a7a95&&console[_0x1ca5('0x32')](_0x1ca5('0x27')),_0x1ca5('0x2e')===_0x4a7a95)throw clearInterval(this[_0x1ca5('0x37')]),new _0x379a24(_0x1ca5('0x20'),null);if(_0x1ca5('0x14')===_0x4a7a95)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x379a24('trial-license-key-reached-limit-time',null);if('licenseKeyTrialLimit:revisions'===_0x4a7a95)throw clearInterval(this[_0x1ca5('0x37')]),new _0x379a24('trial-license-key-reached-limit-revisions',null);_0x1ca5('0x29')===_0x4a7a95&&clearInterval(this[_0x1ca5('0x37')]);},0x3e8),this[_0x1ca5('0x2')]();}get['me'](){return null==this[_0x1ca5('0x1')]?null:this[_0x1ca5('0x1a')](this[_0x1ca5('0x1')]);}[_0x1ca5('0x9')]({id:_0xfdb83c,name:_0x5d75be,..._0x4edd42}){if(!_0xfdb83c||_0x1ca5('0x23')!=typeof _0xfdb83c)throw new _0x379a24(_0x1ca5('0x2b'));if(this['users']['has'](_0xfdb83c))throw new _0x379a24(_0x1ca5('0x28'),null,{'id':_0xfdb83c});const _0x4c1440={..._0x4edd42,'id':_0xfdb83c,'name':a(this[_0x1ca5('0xe')],_0x5d75be),'color':this['_getNextColor']()};_0x4c1440[_0x1ca5('0x31')]=a(this['_locale'],_0x4c1440[_0x1ca5('0x31')]);const _0x351f30=new User(_0x4c1440);return this[_0x1ca5('0x1e')][_0x1ca5('0x2c')](_0x351f30),_0x351f30;}[_0x1ca5('0x1a')](_0x4673d5){return this[_0x1ca5('0x1e')][_0x1ca5('0x1d')](_0x4673d5);}[_0x1ca5('0x35')](){const _0x4f65fc=this[_0x1ca5('0x24')]['config']['get'](_0x1ca5('0x10'));this[_0x1ca5('0x1')]||this[_0x1ca5('0x17')](_0x4f65fc);}['defineMe'](_0x104d05){if(this[_0x1ca5('0x1')])throw new _0x379a24('users-me-already-defined',null);if(!this[_0x1ca5('0x1a')](_0x104d05))throw new _0x379a24('users-me-missing-user',null);this['_myId']=_0x104d05;}[_0x1ca5('0x5')](){return this['me'];}[_0x1ca5('0x1f')](){super[_0x1ca5('0x1f')](),clearInterval(this[_0x1ca5('0x37')]);}[_0x1ca5('0xc')](){const _0x1bcd28=this[_0x1ca5('0x24')]['config'][_0x1ca5('0x1d')](_0x1ca5('0x34'));return this[_0x1ca5('0xf')]>=_0x1bcd28&&(this['_lastColor']=0x0),new u(this[_0x1ca5('0xf')]++);}[_0x1ca5('0x2')](){const _0x27d69c=this['context'][_0x1ca5('0x12')]['get'](_0x1ca5('0x10'));this[_0x1ca5('0x9')]({'id':_0x27d69c,'name':_0x20cdbc(this[_0x1ca5('0xe')],_0x1ca5('0x25'))})[_0x1ca5('0x0')]=!0x0;}}export class User{constructor(_0x28e4ec){this['id']=_0x28e4ec['id'],this[_0x1ca5('0x30')]=_0x28e4ec[_0x1ca5('0x30')],this[_0x1ca5('0x31')]=_0x28e4ec[_0x1ca5('0x31')],this[_0x1ca5('0x36')]=_0x28e4ec[_0x1ca5('0x36')],this[_0x1ca5('0x0')]=!0x1;}get[_0x1ca5('0x13')](){return this[_0x1ca5('0x0')];}get[_0x1ca5('0xb')](){const _0xfe873b=this[_0x1ca5('0x31')][_0x1ca5('0x1c')]('\x20');return 0x1===_0xfe873b[_0x1ca5('0x8')]?this[_0x1ca5('0x2f')](_0xfe873b[0x0]):this[_0x1ca5('0x2f')](_0xfe873b[0x0])+this[_0x1ca5('0x2f')](_0xfe873b[_0xfe873b['length']-0x1]);}[_0x1ca5('0x2f')](_0x107357){return _0x107357[_0x1ca5('0x11')](0x0)['toUpperCase']();}}function a(_0x293935,_0x201e02=''){return''==(_0x201e02=_0x201e02[_0x1ca5('0x6')]())?_0x20cdbc(_0x293935,_0x1ca5('0x25')):_0x201e02;}class u{constructor(_0x1d3021){this[_0x1ca5('0x33')]=_0x1d3021;}['getBackgroundColorClass'](){return _0x1ca5('0x18')+this['_id'];}[_0x1ca5('0x1b')](){return _0x1ca5('0x15')+this[_0x1ca5('0x33')];}['getMarkerClass'](){return _0x1ca5('0x22')+this[_0x1ca5('0x33')];}}
23
+ const _0xa40a=['name','color','avatar','licenseKeyTrial','define','getBackgroundColorClass','users-add-invalid-id','licenseKeyInvalid','_getNextColor','invalid-license-key','users-add-duplicated-id','users.colorsCount','add','charAt','addUser','length','getUser','users.anonymousUserId','_myId','_getInitial','decorate','licenseKey','info','_lastColor','context','users','_id','Anonymous','requires','licenseKeyTrialLimit:operations','split','_isAnonymous','pluginName','trial-license-key-reached-limit-changes','config','getMarkerClass','trim','licenseKeyValid','defineMe','trial-license-key-reached-limit-revisions','anonymous-user','_locale','get','destroy','ck-user__marker--','licenseKeyTrialLimit:revisions','_licenseKeyCheckInterval','licenseKeyTrialLimit:time','init','_addAnonymousUser','getSelectionClass','toUpperCase','ck-user__selection--'];(function(_0x15855a,_0xa40abb){const _0x2b2dde=function(_0x2c68e8){while(--_0x2c68e8){_0x15855a['push'](_0x15855a['shift']());}};_0x2b2dde(++_0xa40abb);}(_0xa40a,0xbe));const _0x2b2d=function(_0x15855a,_0xa40abb){_0x15855a=_0x15855a-0x0;let _0x2b2dde=_0xa40a[_0x15855a];return _0x2b2dde;};import{ContextPlugin as _0x2045d4}from'ckeditor5/src/core';import{Collection as _0x2b59aa,CKEditorError as _0x392b3c}from'ckeditor5/src/utils';import _0x4436a7 from'./permissions';import{getTranslation as _0x590b13}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x2045d4{static get[_0x2b2d('0x1')](){return'Users';}static get[_0x2b2d('0x32')](){return[_0x4436a7];}constructor(_0x106a05){super(_0x106a05),this['context'][_0x2b2d('0x3')][_0x2b2d('0x1a')](_0x2b2d('0x27'),_0x2b2d('0x9')),this[_0x2b2d('0x2e')][_0x2b2d('0x3')][_0x2b2d('0x1a')](_0x2b2d('0x21'),0x8),this[_0x2b2d('0x2f')]=new _0x2b59aa(),this[_0x2b2d('0xa')]=_0x106a05['locale'],this[_0x2b2d('0xf')]=null,this[_0x2b2d('0x2d')]=0x0,this[_0x2b2d('0x28')]=null,this[_0x2b2d('0x2a')]('getOperationAuthor');}[_0x2b2d('0x11')](){const _0x28d60c=this['context'];this[_0x2b2d('0x2b')]=_0x28d60c[_0x2b2d('0x3')]['get']('licenseKey');const _0x189843=['licenseKeyTrial',_0x2b2d('0x1d'),_0x2b2d('0x6'),'licenseKeyTrialLimit:operations','licenseKeyTrialLimit:time',_0x2b2d('0xe')];this[_0x2b2d('0xf')]=setInterval(()=>{let _0x2868b0;for(const _0x352915 in _0x28d60c){const _0x29218d=_0x28d60c[_0x352915];if(_0x189843['includes'](_0x29218d)){delete _0x28d60c[_0x352915],_0x2868b0=_0x29218d;break;}}if(_0x2b2d('0x1d')===_0x2868b0)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x392b3c(_0x2b2d('0x1f'),null);if(_0x2b2d('0x19')===_0x2868b0&&console[_0x2b2d('0x2c')]('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.'),_0x2b2d('0x33')===_0x2868b0)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x392b3c(_0x2b2d('0x2'),null);if(_0x2b2d('0x10')===_0x2868b0)throw clearInterval(this[_0x2b2d('0xf')]),new _0x392b3c('trial-license-key-reached-limit-time',null);if(_0x2b2d('0xe')===_0x2868b0)throw clearInterval(this[_0x2b2d('0xf')]),new _0x392b3c(_0x2b2d('0x8'),null);_0x2b2d('0x6')===_0x2868b0&&clearInterval(this[_0x2b2d('0xf')]);},0x3e8),this[_0x2b2d('0x12')]();}get['me'](){return null==this[_0x2b2d('0x28')]?null:this[_0x2b2d('0x26')](this[_0x2b2d('0x28')]);}['addUser']({id:_0x282894,name:_0xf9fc12,..._0x2cd887}){if(!_0x282894||'string'!=typeof _0x282894)throw new _0x392b3c(_0x2b2d('0x1c'));if(this['users']['has'](_0x282894))throw new _0x392b3c(_0x2b2d('0x20'),null,{'id':_0x282894});const _0x2fa492={..._0x2cd887,'id':_0x282894,'name':a(this[_0x2b2d('0xa')],_0xf9fc12),'color':this[_0x2b2d('0x1e')]()};_0x2fa492[_0x2b2d('0x16')]=a(this[_0x2b2d('0xa')],_0x2fa492['name']);const _0x59c4f4=new User(_0x2fa492);return this[_0x2b2d('0x2f')][_0x2b2d('0x22')](_0x59c4f4),_0x59c4f4;}['getUser'](_0x1ec051){return this['users'][_0x2b2d('0xb')](_0x1ec051);}['useAnonymousUser'](){const _0x4be750=this['context']['config'][_0x2b2d('0xb')]('users.anonymousUserId');this['_myId']||this[_0x2b2d('0x7')](_0x4be750);}[_0x2b2d('0x7')](_0x5ec5e1){if(this[_0x2b2d('0x28')])throw new _0x392b3c('users-me-already-defined',null);if(!this[_0x2b2d('0x26')](_0x5ec5e1))throw new _0x392b3c('users-me-missing-user',null);this[_0x2b2d('0x28')]=_0x5ec5e1;}['getOperationAuthor'](){return this['me'];}[_0x2b2d('0xc')](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x2b2d('0x1e')](){const _0xf6f41e=this[_0x2b2d('0x2e')][_0x2b2d('0x3')][_0x2b2d('0xb')](_0x2b2d('0x21'));return this[_0x2b2d('0x2d')]>=_0xf6f41e&&(this[_0x2b2d('0x2d')]=0x0),new u(this[_0x2b2d('0x2d')]++);}['_addAnonymousUser'](){const _0x44973b=this[_0x2b2d('0x2e')][_0x2b2d('0x3')][_0x2b2d('0xb')](_0x2b2d('0x27'));this[_0x2b2d('0x24')]({'id':_0x44973b,'name':_0x590b13(this[_0x2b2d('0xa')],_0x2b2d('0x31'))})[_0x2b2d('0x0')]=!0x0;}}export class User{constructor(_0xb76325){this['id']=_0xb76325['id'],this[_0x2b2d('0x17')]=_0xb76325[_0x2b2d('0x17')],this['name']=_0xb76325['name'],this[_0x2b2d('0x18')]=_0xb76325[_0x2b2d('0x18')],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this[_0x2b2d('0x0')];}get['initials'](){const _0x43b77c=this[_0x2b2d('0x16')][_0x2b2d('0x34')]('\x20');return 0x1===_0x43b77c[_0x2b2d('0x25')]?this[_0x2b2d('0x29')](_0x43b77c[0x0]):this[_0x2b2d('0x29')](_0x43b77c[0x0])+this[_0x2b2d('0x29')](_0x43b77c[_0x43b77c[_0x2b2d('0x25')]-0x1]);}[_0x2b2d('0x29')](_0x2fb8e4){return _0x2fb8e4[_0x2b2d('0x23')](0x0)[_0x2b2d('0x14')]();}}function a(_0x4614f1,_0x104736=''){return''==(_0x104736=_0x104736[_0x2b2d('0x5')]())?_0x590b13(_0x4614f1,_0x2b2d('0x31')):_0x104736;}class u{constructor(_0x49b735){this[_0x2b2d('0x30')]=_0x49b735;}[_0x2b2d('0x1b')](){return'ck-user__bg-color--'+this[_0x2b2d('0x30')];}[_0x2b2d('0x13')](){return _0x2b2d('0x15')+this[_0x2b2d('0x30')];}[_0x2b2d('0x4')](){return _0x2b2d('0xd')+this[_0x2b2d('0x30')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x783e94,_0x28c90b){const t=_0x783e94['t'];switch(_0x28c90b){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(_0x135ada,_0x51c40d){const t=_0x135ada['t'];switch(_0x51c40d){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 _0x3901=['focus','element','locale','deregisterChild','set','message','cancelConfirm','once','isConfirm','confirmView','submit','destroy','remove'];(function(_0x5353de,_0x3901d2){var _0x9b68b8=function(_0x2006b6){while(--_0x2006b6){_0x5353de['push'](_0x5353de['shift']());}};_0x9b68b8(++_0x3901d2);}(_0x3901,0x1c2));var _0x9b68=function(_0x5353de,_0x3901d2){_0x5353de=_0x5353de-0x0;var _0x9b68b8=_0x3901[_0x5353de];return _0x9b68b8;};import _0x4bd9a2 from'./confirmview';export default function m(_0x33d7a0){return class extends _0x33d7a0{['showConfirm'](_0x10cfea,_0x2dfcec){return this[_0x9b68('0x1')]=new _0x4bd9a2(this[_0x9b68('0x7')]),this[_0x9b68('0x1')]['render'](),this[_0x9b68('0x1')][_0x9b68('0xa')]=_0x10cfea,this['confirmView'][_0x9b68('0xc')]('cancel',()=>{this['_removeConfirm']();}),this[_0x9b68('0x1')][_0x9b68('0xc')]('submit',()=>{this['_removeConfirm']();}),_0x2dfcec['appendChild'](this[_0x9b68('0x1')][_0x9b68('0x6')]),this['registerChild'](this[_0x9b68('0x1')]),this[_0x9b68('0x6')][_0x9b68('0x5')](),this[_0x9b68('0x9')](_0x9b68('0x0'),!0x0),new Promise(_0x5cc6fb=>this[_0x9b68('0x1')]['on'](_0x9b68('0x2'),_0x5cc6fb));}[_0x9b68('0xb')](){this[_0x9b68('0x0')]&&this[_0x9b68('0x1')]['fire']('cancel');}['_removeConfirm'](){this[_0x9b68('0x6')]&&this[_0x9b68('0x1')]&&this[_0x9b68('0x1')][_0x9b68('0x6')]&&(this[_0x9b68('0x6')][_0x9b68('0x5')](),this[_0x9b68('0x1')]['element'][_0x9b68('0x4')](),this[_0x9b68('0x8')](this['confirmView']),this[_0x9b68('0x0')]=!0x1,this[_0x9b68('0x1')][_0x9b68('0x3')](),this['confirmView']=void 0x0);}};}
23
+ var _0x3c1d=['isConfirm','confirmView','submit','_removeConfirm','destroy','message','fire','focus','cancelConfirm','deregisterChild','remove','element','showConfirm','appendChild','render','cancel','locale'];(function(_0x4c7cf9,_0x3c1dad){var _0x16c1e1=function(_0x5ed8f8){while(--_0x5ed8f8){_0x4c7cf9['push'](_0x4c7cf9['shift']());}};_0x16c1e1(++_0x3c1dad);}(_0x3c1d,0x1a5));var _0x16c1=function(_0x4c7cf9,_0x3c1dad){_0x4c7cf9=_0x4c7cf9-0x0;var _0x16c1e1=_0x3c1d[_0x4c7cf9];return _0x16c1e1;};import _0x7ffd88 from'./confirmview';export default function m(_0x1b5638){return class extends _0x1b5638{[_0x16c1('0x10')](_0x539276,_0x2d6802){return this[_0x16c1('0x5')]=new _0x7ffd88(this[_0x16c1('0x3')]),this['confirmView'][_0x16c1('0x1')](),this[_0x16c1('0x5')][_0x16c1('0x9')]=_0x539276,this[_0x16c1('0x5')]['once'](_0x16c1('0x2'),()=>{this['_removeConfirm']();}),this[_0x16c1('0x5')]['once'](_0x16c1('0x6'),()=>{this[_0x16c1('0x7')]();}),_0x2d6802[_0x16c1('0x0')](this[_0x16c1('0x5')]['element']),this['registerChild'](this['confirmView']),this[_0x16c1('0xf')][_0x16c1('0xb')](),this['set']('isConfirm',!0x0),new Promise(_0x4c4981=>this[_0x16c1('0x5')]['on']('submit',_0x4c4981));}[_0x16c1('0xc')](){this[_0x16c1('0x4')]&&this[_0x16c1('0x5')][_0x16c1('0xa')]('cancel');}['_removeConfirm'](){this[_0x16c1('0xf')]&&this[_0x16c1('0x5')]&&this['confirmView']['element']&&(this[_0x16c1('0xf')]['focus'](),this[_0x16c1('0x5')][_0x16c1('0xf')][_0x16c1('0xe')](),this[_0x16c1('0xd')](this[_0x16c1('0x5')]),this['isConfirm']=!0x1,this[_0x16c1('0x5')][_0x16c1('0x8')](),this[_0x16c1('0x5')]=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3344=['set','submit','Yes','icon','label','_createButtonView','div','bindTemplate','ck-thread__remove-confirm-','fire','cancelView','message','submitView','ck-thread__remove-confirm-actions','cancel'];(function(_0x3fe9df,_0x33444c){const _0x475628=function(_0x39baec){while(--_0x39baec){_0x3fe9df['push'](_0x3fe9df['shift']());}};_0x475628(++_0x33444c);}(_0x3344,0x170));const _0x4756=function(_0x3fe9df,_0x33444c){_0x3fe9df=_0x3fe9df-0x0;let _0x475628=_0x3344[_0x3fe9df];return _0x475628;};import{View as _0x24163e,ButtonView as _0x3eb3d3}from'ckeditor5/src/ui';import{icons as _0xbc871}from'ckeditor5/src/core';import{getTranslation as _0x4b224f}from'./common-translations';export default class h extends _0x24163e{constructor(_0x3de95c){super(_0x3de95c);const _0x551bc0=this[_0x4756('0xe')];this[_0x4756('0x4')]=this[_0x4756('0xc')](_0x3de95c,_0x4b224f(_0x3de95c,_0x4756('0x9')),_0xbc871['check'],_0x4756('0x8')),this[_0x4756('0x2')]=this[_0x4756('0xc')](_0x3de95c,_0x4b224f(_0x3de95c,'No'),_0xbc871['cancel'],_0x4756('0x6')),this[_0x4756('0x7')](_0x4756('0x3'),_0x4b224f(_0x3de95c,'Are\x20you\x20sure?')),this['setTemplate']({'tag':_0x4756('0xd'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x4756('0xd'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x551bc0['to']('message')}]},{'tag':_0x4756('0xd'),'attributes':{'class':_0x4756('0x5')},'children':[this[_0x4756('0x4')],this['cancelView']]}]}]});}[_0x4756('0xc')](_0x48709b,_0x181183,_0x35d2ca,_0x2e729e){const _0x5ada77=new _0x3eb3d3(_0x48709b);return _0x5ada77[_0x4756('0xb')]=_0x181183,_0x5ada77[_0x4756('0xa')]=_0x35d2ca,_0x5ada77['extendTemplate']({'attributes':{'class':_0x4756('0x0')+_0x2e729e}}),_0x5ada77['on']('execute',()=>this[_0x4756('0x1')](_0x2e729e)),_0x5ada77;}}
23
+ const _0x4fe5=['label','_createButtonView','setTemplate','Yes','ck-thread__remove-confirm-actions','ck-thread__remove-confirm','fire','submitView','message','icon','div','cancel','Are\x20you\x20sure?','bindTemplate','ck-thread__remove-confirm-inner','ck-thread__remove-confirm-','execute','submit','cancelView'];(function(_0x2f274b,_0x4fe57f){const _0x3745ce=function(_0x49d055){while(--_0x49d055){_0x2f274b['push'](_0x2f274b['shift']());}};_0x3745ce(++_0x4fe57f);}(_0x4fe5,0x12a));const _0x3745=function(_0x2f274b,_0x4fe57f){_0x2f274b=_0x2f274b-0x0;let _0x3745ce=_0x4fe5[_0x2f274b];return _0x3745ce;};import{View as _0x5e1cfc,ButtonView as _0x245c6a}from'ckeditor5/src/ui';import{icons as _0x573b5a}from'ckeditor5/src/core';import{getTranslation as _0x35b17b}from'./common-translations';export default class h extends _0x5e1cfc{constructor(_0x4b8f89){super(_0x4b8f89);const _0x3ca19a=this[_0x3745('0x0')];this[_0x3745('0xd')]=this[_0x3745('0x7')](_0x4b8f89,_0x35b17b(_0x4b8f89,_0x3745('0x9')),_0x573b5a['check'],_0x3745('0x4')),this['cancelView']=this[_0x3745('0x7')](_0x4b8f89,_0x35b17b(_0x4b8f89,'No'),_0x573b5a['cancel'],_0x3745('0x11')),this['set']('message',_0x35b17b(_0x4b8f89,_0x3745('0x12'))),this[_0x3745('0x8')]({'tag':_0x3745('0x10'),'attributes':{'class':[_0x3745('0xb')]},'children':[{'tag':_0x3745('0x10'),'attributes':{'class':_0x3745('0x1')},'children':[{'tag':'p','children':[{'text':_0x3ca19a['to'](_0x3745('0xe'))}]},{'tag':'div','attributes':{'class':_0x3745('0xa')},'children':[this[_0x3745('0xd')],this[_0x3745('0x5')]]}]}]});}[_0x3745('0x7')](_0x4687ae,_0xf0c277,_0x58cab8,_0x4708f4){const _0xf97238=new _0x245c6a(_0x4687ae);return _0xf97238[_0x3745('0x6')]=_0xf0c277,_0xf97238[_0x3745('0xf')]=_0x58cab8,_0xf97238['extendTemplate']({'attributes':{'class':_0x3745('0x2')+_0x4708f4}}),_0xf97238['on'](_0x3745('0x3'),()=>this[_0x3745('0xc')](_0x4708f4)),_0xf97238;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ce1=['\x27Last\x27\x20EEEE\x20hh:mma','dateTimeFormat','string','MM-dd-yyyy\x20hh:mma','function','\x27Today\x27\x20hh:mma'];(function(_0x526fbf,_0x1ce13e){const _0x498f58=function(_0x85cc17){while(--_0x85cc17){_0x526fbf['push'](_0x526fbf['shift']());}};_0x498f58(++_0x1ce13e);}(_0x1ce1,0x1be));const _0x498f=function(_0x526fbf,_0x1ce13e){_0x526fbf=_0x526fbf-0x0;let _0x498f58=_0x1ce1[_0x526fbf];return _0x498f58;};import _0x68065d from'date-fns/format';import _0x59e8c7 from'date-fns/parseISO';import _0x2b97a7 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x3ce6ba}from'ckeditor5/src/utils';export default function E(_0x5cf736={}){if(void 0x0!==_0x5cf736[_0x498f('0x5')]&&_0x498f('0x2')!=typeof _0x5cf736[_0x498f('0x5')])throw new _0x3ce6ba('invalid-date-time-format');return _0x4ce3c6=>{const _0x11d6ac=_0x498f('0x0')==typeof _0x4ce3c6?_0x59e8c7(_0x4ce3c6):_0x4ce3c6,_0x42b305=new Date(),_0x4ec3b4=_0x2b97a7(_0x42b305,_0x11d6ac);return _0x5cf736['dateTimeFormat']?_0x5cf736[_0x498f('0x5')](_0x11d6ac):_0x68065d(_0x11d6ac,0x0===_0x4ec3b4?_0x498f('0x3'):0x1===_0x4ec3b4?'\x27Yesterday\x27\x20hh:mma':_0x4ec3b4<0x7?_0x498f('0x4'):_0x498f('0x1'));};}
23
+ const _0x5b52=['function','\x27Last\x27\x20EEEE\x20hh:mma','invalid-date-time-format','\x27Yesterday\x27\x20hh:mma','string','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat'];(function(_0x521253,_0x5b52e6){const _0x18f3ce=function(_0x233796){while(--_0x233796){_0x521253['push'](_0x521253['shift']());}};_0x18f3ce(++_0x5b52e6);}(_0x5b52,0x1bd));const _0x18f3=function(_0x521253,_0x5b52e6){_0x521253=_0x521253-0x0;let _0x18f3ce=_0x5b52[_0x521253];return _0x18f3ce;};import _0x106317 from'date-fns/format';import _0x5a0640 from'date-fns/parseISO';import _0x136f67 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x7fe927}from'ckeditor5/src/utils';export default function E(_0x1c3a06={}){if(void 0x0!==_0x1c3a06[_0x18f3('0x2')]&&_0x18f3('0x3')!=typeof _0x1c3a06[_0x18f3('0x2')])throw new _0x7fe927(_0x18f3('0x5'));return _0x2d77f3=>{const _0xd3c766=_0x18f3('0x7')==typeof _0x2d77f3?_0x5a0640(_0x2d77f3):_0x2d77f3,_0x4c3819=new Date(),_0x25fd03=_0x136f67(_0x4c3819,_0xd3c766);return _0x1c3a06[_0x18f3('0x2')]?_0x1c3a06[_0x18f3('0x2')](_0xd3c766):_0x106317(_0xd3c766,0x0===_0x25fd03?_0x18f3('0x1'):0x1===_0x25fd03?_0x18f3('0x6'):_0x25fd03<0x7?_0x18f3('0x4'):_0x18f3('0x0'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33b9=['filter','markerNameToElements','domElement','item','sort','values','view','domConverter','length','map','push','name','mapper','mapViewToDom'];(function(_0x2c2adb,_0x33b917){const _0x3393a6=function(_0x12bf87){while(--_0x12bf87){_0x2c2adb['push'](_0x2c2adb['shift']());}};_0x3393a6(++_0x33b917);}(_0x33b9,0x11d));const _0x3393=function(_0x2c2adb,_0x33b917){_0x2c2adb=_0x2c2adb-0x0;let _0x3393a6=_0x33b9[_0x2c2adb];return _0x3393a6;};import{first as _0x309225}from'ckeditor5/src/utils';export default function k(_0x41a13b,_0xa1a821){const _0x163c83=_0x41a13b['mapper']['markerNameToElements'](_0xa1a821[_0x3393('0x6')]);if(!_0x163c83)return null;const _0x34895c=_0x309225(_0x163c83[_0x3393('0x0')]());return _0x41a13b[_0x3393('0x1')][_0x3393('0x2')][_0x3393('0x8')](_0x34895c)||null;}export function getAllMarkersDomElementsSorted(_0x285e1b,_0x441a5d){if(0x0===_0x441a5d[_0x3393('0x3')])return null;const _0x2cc901=[],_0xe70f0f=_0x285e1b[_0x3393('0x1')][_0x3393('0x2')];for(const _0x2f2cb of _0x441a5d){const _0x2820b9=_0x285e1b[_0x3393('0x7')][_0x3393('0xa')](_0x2f2cb[_0x3393('0x6')]);if(!_0x2820b9)continue;const _0x2d6f3a=Array['from'](_0x2820b9)[_0x3393('0x4')](_0x1ec27e=>_0xe70f0f[_0x3393('0x8')](_0x1ec27e))[_0x3393('0x9')](_0x2cb278=>!!_0x2cb278);_0x2cc901[_0x3393('0x5')](..._0x2d6f3a);}if(0x0===_0x2cc901[_0x3393('0x3')])return null;const _0x428ae6=[];for(const _0x3bf28d of _0x2cc901){const _0x5ae173=_0x3bf28d['getClientRects']()[_0x3393('0xc')](0x0);_0x5ae173&&_0x428ae6[_0x3393('0x5')]({'x':_0x5ae173['x'],'y':_0x5ae173['y'],'domElement':_0x3bf28d});}return 0x0===_0x428ae6[_0x3393('0x3')]?null:(_0x428ae6[_0x3393('0xd')]((_0x1b5292,_0x2835cb)=>_0x1b5292['y']-_0x2835cb['y']||_0x1b5292['x']-_0x2835cb['x']),_0x428ae6[_0x3393('0x4')](_0x31f9c8=>_0x31f9c8[_0x3393('0xb')]));}
23
+ const _0xf6f2=['mapper','name','length','view','values','item','filter','sort','mapViewToDom','domElement','getClientRects','markerNameToElements','from','push','map'];(function(_0x4614ce,_0xf6f24b){const _0x34a157=function(_0x38b433){while(--_0x38b433){_0x4614ce['push'](_0x4614ce['shift']());}};_0x34a157(++_0xf6f24b);}(_0xf6f2,0x18a));const _0x34a1=function(_0x4614ce,_0xf6f24b){_0x4614ce=_0x4614ce-0x0;let _0x34a157=_0xf6f2[_0x4614ce];return _0x34a157;};import{first as _0x40a2c3}from'ckeditor5/src/utils';export default function k(_0x2517df,_0x167494){const _0x31ab43=_0x2517df[_0x34a1('0xb')]['markerNameToElements'](_0x167494[_0x34a1('0xc')]);if(!_0x31ab43)return null;const _0x291668=_0x40a2c3(_0x31ab43[_0x34a1('0x0')]());return _0x2517df[_0x34a1('0xe')]['domConverter'][_0x34a1('0x4')](_0x291668)||null;}export function getAllMarkersDomElementsSorted(_0x1d1317,_0x3ca252){if(0x0===_0x3ca252[_0x34a1('0xd')])return null;const _0x370459=[],_0x353c00=_0x1d1317[_0x34a1('0xe')]['domConverter'];for(const _0x52360b of _0x3ca252){const _0x44c958=_0x1d1317['mapper'][_0x34a1('0x7')](_0x52360b[_0x34a1('0xc')]);if(!_0x44c958)continue;const _0x36f8f3=Array[_0x34a1('0x8')](_0x44c958)[_0x34a1('0xa')](_0x4180bd=>_0x353c00[_0x34a1('0x4')](_0x4180bd))[_0x34a1('0x2')](_0x4e62a9=>!!_0x4e62a9);_0x370459[_0x34a1('0x9')](..._0x36f8f3);}if(0x0===_0x370459[_0x34a1('0xd')])return null;const _0x367745=[];for(const _0x4710c5 of _0x370459){const _0x184248=_0x4710c5[_0x34a1('0x6')]()[_0x34a1('0x1')](0x0);_0x184248&&_0x367745[_0x34a1('0x9')]({'x':_0x184248['x'],'y':_0x184248['y'],'domElement':_0x4710c5});}return 0x0===_0x367745[_0x34a1('0xd')]?null:(_0x367745[_0x34a1('0x3')]((_0x3c80f0,_0x29ae49)=>_0x3c80f0['y']-_0x29ae49['y']||_0x3c80f0['x']-_0x29ae49['x']),_0x367745[_0x34a1('0xa')](_0x5f4eb4=>_0x5f4eb4[_0x34a1('0x5')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dc3=['isArray','object','toString','string','charCodeAt','sign','boolean','keys'];(function(_0x332613,_0x2dc366){const _0x111812=function(_0x4fcf54){while(--_0x4fcf54){_0x332613['push'](_0x332613['shift']());}};_0x111812(++_0x2dc366);}(_0x2dc3,0x13b));const _0x1118=function(_0x332613,_0x2dc366){_0x332613=_0x332613-0x0;let _0x111812=_0x2dc3[_0x332613];return _0x111812;};export default function b(_0x1d6641){let _0x545843=0x0,_0x487605=0x0;for(const _0x92f925 of g(_0x1d6641))_0x545843=(_0x545843<<0x5)-_0x545843+_0x92f925,_0x545843&=_0x545843,[_0x545843,_0x487605]=[_0x487605,_0x545843];return O(_0x545843)+O(_0x487605);}function*j(_0x4c272d){_0x4c272d?_0x1118('0x3')==typeof _0x4c272d?yield 0x1:Array[_0x1118('0x5')](_0x4c272d)?yield*function*(_0x58759f){for(const _0x587ae9 of _0x58759f)yield*j(_0x587ae9);}(_0x4c272d):_0x1118('0x6')==typeof _0x4c272d?yield*g(_0x4c272d):_0x1118('0x0')==typeof _0x4c272d?yield*A(_0x4c272d):'number'==typeof _0x4c272d&&(yield _0x4c272d):yield 0x0;}function*g(_0x13946a){if(yield M('{'),_0x13946a){const _0x37d4d0=Object[_0x1118('0x4')](_0x13946a)['sort']();for(const _0x161813 of _0x37d4d0){yield*A(_0x161813),yield M(':');const _0x57461f=_0x13946a[_0x161813];yield*j(_0x57461f);}}yield M('}');}function*A(_0xaf200c){yield M('\x22');for(const _0x4258cc of _0xaf200c)yield M(_0x4258cc);yield M('\x22');}function M(_0x1145d6){return _0x1145d6[_0x1118('0x1')](0x0);}function O(_0x57a2ac){return(_0x57a2ac*=Math[_0x1118('0x2')](_0x57a2ac))[_0x1118('0x7')](0x24);}
23
+ const _0x38bc=['string','sign','isArray','toString','number','sort','boolean'];(function(_0x1b2508,_0x38bc23){const _0x333559=function(_0x53033f){while(--_0x53033f){_0x1b2508['push'](_0x1b2508['shift']());}};_0x333559(++_0x38bc23);}(_0x38bc,0xd6));const _0x3335=function(_0x1b2508,_0x38bc23){_0x1b2508=_0x1b2508-0x0;let _0x333559=_0x38bc[_0x1b2508];return _0x333559;};export default function b(_0x5067b9){let _0x3d9e64=0x0,_0x3df3f6=0x0;for(const _0x3bcdc8 of g(_0x5067b9))_0x3d9e64=(_0x3d9e64<<0x5)-_0x3d9e64+_0x3bcdc8,_0x3d9e64&=_0x3d9e64,[_0x3d9e64,_0x3df3f6]=[_0x3df3f6,_0x3d9e64];return O(_0x3d9e64)+O(_0x3df3f6);}function*j(_0x4f4ae7){_0x4f4ae7?_0x3335('0x2')==typeof _0x4f4ae7?yield 0x1:Array[_0x3335('0x5')](_0x4f4ae7)?yield*function*(_0x254dca){for(const _0x5ea6fd of _0x254dca)yield*j(_0x5ea6fd);}(_0x4f4ae7):'object'==typeof _0x4f4ae7?yield*g(_0x4f4ae7):_0x3335('0x3')==typeof _0x4f4ae7?yield*A(_0x4f4ae7):_0x3335('0x0')==typeof _0x4f4ae7&&(yield _0x4f4ae7):yield 0x0;}function*g(_0x4e4a26){if(yield M('{'),_0x4e4a26){const _0x4ce922=Object['keys'](_0x4e4a26)[_0x3335('0x1')]();for(const _0x4eb6c7 of _0x4ce922){yield*A(_0x4eb6c7),yield M(':');const _0x1dfe3e=_0x4e4a26[_0x4eb6c7];yield*j(_0x1dfe3e);}}yield M('}');}function*A(_0x2a0ece){yield M('\x22');for(const _0x2233d1 of _0x2a0ece)yield M(_0x2233d1);yield M('\x22');}function M(_0x48cd16){return _0x48cd16['charCodeAt'](0x0);}function O(_0x3d9ebc){return(_0x3d9ebc*=Math[_0x3335('0x4')](_0x3d9ebc))[_0x3335('0x6')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4144=['push','...','length','substring','indexOf','pop','match','slice','startsWith','split','replace','join'];(function(_0x599444,_0x414408){const _0x6e827=function(_0x48f349){while(--_0x48f349){_0x599444['push'](_0x599444['shift']());}};_0x6e827(++_0x414408);}(_0x4144,0x1dc));const _0x6e82=function(_0x599444,_0x414408){_0x599444=_0x599444-0x0;let _0x6e827=_0x4144[_0x599444];return _0x6e827;};export default function z(_0x1697de,{limit:_0x405b33,suffix:_0x54c50e=_0x6e82('0x5')}){const _0x30b2fa=[];let _0x94b10=0x0;const _0x4bb028=_0x1697de['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x6e82('0x2')](/^\n/g,'')['replace'](/\n$/g,'')[_0x6e82('0x1')]('\x0a');for(let _0xdf3387=0x0;_0xdf3387<_0x4bb028[_0x6e82('0x6')];_0xdf3387++){let _0x41f71c=_0x4bb028[_0xdf3387];const _0xf9d7c7=Z(_0x41f71c);if(_0x41f71c[_0x6e82('0x0')]('<')){if(_0x94b10>=_0x405b33){const _0x5914b8=_0x41f71c['match'](/[a-zA-Z]+/);if(!_0x5914b8){_0x4bb028[_0xdf3387]='';continue;}const _0x3932c6=_0x5914b8[0x0];_0x41f71c[_0x6e82('0x0')]('</')?(_0x30b2fa[_0x6e82('0x6')]&&(_0x41f71c=''),_0x30b2fa[_0x6e82('0x9')]()):(_0x30b2fa['push'](_0x3932c6),_0x41f71c='');}}else{if(_0x94b10>=_0x405b33)_0x41f71c='';else{if(_0x94b10+_0xf9d7c7['length']>=_0x405b33){let _0x44d30b=_0x405b33-_0x94b10;if('\x20'===_0xf9d7c7[_0x44d30b-0x1])_0x44d30b--;else{const _0x473824=_0xf9d7c7['slice'](_0x44d30b)[_0x6e82('0x8')]('\x20');-0x1!==_0x473824?_0x44d30b+=_0x473824:_0x44d30b=_0x41f71c[_0x6e82('0x6')];}_0x41f71c=_0xf9d7c7[_0x6e82('0xb')](0x0,_0x44d30b)['join']('')+_0x54c50e,_0x94b10=_0x405b33;}else _0x94b10+=_0xf9d7c7['length'];}}_0x4bb028[_0xdf3387]=_0x41f71c;}return _0x4bb028[_0x6e82('0x3')]('\x0a')[_0x6e82('0x2')](/\n/g,'');}function Z(_0x5be3a5){const _0x2cf9cf=[];for(let _0xb81dda=0x0;_0xb81dda<_0x5be3a5['length'];_0xb81dda++){const _0x606883=_0x5be3a5[_0x6e82('0x7')](_0xb81dda)[_0x6e82('0xa')](/^&[a-z0-9#]+;/);if(_0x606883){const _0x2df7b7=_0x606883[0x0];_0x2cf9cf[_0x6e82('0x4')](_0x2df7b7),_0xb81dda+=_0x2df7b7[_0x6e82('0x6')]-0x1;}else _0x2cf9cf[_0x6e82('0x4')](_0x5be3a5[_0xb81dda]);}return _0x2cf9cf;}
23
+ const _0x4643=['join','...','match','startsWith','replace','split','substring','length','slice','push'];(function(_0x3acb63,_0x464344){const _0x287e28=function(_0x177218){while(--_0x177218){_0x3acb63['push'](_0x3acb63['shift']());}};_0x287e28(++_0x464344);}(_0x4643,0x15b));const _0x287e=function(_0x3acb63,_0x464344){_0x3acb63=_0x3acb63-0x0;let _0x287e28=_0x4643[_0x3acb63];return _0x287e28;};export default function z(_0x502671,{limit:_0xbf46fd,suffix:_0x4c2252=_0x287e('0x4')}){const _0x4b7a93=[];let _0x1b93b2=0x0;const _0x5ddbe5=_0x502671[_0x287e('0x7')](/</g,'\x0a<')[_0x287e('0x7')](/>/g,'>\x0a')[_0x287e('0x7')](/^\n/g,'')[_0x287e('0x7')](/\n$/g,'')[_0x287e('0x8')]('\x0a');for(let _0x1e3859=0x0;_0x1e3859<_0x5ddbe5[_0x287e('0x0')];_0x1e3859++){let _0x1d866f=_0x5ddbe5[_0x1e3859];const _0x10b07f=Z(_0x1d866f);if(_0x1d866f[_0x287e('0x6')]('<')){if(_0x1b93b2>=_0xbf46fd){const _0xb74e62=_0x1d866f[_0x287e('0x5')](/[a-zA-Z]+/);if(!_0xb74e62){_0x5ddbe5[_0x1e3859]='';continue;}const _0x454e9a=_0xb74e62[0x0];_0x1d866f['startsWith']('</')?(_0x4b7a93[_0x287e('0x0')]&&(_0x1d866f=''),_0x4b7a93['pop']()):(_0x4b7a93[_0x287e('0x2')](_0x454e9a),_0x1d866f='');}}else{if(_0x1b93b2>=_0xbf46fd)_0x1d866f='';else{if(_0x1b93b2+_0x10b07f[_0x287e('0x0')]>=_0xbf46fd){let _0x348ab6=_0xbf46fd-_0x1b93b2;if('\x20'===_0x10b07f[_0x348ab6-0x1])_0x348ab6--;else{const _0x1c35e2=_0x10b07f['slice'](_0x348ab6)['indexOf']('\x20');-0x1!==_0x1c35e2?_0x348ab6+=_0x1c35e2:_0x348ab6=_0x1d866f['length'];}_0x1d866f=_0x10b07f[_0x287e('0x1')](0x0,_0x348ab6)['join']('')+_0x4c2252,_0x1b93b2=_0xbf46fd;}else _0x1b93b2+=_0x10b07f['length'];}}_0x5ddbe5[_0x1e3859]=_0x1d866f;}return _0x5ddbe5[_0x287e('0x3')]('\x0a')['replace'](/\n/g,'');}function Z(_0x218ac1){const _0x2ab7d7=[];for(let _0x45173f=0x0;_0x45173f<_0x218ac1['length'];_0x45173f++){const _0x56e62b=_0x218ac1[_0x287e('0x9')](_0x45173f)[_0x287e('0x5')](/^&[a-z0-9#]+;/);if(_0x56e62b){const _0x4d5527=_0x56e62b[0x0];_0x2ab7d7[_0x287e('0x2')](_0x4d5527),_0x45173f+=_0x4d5527[_0x287e('0x0')]-0x1;}else _0x2ab7d7[_0x287e('0x2')](_0x218ac1[_0x45173f]);}return _0x2ab7d7;}