@ckeditor/ckeditor5-collaboration-core 38.2.0-alpha.0 → 38.2.0-alpha.1

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": "38.2.0-alpha.0",
3
+ "version": "38.2.0-alpha.1",
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/)",
@@ -32,7 +32,7 @@
32
32
  "main": "src/index.js",
33
33
  "type": "module",
34
34
  "dependencies": {
35
- "ckeditor5": "38.2.0-alpha.0",
35
+ "ckeditor5": "38.2.0-alpha.1",
36
36
  "date-fns": "^2.17.0"
37
37
  },
38
38
  "engines": {
@@ -1,5 +1,5 @@
1
- import type { LocaleConfig, Users } from './index';
2
- import type { RealTimeCollaborationConfig } from './config';
1
+ import type { LocaleConfig, Users } from './index.js';
2
+ import type { RealTimeCollaborationConfig } from './config.js';
3
3
  declare module '@ckeditor/ckeditor5-core' {
4
4
  interface EditorConfig {
5
5
  /**
@@ -2,7 +2,7 @@
2
2
  * @module collaboration-core/collaborationhistory
3
3
  * @publicApi
4
4
  */
5
- import type { default as CollaborationOperation } from './collaborationoperation';
5
+ import type { default as CollaborationOperation } from './collaborationoperation.js';
6
6
  /**
7
7
  * Interface compatible with {@link module:engine/model/history~History} with the difference that it uses
8
8
  * {@link module:collaboration-core/collaborationoperation~CollaborationOperation} instead of regular model operations.
@@ -2,7 +2,7 @@
2
2
  * @module collaboration-core/collaborationoperation
3
3
  * @publicApi
4
4
  */
5
- import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from 'ckeditor5/src/engine';
5
+ import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from 'ckeditor5/src/engine.js';
6
6
  /**
7
7
  * Extends the {@link module:engine/model/operation/operation operation}.
8
8
  */
package/src/config.d.ts CHANGED
@@ -26,7 +26,7 @@ export interface LocaleConfig {
26
26
  * The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
27
27
  *
28
28
  * ```ts
29
- * import format from 'date-fns/format';
29
+ * import format from 'date-fns/esm/format/index.js'
30
30
  *
31
31
  * ClassicEditor
32
32
  * .create( document.querySelector( '#editor' ), {
package/src/index.d.ts CHANGED
@@ -1,13 +1,14 @@
1
- export { default as Permissions } from './permissions';
2
- export { default as Users, type User } from './users';
3
- export { default as UserView } from './users/view/userview';
4
- export { default as getDateTimeFormatter } from './utils/getdatetimeformatter';
5
- export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement';
6
- export { default as trimHtml } from './utils/trim-html';
7
- export { default as ConfirmMixin } from './utils/confirmmixin';
8
- export { default as hashObject } from './utils/hashobject';
9
- export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation';
10
- export { default as CollaborationHistory } from './collaborationhistory';
11
- export type { LocaleConfig, RealTimeCollaborationConfig } from './config';
12
- export * from './suggestionstyles';
13
- import './augmentation';
1
+ export { default as Permissions } from './permissions.js';
2
+ export { default as Users, type User } from './users.js';
3
+ export { default as UserView } from './users/view/userview.js';
4
+ export { default as getDateTimeFormatter } from './utils/getdatetimeformatter.js';
5
+ export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement.js';
6
+ export { default as trimHtml } from './utils/trim-html.js';
7
+ export { default as ConfirmMixin } from './utils/confirmmixin.js';
8
+ export { default as hashObject } from './utils/hashobject.js';
9
+ export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig.js';
10
+ export type { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation.js';
11
+ export type { default as CollaborationHistory } from './collaborationhistory.js';
12
+ export type { LocaleConfig, RealTimeCollaborationConfig } from './config.js';
13
+ export * from './suggestionstyles.js';
14
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export{default as hashObject}from'./utils/hashobject';export*from'./suggestionstyles';import'./augmentation';
23
+ export{default as Permissions}from'./permissions.js';export{default as Users}from'./users.js';export{default as UserView}from'./users/view/userview.js';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter.js';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement.js';export{default as trimHtml}from'./utils/trim-html.js';export{default as ConfirmMixin}from'./utils/confirmmixin.js';export{default as hashObject}from'./utils/hashobject.js';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig.js';export*from'./suggestionstyles.js';import'./augmentation.js';
@@ -2,7 +2,7 @@
2
2
  * @module collaboration-core/permissions
3
3
  * @publicApi
4
4
  */
5
- import { ContextPlugin } from 'ckeditor5/src/core';
5
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The `Permissions` plugin manages permissions set for the local user.
8
8
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a91=['plugins','has','Permissions','isEnabled','get','config','pluginName','commands','document:write','enableReadOnlyMode','comment:admin','addCommentThread','no-permissions','editors','CommentsOnly','permissions-set-permissions-invalid-channel-id','includes','context','clearForceDisabled','find','CommentsRepository','noPermissions','collaboration.channelId','setPermissions'];(function(_0x59d110,_0x4a9174){const _0x31cac2=function(_0xf1529){while(--_0xf1529){_0x59d110['push'](_0x59d110['shift']());}};_0x31cac2(++_0x4a9174);}(_0x4a91,0x1dd));const _0x31ca=function(_0x59d110,_0x4a9174){_0x59d110=_0x59d110-0x0;let _0x31cac2=_0x4a91[_0x59d110];return _0x31cac2;};import{ContextPlugin as _0x1fe532,Editor as _0x2e7b4c}from'ckeditor5/src/core';import{CKEditorError as _0x3e2f30}from'ckeditor5/src/utils';export default class n extends _0x1fe532{static get[_0x31ca('0x9')](){return _0x31ca('0x5');}[_0x31ca('0x2')](_0x48b1ac,_0x5e6763){let _0x222cd6;if(_0x5e6763||(_0x5e6763=this['context'][_0x31ca('0x8')][_0x31ca('0x7')]('collaboration.channelId')),this[_0x31ca('0x14')][_0x31ca('0x8')][_0x31ca('0x7')](_0x31ca('0x1'))==_0x5e6763?_0x222cd6=this[_0x31ca('0x14')]:_0x31ca('0x10')in this[_0x31ca('0x14')]&&this[_0x31ca('0x14')][_0x31ca('0x10')]&&(_0x222cd6=this['context'][_0x31ca('0x10')][_0x31ca('0x16')](_0x2c3b08=>_0x2c3b08['config'][_0x31ca('0x7')](_0x31ca('0x1'))==_0x5e6763)),!_0x222cd6)throw new _0x3e2f30(_0x31ca('0x12'),null);const _0x23585d=_0x222cd6[_0x31ca('0x3')],_0x4606ae=_0x23585d[_0x31ca('0x4')](_0x31ca('0x17'))?_0x23585d[_0x31ca('0x7')](_0x31ca('0x17')):void 0x0,_0x193142=_0x23585d['has'](_0x31ca('0x11'))&&_0x23585d[_0x31ca('0x7')]('CommentsOnly'),_0x59c6fa=_0x48b1ac[_0x31ca('0x13')](_0x31ca('0xb')),_0x1c18fd=_0x48b1ac[_0x31ca('0x13')]('comment:modify_all'),_0x1ac3dc=_0x48b1ac[_0x31ca('0x13')](_0x31ca('0xd')),_0xa1fe94=_0x48b1ac[_0x31ca('0x13')]('comment:write'),_0x32d991=_0xa1fe94||_0x1ac3dc,_0x43f60f=_0x32d991||_0x1c18fd,_0xb51786=_0x59c6fa||_0x32d991;(_0x193142&&(_0x193142[_0x31ca('0x6')]=!_0x59c6fa&&_0x43f60f),_0x222cd6 instanceof _0x2e7b4c)&&(!(_0x59c6fa||_0x43f60f&&_0x4606ae)?_0x222cd6[_0x31ca('0xc')](_0x31ca('0xf')):_0x222cd6['disableReadOnlyMode']('no-permissions'));if(_0x4606ae){_0x4606ae[_0x31ca('0x2')]({'admin':_0x1ac3dc,'modifyAll':_0x1c18fd,'write':_0xa1fe94,'resolve':_0xb51786},_0x5e6763);const _0x437c05=_0x222cd6 instanceof _0x2e7b4c&&_0x222cd6[_0x31ca('0xa')][_0x31ca('0x7')](_0x31ca('0xe'));_0x437c05&&(_0x32d991?_0x437c05[_0x31ca('0x15')]('noPermissions'):_0x437c05['forceDisabled'](_0x31ca('0x0')));}}}
23
+ const _0x5bf1=['permissions-set-permissions-invalid-channel-id','no-permissions','CommentsOnly','editors','includes','context','disableReadOnlyMode','forceDisabled','pluginName','has','plugins','find','addCommentThread','setPermissions','get','collaboration.channelId','CommentsRepository','comment:modify_all','config','noPermissions','comment:admin','isEnabled'];(function(_0x22c44e,_0x5bf136){const _0x4a11b0=function(_0x314f12){while(--_0x314f12){_0x22c44e['push'](_0x22c44e['shift']());}};_0x4a11b0(++_0x5bf136);}(_0x5bf1,0xf6));const _0x4a11=function(_0x22c44e,_0x5bf136){_0x22c44e=_0x22c44e-0x0;let _0x4a11b0=_0x5bf1[_0x22c44e];return _0x4a11b0;};import{ContextPlugin as _0x5225f1,Editor as _0x2f8aea}from'ckeditor5/src/core.js';import{CKEditorError as _0x1e7373}from'ckeditor5/src/utils.js';export default class n extends _0x5225f1{static get[_0x4a11('0x4')](){return'Permissions';}[_0x4a11('0x9')](_0x5db67a,_0x27cfc){let _0x5daf3c;if(_0x27cfc||(_0x27cfc=this[_0x4a11('0x1')]['config'][_0x4a11('0xa')](_0x4a11('0xb'))),this[_0x4a11('0x1')][_0x4a11('0xe')][_0x4a11('0xa')]('collaboration.channelId')==_0x27cfc?_0x5daf3c=this[_0x4a11('0x1')]:_0x4a11('0x15')in this[_0x4a11('0x1')]&&this[_0x4a11('0x1')]['editors']&&(_0x5daf3c=this['context'][_0x4a11('0x15')][_0x4a11('0x7')](_0x3712e7=>_0x3712e7[_0x4a11('0xe')][_0x4a11('0xa')](_0x4a11('0xb'))==_0x27cfc)),!_0x5daf3c)throw new _0x1e7373(_0x4a11('0x12'),null);const _0x10b54b=_0x5daf3c[_0x4a11('0x6')],_0x2863cd=_0x10b54b[_0x4a11('0x5')](_0x4a11('0xc'))?_0x10b54b['get'](_0x4a11('0xc')):void 0x0,_0xfa6b9e=_0x10b54b[_0x4a11('0x5')](_0x4a11('0x14'))&&_0x10b54b[_0x4a11('0xa')]('CommentsOnly'),_0x1df945=_0x5db67a[_0x4a11('0x0')]('document:write'),_0x2940fb=_0x5db67a['includes'](_0x4a11('0xd')),_0x5245b3=_0x5db67a[_0x4a11('0x0')](_0x4a11('0x10')),_0x5715f0=_0x5db67a[_0x4a11('0x0')]('comment:write'),_0xc717a6=_0x5715f0||_0x5245b3,_0x21acb3=_0xc717a6||_0x2940fb,_0x58ae0d=_0x1df945||_0xc717a6;(_0xfa6b9e&&(_0xfa6b9e[_0x4a11('0x11')]=!_0x1df945&&_0x21acb3),_0x5daf3c instanceof _0x2f8aea)&&(!(_0x1df945||_0x21acb3&&_0x2863cd)?_0x5daf3c['enableReadOnlyMode'](_0x4a11('0x13')):_0x5daf3c[_0x4a11('0x2')](_0x4a11('0x13')));if(_0x2863cd){_0x2863cd['setPermissions']({'admin':_0x5245b3,'modifyAll':_0x2940fb,'write':_0x5715f0,'resolve':_0x58ae0d},_0x27cfc);const _0x5d4a67=_0x5daf3c instanceof _0x2f8aea&&_0x5daf3c['commands'][_0x4a11('0xa')](_0x4a11('0x8'));_0x5d4a67&&(_0xc717a6?_0x5d4a67['clearForceDisabled']('noPermissions'):_0x5d4a67[_0x4a11('0x3')](_0x4a11('0xf')));}}}
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @module collaboration-core/users/view/userview
3
3
  */
4
- import { View, type TemplateDefinition } from 'ckeditor5/src/ui';
5
- import type { Locale } from 'ckeditor5/src/utils';
6
- import type { User } from '../../users';
4
+ import { View, type TemplateDefinition } from 'ckeditor5/src/ui.js';
5
+ import type { Locale } from 'ckeditor5/src/utils.js';
6
+ import type { User } from '../../users.js';
7
7
  import '../../../theme/users.css';
8
8
  export default class UserView extends View {
9
9
  name: string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x358f=['extendTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__img','initials','avatar','notificationView','ck-user','url(\x27','setTemplate','ck-user__avatar','ck\x20ck-user__name','push','content','name','div','isAnonymous'];(function(_0x2530f9,_0x358f4b){const _0x4908c7=function(_0x51ef4a){while(--_0x51ef4a){_0x2530f9['push'](_0x2530f9['shift']());}};_0x4908c7(++_0x358f4b);}(_0x358f,0x100));const _0x4908=function(_0x2530f9,_0x358f4b){_0x2530f9=_0x2530f9-0x0;let _0x4908c7=_0x358f[_0x2530f9];return _0x4908c7;};import{View as _0x1f9414,IconView as _0x4e5f42}from'ckeditor5/src/ui';import _0x1479f1 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x1f9414{constructor(_0x1f9104,_0x46f372,_0x3c914e){super(_0x1f9104),this[_0x4908('0xd')]=_0x46f372['name'],this['notificationView']=null;const _0x5ce546=['ck',_0x4908('0x2')];if(_0x46f372[_0x4908('0xf')]&&_0x5ce546[_0x4908('0xb')]('ck-user__anonymous'),_0x46f372[_0x4908('0x4')]&&_0x5ce546['push'](_0x4908('0x9')),_0x3c914e){const _0x3a0022=new _0x4e5f42();_0x3a0022[_0x4908('0x0')]({'attributes':{'class':['ck-user__icon']}}),_0x3a0022[_0x4908('0xc')]=_0x1479f1,this[_0x4908('0x5')]={'tag':_0x4908('0xe'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3c914e},'children':[_0x3a0022]};}const _0x4b550b=[{'tag':_0x4908('0xe'),'attributes':{'class':_0x5ce546,'style':{'background-image':_0x46f372[_0x4908('0x4')]?_0x4908('0x7')+_0x46f372[_0x4908('0x4')]+'\x27)':''}}},{'tag':_0x4908('0xe'),'attributes':{'class':_0x46f372['avatar']?_0x4908('0x1'):_0x4908('0xa')},'children':[{'text':_0x46f372[_0x4908('0x3')]}]}];this[_0x4908('0x5')]&&_0x4b550b[_0x4908('0xb')](this['notificationView']),this[_0x4908('0x8')]({'tag':_0x4908('0xe'),'attributes':{'class':['ck',_0x4908('0x6')],'data-user-id':_0x46f372['id']},'children':_0x4b550b});}}
23
+ const _0x425d=['isAnonymous','ck\x20ck-user__name','setTemplate','div','content','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','notificationView','ck-user__icon','ck-user','ck-user__img','ck-user__notification','name','avatar','ck-user__avatar','push','ck-user__anonymous'];(function(_0xf85366,_0x425df2){const _0x4b6686=function(_0x16c3d3){while(--_0x16c3d3){_0xf85366['push'](_0xf85366['shift']());}};_0x4b6686(++_0x425df2);}(_0x425d,0xa5));const _0x4b66=function(_0xf85366,_0x425df2){_0xf85366=_0xf85366-0x0;let _0x4b6686=_0x425d[_0xf85366];return _0x4b6686;};import{View as _0x57cbee,IconView as _0x38ff5c}from'ckeditor5/src/ui.js';import _0x396c5d from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x57cbee{constructor(_0x57d85,_0x24867b,_0x2f24d8){super(_0x57d85),this[_0x4b66('0x0')]=_0x24867b[_0x4b66('0x0')],this[_0x4b66('0xc')]=null;const _0x568897=['ck',_0x4b66('0xf')];if(_0x24867b[_0x4b66('0x5')]&&_0x568897[_0x4b66('0x3')](_0x4b66('0x4')),_0x24867b[_0x4b66('0x1')]&&_0x568897[_0x4b66('0x3')](_0x4b66('0x2')),_0x2f24d8){const _0x39c688=new _0x38ff5c();_0x39c688['extendTemplate']({'attributes':{'class':[_0x4b66('0xd')]}}),_0x39c688[_0x4b66('0x9')]=_0x396c5d,this[_0x4b66('0xc')]={'tag':_0x4b66('0x8'),'attributes':{'class':['ck',_0x4b66('0x10')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2f24d8},'children':[_0x39c688]};}const _0x374617=[{'tag':_0x4b66('0x8'),'attributes':{'class':_0x568897,'style':{'background-image':_0x24867b['avatar']?_0x4b66('0xa')+_0x24867b['avatar']+'\x27)':''}}},{'tag':_0x4b66('0x8'),'attributes':{'class':_0x24867b[_0x4b66('0x1')]?_0x4b66('0xb'):_0x4b66('0x6')},'children':[{'text':_0x24867b['initials']}]}];this[_0x4b66('0xc')]&&_0x374617[_0x4b66('0x3')](this['notificationView']),this[_0x4b66('0x7')]({'tag':_0x4b66('0x8'),'attributes':{'class':['ck',_0x4b66('0xe')],'data-user-id':_0x24867b['id']},'children':_0x374617});}}
package/src/users.d.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  * @module collaboration-core/users
3
3
  * @publicApi
4
4
  */
5
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
6
- import { Collection } from 'ckeditor5/src/utils';
7
- import Permissions from './permissions';
5
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
6
+ import { Collection } from 'ckeditor5/src/utils.js';
7
+ import Permissions from './permissions.js';
8
8
  import '../theme/usercolors.css';
9
9
  /**
10
10
  * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b02=['trial-license-key-reached-limit-revisions','users-me-missing-user','licenseKeyInvalid','addUser','define','getBackgroundColorClass','toUpperCase','context','licenseKey','defineMe','split','_getInitial','locale','users','init','initials','get','Users','Anonymous','licenseKeyValid','_getNextColor','users.colorsCount','_addAnonymousUser','licenseKeyTrialLimit:time','destroy','useAnonymousUser','_lastColor','includes','users.anonymousUserId','_isAnonymous','users-add-duplicated-id','users-add-invalid-id','licenseKeyTrialLimit:operations','charAt','trial-license-key-reached-limit-time','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.','_id','getMarkerClass','_licenseKeyCheckInterval','ck-user__selection--','avatar','pluginName','color','licenseKeyTrial','config','_locale','requires','name','getOperationAuthor','getUser','info','getSelectionClass','_myId'];(function(_0x5023d3,_0x2b0212){const _0x160393=function(_0x10382b){while(--_0x10382b){_0x5023d3['push'](_0x5023d3['shift']());}};_0x160393(++_0x2b0212);}(_0x2b02,0x1b4));const _0x1603=function(_0x5023d3,_0x2b0212){_0x5023d3=_0x5023d3-0x0;let _0x160393=_0x2b02[_0x5023d3];return _0x160393;};import{ContextPlugin as _0x345336}from'ckeditor5/src/core';import{Collection as _0x16c54f,CKEditorError as _0x3d4de4}from'ckeditor5/src/utils';import _0x252653 from'./permissions';import{getTranslation as _0x54c197}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x345336{static get[_0x1603('0x26')](){return _0x1603('0xd');}static get[_0x1603('0x2b')](){return[_0x252653];}constructor(_0x4210e5){super(_0x4210e5),this[_0x1603('0x3')][_0x1603('0x29')][_0x1603('0x0')](_0x1603('0x18'),'anonymous-user'),this['context'][_0x1603('0x29')][_0x1603('0x0')]('users.colorsCount',0x8),this[_0x1603('0x9')]=new _0x16c54f(),this[_0x1603('0x2a')]=_0x4210e5[_0x1603('0x8')],this[_0x1603('0x23')]=null,this[_0x1603('0x16')]=0x0,this[_0x1603('0x31')]=null,this['decorate']('getOperationAuthor');}[_0x1603('0xa')](){const _0x3f2032=this[_0x1603('0x3')];this['licenseKey']=_0x3f2032[_0x1603('0x29')][_0x1603('0xc')](_0x1603('0x4'));const _0x14eb4d=['licenseKeyTrial',_0x1603('0x34'),_0x1603('0xf'),_0x1603('0x1c'),_0x1603('0x13'),_0x1603('0x1f')];this[_0x1603('0x23')]=setInterval(()=>{let _0x2bfaa9;for(const _0x3dc7cd in _0x3f2032){const _0x54d287=_0x3f2032[_0x3dc7cd];if(_0x14eb4d[_0x1603('0x17')](_0x54d287)){delete _0x3f2032[_0x3dc7cd],_0x2bfaa9=_0x54d287;break;}}if(_0x1603('0x34')===_0x2bfaa9)throw clearInterval(this[_0x1603('0x23')]),new _0x3d4de4('invalid-license-key',null);if(_0x1603('0x28')===_0x2bfaa9&&console[_0x1603('0x2f')](_0x1603('0x20')),_0x1603('0x1c')===_0x2bfaa9)throw clearInterval(this[_0x1603('0x23')]),new _0x3d4de4('trial-license-key-reached-limit-changes',null);if(_0x1603('0x13')===_0x2bfaa9)throw clearInterval(this[_0x1603('0x23')]),new _0x3d4de4(_0x1603('0x1e'),null);if('licenseKeyTrialLimit:revisions'===_0x2bfaa9)throw clearInterval(this[_0x1603('0x23')]),new _0x3d4de4(_0x1603('0x32'),null);_0x1603('0xf')===_0x2bfaa9&&clearInterval(this[_0x1603('0x23')]);},0x3e8),this[_0x1603('0x12')]();}get['me'](){return null==this[_0x1603('0x31')]?null:this[_0x1603('0x2e')](this[_0x1603('0x31')]);}[_0x1603('0x35')]({id:_0x458217,name:_0x5d5315,..._0x25d49e}){if(!_0x458217||'string'!=typeof _0x458217)throw new _0x3d4de4(_0x1603('0x1b'));if(this[_0x1603('0x9')]['has'](_0x458217))throw new _0x3d4de4(_0x1603('0x1a'),null,{'id':_0x458217});const _0x50a848={..._0x25d49e,'id':_0x458217,'name':a(this['_locale'],_0x5d5315),'color':this[_0x1603('0x10')]()};_0x50a848[_0x1603('0x2c')]=a(this[_0x1603('0x2a')],_0x50a848[_0x1603('0x2c')]);const _0x2e64c9=new User(_0x50a848);return this[_0x1603('0x9')]['add'](_0x2e64c9),_0x2e64c9;}[_0x1603('0x2e')](_0x5d5584){return this[_0x1603('0x9')]['get'](_0x5d5584);}[_0x1603('0x15')](){const _0x4dd8e5=this['context']['config'][_0x1603('0xc')](_0x1603('0x18'));this[_0x1603('0x31')]||this[_0x1603('0x5')](_0x4dd8e5);}[_0x1603('0x5')](_0x5b87b0){if(this['_myId'])throw new _0x3d4de4('users-me-already-defined',null);if(!this['getUser'](_0x5b87b0))throw new _0x3d4de4(_0x1603('0x33'),null);this[_0x1603('0x31')]=_0x5b87b0;}[_0x1603('0x2d')](){return this['me'];}[_0x1603('0x14')](){super[_0x1603('0x14')](),clearInterval(this[_0x1603('0x23')]);}[_0x1603('0x10')](){const _0x305d7a=this['context'][_0x1603('0x29')]['get'](_0x1603('0x11'));return this[_0x1603('0x16')]>=_0x305d7a&&(this[_0x1603('0x16')]=0x0),new u(this[_0x1603('0x16')]++);}[_0x1603('0x12')](){const _0x939ddc=this['context'][_0x1603('0x29')][_0x1603('0xc')](_0x1603('0x18'));this[_0x1603('0x35')]({'id':_0x939ddc,'name':_0x54c197(this[_0x1603('0x2a')],_0x1603('0xe'))})[_0x1603('0x19')]=!0x0;}}export class User{constructor(_0x5a166e){this['id']=_0x5a166e['id'],this[_0x1603('0x27')]=_0x5a166e[_0x1603('0x27')],this[_0x1603('0x2c')]=_0x5a166e[_0x1603('0x2c')],this[_0x1603('0x25')]=_0x5a166e[_0x1603('0x25')],this[_0x1603('0x19')]=!0x1;}get['isAnonymous'](){return this[_0x1603('0x19')];}get[_0x1603('0xb')](){const _0x2b38fe=this[_0x1603('0x2c')][_0x1603('0x6')]('\x20');return 0x1===_0x2b38fe['length']?this[_0x1603('0x7')](_0x2b38fe[0x0]):this['_getInitial'](_0x2b38fe[0x0])+this[_0x1603('0x7')](_0x2b38fe[_0x2b38fe['length']-0x1]);}[_0x1603('0x7')](_0x1f8617){return _0x1f8617[_0x1603('0x1d')](0x0)[_0x1603('0x2')]();}}function a(_0x39dd7d,_0x12cc0b=''){return''==(_0x12cc0b=_0x12cc0b['trim']())?_0x54c197(_0x39dd7d,_0x1603('0xe')):_0x12cc0b;}class u{constructor(_0x521afc){this['_id']=_0x521afc;}[_0x1603('0x1')](){return'ck-user__bg-color--'+this[_0x1603('0x21')];}[_0x1603('0x30')](){return _0x1603('0x24')+this[_0x1603('0x21')];}[_0x1603('0x22')](){return'ck-user__marker--'+this[_0x1603('0x21')];}}
23
+ const _0x2d8a=['users-add-invalid-id','initials','charAt','ck-user__marker--','_id','trial-license-key-reached-limit-changes','context','init','length','split','getMarkerClass','_isAnonymous','_addAnonymousUser','trim','_getNextColor','_myId','licenseKeyValid','toUpperCase','requires','users.colorsCount','users-me-missing-user','get','users-me-already-defined','avatar','_lastColor','isAnonymous','includes','Users','Anonymous','string','define','has','pluginName','licenseKeyTrialLimit:time','users.anonymousUserId','users-add-duplicated-id','config','invalid-license-key','color','_getInitial','name','getUser','licenseKeyTrialLimit:revisions','licenseKey','decorate','_locale','destroy','ck-user__bg-color--','licenseKeyInvalid','trial-license-key-reached-limit-revisions','ck-user__selection--','_licenseKeyCheckInterval','defineMe','add','getOperationAuthor','users','addUser'];(function(_0x4b8337,_0x2d8a79){const _0x16b7ae=function(_0x26bb8e){while(--_0x26bb8e){_0x4b8337['push'](_0x4b8337['shift']());}};_0x16b7ae(++_0x2d8a79);}(_0x2d8a,0x1a1));const _0x16b7=function(_0x4b8337,_0x2d8a79){_0x4b8337=_0x4b8337-0x0;let _0x16b7ae=_0x2d8a[_0x4b8337];return _0x16b7ae;};import{ContextPlugin as _0x382a63}from'ckeditor5/src/core.js';import{Collection as _0x1fd6b2,CKEditorError as _0x42dbba}from'ckeditor5/src/utils.js';import _0x356d16 from'./permissions.js';import{getTranslation as _0x279fea}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x382a63{static get[_0x16b7('0xe')](){return _0x16b7('0x9');}static get[_0x16b7('0x0')](){return[_0x356d16];}constructor(_0x2ab7e3){super(_0x2ab7e3),this[_0x16b7('0x2d')][_0x16b7('0x12')][_0x16b7('0xc')](_0x16b7('0x10'),'anonymous-user'),this[_0x16b7('0x2d')][_0x16b7('0x12')]['define'](_0x16b7('0x1'),0x8),this['users']=new _0x1fd6b2(),this[_0x16b7('0x1b')]=_0x2ab7e3['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this[_0x16b7('0x1a')](_0x16b7('0x24'));}[_0x16b7('0x2e')](){const _0x2c6126=this[_0x16b7('0x2d')];this[_0x16b7('0x19')]=_0x2c6126[_0x16b7('0x12')][_0x16b7('0x3')](_0x16b7('0x19'));const _0x432aa1=['licenseKeyTrial',_0x16b7('0x1e'),_0x16b7('0x37'),'licenseKeyTrialLimit:operations',_0x16b7('0xf'),_0x16b7('0x18')];this[_0x16b7('0x21')]=setInterval(()=>{let _0x4fe845;for(const _0x577d36 in _0x2c6126){const _0x2a636d=_0x2c6126[_0x577d36];if(_0x432aa1[_0x16b7('0x8')](_0x2a636d)){delete _0x2c6126[_0x577d36],_0x4fe845=_0x2a636d;break;}}if(_0x16b7('0x1e')===_0x4fe845)throw clearInterval(this[_0x16b7('0x21')]),new _0x42dbba(_0x16b7('0x13'),null);if('licenseKeyTrial'===_0x4fe845&&console['info']('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.'),'licenseKeyTrialLimit:operations'===_0x4fe845)throw clearInterval(this[_0x16b7('0x21')]),new _0x42dbba(_0x16b7('0x2c'),null);if('licenseKeyTrialLimit:time'===_0x4fe845)throw clearInterval(this[_0x16b7('0x21')]),new _0x42dbba('trial-license-key-reached-limit-time',null);if('licenseKeyTrialLimit:revisions'===_0x4fe845)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x42dbba(_0x16b7('0x1f'),null);_0x16b7('0x37')===_0x4fe845&&clearInterval(this[_0x16b7('0x21')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x16b7('0x36')]?null:this[_0x16b7('0x17')](this['_myId']);}[_0x16b7('0x26')]({id:_0x38d4f0,name:_0x552852,..._0x28cbeb}){if(!_0x38d4f0||_0x16b7('0xb')!=typeof _0x38d4f0)throw new _0x42dbba(_0x16b7('0x27'));if(this['users'][_0x16b7('0xd')](_0x38d4f0))throw new _0x42dbba(_0x16b7('0x11'),null,{'id':_0x38d4f0});const _0xd077e5={..._0x28cbeb,'id':_0x38d4f0,'name':a(this[_0x16b7('0x1b')],_0x552852),'color':this['_getNextColor']()};_0xd077e5[_0x16b7('0x16')]=a(this[_0x16b7('0x1b')],_0xd077e5[_0x16b7('0x16')]);const _0x424dd6=new User(_0xd077e5);return this[_0x16b7('0x25')][_0x16b7('0x23')](_0x424dd6),_0x424dd6;}[_0x16b7('0x17')](_0x55e519){return this[_0x16b7('0x25')][_0x16b7('0x3')](_0x55e519);}['useAnonymousUser'](){const _0x131cb9=this['context'][_0x16b7('0x12')]['get'](_0x16b7('0x10'));this[_0x16b7('0x36')]||this[_0x16b7('0x22')](_0x131cb9);}[_0x16b7('0x22')](_0x1a0876){if(this[_0x16b7('0x36')])throw new _0x42dbba(_0x16b7('0x4'),null);if(!this[_0x16b7('0x17')](_0x1a0876))throw new _0x42dbba(_0x16b7('0x2'),null);this[_0x16b7('0x36')]=_0x1a0876;}[_0x16b7('0x24')](){return this['me'];}['destroy'](){super[_0x16b7('0x1c')](),clearInterval(this[_0x16b7('0x21')]);}[_0x16b7('0x35')](){const _0x3f5964=this[_0x16b7('0x2d')]['config']['get']('users.colorsCount');return this[_0x16b7('0x6')]>=_0x3f5964&&(this['_lastColor']=0x0),new u(this[_0x16b7('0x6')]++);}[_0x16b7('0x33')](){const _0x53f4db=this[_0x16b7('0x2d')][_0x16b7('0x12')][_0x16b7('0x3')](_0x16b7('0x10'));this[_0x16b7('0x26')]({'id':_0x53f4db,'name':_0x279fea(this[_0x16b7('0x1b')],_0x16b7('0xa'))})[_0x16b7('0x32')]=!0x0;}}export class User{constructor(_0xab11de){this['id']=_0xab11de['id'],this['color']=_0xab11de[_0x16b7('0x14')],this['name']=_0xab11de[_0x16b7('0x16')],this[_0x16b7('0x5')]=_0xab11de[_0x16b7('0x5')],this[_0x16b7('0x32')]=!0x1;}get[_0x16b7('0x7')](){return this[_0x16b7('0x32')];}get[_0x16b7('0x28')](){const _0x56e17b=this['name'][_0x16b7('0x30')]('\x20');return 0x1===_0x56e17b[_0x16b7('0x2f')]?this['_getInitial'](_0x56e17b[0x0]):this[_0x16b7('0x15')](_0x56e17b[0x0])+this[_0x16b7('0x15')](_0x56e17b[_0x56e17b['length']-0x1]);}[_0x16b7('0x15')](_0x35a095){return _0x35a095[_0x16b7('0x29')](0x0)[_0x16b7('0x38')]();}}function a(_0x5d73ef,_0x1dbd58=''){return''==(_0x1dbd58=_0x1dbd58[_0x16b7('0x34')]())?_0x279fea(_0x5d73ef,_0x16b7('0xa')):_0x1dbd58;}class u{constructor(_0x5d6a78){this[_0x16b7('0x2b')]=_0x5d6a78;}['getBackgroundColorClass'](){return _0x16b7('0x1d')+this['_id'];}['getSelectionClass'](){return _0x16b7('0x20')+this[_0x16b7('0x2b')];}[_0x16b7('0x31')](){return _0x16b7('0x2a')+this[_0x16b7('0x2b')];}}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * @module collaboration-core/utils/common-translations
3
3
  */
4
- import type { Locale } from 'ckeditor5/src/utils';
4
+ import type { Locale } from 'ckeditor5/src/utils.js';
5
5
  export declare function getTranslation(locale: Locale, id: string): string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3bb6da,_0x44fff9){const t=_0x3bb6da['t'];switch(_0x44fff9){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(_0x59d4b6,_0x258714){const t=_0x59d4b6['t'];switch(_0x258714){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'';}}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module comments/comments/ui/view/confirmmixin
3
3
  */
4
- import type { View } from 'ckeditor5/src/ui';
5
- import type { Locale, Mixed } from 'ckeditor5/src/utils';
4
+ import type { View } from 'ckeditor5/src/ui.js';
5
+ import type { Locale, Mixed } from 'ckeditor5/src/utils.js';
6
6
  /**
7
7
  * Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
8
8
  * Confirm is always set to the `content` collection at the last position.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5268=['element','appendChild','deregisterChild','_removeConfirm','focus','remove','message','submit','fire','destroy','cancel','locale','confirmView','isConfirm','once','registerChild','cancelConfirm'];(function(_0x2e41d9,_0x5268e6){var _0x56fb17=function(_0x422b16){while(--_0x422b16){_0x2e41d9['push'](_0x2e41d9['shift']());}};_0x56fb17(++_0x5268e6);}(_0x5268,0x126));var _0x56fb=function(_0x2e41d9,_0x5268e6){_0x2e41d9=_0x2e41d9-0x0;var _0x56fb17=_0x5268[_0x2e41d9];return _0x56fb17;};import _0x32c62e from'./confirmview';export default function m(_0x3fb4ec){return class extends _0x3fb4ec{['showConfirm'](_0x38b694,_0x2d1b94){return this[_0x56fb('0x7')]=new _0x32c62e(this[_0x56fb('0x6')]),this[_0x56fb('0x7')]['render'](),this[_0x56fb('0x7')][_0x56fb('0x1')]=_0x38b694,this[_0x56fb('0x7')][_0x56fb('0x9')](_0x56fb('0x5'),()=>{this['_removeConfirm']();}),this[_0x56fb('0x7')]['once'](_0x56fb('0x2'),()=>{this['_removeConfirm']();}),_0x2d1b94[_0x56fb('0xd')](this[_0x56fb('0x7')]['element']),this[_0x56fb('0xa')](this[_0x56fb('0x7')]),this[_0x56fb('0xc')][_0x56fb('0x10')](),this['set'](_0x56fb('0x8'),!0x0),new Promise(_0xe23dc9=>this['confirmView']['on'](_0x56fb('0x2'),_0xe23dc9));}[_0x56fb('0xb')](){this[_0x56fb('0x8')]&&this[_0x56fb('0x7')][_0x56fb('0x3')](_0x56fb('0x5'));}[_0x56fb('0xf')](){this['element']&&this[_0x56fb('0x7')]&&this['confirmView'][_0x56fb('0xc')]&&(this[_0x56fb('0xc')][_0x56fb('0x10')](),this[_0x56fb('0x7')]['element'][_0x56fb('0x0')](),this[_0x56fb('0xe')](this[_0x56fb('0x7')]),this[_0x56fb('0x8')]=!0x1,this[_0x56fb('0x7')][_0x56fb('0x4')](),this[_0x56fb('0x7')]=void 0x0);}};}
23
+ var _0x1d09=['focus','cancel','render','once','element','confirmView','deregisterChild','_removeConfirm','cancelConfirm','message','submit','isConfirm','appendChild','locale'];(function(_0x34d63b,_0x1d0994){var _0x31aee4=function(_0x227a1c){while(--_0x227a1c){_0x34d63b['push'](_0x34d63b['shift']());}};_0x31aee4(++_0x1d0994);}(_0x1d09,0x142));var _0x31ae=function(_0x34d63b,_0x1d0994){_0x34d63b=_0x34d63b-0x0;var _0x31aee4=_0x1d09[_0x34d63b];return _0x31aee4;};import _0x4f8571 from'./confirmview.js';export default function m(_0x40260b){return class extends _0x40260b{['showConfirm'](_0x5d9ece,_0x19683e){return this[_0x31ae('0x5')]=new _0x4f8571(this[_0x31ae('0xd')]),this[_0x31ae('0x5')][_0x31ae('0x2')](),this[_0x31ae('0x5')][_0x31ae('0x9')]=_0x5d9ece,this[_0x31ae('0x5')][_0x31ae('0x3')](_0x31ae('0x1'),()=>{this[_0x31ae('0x7')]();}),this[_0x31ae('0x5')][_0x31ae('0x3')](_0x31ae('0xa'),()=>{this[_0x31ae('0x7')]();}),_0x19683e[_0x31ae('0xc')](this[_0x31ae('0x5')]['element']),this['registerChild'](this[_0x31ae('0x5')]),this['element'][_0x31ae('0x0')](),this['set'](_0x31ae('0xb'),!0x0),new Promise(_0x37981d=>this[_0x31ae('0x5')]['on']('submit',_0x37981d));}[_0x31ae('0x8')](){this['isConfirm']&&this['confirmView']['fire'](_0x31ae('0x1'));}[_0x31ae('0x7')](){this[_0x31ae('0x4')]&&this[_0x31ae('0x5')]&&this[_0x31ae('0x5')][_0x31ae('0x4')]&&(this[_0x31ae('0x4')][_0x31ae('0x0')](),this['confirmView'][_0x31ae('0x4')]['remove'](),this[_0x31ae('0x6')](this[_0x31ae('0x5')]),this[_0x31ae('0xb')]=!0x1,this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module comments/comments/ui/view/confirmview
3
3
  */
4
- import { View } from 'ckeditor5/src/ui';
5
- import type { Locale } from 'ckeditor5/src/utils';
4
+ import { View } from 'ckeditor5/src/ui.js';
5
+ import type { Locale } from 'ckeditor5/src/utils.js';
6
6
  export default class ConfirmView extends View {
7
7
  message: string;
8
8
  constructor(locale: Locale);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4689=['ck-thread__remove-confirm-actions','ck-thread__remove-confirm-inner','Are\x20you\x20sure?','cancelView','div','Yes','submitView','submit','icon','execute','check','message','cancel','_createButtonView','fire','label','setTemplate','ck-thread__remove-confirm'];(function(_0xf43370,_0x46895d){const _0x2ee07b=function(_0x13902e){while(--_0x13902e){_0xf43370['push'](_0xf43370['shift']());}};_0x2ee07b(++_0x46895d);}(_0x4689,0xa4));const _0x2ee0=function(_0xf43370,_0x46895d){_0xf43370=_0xf43370-0x0;let _0x2ee07b=_0x4689[_0xf43370];return _0x2ee07b;};import{View as _0x328035,ButtonView as _0x22b349}from'ckeditor5/src/ui';import{icons as _0x2fda65}from'ckeditor5/src/core';import{getTranslation as _0x179e82}from'./common-translations';export default class h extends _0x328035{constructor(_0x2cf9d0){super(_0x2cf9d0);const _0x465691=this['bindTemplate'];this[_0x2ee0('0x4')]=this[_0x2ee0('0xb')](_0x2cf9d0,_0x179e82(_0x2cf9d0,_0x2ee0('0x3')),_0x2fda65[_0x2ee0('0x8')],_0x2ee0('0x5')),this[_0x2ee0('0x1')]=this[_0x2ee0('0xb')](_0x2cf9d0,_0x179e82(_0x2cf9d0,'No'),_0x2fda65[_0x2ee0('0xa')],_0x2ee0('0xa')),this['set'](_0x2ee0('0x9'),_0x179e82(_0x2cf9d0,_0x2ee0('0x0'))),this[_0x2ee0('0xe')]({'tag':_0x2ee0('0x2'),'attributes':{'class':[_0x2ee0('0xf')]},'children':[{'tag':_0x2ee0('0x2'),'attributes':{'class':_0x2ee0('0x11')},'children':[{'tag':'p','children':[{'text':_0x465691['to'](_0x2ee0('0x9'))}]},{'tag':_0x2ee0('0x2'),'attributes':{'class':_0x2ee0('0x10')},'children':[this[_0x2ee0('0x4')],this['cancelView']]}]}]});}[_0x2ee0('0xb')](_0x2cebdc,_0x1a8cf,_0x3063fb,_0x2e4690){const _0x58ae68=new _0x22b349(_0x2cebdc);return _0x58ae68[_0x2ee0('0xd')]=_0x1a8cf,_0x58ae68[_0x2ee0('0x6')]=_0x3063fb,_0x58ae68['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x2e4690}}),_0x58ae68['on'](_0x2ee0('0x7'),()=>this[_0x2ee0('0xc')](_0x2e4690)),_0x58ae68;}}
23
+ const _0x21f4=['cancelView','submit','icon','extendTemplate','submitView','fire','cancel','div','ck-thread__remove-confirm-actions','label','bindTemplate','execute','message','ck-thread__remove-confirm-inner','ck-thread__remove-confirm','Yes','set','_createButtonView'];(function(_0x2b0898,_0x21f404){const _0xb36e8=function(_0xc44b26){while(--_0xc44b26){_0x2b0898['push'](_0x2b0898['shift']());}};_0xb36e8(++_0x21f404);}(_0x21f4,0x118));const _0xb36e=function(_0x2b0898,_0x21f404){_0x2b0898=_0x2b0898-0x0;let _0xb36e8=_0x21f4[_0x2b0898];return _0xb36e8;};import{View as _0x596d33,ButtonView as _0x57f120}from'ckeditor5/src/ui.js';import{icons as _0x6727b9}from'ckeditor5/src/core.js';import{getTranslation as _0x4b00e8}from'./common-translations.js';export default class h extends _0x596d33{constructor(_0x4ed6dc){super(_0x4ed6dc);const _0x40f599=this[_0xb36e('0x0')];this[_0xb36e('0xc')]=this[_0xb36e('0x7')](_0x4ed6dc,_0x4b00e8(_0x4ed6dc,_0xb36e('0x5')),_0x6727b9['check'],_0xb36e('0x9')),this['cancelView']=this[_0xb36e('0x7')](_0x4ed6dc,_0x4b00e8(_0x4ed6dc,'No'),_0x6727b9[_0xb36e('0xe')],'cancel'),this[_0xb36e('0x6')](_0xb36e('0x2'),_0x4b00e8(_0x4ed6dc,'Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':[_0xb36e('0x4')]},'children':[{'tag':'div','attributes':{'class':_0xb36e('0x3')},'children':[{'tag':'p','children':[{'text':_0x40f599['to'](_0xb36e('0x2'))}]},{'tag':_0xb36e('0xf'),'attributes':{'class':_0xb36e('0x10')},'children':[this[_0xb36e('0xc')],this[_0xb36e('0x8')]]}]}]});}[_0xb36e('0x7')](_0x4cb96d,_0x5dc2cb,_0x4436e2,_0xb903be){const _0x174df0=new _0x57f120(_0x4cb96d);return _0x174df0[_0xb36e('0x11')]=_0x5dc2cb,_0x174df0[_0xb36e('0xa')]=_0x4436e2,_0x174df0[_0xb36e('0xb')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0xb903be}}),_0x174df0['on'](_0xb36e('0x1'),()=>this[_0xb36e('0xd')](_0xb903be)),_0x174df0;}}
@@ -2,14 +2,14 @@
2
2
  * @module collaboration-core/utils/getdatetimeformatter
3
3
  * @publicApi
4
4
  */
5
- import type { LocaleConfig } from '../config';
5
+ import type { LocaleConfig } from '../config.js';
6
6
  /**
7
7
  * Returns a function that formats the date to the set format.
8
8
  *
9
9
  * The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
10
10
  *
11
11
  * ```ts
12
- * import format from 'date-fns/format';
12
+ * import format from 'date-fns/esm/format/index.js'
13
13
  *
14
14
  * ClassicEditor
15
15
  * .create( document.querySelector( '#editor' ), {
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39b0=['\x27Last\x27\x20EEEE\x20hh:mma','dateTimeFormat','function','invalid-date-time-format','string','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','\x27Yesterday\x27\x20hh:mma'];(function(_0x1c286c,_0x39b014){const _0x183d7d=function(_0x23ce03){while(--_0x23ce03){_0x1c286c['push'](_0x1c286c['shift']());}};_0x183d7d(++_0x39b014);}(_0x39b0,0xda));const _0x183d=function(_0x1c286c,_0x39b014){_0x1c286c=_0x1c286c-0x0;let _0x183d7d=_0x39b0[_0x1c286c];return _0x183d7d;};import _0x47f42f from'date-fns/format';import _0x1a57b3 from'date-fns/parseISO';import _0x20264a from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x4b621f}from'ckeditor5/src/utils';export default function E(_0x3ed083={}){if(void 0x0!==_0x3ed083['dateTimeFormat']&&_0x183d('0x0')!=typeof _0x3ed083[_0x183d('0x7')])throw new _0x4b621f(_0x183d('0x1'));return _0x3fe928=>{const _0x299fdd=_0x183d('0x2')==typeof _0x3fe928?_0x1a57b3(_0x3fe928):_0x3fe928,_0x5f0deb=new Date(),_0x4fec65=_0x20264a(_0x5f0deb,_0x299fdd);return _0x3ed083[_0x183d('0x7')]?_0x3ed083['dateTimeFormat'](_0x299fdd):_0x47f42f(_0x299fdd,0x0===_0x4fec65?_0x183d('0x4'):0x1===_0x4fec65?_0x183d('0x5'):_0x4fec65<0x7?_0x183d('0x6'):_0x183d('0x3'));};}
23
+ const _0x4a9f=['\x27Today\x27\x20hh:mma','dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','string'];(function(_0x57cbf1,_0x4a9fc5){const _0x41c590=function(_0x4bcb97){while(--_0x4bcb97){_0x57cbf1['push'](_0x57cbf1['shift']());}};_0x41c590(++_0x4a9fc5);}(_0x4a9f,0x1d5));const _0x41c5=function(_0x57cbf1,_0x4a9fc5){_0x57cbf1=_0x57cbf1-0x0;let _0x41c590=_0x4a9f[_0x57cbf1];return _0x41c590;};import _0x36ab5a from'date-fns/esm/format/index.js';import _0x2ce2cb from'date-fns/parseISO/index.js';import _0x443fe4 from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x327c0c}from'ckeditor5/src/utils.js';export default function j(_0x5ab87d={}){if(void 0x0!==_0x5ab87d[_0x41c5('0x0')]&&'function'!=typeof _0x5ab87d[_0x41c5('0x0')])throw new _0x327c0c('invalid-date-time-format');return _0x352956=>{const _0xa2b60=_0x41c5('0x4')==typeof _0x352956?_0x2ce2cb(_0x352956):_0x352956,_0x1cbd37=new Date(),_0x5c3425=_0x443fe4(_0x1cbd37,_0xa2b60);return _0x5ab87d[_0x41c5('0x0')]?_0x5ab87d[_0x41c5('0x0')](_0xa2b60):_0x36ab5a(_0xa2b60,0x0===_0x5c3425?_0x41c5('0x5'):0x1===_0x5c3425?_0x41c5('0x2'):_0x5c3425<0x7?_0x41c5('0x1'):_0x41c5('0x3'));};}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @module comments/utils/getmarkerdomelement
3
3
  */
4
- import type { EditingController, Marker } from 'ckeditor5/src/engine';
4
+ import type { EditingController, Marker } from 'ckeditor5/src/engine.js';
5
5
  /**
6
6
  * Returns a first DOM element mapped with the marker.
7
7
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c20=['domElement','view','values','mapper','mapViewToDom','item','length','name','getClientRects','markerNameToElements','map','domConverter'];(function(_0x22f69d,_0x2c208a){const _0x3ce5a8=function(_0x5d140b){while(--_0x5d140b){_0x22f69d['push'](_0x22f69d['shift']());}};_0x3ce5a8(++_0x2c208a);}(_0x2c20,0xf6));const _0x3ce5=function(_0x22f69d,_0x2c208a){_0x22f69d=_0x22f69d-0x0;let _0x3ce5a8=_0x2c20[_0x22f69d];return _0x3ce5a8;};import{first as _0x3baf43}from'ckeditor5/src/utils';export default function k(_0x9a0f3e,_0x42c2b7){const _0xb24125=_0x9a0f3e[_0x3ce5('0x9')]['markerNameToElements'](_0x42c2b7[_0x3ce5('0x1')]);if(!_0xb24125)return null;const _0x2dea45=_0x3baf43(_0xb24125[_0x3ce5('0x8')]());return _0x9a0f3e[_0x3ce5('0x7')][_0x3ce5('0x5')][_0x3ce5('0xa')](_0x2dea45)||null;}export function getAllMarkersDomElementsSorted(_0x57c2ea,_0x3dcf1d){if(0x0===_0x3dcf1d[_0x3ce5('0x0')])return null;const _0x406988=[],_0x2881ca=_0x57c2ea['view']['domConverter'];for(const _0x13c0c6 of _0x3dcf1d){const _0x366dd4=_0x57c2ea[_0x3ce5('0x9')][_0x3ce5('0x3')](_0x13c0c6[_0x3ce5('0x1')]);if(!_0x366dd4)continue;const _0x4cfe01=Array['from'](_0x366dd4)[_0x3ce5('0x4')](_0x1de77b=>_0x2881ca[_0x3ce5('0xa')](_0x1de77b))['filter'](_0x35f237=>!!_0x35f237);_0x406988['push'](..._0x4cfe01);}if(0x0===_0x406988[_0x3ce5('0x0')])return null;const _0x522e59=[];for(const _0x184574 of _0x406988){const _0x32d6b1=_0x184574[_0x3ce5('0x2')]()[_0x3ce5('0xb')](0x0);_0x32d6b1&&_0x522e59['push']({'x':_0x32d6b1['x'],'y':_0x32d6b1['y'],'domElement':_0x184574});}return 0x0===_0x522e59['length']?null:(_0x522e59['sort']((_0x29b2cf,_0x275ab9)=>_0x29b2cf['y']-_0x275ab9['y']||_0x29b2cf['x']-_0x275ab9['x']),_0x522e59[_0x3ce5('0x4')](_0x56592a=>_0x56592a[_0x3ce5('0x6')]));}
23
+ const _0xb815=['values','push','getClientRects','name','domConverter','sort','map','mapViewToDom','mapper','item','from','filter','length','domElement','markerNameToElements','view'];(function(_0x47d709,_0xb81589){const _0x44ee92=function(_0x526ef5){while(--_0x526ef5){_0x47d709['push'](_0x47d709['shift']());}};_0x44ee92(++_0xb81589);}(_0xb815,0x192));const _0x44ee=function(_0x47d709,_0xb81589){_0x47d709=_0x47d709-0x0;let _0x44ee92=_0xb815[_0x47d709];return _0x44ee92;};import{first as _0x370441}from'ckeditor5/src/utils.js';export default function k(_0x434070,_0x48ae3e){const _0x226ba5=_0x434070[_0x44ee('0x6')][_0x44ee('0xc')](_0x48ae3e[_0x44ee('0x1')]);if(!_0x226ba5)return null;const _0x59e682=_0x370441(_0x226ba5[_0x44ee('0xe')]());return _0x434070['view'][_0x44ee('0x2')][_0x44ee('0x5')](_0x59e682)||null;}export function getAllMarkersDomElementsSorted(_0x49dc95,_0x198842){if(0x0===_0x198842[_0x44ee('0xa')])return null;const _0x280ea8=[],_0x515cec=_0x49dc95[_0x44ee('0xd')][_0x44ee('0x2')];for(const _0x1c59c4 of _0x198842){const _0x32443d=_0x49dc95['mapper'][_0x44ee('0xc')](_0x1c59c4[_0x44ee('0x1')]);if(!_0x32443d)continue;const _0xb2fadb=Array[_0x44ee('0x8')](_0x32443d)[_0x44ee('0x4')](_0x476433=>_0x515cec[_0x44ee('0x5')](_0x476433))[_0x44ee('0x9')](_0x303e44=>!!_0x303e44);_0x280ea8[_0x44ee('0xf')](..._0xb2fadb);}if(0x0===_0x280ea8[_0x44ee('0xa')])return null;const _0x40d310=[];for(const _0x5e5c0e of _0x280ea8){const _0x6a4f20=_0x5e5c0e[_0x44ee('0x0')]()[_0x44ee('0x7')](0x0);_0x6a4f20&&_0x40d310[_0x44ee('0xf')]({'x':_0x6a4f20['x'],'y':_0x6a4f20['y'],'domElement':_0x5e5c0e});}return 0x0===_0x40d310[_0x44ee('0xa')]?null:(_0x40d310[_0x44ee('0x3')]((_0x702cd,_0x32b432)=>_0x702cd['y']-_0x32b432['y']||_0x702cd['x']-_0x32b432['x']),_0x40d310[_0x44ee('0x4')](_0x14d07a=>_0x14d07a[_0x44ee('0xb')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe17c=['object','number','isArray','charCodeAt','sign','keys'];(function(_0x11e228,_0xe17c7a){const _0x477b31=function(_0x729c0c){while(--_0x729c0c){_0x11e228['push'](_0x11e228['shift']());}};_0x477b31(++_0xe17c7a);}(_0xe17c,0xaf));const _0x477b=function(_0x11e228,_0xe17c7a){_0x11e228=_0x11e228-0x0;let _0x477b31=_0xe17c[_0x11e228];return _0x477b31;};export default function b(_0x127c49){let _0x291417=0x0,_0x5eee28=0x0;for(const _0x4738b6 of g(_0x127c49))_0x291417=(_0x291417<<0x5)-_0x291417+_0x4738b6,_0x291417&=_0x291417,[_0x291417,_0x5eee28]=[_0x5eee28,_0x291417];return O(_0x291417)+O(_0x5eee28);}function*j(_0x134537){_0x134537?'boolean'==typeof _0x134537?yield 0x1:Array[_0x477b('0x1')](_0x134537)?yield*function*(_0x5ba7df){for(const _0x204342 of _0x5ba7df)yield*j(_0x204342);}(_0x134537):_0x477b('0x5')==typeof _0x134537?yield*g(_0x134537):'string'==typeof _0x134537?yield*A(_0x134537):_0x477b('0x0')==typeof _0x134537&&(yield _0x134537):yield 0x0;}function*g(_0x21c4df){if(yield M('{'),_0x21c4df){const _0x388987=Object[_0x477b('0x4')](_0x21c4df)['sort']();for(const _0x22bc3e of _0x388987){yield*A(_0x22bc3e),yield M(':');const _0x24aad5=_0x21c4df[_0x22bc3e];yield*j(_0x24aad5);}}yield M('}');}function*A(_0x383000){yield M('\x22');for(const _0x3a6f3e of _0x383000)yield M(_0x3a6f3e);yield M('\x22');}function M(_0x5e5575){return _0x5e5575[_0x477b('0x2')](0x0);}function O(_0x1fdda7){return(_0x1fdda7*=Math[_0x477b('0x3')](_0x1fdda7))['toString'](0x24);}
23
+ const _0x41e2=['string','isArray','object','charCodeAt','boolean','number','keys','toString','sign'];(function(_0x372b4e,_0x41e27f){const _0x15d955=function(_0x50e1de){while(--_0x50e1de){_0x372b4e['push'](_0x372b4e['shift']());}};_0x15d955(++_0x41e27f);}(_0x41e2,0x14b));const _0x15d9=function(_0x372b4e,_0x41e27f){_0x372b4e=_0x372b4e-0x0;let _0x15d955=_0x41e2[_0x372b4e];return _0x15d955;};export default function b(_0x182ecd){let _0x5861ed=0x0,_0x56d021=0x0;for(const _0x5f373a of A(_0x182ecd))_0x5861ed=(_0x5861ed<<0x5)-_0x5861ed+_0x5f373a,_0x5861ed&=_0x5861ed,[_0x5861ed,_0x56d021]=[_0x56d021,_0x5861ed];return q(_0x5861ed)+q(_0x56d021);}function*g(_0xccf5e3){_0xccf5e3?_0x15d9('0x6')==typeof _0xccf5e3?yield 0x1:Array[_0x15d9('0x3')](_0xccf5e3)?yield*function*(_0x2f28a4){for(const _0x3f51cc of _0x2f28a4)yield*g(_0x3f51cc);}(_0xccf5e3):_0x15d9('0x4')==typeof _0xccf5e3?yield*A(_0xccf5e3):_0x15d9('0x2')==typeof _0xccf5e3?yield*M(_0xccf5e3):_0x15d9('0x7')==typeof _0xccf5e3&&(yield _0xccf5e3):yield 0x0;}function*A(_0x28b83d){if(yield O('{'),_0x28b83d){const _0x261d1c=Object[_0x15d9('0x8')](_0x28b83d)['sort']();for(const _0x45ed36 of _0x261d1c){yield*M(_0x45ed36),yield O(':');const _0xdc37b8=_0x28b83d[_0x45ed36];yield*g(_0xdc37b8);}}yield O('}');}function*M(_0x4a65a8){yield O('\x22');for(const _0x543583 of _0x4a65a8)yield O(_0x543583);yield O('\x22');}function O(_0x123856){return _0x123856[_0x15d9('0x5')](0x0);}function q(_0x5caf79){return(_0x5caf79*=Math[_0x15d9('0x1')](_0x5caf79))[_0x15d9('0x0')](0x24);}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @module collaboration-core/utils/common-translations
3
+ */
4
+ import type { Editor, EditorConfig } from 'ckeditor5/src/core';
5
+ /**
6
+ * A function that prepares config for internal editors removing all unnecessary plugins like RTC.
7
+ *
8
+ * @param editor The instance of the source editor.
9
+ * @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
10
+ */
11
+ export default function sanitizeEditorConfig(editor: Editor, extraBlackListedPlugins?: Array<string>): EditorConfig;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x2572=['constructor','get','WProofreader','string','map','has','config','plugins','toolbar','find','from','removePlugins','DocumentOutline','initialData','RevisionTracker','requires','length','builtinPlugins','names','every','rootsAttributes','pluginName','set','Autosave','extraPlugins','function','includes','name','concat','filter'];(function(_0x3f2f5c,_0x25729e){const _0x52b565=function(_0x304a1a){while(--_0x304a1a){_0x3f2f5c['push'](_0x3f2f5c['shift']());}};_0x52b565(++_0x25729e);}(_0x2572,0x16d));const _0x52b5=function(_0x3f2f5c,_0x25729e){_0x3f2f5c=_0x3f2f5c-0x0;let _0x52b565=_0x2572[_0x3f2f5c];return _0x52b565;};const w=[_0x52b5('0x8'),'context',_0x52b5('0x3'),_0x52b5('0xf')],W=['WebSocketGateway',_0x52b5('0x9'),_0x52b5('0x12'),'WordCount',_0x52b5('0x7'),_0x52b5('0x1b')];function v(_0x37c6ff,_0x117eb1,_0x48d1b8=[]){const _0x1a6b1d=_0x52b5('0x14')==typeof _0x37c6ff?_0x37c6ff[_0x52b5('0x10')]||_0x37c6ff[_0x52b5('0x16')]:_0x37c6ff;if(_0x117eb1[_0x52b5('0x0')](_0x1a6b1d))return _0x117eb1[_0x52b5('0x1a')](_0x1a6b1d);if(_0x117eb1[_0x52b5('0x11')](_0x1a6b1d,!0x0),_0x1a6b1d&&W['concat'](_0x48d1b8)[_0x52b5('0x15')](_0x1a6b1d))return _0x117eb1[_0x52b5('0x11')](_0x1a6b1d,!0x1),!0x1;if(!_0x37c6ff[_0x52b5('0xa')])return _0x117eb1['set'](_0x1a6b1d,!0x0),!0x0;const _0x2df4b0=_0x37c6ff['requires'][_0x52b5('0xe')](_0x4590d3=>v(_0x4590d3,_0x117eb1,_0x48d1b8));return _0x117eb1['set'](_0x1a6b1d,_0x2df4b0),_0x2df4b0;}export default function D(_0x277af9,_0x304ea2){const _0x1806a2={};for(const _0xff614a of _0x277af9['config'][_0x52b5('0xd')]())w[_0x52b5('0x15')](_0xff614a)||(_0x1806a2[_0xff614a]=_0x277af9[_0x52b5('0x1')][_0x52b5('0x1a')](_0xff614a));const _0x5a00d3=_0x1806a2['plugins']||[],_0x25218e=_0x277af9[_0x52b5('0x19')][_0x52b5('0xc')]||[],_0xa68f37=_0x5a00d3[_0x52b5('0xb')]?_0x5a00d3:_0x25218e,_0x5a83eb=_0x1806a2[_0x52b5('0x13')]||[];delete _0x1806a2['extraPlugins'];const _0x219f61=_0x1806a2['removePlugins']||[];delete _0x1806a2[_0x52b5('0x6')];const _0x490404=_0x277af9['_context'][_0x52b5('0x1')][_0x52b5('0x1a')]('plugins')||[],_0x46d7a3=_0xa68f37[_0x52b5('0x17')](_0x5a83eb)[_0x52b5('0x17')](_0x490404)[_0x52b5('0x1d')](_0x1efa45=>_0x52b5('0x1c')==typeof _0x1efa45?_0x25218e[_0x52b5('0x4')](_0x72e52=>_0x72e52['pluginName']==_0x1efa45):_0x1efa45)[_0x52b5('0x18')](_0x983526=>!_0x219f61[_0x52b5('0x15')](_0x983526)),_0x325276=Array[_0x52b5('0x5')](new Set(_0x46d7a3)),_0x4cdc55=new Map();return _0x1806a2[_0x52b5('0x2')]=_0x325276['filter'](_0x1c3178=>v(_0x1c3178,_0x4cdc55,_0x304ea2)),_0x1806a2;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c26=['split','substring','push','length','slice','match','replace','join','pop','startsWith'];(function(_0x2bff7c,_0x5c2634){const _0x2c0890=function(_0x1cb797){while(--_0x1cb797){_0x2bff7c['push'](_0x2bff7c['shift']());}};_0x2c0890(++_0x5c2634);}(_0x5c26,0x11c));const _0x2c08=function(_0x2bff7c,_0x5c2634){_0x2bff7c=_0x2bff7c-0x0;let _0x2c0890=_0x5c26[_0x2bff7c];return _0x2c0890;};export default function z(_0x15062c,{limit:_0x5b3606,suffix:_0x1ef59f='...'}){const _0x475035=[];let _0x43b6d8=0x0;const _0x21a193=_0x15062c[_0x2c08('0x2')](/</g,'\x0a<')[_0x2c08('0x2')](/>/g,'>\x0a')[_0x2c08('0x2')](/^\n/g,'')[_0x2c08('0x2')](/\n$/g,'')[_0x2c08('0x6')]('\x0a');for(let _0x29aec7=0x0;_0x29aec7<_0x21a193['length'];_0x29aec7++){let _0x31a041=_0x21a193[_0x29aec7];const _0x37dac9=Z(_0x31a041);if(_0x31a041[_0x2c08('0x5')]('<')){if(_0x43b6d8>=_0x5b3606){const _0x490260=_0x31a041[_0x2c08('0x1')](/[a-zA-Z]+/);if(!_0x490260){_0x21a193[_0x29aec7]='';continue;}const _0x1245ca=_0x490260[0x0];_0x31a041[_0x2c08('0x5')]('</')?(_0x475035['length']&&(_0x31a041=''),_0x475035[_0x2c08('0x4')]()):(_0x475035[_0x2c08('0x8')](_0x1245ca),_0x31a041='');}}else{if(_0x43b6d8>=_0x5b3606)_0x31a041='';else{if(_0x43b6d8+_0x37dac9[_0x2c08('0x9')]>=_0x5b3606){let _0x152d5e=_0x5b3606-_0x43b6d8;if('\x20'===_0x37dac9[_0x152d5e-0x1])_0x152d5e--;else{const _0x34f702=_0x37dac9[_0x2c08('0x0')](_0x152d5e)['indexOf']('\x20');-0x1!==_0x34f702?_0x152d5e+=_0x34f702:_0x152d5e=_0x31a041['length'];}_0x31a041=_0x37dac9[_0x2c08('0x0')](0x0,_0x152d5e)[_0x2c08('0x3')]('')+_0x1ef59f,_0x43b6d8=_0x5b3606;}else _0x43b6d8+=_0x37dac9[_0x2c08('0x9')];}}_0x21a193[_0x29aec7]=_0x31a041;}return _0x21a193[_0x2c08('0x3')]('\x0a')[_0x2c08('0x2')](/\n/g,'');}function Z(_0x4667e5){const _0x1e7d64=[];for(let _0x1cccbc=0x0;_0x1cccbc<_0x4667e5[_0x2c08('0x9')];_0x1cccbc++){const _0x46f442=_0x4667e5[_0x2c08('0x7')](_0x1cccbc)[_0x2c08('0x1')](/^&[a-z0-9#]+;/);if(_0x46f442){const _0x4608e2=_0x46f442[0x0];_0x1e7d64['push'](_0x4608e2),_0x1cccbc+=_0x4608e2[_0x2c08('0x9')]-0x1;}else _0x1e7d64[_0x2c08('0x8')](_0x4667e5[_0x1cccbc]);}return _0x1e7d64;}
23
+ const _0x4ce9=['length','split','join','slice','startsWith','replace','...','substring','pop','push','indexOf'];(function(_0x3931a8,_0x4ce984){const _0x2d9a4b=function(_0x4b2561){while(--_0x4b2561){_0x3931a8['push'](_0x3931a8['shift']());}};_0x2d9a4b(++_0x4ce984);}(_0x4ce9,0x154));const _0x2d9a=function(_0x3931a8,_0x4ce984){_0x3931a8=_0x3931a8-0x0;let _0x2d9a4b=_0x4ce9[_0x3931a8];return _0x2d9a4b;};export default function z(_0x1b46fa,{limit:_0x144387,suffix:_0x343c8b=_0x2d9a('0x7')}){const _0x4c69af=[];let _0x376ace=0x0;const _0x5da952=_0x1b46fa[_0x2d9a('0x6')](/</g,'\x0a<')[_0x2d9a('0x6')](/>/g,'>\x0a')[_0x2d9a('0x6')](/^\n/g,'')[_0x2d9a('0x6')](/\n$/g,'')[_0x2d9a('0x2')]('\x0a');for(let _0x95cc20=0x0;_0x95cc20<_0x5da952[_0x2d9a('0x1')];_0x95cc20++){let _0xbc399=_0x5da952[_0x95cc20];const _0x4aa13a=Z(_0xbc399);if(_0xbc399[_0x2d9a('0x5')]('<')){if(_0x376ace>=_0x144387){const _0x50f81f=_0xbc399['match'](/[a-zA-Z]+/);if(!_0x50f81f){_0x5da952[_0x95cc20]='';continue;}const _0x1abaa0=_0x50f81f[0x0];_0xbc399['startsWith']('</')?(_0x4c69af[_0x2d9a('0x1')]&&(_0xbc399=''),_0x4c69af[_0x2d9a('0x9')]()):(_0x4c69af[_0x2d9a('0xa')](_0x1abaa0),_0xbc399='');}}else{if(_0x376ace>=_0x144387)_0xbc399='';else{if(_0x376ace+_0x4aa13a[_0x2d9a('0x1')]>=_0x144387){let _0x29450f=_0x144387-_0x376ace;if('\x20'===_0x4aa13a[_0x29450f-0x1])_0x29450f--;else{const _0x254b2a=_0x4aa13a[_0x2d9a('0x4')](_0x29450f)[_0x2d9a('0x0')]('\x20');-0x1!==_0x254b2a?_0x29450f+=_0x254b2a:_0x29450f=_0xbc399['length'];}_0xbc399=_0x4aa13a[_0x2d9a('0x4')](0x0,_0x29450f)[_0x2d9a('0x3')]('')+_0x343c8b,_0x376ace=_0x144387;}else _0x376ace+=_0x4aa13a['length'];}}_0x5da952[_0x95cc20]=_0xbc399;}return _0x5da952[_0x2d9a('0x3')]('\x0a')[_0x2d9a('0x6')](/\n/g,'');}function Z(_0x500bae){const _0x925ed=[];for(let _0x469c62=0x0;_0x469c62<_0x500bae['length'];_0x469c62++){const _0x2d24e3=_0x500bae[_0x2d9a('0x8')](_0x469c62)['match'](/^&[a-z0-9#]+;/);if(_0x2d24e3){const _0x1795a2=_0x2d24e3[0x0];_0x925ed[_0x2d9a('0xa')](_0x1795a2),_0x469c62+=_0x1795a2[_0x2d9a('0x1')]-0x1;}else _0x925ed[_0x2d9a('0xa')](_0x500bae[_0x469c62]);}return _0x925ed;}