@ckeditor/ckeditor5-real-time-collaboration 35.3.0 → 35.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "35.3.0",
3
+ "version": "35.3.1",
4
4
  "description": "A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -27,10 +27,10 @@
27
27
  ],
28
28
  "main": "src/index.js",
29
29
  "dependencies": {
30
- "@ckeditor/ckeditor-cloud-services-collaboration": "^37.0.0",
31
- "@ckeditor/ckeditor5-operations-compressor": "^35.3.0",
32
- "ckeditor5": "^35.3.0",
33
- "ckeditor5-collaboration": "^35.3.0",
30
+ "@ckeditor/ckeditor-cloud-services-collaboration": "^38.0.0",
31
+ "@ckeditor/ckeditor5-operations-compressor": "^35.3.1",
32
+ "ckeditor5": "^35.3.1",
33
+ "ckeditor5-collaboration": "^35.3.1",
34
34
  "lodash-es": "^4.17.11"
35
35
  }
36
36
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1577cc,_0xa52443,_0x3ec49c){const t=_0x1577cc['t'];switch(_0xa52443){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'},_0x3ec49c);}}
23
+ export function getTranslation(_0x106bf1,_0x1a86aa,_0x22ff1c){const t=_0x106bf1['t'];switch(_0x1a86aa){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'},_0x22ff1c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x68a8=['presenceList','counterView','length','hideDropdown','_allConnectedUsers','presenceList.container','plugins','listenTo','_handleUserAdd','presenceDropdownView','add','usersCount','isVisible','items','locale','_handleUserRemove','lastConnectedUsers','config','get','_createView','view','number','appendChild','class','bodyCollection','destroy','init','bindTo','ck\x20ck-presence-list__balloon','render','allConnectedUsers','showDropdown','attachToDom','presenceList.collapseAt','detachFromDom','element','isHidden','context','content','bind','pin','balloonPanelView','requires','from','inlineListView','remove','presencelist-collapseat-invalid-format','execute','onClick','isCollapsed','hasTooltip','reverse','set','presencelist-missing-container','using'];(function(_0xebe7bd,_0x68a85e){const _0x747e26=function(_0x1027c4){while(--_0x1027c4){_0xebe7bd['push'](_0xebe7bd['shift']());}};_0x747e26(++_0x68a85e);}(_0x68a8,0xa1));const _0x747e=function(_0xebe7bd,_0x68a85e){_0xebe7bd=_0xebe7bd-0x0;let _0x747e26=_0x68a8[_0xebe7bd];return _0x747e26;};import{ContextPlugin as _0x19babc}from'ckeditor5/src/core';import{CKEditorError as _0x4e477e,Collection as _0x1a658a}from'ckeditor5/src/utils';import{clickOutsideHandler as _0x6edc2d,BodyCollection as _0x197364,BalloonPanelView as _0x2aaa6f}from'ckeditor5/src/ui';import{isElement as _0x217aa4}from'lodash-es';import _0x4c2071 from'../realtimecollaborativeediting/sessions';import _0x2572aa from'./view/presencelistview';import _0x5d51e9 from'./view/presencedropdownlistview';import _0x520fcf from'./view/presencedropdownlistitemview';import _0x1e19f0 from'./view/presenceinlinelistitemview';export default class i extends _0x19babc{constructor(_0x3b45c9){super(_0x3b45c9),_0x3b45c9[_0x747e('0x15')]['define']('presenceList',{'collapseAt':0x6});const _0x3e1375=_0x3b45c9[_0x747e('0x15')][_0x747e('0x16')]('presenceList.collapseAt');if(_0x747e('0x19')!=typeof _0x3e1375)throw new _0x4e477e(_0x747e('0x32'),this);if(_0x3e1375<0x1)throw new _0x4e477e(_0x747e('0x32'),this);}static get[_0x747e('0x2e')](){return[_0x4c2071];}[_0x747e('0x1e')](){const _0x330308=this[_0x747e('0x29')];this[_0x747e('0x8')]=_0x330308[_0x747e('0xa')][_0x747e('0x16')](_0x4c2071)[_0x747e('0x22')],this[_0x747e('0x1')](_0x747e('0xf'),0x0),this[_0x747e('0x14')]=new _0x1a658a(),this[_0x747e('0x2d')]=new _0x2aaa6f(),this['balloonPanelView'][_0x747e('0x1b')]=_0x747e('0x20'),this[_0x747e('0x18')]=this[_0x747e('0x17')](),this[_0x747e('0xd')]=void 0x0;for(const _0x1135f2 of this[_0x747e('0x8')])this[_0x747e('0xc')](_0x1135f2);this[_0x747e('0xb')](this[_0x747e('0x8')],'add',(_0x2dc20f,_0x307e47)=>{this[_0x747e('0xc')](_0x307e47);}),this['listenTo'](this[_0x747e('0x8')],_0x747e('0x31'),(_0x4dd698,_0x3faba4)=>{this[_0x747e('0x13')](_0x3faba4);});}[_0x747e('0x17')](){const _0x53d207=this['context'],_0x40aeab=new _0x2572aa(this[_0x747e('0x29')][_0x747e('0x12')]),_0x580da1=this[_0x747e('0x2d')];if(!_0x217aa4(_0x53d207[_0x747e('0x15')][_0x747e('0x16')](_0x747e('0x9'))))throw new _0x4e477e(_0x747e('0x2'),this);return _0x40aeab[_0x747e('0x5')]['bind'](_0x747e('0xf'))['to'](this),_0x40aeab[_0x747e('0x2b')](_0x747e('0x35'))['to'](this,_0x747e('0xf'),_0x5544bf=>{const _0x8ff321=_0x5544bf>=_0x53d207['config'][_0x747e('0x16')](_0x747e('0x25'));return _0x40aeab[_0x747e('0x5')][_0x747e('0x28')]=!(0x1==_0x5544bf||_0x8ff321),_0x8ff321||this[_0x747e('0x7')](),_0x8ff321;}),_0x40aeab['inlineListView'][_0x747e('0x11')][_0x747e('0x1f')](this[_0x747e('0x14')])[_0x747e('0x3')](_0x318f8b=>{const _0x3753a8=_0x53d207[_0x747e('0x15')][_0x747e('0x16')](_0x747e('0x4')),_0x3b2e0a=new _0x1e19f0(_0x53d207[_0x747e('0x12')],_0x318f8b,_0x3753a8[_0x747e('0x34')]);return _0x3b2e0a[_0x747e('0x2b')](_0x747e('0x36'))['to'](_0x40aeab,_0x747e('0x35'),_0x18ac0e=>!_0x18ac0e),_0x3753a8['onClick']&&this[_0x747e('0xb')](_0x3b2e0a,'execute',()=>{this[_0x747e('0x18')]['isCollapsed']||_0x3753a8[_0x747e('0x34')](_0x318f8b,_0x3b2e0a[_0x747e('0x27')]);}),_0x3b2e0a;}),this[_0x747e('0xb')](_0x40aeab[_0x747e('0x30')],_0x747e('0x33'),()=>{this[_0x747e('0xd')]?this[_0x747e('0x7')]():this[_0x747e('0x18')][_0x747e('0x35')]&&this[_0x747e('0x23')]();}),_0x40aeab['render'](),_0x580da1[_0x747e('0x21')](),_0x6edc2d({'emitter':_0x40aeab,'activator':()=>_0x580da1[_0x747e('0x10')],'contextElements':[_0x580da1['element'],_0x40aeab[_0x747e('0x30')][_0x747e('0x27')]],'callback':()=>this[_0x747e('0x7')]()}),_0x53d207['config'][_0x747e('0x16')]('presenceList.container')[_0x747e('0x1a')](_0x40aeab['element']),this[_0x747e('0x1c')]=new _0x197364(this['context'][_0x747e('0x12')]),this[_0x747e('0x1c')][_0x747e('0x24')](),this[_0x747e('0x1c')][_0x747e('0xe')](_0x580da1),_0x40aeab;}['_handleUserAdd'](_0x13486a){this['usersCount']++,0x5==this[_0x747e('0x14')][_0x747e('0x6')]&&this[_0x747e('0x14')][_0x747e('0x31')](0x0),this[_0x747e('0x14')]['add'](_0x13486a);}[_0x747e('0x13')](_0x4ccd61){if(this[_0x747e('0xf')]--,this['lastConnectedUsers'][_0x747e('0x16')](_0x4ccd61['id'])&&(this[_0x747e('0x14')][_0x747e('0x31')](_0x4ccd61['id']),this['lastConnectedUsers'][_0x747e('0x6')]<this[_0x747e('0xf')]))for(const _0x5c9534 of Array[_0x747e('0x2f')](this['_allConnectedUsers'])[_0x747e('0x0')]())if(!this[_0x747e('0x14')][_0x747e('0x16')](_0x5c9534['id']))return void this[_0x747e('0x14')][_0x747e('0xe')](_0x5c9534,0x0);}[_0x747e('0x23')](){if(this[_0x747e('0xd')])return;this[_0x747e('0xd')]=new _0x5d51e9();const _0x1007c6=this[_0x747e('0x29')][_0x747e('0x15')][_0x747e('0x16')](_0x747e('0x4'));this[_0x747e('0xd')][_0x747e('0x11')][_0x747e('0x1f')](this[_0x747e('0x8')])[_0x747e('0x3')](_0x25af51=>{const _0x10d4cc=new _0x520fcf(this[_0x747e('0x29')][_0x747e('0x12')],_0x25af51,!!_0x1007c6[_0x747e('0x34')]);return _0x1007c6['onClick']&&this[_0x747e('0xb')](_0x10d4cc,_0x747e('0x33'),()=>{_0x1007c6[_0x747e('0x34')](_0x25af51,_0x10d4cc['element']);}),_0x10d4cc;}),this[_0x747e('0x2d')][_0x747e('0x2a')][_0x747e('0xe')](this[_0x747e('0xd')]),this[_0x747e('0x2d')][_0x747e('0x2c')]({'target':this['view'][_0x747e('0x30')][_0x747e('0x27')]});}[_0x747e('0x7')](){this[_0x747e('0xd')]&&(this['balloonPanelView']['unpin'](),this[_0x747e('0x2d')][_0x747e('0x2a')][_0x747e('0x31')](this[_0x747e('0xd')]),this[_0x747e('0xd')][_0x747e('0x1d')](),this['presenceDropdownView']=void 0x0);}[_0x747e('0x1d')](){super['destroy'](),this[_0x747e('0x18')]&&this['view']['isRendered']&&this[_0x747e('0x18')][_0x747e('0x1d')](),this[_0x747e('0x1c')]&&this['bodyCollection'][_0x747e('0x26')]();}}
23
+ const _0x40ee=['onClick','_createView','isRendered','counterView','element','listenTo','presenceList.container','destroy','isCollapsed','locale','presenceDropdownView','init','presenceList.collapseAt','bodyCollection','_handleUserRemove','pin','reverse','number','define','view','_allConnectedUsers','usersCount','detachFromDom','using','bind','presencelist-missing-container','unpin','class','remove','requires','add','get','ck\x20ck-presence-list__balloon','appendChild','plugins','length','render','inlineListView','presenceList','hideDropdown','presencelist-collapseat-invalid-format','allConnectedUsers','context','showDropdown','set','config','execute','_handleUserAdd','balloonPanelView','from','content','lastConnectedUsers','items'];(function(_0x2d946d,_0x40ee53){const _0x2d6c28=function(_0x3612e5){while(--_0x3612e5){_0x2d946d['push'](_0x2d946d['shift']());}};_0x2d6c28(++_0x40ee53);}(_0x40ee,0x123));const _0x2d6c=function(_0x2d946d,_0x40ee53){_0x2d946d=_0x2d946d-0x0;let _0x2d6c28=_0x40ee[_0x2d946d];return _0x2d6c28;};import{ContextPlugin as _0x9c5622}from'ckeditor5/src/core';import{CKEditorError as _0x577dbf,Collection as _0x48b65a}from'ckeditor5/src/utils';import{clickOutsideHandler as _0x2fe581,BodyCollection as _0x376474,BalloonPanelView as _0x49e79b}from'ckeditor5/src/ui';import{isElement as _0x1a1ade}from'lodash-es';import _0xba5c6d from'../realtimecollaborativeediting/sessions';import _0x3fab93 from'./view/presencelistview';import _0x14b375 from'./view/presencedropdownlistview';import _0x376dc8 from'./view/presencedropdownlistitemview';import _0x1129a6 from'./view/presenceinlinelistitemview';export default class i extends _0x9c5622{constructor(_0x48508c){super(_0x48508c),_0x48508c[_0x2d6c('0x13')][_0x2d6c('0x2d')](_0x2d6c('0xc'),{'collapseAt':0x6});const _0x559e9a=_0x48508c[_0x2d6c('0x13')][_0x2d6c('0x5')](_0x2d6c('0x27'));if(_0x2d6c('0x2c')!=typeof _0x559e9a)throw new _0x577dbf(_0x2d6c('0xe'),this);if(_0x559e9a<0x1)throw new _0x577dbf('presencelist-collapseat-invalid-format',this);}static get[_0x2d6c('0x3')](){return[_0xba5c6d];}[_0x2d6c('0x26')](){const _0x34d6bf=this[_0x2d6c('0x10')];this[_0x2d6c('0x2f')]=_0x34d6bf[_0x2d6c('0x8')][_0x2d6c('0x5')](_0xba5c6d)[_0x2d6c('0xf')],this[_0x2d6c('0x12')]('usersCount',0x0),this[_0x2d6c('0x19')]=new _0x48b65a(),this[_0x2d6c('0x16')]=new _0x49e79b(),this[_0x2d6c('0x16')][_0x2d6c('0x1')]=_0x2d6c('0x6'),this[_0x2d6c('0x2e')]=this[_0x2d6c('0x1c')](),this[_0x2d6c('0x25')]=void 0x0;for(const _0x45a515 of this[_0x2d6c('0x2f')])this[_0x2d6c('0x15')](_0x45a515);this[_0x2d6c('0x20')](this[_0x2d6c('0x2f')],_0x2d6c('0x4'),(_0x5c0320,_0x555898)=>{this[_0x2d6c('0x15')](_0x555898);}),this[_0x2d6c('0x20')](this[_0x2d6c('0x2f')],_0x2d6c('0x2'),(_0x33c76c,_0x2dd383)=>{this['_handleUserRemove'](_0x2dd383);});}['_createView'](){const _0x7d576f=this[_0x2d6c('0x10')],_0x455110=new _0x3fab93(this['context'][_0x2d6c('0x24')]),_0x42f283=this[_0x2d6c('0x16')];if(!_0x1a1ade(_0x7d576f[_0x2d6c('0x13')][_0x2d6c('0x5')]('presenceList.container')))throw new _0x577dbf(_0x2d6c('0x34'),this);return _0x455110[_0x2d6c('0x1e')][_0x2d6c('0x33')](_0x2d6c('0x30'))['to'](this),_0x455110['bind']('isCollapsed')['to'](this,'usersCount',_0x13dc1d=>{const _0xcbfa09=_0x13dc1d>=_0x7d576f[_0x2d6c('0x13')][_0x2d6c('0x5')]('presenceList.collapseAt');return _0x455110[_0x2d6c('0x1e')]['isHidden']=!(0x1==_0x13dc1d||_0xcbfa09),_0xcbfa09||this[_0x2d6c('0xd')](),_0xcbfa09;}),_0x455110[_0x2d6c('0xb')][_0x2d6c('0x1a')]['bindTo'](this[_0x2d6c('0x19')])[_0x2d6c('0x32')](_0x472e37=>{const _0x255780=_0x7d576f['config'][_0x2d6c('0x5')](_0x2d6c('0xc')),_0x184074=new _0x1129a6(_0x7d576f[_0x2d6c('0x24')],_0x472e37,_0x255780[_0x2d6c('0x1b')]);return _0x184074[_0x2d6c('0x33')]('hasTooltip')['to'](_0x455110,_0x2d6c('0x23'),_0x33ac00=>!_0x33ac00),_0x255780['onClick']&&this['listenTo'](_0x184074,_0x2d6c('0x14'),()=>{this['view'][_0x2d6c('0x23')]||_0x255780[_0x2d6c('0x1b')](_0x472e37,_0x184074[_0x2d6c('0x1f')]);}),_0x184074;}),this['listenTo'](_0x455110[_0x2d6c('0xb')],_0x2d6c('0x14'),()=>{this['presenceDropdownView']?this[_0x2d6c('0xd')]():this[_0x2d6c('0x2e')][_0x2d6c('0x23')]&&this[_0x2d6c('0x11')]();}),_0x455110['render'](),_0x42f283[_0x2d6c('0xa')](),_0x2fe581({'emitter':_0x455110,'activator':()=>_0x42f283['isVisible'],'contextElements':[_0x42f283[_0x2d6c('0x1f')],_0x455110['inlineListView'][_0x2d6c('0x1f')]],'callback':()=>this[_0x2d6c('0xd')]()}),_0x7d576f[_0x2d6c('0x13')]['get'](_0x2d6c('0x21'))[_0x2d6c('0x7')](_0x455110['element']),this['bodyCollection']=new _0x376474(this[_0x2d6c('0x10')][_0x2d6c('0x24')]),this[_0x2d6c('0x28')]['attachToDom'](),this['bodyCollection'][_0x2d6c('0x4')](_0x42f283),_0x455110;}['_handleUserAdd'](_0x405450){this[_0x2d6c('0x30')]++,0x5==this['lastConnectedUsers']['length']&&this[_0x2d6c('0x19')][_0x2d6c('0x2')](0x0),this[_0x2d6c('0x19')][_0x2d6c('0x4')](_0x405450);}[_0x2d6c('0x29')](_0x5ce169){if(this[_0x2d6c('0x30')]--,this['lastConnectedUsers'][_0x2d6c('0x5')](_0x5ce169['id'])&&(this[_0x2d6c('0x19')][_0x2d6c('0x2')](_0x5ce169['id']),this['lastConnectedUsers'][_0x2d6c('0x9')]<this['usersCount']))for(const _0xad9779 of Array[_0x2d6c('0x17')](this[_0x2d6c('0x2f')])[_0x2d6c('0x2b')]())if(!this[_0x2d6c('0x19')][_0x2d6c('0x5')](_0xad9779['id']))return void this[_0x2d6c('0x19')][_0x2d6c('0x4')](_0xad9779,0x0);}[_0x2d6c('0x11')](){if(this[_0x2d6c('0x25')])return;this[_0x2d6c('0x25')]=new _0x14b375();const _0x21b634=this[_0x2d6c('0x10')][_0x2d6c('0x13')]['get']('presenceList');this['presenceDropdownView']['items']['bindTo'](this[_0x2d6c('0x2f')])[_0x2d6c('0x32')](_0x15c803=>{const _0x3802f1=new _0x376dc8(this['context']['locale'],_0x15c803,!!_0x21b634[_0x2d6c('0x1b')]);return _0x21b634[_0x2d6c('0x1b')]&&this['listenTo'](_0x3802f1,'execute',()=>{_0x21b634[_0x2d6c('0x1b')](_0x15c803,_0x3802f1[_0x2d6c('0x1f')]);}),_0x3802f1;}),this[_0x2d6c('0x16')][_0x2d6c('0x18')][_0x2d6c('0x4')](this[_0x2d6c('0x25')]),this[_0x2d6c('0x16')][_0x2d6c('0x2a')]({'target':this[_0x2d6c('0x2e')]['inlineListView'][_0x2d6c('0x1f')]});}[_0x2d6c('0xd')](){this[_0x2d6c('0x25')]&&(this[_0x2d6c('0x16')][_0x2d6c('0x0')](),this[_0x2d6c('0x16')][_0x2d6c('0x18')][_0x2d6c('0x2')](this[_0x2d6c('0x25')]),this[_0x2d6c('0x25')][_0x2d6c('0x22')](),this[_0x2d6c('0x25')]=void 0x0);}['destroy'](){super[_0x2d6c('0x22')](),this[_0x2d6c('0x2e')]&&this[_0x2d6c('0x2e')][_0x2d6c('0x1d')]&&this[_0x2d6c('0x2e')][_0x2d6c('0x22')](),this[_0x2d6c('0x28')]&&this[_0x2d6c('0x28')][_0x2d6c('0x31')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d0f=['isHidden','ck-presence-list__counter','div','usersCount','CONNECTED_USERS','bindTemplate','set'];(function(_0x5a15e8,_0x5d0f8b){const _0x37264c=function(_0x41f8e1){while(--_0x41f8e1){_0x5a15e8['push'](_0x5a15e8['shift']());}};_0x37264c(++_0x5d0f8b);}(_0x5d0f,0x1de));const _0x3726=function(_0x5a15e8,_0x5d0f8b){_0x5a15e8=_0x5a15e8-0x0;let _0x37264c=_0x5d0f[_0x5a15e8];return _0x37264c;};import{View as _0x1e2a09}from'ckeditor5/src/ui';import{getTranslation as _0x14d4f6}from'../../common-translations';export default class et extends _0x1e2a09{constructor(_0x5a8bea){super(_0x5a8bea);const _0x3a32bf=this[_0x3726('0x3')];this[_0x3726('0x4')](_0x3726('0x1'),0x0),this[_0x3726('0x4')](_0x3726('0x5'),!0x0),this['setTemplate']({'tag':_0x3726('0x0'),'attributes':{'class':['ck',_0x3726('0x6'),_0x3a32bf['if']('isHidden','ck-presence-list__counter--hidden')]},'children':[{'text':_0x3a32bf['to'](_0x3726('0x1'),_0x300294=>_0x14d4f6(_0x5a8bea,_0x3726('0x2'),_0x300294))}]});}}
23
+ const _0x5c94=['set','div','usersCount','ck-presence-list__counter--hidden','isHidden','setTemplate','bindTemplate'];(function(_0x27f54c,_0x5c9472){const _0x311713=function(_0x2affc5){while(--_0x2affc5){_0x27f54c['push'](_0x27f54c['shift']());}};_0x311713(++_0x5c9472);}(_0x5c94,0x10b));const _0x3117=function(_0x27f54c,_0x5c9472){_0x27f54c=_0x27f54c-0x0;let _0x311713=_0x5c94[_0x27f54c];return _0x311713;};import{View as _0x3df5c3}from'ckeditor5/src/ui';import{getTranslation as _0x51f334}from'../../common-translations';export default class et extends _0x3df5c3{constructor(_0x141e92){super(_0x141e92);const _0x375463=this[_0x3117('0x5')];this[_0x3117('0x6')](_0x3117('0x1'),0x0),this[_0x3117('0x6')]('isHidden',!0x0),this[_0x3117('0x4')]({'tag':_0x3117('0x0'),'attributes':{'class':['ck','ck-presence-list__counter',_0x375463['if'](_0x3117('0x3'),_0x3117('0x2'))]},'children':[{'text':_0x375463['to'](_0x3117('0x1'),_0x8e0a21=>_0x51f334(_0x141e92,'CONNECTED_USERS',_0x8e0a21))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49cf=['tag','div','ck-presence-list__dropdown-list-item','ck-presence-list__marker','ck-user__full-name','setTemplate','button','bindTemplate','userView','execute','color'];(function(_0x2ad1ab,_0x49cff4){const _0x53b0ac=function(_0xf7efca){while(--_0xf7efca){_0x2ad1ab['push'](_0x2ad1ab['shift']());}};_0x53b0ac(++_0x49cff4);}(_0x49cf,0x118));const _0x53b0=function(_0x2ad1ab,_0x49cff4){_0x2ad1ab=_0x2ad1ab-0x0;let _0x53b0ac=_0x49cf[_0x2ad1ab];return _0x53b0ac;};import{View as _0x2c2323}from'ckeditor5/src/ui';import{UserView as _0x592db4}from'ckeditor5-collaboration/src/collaboration-core';export default class C extends _0x2c2323{constructor(_0x58f59e,_0x4a2e9c,_0x56d9a4){super(_0x58f59e);const _0x513e61=this[_0x53b0('0x2')];this['userView']=new _0x592db4(_0x58f59e,_0x4a2e9c);const _0x19a22a={'tag':_0x53b0('0x7'),'attributes':{'class':['ck',_0x53b0('0x8')]},'children':[this[_0x53b0('0x3')],{'tag':'span','attributes':{'class':['ck',_0x53b0('0xa')]},'children':[{'text':_0x4a2e9c['name']}]},{'tag':'span','attributes':{'class':['ck',_0x53b0('0x9'),_0x4a2e9c[_0x53b0('0x5')]['getBackgroundColorClass']()],'aria-hidden':'true'}}]};_0x56d9a4&&(_0x19a22a[_0x53b0('0x6')]=_0x53b0('0x1'),_0x19a22a['on']={'click':_0x513e61['to'](()=>this['fire'](_0x53b0('0x4')))}),this[_0x53b0('0x0')](_0x19a22a);}}
23
+ const _0x4908=['name','execute','getBackgroundColorClass','div','true','span','ck-presence-list__dropdown-list-item','userView','setTemplate','tag','fire','color','button'];(function(_0x653cb,_0x4908a6){const _0x4d61df=function(_0x44e6be){while(--_0x44e6be){_0x653cb['push'](_0x653cb['shift']());}};_0x4d61df(++_0x4908a6);}(_0x4908,0x65));const _0x4d61=function(_0x653cb,_0x4908a6){_0x653cb=_0x653cb-0x0;let _0x4d61df=_0x4908[_0x653cb];return _0x4d61df;};import{View as _0x26a8af}from'ckeditor5/src/ui';import{UserView as _0x3a8f59}from'ckeditor5-collaboration/src/collaboration-core';export default class C extends _0x26a8af{constructor(_0x181aa9,_0x57a91f,_0x4d9c40){super(_0x181aa9);const _0x46be67=this['bindTemplate'];this[_0x4d61('0xa')]=new _0x3a8f59(_0x181aa9,_0x57a91f);const _0x28a874={'tag':_0x4d61('0x6'),'attributes':{'class':['ck',_0x4d61('0x9')]},'children':[this[_0x4d61('0xa')],{'tag':_0x4d61('0x8'),'attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x57a91f[_0x4d61('0x3')]}]},{'tag':_0x4d61('0x8'),'attributes':{'class':['ck','ck-presence-list__marker',_0x57a91f[_0x4d61('0x1')][_0x4d61('0x5')]()],'aria-hidden':_0x4d61('0x7')}}]};_0x4d9c40&&(_0x28a874[_0x4d61('0xc')]=_0x4d61('0x2'),_0x28a874['on']={'click':_0x46be67['to'](()=>this[_0x4d61('0x0')](_0x4d61('0x4')))}),this[_0x4d61('0xb')](_0x28a874);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x40c7=['items','createCollection','ck-presence-list__dropdown-list','div'];(function(_0x510bb7,_0x40c73a){var _0x4dc067=function(_0x60b1d6){while(--_0x60b1d6){_0x510bb7['push'](_0x510bb7['shift']());}};_0x4dc067(++_0x40c73a);}(_0x40c7,0x1b8));var _0x4dc0=function(_0x510bb7,_0x40c73a){_0x510bb7=_0x510bb7-0x0;var _0x4dc067=_0x40c7[_0x510bb7];return _0x4dc067;};import{View as _0x5ecf02}from'ckeditor5/src/ui';export default class A extends _0x5ecf02{constructor(_0x4427f2){super(_0x4427f2),this[_0x4dc0('0x0')]=this[_0x4dc0('0x1')](),this['setTemplate']({'tag':_0x4dc0('0x3'),'attributes':{'class':['ck',_0x4dc0('0x2')]},'children':[{'tag':_0x4dc0('0x3'),'attributes':{'class':['ck','ck-presence-list__dropdown-list-wrapper']},'children':this[_0x4dc0('0x0')]}]});}}
23
+ var _0x5247=['setTemplate','ck-presence-list__dropdown-list-wrapper','items','createCollection','div','ck-presence-list__dropdown-list'];(function(_0x6a48e1,_0x5247ea){var _0x30a428=function(_0x1ce7c8){while(--_0x1ce7c8){_0x6a48e1['push'](_0x6a48e1['shift']());}};_0x30a428(++_0x5247ea);}(_0x5247,0x7f));var _0x30a4=function(_0x6a48e1,_0x5247ea){_0x6a48e1=_0x6a48e1-0x0;var _0x30a428=_0x5247[_0x6a48e1];return _0x30a428;};import{View as _0x278aab}from'ckeditor5/src/ui';export default class A extends _0x278aab{constructor(_0x57a33f){super(_0x57a33f),this[_0x30a4('0x1')]=this[_0x30a4('0x2')](),this[_0x30a4('0x5')]({'tag':_0x30a4('0x3'),'attributes':{'class':['ck',_0x30a4('0x4')]},'children':[{'tag':_0x30a4('0x3'),'attributes':{'class':['ck',_0x30a4('0x0')]},'children':this['items']}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3340=['userView','hasTooltip','tooltipPosition','button','markerView','ck-presence-list__list-item__tooltip','span','tag','div','setTemplate','set','ck-presence-list__marker','color','fire','bindTemplate'];(function(_0x2e8b11,_0x334041){const _0x286511=function(_0x2fd0af){while(--_0x2fd0af){_0x2e8b11['push'](_0x2e8b11['shift']());}};_0x286511(++_0x334041);}(_0x3340,0x70));const _0x2865=function(_0x2e8b11,_0x334041){_0x2e8b11=_0x2e8b11-0x0;let _0x286511=_0x3340[_0x2e8b11];return _0x286511;};import{View as _0x4b20bb}from'ckeditor5/src/ui';import{UserView as _0x4d9f80}from'ckeditor5-collaboration/src/collaboration-core';export default class _ extends _0x4b20bb{constructor(_0xc05014,_0x438d01,_0x3b187f){super(_0xc05014);const _0x52d251=this[_0x2865('0x7')];this[_0x2865('0x3')](_0x2865('0x9'),!0x0),this[_0x2865('0x3')](_0x2865('0xa'),''),this[_0x2865('0x8')]=new _0x4d9f80(_0xc05014,_0x438d01),this[_0x2865('0xc')]=new it(_0xc05014,_0x438d01);const _0x32b6a8={'tag':_0x2865('0x1'),'attributes':{'class':['ck','ck-presence-list__list-item'],'data-cke-tooltip-text':this[_0x2865('0x8')]['name'],'data-cke-tooltip-position':_0x52d251['to'](_0x2865('0xa')),'data-cke-tooltip-disabled':_0x52d251['to'](_0x2865('0x9'),_0x40da6b=>!_0x40da6b),'data-cke-tooltip-class':_0x2865('0xd')},'children':[this['userView'],this['markerView']]};_0x3b187f&&(_0x32b6a8[_0x2865('0x0')]=_0x2865('0xb'),_0x32b6a8['on']={'click':_0x52d251['to'](()=>this[_0x2865('0x6')]('execute'))}),this[_0x2865('0x2')](_0x32b6a8);}}class it extends _0x4b20bb{constructor(_0x40a84a,_0x5f55b6){super(_0x40a84a),this[_0x2865('0x2')]({'tag':_0x2865('0xe'),'attributes':{'class':['ck',_0x2865('0x4'),_0x5f55b6[_0x2865('0x5')]['getBackgroundColorClass']()],'aria-hidden':'true'}});}}
23
+ const _0x2efc=['execute','setTemplate','color','tag','bindTemplate','tooltipPosition','set','hasTooltip','span','userView','ck-presence-list__marker','getBackgroundColorClass','div','name','ck-presence-list__list-item','markerView','button'];(function(_0x19b91d,_0x2efc92){const _0x15b47c=function(_0x4c432a){while(--_0x4c432a){_0x19b91d['push'](_0x19b91d['shift']());}};_0x15b47c(++_0x2efc92);}(_0x2efc,0xd0));const _0x15b4=function(_0x19b91d,_0x2efc92){_0x19b91d=_0x19b91d-0x0;let _0x15b47c=_0x2efc[_0x19b91d];return _0x15b47c;};import{View as _0x12c9ff}from'ckeditor5/src/ui';import{UserView as _0x45b7d1}from'ckeditor5-collaboration/src/collaboration-core';export default class _ extends _0x12c9ff{constructor(_0x2c5d09,_0x57b26c,_0x46cca3){super(_0x2c5d09);const _0x38bc10=this[_0x15b4('0x0')];this['set'](_0x15b4('0x3'),!0x0),this[_0x15b4('0x2')](_0x15b4('0x1'),''),this[_0x15b4('0x5')]=new _0x45b7d1(_0x2c5d09,_0x57b26c),this['markerView']=new it(_0x2c5d09,_0x57b26c);const _0xa1113d={'tag':_0x15b4('0x8'),'attributes':{'class':['ck',_0x15b4('0xa')],'data-cke-tooltip-text':this[_0x15b4('0x5')][_0x15b4('0x9')],'data-cke-tooltip-position':_0x38bc10['to'](_0x15b4('0x1')),'data-cke-tooltip-disabled':_0x38bc10['to'](_0x15b4('0x3'),_0x10735b=>!_0x10735b),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this[_0x15b4('0x5')],this[_0x15b4('0xb')]]};_0x46cca3&&(_0xa1113d[_0x15b4('0x10')]=_0x15b4('0xc'),_0xa1113d['on']={'click':_0x38bc10['to'](()=>this['fire'](_0x15b4('0xd')))}),this['setTemplate'](_0xa1113d);}}class it extends _0x12c9ff{constructor(_0x48df8a,_0x28a499){super(_0x48df8a),this[_0x15b4('0xe')]({'tag':_0x15b4('0x4'),'attributes':{'class':['ck',_0x15b4('0x6'),_0x28a499[_0x15b4('0xf')][_0x15b4('0x7')]()],'aria-hidden':'true'}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18cf=['bindTemplate','fire','ck-presence-list__list','setTemplate','div','items'];(function(_0x308628,_0x18cf54){const _0x3a5672=function(_0x4d5297){while(--_0x4d5297){_0x308628['push'](_0x308628['shift']());}};_0x3a5672(++_0x18cf54);}(_0x18cf,0x130));const _0x3a56=function(_0x308628,_0x18cf54){_0x308628=_0x308628-0x0;let _0x3a5672=_0x18cf[_0x308628];return _0x3a5672;};import{View as _0xde12a9}from'ckeditor5/src/ui';export default class rt extends _0xde12a9{constructor(_0x2da73f){super(_0x2da73f),this[_0x3a56('0x1')]=this['createCollection']();const _0x507127=this[_0x3a56('0x2')];this[_0x3a56('0x5')]({'tag':_0x3a56('0x0'),'attributes':{'class':['ck',_0x3a56('0x4')]},'children':this[_0x3a56('0x1')],'on':{'click':_0x507127['to'](()=>this[_0x3a56('0x3')]('execute'))}});}}
23
+ const _0x30c6=['bindTemplate','div','createCollection','items','ck-presence-list__list','fire'];(function(_0x273c66,_0x30c642){const _0x4e8d00=function(_0x25360c){while(--_0x25360c){_0x273c66['push'](_0x273c66['shift']());}};_0x4e8d00(++_0x30c642);}(_0x30c6,0x108));const _0x4e8d=function(_0x273c66,_0x30c642){_0x273c66=_0x273c66-0x0;let _0x4e8d00=_0x30c6[_0x273c66];return _0x4e8d00;};import{View as _0x410e0a}from'ckeditor5/src/ui';export default class rt extends _0x410e0a{constructor(_0x537256){super(_0x537256),this[_0x4e8d('0x3')]=this[_0x4e8d('0x2')]();const _0x3dad55=this[_0x4e8d('0x0')];this['setTemplate']({'tag':_0x4e8d('0x1'),'attributes':{'class':['ck',_0x4e8d('0x4')]},'children':this[_0x4e8d('0x3')],'on':{'click':_0x3dad55['to'](()=>this[_0x4e8d('0x5')]('execute'))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x292e=['tooltipPosition','counterView','listenTo','first','items','ck-presence-list--collapsed','ck-rounded-corners','ck-presence-list','inlineListView','change','isCollapsed','div'];(function(_0x1335c2,_0x292ed8){const _0x5f2861=function(_0x17ffd7){while(--_0x17ffd7){_0x1335c2['push'](_0x1335c2['shift']());}};_0x5f2861(++_0x292ed8);}(_0x292e,0xb4));const _0x5f28=function(_0x1335c2,_0x292ed8){_0x1335c2=_0x1335c2-0x0;let _0x5f2861=_0x292e[_0x1335c2];return _0x5f2861;};import{View as _0x184b41}from'ckeditor5/src/ui';import _0x59a436 from'./presencecounterview';import _0x4a1f70 from'./presenceinlinelistview';import'../../../theme/presencelist.css';export default class x extends _0x184b41{constructor(_0x2bbb3b){super(_0x2bbb3b);const _0x1748c9=this['bindTemplate'];this['set'](_0x5f28('0xa'),!0x0),this[_0x5f28('0x1')]=new _0x59a436(this['locale']),this[_0x5f28('0x8')]=new _0x4a1f70(_0x2bbb3b),this[_0x5f28('0x2')](this['inlineListView'][_0x5f28('0x4')],_0x5f28('0x9'),()=>{for(const _0x42f7bc of this[_0x5f28('0x8')][_0x5f28('0x4')])_0x42f7bc[_0x5f28('0x0')]='s';this[_0x5f28('0x8')][_0x5f28('0x4')][_0x5f28('0x3')]&&(this['inlineListView'][_0x5f28('0x4')]['first'][_0x5f28('0x0')]='se');}),this['setTemplate']({'tag':_0x5f28('0xb'),'attributes':{'class':['ck',_0x5f28('0x7'),'ck-reset',_0x5f28('0x6'),_0x1748c9['if'](_0x5f28('0xa'),_0x5f28('0x5'))]},'children':[this['counterView'],this['inlineListView']]});}}
23
+ const _0x7e95=['ck-presence-list','counterView','ck-reset','div','items','isCollapsed','tooltipPosition','listenTo','locale','bindTemplate','set','setTemplate','ck-presence-list--collapsed','first','inlineListView','ck-rounded-corners'];(function(_0x4e6930,_0x7e95b4){const _0x217025=function(_0x4be7b2){while(--_0x4be7b2){_0x4e6930['push'](_0x4e6930['shift']());}};_0x217025(++_0x7e95b4);}(_0x7e95,0x1ad));const _0x2170=function(_0x4e6930,_0x7e95b4){_0x4e6930=_0x4e6930-0x0;let _0x217025=_0x7e95[_0x4e6930];return _0x217025;};import{View as _0x4beb94}from'ckeditor5/src/ui';import _0x4cd13f from'./presencecounterview';import _0x23e468 from'./presenceinlinelistview';import'../../../theme/presencelist.css';export default class x extends _0x4beb94{constructor(_0x187068){super(_0x187068);const _0x412a23=this[_0x2170('0xc')];this[_0x2170('0xd')](_0x2170('0x8'),!0x0),this[_0x2170('0x4')]=new _0x4cd13f(this[_0x2170('0xb')]),this[_0x2170('0x1')]=new _0x23e468(_0x187068),this[_0x2170('0xa')](this[_0x2170('0x1')][_0x2170('0x7')],'change',()=>{for(const _0x4f4892 of this[_0x2170('0x1')][_0x2170('0x7')])_0x4f4892[_0x2170('0x9')]='s';this[_0x2170('0x1')][_0x2170('0x7')][_0x2170('0x0')]&&(this[_0x2170('0x1')]['items'][_0x2170('0x0')][_0x2170('0x9')]='se');}),this[_0x2170('0xe')]({'tag':_0x2170('0x6'),'attributes':{'class':['ck',_0x2170('0x3'),_0x2170('0x5'),_0x2170('0x2'),_0x412a23['if'](_0x2170('0x8'),_0x2170('0xf'))]},'children':[this[_0x2170('0x4')],this[_0x2170('0x1')]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x569e=['pluginName'];(function(_0x6cb111,_0x569ea9){var _0x32fb75=function(_0x21c92e){while(--_0x21c92e){_0x6cb111['push'](_0x6cb111['shift']());}};_0x32fb75(++_0x569ea9);}(_0x569e,0x80));var _0x32fb=function(_0x6cb111,_0x569ea9){_0x6cb111=_0x6cb111-0x0;var _0x32fb75=_0x569e[_0x6cb111];return _0x32fb75;};import{ContextPlugin as _0x2d8991}from'ckeditor5/src/core';import _0x11c3ab from'./realtimecollaborativeediting/sessions';import _0x30c0f9 from'./presencelist/presencelistui';export default class s extends _0x2d8991{static get['requires'](){return[_0x11c3ab,_0x30c0f9];}static get[_0x32fb('0x0')](){return'PresenceList';}}
23
+ var _0x4a17=['requires','pluginName','PresenceList'];(function(_0x550883,_0x4a17d7){var _0x2871de=function(_0x5153d4){while(--_0x5153d4){_0x550883['push'](_0x550883['shift']());}};_0x2871de(++_0x4a17d7);}(_0x4a17,0x1c9));var _0x2871=function(_0x550883,_0x4a17d7){_0x550883=_0x550883-0x0;var _0x2871de=_0x4a17[_0x550883];return _0x2871de;};import{ContextPlugin as _0x1eabb5}from'ckeditor5/src/core';import _0x129068 from'./realtimecollaborativeediting/sessions';import _0x3fd4b6 from'./presencelist/presencelistui';export default class s extends _0x1eabb5{static get[_0x2871('0x2')](){return[_0x129068,_0x3fd4b6];}static get[_0x2871('0x0')](){return _0x2871('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x346b=['content','commentThreadId','listenTo','destroy','_getService','commentId','sessionAdd:','context','getConnectedSessions','add','comments','hasCommentThread','permissions','mySessionId','getCommentThread','unregister','cloudservicescommentsadapter-service-not-exist','code','remove','getCommentThreads','addToReconnectionStack','CommentsService','has','from','commentUpdated','_connectService','register','collaboration.channelId','message','cloudservicescommentsadapter-disconnect-not-exist','keys','updateComment','map','removeCommentThread','addComment','createdAt','config','Permissions','disconnect','CommentsRepository','removeComment','reconnect','_terminateService','delete','startsWith','getUser','404','setPermissions','cloud-services-internal-error:\x20Request\x20timeout.','catch','commentThreadRemoved','requires','commentRemoved','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','cloudservicescommentsadapter-connect-already-connected','_setUpService','getMany','connect','get','_services','getComment','_fetchMissingUsersForThreads','commentAdded','addCommentThread','plugins','assign'];(function(_0x208812,_0x346bd0){const _0x4ce69a=function(_0x23bd0b){while(--_0x23bd0b){_0x208812['push'](_0x208812['shift']());}};_0x4ce69a(++_0x346bd0);}(_0x346b,0xec));const _0x4ce6=function(_0x208812,_0x346bd0){_0x208812=_0x208812-0x0;let _0x4ce69a=_0x346b[_0x208812];return _0x4ce69a;};import{Context as _0x3bb12d,ContextPlugin as _0x219fcd}from'ckeditor5/src/core';import{CKEditorError as _0x349ee7}from'ckeditor5/src/utils';import{Users as _0x255506}from'ckeditor5-collaboration/src/collaboration-core';import _0x55ea06 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x358a09 from'@ckeditor/ckeditor-cloud-services-collaboration/src/comments-v2/commentsservice';import _0x54c8c4 from'../realtimecollaborativeediting/websocketgateway';import _0x145b2b from'../realtimecollaborativeediting/sessions';export default class a extends _0x219fcd{static get[_0x4ce6('0xd')](){return[_0x54c8c4,_0x4ce6('0x1'),_0x145b2b,_0x255506];}constructor(_0x32dba5){super(_0x32dba5),this[_0x4ce6('0x15')]=new Map();}async['init'](){const _0x4c9ebf=this[_0x4ce6('0x23')],_0x4e247c=_0x4c9ebf[_0x4ce6('0x1a')]['get'](_0x4ce6('0x1'));if(_0x4c9ebf['plugins'][_0x4ce6('0x14')](_0x54c8c4)[_0x4ce6('0x30')](this),_0x4e247c['adapter']={'getCommentThread':async({channelId:_0x62983a,threadId:_0x52d591})=>{const _0x4125bd=await this['_getService'](_0x62983a)[_0x4ce6('0x2a')](_0x52d591)[_0x4ce6('0xb')](R);return await this['_fetchMissingUsersForThreads']([_0x4125bd]),{'threadId':_0x4125bd['commentThreadId'],'comments':_0x4125bd[_0x4ce6('0x26')][_0x4ce6('0x3c')](T)};},'removeCommentThread':({channelId:_0x546cea,threadId:_0x292457})=>this[_0x4ce6('0x20')](_0x546cea)[_0x4ce6('0x3d')](_0x292457)[_0x4ce6('0xb')](S)[_0x4ce6('0xb')](R),'addComment':({channelId:_0x2e8348,threadId:_0x1cc832,commentId:_0x37c803,content:_0x203025,attributes:_0x21f7e1})=>this[_0x4ce6('0x20')](_0x2e8348)[_0x4ce6('0x3e')](_0x1cc832,_0x37c803,_0x203025,_0x21f7e1)['catch'](R),'updateComment':({channelId:_0x232768,threadId:_0x462aca,commentId:_0x5dae8e,content:_0x299051,attributes:_0x14a133})=>this['_getService'](_0x232768)[_0x4ce6('0x3b')](_0x462aca,_0x5dae8e,_0x299051,_0x14a133)['catch'](S)[_0x4ce6('0xb')](R),'removeComment':({channelId:_0x23e871,threadId:_0x1fceea,commentId:_0x3d20c0})=>this[_0x4ce6('0x20')](_0x23e871)[_0x4ce6('0x2')](_0x1fceea,_0x3d20c0)[_0x4ce6('0xb')](S)['catch'](R)},_0x4c9ebf instanceof _0x3bb12d){const _0x211eed=_0x4c9ebf[_0x4ce6('0x40')]['get'](_0x4ce6('0x37')),_0x50e3e5=_0x4c9ebf[_0x4ce6('0x1a')][_0x4ce6('0x14')](_0x145b2b);await this[_0x4ce6('0x11')](_0x211eed);const _0xb82514=await this[_0x4ce6('0x15')]['get'](_0x211eed)['getConnectedSessions']();this[_0x4ce6('0x1e')](_0x50e3e5,_0x4ce6('0x22')+_0x211eed,(_0x503abf,{session:_0x4a35c3})=>{_0x4a35c3['id']===_0x50e3e5[_0x4ce6('0x29')]&&(_0x503abf['off'](),this['context'][_0x4ce6('0x1a')]['get'](_0x4ce6('0x41'))[_0x4ce6('0x9')](_0x4a35c3[_0x4ce6('0x28')],_0x211eed));}),_0x50e3e5[_0x4ce6('0x36')](_0x211eed,_0xb82514);}}async[_0x4ce6('0x11')](_0x577346){if(this[_0x4ce6('0x15')][_0x4ce6('0x32')](_0x577346))throw new _0x349ee7(_0x4ce6('0x10'),null,{'channelId':_0x577346});const _0xca817c=this[_0x4ce6('0x23')]['plugins'][_0x4ce6('0x14')](_0x4ce6('0x1')),_0xbe9492=new a[(_0x4ce6('0x31'))](_0x577346);this[_0x4ce6('0x15')]['set'](_0x577346,_0xbe9492),this[_0x4ce6('0x1e')](_0xbe9492,_0x4ce6('0xc'),(_0x2527f3,{commentThreadId:_0x4eead3})=>{const _0x21d894=_0xca817c[_0x4ce6('0x2a')](_0x4eead3);_0x21d894&&_0x21d894[_0x4ce6('0x2e')]({'isFromAdapter':!0x0});}),this['listenTo'](_0xbe9492,_0x4ce6('0x18'),(_0x4b4c81,_0x515a90)=>{const _0x20f0b2=_0x515a90[_0x4ce6('0x1d')];_0xca817c[_0x4ce6('0x27')](_0x20f0b2)||_0xca817c[_0x4ce6('0x19')]({'channelId':_0x577346,'threadId':_0x20f0b2,'isFromAdapter':!0x0});const _0x20e8c1=_0xca817c[_0x4ce6('0x2a')](_0x20f0b2);_0x20e8c1&&_0x20e8c1[_0x4ce6('0x3e')](Object[_0x4ce6('0x1b')](T(_0x515a90),{'isFromAdapter':!0x0}));}),this['listenTo'](_0xbe9492,_0x4ce6('0x34'),(_0x5052a3,{commentThreadId:_0xcf56db,commentId:_0x5c810a,content:_0x46c648,attributes:_0x2a8460})=>{const _0x3b2ac0=_0xca817c['getCommentThread'](_0xcf56db);if(_0x3b2ac0){const _0x23f065=_0x3b2ac0[_0x4ce6('0x16')](_0x5c810a);_0x23f065&&_0x23f065['update']({'content':_0x46c648,'attributes':_0x2a8460,'isFromAdapter':!0x0});}}),this[_0x4ce6('0x1e')](_0xbe9492,_0x4ce6('0xe'),(_0x655643,{commentThreadId:_0x2c5d58,commentId:_0x558d1a})=>{const _0x49f992=_0xca817c[_0x4ce6('0x2a')](_0x2c5d58);if(_0x49f992){const _0x3b0466=_0x49f992[_0x4ce6('0x16')](_0x558d1a);_0x3b0466&&_0x3b0466[_0x4ce6('0x2e')]({'isFromAdapter':!0x0});}}),await this[_0x4ce6('0x35')](_0x577346);}[_0x4ce6('0x1f')](){if(this[_0x4ce6('0x23')]instanceof _0x3bb12d){const _0x2d6419=this[_0x4ce6('0x23')][_0x4ce6('0x40')][_0x4ce6('0x14')](_0x4ce6('0x37'));this[_0x4ce6('0x4')](_0x2d6419);}}[_0x4ce6('0x4')](_0xa482c2){if(!this['_services'][_0x4ce6('0x32')](_0xa482c2))throw new _0x349ee7(_0x4ce6('0x39'),null,{'channelId':_0xa482c2});this[_0x4ce6('0x20')](_0xa482c2)[_0x4ce6('0x0')](),this['_services'][_0x4ce6('0x5')](_0xa482c2);}async[_0x4ce6('0x3')](){for(const _0x47717c of this[_0x4ce6('0x15')][_0x4ce6('0x3a')]())await this[_0x4ce6('0x35')](_0x47717c);if(this['context']instanceof _0x3bb12d){const _0x8668ec=this[_0x4ce6('0x23')][_0x4ce6('0x40')][_0x4ce6('0x14')](_0x4ce6('0x37')),_0xc6a8=this[_0x4ce6('0x23')]['plugins'][_0x4ce6('0x14')](_0x145b2b);_0xc6a8[_0x4ce6('0x2b')](_0x8668ec);const _0x20d93c=await this[_0x4ce6('0x15')][_0x4ce6('0x14')](_0x8668ec)[_0x4ce6('0x24')]();_0xc6a8[_0x4ce6('0x36')](_0x8668ec,_0x20d93c);}}async[_0x4ce6('0x35')](_0x3b6bf2){const {connection:_0x1fb6ad}=this[_0x4ce6('0x23')][_0x4ce6('0x1a')][_0x4ce6('0x14')](_0x54c8c4),_0x3fc15c=this[_0x4ce6('0x23')][_0x4ce6('0x1a')][_0x4ce6('0x14')]('CommentsRepository'),_0x574793=this[_0x4ce6('0x15')]['get'](_0x3b6bf2),_0x42ac73=await _0x574793[_0x4ce6('0x13')](_0x1fb6ad);await this[_0x4ce6('0x17')](_0x42ac73);const _0x355a6a=new Set(Array[_0x4ce6('0x33')](_0x3fc15c[_0x4ce6('0x2f')]({'channelId':_0x3b6bf2}),_0x57f325=>_0x57f325['id']));for(const _0x24b8f6 of _0x42ac73)_0x355a6a['delete'](_0x24b8f6[_0x4ce6('0x1d')]);for(const _0x349840 of _0x355a6a)_0x3fc15c[_0x4ce6('0x2a')](_0x349840)['remove']({'isFromAdapter':!0x0});for(const _0x359ad8 of _0x42ac73){let _0x36ea80=_0x3fc15c[_0x4ce6('0x2a')](_0x359ad8[_0x4ce6('0x1d')]);_0x36ea80||(_0x36ea80=_0x3fc15c[_0x4ce6('0x19')]({'channelId':_0x3b6bf2,'threadId':_0x359ad8[_0x4ce6('0x1d')],'isFromAdapter':!0x0}));const _0x52c03f=new Set(Array[_0x4ce6('0x33')](_0x36ea80[_0x4ce6('0x26')],_0x213267=>_0x213267['id']));for(const _0x494486 of _0x359ad8[_0x4ce6('0x26')])_0x52c03f['delete'](_0x494486['commentId']);for(const _0x3344ad of _0x52c03f)_0x36ea80['getComment'](_0x3344ad)[_0x4ce6('0x2e')]({'isFromAdapter':!0x0});for(const _0x27c815 of _0x359ad8[_0x4ce6('0x26')]){const _0x15f88e=_0x36ea80[_0x4ce6('0x16')](_0x27c815[_0x4ce6('0x21')]);_0x15f88e?_0x15f88e[_0x4ce6('0x1c')]!==_0x27c815['content']&&_0x15f88e['update']({'content':_0x27c815[_0x4ce6('0x1c')],'isFromAdapter':!0x0}):_0x36ea80[_0x4ce6('0x3e')](Object[_0x4ce6('0x1b')](T(_0x27c815),{'isFromAdapter':!0x0}));}}}[_0x4ce6('0x20')](_0x5dfcdf){if(!this['_services'][_0x4ce6('0x32')](_0x5dfcdf))throw new _0x349ee7(_0x4ce6('0x2c'),null,{'channelId':_0x5dfcdf});return this['_services'][_0x4ce6('0x14')](_0x5dfcdf);}async[_0x4ce6('0x17')](_0x193de4){const _0x2b0994=this[_0x4ce6('0x23')][_0x4ce6('0x1a')]['get'](_0x255506),{connection:_0x5629de}=this[_0x4ce6('0x23')][_0x4ce6('0x1a')]['get'](_0x54c8c4),_0x4c3326=new Set();for(const {comments:_0x411c8e}of _0x193de4)for(const {userId:_0x50d163}of _0x411c8e)_0x2b0994[_0x4ce6('0x7')](_0x50d163)||_0x4c3326[_0x4ce6('0x25')](_0x50d163);if(0x0===_0x4c3326['size'])return;const _0x414847=await _0x55ea06[_0x4ce6('0x12')](_0x5629de,Array['from'](_0x4c3326));for(const _0x5b68d8 of _0x414847)_0x2b0994[_0x4ce6('0x7')](_0x5b68d8['id'])||_0x2b0994['addUser'](_0x5b68d8);}}async function S(_0x4fd21b){if(_0x4ce6('0x8')!==_0x4fd21b[_0x4ce6('0x2d')])throw _0x4fd21b;}function R(_0x5ec556){if((_0x5685b4=_0x5ec556)[_0x4ce6('0x38')]['startsWith'](_0x4ce6('0xf'))||_0x5685b4[_0x4ce6('0x38')][_0x4ce6('0x6')]('cloud-services-internal-error:\x20Not\x20connected.')||_0x5685b4[_0x4ce6('0x38')][_0x4ce6('0x6')](_0x4ce6('0xa')))return new Promise(()=>{});var _0x5685b4;throw _0x5ec556;}function T(_0x45e969){return{'threadId':_0x45e969[_0x4ce6('0x1d')],'commentId':_0x45e969[_0x4ce6('0x21')],'content':_0x45e969[_0x4ce6('0x1c')],'createdAt':_0x45e969[_0x4ce6('0x3f')],'authorId':_0x45e969['userId'],'attributes':_0x45e969['attributes']};}a[_0x4ce6('0x31')]=_0x358a09;
23
+ const _0x3ade=['remove','commentThreadId','_services','addComment','commentId','init','disconnect','config','_connectService','destroy','cloudservicescommentsadapter-service-not-exist','_setUpService','CommentsRepository','commentRemoved','add','CommentsService','content','unregister','addCommentThread','register','context','commentUpdated','requires','off','_terminateService','reconnect','removeComment','message','has','plugins','cloud-services-internal-error:\x20Not\x20connected.','set','attributes','userId','listenTo','404','sessionAdd:','permissions','startsWith','getComment','getUser','delete','getCommentThreads','assign','Permissions','_getService','hasCommentThread','map','get','catch','getCommentThread','commentAdded','createdAt','connect','getConnectedSessions','_fetchMissingUsersForThreads','update','comments','addUser','keys','mySessionId','size','cloudservicescommentsadapter-disconnect-not-exist','adapter','from','collaboration.channelId','cloudservicescommentsadapter-connect-already-connected'];(function(_0xae4731,_0x3ade51){const _0x10b7e2=function(_0x2252d9){while(--_0x2252d9){_0xae4731['push'](_0xae4731['shift']());}};_0x10b7e2(++_0x3ade51);}(_0x3ade,0x91));const _0x10b7=function(_0xae4731,_0x3ade51){_0xae4731=_0xae4731-0x0;let _0x10b7e2=_0x3ade[_0xae4731];return _0x10b7e2;};import{Context as _0xd63934,ContextPlugin as _0x10a5fa}from'ckeditor5/src/core';import{CKEditorError as _0x3f5dd7}from'ckeditor5/src/utils';import{Users as _0x11b5d9}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b0228 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x5cea99 from'@ckeditor/ckeditor-cloud-services-collaboration/src/comments-v2/commentsservice';import _0x21cc89 from'../realtimecollaborativeediting/websocketgateway';import _0x266b76 from'../realtimecollaborativeediting/sessions';export default class a extends _0x10a5fa{static get[_0x10b7('0xb')](){return[_0x21cc89,'CommentsRepository',_0x266b76,_0x11b5d9];}constructor(_0x1689be){super(_0x1689be),this[_0x10b7('0x3a')]=new Map();}async[_0x10b7('0x3d')](){const _0x2c2ea2=this[_0x10b7('0x9')],_0x4e0796=_0x2c2ea2[_0x10b7('0x12')]['get'](_0x10b7('0x1'));if(_0x2c2ea2[_0x10b7('0x12')][_0x10b7('0x25')](_0x21cc89)['addToReconnectionStack'](this),_0x4e0796[_0x10b7('0x34')]={'getCommentThread':async({channelId:_0x5cba06,threadId:_0x33337f})=>{const _0x42b4ed=await this[_0x10b7('0x22')](_0x5cba06)[_0x10b7('0x27')](_0x33337f)['catch'](R);return await this[_0x10b7('0x2c')]([_0x42b4ed]),{'threadId':_0x42b4ed[_0x10b7('0x39')],'comments':_0x42b4ed[_0x10b7('0x2e')][_0x10b7('0x24')](T)};},'removeCommentThread':({channelId:_0xf48519,threadId:_0x1b6545})=>this[_0x10b7('0x22')](_0xf48519)['removeCommentThread'](_0x1b6545)['catch'](S)['catch'](R),'addComment':({channelId:_0x1ace87,threadId:_0x1db4ac,commentId:_0x5697a3,content:_0x1a216a,attributes:_0x18e393})=>this[_0x10b7('0x22')](_0x1ace87)[_0x10b7('0x3b')](_0x1db4ac,_0x5697a3,_0x1a216a,_0x18e393)['catch'](R),'updateComment':({channelId:_0x4f5235,threadId:_0x5d4ee5,commentId:_0x2d237b,content:_0x1ac52b,attributes:_0x32f136})=>this[_0x10b7('0x22')](_0x4f5235)['updateComment'](_0x5d4ee5,_0x2d237b,_0x1ac52b,_0x32f136)['catch'](S)[_0x10b7('0x26')](R),'removeComment':({channelId:_0x5988c4,threadId:_0x9431da,commentId:_0x282fe2})=>this[_0x10b7('0x22')](_0x5988c4)[_0x10b7('0xf')](_0x9431da,_0x282fe2)[_0x10b7('0x26')](S)[_0x10b7('0x26')](R)},_0x2c2ea2 instanceof _0xd63934){const _0x2ee8d3=_0x2c2ea2[_0x10b7('0x3f')][_0x10b7('0x25')](_0x10b7('0x36')),_0x534665=_0x2c2ea2['plugins'][_0x10b7('0x25')](_0x266b76);await this[_0x10b7('0x0')](_0x2ee8d3);const _0x3bd3d9=await this[_0x10b7('0x3a')][_0x10b7('0x25')](_0x2ee8d3)[_0x10b7('0x2b')]();this[_0x10b7('0x17')](_0x534665,_0x10b7('0x19')+_0x2ee8d3,(_0x2056d9,{session:_0x46d93c})=>{_0x46d93c['id']===_0x534665[_0x10b7('0x31')]&&(_0x2056d9[_0x10b7('0xc')](),this[_0x10b7('0x9')]['plugins']['get'](_0x10b7('0x21'))['setPermissions'](_0x46d93c[_0x10b7('0x1a')],_0x2ee8d3));}),_0x534665[_0x10b7('0x8')](_0x2ee8d3,_0x3bd3d9);}}async[_0x10b7('0x0')](_0x105568){if(this[_0x10b7('0x3a')][_0x10b7('0x11')](_0x105568))throw new _0x3f5dd7(_0x10b7('0x37'),null,{'channelId':_0x105568});const _0x3e8632=this[_0x10b7('0x9')][_0x10b7('0x12')]['get'](_0x10b7('0x1')),_0x3383c3=new a[(_0x10b7('0x4'))](_0x105568);this[_0x10b7('0x3a')][_0x10b7('0x14')](_0x105568,_0x3383c3),this[_0x10b7('0x17')](_0x3383c3,'commentThreadRemoved',(_0x1d0a9f,{commentThreadId:_0x2c6b38})=>{const _0x3e7728=_0x3e8632['getCommentThread'](_0x2c6b38);_0x3e7728&&_0x3e7728[_0x10b7('0x38')]({'isFromAdapter':!0x0});}),this[_0x10b7('0x17')](_0x3383c3,_0x10b7('0x28'),(_0x5c281a,_0x155f53)=>{const _0x15aec6=_0x155f53[_0x10b7('0x39')];_0x3e8632[_0x10b7('0x23')](_0x15aec6)||_0x3e8632[_0x10b7('0x7')]({'channelId':_0x105568,'threadId':_0x15aec6,'isFromAdapter':!0x0});const _0x3e6d7d=_0x3e8632[_0x10b7('0x27')](_0x15aec6);_0x3e6d7d&&_0x3e6d7d[_0x10b7('0x3b')](Object[_0x10b7('0x20')](T(_0x155f53),{'isFromAdapter':!0x0}));}),this[_0x10b7('0x17')](_0x3383c3,_0x10b7('0xa'),(_0x3c13b7,{commentThreadId:_0xe48725,commentId:_0x2b477d,content:_0x1242fa,attributes:_0x2ec27e})=>{const _0x5db8b1=_0x3e8632[_0x10b7('0x27')](_0xe48725);if(_0x5db8b1){const _0x366dc7=_0x5db8b1[_0x10b7('0x1c')](_0x2b477d);_0x366dc7&&_0x366dc7[_0x10b7('0x2d')]({'content':_0x1242fa,'attributes':_0x2ec27e,'isFromAdapter':!0x0});}}),this[_0x10b7('0x17')](_0x3383c3,_0x10b7('0x2'),(_0x1a9cc0,{commentThreadId:_0x3ab807,commentId:_0x5ccd84})=>{const _0x1992dc=_0x3e8632['getCommentThread'](_0x3ab807);if(_0x1992dc){const _0x294e07=_0x1992dc[_0x10b7('0x1c')](_0x5ccd84);_0x294e07&&_0x294e07[_0x10b7('0x38')]({'isFromAdapter':!0x0});}}),await this[_0x10b7('0x40')](_0x105568);}[_0x10b7('0x41')](){if(this[_0x10b7('0x9')]instanceof _0xd63934){const _0x3403d9=this[_0x10b7('0x9')]['config'][_0x10b7('0x25')](_0x10b7('0x36'));this[_0x10b7('0xd')](_0x3403d9);}}[_0x10b7('0xd')](_0x36a48c){if(!this[_0x10b7('0x3a')][_0x10b7('0x11')](_0x36a48c))throw new _0x3f5dd7(_0x10b7('0x33'),null,{'channelId':_0x36a48c});this[_0x10b7('0x22')](_0x36a48c)[_0x10b7('0x3e')](),this['_services'][_0x10b7('0x1e')](_0x36a48c);}async[_0x10b7('0xe')](){for(const _0x2cea0a of this['_services'][_0x10b7('0x30')]())await this[_0x10b7('0x40')](_0x2cea0a);if(this['context']instanceof _0xd63934){const _0x20d579=this[_0x10b7('0x9')][_0x10b7('0x3f')][_0x10b7('0x25')]('collaboration.channelId'),_0xb3d444=this['context'][_0x10b7('0x12')]['get'](_0x266b76);_0xb3d444[_0x10b7('0x6')](_0x20d579);const _0x5f3ae2=await this[_0x10b7('0x3a')]['get'](_0x20d579)['getConnectedSessions']();_0xb3d444[_0x10b7('0x8')](_0x20d579,_0x5f3ae2);}}async['_connectService'](_0x50c267){const {connection:_0x3f3630}=this['context'][_0x10b7('0x12')]['get'](_0x21cc89),_0xf90a31=this[_0x10b7('0x9')][_0x10b7('0x12')][_0x10b7('0x25')](_0x10b7('0x1')),_0x483265=this[_0x10b7('0x3a')][_0x10b7('0x25')](_0x50c267),_0x3dc987=await _0x483265[_0x10b7('0x2a')](_0x3f3630);await this[_0x10b7('0x2c')](_0x3dc987);const _0x3e335b=new Set(Array[_0x10b7('0x35')](_0xf90a31[_0x10b7('0x1f')]({'channelId':_0x50c267}),_0x42d1ca=>_0x42d1ca['id']));for(const _0x49df2f of _0x3dc987)_0x3e335b[_0x10b7('0x1e')](_0x49df2f[_0x10b7('0x39')]);for(const _0x586f8f of _0x3e335b)_0xf90a31[_0x10b7('0x27')](_0x586f8f)[_0x10b7('0x38')]({'isFromAdapter':!0x0});for(const _0x738099 of _0x3dc987){let _0x487a99=_0xf90a31[_0x10b7('0x27')](_0x738099[_0x10b7('0x39')]);_0x487a99||(_0x487a99=_0xf90a31[_0x10b7('0x7')]({'channelId':_0x50c267,'threadId':_0x738099['commentThreadId'],'isFromAdapter':!0x0}));const _0x33d238=new Set(Array['from'](_0x487a99['comments'],_0x4b3439=>_0x4b3439['id']));for(const _0x2f5473 of _0x738099[_0x10b7('0x2e')])_0x33d238[_0x10b7('0x1e')](_0x2f5473['commentId']);for(const _0x1e91f5 of _0x33d238)_0x487a99[_0x10b7('0x1c')](_0x1e91f5)[_0x10b7('0x38')]({'isFromAdapter':!0x0});for(const _0x44103b of _0x738099[_0x10b7('0x2e')]){const _0x3da26f=_0x487a99[_0x10b7('0x1c')](_0x44103b[_0x10b7('0x3c')]);_0x3da26f?_0x3da26f['content']!==_0x44103b[_0x10b7('0x5')]&&_0x3da26f[_0x10b7('0x2d')]({'content':_0x44103b[_0x10b7('0x5')],'isFromAdapter':!0x0}):_0x487a99[_0x10b7('0x3b')](Object[_0x10b7('0x20')](T(_0x44103b),{'isFromAdapter':!0x0}));}}}['_getService'](_0x45603d){if(!this[_0x10b7('0x3a')][_0x10b7('0x11')](_0x45603d))throw new _0x3f5dd7(_0x10b7('0x42'),null,{'channelId':_0x45603d});return this[_0x10b7('0x3a')][_0x10b7('0x25')](_0x45603d);}async['_fetchMissingUsersForThreads'](_0x4df0c9){const _0x4fb65a=this[_0x10b7('0x9')][_0x10b7('0x12')][_0x10b7('0x25')](_0x11b5d9),{connection:_0x395c34}=this['context']['plugins'][_0x10b7('0x25')](_0x21cc89),_0x39720a=new Set();for(const {comments:_0x4ef183}of _0x4df0c9)for(const {userId:_0x30cc32}of _0x4ef183)_0x4fb65a[_0x10b7('0x1d')](_0x30cc32)||_0x39720a[_0x10b7('0x3')](_0x30cc32);if(0x0===_0x39720a[_0x10b7('0x32')])return;const _0x14fd99=await _0x4b0228['getMany'](_0x395c34,Array['from'](_0x39720a));for(const _0x66bdfd of _0x14fd99)_0x4fb65a['getUser'](_0x66bdfd['id'])||_0x4fb65a[_0x10b7('0x2f')](_0x66bdfd);}}async function S(_0x4fc3c1){if(_0x10b7('0x18')!==_0x4fc3c1['code'])throw _0x4fc3c1;}function R(_0xe930d2){if((_0x4b6ce3=_0xe930d2)[_0x10b7('0x10')]['startsWith']('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x4b6ce3['message'][_0x10b7('0x1b')](_0x10b7('0x13'))||_0x4b6ce3[_0x10b7('0x10')][_0x10b7('0x1b')]('cloud-services-internal-error:\x20Request\x20timeout.'))return new Promise(()=>{});var _0x4b6ce3;throw _0xe930d2;}function T(_0x4372c3){return{'threadId':_0x4372c3['commentThreadId'],'commentId':_0x4372c3[_0x10b7('0x3c')],'content':_0x4372c3[_0x10b7('0x5')],'createdAt':_0x4372c3[_0x10b7('0x29')],'authorId':_0x4372c3[_0x10b7('0x16')],'attributes':_0x4372c3[_0x10b7('0x15')]};}a[_0x10b7('0x4')]=_0x5cea99;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a4c=['pluginName','Comments','editor','data','once','ready','collaboration.channelId','listenTo','_terminateService','get','plugins','config','requires','connected','CommentsEditing','change:state','RealTimeCollaborativeComments'];(function(_0x4c117e,_0x3a4c72){const _0x166158=function(_0x112ccf){while(--_0x112ccf){_0x4c117e['push'](_0x4c117e['shift']());}};_0x166158(++_0x3a4c72);}(_0x3a4c,0x1a3));const _0x1661=function(_0x4c117e,_0x3a4c72){_0x4c117e=_0x4c117e-0x0;let _0x166158=_0x3a4c[_0x4c117e];return _0x166158;};import{Plugin as _0x4baba1}from'ckeditor5/src/core';import _0x1ea5fc from'./realtimecollaborativecomments/cloudservicescommentsadapter';import _0xa5a917 from'./realtimecollaborativeediting';import _0x239139 from'./realtimecollaborativeediting/websocketgateway';export default class m extends _0x4baba1{static get[_0x1661('0x1')](){return[_0x1661('0x7'),_0x1ea5fc,_0xa5a917,_0x239139];}static get[_0x1661('0x6')](){return _0x1661('0x5');}['init'](){const _0x24ce69=this[_0x1661('0x8')][_0x1661('0x10')][_0x1661('0xf')](_0x239139),_0x5ab1b7=this['editor'][_0x1661('0x10')][_0x1661('0xf')](_0x1661('0x3')),_0x1b315b=this['editor']['plugins'][_0x1661('0xf')](_0x1ea5fc);return this['editor'][_0x1661('0x9')][_0x1661('0xa')](_0x1661('0xb'),()=>{this[_0x1661('0xd')](_0x24ce69,'change:state',(_0x3ce7e9,_0x6bc512,_0x47ed45)=>{_0x5ab1b7['isThreadsLoadingPaused']=_0x1661('0x2')!==_0x47ed45;});}),this[_0x1661('0xd')](_0x24ce69,_0x1661('0x4'),(_0x14ec86,_0x1e7ef4,_0x44bb6f)=>{this['editor'][_0x1661('0x10')][_0x1661('0xf')]('CommentsRepository')['switchReadOnly'](_0x1661('0x2')!==_0x44bb6f);}),_0x1b315b['_setUpService'](this['editor'][_0x1661('0x0')][_0x1661('0xf')]('collaboration.channelId'));}['destroy'](){this[_0x1661('0x8')][_0x1661('0x10')][_0x1661('0xf')](_0x1ea5fc)[_0x1661('0xe')](this[_0x1661('0x8')][_0x1661('0x0')][_0x1661('0xf')](_0x1661('0xc'))),super['destroy']();}}
23
+ const _0x234d=['CommentsEditing','pluginName','get','destroy','connected','Comments','editor','init','plugins','change:state','RealTimeCollaborativeComments','requires','collaboration.channelId','CommentsRepository','_setUpService','isThreadsLoadingPaused','listenTo'];(function(_0x1f3c33,_0x234d0e){const _0x4d1532=function(_0x2b16e6){while(--_0x2b16e6){_0x1f3c33['push'](_0x1f3c33['shift']());}};_0x4d1532(++_0x234d0e);}(_0x234d,0xe7));const _0x4d15=function(_0x1f3c33,_0x234d0e){_0x1f3c33=_0x1f3c33-0x0;let _0x4d1532=_0x234d[_0x1f3c33];return _0x4d1532;};import{Plugin as _0x3ccdd8}from'ckeditor5/src/core';import _0x4684e1 from'./realtimecollaborativecomments/cloudservicescommentsadapter';import _0x645db from'./realtimecollaborativeediting';import _0x2a244d from'./realtimecollaborativeediting/websocketgateway';export default class m extends _0x3ccdd8{static get[_0x4d15('0x1')](){return[_0x4d15('0xc'),_0x4684e1,_0x645db,_0x2a244d];}static get[_0x4d15('0x8')](){return _0x4d15('0x0');}[_0x4d15('0xe')](){const _0x8170b2=this['editor'][_0x4d15('0xf')][_0x4d15('0x9')](_0x2a244d),_0x5af20a=this[_0x4d15('0xd')]['plugins'][_0x4d15('0x9')](_0x4d15('0x7')),_0xd9b59e=this[_0x4d15('0xd')][_0x4d15('0xf')]['get'](_0x4684e1);return this[_0x4d15('0xd')]['data']['once']('ready',()=>{this[_0x4d15('0x6')](_0x8170b2,_0x4d15('0x10'),(_0x13d02d,_0x1079dd,_0x429dce)=>{_0x5af20a[_0x4d15('0x5')]=_0x4d15('0xb')!==_0x429dce;});}),this[_0x4d15('0x6')](_0x8170b2,_0x4d15('0x10'),(_0xfd819d,_0x3a70e4,_0x52a614)=>{this['editor'][_0x4d15('0xf')][_0x4d15('0x9')](_0x4d15('0x3'))['switchReadOnly'](_0x4d15('0xb')!==_0x52a614);}),_0xd9b59e[_0x4d15('0x4')](this['editor']['config'][_0x4d15('0x9')](_0x4d15('0x2')));}[_0x4d15('0xa')](){this[_0x4d15('0xd')][_0x4d15('0xf')]['get'](_0x4684e1)['_terminateService'](this[_0x4d15('0xd')]['config'][_0x4d15('0x9')](_0x4d15('0x2'))),super[_0x4d15('0xa')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2366=['includes','_handleSendingSelectionMarkers','_compressOperations','createRange','collaboration-missing-channelid','init','_sendBufferedOperations','cloud-services-internal-error:\x20Request\x20timeout.','_bufferedOperations','requires','unregister','addToReconnectionStack','markers','_disconnectionOperations','startsWith','_hasSelectionChanged','then','type','rtc-destroyed','_handleReconnectionResponse','applyOperation','channelSessions','fromJSON','_handleInitialConnectionData','setPermissions','_sendBufferedOperationsDelayed','map','_sendBufferedOperationsDelay','cloud-services-internal-error:\x20Not\x20connected.','getDocumentDetails','_isInit','sendOperations','round','_initThrowingOnDataSet','getRoot','getUser','config','isReadOnly','has','_handleReceivedOperations','_ignoredOperations','addUser','register','marker','realtimecollaborationclient-sendbufferedoperations','error','createdAt','getOperations','getIdOfTheLastOperation','destroy','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','lastSyncVersion','_service','reset','_handleServerResponse','end','_pendingAction','parse','history','_applyOperationsSet','_getOperationsFromInitData','sessionId','_offset','_fetchMissingUsers','view','decompress','data','disableReadOnlyMode','_document','roots','_currentBufferDelay','_lastServerVersion','affectsData','push','version','mySessionId','getMany','_lastSyncedOperationId','bind','_disconnectService','filter','_shouldSendUpdate','_connectAfterSessionHasBeenFlushed','change:_isEditingAllowed','batch','removeFromReconnectionStack','isEnabled','model','_setPendingAction','stop','_shouldSendSelectionUpdate','realtimecollaborationclient-initservice-internal-error','document:write','_updateServerHistory','enqueueChange','disconnected','_decompressOperations','CommentsOnly','off','toJSON','collaboration','editor','addOperation','_hasSynchronizationProblem','CollaborativeEditingService','rtc-offline','suppressErrorInCollaboration','_baseBufferDelay','Notification','_isEditingAllowed','_saveOperationInBuffer','getConnectedSessions','get','start','cloudDocumentVersion','409','baseVersion','setIdForTheLastOperation','message','plugins','_isConnected','reconnect','RealTimeCollaborationClient','_channelId','lastOperationId','catch','initData','serverHistory','metadata','cloudServices.bundleVersion','_authorId','userId','_operationIdentifier','_compressor','realtimecollaborationclient-init-connection-failed','slice','realtimecollaborationclient-init-session-connection-error','_knownOperations','_handleExternalOperations','realtimecollaborationclient-initservice-incorrect-server-operation','isDocumentOperation','createPositionFromPath','pluginName','forEach','offset','_handleReconnectionError','add','PENDING_ACTION_SENDING_DATA','change:range','_connectService','fire','_initSessionsHandling','connected','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.','_crash','cs:removeUser','getOperationAuthor','_setUpDataInit','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','_operationToId','enableReadOnlyMode','return','_isDisconnection','string','_sendBufferedOperationsDelayId','locale','apply','set','high','_clearPendingAction','length','define','code','_assignOperationsMetaData','directChange','wasUndone','createPositionAt','realtimecollaborationclient-init-document-already-initialized','_refreshUserSelectionMarkers','change:hasDomSelection','listenTo','_isPendingUpdate','operationsReceived','editing','connection','wereChangesApplied'];(function(_0x7d5c03,_0x2366fa){const _0x5d4c72=function(_0x2ec00f){while(--_0x2ec00f){_0x7d5c03['push'](_0x7d5c03['shift']());}};_0x5d4c72(++_0x2366fa);}(_0x2366,0x84));const _0x5d4c=function(_0x7d5c03,_0x2366fa){_0x7d5c03=_0x7d5c03-0x0;let _0x5d4c72=_0x2366[_0x7d5c03];return _0x5d4c72;};import{Plugin as _0x533c27,PendingActions as _0x522bbb}from'ckeditor5/src/core';import{CKEditorError as _0x4ee7f0,version as _0xb05814,uid as _0x297753}from'ckeditor5/src/utils';import{transformSets as _0x13f750,InsertOperation as _0x14a4a6,MarkerOperation as _0x1f022b,OperationFactory as _0x413c65,History as _0x26f81c}from'ckeditor5/src/engine';import{Notification as _0x50e869}from'ckeditor5/src/ui';import{Users as _0x4945d6}from'ckeditor5-collaboration/src/collaboration-core';import _0xc4a0dc from'./websocketgateway';import _0x512021 from'./sessions';import _0x36b2ec from'./usermarkers';import{getTranslation as _0x2515ce}from'../common-translations';import _0x3ba28d from'@ckeditor/ckeditor5-operations-compressor/src/compressor';import _0x61fb11 from'@ckeditor/ckeditor-cloud-services-collaboration/src/collaborativeeditingservice/collaborativeeditingservice';import _0x4f05fa from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';let K=0x1;export default class l extends _0x533c27{static get[_0x5d4c('0x3f')](){return[_0xc4a0dc,_0x512021,_0x36b2ec,_0x522bbb,_0x4945d6,_0x50e869];}static get[_0x5d4c('0xa')](){return _0x5d4c('0xb0');}get[_0x5d4c('0xa8')](){return this[_0x5d4c('0x7d')]+this[_0x5d4c('0x74')];}get[_0x5d4c('0x7d')](){return this[_0x5d4c('0xb5')]['version']-this[_0x5d4c('0x74')];}get['lastSyncVersion'](){const _0x4dea44=this[_0x5d4c('0xb5')][_0x5d4c('0x65')]();for(let _0x46e5e4=_0x4dea44[_0x5d4c('0x26')]-0x1;_0x46e5e4>=0x0;_0x46e5e4--){const _0x14291b=_0x4dea44[_0x46e5e4];if(!this[_0x5d4c('0x43')][_0x5d4c('0x5c')](_0x14291b))return _0x14291b[_0x5d4c('0xaa')]+0x1-this[_0x5d4c('0x74')];}return 0x0;}['init'](){const _0x218362=this[_0x5d4c('0x9b')],_0x39d452=_0x218362[_0x5d4c('0xad')]['get'](_0x4945d6),_0xab3094=_0x218362['plugins']['get'](_0xc4a0dc);if(this[_0x5d4c('0x74')]=0x0,this[_0x5d4c('0x73')]=null,this['serverHistory']=new _0x26f81c(),this[_0x5d4c('0x9b')]['config'][_0x5d4c('0x27')](_0x5d4c('0x9a'),{}),this[_0x5d4c('0xb1')]=_0x218362['config'][_0x5d4c('0xa6')]('collaboration.channelId'),!this[_0x5d4c('0xb1')])throw new _0x4ee7f0(_0x5d4c('0x3a'),this);this['listenTo'](_0x39d452,_0x5d4c('0x18'),(_0x241a52,_0x2a944f)=>{const _0x3428f4=_0x2a944f[0x0];_0x3428f4[_0x5d4c('0xb8')]&&(_0x241a52[_0x5d4c('0x1d')]=_0x39d452[_0x5d4c('0x59')](_0x3428f4['_authorId']),_0x241a52[_0x5d4c('0x8f')]()),null===_0x3428f4['_authorId']&&(_0x241a52[_0x5d4c('0x1d')]=null,_0x241a52[_0x5d4c('0x8f')]());},{'priority':_0x5d4c('0x24')});const _0x3a2fbb=_0x218362[_0x5d4c('0x5a')][_0x5d4c('0xa6')](_0x5d4c('0xb7'))||_0xb05814;this[_0x5d4c('0x6a')]=new l[(_0x5d4c('0x9e'))](_0x3a2fbb,this[_0x5d4c('0xb1')]),this[_0x5d4c('0x7a')]=this[_0x5d4c('0x9b')][_0x5d4c('0x8d')]['document'],this['_compressor']=new _0x3ba28d(),this['_bufferedOperations']=[],this[_0x5d4c('0x5')]=new WeakSet(),this[_0x5d4c('0x23')](_0x5d4c('0x31'),!0x1),this['set'](_0x5d4c('0x9d'),!0x1),this[_0x5d4c('0x6e')]=null,this[_0x5d4c('0x45')]=!0x1,this['_sendBufferedOperationsDelayId']=null,this[_0x5d4c('0xa1')]=0x12c,this[_0x5d4c('0x7c')]=this['_baseBufferDelay'],this['_lastSyncedOperationId']=null,this['_disconnectionOperations']=new WeakSet(),this['_operationIdentifier']=new Y(this[_0x5d4c('0x43')]),this['listenTo'](_0x218362[_0x5d4c('0x8d')]['document']['selection'],_0x5d4c('0x10'),(_0x33a19,_0x535d0d)=>{_0x535d0d[_0x5d4c('0x2a')]&&this[_0x5d4c('0x2e')]();}),this[_0x5d4c('0x30')](_0x218362[_0x5d4c('0x33')][_0x5d4c('0x76')],_0x5d4c('0x2f'),()=>{this[_0x5d4c('0x2e')]();}),this[_0x5d4c('0x57')](),_0x218362[_0x5d4c('0x8d')]['on'](_0x5d4c('0x4a'),(_0x38de70,_0x2ed69a)=>{const _0x5f3672=_0x2ed69a[0x0];_0x5f3672[_0x5d4c('0x8')]&&(this[_0x5d4c('0xa4')](_0x5f3672),this[_0x5d4c('0x87')]()&&this[_0x5d4c('0x4f')]());}),this[_0x5d4c('0x19')](),this[_0x5d4c('0x84')](_0x5d4c('0xa3'))['to'](_0xab3094,'state',this,'_hasSynchronizationProblem',(_0x32fd9d,_0xcc0a36)=>_0x5d4c('0x14')===_0x32fd9d&&!_0xcc0a36),this['on'](_0x5d4c('0x89'),()=>{this[_0x5d4c('0xa3')]?_0x218362[_0x5d4c('0x79')](_0x5d4c('0x9f')):_0x218362[_0x5d4c('0x1c')](_0x5d4c('0x9f'));}),this[_0x5d4c('0xa3')]?_0x218362[_0x5d4c('0x79')]('rtc-offline'):_0x218362[_0x5d4c('0x1c')](_0x5d4c('0x9f')),this['set']('_isConnected',!0x1);}async['reconnect'](){const _0x16b89a=this['editor'][_0x5d4c('0xad')]['get'](_0x512021),_0x5f3589=this[_0x5d4c('0x9b')][_0x5d4c('0xad')][_0x5d4c('0xa6')](_0xc4a0dc);try{this[_0x5d4c('0x31')]=!0x0,_0x16b89a[_0x5d4c('0x40')](this['_channelId']);const _0x343168=await this[_0x5d4c('0x6a')][_0x5d4c('0xaf')](_0x5f3589[_0x5d4c('0x34')],this[_0x5d4c('0x69')]);await this['_handleReconnectionResponse'](_0x343168)&&(this[_0x5d4c('0x31')]=!0x1,this[_0x5d4c('0x25')]());const _0x4a8efc=await this[_0x5d4c('0x6a')][_0x5d4c('0xa5')]();_0x16b89a[_0x5d4c('0x60')](this['_channelId'],_0x4a8efc),this[_0x5d4c('0x37')](),this[_0x5d4c('0xae')]=!0x0;}catch(_0x35a095){if(function(_0x594fd4){return'404'===_0x594fd4[_0x5d4c('0x28')];}(_0x35a095)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(function(_0x442081){return _0x5d4c('0xa9')===_0x442081[_0x5d4c('0x28')];}(_0x35a095)){const _0x53a7e6=_0x2515ce(this[_0x5d4c('0x9b')][_0x5d4c('0x21')],_0x5d4c('0x68'));this[_0x5d4c('0xd')](_0x53a7e6);}else{if(!(_0x35a095 instanceof Q))throw _0x35a095;this[_0x5d4c('0xd')]();}}}}['destroy'](){const _0x4b6ca4=this[_0x5d4c('0x9b')]['plugins'][_0x5d4c('0xa6')](_0xc4a0dc),_0x141b27=this['editor']['plugins'][_0x5d4c('0xa6')](_0x512021);this[_0x5d4c('0x9b')][_0x5d4c('0x1c')](_0x5d4c('0x48')),_0x141b27[_0x5d4c('0x4b')]['has'](this['_channelId'])&&_0x141b27[_0x5d4c('0x40')](this[_0x5d4c('0xb1')]),_0x4b6ca4[_0x5d4c('0x8b')](this),this[_0x5d4c('0x85')](),super['destroy']();}async[_0x5d4c('0x49')](_0x17be18){if(this[_0x5d4c('0x73')]!==_0x17be18[_0x5d4c('0x73')]&&this[_0x5d4c('0x83')]!==_0x17be18[_0x5d4c('0xb2')])throw new Q();return this['sessionId']=_0x17be18[_0x5d4c('0x73')],this[_0x5d4c('0x6c')]([],{..._0x17be18,'wereChangesApplied':!0x1,'data':_0x17be18['data']},'reconnect');}async['_connectService'](_0x2c5ea8,_0x3fb935=!0x1){const {connection:_0x2ae545}=this[_0x5d4c('0x9b')]['plugins'][_0x5d4c('0xa6')](_0xc4a0dc);l[_0x5d4c('0x9e')][_0x5d4c('0xa5')](_0x2ae545,this['_channelId'])[_0x5d4c('0x46')](_0x8bc8c5=>this[_0x5d4c('0x13')](_0x8bc8c5))[_0x5d4c('0xb3')](_0x544fe6=>{this[_0x5d4c('0x16')](_0x5d4c('0x4'),_0x544fe6);}),this[_0x5d4c('0x30')](this[_0x5d4c('0x6a')],_0x5d4c('0x32'),this[_0x5d4c('0x5d')][_0x5d4c('0x84')](this)),this['listenTo'](this['_service'],'error',(_0x16008e,_0x4ef467)=>{this[_0x5d4c('0x16')](_0x5d4c('0x91'),_0x4ef467);}),this[_0x5d4c('0x30')](this['_service'],_0x5d4c('0x95'),()=>{this['_isConnected']=!0x1;});const _0x1b1397=this['_operationIdentifier'][_0x5d4c('0x66')](_0x2c5ea8),_0x5d39d5=await this[_0x5d4c('0x6a')]['connect'](_0x2ae545,this[_0x5d4c('0x38')](_0x2c5ea8),_0x1b1397);if(this[_0x5d4c('0x73')]=_0x5d39d5['sessionId'],_0x5d39d5[_0x5d4c('0x35')]&&(this[_0x5d4c('0x31')]=!0x1,this['_clearPendingAction']()),_0x3fb935){if(!_0x5d39d5[_0x5d4c('0x35')])return void this[_0x5d4c('0xd')]();this[_0x5d4c('0xb5')][_0x5d4c('0x6b')](),this['_offset']=_0x5d39d5[_0x5d4c('0xc')],this[_0x5d4c('0xb5')][_0x5d4c('0x80')]=this[_0x5d4c('0x74')],await this['_handleServerResponse'](_0x2c5ea8,_0x5d39d5,'reconnection:\x20flushed\x20session');}else await this[_0x5d4c('0x4d')](_0x5d39d5,_0x2c5ea8);this[_0x5d4c('0x37')](),this['_isConnected']=!0x0;}[_0x5d4c('0x37')](){const _0x2c1ec0=this[_0x5d4c('0x9b')]['plugins'][_0x5d4c('0xa6')](_0x512021),_0x5a6d34=_0x2c1ec0[_0x5d4c('0x4b')]['get'](this[_0x5d4c('0xb1')]);_0x5a6d34&&_0x5a6d34['length']>0x1?(this[_0x5d4c('0x45')]=!0x0,this['_sendBufferedOperationsDelayed']()):this[_0x5d4c('0x30')](_0x2c1ec0,'sessionAdd:'+this[_0x5d4c('0xb1')],_0x505075=>{_0x2c1ec0[_0x5d4c('0x4b')][_0x5d4c('0xa6')](this[_0x5d4c('0xb1')])[_0x5d4c('0x26')]>0x1&&(this[_0x5d4c('0x45')]=!0x0,this[_0x5d4c('0x4f')](),_0x505075[_0x5d4c('0x98')]());});}async['_handleReceivedOperations'](_0x3de6be,_0x3e5966,_0x512898,_0xdb2800){if(!this[_0x5d4c('0x31')]&&this[_0x5d4c('0x7a')][_0x5d4c('0x80')]==_0x3e5966){const _0x4cc2da=this['_decompressOperations'](_0x512898,_0xdb2800);await this[_0x5d4c('0x75')](_0x4cc2da),this[_0x5d4c('0x6')](_0x4cc2da,_0x3e5966,_0x512898[_0x5d4c('0xb2')])||this[_0x5d4c('0x16')](_0x5d4c('0x7'));}}async[_0x5d4c('0x88')](){this[_0x5d4c('0x85')]();const {locale:_0x4a07f7}=this[_0x5d4c('0x9b')];let _0x4feb43;try{_0x4feb43=await this[_0x5d4c('0x6a')][_0x5d4c('0x53')]();}catch(_0x2a0864){const _0x14d8dc=_0x2515ce(_0x4a07f7,'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[_0x5d4c('0xd')](_0x14d8dc);}const _0x2e298a=_0x4feb43['currentDocumentSession']||_0x4feb43['lastDocumentSession'];if(this[_0x5d4c('0x83')]===_0x2e298a[_0x5d4c('0xb2')])await this[_0x5d4c('0x11')](this[_0x5d4c('0x9b')]['model']['document'][_0x5d4c('0x70')][_0x5d4c('0x65')](),!0x0);else{const _0x1c7b75=_0x2515ce(_0x4a07f7,_0x5d4c('0x15'));this[_0x5d4c('0xd')](_0x1c7b75);}}[_0x5d4c('0x85')](){this[_0x5d4c('0x6a')]['disconnect'](),this[_0x5d4c('0x3e')]=[],clearTimeout(this[_0x5d4c('0x51')]),this['stopListening'](this['_service']);}['_initSessionsHandling'](_0x8ba8d2){const _0x1b60b4=this[_0x5d4c('0x9b')][_0x5d4c('0xad')][_0x5d4c('0xa6')](_0x512021);this[_0x5d4c('0x30')](_0x1b60b4,'sessionAdd:'+this[_0x5d4c('0xb1')],(_0x5d586b,{session:_0x24c3c6})=>{if(_0x24c3c6['id']===_0x1b60b4[_0x5d4c('0x81')]){_0x5d586b[_0x5d4c('0x98')]();const _0x7cb05=this[_0x5d4c('0x9b')][_0x5d4c('0xad')][_0x5d4c('0x5c')](_0x5d4c('0x97'))&&this[_0x5d4c('0x9b')][_0x5d4c('0xad')]['get']('CommentsOnly');let _0x5ad779=_0x24c3c6['permissions'];_0x7cb05&&_0x7cb05[_0x5d4c('0x8c')]&&(_0x5ad779=_0x5ad779[_0x5d4c('0x86')](_0x532153=>_0x5d4c('0x92')!==_0x532153)),this[_0x5d4c('0x9b')]['plugins'][_0x5d4c('0xa6')]('Permissions')[_0x5d4c('0x4e')](_0x5ad779,this[_0x5d4c('0xb1')]);}}),_0x1b60b4[_0x5d4c('0x60')](this[_0x5d4c('0xb1')],_0x8ba8d2);}[_0x5d4c('0x57')](){const _0x26d099=this[_0x5d4c('0x9b')]['data'][_0x5d4c('0x23')];this['editor']['data'][_0x5d4c('0x23')]=(..._0x3f3b8e)=>{if(!_0x3f3b8e[_0x3f3b8e[_0x5d4c('0x26')]-0x1][_0x5d4c('0xa0')])throw new _0x4ee7f0(_0x5d4c('0x1a'),this);_0x26d099[_0x5d4c('0x22')](this['editor'][_0x5d4c('0x78')],_0x3f3b8e);};}[_0x5d4c('0x19')](){this[_0x5d4c('0x9b')][_0x5d4c('0x78')]['on'](_0x5d4c('0x3b'),(_0x5b9486,[_0x474291])=>{if(this['_document'][_0x5d4c('0x80')])throw new _0x4ee7f0(_0x5d4c('0x2d'),this);_0x5b9486['stop'](),this[_0x5d4c('0x8e')]();const _0x59b444=this[_0x5d4c('0x72')](_0x474291);_0x5b9486['return']=this['_connectService'](_0x59b444)['then'](()=>{this[_0x5d4c('0x9b')][_0x5d4c('0xad')][_0x5d4c('0xa6')](_0xc4a0dc)[_0x5d4c('0x41')](this),this['editor']['data'][_0x5d4c('0x12')]('ready');})[_0x5d4c('0xb3')](_0xf48c6a=>this[_0x5d4c('0x16')](_0x5d4c('0x2'),_0xf48c6a))['finally'](()=>this[_0x5d4c('0x25')]());},{'priority':_0x5d4c('0x24')});}async[_0x5d4c('0x75')](_0x57cbc5){const _0x532fc7=this[_0x5d4c('0x9b')][_0x5d4c('0xad')][_0x5d4c('0xa6')](_0x4945d6),{connection:_0x3d1552}=this[_0x5d4c('0x9b')]['plugins'][_0x5d4c('0xa6')](_0xc4a0dc),_0x1f8922=new Set();for(const _0x4705aa of _0x57cbc5){const _0xa31f9a=_0x4705aa[_0x5d4c('0xb8')];_0xa31f9a&&!_0x532fc7['getUser'](_0xa31f9a)&&_0x1f8922[_0x5d4c('0xe')](_0xa31f9a);}if(0x0===_0x1f8922['size'])return;const _0x54d64a=await _0x4f05fa[_0x5d4c('0x82')](_0x3d1552,Array['from'](_0x1f8922));for(const _0x36905b of _0x54d64a)_0x532fc7[_0x5d4c('0x59')](_0x36905b['id'])||_0x532fc7[_0x5d4c('0x5f')](_0x36905b);}[_0x5d4c('0x72')](_0x44ea1b){const _0x23918f=this[_0x5d4c('0x9b')]['model'],_0x23aa02=[];let _0x221b70=0x0;const _0x5ea826=_0x5d4c('0x1f')==typeof _0x44ea1b?{'main':_0x44ea1b}:_0x44ea1b;for(const _0x5844af of Object['keys'](_0x5ea826)){if(!this[_0x5d4c('0x7a')][_0x5d4c('0x7b')][_0x5d4c('0x5c')](_0x5844af))throw new _0x4ee7f0('realtimecollaborationclient-init-non-existent-root',this);const _0x4830ee=this[_0x5d4c('0x9b')][_0x5d4c('0x78')][_0x5d4c('0x6f')](_0x5ea826[_0x5844af]),_0x40e71a=this['_document'][_0x5d4c('0x58')](_0x5844af),_0x3b8a8e=new _0x14a4a6(_0x23918f[_0x5d4c('0x2c')](_0x40e71a,0x0),_0x4830ee,_0x221b70++);_0x23aa02[_0x5d4c('0x7f')](_0x3b8a8e);for(const [_0x376165,_0x580e3b]of _0x4830ee['markers']){const _0x1726e1=_0x23918f[_0x5d4c('0x39')](_0x23918f['createPositionFromPath'](_0x40e71a,_0x580e3b[_0x5d4c('0xa7')]['path'][_0x5d4c('0x3')]()),_0x23918f[_0x5d4c('0x9')](_0x40e71a,_0x580e3b[_0x5d4c('0x6d')]['path'][_0x5d4c('0x3')]())),_0x1a7136=new _0x1f022b(_0x376165,null,_0x1726e1,_0x23918f[_0x5d4c('0x42')],!0x0,_0x221b70++);_0x23aa02[_0x5d4c('0x7f')](_0x1a7136);}}return _0x23aa02;}async[_0x5d4c('0x4d')](_0x3c6a66,_0x4bf2dc){let _0x242dd8;this['_offset']=_0x3c6a66[_0x5d4c('0xc')];const _0x53c273=_0x3c6a66['wereChangesApplied']&&!_0x3c6a66[_0x5d4c('0xb4')],_0xf0fed8=_0x53c273?0x0:_0x3c6a66[_0x5d4c('0x78')][_0x5d4c('0xaa')];if(_0x53c273)_0x242dd8=_0x4bf2dc,_0x242dd8['forEach'](_0xce7ec=>{_0xce7ec[_0x5d4c('0x64')]=_0x3c6a66['sessionCreatedAt'],_0xce7ec[_0x5d4c('0x54')]=!0x0,_0xce7ec[_0x5d4c('0xb8')]=null;}),this[_0x5d4c('0x71')](_0x242dd8,_0x53c273);else{if(_0x3c6a66[_0x5d4c('0xb4')]){const _0x5086ab=this[_0x5d4c('0x72')](_0x3c6a66[_0x5d4c('0xb4')]);this['_document'][_0x5d4c('0x70')][_0x5d4c('0x80')]=-_0x5086ab[_0x5d4c('0x26')],_0x5086ab['forEach'](_0x36e17c=>{_0x36e17c['baseVersion']-=_0x5086ab['length'],_0x36e17c[_0x5d4c('0x64')]=_0x3c6a66['sessionCreatedAt'],_0x36e17c[_0x5d4c('0x54')]=!0x0,_0x36e17c['_authorId']=null;}),this[_0x5d4c('0x71')](_0x5086ab,!0x0),this[_0x5d4c('0xb5')]['version']=-_0x5086ab['length']+this[_0x5d4c('0x74')],this[_0x5d4c('0x93')](_0x5086ab);}this['_document'][_0x5d4c('0x70')][_0x5d4c('0x80')]=_0xf0fed8,_0x242dd8=this[_0x5d4c('0x96')](_0x3c6a66[_0x5d4c('0x78')],_0x3c6a66['metadata']),await this['_fetchMissingUsers'](_0x242dd8),this[_0x5d4c('0x71')](_0x242dd8,_0x53c273);}_0x3c6a66[_0x5d4c('0xb2')]&&(this['_operationIdentifier'][_0x5d4c('0xab')](_0x242dd8,_0x3c6a66[_0x5d4c('0xb2')]),this[_0x5d4c('0x83')]=_0x3c6a66[_0x5d4c('0xb2')]),this[_0x5d4c('0xb5')]['version']=_0xf0fed8+this['_offset'],this[_0x5d4c('0x93')](_0x242dd8);}['_crash'](_0x7ef0f3,_0x1644d4){throw this['_isPendingUpdate']=!0x0,_0x1644d4&&console[_0x5d4c('0x63')](_0x1644d4),new _0x4ee7f0(_0x7ef0f3,this[_0x5d4c('0x9b')]);}[_0x5d4c('0xa4')](_0x3edfb6){this[_0x5d4c('0x5')][_0x5d4c('0x5c')](_0x3edfb6)||(this[_0x5d4c('0x5')][_0x5d4c('0xe')](_0x3edfb6),this[_0x5d4c('0x3e')]['push'](_0x3edfb6),this[_0x5d4c('0x6e')]||_0x5d4c('0x61')==_0x3edfb6[_0x5d4c('0x47')]&&!_0x3edfb6[_0x5d4c('0x7e')]||this[_0x5d4c('0x8e')]());}['_sendBufferedOperationsDelayed'](_0x170932=!0x1){!_0x170932&&this[_0x5d4c('0x31')]||(this[_0x5d4c('0x31')]=!0x0,clearTimeout(this[_0x5d4c('0x20')]),this[_0x5d4c('0x20')]=setTimeout(()=>{this[_0x5d4c('0x3c')]()['then'](_0x4a3aad=>{_0x4a3aad&&(this[_0x5d4c('0x25')](),this[_0x5d4c('0x31')]=!0x1);})[_0x5d4c('0xb3')](_0x470b07=>{if(this['_clearPendingAction'](),this[_0x5d4c('0x31')]=!0x1,!function(_0x5daedc){return _0x5daedc['message']['startsWith'](_0x5d4c('0x52'))||_0x5daedc[_0x5d4c('0xac')][_0x5d4c('0x44')]('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x5daedc[_0x5d4c('0xac')][_0x5d4c('0x44')](_0x5d4c('0x3d'));}(_0x470b07))throw _0x470b07;});},this[_0x5d4c('0x7c')]));}async[_0x5d4c('0x3c')](){const _0x5f1526=this['editor'][_0x5d4c('0xad')][_0x5d4c('0xa6')](_0x36b2ec);if(this[_0x5d4c('0x90')]()&&(_0x5f1526['createUserMarkerOperations'](),this[_0x5d4c('0x45')]=!0x1),!this[_0x5d4c('0x87')]())return!0x0;const _0x3ce009=[...this[_0x5d4c('0x3e')]];for(const _0x3af32d of _0x3ce009)_0x3af32d[_0x5d4c('0x2b')]=this['_document'][_0x5d4c('0x70')]['isUndoneOperation'](_0x3af32d);const _0x477096=this[_0x5d4c('0x0')][_0x5d4c('0x66')](_0x3ce009),_0x1d4e1f=K++,_0x1aa9cd=this[_0x5d4c('0x38')](_0x3ce009),_0x40c9f4=await this[_0x5d4c('0x6a')][_0x5d4c('0x55')](_0x1aa9cd,_0x1aa9cd[_0x5d4c('0xaa')],_0x477096);try{return await this[_0x5d4c('0x6c')](_0x3ce009,_0x40c9f4,_0x1d4e1f);}catch(_0x26d1ef){return this[_0x5d4c('0x16')](_0x5d4c('0x62'),_0x26d1ef);}}async[_0x5d4c('0x6c')](_0x314ed2,_0x252f4e,_0x57c202){if(_0x252f4e[_0x5d4c('0x63')])throw _0x252f4e[_0x5d4c('0x63')];let _0x32f676=!0x1;if(_0x252f4e[_0x5d4c('0x35')]){_0x252f4e['lastOperationId']&&(this[_0x5d4c('0x83')]=_0x252f4e[_0x5d4c('0xb2')]),this[_0x5d4c('0x3e')]=this['_bufferedOperations']['filter'](_0x747ba7=>!_0x314ed2[_0x5d4c('0x36')](_0x747ba7));for(const _0x47e8e7 of _0x314ed2)_0x47e8e7[_0x5d4c('0x64')]=_0x252f4e['lastOperationAcceptedAt'];this['_updateServerHistory'](_0x314ed2),_0x32f676=!0x0,this['_currentBufferDelay']=this[_0x5d4c('0xa1')];}else{const _0x24d00d=this[_0x5d4c('0x96')](_0x252f4e[_0x5d4c('0x78')],_0x252f4e[_0x5d4c('0xb6')])[_0x5d4c('0x86')](_0xb81b09=>_0xb81b09['baseVersion']>=this[_0x5d4c('0x7d')]);await this[_0x5d4c('0x75')](_0x24d00d),_0x32f676=this[_0x5d4c('0x6')](_0x24d00d,_0x252f4e[_0x5d4c('0x80')],_0x252f4e[_0x5d4c('0xb2')]),this[_0x5d4c('0x7c')]=Math[_0x5d4c('0x56')](this['_currentBufferDelay']/0x2);}return _0x32f676?!this[_0x5d4c('0x87')]()||(this[_0x5d4c('0x4f')](!0x0),!0x1):this[_0x5d4c('0x16')]('realtimecollaborationclient-handleserverresponse');}['_handleExternalOperations'](_0x454d2c,_0xb194f,_0x16c0af){try{const _0x52ce91={'document':this[_0x5d4c('0x7a')],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x5a59b4,operationsB:_0x1c2b79,originalOperations:_0x2e0e5e}=_0x13f750(_0x454d2c,this[_0x5d4c('0x3e')],_0x52ce91);X(_0x5a59b4,this['_document'][_0x5d4c('0x80')]),X(_0x1c2b79,_0xb194f);for(const _0x11a10b of _0x5a59b4){const _0x106072=_0x2e0e5e[_0x5d4c('0xa6')](_0x11a10b);_0x11a10b[_0x5d4c('0xb8')]=_0x106072?_0x106072[_0x5d4c('0xb8')]:null;}_0x16c0af&&(this['_operationIdentifier'][_0x5d4c('0xab')](_0x454d2c,_0x16c0af),this[_0x5d4c('0x83')]=_0x16c0af),this[_0x5d4c('0x3e')]=[..._0x1c2b79],this['_applyOperationsSet'](_0x5a59b4),this[_0x5d4c('0x93')](_0x454d2c);}catch(_0x488d9d){return console['error'](_0x488d9d),!0x1;}return!0x0;}[_0x5d4c('0x71')](_0x2a7404,_0x31221f=!0x1){this[_0x5d4c('0x9b')][_0x5d4c('0x8d')][_0x5d4c('0x94')]({'isUndoable':!0x1,'isLocal':!0x1},_0x2c8622=>{for(const _0xaf085 of _0x2a7404)this[_0x5d4c('0x5')]['add'](_0xaf085),_0x2c8622[_0x5d4c('0x8a')][_0x5d4c('0x9c')](_0xaf085),this[_0x5d4c('0x9b')][_0x5d4c('0x8d')][_0x5d4c('0x4a')](_0xaf085);});}[_0x5d4c('0x93')](_0x3c37af){_0x3c37af[_0x5d4c('0xb')](_0x4ea557=>{const _0x1d9665=_0x4ea557['clone']();_0x1d9665[_0x5d4c('0xb8')]=_0x4ea557[_0x5d4c('0xb8')],_0x1d9665['_isInit']=!!_0x4ea557['_isInit'],_0x1d9665[_0x5d4c('0x64')]=_0x4ea557[_0x5d4c('0x64')],_0x1d9665[_0x5d4c('0xaa')]+=this[_0x5d4c('0x74')],_0x4ea557[_0x5d4c('0x1e')]&&this[_0x5d4c('0x43')][_0x5d4c('0xe')](_0x1d9665),this[_0x5d4c('0xb5')][_0x5d4c('0x9c')](_0x1d9665);});}['_handleReconnectionError'](_0x561429){const _0x5ae1f6=this['editor'][_0x5d4c('0xad')][_0x5d4c('0xa6')](_0x5d4c('0xa2')),_0x50ceef=this[_0x5d4c('0x9b')][_0x5d4c('0x21')];_0x561429||(_0x561429=_0x2515ce(_0x50ceef,'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.')),_0x5ae1f6['showWarning'](_0x561429,{'title':_0x2515ce(_0x50ceef,'Synchronization\x20issue'),'namespace':'real-time-collaboration'}),this[_0x5d4c('0x9d')]=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this[_0x5d4c('0x3e')]=[],this[_0x5d4c('0x9b')]['plugins'][_0x5d4c('0xa6')](_0xc4a0dc)[_0x5d4c('0x67')]();}[_0x5d4c('0x8e')](){this['_pendingAction']||(this['_pendingAction']=this[_0x5d4c('0x9b')][_0x5d4c('0xad')][_0x5d4c('0xa6')](_0x522bbb)[_0x5d4c('0xe')](_0x2515ce(this[_0x5d4c('0x9b')]['locale'],_0x5d4c('0xf'))));}[_0x5d4c('0x25')](){this['_pendingAction']&&(this['editor'][_0x5d4c('0xad')][_0x5d4c('0xa6')](_0x522bbb)['remove'](this['_pendingAction']),this['_pendingAction']=null);}[_0x5d4c('0x38')](_0x15b486){const _0x3e85f9=_0x15b486[_0x5d4c('0x50')](_0x4f4e74=>_0x4f4e74[_0x5d4c('0x99')]());return this[_0x5d4c('0x1')]['compress'](_0x3e85f9);}[_0x5d4c('0x96')](_0x96def3,_0x439c40){const _0x31a06c=this[_0x5d4c('0x1')][_0x5d4c('0x77')](_0x96def3)[_0x5d4c('0x50')]((_0x1188c2,_0x4aa805)=>{const _0xbcd81c=_0x413c65[_0x5d4c('0x4c')](_0x1188c2,this[_0x5d4c('0x7a')]);return _0xbcd81c['wasUndone']=_0x1188c2[_0x5d4c('0x2b')],_0x5d4c('0x17')===_0x439c40[_0x4aa805]['type']&&(_0xbcd81c[_0x5d4c('0x1e')]=!0x0),_0xbcd81c;});return this['_assignOperationsMetaData'](_0x31a06c,_0x439c40),_0x31a06c;}[_0x5d4c('0x29')](_0x134f9d,_0x432144){for(let _0x267785=0x0;_0x267785<_0x134f9d[_0x5d4c('0x26')];_0x267785++)_0x5d4c('0x3b')==_0x432144[_0x267785]['type']?(_0x134f9d[_0x267785][_0x5d4c('0x54')]=!0x0,_0x134f9d[_0x267785][_0x5d4c('0xb8')]=null):(_0x134f9d[_0x267785][_0x5d4c('0x54')]=!0x1,_0x134f9d[_0x267785]['_authorId']=_0x432144[_0x267785][_0x5d4c('0xb9')]),_0x134f9d[_0x267785][_0x5d4c('0x64')]=_0x432144[_0x267785][_0x5d4c('0x64')];}['_refreshUserSelectionMarkers'](){this[_0x5d4c('0x45')]=!0x0,this[_0x5d4c('0x90')]()&&this[_0x5d4c('0x4f')]();}[_0x5d4c('0x90')](){const _0x16a3c4=this['editor'][_0x5d4c('0xad')][_0x5d4c('0xa6')](_0x512021)['channelSessions'][_0x5d4c('0xa6')](this[_0x5d4c('0xb1')]);return!this[_0x5d4c('0x9b')][_0x5d4c('0x5b')]&&_0x16a3c4&&_0x16a3c4[_0x5d4c('0x26')]>0x1&&this[_0x5d4c('0x45')];}[_0x5d4c('0x87')](){return this[_0x5d4c('0x3e')][_0x5d4c('0x26')]>0x0||this[_0x5d4c('0x90')]();}}class Q extends Error{}function X(_0x1da64d,_0x173c9e){for(const _0x584cf1 of _0x1da64d)_0x584cf1[_0x5d4c('0xaa')]=_0x173c9e++;}l['CollaborativeEditingService']=_0x61fb11;class Y{constructor(_0x164856){this[_0x5d4c('0x5e')]=_0x164856,this[_0x5d4c('0x1b')]=new WeakMap();}[_0x5d4c('0x66')](_0x5cfb99){let _0x44f88d=_0x5cfb99[_0x5d4c('0x26')];for(;_0x44f88d--;){const _0x135005=_0x5cfb99[_0x44f88d];if(!this[_0x5d4c('0x5e')][_0x5d4c('0x5c')](_0x135005)){if(!this[_0x5d4c('0x1b')][_0x5d4c('0x5c')](_0x135005)){const _0x52cb22=_0x297753()[_0x5d4c('0x3')](0x1,0x12);this[_0x5d4c('0x1b')][_0x5d4c('0x23')](_0x135005,_0x52cb22);}return this['_operationToId'][_0x5d4c('0xa6')](_0x135005);}}}[_0x5d4c('0xab')](_0x38e52d,_0x94b4ed){if(!_0x94b4ed)return;let _0x45c672=_0x38e52d[_0x5d4c('0x26')];for(;_0x45c672--;){const _0xd2bc5d=_0x38e52d[_0x45c672];this[_0x5d4c('0x5e')][_0x5d4c('0x5c')](_0xd2bc5d)||this['_operationToId']['set'](_0xd2bc5d,_0x94b4ed);}}}
23
+ const _0x3edf=['markers','_applyOperationsSet','has','_operationIdentifier','_compressOperations','forEach','map','initData','_isDisconnection','length','addOperation','return','operationsReceived','createdAt','_saveOperationInBuffer','round','batch','_handleServerResponse','sessionCreatedAt','getUser','_connectService','string','wereChangesApplied','mySessionId','realtimecollaborationclient-initservice-internal-error','_disconnectService','_pendingAction','init','rtc-destroyed','createPositionAt','_channelId','disconnect','realtimecollaborationclient-initservice-incorrect-server-operation','_handleReconnectionError','collaboration','realtimecollaborationclient-init-non-existent-root','_handleExternalOperations','selection','real-time-collaboration','path','serverHistory','realtimecollaborationclient-handleserverresponse','_assignOperationsMetaData','createPositionFromPath','stopListening','sessionId','RealTimeCollaborationClient','_lastServerVersion','permissions','_sendBufferedOperations','getOperations','decompress','toJSON','_hasSynchronizationProblem','filter','setIdForTheLastOperation','_setUpDataInit','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','_isConnected','channelSessions','directChange','cloud-services-internal-error:\x20Request\x20timeout.','get','define','high','_connectAfterSessionHasBeenFlushed','_knownOperations','startsWith','slice','stop','_isInit','requires','data','_baseBufferDelay','Permissions','_decompressOperations','history','_sendBufferedOperationsDelay','_service','metadata','catch','setPermissions','listenTo','state','_isEditingAllowed','_updateServerHistory','unregister','_offset','_initThrowingOnDataSet','applyOperation','rtc-offline','offset','reconnection:\x20flushed\x20session','getOperationAuthor','PENDING_ACTION_SENDING_DATA','_hasSelectionChanged','_getOperationsFromInitData','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.','apply','remove','set','CollaborativeEditingService','_sendBufferedOperationsDelayId','lastSyncVersion','removeFromReconnectionStack','sendOperations','reconnect','wasUndone','_bufferedOperations','then','_initSessionsHandling','reset','_crash','_lastSyncedOperationId','locale','lastDocumentSession','message','connected','getMany','isReadOnly','realtimecollaborationclient-sendbufferedoperations','push','_fetchMissingUsers','_compressor','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','ready','disableReadOnlyMode','isUndoneOperation','_document','disconnected','marker','_sendBufferedOperationsDelayed','_disconnectionOperations','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','baseVersion','bind','showWarning','isEnabled','add','model','connect','finally','end','_handleInitialConnectionData','code','CommentsOnly','cloudDocumentVersion','_handleReconnectionResponse','_refreshUserSelectionMarkers','_currentBufferDelay','off','destroy','Synchronization\x20issue','change:hasDomSelection','_handleSendingSelectionMarkers','_setPendingAction','includes','document:write','createUserMarkerOperations','getConnectedSessions','view','compress','_shouldSendUpdate','_operationToId','change:range','_isPendingUpdate','_handleReceivedOperations','getRoot','sessionAdd:','lastOperationAcceptedAt','realtimecollaborationclient-init-document-already-initialized','_shouldSendSelectionUpdate','isDocumentOperation','version','from','pluginName','keys','config','cs:removeUser','error','start','type','collaboration-missing-channelid','_ignoredOperations','realtimecollaborationclient-init-session-connection-error','register','suppressErrorInCollaboration','409','getIdOfTheLastOperation','clone','document','editor','_clearPendingAction','plugins','_authorId','lastOperationId','404'];(function(_0x3c0668,_0x3edf65){const _0x5673e5=function(_0x728b9d){while(--_0x728b9d){_0x3c0668['push'](_0x3c0668['shift']());}};_0x5673e5(++_0x3edf65);}(_0x3edf,0x160));const _0x5673=function(_0x3c0668,_0x3edf65){_0x3c0668=_0x3c0668-0x0;let _0x5673e5=_0x3edf[_0x3c0668];return _0x5673e5;};import{Plugin as _0x2c83c8,PendingActions as _0x3b81ae}from'ckeditor5/src/core';import{CKEditorError as _0x43b61b,version as _0x5d397b,uid as _0x226961}from'ckeditor5/src/utils';import{transformSets as _0xb00a24,InsertOperation as _0x24f7da,MarkerOperation as _0x4f7ee5,OperationFactory as _0x289149,History as _0xa1a452}from'ckeditor5/src/engine';import{Notification as _0x28626f}from'ckeditor5/src/ui';import{Users as _0x56e7b8}from'ckeditor5-collaboration/src/collaboration-core';import _0x18bf03 from'./websocketgateway';import _0x4c900f from'./sessions';import _0x31f93f from'./usermarkers';import{getTranslation as _0x4bff80}from'../common-translations';import _0x43c06d from'@ckeditor/ckeditor5-operations-compressor/src/compressor';import _0x1a5728 from'@ckeditor/ckeditor-cloud-services-collaboration/src/collaborativeeditingservice/collaborativeeditingservice';import _0xde4bad from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';let K=0x1;export default class l extends _0x2c83c8{static get[_0x5673('0x71')](){return[_0x18bf03,_0x4c900f,_0x31f93f,_0x3b81ae,_0x56e7b8,_0x28626f];}static get[_0x5673('0x14')](){return _0x5673('0x58');}get[_0x5673('0xbc')](){return this[_0x5673('0x59')]+this[_0x5673('0x81')];}get['_lastServerVersion'](){return this['serverHistory'][_0x5673('0x12')]-this[_0x5673('0x81')];}get[_0x5673('0x91')](){const _0x4948ab=this[_0x5673('0x52')]['getOperations']();for(let _0x2e65ca=_0x4948ab[_0x5673('0x33')]-0x1;_0x2e65ca>=0x0;_0x2e65ca--){const _0x5e3de9=_0x4948ab[_0x2e65ca];if(!this['_disconnectionOperations'][_0x5673('0x2c')](_0x5e3de9))return _0x5e3de9[_0x5673('0xb0')]+0x1-this[_0x5673('0x81')];}return 0x0;}[_0x5673('0x45')](){const _0xef9f43=this['editor'],_0x28b7ba=_0xef9f43[_0x5673('0x26')]['get'](_0x56e7b8),_0xb2a8e7=_0xef9f43['plugins'][_0x5673('0x68')](_0x18bf03);if(this[_0x5673('0x81')]=0x0,this[_0x5673('0x57')]=null,this['serverHistory']=new _0xa1a452(),this['editor'][_0x5673('0x16')][_0x5673('0x69')](_0x5673('0x4c'),{}),this[_0x5673('0x48')]=_0xef9f43[_0x5673('0x16')][_0x5673('0x68')]('collaboration.channelId'),!this[_0x5673('0x48')])throw new _0x43b61b(_0x5673('0x1b'),this);this[_0x5673('0x7c')](_0x28b7ba,_0x5673('0x87'),(_0x39b1e7,_0x186f9a)=>{const _0x26c1ae=_0x186f9a[0x0];_0x26c1ae[_0x5673('0x27')]&&(_0x39b1e7['return']=_0x28b7ba['getUser'](_0x26c1ae[_0x5673('0x27')]),_0x39b1e7[_0x5673('0x6f')]()),null===_0x26c1ae[_0x5673('0x27')]&&(_0x39b1e7[_0x5673('0x35')]=null,_0x39b1e7[_0x5673('0x6f')]());},{'priority':_0x5673('0x6a')});const _0x277851=_0xef9f43[_0x5673('0x16')][_0x5673('0x68')]('cloudServices.bundleVersion')||_0x5d397b;this[_0x5673('0x78')]=new l[(_0x5673('0x8f'))](_0x277851,this[_0x5673('0x48')]),this[_0x5673('0xaa')]=this['editor'][_0x5673('0xb5')][_0x5673('0x23')],this[_0x5673('0xa5')]=new _0x43c06d(),this['_bufferedOperations']=[],this[_0x5673('0x6c')]=new WeakSet(),this[_0x5673('0x8e')](_0x5673('0xa'),!0x1),this[_0x5673('0x8e')](_0x5673('0x5f'),!0x1),this['_pendingAction']=null,this['_hasSelectionChanged']=!0x1,this[_0x5673('0x90')]=null,this[_0x5673('0x73')]=0x12c,this[_0x5673('0xbf')]=this[_0x5673('0x73')],this[_0x5673('0x9b')]=null,this['_disconnectionOperations']=new WeakSet(),this['_operationIdentifier']=new Y(this[_0x5673('0xae')]),this['listenTo'](_0xef9f43[_0x5673('0xb5')][_0x5673('0x23')][_0x5673('0x4f')],_0x5673('0x9'),(_0x2a04fc,_0x49f2aa)=>{_0x49f2aa[_0x5673('0x66')]&&this[_0x5673('0xbe')]();}),this[_0x5673('0x7c')](_0xef9f43['editing'][_0x5673('0x5')],_0x5673('0xc3'),()=>{this[_0x5673('0xbe')]();}),this[_0x5673('0x82')](),_0xef9f43['model']['on'](_0x5673('0x83'),(_0x40dcd5,_0x4edf0e)=>{const _0x2fa192=_0x4edf0e[0x0];_0x2fa192[_0x5673('0x11')]&&(this[_0x5673('0x38')](_0x2fa192),this['_shouldSendUpdate']()&&this[_0x5673('0xad')]());}),this[_0x5673('0x62')](),this['bind'](_0x5673('0x7e'))['to'](_0xb2a8e7,_0x5673('0x7d'),this,'_hasSynchronizationProblem',(_0x29ba68,_0x1316e3)=>_0x5673('0x9f')===_0x29ba68&&!_0x1316e3),this['on']('change:_isEditingAllowed',()=>{this[_0x5673('0x7e')]?_0xef9f43[_0x5673('0xa8')]('rtc-offline'):_0xef9f43['enableReadOnlyMode'](_0x5673('0x84'));}),this[_0x5673('0x7e')]?_0xef9f43[_0x5673('0xa8')](_0x5673('0x84')):_0xef9f43['enableReadOnlyMode'](_0x5673('0x84')),this['set'](_0x5673('0x64'),!0x1);}async[_0x5673('0x94')](){const _0x3a006b=this[_0x5673('0x24')][_0x5673('0x26')]['get'](_0x4c900f),_0x1c5f94=this[_0x5673('0x24')]['plugins']['get'](_0x18bf03);try{this[_0x5673('0xa')]=!0x0,_0x3a006b[_0x5673('0x80')](this[_0x5673('0x48')]);const _0x15c916=await this['_service'][_0x5673('0x94')](_0x1c5f94['connection'],this[_0x5673('0x91')]);await this[_0x5673('0xbd')](_0x15c916)&&(this[_0x5673('0xa')]=!0x1,this[_0x5673('0x25')]());const _0x3f1ece=await this[_0x5673('0x78')][_0x5673('0x4')]();_0x3a006b['register'](this[_0x5673('0x48')],_0x3f1ece),this['_handleSendingSelectionMarkers'](),this[_0x5673('0x64')]=!0x0;}catch(_0x3867a3){if(function(_0x26025c){return _0x5673('0x29')===_0x26025c[_0x5673('0xba')];}(_0x3867a3)&&this[_0x5673('0x57')])await this[_0x5673('0x6b')]();else{if(function(_0x2904f3){return _0x5673('0x20')===_0x2904f3['code'];}(_0x3867a3)){const _0xd1abb0=_0x4bff80(this['editor'][_0x5673('0x9c')],_0x5673('0xa6'));this[_0x5673('0x4b')](_0xd1abb0);}else{if(!(_0x3867a3 instanceof Q))throw _0x3867a3;this[_0x5673('0x4b')]();}}}}[_0x5673('0xc1')](){const _0x59de1b=this[_0x5673('0x24')]['plugins'][_0x5673('0x68')](_0x18bf03),_0x28d8dd=this[_0x5673('0x24')][_0x5673('0x26')][_0x5673('0x68')](_0x4c900f);this['editor']['enableReadOnlyMode'](_0x5673('0x46')),_0x28d8dd[_0x5673('0x65')]['has'](this[_0x5673('0x48')])&&_0x28d8dd[_0x5673('0x80')](this[_0x5673('0x48')]),_0x59de1b[_0x5673('0x92')](this),this[_0x5673('0x43')](),super[_0x5673('0xc1')]();}async['_handleReconnectionResponse'](_0xfa4560){if(this[_0x5673('0x57')]!==_0xfa4560[_0x5673('0x57')]&&this[_0x5673('0x9b')]!==_0xfa4560[_0x5673('0x28')])throw new Q();return this['sessionId']=_0xfa4560['sessionId'],this[_0x5673('0x3b')]([],{..._0xfa4560,'wereChangesApplied':!0x1,'data':_0xfa4560['data']},_0x5673('0x94'));}async['_connectService'](_0x5af663,_0x390860=!0x1){const {connection:_0x20bcc3}=this[_0x5673('0x24')]['plugins']['get'](_0x18bf03);l['CollaborativeEditingService']['getConnectedSessions'](_0x20bcc3,this[_0x5673('0x48')])[_0x5673('0x97')](_0xd6452=>this[_0x5673('0x98')](_0xd6452))[_0x5673('0x7a')](_0x124cb5=>{this[_0x5673('0x9a')](_0x5673('0x1d'),_0x124cb5);}),this[_0x5673('0x7c')](this[_0x5673('0x78')],_0x5673('0x36'),this[_0x5673('0xb')][_0x5673('0xb1')](this)),this['listenTo'](this[_0x5673('0x78')],'error',(_0x3868fd,_0x5a110f)=>{this[_0x5673('0x9a')](_0x5673('0x42'),_0x5a110f);}),this[_0x5673('0x7c')](this['_service'],_0x5673('0xab'),()=>{this['_isConnected']=!0x1;});const _0x3cba5c=this[_0x5673('0x2d')][_0x5673('0x21')](_0x5af663),_0x46cb4a=await this[_0x5673('0x78')][_0x5673('0xb6')](_0x20bcc3,this[_0x5673('0x2e')](_0x5af663),_0x3cba5c);if(this['sessionId']=_0x46cb4a[_0x5673('0x57')],_0x46cb4a['wereChangesApplied']&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']()),_0x390860){if(!_0x46cb4a[_0x5673('0x40')])return void this['_handleReconnectionError']();this[_0x5673('0x52')][_0x5673('0x99')](),this['_offset']=_0x46cb4a[_0x5673('0x85')],this['serverHistory']['version']=this[_0x5673('0x81')],await this[_0x5673('0x3b')](_0x5af663,_0x46cb4a,_0x5673('0x86'));}else await this[_0x5673('0xb9')](_0x46cb4a,_0x5af663);this['_handleSendingSelectionMarkers'](),this[_0x5673('0x64')]=!0x0;}[_0x5673('0xc4')](){const _0x17d3ae=this[_0x5673('0x24')][_0x5673('0x26')][_0x5673('0x68')](_0x4c900f),_0x3e8f86=_0x17d3ae['channelSessions'][_0x5673('0x68')](this['_channelId']);_0x3e8f86&&_0x3e8f86[_0x5673('0x33')]>0x1?(this[_0x5673('0x89')]=!0x0,this['_sendBufferedOperationsDelayed']()):this[_0x5673('0x7c')](_0x17d3ae,_0x5673('0xd')+this[_0x5673('0x48')],_0x110bf6=>{_0x17d3ae[_0x5673('0x65')]['get'](this[_0x5673('0x48')])[_0x5673('0x33')]>0x1&&(this[_0x5673('0x89')]=!0x0,this[_0x5673('0xad')](),_0x110bf6[_0x5673('0xc0')]());});}async[_0x5673('0xb')](_0x760e58,_0x31326a,_0xbd1551,_0x27e220){if(!this['_isPendingUpdate']&&this['_document'][_0x5673('0x12')]==_0x31326a){const _0x453ede=this[_0x5673('0x75')](_0xbd1551,_0x27e220);await this[_0x5673('0xa4')](_0x453ede),this[_0x5673('0x4e')](_0x453ede,_0x31326a,_0xbd1551[_0x5673('0x28')])||this['_crash'](_0x5673('0x4a'));}}async[_0x5673('0x6b')](){this['_disconnectService']();const {locale:_0x5cfccd}=this[_0x5673('0x24')];let _0x284e4e;try{_0x284e4e=await this['_service']['getDocumentDetails']();}catch(_0x63feb3){const _0x3970d0=_0x4bff80(_0x5cfccd,'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[_0x5673('0x4b')](_0x3970d0);}const _0x367ef7=_0x284e4e['currentDocumentSession']||_0x284e4e[_0x5673('0x9d')];if(this['_lastSyncedOperationId']===_0x367ef7[_0x5673('0x28')])await this[_0x5673('0x3e')](this[_0x5673('0x24')][_0x5673('0xb5')][_0x5673('0x23')][_0x5673('0x76')][_0x5673('0x5c')](),!0x0);else{const _0x1ee48e=_0x4bff80(_0x5cfccd,'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[_0x5673('0x4b')](_0x1ee48e);}}[_0x5673('0x43')](){this[_0x5673('0x78')][_0x5673('0x49')](),this['_bufferedOperations']=[],clearTimeout(this[_0x5673('0x77')]),this[_0x5673('0x56')](this[_0x5673('0x78')]);}[_0x5673('0x98')](_0x23936f){const _0x40882a=this[_0x5673('0x24')][_0x5673('0x26')][_0x5673('0x68')](_0x4c900f);this[_0x5673('0x7c')](_0x40882a,_0x5673('0xd')+this['_channelId'],(_0x8e4e22,{session:_0x574549})=>{if(_0x574549['id']===_0x40882a[_0x5673('0x41')]){_0x8e4e22[_0x5673('0xc0')]();const _0x27c821=this[_0x5673('0x24')]['plugins']['has'](_0x5673('0xbb'))&&this[_0x5673('0x24')][_0x5673('0x26')][_0x5673('0x68')](_0x5673('0xbb'));let _0x527731=_0x574549[_0x5673('0x5a')];_0x27c821&&_0x27c821[_0x5673('0xb3')]&&(_0x527731=_0x527731[_0x5673('0x60')](_0x3e53f4=>_0x5673('0x2')!==_0x3e53f4)),this[_0x5673('0x24')][_0x5673('0x26')]['get'](_0x5673('0x74'))[_0x5673('0x7b')](_0x527731,this[_0x5673('0x48')]);}}),_0x40882a[_0x5673('0x1e')](this[_0x5673('0x48')],_0x23936f);}[_0x5673('0x82')](){const _0x2f55a7=this[_0x5673('0x24')][_0x5673('0x72')]['set'];this[_0x5673('0x24')][_0x5673('0x72')][_0x5673('0x8e')]=(..._0x527618)=>{if(!_0x527618[_0x527618[_0x5673('0x33')]-0x1][_0x5673('0x1f')])throw new _0x43b61b(_0x5673('0xaf'),this);_0x2f55a7[_0x5673('0x8c')](this[_0x5673('0x24')][_0x5673('0x72')],_0x527618);};}[_0x5673('0x62')](){this['editor'][_0x5673('0x72')]['on']('init',(_0x58d91e,[_0x3b9ae2])=>{if(this[_0x5673('0xaa')][_0x5673('0x12')])throw new _0x43b61b(_0x5673('0xf'),this);_0x58d91e[_0x5673('0x6f')](),this[_0x5673('0x0')]();const _0x30c3e0=this['_getOperationsFromInitData'](_0x3b9ae2);_0x58d91e[_0x5673('0x35')]=this[_0x5673('0x3e')](_0x30c3e0)[_0x5673('0x97')](()=>{this[_0x5673('0x24')][_0x5673('0x26')][_0x5673('0x68')](_0x18bf03)['addToReconnectionStack'](this),this['editor'][_0x5673('0x72')]['fire'](_0x5673('0xa7'));})[_0x5673('0x7a')](_0x118871=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0x118871))[_0x5673('0xb7')](()=>this[_0x5673('0x25')]());},{'priority':_0x5673('0x6a')});}async['_fetchMissingUsers'](_0x3e2a3f){const _0x204371=this[_0x5673('0x24')]['plugins']['get'](_0x56e7b8),{connection:_0x4197b0}=this[_0x5673('0x24')]['plugins'][_0x5673('0x68')](_0x18bf03),_0x56e539=new Set();for(const _0x23b633 of _0x3e2a3f){const _0x2aabf9=_0x23b633[_0x5673('0x27')];_0x2aabf9&&!_0x204371[_0x5673('0x3d')](_0x2aabf9)&&_0x56e539['add'](_0x2aabf9);}if(0x0===_0x56e539['size'])return;const _0x150557=await _0xde4bad[_0x5673('0xa0')](_0x4197b0,Array[_0x5673('0x13')](_0x56e539));for(const _0x2135f7 of _0x150557)_0x204371[_0x5673('0x3d')](_0x2135f7['id'])||_0x204371['addUser'](_0x2135f7);}[_0x5673('0x8a')](_0x5a98a9){const _0x56999f=this[_0x5673('0x24')][_0x5673('0xb5')],_0x464c6a=[];let _0x261b43=0x0;const _0x53e5b7=_0x5673('0x3f')==typeof _0x5a98a9?{'main':_0x5a98a9}:_0x5a98a9;for(const _0x22ecaf of Object[_0x5673('0x15')](_0x53e5b7)){if(!this[_0x5673('0xaa')]['roots']['has'](_0x22ecaf))throw new _0x43b61b(_0x5673('0x4d'),this);const _0x5659b7=this[_0x5673('0x24')][_0x5673('0x72')]['parse'](_0x53e5b7[_0x22ecaf]),_0x386b7e=this[_0x5673('0xaa')][_0x5673('0xc')](_0x22ecaf),_0x10fb98=new _0x24f7da(_0x56999f[_0x5673('0x47')](_0x386b7e,0x0),_0x5659b7,_0x261b43++);_0x464c6a[_0x5673('0xa3')](_0x10fb98);for(const [_0x4dc3c4,_0x57aac3]of _0x5659b7['markers']){const _0x20f06f=_0x56999f['createRange'](_0x56999f[_0x5673('0x55')](_0x386b7e,_0x57aac3[_0x5673('0x19')][_0x5673('0x51')][_0x5673('0x6e')]()),_0x56999f[_0x5673('0x55')](_0x386b7e,_0x57aac3[_0x5673('0xb8')][_0x5673('0x51')][_0x5673('0x6e')]())),_0x303e40=new _0x4f7ee5(_0x4dc3c4,null,_0x20f06f,_0x56999f[_0x5673('0x2a')],!0x0,_0x261b43++);_0x464c6a[_0x5673('0xa3')](_0x303e40);}}return _0x464c6a;}async['_handleInitialConnectionData'](_0x331c54,_0x30d0f2){let _0xfecbab;this[_0x5673('0x81')]=_0x331c54[_0x5673('0x85')];const _0x29142f=_0x331c54[_0x5673('0x40')]&&!_0x331c54['initData'],_0x36facb=_0x29142f?0x0:_0x331c54[_0x5673('0x72')][_0x5673('0xb0')];if(_0x29142f)_0xfecbab=_0x30d0f2,_0xfecbab[_0x5673('0x2f')](_0x162ad2=>{_0x162ad2[_0x5673('0x37')]=_0x331c54[_0x5673('0x3c')],_0x162ad2[_0x5673('0x70')]=!0x0,_0x162ad2[_0x5673('0x27')]=null;}),this[_0x5673('0x2b')](_0xfecbab,_0x29142f);else{if(_0x331c54[_0x5673('0x31')]){const _0x33e842=this[_0x5673('0x8a')](_0x331c54['initData']);this[_0x5673('0xaa')][_0x5673('0x76')][_0x5673('0x12')]=-_0x33e842[_0x5673('0x33')],_0x33e842[_0x5673('0x2f')](_0x2b0284=>{_0x2b0284[_0x5673('0xb0')]-=_0x33e842[_0x5673('0x33')],_0x2b0284[_0x5673('0x37')]=_0x331c54['sessionCreatedAt'],_0x2b0284[_0x5673('0x70')]=!0x0,_0x2b0284[_0x5673('0x27')]=null;}),this[_0x5673('0x2b')](_0x33e842,!0x0),this['serverHistory']['version']=-_0x33e842['length']+this[_0x5673('0x81')],this['_updateServerHistory'](_0x33e842);}this['_document'][_0x5673('0x76')]['version']=_0x36facb,_0xfecbab=this[_0x5673('0x75')](_0x331c54[_0x5673('0x72')],_0x331c54['metadata']),await this[_0x5673('0xa4')](_0xfecbab),this[_0x5673('0x2b')](_0xfecbab,_0x29142f);}_0x331c54[_0x5673('0x28')]&&(this['_operationIdentifier'][_0x5673('0x61')](_0xfecbab,_0x331c54[_0x5673('0x28')]),this[_0x5673('0x9b')]=_0x331c54[_0x5673('0x28')]),this[_0x5673('0x52')][_0x5673('0x12')]=_0x36facb+this[_0x5673('0x81')],this[_0x5673('0x7f')](_0xfecbab);}[_0x5673('0x9a')](_0x37a09d,_0x4a95fe){throw this['_isPendingUpdate']=!0x0,_0x4a95fe&&console[_0x5673('0x18')](_0x4a95fe),new _0x43b61b(_0x37a09d,this['editor']);}[_0x5673('0x38')](_0x56164d){this[_0x5673('0x6c')][_0x5673('0x2c')](_0x56164d)||(this[_0x5673('0x6c')][_0x5673('0xb4')](_0x56164d),this[_0x5673('0x96')][_0x5673('0xa3')](_0x56164d),this[_0x5673('0x44')]||_0x5673('0xac')==_0x56164d[_0x5673('0x1a')]&&!_0x56164d['affectsData']||this[_0x5673('0x0')]());}[_0x5673('0xad')](_0x412c4d=!0x1){!_0x412c4d&&this[_0x5673('0xa')]||(this[_0x5673('0xa')]=!0x0,clearTimeout(this[_0x5673('0x90')]),this[_0x5673('0x90')]=setTimeout(()=>{this['_sendBufferedOperations']()[_0x5673('0x97')](_0x171915=>{_0x171915&&(this[_0x5673('0x25')](),this[_0x5673('0xa')]=!0x1);})[_0x5673('0x7a')](_0x2fefd7=>{if(this[_0x5673('0x25')](),this[_0x5673('0xa')]=!0x1,!function(_0xc73c47){return _0xc73c47[_0x5673('0x9e')][_0x5673('0x6d')]('cloud-services-internal-error:\x20Not\x20connected.')||_0xc73c47[_0x5673('0x9e')]['startsWith'](_0x5673('0x63'))||_0xc73c47[_0x5673('0x9e')][_0x5673('0x6d')](_0x5673('0x67'));}(_0x2fefd7))throw _0x2fefd7;});},this[_0x5673('0xbf')]));}async[_0x5673('0x5b')](){const _0x45398d=this[_0x5673('0x24')][_0x5673('0x26')][_0x5673('0x68')](_0x31f93f);if(this[_0x5673('0x10')]()&&(_0x45398d[_0x5673('0x3')](),this[_0x5673('0x89')]=!0x1),!this[_0x5673('0x7')]())return!0x0;const _0x41b736=[...this[_0x5673('0x96')]];for(const _0x48099a of _0x41b736)_0x48099a[_0x5673('0x95')]=this[_0x5673('0xaa')][_0x5673('0x76')][_0x5673('0xa9')](_0x48099a);const _0x223621=this['_operationIdentifier'][_0x5673('0x21')](_0x41b736),_0x1df21a=K++,_0xd9998a=this[_0x5673('0x2e')](_0x41b736),_0x1d11aa=await this[_0x5673('0x78')][_0x5673('0x93')](_0xd9998a,_0xd9998a[_0x5673('0xb0')],_0x223621);try{return await this[_0x5673('0x3b')](_0x41b736,_0x1d11aa,_0x1df21a);}catch(_0xce8696){return this[_0x5673('0x9a')](_0x5673('0xa2'),_0xce8696);}}async['_handleServerResponse'](_0x10e7f5,_0x50eb4a,_0x5825f7){if(_0x50eb4a[_0x5673('0x18')])throw _0x50eb4a['error'];let _0x5980c7=!0x1;if(_0x50eb4a['wereChangesApplied']){_0x50eb4a[_0x5673('0x28')]&&(this[_0x5673('0x9b')]=_0x50eb4a[_0x5673('0x28')]),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0xc72835=>!_0x10e7f5[_0x5673('0x1')](_0xc72835));for(const _0x10c65b of _0x10e7f5)_0x10c65b[_0x5673('0x37')]=_0x50eb4a[_0x5673('0xe')];this[_0x5673('0x7f')](_0x10e7f5),_0x5980c7=!0x0,this[_0x5673('0xbf')]=this[_0x5673('0x73')];}else{const _0x4f7313=this[_0x5673('0x75')](_0x50eb4a[_0x5673('0x72')],_0x50eb4a[_0x5673('0x79')])[_0x5673('0x60')](_0x9d543f=>_0x9d543f['baseVersion']>=this[_0x5673('0x59')]);await this[_0x5673('0xa4')](_0x4f7313),_0x5980c7=this[_0x5673('0x4e')](_0x4f7313,_0x50eb4a['version'],_0x50eb4a[_0x5673('0x28')]),this[_0x5673('0xbf')]=Math[_0x5673('0x39')](this[_0x5673('0xbf')]/0x2);}return _0x5980c7?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this[_0x5673('0x9a')](_0x5673('0x53'));}[_0x5673('0x4e')](_0x5796f7,_0x16d4d0,_0x1ebfb8){try{const _0x677b67={'document':this[_0x5673('0xaa')],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x5271de,operationsB:_0x24880a,originalOperations:_0x3f0046}=_0xb00a24(_0x5796f7,this[_0x5673('0x96')],_0x677b67);X(_0x5271de,this[_0x5673('0xaa')][_0x5673('0x12')]),X(_0x24880a,_0x16d4d0);for(const _0x3731c8 of _0x5271de){const _0x826188=_0x3f0046[_0x5673('0x68')](_0x3731c8);_0x3731c8['_authorId']=_0x826188?_0x826188[_0x5673('0x27')]:null;}_0x1ebfb8&&(this['_operationIdentifier'][_0x5673('0x61')](_0x5796f7,_0x1ebfb8),this['_lastSyncedOperationId']=_0x1ebfb8),this[_0x5673('0x96')]=[..._0x24880a],this[_0x5673('0x2b')](_0x5271de),this[_0x5673('0x7f')](_0x5796f7);}catch(_0x3991ea){return console[_0x5673('0x18')](_0x3991ea),!0x1;}return!0x0;}[_0x5673('0x2b')](_0x36bb9e,_0x4ccdf3=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0x5a598d=>{for(const _0x1e8151 of _0x36bb9e)this[_0x5673('0x6c')]['add'](_0x1e8151),_0x5a598d[_0x5673('0x3a')][_0x5673('0x34')](_0x1e8151),this[_0x5673('0x24')]['model'][_0x5673('0x83')](_0x1e8151);});}[_0x5673('0x7f')](_0xce59e8){_0xce59e8['forEach'](_0x221fe8=>{const _0x4e7ebd=_0x221fe8[_0x5673('0x22')]();_0x4e7ebd[_0x5673('0x27')]=_0x221fe8['_authorId'],_0x4e7ebd['_isInit']=!!_0x221fe8[_0x5673('0x70')],_0x4e7ebd['createdAt']=_0x221fe8['createdAt'],_0x4e7ebd['baseVersion']+=this[_0x5673('0x81')],_0x221fe8[_0x5673('0x32')]&&this['_disconnectionOperations'][_0x5673('0xb4')](_0x4e7ebd),this['serverHistory'][_0x5673('0x34')](_0x4e7ebd);});}[_0x5673('0x4b')](_0xcc671f){const _0x14b630=this[_0x5673('0x24')][_0x5673('0x26')][_0x5673('0x68')]('Notification'),_0x457aad=this[_0x5673('0x24')][_0x5673('0x9c')];_0xcc671f||(_0xcc671f=_0x4bff80(_0x457aad,_0x5673('0x8b'))),_0x14b630[_0x5673('0xb2')](_0xcc671f,{'title':_0x4bff80(_0x457aad,_0x5673('0xc2')),'namespace':_0x5673('0x50')}),this[_0x5673('0x5f')]=!0x0,clearTimeout(this[_0x5673('0x90')]),this['_bufferedOperations']=[],this['editor'][_0x5673('0x26')]['get'](_0x18bf03)[_0x5673('0xc1')]();}[_0x5673('0x0')](){this[_0x5673('0x44')]||(this[_0x5673('0x44')]=this[_0x5673('0x24')][_0x5673('0x26')][_0x5673('0x68')](_0x3b81ae)['add'](_0x4bff80(this[_0x5673('0x24')]['locale'],_0x5673('0x88'))));}[_0x5673('0x25')](){this[_0x5673('0x44')]&&(this[_0x5673('0x24')][_0x5673('0x26')][_0x5673('0x68')](_0x3b81ae)[_0x5673('0x8d')](this[_0x5673('0x44')]),this[_0x5673('0x44')]=null);}[_0x5673('0x2e')](_0x5495fe){const _0x316c11=_0x5495fe[_0x5673('0x30')](_0x103788=>_0x103788[_0x5673('0x5e')]());return this[_0x5673('0xa5')][_0x5673('0x6')](_0x316c11);}[_0x5673('0x75')](_0x3c2f5b,_0x47a723){const _0x1f42bb=this[_0x5673('0xa5')][_0x5673('0x5d')](_0x3c2f5b)[_0x5673('0x30')]((_0x104a1e,_0x4bddeb)=>{const _0x4ea018=_0x289149['fromJSON'](_0x104a1e,this[_0x5673('0xaa')]);return _0x4ea018[_0x5673('0x95')]=_0x104a1e['wasUndone'],_0x5673('0x17')===_0x47a723[_0x4bddeb][_0x5673('0x1a')]&&(_0x4ea018[_0x5673('0x32')]=!0x0),_0x4ea018;});return this[_0x5673('0x54')](_0x1f42bb,_0x47a723),_0x1f42bb;}[_0x5673('0x54')](_0x264a32,_0x5765d3){for(let _0x4e922b=0x0;_0x4e922b<_0x264a32['length'];_0x4e922b++)'init'==_0x5765d3[_0x4e922b][_0x5673('0x1a')]?(_0x264a32[_0x4e922b][_0x5673('0x70')]=!0x0,_0x264a32[_0x4e922b][_0x5673('0x27')]=null):(_0x264a32[_0x4e922b][_0x5673('0x70')]=!0x1,_0x264a32[_0x4e922b][_0x5673('0x27')]=_0x5765d3[_0x4e922b]['userId']),_0x264a32[_0x4e922b][_0x5673('0x37')]=_0x5765d3[_0x4e922b][_0x5673('0x37')];}[_0x5673('0xbe')](){this[_0x5673('0x89')]=!0x0,this[_0x5673('0x10')]()&&this['_sendBufferedOperationsDelayed']();}[_0x5673('0x10')](){const _0x33cab7=this[_0x5673('0x24')][_0x5673('0x26')]['get'](_0x4c900f)[_0x5673('0x65')][_0x5673('0x68')](this[_0x5673('0x48')]);return!this['editor'][_0x5673('0xa1')]&&_0x33cab7&&_0x33cab7['length']>0x1&&this['_hasSelectionChanged'];}[_0x5673('0x7')](){return this['_bufferedOperations'][_0x5673('0x33')]>0x0||this[_0x5673('0x10')]();}}class Q extends Error{}function X(_0xafa127,_0x227791){for(const _0x4214bf of _0xafa127)_0x4214bf[_0x5673('0xb0')]=_0x227791++;}l['CollaborativeEditingService']=_0x1a5728;class Y{constructor(_0x46ed15){this[_0x5673('0x1c')]=_0x46ed15,this['_operationToId']=new WeakMap();}[_0x5673('0x21')](_0x3b77b6){let _0x2e655c=_0x3b77b6['length'];for(;_0x2e655c--;){const _0x461d36=_0x3b77b6[_0x2e655c];if(!this[_0x5673('0x1c')][_0x5673('0x2c')](_0x461d36)){if(!this[_0x5673('0x8')][_0x5673('0x2c')](_0x461d36)){const _0x2b8d00=_0x226961()['slice'](0x1,0x12);this[_0x5673('0x8')][_0x5673('0x8e')](_0x461d36,_0x2b8d00);}return this[_0x5673('0x8')]['get'](_0x461d36);}}}[_0x5673('0x61')](_0x22caa9,_0x406fd5){if(!_0x406fd5)return;let _0x333ed2=_0x22caa9[_0x5673('0x33')];for(;_0x333ed2--;){const _0xe4941a=_0x22caa9[_0x333ed2];this['_ignoredOperations'][_0x5673('0x2c')](_0xe4941a)||this[_0x5673('0x8')][_0x5673('0x8e')](_0xe4941a,_0x406fd5);}}}