@univerjs-pro/collaboration-client-ui 0.9.2-nightly.202507161608 → 0.9.2-nightly.202507171607
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0xff86(){const _0x1de2a2=['11sQsybr','2882488JsjhFH','1544440USPLsg','FUniver','177430YXQbUK','8051976wqxIPz','extend','10gBhTyO','2ETHhLH','344FajGMh','339YAvGLo','6PsfPjC','102620FdGRDt','get','runOnServer','3799881lLzEUx'];_0xff86=function(){return _0x1de2a2;};return _0xff86();}const _0x1d4a74=_0x2dcb;(function(_0xfaf92b,_0x240aa0){const _0x2aaf5e=_0x2dcb,_0x5b78d6=_0xfaf92b();while(!![]){try{const _0x4b9adc=-parseInt(_0x2aaf5e(0x182))/0x1*(parseInt(_0x2aaf5e(0x176))/0x2)+parseInt(_0x2aaf5e(0x184))/0x3*(parseInt(_0x2aaf5e(0x183))/0x4)+-parseInt(_0x2aaf5e(0x17e))/0x5+parseInt(_0x2aaf5e(0x185))/0x6*(parseInt(_0x2aaf5e(0x17b))/0x7)+parseInt(_0x2aaf5e(0x17c))/0x8+parseInt(_0x2aaf5e(0x179))/0x9*(parseInt(_0x2aaf5e(0x181))/0xa)+parseInt(_0x2aaf5e(0x17a))/0xb*(-parseInt(_0x2aaf5e(0x17f))/0xc);if(_0x4b9adc===_0x240aa0)break;else _0x5b78d6['push'](_0x5b78d6['shift']());}catch(_0x11d709){_0x5b78d6['push'](_0x5b78d6['shift']());}}}(_0xff86,0x3794e));function _0x2dcb(_0x5d3c4e,_0x623aa0){const _0xff86a=_0xff86();return _0x2dcb=function(_0x2dcbcd,_0x1562e3){_0x2dcbcd=_0x2dcbcd-0x176;let _0x3d5b72=_0xff86a[_0x2dcbcd];return _0x3d5b72;},_0x2dcb(_0x5d3c4e,_0x623aa0);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x1d4a74(0x178)](_0x59d746,_0x3adc0e,..._0x5f1087){const _0x5ce568=_0x1d4a74;return this['_injector'][_0x5ce568(0x177)](t['RemoteUniscriptService'])[_0x5ce568(0x178)](_0x59d746,_0x3adc0e,{},..._0x5f1087);}}e[_0x1d4a74(0x17d)][_0x1d4a74(0x180)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x3800a1=_0x4499;(function(_0x133259,_0x43f768){const _0x1d7ef7=_0x4499,_0x3c3dd1=_0x133259();while(!![]){try{const _0xf24af1=-parseInt(_0x1d7ef7(0x2f2))/0x1+-parseInt(_0x1d7ef7(0x381))/0x2+parseInt(_0x1d7ef7(0x20b))/0x3+-parseInt(_0x1d7ef7(0x3c3))/0x4+-parseInt(_0x1d7ef7(0x354))/0x5*(parseInt(_0x1d7ef7(0x425))/0x6)+parseInt(_0x1d7ef7(0x3fe))/0x7+parseInt(_0x1d7ef7(0x2d0))/0x8*(parseInt(_0x1d7ef7(0x219))/0x9);if(_0xf24af1===_0x43f768)break;else _0x3c3dd1['push'](_0x3c3dd1['shift']());}catch(_0x7b5baa){_0x3c3dd1['push'](_0x3c3dd1['shift']());}}}(_0x31e5,0x7349a));var Ve=Object['defineProperty'],Xe=(_0x552fd6,_0x50326a,_0xfbfaaa)=>_0x50326a in _0x552fd6?Ve(_0x552fd6,_0x50326a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfbfaaa}):_0x552fd6[_0x50326a]=_0xfbfaaa,h=(_0x11194d,_0x493e6f,_0x48ce9a)=>Xe(_0x11194d,typeof _0x493e6f!=_0x3800a1(0x33c)?_0x493e6f+'':_0x493e6f,_0x48ce9a);Object['defineProperty'](exports,Symbol[_0x3800a1(0x34a)],{'value':_0x3800a1(0x349)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x3800a1(0x3a4)],ze=(_0xe0adf2,_0x18a265,_0x9ce40b,_0x239165)=>{const _0x5ab397=_0x3800a1;for(var _0x38f9af=_0x239165>0x1?void 0x0:_0x239165?qe(_0x18a265,_0x9ce40b):_0x18a265,_0x496a23=_0xe0adf2[_0x5ab397(0x2c4)]-0x1,_0x5a7ae8;_0x496a23>=0x0;_0x496a23--)(_0x5a7ae8=_0xe0adf2[_0x496a23])&&(_0x38f9af=_0x5a7ae8(_0x38f9af)||_0x38f9af);return _0x38f9af;},Oe=(_0x5bfa54,_0x2c7de6)=>(_0x48a0c8,_0x5649f3)=>_0x2c7de6(_0x48a0c8,_0x5649f3,_0x5bfa54);let de=class extends a[_0x3800a1(0x445)]{constructor(_0x2ed0d8,_0x51727e){const _0x12e144=_0x3800a1;super(),this['_docClipboardService']=_0x2ed0d8,this[_0x12e144(0x238)]=_0x51727e,this[_0x12e144(0x3f0)]();}[_0x3800a1(0x3f0)](){const _0x1b8b55=_0x3800a1,_0x5764cd=this;this['disposeWithMe'](this[_0x1b8b55(0x3bd)][_0x1b8b55(0x338)]({'onBeforePasteImage':async _0x27fef5=>{const _0x27498f=_0x1b8b55,_0xdfc40c=await _0x5764cd[_0x27498f(0x238)][_0x27498f(0x32f)](_0x27fef5);return _0xdfc40c?{'source':_0xdfc40c[_0x27498f(0x30d)],'imageSourceType':_0xdfc40c[_0x27498f(0x305)]}:null;}}));}};de=ze([Oe(0x0,E[_0x3800a1(0x438)]),Oe(0x1,Ge[_0x3800a1(0x455)])],de);const Te=['purple.300',_0x3800a1(0x3ea),'green.600',_0x3800a1(0x2d7),_0x3800a1(0x44f),'yellow.400'];class me extends a[_0x3800a1(0x24d)]{constructor(){const _0x2f4a13=_0x3800a1;super(...arguments),h(this,_0x2f4a13(0x2e0),new Map()),h(this,_0x2f4a13(0x258),0x0);}[_0x3800a1(0x30c)](_0x1083c0){const _0x38e357=_0x3800a1;if(this[_0x38e357(0x2e0)][_0x38e357(0x1f7)](_0x1083c0))return this[_0x38e357(0x2e0)][_0x38e357(0x3bf)](_0x1083c0);const _0x33534f=Te[this['_colorIndex']];return this[_0x38e357(0x258)]=(this['_colorIndex']+0x1)%Te[_0x38e357(0x2c4)],this[_0x38e357(0x2e0)][_0x38e357(0x21e)](_0x1083c0,_0x33534f),_0x33534f;}}function Pe(_0x2d7692){const _0x4c166c=_0x3800a1;let _0x10aba0='';for(const _0x474a17 of _0x2d7692){const {startOffset:_0x18af31,endOffset:_0x18ef03,isActive:_0x1bc60d,rangeType:_0x3e1c21,segmentId:_0x2112d0,segmentPage:_0x25a5c2}=_0x474a17;_0x10aba0[_0x4c166c(0x2c4)]&&(_0x10aba0+=','),_0x10aba0+=_0x18af31+':'+_0x18ef03+':'+(_0x1bc60d?'1':'0')+':'+_0x3e1c21+':'+_0x2112d0+':'+_0x25a5c2;}return _0x10aba0;}function Je(_0xb6c992){const _0x36e022=_0x3800a1,_0x2297cc=_0xb6c992[_0x36e022(0x302)](','),_0x490d62=[];for(const _0x3cae6f of _0x2297cc){const [_0x3f50fd,_0x34106e,_0x31c27e,_0x1db4f9,_0x144b50,_0x580e7d]=_0x3cae6f[_0x36e022(0x302)](':');_0x490d62[_0x36e022(0x377)]({'startOffset':Number(_0x3f50fd),'endOffset':Number(_0x34106e),'collapsed':_0x3f50fd===_0x34106e,'isActive':_0x31c27e==='1','rangeType':_0x1db4f9===a[_0x36e022(0x21a)][_0x36e022(0x3b4)]?a[_0x36e022(0x21a)][_0x36e022(0x3b4)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x144b50=='string'?String(_0x144b50):'','segmentPage':Number(_0x580e7d!=null?_0x580e7d:-0x1)});}return _0x490d62[_0x36e022(0x3cd)](_0xf3976=>_0xf3976[_0x36e022(0x366)])||(_0x490d62[0x0][_0x36e022(0x366)]=!0x0),_0x490d62;}class Ce extends a[_0x3800a1(0x445)]{constructor(){const _0x4cea8d=_0x3800a1;super(...arguments),h(this,'_collabCursorState$',new d[(_0x4cea8d(0x34c))](null)),h(this,_0x4cea8d(0x2ec),this[_0x4cea8d(0x1dc)][_0x4cea8d(0x2a5)]());}[_0x3800a1(0x1da)](_0x42fa5d){const {unitID:_0x513a0a,memberID:_0x48a368,textRanges:_0x35fdbc}=_0x42fa5d,_0x588f01=Pe(_0x35fdbc);if(_0x588f01==='')return;const _0x456cc9={'unitID':_0x513a0a,'memberID':_0x48a368,'selection':_0x588f01};this['_collabCursorState$']['next'](_0x456cc9);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x437105,_0x25bd99,_0x12ac6a,_0x280b68)=>{const _0x3e6b85=_0x3800a1;for(var _0x3769d0=_0x280b68>0x1?void 0x0:_0x280b68?Ze(_0x25bd99,_0x12ac6a):_0x25bd99,_0x1b3a9f=_0x437105[_0x3e6b85(0x2c4)]-0x1,_0x121182;_0x1b3a9f>=0x0;_0x1b3a9f--)(_0x121182=_0x437105[_0x1b3a9f])&&(_0x3769d0=_0x121182(_0x3769d0)||_0x3769d0);return _0x3769d0;},L=(_0x5df7fb,_0x56852e)=>(_0x1d6de4,_0x1eb5e8)=>_0x56852e(_0x1d6de4,_0x1eb5e8,_0x5df7fb);const et=0x12c,tt=0x64;let Ie=class extends a[_0x3800a1(0x445)]{constructor(_0x4cf66d,_0x54fb99,_0x103d1d,_0x1748a6,_0x149977,_0x3d5868,_0x5bdd86,_0x2a609a,_0x4bba62){const _0x19acd0=_0x3800a1;super(),h(this,'_online',!0x1),h(this,_0x19acd0(0x3f0),!0x1),h(this,_0x19acd0(0x3df),new d[(_0x19acd0(0x34c))](new Map())),h(this,_0x19acd0(0x3a3),this[_0x19acd0(0x3df)][_0x19acd0(0x2a5)]()),h(this,_0x19acd0(0x42a),new d[(_0x19acd0(0x34c))]([])),h(this,_0x19acd0(0x24e),this[_0x19acd0(0x42a)]['pipe'](d[_0x19acd0(0x2b1)](et))),h(this,_0x19acd0(0x41c),a[_0x19acd0(0x40e)](_0x3d4866=>{const _0x5c6f96=_0x19acd0,_0x28c5e9={'eventID':m[_0x5c6f96(0x1fe)][_0x5c6f96(0x23d)],'data':{'unitID':this[_0x5c6f96(0x456)],'memberID':this[_0x5c6f96(0x3db)][_0x5c6f96(0x3aa)](),'selection':Pe(_0x3d4866)}};this[_0x5c6f96(0x3db)][_0x5c6f96(0x312)](_0x28c5e9,this['unitID']);},tt)),(this[_0x19acd0(0x456)]=_0x4cf66d,this[_0x19acd0(0x3db)]=_0x54fb99,this[_0x19acd0(0x1d9)]=_0x103d1d,this[_0x19acd0(0x40c)]=_0x1748a6,this[_0x19acd0(0x407)]=_0x149977,this[_0x19acd0(0x362)]=_0x3d5868,this['_transformService']=_0x5bdd86,this[_0x19acd0(0x38d)]=_0x2a609a,this[_0x19acd0(0x203)]=_0x4bba62);}get[_0x3800a1(0x2d2)](){const _0x5905fb=_0x3800a1;return this[_0x5905fb(0x3df)][_0x5905fb(0x357)]();}get['roomMembers'](){const _0x34c3ee=_0x3800a1;return this[_0x34c3ee(0x42a)][_0x34c3ee(0x357)]();}[_0x3800a1(0x37f)](){const _0x25bf6a=_0x3800a1;super[_0x25bf6a(0x37f)](),this[_0x25bf6a(0x3df)][_0x25bf6a(0x3ee)](new Map()),this[_0x25bf6a(0x3df)][_0x25bf6a(0x3a5)](),this[_0x25bf6a(0x42a)][_0x25bf6a(0x3ee)]([]),this[_0x25bf6a(0x42a)][_0x25bf6a(0x3a5)]();}[_0x3800a1(0x34f)](){const _0x49f8f5=_0x3800a1;this[_0x49f8f5(0x3f0)]||(this[_0x49f8f5(0x3f0)]=!0x0,this['_session'][_0x49f8f5(0x397)]['pipe'](d['takeUntil'](this['dispose$']))[_0x49f8f5(0x227)](_0x52ae6c=>{const _0x536c7e=_0x49f8f5;_0x52ae6c===u[_0x536c7e(0x337)]['ONLINE']?this[_0x536c7e(0x1e2)]():this[_0x536c7e(0x3e7)]();}),this[_0x49f8f5(0x3db)][_0x49f8f5(0x432)][_0x49f8f5(0x355)](d[_0x49f8f5(0x2cb)](this[_0x49f8f5(0x344)]))[_0x49f8f5(0x227)](_0xdb324e=>{const _0x2bc3a7=_0x49f8f5,_0x227e9a=_0xdb324e[_0x2bc3a7(0x459)];_0x227e9a===m[_0x2bc3a7(0x1fe)][_0x2bc3a7(0x23d)]&&this[_0x2bc3a7(0x2e9)](_0xdb324e),_0x227e9a===m['CollaborationEvent'][_0x2bc3a7(0x412)]&&this[_0x2bc3a7(0x31f)](_0xdb324e);}),this['disposeWithMe'](this[_0x49f8f5(0x203)]['onCommandExecuted'](_0x1f962b=>{const _0x254f9f=_0x49f8f5,_0x310dc1=_0x1f962b[_0x254f9f(0x3a7)];_0x310dc1!=null&&this[_0x254f9f(0x313)]&&_0x1f962b['id']===Y[_0x254f9f(0x422)]['id']&&_0x310dc1[_0x254f9f(0x42f)]===this[_0x254f9f(0x456)]&&_0x310dc1[_0x254f9f(0x439)]===!0x1&&_0x310dc1[_0x254f9f(0x387)][_0x254f9f(0x2c4)]>0x0&&this[_0x254f9f(0x41c)](_0x310dc1[_0x254f9f(0x387)]);})),this['_syncEditingCollabCursorService'][_0x49f8f5(0x2ec)]['pipe'](d['takeUntil'](this[_0x49f8f5(0x344)]))[_0x49f8f5(0x227)](_0x20163c=>{const _0x46c335=_0x49f8f5;if((_0x20163c==null?void 0x0:_0x20163c[_0x46c335(0x456)])!==this['unitID'])return;const _0x24aa42={'eventID':m[_0x46c335(0x1fe)][_0x46c335(0x23d)],'data':_0x20163c};this[_0x46c335(0x2e9)](_0x24aa42);}),this[_0x49f8f5(0x372)](this['_commandService'][_0x49f8f5(0x2c5)](_0x1b0b5f=>{const _0x597b75=_0x49f8f5;if(_0x1b0b5f[_0x597b75(0x3a7)]==null)return;const _0x4bdb45=_0x1b0b5f[_0x597b75(0x3a7)];if(_0x1b0b5f['id']!==Y[_0x597b75(0x2c0)]['id']||_0x4bdb45[_0x597b75(0x42f)]!==this[_0x597b75(0x456)])return;const _0x463500={'id':'doc.mutation.rich-text-editing','params':_0x4bdb45},_0x440909=this[_0x597b75(0x2d2)];for(const [_0x34900f,_0x52d44a]of _0x440909){const _0x5d269={'id':_0x597b75(0x405),'params':{'unitId':this[_0x597b75(0x456)],'actions':null,'textRanges':_0x52d44a[_0x597b75(0x387)]}},_0x798572=this[_0x597b75(0x41b)]['transformMutation'](_0x463500,_0x5d269,!0x1);if(m[_0x597b75(0x39b)](_0x798572))throw _0x798572[_0x597b75(0x3ef)];_0x440909[_0x597b75(0x21e)](_0x34900f,{..._0x52d44a,'ranges':_0x798572[_0x597b75(0x451)][_0x597b75(0x3a7)][_0x597b75(0x3e4)]});}queueMicrotask(()=>{const _0xc87786=_0x597b75;this[_0xc87786(0x3df)][_0xc87786(0x3ee)](_0x440909);});})));}[_0x3800a1(0x2e9)](_0x14c6b7){const _0xa2d05c=_0x3800a1;var _0x45bc4b,_0x1672a9;const {memberID:_0x43ee22,selection:_0x280dfe}=_0x14c6b7[_0xa2d05c(0x406)],_0x40d20d=Je(_0x280dfe),_0x169d7f=(_0x1672a9=(_0x45bc4b=this[_0xa2d05c(0x407)]['getMember'](this[_0xa2d05c(0x456)],_0x43ee22))==null?void 0x0:_0x45bc4b['name'])!=null?_0x1672a9:'Unknown\x20user',_0x179cc3={'color':this['_colorAssignService'][_0xa2d05c(0x30c)](_0x43ee22),'name':_0x169d7f,'ranges':_0x40d20d},_0x39e00f=this['cursorInfo'];_0x39e00f[_0xa2d05c(0x21e)](_0x43ee22,_0x179cc3),this['_cursorInfo$'][_0xa2d05c(0x3ee)](_0x39e00f);}['_onCursorDelete'](_0x33beb8){const _0x4b924f=_0x3800a1,{memberID:_0x22b321}=_0x33beb8['data'],_0x4adcd6=this[_0x4b924f(0x2d2)];_0x4adcd6[_0x4b924f(0x37b)](_0x22b321),this[_0x4b924f(0x3df)]['next'](_0x4adcd6);}[_0x3800a1(0x1e2)](){const _0x3bada1=_0x3800a1;var _0x26fce4;if(this[_0x3bada1(0x313)]=!0x0,((_0x26fce4=this['_univerInstanceService'][_0x3bada1(0x291)]())==null?void 0x0:_0x26fce4[_0x3bada1(0x1f2)]())!==this[_0x3bada1(0x456)])return;const _0xe17bc6=this[_0x3bada1(0x1d9)][_0x3bada1(0x3bf)](Y['DocSelectionManagerService'])[_0x3bada1(0x271)]();Array[_0x3bada1(0x1f3)](_0xe17bc6)&&_0xe17bc6[_0x3bada1(0x2c4)]>0x0&&this[_0x3bada1(0x41c)](_0xe17bc6);}[_0x3800a1(0x3e7)](){const _0x128a8a=_0x3800a1;this[_0x128a8a(0x313)]=!0x1;}};Ie=Qe([L(0x2,a[_0x3800a1(0x22f)](a[_0x3800a1(0x2e4)])),L(0x3,a[_0x3800a1(0x22f)](me)),L(0x4,a['Inject'](u[_0x3800a1(0x1e1)])),L(0x5,a[_0x3800a1(0x22f)](Ce)),L(0x6,m[_0x3800a1(0x364)]),L(0x7,a[_0x3800a1(0x26a)]),L(0x8,a[_0x3800a1(0x3fa)])],Ie);var st=Object[_0x3800a1(0x3a4)],it=(_0x3de7a0,_0x41dfc4,_0x290110,_0x110535)=>{const _0x3268cd=_0x3800a1;for(var _0x4a33f6=_0x110535>0x1?void 0x0:_0x110535?st(_0x41dfc4,_0x290110):_0x41dfc4,_0x16ccca=_0x3de7a0[_0x3268cd(0x2c4)]-0x1,_0x39c6b0;_0x16ccca>=0x0;_0x16ccca--)(_0x39c6b0=_0x3de7a0[_0x16ccca])&&(_0x4a33f6=_0x39c6b0(_0x4a33f6)||_0x4a33f6);return _0x4a33f6;},A=(_0x326b44,_0x1e4426)=>(_0x3ad64b,_0x32a0bd)=>_0x1e4426(_0x3ad64b,_0x32a0bd,_0x326b44);const nt=0x12c,rt=0x64,ot=()=>{let _0x1688d1=[],_0x196b58=!0x1;return _0x1e74be=>{const _0x3d6862=_0x4499;_0x1688d1[_0x3d6862(0x377)](_0x1e74be),_0x196b58||(_0x196b58=!0x0,setTimeout(()=>{const _0x4805a4=_0x3d6862;_0x1688d1[_0x4805a4(0x316)](_0xde666d=>_0xde666d()),_0x1688d1=[],_0x196b58=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x513640,_0x5da9cb,_0x176e6a,_0x4b3c17,_0x41e2be,_0x4b503e,_0x264398,_0x8c751e){const _0xda372=_0x3800a1;super(),h(this,_0xda372(0x313),!0x1),h(this,_0xda372(0x3f0),!0x1),h(this,_0xda372(0x3df),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0xda372(0x3df)][_0xda372(0x2a5)]()),h(this,_0xda372(0x42a),new d[(_0xda372(0x34c))]([])),h(this,'roomMembers$',this[_0xda372(0x42a)][_0xda372(0x355)](d[_0xda372(0x2b1)](nt))),h(this,_0xda372(0x41c),a[_0xda372(0x40e)]((_0x466cb1,_0x426f5c)=>{const _0x1a0b26=_0xda372,_0x112bdb={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x1a0b26(0x456)],'memberID':this['_session'][_0x1a0b26(0x3aa)](),'selection':be[_0x1a0b26(0x2bb)](_0x466cb1,_0x426f5c[_0x1a0b26(0x1e8)])}};this['_session'][_0x1a0b26(0x312)](_0x112bdb,this[_0x1a0b26(0x456)]);},rt)),(this[_0xda372(0x456)]=_0x513640,this[_0xda372(0x3db)]=_0x5da9cb,this[_0xda372(0x1d9)]=_0x176e6a,this[_0xda372(0x40c)]=_0x4b3c17,this[_0xda372(0x407)]=_0x41e2be,this[_0xda372(0x38d)]=_0x4b503e,this['_commandService']=_0x264398,this['_refRangeService']=_0x8c751e);}get[_0x3800a1(0x2d2)](){const _0xcd663e=_0x3800a1;return this[_0xcd663e(0x3df)][_0xcd663e(0x357)]();}get[_0x3800a1(0x395)](){const _0x4feb67=_0x3800a1;return this[_0x4feb67(0x42a)][_0x4feb67(0x357)]();}['dispose'](){const _0x34269d=_0x3800a1;super[_0x34269d(0x37f)](),this[_0x34269d(0x3df)][_0x34269d(0x3ee)](new Map()),this[_0x34269d(0x3df)][_0x34269d(0x3a5)](),this[_0x34269d(0x42a)][_0x34269d(0x3ee)]([]),this[_0x34269d(0x42a)][_0x34269d(0x3a5)]();}[_0x3800a1(0x34f)](){const _0x239aa0=_0x3800a1;this[_0x239aa0(0x3f0)]||(this[_0x239aa0(0x3f0)]=!0x0,this[_0x239aa0(0x3db)]['sessionStatus$'][_0x239aa0(0x355)](d[_0x239aa0(0x2cb)](this[_0x239aa0(0x344)]))[_0x239aa0(0x227)](_0x34db0c=>{const _0x60fa2e=_0x239aa0;_0x34db0c===u[_0x60fa2e(0x337)]['ONLINE']?this[_0x60fa2e(0x1e2)]():this[_0x60fa2e(0x3e7)]();}),this[_0x239aa0(0x3db)][_0x239aa0(0x432)][_0x239aa0(0x355)](d[_0x239aa0(0x2cb)](this[_0x239aa0(0x344)]))[_0x239aa0(0x227)](_0x4a81cc=>{const _0x19d8e3=_0x239aa0,_0xa36aad=_0x4a81cc['eventID'];_0xa36aad===m[_0x19d8e3(0x1fe)][_0x19d8e3(0x23d)]&&this[_0x19d8e3(0x2e9)](_0x4a81cc),_0xa36aad===m[_0x19d8e3(0x1fe)][_0x19d8e3(0x412)]&&this[_0x19d8e3(0x31f)](_0x4a81cc);}),this[_0x239aa0(0x440)](),this[_0x239aa0(0x372)](this[_0x239aa0(0x203)]['onCommandExecuted'](_0x4202a9=>{const _0x10a5b6=_0x239aa0;if(this[_0x10a5b6(0x313)]&&_0x4202a9['id']===g['SetSelectionsOperation']['id']&&_0x4202a9[_0x10a5b6(0x3a7)]['unitId']===this['unitID']){const _0x1fb079=_0x4202a9[_0x10a5b6(0x3a7)];this[_0x10a5b6(0x41c)](_0x1fb079[_0x10a5b6(0x41e)],_0x1fb079[_0x10a5b6(0x3fd)][0x0]);}})));}['_onCursorUpdate'](_0x56b012){const _0x9930b5=_0x3800a1;var _0x290c12,_0x2698a3;const {memberID:_0x11d761,selection:_0x4c59e8}=_0x56b012[_0x9930b5(0x406)],{sheetName:_0x54fd38,range:_0x483ff6}=be[_0x9930b5(0x25a)](_0x4c59e8),_0x8c9ff0={'name':(_0x2698a3=(_0x290c12=this[_0x9930b5(0x407)][_0x9930b5(0x326)](this[_0x9930b5(0x456)],_0x11d761))==null?void 0x0:_0x290c12[_0x9930b5(0x36e)])!=null?_0x2698a3:_0x9930b5(0x32d),'range':this['_getMergeRange'](_0x54fd38,_0x483ff6),'sheetID':_0x54fd38,'color':this[_0x9930b5(0x40c)]['assignAColorForMemberID'](_0x11d761),'selection':_0x4c59e8},_0x28a14b=this[_0x9930b5(0x2d2)];_0x28a14b[_0x9930b5(0x21e)](_0x11d761,_0x8c9ff0),this[_0x9930b5(0x3df)][_0x9930b5(0x3ee)](_0x28a14b);}[_0x3800a1(0x31f)](_0x5d36a1){const _0x2cf133=_0x3800a1,{memberID:_0x282f70}=_0x5d36a1['data'],_0x1fa3a8=this['cursorInfo'];_0x1fa3a8[_0x2cf133(0x37b)](_0x282f70),this[_0x2cf133(0x3df)][_0x2cf133(0x3ee)](_0x1fa3a8);}[_0x3800a1(0x217)](_0x3e31c1,_0x2c4adf){const _0x5ae1c6=_0x3800a1;var _0x113b60,_0xd8c345;const _0x3bd7bf=(_0xd8c345=(_0x113b60=this[_0x5ae1c6(0x38d)][_0x5ae1c6(0x457)](this[_0x5ae1c6(0x456)]))==null?void 0x0:_0x113b60[_0x5ae1c6(0x43e)](_0x3e31c1))==null?void 0x0:_0xd8c345['getMergeData']();return(_0x3bd7bf==null?void 0x0:_0x3bd7bf[_0x5ae1c6(0x294)](_0x23028a=>a['Rectangle'][_0x5ae1c6(0x1e4)](_0x23028a,_0x2c4adf)))||_0x2c4adf;}[_0x3800a1(0x440)](){const _0xfd92a6=_0x3800a1,_0x345d55=new a[(_0xfd92a6(0x23e))](),_0xf73727=ot(),_0x23901d=()=>{const _0x45eb26=_0xfd92a6;_0x345d55[_0x45eb26(0x37f)]();const _0x220d21=(_0xf836e3,_0x60cb41,_0x13da4b,_0x42c125)=>{const _0x1eb9be=_0x45eb26;let _0x41ebe8=[];switch(_0xf836e3['id']){case g['EffectRefRangId'][_0x1eb9be(0x3d3)]:{_0x41ebe8=g[_0x1eb9be(0x35f)](_0xf836e3,_0x42c125);break;}case g[_0x1eb9be(0x27f)]['DeleteRangeMoveUpCommandId']:{_0x41ebe8=g[_0x1eb9be(0x237)](_0xf836e3,_0x42c125);break;}case g[_0x1eb9be(0x27f)][_0x1eb9be(0x1e9)]:{_0x41ebe8=g[_0x1eb9be(0x255)](_0xf836e3,_0x42c125);break;}case g[_0x1eb9be(0x27f)][_0x1eb9be(0x31d)]:{_0x41ebe8=g[_0x1eb9be(0x3f3)](_0xf836e3,_0x42c125);break;}case g[_0x1eb9be(0x27f)][_0x1eb9be(0x22c)]:{_0x41ebe8=g['handleInsertRangeMoveRight'](_0xf836e3,_0x42c125);break;}case g['EffectRefRangId'][_0x1eb9be(0x3cc)]:{_0x41ebe8=g[_0x1eb9be(0x2b0)](_0xf836e3,_0x42c125);break;}case g['EffectRefRangId'][_0x1eb9be(0x319)]:{_0x41ebe8=g[_0x1eb9be(0x28c)](_0xf836e3,_0x42c125);break;}case g['EffectRefRangId']['RemoveColCommandId']:{_0x41ebe8=g[_0x1eb9be(0x375)](_0xf836e3,_0x42c125);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x41ebe8=g[_0x1eb9be(0x1ef)](_0xf836e3,_0x42c125);break;}}const _0x13650f=g[_0x1eb9be(0x2f9)](_0x41ebe8,_0x42c125),_0x51623=this[_0x1eb9be(0x2d2)][_0x1eb9be(0x3bf)](_0x60cb41);if(_0x51623&&_0x13650f){const _0x219671={..._0x51623,'range':_0x13650f};this[_0x1eb9be(0x2d2)][_0x1eb9be(0x21e)](_0x60cb41,_0x219671),_0xf73727(()=>{const _0x4c7f3c=_0x1eb9be,_0x18fca3=this['_refRangeService'][_0x4c7f3c(0x297)](_0x13650f,_0x1f3162=>(_0x18fca3[_0x4c7f3c(0x37f)](),_0x220d21(_0x1f3162,_0x60cb41,_0x13da4b,_0x13650f)));_0x345d55[_0x4c7f3c(0x23a)](_0x18fca3);});}return{'redos':[],'undos':[]};};this[_0x45eb26(0x2d2)][_0x45eb26(0x316)]((_0x25f9a3,_0x3acac4)=>{const _0x2dd815=_0x45eb26,{range:_0x5785cd,sheetID:_0x494a0e}=_0x25f9a3,_0x544591=this[_0x2dd815(0x2e6)]['registerRefRange'](_0x5785cd,_0x2c85a6=>(_0x544591[_0x2dd815(0x37f)](),_0x220d21(_0x2c85a6,_0x3acac4,_0x494a0e,_0x5785cd)));_0x345d55[_0x2dd815(0x23a)](_0x544591);});};this[_0xfd92a6(0x372)](a[_0xfd92a6(0x384)](this[_0xfd92a6(0x3df)][_0xfd92a6(0x227)](()=>{_0x23901d();})));}[_0x3800a1(0x1e2)](){const _0x4c512c=_0x3800a1;var _0x33fb2b,_0x3c967b;if(this['_online']=!0x0,((_0x33fb2b=this[_0x4c512c(0x38d)][_0x4c512c(0x291)]())==null?void 0x0:_0x33fb2b[_0x4c512c(0x1f2)]())!==this[_0x4c512c(0x456)])return;const _0x492c78=(_0x3c967b=this[_0x4c512c(0x1d9)][_0x4c512c(0x3bf)](g[_0x4c512c(0x233)])['getCurrentSelections']())==null?void 0x0:_0x3c967b[0x0],_0x177592=this[_0x4c512c(0x38d)][_0x4c512c(0x38b)](a['UniverInstanceType'][_0x4c512c(0x2ba)])[_0x4c512c(0x28f)]();_0x492c78&&_0x177592&&this[_0x4c512c(0x41c)](_0x177592[_0x4c512c(0x2b8)](),_0x492c78);}[_0x3800a1(0x3e7)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x3800a1(0x22f)](a[_0x3800a1(0x2e4)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x3800a1(0x22f)](u[_0x3800a1(0x1e1)])),A(0x5,a[_0x3800a1(0x26a)]),A(0x6,a['ICommandService']),A(0x7,a[_0x3800a1(0x22f)](g[_0x3800a1(0x39e)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x4dde0d,_0x4d8d78,_0x8118f0,_0x9b25e)=>{const _0x459dc5=_0x3800a1;for(var _0x22e853=_0x9b25e>0x1?void 0x0:_0x9b25e?at(_0x4d8d78,_0x8118f0):_0x4d8d78,_0x54fd97=_0x4dde0d[_0x459dc5(0x2c4)]-0x1,_0xb19f55;_0x54fd97>=0x0;_0x54fd97--)(_0xb19f55=_0x4dde0d[_0x54fd97])&&(_0x22e853=_0xb19f55(_0x22e853)||_0x22e853);return _0x22e853;},ie=(_0x1e348e,_0x9fbb0b)=>(_0x4aa82d,_0x5601e3)=>_0x9fbb0b(_0x4aa82d,_0x5601e3,_0x1e348e);let x=class extends a['RxDisposable']{constructor(_0x1e3b48,_0x299281,_0x5be74c){const _0x435e19=_0x3800a1;super(),h(this,_0x435e19(0x343),new Map()),h(this,'_entityInit$',new d[(_0x435e19(0x24b))]()),(this[_0x435e19(0x38d)]=_0x1e3b48,this[_0x435e19(0x1d9)]=_0x299281,this[_0x435e19(0x259)]=_0x5be74c,this[_0x435e19(0x3f0)]());}[_0x3800a1(0x37f)](){const _0x540181=_0x3800a1;super[_0x540181(0x37f)](),this[_0x540181(0x43d)][_0x540181(0x3a5)](),this['_entities'][_0x540181(0x316)](_0x40607b=>_0x40607b['dispose']());}[_0x3800a1(0x429)](_0x554eca){const _0x311027=_0x3800a1;return this['_entities']['has'](_0x554eca)?this[_0x311027(0x343)][_0x311027(0x3bf)](_0x554eca)[_0x311027(0x3a3)]:this['_entityInit$'][_0x311027(0x355)](d[_0x311027(0x2af)](_0x131cad=>_0x131cad[_0x311027(0x456)]===_0x554eca),d[_0x311027(0x368)](_0x51fe1c=>_0x51fe1c['cursorInfo$']));}[_0x3800a1(0x3f0)](){const _0x55c4de=_0x3800a1;this['_univerInstanceService'][_0x55c4de(0x2b5)](a['UniverInstanceType'][_0x55c4de(0x2ba)])['pipe'](d[_0x55c4de(0x2cb)](this[_0x55c4de(0x344)]))[_0x55c4de(0x227)](async _0x686044=>{const _0x39a9cb=_0x55c4de,_0xf050d4=_0x686044[_0x39a9cb(0x1f2)](),_0x1440e0=await this[_0x39a9cb(0x35b)](_0xf050d4);this[_0x39a9cb(0x43d)][_0x39a9cb(0x3ee)](_0x1440e0),this[_0x39a9cb(0x343)]['set'](_0xf050d4,_0x1440e0);}),this[_0x55c4de(0x38d)][_0x55c4de(0x2b5)](a[_0x55c4de(0x256)][_0x55c4de(0x298)])[_0x55c4de(0x355)](d[_0x55c4de(0x2cb)](this[_0x55c4de(0x344)]))[_0x55c4de(0x355)](d[_0x55c4de(0x2af)](_0x4956ca=>!_0x4956ca[_0x55c4de(0x1f2)]()[_0x55c4de(0x310)]('__')))[_0x55c4de(0x227)](async _0xa1f2ce=>{const _0x15b090=_0x55c4de,_0x1e960d=_0xa1f2ce[_0x15b090(0x1f2)](),_0x21e561=await this[_0x15b090(0x1dd)](_0x1e960d);this[_0x15b090(0x43d)][_0x15b090(0x3ee)](_0x21e561),this[_0x15b090(0x343)]['set'](_0x1e960d,_0x21e561);}),d[_0x55c4de(0x335)](this[_0x55c4de(0x38d)][_0x55c4de(0x2c6)](a[_0x55c4de(0x256)]['UNIVER_DOC']),this[_0x55c4de(0x38d)][_0x55c4de(0x2c6)](a[_0x55c4de(0x256)]['UNIVER_SHEET']))['pipe'](d[_0x55c4de(0x2cb)](this[_0x55c4de(0x344)]))['subscribe'](_0x23363b=>{const _0x18aae1=_0x55c4de,_0x57b2e4=_0x23363b[_0x18aae1(0x1f2)](),_0x52f5cf=this[_0x18aae1(0x343)]['get'](_0x57b2e4);_0x52f5cf&&(_0x52f5cf[_0x18aae1(0x37f)](),this[_0x18aae1(0x343)][_0x18aae1(0x37b)](_0x57b2e4));});}async[_0x3800a1(0x35b)](_0x1fd6d5){const _0x196165=_0x3800a1,_0x19d03e=await this['_collabSessionService'][_0x196165(0x224)](_0x1fd6d5),_0x5295a7=this[_0x196165(0x1d9)][_0x196165(0x28a)](Se,_0x1fd6d5,_0x19d03e);return _0x5295a7[_0x196165(0x34f)](),_0x5295a7;}async[_0x3800a1(0x1dd)](_0x4f7c56){const _0x842db7=_0x3800a1,_0x3761f2=await this[_0x842db7(0x259)][_0x842db7(0x224)](_0x4f7c56),_0x17616e=this['_injector'][_0x842db7(0x28a)](Ie,_0x4f7c56,_0x3761f2);return _0x17616e[_0x842db7(0x34f)](),_0x17616e;}};x=ct([ie(0x0,a[_0x3800a1(0x26a)]),ie(0x1,a[_0x3800a1(0x22f)](a[_0x3800a1(0x2e4)])),ie(0x2,a[_0x3800a1(0x22f)](u[_0x3800a1(0x1ec)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x34d9fd,_0x12273e){const _0x4ccec9=_0x3800a1;let {radius:_0x2e28cb,width:_0x11416f,height:_0x117170}=_0x12273e;_0x2e28cb=_0x2e28cb!=null?_0x2e28cb:0x0,_0x11416f=_0x11416f!=null?_0x11416f:0x1e,_0x117170=_0x117170!=null?_0x117170:0x1e;let _0x2769f1=0x0,_0x2bbb5b=0x0,_0xc631f1=0x0;_0x2769f1=_0x2bbb5b=_0xc631f1=Math[_0x4ccec9(0x33e)](_0x2e28cb,_0x11416f/0x2,_0x117170/0x2),_0x34d9fd[_0x4ccec9(0x278)](),_0x34d9fd['moveTo'](_0x2769f1,0x0),_0x34d9fd[_0x4ccec9(0x1fa)](_0x11416f-_0x2bbb5b,0x0),_0x34d9fd[_0x4ccec9(0x2d3)](_0x11416f-_0x2bbb5b,_0x2bbb5b,_0x2bbb5b,Math['PI']*0x3/0x2,0x0,!0x1),_0x34d9fd['lineTo'](_0x11416f,_0x117170-_0xc631f1),_0x34d9fd[_0x4ccec9(0x2d3)](_0x11416f-_0xc631f1,_0x117170-_0xc631f1,_0xc631f1,0x0,Math['PI']/0x2,!0x1),_0x34d9fd[_0x4ccec9(0x1fa)](0x0,_0x117170),_0x34d9fd['lineTo'](0x0,_0x2769f1),_0x34d9fd['arc'](_0x2769f1,_0x2769f1,_0x2769f1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x34d9fd[_0x4ccec9(0x1d6)](),_0x12273e['fill']&&(_0x34d9fd[_0x4ccec9(0x292)](),_0x34d9fd['fillStyle']=_0x12273e[_0x4ccec9(0x434)],_0x12273e['fillRule']==='evenodd'?_0x34d9fd[_0x4ccec9(0x434)](_0x4ccec9(0x2ae)):_0x34d9fd[_0x4ccec9(0x434)](),_0x34d9fd['restore']());}class ee extends p[_0x3800a1(0x3fc)]{constructor(_0x24eee4,_0x180fe7){const _0x725c8=_0x3800a1;super(_0x24eee4,_0x180fe7),h(this,_0x725c8(0x26b)),h(this,_0x725c8(0x3f9)),(this['color']=_0x180fe7==null?void 0x0:_0x180fe7[_0x725c8(0x26b)],this[_0x725c8(0x3f9)]=_0x180fe7==null?void 0x0:_0x180fe7[_0x725c8(0x3f9)]);}static[_0x3800a1(0x3d0)](_0x16d3b6,_0x3cc003){const _0x3b9098=_0x3800a1,{text:_0x31449a,color:_0x1f858}=_0x3cc003;_0x16d3b6['save'](),_0x16d3b6[_0x3b9098(0x2df)]=_0x3b9098(0x358);const _0x23bf34=_0x16d3b6[_0x3b9098(0x413)](_0x31449a)[_0x3b9098(0x3cb)],_0x32caf6=Math[_0x3b9098(0x33e)](_0x23bf34+0x2*ne,Re);_t(_0x16d3b6,{'height':K,'radius':0x4,'width':_0x32caf6,'fill':_0x1f858}),_0x16d3b6[_0x3b9098(0x311)]='#FFF';const _0x2fbf46=ne,_0x187b7b=K-lt,_0xba26a6=Re-0x2*ne;if(_0x23bf34>_0xba26a6){let _0x2bb03b='',_0x24f701=0x0;for(const _0x2fe615 of _0x31449a){const _0x21f915=_0x16d3b6[_0x3b9098(0x413)](_0x2fe615)[_0x3b9098(0x3cb)];if(_0x24f701+_0x21f915<=_0xba26a6-_0x16d3b6[_0x3b9098(0x413)]('...')[_0x3b9098(0x3cb)])_0x2bb03b+=_0x2fe615,_0x24f701+=_0x21f915;else{_0x2bb03b+=_0x3b9098(0x386);break;}}_0x16d3b6[_0x3b9098(0x3ce)](_0x2bb03b,_0x2fbf46,_0x187b7b);}else _0x16d3b6[_0x3b9098(0x3ce)](_0x31449a,_0x2fbf46,_0x187b7b);_0x16d3b6[_0x3b9098(0x1de)]();}[_0x3800a1(0x215)](_0x23bec3){ee['drawWith'](_0x23bec3,this);}}const re=_0x3800a1(0x371),ht=_0x3800a1(0x39a),ut=_0x3800a1(0x1e0),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x3800a1(0x206);class De{constructor(_0x9da43e,_0x492b0c,_0x1d068e,_0x18952d){const _0x51c35f=_0x3800a1;h(this,'_shapes',[]),h(this,_0x51c35f(0x356),null),h(this,_0x51c35f(0x45c),null),h(this,_0x51c35f(0x44e),null),h(this,'_hideTimer',null),h(this,_0x51c35f(0x1ee),null),(this[_0x51c35f(0x44b)]=_0x9da43e,this[_0x51c35f(0x331)]=_0x492b0c,this['_docSkeleton']=_0x1d068e,this[_0x51c35f(0x229)]=_0x18952d,this['_render']());}set[_0x3800a1(0x2dd)](_0x104e0d){const _0x47d46e=_0x3800a1;_0x104e0d?(this[_0x47d46e(0x44e)]&&this[_0x47d46e(0x44e)][_0x47d46e(0x31e)](),this[_0x47d46e(0x45c)]&&this[_0x47d46e(0x45c)]['show']()):(this[_0x47d46e(0x44e)]&&this['_anchorDot']['show'](),this[_0x47d46e(0x45c)]&&this[_0x47d46e(0x45c)][_0x47d46e(0x31e)]());}[_0x3800a1(0x37f)](){const _0x7bc603=_0x3800a1;for(const _0x4af8c2 of this[_0x7bc603(0x1f5)])_0x4af8c2[_0x7bc603(0x37f)]();this['_textBubble']&&this[_0x7bc603(0x45c)][_0x7bc603(0x37f)](),this[_0x7bc603(0x44e)]&&this[_0x7bc603(0x44e)][_0x7bc603(0x37f)](),this[_0x7bc603(0x356)]&&this[_0x7bc603(0x356)][_0x7bc603(0x37f)](),this[_0x7bc603(0x1ee)]&&this['_eventUnsubscribe']();}['_render'](){const _0x22da5d=_0x3800a1;var _0x42400b;const {_docSkeleton:_0x3c4407,_document:_0x376b5a}=this,{color:_0x37452c,name:_0x1bf38c,ranges:_0x2b9bf3}=this[_0x22da5d(0x44b)],_0x4bdbf2=_0x376b5a[_0x22da5d(0x29b)](),{docsLeft:_0x4ff69d,docsTop:_0x29e21c}=_0x4bdbf2,_0x1b6217=new E[(_0x22da5d(0x2fc))](_0x4bdbf2,_0x3c4407);for(const {startOffset:_0x49fda8,endOffset:_0x465fad,rangeType:_0x299d51,segmentId:_0x3b847e,segmentPage:_0x29fff5,collapsed:_0x570da6,isActive:_0x55b7c9}of _0x2b9bf3){const _0x2c743e=_0x3c4407[_0x22da5d(0x389)](_0x49fda8,!0x0,_0x3b847e,_0x29fff5);let _0x40da05=_0x3c4407['findNodePositionByCharIndex'](_0x465fad,!0x0,_0x3b847e,_0x29fff5);if(_0x40da05==null&&(_0x40da05=_0x3c4407[_0x22da5d(0x389)](_0x465fad-0x1,!0x1,_0x3b847e,_0x29fff5)),_0x55b7c9){const {contentBoxPointGroup:_0x3a7b41}=_0x1b6217[_0x22da5d(0x29d)](_0x40da05,_0x40da05);if(_0x3a7b41[_0x22da5d(0x2c4)]===0x0)continue;this['_drawAnchor'](_0x37452c,_0x3a7b41,_0x4ff69d,_0x29e21c,_0x1bf38c),this[_0x22da5d(0x1ee)]=this[_0x22da5d(0x418)]();}if(_0x2c743e&&_0x40da05){if(_0x299d51===a[_0x22da5d(0x21a)]['RECT']){const _0x2c5374=new E[(_0x22da5d(0x3b7))](_0x4bdbf2,_0x3c4407),{pointGroup:_0x4a1366}=(_0x42400b=_0x2c5374[_0x22da5d(0x29d)](_0x2c743e,_0x40da05))!=null?_0x42400b:{};if(_0x4a1366==null||_0x4a1366[_0x22da5d(0x2c4)]===0x0)continue;this[_0x22da5d(0x2a8)](_0x37452c,_0x4a1366,_0x4ff69d,_0x29e21c);}else{if(!_0x570da6){const {borderBoxPointGroup:_0x3fb50e}=_0x1b6217[_0x22da5d(0x29d)](_0x2c743e,_0x40da05);if(_0x3fb50e[_0x22da5d(0x2c4)]===0x0)continue;this[_0x22da5d(0x41a)](_0x37452c,_0x3fb50e,_0x4ff69d,_0x29e21c);}}}}}[_0x3800a1(0x23f)](_0xf28017,_0x13df29,_0x5bbb90,_0x36c904,_0x38a80d){const _0x33a347=_0x3800a1,_0x239625=this[_0x33a347(0x3b6)](_0x13df29),{left:_0x576ada,top:_0x2346ff,height:_0x5f2efc}=_0x239625,_0x81b9ab=this['_getScale'](),_0x8742a9=It/_0x81b9ab,_0x1e511d=new p[(_0x33a347(0x3e6))](re+a[_0x33a347(0x2ff)](k),{'left':_0x576ada+_0x5bbb90-_0x8742a9,'top':_0x2346ff+_0x36c904,'height':_0x5f2efc,'width':dt,'fill':_0xf28017||p[_0x33a347(0x25d)](a[_0x33a347(0x3d8)][_0x33a347(0x234)],0x0),'strokeWidth':_0x8742a9,'stroke':St,'evented':!0x0});this[_0x33a347(0x356)]=_0x1e511d,this[_0x33a347(0x331)][_0x33a347(0x240)](_0x1e511d,E[_0x33a347(0x3d6)]);const _0x12898c=new p[(_0x33a347(0x3e6))](re+a['generateRandomId'](k),{'left':_0x576ada+_0x5bbb90-_0x8742a9,'top':_0x2346ff+_0x36c904-oe/0x2,'height':oe,'width':oe,'fill':_0xf28017||p[_0x33a347(0x25d)](a[_0x33a347(0x3d8)][_0x33a347(0x234)],0x0),'strokeWidth':0x0,'stroke':_0xf28017||p[_0x33a347(0x25d)](a[_0x33a347(0x3d8)][_0x33a347(0x234)],0x0),'evented':!0x1});this['_anchorDot']=_0x12898c,this[_0x33a347(0x331)][_0x33a347(0x240)](_0x12898c,E[_0x33a347(0x3d6)]);const _0x4c043c=new ee(re+a[_0x33a347(0x2ff)](k),{'left':_0x576ada+_0x5bbb90-_0x8742a9,'top':_0x2346ff+_0x36c904-K,'text':_0x38a80d,'color':_0xf28017});this[_0x33a347(0x45c)]=_0x4c043c,this['_scene'][_0x33a347(0x240)](_0x4c043c,E['TEXT_RANGE_LAYER_INDEX']),this[_0x33a347(0x2dd)]=!0x1;}[_0x3800a1(0x418)](){const _0xc95e89=_0x3800a1,_0x580abf=this['_anchor'][_0xc95e89(0x361)][_0xc95e89(0x346)](()=>{this['_hover']=!0x0;}),_0x2704cb=this['_anchor'][_0xc95e89(0x40f)][_0xc95e89(0x346)](()=>{const _0x476561=_0xc95e89;this['_hideTimer']&&clearTimeout(this[_0x476561(0x325)]),this[_0x476561(0x325)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x43a436=_0xc95e89;_0x580abf[_0x43a436(0x304)](),_0x2704cb['unsubscribe']();};}[_0x3800a1(0x41a)](_0x3c5171,_0x53a257,_0x3db67b,_0x593e13){const _0x33134f=_0x3800a1,_0x553969=new a['ColorKit'](_0x3c5171)[_0x33134f(0x399)](0.2)[_0x33134f(0x208)](),_0x50b6e5=new p[(_0x33134f(0x2e1))](ht+a[_0x33134f(0x2ff)](k),{'pointsGroup':_0x53a257,'fill':_0x553969||p['getColor'](a[_0x33134f(0x3d8)][_0x33134f(0x234)],0.2),'left':_0x3db67b,'top':_0x593e13,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x33134f(0x377)](_0x50b6e5),this[_0x33134f(0x331)][_0x33134f(0x240)](_0x50b6e5,E[_0x33134f(0x3d6)]);}[_0x3800a1(0x2a8)](_0x16b721,_0x3773b2,_0x51350d,_0x1417e5){const _0x3d800f=_0x3800a1,_0x3f26a1=new a[(_0x3d800f(0x222))](_0x16b721)[_0x3d800f(0x399)](0.2)[_0x3d800f(0x208)](),_0x3e4031=new p['RegularPolygon'](ut+a[_0x3d800f(0x2ff)](k),{'pointsGroup':_0x3773b2,'fill':_0x3f26a1||p[_0x3d800f(0x25d)](a[_0x3d800f(0x3d8)][_0x3d800f(0x234)],0.2),'left':_0x51350d,'top':_0x1417e5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3d800f(0x1f5)][_0x3d800f(0x377)](_0x3e4031),this['_scene'][_0x3d800f(0x240)](_0x3e4031,E[_0x3d800f(0x3d6)]);}['_getAnchorBounding'](_0x27aac8){const _0x2eafea=_0x27aac8[0x0],_0x8f011b=_0x2eafea[0x0],_0x1922db=_0x2eafea[0x2],{x:_0x429d27,y:_0x164083}=_0x8f011b,{x:_0x3bda4e,y:_0xa41ddb}=_0x1922db;return{'left':_0x429d27,'top':_0x164083,'width':_0x3bda4e-_0x429d27,'height':_0xa41ddb-_0x164083};}[_0x3800a1(0x32c)](){const _0x2bee26=_0x3800a1,{scaleX:_0x47ffc3,scaleY:_0x2c88ab}=this['_scene'][_0x2bee26(0x2fa)]();return Math[_0x2bee26(0x3b3)](_0x47ffc3,_0x2c88ab);}}var ft=Object[_0x3800a1(0x3a4)],vt=(_0x2c5390,_0x296395,_0x403d3f,_0x2b0d1e)=>{for(var _0x4ff570=_0x2b0d1e>0x1?void 0x0:_0x2b0d1e?ft(_0x296395,_0x403d3f):_0x296395,_0x2c055e=_0x2c5390['length']-0x1,_0x5aa6d5;_0x2c055e>=0x0;_0x2c055e--)(_0x5aa6d5=_0x2c5390[_0x2c055e])&&(_0x4ff570=_0x5aa6d5(_0x4ff570)||_0x4ff570);return _0x4ff570;},W=(_0x34d123,_0x2ac4ad)=>(_0x53c304,_0x30edc5)=>_0x2ac4ad(_0x53c304,_0x30edc5,_0x34d123);let fe=class extends a[_0x3800a1(0x445)]{constructor(_0xda8468,_0x552015,_0x3865fb,_0x26cefa,_0x128aff){const _0x161f90=_0x3800a1;super(),h(this,_0x161f90(0x2de),[]),h(this,_0x161f90(0x3ab),[]),(this['_context']=_0xda8468,this[_0x161f90(0x31a)]=_0x552015,this[_0x161f90(0x308)]=_0x3865fb,this[_0x161f90(0x203)]=_0x26cefa,this[_0x161f90(0x34b)]=_0x128aff,this[_0x161f90(0x3f0)]());}[_0x3800a1(0x3f0)](){const _0x23574a=_0x3800a1,_0x4a652c=this[_0x23574a(0x416)][_0x23574a(0x42f)],_0x33d726=this['_docSkeletonManagerService'];this['disposeWithMe'](d[_0x23574a(0x363)]([this[_0x23574a(0x308)]['getCollabCursors$'](_0x4a652c),this[_0x23574a(0x34b)][_0x23574a(0x3c7)]])['pipe']($[_0x23574a(0x3b9)](([_0x456dda,_0x266b0c])=>({'skeleton':_0x33d726[_0x23574a(0x1f9)](),'cursors':[..._0x456dda[_0x23574a(0x315)]()][_0x23574a(0x45a)](_0x526ba2=>({..._0x526ba2,'color':this[_0x23574a(0x34b)]['getColorFromTheme'](_0x526ba2['color'])}))})))[_0x23574a(0x227)](_0x49b21c=>{const _0x44d015=_0x23574a;if(this[_0x44d015(0x40a)](),_0x49b21c){const {skeleton:_0x34b269,cursors:_0x1e2ed1}=_0x49b21c;this[_0x44d015(0x2b4)](_0x34b269,_0x1e2ed1);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x3800a1(0x2b4)](_0x3abedb,_0x22c5bb){const _0x4f4bfc=_0x3800a1,{scene:_0x354db5,mainComponent:_0x298fc2}=this[_0x4f4bfc(0x416)],_0xc2f9eb=_0x22c5bb[_0x4f4bfc(0x3b9)](_0x39745f=>new De(_0x39745f,_0x354db5,_0x3abedb,_0x298fc2));this[_0x4f4bfc(0x2de)]=_0xc2f9eb,this[_0x4f4bfc(0x3ab)]=_0x22c5bb;}[_0x3800a1(0x3ae)](){const _0x168e64=_0x3800a1;this[_0x168e64(0x40a)]();const {scene:_0x50a713,mainComponent:_0x128f9d}=this[_0x168e64(0x416)],_0x5f1bc7=this[_0x168e64(0x31a)]['getSkeleton'](),_0x5ab3f2=this['_cursors'][_0x168e64(0x3b9)](_0x1ebc37=>new De(_0x1ebc37,_0x50a713,_0x5f1bc7,_0x128f9d));this[_0x168e64(0x2de)]=_0x5ab3f2;}['_removeCollabCursors'](){const _0x96505d=_0x3800a1;this[_0x96505d(0x2de)]['forEach'](_0x1835f9=>_0x1835f9[_0x96505d(0x37f)]()),this[_0x96505d(0x2de)]=[];}[_0x3800a1(0x2a3)](){const _0x1c5a91=_0x3800a1,_0x1c275c=[E[_0x1c5a91(0x41d)]['id']];this[_0x1c5a91(0x372)](this[_0x1c5a91(0x203)]['onCommandExecuted'](_0x24600e=>{const _0x4ee57a=_0x1c5a91;_0x1c275c['includes'](_0x24600e['id'])&&_0x24600e[_0x4ee57a(0x3a7)][_0x4ee57a(0x42f)]===this[_0x4ee57a(0x416)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x3800a1(0x225)](){const _0x1bc793=_0x3800a1;this[_0x1bc793(0x372)](a[_0x1bc793(0x3c1)](this[_0x1bc793(0x416)][_0x1bc793(0x37e)][_0x1bc793(0x41f)])[_0x1bc793(0x355)]($['filter'](_0x2d091c=>_0x2d091c['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1bc793(0x369)]),$['throttleTime'](0x10))[_0x1bc793(0x227)](()=>{const _0x51949d=_0x1bc793;this[_0x51949d(0x3ae)]();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x3800a1(0x3a6)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x3800a1(0x3fa)]),W(0x4,a['Inject'](a['ThemeService']))],fe);const gt=0x1,mt=1.5;class we extends p[_0x3800a1(0x3fc)]{constructor(_0x4339f8,_0x3da7a6){const _0x440613=_0x3800a1;super(_0x4339f8,_0x3da7a6),h(this,'_color'),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x440613(0x265),''),h(this,_0x440613(0x3c8),_0x440613(0x309)),h(this,'_backgroundColor'),(_0x3da7a6&&this[_0x440613(0x2f8)](_0x3da7a6),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x440613(0x2f8)]({'hovered':!0x0})),this['onPointerLeave$'][_0x440613(0x346)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3800a1(0x2f8)](_0x1eb21b){const _0x477f6f=_0x3800a1;var _0x3a3926,_0x58311d,_0x2eee4e,_0x4e98cd,_0xb5da40,_0x3dde3c;this['_color']=(_0x3a3926=_0x1eb21b[_0x477f6f(0x26b)])!=null?_0x3a3926:this['_color'],this[_0x477f6f(0x205)]=(_0x58311d=_0x1eb21b['hovered'])!=null?_0x58311d:this['_hovered'],this[_0x477f6f(0x40b)]=(_0x2eee4e=_0x1eb21b['range'])!=null?_0x2eee4e:this['_range'],this[_0x477f6f(0x265)]=(_0x4e98cd=_0x1eb21b[_0x477f6f(0x36e)])!=null?_0x4e98cd:this[_0x477f6f(0x265)],this[_0x477f6f(0x3c8)]=(_0xb5da40=_0x1eb21b['labelPosition'])!=null?_0xb5da40:this[_0x477f6f(0x3c8)],this['_backgroundColor']=(_0x3dde3c=_0x1eb21b[_0x477f6f(0x446)])!=null?_0x3dde3c:this[_0x477f6f(0x2bc)],this[_0x477f6f(0x334)]({'width':_0x1eb21b[_0x477f6f(0x3cb)],'height':_0x1eb21b['height']});}[_0x3800a1(0x33b)](_0x15e4ce){const _0x1f8ad6=_0x3800a1,{row:_0x5e6043,column:_0x13eb8d}=_0x15e4ce;if(_0x5e6043>=this[_0x1f8ad6(0x40b)]['startRow']&&_0x5e6043<=this['_range'][_0x1f8ad6(0x2ce)]&&_0x13eb8d>=this[_0x1f8ad6(0x40b)]['startColumn']&&_0x13eb8d<=this['_range'][_0x1f8ad6(0x2ee)]){this[_0x1f8ad6(0x2f8)]({'hovered':!0x0});return;}this[_0x1f8ad6(0x2f8)]({'hovered':!0x1});}[_0x3800a1(0x339)](_0x4b934e){return!0x1;}['_draw'](_0x408d21){const _0x3cdbbf=_0x3800a1;p['Rect'][_0x3cdbbf(0x3d0)](_0x408d21,{'width':this['width'],'height':this[_0x3cdbbf(0x433)],'strokeWidth':mt,'stroke':this[_0x3cdbbf(0x27d)],'evented':!0x1,'fill':this[_0x3cdbbf(0x2bc)]}),this[_0x3cdbbf(0x205)]&&(_0x408d21['save'](),_0x408d21['transform'](0x1,0x0,0x0,0x1,this[_0x3cdbbf(0x3cb)],this[_0x3cdbbf(0x3c8)]==='bottom'?0x0:-0x14),ee[_0x3cdbbf(0x3d0)](_0x408d21,{'text':this[_0x3cdbbf(0x265)],'color':this[_0x3cdbbf(0x27d)]}),_0x408d21['restore']());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x4f396d,_0x2c9d5d,_0x2e07e9,_0x3db254)=>{for(var _0x3b51ec=_0x3db254>0x1?void 0x0:_0x3db254?Ct(_0x2c9d5d,_0x2e07e9):_0x2c9d5d,_0x25c9d9=_0x4f396d['length']-0x1,_0xd36750;_0x25c9d9>=0x0;_0x25c9d9--)(_0xd36750=_0x4f396d[_0x25c9d9])&&(_0x3b51ec=_0xd36750(_0x3b51ec)||_0x3b51ec);return _0x3b51ec;},ae=(_0x3ea055,_0x4fc528)=>(_0x842569,_0x2c942f)=>_0x4fc528(_0x842569,_0x2c942f,_0x3ea055);function _0x31e5(){const _0x77c51a=['session.collaboration-timeout','getCurrentUnitForType','collabStatus.syncing','_univerInstanceService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','createIdentifier','LICENSE_IMPORT_SIZE_EXCEEDED','white','ENSURE_SNAPSHOT_EXECUTION','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','roomMembers','WebURLService','sessionStatus$','_initDependencies','setAlpha','collab-text-range-','isTransformMutationFailure','UniverCollaborationClientUIPlugin','prototype','RefRangeService','M0\x200H16V16H0z','Vector2','whenReady','_saveCache','cursorInfo$','getOwnPropertyDescriptor','complete','DocSkeletonManagerService','params','UniverIcon','collaboration-client-ui.config','getMemberID','_cursors','[CollaborationDataLoaderController]','stringify','_refreshCollabCursors','setInterval','PERMISSION_DENIED','CollaborationDataLoaderController','Workbook','max','TEXT','docStateChange$','_getAnchorBounding','NodePositionConvertToRectRange','RevisionService','map','getUndoRedoMutationParamsCache','/run/','executeCommand','_docClipboardService','_revisionService','get','CONFLICT','fromEventSubject','icon','2191720NFtToF','fromEvent','BuiltInUIPart','pluginName','currentTheme$','_labelPosition','code','uni.network.url-service','width','InsertRowCommandId','some','fillText','disposeUnit','drawWith','transformRemoteChangeset','body','DeleteRangeMoveLeftCommandId','_ensureSubject','getConfig','TEXT_RANGE_LAYER_INDEX','SheetCollabCursorShape','COLORS','transformIMECache','from','_session','YUUMI_ALL_TABLES_IS_INVALID','OTHER_CLIENTS_EDITING','runOnServer','_cursorInfo$','popstate','ThemeService','isTransformMutationsWithChangesetSuccess','collaboration.closeRoom','textRanges','DataLoaderService','Rect','_toggleOffline','indexOf','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','jiqing.500','_createSocketURL','_urlService','currentSkeleton$','next','error','_init','MessageType','makeDirty','handleInsertRangeMoveDown','executionId','extend','TOO_MANY_REQUESTS','replaceState','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','text','ICommandService','DocSelectionManagerService','Shape','selections','3066644yNaOGX','deepClone','EMAIL_VERIFY_CODE_MISMATCH','OTHER_CLIENT_EDITING','DocIMEInputManagerService','YUUMI_NO_CUBOID_FOR_QUESTION','VIEW_MAIN','doc.mutation.rich-text-editing','data','_memberService','ILocalCacheService','onPointerMove$','_removeCollabCursors','_range','_colorAssignService','application/json','debounce','onPointerLeave$','IConfigService','YUUMI_CONNECTOR_URL_NOT_FOUND','USERS_LEAVE','measureText','NOT_COLLAB','useObservable','_context','DocStateChangeManagerService','_handleHover','propertyIsEnumerable','_drawTextRange','_transformService','_updateLocalCursor','SetDocZoomRatioOperation','subUnitId','onTransformChange$','jsx','use','SetTextSelectionsOperation','getCurrentRevOfUnit','_unitOnClients','60xfGHQX','Optional','focused$','createElement','getCollabCursors$','_roomMembers$','function','MOBILE_VERIFY_CODE_MISMATCH','_logService','loadOfflineData','unitId','Plugin','override','event$','height','fill','_beforeCloseService','_doCreateSocket','_localStorageService','IDocClipboardService','isEditing','LICENSE_EXPORT_SIZE_EXCEEDED','_disabled','CollaborationUIEventService','_entityInit$','getSheetBySheetId','getOwnPropertySymbols','_onRefRangeChange','UniverCollaborationClientPlugin','YUUMI_AI_RUN_FAILED','_clearOtherTimers','UNRECOGNIZED','RxDisposable','backgroundColor','SUBMIT_CHANGESET_TIMEOUT','none','colorChannel1','defIds','_cursor','clearInterval','UnitStatus','_anchorDot','blue.400','permission.title','m2Prime','substring','apply','collaboration.single-unit.warning','IImageIoService','unitID','getUniverSheetInstance','YUUMI_UNABLE_LOAD_URL','eventID','flatMap','_sheetSkeletonManagerService','_textBubble','onRendered','closePath','getParam','_getSessionTicket','_injector','syncEditingCollabCursor','_messageService','_collabCursorState$','_startDocCollabCursor','restore','off-line-icon_clip0_910_343','collab-rect-range-','MemberService','_toggleOnline','HEADER_MENU','contains','_initStatusListener','_handleJoinEvent','CommandType','range','InsertColCommandId','Tooltip','type','CollaborationSessionService','_collaborationController','_eventUnsubscribe','handleIRemoveRow','_transformUndoRedoStack','_notificationService','getUnitId','isArray','CollaborationStatusDisplay','_shapes','1em','has','reconnect','getSkeleton','lineTo','LOCAL_CACHE_INTERVAL_KEY','SetWorksheetActivateCommand','displayName','CollaborationEvent','APPLY_REVISION_CONFILICT','addObjects','search','YUUMI_URL_COL_OUT_OF_RANGE','_commandService','SOCKET_FAILED_RETRY','_hovered','rgba(255,\x20255,\x20255,\x200.01)','INotificationService','toRgbString','PENDING','RemoteUniscriptService','978798QRHuGM','includes','assign','FETCH_MISS','getUnitStatus$','parse','INTERNAL_ERROR','WebBrowserSingleActiveUnitService','MUTATION','DesktopCollaborationStatusDisplayController','_draw','mask','_getMergeRange','ISocketService','16181973VUgLYi','DOC_RANGE_TYPE','_heartbeatTimer','LICENSE_DISTRO_REJECTED','getCollabEntity$','set','USER_NOT_INVITED_CODE','UNAUTHENTICATED','defs','ColorKit','LICENSE_MAX_UNITS_EXCEEDED','requireSession','_initResize','UNDEFINED','subscribe','collabStatus.synced','_document','SHEET_VIEWPORT_KEY','unit','InsertRangeMoveRightCommandId','ALREADY_EXISTS','_setupBeforeClosingHandler','Inject','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','transformStateCache','_initEntityListener','SheetsSelectionsService','black','_transformHistoryAndStateStack','setStateCache','handleDeleteRangeMoveUp','_imageIoService','all','add','_lastPointer','href','UPDATE_CURSOR','DisposableCollection','_drawAnchor','addObject','INVITE_CODE_HAS_BEEN_UES','Tools','mergeOverrideWithDependencies','_initStatusComponent','COMPLETION_FINISHED','http://www.w3.org/2000/svg','_id','_selfUnitIDs','key','CONNECTOR_DATA_TOO_LARGE','Subject','pushState','Disposable','roomMembers$','row','unshift','AWAITING_WITH_PENDING','path','transformMutation','LOGIN_FAILED','handleInsertCol','UniverInstanceType','replace','_colorIndex','_collabSessionService','deserializeRangeWithSheet','_scheduleHeartbeat','location','getColor','_docStateChangeManagerService','_handleEvent','jsxs','tag','_collaborationUIEventService','saveOfflineData','hasOwnProperty','_name','registerDependencies','result','SOCKET_FAILED','random','IUniverInstanceService','color','_configService','permission.content','show','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','IUIPartsService','getDocRanges','NOT_FOUND','SheetSkeletonManagerService','_getSaveTimeout','_httpService','_scheduleClearOtherTimer','runId','beginPath','current','SYNCED','with','_docTransformSelectionsService','_color','saveTaskMap','EffectRefRangId','call','memberID','_unitStatus','BrowserCollaborationSocketService','searchParams','APPLY_DUPLICATED','_config','FromArray','exhaustSavingTask','LocaleService','createInstance','subunit','handleMoveRange','IMessageService','Failed','getActiveSheet','shareReplay','getFocusedUnit','save','setUndoRedoMutationParamsCache','find','0\x200\x2017\x2016','_updateURLWithCurrentState','registerRefRange','UNIVER_DOC','getRenderById','disableLocalCache','getOffsetConfig','attrs','getRangePointData','getRelativeToViewportCoord','getSheetObject','updateOfflineData','_scheduleSaving','className','_initCommandExecutedListener','OffLineIcon','asObservable','url(#$1','undoState','_drawRectRange','createSocket','ACTIVE_UNIT_EVENT_CHANNEL','forwardRef','getActiveRange','removeParam','evenodd','filter','handleInsertRow','debounceTime','IRenderManagerService','MOBILE_HAS_BEEN_BOUND','_updateCollabCursors','getTypeOfUnitAdded$','on-line-icon','univerjs-icon\x20univerjs-icon-','getSheetId','wsSessionTicketUrl','UNIVER_SHEET','serializeRangeWithSheet','_backgroundColor','clearTimeout','PY_RUNTIME_SCRIPT_ERROR','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RichTextEditingMutation','collab-client.tooltip.reconnect','touchDependencies','_docSyncEditingCollabCursorService','length','onCommandExecuted','getTypeOfUnitDisposed$','round','div','status$','string','takeUntil','editingUnit','OFFLINE','endRow','entries','8DEarbZ','_saveTaskMap','cursorInfo','arc','setItem','getCoordByCell','concat','red.300','debug','_initEvent','unload','setActiveRange','CollaborationStatus','_hover','_cursorShapes','font','_assignedColors','RegularPolygon','toString','APPLY_NON_SEQUENTIAL_REVISION','Injector','IBeforeCloseService','_refRangeService','univer-mr-2\x20univer-flex\x20univer-text-xl','getViewport','_onCursorUpdate','APPLY_REJECT','registerRenderModule','collabCursorState$','xlink:href','endColumn','_status$','useRef','_transformPreviousActiveRange','475062qDgCVh','selection','EMAIL_HAS_BEEN_BOUND','_dataLoaderService','SNAPSHOT_HAS_BEEN_REMOVED','getVpScrollXYInfoByPosToVp','setShapeProps','runRefRangeMutations','getAncestorScale','HTTPService','NodePositionConvertToCursor','invokeId','_removeClearOtherTimer','generateRandomId','Warning','getItem','split','actions','unsubscribe','imageSourceType','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_renderManagerService','_collabCursorController','top','on-line-icon_clip0_910_349','_getSheetObject','assignAColorForMemberID','source','enableLocalCache','_cachedData','startsWith','fillStyle','send','_online','OnLineIcon','values','forEach','children','getStateCache','MoveRangeCommandId','_docSkeletonManagerService','_uiPartsService','useCallback','InsertRangeMoveDownCommandId','hide','_onCursorDelete','column','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','useDependency','Error','bottom','_hideTimer','getMember','WebSocketService','INVALID_ARGUMENT','getColorFromTheme','registerComponent','_instanceService','_getScale','Unknown\x20user','currentColor','saveImage','YUUMI_RATE_OVER_LIMIT','_scene','connectInjector','then','transformByState','merge','WECHAT_HAS_BEEN_BOUND','SessionStatus','addClipboardHook','triggerDblclick','entityInit$','onMouseMove','symbol','_registerRenderDependencies','min','size','redoState','_updateSubUnitFromURLParams','0\x200\x2016\x2016','_entities','dispose$','INVITE_CODE_ALREADY_BOUND','subscribeEvent','[RemoteUniscriptService]:\x20no\x20focused\x20unit','defineProperty','Module','toStringTag','_themeService','BehaviorSubject','CollaborationUIEventId','distinctUntilChanged','init','sheetID','INVITE_CODE_REQUIRED','_registerDependencies','onLocalMutation','223730xfLCiH','pipe','_anchor','getValue','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','collabStatus.fetchMiss','JOIN_ROOM_FAILED','_startSheetCollabCursor','mapTo','_handleLeaveEvent','ILogService','handleDeleteRangeMoveLeft','mutations','onPointerEnter$','_syncEditingCollabCursorService','combineLatest','ITransformService','clipPath','isActive','APPLY_PERMISSION_DENIED','switchMap','resize','_localeService','_send','_docTransformIMECacheService','transformMutationsWithChangeset','name','idSuffix','INVALID_INVITE_CODE','collab-text-anchor-','disposeWithMe','m1Prime','newValue','handleIRemoveCol','sessionTicket','push','getCurrent','urlChange$','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','delete','_handleHeartbeatEvent','DependentOn','engine','dispose','history','1239370QOnIIS','YUUMI_SUBSCRIPTION_NOT_FOUND','sheetId','toDisposable','activeSheet$','...','ranges','getLocalCacheKey','findNodePositionByCharIndex'];_0x31e5=function(){return _0x77c51a;};return _0x31e5();}const Et=0x1389;let ve=class extends a[_0x3800a1(0x445)]{constructor(_0x25fd3e,_0x32da4a,_0x3bf27a,_0x43675d){const _0x15d28f=_0x3800a1;super(),h(this,_0x15d28f(0x3ab),new Set()),h(this,_0x15d28f(0x23b),null),(this[_0x15d28f(0x416)]=_0x25fd3e,this['_sheetSkeletonManagerService']=_0x32da4a,this[_0x15d28f(0x308)]=_0x3bf27a,this['_themeService']=_0x43675d,this[_0x15d28f(0x3f0)]());}[_0x3800a1(0x3f0)](){const _0x5ba917=_0x3800a1;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x5ba917(0x355)]($[_0x5ba917(0x2cb)](this[_0x5ba917(0x344)]),$[_0x5ba917(0x368)](_0x21ee30=>{const _0x1e9d86=_0x5ba917;if(_0x21ee30){const _0x519b0b=_0x21ee30[_0x1e9d86(0x383)];return d[_0x1e9d86(0x363)](this[_0x1e9d86(0x308)][_0x1e9d86(0x429)](this[_0x1e9d86(0x416)][_0x1e9d86(0x42f)]),this[_0x1e9d86(0x34b)]['currentTheme$'])[_0x1e9d86(0x355)]($[_0x1e9d86(0x3b9)](([_0x261197,_0x4f805d])=>{const _0x4fc449=_0x1e9d86,_0x3e1f0b=new Map();return _0x261197[_0x4fc449(0x316)]((_0x331506,_0xec893)=>{const _0x148de8=_0x4fc449;if(_0x331506[_0x148de8(0x350)]===_0x519b0b){const _0x16d6f8={..._0x331506};_0x16d6f8[_0x148de8(0x26b)]=this[_0x148de8(0x34b)][_0x148de8(0x329)](_0x331506[_0x148de8(0x26b)]),_0x3e1f0b['set'](_0xec893,_0x16d6f8);}}),{'skeleton':_0x21ee30,'cursors':_0x3e1f0b};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5ba917(0x227)](({skeleton:_0xcd302c,cursors:_0x4435c0})=>{const _0x559efe=_0x5ba917;this['_removeCollabCursors'](),_0xcd302c&&this[_0x559efe(0x2b4)](_0xcd302c,_0x4435c0);}),this[_0x5ba917(0x45b)][_0x5ba917(0x3ed)][_0x5ba917(0x227)](_0x432946=>{const _0x5e9880=_0x5ba917;if(_0x432946==null)return;const {skeleton:_0x354431}=_0x432946,{scene:_0x43e007}=this[_0x5e9880(0x416)];_0x43e007[_0x5e9880(0x409)][_0x5e9880(0x346)](a[_0x5e9880(0x40e)](_0x538c2e=>{const _0x50dc87=_0x5e9880;var _0x209fe8,_0x19d9c0;const {offsetX:_0x586bfe,offsetY:_0x1cbc4a}=_0x538c2e,{x:_0xbcbeb5,y:_0x5a29f7}=_0x43e007[_0x50dc87(0x29e)](p[_0x50dc87(0x3a0)]['FromArray']([_0x586bfe,_0x1cbc4a])),{scaleX:_0x4b7e60,scaleY:_0x4bd906}=_0x43e007[_0x50dc87(0x2fa)](),_0x13d819=_0x43e007[_0x50dc87(0x2e8)](p[_0x50dc87(0x22a)][_0x50dc87(0x404)]),_0x2f34e2=_0x43e007[_0x50dc87(0x2f7)](p['Vector2'][_0x50dc87(0x287)]([_0xbcbeb5,_0x5a29f7]),_0x13d819),_0x2b5d3a=_0x354431['getCellPositionByOffset'](_0x586bfe,_0x1cbc4a,_0x4b7e60,_0x4bd906,_0x2f34e2);((_0x209fe8=this[_0x50dc87(0x23b)])==null?void 0x0:_0x209fe8['column'])===_0x2b5d3a[_0x50dc87(0x320)]&&((_0x19d9c0=this['_lastPointer'])==null?void 0x0:_0x19d9c0[_0x50dc87(0x24f)])===_0x2b5d3a[_0x50dc87(0x24f)]||this['_cursors'][_0x50dc87(0x316)](_0x218043=>{const _0x1b1f49=_0x50dc87;_0x218043[_0x1b1f49(0x33b)](_0x2b5d3a);});},0x64));});}[_0x3800a1(0x2b4)](_0x1fe312,_0x333a53){const _0x404b99=_0x3800a1;var _0x312ab3;const _0x30af00=(_0x312ab3=this[_0x404b99(0x45b)][_0x404b99(0x378)]())==null?void 0x0:_0x312ab3['skeleton'];if(!_0x30af00)return;const _0x47e352=this[_0x404b99(0x30b)]();if(!_0x47e352)return;this[_0x404b99(0x3ab)][_0x404b99(0x316)](_0x259356=>{const _0x5a1ea1=_0x404b99;_0x259356[_0x5a1ea1(0x3f2)]();});const {scene:_0x283ca3}=_0x47e352,_0x3ebc4e=bt(Array[_0x404b99(0x3da)](_0x333a53['values']()))[_0x404b99(0x3b9)](_0xb37f7d=>{const _0x297cd4=_0x404b99,{color:_0x6566e4,range:_0x43e9f9,name:_0x5568e5,selection:_0x5039ba,sheetID:_0x757823}=_0xb37f7d,{startColumn:_0x286bbb,startRow:_0x186f86,endColumn:_0x32fb89,endRow:_0x383179}=_0x43e9f9,_0x4d2a9c=X[_0x297cd4(0x2d5)](_0x186f86,_0x286bbb,_0x283ca3,_0x30af00),_0xc7d7d5=X['getCoordByCell'](_0x383179,_0x32fb89,_0x283ca3,_0x30af00),{columnHeaderHeightAndMarginTop:_0x1d0ca5}=_0x30af00,{startX:_0x88d3d9,startY:_0x2c9289}=_0x4d2a9c,{endX:_0x596067,endY:_0x5b27af}=_0xc7d7d5,_0x590a33=_0x596067-_0x88d3d9,_0x29e999=_0x5b27af-_0x2c9289,_0x12a693={'labelPosition':_0x2c9289-_0x1d0ca5>=K?_0x297cd4(0x309):_0x297cd4(0x324),'sheetID':_0x757823,'range':_0x43e9f9,'color':_0x6566e4,'name':_0x5568e5,'selection':_0x5039ba,'left':_0x88d3d9,'top':_0x2c9289,'width':_0x590a33,'height':_0x29e999,'evented':!0x1,'zIndex':Et};return new we(_0x5568e5,_0x12a693);});_0x283ca3[_0x404b99(0x200)](_0x3ebc4e,gt),this[_0x404b99(0x3ab)]=new Set(_0x3ebc4e);}[_0x3800a1(0x40a)](){const _0x48d3b2=_0x3800a1;var _0x4a819c;(_0x4a819c=this[_0x48d3b2(0x3ab)])==null||_0x4a819c[_0x48d3b2(0x316)](_0x5500c3=>_0x5500c3['dispose']());}[_0x3800a1(0x30b)](){const _0x40d767=_0x3800a1;return X[_0x40d767(0x29f)](this[_0x40d767(0x416)][_0x40d767(0x22b)],this[_0x40d767(0x416)]);}};ve=pt([ae(0x1,a['Inject'](X[_0x3800a1(0x273)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x3800a1(0x22f)](a[_0x3800a1(0x3e1)]))],ve);function bt(_0x1d3b96){const _0x156af6=_0x3800a1,_0x465609=new Map();return _0x1d3b96[_0x156af6(0x316)](_0x2cb2a7=>{const _0x1f5a0e=_0x156af6;if(_0x465609[_0x1f5a0e(0x1f7)](_0x2cb2a7['selection'])){const _0x2143eb=_0x465609['get'](_0x2cb2a7[_0x1f5a0e(0x2f3)]);_0x2143eb[_0x1f5a0e(0x36e)]+=',\x20'+_0x2cb2a7[_0x1f5a0e(0x36e)];}else _0x465609[_0x1f5a0e(0x21e)](_0x2cb2a7[_0x1f5a0e(0x2f3)],_0x2cb2a7);}),Array[_0x156af6(0x3da)](_0x465609[_0x156af6(0x315)]());}var b=function(){const _0x35b6f8=_0x3800a1;return b=Object[_0x35b6f8(0x20d)]||function(_0x150081){const _0x2119fc=_0x35b6f8;for(var _0x37602c,_0x22546e=0x1,_0x51f7ea=arguments['length'];_0x22546e<_0x51f7ea;_0x22546e++){_0x37602c=arguments[_0x22546e];for(var _0x5df72d in _0x37602c)Object[_0x2119fc(0x39d)][_0x2119fc(0x264)][_0x2119fc(0x280)](_0x37602c,_0x5df72d)&&(_0x150081[_0x5df72d]=_0x37602c[_0x5df72d]);}return _0x150081;},b[_0x35b6f8(0x453)](this,arguments);},Ot=function(_0x15788a,_0x2abff2){const _0x4b9f77=_0x3800a1;var _0x4ed955={};for(var _0x3b838b in _0x15788a)Object[_0x4b9f77(0x39d)][_0x4b9f77(0x264)][_0x4b9f77(0x280)](_0x15788a,_0x3b838b)&&_0x2abff2[_0x4b9f77(0x3e8)](_0x3b838b)<0x0&&(_0x4ed955[_0x3b838b]=_0x15788a[_0x3b838b]);if(_0x15788a!=null&&typeof Object['getOwnPropertySymbols']==_0x4b9f77(0x42b)){for(var _0x49e239=0x0,_0x3b838b=Object[_0x4b9f77(0x43f)](_0x15788a);_0x49e239<_0x3b838b[_0x4b9f77(0x2c4)];_0x49e239++)_0x2abff2['indexOf'](_0x3b838b[_0x49e239])<0x0&&Object[_0x4b9f77(0x39d)][_0x4b9f77(0x419)][_0x4b9f77(0x280)](_0x15788a,_0x3b838b[_0x49e239])&&(_0x4ed955[_0x3b838b[_0x49e239]]=_0x15788a[_0x3b838b[_0x49e239]]);}return _0x4ed955;},pe=M[_0x3800a1(0x2ab)](function(_0x237687,_0x4f5948){const _0x578129=_0x3800a1;var _0x314a6e=_0x237687[_0x578129(0x3c2)],_0x1c505d=_0x237687['id'],_0x409c54=_0x237687[_0x578129(0x2a2)],_0x2e1d59=_0x237687[_0x578129(0x3f5)],_0x5de327=Ot(_0x237687,[_0x578129(0x3c2),'id',_0x578129(0x2a2),_0x578129(0x3f5)]),_0xa88fb2=_0x578129(0x2b7)[_0x578129(0x2d6)](_0x1c505d,'\x20')[_0x578129(0x2d6)](_0x409c54||'')['trim'](),_0x38d2b6=M[_0x578129(0x2f0)]('_'['concat'](Dt()));return Ae(_0x314a6e,''[_0x578129(0x2d6)](_0x1c505d),{'defIds':_0x314a6e[_0x578129(0x44a)],'idSuffix':_0x38d2b6[_0x578129(0x279)]},b({'ref':_0x4f5948,'className':_0xa88fb2},_0x5de327),_0x2e1d59);});function Ae(_0x556f91,_0x51a633,_0x49bfd0,_0x198ff3,_0x55906e){const _0x499b32=_0x3800a1;return M['createElement'](_0x556f91[_0x499b32(0x261)],b(b({'key':_0x51a633},Tt(_0x556f91,_0x49bfd0,_0x55906e)),_0x198ff3),(Rt(_0x556f91,_0x49bfd0)[_0x499b32(0x317)]||[])[_0x499b32(0x3b9)](function(_0x311af1,_0x3d31e4){const _0x55536d=_0x499b32;return Ae(_0x311af1,''[_0x55536d(0x2d6)](_0x51a633,'-')['concat'](_0x556f91[_0x55536d(0x261)],'-')[_0x55536d(0x2d6)](_0x3d31e4),_0x49bfd0,void 0x0,_0x55906e);}));}function Tt(_0x21b114,_0x4059c7,_0x4b3eba){const _0x12314c=_0x3800a1;var _0x365f8a=b({},_0x21b114[_0x12314c(0x29c)]);_0x4b3eba!=null&&_0x4b3eba['colorChannel1']&&_0x365f8a[_0x12314c(0x434)]===_0x12314c(0x449)&&(_0x365f8a[_0x12314c(0x434)]=_0x4b3eba[_0x12314c(0x449)]),_0x21b114[_0x12314c(0x261)]==='mask'&&_0x365f8a['id']&&(_0x365f8a['id']=_0x365f8a['id']+_0x4059c7[_0x12314c(0x36f)]),Object[_0x12314c(0x2cf)](_0x365f8a)[_0x12314c(0x316)](function(_0x95542a){const _0x53413d=_0x12314c;var _0x4ea0a9=_0x95542a[0x0],_0x196f24=_0x95542a[0x1];_0x4ea0a9===_0x53413d(0x216)&&typeof _0x196f24==_0x53413d(0x2ca)&&(_0x365f8a[_0x4ea0a9]=_0x196f24[_0x53413d(0x257)](/url\(#(.*)\)/,_0x53413d(0x2a6)['concat'](_0x4059c7[_0x53413d(0x36f)],')')));});var _0x41b4aa=_0x4059c7['defIds'];return!_0x41b4aa||_0x41b4aa['length']===0x0||(_0x21b114[_0x12314c(0x261)]===_0x12314c(0x421)&&_0x365f8a['xlink:href']&&(_0x365f8a[_0x12314c(0x2ed)]=_0x365f8a[_0x12314c(0x2ed)]+_0x4059c7[_0x12314c(0x36f)]),Object[_0x12314c(0x2cf)](_0x365f8a)[_0x12314c(0x316)](function(_0x48c881){const _0x396cb0=_0x12314c;var _0x22af41=_0x48c881[0x0],_0x5c2086=_0x48c881[0x1];typeof _0x5c2086=='string'&&(_0x365f8a[_0x22af41]=_0x5c2086[_0x396cb0(0x257)](/url\(#(.*)\)/,'url(#$1'[_0x396cb0(0x2d6)](_0x4059c7[_0x396cb0(0x36f)],')')));})),_0x365f8a;}function Rt(_0x3dd608,_0x387371){const _0x4690f7=_0x3800a1;var _0x1e10e9,_0x158623=_0x387371['defIds'];return!_0x158623||_0x158623['length']===0x0?_0x3dd608:_0x3dd608['tag']==='defs'&&(!((_0x1e10e9=_0x3dd608['children'])===null||_0x1e10e9===void 0x0)&&_0x1e10e9[_0x4690f7(0x2c4)])?b(b({},_0x3dd608),{'children':_0x3dd608[_0x4690f7(0x317)][_0x4690f7(0x3b9)](function(_0x110a3b){const _0x4eca02=_0x4690f7;return typeof _0x110a3b[_0x4eca02(0x29c)]['id']==_0x4eca02(0x2ca)&&_0x158623&&_0x158623[_0x4eca02(0x20c)](_0x110a3b[_0x4eca02(0x29c)]['id'])?b(b({},_0x110a3b),{'attrs':b(b({},_0x110a3b['attrs']),{'id':_0x110a3b['attrs']['id']+_0x387371[_0x4eca02(0x36f)]})}):_0x110a3b;})}):_0x3dd608;}function Dt(){const _0x1e6e5f=_0x3800a1;return Math[_0x1e6e5f(0x269)]()[_0x1e6e5f(0x2e2)](0x24)[_0x1e6e5f(0x452)](0x2,0x8);}pe[_0x3800a1(0x1fd)]=_0x3800a1(0x3a8);var Ut={'tag':'svg','attrs':{'xmlns':_0x3800a1(0x246),'fill':_0x3800a1(0x448),'viewBox':_0x3800a1(0x342),'width':_0x3800a1(0x1f6),'height':_0x3800a1(0x1f6)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3800a1(0x252),'attrs':{'stroke':_0x3800a1(0x32e),'d':_0x3800a1(0x37a),'strokeLinecap':_0x3800a1(0x2c7),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3800a1(0x1df)},'children':[{'tag':_0x3800a1(0x252),'attrs':{'fill':_0x3800a1(0x391),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3800a1(0x1df)]},ye=M[_0x3800a1(0x2ab)](function(_0x3db24,_0x1428dd){const _0x1bef79=_0x3800a1;return M['createElement'](pe,Object[_0x1bef79(0x20d)]({},_0x3db24,{'id':'off-line-icon','ref':_0x1428dd,'icon':Ut}));});ye['displayName']=_0x3800a1(0x2a4);var Nt={'tag':'svg','attrs':{'xmlns':_0x3800a1(0x246),'fill':_0x3800a1(0x448),'viewBox':_0x3800a1(0x295),'width':_0x3800a1(0x1f6),'height':_0x3800a1(0x1f6)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x3800a1(0x252),'attrs':{'stroke':_0x3800a1(0x32e),'d':_0x3800a1(0x26f),'strokeLinecap':_0x3800a1(0x2c7),'strokeLinejoin':_0x3800a1(0x2c7),'strokeWidth':1.2}}]},{'tag':_0x3800a1(0x221),'attrs':{},'children':[{'tag':_0x3800a1(0x365),'attrs':{'id':_0x3800a1(0x30a)},'children':[{'tag':_0x3800a1(0x252),'attrs':{'fill':_0x3800a1(0x391),'d':_0x3800a1(0x39f),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3800a1(0x30a)]},$e=M[_0x3800a1(0x2ab)](function(_0x196710,_0xdc2a67){const _0x1dcaf5=_0x3800a1;return M[_0x1dcaf5(0x428)](pe,Object[_0x1dcaf5(0x20d)]({},_0x196710,{'id':_0x1dcaf5(0x2b6),'ref':_0xdc2a67,'icon':Nt}));});$e[_0x3800a1(0x1fd)]=_0x3800a1(0x314);function Mt(_0x34446c){const _0x2064d4=_0x3800a1;switch(_0x34446c){case u['CollaborationStatus'][_0x2064d4(0x2cd)]:return'collabStatus.offline';case u[_0x2064d4(0x2dc)]['CONFLICT']:return'collabStatus.conflict';case u['CollaborationStatus'][_0x2064d4(0x20e)]:return _0x2064d4(0x359);case u['CollaborationStatus']['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x2064d4(0x2dc)]['AWAITING']:case u[_0x2064d4(0x2dc)][_0x2064d4(0x251)]:return _0x2064d4(0x38c);case u[_0x2064d4(0x2dc)][_0x2064d4(0x27a)]:case u[_0x2064d4(0x2dc)][_0x2064d4(0x209)]:return _0x2064d4(0x228);}}function xe(_0x174aec){const _0x11e5ee=_0x3800a1,{status$:_0x11c37e}=_0x174aec,_0x2aba21=O[_0x11e5ee(0x415)](_0x11c37e,u[_0x11e5ee(0x2dc)][_0x11e5ee(0x414)]),_0xeae72=O[_0x11e5ee(0x322)](a[_0x11e5ee(0x289)]),_0x39db43=O['useDependency'](u[_0x11e5ee(0x1ec)]),_0x45be22=_0x2aba21!==u['CollaborationStatus']['OFFLINE'],_0x20617d=_0xeae72['t'](Mt(_0x2aba21)),_0x404efb=_0x45be22?P[_0x11e5ee(0x420)]($e,{}):P[_0x11e5ee(0x420)](ye,{}),_0x644120=M[_0x11e5ee(0x31c)](()=>{const _0x11f53e=_0x11e5ee;_0x45be22||_0x39db43[_0x11f53e(0x1f8)]();},[_0x45be22,_0x39db43]);function _0x58b392(){const _0x33869c=_0x11e5ee;return P[_0x33869c(0x260)](_0x33869c(0x2c8),{'className':'univer-flex\x20univer-items-center','onClick':_0x644120,'children':[P[_0x33869c(0x420)](_0x33869c(0x2c8),{'className':D['clsx'](_0x33869c(0x2e7),{'univer-text-green-500':_0x45be22,'univer-text-red-500':!_0x45be22}),'children':_0x404efb}),P[_0x33869c(0x420)]('div',{'className':_0x33869c(0x321),'children':_0x20617d})]});}return _0x45be22?_0x58b392():P['jsx'](D[_0x11e5ee(0x1ea)],{'title':_0xeae72['t'](_0x11e5ee(0x2c1)),'children':_0x58b392()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x349358,_0x3feae7,_0x54526c,_0x5a1e4b)=>{const _0x382a7d=_0x3800a1;for(var _0x5f07b1=_0x5a1e4b>0x1?void 0x0:_0x5a1e4b?Lt(_0x3feae7,_0x54526c):_0x3feae7,_0x22b438=_0x349358[_0x382a7d(0x2c4)]-0x1,_0x5c1290;_0x22b438>=0x0;_0x22b438--)(_0x5c1290=_0x349358[_0x22b438])&&(_0x5f07b1=_0x5c1290(_0x5f07b1)||_0x5f07b1);return _0x5f07b1;},V=(_0x18e79a,_0x27deb0)=>(_0xd7b6e6,_0x579369)=>_0x27deb0(_0xd7b6e6,_0x579369,_0x18e79a);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3800a1(0x24d)]{constructor(_0x120703,_0x38e645,_0x1e43e8,_0x3bd2eb){const _0x1756c1=_0x3800a1;super(),h(this,_0x1756c1(0x2ef),new d[(_0x1756c1(0x34c))](u[_0x1756c1(0x2dc)][_0x1756c1(0x414)])),(this[_0x1756c1(0x38d)]=_0x120703,this['_injector']=_0x38e645,this[_0x1756c1(0x1ed)]=_0x1e43e8,this[_0x1756c1(0x31b)]=_0x3bd2eb,this['_initStatusComponent'](),this[_0x1756c1(0x1e5)]());}[_0x3800a1(0x1e5)](){const _0x3d80de=_0x3800a1;this[_0x3d80de(0x372)](this['_univerInstanceService'][_0x3d80de(0x427)][_0x3d80de(0x355)](d[_0x3d80de(0x368)](()=>{const _0x5ddb65=_0x3d80de,_0x297c9b=this[_0x5ddb65(0x38d)]['getFocusedUnit']();return _0x297c9b?this['_collaborationController'][_0x5ddb65(0x21d)](_0x297c9b['getUnitId']()):d['of'](null);}),d[_0x3d80de(0x368)](_0x1c4971=>_0x1c4971?_0x1c4971[_0x3d80de(0x2c9)]:d['of'](u['CollaborationStatus'][_0x3d80de(0x414)])))[_0x3d80de(0x227)](_0x5a4f05=>{const _0x56c5c4=_0x3d80de;this[_0x56c5c4(0x2ef)][_0x56c5c4(0x3ee)](_0x5a4f05);}));}[_0x3800a1(0x244)](){const _0x1f457f=_0x3800a1;this['disposeWithMe'](this[_0x1f457f(0x31b)][_0x1f457f(0x32a)](O[_0x1f457f(0x3c5)][_0x1f457f(0x1e3)],()=>O[_0x1f457f(0x332)](wt({'status$':this[_0x1f457f(0x2ef)]['asObservable']()}),this['_injector'])));}},exports[_0x3800a1(0x214)]=Pt([V(0x0,a[_0x3800a1(0x26a)]),V(0x1,a[_0x3800a1(0x22f)](a[_0x3800a1(0x2e4)])),V(0x2,a[_0x3800a1(0x22f)](u['CollaborationController'])),V(0x3,O[_0x3800a1(0x270)])],exports[_0x3800a1(0x214)]);function wt(_0x130405){const {status$:_0x275404}=_0x130405;return function(){const _0x139658=_0x4499;return P[_0x139658(0x420)](xe,{'status$':_0x275404});};}var At=Object[_0x3800a1(0x3a4)],yt=(_0x22bd53,_0xd1b98a,_0x3af779,_0x39c653)=>{for(var _0x387c0c=_0x39c653>0x1?void 0x0:_0x39c653?At(_0xd1b98a,_0x3af779):_0xd1b98a,_0x150cc6=_0x22bd53['length']-0x1,_0x392d58;_0x150cc6>=0x0;_0x150cc6--)(_0x392d58=_0x22bd53[_0x150cc6])&&(_0x387c0c=_0x392d58(_0x387c0c)||_0x387c0c);return _0x387c0c;},y=(_0x135752,_0x43afe6)=>(_0x7e63cb,_0x323f0a)=>_0x43afe6(_0x7e63cb,_0x323f0a,_0x135752);let q=class extends a[_0x3800a1(0x24d)]{constructor(_0x52cf28,_0x1d5100,_0x4700af,_0x43dba1,_0x209291,_0x191e11){const _0x354ac5=_0x3800a1;super(),this['_beforeCloseService']=_0x52cf28,this['_localCacheService']=_0x1d5100,this[_0x354ac5(0x262)]=_0x4700af,this['_messageService']=_0x43dba1,this[_0x354ac5(0x1f1)]=_0x209291,this['_localeService']=_0x191e11,this[_0x354ac5(0x22e)](),this[_0x354ac5(0x2d9)]();}['_setupBeforeClosingHandler'](){const _0x5c2498=_0x3800a1;this[_0x5c2498(0x372)](this[_0x5c2498(0x435)]['registerBeforeClose'](()=>{const _0x524b4f=_0x5c2498;if(this['_localCacheService'][_0x524b4f(0x27e)][_0x524b4f(0x33f)])return this[_0x524b4f(0x36a)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x2d61c3=_0x3800a1;this['disposeWithMe'](this[_0x2d61c3(0x262)][_0x2d61c3(0x432)][_0x2d61c3(0x227)](_0x78e4b3=>{const _0x52422d=_0x2d61c3;_0x78e4b3['id']===u['CollaborationUIEventId'][_0x52422d(0x401)]&&this[_0x52422d(0x1db)][_0x52422d(0x26e)]({'type':D[_0x52422d(0x3f1)]['Warning'],'content':this['_localeService']['t'](_0x52422d(0x454))}),_0x78e4b3['id']===u[_0x52422d(0x34d)]['CLOSE_ROOM']&&this[_0x52422d(0x1db)]['show']({'type':D[_0x52422d(0x3f1)][_0x52422d(0x300)],'content':this[_0x52422d(0x36a)]['t'](_0x52422d(0x3e3))}),_0x78e4b3['id']===u['CollaborationUIEventId'][_0x52422d(0x3b0)]&&this[_0x52422d(0x1f1)][_0x52422d(0x26e)]({'title':this[_0x52422d(0x36a)]['t'](_0x52422d(0x450)),'content':this[_0x52422d(0x36a)]['t'](_0x52422d(0x26d)),'type':_0x52422d(0x3ef),'duration':0x0}),_0x78e4b3['id']===u[_0x52422d(0x34d)][_0x52422d(0x3c0)]&&this[_0x52422d(0x1db)]['show']({'type':D[_0x52422d(0x3f1)][_0x52422d(0x323)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x78e4b3[_0x52422d(0x406)]+')'}),_0x78e4b3['id']===u[_0x52422d(0x34d)][_0x52422d(0x35a)]&&this[_0x52422d(0x1db)][_0x52422d(0x26e)]({'type':D[_0x52422d(0x3f1)][_0x52422d(0x300)],'content':this['_localeService']['t'](_0x78e4b3[_0x52422d(0x406)]||'')}),_0x78e4b3['id']===u[_0x52422d(0x34d)][_0x52422d(0x204)]&&this[_0x52422d(0x1db)][_0x52422d(0x26e)]({'type':D['MessageType'][_0x52422d(0x300)],'content':this[_0x52422d(0x36a)]['t']('session.will-retry')}),_0x78e4b3['id']===u['CollaborationUIEventId'][_0x52422d(0x268)]&&this[_0x52422d(0x1db)][_0x52422d(0x26e)]({'type':D[_0x52422d(0x3f1)]['Error'],'content':this[_0x52422d(0x36a)]['t']('session.connection-failed')}),_0x78e4b3['id']===u['CollaborationUIEventId'][_0x52422d(0x447)]&&this[_0x52422d(0x1db)][_0x52422d(0x26e)]({'type':D['MessageType'][_0x52422d(0x323)],'content':this[_0x52422d(0x36a)]['t'](_0x52422d(0x38a))});}));}};q=yt([y(0x0,O[_0x3800a1(0x2e5)]),y(0x1,u[_0x3800a1(0x408)]),y(0x2,a[_0x3800a1(0x22f)](u[_0x3800a1(0x43c)])),y(0x3,O[_0x3800a1(0x28d)]),y(0x4,O[_0x3800a1(0x207)]),y(0x5,a[_0x3800a1(0x22f)](a[_0x3800a1(0x289)]))],q);const $t=_0x3800a1(0x3a9),Ue={},Ee=a[_0x3800a1(0x38f)](_0x3800a1(0x3ca));var xt=Object[_0x3800a1(0x3a4)],Bt=(_0x21e659,_0x566e9c,_0x35ec58,_0xd6cdd7)=>{for(var _0x1c10a3=_0xd6cdd7>0x1?void 0x0:_0xd6cdd7?xt(_0x566e9c,_0x35ec58):_0x566e9c,_0x10f55a=_0x21e659['length']-0x1,_0x5211d1;_0x10f55a>=0x0;_0x10f55a--)(_0x5211d1=_0x21e659[_0x10f55a])&&(_0x1c10a3=_0x5211d1(_0x1c10a3)||_0x1c10a3);return _0x1c10a3;},F=(_0x3d3750,_0x467f37)=>(_0x1ff6ce,_0x26a73d)=>_0x467f37(_0x1ff6ce,_0x26a73d,_0x3d3750);exports['CollaborationDataLoaderController']=class extends a[_0x3800a1(0x445)]{constructor(_0x510e3a,_0x17d1e1,_0x3d2c82,_0xe8a71a,_0x5a0b04){const _0x40af40=_0x3800a1;super(),this[_0x40af40(0x3ec)]=_0x510e3a,this['_logService']=_0x17d1e1,this['_commandService']=_0x3d2c82,this['_dataLoaderService']=_0xe8a71a,_0x5a0b04?_0x5a0b04==null||_0x5a0b04[_0x40af40(0x3a1)]()[_0x40af40(0x333)](()=>this[_0x40af40(0x3f0)]()):(this['_logService'][_0x40af40(0x2d8)](_0x40af40(0x3ac),_0x40af40(0x3f8)),this[_0x40af40(0x3f0)]());}async['_init'](){const _0x4bb6dc=_0x3800a1,_0x8e34ee=this[_0x4bb6dc(0x3ec)]['getParam'](_0x4bb6dc(0x22b)),_0x15d049=this[_0x4bb6dc(0x3ec)][_0x4bb6dc(0x1d7)](_0x4bb6dc(0x1eb)),_0x27f3ae=this[_0x4bb6dc(0x3ec)][_0x4bb6dc(0x1d7)](_0x4bb6dc(0x28b));if(!_0x8e34ee||!_0x15d049){this[_0x4bb6dc(0x42d)]['debug'](_0x4bb6dc(0x3ac),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1b9490=await this[_0x4bb6dc(0x2f5)]['loadUnit'](_0x8e34ee,Number(_0x15d049),_0x27f3ae);_0x1b9490&&_0x1b9490 instanceof a[_0x4bb6dc(0x3b2)]&&this['_setupSubUnitSync'](_0x1b9490);}async['_setupSubUnitSync'](_0xf2f0cc){const _0x251aed=_0x3800a1;await this[_0x251aed(0x341)](_0xf2f0cc),_0xf2f0cc[_0x251aed(0x385)][_0x251aed(0x355)](d['takeUntil'](this['dispose$']))[_0x251aed(0x227)](_0x2e01a7=>{const _0x2532c6=_0x251aed;_0x2e01a7&&this[_0x2532c6(0x296)](_0x2e01a7);}),this['_urlService']['urlChange$']['pipe'](d[_0x251aed(0x2cb)](this[_0x251aed(0x344)]))[_0x251aed(0x227)](()=>this[_0x251aed(0x341)](_0xf2f0cc));}['_updateURLWithCurrentState'](_0x1bcdd4,_0x1f6cae=!0x1){const _0x3962ef=_0x3800a1,_0x5d8c2b=this['_urlService']['getParam']('subunit');_0x1bcdd4[_0x3962ef(0x2b8)]()!==_0x5d8c2b&&this['_urlService']['setParam'](_0x3962ef(0x28b),_0x1bcdd4[_0x3962ef(0x2b8)](),_0x1f6cae);}async['_updateSubUnitFromURLParams'](_0x13fab7){const _0x2056cb=_0x3800a1;var _0x557f43;const _0xbcda53=this[_0x2056cb(0x3ec)][_0x2056cb(0x1d7)]('subunit');if(!_0xbcda53||!_0x13fab7['getSheetBySheetId'](_0xbcda53)){const _0x443e3c=_0x13fab7['getUnhiddenWorksheets']()[0x0],_0xc5fff8=_0x13fab7['getSheetBySheetId'](_0x443e3c);if(!_0xc5fff8)return;this[_0x2056cb(0x296)](_0xc5fff8,!0x0),await this[_0x2056cb(0x203)][_0x2056cb(0x3bc)](g[_0x2056cb(0x1fc)]['id'],{'unitId':_0x13fab7['getUnitId'](),'subUnitId':_0x443e3c});return;}((_0x557f43=_0x13fab7[_0x2056cb(0x28f)]())==null?void 0x0:_0x557f43['getSheetId']())!==_0xbcda53&&await this['_commandService'][_0x2056cb(0x3bc)](g[_0x2056cb(0x1fc)]['id'],{'unitId':_0x13fab7[_0x2056cb(0x1f2)](),'subUnitId':_0xbcda53});}},exports[_0x3800a1(0x3b1)]=Bt([F(0x0,Ee),F(0x1,a[_0x3800a1(0x35e)]),F(0x2,a[_0x3800a1(0x3fa)]),F(0x3,a[_0x3800a1(0x22f)](u[_0x3800a1(0x3e5)])),F(0x4,a[_0x3800a1(0x426)](Ke['IRemoteInstanceService']))],exports[_0x3800a1(0x3b1)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x29fc97,_0x3f6262,_0x395ee0,_0x356d88)=>{const _0x9de5cc=_0x3800a1;for(var _0x447e72=_0x356d88>0x1?void 0x0:_0x356d88?jt(_0x3f6262,_0x395ee0):_0x3f6262,_0x1d89b9=_0x29fc97[_0x9de5cc(0x2c4)]-0x1,_0x321ee8;_0x1d89b9>=0x0;_0x1d89b9--)(_0x321ee8=_0x29fc97[_0x1d89b9])&&(_0x447e72=_0x321ee8(_0x447e72)||_0x447e72);return _0x447e72;},ce=(_0x2a0609,_0x375193)=>(_0x11d58e,_0x2c00b2)=>_0x375193(_0x11d58e,_0x2c00b2,_0x2a0609);let z=class{constructor(_0x332dc3,_0x4d0bc9,_0x20cebf){const _0xba9c24=_0x3800a1;this[_0xba9c24(0x1d9)]=_0x332dc3,this[_0xba9c24(0x41b)]=_0x4d0bc9,this[_0xba9c24(0x307)]=_0x20cebf;}['transformIMECache'](_0xb82311){const _0x23d79e=_0x3800a1;this['_transformUndoRedoStack'](_0xb82311),this[_0x23d79e(0x2f1)](_0xb82311);}[_0x3800a1(0x3d1)](_0x449580){const _0x10240e=_0x3800a1,{unitID:_0x5771d7}=_0x449580,_0x57f061=this[_0x10240e(0x307)][_0x10240e(0x299)](_0x5771d7)[_0x10240e(0x27b)](E[_0x10240e(0x402)]),{redoCache:_0x4584d5}=_0x57f061['getUndoRedoMutationParamsCache']();if(_0x4584d5['length']===0x0)return _0x449580;let _0x361a67=a['Tools']['deepClone'](_0x449580['mutations'][0x0]);for(let _0x1b6301=0x0;_0x1b6301<_0x4584d5['length'];_0x1b6301++){const _0x256414={'id':'doc.mutation.rich-text-editing','params':{..._0x4584d5[_0x1b6301]}},_0x29966c=this[_0x10240e(0x41b)][_0x10240e(0x253)](_0x361a67,_0x256414,!0x1);if(m[_0x10240e(0x39b)](_0x29966c))throw _0x29966c[_0x10240e(0x3ef)];_0x361a67=_0x29966c[_0x10240e(0x373)];}return{...a[_0x10240e(0x242)][_0x10240e(0x3ff)](_0x449580),'mutations':[_0x361a67]};}[_0x3800a1(0x1f0)](_0x121cea){const _0x1aaa1b=_0x3800a1,{unitID:_0x546be4}=_0x121cea,_0x3ef081=this[_0x1aaa1b(0x307)][_0x1aaa1b(0x299)](_0x546be4)[_0x1aaa1b(0x27b)](E[_0x1aaa1b(0x402)]),{undoCache:_0x4da1da,redoCache:_0x3b32e6}=_0x3ef081[_0x1aaa1b(0x3ba)]();if(_0x4da1da[_0x1aaa1b(0x2c4)]===0x0||_0x3b32e6[_0x1aaa1b(0x2c4)]===0x0)return;const _0x2854b7=[],_0x77408e=[];let _0x2c5890=a[_0x1aaa1b(0x242)][_0x1aaa1b(0x3ff)](_0x121cea[_0x1aaa1b(0x360)][0x0]),_0x52cc22=a['Tools'][_0x1aaa1b(0x3ff)](_0x121cea[_0x1aaa1b(0x360)][0x0]);for(let _0x25760a=_0x4da1da[_0x1aaa1b(0x2c4)]-0x1;_0x25760a>=0x0;_0x25760a--){const _0x162fc4={'id':_0x1aaa1b(0x405),'params':{..._0x4da1da[_0x25760a]}},_0x4477cd={'id':_0x1aaa1b(0x405),'params':{..._0x3b32e6[_0x25760a]}},_0x452636=this[_0x1aaa1b(0x41b)][_0x1aaa1b(0x253)](_0x2c5890,_0x162fc4,!0x1),_0x4e856d=this[_0x1aaa1b(0x41b)][_0x1aaa1b(0x253)](_0x52cc22,_0x4477cd,!0x1);if(m['isTransformMutationFailure'](_0x452636))throw _0x452636['error'];if(m[_0x1aaa1b(0x39b)](_0x4e856d))throw _0x4e856d[_0x1aaa1b(0x3ef)];_0x2854b7['unshift'](_0x452636[_0x1aaa1b(0x451)][_0x1aaa1b(0x3a7)]),_0x77408e[_0x1aaa1b(0x250)](_0x4e856d[_0x1aaa1b(0x451)][_0x1aaa1b(0x3a7)]),_0x2c5890=_0x452636[_0x1aaa1b(0x373)],_0x52cc22=_0x4e856d[_0x1aaa1b(0x373)];}_0x3ef081[_0x1aaa1b(0x293)]({'undoCache':_0x2854b7,'redoCache':_0x77408e});}[_0x3800a1(0x2f1)](_0x3b8971){const _0x596106=_0x3800a1,{unitID:_0x55afcf}=_0x3b8971,_0x2cfdd1=this[_0x596106(0x307)][_0x596106(0x299)](_0x55afcf)[_0x596106(0x27b)](E['DocIMEInputManagerService']),_0x486132=_0x2cfdd1[_0x596106(0x2ac)]();if(_0x486132==null)return;const _0x51767d=[{'id':_0x596106(0x405),'params':{'unitId':_0x3b8971[_0x596106(0x456)],'actions':null,'textRanges':[_0x486132]}}],_0x19e7b3=this[_0x596106(0x41b)][_0x596106(0x36d)](_0x3b8971,_0x51767d);if(!m[_0x596106(0x3e2)](_0x19e7b3))throw _0x19e7b3[_0x596106(0x3ef)];const _0x2ca212=_0x19e7b3[_0x596106(0x451)][0x0][_0x596106(0x3a7)][_0x596106(0x3e4)];Array[_0x596106(0x1f3)](_0x2ca212)&&_0x2ca212[_0x596106(0x2c4)]&&_0x2cfdd1[_0x596106(0x2db)](_0x2ca212[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x3800a1(0x2e4)])),ce(0x1,m[_0x3800a1(0x364)]),ce(0x2,p[_0x3800a1(0x2b2)])],z);var Ft=Object[_0x3800a1(0x3a4)],Ht=(_0x34305b,_0x4092ce,_0x18d32e,_0x4a7aa1)=>{const _0x240f5a=_0x3800a1;for(var _0x33ef17=_0x4a7aa1>0x1?void 0x0:_0x4a7aa1?Ft(_0x4092ce,_0x18d32e):_0x4092ce,_0x3d92f3=_0x34305b[_0x240f5a(0x2c4)]-0x1,_0x201b00;_0x3d92f3>=0x0;_0x3d92f3--)(_0x201b00=_0x34305b[_0x3d92f3])&&(_0x33ef17=_0x201b00(_0x33ef17)||_0x33ef17);return _0x33ef17;},le=(_0x1c47e3,_0x2ef7a5)=>(_0x3d3ae5,_0x1abf30)=>_0x2ef7a5(_0x3d3ae5,_0x1abf30,_0x1c47e3);let J=class{constructor(_0x1bbc21,_0x168bf3,_0x12e92b){const _0xa0b58a=_0x3800a1;this[_0xa0b58a(0x1d9)]=_0x1bbc21,this[_0xa0b58a(0x41b)]=_0x168bf3,this[_0xa0b58a(0x25e)]=_0x12e92b;}[_0x3800a1(0x231)](_0x62647){const _0xc5a94b=_0x3800a1;this[_0xc5a94b(0x235)](_0x62647);}[_0x3800a1(0x3d1)](_0x44a84f){const _0x235b98=_0x3800a1,{unitID:_0x41e354}=_0x44a84f,{collaboration:_0x8dd444}=this[_0x235b98(0x25e)][_0x235b98(0x318)](_0x41e354);if(_0x8dd444[_0x235b98(0x2c4)]===0x0)return _0x44a84f;let _0x5e7830=a[_0x235b98(0x242)][_0x235b98(0x3ff)](_0x44a84f[_0x235b98(0x360)][0x0]);for(let _0x1e8819=0x0;_0x1e8819<_0x8dd444['length'];_0x1e8819++){const _0xfc0301={'id':_0x235b98(0x405),'params':{'unitId':_0x8dd444[_0x1e8819][_0x235b98(0x42f)],..._0x8dd444[_0x1e8819][_0x235b98(0x340)]}},_0x23a3cb=this[_0x235b98(0x41b)][_0x235b98(0x253)](_0x5e7830,_0xfc0301,!0x1);if(m[_0x235b98(0x39b)](_0x23a3cb))throw _0x23a3cb[_0x235b98(0x3ef)];_0x5e7830=_0x23a3cb[_0x235b98(0x373)];}return{...a['Tools']['deepClone'](_0x44a84f),'mutations':[_0x5e7830]};}[_0x3800a1(0x235)](_0x57ef81){const _0x55c01f=_0x3800a1,{unitID:_0x1babf3}=_0x57ef81,{history:_0x4c5406,collaboration:_0xab0298}=this[_0x55c01f(0x25e)][_0x55c01f(0x318)](_0x1babf3);if(_0x4c5406[_0x55c01f(0x2c4)]===0x0&&_0xab0298[_0x55c01f(0x2c4)]===0x0)return;const _0x476a6c=[],_0x2e704d=[];let _0x32dba3=a[_0x55c01f(0x242)][_0x55c01f(0x3ff)](_0x57ef81[_0x55c01f(0x360)][0x0]),_0x914df2=a[_0x55c01f(0x242)]['deepClone'](_0x57ef81['mutations'][0x0]);for(let _0x911a98=_0x4c5406[_0x55c01f(0x2c4)]-0x1;_0x911a98>=0x0;_0x911a98--){const _0x2050cf={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4c5406[_0x911a98][_0x55c01f(0x42f)],..._0x4c5406[_0x911a98][_0x55c01f(0x2a7)]}},_0x42642={'id':_0x55c01f(0x405),'params':{'unitId':_0x4c5406[_0x911a98][_0x55c01f(0x42f)],..._0x4c5406[_0x911a98][_0x55c01f(0x340)]}},_0x22524d=this[_0x55c01f(0x41b)][_0x55c01f(0x253)](_0x32dba3,_0x2050cf,!0x1),_0x5dc672=this['_transformService']['transformMutation'](_0x914df2,_0x42642,!0x1);if(m[_0x55c01f(0x39b)](_0x22524d))throw _0x22524d['error'];if(m[_0x55c01f(0x39b)](_0x5dc672))throw _0x5dc672[_0x55c01f(0x3ef)];_0x476a6c[_0x55c01f(0x250)]({..._0x4c5406[_0x911a98],'undoState':_0x22524d['m2Prime']['params'],'redoState':_0x5dc672[_0x55c01f(0x451)][_0x55c01f(0x3a7)]}),_0x32dba3=_0x22524d[_0x55c01f(0x373)],_0x914df2=_0x5dc672[_0x55c01f(0x373)];}_0x32dba3=a[_0x55c01f(0x242)][_0x55c01f(0x3ff)](_0x57ef81[_0x55c01f(0x360)][0x0]),_0x914df2=a[_0x55c01f(0x242)][_0x55c01f(0x3ff)](_0x57ef81[_0x55c01f(0x360)][0x0]);for(let _0x3fa625=_0xab0298[_0x55c01f(0x2c4)]-0x1;_0x3fa625>=0x0;_0x3fa625--){const _0x49e8ba={'id':_0x55c01f(0x405),'params':{'unitId':_0xab0298[_0x3fa625]['unitId'],..._0xab0298[_0x3fa625][_0x55c01f(0x2a7)]}},_0x4780df={'id':_0x55c01f(0x405),'params':{'unitId':_0xab0298[_0x3fa625][_0x55c01f(0x42f)],..._0xab0298[_0x3fa625][_0x55c01f(0x340)]}},_0x2b270b=this[_0x55c01f(0x41b)][_0x55c01f(0x253)](_0x32dba3,_0x49e8ba,!0x1),_0x3e42ac=this[_0x55c01f(0x41b)][_0x55c01f(0x253)](_0x914df2,_0x4780df,!0x1);if(m[_0x55c01f(0x39b)](_0x2b270b))throw _0x2b270b['error'];if(m['isTransformMutationFailure'](_0x3e42ac))throw _0x3e42ac[_0x55c01f(0x3ef)];_0x2e704d[_0x55c01f(0x250)]({..._0xab0298[_0x3fa625],'undoState':_0x2b270b[_0x55c01f(0x451)][_0x55c01f(0x3a7)],'redoState':_0x3e42ac[_0x55c01f(0x451)][_0x55c01f(0x3a7)]}),_0x32dba3=_0x2b270b[_0x55c01f(0x373)],_0x914df2=_0x3e42ac[_0x55c01f(0x373)];}this['_docStateChangeManagerService'][_0x55c01f(0x236)](_0x1babf3,{'history':_0x476a6c,'collaboration':_0x2e704d});}};J=Ht([le(0x0,a[_0x3800a1(0x22f)](a[_0x3800a1(0x2e4)])),le(0x1,m[_0x3800a1(0x364)]),le(0x2,a[_0x3800a1(0x22f)](E[_0x3800a1(0x417)]))],J);var Yt=Object[_0x3800a1(0x3a4)],Wt=(_0x16b0b5,_0xe3e28e,_0x22ce8a,_0x21f946)=>{const _0x2e2467=_0x3800a1;for(var _0x103010=_0x21f946>0x1?void 0x0:_0x21f946?Yt(_0xe3e28e,_0x22ce8a):_0xe3e28e,_0x41013c=_0x16b0b5[_0x2e2467(0x2c4)]-0x1,_0xb3b1e6;_0x41013c>=0x0;_0x41013c--)(_0xb3b1e6=_0x16b0b5[_0x41013c])&&(_0x103010=_0xb3b1e6(_0x103010)||_0x103010);return _0x103010;},Ne=(_0x26283b,_0x567e3a)=>(_0x302234,_0x2efd3a)=>_0x567e3a(_0x302234,_0x2efd3a,_0x26283b);let Z=class{constructor(_0x507ec4,_0x111421){const _0xfc297a=_0x3800a1;this[_0xfc297a(0x1d9)]=_0x507ec4,this[_0xfc297a(0x41b)]=_0x111421;}['transformSelections'](_0xd2f8cd){const _0xa5b951=_0x3800a1;var _0x331b2a;const _0x15c567=this['_injector']['get'](Y[_0xa5b951(0x3fb)]),_0x38af19=(_0x331b2a=_0x15c567[_0xa5b951(0x271)]())!=null?_0x331b2a:[];if(_0x38af19[_0xa5b951(0x2c4)]===0x0)return;const _0x23214e=_0xd2f8cd[_0xa5b951(0x456)],_0x1b30ef=[{'id':_0xa5b951(0x405),'params':{'unitId':_0x23214e,'actions':null,'textRanges':_0x38af19}}],_0x1b5064=this[_0xa5b951(0x41b)][_0xa5b951(0x36d)](_0xd2f8cd,_0x1b30ef);if(!m[_0xa5b951(0x3e2)](_0x1b5064))throw _0x1b5064['error'];const _0x2e0930=_0x1b5064[_0xa5b951(0x451)][0x0][_0xa5b951(0x3a7)]['textRanges'];Array[_0xa5b951(0x1f3)](_0x2e0930)&&_0x2e0930['length']&&_0x15c567['replaceDocRanges'](_0x2e0930,{'unitId':_0x23214e,'subUnitId':_0x23214e},!0x1);}};Z=Wt([Ne(0x0,a[_0x3800a1(0x22f)](a[_0x3800a1(0x2e4)])),Ne(0x1,m[_0x3800a1(0x364)])],Z);var Vt=Object[_0x3800a1(0x3a4)],Xt=(_0x30ac97,_0x4d8b0b,_0x4fc5f5,_0x1a7619)=>{for(var _0x5e19da=_0x1a7619>0x1?void 0x0:_0x1a7619?Vt(_0x4d8b0b,_0x4fc5f5):_0x4d8b0b,_0x4a6dbc=_0x30ac97['length']-0x1,_0x353947;_0x4a6dbc>=0x0;_0x4a6dbc--)(_0x353947=_0x30ac97[_0x4a6dbc])&&(_0x5e19da=_0x353947(_0x5e19da)||_0x5e19da);return _0x5e19da;},N=(_0x55311e,_0x2e2383)=>(_0x4eaf0e,_0x4b3b6a)=>_0x2e2383(_0x4eaf0e,_0x4b3b6a,_0x55311e);let Q=class extends a[_0x3800a1(0x24d)]{constructor(_0x470dbb,_0x2b9e37,_0x5b1d2a,_0x4fc22f,_0x9e60ae,_0x519765,_0x46fec6,_0x10a582){const _0x39b3b2=_0x3800a1;super(),h(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus']['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x470dbb,this[_0x39b3b2(0x1ed)]=_0x2b9e37,this[_0x39b3b2(0x36c)]=_0x5b1d2a,this['_docTransformStateCacheService']=_0x4fc22f,this['_docTransformSelectionsService']=_0x9e60ae,this[_0x39b3b2(0x2c3)]=_0x519765,this[_0x39b3b2(0x1db)]=_0x46fec6,this[_0x39b3b2(0x36a)]=_0x10a582,this[_0x39b3b2(0x232)]());}[_0x3800a1(0x232)](){const _0x29e9b8=_0x3800a1;this['disposeWithMe'](this[_0x29e9b8(0x1ed)][_0x29e9b8(0x33a)][_0x29e9b8(0x227)](_0x449908=>{const _0x2197f4=_0x29e9b8,_0x1be03b=this['_docStateChangeManagerService'][_0x2197f4(0x3b5)][_0x2197f4(0x227)](_0x312b51=>{const _0x42c4a3=_0x2197f4;if(_0x312b51==null)return;const {unitId:_0x1302ef,redoState:_0x499325,commandId:_0x4a928b}=_0x312b51;if(_0x1302ef!==_0x449908[_0x42c4a3(0x456)])return;const _0x5743f8={'id':_0x4a928b,'type':a[_0x42c4a3(0x1e7)][_0x42c4a3(0x213)],'params':{'unitId':_0x1302ef,'actions':_0x499325[_0x42c4a3(0x303)],'textRanges':null}};_0x449908[_0x42c4a3(0x353)](_0x5743f8);});if(_0x449908['disposeWithMe'](_0x1be03b),_0x449908 instanceof u['DocCollaborationEntity']){const _0x2dbc7d={'onTransformIME':_0x5dea24=>this[_0x2197f4(0x36c)][_0x2197f4(0x3d9)](_0x5dea24),'onTransformState':_0x59d83e=>this['_docTransformStateCacheService'][_0x2197f4(0x231)](_0x59d83e),'onTransformSelections':_0x5b5dd8=>this[_0x2197f4(0x27c)]['transformSelections'](_0x5b5dd8),'onSyncEditingCollabCursor':_0x44580d=>this[_0x2197f4(0x2c3)][_0x2197f4(0x1da)](_0x44580d),'onTransformRemoteChangesetByIMECache':_0x16ab3b=>this[_0x2197f4(0x36c)]['transformRemoteChangeset'](_0x16ab3b),'onTransformRemoteChangesetByStateCache':_0x510746=>this['_docTransformStateCacheService'][_0x2197f4(0x3d1)](_0x510746)};_0x449908['addHandlerCallback'](_0x2dbc7d);}}));}};function _0x4499(_0x42cb41,_0x4c1f22){const _0x31e5a8=_0x31e5();return _0x4499=function(_0x449932,_0x3d42a8){_0x449932=_0x449932-0x1d6;let _0x440a1d=_0x31e5a8[_0x449932];return _0x440a1d;},_0x4499(_0x42cb41,_0x4c1f22);}Q=Xt([N(0x0,a[_0x3800a1(0x22f)](E['DocStateChangeManagerService'])),N(0x1,a[_0x3800a1(0x22f)](u['CollaborationController'])),N(0x2,a[_0x3800a1(0x22f)](z)),N(0x3,a[_0x3800a1(0x22f)](J)),N(0x4,a[_0x3800a1(0x22f)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O[_0x3800a1(0x28d)]),N(0x7,a[_0x3800a1(0x22f)](a[_0x3800a1(0x289)]))],Q);var Gt=Object[_0x3800a1(0x3a4)],Kt=(_0x53b865,_0x23492e,_0x3cf089,_0x4deee8)=>{for(var _0x2230c1=_0x4deee8>0x1?void 0x0:_0x4deee8?Gt(_0x23492e,_0x3cf089):_0x23492e,_0x4c8046=_0x53b865['length']-0x1,_0x3c6067;_0x4c8046>=0x0;_0x4c8046--)(_0x3c6067=_0x53b865[_0x4c8046])&&(_0x2230c1=_0x3c6067(_0x2230c1)||_0x2230c1);return _0x2230c1;},_e=(_0x426b77,_0x533681)=>(_0x218126,_0x3ed1b6)=>_0x533681(_0x218126,_0x3ed1b6,_0x426b77);let ge=class extends a['Disposable']{constructor(_0x26b62e,_0x76c13d,_0x57ea21){const _0x43a6e4=_0x3800a1;super(),h(this,_0x43a6e4(0x30f),new Map()),h(this,_0x43a6e4(0x2d1),new Map()),h(this,'_disabled',!0x1),(this['_configService']=_0x26b62e,this['_localStorageService']=_0x76c13d,this['_revisionService']=_0x57ea21);}[_0x3800a1(0x29a)](){const _0x524049=_0x3800a1;this[_0x524049(0x43b)]=!0x0;}[_0x3800a1(0x30e)](){const _0x8e0d5c=_0x3800a1;this[_0x8e0d5c(0x43b)]=!0x1;}get[_0x3800a1(0x27e)](){const _0xfe841c=_0x3800a1;return this[_0xfe841c(0x2d1)];}[_0x3800a1(0x37f)](){const _0x5f25aa=_0x3800a1;this[_0x5f25aa(0x288)]()[_0x5f25aa(0x333)](()=>super[_0x5f25aa(0x37f)]());}async[_0x3800a1(0x42e)](_0x13e72f){const _0x1feb92=_0x3800a1;return this[_0x1feb92(0x43b)]?null:this[_0x1feb92(0x437)][_0x1feb92(0x301)](u['getLocalCacheKey'](_0x13e72f));}async[_0x3800a1(0x263)](_0x3ebeec,_0x15d34f){const _0x3d06e1=_0x3800a1;return!!this[_0x3d06e1(0x437)]['setItem'](_0x3ebeec,_0x15d34f);}[_0x3800a1(0x2a0)](_0x546760,_0x13fc67,_0x3e7904,_0x53b5f4){const _0x24651d=_0x3800a1,_0x1a80b3=this[_0x24651d(0x3be)][_0x24651d(0x423)](_0x546760);this[_0x24651d(0x30f)][_0x24651d(0x21e)](_0x546760,{'unitID':_0x546760,'type':_0x13fc67,'awaitingChangeset':_0x3e7904,'mutations':_0x53b5f4,'rev':_0x1a80b3}),this[_0x24651d(0x2d1)][_0x24651d(0x1f7)](_0x546760)||this[_0x24651d(0x2a1)](_0x546760);}[_0x3800a1(0x2a1)](_0x1d4732){const _0x282bca=_0x3800a1,_0x1c56b0=this['_getSaveTimeout']();_0x1c56b0===0x0?this[_0x282bca(0x3a2)](_0x1d4732):this[_0x282bca(0x2d1)][_0x282bca(0x21e)](_0x1d4732,setTimeout(()=>this['_saveCache'](_0x1d4732),_0x1c56b0));}[_0x3800a1(0x274)](){const _0x71c25=_0x3800a1;var _0x13906b;return(_0x13906b=this[_0x71c25(0x26c)]['getConfig'](u[_0x71c25(0x1fb)]))!=null?_0x13906b:u['LOCAL_CACHE_INTERVAL'];}[_0x3800a1(0x3a2)](_0x561af6){const _0x48537a=_0x3800a1,_0x26f262=this[_0x48537a(0x2d1)][_0x48537a(0x3bf)](_0x561af6);return _0x26f262!==void 0x0&&window['clearTimeout'](_0x26f262),this[_0x48537a(0x437)][_0x48537a(0x2d4)](u[_0x48537a(0x388)](_0x561af6),this['_cachedData'][_0x48537a(0x3bf)](_0x561af6))[_0x48537a(0x333)](()=>this[_0x48537a(0x2d1)][_0x48537a(0x37b)](_0x561af6));}async[_0x3800a1(0x288)](){const _0xb62b82=_0x3800a1,_0x2aac4f=[];this['_saveTaskMap'][_0xb62b82(0x316)]((_0x41461d,_0x59d30b)=>{const _0x14c6b3=_0xb62b82;window[_0x14c6b3(0x2bd)](_0x41461d),_0x2aac4f['push'](this['_saveCache'](_0x59d30b)[_0x14c6b3(0x333)](()=>{const _0x3c75fd=_0x14c6b3;this[_0x3c75fd(0x2d1)]['delete'](_0x59d30b);}));}),await Promise[_0xb62b82(0x239)](_0x2aac4f);}};ge=Kt([_e(0x0,a[_0x3800a1(0x410)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x3800a1(0x22f)](m[_0x3800a1(0x3b8)]))],ge);class Be extends a['RxDisposable']{constructor(){const _0x563195=_0x3800a1;super(),h(this,_0x563195(0x379)),this[_0x563195(0x379)]=d[_0x563195(0x3c4)](window,_0x563195(0x3e0))[_0x563195(0x355)](d[_0x563195(0x2cb)](this['dispose$']),d[_0x563195(0x290)](0x1),d[_0x563195(0x35c)](void 0x0));}['setParam'](_0x1f4562,_0x4a0f81,_0x1db4a8=!0x1){const _0x5127e6=_0x3800a1,_0x230fd6=new URL(window['location'][_0x5127e6(0x23c)]);_0x230fd6[_0x5127e6(0x284)][_0x5127e6(0x21e)](_0x1f4562,_0x4a0f81),_0x1db4a8?window['history'][_0x5127e6(0x3f7)]('','',_0x230fd6[_0x5127e6(0x2e2)]()):window[_0x5127e6(0x380)][_0x5127e6(0x24c)]('','',_0x230fd6['toString']());}[_0x3800a1(0x2ad)](_0x262d9a,_0xe6fe5f=!0x1){const _0x38ef06=_0x3800a1,_0x27a4e9=new URL(window[_0x38ef06(0x25c)]['href']);_0x27a4e9[_0x38ef06(0x284)][_0x38ef06(0x37b)](_0x262d9a),_0xe6fe5f?window[_0x38ef06(0x380)][_0x38ef06(0x3f7)]('','',_0x27a4e9['toString']()):window[_0x38ef06(0x380)][_0x38ef06(0x24c)]('','',_0x27a4e9['toString']());}[_0x3800a1(0x1d7)](_0x427c93){const _0x1c4382=_0x3800a1;var _0x8e3c58;return(_0x8e3c58=new URL(window['location'][_0x1c4382(0x23c)])[_0x1c4382(0x284)][_0x1c4382(0x3bf)](_0x427c93))!=null?_0x8e3c58:void 0x0;}}var qt=Object[_0x3800a1(0x348)],zt=Object[_0x3800a1(0x3a4)],Jt=(_0x4bf84f,_0x3a543b,_0x106f04)=>_0x3a543b in _0x4bf84f?qt(_0x4bf84f,_0x3a543b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x106f04}):_0x4bf84f[_0x3a543b]=_0x106f04,Zt=(_0x52965b,_0x2296b2,_0x3ba71e,_0x3add15)=>{const _0x5884f7=_0x3800a1;for(var _0xcc0ad2=_0x3add15>0x1?void 0x0:_0x3add15?zt(_0x2296b2,_0x3ba71e):_0x2296b2,_0x44d0ce=_0x52965b[_0x5884f7(0x2c4)]-0x1,_0x1f04ca;_0x44d0ce>=0x0;_0x44d0ce--)(_0x1f04ca=_0x52965b[_0x44d0ce])&&(_0xcc0ad2=_0x1f04ca(_0xcc0ad2)||_0xcc0ad2);return _0xcc0ad2;},he=(_0xe4bcb0,_0x104328)=>(_0xc7700a,_0x20e261)=>_0x104328(_0xc7700a,_0x20e261,_0xe4bcb0),Qt=(_0x29676a,_0x46d58c,_0x2b1786)=>Jt(_0x29676a,_0x46d58c+'',_0x2b1786);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x3800a1(0x39c)]=class extends a[_0x3800a1(0x430)]{constructor(_0x1bf95e=Ue,_0x464b42,_0x28a4d9,_0x3482d2){const _0x4f72c9=_0x3800a1;super(),this[_0x4f72c9(0x286)]=_0x1bf95e,this[_0x4f72c9(0x307)]=_0x464b42,this[_0x4f72c9(0x1d9)]=_0x28a4d9,this[_0x4f72c9(0x26c)]=_0x3482d2;const {..._0x2c4269}=a['merge']({},Ue,this[_0x4f72c9(0x286)]);this[_0x4f72c9(0x26c)]['setConfig']($t,_0x2c4269);}['onStarting'](){const _0x48d1f7=_0x3800a1;this['_registerDependencies'](),this[_0x48d1f7(0x398)]();}[_0x3800a1(0x45d)](){const _0x31e6cc=_0x3800a1;this[_0x31e6cc(0x33d)]();}[_0x3800a1(0x352)](){const _0x15896c=_0x3800a1;var _0x212902;const _0xada186=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x15896c(0x218)],{'useClass':G[_0x15896c(0x327)]}],[u[_0x15896c(0x408)],{'useClass':ge}],[exports[_0x15896c(0x214)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x15896c(0x266)](this[_0x15896c(0x1d9)],a[_0x15896c(0x243)](_0xada186,(_0x212902=this[_0x15896c(0x286)])==null?void 0x0:_0x212902[_0x15896c(0x431)]));}[_0x3800a1(0x33d)](){const _0x4e8acd=_0x3800a1;this[_0x4e8acd(0x372)](this[_0x4e8acd(0x307)][_0x4e8acd(0x2eb)](a['UniverInstanceType']['UNIVER_DOC'],[fe])),this[_0x4e8acd(0x372)](this[_0x4e8acd(0x307)][_0x4e8acd(0x2eb)](a['UniverInstanceType'][_0x4e8acd(0x2ba)],[ve]));}[_0x3800a1(0x398)](){const _0x3c7066=_0x3800a1;a[_0x3c7066(0x2c2)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x3c7066(0x3b1)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x3800a1(0x3c6),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x3800a1(0x37d)](u[_0x3800a1(0x441)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x3800a1(0x2e4)])),he(0x3,a[_0x3800a1(0x410)])],exports[_0x3800a1(0x39c)]);var ts=Object[_0x3800a1(0x3a4)],ss=(_0x23d1c4,_0x125bf1,_0x2edf15,_0xca066c)=>{const _0x497b10=_0x3800a1;for(var _0x38c9d7=_0xca066c>0x1?void 0x0:_0xca066c?ts(_0x125bf1,_0x2edf15):_0x125bf1,_0xc5f425=_0x23d1c4[_0x497b10(0x2c4)]-0x1,_0x3316d1;_0xc5f425>=0x0;_0xc5f425--)(_0x3316d1=_0x23d1c4[_0xc5f425])&&(_0x38c9d7=_0x3316d1(_0x38c9d7)||_0x38c9d7);return _0x38c9d7;},H=(_0x1e4b9a,_0x39b725)=>(_0x297da3,_0x47de3f)=>_0x39b725(_0x297da3,_0x47de3f,_0x1e4b9a);exports[_0x3800a1(0x283)]=class extends u['CollaborationSocketService']{constructor(_0x1eda09,_0x12d470,_0x5ebc82,_0x322c8e,_0x568976){super(_0x1eda09,_0x12d470,_0x5ebc82,_0x322c8e,_0x568976);}async[_0x3800a1(0x2a9)](_0x2d614b){const _0x36b0b1=_0x3800a1,_0x7060a3=await this[_0x36b0b1(0x1d8)](),_0x541733=this[_0x36b0b1(0x3eb)](_0x2d614b,_0x7060a3);return this[_0x36b0b1(0x436)](_0x541733);}['_createSocketURL'](_0xd16442,_0x45b208){const _0x588ccb=_0x3800a1,_0x2a8a7e=typeof window>'u'?new URL(_0xd16442):new URL(_0xd16442,window['location']['origin']);_0x2a8a7e[_0x588ccb(0x284)][_0x588ccb(0x21e)](_0x588ccb(0x376),_0x45b208);const _0x3eb770=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x588ccb(0x25c)][_0x588ccb(0x201)]);return _0x3eb770[_0x588ccb(0x3bf)](_0x588ccb(0x277))&&_0x2a8a7e['searchParams']['set']('runId',_0x3eb770[_0x588ccb(0x3bf)](_0x588ccb(0x277))),_0x2a8a7e[_0x588ccb(0x2e2)]();}async['_getSessionTicket'](){const _0x21be90=_0x3800a1;var _0x3cb1cc,_0x3fb2fb,_0x48e9c5;const _0x3719e1=this[_0x21be90(0x26c)][_0x21be90(0x3d5)](u[_0x21be90(0x2bf)]),_0x13bae6=(_0x3cb1cc=_0x3719e1==null?void 0x0:_0x3719e1[_0x21be90(0x2b9)])!=null?_0x3cb1cc:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x48e9c5=(_0x3fb2fb=(await this[_0x21be90(0x275)][_0x21be90(0x3bf)](_0x13bae6,{'headers':{'Content-Type':_0x21be90(0x40d)}}))['body'])==null?void 0x0:_0x3fb2fb['ticket'])!=null?_0x48e9c5:'';}},exports[_0x3800a1(0x283)]=ss([H(0x0,a[_0x3800a1(0x22f)](a[_0x3800a1(0x2e4)])),H(0x1,a['Inject'](G[_0x3800a1(0x2fb)])),H(0x2,a[_0x3800a1(0x410)]),H(0x3,a['ILogService']),H(0x4,m['ISnapshotServerService'])],exports[_0x3800a1(0x283)]);const Me=0x7530,Le=_0x3800a1(0x2aa);class is extends a[_0x3800a1(0x24d)]{constructor(){const _0x595f66=_0x3800a1;super(),h(this,'_id',a[_0x595f66(0x2ff)]()),h(this,_0x595f66(0x248),new Set()),h(this,_0x595f66(0x424),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x595f66(0x443),new Map()),h(this,'_unitStatus',new Map()),this[_0x595f66(0x3f0)]();}['dispose'](){const _0x153020=_0x3800a1;super[_0x153020(0x37f)](),this[_0x153020(0x443)][_0x153020(0x316)]((_0x1a0164,_0x19e9df)=>this[_0x153020(0x2fe)](_0x19e9df)),this[_0x153020(0x21b)]&&window[_0x153020(0x44c)](this[_0x153020(0x21b)]);}[_0x3800a1(0x20f)](_0x201f5d){const _0xa9f5e5=_0x3800a1;return this['_ensureSubject'](_0x201f5d)[_0xa9f5e5(0x355)](d[_0xa9f5e5(0x34e)]());}[_0x3800a1(0x2cc)](_0x2909b4){const _0x1e6413=_0x3800a1;this[_0x1e6413(0x248)][_0x1e6413(0x33f)]===0x0&&this[_0x1e6413(0x25b)](),this['_selfUnitIDs'][_0x1e6413(0x23a)](_0x2909b4),this[_0x1e6413(0x36b)]({'type':0x0,'memberID':this[_0x1e6413(0x247)],'unitIDs':[_0x2909b4],'isForwarded':!0x1});}[_0x3800a1(0x3cf)](_0x4b5f64){const _0x289ed4=_0x3800a1;this['_selfUnitIDs'][_0x289ed4(0x37b)](_0x4b5f64),this[_0x289ed4(0x248)][_0x289ed4(0x33f)]===0x0&&this[_0x289ed4(0x21b)]&&window[_0x289ed4(0x44c)](this[_0x289ed4(0x21b)]);}[_0x3800a1(0x3f0)](){const _0x1c3265=_0x3800a1;this['disposeWithMe'](a['toDisposable'](d[_0x1c3265(0x3c4)](window,'storage')[_0x1c3265(0x227)](_0x511b78=>{const _0x4aba7f=_0x1c3265;if(_0x511b78[_0x4aba7f(0x249)]!==Le||!_0x511b78['newValue'])return;const _0x3e2181=JSON[_0x4aba7f(0x210)](_0x511b78[_0x4aba7f(0x374)]);this['_handleEvent'](_0x3e2181);}))),window['addEventListener'](_0x1c3265(0x2da),()=>this[_0x1c3265(0x36b)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x1c3265(0x3da)](this[_0x1c3265(0x248)])}));}[_0x3800a1(0x25f)](_0x1e859c){const _0x420a18=_0x3800a1;switch(_0x1e859c[_0x420a18(0x1eb)]){case 0x0:this[_0x420a18(0x1e6)](_0x1e859c);break;case 0x1:this[_0x420a18(0x35d)](_0x1e859c);break;case 0x2:this['_handleHeartbeatEvent'](_0x1e859c);break;}}['_handleJoinEvent'](_0x37f23e){const _0x72ccce=_0x3800a1,{unitIDs:_0xd49077,memberID:_0x35bd92,isForwarded:_0x1b8993}=_0x37f23e;_0xd49077[_0x72ccce(0x316)](_0x5c8705=>{const _0x44d51c=_0x72ccce;if(!_0x1b8993&&this[_0x44d51c(0x424)]['has'](_0x5c8705)&&this[_0x44d51c(0x3d4)](_0x5c8705)[_0x44d51c(0x3ee)](u[_0x44d51c(0x44d)][_0x44d51c(0x3dd)]),!this[_0x44d51c(0x424)]['has'](_0x5c8705)||!this[_0x44d51c(0x424)]['get'](_0x5c8705)[_0x44d51c(0x1f7)](_0x35bd92)){const _0x44cf93=this[_0x44d51c(0x424)][_0x44d51c(0x3bf)](_0x5c8705)||new Set();_0x44cf93['add'](_0x35bd92),this[_0x44d51c(0x424)][_0x44d51c(0x21e)](_0x5c8705,_0x44cf93),this[_0x44d51c(0x276)](_0x35bd92);}}),_0x1b8993||this[_0x72ccce(0x36b)]({'type':0x0,'memberID':this[_0x72ccce(0x247)],'unitIDs':[...this[_0x72ccce(0x248)]],'isForwarded':!0x0});}[_0x3800a1(0x276)](_0x10dcdf){const _0x59d719=_0x3800a1;this[_0x59d719(0x2fe)](_0x10dcdf);const _0x9b0962=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x5e9ae2=>{_0x5e9ae2['delete'](_0x10dcdf);});},Me*0x2);this['_clearOtherTimers']['set'](_0x10dcdf,_0x9b0962);}[_0x3800a1(0x2fe)](_0x5d6d13){const _0x520bd0=_0x3800a1;if(this['_clearOtherTimers'][_0x520bd0(0x1f7)](_0x5d6d13)){const _0x5efeec=this[_0x520bd0(0x443)]['get'](_0x5d6d13);_0x5efeec&&window[_0x520bd0(0x2bd)](_0x5efeec),this['_clearOtherTimers'][_0x520bd0(0x21e)](_0x5d6d13,null);}}['_handleLeaveEvent'](_0x8c0706){const _0x3c5ea9=_0x3800a1,{memberID:_0xaa0d44,unitIDs:_0xdf718f}=_0x8c0706;_0xdf718f['forEach'](_0x153833=>{const _0x2cfffe=_0x4499;var _0x47caad;const _0x216505=this[_0x2cfffe(0x424)]['get'](_0x153833);_0x216505&&(_0x216505[_0x2cfffe(0x37b)](_0xaa0d44),(_0x47caad=this[_0x2cfffe(0x3d4)](_0x153833))==null||_0x47caad[_0x2cfffe(0x3ee)](_0x216505[_0x2cfffe(0x33f)]===0x0?u[_0x2cfffe(0x44d)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x2cfffe(0x3dd)]));}),this[_0x3c5ea9(0x2fe)](_0xaa0d44);}[_0x3800a1(0x37c)](_0x17e80f){const _0xe4eb25=_0x3800a1;this[_0xe4eb25(0x276)](_0x17e80f[_0xe4eb25(0x281)]);}[_0x3800a1(0x36b)](_0x566cc1){const _0x4b610c=_0x3800a1;localStorage['setItem'](Le,JSON[_0x4b610c(0x3ad)](_0x566cc1));}[_0x3800a1(0x25b)](){const _0xd6c30d=_0x3800a1;this[_0xd6c30d(0x21b)]=window[_0xd6c30d(0x3af)](()=>{const _0x1121db=_0xd6c30d;this[_0x1121db(0x36b)]({'type':0x2,'memberID':this[_0x1121db(0x247)]});},Me);}['_ensureSubject'](_0x3387ae){const _0x27995b=_0x3800a1;return this['_unitStatus'][_0x27995b(0x1f7)](_0x3387ae)||this[_0x27995b(0x282)][_0x27995b(0x21e)](_0x3387ae,new d[(_0x27995b(0x34c))](u[_0x27995b(0x44d)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus']['get'](_0x3387ae);}}var je=(_0x23b6fc=>(_0x23b6fc[_0x23b6fc[_0x3800a1(0x226)]=0x0]='UNDEFINED',_0x23b6fc[_0x23b6fc['OK']=0x1]='OK',_0x23b6fc[_0x23b6fc['INTERNAL_ERROR']=0x2]=_0x3800a1(0x211),_0x23b6fc[_0x23b6fc[_0x3800a1(0x3b0)]=0x3]='PERMISSION_DENIED',_0x23b6fc[_0x23b6fc[_0x3800a1(0x272)]=0x4]='NOT_FOUND',_0x23b6fc[_0x23b6fc[_0x3800a1(0x220)]=0x5]=_0x3800a1(0x220),_0x23b6fc[_0x23b6fc[_0x3800a1(0x22d)]=0x6]=_0x3800a1(0x22d),_0x23b6fc[_0x23b6fc[_0x3800a1(0x328)]=0x7]='INVALID_ARGUMENT',_0x23b6fc[_0x23b6fc[_0x3800a1(0x3f6)]=0x8]=_0x3800a1(0x3f6),_0x23b6fc[_0x23b6fc[_0x3800a1(0x245)]=0x9]=_0x3800a1(0x245),_0x23b6fc[_0x23b6fc[_0x3800a1(0x254)]=0xa]='LOGIN_FAILED',_0x23b6fc[_0x23b6fc[_0x3800a1(0x42c)]=0xb]=_0x3800a1(0x42c),_0x23b6fc[_0x23b6fc['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x3800a1(0x3e9),_0x23b6fc[_0x23b6fc[_0x3800a1(0x400)]=0xd]=_0x3800a1(0x400),_0x23b6fc[_0x23b6fc[_0x3800a1(0x394)]=0xe]=_0x3800a1(0x394),_0x23b6fc[_0x23b6fc['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x23b6fc[_0x23b6fc['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x23b6fc[_0x23b6fc[_0x3800a1(0x2f6)]=0x1772]=_0x3800a1(0x2f6),_0x23b6fc[_0x23b6fc['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x3800a1(0x392),_0x23b6fc[_0x23b6fc[_0x3800a1(0x2ea)]=0x1b59]=_0x3800a1(0x2ea),_0x23b6fc[_0x23b6fc[_0x3800a1(0x2e3)]=0x1b5a]=_0x3800a1(0x2e3),_0x23b6fc[_0x23b6fc[_0x3800a1(0x1ff)]=0x1b5b]=_0x3800a1(0x1ff),_0x23b6fc[_0x23b6fc['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3800a1(0x367),_0x23b6fc[_0x23b6fc['APPLY_DUPLICATED']=0x1b5d]=_0x3800a1(0x285),_0x23b6fc[_0x23b6fc[_0x3800a1(0x24a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x23b6fc[_0x23b6fc[_0x3800a1(0x223)]=0x2329]=_0x3800a1(0x223),_0x23b6fc[_0x23b6fc['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x3800a1(0x230),_0x23b6fc[_0x23b6fc[_0x3800a1(0x390)]=0x232b]=_0x3800a1(0x390),_0x23b6fc[_0x23b6fc[_0x3800a1(0x43a)]=0x232c]=_0x3800a1(0x43a),_0x23b6fc[_0x23b6fc[_0x3800a1(0x21c)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x23b6fc[_0x23b6fc['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x3800a1(0x458),_0x23b6fc[_0x23b6fc[_0x3800a1(0x202)]=0x2712]=_0x3800a1(0x202),_0x23b6fc[_0x23b6fc['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3800a1(0x330),_0x23b6fc[_0x23b6fc[_0x3800a1(0x382)]=0x2714]=_0x3800a1(0x382),_0x23b6fc[_0x23b6fc[_0x3800a1(0x403)]=0x271a]=_0x3800a1(0x403),_0x23b6fc[_0x23b6fc['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x23b6fc[_0x23b6fc[_0x3800a1(0x306)]=0x271c]=_0x3800a1(0x306),_0x23b6fc[_0x23b6fc['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x3800a1(0x3dc),_0x23b6fc[_0x23b6fc[_0x3800a1(0x38e)]=0x271e]=_0x3800a1(0x38e),_0x23b6fc[_0x23b6fc[_0x3800a1(0x442)]=0x271f]=_0x3800a1(0x442),_0x23b6fc[_0x23b6fc[_0x3800a1(0x411)]=0x2720]=_0x3800a1(0x411),_0x23b6fc[_0x23b6fc['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x3800a1(0x2be),_0x23b6fc[_0x23b6fc[_0x3800a1(0x241)]=0x2ee1]=_0x3800a1(0x241),_0x23b6fc[_0x23b6fc[_0x3800a1(0x370)]=0x2ee2]=_0x3800a1(0x370),_0x23b6fc[_0x23b6fc[_0x3800a1(0x351)]=0x2ee3]=_0x3800a1(0x351),_0x23b6fc[_0x23b6fc[_0x3800a1(0x21f)]=0x2ee4]=_0x3800a1(0x21f),_0x23b6fc[_0x23b6fc[_0x3800a1(0x345)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x23b6fc[_0x23b6fc[_0x3800a1(0x336)]=0x32c9]=_0x3800a1(0x336),_0x23b6fc[_0x23b6fc[_0x3800a1(0x2b3)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x23b6fc[_0x23b6fc[_0x3800a1(0x2f4)]=0x32cb]=_0x3800a1(0x2f4),_0x23b6fc[_0x23b6fc[_0x3800a1(0x444)]=-0x1]=_0x3800a1(0x444),_0x23b6fc))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0xfb8f86,_0x4b2a44,_0x148acc,_0xdf1e86)=>{const _0xa5823d=_0x3800a1;for(var _0x337c1a=_0xdf1e86>0x1?void 0x0:_0xdf1e86?ns(_0x4b2a44,_0x148acc):_0x4b2a44,_0x426297=_0xfb8f86[_0xa5823d(0x2c4)]-0x1,_0x461392;_0x426297>=0x0;_0x426297--)(_0x461392=_0xfb8f86[_0x426297])&&(_0x337c1a=_0x461392(_0x337c1a)||_0x337c1a);return _0x337c1a;},ue=(_0x1884b9,_0x2bf8c0)=>(_0x11d531,_0xe63a21)=>_0x2bf8c0(_0x11d531,_0xe63a21,_0x1884b9);exports[_0x3800a1(0x20a)]=class extends a[_0x3800a1(0x24d)]{constructor(_0x326a7c,_0x2dddcb,_0x28a2ae){const _0x1fada8=_0x3800a1;super(),this[_0x1fada8(0x32b)]=_0x326a7c,this[_0x1fada8(0x275)]=_0x2dddcb,this[_0x1fada8(0x26c)]=_0x28a2ae;}async[_0x3800a1(0x3de)](_0x33ff02,_0x531714,_0x57463c,..._0x2a30f8){const _0x4565e9=_0x3800a1;var _0x1b6673,_0xf9f53f,_0x330a3e,_0x35fe0e;const _0xd4ce6d=this[_0x4565e9(0x32b)]['getFocusedUnit']();if(!_0xd4ce6d)throw new Error(_0x4565e9(0x347));const _0x319f34=((_0x1b6673=this[_0x4565e9(0x26c)]['getConfig'](u[_0x4565e9(0x393)]))!=null?_0x1b6673:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x33ff02+_0x4565e9(0x3bb)+_0x531714,_0x1c6449=new URL(window[_0x4565e9(0x25c)][_0x4565e9(0x23c)]),_0x32c84b={'scriptId':_0x33ff02,'runId':(_0xf9f53f=_0x1c6449['searchParams']['get'](_0x4565e9(0x277)))!=null?_0xf9f53f:'','function':_0x531714,'unitId':_0xd4ce6d[_0x4565e9(0x1f2)](),'argsOfFunction':JSON[_0x4565e9(0x3ad)](_0x2a30f8),'invokeId':(_0x330a3e=_0x57463c[_0x4565e9(0x2fd)])!=null?_0x330a3e:'','executionId':(_0x35fe0e=_0x57463c[_0x4565e9(0x3f4)])!=null?_0x35fe0e:''};try{const _0x1bbd24=await this['_httpService']['post'](_0x319f34,{'body':_0x32c84b});return _0x1bbd24[_0x4565e9(0x3d2)][_0x4565e9(0x3ef)]&&_0x1bbd24[_0x4565e9(0x3d2)][_0x4565e9(0x3ef)][_0x4565e9(0x3c9)]!==je['OK']?_0x4565e9(0x28e):_0x1bbd24['body'][_0x4565e9(0x267)];}catch{return _0x4565e9(0x28e);}}},exports[_0x3800a1(0x20a)]=rs([ue(0x0,a[_0x3800a1(0x26a)]),ue(0x1,a[_0x3800a1(0x22f)](G[_0x3800a1(0x2fb)])),ue(0x2,a[_0x3800a1(0x410)])],exports[_0x3800a1(0x20a)]),exports[_0x3800a1(0x1f4)]=xe,exports['IURLService']=Ee,exports[_0x3800a1(0x3d7)]=we,exports[_0x3800a1(0x212)]=is,exports[_0x3800a1(0x396)]=Be;
|
|
1
|
+
'use strict';const _0x13cd8a=_0x5703;(function(_0x53432a,_0x52e8a5){const _0x35713d=_0x5703,_0x3123a8=_0x53432a();while(!![]){try{const _0x4ac394=parseInt(_0x35713d(0x380))/0x1*(parseInt(_0x35713d(0x391))/0x2)+parseInt(_0x35713d(0x376))/0x3*(parseInt(_0x35713d(0x3e1))/0x4)+-parseInt(_0x35713d(0x346))/0x5+parseInt(_0x35713d(0x2f9))/0x6+-parseInt(_0x35713d(0x278))/0x7+-parseInt(_0x35713d(0x390))/0x8*(parseInt(_0x35713d(0x2d6))/0x9)+parseInt(_0x35713d(0x3ef))/0xa*(parseInt(_0x35713d(0x3dc))/0xb);if(_0x4ac394===_0x52e8a5)break;else _0x3123a8['push'](_0x3123a8['shift']());}catch(_0x39bfa9){_0x3123a8['push'](_0x3123a8['shift']());}}}(_0x1e89,0x7b612));var Ve=Object[_0x13cd8a(0x247)],Xe=(_0x158669,_0x266a36,_0x1e9787)=>_0x266a36 in _0x158669?Ve(_0x158669,_0x266a36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e9787}):_0x158669[_0x266a36]=_0x1e9787,h=(_0x337979,_0x249f31,_0x149758)=>Xe(_0x337979,typeof _0x249f31!=_0x13cd8a(0x27e)?_0x249f31+'':_0x249f31,_0x149758);Object[_0x13cd8a(0x247)](exports,Symbol['toStringTag'],{'value':'Module'});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x13cd8a(0x2a3)],ze=(_0x46d877,_0xcc6d5c,_0x354327,_0x9d0311)=>{const _0x466372=_0x13cd8a;for(var _0x41aaf4=_0x9d0311>0x1?void 0x0:_0x9d0311?qe(_0xcc6d5c,_0x354327):_0xcc6d5c,_0x298358=_0x46d877[_0x466372(0x29a)]-0x1,_0xf2b267;_0x298358>=0x0;_0x298358--)(_0xf2b267=_0x46d877[_0x298358])&&(_0x41aaf4=_0xf2b267(_0x41aaf4)||_0x41aaf4);return _0x41aaf4;},Oe=(_0x268554,_0x71758b)=>(_0x425e3b,_0x5516aa)=>_0x71758b(_0x425e3b,_0x5516aa,_0x268554);let de=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x4f8ae5,_0x46015f){const _0x4035e1=_0x13cd8a;super(),this[_0x4035e1(0x360)]=_0x4f8ae5,this[_0x4035e1(0x330)]=_0x46015f,this[_0x4035e1(0x3e0)]();}['_init'](){const _0x28c838=_0x13cd8a,_0x34a7e6=this;this[_0x28c838(0x22b)](this[_0x28c838(0x360)][_0x28c838(0x29b)]({'onBeforePasteImage':async _0x9edb1d=>{const _0x263f8b=_0x28c838,_0x5f3dec=await _0x34a7e6[_0x263f8b(0x330)][_0x263f8b(0x222)](_0x9edb1d);return _0x5f3dec?{'source':_0x5f3dec[_0x263f8b(0x1ff)],'imageSourceType':_0x5f3dec[_0x263f8b(0x3f8)]}:null;}}));}};de=ze([Oe(0x0,E[_0x13cd8a(0x23d)]),Oe(0x1,Ge[_0x13cd8a(0x1e8)])],de);function _0x5703(_0x4fdd2c,_0x475a04){const _0x1e89b8=_0x1e89();return _0x5703=function(_0x5703a6,_0x3a2764){_0x5703a6=_0x5703a6-0x1c1;let _0x35844a=_0x1e89b8[_0x5703a6];return _0x35844a;},_0x5703(_0x4fdd2c,_0x475a04);}const Te=[_0x13cd8a(0x2af),_0x13cd8a(0x3ab),_0x13cd8a(0x311),_0x13cd8a(0x2f3),_0x13cd8a(0x2cc),_0x13cd8a(0x39a)];class me extends a[_0x13cd8a(0x2fe)]{constructor(){const _0x5d3e7e=_0x13cd8a;super(...arguments),h(this,_0x5d3e7e(0x2b3),new Map()),h(this,'_colorIndex',0x0);}[_0x13cd8a(0x3e2)](_0x1a3acc){const _0x54350a=_0x13cd8a;if(this[_0x54350a(0x2b3)][_0x54350a(0x315)](_0x1a3acc))return this[_0x54350a(0x2b3)][_0x54350a(0x384)](_0x1a3acc);const _0x4a6e37=Te[this[_0x54350a(0x2c8)]];return this[_0x54350a(0x2c8)]=(this[_0x54350a(0x2c8)]+0x1)%Te['length'],this[_0x54350a(0x2b3)][_0x54350a(0x2f1)](_0x1a3acc,_0x4a6e37),_0x4a6e37;}}function Pe(_0x231430){const _0x24cddc=_0x13cd8a;let _0x32c8fd='';for(const _0x468223 of _0x231430){const {startOffset:_0x100b01,endOffset:_0x4a9b19,isActive:_0x5a211d,rangeType:_0x157089,segmentId:_0x9d139f,segmentPage:_0x365aa4}=_0x468223;_0x32c8fd[_0x24cddc(0x29a)]&&(_0x32c8fd+=','),_0x32c8fd+=_0x100b01+':'+_0x4a9b19+':'+(_0x5a211d?'1':'0')+':'+_0x157089+':'+_0x9d139f+':'+_0x365aa4;}return _0x32c8fd;}function Je(_0x476ef5){const _0x200507=_0x13cd8a,_0xb857f9=_0x476ef5[_0x200507(0x30c)](','),_0x22bd14=[];for(const _0x88ce71 of _0xb857f9){const [_0x209e38,_0x1e8c90,_0x5336e7,_0xa9b60f,_0x390ab1,_0x4f647e]=_0x88ce71[_0x200507(0x30c)](':');_0x22bd14['push']({'startOffset':Number(_0x209e38),'endOffset':Number(_0x1e8c90),'collapsed':_0x209e38===_0x1e8c90,'isActive':_0x5336e7==='1','rangeType':_0xa9b60f===a[_0x200507(0x1c1)]['TEXT']?a[_0x200507(0x1c1)][_0x200507(0x305)]:a[_0x200507(0x1c1)][_0x200507(0x317)],'segmentId':typeof _0x390ab1==_0x200507(0x43f)?String(_0x390ab1):'','segmentPage':Number(_0x4f647e!=null?_0x4f647e:-0x1)});}return _0x22bd14[_0x200507(0x1c3)](_0x12bb1e=>_0x12bb1e[_0x200507(0x3fc)])||(_0x22bd14[0x0]['isActive']=!0x0),_0x22bd14;}class Ce extends a[_0x13cd8a(0x2b1)]{constructor(){const _0x221017=_0x13cd8a;super(...arguments),h(this,_0x221017(0x363),new d[(_0x221017(0x2ab))](null)),h(this,_0x221017(0x3d7),this[_0x221017(0x363)][_0x221017(0x2d3)]());}[_0x13cd8a(0x2e3)](_0x2502bb){const _0x3c1d19=_0x13cd8a,{unitID:_0xa79ed,memberID:_0x3c0c85,textRanges:_0x25ac22}=_0x2502bb,_0x4de8cf=Pe(_0x25ac22);if(_0x4de8cf==='')return;const _0x5c4fbb={'unitID':_0xa79ed,'memberID':_0x3c0c85,'selection':_0x4de8cf};this[_0x3c1d19(0x363)][_0x3c1d19(0x331)](_0x5c4fbb);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x128308,_0x43901c,_0x5da02d,_0x5f05ff)=>{const _0x10232a=_0x13cd8a;for(var _0xde43e8=_0x5f05ff>0x1?void 0x0:_0x5f05ff?Ze(_0x43901c,_0x5da02d):_0x43901c,_0x2bd46a=_0x128308[_0x10232a(0x29a)]-0x1,_0x50177a;_0x2bd46a>=0x0;_0x2bd46a--)(_0x50177a=_0x128308[_0x2bd46a])&&(_0xde43e8=_0x50177a(_0xde43e8)||_0xde43e8);return _0xde43e8;},L=(_0x252969,_0x53bad5)=>(_0xec6606,_0x16a5ad)=>_0x53bad5(_0xec6606,_0x16a5ad,_0x252969);const et=0x12c,tt=0x64;let Ie=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x5779c9,_0x509ae1,_0x4b532b,_0x43774d,_0x40576e,_0x5c8150,_0x33af25,_0x41882e,_0xe944b8){const _0x2a8e1b=_0x13cd8a;super(),h(this,_0x2a8e1b(0x350),!0x1),h(this,'_init',!0x1),h(this,_0x2a8e1b(0x1f3),new d[(_0x2a8e1b(0x2ab))](new Map())),h(this,'cursorInfo$',this[_0x2a8e1b(0x1f3)]['asObservable']()),h(this,_0x2a8e1b(0x235),new d[(_0x2a8e1b(0x2ab))]([])),h(this,_0x2a8e1b(0x297),this[_0x2a8e1b(0x235)][_0x2a8e1b(0x329)](d[_0x2a8e1b(0x1c5)](et))),h(this,_0x2a8e1b(0x3f3),a[_0x2a8e1b(0x22a)](_0x822ccd=>{const _0x49b7f8=_0x2a8e1b,_0x2c31ff={'eventID':m[_0x49b7f8(0x254)][_0x49b7f8(0x2cd)],'data':{'unitID':this['unitID'],'memberID':this[_0x49b7f8(0x3a0)][_0x49b7f8(0x261)](),'selection':Pe(_0x822ccd)}};this['_session'][_0x49b7f8(0x421)](_0x2c31ff,this[_0x49b7f8(0x268)]);},tt)),(this[_0x2a8e1b(0x268)]=_0x5779c9,this['_session']=_0x509ae1,this[_0x2a8e1b(0x253)]=_0x4b532b,this[_0x2a8e1b(0x24b)]=_0x43774d,this['_memberService']=_0x40576e,this[_0x2a8e1b(0x382)]=_0x5c8150,this[_0x2a8e1b(0x36e)]=_0x33af25,this[_0x2a8e1b(0x2c3)]=_0x41882e,this['_commandService']=_0xe944b8);}get['cursorInfo'](){const _0x54c8fa=_0x13cd8a;return this[_0x54c8fa(0x1f3)][_0x54c8fa(0x383)]();}get[_0x13cd8a(0x324)](){const _0x82cb31=_0x13cd8a;return this[_0x82cb31(0x235)]['getValue']();}['dispose'](){const _0x254bc8=_0x13cd8a;super[_0x254bc8(0x41d)](),this['_cursorInfo$'][_0x254bc8(0x331)](new Map()),this[_0x254bc8(0x1f3)][_0x254bc8(0x377)](),this[_0x254bc8(0x235)][_0x254bc8(0x331)]([]),this[_0x254bc8(0x235)][_0x254bc8(0x377)]();}[_0x13cd8a(0x2e9)](){const _0x380352=_0x13cd8a;this['_init']||(this[_0x380352(0x3e0)]=!0x0,this['_session']['sessionStatus$'][_0x380352(0x329)](d[_0x380352(0x30a)](this['dispose$']))['subscribe'](_0x11f02d=>{const _0x32a9ca=_0x380352;_0x11f02d===u[_0x32a9ca(0x3db)][_0x32a9ca(0x430)]?this[_0x32a9ca(0x3a1)]():this[_0x32a9ca(0x21e)]();}),this[_0x380352(0x3a0)][_0x380352(0x358)][_0x380352(0x329)](d[_0x380352(0x30a)](this[_0x380352(0x1dd)]))['subscribe'](_0xfa42a1=>{const _0x46ed45=_0x380352,_0x1fdde0=_0xfa42a1['eventID'];_0x1fdde0===m[_0x46ed45(0x254)]['UPDATE_CURSOR']&&this[_0x46ed45(0x262)](_0xfa42a1),_0x1fdde0===m[_0x46ed45(0x254)][_0x46ed45(0x20b)]&&this[_0x46ed45(0x1c8)](_0xfa42a1);}),this[_0x380352(0x22b)](this[_0x380352(0x39e)]['onCommandExecuted'](_0x1c4c9d=>{const _0x959724=_0x380352,_0x3d8006=_0x1c4c9d[_0x959724(0x357)];_0x3d8006!=null&&this['_online']&&_0x1c4c9d['id']===Y[_0x959724(0x20f)]['id']&&_0x3d8006['unitId']===this['unitID']&&_0x3d8006[_0x959724(0x2ca)]===!0x1&&_0x3d8006[_0x959724(0x432)][_0x959724(0x29a)]>0x0&&this[_0x959724(0x3f3)](_0x3d8006['ranges']);})),this[_0x380352(0x382)][_0x380352(0x3d7)]['pipe'](d['takeUntil'](this['dispose$']))['subscribe'](_0x145e34=>{const _0x50ce75=_0x380352;if((_0x145e34==null?void 0x0:_0x145e34[_0x50ce75(0x268)])!==this[_0x50ce75(0x268)])return;const _0x49ef15={'eventID':m[_0x50ce75(0x254)]['UPDATE_CURSOR'],'data':_0x145e34};this[_0x50ce75(0x262)](_0x49ef15);}),this[_0x380352(0x22b)](this[_0x380352(0x39e)][_0x380352(0x1fd)](_0x432189=>{const _0x110e7d=_0x380352;if(_0x432189[_0x110e7d(0x357)]==null)return;const _0xe90723=_0x432189[_0x110e7d(0x357)];if(_0x432189['id']!==Y[_0x110e7d(0x1e1)]['id']||_0xe90723[_0x110e7d(0x41f)]!==this[_0x110e7d(0x268)])return;const _0x590434={'id':_0x110e7d(0x2c1),'params':_0xe90723},_0x308ec6=this[_0x110e7d(0x433)];for(const [_0x54fadd,_0x2384e9]of _0x308ec6){const _0x5c9d47={'id':_0x110e7d(0x2c1),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2384e9[_0x110e7d(0x432)]}},_0x1c6466=this[_0x110e7d(0x36e)][_0x110e7d(0x25f)](_0x590434,_0x5c9d47,!0x1);if(m[_0x110e7d(0x38d)](_0x1c6466))throw _0x1c6466['error'];_0x308ec6[_0x110e7d(0x2f1)](_0x54fadd,{..._0x2384e9,'ranges':_0x1c6466[_0x110e7d(0x37b)][_0x110e7d(0x357)][_0x110e7d(0x38c)]});}queueMicrotask(()=>{const _0x3df58f=_0x110e7d;this[_0x3df58f(0x1f3)][_0x3df58f(0x331)](_0x308ec6);});})));}[_0x13cd8a(0x262)](_0x31aa7c){const _0x3222d2=_0x13cd8a;var _0x409779,_0x4dba9e;const {memberID:_0x563c29,selection:_0x5c7077}=_0x31aa7c['data'],_0x49e28f=Je(_0x5c7077),_0x31663e=(_0x4dba9e=(_0x409779=this[_0x3222d2(0x3cb)][_0x3222d2(0x24d)](this['unitID'],_0x563c29))==null?void 0x0:_0x409779[_0x3222d2(0x257)])!=null?_0x4dba9e:_0x3222d2(0x211),_0x547545={'color':this[_0x3222d2(0x24b)][_0x3222d2(0x3e2)](_0x563c29),'name':_0x31663e,'ranges':_0x49e28f},_0x5bff39=this[_0x3222d2(0x433)];_0x5bff39[_0x3222d2(0x2f1)](_0x563c29,_0x547545),this[_0x3222d2(0x1f3)][_0x3222d2(0x331)](_0x5bff39);}[_0x13cd8a(0x1c8)](_0x2426a2){const _0x3c1f9d=_0x13cd8a,{memberID:_0x8a8d77}=_0x2426a2[_0x3c1f9d(0x2ac)],_0x43d7d8=this[_0x3c1f9d(0x433)];_0x43d7d8[_0x3c1f9d(0x2a4)](_0x8a8d77),this['_cursorInfo$'][_0x3c1f9d(0x331)](_0x43d7d8);}[_0x13cd8a(0x3a1)](){const _0x3bac63=_0x13cd8a;var _0x3516c2;if(this['_online']=!0x0,((_0x3516c2=this[_0x3bac63(0x2c3)][_0x3bac63(0x3b6)]())==null?void 0x0:_0x3516c2[_0x3bac63(0x313)]())!==this[_0x3bac63(0x268)])return;const _0x530d05=this[_0x3bac63(0x253)][_0x3bac63(0x384)](Y[_0x3bac63(0x33a)])[_0x3bac63(0x408)]();Array['isArray'](_0x530d05)&&_0x530d05[_0x3bac63(0x29a)]>0x0&&this[_0x3bac63(0x3f3)](_0x530d05);}[_0x13cd8a(0x21e)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x13cd8a(0x248)](u['MemberService'])),L(0x5,a[_0x13cd8a(0x248)](Ce)),L(0x6,m[_0x13cd8a(0x225)]),L(0x7,a[_0x13cd8a(0x362)]),L(0x8,a[_0x13cd8a(0x209)])],Ie);var st=Object[_0x13cd8a(0x2a3)],it=(_0x3b29f7,_0x2715ae,_0x6a77bc,_0x201645)=>{for(var _0x2216a1=_0x201645>0x1?void 0x0:_0x201645?st(_0x2715ae,_0x6a77bc):_0x2715ae,_0x33c36f=_0x3b29f7['length']-0x1,_0x4e990b;_0x33c36f>=0x0;_0x33c36f--)(_0x4e990b=_0x3b29f7[_0x33c36f])&&(_0x2216a1=_0x4e990b(_0x2216a1)||_0x2216a1);return _0x2216a1;},A=(_0x4ee119,_0x26ac76)=>(_0x5dbb76,_0x464ba5)=>_0x26ac76(_0x5dbb76,_0x464ba5,_0x4ee119);const nt=0x12c,rt=0x64,ot=()=>{let _0x3d2d0b=[],_0x3ee8aa=!0x1;return _0x4fa24d=>{const _0x4aaf82=_0x5703;_0x3d2d0b[_0x4aaf82(0x28f)](_0x4fa24d),_0x3ee8aa||(_0x3ee8aa=!0x0,setTimeout(()=>{const _0x396f66=_0x4aaf82;_0x3d2d0b[_0x396f66(0x3e3)](_0x796615=>_0x796615()),_0x3d2d0b=[],_0x3ee8aa=!0x1;}));};};let Se=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x117b8c,_0x432d86,_0x1de3a6,_0x1eff53,_0x3296e2,_0x48d2ad,_0x5697db,_0xfe2c2f){const _0x512d3d=_0x13cd8a;super(),h(this,'_online',!0x1),h(this,_0x512d3d(0x3e0),!0x1),h(this,_0x512d3d(0x1f3),new d[(_0x512d3d(0x2ab))](new Map())),h(this,'cursorInfo$',this[_0x512d3d(0x1f3)][_0x512d3d(0x2d3)]()),h(this,_0x512d3d(0x235),new d[(_0x512d3d(0x2ab))]([])),h(this,_0x512d3d(0x297),this[_0x512d3d(0x235)][_0x512d3d(0x329)](d[_0x512d3d(0x1c5)](nt))),h(this,_0x512d3d(0x3f3),a[_0x512d3d(0x22a)]((_0x56779d,_0x4e87d9)=>{const _0x3ac935=_0x512d3d,_0x920e31={'eventID':m[_0x3ac935(0x254)][_0x3ac935(0x2cd)],'data':{'unitID':this[_0x3ac935(0x268)],'memberID':this[_0x3ac935(0x3a0)][_0x3ac935(0x261)](),'selection':be[_0x3ac935(0x3a7)](_0x56779d,_0x4e87d9['range'])}};this['_session'][_0x3ac935(0x421)](_0x920e31,this['unitID']);},rt)),(this[_0x512d3d(0x268)]=_0x117b8c,this[_0x512d3d(0x3a0)]=_0x432d86,this[_0x512d3d(0x253)]=_0x1de3a6,this[_0x512d3d(0x24b)]=_0x1eff53,this[_0x512d3d(0x3cb)]=_0x3296e2,this[_0x512d3d(0x2c3)]=_0x48d2ad,this[_0x512d3d(0x39e)]=_0x5697db,this[_0x512d3d(0x2c0)]=_0xfe2c2f);}get[_0x13cd8a(0x433)](){const _0x863f30=_0x13cd8a;return this[_0x863f30(0x1f3)]['getValue']();}get[_0x13cd8a(0x324)](){const _0x14617c=_0x13cd8a;return this['_roomMembers$'][_0x14617c(0x383)]();}[_0x13cd8a(0x41d)](){const _0x429f3b=_0x13cd8a;super[_0x429f3b(0x41d)](),this[_0x429f3b(0x1f3)][_0x429f3b(0x331)](new Map()),this[_0x429f3b(0x1f3)][_0x429f3b(0x377)](),this[_0x429f3b(0x235)][_0x429f3b(0x331)]([]),this[_0x429f3b(0x235)]['complete']();}[_0x13cd8a(0x2e9)](){const _0x288fa1=_0x13cd8a;this['_init']||(this[_0x288fa1(0x3e0)]=!0x0,this['_session'][_0x288fa1(0x42a)]['pipe'](d[_0x288fa1(0x30a)](this[_0x288fa1(0x1dd)]))[_0x288fa1(0x29f)](_0x1abc87=>{const _0x1fc9bd=_0x288fa1;_0x1abc87===u[_0x1fc9bd(0x3db)][_0x1fc9bd(0x430)]?this[_0x1fc9bd(0x3a1)]():this[_0x1fc9bd(0x21e)]();}),this[_0x288fa1(0x3a0)][_0x288fa1(0x358)]['pipe'](d[_0x288fa1(0x30a)](this[_0x288fa1(0x1dd)]))[_0x288fa1(0x29f)](_0x55e5d0=>{const _0x59ac68=_0x288fa1,_0x4925f1=_0x55e5d0[_0x59ac68(0x2bc)];_0x4925f1===m[_0x59ac68(0x254)][_0x59ac68(0x2cd)]&&this[_0x59ac68(0x262)](_0x55e5d0),_0x4925f1===m[_0x59ac68(0x254)][_0x59ac68(0x20b)]&&this[_0x59ac68(0x1c8)](_0x55e5d0);}),this[_0x288fa1(0x27d)](),this[_0x288fa1(0x22b)](this[_0x288fa1(0x39e)][_0x288fa1(0x1fd)](_0x1d38f7=>{const _0x2ac2d3=_0x288fa1;if(this[_0x2ac2d3(0x350)]&&_0x1d38f7['id']===g[_0x2ac2d3(0x218)]['id']&&_0x1d38f7['params'][_0x2ac2d3(0x41f)]===this[_0x2ac2d3(0x268)]){const _0x542613=_0x1d38f7[_0x2ac2d3(0x357)];this[_0x2ac2d3(0x3f3)](_0x542613[_0x2ac2d3(0x407)],_0x542613[_0x2ac2d3(0x2c4)][0x0]);}})));}[_0x13cd8a(0x262)](_0x2237e2){const _0x58bd92=_0x13cd8a;var _0x5e979a,_0x311e82;const {memberID:_0x520506,selection:_0x1838eb}=_0x2237e2['data'],{sheetName:_0x530529,range:_0x55e2e3}=be[_0x58bd92(0x1cf)](_0x1838eb),_0x205a13={'name':(_0x311e82=(_0x5e979a=this['_memberService'][_0x58bd92(0x24d)](this['unitID'],_0x520506))==null?void 0x0:_0x5e979a[_0x58bd92(0x257)])!=null?_0x311e82:_0x58bd92(0x211),'range':this[_0x58bd92(0x31b)](_0x530529,_0x55e2e3),'sheetID':_0x530529,'color':this[_0x58bd92(0x24b)][_0x58bd92(0x3e2)](_0x520506),'selection':_0x1838eb},_0x2f6b81=this[_0x58bd92(0x433)];_0x2f6b81[_0x58bd92(0x2f1)](_0x520506,_0x205a13),this[_0x58bd92(0x1f3)][_0x58bd92(0x331)](_0x2f6b81);}[_0x13cd8a(0x1c8)](_0x260259){const _0x1ee923=_0x13cd8a,{memberID:_0x2b02dd}=_0x260259[_0x1ee923(0x2ac)],_0x41923c=this['cursorInfo'];_0x41923c[_0x1ee923(0x2a4)](_0x2b02dd),this[_0x1ee923(0x1f3)][_0x1ee923(0x331)](_0x41923c);}[_0x13cd8a(0x31b)](_0x9de096,_0x3c91ff){const _0x121994=_0x13cd8a;var _0xcd7311,_0x292642;const _0x4e03f0=(_0x292642=(_0xcd7311=this[_0x121994(0x2c3)][_0x121994(0x3b8)](this[_0x121994(0x268)]))==null?void 0x0:_0xcd7311[_0x121994(0x399)](_0x9de096))==null?void 0x0:_0x292642[_0x121994(0x263)]();return(_0x4e03f0==null?void 0x0:_0x4e03f0[_0x121994(0x23f)](_0x2eed7c=>a[_0x121994(0x343)][_0x121994(0x43d)](_0x2eed7c,_0x3c91ff)))||_0x3c91ff;}[_0x13cd8a(0x27d)](){const _0x36051b=_0x13cd8a,_0x138140=new a[(_0x36051b(0x31e))](),_0x73d3bb=ot(),_0xf689dd=()=>{const _0x2e393c=_0x36051b;_0x138140[_0x2e393c(0x41d)]();const _0x253f06=(_0x1de073,_0x4ad296,_0x23c20a,_0x4e0140)=>{const _0x5b3e46=_0x2e393c;let _0x44302c=[];switch(_0x1de073['id']){case g[_0x5b3e46(0x32d)][_0x5b3e46(0x25d)]:{_0x44302c=g[_0x5b3e46(0x31d)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)]['DeleteRangeMoveUpCommandId']:{_0x44302c=g[_0x5b3e46(0x371)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)][_0x5b3e46(0x242)]:{_0x44302c=g['handleInsertCol'](_0x1de073,_0x4e0140);break;}case g['EffectRefRangId'][_0x5b3e46(0x3ee)]:{_0x44302c=g[_0x5b3e46(0x403)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)][_0x5b3e46(0x273)]:{_0x44302c=g[_0x5b3e46(0x26b)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)][_0x5b3e46(0x3a3)]:{_0x44302c=g[_0x5b3e46(0x213)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)][_0x5b3e46(0x24f)]:{_0x44302c=g[_0x5b3e46(0x2f2)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)]['RemoveColCommandId']:{_0x44302c=g[_0x5b3e46(0x2b5)](_0x1de073,_0x4e0140);break;}case g['EffectRefRangId'][_0x5b3e46(0x312)]:{_0x44302c=g[_0x5b3e46(0x420)](_0x1de073,_0x4e0140);break;}}const _0x26d5b0=g['runRefRangeMutations'](_0x44302c,_0x4e0140),_0x89609f=this[_0x5b3e46(0x433)][_0x5b3e46(0x384)](_0x4ad296);if(_0x89609f&&_0x26d5b0){const _0x39a38f={..._0x89609f,'range':_0x26d5b0};this[_0x5b3e46(0x433)][_0x5b3e46(0x2f1)](_0x4ad296,_0x39a38f),_0x73d3bb(()=>{const _0xe56fce=_0x5b3e46,_0x462b18=this['_refRangeService'][_0xe56fce(0x241)](_0x26d5b0,_0x52637f=>(_0x462b18['dispose'](),_0x253f06(_0x52637f,_0x4ad296,_0x23c20a,_0x26d5b0)));_0x138140[_0xe56fce(0x2a1)](_0x462b18);});}return{'redos':[],'undos':[]};};this[_0x2e393c(0x433)][_0x2e393c(0x3e3)]((_0x1b7c5f,_0x2fcf78)=>{const _0x4d85a3=_0x2e393c,{range:_0x2182a5,sheetID:_0x57d155}=_0x1b7c5f,_0x2afefe=this[_0x4d85a3(0x2c0)]['registerRefRange'](_0x2182a5,_0x30b114=>(_0x2afefe[_0x4d85a3(0x41d)](),_0x253f06(_0x30b114,_0x2fcf78,_0x57d155,_0x2182a5)));_0x138140['add'](_0x2afefe);});};this['disposeWithMe'](a[_0x36051b(0x2e4)](this[_0x36051b(0x1f3)]['subscribe'](()=>{_0xf689dd();})));}[_0x13cd8a(0x3a1)](){const _0x2365e4=_0x13cd8a;var _0x5bdb34,_0x72cb8d;if(this[_0x2365e4(0x350)]=!0x0,((_0x5bdb34=this['_univerInstanceService'][_0x2365e4(0x3b6)]())==null?void 0x0:_0x5bdb34[_0x2365e4(0x313)]())!==this[_0x2365e4(0x268)])return;const _0x520f83=(_0x72cb8d=this[_0x2365e4(0x253)][_0x2365e4(0x384)](g[_0x2365e4(0x2ba)])['getCurrentSelections']())==null?void 0x0:_0x72cb8d[0x0],_0x4942b0=this['_univerInstanceService'][_0x2365e4(0x1dc)](a[_0x2365e4(0x1d5)][_0x2365e4(0x3e7)])[_0x2365e4(0x3dd)]();_0x520f83&&_0x4942b0&&this[_0x2365e4(0x3f3)](_0x4942b0['getSheetId'](),_0x520f83);}[_0x13cd8a(0x21e)](){const _0x2fc4d6=_0x13cd8a;this[_0x2fc4d6(0x350)]=!0x1;}};Se=it([A(0x2,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x13cd8a(0x248)](u[_0x13cd8a(0x258)])),A(0x5,a[_0x13cd8a(0x362)]),A(0x6,a['ICommandService']),A(0x7,a[_0x13cd8a(0x248)](g['RefRangeService']))],Se);var at=Object[_0x13cd8a(0x2a3)],ct=(_0x23a698,_0x448acd,_0x4d04be,_0xe127b3)=>{const _0x3b5b1b=_0x13cd8a;for(var _0x2e7672=_0xe127b3>0x1?void 0x0:_0xe127b3?at(_0x448acd,_0x4d04be):_0x448acd,_0x2a64e3=_0x23a698[_0x3b5b1b(0x29a)]-0x1,_0x3ba0d7;_0x2a64e3>=0x0;_0x2a64e3--)(_0x3ba0d7=_0x23a698[_0x2a64e3])&&(_0x2e7672=_0x3ba0d7(_0x2e7672)||_0x2e7672);return _0x2e7672;},ie=(_0x2d681a,_0x415b20)=>(_0x4b85df,_0x40526b)=>_0x415b20(_0x4b85df,_0x40526b,_0x2d681a);let x=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x469908,_0x7c728a,_0x5103c6){const _0x42a7fb=_0x13cd8a;super(),h(this,_0x42a7fb(0x2a2),new Map()),h(this,'_entityInit$',new d['Subject']()),(this[_0x42a7fb(0x2c3)]=_0x469908,this[_0x42a7fb(0x253)]=_0x7c728a,this[_0x42a7fb(0x212)]=_0x5103c6,this[_0x42a7fb(0x3e0)]());}[_0x13cd8a(0x41d)](){const _0x5c6e60=_0x13cd8a;super[_0x5c6e60(0x41d)](),this[_0x5c6e60(0x434)]['complete'](),this['_entities'][_0x5c6e60(0x3e3)](_0x145568=>_0x145568[_0x5c6e60(0x41d)]());}[_0x13cd8a(0x3ca)](_0x5668ea){const _0xc83c27=_0x13cd8a;return this[_0xc83c27(0x2a2)]['has'](_0x5668ea)?this['_entities']['get'](_0x5668ea)['cursorInfo$']:this['_entityInit$'][_0xc83c27(0x329)](d['filter'](_0x1c07b0=>_0x1c07b0[_0xc83c27(0x268)]===_0x5668ea),d[_0xc83c27(0x366)](_0x4041b7=>_0x4041b7[_0xc83c27(0x2ae)]));}[_0x13cd8a(0x3e0)](){const _0x563846=_0x13cd8a;this[_0x563846(0x2c3)]['getTypeOfUnitAdded$'](a[_0x563846(0x1d5)][_0x563846(0x3e7)])[_0x563846(0x329)](d[_0x563846(0x30a)](this[_0x563846(0x1dd)]))[_0x563846(0x29f)](async _0x28c8ca=>{const _0x429382=_0x563846,_0x4c4be4=_0x28c8ca[_0x429382(0x313)](),_0x158d83=await this[_0x429382(0x2e8)](_0x4c4be4);this[_0x429382(0x434)]['next'](_0x158d83),this[_0x429382(0x2a2)][_0x429382(0x2f1)](_0x4c4be4,_0x158d83);}),this[_0x563846(0x2c3)][_0x563846(0x337)](a[_0x563846(0x1d5)][_0x563846(0x3b2)])[_0x563846(0x329)](d[_0x563846(0x30a)](this[_0x563846(0x1dd)]))['pipe'](d[_0x563846(0x1f0)](_0x2eb7b6=>!_0x2eb7b6[_0x563846(0x313)]()[_0x563846(0x2cb)]('__')))['subscribe'](async _0x5006fe=>{const _0x2ff06d=_0x563846,_0x3e3b92=_0x5006fe[_0x2ff06d(0x313)](),_0x2b853d=await this[_0x2ff06d(0x1c6)](_0x3e3b92);this[_0x2ff06d(0x434)][_0x2ff06d(0x331)](_0x2b853d),this[_0x2ff06d(0x2a2)][_0x2ff06d(0x2f1)](_0x3e3b92,_0x2b853d);}),d[_0x563846(0x3c3)](this[_0x563846(0x2c3)][_0x563846(0x3ad)](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0x563846(0x3ad)](a['UniverInstanceType'][_0x563846(0x3e7)]))[_0x563846(0x329)](d[_0x563846(0x30a)](this[_0x563846(0x1dd)]))[_0x563846(0x29f)](_0x5f75a6=>{const _0x5441d7=_0x563846,_0x445ef4=_0x5f75a6['getUnitId'](),_0x52fe61=this['_entities']['get'](_0x445ef4);_0x52fe61&&(_0x52fe61['dispose'](),this[_0x5441d7(0x2a2)][_0x5441d7(0x2a4)](_0x445ef4));});}async[_0x13cd8a(0x2e8)](_0x417582){const _0x5d75f1=_0x13cd8a,_0x8b1ad0=await this[_0x5d75f1(0x212)][_0x5d75f1(0x26e)](_0x417582),_0x48af73=this[_0x5d75f1(0x253)][_0x5d75f1(0x397)](Se,_0x417582,_0x8b1ad0);return _0x48af73['init'](),_0x48af73;}async[_0x13cd8a(0x1c6)](_0x543b1e){const _0x5f1493=_0x13cd8a,_0xb3d9a0=await this['_collabSessionService'][_0x5f1493(0x26e)](_0x543b1e),_0x4828e3=this[_0x5f1493(0x253)][_0x5f1493(0x397)](Ie,_0x543b1e,_0xb3d9a0);return _0x4828e3[_0x5f1493(0x2e9)](),_0x4828e3;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x13cd8a(0x248)](a['Injector'])),ie(0x2,a['Inject'](u[_0x13cd8a(0x38a)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1a8711,_0x2a76c3){const _0x3217cd=_0x13cd8a;let {radius:_0x95af55,width:_0x4ffb9d,height:_0x10e06a}=_0x2a76c3;_0x95af55=_0x95af55!=null?_0x95af55:0x0,_0x4ffb9d=_0x4ffb9d!=null?_0x4ffb9d:0x1e,_0x10e06a=_0x10e06a!=null?_0x10e06a:0x1e;let _0x303c11=0x0,_0x50ee0f=0x0,_0x3f6a34=0x0;_0x303c11=_0x50ee0f=_0x3f6a34=Math[_0x3217cd(0x373)](_0x95af55,_0x4ffb9d/0x2,_0x10e06a/0x2),_0x1a8711['beginPath'](),_0x1a8711[_0x3217cd(0x214)](_0x303c11,0x0),_0x1a8711[_0x3217cd(0x3b5)](_0x4ffb9d-_0x50ee0f,0x0),_0x1a8711[_0x3217cd(0x41e)](_0x4ffb9d-_0x50ee0f,_0x50ee0f,_0x50ee0f,Math['PI']*0x3/0x2,0x0,!0x1),_0x1a8711[_0x3217cd(0x3b5)](_0x4ffb9d,_0x10e06a-_0x3f6a34),_0x1a8711[_0x3217cd(0x41e)](_0x4ffb9d-_0x3f6a34,_0x10e06a-_0x3f6a34,_0x3f6a34,0x0,Math['PI']/0x2,!0x1),_0x1a8711[_0x3217cd(0x3b5)](0x0,_0x10e06a),_0x1a8711[_0x3217cd(0x3b5)](0x0,_0x303c11),_0x1a8711[_0x3217cd(0x41e)](_0x303c11,_0x303c11,_0x303c11,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1a8711[_0x3217cd(0x2d9)](),_0x2a76c3[_0x3217cd(0x3a6)]&&(_0x1a8711[_0x3217cd(0x26f)](),_0x1a8711[_0x3217cd(0x340)]=_0x2a76c3['fill'],_0x2a76c3[_0x3217cd(0x306)]===_0x3217cd(0x3b0)?_0x1a8711[_0x3217cd(0x3a6)](_0x3217cd(0x3b0)):_0x1a8711[_0x3217cd(0x3a6)](),_0x1a8711['restore']());}class ee extends p[_0x13cd8a(0x318)]{constructor(_0x1f333c,_0x406477){const _0x433df1=_0x13cd8a;super(_0x1f333c,_0x406477),h(this,_0x433df1(0x3b3)),h(this,_0x433df1(0x27c)),(this[_0x433df1(0x3b3)]=_0x406477==null?void 0x0:_0x406477['color'],this[_0x433df1(0x27c)]=_0x406477==null?void 0x0:_0x406477[_0x433df1(0x27c)]);}static['drawWith'](_0x11a37b,_0x1ec96b){const _0x461592=_0x13cd8a,{text:_0x496142,color:_0x44a077}=_0x1ec96b;_0x11a37b[_0x461592(0x26f)](),_0x11a37b[_0x461592(0x3d8)]=_0x461592(0x415);const _0x4c4fc1=_0x11a37b[_0x461592(0x3c8)](_0x496142)['width'],_0x4efdd1=Math[_0x461592(0x373)](_0x4c4fc1+0x2*ne,Re);_t(_0x11a37b,{'height':K,'radius':0x4,'width':_0x4efdd1,'fill':_0x44a077}),_0x11a37b[_0x461592(0x340)]=_0x461592(0x252);const _0x5c248b=ne,_0x39062e=K-lt,_0x1cc60b=Re-0x2*ne;if(_0x4c4fc1>_0x1cc60b){let _0x85b990='',_0x52a12c=0x0;for(const _0x2ec91d of _0x496142){const _0x29f43c=_0x11a37b['measureText'](_0x2ec91d)[_0x461592(0x1ce)];if(_0x52a12c+_0x29f43c<=_0x1cc60b-_0x11a37b['measureText'](_0x461592(0x412))[_0x461592(0x1ce)])_0x85b990+=_0x2ec91d,_0x52a12c+=_0x29f43c;else{_0x85b990+=_0x461592(0x412);break;}}_0x11a37b[_0x461592(0x336)](_0x85b990,_0x5c248b,_0x39062e);}else _0x11a37b[_0x461592(0x336)](_0x496142,_0x5c248b,_0x39062e);_0x11a37b[_0x461592(0x40e)]();}[_0x13cd8a(0x401)](_0x48cecc){const _0x1f3195=_0x13cd8a;ee[_0x1f3195(0x388)](_0x48cecc,this);}}const re='collab-text-anchor-',ht=_0x13cd8a(0x3af),ut=_0x13cd8a(0x327),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x13cd8a(0x381);class De{constructor(_0x586df5,_0x4ae226,_0x372b53,_0x46ca7b){const _0x504af7=_0x13cd8a;h(this,_0x504af7(0x243),[]),h(this,'_anchor',null),h(this,_0x504af7(0x368),null),h(this,_0x504af7(0x290),null),h(this,_0x504af7(0x302),null),h(this,_0x504af7(0x272),null),(this[_0x504af7(0x326)]=_0x586df5,this[_0x504af7(0x2e6)]=_0x4ae226,this[_0x504af7(0x2ff)]=_0x372b53,this['_document']=_0x46ca7b,this[_0x504af7(0x1ed)]());}set['_hover'](_0x5d0a5c){const _0x33d0cd=_0x13cd8a;_0x5d0a5c?(this[_0x33d0cd(0x290)]&&this[_0x33d0cd(0x290)]['hide'](),this[_0x33d0cd(0x368)]&&this[_0x33d0cd(0x368)][_0x33d0cd(0x299)]()):(this[_0x33d0cd(0x290)]&&this[_0x33d0cd(0x290)][_0x33d0cd(0x299)](),this['_textBubble']&&this['_textBubble'][_0x33d0cd(0x3d3)]());}['dispose'](){const _0x29f406=_0x13cd8a;for(const _0x34e572 of this[_0x29f406(0x243)])_0x34e572[_0x29f406(0x41d)]();this[_0x29f406(0x368)]&&this[_0x29f406(0x368)][_0x29f406(0x41d)](),this[_0x29f406(0x290)]&&this['_anchorDot'][_0x29f406(0x41d)](),this[_0x29f406(0x416)]&&this[_0x29f406(0x416)][_0x29f406(0x41d)](),this[_0x29f406(0x272)]&&this['_eventUnsubscribe']();}['_render'](){const _0x183864=_0x13cd8a;var _0x4406ba;const {_docSkeleton:_0x4c4d99,_document:_0x5d2eac}=this,{color:_0xef89ba,name:_0x49b33d,ranges:_0xd4677c}=this['_cursor'],_0x41dc1c=_0x5d2eac[_0x183864(0x204)](),{docsLeft:_0x1716e3,docsTop:_0xc814f8}=_0x41dc1c,_0x752de2=new E[(_0x183864(0x246))](_0x41dc1c,_0x4c4d99);for(const {startOffset:_0x42f23a,endOffset:_0x1d50ba,rangeType:_0x59cbb8,segmentId:_0x48b634,segmentPage:_0x545403,collapsed:_0x21390f,isActive:_0x32fe50}of _0xd4677c){const _0x49e0b0=_0x4c4d99[_0x183864(0x304)](_0x42f23a,!0x0,_0x48b634,_0x545403);let _0x4517e1=_0x4c4d99[_0x183864(0x304)](_0x1d50ba,!0x0,_0x48b634,_0x545403);if(_0x4517e1==null&&(_0x4517e1=_0x4c4d99[_0x183864(0x304)](_0x1d50ba-0x1,!0x1,_0x48b634,_0x545403)),_0x32fe50){const {contentBoxPointGroup:_0x3e023a}=_0x752de2['getRangePointData'](_0x4517e1,_0x4517e1);if(_0x3e023a[_0x183864(0x29a)]===0x0)continue;this[_0x183864(0x370)](_0xef89ba,_0x3e023a,_0x1716e3,_0xc814f8,_0x49b33d),this[_0x183864(0x272)]=this[_0x183864(0x265)]();}if(_0x49e0b0&&_0x4517e1){if(_0x59cbb8===a[_0x183864(0x1c1)][_0x183864(0x317)]){const _0x525c39=new E['NodePositionConvertToRectRange'](_0x41dc1c,_0x4c4d99),{pointGroup:_0x4cb56f}=(_0x4406ba=_0x525c39[_0x183864(0x355)](_0x49e0b0,_0x4517e1))!=null?_0x4406ba:{};if(_0x4cb56f==null||_0x4cb56f[_0x183864(0x29a)]===0x0)continue;this[_0x183864(0x293)](_0xef89ba,_0x4cb56f,_0x1716e3,_0xc814f8);}else{if(!_0x21390f){const {borderBoxPointGroup:_0x460017}=_0x752de2[_0x183864(0x355)](_0x49e0b0,_0x4517e1);if(_0x460017[_0x183864(0x29a)]===0x0)continue;this['_drawTextRange'](_0xef89ba,_0x460017,_0x1716e3,_0xc814f8);}}}}}[_0x13cd8a(0x370)](_0x2c85a8,_0x340645,_0x53ee40,_0x4ebc4a,_0x422c9e){const _0x186dab=_0x13cd8a,_0x55ab44=this['_getAnchorBounding'](_0x340645),{left:_0x59d3b6,top:_0x25b53c,height:_0x422039}=_0x55ab44,_0x2e96fb=this[_0x186dab(0x445)](),_0xb1b4f9=It/_0x2e96fb,_0x1b02da=new p[(_0x186dab(0x392))](re+a['generateRandomId'](k),{'left':_0x59d3b6+_0x53ee40-_0xb1b4f9,'top':_0x25b53c+_0x4ebc4a,'height':_0x422039,'width':dt,'fill':_0x2c85a8||p[_0x186dab(0x276)](a[_0x186dab(0x3a5)][_0x186dab(0x32a)],0x0),'strokeWidth':_0xb1b4f9,'stroke':St,'evented':!0x0});this[_0x186dab(0x416)]=_0x1b02da,this[_0x186dab(0x2e6)][_0x186dab(0x2f7)](_0x1b02da,E[_0x186dab(0x285)]);const _0x1dc4d3=new p[(_0x186dab(0x392))](re+a[_0x186dab(0x28d)](k),{'left':_0x59d3b6+_0x53ee40-_0xb1b4f9,'top':_0x25b53c+_0x4ebc4a-oe/0x2,'height':oe,'width':oe,'fill':_0x2c85a8||p[_0x186dab(0x276)](a[_0x186dab(0x3a5)][_0x186dab(0x32a)],0x0),'strokeWidth':0x0,'stroke':_0x2c85a8||p[_0x186dab(0x276)](a[_0x186dab(0x3a5)]['black'],0x0),'evented':!0x1});this[_0x186dab(0x290)]=_0x1dc4d3,this['_scene'][_0x186dab(0x2f7)](_0x1dc4d3,E[_0x186dab(0x285)]);const _0x1b8572=new ee(re+a[_0x186dab(0x28d)](k),{'left':_0x59d3b6+_0x53ee40-_0xb1b4f9,'top':_0x25b53c+_0x4ebc4a-K,'text':_0x422c9e,'color':_0x2c85a8});this['_textBubble']=_0x1b8572,this[_0x186dab(0x2e6)]['addObject'](_0x1b8572,E[_0x186dab(0x285)]),this['_hover']=!0x1;}['_handleHover'](){const _0x5c5cdd=_0x13cd8a,_0x11562b=this['_anchor'][_0x5c5cdd(0x1c2)][_0x5c5cdd(0x2fb)](()=>{const _0x22a325=_0x5c5cdd;this[_0x22a325(0x1f5)]=!0x0;}),_0x241f21=this['_anchor'][_0x5c5cdd(0x1e5)]['subscribeEvent'](()=>{const _0x1d93d9=_0x5c5cdd;this[_0x1d93d9(0x302)]&&clearTimeout(this[_0x1d93d9(0x302)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1173d8=_0x5c5cdd;_0x11562b[_0x1173d8(0x203)](),_0x241f21[_0x1173d8(0x203)]();};}[_0x13cd8a(0x2d7)](_0xf89c62,_0x5d3b9a,_0x1f1fc9,_0x3b886a){const _0x318772=_0x13cd8a,_0x2a7fe7=new a[(_0x318772(0x3cf))](_0xf89c62)[_0x318772(0x35d)](0.2)[_0x318772(0x1de)](),_0x52dd34=new p[(_0x318772(0x36a))](ht+a['generateRandomId'](k),{'pointsGroup':_0x5d3b9a,'fill':_0x2a7fe7||p['getColor'](a[_0x318772(0x3a5)][_0x318772(0x32a)],0.2),'left':_0x1f1fc9,'top':_0x3b886a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x318772(0x243)][_0x318772(0x28f)](_0x52dd34),this[_0x318772(0x2e6)][_0x318772(0x2f7)](_0x52dd34,E[_0x318772(0x285)]);}[_0x13cd8a(0x293)](_0x4d211e,_0x4424a9,_0x471fc5,_0x30f079){const _0x1796ce=_0x13cd8a,_0xf94d18=new a[(_0x1796ce(0x3cf))](_0x4d211e)[_0x1796ce(0x35d)](0.2)['toRgbString'](),_0x18fe1e=new p[(_0x1796ce(0x36a))](ut+a['generateRandomId'](k),{'pointsGroup':_0x4424a9,'fill':_0xf94d18||p['getColor'](a[_0x1796ce(0x3a5)][_0x1796ce(0x32a)],0.2),'left':_0x471fc5,'top':_0x30f079,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1796ce(0x243)][_0x1796ce(0x28f)](_0x18fe1e),this[_0x1796ce(0x2e6)][_0x1796ce(0x2f7)](_0x18fe1e,E[_0x1796ce(0x285)]);}[_0x13cd8a(0x345)](_0x4f6625){const _0x417f09=_0x4f6625[0x0],_0xfac6fd=_0x417f09[0x0],_0x4154c1=_0x417f09[0x2],{x:_0x38494f,y:_0x6cac7f}=_0xfac6fd,{x:_0x10fe9d,y:_0x3414e4}=_0x4154c1;return{'left':_0x38494f,'top':_0x6cac7f,'width':_0x10fe9d-_0x38494f,'height':_0x3414e4-_0x6cac7f};}[_0x13cd8a(0x445)](){const _0x1b1f8f=_0x13cd8a,{scaleX:_0x1d5fbc,scaleY:_0x101eee}=this[_0x1b1f8f(0x2e6)][_0x1b1f8f(0x35e)]();return Math[_0x1b1f8f(0x2dc)](_0x1d5fbc,_0x101eee);}}var ft=Object[_0x13cd8a(0x2a3)],vt=(_0x3504b3,_0x28b03b,_0xaed25,_0x15dcc3)=>{const _0x56b431=_0x13cd8a;for(var _0x23e194=_0x15dcc3>0x1?void 0x0:_0x15dcc3?ft(_0x28b03b,_0xaed25):_0x28b03b,_0xe22e=_0x3504b3[_0x56b431(0x29a)]-0x1,_0x1385b3;_0xe22e>=0x0;_0xe22e--)(_0x1385b3=_0x3504b3[_0xe22e])&&(_0x23e194=_0x1385b3(_0x23e194)||_0x23e194);return _0x23e194;},W=(_0x58cfc9,_0x15edce)=>(_0x3710e1,_0x50ff0d)=>_0x15edce(_0x3710e1,_0x50ff0d,_0x58cfc9);let fe=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x4b6f4c,_0xb82b99,_0x1f16bc,_0x26fb8b,_0x20b951){const _0x1b0d3d=_0x13cd8a;super(),h(this,_0x1b0d3d(0x3b7),[]),h(this,'_cursors',[]),(this[_0x1b0d3d(0x3f1)]=_0x4b6f4c,this[_0x1b0d3d(0x2a5)]=_0xb82b99,this[_0x1b0d3d(0x31c)]=_0x1f16bc,this['_commandService']=_0x26fb8b,this['_themeService']=_0x20b951,this['_init']());}[_0x13cd8a(0x3e0)](){const _0x3765e2=_0x13cd8a,_0x4ff66c=this['_context'][_0x3765e2(0x41f)],_0xc7aedb=this[_0x3765e2(0x2a5)];this['disposeWithMe'](d[_0x3765e2(0x436)]([this[_0x3765e2(0x31c)][_0x3765e2(0x3ca)](_0x4ff66c),this[_0x3765e2(0x34f)][_0x3765e2(0x1d0)]])['pipe']($['map'](([_0x1c2ac9,_0x470343])=>({'skeleton':_0xc7aedb['getSkeleton'](),'cursors':[..._0x1c2ac9['values']()][_0x3765e2(0x2df)](_0x54ffce=>({..._0x54ffce,'color':this[_0x3765e2(0x34f)][_0x3765e2(0x30f)](_0x54ffce[_0x3765e2(0x3b3)])}))})))['subscribe'](_0x4996e7=>{const _0x344a65=_0x3765e2;if(this[_0x344a65(0x34c)](),_0x4996e7){const {skeleton:_0x2bc250,cursors:_0x15d6e1}=_0x4996e7;this[_0x344a65(0x249)](_0x2bc250,_0x15d6e1);}})),this[_0x3765e2(0x279)](),this[_0x3765e2(0x1df)]();}[_0x13cd8a(0x249)](_0x290006,_0x3cd69f){const _0xc7bc25=_0x13cd8a,{scene:_0x1d6534,mainComponent:_0x2a94a9}=this[_0xc7bc25(0x3f1)],_0xba43a0=_0x3cd69f[_0xc7bc25(0x3aa)](_0x4e2beb=>new De(_0x4e2beb,_0x1d6534,_0x290006,_0x2a94a9));this[_0xc7bc25(0x3b7)]=_0xba43a0,this[_0xc7bc25(0x444)]=_0x3cd69f;}[_0x13cd8a(0x339)](){const _0x47c031=_0x13cd8a;this[_0x47c031(0x34c)]();const {scene:_0x5178e9,mainComponent:_0x9335ef}=this[_0x47c031(0x3f1)],_0x45eeba=this[_0x47c031(0x2a5)][_0x47c031(0x409)](),_0x58f0d4=this[_0x47c031(0x444)][_0x47c031(0x3aa)](_0x1f49bb=>new De(_0x1f49bb,_0x5178e9,_0x45eeba,_0x9335ef));this[_0x47c031(0x3b7)]=_0x58f0d4;}[_0x13cd8a(0x34c)](){const _0x11342d=_0x13cd8a;this[_0x11342d(0x3b7)]['forEach'](_0x38749f=>_0x38749f['dispose']()),this[_0x11342d(0x3b7)]=[];}[_0x13cd8a(0x1df)](){const _0x29a398=_0x13cd8a,_0x519500=[E['SetDocZoomRatioOperation']['id']];this[_0x29a398(0x22b)](this[_0x29a398(0x39e)]['onCommandExecuted'](_0x4fc5c5=>{const _0x385aa7=_0x29a398;_0x519500[_0x385aa7(0x36f)](_0x4fc5c5['id'])&&_0x4fc5c5[_0x385aa7(0x357)][_0x385aa7(0x41f)]===this[_0x385aa7(0x3f1)][_0x385aa7(0x41f)]&&this[_0x385aa7(0x339)]();}));}[_0x13cd8a(0x279)](){const _0x21de1d=_0x13cd8a;this['disposeWithMe'](a[_0x21de1d(0x26c)](this[_0x21de1d(0x3f1)][_0x21de1d(0x25c)][_0x21de1d(0x35c)])[_0x21de1d(0x329)]($[_0x21de1d(0x1f0)](_0x43128f=>_0x43128f[_0x21de1d(0x1f2)]===p[_0x21de1d(0x3bc)]['resize']),$[_0x21de1d(0x43a)](0x10))[_0x21de1d(0x29f)](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a[_0x13cd8a(0x248)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x13cd8a(0x248)](x)),W(0x3,a[_0x13cd8a(0x209)]),W(0x4,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x284)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x3ad8d7,_0x448b65){const _0x420f74=_0x13cd8a;super(_0x3ad8d7,_0x448b65),h(this,_0x420f74(0x25a)),h(this,_0x420f74(0x400),!0x1),h(this,_0x420f74(0x3f7)),h(this,_0x420f74(0x215),''),h(this,_0x420f74(0x32e),'top'),h(this,_0x420f74(0x424)),(_0x448b65&&this['setShapeProps'](_0x448b65),this[_0x420f74(0x1c2)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x420f74(0x2fb)](()=>this[_0x420f74(0x34b)]({'hovered':!0x1})));}[_0x13cd8a(0x34b)](_0x58d2d5){const _0x4c9ef8=_0x13cd8a;var _0x370179,_0x49f9f8,_0x243dd9,_0x22d7e,_0xc4552d,_0x2840e4;this[_0x4c9ef8(0x25a)]=(_0x370179=_0x58d2d5['color'])!=null?_0x370179:this['_color'],this['_hovered']=(_0x49f9f8=_0x58d2d5[_0x4c9ef8(0x21c)])!=null?_0x49f9f8:this[_0x4c9ef8(0x400)],this[_0x4c9ef8(0x3f7)]=(_0x243dd9=_0x58d2d5['range'])!=null?_0x243dd9:this[_0x4c9ef8(0x3f7)],this['_name']=(_0x22d7e=_0x58d2d5[_0x4c9ef8(0x257)])!=null?_0x22d7e:this[_0x4c9ef8(0x215)],this[_0x4c9ef8(0x32e)]=(_0xc4552d=_0x58d2d5[_0x4c9ef8(0x3f9)])!=null?_0xc4552d:this[_0x4c9ef8(0x32e)],this['_backgroundColor']=(_0x2840e4=_0x58d2d5['backgroundColor'])!=null?_0x2840e4:this[_0x4c9ef8(0x424)],this[_0x4c9ef8(0x295)]({'width':_0x58d2d5['width'],'height':_0x58d2d5[_0x4c9ef8(0x2e7)]});}[_0x13cd8a(0x43e)](_0x18513c){const _0x3914da=_0x13cd8a,{row:_0x222658,column:_0x6c495f}=_0x18513c;if(_0x222658>=this[_0x3914da(0x3f7)][_0x3914da(0x220)]&&_0x222658<=this[_0x3914da(0x3f7)][_0x3914da(0x342)]&&_0x6c495f>=this[_0x3914da(0x3f7)][_0x3914da(0x3cc)]&&_0x6c495f<=this[_0x3914da(0x3f7)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3914da(0x34b)]({'hovered':!0x1});}[_0x13cd8a(0x28e)](_0x22de9a){return!0x1;}[_0x13cd8a(0x401)](_0x3940d0){const _0x19a1df=_0x13cd8a;p['Rect'][_0x19a1df(0x388)](_0x3940d0,{'width':this[_0x19a1df(0x1ce)],'height':this[_0x19a1df(0x2e7)],'strokeWidth':mt,'stroke':this[_0x19a1df(0x25a)],'evented':!0x1,'fill':this[_0x19a1df(0x424)]}),this[_0x19a1df(0x400)]&&(_0x3940d0[_0x19a1df(0x26f)](),_0x3940d0[_0x19a1df(0x234)](0x1,0x0,0x0,0x1,this[_0x19a1df(0x1ce)],this[_0x19a1df(0x32e)]===_0x19a1df(0x3f4)?0x0:-0x14),ee[_0x19a1df(0x388)](_0x3940d0,{'text':this['_name'],'color':this[_0x19a1df(0x25a)]}),_0x3940d0[_0x19a1df(0x40e)]());}}var Ct=Object[_0x13cd8a(0x2a3)],pt=(_0xb96bf2,_0x1df8d7,_0xd1ca28,_0x148002)=>{for(var _0x346eca=_0x148002>0x1?void 0x0:_0x148002?Ct(_0x1df8d7,_0xd1ca28):_0x1df8d7,_0x3ded4d=_0xb96bf2['length']-0x1,_0x5ddd4f;_0x3ded4d>=0x0;_0x3ded4d--)(_0x5ddd4f=_0xb96bf2[_0x3ded4d])&&(_0x346eca=_0x5ddd4f(_0x346eca)||_0x346eca);return _0x346eca;},ae=(_0x13d131,_0x3472e)=>(_0x43d73c,_0x4eac13)=>_0x3472e(_0x43d73c,_0x4eac13,_0x13d131);const Et=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x398bab,_0x24012a,_0x448af4,_0xf3bb6c){const _0x984d67=_0x13cd8a;super(),h(this,_0x984d67(0x444),new Set()),h(this,_0x984d67(0x3e8),null),(this[_0x984d67(0x3f1)]=_0x398bab,this[_0x984d67(0x2b4)]=_0x24012a,this[_0x984d67(0x31c)]=_0x448af4,this[_0x984d67(0x34f)]=_0xf3bb6c,this[_0x984d67(0x3e0)]());}['_init'](){const _0x2df059=_0x13cd8a;this['_sheetSkeletonManagerService'][_0x2df059(0x217)]['pipe']($[_0x2df059(0x30a)](this[_0x2df059(0x1dd)]),$[_0x2df059(0x366)](_0x133795=>{const _0x18f1b4=_0x2df059;if(_0x133795){const _0x324d46=_0x133795[_0x18f1b4(0x32c)];return d[_0x18f1b4(0x436)](this[_0x18f1b4(0x31c)][_0x18f1b4(0x3ca)](this['_context'][_0x18f1b4(0x41f)]),this[_0x18f1b4(0x34f)][_0x18f1b4(0x1d0)])[_0x18f1b4(0x329)]($[_0x18f1b4(0x3aa)](([_0x31fbdc,_0x57e120])=>{const _0x392f81=_0x18f1b4,_0x390c2c=new Map();return _0x31fbdc[_0x392f81(0x3e3)]((_0xd2a99,_0x253ec5)=>{const _0x1035b9=_0x392f81;if(_0xd2a99[_0x1035b9(0x2ed)]===_0x324d46){const _0x47edbb={..._0xd2a99};_0x47edbb[_0x1035b9(0x3b3)]=this[_0x1035b9(0x34f)][_0x1035b9(0x30f)](_0xd2a99[_0x1035b9(0x3b3)]),_0x390c2c[_0x1035b9(0x2f1)](_0x253ec5,_0x47edbb);}}),{'skeleton':_0x133795,'cursors':_0x390c2c};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2df059(0x29f)](({skeleton:_0x66e05b,cursors:_0x279e2d})=>{const _0x525d4f=_0x2df059;this['_removeCollabCursors'](),_0x66e05b&&this[_0x525d4f(0x249)](_0x66e05b,_0x279e2d);}),this[_0x2df059(0x2b4)][_0x2df059(0x217)][_0x2df059(0x29f)](_0xa9ae87=>{const _0x5a4b2c=_0x2df059;if(_0xa9ae87==null)return;const {skeleton:_0x573706}=_0xa9ae87,{scene:_0x1c7eab}=this[_0x5a4b2c(0x3f1)];_0x1c7eab[_0x5a4b2c(0x39d)][_0x5a4b2c(0x2fb)](a[_0x5a4b2c(0x22a)](_0x442efa=>{const _0xc92bab=_0x5a4b2c;var _0x33e322,_0x4dc7f2;const {offsetX:_0xa1feff,offsetY:_0x4609bf}=_0x442efa,{x:_0x3ef684,y:_0x1d560a}=_0x1c7eab[_0xc92bab(0x39c)](p[_0xc92bab(0x387)][_0xc92bab(0x2a8)]([_0xa1feff,_0x4609bf])),{scaleX:_0x51dd42,scaleY:_0x1928d3}=_0x1c7eab['getAncestorScale'](),_0x2c297f=_0x1c7eab[_0xc92bab(0x394)](p[_0xc92bab(0x200)][_0xc92bab(0x303)]),_0x29d8a1=_0x1c7eab[_0xc92bab(0x2e1)](p[_0xc92bab(0x387)][_0xc92bab(0x2a8)]([_0x3ef684,_0x1d560a]),_0x2c297f),_0x23215e=_0x573706[_0xc92bab(0x42d)](_0xa1feff,_0x4609bf,_0x51dd42,_0x1928d3,_0x29d8a1);((_0x33e322=this[_0xc92bab(0x3e8)])==null?void 0x0:_0x33e322[_0xc92bab(0x367)])===_0x23215e[_0xc92bab(0x367)]&&((_0x4dc7f2=this['_lastPointer'])==null?void 0x0:_0x4dc7f2[_0xc92bab(0x277)])===_0x23215e[_0xc92bab(0x277)]||this['_cursors'][_0xc92bab(0x3e3)](_0x2411f2=>{_0x2411f2['onMouseMove'](_0x23215e);});},0x64));});}[_0x13cd8a(0x249)](_0x54f437,_0x94c53e){const _0xe1b1c3=_0x13cd8a;var _0x500baf;const _0x476ca2=(_0x500baf=this[_0xe1b1c3(0x2b4)][_0xe1b1c3(0x2d8)]())==null?void 0x0:_0x500baf[_0xe1b1c3(0x414)];if(!_0x476ca2)return;const _0x3639b2=this[_0xe1b1c3(0x3fb)]();if(!_0x3639b2)return;this[_0xe1b1c3(0x444)][_0xe1b1c3(0x3e3)](_0x1963cf=>{const _0x5077ec=_0xe1b1c3;_0x1963cf[_0x5077ec(0x281)]();});const {scene:_0x428b19}=_0x3639b2,_0x188c0d=bt(Array[_0xe1b1c3(0x354)](_0x94c53e[_0xe1b1c3(0x275)]()))[_0xe1b1c3(0x3aa)](_0x1db7a5=>{const _0x21b3bc=_0xe1b1c3,{color:_0x3b765b,range:_0x55471d,name:_0x158172,selection:_0x4b48b0,sheetID:_0x4c8bec}=_0x1db7a5,{startColumn:_0x2a9a7e,startRow:_0x54f2ec,endColumn:_0x4f4497,endRow:_0x17fb5a}=_0x55471d,_0x48045f=X[_0x21b3bc(0x3d6)](_0x54f2ec,_0x2a9a7e,_0x428b19,_0x476ca2),_0x2fe09e=X['getCoordByCell'](_0x17fb5a,_0x4f4497,_0x428b19,_0x476ca2),{columnHeaderHeightAndMarginTop:_0x14bce5}=_0x476ca2,{startX:_0x1004c5,startY:_0x5afcc2}=_0x48045f,{endX:_0x228a14,endY:_0x1d6515}=_0x2fe09e,_0x2a7142=_0x228a14-_0x1004c5,_0x1049a9=_0x1d6515-_0x5afcc2,_0x34bd32={'labelPosition':_0x5afcc2-_0x14bce5>=K?_0x21b3bc(0x2e5):_0x21b3bc(0x3f4),'sheetID':_0x4c8bec,'range':_0x55471d,'color':_0x3b765b,'name':_0x158172,'selection':_0x4b48b0,'left':_0x1004c5,'top':_0x5afcc2,'width':_0x2a7142,'height':_0x1049a9,'evented':!0x1,'zIndex':Et};return new we(_0x158172,_0x34bd32);});_0x428b19['addObjects'](_0x188c0d,gt),this[_0xe1b1c3(0x444)]=new Set(_0x188c0d);}[_0x13cd8a(0x34c)](){const _0x4ebed0=_0x13cd8a;var _0x5cdad6;(_0x5cdad6=this['_cursors'])==null||_0x5cdad6[_0x4ebed0(0x3e3)](_0x4329ed=>_0x4329ed[_0x4ebed0(0x41d)]());}[_0x13cd8a(0x3fb)](){const _0x3e6439=_0x13cd8a;return X[_0x3e6439(0x3e9)](this[_0x3e6439(0x3f1)][_0x3e6439(0x2ee)],this[_0x3e6439(0x3f1)]);}};ve=pt([ae(0x1,a[_0x13cd8a(0x248)](X[_0x13cd8a(0x42c)])),ae(0x2,a[_0x13cd8a(0x248)](x)),ae(0x3,a[_0x13cd8a(0x248)](a['ThemeService']))],ve);function _0x1e89(){const _0x593219=['_docSkeleton','/run/','_setupBeforeClosingHandler','_hideTimer','VIEW_MAIN','findNodePositionByCharIndex','TEXT','fillRule','OTHER_CLIENT_EDITING','0\x200\x2016\x2016','DocCollaborationEntity','takeUntil','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','split','collabStatus.conflict','_id','getColorFromTheme','url(#off-line-icon_clip0_910_343)','green.600','RemoveRowCommandId','getUnitId','_httpService','has','with','RECT','Shape','_configService','INTERNAL_ERROR','_getMergeRange','_collabCursorController','handleDeleteRangeMoveLeft','DisposableCollection','getItem','attrs','DocIMEInputManagerService','_updateSubUnitFromURLParams','YUUMI_NO_CUBOID_FOR_QUESTION','roomMembers','error','_cursor','collab-rect-range-','transformIMECache','pipe','black','Plugin','sheetId','EffectRefRangId','_labelPosition','createIdentifier','_imageIoService','next','useCallback','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','displayName','_clearOtherTimers','fillText','getTypeOfUnitAdded$','setItem','_refreshCollabCursors','DocSelectionManagerService','distinctUntilChanged','HTTPService','_getSaveTimeout','_handleHeartbeatEvent','setInterval','fillStyle','onStarting','endRow','Rectangle','_localStorageService','_getAnchorBounding','4738575osRpAc','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','urlChange$','current','[RemoteUniscriptService]:\x20no\x20focused\x20unit','setShapeProps','_removeCollabCursors','function','getOwnPropertySymbols','_themeService','_online','deepClone','location','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','from','getRangePointData','YUUMI_ASYNCIO_CANCELLED','params','event$','collab-client.tooltip.reconnect','UniverCollaborationClientPlugin','1em','onTransformChange$','setAlpha','getAncestorScale','wsSessionTicketUrl','_docClipboardService','unshift','IUniverInstanceService','_collabCursorState$','UNRECOGNIZED','_selfUnitIDs','switchMap','column','_textBubble','_localCacheService','RegularPolygon','_collaborationController','_initEvent','JOIN_ROOM_FAILED','_transformService','includes','_drawAnchor','handleDeleteRangeMoveUp','getRenderById','min','_urlService','jsxs','28917NSUFGP','complete','WebSocketService','_updateURLWithCurrentState','_initEntityListener','m2Prime','INVITE_CODE_ALREADY_BOUND','clearInterval','call','className','23apyIgI','rgba(255,\x20255,\x20255,\x200.01)','_syncEditingCollabCursorService','getValue','get','COMPLETION_FINISHED','IConfigService','Vector2','drawWith','all','CollaborationSessionService','_initDependencies','textRanges','isTransformMutationFailure','registerBeforeClose','history','610104KndISU','46790HuWxiB','Rect','NOT_COLLAB','getViewport','_docStateChangeManagerService','_status$','createInstance','_saveTaskMap','getSheetBySheetId','yellow.400','_renderManagerService','getRelativeToViewportCoord','onPointerMove$','_commandService','MessageType','_session','_toggleOnline','_unitStatus','InsertRowCommandId','_initStatusComponent','COLORS','fill','serializeRangeWithSheet','stringify','defs','map','jiqing.500','result','getTypeOfUnitDisposed$','application/json','collab-text-range-','evenodd','_localeService','UNIVER_DOC','color','FETCH_MISS','lineTo','getFocusedUnit','_cursorShapes','getUniverSheetInstance','AWAITING_WITH_PENDING','status$','ISnapshotServerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','entityInit$','CLOSE_ROOM','IRenderManagerService','SetWorksheetActivateCommand','saveTaskMap','getActiveRange','merge','fromEvent','defIds','IUIPartsService','extend','measureText','onRendered','getCollabCursors$','_memberService','startColumn','exhaustSavingTask','transformStateCache','ColorKit','random','YUUMI_UNABLE_LOAD_URL','SNAPSHOT_HAS_BEEN_REMOVED','hide','DependentOn','SNAPSHOT_INVALID_SNAPSHOT','getCoordByCell','collabCursorState$','font','getSheetId','reconnect','SessionStatus','115379rOlzOc','getActiveSheet','Workbook','transformRemoteChangeset','_init','132qhspwz','assignAColorForMemberID','forEach','xlink:href','_messageService','ENSURE_SNAPSHOT_EXECUTION','UNIVER_SHEET','_lastPointer','getSheetObject','CollaborationUIEventId','_revisionService','collabStatus.offline','unload','InsertRangeMoveDownCommandId','260KscSgM','then','_context','clsx','_updateLocalCursor','bottom','collabStatus.notCollab','mutations','_range','imageSourceType','labelPosition','CollaborationStatus','_getSheetObject','isActive','createElement','parse','_dataLoaderService','_hovered','_draw','toString','handleInsertRangeMoveDown','getConfig','editingUnit','apply','subUnitId','getDocRanges','getSkeleton','newValue','PY_RUNTIME_SCRIPT_ERROR','registerComponent','connectInjector','restore','_ensureSubject','YUUMI_RATE_OVER_LIMIT','IRemoteInstanceService','...','path','skeleton','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_anchor','M0\x200H16V16H0z','ILocalCacheService','_unitOnClients','DocStateChangeManagerService','_registerDependencies','url(#on-line-icon_clip0_910_349)','dispose','arc','unitId','handleIRemoveRow','send','enableLocalCache','clearTimeout','_backgroundColor','tag','UNDEFINED','SheetCollabCursorShape','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INVALID_ARGUMENT','sessionStatus$','CollaborationSocketService','SheetSkeletonManagerService','getCellPositionByOffset','size','subunit','ONLINE','Failed','ranges','cursorInfo','_entityInit$','round','combineLatest','_docTransformStateCacheService','BrowserCollaborationSocketService','DesktopCollaborationStatusDisplayController','throttleTime','SYNCED','uni.network.url-service','contains','onMouseMove','string','YUUMI_AI_RUN_FAILED','setStateCache','_send','OffLineIcon','_cursors','_getScale','registerRenderModule','DOC_RANGE_TYPE','onPointerEnter$','some','_transformPreviousActiveRange','debounceTime','_startDocCollabCursor','updateOfflineData','_onCursorDelete','transformMutationsWithChangeset','YUUMI_URL_COL_OUT_OF_RANGE','SUBMIT_CHANGESET_TIMEOUT','useDependency','runId','width','deserializeRangeWithSheet','currentTheme$','WebBrowserSingleActiveUnitService','_saveCache','selection','_handleEvent','UniverInstanceType','body','LICENSE_DISTRO_REJECTED','collabStatus.synced','_heartbeatTimer','Tooltip','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getCurrentUnitForType','dispose$','toRgbString','_initCommandExecutedListener','Error','RichTextEditingMutation','popstate','LOCAL_CACHE_INTERVAL','APPLY_REVISION_CONFILICT','onPointerLeave$','saveOfflineData','focused$','IImageIoService','getUnhiddenWorksheets','isArray','PENDING','_instanceService','_render','replace','OTHER_CLIENTS_EDITING','filter','transformSelections','type','_cursorInfo$','m1Prime','_hover','IMessageService','href','touchDependencies','_logService','ACTIVE_UNIT_EVENT_CHANNEL','EMAIL_HAS_BEEN_BOUND','YUUMI_CONNECTOR_URL_NOT_FOUND','onCommandExecuted','undoState','source','SHEET_VIEWPORT_KEY','currentColor','Optional','unsubscribe','getOffsetConfig','OnLineIcon','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','collaboration.single-unit.warning','_transformHistoryAndStateStack','ICommandService','_doCreateSocket','USERS_LEAVE','entries','disposeUnit','YUUMI_ALL_TABLES_IS_INVALID','SetTextSelectionsOperation','indexOf','Unknown\x20user','_collabSessionService','handleInsertRow','moveTo','_name','_disabled','currentSkeleton$','SetSelectionsOperation','concat','CONFLICT','useObservable','hovered','useRef','_toggleOffline','none','startRow','pushState','saveImage','LOGIN_FAILED','_config','ITransformService','ISocketService','_removeClearOtherTimer','TOO_MANY_REQUESTS','mergeOverrideWithDependencies','debounce','disposeWithMe','getLocalCacheKey','CollaborationStatusDisplay','jsx','_collaborationUIEventService','EMAIL_VERIFY_CODE_MISMATCH','debug','_docTransformIMECacheService','mask','transform','_roomMembers$','sessionTicket','_setupSubUnitSync','PERMISSION_DENIED','univer-mr-2\x20univer-flex\x20univer-text-xl','getStateCache','APPLY_PERMISSION_DENIED','http://www.w3.org/2000/svg','IDocClipboardService','_transformUndoRedoStack','find','Tools','registerRefRange','InsertColCommandId','_shapes','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','forwardRef','NodePositionConvertToCursor','defineProperty','Inject','_updateCollabCursors','UnitStatus','_colorAssignService','HEADER_MENU','getMember','LocaleService','MoveRangeCommandId','collaboration.closeRoom','APPLY_DUPLICATED','#FFF','_injector','CollaborationEvent','off-line-icon_clip0_910_343','setTimeout','name','MemberService','RevisionService','_color','origin','engine','DeleteRangeMoveLeftCommandId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','transformMutation','Injector','getMemberID','_onCursorUpdate','getMergeData','NOT_FOUND','_handleHover','getCurrentRevOfUnit','_cachedData','unitID','LOCAL_CACHE_INTERVAL_KEY','setParam','handleInsertRangeMoveRight','fromEventSubject','_notificationService','requireSession','save','CollaborationDataLoaderController','svg','_eventUnsubscribe','InsertRangeMoveRightCommandId','OFFLINE','values','getColor','row','1043448bKRKjE','_initResize','idSuffix','use','text','_onRefRangeChange','symbol','setActiveRange','white','makeDirty','hasOwnProperty','YUUMI_SUBSCRIPTION_NOT_FOUND','ThemeService','TEXT_RANGE_LAYER_INDEX','getUnitStatus$','LICENSE_IMPORT_SIZE_EXCEEDED','getCollabEntity$','translate(.97)','_scheduleClearOtherTimer','CollaborationController','getParam','generateRandomId','triggerDblclick','push','_anchorDot','assign','children','_drawRectRange','icon','transformByState','getUndoRedoMutationParamsCache','roomMembers$','collaboration-client-ui.config','show','length','addClipboardHook','_docTransformSelectionsService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_scheduleSaving','subscribe','_handleJoinEvent','add','_entities','getOwnPropertyDescriptor','delete','_docSkeletonManagerService','MOBILE_VERIFY_CODE_MISMATCH','USER_NOT_INVITED_CODE','FromArray','[CollaborationDataLoaderController]','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','BehaviorSubject','data','prototype','cursorInfo$','purple.300','div','RxDisposable','post','_assignedColors','_sheetSkeletonManagerService','handleIRemoveCol','loadOfflineData','IURLService','univerjs-icon\x20univerjs-icon-','Warning','SheetsSelectionsService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','eventID','INVITE_CODE_REQUIRED','session.collaboration-timeout','RemoteUniscriptService','_refRangeService','doc.mutation.rich-text-editing','collaboration-client.offline-data-not-saved','_univerInstanceService','selections','addEventListener','searchParams','_handleLeaveEvent','_colorIndex','CHANGESET_REVISION_CONFILICT','isEditing','startsWith','blue.400','UPDATE_CURSOR','APPLY_NON_SEQUENTIAL_REVISION','UniverCollaborationClientUIPlugin','_initStatusListener','SOCKET_FAILED','substring','asObservable','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','redoState','27SVZSge','_drawTextRange','getCurrent','closePath','code','CommandType','max','ALREADY_EXISTS','MUTATION','flatMap','runOnServer','getVpScrollXYInfoByPosToVp','_docSyncEditingCollabCursorService','syncEditingCollabCursor','toDisposable','top','_scene','height','_startSheetCollabCursor','init','colorChannel1','_registerRenderDependencies','INVITE_CODE_HAS_BEEN_UES','sheetID','unit','propertyIsEnumerable','disableLocalCache','set','handleMoveRange','red.300','INVALID_INVITE_CODE','DataLoaderService','key','addObject','0\x200\x2017\x2016','4212264pFEHyv','executeCommand','subscribeEvent','ILogService','ILocalStorageService','Disposable'];_0x1e89=function(){return _0x593219;};return _0x1e89();}function bt(_0x2bd0f5){const _0x508220=_0x13cd8a,_0x2e8706=new Map();return _0x2bd0f5[_0x508220(0x3e3)](_0x173604=>{const _0x33c037=_0x508220;if(_0x2e8706[_0x33c037(0x315)](_0x173604[_0x33c037(0x1d3)])){const _0x3b797d=_0x2e8706[_0x33c037(0x384)](_0x173604[_0x33c037(0x1d3)]);_0x3b797d[_0x33c037(0x257)]+=',\x20'+_0x173604[_0x33c037(0x257)];}else _0x2e8706[_0x33c037(0x2f1)](_0x173604[_0x33c037(0x1d3)],_0x173604);}),Array[_0x508220(0x354)](_0x2e8706[_0x508220(0x275)]());}var b=function(){const _0x297454=_0x13cd8a;return b=Object[_0x297454(0x291)]||function(_0x3f681b){const _0x7275b3=_0x297454;for(var _0x504d8d,_0x2b2618=0x1,_0x4ff373=arguments[_0x7275b3(0x29a)];_0x2b2618<_0x4ff373;_0x2b2618++){_0x504d8d=arguments[_0x2b2618];for(var _0x42d38c in _0x504d8d)Object[_0x7275b3(0x2ad)]['hasOwnProperty']['call'](_0x504d8d,_0x42d38c)&&(_0x3f681b[_0x42d38c]=_0x504d8d[_0x42d38c]);}return _0x3f681b;},b[_0x297454(0x406)](this,arguments);},Ot=function(_0x487452,_0xe031b1){const _0x10aac7=_0x13cd8a;var _0x46f4b3={};for(var _0x419ea9 in _0x487452)Object[_0x10aac7(0x2ad)][_0x10aac7(0x282)]['call'](_0x487452,_0x419ea9)&&_0xe031b1[_0x10aac7(0x210)](_0x419ea9)<0x0&&(_0x46f4b3[_0x419ea9]=_0x487452[_0x419ea9]);if(_0x487452!=null&&typeof Object[_0x10aac7(0x34e)]==_0x10aac7(0x34d)){for(var _0x2de625=0x0,_0x419ea9=Object[_0x10aac7(0x34e)](_0x487452);_0x2de625<_0x419ea9[_0x10aac7(0x29a)];_0x2de625++)_0xe031b1[_0x10aac7(0x210)](_0x419ea9[_0x2de625])<0x0&&Object['prototype'][_0x10aac7(0x2ef)][_0x10aac7(0x37e)](_0x487452,_0x419ea9[_0x2de625])&&(_0x46f4b3[_0x419ea9[_0x2de625]]=_0x487452[_0x419ea9[_0x2de625]]);}return _0x46f4b3;},pe=M[_0x13cd8a(0x245)](function(_0x422eb3,_0x4468db){const _0x45e393=_0x13cd8a;var _0x58553a=_0x422eb3[_0x45e393(0x294)],_0x34c61e=_0x422eb3['id'],_0xf3bdf0=_0x422eb3[_0x45e393(0x37f)],_0x386345=_0x422eb3[_0x45e393(0x3c7)],_0x523d1d=Ot(_0x422eb3,[_0x45e393(0x294),'id',_0x45e393(0x37f),'extend']),_0x4a3db6=_0x45e393(0x2b8)[_0x45e393(0x219)](_0x34c61e,'\x20')['concat'](_0xf3bdf0||'')['trim'](),_0x595cad=M[_0x45e393(0x21d)]('_'[_0x45e393(0x219)](Dt()));return Ae(_0x58553a,''['concat'](_0x34c61e),{'defIds':_0x58553a[_0x45e393(0x3c5)],'idSuffix':_0x595cad[_0x45e393(0x349)]},b({'ref':_0x4468db,'className':_0x4a3db6},_0x523d1d),_0x386345);});function Ae(_0x303147,_0x18228d,_0x198d49,_0x235625,_0x55dea5){const _0x27b43a=_0x13cd8a;return M[_0x27b43a(0x3fd)](_0x303147[_0x27b43a(0x425)],b(b({'key':_0x18228d},Tt(_0x303147,_0x198d49,_0x55dea5)),_0x235625),(Rt(_0x303147,_0x198d49)[_0x27b43a(0x292)]||[])[_0x27b43a(0x3aa)](function(_0xdb2123,_0x3686a6){const _0x1a4b26=_0x27b43a;return Ae(_0xdb2123,''[_0x1a4b26(0x219)](_0x18228d,'-')[_0x1a4b26(0x219)](_0x303147[_0x1a4b26(0x425)],'-')[_0x1a4b26(0x219)](_0x3686a6),_0x198d49,void 0x0,_0x55dea5);}));}function Tt(_0x5e877e,_0xc39e95,_0x2a0c4e){const _0x1ce48b=_0x13cd8a;var _0x38d75a=b({},_0x5e877e['attrs']);_0x2a0c4e!=null&&_0x2a0c4e['colorChannel1']&&_0x38d75a[_0x1ce48b(0x3a6)]===_0x1ce48b(0x2ea)&&(_0x38d75a[_0x1ce48b(0x3a6)]=_0x2a0c4e[_0x1ce48b(0x2ea)]),_0x5e877e[_0x1ce48b(0x425)]===_0x1ce48b(0x233)&&_0x38d75a['id']&&(_0x38d75a['id']=_0x38d75a['id']+_0xc39e95[_0x1ce48b(0x27a)]),Object[_0x1ce48b(0x20c)](_0x38d75a)['forEach'](function(_0x38f72f){const _0x387337=_0x1ce48b;var _0x13ed65=_0x38f72f[0x0],_0x2afd4b=_0x38f72f[0x1];_0x13ed65===_0x387337(0x233)&&typeof _0x2afd4b=='string'&&(_0x38d75a[_0x13ed65]=_0x2afd4b[_0x387337(0x1ee)](/url\(#(.*)\)/,'url(#$1'['concat'](_0xc39e95[_0x387337(0x27a)],')')));});var _0x45d61e=_0xc39e95[_0x1ce48b(0x3c5)];return!_0x45d61e||_0x45d61e['length']===0x0||(_0x5e877e[_0x1ce48b(0x425)]===_0x1ce48b(0x27b)&&_0x38d75a[_0x1ce48b(0x3e4)]&&(_0x38d75a[_0x1ce48b(0x3e4)]=_0x38d75a['xlink:href']+_0xc39e95[_0x1ce48b(0x27a)]),Object[_0x1ce48b(0x20c)](_0x38d75a)[_0x1ce48b(0x3e3)](function(_0x3ae11e){const _0x4740ec=_0x1ce48b;var _0x4c4dd6=_0x3ae11e[0x0],_0x1c4403=_0x3ae11e[0x1];typeof _0x1c4403==_0x4740ec(0x43f)&&(_0x38d75a[_0x4c4dd6]=_0x1c4403['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4740ec(0x219)](_0xc39e95[_0x4740ec(0x27a)],')')));})),_0x38d75a;}function Rt(_0x555443,_0x9f1ecf){const _0xa4d0b5=_0x13cd8a;var _0x2b4d2,_0x481a8d=_0x9f1ecf[_0xa4d0b5(0x3c5)];return!_0x481a8d||_0x481a8d[_0xa4d0b5(0x29a)]===0x0?_0x555443:_0x555443[_0xa4d0b5(0x425)]===_0xa4d0b5(0x3a9)&&(!((_0x2b4d2=_0x555443[_0xa4d0b5(0x292)])===null||_0x2b4d2===void 0x0)&&_0x2b4d2['length'])?b(b({},_0x555443),{'children':_0x555443[_0xa4d0b5(0x292)]['map'](function(_0x539fe9){const _0x2d2065=_0xa4d0b5;return typeof _0x539fe9['attrs']['id']==_0x2d2065(0x43f)&&_0x481a8d&&_0x481a8d[_0x2d2065(0x36f)](_0x539fe9[_0x2d2065(0x320)]['id'])?b(b({},_0x539fe9),{'attrs':b(b({},_0x539fe9['attrs']),{'id':_0x539fe9[_0x2d2065(0x320)]['id']+_0x9f1ecf[_0x2d2065(0x27a)]})}):_0x539fe9;})}):_0x555443;}function Dt(){const _0x1417de=_0x13cd8a;return Math[_0x1417de(0x3d0)]()['toString'](0x24)[_0x1417de(0x2d2)](0x2,0x8);}pe[_0x13cd8a(0x334)]='UniverIcon';var Ut={'tag':_0x13cd8a(0x271),'attrs':{'xmlns':_0x13cd8a(0x23c),'fill':'none','viewBox':_0x13cd8a(0x308),'width':_0x13cd8a(0x35b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x13cd8a(0x310)},'children':[{'tag':'path','attrs':{'stroke':_0x13cd8a(0x201),'d':_0x13cd8a(0x206),'strokeLinecap':_0x13cd8a(0x435),'strokeLinejoin':_0x13cd8a(0x435),'strokeWidth':1.2}}]},{'tag':_0x13cd8a(0x3a9),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x13cd8a(0x255)},'children':[{'tag':_0x13cd8a(0x413),'attrs':{'fill':_0x13cd8a(0x280),'d':_0x13cd8a(0x417)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M[_0x13cd8a(0x245)](function(_0x6bed69,_0x46e32d){const _0x5c078d=_0x13cd8a;return M[_0x5c078d(0x3fd)](pe,Object[_0x5c078d(0x291)]({},_0x6bed69,{'id':'off-line-icon','ref':_0x46e32d,'icon':Ut}));});ye[_0x13cd8a(0x334)]=_0x13cd8a(0x443);var Nt={'tag':_0x13cd8a(0x271),'attrs':{'xmlns':_0x13cd8a(0x23c),'fill':_0x13cd8a(0x21f),'viewBox':_0x13cd8a(0x2f8),'width':_0x13cd8a(0x35b),'height':_0x13cd8a(0x35b)},'children':[{'tag':'g','attrs':{'clipPath':_0x13cd8a(0x41c)},'children':[{'tag':_0x13cd8a(0x413),'attrs':{'stroke':_0x13cd8a(0x201),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x13cd8a(0x435),'strokeLinejoin':_0x13cd8a(0x435),'strokeWidth':1.2}}]},{'tag':_0x13cd8a(0x3a9),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x13cd8a(0x280),'d':_0x13cd8a(0x417),'transform':_0x13cd8a(0x289)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x13cd8a(0x245)](function(_0x452bc2,_0x4f76d9){const _0x48ef38=_0x13cd8a;return M['createElement'](pe,Object[_0x48ef38(0x291)]({},_0x452bc2,{'id':'on-line-icon','ref':_0x4f76d9,'icon':Nt}));});$e[_0x13cd8a(0x334)]=_0x13cd8a(0x205);function Mt(_0x521a18){const _0x50e3e7=_0x13cd8a;switch(_0x521a18){case u[_0x50e3e7(0x3fa)]['OFFLINE']:return _0x50e3e7(0x3ec);case u['CollaborationStatus'][_0x50e3e7(0x21a)]:return _0x50e3e7(0x30d);case u[_0x50e3e7(0x3fa)][_0x50e3e7(0x3b4)]:return'collabStatus.fetchMiss';case u[_0x50e3e7(0x3fa)][_0x50e3e7(0x393)]:return _0x50e3e7(0x3f5);case u[_0x50e3e7(0x3fa)]['AWAITING']:case u[_0x50e3e7(0x3fa)][_0x50e3e7(0x3b9)]:return'collabStatus.syncing';case u[_0x50e3e7(0x3fa)][_0x50e3e7(0x43b)]:case u['CollaborationStatus'][_0x50e3e7(0x1eb)]:return _0x50e3e7(0x1d8);}}function xe(_0x551200){const _0x4e4397=_0x13cd8a,{status$:_0x551450}=_0x551200,_0x33ca77=O[_0x4e4397(0x21b)](_0x551450,u[_0x4e4397(0x3fa)]['NOT_COLLAB']),_0x10bd21=O[_0x4e4397(0x1cc)](a[_0x4e4397(0x24e)]),_0x16698f=O[_0x4e4397(0x1cc)](u[_0x4e4397(0x38a)]),_0x2961a3=_0x33ca77!==u[_0x4e4397(0x3fa)][_0x4e4397(0x274)],_0x3f4521=_0x10bd21['t'](Mt(_0x33ca77)),_0x3b6032=_0x2961a3?P[_0x4e4397(0x22e)]($e,{}):P[_0x4e4397(0x22e)](ye,{}),_0x6a277a=M[_0x4e4397(0x332)](()=>{const _0x27ce8e=_0x4e4397;_0x2961a3||_0x16698f[_0x27ce8e(0x3da)]();},[_0x2961a3,_0x16698f]);function _0x58597c(){const _0x4827b4=_0x4e4397;return P[_0x4827b4(0x375)](_0x4827b4(0x2b0),{'className':'univer-flex\x20univer-items-center','onClick':_0x6a277a,'children':[P[_0x4827b4(0x22e)](_0x4827b4(0x2b0),{'className':D[_0x4827b4(0x3f2)](_0x4827b4(0x239),{'univer-text-green-500':_0x2961a3,'univer-text-red-500':!_0x2961a3}),'children':_0x3b6032}),P[_0x4827b4(0x22e)](_0x4827b4(0x2b0),{'className':_0x4827b4(0x30b),'children':_0x3f4521})]});}return _0x2961a3?_0x58597c():P[_0x4e4397(0x22e)](D[_0x4e4397(0x1da)],{'title':_0x10bd21['t'](_0x4e4397(0x359)),'children':_0x58597c()});}var Lt=Object[_0x13cd8a(0x2a3)],Pt=(_0x108eea,_0x12a437,_0x249219,_0x11439f)=>{for(var _0x5eb55d=_0x11439f>0x1?void 0x0:_0x11439f?Lt(_0x12a437,_0x249219):_0x12a437,_0x73dce7=_0x108eea['length']-0x1,_0x252bd6;_0x73dce7>=0x0;_0x73dce7--)(_0x252bd6=_0x108eea[_0x73dce7])&&(_0x5eb55d=_0x252bd6(_0x5eb55d)||_0x5eb55d);return _0x5eb55d;},V=(_0x2ea1ac,_0x295011)=>(_0x1c862b,_0x3ecbdb)=>_0x295011(_0x1c862b,_0x3ecbdb,_0x2ea1ac);exports[_0x13cd8a(0x439)]=class extends a[_0x13cd8a(0x2fe)]{constructor(_0x11987e,_0x469866,_0x2c1432,_0x45d244){const _0x707202=_0x13cd8a;super(),h(this,_0x707202(0x396),new d['BehaviorSubject'](u[_0x707202(0x3fa)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x11987e,this[_0x707202(0x253)]=_0x469866,this[_0x707202(0x36b)]=_0x2c1432,this['_uiPartsService']=_0x45d244,this[_0x707202(0x3a4)](),this[_0x707202(0x2d0)]());}[_0x13cd8a(0x2d0)](){const _0x3ff481=_0x13cd8a;this[_0x3ff481(0x22b)](this[_0x3ff481(0x2c3)][_0x3ff481(0x1e7)]['pipe'](d[_0x3ff481(0x366)](()=>{const _0x4de7a1=_0x3ff481,_0x45a5e0=this[_0x4de7a1(0x2c3)][_0x4de7a1(0x3b6)]();return _0x45a5e0?this[_0x4de7a1(0x36b)][_0x4de7a1(0x288)](_0x45a5e0[_0x4de7a1(0x313)]()):d['of'](null);}),d[_0x3ff481(0x366)](_0x2ad225=>_0x2ad225?_0x2ad225[_0x3ff481(0x3ba)]:d['of'](u[_0x3ff481(0x3fa)][_0x3ff481(0x393)])))['subscribe'](_0x35ea4d=>{const _0x2df123=_0x3ff481;this[_0x2df123(0x396)]['next'](_0x35ea4d);}));}[_0x13cd8a(0x3a4)](){const _0x3b8218=_0x13cd8a;this[_0x3b8218(0x22b)](this['_uiPartsService'][_0x3b8218(0x40c)](O['BuiltInUIPart'][_0x3b8218(0x24c)],()=>O[_0x3b8218(0x40d)](wt({'status$':this[_0x3b8218(0x396)][_0x3b8218(0x2d3)]()}),this[_0x3b8218(0x253)])));}},exports[_0x13cd8a(0x439)]=Pt([V(0x0,a[_0x13cd8a(0x362)]),V(0x1,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),V(0x2,a[_0x13cd8a(0x248)](u[_0x13cd8a(0x28b)])),V(0x3,O[_0x13cd8a(0x3c6)])],exports[_0x13cd8a(0x439)]);function wt(_0x3e86e2){const {status$:_0x327782}=_0x3e86e2;return function(){const _0x555b1c=_0x5703;return P[_0x555b1c(0x22e)](xe,{'status$':_0x327782});};}var At=Object[_0x13cd8a(0x2a3)],yt=(_0x4ee31d,_0x5466fa,_0x5eb5ee,_0x419af3)=>{const _0x4f91d4=_0x13cd8a;for(var _0x32b188=_0x419af3>0x1?void 0x0:_0x419af3?At(_0x5466fa,_0x5eb5ee):_0x5466fa,_0x1b97a9=_0x4ee31d[_0x4f91d4(0x29a)]-0x1,_0xf30623;_0x1b97a9>=0x0;_0x1b97a9--)(_0xf30623=_0x4ee31d[_0x1b97a9])&&(_0x32b188=_0xf30623(_0x32b188)||_0x32b188);return _0x32b188;},y=(_0x1e623c,_0x50f924)=>(_0x33fb65,_0xe55447)=>_0x50f924(_0x33fb65,_0xe55447,_0x1e623c);let q=class extends a[_0x13cd8a(0x2fe)]{constructor(_0x23a2ab,_0x573743,_0x174930,_0x1539a7,_0x15c689,_0x5a7ffd){const _0x107e7c=_0x13cd8a;super(),this['_beforeCloseService']=_0x23a2ab,this['_localCacheService']=_0x573743,this[_0x107e7c(0x22f)]=_0x174930,this[_0x107e7c(0x3e5)]=_0x1539a7,this[_0x107e7c(0x26d)]=_0x15c689,this[_0x107e7c(0x3b1)]=_0x5a7ffd,this[_0x107e7c(0x301)](),this[_0x107e7c(0x36c)]();}[_0x13cd8a(0x301)](){const _0x48c733=_0x13cd8a;this[_0x48c733(0x22b)](this['_beforeCloseService'][_0x48c733(0x38e)](()=>{const _0x34ed67=_0x48c733;if(this[_0x34ed67(0x369)][_0x34ed67(0x3c1)][_0x34ed67(0x42e)])return this[_0x34ed67(0x3b1)]['t'](_0x34ed67(0x2c2));}));}[_0x13cd8a(0x36c)](){const _0x35a7cd=_0x13cd8a;this[_0x35a7cd(0x22b)](this[_0x35a7cd(0x22f)][_0x35a7cd(0x358)][_0x35a7cd(0x29f)](_0x37bc41=>{const _0x5f04c5=_0x35a7cd;_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x307)]&&this['_messageService'][_0x5f04c5(0x299)]({'type':D[_0x5f04c5(0x39f)][_0x5f04c5(0x2b9)],'content':this[_0x5f04c5(0x3b1)]['t'](_0x5f04c5(0x207))}),_0x37bc41['id']===u['CollaborationUIEventId'][_0x5f04c5(0x3be)]&&this[_0x5f04c5(0x3e5)]['show']({'type':D[_0x5f04c5(0x39f)][_0x5f04c5(0x2b9)],'content':this['_localeService']['t'](_0x5f04c5(0x250))}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x238)]&&this['_notificationService'][_0x5f04c5(0x299)]({'title':this[_0x5f04c5(0x3b1)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':_0x5f04c5(0x325),'duration':0x0}),_0x37bc41['id']===u['CollaborationUIEventId'][_0x5f04c5(0x21a)]&&this[_0x5f04c5(0x3e5)][_0x5f04c5(0x299)]({'type':D['MessageType'][_0x5f04c5(0x1e0)],'content':this[_0x5f04c5(0x3b1)]['t']('collaboration.closeRoom')+'('+_0x37bc41[_0x5f04c5(0x2ac)]+')'}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x36d)]&&this[_0x5f04c5(0x3e5)][_0x5f04c5(0x299)]({'type':D[_0x5f04c5(0x39f)][_0x5f04c5(0x2b9)],'content':this['_localeService']['t'](_0x37bc41[_0x5f04c5(0x2ac)]||'')}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x5f04c5(0x299)]({'type':D['MessageType'][_0x5f04c5(0x2b9)],'content':this[_0x5f04c5(0x3b1)]['t']('session.will-retry')}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x2d1)]&&this['_messageService']['show']({'type':D[_0x5f04c5(0x39f)][_0x5f04c5(0x1e0)],'content':this['_localeService']['t']('session.connection-failed')}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x1cb)]&&this[_0x5f04c5(0x3e5)][_0x5f04c5(0x299)]({'type':D['MessageType']['Error'],'content':this[_0x5f04c5(0x3b1)]['t'](_0x5f04c5(0x2be))});}));}};q=yt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x13cd8a(0x418)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x13cd8a(0x1f6)]),y(0x4,O['INotificationService']),y(0x5,a[_0x13cd8a(0x248)](a['LocaleService']))],q);const $t=_0x13cd8a(0x298),Ue={},Ee=a[_0x13cd8a(0x32f)](_0x13cd8a(0x43c));var xt=Object[_0x13cd8a(0x2a3)],Bt=(_0x19427d,_0x4c72dd,_0x337fa6,_0x210ab9)=>{for(var _0x64df45=_0x210ab9>0x1?void 0x0:_0x210ab9?xt(_0x4c72dd,_0x337fa6):_0x4c72dd,_0x31bae6=_0x19427d['length']-0x1,_0x5056ab;_0x31bae6>=0x0;_0x31bae6--)(_0x5056ab=_0x19427d[_0x31bae6])&&(_0x64df45=_0x5056ab(_0x64df45)||_0x64df45);return _0x64df45;},F=(_0x3cbee9,_0x302611)=>(_0x3c9c2d,_0x406028)=>_0x302611(_0x3c9c2d,_0x406028,_0x3cbee9);exports['CollaborationDataLoaderController']=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x32d879,_0x5ec646,_0x406504,_0x769440,_0x13a94d){const _0x1a2417=_0x13cd8a;super(),this['_urlService']=_0x32d879,this['_logService']=_0x5ec646,this[_0x1a2417(0x39e)]=_0x406504,this['_dataLoaderService']=_0x769440,_0x13a94d?_0x13a94d==null||_0x13a94d['whenReady']()[_0x1a2417(0x3f0)](()=>this[_0x1a2417(0x3e0)]()):(this[_0x1a2417(0x1f9)][_0x1a2417(0x231)](_0x1a2417(0x2a9),_0x1a2417(0x244)),this[_0x1a2417(0x3e0)]());}async['_init'](){const _0x55fadc=_0x13cd8a,_0x2b059b=this[_0x55fadc(0x374)][_0x55fadc(0x28c)](_0x55fadc(0x2ee)),_0xb83804=this[_0x55fadc(0x374)][_0x55fadc(0x28c)](_0x55fadc(0x1f2)),_0x26b20d=this[_0x55fadc(0x374)][_0x55fadc(0x28c)]('subunit');if(!_0x2b059b||!_0xb83804){this[_0x55fadc(0x1f9)][_0x55fadc(0x231)](_0x55fadc(0x2a9),_0x55fadc(0x2bb));return;}const _0x3965d1=await this[_0x55fadc(0x3ff)]['loadUnit'](_0x2b059b,Number(_0xb83804),_0x26b20d);_0x3965d1&&_0x3965d1 instanceof a[_0x55fadc(0x3de)]&&this[_0x55fadc(0x237)](_0x3965d1);}async[_0x13cd8a(0x237)](_0x33be70){const _0x2f5506=_0x13cd8a;await this['_updateSubUnitFromURLParams'](_0x33be70),_0x33be70['activeSheet$']['pipe'](d[_0x2f5506(0x30a)](this[_0x2f5506(0x1dd)]))[_0x2f5506(0x29f)](_0x17252a=>{const _0x5a17b5=_0x2f5506;_0x17252a&&this[_0x5a17b5(0x379)](_0x17252a);}),this[_0x2f5506(0x374)][_0x2f5506(0x348)][_0x2f5506(0x329)](d['takeUntil'](this['dispose$']))[_0x2f5506(0x29f)](()=>this[_0x2f5506(0x322)](_0x33be70));}[_0x13cd8a(0x379)](_0x523cde,_0x4f26e=!0x1){const _0x487f75=_0x13cd8a,_0x33a63a=this[_0x487f75(0x374)][_0x487f75(0x28c)]('subunit');_0x523cde[_0x487f75(0x3d9)]()!==_0x33a63a&&this[_0x487f75(0x374)][_0x487f75(0x26a)](_0x487f75(0x42f),_0x523cde[_0x487f75(0x3d9)](),_0x4f26e);}async[_0x13cd8a(0x322)](_0x4274ba){const _0x1a2c36=_0x13cd8a;var _0xdc05eb;const _0x320542=this[_0x1a2c36(0x374)]['getParam'](_0x1a2c36(0x42f));if(!_0x320542||!_0x4274ba['getSheetBySheetId'](_0x320542)){const _0xda7918=_0x4274ba[_0x1a2c36(0x1e9)]()[0x0],_0x261599=_0x4274ba['getSheetBySheetId'](_0xda7918);if(!_0x261599)return;this[_0x1a2c36(0x379)](_0x261599,!0x0),await this[_0x1a2c36(0x39e)][_0x1a2c36(0x2fa)](g[_0x1a2c36(0x3c0)]['id'],{'unitId':_0x4274ba[_0x1a2c36(0x313)](),'subUnitId':_0xda7918});return;}((_0xdc05eb=_0x4274ba[_0x1a2c36(0x3dd)]())==null?void 0x0:_0xdc05eb[_0x1a2c36(0x3d9)]())!==_0x320542&&await this[_0x1a2c36(0x39e)][_0x1a2c36(0x2fa)](g[_0x1a2c36(0x3c0)]['id'],{'unitId':_0x4274ba[_0x1a2c36(0x313)](),'subUnitId':_0x320542});}},exports[_0x13cd8a(0x270)]=Bt([F(0x0,Ee),F(0x1,a[_0x13cd8a(0x2fc)]),F(0x2,a[_0x13cd8a(0x209)]),F(0x3,a[_0x13cd8a(0x248)](u[_0x13cd8a(0x2f5)])),F(0x4,a[_0x13cd8a(0x202)](Ke[_0x13cd8a(0x411)]))],exports[_0x13cd8a(0x270)]);var jt=Object[_0x13cd8a(0x2a3)],kt=(_0x408a85,_0x14fd25,_0x2840c0,_0x136054)=>{const _0x4e65e8=_0x13cd8a;for(var _0x143530=_0x136054>0x1?void 0x0:_0x136054?jt(_0x14fd25,_0x2840c0):_0x14fd25,_0x142fba=_0x408a85[_0x4e65e8(0x29a)]-0x1,_0x74c622;_0x142fba>=0x0;_0x142fba--)(_0x74c622=_0x408a85[_0x142fba])&&(_0x143530=_0x74c622(_0x143530)||_0x143530);return _0x143530;},ce=(_0x32062b,_0x2ddb3b)=>(_0x3beeb6,_0xa5f3d8)=>_0x2ddb3b(_0x3beeb6,_0xa5f3d8,_0x32062b);let z=class{constructor(_0x1da623,_0x59d363,_0xdb5dff){const _0x130909=_0x13cd8a;this['_injector']=_0x1da623,this[_0x130909(0x36e)]=_0x59d363,this[_0x130909(0x39b)]=_0xdb5dff;}[_0x13cd8a(0x328)](_0x58ee12){const _0x4b65fc=_0x13cd8a;this[_0x4b65fc(0x23e)](_0x58ee12),this[_0x4b65fc(0x1c4)](_0x58ee12);}[_0x13cd8a(0x3df)](_0x4bd6d8){const _0x13fa71=_0x13cd8a,{unitID:_0x41414d}=_0x4bd6d8,_0x4f1b25=this[_0x13fa71(0x39b)][_0x13fa71(0x372)](_0x41414d)[_0x13fa71(0x316)](E[_0x13fa71(0x321)]),{redoCache:_0x1f2387}=_0x4f1b25['getUndoRedoMutationParamsCache']();if(_0x1f2387['length']===0x0)return _0x4bd6d8;let _0x419392=a[_0x13fa71(0x240)][_0x13fa71(0x351)](_0x4bd6d8[_0x13fa71(0x3f6)][0x0]);for(let _0x4bba38=0x0;_0x4bba38<_0x1f2387[_0x13fa71(0x29a)];_0x4bba38++){const _0x168b91={'id':_0x13fa71(0x2c1),'params':{..._0x1f2387[_0x4bba38]}},_0xff1d33=this[_0x13fa71(0x36e)][_0x13fa71(0x25f)](_0x419392,_0x168b91,!0x1);if(m[_0x13fa71(0x38d)](_0xff1d33))throw _0xff1d33[_0x13fa71(0x325)];_0x419392=_0xff1d33[_0x13fa71(0x1f4)];}return{...a['Tools']['deepClone'](_0x4bd6d8),'mutations':[_0x419392]};}[_0x13cd8a(0x23e)](_0x575339){const _0x382692=_0x13cd8a,{unitID:_0x259fb7}=_0x575339,_0x7e9654=this[_0x382692(0x39b)]['getRenderById'](_0x259fb7)[_0x382692(0x316)](E[_0x382692(0x321)]),{undoCache:_0x1708e2,redoCache:_0x3e88f9}=_0x7e9654[_0x382692(0x296)]();if(_0x1708e2[_0x382692(0x29a)]===0x0||_0x3e88f9[_0x382692(0x29a)]===0x0)return;const _0x5c1a82=[],_0x179f0f=[];let _0x43833a=a[_0x382692(0x240)][_0x382692(0x351)](_0x575339['mutations'][0x0]),_0x47739c=a[_0x382692(0x240)]['deepClone'](_0x575339[_0x382692(0x3f6)][0x0]);for(let _0x5ec825=_0x1708e2[_0x382692(0x29a)]-0x1;_0x5ec825>=0x0;_0x5ec825--){const _0x2381fd={'id':_0x382692(0x2c1),'params':{..._0x1708e2[_0x5ec825]}},_0x5c19c2={'id':_0x382692(0x2c1),'params':{..._0x3e88f9[_0x5ec825]}},_0x507e01=this[_0x382692(0x36e)]['transformMutation'](_0x43833a,_0x2381fd,!0x1),_0x29fa67=this[_0x382692(0x36e)][_0x382692(0x25f)](_0x47739c,_0x5c19c2,!0x1);if(m[_0x382692(0x38d)](_0x507e01))throw _0x507e01['error'];if(m[_0x382692(0x38d)](_0x29fa67))throw _0x29fa67[_0x382692(0x325)];_0x5c1a82[_0x382692(0x361)](_0x507e01[_0x382692(0x37b)][_0x382692(0x357)]),_0x179f0f[_0x382692(0x361)](_0x29fa67['m2Prime']['params']),_0x43833a=_0x507e01['m1Prime'],_0x47739c=_0x29fa67[_0x382692(0x1f4)];}_0x7e9654['setUndoRedoMutationParamsCache']({'undoCache':_0x5c1a82,'redoCache':_0x179f0f});}['_transformPreviousActiveRange'](_0x54431a){const _0x43102f=_0x13cd8a,{unitID:_0x15ecbc}=_0x54431a,_0x4eb4f4=this[_0x43102f(0x39b)][_0x43102f(0x372)](_0x15ecbc)[_0x43102f(0x316)](E[_0x43102f(0x321)]),_0x330e15=_0x4eb4f4[_0x43102f(0x3c2)]();if(_0x330e15==null)return;const _0x3911a9=[{'id':_0x43102f(0x2c1),'params':{'unitId':_0x54431a['unitID'],'actions':null,'textRanges':[_0x330e15]}}],_0x17c208=this[_0x43102f(0x36e)][_0x43102f(0x1c9)](_0x54431a,_0x3911a9);if(!m['isTransformMutationsWithChangesetSuccess'](_0x17c208))throw _0x17c208[_0x43102f(0x325)];const _0x3fd3fe=_0x17c208[_0x43102f(0x37b)][0x0][_0x43102f(0x357)][_0x43102f(0x38c)];Array['isArray'](_0x3fd3fe)&&_0x3fd3fe['length']&&_0x4eb4f4[_0x43102f(0x27f)](_0x3fd3fe[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x13cd8a(0x260)])),ce(0x1,m[_0x13cd8a(0x225)]),ce(0x2,p[_0x13cd8a(0x3bf)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x5ce6ee,_0x5e10be,_0x4b67c6,_0x2794b2)=>{for(var _0x4924cf=_0x2794b2>0x1?void 0x0:_0x2794b2?Ft(_0x5e10be,_0x4b67c6):_0x5e10be,_0x200619=_0x5ce6ee['length']-0x1,_0x3f3b5e;_0x200619>=0x0;_0x200619--)(_0x3f3b5e=_0x5ce6ee[_0x200619])&&(_0x4924cf=_0x3f3b5e(_0x4924cf)||_0x4924cf);return _0x4924cf;},le=(_0x391827,_0x1ba707)=>(_0x47232d,_0x16fee7)=>_0x1ba707(_0x47232d,_0x16fee7,_0x391827);let J=class{constructor(_0x2f1866,_0x2ea25d,_0x4d372f){const _0x9c3e27=_0x13cd8a;this['_injector']=_0x2f1866,this['_transformService']=_0x2ea25d,this[_0x9c3e27(0x395)]=_0x4d372f;}[_0x13cd8a(0x3ce)](_0x3a033e){this['_transformHistoryAndStateStack'](_0x3a033e);}[_0x13cd8a(0x3df)](_0x4056c3){const _0x228424=_0x13cd8a,{unitID:_0x40255f}=_0x4056c3,{collaboration:_0x449bfb}=this['_docStateChangeManagerService'][_0x228424(0x23a)](_0x40255f);if(_0x449bfb[_0x228424(0x29a)]===0x0)return _0x4056c3;let _0x11a6a3=a[_0x228424(0x240)][_0x228424(0x351)](_0x4056c3[_0x228424(0x3f6)][0x0]);for(let _0x5cea79=0x0;_0x5cea79<_0x449bfb['length'];_0x5cea79++){const _0x173698={'id':_0x228424(0x2c1),'params':{'unitId':_0x449bfb[_0x5cea79][_0x228424(0x41f)],..._0x449bfb[_0x5cea79][_0x228424(0x2d5)]}},_0x17fcee=this[_0x228424(0x36e)][_0x228424(0x25f)](_0x11a6a3,_0x173698,!0x1);if(m['isTransformMutationFailure'](_0x17fcee))throw _0x17fcee['error'];_0x11a6a3=_0x17fcee[_0x228424(0x1f4)];}return{...a[_0x228424(0x240)][_0x228424(0x351)](_0x4056c3),'mutations':[_0x11a6a3]};}[_0x13cd8a(0x208)](_0x4bcd2f){const _0x5b4cbb=_0x13cd8a,{unitID:_0xb72c59}=_0x4bcd2f,{history:_0x1d944b,collaboration:_0x41447a}=this[_0x5b4cbb(0x395)][_0x5b4cbb(0x23a)](_0xb72c59);if(_0x1d944b[_0x5b4cbb(0x29a)]===0x0&&_0x41447a[_0x5b4cbb(0x29a)]===0x0)return;const _0x1fd644=[],_0xd00ff8=[];let _0x1b52c0=a[_0x5b4cbb(0x240)][_0x5b4cbb(0x351)](_0x4bcd2f[_0x5b4cbb(0x3f6)][0x0]),_0x308512=a[_0x5b4cbb(0x240)][_0x5b4cbb(0x351)](_0x4bcd2f[_0x5b4cbb(0x3f6)][0x0]);for(let _0x579cfc=_0x1d944b[_0x5b4cbb(0x29a)]-0x1;_0x579cfc>=0x0;_0x579cfc--){const _0x528884={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d944b[_0x579cfc]['unitId'],..._0x1d944b[_0x579cfc][_0x5b4cbb(0x1fe)]}},_0x4975b8={'id':_0x5b4cbb(0x2c1),'params':{'unitId':_0x1d944b[_0x579cfc][_0x5b4cbb(0x41f)],..._0x1d944b[_0x579cfc]['redoState']}},_0x39f58a=this[_0x5b4cbb(0x36e)][_0x5b4cbb(0x25f)](_0x1b52c0,_0x528884,!0x1),_0x20d19a=this[_0x5b4cbb(0x36e)][_0x5b4cbb(0x25f)](_0x308512,_0x4975b8,!0x1);if(m[_0x5b4cbb(0x38d)](_0x39f58a))throw _0x39f58a[_0x5b4cbb(0x325)];if(m[_0x5b4cbb(0x38d)](_0x20d19a))throw _0x20d19a[_0x5b4cbb(0x325)];_0x1fd644[_0x5b4cbb(0x361)]({..._0x1d944b[_0x579cfc],'undoState':_0x39f58a[_0x5b4cbb(0x37b)]['params'],'redoState':_0x20d19a[_0x5b4cbb(0x37b)][_0x5b4cbb(0x357)]}),_0x1b52c0=_0x39f58a['m1Prime'],_0x308512=_0x20d19a['m1Prime'];}_0x1b52c0=a['Tools']['deepClone'](_0x4bcd2f[_0x5b4cbb(0x3f6)][0x0]),_0x308512=a[_0x5b4cbb(0x240)]['deepClone'](_0x4bcd2f[_0x5b4cbb(0x3f6)][0x0]);for(let _0xe56022=_0x41447a[_0x5b4cbb(0x29a)]-0x1;_0xe56022>=0x0;_0xe56022--){const _0x35382a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41447a[_0xe56022][_0x5b4cbb(0x41f)],..._0x41447a[_0xe56022]['undoState']}},_0xacde92={'id':_0x5b4cbb(0x2c1),'params':{'unitId':_0x41447a[_0xe56022][_0x5b4cbb(0x41f)],..._0x41447a[_0xe56022][_0x5b4cbb(0x2d5)]}},_0x219823=this[_0x5b4cbb(0x36e)][_0x5b4cbb(0x25f)](_0x1b52c0,_0x35382a,!0x1),_0x28006e=this[_0x5b4cbb(0x36e)][_0x5b4cbb(0x25f)](_0x308512,_0xacde92,!0x1);if(m[_0x5b4cbb(0x38d)](_0x219823))throw _0x219823['error'];if(m[_0x5b4cbb(0x38d)](_0x28006e))throw _0x28006e['error'];_0xd00ff8['unshift']({..._0x41447a[_0xe56022],'undoState':_0x219823[_0x5b4cbb(0x37b)][_0x5b4cbb(0x357)],'redoState':_0x28006e[_0x5b4cbb(0x37b)][_0x5b4cbb(0x357)]}),_0x1b52c0=_0x219823[_0x5b4cbb(0x1f4)],_0x308512=_0x28006e[_0x5b4cbb(0x1f4)];}this['_docStateChangeManagerService'][_0x5b4cbb(0x441)](_0xb72c59,{'history':_0x1fd644,'collaboration':_0xd00ff8});}};J=Ht([le(0x0,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),le(0x1,m[_0x13cd8a(0x225)]),le(0x2,a[_0x13cd8a(0x248)](E[_0x13cd8a(0x41a)]))],J);var Yt=Object[_0x13cd8a(0x2a3)],Wt=(_0x59ecbb,_0x5411da,_0x460cf6,_0x28d287)=>{for(var _0x2ec545=_0x28d287>0x1?void 0x0:_0x28d287?Yt(_0x5411da,_0x460cf6):_0x5411da,_0x309e15=_0x59ecbb['length']-0x1,_0x8d65f2;_0x309e15>=0x0;_0x309e15--)(_0x8d65f2=_0x59ecbb[_0x309e15])&&(_0x2ec545=_0x8d65f2(_0x2ec545)||_0x2ec545);return _0x2ec545;},Ne=(_0x21e4cc,_0x2618af)=>(_0xf6e39f,_0x441d6e)=>_0x2618af(_0xf6e39f,_0x441d6e,_0x21e4cc);let Z=class{constructor(_0x43b54c,_0x4caf3e){const _0x312c94=_0x13cd8a;this[_0x312c94(0x253)]=_0x43b54c,this[_0x312c94(0x36e)]=_0x4caf3e;}[_0x13cd8a(0x1f1)](_0x46aa15){const _0x617a51=_0x13cd8a;var _0xcdc797;const _0x331947=this['_injector'][_0x617a51(0x384)](Y[_0x617a51(0x33a)]),_0x198a11=(_0xcdc797=_0x331947[_0x617a51(0x408)]())!=null?_0xcdc797:[];if(_0x198a11[_0x617a51(0x29a)]===0x0)return;const _0x26e681=_0x46aa15[_0x617a51(0x268)],_0x1728b8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26e681,'actions':null,'textRanges':_0x198a11}}],_0x19decb=this['_transformService']['transformMutationsWithChangeset'](_0x46aa15,_0x1728b8);if(!m['isTransformMutationsWithChangesetSuccess'](_0x19decb))throw _0x19decb['error'];const _0x2ef611=_0x19decb['m2Prime'][0x0]['params'][_0x617a51(0x38c)];Array[_0x617a51(0x1ea)](_0x2ef611)&&_0x2ef611[_0x617a51(0x29a)]&&_0x331947['replaceDocRanges'](_0x2ef611,{'unitId':_0x26e681,'subUnitId':_0x26e681},!0x1);}};Z=Wt([Ne(0x0,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x13cd8a(0x2a3)],Xt=(_0x3b705c,_0x53fc1b,_0x23d4d1,_0x1ffa89)=>{const _0x3b328f=_0x13cd8a;for(var _0xd0b27a=_0x1ffa89>0x1?void 0x0:_0x1ffa89?Vt(_0x53fc1b,_0x23d4d1):_0x53fc1b,_0x66cce7=_0x3b705c[_0x3b328f(0x29a)]-0x1,_0x395b0b;_0x66cce7>=0x0;_0x66cce7--)(_0x395b0b=_0x3b705c[_0x66cce7])&&(_0xd0b27a=_0x395b0b(_0xd0b27a)||_0xd0b27a);return _0xd0b27a;},N=(_0x50ca0a,_0x354335)=>(_0x3ce064,_0x126176)=>_0x354335(_0x3ce064,_0x126176,_0x50ca0a);let Q=class extends a[_0x13cd8a(0x2fe)]{constructor(_0x149175,_0xe88aed,_0x28b27b,_0x530b03,_0x3cfbba,_0x5e5832,_0x3013cf,_0x277466){const _0x233d38=_0x13cd8a;super(),h(this,_0x233d38(0x396),new d[(_0x233d38(0x2ab))](u[_0x233d38(0x3fa)]['NOT_COLLAB'])),(this[_0x233d38(0x395)]=_0x149175,this[_0x233d38(0x36b)]=_0xe88aed,this[_0x233d38(0x232)]=_0x28b27b,this['_docTransformStateCacheService']=_0x530b03,this['_docTransformSelectionsService']=_0x3cfbba,this[_0x233d38(0x2e2)]=_0x5e5832,this[_0x233d38(0x3e5)]=_0x3013cf,this[_0x233d38(0x3b1)]=_0x277466,this[_0x233d38(0x37a)]());}[_0x13cd8a(0x37a)](){const _0x270258=_0x13cd8a;this[_0x270258(0x22b)](this['_collaborationController'][_0x270258(0x3bd)][_0x270258(0x29f)](_0x2a08c0=>{const _0x20cf7b=_0x270258,_0x505164=this['_docStateChangeManagerService']['docStateChange$'][_0x20cf7b(0x29f)](_0x252719=>{const _0x4ae562=_0x20cf7b;if(_0x252719==null)return;const {unitId:_0x42d75a,redoState:_0x7c4229,commandId:_0x37d5c9}=_0x252719;if(_0x42d75a!==_0x2a08c0['unitID'])return;const _0x5cb12b={'id':_0x37d5c9,'type':a[_0x4ae562(0x2db)][_0x4ae562(0x2de)],'params':{'unitId':_0x42d75a,'actions':_0x7c4229['actions'],'textRanges':null}};_0x2a08c0['onLocalMutation'](_0x5cb12b);});if(_0x2a08c0[_0x20cf7b(0x22b)](_0x505164),_0x2a08c0 instanceof u[_0x20cf7b(0x309)]){const _0x1517aa={'onTransformIME':_0x1e4f81=>this[_0x20cf7b(0x232)][_0x20cf7b(0x328)](_0x1e4f81),'onTransformState':_0x1d9d5e=>this[_0x20cf7b(0x437)][_0x20cf7b(0x3ce)](_0x1d9d5e),'onTransformSelections':_0x235cd4=>this[_0x20cf7b(0x29c)][_0x20cf7b(0x1f1)](_0x235cd4),'onSyncEditingCollabCursor':_0x472895=>this['_docSyncEditingCollabCursorService'][_0x20cf7b(0x2e3)](_0x472895),'onTransformRemoteChangesetByIMECache':_0x51ce1e=>this[_0x20cf7b(0x232)][_0x20cf7b(0x3df)](_0x51ce1e),'onTransformRemoteChangesetByStateCache':_0x4458b7=>this[_0x20cf7b(0x437)][_0x20cf7b(0x3df)](_0x4458b7)};_0x2a08c0['addHandlerCallback'](_0x1517aa);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x13cd8a(0x41a)])),N(0x1,a[_0x13cd8a(0x248)](u[_0x13cd8a(0x28b)])),N(0x2,a[_0x13cd8a(0x248)](z)),N(0x3,a[_0x13cd8a(0x248)](J)),N(0x4,a[_0x13cd8a(0x248)](Z)),N(0x5,a[_0x13cd8a(0x248)](Ce)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x13cd8a(0x24e)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x4e6337,_0x49f317,_0x414d21,_0x170b32)=>{const _0x3865ad=_0x13cd8a;for(var _0x3dfe76=_0x170b32>0x1?void 0x0:_0x170b32?Gt(_0x49f317,_0x414d21):_0x49f317,_0x4fff9f=_0x4e6337[_0x3865ad(0x29a)]-0x1,_0x25854c;_0x4fff9f>=0x0;_0x4fff9f--)(_0x25854c=_0x4e6337[_0x4fff9f])&&(_0x3dfe76=_0x25854c(_0x3dfe76)||_0x3dfe76);return _0x3dfe76;},_e=(_0xfb2212,_0x24db73)=>(_0x3a3bb2,_0x53a9f3)=>_0x24db73(_0x3a3bb2,_0x53a9f3,_0xfb2212);let ge=class extends a['Disposable']{constructor(_0x13a195,_0x24353a,_0xa53396){const _0xa73c22=_0x13cd8a;super(),h(this,_0xa73c22(0x267),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0xa73c22(0x216),!0x1),(this['_configService']=_0x13a195,this[_0xa73c22(0x344)]=_0x24353a,this['_revisionService']=_0xa53396);}[_0x13cd8a(0x2f0)](){this['_disabled']=!0x0;}[_0x13cd8a(0x422)](){const _0xfe5bc6=_0x13cd8a;this[_0xfe5bc6(0x216)]=!0x1;}get[_0x13cd8a(0x3c1)](){const _0x1b84b0=_0x13cd8a;return this[_0x1b84b0(0x398)];}[_0x13cd8a(0x41d)](){const _0x42aebb=_0x13cd8a;this[_0x42aebb(0x3cd)]()[_0x42aebb(0x3f0)](()=>super[_0x42aebb(0x41d)]());}async[_0x13cd8a(0x2b6)](_0x1430bd){const _0x4a61d0=_0x13cd8a;return this['_disabled']?null:this['_localStorageService'][_0x4a61d0(0x31f)](u['getLocalCacheKey'](_0x1430bd));}async[_0x13cd8a(0x1e6)](_0x351c1e,_0x240fd5){const _0x2f9f36=_0x13cd8a;return!!this[_0x2f9f36(0x344)]['setItem'](_0x351c1e,_0x240fd5);}[_0x13cd8a(0x1c7)](_0x385a95,_0x56c8ab,_0x52219f,_0x4363c5){const _0x2224f=_0x13cd8a,_0x48784a=this[_0x2224f(0x3eb)][_0x2224f(0x266)](_0x385a95);this[_0x2224f(0x267)]['set'](_0x385a95,{'unitID':_0x385a95,'type':_0x56c8ab,'awaitingChangeset':_0x52219f,'mutations':_0x4363c5,'rev':_0x48784a}),this[_0x2224f(0x398)][_0x2224f(0x315)](_0x385a95)||this['_scheduleSaving'](_0x385a95);}[_0x13cd8a(0x29e)](_0x538f1c){const _0x3fa774=_0x13cd8a,_0x3b1d28=this[_0x3fa774(0x33d)]();_0x3b1d28===0x0?this[_0x3fa774(0x1d2)](_0x538f1c):this['_saveTaskMap'][_0x3fa774(0x2f1)](_0x538f1c,setTimeout(()=>this[_0x3fa774(0x1d2)](_0x538f1c),_0x3b1d28));}[_0x13cd8a(0x33d)](){const _0x2fef3c=_0x13cd8a;var _0x53c004;return(_0x53c004=this['_configService'][_0x2fef3c(0x404)](u[_0x2fef3c(0x269)]))!=null?_0x53c004:u[_0x2fef3c(0x1e3)];}[_0x13cd8a(0x1d2)](_0x3e7efc){const _0x322c72=_0x13cd8a,_0x1f325a=this[_0x322c72(0x398)][_0x322c72(0x384)](_0x3e7efc);return _0x1f325a!==void 0x0&&window[_0x322c72(0x423)](_0x1f325a),this[_0x322c72(0x344)][_0x322c72(0x338)](u[_0x322c72(0x22c)](_0x3e7efc),this[_0x322c72(0x267)][_0x322c72(0x384)](_0x3e7efc))['then'](()=>this[_0x322c72(0x398)][_0x322c72(0x2a4)](_0x3e7efc));}async[_0x13cd8a(0x3cd)](){const _0x2a6187=_0x13cd8a,_0x1a8ff6=[];this[_0x2a6187(0x398)]['forEach']((_0x8e9219,_0x3cc0f2)=>{const _0x495a31=_0x2a6187;window[_0x495a31(0x423)](_0x8e9219),_0x1a8ff6[_0x495a31(0x28f)](this[_0x495a31(0x1d2)](_0x3cc0f2)[_0x495a31(0x3f0)](()=>{const _0x1902a3=_0x495a31;this[_0x1902a3(0x398)]['delete'](_0x3cc0f2);}));}),await Promise[_0x2a6187(0x389)](_0x1a8ff6);}};ge=Kt([_e(0x0,a[_0x13cd8a(0x386)]),_e(0x1,a[_0x13cd8a(0x2fd)]),_e(0x2,a[_0x13cd8a(0x248)](m[_0x13cd8a(0x259)]))],ge);class Be extends a[_0x13cd8a(0x2b1)]{constructor(){const _0x5eafdb=_0x13cd8a;super(),h(this,_0x5eafdb(0x348)),this[_0x5eafdb(0x348)]=d[_0x5eafdb(0x3c4)](window,_0x5eafdb(0x1e2))[_0x5eafdb(0x329)](d['takeUntil'](this[_0x5eafdb(0x1dd)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}[_0x13cd8a(0x26a)](_0x474bee,_0x19f881,_0x1dc083=!0x1){const _0x297f31=_0x13cd8a,_0x10bed2=new URL(window[_0x297f31(0x352)][_0x297f31(0x1f7)]);_0x10bed2['searchParams'][_0x297f31(0x2f1)](_0x474bee,_0x19f881),_0x1dc083?window[_0x297f31(0x38f)]['replaceState']('','',_0x10bed2[_0x297f31(0x402)]()):window[_0x297f31(0x38f)][_0x297f31(0x221)]('','',_0x10bed2[_0x297f31(0x402)]());}['removeParam'](_0x171cc3,_0x5dd33a=!0x1){const _0x339363=_0x13cd8a,_0x2213c1=new URL(window[_0x339363(0x352)][_0x339363(0x1f7)]);_0x2213c1['searchParams'][_0x339363(0x2a4)](_0x171cc3),_0x5dd33a?window[_0x339363(0x38f)]['replaceState']('','',_0x2213c1[_0x339363(0x402)]()):window[_0x339363(0x38f)][_0x339363(0x221)]('','',_0x2213c1['toString']());}[_0x13cd8a(0x28c)](_0x10061b){const _0x2cb0b3=_0x13cd8a;var _0x39f076;return(_0x39f076=new URL(window[_0x2cb0b3(0x352)][_0x2cb0b3(0x1f7)])[_0x2cb0b3(0x2c6)][_0x2cb0b3(0x384)](_0x10061b))!=null?_0x39f076:void 0x0;}}var qt=Object[_0x13cd8a(0x247)],zt=Object[_0x13cd8a(0x2a3)],Jt=(_0x51bd3,_0x1c1d89,_0x4636a9)=>_0x1c1d89 in _0x51bd3?qt(_0x51bd3,_0x1c1d89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4636a9}):_0x51bd3[_0x1c1d89]=_0x4636a9,Zt=(_0x4548b3,_0x48aae2,_0x5ed5de,_0x145054)=>{for(var _0x1b2612=_0x145054>0x1?void 0x0:_0x145054?zt(_0x48aae2,_0x5ed5de):_0x48aae2,_0x5c649f=_0x4548b3['length']-0x1,_0x5dca99;_0x5c649f>=0x0;_0x5c649f--)(_0x5dca99=_0x4548b3[_0x5c649f])&&(_0x1b2612=_0x5dca99(_0x1b2612)||_0x1b2612);return _0x1b2612;},he=(_0x7dd935,_0x125510)=>(_0x5669ad,_0x39f7df)=>_0x125510(_0x5669ad,_0x39f7df,_0x7dd935),Qt=(_0x476876,_0x1caf48,_0x29b1b4)=>Jt(_0x476876,_0x1caf48+'',_0x29b1b4);const es=_0x13cd8a(0x347);exports[_0x13cd8a(0x2cf)]=class extends a[_0x13cd8a(0x32b)]{constructor(_0x207ad1=Ue,_0x1c188e,_0x5ede6f,_0x1c966a){const _0x59b7b9=_0x13cd8a;super(),this[_0x59b7b9(0x224)]=_0x207ad1,this[_0x59b7b9(0x39b)]=_0x1c188e,this['_injector']=_0x5ede6f,this[_0x59b7b9(0x319)]=_0x1c966a;const {..._0x4d29d8}=a['merge']({},Ue,this['_config']);this[_0x59b7b9(0x319)]['setConfig']($t,_0x4d29d8);}[_0x13cd8a(0x341)](){const _0x49495c=_0x13cd8a;this['_registerDependencies'](),this[_0x49495c(0x38b)]();}[_0x13cd8a(0x3c9)](){const _0x1dfa1c=_0x13cd8a;this[_0x1dfa1c(0x2eb)]();}[_0x13cd8a(0x41b)](){const _0x509daa=_0x13cd8a;var _0x3eae63;const _0x51a212=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x509daa(0x226)],{'useClass':G[_0x509daa(0x378)]}],[u[_0x509daa(0x418)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x509daa(0x270)]]];a['registerDependencies'](this[_0x509daa(0x253)],a[_0x509daa(0x229)](_0x51a212,(_0x3eae63=this['_config'])==null?void 0x0:_0x3eae63['override']));}[_0x13cd8a(0x2eb)](){const _0x42e5ff=_0x13cd8a;this[_0x42e5ff(0x22b)](this[_0x42e5ff(0x39b)][_0x42e5ff(0x446)](a['UniverInstanceType']['UNIVER_DOC'],[fe])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x42e5ff(0x1d5)][_0x42e5ff(0x3e7)],[ve]));}[_0x13cd8a(0x38b)](){const _0x57759a=_0x13cd8a;a[_0x57759a(0x1f8)](this[_0x57759a(0x253)],[[x],[exports[_0x57759a(0x439)]],[Q],[q],[exports[_0x57759a(0x270)]]]);}},Qt(exports[_0x13cd8a(0x2cf)],'pluginName',es),exports[_0x13cd8a(0x2cf)]=Zt([a[_0x13cd8a(0x3d4)](u[_0x13cd8a(0x35a)]),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x13cd8a(0x248)](a['Injector'])),he(0x3,a[_0x13cd8a(0x386)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x13cd8a(0x2a3)],ss=(_0x44a413,_0x586e31,_0x3a11b5,_0x3c9233)=>{const _0x50bbad=_0x13cd8a;for(var _0x20bb2b=_0x3c9233>0x1?void 0x0:_0x3c9233?ts(_0x586e31,_0x3a11b5):_0x586e31,_0x43005e=_0x44a413[_0x50bbad(0x29a)]-0x1,_0x526c6d;_0x43005e>=0x0;_0x43005e--)(_0x526c6d=_0x44a413[_0x43005e])&&(_0x20bb2b=_0x526c6d(_0x20bb2b)||_0x20bb2b);return _0x20bb2b;},H=(_0x1b72bf,_0x2c7d5d)=>(_0x3836fa,_0x36dfc2)=>_0x2c7d5d(_0x3836fa,_0x36dfc2,_0x1b72bf);exports[_0x13cd8a(0x438)]=class extends u[_0x13cd8a(0x42b)]{constructor(_0x3c5fc4,_0x4fda28,_0x16d5b8,_0x295b3e,_0x51c9e9){super(_0x3c5fc4,_0x4fda28,_0x16d5b8,_0x295b3e,_0x51c9e9);}async['createSocket'](_0x82cb92){const _0x3d68a7=_0x13cd8a,_0x1e1f8a=await this['_getSessionTicket'](),_0x539abd=this['_createSocketURL'](_0x82cb92,_0x1e1f8a);return this[_0x3d68a7(0x20a)](_0x539abd);}['_createSocketURL'](_0x22ec33,_0x499217){const _0x3d9927=_0x13cd8a,_0x35a4f0=typeof window>'u'?new URL(_0x22ec33):new URL(_0x22ec33,window['location'][_0x3d9927(0x25b)]);_0x35a4f0['searchParams'][_0x3d9927(0x2f1)](_0x3d9927(0x236),_0x499217);const _0xe33d78=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3d9927(0x352)]['search']);return _0xe33d78[_0x3d9927(0x384)](_0x3d9927(0x1cd))&&_0x35a4f0[_0x3d9927(0x2c6)]['set']('runId',_0xe33d78['get'](_0x3d9927(0x1cd))),_0x35a4f0[_0x3d9927(0x402)]();}async['_getSessionTicket'](){const _0x2425ac=_0x13cd8a;var _0x359edc,_0x70653e,_0x12d4dc;const _0x4f17af=this[_0x2425ac(0x319)][_0x2425ac(0x404)](u[_0x2425ac(0x333)]),_0x4a8170=(_0x359edc=_0x4f17af==null?void 0x0:_0x4f17af[_0x2425ac(0x35f)])!=null?_0x359edc:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x12d4dc=(_0x70653e=(await this['_httpService'][_0x2425ac(0x384)](_0x4a8170,{'headers':{'Content-Type':_0x2425ac(0x3ae)}}))[_0x2425ac(0x1d6)])==null?void 0x0:_0x70653e['ticket'])!=null?_0x12d4dc:'';}},exports[_0x13cd8a(0x438)]=ss([H(0x0,a['Inject'](a['Injector'])),H(0x1,a[_0x13cd8a(0x248)](G['HTTPService'])),H(0x2,a[_0x13cd8a(0x386)]),H(0x3,a[_0x13cd8a(0x2fc)]),H(0x4,m[_0x13cd8a(0x3bb)])],exports[_0x13cd8a(0x438)]);const Me=0x7530,Le=_0x13cd8a(0x1fa);class is extends a[_0x13cd8a(0x2fe)]{constructor(){const _0x424fad=_0x13cd8a;super(),h(this,'_id',a['generateRandomId']()),h(this,'_selfUnitIDs',new Set()),h(this,_0x424fad(0x419),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x424fad(0x335),new Map()),h(this,_0x424fad(0x3a2),new Map()),this[_0x424fad(0x3e0)]();}[_0x13cd8a(0x41d)](){const _0x25c551=_0x13cd8a;super['dispose'](),this[_0x25c551(0x335)][_0x25c551(0x3e3)]((_0x1bba91,_0x560200)=>this[_0x25c551(0x227)](_0x560200)),this[_0x25c551(0x1d9)]&&window[_0x25c551(0x37d)](this[_0x25c551(0x1d9)]);}[_0x13cd8a(0x286)](_0x3780ac){const _0xbfd7a3=_0x13cd8a;return this[_0xbfd7a3(0x40f)](_0x3780ac)[_0xbfd7a3(0x329)](d[_0xbfd7a3(0x33b)]());}[_0x13cd8a(0x405)](_0x37f538){const _0xa62823=_0x13cd8a;this[_0xa62823(0x365)][_0xa62823(0x42e)]===0x0&&this['_scheduleHeartbeat'](),this[_0xa62823(0x365)][_0xa62823(0x2a1)](_0x37f538),this[_0xa62823(0x442)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x37f538],'isForwarded':!0x1});}[_0x13cd8a(0x20d)](_0xe32017){const _0x18677d=_0x13cd8a;this['_selfUnitIDs'][_0x18677d(0x2a4)](_0xe32017),this[_0x18677d(0x365)][_0x18677d(0x42e)]===0x0&&this[_0x18677d(0x1d9)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x1a6bf0=_0x13cd8a;this[_0x1a6bf0(0x22b)](a[_0x1a6bf0(0x2e4)](d[_0x1a6bf0(0x3c4)](window,'storage')['subscribe'](_0x1c1b32=>{const _0x127b6f=_0x1a6bf0;if(_0x1c1b32[_0x127b6f(0x2f6)]!==Le||!_0x1c1b32['newValue'])return;const _0x5a3bf7=JSON[_0x127b6f(0x3fe)](_0x1c1b32[_0x127b6f(0x40a)]);this[_0x127b6f(0x1d4)](_0x5a3bf7);}))),window[_0x1a6bf0(0x2c5)](_0x1a6bf0(0x3ed),()=>this[_0x1a6bf0(0x442)]({'type':0x1,'memberID':this[_0x1a6bf0(0x30e)],'unitIDs':Array['from'](this[_0x1a6bf0(0x365)])}));}['_handleEvent'](_0x5e8d51){const _0x3398a0=_0x13cd8a;switch(_0x5e8d51[_0x3398a0(0x1f2)]){case 0x0:this[_0x3398a0(0x2a0)](_0x5e8d51);break;case 0x1:this[_0x3398a0(0x2c7)](_0x5e8d51);break;case 0x2:this[_0x3398a0(0x33e)](_0x5e8d51);break;}}['_handleJoinEvent'](_0x3eefae){const _0x30fd74=_0x13cd8a,{unitIDs:_0x77d8dc,memberID:_0x14c9ad,isForwarded:_0x4cdf78}=_0x3eefae;_0x77d8dc['forEach'](_0x5c9b57=>{const _0x3aa5bf=_0x5703;if(!_0x4cdf78&&this['_unitOnClients'][_0x3aa5bf(0x315)](_0x5c9b57)&&this['_ensureSubject'](_0x5c9b57)[_0x3aa5bf(0x331)](u[_0x3aa5bf(0x24a)]['OTHER_CLIENTS_EDITING']),!this[_0x3aa5bf(0x419)][_0x3aa5bf(0x315)](_0x5c9b57)||!this[_0x3aa5bf(0x419)][_0x3aa5bf(0x384)](_0x5c9b57)['has'](_0x14c9ad)){const _0x48c8f7=this[_0x3aa5bf(0x419)][_0x3aa5bf(0x384)](_0x5c9b57)||new Set();_0x48c8f7[_0x3aa5bf(0x2a1)](_0x14c9ad),this['_unitOnClients']['set'](_0x5c9b57,_0x48c8f7),this['_scheduleClearOtherTimer'](_0x14c9ad);}}),_0x4cdf78||this[_0x30fd74(0x442)]({'type':0x0,'memberID':this[_0x30fd74(0x30e)],'unitIDs':[...this[_0x30fd74(0x365)]],'isForwarded':!0x0});}[_0x13cd8a(0x28a)](_0x31429b){const _0x240c69=_0x13cd8a;this['_removeClearOtherTimer'](_0x31429b);const _0x4989c4=window[_0x240c69(0x256)](()=>{const _0x1e84ed=_0x240c69;this[_0x1e84ed(0x419)]['forEach'](_0x620a7=>{const _0x1eba30=_0x1e84ed;_0x620a7[_0x1eba30(0x2a4)](_0x31429b);});},Me*0x2);this[_0x240c69(0x335)][_0x240c69(0x2f1)](_0x31429b,_0x4989c4);}[_0x13cd8a(0x227)](_0x1d5653){const _0x3921b1=_0x13cd8a;if(this[_0x3921b1(0x335)][_0x3921b1(0x315)](_0x1d5653)){const _0x5c64e3=this[_0x3921b1(0x335)][_0x3921b1(0x384)](_0x1d5653);_0x5c64e3&&window[_0x3921b1(0x423)](_0x5c64e3),this['_clearOtherTimers'][_0x3921b1(0x2f1)](_0x1d5653,null);}}[_0x13cd8a(0x2c7)](_0x2188d4){const _0x3652d7=_0x13cd8a,{memberID:_0xd8fc9,unitIDs:_0x234b26}=_0x2188d4;_0x234b26[_0x3652d7(0x3e3)](_0x211efa=>{const _0x39de81=_0x3652d7;var _0x15fd5f;const _0x49cfeb=this['_unitOnClients'][_0x39de81(0x384)](_0x211efa);_0x49cfeb&&(_0x49cfeb[_0x39de81(0x2a4)](_0xd8fc9),(_0x15fd5f=this[_0x39de81(0x40f)](_0x211efa))==null||_0x15fd5f[_0x39de81(0x331)](_0x49cfeb[_0x39de81(0x42e)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x39de81(0x24a)][_0x39de81(0x1ef)]));}),this[_0x3652d7(0x227)](_0xd8fc9);}[_0x13cd8a(0x33e)](_0x554b01){const _0x40e8d6=_0x13cd8a;this[_0x40e8d6(0x28a)](_0x554b01['memberID']);}[_0x13cd8a(0x442)](_0x331ee3){const _0x56f32b=_0x13cd8a;localStorage[_0x56f32b(0x338)](Le,JSON[_0x56f32b(0x3a8)](_0x331ee3));}['_scheduleHeartbeat'](){const _0x201db=_0x13cd8a;this[_0x201db(0x1d9)]=window[_0x201db(0x33f)](()=>{const _0x5bd7c3=_0x201db;this['_send']({'type':0x2,'memberID':this[_0x5bd7c3(0x30e)]});},Me);}['_ensureSubject'](_0x1aa6ff){const _0xff73eb=_0x13cd8a;return this['_unitStatus'][_0xff73eb(0x315)](_0x1aa6ff)||this[_0xff73eb(0x3a2)][_0xff73eb(0x2f1)](_0x1aa6ff,new d[(_0xff73eb(0x2ab))](u['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0xff73eb(0x384)](_0x1aa6ff);}}var je=(_0x149fce=>(_0x149fce[_0x149fce[_0x13cd8a(0x426)]=0x0]='UNDEFINED',_0x149fce[_0x149fce['OK']=0x1]='OK',_0x149fce[_0x149fce[_0x13cd8a(0x31a)]=0x2]='INTERNAL_ERROR',_0x149fce[_0x149fce[_0x13cd8a(0x238)]=0x3]='PERMISSION_DENIED',_0x149fce[_0x149fce[_0x13cd8a(0x264)]=0x4]='NOT_FOUND',_0x149fce[_0x149fce['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x149fce[_0x149fce['ALREADY_EXISTS']=0x6]=_0x13cd8a(0x2dd),_0x149fce[_0x149fce[_0x13cd8a(0x429)]=0x7]='INVALID_ARGUMENT',_0x149fce[_0x149fce[_0x13cd8a(0x228)]=0x8]=_0x13cd8a(0x228),_0x149fce[_0x149fce['COMPLETION_FINISHED']=0x9]=_0x13cd8a(0x385),_0x149fce[_0x149fce[_0x13cd8a(0x223)]=0xa]=_0x13cd8a(0x223),_0x149fce[_0x149fce[_0x13cd8a(0x2a6)]=0xb]=_0x13cd8a(0x2a6),_0x149fce[_0x149fce['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x13cd8a(0x353),_0x149fce[_0x149fce[_0x13cd8a(0x230)]=0xd]=_0x13cd8a(0x230),_0x149fce[_0x149fce[_0x13cd8a(0x25e)]=0xe]=_0x13cd8a(0x25e),_0x149fce[_0x149fce[_0x13cd8a(0x2c9)]=0x1389]=_0x13cd8a(0x2c9),_0x149fce[_0x149fce[_0x13cd8a(0x3d5)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x149fce[_0x149fce[_0x13cd8a(0x3d2)]=0x1772]=_0x13cd8a(0x3d2),_0x149fce[_0x149fce[_0x13cd8a(0x3e6)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x149fce[_0x149fce['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x149fce[_0x149fce[_0x13cd8a(0x2ce)]=0x1b5a]=_0x13cd8a(0x2ce),_0x149fce[_0x149fce['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x13cd8a(0x1e4),_0x149fce[_0x149fce[_0x13cd8a(0x23b)]=0x1b5c]=_0x13cd8a(0x23b),_0x149fce[_0x149fce[_0x13cd8a(0x251)]=0x1b5d]=_0x13cd8a(0x251),_0x149fce[_0x149fce['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x149fce[_0x149fce['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x149fce[_0x149fce[_0x13cd8a(0x2d4)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x149fce[_0x149fce['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x13cd8a(0x287),_0x149fce[_0x149fce['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x149fce[_0x149fce[_0x13cd8a(0x1d7)]=0x232d]=_0x13cd8a(0x1d7),_0x149fce[_0x149fce[_0x13cd8a(0x3d1)]=0x2711]=_0x13cd8a(0x3d1),_0x149fce[_0x149fce['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x13cd8a(0x1ca),_0x149fce[_0x149fce[_0x13cd8a(0x410)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x149fce[_0x149fce[_0x13cd8a(0x283)]=0x2714]=_0x13cd8a(0x283),_0x149fce[_0x149fce['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x13cd8a(0x323),_0x149fce[_0x149fce[_0x13cd8a(0x356)]=0x271b]=_0x13cd8a(0x356),_0x149fce[_0x149fce[_0x13cd8a(0x29d)]=0x271c]=_0x13cd8a(0x29d),_0x149fce[_0x149fce['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x13cd8a(0x20e),_0x149fce[_0x149fce['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x13cd8a(0x2aa),_0x149fce[_0x149fce[_0x13cd8a(0x440)]=0x271f]=_0x13cd8a(0x440),_0x149fce[_0x149fce[_0x13cd8a(0x1fc)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x149fce[_0x149fce[_0x13cd8a(0x40b)]=0x2af9]=_0x13cd8a(0x40b),_0x149fce[_0x149fce[_0x13cd8a(0x2ec)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x149fce[_0x149fce[_0x13cd8a(0x2f4)]=0x2ee2]=_0x13cd8a(0x2f4),_0x149fce[_0x149fce['INVITE_CODE_REQUIRED']=0x2ee3]=_0x13cd8a(0x2bd),_0x149fce[_0x149fce[_0x13cd8a(0x2a7)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x149fce[_0x149fce[_0x13cd8a(0x37c)]=0x2ee5]=_0x13cd8a(0x37c),_0x149fce[_0x149fce['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x149fce[_0x149fce['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x149fce[_0x149fce[_0x13cd8a(0x1fb)]=0x32cb]=_0x13cd8a(0x1fb),_0x149fce[_0x149fce[_0x13cd8a(0x364)]=-0x1]='UNRECOGNIZED',_0x149fce))(je||{}),ns=Object[_0x13cd8a(0x2a3)],rs=(_0xf61b3c,_0x55c201,_0x19f677,_0x2c7dbc)=>{const _0x151ac7=_0x13cd8a;for(var _0x4c42be=_0x2c7dbc>0x1?void 0x0:_0x2c7dbc?ns(_0x55c201,_0x19f677):_0x55c201,_0x5e8c39=_0xf61b3c[_0x151ac7(0x29a)]-0x1,_0x5e24c4;_0x5e8c39>=0x0;_0x5e8c39--)(_0x5e24c4=_0xf61b3c[_0x5e8c39])&&(_0x4c42be=_0x5e24c4(_0x4c42be)||_0x4c42be);return _0x4c42be;},ue=(_0xd6bd6c,_0x3fe910)=>(_0x412072,_0x19e483)=>_0x3fe910(_0x412072,_0x19e483,_0xd6bd6c);exports['RemoteUniscriptService']=class extends a[_0x13cd8a(0x2fe)]{constructor(_0x47d0b8,_0x10d619,_0x4f287e){const _0x3a2777=_0x13cd8a;super(),this[_0x3a2777(0x1ec)]=_0x47d0b8,this[_0x3a2777(0x314)]=_0x10d619,this[_0x3a2777(0x319)]=_0x4f287e;}async[_0x13cd8a(0x2e0)](_0x40bd8b,_0x10784a,_0x339474,..._0x1cec87){const _0x2062db=_0x13cd8a;var _0xc8af66,_0x3db1a0,_0x56b72b,_0x21fb2f;const _0x57e0d6=this[_0x2062db(0x1ec)]['getFocusedUnit']();if(!_0x57e0d6)throw new Error(_0x2062db(0x34a));const _0x1d4b51=((_0xc8af66=this['_configService']['getConfig'](u[_0x2062db(0x1db)]))!=null?_0xc8af66:u[_0x2062db(0x428)])+'/'+_0x40bd8b+_0x2062db(0x300)+_0x10784a,_0x224ac2=new URL(window[_0x2062db(0x352)][_0x2062db(0x1f7)]),_0x52e516={'scriptId':_0x40bd8b,'runId':(_0x3db1a0=_0x224ac2[_0x2062db(0x2c6)][_0x2062db(0x384)](_0x2062db(0x1cd)))!=null?_0x3db1a0:'','function':_0x10784a,'unitId':_0x57e0d6['getUnitId'](),'argsOfFunction':JSON[_0x2062db(0x3a8)](_0x1cec87),'invokeId':(_0x56b72b=_0x339474['invokeId'])!=null?_0x56b72b:'','executionId':(_0x21fb2f=_0x339474['executionId'])!=null?_0x21fb2f:''};try{const _0x3a9717=await this[_0x2062db(0x314)][_0x2062db(0x2b2)](_0x1d4b51,{'body':_0x52e516});return _0x3a9717[_0x2062db(0x1d6)][_0x2062db(0x325)]&&_0x3a9717['body'][_0x2062db(0x325)][_0x2062db(0x2da)]!==je['OK']?_0x2062db(0x431):_0x3a9717[_0x2062db(0x1d6)][_0x2062db(0x3ac)];}catch{return'Failed';}}},exports[_0x13cd8a(0x2bf)]=rs([ue(0x0,a[_0x13cd8a(0x362)]),ue(0x1,a[_0x13cd8a(0x248)](G[_0x13cd8a(0x33c)])),ue(0x2,a[_0x13cd8a(0x386)])],exports['RemoteUniscriptService']),exports[_0x13cd8a(0x22d)]=xe,exports[_0x13cd8a(0x2b7)]=Ee,exports[_0x13cd8a(0x427)]=we,exports[_0x13cd8a(0x1d1)]=is,exports['WebURLService']=Be;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x282040=_0x381b;(function(_0x131203,_0x20f248){const _0x3fa2ac=_0x381b,_0x10d36b=_0x131203();while(!![]){try{const _0xf14314=-parseInt(_0x3fa2ac(0x67))/0x1*(parseInt(_0x3fa2ac(0x71))/0x2)+-parseInt(_0x3fa2ac(0x65))/0x3+parseInt(_0x3fa2ac(0x7c))/0x4*(-parseInt(_0x3fa2ac(0x74))/0x5)+-parseInt(_0x3fa2ac(0x78))/0x6*(-parseInt(_0x3fa2ac(0x75))/0x7)+-parseInt(_0x3fa2ac(0x69))/0x8+-parseInt(_0x3fa2ac(0x6e))/0x9+parseInt(_0x3fa2ac(0x7a))/0xa;if(_0xf14314===_0x20f248)break;else _0x10d36b['push'](_0x10d36b['shift']());}catch(_0x26e14a){_0x10d36b['push'](_0x10d36b['shift']());}}}(_0x1931,0xb5fb5));function _0x381b(_0x1ee8b9,_0x49f910){const _0x193123=_0x1931();return _0x381b=function(_0x381b9d,_0x5b899e){_0x381b9d=_0x381b9d-0x65;let _0x562b50=_0x193123[_0x381b9d];return _0x562b50;},_0x381b(_0x1ee8b9,_0x49f910);}function _0x1931(){const _0x3b04ec=['There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20Conflict','6khMhsU','Edit\x20conflicts','31216840XrSCpI','Authentication\x20Error','4uqStdW','Syncing...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3163092ySJrst','Synced','1iDBQLF','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','5360888tjbulC','Click\x20to\x20Reconnect','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Syncing\x20server\x20data...','8239932JLygnh','Local\x20file','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','942218CVtOZs','Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','3138390gfwaae','9537661ajXsPc'];_0x1931=function(){return _0x3b04ec;};return _0x1931();}const e={'collab-client':{'tooltip':{'reconnect':_0x282040(0x6a)}},'collabStatus':{'fetchMiss':_0x282040(0x6d),'conflict':_0x282040(0x79),'notCollab':_0x282040(0x6f),'synced':_0x282040(0x66),'syncing':_0x282040(0x7d),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x282040(0x72),'will-retry':_0x282040(0x68),'room-full':_0x282040(0x73),'collaboration-timeout':_0x282040(0x6b)},'conflict':{'title':_0x282040(0x77),'content':_0x282040(0x76)},'permission':{'title':_0x282040(0x7b),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x282040(0x70)},'closeRoom':_0x282040(0x7e)},'auth':{'needGotoLoginAlert':_0x282040(0x6c)}},o=e;module['exports']=o;
|