@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.12 → 46.0.1-alpha.14
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/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-real-time-collaboration",
|
|
3
|
-
"version": "46.0.1-alpha.
|
|
3
|
+
"version": "46.0.1-alpha.14",
|
|
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.
|
|
51
|
-
"@ckeditor/ckeditor5-comments": "46.0.1-alpha.
|
|
52
|
-
"@ckeditor/ckeditor5-core": "46.0.1-alpha.
|
|
53
|
-
"@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.
|
|
54
|
-
"@ckeditor/ckeditor5-engine": "46.0.1-alpha.
|
|
55
|
-
"@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.
|
|
56
|
-
"@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.
|
|
57
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.
|
|
58
|
-
"@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.
|
|
59
|
-
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.
|
|
60
|
-
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.
|
|
61
|
-
"ckeditor5": "46.0.1-alpha.
|
|
62
|
-
"ckeditor5-collaboration": "46.0.1-alpha.
|
|
50
|
+
"@ckeditor/ckeditor5-cloud-services": "46.0.1-alpha.14",
|
|
51
|
+
"@ckeditor/ckeditor5-comments": "46.0.1-alpha.14",
|
|
52
|
+
"@ckeditor/ckeditor5-core": "46.0.1-alpha.14",
|
|
53
|
+
"@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.14",
|
|
54
|
+
"@ckeditor/ckeditor5-engine": "46.0.1-alpha.14",
|
|
55
|
+
"@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.14",
|
|
56
|
+
"@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.14",
|
|
57
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.14",
|
|
58
|
+
"@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.14",
|
|
59
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.14",
|
|
60
|
+
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.14",
|
|
61
|
+
"ckeditor5": "46.0.1-alpha.14",
|
|
62
|
+
"ckeditor5-collaboration": "46.0.1-alpha.14",
|
|
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
|
-
function
|
|
23
|
+
function _0x17fe(){const _0xc5f299=['2429565ENinJu','28twhIzu','2796516LsIDdc','1422208JwcpcM','768393QMOtln','877611VzYBIm','color','setTemplate','fire','name','bindTemplate','focus','span','tag','7179856ReqOem','getBackgroundColorClass','274359bsKuan','ck-user__full-name','button','true','userView','execute','ck-presence-list__marker','presentation','element','ck-presence-list__dropdown-list-item'];_0x17fe=function(){return _0xc5f299;};return _0x17fe();}function _0x4e9c(_0x46afa1,_0x7e6886){const _0x17fe7b=_0x17fe();return _0x4e9c=function(_0x4e9c61,_0x4b4d9f){_0x4e9c61=_0x4e9c61-0x1d2;let _0x14e85c=_0x17fe7b[_0x4e9c61];return _0x14e85c;},_0x4e9c(_0x46afa1,_0x7e6886);}const _0x49f32a=_0x4e9c;(function(_0x5eb7f8,_0x2e83f9){const _0x3d161f=_0x4e9c,_0x6535f5=_0x5eb7f8();while(!![]){try{const _0x3b7196=parseInt(_0x3d161f(0x1d5))/0x1+parseInt(_0x3d161f(0x1d4))/0x2+-parseInt(_0x3d161f(0x1e1))/0x3*(-parseInt(_0x3d161f(0x1d2))/0x4)+-parseInt(_0x3d161f(0x1eb))/0x5+-parseInt(_0x3d161f(0x1d3))/0x6+parseInt(_0x3d161f(0x1d6))/0x7+-parseInt(_0x3d161f(0x1df))/0x8;if(_0x3b7196===_0x2e83f9)break;else _0x6535f5['push'](_0x6535f5['shift']());}catch(_0x1dc5e3){_0x6535f5['push'](_0x6535f5['shift']());}}}(_0x17fe,0x60928));import{ListItemView as _0x200f48}from'ckeditor5/src/ui.js';import{UserView as _0x8e8699}from'ckeditor5-collaboration/src/collaboration-core.js';export class PresenceDropdownListItemView extends _0x200f48{[_0x49f32a(0x1e5)];constructor(_0x396a66,_0x695bcd,_0x1b4c6b){const _0x5dd19b=_0x49f32a;super(_0x396a66);const _0x39da13=this[_0x5dd19b(0x1db)];this[_0x5dd19b(0x1e5)]=new _0x8e8699(_0x396a66,_0x695bcd);const _0x39670d={'tag':'li','attributes':{'class':['ck',_0x5dd19b(0x1ea)],'tabindex':-0x1,'role':_0x5dd19b(0x1e8),'aria-label':_0x695bcd[_0x5dd19b(0x1da)]},'children':[this[_0x5dd19b(0x1e5)],{'tag':_0x5dd19b(0x1dd),'attributes':{'class':['ck',_0x5dd19b(0x1e2)]},'children':[{'text':_0x695bcd[_0x5dd19b(0x1da)]}]},{'tag':_0x5dd19b(0x1dd),'attributes':{'class':['ck',_0x5dd19b(0x1e7),_0x695bcd[_0x5dd19b(0x1d7)][_0x5dd19b(0x1e0)]()],'aria-hidden':_0x5dd19b(0x1e4)}}]};_0x1b4c6b&&(_0x39670d[_0x5dd19b(0x1de)]=_0x5dd19b(0x1e3),_0x39670d['on']={'click':_0x39da13['to'](()=>this[_0x5dd19b(0x1d9)](_0x5dd19b(0x1e6)))}),this[_0x5dd19b(0x1d8)](_0x39670d);}[_0x49f32a(0x1dc)](){const _0x44fcba=_0x49f32a;this[_0x44fcba(0x1e9)][_0x44fcba(0x1dc)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x220b(_0x536992,_0x59e947){const _0x22b6fc=_0x22b6();return _0x220b=function(_0x220b23,_0x165351){_0x220b23=_0x220b23-0x72;let _0x3e9c3e=_0x22b6fc[_0x220b23];return _0x3e9c3e;},_0x220b(_0x536992,_0x59e947);}function _0x22b6(){const _0x633119=['27356TASHDQ','set','_isScrollable','clientHeight','Connected\x20users\x20list\x20dropdown\x20menu','ariaLabel','innerHeight','ck-presence-list__dropdown-list-wrapper_scrollable','10ajfAlA','relatedTarget','presencelist:hide','render','items','ck-presence-list__dropdown-list-wrapper','bindTemplate','631807lyBjRy','max','ck-presence-list__dropdown-list','752MdhSGc','3FFzSfm','fire','1339656btOTAQ','.ck-presence-list__list','element','4ECQCJz','application','502895gpBQGg','ck-reset','resize','listenTo','checkIfScrollable','ck-list','listWrapperView','role','2110419DWQQGr','contains','ariaLabelledBy','843376IsoRhn','scrollHeight','126610aimsJH','change','div','querySelector','window','.ck-balloon-panel_with-arrow','setTemplate'];_0x22b6=function(){return _0x633119;};return _0x22b6();}const _0x29ce36=_0x220b;(function(_0x20a91c,_0x309c14){const _0x4345d7=_0x220b,_0x134dae=_0x20a91c();while(!![]){try{const _0x31040a=parseInt(_0x4345d7(0x81))/0x1+-parseInt(_0x4345d7(0x7f))/0x2*(-parseInt(_0x4345d7(0x9b))/0x3)+parseInt(_0x4345d7(0x72))/0x4*(parseInt(_0x4345d7(0x74))/0x5)+parseInt(_0x4345d7(0x9d))/0x6+-parseInt(_0x4345d7(0x88))/0x7*(parseInt(_0x4345d7(0x9a))/0x8)+parseInt(_0x4345d7(0x7c))/0x9*(-parseInt(_0x4345d7(0x90))/0xa)+-parseInt(_0x4345d7(0x97))/0xb;if(_0x31040a===_0x309c14)break;else _0x134dae['push'](_0x134dae['shift']());}catch(_0x4834b0){_0x134dae['push'](_0x134dae['shift']());}}}(_0x22b6,0x33f89));import{ListView as _0x5db8c1,View as _0x13032c}from'ckeditor5/src/ui.js';import{global as _0x3eac68}from'ckeditor5/src/utils.js';import{getTranslation as _0x511010}from'../../common-translations.js';export class PresenceDropdownListView extends _0x13032c{[_0x29ce36(0x7a)];constructor(_0x33215a,_0x59ee31){const _0x17d1cc=_0x29ce36;super(_0x33215a);const _0x4911e5=this[_0x17d1cc(0x96)];this[_0x17d1cc(0x7a)]=new PresenceDropdownListWrapperView(_0x33215a,_0x59ee31),this[_0x17d1cc(0x87)]({'tag':_0x17d1cc(0x83),'attributes':{'tabindex':-0x1,'role':_0x17d1cc(0x73),'class':['ck',_0x17d1cc(0x99)],'aria-label':_0x511010(_0x33215a,_0x17d1cc(0x8c))},'children':[this[_0x17d1cc(0x7a)]],'on':{'mouseleave':_0x4911e5['to'](_0x600569=>{const _0x28dead=_0x17d1cc,_0x3a138c=_0x600569,_0xdb67fd=document[_0x28dead(0x84)](_0x28dead(0x9e)),_0x336ed3=document[_0x28dead(0x84)](_0x28dead(0x86));_0xdb67fd?.[_0x28dead(0x7d)](_0x3a138c[_0x28dead(0x91)])||_0x336ed3?.[_0x28dead(0x7d)](_0x3a138c[_0x28dead(0x91)])||this[_0x28dead(0x9c)](_0x28dead(0x92));})}});}}export class PresenceDropdownListWrapperView extends _0x5db8c1{constructor(_0x40187f,_0x2c82aa){const _0x193590=_0x29ce36;super(_0x40187f);const _0x239b79=this[_0x193590(0x96)];this[_0x193590(0x89)](_0x193590(0x8a),!0x1),this[_0x193590(0x87)]({'tag':_0x2c82aa?_0x193590(0x83):'ul','attributes':{'class':['ck',_0x193590(0x75),_0x193590(0x79),_0x193590(0x95),_0x239b79['if'](_0x193590(0x8a),_0x193590(0x8f))],'role':_0x239b79['to'](_0x193590(0x7b)),'aria-label':_0x239b79['to'](_0x193590(0x8d)),'aria-labelledby':_0x239b79['to'](_0x193590(0x7e))},'children':this[_0x193590(0x94)]}),this[_0x193590(0x77)](_0x3eac68[_0x193590(0x85)],_0x193590(0x76),()=>this[_0x193590(0x78)]()),this[_0x193590(0x94)]['on'](_0x193590(0x82),()=>this[_0x193590(0x78)]());}[_0x29ce36(0x93)](){const _0x51c15f=_0x29ce36;super[_0x51c15f(0x93)](),this[_0x51c15f(0x78)]();}[_0x29ce36(0x78)](){const _0x3cdac8=_0x29ce36,_0x30469a=this[_0x3cdac8(0x9f)];_0x30469a&&(this[_0x3cdac8(0x8a)]=Math[_0x3cdac8(0x98)](_0x30469a[_0x3cdac8(0x80)],_0x30469a[_0x3cdac8(0x8b)])>0.8*window[_0x3cdac8(0x8e)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b0604=_0x41d5;(function(_0x2afe84,_0x59c7ea){const _0x2d89b1=_0x41d5,_0x47cf06=_0x2afe84();while(!![]){try{const _0x1fca3a=-parseInt(_0x2d89b1(0x102))/0x1*(-parseInt(_0x2d89b1(0xfd))/0x2)+parseInt(_0x2d89b1(0xf6))/0x3*(-parseInt(_0x2d89b1(0xec))/0x4)+-parseInt(_0x2d89b1(0x100))/0x5*(parseInt(_0x2d89b1(0xe9))/0x6)+parseInt(_0x2d89b1(0x10b))/0x7*(parseInt(_0x2d89b1(0xe7))/0x8)+-parseInt(_0x2d89b1(0x105))/0x9*(parseInt(_0x2d89b1(0xf9))/0xa)+parseInt(_0x2d89b1(0x10a))/0xb*(parseInt(_0x2d89b1(0xea))/0xc)+-parseInt(_0x2d89b1(0xf5))/0xd;if(_0x1fca3a===_0x59c7ea)break;else _0x47cf06['push'](_0x47cf06['shift']());}catch(_0x1eb905){_0x47cf06['push'](_0x47cf06['shift']());}}}(_0x8bb4,0x56e2f));import{LabelView as _0x1dc763,View as _0x4c09d9}from'ckeditor5/src/ui.js';import{UserView as _0x3b467d}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x41d5(_0x390f89,_0x6862df){const _0x8bb4d=_0x8bb4();return _0x41d5=function(_0x41d5fd,_0x144185){_0x41d5fd=_0x41d5fd-0xe7;let _0x35d7e2=_0x8bb4d[_0x41d5fd];return _0x35d7e2;},_0x41d5(_0x390f89,_0x6862df);}function _0x8bb4(){const _0x437faa=['markerView','tooltipPosition','5ONsTTz','ck-presence-list__list-item__tooltip','28447NRtXEW','button','set','207YUgnJs','listitem','text','color','name','174911jMiclQ','987dSwKLC','23816WuhpkG','template','2394894nIpYkD','420sVyJYT','true','3156kJkYMu','tag','bindTemplate','isFocusable','userView','ck-presence-list__list-item','ck-presence-list__marker','hasTooltip','div','5043441XSXbNv','1161IXrZUY','execute','fire','103970mUtfmI','getBackgroundColorClass','setTemplate','span','50Lsxndo'];_0x8bb4=function(){return _0x437faa;};return _0x8bb4();}export class PresenceInlineListItemView extends _0x4c09d9{[_0x4b0604(0xf0)];[_0x4b0604(0xfe)];constructor(_0x33e72e,_0x335dd4,_0x3bfa7f){const _0xc1fd63=_0x4b0604;super(_0x33e72e);const _0x403302=this[_0xc1fd63(0xee)];this[_0xc1fd63(0x104)](_0xc1fd63(0xef),!0x1),this[_0xc1fd63(0x104)](_0xc1fd63(0xf3),!0x0),this[_0xc1fd63(0x104)](_0xc1fd63(0xff),''),this[_0xc1fd63(0xf0)]=new _0x3b467d(_0x33e72e,_0x335dd4),this[_0xc1fd63(0xfe)]=new lt(_0x33e72e,_0x335dd4);const _0x1c43b9=new _0x1dc763(_0x33e72e);_0x1c43b9[_0xc1fd63(0xe8)][_0xc1fd63(0xed)]=_0xc1fd63(0xfc),_0x1c43b9[_0xc1fd63(0x107)]=_0x335dd4[_0xc1fd63(0x109)];const _0x96a57c={'tag':_0xc1fd63(0xf4),'attributes':{'class':['ck',_0xc1fd63(0xf1)],'role':_0xc1fd63(0x106),'tabindex':_0x403302['to'](_0xc1fd63(0xef),_0x2839b1=>!!_0x2839b1&&0x0),'aria-labelledby':_0x1c43b9['id'],'data-cke-tooltip-text':this[_0xc1fd63(0xf0)][_0xc1fd63(0x109)],'data-cke-tooltip-position':_0x403302['to'](_0xc1fd63(0xff)),'data-cke-tooltip-disabled':_0x403302['to'](_0xc1fd63(0xf3),_0x3a5131=>!_0x3a5131),'data-cke-tooltip-class':_0xc1fd63(0x101)},'children':[this[_0xc1fd63(0xf0)],this[_0xc1fd63(0xfe)],_0x1c43b9]};_0x3bfa7f&&(_0x96a57c[_0xc1fd63(0xed)]=_0xc1fd63(0x103),_0x96a57c['on']={'click':_0x403302['to'](()=>this[_0xc1fd63(0xf8)](_0xc1fd63(0xf7)))}),this[_0xc1fd63(0xfb)](_0x96a57c);}}class lt extends _0x4c09d9{constructor(_0x4a31cd,_0xa8ef99){const _0x39add5=_0x4b0604;super(_0x4a31cd),this[_0x39add5(0xfb)]({'tag':_0x39add5(0xfc),'attributes':{'class':['ck',_0x39add5(0xf2),_0xa8ef99[_0x39add5(0x108)][_0x39add5(0xfa)]()],'aria-hidden':_0x39add5(0xeb)}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3f0a89=_0x544e;function _0x544e(_0x1c1219,_0x276962){const _0x32a77c=_0x32a7();return _0x544e=function(_0x544ec8,_0x1d30c7){_0x544ec8=_0x544ec8-0x1dd;let _0x52357e=_0x32a77c[_0x544ec8];return _0x52357e;},_0x544e(_0x1c1219,_0x276962);}(function(_0x79db9e,_0x4bb3f4){const _0x2a8435=_0x544e,_0xad4165=_0x79db9e();while(!![]){try{const _0x437c80=-parseInt(_0x2a8435(0x1df))/0x1*(-parseInt(_0x2a8435(0x1e0))/0x2)+-parseInt(_0x2a8435(0x202))/0x3*(parseInt(_0x2a8435(0x1f2))/0x4)+parseInt(_0x2a8435(0x1fc))/0x5*(parseInt(_0x2a8435(0x1f5))/0x6)+parseInt(_0x2a8435(0x1ea))/0x7*(parseInt(_0x2a8435(0x1e8))/0x8)+parseInt(_0x2a8435(0x206))/0x9*(parseInt(_0x2a8435(0x1f6))/0xa)+parseInt(_0x2a8435(0x1f4))/0xb+-parseInt(_0x2a8435(0x1e5))/0xc*(parseInt(_0x2a8435(0x1e2))/0xd);if(_0x437c80===_0x4bb3f4)break;else _0xad4165['push'](_0xad4165['shift']());}catch(_0x659486){_0xad4165['push'](_0xad4165['shift']());}}}(_0x32a7,0xa9b18));import{View as _0x2949ee}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x47419e}from'ckeditor5/src/utils.js';function _0x32a7(){const _0x3d40d2=['ck-presence-list__list','46149AVWAsm','setTemplate','.ck-balloon-panel_with-arrow','hasPopup','47493swxhPy','set','change:hasPopup','5EBQkWh','406398vNftcf','fire','11479MkBnlK','removeAttribute','createCollection','5172lxFubG','presencelist:hide','contains','4811656AkHBGy','render','7wvXQsg','Connected\x20users\x20list','presencelist:show','keystrokes','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','bindTemplate','aria-expanded','focus','220FwkWyn','div','738287EQQVLv','120GdbqxE','90lOLxpB','relatedTarget','setAttribute','element','listenTo','.ck-presence-list__dropdown-list','47410pdkbUN','querySelector','items','isExpanded','list'];_0x32a7=function(){return _0x3d40d2;};return _0x32a7();}import{getTranslation as _0x2a9d09}from'../../common-translations.js';export class PresenceInlineListView extends _0x2949ee{[_0x3f0a89(0x1fe)];[_0x3f0a89(0x1ed)];constructor(_0xb4231){const _0x3f7f83=_0x3f0a89;super(_0xb4231);const _0x3e5f17=this[_0x3f7f83(0x1ef)];this[_0x3f7f83(0x1fe)]=this[_0x3f7f83(0x1e4)](),this[_0x3f7f83(0x1ed)]=new _0x47419e(),this[_0x3f7f83(0x1dd)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x3f7f83(0x203)]({'tag':_0x3f7f83(0x1f3),'attributes':{'aria-haspopup':_0x3e5f17['if'](_0x3f7f83(0x205)),'aria-expanded':_0x3e5f17['to'](_0x3f7f83(0x1ff),_0x32182c=>this[_0x3f7f83(0x205)]&&String(_0x32182c)),'aria-label':_0x3e5f17['to'](_0x3f7f83(0x205),_0x1cbc63=>_0x2a9d09(_0xb4231,_0x1cbc63?_0x3f7f83(0x1ee):_0x3f7f83(0x1eb))),'role':_0x3f7f83(0x200),'tabindex':_0x3e5f17['to'](_0x3f7f83(0x205),_0x3b8cba=>!!_0x3b8cba&&0x0),'class':['ck',_0x3f7f83(0x201)]},'children':this[_0x3f7f83(0x1fe)],'on':{'mouseenter':_0x3e5f17['to'](()=>this[_0x3f7f83(0x1e1)](_0x3f7f83(0x1ec))),'mouseleave':_0x3e5f17['to'](_0x2ea9ee=>{const _0x42484f=_0x3f7f83,_0x461767=_0x2ea9ee,_0x2c8f02=document[_0x42484f(0x1fd)](_0x42484f(0x1fb)),_0x8d293e=document[_0x42484f(0x1fd)](_0x42484f(0x204));_0x2c8f02?.[_0x42484f(0x1e7)](_0x461767[_0x42484f(0x1f7)])||_0x8d293e?.[_0x42484f(0x1e7)](_0x461767[_0x42484f(0x1f7)])||this[_0x42484f(0x1e1)](_0x42484f(0x1e6));})}}),this['on'](_0x3f7f83(0x1de),(_0x8db2dc,_0x51e17c,_0x1b9644)=>{const _0x3a45a7=_0x3f7f83;this[_0x3a45a7(0x1f9)]&&(_0x1b9644?this[_0x3a45a7(0x1f9)][_0x3a45a7(0x1f8)](_0x3a45a7(0x1f0),String(this[_0x3a45a7(0x1ff)])):this[_0x3a45a7(0x1f9)][_0x3a45a7(0x1e3)](_0x3a45a7(0x1f0)));});}[_0x3f0a89(0x1f1)](){const _0x1db3ef=_0x3f0a89;this[_0x1db3ef(0x1f9)][_0x1db3ef(0x1f1)]();}[_0x3f0a89(0x1e9)](){const _0x1eb74f=_0x3f0a89;super[_0x1eb74f(0x1e9)](),this[_0x1eb74f(0x1ed)][_0x1eb74f(0x1fa)](this[_0x1eb74f(0x1f9)]);}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x50a5d8)());[_0x5978ba(0x14e)];static get[_0x5978ba(0x108)](){const _0x1cd81b=_0x5978ba;return[_0xa2343e,_0x1cd81b(0x10c),_0x1ec7be,_0x38b31f];}static get[_0x5978ba(0x12c)](){const _0x461491=_0x5978ba;return _0x461491(0x14b);}static get[_0x5978ba(0x137)](){return!0x0;}static get[_0x5978ba(0x129)](){return!0x0;}constructor(_0x470b43){const _0x2c569f=_0x5978ba;super(_0x470b43),this[_0x2c569f(0x14e)]=new Map();}async[_0x5978ba(0x11e)](){const _0x2392d7=_0x5978ba,_0x2c19bd=this[_0x2392d7(0x125)],_0x14da2a=_0x2c19bd[_0x2392d7(0x128)][_0x2392d7(0x100)](_0x2392d7(0x10c));if(_0x2c19bd[_0x2392d7(0x128)][_0x2392d7(0x100)](_0xa2343e)[_0x2392d7(0x11b)](this),_0x14da2a[_0x2392d7(0x110)]={'addCommentThread':async({channelId:_0x5caf1d,threadId:_0x4ff80a,comments:_0x25098f,resolvedAt:_0x4aa55b,resolvedBy:_0x14c9e1,context:_0x1370d2,attributes:_0x47699e})=>{const _0x23b13c=_0x2392d7,_0x476e41=await this[_0x23b13c(0x133)](_0x5caf1d)[_0x23b13c(0x162)]({'commentThreadId':_0x4ff80a,'comments':_0x25098f[_0x23b13c(0x151)](_0x513448=>function(_0x554639,_0x4d9353,_0x3bad9f){const _0x186a2c=_0x23b13c;return{'commentThreadId':_0x3bad9f,'commentId':_0x554639[_0x186a2c(0x112)],'userId':_0x554639[_0x186a2c(0x102)],'content':_0x554639[_0x186a2c(0x113)],'documentId':_0x4d9353,'createdAt':_0x554639[_0x186a2c(0x105)],'attributes':_0x554639[_0x186a2c(0x117)]||{}};}(_0x513448,_0x5caf1d,_0x4ff80a)),'resolvedAt':_0x4aa55b,'resolvedBy':_0x14c9e1,'context':_0x1370d2,'attributes':_0x47699e})[_0x23b13c(0x126)](k);return{'threadId':_0x476e41[_0x23b13c(0x106)],'comments':_0x476e41[_0x23b13c(0x13e)]};},'getCommentThread':async({channelId:_0x4b2ad9,threadId:_0x2cb33e})=>{const _0x59e738=_0x2392d7,_0x25733e=await this[_0x59e738(0x133)](_0x4b2ad9)[_0x59e738(0x120)](_0x2cb33e)[_0x59e738(0x126)](k);return _0x25733e[_0x59e738(0x115)]?null:(await this[_0x59e738(0x138)]([_0x25733e]),{'threadId':_0x25733e[_0x59e738(0x106)],'comments':_0x25733e[_0x59e738(0x13e)][_0x59e738(0x151)](B),'context':_0x25733e[_0x59e738(0x125)],'resolvedAt':_0x25733e[_0x59e738(0x109)],'resolvedBy':_0x25733e[_0x59e738(0x14c)],'attributes':_0x25733e[_0x59e738(0x117)]||{}});},'updateCommentThread':async({channelId:_0x2fcfd7,threadId:_0x39e43c,context:_0x2a828d,unlinkedAt:_0x59c339,attributes:_0x405d5d})=>this[_0x2392d7(0x133)](_0x2fcfd7)[_0x2392d7(0x145)]({'commentThreadId':_0x39e43c,'context':_0x2a828d,'attributes':_0x405d5d,'unlinkedAt':_0x59c339})[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'resolveCommentThread':async({channelId:_0x424c5c,threadId:_0x8ff56b})=>{const _0x3e8647=_0x2392d7,_0x1978b1=await this[_0x3e8647(0x133)](_0x424c5c)[_0x3e8647(0x149)](_0x8ff56b)[_0x3e8647(0x126)](F)[_0x3e8647(0x126)](k);return{'threadId':_0x1978b1[_0x3e8647(0x106)],'resolvedAt':_0x1978b1[_0x3e8647(0x109)],'resolvedBy':_0x1978b1[_0x3e8647(0x14c)]};},'reopenCommentThread':async({channelId:_0x3e9a3d,threadId:_0x363db7})=>this[_0x2392d7(0x133)](_0x3e9a3d)[_0x2392d7(0x142)](_0x363db7)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'removeCommentThread':({channelId:_0x493d86,threadId:_0x392df8})=>this[_0x2392d7(0x133)](_0x493d86)[_0x2392d7(0x127)](_0x392df8)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'addComment':({channelId:_0xb4b11c,threadId:_0x14c3b7,commentId:_0x5c62ef,content:_0x5b667f,attributes:_0xc67d8})=>this[_0x2392d7(0x133)](_0xb4b11c)[_0x2392d7(0x12a)](_0x14c3b7,_0x5c62ef,_0x5b667f,_0xc67d8)[_0x2392d7(0x126)](k),'updateComment':({channelId:_0x2da85f,threadId:_0x46116c,commentId:_0x26df21,content:_0x48d175,attributes:_0x38c2d6})=>this[_0x2392d7(0x133)](_0x2da85f)[_0x2392d7(0x121)](_0x46116c,_0x26df21,_0x48d175,_0x38c2d6)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'removeComment':({channelId:_0xf1b676,threadId:_0xd22aae,commentId:_0x4fbe4a})=>this[_0x2392d7(0x133)](_0xf1b676)[_0x2392d7(0x157)](_0xd22aae,_0x4fbe4a)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k)},_0x2c19bd instanceof _0xd9e416){const _0x2aa8c8=_0x2c19bd[_0x2392d7(0x154)][_0x2392d7(0x100)](_0x2392d7(0x13b)),_0x60928=_0x2c19bd[_0x2392d7(0x128)][_0x2392d7(0x100)](_0x1ec7be);await this[_0x2392d7(0x14d)](_0x2aa8c8);const _0x381b9f=await this[_0x2392d7(0x14e)][_0x2392d7(0x100)](_0x2aa8c8)[_0x2392d7(0x143)]();this[_0x2392d7(0x10b)](_0x60928,_0x2392d7(0x12b)+_0x2aa8c8,(_0x13cefc,{session:_0x5bdac4})=>{const _0x32a407=_0x2392d7;_0x5bdac4['id']===_0x60928[_0x32a407(0x158)]&&(_0x13cefc[_0x32a407(0x15c)](),this[_0x32a407(0x125)][_0x32a407(0x128)][_0x32a407(0x100)](_0x32a407(0x10a))[_0x32a407(0x136)](_0x5bdac4[_0x32a407(0x13c)],_0x2aa8c8));}),_0x60928[_0x2392d7(0x139)](_0x2aa8c8,_0x381b9f);}}async[_0x5978ba(0x14d)](_0x547369){const _0x5619db=_0x5978ba;if(this[_0x5619db(0x14e)][_0x5619db(0x12e)](_0x547369))throw new _0x3e6126(_0x5619db(0x152),null,{'channelId':_0x547369});const _0x54ed9b=this[_0x5619db(0x125)][_0x5619db(0x128)][_0x5619db(0x100)](_0x5619db(0x10c)),_0x28ca3b=new s[(_0x5619db(0x135))](_0x547369);this[_0x5619db(0x14e)][_0x5619db(0x140)](_0x547369,_0x28ca3b),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x130),(_0x1cc209,_0x5d6eda)=>{const _0x3dbcaf=_0x5619db,{commentThreadId:_0x5d7738,documentId:_0x554b7f,context:_0x116d37,attributes:_0x577385,resolvedAt:_0x472898,resolvedBy:_0xf6c788,comments:_0x71c8f6}=_0x5d6eda;_0x54ed9b[_0x3dbcaf(0x120)](_0x5d7738)||_0x54ed9b[_0x3dbcaf(0x162)]({'threadId':_0x5d7738,'channelId':_0x554b7f,'comments':_0x71c8f6?_0x71c8f6[_0x3dbcaf(0x151)](B):[],'context':_0x116d37,'attributes':_0x577385,'resolvedAt':_0x472898,'resolvedBy':_0xf6c788,'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x123),(_0x48dba1,{commentThreadId:_0x377a71,documentId:_0x40235e,context:_0x4390aa,unlinkedAt:_0x3d248d,attributes:_0x13b4ab})=>{const _0x3dab66=_0x5619db;_0x54ed9b[_0x3dab66(0x120)](_0x377a71)&&_0x54ed9b[_0x3dab66(0x145)]({'threadId':_0x377a71,'channelId':_0x40235e,'context':_0x4390aa,'unlinkedAt':_0x3d248d,'attributes':_0x13b4ab,'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x13d),(_0x2253ba,{commentThreadId:_0x4f1ab8,resolvedBy:_0xd55283,resolvedAt:_0x583f96})=>{const _0x15342c=_0x5619db,_0x3d360b=_0x54ed9b[_0x15342c(0x120)](_0x4f1ab8);_0x3d360b&&_0x3d360b[_0x15342c(0x101)]({'resolvedBy':_0xd55283,'resolvedAt':_0x583f96,'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x15e),(_0x519c54,{commentThreadId:_0x27c08f})=>{const _0x2cb0f1=_0x5619db,_0x4832a2=_0x54ed9b[_0x2cb0f1(0x120)](_0x27c08f);_0x4832a2&&_0x4832a2[_0x2cb0f1(0x161)]({'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x13a),(_0x3febc6,{commentThreadId:_0x264255})=>{const _0x29c220=_0x5619db,_0x47bd97=_0x54ed9b[_0x29c220(0x120)](_0x264255);_0x47bd97&&_0x47bd97[_0x29c220(0x119)]({'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x11f),(_0xddab49,_0x257507)=>{const _0x36d65b=_0x5619db,_0xa21499=_0x257507[_0x36d65b(0x106)],_0xfd79a9=_0x54ed9b[_0x36d65b(0x120)](_0xa21499);_0xfd79a9&&_0xfd79a9[_0x36d65b(0x12a)]({...B(_0x257507),'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x107),(_0x20b365,{commentThreadId:_0x28ef75,commentId:_0x535a8b,content:_0x36603f,attributes:_0x1ffc9c})=>{const _0x1b6049=_0x5619db,_0x26bda0=_0x54ed9b[_0x1b6049(0x120)](_0x28ef75);if(_0x26bda0){const _0x58f1eb=_0x26bda0[_0x1b6049(0x11c)](_0x535a8b);_0x58f1eb&&_0x58f1eb[_0x1b6049(0x10d)]({'content':_0x36603f,'attributes':_0x1ffc9c,'isFromAdapter':!0x0});}}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x111),(_0x417d88,{commentThreadId:_0x50bb07,commentId:_0x539bd5})=>{const _0x114bd6=_0x5619db,_0x41a5d0=_0x54ed9b[_0x114bd6(0x120)](_0x50bb07);if(_0x41a5d0){const _0x39445b=_0x41a5d0[_0x114bd6(0x11c)](_0x539bd5);_0x39445b&&_0x39445b[_0x114bd6(0x119)]({'isFromAdapter':!0x0});}}),await this[_0x5619db(0x14a)](_0x547369);}[_0x5978ba(0x12f)](){const _0x383f32=_0x5978ba;if(this[_0x383f32(0x125)]instanceof _0xd9e416){const _0x51bcf6=this[_0x383f32(0x125)][_0x383f32(0x154)][_0x383f32(0x100)](_0x383f32(0x13b));this[_0x383f32(0x116)](_0x51bcf6);}}[_0x5978ba(0x116)](_0x4ca759){const _0x1ea23f=_0x5978ba;if(!this[_0x1ea23f(0x14e)][_0x1ea23f(0x12e)](_0x4ca759))throw new _0x3e6126(_0x1ea23f(0x132),null,{'channelId':_0x4ca759});this[_0x1ea23f(0x133)](_0x4ca759)[_0x1ea23f(0x156)](),this[_0x1ea23f(0x14e)][_0x1ea23f(0x10e)](_0x4ca759);}async[_0x5978ba(0x150)](){const _0x26bfc9=_0x5978ba;for(const _0x5c69d7 of this[_0x26bfc9(0x14e)][_0x26bfc9(0x159)]())await this[_0x26bfc9(0x14a)](_0x5c69d7);if(this[_0x26bfc9(0x125)]instanceof _0xd9e416){const _0x28bd3a=this[_0x26bfc9(0x125)][_0x26bfc9(0x154)][_0x26bfc9(0x100)](_0x26bfc9(0x13b)),_0x355379=this[_0x26bfc9(0x125)][_0x26bfc9(0x128)][_0x26bfc9(0x100)](_0x1ec7be);_0x355379[_0x26bfc9(0x163)](_0x28bd3a);const _0x329b13=await this[_0x26bfc9(0x14e)][_0x26bfc9(0x100)](_0x28bd3a)[_0x26bfc9(0x143)]();_0x355379[_0x26bfc9(0x139)](_0x28bd3a,_0x329b13);}}async[_0x5978ba(0x14a)](_0x19f991){const _0x4ac3ba=_0x5978ba,{connection:_0x5a38a1}=this[_0x4ac3ba(0x125)][_0x4ac3ba(0x128)][_0x4ac3ba(0x100)](_0xa2343e),_0x3d9664=this[_0x4ac3ba(0x125)][_0x4ac3ba(0x128)][_0x4ac3ba(0x100)](_0x4ac3ba(0x10c)),_0xfb24b=this[_0x4ac3ba(0x14e)][_0x4ac3ba(0x100)](_0x19f991),_0x507c6b=await _0xfb24b[_0x4ac3ba(0x134)](_0x5a38a1);await this[_0x4ac3ba(0x138)](_0x507c6b);const _0x12443e=new Set(Array[_0x4ac3ba(0x144)](_0x3d9664[_0x4ac3ba(0x114)]({'channelId':_0x19f991}),_0x4d821a=>_0x4d821a['id']));for(const _0x428cf0 of _0x507c6b)_0x428cf0[_0x4ac3ba(0x115)]||_0x12443e[_0x4ac3ba(0x10e)](_0x428cf0[_0x4ac3ba(0x106)]);for(const _0x1b4c4d of _0x12443e)_0x3d9664[_0x4ac3ba(0x120)](_0x1b4c4d)[_0x4ac3ba(0x119)]({'isFromAdapter':!0x0});for(const _0x315f52 of _0x507c6b){let _0x5a3250=_0x3d9664[_0x4ac3ba(0x120)](_0x315f52[_0x4ac3ba(0x106)]);const {commentThreadId:_0x18bd1a,context:_0x22d3f2,attributes:_0x377fab,resolvedBy:_0xa395c7,resolvedAt:_0x1ecd43,unlinkedAt:_0x337f02,deletedAt:_0x4351d1}=_0x315f52;if(_0x4351d1)continue;_0x5a3250||(_0x5a3250=_0x3d9664[_0x4ac3ba(0x162)]({'channelId':_0x19f991,'threadId':_0x18bd1a,'context':_0x22d3f2,'attributes':_0x377fab||{},'resolvedBy':_0xa395c7,'resolvedAt':_0x1ecd43,'unlinkedAt':_0x337f02,'isFromAdapter':!0x0}));const _0x3d48b9=new Set(Array[_0x4ac3ba(0x144)](_0x5a3250[_0x4ac3ba(0x13e)],_0x1483ba=>_0x1483ba['id']));for(const _0x1b066f of _0x315f52[_0x4ac3ba(0x13e)])_0x3d48b9[_0x4ac3ba(0x10e)](_0x1b066f[_0x4ac3ba(0x112)]);for(const _0x4844c6 of _0x3d48b9)_0x5a3250[_0x4ac3ba(0x11c)](_0x4844c6)[_0x4ac3ba(0x119)]({'isFromAdapter':!0x0});for(const _0x3573d8 of _0x315f52[_0x4ac3ba(0x13e)]){const _0x183018=_0x5a3250[_0x4ac3ba(0x11c)](_0x3573d8[_0x4ac3ba(0x112)]);_0x183018?_0x183018[_0x4ac3ba(0x113)]!==_0x3573d8[_0x4ac3ba(0x113)]&&_0x183018[_0x4ac3ba(0x10d)]({'content':_0x3573d8[_0x4ac3ba(0x113)],'isFromAdapter':!0x0}):_0x5a3250[_0x4ac3ba(0x12a)](Object[_0x4ac3ba(0x104)](B(_0x3573d8),{'isFromAdapter':!0x0}));}}}[_0x5978ba(0x133)](_0x2a2710){const _0xce857e=_0x5978ba;if(!this[_0xce857e(0x14e)][_0xce857e(0x12e)](_0x2a2710))throw new _0x3e6126(_0xce857e(0x103),null,{'channelId':_0x2a2710});return this[_0xce857e(0x14e)][_0xce857e(0x100)](_0x2a2710);}async[_0x5978ba(0x138)](_0x14abf4){const _0x103538=_0x5978ba,_0x36c52e=this[_0x103538(0x125)][_0x103538(0x128)][_0x103538(0x100)](_0x38b31f),{connection:_0xdf6730}=this[_0x103538(0x125)][_0x103538(0x128)][_0x103538(0x100)](_0xa2343e),_0x143655=new Set();for(const {resolvedBy:_0x13e663,comments:_0x16c997}of _0x14abf4){_0x13e663&&!_0x36c52e[_0x103538(0x11d)](_0x13e663)&&_0x143655[_0x103538(0x122)](_0x13e663);for(const {userId:_0x1950fd}of _0x16c997)_0x36c52e[_0x103538(0x11d)](_0x1950fd)||_0x143655[_0x103538(0x122)](_0x1950fd);}if(0x0===_0x143655[_0x103538(0x12d)])return;const _0x4c2bbe=await _0x1a216e[_0x103538(0x153)](_0xdf6730,Array[_0x103538(0x144)](_0x143655));for(const _0x209a8e of _0x4c2bbe)_0x36c52e[_0x103538(0x11d)](_0x209a8e['id'])||_0x36c52e[_0x103538(0x15b)](_0x209a8e);}}export{s as CloudServicesCommentsAdapter};function _0xc745(_0x3f4574,_0x1f29b0){const _0x4f7f6f=_0x4f7f();return _0xc745=function(_0xc74527,_0x1d26a2){_0xc74527=_0xc74527-0x100;let _0x48f646=_0x4f7f6f[_0xc74527];return _0x48f646;},_0xc745(_0x3f4574,_0x1f29b0);}async function F(_0x9b2f31){const _0x4c9901=_0x5978ba;if(_0x4c9901(0x146)!==_0x9b2f31[_0x4c9901(0x10f)])throw _0x9b2f31;}function _0x4f7f(){const _0x3ae55c=['disconnect','removeComment','mySessionId','keys','cloud-services-internal-error:\x20Not\x20connected.','addUser','off','userId','commentThreadReopened','3568374ztNIMr','536483IginHK','reopen','addCommentThread','unregister','get','resolve','authorId','cloudservicescommentsadapter-service-not-exist','assign','createdAt','commentThreadId','commentUpdated','requires','resolvedAt','Permissions','listenTo','CommentsRepository','update','delete','code','adapter','commentRemoved','commentId','content','getCommentThreads','deletedAt','_terminateService','attributes','1634145xfQfXj','remove','918688sIKsVL','addToReconnectionStack','getComment','getUser','init','commentAdded','getCommentThread','updateComment','add','commentThreadUpdated','message','context','catch','removeCommentThread','plugins','isPremiumPlugin','addComment','sessionAdd:','pluginName','size','has','destroy','commentThreadAdded','startsWith','cloudservicescommentsadapter-disconnect-not-exist','_getService','connect','CommentsService','setPermissions','isOfficialPlugin','_fetchMissingUsersForThreads','register','commentThreadRemoved','collaboration.channelId','permissions','commentThreadResolved','comments','5423292mBuJcr','set','1912048rktdQA','reopenCommentThread','getConnectedSessions','from','updateCommentThread','404','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','7SfcnHL','resolveCommentThread','_connectService','CloudServicesCommentsAdapter','resolvedBy','_setUpService','_services','6285355FHDkkm','reconnect','map','cloudservicescommentsadapter-connect-already-connected','getMany','config','cloud-services-internal-error:\x20Request\x20timeout.'];_0x4f7f=function(){return _0x3ae55c;};return _0x4f7f();}function k(_0x36e8e9){const _0x51e2c3=_0x5978ba;if((_0x4ce9d2=_0x36e8e9)[_0x51e2c3(0x124)][_0x51e2c3(0x131)](_0x51e2c3(0x147))||_0x4ce9d2[_0x51e2c3(0x124)][_0x51e2c3(0x131)](_0x51e2c3(0x15a))||_0x4ce9d2[_0x51e2c3(0x124)][_0x51e2c3(0x131)](_0x51e2c3(0x155)))return new Promise(()=>{});var _0x4ce9d2;throw _0x36e8e9;}function B(_0x5bff90){const _0x2ffaca=_0x5978ba;return{'threadId':_0x5bff90[_0x2ffaca(0x106)],'commentId':_0x5bff90[_0x2ffaca(0x112)],'content':_0x5bff90[_0x2ffaca(0x113)],'createdAt':_0x5bff90[_0x2ffaca(0x105)],'authorId':_0x5bff90[_0x2ffaca(0x15d)],'attributes':_0x5bff90[_0x2ffaca(0x117)]||{}};}
|
|
23
|
+
const _0x372958=_0x447d;(function(_0x17387b,_0x20e75b){const _0x594336=_0x447d,_0x575df3=_0x17387b();while(!![]){try{const _0x4cd508=-parseInt(_0x594336(0x119))/0x1*(-parseInt(_0x594336(0xc6))/0x2)+-parseInt(_0x594336(0xf5))/0x3*(parseInt(_0x594336(0xfe))/0x4)+parseInt(_0x594336(0xcd))/0x5+-parseInt(_0x594336(0x106))/0x6+-parseInt(_0x594336(0xd1))/0x7*(parseInt(_0x594336(0xd6))/0x8)+parseInt(_0x594336(0xc0))/0x9+parseInt(_0x594336(0x107))/0xa*(-parseInt(_0x594336(0xd3))/0xb);if(_0x4cd508===_0x20e75b)break;else _0x575df3['push'](_0x575df3['shift']());}catch(_0x3560c4){_0x575df3['push'](_0x575df3['shift']());}}}(_0x58b1,0x9ac3b));import{Context as _0x331417,ContextPlugin as _0x10b13f}from'ckeditor5/src/core.js';import{CKEditorError as _0x35a412}from'ckeditor5/src/utils.js';import{Users as _0x182222}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x554662,User as _0x10369e}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5d0f91}from'../realtimecollaborativeediting/websocketgateway.js';function _0x447d(_0xa8e16e,_0x180e9f){const _0x58b1cd=_0x58b1();return _0x447d=function(_0x447d38,_0x2d1f4e){_0x447d38=_0x447d38-0xb7;let _0x4b3ee9=_0x58b1cd[_0x447d38];return _0x4b3ee9;},_0x447d(_0xa8e16e,_0x180e9f);}import{Sessions as _0x9a466c}from'../realtimecollaborativeediting/sessions.js';class s extends _0x10b13f{static [_0x372958(0x115)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x554662)());[_0x372958(0xc2)];static get[_0x372958(0xe0)](){const _0x4ab549=_0x372958;return[_0x5d0f91,_0x4ab549(0xe7),_0x9a466c,_0x182222];}static get[_0x372958(0x103)](){const _0x51661b=_0x372958;return _0x51661b(0xf2);}static get[_0x372958(0xef)](){return!0x0;}static get[_0x372958(0xd7)](){return!0x0;}constructor(_0x48ade7){const _0x300772=_0x372958;super(_0x48ade7),this[_0x300772(0xc2)]=new Map();}async[_0x372958(0xe1)](){const _0x39ed65=_0x372958,_0x292756=this[_0x39ed65(0x111)],_0x4cf35d=_0x292756[_0x39ed65(0xdf)][_0x39ed65(0x10f)](_0x39ed65(0xe7));if(_0x292756[_0x39ed65(0xdf)][_0x39ed65(0x10f)](_0x5d0f91)[_0x39ed65(0xe6)](this),_0x4cf35d[_0x39ed65(0xdb)]={'addCommentThread':async({channelId:_0x32345e,threadId:_0x5bcc12,comments:_0x448597,resolvedAt:_0x4de76d,resolvedBy:_0x2250c7,context:_0x1b59ab,attributes:_0x3712b7})=>{const _0x865672=_0x39ed65,_0x3d38a6=await this[_0x865672(0xe3)](_0x32345e)[_0x865672(0x10d)]({'commentThreadId':_0x5bcc12,'comments':_0x448597[_0x865672(0x108)](_0x3405f6=>function(_0x5abaf6,_0x44c645,_0x3fa2ca){const _0xc50636=_0x865672;return{'commentThreadId':_0x3fa2ca,'commentId':_0x5abaf6[_0xc50636(0xf0)],'userId':_0x5abaf6[_0xc50636(0xee)],'content':_0x5abaf6[_0xc50636(0xe8)],'documentId':_0x44c645,'createdAt':_0x5abaf6[_0xc50636(0x11c)],'attributes':_0x5abaf6[_0xc50636(0xc9)]||{}};}(_0x3405f6,_0x32345e,_0x5bcc12)),'resolvedAt':_0x4de76d,'resolvedBy':_0x2250c7,'context':_0x1b59ab,'attributes':_0x3712b7})[_0x865672(0x113)](it);return{'threadId':_0x3d38a6[_0x865672(0x10e)],'comments':_0x3d38a6[_0x865672(0x100)]};},'getCommentThread':async({channelId:_0x3cf386,threadId:_0x5f25b8})=>{const _0x4d7afd=_0x39ed65,_0x160642=await this[_0x4d7afd(0xe3)](_0x3cf386)[_0x4d7afd(0xdd)](_0x5f25b8)[_0x4d7afd(0x113)](it);return _0x160642[_0x4d7afd(0xde)]?null:(await this[_0x4d7afd(0xbc)]([_0x160642]),{'threadId':_0x160642[_0x4d7afd(0x10e)],'comments':_0x160642[_0x4d7afd(0x100)][_0x4d7afd(0x108)](st),'context':_0x160642[_0x4d7afd(0x111)],'resolvedAt':_0x160642[_0x4d7afd(0xf6)],'resolvedBy':_0x160642[_0x4d7afd(0xc8)],'attributes':_0x160642[_0x4d7afd(0xc9)]||{}});},'updateCommentThread':async({channelId:_0x4824fa,threadId:_0x4347be,context:_0x4741b7,unlinkedAt:_0x119647,attributes:_0x4ea292})=>this[_0x39ed65(0xe3)](_0x4824fa)[_0x39ed65(0x11a)]({'commentThreadId':_0x4347be,'context':_0x4741b7,'attributes':_0x4ea292,'unlinkedAt':_0x119647})[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it),'resolveCommentThread':async({channelId:_0x5d4b2c,threadId:_0x53082b})=>{const _0x44c385=_0x39ed65,_0x55009f=await this[_0x44c385(0xe3)](_0x5d4b2c)[_0x44c385(0xc1)](_0x53082b)[_0x44c385(0x113)](nt)[_0x44c385(0x113)](it);return{'threadId':_0x55009f[_0x44c385(0x10e)],'resolvedAt':_0x55009f[_0x44c385(0xf6)],'resolvedBy':_0x55009f[_0x44c385(0xc8)]};},'reopenCommentThread':async({channelId:_0x381ad4,threadId:_0x334dbe})=>this[_0x39ed65(0xe3)](_0x381ad4)[_0x39ed65(0xd0)](_0x334dbe)[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it),'removeCommentThread':({channelId:_0x429ab2,threadId:_0x4e5349})=>this[_0x39ed65(0xe3)](_0x429ab2)[_0x39ed65(0x10c)](_0x4e5349)[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it),'addComment':({channelId:_0x5b8615,threadId:_0x583a4a,commentId:_0x259452,content:_0x46b105,attributes:_0x1a4fe7})=>this[_0x39ed65(0xe3)](_0x5b8615)[_0x39ed65(0x10b)](_0x583a4a,_0x259452,_0x46b105,_0x1a4fe7)[_0x39ed65(0x113)](it),'updateComment':({channelId:_0x2e4f60,threadId:_0xb9b356,commentId:_0x466976,content:_0x34b549,attributes:_0x317110})=>this[_0x39ed65(0xe3)](_0x2e4f60)[_0x39ed65(0xe5)](_0xb9b356,_0x466976,_0x34b549,_0x317110)[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it),'removeComment':({channelId:_0xc31129,threadId:_0x1cac0a,commentId:_0x24c873})=>this[_0x39ed65(0xe3)](_0xc31129)[_0x39ed65(0xe4)](_0x1cac0a,_0x24c873)[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it)},_0x292756 instanceof _0x331417){const _0x1d0830=_0x292756[_0x39ed65(0xc4)][_0x39ed65(0x10f)](_0x39ed65(0xf9)),_0x36e58f=_0x292756[_0x39ed65(0xdf)][_0x39ed65(0x10f)](_0x9a466c);await this[_0x39ed65(0xbd)](_0x1d0830);const _0xef37a5=await this[_0x39ed65(0xc2)][_0x39ed65(0x10f)](_0x1d0830)[_0x39ed65(0xeb)]();this[_0x39ed65(0xce)](_0x36e58f,_0x39ed65(0x11b)+_0x1d0830,(_0xd8b478,{session:_0x4ad22b})=>{const _0x43576d=_0x39ed65;_0x4ad22b['id']===_0x36e58f[_0x43576d(0x10a)]&&(_0xd8b478[_0x43576d(0x110)](),this[_0x43576d(0x111)][_0x43576d(0xdf)][_0x43576d(0x10f)](_0x43576d(0xcc))[_0x43576d(0xd4)](_0x4ad22b[_0x43576d(0xfb)],_0x1d0830));}),_0x36e58f[_0x39ed65(0x116)](_0x1d0830,_0xef37a5);}}async[_0x372958(0xbd)](_0x328dca){const _0xd0ec6c=_0x372958;if(this[_0xd0ec6c(0xc2)][_0xd0ec6c(0xf4)](_0x328dca))throw new _0x35a412(_0xd0ec6c(0xd9),null,{'channelId':_0x328dca});const _0x1fc9c1=this[_0xd0ec6c(0x111)][_0xd0ec6c(0xdf)][_0xd0ec6c(0x10f)](_0xd0ec6c(0xe7)),_0xd51c1d=new s[(_0xd0ec6c(0x115))](_0x328dca);this[_0xd0ec6c(0xc2)][_0xd0ec6c(0xbf)](_0x328dca,_0xd51c1d),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xda),(_0x37624c,_0x512e44)=>{const _0x17273c=_0xd0ec6c,{commentThreadId:_0x400392,documentId:_0x4e6ad6,context:_0x4f897f,attributes:_0x191b93,resolvedAt:_0x23e7f4,resolvedBy:_0x596f71,comments:_0x434ac4}=_0x512e44;_0x1fc9c1[_0x17273c(0xdd)](_0x400392)||_0x1fc9c1[_0x17273c(0x10d)]({'threadId':_0x400392,'channelId':_0x4e6ad6,'comments':_0x434ac4?_0x434ac4[_0x17273c(0x108)](st):[],'context':_0x4f897f,'attributes':_0x191b93,'resolvedAt':_0x23e7f4,'resolvedBy':_0x596f71,'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xdc),(_0x3dac8a,{commentThreadId:_0x26b5f1,documentId:_0x51f067,context:_0x48f01d,unlinkedAt:_0x45385b,attributes:_0x30d10c})=>{const _0x2d4f16=_0xd0ec6c;_0x1fc9c1[_0x2d4f16(0xdd)](_0x26b5f1)&&_0x1fc9c1[_0x2d4f16(0x11a)]({'threadId':_0x26b5f1,'channelId':_0x51f067,'context':_0x48f01d,'unlinkedAt':_0x45385b,'attributes':_0x30d10c,'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xcb),(_0x296f2d,{commentThreadId:_0x5a337e,resolvedBy:_0x4312e5,resolvedAt:_0x10d023})=>{const _0x5b6005=_0xd0ec6c,_0x21d8ac=_0x1fc9c1[_0x5b6005(0xdd)](_0x5a337e);_0x21d8ac&&_0x21d8ac[_0x5b6005(0x114)]({'resolvedBy':_0x4312e5,'resolvedAt':_0x10d023,'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xed),(_0x37e215,{commentThreadId:_0x26ff3e})=>{const _0x4eeaea=_0xd0ec6c,_0x1b4918=_0x1fc9c1[_0x4eeaea(0xdd)](_0x26ff3e);_0x1b4918&&_0x1b4918[_0x4eeaea(0x104)]({'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xc7),(_0x4c66e9,{commentThreadId:_0x167638})=>{const _0x45cadd=_0xd0ec6c,_0x23d1e4=_0x1fc9c1[_0x45cadd(0xdd)](_0x167638);_0x23d1e4&&_0x23d1e4[_0x45cadd(0x102)]({'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xb9),(_0xbe4540,_0x45db43)=>{const _0x916569=_0xd0ec6c,_0x365dcf=_0x45db43[_0x916569(0x10e)],_0x21b40d=_0x1fc9c1[_0x916569(0xdd)](_0x365dcf);_0x21b40d&&_0x21b40d[_0x916569(0x10b)]({...st(_0x45db43),'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xfc),(_0x2f1f33,{commentThreadId:_0x41a860,commentId:_0x4bf403,content:_0x53a55d,attributes:_0x89ce99})=>{const _0x3ed08b=_0xd0ec6c,_0x1e27d2=_0x1fc9c1[_0x3ed08b(0xdd)](_0x41a860);if(_0x1e27d2){const _0x5e73cd=_0x1e27d2[_0x3ed08b(0xfa)](_0x4bf403);_0x5e73cd&&_0x5e73cd[_0x3ed08b(0xf3)]({'content':_0x53a55d,'attributes':_0x89ce99,'isFromAdapter':!0x0});}}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0x112),(_0x150a6b,{commentThreadId:_0x175d1f,commentId:_0x4957fb})=>{const _0x4ad165=_0xd0ec6c,_0x375459=_0x1fc9c1[_0x4ad165(0xdd)](_0x175d1f);if(_0x375459){const _0x11fbdf=_0x375459[_0x4ad165(0xfa)](_0x4957fb);_0x11fbdf&&_0x11fbdf[_0x4ad165(0x102)]({'isFromAdapter':!0x0});}}),await this[_0xd0ec6c(0xfd)](_0x328dca);}[_0x372958(0xec)](){const _0x59c947=_0x372958;if(this[_0x59c947(0x111)]instanceof _0x331417){const _0x2f7664=this[_0x59c947(0x111)][_0x59c947(0xc4)][_0x59c947(0x10f)](_0x59c947(0xf9));this[_0x59c947(0xea)](_0x2f7664);}}[_0x372958(0xea)](_0x190bf6){const _0x24e668=_0x372958;if(!this[_0x24e668(0xc2)][_0x24e668(0xf4)](_0x190bf6))throw new _0x35a412(_0x24e668(0xd5),null,{'channelId':_0x190bf6});this[_0x24e668(0xe3)](_0x190bf6)[_0x24e668(0x117)](),this[_0x24e668(0xc2)][_0x24e668(0xb7)](_0x190bf6);}async[_0x372958(0x11d)](){const _0x50e3ec=_0x372958;for(const _0x289968 of this[_0x50e3ec(0xc2)][_0x50e3ec(0x118)]())await this[_0x50e3ec(0xfd)](_0x289968);if(this[_0x50e3ec(0x111)]instanceof _0x331417){const _0xe765af=this[_0x50e3ec(0x111)][_0x50e3ec(0xc4)][_0x50e3ec(0x10f)](_0x50e3ec(0xf9)),_0x3cc8de=this[_0x50e3ec(0x111)][_0x50e3ec(0xdf)][_0x50e3ec(0x10f)](_0x9a466c);_0x3cc8de[_0x50e3ec(0x109)](_0xe765af);const _0x5b5127=await this[_0x50e3ec(0xc2)][_0x50e3ec(0x10f)](_0xe765af)[_0x50e3ec(0xeb)]();_0x3cc8de[_0x50e3ec(0x116)](_0xe765af,_0x5b5127);}}async[_0x372958(0xfd)](_0x3b9f0b){const _0x25a1d7=_0x372958,{connection:_0x13dc2b}=this[_0x25a1d7(0x111)][_0x25a1d7(0xdf)][_0x25a1d7(0x10f)](_0x5d0f91),_0x5f305d=this[_0x25a1d7(0x111)][_0x25a1d7(0xdf)][_0x25a1d7(0x10f)](_0x25a1d7(0xe7)),_0x354602=this[_0x25a1d7(0xc2)][_0x25a1d7(0x10f)](_0x3b9f0b),_0x3ea119=await _0x354602[_0x25a1d7(0xbe)](_0x13dc2b);await this[_0x25a1d7(0xbc)](_0x3ea119);const _0x458dab=new Set(Array[_0x25a1d7(0xc5)](_0x5f305d[_0x25a1d7(0x105)]({'channelId':_0x3b9f0b}),_0xba30d9=>_0xba30d9['id']));for(const _0x58ed30 of _0x3ea119)_0x58ed30[_0x25a1d7(0xde)]||_0x458dab[_0x25a1d7(0xb7)](_0x58ed30[_0x25a1d7(0x10e)]);for(const _0x16c908 of _0x458dab)_0x5f305d[_0x25a1d7(0xdd)](_0x16c908)[_0x25a1d7(0x102)]({'isFromAdapter':!0x0});for(const _0x4111dc of _0x3ea119){let _0x5241e1=_0x5f305d[_0x25a1d7(0xdd)](_0x4111dc[_0x25a1d7(0x10e)]);const {commentThreadId:_0x4c481e,context:_0xd76b49,attributes:_0x4eacca,resolvedBy:_0x46f22d,resolvedAt:_0x3c8ba5,unlinkedAt:_0x3c07f2,deletedAt:_0x5c4bf9}=_0x4111dc;if(_0x5c4bf9)continue;_0x5241e1||(_0x5241e1=_0x5f305d[_0x25a1d7(0x10d)]({'channelId':_0x3b9f0b,'threadId':_0x4c481e,'context':_0xd76b49,'attributes':_0x4eacca||{},'resolvedBy':_0x46f22d,'resolvedAt':_0x3c8ba5,'unlinkedAt':_0x3c07f2,'isFromAdapter':!0x0}));const _0x46ee0c=new Set(Array[_0x25a1d7(0xc5)](_0x5241e1[_0x25a1d7(0x100)],_0x41257f=>_0x41257f['id']));for(const _0x1127fb of _0x4111dc[_0x25a1d7(0x100)])_0x46ee0c[_0x25a1d7(0xb7)](_0x1127fb[_0x25a1d7(0xf0)]);for(const _0x91d49f of _0x46ee0c)_0x5241e1[_0x25a1d7(0xfa)](_0x91d49f)[_0x25a1d7(0x102)]({'isFromAdapter':!0x0});for(const _0x5b3e83 of _0x4111dc[_0x25a1d7(0x100)]){const _0x3ddd4c=_0x5241e1[_0x25a1d7(0xfa)](_0x5b3e83[_0x25a1d7(0xf0)]);_0x3ddd4c?_0x3ddd4c[_0x25a1d7(0xe8)]!==_0x5b3e83[_0x25a1d7(0xe8)]&&_0x3ddd4c[_0x25a1d7(0xf3)]({'content':_0x5b3e83[_0x25a1d7(0xe8)],'isFromAdapter':!0x0}):_0x5241e1[_0x25a1d7(0x10b)](Object[_0x25a1d7(0xc3)](st(_0x5b3e83),{'isFromAdapter':!0x0}));}}}[_0x372958(0xe3)](_0x4a7b2d){const _0x1e4d8d=_0x372958;if(!this[_0x1e4d8d(0xc2)][_0x1e4d8d(0xf4)](_0x4a7b2d))throw new _0x35a412(_0x1e4d8d(0xd8),null,{'channelId':_0x4a7b2d});return this[_0x1e4d8d(0xc2)][_0x1e4d8d(0x10f)](_0x4a7b2d);}async[_0x372958(0xbc)](_0x1b2e8c){const _0x4094bb=_0x372958,_0x1ae2d2=this[_0x4094bb(0x111)][_0x4094bb(0xdf)][_0x4094bb(0x10f)](_0x182222),{connection:_0x1a88cb}=this[_0x4094bb(0x111)][_0x4094bb(0xdf)][_0x4094bb(0x10f)](_0x5d0f91),_0x251586=new Set();for(const {resolvedBy:_0x2b9af0,comments:_0x1c3bcf}of _0x1b2e8c){_0x2b9af0&&!_0x1ae2d2[_0x4094bb(0xe9)](_0x2b9af0)&&_0x251586[_0x4094bb(0xd2)](_0x2b9af0);for(const {userId:_0x5e984b}of _0x1c3bcf)_0x1ae2d2[_0x4094bb(0xe9)](_0x5e984b)||_0x251586[_0x4094bb(0xd2)](_0x5e984b);}if(0x0===_0x251586[_0x4094bb(0xb8)])return;const _0x184e31=await _0x10369e[_0x4094bb(0xf7)](_0x1a88cb,Array[_0x4094bb(0xc5)](_0x251586));for(const _0xec5db5 of _0x184e31)_0x1ae2d2[_0x4094bb(0xe9)](_0xec5db5['id'])||_0x1ae2d2[_0x4094bb(0xcf)](_0xec5db5);}}export{s as CloudServicesCommentsAdapter};async function nt(_0x3efd3b){const _0x38f141=_0x372958;if(_0x38f141(0x101)!==_0x3efd3b[_0x38f141(0xf1)])throw _0x3efd3b;}function _0x58b1(){const _0x186425=['collaboration.channelId','getComment','permissions','commentUpdated','_connectService','52isNJVa','message','comments','404','remove','pluginName','reopen','getCommentThreads','3376740mtuEro','5580UQLHaw','map','unregister','mySessionId','addComment','removeCommentThread','addCommentThread','commentThreadId','get','off','context','commentRemoved','catch','resolve','CommentsService','register','disconnect','keys','2785XuzksQ','updateCommentThread','sessionAdd:','createdAt','reconnect','delete','size','commentAdded','cloud-services-internal-error:\x20Request\x20timeout.','startsWith','_fetchMissingUsersForThreads','_setUpService','connect','set','6261750dtTXcp','resolveCommentThread','_services','assign','config','from','654fMuNPr','commentThreadRemoved','resolvedBy','attributes','cloud-services-internal-error:\x20Not\x20connected.','commentThreadResolved','Permissions','4978015mBMtdu','listenTo','addUser','reopenCommentThread','65597EWCsRS','add','3377xrtvxZ','setPermissions','cloudservicescommentsadapter-disconnect-not-exist','264pCJCTJ','isPremiumPlugin','cloudservicescommentsadapter-service-not-exist','cloudservicescommentsadapter-connect-already-connected','commentThreadAdded','adapter','commentThreadUpdated','getCommentThread','deletedAt','plugins','requires','init','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','_getService','removeComment','updateComment','addToReconnectionStack','CommentsRepository','content','getUser','_terminateService','getConnectedSessions','destroy','commentThreadReopened','authorId','isOfficialPlugin','commentId','code','CloudServicesCommentsAdapter','update','has','213414OGhOCh','resolvedAt','getMany','userId'];_0x58b1=function(){return _0x186425;};return _0x58b1();}function it(_0x452697){const _0x576562=_0x372958;if((_0x305ff9=_0x452697)[_0x576562(0xff)][_0x576562(0xbb)](_0x576562(0xe2))||_0x305ff9[_0x576562(0xff)][_0x576562(0xbb)](_0x576562(0xca))||_0x305ff9[_0x576562(0xff)][_0x576562(0xbb)](_0x576562(0xba)))return new Promise(()=>{});var _0x305ff9;throw _0x452697;}function st(_0x19be4b){const _0x56f0a0=_0x372958;return{'threadId':_0x19be4b[_0x56f0a0(0x10e)],'commentId':_0x19be4b[_0x56f0a0(0xf0)],'content':_0x19be4b[_0x56f0a0(0xe8)],'createdAt':_0x19be4b[_0x56f0a0(0x11c)],'authorId':_0x19be4b[_0x56f0a0(0xf8)],'attributes':_0x19be4b[_0x56f0a0(0xc9)]||{}};}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x354258)());[_0x1c27f6(0x14f)];[_0x1c27f6(0x13d)];[_0x1c27f6(0x146)];[_0x1c27f6(0xb0)];[_0x1c27f6(0x12b)];[_0x1c27f6(0xc7)];[_0x1c27f6(0xe5)];[_0x1c27f6(0x19f)];[_0x1c27f6(0xab)];[_0x1c27f6(0xb6)];[_0x1c27f6(0x18b)];[_0x1c27f6(0x11b)];[_0x1c27f6(0x164)];[_0x1c27f6(0x162)];[_0x1c27f6(0xd0)];[_0x1c27f6(0x14b)];[_0x1c27f6(0x132)];[_0x1c27f6(0x9f)];static get[_0x1c27f6(0x12c)](){return[_0x450e91,_0x14e3a8,_0x4d89a8,_0x555315,_0x2dc2da,_0x3918d7];}static get[_0x1c27f6(0xee)](){const _0x4ac7fc=_0x1c27f6;return _0x4ac7fc(0x197);}static get[_0x1c27f6(0xd8)](){return!0x0;}static get[_0x1c27f6(0x16d)](){return!0x0;}get[_0x1c27f6(0x116)](){const _0x49c3a0=_0x1c27f6;return this[_0x49c3a0(0xda)]+this[_0x49c3a0(0x14f)];}get[_0x1c27f6(0xda)](){const _0x5193ee=_0x1c27f6;return this[_0x5193ee(0x146)][_0x5193ee(0xe9)]-this[_0x5193ee(0x14f)];}get[_0x1c27f6(0x182)](){const _0x52b38e=_0x1c27f6,_0x42254c=this[_0x52b38e(0x146)][_0x52b38e(0xe2)]();for(let _0x3dfad0=_0x42254c[_0x52b38e(0x106)]-0x1;_0x3dfad0>=0x0;_0x3dfad0--){const _0x36553d=_0x42254c[_0x3dfad0];if(!this[_0x52b38e(0x132)][_0x52b38e(0xd4)](_0x36553d))return _0x36553d[_0x52b38e(0x160)]+0x1-this[_0x52b38e(0x14f)];}return 0x0;}constructor(_0x49b54f){const _0x5dac4e=_0x1c27f6;if(super(_0x49b54f),this[_0x5dac4e(0x14f)]=0x0,this[_0x5dac4e(0x13d)]=null,this[_0x5dac4e(0x146)]=new _0x2f887f(),this[_0x5dac4e(0x9b)][_0x5dac4e(0x10c)][_0x5dac4e(0xae)](_0x5dac4e(0x9e),{}),this[_0x5dac4e(0xb0)]=this[_0x5dac4e(0x9b)][_0x5dac4e(0x10c)][_0x5dac4e(0x110)](_0x5dac4e(0xbb)),!this[_0x5dac4e(0xb0)])throw new _0x5aa002(_0x5dac4e(0xc4),this);const _0x3a2aaf=_0x49b54f[_0x5dac4e(0x10c)][_0x5dac4e(0x110)](_0x5dac4e(0x161))||_0x4fed9a;this[_0x5dac4e(0x12b)]=new l[(_0x5dac4e(0x137))](_0x3a2aaf,this[_0x5dac4e(0xb0)]),this[_0x5dac4e(0xc7)]=this[_0x5dac4e(0x9b)][_0x5dac4e(0x148)][_0x5dac4e(0x10d)],this[_0x5dac4e(0xe5)]=new _0x20c62b(),this[_0x5dac4e(0x19f)]=[],this[_0x5dac4e(0xab)]=new WeakSet(),this[_0x5dac4e(0xb6)]=new Set(),this[_0x5dac4e(0xfc)](_0x5dac4e(0xe1),!0x1),this[_0x5dac4e(0xfc)](_0x5dac4e(0x18d),!0x1),this[_0x5dac4e(0x18b)]=null,this[_0x5dac4e(0x11b)]=!0x1,this[_0x5dac4e(0x164)]=null,this[_0x5dac4e(0x162)]=0x12c,this[_0x5dac4e(0xd0)]=this[_0x5dac4e(0x162)],this[_0x5dac4e(0x14b)]=null,this[_0x5dac4e(0x132)]=new WeakSet(),this[_0x5dac4e(0x9f)]=new Z(this[_0x5dac4e(0x132)]);}[_0x1c27f6(0x172)](){const _0x329a80=_0x1c27f6,_0x5ae88a=this[_0x329a80(0x9b)],_0x1e8091=_0x5ae88a[_0x329a80(0xcd)][_0x329a80(0x110)](_0x2dc2da),_0x48f7fd=_0x5ae88a[_0x329a80(0xcd)][_0x329a80(0x110)](_0x450e91);this[_0x329a80(0xa5)](_0x1e8091,_0x329a80(0x13b),(_0x10d6bf,_0x11e2c7)=>{const _0x3f519d=_0x329a80,_0x5c9e02=_0x11e2c7[0x0];_0x5c9e02[_0x3f519d(0x10f)]&&(_0x10d6bf[_0x3f519d(0xbd)]=_0x1e8091[_0x3f519d(0xa1)](_0x5c9e02[_0x3f519d(0x10f)]),_0x10d6bf[_0x3f519d(0x11c)]()),null===_0x5c9e02[_0x3f519d(0x10f)]&&(_0x10d6bf[_0x3f519d(0xbd)]=null,_0x10d6bf[_0x3f519d(0x11c)]());},{'priority':_0x329a80(0x109)}),this[_0x329a80(0xa5)](_0x5ae88a[_0x329a80(0x148)][_0x329a80(0x10d)][_0x329a80(0x104)],_0x329a80(0xe0),(_0x45115a,_0x241394)=>{const _0x521cda=_0x329a80;_0x241394[_0x521cda(0xaf)]&&this[_0x521cda(0xbf)]();}),this[_0x329a80(0xa5)](_0x5ae88a[_0x329a80(0xb2)][_0x329a80(0x127)],_0x329a80(0xf7),()=>{const _0x4adb0e=_0x329a80;this[_0x4adb0e(0xbf)]();}),this[_0x329a80(0xfa)](),_0x5ae88a[_0x329a80(0x148)]['on'](_0x329a80(0x13e),(_0x6b58cc,_0x5b664e)=>{const _0x4b8d35=_0x329a80,_0x37311c=_0x5b664e[0x0];_0x37311c[_0x4b8d35(0xd6)]&&(this[_0x4b8d35(0xef)](_0x37311c),this[_0x4b8d35(0xe6)]()&&this[_0x4b8d35(0x101)]());}),this[_0x329a80(0x175)](),this[_0x329a80(0xca)](_0x329a80(0xea))['to'](_0x48f7fd,_0x329a80(0x9d),this,_0x329a80(0x18d),(_0x49c2a8,_0x5a6012)=>_0x329a80(0x13a)===_0x49c2a8&&!_0x5a6012),this['on'](_0x329a80(0x191),()=>{const _0x1e8af2=_0x329a80;this[_0x1e8af2(0xea)]?_0x5ae88a[_0x1e8af2(0x18c)](_0x1e8af2(0x10a)):_0x5ae88a[_0x1e8af2(0x12e)](_0x1e8af2(0x10a));}),this[_0x329a80(0xea)]?_0x5ae88a[_0x329a80(0x18c)](_0x329a80(0x10a)):_0x5ae88a[_0x329a80(0x12e)](_0x329a80(0x10a)),this[_0x329a80(0xfc)](_0x329a80(0x9c),!0x1);}async[_0x1c27f6(0xe8)](){const _0x409a86=_0x1c27f6,_0x3f74c2=this[_0x409a86(0x9b)][_0x409a86(0xcd)][_0x409a86(0x110)](_0x14e3a8),_0x384ddd=this[_0x409a86(0x9b)][_0x409a86(0xcd)][_0x409a86(0x110)](_0x450e91);try{this[_0x409a86(0xe1)]=!0x0,_0x3f74c2[_0x409a86(0xe3)](this[_0x409a86(0xb0)]);const _0x195b64=await this[_0x409a86(0x12b)][_0x409a86(0xe8)](_0x384ddd[_0x409a86(0x15a)],this[_0x409a86(0x182)]);await this[_0x409a86(0x129)](_0x195b64)&&(this[_0x409a86(0xe1)]=!0x1,this[_0x409a86(0x16e)]());const _0x5afd7c=await this[_0x409a86(0x12b)][_0x409a86(0xba)]();_0x3f74c2[_0x409a86(0x18e)](this[_0x409a86(0xb0)],_0x5afd7c),this[_0x409a86(0x19b)](),this[_0x409a86(0x9c)]=!0x0;}catch(_0x3024ba){if(function(_0x9a78f3){const _0x4a4d2f=_0x409a86;return _0x4a4d2f(0xed)===_0x9a78f3[_0x4a4d2f(0x198)];}(_0x3024ba)&&this[_0x409a86(0x13d)])await this[_0x409a86(0xf9)]();else{if(function(_0x487bb3){const _0x213d52=_0x409a86;return _0x213d52(0x188)===_0x487bb3[_0x213d52(0x198)];}(_0x3024ba)){const _0x59f3fa=_0x359335(this[_0x409a86(0x9b)][_0x409a86(0xa6)],_0x409a86(0x143));this[_0x409a86(0x176)](_0x59f3fa);}else{if(!(_0x3024ba instanceof X))throw _0x3024ba;this[_0x409a86(0x176)]();}}}}[_0x1c27f6(0xa3)](){const _0x51d488=_0x1c27f6,_0x38961f=this[_0x51d488(0x9b)][_0x51d488(0xcd)][_0x51d488(0x110)](_0x450e91),_0x2dbe3e=this[_0x51d488(0x9b)][_0x51d488(0xcd)][_0x51d488(0x110)](_0x14e3a8);this[_0x51d488(0x9b)][_0x51d488(0x12e)](_0x51d488(0x121)),_0x2dbe3e[_0x51d488(0x126)][_0x51d488(0xd4)](this[_0x51d488(0xb0)])&&_0x2dbe3e[_0x51d488(0xe3)](this[_0x51d488(0xb0)]),_0x38961f[_0x51d488(0xb3)](this),this[_0x51d488(0xcb)](),super[_0x51d488(0xa3)]();}async[_0x1c27f6(0x129)](_0x250d54){const _0x5a6056=_0x1c27f6;if(this[_0x5a6056(0x13d)]!==_0x250d54[_0x5a6056(0x13d)]&&this[_0x5a6056(0x14b)]!==_0x250d54[_0x5a6056(0x173)])throw new X();return this[_0x5a6056(0x13d)]=_0x250d54[_0x5a6056(0x13d)],this[_0x5a6056(0x15e)]([],{..._0x250d54,'wereChangesApplied':!0x1,'data':_0x250d54[_0x5a6056(0x19d)]},_0x5a6056(0xe8));}async[_0x1c27f6(0x13c)](_0x13efe0,_0x3015de=!0x1){const _0x2a14be=_0x1c27f6,{connection:_0x55767d}=this[_0x2a14be(0x9b)][_0x2a14be(0xcd)][_0x2a14be(0x110)](_0x450e91);l[_0x2a14be(0x137)][_0x2a14be(0xba)](_0x55767d,this[_0x2a14be(0xb0)])[_0x2a14be(0xa2)](_0x448950=>this[_0x2a14be(0x169)](_0x448950))[_0x2a14be(0x12a)](_0x18bfb8=>{const _0xd2d278=_0x2a14be;this[_0xd2d278(0xdb)](_0xd2d278(0xa9),_0x18bfb8);}),this[_0x2a14be(0xa5)](this[_0x2a14be(0x12b)],_0x2a14be(0xf3),this[_0x2a14be(0xd3)][_0x2a14be(0xca)](this)),this[_0x2a14be(0xa5)](this[_0x2a14be(0x12b)],_0x2a14be(0x11d),(_0x5f5e59,_0x15a01d)=>{const _0xf1dc35=_0x2a14be;this[_0xf1dc35(0xdb)](_0xf1dc35(0x151),_0x15a01d);}),this[_0x2a14be(0xa5)](this[_0x2a14be(0x12b)],_0x2a14be(0x1a0),()=>{const _0x3e860c=_0x2a14be;this[_0x3e860c(0x9c)]=!0x1;});const _0x2232aa=this[_0x2a14be(0x9f)][_0x2a14be(0x199)](_0x13efe0);this[_0x2a14be(0xe1)]=!0x0;const _0x28837f=await this[_0x2a14be(0x12b)][_0x2a14be(0x145)](_0x55767d,this[_0x2a14be(0xd1)](_0x13efe0),_0x2232aa);if(this[_0x2a14be(0x13d)]=_0x28837f[_0x2a14be(0x13d)],_0x3015de){if(!_0x28837f[_0x2a14be(0x19c)])return void this[_0x2a14be(0x176)]();this[_0x2a14be(0xe1)]=!0x1,this[_0x2a14be(0x16e)](),this[_0x2a14be(0x146)][_0x2a14be(0x10e)](),this[_0x2a14be(0x14f)]=_0x28837f[_0x2a14be(0xa0)],this[_0x2a14be(0x146)][_0x2a14be(0xe9)]=this[_0x2a14be(0x14f)],await this[_0x2a14be(0x15e)](_0x13efe0,_0x28837f,_0x2a14be(0x12f));}else await this[_0x2a14be(0x115)](_0x28837f,_0x13efe0);this[_0x2a14be(0x19b)](),this[_0x2a14be(0x9c)]=!0x0;}[_0x1c27f6(0x19b)](){const _0x574d89=_0x1c27f6,_0x5c8d74=this[_0x574d89(0x9b)][_0x574d89(0xcd)][_0x574d89(0x110)](_0x14e3a8),_0xf73001=this[_0x574d89(0x9b)][_0x574d89(0xcd)][_0x574d89(0x110)](_0x4d89a8),_0x3535c5=_0x5c8d74[_0x574d89(0x126)][_0x574d89(0x110)](this[_0x574d89(0xb0)]);_0x3535c5&&_0x3535c5[_0x574d89(0x106)]>0x1?_0xf73001[_0x574d89(0x157)]():this[_0x574d89(0xa5)](_0x5c8d74,_0x574d89(0x181)+this[_0x574d89(0xb0)],()=>{const _0x32ca6f=_0x574d89;0x2===_0x5c8d74[_0x32ca6f(0x126)][_0x32ca6f(0x110)](this[_0x32ca6f(0xb0)])[_0x32ca6f(0x106)]&&_0xf73001[_0x32ca6f(0x157)]();});}async[_0x1c27f6(0xd3)](_0x12c6af,_0x4d0974,_0x4e3810,_0x4e9284){const _0x3db220=_0x1c27f6;if(!this[_0x3db220(0xe1)]&&this[_0x3db220(0xc7)][_0x3db220(0xe9)]==_0x4d0974){const _0x3c9d49=this[_0x3db220(0xe4)](_0x4e3810,_0x4e9284);await this[_0x3db220(0xc0)](_0x3c9d49),this[_0x3db220(0xd9)](_0x3c9d49,_0x4d0974,_0x4e3810[_0x3db220(0x173)])||this[_0x3db220(0xdb)](_0x3db220(0xc5));}}async[_0x1c27f6(0xf9)](){const _0x58bf18=_0x1c27f6;this[_0x58bf18(0xcb)]();const {locale:_0x49f713}=this[_0x58bf18(0x9b)];let _0x35e1f1;try{_0x35e1f1=await this[_0x58bf18(0x12b)][_0x58bf18(0xec)]();}catch{const _0x4f35c3=_0x359335(_0x49f713,_0x58bf18(0x192));return void this[_0x58bf18(0x176)](_0x4f35c3);}const _0x45bcb4=_0x35e1f1[_0x58bf18(0xde)]||_0x35e1f1[_0x58bf18(0xf6)];if(this[_0x58bf18(0x14b)]!==_0x45bcb4[_0x58bf18(0x173)]){const _0xb70fea=_0x359335(_0x49f713,_0x58bf18(0xc1));return void this[_0x58bf18(0x176)](_0xb70fea);}await this[_0x58bf18(0x13c)](this[_0x58bf18(0x9b)][_0x58bf18(0x148)][_0x58bf18(0x10d)][_0x58bf18(0xaa)][_0x58bf18(0xe2)](),!0x0);}[_0x1c27f6(0xcb)](){const _0x36b1dd=_0x1c27f6;this[_0x36b1dd(0x12b)][_0x36b1dd(0x102)](),this[_0x36b1dd(0x19f)]=[],clearTimeout(this[_0x36b1dd(0x164)]),this[_0x36b1dd(0x120)](this[_0x36b1dd(0x12b)]);}[_0x1c27f6(0x169)](_0x3e4e68){const _0x5ad542=_0x1c27f6,_0xaa9882=this[_0x5ad542(0x9b)][_0x5ad542(0xcd)][_0x5ad542(0x110)](_0x14e3a8);this[_0x5ad542(0xa5)](_0xaa9882,_0x5ad542(0x181)+this[_0x5ad542(0xb0)],(_0x37df89,{session:_0x45007e})=>{const _0x15b46e=_0x5ad542;if(_0x45007e['id']===_0xaa9882[_0x15b46e(0xc8)]){_0x37df89[_0x15b46e(0x15f)]();const _0xd23035=this[_0x15b46e(0x9b)][_0x15b46e(0xcd)][_0x15b46e(0xd4)](_0x15b46e(0xf0))&&this[_0x15b46e(0x9b)][_0x15b46e(0xcd)][_0x15b46e(0x110)](_0x15b46e(0xf0));let _0x3fa8b3=_0x45007e[_0x15b46e(0xc6)];_0xd23035&&_0xd23035[_0x15b46e(0x180)]&&(_0x3fa8b3=_0x3fa8b3[_0x15b46e(0x108)](_0x1850e3=>_0x15b46e(0x15c)!==_0x1850e3)),this[_0x15b46e(0x9b)][_0x15b46e(0xcd)][_0x15b46e(0x110)](_0x15b46e(0x183))[_0x15b46e(0x159)](_0x3fa8b3,this[_0x15b46e(0xb0)]);}}),_0xaa9882[_0x5ad542(0x18e)](this[_0x5ad542(0xb0)],_0x3e4e68);}[_0x1c27f6(0xfa)](){const _0xcd4381=_0x1c27f6,_0x4e3122=this[_0xcd4381(0x9b)][_0xcd4381(0x19d)][_0xcd4381(0xfc)];this[_0xcd4381(0x9b)][_0xcd4381(0x19d)][_0xcd4381(0xfc)]=(..._0x5b416e)=>{const _0xaecd6f=_0xcd4381;if(!_0x5b416e[_0x5b416e[_0xaecd6f(0x106)]-0x1][_0xaecd6f(0x16f)])throw new _0x5aa002(_0xaecd6f(0xf2),this);_0x4e3122[_0xaecd6f(0x13f)](this[_0xaecd6f(0x9b)][_0xaecd6f(0x19d)],_0x5b416e);};}[_0x1c27f6(0x175)](){const _0x56b105=_0x1c27f6;this[_0x56b105(0x9b)][_0x56b105(0x19d)]['on'](_0x56b105(0x172),(_0x22c78d,[_0x31b217])=>{const _0x4ab878=_0x56b105;if(this[_0x4ab878(0xc7)][_0x4ab878(0xe9)])throw new _0x5aa002(_0x4ab878(0x18a),this);_0x22c78d[_0x4ab878(0x11c)](),this[_0x4ab878(0x15b)]();const _0x3a0bf9=this[_0x4ab878(0x9b)][_0x4ab878(0x10c)][_0x4ab878(0x110)](_0x4ab878(0x17b)),_0x34051c=this[_0x4ab878(0x128)](_0x31b217,_0x3a0bf9);0x0==_0x34051c[_0x4ab878(0x106)]&&_0x34051c[_0x4ab878(0x112)](new _0x581e69(0x0)),_0x22c78d[_0x4ab878(0xbd)]=this[_0x4ab878(0x13c)](_0x34051c)[_0x4ab878(0xa2)](()=>{const _0x32017b=_0x4ab878;this[_0x32017b(0x9b)][_0x32017b(0xcd)][_0x32017b(0x110)](_0x450e91)[_0x32017b(0xfd)](this),this[_0x32017b(0x9b)][_0x32017b(0x19d)][_0x32017b(0xd5)](_0x32017b(0xb8));})[_0x4ab878(0x12a)](_0x1ecd3b=>this[_0x4ab878(0xdb)](_0x4ab878(0x189),_0x1ecd3b))[_0x4ab878(0xe7)](()=>this[_0x4ab878(0x16e)]());},{'priority':_0x56b105(0x109)}),this[_0x56b105(0x9b)]['on'](_0x56b105(0x16c),async(_0xf69160,[_0x2bf4e4,_0xfcbaae])=>{const _0x40cff3=_0x56b105;_0xf69160[_0x40cff3(0x11c)]();const _0x5c6d38=this[_0x40cff3(0x9b)][_0x40cff3(0x148)][_0x40cff3(0x10d)][_0x40cff3(0xd7)](_0x2bf4e4);if(!this[_0x40cff3(0xb6)][_0x40cff3(0xd4)](_0x2bf4e4)){const _0x2d5209=_0xfcbaae&&_0xfcbaae[_0x40cff3(0x19d)]?_0xfcbaae[_0x40cff3(0x19d)]:'',_0x4d42f2=_0xfcbaae&&_0xfcbaae[_0x40cff3(0x144)]?_0xfcbaae[_0x40cff3(0x144)]:{};await this[_0x40cff3(0xfb)](_0x2bf4e4,_0x2d5209,_0x4d42f2);}this[_0x40cff3(0x9b)][_0x40cff3(0x148)][_0x40cff3(0xc2)]({'isUndoable':!0x1},()=>{const _0x547e12=_0x40cff3;_0x5c6d38[_0x547e12(0x14e)]=!0x0,this[_0x547e12(0x9b)][_0x547e12(0x148)][_0x547e12(0x10d)][_0x547e12(0xb4)][_0x547e12(0x171)](_0x5c6d38);});},{'priority':_0x56b105(0x109)});}async[_0x1c27f6(0xc0)](_0x1c5360){const _0x5b422c=_0x1c27f6,_0x5c8e17=this[_0x5b422c(0x9b)][_0x5b422c(0xcd)][_0x5b422c(0x110)](_0x2dc2da),{connection:_0x2a0a21}=this[_0x5b422c(0x9b)][_0x5b422c(0xcd)][_0x5b422c(0x110)](_0x450e91),_0x5c8433=new Set();for(const _0x4c4ba6 of _0x1c5360){const _0x210a27=_0x4c4ba6[_0x5b422c(0x10f)];_0x210a27&&!_0x5c8e17[_0x5b422c(0xa1)](_0x210a27)&&_0x5c8433[_0x5b422c(0x133)](_0x210a27);}if(0x0===_0x5c8433[_0x5b422c(0xa8)])return;const _0x160406=await _0x3f944a[_0x5b422c(0x119)](_0x2a0a21,Array[_0x5b422c(0x193)](_0x5c8433));for(const _0x1b087c of _0x160406)_0x5c8e17[_0x5b422c(0xa1)](_0x1b087c['id'])||_0x5c8e17[_0x5b422c(0x100)](_0x1b087c);}[_0x1c27f6(0x128)](_0x2ca348,_0x2213d1={}){const _0x8105d8=_0x1c27f6,_0x118a2a=this[_0x8105d8(0x9b)][_0x8105d8(0x148)],_0x4295b4=[];let _0x3e0ceb=0x0;const _0x193a83=_0x8105d8(0x17a)==typeof _0x2ca348?{'main':_0x2ca348}:_0x2ca348;for(const _0x23ff2d of Object[_0x8105d8(0x123)](_0x193a83)){if(!this[_0x8105d8(0xc7)][_0x8105d8(0xdd)][_0x8105d8(0xd4)](_0x23ff2d))throw new _0x5aa002(_0x8105d8(0x14d),this);const _0x11395b=this[_0x8105d8(0x9b)][_0x8105d8(0x19d)][_0x8105d8(0xb1)](_0x193a83[_0x23ff2d]),_0x410ead=this[_0x8105d8(0xc7)][_0x8105d8(0xd7)](_0x23ff2d),_0x53d0bd=new _0x34d099(_0x118a2a[_0x8105d8(0xa4)](_0x410ead,0x0),_0x11395b,_0x3e0ceb++);_0x4295b4[_0x8105d8(0x112)](_0x53d0bd);for(const [_0x412a0a,_0x3748d3]of _0x11395b[_0x8105d8(0xb5)]){const _0x40c4da=_0x118a2a[_0x8105d8(0x12d)](_0x118a2a[_0x8105d8(0x142)](_0x410ead,_0x3748d3[_0x8105d8(0xb7)][_0x8105d8(0x140)][_0x8105d8(0x103)]()),_0x118a2a[_0x8105d8(0x142)](_0x410ead,_0x3748d3[_0x8105d8(0x150)][_0x8105d8(0x140)][_0x8105d8(0x103)]())),_0x4d02b5=new _0x4e1cb0(_0x412a0a,null,_0x40c4da,_0x118a2a[_0x8105d8(0xb5)],!0x0,_0x3e0ceb++);_0x4295b4[_0x8105d8(0x112)](_0x4d02b5);}}if(_0x2213d1)for(const [_0x59eda6,_0x5bbc10]of Object[_0x8105d8(0x185)](_0x2213d1)){const _0x62ff8f=_0x118a2a[_0x8105d8(0x10d)][_0x8105d8(0xd7)](_0x59eda6);if(!_0x62ff8f)throw new _0x5aa002(_0x8105d8(0x170),null);for(const [_0x38a380,_0x501d58]of Object[_0x8105d8(0x185)](_0x5bbc10))if(null!==_0x501d58){const _0x9715e7=new _0x2ccb46(_0x62ff8f,_0x38a380,null,_0x501d58,_0x3e0ceb++);_0x4295b4[_0x8105d8(0x112)](_0x9715e7);}}return _0x4295b4;}async[_0x1c27f6(0xfb)](_0x111561,_0x476eea,_0x1678d0){const _0x15f06c=_0x1c27f6;this[_0x15f06c(0x128)]({[_0x111561]:_0x476eea},{[_0x111561]:_0x1678d0})[_0x15f06c(0x14a)]((_0x362073,_0x1181a2)=>{const _0xc5230c=_0x15f06c;_0x362073[_0xc5230c(0x160)]=this[_0xc5230c(0xc7)][_0xc5230c(0xe9)]+_0x1181a2,_0x362073[_0xc5230c(0xf4)]=!0x0,this[_0xc5230c(0xef)](_0x362073);}),this[_0x15f06c(0x101)](),await this[_0x15f06c(0x131)]();}async[_0x1c27f6(0x115)](_0x435eb6,_0x4cf03c){const _0x4e28e6=_0x1c27f6;let _0x177de4;this[_0x4e28e6(0x14f)]=_0x435eb6[_0x4e28e6(0xa0)];const _0x2c43dc=_0x435eb6[_0x4e28e6(0x19c)]&&!_0x435eb6[_0x4e28e6(0x107)],_0x5bdffd=_0x2c43dc?0x0:_0x435eb6[_0x4e28e6(0x19d)][_0x4e28e6(0x160)];if(_0x4cf03c[_0x4e28e6(0x14a)](_0x4c1d53=>{const _0x449b96=_0x4e28e6;_0x4c1d53[_0x449b96(0xf4)]=!0x0,_0x4c1d53[_0x449b96(0x18f)]=_0x435eb6[_0x449b96(0x190)],_0x4c1d53[_0x449b96(0x10f)]=null;}),_0x2c43dc)_0x177de4=_0x4cf03c,this[_0x4e28e6(0x149)](_0x177de4,_0x2c43dc);else{if(_0x435eb6[_0x4e28e6(0x107)]){const _0x4bb4df=this[_0x4e28e6(0x128)](_0x435eb6[_0x4e28e6(0x107)]);this[_0x4e28e6(0xc7)][_0x4e28e6(0xaa)][_0x4e28e6(0xe9)]=-_0x4bb4df[_0x4e28e6(0x106)],_0x4bb4df[_0x4e28e6(0x14a)](_0x2e996e=>{const _0x7b8a29=_0x4e28e6;_0x2e996e[_0x7b8a29(0x160)]-=_0x4bb4df[_0x7b8a29(0x106)],_0x2e996e[_0x7b8a29(0x18f)]=_0x435eb6[_0x7b8a29(0x190)],_0x2e996e[_0x7b8a29(0xf4)]=!0x0,_0x2e996e[_0x7b8a29(0x10f)]=null;}),this[_0x4e28e6(0x149)](_0x4bb4df,!0x0),this[_0x4e28e6(0x146)][_0x4e28e6(0xe9)]=-_0x4bb4df[_0x4e28e6(0x106)]+this[_0x4e28e6(0x14f)],this[_0x4e28e6(0x16b)](_0x4bb4df);}this[_0x4e28e6(0xc7)][_0x4e28e6(0xaa)][_0x4e28e6(0xe9)]=_0x5bdffd,_0x177de4=this[_0x4e28e6(0xe4)](_0x435eb6[_0x4e28e6(0x19d)],_0x435eb6[_0x4e28e6(0xdc)]),await this[_0x4e28e6(0xc0)](_0x177de4),this[_0x4e28e6(0x149)](_0x177de4,_0x2c43dc);}_0x435eb6[_0x4e28e6(0x173)]&&(this[_0x4e28e6(0x9f)][_0x4e28e6(0x19a)](_0x177de4,_0x435eb6[_0x4e28e6(0x173)]),this[_0x4e28e6(0x14b)]=_0x435eb6[_0x4e28e6(0x173)]),this[_0x4e28e6(0x146)][_0x4e28e6(0xe9)]=_0x5bdffd+this[_0x4e28e6(0x14f)],this[_0x4e28e6(0x16b)](_0x177de4),_0x4cf03c[_0x4e28e6(0x108)](_0x4d811e=>{const _0x2ae39f=_0x4e28e6,_0x57d350=this[_0x2ae39f(0xc3)](_0x4d811e);return _0x57d350&&!this[_0x2ae39f(0xb6)][_0x2ae39f(0xd4)](_0x57d350);})[_0x4e28e6(0x14a)]((_0x3a66ad,_0x3166ac)=>{const _0x1f8f84=_0x4e28e6;_0x3a66ad[_0x1f8f84(0x160)]=this[_0x1f8f84(0xc7)][_0x1f8f84(0xe9)]+_0x3166ac,this[_0x1f8f84(0xef)](_0x3a66ad);}),this[_0x4e28e6(0xe6)]()?(this[_0x4e28e6(0xd0)]=0x0,this[_0x4e28e6(0x101)](!0x0),await this[_0x4e28e6(0x131)]()):(this[_0x4e28e6(0xe1)]=!0x1,this[_0x4e28e6(0x16e)]());}[_0x1c27f6(0xdb)](_0x5dd43e,_0x30e030){const _0x317efb=_0x1c27f6,_0x1daa41=_0x30e030&&_0x30e030[_0x317efb(0xa7)];if(_0x1daa41&&_0x1daa41[_0x317efb(0x19e)](_0x317efb(0x153)))throw _0x30e030;const _0x27b2e0=this[_0x317efb(0x9b)][_0x317efb(0xcd)][_0x317efb(0x110)](_0x450e91);throw this[_0x317efb(0xe1)]=!0x0,_0x27b2e0[_0x317efb(0x102)](),this[_0x317efb(0x9b)][_0x317efb(0x12e)](_0x317efb(0x166)),new _0x5aa002(_0x5dd43e,this[_0x317efb(0x9b)],_0x1daa41?{'originalError':_0x1daa41}:void 0x0);}[_0x1c27f6(0xef)](_0x266fcf){const _0xcb6cf0=_0x1c27f6;this[_0xcb6cf0(0xab)][_0xcb6cf0(0xd4)](_0x266fcf)||(this[_0xcb6cf0(0xab)][_0xcb6cf0(0x133)](_0x266fcf),this[_0xcb6cf0(0x19f)][_0xcb6cf0(0x112)](_0x266fcf),this[_0xcb6cf0(0x18b)]||_0xcb6cf0(0xb9)==_0x266fcf[_0xcb6cf0(0x177)]&&!_0x266fcf[_0xcb6cf0(0x186)]||this[_0xcb6cf0(0x15b)]());}[_0x1c27f6(0x101)](_0x4f8294=!0x1){const _0x39283c=_0x1c27f6;!_0x4f8294&&this[_0x39283c(0xe1)]||(this[_0x39283c(0xe1)]=!0x0,clearTimeout(this[_0x39283c(0x164)]),this[_0x39283c(0x164)]=setTimeout(()=>{const _0x423e87=_0x39283c;this[_0x423e87(0x124)]()[_0x423e87(0xa2)](_0x2b879e=>{const _0x115122=_0x423e87;_0x2b879e&&(this[_0x115122(0x16e)](),this[_0x115122(0xe1)]=!0x1);})[_0x423e87(0x12a)](_0x1fc4aa=>{const _0x2d887a=_0x423e87;this[_0x2d887a(0x16e)](),this[_0x2d887a(0xe1)]=!0x1,function(_0xfc4efb){const _0x1a0718=_0x2d887a;return _0xfc4efb[_0x1a0718(0xa7)][_0x1a0718(0x19e)](_0x1a0718(0x113))||_0xfc4efb[_0x1a0718(0xa7)][_0x1a0718(0x19e)](_0x1a0718(0x165))||_0xfc4efb[_0x1a0718(0xa7)][_0x1a0718(0x19e)](_0x1a0718(0x152));}(_0x1fc4aa)||this[_0x2d887a(0xdb)](_0x1fc4aa[_0x2d887a(0xa7)],_0x1fc4aa);});},this[_0x39283c(0xd0)]));}[_0x1c27f6(0x131)](){return new Promise(_0x5806ab=>{const _0x45fe41=_0x2f35;this['on'](_0x45fe41(0x187),()=>{_0x5806ab();});});}async[_0x1c27f6(0x124)](){const _0xe2407d=_0x1c27f6,_0x2839de=this[_0xe2407d(0x9b)][_0xe2407d(0xcd)][_0xe2407d(0x110)](_0x4d89a8);if(this[_0xe2407d(0x11f)]()&&(_0x2839de[_0xe2407d(0x157)](),this[_0xe2407d(0x11b)]=!0x1),!this[_0xe2407d(0xe6)]())return!0x0;const _0x855b43=[...this[_0xe2407d(0x19f)]];for(const _0x488cbe of _0x855b43)_0x488cbe[_0xe2407d(0x184)]=this[_0xe2407d(0xc7)][_0xe2407d(0xaa)][_0xe2407d(0x179)](_0x488cbe);const _0x435bd8=this[_0xe2407d(0x9f)][_0xe2407d(0x199)](_0x855b43),_0x477de7=Q++,_0x470908=this[_0xe2407d(0xd1)](_0x855b43),_0x19d22e=await this[_0xe2407d(0x12b)][_0xe2407d(0xc9)](_0x470908,_0x470908[_0xe2407d(0x160)],_0x435bd8);try{return await this[_0xe2407d(0x15e)](_0x855b43,_0x19d22e,_0x477de7);}catch(_0xd52a7c){return this[_0xe2407d(0xdb)](_0xe2407d(0xd2),_0xd52a7c);}}async[_0x1c27f6(0x15e)](_0x38fc96,_0x1038b6,_0x5d465c){const _0x62e079=_0x1c27f6;if(_0x62e079(0x11d)in _0x1038b6)throw _0x1038b6[_0x62e079(0x11d)];let _0x558073=!0x1;if(_0x1038b6[_0x62e079(0x19c)]){_0x1038b6[_0x62e079(0x173)]&&(this[_0x62e079(0x14b)]=_0x1038b6[_0x62e079(0x173)]),this[_0x62e079(0x19f)]=this[_0x62e079(0x19f)][_0x62e079(0x108)](_0x3458c2=>!_0x38fc96[_0x62e079(0x15d)](_0x3458c2));for(const _0x1efebf of _0x38fc96)_0x1efebf[_0x62e079(0x18f)]=_0x62e079(0x14c)in _0x1038b6&&_0x1038b6[_0x62e079(0x14c)]||void 0x0;Y(_0x38fc96,_0x1038b6[_0x62e079(0xe9)]-_0x38fc96[_0x62e079(0x106)]),this[_0x62e079(0x16b)](_0x38fc96);const _0x272271=_0x38fc96[_0x62e079(0x108)](_0x8af88f=>{const _0x4d6091=_0x62e079;if(!_0x8af88f[_0x4d6091(0xf4)])return!0x1;const _0x3fb79e=this[_0x4d6091(0xc3)](_0x8af88f);return _0x3fb79e&&!this[_0x4d6091(0xb6)][_0x4d6091(0xd4)](_0x3fb79e);});Y(_0x272271,this[_0x62e079(0xc7)][_0x62e079(0xe9)]),this[_0x62e079(0x149)](_0x272271),_0x558073=!0x0,this[_0x62e079(0xd0)]=this[_0x62e079(0x162)];}else{const _0x32f4d2=this[_0x62e079(0xe4)](_0x1038b6[_0x62e079(0x19d)],_0x1038b6[_0x62e079(0xdc)])[_0x62e079(0x108)](_0xca56a3=>_0xca56a3[_0x62e079(0x160)]>=this[_0x62e079(0xda)]);_0x32f4d2[_0x62e079(0x14a)](_0x47952f=>this[_0x62e079(0x130)](_0x47952f)),this[_0x62e079(0x19f)]=this[_0x62e079(0x19f)][_0x62e079(0x108)](_0x1460cf=>!_0x1460cf[_0x62e079(0xf4)]||!this[_0x62e079(0xb6)][_0x62e079(0xd4)](this[_0x62e079(0xc3)](_0x1460cf))),this[_0x62e079(0x19f)][_0x62e079(0x106)]&&Y(this[_0x62e079(0x19f)],this[_0x62e079(0x19f)][0x0][_0x62e079(0x160)]),await this[_0x62e079(0xc0)](_0x32f4d2),_0x558073=this[_0x62e079(0xd9)](_0x32f4d2,_0x1038b6[_0x62e079(0xe9)],_0x1038b6[_0x62e079(0x173)]),this[_0x62e079(0xd0)]=Math[_0x62e079(0x139)](this[_0x62e079(0xd0)]/0x2);}return _0x558073?!this[_0x62e079(0xe6)]()||(this[_0x62e079(0x101)](!0x0),!0x1):this[_0x62e079(0xdb)](_0x62e079(0x163));}[_0x1c27f6(0xd9)](_0x243828,_0x2cf723,_0xe4a893){const _0x5b009=_0x1c27f6;try{const _0x1ae74b={'document':this[_0x5b009(0xc7)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x95d16,operationsB:_0x370329,originalOperations:_0x1a00b5}=_0x4c3eee(_0x243828,this[_0x5b009(0x19f)],_0x1ae74b);Y(_0x95d16,this[_0x5b009(0xc7)][_0x5b009(0xe9)]),Y(_0x370329,_0x2cf723);for(const _0xc761de of _0x95d16){const _0x282e65=_0x1a00b5[_0x5b009(0x110)](_0xc761de);_0xc761de[_0x5b009(0x10f)]=_0x282e65?_0x282e65[_0x5b009(0x10f)]:null;}_0xe4a893&&(this[_0x5b009(0x9f)][_0x5b009(0x19a)](_0x243828,_0xe4a893),this[_0x5b009(0x14b)]=_0xe4a893),this[_0x5b009(0x19f)]=[..._0x370329],this[_0x5b009(0x149)](_0x95d16),this[_0x5b009(0x16b)](_0x243828);}catch(_0x32231c){return console[_0x5b009(0x11d)](_0x32231c),!0x1;}return!0x0;}[_0x1c27f6(0x149)](_0x10ff4a,_0x2c91e2=!0x1){const _0x13d06c=_0x1c27f6;this[_0x13d06c(0x9b)][_0x13d06c(0x148)][_0x13d06c(0xc2)]({'isUndoable':!0x1,'isLocal':!0x1},_0x2f73ac=>{const _0x303005=_0x13d06c;for(const _0x24add6 of _0x10ff4a)this[_0x303005(0xab)][_0x303005(0x133)](_0x24add6),this[_0x303005(0x130)](_0x24add6),_0x2f73ac[_0x303005(0x105)][_0x303005(0x10b)](_0x24add6),this[_0x303005(0x9b)][_0x303005(0x148)][_0x303005(0x13e)](_0x24add6);});}[_0x1c27f6(0x130)](_0x292e12){const _0x2fdd03=_0x1c27f6,_0x4dff6f=this[_0x2fdd03(0xc3)](_0x292e12);_0x4dff6f&&this[_0x2fdd03(0xb6)][_0x2fdd03(0x133)](_0x4dff6f);}[_0x1c27f6(0xc3)](_0x75f2ad){const _0x5a5f75=_0x1c27f6;let _0x16d955,_0x1d57da;switch(_0x75f2ad[_0x5a5f75(0x177)]){case _0x5a5f75(0x138):_0x16d955=_0x75f2ad[_0x5a5f75(0xeb)][_0x5a5f75(0x122)];break;case _0x5a5f75(0xb9):if(_0x1d57da=_0x75f2ad[_0x5a5f75(0x11a)],!_0x1d57da)return null;_0x16d955=_0x1d57da[_0x5a5f75(0x122)];break;case _0x5a5f75(0xf8):_0x16d955=_0x75f2ad[_0x5a5f75(0x122)];break;case _0x5a5f75(0x155):_0x16d955=_0x75f2ad[_0x5a5f75(0x156)];break;case _0x5a5f75(0x178):_0x16d955=_0x75f2ad[_0x5a5f75(0xac)][_0x5a5f75(0x122)];break;default:return null;}return _0x16d955[_0x5a5f75(0x134)];}[_0x1c27f6(0x16b)](_0x4be008){const _0x1b4a54=_0x1c27f6;_0x4be008[_0x1b4a54(0x14a)](_0x45ad6f=>{const _0x5daa2c=_0x1b4a54,_0x1701f8=_0x45ad6f[_0x5daa2c(0x17e)]();_0x1701f8[_0x5daa2c(0x10f)]=_0x45ad6f[_0x5daa2c(0x10f)],_0x1701f8[_0x5daa2c(0xf4)]=!!_0x45ad6f[_0x5daa2c(0xf4)],_0x1701f8[_0x5daa2c(0x18f)]=_0x45ad6f[_0x5daa2c(0x18f)],_0x1701f8[_0x5daa2c(0x160)]+=this[_0x5daa2c(0x14f)],_0x45ad6f[_0x5daa2c(0x11e)]&&this[_0x5daa2c(0x132)][_0x5daa2c(0x133)](_0x1701f8),this[_0x5daa2c(0x146)][_0x5daa2c(0x10b)](_0x1701f8);});}[_0x1c27f6(0x176)](_0x43c488){const _0x1cbfa9=_0x1c27f6,_0x1eb986=this[_0x1cbfa9(0x9b)][_0x1cbfa9(0xcd)][_0x1cbfa9(0x110)](_0x1cbfa9(0x158)),_0x7dc071=this[_0x1cbfa9(0x9b)][_0x1cbfa9(0xa6)];_0x43c488||(_0x43c488=_0x359335(_0x7dc071,_0x1cbfa9(0x114))),_0x1eb986[_0x1cbfa9(0xcf)](_0x43c488,{'title':_0x359335(_0x7dc071,_0x1cbfa9(0xdf)),'namespace':_0x1cbfa9(0x16a)}),this[_0x1cbfa9(0x18d)]=!0x0,clearTimeout(this[_0x1cbfa9(0x164)]),this[_0x1cbfa9(0x19f)]=[],this[_0x1cbfa9(0x9b)][_0x1cbfa9(0xcd)][_0x1cbfa9(0x110)](_0x450e91)[_0x1cbfa9(0x102)]();}[_0x1c27f6(0x15b)](){const _0xba818a=_0x1c27f6;this[_0xba818a(0x18b)]||(this[_0xba818a(0x18b)]=this[_0xba818a(0x9b)][_0xba818a(0xcd)][_0xba818a(0x110)](_0x555315)[_0xba818a(0x133)](_0x359335(this[_0xba818a(0x9b)][_0xba818a(0xa6)],_0xba818a(0x17d))));}[_0x1c27f6(0x16e)](){const _0x459974=_0x1c27f6;this[_0x459974(0x18b)]&&(this[_0x459974(0x9b)][_0x459974(0xcd)][_0x459974(0x110)](_0x555315)[_0x459974(0x125)](this[_0x459974(0x18b)]),this[_0x459974(0x18b)]=null);}[_0x1c27f6(0xd1)](_0x3fabfc){const _0x34ee7f=_0x1c27f6,_0x337617=_0x3fabfc[_0x34ee7f(0xf5)](_0x263288=>_0x263288[_0x34ee7f(0xce)]());return this[_0x34ee7f(0xe5)][_0x34ee7f(0xbe)](_0x337617);}[_0x1c27f6(0xe4)](_0x382287,_0x150e7d){const _0x5cc930=_0x1c27f6;return this[_0x5cc930(0xe5)][_0x5cc930(0x17c)](_0x382287)[_0x5cc930(0xf5)]((_0x4f9ee1,_0xe37ad7)=>{const _0xb16ec6=_0x5cc930,_0x58da6c=_0xb16ec6(0x172)==_0x150e7d[_0xe37ad7][_0xb16ec6(0x177)];if(_0xb16ec6(0x168)==_0x4f9ee1[_0xb16ec6(0xbc)]){const _0xf5632f=_0x4f9ee1[_0xb16ec6(0xeb)][_0xb16ec6(0x122)];!this[_0xb16ec6(0xc7)][_0xb16ec6(0xd7)](_0xf5632f)&&(this[_0xb16ec6(0xc7)][_0xb16ec6(0xf1)](_0xb16ec6(0x111),_0xf5632f)[_0xb16ec6(0xfe)]=!0x1);}const _0x445438=_0x5be407[_0xb16ec6(0x147)](_0x4f9ee1,this[_0xb16ec6(0xc7)]);return _0x445438[_0xb16ec6(0x184)]=_0x4f9ee1[_0xb16ec6(0x184)],_0x445438[_0xb16ec6(0xf4)]=_0x58da6c,_0x445438[_0xb16ec6(0x10f)]=_0x58da6c?null:_0x150e7d[_0xe37ad7][_0xb16ec6(0x174)],_0x445438[_0xb16ec6(0x11e)]=_0xb16ec6(0x117)===_0x150e7d[_0xe37ad7][_0xb16ec6(0x177)],_0x445438[_0xb16ec6(0x18f)]=_0x150e7d[_0xe37ad7][_0xb16ec6(0x18f)],_0x445438;});}[_0x1c27f6(0xbf)](){const _0x18e564=_0x1c27f6;this[_0x18e564(0x11b)]=!0x0,this[_0x18e564(0x11f)]()?this[_0x18e564(0x101)]():this[_0x18e564(0x11b)]=!0x1;}[_0x1c27f6(0x11f)](){const _0x18e1e4=_0x1c27f6,_0x2ad36b=this[_0x18e1e4(0x9b)][_0x18e1e4(0xcd)][_0x18e1e4(0x110)](_0x14e3a8)[_0x18e1e4(0x126)][_0x18e1e4(0x110)](this[_0x18e1e4(0xb0)]);return!this[_0x18e1e4(0x9b)][_0x18e1e4(0x135)]&&!!_0x2ad36b&&_0x2ad36b[_0x18e1e4(0x106)]>0x1&&this[_0x18e1e4(0x11b)];}[_0x1c27f6(0xe6)](){const _0x447a7a=_0x1c27f6;return this[_0x447a7a(0x19f)][_0x447a7a(0x106)]>0x0||this[_0x447a7a(0x11f)]();}}export{l as RealTimeCollaborationClient};class X extends Error{}function Y(_0x3e0ca1,_0x1897af){const _0x3f3ded=_0x1c27f6;for(const _0x146885 of _0x3e0ca1)_0x146885[_0x3f3ded(0x160)]=_0x1897af++;}class Z{[_0x1c27f6(0x195)];[_0x1c27f6(0x141)];constructor(_0x23f952){const _0x110821=_0x1c27f6;this[_0x110821(0x195)]=_0x23f952,this[_0x110821(0x141)]=new WeakMap();}[_0x1c27f6(0x199)](_0x4f6eb0){const _0x13147b=_0x1c27f6;let _0x394b9b=_0x4f6eb0[_0x13147b(0x106)];for(;_0x394b9b--;){const _0x1240c6=_0x4f6eb0[_0x394b9b];if(!this[_0x13147b(0x195)][_0x13147b(0xd4)](_0x1240c6)){if(!this[_0x13147b(0x141)][_0x13147b(0xd4)](_0x1240c6)){const _0x638b4d=_0x15cd9e()[_0x13147b(0x103)](0x1,0x12);this[_0x13147b(0x141)][_0x13147b(0xfc)](_0x1240c6,_0x638b4d);}return this[_0x13147b(0x141)][_0x13147b(0x110)](_0x1240c6);}}}[_0x1c27f6(0x19a)](_0x38cce3,_0x22dab1){const _0x3f2fc9=_0x1c27f6;if(!_0x22dab1)return;let _0x1ce39f=_0x38cce3[_0x3f2fc9(0x106)];for(;_0x1ce39f--;){const _0x4e8408=_0x38cce3[_0x1ce39f];this[_0x3f2fc9(0x195)][_0x3f2fc9(0xd4)](_0x4e8408)||this[_0x3f2fc9(0x141)][_0x3f2fc9(0xfc)](_0x4e8408,_0x22dab1);}}}
|
|
23
|
+
const _0x16939b=_0x5dbe;(function(_0x10ae32,_0x3b8e4f){const _0x3416b5=_0x5dbe,_0x3e974e=_0x10ae32();while(!![]){try{const _0x5ba59c=parseInt(_0x3416b5(0x226))/0x1+-parseInt(_0x3416b5(0x1ee))/0x2*(parseInt(_0x3416b5(0x1fe))/0x3)+-parseInt(_0x3416b5(0x248))/0x4+parseInt(_0x3416b5(0x150))/0x5+-parseInt(_0x3416b5(0x189))/0x6+-parseInt(_0x3416b5(0x211))/0x7+-parseInt(_0x3416b5(0x216))/0x8*(-parseInt(_0x3416b5(0x1f7))/0x9);if(_0x5ba59c===_0x3b8e4f)break;else _0x3e974e['push'](_0x3e974e['shift']());}catch(_0x5cddab){_0x3e974e['push'](_0x3e974e['shift']());}}}(_0x184c,0xe28c9));import{Plugin as _0x3b237b,PendingActions as _0x1034f6}from'ckeditor5/src/core.js';import{CKEditorError as _0x91bd40,version as _0x54294d,uid as _0x2dff07}from'ckeditor5/src/utils.js';import{Notification as _0x2f7e6e}from'ckeditor5/src/ui.js';import{transformOperationSets as _0xd0ff0a,NoOperation as _0x49eda1,InsertOperation as _0x20f9de,MarkerOperation as _0x59ee00,RootAttributeOperation as _0x1b0d69,OperationFactory as _0x576023,History as _0x3b8e12}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x3b8499}from'./websocketgateway.js';import{Sessions as _0x3a256b}from'./sessions.js';function _0x5dbe(_0xd2063f,_0x5597a4){const _0x184c7f=_0x184c();return _0x5dbe=function(_0x5dbebd,_0x548259){_0x5dbebd=_0x5dbebd-0x14d;let _0x2e1932=_0x184c7f[_0x5dbebd];return _0x2e1932;},_0x5dbe(_0xd2063f,_0x5597a4);}import{UserMarkers as _0x2cefb6}from'./usermarkers.js';import{getTranslation as _0xd2b4cf}from'../common-translations.js';import{Compressor as _0x1658c3}from'@ckeditor/ckeditor5-operations-compressor';function _0x184c(){const _0x59d0dd=['rootsAttributes','addOperation','_getOperationsFromInitData','_shouldSendSelectionUpdate','PENDING_ACTION_SENDING_DATA','applyOperation','connected','model','_operationIdentifier','round','locale','compress','differ','listenTo','rootName','_hasSelectionChanged','decompress','_isPendingUpdate','_handleReceivedOperations','Synchronization\x20issue','pluginName','newRange','_initThrowingOnDataSet','enableReadOnlyMode','fromJSON','editor','stopListening','_getAffectedRoot','set','getConnectedSessions','CollaborativeEditingService','affectsData','cs:removeUser','config','change:_isEditingAllowed','_knownRootNames','_service','sessionId','_fetchMissingUsers','_handleExternalOperations','_pendingAction','404','lastDocumentSession','initData','realtimecollaborationclient-init-service-incorrect-server-operation','getOperationAuthor','fire','RealTimeCollaborationClient','_handleReconnectionResponse','parse','bind','createRoot','baseVersion','_isConnected','realtimecollaborationclient-init-session-connection-error','string','_decompressOperations','showWarning','size','_disconnectionOperations','addToReconnectionStack','high','addUser','remove','ready','end','disconnect','cloudServices.bundleVersion','getIdOfTheLastOperation','_updateServerHistory','isEnabled','selection','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','requires','path','define','addRootAttribute','realtimecollaborationclient-init-service-internal-error','document','_refreshUserSelectionMarkers','_addKnownRoot','_loadRoot','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.','_currentBufferDelay','multi-root-editor-root-attributes-no-root','_offset','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','_channelId','permissions','reconnection:\x20flushed\x20session','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','878078oBBFKj','map','_handleServerResponse','sessionCreatedAt','_lastServerVersion','createPositionAt','_handleReconnectionError','lastOperationId','_waitUntilSynced','3285gMdaKW','move','Notification','disconnected','disableReadOnlyMode','_isEditingAllowed','state','3DgKQLF','includes','getOperations','document:write','_bufferRootLoad','realtimecollaborationclient-init-connection-failed','409','__className','get','_disconnectService','has','isUndoneOperation','_sendBufferedOperationsDelayId','directChange','history','_isAttached','collaboration.channelId','_setPendingAction','insert','12268214OsYbwP','add','wereChangesApplied','createRange','_ignoredOperations','79592RBABjc','createdAt','_sendBufferedOperations','stop','apply','_knownOperations','_compressOperations','off','data','_handleInitialConnectionData','editing','_document','_isLoaded','_connectAfterSessionHasBeenFlushed','cloud-services-internal-error:\x20Request\x20timeout.','_connectService','363824fvDgbq','realtimecollaborationclient','realtimecollaborationclient-error','metadata','finally','isPremiumPlugin','Permissions','type','position','lastSyncVersion','setIdForTheLastOperation','enqueueChange','targetPosition','_isDisconnection','getRoot','marker','error','_setUpDataInit','message','_operationToId','_handleSendingSelectionMarkers','offset','realtimecollaborationclient-handleserverresponse','realtimecollaborationclient-init-non-existent-root','getUser','root','then','_baseBufferDelay','connect','lastOperationAcceptedAt','setPermissions','_compressor','collaboration','roots','1626480cZfNzf','_hasSynchronizationProblem','affectedSelectable','entries','real-time-collaboration','startsWith','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.','slice','markers','getDocumentDetails','_sendBufferedOperationsDelayed','currentDocumentSession','cloud-services-internal-error:\x20Not\x20connected.','6584575fbjgUN','createPositionFromPath','suppressErrorInCollaboration','createUserMarkerOperations','realtimecollaborationclient-sendbufferedoperations','filter','destroy','operationsReceived','cloudDocumentVersion','addRoot','_authorId','collaboration-missing-channelid','start','connection','_shouldSendUpdate','return','wasUndone','attributes','_crash','catch','isOfficialPlugin','push','channelSessions','from','_initSessionsHandling','reconnect','reset','InsertOperation','mySessionId','change:_isPendingUpdate','plugins','userId','getMany','keys','code','toJSON','_saveOperationInBuffer','version','unregister','$root','CommentsOnly','_bufferedOperations','realtimecollaborationclient-init-document-already-initialized','forEach','length','batch','sendOperations','loadRoot','view','isDocumentOperation','change:range','change:hasDomSelection','isReadOnly','clone','init','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','removeFromReconnectionStack','10715508efpNPU','rtc-destroyed','register','serverHistory','sessionAdd:','_applyOperationsSet','rtc-offline','_lastSyncedOperationId','_clearPendingAction','_isInit'];_0x184c=function(){return _0x59d0dd;};return _0x184c();}import{Users as _0x5629d4}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x27eaa3,CollaborativeEditingService as _0x1882da}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let q=0x1;class l extends _0x3b237b{static [_0x16939b(0x1b1)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x1882da)());[_0x16939b(0x1e8)];[_0x16939b(0x1b8)];[_0x16939b(0x18c)];[_0x16939b(0x1ea)];[_0x16939b(0x1b7)];[_0x16939b(0x221)];[_0x16939b(0x245)];[_0x16939b(0x179)];[_0x16939b(0x21b)];[_0x16939b(0x1b6)];[_0x16939b(0x1bb)];[_0x16939b(0x1a2)];[_0x16939b(0x20a)];[_0x16939b(0x241)];[_0x16939b(0x1e6)];[_0x16939b(0x190)];[_0x16939b(0x1ce)];[_0x16939b(0x19b)];static get[_0x16939b(0x1dc)](){return[_0x3b8499,_0x3a256b,_0x2cefb6,_0x1034f6,_0x5629d4,_0x2f7e6e];}static get[_0x16939b(0x1a7)](){const _0x40be1b=_0x16939b;return _0x40be1b(0x1c2);}static get[_0x16939b(0x164)](){return!0x0;}static get[_0x16939b(0x22b)](){return!0x0;}get[_0x16939b(0x158)](){const _0x2db5bc=_0x16939b;return this[_0x2db5bc(0x1f2)]+this[_0x2db5bc(0x1e8)];}get[_0x16939b(0x1f2)](){const _0x52de72=_0x16939b;return this[_0x52de72(0x18c)][_0x52de72(0x175)]-this[_0x52de72(0x1e8)];}get[_0x16939b(0x22f)](){const _0x1b3c4a=_0x16939b,_0x141f78=this[_0x1b3c4a(0x18c)][_0x1b3c4a(0x200)]();for(let _0x17d864=_0x141f78[_0x1b3c4a(0x17c)]-0x1;_0x17d864>=0x0;_0x17d864--){const _0x756a51=_0x141f78[_0x17d864];if(!this[_0x1b3c4a(0x1ce)][_0x1b3c4a(0x208)](_0x756a51))return _0x756a51[_0x1b3c4a(0x1c7)]+0x1-this[_0x1b3c4a(0x1e8)];}return 0x0;}constructor(_0x5468d3){const _0x102d04=_0x16939b;if(super(_0x5468d3),this[_0x102d04(0x1e8)]=0x0,this[_0x102d04(0x1b8)]=null,this[_0x102d04(0x18c)]=new _0x3b8e12(),this[_0x102d04(0x1ac)][_0x102d04(0x1b4)][_0x102d04(0x1de)](_0x102d04(0x246),{}),this[_0x102d04(0x1ea)]=this[_0x102d04(0x1ac)][_0x102d04(0x1b4)][_0x102d04(0x206)](_0x102d04(0x20e)),!this[_0x102d04(0x1ea)])throw new _0x91bd40(_0x102d04(0x15b),this);const _0x529720=_0x5468d3[_0x102d04(0x1b4)][_0x102d04(0x206)](_0x102d04(0x1d6))||_0x54294d;this[_0x102d04(0x1b7)]=new l[(_0x102d04(0x1b1))](_0x529720,this[_0x102d04(0x1ea)]),this[_0x102d04(0x221)]=this[_0x102d04(0x1ac)][_0x102d04(0x19a)][_0x102d04(0x1e1)],this[_0x102d04(0x245)]=new _0x1658c3(),this[_0x102d04(0x179)]=[],this[_0x102d04(0x21b)]=new WeakSet(),this[_0x102d04(0x1b6)]=new Set(),this[_0x102d04(0x1af)](_0x102d04(0x1a4),!0x1),this[_0x102d04(0x1af)](_0x102d04(0x249),!0x1),this[_0x102d04(0x1bb)]=null,this[_0x102d04(0x1a2)]=!0x1,this[_0x102d04(0x20a)]=null,this[_0x102d04(0x241)]=0x12c,this[_0x102d04(0x1e6)]=this[_0x102d04(0x241)],this[_0x102d04(0x190)]=null,this[_0x102d04(0x1ce)]=new WeakSet(),this[_0x102d04(0x19b)]=new K(this[_0x102d04(0x1ce)]);}[_0x16939b(0x186)](){const _0x22ebc3=_0x16939b,_0x580fe6=this[_0x22ebc3(0x1ac)],_0x3e5cf5=_0x580fe6[_0x22ebc3(0x16e)][_0x22ebc3(0x206)](_0x5629d4),_0x342e6d=_0x580fe6[_0x22ebc3(0x16e)][_0x22ebc3(0x206)](_0x3b8499);this[_0x22ebc3(0x1a0)](_0x3e5cf5,_0x22ebc3(0x1c0),(_0x35db1e,_0x24e490)=>{const _0x43b7b5=_0x22ebc3,_0x25326b=_0x24e490[0x0];_0x25326b[_0x43b7b5(0x15a)]&&(_0x35db1e[_0x43b7b5(0x15f)]=_0x3e5cf5[_0x43b7b5(0x23e)](_0x25326b[_0x43b7b5(0x15a)]),_0x35db1e[_0x43b7b5(0x219)]()),null===_0x25326b[_0x43b7b5(0x15a)]&&(_0x35db1e[_0x43b7b5(0x15f)]=null,_0x35db1e[_0x43b7b5(0x219)]());},{'priority':_0x22ebc3(0x1d0)}),this[_0x22ebc3(0x1a0)](_0x580fe6[_0x22ebc3(0x19a)][_0x22ebc3(0x1e1)][_0x22ebc3(0x1da)],_0x22ebc3(0x182),(_0x2037db,_0x49f9e9)=>{const _0x1ce995=_0x22ebc3;_0x49f9e9[_0x1ce995(0x20b)]&&this[_0x1ce995(0x1e2)]();}),this[_0x22ebc3(0x1a0)](_0x580fe6[_0x22ebc3(0x220)][_0x22ebc3(0x180)],_0x22ebc3(0x183),()=>{const _0x2e7b27=_0x22ebc3;this[_0x2e7b27(0x1e2)]();}),this[_0x22ebc3(0x1a9)](),_0x580fe6[_0x22ebc3(0x19a)]['on'](_0x22ebc3(0x198),(_0x59a970,_0x831248)=>{const _0x63a2ee=_0x22ebc3,_0x149e10=_0x831248[0x0];_0x149e10[_0x63a2ee(0x181)]&&(this[_0x63a2ee(0x174)](_0x149e10),this[_0x63a2ee(0x15e)]()&&this[_0x63a2ee(0x14d)]());}),this[_0x22ebc3(0x237)](),this[_0x22ebc3(0x1c5)](_0x22ebc3(0x1fc))['to'](_0x342e6d,_0x22ebc3(0x1fd),this,_0x22ebc3(0x249),(_0x4b3c6a,_0x2adb4e)=>_0x22ebc3(0x199)===_0x4b3c6a&&!_0x2adb4e),this['on'](_0x22ebc3(0x1b5),()=>{const _0xe2b5cd=_0x22ebc3;this[_0xe2b5cd(0x1fc)]?_0x580fe6[_0xe2b5cd(0x1fb)](_0xe2b5cd(0x18f)):_0x580fe6[_0xe2b5cd(0x1aa)](_0xe2b5cd(0x18f));}),this[_0x22ebc3(0x1fc)]?_0x580fe6[_0x22ebc3(0x1fb)](_0x22ebc3(0x18f)):_0x580fe6[_0x22ebc3(0x1aa)](_0x22ebc3(0x18f)),this[_0x22ebc3(0x1af)](_0x22ebc3(0x1c8),!0x1);}async[_0x16939b(0x169)](){const _0x4019d7=_0x16939b,_0x162b12=this[_0x4019d7(0x1ac)][_0x4019d7(0x16e)][_0x4019d7(0x206)](_0x3a256b),_0x43acae=this[_0x4019d7(0x1ac)][_0x4019d7(0x16e)][_0x4019d7(0x206)](_0x3b8499);try{this[_0x4019d7(0x1a4)]=!0x0,_0x162b12[_0x4019d7(0x176)](this[_0x4019d7(0x1ea)]);const _0xc2f563=await this[_0x4019d7(0x1b7)][_0x4019d7(0x169)](_0x43acae[_0x4019d7(0x15d)],this[_0x4019d7(0x22f)]);await this[_0x4019d7(0x1c3)](_0xc2f563)&&(this[_0x4019d7(0x1a4)]=!0x1,this[_0x4019d7(0x191)]());const _0x1b935f=await this[_0x4019d7(0x1b7)][_0x4019d7(0x1b0)]();_0x162b12[_0x4019d7(0x18b)](this[_0x4019d7(0x1ea)],_0x1b935f),this[_0x4019d7(0x23a)](),this[_0x4019d7(0x1c8)]=!0x0;}catch(_0x1ab9cb){if(function(_0x4abeca){const _0x2ae5aa=_0x4019d7;return _0x2ae5aa(0x1bc)===_0x4abeca[_0x2ae5aa(0x172)];}(_0x1ab9cb)&&this[_0x4019d7(0x1b8)])await this[_0x4019d7(0x223)]();else{if(function(_0x3cf5ce){const _0x1eb420=_0x4019d7;return _0x1eb420(0x204)===_0x3cf5ce[_0x1eb420(0x172)];}(_0x1ab9cb)){const _0x314b9b=_0xd2b4cf(this[_0x4019d7(0x1ac)][_0x4019d7(0x19d)],_0x4019d7(0x1ed));this[_0x4019d7(0x1f4)](_0x314b9b);}else{if(!(_0x1ab9cb instanceof G))throw _0x1ab9cb;this[_0x4019d7(0x1f4)]();}}}}[_0x16939b(0x156)](){const _0x200159=_0x16939b,_0x11953d=this[_0x200159(0x1ac)][_0x200159(0x16e)][_0x200159(0x206)](_0x3b8499),_0xfd4184=this[_0x200159(0x1ac)][_0x200159(0x16e)][_0x200159(0x206)](_0x3a256b);this[_0x200159(0x1ac)][_0x200159(0x1aa)](_0x200159(0x18a)),_0xfd4184[_0x200159(0x166)][_0x200159(0x208)](this[_0x200159(0x1ea)])&&_0xfd4184[_0x200159(0x176)](this[_0x200159(0x1ea)]),_0x11953d[_0x200159(0x188)](this),this[_0x200159(0x207)](),super[_0x200159(0x156)]();}async[_0x16939b(0x1c3)](_0x2e7fc1){const _0x2b3937=_0x16939b;if(this[_0x2b3937(0x1b8)]!==_0x2e7fc1[_0x2b3937(0x1b8)]&&this[_0x2b3937(0x190)]!==_0x2e7fc1[_0x2b3937(0x1f5)])throw new G();return this[_0x2b3937(0x1b8)]=_0x2e7fc1[_0x2b3937(0x1b8)],this[_0x2b3937(0x1f0)]([],{..._0x2e7fc1,'wereChangesApplied':!0x1,'data':_0x2e7fc1[_0x2b3937(0x21e)]},_0x2b3937(0x169));}async[_0x16939b(0x225)](_0x39f2c7,_0x307fb4=!0x1){const _0x509015=_0x16939b,{connection:_0x33db6a}=this[_0x509015(0x1ac)][_0x509015(0x16e)][_0x509015(0x206)](_0x3b8499);l[_0x509015(0x1b1)][_0x509015(0x1b0)](_0x33db6a,this[_0x509015(0x1ea)])[_0x509015(0x240)](_0x1068b1=>this[_0x509015(0x168)](_0x1068b1))[_0x509015(0x163)](_0x4c3814=>{const _0xf04709=_0x509015;this[_0xf04709(0x162)](_0xf04709(0x1c9),_0x4c3814);}),this[_0x509015(0x1a0)](this[_0x509015(0x1b7)],_0x509015(0x157),this[_0x509015(0x1a5)][_0x509015(0x1c5)](this)),this[_0x509015(0x1a0)](this[_0x509015(0x1b7)],_0x509015(0x236),(_0x59ad56,_0x37be9d)=>{const _0x25b0af=_0x509015;this[_0x25b0af(0x162)](_0x25b0af(0x1e0),_0x37be9d);}),this[_0x509015(0x1a0)](this[_0x509015(0x1b7)],_0x509015(0x1fa),()=>{const _0x267505=_0x509015;this[_0x267505(0x1c8)]=!0x1;});const _0x126fde=this[_0x509015(0x19b)][_0x509015(0x1d7)](_0x39f2c7);this[_0x509015(0x1a4)]=!0x0;const _0xcbd3b2=await this[_0x509015(0x1b7)][_0x509015(0x242)](_0x33db6a,this[_0x509015(0x21c)](_0x39f2c7),_0x126fde);if(this[_0x509015(0x1b8)]=_0xcbd3b2[_0x509015(0x1b8)],_0x307fb4){if(!_0xcbd3b2[_0x509015(0x213)])return void this[_0x509015(0x1f4)]();this[_0x509015(0x1a4)]=!0x1,this[_0x509015(0x191)](),this[_0x509015(0x18c)][_0x509015(0x16a)](),this[_0x509015(0x1e8)]=_0xcbd3b2[_0x509015(0x23b)],this[_0x509015(0x18c)][_0x509015(0x175)]=this[_0x509015(0x1e8)],await this[_0x509015(0x1f0)](_0x39f2c7,_0xcbd3b2,_0x509015(0x1ec));}else await this[_0x509015(0x21f)](_0xcbd3b2,_0x39f2c7);this[_0x509015(0x23a)](),this[_0x509015(0x1c8)]=!0x0;}[_0x16939b(0x23a)](){const _0x39a1db=_0x16939b,_0x31af23=this[_0x39a1db(0x1ac)][_0x39a1db(0x16e)][_0x39a1db(0x206)](_0x3a256b),_0x4395d6=this[_0x39a1db(0x1ac)][_0x39a1db(0x16e)][_0x39a1db(0x206)](_0x2cefb6),_0x22158a=_0x31af23[_0x39a1db(0x166)][_0x39a1db(0x206)](this[_0x39a1db(0x1ea)]);_0x22158a&&_0x22158a[_0x39a1db(0x17c)]>0x1?_0x4395d6[_0x39a1db(0x153)]():this[_0x39a1db(0x1a0)](_0x31af23,_0x39a1db(0x18d)+this[_0x39a1db(0x1ea)],()=>{const _0x2db482=_0x39a1db;0x2===_0x31af23[_0x2db482(0x166)][_0x2db482(0x206)](this[_0x2db482(0x1ea)])[_0x2db482(0x17c)]&&_0x4395d6[_0x2db482(0x153)]();});}async[_0x16939b(0x1a5)](_0x421a9e,_0x52c903,_0x135b20,_0x16054a){const _0x481092=_0x16939b;if(!this[_0x481092(0x1a4)]&&this[_0x481092(0x221)][_0x481092(0x175)]==_0x52c903){const _0x113682=this[_0x481092(0x1cb)](_0x135b20,_0x16054a);await this[_0x481092(0x1b9)](_0x113682),this[_0x481092(0x1ba)](_0x113682,_0x52c903,_0x135b20[_0x481092(0x1f5)])||this[_0x481092(0x162)](_0x481092(0x1bf));}}async[_0x16939b(0x223)](){const _0x5d9701=_0x16939b;this[_0x5d9701(0x207)]();const {locale:_0x55818d}=this[_0x5d9701(0x1ac)];let _0x3d15ef;try{_0x3d15ef=await this[_0x5d9701(0x1b7)][_0x5d9701(0x251)]();}catch{const _0xc41ea6=_0xd2b4cf(_0x55818d,_0x5d9701(0x187));return void this[_0x5d9701(0x1f4)](_0xc41ea6);}const _0x3befb0=_0x3d15ef[_0x5d9701(0x14e)]||_0x3d15ef[_0x5d9701(0x1bd)];if(this[_0x5d9701(0x190)]!==_0x3befb0[_0x5d9701(0x1f5)]){const _0x160072=_0xd2b4cf(_0x55818d,_0x5d9701(0x1e5));return void this[_0x5d9701(0x1f4)](_0x160072);}await this[_0x5d9701(0x225)](this[_0x5d9701(0x1ac)][_0x5d9701(0x19a)][_0x5d9701(0x1e1)][_0x5d9701(0x20c)][_0x5d9701(0x200)](),!0x0);}[_0x16939b(0x207)](){const _0x5372ab=_0x16939b;this[_0x5372ab(0x1b7)][_0x5372ab(0x1d5)](),this[_0x5372ab(0x179)]=[],clearTimeout(this[_0x5372ab(0x20a)]),this[_0x5372ab(0x1ad)](this[_0x5372ab(0x1b7)]);}[_0x16939b(0x168)](_0x9e4867){const _0x3c05ee=_0x16939b,_0x4e7061=this[_0x3c05ee(0x1ac)][_0x3c05ee(0x16e)][_0x3c05ee(0x206)](_0x3a256b);this[_0x3c05ee(0x1a0)](_0x4e7061,_0x3c05ee(0x18d)+this[_0x3c05ee(0x1ea)],(_0x486a5f,{session:_0x549a38})=>{const _0x13de4b=_0x3c05ee;if(_0x549a38['id']===_0x4e7061[_0x13de4b(0x16c)]){_0x486a5f[_0x13de4b(0x21d)]();const _0xe3595a=this[_0x13de4b(0x1ac)][_0x13de4b(0x16e)][_0x13de4b(0x208)](_0x13de4b(0x178))&&this[_0x13de4b(0x1ac)][_0x13de4b(0x16e)][_0x13de4b(0x206)](_0x13de4b(0x178));let _0x170cf1=_0x549a38[_0x13de4b(0x1eb)];_0xe3595a&&_0xe3595a[_0x13de4b(0x1d9)]&&(_0x170cf1=_0x170cf1[_0x13de4b(0x155)](_0x2ad95f=>_0x13de4b(0x201)!==_0x2ad95f)),this[_0x13de4b(0x1ac)][_0x13de4b(0x16e)][_0x13de4b(0x206)](_0x13de4b(0x22c))[_0x13de4b(0x244)](_0x170cf1,this[_0x13de4b(0x1ea)]);}}),_0x4e7061[_0x3c05ee(0x18b)](this[_0x3c05ee(0x1ea)],_0x9e4867);}[_0x16939b(0x1a9)](){const _0x1792ca=_0x16939b,_0x3504cf=this[_0x1792ca(0x1ac)][_0x1792ca(0x21e)][_0x1792ca(0x1af)];this[_0x1792ca(0x1ac)][_0x1792ca(0x21e)][_0x1792ca(0x1af)]=(..._0x30a204)=>{const _0x2bf7cb=_0x1792ca;if(!_0x30a204[_0x30a204[_0x2bf7cb(0x17c)]-0x1][_0x2bf7cb(0x152)])throw new _0x91bd40(_0x2bf7cb(0x1db),this);_0x3504cf[_0x2bf7cb(0x21a)](this[_0x2bf7cb(0x1ac)][_0x2bf7cb(0x21e)],_0x30a204);};}[_0x16939b(0x237)](){const _0x1bf5a5=_0x16939b;this[_0x1bf5a5(0x1ac)][_0x1bf5a5(0x21e)]['on'](_0x1bf5a5(0x186),(_0x548950,[_0x27298a])=>{const _0x377a32=_0x1bf5a5;if(this[_0x377a32(0x221)][_0x377a32(0x175)])throw new _0x91bd40(_0x377a32(0x17a),this);_0x548950[_0x377a32(0x219)](),this[_0x377a32(0x20f)]();const _0x28969b=this[_0x377a32(0x1ac)][_0x377a32(0x1b4)][_0x377a32(0x206)](_0x377a32(0x193)),_0x60990c=this[_0x377a32(0x195)](_0x27298a,_0x28969b);0x0==_0x60990c[_0x377a32(0x17c)]&&_0x60990c[_0x377a32(0x165)](new _0x49eda1(0x0)),_0x548950[_0x377a32(0x15f)]=this[_0x377a32(0x225)](_0x60990c)[_0x377a32(0x240)](()=>{const _0x44411f=_0x377a32;this[_0x44411f(0x1ac)][_0x44411f(0x16e)][_0x44411f(0x206)](_0x3b8499)[_0x44411f(0x1cf)](this),this[_0x44411f(0x1ac)][_0x44411f(0x21e)][_0x44411f(0x1c1)](_0x44411f(0x1d3));})[_0x377a32(0x163)](_0x2edd71=>this[_0x377a32(0x162)](_0x377a32(0x203),_0x2edd71))[_0x377a32(0x22a)](()=>this[_0x377a32(0x191)]());},{'priority':_0x1bf5a5(0x1d0)}),this[_0x1bf5a5(0x1ac)]['on'](_0x1bf5a5(0x17f),async(_0xc064b0,[_0x6759af,_0x1acb88])=>{const _0x574169=_0x1bf5a5;_0xc064b0[_0x574169(0x219)]();const _0x52161c=this[_0x574169(0x1ac)][_0x574169(0x19a)][_0x574169(0x1e1)][_0x574169(0x234)](_0x6759af);if(!this[_0x574169(0x1b6)][_0x574169(0x208)](_0x6759af)){const _0x2e7429=_0x1acb88&&_0x1acb88[_0x574169(0x21e)]?_0x1acb88[_0x574169(0x21e)]:'',_0x9c0de0=_0x1acb88&&_0x1acb88[_0x574169(0x161)]?_0x1acb88[_0x574169(0x161)]:{};await this[_0x574169(0x1e4)](_0x6759af,_0x2e7429,_0x9c0de0);}this[_0x574169(0x1ac)][_0x574169(0x19a)][_0x574169(0x231)]({'isUndoable':!0x1},()=>{const _0xced4f2=_0x574169;_0x52161c[_0xced4f2(0x222)]=!0x0,this[_0xced4f2(0x1ac)][_0xced4f2(0x19a)][_0xced4f2(0x1e1)][_0xced4f2(0x19f)][_0xced4f2(0x202)](_0x52161c);});},{'priority':_0x1bf5a5(0x1d0)});}async[_0x16939b(0x1b9)](_0x5bd29f){const _0xb5980=_0x16939b,_0x46aef7=this[_0xb5980(0x1ac)][_0xb5980(0x16e)][_0xb5980(0x206)](_0x5629d4),{connection:_0x531351}=this[_0xb5980(0x1ac)][_0xb5980(0x16e)][_0xb5980(0x206)](_0x3b8499),_0x42229e=new Set();for(const _0x496150 of _0x5bd29f){const _0x41e198=_0x496150[_0xb5980(0x15a)];_0x41e198&&!_0x46aef7[_0xb5980(0x23e)](_0x41e198)&&_0x42229e[_0xb5980(0x212)](_0x41e198);}if(0x0===_0x42229e[_0xb5980(0x1cd)])return;const _0x5ab5f9=await _0x27eaa3[_0xb5980(0x170)](_0x531351,Array[_0xb5980(0x167)](_0x42229e));for(const _0x3ef04a of _0x5ab5f9)_0x46aef7[_0xb5980(0x23e)](_0x3ef04a['id'])||_0x46aef7[_0xb5980(0x1d1)](_0x3ef04a);}[_0x16939b(0x195)](_0x528f92,_0x10a8a2={}){const _0x26f75f=_0x16939b,_0x377374=this[_0x26f75f(0x1ac)][_0x26f75f(0x19a)],_0x2bf30c=[];let _0x3e9fb2=0x0;const _0x1b7cef=_0x26f75f(0x1ca)==typeof _0x528f92?{'main':_0x528f92}:_0x528f92;for(const _0x4ac9cd of Object[_0x26f75f(0x171)](_0x1b7cef)){if(!this[_0x26f75f(0x221)][_0x26f75f(0x247)][_0x26f75f(0x208)](_0x4ac9cd))throw new _0x91bd40(_0x26f75f(0x23d),this);const _0x39a8b1=this[_0x26f75f(0x1ac)][_0x26f75f(0x21e)][_0x26f75f(0x1c4)](_0x1b7cef[_0x4ac9cd]),_0x5e5d04=this[_0x26f75f(0x221)][_0x26f75f(0x234)](_0x4ac9cd),_0x128ae4=new _0x20f9de(_0x377374[_0x26f75f(0x1f3)](_0x5e5d04,0x0),_0x39a8b1,_0x3e9fb2++);_0x2bf30c[_0x26f75f(0x165)](_0x128ae4);for(const [_0x35b133,_0x3da07c]of _0x39a8b1[_0x26f75f(0x250)]){const _0x2ee60f=_0x377374[_0x26f75f(0x214)](_0x377374[_0x26f75f(0x151)](_0x5e5d04,_0x3da07c[_0x26f75f(0x15c)][_0x26f75f(0x1dd)][_0x26f75f(0x24f)]()),_0x377374[_0x26f75f(0x151)](_0x5e5d04,_0x3da07c[_0x26f75f(0x1d4)][_0x26f75f(0x1dd)][_0x26f75f(0x24f)]())),_0x4735b5=new _0x59ee00(_0x35b133,null,_0x2ee60f,_0x377374[_0x26f75f(0x250)],!0x0,_0x3e9fb2++);_0x2bf30c[_0x26f75f(0x165)](_0x4735b5);}}if(_0x10a8a2)for(const [_0x49c68d,_0x3d4a7f]of Object[_0x26f75f(0x24b)](_0x10a8a2)){const _0x5ee403=_0x377374[_0x26f75f(0x1e1)][_0x26f75f(0x234)](_0x49c68d);if(!_0x5ee403)throw new _0x91bd40(_0x26f75f(0x1e7),null);for(const [_0x11a53f,_0x24684f]of Object[_0x26f75f(0x24b)](_0x3d4a7f))if(null!==_0x24684f){const _0x4c7885=new _0x1b0d69(_0x5ee403,_0x11a53f,null,_0x24684f,_0x3e9fb2++);_0x2bf30c[_0x26f75f(0x165)](_0x4c7885);}}return _0x2bf30c;}async[_0x16939b(0x1e4)](_0x1b87c4,_0x55fff1,_0x19203c){const _0x5df972=_0x16939b;this[_0x5df972(0x195)]({[_0x1b87c4]:_0x55fff1},{[_0x1b87c4]:_0x19203c})[_0x5df972(0x17b)]((_0x49c975,_0x58d576)=>{const _0x3dd67e=_0x5df972;_0x49c975[_0x3dd67e(0x1c7)]=this[_0x3dd67e(0x221)][_0x3dd67e(0x175)]+_0x58d576,_0x49c975[_0x3dd67e(0x192)]=!0x0,this[_0x3dd67e(0x174)](_0x49c975);}),this[_0x5df972(0x14d)](),await this[_0x5df972(0x1f6)]();}async[_0x16939b(0x21f)](_0xae7359,_0x20cc56){const _0x4d806d=_0x16939b;let _0x4d53d9;this[_0x4d806d(0x1e8)]=_0xae7359[_0x4d806d(0x23b)];const _0x356350=_0xae7359[_0x4d806d(0x213)]&&!_0xae7359[_0x4d806d(0x1be)],_0x468595=_0x356350?0x0:_0xae7359[_0x4d806d(0x21e)][_0x4d806d(0x1c7)];if(_0x20cc56[_0x4d806d(0x17b)](_0x5f58bb=>{const _0x5ec1e6=_0x4d806d;_0x5f58bb[_0x5ec1e6(0x192)]=!0x0,_0x5f58bb[_0x5ec1e6(0x217)]=_0xae7359[_0x5ec1e6(0x1f1)],_0x5f58bb[_0x5ec1e6(0x15a)]=null;}),_0x356350)_0x4d53d9=_0x20cc56,this[_0x4d806d(0x18e)](_0x4d53d9,_0x356350);else{if(_0xae7359[_0x4d806d(0x1be)]){const _0x387d81=this[_0x4d806d(0x195)](_0xae7359[_0x4d806d(0x1be)]);this[_0x4d806d(0x221)][_0x4d806d(0x20c)][_0x4d806d(0x175)]=-_0x387d81[_0x4d806d(0x17c)],_0x387d81[_0x4d806d(0x17b)](_0x1a1bbd=>{const _0x4d9c48=_0x4d806d;_0x1a1bbd[_0x4d9c48(0x1c7)]-=_0x387d81[_0x4d9c48(0x17c)],_0x1a1bbd[_0x4d9c48(0x217)]=_0xae7359[_0x4d9c48(0x1f1)],_0x1a1bbd[_0x4d9c48(0x192)]=!0x0,_0x1a1bbd[_0x4d9c48(0x15a)]=null;}),this[_0x4d806d(0x18e)](_0x387d81,!0x0),this[_0x4d806d(0x18c)][_0x4d806d(0x175)]=-_0x387d81[_0x4d806d(0x17c)]+this[_0x4d806d(0x1e8)],this[_0x4d806d(0x1d8)](_0x387d81);}this[_0x4d806d(0x221)][_0x4d806d(0x20c)][_0x4d806d(0x175)]=_0x468595,_0x4d53d9=this[_0x4d806d(0x1cb)](_0xae7359[_0x4d806d(0x21e)],_0xae7359[_0x4d806d(0x229)]),await this[_0x4d806d(0x1b9)](_0x4d53d9),this[_0x4d806d(0x18e)](_0x4d53d9,_0x356350);}_0xae7359[_0x4d806d(0x1f5)]&&(this[_0x4d806d(0x19b)][_0x4d806d(0x230)](_0x4d53d9,_0xae7359[_0x4d806d(0x1f5)]),this[_0x4d806d(0x190)]=_0xae7359[_0x4d806d(0x1f5)]),this[_0x4d806d(0x18c)][_0x4d806d(0x175)]=_0x468595+this[_0x4d806d(0x1e8)],this[_0x4d806d(0x1d8)](_0x4d53d9),_0x20cc56[_0x4d806d(0x155)](_0xdd897d=>{const _0x82093a=_0x4d806d,_0x2cb6f9=this[_0x82093a(0x1ae)](_0xdd897d);return _0x2cb6f9&&!this[_0x82093a(0x1b6)][_0x82093a(0x208)](_0x2cb6f9);})[_0x4d806d(0x17b)]((_0x24f483,_0x386b60)=>{const _0x4cf1b4=_0x4d806d;_0x24f483[_0x4cf1b4(0x1c7)]=this[_0x4cf1b4(0x221)][_0x4cf1b4(0x175)]+_0x386b60,this[_0x4cf1b4(0x174)](_0x24f483);}),this[_0x4d806d(0x15e)]()?(this[_0x4d806d(0x1e6)]=0x0,this[_0x4d806d(0x14d)](!0x0),await this[_0x4d806d(0x1f6)]()):(this[_0x4d806d(0x1a4)]=!0x1,this[_0x4d806d(0x191)]());}[_0x16939b(0x162)](_0x348fae,_0x54dafb){const _0xd9923c=_0x16939b,_0x5d830b=_0x54dafb&&_0x54dafb[_0xd9923c(0x238)];if(_0x5d830b&&_0x5d830b[_0xd9923c(0x24d)](_0xd9923c(0x227)))throw _0x54dafb;const _0x1e0c95=this[_0xd9923c(0x1ac)][_0xd9923c(0x16e)][_0xd9923c(0x206)](_0x3b8499);throw this[_0xd9923c(0x1a4)]=!0x0,_0x1e0c95[_0xd9923c(0x1d5)](),this[_0xd9923c(0x1ac)][_0xd9923c(0x1aa)](_0xd9923c(0x228)),new _0x91bd40(_0x348fae,this[_0xd9923c(0x1ac)],_0x5d830b?{'originalError':_0x5d830b}:void 0x0);}[_0x16939b(0x174)](_0x26d002){const _0x74a28f=_0x16939b;this[_0x74a28f(0x21b)][_0x74a28f(0x208)](_0x26d002)||(this[_0x74a28f(0x21b)][_0x74a28f(0x212)](_0x26d002),this[_0x74a28f(0x179)][_0x74a28f(0x165)](_0x26d002),this[_0x74a28f(0x1bb)]||_0x74a28f(0x235)==_0x26d002[_0x74a28f(0x22d)]&&!_0x26d002[_0x74a28f(0x1b2)]||this[_0x74a28f(0x20f)]());}[_0x16939b(0x14d)](_0x348955=!0x1){const _0x59019d=_0x16939b;!_0x348955&&this[_0x59019d(0x1a4)]||(this[_0x59019d(0x1a4)]=!0x0,clearTimeout(this[_0x59019d(0x20a)]),this[_0x59019d(0x20a)]=setTimeout(()=>{const _0x3b3ce4=_0x59019d;this[_0x3b3ce4(0x218)]()[_0x3b3ce4(0x240)](_0x3d69b2=>{const _0x560eac=_0x3b3ce4;_0x3d69b2&&(this[_0x560eac(0x191)](),this[_0x560eac(0x1a4)]=!0x1);})[_0x3b3ce4(0x163)](_0x2fefea=>{const _0x4efa66=_0x3b3ce4;this[_0x4efa66(0x191)](),this[_0x4efa66(0x1a4)]=!0x1,function(_0x40153a){const _0x21f239=_0x4efa66;return _0x40153a[_0x21f239(0x238)][_0x21f239(0x24d)](_0x21f239(0x14f))||_0x40153a[_0x21f239(0x238)][_0x21f239(0x24d)](_0x21f239(0x1e9))||_0x40153a[_0x21f239(0x238)][_0x21f239(0x24d)](_0x21f239(0x224));}(_0x2fefea)||this[_0x4efa66(0x162)](_0x2fefea[_0x4efa66(0x238)],_0x2fefea);});},this[_0x59019d(0x1e6)]));}[_0x16939b(0x1f6)](){return new Promise(_0x1af3f5=>{const _0x2f732e=_0x5dbe;this['on'](_0x2f732e(0x16d),()=>{_0x1af3f5();});});}async[_0x16939b(0x218)](){const _0x160a0f=_0x16939b,_0x18560f=this[_0x160a0f(0x1ac)][_0x160a0f(0x16e)][_0x160a0f(0x206)](_0x2cefb6);if(this[_0x160a0f(0x196)]()&&(_0x18560f[_0x160a0f(0x153)](),this[_0x160a0f(0x1a2)]=!0x1),!this[_0x160a0f(0x15e)]())return!0x0;const _0x1984c4=[...this[_0x160a0f(0x179)]];for(const _0x46f248 of _0x1984c4)_0x46f248[_0x160a0f(0x160)]=this[_0x160a0f(0x221)][_0x160a0f(0x20c)][_0x160a0f(0x209)](_0x46f248);const _0x5e38e9=this[_0x160a0f(0x19b)][_0x160a0f(0x1d7)](_0x1984c4),_0xddee6c=q++,_0x4fe8a1=this[_0x160a0f(0x21c)](_0x1984c4),_0x1c3f67=await this[_0x160a0f(0x1b7)][_0x160a0f(0x17e)](_0x4fe8a1,_0x4fe8a1[_0x160a0f(0x1c7)],_0x5e38e9);try{return await this[_0x160a0f(0x1f0)](_0x1984c4,_0x1c3f67,_0xddee6c);}catch(_0x241b64){return this[_0x160a0f(0x162)](_0x160a0f(0x154),_0x241b64);}}async[_0x16939b(0x1f0)](_0x57c2f2,_0x10e0a0,_0x23f19e){const _0x274948=_0x16939b;if(_0x274948(0x236)in _0x10e0a0)throw _0x10e0a0[_0x274948(0x236)];let _0x299797=!0x1;if(_0x10e0a0[_0x274948(0x213)]){_0x10e0a0[_0x274948(0x1f5)]&&(this[_0x274948(0x190)]=_0x10e0a0[_0x274948(0x1f5)]),this[_0x274948(0x179)]=this[_0x274948(0x179)][_0x274948(0x155)](_0x260061=>!_0x57c2f2[_0x274948(0x1ff)](_0x260061));for(const _0x46b768 of _0x57c2f2)_0x46b768[_0x274948(0x217)]=_0x274948(0x243)in _0x10e0a0&&_0x10e0a0[_0x274948(0x243)]||void 0x0;$(_0x57c2f2,_0x10e0a0[_0x274948(0x175)]-_0x57c2f2[_0x274948(0x17c)]),this[_0x274948(0x1d8)](_0x57c2f2);const _0xc12cf=_0x57c2f2[_0x274948(0x155)](_0x3d2c58=>{const _0x128949=_0x274948;if(!_0x3d2c58[_0x128949(0x192)])return!0x1;const _0x43b011=this[_0x128949(0x1ae)](_0x3d2c58);return _0x43b011&&!this[_0x128949(0x1b6)][_0x128949(0x208)](_0x43b011);});$(_0xc12cf,this[_0x274948(0x221)][_0x274948(0x175)]),this[_0x274948(0x18e)](_0xc12cf),_0x299797=!0x0,this[_0x274948(0x1e6)]=this[_0x274948(0x241)];}else{const _0x3d89df=this[_0x274948(0x1cb)](_0x10e0a0[_0x274948(0x21e)],_0x10e0a0[_0x274948(0x229)])[_0x274948(0x155)](_0x1c1532=>_0x1c1532[_0x274948(0x1c7)]>=this[_0x274948(0x1f2)]);_0x3d89df[_0x274948(0x17b)](_0x150912=>this[_0x274948(0x1e3)](_0x150912)),this[_0x274948(0x179)]=this[_0x274948(0x179)][_0x274948(0x155)](_0x57c124=>!_0x57c124[_0x274948(0x192)]||!this[_0x274948(0x1b6)][_0x274948(0x208)](this[_0x274948(0x1ae)](_0x57c124))),this[_0x274948(0x179)][_0x274948(0x17c)]&&$(this[_0x274948(0x179)],this[_0x274948(0x179)][0x0][_0x274948(0x1c7)]),await this[_0x274948(0x1b9)](_0x3d89df),_0x299797=this[_0x274948(0x1ba)](_0x3d89df,_0x10e0a0[_0x274948(0x175)],_0x10e0a0[_0x274948(0x1f5)]),this[_0x274948(0x1e6)]=Math[_0x274948(0x19c)](this[_0x274948(0x1e6)]/0x2);}return _0x299797?!this[_0x274948(0x15e)]()||(this[_0x274948(0x14d)](!0x0),!0x1):this[_0x274948(0x162)](_0x274948(0x23c));}[_0x16939b(0x1ba)](_0x501a19,_0x3d0491,_0x51a0c3){const _0x46abc7=_0x16939b;try{const _0x131dd4={'document':this[_0x46abc7(0x221)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x549eeb,operationsB:_0x36ff1b,originalOperations:_0x319612}=_0xd0ff0a(_0x501a19,this[_0x46abc7(0x179)],_0x131dd4);$(_0x549eeb,this[_0x46abc7(0x221)][_0x46abc7(0x175)]),$(_0x36ff1b,_0x3d0491);for(const _0x14585b of _0x549eeb){const _0x2762e1=_0x319612[_0x46abc7(0x206)](_0x14585b);_0x14585b[_0x46abc7(0x15a)]=_0x2762e1?_0x2762e1[_0x46abc7(0x15a)]:null;}_0x51a0c3&&(this[_0x46abc7(0x19b)][_0x46abc7(0x230)](_0x501a19,_0x51a0c3),this[_0x46abc7(0x190)]=_0x51a0c3),this[_0x46abc7(0x179)]=[..._0x36ff1b],this[_0x46abc7(0x18e)](_0x549eeb),this[_0x46abc7(0x1d8)](_0x501a19);}catch(_0x4420ec){return console[_0x46abc7(0x236)](_0x4420ec),!0x1;}return!0x0;}[_0x16939b(0x18e)](_0x185b90,_0x50780c=!0x1){const _0x292481=_0x16939b;this[_0x292481(0x1ac)][_0x292481(0x19a)][_0x292481(0x231)]({'isUndoable':!0x1,'isLocal':!0x1},_0x54d2f3=>{const _0x34aa67=_0x292481;for(const _0x612ac5 of _0x185b90)this[_0x34aa67(0x21b)][_0x34aa67(0x212)](_0x612ac5),this[_0x34aa67(0x1e3)](_0x612ac5),_0x54d2f3[_0x34aa67(0x17d)][_0x34aa67(0x194)](_0x612ac5),this[_0x34aa67(0x1ac)][_0x34aa67(0x19a)][_0x34aa67(0x198)](_0x612ac5);});}[_0x16939b(0x1e3)](_0x3521a9){const _0x1a35f2=_0x16939b,_0x504362=this[_0x1a35f2(0x1ae)](_0x3521a9);_0x504362&&this[_0x1a35f2(0x1b6)][_0x1a35f2(0x212)](_0x504362);}[_0x16939b(0x1ae)](_0x205eab){const _0x57b16f=_0x16939b;let _0xcca39,_0x467c3a;switch(_0x205eab[_0x57b16f(0x22d)]){case _0x57b16f(0x210):_0xcca39=_0x205eab[_0x57b16f(0x22e)][_0x57b16f(0x23f)];break;case _0x57b16f(0x235):if(_0x467c3a=_0x205eab[_0x57b16f(0x1a8)],!_0x467c3a)return null;_0xcca39=_0x467c3a[_0x57b16f(0x23f)];break;case _0x57b16f(0x1df):_0xcca39=_0x205eab[_0x57b16f(0x23f)];break;case _0x57b16f(0x159):_0xcca39=_0x205eab[_0x57b16f(0x24a)];break;case _0x57b16f(0x1f8):_0xcca39=_0x205eab[_0x57b16f(0x232)][_0x57b16f(0x23f)];break;default:return null;}return _0xcca39[_0x57b16f(0x1a1)];}[_0x16939b(0x1d8)](_0x216821){const _0x305b79=_0x16939b;_0x216821[_0x305b79(0x17b)](_0x31698c=>{const _0x14a42d=_0x305b79,_0x535c38=_0x31698c[_0x14a42d(0x185)]();_0x535c38[_0x14a42d(0x15a)]=_0x31698c[_0x14a42d(0x15a)],_0x535c38[_0x14a42d(0x192)]=!!_0x31698c[_0x14a42d(0x192)],_0x535c38[_0x14a42d(0x217)]=_0x31698c[_0x14a42d(0x217)],_0x535c38[_0x14a42d(0x1c7)]+=this[_0x14a42d(0x1e8)],_0x31698c[_0x14a42d(0x233)]&&this[_0x14a42d(0x1ce)][_0x14a42d(0x212)](_0x535c38),this[_0x14a42d(0x18c)][_0x14a42d(0x194)](_0x535c38);});}[_0x16939b(0x1f4)](_0xe64063){const _0x532a25=_0x16939b,_0x5323b3=this[_0x532a25(0x1ac)][_0x532a25(0x16e)][_0x532a25(0x206)](_0x532a25(0x1f9)),_0x46ca6f=this[_0x532a25(0x1ac)][_0x532a25(0x19d)];_0xe64063||(_0xe64063=_0xd2b4cf(_0x46ca6f,_0x532a25(0x24e))),_0x5323b3[_0x532a25(0x1cc)](_0xe64063,{'title':_0xd2b4cf(_0x46ca6f,_0x532a25(0x1a6)),'namespace':_0x532a25(0x24c)}),this[_0x532a25(0x249)]=!0x0,clearTimeout(this[_0x532a25(0x20a)]),this[_0x532a25(0x179)]=[],this[_0x532a25(0x1ac)][_0x532a25(0x16e)][_0x532a25(0x206)](_0x3b8499)[_0x532a25(0x1d5)]();}[_0x16939b(0x20f)](){const _0x262c10=_0x16939b;this[_0x262c10(0x1bb)]||(this[_0x262c10(0x1bb)]=this[_0x262c10(0x1ac)][_0x262c10(0x16e)][_0x262c10(0x206)](_0x1034f6)[_0x262c10(0x212)](_0xd2b4cf(this[_0x262c10(0x1ac)][_0x262c10(0x19d)],_0x262c10(0x197))));}[_0x16939b(0x191)](){const _0x1c749b=_0x16939b;this[_0x1c749b(0x1bb)]&&(this[_0x1c749b(0x1ac)][_0x1c749b(0x16e)][_0x1c749b(0x206)](_0x1034f6)[_0x1c749b(0x1d2)](this[_0x1c749b(0x1bb)]),this[_0x1c749b(0x1bb)]=null);}[_0x16939b(0x21c)](_0x562b57){const _0x48cafb=_0x16939b,_0x1ea31f=_0x562b57[_0x48cafb(0x1ef)](_0x3a2a37=>_0x3a2a37[_0x48cafb(0x173)]());return this[_0x48cafb(0x245)][_0x48cafb(0x19e)](_0x1ea31f);}[_0x16939b(0x1cb)](_0x86972d,_0x375aee){const _0x5cdeff=_0x16939b;return this[_0x5cdeff(0x245)][_0x5cdeff(0x1a3)](_0x86972d)[_0x5cdeff(0x1ef)]((_0x25f75b,_0x308a57)=>{const _0x53cdd0=_0x5cdeff,_0x2b1489=_0x53cdd0(0x186)==_0x375aee[_0x308a57][_0x53cdd0(0x22d)];if(_0x53cdd0(0x16b)==_0x25f75b[_0x53cdd0(0x205)]){const _0x48667d=_0x25f75b[_0x53cdd0(0x22e)][_0x53cdd0(0x23f)];!this[_0x53cdd0(0x221)][_0x53cdd0(0x234)](_0x48667d)&&(this[_0x53cdd0(0x221)][_0x53cdd0(0x1c6)](_0x53cdd0(0x177),_0x48667d)[_0x53cdd0(0x20d)]=!0x1);}const _0x514f0f=_0x576023[_0x53cdd0(0x1ab)](_0x25f75b,this[_0x53cdd0(0x221)]);return _0x514f0f[_0x53cdd0(0x160)]=_0x25f75b[_0x53cdd0(0x160)],_0x514f0f[_0x53cdd0(0x192)]=_0x2b1489,_0x514f0f[_0x53cdd0(0x15a)]=_0x2b1489?null:_0x375aee[_0x308a57][_0x53cdd0(0x16f)],_0x514f0f[_0x53cdd0(0x233)]=_0x53cdd0(0x1b3)===_0x375aee[_0x308a57][_0x53cdd0(0x22d)],_0x514f0f[_0x53cdd0(0x217)]=_0x375aee[_0x308a57][_0x53cdd0(0x217)],_0x514f0f;});}[_0x16939b(0x1e2)](){const _0x13e351=_0x16939b;this[_0x13e351(0x1a2)]=!0x0,this[_0x13e351(0x196)]()?this[_0x13e351(0x14d)]():this[_0x13e351(0x1a2)]=!0x1;}[_0x16939b(0x196)](){const _0x3183b3=_0x16939b,_0x43f9d7=this[_0x3183b3(0x1ac)][_0x3183b3(0x16e)][_0x3183b3(0x206)](_0x3a256b)[_0x3183b3(0x166)][_0x3183b3(0x206)](this[_0x3183b3(0x1ea)]);return!this[_0x3183b3(0x1ac)][_0x3183b3(0x184)]&&!!_0x43f9d7&&_0x43f9d7[_0x3183b3(0x17c)]>0x1&&this[_0x3183b3(0x1a2)];}[_0x16939b(0x15e)](){const _0x170ace=_0x16939b;return this[_0x170ace(0x179)][_0x170ace(0x17c)]>0x0||this[_0x170ace(0x196)]();}}export{l as RealTimeCollaborationClient};class G extends Error{}function $(_0x39fb48,_0x133163){const _0xd4839b=_0x16939b;for(const _0x59054c of _0x39fb48)_0x59054c[_0xd4839b(0x1c7)]=_0x133163++;}class K{[_0x16939b(0x215)];[_0x16939b(0x239)];constructor(_0x5725c5){const _0x1a3883=_0x16939b;this[_0x1a3883(0x215)]=_0x5725c5,this[_0x1a3883(0x239)]=new WeakMap();}[_0x16939b(0x1d7)](_0x2c3250){const _0x2bd062=_0x16939b;let _0x3b88cc=_0x2c3250[_0x2bd062(0x17c)];for(;_0x3b88cc--;){const _0x435cc3=_0x2c3250[_0x3b88cc];if(!this[_0x2bd062(0x215)][_0x2bd062(0x208)](_0x435cc3)){if(!this[_0x2bd062(0x239)][_0x2bd062(0x208)](_0x435cc3)){const _0x7ed3bb=_0x2dff07()[_0x2bd062(0x24f)](0x1,0x12);this[_0x2bd062(0x239)][_0x2bd062(0x1af)](_0x435cc3,_0x7ed3bb);}return this[_0x2bd062(0x239)][_0x2bd062(0x206)](_0x435cc3);}}}[_0x16939b(0x230)](_0x3fd9b4,_0x7f8e79){const _0x476aab=_0x16939b;if(!_0x7f8e79)return;let _0x546645=_0x3fd9b4[_0x476aab(0x17c)];for(;_0x546645--;){const _0x48c510=_0x3fd9b4[_0x546645];this[_0x476aab(0x215)][_0x476aab(0x208)](_0x48c510)||this[_0x476aab(0x239)][_0x476aab(0x1af)](_0x48c510,_0x7f8e79);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x471cfd=_0x2758;function _0x2758(_0xe6efbf,_0x15f271){const _0x4a5f16=_0x4a5f();return _0x2758=function(_0x2758ec,_0x1ac575){_0x2758ec=_0x2758ec-0x13d;let _0x2e32d4=_0x4a5f16[_0x2758ec];return _0x2e32d4;},_0x2758(_0xe6efbf,_0x15f271);}(function(_0x5583df,_0x4ab7ac){const _0x29cb9c=_0x2758,_0x22bd5a=_0x5583df();while(!![]){try{const _0x448fc1=-parseInt(_0x29cb9c(0x148))/0x1+parseInt(_0x29cb9c(0x15b))/0x2+-parseInt(_0x29cb9c(0x144))/0x3+parseInt(_0x29cb9c(0x154))/0x4*(parseInt(_0x29cb9c(0x13d))/0x5)+-parseInt(_0x29cb9c(0x164))/0x6+-parseInt(_0x29cb9c(0x157))/0x7+parseInt(_0x29cb9c(0x15a))/0x8;if(_0x448fc1===_0x4ab7ac)break;else _0x22bd5a['push'](_0x22bd5a['shift']());}catch(_0x38eea3){_0x22bd5a['push'](_0x22bd5a['shift']());}}}(_0x4a5f,0x3d018));import{ContextPlugin as _0x17b46d}from'ckeditor5/src/core.js';import{Collection as _0x151c67,CKEditorError as _0x223204}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x1734c5}from'./websocketgateway.js';import{Users as _0xd0c772}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x17b46d{[_0x471cfd(0x15d)];[_0x471cfd(0x169)];[_0x471cfd(0x158)];[_0x471cfd(0x16a)];[_0x471cfd(0x176)];[_0x471cfd(0x16c)];static get[_0x471cfd(0x14f)](){const _0x554add=_0x471cfd;return _0x554add(0x14b);}static get[_0x471cfd(0x174)](){return!0x0;}static get[_0x471cfd(0x150)](){return!0x0;}static get[_0x471cfd(0x152)](){return[_0x1734c5,_0xd0c772];}constructor(_0x3faffd){const _0x5f2ffa=_0x471cfd;super(_0x3faffd),this[_0x5f2ffa(0x15d)]=new Map(),this[_0x5f2ffa(0x169)]=new Map(),this[_0x5f2ffa(0x158)]=new _0x151c67(),this[_0x5f2ffa(0x16a)]=new Map(),this[_0x5f2ffa(0x176)]=0x0,this[_0x5f2ffa(0x16c)]=this[_0x5f2ffa(0x161)][_0x5f2ffa(0x167)][_0x5f2ffa(0x153)](_0xd0c772);}[_0x471cfd(0x16b)](){const _0x39083e=_0x471cfd,_0x2f4e2d=this[_0x39083e(0x161)][_0x39083e(0x167)][_0x39083e(0x153)](_0x1734c5);this[_0x39083e(0x178)](_0x2f4e2d,_0x39083e(0x175),(_0xeba5dc,_0x421cc3,_0xf03fae)=>{const _0x4f72a7=_0x39083e;if(_0x4f72a7(0x16f)!==_0xf03fae)this[_0x4f72a7(0x15d)][_0x4f72a7(0x13f)](_0x13a8d7=>_0x13a8d7[_0x4f72a7(0x170)]()),this[_0x4f72a7(0x169)][_0x4f72a7(0x13f)](_0x2d2d0c=>_0x2d2d0c[_0x4f72a7(0x170)]()),this[_0x4f72a7(0x158)][_0x4f72a7(0x170)]();else{for(const [_0x350816,_0x32132e]of this[_0x4f72a7(0x16a)])for(const _0x5c491e of _0x32132e)this[_0x4f72a7(0x145)](_0x350816,_0x5c491e);}}),this[_0x39083e(0x141)](_0x2f4e2d[_0x39083e(0x14c)]['me'],!0x0);}[_0x471cfd(0x173)](_0x12cf0c,_0x4d7d07){const _0x1a4d01=_0x471cfd;if(this[_0x1a4d01(0x16a)][_0x1a4d01(0x13e)](_0x12cf0c))throw new _0x223204(_0x1a4d01(0x149),null,{'channelId':_0x12cf0c});this[_0x1a4d01(0x16a)][_0x1a4d01(0x163)](_0x12cf0c,_0x4d7d07),this[_0x1a4d01(0x15d)][_0x1a4d01(0x163)](_0x12cf0c,new _0x151c67()),this[_0x1a4d01(0x169)][_0x1a4d01(0x163)](_0x12cf0c,new _0x151c67()),this[_0x1a4d01(0x178)](_0x4d7d07,_0x1a4d01(0x16e),(_0x5c74a3,_0x344f76)=>this[_0x1a4d01(0x145)](_0x12cf0c,_0x344f76)),this[_0x1a4d01(0x178)](_0x4d7d07,_0x1a4d01(0x151),(_0x2d7219,_0x466b2d)=>this[_0x1a4d01(0x14d)](_0x12cf0c,_0x466b2d));for(const _0x4a5692 of _0x4d7d07)this[_0x1a4d01(0x145)](_0x12cf0c,_0x4a5692);}[_0x471cfd(0x165)](_0x317470){const _0x4d3b4a=_0x471cfd;if(!this[_0x4d3b4a(0x16a)][_0x4d3b4a(0x13e)](_0x317470))throw new _0x223204(_0x4d3b4a(0x171),null,{'channelId':_0x317470});const _0x5c077e=this[_0x4d3b4a(0x16a)][_0x4d3b4a(0x153)](_0x317470);this[_0x4d3b4a(0x159)](_0x5c077e);for(const _0xe92641 of _0x5c077e)_0x4d3b4a(0x16f)===this[_0x4d3b4a(0x161)][_0x4d3b4a(0x167)][_0x4d3b4a(0x153)](_0x1734c5)[_0x4d3b4a(0x160)]&&this[_0x4d3b4a(0x14d)](_0x317470,_0xe92641);this[_0x4d3b4a(0x16a)][_0x4d3b4a(0x15f)](_0x317470),this[_0x4d3b4a(0x15d)][_0x4d3b4a(0x15f)](_0x317470),this[_0x4d3b4a(0x169)][_0x4d3b4a(0x15f)](_0x317470);}get[_0x471cfd(0x146)](){const _0x4cb6d4=_0x471cfd;return this[_0x4cb6d4(0x161)][_0x4cb6d4(0x167)][_0x4cb6d4(0x153)](_0x1734c5)[_0x4cb6d4(0x14c)][_0x4cb6d4(0x140)];}[_0x471cfd(0x15c)](_0x58449d){const _0xb7cf40=_0x471cfd;for(const _0x11a515 of this[_0xb7cf40(0x15d)][_0xb7cf40(0x177)]())for(const _0x1ab20f of _0x11a515)if(_0x1ab20f['id']===_0x58449d)return _0x1ab20f[_0xb7cf40(0x16d)];}[_0x471cfd(0x14e)](_0x16acc6,_0x4ca228){const _0x968ca1=_0x471cfd,_0x427a72=_0x4ca228?[this[_0x968ca1(0x15d)][_0x968ca1(0x153)](_0x4ca228)]:this[_0x968ca1(0x15d)][_0x968ca1(0x177)](),_0x26d875=new Set();for(const _0x32cc02 of _0x427a72)for(const _0x1bbdc7 of _0x32cc02)_0x1bbdc7[_0x968ca1(0x16d)]['id']===_0x16acc6['id']&&_0x26d875[_0x968ca1(0x16e)](_0x1bbdc7['id']);return _0x26d875;}[_0x471cfd(0x172)](_0x269e28){const _0xb4c90b=_0x471cfd;for(const _0x57682d of this[_0xb4c90b(0x15d)][_0xb4c90b(0x177)]())for(const _0x4174e4 of _0x57682d)if(_0x4174e4[_0xb4c90b(0x16d)]===_0x269e28)return _0x4174e4[_0xb4c90b(0x142)];}[_0x471cfd(0x145)](_0xe5febe,_0x27e2a4){const _0xaef9d=_0x471cfd;if(_0xaef9d(0x16f)!==this[_0xaef9d(0x161)][_0xaef9d(0x167)][_0xaef9d(0x153)](_0x1734c5)[_0xaef9d(0x160)])return;const _0x3cf305=_0x27e2a4[_0xaef9d(0x16d)],_0x583a98=this[_0xaef9d(0x16c)][_0xaef9d(0x143)](_0x3cf305['id'])||this[_0xaef9d(0x141)](_0x3cf305),_0xa92252=Object[_0xaef9d(0x168)]({},_0x27e2a4,{'user':_0x583a98});this[_0xaef9d(0x15d)][_0xaef9d(0x153)](_0xe5febe)[_0xaef9d(0x16e)](_0xa92252);const _0x577c5f=this[_0xaef9d(0x169)][_0xaef9d(0x153)](_0xe5febe);_0x577c5f[_0xaef9d(0x13e)](_0x583a98['id'])||_0x577c5f[_0xaef9d(0x16e)](_0x583a98),this[_0xaef9d(0x158)][_0xaef9d(0x13e)](_0x583a98['id'])||this[_0xaef9d(0x158)][_0xaef9d(0x16e)](_0x583a98,_0x583a98[_0xaef9d(0x162)]?0x0:void 0x0),this[_0xaef9d(0x155)](_0xaef9d(0x15e)+_0xe5febe,{'channelId':_0xe5febe,'session':_0xa92252});}[_0x471cfd(0x14d)](_0x205acf,_0x2739ab){const _0x2226c0=_0x471cfd;if(_0x2226c0(0x16f)!==this[_0x2226c0(0x161)][_0x2226c0(0x167)][_0x2226c0(0x153)](_0x1734c5)[_0x2226c0(0x160)])return;const _0x5ad692=this[_0x2226c0(0x169)][_0x2226c0(0x153)](_0x205acf),_0x36395d=_0x2739ab[_0x2226c0(0x16d)];_0x36395d['id']&&(this[_0x2226c0(0x15d)][_0x2226c0(0x153)](_0x205acf)[_0x2226c0(0x151)](_0x2739ab['id']),_0x5ad692[_0x2226c0(0x13e)](_0x36395d['id'])&&!this[_0x2226c0(0x14e)](_0x36395d,_0x205acf)[_0x2226c0(0x166)]&&_0x5ad692[_0x2226c0(0x151)](_0x36395d['id']),this[_0x2226c0(0x158)][_0x2226c0(0x153)](_0x36395d['id'])&&!this[_0x2226c0(0x14e)](_0x36395d)[_0x2226c0(0x166)]&&this[_0x2226c0(0x158)][_0x2226c0(0x151)](_0x36395d['id']));}[_0x471cfd(0x141)](_0x1de771,_0x4df010){const _0x2fbbca=_0x471cfd,_0x4d3350=this[_0x2fbbca(0x16c)][_0x2fbbca(0x14a)](_0x1de771);return _0x4df010&&this[_0x2fbbca(0x16c)][_0x2fbbca(0x147)](_0x1de771['id']),_0x4d3350[_0x2fbbca(0x156)]=this[_0x2fbbca(0x176)]++,_0x4d3350;}}function _0x4a5f(){const _0x3b4ee8=['values','listenTo','145bPPtMa','has','forEach','sessionId','_createUser','role','getUser','1041801SdRIeQ','_handleSessionAdd','mySessionId','defineMe','163987zLjPAk','sessions-register-already-registered','addUser','Sessions','connection','_handleSessionRemove','getUserSessions','pluginName','isPremiumPlugin','remove','requires','get','60676NYSmzU','fire','orderNumber','1105874CaXjjp','allConnectedUsers','stopListening','2349088iDUOEG','874574utGHXv','getUserBySessionId','channelSessions','sessionAdd:','delete','state','context','isMe','set','1510248SpkhHz','unregister','size','plugins','assign','channelConnectedUsers','_registeredSessions','init','_users','user','add','connected','clear','sessions-unregister-not-exist','getUserRole','register','isOfficialPlugin','change:state','_uniqueUsersCount'];_0x4a5f=function(){return _0x3b4ee8;};return _0x4a5f();}
|