@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.4 → 46.0.1-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "46.0.1-alpha.4",
3
+ "version": "46.0.1-alpha.5",
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/)",
@@ -47,19 +47,19 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@ckeditor/ckeditor-cloud-services-collaboration": "53.0.0",
50
- "@ckeditor/ckeditor5-cloud-services": "46.0.1-alpha.4",
51
- "@ckeditor/ckeditor5-comments": "46.0.1-alpha.4",
52
- "@ckeditor/ckeditor5-core": "46.0.1-alpha.4",
53
- "@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.4",
54
- "@ckeditor/ckeditor5-engine": "46.0.1-alpha.4",
55
- "@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.4",
56
- "@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.4",
57
- "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.4",
58
- "@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.4",
59
- "@ckeditor/ckeditor5-ui": "46.0.1-alpha.4",
60
- "@ckeditor/ckeditor5-utils": "46.0.1-alpha.4",
61
- "ckeditor5": "46.0.1-alpha.4",
62
- "ckeditor5-collaboration": "46.0.1-alpha.4",
50
+ "@ckeditor/ckeditor5-cloud-services": "46.0.1-alpha.5",
51
+ "@ckeditor/ckeditor5-comments": "46.0.1-alpha.5",
52
+ "@ckeditor/ckeditor5-core": "46.0.1-alpha.5",
53
+ "@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.5",
54
+ "@ckeditor/ckeditor5-engine": "46.0.1-alpha.5",
55
+ "@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.5",
56
+ "@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.5",
57
+ "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.5",
58
+ "@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.5",
59
+ "@ckeditor/ckeditor5-ui": "46.0.1-alpha.5",
60
+ "@ckeditor/ckeditor5-utils": "46.0.1-alpha.5",
61
+ "ckeditor5": "46.0.1-alpha.5",
62
+ "ckeditor5-collaboration": "46.0.1-alpha.5",
63
63
  "es-toolkit": "1.39.5"
64
64
  },
65
65
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f8d5f=_0x333c;function _0x333c(_0x2a0357,_0x14c802){const _0x18bbd2=_0x18bb();return _0x333c=function(_0x333c2e,_0x2e6a94){_0x333c2e=_0x333c2e-0x176;let _0x510848=_0x18bbd2[_0x333c2e];return _0x510848;},_0x333c(_0x2a0357,_0x14c802);}(function(_0x3bd026,_0x53a32a){const _0x5a9b24=_0x333c,_0x11b196=_0x3bd026();while(!![]){try{const _0x4f62d8=parseInt(_0x5a9b24(0x1d0))/0x1+parseInt(_0x5a9b24(0x1a8))/0x2+parseInt(_0x5a9b24(0x19b))/0x3*(parseInt(_0x5a9b24(0x17a))/0x4)+parseInt(_0x5a9b24(0x1b5))/0x5*(-parseInt(_0x5a9b24(0x1c4))/0x6)+parseInt(_0x5a9b24(0x19a))/0x7+-parseInt(_0x5a9b24(0x1d3))/0x8+-parseInt(_0x5a9b24(0x1c9))/0x9;if(_0x4f62d8===_0x53a32a)break;else _0x11b196['push'](_0x11b196['shift']());}catch(_0x53252a){_0x11b196['push'](_0x11b196['shift']());}}}(_0x18bb,0xc38cd));import{ContextPlugin as _0xc9fa3}from'ckeditor5/src/core.js';import{CKEditorError as _0x19d808,Collection as _0x54794a}from'ckeditor5/src/utils.js';import{clickOutsideHandler as _0x1f6b74,BalloonPanelView as _0x5a94c4,BodyCollection as _0x508a46}from'ckeditor5/src/ui.js';import{isElement as _0x151dc4}from'es-toolkit/compat';import{Sessions as _0x3b6ee8}from'../realtimecollaborativeediting/sessions.js';import{PresenceListView as _0x51cf94}from'./view/presencelistview.js';import{PresenceCounterView as _0x4055ec}from'./view/presencecounterview.js';import{PresenceDropdownListView as _0x537525}from'./view/presencedropdownlistview.js';import{PresenceDropdownListItemView as _0x558ef3}from'./view/presencedropdownlistitemview.js';import{PresenceInlineListItemView as _0x436ae7}from'./view/presenceinlinelistitemview.js';function _0x18bb(){const _0x323a06=['presenceList.displayMe','textarea','_allConnectedUsers','1264183oRCYee','pluginName','presenceList.collapseAt','8370640wVLPuW','isCollapsed','isExpanded','hideDropdown','isVisible','presenceList.container','presenceList','querySelectorAll','bind','input','requires','config','detachFromDom','destroy','Enter','tabIndex','Shift+Tab','1328PmJRDj','length','set','isMe','presenceDropdownView',':not([disabled]):not([tabindex=\x22-1\x22])','body','items','map','_createView','pin','init','isFocusable','presencelist-collapseat-invalid-format','presencelist:show','onClick','attachToDom','bindTo','allConnectedUsers','_handleUserAdd','offsetHeight','presencelist-missing-container','isOfficialPlugin','counterView','offsetWidth','number','currentDisplayedUsers','define','balloonPanelView','context','plugins','Esc','8186563KCVlFM','2679FNllwP','button','change:isFocused','reverse','remove','displayMe','ck\x20ck-presence-list__balloon','[tabindex]','appendChild','usersCount','keystrokes','locale','execute','179176VMDbvg','_handleUserRemove','sort','presencelist:hide','find','filter','inlineListView','min','render','indexOf','unpin','from','isRendered','813840kfxwlm','add','activeElement','[contenteditable]','class','listenTo','view','hasTooltip','PresenceListUI','get','isPremiumPlugin','focusTracker','content','_bodyCollection','checkIfScrollable','24OAytTx','using','showDropdown','join','focus','2892429UrDBUE','Tab','select','element'];_0x18bb=function(){return _0x323a06;};return _0x18bb();}const x={'collapseAt':0x6,'displayMe':!0x0};export class PresenceListUI extends _0xc9fa3{[_0x1f8d5f(0x194)];[_0x1f8d5f(0x196)];[_0x1f8d5f(0x1bb)];[_0x1f8d5f(0x17e)];[_0x1f8d5f(0x1c2)]=null;static get[_0x1f8d5f(0x1d1)](){const _0x1e0222=_0x1f8d5f;return _0x1e0222(0x1bd);}static get[_0x1f8d5f(0x190)](){return!0x0;}static get[_0x1f8d5f(0x1bf)](){return!0x0;}constructor(_0x5e2d53){const _0x1d7f7e=_0x1f8d5f;super(_0x5e2d53),this[_0x1d7f7e(0x197)][_0x1d7f7e(0x1de)][_0x1d7f7e(0x195)](_0x1d7f7e(0x1d9),x);const _0x57b1ca=_0x5e2d53[_0x1d7f7e(0x1de)][_0x1d7f7e(0x1be)](_0x1d7f7e(0x1d2));if(_0x1d7f7e(0x193)!=typeof _0x57b1ca)throw new _0x19d808(_0x1d7f7e(0x187),this);if(_0x57b1ca<0x1)throw new _0x19d808(_0x1d7f7e(0x187),this);this[_0x1d7f7e(0x1cf)]=this[_0x1d7f7e(0x197)][_0x1d7f7e(0x198)][_0x1d7f7e(0x1be)](_0x3b6ee8)[_0x1d7f7e(0x18c)],this[_0x1d7f7e(0x17c)](_0x1d7f7e(0x1a4),0x0),this[_0x1d7f7e(0x194)]=new _0x54794a(),this[_0x1d7f7e(0x196)]=new _0x5a94c4(),this[_0x1d7f7e(0x196)][_0x1d7f7e(0x1b9)]=_0x1d7f7e(0x1a1),this[_0x1d7f7e(0x1bb)]=this[_0x1d7f7e(0x183)](),this[_0x1d7f7e(0x17e)]=void 0x0;}static get[_0x1f8d5f(0x1dd)](){return[_0x3b6ee8];}[_0x1f8d5f(0x185)](){const _0x4ee85a=_0x1f8d5f;for(const _0x5bcbe3 of this[_0x4ee85a(0x1cf)])this[_0x4ee85a(0x18d)](_0x5bcbe3);this[_0x4ee85a(0x1ba)](this[_0x4ee85a(0x1cf)],_0x4ee85a(0x1b6),(_0x222d6c,_0x3862a5)=>{const _0x2ff78e=_0x4ee85a;this[_0x2ff78e(0x18d)](_0x3862a5);}),this[_0x4ee85a(0x1ba)](this[_0x4ee85a(0x1cf)],_0x4ee85a(0x19f),(_0x4df4fd,_0x381f19)=>{const _0x5f3b6f=_0x4ee85a;this[_0x5f3b6f(0x1a9)](_0x381f19);});}[_0x1f8d5f(0x183)](){const _0x6aa9ff=_0x1f8d5f,_0x2a7198=this[_0x6aa9ff(0x197)],_0x1d9c81=new _0x51cf94(this[_0x6aa9ff(0x197)][_0x6aa9ff(0x1a6)],this[_0x6aa9ff(0x197)][_0x6aa9ff(0x1de)][_0x6aa9ff(0x1be)](_0x6aa9ff(0x1d2))),_0x2ac895=this[_0x6aa9ff(0x196)];if(!_0x151dc4(_0x2a7198[_0x6aa9ff(0x1de)][_0x6aa9ff(0x1be)](_0x6aa9ff(0x1d8))))throw new _0x19d808(_0x6aa9ff(0x18f),this);return _0x1d9c81[_0x6aa9ff(0x191)][_0x6aa9ff(0x1db)](_0x6aa9ff(0x1a4))['to'](this),_0x1d9c81[_0x6aa9ff(0x1db)](_0x6aa9ff(0x1d4))['to'](this,_0x6aa9ff(0x1a4),_0x3b4f27=>{const _0x11c661=_0x6aa9ff,{collapseAt:_0xeb76bb}=_0x2a7198[_0x11c661(0x1de)][_0x11c661(0x1be)](_0x11c661(0x1d9)),_0x1bd121=_0x3b4f27>=_0xeb76bb;if(_0x1bd121&&!_0x1d9c81[_0x11c661(0x1ae)][_0x11c661(0x181)][_0x11c661(0x1ac)](_0x17770b=>_0x17770b instanceof _0x4055ec)){const _0x1a02ce=this[_0x11c661(0x197)][_0x11c661(0x1de)][_0x11c661(0x1be)](_0x11c661(0x1d2))-0x1;this[_0x11c661(0x194)][_0x11c661(0x17b)]==_0x1a02ce&&this[_0x11c661(0x194)][_0x11c661(0x17b)]>0x1&&this[_0x11c661(0x194)][_0x11c661(0x19f)](this[_0x11c661(0x194)][_0x11c661(0x17b)]-0x1),_0x1d9c81[_0x11c661(0x1ae)][_0x11c661(0x181)][_0x11c661(0x1b6)](_0x1d9c81[_0x11c661(0x191)]);}return _0x1bd121||this[_0x11c661(0x1d6)](),_0x1bd121;}),_0x1d9c81[_0x6aa9ff(0x1ae)][_0x6aa9ff(0x181)][_0x6aa9ff(0x18b)](this[_0x6aa9ff(0x194)])[_0x6aa9ff(0x1c5)](_0x3cc509=>{const _0x165753=_0x6aa9ff,_0x4eac5b=_0x2a7198[_0x165753(0x1de)][_0x165753(0x1be)](_0x165753(0x1d9)),_0x484ea1=new _0x436ae7(_0x2a7198[_0x165753(0x1a6)],_0x3cc509,!!_0x4eac5b[_0x165753(0x189)]);return _0x484ea1[_0x165753(0x1db)](_0x165753(0x1bc))['to'](_0x1d9c81,_0x165753(0x1d4),_0x2da3c4=>!_0x2da3c4),_0x484ea1[_0x165753(0x1db)](_0x165753(0x186))['to'](_0x1d9c81,_0x165753(0x1d4),_0x4d38b2=>!_0x4d38b2),_0x4eac5b[_0x165753(0x189)]&&this[_0x165753(0x1ba)](_0x484ea1,_0x165753(0x1a7),()=>{const _0x3b4448=_0x165753;this[_0x3b4448(0x1bb)][_0x3b4448(0x1d4)]||_0x4eac5b[_0x3b4448(0x189)](_0x3cc509,_0x484ea1[_0x3b4448(0x1cc)]);}),_0x484ea1;}),this[_0x6aa9ff(0x1ba)](_0x1d9c81[_0x6aa9ff(0x1ae)],_0x6aa9ff(0x188),()=>{const _0x6beafd=_0x6aa9ff;this[_0x6beafd(0x1bb)][_0x6beafd(0x1d4)]&&this[_0x6beafd(0x1c6)]();}),this[_0x6aa9ff(0x1ba)](_0x1d9c81[_0x6aa9ff(0x1ae)],_0x6aa9ff(0x1ab),()=>{const _0x540155=_0x6aa9ff;this[_0x540155(0x17e)]&&this[_0x540155(0x1d6)]();}),_0x1d9c81[_0x6aa9ff(0x1ae)][_0x6aa9ff(0x1a5)][_0x6aa9ff(0x17c)](_0x6aa9ff(0x177),(_0x295a03,_0x26e46a)=>{const _0x44a0b8=_0x6aa9ff;this[_0x44a0b8(0x1bb)][_0x44a0b8(0x1d4)]&&(this[_0x44a0b8(0x1c6)](),_0x26e46a());}),_0x1d9c81[_0x6aa9ff(0x1b0)](),_0x2ac895[_0x6aa9ff(0x1b0)](),_0x1f6b74({'emitter':_0x1d9c81,'activator':()=>_0x2ac895[_0x6aa9ff(0x1d7)],'contextElements':[_0x2ac895[_0x6aa9ff(0x1cc)],_0x1d9c81[_0x6aa9ff(0x1ae)][_0x6aa9ff(0x1cc)]],'callback':()=>this[_0x6aa9ff(0x1d6)]()}),_0x2a7198[_0x6aa9ff(0x1de)][_0x6aa9ff(0x1be)](_0x6aa9ff(0x1d8))[_0x6aa9ff(0x1a3)](_0x1d9c81[_0x6aa9ff(0x1cc)]),this[_0x6aa9ff(0x1c2)]=new _0x508a46(this[_0x6aa9ff(0x197)][_0x6aa9ff(0x1a6)]),this[_0x6aa9ff(0x1c2)][_0x6aa9ff(0x18a)](),this[_0x6aa9ff(0x1c2)][_0x6aa9ff(0x1b6)](this[_0x6aa9ff(0x196)]),_0x1d9c81;}[_0x1f8d5f(0x18d)](_0x577c9c){const _0x563544=_0x1f8d5f;if(!this[_0x563544(0x197)][_0x563544(0x1de)][_0x563544(0x1be)](_0x563544(0x1cd))&&_0x577c9c[_0x563544(0x17d)])return;const _0x150e3b=this[_0x563544(0x197)][_0x563544(0x1de)][_0x563544(0x1be)](_0x563544(0x1d2))-0x1;for(this[_0x563544(0x1a4)]++;this[_0x563544(0x194)][_0x563544(0x17b)]>=_0x150e3b-(this[_0x563544(0x1bb)][_0x563544(0x1d4)]?0x1:0x0)&&this[_0x563544(0x194)][_0x563544(0x17b)]>0x1;)this[_0x563544(0x194)][_0x563544(0x19f)](0x1);const _0xf9643b=_0x577c9c[_0x563544(0x17d)]?0x0:this[_0x563544(0x194)][_0x563544(0x17b)];this[_0x563544(0x194)][_0x563544(0x1b6)](_0x577c9c,_0xf9643b);}[_0x1f8d5f(0x1a9)](_0x45709a){const _0x2c4da1=_0x1f8d5f;this[_0x2c4da1(0x1a4)]--;const {collapseAt:_0x5cb1b3}=this[_0x2c4da1(0x197)][_0x2c4da1(0x1de)][_0x2c4da1(0x1be)](_0x2c4da1(0x1d9)),_0xfb07cb=this[_0x2c4da1(0x1a4)]>=_0x5cb1b3;if(this[_0x2c4da1(0x194)][_0x2c4da1(0x1be)](_0x45709a['id']))this[_0x2c4da1(0x194)][_0x2c4da1(0x19f)](_0x45709a['id']);else{if(_0xfb07cb&&this[_0x2c4da1(0x194)][_0x2c4da1(0x17b)]+0x1===_0x5cb1b3-0x1)return;}if(this[_0x2c4da1(0x194)][_0x2c4da1(0x17b)]+(_0xfb07cb?0x1:0x0)<this[_0x2c4da1(0x1a4)]){for(const _0x24cca7 of Array[_0x2c4da1(0x1b3)](this[_0x2c4da1(0x1cf)])[_0x2c4da1(0x19e)]())if(!this[_0x2c4da1(0x194)][_0x2c4da1(0x1be)](_0x24cca7['id'])&&(this[_0x2c4da1(0x194)][_0x2c4da1(0x1b6)](_0x24cca7,Math[_0x2c4da1(0x1af)](this[_0x2c4da1(0x194)][_0x2c4da1(0x17b)]-(_0xfb07cb?0x1:0x0),0x1)),this[_0x2c4da1(0x194)][_0x2c4da1(0x17b)]+(_0xfb07cb?0x1:0x0)===_0x5cb1b3-0x1))return;}}[_0x1f8d5f(0x1c6)](){const _0x18dbda=_0x1f8d5f;if(this[_0x18dbda(0x17e)])return;const _0x39a352=this[_0x18dbda(0x197)][_0x18dbda(0x1de)][_0x18dbda(0x1be)](_0x18dbda(0x1d9));this[_0x18dbda(0x17e)]=new _0x537525(this[_0x18dbda(0x197)][_0x18dbda(0x1a6)],!!_0x39a352[_0x18dbda(0x189)]),this[_0x18dbda(0x1bb)][_0x18dbda(0x1ae)][_0x18dbda(0x1d5)]=!0x0,this[_0x18dbda(0x1ba)](this[_0x18dbda(0x17e)],_0x18dbda(0x1ab),()=>{const _0x433019=_0x18dbda;this[_0x433019(0x17e)]&&this[_0x433019(0x1d6)]();});const {listWrapperView:_0x47cb26}=this[_0x18dbda(0x17e)];_0x47cb26[_0x18dbda(0x181)][_0x18dbda(0x18b)](this[_0x18dbda(0x1cf)])[_0x18dbda(0x1c5)](_0x532ac0=>{const _0x231941=_0x18dbda;if(!_0x39a352[_0x231941(0x1a0)]&&_0x532ac0[_0x231941(0x17d)])return null;const _0x4219dd=new _0x558ef3(this[_0x231941(0x197)][_0x231941(0x1a6)],_0x532ac0,!!_0x39a352[_0x231941(0x189)]);return _0x39a352[_0x231941(0x189)]&&this[_0x231941(0x1ba)](_0x4219dd,_0x231941(0x1a7),()=>{const _0x53dbe0=_0x231941;_0x39a352[_0x53dbe0(0x189)](_0x532ac0,_0x4219dd[_0x53dbe0(0x1cc)]);}),_0x4219dd;}),this[_0x18dbda(0x196)][_0x18dbda(0x1c1)][_0x18dbda(0x1b6)](this[_0x18dbda(0x17e)]),this[_0x18dbda(0x196)][_0x18dbda(0x184)]({'target':this[_0x18dbda(0x1bb)][_0x18dbda(0x1ae)][_0x18dbda(0x1cc)]}),_0x47cb26[_0x18dbda(0x1c8)](),_0x47cb26[_0x18dbda(0x1c3)]();const _0x46c24d=(_0x2cf93d,_0x44e24b)=>{const _0x3035d6=_0x18dbda;this[_0x3035d6(0x1d6)](),this[_0x3035d6(0x1bb)][_0x3035d6(0x1ae)][_0x3035d6(0x1c8)](),_0x44e24b();};_0x47cb26[_0x18dbda(0x1a5)][_0x18dbda(0x17c)](_0x18dbda(0x199),_0x46c24d),_0x47cb26[_0x18dbda(0x1a5)][_0x18dbda(0x17c)](_0x18dbda(0x179),_0x46c24d),_0x47cb26[_0x18dbda(0x1a5)][_0x18dbda(0x17c)](_0x18dbda(0x1ca),(_0x208920,_0xd88f60)=>{const _0x57564=_0x18dbda;!function(_0x2e0482){const _0x54851f=_0x333c,_0x5c02b7=['a',_0x54851f(0x19c),_0x54851f(0x1dc),_0x54851f(0x1cb),_0x54851f(0x1ce),_0x54851f(0x1a2),_0x54851f(0x1b8)][_0x54851f(0x182)](_0x2a737e=>_0x2a737e+_0x54851f(0x17f))[_0x54851f(0x1c7)](','),_0x2bfd14=[...document[_0x54851f(0x180)][_0x54851f(0x1da)](_0x5c02b7)][_0x54851f(0x1ad)](_0x9f2f4f=>_0x9f2f4f===document[_0x54851f(0x1b7)]||_0x9f2f4f[_0x54851f(0x192)]+_0x9f2f4f[_0x54851f(0x18e)]>0x0)[_0x54851f(0x1aa)]((_0x1c8bd7,_0x1622b1)=>(_0x1c8bd7[_0x54851f(0x178)]||0x0)-(_0x1622b1[_0x54851f(0x178)]||0x0)),_0xd9d2e0=_0x2bfd14[_0x54851f(0x1b1)](_0x2e0482),_0x2be1ec=_0x2bfd14[(_0xd9d2e0+0x1)%_0x2bfd14[_0x54851f(0x17b)]];_0x2be1ec&&_0x2be1ec[_0x54851f(0x1c8)]();}(this[_0x57564(0x1bb)][_0x57564(0x1cc)]),this[_0x57564(0x1d6)](),_0xd88f60();}),_0x47cb26[_0x18dbda(0x1c0)][_0x18dbda(0x1b6)](this[_0x18dbda(0x1bb)][_0x18dbda(0x1cc)]),_0x47cb26[_0x18dbda(0x1c0)]['on'](_0x18dbda(0x19d),(_0xe44cbc,_0x653e1c,_0x2768e3)=>{const _0x3b762e=_0x18dbda;_0x2768e3||this[_0x3b762e(0x1d6)]();});}[_0x1f8d5f(0x1d6)](){const _0xf7b39f=_0x1f8d5f;this[_0xf7b39f(0x17e)]&&(this[_0xf7b39f(0x1bb)][_0xf7b39f(0x1ae)][_0xf7b39f(0x1d5)]=!0x1,this[_0xf7b39f(0x196)][_0xf7b39f(0x1b2)](),this[_0xf7b39f(0x196)][_0xf7b39f(0x1c1)][_0xf7b39f(0x19f)](this[_0xf7b39f(0x17e)]),this[_0xf7b39f(0x17e)][_0xf7b39f(0x176)](),this[_0xf7b39f(0x17e)]=void 0x0);}[_0x1f8d5f(0x176)](){const _0x4d668b=_0x1f8d5f;super[_0x4d668b(0x176)](),this[_0x4d668b(0x1bb)]&&this[_0x4d668b(0x1bb)][_0x4d668b(0x1b4)]&&this[_0x4d668b(0x1bb)][_0x4d668b(0x176)](),this[_0x4d668b(0x1c2)]&&(this[_0x4d668b(0x1c2)][_0x4d668b(0x1df)](),this[_0x4d668b(0x1c2)][_0x4d668b(0x176)](),this[_0x4d668b(0x1c2)]=null);}}
23
+ const _0xbfc03b=_0x1b40;(function(_0x505331,_0x5cbed5){const _0x44e439=_0x1b40,_0xf1de09=_0x505331();while(!![]){try{const _0x1e1e0c=-parseInt(_0x44e439(0x1be))/0x1*(-parseInt(_0x44e439(0x19f))/0x2)+-parseInt(_0x44e439(0x1d5))/0x3+-parseInt(_0x44e439(0x1c9))/0x4+-parseInt(_0x44e439(0x193))/0x5+-parseInt(_0x44e439(0x1c1))/0x6+-parseInt(_0x44e439(0x1ac))/0x7+-parseInt(_0x44e439(0x1da))/0x8*(-parseInt(_0x44e439(0x19e))/0x9);if(_0x1e1e0c===_0x5cbed5)break;else _0xf1de09['push'](_0xf1de09['shift']());}catch(_0x14bafb){_0xf1de09['push'](_0xf1de09['shift']());}}}(_0x4330,0xf1996));import{ContextPlugin as _0x3a5034}from'ckeditor5/src/core.js';import{CKEditorError as _0x320c26,Collection as _0x3ca8e6}from'ckeditor5/src/utils.js';import{clickOutsideHandler as _0x290636,BalloonPanelView as _0x613399,BodyCollection as _0x581ebc}from'ckeditor5/src/ui.js';import{isElement as _0x31f86c}from'es-toolkit/compat';import{Sessions as _0x4b2ec4}from'../realtimecollaborativeediting/sessions.js';import{PresenceListView as _0xbca69c}from'./view/presencelistview.js';import{PresenceCounterView as _0x485d13}from'./view/presencecounterview.js';function _0x4330(){const _0x2764cf=['execute','isRendered','showDropdown','Tab','plugins','10937955wnILvS','remove','Enter','items','reverse','init','render','_handleUserRemove','ck\x20ck-presence-list__balloon','textarea','requires','inlineListView','bind','attachToDom','from','counterView','_bodyCollection','get','739448lIjveW','usersCount','bindTo','2071194jXueFQ','set','select','class','focus','presenceDropdownView','currentDisplayedUsers','_createView','5920536XzVnkQ','focusTracker','presencelist-missing-container','isExpanded','hideDropdown','allConnectedUsers','presenceList.container','[tabindex]','sort','offsetWidth','body','Esc','2167647oArmNS','pin','[contenteditable]','button',':not([disabled]):not([tabindex=\x22-1\x22])','36241192ECRqfq','isMe','displayMe','offsetHeight','map','element','detachFromDom','config','balloonPanelView','view','querySelectorAll','tabIndex','unpin','isCollapsed','join','hasTooltip','appendChild','change:isFocused','Shift+Tab','checkIfScrollable','isOfficialPlugin','using','define','add','keystrokes','length','activeElement','context','_handleUserAdd','indexOf','pluginName','find','presencelist-collapseat-invalid-format','destroy','presencelist:hide','847800DjhUFx','min','presencelist:show','isVisible','filter','locale','number','presenceList.displayMe','listenTo','PresenceListUI','isFocusable','9JWvIXm','2fSEfIU','input','presenceList','isPremiumPlugin','content','_allConnectedUsers','presenceList.collapseAt','onClick'];_0x4330=function(){return _0x2764cf;};return _0x4330();}import{PresenceDropdownListView as _0x2a8bab}from'./view/presencedropdownlistview.js';import{PresenceDropdownListItemView as _0x29294c}from'./view/presencedropdownlistitemview.js';import{PresenceInlineListItemView as _0x338071}from'./view/presenceinlinelistitemview.js';function _0x1b40(_0x2e49a2,_0x19156c){const _0x4330ea=_0x4330();return _0x1b40=function(_0x1b406f,_0x30617d){_0x1b406f=_0x1b406f-0x188;let _0x54d354=_0x4330ea[_0x1b406f];return _0x54d354;},_0x1b40(_0x2e49a2,_0x19156c);}const U={'collapseAt':0x6,'displayMe':!0x0};export class PresenceListUI extends _0x3a5034{[_0xbfc03b(0x1c7)];[_0xbfc03b(0x1e2)];[_0xbfc03b(0x1e3)];[_0xbfc03b(0x1c6)];[_0xbfc03b(0x1bc)]=null;static get[_0xbfc03b(0x18e)](){const _0x3f0812=_0xbfc03b;return _0x3f0812(0x19c);}static get[_0xbfc03b(0x1ee)](){return!0x0;}static get[_0xbfc03b(0x1a2)](){return!0x0;}constructor(_0x37f1af){const _0x2c1c32=_0xbfc03b;super(_0x37f1af),this[_0x2c1c32(0x18b)][_0x2c1c32(0x1e1)][_0x2c1c32(0x1f0)](_0x2c1c32(0x1a1),U);const _0x651550=_0x37f1af[_0x2c1c32(0x1e1)][_0x2c1c32(0x1bd)](_0x2c1c32(0x1a5));if(_0x2c1c32(0x199)!=typeof _0x651550)throw new _0x320c26(_0x2c1c32(0x190),this);if(_0x651550<0x1)throw new _0x320c26(_0x2c1c32(0x190),this);this[_0x2c1c32(0x1a4)]=this[_0x2c1c32(0x18b)][_0x2c1c32(0x1ab)][_0x2c1c32(0x1bd)](_0x4b2ec4)[_0x2c1c32(0x1ce)],this[_0x2c1c32(0x1c2)](_0x2c1c32(0x1bf),0x0),this[_0x2c1c32(0x1c7)]=new _0x3ca8e6(),this[_0x2c1c32(0x1e2)]=new _0x613399(),this[_0x2c1c32(0x1e2)][_0x2c1c32(0x1c4)]=_0x2c1c32(0x1b4),this[_0x2c1c32(0x1e3)]=this[_0x2c1c32(0x1c8)](),this[_0x2c1c32(0x1c6)]=void 0x0;}static get[_0xbfc03b(0x1b6)](){return[_0x4b2ec4];}[_0xbfc03b(0x1b1)](){const _0xa3642d=_0xbfc03b;for(const _0x1cf28c of this[_0xa3642d(0x1a4)])this[_0xa3642d(0x18c)](_0x1cf28c);this[_0xa3642d(0x19b)](this[_0xa3642d(0x1a4)],_0xa3642d(0x1f1),(_0x36025b,_0x2840a2)=>{const _0x2b4328=_0xa3642d;this[_0x2b4328(0x18c)](_0x2840a2);}),this[_0xa3642d(0x19b)](this[_0xa3642d(0x1a4)],_0xa3642d(0x1ad),(_0x5062da,_0xea7ed0)=>{const _0x3d2ed7=_0xa3642d;this[_0x3d2ed7(0x1b3)](_0xea7ed0);});}[_0xbfc03b(0x1c8)](){const _0x63cca=_0xbfc03b,_0x2ea8bb=this[_0x63cca(0x18b)],_0x10ad74=new _0xbca69c(this[_0x63cca(0x18b)][_0x63cca(0x198)],this[_0x63cca(0x18b)][_0x63cca(0x1e1)][_0x63cca(0x1bd)](_0x63cca(0x1a5))),_0x4403f7=this[_0x63cca(0x1e2)];if(!_0x31f86c(_0x2ea8bb[_0x63cca(0x1e1)][_0x63cca(0x1bd)](_0x63cca(0x1cf))))throw new _0x320c26(_0x63cca(0x1cb),this);return _0x10ad74[_0x63cca(0x1bb)][_0x63cca(0x1b8)](_0x63cca(0x1bf))['to'](this),_0x10ad74[_0x63cca(0x1b8)](_0x63cca(0x1e7))['to'](this,_0x63cca(0x1bf),_0x2e46dd=>{const _0x218238=_0x63cca,{collapseAt:_0x3e83eb}=_0x2ea8bb[_0x218238(0x1e1)][_0x218238(0x1bd)](_0x218238(0x1a1)),_0x5339c5=_0x2e46dd>=_0x3e83eb;if(_0x5339c5&&!_0x10ad74[_0x218238(0x1b7)][_0x218238(0x1af)][_0x218238(0x18f)](_0x9e09a9=>_0x9e09a9 instanceof _0x485d13)){const _0x2a37ef=this[_0x218238(0x18b)][_0x218238(0x1e1)][_0x218238(0x1bd)](_0x218238(0x1a5))-0x1;this[_0x218238(0x1c7)][_0x218238(0x189)]==_0x2a37ef&&this[_0x218238(0x1c7)][_0x218238(0x189)]>0x1&&this[_0x218238(0x1c7)][_0x218238(0x1ad)](this[_0x218238(0x1c7)][_0x218238(0x189)]-0x1),_0x10ad74[_0x218238(0x1b7)][_0x218238(0x1af)][_0x218238(0x1f1)](_0x10ad74[_0x218238(0x1bb)]);}return _0x5339c5||this[_0x218238(0x1cd)](),_0x5339c5;}),_0x10ad74[_0x63cca(0x1b7)][_0x63cca(0x1af)][_0x63cca(0x1c0)](this[_0x63cca(0x1c7)])[_0x63cca(0x1ef)](_0x109cf4=>{const _0x449a20=_0x63cca,_0xb1fa6a=_0x2ea8bb[_0x449a20(0x1e1)][_0x449a20(0x1bd)](_0x449a20(0x1a1)),_0xdb835f=new _0x338071(_0x2ea8bb[_0x449a20(0x198)],_0x109cf4,!!_0xb1fa6a[_0x449a20(0x1a6)]);return _0xdb835f[_0x449a20(0x1b8)](_0x449a20(0x1e9))['to'](_0x10ad74,_0x449a20(0x1e7),_0x383c86=>!_0x383c86),_0xdb835f[_0x449a20(0x1b8)](_0x449a20(0x19d))['to'](_0x10ad74,_0x449a20(0x1e7),_0x587295=>!_0x587295),_0xb1fa6a[_0x449a20(0x1a6)]&&this[_0x449a20(0x19b)](_0xdb835f,_0x449a20(0x1a7),()=>{const _0x51b2df=_0x449a20;this[_0x51b2df(0x1e3)][_0x51b2df(0x1e7)]||_0xb1fa6a[_0x51b2df(0x1a6)](_0x109cf4,_0xdb835f[_0x51b2df(0x1df)]);}),_0xdb835f;}),this[_0x63cca(0x19b)](_0x10ad74[_0x63cca(0x1b7)],_0x63cca(0x195),()=>{const _0x12b213=_0x63cca;this[_0x12b213(0x1e3)][_0x12b213(0x1e7)]&&this[_0x12b213(0x1a9)]();}),this[_0x63cca(0x19b)](_0x10ad74[_0x63cca(0x1b7)],_0x63cca(0x192),()=>{const _0x3c133b=_0x63cca;this[_0x3c133b(0x1c6)]&&this[_0x3c133b(0x1cd)]();}),_0x10ad74[_0x63cca(0x1b7)][_0x63cca(0x188)][_0x63cca(0x1c2)](_0x63cca(0x1ae),(_0x43ee7d,_0x5dccf3)=>{const _0x66897b=_0x63cca;this[_0x66897b(0x1e3)][_0x66897b(0x1e7)]&&(this[_0x66897b(0x1a9)](),_0x5dccf3());}),_0x10ad74[_0x63cca(0x1b2)](),_0x4403f7[_0x63cca(0x1b2)](),_0x290636({'emitter':_0x10ad74,'activator':()=>_0x4403f7[_0x63cca(0x196)],'contextElements':[_0x4403f7[_0x63cca(0x1df)],_0x10ad74[_0x63cca(0x1b7)][_0x63cca(0x1df)]],'callback':()=>this[_0x63cca(0x1cd)]()}),_0x2ea8bb[_0x63cca(0x1e1)][_0x63cca(0x1bd)](_0x63cca(0x1cf))[_0x63cca(0x1ea)](_0x10ad74[_0x63cca(0x1df)]),this[_0x63cca(0x1bc)]=new _0x581ebc(this[_0x63cca(0x18b)][_0x63cca(0x198)]),this[_0x63cca(0x1bc)][_0x63cca(0x1b9)](),this[_0x63cca(0x1bc)][_0x63cca(0x1f1)](this[_0x63cca(0x1e2)]),_0x10ad74;}[_0xbfc03b(0x18c)](_0x5505b7){const _0x1ac7fa=_0xbfc03b;if(!this[_0x1ac7fa(0x18b)][_0x1ac7fa(0x1e1)][_0x1ac7fa(0x1bd)](_0x1ac7fa(0x19a))&&_0x5505b7[_0x1ac7fa(0x1db)])return;const _0x205dde=this[_0x1ac7fa(0x18b)][_0x1ac7fa(0x1e1)][_0x1ac7fa(0x1bd)](_0x1ac7fa(0x1a5))-0x1;for(this[_0x1ac7fa(0x1bf)]++;this[_0x1ac7fa(0x1c7)][_0x1ac7fa(0x189)]>=_0x205dde-(this[_0x1ac7fa(0x1e3)][_0x1ac7fa(0x1e7)]?0x1:0x0)&&this[_0x1ac7fa(0x1c7)][_0x1ac7fa(0x189)]>0x1;)this[_0x1ac7fa(0x1c7)][_0x1ac7fa(0x1ad)](0x1);const _0x44b330=_0x5505b7[_0x1ac7fa(0x1db)]?0x0:this[_0x1ac7fa(0x1c7)][_0x1ac7fa(0x189)];this[_0x1ac7fa(0x1c7)][_0x1ac7fa(0x1f1)](_0x5505b7,_0x44b330);}[_0xbfc03b(0x1b3)](_0x566f0c){const _0x1a836b=_0xbfc03b;this[_0x1a836b(0x1bf)]--;const {collapseAt:_0x881226}=this[_0x1a836b(0x18b)][_0x1a836b(0x1e1)][_0x1a836b(0x1bd)](_0x1a836b(0x1a1)),_0x3ac6ee=this[_0x1a836b(0x1bf)]>=_0x881226;if(this[_0x1a836b(0x1c7)][_0x1a836b(0x1bd)](_0x566f0c['id']))this[_0x1a836b(0x1c7)][_0x1a836b(0x1ad)](_0x566f0c['id']);else{if(_0x3ac6ee&&this[_0x1a836b(0x1c7)][_0x1a836b(0x189)]+0x1===_0x881226-0x1)return;}if(this[_0x1a836b(0x1c7)][_0x1a836b(0x189)]+(_0x3ac6ee?0x1:0x0)<this[_0x1a836b(0x1bf)]){for(const _0x2951f1 of Array[_0x1a836b(0x1ba)](this[_0x1a836b(0x1a4)])[_0x1a836b(0x1b0)]())if(!this[_0x1a836b(0x1c7)][_0x1a836b(0x1bd)](_0x2951f1['id'])&&(this[_0x1a836b(0x1c7)][_0x1a836b(0x1f1)](_0x2951f1,Math[_0x1a836b(0x194)](this[_0x1a836b(0x1c7)][_0x1a836b(0x189)]-(_0x3ac6ee?0x1:0x0),0x1)),this[_0x1a836b(0x1c7)][_0x1a836b(0x189)]+(_0x3ac6ee?0x1:0x0)===_0x881226-0x1))return;}}[_0xbfc03b(0x1a9)](){const _0x5b786c=_0xbfc03b;if(this[_0x5b786c(0x1c6)])return;const _0x287cd6=this[_0x5b786c(0x18b)][_0x5b786c(0x1e1)][_0x5b786c(0x1bd)](_0x5b786c(0x1a1));this[_0x5b786c(0x1c6)]=new _0x2a8bab(this[_0x5b786c(0x18b)][_0x5b786c(0x198)],!!_0x287cd6[_0x5b786c(0x1a6)]),this[_0x5b786c(0x1e3)][_0x5b786c(0x1b7)][_0x5b786c(0x1cc)]=!0x0,this[_0x5b786c(0x19b)](this[_0x5b786c(0x1c6)],_0x5b786c(0x192),()=>{const _0x198de7=_0x5b786c;this[_0x198de7(0x1c6)]&&this[_0x198de7(0x1cd)]();});const {listWrapperView:_0x4106f7}=this[_0x5b786c(0x1c6)];_0x4106f7[_0x5b786c(0x1af)][_0x5b786c(0x1c0)](this[_0x5b786c(0x1a4)])[_0x5b786c(0x1ef)](_0x24236c=>{const _0xb10b74=_0x5b786c;if(!_0x287cd6[_0xb10b74(0x1dc)]&&_0x24236c[_0xb10b74(0x1db)])return null;const _0xa9a6e8=new _0x29294c(this[_0xb10b74(0x18b)][_0xb10b74(0x198)],_0x24236c,!!_0x287cd6[_0xb10b74(0x1a6)]);return _0x287cd6[_0xb10b74(0x1a6)]&&this[_0xb10b74(0x19b)](_0xa9a6e8,_0xb10b74(0x1a7),()=>{const _0x373dda=_0xb10b74;_0x287cd6[_0x373dda(0x1a6)](_0x24236c,_0xa9a6e8[_0x373dda(0x1df)]);}),_0xa9a6e8;}),this[_0x5b786c(0x1e2)][_0x5b786c(0x1a3)][_0x5b786c(0x1f1)](this[_0x5b786c(0x1c6)]),this[_0x5b786c(0x1e2)][_0x5b786c(0x1d6)]({'target':this[_0x5b786c(0x1e3)][_0x5b786c(0x1b7)][_0x5b786c(0x1df)]}),_0x4106f7[_0x5b786c(0x1c5)](),_0x4106f7[_0x5b786c(0x1ed)]();const _0x5bc69e=(_0x407796,_0x3f9110)=>{const _0x92a50a=_0x5b786c;this[_0x92a50a(0x1cd)](),this[_0x92a50a(0x1e3)][_0x92a50a(0x1b7)][_0x92a50a(0x1c5)](),_0x3f9110();};_0x4106f7[_0x5b786c(0x188)][_0x5b786c(0x1c2)](_0x5b786c(0x1d4),_0x5bc69e),_0x4106f7[_0x5b786c(0x188)][_0x5b786c(0x1c2)](_0x5b786c(0x1ec),_0x5bc69e),_0x4106f7[_0x5b786c(0x188)][_0x5b786c(0x1c2)](_0x5b786c(0x1aa),(_0x5e9701,_0x184422)=>{const _0x250f78=_0x5b786c;!function(_0x684ee1){const _0x286068=_0x1b40,_0x2f8c99=['a',_0x286068(0x1d8),_0x286068(0x1a0),_0x286068(0x1c3),_0x286068(0x1b5),_0x286068(0x1d0),_0x286068(0x1d7)][_0x286068(0x1de)](_0x1db938=>_0x1db938+_0x286068(0x1d9))[_0x286068(0x1e8)](','),_0x3402ce=[...document[_0x286068(0x1d3)][_0x286068(0x1e4)](_0x2f8c99)][_0x286068(0x197)](_0x455956=>_0x455956===document[_0x286068(0x18a)]||_0x455956[_0x286068(0x1d2)]+_0x455956[_0x286068(0x1dd)]>0x0)[_0x286068(0x1d1)]((_0x56d44a,_0x402a39)=>(_0x56d44a[_0x286068(0x1e5)]||0x0)-(_0x402a39[_0x286068(0x1e5)]||0x0)),_0x382975=_0x3402ce[_0x286068(0x18d)](_0x684ee1),_0x284337=_0x3402ce[(_0x382975+0x1)%_0x3402ce[_0x286068(0x189)]];_0x284337&&_0x284337[_0x286068(0x1c5)]();}(this[_0x250f78(0x1e3)][_0x250f78(0x1df)]),this[_0x250f78(0x1cd)](),_0x184422();}),_0x4106f7[_0x5b786c(0x1ca)][_0x5b786c(0x1f1)](this[_0x5b786c(0x1e3)][_0x5b786c(0x1df)]),_0x4106f7[_0x5b786c(0x1ca)]['on'](_0x5b786c(0x1eb),(_0x24d380,_0x271b74,_0x542125)=>{const _0x4b1098=_0x5b786c;_0x542125||this[_0x4b1098(0x1cd)]();});}[_0xbfc03b(0x1cd)](){const _0x547268=_0xbfc03b;this[_0x547268(0x1c6)]&&(this[_0x547268(0x1e3)][_0x547268(0x1b7)][_0x547268(0x1cc)]=!0x1,this[_0x547268(0x1e2)][_0x547268(0x1e6)](),this[_0x547268(0x1e2)][_0x547268(0x1a3)][_0x547268(0x1ad)](this[_0x547268(0x1c6)]),this[_0x547268(0x1c6)][_0x547268(0x191)](),this[_0x547268(0x1c6)]=void 0x0);}[_0xbfc03b(0x191)](){const _0x15ba69=_0xbfc03b;super[_0x15ba69(0x191)](),this[_0x15ba69(0x1e3)]&&this[_0x15ba69(0x1e3)][_0x15ba69(0x1a8)]&&this[_0x15ba69(0x1e3)][_0x15ba69(0x191)](),this[_0x15ba69(0x1bc)]&&(this[_0x15ba69(0x1bc)][_0x15ba69(0x1e0)](),this[_0x15ba69(0x1bc)][_0x15ba69(0x191)](),this[_0x15ba69(0x1bc)]=null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2573(){const _0x131282=['4032622OTysnP','46616KNrNSR','clientHeight','querySelector','bindTemplate','.ck-balloon-panel_with-arrow','resize','element','set','Connected\x20users\x20list\x20dropdown\x20menu','presencelist:hide','ck-presence-list__dropdown-list-wrapper','ck-reset','16lsfNVq','contains','scrollHeight','ck-list','fire','695NCiOLN','ariaLabelledBy','listenTo','ariaLabel','_isScrollable','window','ck-presence-list__dropdown-list','render','listWrapperView','.ck-presence-list__list','checkIfScrollable','12XtNiqk','1077088UiFfRv','2640wQcaiH','19xSINJG','relatedTarget','change','application','div','990745gkqigC','setTemplate','348048WolSQu','ck-presence-list__dropdown-list-wrapper_scrollable','130hPbnsq','innerHeight','632115rnpBuu','role','max','items'];_0x2573=function(){return _0x131282;};return _0x2573();}const _0x305477=_0x1b8e;(function(_0x45f8ad,_0x1381ba){const _0x4f5be5=_0x1b8e,_0x5223f9=_0x45f8ad();while(!![]){try{const _0xe9f555=-parseInt(_0x4f5be5(0x69))/0x1*(parseInt(_0x4f5be5(0x79))/0x2)+-parseInt(_0x4f5be5(0x74))/0x3+parseInt(_0x4f5be5(0x96))/0x4+-parseInt(_0x4f5be5(0x8a))/0x5*(-parseInt(_0x4f5be5(0x68))/0x6)+parseInt(_0x4f5be5(0x6e))/0x7*(-parseInt(_0x4f5be5(0x85))/0x8)+-parseInt(_0x4f5be5(0x70))/0x9*(-parseInt(_0x4f5be5(0x72))/0xa)+parseInt(_0x4f5be5(0x78))/0xb*(parseInt(_0x4f5be5(0x95))/0xc);if(_0xe9f555===_0x1381ba)break;else _0x5223f9['push'](_0x5223f9['shift']());}catch(_0x280488){_0x5223f9['push'](_0x5223f9['shift']());}}}(_0x2573,0x403e7));function _0x1b8e(_0x1486b0,_0x1c2129){const _0x2573cb=_0x2573();return _0x1b8e=function(_0x1b8ed0,_0x15bd39){_0x1b8ed0=_0x1b8ed0-0x68;let _0x174447=_0x2573cb[_0x1b8ed0];return _0x174447;},_0x1b8e(_0x1486b0,_0x1c2129);}import{ListView as _0x1e65ee,View as _0x4f1295}from'ckeditor5/src/ui.js';import{global as _0x5f5017}from'ckeditor5/src/utils.js';import{getTranslation as _0x5e570e}from'../../common-translations.js';export class PresenceDropdownListView extends _0x4f1295{[_0x305477(0x92)];constructor(_0x3a8ec0,_0x378edc){const _0x3ea212=_0x305477;super(_0x3a8ec0);const _0x248ab0=this[_0x3ea212(0x7c)];this[_0x3ea212(0x92)]=new PresenceDropdownListWrapperView(_0x3a8ec0,_0x378edc),this[_0x3ea212(0x6f)]({'tag':_0x3ea212(0x6d),'attributes':{'tabindex':-0x1,'role':_0x3ea212(0x6c),'class':['ck',_0x3ea212(0x90)],'aria-label':_0x5e570e(_0x3a8ec0,_0x3ea212(0x81))},'children':[this[_0x3ea212(0x92)]],'on':{'mouseleave':_0x248ab0['to'](_0xd2f6d1=>{const _0x336231=_0x3ea212,_0x17abc9=_0xd2f6d1,_0x24cb02=document[_0x336231(0x7b)](_0x336231(0x93)),_0x497eb1=document[_0x336231(0x7b)](_0x336231(0x7d));_0x24cb02?.[_0x336231(0x86)](_0x17abc9[_0x336231(0x6a)])||_0x497eb1?.[_0x336231(0x86)](_0x17abc9[_0x336231(0x6a)])||this[_0x336231(0x89)](_0x336231(0x82));})}});}}export class PresenceDropdownListWrapperView extends _0x1e65ee{constructor(_0x3f4e22,_0xa806f9){const _0x53705c=_0x305477;super(_0x3f4e22);const _0x29db1b=this[_0x53705c(0x7c)];this[_0x53705c(0x80)](_0x53705c(0x8e),!0x1),this[_0x53705c(0x6f)]({'tag':_0xa806f9?_0x53705c(0x6d):'ul','attributes':{'class':['ck',_0x53705c(0x84),_0x53705c(0x88),_0x53705c(0x83),_0x29db1b['if'](_0x53705c(0x8e),_0x53705c(0x71))],'role':_0x29db1b['to'](_0x53705c(0x75)),'aria-label':_0x29db1b['to'](_0x53705c(0x8d)),'aria-labelledby':_0x29db1b['to'](_0x53705c(0x8b))},'children':this[_0x53705c(0x77)]}),this[_0x53705c(0x8c)](_0x5f5017[_0x53705c(0x8f)],_0x53705c(0x7e),()=>this[_0x53705c(0x94)]()),this[_0x53705c(0x77)]['on'](_0x53705c(0x6b),()=>this[_0x53705c(0x94)]());}[_0x305477(0x91)](){const _0x18748e=_0x305477;super[_0x18748e(0x91)](),this[_0x18748e(0x94)]();}[_0x305477(0x94)](){const _0x49e5ba=_0x305477,_0xf4803a=this[_0x49e5ba(0x7f)];_0xf4803a&&(this[_0x49e5ba(0x8e)]=Math[_0x49e5ba(0x76)](_0xf4803a[_0x49e5ba(0x87)],_0xf4803a[_0x49e5ba(0x7a)])>0.8*window[_0x49e5ba(0x73)]);}}
23
+ function _0x1607(){const _0x51ba04=['5122453alUWXH','9318357mwfDZo','8cReknj','bindTemplate','clientHeight','ck-presence-list__dropdown-list-wrapper_scrollable','presencelist:hide','role','ariaLabelledBy','render','24460NaXQtV','element','ariaLabel','listenTo','div','items','ck-list','171574DMgHAh','innerHeight','1372578fomAhq','ck-reset','querySelector','setTemplate','contains','ck-presence-list__dropdown-list-wrapper','fire','ck-presence-list__dropdown-list','30SnZYCQ','_isScrollable','111kMLrZZ','relatedTarget','set','3588101iwCyaU','resize','listWrapperView','50qXiOud','application','Connected\x20users\x20list\x20dropdown\x20menu','.ck-balloon-panel_with-arrow','2055488ElMViJ','scrollHeight','checkIfScrollable','.ck-presence-list__list','window','max','change'];_0x1607=function(){return _0x51ba04;};return _0x1607();}const _0x466676=_0x1ea8;function _0x1ea8(_0x105f50,_0x12281a){const _0x1607d2=_0x1607();return _0x1ea8=function(_0x1ea811,_0x217066){_0x1ea811=_0x1ea811-0x13f;let _0x30a708=_0x1607d2[_0x1ea811];return _0x30a708;},_0x1ea8(_0x105f50,_0x12281a);}(function(_0x56ace8,_0x634c29){const _0x591c3e=_0x1ea8,_0x1c91c5=_0x56ace8();while(!![]){try{const _0x2ab81c=-parseInt(_0x591c3e(0x152))/0x1+-parseInt(_0x591c3e(0x14b))/0x2*(-parseInt(_0x591c3e(0x15e))/0x3)+parseInt(_0x591c3e(0x168))/0x4+parseInt(_0x591c3e(0x15c))/0x5*(-parseInt(_0x591c3e(0x154))/0x6)+parseInt(_0x591c3e(0x141))/0x7+parseInt(_0x591c3e(0x143))/0x8*(-parseInt(_0x591c3e(0x142))/0x9)+parseInt(_0x591c3e(0x164))/0xa*(parseInt(_0x591c3e(0x161))/0xb);if(_0x2ab81c===_0x634c29)break;else _0x1c91c5['push'](_0x1c91c5['shift']());}catch(_0x51ed8c){_0x1c91c5['push'](_0x1c91c5['shift']());}}}(_0x1607,0xb7017));import{ListView as _0x8c8089,View as _0x44a9a2}from'ckeditor5/src/ui.js';import{global as _0x5e19d7}from'ckeditor5/src/utils.js';import{getTranslation as _0x5f3603}from'../../common-translations.js';export class PresenceDropdownListView extends _0x44a9a2{[_0x466676(0x163)];constructor(_0x3285ac,_0x10721d){const _0x42ae4e=_0x466676;super(_0x3285ac);const _0x6a1265=this[_0x42ae4e(0x144)];this[_0x42ae4e(0x163)]=new PresenceDropdownListWrapperView(_0x3285ac,_0x10721d),this[_0x42ae4e(0x157)]({'tag':_0x42ae4e(0x14f),'attributes':{'tabindex':-0x1,'role':_0x42ae4e(0x165),'class':['ck',_0x42ae4e(0x15b)],'aria-label':_0x5f3603(_0x3285ac,_0x42ae4e(0x166))},'children':[this[_0x42ae4e(0x163)]],'on':{'mouseleave':_0x6a1265['to'](_0x40a66f=>{const _0x488f1d=_0x42ae4e,_0x3a8fec=_0x40a66f,_0x2867da=document[_0x488f1d(0x156)](_0x488f1d(0x16b)),_0x1e286b=document[_0x488f1d(0x156)](_0x488f1d(0x167));_0x2867da?.[_0x488f1d(0x158)](_0x3a8fec[_0x488f1d(0x15f)])||_0x1e286b?.[_0x488f1d(0x158)](_0x3a8fec[_0x488f1d(0x15f)])||this[_0x488f1d(0x15a)](_0x488f1d(0x147));})}});}}export class PresenceDropdownListWrapperView extends _0x8c8089{constructor(_0x4655dd,_0x22f64c){const _0x13140a=_0x466676;super(_0x4655dd);const _0x5a0588=this[_0x13140a(0x144)];this[_0x13140a(0x160)](_0x13140a(0x15d),!0x1),this[_0x13140a(0x157)]({'tag':_0x22f64c?_0x13140a(0x14f):'ul','attributes':{'class':['ck',_0x13140a(0x155),_0x13140a(0x151),_0x13140a(0x159),_0x5a0588['if'](_0x13140a(0x15d),_0x13140a(0x146))],'role':_0x5a0588['to'](_0x13140a(0x148)),'aria-label':_0x5a0588['to'](_0x13140a(0x14d)),'aria-labelledby':_0x5a0588['to'](_0x13140a(0x149))},'children':this[_0x13140a(0x150)]}),this[_0x13140a(0x14e)](_0x5e19d7[_0x13140a(0x16c)],_0x13140a(0x162),()=>this[_0x13140a(0x16a)]()),this[_0x13140a(0x150)]['on'](_0x13140a(0x140),()=>this[_0x13140a(0x16a)]());}[_0x466676(0x14a)](){const _0x4dd8be=_0x466676;super[_0x4dd8be(0x14a)](),this[_0x4dd8be(0x16a)]();}[_0x466676(0x16a)](){const _0x3bebea=_0x466676,_0x202242=this[_0x3bebea(0x14c)];_0x202242&&(this[_0x3bebea(0x15d)]=Math[_0x3bebea(0x13f)](_0x202242[_0x3bebea(0x169)],_0x202242[_0x3bebea(0x145)])>0.8*window[_0x3bebea(0x153)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dea18=_0x550e;function _0xccd4(){const _0x3fa4b1=['560MtZGrL','render','.ck-balloon-panel_with-arrow','keystrokes','presencelist:show','setAttribute','58869pxQxtv','447553EPISsq','fire','2bOKByr','2864919CDIaHb','presencelist:hide','hasPopup','items','change:hasPopup','listenTo','aria-expanded','removeAttribute','setTemplate','querySelector','.ck-presence-list__dropdown-list','isExpanded','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','3577938IZhHcX','30SqlZWE','div','set','2091026WYlOEv','ck-presence-list__list','bindTemplate','715148mKrTcd','Connected\x20users\x20list','list','6231312twWoXQ','contains','element','focus','relatedTarget','createCollection'];_0xccd4=function(){return _0x3fa4b1;};return _0xccd4();}(function(_0x5bb339,_0x275968){const _0x5470d9=_0x550e,_0x307de5=_0x5bb339();while(!![]){try{const _0x7ded50=parseInt(_0x5470d9(0x17b))/0x1+-parseInt(_0x5470d9(0x17d))/0x2*(-parseInt(_0x5470d9(0x17e))/0x3)+-parseInt(_0x5470d9(0x192))/0x4*(parseInt(_0x5470d9(0x18c))/0x5)+-parseInt(_0x5470d9(0x18b))/0x6+-parseInt(_0x5470d9(0x18f))/0x7+parseInt(_0x5470d9(0x195))/0x8+-parseInt(_0x5470d9(0x1a1))/0x9*(-parseInt(_0x5470d9(0x19b))/0xa);if(_0x7ded50===_0x275968)break;else _0x307de5['push'](_0x307de5['shift']());}catch(_0x11a2fd){_0x307de5['push'](_0x307de5['shift']());}}}(_0xccd4,0x8d985));import{View as _0x318cbe}from'ckeditor5/src/ui.js';function _0x550e(_0x54cbbb,_0x3c1877){const _0xccd4c=_0xccd4();return _0x550e=function(_0x550edb,_0x579333){_0x550edb=_0x550edb-0x17b;let _0x5d2a45=_0xccd4c[_0x550edb];return _0x5d2a45;},_0x550e(_0x54cbbb,_0x3c1877);}import{KeystrokeHandler as _0x23ee43}from'ckeditor5/src/utils.js';import{getTranslation as _0x4e027a}from'../../common-translations.js';export class PresenceInlineListView extends _0x318cbe{[_0x3dea18(0x181)];[_0x3dea18(0x19e)];constructor(_0x33e59e){const _0x2fb4a2=_0x3dea18;super(_0x33e59e);const _0x574bd6=this[_0x2fb4a2(0x191)];this[_0x2fb4a2(0x181)]=this[_0x2fb4a2(0x19a)](),this[_0x2fb4a2(0x19e)]=new _0x23ee43(),this[_0x2fb4a2(0x18e)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x2fb4a2(0x186)]({'tag':_0x2fb4a2(0x18d),'attributes':{'aria-haspopup':_0x574bd6['if'](_0x2fb4a2(0x180)),'aria-expanded':_0x574bd6['to'](_0x2fb4a2(0x189),_0x22b718=>this[_0x2fb4a2(0x180)]&&String(_0x22b718)),'aria-label':_0x574bd6['to'](_0x2fb4a2(0x180),_0x11d0dc=>_0x4e027a(_0x33e59e,_0x11d0dc?_0x2fb4a2(0x18a):_0x2fb4a2(0x193))),'role':_0x2fb4a2(0x194),'tabindex':_0x574bd6['to'](_0x2fb4a2(0x180),_0x173a34=>!!_0x173a34&&0x0),'class':['ck',_0x2fb4a2(0x190)]},'children':this[_0x2fb4a2(0x181)],'on':{'mouseenter':_0x574bd6['to'](()=>this[_0x2fb4a2(0x17c)](_0x2fb4a2(0x19f))),'mouseleave':_0x574bd6['to'](_0x37e177=>{const _0x2c209f=_0x2fb4a2,_0x123842=_0x37e177,_0x1ffc74=document[_0x2c209f(0x187)](_0x2c209f(0x188)),_0x1529f8=document[_0x2c209f(0x187)](_0x2c209f(0x19d));_0x1ffc74?.[_0x2c209f(0x196)](_0x123842[_0x2c209f(0x199)])||_0x1529f8?.[_0x2c209f(0x196)](_0x123842[_0x2c209f(0x199)])||this[_0x2c209f(0x17c)](_0x2c209f(0x17f));})}}),this['on'](_0x2fb4a2(0x182),(_0x5e0b42,_0x2baa0a,_0x2b9d99)=>{const _0x5414c4=_0x2fb4a2;this[_0x5414c4(0x197)]&&(_0x2b9d99?this[_0x5414c4(0x197)][_0x5414c4(0x1a0)](_0x5414c4(0x184),String(this[_0x5414c4(0x189)])):this[_0x5414c4(0x197)][_0x5414c4(0x185)](_0x5414c4(0x184)));});}[_0x3dea18(0x198)](){const _0x406fa9=_0x3dea18;this[_0x406fa9(0x197)][_0x406fa9(0x198)]();}[_0x3dea18(0x19c)](){const _0x3c1780=_0x3dea18;super[_0x3c1780(0x19c)](),this[_0x3c1780(0x19e)][_0x3c1780(0x183)](this[_0x3c1780(0x197)]);}}
23
+ function _0x1dcd(){const _0x21dd29=['createCollection','presencelist:hide','bindTemplate','list','change:hasPopup','4487273IJulpU','listenTo','680020eQvNfC','aria-expanded','2530746DQIgIa','hasPopup','setAttribute','removeAttribute','element','div','ck-presence-list__list','fire','keystrokes','.ck-balloon-panel_with-arrow','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','setTemplate','500466NIxLHr','Connected\x20users\x20list','set','16RekvAJ','isExpanded','presencelist:show','12QxjLwR','99jHiuYN','.ck-presence-list__dropdown-list','render','2734650tBHAup','contains','querySelector','3dAYSYZ','relatedTarget','items','772888kBNXwi','1433835vyGVsB','focus'];_0x1dcd=function(){return _0x21dd29;};return _0x1dcd();}function _0x3db1(_0x315fed,_0x47128a){const _0x1dcdf2=_0x1dcd();return _0x3db1=function(_0x3db186,_0x38f2cf){_0x3db186=_0x3db186-0x18b;let _0x1e6ef5=_0x1dcdf2[_0x3db186];return _0x1e6ef5;},_0x3db1(_0x315fed,_0x47128a);}const _0x1e5386=_0x3db1;(function(_0x2d62e4,_0x113f5f){const _0x513269=_0x3db1,_0x31490a=_0x2d62e4();while(!![]){try{const _0xe097cb=-parseInt(_0x513269(0x197))/0x1*(-parseInt(_0x513269(0x1b2))/0x2)+parseInt(_0x513269(0x190))/0x3*(-parseInt(_0x513269(0x19a))/0x4)+parseInt(_0x513269(0x19b))/0x5+-parseInt(_0x513269(0x194))/0x6+parseInt(_0x513269(0x1a2))/0x7+-parseInt(_0x513269(0x18d))/0x8*(-parseInt(_0x513269(0x1a6))/0x9)+-parseInt(_0x513269(0x1a4))/0xa*(parseInt(_0x513269(0x191))/0xb);if(_0xe097cb===_0x113f5f)break;else _0x31490a['push'](_0x31490a['shift']());}catch(_0x2f325c){_0x31490a['push'](_0x31490a['shift']());}}}(_0x1dcd,0x61b54));import{View as _0x5f4010}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x1f2e87}from'ckeditor5/src/utils.js';import{getTranslation as _0x12b61e}from'../../common-translations.js';export class PresenceInlineListView extends _0x5f4010{[_0x1e5386(0x199)];[_0x1e5386(0x1ae)];constructor(_0x253d8f){const _0x1379a7=_0x1e5386;super(_0x253d8f);const _0x89004c=this[_0x1379a7(0x19f)];this[_0x1379a7(0x199)]=this[_0x1379a7(0x19d)](),this[_0x1379a7(0x1ae)]=new _0x1f2e87(),this[_0x1379a7(0x18c)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x1379a7(0x1b1)]({'tag':_0x1379a7(0x1ab),'attributes':{'aria-haspopup':_0x89004c['if'](_0x1379a7(0x1a7)),'aria-expanded':_0x89004c['to'](_0x1379a7(0x18e),_0x3993da=>this[_0x1379a7(0x1a7)]&&String(_0x3993da)),'aria-label':_0x89004c['to'](_0x1379a7(0x1a7),_0x5254a9=>_0x12b61e(_0x253d8f,_0x5254a9?_0x1379a7(0x1b0):_0x1379a7(0x18b))),'role':_0x1379a7(0x1a0),'tabindex':_0x89004c['to'](_0x1379a7(0x1a7),_0x1068c=>!!_0x1068c&&0x0),'class':['ck',_0x1379a7(0x1ac)]},'children':this[_0x1379a7(0x199)],'on':{'mouseenter':_0x89004c['to'](()=>this[_0x1379a7(0x1ad)](_0x1379a7(0x18f))),'mouseleave':_0x89004c['to'](_0x3dfbcb=>{const _0x4e2b04=_0x1379a7,_0x1b8477=_0x3dfbcb,_0x5ab7dd=document[_0x4e2b04(0x196)](_0x4e2b04(0x192)),_0x1f5bf3=document[_0x4e2b04(0x196)](_0x4e2b04(0x1af));_0x5ab7dd?.[_0x4e2b04(0x195)](_0x1b8477[_0x4e2b04(0x198)])||_0x1f5bf3?.[_0x4e2b04(0x195)](_0x1b8477[_0x4e2b04(0x198)])||this[_0x4e2b04(0x1ad)](_0x4e2b04(0x19e));})}}),this['on'](_0x1379a7(0x1a1),(_0x2b7dfb,_0x1fd277,_0x26ce63)=>{const _0x47a3c5=_0x1379a7;this[_0x47a3c5(0x1aa)]&&(_0x26ce63?this[_0x47a3c5(0x1aa)][_0x47a3c5(0x1a8)](_0x47a3c5(0x1a5),String(this[_0x47a3c5(0x18e)])):this[_0x47a3c5(0x1aa)][_0x47a3c5(0x1a9)](_0x47a3c5(0x1a5)));});}[_0x1e5386(0x19c)](){const _0x42100b=_0x1e5386;this[_0x42100b(0x1aa)][_0x42100b(0x19c)]();}[_0x1e5386(0x193)](){const _0x339582=_0x1e5386;super[_0x339582(0x193)](),this[_0x339582(0x1ae)][_0x339582(0x1a3)](this[_0x339582(0x1aa)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x562a9a=_0xfaa4;(function(_0x3ad2d3,_0x3f17e6){const _0x442235=_0xfaa4,_0x8ff5ab=_0x3ad2d3();while(!![]){try{const _0x4fdc5e=-parseInt(_0x442235(0x195))/0x1*(parseInt(_0x442235(0x193))/0x2)+parseInt(_0x442235(0x180))/0x3+parseInt(_0x442235(0x192))/0x4*(-parseInt(_0x442235(0x18d))/0x5)+-parseInt(_0x442235(0x198))/0x6+parseInt(_0x442235(0x199))/0x7+-parseInt(_0x442235(0x18c))/0x8+parseInt(_0x442235(0x194))/0x9;if(_0x4fdc5e===_0x3f17e6)break;else _0x8ff5ab['push'](_0x8ff5ab['shift']());}catch(_0x1e1494){_0x8ff5ab['push'](_0x8ff5ab['shift']());}}}(_0x1c7e,0x39492));function _0xfaa4(_0x3f9ccf,_0x118941){const _0x1c7e73=_0x1c7e();return _0xfaa4=function(_0xfaa4e3,_0x4bf02d){_0xfaa4e3=_0xfaa4e3-0x180;let _0x4f6325=_0x1c7e73[_0xfaa4e3];return _0x4f6325;},_0xfaa4(_0x3f9ccf,_0x118941);}function _0x1c7e(){const _0x1c8ace=['2000016lOnIbf','2021lBUgja','bind','locale','1808904MHpjui','3195521lZspPx','listenTo','ck-presence-list','1267401nQfkbp','ck-presence-list--collapsed','set','isCollapsed','counterView','inlineListView','tooltipPosition','div','setTemplate','ck-rounded-corners','ck-reset','first','742672IrIjMp','46135ObojFd','change','hasPopup','bindTemplate','items','132KsYZgZ','166KxNzjT'];_0x1c7e=function(){return _0x1c8ace;};return _0x1c7e();}import{View as _0x96d80b}from'ckeditor5/src/ui.js';import{PresenceCounterView as _0x228dc9}from'./presencecounterview.js';import{PresenceInlineListView as _0x2c282e}from'./presenceinlinelistview.js';import'../../../theme/presencelist.css';export class PresenceListView extends _0x96d80b{[_0x562a9a(0x184)];[_0x562a9a(0x185)];constructor(_0x1e2c2c,_0x17a416=0x6){const _0x323fc4=_0x562a9a;super(_0x1e2c2c);const _0x2d3013=this[_0x323fc4(0x190)];this[_0x323fc4(0x182)](_0x323fc4(0x183),!0x0),this[_0x323fc4(0x184)]=new _0x228dc9(this[_0x323fc4(0x197)],_0x17a416),this[_0x323fc4(0x185)]=new _0x2c282e(_0x1e2c2c),this[_0x323fc4(0x185)][_0x323fc4(0x196)](_0x323fc4(0x18f))['to'](this,_0x323fc4(0x183)),this[_0x323fc4(0x19a)](this[_0x323fc4(0x185)][_0x323fc4(0x191)],_0x323fc4(0x18e),()=>{const _0x457cc1=_0x323fc4;for(const _0x19715a of this[_0x457cc1(0x185)][_0x457cc1(0x191)])_0x19715a[_0x457cc1(0x186)]='s';this[_0x457cc1(0x185)][_0x457cc1(0x191)][_0x457cc1(0x18b)]&&(this[_0x457cc1(0x185)][_0x457cc1(0x191)][_0x457cc1(0x18b)][_0x457cc1(0x186)]='se');}),this[_0x323fc4(0x188)]({'tag':_0x323fc4(0x187),'attributes':{'class':['ck',_0x323fc4(0x19b),_0x323fc4(0x18a),_0x323fc4(0x189),_0x2d3013['if'](_0x323fc4(0x183),_0x323fc4(0x181))]},'children':[this[_0x323fc4(0x185)]]});}}
23
+ const _0x5a4639=_0x113f;(function(_0x8a9ab2,_0xfc4376){const _0x1ad389=_0x113f,_0x494150=_0x8a9ab2();while(!![]){try{const _0x3a2ff9=-parseInt(_0x1ad389(0x1e0))/0x1*(-parseInt(_0x1ad389(0x1d1))/0x2)+-parseInt(_0x1ad389(0x1e5))/0x3+-parseInt(_0x1ad389(0x1d7))/0x4+-parseInt(_0x1ad389(0x1e3))/0x5*(parseInt(_0x1ad389(0x1db))/0x6)+parseInt(_0x1ad389(0x1da))/0x7+-parseInt(_0x1ad389(0x1ec))/0x8+parseInt(_0x1ad389(0x1d9))/0x9;if(_0x3a2ff9===_0xfc4376)break;else _0x494150['push'](_0x494150['shift']());}catch(_0x20a486){_0x494150['push'](_0x494150['shift']());}}}(_0x52bd,0xb43d7));import{View as _0x60922f}from'ckeditor5/src/ui.js';import{PresenceCounterView as _0x3a815a}from'./presencecounterview.js';import{PresenceInlineListView as _0x5b1845}from'./presenceinlinelistview.js';function _0x113f(_0x2a3677,_0x320adf){const _0x52bd5b=_0x52bd();return _0x113f=function(_0x113fe8,_0x301fe1){_0x113fe8=_0x113fe8-0x1d1;let _0x30cda8=_0x52bd5b[_0x113fe8];return _0x30cda8;},_0x113f(_0x2a3677,_0x320adf);}function _0x52bd(){const _0x40dbaf=['ck-rounded-corners','listenTo','tooltipPosition','items','bindTemplate','525220lcKGEX','hasPopup','2794473iLAyhd','4205824lbcgGV','2225274IABMxW','inlineListView','first','div','ck-presence-list--collapsed','200276yimxZj','locale','change','5IXLcpq','isCollapsed','3181260yRqSal','ck-reset','ck-presence-list','bind','counterView','set','setTemplate','99152qTKhnE','14DxcWaT'];_0x52bd=function(){return _0x40dbaf;};return _0x52bd();}import'../../../theme/presencelist.css';export class PresenceListView extends _0x60922f{[_0x5a4639(0x1e9)];[_0x5a4639(0x1dc)];constructor(_0x18fc40,_0x236cd0=0x6){const _0x303ca2=_0x5a4639;super(_0x18fc40);const _0x324bbe=this[_0x303ca2(0x1d6)];this[_0x303ca2(0x1ea)](_0x303ca2(0x1e4),!0x0),this[_0x303ca2(0x1e9)]=new _0x3a815a(this[_0x303ca2(0x1e1)],_0x236cd0),this[_0x303ca2(0x1dc)]=new _0x5b1845(_0x18fc40),this[_0x303ca2(0x1dc)][_0x303ca2(0x1e8)](_0x303ca2(0x1d8))['to'](this,_0x303ca2(0x1e4)),this[_0x303ca2(0x1d3)](this[_0x303ca2(0x1dc)][_0x303ca2(0x1d5)],_0x303ca2(0x1e2),()=>{const _0x39c059=_0x303ca2;for(const _0x3b7c95 of this[_0x39c059(0x1dc)][_0x39c059(0x1d5)])_0x3b7c95[_0x39c059(0x1d4)]='s';this[_0x39c059(0x1dc)][_0x39c059(0x1d5)][_0x39c059(0x1dd)]&&(this[_0x39c059(0x1dc)][_0x39c059(0x1d5)][_0x39c059(0x1dd)][_0x39c059(0x1d4)]='se');}),this[_0x303ca2(0x1eb)]({'tag':_0x303ca2(0x1de),'attributes':{'class':['ck',_0x303ca2(0x1e7),_0x303ca2(0x1e6),_0x303ca2(0x1d2),_0x324bbe['if'](_0x303ca2(0x1e4),_0x303ca2(0x1df))]},'children':[this[_0x303ca2(0x1dc)]]});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ca731=_0x5182;(function(_0x1546ac,_0x333d52){const _0x11648a=_0x5182,_0x2b0bb4=_0x1546ac();while(!![]){try{const _0x5b6bac=parseInt(_0x11648a(0x10b))/0x1+parseInt(_0x11648a(0x127))/0x2*(-parseInt(_0x11648a(0x11a))/0x3)+parseInt(_0x11648a(0xe9))/0x4*(parseInt(_0x11648a(0x115))/0x5)+-parseInt(_0x11648a(0x119))/0x6+parseInt(_0x11648a(0xf4))/0x7+-parseInt(_0x11648a(0x10e))/0x8*(-parseInt(_0x11648a(0xfc))/0x9)+-parseInt(_0x11648a(0xfd))/0xa*(-parseInt(_0x11648a(0x116))/0xb);if(_0x5b6bac===_0x333d52)break;else _0x2b0bb4['push'](_0x2b0bb4['shift']());}catch(_0x934adf){_0x2b0bb4['push'](_0x2b0bb4['shift']());}}}(_0x52ec,0xf1094));import{Context as _0x20438c,ContextPlugin as _0x51b26}from'ckeditor5/src/core.js';import{CKEditorError as _0x19dc0d}from'ckeditor5/src/utils.js';import{Users as _0x5883a0}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x2e9a66,User as _0x5e5957}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5c2693}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x5d1d02}from'../realtimecollaborativeediting/sessions.js';class s extends _0x51b26{static [_0x4ca731(0xfe)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x2e9a66)());[_0x4ca731(0x137)];static get[_0x4ca731(0x117)](){const _0x309aee=_0x4ca731;return[_0x5c2693,_0x309aee(0xde),_0x5d1d02,_0x5883a0];}static get[_0x4ca731(0xe7)](){const _0x171b02=_0x4ca731;return _0x171b02(0x113);}static get[_0x4ca731(0xf7)](){return!0x0;}static get[_0x4ca731(0x11b)](){return!0x0;}constructor(_0x87c07b){const _0x32c821=_0x4ca731;super(_0x87c07b),this[_0x32c821(0x137)]=new Map();}async[_0x4ca731(0x13c)](){const _0x46002d=_0x4ca731,_0x8efbea=this[_0x46002d(0x13e)],_0x38c61e=_0x8efbea[_0x46002d(0x13d)][_0x46002d(0x10d)](_0x46002d(0xde));if(_0x8efbea[_0x46002d(0x13d)][_0x46002d(0x10d)](_0x5c2693)[_0x46002d(0x107)](this),_0x38c61e[_0x46002d(0xff)]={'addCommentThread':async({channelId:_0x59e5a1,threadId:_0x502807,comments:_0x378bfe,resolvedAt:_0x13a5b9,resolvedBy:_0x11e83b,context:_0x3dac59,attributes:_0x5c4b4d})=>{const _0x338657=_0x46002d,_0x11a37f=await this[_0x338657(0x134)](_0x59e5a1)[_0x338657(0x118)]({'commentThreadId':_0x502807,'comments':_0x378bfe[_0x338657(0x11e)](_0x2a6fc4=>function(_0x3c6ae0,_0x17751c,_0x1ef2d2){const _0x7e7b75=_0x338657;return{'commentThreadId':_0x1ef2d2,'commentId':_0x3c6ae0[_0x7e7b75(0x12e)],'userId':_0x3c6ae0[_0x7e7b75(0x105)],'content':_0x3c6ae0[_0x7e7b75(0x123)],'documentId':_0x17751c,'createdAt':_0x3c6ae0[_0x7e7b75(0xdf)],'attributes':_0x3c6ae0[_0x7e7b75(0x11c)]||{}};}(_0x2a6fc4,_0x59e5a1,_0x502807)),'resolvedAt':_0x13a5b9,'resolvedBy':_0x11e83b,'context':_0x3dac59,'attributes':_0x5c4b4d})[_0x338657(0x12a)](B);return{'threadId':_0x11a37f[_0x338657(0x110)],'comments':_0x11a37f[_0x338657(0xe0)]};},'getCommentThread':async({channelId:_0x26efd5,threadId:_0x38e84e})=>{const _0x492c85=_0x46002d,_0x1b52e3=await this[_0x492c85(0x134)](_0x26efd5)[_0x492c85(0xfa)](_0x38e84e)[_0x492c85(0x12a)](B);return _0x1b52e3[_0x492c85(0xed)]?null:(await this[_0x492c85(0x138)]([_0x1b52e3]),{'threadId':_0x1b52e3[_0x492c85(0x110)],'comments':_0x1b52e3[_0x492c85(0xe0)][_0x492c85(0x11e)](U),'context':_0x1b52e3[_0x492c85(0x13e)],'resolvedAt':_0x1b52e3[_0x492c85(0x13f)],'resolvedBy':_0x1b52e3[_0x492c85(0xdc)],'attributes':_0x1b52e3[_0x492c85(0x11c)]||{}});},'updateCommentThread':async({channelId:_0x167463,threadId:_0x341168,context:_0x92ce6c,unlinkedAt:_0x549f9b,attributes:_0x96b219})=>this[_0x46002d(0x134)](_0x167463)[_0x46002d(0xf2)]({'commentThreadId':_0x341168,'context':_0x92ce6c,'attributes':_0x96b219,'unlinkedAt':_0x549f9b})[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B),'resolveCommentThread':async({channelId:_0x28fe4c,threadId:_0x36ae7c})=>{const _0x36e09f=_0x46002d,_0x4676f7=await this[_0x36e09f(0x134)](_0x28fe4c)[_0x36e09f(0xe8)](_0x36ae7c)[_0x36e09f(0x12a)](F)[_0x36e09f(0x12a)](B);return{'threadId':_0x4676f7[_0x36e09f(0x110)],'resolvedAt':_0x4676f7[_0x36e09f(0x13f)],'resolvedBy':_0x4676f7[_0x36e09f(0xdc)]};},'reopenCommentThread':async({channelId:_0x1f66ef,threadId:_0x5d1d69})=>this[_0x46002d(0x134)](_0x1f66ef)[_0x46002d(0x10a)](_0x5d1d69)[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B),'removeCommentThread':({channelId:_0x4d6d99,threadId:_0x4088b8})=>this[_0x46002d(0x134)](_0x4d6d99)[_0x46002d(0x13a)](_0x4088b8)[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B),'addComment':({channelId:_0x1d2bf9,threadId:_0x41cdd6,commentId:_0x56ffcf,content:_0x39f7e9,attributes:_0x231a7e})=>this[_0x46002d(0x134)](_0x1d2bf9)[_0x46002d(0x11d)](_0x41cdd6,_0x56ffcf,_0x39f7e9,_0x231a7e)[_0x46002d(0x12a)](B),'updateComment':({channelId:_0x22e6e2,threadId:_0x182ffc,commentId:_0x1e8d5f,content:_0x278d38,attributes:_0x52e175})=>this[_0x46002d(0x134)](_0x22e6e2)[_0x46002d(0x128)](_0x182ffc,_0x1e8d5f,_0x278d38,_0x52e175)[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B),'removeComment':({channelId:_0x1edd1a,threadId:_0x48bca2,commentId:_0x1a6169})=>this[_0x46002d(0x134)](_0x1edd1a)[_0x46002d(0x10f)](_0x48bca2,_0x1a6169)[_0x46002d(0x12a)](F)[_0x46002d(0x12a)](B)},_0x8efbea instanceof _0x20438c){const _0x25f287=_0x8efbea[_0x46002d(0xe4)][_0x46002d(0x10d)](_0x46002d(0xf1)),_0x35aca2=_0x8efbea[_0x46002d(0x13d)][_0x46002d(0x10d)](_0x5d1d02);await this[_0x46002d(0x103)](_0x25f287);const _0x258111=await this[_0x46002d(0x137)][_0x46002d(0x10d)](_0x25f287)[_0x46002d(0xf9)]();this[_0x46002d(0x132)](_0x35aca2,_0x46002d(0x136)+_0x25f287,(_0x36f765,{session:_0x14480b})=>{const _0x1f715d=_0x46002d;_0x14480b['id']===_0x35aca2[_0x1f715d(0x125)]&&(_0x36f765[_0x1f715d(0xe6)](),this[_0x1f715d(0x13e)][_0x1f715d(0x13d)][_0x1f715d(0x10d)](_0x1f715d(0xf6))[_0x1f715d(0xee)](_0x14480b[_0x1f715d(0x131)],_0x25f287));}),_0x35aca2[_0x46002d(0x122)](_0x25f287,_0x258111);}}async[_0x4ca731(0x103)](_0x3c6fdc){const _0x561c12=_0x4ca731;if(this[_0x561c12(0x137)][_0x561c12(0xec)](_0x3c6fdc))throw new _0x19dc0d(_0x561c12(0x12c),null,{'channelId':_0x3c6fdc});const _0x50a8a6=this[_0x561c12(0x13e)][_0x561c12(0x13d)][_0x561c12(0x10d)](_0x561c12(0xde)),_0x43ad31=new s[(_0x561c12(0xfe))](_0x3c6fdc);this[_0x561c12(0x137)][_0x561c12(0xe3)](_0x3c6fdc,_0x43ad31),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0x104),(_0x4e2c99,_0xcbd8d5)=>{const _0x5d72d2=_0x561c12,{commentThreadId:_0x101202,documentId:_0x4c5eb4,context:_0x545f93,attributes:_0x49767c,resolvedAt:_0x2ba29b,resolvedBy:_0x57e5ed,comments:_0x56c6b4}=_0xcbd8d5;_0x50a8a6[_0x5d72d2(0xfa)](_0x101202)||_0x50a8a6[_0x5d72d2(0x118)]({'threadId':_0x101202,'channelId':_0x4c5eb4,'comments':_0x56c6b4?_0x56c6b4[_0x5d72d2(0x11e)](U):[],'context':_0x545f93,'attributes':_0x49767c,'resolvedAt':_0x2ba29b,'resolvedBy':_0x57e5ed,'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0xea),(_0x34c114,{commentThreadId:_0x489f9e,documentId:_0x4409d1,context:_0x2a219f,unlinkedAt:_0x41ece9,attributes:_0x165722})=>{const _0x51085a=_0x561c12;_0x50a8a6[_0x51085a(0xfa)](_0x489f9e)&&_0x50a8a6[_0x51085a(0xf2)]({'threadId':_0x489f9e,'channelId':_0x4409d1,'context':_0x2a219f,'unlinkedAt':_0x41ece9,'attributes':_0x165722,'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0x106),(_0x5ba8c0,{commentThreadId:_0x588f12,resolvedBy:_0xa3da01,resolvedAt:_0x2db144})=>{const _0x142595=_0x561c12,_0x5370c1=_0x50a8a6[_0x142595(0xfa)](_0x588f12);_0x5370c1&&_0x5370c1[_0x142595(0x109)]({'resolvedBy':_0xa3da01,'resolvedAt':_0x2db144,'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0x102),(_0x1a1dfb,{commentThreadId:_0x50555d})=>{const _0x5b8140=_0x561c12,_0x146b90=_0x50a8a6[_0x5b8140(0xfa)](_0x50555d);_0x146b90&&_0x146b90[_0x5b8140(0x126)]({'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0x108),(_0x2ec6c8,{commentThreadId:_0x56ee25})=>{const _0x36659f=_0x561c12,_0x818237=_0x50a8a6[_0x36659f(0xfa)](_0x56ee25);_0x818237&&_0x818237[_0x36659f(0x135)]({'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0xeb),(_0x1493a8,_0x2af294)=>{const _0x50fda8=_0x561c12,_0x439db9=_0x2af294[_0x50fda8(0x110)],_0x148a53=_0x50a8a6[_0x50fda8(0xfa)](_0x439db9);_0x148a53&&_0x148a53[_0x50fda8(0x11d)]({...U(_0x2af294),'isFromAdapter':!0x0});}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0xf3),(_0x989eb2,{commentThreadId:_0xfee904,commentId:_0x323049,content:_0x49f8db,attributes:_0x2ef317})=>{const _0x480ccc=_0x561c12,_0x1d44cc=_0x50a8a6[_0x480ccc(0xfa)](_0xfee904);if(_0x1d44cc){const _0x219ed9=_0x1d44cc[_0x480ccc(0xef)](_0x323049);_0x219ed9&&_0x219ed9[_0x480ccc(0x100)]({'content':_0x49f8db,'attributes':_0x2ef317,'isFromAdapter':!0x0});}}),this[_0x561c12(0x132)](_0x43ad31,_0x561c12(0xdd),(_0x1bac3d,{commentThreadId:_0x4f43ec,commentId:_0x208d15})=>{const _0x5e6c89=_0x561c12,_0x4f2f8f=_0x50a8a6[_0x5e6c89(0xfa)](_0x4f43ec);if(_0x4f2f8f){const _0x48d4f0=_0x4f2f8f[_0x5e6c89(0xef)](_0x208d15);_0x48d4f0&&_0x48d4f0[_0x5e6c89(0x135)]({'isFromAdapter':!0x0});}}),await this[_0x561c12(0xe5)](_0x3c6fdc);}[_0x4ca731(0x12b)](){const _0x3d090c=_0x4ca731;if(this[_0x3d090c(0x13e)]instanceof _0x20438c){const _0x375174=this[_0x3d090c(0x13e)][_0x3d090c(0xe4)][_0x3d090c(0x10d)](_0x3d090c(0xf1));this[_0x3d090c(0xe2)](_0x375174);}}[_0x4ca731(0xe2)](_0x17b476){const _0x1e60aa=_0x4ca731;if(!this[_0x1e60aa(0x137)][_0x1e60aa(0xec)](_0x17b476))throw new _0x19dc0d(_0x1e60aa(0x141),null,{'channelId':_0x17b476});this[_0x1e60aa(0x134)](_0x17b476)[_0x1e60aa(0xf8)](),this[_0x1e60aa(0x137)][_0x1e60aa(0x101)](_0x17b476);}async[_0x4ca731(0x139)](){const _0x51e997=_0x4ca731;for(const _0x55b673 of this[_0x51e997(0x137)][_0x51e997(0xe1)]())await this[_0x51e997(0xe5)](_0x55b673);if(this[_0x51e997(0x13e)]instanceof _0x20438c){const _0x49624f=this[_0x51e997(0x13e)][_0x51e997(0xe4)][_0x51e997(0x10d)](_0x51e997(0xf1)),_0x23c91f=this[_0x51e997(0x13e)][_0x51e997(0x13d)][_0x51e997(0x10d)](_0x5d1d02);_0x23c91f[_0x51e997(0x11f)](_0x49624f);const _0x1b1916=await this[_0x51e997(0x137)][_0x51e997(0x10d)](_0x49624f)[_0x51e997(0xf9)]();_0x23c91f[_0x51e997(0x122)](_0x49624f,_0x1b1916);}}async[_0x4ca731(0xe5)](_0x495d25){const _0x4fc05b=_0x4ca731,{connection:_0x53ec2a}=this[_0x4fc05b(0x13e)][_0x4fc05b(0x13d)][_0x4fc05b(0x10d)](_0x5c2693),_0x18bad5=this[_0x4fc05b(0x13e)][_0x4fc05b(0x13d)][_0x4fc05b(0x10d)](_0x4fc05b(0xde)),_0x47640c=this[_0x4fc05b(0x137)][_0x4fc05b(0x10d)](_0x495d25),_0x24d337=await _0x47640c[_0x4fc05b(0x12d)](_0x53ec2a);await this[_0x4fc05b(0x138)](_0x24d337);const _0x2a7fe9=new Set(Array[_0x4fc05b(0x114)](_0x18bad5[_0x4fc05b(0x130)]({'channelId':_0x495d25}),_0x68def0=>_0x68def0['id']));for(const _0x4be70c of _0x24d337)_0x4be70c[_0x4fc05b(0xed)]||_0x2a7fe9[_0x4fc05b(0x101)](_0x4be70c[_0x4fc05b(0x110)]);for(const _0x415383 of _0x2a7fe9)_0x18bad5[_0x4fc05b(0xfa)](_0x415383)[_0x4fc05b(0x135)]({'isFromAdapter':!0x0});for(const _0x4e81ca of _0x24d337){let _0x17f231=_0x18bad5[_0x4fc05b(0xfa)](_0x4e81ca[_0x4fc05b(0x110)]);const {commentThreadId:_0x3effdb,context:_0x3466b5,attributes:_0xd75eba,resolvedBy:_0x8da02f,resolvedAt:_0x5d5b69,unlinkedAt:_0x31867e,deletedAt:_0x138393}=_0x4e81ca;if(_0x138393)continue;_0x17f231||(_0x17f231=_0x18bad5[_0x4fc05b(0x118)]({'channelId':_0x495d25,'threadId':_0x3effdb,'context':_0x3466b5,'attributes':_0xd75eba||{},'resolvedBy':_0x8da02f,'resolvedAt':_0x5d5b69,'unlinkedAt':_0x31867e,'isFromAdapter':!0x0}));const _0x5065b1=new Set(Array[_0x4fc05b(0x114)](_0x17f231[_0x4fc05b(0xe0)],_0x51e824=>_0x51e824['id']));for(const _0x51e986 of _0x4e81ca[_0x4fc05b(0xe0)])_0x5065b1[_0x4fc05b(0x101)](_0x51e986[_0x4fc05b(0x12e)]);for(const _0x195603 of _0x5065b1)_0x17f231[_0x4fc05b(0xef)](_0x195603)[_0x4fc05b(0x135)]({'isFromAdapter':!0x0});for(const _0x48a20f of _0x4e81ca[_0x4fc05b(0xe0)]){const _0x255c89=_0x17f231[_0x4fc05b(0xef)](_0x48a20f[_0x4fc05b(0x12e)]);_0x255c89?_0x255c89[_0x4fc05b(0x123)]!==_0x48a20f[_0x4fc05b(0x123)]&&_0x255c89[_0x4fc05b(0x100)]({'content':_0x48a20f[_0x4fc05b(0x123)],'isFromAdapter':!0x0}):_0x17f231[_0x4fc05b(0x11d)](Object[_0x4fc05b(0x10c)](U(_0x48a20f),{'isFromAdapter':!0x0}));}}}[_0x4ca731(0x134)](_0x521615){const _0x56411b=_0x4ca731;if(!this[_0x56411b(0x137)][_0x56411b(0xec)](_0x521615))throw new _0x19dc0d(_0x56411b(0xf5),null,{'channelId':_0x521615});return this[_0x56411b(0x137)][_0x56411b(0x10d)](_0x521615);}async[_0x4ca731(0x138)](_0x2f293a){const _0x39ea0d=_0x4ca731,_0x1dc6e0=this[_0x39ea0d(0x13e)][_0x39ea0d(0x13d)][_0x39ea0d(0x10d)](_0x5883a0),{connection:_0x4cce19}=this[_0x39ea0d(0x13e)][_0x39ea0d(0x13d)][_0x39ea0d(0x10d)](_0x5c2693),_0x589d55=new Set();for(const {resolvedBy:_0x58e307,comments:_0x575a9c}of _0x2f293a){_0x58e307&&!_0x1dc6e0[_0x39ea0d(0x133)](_0x58e307)&&_0x589d55[_0x39ea0d(0x13b)](_0x58e307);for(const {userId:_0x5ebab7}of _0x575a9c)_0x1dc6e0[_0x39ea0d(0x133)](_0x5ebab7)||_0x589d55[_0x39ea0d(0x13b)](_0x5ebab7);}if(0x0===_0x589d55[_0x39ea0d(0xf0)])return;const _0x33c907=await _0x5e5957[_0x39ea0d(0x129)](_0x4cce19,Array[_0x39ea0d(0x114)](_0x589d55));for(const _0x53a1aa of _0x33c907)_0x1dc6e0[_0x39ea0d(0x133)](_0x53a1aa['id'])||_0x1dc6e0[_0x39ea0d(0x124)](_0x53a1aa);}}function _0x52ec(){const _0x2f9739=['message','cloud-services-internal-error:\x20Not\x20connected.','CloudServicesCommentsAdapter','from','315HAGCWA','22263219UKWboR','requires','addCommentThread','9392256RrpneW','867tjCYok','isPremiumPlugin','attributes','addComment','map','unregister','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','userId','register','content','addUser','mySessionId','reopen','10690baInTP','updateComment','getMany','catch','destroy','cloudservicescommentsadapter-connect-already-connected','connect','commentId','code','getCommentThreads','permissions','listenTo','getUser','_getService','remove','sessionAdd:','_services','_fetchMissingUsersForThreads','reconnect','removeCommentThread','add','init','plugins','context','resolvedAt','cloud-services-internal-error:\x20Request\x20timeout.','cloudservicescommentsadapter-disconnect-not-exist','startsWith','resolvedBy','commentRemoved','CommentsRepository','createdAt','comments','keys','_terminateService','set','config','_connectService','off','pluginName','resolveCommentThread','11868BCDPoT','commentThreadUpdated','commentAdded','has','deletedAt','setPermissions','getComment','size','collaboration.channelId','updateCommentThread','commentUpdated','3487743cDGfwj','cloudservicescommentsadapter-service-not-exist','Permissions','isOfficialPlugin','disconnect','getConnectedSessions','getCommentThread','404','90Sxngqj','10EPDMrB','CommentsService','adapter','update','delete','commentThreadReopened','_setUpService','commentThreadAdded','authorId','commentThreadResolved','addToReconnectionStack','commentThreadRemoved','resolve','reopenCommentThread','495876GdoOYy','assign','get','713912gOQwsm','removeComment','commentThreadId'];_0x52ec=function(){return _0x2f9739;};return _0x52ec();}function _0x5182(_0x3a2b00,_0x1861b4){const _0x52ec7e=_0x52ec();return _0x5182=function(_0x5182fb,_0x7af1c4){_0x5182fb=_0x5182fb-0xdc;let _0x5039b0=_0x52ec7e[_0x5182fb];return _0x5039b0;},_0x5182(_0x3a2b00,_0x1861b4);}export{s as CloudServicesCommentsAdapter};async function F(_0x4bff0f){const _0x315d76=_0x4ca731;if(_0x315d76(0xfb)!==_0x4bff0f[_0x315d76(0x12f)])throw _0x4bff0f;}function B(_0xfbc757){const _0x163d74=_0x4ca731;if((_0x58adf6=_0xfbc757)[_0x163d74(0x111)][_0x163d74(0x142)](_0x163d74(0x120))||_0x58adf6[_0x163d74(0x111)][_0x163d74(0x142)](_0x163d74(0x112))||_0x58adf6[_0x163d74(0x111)][_0x163d74(0x142)](_0x163d74(0x140)))return new Promise(()=>{});var _0x58adf6;throw _0xfbc757;}function U(_0x4fe594){const _0x230fca=_0x4ca731;return{'threadId':_0x4fe594[_0x230fca(0x110)],'commentId':_0x4fe594[_0x230fca(0x12e)],'content':_0x4fe594[_0x230fca(0x123)],'createdAt':_0x4fe594[_0x230fca(0xdf)],'authorId':_0x4fe594[_0x230fca(0x121)],'attributes':_0x4fe594[_0x230fca(0x11c)]||{}};}
23
+ const _0x36719e=_0x21e5;(function(_0x36fc57,_0x123b09){const _0xb8e87=_0x21e5,_0x1d2da0=_0x36fc57();while(!![]){try{const _0x4744fb=parseInt(_0xb8e87(0x217))/0x1*(parseInt(_0xb8e87(0x209))/0x2)+-parseInt(_0xb8e87(0x21f))/0x3*(-parseInt(_0xb8e87(0x22f))/0x4)+parseInt(_0xb8e87(0x237))/0x5*(-parseInt(_0xb8e87(0x224))/0x6)+-parseInt(_0xb8e87(0x200))/0x7+parseInt(_0xb8e87(0x223))/0x8+-parseInt(_0xb8e87(0x206))/0x9*(parseInt(_0xb8e87(0x23d))/0xa)+-parseInt(_0xb8e87(0x240))/0xb*(parseInt(_0xb8e87(0x1ff))/0xc);if(_0x4744fb===_0x123b09)break;else _0x1d2da0['push'](_0x1d2da0['shift']());}catch(_0x4695c9){_0x1d2da0['push'](_0x1d2da0['shift']());}}}(_0x2e6b,0x1cb31));import{Context as _0x24a958,ContextPlugin as _0xdeba2d}from'ckeditor5/src/core.js';import{CKEditorError as _0x18cbd9}from'ckeditor5/src/utils.js';import{Users as _0xa7afd6}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x58b088,User as _0x32e914}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5c2b68}from'../realtimecollaborativeediting/websocketgateway.js';function _0x2e6b(){const _0x31fb25=['reopen','60890DfLeyd','updateCommentThread','unregister','commentThreadRemoved','commentThreadResolved','getComment','30WDfSjh','addUser','authorId','99ZxrTkl','cloud-services-internal-error:\x20Not\x20connected.','deletedAt','cloudservicescommentsadapter-connect-already-connected','assign','resolvedAt','getUser','map','delete','plugins','_connectService','set','addComment','commentUpdated','size','getMany','404','getConnectedSessions','resolveCommentThread','connect','_setUpService','updateComment','collaboration.channelId','catch','content','disconnect','isOfficialPlugin','keys','init','register','attributes','setPermissions','adapter','removeComment','config','_fetchMissingUsersForThreads','commentAdded','commentThreadReopened','cloudservicescommentsadapter-service-not-exist','35616yRURlQ','10808wtPbLB','getCommentThreads','userId','sessionAdd:','commentRemoved','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','210069QmSqsy','commentThreadUpdated','commentThreadId','22ODpPyI','startsWith','update','getCommentThread','add','comments','permissions','resolve','CommentsRepository','resolvedBy','addToReconnectionStack','CommentsService','context','_getService','2391ESJNKM','remove','addCommentThread','from','code','_terminateService','listenTo','pluginName','2721XhvYfL','get','createdAt','commentId','638176WkLeKF','42tKgIsc','commentThreadAdded','requires','cloudservicescommentsadapter-disconnect-not-exist','isPremiumPlugin','removeCommentThread','mySessionId','cloud-services-internal-error:\x20Request\x20timeout.','reconnect','_services','CloudServicesCommentsAdapter','860mYmBkp','message','reopenCommentThread','has','Permissions','destroy','off'];_0x2e6b=function(){return _0x31fb25;};return _0x2e6b();}import{Sessions as _0x46f592}from'../realtimecollaborativeediting/sessions.js';class s extends _0xdeba2d{static [_0x36719e(0x214)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x58b088)());[_0x36719e(0x22d)];static get[_0x36719e(0x226)](){const _0x260ec1=_0x36719e;return[_0x5c2b68,_0x260ec1(0x211),_0x46f592,_0xa7afd6];}static get[_0x36719e(0x21e)](){const _0x3698d7=_0x36719e;return _0x3698d7(0x22e);}static get[_0x36719e(0x1f2)](){return!0x0;}static get[_0x36719e(0x228)](){return!0x0;}constructor(_0x36fc9b){const _0x301554=_0x36719e;super(_0x36fc9b),this[_0x301554(0x22d)]=new Map();}async[_0x36719e(0x1f4)](){const _0x255197=_0x36719e,_0x31d221=this[_0x255197(0x215)],_0x5829d2=_0x31d221[_0x255197(0x249)][_0x255197(0x220)](_0x255197(0x211));if(_0x31d221[_0x255197(0x249)][_0x255197(0x220)](_0x5c2b68)[_0x255197(0x213)](this),_0x5829d2[_0x255197(0x1f8)]={'addCommentThread':async({channelId:_0x39eb4b,threadId:_0x3b4734,comments:_0x46c914,resolvedAt:_0x22f02e,resolvedBy:_0x354a84,context:_0x4dad6c,attributes:_0x35b914})=>{const _0x2ad26f=_0x255197,_0x5c7ab1=await this[_0x2ad26f(0x216)](_0x39eb4b)[_0x2ad26f(0x219)]({'commentThreadId':_0x3b4734,'comments':_0x46c914[_0x2ad26f(0x247)](_0x16e9bd=>function(_0x4bbc98,_0x48a813,_0x55ae6b){const _0x132d2a=_0x2ad26f;return{'commentThreadId':_0x55ae6b,'commentId':_0x4bbc98[_0x132d2a(0x222)],'userId':_0x4bbc98[_0x132d2a(0x23f)],'content':_0x4bbc98[_0x132d2a(0x1f0)],'documentId':_0x48a813,'createdAt':_0x4bbc98[_0x132d2a(0x221)],'attributes':_0x4bbc98[_0x132d2a(0x1f6)]||{}};}(_0x16e9bd,_0x39eb4b,_0x3b4734)),'resolvedAt':_0x22f02e,'resolvedBy':_0x354a84,'context':_0x4dad6c,'attributes':_0x35b914})[_0x2ad26f(0x1ef)](A);return{'threadId':_0x5c7ab1[_0x2ad26f(0x208)],'comments':_0x5c7ab1[_0x2ad26f(0x20e)]};},'getCommentThread':async({channelId:_0x5f3061,threadId:_0x5dbd9a})=>{const _0xcf51fc=_0x255197,_0x500d82=await this[_0xcf51fc(0x216)](_0x5f3061)[_0xcf51fc(0x20c)](_0x5dbd9a)[_0xcf51fc(0x1ef)](A);return _0x500d82[_0xcf51fc(0x242)]?null:(await this[_0xcf51fc(0x1fb)]([_0x500d82]),{'threadId':_0x500d82[_0xcf51fc(0x208)],'comments':_0x500d82[_0xcf51fc(0x20e)][_0xcf51fc(0x247)](p),'context':_0x500d82[_0xcf51fc(0x215)],'resolvedAt':_0x500d82[_0xcf51fc(0x245)],'resolvedBy':_0x500d82[_0xcf51fc(0x212)],'attributes':_0x500d82[_0xcf51fc(0x1f6)]||{}});},'updateCommentThread':async({channelId:_0x30d459,threadId:_0x30f71a,context:_0x3c79f6,unlinkedAt:_0x523c14,attributes:_0x3e5122})=>this[_0x255197(0x216)](_0x30d459)[_0x255197(0x238)]({'commentThreadId':_0x30f71a,'context':_0x3c79f6,'attributes':_0x3e5122,'unlinkedAt':_0x523c14})[_0x255197(0x1ef)](v)[_0x255197(0x1ef)](A),'resolveCommentThread':async({channelId:_0x108110,threadId:_0x35286a})=>{const _0x5992f1=_0x255197,_0x4ae520=await this[_0x5992f1(0x216)](_0x108110)[_0x5992f1(0x1ea)](_0x35286a)[_0x5992f1(0x1ef)](v)[_0x5992f1(0x1ef)](A);return{'threadId':_0x4ae520[_0x5992f1(0x208)],'resolvedAt':_0x4ae520[_0x5992f1(0x245)],'resolvedBy':_0x4ae520[_0x5992f1(0x212)]};},'reopenCommentThread':async({channelId:_0xf0ef75,threadId:_0x19f456})=>this[_0x255197(0x216)](_0xf0ef75)[_0x255197(0x231)](_0x19f456)[_0x255197(0x1ef)](v)[_0x255197(0x1ef)](A),'removeCommentThread':({channelId:_0x2c0ae7,threadId:_0x3b8131})=>this[_0x255197(0x216)](_0x2c0ae7)[_0x255197(0x229)](_0x3b8131)[_0x255197(0x1ef)](v)[_0x255197(0x1ef)](A),'addComment':({channelId:_0x2a0700,threadId:_0xb45512,commentId:_0x1981cb,content:_0x2822c1,attributes:_0x1fce3f})=>this[_0x255197(0x216)](_0x2a0700)[_0x255197(0x24c)](_0xb45512,_0x1981cb,_0x2822c1,_0x1fce3f)[_0x255197(0x1ef)](A),'updateComment':({channelId:_0xf883ff,threadId:_0x50e842,commentId:_0x519611,content:_0x9f4dd9,attributes:_0x5119a5})=>this[_0x255197(0x216)](_0xf883ff)[_0x255197(0x1ed)](_0x50e842,_0x519611,_0x9f4dd9,_0x5119a5)[_0x255197(0x1ef)](v)[_0x255197(0x1ef)](A),'removeComment':({channelId:_0x525af8,threadId:_0x1b2e82,commentId:_0x2a44f1})=>this[_0x255197(0x216)](_0x525af8)[_0x255197(0x1f9)](_0x1b2e82,_0x2a44f1)[_0x255197(0x1ef)](v)[_0x255197(0x1ef)](A)},_0x31d221 instanceof _0x24a958){const _0x3949c9=_0x31d221[_0x255197(0x1fa)][_0x255197(0x220)](_0x255197(0x1ee)),_0xb3d683=_0x31d221[_0x255197(0x249)][_0x255197(0x220)](_0x46f592);await this[_0x255197(0x1ec)](_0x3949c9);const _0x5c28de=await this[_0x255197(0x22d)][_0x255197(0x220)](_0x3949c9)[_0x255197(0x1e9)]();this[_0x255197(0x21d)](_0xb3d683,_0x255197(0x203)+_0x3949c9,(_0x10a7f5,{session:_0x10e0c2})=>{const _0x3d9f74=_0x255197;_0x10e0c2['id']===_0xb3d683[_0x3d9f74(0x22a)]&&(_0x10a7f5[_0x3d9f74(0x235)](),this[_0x3d9f74(0x215)][_0x3d9f74(0x249)][_0x3d9f74(0x220)](_0x3d9f74(0x233))[_0x3d9f74(0x1f7)](_0x10e0c2[_0x3d9f74(0x20f)],_0x3949c9));}),_0xb3d683[_0x255197(0x1f5)](_0x3949c9,_0x5c28de);}}async[_0x36719e(0x1ec)](_0xb79498){const _0x7e1f94=_0x36719e;if(this[_0x7e1f94(0x22d)][_0x7e1f94(0x232)](_0xb79498))throw new _0x18cbd9(_0x7e1f94(0x243),null,{'channelId':_0xb79498});const _0x396bae=this[_0x7e1f94(0x215)][_0x7e1f94(0x249)][_0x7e1f94(0x220)](_0x7e1f94(0x211)),_0x214295=new s[(_0x7e1f94(0x214))](_0xb79498);this[_0x7e1f94(0x22d)][_0x7e1f94(0x24b)](_0xb79498,_0x214295),this[_0x7e1f94(0x21d)](_0x214295,_0x7e1f94(0x225),(_0x2c7627,_0x38e4f4)=>{const _0x1b8958=_0x7e1f94,{commentThreadId:_0x2f986c,documentId:_0x596e26,context:_0xba2b5b,attributes:_0x145351,resolvedAt:_0x5792c2,resolvedBy:_0x13667,comments:_0x1793e1}=_0x38e4f4;_0x396bae[_0x1b8958(0x20c)](_0x2f986c)||_0x396bae[_0x1b8958(0x219)]({'threadId':_0x2f986c,'channelId':_0x596e26,'comments':_0x1793e1?_0x1793e1[_0x1b8958(0x247)](p):[],'context':_0xba2b5b,'attributes':_0x145351,'resolvedAt':_0x5792c2,'resolvedBy':_0x13667,'isFromAdapter':!0x0});}),this[_0x7e1f94(0x21d)](_0x214295,_0x7e1f94(0x207),(_0x37f002,{commentThreadId:_0x3e6be0,documentId:_0x199086,context:_0x570f03,unlinkedAt:_0x210398,attributes:_0x307ae7})=>{const _0x528c0a=_0x7e1f94;_0x396bae[_0x528c0a(0x20c)](_0x3e6be0)&&_0x396bae[_0x528c0a(0x238)]({'threadId':_0x3e6be0,'channelId':_0x199086,'context':_0x570f03,'unlinkedAt':_0x210398,'attributes':_0x307ae7,'isFromAdapter':!0x0});}),this[_0x7e1f94(0x21d)](_0x214295,_0x7e1f94(0x23b),(_0x2c944d,{commentThreadId:_0x12984a,resolvedBy:_0x58512b,resolvedAt:_0x43b76d})=>{const _0x32adda=_0x7e1f94,_0x3c16e4=_0x396bae[_0x32adda(0x20c)](_0x12984a);_0x3c16e4&&_0x3c16e4[_0x32adda(0x210)]({'resolvedBy':_0x58512b,'resolvedAt':_0x43b76d,'isFromAdapter':!0x0});}),this[_0x7e1f94(0x21d)](_0x214295,_0x7e1f94(0x1fd),(_0x5ffd78,{commentThreadId:_0x128d65})=>{const _0x3ca243=_0x7e1f94,_0x133118=_0x396bae[_0x3ca243(0x20c)](_0x128d65);_0x133118&&_0x133118[_0x3ca243(0x236)]({'isFromAdapter':!0x0});}),this[_0x7e1f94(0x21d)](_0x214295,_0x7e1f94(0x23a),(_0xd02963,{commentThreadId:_0x539ec1})=>{const _0x2515da=_0x7e1f94,_0x4a8a25=_0x396bae[_0x2515da(0x20c)](_0x539ec1);_0x4a8a25&&_0x4a8a25[_0x2515da(0x218)]({'isFromAdapter':!0x0});}),this[_0x7e1f94(0x21d)](_0x214295,_0x7e1f94(0x1fc),(_0x5cda7d,_0x57cb8d)=>{const _0x48ee42=_0x7e1f94,_0x2b6dc0=_0x57cb8d[_0x48ee42(0x208)],_0x3ea7ae=_0x396bae[_0x48ee42(0x20c)](_0x2b6dc0);_0x3ea7ae&&_0x3ea7ae[_0x48ee42(0x24c)]({...p(_0x57cb8d),'isFromAdapter':!0x0});}),this[_0x7e1f94(0x21d)](_0x214295,_0x7e1f94(0x24d),(_0x56fcf4,{commentThreadId:_0x2e1eb2,commentId:_0x3055ad,content:_0x5115cb,attributes:_0x4b5498})=>{const _0x2eb6f0=_0x7e1f94,_0x24b364=_0x396bae[_0x2eb6f0(0x20c)](_0x2e1eb2);if(_0x24b364){const _0x278aee=_0x24b364[_0x2eb6f0(0x23c)](_0x3055ad);_0x278aee&&_0x278aee[_0x2eb6f0(0x20b)]({'content':_0x5115cb,'attributes':_0x4b5498,'isFromAdapter':!0x0});}}),this[_0x7e1f94(0x21d)](_0x214295,_0x7e1f94(0x204),(_0x478c96,{commentThreadId:_0x4edb65,commentId:_0x37ae9d})=>{const _0x38dfdb=_0x7e1f94,_0x4239b2=_0x396bae[_0x38dfdb(0x20c)](_0x4edb65);if(_0x4239b2){const _0x48c7e1=_0x4239b2[_0x38dfdb(0x23c)](_0x37ae9d);_0x48c7e1&&_0x48c7e1[_0x38dfdb(0x218)]({'isFromAdapter':!0x0});}}),await this[_0x7e1f94(0x24a)](_0xb79498);}[_0x36719e(0x234)](){const _0x189248=_0x36719e;if(this[_0x189248(0x215)]instanceof _0x24a958){const _0x333891=this[_0x189248(0x215)][_0x189248(0x1fa)][_0x189248(0x220)](_0x189248(0x1ee));this[_0x189248(0x21c)](_0x333891);}}[_0x36719e(0x21c)](_0x27fba5){const _0x1937d3=_0x36719e;if(!this[_0x1937d3(0x22d)][_0x1937d3(0x232)](_0x27fba5))throw new _0x18cbd9(_0x1937d3(0x227),null,{'channelId':_0x27fba5});this[_0x1937d3(0x216)](_0x27fba5)[_0x1937d3(0x1f1)](),this[_0x1937d3(0x22d)][_0x1937d3(0x248)](_0x27fba5);}async[_0x36719e(0x22c)](){const _0x45dc07=_0x36719e;for(const _0x531fc0 of this[_0x45dc07(0x22d)][_0x45dc07(0x1f3)]())await this[_0x45dc07(0x24a)](_0x531fc0);if(this[_0x45dc07(0x215)]instanceof _0x24a958){const _0x171021=this[_0x45dc07(0x215)][_0x45dc07(0x1fa)][_0x45dc07(0x220)](_0x45dc07(0x1ee)),_0x279ddc=this[_0x45dc07(0x215)][_0x45dc07(0x249)][_0x45dc07(0x220)](_0x46f592);_0x279ddc[_0x45dc07(0x239)](_0x171021);const _0x1e17b5=await this[_0x45dc07(0x22d)][_0x45dc07(0x220)](_0x171021)[_0x45dc07(0x1e9)]();_0x279ddc[_0x45dc07(0x1f5)](_0x171021,_0x1e17b5);}}async[_0x36719e(0x24a)](_0x17f4c7){const _0x49d0a7=_0x36719e,{connection:_0x4c9d93}=this[_0x49d0a7(0x215)][_0x49d0a7(0x249)][_0x49d0a7(0x220)](_0x5c2b68),_0x3db33d=this[_0x49d0a7(0x215)][_0x49d0a7(0x249)][_0x49d0a7(0x220)](_0x49d0a7(0x211)),_0x32a5c5=this[_0x49d0a7(0x22d)][_0x49d0a7(0x220)](_0x17f4c7),_0x69c840=await _0x32a5c5[_0x49d0a7(0x1eb)](_0x4c9d93);await this[_0x49d0a7(0x1fb)](_0x69c840);const _0x1731e8=new Set(Array[_0x49d0a7(0x21a)](_0x3db33d[_0x49d0a7(0x201)]({'channelId':_0x17f4c7}),_0x300a0d=>_0x300a0d['id']));for(const _0x41aee1 of _0x69c840)_0x41aee1[_0x49d0a7(0x242)]||_0x1731e8[_0x49d0a7(0x248)](_0x41aee1[_0x49d0a7(0x208)]);for(const _0xebb27 of _0x1731e8)_0x3db33d[_0x49d0a7(0x20c)](_0xebb27)[_0x49d0a7(0x218)]({'isFromAdapter':!0x0});for(const _0x34500c of _0x69c840){let _0x13f7df=_0x3db33d[_0x49d0a7(0x20c)](_0x34500c[_0x49d0a7(0x208)]);const {commentThreadId:_0x2af6c9,context:_0x418221,attributes:_0x46c4e5,resolvedBy:_0x479299,resolvedAt:_0xa181b1,unlinkedAt:_0x3fc922,deletedAt:_0x101dc5}=_0x34500c;if(_0x101dc5)continue;_0x13f7df||(_0x13f7df=_0x3db33d[_0x49d0a7(0x219)]({'channelId':_0x17f4c7,'threadId':_0x2af6c9,'context':_0x418221,'attributes':_0x46c4e5||{},'resolvedBy':_0x479299,'resolvedAt':_0xa181b1,'unlinkedAt':_0x3fc922,'isFromAdapter':!0x0}));const _0x2e823a=new Set(Array[_0x49d0a7(0x21a)](_0x13f7df[_0x49d0a7(0x20e)],_0x241a58=>_0x241a58['id']));for(const _0x4701f9 of _0x34500c[_0x49d0a7(0x20e)])_0x2e823a[_0x49d0a7(0x248)](_0x4701f9[_0x49d0a7(0x222)]);for(const _0x44de6c of _0x2e823a)_0x13f7df[_0x49d0a7(0x23c)](_0x44de6c)[_0x49d0a7(0x218)]({'isFromAdapter':!0x0});for(const _0x466f01 of _0x34500c[_0x49d0a7(0x20e)]){const _0x15c609=_0x13f7df[_0x49d0a7(0x23c)](_0x466f01[_0x49d0a7(0x222)]);_0x15c609?_0x15c609[_0x49d0a7(0x1f0)]!==_0x466f01[_0x49d0a7(0x1f0)]&&_0x15c609[_0x49d0a7(0x20b)]({'content':_0x466f01[_0x49d0a7(0x1f0)],'isFromAdapter':!0x0}):_0x13f7df[_0x49d0a7(0x24c)](Object[_0x49d0a7(0x244)](p(_0x466f01),{'isFromAdapter':!0x0}));}}}[_0x36719e(0x216)](_0x47672c){const _0x3d4adf=_0x36719e;if(!this[_0x3d4adf(0x22d)][_0x3d4adf(0x232)](_0x47672c))throw new _0x18cbd9(_0x3d4adf(0x1fe),null,{'channelId':_0x47672c});return this[_0x3d4adf(0x22d)][_0x3d4adf(0x220)](_0x47672c);}async[_0x36719e(0x1fb)](_0x2ecbf5){const _0x29561b=_0x36719e,_0x5bba47=this[_0x29561b(0x215)][_0x29561b(0x249)][_0x29561b(0x220)](_0xa7afd6),{connection:_0x15146f}=this[_0x29561b(0x215)][_0x29561b(0x249)][_0x29561b(0x220)](_0x5c2b68),_0x33bd8d=new Set();for(const {resolvedBy:_0x21d167,comments:_0xb10ef1}of _0x2ecbf5){_0x21d167&&!_0x5bba47[_0x29561b(0x246)](_0x21d167)&&_0x33bd8d[_0x29561b(0x20d)](_0x21d167);for(const {userId:_0x42e3fc}of _0xb10ef1)_0x5bba47[_0x29561b(0x246)](_0x42e3fc)||_0x33bd8d[_0x29561b(0x20d)](_0x42e3fc);}if(0x0===_0x33bd8d[_0x29561b(0x1e6)])return;const _0x2c9525=await _0x32e914[_0x29561b(0x1e7)](_0x15146f,Array[_0x29561b(0x21a)](_0x33bd8d));for(const _0x8bccf of _0x2c9525)_0x5bba47[_0x29561b(0x246)](_0x8bccf['id'])||_0x5bba47[_0x29561b(0x23e)](_0x8bccf);}}export{s as CloudServicesCommentsAdapter};async function v(_0x39cea7){const _0x470f70=_0x36719e;if(_0x470f70(0x1e8)!==_0x39cea7[_0x470f70(0x21b)])throw _0x39cea7;}function A(_0x92ee4){const _0x3c7f7b=_0x36719e;if((_0x30918b=_0x92ee4)[_0x3c7f7b(0x230)][_0x3c7f7b(0x20a)](_0x3c7f7b(0x205))||_0x30918b[_0x3c7f7b(0x230)][_0x3c7f7b(0x20a)](_0x3c7f7b(0x241))||_0x30918b[_0x3c7f7b(0x230)][_0x3c7f7b(0x20a)](_0x3c7f7b(0x22b)))return new Promise(()=>{});var _0x30918b;throw _0x92ee4;}function _0x21e5(_0x376a59,_0x123784){const _0x2e6bbd=_0x2e6b();return _0x21e5=function(_0x21e52c,_0x2c42d5){_0x21e52c=_0x21e52c-0x1e6;let _0x477f23=_0x2e6bbd[_0x21e52c];return _0x477f23;},_0x21e5(_0x376a59,_0x123784);}function p(_0x16e977){const _0x5679c8=_0x36719e;return{'threadId':_0x16e977[_0x5679c8(0x208)],'commentId':_0x16e977[_0x5679c8(0x222)],'content':_0x16e977[_0x5679c8(0x1f0)],'createdAt':_0x16e977[_0x5679c8(0x221)],'authorId':_0x16e977[_0x5679c8(0x202)],'attributes':_0x16e977[_0x5679c8(0x1f6)]||{}};}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17c9b6=_0x1170;(function(_0x51937e,_0x24abee){const _0x4b76f7=_0x1170,_0x94d483=_0x51937e();while(!![]){try{const _0x56d541=-parseInt(_0x4b76f7(0x17e))/0x1+parseInt(_0x4b76f7(0x1fc))/0x2+-parseInt(_0x4b76f7(0x10b))/0x3+parseInt(_0x4b76f7(0x1bf))/0x4+parseInt(_0x4b76f7(0x1ee))/0x5*(parseInt(_0x4b76f7(0x1f0))/0x6)+-parseInt(_0x4b76f7(0x1d0))/0x7+-parseInt(_0x4b76f7(0x11b))/0x8*(-parseInt(_0x4b76f7(0x198))/0x9);if(_0x56d541===_0x24abee)break;else _0x94d483['push'](_0x94d483['shift']());}catch(_0x350ec7){_0x94d483['push'](_0x94d483['shift']());}}}(_0x4b63,0x3a6c1));import{Plugin as _0x52b0ee,PendingActions as _0x211d59}from'ckeditor5/src/core.js';import{CKEditorError as _0x4506b4,version as _0x5830f6,uid as _0x536e6d}from'ckeditor5/src/utils.js';import{Notification as _0x3c0eec}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x3d9921,NoOperation as _0x4034bf,InsertOperation as _0x889eb6,MarkerOperation as _0x467f55,RootAttributeOperation as _0x14d0aa,OperationFactory as _0x370286,History as _0x22460a}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x409934}from'./websocketgateway.js';import{Sessions as _0x2d3dc6}from'./sessions.js';import{UserMarkers as _0x3a849f}from'./usermarkers.js';import{getTranslation as _0x203777}from'../common-translations.js';import{Compressor as _0x2e2892}from'@ckeditor/ckeditor5-operations-compressor';function _0x1170(_0x93290b,_0x23b796){const _0x4b63f4=_0x4b63();return _0x1170=function(_0x117011,_0x3b8e51){_0x117011=_0x117011-0x107;let _0x382b88=_0x4b63f4[_0x117011];return _0x382b88;},_0x1170(_0x93290b,_0x23b796);}function _0x4b63(){const _0x4aff5b=['compress','realtimecollaborationclient-init-session-connection-error','getOperationAuthor','_lastSyncedOperationId','serverHistory','_crash','_fetchMissingUsers','CollaborativeEditingService','_handleReceivedOperations','isEnabled','_authorId','addUser','_isPendingUpdate','disconnect','sessionAdd:','editor','rtc-destroyed','view','wasUndone','userId','high','unregister','isOfficialPlugin','metadata','getDocumentDetails','config','newRange','state','realtimecollaborationclient','realtimecollaborationclient-handleserverresponse','requires','locale','_hasSynchronizationProblem','_saveOperationInBuffer','push','PENDING_ACTION_SENDING_DATA','change:range','affectedSelectable','getUser','plugins','register','cs:removeUser','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','type','entries','_getOperationsFromInitData','toJSON','lastDocumentSession','wereChangesApplied','attributes','_setPendingAction','_bufferedOperations','_compressor','realtimecollaborationclient-init-connection-failed','from','realtimecollaborationclient-error','_knownRootNames','lastOperationId','data','cloudServices.bundleVersion','remove','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.','$root','Permissions','get','marker','_handleInitialConnectionData','_isEditingAllowed','_pendingAction','_sendBufferedOperationsDelayId','lastSyncVersion','sessionId','connected','bind','change:_isEditingAllowed','offset','string','currentDocumentSession','targetPosition','has','_sendBufferedOperationsDelayed','287065SNoKye','_setUpDataInit','_loadRoot','addToReconnectionStack','start','addRootAttribute','initData','fromJSON','rootsAttributes','RealTimeCollaborationClient','_connectAfterSessionHasBeenFlushed','__className','model','set','isUndoneOperation','forEach','stopListening','applyOperation','cloud-services-internal-error:\x20Request\x20timeout.','createPositionFromPath','rootName','round','_bufferRootLoad','_baseBufferDelay','createdAt','stop','9GbLRzx','getOperations','clone','multi-root-editor-root-attributes-no-root','size','code','realtimecollaborationclient-init-non-existent-root','editing','baseVersion','operationsReceived','_updateServerHistory','_lastServerVersion','real-time-collaboration','reconnection:\x20flushed\x20session','history','sessionCreatedAt','_handleServerResponse','isReadOnly','Notification','404','add','error','document','then','_isLoaded','reconnect','ready','sendOperations','lastOperationAcceptedAt','showWarning','getRoot','map','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','getConnectedSessions','removeFromReconnectionStack','destroy','Synchronization\x20issue','return','startsWith','8988oqyHlt','CommentsOnly','change:hasDomSelection','collaboration.channelId','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.','_initThrowingOnDataSet','connect','move','realtimecollaborationclient-init-service-incorrect-server-operation','_knownOperations','slice','_addKnownRoot','_currentBufferDelay','rtc-offline','position','_document','document:write','256354qbVWyx','realtimecollaborationclient-init-service-internal-error','_handleSendingSelectionMarkers','_refreshUserSelectionMarkers','suppressErrorInCollaboration','isDocumentOperation','directChange','_shouldSendUpdate','reset','parse','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','affectsData','fire','createRoot','markers','finally','collaboration','define','_channelId','getMany','setIdForTheLastOperation','filter','realtimecollaborationclient-init-document-already-initialized','_shouldSendSelectionUpdate','_isAttached','createRange','createPositionAt','permissions','_offset','init','18705vJUhKq','decompress','318emzIUO','_ignoredOperations','catch','409','_operationToId','change:_isPendingUpdate','_handleExternalOperations','cloudDocumentVersion','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','connection','_compressOperations','getIdOfTheLastOperation','752664RAsMUc','_clearPendingAction','_isDisconnection','end','pluginName','message','setPermissions','disconnected','_applyOperationsSet','_getAffectedRoot','cloud-services-internal-error:\x20Not\x20connected.','realtimecollaborationclient-sendbufferedoperations','_decompressOperations','_waitUntilSynced','batch','enableReadOnlyMode','_isConnected','root','selection','_initSessionsHandling','467688fiqJYW','enqueueChange','keys','differ','loadRoot','collaboration-missing-channelid','_sendBufferedOperations','addOperation','includes','mySessionId','InsertOperation','channelSessions','off','insert','listenTo','_handleReconnectionError','1136224qNxgmi','path','addRoot','_handleReconnectionResponse','_service','isPremiumPlugin','disableReadOnlyMode','_disconnectionOperations','_hasSelectionChanged','_connectService','version','_isInit','_disconnectService','createUserMarkerOperations','apply','length','_operationIdentifier','roots'];_0x4b63=function(){return _0x4aff5b;};return _0x4b63();}import{Users as _0x571135}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x15c739,CollaborativeEditingService as _0x320a86}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let X=0x1;class l extends _0x52b0ee{static [_0x17c9b6(0x134)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x320a86)());[_0x17c9b6(0x1ec)];[_0x17c9b6(0x174)];[_0x17c9b6(0x131)];[_0x17c9b6(0x1e2)];[_0x17c9b6(0x11f)];[_0x17c9b6(0x1ce)];[_0x17c9b6(0x161)];[_0x17c9b6(0x160)];[_0x17c9b6(0x1c8)];[_0x17c9b6(0x165)];[_0x17c9b6(0x171)];[_0x17c9b6(0x123)];[_0x17c9b6(0x172)];[_0x17c9b6(0x195)];[_0x17c9b6(0x1cb)];[_0x17c9b6(0x130)];[_0x17c9b6(0x122)];[_0x17c9b6(0x12b)];static get[_0x17c9b6(0x14b)](){return[_0x409934,_0x2d3dc6,_0x3a849f,_0x211d59,_0x571135,_0x3c0eec];}static get[_0x17c9b6(0x200)](){const _0x26cc84=_0x17c9b6;return _0x26cc84(0x187);}static get[_0x17c9b6(0x143)](){return!0x0;}static get[_0x17c9b6(0x120)](){return!0x0;}get[_0x17c9b6(0x1f7)](){const _0x58a4d3=_0x17c9b6;return this[_0x58a4d3(0x1a3)]+this[_0x58a4d3(0x1ec)];}get[_0x17c9b6(0x1a3)](){const _0xf4a9a5=_0x17c9b6;return this[_0xf4a9a5(0x131)][_0xf4a9a5(0x125)]-this[_0xf4a9a5(0x1ec)];}get[_0x17c9b6(0x173)](){const _0x1054f0=_0x17c9b6,_0x252145=this[_0x1054f0(0x131)][_0x1054f0(0x199)]();for(let _0x119696=_0x252145[_0x1054f0(0x12a)]-0x1;_0x119696>=0x0;_0x119696--){const _0x190d17=_0x252145[_0x119696];if(!this[_0x1054f0(0x122)][_0x1054f0(0x17c)](_0x190d17))return _0x190d17[_0x1054f0(0x1a0)]+0x1-this[_0x1054f0(0x1ec)];}return 0x0;}constructor(_0x291360){const _0xf58919=_0x17c9b6;if(super(_0x291360),this[_0xf58919(0x1ec)]=0x0,this[_0xf58919(0x174)]=null,this[_0xf58919(0x131)]=new _0x22460a(),this[_0xf58919(0x13c)][_0xf58919(0x146)][_0xf58919(0x1e1)](_0xf58919(0x1e0),{}),this[_0xf58919(0x1e2)]=this[_0xf58919(0x13c)][_0xf58919(0x146)][_0xf58919(0x16d)](_0xf58919(0x1c2)),!this[_0xf58919(0x1e2)])throw new _0x4506b4(_0xf58919(0x110),this);const _0x931c8=_0x291360[_0xf58919(0x146)][_0xf58919(0x16d)](_0xf58919(0x168))||_0x5830f6;this[_0xf58919(0x11f)]=new l[(_0xf58919(0x134))](_0x931c8,this[_0xf58919(0x1e2)]),this[_0xf58919(0x1ce)]=this[_0xf58919(0x13c)][_0xf58919(0x18a)][_0xf58919(0x1ae)],this[_0xf58919(0x161)]=new _0x2e2892(),this[_0xf58919(0x160)]=[],this[_0xf58919(0x1c8)]=new WeakSet(),this[_0xf58919(0x165)]=new Set(),this[_0xf58919(0x18b)](_0xf58919(0x139),!0x1),this[_0xf58919(0x18b)](_0xf58919(0x14d),!0x1),this[_0xf58919(0x171)]=null,this[_0xf58919(0x123)]=!0x1,this[_0xf58919(0x172)]=null,this[_0xf58919(0x195)]=0x12c,this[_0xf58919(0x1cb)]=this[_0xf58919(0x195)],this[_0xf58919(0x130)]=null,this[_0xf58919(0x122)]=new WeakSet(),this[_0xf58919(0x12b)]=new tt(this[_0xf58919(0x122)]);}[_0x17c9b6(0x1ed)](){const _0x2099e9=_0x17c9b6,_0x382f5e=this[_0x2099e9(0x13c)],_0x4f9221=_0x382f5e[_0x2099e9(0x154)][_0x2099e9(0x16d)](_0x571135),_0x2a0a9e=_0x382f5e[_0x2099e9(0x154)][_0x2099e9(0x16d)](_0x409934);this[_0x2099e9(0x119)](_0x4f9221,_0x2099e9(0x12f),(_0xdac881,_0x11e3cc)=>{const _0x6c0709=_0x2099e9,_0x59cd75=_0x11e3cc[0x0];_0x59cd75[_0x6c0709(0x137)]&&(_0xdac881[_0x6c0709(0x1bd)]=_0x4f9221[_0x6c0709(0x153)](_0x59cd75[_0x6c0709(0x137)]),_0xdac881[_0x6c0709(0x197)]()),null===_0x59cd75[_0x6c0709(0x137)]&&(_0xdac881[_0x6c0709(0x1bd)]=null,_0xdac881[_0x6c0709(0x197)]());},{'priority':_0x2099e9(0x141)}),this[_0x2099e9(0x119)](_0x382f5e[_0x2099e9(0x18a)][_0x2099e9(0x1ae)][_0x2099e9(0x109)],_0x2099e9(0x151),(_0x41e35f,_0x31fbad)=>{const _0x15ac46=_0x2099e9;_0x31fbad[_0x15ac46(0x1d6)]&&this[_0x15ac46(0x1d3)]();}),this[_0x2099e9(0x119)](_0x382f5e[_0x2099e9(0x19f)][_0x2099e9(0x13e)],_0x2099e9(0x1c1),()=>{const _0x237f1e=_0x2099e9;this[_0x237f1e(0x1d3)]();}),this[_0x2099e9(0x1c4)](),_0x382f5e[_0x2099e9(0x18a)]['on'](_0x2099e9(0x18f),(_0x3da712,_0xf418e8)=>{const _0x5ede41=_0x2099e9,_0x327348=_0xf418e8[0x0];_0x327348[_0x5ede41(0x1d5)]&&(this[_0x5ede41(0x14e)](_0x327348),this[_0x5ede41(0x1d7)]()&&this[_0x5ede41(0x17d)]());}),this[_0x2099e9(0x17f)](),this[_0x2099e9(0x176)](_0x2099e9(0x170))['to'](_0x2a0a9e,_0x2099e9(0x148),this,_0x2099e9(0x14d),(_0x330010,_0x4561ce)=>_0x2099e9(0x175)===_0x330010&&!_0x4561ce),this['on'](_0x2099e9(0x177),()=>{const _0x3970c0=_0x2099e9;this[_0x3970c0(0x170)]?_0x382f5e[_0x3970c0(0x121)](_0x3970c0(0x1cc)):_0x382f5e[_0x3970c0(0x20b)](_0x3970c0(0x1cc));}),this[_0x2099e9(0x170)]?_0x382f5e[_0x2099e9(0x121)](_0x2099e9(0x1cc)):_0x382f5e[_0x2099e9(0x20b)](_0x2099e9(0x1cc)),this[_0x2099e9(0x18b)](_0x2099e9(0x107),!0x1);}async[_0x17c9b6(0x1b1)](){const _0x353bcc=_0x17c9b6,_0x16a862=this[_0x353bcc(0x13c)][_0x353bcc(0x154)][_0x353bcc(0x16d)](_0x2d3dc6),_0x286d18=this[_0x353bcc(0x13c)][_0x353bcc(0x154)][_0x353bcc(0x16d)](_0x409934);try{this[_0x353bcc(0x139)]=!0x0,_0x16a862[_0x353bcc(0x142)](this[_0x353bcc(0x1e2)]);const _0x536946=await this[_0x353bcc(0x11f)][_0x353bcc(0x1b1)](_0x286d18[_0x353bcc(0x1f9)],this[_0x353bcc(0x173)]);await this[_0x353bcc(0x11e)](_0x536946)&&(this[_0x353bcc(0x139)]=!0x1,this[_0x353bcc(0x1fd)]());const _0x7954cf=await this[_0x353bcc(0x11f)][_0x353bcc(0x1b9)]();_0x16a862[_0x353bcc(0x155)](this[_0x353bcc(0x1e2)],_0x7954cf),this[_0x353bcc(0x1d2)](),this[_0x353bcc(0x107)]=!0x0;}catch(_0x2854df){if(function(_0x26d31f){const _0xf0fdb=_0x353bcc;return _0xf0fdb(0x1ab)===_0x26d31f[_0xf0fdb(0x19d)];}(_0x2854df)&&this[_0x353bcc(0x174)])await this[_0x353bcc(0x188)]();else{if(function(_0xb009c3){const _0x3c2e63=_0x353bcc;return _0x3c2e63(0x1f3)===_0xb009c3[_0x3c2e63(0x19d)];}(_0x2854df)){const _0x406498=_0x203777(this[_0x353bcc(0x13c)][_0x353bcc(0x14c)],_0x353bcc(0x157));this[_0x353bcc(0x11a)](_0x406498);}else{if(!(_0x2854df instanceof Y))throw _0x2854df;this[_0x353bcc(0x11a)]();}}}}[_0x17c9b6(0x1bb)](){const _0xd81a57=_0x17c9b6,_0x5bee5f=this[_0xd81a57(0x13c)][_0xd81a57(0x154)][_0xd81a57(0x16d)](_0x409934),_0xe4aec=this[_0xd81a57(0x13c)][_0xd81a57(0x154)][_0xd81a57(0x16d)](_0x2d3dc6);this[_0xd81a57(0x13c)][_0xd81a57(0x20b)](_0xd81a57(0x13d)),_0xe4aec[_0xd81a57(0x116)][_0xd81a57(0x17c)](this[_0xd81a57(0x1e2)])&&_0xe4aec[_0xd81a57(0x142)](this[_0xd81a57(0x1e2)]),_0x5bee5f[_0xd81a57(0x1ba)](this),this[_0xd81a57(0x127)](),super[_0xd81a57(0x1bb)]();}async[_0x17c9b6(0x11e)](_0x40139e){const _0x1a26e9=_0x17c9b6;if(this[_0x1a26e9(0x174)]!==_0x40139e[_0x1a26e9(0x174)]&&this[_0x1a26e9(0x130)]!==_0x40139e[_0x1a26e9(0x166)])throw new Y();return this[_0x1a26e9(0x174)]=_0x40139e[_0x1a26e9(0x174)],this[_0x1a26e9(0x1a8)]([],{..._0x40139e,'wereChangesApplied':!0x1,'data':_0x40139e[_0x1a26e9(0x167)]},_0x1a26e9(0x1b1));}async[_0x17c9b6(0x124)](_0x9fd2ae,_0x6f4b1a=!0x1){const _0x37219e=_0x17c9b6,{connection:_0x44227c}=this[_0x37219e(0x13c)][_0x37219e(0x154)][_0x37219e(0x16d)](_0x409934);l[_0x37219e(0x134)][_0x37219e(0x1b9)](_0x44227c,this[_0x37219e(0x1e2)])[_0x37219e(0x1af)](_0x27f524=>this[_0x37219e(0x10a)](_0x27f524))[_0x37219e(0x1f2)](_0x5963e8=>{const _0x45ebfc=_0x37219e;this[_0x45ebfc(0x132)](_0x45ebfc(0x12e),_0x5963e8);}),this[_0x37219e(0x119)](this[_0x37219e(0x11f)],_0x37219e(0x1a1),this[_0x37219e(0x135)][_0x37219e(0x176)](this)),this[_0x37219e(0x119)](this[_0x37219e(0x11f)],_0x37219e(0x1ad),(_0x271a73,_0x152a68)=>{const _0x5403e7=_0x37219e;this[_0x5403e7(0x132)](_0x5403e7(0x1d1),_0x152a68);}),this[_0x37219e(0x119)](this[_0x37219e(0x11f)],_0x37219e(0x203),()=>{const _0xcc4613=_0x37219e;this[_0xcc4613(0x107)]=!0x1;});const _0x2c432a=this[_0x37219e(0x12b)][_0x37219e(0x1fb)](_0x9fd2ae);this[_0x37219e(0x139)]=!0x0;const _0x31c5ee=await this[_0x37219e(0x11f)][_0x37219e(0x1c5)](_0x44227c,this[_0x37219e(0x1fa)](_0x9fd2ae),_0x2c432a);if(this[_0x37219e(0x174)]=_0x31c5ee[_0x37219e(0x174)],_0x6f4b1a){if(!_0x31c5ee[_0x37219e(0x15d)])return void this[_0x37219e(0x11a)]();this[_0x37219e(0x139)]=!0x1,this[_0x37219e(0x1fd)](),this[_0x37219e(0x131)][_0x37219e(0x1d8)](),this[_0x37219e(0x1ec)]=_0x31c5ee[_0x37219e(0x178)],this[_0x37219e(0x131)][_0x37219e(0x125)]=this[_0x37219e(0x1ec)],await this[_0x37219e(0x1a8)](_0x9fd2ae,_0x31c5ee,_0x37219e(0x1a5));}else await this[_0x37219e(0x16f)](_0x31c5ee,_0x9fd2ae);this[_0x37219e(0x1d2)](),this[_0x37219e(0x107)]=!0x0;}[_0x17c9b6(0x1d2)](){const _0x425677=_0x17c9b6,_0x399b7e=this[_0x425677(0x13c)][_0x425677(0x154)][_0x425677(0x16d)](_0x2d3dc6),_0x544c9d=this[_0x425677(0x13c)][_0x425677(0x154)][_0x425677(0x16d)](_0x3a849f),_0x4a835a=_0x399b7e[_0x425677(0x116)][_0x425677(0x16d)](this[_0x425677(0x1e2)]);_0x4a835a&&_0x4a835a[_0x425677(0x12a)]>0x1?_0x544c9d[_0x425677(0x128)]():this[_0x425677(0x119)](_0x399b7e,_0x425677(0x13b)+this[_0x425677(0x1e2)],()=>{const _0x528cac=_0x425677;0x2===_0x399b7e[_0x528cac(0x116)][_0x528cac(0x16d)](this[_0x528cac(0x1e2)])[_0x528cac(0x12a)]&&_0x544c9d[_0x528cac(0x128)]();});}async[_0x17c9b6(0x135)](_0x38ed53,_0x1d1c16,_0x712375,_0x1d6986){const _0x2f4087=_0x17c9b6;if(!this[_0x2f4087(0x139)]&&this[_0x2f4087(0x1ce)][_0x2f4087(0x125)]==_0x1d1c16){const _0x232231=this[_0x2f4087(0x208)](_0x712375,_0x1d6986);await this[_0x2f4087(0x133)](_0x232231),this[_0x2f4087(0x1f6)](_0x232231,_0x1d1c16,_0x712375[_0x2f4087(0x166)])||this[_0x2f4087(0x132)](_0x2f4087(0x1c7));}}async[_0x17c9b6(0x188)](){const _0x3ed822=_0x17c9b6;this[_0x3ed822(0x127)]();const {locale:_0x3852a9}=this[_0x3ed822(0x13c)];let _0x4646e4;try{_0x4646e4=await this[_0x3ed822(0x11f)][_0x3ed822(0x145)]();}catch{const _0x5b819c=_0x203777(_0x3852a9,_0x3ed822(0x1b8));return void this[_0x3ed822(0x11a)](_0x5b819c);}const _0x5666c7=_0x4646e4[_0x3ed822(0x17a)]||_0x4646e4[_0x3ed822(0x15c)];if(this[_0x3ed822(0x130)]!==_0x5666c7[_0x3ed822(0x166)]){const _0x2494b1=_0x203777(_0x3852a9,_0x3ed822(0x1c3));return void this[_0x3ed822(0x11a)](_0x2494b1);}await this[_0x3ed822(0x124)](this[_0x3ed822(0x13c)][_0x3ed822(0x18a)][_0x3ed822(0x1ae)][_0x3ed822(0x1a6)][_0x3ed822(0x199)](),!0x0);}[_0x17c9b6(0x127)](){const _0x254a61=_0x17c9b6;this[_0x254a61(0x11f)][_0x254a61(0x13a)](),this[_0x254a61(0x160)]=[],clearTimeout(this[_0x254a61(0x172)]),this[_0x254a61(0x18e)](this[_0x254a61(0x11f)]);}[_0x17c9b6(0x10a)](_0x88296b){const _0x46ac39=_0x17c9b6,_0x3e143e=this[_0x46ac39(0x13c)][_0x46ac39(0x154)][_0x46ac39(0x16d)](_0x2d3dc6);this[_0x46ac39(0x119)](_0x3e143e,_0x46ac39(0x13b)+this[_0x46ac39(0x1e2)],(_0x10f095,{session:_0x959c9})=>{const _0x587baf=_0x46ac39;if(_0x959c9['id']===_0x3e143e[_0x587baf(0x114)]){_0x10f095[_0x587baf(0x117)]();const _0x59cf3f=this[_0x587baf(0x13c)][_0x587baf(0x154)][_0x587baf(0x17c)](_0x587baf(0x1c0))&&this[_0x587baf(0x13c)][_0x587baf(0x154)][_0x587baf(0x16d)](_0x587baf(0x1c0));let _0x5841b3=_0x959c9[_0x587baf(0x1eb)];_0x59cf3f&&_0x59cf3f[_0x587baf(0x136)]&&(_0x5841b3=_0x5841b3[_0x587baf(0x1e5)](_0x421df8=>_0x587baf(0x1cf)!==_0x421df8)),this[_0x587baf(0x13c)][_0x587baf(0x154)][_0x587baf(0x16d)](_0x587baf(0x16c))[_0x587baf(0x202)](_0x5841b3,this[_0x587baf(0x1e2)]);}}),_0x3e143e[_0x46ac39(0x155)](this[_0x46ac39(0x1e2)],_0x88296b);}[_0x17c9b6(0x1c4)](){const _0x299365=_0x17c9b6,_0x2bcd81=this[_0x299365(0x13c)][_0x299365(0x167)][_0x299365(0x18b)];this[_0x299365(0x13c)][_0x299365(0x167)][_0x299365(0x18b)]=(..._0x6adaee)=>{const _0x27023c=_0x299365;if(!_0x6adaee[_0x6adaee[_0x27023c(0x12a)]-0x1][_0x27023c(0x1d4)])throw new _0x4506b4(_0x27023c(0x1da),this);_0x2bcd81[_0x27023c(0x129)](this[_0x27023c(0x13c)][_0x27023c(0x167)],_0x6adaee);};}[_0x17c9b6(0x17f)](){const _0x24e4dd=_0x17c9b6;this[_0x24e4dd(0x13c)][_0x24e4dd(0x167)]['on'](_0x24e4dd(0x1ed),(_0x43d014,[_0x25c8ef])=>{const _0x3c65a1=_0x24e4dd;if(this[_0x3c65a1(0x1ce)][_0x3c65a1(0x125)])throw new _0x4506b4(_0x3c65a1(0x1e6),this);_0x43d014[_0x3c65a1(0x197)](),this[_0x3c65a1(0x15f)]();const _0x48c15e=this[_0x3c65a1(0x13c)][_0x3c65a1(0x146)][_0x3c65a1(0x16d)](_0x3c65a1(0x186)),_0x13db9f=this[_0x3c65a1(0x15a)](_0x25c8ef,_0x48c15e);0x0==_0x13db9f[_0x3c65a1(0x12a)]&&_0x13db9f[_0x3c65a1(0x14f)](new _0x4034bf(0x0)),_0x43d014[_0x3c65a1(0x1bd)]=this[_0x3c65a1(0x124)](_0x13db9f)[_0x3c65a1(0x1af)](()=>{const _0x5b6149=_0x3c65a1;this[_0x5b6149(0x13c)][_0x5b6149(0x154)][_0x5b6149(0x16d)](_0x409934)[_0x5b6149(0x181)](this),this[_0x5b6149(0x13c)][_0x5b6149(0x167)][_0x5b6149(0x1dc)](_0x5b6149(0x1b2));})[_0x3c65a1(0x1f2)](_0x482818=>this[_0x3c65a1(0x132)](_0x3c65a1(0x162),_0x482818))[_0x3c65a1(0x1df)](()=>this[_0x3c65a1(0x1fd)]());},{'priority':_0x24e4dd(0x141)}),this[_0x24e4dd(0x13c)]['on'](_0x24e4dd(0x10f),async(_0x464281,[_0x57d92,_0x39ca7d])=>{const _0x4a0210=_0x24e4dd;_0x464281[_0x4a0210(0x197)]();const _0x489c40=this[_0x4a0210(0x13c)][_0x4a0210(0x18a)][_0x4a0210(0x1ae)][_0x4a0210(0x1b6)](_0x57d92);if(!this[_0x4a0210(0x165)][_0x4a0210(0x17c)](_0x57d92)){const _0x3899a5=_0x39ca7d&&_0x39ca7d[_0x4a0210(0x167)]?_0x39ca7d[_0x4a0210(0x167)]:'',_0x3ed8d5=_0x39ca7d&&_0x39ca7d[_0x4a0210(0x15e)]?_0x39ca7d[_0x4a0210(0x15e)]:{};await this[_0x4a0210(0x180)](_0x57d92,_0x3899a5,_0x3ed8d5);}this[_0x4a0210(0x13c)][_0x4a0210(0x18a)][_0x4a0210(0x10c)]({'isUndoable':!0x1},()=>{const _0x804970=_0x4a0210;_0x489c40[_0x804970(0x1b0)]=!0x0,this[_0x804970(0x13c)][_0x804970(0x18a)][_0x804970(0x1ae)][_0x804970(0x10e)][_0x804970(0x194)](_0x489c40);});},{'priority':_0x24e4dd(0x141)});}async[_0x17c9b6(0x133)](_0x2dd43a){const _0x48f882=_0x17c9b6,_0x310413=this[_0x48f882(0x13c)][_0x48f882(0x154)][_0x48f882(0x16d)](_0x571135),{connection:_0x5d2f56}=this[_0x48f882(0x13c)][_0x48f882(0x154)][_0x48f882(0x16d)](_0x409934),_0x4d7e97=new Set();for(const _0x219f89 of _0x2dd43a){const _0x4ad4f7=_0x219f89[_0x48f882(0x137)];_0x4ad4f7&&!_0x310413[_0x48f882(0x153)](_0x4ad4f7)&&_0x4d7e97[_0x48f882(0x1ac)](_0x4ad4f7);}if(0x0===_0x4d7e97[_0x48f882(0x19c)])return;const _0x46550d=await _0x15c739[_0x48f882(0x1e3)](_0x5d2f56,Array[_0x48f882(0x163)](_0x4d7e97));for(const _0x14ce92 of _0x46550d)_0x310413[_0x48f882(0x153)](_0x14ce92['id'])||_0x310413[_0x48f882(0x138)](_0x14ce92);}[_0x17c9b6(0x15a)](_0x4de6f4,_0x4d03c0={}){const _0x27652b=_0x17c9b6,_0x4aa79e=this[_0x27652b(0x13c)][_0x27652b(0x18a)],_0x258766=[];let _0x2cd0a3=0x0;const _0xe7c4b8=_0x27652b(0x179)==typeof _0x4de6f4?{'main':_0x4de6f4}:_0x4de6f4;for(const _0x56d047 of Object[_0x27652b(0x10d)](_0xe7c4b8)){if(!this[_0x27652b(0x1ce)][_0x27652b(0x12c)][_0x27652b(0x17c)](_0x56d047))throw new _0x4506b4(_0x27652b(0x19e),this);const _0x387bf2=this[_0x27652b(0x13c)][_0x27652b(0x167)][_0x27652b(0x1d9)](_0xe7c4b8[_0x56d047]),_0x48b8ad=this[_0x27652b(0x1ce)][_0x27652b(0x1b6)](_0x56d047),_0x3cae62=new _0x889eb6(_0x4aa79e[_0x27652b(0x1ea)](_0x48b8ad,0x0),_0x387bf2,_0x2cd0a3++);_0x258766[_0x27652b(0x14f)](_0x3cae62);for(const [_0x568fd1,_0x12d6a6]of _0x387bf2[_0x27652b(0x1de)]){const _0x161efe=_0x4aa79e[_0x27652b(0x1e9)](_0x4aa79e[_0x27652b(0x191)](_0x48b8ad,_0x12d6a6[_0x27652b(0x182)][_0x27652b(0x11c)][_0x27652b(0x1c9)]()),_0x4aa79e[_0x27652b(0x191)](_0x48b8ad,_0x12d6a6[_0x27652b(0x1ff)][_0x27652b(0x11c)][_0x27652b(0x1c9)]())),_0xa34448=new _0x467f55(_0x568fd1,null,_0x161efe,_0x4aa79e[_0x27652b(0x1de)],!0x0,_0x2cd0a3++);_0x258766[_0x27652b(0x14f)](_0xa34448);}}if(_0x4d03c0)for(const [_0x53da41,_0x3e6d95]of Object[_0x27652b(0x159)](_0x4d03c0)){const _0x207efb=_0x4aa79e[_0x27652b(0x1ae)][_0x27652b(0x1b6)](_0x53da41);if(!_0x207efb)throw new _0x4506b4(_0x27652b(0x19b),null);for(const [_0x551517,_0x57802d]of Object[_0x27652b(0x159)](_0x3e6d95))if(null!==_0x57802d){const _0x39c02f=new _0x14d0aa(_0x207efb,_0x551517,null,_0x57802d,_0x2cd0a3++);_0x258766[_0x27652b(0x14f)](_0x39c02f);}}return _0x258766;}async[_0x17c9b6(0x180)](_0x1b98cc,_0x3d35dd,_0x52d653){const _0xc3180c=_0x17c9b6;this[_0xc3180c(0x15a)]({[_0x1b98cc]:_0x3d35dd},{[_0x1b98cc]:_0x52d653})[_0xc3180c(0x18d)]((_0x447255,_0x2a2f92)=>{const _0x4cf712=_0xc3180c;_0x447255[_0x4cf712(0x1a0)]=this[_0x4cf712(0x1ce)][_0x4cf712(0x125)]+_0x2a2f92,_0x447255[_0x4cf712(0x126)]=!0x0,this[_0x4cf712(0x14e)](_0x447255);}),this[_0xc3180c(0x17d)](),await this[_0xc3180c(0x209)]();}async[_0x17c9b6(0x16f)](_0x52db5d,_0x595144){const _0x4fa09e=_0x17c9b6;let _0x525636;this[_0x4fa09e(0x1ec)]=_0x52db5d[_0x4fa09e(0x178)];const _0x444e80=_0x52db5d[_0x4fa09e(0x15d)]&&!_0x52db5d[_0x4fa09e(0x184)],_0x5727d4=_0x444e80?0x0:_0x52db5d[_0x4fa09e(0x167)][_0x4fa09e(0x1a0)];if(_0x595144[_0x4fa09e(0x18d)](_0xd8f101=>{const _0x52dbb9=_0x4fa09e;_0xd8f101[_0x52dbb9(0x126)]=!0x0,_0xd8f101[_0x52dbb9(0x196)]=_0x52db5d[_0x52dbb9(0x1a7)],_0xd8f101[_0x52dbb9(0x137)]=null;}),_0x444e80)_0x525636=_0x595144,this[_0x4fa09e(0x204)](_0x525636,_0x444e80);else{if(_0x52db5d[_0x4fa09e(0x184)]){const _0xf76c7c=this[_0x4fa09e(0x15a)](_0x52db5d[_0x4fa09e(0x184)]);this[_0x4fa09e(0x1ce)][_0x4fa09e(0x1a6)][_0x4fa09e(0x125)]=-_0xf76c7c[_0x4fa09e(0x12a)],_0xf76c7c[_0x4fa09e(0x18d)](_0x40ead8=>{const _0xf3c40b=_0x4fa09e;_0x40ead8[_0xf3c40b(0x1a0)]-=_0xf76c7c[_0xf3c40b(0x12a)],_0x40ead8[_0xf3c40b(0x196)]=_0x52db5d[_0xf3c40b(0x1a7)],_0x40ead8[_0xf3c40b(0x126)]=!0x0,_0x40ead8[_0xf3c40b(0x137)]=null;}),this[_0x4fa09e(0x204)](_0xf76c7c,!0x0),this[_0x4fa09e(0x131)][_0x4fa09e(0x125)]=-_0xf76c7c[_0x4fa09e(0x12a)]+this[_0x4fa09e(0x1ec)],this[_0x4fa09e(0x1a2)](_0xf76c7c);}this[_0x4fa09e(0x1ce)][_0x4fa09e(0x1a6)][_0x4fa09e(0x125)]=_0x5727d4,_0x525636=this[_0x4fa09e(0x208)](_0x52db5d[_0x4fa09e(0x167)],_0x52db5d[_0x4fa09e(0x144)]),await this[_0x4fa09e(0x133)](_0x525636),this[_0x4fa09e(0x204)](_0x525636,_0x444e80);}_0x52db5d[_0x4fa09e(0x166)]&&(this[_0x4fa09e(0x12b)][_0x4fa09e(0x1e4)](_0x525636,_0x52db5d[_0x4fa09e(0x166)]),this[_0x4fa09e(0x130)]=_0x52db5d[_0x4fa09e(0x166)]),this[_0x4fa09e(0x131)][_0x4fa09e(0x125)]=_0x5727d4+this[_0x4fa09e(0x1ec)],this[_0x4fa09e(0x1a2)](_0x525636),_0x595144[_0x4fa09e(0x1e5)](_0x33bff4=>{const _0x1fe059=_0x4fa09e,_0x28d718=this[_0x1fe059(0x205)](_0x33bff4);return _0x28d718&&!this[_0x1fe059(0x165)][_0x1fe059(0x17c)](_0x28d718);})[_0x4fa09e(0x18d)]((_0xede29b,_0x133e3a)=>{const _0x3eabfe=_0x4fa09e;_0xede29b[_0x3eabfe(0x1a0)]=this[_0x3eabfe(0x1ce)][_0x3eabfe(0x125)]+_0x133e3a,this[_0x3eabfe(0x14e)](_0xede29b);}),this[_0x4fa09e(0x1d7)]()?(this[_0x4fa09e(0x1cb)]=0x0,this[_0x4fa09e(0x17d)](!0x0),await this[_0x4fa09e(0x209)]()):(this[_0x4fa09e(0x139)]=!0x1,this[_0x4fa09e(0x1fd)]());}[_0x17c9b6(0x132)](_0x16928b,_0x5d76e4){const _0xcd2e1=_0x17c9b6,_0x527439=_0x5d76e4&&_0x5d76e4[_0xcd2e1(0x201)];if(_0x527439&&_0x527439[_0xcd2e1(0x1be)](_0xcd2e1(0x149)))throw _0x5d76e4;const _0x4db7a5=this[_0xcd2e1(0x13c)][_0xcd2e1(0x154)][_0xcd2e1(0x16d)](_0x409934);throw this[_0xcd2e1(0x139)]=!0x0,_0x4db7a5[_0xcd2e1(0x13a)](),this[_0xcd2e1(0x13c)][_0xcd2e1(0x20b)](_0xcd2e1(0x164)),new _0x4506b4(_0x16928b,this[_0xcd2e1(0x13c)],_0x527439?{'originalError':_0x527439}:void 0x0);}[_0x17c9b6(0x14e)](_0x26824e){const _0x13a445=_0x17c9b6;this[_0x13a445(0x1c8)][_0x13a445(0x17c)](_0x26824e)||(this[_0x13a445(0x1c8)][_0x13a445(0x1ac)](_0x26824e),this[_0x13a445(0x160)][_0x13a445(0x14f)](_0x26824e),this[_0x13a445(0x171)]||_0x13a445(0x16e)==_0x26824e[_0x13a445(0x158)]&&!_0x26824e[_0x13a445(0x1db)]||this[_0x13a445(0x15f)]());}[_0x17c9b6(0x17d)](_0x446587=!0x1){const _0x8f9ea9=_0x17c9b6;!_0x446587&&this[_0x8f9ea9(0x139)]||(this[_0x8f9ea9(0x139)]=!0x0,clearTimeout(this[_0x8f9ea9(0x172)]),this[_0x8f9ea9(0x172)]=setTimeout(()=>{const _0x2a578d=_0x8f9ea9;this[_0x2a578d(0x111)]()[_0x2a578d(0x1af)](_0x23c510=>{const _0x390e35=_0x2a578d;_0x23c510&&(this[_0x390e35(0x1fd)](),this[_0x390e35(0x139)]=!0x1);})[_0x2a578d(0x1f2)](_0x1ee040=>{const _0x5715e6=_0x2a578d;this[_0x5715e6(0x1fd)](),this[_0x5715e6(0x139)]=!0x1,function(_0x4f55ff){const _0x125dc3=_0x5715e6;return _0x4f55ff[_0x125dc3(0x201)][_0x125dc3(0x1be)](_0x125dc3(0x206))||_0x4f55ff[_0x125dc3(0x201)][_0x125dc3(0x1be)](_0x125dc3(0x1f8))||_0x4f55ff[_0x125dc3(0x201)][_0x125dc3(0x1be)](_0x125dc3(0x190));}(_0x1ee040)||this[_0x5715e6(0x132)](_0x1ee040[_0x5715e6(0x201)],_0x1ee040);});},this[_0x8f9ea9(0x1cb)]));}[_0x17c9b6(0x209)](){return new Promise(_0x1798d7=>{const _0x2cc785=_0x1170;this['on'](_0x2cc785(0x1f5),()=>{_0x1798d7();});});}async[_0x17c9b6(0x111)](){const _0x26c213=_0x17c9b6,_0x358f73=this[_0x26c213(0x13c)][_0x26c213(0x154)][_0x26c213(0x16d)](_0x3a849f);if(this[_0x26c213(0x1e7)]()&&(_0x358f73[_0x26c213(0x128)](),this[_0x26c213(0x123)]=!0x1),!this[_0x26c213(0x1d7)]())return!0x0;const _0x2b8d56=[...this[_0x26c213(0x160)]];for(const _0x1a5da1 of _0x2b8d56)_0x1a5da1[_0x26c213(0x13f)]=this[_0x26c213(0x1ce)][_0x26c213(0x1a6)][_0x26c213(0x18c)](_0x1a5da1);const _0x5c9cbe=this[_0x26c213(0x12b)][_0x26c213(0x1fb)](_0x2b8d56),_0x23e2e9=X++,_0x1b9f9b=this[_0x26c213(0x1fa)](_0x2b8d56),_0x2fd7ab=await this[_0x26c213(0x11f)][_0x26c213(0x1b3)](_0x1b9f9b,_0x1b9f9b[_0x26c213(0x1a0)],_0x5c9cbe);try{return await this[_0x26c213(0x1a8)](_0x2b8d56,_0x2fd7ab,_0x23e2e9);}catch(_0x58a265){return this[_0x26c213(0x132)](_0x26c213(0x207),_0x58a265);}}async[_0x17c9b6(0x1a8)](_0x3bcb21,_0x52fe63,_0x4fbb25){const _0x29533d=_0x17c9b6;if(_0x29533d(0x1ad)in _0x52fe63)throw _0x52fe63[_0x29533d(0x1ad)];let _0x5681ff=!0x1;if(_0x52fe63[_0x29533d(0x15d)]){_0x52fe63[_0x29533d(0x166)]&&(this[_0x29533d(0x130)]=_0x52fe63[_0x29533d(0x166)]),this[_0x29533d(0x160)]=this[_0x29533d(0x160)][_0x29533d(0x1e5)](_0x5d80f8=>!_0x3bcb21[_0x29533d(0x113)](_0x5d80f8));for(const _0x4a8ff3 of _0x3bcb21)_0x4a8ff3[_0x29533d(0x196)]=_0x29533d(0x1b4)in _0x52fe63&&_0x52fe63[_0x29533d(0x1b4)]||void 0x0;Z(_0x3bcb21,_0x52fe63[_0x29533d(0x125)]-_0x3bcb21[_0x29533d(0x12a)]),this[_0x29533d(0x1a2)](_0x3bcb21);const _0x3ece48=_0x3bcb21[_0x29533d(0x1e5)](_0x54a555=>{const _0xcb74a0=_0x29533d;if(!_0x54a555[_0xcb74a0(0x126)])return!0x1;const _0x23bd56=this[_0xcb74a0(0x205)](_0x54a555);return _0x23bd56&&!this[_0xcb74a0(0x165)][_0xcb74a0(0x17c)](_0x23bd56);});Z(_0x3ece48,this[_0x29533d(0x1ce)][_0x29533d(0x125)]),this[_0x29533d(0x204)](_0x3ece48),_0x5681ff=!0x0,this[_0x29533d(0x1cb)]=this[_0x29533d(0x195)];}else{const _0x50b992=this[_0x29533d(0x208)](_0x52fe63[_0x29533d(0x167)],_0x52fe63[_0x29533d(0x144)])[_0x29533d(0x1e5)](_0xe79b46=>_0xe79b46[_0x29533d(0x1a0)]>=this[_0x29533d(0x1a3)]);_0x50b992[_0x29533d(0x18d)](_0x3bd758=>this[_0x29533d(0x1ca)](_0x3bd758)),this[_0x29533d(0x160)]=this[_0x29533d(0x160)][_0x29533d(0x1e5)](_0x512ea2=>!_0x512ea2[_0x29533d(0x126)]||!this[_0x29533d(0x165)][_0x29533d(0x17c)](this[_0x29533d(0x205)](_0x512ea2))),this[_0x29533d(0x160)][_0x29533d(0x12a)]&&Z(this[_0x29533d(0x160)],this[_0x29533d(0x160)][0x0][_0x29533d(0x1a0)]),await this[_0x29533d(0x133)](_0x50b992),_0x5681ff=this[_0x29533d(0x1f6)](_0x50b992,_0x52fe63[_0x29533d(0x125)],_0x52fe63[_0x29533d(0x166)]),this[_0x29533d(0x1cb)]=Math[_0x29533d(0x193)](this[_0x29533d(0x1cb)]/0x2);}return _0x5681ff?!this[_0x29533d(0x1d7)]()||(this[_0x29533d(0x17d)](!0x0),!0x1):this[_0x29533d(0x132)](_0x29533d(0x14a));}[_0x17c9b6(0x1f6)](_0x5e4367,_0x42c556,_0x29ad2f){const _0x13d60d=_0x17c9b6;try{const _0x495c51={'document':this[_0x13d60d(0x1ce)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x71aea3,operationsB:_0x4d60d3,originalOperations:_0x1a08f4}=_0x3d9921(_0x5e4367,this[_0x13d60d(0x160)],_0x495c51);Z(_0x71aea3,this[_0x13d60d(0x1ce)][_0x13d60d(0x125)]),Z(_0x4d60d3,_0x42c556);for(const _0x2daa21 of _0x71aea3){const _0x4b4ca0=_0x1a08f4[_0x13d60d(0x16d)](_0x2daa21);_0x2daa21[_0x13d60d(0x137)]=_0x4b4ca0?_0x4b4ca0[_0x13d60d(0x137)]:null;}_0x29ad2f&&(this[_0x13d60d(0x12b)][_0x13d60d(0x1e4)](_0x5e4367,_0x29ad2f),this[_0x13d60d(0x130)]=_0x29ad2f),this[_0x13d60d(0x160)]=[..._0x4d60d3],this[_0x13d60d(0x204)](_0x71aea3),this[_0x13d60d(0x1a2)](_0x5e4367);}catch(_0xda3d3b){return console[_0x13d60d(0x1ad)](_0xda3d3b),!0x1;}return!0x0;}[_0x17c9b6(0x204)](_0x1b0017,_0x4953fc=!0x1){const _0x4d67f3=_0x17c9b6;this[_0x4d67f3(0x13c)][_0x4d67f3(0x18a)][_0x4d67f3(0x10c)]({'isUndoable':!0x1,'isLocal':!0x1},_0x2ba6b6=>{const _0x1de6f0=_0x4d67f3;for(const _0x4696bd of _0x1b0017)this[_0x1de6f0(0x1c8)][_0x1de6f0(0x1ac)](_0x4696bd),this[_0x1de6f0(0x1ca)](_0x4696bd),_0x2ba6b6[_0x1de6f0(0x20a)][_0x1de6f0(0x112)](_0x4696bd),this[_0x1de6f0(0x13c)][_0x1de6f0(0x18a)][_0x1de6f0(0x18f)](_0x4696bd);});}[_0x17c9b6(0x1ca)](_0x11b900){const _0x444f6f=_0x17c9b6,_0x3f01a0=this[_0x444f6f(0x205)](_0x11b900);_0x3f01a0&&this[_0x444f6f(0x165)][_0x444f6f(0x1ac)](_0x3f01a0);}[_0x17c9b6(0x205)](_0x368c9a){const _0x405712=_0x17c9b6;let _0x4c0d02,_0x727824;switch(_0x368c9a[_0x405712(0x158)]){case _0x405712(0x118):_0x4c0d02=_0x368c9a[_0x405712(0x1cd)][_0x405712(0x108)];break;case _0x405712(0x16e):if(_0x727824=_0x368c9a[_0x405712(0x147)],!_0x727824)return null;_0x4c0d02=_0x727824[_0x405712(0x108)];break;case _0x405712(0x183):_0x4c0d02=_0x368c9a[_0x405712(0x108)];break;case _0x405712(0x11d):_0x4c0d02=_0x368c9a[_0x405712(0x152)];break;case _0x405712(0x1c6):_0x4c0d02=_0x368c9a[_0x405712(0x17b)][_0x405712(0x108)];break;default:return null;}return _0x4c0d02[_0x405712(0x192)];}[_0x17c9b6(0x1a2)](_0x163643){const _0x160270=_0x17c9b6;_0x163643[_0x160270(0x18d)](_0x486e03=>{const _0x2ffa48=_0x160270,_0xb19b8d=_0x486e03[_0x2ffa48(0x19a)]();_0xb19b8d[_0x2ffa48(0x137)]=_0x486e03[_0x2ffa48(0x137)],_0xb19b8d[_0x2ffa48(0x126)]=!!_0x486e03[_0x2ffa48(0x126)],_0xb19b8d[_0x2ffa48(0x196)]=_0x486e03[_0x2ffa48(0x196)],_0xb19b8d[_0x2ffa48(0x1a0)]+=this[_0x2ffa48(0x1ec)],_0x486e03[_0x2ffa48(0x1fe)]&&this[_0x2ffa48(0x122)][_0x2ffa48(0x1ac)](_0xb19b8d),this[_0x2ffa48(0x131)][_0x2ffa48(0x112)](_0xb19b8d);});}[_0x17c9b6(0x11a)](_0x5b698a){const _0x14e0a9=_0x17c9b6,_0x50ac0c=this[_0x14e0a9(0x13c)][_0x14e0a9(0x154)][_0x14e0a9(0x16d)](_0x14e0a9(0x1aa)),_0x29e091=this[_0x14e0a9(0x13c)][_0x14e0a9(0x14c)];_0x5b698a||(_0x5b698a=_0x203777(_0x29e091,_0x14e0a9(0x16a))),_0x50ac0c[_0x14e0a9(0x1b5)](_0x5b698a,{'title':_0x203777(_0x29e091,_0x14e0a9(0x1bc)),'namespace':_0x14e0a9(0x1a4)}),this[_0x14e0a9(0x14d)]=!0x0,clearTimeout(this[_0x14e0a9(0x172)]),this[_0x14e0a9(0x160)]=[],this[_0x14e0a9(0x13c)][_0x14e0a9(0x154)][_0x14e0a9(0x16d)](_0x409934)[_0x14e0a9(0x13a)]();}[_0x17c9b6(0x15f)](){const _0x189a16=_0x17c9b6;this[_0x189a16(0x171)]||(this[_0x189a16(0x171)]=this[_0x189a16(0x13c)][_0x189a16(0x154)][_0x189a16(0x16d)](_0x211d59)[_0x189a16(0x1ac)](_0x203777(this[_0x189a16(0x13c)][_0x189a16(0x14c)],_0x189a16(0x150))));}[_0x17c9b6(0x1fd)](){const _0x1cdfaf=_0x17c9b6;this[_0x1cdfaf(0x171)]&&(this[_0x1cdfaf(0x13c)][_0x1cdfaf(0x154)][_0x1cdfaf(0x16d)](_0x211d59)[_0x1cdfaf(0x169)](this[_0x1cdfaf(0x171)]),this[_0x1cdfaf(0x171)]=null);}[_0x17c9b6(0x1fa)](_0x47622d){const _0x5c16ef=_0x17c9b6,_0x2f5333=_0x47622d[_0x5c16ef(0x1b7)](_0x3356ea=>_0x3356ea[_0x5c16ef(0x15b)]());return this[_0x5c16ef(0x161)][_0x5c16ef(0x12d)](_0x2f5333);}[_0x17c9b6(0x208)](_0x2167a3,_0x4772ec){const _0x52e4aa=_0x17c9b6;return this[_0x52e4aa(0x161)][_0x52e4aa(0x1ef)](_0x2167a3)[_0x52e4aa(0x1b7)]((_0x3086fb,_0x292306)=>{const _0x44f2f7=_0x52e4aa,_0x48a49f=_0x44f2f7(0x1ed)==_0x4772ec[_0x292306][_0x44f2f7(0x158)];if(_0x44f2f7(0x115)==_0x3086fb[_0x44f2f7(0x189)]){const _0x4a520f=_0x3086fb[_0x44f2f7(0x1cd)][_0x44f2f7(0x108)];!this[_0x44f2f7(0x1ce)][_0x44f2f7(0x1b6)](_0x4a520f)&&(this[_0x44f2f7(0x1ce)][_0x44f2f7(0x1dd)](_0x44f2f7(0x16b),_0x4a520f)[_0x44f2f7(0x1e8)]=!0x1);}const _0x2de5c2=_0x370286[_0x44f2f7(0x185)](_0x3086fb,this[_0x44f2f7(0x1ce)]);return _0x2de5c2[_0x44f2f7(0x13f)]=_0x3086fb[_0x44f2f7(0x13f)],_0x2de5c2[_0x44f2f7(0x126)]=_0x48a49f,_0x2de5c2[_0x44f2f7(0x137)]=_0x48a49f?null:_0x4772ec[_0x292306][_0x44f2f7(0x140)],_0x2de5c2[_0x44f2f7(0x1fe)]=_0x44f2f7(0x156)===_0x4772ec[_0x292306][_0x44f2f7(0x158)],_0x2de5c2[_0x44f2f7(0x196)]=_0x4772ec[_0x292306][_0x44f2f7(0x196)],_0x2de5c2;});}[_0x17c9b6(0x1d3)](){const _0x1cad74=_0x17c9b6;this[_0x1cad74(0x123)]=!0x0,this[_0x1cad74(0x1e7)]()?this[_0x1cad74(0x17d)]():this[_0x1cad74(0x123)]=!0x1;}[_0x17c9b6(0x1e7)](){const _0x10de80=_0x17c9b6,_0x536537=this[_0x10de80(0x13c)][_0x10de80(0x154)][_0x10de80(0x16d)](_0x2d3dc6)[_0x10de80(0x116)][_0x10de80(0x16d)](this[_0x10de80(0x1e2)]);return!this[_0x10de80(0x13c)][_0x10de80(0x1a9)]&&!!_0x536537&&_0x536537[_0x10de80(0x12a)]>0x1&&this[_0x10de80(0x123)];}[_0x17c9b6(0x1d7)](){const _0x304be6=_0x17c9b6;return this[_0x304be6(0x160)][_0x304be6(0x12a)]>0x0||this[_0x304be6(0x1e7)]();}}export{l as RealTimeCollaborationClient};class Y extends Error{}function Z(_0x5b8477,_0x5de843){const _0x540d97=_0x17c9b6;for(const _0x1f2088 of _0x5b8477)_0x1f2088[_0x540d97(0x1a0)]=_0x5de843++;}class tt{[_0x17c9b6(0x1f1)];[_0x17c9b6(0x1f4)];constructor(_0x5e1588){const _0x347c5e=_0x17c9b6;this[_0x347c5e(0x1f1)]=_0x5e1588,this[_0x347c5e(0x1f4)]=new WeakMap();}[_0x17c9b6(0x1fb)](_0x2ebe09){const _0x329a29=_0x17c9b6;let _0x30a333=_0x2ebe09[_0x329a29(0x12a)];for(;_0x30a333--;){const _0x4fb671=_0x2ebe09[_0x30a333];if(!this[_0x329a29(0x1f1)][_0x329a29(0x17c)](_0x4fb671)){if(!this[_0x329a29(0x1f4)][_0x329a29(0x17c)](_0x4fb671)){const _0x1d76b5=_0x536e6d()[_0x329a29(0x1c9)](0x1,0x12);this[_0x329a29(0x1f4)][_0x329a29(0x18b)](_0x4fb671,_0x1d76b5);}return this[_0x329a29(0x1f4)][_0x329a29(0x16d)](_0x4fb671);}}}[_0x17c9b6(0x1e4)](_0x344a3e,_0x42a486){const _0x12f679=_0x17c9b6;if(!_0x42a486)return;let _0x176251=_0x344a3e[_0x12f679(0x12a)];for(;_0x176251--;){const _0x14fa8d=_0x344a3e[_0x176251];this[_0x12f679(0x1f1)][_0x12f679(0x17c)](_0x14fa8d)||this[_0x12f679(0x1f4)][_0x12f679(0x18b)](_0x14fa8d,_0x42a486);}}}
23
+ function _0x1afa(){const _0x504bba=['rtc-offline','_shouldSendUpdate','real-time-collaboration','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','_isLoaded','_operationToId','70790IMpIRk','_handleExternalOperations','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.','isOfficialPlugin','_isPendingUpdate','4867505vzvnXq','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.','3474524Oappsq','createdAt','3whFRvR','addToReconnectionStack','_compressOperations','isPremiumPlugin','Synchronization\x20issue','then','serverHistory','_setPendingAction','change:hasDomSelection','editor','_connectAfterSessionHasBeenFlushed','_saveOperationInBuffer','version','suppressErrorInCollaboration','requires','offset','model','_hasSelectionChanged','directChange','setPermissions','off','from','_handleSendingSelectionMarkers','realtimecollaborationclient-handleserverresponse','sessionCreatedAt','_decompressOperations','realtimecollaborationclient-init-non-existent-root','lastOperationAcceptedAt','applyOperation','realtimecollaborationclient-init-service-incorrect-server-operation','affectedSelectable','$root','_handleInitialConnectionData','affectsData','mySessionId','_setUpDataInit','addUser','_initThrowingOnDataSet','history','marker','bind','includes','cloudServices.bundleVersion','7388248EnUPJy','_crash','isUndoneOperation','insert','userId','_handleReceivedOperations','catch','404','destroy','_updateServerHistory','change:range','sessionId','isDocumentOperation','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','permissions','clone','980717EBmTiO','document:write','batch','409','plugins','createPositionAt','realtimecollaborationclient-init-document-already-initialized','operationsReceived','stopListening','_handleReconnectionResponse','_getOperationsFromInitData','locale','getUser','ready','fire','move','__className','_isConnected','data','getIdOfTheLastOperation','wasUndone','_document','slice','_refreshUserSelectionMarkers','1838436bGuuAM','document','toJSON','collaboration-missing-channelid','getDocumentDetails','add','_sendBufferedOperationsDelayId','addRoot','_sendBufferedOperationsDelayed','has','markers','createRange','keys','differ','size','_currentBufferDelay','editing','startsWith','config','isEnabled','lastSyncVersion','_sendBufferedOperations','state','collaboration','_initSessionsHandling','targetPosition','CommentsOnly','_isEditingAllowed','_offset','connection','fromJSON','realtimecollaborationclient-init-connection-failed','define','_handleServerResponse','path','parse','initData','loadRoot','_waitUntilSynced','metadata','getRoot','removeFromReconnectionStack','createUserMarkerOperations','stop','cs:removeUser','listenTo','_getAffectedRoot','realtimecollaborationclient-init-service-internal-error','newRange','cloudDocumentVersion','9oOaLKU','_compressor','realtimecollaborationclient-init-session-connection-error','_knownOperations','start','getOperations','enableReadOnlyMode','cloud-services-internal-error:\x20Not\x20connected.','_isInit','getOperationAuthor','_applyOperationsSet','return','register','isReadOnly','wereChangesApplied','code','_isAttached','lastOperationId','change:_isPendingUpdate','createPositionFromPath','roots','createRoot','compress','_authorId','1066970XOzBSm','_bufferedOperations','realtimecollaborationclient-sendbufferedoperations','high','_addKnownRoot','realtimecollaborationclient-error','baseVersion','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_ignoredOperations','_channelId','realtimecollaborationclient','showWarning','enqueueChange','_fetchMissingUsers','currentDocumentSession','reset','_pendingAction','_baseBufferDelay','_handleReconnectionError','cloud-services-internal-error:\x20Request\x20timeout.','unregister','disconnected','sendOperations','position','decompress','RealTimeCollaborationClient','push','init','reconnection:\x20flushed\x20session','round','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','sessionAdd:','getMany','_hasSynchronizationProblem','map','selection','filter','_bufferRootLoad','_disconnectService','apply','remove','lastDocumentSession','forEach','_lastSyncedOperationId','_connectService','root','PENDING_ACTION_SENDING_DATA','InsertOperation','_lastServerVersion','disableReadOnlyMode','length','string','rootsAttributes','rtc-destroyed','disconnect','_service','error','get','connect','setIdForTheLastOperation','addOperation','message','_shouldSendSelectionUpdate','view','_isDisconnection','channelSessions','pluginName','finally','multi-root-editor-root-attributes-no-root','change:_isEditingAllowed','entries','_operationIdentifier','collaboration.channelId','reconnect','connected','rootName','_loadRoot','CollaborativeEditingService','_knownRootNames','set','_disconnectionOperations','attributes','_clearPendingAction','end','Permissions','type','getConnectedSessions','Notification','addRootAttribute','28DERCWM'];_0x1afa=function(){return _0x504bba;};return _0x1afa();}const _0x239d7b=_0xeaa5;(function(_0x5a616c,_0x1e2d50){const _0x5ea129=_0xeaa5,_0x3e881e=_0x5a616c();while(!![]){try{const _0xf783fb=-parseInt(_0x5ea129(0x1e1))/0x1+-parseInt(_0x5ea129(0x243))/0x2+-parseInt(_0x5ea129(0x1a6))/0x3*(-parseInt(_0x5ea129(0x1a4))/0x4)+parseInt(_0x5ea129(0x1a2))/0x5+-parseInt(_0x5ea129(0x1f9))/0x6*(-parseInt(_0x5ea129(0x196))/0x7)+-parseInt(_0x5ea129(0x1d1))/0x8+parseInt(_0x5ea129(0x22b))/0x9*(-parseInt(_0x5ea129(0x19d))/0xa);if(_0xf783fb===_0x1e2d50)break;else _0x3e881e['push'](_0x3e881e['shift']());}catch(_0x5278b7){_0x3e881e['push'](_0x3e881e['shift']());}}}(_0x1afa,0x98160));import{Plugin as _0x112676,PendingActions as _0x5ba1a5}from'ckeditor5/src/core.js';import{CKEditorError as _0x299d01,version as _0x113089,uid as _0x4da281}from'ckeditor5/src/utils.js';import{Notification as _0x19df8b}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x11de3a,NoOperation as _0x5490d2,InsertOperation as _0x4e26e3,MarkerOperation as _0x2324d9,RootAttributeOperation as _0xca8d75,OperationFactory as _0x587caa,History as _0x368b30}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0xc7c81b}from'./websocketgateway.js';import{Sessions as _0x174557}from'./sessions.js';function _0xeaa5(_0x45b760,_0x63cd2f){const _0x1afa7d=_0x1afa();return _0xeaa5=function(_0xeaa5d5,_0x40944b){_0xeaa5d5=_0xeaa5d5-0x154;let _0x5c2c62=_0x1afa7d[_0xeaa5d5];return _0x5c2c62;},_0xeaa5(_0x45b760,_0x63cd2f);}import{UserMarkers as _0x1aaefb}from'./usermarkers.js';import{getTranslation as _0x18fee4}from'../common-translations.js';import{Compressor as _0x1eae05}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x54ce18}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x386734,CollaborativeEditingService as _0x2cc433}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let Q=0x1;class l extends _0x112676{static [_0x239d7b(0x18a)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x2cc433)());[_0x239d7b(0x215)];[_0x239d7b(0x1dc)];[_0x239d7b(0x1ac)];[_0x239d7b(0x24c)];[_0x239d7b(0x174)];[_0x239d7b(0x1f6)];[_0x239d7b(0x22c)];[_0x239d7b(0x244)];[_0x239d7b(0x22e)];[_0x239d7b(0x18b)];[_0x239d7b(0x253)];[_0x239d7b(0x1b7)];[_0x239d7b(0x1ff)];[_0x239d7b(0x254)];[_0x239d7b(0x208)];[_0x239d7b(0x168)];[_0x239d7b(0x18d)];[_0x239d7b(0x184)];static get[_0x239d7b(0x1b4)](){return[_0xc7c81b,_0x174557,_0x1aaefb,_0x5ba1a5,_0x54ce18,_0x19df8b];}static get[_0x239d7b(0x17f)](){const _0x7f5b67=_0x239d7b;return _0x7f5b67(0x156);}static get[_0x239d7b(0x1a0)](){return!0x0;}static get[_0x239d7b(0x1a9)](){return!0x0;}get[_0x239d7b(0x22a)](){const _0x1f9be0=_0x239d7b;return this[_0x1f9be0(0x16d)]+this[_0x1f9be0(0x215)];}get[_0x239d7b(0x16d)](){const _0x1d16fd=_0x239d7b;return this[_0x1d16fd(0x1ac)][_0x1d16fd(0x1b2)]-this[_0x1d16fd(0x215)];}get[_0x239d7b(0x20d)](){const _0x32711c=_0x239d7b,_0x7e469=this[_0x32711c(0x1ac)][_0x32711c(0x230)]();for(let _0x5e832e=_0x7e469[_0x32711c(0x16f)]-0x1;_0x5e832e>=0x0;_0x5e832e--){const _0x43aa2d=_0x7e469[_0x5e832e];if(!this[_0x32711c(0x18d)][_0x32711c(0x202)](_0x43aa2d))return _0x43aa2d[_0x32711c(0x249)]+0x1-this[_0x32711c(0x215)];}return 0x0;}constructor(_0xd56d2c){const _0x5c984e=_0x239d7b;if(super(_0xd56d2c),this[_0x5c984e(0x215)]=0x0,this[_0x5c984e(0x1dc)]=null,this[_0x5c984e(0x1ac)]=new _0x368b30(),this[_0x5c984e(0x1af)][_0x5c984e(0x20b)][_0x5c984e(0x219)](_0x5c984e(0x210),{}),this[_0x5c984e(0x24c)]=this[_0x5c984e(0x1af)][_0x5c984e(0x20b)][_0x5c984e(0x176)](_0x5c984e(0x185)),!this[_0x5c984e(0x24c)])throw new _0x299d01(_0x5c984e(0x1fc),this);const _0x4657cb=_0xd56d2c[_0x5c984e(0x20b)][_0x5c984e(0x176)](_0x5c984e(0x1d0))||_0x113089;this[_0x5c984e(0x174)]=new l[(_0x5c984e(0x18a))](_0x4657cb,this[_0x5c984e(0x24c)]),this[_0x5c984e(0x1f6)]=this[_0x5c984e(0x1af)][_0x5c984e(0x1b6)][_0x5c984e(0x1fa)],this[_0x5c984e(0x22c)]=new _0x1eae05(),this[_0x5c984e(0x244)]=[],this[_0x5c984e(0x22e)]=new WeakSet(),this[_0x5c984e(0x18b)]=new Set(),this[_0x5c984e(0x18c)](_0x5c984e(0x1a1),!0x1),this[_0x5c984e(0x18c)](_0x5c984e(0x15e),!0x1),this[_0x5c984e(0x253)]=null,this[_0x5c984e(0x1b7)]=!0x1,this[_0x5c984e(0x1ff)]=null,this[_0x5c984e(0x254)]=0x12c,this[_0x5c984e(0x208)]=this[_0x5c984e(0x254)],this[_0x5c984e(0x168)]=null,this[_0x5c984e(0x18d)]=new WeakSet(),this[_0x5c984e(0x184)]=new Z(this[_0x5c984e(0x18d)]);}[_0x239d7b(0x158)](){const _0x51c9ac=_0x239d7b,_0x8c7134=this[_0x51c9ac(0x1af)],_0x407dc4=_0x8c7134[_0x51c9ac(0x1e5)][_0x51c9ac(0x176)](_0x54ce18),_0x568b35=_0x8c7134[_0x51c9ac(0x1e5)][_0x51c9ac(0x176)](_0xc7c81b);this[_0x51c9ac(0x226)](_0x407dc4,_0x51c9ac(0x234),(_0x3062b9,_0x36ee6e)=>{const _0x515a1c=_0x51c9ac,_0x3a31a0=_0x36ee6e[0x0];_0x3a31a0[_0x515a1c(0x242)]&&(_0x3062b9[_0x515a1c(0x236)]=_0x407dc4[_0x515a1c(0x1ed)](_0x3a31a0[_0x515a1c(0x242)]),_0x3062b9[_0x515a1c(0x224)]()),null===_0x3a31a0[_0x515a1c(0x242)]&&(_0x3062b9[_0x515a1c(0x236)]=null,_0x3062b9[_0x515a1c(0x224)]());},{'priority':_0x51c9ac(0x246)}),this[_0x51c9ac(0x226)](_0x8c7134[_0x51c9ac(0x1b6)][_0x51c9ac(0x1fa)][_0x51c9ac(0x160)],_0x51c9ac(0x1db),(_0x49bee,_0x43a7cf)=>{const _0x3441b1=_0x51c9ac;_0x43a7cf[_0x3441b1(0x1b8)]&&this[_0x3441b1(0x1f8)]();}),this[_0x51c9ac(0x226)](_0x8c7134[_0x51c9ac(0x209)][_0x51c9ac(0x17c)],_0x51c9ac(0x1ae),()=>{const _0x24f4eb=_0x51c9ac;this[_0x24f4eb(0x1f8)]();}),this[_0x51c9ac(0x1cb)](),_0x8c7134[_0x51c9ac(0x1b6)]['on'](_0x51c9ac(0x1c2),(_0x441b0b,_0x489646)=>{const _0x55e065=_0x51c9ac,_0x1f0aa2=_0x489646[0x0];_0x1f0aa2[_0x55e065(0x1dd)]&&(this[_0x55e065(0x1b1)](_0x1f0aa2),this[_0x55e065(0x198)]()&&this[_0x55e065(0x201)]());}),this[_0x51c9ac(0x1c9)](),this[_0x51c9ac(0x1ce)](_0x51c9ac(0x214))['to'](_0x568b35,_0x51c9ac(0x20f),this,_0x51c9ac(0x15e),(_0x216577,_0x25eace)=>_0x51c9ac(0x187)===_0x216577&&!_0x25eace),this['on'](_0x51c9ac(0x182),()=>{const _0x1591ac=_0x51c9ac;this[_0x1591ac(0x214)]?_0x8c7134[_0x1591ac(0x16e)](_0x1591ac(0x197)):_0x8c7134[_0x1591ac(0x231)](_0x1591ac(0x197));}),this[_0x51c9ac(0x214)]?_0x8c7134[_0x51c9ac(0x16e)](_0x51c9ac(0x197)):_0x8c7134[_0x51c9ac(0x231)](_0x51c9ac(0x197)),this[_0x51c9ac(0x18c)](_0x51c9ac(0x1f2),!0x1);}async[_0x239d7b(0x186)](){const _0x3a9b64=_0x239d7b,_0x82fd42=this[_0x3a9b64(0x1af)][_0x3a9b64(0x1e5)][_0x3a9b64(0x176)](_0x174557),_0x16d18d=this[_0x3a9b64(0x1af)][_0x3a9b64(0x1e5)][_0x3a9b64(0x176)](_0xc7c81b);try{this[_0x3a9b64(0x1a1)]=!0x0,_0x82fd42[_0x3a9b64(0x257)](this[_0x3a9b64(0x24c)]);const _0x488227=await this[_0x3a9b64(0x174)][_0x3a9b64(0x186)](_0x16d18d[_0x3a9b64(0x216)],this[_0x3a9b64(0x20d)]);await this[_0x3a9b64(0x1ea)](_0x488227)&&(this[_0x3a9b64(0x1a1)]=!0x1,this[_0x3a9b64(0x18f)]());const _0x3e9029=await this[_0x3a9b64(0x174)][_0x3a9b64(0x193)]();_0x82fd42[_0x3a9b64(0x237)](this[_0x3a9b64(0x24c)],_0x3e9029),this[_0x3a9b64(0x1bc)](),this[_0x3a9b64(0x1f2)]=!0x0;}catch(_0x2be6e8){if(function(_0x37b136){const _0x4045cf=_0x3a9b64;return _0x4045cf(0x1d8)===_0x37b136[_0x4045cf(0x23a)];}(_0x2be6e8)&&this[_0x3a9b64(0x1dc)])await this[_0x3a9b64(0x1b0)]();else{if(function(_0xba585a){const _0x92cfed=_0x3a9b64;return _0x92cfed(0x1e4)===_0xba585a[_0x92cfed(0x23a)];}(_0x2be6e8)){const _0x47645d=_0x18fee4(this[_0x3a9b64(0x1af)][_0x3a9b64(0x1ec)],_0x3a9b64(0x24a));this[_0x3a9b64(0x255)](_0x47645d);}else{if(!(_0x2be6e8 instanceof X))throw _0x2be6e8;this[_0x3a9b64(0x255)]();}}}}[_0x239d7b(0x1d9)](){const _0x1a8b51=_0x239d7b,_0x537e73=this[_0x1a8b51(0x1af)][_0x1a8b51(0x1e5)][_0x1a8b51(0x176)](_0xc7c81b),_0x1fd765=this[_0x1a8b51(0x1af)][_0x1a8b51(0x1e5)][_0x1a8b51(0x176)](_0x174557);this[_0x1a8b51(0x1af)][_0x1a8b51(0x231)](_0x1a8b51(0x172)),_0x1fd765[_0x1a8b51(0x17e)][_0x1a8b51(0x202)](this[_0x1a8b51(0x24c)])&&_0x1fd765[_0x1a8b51(0x257)](this[_0x1a8b51(0x24c)]),_0x537e73[_0x1a8b51(0x222)](this),this[_0x1a8b51(0x163)](),super[_0x1a8b51(0x1d9)]();}async[_0x239d7b(0x1ea)](_0x308cf1){const _0x3d9f8e=_0x239d7b;if(this[_0x3d9f8e(0x1dc)]!==_0x308cf1[_0x3d9f8e(0x1dc)]&&this[_0x3d9f8e(0x168)]!==_0x308cf1[_0x3d9f8e(0x23c)])throw new X();return this[_0x3d9f8e(0x1dc)]=_0x308cf1[_0x3d9f8e(0x1dc)],this[_0x3d9f8e(0x21a)]([],{..._0x308cf1,'wereChangesApplied':!0x1,'data':_0x308cf1[_0x3d9f8e(0x1f3)]},_0x3d9f8e(0x186));}async[_0x239d7b(0x169)](_0x467b52,_0x1868f5=!0x1){const _0x502246=_0x239d7b,{connection:_0x38d8b9}=this[_0x502246(0x1af)][_0x502246(0x1e5)][_0x502246(0x176)](_0xc7c81b);l[_0x502246(0x18a)][_0x502246(0x193)](_0x38d8b9,this[_0x502246(0x24c)])[_0x502246(0x1ab)](_0x55ff4d=>this[_0x502246(0x211)](_0x55ff4d))[_0x502246(0x1d7)](_0x3e0219=>{const _0x297c3a=_0x502246;this[_0x297c3a(0x1d2)](_0x297c3a(0x22d),_0x3e0219);}),this[_0x502246(0x226)](this[_0x502246(0x174)],_0x502246(0x1e8),this[_0x502246(0x1d6)][_0x502246(0x1ce)](this)),this[_0x502246(0x226)](this[_0x502246(0x174)],_0x502246(0x175),(_0x381360,_0x55758c)=>{const _0x4980e7=_0x502246;this[_0x4980e7(0x1d2)](_0x4980e7(0x228),_0x55758c);}),this[_0x502246(0x226)](this[_0x502246(0x174)],_0x502246(0x258),()=>{const _0x1c6e7f=_0x502246;this[_0x1c6e7f(0x1f2)]=!0x1;});const _0xd4a126=this[_0x502246(0x184)][_0x502246(0x1f4)](_0x467b52);this[_0x502246(0x1a1)]=!0x0;const _0x498d2b=await this[_0x502246(0x174)][_0x502246(0x177)](_0x38d8b9,this[_0x502246(0x1a8)](_0x467b52),_0xd4a126);if(this[_0x502246(0x1dc)]=_0x498d2b[_0x502246(0x1dc)],_0x1868f5){if(!_0x498d2b[_0x502246(0x239)])return void this[_0x502246(0x255)]();this[_0x502246(0x1a1)]=!0x1,this[_0x502246(0x18f)](),this[_0x502246(0x1ac)][_0x502246(0x252)](),this[_0x502246(0x215)]=_0x498d2b[_0x502246(0x1b5)],this[_0x502246(0x1ac)][_0x502246(0x1b2)]=this[_0x502246(0x215)],await this[_0x502246(0x21a)](_0x467b52,_0x498d2b,_0x502246(0x159));}else await this[_0x502246(0x1c6)](_0x498d2b,_0x467b52);this[_0x502246(0x1bc)](),this[_0x502246(0x1f2)]=!0x0;}[_0x239d7b(0x1bc)](){const _0x51fcfd=_0x239d7b,_0x3ec7f8=this[_0x51fcfd(0x1af)][_0x51fcfd(0x1e5)][_0x51fcfd(0x176)](_0x174557),_0x3513e6=this[_0x51fcfd(0x1af)][_0x51fcfd(0x1e5)][_0x51fcfd(0x176)](_0x1aaefb),_0x26da04=_0x3ec7f8[_0x51fcfd(0x17e)][_0x51fcfd(0x176)](this[_0x51fcfd(0x24c)]);_0x26da04&&_0x26da04[_0x51fcfd(0x16f)]>0x1?_0x3513e6[_0x51fcfd(0x223)]():this[_0x51fcfd(0x226)](_0x3ec7f8,_0x51fcfd(0x15c)+this[_0x51fcfd(0x24c)],()=>{const _0x30c6a9=_0x51fcfd;0x2===_0x3ec7f8[_0x30c6a9(0x17e)][_0x30c6a9(0x176)](this[_0x30c6a9(0x24c)])[_0x30c6a9(0x16f)]&&_0x3513e6[_0x30c6a9(0x223)]();});}async[_0x239d7b(0x1d6)](_0x3ec3c1,_0x3ce0e2,_0xd55f77,_0x1670d9){const _0x2b1c56=_0x239d7b;if(!this[_0x2b1c56(0x1a1)]&&this[_0x2b1c56(0x1f6)][_0x2b1c56(0x1b2)]==_0x3ce0e2){const _0x4c9e5d=this[_0x2b1c56(0x1bf)](_0xd55f77,_0x1670d9);await this[_0x2b1c56(0x250)](_0x4c9e5d),this[_0x2b1c56(0x19e)](_0x4c9e5d,_0x3ce0e2,_0xd55f77[_0x2b1c56(0x23c)])||this[_0x2b1c56(0x1d2)](_0x2b1c56(0x1c3));}}async[_0x239d7b(0x1b0)](){const _0x6e5e98=_0x239d7b;this[_0x6e5e98(0x163)]();const {locale:_0x14fa1d}=this[_0x6e5e98(0x1af)];let _0x228c28;try{_0x228c28=await this[_0x6e5e98(0x174)][_0x6e5e98(0x1fd)]();}catch{const _0x57ab71=_0x18fee4(_0x14fa1d,_0x6e5e98(0x1de));return void this[_0x6e5e98(0x255)](_0x57ab71);}const _0x2a9543=_0x228c28[_0x6e5e98(0x251)]||_0x228c28[_0x6e5e98(0x166)];if(this[_0x6e5e98(0x168)]!==_0x2a9543[_0x6e5e98(0x23c)]){const _0x544d8c=_0x18fee4(_0x14fa1d,_0x6e5e98(0x1a3));return void this[_0x6e5e98(0x255)](_0x544d8c);}await this[_0x6e5e98(0x169)](this[_0x6e5e98(0x1af)][_0x6e5e98(0x1b6)][_0x6e5e98(0x1fa)][_0x6e5e98(0x1cc)][_0x6e5e98(0x230)](),!0x0);}[_0x239d7b(0x163)](){const _0x5187ed=_0x239d7b;this[_0x5187ed(0x174)][_0x5187ed(0x173)](),this[_0x5187ed(0x244)]=[],clearTimeout(this[_0x5187ed(0x1ff)]),this[_0x5187ed(0x1e9)](this[_0x5187ed(0x174)]);}[_0x239d7b(0x211)](_0x50fdbb){const _0x396010=_0x239d7b,_0x250862=this[_0x396010(0x1af)][_0x396010(0x1e5)][_0x396010(0x176)](_0x174557);this[_0x396010(0x226)](_0x250862,_0x396010(0x15c)+this[_0x396010(0x24c)],(_0x4bdb96,{session:_0x59e31d})=>{const _0x5a1662=_0x396010;if(_0x59e31d['id']===_0x250862[_0x5a1662(0x1c8)]){_0x4bdb96[_0x5a1662(0x1ba)]();const _0xcd149f=this[_0x5a1662(0x1af)][_0x5a1662(0x1e5)][_0x5a1662(0x202)](_0x5a1662(0x213))&&this[_0x5a1662(0x1af)][_0x5a1662(0x1e5)][_0x5a1662(0x176)](_0x5a1662(0x213));let _0x37987a=_0x59e31d[_0x5a1662(0x1df)];_0xcd149f&&_0xcd149f[_0x5a1662(0x20c)]&&(_0x37987a=_0x37987a[_0x5a1662(0x161)](_0x15b8c7=>_0x5a1662(0x1e2)!==_0x15b8c7)),this[_0x5a1662(0x1af)][_0x5a1662(0x1e5)][_0x5a1662(0x176)](_0x5a1662(0x191))[_0x5a1662(0x1b9)](_0x37987a,this[_0x5a1662(0x24c)]);}}),_0x250862[_0x396010(0x237)](this[_0x396010(0x24c)],_0x50fdbb);}[_0x239d7b(0x1cb)](){const _0x100271=_0x239d7b,_0x50d5dc=this[_0x100271(0x1af)][_0x100271(0x1f3)][_0x100271(0x18c)];this[_0x100271(0x1af)][_0x100271(0x1f3)][_0x100271(0x18c)]=(..._0x2e1364)=>{const _0x47317a=_0x100271;if(!_0x2e1364[_0x2e1364[_0x47317a(0x16f)]-0x1][_0x47317a(0x1b3)])throw new _0x299d01(_0x47317a(0x19a),this);_0x50d5dc[_0x47317a(0x164)](this[_0x47317a(0x1af)][_0x47317a(0x1f3)],_0x2e1364);};}[_0x239d7b(0x1c9)](){const _0x28a204=_0x239d7b;this[_0x28a204(0x1af)][_0x28a204(0x1f3)]['on'](_0x28a204(0x158),(_0x5e2d03,[_0x430eb2])=>{const _0x2cea46=_0x28a204;if(this[_0x2cea46(0x1f6)][_0x2cea46(0x1b2)])throw new _0x299d01(_0x2cea46(0x1e7),this);_0x5e2d03[_0x2cea46(0x224)](),this[_0x2cea46(0x1ad)]();const _0x4303fe=this[_0x2cea46(0x1af)][_0x2cea46(0x20b)][_0x2cea46(0x176)](_0x2cea46(0x171)),_0x45d55d=this[_0x2cea46(0x1eb)](_0x430eb2,_0x4303fe);0x0==_0x45d55d[_0x2cea46(0x16f)]&&_0x45d55d[_0x2cea46(0x157)](new _0x5490d2(0x0)),_0x5e2d03[_0x2cea46(0x236)]=this[_0x2cea46(0x169)](_0x45d55d)[_0x2cea46(0x1ab)](()=>{const _0x5880ee=_0x2cea46;this[_0x5880ee(0x1af)][_0x5880ee(0x1e5)][_0x5880ee(0x176)](_0xc7c81b)[_0x5880ee(0x1a7)](this),this[_0x5880ee(0x1af)][_0x5880ee(0x1f3)][_0x5880ee(0x1ef)](_0x5880ee(0x1ee));})[_0x2cea46(0x1d7)](_0x32a7dc=>this[_0x2cea46(0x1d2)](_0x2cea46(0x218),_0x32a7dc))[_0x2cea46(0x180)](()=>this[_0x2cea46(0x18f)]());},{'priority':_0x28a204(0x246)}),this[_0x28a204(0x1af)]['on'](_0x28a204(0x21e),async(_0x57c90e,[_0x562c0f,_0x340646])=>{const _0x35186d=_0x28a204;_0x57c90e[_0x35186d(0x224)]();const _0x3704cd=this[_0x35186d(0x1af)][_0x35186d(0x1b6)][_0x35186d(0x1fa)][_0x35186d(0x221)](_0x562c0f);if(!this[_0x35186d(0x18b)][_0x35186d(0x202)](_0x562c0f)){const _0x3a338c=_0x340646&&_0x340646[_0x35186d(0x1f3)]?_0x340646[_0x35186d(0x1f3)]:'',_0x38cc6e=_0x340646&&_0x340646[_0x35186d(0x18e)]?_0x340646[_0x35186d(0x18e)]:{};await this[_0x35186d(0x189)](_0x562c0f,_0x3a338c,_0x38cc6e);}this[_0x35186d(0x1af)][_0x35186d(0x1b6)][_0x35186d(0x24f)]({'isUndoable':!0x1},()=>{const _0x1ba20a=_0x35186d;_0x3704cd[_0x1ba20a(0x19b)]=!0x0,this[_0x1ba20a(0x1af)][_0x1ba20a(0x1b6)][_0x1ba20a(0x1fa)][_0x1ba20a(0x206)][_0x1ba20a(0x162)](_0x3704cd);});},{'priority':_0x28a204(0x246)});}async[_0x239d7b(0x250)](_0x25de0f){const _0x4cbad1=_0x239d7b,_0x5e3496=this[_0x4cbad1(0x1af)][_0x4cbad1(0x1e5)][_0x4cbad1(0x176)](_0x54ce18),{connection:_0x5ea9db}=this[_0x4cbad1(0x1af)][_0x4cbad1(0x1e5)][_0x4cbad1(0x176)](_0xc7c81b),_0x59fb5d=new Set();for(const _0x5b0907 of _0x25de0f){const _0x37206d=_0x5b0907[_0x4cbad1(0x242)];_0x37206d&&!_0x5e3496[_0x4cbad1(0x1ed)](_0x37206d)&&_0x59fb5d[_0x4cbad1(0x1fe)](_0x37206d);}if(0x0===_0x59fb5d[_0x4cbad1(0x207)])return;const _0x5255e6=await _0x386734[_0x4cbad1(0x15d)](_0x5ea9db,Array[_0x4cbad1(0x1bb)](_0x59fb5d));for(const _0x2d3288 of _0x5255e6)_0x5e3496[_0x4cbad1(0x1ed)](_0x2d3288['id'])||_0x5e3496[_0x4cbad1(0x1ca)](_0x2d3288);}[_0x239d7b(0x1eb)](_0x58c692,_0x23add8={}){const _0x3380a7=_0x239d7b,_0x527250=this[_0x3380a7(0x1af)][_0x3380a7(0x1b6)],_0x1091f1=[];let _0x4696d7=0x0;const _0x26cc89=_0x3380a7(0x170)==typeof _0x58c692?{'main':_0x58c692}:_0x58c692;for(const _0x3b01f3 of Object[_0x3380a7(0x205)](_0x26cc89)){if(!this[_0x3380a7(0x1f6)][_0x3380a7(0x23f)][_0x3380a7(0x202)](_0x3b01f3))throw new _0x299d01(_0x3380a7(0x1c0),this);const _0x4f8670=this[_0x3380a7(0x1af)][_0x3380a7(0x1f3)][_0x3380a7(0x21c)](_0x26cc89[_0x3b01f3]),_0x38ef7a=this[_0x3380a7(0x1f6)][_0x3380a7(0x221)](_0x3b01f3),_0x38b7d4=new _0x4e26e3(_0x527250[_0x3380a7(0x1e6)](_0x38ef7a,0x0),_0x4f8670,_0x4696d7++);_0x1091f1[_0x3380a7(0x157)](_0x38b7d4);for(const [_0x3fa702,_0x9f06c]of _0x4f8670[_0x3380a7(0x203)]){const _0x2085a6=_0x527250[_0x3380a7(0x204)](_0x527250[_0x3380a7(0x23e)](_0x38ef7a,_0x9f06c[_0x3380a7(0x22f)][_0x3380a7(0x21b)][_0x3380a7(0x1f7)]()),_0x527250[_0x3380a7(0x23e)](_0x38ef7a,_0x9f06c[_0x3380a7(0x190)][_0x3380a7(0x21b)][_0x3380a7(0x1f7)]())),_0xc9c944=new _0x2324d9(_0x3fa702,null,_0x2085a6,_0x527250[_0x3380a7(0x203)],!0x0,_0x4696d7++);_0x1091f1[_0x3380a7(0x157)](_0xc9c944);}}if(_0x23add8)for(const [_0x13ad89,_0x363d3c]of Object[_0x3380a7(0x183)](_0x23add8)){const _0x3ec7d7=_0x527250[_0x3380a7(0x1fa)][_0x3380a7(0x221)](_0x13ad89);if(!_0x3ec7d7)throw new _0x299d01(_0x3380a7(0x181),null);for(const [_0x1cd043,_0x4695ce]of Object[_0x3380a7(0x183)](_0x363d3c))if(null!==_0x4695ce){const _0x8b16da=new _0xca8d75(_0x3ec7d7,_0x1cd043,null,_0x4695ce,_0x4696d7++);_0x1091f1[_0x3380a7(0x157)](_0x8b16da);}}return _0x1091f1;}async[_0x239d7b(0x189)](_0x3c8210,_0x2efb97,_0x56c845){const _0x492a23=_0x239d7b;this[_0x492a23(0x1eb)]({[_0x3c8210]:_0x2efb97},{[_0x3c8210]:_0x56c845})[_0x492a23(0x167)]((_0x3cb91b,_0x3ef698)=>{const _0x431518=_0x492a23;_0x3cb91b[_0x431518(0x249)]=this[_0x431518(0x1f6)][_0x431518(0x1b2)]+_0x3ef698,_0x3cb91b[_0x431518(0x233)]=!0x0,this[_0x431518(0x1b1)](_0x3cb91b);}),this[_0x492a23(0x201)](),await this[_0x492a23(0x21f)]();}async[_0x239d7b(0x1c6)](_0x19ac9a,_0x2db9d6){const _0x315837=_0x239d7b;let _0x98665c;this[_0x315837(0x215)]=_0x19ac9a[_0x315837(0x1b5)];const _0x1ae077=_0x19ac9a[_0x315837(0x239)]&&!_0x19ac9a[_0x315837(0x21d)],_0x58e640=_0x1ae077?0x0:_0x19ac9a[_0x315837(0x1f3)][_0x315837(0x249)];if(_0x2db9d6[_0x315837(0x167)](_0x7cb3f=>{const _0x20c7ce=_0x315837;_0x7cb3f[_0x20c7ce(0x233)]=!0x0,_0x7cb3f[_0x20c7ce(0x1a5)]=_0x19ac9a[_0x20c7ce(0x1be)],_0x7cb3f[_0x20c7ce(0x242)]=null;}),_0x1ae077)_0x98665c=_0x2db9d6,this[_0x315837(0x235)](_0x98665c,_0x1ae077);else{if(_0x19ac9a[_0x315837(0x21d)]){const _0x16e08b=this[_0x315837(0x1eb)](_0x19ac9a[_0x315837(0x21d)]);this[_0x315837(0x1f6)][_0x315837(0x1cc)][_0x315837(0x1b2)]=-_0x16e08b[_0x315837(0x16f)],_0x16e08b[_0x315837(0x167)](_0x33ca7d=>{const _0x4650a1=_0x315837;_0x33ca7d[_0x4650a1(0x249)]-=_0x16e08b[_0x4650a1(0x16f)],_0x33ca7d[_0x4650a1(0x1a5)]=_0x19ac9a[_0x4650a1(0x1be)],_0x33ca7d[_0x4650a1(0x233)]=!0x0,_0x33ca7d[_0x4650a1(0x242)]=null;}),this[_0x315837(0x235)](_0x16e08b,!0x0),this[_0x315837(0x1ac)][_0x315837(0x1b2)]=-_0x16e08b[_0x315837(0x16f)]+this[_0x315837(0x215)],this[_0x315837(0x1da)](_0x16e08b);}this[_0x315837(0x1f6)][_0x315837(0x1cc)][_0x315837(0x1b2)]=_0x58e640,_0x98665c=this[_0x315837(0x1bf)](_0x19ac9a[_0x315837(0x1f3)],_0x19ac9a[_0x315837(0x220)]),await this[_0x315837(0x250)](_0x98665c),this[_0x315837(0x235)](_0x98665c,_0x1ae077);}_0x19ac9a[_0x315837(0x23c)]&&(this[_0x315837(0x184)][_0x315837(0x178)](_0x98665c,_0x19ac9a[_0x315837(0x23c)]),this[_0x315837(0x168)]=_0x19ac9a[_0x315837(0x23c)]),this[_0x315837(0x1ac)][_0x315837(0x1b2)]=_0x58e640+this[_0x315837(0x215)],this[_0x315837(0x1da)](_0x98665c),_0x2db9d6[_0x315837(0x161)](_0x3d0889=>{const _0x4f2653=_0x315837,_0x249b92=this[_0x4f2653(0x227)](_0x3d0889);return _0x249b92&&!this[_0x4f2653(0x18b)][_0x4f2653(0x202)](_0x249b92);})[_0x315837(0x167)]((_0x3f2870,_0x367ac4)=>{const _0x5e5162=_0x315837;_0x3f2870[_0x5e5162(0x249)]=this[_0x5e5162(0x1f6)][_0x5e5162(0x1b2)]+_0x367ac4,this[_0x5e5162(0x1b1)](_0x3f2870);}),this[_0x315837(0x198)]()?(this[_0x315837(0x208)]=0x0,this[_0x315837(0x201)](!0x0),await this[_0x315837(0x21f)]()):(this[_0x315837(0x1a1)]=!0x1,this[_0x315837(0x18f)]());}[_0x239d7b(0x1d2)](_0x2a3682,_0x27d941){const _0x5c1227=_0x239d7b,_0x182130=_0x27d941&&_0x27d941[_0x5c1227(0x17a)];if(_0x182130&&_0x182130[_0x5c1227(0x20a)](_0x5c1227(0x24d)))throw _0x27d941;const _0x45f766=this[_0x5c1227(0x1af)][_0x5c1227(0x1e5)][_0x5c1227(0x176)](_0xc7c81b);throw this[_0x5c1227(0x1a1)]=!0x0,_0x45f766[_0x5c1227(0x173)](),this[_0x5c1227(0x1af)][_0x5c1227(0x231)](_0x5c1227(0x248)),new _0x299d01(_0x2a3682,this[_0x5c1227(0x1af)],_0x182130?{'originalError':_0x182130}:void 0x0);}[_0x239d7b(0x1b1)](_0x17386b){const _0x4e861d=_0x239d7b;this[_0x4e861d(0x22e)][_0x4e861d(0x202)](_0x17386b)||(this[_0x4e861d(0x22e)][_0x4e861d(0x1fe)](_0x17386b),this[_0x4e861d(0x244)][_0x4e861d(0x157)](_0x17386b),this[_0x4e861d(0x253)]||_0x4e861d(0x1cd)==_0x17386b[_0x4e861d(0x192)]&&!_0x17386b[_0x4e861d(0x1c7)]||this[_0x4e861d(0x1ad)]());}[_0x239d7b(0x201)](_0x5d4f17=!0x1){const _0x19ef2e=_0x239d7b;!_0x5d4f17&&this[_0x19ef2e(0x1a1)]||(this[_0x19ef2e(0x1a1)]=!0x0,clearTimeout(this[_0x19ef2e(0x1ff)]),this[_0x19ef2e(0x1ff)]=setTimeout(()=>{const _0x4c0fce=_0x19ef2e;this[_0x4c0fce(0x20e)]()[_0x4c0fce(0x1ab)](_0x42071c=>{const _0x7f661b=_0x4c0fce;_0x42071c&&(this[_0x7f661b(0x18f)](),this[_0x7f661b(0x1a1)]=!0x1);})[_0x4c0fce(0x1d7)](_0x16139c=>{const _0x5d8473=_0x4c0fce;this[_0x5d8473(0x18f)](),this[_0x5d8473(0x1a1)]=!0x1,function(_0x39938f){const _0x3ca9e1=_0x5d8473;return _0x39938f[_0x3ca9e1(0x17a)][_0x3ca9e1(0x20a)](_0x3ca9e1(0x232))||_0x39938f[_0x3ca9e1(0x17a)][_0x3ca9e1(0x20a)](_0x3ca9e1(0x15b))||_0x39938f[_0x3ca9e1(0x17a)][_0x3ca9e1(0x20a)](_0x3ca9e1(0x256));}(_0x16139c)||this[_0x5d8473(0x1d2)](_0x16139c[_0x5d8473(0x17a)],_0x16139c);});},this[_0x19ef2e(0x208)]));}[_0x239d7b(0x21f)](){return new Promise(_0x8237f9=>{const _0x4f9c61=_0xeaa5;this['on'](_0x4f9c61(0x23d),()=>{_0x8237f9();});});}async[_0x239d7b(0x20e)](){const _0x3835b5=_0x239d7b,_0x631b4e=this[_0x3835b5(0x1af)][_0x3835b5(0x1e5)][_0x3835b5(0x176)](_0x1aaefb);if(this[_0x3835b5(0x17b)]()&&(_0x631b4e[_0x3835b5(0x223)](),this[_0x3835b5(0x1b7)]=!0x1),!this[_0x3835b5(0x198)]())return!0x0;const _0x401651=[...this[_0x3835b5(0x244)]];for(const _0x325080 of _0x401651)_0x325080[_0x3835b5(0x1f5)]=this[_0x3835b5(0x1f6)][_0x3835b5(0x1cc)][_0x3835b5(0x1d3)](_0x325080);const _0x18649b=this[_0x3835b5(0x184)][_0x3835b5(0x1f4)](_0x401651),_0xc49c57=Q++,_0x450c03=this[_0x3835b5(0x1a8)](_0x401651),_0x540d45=await this[_0x3835b5(0x174)][_0x3835b5(0x259)](_0x450c03,_0x450c03[_0x3835b5(0x249)],_0x18649b);try{return await this[_0x3835b5(0x21a)](_0x401651,_0x540d45,_0xc49c57);}catch(_0x5e982b){return this[_0x3835b5(0x1d2)](_0x3835b5(0x245),_0x5e982b);}}async[_0x239d7b(0x21a)](_0x1a763b,_0x41610b,_0x527b26){const _0x1e6b0c=_0x239d7b;if(_0x1e6b0c(0x175)in _0x41610b)throw _0x41610b[_0x1e6b0c(0x175)];let _0x285c6d=!0x1;if(_0x41610b[_0x1e6b0c(0x239)]){_0x41610b[_0x1e6b0c(0x23c)]&&(this[_0x1e6b0c(0x168)]=_0x41610b[_0x1e6b0c(0x23c)]),this[_0x1e6b0c(0x244)]=this[_0x1e6b0c(0x244)][_0x1e6b0c(0x161)](_0x4021e6=>!_0x1a763b[_0x1e6b0c(0x1cf)](_0x4021e6));for(const _0x19b2f1 of _0x1a763b)_0x19b2f1[_0x1e6b0c(0x1a5)]=_0x1e6b0c(0x1c1)in _0x41610b&&_0x41610b[_0x1e6b0c(0x1c1)]||void 0x0;Y(_0x1a763b,_0x41610b[_0x1e6b0c(0x1b2)]-_0x1a763b[_0x1e6b0c(0x16f)]),this[_0x1e6b0c(0x1da)](_0x1a763b);const _0x5cd017=_0x1a763b[_0x1e6b0c(0x161)](_0x272768=>{const _0x40cb3c=_0x1e6b0c;if(!_0x272768[_0x40cb3c(0x233)])return!0x1;const _0xb10b90=this[_0x40cb3c(0x227)](_0x272768);return _0xb10b90&&!this[_0x40cb3c(0x18b)][_0x40cb3c(0x202)](_0xb10b90);});Y(_0x5cd017,this[_0x1e6b0c(0x1f6)][_0x1e6b0c(0x1b2)]),this[_0x1e6b0c(0x235)](_0x5cd017),_0x285c6d=!0x0,this[_0x1e6b0c(0x208)]=this[_0x1e6b0c(0x254)];}else{const _0x2f0b65=this[_0x1e6b0c(0x1bf)](_0x41610b[_0x1e6b0c(0x1f3)],_0x41610b[_0x1e6b0c(0x220)])[_0x1e6b0c(0x161)](_0x4d36fc=>_0x4d36fc[_0x1e6b0c(0x249)]>=this[_0x1e6b0c(0x16d)]);_0x2f0b65[_0x1e6b0c(0x167)](_0x1d543b=>this[_0x1e6b0c(0x247)](_0x1d543b)),this[_0x1e6b0c(0x244)]=this[_0x1e6b0c(0x244)][_0x1e6b0c(0x161)](_0x1b3392=>!_0x1b3392[_0x1e6b0c(0x233)]||!this[_0x1e6b0c(0x18b)][_0x1e6b0c(0x202)](this[_0x1e6b0c(0x227)](_0x1b3392))),this[_0x1e6b0c(0x244)][_0x1e6b0c(0x16f)]&&Y(this[_0x1e6b0c(0x244)],this[_0x1e6b0c(0x244)][0x0][_0x1e6b0c(0x249)]),await this[_0x1e6b0c(0x250)](_0x2f0b65),_0x285c6d=this[_0x1e6b0c(0x19e)](_0x2f0b65,_0x41610b[_0x1e6b0c(0x1b2)],_0x41610b[_0x1e6b0c(0x23c)]),this[_0x1e6b0c(0x208)]=Math[_0x1e6b0c(0x15a)](this[_0x1e6b0c(0x208)]/0x2);}return _0x285c6d?!this[_0x1e6b0c(0x198)]()||(this[_0x1e6b0c(0x201)](!0x0),!0x1):this[_0x1e6b0c(0x1d2)](_0x1e6b0c(0x1bd));}[_0x239d7b(0x19e)](_0x44ace7,_0x4b6eef,_0x17ff33){const _0xa342b=_0x239d7b;try{const _0x12cb1d={'document':this[_0xa342b(0x1f6)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x3c33a6,operationsB:_0xf5daf9,originalOperations:_0x33338b}=_0x11de3a(_0x44ace7,this[_0xa342b(0x244)],_0x12cb1d);Y(_0x3c33a6,this[_0xa342b(0x1f6)][_0xa342b(0x1b2)]),Y(_0xf5daf9,_0x4b6eef);for(const _0x87dae6 of _0x3c33a6){const _0x255b38=_0x33338b[_0xa342b(0x176)](_0x87dae6);_0x87dae6[_0xa342b(0x242)]=_0x255b38?_0x255b38[_0xa342b(0x242)]:null;}_0x17ff33&&(this[_0xa342b(0x184)][_0xa342b(0x178)](_0x44ace7,_0x17ff33),this[_0xa342b(0x168)]=_0x17ff33),this[_0xa342b(0x244)]=[..._0xf5daf9],this[_0xa342b(0x235)](_0x3c33a6),this[_0xa342b(0x1da)](_0x44ace7);}catch(_0x5e3e48){return console[_0xa342b(0x175)](_0x5e3e48),!0x1;}return!0x0;}[_0x239d7b(0x235)](_0x59bd21,_0x464b11=!0x1){const _0x31dcad=_0x239d7b;this[_0x31dcad(0x1af)][_0x31dcad(0x1b6)][_0x31dcad(0x24f)]({'isUndoable':!0x1,'isLocal':!0x1},_0x55b784=>{const _0x115a96=_0x31dcad;for(const _0x7ea65f of _0x59bd21)this[_0x115a96(0x22e)][_0x115a96(0x1fe)](_0x7ea65f),this[_0x115a96(0x247)](_0x7ea65f),_0x55b784[_0x115a96(0x1e3)][_0x115a96(0x179)](_0x7ea65f),this[_0x115a96(0x1af)][_0x115a96(0x1b6)][_0x115a96(0x1c2)](_0x7ea65f);});}[_0x239d7b(0x247)](_0x416801){const _0x24b3fe=_0x239d7b,_0x457b2d=this[_0x24b3fe(0x227)](_0x416801);_0x457b2d&&this[_0x24b3fe(0x18b)][_0x24b3fe(0x1fe)](_0x457b2d);}[_0x239d7b(0x227)](_0x192bb4){const _0x43d993=_0x239d7b;let _0x346c99,_0x4208fe;switch(_0x192bb4[_0x43d993(0x192)]){case _0x43d993(0x1d4):_0x346c99=_0x192bb4[_0x43d993(0x154)][_0x43d993(0x16a)];break;case _0x43d993(0x1cd):if(_0x4208fe=_0x192bb4[_0x43d993(0x229)],!_0x4208fe)return null;_0x346c99=_0x4208fe[_0x43d993(0x16a)];break;case _0x43d993(0x195):_0x346c99=_0x192bb4[_0x43d993(0x16a)];break;case _0x43d993(0x200):_0x346c99=_0x192bb4[_0x43d993(0x1c4)];break;case _0x43d993(0x1f0):_0x346c99=_0x192bb4[_0x43d993(0x212)][_0x43d993(0x16a)];break;default:return null;}return _0x346c99[_0x43d993(0x188)];}[_0x239d7b(0x1da)](_0x5dc43b){const _0x4b45d0=_0x239d7b;_0x5dc43b[_0x4b45d0(0x167)](_0x3e2d17=>{const _0x55da4e=_0x4b45d0,_0xc0ea56=_0x3e2d17[_0x55da4e(0x1e0)]();_0xc0ea56[_0x55da4e(0x242)]=_0x3e2d17[_0x55da4e(0x242)],_0xc0ea56[_0x55da4e(0x233)]=!!_0x3e2d17[_0x55da4e(0x233)],_0xc0ea56[_0x55da4e(0x1a5)]=_0x3e2d17[_0x55da4e(0x1a5)],_0xc0ea56[_0x55da4e(0x249)]+=this[_0x55da4e(0x215)],_0x3e2d17[_0x55da4e(0x17d)]&&this[_0x55da4e(0x18d)][_0x55da4e(0x1fe)](_0xc0ea56),this[_0x55da4e(0x1ac)][_0x55da4e(0x179)](_0xc0ea56);});}[_0x239d7b(0x255)](_0x2a5367){const _0x49698b=_0x239d7b,_0x425ed8=this[_0x49698b(0x1af)][_0x49698b(0x1e5)][_0x49698b(0x176)](_0x49698b(0x194)),_0x41cd1=this[_0x49698b(0x1af)][_0x49698b(0x1ec)];_0x2a5367||(_0x2a5367=_0x18fee4(_0x41cd1,_0x49698b(0x19f))),_0x425ed8[_0x49698b(0x24e)](_0x2a5367,{'title':_0x18fee4(_0x41cd1,_0x49698b(0x1aa)),'namespace':_0x49698b(0x199)}),this[_0x49698b(0x15e)]=!0x0,clearTimeout(this[_0x49698b(0x1ff)]),this[_0x49698b(0x244)]=[],this[_0x49698b(0x1af)][_0x49698b(0x1e5)][_0x49698b(0x176)](_0xc7c81b)[_0x49698b(0x173)]();}[_0x239d7b(0x1ad)](){const _0x3b3552=_0x239d7b;this[_0x3b3552(0x253)]||(this[_0x3b3552(0x253)]=this[_0x3b3552(0x1af)][_0x3b3552(0x1e5)][_0x3b3552(0x176)](_0x5ba1a5)[_0x3b3552(0x1fe)](_0x18fee4(this[_0x3b3552(0x1af)][_0x3b3552(0x1ec)],_0x3b3552(0x16b))));}[_0x239d7b(0x18f)](){const _0x1d1f3d=_0x239d7b;this[_0x1d1f3d(0x253)]&&(this[_0x1d1f3d(0x1af)][_0x1d1f3d(0x1e5)][_0x1d1f3d(0x176)](_0x5ba1a5)[_0x1d1f3d(0x165)](this[_0x1d1f3d(0x253)]),this[_0x1d1f3d(0x253)]=null);}[_0x239d7b(0x1a8)](_0x11d66a){const _0xc8438a=_0x239d7b,_0x3c2e2b=_0x11d66a[_0xc8438a(0x15f)](_0x3ed132=>_0x3ed132[_0xc8438a(0x1fb)]());return this[_0xc8438a(0x22c)][_0xc8438a(0x241)](_0x3c2e2b);}[_0x239d7b(0x1bf)](_0x5bc8c7,_0x568177){const _0x438e33=_0x239d7b;return this[_0x438e33(0x22c)][_0x438e33(0x155)](_0x5bc8c7)[_0x438e33(0x15f)]((_0x420def,_0x122264)=>{const _0x220158=_0x438e33,_0x2bc8f9=_0x220158(0x158)==_0x568177[_0x122264][_0x220158(0x192)];if(_0x220158(0x16c)==_0x420def[_0x220158(0x1f1)]){const _0x23e64d=_0x420def[_0x220158(0x154)][_0x220158(0x16a)];!this[_0x220158(0x1f6)][_0x220158(0x221)](_0x23e64d)&&(this[_0x220158(0x1f6)][_0x220158(0x240)](_0x220158(0x1c5),_0x23e64d)[_0x220158(0x23b)]=!0x1);}const _0x3b7aca=_0x587caa[_0x220158(0x217)](_0x420def,this[_0x220158(0x1f6)]);return _0x3b7aca[_0x220158(0x1f5)]=_0x420def[_0x220158(0x1f5)],_0x3b7aca[_0x220158(0x233)]=_0x2bc8f9,_0x3b7aca[_0x220158(0x242)]=_0x2bc8f9?null:_0x568177[_0x122264][_0x220158(0x1d5)],_0x3b7aca[_0x220158(0x17d)]=_0x220158(0x225)===_0x568177[_0x122264][_0x220158(0x192)],_0x3b7aca[_0x220158(0x1a5)]=_0x568177[_0x122264][_0x220158(0x1a5)],_0x3b7aca;});}[_0x239d7b(0x1f8)](){const _0x2c8bc0=_0x239d7b;this[_0x2c8bc0(0x1b7)]=!0x0,this[_0x2c8bc0(0x17b)]()?this[_0x2c8bc0(0x201)]():this[_0x2c8bc0(0x1b7)]=!0x1;}[_0x239d7b(0x17b)](){const _0x2a3a44=_0x239d7b,_0x2b930a=this[_0x2a3a44(0x1af)][_0x2a3a44(0x1e5)][_0x2a3a44(0x176)](_0x174557)[_0x2a3a44(0x17e)][_0x2a3a44(0x176)](this[_0x2a3a44(0x24c)]);return!this[_0x2a3a44(0x1af)][_0x2a3a44(0x238)]&&!!_0x2b930a&&_0x2b930a[_0x2a3a44(0x16f)]>0x1&&this[_0x2a3a44(0x1b7)];}[_0x239d7b(0x198)](){const _0xf2e963=_0x239d7b;return this[_0xf2e963(0x244)][_0xf2e963(0x16f)]>0x0||this[_0xf2e963(0x17b)]();}}export{l as RealTimeCollaborationClient};class X extends Error{}function Y(_0x18a4ab,_0x269dd6){const _0x5b32b0=_0x239d7b;for(const _0x2010cf of _0x18a4ab)_0x2010cf[_0x5b32b0(0x249)]=_0x269dd6++;}class Z{[_0x239d7b(0x24b)];[_0x239d7b(0x19c)];constructor(_0x20a85e){const _0x25066d=_0x239d7b;this[_0x25066d(0x24b)]=_0x20a85e,this[_0x25066d(0x19c)]=new WeakMap();}[_0x239d7b(0x1f4)](_0x292b77){const _0x4dfe6b=_0x239d7b;let _0x3a2896=_0x292b77[_0x4dfe6b(0x16f)];for(;_0x3a2896--;){const _0x5392d2=_0x292b77[_0x3a2896];if(!this[_0x4dfe6b(0x24b)][_0x4dfe6b(0x202)](_0x5392d2)){if(!this[_0x4dfe6b(0x19c)][_0x4dfe6b(0x202)](_0x5392d2)){const _0x3d68d7=_0x4da281()[_0x4dfe6b(0x1f7)](0x1,0x12);this[_0x4dfe6b(0x19c)][_0x4dfe6b(0x18c)](_0x5392d2,_0x3d68d7);}return this[_0x4dfe6b(0x19c)][_0x4dfe6b(0x176)](_0x5392d2);}}}[_0x239d7b(0x178)](_0x3332a0,_0x2b64ac){const _0x4d12c7=_0x239d7b;if(!_0x2b64ac)return;let _0x5997e6=_0x3332a0[_0x4d12c7(0x16f)];for(;_0x5997e6--;){const _0x54ef23=_0x3332a0[_0x5997e6];this[_0x4d12c7(0x24b)][_0x4d12c7(0x202)](_0x54ef23)||this[_0x4d12c7(0x19c)][_0x4d12c7(0x18c)](_0x54ef23,_0x2b64ac);}}}