@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.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": "0.0.0-nightly-20230817.0",
3
+ "version": "0.0.0-nightly-20230818.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/)",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "0.0.0-nightly-20230817.0",
34
+ "ckeditor5": "0.0.0-nightly-20230818.1",
35
35
  "date-fns": "2.30.0"
36
36
  },
37
37
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6a62=['document:write','plugins','enableReadOnlyMode','find','forceDisabled','comment:write','CommentsOnly','setPermissions','editors','context','comment:modify_all','permissions-set-permissions-invalid-channel-id','no-permissions','collaboration.channelId','includes','comment:admin','pluginName','get','noPermissions','CommentsRepository','config'];(function(_0x227945,_0x6a6239){const _0x4d8447=function(_0x2acfe0){while(--_0x2acfe0){_0x227945['push'](_0x227945['shift']());}};_0x4d8447(++_0x6a6239);}(_0x6a62,0xf4));const _0x4d84=function(_0x227945,_0x6a6239){_0x227945=_0x227945-0x0;let _0x4d8447=_0x6a62[_0x227945];return _0x4d8447;};import{ContextPlugin as _0x487f25,Editor as _0x11af9a}from'ckeditor5/src/core';import{CKEditorError as _0x5abc6c}from'ckeditor5/src/utils';export default class n extends _0x487f25{static get[_0x4d84('0x3')](){return'Permissions';}[_0x4d84('0xf')](_0x2fc64d,_0x2ee99a){let _0x39c603;if(_0x2ee99a||(_0x2ee99a=this['context']['config'][_0x4d84('0x4')](_0x4d84('0x0'))),this[_0x4d84('0x11')]['config'][_0x4d84('0x4')](_0x4d84('0x0'))==_0x2ee99a?_0x39c603=this[_0x4d84('0x11')]:_0x4d84('0x10')in this[_0x4d84('0x11')]&&this['context'][_0x4d84('0x10')]&&(_0x39c603=this[_0x4d84('0x11')][_0x4d84('0x10')][_0x4d84('0xb')](_0x5bd1ed=>_0x5bd1ed[_0x4d84('0x7')]['get'](_0x4d84('0x0'))==_0x2ee99a)),!_0x39c603)throw new _0x5abc6c(_0x4d84('0x13'),null);const _0xdd8bca=_0x39c603[_0x4d84('0x9')],_0x10c7c1=_0xdd8bca['has'](_0x4d84('0x6'))?_0xdd8bca[_0x4d84('0x4')](_0x4d84('0x6')):void 0x0,_0x1903f1=_0xdd8bca['has'](_0x4d84('0xe'))&&_0xdd8bca[_0x4d84('0x4')]('CommentsOnly'),_0x4d3c70=_0x2fc64d['includes'](_0x4d84('0x8')),_0x511541=_0x2fc64d[_0x4d84('0x1')](_0x4d84('0x12')),_0x4b2085=_0x2fc64d['includes'](_0x4d84('0x2')),_0x223138=_0x2fc64d[_0x4d84('0x1')](_0x4d84('0xd')),_0x129f2f=_0x223138||_0x4b2085,_0x4dddc6=_0x129f2f||_0x511541,_0x1e2556=_0x4d3c70||_0x129f2f;(_0x1903f1&&(_0x1903f1['isEnabled']=!_0x4d3c70&&_0x4dddc6),_0x39c603 instanceof _0x11af9a)&&(!(_0x4d3c70||_0x4dddc6&&_0x10c7c1)?_0x39c603[_0x4d84('0xa')]('no-permissions'):_0x39c603['disableReadOnlyMode'](_0x4d84('0x14')));if(_0x10c7c1){_0x10c7c1[_0x4d84('0xf')]({'admin':_0x4b2085,'modifyAll':_0x511541,'write':_0x223138,'resolve':_0x1e2556},_0x2ee99a);const _0x43de14=_0x39c603 instanceof _0x11af9a&&_0x39c603['commands'][_0x4d84('0x4')]('addCommentThread');_0x43de14&&(_0x129f2f?_0x43de14['clearForceDisabled'](_0x4d84('0x5')):_0x43de14[_0x4d84('0xc')](_0x4d84('0x5')));}}}
23
+ const _0xd811=['comment:admin','no-permissions','context','config','addCommentThread','forceDisabled','document:write','editors','find','CommentsRepository','clearForceDisabled','CommentsOnly','noPermissions','collaboration.channelId','get','disableReadOnlyMode','setPermissions','plugins','includes','comment:modify_all'];(function(_0x437db2,_0xd81171){const _0x1ee42c=function(_0x3781ae){while(--_0x3781ae){_0x437db2['push'](_0x437db2['shift']());}};_0x1ee42c(++_0xd81171);}(_0xd811,0x17f));const _0x1ee4=function(_0x437db2,_0xd81171){_0x437db2=_0x437db2-0x0;let _0x1ee42c=_0xd811[_0x437db2];return _0x1ee42c;};import{ContextPlugin as _0x20aba4,Editor as _0x57dcfc}from'ckeditor5/src/core';import{CKEditorError as _0x21eefd}from'ckeditor5/src/utils';export default class n extends _0x20aba4{static get['pluginName'](){return'Permissions';}['setPermissions'](_0x2cf63f,_0x3ac170){let _0x176333;if(_0x3ac170||(_0x3ac170=this[_0x1ee4('0x13')][_0x1ee4('0x0')][_0x1ee4('0xb')](_0x1ee4('0xa'))),this[_0x1ee4('0x13')][_0x1ee4('0x0')][_0x1ee4('0xb')](_0x1ee4('0xa'))==_0x3ac170?_0x176333=this[_0x1ee4('0x13')]:_0x1ee4('0x4')in this[_0x1ee4('0x13')]&&this[_0x1ee4('0x13')][_0x1ee4('0x4')]&&(_0x176333=this[_0x1ee4('0x13')][_0x1ee4('0x4')][_0x1ee4('0x5')](_0xd456b2=>_0xd456b2['config'][_0x1ee4('0xb')]('collaboration.channelId')==_0x3ac170)),!_0x176333)throw new _0x21eefd('permissions-set-permissions-invalid-channel-id',null);const _0x47c3f4=_0x176333[_0x1ee4('0xe')],_0x2f09a5=_0x47c3f4['has'](_0x1ee4('0x6'))?_0x47c3f4['get']('CommentsRepository'):void 0x0,_0x26334a=_0x47c3f4['has'](_0x1ee4('0x8'))&&_0x47c3f4[_0x1ee4('0xb')](_0x1ee4('0x8')),_0x295545=_0x2cf63f[_0x1ee4('0xf')](_0x1ee4('0x3')),_0x41f105=_0x2cf63f[_0x1ee4('0xf')](_0x1ee4('0x10')),_0x2b3644=_0x2cf63f['includes'](_0x1ee4('0x11')),_0x405b6b=_0x2cf63f[_0x1ee4('0xf')]('comment:write'),_0x36fe36=_0x405b6b||_0x2b3644,_0x28624c=_0x36fe36||_0x41f105,_0x447255=_0x295545||_0x36fe36;(_0x26334a&&(_0x26334a['isEnabled']=!_0x295545&&_0x28624c),_0x176333 instanceof _0x57dcfc)&&(!(_0x295545||_0x28624c&&_0x2f09a5)?_0x176333['enableReadOnlyMode']('no-permissions'):_0x176333[_0x1ee4('0xc')](_0x1ee4('0x12')));if(_0x2f09a5){_0x2f09a5[_0x1ee4('0xd')]({'admin':_0x2b3644,'modifyAll':_0x41f105,'write':_0x405b6b,'resolve':_0x447255},_0x3ac170);const _0x56f5ac=_0x176333 instanceof _0x57dcfc&&_0x176333['commands'][_0x1ee4('0xb')](_0x1ee4('0x1'));_0x56f5ac&&(_0x36fe36?_0x56f5ac[_0x1ee4('0x7')](_0x1ee4('0x9')):_0x56f5ac[_0x1ee4('0x2')](_0x1ee4('0x9')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4342=['avatar','ck\x20ck-user__name\x20ck-user__name--hidden','initials','ck\x20ck-user__name','ck-user__img','ck-user__notification','ck-user__anonymous','ck-user__avatar','notificationView','ck-user','name','push','ck-user__icon','url(\x27','div'];(function(_0x11c893,_0x434215){const _0x2265cc=function(_0x3ac9db){while(--_0x3ac9db){_0x11c893['push'](_0x11c893['shift']());}};_0x2265cc(++_0x434215);}(_0x4342,0xae));const _0x2265=function(_0x11c893,_0x434215){_0x11c893=_0x11c893-0x0;let _0x2265cc=_0x4342[_0x11c893];return _0x2265cc;};import{View as _0x565bdd,IconView as _0x372d1f}from'ckeditor5/src/ui';import _0x2835b9 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x565bdd{constructor(_0x5aa581,_0x30a929,_0x22fdc4){super(_0x5aa581),this[_0x2265('0x1')]=_0x30a929['name'],this[_0x2265('0xe')]=null;const _0x5a3496=['ck',_0x2265('0xa')];if(_0x30a929['isAnonymous']&&_0x5a3496['push'](_0x2265('0xc')),_0x30a929[_0x2265('0x6')]&&_0x5a3496[_0x2265('0x2')](_0x2265('0xd')),_0x22fdc4){const _0x3c3e6a=new _0x372d1f();_0x3c3e6a['extendTemplate']({'attributes':{'class':[_0x2265('0x3')]}}),_0x3c3e6a['content']=_0x2835b9,this['notificationView']={'tag':_0x2265('0x5'),'attributes':{'class':['ck',_0x2265('0xb')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x22fdc4},'children':[_0x3c3e6a]};}const _0x4efd1a=[{'tag':_0x2265('0x5'),'attributes':{'class':_0x5a3496,'style':{'background-image':_0x30a929[_0x2265('0x6')]?_0x2265('0x4')+_0x30a929[_0x2265('0x6')]+'\x27)':''}}},{'tag':_0x2265('0x5'),'attributes':{'class':_0x30a929[_0x2265('0x6')]?_0x2265('0x7'):_0x2265('0x9')},'children':[{'text':_0x30a929[_0x2265('0x8')]}]}];this[_0x2265('0xe')]&&_0x4efd1a[_0x2265('0x2')](this[_0x2265('0xe')]),this['setTemplate']({'tag':_0x2265('0x5'),'attributes':{'class':['ck',_0x2265('0x0')],'data-user-id':_0x30a929['id']},'children':_0x4efd1a});}}
23
+ const _0x21be=['name','ck-user__notification','ck-user__anonymous','notificationView','ck-user','extendTemplate','ck\x20ck-user__name','setTemplate','ck-user__avatar','avatar','div','push','initials','ck-user__icon','content','ck\x20ck-user__name\x20ck-user__name--hidden','url(\x27','ck-user__img'];(function(_0x5a0b1a,_0x21becf){const _0x20351e=function(_0x2d6b8d){while(--_0x2d6b8d){_0x5a0b1a['push'](_0x5a0b1a['shift']());}};_0x20351e(++_0x21becf);}(_0x21be,0x1de));const _0x2035=function(_0x5a0b1a,_0x21becf){_0x5a0b1a=_0x5a0b1a-0x0;let _0x20351e=_0x21be[_0x5a0b1a];return _0x20351e;};import{View as _0xdd182a,IconView as _0x52219a}from'ckeditor5/src/ui';import _0x13beed from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0xdd182a{constructor(_0x33f308,_0x438d8f,_0x7cb2a0){super(_0x33f308),this['name']=_0x438d8f[_0x2035('0x8')],this['notificationView']=null;const _0x583505=['ck',_0x2035('0x7')];if(_0x438d8f['isAnonymous']&&_0x583505['push'](_0x2035('0xa')),_0x438d8f[_0x2035('0x11')]&&_0x583505[_0x2035('0x1')](_0x2035('0x10')),_0x7cb2a0){const _0x429c2f=new _0x52219a();_0x429c2f[_0x2035('0xd')]({'attributes':{'class':[_0x2035('0x3')]}}),_0x429c2f[_0x2035('0x4')]=_0x13beed,this[_0x2035('0xb')]={'tag':_0x2035('0x0'),'attributes':{'class':['ck',_0x2035('0x9')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x7cb2a0},'children':[_0x429c2f]};}const _0x4f613b=[{'tag':_0x2035('0x0'),'attributes':{'class':_0x583505,'style':{'background-image':_0x438d8f[_0x2035('0x11')]?_0x2035('0x6')+_0x438d8f['avatar']+'\x27)':''}}},{'tag':_0x2035('0x0'),'attributes':{'class':_0x438d8f[_0x2035('0x11')]?_0x2035('0x5'):_0x2035('0xe')},'children':[{'text':_0x438d8f[_0x2035('0x2')]}]}];this['notificationView']&&_0x4f613b[_0x2035('0x1')](this[_0x2035('0xb')]),this[_0x2035('0xf')]({'tag':_0x2035('0x0'),'attributes':{'class':['ck',_0x2035('0xc')],'data-user-id':_0x438d8f['id']},'children':_0x4f613b});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8a3a=['_getNextColor','licenseKeyTrialLimit:time','isAnonymous','invalid-license-key','users-add-duplicated-id','length','get','charAt','_myId','info','pluginName','getUser','includes','name','_id','_isAnonymous','Anonymous','licenseKeyInvalid','users-me-missing-user','_licenseKeyCheckInterval','define','add','has','getMarkerClass','anonymous-user','config','string','decorate','_getInitial','_addAnonymousUser','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.','getSelectionClass','locale','init','destroy','ck-user__selection--','trial-license-key-reached-limit-revisions','useAnonymousUser','defineMe','trial-license-key-reached-limit-changes','toUpperCase','context','users.colorsCount','licenseKeyTrial','ck-user__bg-color--','ck-user__marker--','requires','licenseKeyTrialLimit:revisions','color','getBackgroundColorClass','licenseKey','_lastColor','Users','addUser','avatar','users.anonymousUserId','users','licenseKeyValid','initials','split','_locale'];(function(_0x940555,_0x8a3a1f){const _0x19a1a2=function(_0x45d067){while(--_0x45d067){_0x940555['push'](_0x940555['shift']());}};_0x19a1a2(++_0x8a3a1f);}(_0x8a3a,0x8a));const _0x19a1=function(_0x940555,_0x8a3a1f){_0x940555=_0x940555-0x0;let _0x19a1a2=_0x8a3a[_0x940555];return _0x19a1a2;};import{ContextPlugin as _0x574960}from'ckeditor5/src/core';import{Collection as _0x5b2021,CKEditorError as _0x5e12d5}from'ckeditor5/src/utils';import _0x3b48b4 from'./permissions';import{getTranslation as _0x4616a5}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x574960{static get[_0x19a1('0x37')](){return _0x19a1('0x24');}static get[_0x19a1('0x1e')](){return[_0x3b48b4];}constructor(_0x19d943){super(_0x19d943),this[_0x19a1('0x19')][_0x19a1('0x9')][_0x19a1('0x4')](_0x19a1('0x27'),_0x19a1('0x8')),this[_0x19a1('0x19')][_0x19a1('0x9')]['define'](_0x19a1('0x1a'),0x8),this[_0x19a1('0x28')]=new _0x5b2021(),this['_locale']=_0x19d943[_0x19a1('0x10')],this[_0x19a1('0x3')]=null,this[_0x19a1('0x23')]=0x0,this['_myId']=null,this[_0x19a1('0xb')]('getOperationAuthor');}[_0x19a1('0x11')](){const _0x13257f=this[_0x19a1('0x19')];this[_0x19a1('0x22')]=_0x13257f[_0x19a1('0x9')][_0x19a1('0x33')](_0x19a1('0x22'));const _0x4c5db3=['licenseKeyTrial','licenseKeyInvalid','licenseKeyValid','licenseKeyTrialLimit:operations','licenseKeyTrialLimit:time',_0x19a1('0x1f')];this[_0x19a1('0x3')]=setInterval(()=>{let _0x2b2081;for(const _0x46c7fa in _0x13257f){const _0x28e0ee=_0x13257f[_0x46c7fa];if(_0x4c5db3[_0x19a1('0x39')](_0x28e0ee)){delete _0x13257f[_0x46c7fa],_0x2b2081=_0x28e0ee;break;}}if(_0x19a1('0x1')===_0x2b2081)throw clearInterval(this[_0x19a1('0x3')]),new _0x5e12d5(_0x19a1('0x30'),null);if(_0x19a1('0x1b')===_0x2b2081&&console[_0x19a1('0x36')](_0x19a1('0xe')),'licenseKeyTrialLimit:operations'===_0x2b2081)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5e12d5(_0x19a1('0x17'),null);if(_0x19a1('0x2e')===_0x2b2081)throw clearInterval(this[_0x19a1('0x3')]),new _0x5e12d5('trial-license-key-reached-limit-time',null);if('licenseKeyTrialLimit:revisions'===_0x2b2081)throw clearInterval(this[_0x19a1('0x3')]),new _0x5e12d5(_0x19a1('0x14'),null);_0x19a1('0x29')===_0x2b2081&&clearInterval(this[_0x19a1('0x3')]);},0x3e8),this[_0x19a1('0xd')]();}get['me'](){return null==this['_myId']?null:this['getUser'](this[_0x19a1('0x35')]);}[_0x19a1('0x25')]({id:_0x330b65,name:_0x5691a8,..._0x1eb204}){if(!_0x330b65||_0x19a1('0xa')!=typeof _0x330b65)throw new _0x5e12d5('users-add-invalid-id');if(this[_0x19a1('0x28')][_0x19a1('0x6')](_0x330b65))throw new _0x5e12d5(_0x19a1('0x31'),null,{'id':_0x330b65});const _0x389699={..._0x1eb204,'id':_0x330b65,'name':a(this['_locale'],_0x5691a8),'color':this['_getNextColor']()};_0x389699[_0x19a1('0x3a')]=a(this[_0x19a1('0x2c')],_0x389699[_0x19a1('0x3a')]);const _0x1d60aa=new User(_0x389699);return this[_0x19a1('0x28')][_0x19a1('0x5')](_0x1d60aa),_0x1d60aa;}['getUser'](_0x4fb2d4){return this[_0x19a1('0x28')][_0x19a1('0x33')](_0x4fb2d4);}[_0x19a1('0x15')](){const _0x32ab2c=this[_0x19a1('0x19')][_0x19a1('0x9')][_0x19a1('0x33')]('users.anonymousUserId');this[_0x19a1('0x35')]||this[_0x19a1('0x16')](_0x32ab2c);}[_0x19a1('0x16')](_0x3dbcd9){if(this[_0x19a1('0x35')])throw new _0x5e12d5('users-me-already-defined',null);if(!this[_0x19a1('0x38')](_0x3dbcd9))throw new _0x5e12d5(_0x19a1('0x2'),null);this[_0x19a1('0x35')]=_0x3dbcd9;}['getOperationAuthor'](){return this['me'];}['destroy'](){super[_0x19a1('0x12')](),clearInterval(this[_0x19a1('0x3')]);}[_0x19a1('0x2d')](){const _0x517e0a=this['context'][_0x19a1('0x9')][_0x19a1('0x33')](_0x19a1('0x1a'));return this[_0x19a1('0x23')]>=_0x517e0a&&(this['_lastColor']=0x0),new u(this[_0x19a1('0x23')]++);}['_addAnonymousUser'](){const _0x3d7574=this['context'][_0x19a1('0x9')][_0x19a1('0x33')](_0x19a1('0x27'));this[_0x19a1('0x25')]({'id':_0x3d7574,'name':_0x4616a5(this[_0x19a1('0x2c')],_0x19a1('0x0'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x19b914){this['id']=_0x19b914['id'],this[_0x19a1('0x20')]=_0x19b914[_0x19a1('0x20')],this['name']=_0x19b914[_0x19a1('0x3a')],this[_0x19a1('0x26')]=_0x19b914['avatar'],this[_0x19a1('0x3c')]=!0x1;}get[_0x19a1('0x2f')](){return this[_0x19a1('0x3c')];}get[_0x19a1('0x2a')](){const _0x291cb4=this[_0x19a1('0x3a')][_0x19a1('0x2b')]('\x20');return 0x1===_0x291cb4[_0x19a1('0x32')]?this[_0x19a1('0xc')](_0x291cb4[0x0]):this[_0x19a1('0xc')](_0x291cb4[0x0])+this[_0x19a1('0xc')](_0x291cb4[_0x291cb4[_0x19a1('0x32')]-0x1]);}['_getInitial'](_0x26b59b){return _0x26b59b[_0x19a1('0x34')](0x0)[_0x19a1('0x18')]();}}function a(_0x4add70,_0x539487=''){return''==(_0x539487=_0x539487['trim']())?_0x4616a5(_0x4add70,_0x19a1('0x0')):_0x539487;}class u{constructor(_0x1247d7){this[_0x19a1('0x3b')]=_0x1247d7;}[_0x19a1('0x21')](){return _0x19a1('0x1c')+this[_0x19a1('0x3b')];}[_0x19a1('0xf')](){return _0x19a1('0x13')+this[_0x19a1('0x3b')];}[_0x19a1('0x7')](){return _0x19a1('0x1d')+this['_id'];}}
23
+ const _0x4894=['getSelectionClass','_id','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.','has','ck-user__bg-color--','_licenseKeyCheckInterval','users-add-duplicated-id','users.colorsCount','includes','length','split','Anonymous','getOperationAuthor','anonymous-user','init','getUser','getBackgroundColorClass','trial-license-key-reached-limit-time','trim','decorate','color','_myId','config','useAnonymousUser','licenseKeyTrialLimit:operations','get','context','invalid-license-key','_locale','locale','toUpperCase','define','licenseKeyValid','defineMe','destroy','getMarkerClass','users-add-invalid-id','trial-license-key-reached-limit-changes','_getInitial','licenseKeyTrialLimit:time','_addAnonymousUser','licenseKeyTrial','string','_lastColor','isAnonymous','initials','_isAnonymous','name','users-me-missing-user','licenseKeyTrialLimit:revisions','licenseKeyInvalid','Users','users','avatar','users.anonymousUserId','users-me-already-defined','_getNextColor','licenseKey'];(function(_0x82ef05,_0x4894a9){const _0xb421cd=function(_0x5924ce){while(--_0x5924ce){_0x82ef05['push'](_0x82ef05['shift']());}};_0xb421cd(++_0x4894a9);}(_0x4894,0x86));const _0xb421=function(_0x82ef05,_0x4894a9){_0x82ef05=_0x82ef05-0x0;let _0xb421cd=_0x4894[_0x82ef05];return _0xb421cd;};import{ContextPlugin as _0x26fc75}from'ckeditor5/src/core';import{Collection as _0x4aa22b,CKEditorError as _0x81b814}from'ckeditor5/src/utils';import _0x3d7d1d from'./permissions';import{getTranslation as _0x3cbc65}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x26fc75{static get['pluginName'](){return _0xb421('0x21');}static get['requires'](){return[_0x3d7d1d];}constructor(_0x7215b0){super(_0x7215b0),this[_0xb421('0x8')]['config'][_0xb421('0xd')]('users.anonymousUserId',_0xb421('0x35')),this[_0xb421('0x8')][_0xb421('0x4')][_0xb421('0xd')](_0xb421('0x2f'),0x8),this[_0xb421('0x22')]=new _0x4aa22b(),this[_0xb421('0xa')]=_0x7215b0[_0xb421('0xb')],this[_0xb421('0x2d')]=null,this[_0xb421('0x19')]=0x0,this[_0xb421('0x3')]=null,this[_0xb421('0x1')]('getOperationAuthor');}[_0xb421('0x36')](){const _0x324f50=this[_0xb421('0x8')];this[_0xb421('0x27')]=_0x324f50[_0xb421('0x4')][_0xb421('0x7')](_0xb421('0x27'));const _0x4c6543=[_0xb421('0x17'),_0xb421('0x20'),'licenseKeyValid',_0xb421('0x6'),'licenseKeyTrialLimit:time',_0xb421('0x1f')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7f80d5;for(const _0xb64f6d in _0x324f50){const _0x2940c3=_0x324f50[_0xb64f6d];if(_0x4c6543[_0xb421('0x30')](_0x2940c3)){delete _0x324f50[_0xb64f6d],_0x7f80d5=_0x2940c3;break;}}if(_0xb421('0x20')===_0x7f80d5)throw clearInterval(this[_0xb421('0x2d')]),new _0x81b814(_0xb421('0x9'),null);if(_0xb421('0x17')===_0x7f80d5&&console['info'](_0xb421('0x2a')),_0xb421('0x6')===_0x7f80d5)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x81b814(_0xb421('0x13'),null);if(_0xb421('0x15')===_0x7f80d5)throw clearInterval(this[_0xb421('0x2d')]),new _0x81b814(_0xb421('0x39'),null);if(_0xb421('0x1f')===_0x7f80d5)throw clearInterval(this[_0xb421('0x2d')]),new _0x81b814('trial-license-key-reached-limit-revisions',null);_0xb421('0xe')===_0x7f80d5&&clearInterval(this[_0xb421('0x2d')]);},0x3e8),this[_0xb421('0x16')]();}get['me'](){return null==this[_0xb421('0x3')]?null:this[_0xb421('0x37')](this['_myId']);}['addUser']({id:_0x2cf8f6,name:_0x2ae835,..._0x752c28}){if(!_0x2cf8f6||_0xb421('0x18')!=typeof _0x2cf8f6)throw new _0x81b814(_0xb421('0x12'));if(this['users'][_0xb421('0x2b')](_0x2cf8f6))throw new _0x81b814(_0xb421('0x2e'),null,{'id':_0x2cf8f6});const _0xbdcf6f={..._0x752c28,'id':_0x2cf8f6,'name':a(this['_locale'],_0x2ae835),'color':this[_0xb421('0x26')]()};_0xbdcf6f['name']=a(this[_0xb421('0xa')],_0xbdcf6f[_0xb421('0x1d')]);const _0x41c960=new User(_0xbdcf6f);return this[_0xb421('0x22')]['add'](_0x41c960),_0x41c960;}[_0xb421('0x37')](_0x4cb0d7){return this['users'][_0xb421('0x7')](_0x4cb0d7);}[_0xb421('0x5')](){const _0x48d40e=this[_0xb421('0x8')][_0xb421('0x4')][_0xb421('0x7')](_0xb421('0x24'));this[_0xb421('0x3')]||this[_0xb421('0xf')](_0x48d40e);}[_0xb421('0xf')](_0x4cfca1){if(this[_0xb421('0x3')])throw new _0x81b814(_0xb421('0x25'),null);if(!this['getUser'](_0x4cfca1))throw new _0x81b814(_0xb421('0x1e'),null);this[_0xb421('0x3')]=_0x4cfca1;}[_0xb421('0x34')](){return this['me'];}['destroy'](){super[_0xb421('0x10')](),clearInterval(this[_0xb421('0x2d')]);}[_0xb421('0x26')](){const _0x49fdf5=this[_0xb421('0x8')][_0xb421('0x4')][_0xb421('0x7')](_0xb421('0x2f'));return this[_0xb421('0x19')]>=_0x49fdf5&&(this[_0xb421('0x19')]=0x0),new u(this[_0xb421('0x19')]++);}[_0xb421('0x16')](){const _0x404179=this['context'][_0xb421('0x4')]['get'](_0xb421('0x24'));this['addUser']({'id':_0x404179,'name':_0x3cbc65(this['_locale'],_0xb421('0x33'))})[_0xb421('0x1c')]=!0x0;}}export class User{constructor(_0x28637f){this['id']=_0x28637f['id'],this[_0xb421('0x2')]=_0x28637f['color'],this[_0xb421('0x1d')]=_0x28637f[_0xb421('0x1d')],this['avatar']=_0x28637f[_0xb421('0x23')],this[_0xb421('0x1c')]=!0x1;}get[_0xb421('0x1a')](){return this[_0xb421('0x1c')];}get[_0xb421('0x1b')](){const _0x5cfde7=this[_0xb421('0x1d')][_0xb421('0x32')]('\x20');return 0x1===_0x5cfde7[_0xb421('0x31')]?this[_0xb421('0x14')](_0x5cfde7[0x0]):this[_0xb421('0x14')](_0x5cfde7[0x0])+this[_0xb421('0x14')](_0x5cfde7[_0x5cfde7['length']-0x1]);}[_0xb421('0x14')](_0x5857f5){return _0x5857f5['charAt'](0x0)[_0xb421('0xc')]();}}function a(_0x5c410d,_0x369b84=''){return''==(_0x369b84=_0x369b84[_0xb421('0x0')]())?_0x3cbc65(_0x5c410d,'Anonymous'):_0x369b84;}class u{constructor(_0x2083c4){this['_id']=_0x2083c4;}[_0xb421('0x38')](){return _0xb421('0x2c')+this['_id'];}[_0xb421('0x28')](){return'ck-user__selection--'+this[_0xb421('0x29')];}[_0xb421('0x11')](){return'ck-user__marker--'+this[_0xb421('0x29')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5ab55f,_0x4079fe){const t=_0x5ab55f['t'];switch(_0x4079fe){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(_0x4487b9,_0x460219){const t=_0x4487b9['t'];switch(_0x460219){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 _0x474e=['message','destroy','element','deregisterChild','cancelConfirm','submit','_removeConfirm','registerChild','once','confirmView','focus','locale','cancel','isConfirm','render','remove','appendChild','set'];(function(_0xd64c34,_0x474e87){var _0x5cec67=function(_0x288ff6){while(--_0x288ff6){_0xd64c34['push'](_0xd64c34['shift']());}};_0x5cec67(++_0x474e87);}(_0x474e,0x9c));var _0x5cec=function(_0xd64c34,_0x474e87){_0xd64c34=_0xd64c34-0x0;var _0x5cec67=_0x474e[_0xd64c34];return _0x5cec67;};import _0x41f437 from'./confirmview';export default function m(_0x5d705a){return class extends _0x5d705a{['showConfirm'](_0x379c86,_0x5c9935){return this[_0x5cec('0xf')]=new _0x41f437(this[_0x5cec('0x11')]),this['confirmView'][_0x5cec('0x2')](),this[_0x5cec('0xf')][_0x5cec('0x6')]=_0x379c86,this[_0x5cec('0xf')][_0x5cec('0xe')](_0x5cec('0x0'),()=>{this['_removeConfirm']();}),this[_0x5cec('0xf')][_0x5cec('0xe')]('submit',()=>{this[_0x5cec('0xc')]();}),_0x5c9935[_0x5cec('0x4')](this[_0x5cec('0xf')]['element']),this[_0x5cec('0xd')](this[_0x5cec('0xf')]),this[_0x5cec('0x8')][_0x5cec('0x10')](),this[_0x5cec('0x5')](_0x5cec('0x1'),!0x0),new Promise(_0x49d20d=>this[_0x5cec('0xf')]['on'](_0x5cec('0xb'),_0x49d20d));}[_0x5cec('0xa')](){this[_0x5cec('0x1')]&&this[_0x5cec('0xf')]['fire']('cancel');}['_removeConfirm'](){this[_0x5cec('0x8')]&&this[_0x5cec('0xf')]&&this[_0x5cec('0xf')][_0x5cec('0x8')]&&(this[_0x5cec('0x8')][_0x5cec('0x10')](),this['confirmView'][_0x5cec('0x8')][_0x5cec('0x3')](),this[_0x5cec('0x9')](this['confirmView']),this[_0x5cec('0x1')]=!0x1,this[_0x5cec('0xf')][_0x5cec('0x7')](),this['confirmView']=void 0x0);}};}
23
+ var _0x5195=['deregisterChild','confirmView','submit','locale','destroy','_removeConfirm','once','element','appendChild','registerChild','focus','isConfirm','message','cancelConfirm','cancel','remove'];(function(_0x53e035,_0x5195c0){var _0xf6e96=function(_0x1a7522){while(--_0x1a7522){_0x53e035['push'](_0x53e035['shift']());}};_0xf6e96(++_0x5195c0);}(_0x5195,0x1c4));var _0xf6e9=function(_0x53e035,_0x5195c0){_0x53e035=_0x53e035-0x0;var _0xf6e96=_0x5195[_0x53e035];return _0xf6e96;};import _0x2d1239 from'./confirmview';export default function m(_0x22d9cf){return class extends _0x22d9cf{['showConfirm'](_0x34fb3c,_0x20c825){return this['confirmView']=new _0x2d1239(this[_0xf6e9('0xf')]),this[_0xf6e9('0xd')]['render'](),this['confirmView'][_0xf6e9('0x8')]=_0x34fb3c,this['confirmView'][_0xf6e9('0x2')](_0xf6e9('0xa'),()=>{this[_0xf6e9('0x1')]();}),this[_0xf6e9('0xd')][_0xf6e9('0x2')]('submit',()=>{this['_removeConfirm']();}),_0x20c825[_0xf6e9('0x4')](this[_0xf6e9('0xd')][_0xf6e9('0x3')]),this[_0xf6e9('0x5')](this[_0xf6e9('0xd')]),this[_0xf6e9('0x3')][_0xf6e9('0x6')](),this['set'](_0xf6e9('0x7'),!0x0),new Promise(_0x1bd360=>this['confirmView']['on'](_0xf6e9('0xe'),_0x1bd360));}[_0xf6e9('0x9')](){this[_0xf6e9('0x7')]&&this['confirmView']['fire'](_0xf6e9('0xa'));}[_0xf6e9('0x1')](){this['element']&&this[_0xf6e9('0xd')]&&this[_0xf6e9('0xd')][_0xf6e9('0x3')]&&(this[_0xf6e9('0x3')][_0xf6e9('0x6')](),this[_0xf6e9('0xd')][_0xf6e9('0x3')][_0xf6e9('0xb')](),this[_0xf6e9('0xc')](this['confirmView']),this['isConfirm']=!0x1,this[_0xf6e9('0xd')][_0xf6e9('0x0')](),this[_0xf6e9('0xd')]=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16c5=['bindTemplate','div','message','fire','submitView','icon','submit','cancelView','Are\x20you\x20sure?','extendTemplate','cancel','ck-thread__remove-confirm-inner','Yes','_createButtonView'];(function(_0x11f460,_0x16c540){const _0x96ccde=function(_0x12c254){while(--_0x12c254){_0x11f460['push'](_0x11f460['shift']());}};_0x96ccde(++_0x16c540);}(_0x16c5,0xaf));const _0x96cc=function(_0x11f460,_0x16c540){_0x11f460=_0x11f460-0x0;let _0x96ccde=_0x16c5[_0x11f460];return _0x96ccde;};import{View as _0x5e033a,ButtonView as _0x15fc73}from'ckeditor5/src/ui';import{icons as _0x13a5f9}from'ckeditor5/src/core';import{getTranslation as _0x142aeb}from'./common-translations';export default class h extends _0x5e033a{constructor(_0x30a72f){super(_0x30a72f);const _0x37eaa6=this[_0x96cc('0x7')];this[_0x96cc('0xb')]=this[_0x96cc('0x6')](_0x30a72f,_0x142aeb(_0x30a72f,_0x96cc('0x5')),_0x13a5f9['check'],_0x96cc('0xd')),this[_0x96cc('0x0')]=this[_0x96cc('0x6')](_0x30a72f,_0x142aeb(_0x30a72f,'No'),_0x13a5f9[_0x96cc('0x3')],_0x96cc('0x3')),this['set'](_0x96cc('0x9'),_0x142aeb(_0x30a72f,_0x96cc('0x1'))),this['setTemplate']({'tag':_0x96cc('0x8'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':_0x96cc('0x4')},'children':[{'tag':'p','children':[{'text':_0x37eaa6['to']('message')}]},{'tag':_0x96cc('0x8'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x96cc('0xb')],this[_0x96cc('0x0')]]}]}]});}['_createButtonView'](_0x13badf,_0x4eb223,_0x1e5d31,_0x1cddd0){const _0x331ab7=new _0x15fc73(_0x13badf);return _0x331ab7['label']=_0x4eb223,_0x331ab7[_0x96cc('0xc')]=_0x1e5d31,_0x331ab7[_0x96cc('0x2')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x1cddd0}}),_0x331ab7['on']('execute',()=>this[_0x96cc('0xa')](_0x1cddd0)),_0x331ab7;}}
23
+ const _0x23a7=['extendTemplate','set','cancelView','Are\x20you\x20sure?','submitView','icon','fire','ck-thread__remove-confirm','execute','ck-thread__remove-confirm-inner','submit','message','setTemplate','div','bindTemplate','_createButtonView','cancel','Yes','ck-thread__remove-confirm-'];(function(_0x16a7a4,_0x23a782){const _0x4c62eb=function(_0x551bc8){while(--_0x551bc8){_0x16a7a4['push'](_0x16a7a4['shift']());}};_0x4c62eb(++_0x23a782);}(_0x23a7,0xc3));const _0x4c62=function(_0x16a7a4,_0x23a782){_0x16a7a4=_0x16a7a4-0x0;let _0x4c62eb=_0x23a7[_0x16a7a4];return _0x4c62eb;};import{View as _0x339e1c,ButtonView as _0xc3e1a}from'ckeditor5/src/ui';import{icons as _0x5b9d01}from'ckeditor5/src/core';import{getTranslation as _0x2d2c26}from'./common-translations';export default class h extends _0x339e1c{constructor(_0x40e2cd){super(_0x40e2cd);const _0x109e44=this[_0x4c62('0x9')];this['submitView']=this[_0x4c62('0xa')](_0x40e2cd,_0x2d2c26(_0x40e2cd,_0x4c62('0xc')),_0x5b9d01['check'],_0x4c62('0x5')),this[_0x4c62('0x10')]=this[_0x4c62('0xa')](_0x40e2cd,_0x2d2c26(_0x40e2cd,'No'),_0x5b9d01[_0x4c62('0xb')],_0x4c62('0xb')),this[_0x4c62('0xf')](_0x4c62('0x6'),_0x2d2c26(_0x40e2cd,_0x4c62('0x11'))),this[_0x4c62('0x7')]({'tag':_0x4c62('0x8'),'attributes':{'class':[_0x4c62('0x2')]},'children':[{'tag':'div','attributes':{'class':_0x4c62('0x4')},'children':[{'tag':'p','children':[{'text':_0x109e44['to'](_0x4c62('0x6'))}]},{'tag':_0x4c62('0x8'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x4c62('0x12')],this['cancelView']]}]}]});}['_createButtonView'](_0x3e167f,_0x2677b9,_0x112953,_0x17ee2a){const _0xa5be25=new _0xc3e1a(_0x3e167f);return _0xa5be25['label']=_0x2677b9,_0xa5be25[_0x4c62('0x0')]=_0x112953,_0xa5be25[_0x4c62('0xe')]({'attributes':{'class':_0x4c62('0xd')+_0x17ee2a}}),_0xa5be25['on'](_0x4c62('0x3'),()=>this[_0x4c62('0x1')](_0x17ee2a)),_0xa5be25;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dc2=['function','string','dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma','MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma'];(function(_0x12ed83,_0x3dc2f2){const _0x36a566=function(_0x51e902){while(--_0x51e902){_0x12ed83['push'](_0x12ed83['shift']());}};_0x36a566(++_0x3dc2f2);}(_0x3dc2,0xb3));const _0x36a5=function(_0x12ed83,_0x3dc2f2){_0x12ed83=_0x12ed83-0x0;let _0x36a566=_0x3dc2[_0x12ed83];return _0x36a566;};import _0x3bb6a1 from'date-fns/format';import _0x3cbd46 from'date-fns/parseISO';import _0x5e4580 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x588f6e}from'ckeditor5/src/utils';export default function E(_0x314bf2={}){if(void 0x0!==_0x314bf2[_0x36a5('0x3')]&&_0x36a5('0x1')!=typeof _0x314bf2[_0x36a5('0x3')])throw new _0x588f6e('invalid-date-time-format');return _0x3e475f=>{const _0x223005=_0x36a5('0x2')==typeof _0x3e475f?_0x3cbd46(_0x3e475f):_0x3e475f,_0x2a4290=new Date(),_0x1a19f5=_0x5e4580(_0x2a4290,_0x223005);return _0x314bf2[_0x36a5('0x3')]?_0x314bf2['dateTimeFormat'](_0x223005):_0x3bb6a1(_0x223005,0x0===_0x1a19f5?'\x27Today\x27\x20hh:mma':0x1===_0x1a19f5?_0x36a5('0x0'):_0x1a19f5<0x7?_0x36a5('0x4'):_0x36a5('0x5'));};}
23
+ const _0x1fb5=['\x27Last\x27\x20EEEE\x20hh:mma','invalid-date-time-format','MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma','string','dateTimeFormat','function'];(function(_0x2c769a,_0x1fb540){const _0x9c0ea3=function(_0x232966){while(--_0x232966){_0x2c769a['push'](_0x2c769a['shift']());}};_0x9c0ea3(++_0x1fb540);}(_0x1fb5,0x11e));const _0x9c0e=function(_0x2c769a,_0x1fb540){_0x2c769a=_0x2c769a-0x0;let _0x9c0ea3=_0x1fb5[_0x2c769a];return _0x9c0ea3;};import _0x217a5f from'date-fns/format';import _0x146abc from'date-fns/parseISO';import _0x26d07f from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x4316bc}from'ckeditor5/src/utils';export default function E(_0x221613={}){if(void 0x0!==_0x221613[_0x9c0e('0x6')]&&_0x9c0e('0x0')!=typeof _0x221613[_0x9c0e('0x6')])throw new _0x4316bc(_0x9c0e('0x2'));return _0x2cf69c=>{const _0x2006e0=_0x9c0e('0x5')==typeof _0x2cf69c?_0x146abc(_0x2cf69c):_0x2cf69c,_0xddd423=new Date(),_0x4e6bad=_0x26d07f(_0xddd423,_0x2006e0);return _0x221613[_0x9c0e('0x6')]?_0x221613[_0x9c0e('0x6')](_0x2006e0):_0x217a5f(_0x2006e0,0x0===_0x4e6bad?'\x27Today\x27\x20hh:mma':0x1===_0x4e6bad?_0x9c0e('0x4'):_0x4e6bad<0x7?_0x9c0e('0x1'):_0x9c0e('0x3'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5005=['mapViewToDom','markerNameToElements','mapper','sort','filter','from','domConverter','item','domElement','values','length','push','view','map'];(function(_0x15cbab,_0x5005fc){const _0x1fb4b1=function(_0x5865fd){while(--_0x5865fd){_0x15cbab['push'](_0x15cbab['shift']());}};_0x1fb4b1(++_0x5005fc);}(_0x5005,0xbf));const _0x1fb4=function(_0x15cbab,_0x5005fc){_0x15cbab=_0x15cbab-0x0;let _0x1fb4b1=_0x5005[_0x15cbab];return _0x1fb4b1;};import{first as _0x3c45e5}from'ckeditor5/src/utils';export default function k(_0x4c7898,_0x35d189){const _0x4b24ee=_0x4c7898[_0x1fb4('0x7')][_0x1fb4('0x6')](_0x35d189['name']);if(!_0x4b24ee)return null;const _0x3f1c9e=_0x3c45e5(_0x4b24ee[_0x1fb4('0x0')]());return _0x4c7898[_0x1fb4('0x3')][_0x1fb4('0xb')]['mapViewToDom'](_0x3f1c9e)||null;}export function getAllMarkersDomElementsSorted(_0x13a913,_0x206d83){if(0x0===_0x206d83[_0x1fb4('0x1')])return null;const _0x1969a4=[],_0x43a38d=_0x13a913[_0x1fb4('0x3')][_0x1fb4('0xb')];for(const _0x40a3dc of _0x206d83){const _0xbdc3bc=_0x13a913[_0x1fb4('0x7')][_0x1fb4('0x6')](_0x40a3dc['name']);if(!_0xbdc3bc)continue;const _0x2f27ff=Array[_0x1fb4('0xa')](_0xbdc3bc)[_0x1fb4('0x4')](_0x3405cd=>_0x43a38d[_0x1fb4('0x5')](_0x3405cd))[_0x1fb4('0x9')](_0x51bacf=>!!_0x51bacf);_0x1969a4['push'](..._0x2f27ff);}if(0x0===_0x1969a4[_0x1fb4('0x1')])return null;const _0x32ceab=[];for(const _0x2a0646 of _0x1969a4){const _0x11459e=_0x2a0646['getClientRects']()[_0x1fb4('0xc')](0x0);_0x11459e&&_0x32ceab[_0x1fb4('0x2')]({'x':_0x11459e['x'],'y':_0x11459e['y'],'domElement':_0x2a0646});}return 0x0===_0x32ceab[_0x1fb4('0x1')]?null:(_0x32ceab[_0x1fb4('0x8')]((_0x160e62,_0x394d14)=>_0x160e62['y']-_0x394d14['y']||_0x160e62['x']-_0x394d14['x']),_0x32ceab[_0x1fb4('0x4')](_0x1519c8=>_0x1519c8[_0x1fb4('0xd')]));}
23
+ const _0x6752=['length','from','domElement','mapper','getClientRects','sort','domConverter','push','name','map','markerNameToElements','view','mapViewToDom'];(function(_0x32655c,_0x675244){const _0x9f42c8=function(_0x204cb3){while(--_0x204cb3){_0x32655c['push'](_0x32655c['shift']());}};_0x9f42c8(++_0x675244);}(_0x6752,0x137));const _0x9f42=function(_0x32655c,_0x675244){_0x32655c=_0x32655c-0x0;let _0x9f42c8=_0x6752[_0x32655c];return _0x9f42c8;};import{first as _0x499862}from'ckeditor5/src/utils';export default function k(_0x4b13d9,_0x18e88e){const _0x5bad2f=_0x4b13d9[_0x9f42('0x4')][_0x9f42('0xb')](_0x18e88e[_0x9f42('0x9')]);if(!_0x5bad2f)return null;const _0x26b416=_0x499862(_0x5bad2f['values']());return _0x4b13d9[_0x9f42('0xc')][_0x9f42('0x7')][_0x9f42('0x0')](_0x26b416)||null;}export function getAllMarkersDomElementsSorted(_0x4b7da0,_0x392de9){if(0x0===_0x392de9[_0x9f42('0x1')])return null;const _0x29cdcb=[],_0x354e50=_0x4b7da0[_0x9f42('0xc')][_0x9f42('0x7')];for(const _0x21b67d of _0x392de9){const _0xeeede3=_0x4b7da0[_0x9f42('0x4')][_0x9f42('0xb')](_0x21b67d[_0x9f42('0x9')]);if(!_0xeeede3)continue;const _0x429177=Array[_0x9f42('0x2')](_0xeeede3)[_0x9f42('0xa')](_0xe2575d=>_0x354e50['mapViewToDom'](_0xe2575d))['filter'](_0x28134c=>!!_0x28134c);_0x29cdcb['push'](..._0x429177);}if(0x0===_0x29cdcb['length'])return null;const _0x174cea=[];for(const _0x5cd887 of _0x29cdcb){const _0x411dc0=_0x5cd887[_0x9f42('0x5')]()['item'](0x0);_0x411dc0&&_0x174cea[_0x9f42('0x8')]({'x':_0x411dc0['x'],'y':_0x411dc0['y'],'domElement':_0x5cd887});}return 0x0===_0x174cea[_0x9f42('0x1')]?null:(_0x174cea[_0x9f42('0x6')]((_0x3ee61b,_0x4cd1f0)=>_0x3ee61b['y']-_0x4cd1f0['y']||_0x3ee61b['x']-_0x4cd1f0['x']),_0x174cea[_0x9f42('0xa')](_0x38d40a=>_0x38d40a[_0x9f42('0x3')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31e7=['toString','number','isArray','charCodeAt','sort','string','boolean','keys'];(function(_0x4419e2,_0x31e705){const _0x211136=function(_0x20d071){while(--_0x20d071){_0x4419e2['push'](_0x4419e2['shift']());}};_0x211136(++_0x31e705);}(_0x31e7,0x182));const _0x2111=function(_0x4419e2,_0x31e705){_0x4419e2=_0x4419e2-0x0;let _0x211136=_0x31e7[_0x4419e2];return _0x211136;};export default function b(_0x4294e7){let _0xe792a=0x0,_0x5d087b=0x0;for(const _0x282417 of g(_0x4294e7))_0xe792a=(_0xe792a<<0x5)-_0xe792a+_0x282417,_0xe792a&=_0xe792a,[_0xe792a,_0x5d087b]=[_0x5d087b,_0xe792a];return O(_0xe792a)+O(_0x5d087b);}function*j(_0x43019e){_0x43019e?_0x2111('0x4')==typeof _0x43019e?yield 0x1:Array[_0x2111('0x0')](_0x43019e)?yield*function*(_0x51ac70){for(const _0x53cd15 of _0x51ac70)yield*j(_0x53cd15);}(_0x43019e):'object'==typeof _0x43019e?yield*g(_0x43019e):_0x2111('0x3')==typeof _0x43019e?yield*A(_0x43019e):_0x2111('0x7')==typeof _0x43019e&&(yield _0x43019e):yield 0x0;}function*g(_0x366417){if(yield M('{'),_0x366417){const _0x3efc44=Object[_0x2111('0x5')](_0x366417)[_0x2111('0x2')]();for(const _0x287d4b of _0x3efc44){yield*A(_0x287d4b),yield M(':');const _0x26e042=_0x366417[_0x287d4b];yield*j(_0x26e042);}}yield M('}');}function*A(_0x9ce4fb){yield M('\x22');for(const _0xa43e42 of _0x9ce4fb)yield M(_0xa43e42);yield M('\x22');}function M(_0x5953a1){return _0x5953a1[_0x2111('0x1')](0x0);}function O(_0x554a6e){return(_0x554a6e*=Math['sign'](_0x554a6e))[_0x2111('0x6')](0x24);}
23
+ const _0x735b=['boolean','string','toString','charCodeAt','isArray','sign','object','sort'];(function(_0xdb684a,_0x735b58){const _0xe51286=function(_0x17a7f9){while(--_0x17a7f9){_0xdb684a['push'](_0xdb684a['shift']());}};_0xe51286(++_0x735b58);}(_0x735b,0x9d));const _0xe512=function(_0xdb684a,_0x735b58){_0xdb684a=_0xdb684a-0x0;let _0xe51286=_0x735b[_0xdb684a];return _0xe51286;};export default function b(_0x2398be){let _0x32ee22=0x0,_0x5b49ff=0x0;for(const _0x2da35c of g(_0x2398be))_0x32ee22=(_0x32ee22<<0x5)-_0x32ee22+_0x2da35c,_0x32ee22&=_0x32ee22,[_0x32ee22,_0x5b49ff]=[_0x5b49ff,_0x32ee22];return O(_0x32ee22)+O(_0x5b49ff);}function*j(_0x113efe){_0x113efe?_0xe512('0x3')==typeof _0x113efe?yield 0x1:Array[_0xe512('0x7')](_0x113efe)?yield*function*(_0x33738a){for(const _0x26a2b2 of _0x33738a)yield*j(_0x26a2b2);}(_0x113efe):_0xe512('0x1')==typeof _0x113efe?yield*g(_0x113efe):_0xe512('0x4')==typeof _0x113efe?yield*A(_0x113efe):'number'==typeof _0x113efe&&(yield _0x113efe):yield 0x0;}function*g(_0x1c267e){if(yield M('{'),_0x1c267e){const _0x54be93=Object['keys'](_0x1c267e)[_0xe512('0x2')]();for(const _0x505e80 of _0x54be93){yield*A(_0x505e80),yield M(':');const _0x1fa723=_0x1c267e[_0x505e80];yield*j(_0x1fa723);}}yield M('}');}function*A(_0x5aafa2){yield M('\x22');for(const _0x1f5bc6 of _0x5aafa2)yield M(_0x1f5bc6);yield M('\x22');}function M(_0x517e70){return _0x517e70[_0xe512('0x6')](0x0);}function O(_0x3e9d9a){return(_0x3e9d9a*=Math[_0xe512('0x0')](_0x3e9d9a))[_0xe512('0x5')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b79=['WProofreader','extraPlugins','WordCount','constructor','set','string','get','WebSocketGateway','from','DocumentOutline','concat','removePlugins','initialData','rootsAttributes','requires','map','pluginName','filter','length','names','builtinPlugins','plugins','_context','includes','config','context','every'];(function(_0x130129,_0x2b79a6){const _0x4e35c6=function(_0x5e14f8){while(--_0x5e14f8){_0x130129['push'](_0x130129['shift']());}};_0x4e35c6(++_0x2b79a6);}(_0x2b79,0xb3));const _0x4e35=function(_0x130129,_0x2b79a6){_0x130129=_0x130129-0x0;let _0x4e35c6=_0x2b79[_0x130129];return _0x4e35c6;};const w=[_0x4e35('0x16'),_0x4e35('0x8'),'toolbar',_0x4e35('0x17')],W=[_0x4e35('0x11'),'RevisionTracker','Autosave',_0x4e35('0xc'),_0x4e35('0x13'),_0x4e35('0xa')];function v(_0x4c4a90,_0xc29be4,_0x4b46aa,_0x403899=[]){const _0x1c920b=_0x4e35('0xf')==typeof _0x4c4a90?_0x4b46aa[_0x4e35('0x10')](_0x4c4a90)['constructor']:_0x4c4a90,_0x20b975=_0x1c920b[_0x4e35('0x1a')]||_0x1c920b['name'];if(_0xc29be4['has'](_0x20b975))return _0xc29be4[_0x4e35('0x10')](_0x20b975);if(_0xc29be4[_0x4e35('0xe')](_0x20b975,!0x0),_0x20b975&&W[_0x4e35('0x14')](_0x403899)[_0x4e35('0x6')](_0x20b975))return _0xc29be4[_0x4e35('0xe')](_0x20b975,!0x1),!0x1;if(!_0x1c920b[_0x4e35('0x18')])return _0xc29be4[_0x4e35('0xe')](_0x20b975,!0x0),!0x0;const _0x551d1d=_0x1c920b[_0x4e35('0x18')][_0x4e35('0x9')](_0x401915=>v(_0x401915,_0xc29be4,_0x4b46aa,_0x403899));return _0xc29be4[_0x4e35('0xe')](_0x20b975,_0x551d1d),_0x551d1d;}export default function D(_0x5bf8a9,_0x599ce7){const _0x49a2f7={};for(const _0xd6d1a2 of _0x5bf8a9[_0x4e35('0x7')][_0x4e35('0x2')]())w['includes'](_0xd6d1a2)||(_0x49a2f7[_0xd6d1a2]=_0x5bf8a9[_0x4e35('0x7')][_0x4e35('0x10')](_0xd6d1a2));const _0x50eaac=_0x49a2f7[_0x4e35('0x4')]||[],_0x3b0d90=_0x5bf8a9[_0x4e35('0xd')][_0x4e35('0x3')]||[],_0x455fe1=_0x50eaac[_0x4e35('0x1')]?_0x50eaac:_0x3b0d90,_0x460229=_0x49a2f7[_0x4e35('0xb')]||[];delete _0x49a2f7['extraPlugins'];const _0x327da0=_0x49a2f7['removePlugins']||[];delete _0x49a2f7[_0x4e35('0x15')];const _0x505d85=_0x5bf8a9[_0x4e35('0x5')]['config'][_0x4e35('0x10')](_0x4e35('0x4'))||[],_0x2a1494=_0x455fe1[_0x4e35('0x14')](_0x460229)['concat'](_0x505d85)[_0x4e35('0x19')](_0x87d1e6=>'string'==typeof _0x87d1e6?_0x3b0d90['find'](_0x27938d=>_0x27938d['pluginName']==_0x87d1e6):_0x87d1e6)['filter'](_0xf0cec2=>!_0x327da0[_0x4e35('0x6')](_0xf0cec2)),_0x4f4751=Array[_0x4e35('0x12')](new Set(_0x2a1494)),_0xf963af=new Map();return _0x49a2f7['plugins']=_0x4f4751[_0x4e35('0x0')](_0x17a322=>v(_0x17a322,_0xf963af,_0x5bf8a9[_0x4e35('0x4')],_0x599ce7)),_0x49a2f7;}
23
+ const _0x353c=['set','map','has','requires','rootsAttributes','RevisionTracker','get','builtinPlugins','names','string','toolbar','pluginName','_context','from','every','WordCount','plugins','name','WProofreader','filter','extraPlugins','find','includes','length','constructor','DocumentOutline','removePlugins'];(function(_0x4462a8,_0x353c4d){const _0x5c2d9c=function(_0x55db36){while(--_0x55db36){_0x4462a8['push'](_0x4462a8['shift']());}};_0x5c2d9c(++_0x353c4d);}(_0x353c,0x183));const _0x5c2d=function(_0x4462a8,_0x353c4d){_0x4462a8=_0x4462a8-0x0;let _0x5c2d9c=_0x353c[_0x4462a8];return _0x5c2d9c;};const w=['initialData','context',_0x5c2d('0x1'),_0x5c2d('0x16')],W=['WebSocketGateway',_0x5c2d('0x17'),'Autosave',_0x5c2d('0x6'),_0x5c2d('0x10'),_0x5c2d('0x9')];function v(_0x49752c,_0x59eefb,_0x41e7d7,_0x16705c=[]){const _0x1a2aa1=_0x5c2d('0x0')==typeof _0x49752c?_0x41e7d7['get'](_0x49752c)[_0x5c2d('0xf')]:_0x49752c,_0x332348=_0x1a2aa1[_0x5c2d('0x2')]||_0x1a2aa1[_0x5c2d('0x8')];if(_0x59eefb[_0x5c2d('0x14')](_0x332348))return _0x59eefb[_0x5c2d('0x18')](_0x332348);if(_0x59eefb[_0x5c2d('0x12')](_0x332348,!0x0),_0x332348&&W['concat'](_0x16705c)[_0x5c2d('0xd')](_0x332348))return _0x59eefb[_0x5c2d('0x12')](_0x332348,!0x1),!0x1;if(!_0x1a2aa1[_0x5c2d('0x15')])return _0x59eefb[_0x5c2d('0x12')](_0x332348,!0x0),!0x0;const _0xfcdd8d=_0x1a2aa1[_0x5c2d('0x15')][_0x5c2d('0x5')](_0x1dda54=>v(_0x1dda54,_0x59eefb,_0x41e7d7,_0x16705c));return _0x59eefb[_0x5c2d('0x12')](_0x332348,_0xfcdd8d),_0xfcdd8d;}export default function D(_0x5cac1c,_0x55974e){const _0x106ad7={};for(const _0x18eec9 of _0x5cac1c['config'][_0x5c2d('0x1a')]())w[_0x5c2d('0xd')](_0x18eec9)||(_0x106ad7[_0x18eec9]=_0x5cac1c['config'][_0x5c2d('0x18')](_0x18eec9));const _0x2ba043=_0x106ad7['plugins']||[],_0x33728f=_0x5cac1c['constructor'][_0x5c2d('0x19')]||[],_0x4a03a1=_0x2ba043[_0x5c2d('0xe')]?_0x2ba043:_0x33728f,_0x180637=_0x106ad7['extraPlugins']||[];delete _0x106ad7[_0x5c2d('0xb')];const _0x450684=_0x106ad7['removePlugins']||[];delete _0x106ad7[_0x5c2d('0x11')];const _0x141bb1=_0x5cac1c[_0x5c2d('0x3')]['config'][_0x5c2d('0x18')]('plugins')||[],_0x53b9bc=_0x4a03a1['concat'](_0x180637)['concat'](_0x141bb1)[_0x5c2d('0x13')](_0x53331f=>'string'==typeof _0x53331f?_0x33728f[_0x5c2d('0xc')](_0x4ab70d=>_0x4ab70d[_0x5c2d('0x2')]==_0x53331f):_0x53331f)[_0x5c2d('0xa')](_0x42d025=>!_0x450684[_0x5c2d('0xd')](_0x42d025)),_0x2f09e7=Array[_0x5c2d('0x4')](new Set(_0x53b9bc)),_0x232ef1=new Map();return _0x106ad7[_0x5c2d('0x7')]=_0x2f09e7[_0x5c2d('0xa')](_0x1ac8f7=>v(_0x1ac8f7,_0x232ef1,_0x5cac1c['plugins'],_0x55974e)),_0x106ad7;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f0f=['indexOf','join','...','slice','startsWith','replace','length','match','push'];(function(_0x54f9fc,_0x3f0fa5){const _0x179fe0=function(_0x3e9a41){while(--_0x3e9a41){_0x54f9fc['push'](_0x54f9fc['shift']());}};_0x179fe0(++_0x3f0fa5);}(_0x3f0f,0x1c9));const _0x179f=function(_0x54f9fc,_0x3f0fa5){_0x54f9fc=_0x54f9fc-0x0;let _0x179fe0=_0x3f0f[_0x54f9fc];return _0x179fe0;};export default function z(_0x4c2413,{limit:_0x2d1fca,suffix:_0x3d7299=_0x179f('0x4')}){const _0x573fbf=[];let _0x39a408=0x0;const _0x48ab69=_0x4c2413[_0x179f('0x7')](/</g,'\x0a<')[_0x179f('0x7')](/>/g,'>\x0a')[_0x179f('0x7')](/^\n/g,'')[_0x179f('0x7')](/\n$/g,'')['split']('\x0a');for(let _0x4bdc16=0x0;_0x4bdc16<_0x48ab69['length'];_0x4bdc16++){let _0x4f1fc2=_0x48ab69[_0x4bdc16];const _0x5cb480=Z(_0x4f1fc2);if(_0x4f1fc2[_0x179f('0x6')]('<')){if(_0x39a408>=_0x2d1fca){const _0x380db7=_0x4f1fc2[_0x179f('0x0')](/[a-zA-Z]+/);if(!_0x380db7){_0x48ab69[_0x4bdc16]='';continue;}const _0x5e33eb=_0x380db7[0x0];_0x4f1fc2[_0x179f('0x6')]('</')?(_0x573fbf[_0x179f('0x8')]&&(_0x4f1fc2=''),_0x573fbf['pop']()):(_0x573fbf[_0x179f('0x1')](_0x5e33eb),_0x4f1fc2='');}}else{if(_0x39a408>=_0x2d1fca)_0x4f1fc2='';else{if(_0x39a408+_0x5cb480[_0x179f('0x8')]>=_0x2d1fca){let _0x218915=_0x2d1fca-_0x39a408;if('\x20'===_0x5cb480[_0x218915-0x1])_0x218915--;else{const _0x4d712e=_0x5cb480[_0x179f('0x5')](_0x218915)[_0x179f('0x2')]('\x20');-0x1!==_0x4d712e?_0x218915+=_0x4d712e:_0x218915=_0x4f1fc2[_0x179f('0x8')];}_0x4f1fc2=_0x5cb480[_0x179f('0x5')](0x0,_0x218915)[_0x179f('0x3')]('')+_0x3d7299,_0x39a408=_0x2d1fca;}else _0x39a408+=_0x5cb480[_0x179f('0x8')];}}_0x48ab69[_0x4bdc16]=_0x4f1fc2;}return _0x48ab69[_0x179f('0x3')]('\x0a')['replace'](/\n/g,'');}function Z(_0x19f931){const _0x5e29ac=[];for(let _0x92306c=0x0;_0x92306c<_0x19f931[_0x179f('0x8')];_0x92306c++){const _0x3521a1=_0x19f931['substring'](_0x92306c)[_0x179f('0x0')](/^&[a-z0-9#]+;/);if(_0x3521a1){const _0x4808f3=_0x3521a1[0x0];_0x5e29ac[_0x179f('0x1')](_0x4808f3),_0x92306c+=_0x4808f3['length']-0x1;}else _0x5e29ac[_0x179f('0x1')](_0x19f931[_0x92306c]);}return _0x5e29ac;}
23
+ const _0x461d=['push','length','pop','slice','join','startsWith','replace','indexOf','match'];(function(_0x258fe2,_0x461d13){const _0xa5dc8c=function(_0x4b68ca){while(--_0x4b68ca){_0x258fe2['push'](_0x258fe2['shift']());}};_0xa5dc8c(++_0x461d13);}(_0x461d,0x101));const _0xa5dc=function(_0x258fe2,_0x461d13){_0x258fe2=_0x258fe2-0x0;let _0xa5dc8c=_0x461d[_0x258fe2];return _0xa5dc8c;};export default function z(_0x231a94,{limit:_0x277f80,suffix:_0x5295ce='...'}){const _0x304b2e=[];let _0x836918=0x0;const _0x3dc6e2=_0x231a94['replace'](/</g,'\x0a<')[_0xa5dc('0x1')](/>/g,'>\x0a')[_0xa5dc('0x1')](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x27d9c8=0x0;_0x27d9c8<_0x3dc6e2[_0xa5dc('0x5')];_0x27d9c8++){let _0x243c7f=_0x3dc6e2[_0x27d9c8];const _0xd58a9a=Z(_0x243c7f);if(_0x243c7f[_0xa5dc('0x0')]('<')){if(_0x836918>=_0x277f80){const _0x3d5922=_0x243c7f[_0xa5dc('0x3')](/[a-zA-Z]+/);if(!_0x3d5922){_0x3dc6e2[_0x27d9c8]='';continue;}const _0x5e1c5d=_0x3d5922[0x0];_0x243c7f[_0xa5dc('0x0')]('</')?(_0x304b2e[_0xa5dc('0x5')]&&(_0x243c7f=''),_0x304b2e[_0xa5dc('0x6')]()):(_0x304b2e[_0xa5dc('0x4')](_0x5e1c5d),_0x243c7f='');}}else{if(_0x836918>=_0x277f80)_0x243c7f='';else{if(_0x836918+_0xd58a9a[_0xa5dc('0x5')]>=_0x277f80){let _0x225205=_0x277f80-_0x836918;if('\x20'===_0xd58a9a[_0x225205-0x1])_0x225205--;else{const _0x329586=_0xd58a9a[_0xa5dc('0x7')](_0x225205)[_0xa5dc('0x2')]('\x20');-0x1!==_0x329586?_0x225205+=_0x329586:_0x225205=_0x243c7f[_0xa5dc('0x5')];}_0x243c7f=_0xd58a9a[_0xa5dc('0x7')](0x0,_0x225205)[_0xa5dc('0x8')]('')+_0x5295ce,_0x836918=_0x277f80;}else _0x836918+=_0xd58a9a['length'];}}_0x3dc6e2[_0x27d9c8]=_0x243c7f;}return _0x3dc6e2['join']('\x0a')['replace'](/\n/g,'');}function Z(_0x1d2152){const _0x227dea=[];for(let _0xf0a00a=0x0;_0xf0a00a<_0x1d2152[_0xa5dc('0x5')];_0xf0a00a++){const _0x5f15ed=_0x1d2152['substring'](_0xf0a00a)[_0xa5dc('0x3')](/^&[a-z0-9#]+;/);if(_0x5f15ed){const _0x445c33=_0x5f15ed[0x0];_0x227dea['push'](_0x445c33),_0xf0a00a+=_0x445c33['length']-0x1;}else _0x227dea['push'](_0x1d2152[_0xf0a00a]);}return _0x227dea;}