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

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.
Files changed (66) hide show
  1. package/build/real-time-collaboration.js +1 -2
  2. package/package.json +5 -5
  3. package/src/common-translations.js +1 -1
  4. package/src/presencelist/presencelistui.js +1 -1
  5. package/src/presencelist/view/presencecounterview.js +1 -1
  6. package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
  7. package/src/presencelist/view/presencedropdownlistview.js +1 -1
  8. package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
  9. package/src/presencelist/view/presenceinlinelistview.js +1 -1
  10. package/src/presencelist/view/presencelistview.js +1 -1
  11. package/src/presencelist.js +1 -1
  12. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +1 -1
  13. package/src/realtimecollaborativecomments.js +1 -1
  14. package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
  15. package/src/realtimecollaborativeediting/sessions.js +1 -1
  16. package/src/realtimecollaborativeediting/usermarkers.js +1 -1
  17. package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
  18. package/src/realtimecollaborativeediting.js +1 -1
  19. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
  20. package/src/realtimecollaborativerevisionhistory.js +1 -1
  21. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
  22. package/src/realtimecollaborativetrackchanges.js +1 -1
  23. package/build/translations/ar.js +0 -1
  24. package/build/translations/bg.js +0 -1
  25. package/build/translations/bn.js +0 -1
  26. package/build/translations/ca.js +0 -1
  27. package/build/translations/cs.js +0 -1
  28. package/build/translations/da.js +0 -1
  29. package/build/translations/de-ch.js +0 -1
  30. package/build/translations/de.js +0 -1
  31. package/build/translations/el.js +0 -1
  32. package/build/translations/en-au.js +0 -1
  33. package/build/translations/es.js +0 -1
  34. package/build/translations/et.js +0 -1
  35. package/build/translations/fi.js +0 -1
  36. package/build/translations/fr.js +0 -1
  37. package/build/translations/gl.js +0 -1
  38. package/build/translations/he.js +0 -1
  39. package/build/translations/hi.js +0 -1
  40. package/build/translations/hr.js +0 -1
  41. package/build/translations/hu.js +0 -1
  42. package/build/translations/id.js +0 -1
  43. package/build/translations/it.js +0 -1
  44. package/build/translations/ja.js +0 -1
  45. package/build/translations/ko.js +0 -1
  46. package/build/translations/lt.js +0 -1
  47. package/build/translations/lv.js +0 -1
  48. package/build/translations/ms.js +0 -1
  49. package/build/translations/nl.js +0 -1
  50. package/build/translations/no.js +0 -1
  51. package/build/translations/pl.js +0 -1
  52. package/build/translations/pt-br.js +0 -1
  53. package/build/translations/pt.js +0 -1
  54. package/build/translations/ro.js +0 -1
  55. package/build/translations/ru.js +0 -1
  56. package/build/translations/sk.js +0 -1
  57. package/build/translations/sr-latn.js +0 -1
  58. package/build/translations/sr.js +0 -1
  59. package/build/translations/sv.js +0 -1
  60. package/build/translations/th.js +0 -1
  61. package/build/translations/tk.js +0 -1
  62. package/build/translations/tr.js +0 -1
  63. package/build/translations/uk.js +0 -1
  64. package/build/translations/vi.js +0 -1
  65. package/build/translations/zh-cn.js +0 -1
  66. package/build/translations/zh.js +0 -1
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.2",
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": "^39.0.0",
31
+ "@ckeditor/ckeditor5-operations-compressor": "^35.3.2",
32
+ "ckeditor5": "^35.3.2",
33
+ "ckeditor5-collaboration": "^35.3.2",
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(_0x3ea33d,_0x359ed3,_0x547d76){const t=_0x3ea33d['t'];switch(_0x359ed3){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'},_0x547d76);}}
@@ -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 _0xb37d=['bind','pin','counterView','destroy','inlineListView','_createView','_handleUserAdd','config','get','ck\x20ck-presence-list__balloon','plugins','content','context','presenceList.collapseAt','listenTo','attachToDom','requires','showDropdown','hideDropdown','bindTo','onClick','add','reverse','number','appendChild','presencelist-missing-container','allConnectedUsers','unpin','items','detachFromDom','class','lastConnectedUsers','isVisible','view','presenceList.container','remove','init','presenceDropdownView','_allConnectedUsers','balloonPanelView','define','isRendered','hasTooltip','locale','usersCount','presencelist-collapseat-invalid-format','element','bodyCollection','presenceList','isCollapsed','render','isHidden','execute','_handleUserRemove','using'];(function(_0x516d40,_0xb37da8){const _0x1b34d0=function(_0x3d0dd8){while(--_0x3d0dd8){_0x516d40['push'](_0x516d40['shift']());}};_0x1b34d0(++_0xb37da8);}(_0xb37d,0x1ba));const _0x1b34=function(_0x516d40,_0xb37da8){_0x516d40=_0x516d40-0x0;let _0x1b34d0=_0xb37d[_0x516d40];return _0x1b34d0;};import{ContextPlugin as _0x5501a0}from'ckeditor5/src/core';import{CKEditorError as _0xabd3e1,Collection as _0x415faf}from'ckeditor5/src/utils';import{clickOutsideHandler as _0x41dbba,BodyCollection as _0xb9f72b,BalloonPanelView as _0x8accfe}from'ckeditor5/src/ui';import{isElement as _0x4fabea}from'lodash-es';import _0x40e84c from'../realtimecollaborativeediting/sessions';import _0x5cd1b3 from'./view/presencelistview';import _0x197ce3 from'./view/presencedropdownlistview';import _0x3ea883 from'./view/presencedropdownlistitemview';import _0x308128 from'./view/presenceinlinelistitemview';export default class i extends _0x5501a0{constructor(_0x84c4fd){super(_0x84c4fd),_0x84c4fd[_0x1b34('0x5')][_0x1b34('0x26')](_0x1b34('0x2e'),{'collapseAt':0x6});const _0x348a34=_0x84c4fd[_0x1b34('0x5')][_0x1b34('0x6')](_0x1b34('0xb'));if(_0x1b34('0x15')!=typeof _0x348a34)throw new _0xabd3e1(_0x1b34('0x2b'),this);if(_0x348a34<0x1)throw new _0xabd3e1(_0x1b34('0x2b'),this);}static get[_0x1b34('0xe')](){return[_0x40e84c];}[_0x1b34('0x22')](){const _0x3a684d=this[_0x1b34('0xa')];this[_0x1b34('0x24')]=_0x3a684d[_0x1b34('0x8')][_0x1b34('0x6')](_0x40e84c)[_0x1b34('0x18')],this['set'](_0x1b34('0x2a'),0x0),this[_0x1b34('0x1d')]=new _0x415faf(),this[_0x1b34('0x25')]=new _0x8accfe(),this[_0x1b34('0x25')][_0x1b34('0x1c')]=_0x1b34('0x7'),this[_0x1b34('0x1f')]=this[_0x1b34('0x3')](),this[_0x1b34('0x23')]=void 0x0;for(const _0x327088 of this['_allConnectedUsers'])this[_0x1b34('0x4')](_0x327088);this[_0x1b34('0xc')](this['_allConnectedUsers'],_0x1b34('0x13'),(_0x410439,_0x189831)=>{this[_0x1b34('0x4')](_0x189831);}),this['listenTo'](this['_allConnectedUsers'],_0x1b34('0x21'),(_0x5eb67c,_0x1b6276)=>{this[_0x1b34('0x33')](_0x1b6276);});}[_0x1b34('0x3')](){const _0x20f95b=this[_0x1b34('0xa')],_0x1f8a29=new _0x5cd1b3(this[_0x1b34('0xa')][_0x1b34('0x29')]),_0x2e9e6e=this[_0x1b34('0x25')];if(!_0x4fabea(_0x20f95b[_0x1b34('0x5')][_0x1b34('0x6')](_0x1b34('0x20'))))throw new _0xabd3e1(_0x1b34('0x17'),this);return _0x1f8a29['counterView']['bind'](_0x1b34('0x2a'))['to'](this),_0x1f8a29[_0x1b34('0x35')](_0x1b34('0x2f'))['to'](this,_0x1b34('0x2a'),_0x45cc0e=>{const _0x4585f4=_0x45cc0e>=_0x20f95b[_0x1b34('0x5')][_0x1b34('0x6')](_0x1b34('0xb'));return _0x1f8a29[_0x1b34('0x0')][_0x1b34('0x31')]=!(0x1==_0x45cc0e||_0x4585f4),_0x4585f4||this[_0x1b34('0x10')](),_0x4585f4;}),_0x1f8a29[_0x1b34('0x2')][_0x1b34('0x1a')][_0x1b34('0x11')](this[_0x1b34('0x1d')])[_0x1b34('0x34')](_0x4d7401=>{const _0x1e8769=_0x20f95b[_0x1b34('0x5')]['get']('presenceList'),_0xbaae16=new _0x308128(_0x20f95b[_0x1b34('0x29')],_0x4d7401,_0x1e8769[_0x1b34('0x12')]);return _0xbaae16[_0x1b34('0x35')](_0x1b34('0x28'))['to'](_0x1f8a29,'isCollapsed',_0x5aef57=>!_0x5aef57),_0x1e8769[_0x1b34('0x12')]&&this[_0x1b34('0xc')](_0xbaae16,'execute',()=>{this[_0x1b34('0x1f')][_0x1b34('0x2f')]||_0x1e8769['onClick'](_0x4d7401,_0xbaae16[_0x1b34('0x2c')]);}),_0xbaae16;}),this['listenTo'](_0x1f8a29['inlineListView'],_0x1b34('0x32'),()=>{this[_0x1b34('0x23')]?this[_0x1b34('0x10')]():this[_0x1b34('0x1f')][_0x1b34('0x2f')]&&this[_0x1b34('0xf')]();}),_0x1f8a29[_0x1b34('0x30')](),_0x2e9e6e[_0x1b34('0x30')](),_0x41dbba({'emitter':_0x1f8a29,'activator':()=>_0x2e9e6e[_0x1b34('0x1e')],'contextElements':[_0x2e9e6e[_0x1b34('0x2c')],_0x1f8a29[_0x1b34('0x2')][_0x1b34('0x2c')]],'callback':()=>this[_0x1b34('0x10')]()}),_0x20f95b['config'][_0x1b34('0x6')](_0x1b34('0x20'))[_0x1b34('0x16')](_0x1f8a29[_0x1b34('0x2c')]),this[_0x1b34('0x2d')]=new _0xb9f72b(this[_0x1b34('0xa')][_0x1b34('0x29')]),this[_0x1b34('0x2d')][_0x1b34('0xd')](),this[_0x1b34('0x2d')][_0x1b34('0x13')](_0x2e9e6e),_0x1f8a29;}[_0x1b34('0x4')](_0x560c91){this[_0x1b34('0x2a')]++,0x5==this[_0x1b34('0x1d')]['length']&&this[_0x1b34('0x1d')][_0x1b34('0x21')](0x0),this[_0x1b34('0x1d')]['add'](_0x560c91);}[_0x1b34('0x33')](_0x20345a){if(this['usersCount']--,this[_0x1b34('0x1d')][_0x1b34('0x6')](_0x20345a['id'])&&(this[_0x1b34('0x1d')][_0x1b34('0x21')](_0x20345a['id']),this[_0x1b34('0x1d')]['length']<this[_0x1b34('0x2a')]))for(const _0x2add16 of Array['from'](this[_0x1b34('0x24')])[_0x1b34('0x14')]())if(!this[_0x1b34('0x1d')][_0x1b34('0x6')](_0x2add16['id']))return void this[_0x1b34('0x1d')][_0x1b34('0x13')](_0x2add16,0x0);}['showDropdown'](){if(this[_0x1b34('0x23')])return;this[_0x1b34('0x23')]=new _0x197ce3();const _0x3fd915=this[_0x1b34('0xa')]['config'][_0x1b34('0x6')]('presenceList');this['presenceDropdownView'][_0x1b34('0x1a')][_0x1b34('0x11')](this['_allConnectedUsers'])[_0x1b34('0x34')](_0x220093=>{const _0x2b2e13=new _0x3ea883(this[_0x1b34('0xa')][_0x1b34('0x29')],_0x220093,!!_0x3fd915[_0x1b34('0x12')]);return _0x3fd915['onClick']&&this[_0x1b34('0xc')](_0x2b2e13,_0x1b34('0x32'),()=>{_0x3fd915[_0x1b34('0x12')](_0x220093,_0x2b2e13[_0x1b34('0x2c')]);}),_0x2b2e13;}),this[_0x1b34('0x25')][_0x1b34('0x9')][_0x1b34('0x13')](this[_0x1b34('0x23')]),this[_0x1b34('0x25')][_0x1b34('0x36')]({'target':this['view'][_0x1b34('0x2')][_0x1b34('0x2c')]});}[_0x1b34('0x10')](){this['presenceDropdownView']&&(this[_0x1b34('0x25')][_0x1b34('0x19')](),this[_0x1b34('0x25')][_0x1b34('0x9')][_0x1b34('0x21')](this[_0x1b34('0x23')]),this[_0x1b34('0x23')][_0x1b34('0x1')](),this[_0x1b34('0x23')]=void 0x0);}[_0x1b34('0x1')](){super['destroy'](),this['view']&&this[_0x1b34('0x1f')][_0x1b34('0x27')]&&this[_0x1b34('0x1f')]['destroy'](),this[_0x1b34('0x2d')]&&this[_0x1b34('0x2d')][_0x1b34('0x1b')]();}}
@@ -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 _0x1102=['setTemplate','isHidden','ck-presence-list__counter','set','usersCount'];(function(_0x27de1f,_0x11024c){const _0x4a0e56=function(_0x12a790){while(--_0x12a790){_0x27de1f['push'](_0x27de1f['shift']());}};_0x4a0e56(++_0x11024c);}(_0x1102,0x10b));const _0x4a0e=function(_0x27de1f,_0x11024c){_0x27de1f=_0x27de1f-0x0;let _0x4a0e56=_0x1102[_0x27de1f];return _0x4a0e56;};import{View as _0x21df5a}from'ckeditor5/src/ui';import{getTranslation as _0x58c872}from'../../common-translations';export default class rt extends _0x21df5a{constructor(_0x2a3b88){super(_0x2a3b88);const _0x222a02=this['bindTemplate'];this['set']('usersCount',0x0),this[_0x4a0e('0x1')](_0x4a0e('0x4'),!0x0),this[_0x4a0e('0x3')]({'tag':'div','attributes':{'class':['ck',_0x4a0e('0x0'),_0x222a02['if'](_0x4a0e('0x4'),'ck-presence-list__counter--hidden')]},'children':[{'text':_0x222a02['to'](_0x4a0e('0x2'),_0x22f595=>_0x58c872(_0x2a3b88,'CONNECTED_USERS',_0x22f595))}]});}}
@@ -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 _0x1bcd=['ck-presence-list__dropdown-list-item','span','button','userView','div','bindTemplate','ck-user__full-name','getBackgroundColorClass','execute','fire','name','ck-presence-list__marker','tag'];(function(_0xfd921d,_0x1bcdfe){const _0x1c453f=function(_0xc561fd){while(--_0xc561fd){_0xfd921d['push'](_0xfd921d['shift']());}};_0x1c453f(++_0x1bcdfe);}(_0x1bcd,0xa6));const _0x1c45=function(_0xfd921d,_0x1bcdfe){_0xfd921d=_0xfd921d-0x0;let _0x1c453f=_0x1bcd[_0xfd921d];return _0x1c453f;};import{View as _0x5a7e6e}from'ckeditor5/src/ui';import{UserView as _0x320553}from'ckeditor5-collaboration/src/collaboration-core';export default class q extends _0x5a7e6e{constructor(_0xd2d257,_0x4b6662,_0x25c99a){super(_0xd2d257);const _0x5094a3=this[_0x1c45('0x8')];this[_0x1c45('0x6')]=new _0x320553(_0xd2d257,_0x4b6662);const _0x4c66f8={'tag':_0x1c45('0x7'),'attributes':{'class':['ck',_0x1c45('0x3')]},'children':[this[_0x1c45('0x6')],{'tag':_0x1c45('0x4'),'attributes':{'class':['ck',_0x1c45('0x9')]},'children':[{'text':_0x4b6662[_0x1c45('0x0')]}]},{'tag':'span','attributes':{'class':['ck',_0x1c45('0x1'),_0x4b6662['color'][_0x1c45('0xa')]()],'aria-hidden':'true'}}]};_0x25c99a&&(_0x4c66f8[_0x1c45('0x2')]=_0x1c45('0x5'),_0x4c66f8['on']={'click':_0x5094a3['to'](()=>this[_0x1c45('0xc')](_0x1c45('0xb')))}),this['setTemplate'](_0x4c66f8);}}
@@ -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 _0x4346=['items','createCollection','div','ck-presence-list__dropdown-list'];(function(_0x1711af,_0x434680){var _0x4d2ce5=function(_0x1d475d){while(--_0x1d475d){_0x1711af['push'](_0x1711af['shift']());}};_0x4d2ce5(++_0x434680);}(_0x4346,0x6a));var _0x4d2c=function(_0x1711af,_0x434680){_0x1711af=_0x1711af-0x0;var _0x4d2ce5=_0x4346[_0x1711af];return _0x4d2ce5;};import{View as _0x390c64}from'ckeditor5/src/ui';export default class U extends _0x390c64{constructor(_0x4e9dde){super(_0x4e9dde),this[_0x4d2c('0x2')]=this[_0x4d2c('0x3')](),this['setTemplate']({'tag':_0x4d2c('0x0'),'attributes':{'class':['ck',_0x4d2c('0x1')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-presence-list__dropdown-list-wrapper']},'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 _0x5810=['execute','button','tag','span','ck-presence-list__list-item','markerView','getBackgroundColorClass','name','tooltipPosition','set','color','userView','bindTemplate','setTemplate','true','div'];(function(_0x32aee3,_0x5810c3){const _0x7e739e=function(_0x58776a){while(--_0x58776a){_0x32aee3['push'](_0x32aee3['shift']());}};_0x7e739e(++_0x5810c3);}(_0x5810,0x139));const _0x7e73=function(_0x32aee3,_0x5810c3){_0x32aee3=_0x32aee3-0x0;let _0x7e739e=_0x5810[_0x32aee3];return _0x7e739e;};import{View as _0x44ee8f}from'ckeditor5/src/ui';import{UserView as _0x4c9d40}from'ckeditor5-collaboration/src/collaboration-core';export default class E extends _0x44ee8f{constructor(_0x3b58dc,_0x44447,_0x5579f2){super(_0x3b58dc);const _0x452307=this[_0x7e73('0x3')];this[_0x7e73('0x0')]('hasTooltip',!0x0),this['set'](_0x7e73('0xf'),''),this[_0x7e73('0x2')]=new _0x4c9d40(_0x3b58dc,_0x44447),this[_0x7e73('0xc')]=new ot(_0x3b58dc,_0x44447);const _0x1829a9={'tag':_0x7e73('0x6'),'attributes':{'class':['ck',_0x7e73('0xb')],'data-cke-tooltip-text':this[_0x7e73('0x2')][_0x7e73('0xe')],'data-cke-tooltip-position':_0x452307['to']('tooltipPosition'),'data-cke-tooltip-disabled':_0x452307['to']('hasTooltip',_0x13485f=>!_0x13485f),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this[_0x7e73('0x2')],this[_0x7e73('0xc')]]};_0x5579f2&&(_0x1829a9[_0x7e73('0x9')]=_0x7e73('0x8'),_0x1829a9['on']={'click':_0x452307['to'](()=>this['fire'](_0x7e73('0x7')))}),this[_0x7e73('0x4')](_0x1829a9);}}class ot extends _0x44ee8f{constructor(_0x330c2a,_0x31c5f9){super(_0x330c2a),this[_0x7e73('0x4')]({'tag':_0x7e73('0xa'),'attributes':{'class':['ck','ck-presence-list__marker',_0x31c5f9[_0x7e73('0x1')][_0x7e73('0xd')]()],'aria-hidden':_0x7e73('0x5')}});}}
@@ -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 _0x1afe=['items','execute','setTemplate','ck-presence-list__list','fire'];(function(_0x558e8f,_0x1afe29){const _0x216e32=function(_0x20d83c){while(--_0x20d83c){_0x558e8f['push'](_0x558e8f['shift']());}};_0x216e32(++_0x1afe29);}(_0x1afe,0x1cb));const _0x216e=function(_0x558e8f,_0x1afe29){_0x558e8f=_0x558e8f-0x0;let _0x216e32=_0x1afe[_0x558e8f];return _0x216e32;};import{View as _0x2378d0}from'ckeditor5/src/ui';export default class ht extends _0x2378d0{constructor(_0x5e7b14){super(_0x5e7b14),this[_0x216e('0x1')]=this['createCollection']();const _0x4fb3a3=this['bindTemplate'];this[_0x216e('0x3')]({'tag':'div','attributes':{'class':['ck',_0x216e('0x4')]},'children':this[_0x216e('0x1')],'on':{'click':_0x4fb3a3['to'](()=>this[_0x216e('0x0')](_0x216e('0x2')))}});}}
@@ -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 _0x4733=['ck-presence-list','counterView','ck-rounded-corners','inlineListView','set','ck-presence-list--collapsed','isCollapsed','first','ck-reset','items','tooltipPosition','div','listenTo','change','locale'];(function(_0xc927c0,_0x473356){const _0x3f07f1=function(_0x37628d){while(--_0x37628d){_0xc927c0['push'](_0xc927c0['shift']());}};_0x3f07f1(++_0x473356);}(_0x4733,0x98));const _0x3f07=function(_0xc927c0,_0x473356){_0xc927c0=_0xc927c0-0x0;let _0x3f07f1=_0x4733[_0xc927c0];return _0x3f07f1;};import{View as _0xd0a764}from'ckeditor5/src/ui';import _0x4f0179 from'./presencecounterview';import _0x220a71 from'./presenceinlinelistview';import'../../../theme/presencelist.css';export default class D extends _0xd0a764{constructor(_0x4fa19c){super(_0x4fa19c);const _0x274272=this['bindTemplate'];this[_0x3f07('0x2')](_0x3f07('0x4'),!0x0),this[_0x3f07('0xe')]=new _0x4f0179(this[_0x3f07('0xc')]),this[_0x3f07('0x1')]=new _0x220a71(_0x4fa19c),this[_0x3f07('0xa')](this[_0x3f07('0x1')][_0x3f07('0x7')],_0x3f07('0xb'),()=>{for(const _0x2e650e of this['inlineListView']['items'])_0x2e650e[_0x3f07('0x8')]='s';this[_0x3f07('0x1')]['items'][_0x3f07('0x5')]&&(this[_0x3f07('0x1')]['items'][_0x3f07('0x5')][_0x3f07('0x8')]='se');}),this['setTemplate']({'tag':_0x3f07('0x9'),'attributes':{'class':['ck',_0x3f07('0xd'),_0x3f07('0x6'),_0x3f07('0x0'),_0x274272['if'](_0x3f07('0x4'),_0x3f07('0x3'))]},'children':[this['counterView'],this[_0x3f07('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 _0x5d05=['pluginName','requires'];(function(_0x3aa771,_0x5d05ed){var _0x333706=function(_0x5c4df3){while(--_0x5c4df3){_0x3aa771['push'](_0x3aa771['shift']());}};_0x333706(++_0x5d05ed);}(_0x5d05,0x15a));var _0x3337=function(_0x3aa771,_0x5d05ed){_0x3aa771=_0x3aa771-0x0;var _0x333706=_0x5d05[_0x3aa771];return _0x333706;};import{ContextPlugin as _0x5e4f5e}from'ckeditor5/src/core';import _0x4a7f9f from'./realtimecollaborativeediting/sessions';import _0x5b4051 from'./presencelist/presencelistui';export default class s extends _0x5e4f5e{static get[_0x3337('0x1')](){return[_0x4a7f9f,_0x5b4051];}static get[_0x3337('0x0')](){return'PresenceList';}}
@@ -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 _0x2e38=['from','permissions','code','setPermissions','get','catch','removeCommentThread','createdAt','has','connect','_setUpService','collaboration.channelId','delete','config','keys','map','getUser','cloud-services-internal-error:\x20Not\x20connected.','404','destroy','disconnect','Permissions','commentId','CommentsService','message','listenTo','getComment','userId','getConnectedSessions','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','_getService','update','sessionAdd:','getMany','adapter','_terminateService','size','cloudservicescommentsadapter-service-not-exist','commentAdded','CommentsRepository','mySessionId','commentRemoved','_connectService','_services','getCommentThreads','register','assign','removeComment','addComment','commentThreadId','content','addUser','addCommentThread','comments','reconnect','context','cloudservicescommentsadapter-connect-already-connected','plugins','getCommentThread','hasCommentThread','remove','cloudservicescommentsadapter-disconnect-not-exist','startsWith','_fetchMissingUsersForThreads'];(function(_0x1c767d,_0x2e3807){const _0x252383=function(_0xdd4c70){while(--_0xdd4c70){_0x1c767d['push'](_0x1c767d['shift']());}};_0x252383(++_0x2e3807);}(_0x2e38,0xdb));const _0x2523=function(_0x1c767d,_0x2e3807){_0x1c767d=_0x1c767d-0x0;let _0x252383=_0x2e38[_0x1c767d];return _0x252383;};import{Context as _0x913a7d,ContextPlugin as _0x4f5ff8}from'ckeditor5/src/core';import{CKEditorError as _0x3c9311}from'ckeditor5/src/utils';import{Users as _0x138e2d}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b2e85 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x21220a from'@ckeditor/ckeditor-cloud-services-collaboration/src/comments-v2/commentsservice';import _0x317745 from'../realtimecollaborativeediting/websocketgateway';import _0x3d5609 from'../realtimecollaborativeediting/sessions';export default class a extends _0x4f5ff8{static get['requires'](){return[_0x317745,_0x2523('0xc'),_0x3d5609,_0x138e2d];}constructor(_0x3cdc7d){super(_0x3cdc7d),this[_0x2523('0x10')]=new Map();}async['init'](){const _0x27afea=this[_0x2523('0x1c')],_0x32267c=_0x27afea['plugins'][_0x2523('0x29')]('CommentsRepository');if(_0x27afea[_0x2523('0x1e')]['get'](_0x317745)['addToReconnectionStack'](this),_0x32267c[_0x2523('0x7')]={'getCommentThread':async({channelId:_0x266eab,threadId:_0x199ba4})=>{const _0x4b3130=await this['_getService'](_0x266eab)[_0x2523('0x1f')](_0x199ba4)[_0x2523('0x2a')](y);return await this[_0x2523('0x24')]([_0x4b3130]),{'threadId':_0x4b3130[_0x2523('0x16')],'comments':_0x4b3130[_0x2523('0x1a')][_0x2523('0x34')](A)};},'removeCommentThread':({channelId:_0x660ce8,threadId:_0x208abf})=>this[_0x2523('0x3')](_0x660ce8)[_0x2523('0x2b')](_0x208abf)[_0x2523('0x2a')](b)['catch'](y),'addComment':({channelId:_0x1f1096,threadId:_0x3232f8,commentId:_0x355d03,content:_0x84958f,attributes:_0x521593})=>this[_0x2523('0x3')](_0x1f1096)[_0x2523('0x15')](_0x3232f8,_0x355d03,_0x84958f,_0x521593)[_0x2523('0x2a')](y),'updateComment':({channelId:_0x42809e,threadId:_0x11fb27,commentId:_0x22a5b7,content:_0x410c61,attributes:_0x58d639})=>this[_0x2523('0x3')](_0x42809e)['updateComment'](_0x11fb27,_0x22a5b7,_0x410c61,_0x58d639)['catch'](b)[_0x2523('0x2a')](y),'removeComment':({channelId:_0x359648,threadId:_0x3b8ecc,commentId:_0x131d51})=>this[_0x2523('0x3')](_0x359648)[_0x2523('0x14')](_0x3b8ecc,_0x131d51)[_0x2523('0x2a')](b)['catch'](y)},_0x27afea instanceof _0x913a7d){const _0x459058=_0x27afea[_0x2523('0x32')][_0x2523('0x29')](_0x2523('0x30')),_0x39fad6=_0x27afea['plugins'][_0x2523('0x29')](_0x3d5609);await this[_0x2523('0x2f')](_0x459058);const _0x18c298=await this[_0x2523('0x10')][_0x2523('0x29')](_0x459058)[_0x2523('0x1')]();this[_0x2523('0x3e')](_0x39fad6,_0x2523('0x5')+_0x459058,(_0x4c78ec,{session:_0x1fb38b})=>{_0x1fb38b['id']===_0x39fad6[_0x2523('0xd')]&&(_0x4c78ec['off'](),this[_0x2523('0x1c')][_0x2523('0x1e')][_0x2523('0x29')](_0x2523('0x3a'))[_0x2523('0x28')](_0x1fb38b[_0x2523('0x26')],_0x459058));}),_0x39fad6[_0x2523('0x12')](_0x459058,_0x18c298);}}async['_setUpService'](_0x724b3f){if(this[_0x2523('0x10')][_0x2523('0x2d')](_0x724b3f))throw new _0x3c9311(_0x2523('0x1d'),null,{'channelId':_0x724b3f});const _0x38b7ea=this[_0x2523('0x1c')][_0x2523('0x1e')][_0x2523('0x29')](_0x2523('0xc')),_0x2d0f8d=new a[(_0x2523('0x3c'))](_0x724b3f);this['_services']['set'](_0x724b3f,_0x2d0f8d),this[_0x2523('0x3e')](_0x2d0f8d,'commentThreadRemoved',(_0x425ddc,{commentThreadId:_0x56f1c3})=>{const _0x16f8b9=_0x38b7ea[_0x2523('0x1f')](_0x56f1c3);_0x16f8b9&&_0x16f8b9[_0x2523('0x21')]({'isFromAdapter':!0x0});}),this[_0x2523('0x3e')](_0x2d0f8d,_0x2523('0xb'),(_0x3e200a,_0x470e40)=>{const _0x22125e=_0x470e40[_0x2523('0x16')];_0x38b7ea[_0x2523('0x20')](_0x22125e)||_0x38b7ea[_0x2523('0x19')]({'channelId':_0x724b3f,'threadId':_0x22125e,'isFromAdapter':!0x0});const _0x2c72fe=_0x38b7ea[_0x2523('0x1f')](_0x22125e);_0x2c72fe&&_0x2c72fe[_0x2523('0x15')](Object[_0x2523('0x13')](A(_0x470e40),{'isFromAdapter':!0x0}));}),this[_0x2523('0x3e')](_0x2d0f8d,'commentUpdated',(_0x117f95,{commentThreadId:_0x4856c7,commentId:_0x1a4dda,content:_0x325e71,attributes:_0x5c5aac})=>{const _0x3c792c=_0x38b7ea[_0x2523('0x1f')](_0x4856c7);if(_0x3c792c){const _0x54b6f7=_0x3c792c[_0x2523('0x3f')](_0x1a4dda);_0x54b6f7&&_0x54b6f7[_0x2523('0x4')]({'content':_0x325e71,'attributes':_0x5c5aac,'isFromAdapter':!0x0});}}),this[_0x2523('0x3e')](_0x2d0f8d,_0x2523('0xe'),(_0x15fc0e,{commentThreadId:_0x23675e,commentId:_0x1da4da})=>{const _0x4b2810=_0x38b7ea[_0x2523('0x1f')](_0x23675e);if(_0x4b2810){const _0x493648=_0x4b2810['getComment'](_0x1da4da);_0x493648&&_0x493648['remove']({'isFromAdapter':!0x0});}}),await this[_0x2523('0xf')](_0x724b3f);}[_0x2523('0x38')](){if(this[_0x2523('0x1c')]instanceof _0x913a7d){const _0x130a51=this[_0x2523('0x1c')][_0x2523('0x32')][_0x2523('0x29')](_0x2523('0x30'));this[_0x2523('0x8')](_0x130a51);}}[_0x2523('0x8')](_0x106eab){if(!this[_0x2523('0x10')][_0x2523('0x2d')](_0x106eab))throw new _0x3c9311(_0x2523('0x22'),null,{'channelId':_0x106eab});this[_0x2523('0x3')](_0x106eab)[_0x2523('0x39')](),this[_0x2523('0x10')][_0x2523('0x31')](_0x106eab);}async[_0x2523('0x1b')](){for(const _0x30b238 of this[_0x2523('0x10')][_0x2523('0x33')]())await this[_0x2523('0xf')](_0x30b238);if(this[_0x2523('0x1c')]instanceof _0x913a7d){const _0xa13d3b=this['context'][_0x2523('0x32')][_0x2523('0x29')](_0x2523('0x30')),_0x4b8811=this[_0x2523('0x1c')][_0x2523('0x1e')]['get'](_0x3d5609);_0x4b8811['unregister'](_0xa13d3b);const _0x3220a8=await this[_0x2523('0x10')]['get'](_0xa13d3b)[_0x2523('0x1')]();_0x4b8811[_0x2523('0x12')](_0xa13d3b,_0x3220a8);}}async[_0x2523('0xf')](_0x248047){const {connection:_0x426472}=this[_0x2523('0x1c')][_0x2523('0x1e')][_0x2523('0x29')](_0x317745),_0x315935=this['context'][_0x2523('0x1e')][_0x2523('0x29')](_0x2523('0xc')),_0x21cb4b=this[_0x2523('0x10')][_0x2523('0x29')](_0x248047),_0x207806=await _0x21cb4b[_0x2523('0x2e')](_0x426472);await this[_0x2523('0x24')](_0x207806);const _0x2e02a1=new Set(Array[_0x2523('0x25')](_0x315935[_0x2523('0x11')]({'channelId':_0x248047}),_0x1bb1a4=>_0x1bb1a4['id']));for(const _0x3c892f of _0x207806)_0x2e02a1[_0x2523('0x31')](_0x3c892f[_0x2523('0x16')]);for(const _0x3128c1 of _0x2e02a1)_0x315935[_0x2523('0x1f')](_0x3128c1)[_0x2523('0x21')]({'isFromAdapter':!0x0});for(const _0x469a50 of _0x207806){let _0xc27b37=_0x315935['getCommentThread'](_0x469a50[_0x2523('0x16')]);_0xc27b37||(_0xc27b37=_0x315935[_0x2523('0x19')]({'channelId':_0x248047,'threadId':_0x469a50[_0x2523('0x16')],'isFromAdapter':!0x0}));const _0x1f1bc8=new Set(Array[_0x2523('0x25')](_0xc27b37[_0x2523('0x1a')],_0x3259ed=>_0x3259ed['id']));for(const _0x419200 of _0x469a50[_0x2523('0x1a')])_0x1f1bc8[_0x2523('0x31')](_0x419200[_0x2523('0x3b')]);for(const _0xb278c2 of _0x1f1bc8)_0xc27b37['getComment'](_0xb278c2)[_0x2523('0x21')]({'isFromAdapter':!0x0});for(const _0x49f6ee of _0x469a50['comments']){const _0x23499d=_0xc27b37['getComment'](_0x49f6ee[_0x2523('0x3b')]);_0x23499d?_0x23499d[_0x2523('0x17')]!==_0x49f6ee['content']&&_0x23499d[_0x2523('0x4')]({'content':_0x49f6ee[_0x2523('0x17')],'isFromAdapter':!0x0}):_0xc27b37[_0x2523('0x15')](Object[_0x2523('0x13')](A(_0x49f6ee),{'isFromAdapter':!0x0}));}}}[_0x2523('0x3')](_0x47ebc7){if(!this[_0x2523('0x10')][_0x2523('0x2d')](_0x47ebc7))throw new _0x3c9311(_0x2523('0xa'),null,{'channelId':_0x47ebc7});return this['_services'][_0x2523('0x29')](_0x47ebc7);}async[_0x2523('0x24')](_0x594e44){const _0x320908=this[_0x2523('0x1c')][_0x2523('0x1e')][_0x2523('0x29')](_0x138e2d),{connection:_0x444bc2}=this[_0x2523('0x1c')][_0x2523('0x1e')][_0x2523('0x29')](_0x317745),_0x49f6bc=new Set();for(const {comments:_0x2dd4d7}of _0x594e44)for(const {userId:_0x1159d1}of _0x2dd4d7)_0x320908['getUser'](_0x1159d1)||_0x49f6bc['add'](_0x1159d1);if(0x0===_0x49f6bc[_0x2523('0x9')])return;const _0x2582e0=await _0x2b2e85[_0x2523('0x6')](_0x444bc2,Array[_0x2523('0x25')](_0x49f6bc));for(const _0x104f70 of _0x2582e0)_0x320908[_0x2523('0x35')](_0x104f70['id'])||_0x320908[_0x2523('0x18')](_0x104f70);}}async function b(_0x7798d3){if(_0x2523('0x37')!==_0x7798d3[_0x2523('0x27')])throw _0x7798d3;}function y(_0x5ab2e6){if((_0x3bb1be=_0x5ab2e6)['message'][_0x2523('0x23')](_0x2523('0x2'))||_0x3bb1be[_0x2523('0x3d')]['startsWith'](_0x2523('0x36'))||_0x3bb1be['message'][_0x2523('0x23')]('cloud-services-internal-error:\x20Request\x20timeout.'))return new Promise(()=>{});var _0x3bb1be;throw _0x5ab2e6;}function A(_0x4ba52d){return{'threadId':_0x4ba52d[_0x2523('0x16')],'commentId':_0x4ba52d[_0x2523('0x3b')],'content':_0x4ba52d['content'],'createdAt':_0x4ba52d[_0x2523('0x2c')],'authorId':_0x4ba52d[_0x2523('0x0')],'attributes':_0x4ba52d['attributes']};}a[_0x2523('0x3c')]=_0x21220a;
@@ -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 _0x42eb=['connected','CommentsRepository','collaboration.channelId','data','destroy','_terminateService','CommentsEditing','listenTo','change:state','_setUpService','RealTimeCollaborativeComments','once','Comments','get','isThreadsLoadingPaused','plugins','editor'];(function(_0x584dea,_0x42eb31){const _0xf0338a=function(_0x53c1b0){while(--_0x53c1b0){_0x584dea['push'](_0x584dea['shift']());}};_0xf0338a(++_0x42eb31);}(_0x42eb,0x1d7));const _0xf033=function(_0x584dea,_0x42eb31){_0x584dea=_0x584dea-0x0;let _0xf0338a=_0x42eb[_0x584dea];return _0xf0338a;};import{Plugin as _0x45c3b1}from'ckeditor5/src/core';import _0xb18ffe from'./realtimecollaborativecomments/cloudservicescommentsadapter';import _0x360934 from'./realtimecollaborativeediting';import _0x339261 from'./realtimecollaborativeediting/websocketgateway';export default class m extends _0x45c3b1{static get['requires'](){return[_0xf033('0x0'),_0xb18ffe,_0x360934,_0x339261];}static get['pluginName'](){return _0xf033('0xf');}['init'](){const _0x48f443=this[_0xf033('0x4')]['plugins'][_0xf033('0x1')](_0x339261),_0x3e1069=this[_0xf033('0x4')][_0xf033('0x3')][_0xf033('0x1')](_0xf033('0xb')),_0x3dd40a=this[_0xf033('0x4')][_0xf033('0x3')][_0xf033('0x1')](_0xb18ffe);return this[_0xf033('0x4')][_0xf033('0x8')][_0xf033('0x10')]('ready',()=>{this[_0xf033('0xc')](_0x48f443,'change:state',(_0x2fb051,_0x5e0b7c,_0x56b88e)=>{_0x3e1069[_0xf033('0x2')]='connected'!==_0x56b88e;});}),this[_0xf033('0xc')](_0x48f443,_0xf033('0xd'),(_0x31d261,_0x25e045,_0x4f92bb)=>{this['editor'][_0xf033('0x3')][_0xf033('0x1')](_0xf033('0x6'))['switchReadOnly'](_0xf033('0x5')!==_0x4f92bb);}),_0x3dd40a[_0xf033('0xe')](this[_0xf033('0x4')]['config']['get'](_0xf033('0x7')));}[_0xf033('0x9')](){this[_0xf033('0x4')][_0xf033('0x3')][_0xf033('0x1')](_0xb18ffe)[_0xf033('0xa')](this['editor']['config'][_0xf033('0x1')]('collaboration.channelId')),super[_0xf033('0x9')]();}}
@@ -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 _0x1cb6=['_lastSyncedOperationId','applyOperation','push','_sendBufferedOperationsDelayId','add','markers','startsWith','_saveOperationInBuffer','includes','editing','reconnection:\x20flushed\x20session','_applyOperationsSet','then','cloud-services-internal-error:\x20Request\x20timeout.','_getOperationsFromInitData','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','real-time-collaboration','end','metadata','destroy','_handleInitialConnectionData','realtimecollaborationclient-sendbufferedoperations','cloudServices.bundleVersion','getOperations','channelSessions','batch','getMany','state','parse','finally','serverHistory','requires','editor','pluginName','_clearPendingAction','_disconnectService','history','addUser','realtimecollaborationclient-initservice-incorrect-server-operation','isEnabled','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.','realtimecollaborationclient-init-connection-failed','suppressErrorInCollaboration','plugins','compress','data','_service','_currentBufferDelay','operationsReceived','cloudDocumentVersion','_handleReconnectionResponse','reconnect','lastDocumentSession','isReadOnly','round','code','wasUndone','change:hasDomSelection','_authorId','roots','sessionAdd:','_pendingAction','_updateServerHistory','_hasSynchronizationProblem','_bufferedOperations','permissions','register','_setUpDataInit','409','lastOperationId','connect','connected','_refreshUserSelectionMarkers','marker','_ignoredOperations','connection','_lastServerVersion','disableReadOnlyMode','_isDisconnection','_shouldSendSelectionUpdate','enableReadOnlyMode','return','listenTo','_isEditingAllowed','stop','sessionCreatedAt','createPositionFromPath','_isConnected','realtimecollaborationclient-handleserverresponse','wereChangesApplied','locale','change:_isEditingAllowed','view','bind','_handleServerResponse','addOperation','createdAt','realtimecollaborationclient-init-document-already-initialized','_initThrowingOnDataSet','map','userId','init','_handleReceivedOperations','createRange','_document','get','disconnected','_offset','rtc-offline','_isPendingUpdate','setPermissions','_operationIdentifier','_operationToId','_handleExternalOperations','size','cs:removeUser','filter','affectsData','_shouldSendUpdate','realtimecollaborationclient-init-non-existent-root','_sendBufferedOperationsDelay','removeFromReconnectionStack','_setPendingAction','_crash','404','high','_handleReconnectionError','off','unregister','apply','document','showWarning','_initSessionsHandling','mySessionId','collaboration-missing-channelid','ready','realtimecollaborationclient-init-session-connection-error','PENDING_ACTION_SENDING_DATA','getRoot','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.','setIdForTheLastOperation','isDocumentOperation','_compressor','_handleSendingSelectionMarkers','getIdOfTheLastOperation','getOperationAuthor','_fetchMissingUsers','type','catch','path','Permissions','error','directChange','_assignOperationsMetaData','_channelId','remove','initData','_disconnectionOperations','Synchronization\x20issue','_baseBufferDelay','_decompressOperations','_connectAfterSessionHasBeenFlushed','enqueueChange','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','_sendBufferedOperations','string','version','forEach','_knownOperations','set','_compressOperations','_sendBufferedOperationsDelayed','cloud-services-internal-error:\x20Not\x20connected.','getUser','change:range','decompress','_connectService','slice','_isInit','reset','clone','realtimecollaborationclient-initservice-internal-error','has','define','collaboration','_hasSelectionChanged','model','getDocumentDetails','lastOperationAcceptedAt','getConnectedSessions','sessionId','lastSyncVersion','message','config','baseVersion','length','fire','CollaborativeEditingService'];(function(_0x160f1d,_0x1cb623){const _0x4749bd=function(_0x369ae3){while(--_0x369ae3){_0x160f1d['push'](_0x160f1d['shift']());}};_0x4749bd(++_0x1cb623);}(_0x1cb6,0xc0));const _0x4749=function(_0x160f1d,_0x1cb623){_0x160f1d=_0x160f1d-0x0;let _0x4749bd=_0x1cb6[_0x160f1d];return _0x4749bd;};import{Plugin as _0x48dd21,PendingActions as _0x5c6764}from'ckeditor5/src/core';import{CKEditorError as _0xb856dc,version as _0x5b7786,uid as _0x13b5bd}from'ckeditor5/src/utils';import{transformSets as _0x386b99,InsertOperation as _0x2a3c68,MarkerOperation as _0xdeacce,OperationFactory as _0x14641e,History as _0x9a843b}from'ckeditor5/src/engine';import{Notification as _0x5f0727}from'ckeditor5/src/ui';import{Users as _0x15dffc}from'ckeditor5-collaboration/src/collaboration-core';import _0x37b205 from'./websocketgateway';import _0x5c43ab from'./sessions';import _0x4f085f from'./usermarkers';import{getTranslation as _0x26151f}from'../common-translations';import _0x2d3588 from'@ckeditor/ckeditor5-operations-compressor/src/compressor';import _0x442b7c from'@ckeditor/ckeditor-cloud-services-collaboration/src/collaborativeeditingservice/collaborativeeditingservice';import _0x20d5b7 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';let G=0x1;export default class l extends _0x48dd21{static get[_0x4749('0x25')](){return[_0x37b205,_0x5c43ab,_0x4f085f,_0x5c6764,_0x15dffc,_0x5f0727];}static get[_0x4749('0x27')](){return'RealTimeCollaborationClient';}get[_0x4749('0x37')](){return this[_0x4749('0x52')]+this[_0x4749('0x71')];}get[_0x4749('0x52')](){return this['serverHistory'][_0x4749('0xac')]-this[_0x4749('0x71')];}get[_0x4749('0xc5')](){const _0x50037c=this[_0x4749('0x24')]['getOperations']();for(let _0x129d1e=_0x50037c[_0x4749('0x3')]-0x1;_0x129d1e>=0x0;_0x129d1e--){const _0x3d9fff=_0x50037c[_0x129d1e];if(!this[_0x4749('0xa3')][_0x4749('0xbc')](_0x3d9fff))return _0x3d9fff[_0x4749('0x2')]+0x1-this[_0x4749('0x71')];}return 0x0;}[_0x4749('0x6b')](){const _0x18d98e=this['editor'],_0x14ce1c=_0x18d98e[_0x4749('0x31')][_0x4749('0x6f')](_0x15dffc),_0x1f759d=_0x18d98e[_0x4749('0x31')][_0x4749('0x6f')](_0x37b205);if(this[_0x4749('0x71')]=0x0,this[_0x4749('0xc4')]=null,this[_0x4749('0x24')]=new _0x9a843b(),this[_0x4749('0x26')][_0x4749('0x1')][_0x4749('0xbd')](_0x4749('0xbe'),{}),this['_channelId']=_0x18d98e['config'][_0x4749('0x6f')]('collaboration.channelId'),!this[_0x4749('0xa0')])throw new _0xb856dc(_0x4749('0x8c'),this);this[_0x4749('0x58')](_0x14ce1c,_0x4749('0x97'),(_0x38cc39,_0x4600ba)=>{const _0x644dc9=_0x4600ba[0x0];_0x644dc9[_0x4749('0x40')]&&(_0x38cc39[_0x4749('0x57')]=_0x14ce1c[_0x4749('0xb3')](_0x644dc9[_0x4749('0x40')]),_0x38cc39['stop']()),null===_0x644dc9[_0x4749('0x40')]&&(_0x38cc39[_0x4749('0x57')]=null,_0x38cc39[_0x4749('0x5a')]());},{'priority':_0x4749('0x83')});const _0x1724ba=_0x18d98e[_0x4749('0x1')][_0x4749('0x6f')](_0x4749('0x1c'))||_0x5b7786;this['_service']=new l[(_0x4749('0x5'))](_0x1724ba,this[_0x4749('0xa0')]),this[_0x4749('0x6e')]=this[_0x4749('0x26')]['model'][_0x4749('0x88')],this[_0x4749('0x94')]=new _0x2d3588(),this[_0x4749('0x46')]=[],this[_0x4749('0xae')]=new WeakSet(),this[_0x4749('0xaf')](_0x4749('0x73'),!0x1),this[_0x4749('0xaf')](_0x4749('0x45'),!0x1),this[_0x4749('0x43')]=null,this[_0x4749('0xbf')]=!0x1,this[_0x4749('0x9')]=null,this[_0x4749('0xa5')]=0x12c,this[_0x4749('0x35')]=this[_0x4749('0xa5')],this[_0x4749('0x6')]=null,this['_disconnectionOperations']=new WeakSet(),this[_0x4749('0x75')]=new K(this[_0x4749('0xa3')]),this[_0x4749('0x58')](_0x18d98e['model'][_0x4749('0x88')]['selection'],_0x4749('0xb4'),(_0x94311a,_0x202b66)=>{_0x202b66[_0x4749('0x9e')]&&this[_0x4749('0x4e')]();}),this[_0x4749('0x58')](_0x18d98e[_0x4749('0xf')][_0x4749('0x62')],_0x4749('0x3f'),()=>{this[_0x4749('0x4e')]();}),this[_0x4749('0x68')](),_0x18d98e['model']['on'](_0x4749('0x7'),(_0x50a9f2,_0x1da815)=>{const _0x39532d=_0x1da815[0x0];_0x39532d[_0x4749('0x93')]&&(this['_saveOperationInBuffer'](_0x39532d),this[_0x4749('0x7c')]()&&this[_0x4749('0xb1')]());}),this['_setUpDataInit'](),this[_0x4749('0x63')](_0x4749('0x59'))['to'](_0x1f759d,_0x4749('0x21'),this,_0x4749('0x45'),(_0x11cd77,_0x5df897)=>_0x4749('0x4d')===_0x11cd77&&!_0x5df897),this['on'](_0x4749('0x61'),()=>{this[_0x4749('0x59')]?_0x18d98e[_0x4749('0x53')](_0x4749('0x72')):_0x18d98e[_0x4749('0x56')](_0x4749('0x72'));}),this[_0x4749('0x59')]?_0x18d98e[_0x4749('0x53')](_0x4749('0x72')):_0x18d98e[_0x4749('0x56')](_0x4749('0x72')),this[_0x4749('0xaf')](_0x4749('0x5d'),!0x1);}async['reconnect'](){const _0xa97d82=this['editor'][_0x4749('0x31')][_0x4749('0x6f')](_0x5c43ab),_0x1e218f=this['editor'][_0x4749('0x31')][_0x4749('0x6f')](_0x37b205);try{this['_isPendingUpdate']=!0x0,_0xa97d82[_0x4749('0x86')](this['_channelId']);const _0x2c1ba0=await this[_0x4749('0x34')]['reconnect'](_0x1e218f[_0x4749('0x51')],this['lastSyncVersion']);await this[_0x4749('0x38')](_0x2c1ba0)&&(this['_isPendingUpdate']=!0x1,this[_0x4749('0x28')]());const _0x48d191=await this[_0x4749('0x34')]['getConnectedSessions']();_0xa97d82[_0x4749('0x48')](this[_0x4749('0xa0')],_0x48d191),this[_0x4749('0x95')](),this[_0x4749('0x5d')]=!0x0;}catch(_0x51b39e){if(function(_0xe327eb){return _0x4749('0x82')===_0xe327eb[_0x4749('0x3d')];}(_0x51b39e)&&this[_0x4749('0xc4')])await this[_0x4749('0xa7')]();else{if(function(_0x576363){return _0x4749('0x4a')===_0x576363[_0x4749('0x3d')];}(_0x51b39e)){const _0xda042d=_0x26151f(this['editor'][_0x4749('0x60')],'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');this[_0x4749('0x84')](_0xda042d);}else{if(!(_0x51b39e instanceof j))throw _0x51b39e;this['_handleReconnectionError']();}}}}[_0x4749('0x19')](){const _0x31bc61=this['editor'][_0x4749('0x31')][_0x4749('0x6f')](_0x37b205),_0x5cf134=this[_0x4749('0x26')][_0x4749('0x31')][_0x4749('0x6f')](_0x5c43ab);this[_0x4749('0x26')][_0x4749('0x56')]('rtc-destroyed'),_0x5cf134[_0x4749('0x1e')][_0x4749('0xbc')](this['_channelId'])&&_0x5cf134[_0x4749('0x86')](this['_channelId']),_0x31bc61[_0x4749('0x7f')](this),this[_0x4749('0x29')](),super[_0x4749('0x19')]();}async[_0x4749('0x38')](_0x11b812){if(this[_0x4749('0xc4')]!==_0x11b812[_0x4749('0xc4')]&&this[_0x4749('0x6')]!==_0x11b812[_0x4749('0x4b')])throw new j();return this[_0x4749('0xc4')]=_0x11b812[_0x4749('0xc4')],this['_handleServerResponse']([],{..._0x11b812,'wereChangesApplied':!0x1,'data':_0x11b812[_0x4749('0x33')]},_0x4749('0x39'));}async[_0x4749('0xb6')](_0x51a6de,_0x590b6c=!0x1){const {connection:_0xcb57a8}=this['editor'][_0x4749('0x31')][_0x4749('0x6f')](_0x37b205);l['CollaborativeEditingService'][_0x4749('0xc3')](_0xcb57a8,this[_0x4749('0xa0')])[_0x4749('0x12')](_0x52a901=>this[_0x4749('0x8a')](_0x52a901))[_0x4749('0x9a')](_0x537a5e=>{this[_0x4749('0x81')](_0x4749('0x8e'),_0x537a5e);}),this[_0x4749('0x58')](this[_0x4749('0x34')],_0x4749('0x36'),this[_0x4749('0x6c')][_0x4749('0x63')](this)),this[_0x4749('0x58')](this[_0x4749('0x34')],_0x4749('0x9d'),(_0x56ab21,_0x2bf2cb)=>{this[_0x4749('0x81')](_0x4749('0xbb'),_0x2bf2cb);}),this['listenTo'](this['_service'],_0x4749('0x70'),()=>{this[_0x4749('0x5d')]=!0x1;});const _0x187f86=this[_0x4749('0x75')]['getIdOfTheLastOperation'](_0x51a6de),_0x150ae5=await this[_0x4749('0x34')][_0x4749('0x4c')](_0xcb57a8,this[_0x4749('0xb0')](_0x51a6de),_0x187f86);if(this[_0x4749('0xc4')]=_0x150ae5['sessionId'],_0x150ae5[_0x4749('0x5f')]&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']()),_0x590b6c){if(!_0x150ae5[_0x4749('0x5f')])return void this[_0x4749('0x84')]();this[_0x4749('0x24')][_0x4749('0xb9')](),this['_offset']=_0x150ae5['offset'],this[_0x4749('0x24')][_0x4749('0xac')]=this['_offset'],await this[_0x4749('0x64')](_0x51a6de,_0x150ae5,_0x4749('0x10'));}else await this['_handleInitialConnectionData'](_0x150ae5,_0x51a6de);this[_0x4749('0x95')](),this[_0x4749('0x5d')]=!0x0;}['_handleSendingSelectionMarkers'](){const _0x5380d1=this[_0x4749('0x26')][_0x4749('0x31')]['get'](_0x5c43ab),_0x762910=_0x5380d1[_0x4749('0x1e')][_0x4749('0x6f')](this[_0x4749('0xa0')]);_0x762910&&_0x762910[_0x4749('0x3')]>0x1?(this[_0x4749('0xbf')]=!0x0,this[_0x4749('0xb1')]()):this[_0x4749('0x58')](_0x5380d1,_0x4749('0x42')+this[_0x4749('0xa0')],_0x49f6b1=>{_0x5380d1[_0x4749('0x1e')][_0x4749('0x6f')](this[_0x4749('0xa0')])[_0x4749('0x3')]>0x1&&(this[_0x4749('0xbf')]=!0x0,this['_sendBufferedOperationsDelayed'](),_0x49f6b1[_0x4749('0x85')]());});}async['_handleReceivedOperations'](_0x40d2d1,_0x556328,_0x115973,_0x29a2ed){if(!this[_0x4749('0x73')]&&this['_document']['version']==_0x556328){const _0x508924=this[_0x4749('0xa6')](_0x115973,_0x29a2ed);await this['_fetchMissingUsers'](_0x508924),this[_0x4749('0x77')](_0x508924,_0x556328,_0x115973[_0x4749('0x4b')])||this[_0x4749('0x81')](_0x4749('0x2c'));}}async[_0x4749('0xa7')](){this[_0x4749('0x29')]();const {locale:_0x4779ea}=this['editor'];let _0x42d6cc;try{_0x42d6cc=await this['_service'][_0x4749('0xc1')]();}catch(_0xf9ad1f){const _0x428ef1=_0x26151f(_0x4779ea,_0x4749('0x15'));return void this[_0x4749('0x84')](_0x428ef1);}const _0x107209=_0x42d6cc['currentDocumentSession']||_0x42d6cc[_0x4749('0x3a')];if(this['_lastSyncedOperationId']===_0x107209[_0x4749('0x4b')])await this[_0x4749('0xb6')](this[_0x4749('0x26')][_0x4749('0xc0')]['document']['history'][_0x4749('0x1d')](),!0x0);else{const _0x55190b=_0x26151f(_0x4779ea,_0x4749('0x2e'));this[_0x4749('0x84')](_0x55190b);}}[_0x4749('0x29')](){this[_0x4749('0x34')]['disconnect'](),this[_0x4749('0x46')]=[],clearTimeout(this[_0x4749('0x7e')]),this['stopListening'](this['_service']);}[_0x4749('0x8a')](_0x2b069f){const _0x571e8a=this[_0x4749('0x26')][_0x4749('0x31')][_0x4749('0x6f')](_0x5c43ab);this[_0x4749('0x58')](_0x571e8a,_0x4749('0x42')+this[_0x4749('0xa0')],(_0x18cc20,{session:_0x3a47f1})=>{if(_0x3a47f1['id']===_0x571e8a[_0x4749('0x8b')]){_0x18cc20[_0x4749('0x85')]();const _0x1cbf2e=this[_0x4749('0x26')]['plugins'][_0x4749('0xbc')]('CommentsOnly')&&this['editor'][_0x4749('0x31')][_0x4749('0x6f')]('CommentsOnly');let _0x4895e6=_0x3a47f1[_0x4749('0x47')];_0x1cbf2e&&_0x1cbf2e[_0x4749('0x2d')]&&(_0x4895e6=_0x4895e6[_0x4749('0x7a')](_0x436877=>'document:write'!==_0x436877)),this[_0x4749('0x26')][_0x4749('0x31')][_0x4749('0x6f')](_0x4749('0x9c'))[_0x4749('0x74')](_0x4895e6,this[_0x4749('0xa0')]);}}),_0x571e8a[_0x4749('0x48')](this[_0x4749('0xa0')],_0x2b069f);}[_0x4749('0x68')](){const _0x58eb46=this['editor'][_0x4749('0x33')][_0x4749('0xaf')];this['editor'][_0x4749('0x33')][_0x4749('0xaf')]=(..._0xed918a)=>{if(!_0xed918a[_0xed918a['length']-0x1][_0x4749('0x30')])throw new _0xb856dc(_0x4749('0xa9'),this);_0x58eb46[_0x4749('0x87')](this[_0x4749('0x26')]['data'],_0xed918a);};}[_0x4749('0x49')](){this[_0x4749('0x26')][_0x4749('0x33')]['on'](_0x4749('0x6b'),(_0x1eebe5,[_0x2b269b])=>{if(this['_document'][_0x4749('0xac')])throw new _0xb856dc(_0x4749('0x67'),this);_0x1eebe5['stop'](),this[_0x4749('0x80')]();const _0x23c1c9=this['_getOperationsFromInitData'](_0x2b269b);_0x1eebe5[_0x4749('0x57')]=this['_connectService'](_0x23c1c9)[_0x4749('0x12')](()=>{this['editor'][_0x4749('0x31')][_0x4749('0x6f')](_0x37b205)['addToReconnectionStack'](this),this['editor'][_0x4749('0x33')][_0x4749('0x4')](_0x4749('0x8d'));})['catch'](_0xef70bf=>this['_crash'](_0x4749('0x2f'),_0xef70bf))[_0x4749('0x23')](()=>this[_0x4749('0x28')]());},{'priority':_0x4749('0x83')});}async['_fetchMissingUsers'](_0x157971){const _0x584366=this['editor'][_0x4749('0x31')][_0x4749('0x6f')](_0x15dffc),{connection:_0x316694}=this['editor'][_0x4749('0x31')]['get'](_0x37b205),_0x324ce3=new Set();for(const _0x1e8a03 of _0x157971){const _0x4195ba=_0x1e8a03[_0x4749('0x40')];_0x4195ba&&!_0x584366[_0x4749('0xb3')](_0x4195ba)&&_0x324ce3['add'](_0x4195ba);}if(0x0===_0x324ce3[_0x4749('0x78')])return;const _0x2b3eac=await _0x20d5b7[_0x4749('0x20')](_0x316694,Array['from'](_0x324ce3));for(const _0x493e0e of _0x2b3eac)_0x584366[_0x4749('0xb3')](_0x493e0e['id'])||_0x584366[_0x4749('0x2b')](_0x493e0e);}[_0x4749('0x14')](_0x34e064){const _0x34be33=this[_0x4749('0x26')][_0x4749('0xc0')],_0x18f5ae=[];let _0xce98a6=0x0;const _0x4d462d=_0x4749('0xab')==typeof _0x34e064?{'main':_0x34e064}:_0x34e064;for(const _0x5addf1 of Object['keys'](_0x4d462d)){if(!this[_0x4749('0x6e')][_0x4749('0x41')]['has'](_0x5addf1))throw new _0xb856dc(_0x4749('0x7d'),this);const _0x3aade1=this['editor']['data'][_0x4749('0x22')](_0x4d462d[_0x5addf1]),_0x790669=this[_0x4749('0x6e')][_0x4749('0x90')](_0x5addf1),_0x127541=new _0x2a3c68(_0x34be33['createPositionAt'](_0x790669,0x0),_0x3aade1,_0xce98a6++);_0x18f5ae[_0x4749('0x8')](_0x127541);for(const [_0x3d099e,_0x5af594]of _0x3aade1[_0x4749('0xb')]){const _0x5efa34=_0x34be33[_0x4749('0x6d')](_0x34be33[_0x4749('0x5c')](_0x790669,_0x5af594['start'][_0x4749('0x9b')]['slice']()),_0x34be33[_0x4749('0x5c')](_0x790669,_0x5af594[_0x4749('0x17')]['path'][_0x4749('0xb7')]())),_0x3651b2=new _0xdeacce(_0x3d099e,null,_0x5efa34,_0x34be33['markers'],!0x0,_0xce98a6++);_0x18f5ae[_0x4749('0x8')](_0x3651b2);}}return _0x18f5ae;}async[_0x4749('0x1a')](_0x2d2542,_0x2ab36c){let _0x5e49d4;this[_0x4749('0x71')]=_0x2d2542['offset'];const _0x51d8b9=_0x2d2542[_0x4749('0x5f')]&&!_0x2d2542[_0x4749('0xa2')],_0x524e43=_0x51d8b9?0x0:_0x2d2542[_0x4749('0x33')]['baseVersion'];if(_0x51d8b9)_0x5e49d4=_0x2ab36c,_0x5e49d4[_0x4749('0xad')](_0x11d9bb=>{_0x11d9bb[_0x4749('0x66')]=_0x2d2542[_0x4749('0x5b')],_0x11d9bb['_isInit']=!0x0,_0x11d9bb[_0x4749('0x40')]=null;}),this[_0x4749('0x11')](_0x5e49d4,_0x51d8b9);else{if(_0x2d2542[_0x4749('0xa2')]){const _0x5d77a0=this[_0x4749('0x14')](_0x2d2542['initData']);this[_0x4749('0x6e')][_0x4749('0x2a')][_0x4749('0xac')]=-_0x5d77a0['length'],_0x5d77a0[_0x4749('0xad')](_0x26a867=>{_0x26a867[_0x4749('0x2')]-=_0x5d77a0[_0x4749('0x3')],_0x26a867['createdAt']=_0x2d2542['sessionCreatedAt'],_0x26a867[_0x4749('0xb8')]=!0x0,_0x26a867[_0x4749('0x40')]=null;}),this[_0x4749('0x11')](_0x5d77a0,!0x0),this['serverHistory'][_0x4749('0xac')]=-_0x5d77a0[_0x4749('0x3')]+this[_0x4749('0x71')],this[_0x4749('0x44')](_0x5d77a0);}this['_document'][_0x4749('0x2a')][_0x4749('0xac')]=_0x524e43,_0x5e49d4=this['_decompressOperations'](_0x2d2542[_0x4749('0x33')],_0x2d2542[_0x4749('0x18')]),await this[_0x4749('0x98')](_0x5e49d4),this[_0x4749('0x11')](_0x5e49d4,_0x51d8b9);}_0x2d2542[_0x4749('0x4b')]&&(this[_0x4749('0x75')]['setIdForTheLastOperation'](_0x5e49d4,_0x2d2542[_0x4749('0x4b')]),this[_0x4749('0x6')]=_0x2d2542[_0x4749('0x4b')]),this[_0x4749('0x24')]['version']=_0x524e43+this['_offset'],this[_0x4749('0x44')](_0x5e49d4);}['_crash'](_0x36040f,_0x12a378){throw this['_isPendingUpdate']=!0x0,_0x12a378&&console[_0x4749('0x9d')](_0x12a378),new _0xb856dc(_0x36040f,this[_0x4749('0x26')]);}[_0x4749('0xd')](_0x4c5d8d){this[_0x4749('0xae')][_0x4749('0xbc')](_0x4c5d8d)||(this[_0x4749('0xae')][_0x4749('0xa')](_0x4c5d8d),this[_0x4749('0x46')][_0x4749('0x8')](_0x4c5d8d),this[_0x4749('0x43')]||_0x4749('0x4f')==_0x4c5d8d[_0x4749('0x99')]&&!_0x4c5d8d[_0x4749('0x7b')]||this[_0x4749('0x80')]());}[_0x4749('0xb1')](_0x5602c3=!0x1){!_0x5602c3&&this[_0x4749('0x73')]||(this[_0x4749('0x73')]=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this[_0x4749('0x9')]=setTimeout(()=>{this[_0x4749('0xaa')]()[_0x4749('0x12')](_0x247196=>{_0x247196&&(this[_0x4749('0x28')](),this['_isPendingUpdate']=!0x1);})[_0x4749('0x9a')](_0x84062d=>{if(this[_0x4749('0x28')](),this[_0x4749('0x73')]=!0x1,!function(_0x1ae6a9){return _0x1ae6a9['message'][_0x4749('0xc')](_0x4749('0xb2'))||_0x1ae6a9[_0x4749('0x0')]['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x1ae6a9[_0x4749('0x0')][_0x4749('0xc')](_0x4749('0x13'));}(_0x84062d))throw _0x84062d;});},this[_0x4749('0x35')]));}async['_sendBufferedOperations'](){const _0x26fbea=this['editor'][_0x4749('0x31')][_0x4749('0x6f')](_0x4f085f);if(this[_0x4749('0x55')]()&&(_0x26fbea['createUserMarkerOperations'](),this[_0x4749('0xbf')]=!0x1),!this[_0x4749('0x7c')]())return!0x0;const _0x40c053=[...this['_bufferedOperations']];for(const _0x54fa29 of _0x40c053)_0x54fa29[_0x4749('0x3e')]=this[_0x4749('0x6e')][_0x4749('0x2a')]['isUndoneOperation'](_0x54fa29);const _0x4b7995=this[_0x4749('0x75')][_0x4749('0x96')](_0x40c053),_0x484ebe=G++,_0x223acc=this[_0x4749('0xb0')](_0x40c053),_0x56dfce=await this[_0x4749('0x34')]['sendOperations'](_0x223acc,_0x223acc['baseVersion'],_0x4b7995);try{return await this[_0x4749('0x64')](_0x40c053,_0x56dfce,_0x484ebe);}catch(_0x273d1f){return this['_crash'](_0x4749('0x1b'),_0x273d1f);}}async[_0x4749('0x64')](_0x1949e8,_0x4e30d6,_0x16c00e){if(_0x4e30d6[_0x4749('0x9d')])throw _0x4e30d6[_0x4749('0x9d')];let _0x5cf40b=!0x1;if(_0x4e30d6[_0x4749('0x5f')]){_0x4e30d6[_0x4749('0x4b')]&&(this[_0x4749('0x6')]=_0x4e30d6['lastOperationId']),this[_0x4749('0x46')]=this['_bufferedOperations'][_0x4749('0x7a')](_0x1e2a62=>!_0x1949e8[_0x4749('0xe')](_0x1e2a62));for(const _0x519bb7 of _0x1949e8)_0x519bb7['createdAt']=_0x4e30d6[_0x4749('0xc2')];this['_updateServerHistory'](_0x1949e8),_0x5cf40b=!0x0,this[_0x4749('0x35')]=this['_baseBufferDelay'];}else{const _0x468f37=this['_decompressOperations'](_0x4e30d6['data'],_0x4e30d6[_0x4749('0x18')])[_0x4749('0x7a')](_0x61a879=>_0x61a879['baseVersion']>=this[_0x4749('0x52')]);await this[_0x4749('0x98')](_0x468f37),_0x5cf40b=this[_0x4749('0x77')](_0x468f37,_0x4e30d6[_0x4749('0xac')],_0x4e30d6[_0x4749('0x4b')]),this[_0x4749('0x35')]=Math[_0x4749('0x3c')](this['_currentBufferDelay']/0x2);}return _0x5cf40b?!this['_shouldSendUpdate']()||(this[_0x4749('0xb1')](!0x0),!0x1):this['_crash'](_0x4749('0x5e'));}[_0x4749('0x77')](_0x1c1313,_0x4de6cd,_0xf9d7e2){try{const _0x1100c0={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x460559,operationsB:_0xedf704,originalOperations:_0x3208f2}=_0x386b99(_0x1c1313,this[_0x4749('0x46')],_0x1100c0);J(_0x460559,this[_0x4749('0x6e')][_0x4749('0xac')]),J(_0xedf704,_0x4de6cd);for(const _0x459568 of _0x460559){const _0x39714f=_0x3208f2['get'](_0x459568);_0x459568[_0x4749('0x40')]=_0x39714f?_0x39714f[_0x4749('0x40')]:null;}_0xf9d7e2&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x1c1313,_0xf9d7e2),this[_0x4749('0x6')]=_0xf9d7e2),this[_0x4749('0x46')]=[..._0xedf704],this[_0x4749('0x11')](_0x460559),this['_updateServerHistory'](_0x1c1313);}catch(_0x1fdaf1){return console[_0x4749('0x9d')](_0x1fdaf1),!0x1;}return!0x0;}[_0x4749('0x11')](_0x39d928,_0x237f51=!0x1){this[_0x4749('0x26')]['model'][_0x4749('0xa8')]({'isUndoable':!0x1,'isLocal':!0x1},_0x39c9ae=>{for(const _0x20c156 of _0x39d928)this[_0x4749('0xae')][_0x4749('0xa')](_0x20c156),_0x39c9ae[_0x4749('0x1f')]['addOperation'](_0x20c156),this[_0x4749('0x26')][_0x4749('0xc0')][_0x4749('0x7')](_0x20c156);});}[_0x4749('0x44')](_0x41fd8b){_0x41fd8b[_0x4749('0xad')](_0x1c7116=>{const _0xbceee0=_0x1c7116[_0x4749('0xba')]();_0xbceee0['_authorId']=_0x1c7116[_0x4749('0x40')],_0xbceee0['_isInit']=!!_0x1c7116[_0x4749('0xb8')],_0xbceee0[_0x4749('0x66')]=_0x1c7116[_0x4749('0x66')],_0xbceee0[_0x4749('0x2')]+=this[_0x4749('0x71')],_0x1c7116[_0x4749('0x54')]&&this['_disconnectionOperations'][_0x4749('0xa')](_0xbceee0),this[_0x4749('0x24')][_0x4749('0x65')](_0xbceee0);});}[_0x4749('0x84')](_0x468f63){const _0x34a381=this[_0x4749('0x26')]['plugins'][_0x4749('0x6f')]('Notification'),_0x451fcf=this[_0x4749('0x26')][_0x4749('0x60')];_0x468f63||(_0x468f63=_0x26151f(_0x451fcf,_0x4749('0x91'))),_0x34a381[_0x4749('0x89')](_0x468f63,{'title':_0x26151f(_0x451fcf,_0x4749('0xa4')),'namespace':_0x4749('0x16')}),this['_hasSynchronizationProblem']=!0x0,clearTimeout(this[_0x4749('0x9')]),this[_0x4749('0x46')]=[],this[_0x4749('0x26')][_0x4749('0x31')][_0x4749('0x6f')](_0x37b205)[_0x4749('0x19')]();}[_0x4749('0x80')](){this['_pendingAction']||(this['_pendingAction']=this[_0x4749('0x26')][_0x4749('0x31')]['get'](_0x5c6764)[_0x4749('0xa')](_0x26151f(this[_0x4749('0x26')][_0x4749('0x60')],_0x4749('0x8f'))));}[_0x4749('0x28')](){this[_0x4749('0x43')]&&(this[_0x4749('0x26')][_0x4749('0x31')]['get'](_0x5c6764)[_0x4749('0xa1')](this['_pendingAction']),this[_0x4749('0x43')]=null);}['_compressOperations'](_0x6168b6){const _0x444bfd=_0x6168b6[_0x4749('0x69')](_0x5de543=>_0x5de543['toJSON']());return this[_0x4749('0x94')][_0x4749('0x32')](_0x444bfd);}[_0x4749('0xa6')](_0x42bc39,_0x3d2367){const _0xfa265a=this[_0x4749('0x94')][_0x4749('0xb5')](_0x42bc39)[_0x4749('0x69')]((_0x48f9cb,_0x561797)=>{const _0x31cb2a=_0x14641e['fromJSON'](_0x48f9cb,this[_0x4749('0x6e')]);return _0x31cb2a['wasUndone']=_0x48f9cb[_0x4749('0x3e')],_0x4749('0x79')===_0x3d2367[_0x561797][_0x4749('0x99')]&&(_0x31cb2a['_isDisconnection']=!0x0),_0x31cb2a;});return this[_0x4749('0x9f')](_0xfa265a,_0x3d2367),_0xfa265a;}[_0x4749('0x9f')](_0x22c39f,_0x2ade91){for(let _0x4d64db=0x0;_0x4d64db<_0x22c39f[_0x4749('0x3')];_0x4d64db++)_0x4749('0x6b')==_0x2ade91[_0x4d64db][_0x4749('0x99')]?(_0x22c39f[_0x4d64db]['_isInit']=!0x0,_0x22c39f[_0x4d64db][_0x4749('0x40')]=null):(_0x22c39f[_0x4d64db][_0x4749('0xb8')]=!0x1,_0x22c39f[_0x4d64db][_0x4749('0x40')]=_0x2ade91[_0x4d64db][_0x4749('0x6a')]),_0x22c39f[_0x4d64db][_0x4749('0x66')]=_0x2ade91[_0x4d64db]['createdAt'];}['_refreshUserSelectionMarkers'](){this[_0x4749('0xbf')]=!0x0,this[_0x4749('0x55')]()&&this[_0x4749('0xb1')]();}[_0x4749('0x55')](){const _0x4a3619=this[_0x4749('0x26')][_0x4749('0x31')][_0x4749('0x6f')](_0x5c43ab)[_0x4749('0x1e')][_0x4749('0x6f')](this['_channelId']);return!this[_0x4749('0x26')][_0x4749('0x3b')]&&_0x4a3619&&_0x4a3619['length']>0x1&&this[_0x4749('0xbf')];}[_0x4749('0x7c')](){return this[_0x4749('0x46')][_0x4749('0x3')]>0x0||this['_shouldSendSelectionUpdate']();}}class j extends Error{}function J(_0x358427,_0x4d4e57){for(const _0x41d6d8 of _0x358427)_0x41d6d8[_0x4749('0x2')]=_0x4d4e57++;}l[_0x4749('0x5')]=_0x442b7c;class K{constructor(_0x1eab10){this[_0x4749('0x50')]=_0x1eab10,this[_0x4749('0x76')]=new WeakMap();}['getIdOfTheLastOperation'](_0x2a86ef){let _0x39b2c5=_0x2a86ef[_0x4749('0x3')];for(;_0x39b2c5--;){const _0x9b8351=_0x2a86ef[_0x39b2c5];if(!this[_0x4749('0x50')][_0x4749('0xbc')](_0x9b8351)){if(!this['_operationToId'][_0x4749('0xbc')](_0x9b8351)){const _0x498d98=_0x13b5bd()[_0x4749('0xb7')](0x1,0x12);this['_operationToId'][_0x4749('0xaf')](_0x9b8351,_0x498d98);}return this[_0x4749('0x76')][_0x4749('0x6f')](_0x9b8351);}}}[_0x4749('0x92')](_0x177be9,_0x36624e){if(!_0x36624e)return;let _0x25f158=_0x177be9[_0x4749('0x3')];for(;_0x25f158--;){const _0x285291=_0x177be9[_0x25f158];this[_0x4749('0x50')][_0x4749('0xbc')](_0x285291)||this[_0x4749('0x76')][_0x4749('0xaf')](_0x285291,_0x36624e);}}}