@ckeditor/ckeditor5-collaboration-core 34.0.0 → 34.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor 5 collaboration core** (https://ckeditor.com/collaboration/)<br>
5
- Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
5
+ Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
6
 
7
7
  CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.
8
8
  We operate on subscription-based licensing terms. For more details about available licensing options please contact us at sales@cksource.com.
@@ -20,4 +20,4 @@ The following libraries are included in CKEditor 5 collaboration core under the
20
20
  Trademarks
21
21
  ----------
22
22
 
23
- **CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
23
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/README.md CHANGED
@@ -20,11 +20,11 @@ As a licensed CKEditor 5 collaboration features user you can report bugs and req
20
20
  ## License
21
21
 
22
22
  **CKEditor 5 collaboration core**<br>
23
- Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
23
+ Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
24
24
 
25
25
  CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.
26
26
  For more details about available licensing options please contact us at sales@cksource.com.
27
27
 
28
28
  ### Trademarks
29
29
 
30
- **CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
30
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
@@ -0,0 +1,33 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Afrikaans (https://www.transifex.com/ckeditor/teams/11143/af/)\n"
16
+ "Language: af\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "A label for the anonymous user icon"
20
+ msgid "Anonymous"
21
+ msgstr "Anoniem"
22
+
23
+ msgctxt "The label for confirming an action."
24
+ msgid "Yes"
25
+ msgstr "Ja"
26
+
27
+ msgctxt "The label for rejecting an action."
28
+ msgid "No"
29
+ msgstr "Nee"
30
+
31
+ msgctxt "The label for confirming a dangerous action."
32
+ msgid "Are you sure?"
33
+ msgstr "Is jy seker?"
@@ -30,4 +30,4 @@ msgstr "Όχι"
30
30
 
31
31
  msgctxt "The label for confirming a dangerous action."
32
32
  msgid "Are you sure?"
33
- msgstr "Είστε σίγουροις"
33
+ msgstr "Σίγουρα;"
@@ -0,0 +1,33 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Latvian (https://www.transifex.com/ckeditor/teams/11143/lv/)\n"
16
+ "Language: lv\n"
17
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n"
18
+
19
+ msgctxt "A label for the anonymous user icon"
20
+ msgid "Anonymous"
21
+ msgstr "Anonīms"
22
+
23
+ msgctxt "The label for confirming an action."
24
+ msgid "Yes"
25
+ msgstr "Jā"
26
+
27
+ msgctxt "The label for rejecting an action."
28
+ msgid "No"
29
+ msgstr "Nē"
30
+
31
+ msgctxt "The label for confirming a dangerous action."
32
+ msgid "Are you sure?"
33
+ msgstr "Vai esat pārliecināts?"
@@ -0,0 +1,33 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Urdu (https://www.transifex.com/ckeditor/teams/11143/ur/)\n"
16
+ "Language: ur\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "A label for the anonymous user icon"
20
+ msgid "Anonymous"
21
+ msgstr "بے نام"
22
+
23
+ msgctxt "The label for confirming an action."
24
+ msgid "Yes"
25
+ msgstr "ہاں"
26
+
27
+ msgctxt "The label for rejecting an action."
28
+ msgid "No"
29
+ msgstr "ناں"
30
+
31
+ msgctxt "The label for confirming a dangerous action."
32
+ msgid "Are you sure?"
33
+ msgstr "واقعی؟"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "34.0.0",
3
+ "version": "34.1.0",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "main": "src/index.js",
30
30
  "dependencies": {
31
- "ckeditor5": "^34.0.0",
31
+ "ckeditor5": "^34.1.0",
32
32
  "date-fns": "^2.17.0"
33
33
  }
34
34
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6685=['commands','isEnabled','find','noPermissions','document:write','config','Permissions','has','setPermissions','enableReadOnlyMode','get','addCommentThread','comment:write','setAdminPermissions','CommentsOnly','CommentsRepository','disableReadOnlyMode','plugins','includes','editors','comment:admin','switchReadOnly','permissions-set-permissions-invalid-channel-id','context','pluginName','collaboration.channelId'];(function(_0x2bd1fd,_0x668533){const _0x1e3616=function(_0x41b40f){while(--_0x41b40f){_0x2bd1fd['push'](_0x2bd1fd['shift']());}};_0x1e3616(++_0x668533);}(_0x6685,0x11c));const _0x1e36=function(_0x2bd1fd,_0x668533){_0x2bd1fd=_0x2bd1fd-0x0;let _0x1e3616=_0x6685[_0x2bd1fd];return _0x1e3616;};import{ContextPlugin as _0x341a41,Editor as _0x85f719}from'ckeditor5/src/core';import{CKEditorError as _0x96d7d3}from'ckeditor5/src/utils';export default class i extends _0x341a41{static get[_0x1e36('0x0')](){return _0x1e36('0x8');}[_0x1e36('0xa')](_0x1cfa9f,_0x1c148b){let _0x22dfc0;if(_0x1c148b||(_0x1c148b=this[_0x1e36('0x19')][_0x1e36('0x7')][_0x1e36('0xc')](_0x1e36('0x1'))),this['context'][_0x1e36('0x7')]['get'](_0x1e36('0x1'))==_0x1c148b?_0x22dfc0=this['context']:this[_0x1e36('0x19')][_0x1e36('0x15')]&&(_0x22dfc0=this[_0x1e36('0x19')][_0x1e36('0x15')][_0x1e36('0x4')](_0x4676fb=>_0x4676fb[_0x1e36('0x7')]['get']('collaboration.channelId')==_0x1c148b)),!_0x22dfc0)throw new _0x96d7d3(_0x1e36('0x18'),null);const _0x4a50af=_0x22dfc0[_0x1e36('0x13')],_0x3237be=_0x22dfc0 instanceof _0x85f719,_0x455a06=_0x4a50af['has'](_0x1e36('0x11'))&&_0x4a50af['get']('CommentsRepository'),_0x9f6885=_0x4a50af[_0x1e36('0x9')](_0x1e36('0x10'))&&_0x4a50af[_0x1e36('0xc')](_0x1e36('0x10')),_0x344db4=_0x1cfa9f['includes'](_0x1e36('0x6')),_0x3be30a=_0x1cfa9f[_0x1e36('0x14')](_0x1e36('0x16')),_0x8718d0=_0x1cfa9f['includes'](_0x1e36('0xe'))||_0x3be30a;(_0x9f6885&&(_0x9f6885[_0x1e36('0x3')]=!_0x344db4&&_0x8718d0),_0x3237be)&&(!(_0x344db4||_0x8718d0&&_0x455a06)?_0x22dfc0[_0x1e36('0xb')]('no-permissions'):_0x22dfc0[_0x1e36('0x12')]('no-permissions'));if(_0x455a06){_0x455a06[_0x1e36('0x17')](!_0x8718d0,_0x1c148b),_0x455a06[_0x1e36('0xf')](_0x3be30a,_0x1c148b);const _0x13562f=_0x3237be&&_0x22dfc0[_0x1e36('0x2')][_0x1e36('0xc')](_0x1e36('0xd'));_0x13562f&&(_0x8718d0?_0x13562f['clearForceDisabled'](_0x1e36('0x5')):_0x13562f['forceDisabled']('noPermissions'));}}}
23
+ const _0x37ab=['plugins','no-permissions','clearForceDisabled','isEnabled','setPermissions','setAdminPermissions','addCommentThread','collaboration.channelId','CommentsOnly','editors','config','permissions-set-permissions-invalid-channel-id','context','find','forceDisabled','get','disableReadOnlyMode','noPermissions','comment:write','commands','enableReadOnlyMode','comment:admin','pluginName','CommentsRepository','has','Permissions','includes'];(function(_0x1ecdeb,_0x37aba7){const _0x82df2=function(_0x10f1a5){while(--_0x10f1a5){_0x1ecdeb['push'](_0x1ecdeb['shift']());}};_0x82df2(++_0x37aba7);}(_0x37ab,0xe5));const _0x82df=function(_0x1ecdeb,_0x37aba7){_0x1ecdeb=_0x1ecdeb-0x0;let _0x82df2=_0x37ab[_0x1ecdeb];return _0x82df2;};import{ContextPlugin as _0x5224df,Editor as _0x202a08}from'ckeditor5/src/core';import{CKEditorError as _0x27ff79}from'ckeditor5/src/utils';export default class i extends _0x5224df{static get[_0x82df('0x9')](){return _0x82df('0xc');}[_0x82df('0x12')](_0x34b72b,_0x4edda4){let _0x580978;if(_0x4edda4||(_0x4edda4=this['context'][_0x82df('0x18')][_0x82df('0x2')](_0x82df('0x15'))),this[_0x82df('0x1a')][_0x82df('0x18')][_0x82df('0x2')](_0x82df('0x15'))==_0x4edda4?_0x580978=this[_0x82df('0x1a')]:this[_0x82df('0x1a')]['editors']&&(_0x580978=this['context'][_0x82df('0x17')][_0x82df('0x0')](_0xa2a731=>_0xa2a731['config'][_0x82df('0x2')](_0x82df('0x15'))==_0x4edda4)),!_0x580978)throw new _0x27ff79(_0x82df('0x19'),null);const _0x2d5b84=_0x580978[_0x82df('0xe')],_0x1a5b1d=_0x580978 instanceof _0x202a08,_0x4f7b00=_0x2d5b84[_0x82df('0xb')]('CommentsRepository')&&_0x2d5b84[_0x82df('0x2')](_0x82df('0xa')),_0x20e8ff=_0x2d5b84[_0x82df('0xb')](_0x82df('0x16'))&&_0x2d5b84[_0x82df('0x2')](_0x82df('0x16')),_0x214f49=_0x34b72b[_0x82df('0xd')]('document:write'),_0x2a3d6d=_0x34b72b[_0x82df('0xd')](_0x82df('0x8')),_0x4a2c8a=_0x34b72b[_0x82df('0xd')](_0x82df('0x5'))||_0x2a3d6d;(_0x20e8ff&&(_0x20e8ff[_0x82df('0x11')]=!_0x214f49&&_0x4a2c8a),_0x1a5b1d)&&(!(_0x214f49||_0x4a2c8a&&_0x4f7b00)?_0x580978[_0x82df('0x7')]('no-permissions'):_0x580978[_0x82df('0x3')](_0x82df('0xf')));if(_0x4f7b00){_0x4f7b00['switchReadOnly'](!_0x4a2c8a,_0x4edda4),_0x4f7b00[_0x82df('0x13')](_0x2a3d6d,_0x4edda4);const _0x1bc256=_0x1a5b1d&&_0x580978[_0x82df('0x6')][_0x82df('0x2')](_0x82df('0x14'));_0x1bc256&&(_0x4a2c8a?_0x1bc256[_0x82df('0x10')](_0x82df('0x4')):_0x1bc256[_0x82df('0x1')](_0x82df('0x4')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1277=['setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__avatar','initials','avatar','div','isAnonymous','name','ck-user__img','url(\x27','ck\x20ck-user__name','push'];(function(_0x32c7d3,_0x12776b){const _0x4da228=function(_0x562784){while(--_0x562784){_0x32c7d3['push'](_0x32c7d3['shift']());}};_0x4da228(++_0x12776b);}(_0x1277,0x139));const _0x4da2=function(_0x32c7d3,_0x12776b){_0x32c7d3=_0x32c7d3-0x0;let _0x4da228=_0x1277[_0x32c7d3];return _0x4da228;};import{View as _0x276401}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class _ extends _0x276401{constructor(_0x8267ee,_0x4ad246){super(_0x8267ee),this[_0x4da2('0x6')]=_0x4ad246[_0x4da2('0x6')];const _0x250865=['ck',_0x4da2('0x7')];_0x4ad246[_0x4da2('0x5')]&&_0x250865['push']('ck-user__anonymous'),_0x4ad246[_0x4da2('0x3')]&&_0x250865[_0x4da2('0xa')](_0x4da2('0x1')),this[_0x4da2('0xb')]({'tag':_0x4da2('0x4'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x4ad246['id']},'children':[{'tag':_0x4da2('0x4'),'attributes':{'class':_0x250865,'style':{'background-image':_0x4ad246[_0x4da2('0x3')]?_0x4da2('0x8')+_0x4ad246[_0x4da2('0x3')]+'\x27)':''}}},{'tag':_0x4da2('0x4'),'attributes':{'class':_0x4ad246[_0x4da2('0x3')]?_0x4da2('0x0'):_0x4da2('0x9')},'children':[{'text':_0x4ad246[_0x4da2('0x2')]}]}]});}}
23
+ const _0x22bc=['ck-user__anonymous','url(\x27','initials','ck-user','ck-user__avatar','isAnonymous','setTemplate','ck-user__img','name','avatar','push','ck\x20ck-user__name'];(function(_0x5cb5e8,_0x22bc7e){const _0x4a3821=function(_0x317dd4){while(--_0x317dd4){_0x5cb5e8['push'](_0x5cb5e8['shift']());}};_0x4a3821(++_0x22bc7e);}(_0x22bc,0x1e9));const _0x4a38=function(_0x5cb5e8,_0x22bc7e){_0x5cb5e8=_0x5cb5e8-0x0;let _0x4a3821=_0x22bc[_0x5cb5e8];return _0x4a3821;};import{View as _0x19cbdc}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class _ extends _0x19cbdc{constructor(_0x1be055,_0x478c13){super(_0x1be055),this[_0x4a38('0xb')]=_0x478c13[_0x4a38('0xb')];const _0x5ba09b=['ck',_0x4a38('0xa')];_0x478c13[_0x4a38('0x8')]&&_0x5ba09b[_0x4a38('0x1')](_0x4a38('0x3')),_0x478c13[_0x4a38('0x0')]&&_0x5ba09b[_0x4a38('0x1')](_0x4a38('0x7')),this[_0x4a38('0x9')]({'tag':'div','attributes':{'class':['ck',_0x4a38('0x6')],'data-user-id':_0x478c13['id']},'children':[{'tag':'div','attributes':{'class':_0x5ba09b,'style':{'background-image':_0x478c13['avatar']?_0x4a38('0x4')+_0x478c13[_0x4a38('0x0')]+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x478c13[_0x4a38('0x0')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x4a38('0x2')},'children':[{'text':_0x478c13[_0x4a38('0x5')]}]}]});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ContextPlugin as _0x4045d9}from'ckeditor5/src/core';import{Collection as _0x512056,CKEditorError as _0x2193c8}from'ckeditor5/src/utils';import _0x1fedfa from'./permissions';import'../theme/usercolors.css';export default class r extends _0x4045d9{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x1fedfa];}constructor(_0x938ef6){super(_0x938ef6),_0x938ef6['config']['define']('users.anonymousUserId','anonymous-user'),_0x938ef6['config']['define']('users.colorsCount',0x8),this['users']=new _0x512056(),this['_locale']=_0x938ef6['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x208f65=this['context'];this['licenseKey']=_0x208f65['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3dff7d;for(const _0x463ece in _0x208f65){const _0x14d84a=_0x208f65[_0x463ece];if('licenseKeyTrial'===_0x14d84a||'licenseKeyInvalid'===_0x14d84a||'licenseKeyValid'===_0x14d84a||'licenseKeyTrialLimit'==_0x14d84a){delete _0x208f65[_0x463ece],_0x3dff7d=_0x14d84a;break;}}if('licenseKeyInvalid'===_0x3dff7d)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2193c8('invalid-license-key',null);if('licenseKeyTrial'===_0x3dff7d&&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'===_0x3dff7d)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2193c8('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x3dff7d&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x486222){if(!(_0x486222=Object['assign']({},_0x486222,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x486222['id'])throw new _0x2193c8('users-add-invalid-id');if(this['users']['has'](_0x486222['id']))throw new _0x2193c8('users-add-duplicated-id',null,{'id':_0x486222['id']});_0x486222['name']=function(_0x5334b8,_0x192e6d=''){const {t:t}=_0x5334b8;return''==(_0x192e6d=_0x192e6d['trim']())?t('Anonymous'):_0x192e6d;}(this['_locale'],_0x486222['name']);const _0x16a67a=new l(_0x486222);return this['users']['add'](_0x16a67a),_0x16a67a;}['getUser'](_0x10bfef){return this['users']['get'](_0x10bfef);}['useAnonymousUser'](){const _0x5afd7a=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x5afd7a);}['defineMe'](_0x5437cd){if(this['_myId'])throw new _0x2193c8('users-me-already-defined',null);if(!this['getUser'](_0x5437cd))throw new _0x2193c8('users-me-missing-user',null);this['_myId']=_0x5437cd;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x308fc0=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x308fc0&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}['_addAnonymousUser'](){const {t:t}=this['_locale'],_0x22fb22=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x22fb22,'name':t('Anonymous')})['_isAnonymous']=!0x0;}}class l{constructor(_0x3022f4){this['id']=_0x3022f4['id'],this['color']=_0x3022f4['color'],this['name']=_0x3022f4['name'],this['avatar']=_0x3022f4['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){const _0x124a87=this['name']['split']('\x20');return 0x1===_0x124a87['length']?this['_getInitial'](_0x124a87[0x0]):this['_getInitial'](_0x124a87[0x0])+this['_getInitial'](_0x124a87[_0x124a87['length']-0x1]);}['_getInitial'](_0x170b8d){return _0x170b8d['charAt'](0x0)['toUpperCase']();}}class u{constructor(_0x37eca7){this['_id']=_0x37eca7;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}
23
+ const _0x332a=['_getNextColor','initials','toUpperCase','users.colorsCount','getMarkerClass','name','split','destroy','get','_lastColor','has','_myId','_id','users-me-already-defined','users.anonymousUserId','users-add-invalid-id','trial-license-key-reached-limit','define','users-add-duplicated-id','anonymous-user','Anonymous','ck-user__selection--','isAnonymous','_licenseKeyCheckInterval','_addAnonymousUser','licenseKeyValid','decorate','licenseKey','getSelectionClass','Users','context','string','ck-user__marker--','addUser','_getInitial','getUser','length','invalid-license-key','licenseKeyInvalid','config','init','ck-user__bg-color--','licenseKeyTrialLimit','defineMe','color','getOperationAuthor','licenseKeyTrial','trim','assign','_isAnonymous','_locale','requires','avatar','users'];(function(_0x5174cd,_0x332a86){const _0x57b80c=function(_0x1747ef){while(--_0x1747ef){_0x5174cd['push'](_0x5174cd['shift']());}};_0x57b80c(++_0x332a86);}(_0x332a,0x1ba));const _0x57b8=function(_0x5174cd,_0x332a86){_0x5174cd=_0x5174cd-0x0;let _0x57b80c=_0x332a[_0x5174cd];return _0x57b80c;};import{ContextPlugin as _0x422e81}from'ckeditor5/src/core';import{Collection as _0x2f5c5a,CKEditorError as _0x4f5723}from'ckeditor5/src/utils';import _0x4b147b from'./permissions';import{getTranslation as _0x337e60}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x422e81{static get['pluginName'](){return _0x57b8('0x13');}static get[_0x57b8('0x29')](){return[_0x4b147b];}constructor(_0x4b74bf){super(_0x4b74bf),_0x4b74bf[_0x57b8('0x1d')][_0x57b8('0x7')](_0x57b8('0x4'),_0x57b8('0x9')),_0x4b74bf[_0x57b8('0x1d')][_0x57b8('0x7')](_0x57b8('0x2f'),0x8),this[_0x57b8('0x2b')]=new _0x2f5c5a(),this[_0x57b8('0x28')]=_0x4b74bf['locale'],this[_0x57b8('0xd')]=null,this['_lastColor']=0x0,this['_myId']=null,this[_0x57b8('0x10')](_0x57b8('0x23'));}[_0x57b8('0x1e')](){const _0x414172=this['context'];this[_0x57b8('0x11')]=_0x414172['config'][_0x57b8('0x34')](_0x57b8('0x11')),this[_0x57b8('0xd')]=setInterval(()=>{let _0x30d2de;for(const _0x489255 in _0x414172){const _0x39ff46=_0x414172[_0x489255];if(_0x57b8('0x24')===_0x39ff46||_0x57b8('0x1c')===_0x39ff46||_0x57b8('0xf')===_0x39ff46||'licenseKeyTrialLimit'==_0x39ff46){delete _0x414172[_0x489255],_0x30d2de=_0x39ff46;break;}}if(_0x57b8('0x1c')===_0x30d2de)throw clearInterval(this[_0x57b8('0xd')]),new _0x4f5723(_0x57b8('0x1b'),null);if(_0x57b8('0x24')===_0x30d2de&&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.'),_0x57b8('0x20')===_0x30d2de)throw clearInterval(this[_0x57b8('0xd')]),new _0x4f5723(_0x57b8('0x6'),null);_0x57b8('0xf')===_0x30d2de&&clearInterval(this[_0x57b8('0xd')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x57b8('0x1')]?null:this[_0x57b8('0x19')](this[_0x57b8('0x1')]);}[_0x57b8('0x17')](_0x4b7381){if(!(_0x4b7381=Object[_0x57b8('0x26')]({},_0x4b7381,{'color':this['_getNextColor']()}))['id']||_0x57b8('0x15')!=typeof _0x4b7381['id'])throw new _0x4f5723(_0x57b8('0x5'));if(this['users'][_0x57b8('0x0')](_0x4b7381['id']))throw new _0x4f5723(_0x57b8('0x8'),null,{'id':_0x4b7381['id']});_0x4b7381[_0x57b8('0x31')]=function(_0x10c5ee,_0x2ef016=''){return''==(_0x2ef016=_0x2ef016[_0x57b8('0x25')]())?_0x337e60(_0x10c5ee,'Anonymous'):_0x2ef016;}(this['_locale'],_0x4b7381[_0x57b8('0x31')]);const _0x4066d3=new u(_0x4b7381);return this['users']['add'](_0x4066d3),_0x4066d3;}[_0x57b8('0x19')](_0x32a8db){return this[_0x57b8('0x2b')][_0x57b8('0x34')](_0x32a8db);}['useAnonymousUser'](){const _0x4fae3b=this[_0x57b8('0x14')]['config'][_0x57b8('0x34')]('users.anonymousUserId');this[_0x57b8('0x1')]||this[_0x57b8('0x21')](_0x4fae3b);}['defineMe'](_0x4506a5){if(this[_0x57b8('0x1')])throw new _0x4f5723(_0x57b8('0x3'),null);if(!this['getUser'](_0x4506a5))throw new _0x4f5723('users-me-missing-user',null);this[_0x57b8('0x1')]=_0x4506a5;}['getOperationAuthor'](){return this['me'];}['destroy'](){super[_0x57b8('0x33')](),clearInterval(this[_0x57b8('0xd')]);}[_0x57b8('0x2c')](){const _0xf97efb=this[_0x57b8('0x14')][_0x57b8('0x1d')][_0x57b8('0x34')]('users.colorsCount');return this[_0x57b8('0x35')]>=_0xf97efb&&(this['_lastColor']=0x0),new h(this[_0x57b8('0x35')]++);}[_0x57b8('0xe')](){const _0x3f3d14=this['context'][_0x57b8('0x1d')]['get'](_0x57b8('0x4'));this[_0x57b8('0x17')]({'id':_0x3f3d14,'name':_0x337e60(this[_0x57b8('0x28')],_0x57b8('0xa'))})[_0x57b8('0x27')]=!0x0;}}class u{constructor(_0x460e9e){this['id']=_0x460e9e['id'],this[_0x57b8('0x22')]=_0x460e9e[_0x57b8('0x22')],this['name']=_0x460e9e[_0x57b8('0x31')],this['avatar']=_0x460e9e[_0x57b8('0x2a')],this[_0x57b8('0x27')]=!0x1;}get[_0x57b8('0xc')](){return this['_isAnonymous'];}get[_0x57b8('0x2d')](){const _0x373eff=this[_0x57b8('0x31')][_0x57b8('0x32')]('\x20');return 0x1===_0x373eff[_0x57b8('0x1a')]?this[_0x57b8('0x18')](_0x373eff[0x0]):this['_getInitial'](_0x373eff[0x0])+this[_0x57b8('0x18')](_0x373eff[_0x373eff[_0x57b8('0x1a')]-0x1]);}[_0x57b8('0x18')](_0x478447){return _0x478447['charAt'](0x0)[_0x57b8('0x2e')]();}}class h{constructor(_0x4953e1){this['_id']=_0x4953e1;}['getBackgroundColorClass'](){return _0x57b8('0x1f')+this[_0x57b8('0x2')];}[_0x57b8('0x12')](){return _0x57b8('0xb')+this[_0x57b8('0x2')];}[_0x57b8('0x30')](){return _0x57b8('0x16')+this[_0x57b8('0x2')];}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, 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
+ export function getTranslation(_0x156241,_0x4713a6){const t=_0x156241['t'];switch(_0x4713a6){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x386e=['remove','message','registerChild','deregisterChild','element','confirmView','isConfirm','cancel','set','destroy','submit','_removeConfirm'];(function(_0x27c475,_0x386ef8){var _0x491c22=function(_0x35d51b){while(--_0x35d51b){_0x27c475['push'](_0x27c475['shift']());}};_0x491c22(++_0x386ef8);}(_0x386e,0x10b));var _0x491c=function(_0x27c475,_0x386ef8){_0x27c475=_0x27c475-0x0;var _0x491c22=_0x386e[_0x27c475];return _0x491c22;};import _0xd69ea from'./confirmview';export default{'showConfirm'(_0x1f9d74,_0x4b4dc9){return this[_0x491c('0x2')]=new _0xd69ea(this['locale']),this[_0x491c('0x2')]['render'](),this[_0x491c('0x2')][_0x491c('0xa')]=_0x1f9d74,this['confirmView']['once'](_0x491c('0x4'),()=>{this[_0x491c('0x8')]();}),this['confirmView']['once'](_0x491c('0x7'),()=>{this[_0x491c('0x8')]();}),_0x4b4dc9['appendChild'](this[_0x491c('0x2')][_0x491c('0x1')]),this[_0x491c('0xb')](this['confirmView']),this[_0x491c('0x5')](_0x491c('0x3'),!0x0),new Promise(_0x14430d=>this[_0x491c('0x2')]['on']('submit',_0x14430d));},'cancelConfirm'(){this['isConfirm']&&this['confirmView']['fire']('cancel');},'_removeConfirm'(){this['confirmView'][_0x491c('0x1')][_0x491c('0x9')](),this[_0x491c('0x0')](this[_0x491c('0x2')]),this[_0x491c('0x3')]=!0x1,this[_0x491c('0x2')][_0x491c('0x6')](),delete this[_0x491c('0x2')];}};
23
+ var _0x169d=['isConfirm','message','deregisterChild','destroy','confirmView','once','element','cancel','remove','_removeConfirm','set','registerChild','render','submit'];(function(_0x215f95,_0x169dad){var _0x4058c9=function(_0x461081){while(--_0x461081){_0x215f95['push'](_0x215f95['shift']());}};_0x4058c9(++_0x169dad);}(_0x169d,0xf0));var _0x4058=function(_0x215f95,_0x169dad){_0x215f95=_0x215f95-0x0;var _0x4058c9=_0x169d[_0x215f95];return _0x4058c9;};import _0x2a9c7a from'./confirmview';export default{'showConfirm'(_0x415594,_0x2a536d){return this[_0x4058('0x2')]=new _0x2a9c7a(this['locale']),this[_0x4058('0x2')][_0x4058('0xa')](),this[_0x4058('0x2')][_0x4058('0xd')]=_0x415594,this[_0x4058('0x2')][_0x4058('0x3')](_0x4058('0x5'),()=>{this[_0x4058('0x7')]();}),this[_0x4058('0x2')][_0x4058('0x3')](_0x4058('0xb'),()=>{this[_0x4058('0x7')]();}),_0x2a536d['appendChild'](this['confirmView'][_0x4058('0x4')]),this[_0x4058('0x9')](this[_0x4058('0x2')]),this[_0x4058('0x8')]('isConfirm',!0x0),new Promise(_0x180277=>this[_0x4058('0x2')]['on'](_0x4058('0xb'),_0x180277));},'cancelConfirm'(){this[_0x4058('0xc')]&&this['confirmView']['fire'](_0x4058('0x5'));},'_removeConfirm'(){this[_0x4058('0x2')]['element'][_0x4058('0x6')](),this[_0x4058('0x0')](this[_0x4058('0x2')]),this['isConfirm']=!0x1,this[_0x4058('0x2')][_0x4058('0x1')](),delete this[_0x4058('0x2')];}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x47e0e3,ButtonView as _0x4d672c}from'ckeditor5/src/ui';import{icons as _0xd1ca98}from'ckeditor5/src/core';export default class h extends _0x47e0e3{constructor(_0x3a909b){super(_0x3a909b);const {t:t}=_0x3a909b,_0x45cf4d=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3a909b,t('Yes'),_0xd1ca98['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3a909b,t('No'),_0xd1ca98['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x45cf4d['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x453edb,_0x450afb,_0x2ad643,_0x38531c){const _0x433a06=new _0x4d672c(_0x453edb);return _0x433a06['label']=_0x450afb,_0x433a06['icon']=_0x2ad643,_0x433a06['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x38531c}}),_0x433a06['on']('execute',()=>this['fire'](_0x38531c)),_0x433a06;}}
23
+ const _0x5134=['setTemplate','message','set','ck-thread__remove-confirm-','submit','label','_createButtonView','submitView','extendTemplate','icon','Are\x20you\x20sure?','cancelView','div','ck-thread__remove-confirm-actions','cancel','ck-thread__remove-confirm-inner'];(function(_0x1e6fb3,_0x5134b6){const _0x225d60=function(_0x564d42){while(--_0x564d42){_0x1e6fb3['push'](_0x1e6fb3['shift']());}};_0x225d60(++_0x5134b6);}(_0x5134,0xe3));const _0x225d=function(_0x1e6fb3,_0x5134b6){_0x1e6fb3=_0x1e6fb3-0x0;let _0x225d60=_0x5134[_0x1e6fb3];return _0x225d60;};import{View as _0x37a37c,ButtonView as _0x547aaa}from'ckeditor5/src/ui';import{icons as _0x324bfe}from'ckeditor5/src/core';import{getTranslation as _0x1a9ea5}from'./common-translations';export default class m extends _0x37a37c{constructor(_0x3ae19e){super(_0x3ae19e);const _0x4a18c1=this['bindTemplate'];this[_0x225d('0x4')]=this[_0x225d('0x3')](_0x3ae19e,_0x1a9ea5(_0x3ae19e,'Yes'),_0x324bfe['check'],_0x225d('0x1')),this['cancelView']=this[_0x225d('0x3')](_0x3ae19e,_0x1a9ea5(_0x3ae19e,'No'),_0x324bfe[_0x225d('0xb')],_0x225d('0xb')),this[_0x225d('0xf')](_0x225d('0xe'),_0x1a9ea5(_0x3ae19e,_0x225d('0x7'))),this[_0x225d('0xd')]({'tag':_0x225d('0x9'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':_0x225d('0xc')},'children':[{'tag':'p','children':[{'text':_0x4a18c1['to'](_0x225d('0xe'))}]},{'tag':'div','attributes':{'class':_0x225d('0xa')},'children':[this['submitView'],this[_0x225d('0x8')]]}]}]});}['_createButtonView'](_0x93b1ea,_0x4349c3,_0x1c80b0,_0x31efdf){const _0x181c8f=new _0x547aaa(_0x93b1ea);return _0x181c8f[_0x225d('0x2')]=_0x4349c3,_0x181c8f[_0x225d('0x6')]=_0x1c80b0,_0x181c8f[_0x225d('0x5')]({'attributes':{'class':_0x225d('0x0')+_0x31efdf}}),_0x181c8f['on']('execute',()=>this['fire'](_0x31efdf)),_0x181c8f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ccd=['\x27Last\x27\x20EEEE\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','function','string'];(function(_0x4056a1,_0x4ccdd1){const _0x1445fe=function(_0x32dcf7){while(--_0x32dcf7){_0x4056a1['push'](_0x4056a1['shift']());}};_0x1445fe(++_0x4ccdd1);}(_0x4ccd,0x172));const _0x1445=function(_0x4056a1,_0x4ccdd1){_0x4056a1=_0x4056a1-0x0;let _0x1445fe=_0x4ccd[_0x4056a1];return _0x1445fe;};import _0x5ce89b from'date-fns/format';import _0x45803c from'date-fns/parseISO';import _0x555273 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x1dc81f}from'ckeditor5/src/utils';export default function p(_0x330cbc={}){if(void 0x0!==_0x330cbc['dateTimeFormat']&&_0x1445('0x6')!=typeof _0x330cbc[_0x1445('0x3')])throw new _0x1dc81f('invalid-date-time-format');return _0x2cbe86=>{const _0x2b380a=_0x1445('0x0')==typeof _0x2cbe86?_0x45803c(_0x2cbe86):_0x2cbe86,_0x282213=new Date(),_0x5ab117=_0x555273(_0x282213,_0x2b380a);return _0x330cbc[_0x1445('0x3')]?_0x330cbc[_0x1445('0x3')](_0x2b380a):_0x5ce89b(_0x2b380a,0x0===_0x5ab117?_0x1445('0x2'):0x1===_0x5ab117?_0x1445('0x4'):_0x5ab117<0x7?_0x1445('0x1'):_0x1445('0x5'));};}
23
+ const _0x5312=['MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma','dateTimeFormat','function','invalid-date-time-format','\x27Today\x27\x20hh:mma'];(function(_0x4e41df,_0x5312bd){const _0x752af5=function(_0x31f3f3){while(--_0x31f3f3){_0x4e41df['push'](_0x4e41df['shift']());}};_0x752af5(++_0x5312bd);}(_0x5312,0x1ad));const _0x752a=function(_0x4e41df,_0x5312bd){_0x4e41df=_0x4e41df-0x0;let _0x752af5=_0x5312[_0x4e41df];return _0x752af5;};import _0xe629ba from'date-fns/format';import _0x27661e from'date-fns/parseISO';import _0x39a750 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x53485d}from'ckeditor5/src/utils';export default function E(_0x39c5ae={}){if(void 0x0!==_0x39c5ae['dateTimeFormat']&&_0x752a('0x0')!=typeof _0x39c5ae[_0x752a('0x5')])throw new _0x53485d(_0x752a('0x1'));return _0x428392=>{const _0x3fbf07='string'==typeof _0x428392?_0x27661e(_0x428392):_0x428392,_0x3f5f3e=new Date(),_0x4b2260=_0x39a750(_0x3f5f3e,_0x3fbf07);return _0x39c5ae[_0x752a('0x5')]?_0x39c5ae[_0x752a('0x5')](_0x3fbf07):_0xe629ba(_0x3fbf07,0x0===_0x4b2260?_0x752a('0x2'):0x1===_0x4b2260?_0x752a('0x4'):_0x4b2260<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':_0x752a('0x3'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7439=['mapViewToDom','mapper','view','domConverter','markerNameToElements'];(function(_0x518cb1,_0x743966){const _0x285160=function(_0x33e1cb){while(--_0x33e1cb){_0x518cb1['push'](_0x518cb1['shift']());}};_0x285160(++_0x743966);}(_0x7439,0x1ba));const _0x2851=function(_0x518cb1,_0x743966){_0x518cb1=_0x518cb1-0x0;let _0x285160=_0x7439[_0x518cb1];return _0x285160;};import{first as _0x40b200}from'ckeditor5/src/utils';export default function x(_0x279a39,_0x127fd5){const _0x4be2a7=_0x279a39[_0x2851('0x4')][_0x2851('0x2')](_0x127fd5['name']),_0x10a6ae=_0x40b200(_0x4be2a7['values']());return _0x279a39[_0x2851('0x0')][_0x2851('0x1')][_0x2851('0x3')](_0x10a6ae);}
23
+ const _0x78bd=['markerNameToElements','mapper','mapViewToDom','values','name','view'];(function(_0x5637cf,_0x78bdd7){const _0x41b78e=function(_0x48f914){while(--_0x48f914){_0x5637cf['push'](_0x5637cf['shift']());}};_0x41b78e(++_0x78bdd7);}(_0x78bd,0x1ce));const _0x41b7=function(_0x5637cf,_0x78bdd7){_0x5637cf=_0x5637cf-0x0;let _0x41b78e=_0x78bd[_0x5637cf];return _0x41b78e;};import{first as _0x4dfc32}from'ckeditor5/src/utils';export default function x(_0x159e63,_0x17e24c){const _0x16766d=_0x159e63[_0x41b7('0x1')][_0x41b7('0x0')](_0x17e24c[_0x41b7('0x4')]),_0x142f80=_0x4dfc32(_0x16766d[_0x41b7('0x3')]());return _0x159e63[_0x41b7('0x5')]['domConverter'][_0x41b7('0x2')](_0x142f80);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2af9=['startsWith','slice','join','push','match','...','indexOf','substring','replace','length','pop'];(function(_0x33e546,_0x2af934){const _0x19591f=function(_0x919078){while(--_0x919078){_0x33e546['push'](_0x33e546['shift']());}};_0x19591f(++_0x2af934);}(_0x2af9,0x13e));const _0x1959=function(_0x33e546,_0x2af934){_0x33e546=_0x33e546-0x0;let _0x19591f=_0x2af9[_0x33e546];return _0x19591f;};export default function g(_0x46031c,{limit:_0xae0e9f,suffix:_0x39b9ed=_0x1959('0x6')}){const _0x31f542=[];let _0x5c1498=0x0;const _0x480685=_0x46031c[_0x1959('0x9')](/</g,'\x0a<')[_0x1959('0x9')](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x26d66d=0x0;_0x26d66d<_0x480685[_0x1959('0xa')];_0x26d66d++){let _0x34e1b4=_0x480685[_0x26d66d];const _0x821192=z(_0x34e1b4);if(_0x34e1b4[_0x1959('0x1')]('<')){if(_0x5c1498>=_0xae0e9f){const _0x595f4c=_0x34e1b4[_0x1959('0x5')](/[a-zA-Z]+/)[0x0];_0x34e1b4[_0x1959('0x1')]('</')?(_0x31f542['length']&&(_0x34e1b4=''),_0x31f542[_0x1959('0x0')]()):(_0x31f542[_0x1959('0x4')](_0x595f4c),_0x34e1b4='');}}else{if(_0x5c1498>=_0xae0e9f)_0x34e1b4='';else{if(_0x5c1498+_0x821192[_0x1959('0xa')]>=_0xae0e9f){let _0x506d09=_0xae0e9f-_0x5c1498;if('\x20'===_0x821192[_0x506d09-0x1])_0x506d09--;else{const _0x56c731=_0x821192[_0x1959('0x2')](_0x506d09)[_0x1959('0x7')]('\x20');-0x1!==_0x56c731?_0x506d09+=_0x56c731:_0x506d09=_0x34e1b4[_0x1959('0xa')];}_0x34e1b4=_0x821192[_0x1959('0x2')](0x0,_0x506d09)[_0x1959('0x3')]('')+_0x39b9ed,_0x5c1498=_0xae0e9f;}else _0x5c1498+=_0x821192[_0x1959('0xa')];}}_0x480685[_0x26d66d]=_0x34e1b4;}return _0x480685[_0x1959('0x3')]('\x0a')['replace'](/\n/g,'');}function z(_0x22913f){const _0x1c7e08=[];for(let _0xa881e0=0x0;_0xa881e0<_0x22913f['length'];_0xa881e0++){const _0x4a0757=_0x22913f[_0x1959('0x8')](_0xa881e0)['match'](/^&[a-z0-9#]+;/);if(_0x4a0757){const _0x455c6e=_0x4a0757[0x0];_0x1c7e08[_0x1959('0x4')](_0x455c6e),_0xa881e0+=_0x455c6e[_0x1959('0xa')]-0x1;}else _0x1c7e08[_0x1959('0x4')](_0x22913f[_0xa881e0]);}return _0x1c7e08;}
23
+ const _0x2333=['match','push','replace','join','indexOf','substring','split','slice','length','pop','startsWith','...'];(function(_0x1ad52d,_0x23330f){const _0x53d268=function(_0x5ddd5e){while(--_0x5ddd5e){_0x1ad52d['push'](_0x1ad52d['shift']());}};_0x53d268(++_0x23330f);}(_0x2333,0xd4));const _0x53d2=function(_0x1ad52d,_0x23330f){_0x1ad52d=_0x1ad52d-0x0;let _0x53d268=_0x2333[_0x1ad52d];return _0x53d268;};export default function g(_0x187792,{limit:_0x2ab69b,suffix:_0x33da22=_0x53d2('0x3')}){const _0x28c127=[];let _0x225ebe=0x0;const _0x4f9400=_0x187792[_0x53d2('0x6')](/</g,'\x0a<')[_0x53d2('0x6')](/>/g,'>\x0a')[_0x53d2('0x6')](/^\n/g,'')[_0x53d2('0x6')](/\n$/g,'')[_0x53d2('0xa')]('\x0a');for(let _0x3a902c=0x0;_0x3a902c<_0x4f9400['length'];_0x3a902c++){let _0x19e2ca=_0x4f9400[_0x3a902c];const _0x2cafbb=z(_0x19e2ca);if(_0x19e2ca[_0x53d2('0x2')]('<')){if(_0x225ebe>=_0x2ab69b){const _0x1e0d0b=_0x19e2ca[_0x53d2('0x4')](/[a-zA-Z]+/)[0x0];_0x19e2ca[_0x53d2('0x2')]('</')?(_0x28c127['length']&&(_0x19e2ca=''),_0x28c127[_0x53d2('0x1')]()):(_0x28c127[_0x53d2('0x5')](_0x1e0d0b),_0x19e2ca='');}}else{if(_0x225ebe>=_0x2ab69b)_0x19e2ca='';else{if(_0x225ebe+_0x2cafbb[_0x53d2('0x0')]>=_0x2ab69b){let _0x4730d4=_0x2ab69b-_0x225ebe;if('\x20'===_0x2cafbb[_0x4730d4-0x1])_0x4730d4--;else{const _0x5054db=_0x2cafbb[_0x53d2('0xb')](_0x4730d4)[_0x53d2('0x8')]('\x20');-0x1!==_0x5054db?_0x4730d4+=_0x5054db:_0x4730d4=_0x19e2ca[_0x53d2('0x0')];}_0x19e2ca=_0x2cafbb['slice'](0x0,_0x4730d4)[_0x53d2('0x7')]('')+_0x33da22,_0x225ebe=_0x2ab69b;}else _0x225ebe+=_0x2cafbb[_0x53d2('0x0')];}}_0x4f9400[_0x3a902c]=_0x19e2ca;}return _0x4f9400[_0x53d2('0x7')]('\x0a')[_0x53d2('0x6')](/\n/g,'');}function z(_0x539610){const _0x23a576=[];for(let _0x56b54f=0x0;_0x56b54f<_0x539610[_0x53d2('0x0')];_0x56b54f++){const _0xb3ad0f=_0x539610[_0x53d2('0x9')](_0x56b54f)['match'](/^&[a-z0-9#]+;/);if(_0xb3ad0f){const _0x3ef2dc=_0xb3ad0f[0x0];_0x23a576[_0x53d2('0x5')](_0x3ef2dc),_0x56b54f+=_0x3ef2dc['length']-0x1;}else _0x23a576[_0x53d2('0x5')](_0x539610[_0x56b54f]);}return _0x23a576;}