@ckeditor/ckeditor5-real-time-collaboration 33.0.0 → 34.2.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 +2 -2
- package/README.md +5 -2
- package/build/real-time-collaboration.js +2 -4
- package/build/translations/cs.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lv.js +1 -0
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/de.po +5 -5
- package/lang/translations/en-au.po +5 -5
- package/lang/translations/es.po +2 -1
- package/lang/translations/fr.po +2 -1
- package/lang/translations/gl.po +5 -5
- package/lang/translations/hr.po +5 -5
- package/lang/translations/it.po +2 -1
- package/lang/translations/lv.po +48 -0
- package/lang/translations/pt-br.po +2 -1
- package/lang/translations/sk.po +5 -5
- package/lang/translations/zh-cn.po +7 -7
- package/package.json +5 -6
- package/src/common-translations.js +23 -0
- package/src/index.js +1 -1
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/presencelist/view/tooltipview.js +1 -1
- package/src/presencelist.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +1 -1
- package/src/realtimecollaborativecomments.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
- package/src/realtimecollaborativeediting.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
- package/src/realtimecollaborativerevisionhistory.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
- package/src/realtimecollaborativetrackchanges.js +1 -1
|
@@ -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(_0x2dbc83,_0x2acd83,_0x390891){const t=_0x2dbc83['t'];switch(_0x2acd83){case'PENDING_ACTION_SENDING_DATA':return t({'string':'Sending\x20data\x20to\x20the\x20server.','id':'PENDING_ACTION_SENDING_DATA'});case'The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'Synchronization\x20issue':return t('Synchronization\x20issue');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'CONNECTED_USERS':return t({'string':'1\x20connected\x20user\x20(me)','plural':'%0\x20connected\x20users','id':'CONNECTED_USERS'},_0x390891);}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export{default as RealTimeCollaborativeEditing}from'./realtimecollaborativeediting';export{default as RealTimeCollaborativeTrackChanges}from'./realtimecollaborativetrackchanges';export{default as RealTimeCollaborativeComments}from'./realtimecollaborativecomments';export{default as CloudServicesCommentsAdapter}from'./realtimecollaborativecomments/cloudservicescommentsadapter';export{default as CloudServicesTrackChangesAdapter}from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';export{default as PresenceList}from'./presencelist';
|
|
23
|
+
export{default as RealTimeCollaborativeEditing}from'./realtimecollaborativeediting';export{default as RealTimeCollaborativeTrackChanges}from'./realtimecollaborativetrackchanges';export{default as RealTimeCollaborativeComments}from'./realtimecollaborativecomments';export{default as RealTimeCollaborativeRevisionHistory}from'./realtimecollaborativerevisionhistory';export{default as CloudServicesCommentsAdapter}from'./realtimecollaborativecomments/cloudservicescommentsadapter';export{default as CloudServicesTrackChangesAdapter}from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';export{default as CloudServicesRevisionHistoryAdapter}from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';export{default as PresenceList}from'./presencelist';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4248=['isHidden','_allConnectedUsers','detachFromDom','listenTo','hideDropdown','destroy','element','context','bindTo','isCollapsed','usersCount','config','init','remove','presenceList','define','class','view','execute','presencelist-collapseat-invalid-format','presenceList.container','from','presencelist-missing-container','get','_handleUserAdd','allConnectedUsers','onClick','render','using','content','presenceDropdownView','plugins','_handleUserRemove','number','add','ck\x20ck-presence-list__balloon','isVisible','locale','length','showDropdown','balloonPanelView','bodyCollection','presenceList.collapseAt','inlineListView','appendChild','_createView','attachToDom','counterView','lastConnectedUsers','reverse'];(function(_0x114150,_0x424884){const _0x265f3e=function(_0xc0fa2c){while(--_0xc0fa2c){_0x114150['push'](_0x114150['shift']());}};_0x265f3e(++_0x424884);}(_0x4248,0xac));const _0x265f=function(_0x114150,_0x424884){_0x114150=_0x114150-0x0;let _0x265f3e=_0x4248[_0x114150];return _0x265f3e;};import{ContextPlugin as _0x3cf98d}from'ckeditor5/src/core';import{CKEditorError as _0x686f0,Collection as _0x12ee71}from'ckeditor5/src/utils';import{clickOutsideHandler as _0x3d97c3,BodyCollection as _0xc64c90,BalloonPanelView as _0x796c65}from'ckeditor5/src/ui';import{isElement as _0x2e0be6}from'lodash-es';import _0x57c8e5 from'../realtimecollaborativeediting/sessions';import _0x230f45 from'./view/presencelistview';import _0x1242ce from'./view/presencedropdownlistview';import _0x45b712 from'./view/presencedropdownlistitemview';import _0x576641 from'./view/presenceinlinelistitemview';export default class i extends _0x3cf98d{constructor(_0xb44c1){super(_0xb44c1),_0xb44c1[_0x265f('0x27')][_0x265f('0x2b')]('presenceList',{'collapseAt':0x6});const _0x3c8af1=_0xb44c1['config'][_0x265f('0x1')]('presenceList.collapseAt');if(_0x265f('0xb')!=typeof _0x3c8af1)throw new _0x686f0('presencelist-collapseat-invalid-format',this);if(_0x3c8af1<0x1)throw new _0x686f0(_0x265f('0x2f'),this);}static get['requires'](){return[_0x57c8e5];}[_0x265f('0x28')](){const _0x28bf41=this['context'];this[_0x265f('0x1d')]=_0x28bf41[_0x265f('0x9')][_0x265f('0x1')](_0x57c8e5)[_0x265f('0x3')],this['set']('usersCount',0x0),this['lastConnectedUsers']=new _0x12ee71(),this[_0x265f('0x12')]=new _0x796c65(),this['balloonPanelView'][_0x265f('0x2c')]=_0x265f('0xd'),this[_0x265f('0x2d')]=this[_0x265f('0x17')](),this['presenceDropdownView']=void 0x0;for(const _0x5034d7 of this[_0x265f('0x1d')])this[_0x265f('0x2')](_0x5034d7);this['listenTo'](this['_allConnectedUsers'],_0x265f('0xc'),(_0x586e82,_0x2ef6d7)=>{this[_0x265f('0x2')](_0x2ef6d7);}),this[_0x265f('0x1f')](this[_0x265f('0x1d')],_0x265f('0x29'),(_0x59da7f,_0x4790c2)=>{this[_0x265f('0xa')](_0x4790c2);});}[_0x265f('0x17')](){const _0x409da8=this['context'],_0x17593b=new _0x230f45(this['context'][_0x265f('0xf')]),_0x452dce=this[_0x265f('0x12')];if(!_0x2e0be6(_0x409da8[_0x265f('0x27')][_0x265f('0x1')](_0x265f('0x30'))))throw new _0x686f0(_0x265f('0x0'),this);return _0x17593b[_0x265f('0x19')]['bind'](_0x265f('0x26'))['to'](this),_0x17593b['bind'](_0x265f('0x25'))['to'](this,'usersCount',_0x2bc230=>{const _0x106c77=_0x2bc230>=_0x409da8[_0x265f('0x27')][_0x265f('0x1')](_0x265f('0x14'));return _0x17593b[_0x265f('0x19')][_0x265f('0x1c')]=!(0x1==_0x2bc230||_0x106c77),_0x106c77||this[_0x265f('0x20')](),_0x106c77;}),_0x17593b[_0x265f('0x15')]['items'][_0x265f('0x24')](this[_0x265f('0x1a')])[_0x265f('0x6')](_0x1776da=>{const _0x13c3ac=_0x409da8[_0x265f('0x27')][_0x265f('0x1')](_0x265f('0x2a')),_0x4710fe=new _0x576641(_0x409da8['locale'],_0x1776da,_0x13c3ac[_0x265f('0x4')]);return _0x13c3ac[_0x265f('0x4')]&&this[_0x265f('0x1f')](_0x4710fe,_0x265f('0x2e'),()=>{this['view'][_0x265f('0x25')]||_0x13c3ac[_0x265f('0x4')](_0x1776da,_0x4710fe[_0x265f('0x22')]);}),_0x4710fe;}),this[_0x265f('0x1f')](_0x17593b[_0x265f('0x15')],'execute',()=>{this['presenceDropdownView']?this[_0x265f('0x20')]():this['view'][_0x265f('0x25')]&&this[_0x265f('0x11')]();}),_0x17593b[_0x265f('0x5')](),_0x452dce['render'](),_0x3d97c3({'emitter':_0x17593b,'activator':()=>_0x452dce[_0x265f('0xe')],'contextElements':[_0x452dce[_0x265f('0x22')],_0x17593b[_0x265f('0x15')]['element']],'callback':()=>this[_0x265f('0x20')]()}),_0x409da8[_0x265f('0x27')][_0x265f('0x1')](_0x265f('0x30'))[_0x265f('0x16')](_0x17593b[_0x265f('0x22')]),this['bodyCollection']=new _0xc64c90(this['context']['locale']),this[_0x265f('0x13')][_0x265f('0x18')](),this[_0x265f('0x13')][_0x265f('0xc')](_0x452dce),_0x17593b;}[_0x265f('0x2')](_0x32c767){this['usersCount']++,0x5==this[_0x265f('0x1a')][_0x265f('0x10')]&&this[_0x265f('0x1a')][_0x265f('0x29')](0x0),this['lastConnectedUsers'][_0x265f('0xc')](_0x32c767);}[_0x265f('0xa')](_0x25c294){if(this[_0x265f('0x26')]--,this[_0x265f('0x1a')][_0x265f('0x1')](_0x25c294['id'])&&(this[_0x265f('0x1a')][_0x265f('0x29')](_0x25c294['id']),this[_0x265f('0x1a')][_0x265f('0x10')]<this[_0x265f('0x26')]))for(const _0xaf023d of Array[_0x265f('0x31')](this[_0x265f('0x1d')])[_0x265f('0x1b')]())if(!this[_0x265f('0x1a')]['get'](_0xaf023d['id']))return void this['lastConnectedUsers'][_0x265f('0xc')](_0xaf023d,0x0);}['showDropdown'](){if(this[_0x265f('0x8')])return;this['presenceDropdownView']=new _0x1242ce();const _0x4982ed=this['context']['config'][_0x265f('0x1')](_0x265f('0x2a'));this[_0x265f('0x8')]['items'][_0x265f('0x24')](this[_0x265f('0x1d')])[_0x265f('0x6')](_0x27684d=>{const _0x5df0c7=new _0x45b712(this[_0x265f('0x23')][_0x265f('0xf')],_0x27684d,!!_0x4982ed['onClick']);return _0x4982ed['onClick']&&this['listenTo'](_0x5df0c7,_0x265f('0x2e'),()=>{_0x4982ed[_0x265f('0x4')](_0x27684d,_0x5df0c7[_0x265f('0x22')]);}),_0x5df0c7;}),this['balloonPanelView'][_0x265f('0x7')]['add'](this[_0x265f('0x8')]),this[_0x265f('0x12')]['pin']({'target':this[_0x265f('0x2d')][_0x265f('0x15')][_0x265f('0x22')]});}[_0x265f('0x20')](){this[_0x265f('0x8')]&&(this[_0x265f('0x12')]['unpin'](),this[_0x265f('0x12')]['content'][_0x265f('0x29')](this['presenceDropdownView']),this[_0x265f('0x8')]['destroy'](),this[_0x265f('0x8')]=void 0x0);}[_0x265f('0x21')](){super[_0x265f('0x21')](),this[_0x265f('0x2d')]&&this['view']['isRendered']&&this[_0x265f('0x2d')][_0x265f('0x21')](),this['bodyCollection']&&this[_0x265f('0x13')][_0x265f('0x1e')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
const _0x592a=['isHidden','div','ck-presence-list__counter--hidden','setTemplate','set','bindTemplate'];(function(_0x23070a,_0x592aea){const _0xcf107d=function(_0x28751c){while(--_0x28751c){_0x23070a['push'](_0x23070a['shift']());}};_0xcf107d(++_0x592aea);}(_0x592a,0xf7));const _0xcf10=function(_0x23070a,_0x592aea){_0x23070a=_0x23070a-0x0;let _0xcf107d=_0x592a[_0x23070a];return _0xcf107d;};import{View as _0x2ba92e}from'ckeditor5/src/ui';import{getTranslation as _0xed82d6}from'../../common-translations';export default class st extends _0x2ba92e{constructor(_0x505a47){super(_0x505a47);const _0x4a16cf=this[_0xcf10('0x4')];this[_0xcf10('0x3')]('usersCount',0x0),this[_0xcf10('0x3')](_0xcf10('0x5'),!0x0),this[_0xcf10('0x2')]({'tag':_0xcf10('0x0'),'attributes':{'class':['ck','ck-presence-list__counter',_0x4a16cf['if'](_0xcf10('0x5'),_0xcf10('0x1'))]},'children':[{'text':_0x4a16cf['to']('usersCount',_0x51124e=>_0xed82d6(_0x505a47,'CONNECTED_USERS',_0x51124e))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x355a=['bindTemplate','tag','color','ck-user__full-name','div','userView','getBackgroundColorClass','ck-presence-list__dropdown-list-item','ck-presence-list__marker','fire','button','setTemplate','span'];(function(_0x2c4981,_0x355adf){const _0xc205e0=function(_0x6b90e8){while(--_0x6b90e8){_0x2c4981['push'](_0x2c4981['shift']());}};_0xc205e0(++_0x355adf);}(_0x355a,0x11e));const _0xc205=function(_0x2c4981,_0x355adf){_0x2c4981=_0x2c4981-0x0;let _0xc205e0=_0x355a[_0x2c4981];return _0xc205e0;};import{View as _0x413700}from'ckeditor5/src/ui';import{UserView as _0x5b7f01}from'ckeditor5-collaboration/src/collaboration-core';export default class _ extends _0x413700{constructor(_0x33e29f,_0x134ab5,_0x478c88){super(_0x33e29f);const _0xd43aee=this[_0xc205('0x0')];this[_0xc205('0x5')]=new _0x5b7f01(_0x33e29f,_0x134ab5);const _0x3dbb56={'tag':_0xc205('0x4'),'attributes':{'class':['ck',_0xc205('0x7')]},'children':[this['userView'],{'tag':_0xc205('0xc'),'attributes':{'class':['ck',_0xc205('0x3')]},'children':[{'text':_0x134ab5['name']}]},{'tag':_0xc205('0xc'),'attributes':{'class':['ck',_0xc205('0x8'),_0x134ab5[_0xc205('0x2')][_0xc205('0x6')]()],'aria-hidden':'true'}}]};_0x478c88&&(_0x3dbb56[_0xc205('0x1')]=_0xc205('0xa'),_0x3dbb56['on']={'click':_0xd43aee['to'](()=>this[_0xc205('0x9')]('execute'))}),this[_0xc205('0xb')](_0x3dbb56);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x29e1=['setTemplate','ck-presence-list__dropdown-list','items'];(function(_0xb77d91,_0x29e10f){var _0x1e0215=function(_0xfa9fde){while(--_0xfa9fde){_0xb77d91['push'](_0xb77d91['shift']());}};_0x1e0215(++_0x29e10f);}(_0x29e1,0x94));var _0x1e02=function(_0xb77d91,_0x29e10f){_0xb77d91=_0xb77d91-0x0;var _0x1e0215=_0x29e1[_0xb77d91];return _0x1e0215;};import{View as _0x444417}from'ckeditor5/src/ui';export default class A extends _0x444417{constructor(_0x29b473){super(_0x29b473),this['items']=this['createCollection'](),this[_0x1e02('0x2')]({'tag':'div','attributes':{'class':['ck',_0x1e02('0x0')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-presence-list__dropdown-list-wrapper']},'children':this[_0x1e02('0x1')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4de0=['button','tag','tooltipView','color','span','fire','setTemplate','execute','bindTemplate','true','userView','markerView','ck-presence-list__list-item','div','text'];(function(_0x2755e1,_0x4de0bc){const _0x5464c6=function(_0x5a0edf){while(--_0x5a0edf){_0x2755e1['push'](_0x2755e1['shift']());}};_0x5464c6(++_0x4de0bc);}(_0x4de0,0x109));const _0x5464=function(_0x2755e1,_0x4de0bc){_0x2755e1=_0x2755e1-0x0;let _0x5464c6=_0x4de0[_0x2755e1];return _0x5464c6;};import{View as _0x5ab7cb}from'ckeditor5/src/ui';import _0x3c4e89 from'./tooltipview';import{UserView as _0x546a5f}from'ckeditor5-collaboration/src/collaboration-core';export default class b extends _0x5ab7cb{constructor(_0x3bb656,_0x3e39e2,_0x4eb70d){super(_0x3bb656);const _0x501e6c=this[_0x5464('0xd')];this[_0x5464('0x0')]=new _0x546a5f(_0x3bb656,_0x3e39e2),this[_0x5464('0x1')]=new rt(_0x3bb656,_0x3e39e2),this['tooltipView']=new _0x3c4e89(_0x3bb656),this[_0x5464('0x7')][_0x5464('0x4')]=this['userView']['name'];const _0x281ac1={'tag':_0x5464('0x3'),'attributes':{'class':['ck',_0x5464('0x2')]},'children':[this['userView'],this[_0x5464('0x1')],this['tooltipView']]};_0x4eb70d&&(_0x281ac1[_0x5464('0x6')]=_0x5464('0x5'),_0x281ac1['on']={'click':_0x501e6c['to'](()=>this[_0x5464('0xa')](_0x5464('0xc')))}),this[_0x5464('0xb')](_0x281ac1);}}class rt extends _0x5ab7cb{constructor(_0x5ce814,_0xbf5c83){super(_0x5ce814),this[_0x5464('0xb')]({'tag':_0x5464('0x9'),'attributes':{'class':['ck','ck-presence-list__marker',_0xbf5c83[_0x5464('0x8')]['getBackgroundColorClass']()],'aria-hidden':_0x5464('0xe')}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1abf=['items','bindTemplate','div','setTemplate','fire'];(function(_0x51be32,_0x1abff6){const _0x38f06e=function(_0x48dfff){while(--_0x48dfff){_0x51be32['push'](_0x51be32['shift']());}};_0x38f06e(++_0x1abff6);}(_0x1abf,0x1bb));const _0x38f0=function(_0x51be32,_0x1abff6){_0x51be32=_0x51be32-0x0;let _0x38f06e=_0x1abf[_0x51be32];return _0x38f06e;};import{View as _0x28afd7}from'ckeditor5/src/ui';export default class ct extends _0x28afd7{constructor(_0x563693){super(_0x563693),this[_0x38f0('0x2')]=this['createCollection']();const _0x1b6fbb=this[_0x38f0('0x3')];this[_0x38f0('0x0')]({'tag':_0x38f0('0x4'),'attributes':{'class':['ck','ck-presence-list__list']},'children':this[_0x38f0('0x2')],'on':{'click':_0x1b6fbb['to'](()=>this[_0x38f0('0x1')]('execute'))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x309e=['ck-presence-list--collapsed','isCollapsed','counterView','div','bindTemplate','locale','set','ck-reset'];(function(_0x1aa557,_0x309e73){const _0x26489a=function(_0x10673a){while(--_0x10673a){_0x1aa557['push'](_0x1aa557['shift']());}};_0x26489a(++_0x309e73);}(_0x309e,0xd4));const _0x2648=function(_0x1aa557,_0x309e73){_0x1aa557=_0x1aa557-0x0;let _0x26489a=_0x309e[_0x1aa557];return _0x26489a;};import{View as _0x110e03}from'ckeditor5/src/ui';import _0x3e18fd from'./presencecounterview';import _0x9f85c8 from'./presenceinlinelistview';import'../../../theme/presencelist.css';export default class x extends _0x110e03{constructor(_0x399f3c){super(_0x399f3c);const _0x2b241a=this[_0x2648('0x0')];this[_0x2648('0x2')](_0x2648('0x5'),!0x0),this[_0x2648('0x6')]=new _0x3e18fd(this[_0x2648('0x1')]),this['inlineListView']=new _0x9f85c8(_0x399f3c),this['setTemplate']({'tag':_0x2648('0x7'),'attributes':{'class':['ck','ck-presence-list',_0x2648('0x3'),'ck-rounded-corners',_0x2b241a['if'](_0x2648('0x5'),_0x2648('0x4'))]},'children':[this[_0x2648('0x6')],this['inlineListView']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fdb=['ck-tooltip_','ck-tooltip__text','bindTemplate','position','setTemplate','text','span','ck-tooltip__text__inner'];(function(_0xa96049,_0x1fdb80){const _0x2e4246=function(_0x8feeb3){while(--_0x8feeb3){_0xa96049['push'](_0xa96049['shift']());}};_0x2e4246(++_0x1fdb80);}(_0x1fdb,0x90));const _0x2e42=function(_0xa96049,_0x1fdb80){_0xa96049=_0xa96049-0x0;let _0x2e4246=_0x1fdb[_0xa96049];return _0x2e4246;};import{TooltipView as _0x18bae8}from'ckeditor5/src/ui';export default class it extends _0x18bae8{constructor(_0x5e68a4){super(_0x5e68a4);const _0x18d4e4=this[_0x2e42('0x2')];this[_0x2e42('0x4')]({'tag':'span','attributes':{'class':['ck','ck-tooltip',_0x18d4e4['to'](_0x2e42('0x3'),_0x528a5f=>_0x2e42('0x0')+_0x528a5f)]},'children':[{'tag':_0x2e42('0x6'),'attributes':{'class':[_0x2e42('0x1')]},'children':[{'tag':_0x2e42('0x6'),'class':[_0x2e42('0x7')],'children':[{'text':_0x18d4e4['to'](_0x2e42('0x5'))}]}]}]});}}
|
package/src/presencelist.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xe3ec=['pluginName','PresenceList','requires'];(function(_0x4a79e7,_0xe3ecff){var _0x47ce54=function(_0x51bd6a){while(--_0x51bd6a){_0x4a79e7['push'](_0x4a79e7['shift']());}};_0x47ce54(++_0xe3ecff);}(_0xe3ec,0x19d));var _0x47ce=function(_0x4a79e7,_0xe3ecff){_0x4a79e7=_0x4a79e7-0x0;var _0x47ce54=_0xe3ec[_0x4a79e7];return _0x47ce54;};import{ContextPlugin as _0x5af71c}from'ckeditor5/src/core';import _0x37b8ab from'./realtimecollaborativeediting/sessions';import _0x13a1e8 from'./presencelist/presencelistui';export default class s extends _0x5af71c{static get[_0x47ce('0x0')](){return[_0x37b8ab,_0x13a1e8];}static get[_0x47ce('0x1')](){return _0x47ce('0x2');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30d3=['delete','getComment','CommentsRepository','_connectService','_fetchMissingUsersForThreads','_terminateService','userId','message','Permissions','attributes','init','permissions','get','_setUpService','update','set','getConnectedSessions','config','listenTo','_services','addComment','hasCommentThread','has','startsWith','context','code','getCommentThread','_getService','CommentsService','removeCommentThread','commentUpdated','register','reconnect','collaboration.channelId','mySessionId','destroy','from','cloud-services-internal-error:\x20Not\x20connected.','plugins','createdAt','addUser','commentAdded','catch','connect','removeComment','commentId','commentThreadId','setPermissions','remove','keys','unregister','getCommentThreads','content','404','cloudservicescommentsadapter-connect-already-connected','off','comments','getUser','sessionAdd:','commentThreadRemoved','addCommentThread','add'];(function(_0x384d78,_0x30d3b1){const _0x56d068=function(_0x4ec566){while(--_0x4ec566){_0x384d78['push'](_0x384d78['shift']());}};_0x56d068(++_0x30d3b1);}(_0x30d3,0x150));const _0x56d0=function(_0x384d78,_0x30d3b1){_0x384d78=_0x384d78-0x0;let _0x56d068=_0x30d3[_0x384d78];return _0x56d068;};import{Context as _0x3418c0,ContextPlugin as _0x137fbf}from'ckeditor5/src/core';import{CKEditorError as _0x5d5882}from'ckeditor5/src/utils';import{Users as _0x3803cc}from'ckeditor5-collaboration/src/collaboration-core';import _0x3305ae from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x179bbf from'@ckeditor/ckeditor-cloud-services-collaboration/src/comments-v2/commentsservice';import _0x5860da from'../realtimecollaborativeediting/websocketgateway';import _0x1cb77a from'../realtimecollaborativeediting/sessions';export default class a extends _0x137fbf{static get['requires'](){return[_0x5860da,'CommentsRepository',_0x1cb77a,_0x3803cc];}constructor(_0x26eeca){super(_0x26eeca),this['_services']=new Map();}async[_0x56d0('0x2e')](){const _0x3821e7=this[_0x56d0('0x3c')],_0x38b5d1=_0x3821e7[_0x56d0('0xc')][_0x56d0('0x30')]('CommentsRepository');if(_0x3821e7[_0x56d0('0xc')][_0x56d0('0x30')](_0x5860da)['addToReconnectionStack'](this),_0x38b5d1['adapter']={'getCommentThread':async({channelId:_0x1c5d2c,threadId:_0x39085e})=>{const _0x2567a7=await this['_getService'](_0x1c5d2c)[_0x56d0('0x0')](_0x39085e)['catch'](R);return await this[_0x56d0('0x28')]([_0x2567a7]),{'threadId':_0x2567a7[_0x56d0('0x14')],'comments':_0x2567a7['comments']['map'](T)};},'removeCommentThread':({channelId:_0xf97fb4,threadId:_0x9029a6})=>this[_0x56d0('0x1')](_0xf97fb4)[_0x56d0('0x3')](_0x9029a6)[_0x56d0('0x10')](S)[_0x56d0('0x10')](R),'addComment':({channelId:_0x4befba,threadId:_0x152ab0,commentId:_0x29ea4b,content:_0x358619,attributes:_0x237145})=>this[_0x56d0('0x1')](_0x4befba)[_0x56d0('0x38')](_0x152ab0,_0x29ea4b,_0x358619,_0x237145)[_0x56d0('0x10')](R),'updateComment':({channelId:_0x7f124f,threadId:_0x515ddb,commentId:_0x4905fd,content:_0x162eb7,attributes:_0x21f30a})=>this['_getService'](_0x7f124f)['updateComment'](_0x515ddb,_0x4905fd,_0x162eb7,_0x21f30a)[_0x56d0('0x10')](S)[_0x56d0('0x10')](R),'removeComment':({channelId:_0xdc0408,threadId:_0x398f8b,commentId:_0x5e9fec})=>this[_0x56d0('0x1')](_0xdc0408)[_0x56d0('0x12')](_0x398f8b,_0x5e9fec)[_0x56d0('0x10')](S)[_0x56d0('0x10')](R)},_0x3821e7 instanceof _0x3418c0){const _0x2e7c6b=_0x3821e7['config'][_0x56d0('0x30')]('collaboration.channelId'),_0x110015=_0x3821e7[_0x56d0('0xc')][_0x56d0('0x30')](_0x1cb77a);await this[_0x56d0('0x31')](_0x2e7c6b);const _0x345a3b=await this[_0x56d0('0x37')]['get'](_0x2e7c6b)[_0x56d0('0x34')]();this['listenTo'](_0x110015,_0x56d0('0x20')+_0x2e7c6b,(_0x211cef,{session:_0x1c1ab0})=>{_0x1c1ab0['id']===_0x110015[_0x56d0('0x8')]&&(_0x211cef[_0x56d0('0x1d')](),this[_0x56d0('0x3c')][_0x56d0('0xc')][_0x56d0('0x30')](_0x56d0('0x2c'))[_0x56d0('0x15')](_0x1c1ab0[_0x56d0('0x2f')],_0x2e7c6b));}),_0x110015[_0x56d0('0x5')](_0x2e7c6b,_0x345a3b);}}async['_setUpService'](_0x5dd232){if(this[_0x56d0('0x37')][_0x56d0('0x3a')](_0x5dd232))throw new _0x5d5882(_0x56d0('0x1c'),null,{'channelId':_0x5dd232});const _0x4040cb=this[_0x56d0('0x3c')][_0x56d0('0xc')][_0x56d0('0x30')]('CommentsRepository'),_0x4355b3=new a[(_0x56d0('0x2'))](_0x5dd232);this[_0x56d0('0x37')][_0x56d0('0x33')](_0x5dd232,_0x4355b3),this[_0x56d0('0x36')](_0x4355b3,_0x56d0('0x21'),(_0x5a1b3,{commentThreadId:_0x559d8c})=>{const _0x367bc1=_0x4040cb[_0x56d0('0x0')](_0x559d8c);_0x367bc1&&_0x367bc1[_0x56d0('0x16')]({'isFromAdapter':!0x0});}),this[_0x56d0('0x36')](_0x4355b3,_0x56d0('0xf'),(_0x44bca9,_0x4b7dfb)=>{const _0x5ae802=_0x4b7dfb[_0x56d0('0x14')];_0x4040cb[_0x56d0('0x39')](_0x5ae802)||_0x4040cb[_0x56d0('0x22')]({'channelId':_0x5dd232,'threadId':_0x5ae802,'isFromAdapter':!0x0});const _0x195a92=_0x4040cb['getCommentThread'](_0x5ae802);_0x195a92&&_0x195a92[_0x56d0('0x38')](Object['assign'](T(_0x4b7dfb),{'isFromAdapter':!0x0}));}),this[_0x56d0('0x36')](_0x4355b3,_0x56d0('0x4'),(_0x293a3b,{commentThreadId:_0x31df40,commentId:_0x231b08,content:_0x1aff4c,attributes:_0xa12455})=>{const _0x4313c1=_0x4040cb[_0x56d0('0x0')](_0x31df40);if(_0x4313c1){const _0x1a15fe=_0x4313c1[_0x56d0('0x25')](_0x231b08);_0x1a15fe&&_0x1a15fe[_0x56d0('0x32')]({'content':_0x1aff4c,'attributes':_0xa12455,'isFromAdapter':!0x0});}}),this[_0x56d0('0x36')](_0x4355b3,'commentRemoved',(_0x25f0e5,{commentThreadId:_0x4c435b,commentId:_0x5a34cb})=>{const _0xcd4601=_0x4040cb[_0x56d0('0x0')](_0x4c435b);if(_0xcd4601){const _0x2ab5c6=_0xcd4601[_0x56d0('0x25')](_0x5a34cb);_0x2ab5c6&&_0x2ab5c6[_0x56d0('0x16')]({'isFromAdapter':!0x0});}}),await this[_0x56d0('0x27')](_0x5dd232);}[_0x56d0('0x9')](){if(this[_0x56d0('0x3c')]instanceof _0x3418c0){const _0x5ff6a=this[_0x56d0('0x3c')][_0x56d0('0x35')][_0x56d0('0x30')](_0x56d0('0x7'));this['_terminateService'](_0x5ff6a);}}[_0x56d0('0x29')](_0x15dff5){if(!this[_0x56d0('0x37')][_0x56d0('0x3a')](_0x15dff5))throw new _0x5d5882('cloudservicescommentsadapter-disconnect-not-exist',null,{'channelId':_0x15dff5});this[_0x56d0('0x1')](_0x15dff5)['disconnect'](),this[_0x56d0('0x37')]['delete'](_0x15dff5);}async[_0x56d0('0x6')](){for(const _0x1aeb51 of this['_services'][_0x56d0('0x17')]())await this[_0x56d0('0x27')](_0x1aeb51);if(this[_0x56d0('0x3c')]instanceof _0x3418c0){const _0x4444f3=this['context'][_0x56d0('0x35')][_0x56d0('0x30')](_0x56d0('0x7')),_0x458f53=this[_0x56d0('0x3c')]['plugins'][_0x56d0('0x30')](_0x1cb77a);_0x458f53[_0x56d0('0x18')](_0x4444f3);const _0x1ff3f9=await this[_0x56d0('0x37')][_0x56d0('0x30')](_0x4444f3)['getConnectedSessions']();_0x458f53[_0x56d0('0x5')](_0x4444f3,_0x1ff3f9);}}async[_0x56d0('0x27')](_0xa800a7){const {connection:_0x47eaed}=this[_0x56d0('0x3c')][_0x56d0('0xc')][_0x56d0('0x30')](_0x5860da),_0x2d37a8=this['context'][_0x56d0('0xc')][_0x56d0('0x30')](_0x56d0('0x26')),_0x25f480=this[_0x56d0('0x37')][_0x56d0('0x30')](_0xa800a7),_0xf212f6=await _0x25f480[_0x56d0('0x11')](_0x47eaed);await this['_fetchMissingUsersForThreads'](_0xf212f6);const _0x4b53bc=new Set(Array[_0x56d0('0xa')](_0x2d37a8[_0x56d0('0x19')]({'channelId':_0xa800a7}),_0x1b7ef3=>_0x1b7ef3['id']));for(const _0x182cf2 of _0xf212f6)_0x4b53bc[_0x56d0('0x24')](_0x182cf2['commentThreadId']);for(const _0x2d2059 of _0x4b53bc)_0x2d37a8[_0x56d0('0x0')](_0x2d2059)[_0x56d0('0x16')]({'isFromAdapter':!0x0});for(const _0xd836c of _0xf212f6){let _0x32f792=_0x2d37a8[_0x56d0('0x0')](_0xd836c[_0x56d0('0x14')]);_0x32f792||(_0x32f792=_0x2d37a8[_0x56d0('0x22')]({'channelId':_0xa800a7,'threadId':_0xd836c[_0x56d0('0x14')],'isFromAdapter':!0x0}));const _0x4b282e=new Set(Array[_0x56d0('0xa')](_0x32f792['comments'],_0x1fd1dd=>_0x1fd1dd['id']));for(const _0x4246b6 of _0xd836c[_0x56d0('0x1e')])_0x4b282e[_0x56d0('0x24')](_0x4246b6[_0x56d0('0x13')]);for(const _0x7ea093 of _0x4b282e)_0x32f792[_0x56d0('0x25')](_0x7ea093)['remove']({'isFromAdapter':!0x0});for(const _0x3c6942 of _0xd836c[_0x56d0('0x1e')]){const _0x39b666=_0x32f792[_0x56d0('0x25')](_0x3c6942[_0x56d0('0x13')]);_0x39b666?_0x39b666[_0x56d0('0x1a')]!==_0x3c6942[_0x56d0('0x1a')]&&_0x39b666[_0x56d0('0x32')]({'content':_0x3c6942['content'],'isFromAdapter':!0x0}):_0x32f792[_0x56d0('0x38')](Object['assign'](T(_0x3c6942),{'isFromAdapter':!0x0}));}}}[_0x56d0('0x1')](_0x1e27db){if(!this[_0x56d0('0x37')][_0x56d0('0x3a')](_0x1e27db))throw new _0x5d5882('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x1e27db});return this[_0x56d0('0x37')][_0x56d0('0x30')](_0x1e27db);}[_0x56d0('0x28')](_0x14ca98){const _0x1913d0=this[_0x56d0('0x3c')][_0x56d0('0xc')][_0x56d0('0x30')](_0x3803cc),{connection:_0x1c13d7}=this[_0x56d0('0x3c')]['plugins'][_0x56d0('0x30')](_0x5860da),_0x3b2f56=new Set();for(const {comments:_0x3589bb}of _0x14ca98)for(const {userId:_0x425721}of _0x3589bb)_0x1913d0[_0x56d0('0x1f')](_0x425721)||_0x3b2f56[_0x56d0('0x23')](_0x425721);return Promise['all'](Array[_0x56d0('0xa')](_0x3b2f56,async _0x3e0370=>{const _0x4df2a1=await _0x3305ae['get'](_0x1c13d7,_0x3e0370);_0x1913d0[_0x56d0('0x1f')](_0x3e0370)||_0x1913d0[_0x56d0('0xe')](_0x4df2a1);}));}}async function S(_0x128014){if(_0x56d0('0x1b')!==_0x128014[_0x56d0('0x3d')])throw _0x128014;}function R(_0x5c3851){if((_0x532aee=_0x5c3851)[_0x56d0('0x2b')][_0x56d0('0x3b')]('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x532aee[_0x56d0('0x2b')]['startsWith'](_0x56d0('0xb'))||_0x532aee[_0x56d0('0x2b')][_0x56d0('0x3b')]('cloud-services-internal-error:\x20Request\x20timeout.'))return new Promise(()=>{});var _0x532aee;throw _0x5c3851;}function T(_0x210f94){return{'threadId':_0x210f94[_0x56d0('0x14')],'commentId':_0x210f94[_0x56d0('0x13')],'content':_0x210f94[_0x56d0('0x1a')],'createdAt':_0x210f94[_0x56d0('0xd')],'authorId':_0x210f94[_0x56d0('0x2a')],'attributes':_0x210f94[_0x56d0('0x2d')]};}a[_0x56d0('0x2')]=_0x179bbf;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1080=['listenTo','RealTimeCollaborativeComments','isThreadsLoadingPaused','pluginName','collaboration.channelId','connected','CommentsEditing','change:state','data','requires','destroy','plugins','_setUpService','config','editor','get','init','CommentsRepository'];(function(_0x3706a9,_0x108076){const _0xfc498f=function(_0x488e0d){while(--_0x488e0d){_0x3706a9['push'](_0x3706a9['shift']());}};_0xfc498f(++_0x108076);}(_0x1080,0x14b));const _0xfc49=function(_0x3706a9,_0x108076){_0x3706a9=_0x3706a9-0x0;let _0xfc498f=_0x1080[_0x3706a9];return _0xfc498f;};import{Plugin as _0x40a065}from'ckeditor5/src/core';import _0x462c13 from'./realtimecollaborativecomments/cloudservicescommentsadapter';import _0x492d67 from'./realtimecollaborativeediting';import _0x35d43c from'./realtimecollaborativeediting/websocketgateway';export default class m extends _0x40a065{static get[_0xfc49('0x2')](){return['Comments',_0x462c13,_0x492d67,_0x35d43c];}static get[_0xfc49('0xe')](){return _0xfc49('0xc');}[_0xfc49('0x9')](){const _0xfe6e85=this[_0xfc49('0x7')][_0xfc49('0x4')][_0xfc49('0x8')](_0x35d43c),_0x3062e0=this['editor'][_0xfc49('0x4')][_0xfc49('0x8')](_0xfc49('0x11')),_0x28189e=this['editor']['plugins'][_0xfc49('0x8')](_0x462c13);return this[_0xfc49('0x7')][_0xfc49('0x1')]['once']('ready',()=>{this[_0xfc49('0xb')](_0xfe6e85,_0xfc49('0x0'),(_0x291670,_0x5c7a5a,_0x552e89)=>{_0x3062e0[_0xfc49('0xd')]='connected'!==_0x552e89;});}),this[_0xfc49('0xb')](_0xfe6e85,_0xfc49('0x0'),(_0xbf06d4,_0x39dbcc,_0x3522a7)=>{this[_0xfc49('0x7')][_0xfc49('0x4')]['get'](_0xfc49('0xa'))['switchReadOnly'](_0xfc49('0x10')!==_0x3522a7);}),_0x28189e[_0xfc49('0x5')](this[_0xfc49('0x7')][_0xfc49('0x6')][_0xfc49('0x8')](_0xfc49('0xf')));}[_0xfc49('0x3')](){this[_0xfc49('0x7')]['plugins'][_0xfc49('0x8')](_0x462c13)['_terminateService'](this['editor'][_0xfc49('0x6')][_0xfc49('0x8')](_0xfc49('0xf'))),super[_0xfc49('0x3')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x33272d,PendingActions as _0x3f2dd5}from'ckeditor5/src/core';import{CKEditorError as _0x758fb9,version as _0x168b08,uid as _0x434afb}from'ckeditor5/src/utils';import{transformSets as _0x47f457,InsertOperation as _0x103ef0,MarkerOperation as _0x1c94e9,OperationFactory as _0x47c675,History as _0x234a1d}from'ckeditor5/src/engine';import{Notification as _0x5291f0}from'ckeditor5/src/ui';import{Users as _0x2791b8}from'ckeditor5-collaboration/src/collaboration-core';import _0xa21b8a from'./websocketgateway';import _0x1066f7 from'./sessions';import _0x31b919 from'./usermarkers';import _0x5b3151 from'@ckeditor/ckeditor5-operations-compressor/src/compressor';import _0x3ab398 from'@ckeditor/ckeditor-cloud-services-collaboration/src/collaborativeeditingservice/collaborativeeditingservice';import _0x1cc019 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';let G=0x1;export default class l extends _0x33272d{static get['requires'](){return[_0xa21b8a,_0x1066f7,_0x31b919,_0x3f2dd5,_0x2791b8,_0x5291f0];}static get['pluginName'](){return'RealTimeCollaborationClient';}get['cloudDocumentVersion'](){return this['_lastServerVersion']+this['_offset'];}get['_lastServerVersion'](){const _0x241b6c=this['serverHistory']['_operations'];return _0x241b6c['length']?_0x241b6c[_0x241b6c['length']-0x1]['baseVersion']+0x1-this['_offset']:0x0;}get['lastSyncVersion'](){const _0x445a71=this['serverHistory']['_operations'];let _0x2bed02=_0x445a71['length'];for(;_0x2bed02--;){const _0xcb2f93=_0x445a71[_0x2bed02];if(!this['_disconnectionOperations']['has'](_0xcb2f93))return _0xcb2f93['baseVersion']+0x1-this['_offset'];}return 0x0;}['init'](){const _0x21d1cc=this['editor'],_0x197a50=_0x21d1cc['plugins']['get'](_0x2791b8),_0x195b59=_0x21d1cc['plugins']['get'](_0xa21b8a);if(this['_offset']=0x0,this['sessionId']=null,this['serverHistory']=new _0x234a1d(),this['editor']['config']['define']('collaboration',{}),this['_channelId']=_0x21d1cc['config']['get']('collaboration.channelId'),!this['_channelId'])throw new _0x758fb9('collaboration-missing-channelid',this);this['listenTo'](_0x197a50,'getOperationAuthor',(_0x5ac9fa,_0x3e52ab)=>{const _0x10f341=_0x3e52ab[0x0];_0x10f341['_authorId']&&(_0x5ac9fa['return']=_0x197a50['getUser'](_0x10f341['_authorId']),_0x5ac9fa['stop']()),null===_0x10f341['_authorId']&&(_0x5ac9fa['return']=null,_0x5ac9fa['stop']());},{'priority':'high'});const _0x4e0a53=_0x21d1cc['config']['get']('cloudServices.bundleVersion')||_0x168b08;this['_service']=new l['CollaborativeEditingService'](_0x4e0a53,this['_channelId']),this['_document']=this['editor']['model']['document'],this['_compressor']=new _0x5b3151(),this['_bufferedOperations']=[],this['_knownOperations']=new WeakSet(),this['set']('_isPendingUpdate',!0x1),this['set']('_hasSynchronizationProblem',!0x1),this['_pendingAction']=null,this['_hasSelectionChanged']=!0x1,this['_sendBufferedOperationsDelayId']=null,this['_baseBufferDelay']=0x12c,this['_currentBufferDelay']=this['_baseBufferDelay'],this['_lastSyncedOperationId']=null,this['_disconnectionOperations']=new WeakSet(),this['_operationIdentifier']=new K(this['_disconnectionOperations']),this['listenTo'](_0x21d1cc['model']['document']['selection'],'change:range',(_0x1450ca,_0x59d5b7)=>{_0x59d5b7['directChange']&&this['_refreshUserSelectionMarkers']();}),this['listenTo'](_0x21d1cc['editing']['view'],'change:hasDomSelection',()=>{this['_refreshUserSelectionMarkers']();}),this['_initThrowingOnDataSet'](),_0x21d1cc['plugins']['get'](_0xa21b8a)['addToReconnectionStack'](this),_0x21d1cc['model']['on']('applyOperation',(_0x39bb23,_0x2db596)=>{const _0x28bd4a=_0x2db596[0x0];_0x28bd4a['isDocumentOperation']&&(this['_saveOperationInBuffer'](_0x28bd4a),this['_shouldSendUpdate']()&&this['_sendBufferedOperationsDelayed']());}),this['_setUpDataInit'](),this['editor']['bind']('isReadOnly')['to'](_0x195b59,'state',this,'_hasSynchronizationProblem',(_0xf680ce,_0x462176)=>'connected'!==_0xf680ce||_0x462176),this['set']('_isConnected',!0x1);}async['reconnect'](){const _0x4cb00c=this['editor']['plugins']['get'](_0x1066f7),_0x3ca10e=this['editor']['plugins']['get'](_0xa21b8a);try{this['_isPendingUpdate']=!0x0,_0x4cb00c['unregister'](this['_channelId']);const _0x2e9b0c=await this['_service']['reconnect'](_0x3ca10e['connection'],this['lastSyncVersion']);await this['_handleReconnectionResponse'](_0x2e9b0c)&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());const _0x4a18e8=await this['_service']['getConnectedSessions']();_0x4cb00c['register'](this['_channelId'],_0x4a18e8),this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}catch(_0x3bedca){if(function(_0x8c77ad){return'404'===_0x8c77ad['code'];}(_0x3bedca)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(function(_0x246c2c){return'409'===_0x246c2c['code'];}(_0x3bedca)){const _0x182fb2=(0x0,this['editor']['t'])('The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');this['_handleReconnectionError'](_0x182fb2);}else{if(!(_0x3bedca instanceof j))throw _0x3bedca;this['_handleReconnectionError']();}}}}['destroy'](){const _0x372d51=this['editor']['plugins']['get'](_0xa21b8a),_0x34b2b2=this['editor']['plugins']['get'](_0x1066f7);this['editor']['isReadOnly']=!0x0,_0x34b2b2['channelSessions']['has'](this['_channelId'])&&_0x34b2b2['unregister'](this['_channelId']),_0x372d51['removeFromReconnectionStack'](this),this['_disconnectService'](),super['destroy']();}async['_handleReconnectionResponse'](_0x29c2b5){if(this['sessionId']!==_0x29c2b5['sessionId']&&this['_lastSyncedOperationId']!==_0x29c2b5['lastOperationId'])throw new j();return this['sessionId']=_0x29c2b5['sessionId'],this['_handleServerResponse']([],{..._0x29c2b5,'wereChangesApplied':!0x1,'data':_0x29c2b5['data']},'reconnect');}async['_connectService'](_0x460221,_0x29a5d6=!0x1){const {connection:_0x20bc74}=this['editor']['plugins']['get'](_0xa21b8a);l['CollaborativeEditingService']['getConnectedSessions'](_0x20bc74,this['_channelId'])['then'](_0x1b2976=>this['_initSessionsHandling'](_0x1b2976))['catch'](_0x55c92f=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0x55c92f);}),this['listenTo'](this['_service'],'operationsReceived',this['_handleReceivedOperations']['bind'](this)),this['listenTo'](this['_service'],'error',(_0x3ab637,_0x1fb994)=>{this['_crash']('realtimecollaborationclient-initservice-internal-error',_0x1fb994);}),this['listenTo'](this['_service'],'disconnected',()=>{this['_isConnected']=!0x1;});const _0x2fde42=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x460221),_0x4c23ff=await this['_service']['connect'](_0x20bc74,this['_compressOperations'](_0x460221),_0x2fde42);if(this['sessionId']=_0x4c23ff['sessionId'],_0x4c23ff['wereChangesApplied']&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']()),_0x29a5d6){if(!_0x4c23ff['wereChangesApplied'])return void this['_handleReconnectionError']();this['_offset']=_0x4c23ff['offset'],this['serverHistory']['_operations']=[],await this['_handleServerResponse'](_0x460221,_0x4c23ff,'reconnection:\x20flushed\x20session');}else await this['_handleConnectionData'](_0x4c23ff,_0x460221);this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}['_handleSendingSelectionMarkers'](){const _0x541322=this['editor']['plugins']['get'](_0x1066f7),_0x510081=_0x541322['channelSessions']['get'](this['_channelId']);_0x510081&&_0x510081['length']>0x1?(this['_hasSelectionChanged']=!0x0,this['_sendBufferedOperationsDelayed']()):this['listenTo'](_0x541322,'sessionAdd:'+this['_channelId'],_0x4bb196=>{_0x541322['channelSessions']['get'](this['_channelId'])['length']>0x1&&(this['_hasSelectionChanged']=!0x0,this['_sendBufferedOperationsDelayed'](),_0x4bb196['off']());});}async['_handleReceivedOperations'](_0x1f1870,_0x388bea,_0x25afa0,_0x52491f){if(!this['_isPendingUpdate']&&this['_document']['version']==_0x388bea){const _0x243256=this['_decompressOperations'](_0x25afa0,_0x52491f);await this['_fetchMissingUsers'](_0x243256),this['_handleExternalOperations'](_0x243256,_0x388bea,_0x25afa0['lastOperationId'])||this['_crash']('realtimecollaborationclient-initservice-incorrect-server-operation');}}async['_connectAfterSessionHasBeenFlushed'](){this['_disconnectService']();const t=this['editor']['t'];let _0x5cff4b;try{_0x5cff4b=await this['_service']['getDocumentDetails']();}catch(_0x1c8d57){const _0x5ce961=t('The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');return void this['_handleReconnectionError'](_0x5ce961);}const _0x21eadb=_0x5cff4b['currentDocumentSession']||_0x5cff4b['lastDocumentSession'];if(this['_lastSyncedOperationId']===_0x21eadb['lastOperationId'])await this['_connectService'](this['editor']['model']['document']['history']['getOperations'](),!0x0);else{const _0x463c10=t('The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');this['_handleReconnectionError'](_0x463c10);}}['_disconnectService'](){this['_service']['disconnect'](),this['_bufferedOperations']=[],clearTimeout(this['_sendBufferedOperationsDelay']),this['stopListening'](this['_service']);}['_initSessionsHandling'](_0x44cae5){const _0x56ae95=this['editor']['plugins']['get'](_0x1066f7);this['listenTo'](_0x56ae95,'sessionAdd:'+this['_channelId'],(_0xf5cb11,{session:_0x332a47})=>{if(_0x332a47['id']===_0x56ae95['mySessionId']){_0xf5cb11['off']();const _0x428821=this['editor']['plugins']['has']('CommentsOnly')&&this['editor']['plugins']['get']('CommentsOnly');let _0x12e557=_0x332a47['permissions'];_0x428821&&_0x428821['isEnabled']&&(_0x12e557=_0x12e557['filter'](_0x42eee4=>'document:write'!==_0x42eee4)),this['editor']['plugins']['get']('Permissions')['setPermissions'](_0x12e557,this['_channelId']);}}),_0x56ae95['register'](this['_channelId'],_0x44cae5);}['_initThrowingOnDataSet'](){const _0x38ef71=this['editor']['data']['set'];this['editor']['data']['set']=(..._0x3f98b7)=>{if(!_0x3f98b7[_0x3f98b7['length']-0x1]['suppressErrorInCollaboration'])throw new _0x758fb9('realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration',this);_0x38ef71['apply'](this['editor']['data'],_0x3f98b7);};}['_setUpDataInit'](){this['editor']['data']['on']('init',(_0x5cc9ba,[_0x195381])=>{if(this['_document']['version'])throw new _0x758fb9('realtimecollaborationclient-init-document-already-initialized',this);_0x5cc9ba['stop'](),this['_setPendingAction']();const _0x22386e=this['_getOperationsFromInitData'](_0x195381);_0x5cc9ba['return']=this['_connectService'](_0x22386e)['then'](()=>{this['editor']['data']['fire']('ready');})['catch'](_0x497dd5=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0x497dd5))['finally'](()=>this['_clearPendingAction']());},{'priority':'high'});}['_fetchMissingUsers'](_0x590e39){const _0x35fecf=this['editor']['plugins']['get'](_0x2791b8),{connection:_0x3b92dd}=this['editor']['plugins']['get'](_0xa21b8a),_0x21467c=new Set();for(const _0x1902ee of _0x590e39)_0x4ab186(_0x1902ee['_authorId']);return Promise['all'](Array['from'](_0x21467c,async _0x4e6c42=>{const _0x361950=await _0x1cc019['get'](_0x3b92dd,_0x4e6c42);_0x35fecf['getUser'](_0x4e6c42)||_0x35fecf['addUser'](_0x361950);}));function _0x4ab186(_0x136c20){_0x136c20&&!_0x35fecf['getUser'](_0x136c20)&&_0x21467c['add'](_0x136c20);}}['_getOperationsFromInitData'](_0x52aadd){const _0x1c8e44=this['editor']['model'],_0x2ed246=[];let _0x13e721=0x0;const _0x2c3b0a='string'==typeof _0x52aadd?{'main':_0x52aadd}:_0x52aadd;for(const _0x5df278 of Object['keys'](_0x2c3b0a)){if(!this['_document']['roots']['has'](_0x5df278))throw new _0x758fb9('realtimecollaborationclient-init-non-existent-root',this);const _0x408f4f=this['editor']['data']['parse'](_0x2c3b0a[_0x5df278]),_0x56ba6f=this['_document']['getRoot'](_0x5df278),_0x327430=new _0x103ef0(_0x1c8e44['createPositionAt'](_0x56ba6f,0x0),_0x408f4f,_0x13e721++);_0x2ed246['push'](_0x327430);for(const [_0x429fcd,_0x584148]of _0x408f4f['markers']){const _0x468ecb=_0x1c8e44['createRange'](_0x1c8e44['createPositionFromPath'](_0x56ba6f,_0x584148['start']['path']['slice']()),_0x1c8e44['createPositionFromPath'](_0x56ba6f,_0x584148['end']['path']['slice']())),_0x52fa2d=new _0x1c94e9(_0x429fcd,null,_0x468ecb,_0x1c8e44['markers'],!0x0,_0x13e721++);_0x2ed246['push'](_0x52fa2d);}}return _0x2ed246;}async['_handleConnectionData'](_0x2b793e,_0x10c022){let _0x2ebe63;this['_offset']=_0x2b793e['offset'];const _0x7d628b=_0x2b793e['wereChangesApplied']&&!_0x2b793e['initData'];if(_0x7d628b)_0x2ebe63=_0x10c022;else{if(_0x2b793e['initData']){const _0x210add=this['_getOperationsFromInitData'](_0x2b793e['initData']);this['_document']['version']=-_0x210add['length'],_0x210add['forEach'](_0x124dd9=>{_0x124dd9['baseVersion']-=_0x210add['length'];}),this['_applyOperationsSet'](_0x210add,!0x0),this['_updateServerHistory'](_0x210add);}this['_document']['version']=_0x2b793e['data']['baseVersion'],_0x2ebe63=this['_decompressOperations'](_0x2b793e['data'],_0x2b793e['metadata']),await this['_fetchMissingUsers'](_0x2ebe63);}_0x2b793e['lastOperationId']&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x2ebe63,_0x2b793e['lastOperationId']),this['_lastSyncedOperationId']=_0x2b793e['lastOperationId']),this['_applyOperationsSet'](_0x2ebe63,_0x7d628b),this['_updateServerHistory'](_0x2ebe63);}['_crash'](_0x314e67,_0x293292){throw this['_isPendingUpdate']=!0x0,_0x293292&&console['error'](_0x293292),new _0x758fb9(_0x314e67,this['editor']);}['_saveOperationInBuffer'](_0x3cdbf9){this['_knownOperations']['has'](_0x3cdbf9)||(this['_knownOperations']['add'](_0x3cdbf9),this['_bufferedOperations']['push'](_0x3cdbf9),this['_pendingAction']||'marker'==_0x3cdbf9['type']&&!_0x3cdbf9['affectsData']||this['_setPendingAction']());}['_sendBufferedOperationsDelayed'](_0x2f8ceb=!0x1){!_0x2f8ceb&&this['_isPendingUpdate']||(this['_isPendingUpdate']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x4e7789=>{_0x4e7789&&(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1);})['catch'](_0xb06be1=>{if(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1,!function(_0x376319){return _0x376319['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x376319['message']['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x376319['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}(_0xb06be1))throw _0xb06be1;});},this['_currentBufferDelay']));}async['_sendBufferedOperations'](){const _0x5ca659=this['editor']['plugins']['get'](_0x31b919);if(this['_shouldSendSelectionUpdate']()&&(_0x5ca659['createUserMarkerOperations'](),this['_hasSelectionChanged']=!0x1),!this['_shouldSendUpdate']())return!0x0;const _0x28abf9=[...this['_bufferedOperations']];for(const _0x3f9e1b of _0x28abf9)_0x3f9e1b['wasUndone']=this['_document']['history']['isUndoneOperation'](_0x3f9e1b);const _0x35c9d3=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x28abf9),_0x314793=G++,_0x3c05ed=this['_compressOperations'](_0x28abf9),_0x5ad7f3=await this['_service']['sendOperations'](_0x3c05ed,_0x3c05ed['baseVersion'],_0x35c9d3);try{return await this['_handleServerResponse'](_0x28abf9,_0x5ad7f3,_0x314793);}catch(_0x137a1d){return this['_crash']('realtimecollaborationclient-sendbufferedoperations',_0x137a1d);}}async['_handleServerResponse'](_0x3606fc,_0x53033e,_0x3c9c20){if(_0x53033e['error'])throw _0x53033e['error'];let _0xa7faf5=!0x1;if(_0x53033e['wereChangesApplied'])this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x2d1e76=>!_0x3606fc['includes'](_0x2d1e76)),this['_lastSyncedOperationId']=_0x53033e['lastOperationId'],this['_updateServerHistory'](_0x3606fc),_0xa7faf5=!0x0,this['_currentBufferDelay']=this['_baseBufferDelay'];else{const _0x1af979=this['_decompressOperations'](_0x53033e['data'],_0x53033e['metadata'])['filter'](_0x3b8e9d=>_0x3b8e9d['baseVersion']>=this['_lastServerVersion']);await this['_fetchMissingUsers'](_0x1af979),_0xa7faf5=this['_handleExternalOperations'](_0x1af979,_0x53033e['version'],_0x53033e['lastOperationId']),this['_currentBufferDelay']=Math['round'](this['_currentBufferDelay']/0x2);}return _0xa7faf5?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this['_crash']('realtimecollaborationclient-handleserverresponse');}['_handleExternalOperations'](_0x49ae3e,_0x39d524,_0x4f8091){try{const _0xdf0116={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x130c25,operationsB:_0x4c15f3,originalOperations:_0x3e2c7a}=_0x47f457(_0x49ae3e,this['_bufferedOperations'],_0xdf0116);J(_0x130c25,this['_document']['version']),J(_0x4c15f3,_0x39d524);for(const _0x297ec4 of _0x130c25){const _0x3127c8=_0x3e2c7a['get'](_0x297ec4);_0x297ec4['_authorId']=_0x3127c8?_0x3127c8['_authorId']:null;}this['_lastSyncedOperationId']=_0x4f8091,this['_operationIdentifier']['setIdForTheLastOperation'](_0x49ae3e,_0x4f8091),this['_bufferedOperations']=[..._0x4c15f3],this['_applyOperationsSet'](_0x130c25),this['_updateServerHistory'](_0x49ae3e);}catch(_0x1f9a55){return console['error'](_0x1f9a55),!0x1;}return!0x0;}['_applyOperationsSet'](_0x39ae9b,_0x40b6bf=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0x320376=>{for(const _0x5c7391 of _0x39ae9b)this['_knownOperations']['add'](_0x5c7391),_0x320376['batch']['addOperation'](_0x5c7391),this['editor']['model']['applyOperation'](_0x5c7391);});}['_updateServerHistory'](_0x32aba3){_0x32aba3['forEach'](_0x366029=>{const _0x66962d=_0x366029['clone']();_0x66962d['_authorId']=_0x366029['_authorId'],_0x66962d['baseVersion']+=this['_offset'],_0x366029['isDisconnection']&&this['_disconnectionOperations']['add'](_0x66962d),this['serverHistory']['addOperation'](_0x66962d);});}['_handleReconnectionError'](_0x170385){const _0x35ef11=this['editor']['plugins']['get']('Notification'),t=this['editor']['t'];_0x170385||(_0x170385=t('The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.')),_0x35ef11['showWarning'](_0x170385,{'title':t('Synchronization\x20issue'),'namespace':'real-time-collaboration'}),this['_hasSynchronizationProblem']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_bufferedOperations']=[],this['editor']['plugins']['get'](_0xa21b8a)['destroy']();}['_setPendingAction'](){if(!this['_pendingAction']){const {t:t}=this['editor']['locale'];this['_pendingAction']=this['editor']['plugins']['get'](_0x3f2dd5)['add'](t({'string':'Sending\x20data\x20to\x20the\x20server.','id':'PENDING_ACTION_SENDING_DATA'}));}}['_clearPendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get'](_0x3f2dd5)['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_compressOperations'](_0x3c2dd0){const _0x2b4a95=_0x3c2dd0['map'](_0x9e7086=>_0x9e7086['toJSON']());return this['_compressor']['compress'](_0x2b4a95);}['_decompressOperations'](_0x15ea53,_0x9bd86a){const _0x4193f6=this['_compressor']['decompress'](_0x15ea53)['map']((_0x2646c4,_0x3be00d)=>{const _0x45d138=_0x47c675['fromJSON'](_0x2646c4,this['_document']);return _0x45d138['wasUndone']=_0x2646c4['wasUndone'],'cs:removeUser'===_0x9bd86a[_0x3be00d]['type']&&(_0x45d138['isDisconnection']=!0x0),_0x45d138;});return this['_assignOperationAuthors'](_0x4193f6,_0x9bd86a),_0x4193f6;}['_assignOperationAuthors'](_0x4bbf7a,_0x4dff9f){for(let _0x23abd5=0x0;_0x23abd5<_0x4bbf7a['length'];_0x23abd5++)'init'!=_0x4dff9f[_0x23abd5]['type']?_0x4bbf7a[_0x23abd5]['_authorId']=_0x4dff9f[_0x23abd5]['userId']:_0x4bbf7a[_0x23abd5]['_authorId']=null;}['_refreshUserSelectionMarkers'](){this['_hasSelectionChanged']=!0x0,this['_shouldSendSelectionUpdate']()&&this['_sendBufferedOperationsDelayed']();}['_shouldSendSelectionUpdate'](){const _0x2f9a5c=this['editor']['plugins']['get'](_0x1066f7)['channelSessions']['get'](this['_channelId']);return!this['editor']['isReadOnly']&&_0x2f9a5c&&_0x2f9a5c['length']>0x1&&this['_hasSelectionChanged'];}['_shouldSendUpdate'](){return this['_bufferedOperations']['length']>0x0||this['_shouldSendSelectionUpdate']();}}class j extends Error{}function J(_0x23acc7,_0x15e5a1){for(const _0xa589f of _0x23acc7)_0xa589f['baseVersion']=_0x15e5a1++;}l['CollaborativeEditingService']=_0x3ab398;class K{constructor(_0xd4bc43){this['_ignoredOperations']=_0xd4bc43,this['_operationToId']=new WeakMap();}['getIdOfTheLastOperation'](_0x44531f){let _0x28752a=_0x44531f['length'];for(;_0x28752a--;){const _0x4db8e7=_0x44531f[_0x28752a];if(!this['_ignoredOperations']['has'](_0x4db8e7)){if(!this['_operationToId']['has'](_0x4db8e7)){const _0x5d9a88=_0x434afb()['slice'](0x1,0x12);this['_operationToId']['set'](_0x4db8e7,_0x5d9a88);}return this['_operationToId']['get'](_0x4db8e7);}}}['setIdForTheLastOperation'](_0x7748f9,_0x3c5e42){if(!_0x3c5e42)return;let _0x32a415=_0x7748f9['length'];for(;_0x32a415--;){const _0xc67b00=_0x7748f9[_0x32a415];this['_ignoredOperations']['has'](_0xc67b00)||this['_operationToId']['set'](_0xc67b00,_0x3c5e42);}}}
|
|
23
|
+
const _0x3eba=['enableReadOnlyMode','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','enqueueChange','getUser','_handleInitialConnectionData','history','_isInit','editing','pluginName','_ignoredOperations','disconnected','init','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_isDisconnection','removeFromReconnectionStack','_channelId','sessionAdd:','requires','data','_initThrowingOnDataSet','mySessionId','_sendBufferedOperationsDelayId','connect','_lastServerVersion','createPositionFromPath','_sendBufferedOperationsDelayed','reconnection:\x20flushed\x20session','userId','_lastSyncedOperationId','createPositionAt','showWarning','destroy','_hasSynchronizationProblem','getRoot','baseVersion','rtc-destroyed','rtc-offline','lastDocumentSession','CommentsOnly','offset','set','locale','has','_disconnectService','reset','config','_compressOperations','_currentBufferDelay','_sendBufferedOperations','affectsData','map','createdAt','view','fromJSON','_hasSelectionChanged','_compressor','_assignOperationsMetaData','suppressErrorInCollaboration','cs:removeUser','_updateServerHistory','_shouldSendSelectionUpdate','sessionId','code','collaboration','_isEditingAllowed','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_getOperationsFromInitData','_setUpDataInit','_authorId','connected','lastOperationId','isDocumentOperation','sessionCreatedAt','PENDING_ACTION_SENDING_DATA','_operationIdentifier','_fetchMissingUsers','_initSessionsHandling','addToReconnectionStack','reconnect','_connectService','getOperationAuthor','editor','message','setIdForTheLastOperation','_operationToId','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_crash','channelSessions','from','_handleReconnectionResponse','marker','getIdOfTheLastOperation','setPermissions','length','disableReadOnlyMode','wasUndone','cloudServices.bundleVersion','_isPendingUpdate','unregister','getOperations','document:write','get','path','_baseBufferDelay','define','applyOperation','compress','add','high','_shouldSendUpdate','404','isEnabled','string','bind','stop','toJSON','_handleExternalOperations','_pendingAction','_applyOperationsSet','change:hasDomSelection','batch','realtimecollaborationclient-initservice-incorrect-server-operation','currentDocumentSession','push','_bufferedOperations','start','serverHistory','clone','wereChangesApplied','realtimecollaborationclient-init-non-existent-root','catch','metadata','error','_refreshUserSelectionMarkers','selection','plugins','version','createUserMarkerOperations','lastSyncVersion','ready','_clearPendingAction','remove','operationsReceived','lastOperationAcceptedAt','_isConnected','_handleSendingSelectionMarkers','document','initData','sendOperations','getDocumentDetails','realtimecollaborationclient-init-connection-failed','cloud-services-internal-error:\x20Request\x20timeout.','disconnect','_connectAfterSessionHasBeenFlushed','connection','round','_setPendingAction','_decompressOperations','markers','apply','realtimecollaborationclient-handleserverresponse','_knownOperations','_document','off','roots','_offset','_sendBufferedOperationsDelay','addOperation','decompress','forEach','then','_disconnectionOperations','startsWith','parse','cloud-services-internal-error:\x20Not\x20connected.','slice','isReadOnly','_service','includes','realtimecollaborationclient-sendbufferedoperations','_handleServerResponse','model','listenTo','type','_handleReconnectionError','getConnectedSessions','collaboration-missing-channelid','return','_handleReceivedOperations','CollaborativeEditingService','keys','filter','addUser','realtimecollaborationclient-initservice-internal-error'];(function(_0x163d6a,_0x3ebae1){const _0x2d3008=function(_0x13333c){while(--_0x13333c){_0x163d6a['push'](_0x163d6a['shift']());}};_0x2d3008(++_0x3ebae1);}(_0x3eba,0xc1));const _0x2d30=function(_0x163d6a,_0x3ebae1){_0x163d6a=_0x163d6a-0x0;let _0x2d3008=_0x3eba[_0x163d6a];return _0x2d3008;};import{Plugin as _0x3aa819,PendingActions as _0x164be4}from'ckeditor5/src/core';import{CKEditorError as _0x536333,version as _0x265fdc,uid as _0x397a33}from'ckeditor5/src/utils';import{transformSets as _0x1e7ecc,InsertOperation as _0x173898,MarkerOperation as _0x576ac8,OperationFactory as _0x9cf77c,History as _0x5268ab}from'ckeditor5/src/engine';import{Notification as _0x50375d}from'ckeditor5/src/ui';import{Users as _0x42fea8}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f8da5 from'./websocketgateway';import _0x4e5a25 from'./sessions';import _0x30afe9 from'./usermarkers';import{getTranslation as _0x1fd8b8}from'../common-translations';import _0x3e1848 from'@ckeditor/ckeditor5-operations-compressor/src/compressor';import _0x575cd8 from'@ckeditor/ckeditor-cloud-services-collaboration/src/collaborativeeditingservice/collaborativeeditingservice';import _0x1d24e4 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';let Q=0x1;export default class l extends _0x3aa819{static get[_0x2d30('0x15')](){return[_0x3f8da5,_0x4e5a25,_0x30afe9,_0x164be4,_0x42fea8,_0x50375d];}static get[_0x2d30('0xc')](){return'RealTimeCollaborationClient';}get['cloudDocumentVersion'](){return this[_0x2d30('0x1b')]+this[_0x2d30('0xaa')];}get[_0x2d30('0x1b')](){return this[_0x2d30('0x83')][_0x2d30('0x8d')]-this['_offset'];}get[_0x2d30('0x8f')](){const _0x896997=this['serverHistory'][_0x2d30('0x68')]();for(let _0x4dd320=_0x896997['length']-0x1;_0x4dd320>=0x0;_0x4dd320--){const _0x5e9a8f=_0x896997[_0x4dd320];if(!this[_0x2d30('0xb0')][_0x2d30('0x2e')](_0x5e9a8f))return _0x5e9a8f[_0x2d30('0x26')]+0x1-this[_0x2d30('0xaa')];}return 0x0;}[_0x2d30('0xf')](){const _0x33dc4d=this[_0x2d30('0x56')],_0x1a33d1=_0x33dc4d['plugins'][_0x2d30('0x6a')](_0x42fea8),_0x274c8b=_0x33dc4d['plugins'][_0x2d30('0x6a')](_0x3f8da5);if(this[_0x2d30('0xaa')]=0x0,this[_0x2d30('0x41')]=null,this[_0x2d30('0x83')]=new _0x5268ab(),this['editor']['config'][_0x2d30('0x6d')](_0x2d30('0x43'),{}),this[_0x2d30('0x13')]=_0x33dc4d[_0x2d30('0x31')][_0x2d30('0x6a')]('collaboration.channelId'),!this['_channelId'])throw new _0x536333(_0x2d30('0xbf'),this);this['listenTo'](_0x1a33d1,_0x2d30('0x55'),(_0x18e6ba,_0x2dd9aa)=>{const _0x95a68=_0x2dd9aa[0x0];_0x95a68['_authorId']&&(_0x18e6ba[_0x2d30('0xc0')]=_0x1a33d1[_0x2d30('0x7')](_0x95a68[_0x2d30('0x49')]),_0x18e6ba[_0x2d30('0x77')]()),null===_0x95a68[_0x2d30('0x49')]&&(_0x18e6ba['return']=null,_0x18e6ba[_0x2d30('0x77')]());},{'priority':_0x2d30('0x71')});const _0x5dd9dc=_0x33dc4d[_0x2d30('0x31')]['get'](_0x2d30('0x65'))||_0x265fdc;this[_0x2d30('0xb6')]=new l[(_0x2d30('0xc2'))](_0x5dd9dc,this[_0x2d30('0x13')]),this['_document']=this[_0x2d30('0x56')]['model'][_0x2d30('0x97')],this[_0x2d30('0x3b')]=new _0x3e1848(),this[_0x2d30('0x81')]=[],this[_0x2d30('0xa6')]=new WeakSet(),this[_0x2d30('0x2c')]('_isPendingUpdate',!0x1),this['set'](_0x2d30('0x24'),!0x1),this[_0x2d30('0x7a')]=null,this[_0x2d30('0x3a')]=!0x1,this[_0x2d30('0x19')]=null,this[_0x2d30('0x6c')]=0x12c,this[_0x2d30('0x33')]=this[_0x2d30('0x6c')],this[_0x2d30('0x20')]=null,this[_0x2d30('0xb0')]=new WeakSet(),this[_0x2d30('0x4f')]=new Z(this[_0x2d30('0xb0')]),this[_0x2d30('0xbb')](_0x33dc4d[_0x2d30('0xba')][_0x2d30('0x97')][_0x2d30('0x8b')],'change:range',(_0x21f34b,_0x33c7d7)=>{_0x33c7d7['directChange']&&this[_0x2d30('0x8a')]();}),this[_0x2d30('0xbb')](_0x33dc4d[_0x2d30('0xb')][_0x2d30('0x38')],_0x2d30('0x7c'),()=>{this[_0x2d30('0x8a')]();}),this[_0x2d30('0x17')](),_0x33dc4d[_0x2d30('0x8c')][_0x2d30('0x6a')](_0x3f8da5)[_0x2d30('0x52')](this),_0x33dc4d['model']['on'](_0x2d30('0x6e'),(_0x2f6e4e,_0x5c910a)=>{const _0x5b03c7=_0x5c910a[0x0];_0x5b03c7[_0x2d30('0x4c')]&&(this['_saveOperationInBuffer'](_0x5b03c7),this[_0x2d30('0x72')]()&&this[_0x2d30('0x1d')]());}),this[_0x2d30('0x48')](),this[_0x2d30('0x76')](_0x2d30('0x44'))['to'](_0x274c8b,'state',this,'_hasSynchronizationProblem',(_0x5d6a9d,_0xd6023a)=>_0x2d30('0x4a')===_0x5d6a9d&&!_0xd6023a),this['on']('change:_isEditingAllowed',()=>{this[_0x2d30('0x44')]?_0x33dc4d[_0x2d30('0x63')](_0x2d30('0x28')):_0x33dc4d[_0x2d30('0x3')]('rtc-offline');}),this[_0x2d30('0x44')]?_0x33dc4d[_0x2d30('0x63')](_0x2d30('0x28')):_0x33dc4d[_0x2d30('0x3')](_0x2d30('0x28')),this[_0x2d30('0x2c')](_0x2d30('0x95'),!0x1);}async[_0x2d30('0x53')](){const _0x480259=this[_0x2d30('0x56')][_0x2d30('0x8c')][_0x2d30('0x6a')](_0x4e5a25),_0x5a5363=this['editor'][_0x2d30('0x8c')]['get'](_0x3f8da5);try{this['_isPendingUpdate']=!0x0,_0x480259[_0x2d30('0x67')](this['_channelId']);const _0x39450c=await this[_0x2d30('0xb6')][_0x2d30('0x53')](_0x5a5363[_0x2d30('0x9f')],this[_0x2d30('0x8f')]);await this[_0x2d30('0x5e')](_0x39450c)&&(this[_0x2d30('0x66')]=!0x1,this[_0x2d30('0x91')]());const _0x192036=await this[_0x2d30('0xb6')][_0x2d30('0xbe')]();_0x480259['register'](this[_0x2d30('0x13')],_0x192036),this[_0x2d30('0x96')](),this[_0x2d30('0x95')]=!0x0;}catch(_0x4d8bb6){if(function(_0x462f48){return _0x2d30('0x73')===_0x462f48['code'];}(_0x4d8bb6)&&this[_0x2d30('0x41')])await this[_0x2d30('0x9e')]();else{if(function(_0xc160ae){return'409'===_0xc160ae[_0x2d30('0x42')];}(_0x4d8bb6)){const _0x350b81=_0x1fd8b8(this[_0x2d30('0x56')][_0x2d30('0x2d')],_0x2d30('0x46'));this[_0x2d30('0xbd')](_0x350b81);}else{if(!(_0x4d8bb6 instanceof X))throw _0x4d8bb6;this[_0x2d30('0xbd')]();}}}}['destroy'](){const _0x18399b=this[_0x2d30('0x56')][_0x2d30('0x8c')][_0x2d30('0x6a')](_0x3f8da5),_0x5356dc=this['editor'][_0x2d30('0x8c')][_0x2d30('0x6a')](_0x4e5a25);this['editor'][_0x2d30('0x3')](_0x2d30('0x27')),_0x5356dc[_0x2d30('0x5c')][_0x2d30('0x2e')](this[_0x2d30('0x13')])&&_0x5356dc[_0x2d30('0x67')](this['_channelId']),_0x18399b[_0x2d30('0x12')](this),this[_0x2d30('0x2f')](),super[_0x2d30('0x23')]();}async[_0x2d30('0x5e')](_0x371e26){if(this[_0x2d30('0x41')]!==_0x371e26[_0x2d30('0x41')]&&this[_0x2d30('0x20')]!==_0x371e26[_0x2d30('0x4b')])throw new X();return this[_0x2d30('0x41')]=_0x371e26[_0x2d30('0x41')],this[_0x2d30('0xb9')]([],{..._0x371e26,'wereChangesApplied':!0x1,'data':_0x371e26[_0x2d30('0x16')]},_0x2d30('0x53'));}async[_0x2d30('0x54')](_0x28673b,_0x32d796=!0x1){const {connection:_0xfbbc06}=this[_0x2d30('0x56')][_0x2d30('0x8c')][_0x2d30('0x6a')](_0x3f8da5);l[_0x2d30('0xc2')]['getConnectedSessions'](_0xfbbc06,this[_0x2d30('0x13')])[_0x2d30('0xaf')](_0xb76580=>this[_0x2d30('0x51')](_0xb76580))[_0x2d30('0x87')](_0x2acc3c=>{this[_0x2d30('0x5b')]('realtimecollaborationclient-init-session-connection-error',_0x2acc3c);}),this[_0x2d30('0xbb')](this['_service'],_0x2d30('0x93'),this['_handleReceivedOperations']['bind'](this)),this[_0x2d30('0xbb')](this[_0x2d30('0xb6')],_0x2d30('0x89'),(_0x483ea0,_0x4a8f87)=>{this[_0x2d30('0x5b')](_0x2d30('0x2'),_0x4a8f87);}),this[_0x2d30('0xbb')](this[_0x2d30('0xb6')],_0x2d30('0xe'),()=>{this[_0x2d30('0x95')]=!0x1;});const _0x2f919e=this[_0x2d30('0x4f')][_0x2d30('0x60')](_0x28673b),_0x3a8150=await this[_0x2d30('0xb6')][_0x2d30('0x1a')](_0xfbbc06,this[_0x2d30('0x32')](_0x28673b),_0x2f919e);if(this[_0x2d30('0x41')]=_0x3a8150['sessionId'],_0x3a8150[_0x2d30('0x85')]&&(this[_0x2d30('0x66')]=!0x1,this[_0x2d30('0x91')]()),_0x32d796){if(!_0x3a8150[_0x2d30('0x85')])return void this['_handleReconnectionError']();this[_0x2d30('0x83')][_0x2d30('0x30')](),this['_offset']=_0x3a8150[_0x2d30('0x2b')],this[_0x2d30('0x83')]['version']=this[_0x2d30('0xaa')],await this[_0x2d30('0xb9')](_0x28673b,_0x3a8150,_0x2d30('0x1e'));}else await this[_0x2d30('0x8')](_0x3a8150,_0x28673b);this['_handleSendingSelectionMarkers'](),this[_0x2d30('0x95')]=!0x0;}[_0x2d30('0x96')](){const _0x3bed7d=this[_0x2d30('0x56')][_0x2d30('0x8c')]['get'](_0x4e5a25),_0x2c100d=_0x3bed7d['channelSessions'][_0x2d30('0x6a')](this[_0x2d30('0x13')]);_0x2c100d&&_0x2c100d[_0x2d30('0x62')]>0x1?(this['_hasSelectionChanged']=!0x0,this[_0x2d30('0x1d')]()):this[_0x2d30('0xbb')](_0x3bed7d,_0x2d30('0x14')+this[_0x2d30('0x13')],_0x58f716=>{_0x3bed7d[_0x2d30('0x5c')][_0x2d30('0x6a')](this[_0x2d30('0x13')])[_0x2d30('0x62')]>0x1&&(this[_0x2d30('0x3a')]=!0x0,this[_0x2d30('0x1d')](),_0x58f716[_0x2d30('0xa8')]());});}async[_0x2d30('0xc1')](_0x2c4cae,_0x3c50fc,_0x35016a,_0x18fd0a){if(!this[_0x2d30('0x66')]&&this[_0x2d30('0xa7')][_0x2d30('0x8d')]==_0x3c50fc){const _0x54b1d9=this[_0x2d30('0xa2')](_0x35016a,_0x18fd0a);await this[_0x2d30('0x50')](_0x54b1d9),this[_0x2d30('0x79')](_0x54b1d9,_0x3c50fc,_0x35016a[_0x2d30('0x4b')])||this['_crash'](_0x2d30('0x7e'));}}async[_0x2d30('0x9e')](){this['_disconnectService']();const {locale:_0x5c9322}=this['editor'];let _0x350c5f;try{_0x350c5f=await this[_0x2d30('0xb6')][_0x2d30('0x9a')]();}catch(_0x4a5c85){const _0x2cf9ca=_0x1fd8b8(_0x5c9322,_0x2d30('0x5a'));return void this[_0x2d30('0xbd')](_0x2cf9ca);}const _0xf97843=_0x350c5f[_0x2d30('0x7f')]||_0x350c5f[_0x2d30('0x29')];if(this[_0x2d30('0x20')]===_0xf97843['lastOperationId'])await this[_0x2d30('0x54')](this[_0x2d30('0x56')][_0x2d30('0xba')][_0x2d30('0x97')]['history']['getOperations'](),!0x0);else{const _0x3f59e2=_0x1fd8b8(_0x5c9322,_0x2d30('0x10'));this['_handleReconnectionError'](_0x3f59e2);}}[_0x2d30('0x2f')](){this[_0x2d30('0xb6')][_0x2d30('0x9d')](),this[_0x2d30('0x81')]=[],clearTimeout(this[_0x2d30('0xab')]),this['stopListening'](this[_0x2d30('0xb6')]);}['_initSessionsHandling'](_0x5b42c6){const _0x1b9997=this['editor']['plugins'][_0x2d30('0x6a')](_0x4e5a25);this[_0x2d30('0xbb')](_0x1b9997,_0x2d30('0x14')+this[_0x2d30('0x13')],(_0x2e268b,{session:_0x98f361})=>{if(_0x98f361['id']===_0x1b9997[_0x2d30('0x18')]){_0x2e268b[_0x2d30('0xa8')]();const _0x11f206=this[_0x2d30('0x56')][_0x2d30('0x8c')][_0x2d30('0x2e')](_0x2d30('0x2a'))&&this['editor'][_0x2d30('0x8c')][_0x2d30('0x6a')](_0x2d30('0x2a'));let _0x3a45fd=_0x98f361['permissions'];_0x11f206&&_0x11f206[_0x2d30('0x74')]&&(_0x3a45fd=_0x3a45fd[_0x2d30('0x0')](_0x3c6b90=>_0x2d30('0x69')!==_0x3c6b90)),this['editor'][_0x2d30('0x8c')]['get']('Permissions')[_0x2d30('0x61')](_0x3a45fd,this[_0x2d30('0x13')]);}}),_0x1b9997['register'](this[_0x2d30('0x13')],_0x5b42c6);}['_initThrowingOnDataSet'](){const _0x246471=this[_0x2d30('0x56')]['data'][_0x2d30('0x2c')];this[_0x2d30('0x56')][_0x2d30('0x16')][_0x2d30('0x2c')]=(..._0x3db0a0)=>{if(!_0x3db0a0[_0x3db0a0['length']-0x1][_0x2d30('0x3d')])throw new _0x536333(_0x2d30('0x45'),this);_0x246471[_0x2d30('0xa4')](this[_0x2d30('0x56')][_0x2d30('0x16')],_0x3db0a0);};}[_0x2d30('0x48')](){this[_0x2d30('0x56')][_0x2d30('0x16')]['on'](_0x2d30('0xf'),(_0x20f476,[_0x265772])=>{if(this['_document']['version'])throw new _0x536333('realtimecollaborationclient-init-document-already-initialized',this);_0x20f476['stop'](),this[_0x2d30('0xa1')]();const _0x43e92c=this[_0x2d30('0x47')](_0x265772);_0x20f476[_0x2d30('0xc0')]=this[_0x2d30('0x54')](_0x43e92c)[_0x2d30('0xaf')](()=>{this[_0x2d30('0x56')][_0x2d30('0x16')]['fire'](_0x2d30('0x90'));})[_0x2d30('0x87')](_0x5f3262=>this[_0x2d30('0x5b')](_0x2d30('0x9b'),_0x5f3262))['finally'](()=>this[_0x2d30('0x91')]());},{'priority':'high'});}[_0x2d30('0x50')](_0x86b142){const _0x77fd7d=this['editor']['plugins'][_0x2d30('0x6a')](_0x42fea8),{connection:_0xcf6477}=this['editor'][_0x2d30('0x8c')][_0x2d30('0x6a')](_0x3f8da5),_0x527216=new Set();for(const _0xa4e2c4 of _0x86b142)_0x4de2f3(_0xa4e2c4[_0x2d30('0x49')]);return Promise['all'](Array[_0x2d30('0x5d')](_0x527216,async _0x2bd8bc=>{const _0x1a1946=await _0x1d24e4['get'](_0xcf6477,_0x2bd8bc);_0x77fd7d[_0x2d30('0x7')](_0x2bd8bc)||_0x77fd7d[_0x2d30('0x1')](_0x1a1946);}));function _0x4de2f3(_0x293d8c){_0x293d8c&&!_0x77fd7d[_0x2d30('0x7')](_0x293d8c)&&_0x527216[_0x2d30('0x70')](_0x293d8c);}}[_0x2d30('0x47')](_0x2d21a0){const _0x40d4ec=this['editor'][_0x2d30('0xba')],_0x582ffc=[];let _0x1877ad=0x0;const _0x1df606=_0x2d30('0x75')==typeof _0x2d21a0?{'main':_0x2d21a0}:_0x2d21a0;for(const _0x395c07 of Object[_0x2d30('0xc3')](_0x1df606)){if(!this['_document'][_0x2d30('0xa9')][_0x2d30('0x2e')](_0x395c07))throw new _0x536333(_0x2d30('0x86'),this);const _0x261ccc=this[_0x2d30('0x56')][_0x2d30('0x16')][_0x2d30('0xb2')](_0x1df606[_0x395c07]),_0x1c1c8e=this[_0x2d30('0xa7')][_0x2d30('0x25')](_0x395c07),_0x5522b6=new _0x173898(_0x40d4ec[_0x2d30('0x21')](_0x1c1c8e,0x0),_0x261ccc,_0x1877ad++);_0x582ffc['push'](_0x5522b6);for(const [_0x245d9e,_0xa5be8b]of _0x261ccc['markers']){const _0x598bdb=_0x40d4ec['createRange'](_0x40d4ec[_0x2d30('0x1c')](_0x1c1c8e,_0xa5be8b[_0x2d30('0x82')][_0x2d30('0x6b')][_0x2d30('0xb4')]()),_0x40d4ec[_0x2d30('0x1c')](_0x1c1c8e,_0xa5be8b['end'][_0x2d30('0x6b')][_0x2d30('0xb4')]())),_0x1e4b83=new _0x576ac8(_0x245d9e,null,_0x598bdb,_0x40d4ec[_0x2d30('0xa3')],!0x0,_0x1877ad++);_0x582ffc[_0x2d30('0x80')](_0x1e4b83);}}return _0x582ffc;}async[_0x2d30('0x8')](_0x1f7ebe,_0x27d6fe){let _0x165295;this[_0x2d30('0xaa')]=_0x1f7ebe['offset'];const _0x17e3b0=_0x1f7ebe[_0x2d30('0x85')]&&!_0x1f7ebe[_0x2d30('0x98')],_0xef4b87=_0x17e3b0?0x0:_0x1f7ebe[_0x2d30('0x16')][_0x2d30('0x26')];if(_0x17e3b0)_0x165295=_0x27d6fe,_0x165295[_0x2d30('0xae')](_0x1cab24=>{_0x1cab24[_0x2d30('0x37')]=_0x1f7ebe[_0x2d30('0x4d')],_0x1cab24['_isInit']=!0x0,_0x1cab24['_authorId']=null;}),this[_0x2d30('0x7b')](_0x165295,_0x17e3b0);else{if(_0x1f7ebe[_0x2d30('0x98')]){const _0x31579e=this[_0x2d30('0x47')](_0x1f7ebe[_0x2d30('0x98')]);this['_document'][_0x2d30('0x9')][_0x2d30('0x8d')]=-_0x31579e[_0x2d30('0x62')],_0x31579e[_0x2d30('0xae')](_0x3f3b99=>{_0x3f3b99['baseVersion']-=_0x31579e[_0x2d30('0x62')],_0x3f3b99[_0x2d30('0x37')]=_0x1f7ebe[_0x2d30('0x4d')],_0x3f3b99[_0x2d30('0xa')]=!0x0,_0x3f3b99[_0x2d30('0x49')]=null;}),this['_applyOperationsSet'](_0x31579e,!0x0),this[_0x2d30('0x83')][_0x2d30('0x8d')]=-_0x31579e[_0x2d30('0x62')]+this[_0x2d30('0xaa')],this[_0x2d30('0x3f')](_0x31579e);}this[_0x2d30('0xa7')][_0x2d30('0x9')]['version']=_0xef4b87,_0x165295=this['_decompressOperations'](_0x1f7ebe['data'],_0x1f7ebe[_0x2d30('0x88')]),await this[_0x2d30('0x50')](_0x165295),this[_0x2d30('0x7b')](_0x165295,_0x17e3b0);}_0x1f7ebe[_0x2d30('0x4b')]&&(this[_0x2d30('0x4f')][_0x2d30('0x58')](_0x165295,_0x1f7ebe[_0x2d30('0x4b')]),this['_lastSyncedOperationId']=_0x1f7ebe[_0x2d30('0x4b')]),this[_0x2d30('0x83')][_0x2d30('0x8d')]=_0xef4b87+this[_0x2d30('0xaa')],this['_updateServerHistory'](_0x165295);}[_0x2d30('0x5b')](_0xd0dab1,_0x357922){throw this[_0x2d30('0x66')]=!0x0,_0x357922&&console['error'](_0x357922),new _0x536333(_0xd0dab1,this[_0x2d30('0x56')]);}['_saveOperationInBuffer'](_0x547609){this['_knownOperations'][_0x2d30('0x2e')](_0x547609)||(this[_0x2d30('0xa6')]['add'](_0x547609),this[_0x2d30('0x81')][_0x2d30('0x80')](_0x547609),this['_pendingAction']||_0x2d30('0x5f')==_0x547609[_0x2d30('0xbc')]&&!_0x547609[_0x2d30('0x35')]||this['_setPendingAction']());}[_0x2d30('0x1d')](_0x51ead9=!0x1){!_0x51ead9&&this[_0x2d30('0x66')]||(this[_0x2d30('0x66')]=!0x0,clearTimeout(this[_0x2d30('0x19')]),this[_0x2d30('0x19')]=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x55fec9=>{_0x55fec9&&(this[_0x2d30('0x91')](),this['_isPendingUpdate']=!0x1);})['catch'](_0x5f15a9=>{if(this[_0x2d30('0x91')](),this[_0x2d30('0x66')]=!0x1,!function(_0x21317f){return _0x21317f[_0x2d30('0x57')][_0x2d30('0xb1')](_0x2d30('0xb3'))||_0x21317f[_0x2d30('0x57')][_0x2d30('0xb1')](_0x2d30('0x4'))||_0x21317f[_0x2d30('0x57')][_0x2d30('0xb1')](_0x2d30('0x9c'));}(_0x5f15a9))throw _0x5f15a9;});},this[_0x2d30('0x33')]));}async[_0x2d30('0x34')](){const _0x1c143d=this[_0x2d30('0x56')][_0x2d30('0x8c')]['get'](_0x30afe9);if(this[_0x2d30('0x40')]()&&(_0x1c143d[_0x2d30('0x8e')](),this[_0x2d30('0x3a')]=!0x1),!this[_0x2d30('0x72')]())return!0x0;const _0x5d4adf=[...this['_bufferedOperations']];for(const _0x5edce3 of _0x5d4adf)_0x5edce3[_0x2d30('0x64')]=this['_document']['history']['isUndoneOperation'](_0x5edce3);const _0x5bda96=this[_0x2d30('0x4f')][_0x2d30('0x60')](_0x5d4adf),_0x4ea96e=Q++,_0x349c12=this[_0x2d30('0x32')](_0x5d4adf),_0x31f844=await this[_0x2d30('0xb6')][_0x2d30('0x99')](_0x349c12,_0x349c12['baseVersion'],_0x5bda96);try{return await this[_0x2d30('0xb9')](_0x5d4adf,_0x31f844,_0x4ea96e);}catch(_0x465383){return this[_0x2d30('0x5b')](_0x2d30('0xb8'),_0x465383);}}async[_0x2d30('0xb9')](_0x16703d,_0x4f16d3,_0x3d4f1c){if(_0x4f16d3[_0x2d30('0x89')])throw _0x4f16d3['error'];let _0x20abc9=!0x1;if(_0x4f16d3['wereChangesApplied']){_0x4f16d3[_0x2d30('0x4b')]&&(this[_0x2d30('0x20')]=_0x4f16d3[_0x2d30('0x4b')]),this[_0x2d30('0x81')]=this[_0x2d30('0x81')]['filter'](_0x6d1561=>!_0x16703d[_0x2d30('0xb7')](_0x6d1561));for(const _0x26739f of _0x16703d)_0x26739f[_0x2d30('0x37')]=_0x4f16d3[_0x2d30('0x94')];this[_0x2d30('0x3f')](_0x16703d),_0x20abc9=!0x0,this[_0x2d30('0x33')]=this['_baseBufferDelay'];}else{const _0x24986d=this['_decompressOperations'](_0x4f16d3[_0x2d30('0x16')],_0x4f16d3['metadata'])['filter'](_0x3b7d36=>_0x3b7d36['baseVersion']>=this[_0x2d30('0x1b')]);await this['_fetchMissingUsers'](_0x24986d),_0x20abc9=this[_0x2d30('0x79')](_0x24986d,_0x4f16d3['version'],_0x4f16d3[_0x2d30('0x4b')]),this[_0x2d30('0x33')]=Math[_0x2d30('0xa0')](this[_0x2d30('0x33')]/0x2);}return _0x20abc9?!this['_shouldSendUpdate']()||(this[_0x2d30('0x1d')](!0x0),!0x1):this[_0x2d30('0x5b')](_0x2d30('0xa5'));}[_0x2d30('0x79')](_0x564de2,_0x3a6650,_0x22f073){try{const _0x550a2d={'document':this[_0x2d30('0xa7')],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x16b1a6,operationsB:_0x3ae56c,originalOperations:_0x20fad9}=_0x1e7ecc(_0x564de2,this[_0x2d30('0x81')],_0x550a2d);Y(_0x16b1a6,this['_document']['version']),Y(_0x3ae56c,_0x3a6650);for(const _0x4c4c29 of _0x16b1a6){const _0x5ef6ad=_0x20fad9[_0x2d30('0x6a')](_0x4c4c29);_0x4c4c29['_authorId']=_0x5ef6ad?_0x5ef6ad[_0x2d30('0x49')]:null;}_0x22f073&&(this[_0x2d30('0x4f')]['setIdForTheLastOperation'](_0x564de2,_0x22f073),this['_lastSyncedOperationId']=_0x22f073),this[_0x2d30('0x81')]=[..._0x3ae56c],this[_0x2d30('0x7b')](_0x16b1a6),this['_updateServerHistory'](_0x564de2);}catch(_0x24e9cb){return console['error'](_0x24e9cb),!0x1;}return!0x0;}['_applyOperationsSet'](_0x24434c,_0x1416eb=!0x1){this[_0x2d30('0x56')][_0x2d30('0xba')][_0x2d30('0x6')]({'isUndoable':!0x1,'isLocal':!0x1},_0x10b56b=>{for(const _0x5ccc08 of _0x24434c)this[_0x2d30('0xa6')]['add'](_0x5ccc08),_0x10b56b[_0x2d30('0x7d')][_0x2d30('0xac')](_0x5ccc08),this[_0x2d30('0x56')][_0x2d30('0xba')]['applyOperation'](_0x5ccc08);});}[_0x2d30('0x3f')](_0x1e8c44){_0x1e8c44['forEach'](_0x4cca2d=>{const _0x4e2e83=_0x4cca2d[_0x2d30('0x84')]();_0x4e2e83['_authorId']=_0x4cca2d['_authorId'],_0x4e2e83[_0x2d30('0xa')]=!!_0x4cca2d['_isInit'],_0x4e2e83[_0x2d30('0x37')]=_0x4cca2d['createdAt'],_0x4e2e83['baseVersion']+=this[_0x2d30('0xaa')],_0x4cca2d['_isDisconnection']&&this[_0x2d30('0xb0')]['add'](_0x4e2e83),this['serverHistory'][_0x2d30('0xac')](_0x4e2e83);});}[_0x2d30('0xbd')](_0x2ec464){const _0x3a7dab=this[_0x2d30('0x56')][_0x2d30('0x8c')][_0x2d30('0x6a')]('Notification'),_0x4d5d6b=this[_0x2d30('0x56')][_0x2d30('0x2d')];_0x2ec464||(_0x2ec464=_0x1fd8b8(_0x4d5d6b,_0x2d30('0x5'))),_0x3a7dab[_0x2d30('0x22')](_0x2ec464,{'title':_0x1fd8b8(_0x4d5d6b,'Synchronization\x20issue'),'namespace':'real-time-collaboration'}),this[_0x2d30('0x24')]=!0x0,clearTimeout(this[_0x2d30('0x19')]),this[_0x2d30('0x81')]=[],this[_0x2d30('0x56')]['plugins'][_0x2d30('0x6a')](_0x3f8da5)['destroy']();}[_0x2d30('0xa1')](){this[_0x2d30('0x7a')]||(this[_0x2d30('0x7a')]=this[_0x2d30('0x56')]['plugins'][_0x2d30('0x6a')](_0x164be4)[_0x2d30('0x70')](_0x1fd8b8(this[_0x2d30('0x56')][_0x2d30('0x2d')],_0x2d30('0x4e'))));}[_0x2d30('0x91')](){this['_pendingAction']&&(this[_0x2d30('0x56')][_0x2d30('0x8c')][_0x2d30('0x6a')](_0x164be4)[_0x2d30('0x92')](this[_0x2d30('0x7a')]),this[_0x2d30('0x7a')]=null);}[_0x2d30('0x32')](_0x17beed){const _0x5a0df0=_0x17beed['map'](_0x192396=>_0x192396[_0x2d30('0x78')]());return this['_compressor'][_0x2d30('0x6f')](_0x5a0df0);}[_0x2d30('0xa2')](_0x23bd8a,_0x2582d7){const _0x176369=this[_0x2d30('0x3b')][_0x2d30('0xad')](_0x23bd8a)[_0x2d30('0x36')]((_0x238145,_0x3d0ef5)=>{const _0x5a5ed7=_0x9cf77c[_0x2d30('0x39')](_0x238145,this[_0x2d30('0xa7')]);return _0x5a5ed7[_0x2d30('0x64')]=_0x238145[_0x2d30('0x64')],_0x2d30('0x3e')===_0x2582d7[_0x3d0ef5]['type']&&(_0x5a5ed7[_0x2d30('0x11')]=!0x0),_0x5a5ed7;});return this[_0x2d30('0x3c')](_0x176369,_0x2582d7),_0x176369;}[_0x2d30('0x3c')](_0x3baf9c,_0x2380df){for(let _0x51eb5b=0x0;_0x51eb5b<_0x3baf9c[_0x2d30('0x62')];_0x51eb5b++)_0x2d30('0xf')==_0x2380df[_0x51eb5b][_0x2d30('0xbc')]?(_0x3baf9c[_0x51eb5b][_0x2d30('0xa')]=!0x0,_0x3baf9c[_0x51eb5b][_0x2d30('0x49')]=null):(_0x3baf9c[_0x51eb5b][_0x2d30('0xa')]=!0x1,_0x3baf9c[_0x51eb5b][_0x2d30('0x49')]=_0x2380df[_0x51eb5b][_0x2d30('0x1f')]),_0x3baf9c[_0x51eb5b]['createdAt']=_0x2380df[_0x51eb5b][_0x2d30('0x37')];}['_refreshUserSelectionMarkers'](){this[_0x2d30('0x3a')]=!0x0,this['_shouldSendSelectionUpdate']()&&this[_0x2d30('0x1d')]();}[_0x2d30('0x40')](){const _0x2440b5=this[_0x2d30('0x56')]['plugins'][_0x2d30('0x6a')](_0x4e5a25)[_0x2d30('0x5c')][_0x2d30('0x6a')](this[_0x2d30('0x13')]);return!this[_0x2d30('0x56')][_0x2d30('0xb5')]&&_0x2440b5&&_0x2440b5[_0x2d30('0x62')]>0x1&&this[_0x2d30('0x3a')];}[_0x2d30('0x72')](){return this[_0x2d30('0x81')]['length']>0x0||this['_shouldSendSelectionUpdate']();}}class X extends Error{}function Y(_0x5b0a41,_0x3ed872){for(const _0x1d25e0 of _0x5b0a41)_0x1d25e0[_0x2d30('0x26')]=_0x3ed872++;}l[_0x2d30('0xc2')]=_0x575cd8;class Z{constructor(_0x41e2ce){this['_ignoredOperations']=_0x41e2ce,this[_0x2d30('0x59')]=new WeakMap();}[_0x2d30('0x60')](_0x1a24ff){let _0x795158=_0x1a24ff['length'];for(;_0x795158--;){const _0x2d6267=_0x1a24ff[_0x795158];if(!this[_0x2d30('0xd')]['has'](_0x2d6267)){if(!this[_0x2d30('0x59')]['has'](_0x2d6267)){const _0x54369a=_0x397a33()[_0x2d30('0xb4')](0x1,0x12);this[_0x2d30('0x59')][_0x2d30('0x2c')](_0x2d6267,_0x54369a);}return this[_0x2d30('0x59')]['get'](_0x2d6267);}}}['setIdForTheLastOperation'](_0x1a3f15,_0x363da2){if(!_0x363da2)return;let _0x32791a=_0x1a3f15[_0x2d30('0x62')];for(;_0x32791a--;){const _0x42f1b6=_0x1a3f15[_0x32791a];this[_0x2d30('0xd')]['has'](_0x42f1b6)||this['_operationToId'][_0x2d30('0x2c')](_0x42f1b6,_0x363da2);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x521c=['values','connected','Sessions','_uniqueUsersCount','getUserSessions','state','delete','sessions-register-already-registered','_handleSessionAdd','_createUser','get','allConnectedUsers','getUserRole','user','set','change:state','has','fire','size','unregister','init','clear','pluginName','orderNumber','forEach','defineMe','requires','add','_registeredSessions','remove','addUser','mySessionId','_handleSessionRemove','listenTo','connection','sessions-unregister-not-exist','stopListening','channelSessions','context','channelConnectedUsers','plugins','_users'];(function(_0x184968,_0x521c87){const _0x1a53dd=function(_0x2c179d){while(--_0x2c179d){_0x184968['push'](_0x184968['shift']());}};_0x1a53dd(++_0x521c87);}(_0x521c,0xca));const _0x1a53=function(_0x184968,_0x521c87){_0x184968=_0x184968-0x0;let _0x1a53dd=_0x521c[_0x184968];return _0x1a53dd;};import{ContextPlugin as _0x814ed1}from'ckeditor5/src/core';import{Collection as _0x50281a,CKEditorError as _0x387855}from'ckeditor5/src/utils';import _0x81a1ff from'./websocketgateway';import{Users as _0x4ea21f}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x814ed1{static get[_0x1a53('0x1e')](){return _0x1a53('0xa');}static get[_0x1a53('0x22')](){return[_0x81a1ff,_0x4ea21f];}[_0x1a53('0x1c')](){const _0x42bcb0=this['context'],_0x2842ab=_0x42bcb0[_0x1a53('0x6')][_0x1a53('0x12')](_0x81a1ff);this[_0x1a53('0x3')]=new Map(),this[_0x1a53('0x5')]=new Map(),this['allConnectedUsers']=new _0x50281a(),this[_0x1a53('0x24')]=new Map(),this[_0x1a53('0xb')]=0x0,this[_0x1a53('0x7')]=_0x42bcb0['plugins'][_0x1a53('0x12')](_0x4ea21f),this[_0x1a53('0x29')](_0x2842ab,_0x1a53('0x17'),(_0x1a0bbf,_0x1c6471,_0x489302)=>{if(_0x1a53('0x9')!==_0x489302)this['channelSessions'][_0x1a53('0x20')](_0x4bca7c=>_0x4bca7c[_0x1a53('0x1d')]()),this[_0x1a53('0x5')][_0x1a53('0x20')](_0x5554f3=>_0x5554f3[_0x1a53('0x1d')]()),this[_0x1a53('0x13')][_0x1a53('0x1d')]();else for(const [_0x138c89,_0x33cdcf]of this['_registeredSessions'])for(const _0x3e4295 of _0x33cdcf)this[_0x1a53('0x10')](_0x138c89,_0x3e4295);}),this[_0x1a53('0x11')](_0x2842ab[_0x1a53('0x0')]['me'],!0x0);}['register'](_0x3cd1ca,_0x323556){if(this[_0x1a53('0x24')]['has'](_0x3cd1ca))throw new _0x387855(_0x1a53('0xf'),null,{'channelId':_0x3cd1ca});this[_0x1a53('0x24')]['set'](_0x3cd1ca,_0x323556),this[_0x1a53('0x3')]['set'](_0x3cd1ca,new _0x50281a()),this[_0x1a53('0x5')][_0x1a53('0x16')](_0x3cd1ca,new _0x50281a()),this[_0x1a53('0x29')](_0x323556,_0x1a53('0x23'),(_0x367385,_0x579e3f)=>this['_handleSessionAdd'](_0x3cd1ca,_0x579e3f)),this[_0x1a53('0x29')](_0x323556,'remove',(_0x3ccf49,_0x3d0aaf)=>this['_handleSessionRemove'](_0x3cd1ca,_0x3d0aaf));for(const _0x238af5 of _0x323556)this[_0x1a53('0x10')](_0x3cd1ca,_0x238af5);}[_0x1a53('0x1b')](_0x5e5862){if(!this[_0x1a53('0x24')][_0x1a53('0x18')](_0x5e5862))throw new _0x387855(_0x1a53('0x1'),null,{'channelId':_0x5e5862});const _0x319934=this['_registeredSessions'][_0x1a53('0x12')](_0x5e5862);this[_0x1a53('0x2')](_0x319934);for(const _0x36226e of _0x319934)'connected'===this[_0x1a53('0x4')][_0x1a53('0x6')]['get'](_0x81a1ff)[_0x1a53('0xd')]&&this[_0x1a53('0x28')](_0x5e5862,_0x36226e);this[_0x1a53('0x24')][_0x1a53('0xe')](_0x5e5862),this[_0x1a53('0x3')][_0x1a53('0xe')](_0x5e5862),this[_0x1a53('0x5')]['delete'](_0x5e5862);}get[_0x1a53('0x27')](){return this[_0x1a53('0x4')][_0x1a53('0x6')][_0x1a53('0x12')](_0x81a1ff)[_0x1a53('0x0')]['sessionId'];}['getUserBySessionId'](_0x4f0f88){for(const _0x15b9ed of this[_0x1a53('0x3')][_0x1a53('0x8')]())for(const _0x3c3f13 of _0x15b9ed)if(_0x3c3f13['id']===_0x4f0f88)return _0x3c3f13[_0x1a53('0x15')];}[_0x1a53('0xc')](_0x31cf6b,_0xaaaacc){const _0x3022bd=_0xaaaacc?[this[_0x1a53('0x3')]['get'](_0xaaaacc)]:this[_0x1a53('0x3')][_0x1a53('0x8')](),_0x183b12=new Set();for(const _0x2a2978 of _0x3022bd)for(const _0x395bae of _0x2a2978)_0x395bae[_0x1a53('0x15')]['id']===_0x31cf6b['id']&&_0x183b12[_0x1a53('0x23')](_0x395bae['id']);return _0x183b12;}[_0x1a53('0x14')](_0x4df93b){for(const _0x4a82e4 of this[_0x1a53('0x3')][_0x1a53('0x8')]())for(const _0x3aad60 of _0x4a82e4)if(_0x3aad60[_0x1a53('0x15')]===_0x4df93b)return _0x3aad60['role'];}[_0x1a53('0x10')](_0x748b3,_0x14f03b){if(_0x1a53('0x9')!==this[_0x1a53('0x4')][_0x1a53('0x6')][_0x1a53('0x12')](_0x81a1ff)[_0x1a53('0xd')])return;const _0x6b4dc6=_0x14f03b['user'],_0x176d9d=this[_0x1a53('0x7')]['getUser'](_0x6b4dc6['id'])||this[_0x1a53('0x11')](_0x6b4dc6),_0x482163=Object['assign']({},_0x14f03b,{'user':_0x176d9d});this['channelSessions'][_0x1a53('0x12')](_0x748b3)['add'](_0x482163);const _0x545937=this[_0x1a53('0x5')][_0x1a53('0x12')](_0x748b3);_0x545937[_0x1a53('0x18')](_0x176d9d['id'])||_0x545937[_0x1a53('0x23')](_0x176d9d),this[_0x1a53('0x13')][_0x1a53('0x18')](_0x176d9d['id'])||this[_0x1a53('0x13')][_0x1a53('0x23')](_0x176d9d),this[_0x1a53('0x19')]('sessionAdd:'+_0x748b3,{'channelId':_0x748b3,'session':_0x482163});}[_0x1a53('0x28')](_0x119e4d,_0x1ccee7){if(_0x1a53('0x9')!==this['context'][_0x1a53('0x6')][_0x1a53('0x12')](_0x81a1ff)[_0x1a53('0xd')])return;const _0x3842aa=this[_0x1a53('0x5')][_0x1a53('0x12')](_0x119e4d),_0x2cc1d5=_0x1ccee7['user'];this[_0x1a53('0x3')][_0x1a53('0x12')](_0x119e4d)['remove'](_0x1ccee7['id']),_0x3842aa['has'](_0x2cc1d5['id'])&&!this[_0x1a53('0xc')](_0x2cc1d5,_0x119e4d)[_0x1a53('0x1a')]&&_0x3842aa[_0x1a53('0x25')](_0x2cc1d5['id']),this['allConnectedUsers'][_0x1a53('0x12')](_0x2cc1d5['id'])&&!this[_0x1a53('0xc')](_0x2cc1d5)[_0x1a53('0x1a')]&&this[_0x1a53('0x13')][_0x1a53('0x25')](_0x2cc1d5['id']);}[_0x1a53('0x11')](_0x3c9c82,_0x20f221){const _0x2d6f23=this[_0x1a53('0x7')][_0x1a53('0x26')](_0x3c9c82);return _0x20f221&&this[_0x1a53('0x7')][_0x1a53('0x21')](_0x3c9c82['id']),_0x2d6f23[_0x1a53('0x1f')]=this['_uniqueUsersCount']++,_0x2d6f23;}}
|