@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505121607 → 0.7.0-nightly.202505131607
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/en-US.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/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/en-US.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/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/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.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/en-US.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/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 +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x52b89c=_0x231c;(function(_0x4820d2,_0x5e191b){const _0x55803b=_0x231c,_0x162484=_0x4820d2();while(!![]){try{const _0x2613ea=-parseInt(_0x55803b(0x143))/0x1+parseInt(_0x55803b(0x145))/0x2*(-parseInt(_0x55803b(0x13b))/0x3)+parseInt(_0x55803b(0x139))/0x4+-parseInt(_0x55803b(0x13e))/0x5*(parseInt(_0x55803b(0x13c))/0x6)+-parseInt(_0x55803b(0x147))/0x7*(-parseInt(_0x55803b(0x146))/0x8)+-parseInt(_0x55803b(0x140))/0x9*(-parseInt(_0x55803b(0x144))/0xa)+-parseInt(_0x55803b(0x13a))/0xb*(-parseInt(_0x55803b(0x142))/0xc);if(_0x2613ea===_0x5e191b)break;else _0x162484['push'](_0x162484['shift']());}catch(_0x46c922){_0x162484['push'](_0x162484['shift']());}}}(_0x217f,0xa96cd));function _0x231c(_0x219de1,_0x1f3d24){const _0x217f42=_0x217f();return _0x231c=function(_0x231cfa,_0x4b1693){_0x231cfa=_0x231cfa-0x138;let _0x5a3ea1=_0x217f42[_0x231cfa];return _0x5a3ea1;},_0x231c(_0x219de1,_0x1f3d24);}function _0x217f(){const _0x53e06e=['_injector','843324ESkeAJ','640290zIJTuT','10140JASdXX','2pzxNfd','8iNatHz','5129628mzpNrU','FUniver','4135156EUgPkl','55gfJrrK','3485301xTVIIX','204AFPtIi','runOnServer','130355zspruV','@univerjs-pro/collaboration-client-ui','11223bGOIca'];_0x217f=function(){return _0x53e06e;};return _0x217f();}const t=require(_0x52b89c(0x13f)),e=require('@univerjs/core/facade');class c extends e[_0x52b89c(0x138)]{[_0x52b89c(0x13d)](_0x404325,_0x5805ee,..._0x12b064){const _0x2c5ad4=_0x52b89c;return this[_0x2c5ad4(0x141)]['get'](t['RemoteUniscriptService'])['runOnServer'](_0x404325,_0x5805ee,{},..._0x12b064);}}e[_0x52b89c(0x138)]['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xa015b6=_0x407d;(function(_0x2044f1,_0x22b06d){const _0x2c3041=_0x407d,_0x20929c=_0x2044f1();while(!![]){try{const _0x16eb53=-parseInt(_0x2c3041(0x25c))/0x1+-parseInt(_0x2c3041(0x333))/0x2*(-parseInt(_0x2c3041(0x318))/0x3)+parseInt(_0x2c3041(0x227))/0x4+-parseInt(_0x2c3041(0x389))/0x5*(parseInt(_0x2c3041(0x22c))/0x6)+parseInt(_0x2c3041(0x377))/0x7+-parseInt(_0x2c3041(0x349))/0x8+parseInt(_0x2c3041(0x24c))/0x9;if(_0x16eb53===_0x22b06d)break;else _0x20929c['push'](_0x20929c['shift']());}catch(_0x3bd405){_0x20929c['push'](_0x20929c['shift']());}}}(_0x521e,0x1b1fe));var Ve=Object['defineProperty'],Xe=(_0x1513f4,_0x22aaa4,_0x4b1a37)=>_0x22aaa4 in _0x1513f4?Ve(_0x1513f4,_0x22aaa4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b1a37}):_0x1513f4[_0x22aaa4]=_0x4b1a37,h=(_0x15fd92,_0x283b48,_0x5eae47)=>Xe(_0x15fd92,typeof _0x283b48!=_0xa015b6(0x412)?_0x283b48+'':_0x283b48,_0x5eae47);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0xa015b6(0x275)});const u=require(_0xa015b6(0x415)),a=require('@univerjs/core'),p=require(_0xa015b6(0x2f5)),G=require(_0xa015b6(0x35f)),b=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require(_0xa015b6(0x33c)),Y=require(_0xa015b6(0x3d5)),m=require('@univerjs-pro/collaboration'),Ee=require(_0xa015b6(0x40e)),g=require('@univerjs/sheets'),$=require(_0xa015b6(0x24e)),X=require(_0xa015b6(0x3bd)),P=require(_0xa015b6(0x2df)),T=require(_0xa015b6(0x383)),D=require('@univerjs/design'),M=require(_0xa015b6(0x347)),Ke=require(_0xa015b6(0x307));var qe=Object[_0xa015b6(0x2ed)],ze=(_0x301014,_0x320c39,_0x35a49f,_0x4aab8c)=>{for(var _0x13fc74=_0x4aab8c>0x1?void 0x0:_0x4aab8c?qe(_0x320c39,_0x35a49f):_0x320c39,_0x9c4619=_0x301014['length']-0x1,_0x4ac382;_0x9c4619>=0x0;_0x9c4619--)(_0x4ac382=_0x301014[_0x9c4619])&&(_0x13fc74=_0x4ac382(_0x13fc74)||_0x13fc74);return _0x13fc74;},Te=(_0x3668c0,_0x71dfc2)=>(_0x5c28f9,_0x34ff12)=>_0x71dfc2(_0x5c28f9,_0x34ff12,_0x3668c0);let de=class extends a[_0xa015b6(0x321)]{constructor(_0x44ccf3,_0x114433){const _0x20881f=_0xa015b6;super(),this[_0x20881f(0x42d)]=_0x44ccf3,this[_0x20881f(0x2f3)]=_0x114433,this[_0x20881f(0x2cd)]();}[_0xa015b6(0x2cd)](){const _0xdfc115=_0xa015b6,_0x50f1f2=this;this[_0xdfc115(0x28d)](this[_0xdfc115(0x42d)][_0xdfc115(0x2eb)]({'onBeforePasteImage':async _0x9c20db=>{const _0x4059b8=_0xdfc115,_0x21482a=await _0x50f1f2[_0x4059b8(0x2f3)]['saveImage'](_0x9c20db);return _0x21482a?{'source':_0x21482a[_0x4059b8(0x206)],'imageSourceType':_0x21482a[_0x4059b8(0x442)]}:null;}}));}};de=ze([Te(0x0,b[_0xa015b6(0x25e)]),Te(0x1,Ge[_0xa015b6(0x445)])],de);const Oe=[_0xa015b6(0x319),'jiqing.500',_0xa015b6(0x3d4),_0xa015b6(0x301),_0xa015b6(0x25d),_0xa015b6(0x35d)];class me extends a['Disposable']{constructor(){const _0x36bb22=_0xa015b6;super(...arguments),h(this,_0x36bb22(0x33b),new Map()),h(this,_0x36bb22(0x372),0x0);}[_0xa015b6(0x438)](_0x1939c7){const _0x39e88d=_0xa015b6;if(this[_0x39e88d(0x33b)]['has'](_0x1939c7))return this[_0x39e88d(0x33b)][_0x39e88d(0x3ab)](_0x1939c7);const _0x377ce1=Oe[this['_colorIndex']];return this['_colorIndex']=(this[_0x39e88d(0x372)]+0x1)%Oe[_0x39e88d(0x3c0)],this[_0x39e88d(0x33b)][_0x39e88d(0x380)](_0x1939c7,_0x377ce1),_0x377ce1;}}function Pe(_0x40758c){const _0x3cd2c6=_0xa015b6;let _0x55ccc1='';for(const _0x1eea19 of _0x40758c){const {startOffset:_0x48081c,endOffset:_0x42ee03,isActive:_0x23069e,rangeType:_0x204e33,segmentId:_0x2f5457,segmentPage:_0x5103ae}=_0x1eea19;_0x55ccc1[_0x3cd2c6(0x3c0)]&&(_0x55ccc1+=','),_0x55ccc1+=_0x48081c+':'+_0x42ee03+':'+(_0x23069e?'1':'0')+':'+_0x204e33+':'+_0x2f5457+':'+_0x5103ae;}return _0x55ccc1;}function _0x407d(_0x300463,_0x1a89ab){const _0x521e9f=_0x521e();return _0x407d=function(_0x407d1a,_0x2d60a1){_0x407d1a=_0x407d1a-0x1e5;let _0xfdb71a=_0x521e9f[_0x407d1a];return _0xfdb71a;},_0x407d(_0x300463,_0x1a89ab);}function Je(_0x557cd9){const _0x2b58b5=_0xa015b6,_0x32f606=_0x557cd9[_0x2b58b5(0x1fc)](','),_0x1f483b=[];for(const _0x19e460 of _0x32f606){const [_0x5ec6cc,_0x4e277f,_0x53c75a,_0x41ff9d,_0x5de73a,_0xc456e]=_0x19e460['split'](':');_0x1f483b[_0x2b58b5(0x233)]({'startOffset':Number(_0x5ec6cc),'endOffset':Number(_0x4e277f),'collapsed':_0x5ec6cc===_0x4e277f,'isActive':_0x53c75a==='1','rangeType':_0x41ff9d===a[_0x2b58b5(0x3d3)][_0x2b58b5(0x428)]?a[_0x2b58b5(0x3d3)][_0x2b58b5(0x428)]:a['DOC_RANGE_TYPE'][_0x2b58b5(0x2e1)],'segmentId':typeof _0x5de73a==_0x2b58b5(0x3d8)?String(_0x5de73a):'','segmentPage':Number(_0xc456e!=null?_0xc456e:-0x1)});}return _0x1f483b[_0x2b58b5(0x42f)](_0x10787c=>_0x10787c['isActive'])||(_0x1f483b[0x0]['isActive']=!0x0),_0x1f483b;}class Ce extends a[_0xa015b6(0x321)]{constructor(){const _0x537477=_0xa015b6;super(...arguments),h(this,'_collabCursorState$',new d[(_0x537477(0x331))](null)),h(this,_0x537477(0x251),this[_0x537477(0x31d)][_0x537477(0x20c)]());}['syncEditingCollabCursor'](_0x25c830){const _0xed0519=_0xa015b6,{unitID:_0x3c5172,memberID:_0x13c2fa,textRanges:_0x3c4874}=_0x25c830,_0x4d0c38=Pe(_0x3c4874);if(_0x4d0c38==='')return;const _0x30ce42={'unitID':_0x3c5172,'memberID':_0x13c2fa,'selection':_0x4d0c38};this[_0xed0519(0x31d)]['next'](_0x30ce42);}}var Ze=Object[_0xa015b6(0x2ed)],Qe=(_0x1c2a49,_0x3385be,_0x380a9e,_0x4345ef)=>{const _0x20a14f=_0xa015b6;for(var _0x32afc3=_0x4345ef>0x1?void 0x0:_0x4345ef?Ze(_0x3385be,_0x380a9e):_0x3385be,_0x4056e7=_0x1c2a49[_0x20a14f(0x3c0)]-0x1,_0x5490f6;_0x4056e7>=0x0;_0x4056e7--)(_0x5490f6=_0x1c2a49[_0x4056e7])&&(_0x32afc3=_0x5490f6(_0x32afc3)||_0x32afc3);return _0x32afc3;},L=(_0x1ce5f5,_0x501683)=>(_0x1822a5,_0x2fe134)=>_0x501683(_0x1822a5,_0x2fe134,_0x1ce5f5);const et=0x12c,tt=0x64;let fe=class extends a[_0xa015b6(0x321)]{constructor(_0x4cc585,_0x29301c,_0x1f6b26,_0x424c49,_0xefb736,_0x4a12e3,_0x2d1c5d,_0x31cd7d,_0x4aab4a){const _0x5ccbd3=_0xa015b6;super(),h(this,_0x5ccbd3(0x444),!0x1),h(this,_0x5ccbd3(0x2cd),!0x1),h(this,_0x5ccbd3(0x3ef),new d[(_0x5ccbd3(0x331))](new Map())),h(this,_0x5ccbd3(0x26b),this[_0x5ccbd3(0x3ef)][_0x5ccbd3(0x20c)]()),h(this,_0x5ccbd3(0x3cb),new d[(_0x5ccbd3(0x331))]([])),h(this,_0x5ccbd3(0x3f9),this[_0x5ccbd3(0x3cb)][_0x5ccbd3(0x316)](d[_0x5ccbd3(0x3e5)](et))),h(this,'_updateLocalCursor',a[_0x5ccbd3(0x255)](_0x198edf=>{const _0x4be003=_0x5ccbd3,_0x2b6869={'eventID':m['CollaborationEvent'][_0x4be003(0x1ea)],'data':{'unitID':this[_0x4be003(0x2fb)],'memberID':this[_0x4be003(0x43c)]['getMemberID'](),'selection':Pe(_0x198edf)}};this['_session'][_0x4be003(0x35a)](_0x2b6869,this[_0x4be003(0x2fb)]);},tt)),(this['unitID']=_0x4cc585,this[_0x5ccbd3(0x43c)]=_0x29301c,this[_0x5ccbd3(0x2a6)]=_0x1f6b26,this['_colorAssignService']=_0x424c49,this[_0x5ccbd3(0x2f8)]=_0xefb736,this['_syncEditingCollabCursorService']=_0x4a12e3,this[_0x5ccbd3(0x2fc)]=_0x2d1c5d,this[_0x5ccbd3(0x1ef)]=_0x31cd7d,this[_0x5ccbd3(0x404)]=_0x4aab4a);}get[_0xa015b6(0x3a9)](){const _0x1683e4=_0xa015b6;return this[_0x1683e4(0x3ef)][_0x1683e4(0x210)]();}get[_0xa015b6(0x3d7)](){const _0x2428bb=_0xa015b6;return this[_0x2428bb(0x3cb)][_0x2428bb(0x210)]();}[_0xa015b6(0x448)](){const _0x57016a=_0xa015b6;super[_0x57016a(0x448)](),this[_0x57016a(0x3ef)][_0x57016a(0x3f1)](new Map()),this['_cursorInfo$'][_0x57016a(0x2cc)](),this[_0x57016a(0x3cb)]['next']([]),this['_roomMembers$']['complete']();}[_0xa015b6(0x2d7)](){const _0x6e3ca1=_0xa015b6;this[_0x6e3ca1(0x2cd)]||(this['_init']=!0x0,this[_0x6e3ca1(0x43c)][_0x6e3ca1(0x240)]['pipe'](d['takeUntil'](this[_0x6e3ca1(0x369)]))[_0x6e3ca1(0x439)](_0x22157e=>{const _0x987c3=_0x6e3ca1;_0x22157e===u['SessionStatus'][_0x987c3(0x3d0)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x6e3ca1(0x43c)][_0x6e3ca1(0x423)]['pipe'](d['takeUntil'](this[_0x6e3ca1(0x369)]))[_0x6e3ca1(0x439)](_0x27fc43=>{const _0x1ae6ca=_0x6e3ca1,_0xf24bb2=_0x27fc43[_0x1ae6ca(0x290)];_0xf24bb2===m[_0x1ae6ca(0x1ec)][_0x1ae6ca(0x1ea)]&&this['_onCursorUpdate'](_0x27fc43),_0xf24bb2===m[_0x1ae6ca(0x1ec)][_0x1ae6ca(0x317)]&&this[_0x1ae6ca(0x3e4)](_0x27fc43);}),this[_0x6e3ca1(0x28d)](this[_0x6e3ca1(0x404)]['onCommandExecuted'](_0x48be73=>{const _0x22d728=_0x6e3ca1,_0xa21542=_0x48be73[_0x22d728(0x436)];_0xa21542!=null&&this[_0x22d728(0x444)]&&_0x48be73['id']===Y[_0x22d728(0x2be)]['id']&&_0xa21542[_0x22d728(0x2ab)]===this['unitID']&&_0xa21542[_0x22d728(0x41d)]===!0x1&&_0xa21542[_0x22d728(0x3ea)]['length']>0x0&&this[_0x22d728(0x223)](_0xa21542['ranges']);})),this[_0x6e3ca1(0x2da)][_0x6e3ca1(0x251)][_0x6e3ca1(0x316)](d[_0x6e3ca1(0x37e)](this[_0x6e3ca1(0x369)]))['subscribe'](_0x11f896=>{const _0x7a6199=_0x6e3ca1;if((_0x11f896==null?void 0x0:_0x11f896[_0x7a6199(0x2fb)])!==this[_0x7a6199(0x2fb)])return;const _0x268901={'eventID':m['CollaborationEvent'][_0x7a6199(0x1ea)],'data':_0x11f896};this[_0x7a6199(0x3cd)](_0x268901);}),this[_0x6e3ca1(0x28d)](this[_0x6e3ca1(0x404)][_0x6e3ca1(0x23b)](_0x1ff714=>{const _0x30a619=_0x6e3ca1;if(_0x1ff714[_0x30a619(0x436)]==null)return;const _0x23b3dd=_0x1ff714[_0x30a619(0x436)];if(_0x1ff714['id']!==Y['RichTextEditingMutation']['id']||_0x23b3dd['unitId']!==this[_0x30a619(0x2fb)])return;const _0x4c321e={'id':'doc.mutation.rich-text-editing','params':_0x23b3dd},_0x1a8155=this[_0x30a619(0x3a9)];for(const [_0x14d582,_0x4270e5]of _0x1a8155){const _0x34278d={'id':_0x30a619(0x268),'params':{'unitId':this[_0x30a619(0x2fb)],'actions':null,'textRanges':_0x4270e5[_0x30a619(0x3ea)]}},_0x5c255e=this[_0x30a619(0x2fc)][_0x30a619(0x3b8)](_0x4c321e,_0x34278d,!0x1);if(m[_0x30a619(0x26f)](_0x5c255e))throw _0x5c255e[_0x30a619(0x3a4)];_0x1a8155[_0x30a619(0x380)](_0x14d582,{..._0x4270e5,'ranges':_0x5c255e['m2Prime'][_0x30a619(0x436)]['textRanges']});}queueMicrotask(()=>{const _0x5d7d5e=_0x30a619;this[_0x5d7d5e(0x3ef)][_0x5d7d5e(0x3f1)](_0x1a8155);});})));}[_0xa015b6(0x3cd)](_0x39e011){const _0x33c164=_0xa015b6;var _0x56ef2a,_0x47aa15;const {memberID:_0x4c0275,selection:_0x4d164a}=_0x39e011[_0x33c164(0x3e8)],_0x15693c=Je(_0x4d164a),_0x328297=(_0x47aa15=(_0x56ef2a=this[_0x33c164(0x2f8)][_0x33c164(0x345)](this[_0x33c164(0x2fb)],_0x4c0275))==null?void 0x0:_0x56ef2a[_0x33c164(0x238)])!=null?_0x47aa15:_0x33c164(0x447),_0x1b9ef1={'color':this[_0x33c164(0x346)][_0x33c164(0x438)](_0x4c0275),'name':_0x328297,'ranges':_0x15693c},_0x153547=this['cursorInfo'];_0x153547[_0x33c164(0x380)](_0x4c0275,_0x1b9ef1),this[_0x33c164(0x3ef)]['next'](_0x153547);}['_onCursorDelete'](_0x5cb70a){const _0x4be48f=_0xa015b6,{memberID:_0x350169}=_0x5cb70a[_0x4be48f(0x3e8)],_0x4fbd14=this['cursorInfo'];_0x4fbd14['delete'](_0x350169),this['_cursorInfo$']['next'](_0x4fbd14);}[_0xa015b6(0x1f8)](){const _0x315589=_0xa015b6;var _0x1895b1;if(this[_0x315589(0x444)]=!0x0,((_0x1895b1=this[_0x315589(0x1ef)][_0x315589(0x375)]())==null?void 0x0:_0x1895b1['getUnitId']())!==this[_0x315589(0x2fb)])return;const _0x5d165d=this['_injector'][_0x315589(0x3ab)](Y['DocSelectionManagerService'])[_0x315589(0x36c)]();Array['isArray'](_0x5d165d)&&_0x5d165d['length']>0x0&&this[_0x315589(0x223)](_0x5d165d);}[_0xa015b6(0x3f8)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0xa015b6(0x2b1)](a['Injector'])),L(0x3,a[_0xa015b6(0x2b1)](me)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0xa015b6(0x3e6)]),L(0x7,a[_0xa015b6(0x3cc)]),L(0x8,a[_0xa015b6(0x36a)])],fe);var st=Object[_0xa015b6(0x2ed)],it=(_0x284b02,_0x29898a,_0x10c528,_0x3265a3)=>{const _0x162858=_0xa015b6;for(var _0x1f2d57=_0x3265a3>0x1?void 0x0:_0x3265a3?st(_0x29898a,_0x10c528):_0x29898a,_0x27b49=_0x284b02[_0x162858(0x3c0)]-0x1,_0x232154;_0x27b49>=0x0;_0x27b49--)(_0x232154=_0x284b02[_0x27b49])&&(_0x1f2d57=_0x232154(_0x1f2d57)||_0x1f2d57);return _0x1f2d57;},w=(_0x18417e,_0x475f07)=>(_0x130742,_0x4dda7e)=>_0x475f07(_0x130742,_0x4dda7e,_0x18417e);const nt=0x12c,rt=0x64,ot=()=>{let _0x1d6673=[],_0x501013=!0x1;return _0x20c771=>{const _0x5a7547=_0x407d;_0x1d6673[_0x5a7547(0x233)](_0x20c771),_0x501013||(_0x501013=!0x0,setTimeout(()=>{const _0x48940d=_0x5a7547;_0x1d6673[_0x48940d(0x443)](_0x11fb28=>_0x11fb28()),_0x1d6673=[],_0x501013=!0x1;}));};};let Se=class extends a[_0xa015b6(0x321)]{constructor(_0x704d8d,_0x23c4c4,_0x1b9803,_0x30ae37,_0x21e427,_0x1c139b,_0x7c85c8,_0x49ff0d){const _0x45c5d1=_0xa015b6;super(),h(this,_0x45c5d1(0x444),!0x1),h(this,_0x45c5d1(0x2cd),!0x1),h(this,_0x45c5d1(0x3ef),new d[(_0x45c5d1(0x331))](new Map())),h(this,_0x45c5d1(0x26b),this[_0x45c5d1(0x3ef)]['asObservable']()),h(this,'_roomMembers$',new d[(_0x45c5d1(0x331))]([])),h(this,'roomMembers$',this[_0x45c5d1(0x3cb)][_0x45c5d1(0x316)](d['debounceTime'](nt))),h(this,_0x45c5d1(0x223),a[_0x45c5d1(0x255)]((_0x54f7d0,_0x2c5d11)=>{const _0x38fa07=_0x45c5d1,_0x2e310a={'eventID':m[_0x38fa07(0x1ec)][_0x38fa07(0x1ea)],'data':{'unitID':this[_0x38fa07(0x2fb)],'memberID':this[_0x38fa07(0x43c)][_0x38fa07(0x231)](),'selection':Ee[_0x38fa07(0x371)](_0x54f7d0,_0x2c5d11[_0x38fa07(0x2b4)])}};this[_0x38fa07(0x43c)]['send'](_0x2e310a,this[_0x38fa07(0x2fb)]);},rt)),(this['unitID']=_0x704d8d,this[_0x45c5d1(0x43c)]=_0x23c4c4,this[_0x45c5d1(0x2a6)]=_0x1b9803,this[_0x45c5d1(0x346)]=_0x30ae37,this[_0x45c5d1(0x2f8)]=_0x21e427,this[_0x45c5d1(0x1ef)]=_0x1c139b,this[_0x45c5d1(0x404)]=_0x7c85c8,this['_refRangeService']=_0x49ff0d);}get[_0xa015b6(0x3a9)](){const _0x4142a2=_0xa015b6;return this[_0x4142a2(0x3ef)][_0x4142a2(0x210)]();}get[_0xa015b6(0x3d7)](){const _0x36b74d=_0xa015b6;return this[_0x36b74d(0x3cb)][_0x36b74d(0x210)]();}[_0xa015b6(0x448)](){const _0x23ec96=_0xa015b6;super[_0x23ec96(0x448)](),this[_0x23ec96(0x3ef)][_0x23ec96(0x3f1)](new Map()),this[_0x23ec96(0x3ef)][_0x23ec96(0x2cc)](),this[_0x23ec96(0x3cb)]['next']([]),this[_0x23ec96(0x3cb)]['complete']();}[_0xa015b6(0x2d7)](){const _0xc60de0=_0xa015b6;this[_0xc60de0(0x2cd)]||(this[_0xc60de0(0x2cd)]=!0x0,this[_0xc60de0(0x43c)][_0xc60de0(0x240)][_0xc60de0(0x316)](d['takeUntil'](this['dispose$']))[_0xc60de0(0x439)](_0x2c72b4=>{const _0x149eb8=_0xc60de0;_0x2c72b4===u[_0x149eb8(0x419)][_0x149eb8(0x3d0)]?this[_0x149eb8(0x1f8)]():this[_0x149eb8(0x3f8)]();}),this[_0xc60de0(0x43c)][_0xc60de0(0x423)][_0xc60de0(0x316)](d[_0xc60de0(0x37e)](this[_0xc60de0(0x369)]))['subscribe'](_0x35af2d=>{const _0x38c81f=_0xc60de0,_0x1f9fb5=_0x35af2d['eventID'];_0x1f9fb5===m[_0x38c81f(0x1ec)][_0x38c81f(0x1ea)]&&this[_0x38c81f(0x3cd)](_0x35af2d),_0x1f9fb5===m[_0x38c81f(0x1ec)][_0x38c81f(0x317)]&&this[_0x38c81f(0x3e4)](_0x35af2d);}),this[_0xc60de0(0x226)](),this[_0xc60de0(0x28d)](this['_commandService'][_0xc60de0(0x23b)](_0x1578b7=>{const _0x45d248=_0xc60de0;if(this[_0x45d248(0x444)]&&_0x1578b7['id']===g[_0x45d248(0x2fe)]['id']&&_0x1578b7[_0x45d248(0x436)][_0x45d248(0x2ab)]===this[_0x45d248(0x2fb)]){const _0x69540e=_0x1578b7[_0x45d248(0x436)];this[_0x45d248(0x223)](_0x69540e[_0x45d248(0x1f7)],_0x69540e[_0x45d248(0x3f6)][0x0]);}})));}['_onCursorUpdate'](_0x764d71){const _0x421b2e=_0xa015b6;var _0x2e469c,_0x2ea00b;const {memberID:_0x13acf2,selection:_0x4a41cb}=_0x764d71[_0x421b2e(0x3e8)],{sheetName:_0x589c9c,range:_0x1262ec}=Ee[_0x421b2e(0x43d)](_0x4a41cb),_0x28eca0={'name':(_0x2ea00b=(_0x2e469c=this[_0x421b2e(0x2f8)][_0x421b2e(0x345)](this[_0x421b2e(0x2fb)],_0x13acf2))==null?void 0x0:_0x2e469c[_0x421b2e(0x238)])!=null?_0x2ea00b:_0x421b2e(0x447),'range':this['_getMergeRange'](_0x589c9c,_0x1262ec),'sheetID':_0x589c9c,'color':this[_0x421b2e(0x346)][_0x421b2e(0x438)](_0x13acf2),'selection':_0x4a41cb},_0x2df321=this[_0x421b2e(0x3a9)];_0x2df321['set'](_0x13acf2,_0x28eca0),this[_0x421b2e(0x3ef)][_0x421b2e(0x3f1)](_0x2df321);}['_onCursorDelete'](_0x5ba919){const _0x1c3989=_0xa015b6,{memberID:_0x4d0202}=_0x5ba919[_0x1c3989(0x3e8)],_0x52b46c=this[_0x1c3989(0x3a9)];_0x52b46c['delete'](_0x4d0202),this[_0x1c3989(0x3ef)][_0x1c3989(0x3f1)](_0x52b46c);}[_0xa015b6(0x334)](_0x4085df,_0x537128){const _0x233090=_0xa015b6;var _0x29ca99,_0x25837e;const _0x5a8805=(_0x25837e=(_0x29ca99=this[_0x233090(0x1ef)][_0x233090(0x2d2)](this[_0x233090(0x2fb)]))==null?void 0x0:_0x29ca99[_0x233090(0x417)](_0x4085df))==null?void 0x0:_0x25837e['getMergeData']();return(_0x5a8805==null?void 0x0:_0x5a8805['find'](_0x24a95a=>a[_0x233090(0x276)][_0x233090(0x359)](_0x24a95a,_0x537128)))||_0x537128;}[_0xa015b6(0x226)](){const _0x3e2330=_0xa015b6,_0x3fe261=new a['DisposableCollection'](),_0x4298fb=ot(),_0x311b60=()=>{const _0x149601=_0x407d;_0x3fe261[_0x149601(0x448)]();const _0xb7128=(_0x3c997a,_0x109ed3,_0x34bcf4,_0x2999fe)=>{const _0x454d7a=_0x149601;let _0x5efd6f=[];switch(_0x3c997a['id']){case g[_0x454d7a(0x458)]['DeleteRangeMoveLeftCommandId']:{_0x5efd6f=g['handleDeleteRangeMoveLeft'](_0x3c997a,_0x2999fe);break;}case g[_0x454d7a(0x458)][_0x454d7a(0x385)]:{_0x5efd6f=g['handleDeleteRangeMoveUp'](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x5efd6f=g[_0x454d7a(0x432)](_0x3c997a,_0x2999fe);break;}case g[_0x454d7a(0x458)][_0x454d7a(0x2b7)]:{_0x5efd6f=g['handleInsertRangeMoveDown'](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId'][_0x454d7a(0x2ee)]:{_0x5efd6f=g[_0x454d7a(0x441)](_0x3c997a,_0x2999fe);break;}case g[_0x454d7a(0x458)]['InsertRowCommandId']:{_0x5efd6f=g[_0x454d7a(0x29b)](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId'][_0x454d7a(0x3fe)]:{_0x5efd6f=g[_0x454d7a(0x362)](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId'][_0x454d7a(0x2b9)]:{_0x5efd6f=g[_0x454d7a(0x1e6)](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId'][_0x454d7a(0x3b9)]:{_0x5efd6f=g[_0x454d7a(0x247)](_0x3c997a,_0x2999fe);break;}}const _0x510131=g[_0x454d7a(0x2ec)](_0x5efd6f,_0x2999fe),_0xec22f3=this[_0x454d7a(0x3a9)]['get'](_0x109ed3);if(_0xec22f3&&_0x510131){const _0x2fcd5a={..._0xec22f3,'range':_0x510131};this[_0x454d7a(0x3a9)]['set'](_0x109ed3,_0x2fcd5a),_0x4298fb(()=>{const _0x3ab122=_0x454d7a,_0x3f0ed9=this['_refRangeService']['registerRefRange'](_0x510131,_0x8ae76b=>(_0x3f0ed9['dispose'](),_0xb7128(_0x8ae76b,_0x109ed3,_0x34bcf4,_0x510131)));_0x3fe261[_0x3ab122(0x27a)](_0x3f0ed9);});}return{'redos':[],'undos':[]};};this[_0x149601(0x3a9)][_0x149601(0x443)]((_0x397b90,_0x57d0a4)=>{const _0x50163d=_0x149601,{range:_0x135d91,sheetID:_0x293b56}=_0x397b90,_0x10171a=this[_0x50163d(0x2d6)][_0x50163d(0x393)](_0x135d91,_0x565305=>(_0x10171a[_0x50163d(0x448)](),_0xb7128(_0x565305,_0x57d0a4,_0x293b56,_0x135d91)));_0x3fe261[_0x50163d(0x27a)](_0x10171a);});};this[_0x3e2330(0x28d)](a[_0x3e2330(0x296)](this[_0x3e2330(0x3ef)]['subscribe'](()=>{_0x311b60();})));}[_0xa015b6(0x1f8)](){const _0x42d876=_0xa015b6;var _0x4e70bb,_0x12de40;if(this[_0x42d876(0x444)]=!0x0,((_0x4e70bb=this[_0x42d876(0x1ef)][_0x42d876(0x375)]())==null?void 0x0:_0x4e70bb[_0x42d876(0x357)]())!==this['unitID'])return;const _0x2e7d20=(_0x12de40=this['_injector'][_0x42d876(0x3ab)](g[_0x42d876(0x353)])['getCurrentSelections']())==null?void 0x0:_0x12de40[0x0],_0x5b2294=this[_0x42d876(0x1ef)][_0x42d876(0x2a3)](a[_0x42d876(0x2dd)]['UNIVER_SHEET'])[_0x42d876(0x3ed)]();_0x2e7d20&&_0x5b2294&&this['_updateLocalCursor'](_0x5b2294[_0x42d876(0x397)](),_0x2e7d20);}[_0xa015b6(0x3f8)](){const _0x2e21e7=_0xa015b6;this[_0x2e21e7(0x444)]=!0x1;}};Se=it([w(0x2,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),w(0x3,a[_0xa015b6(0x2b1)](me)),w(0x4,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x3bf)])),w(0x5,a[_0xa015b6(0x3cc)]),w(0x6,a[_0xa015b6(0x36a)]),w(0x7,a[_0xa015b6(0x2b1)](g[_0xa015b6(0x342)]))],Se);var at=Object[_0xa015b6(0x2ed)],ct=(_0x552280,_0x12d852,_0xaa7800,_0x5a7064)=>{const _0x21cc2f=_0xa015b6;for(var _0x2da4e8=_0x5a7064>0x1?void 0x0:_0x5a7064?at(_0x12d852,_0xaa7800):_0x12d852,_0x5c4eef=_0x552280[_0x21cc2f(0x3c0)]-0x1,_0x36a742;_0x5c4eef>=0x0;_0x5c4eef--)(_0x36a742=_0x552280[_0x5c4eef])&&(_0x2da4e8=_0x36a742(_0x2da4e8)||_0x2da4e8);return _0x2da4e8;},ie=(_0x5974e0,_0x8de0e1)=>(_0xa50310,_0x4732f5)=>_0x8de0e1(_0xa50310,_0x4732f5,_0x5974e0);let x=class extends a[_0xa015b6(0x321)]{constructor(_0x8c2ec3,_0x5c7d81,_0x118298){const _0x51fc97=_0xa015b6;super(),h(this,_0x51fc97(0x37c),new Map()),h(this,_0x51fc97(0x2b5),new d[(_0x51fc97(0x2e0))]()),(this[_0x51fc97(0x1ef)]=_0x8c2ec3,this[_0x51fc97(0x2a6)]=_0x5c7d81,this[_0x51fc97(0x1f1)]=_0x118298,this[_0x51fc97(0x2cd)]());}[_0xa015b6(0x448)](){const _0x3dc6c9=_0xa015b6;super[_0x3dc6c9(0x448)](),this[_0x3dc6c9(0x2b5)][_0x3dc6c9(0x2cc)](),this[_0x3dc6c9(0x37c)][_0x3dc6c9(0x443)](_0xbb6113=>_0xbb6113[_0x3dc6c9(0x448)]());}[_0xa015b6(0x2f6)](_0x1c6c83){const _0x12572f=_0xa015b6;return this[_0x12572f(0x37c)][_0x12572f(0x22b)](_0x1c6c83)?this[_0x12572f(0x37c)][_0x12572f(0x3ab)](_0x1c6c83)['cursorInfo$']:this[_0x12572f(0x2b5)][_0x12572f(0x316)](d[_0x12572f(0x354)](_0x42242c=>_0x42242c[_0x12572f(0x2fb)]===_0x1c6c83),d[_0x12572f(0x3c9)](_0x4a1d74=>_0x4a1d74['cursorInfo$']));}['_init'](){const _0x3affd5=_0xa015b6;this['_univerInstanceService'][_0x3affd5(0x30f)](a[_0x3affd5(0x2dd)]['UNIVER_SHEET'])['pipe'](d[_0x3affd5(0x37e)](this[_0x3affd5(0x369)]))['subscribe'](async _0x10c35a=>{const _0x15d605=_0x3affd5,_0x4bec79=_0x10c35a[_0x15d605(0x357)](),_0x277db0=await this[_0x15d605(0x40c)](_0x4bec79);this[_0x15d605(0x2b5)][_0x15d605(0x3f1)](_0x277db0),this[_0x15d605(0x37c)][_0x15d605(0x380)](_0x4bec79,_0x277db0);}),this[_0x3affd5(0x1ef)][_0x3affd5(0x30f)](a[_0x3affd5(0x2dd)][_0x3affd5(0x2a5)])[_0x3affd5(0x316)](d[_0x3affd5(0x37e)](this['dispose$']))['pipe'](d[_0x3affd5(0x354)](_0x4a8118=>!_0x4a8118[_0x3affd5(0x357)]()[_0x3affd5(0x352)]('__')))[_0x3affd5(0x439)](async _0x2d9b2e=>{const _0x4faafd=_0x3affd5,_0x5721d9=_0x2d9b2e[_0x4faafd(0x357)](),_0x141c21=await this[_0x4faafd(0x454)](_0x5721d9);this['_entityInit$'][_0x4faafd(0x3f1)](_0x141c21),this[_0x4faafd(0x37c)][_0x4faafd(0x380)](_0x5721d9,_0x141c21);}),d[_0x3affd5(0x23a)](this[_0x3affd5(0x1ef)][_0x3affd5(0x3b3)](a[_0x3affd5(0x2dd)][_0x3affd5(0x2a5)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3affd5(0x2dd)][_0x3affd5(0x204)]))[_0x3affd5(0x316)](d[_0x3affd5(0x37e)](this[_0x3affd5(0x369)]))[_0x3affd5(0x439)](_0x29b052=>{const _0x1e0c5c=_0x3affd5,_0xe209eb=_0x29b052[_0x1e0c5c(0x357)](),_0x343f8f=this[_0x1e0c5c(0x37c)][_0x1e0c5c(0x3ab)](_0xe209eb);_0x343f8f&&(_0x343f8f[_0x1e0c5c(0x448)](),this['_entities']['delete'](_0xe209eb));});}async['_startSheetCollabCursor'](_0x486e5e){const _0x3b25bb=_0xa015b6,_0x4cd6ea=await this[_0x3b25bb(0x1f1)][_0x3b25bb(0x3ba)](_0x486e5e),_0x2782f1=this[_0x3b25bb(0x2a6)]['createInstance'](Se,_0x486e5e,_0x4cd6ea);return _0x2782f1[_0x3b25bb(0x2d7)](),_0x2782f1;}async[_0xa015b6(0x454)](_0x1f2be8){const _0x39d1cd=_0xa015b6,_0x2bc22c=await this[_0x39d1cd(0x1f1)][_0x39d1cd(0x3ba)](_0x1f2be8),_0x17769c=this[_0x39d1cd(0x2a6)][_0x39d1cd(0x410)](fe,_0x1f2be8,_0x2bc22c);return _0x17769c[_0x39d1cd(0x2d7)](),_0x17769c;}};x=ct([ie(0x0,a[_0xa015b6(0x3cc)]),ie(0x1,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),ie(0x2,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x244)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x580e4f,_0x4b1ddb){const _0x4c18b7=_0xa015b6;let {radius:_0x4ebecd,width:_0x4ae819,height:_0x50c5e0}=_0x4b1ddb;_0x4ebecd=_0x4ebecd!=null?_0x4ebecd:0x0,_0x4ae819=_0x4ae819!=null?_0x4ae819:0x1e,_0x50c5e0=_0x50c5e0!=null?_0x50c5e0:0x1e;let _0x6db11d=0x0,_0x55d902=0x0,_0x500ff7=0x0;_0x6db11d=_0x55d902=_0x500ff7=Math[_0x4c18b7(0x422)](_0x4ebecd,_0x4ae819/0x2,_0x50c5e0/0x2),_0x580e4f[_0x4c18b7(0x30a)](),_0x580e4f['moveTo'](_0x6db11d,0x0),_0x580e4f['lineTo'](_0x4ae819-_0x55d902,0x0),_0x580e4f[_0x4c18b7(0x408)](_0x4ae819-_0x55d902,_0x55d902,_0x55d902,Math['PI']*0x3/0x2,0x0,!0x1),_0x580e4f[_0x4c18b7(0x37d)](_0x4ae819,_0x50c5e0-_0x500ff7),_0x580e4f[_0x4c18b7(0x408)](_0x4ae819-_0x500ff7,_0x50c5e0-_0x500ff7,_0x500ff7,0x0,Math['PI']/0x2,!0x1),_0x580e4f[_0x4c18b7(0x37d)](0x0,_0x50c5e0),_0x580e4f[_0x4c18b7(0x37d)](0x0,_0x6db11d),_0x580e4f[_0x4c18b7(0x408)](_0x6db11d,_0x6db11d,_0x6db11d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x580e4f['closePath'](),_0x4b1ddb[_0x4c18b7(0x45d)]&&(_0x580e4f[_0x4c18b7(0x379)](),_0x580e4f['fillStyle']=_0x4b1ddb[_0x4c18b7(0x45d)],_0x4b1ddb[_0x4c18b7(0x1f0)]===_0x4c18b7(0x314)?_0x580e4f[_0x4c18b7(0x45d)]('evenodd'):_0x580e4f[_0x4c18b7(0x45d)](),_0x580e4f[_0x4c18b7(0x281)]());}class ee extends p[_0xa015b6(0x350)]{constructor(_0x105ac1,_0x2ea363){const _0x22e958=_0xa015b6;super(_0x105ac1,_0x2ea363),h(this,_0x22e958(0x21a)),h(this,'text'),(this['color']=_0x2ea363==null?void 0x0:_0x2ea363[_0x22e958(0x21a)],this[_0x22e958(0x1fa)]=_0x2ea363==null?void 0x0:_0x2ea363[_0x22e958(0x1fa)]);}static[_0xa015b6(0x29a)](_0x1609bb,_0x21f3c4){const _0x410e1b=_0xa015b6,{text:_0x2915e3,color:_0x22f524}=_0x21f3c4;_0x1609bb['save'](),_0x1609bb[_0x410e1b(0x26d)]=_0x410e1b(0x1fd);const _0x40541a=_0x1609bb['measureText'](_0x2915e3)['width'],_0x2dd4c7=Math[_0x410e1b(0x422)](_0x40541a+0x2*ne,Re);_t(_0x1609bb,{'height':K,'radius':0x4,'width':_0x2dd4c7,'fill':_0x22f524}),_0x1609bb['fillStyle']=_0x410e1b(0x45c);const _0x23e90e=ne,_0x305127=K-lt,_0x4395f0=Re-0x2*ne;if(_0x40541a>_0x4395f0){let _0x26ab5a='',_0x65cb75=0x0;for(const _0x557f38 of _0x2915e3){const _0x3c5b94=_0x1609bb[_0x410e1b(0x3dd)](_0x557f38)[_0x410e1b(0x376)];if(_0x65cb75+_0x3c5b94<=_0x4395f0-_0x1609bb[_0x410e1b(0x3dd)]('...')[_0x410e1b(0x376)])_0x26ab5a+=_0x557f38,_0x65cb75+=_0x3c5b94;else{_0x26ab5a+=_0x410e1b(0x2e9);break;}}_0x1609bb['fillText'](_0x26ab5a,_0x23e90e,_0x305127);}else _0x1609bb[_0x410e1b(0x1f3)](_0x2915e3,_0x23e90e,_0x305127);_0x1609bb[_0x410e1b(0x281)]();}[_0xa015b6(0x326)](_0x215879){const _0x2c94cf=_0xa015b6;ee[_0x2c94cf(0x29a)](_0x215879,this);}}const re=_0xa015b6(0x3d1),ht=_0xa015b6(0x424),ut=_0xa015b6(0x3e2),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0xa015b6(0x400);class De{constructor(_0xb30012,_0xaed0b2,_0x1b29f3,_0x56581f){const _0x4230af=_0xa015b6;h(this,_0x4230af(0x3d9),[]),h(this,_0x4230af(0x360),null),h(this,'_textBubble',null),h(this,_0x4230af(0x324),null),h(this,_0x4230af(0x246),null),h(this,_0x4230af(0x279),null),(this['_cursor']=_0xb30012,this[_0x4230af(0x38b)]=_0xaed0b2,this['_docSkeleton']=_0x1b29f3,this[_0x4230af(0x267)]=_0x56581f,this[_0x4230af(0x43f)]());}set[_0xa015b6(0x218)](_0x189a90){const _0x47d521=_0xa015b6;_0x189a90?(this['_anchorDot']&&this[_0x47d521(0x324)]['hide'](),this[_0x47d521(0x35c)]&&this[_0x47d521(0x35c)][_0x47d521(0x1f6)]()):(this[_0x47d521(0x324)]&&this[_0x47d521(0x324)]['show'](),this[_0x47d521(0x35c)]&&this[_0x47d521(0x35c)]['hide']());}[_0xa015b6(0x448)](){const _0x51d74f=_0xa015b6;for(const _0xda8208 of this['_shapes'])_0xda8208[_0x51d74f(0x448)]();this['_textBubble']&&this[_0x51d74f(0x35c)][_0x51d74f(0x448)](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0x51d74f(0x360)]&&this[_0x51d74f(0x360)]['dispose'](),this['_eventUnsubscribe']&&this[_0x51d74f(0x279)]();}[_0xa015b6(0x43f)](){const _0x4053c3=_0xa015b6;var _0x162da3;const {_docSkeleton:_0x4be616,_document:_0x266fd7}=this,{color:_0x46f472,name:_0x469b6b,ranges:_0x596ae7}=this[_0x4053c3(0x3f7)],_0x357724=_0x266fd7[_0x4053c3(0x27e)](),{docsLeft:_0x4edfc4,docsTop:_0x40f2b9}=_0x357724,_0x5aeb29=new b['NodePositionConvertToCursor'](_0x357724,_0x4be616);for(const {startOffset:_0xc35ce,endOffset:_0x274b83,rangeType:_0x5cc256,segmentId:_0x48956f,segmentPage:_0x38c7da,collapsed:_0x2edacf,isActive:_0x57a2eb}of _0x596ae7){const _0x166f07=_0x4be616[_0x4053c3(0x1e5)](_0xc35ce,!0x0,_0x48956f,_0x38c7da);let _0x3e338a=_0x4be616[_0x4053c3(0x1e5)](_0x274b83,!0x0,_0x48956f,_0x38c7da);if(_0x3e338a==null&&(_0x3e338a=_0x4be616[_0x4053c3(0x1e5)](_0x274b83-0x1,!0x1,_0x48956f,_0x38c7da)),_0x57a2eb){const {contentBoxPointGroup:_0x54338f}=_0x5aeb29[_0x4053c3(0x2ad)](_0x3e338a,_0x3e338a);if(_0x54338f[_0x4053c3(0x3c0)]===0x0)continue;this['_drawAnchor'](_0x46f472,_0x54338f,_0x4edfc4,_0x40f2b9,_0x469b6b),this[_0x4053c3(0x279)]=this[_0x4053c3(0x248)]();}if(_0x166f07&&_0x3e338a){if(_0x5cc256===a[_0x4053c3(0x3d3)][_0x4053c3(0x2e1)]){const _0x5ca8e4=new b[(_0x4053c3(0x286))](_0x357724,_0x4be616),{pointGroup:_0x157e59}=(_0x162da3=_0x5ca8e4[_0x4053c3(0x2ad)](_0x166f07,_0x3e338a))!=null?_0x162da3:{};if(_0x157e59==null||_0x157e59[_0x4053c3(0x3c0)]===0x0)continue;this[_0x4053c3(0x2db)](_0x46f472,_0x157e59,_0x4edfc4,_0x40f2b9);}else{if(!_0x2edacf){const {borderBoxPointGroup:_0x59a375}=_0x5aeb29['getRangePointData'](_0x166f07,_0x3e338a);if(_0x59a375[_0x4053c3(0x3c0)]===0x0)continue;this[_0x4053c3(0x2e4)](_0x46f472,_0x59a375,_0x4edfc4,_0x40f2b9);}}}}}['_drawAnchor'](_0x21f1e2,_0x530aac,_0x1ee5ba,_0x4faf54,_0x5b3844){const _0x23a47d=_0xa015b6,_0x4e0ce3=this[_0x23a47d(0x437)](_0x530aac),{left:_0x2bcd7e,top:_0x1ca764,height:_0xf11040}=_0x4e0ce3,_0x2999bb=this[_0x23a47d(0x212)](),_0x564dcb=ft/_0x2999bb,_0x126979=new p[(_0x23a47d(0x461))](re+a['Tools'][_0x23a47d(0x3c5)](k),{'left':_0x2bcd7e+_0x1ee5ba-_0x564dcb,'top':_0x1ca764+_0x4faf54,'height':_0xf11040,'width':dt,'fill':_0x21f1e2||p[_0x23a47d(0x425)](a[_0x23a47d(0x260)][_0x23a47d(0x2f4)],0x0),'strokeWidth':_0x564dcb,'stroke':St,'evented':!0x0});this['_anchor']=_0x126979,this[_0x23a47d(0x38b)][_0x23a47d(0x304)](_0x126979,b[_0x23a47d(0x398)]);const _0x277604=new p[(_0x23a47d(0x461))](re+a[_0x23a47d(0x3b0)][_0x23a47d(0x3c5)](k),{'left':_0x2bcd7e+_0x1ee5ba-_0x564dcb,'top':_0x1ca764+_0x4faf54-oe/0x2,'height':oe,'width':oe,'fill':_0x21f1e2||p[_0x23a47d(0x425)](a[_0x23a47d(0x260)][_0x23a47d(0x2f4)],0x0),'strokeWidth':0x0,'stroke':_0x21f1e2||p[_0x23a47d(0x425)](a['COLORS'][_0x23a47d(0x2f4)],0x0),'evented':!0x1});this[_0x23a47d(0x324)]=_0x277604,this[_0x23a47d(0x38b)][_0x23a47d(0x304)](_0x277604,b['TEXT_RANGE_LAYER_INDEX']);const _0x24396e=new ee(re+a[_0x23a47d(0x3b0)]['generateRandomId'](k),{'left':_0x2bcd7e+_0x1ee5ba-_0x564dcb,'top':_0x1ca764+_0x4faf54-K,'text':_0x5b3844,'color':_0x21f1e2});this[_0x23a47d(0x35c)]=_0x24396e,this['_scene'][_0x23a47d(0x304)](_0x24396e,b[_0x23a47d(0x398)]),this['_hover']=!0x1;}[_0xa015b6(0x248)](){const _0x56d579=_0xa015b6,_0xe9f033=this[_0x56d579(0x360)][_0x56d579(0x330)][_0x56d579(0x2a7)](()=>{const _0x3d1608=_0x56d579;this[_0x3d1608(0x218)]=!0x0;}),_0x33910f=this[_0x56d579(0x360)][_0x56d579(0x241)][_0x56d579(0x2a7)](()=>{const _0x549a4b=_0x56d579;this[_0x549a4b(0x246)]&&clearTimeout(this['_hideTimer']),this[_0x549a4b(0x246)]=setTimeout(()=>{const _0x533fab=_0x549a4b;this[_0x533fab(0x218)]=!0x1;},0x7d0);});return()=>{const _0x5ca7ec=_0x56d579;_0xe9f033[_0x5ca7ec(0x3de)](),_0x33910f[_0x5ca7ec(0x3de)]();};}[_0xa015b6(0x2e4)](_0x484409,_0x17bc91,_0x5d67a1,_0x55a552){const _0x5da6bc=_0xa015b6,_0x4b2d82=new a[(_0x5da6bc(0x21d))](_0x484409)['setAlpha'](0.2)[_0x5da6bc(0x426)](),_0x169540=new p[(_0x5da6bc(0x42c))](ht+a['Tools'][_0x5da6bc(0x3c5)](k),{'pointsGroup':_0x17bc91,'fill':_0x4b2d82||p[_0x5da6bc(0x425)](a[_0x5da6bc(0x260)][_0x5da6bc(0x2f4)],0.2),'left':_0x5d67a1,'top':_0x55a552,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5da6bc(0x3d9)][_0x5da6bc(0x233)](_0x169540),this[_0x5da6bc(0x38b)][_0x5da6bc(0x304)](_0x169540,b['TEXT_RANGE_LAYER_INDEX']);}[_0xa015b6(0x2db)](_0x36b8af,_0x5bcdbd,_0x47735d,_0x5aaa27){const _0x22a373=_0xa015b6,_0x4e3ac5=new a[(_0x22a373(0x21d))](_0x36b8af)['setAlpha'](0.2)[_0x22a373(0x426)](),_0x224602=new p[(_0x22a373(0x42c))](ut+a[_0x22a373(0x3b0)][_0x22a373(0x3c5)](k),{'pointsGroup':_0x5bcdbd,'fill':_0x4e3ac5||p[_0x22a373(0x425)](a['COLORS'][_0x22a373(0x2f4)],0.2),'left':_0x47735d,'top':_0x5aaa27,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x224602),this[_0x22a373(0x38b)][_0x22a373(0x304)](_0x224602,b[_0x22a373(0x398)]);}['_getAnchorBounding'](_0x4a89b4){const _0x3afb91=_0x4a89b4[0x0],_0x4e82ff=_0x3afb91[0x0],_0x379900=_0x3afb91[0x2],{x:_0x56e1ef,y:_0x56aa35}=_0x4e82ff,{x:_0x1e6ced,y:_0xb6a703}=_0x379900;return{'left':_0x56e1ef,'top':_0x56aa35,'width':_0x1e6ced-_0x56e1ef,'height':_0xb6a703-_0x56aa35};}[_0xa015b6(0x212)](){const _0x413b71=_0xa015b6,{scaleX:_0x368686,scaleY:_0x57d34c}=this['_scene'][_0x413b71(0x328)]();return Math[_0x413b71(0x292)](_0x368686,_0x57d34c);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x1fb016,_0x29cd3e,_0x38de77,_0x25faee)=>{for(var _0x3e7ed8=_0x25faee>0x1?void 0x0:_0x25faee?It(_0x29cd3e,_0x38de77):_0x29cd3e,_0x1b58db=_0x1fb016['length']-0x1,_0x58a1a1;_0x1b58db>=0x0;_0x1b58db--)(_0x58a1a1=_0x1fb016[_0x1b58db])&&(_0x3e7ed8=_0x58a1a1(_0x3e7ed8)||_0x3e7ed8);return _0x3e7ed8;},W=(_0x294a35,_0x1c3bed)=>(_0x1a3c9b,_0x278185)=>_0x1c3bed(_0x1a3c9b,_0x278185,_0x294a35);let Ie=class extends a[_0xa015b6(0x321)]{constructor(_0x29b0a5,_0x5875c3,_0x4f2abb,_0x4c4ead,_0xa2540c){const _0x27a0ad=_0xa015b6;super(),h(this,_0x27a0ad(0x2ea),[]),h(this,'_cursors',[]),(this['_context']=_0x29b0a5,this[_0x27a0ad(0x322)]=_0x5875c3,this['_collabCursorController']=_0x4f2abb,this[_0x27a0ad(0x404)]=_0x4c4ead,this[_0x27a0ad(0x27c)]=_0xa2540c,this[_0x27a0ad(0x2cd)]());}[_0xa015b6(0x2cd)](){const _0xf9589c=_0xa015b6,_0x867b32=this['_context']['unitId'],_0x6292df=this[_0xf9589c(0x322)];this['disposeWithMe'](d[_0xf9589c(0x29f)]([this[_0xf9589c(0x3f4)][_0xf9589c(0x2f6)](_0x867b32),this[_0xf9589c(0x27c)]['currentTheme$']])[_0xf9589c(0x316)]($['map'](([_0x5b8032,_0x4e6794])=>({'skeleton':_0x6292df[_0xf9589c(0x2e8)](),'cursors':[..._0x5b8032[_0xf9589c(0x1e7)]()]['flatMap'](_0x2cf2b1=>({..._0x2cf2b1,'color':this[_0xf9589c(0x27c)]['getColorFromTheme'](_0x2cf2b1[_0xf9589c(0x21a)])}))})))[_0xf9589c(0x439)](_0x4635cd=>{const _0x2645bf=_0xf9589c;if(this[_0x2645bf(0x1f4)](),_0x4635cd){const {skeleton:_0x5e4cb5,cursors:_0x411083}=_0x4635cd;this['_updateCollabCursors'](_0x5e4cb5,_0x411083);}})),this[_0xf9589c(0x3ce)](),this[_0xf9589c(0x433)]();}['_updateCollabCursors'](_0x5ab014,_0x467a58){const _0x4d3857=_0xa015b6,{scene:_0x595ed0,mainComponent:_0x49bb31}=this[_0x4d3857(0x2a0)],_0x11bac0=_0x467a58[_0x4d3857(0x364)](_0x2f26a7=>new De(_0x2f26a7,_0x595ed0,_0x5ab014,_0x49bb31));this['_cursorShapes']=_0x11bac0,this['_cursors']=_0x467a58;}[_0xa015b6(0x274)](){const _0x8d7e7f=_0xa015b6;this[_0x8d7e7f(0x1f4)]();const {scene:_0x512b62,mainComponent:_0xcefc40}=this[_0x8d7e7f(0x2a0)],_0x41fbc4=this[_0x8d7e7f(0x322)]['getSkeleton'](),_0x3e9578=this['_cursors'][_0x8d7e7f(0x364)](_0x5edffb=>new De(_0x5edffb,_0x512b62,_0x41fbc4,_0xcefc40));this[_0x8d7e7f(0x2ea)]=_0x3e9578;}[_0xa015b6(0x1f4)](){const _0x45af59=_0xa015b6;this[_0x45af59(0x2ea)][_0x45af59(0x443)](_0x5d8e61=>_0x5d8e61[_0x45af59(0x448)]()),this[_0x45af59(0x2ea)]=[];}[_0xa015b6(0x433)](){const _0x21a0a9=_0xa015b6,_0x5a856f=[b[_0x21a0a9(0x456)]['id']];this[_0x21a0a9(0x28d)](this[_0x21a0a9(0x404)]['onCommandExecuted'](_0x34aedf=>{const _0x4e81ae=_0x21a0a9;_0x5a856f[_0x4e81ae(0x453)](_0x34aedf['id'])&&_0x34aedf[_0x4e81ae(0x436)][_0x4e81ae(0x2ab)]===this['_context'][_0x4e81ae(0x2ab)]&&this[_0x4e81ae(0x274)]();}));}['_initResize'](){const _0x2fd15f=_0xa015b6;this[_0x2fd15f(0x28d)](a[_0x2fd15f(0x41b)](this['_context']['engine']['onTransformChange$'])[_0x2fd15f(0x316)]($[_0x2fd15f(0x354)](_0xbbee24=>_0xbbee24[_0x2fd15f(0x340)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2fd15f(0x1fe)]),$[_0x2fd15f(0x21f)](0x10))['subscribe'](()=>{const _0x45f9ac=_0x2fd15f;this[_0x45f9ac(0x274)]();}));}};Ie=vt([W(0x1,a[_0xa015b6(0x2b1)](Y[_0xa015b6(0x45e)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0xa015b6(0x2b1)](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0xa015b6(0x350)]{constructor(_0x742eb,_0x180520){const _0x3b5cd1=_0xa015b6;super(_0x742eb,_0x180520),h(this,_0x3b5cd1(0x44b)),h(this,_0x3b5cd1(0x27d),!0x1),h(this,'_range'),h(this,_0x3b5cd1(0x2bc),''),h(this,'_labelPosition','top'),h(this,'_backgroundColor'),(_0x180520&&this['setShapeProps'](_0x180520),this[_0x3b5cd1(0x330)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x3b5cd1(0x241)][_0x3b5cd1(0x2a7)](()=>this[_0x3b5cd1(0x44a)]({'hovered':!0x1})));}['setShapeProps'](_0x47b199){const _0x396c68=_0xa015b6;var _0x1f6aef,_0xaa28e7,_0x394db9,_0x5c7c76,_0x49026f,_0x5cfc48;this[_0x396c68(0x44b)]=(_0x1f6aef=_0x47b199[_0x396c68(0x21a)])!=null?_0x1f6aef:this[_0x396c68(0x44b)],this['_hovered']=(_0xaa28e7=_0x47b199[_0x396c68(0x455)])!=null?_0xaa28e7:this[_0x396c68(0x27d)],this['_range']=(_0x394db9=_0x47b199[_0x396c68(0x2b4)])!=null?_0x394db9:this[_0x396c68(0x387)],this['_name']=(_0x5c7c76=_0x47b199[_0x396c68(0x238)])!=null?_0x5c7c76:this['_name'],this[_0x396c68(0x451)]=(_0x49026f=_0x47b199[_0x396c68(0x284)])!=null?_0x49026f:this['_labelPosition'],this[_0x396c68(0x3e7)]=(_0x5cfc48=_0x47b199[_0x396c68(0x42b)])!=null?_0x5cfc48:this[_0x396c68(0x3e7)],this['transformByState']({'width':_0x47b199[_0x396c68(0x376)],'height':_0x47b199[_0x396c68(0x420)]});}['onMouseMove'](_0x160b7a){const _0x275773=_0xa015b6,{row:_0x1418d3,column:_0x28d0b2}=_0x160b7a;if(_0x1418d3>=this[_0x275773(0x387)]['startRow']&&_0x1418d3<=this[_0x275773(0x387)][_0x275773(0x20e)]&&_0x28d0b2>=this[_0x275773(0x387)]['startColumn']&&_0x28d0b2<=this[_0x275773(0x387)][_0x275773(0x299)]){this[_0x275773(0x44a)]({'hovered':!0x0});return;}this[_0x275773(0x44a)]({'hovered':!0x1});}[_0xa015b6(0x303)](_0x4e367f){return!0x1;}['_draw'](_0xa135fe){const _0x2574e7=_0xa015b6;p[_0x2574e7(0x461)][_0x2574e7(0x29a)](_0xa135fe,{'width':this[_0x2574e7(0x376)],'height':this[_0x2574e7(0x420)],'strokeWidth':mt,'stroke':this[_0x2574e7(0x44b)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x2574e7(0x27d)]&&(_0xa135fe['save'](),_0xa135fe[_0x2574e7(0x21c)](0x1,0x0,0x0,0x1,this[_0x2574e7(0x376)],this['_labelPosition']==='bottom'?0x0:-0x14),ee[_0x2574e7(0x29a)](_0xa135fe,{'text':this['_name'],'color':this[_0x2574e7(0x44b)]}),_0xa135fe[_0x2574e7(0x281)]());}}var Ct=Object[_0xa015b6(0x2ed)],pt=(_0x2955cf,_0x36f2ab,_0x5bcb9a,_0x4b587b)=>{const _0x3b22c0=_0xa015b6;for(var _0x15438a=_0x4b587b>0x1?void 0x0:_0x4b587b?Ct(_0x36f2ab,_0x5bcb9a):_0x36f2ab,_0x295e62=_0x2955cf[_0x3b22c0(0x3c0)]-0x1,_0x276828;_0x295e62>=0x0;_0x295e62--)(_0x276828=_0x2955cf[_0x295e62])&&(_0x15438a=_0x276828(_0x15438a)||_0x15438a);return _0x15438a;},ae=(_0x16e7ef,_0x3eba80)=>(_0x1f08b0,_0x3fc7a8)=>_0x3eba80(_0x1f08b0,_0x3fc7a8,_0x16e7ef);const bt=0x1389;let ve=class extends a[_0xa015b6(0x321)]{constructor(_0x23b9c4,_0x20b018,_0x130f84,_0xa3f974){const _0x447df8=_0xa015b6;super(),h(this,_0x447df8(0x36e),new Set()),h(this,'_lastPointer',null),(this['_context']=_0x23b9c4,this[_0x447df8(0x325)]=_0x20b018,this['_collabCursorController']=_0x130f84,this['_themeService']=_0xa3f974,this[_0x447df8(0x2cd)]());}[_0xa015b6(0x2cd)](){const _0x41d65f=_0xa015b6;this[_0x41d65f(0x325)][_0x41d65f(0x28e)][_0x41d65f(0x316)]($[_0x41d65f(0x37e)](this[_0x41d65f(0x369)]),$['switchMap'](_0xab649=>{const _0x482052=_0x41d65f;if(_0xab649){const _0x3c7fd7=_0xab649[_0x482052(0x3a3)];return d['combineLatest'](this[_0x482052(0x3f4)][_0x482052(0x2f6)](this[_0x482052(0x2a0)][_0x482052(0x2ab)]),this[_0x482052(0x27c)][_0x482052(0x459)])[_0x482052(0x316)]($[_0x482052(0x364)](([_0x52f35f,_0x38f6f5])=>{const _0x24ee54=_0x482052,_0x209970=new Map();return _0x52f35f[_0x24ee54(0x443)]((_0x3347e8,_0x2dd875)=>{const _0x440a16=_0x24ee54;if(_0x3347e8[_0x440a16(0x34a)]===_0x3c7fd7){const _0x12204b={..._0x3347e8};_0x12204b[_0x440a16(0x21a)]=this[_0x440a16(0x27c)][_0x440a16(0x361)](_0x3347e8[_0x440a16(0x21a)]),_0x209970[_0x440a16(0x380)](_0x2dd875,_0x12204b);}}),{'skeleton':_0xab649,'cursors':_0x209970};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x41d65f(0x439)](({skeleton:_0x2c6cf4,cursors:_0x393478})=>{const _0x2a2b64=_0x41d65f;this['_removeCollabCursors'](),_0x2c6cf4&&this[_0x2a2b64(0x3c6)](_0x2c6cf4,_0x393478);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x41d65f(0x439)](_0x5490b4=>{const _0x4e88e5=_0x41d65f;if(_0x5490b4==null)return;const {skeleton:_0x3cf6f8}=_0x5490b4,{scene:_0x161626}=this['_context'];_0x161626[_0x4e88e5(0x336)][_0x4e88e5(0x2a7)](a['debounce'](_0x58a0fe=>{const _0x4b3396=_0x4e88e5;var _0x4c6b08,_0xaacf58;const {offsetX:_0x3e88a9,offsetY:_0x39a2c3}=_0x58a0fe,{x:_0x2bd9ab,y:_0x19961b}=_0x161626[_0x4b3396(0x257)](p['Vector2'][_0x4b3396(0x3bb)]([_0x3e88a9,_0x39a2c3])),{scaleX:_0x443c0b,scaleY:_0x387dfb}=_0x161626[_0x4b3396(0x328)](),_0x48f18d=_0x161626[_0x4b3396(0x3a0)](p[_0x4b3396(0x413)][_0x4b3396(0x262)]),_0x50b87f=_0x161626[_0x4b3396(0x288)](p[_0x4b3396(0x38d)][_0x4b3396(0x3bb)]([_0x2bd9ab,_0x19961b]),_0x48f18d),_0x23a19b=_0x3cf6f8[_0x4b3396(0x3aa)](_0x3e88a9,_0x39a2c3,_0x443c0b,_0x387dfb,_0x50b87f);((_0x4c6b08=this['_lastPointer'])==null?void 0x0:_0x4c6b08[_0x4b3396(0x457)])===_0x23a19b[_0x4b3396(0x457)]&&((_0xaacf58=this['_lastPointer'])==null?void 0x0:_0xaacf58[_0x4b3396(0x3fb)])===_0x23a19b[_0x4b3396(0x3fb)]||this[_0x4b3396(0x36e)][_0x4b3396(0x443)](_0x5c00b8=>{const _0x4da549=_0x4b3396;_0x5c00b8[_0x4da549(0x429)](_0x23a19b);});},0x64));});}['_updateCollabCursors'](_0x6abca9,_0x11755e){const _0x318468=_0xa015b6;var _0x26e31c;const _0x57dd9d=(_0x26e31c=this[_0x318468(0x325)]['getCurrent']())==null?void 0x0:_0x26e31c[_0x318468(0x45a)];if(!_0x57dd9d)return;const _0x337a3e=this['_getSheetObject']();if(!_0x337a3e)return;this[_0x318468(0x36e)][_0x318468(0x443)](_0x3e4ad9=>{_0x3e4ad9['makeDirty']();});const {scene:_0x159ab8}=_0x337a3e,_0xaa2364=Et(Array['from'](_0x11755e['values']()))[_0x318468(0x364)](_0x11297b=>{const _0x34f780=_0x318468,{color:_0x228994,range:_0x4d8399,name:_0x552169,selection:_0x932bcb,sheetID:_0x6fc820}=_0x11297b,{startColumn:_0x2221d8,startRow:_0x2fe902,endColumn:_0x945fe9,endRow:_0x18c90d}=_0x4d8399,_0x30b6d5=X[_0x34f780(0x368)](_0x2fe902,_0x2221d8,_0x159ab8,_0x57dd9d),_0x36956d=X['getCoordByCell'](_0x18c90d,_0x945fe9,_0x159ab8,_0x57dd9d),{columnHeaderHeightAndMarginTop:_0x3bd4d9}=_0x57dd9d,{startX:_0x4dba40,startY:_0x22824a}=_0x30b6d5,{endX:_0x4b5dbf,endY:_0x1bc747}=_0x36956d,_0x47d143=_0x4b5dbf-_0x4dba40,_0x266b0f=_0x1bc747-_0x22824a,_0x5e52fa={'labelPosition':_0x22824a-_0x3bd4d9>=K?_0x34f780(0x378):_0x34f780(0x35b),'sheetID':_0x6fc820,'range':_0x4d8399,'color':_0x228994,'name':_0x552169,'selection':_0x932bcb,'left':_0x4dba40,'top':_0x22824a,'width':_0x47d143,'height':_0x266b0f,'evented':!0x1,'zIndex':bt};return new Ae(_0x552169,_0x5e52fa);});_0x159ab8[_0x318468(0x25b)](_0xaa2364,gt),this['_cursors']=new Set(_0xaa2364);}[_0xa015b6(0x1f4)](){const _0x406a39=_0xa015b6;var _0x43d6bf;(_0x43d6bf=this[_0x406a39(0x36e)])==null||_0x43d6bf[_0x406a39(0x443)](_0x12574f=>_0x12574f[_0x406a39(0x448)]());}[_0xa015b6(0x3fd)](){const _0x2a067a=_0xa015b6;return X[_0x2a067a(0x355)](this['_context'][_0x2a067a(0x39a)],this[_0x2a067a(0x2a0)]);}};ve=pt([ae(0x1,a[_0xa015b6(0x2b1)](X[_0xa015b6(0x2bd)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x254)]))],ve);function Et(_0x486559){const _0x297bf3=_0xa015b6,_0x54553f=new Map();return _0x486559[_0x297bf3(0x443)](_0x353bb6=>{const _0x353c20=_0x297bf3;if(_0x54553f[_0x353c20(0x22b)](_0x353bb6['selection'])){const _0x40c9fe=_0x54553f[_0x353c20(0x3ab)](_0x353bb6[_0x353c20(0x39b)]);_0x40c9fe[_0x353c20(0x238)]+=',\x20'+_0x353bb6['name'];}else _0x54553f[_0x353c20(0x380)](_0x353bb6[_0x353c20(0x39b)],_0x353bb6);}),Array[_0x297bf3(0x39c)](_0x54553f['values']());}var E=function(){const _0x549628=_0xa015b6;return E=Object['assign']||function(_0x395ffd){const _0x39a891=_0x407d;for(var _0x3a52c2,_0x2c16dc=0x1,_0x1dfcfd=arguments[_0x39a891(0x3c0)];_0x2c16dc<_0x1dfcfd;_0x2c16dc++){_0x3a52c2=arguments[_0x2c16dc];for(var _0x38635c in _0x3a52c2)Object[_0x39a891(0x39e)][_0x39a891(0x1e8)]['call'](_0x3a52c2,_0x38635c)&&(_0x395ffd[_0x38635c]=_0x3a52c2[_0x38635c]);}return _0x395ffd;},E[_0x549628(0x382)](this,arguments);},Tt=function(_0x49be8e,_0x73219b){const _0xb134be=_0xa015b6;var _0x34c742={};for(var _0x2982e0 in _0x49be8e)Object[_0xb134be(0x39e)][_0xb134be(0x1e8)][_0xb134be(0x44c)](_0x49be8e,_0x2982e0)&&_0x73219b[_0xb134be(0x33d)](_0x2982e0)<0x0&&(_0x34c742[_0x2982e0]=_0x49be8e[_0x2982e0]);if(_0x49be8e!=null&&typeof Object[_0xb134be(0x3a1)]=='function'){for(var _0x97f0b1=0x0,_0x2982e0=Object[_0xb134be(0x3a1)](_0x49be8e);_0x97f0b1<_0x2982e0['length'];_0x97f0b1++)_0x73219b[_0xb134be(0x33d)](_0x2982e0[_0x97f0b1])<0x0&&Object[_0xb134be(0x39e)][_0xb134be(0x220)][_0xb134be(0x44c)](_0x49be8e,_0x2982e0[_0x97f0b1])&&(_0x34c742[_0x2982e0[_0x97f0b1]]=_0x49be8e[_0x2982e0[_0x97f0b1]]);}return _0x34c742;},pe=M[_0xa015b6(0x3e1)](function(_0x5babfe,_0x480365){const _0x1fabe0=_0xa015b6;var _0x3321de=_0x5babfe[_0x1fabe0(0x22e)],_0xbc34b1=_0x5babfe['id'],_0x273990=_0x5babfe[_0x1fabe0(0x201)],_0x596e41=_0x5babfe[_0x1fabe0(0x465)],_0x5e5920=Tt(_0x5babfe,[_0x1fabe0(0x22e),'id','className',_0x1fabe0(0x465)]),_0x47f1c2='univerjs-icon\x20univerjs-icon-'[_0x1fabe0(0x30b)](_0xbc34b1,'\x20')[_0x1fabe0(0x30b)](_0x273990||'')['trim'](),_0x4368df=M['useRef']('_'[_0x1fabe0(0x30b)](Dt()));return we(_0x3321de,''[_0x1fabe0(0x30b)](_0xbc34b1),{'defIds':_0x3321de['defIds'],'idSuffix':_0x4368df['current']},E({'ref':_0x480365,'className':_0x47f1c2},_0x5e5920),_0x596e41);});function we(_0x21f942,_0x184f09,_0x4e34af,_0x5e4cc3,_0x412ec0){const _0x4ed473=_0xa015b6;return M[_0x4ed473(0x43a)](_0x21f942[_0x4ed473(0x3a5)],E(E({'key':_0x184f09},Ot(_0x21f942,_0x4e34af,_0x412ec0)),_0x5e4cc3),(Rt(_0x21f942,_0x4e34af)['children']||[])[_0x4ed473(0x364)](function(_0x5ab6cf,_0x233088){const _0xf0ef88=_0x4ed473;return we(_0x5ab6cf,''[_0xf0ef88(0x30b)](_0x184f09,'-')[_0xf0ef88(0x30b)](_0x21f942[_0xf0ef88(0x3a5)],'-')['concat'](_0x233088),_0x4e34af,void 0x0,_0x412ec0);}));}function Ot(_0x542549,_0x1da4b8,_0x209a27){const _0x2d2961=_0xa015b6;var _0x5c6d72=E({},_0x542549[_0x2d2961(0x264)]);_0x209a27!=null&&_0x209a27['colorChannel1']&&_0x5c6d72[_0x2d2961(0x45d)]===_0x2d2961(0x332)&&(_0x5c6d72[_0x2d2961(0x45d)]=_0x209a27[_0x2d2961(0x332)]),_0x542549['tag']==='mask'&&_0x5c6d72['id']&&(_0x5c6d72['id']=_0x5c6d72['id']+_0x1da4b8[_0x2d2961(0x313)]),Object[_0x2d2961(0x434)](_0x5c6d72)[_0x2d2961(0x443)](function(_0x22664a){const _0x5e5f4b=_0x2d2961;var _0x4c8220=_0x22664a[0x0],_0x1d8bb6=_0x22664a[0x1];_0x4c8220===_0x5e5f4b(0x22d)&&typeof _0x1d8bb6==_0x5e5f4b(0x3d8)&&(_0x5c6d72[_0x4c8220]=_0x1d8bb6[_0x5e5f4b(0x253)](/url\(#(.*)\)/,'url(#$1'[_0x5e5f4b(0x30b)](_0x1da4b8[_0x5e5f4b(0x313)],')')));});var _0x3b94e6=_0x1da4b8[_0x2d2961(0x21b)];return!_0x3b94e6||_0x3b94e6[_0x2d2961(0x3c0)]===0x0||(_0x542549[_0x2d2961(0x3a5)]===_0x2d2961(0x390)&&_0x5c6d72[_0x2d2961(0x43b)]&&(_0x5c6d72[_0x2d2961(0x43b)]=_0x5c6d72[_0x2d2961(0x43b)]+_0x1da4b8['idSuffix']),Object[_0x2d2961(0x434)](_0x5c6d72)['forEach'](function(_0x543f81){const _0x3369b6=_0x2d2961;var _0x228235=_0x543f81[0x0],_0x4a9c35=_0x543f81[0x1];typeof _0x4a9c35==_0x3369b6(0x3d8)&&(_0x5c6d72[_0x228235]=_0x4a9c35[_0x3369b6(0x253)](/url\(#(.*)\)/,_0x3369b6(0x30d)[_0x3369b6(0x30b)](_0x1da4b8[_0x3369b6(0x313)],')')));})),_0x5c6d72;}function Rt(_0x132781,_0x3b6cce){const _0x5811d6=_0xa015b6;var _0x3f3ab7,_0x570616=_0x3b6cce[_0x5811d6(0x21b)];return!_0x570616||_0x570616['length']===0x0?_0x132781:_0x132781[_0x5811d6(0x3a5)]===_0x5811d6(0x367)&&(!((_0x3f3ab7=_0x132781[_0x5811d6(0x256)])===null||_0x3f3ab7===void 0x0)&&_0x3f3ab7[_0x5811d6(0x3c0)])?E(E({},_0x132781),{'children':_0x132781[_0x5811d6(0x256)]['map'](function(_0xad772d){const _0x5cedd5=_0x5811d6;return typeof _0xad772d[_0x5cedd5(0x264)]['id']==_0x5cedd5(0x3d8)&&_0x570616&&_0x570616[_0x5cedd5(0x33d)](_0xad772d[_0x5cedd5(0x264)]['id'])>-0x1?E(E({},_0xad772d),{'attrs':E(E({},_0xad772d[_0x5cedd5(0x264)]),{'id':_0xad772d[_0x5cedd5(0x264)]['id']+_0x3b6cce[_0x5cedd5(0x313)]})}):_0xad772d;})}):_0x132781;}function Dt(){const _0x3b3a0d=_0xa015b6;return Math[_0x3b3a0d(0x23f)]()[_0x3b3a0d(0x3ad)](0x24)['substring'](0x2,0x8);}function _0x521e(){const _0x541bf5=['Error','SNAPSHOT_INVALID_SNAPSHOT','DocSelectionManagerService','_assignedColors','rxjs','indexOf','application/json','_clearOtherTimers','type','YUUMI_AI_RUN_FAILED','RefRangeService','wsSessionTicketUrl','Injector','getMember','_colorAssignService','react','UniverCollaborationClientPlugin','1209840uaIvhR','sheetID','OFFLINE','UniverCollaborationClientUIPlugin','OnLineSingle','_localeService','code','Shape','runId','startsWith','SheetsSelectionsService','filter','getSheetObject','svg','getUnitId','none','contains','send','bottom','_textBubble','yellow.400','CHANGESET_REVISION_CONFILICT','@univerjs/network','_anchor','getColorFromTheme','handleMoveRange','mergeOverrideWithDependencies','map','on-line-single_clip0_910_349','_unitOnClients','defs','getCoordByCell','dispose$','ICommandService','registerDependencies','getDocRanges','CollaborationDataLoaderController','_cursors','DocStateChangeManagerService','_selfUnitIDs','serializeRangeWithSheet','_colorIndex','CollaborationSocketService','registerBeforeClose','getFocusedUnit','width','389550CuABsV','top','save','DEFAULT_WS_SESSION_TICKET_URL','pushState','_entities','lineTo','takeUntil','jsx','set','TOO_MANY_REQUESTS','apply','@univerjs/ui','_config','DeleteRangeMoveUpCommandId','collabStatus.notCollab','_range','entityInit$','115riPjNm','MOBILE_HAS_BEEN_BOUND','_scene','Plugin','Vector2','WebBrowserSingleActiveUnitService','setInterval','use','CollaborationUIEventService','currentColor','registerRefRange','LICENSE_DISTRO_REJECTED','_renderManagerService','_handleHeartbeatEvent','getSheetId','TEXT_RANGE_LAYER_INDEX','editingUnit','unit','selection','from','with','prototype','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getViewport','getOwnPropertySymbols','transformRemoteChangeset','sheetId','error','tag','setConfig','Disposable','INVITE_CODE_ALREADY_BOUND','cursorInfo','getCellPositionByOffset','get','UNDEFINED','toString','univer-flex\x20univer-mr-2\x20univer-text-xl','textRanges','Tools','activeSheet$','UNRECOGNIZED','getTypeOfUnitDisposed$','executeCommand','APPLY_DUPLICATED','LICENSE_MAX_UNITS_EXCEEDED','origin','transformMutation','RemoveRowCommandId','requireSession','FromArray','transformIMECache','@univerjs/sheets-ui','M0\x200H16V16H0z','MemberService','length','_getSaveTimeout','_logService','ILocalCacheService','getRenderById','generateRandomId','_updateCollabCursors','undoState','_transformUndoRedoStack','switchMap','assign','_roomMembers$','IUniverInstanceService','_onCursorUpdate','_initResize','useCallback','ONLINE','collab-text-anchor-','_removeClearOtherTimer','DOC_RANGE_TYPE','green.600','@univerjs/docs','NOT_FOUND','roomMembers','string','_shapes','defineProperty','popstate','_heartbeatTimer','measureText','unsubscribe','disposeUnit','_docTransformIMECacheService','forwardRef','collab-rect-range-','AWAITING','_onCursorDelete','debounceTime','ITransformService','_backgroundColor','data','unload','ranges','0\x200\x2016\x2016','/run/','getActiveSheet','YUUMI_SUBSCRIPTION_NOT_FOUND','_cursorInfo$','YUUMI_ALL_TABLES_IS_INVALID','next','_urlService','jsxs','_collabCursorController','LICENSE_EXPORT_SIZE_EXCEEDED','selections','_cursor','_toggleOffline','roomMembers$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','row','_registerRenderDependencies','_getSheetObject','MoveRangeCommandId','COMPLETION_FINISHED','rgba(255,\x20255,\x20255,\x200.01)','useDependency','MUTATION','CLOSE_ROOM','_commandService','m2Prime','getActiveRange','DesktopCollaborationStatusDisplayController','arc','path','CollaborationUIEventId','Workbook','_startSheetCollabCursor','Failed','@univerjs/engine-formula','EMAIL_HAS_BEEN_BOUND','createInstance','INVALID_INVITE_CODE','symbol','SHEET_VIEWPORT_KEY','IConfigService','@univerjs-pro/collaboration-client','_docSyncEditingCollabCursorService','getSheetBySheetId','Warning','SessionStatus','div','fromEventSubject','[CollaborationDataLoaderController]','isEditing','setItem','registerRenderModule','height','mutations','min','event$','collab-text-range-','getColor','toRgbString','BrowserCollaborationSocketService','TEXT','onMouseMove','isTransformMutationsWithChangesetSuccess','backgroundColor','RegularPolygon','_docClipboardService','APPLY_REJECT','some','SetWorksheetActivateCommand','_updateSubUnitFromURLParams','handleInsertCol','_initCommandExecutedListener','entries','_initDependencies','params','_getAnchorBounding','assignAColorForMemberID','subscribe','createElement','xlink:href','_session','deserializeRangeWithSheet','INVITE_CODE_REQUIRED','_render','_disabled','handleInsertRangeMoveRight','imageSourceType','forEach','_online','IImageIoService','WebURLService','Unknown\x20user','dispose','reconnect','setShapeProps','_color','call','_send','_setupSubUnitSync','actions','YUUMI_UNABLE_LOAD_URL','_labelPosition','exhaustSavingTask','includes','_startDocCollabCursor','hovered','SetDocZoomRatioOperation','column','EffectRefRangId','currentTheme$','skeleton','DataLoaderService','#FFF','fill','DocSkeletonManagerService','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','YUUMI_TABLE_NOT_FOUND_IN_UNIT','Rect','getParam','0\x200\x2017\x2016','YUUMI_RATE_OVER_LIMIT','extend','collaboration-client-ui.config','touchDependencies','findNodePositionByCharIndex','handleIRemoveCol','values','hasOwnProperty','deepClone','UPDATE_CURSOR','_configService','CollaborationEvent','IURLService','url(#on-line-single_clip0_910_349)','_univerInstanceService','fillRule','_collabSessionService','_createSocketURL','fillText','_removeCollabCursors','UNAUTHENTICATED','show','subUnitId','_toggleOnline','DocCollaborationEntity','text','_scheduleSaving','split','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','resize','_dataLoaderService','off-line-single','className','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_httpService','UNIVER_SHEET','_updateURLWithCurrentState','source','onLocalMutation','LICENSE_IMPORT_SIZE_EXCEEDED','delete','transformSelections','NOT_COLLAB','asObservable','ALREADY_EXISTS','endRow','JOIN_ROOM_FAILED','getValue','_notificationService','_getScale','fromEvent','ACTIVE_UNIT_EVENT_CHANNEL','override','PY_RUNTIME_SCRIPT_ERROR','_handleLeaveEvent','_hover','then','color','defIds','transform','ColorKit','all','throttleTime','propertyIsEnumerable','RemoteUniscriptService','setStateCache','_updateLocalCursor','off-line-single_clip0_910_343','useObservable','_onRefRangeChange','611468JSVKZo','_handleEvent','_docStateChangeManagerService','RevisionService','has','26766tpwfuW','mask','icon','_collaborationUIEventService','setActiveRange','getMemberID','_saveCache','push','_initEntityListener','onStarting','IRemoteInstanceService','transformMutationsWithChangeset','name','getUndoRedoMutationParamsCache','merge','onCommandExecuted','executionId','onRendered','setUndoRedoMutationParamsCache','random','sessionStatus$','onPointerLeave$','_transformPreviousActiveRange','YUUMI_ASYNCIO_CANCELLED','CollaborationSessionService','_status$','_hideTimer','handleIRemoveRow','_handleHover','MessageType','collabStatus.synced','BuiltInUIPart','2471139WFwlvt','HEADER_MENU','rxjs/operators','loadUnit','_handleJoinEvent','collabCursorState$','UniverIcon','replace','ThemeService','debounce','children','getRelativeToViewportCoord','_cachedData','SNAPSHOT_HAS_BEEN_REMOVED','_id','addObjects','155090HjFAdt','blue.400','IDocClipboardService','ENSURE_SNAPSHOT_EXECUTION','COLORS','key','VIEW_MAIN','_docTransformSelectionsService','attrs','clearTimeout','OTHER_CLIENTS_EDITING','_document','doc.mutation.rich-text-editing','stringify','LocaleService','cursorInfo$','collabStatus.syncing','font','_ensureSubject','isTransformMutationFailure','univer-flex\x20univer-items-center','_getSessionTicket','_registerDependencies','collab-client.tooltip.reconnect','_refreshCollabCursors','Module','Rectangle','parse','_messageService','_eventUnsubscribe','add','memberID','_themeService','_hovered','getOffsetConfig','_revisionService','loadOfflineData','restore','registerComponent','_unitStatus','labelPosition','displayName','NodePositionConvertToRectRange','urlChange$','getVpScrollXYInfoByPosToVp','_docTransformStateCacheService','redoState','clsx','CollaborationStatusDisplay','disposeWithMe','currentSkeleton$','uni.network.url-service','eventID','1em','max','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collaborationController','NO_OTHER_CLIENTS_EDITING','toDisposable','getStateCache','APPLY_PERMISSION_DENIED','endColumn','drawWith','handleInsertRow','IBeforeCloseService','PERMISSION_DENIED','INVITE_CODE_HAS_BEEN_UES','combineLatest','_context','collabStatus.offline','getConfig','getCurrentUnitForType','round','UNIVER_DOC','_injector','subscribeEvent','newValue','_scheduleHeartbeat','replaceState','unitId','replaceDocRanges','getRangePointData','_localStorageService','clearInterval','_doCreateSocket','Inject','unshift','focused$','range','_entityInit$','APPLY_REVISION_CONFILICT','InsertRangeMoveDownCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RemoveColCommandId','collabStatus.fetchMiss','search','_name','SheetSkeletonManagerService','SetTextSelectionsOperation','_localCacheService','ILogService','USER_NOT_INVITED_CODE','searchParams','size','saveTaskMap','url(#off-line-single_clip0_910_343)','INVALID_ARGUMENT','CollaborationController','_initStatusComponent','collaboration.closeRoom','_saveTaskMap','session.collaboration-timeout','complete','_init','YUUMI_URL_COL_OUT_OF_RANGE','enableLocalCache','_initStatusListener','collaboration.single-unit.warning','getUniverSheetInstance','OffLineSingle','addEventListener','getCurrentRevOfUnit','_refRangeService','init','IMessageService','createSocket','_syncEditingCollabCursorService','_drawRectRange','_transformHistoryAndStateStack','UniverInstanceType','removeParam','react/jsx-runtime','Subject','RECT','DocIMEInputManagerService','_instanceService','_drawTextRange','setParam','DependentOn','UnitStatus','getSkeleton','...','_cursorShapes','addClipboardHook','runRefRangeMutations','getOwnPropertyDescriptor','InsertRangeMoveRightCommandId','CollaborationStatus','#fff','SUBMIT_CHANGESET_TIMEOUT','subunit','_imageIoService','black','@univerjs/engine-render','getCollabCursors$','getLocalCacheKey','_memberService','permission.content','CONNECTOR_DATA_TOO_LARGE','unitID','_transformService','pluginName','SetSelectionsOperation','SOCKET_FAILED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','red.300','history','triggerDblclick','addObject','runOnServer','APPLY_NON_SEQUENTIAL_REVISION','@univerjs/rpc','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','location','beginPath','concat','INTERNAL_ERROR','url(#$1','translate(.97)','getTypeOfUnitAdded$','IUIPartsService','session.will-retry','body','idSuffix','evenodd','SOCKET_FAILED_RETRY','pipe','USERS_LEAVE','3vgZlvZ','purple.300','ISocketService','debug','HTTPService','_collabCursorState$','transformStateCache','ILocalStorageService','m1Prime','RxDisposable','_docSkeletonManagerService','permission.title','_anchorDot','_sheetSkeletonManagerService','_draw','IRenderManagerService','getAncestorScale','href','AWAITING_WITH_PENDING','WECHAT_HAS_BEEN_BOUND','_initEvent','ticket','setTimeout','_scheduleClearOtherTimer','onPointerEnter$','BehaviorSubject','colorChannel1','73874BbmpOM','_getMergeRange','shareReplay','onPointerMove$','syncEditingCollabCursor'];_0x521e=function(){return _0x541bf5;};return _0x521e();}pe[_0xa015b6(0x285)]=_0xa015b6(0x252);var Ut={'tag':_0xa015b6(0x356),'attrs':{'fill':_0xa015b6(0x358),'viewBox':_0xa015b6(0x3eb),'width':_0xa015b6(0x291),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xa015b6(0x2c5)},'children':[{'tag':_0xa015b6(0x409),'attrs':{'stroke':'currentColor','d':_0xa015b6(0x45f),'strokeLinecap':_0xa015b6(0x2a4),'strokeLinejoin':_0xa015b6(0x2a4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xa015b6(0x224)},'children':[{'tag':'path','attrs':{'fill':_0xa015b6(0x2f0),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xa015b6(0x224)]},ye=M[_0xa015b6(0x3e1)](function(_0x1fc1de,_0x31d760){const _0x4d997b=_0xa015b6;return M[_0x4d997b(0x43a)](pe,Object[_0x4d997b(0x3ca)]({},_0x1fc1de,{'id':_0x4d997b(0x200),'ref':_0x31d760,'icon':Ut}));});ye[_0xa015b6(0x285)]=_0xa015b6(0x2d3);var Nt={'tag':_0xa015b6(0x356),'attrs':{'fill':'none','viewBox':_0xa015b6(0x463),'width':_0xa015b6(0x291),'height':_0xa015b6(0x291)},'children':[{'tag':'g','attrs':{'clipPath':_0xa015b6(0x1ee)},'children':[{'tag':'path','attrs':{'stroke':_0xa015b6(0x392),'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':_0xa015b6(0x2a4),'strokeLinejoin':_0xa015b6(0x2a4),'strokeWidth':1.2}}]},{'tag':_0xa015b6(0x367),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xa015b6(0x365)},'children':[{'tag':_0xa015b6(0x409),'attrs':{'fill':'#fff','d':_0xa015b6(0x3be),'transform':_0xa015b6(0x30e)}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0xa015b6(0x3e1)](function(_0x4cd623,_0x19ce1e){const _0x21626f=_0xa015b6;return M[_0x21626f(0x43a)](pe,Object['assign']({},_0x4cd623,{'id':'on-line-single','ref':_0x19ce1e,'icon':Nt}));});$e['displayName']=_0xa015b6(0x34d);function Mt(_0x58e753){const _0x7b1b26=_0xa015b6;switch(_0x58e753){case u[_0x7b1b26(0x2ef)][_0x7b1b26(0x34b)]:return _0x7b1b26(0x2a1);case u[_0x7b1b26(0x2ef)]['CONFLICT']:return'collabStatus.conflict';case u[_0x7b1b26(0x2ef)]['FETCH_MISS']:return _0x7b1b26(0x2ba);case u['CollaborationStatus'][_0x7b1b26(0x20b)]:return _0x7b1b26(0x386);case u[_0x7b1b26(0x2ef)][_0x7b1b26(0x3e3)]:case u[_0x7b1b26(0x2ef)][_0x7b1b26(0x32a)]:return _0x7b1b26(0x26c);case u[_0x7b1b26(0x2ef)]['SYNCED']:case u['CollaborationStatus']['PENDING']:return _0x7b1b26(0x24a);}}function xe(_0x3239ea){const _0x2e3ac8=_0xa015b6,{status$:_0x2cfe53}=_0x3239ea,_0x4f9b4d=T[_0x2e3ac8(0x225)](_0x2cfe53,u['CollaborationStatus'][_0x2e3ac8(0x20b)]),_0xed85bc=T[_0x2e3ac8(0x401)](a[_0x2e3ac8(0x26a)]),_0x4bddc7=T[_0x2e3ac8(0x401)](u['CollaborationSessionService']),_0x22e187=_0x4f9b4d!==u['CollaborationStatus'][_0x2e3ac8(0x34b)],_0x34871b=_0xed85bc['t'](Mt(_0x4f9b4d)),_0x2e4c79=_0x22e187?P['jsx']($e,{}):P[_0x2e3ac8(0x37f)](ye,{}),_0x4d507f=M[_0x2e3ac8(0x3cf)](()=>{const _0x548406=_0x2e3ac8;_0x22e187||_0x4bddc7[_0x548406(0x449)]();},[_0x22e187,_0x4bddc7]);function _0x4a506b(){const _0x1b9c49=_0x2e3ac8;return P[_0x1b9c49(0x3f3)](_0x1b9c49(0x41a),{'className':_0x1b9c49(0x270),'onClick':_0x4d507f,'children':[P[_0x1b9c49(0x37f)]('div',{'className':D[_0x1b9c49(0x28b)](_0x1b9c49(0x3ae),{'univer-text-green-500':_0x22e187,'univer-text-red-500':!_0x22e187}),'children':_0x2e4c79}),P[_0x1b9c49(0x37f)](_0x1b9c49(0x41a),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:univer-text-gray-200','children':_0x34871b})]});}return _0x22e187?_0x4a506b():P[_0x2e3ac8(0x37f)](D['Tooltip'],{'title':_0xed85bc['t'](_0x2e3ac8(0x273)),'children':_0x4a506b()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x4b4541,_0x3356df,_0x36bed3,_0x56b529)=>{const _0x568610=_0xa015b6;for(var _0x2b302e=_0x56b529>0x1?void 0x0:_0x56b529?Lt(_0x3356df,_0x36bed3):_0x3356df,_0xa414ca=_0x4b4541[_0x568610(0x3c0)]-0x1,_0x58a32d;_0xa414ca>=0x0;_0xa414ca--)(_0x58a32d=_0x4b4541[_0xa414ca])&&(_0x2b302e=_0x58a32d(_0x2b302e)||_0x2b302e);return _0x2b302e;},V=(_0x586daa,_0x2d6156)=>(_0x5f059d,_0x4aeb33)=>_0x2d6156(_0x5f059d,_0x4aeb33,_0x586daa);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x4b4353,_0x430e8d,_0x2dd267,_0xfa1076){const _0x548836=_0xa015b6;super(),h(this,_0x548836(0x245),new d['BehaviorSubject'](u['CollaborationStatus'][_0x548836(0x20b)])),(this[_0x548836(0x1ef)]=_0x4b4353,this[_0x548836(0x2a6)]=_0x430e8d,this[_0x548836(0x294)]=_0x2dd267,this['_uiPartsService']=_0xfa1076,this[_0x548836(0x2c8)](),this[_0x548836(0x2d0)]());}[_0xa015b6(0x2d0)](){const _0x2f98b6=_0xa015b6;this[_0x2f98b6(0x28d)](this[_0x2f98b6(0x1ef)][_0x2f98b6(0x2b3)][_0x2f98b6(0x316)](d[_0x2f98b6(0x3c9)](()=>{const _0xd0fb56=_0x2f98b6,_0x31f63f=this[_0xd0fb56(0x1ef)][_0xd0fb56(0x375)]();return _0x31f63f?this[_0xd0fb56(0x294)]['getCollabEntity$'](_0x31f63f['getUnitId']()):d['of'](null);}),d['switchMap'](_0x3555a2=>_0x3555a2?_0x3555a2['status$']:d['of'](u[_0x2f98b6(0x2ef)][_0x2f98b6(0x20b)])))['subscribe'](_0xa67ae8=>{const _0x3e01ee=_0x2f98b6;this[_0x3e01ee(0x245)]['next'](_0xa67ae8);}));}[_0xa015b6(0x2c8)](){const _0x537bbc=_0xa015b6;this['disposeWithMe'](this['_uiPartsService'][_0x537bbc(0x282)](T[_0x537bbc(0x24b)][_0x537bbc(0x24d)],()=>T['connectInjector'](At({'status$':this[_0x537bbc(0x245)]['asObservable']()}),this[_0x537bbc(0x2a6)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0xa015b6(0x3cc)]),V(0x1,a['Inject'](a[_0xa015b6(0x344)])),V(0x2,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x2c7)])),V(0x3,T[_0xa015b6(0x310)])],exports[_0xa015b6(0x407)]);function At(_0x44603e){const {status$:_0x2b61dc}=_0x44603e;return function(){const _0x247c09=_0x407d;return P[_0x247c09(0x37f)](xe,{'status$':_0x2b61dc});};}var wt=Object[_0xa015b6(0x2ed)],yt=(_0x42ce73,_0x9916f8,_0x1bb036,_0x82190c)=>{const _0x34fe4a=_0xa015b6;for(var _0x5c35de=_0x82190c>0x1?void 0x0:_0x82190c?wt(_0x9916f8,_0x1bb036):_0x9916f8,_0x3f87f3=_0x42ce73[_0x34fe4a(0x3c0)]-0x1,_0x19f0a8;_0x3f87f3>=0x0;_0x3f87f3--)(_0x19f0a8=_0x42ce73[_0x3f87f3])&&(_0x5c35de=_0x19f0a8(_0x5c35de)||_0x5c35de);return _0x5c35de;},y=(_0x28ebae,_0x48e3f7)=>(_0x4de292,_0xdbb5f6)=>_0x48e3f7(_0x4de292,_0xdbb5f6,_0x28ebae);let q=class extends a[_0xa015b6(0x3a7)]{constructor(_0x1cf3fd,_0x15c5fb,_0x4b2989,_0xcad40c,_0x16e72f,_0x2b32b3){const _0x157e5b=_0xa015b6;super(),this['_beforeCloseService']=_0x1cf3fd,this[_0x157e5b(0x2bf)]=_0x15c5fb,this[_0x157e5b(0x22f)]=_0x4b2989,this[_0x157e5b(0x278)]=_0xcad40c,this[_0x157e5b(0x211)]=_0x16e72f,this[_0x157e5b(0x34e)]=_0x2b32b3,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x19f2b5=_0xa015b6;this['disposeWithMe'](this['_beforeCloseService'][_0x19f2b5(0x374)](()=>{const _0x507eb2=_0x19f2b5;if(this[_0x507eb2(0x2bf)][_0x507eb2(0x2c4)][_0x507eb2(0x2c3)])return this[_0x507eb2(0x34e)]['t']('collaboration-client.offline-data-not-saved');}));}[_0xa015b6(0x32c)](){const _0x162be6=_0xa015b6;this[_0x162be6(0x28d)](this[_0x162be6(0x22f)][_0x162be6(0x423)][_0x162be6(0x439)](_0x24b02d=>{const _0x3eb66b=_0x162be6;_0x24b02d['id']===u[_0x3eb66b(0x40a)]['OTHER_CLIENT_EDITING']&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)]['Warning'],'content':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x2d1))}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x403)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x418)],'content':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x2c9))}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x29d)]&&this['_notificationService']['show']({'title':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x323)),'content':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x2f9)),'type':_0x3eb66b(0x3a4),'duration':0x0}),_0x24b02d['id']===u[_0x3eb66b(0x40a)]['CONFLICT']&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x338)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x24b02d['data']+')'}),_0x24b02d['id']===u['CollaborationUIEventId'][_0x3eb66b(0x20f)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x418)],'content':this[_0x3eb66b(0x34e)]['t'](_0x24b02d['data']||'')}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x315)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x418)],'content':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x311))}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x2ff)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x338)],'content':this[_0x3eb66b(0x34e)]['t']('session.connection-failed')}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x2f1)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x338)],'content':this['_localeService']['t'](_0x3eb66b(0x2cb))});}));}};q=yt([y(0x0,T[_0xa015b6(0x29c)]),y(0x1,u[_0xa015b6(0x3c3)]),y(0x2,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x391)])),y(0x3,T[_0xa015b6(0x2d8)]),y(0x4,T['INotificationService']),y(0x5,a[_0xa015b6(0x2b1)](a['LocaleService']))],q);const $t=_0xa015b6(0x466),Ue={},be=a['createIdentifier'](_0xa015b6(0x28f));var xt=Object['getOwnPropertyDescriptor'],jt=(_0x39e8ed,_0x3b180b,_0x1c724a,_0xa706e1)=>{for(var _0x1cf064=_0xa706e1>0x1?void 0x0:_0xa706e1?xt(_0x3b180b,_0x1c724a):_0x3b180b,_0x5d0282=_0x39e8ed['length']-0x1,_0x4fed44;_0x5d0282>=0x0;_0x5d0282--)(_0x4fed44=_0x39e8ed[_0x5d0282])&&(_0x1cf064=_0x4fed44(_0x1cf064)||_0x1cf064);return _0x1cf064;},H=(_0x39d314,_0x1ba110)=>(_0x1de990,_0x8e5c33)=>_0x1ba110(_0x1de990,_0x8e5c33,_0x39d314);exports['CollaborationDataLoaderController']=class extends a[_0xa015b6(0x321)]{constructor(_0x301a46,_0x24dcdb,_0x37259f,_0x338d53,_0x552fb){const _0x3d9a18=_0xa015b6;super(),this['_urlService']=_0x301a46,this[_0x3d9a18(0x3c2)]=_0x24dcdb,this[_0x3d9a18(0x404)]=_0x37259f,this[_0x3d9a18(0x1ff)]=_0x338d53,_0x552fb?_0x552fb==null||_0x552fb['whenReady']()[_0x3d9a18(0x219)](()=>this['_init']()):(this[_0x3d9a18(0x3c2)][_0x3d9a18(0x31b)](_0x3d9a18(0x41c),_0x3d9a18(0x3fa)),this[_0x3d9a18(0x2cd)]());}async[_0xa015b6(0x2cd)](){const _0x430d85=_0xa015b6,_0x45845a=this[_0x430d85(0x3f2)]['getParam']('unit'),_0x37a0d3=this[_0x430d85(0x3f2)][_0x430d85(0x462)](_0x430d85(0x340)),_0x3c4887=this['_urlService'][_0x430d85(0x462)]('subunit');if(!_0x45845a||!_0x37a0d3){this[_0x430d85(0x3c2)]['debug'](_0x430d85(0x41c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x335276=await this[_0x430d85(0x1ff)][_0x430d85(0x24f)](_0x45845a,Number(_0x37a0d3),_0x3c4887);_0x335276&&_0x335276 instanceof a[_0x430d85(0x40b)]&&this[_0x430d85(0x44e)](_0x335276);}async[_0xa015b6(0x44e)](_0x6a4f43){const _0x4680c8=_0xa015b6;await this[_0x4680c8(0x431)](_0x6a4f43),_0x6a4f43[_0x4680c8(0x3b1)][_0x4680c8(0x316)](d['takeUntil'](this[_0x4680c8(0x369)]))[_0x4680c8(0x439)](_0x477e1b=>{const _0x385218=_0x4680c8;_0x477e1b&&this[_0x385218(0x205)](_0x477e1b);}),this['_urlService'][_0x4680c8(0x287)][_0x4680c8(0x316)](d['takeUntil'](this[_0x4680c8(0x369)]))[_0x4680c8(0x439)](()=>this[_0x4680c8(0x431)](_0x6a4f43));}['_updateURLWithCurrentState'](_0x857772,_0x31c3fd=!0x1){const _0x712c8d=_0xa015b6,_0x5aa6ee=this['_urlService'][_0x712c8d(0x462)](_0x712c8d(0x2f2));_0x857772[_0x712c8d(0x397)]()!==_0x5aa6ee&&this[_0x712c8d(0x3f2)]['setParam'](_0x712c8d(0x2f2),_0x857772[_0x712c8d(0x397)](),_0x31c3fd);}async[_0xa015b6(0x431)](_0x1852c1){const _0x36314e=_0xa015b6;var _0x26c139;const _0x2560d2=this[_0x36314e(0x3f2)][_0x36314e(0x462)](_0x36314e(0x2f2));if(!_0x2560d2||!_0x1852c1[_0x36314e(0x417)](_0x2560d2)){const _0x4bcf38=_0x1852c1['getUnhiddenWorksheets']()[0x0],_0x5cc202=_0x1852c1[_0x36314e(0x417)](_0x4bcf38);if(!_0x5cc202)return;this[_0x36314e(0x205)](_0x5cc202,!0x0),await this[_0x36314e(0x404)]['executeCommand'](g[_0x36314e(0x430)]['id'],{'unitId':_0x1852c1['getUnitId'](),'subUnitId':_0x4bcf38});return;}((_0x26c139=_0x1852c1[_0x36314e(0x3ed)]())==null?void 0x0:_0x26c139['getSheetId']())!==_0x2560d2&&await this[_0x36314e(0x404)][_0x36314e(0x3b4)](g[_0x36314e(0x430)]['id'],{'unitId':_0x1852c1[_0x36314e(0x357)](),'subUnitId':_0x2560d2});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0xa015b6(0x2c0)]),H(0x2,a[_0xa015b6(0x36a)]),H(0x3,a['Inject'](u[_0xa015b6(0x45b)])),H(0x4,a['Optional'](Ke[_0xa015b6(0x236)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0xa015b6(0x2ed)],kt=(_0x2c2879,_0x36c08c,_0xeb0cf2,_0x449806)=>{const _0x77b62=_0xa015b6;for(var _0x59224f=_0x449806>0x1?void 0x0:_0x449806?Bt(_0x36c08c,_0xeb0cf2):_0x36c08c,_0x2ac157=_0x2c2879[_0x77b62(0x3c0)]-0x1,_0x5d08d5;_0x2ac157>=0x0;_0x2ac157--)(_0x5d08d5=_0x2c2879[_0x2ac157])&&(_0x59224f=_0x5d08d5(_0x59224f)||_0x59224f);return _0x59224f;},ce=(_0x13d966,_0xfbc157)=>(_0x5d45c2,_0x5305f4)=>_0xfbc157(_0x5d45c2,_0x5305f4,_0x13d966);let z=class{constructor(_0x23e2c3,_0x2490eb,_0x90a3d4){const _0x56a67f=_0xa015b6;this[_0x56a67f(0x2a6)]=_0x23e2c3,this[_0x56a67f(0x2fc)]=_0x2490eb,this[_0x56a67f(0x395)]=_0x90a3d4;}[_0xa015b6(0x3bc)](_0x25fbd0){const _0xde1870=_0xa015b6;this[_0xde1870(0x3c8)](_0x25fbd0),this[_0xde1870(0x242)](_0x25fbd0);}[_0xa015b6(0x3a2)](_0x356710){const _0x5654e7=_0xa015b6,{unitID:_0x22da56}=_0x356710,_0x2b97ca=this['_renderManagerService'][_0x5654e7(0x3c4)](_0x22da56)[_0x5654e7(0x39d)](b[_0x5654e7(0x2e2)]),{redoCache:_0xf03e97}=_0x2b97ca[_0x5654e7(0x239)]();if(_0xf03e97[_0x5654e7(0x3c0)]===0x0)return _0x356710;let _0x383eaf=a[_0x5654e7(0x3b0)]['deepClone'](_0x356710['mutations'][0x0]);for(let _0x3f3da3=0x0;_0x3f3da3<_0xf03e97[_0x5654e7(0x3c0)];_0x3f3da3++){const _0x274e4d={'id':'doc.mutation.rich-text-editing','params':{..._0xf03e97[_0x3f3da3]}},_0x398287=this[_0x5654e7(0x2fc)][_0x5654e7(0x3b8)](_0x383eaf,_0x274e4d,!0x1);if(m['isTransformMutationFailure'](_0x398287))throw _0x398287['error'];_0x383eaf=_0x398287[_0x5654e7(0x320)];}return{...a[_0x5654e7(0x3b0)][_0x5654e7(0x1e9)](_0x356710),'mutations':[_0x383eaf]};}[_0xa015b6(0x3c8)](_0x30c672){const _0x3ed8ea=_0xa015b6,{unitID:_0x317c5b}=_0x30c672,_0x264d3d=this[_0x3ed8ea(0x395)]['getRenderById'](_0x317c5b)[_0x3ed8ea(0x39d)](b[_0x3ed8ea(0x2e2)]),{undoCache:_0x50e7df,redoCache:_0x2471bc}=_0x264d3d[_0x3ed8ea(0x239)]();if(_0x50e7df[_0x3ed8ea(0x3c0)]===0x0||_0x2471bc[_0x3ed8ea(0x3c0)]===0x0)return;const _0xa4a72d=[],_0x2d7b16=[];let _0x2a45b0=a[_0x3ed8ea(0x3b0)][_0x3ed8ea(0x1e9)](_0x30c672['mutations'][0x0]),_0x2dfe0=a[_0x3ed8ea(0x3b0)][_0x3ed8ea(0x1e9)](_0x30c672[_0x3ed8ea(0x421)][0x0]);for(let _0x51fe5f=_0x50e7df['length']-0x1;_0x51fe5f>=0x0;_0x51fe5f--){const _0x39fa22={'id':_0x3ed8ea(0x268),'params':{..._0x50e7df[_0x51fe5f]}},_0x21be2a={'id':_0x3ed8ea(0x268),'params':{..._0x2471bc[_0x51fe5f]}},_0x3a7247=this['_transformService'][_0x3ed8ea(0x3b8)](_0x2a45b0,_0x39fa22,!0x1),_0x3257ee=this[_0x3ed8ea(0x2fc)][_0x3ed8ea(0x3b8)](_0x2dfe0,_0x21be2a,!0x1);if(m[_0x3ed8ea(0x26f)](_0x3a7247))throw _0x3a7247[_0x3ed8ea(0x3a4)];if(m[_0x3ed8ea(0x26f)](_0x3257ee))throw _0x3257ee[_0x3ed8ea(0x3a4)];_0xa4a72d[_0x3ed8ea(0x2b2)](_0x3a7247[_0x3ed8ea(0x405)][_0x3ed8ea(0x436)]),_0x2d7b16[_0x3ed8ea(0x2b2)](_0x3257ee['m2Prime']['params']),_0x2a45b0=_0x3a7247[_0x3ed8ea(0x320)],_0x2dfe0=_0x3257ee[_0x3ed8ea(0x320)];}_0x264d3d[_0x3ed8ea(0x23e)]({'undoCache':_0xa4a72d,'redoCache':_0x2d7b16});}[_0xa015b6(0x242)](_0x175b09){const _0x50d895=_0xa015b6,{unitID:_0x3ee1ba}=_0x175b09,_0x571e05=this[_0x50d895(0x395)][_0x50d895(0x3c4)](_0x3ee1ba)[_0x50d895(0x39d)](b[_0x50d895(0x2e2)]),_0x73d417=_0x571e05[_0x50d895(0x406)]();if(_0x73d417==null)return;const _0x430bef=[{'id':_0x50d895(0x268),'params':{'unitId':_0x175b09['unitID'],'actions':null,'textRanges':[_0x73d417]}}],_0x216b6a=this['_transformService'][_0x50d895(0x237)](_0x175b09,_0x430bef);if(!m['isTransformMutationsWithChangesetSuccess'](_0x216b6a))throw _0x216b6a[_0x50d895(0x3a4)];const _0x477f76=_0x216b6a[_0x50d895(0x405)][0x0][_0x50d895(0x436)]['textRanges'];Array['isArray'](_0x477f76)&&_0x477f76[_0x50d895(0x3c0)]&&_0x571e05[_0x50d895(0x230)](_0x477f76[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0xa015b6(0x344)])),ce(0x1,m[_0xa015b6(0x3e6)]),ce(0x2,p[_0xa015b6(0x327)])],z);var Ht=Object[_0xa015b6(0x2ed)],Ft=(_0x30fc2e,_0xd163ab,_0x318554,_0x32da2c)=>{const _0x37ca30=_0xa015b6;for(var _0x2f7e4f=_0x32da2c>0x1?void 0x0:_0x32da2c?Ht(_0xd163ab,_0x318554):_0xd163ab,_0x4ea745=_0x30fc2e[_0x37ca30(0x3c0)]-0x1,_0x55c25e;_0x4ea745>=0x0;_0x4ea745--)(_0x55c25e=_0x30fc2e[_0x4ea745])&&(_0x2f7e4f=_0x55c25e(_0x2f7e4f)||_0x2f7e4f);return _0x2f7e4f;},le=(_0x39f00b,_0x42b67d)=>(_0x3ca0cc,_0x39aef9)=>_0x42b67d(_0x3ca0cc,_0x39aef9,_0x39f00b);let J=class{constructor(_0x4c6a30,_0x9f0470,_0x47afbb){const _0x3eb43e=_0xa015b6;this['_injector']=_0x4c6a30,this[_0x3eb43e(0x2fc)]=_0x9f0470,this[_0x3eb43e(0x229)]=_0x47afbb;}[_0xa015b6(0x31e)](_0x26757f){const _0x57da50=_0xa015b6;this[_0x57da50(0x2dc)](_0x26757f);}[_0xa015b6(0x3a2)](_0x4d8820){const _0x4db135=_0xa015b6,{unitID:_0x478d92}=_0x4d8820,{collaboration:_0x113f5e}=this[_0x4db135(0x229)][_0x4db135(0x297)](_0x478d92);if(_0x113f5e[_0x4db135(0x3c0)]===0x0)return _0x4d8820;let _0x607ea6=a['Tools'][_0x4db135(0x1e9)](_0x4d8820[_0x4db135(0x421)][0x0]);for(let _0x206b21=0x0;_0x206b21<_0x113f5e[_0x4db135(0x3c0)];_0x206b21++){const _0xde8319={'id':_0x4db135(0x268),'params':{'unitId':_0x113f5e[_0x206b21][_0x4db135(0x2ab)],..._0x113f5e[_0x206b21][_0x4db135(0x28a)]}},_0x4250c4=this['_transformService'][_0x4db135(0x3b8)](_0x607ea6,_0xde8319,!0x1);if(m['isTransformMutationFailure'](_0x4250c4))throw _0x4250c4[_0x4db135(0x3a4)];_0x607ea6=_0x4250c4['m1Prime'];}return{...a[_0x4db135(0x3b0)][_0x4db135(0x1e9)](_0x4d8820),'mutations':[_0x607ea6]};}[_0xa015b6(0x2dc)](_0x9295de){const _0xa7162f=_0xa015b6,{unitID:_0x3a42c6}=_0x9295de,{history:_0x97592f,collaboration:_0xd2724f}=this[_0xa7162f(0x229)][_0xa7162f(0x297)](_0x3a42c6);if(_0x97592f['length']===0x0&&_0xd2724f[_0xa7162f(0x3c0)]===0x0)return;const _0x1e236=[],_0x40079c=[];let _0x3e8ebd=a[_0xa7162f(0x3b0)]['deepClone'](_0x9295de[_0xa7162f(0x421)][0x0]),_0x135c2b=a[_0xa7162f(0x3b0)][_0xa7162f(0x1e9)](_0x9295de[_0xa7162f(0x421)][0x0]);for(let _0x312690=_0x97592f[_0xa7162f(0x3c0)]-0x1;_0x312690>=0x0;_0x312690--){const _0x592515={'id':_0xa7162f(0x268),'params':{'unitId':_0x97592f[_0x312690]['unitId'],..._0x97592f[_0x312690][_0xa7162f(0x3c7)]}},_0x3899bc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x97592f[_0x312690]['unitId'],..._0x97592f[_0x312690][_0xa7162f(0x28a)]}},_0x7f04aa=this[_0xa7162f(0x2fc)][_0xa7162f(0x3b8)](_0x3e8ebd,_0x592515,!0x1),_0x5cb671=this[_0xa7162f(0x2fc)][_0xa7162f(0x3b8)](_0x135c2b,_0x3899bc,!0x1);if(m[_0xa7162f(0x26f)](_0x7f04aa))throw _0x7f04aa[_0xa7162f(0x3a4)];if(m[_0xa7162f(0x26f)](_0x5cb671))throw _0x5cb671[_0xa7162f(0x3a4)];_0x1e236[_0xa7162f(0x2b2)]({..._0x97592f[_0x312690],'undoState':_0x7f04aa[_0xa7162f(0x405)]['params'],'redoState':_0x5cb671['m2Prime'][_0xa7162f(0x436)]}),_0x3e8ebd=_0x7f04aa[_0xa7162f(0x320)],_0x135c2b=_0x5cb671['m1Prime'];}_0x3e8ebd=a[_0xa7162f(0x3b0)][_0xa7162f(0x1e9)](_0x9295de[_0xa7162f(0x421)][0x0]),_0x135c2b=a[_0xa7162f(0x3b0)][_0xa7162f(0x1e9)](_0x9295de[_0xa7162f(0x421)][0x0]);for(let _0x2ff903=_0xd2724f['length']-0x1;_0x2ff903>=0x0;_0x2ff903--){const _0x56f1ee={'id':_0xa7162f(0x268),'params':{'unitId':_0xd2724f[_0x2ff903][_0xa7162f(0x2ab)],..._0xd2724f[_0x2ff903]['undoState']}},_0x24181e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xd2724f[_0x2ff903][_0xa7162f(0x2ab)],..._0xd2724f[_0x2ff903][_0xa7162f(0x28a)]}},_0x520fcc=this[_0xa7162f(0x2fc)][_0xa7162f(0x3b8)](_0x3e8ebd,_0x56f1ee,!0x1),_0x445f4c=this['_transformService']['transformMutation'](_0x135c2b,_0x24181e,!0x1);if(m[_0xa7162f(0x26f)](_0x520fcc))throw _0x520fcc[_0xa7162f(0x3a4)];if(m[_0xa7162f(0x26f)](_0x445f4c))throw _0x445f4c['error'];_0x40079c[_0xa7162f(0x2b2)]({..._0xd2724f[_0x2ff903],'undoState':_0x520fcc[_0xa7162f(0x405)][_0xa7162f(0x436)],'redoState':_0x445f4c[_0xa7162f(0x405)][_0xa7162f(0x436)]}),_0x3e8ebd=_0x520fcc[_0xa7162f(0x320)],_0x135c2b=_0x445f4c[_0xa7162f(0x320)];}this['_docStateChangeManagerService'][_0xa7162f(0x222)](_0x3a42c6,{'history':_0x1e236,'collaboration':_0x40079c});}};J=Ft([le(0x0,a[_0xa015b6(0x2b1)](a['Injector'])),le(0x1,m[_0xa015b6(0x3e6)]),le(0x2,a[_0xa015b6(0x2b1)](b[_0xa015b6(0x36f)]))],J);var Yt=Object[_0xa015b6(0x2ed)],Wt=(_0x27091d,_0x16e358,_0x3fe4b6,_0x1f92bb)=>{const _0xfb05a5=_0xa015b6;for(var _0x23f123=_0x1f92bb>0x1?void 0x0:_0x1f92bb?Yt(_0x16e358,_0x3fe4b6):_0x16e358,_0x2258ec=_0x27091d[_0xfb05a5(0x3c0)]-0x1,_0x95cfba;_0x2258ec>=0x0;_0x2258ec--)(_0x95cfba=_0x27091d[_0x2258ec])&&(_0x23f123=_0x95cfba(_0x23f123)||_0x23f123);return _0x23f123;},Ne=(_0x22c460,_0x24b852)=>(_0xd9a09e,_0x4d5fe7)=>_0x24b852(_0xd9a09e,_0x4d5fe7,_0x22c460);let Z=class{constructor(_0xafd3d2,_0x5b3bd0){const _0x5b0c62=_0xa015b6;this[_0x5b0c62(0x2a6)]=_0xafd3d2,this[_0x5b0c62(0x2fc)]=_0x5b3bd0;}[_0xa015b6(0x20a)](_0xf7c49c){const _0x53c1e2=_0xa015b6;var _0x4e24c6;const _0x7f2f4=this['_injector']['get'](Y[_0x53c1e2(0x33a)]),_0xfd4bf5=(_0x4e24c6=_0x7f2f4['getDocRanges']())!=null?_0x4e24c6:[];if(_0xfd4bf5[_0x53c1e2(0x3c0)]===0x0)return;const _0x10b388=_0xf7c49c[_0x53c1e2(0x2fb)],_0x4ba13e=[{'id':_0x53c1e2(0x268),'params':{'unitId':_0x10b388,'actions':null,'textRanges':_0xfd4bf5}}],_0x14fec8=this[_0x53c1e2(0x2fc)]['transformMutationsWithChangeset'](_0xf7c49c,_0x4ba13e);if(!m[_0x53c1e2(0x42a)](_0x14fec8))throw _0x14fec8[_0x53c1e2(0x3a4)];const _0x2138bf=_0x14fec8[_0x53c1e2(0x405)][0x0][_0x53c1e2(0x436)][_0x53c1e2(0x3af)];Array['isArray'](_0x2138bf)&&_0x2138bf[_0x53c1e2(0x3c0)]&&_0x7f2f4[_0x53c1e2(0x2ac)](_0x2138bf,{'unitId':_0x10b388,'subUnitId':_0x10b388},!0x1);}};Z=Wt([Ne(0x0,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0xa015b6(0x2ed)],Xt=(_0x436194,_0x5de943,_0x5ea72e,_0x8e5fb6)=>{const _0x3a7d6d=_0xa015b6;for(var _0x5432af=_0x8e5fb6>0x1?void 0x0:_0x8e5fb6?Vt(_0x5de943,_0x5ea72e):_0x5de943,_0x30bb88=_0x436194[_0x3a7d6d(0x3c0)]-0x1,_0x2328bc;_0x30bb88>=0x0;_0x30bb88--)(_0x2328bc=_0x436194[_0x30bb88])&&(_0x5432af=_0x2328bc(_0x5432af)||_0x5432af);return _0x5432af;},N=(_0x2c4d80,_0x47d9f8)=>(_0x10a1f9,_0x320e17)=>_0x47d9f8(_0x10a1f9,_0x320e17,_0x2c4d80);let Q=class extends a[_0xa015b6(0x3a7)]{constructor(_0x9cb1bb,_0x4c7b16,_0x1f626f,_0x173423,_0x44bdc9,_0x446d54,_0x47104f,_0x26b97b){const _0x5b8343=_0xa015b6;super(),h(this,_0x5b8343(0x245),new d[(_0x5b8343(0x331))](u[_0x5b8343(0x2ef)]['NOT_COLLAB'])),(this[_0x5b8343(0x229)]=_0x9cb1bb,this['_collaborationController']=_0x4c7b16,this[_0x5b8343(0x3e0)]=_0x1f626f,this['_docTransformStateCacheService']=_0x173423,this[_0x5b8343(0x263)]=_0x44bdc9,this[_0x5b8343(0x416)]=_0x446d54,this['_messageService']=_0x47104f,this[_0x5b8343(0x34e)]=_0x26b97b,this[_0x5b8343(0x234)]());}[_0xa015b6(0x234)](){const _0x9ab0d6=_0xa015b6;this['disposeWithMe'](this[_0x9ab0d6(0x294)][_0x9ab0d6(0x388)][_0x9ab0d6(0x439)](_0x3e35a0=>{const _0x1da26e=_0x9ab0d6,_0x425833=this[_0x1da26e(0x229)]['docStateChange$']['subscribe'](_0x128766=>{const _0x51091b=_0x1da26e;if(_0x128766==null)return;const {unitId:_0xfa2f9e,redoState:_0x443fdc,commandId:_0x4207f6}=_0x128766;if(_0xfa2f9e!==_0x3e35a0[_0x51091b(0x2fb)])return;const _0x9ba3b6={'id':_0x4207f6,'type':a['CommandType'][_0x51091b(0x402)],'params':{'unitId':_0xfa2f9e,'actions':_0x443fdc[_0x51091b(0x44f)],'textRanges':null}};_0x3e35a0[_0x51091b(0x207)](_0x9ba3b6);});if(_0x3e35a0[_0x1da26e(0x28d)](_0x425833),_0x3e35a0 instanceof u[_0x1da26e(0x1f9)]){const _0x175fa1={'onTransformIME':_0x539f0e=>this['_docTransformIMECacheService'][_0x1da26e(0x3bc)](_0x539f0e),'onTransformState':_0x2cb86a=>this[_0x1da26e(0x289)][_0x1da26e(0x31e)](_0x2cb86a),'onTransformSelections':_0x13d2c8=>this[_0x1da26e(0x263)][_0x1da26e(0x20a)](_0x13d2c8),'onSyncEditingCollabCursor':_0xb8e7f8=>this[_0x1da26e(0x416)][_0x1da26e(0x337)](_0xb8e7f8),'onTransformRemoteChangesetByIMECache':_0x35ea3f=>this[_0x1da26e(0x3e0)]['transformRemoteChangeset'](_0x35ea3f),'onTransformRemoteChangesetByStateCache':_0x489142=>this[_0x1da26e(0x289)][_0x1da26e(0x3a2)](_0x489142)};_0x3e35a0['addHandlerCallback'](_0x175fa1);}}));}};Q=Xt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x2c7)])),N(0x2,a[_0xa015b6(0x2b1)](z)),N(0x3,a[_0xa015b6(0x2b1)](J)),N(0x4,a[_0xa015b6(0x2b1)](Z)),N(0x5,a[_0xa015b6(0x2b1)](Ce)),N(0x6,T[_0xa015b6(0x2d8)]),N(0x7,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x26a)]))],Q);var Gt=Object[_0xa015b6(0x2ed)],Kt=(_0x5cb782,_0x228cc0,_0x4fb5cd,_0x157804)=>{const _0x3ebc48=_0xa015b6;for(var _0x53f729=_0x157804>0x1?void 0x0:_0x157804?Gt(_0x228cc0,_0x4fb5cd):_0x228cc0,_0x1fafa4=_0x5cb782[_0x3ebc48(0x3c0)]-0x1,_0x45ba8d;_0x1fafa4>=0x0;_0x1fafa4--)(_0x45ba8d=_0x5cb782[_0x1fafa4])&&(_0x53f729=_0x45ba8d(_0x53f729)||_0x53f729);return _0x53f729;},_e=(_0x11013e,_0x147bdb)=>(_0x3f3f0f,_0xc2e998)=>_0x147bdb(_0x3f3f0f,_0xc2e998,_0x11013e);let ge=class extends a['Disposable']{constructor(_0x58ed72,_0x16b9b2,_0x296654){const _0x2d6abb=_0xa015b6;super(),h(this,_0x2d6abb(0x258),new Map()),h(this,_0x2d6abb(0x2ca),new Map()),h(this,'_disabled',!0x1),(this[_0x2d6abb(0x1eb)]=_0x58ed72,this[_0x2d6abb(0x2ae)]=_0x16b9b2,this[_0x2d6abb(0x27f)]=_0x296654);}['disableLocalCache'](){const _0x575621=_0xa015b6;this[_0x575621(0x440)]=!0x0;}[_0xa015b6(0x2cf)](){const _0x371883=_0xa015b6;this[_0x371883(0x440)]=!0x1;}get[_0xa015b6(0x2c4)](){const _0x51ad8f=_0xa015b6;return this[_0x51ad8f(0x2ca)];}['dispose'](){const _0x4ef7b1=_0xa015b6;this[_0x4ef7b1(0x452)]()[_0x4ef7b1(0x219)](()=>super[_0x4ef7b1(0x448)]());}async[_0xa015b6(0x280)](_0x5dc5aa){const _0x278584=_0xa015b6;return this[_0x278584(0x440)]?null:this[_0x278584(0x2ae)]['getItem'](u[_0x278584(0x2f7)](_0x5dc5aa));}async['saveOfflineData'](_0x2897ee,_0x3dc561){const _0x1c1e1d=_0xa015b6;return!!this[_0x1c1e1d(0x2ae)][_0x1c1e1d(0x41e)](_0x2897ee,_0x3dc561);}['updateOfflineData'](_0x5b7f90,_0x3b832e,_0x15d2d5,_0x3073be){const _0x321935=_0xa015b6,_0x522414=this[_0x321935(0x27f)][_0x321935(0x2d5)](_0x5b7f90);this[_0x321935(0x258)][_0x321935(0x380)](_0x5b7f90,{'unitID':_0x5b7f90,'type':_0x3b832e,'awaitingChangeset':_0x15d2d5,'mutations':_0x3073be,'rev':_0x522414}),this[_0x321935(0x2ca)][_0x321935(0x22b)](_0x5b7f90)||this[_0x321935(0x1fb)](_0x5b7f90);}[_0xa015b6(0x1fb)](_0x2180b3){const _0x47079a=_0xa015b6,_0x39a339=this['_getSaveTimeout']();_0x39a339===0x0?this[_0x47079a(0x232)](_0x2180b3):this['_saveTaskMap'][_0x47079a(0x380)](_0x2180b3,setTimeout(()=>this[_0x47079a(0x232)](_0x2180b3),_0x39a339));}[_0xa015b6(0x3c1)](){const _0x2dd137=_0xa015b6;var _0x49dfda;return(_0x49dfda=this['_configService'][_0x2dd137(0x2a2)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x49dfda:u['LOCAL_CACHE_INTERVAL'];}[_0xa015b6(0x232)](_0x39ea40){const _0x148f63=_0xa015b6,_0x85acf1=this[_0x148f63(0x2ca)]['get'](_0x39ea40);return _0x85acf1!==void 0x0&&window[_0x148f63(0x265)](_0x85acf1),this['_localStorageService']['setItem'](u[_0x148f63(0x2f7)](_0x39ea40),this[_0x148f63(0x258)][_0x148f63(0x3ab)](_0x39ea40))[_0x148f63(0x219)](()=>this['_saveTaskMap']['delete'](_0x39ea40));}async['exhaustSavingTask'](){const _0x322d7b=_0xa015b6,_0x492a44=[];this[_0x322d7b(0x2ca)][_0x322d7b(0x443)]((_0x6b91df,_0x3965bc)=>{const _0x20d29d=_0x322d7b;window[_0x20d29d(0x265)](_0x6b91df),_0x492a44[_0x20d29d(0x233)](this[_0x20d29d(0x232)](_0x3965bc)[_0x20d29d(0x219)](()=>{const _0x4ad74c=_0x20d29d;this[_0x4ad74c(0x2ca)][_0x4ad74c(0x209)](_0x3965bc);}));}),await Promise[_0x322d7b(0x21e)](_0x492a44);}};ge=Kt([_e(0x0,a[_0xa015b6(0x414)]),_e(0x1,a[_0xa015b6(0x31f)]),_e(0x2,a[_0xa015b6(0x2b1)](m[_0xa015b6(0x22a)]))],ge);class je extends a[_0xa015b6(0x321)]{constructor(){const _0x119871=_0xa015b6;super(),h(this,_0x119871(0x287)),this[_0x119871(0x287)]=d['fromEvent'](window,_0x119871(0x3db))[_0x119871(0x316)](d[_0x119871(0x37e)](this[_0x119871(0x369)]),d[_0x119871(0x335)](0x1),d['mapTo'](void 0x0));}[_0xa015b6(0x2e5)](_0x2e5abe,_0x56be53,_0x5a577b=!0x1){const _0x44974e=_0xa015b6,_0x1238cf=new URL(window['location']['href']);_0x1238cf['searchParams'][_0x44974e(0x380)](_0x2e5abe,_0x56be53),_0x5a577b?window[_0x44974e(0x302)][_0x44974e(0x2aa)]('','',_0x1238cf[_0x44974e(0x3ad)]()):window[_0x44974e(0x302)][_0x44974e(0x37b)]('','',_0x1238cf[_0x44974e(0x3ad)]());}[_0xa015b6(0x2de)](_0x22c7f1,_0x427199=!0x1){const _0x18d92d=_0xa015b6,_0x16f349=new URL(window[_0x18d92d(0x309)][_0x18d92d(0x329)]);_0x16f349['searchParams'][_0x18d92d(0x209)](_0x22c7f1),_0x427199?window[_0x18d92d(0x302)]['replaceState']('','',_0x16f349['toString']()):window[_0x18d92d(0x302)]['pushState']('','',_0x16f349[_0x18d92d(0x3ad)]());}[_0xa015b6(0x462)](_0x4d487b){const _0x3ac603=_0xa015b6;var _0x5f3d90;return(_0x5f3d90=new URL(window['location'][_0x3ac603(0x329)])[_0x3ac603(0x2c2)]['get'](_0x4d487b))!=null?_0x5f3d90:void 0x0;}}var qt=Object[_0xa015b6(0x3da)],zt=Object[_0xa015b6(0x2ed)],Jt=(_0x10ac6a,_0x51dfcf,_0x319002)=>_0x51dfcf in _0x10ac6a?qt(_0x10ac6a,_0x51dfcf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x319002}):_0x10ac6a[_0x51dfcf]=_0x319002,Zt=(_0x150540,_0x284e7d,_0x32b07d,_0x40a5a8)=>{const _0x2cd0dd=_0xa015b6;for(var _0x967609=_0x40a5a8>0x1?void 0x0:_0x40a5a8?zt(_0x284e7d,_0x32b07d):_0x284e7d,_0xc77fb2=_0x150540[_0x2cd0dd(0x3c0)]-0x1,_0x3eab83;_0xc77fb2>=0x0;_0xc77fb2--)(_0x3eab83=_0x150540[_0xc77fb2])&&(_0x967609=_0x3eab83(_0x967609)||_0x967609);return _0x967609;},he=(_0x57ded2,_0x3c2878)=>(_0x15b1ae,_0x196f9c)=>_0x3c2878(_0x15b1ae,_0x196f9c,_0x57ded2),Qt=(_0x52f45d,_0x37c14a,_0x2c5e9c)=>Jt(_0x52f45d,_0x37c14a+'',_0x2c5e9c);const es=_0xa015b6(0x202);exports[_0xa015b6(0x34c)]=class extends a[_0xa015b6(0x38c)]{constructor(_0x45e486=Ue,_0x111b84,_0x12a146,_0x5e60ee){const _0x9863f8=_0xa015b6;super(),this['_config']=_0x45e486,this[_0x9863f8(0x395)]=_0x111b84,this['_injector']=_0x12a146,this[_0x9863f8(0x1eb)]=_0x5e60ee;const {..._0x39f562}=a[_0x9863f8(0x23a)]({},Ue,this['_config']);this['_configService'][_0x9863f8(0x3a6)]($t,_0x39f562);}[_0xa015b6(0x235)](){const _0x1eb7e1=_0xa015b6;this[_0x1eb7e1(0x272)](),this[_0x1eb7e1(0x435)]();}[_0xa015b6(0x23d)](){const _0x45567b=_0xa015b6;this[_0x45567b(0x3fc)]();}[_0xa015b6(0x272)](){const _0x232ea4=_0xa015b6;var _0x474b63;const _0xa8dec9=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x232ea4(0x31a)],{'useClass':G['WebSocketService']}],[u[_0x232ea4(0x3c3)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x232ea4(0x36d)]]];a[_0x232ea4(0x36b)](this['_injector'],a[_0x232ea4(0x363)](_0xa8dec9,(_0x474b63=this[_0x232ea4(0x384)])==null?void 0x0:_0x474b63[_0x232ea4(0x215)]));}['_registerRenderDependencies'](){const _0x3a4b67=_0xa015b6;this[_0x3a4b67(0x28d)](this[_0x3a4b67(0x395)][_0x3a4b67(0x41f)](a['UniverInstanceType']['UNIVER_DOC'],[Ie])),this[_0x3a4b67(0x28d)](this[_0x3a4b67(0x395)][_0x3a4b67(0x41f)](a[_0x3a4b67(0x2dd)][_0x3a4b67(0x204)],[ve]));}[_0xa015b6(0x435)](){const _0x3e0502=_0xa015b6;a[_0x3e0502(0x467)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x3e0502(0x36d)]]]);}},Qt(exports[_0xa015b6(0x34c)],_0xa015b6(0x2fd),es),exports[_0xa015b6(0x34c)]=Zt([a[_0xa015b6(0x2e6)](u[_0xa015b6(0x348)]),he(0x1,p[_0xa015b6(0x327)]),he(0x2,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),he(0x3,a[_0xa015b6(0x414)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0xa015b6(0x2ed)],ss=(_0x612745,_0x39e19b,_0x3fbe7b,_0x9c01c)=>{const _0x4ab6bd=_0xa015b6;for(var _0x380089=_0x9c01c>0x1?void 0x0:_0x9c01c?ts(_0x39e19b,_0x3fbe7b):_0x39e19b,_0x5a8d8c=_0x612745[_0x4ab6bd(0x3c0)]-0x1,_0x2e0fa4;_0x5a8d8c>=0x0;_0x5a8d8c--)(_0x2e0fa4=_0x612745[_0x5a8d8c])&&(_0x380089=_0x2e0fa4(_0x380089)||_0x380089);return _0x380089;},F=(_0x3714aa,_0x4778df)=>(_0x1adfce,_0x3113cb)=>_0x4778df(_0x1adfce,_0x3113cb,_0x3714aa);exports['BrowserCollaborationSocketService']=class extends u[_0xa015b6(0x373)]{constructor(_0x773ea4,_0x58daca,_0x8cb83d,_0x50246c,_0x54f004){super(_0x773ea4,_0x58daca,_0x8cb83d,_0x50246c,_0x54f004);}async[_0xa015b6(0x2d9)](_0x5ed314){const _0x303a8b=_0xa015b6,_0x4284c6=await this[_0x303a8b(0x271)](),_0x592be8=this[_0x303a8b(0x1f2)](_0x5ed314,_0x4284c6);return this[_0x303a8b(0x2b0)](_0x592be8);}[_0xa015b6(0x1f2)](_0x2caf0b,_0x529f64){const _0x48eec2=_0xa015b6,_0x2d935b=typeof window>'u'?new URL(_0x2caf0b):new URL(_0x2caf0b,window[_0x48eec2(0x309)][_0x48eec2(0x3b7)]);_0x2d935b[_0x48eec2(0x2c2)]['set']('sessionTicket',_0x529f64);const _0x24dfdc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x48eec2(0x2bb)]);return _0x24dfdc[_0x48eec2(0x3ab)](_0x48eec2(0x351))&&_0x2d935b[_0x48eec2(0x2c2)][_0x48eec2(0x380)](_0x48eec2(0x351),_0x24dfdc['get']('runId')),_0x2d935b['toString']();}async[_0xa015b6(0x271)](){const _0x16bcf0=_0xa015b6;var _0x194901,_0x594241,_0x5f1102;const _0x2e4304=this['_configService'][_0x16bcf0(0x2a2)](u[_0x16bcf0(0x2b8)]),_0x7fb3a1=(_0x194901=_0x2e4304==null?void 0x0:_0x2e4304[_0x16bcf0(0x343)])!=null?_0x194901:u[_0x16bcf0(0x37a)];return(_0x5f1102=(_0x594241=(await this[_0x16bcf0(0x203)]['get'](_0x7fb3a1,{'headers':{'Content-Type':_0x16bcf0(0x33e)}}))[_0x16bcf0(0x312)])==null?void 0x0:_0x594241[_0x16bcf0(0x32d)])!=null?_0x5f1102:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),F(0x1,a[_0xa015b6(0x2b1)](G[_0xa015b6(0x31c)])),F(0x2,a[_0xa015b6(0x414)]),F(0x3,a[_0xa015b6(0x2c0)]),F(0x4,m['ISnapshotServerService'])],exports[_0xa015b6(0x427)]);const Me=0x7530,Le=_0xa015b6(0x214);class is extends a['Disposable']{constructor(){const _0x5556f2=_0xa015b6;super(),h(this,_0x5556f2(0x25a),a[_0x5556f2(0x3c5)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x5556f2(0x366),new Map()),h(this,_0x5556f2(0x3dc),null),h(this,_0x5556f2(0x33f),new Map()),h(this,_0x5556f2(0x283),new Map()),this['_init']();}[_0xa015b6(0x448)](){const _0x5b2261=_0xa015b6;super[_0x5b2261(0x448)](),this[_0x5b2261(0x33f)]['forEach']((_0x25aef7,_0x2f66d3)=>this[_0x5b2261(0x3d2)](_0x2f66d3)),this[_0x5b2261(0x3dc)]&&window[_0x5b2261(0x2af)](this[_0x5b2261(0x3dc)]);}['getUnitStatus$'](_0x28032f){const _0x2bcff7=_0xa015b6;return this[_0x2bcff7(0x26e)](_0x28032f)[_0x2bcff7(0x316)](d['distinctUntilChanged']());}[_0xa015b6(0x399)](_0x5a6a2f){const _0xf57590=_0xa015b6;this[_0xf57590(0x370)]['size']===0x0&&this[_0xf57590(0x2a9)](),this[_0xf57590(0x370)]['add'](_0x5a6a2f),this[_0xf57590(0x44d)]({'type':0x0,'memberID':this[_0xf57590(0x25a)],'unitIDs':[_0x5a6a2f],'isForwarded':!0x1});}[_0xa015b6(0x3df)](_0x29d22a){const _0x33538f=_0xa015b6;this[_0x33538f(0x370)][_0x33538f(0x209)](_0x29d22a),this[_0x33538f(0x370)][_0x33538f(0x2c3)]===0x0&&this[_0x33538f(0x3dc)]&&window[_0x33538f(0x2af)](this[_0x33538f(0x3dc)]);}['_init'](){const _0x5222f5=_0xa015b6;this[_0x5222f5(0x28d)](a['toDisposable'](d[_0x5222f5(0x213)](window,'storage')['subscribe'](_0x2eed2a=>{const _0x2d5361=_0x5222f5;if(_0x2eed2a[_0x2d5361(0x261)]!==Le||!_0x2eed2a[_0x2d5361(0x2a8)])return;const _0x265a4c=JSON[_0x2d5361(0x277)](_0x2eed2a[_0x2d5361(0x2a8)]);this[_0x2d5361(0x228)](_0x265a4c);}))),window[_0x5222f5(0x2d4)](_0x5222f5(0x3e9),()=>this[_0x5222f5(0x44d)]({'type':0x1,'memberID':this[_0x5222f5(0x25a)],'unitIDs':Array[_0x5222f5(0x39c)](this[_0x5222f5(0x370)])}));}[_0xa015b6(0x228)](_0x2f8eb4){const _0x1bf624=_0xa015b6;switch(_0x2f8eb4[_0x1bf624(0x340)]){case 0x0:this[_0x1bf624(0x250)](_0x2f8eb4);break;case 0x1:this[_0x1bf624(0x217)](_0x2f8eb4);break;case 0x2:this[_0x1bf624(0x396)](_0x2f8eb4);break;}}[_0xa015b6(0x250)](_0x257f7a){const _0x200908=_0xa015b6,{unitIDs:_0x15c09f,memberID:_0x35d862,isForwarded:_0x225e05}=_0x257f7a;_0x15c09f[_0x200908(0x443)](_0x23b576=>{const _0xc5be93=_0x200908;if(!_0x225e05&&this[_0xc5be93(0x366)][_0xc5be93(0x22b)](_0x23b576)&&this['_ensureSubject'](_0x23b576)[_0xc5be93(0x3f1)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0xc5be93(0x366)][_0xc5be93(0x22b)](_0x23b576)||!this['_unitOnClients'][_0xc5be93(0x3ab)](_0x23b576)['has'](_0x35d862)){const _0x141a10=this[_0xc5be93(0x366)][_0xc5be93(0x3ab)](_0x23b576)||new Set();_0x141a10[_0xc5be93(0x27a)](_0x35d862),this['_unitOnClients'][_0xc5be93(0x380)](_0x23b576,_0x141a10),this[_0xc5be93(0x32f)](_0x35d862);}}),_0x225e05||this['_send']({'type':0x0,'memberID':this[_0x200908(0x25a)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0xa015b6(0x32f)](_0x110fe9){const _0x471074=_0xa015b6;this[_0x471074(0x3d2)](_0x110fe9);const _0x332a44=window[_0x471074(0x32e)](()=>{const _0x4eb013=_0x471074;this[_0x4eb013(0x366)][_0x4eb013(0x443)](_0x3639b6=>{_0x3639b6['delete'](_0x110fe9);});},Me*0x2);this[_0x471074(0x33f)][_0x471074(0x380)](_0x110fe9,_0x332a44);}[_0xa015b6(0x3d2)](_0x200cf4){const _0x400c60=_0xa015b6;if(this[_0x400c60(0x33f)][_0x400c60(0x22b)](_0x200cf4)){const _0x2d8a91=this['_clearOtherTimers'][_0x400c60(0x3ab)](_0x200cf4);_0x2d8a91&&window[_0x400c60(0x265)](_0x2d8a91),this[_0x400c60(0x33f)][_0x400c60(0x380)](_0x200cf4,null);}}[_0xa015b6(0x217)](_0x5da683){const _0x33158e=_0xa015b6,{memberID:_0xb6d75d,unitIDs:_0x5274bb}=_0x5da683;_0x5274bb['forEach'](_0x2bfacb=>{const _0x157200=_0x407d;var _0x282bb8;const _0x566d2c=this[_0x157200(0x366)][_0x157200(0x3ab)](_0x2bfacb);_0x566d2c&&(_0x566d2c[_0x157200(0x209)](_0xb6d75d),(_0x282bb8=this['_ensureSubject'](_0x2bfacb))==null||_0x282bb8[_0x157200(0x3f1)](_0x566d2c[_0x157200(0x2c3)]===0x0?u[_0x157200(0x2e7)][_0x157200(0x295)]:u['UnitStatus'][_0x157200(0x266)]));}),this[_0x33158e(0x3d2)](_0xb6d75d);}[_0xa015b6(0x396)](_0x448376){const _0x46988f=_0xa015b6;this['_scheduleClearOtherTimer'](_0x448376[_0x46988f(0x27b)]);}[_0xa015b6(0x44d)](_0x5f4a23){const _0x30c1e3=_0xa015b6;localStorage[_0x30c1e3(0x41e)](Le,JSON[_0x30c1e3(0x269)](_0x5f4a23));}[_0xa015b6(0x2a9)](){const _0x14ca29=_0xa015b6;this['_heartbeatTimer']=window[_0x14ca29(0x38f)](()=>{const _0x457118=_0x14ca29;this[_0x457118(0x44d)]({'type':0x2,'memberID':this['_id']});},Me);}[_0xa015b6(0x26e)](_0x7d3875){const _0x4677c3=_0xa015b6;return this[_0x4677c3(0x283)][_0x4677c3(0x22b)](_0x7d3875)||this[_0x4677c3(0x283)][_0x4677c3(0x380)](_0x7d3875,new d[(_0x4677c3(0x331))](u[_0x4677c3(0x2e7)][_0x4677c3(0x295)])),this[_0x4677c3(0x283)][_0x4677c3(0x3ab)](_0x7d3875);}}var Be=(_0x40482d=>(_0x40482d[_0x40482d[_0xa015b6(0x3ac)]=0x0]=_0xa015b6(0x3ac),_0x40482d[_0x40482d['OK']=0x1]='OK',_0x40482d[_0x40482d['INTERNAL_ERROR']=0x2]=_0xa015b6(0x30c),_0x40482d[_0x40482d['PERMISSION_DENIED']=0x3]=_0xa015b6(0x29d),_0x40482d[_0x40482d[_0xa015b6(0x3d6)]=0x4]='NOT_FOUND',_0x40482d[_0x40482d['UNAUTHENTICATED']=0x5]=_0xa015b6(0x1f5),_0x40482d[_0x40482d[_0xa015b6(0x20d)]=0x6]=_0xa015b6(0x20d),_0x40482d[_0x40482d[_0xa015b6(0x2c6)]=0x7]=_0xa015b6(0x2c6),_0x40482d[_0x40482d[_0xa015b6(0x381)]=0x8]=_0xa015b6(0x381),_0x40482d[_0x40482d['COMPLETION_FINISHED']=0x9]=_0xa015b6(0x3ff),_0x40482d[_0x40482d['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x40482d[_0x40482d[_0xa015b6(0x35e)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x40482d[_0x40482d[_0xa015b6(0x339)]=0x1771]=_0xa015b6(0x339),_0x40482d[_0x40482d[_0xa015b6(0x259)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x40482d[_0x40482d['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xa015b6(0x25f),_0x40482d[_0x40482d[_0xa015b6(0x42e)]=0x1b59]='APPLY_REJECT',_0x40482d[_0x40482d[_0xa015b6(0x306)]=0x1b5a]=_0xa015b6(0x306),_0x40482d[_0x40482d[_0xa015b6(0x2b6)]=0x1b5b]=_0xa015b6(0x2b6),_0x40482d[_0x40482d['APPLY_PERMISSION_DENIED']=0x1b5c]=_0xa015b6(0x298),_0x40482d[_0x40482d[_0xa015b6(0x3b5)]=0x1b5d]=_0xa015b6(0x3b5),_0x40482d[_0x40482d[_0xa015b6(0x2fa)]=0x1f41]=_0xa015b6(0x2fa),_0x40482d[_0x40482d[_0xa015b6(0x3b6)]=0x2329]=_0xa015b6(0x3b6),_0x40482d[_0x40482d[_0xa015b6(0x308)]=0x232a]=_0xa015b6(0x308),_0x40482d[_0x40482d[_0xa015b6(0x208)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x40482d[_0x40482d[_0xa015b6(0x3f5)]=0x232c]=_0xa015b6(0x3f5),_0x40482d[_0x40482d[_0xa015b6(0x394)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x40482d[_0x40482d[_0xa015b6(0x450)]=0x2711]=_0xa015b6(0x450),_0x40482d[_0x40482d['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xa015b6(0x2ce),_0x40482d[_0x40482d['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xa015b6(0x464),_0x40482d[_0x40482d[_0xa015b6(0x3ee)]=0x2714]=_0xa015b6(0x3ee),_0x40482d[_0x40482d['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x40482d[_0x40482d[_0xa015b6(0x243)]=0x271b]=_0xa015b6(0x243),_0x40482d[_0x40482d['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0xa015b6(0x460),_0x40482d[_0x40482d[_0xa015b6(0x3f0)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x40482d[_0x40482d[_0xa015b6(0x39f)]=0x271e]=_0xa015b6(0x39f),_0x40482d[_0x40482d['YUUMI_AI_RUN_FAILED']=0x271f]=_0xa015b6(0x341),_0x40482d[_0x40482d[_0xa015b6(0x216)]=0x2af9]=_0xa015b6(0x216),_0x40482d[_0x40482d[_0xa015b6(0x29e)]=0x2ee1]=_0xa015b6(0x29e),_0x40482d[_0x40482d[_0xa015b6(0x411)]=0x2ee2]=_0xa015b6(0x411),_0x40482d[_0x40482d[_0xa015b6(0x43e)]=0x2ee3]=_0xa015b6(0x43e),_0x40482d[_0x40482d[_0xa015b6(0x2c1)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x40482d[_0x40482d[_0xa015b6(0x3a8)]=0x2ee5]=_0xa015b6(0x3a8),_0x40482d[_0x40482d[_0xa015b6(0x32b)]=0x32c9]=_0xa015b6(0x32b),_0x40482d[_0x40482d['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0xa015b6(0x38a),_0x40482d[_0x40482d['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0xa015b6(0x40f),_0x40482d[_0x40482d[_0xa015b6(0x3b2)]=-0x1]=_0xa015b6(0x3b2),_0x40482d))(Be||{}),ns=Object[_0xa015b6(0x2ed)],rs=(_0x4e6f66,_0x34c152,_0x3e37bb,_0x291832)=>{const _0x295118=_0xa015b6;for(var _0x54a925=_0x291832>0x1?void 0x0:_0x291832?ns(_0x34c152,_0x3e37bb):_0x34c152,_0x14f8b0=_0x4e6f66[_0x295118(0x3c0)]-0x1,_0x441af3;_0x14f8b0>=0x0;_0x14f8b0--)(_0x441af3=_0x4e6f66[_0x14f8b0])&&(_0x54a925=_0x441af3(_0x54a925)||_0x54a925);return _0x54a925;},ue=(_0x2fb724,_0x3afd65)=>(_0x892f03,_0x7e0321)=>_0x3afd65(_0x892f03,_0x7e0321,_0x2fb724);exports[_0xa015b6(0x221)]=class extends a[_0xa015b6(0x3a7)]{constructor(_0x582f04,_0x209fbc,_0x5e3750){const _0x49dd54=_0xa015b6;super(),this[_0x49dd54(0x2e3)]=_0x582f04,this[_0x49dd54(0x203)]=_0x209fbc,this[_0x49dd54(0x1eb)]=_0x5e3750;}async[_0xa015b6(0x305)](_0x3c0180,_0x351bf7,_0x41040f,..._0x85fdd7){const _0x11b8a7=_0xa015b6;var _0x3c0440,_0x5287c2,_0x906fe8,_0x1989f0;const _0x3fc3f2=this[_0x11b8a7(0x2e3)][_0x11b8a7(0x375)]();if(!_0x3fc3f2)throw new Error(_0x11b8a7(0x293));const _0x179295=((_0x3c0440=this[_0x11b8a7(0x1eb)][_0x11b8a7(0x2a2)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x3c0440:u[_0x11b8a7(0x300)])+'/'+_0x3c0180+_0x11b8a7(0x3ec)+_0x351bf7,_0x209081=new URL(window['location'][_0x11b8a7(0x329)]),_0x32447d={'scriptId':_0x3c0180,'runId':(_0x5287c2=_0x209081['searchParams'][_0x11b8a7(0x3ab)](_0x11b8a7(0x351)))!=null?_0x5287c2:'','function':_0x351bf7,'unitId':_0x3fc3f2[_0x11b8a7(0x357)](),'argsOfFunction':JSON[_0x11b8a7(0x269)](_0x85fdd7),'invokeId':(_0x906fe8=_0x41040f['invokeId'])!=null?_0x906fe8:'','executionId':(_0x1989f0=_0x41040f[_0x11b8a7(0x23c)])!=null?_0x1989f0:''};try{const _0x535d34=await this[_0x11b8a7(0x203)]['post'](_0x179295,{'body':_0x32447d});return _0x535d34['body']['error']&&_0x535d34[_0x11b8a7(0x312)][_0x11b8a7(0x3a4)][_0x11b8a7(0x34f)]!==Be['OK']?_0x11b8a7(0x40d):_0x535d34['body']['result'];}catch{return _0x11b8a7(0x40d);}}},exports[_0xa015b6(0x221)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0xa015b6(0x2b1)](G[_0xa015b6(0x31c)])),ue(0x2,a['IConfigService'])],exports[_0xa015b6(0x221)]),exports[_0xa015b6(0x28c)]=xe,exports[_0xa015b6(0x1ed)]=be,exports['SheetCollabCursorShape']=Ae,exports[_0xa015b6(0x38e)]=is,exports[_0xa015b6(0x446)]=je;
|
|
1
|
+
'use strict';const _0x57a25a=_0x1cac;(function(_0x56d9d8,_0x26bc1e){const _0x529a2b=_0x1cac,_0x3081c4=_0x56d9d8();while(!![]){try{const _0x4f1897=parseInt(_0x529a2b(0x213))/0x1*(-parseInt(_0x529a2b(0x1e7))/0x2)+parseInt(_0x529a2b(0x281))/0x3+parseInt(_0x529a2b(0x2bf))/0x4+parseInt(_0x529a2b(0x116))/0x5*(parseInt(_0x529a2b(0x152))/0x6)+parseInt(_0x529a2b(0x2d2))/0x7*(parseInt(_0x529a2b(0x271))/0x8)+-parseInt(_0x529a2b(0x2ad))/0x9*(parseInt(_0x529a2b(0x2e7))/0xa)+parseInt(_0x529a2b(0xe2))/0xb;if(_0x4f1897===_0x26bc1e)break;else _0x3081c4['push'](_0x3081c4['shift']());}catch(_0xcc4580){_0x3081c4['push'](_0x3081c4['shift']());}}}(_0x475f,0xa66cc));var Ve=Object['defineProperty'],Xe=(_0x47f5b9,_0x502aae,_0x14a1b8)=>_0x502aae in _0x47f5b9?Ve(_0x47f5b9,_0x502aae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14a1b8}):_0x47f5b9[_0x502aae]=_0x14a1b8,h=(_0x371be2,_0x5c40a0,_0x2293ee)=>Xe(_0x371be2,typeof _0x5c40a0!='symbol'?_0x5c40a0+'':_0x5c40a0,_0x2293ee);Object[_0x57a25a(0x106)](exports,Symbol['toStringTag'],{'value':_0x57a25a(0x113)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x57a25a(0x1ec)),p=require(_0x57a25a(0x10a)),G=require(_0x57a25a(0x223)),b=require(_0x57a25a(0x246)),Ge=require(_0x57a25a(0x191)),d=require(_0x57a25a(0x244)),Y=require('@univerjs/docs'),m=require(_0x57a25a(0xc1)),Ee=require(_0x57a25a(0x144)),g=require(_0x57a25a(0xc6)),$=require('rxjs/operators'),X=require(_0x57a25a(0x283)),P=require(_0x57a25a(0x270)),T=require(_0x57a25a(0x326)),D=require('@univerjs/design'),M=require(_0x57a25a(0x186)),Ke=require('@univerjs/rpc');var qe=Object[_0x57a25a(0xbe)],ze=(_0xdadee,_0x313a03,_0x2b148e,_0x533dc1)=>{const _0x3b2e64=_0x57a25a;for(var _0x56cf56=_0x533dc1>0x1?void 0x0:_0x533dc1?qe(_0x313a03,_0x2b148e):_0x313a03,_0xe46ef8=_0xdadee[_0x3b2e64(0x25f)]-0x1,_0x3a9b2b;_0xe46ef8>=0x0;_0xe46ef8--)(_0x3a9b2b=_0xdadee[_0xe46ef8])&&(_0x56cf56=_0x3a9b2b(_0x56cf56)||_0x56cf56);return _0x56cf56;},Te=(_0x4ba3bc,_0x53b79d)=>(_0x563998,_0x1e2e4d)=>_0x53b79d(_0x563998,_0x1e2e4d,_0x4ba3bc);let de=class extends a[_0x57a25a(0x1c0)]{constructor(_0x35b61f,_0x32b62d){const _0x501938=_0x57a25a;super(),this['_docClipboardService']=_0x35b61f,this[_0x501938(0x325)]=_0x32b62d,this[_0x501938(0x170)]();}[_0x57a25a(0x170)](){const _0x9146a8=_0x57a25a,_0x2bd4ee=this;this[_0x9146a8(0x293)](this['_docClipboardService'][_0x9146a8(0x267)]({'onBeforePasteImage':async _0x176729=>{const _0x1a5c45=_0x9146a8,_0x2ce67b=await _0x2bd4ee[_0x1a5c45(0x325)][_0x1a5c45(0x2c2)](_0x176729);return _0x2ce67b?{'source':_0x2ce67b['source'],'imageSourceType':_0x2ce67b[_0x1a5c45(0x1ea)]}:null;}}));}};de=ze([Te(0x0,b[_0x57a25a(0x2ae)]),Te(0x1,Ge[_0x57a25a(0x23c)])],de);const Oe=[_0x57a25a(0x25d),_0x57a25a(0x30c),_0x57a25a(0xe0),_0x57a25a(0x1f8),_0x57a25a(0x307),_0x57a25a(0x31a)];class me extends a[_0x57a25a(0xe9)]{constructor(){const _0x68308e=_0x57a25a;super(...arguments),h(this,_0x68308e(0x1ac),new Map()),h(this,_0x68308e(0x2b8),0x0);}[_0x57a25a(0x119)](_0x55d4fc){const _0x298dce=_0x57a25a;if(this[_0x298dce(0x1ac)]['has'](_0x55d4fc))return this[_0x298dce(0x1ac)]['get'](_0x55d4fc);const _0x4ede57=Oe[this[_0x298dce(0x2b8)]];return this[_0x298dce(0x2b8)]=(this['_colorIndex']+0x1)%Oe['length'],this[_0x298dce(0x1ac)][_0x298dce(0xb9)](_0x55d4fc,_0x4ede57),_0x4ede57;}}function Pe(_0x1e11e6){const _0x54ef15=_0x57a25a;let _0x1195b5='';for(const _0x5e394f of _0x1e11e6){const {startOffset:_0x54c85f,endOffset:_0x53d102,isActive:_0x5102f9,rangeType:_0x710f03,segmentId:_0x56283a,segmentPage:_0x1b62aa}=_0x5e394f;_0x1195b5[_0x54ef15(0x25f)]&&(_0x1195b5+=','),_0x1195b5+=_0x54c85f+':'+_0x53d102+':'+(_0x5102f9?'1':'0')+':'+_0x710f03+':'+_0x56283a+':'+_0x1b62aa;}return _0x1195b5;}function Je(_0x49df4f){const _0x35bb7d=_0x57a25a,_0x44c9a6=_0x49df4f[_0x35bb7d(0x1d6)](','),_0xfe44f3=[];for(const _0x499dff of _0x44c9a6){const [_0x458662,_0x37073e,_0x305fc8,_0x526dc0,_0x954898,_0x5832da]=_0x499dff[_0x35bb7d(0x1d6)](':');_0xfe44f3[_0x35bb7d(0x11f)]({'startOffset':Number(_0x458662),'endOffset':Number(_0x37073e),'collapsed':_0x458662===_0x37073e,'isActive':_0x305fc8==='1','rangeType':_0x526dc0===a[_0x35bb7d(0x20f)]['TEXT']?a[_0x35bb7d(0x20f)][_0x35bb7d(0x126)]:a['DOC_RANGE_TYPE'][_0x35bb7d(0x272)],'segmentId':typeof _0x954898==_0x35bb7d(0x320)?String(_0x954898):'','segmentPage':Number(_0x5832da!=null?_0x5832da:-0x1)});}return _0xfe44f3[_0x35bb7d(0x142)](_0x354ddf=>_0x354ddf[_0x35bb7d(0x18e)])||(_0xfe44f3[0x0][_0x35bb7d(0x18e)]=!0x0),_0xfe44f3;}class Ce extends a[_0x57a25a(0x1c0)]{constructor(){const _0x1ca13c=_0x57a25a;super(...arguments),h(this,_0x1ca13c(0x2fa),new d['BehaviorSubject'](null)),h(this,_0x1ca13c(0x2f2),this[_0x1ca13c(0x2fa)][_0x1ca13c(0x13f)]());}['syncEditingCollabCursor'](_0x2df52a){const _0x5d0482=_0x57a25a,{unitID:_0x555652,memberID:_0x3f720b,textRanges:_0x386020}=_0x2df52a,_0x362f66=Pe(_0x386020);if(_0x362f66==='')return;const _0x5ad329={'unitID':_0x555652,'memberID':_0x3f720b,'selection':_0x362f66};this[_0x5d0482(0x2fa)][_0x5d0482(0x28d)](_0x5ad329);}}function _0x1cac(_0x26b665,_0x8b7cbd){const _0x475f51=_0x475f();return _0x1cac=function(_0x1caccb,_0x2ec98a){_0x1caccb=_0x1caccb-0xb0;let _0x1473a2=_0x475f51[_0x1caccb];return _0x1473a2;},_0x1cac(_0x26b665,_0x8b7cbd);}var Ze=Object[_0x57a25a(0xbe)],Qe=(_0x59af1b,_0x14953c,_0x47919f,_0x38638a)=>{for(var _0x3070f4=_0x38638a>0x1?void 0x0:_0x38638a?Ze(_0x14953c,_0x47919f):_0x14953c,_0x8700e6=_0x59af1b['length']-0x1,_0x118fc2;_0x8700e6>=0x0;_0x8700e6--)(_0x118fc2=_0x59af1b[_0x8700e6])&&(_0x3070f4=_0x118fc2(_0x3070f4)||_0x3070f4);return _0x3070f4;},L=(_0x57c89c,_0x5e4e54)=>(_0x20cea5,_0xbb4fda)=>_0x5e4e54(_0x20cea5,_0xbb4fda,_0x57c89c);const et=0x12c,tt=0x64;let fe=class extends a[_0x57a25a(0x1c0)]{constructor(_0x3bc2b5,_0x3a034b,_0x451162,_0x132c1a,_0x3f19aa,_0x368a73,_0x54bf87,_0x5dcd77,_0x24fdd3){const _0x3b1940=_0x57a25a;super(),h(this,_0x3b1940(0xdf),!0x1),h(this,'_init',!0x1),h(this,_0x3b1940(0x12c),new d[(_0x3b1940(0x290))](new Map())),h(this,_0x3b1940(0x313),this[_0x3b1940(0x12c)][_0x3b1940(0x13f)]()),h(this,_0x3b1940(0x14e),new d['BehaviorSubject']([])),h(this,_0x3b1940(0x2c4),this[_0x3b1940(0x14e)][_0x3b1940(0x25e)](d[_0x3b1940(0x27d)](et))),h(this,'_updateLocalCursor',a[_0x3b1940(0x2fc)](_0x462b8a=>{const _0x899a04=_0x3b1940,_0x12f90b={'eventID':m[_0x899a04(0x1db)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x899a04(0x230)],'memberID':this[_0x899a04(0x287)][_0x899a04(0x2a2)](),'selection':Pe(_0x462b8a)}};this[_0x899a04(0x287)][_0x899a04(0x1f4)](_0x12f90b,this[_0x899a04(0x230)]);},tt)),(this[_0x3b1940(0x230)]=_0x3bc2b5,this[_0x3b1940(0x287)]=_0x3a034b,this[_0x3b1940(0x24d)]=_0x451162,this[_0x3b1940(0x2c6)]=_0x132c1a,this[_0x3b1940(0x1fb)]=_0x3f19aa,this[_0x3b1940(0xf6)]=_0x368a73,this[_0x3b1940(0xf1)]=_0x54bf87,this[_0x3b1940(0x265)]=_0x5dcd77,this[_0x3b1940(0x2d0)]=_0x24fdd3);}get['cursorInfo'](){const _0x204ed0=_0x57a25a;return this[_0x204ed0(0x12c)]['getValue']();}get['roomMembers'](){const _0x275518=_0x57a25a;return this[_0x275518(0x14e)]['getValue']();}[_0x57a25a(0x1eb)](){const _0xa00743=_0x57a25a;super[_0xa00743(0x1eb)](),this[_0xa00743(0x12c)][_0xa00743(0x28d)](new Map()),this['_cursorInfo$'][_0xa00743(0xec)](),this['_roomMembers$'][_0xa00743(0x28d)]([]),this[_0xa00743(0x14e)][_0xa00743(0xec)]();}[_0x57a25a(0x23d)](){const _0x995346=_0x57a25a;this[_0x995346(0x170)]||(this[_0x995346(0x170)]=!0x0,this[_0x995346(0x287)][_0x995346(0x23e)]['pipe'](d['takeUntil'](this[_0x995346(0x2ed)]))[_0x995346(0x305)](_0x2f1d6d=>{const _0x58ecec=_0x995346;_0x2f1d6d===u['SessionStatus'][_0x58ecec(0x14a)]?this[_0x58ecec(0x2c1)]():this['_toggleOffline']();}),this[_0x995346(0x287)]['event$'][_0x995346(0x25e)](d[_0x995346(0x13c)](this[_0x995346(0x2ed)]))[_0x995346(0x305)](_0x43fe0f=>{const _0x455e4f=_0x995346,_0x2c3f81=_0x43fe0f[_0x455e4f(0x31c)];_0x2c3f81===m[_0x455e4f(0x1db)][_0x455e4f(0x217)]&&this[_0x455e4f(0x165)](_0x43fe0f),_0x2c3f81===m[_0x455e4f(0x1db)][_0x455e4f(0x1aa)]&&this[_0x455e4f(0x2e0)](_0x43fe0f);}),this[_0x995346(0x293)](this[_0x995346(0x2d0)]['onCommandExecuted'](_0x1fab2f=>{const _0x334cc2=_0x995346,_0x250b7c=_0x1fab2f[_0x334cc2(0x310)];_0x250b7c!=null&&this[_0x334cc2(0xdf)]&&_0x1fab2f['id']===Y[_0x334cc2(0x2a1)]['id']&&_0x250b7c[_0x334cc2(0x110)]===this[_0x334cc2(0x230)]&&_0x250b7c['isEditing']===!0x1&&_0x250b7c[_0x334cc2(0x1b6)][_0x334cc2(0x25f)]>0x0&&this[_0x334cc2(0x304)](_0x250b7c[_0x334cc2(0x1b6)]);})),this[_0x995346(0xf6)][_0x995346(0x2f2)]['pipe'](d[_0x995346(0x13c)](this[_0x995346(0x2ed)]))[_0x995346(0x305)](_0x1c84eb=>{const _0x5c710d=_0x995346;if((_0x1c84eb==null?void 0x0:_0x1c84eb[_0x5c710d(0x230)])!==this[_0x5c710d(0x230)])return;const _0x14a587={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x1c84eb};this[_0x5c710d(0x165)](_0x14a587);}),this[_0x995346(0x293)](this['_commandService']['onCommandExecuted'](_0x4df000=>{const _0x3d6c86=_0x995346;if(_0x4df000[_0x3d6c86(0x310)]==null)return;const _0x4ef657=_0x4df000['params'];if(_0x4df000['id']!==Y['RichTextEditingMutation']['id']||_0x4ef657[_0x3d6c86(0x110)]!==this[_0x3d6c86(0x230)])return;const _0x2c3048={'id':_0x3d6c86(0x190),'params':_0x4ef657},_0x167b58=this[_0x3d6c86(0xeb)];for(const [_0x228f15,_0x133065]of _0x167b58){const _0x1fab5d={'id':_0x3d6c86(0x190),'params':{'unitId':this[_0x3d6c86(0x230)],'actions':null,'textRanges':_0x133065[_0x3d6c86(0x1b6)]}},_0x510d0f=this[_0x3d6c86(0xf1)]['transformMutation'](_0x2c3048,_0x1fab5d,!0x1);if(m[_0x3d6c86(0x251)](_0x510d0f))throw _0x510d0f[_0x3d6c86(0x201)];_0x167b58[_0x3d6c86(0xb9)](_0x228f15,{..._0x133065,'ranges':_0x510d0f[_0x3d6c86(0x2e9)][_0x3d6c86(0x310)][_0x3d6c86(0x185)]});}queueMicrotask(()=>{const _0x9964f0=_0x3d6c86;this[_0x9964f0(0x12c)][_0x9964f0(0x28d)](_0x167b58);});})));}[_0x57a25a(0x165)](_0x466571){const _0x2c661=_0x57a25a;var _0x2094f,_0x4e0650;const {memberID:_0x218068,selection:_0x30c590}=_0x466571['data'],_0x2e460c=Je(_0x30c590),_0xd87643=(_0x4e0650=(_0x2094f=this[_0x2c661(0x1fb)][_0x2c661(0x1de)](this[_0x2c661(0x230)],_0x218068))==null?void 0x0:_0x2094f[_0x2c661(0x21e)])!=null?_0x4e0650:_0x2c661(0x26c),_0x86161c={'color':this[_0x2c661(0x2c6)][_0x2c661(0x119)](_0x218068),'name':_0xd87643,'ranges':_0x2e460c},_0x637b52=this[_0x2c661(0xeb)];_0x637b52[_0x2c661(0xb9)](_0x218068,_0x86161c),this[_0x2c661(0x12c)][_0x2c661(0x28d)](_0x637b52);}['_onCursorDelete'](_0x39e066){const _0x360469=_0x57a25a,{memberID:_0x161fda}=_0x39e066[_0x360469(0xe5)],_0x3f9194=this[_0x360469(0xeb)];_0x3f9194[_0x360469(0x234)](_0x161fda),this['_cursorInfo$'][_0x360469(0x28d)](_0x3f9194);}['_toggleOnline'](){const _0x3aaf3e=_0x57a25a;var _0x547ffa;if(this[_0x3aaf3e(0xdf)]=!0x0,((_0x547ffa=this['_univerInstanceService'][_0x3aaf3e(0x171)]())==null?void 0x0:_0x547ffa[_0x3aaf3e(0x15c)]())!==this[_0x3aaf3e(0x230)])return;const _0x22d73e=this['_injector'][_0x3aaf3e(0x1dd)](Y[_0x3aaf3e(0x241)])[_0x3aaf3e(0x289)]();Array[_0x3aaf3e(0x20a)](_0x22d73e)&&_0x22d73e[_0x3aaf3e(0x25f)]>0x0&&this['_updateLocalCursor'](_0x22d73e);}[_0x57a25a(0x323)](){const _0x46ae86=_0x57a25a;this[_0x46ae86(0xdf)]=!0x1;}};fe=Qe([L(0x2,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),L(0x3,a[_0x57a25a(0x17f)](me)),L(0x4,a[_0x57a25a(0x17f)](u[_0x57a25a(0x114)])),L(0x5,a[_0x57a25a(0x17f)](Ce)),L(0x6,m[_0x57a25a(0x26e)]),L(0x7,a[_0x57a25a(0x2d5)]),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x2f1df3,_0x56700b,_0x432ac4,_0x2de6f1)=>{const _0x59be52=_0x57a25a;for(var _0x5a43d5=_0x2de6f1>0x1?void 0x0:_0x2de6f1?st(_0x56700b,_0x432ac4):_0x56700b,_0xfefe52=_0x2f1df3[_0x59be52(0x25f)]-0x1,_0x404cc9;_0xfefe52>=0x0;_0xfefe52--)(_0x404cc9=_0x2f1df3[_0xfefe52])&&(_0x5a43d5=_0x404cc9(_0x5a43d5)||_0x5a43d5);return _0x5a43d5;},w=(_0xcfbe5e,_0x44c93f)=>(_0x122071,_0x540e0d)=>_0x44c93f(_0x122071,_0x540e0d,_0xcfbe5e);const nt=0x12c,rt=0x64,ot=()=>{let _0x1d784a=[],_0x29e2fc=!0x1;return _0xea47ba=>{const _0x58d29f=_0x1cac;_0x1d784a[_0x58d29f(0x11f)](_0xea47ba),_0x29e2fc||(_0x29e2fc=!0x0,setTimeout(()=>{const _0x34fda5=_0x58d29f;_0x1d784a[_0x34fda5(0x2ef)](_0x2b0f0f=>_0x2b0f0f()),_0x1d784a=[],_0x29e2fc=!0x1;}));};};function _0x475f(){const _0x329b7f=['registerRefRange','CollaborationSocketService','_drawTextRange','YUUMI_RATE_OVER_LIMIT','YUUMI_SUBSCRIPTION_NOT_FOUND','addObject','_entities','isArray','getCoordByCell','executeCommand','_initResize','INVITE_CODE_REQUIRED','DOC_RANGE_TYPE','LICENSE_DISTRO_REJECTED','ENSURE_SNAPSHOT_EXECUTION','transformIMECache','382216qJqwzw','fromEvent','tag','_initDependencies','UPDATE_CURSOR','_configService','_collabCursorController','_color','PY_RUNTIME_SCRIPT_ERROR','CLOSE_ROOM','merge','name','triggerDblclick','collab-rect-range-','url(#off-line-single_clip0_910_343)','InsertRangeMoveRightCommandId','@univerjs/network','row','Tools','createIdentifier','_initEvent','location','toString','collab-text-range-','rgba(255,\x20255,\x20255,\x200.01)','prototype','_handleHeartbeatEvent','INVALID_INVITE_CODE','OTHER_CLIENTS_EDITING','unitID','WECHAT_HAS_BEEN_BOUND','_unitStatus','RefRangeService','delete','COMPLETION_FINISHED','ISocketService','_onRefRangeChange','IRenderManagerService','_dataLoaderService','bottom','_themeService','IImageIoService','init','sessionStatus$','runRefRangeMutations','extend','DocSelectionManagerService','ILogService','Rectangle','rxjs','runOnServer','@univerjs/docs-ui','_saveTaskMap','UNIVER_SHEET','setTimeout','startRow','collabStatus.offline','setStateCache','_injector','fillStyle','startsWith','_drawAnchor','isTransformMutationFailure','_anchorDot','getAncestorScale','_send','assign','useCallback','SOCKET_FAILED','type','height','addHandlerCallback','icon','getCollabEntity$','purple.300','pipe','length','subunit','focused$','_updateSubUnitFromURLParams','values','IUIPartsService','_univerInstanceService','drawWith','addClipboardHook','setShapeProps','currentSkeleton$','DocCollaborationEntity','getMergeData','Unknown\x20user','LICENSE_MAX_UNITS_EXCEEDED','ITransformService','handleInsertRangeMoveRight','react/jsx-runtime','1096VdQTet','RECT','replaceDocRanges','CollaborationController','_startDocCollabCursor','wsSessionTicketUrl','onPointerLeave$','permission.title','session.collaboration-timeout','defIds','DependentOn','onLocalMutation','debounceTime','createSocket','_cursors','CollaborationDataLoaderController','1259703UgtYVG','getViewport','@univerjs/sheets-ui','transform','ILocalCacheService','setItem','_session','INTERNAL_ERROR','getDocRanges','getCellPositionByOffset','onRendered','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','next','registerRenderModule','black','BehaviorSubject','collaboration.closeRoom','m1Prime','disposeWithMe','_transformPreviousActiveRange','getOwnPropertySymbols','range','APPLY_REJECT','_sheetSkeletonManagerService','_localStorageService','undoState','_render','off-line-single_clip0_910_343','NOT_COLLAB','_renderManagerService','throttleTime','pushState','SetTextSelectionsOperation','getMemberID','_instanceService','_setupSubUnitSync','size','_initStatusComponent','lineTo','mergeOverrideWithDependencies','UniverInstanceType','_logService','SetSelectionsOperation','top','1409571UoXqfj','IDocClipboardService','_getSaveTimeout','path','_docTransformSelectionsService','_docTransformStateCacheService','InsertColCommandId','#fff','FETCH_MISS','AWAITING_WITH_PENDING','_handleEvent','_colorIndex','CollaborationUIEventService','_getSessionTicket','_revisionService','all','hide','_eventUnsubscribe','3446036aOihqL','CollaborationUIEventId','_toggleOnline','saveImage','_cachedData','roomMembers$','LICENSE_IMPORT_SIZE_EXCEEDED','_colorAssignService','_selfUnitIDs','endRow','_notificationService','post','_collaborationUIEventService','_labelPosition','origin','isTransformMutationsWithChangesetSuccess','translate(.97)','_commandService','find','5677wjeVtJ','LocaleService','_setupBeforeClosingHandler','IUniverInstanceService','backgroundColor','_removeClearOtherTimer','map','getSheetBySheetId','on-line-single_clip0_910_349','ISnapshotServerService','startColumn','_localCacheService','onCommandExecuted','handleMoveRange','_onCursorDelete','displayName','save','Error','OnLineSingle','CONNECTOR_DATA_TOO_LARGE','from','10jeOUIO','parse','m2Prime','handleIRemoveCol','_getScale','PENDING','dispose$','url(#$1','forEach','APPLY_NON_SEQUENTIAL_REVISION','_disabled','collabCursorState$','session.connection-failed','_transformHistoryAndStateStack','getActiveRange','getColorFromTheme','_uiPartsService','clearInterval','indexOf','_collabCursorState$','1em','debounce','collabStatus.synced','selection','AWAITING','collaboration-client.offline-data-not-saved','show','MessageType','filter','_updateLocalCursor','subscribe','sessionTicket','blue.400','_hover','getCurrentSelections','getTypeOfUnitAdded$','editingUnit','jiqing.500','DeleteRangeMoveLeftCommandId','forwardRef','DocStateChangeManagerService','params','NO_OTHER_CLIENTS_EDITING','random','cursorInfo$','_initStatusListener','DeleteRangeMoveUpCommandId','SOCKET_FAILED_RETRY','mask','_entityInit$','IURLService','yellow.400','onMouseMove','eventID','sheetID','fill','MoveRangeCommandId','string','NOT_FOUND','transformByState','_toggleOffline','transformSelections','_imageIoService','@univerjs/ui','shareReplay','_initCommandExecutedListener','substring','IBeforeCloseService','toDisposable','collabStatus.notCollab','Injector','UnitStatus','_updateURLWithCurrentState','closePath','_handleLeaveEvent','getRangePointData','idSuffix','width','set','executionId','result','findNodePositionByCharIndex','_range','getOwnPropertyDescriptor','_document','apply','@univerjs-pro/collaboration','UNIVER_DOC','serializeRangeWithSheet','EffectRefRangId','DocIMEInputManagerService','@univerjs/sheets','setActiveRange','text','handleInsertRow','arc','jsx','endColumn','M0\x200H16V16H0z','generateRandomId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getParam','_drawRectRange','replaceState','collabStatus.syncing','collab-text-anchor-','INVITE_CODE_HAS_BEEN_UES','with','onTransformChange$','0\x200\x2016\x2016','getStateCache','InsertRangeMoveDownCommandId','add','createInstance','[CollaborationDataLoaderController]','APPLY_PERMISSION_DENIED','_online','green.600','_getAnchorBounding','50578PmEOnJ','/run/','_draw','data','DocSkeletonManagerService','_docSkeleton','getVpScrollXYInfoByPosToVp','Disposable','attrs','cursorInfo','complete','SetDocZoomRatioOperation','getSkeleton','RevisionService','getOffsetConfig','_transformService','INVALID_ARGUMENT','YUUMI_URL_COL_OUT_OF_RANGE','INVITE_CODE_ALREADY_BOUND','_saveCache','_syncEditingCollabCursorService','entries','_status$','color','getValue','entityInit$','DesktopCollaborationStatusDisplayController','_scene','restore','getSheetId','Tooltip','Rect','Warning','application/json','_textBubble','_registerRenderDependencies','defineProperty','then','getCurrentUnitForType','transformStateCache','@univerjs/engine-render','hasOwnProperty','DisposableCollection','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:univer-text-gray-200','actions','enableLocalCache','unitId','collaboration.single-unit.warning','touchDependencies','Module','MemberService','handleInsertRangeMoveDown','13180iDvEzX','OFFLINE','min','assignAColorForMemberID','getRelativeToViewportCoord','TOO_MANY_REQUESTS','concat','colorChannel1','fromEventSubject','push','SUBMIT_CHANGESET_TIMEOUT','includes','univer-flex\x20univer-mr-2\x20univer-text-xl','UniverCollaborationClientPlugin','LOCAL_CACHE_INTERVAL','_scheduleHeartbeat','TEXT','LOGIN_FAILED','LICENSE_EXPORT_SIZE_EXCEEDED','override','urlChange$','ThemeService','_cursorInfo$','_httpService','event$','deepClone','NodePositionConvertToRectRange','PERMISSION_DENIED','clipPath','_collaborationController','SNAPSHOT_INVALID_SNAPSHOT','_localeService','_initEntityListener','saveTaskMap','_shapes','_getMergeRange','SNAPSHOT_HAS_BEEN_REMOVED','evenodd','takeUntil','href','IRemoteInstanceService','asObservable','reconnect','APPLY_DUPLICATED','some','transformMutation','@univerjs/engine-formula','createElement','SetWorksheetActivateCommand','loadUnit','defs','beginPath','ONLINE','_transformUndoRedoStack','docStateChange$','CHANGESET_REVISION_CONFILICT','_roomMembers$','redoState','combineLatest','_anchor','1338ESuWUx','COLORS','ILocalStorageService','ACTIVE_UNIT_EVENT_CHANNEL','MUTATION','_handleHover','addEventListener','syncEditingCollabCursor','RemoteUniscriptService','_heartbeatTimer','getUnitId','getUndoRedoMutationParamsCache','getCollabCursors$','_docTransformIMECacheService','Failed','_docSkeletonManagerService','exhaustSavingTask','unsubscribe','xlink:href','_onCursorUpdate','call','clsx','handleInsertCol','ColorKit','...','_scheduleClearOtherTimer','BrowserCollaborationSocketService','Optional','setParam','RegularPolygon','_init','getFocusedUnit','_backgroundColor','Shape','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UniverCollaborationClientUIPlugin','getTypeOfUnitDisposed$','has','onPointerEnter$','runId','YUUMI_AI_RUN_FAILED','RemoveRowCommandId','getColor','makeDirty','svg','Inject','_docStateChangeManagerService','UNDEFINED','subscribeEvent','setConfig','_hovered','textRanges','react','univer-flex\x20univer-items-center','UNRECOGNIZED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','session.will-retry','IConfigService','Workbook','fillText','isActive','_refRangeService','doc.mutation.rich-text-editing','@univerjs/drawing','trim','resize','invokeId','_cursorShapes','useDependency','JOIN_ROOM_FAILED','searchParams','_scheduleSaving','0\x200\x2017\x2016','_updateCollabCursors','setUndoRedoMutationParamsCache','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','pluginName','getRenderById','_id','_messageService','ICommandService','CONFLICT','_name','WebBrowserSingleActiveUnitService','url(#on-line-single_clip0_910_349)','_cursor','EMAIL_HAS_BEEN_BOUND','_createSocketURL','USERS_LEAVE','measureText','_assignedColors','getLocalCacheKey','_unitOnClients','status$','CollaborationStatus','transformMutationsWithChangeset','YUUMI_ASYNCIO_CANCELLED','BuiltInUIPart','distinctUntilChanged','SheetSkeletonManagerService','ranges','RemoveColCommandId','mutations','body','_lastPointer','unit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ALREADY_EXISTS','max','unshift','RxDisposable','_refreshCollabCursors','_ensureSubject','APPLY_REVISION_CONFILICT','DataLoaderService','YUUMI_UNABLE_LOAD_URL','getItem','_config','SYNCED','HTTPService','_context','activeSheet$','skeleton','none','replace','_hideTimer','_startSheetCollabCursor','_getSheetObject','clearTimeout','YUUMI_TABLE_NOT_FOUND_IN_UNIT','stringify','toRgbString','split','currentTheme$','DEFAULT_WS_SESSION_TICKET_URL','CommandType','handleDeleteRangeMoveLeft','CollaborationEvent','font','get','getMember','permission.content','_removeCollabCursors','_collabSessionService','saveOfflineData','IMessageService','round','loadOfflineData','selections','6umOKYB','addObjects','TEXT_RANGE_LAYER_INDEX','imageSourceType','dispose','@univerjs/core','CollaborationSessionService','SHEET_VIEWPORT_KEY','_clearOtherTimers','history','switchMap','OffLineSingle','transformRemoteChangeset','send','children','requireSession','_beforeCloseService','red.300','_docSyncEditingCollabCursorService','getConfig','_memberService','div','collabStatus.fetchMiss','Subject','className','univerjs-icon\x20univerjs-icon-','error','_urlService'];_0x475f=function(){return _0x329b7f;};return _0x475f();}let Se=class extends a[_0x57a25a(0x1c0)]{constructor(_0xe337e3,_0x177239,_0x4b3b69,_0x238935,_0x2c6c6e,_0x468662,_0x25ac88,_0x4eec0b){const _0x78f553=_0x57a25a;super(),h(this,_0x78f553(0xdf),!0x1),h(this,_0x78f553(0x170),!0x1),h(this,_0x78f553(0x12c),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x78f553(0x12c)]['asObservable']()),h(this,_0x78f553(0x14e),new d[(_0x78f553(0x290))]([])),h(this,_0x78f553(0x2c4),this[_0x78f553(0x14e)]['pipe'](d[_0x78f553(0x27d)](nt))),h(this,_0x78f553(0x304),a['debounce']((_0x29dae7,_0x4d9bff)=>{const _0x5f563c=_0x78f553,_0xd36a33={'eventID':m[_0x5f563c(0x1db)][_0x5f563c(0x217)],'data':{'unitID':this[_0x5f563c(0x230)],'memberID':this[_0x5f563c(0x287)]['getMemberID'](),'selection':Ee[_0x5f563c(0xc3)](_0x29dae7,_0x4d9bff['range'])}};this[_0x5f563c(0x287)][_0x5f563c(0x1f4)](_0xd36a33,this['unitID']);},rt)),(this['unitID']=_0xe337e3,this[_0x78f553(0x287)]=_0x177239,this[_0x78f553(0x24d)]=_0x4b3b69,this[_0x78f553(0x2c6)]=_0x238935,this[_0x78f553(0x1fb)]=_0x2c6c6e,this[_0x78f553(0x265)]=_0x468662,this[_0x78f553(0x2d0)]=_0x25ac88,this[_0x78f553(0x18f)]=_0x4eec0b);}get[_0x57a25a(0xeb)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5b4be1=_0x57a25a;return this[_0x5b4be1(0x14e)][_0x5b4be1(0xfa)]();}[_0x57a25a(0x1eb)](){const _0x59a63f=_0x57a25a;super[_0x59a63f(0x1eb)](),this[_0x59a63f(0x12c)]['next'](new Map()),this['_cursorInfo$'][_0x59a63f(0xec)](),this[_0x59a63f(0x14e)][_0x59a63f(0x28d)]([]),this[_0x59a63f(0x14e)][_0x59a63f(0xec)]();}[_0x57a25a(0x23d)](){const _0x627817=_0x57a25a;this[_0x627817(0x170)]||(this[_0x627817(0x170)]=!0x0,this[_0x627817(0x287)][_0x627817(0x23e)][_0x627817(0x25e)](d[_0x627817(0x13c)](this[_0x627817(0x2ed)]))[_0x627817(0x305)](_0x54af8e=>{const _0x21f081=_0x627817;_0x54af8e===u['SessionStatus'][_0x21f081(0x14a)]?this['_toggleOnline']():this[_0x21f081(0x323)]();}),this['_session']['event$'][_0x627817(0x25e)](d[_0x627817(0x13c)](this[_0x627817(0x2ed)]))[_0x627817(0x305)](_0x1db538=>{const _0x407350=_0x627817,_0x135c5f=_0x1db538[_0x407350(0x31c)];_0x135c5f===m['CollaborationEvent'][_0x407350(0x217)]&&this[_0x407350(0x165)](_0x1db538),_0x135c5f===m['CollaborationEvent'][_0x407350(0x1aa)]&&this[_0x407350(0x2e0)](_0x1db538);}),this[_0x627817(0x237)](),this[_0x627817(0x293)](this[_0x627817(0x2d0)][_0x627817(0x2de)](_0xd941d2=>{const _0x2ecd34=_0x627817;if(this[_0x2ecd34(0xdf)]&&_0xd941d2['id']===g[_0x2ecd34(0x2ab)]['id']&&_0xd941d2['params']['unitId']===this[_0x2ecd34(0x230)]){const _0x45ce0b=_0xd941d2[_0x2ecd34(0x310)];this[_0x2ecd34(0x304)](_0x45ce0b['subUnitId'],_0x45ce0b[_0x2ecd34(0x1e6)][0x0]);}})));}[_0x57a25a(0x165)](_0x207292){const _0x206b6d=_0x57a25a;var _0x133411,_0x40d3c3;const {memberID:_0x18e0ca,selection:_0x4c33ba}=_0x207292[_0x206b6d(0xe5)],{sheetName:_0x27be45,range:_0x312596}=Ee['deserializeRangeWithSheet'](_0x4c33ba),_0x13bbe3={'name':(_0x40d3c3=(_0x133411=this[_0x206b6d(0x1fb)]['getMember'](this[_0x206b6d(0x230)],_0x18e0ca))==null?void 0x0:_0x133411[_0x206b6d(0x21e)])!=null?_0x40d3c3:_0x206b6d(0x26c),'range':this[_0x206b6d(0x139)](_0x27be45,_0x312596),'sheetID':_0x27be45,'color':this[_0x206b6d(0x2c6)][_0x206b6d(0x119)](_0x18e0ca),'selection':_0x4c33ba},_0x5f39f5=this['cursorInfo'];_0x5f39f5[_0x206b6d(0xb9)](_0x18e0ca,_0x13bbe3),this['_cursorInfo$'][_0x206b6d(0x28d)](_0x5f39f5);}[_0x57a25a(0x2e0)](_0x356e7f){const _0x2b60f7=_0x57a25a,{memberID:_0x21dbc2}=_0x356e7f[_0x2b60f7(0xe5)],_0x432cb1=this['cursorInfo'];_0x432cb1[_0x2b60f7(0x234)](_0x21dbc2),this[_0x2b60f7(0x12c)][_0x2b60f7(0x28d)](_0x432cb1);}[_0x57a25a(0x139)](_0xb05c60,_0x213dd2){const _0x59a894=_0x57a25a;var _0x5cb04d,_0x59679d;const _0x856125=(_0x59679d=(_0x5cb04d=this[_0x59a894(0x265)]['getUniverSheetInstance'](this[_0x59a894(0x230)]))==null?void 0x0:_0x5cb04d[_0x59a894(0x2d9)](_0xb05c60))==null?void 0x0:_0x59679d[_0x59a894(0x26b)]();return(_0x856125==null?void 0x0:_0x856125[_0x59a894(0x2d1)](_0x51fdba=>a[_0x59a894(0x243)]['contains'](_0x51fdba,_0x213dd2)))||_0x213dd2;}['_onRefRangeChange'](){const _0x1f2523=_0x57a25a,_0x45562b=new a[(_0x1f2523(0x10c))](),_0xe255c7=ot(),_0x10a9be=()=>{const _0x86e577=_0x1f2523;_0x45562b[_0x86e577(0x1eb)]();const _0x5d96ef=(_0x43080b,_0x3cb672,_0x3ec416,_0x7293a2)=>{const _0x5258cd=_0x86e577;let _0x7096c7=[];switch(_0x43080b['id']){case g[_0x5258cd(0xc4)][_0x5258cd(0x30d)]:{_0x7096c7=g[_0x5258cd(0x1da)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0x315)]:{_0x7096c7=g['handleDeleteRangeMoveUp'](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0x2b3)]:{_0x7096c7=g[_0x5258cd(0x168)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0xda)]:{_0x7096c7=g[_0x5258cd(0x115)](_0x43080b,_0x7293a2);break;}case g['EffectRefRangId'][_0x5258cd(0x222)]:{_0x7096c7=g[_0x5258cd(0x26f)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)]['InsertRowCommandId']:{_0x7096c7=g[_0x5258cd(0xc9)](_0x43080b,_0x7293a2);break;}case g['EffectRefRangId'][_0x5258cd(0x31f)]:{_0x7096c7=g[_0x5258cd(0x2df)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0x1b7)]:{_0x7096c7=g[_0x5258cd(0x2ea)](_0x43080b,_0x7293a2);break;}case g['EffectRefRangId'][_0x5258cd(0x17b)]:{_0x7096c7=g['handleIRemoveRow'](_0x43080b,_0x7293a2);break;}}const _0x4c5210=g[_0x5258cd(0x23f)](_0x7096c7,_0x7293a2),_0x35c267=this['cursorInfo'][_0x5258cd(0x1dd)](_0x3cb672);if(_0x35c267&&_0x4c5210){const _0x470583={..._0x35c267,'range':_0x4c5210};this[_0x5258cd(0xeb)][_0x5258cd(0xb9)](_0x3cb672,_0x470583),_0xe255c7(()=>{const _0x1b2210=_0x5258cd,_0x59168a=this[_0x1b2210(0x18f)][_0x1b2210(0x203)](_0x4c5210,_0x220529=>(_0x59168a[_0x1b2210(0x1eb)](),_0x5d96ef(_0x220529,_0x3cb672,_0x3ec416,_0x4c5210)));_0x45562b[_0x1b2210(0xdb)](_0x59168a);});}return{'redos':[],'undos':[]};};this[_0x86e577(0xeb)][_0x86e577(0x2ef)]((_0x9dd3f1,_0x2827fe)=>{const _0xa8bc46=_0x86e577,{range:_0x31a87c,sheetID:_0x107181}=_0x9dd3f1,_0x1b52b4=this[_0xa8bc46(0x18f)][_0xa8bc46(0x203)](_0x31a87c,_0x3c5327=>(_0x1b52b4[_0xa8bc46(0x1eb)](),_0x5d96ef(_0x3c5327,_0x2827fe,_0x107181,_0x31a87c)));_0x45562b['add'](_0x1b52b4);});};this[_0x1f2523(0x293)](a[_0x1f2523(0x32b)](this[_0x1f2523(0x12c)][_0x1f2523(0x305)](()=>{_0x10a9be();})));}[_0x57a25a(0x2c1)](){const _0x1f021f=_0x57a25a;var _0x2f9133,_0x272ad4;if(this[_0x1f021f(0xdf)]=!0x0,((_0x2f9133=this[_0x1f021f(0x265)][_0x1f021f(0x171)]())==null?void 0x0:_0x2f9133[_0x1f021f(0x15c)]())!==this[_0x1f021f(0x230)])return;const _0x4c0bf8=(_0x272ad4=this['_injector'][_0x1f021f(0x1dd)](g['SheetsSelectionsService'])[_0x1f021f(0x309)]())==null?void 0x0:_0x272ad4[0x0],_0x5919c5=this['_univerInstanceService'][_0x1f021f(0x108)](a[_0x1f021f(0x2a9)][_0x1f021f(0x248)])['getActiveSheet']();_0x4c0bf8&&_0x5919c5&&this[_0x1f021f(0x304)](_0x5919c5[_0x1f021f(0xff)](),_0x4c0bf8);}[_0x57a25a(0x323)](){const _0x4547b7=_0x57a25a;this[_0x4547b7(0xdf)]=!0x1;}};Se=it([w(0x2,a[_0x57a25a(0x17f)](a['Injector'])),w(0x3,a['Inject'](me)),w(0x4,a[_0x57a25a(0x17f)](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x57a25a(0x1a2)]),w(0x7,a['Inject'](g[_0x57a25a(0x233)]))],Se);var at=Object[_0x57a25a(0xbe)],ct=(_0x57e5ea,_0x37aa9e,_0x4fdc1a,_0x21f23d)=>{const _0x59359d=_0x57a25a;for(var _0x718f1e=_0x21f23d>0x1?void 0x0:_0x21f23d?at(_0x37aa9e,_0x4fdc1a):_0x37aa9e,_0x1b9b61=_0x57e5ea[_0x59359d(0x25f)]-0x1,_0x4e563e;_0x1b9b61>=0x0;_0x1b9b61--)(_0x4e563e=_0x57e5ea[_0x1b9b61])&&(_0x718f1e=_0x4e563e(_0x718f1e)||_0x718f1e);return _0x718f1e;},ie=(_0x596a42,_0x2a103c)=>(_0x2f0b91,_0x4582a4)=>_0x2a103c(_0x2f0b91,_0x4582a4,_0x596a42);let x=class extends a[_0x57a25a(0x1c0)]{constructor(_0x149480,_0x1bc814,_0x29c8f0){const _0x1cc7c9=_0x57a25a;super(),h(this,_0x1cc7c9(0x209),new Map()),h(this,_0x1cc7c9(0x318),new d[(_0x1cc7c9(0x1fe))]()),(this[_0x1cc7c9(0x265)]=_0x149480,this[_0x1cc7c9(0x24d)]=_0x1bc814,this[_0x1cc7c9(0x1e1)]=_0x29c8f0,this['_init']());}['dispose'](){const _0x379de6=_0x57a25a;super[_0x379de6(0x1eb)](),this[_0x379de6(0x318)][_0x379de6(0xec)](),this[_0x379de6(0x209)][_0x379de6(0x2ef)](_0x500de4=>_0x500de4['dispose']());}[_0x57a25a(0x15e)](_0x2c662b){const _0x158b70=_0x57a25a;return this['_entities'][_0x158b70(0x177)](_0x2c662b)?this[_0x158b70(0x209)]['get'](_0x2c662b)[_0x158b70(0x313)]:this[_0x158b70(0x318)][_0x158b70(0x25e)](d[_0x158b70(0x303)](_0x494d4d=>_0x494d4d[_0x158b70(0x230)]===_0x2c662b),d[_0x158b70(0x1f1)](_0x171ec8=>_0x171ec8[_0x158b70(0x313)]));}[_0x57a25a(0x170)](){const _0x50711e=_0x57a25a;this[_0x50711e(0x265)][_0x50711e(0x30a)](a[_0x50711e(0x2a9)][_0x50711e(0x248)])['pipe'](d['takeUntil'](this[_0x50711e(0x2ed)]))['subscribe'](async _0x2109fb=>{const _0x58550d=_0x50711e,_0x605b30=_0x2109fb[_0x58550d(0x15c)](),_0x5d2e2b=await this['_startSheetCollabCursor'](_0x605b30);this['_entityInit$'][_0x58550d(0x28d)](_0x5d2e2b),this['_entities'][_0x58550d(0xb9)](_0x605b30,_0x5d2e2b);}),this['_univerInstanceService'][_0x50711e(0x30a)](a[_0x50711e(0x2a9)][_0x50711e(0xc2)])[_0x50711e(0x25e)](d[_0x50711e(0x13c)](this[_0x50711e(0x2ed)]))['pipe'](d[_0x50711e(0x303)](_0x214dba=>!_0x214dba[_0x50711e(0x15c)]()[_0x50711e(0x24f)]('__')))[_0x50711e(0x305)](async _0x4ddf01=>{const _0xb562d1=_0x50711e,_0xd53a0c=_0x4ddf01[_0xb562d1(0x15c)](),_0x2db99a=await this[_0xb562d1(0x275)](_0xd53a0c);this['_entityInit$'][_0xb562d1(0x28d)](_0x2db99a),this['_entities'][_0xb562d1(0xb9)](_0xd53a0c,_0x2db99a);}),d[_0x50711e(0x21d)](this[_0x50711e(0x265)][_0x50711e(0x176)](a['UniverInstanceType']['UNIVER_DOC']),this[_0x50711e(0x265)][_0x50711e(0x176)](a[_0x50711e(0x2a9)][_0x50711e(0x248)]))['pipe'](d[_0x50711e(0x13c)](this[_0x50711e(0x2ed)]))['subscribe'](_0x58b719=>{const _0xd7f5df=_0x50711e,_0x25c040=_0x58b719[_0xd7f5df(0x15c)](),_0x2b41e6=this['_entities'][_0xd7f5df(0x1dd)](_0x25c040);_0x2b41e6&&(_0x2b41e6[_0xd7f5df(0x1eb)](),this[_0xd7f5df(0x209)]['delete'](_0x25c040));});}async[_0x57a25a(0x1d0)](_0x4c22d9){const _0x15e3c3=_0x57a25a,_0x1a95d7=await this['_collabSessionService'][_0x15e3c3(0x1f6)](_0x4c22d9),_0x2492b4=this[_0x15e3c3(0x24d)][_0x15e3c3(0xdc)](Se,_0x4c22d9,_0x1a95d7);return _0x2492b4[_0x15e3c3(0x23d)](),_0x2492b4;}async[_0x57a25a(0x275)](_0xd1c7fe){const _0x3a0ffb=_0x57a25a,_0x2ddad8=await this[_0x3a0ffb(0x1e1)][_0x3a0ffb(0x1f6)](_0xd1c7fe),_0x1ac51b=this[_0x3a0ffb(0x24d)][_0x3a0ffb(0xdc)](fe,_0xd1c7fe,_0x2ddad8);return _0x1ac51b[_0x3a0ffb(0x23d)](),_0x1ac51b;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),ie(0x2,a[_0x57a25a(0x17f)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x459bcd,_0xb1b0dc){const _0x105209=_0x57a25a;let {radius:_0x2145a8,width:_0x18ce71,height:_0x42843a}=_0xb1b0dc;_0x2145a8=_0x2145a8!=null?_0x2145a8:0x0,_0x18ce71=_0x18ce71!=null?_0x18ce71:0x1e,_0x42843a=_0x42843a!=null?_0x42843a:0x1e;let _0x2c3d0b=0x0,_0x4055c1=0x0,_0x1f4dc3=0x0;_0x2c3d0b=_0x4055c1=_0x1f4dc3=Math[_0x105209(0x118)](_0x2145a8,_0x18ce71/0x2,_0x42843a/0x2),_0x459bcd[_0x105209(0x149)](),_0x459bcd['moveTo'](_0x2c3d0b,0x0),_0x459bcd['lineTo'](_0x18ce71-_0x4055c1,0x0),_0x459bcd['arc'](_0x18ce71-_0x4055c1,_0x4055c1,_0x4055c1,Math['PI']*0x3/0x2,0x0,!0x1),_0x459bcd['lineTo'](_0x18ce71,_0x42843a-_0x1f4dc3),_0x459bcd[_0x105209(0xca)](_0x18ce71-_0x1f4dc3,_0x42843a-_0x1f4dc3,_0x1f4dc3,0x0,Math['PI']/0x2,!0x1),_0x459bcd[_0x105209(0x2a7)](0x0,_0x42843a),_0x459bcd['lineTo'](0x0,_0x2c3d0b),_0x459bcd['arc'](_0x2c3d0b,_0x2c3d0b,_0x2c3d0b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x459bcd[_0x105209(0xb4)](),_0xb1b0dc[_0x105209(0x31e)]&&(_0x459bcd[_0x105209(0x2e2)](),_0x459bcd['fillStyle']=_0xb1b0dc['fill'],_0xb1b0dc['fillRule']===_0x105209(0x13b)?_0x459bcd[_0x105209(0x31e)](_0x105209(0x13b)):_0x459bcd['fill'](),_0x459bcd[_0x105209(0xfe)]());}class ee extends p[_0x57a25a(0x173)]{constructor(_0x850197,_0x5d65ee){const _0x3ea12e=_0x57a25a;super(_0x850197,_0x5d65ee),h(this,'color'),h(this,_0x3ea12e(0xc8)),(this[_0x3ea12e(0xf9)]=_0x5d65ee==null?void 0x0:_0x5d65ee['color'],this['text']=_0x5d65ee==null?void 0x0:_0x5d65ee[_0x3ea12e(0xc8)]);}static[_0x57a25a(0x266)](_0x3066ca,_0x158dd9){const _0x17d799=_0x57a25a,{text:_0x4d14d8,color:_0x48181d}=_0x158dd9;_0x3066ca[_0x17d799(0x2e2)](),_0x3066ca[_0x17d799(0x1dc)]=_0x17d799(0x1bc);const _0x4b91b9=_0x3066ca[_0x17d799(0x1ab)](_0x4d14d8)['width'],_0x2700ef=Math[_0x17d799(0x118)](_0x4b91b9+0x2*ne,Re);_t(_0x3066ca,{'height':K,'radius':0x4,'width':_0x2700ef,'fill':_0x48181d}),_0x3066ca[_0x17d799(0x24e)]='#FFF';const _0x13a585=ne,_0x1b0224=K-lt,_0x87f8e0=Re-0x2*ne;if(_0x4b91b9>_0x87f8e0){let _0x4d576f='',_0x437513=0x0;for(const _0x47abe1 of _0x4d14d8){const _0x24437f=_0x3066ca['measureText'](_0x47abe1)['width'];if(_0x437513+_0x24437f<=_0x87f8e0-_0x3066ca[_0x17d799(0x1ab)](_0x17d799(0x16a))['width'])_0x4d576f+=_0x47abe1,_0x437513+=_0x24437f;else{_0x4d576f+='...';break;}}_0x3066ca[_0x17d799(0x18d)](_0x4d576f,_0x13a585,_0x1b0224);}else _0x3066ca[_0x17d799(0x18d)](_0x4d14d8,_0x13a585,_0x1b0224);_0x3066ca['restore']();}[_0x57a25a(0xe4)](_0x868b6c){const _0x57e810=_0x57a25a;ee[_0x57e810(0x266)](_0x868b6c,this);}}const re=_0x57a25a(0xd4),ht=_0x57a25a(0x22a),ut=_0x57a25a(0x220),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x57a25a(0x22b);class De{constructor(_0x4e6f95,_0x1f8b37,_0x5abf19,_0xcfd34b){const _0x4ac802=_0x57a25a;h(this,_0x4ac802(0x138),[]),h(this,'_anchor',null),h(this,_0x4ac802(0x104),null),h(this,'_anchorDot',null),h(this,_0x4ac802(0x1cf),null),h(this,'_eventUnsubscribe',null),(this[_0x4ac802(0x1a7)]=_0x4e6f95,this['_scene']=_0x1f8b37,this[_0x4ac802(0xe7)]=_0x5abf19,this[_0x4ac802(0xbf)]=_0xcfd34b,this[_0x4ac802(0x29b)]());}set[_0x57a25a(0x308)](_0x222495){const _0xf57b61=_0x57a25a;_0x222495?(this[_0xf57b61(0x252)]&&this['_anchorDot']['hide'](),this[_0xf57b61(0x104)]&&this[_0xf57b61(0x104)][_0xf57b61(0x301)]()):(this['_anchorDot']&&this['_anchorDot'][_0xf57b61(0x301)](),this[_0xf57b61(0x104)]&&this['_textBubble'][_0xf57b61(0x2bd)]());}[_0x57a25a(0x1eb)](){const _0x507016=_0x57a25a;for(const _0x4ba8cd of this[_0x507016(0x138)])_0x4ba8cd[_0x507016(0x1eb)]();this[_0x507016(0x104)]&&this[_0x507016(0x104)]['dispose'](),this[_0x507016(0x252)]&&this['_anchorDot']['dispose'](),this[_0x507016(0x151)]&&this[_0x507016(0x151)][_0x507016(0x1eb)](),this['_eventUnsubscribe']&&this[_0x507016(0x2be)]();}[_0x57a25a(0x29b)](){const _0x1e01b9=_0x57a25a;var _0x4d9880;const {_docSkeleton:_0x353495,_document:_0x6a2835}=this,{color:_0x1bb0aa,name:_0x322b1d,ranges:_0x4087e7}=this[_0x1e01b9(0x1a7)],_0x2fcd85=_0x6a2835[_0x1e01b9(0xf0)](),{docsLeft:_0x3df21b,docsTop:_0x2fb3c4}=_0x2fcd85,_0x337ad3=new b['NodePositionConvertToCursor'](_0x2fcd85,_0x353495);for(const {startOffset:_0x52d012,endOffset:_0x10e1c6,rangeType:_0x1f90db,segmentId:_0x58320a,segmentPage:_0x238a75,collapsed:_0x5a90ff,isActive:_0x1f4f2b}of _0x4087e7){const _0x349ec5=_0x353495[_0x1e01b9(0xbc)](_0x52d012,!0x0,_0x58320a,_0x238a75);let _0x126c0e=_0x353495[_0x1e01b9(0xbc)](_0x10e1c6,!0x0,_0x58320a,_0x238a75);if(_0x126c0e==null&&(_0x126c0e=_0x353495['findNodePositionByCharIndex'](_0x10e1c6-0x1,!0x1,_0x58320a,_0x238a75)),_0x1f4f2b){const {contentBoxPointGroup:_0x1f260e}=_0x337ad3['getRangePointData'](_0x126c0e,_0x126c0e);if(_0x1f260e[_0x1e01b9(0x25f)]===0x0)continue;this[_0x1e01b9(0x250)](_0x1bb0aa,_0x1f260e,_0x3df21b,_0x2fb3c4,_0x322b1d),this['_eventUnsubscribe']=this[_0x1e01b9(0x157)]();}if(_0x349ec5&&_0x126c0e){if(_0x1f90db===a[_0x1e01b9(0x20f)][_0x1e01b9(0x272)]){const _0x3ca4d7=new b[(_0x1e01b9(0x130))](_0x2fcd85,_0x353495),{pointGroup:_0x1cf106}=(_0x4d9880=_0x3ca4d7[_0x1e01b9(0xb6)](_0x349ec5,_0x126c0e))!=null?_0x4d9880:{};if(_0x1cf106==null||_0x1cf106['length']===0x0)continue;this['_drawRectRange'](_0x1bb0aa,_0x1cf106,_0x3df21b,_0x2fb3c4);}else{if(!_0x5a90ff){const {borderBoxPointGroup:_0x11cb01}=_0x337ad3['getRangePointData'](_0x349ec5,_0x126c0e);if(_0x11cb01[_0x1e01b9(0x25f)]===0x0)continue;this[_0x1e01b9(0x205)](_0x1bb0aa,_0x11cb01,_0x3df21b,_0x2fb3c4);}}}}}[_0x57a25a(0x250)](_0x445553,_0x5ad1ef,_0x45d215,_0x1ffeed,_0x3da4b6){const _0x55af02=_0x57a25a,_0x41716e=this[_0x55af02(0xe1)](_0x5ad1ef),{left:_0x57babf,top:_0x13bfaf,height:_0x425fa0}=_0x41716e,_0x409f34=this['_getScale'](),_0x2ad22c=ft/_0x409f34,_0x3704ae=new p[(_0x55af02(0x101))](re+a['Tools']['generateRandomId'](k),{'left':_0x57babf+_0x45d215-_0x2ad22c,'top':_0x13bfaf+_0x1ffeed,'height':_0x425fa0,'width':dt,'fill':_0x445553||p['getColor'](a[_0x55af02(0x153)][_0x55af02(0x28f)],0x0),'strokeWidth':_0x2ad22c,'stroke':St,'evented':!0x0});this[_0x55af02(0x151)]=_0x3704ae,this[_0x55af02(0xfd)][_0x55af02(0x208)](_0x3704ae,b[_0x55af02(0x1e9)]);const _0x37ad0b=new p[(_0x55af02(0x101))](re+a[_0x55af02(0x225)][_0x55af02(0xce)](k),{'left':_0x57babf+_0x45d215-_0x2ad22c,'top':_0x13bfaf+_0x1ffeed-oe/0x2,'height':oe,'width':oe,'fill':_0x445553||p[_0x55af02(0x17c)](a[_0x55af02(0x153)][_0x55af02(0x28f)],0x0),'strokeWidth':0x0,'stroke':_0x445553||p[_0x55af02(0x17c)](a[_0x55af02(0x153)]['black'],0x0),'evented':!0x1});this[_0x55af02(0x252)]=_0x37ad0b,this['_scene']['addObject'](_0x37ad0b,b[_0x55af02(0x1e9)]);const _0x2f3c2a=new ee(re+a[_0x55af02(0x225)]['generateRandomId'](k),{'left':_0x57babf+_0x45d215-_0x2ad22c,'top':_0x13bfaf+_0x1ffeed-K,'text':_0x3da4b6,'color':_0x445553});this[_0x55af02(0x104)]=_0x2f3c2a,this['_scene'][_0x55af02(0x208)](_0x2f3c2a,b[_0x55af02(0x1e9)]),this['_hover']=!0x1;}[_0x57a25a(0x157)](){const _0x176120=_0x57a25a,_0x477472=this['_anchor'][_0x176120(0x178)][_0x176120(0x182)](()=>{const _0x19134b=_0x176120;this[_0x19134b(0x308)]=!0x0;}),_0x18485d=this['_anchor'][_0x176120(0x277)]['subscribeEvent'](()=>{const _0x4f216b=_0x176120;this[_0x4f216b(0x1cf)]&&clearTimeout(this[_0x4f216b(0x1cf)]),this[_0x4f216b(0x1cf)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4c6a90=_0x176120;_0x477472[_0x4c6a90(0x163)](),_0x18485d[_0x4c6a90(0x163)]();};}[_0x57a25a(0x205)](_0x5755b7,_0x3d2dcf,_0x24cda3,_0x25349f){const _0x535d74=_0x57a25a,_0x5425a0=new a[(_0x535d74(0x169))](_0x5755b7)['setAlpha'](0.2)[_0x535d74(0x1d5)](),_0x1247a3=new p[(_0x535d74(0x16f))](ht+a['Tools'][_0x535d74(0xce)](k),{'pointsGroup':_0x3d2dcf,'fill':_0x5425a0||p[_0x535d74(0x17c)](a[_0x535d74(0x153)][_0x535d74(0x28f)],0.2),'left':_0x24cda3,'top':_0x25349f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x535d74(0x138)][_0x535d74(0x11f)](_0x1247a3),this['_scene'][_0x535d74(0x208)](_0x1247a3,b['TEXT_RANGE_LAYER_INDEX']);}[_0x57a25a(0xd1)](_0x39a210,_0xfd5fe3,_0x3713c6,_0x4fccd6){const _0x26186e=_0x57a25a,_0x406f04=new a['ColorKit'](_0x39a210)['setAlpha'](0.2)['toRgbString'](),_0x50efe1=new p[(_0x26186e(0x16f))](ut+a[_0x26186e(0x225)][_0x26186e(0xce)](k),{'pointsGroup':_0xfd5fe3,'fill':_0x406f04||p[_0x26186e(0x17c)](a[_0x26186e(0x153)]['black'],0.2),'left':_0x3713c6,'top':_0x4fccd6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26186e(0x138)][_0x26186e(0x11f)](_0x50efe1),this[_0x26186e(0xfd)]['addObject'](_0x50efe1,b['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x5b718d){const _0x39e078=_0x5b718d[0x0],_0x4c28c4=_0x39e078[0x0],_0x701e0b=_0x39e078[0x2],{x:_0x4e697b,y:_0x2a84a6}=_0x4c28c4,{x:_0x3db5b8,y:_0x532a80}=_0x701e0b;return{'left':_0x4e697b,'top':_0x2a84a6,'width':_0x3db5b8-_0x4e697b,'height':_0x532a80-_0x2a84a6};}[_0x57a25a(0x2eb)](){const _0x3a0e5b=_0x57a25a,{scaleX:_0x2af1e1,scaleY:_0x458715}=this[_0x3a0e5b(0xfd)][_0x3a0e5b(0x253)]();return Math[_0x3a0e5b(0x1be)](_0x2af1e1,_0x458715);}}var It=Object[_0x57a25a(0xbe)],vt=(_0x1b4b32,_0x509524,_0x315bf8,_0x39de0d)=>{const _0x3836fa=_0x57a25a;for(var _0x24dab0=_0x39de0d>0x1?void 0x0:_0x39de0d?It(_0x509524,_0x315bf8):_0x509524,_0x504402=_0x1b4b32[_0x3836fa(0x25f)]-0x1,_0x2f6848;_0x504402>=0x0;_0x504402--)(_0x2f6848=_0x1b4b32[_0x504402])&&(_0x24dab0=_0x2f6848(_0x24dab0)||_0x24dab0);return _0x24dab0;},W=(_0x4d4529,_0x18525d)=>(_0x13a1df,_0x3eca29)=>_0x18525d(_0x13a1df,_0x3eca29,_0x4d4529);let Ie=class extends a[_0x57a25a(0x1c0)]{constructor(_0x5caa19,_0x52d953,_0x10ec18,_0x398570,_0x90c76a){const _0x2291e6=_0x57a25a;super(),h(this,_0x2291e6(0x195),[]),h(this,_0x2291e6(0x27f),[]),(this['_context']=_0x5caa19,this[_0x2291e6(0x161)]=_0x52d953,this['_collabCursorController']=_0x10ec18,this[_0x2291e6(0x2d0)]=_0x398570,this[_0x2291e6(0x23b)]=_0x90c76a,this[_0x2291e6(0x170)]());}[_0x57a25a(0x170)](){const _0x47324f=_0x57a25a,_0x516ffd=this[_0x47324f(0x1ca)][_0x47324f(0x110)],_0x5ac198=this[_0x47324f(0x161)];this[_0x47324f(0x293)](d[_0x47324f(0x150)]([this[_0x47324f(0x219)][_0x47324f(0x15e)](_0x516ffd),this[_0x47324f(0x23b)]['currentTheme$']])[_0x47324f(0x25e)]($[_0x47324f(0x2d8)](([_0x552573,_0x450532])=>({'skeleton':_0x5ac198[_0x47324f(0xee)](),'cursors':[..._0x552573[_0x47324f(0x263)]()]['flatMap'](_0x43a367=>({..._0x43a367,'color':this[_0x47324f(0x23b)][_0x47324f(0x2f6)](_0x43a367[_0x47324f(0xf9)])}))})))[_0x47324f(0x305)](_0x5793fe=>{const _0x54e442=_0x47324f;if(this[_0x54e442(0x1e0)](),_0x5793fe){const {skeleton:_0x437a0f,cursors:_0x1c96e0}=_0x5793fe;this[_0x54e442(0x19b)](_0x437a0f,_0x1c96e0);}})),this[_0x47324f(0x20d)](),this[_0x47324f(0x328)]();}[_0x57a25a(0x19b)](_0x5d03c3,_0x2d70d2){const _0x1facdb=_0x57a25a,{scene:_0x1ca724,mainComponent:_0xb53f6b}=this[_0x1facdb(0x1ca)],_0x2aa86b=_0x2d70d2[_0x1facdb(0x2d8)](_0x29a0b8=>new De(_0x29a0b8,_0x1ca724,_0x5d03c3,_0xb53f6b));this[_0x1facdb(0x195)]=_0x2aa86b,this[_0x1facdb(0x27f)]=_0x2d70d2;}[_0x57a25a(0x1c1)](){const _0x338726=_0x57a25a;this[_0x338726(0x1e0)]();const {scene:_0x54cd7b,mainComponent:_0x472458}=this[_0x338726(0x1ca)],_0x5b8dab=this[_0x338726(0x161)][_0x338726(0xee)](),_0x29de17=this[_0x338726(0x27f)]['map'](_0x5c15b2=>new De(_0x5c15b2,_0x54cd7b,_0x5b8dab,_0x472458));this['_cursorShapes']=_0x29de17;}[_0x57a25a(0x1e0)](){const _0x3f42c6=_0x57a25a;this['_cursorShapes'][_0x3f42c6(0x2ef)](_0x11d83d=>_0x11d83d[_0x3f42c6(0x1eb)]()),this[_0x3f42c6(0x195)]=[];}[_0x57a25a(0x328)](){const _0x44d865=_0x57a25a,_0x470555=[b[_0x44d865(0xed)]['id']];this[_0x44d865(0x293)](this[_0x44d865(0x2d0)][_0x44d865(0x2de)](_0x2785c0=>{const _0x47e86e=_0x44d865;_0x470555[_0x47e86e(0x121)](_0x2785c0['id'])&&_0x2785c0[_0x47e86e(0x310)][_0x47e86e(0x110)]===this[_0x47e86e(0x1ca)][_0x47e86e(0x110)]&&this['_refreshCollabCursors']();}));}[_0x57a25a(0x20d)](){const _0x3f6bd3=_0x57a25a;this['disposeWithMe'](a[_0x3f6bd3(0x11e)](this[_0x3f6bd3(0x1ca)]['engine'][_0x3f6bd3(0xd7)])['pipe']($['filter'](_0x3cb86d=>_0x3cb86d[_0x3f6bd3(0x258)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3f6bd3(0x193)]),$[_0x3f6bd3(0x29f)](0x10))['subscribe'](()=>{const _0x8b4ed6=_0x3f6bd3;this[_0x8b4ed6(0x1c1)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x57a25a(0xe6)])),W(0x2,a[_0x57a25a(0x17f)](x)),W(0x3,a[_0x57a25a(0x1a2)]),W(0x4,a[_0x57a25a(0x17f)](a[_0x57a25a(0x12b)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x57a25a(0x173)]{constructor(_0x9df7e,_0x41e3eb){const _0x56165e=_0x57a25a;super(_0x9df7e,_0x41e3eb),h(this,_0x56165e(0x21a)),h(this,_0x56165e(0x184),!0x1),h(this,_0x56165e(0xbd)),h(this,'_name',''),h(this,'_labelPosition',_0x56165e(0x2ac)),h(this,'_backgroundColor'),(_0x41e3eb&&this[_0x56165e(0x268)](_0x41e3eb),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x56165e(0x268)]({'hovered':!0x0})),this[_0x56165e(0x277)][_0x56165e(0x182)](()=>this[_0x56165e(0x268)]({'hovered':!0x1})));}[_0x57a25a(0x268)](_0x29f6f1){const _0x50fdee=_0x57a25a;var _0xa91adf,_0x9951d9,_0xcbf3aa,_0x5d9eec,_0x14db93,_0x18cbc7;this[_0x50fdee(0x21a)]=(_0xa91adf=_0x29f6f1['color'])!=null?_0xa91adf:this[_0x50fdee(0x21a)],this['_hovered']=(_0x9951d9=_0x29f6f1['hovered'])!=null?_0x9951d9:this[_0x50fdee(0x184)],this[_0x50fdee(0xbd)]=(_0xcbf3aa=_0x29f6f1[_0x50fdee(0x296)])!=null?_0xcbf3aa:this[_0x50fdee(0xbd)],this[_0x50fdee(0x1a4)]=(_0x5d9eec=_0x29f6f1[_0x50fdee(0x21e)])!=null?_0x5d9eec:this[_0x50fdee(0x1a4)],this['_labelPosition']=(_0x14db93=_0x29f6f1['labelPosition'])!=null?_0x14db93:this[_0x50fdee(0x2cc)],this['_backgroundColor']=(_0x18cbc7=_0x29f6f1[_0x50fdee(0x2d6)])!=null?_0x18cbc7:this['_backgroundColor'],this[_0x50fdee(0x322)]({'width':_0x29f6f1[_0x50fdee(0xb8)],'height':_0x29f6f1[_0x50fdee(0x259)]});}[_0x57a25a(0x31b)](_0x4b69cd){const _0x33b1eb=_0x57a25a,{row:_0x15cfba,column:_0x4274e5}=_0x4b69cd;if(_0x15cfba>=this[_0x33b1eb(0xbd)][_0x33b1eb(0x24a)]&&_0x15cfba<=this[_0x33b1eb(0xbd)][_0x33b1eb(0x2c8)]&&_0x4274e5>=this[_0x33b1eb(0xbd)][_0x33b1eb(0x2dc)]&&_0x4274e5<=this[_0x33b1eb(0xbd)][_0x33b1eb(0xcc)]){this[_0x33b1eb(0x268)]({'hovered':!0x0});return;}this[_0x33b1eb(0x268)]({'hovered':!0x1});}[_0x57a25a(0x21f)](_0x497bd8){return!0x1;}[_0x57a25a(0xe4)](_0x59fe6f){const _0xd952c2=_0x57a25a;p[_0xd952c2(0x101)]['drawWith'](_0x59fe6f,{'width':this[_0xd952c2(0xb8)],'height':this[_0xd952c2(0x259)],'strokeWidth':mt,'stroke':this[_0xd952c2(0x21a)],'evented':!0x1,'fill':this[_0xd952c2(0x172)]}),this[_0xd952c2(0x184)]&&(_0x59fe6f[_0xd952c2(0x2e2)](),_0x59fe6f[_0xd952c2(0x284)](0x1,0x0,0x0,0x1,this[_0xd952c2(0xb8)],this[_0xd952c2(0x2cc)]===_0xd952c2(0x23a)?0x0:-0x14),ee['drawWith'](_0x59fe6f,{'text':this[_0xd952c2(0x1a4)],'color':this[_0xd952c2(0x21a)]}),_0x59fe6f[_0xd952c2(0xfe)]());}}var Ct=Object[_0x57a25a(0xbe)],pt=(_0x38269a,_0x6b7814,_0x24ed23,_0x3225ba)=>{const _0xc7b2c4=_0x57a25a;for(var _0x24fbd9=_0x3225ba>0x1?void 0x0:_0x3225ba?Ct(_0x6b7814,_0x24ed23):_0x6b7814,_0x9bfec0=_0x38269a[_0xc7b2c4(0x25f)]-0x1,_0x272d5a;_0x9bfec0>=0x0;_0x9bfec0--)(_0x272d5a=_0x38269a[_0x9bfec0])&&(_0x24fbd9=_0x272d5a(_0x24fbd9)||_0x24fbd9);return _0x24fbd9;},ae=(_0x3d973f,_0x28601d)=>(_0x44993b,_0x31e8fc)=>_0x28601d(_0x44993b,_0x31e8fc,_0x3d973f);const bt=0x1389;let ve=class extends a[_0x57a25a(0x1c0)]{constructor(_0x5ce1e0,_0x3fc6f2,_0x15f4a6,_0x398864){const _0x521a1a=_0x57a25a;super(),h(this,'_cursors',new Set()),h(this,_0x521a1a(0x1ba),null),(this[_0x521a1a(0x1ca)]=_0x5ce1e0,this[_0x521a1a(0x298)]=_0x3fc6f2,this['_collabCursorController']=_0x15f4a6,this[_0x521a1a(0x23b)]=_0x398864,this[_0x521a1a(0x170)]());}[_0x57a25a(0x170)](){const _0x304ba2=_0x57a25a;this[_0x304ba2(0x298)]['currentSkeleton$'][_0x304ba2(0x25e)]($[_0x304ba2(0x13c)](this[_0x304ba2(0x2ed)]),$[_0x304ba2(0x1f1)](_0x2c2c0b=>{const _0x18d36c=_0x304ba2;if(_0x2c2c0b){const _0x6be78e=_0x2c2c0b['sheetId'];return d[_0x18d36c(0x150)](this[_0x18d36c(0x219)][_0x18d36c(0x15e)](this[_0x18d36c(0x1ca)][_0x18d36c(0x110)]),this[_0x18d36c(0x23b)][_0x18d36c(0x1d7)])[_0x18d36c(0x25e)]($['map'](([_0x464685,_0x1f9c0e])=>{const _0x3a305f=_0x18d36c,_0x34e901=new Map();return _0x464685[_0x3a305f(0x2ef)]((_0x24a907,_0x5398a1)=>{const _0x532637=_0x3a305f;if(_0x24a907[_0x532637(0x31d)]===_0x6be78e){const _0x462abb={..._0x24a907};_0x462abb[_0x532637(0xf9)]=this[_0x532637(0x23b)]['getColorFromTheme'](_0x24a907['color']),_0x34e901[_0x532637(0xb9)](_0x5398a1,_0x462abb);}}),{'skeleton':_0x2c2c0b,'cursors':_0x34e901};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x304ba2(0x305)](({skeleton:_0x16fb5f,cursors:_0x4eb1f4})=>{const _0xf6e9db=_0x304ba2;this[_0xf6e9db(0x1e0)](),_0x16fb5f&&this['_updateCollabCursors'](_0x16fb5f,_0x4eb1f4);}),this[_0x304ba2(0x298)][_0x304ba2(0x269)][_0x304ba2(0x305)](_0x296df1=>{const _0x3e10fc=_0x304ba2;if(_0x296df1==null)return;const {skeleton:_0x3f15b7}=_0x296df1,{scene:_0x1d7bf8}=this['_context'];_0x1d7bf8['onPointerMove$']['subscribeEvent'](a[_0x3e10fc(0x2fc)](_0x1fca10=>{const _0x48a423=_0x3e10fc;var _0x50a045,_0x105063;const {offsetX:_0x373dab,offsetY:_0x5d2d6f}=_0x1fca10,{x:_0x55b955,y:_0x5e9979}=_0x1d7bf8[_0x48a423(0x11a)](p['Vector2']['FromArray']([_0x373dab,_0x5d2d6f])),{scaleX:_0x376280,scaleY:_0x14b2d6}=_0x1d7bf8[_0x48a423(0x253)](),_0x7b5694=_0x1d7bf8[_0x48a423(0x282)](p[_0x48a423(0x1ee)]['VIEW_MAIN']),_0x2ed601=_0x1d7bf8[_0x48a423(0xe8)](p['Vector2']['FromArray']([_0x55b955,_0x5e9979]),_0x7b5694),_0x196368=_0x3f15b7[_0x48a423(0x28a)](_0x373dab,_0x5d2d6f,_0x376280,_0x14b2d6,_0x2ed601);((_0x50a045=this[_0x48a423(0x1ba)])==null?void 0x0:_0x50a045['column'])===_0x196368['column']&&((_0x105063=this[_0x48a423(0x1ba)])==null?void 0x0:_0x105063[_0x48a423(0x224)])===_0x196368['row']||this['_cursors'][_0x48a423(0x2ef)](_0x118ba3=>{_0x118ba3['onMouseMove'](_0x196368);});},0x64));});}[_0x57a25a(0x19b)](_0xc931d4,_0x5360a9){const _0x34828a=_0x57a25a;var _0x22245b;const _0x984c65=(_0x22245b=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x22245b[_0x34828a(0x1cc)];if(!_0x984c65)return;const _0x2b9cea=this[_0x34828a(0x1d1)]();if(!_0x2b9cea)return;this[_0x34828a(0x27f)][_0x34828a(0x2ef)](_0x2ef058=>{const _0xca3fe2=_0x34828a;_0x2ef058[_0xca3fe2(0x17d)]();});const {scene:_0x4ff70d}=_0x2b9cea,_0x3e302b=Et(Array[_0x34828a(0x2e6)](_0x5360a9[_0x34828a(0x263)]()))[_0x34828a(0x2d8)](_0x3847a8=>{const _0x34ac50=_0x34828a,{color:_0x162203,range:_0x1f925e,name:_0x3d48ae,selection:_0x434e81,sheetID:_0x39dd13}=_0x3847a8,{startColumn:_0x1aa7b6,startRow:_0x140094,endColumn:_0x10aa6c,endRow:_0x5479aa}=_0x1f925e,_0x58727c=X[_0x34ac50(0x20b)](_0x140094,_0x1aa7b6,_0x4ff70d,_0x984c65),_0x2dc002=X[_0x34ac50(0x20b)](_0x5479aa,_0x10aa6c,_0x4ff70d,_0x984c65),{columnHeaderHeightAndMarginTop:_0x5282dc}=_0x984c65,{startX:_0x2ac7c0,startY:_0x677e5c}=_0x58727c,{endX:_0x483447,endY:_0xba244c}=_0x2dc002,_0x4cb6bc=_0x483447-_0x2ac7c0,_0x46fdd8=_0xba244c-_0x677e5c,_0x43427a={'labelPosition':_0x677e5c-_0x5282dc>=K?_0x34ac50(0x2ac):_0x34ac50(0x23a),'sheetID':_0x39dd13,'range':_0x1f925e,'color':_0x162203,'name':_0x3d48ae,'selection':_0x434e81,'left':_0x2ac7c0,'top':_0x677e5c,'width':_0x4cb6bc,'height':_0x46fdd8,'evented':!0x1,'zIndex':bt};return new Ae(_0x3d48ae,_0x43427a);});_0x4ff70d[_0x34828a(0x1e8)](_0x3e302b,gt),this[_0x34828a(0x27f)]=new Set(_0x3e302b);}[_0x57a25a(0x1e0)](){const _0x38a2ee=_0x57a25a;var _0x14605f;(_0x14605f=this[_0x38a2ee(0x27f)])==null||_0x14605f[_0x38a2ee(0x2ef)](_0x4bb5b4=>_0x4bb5b4[_0x38a2ee(0x1eb)]());}[_0x57a25a(0x1d1)](){const _0x41a391=_0x57a25a;return X['getSheetObject'](this[_0x41a391(0x1ca)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x57a25a(0x17f)](X[_0x57a25a(0x1b5)])),ae(0x2,a[_0x57a25a(0x17f)](x)),ae(0x3,a[_0x57a25a(0x17f)](a[_0x57a25a(0x12b)]))],ve);function Et(_0x2c14ea){const _0x2e1c53=_0x57a25a,_0x3b3789=new Map();return _0x2c14ea[_0x2e1c53(0x2ef)](_0x2f8f9d=>{const _0x112f89=_0x2e1c53;if(_0x3b3789[_0x112f89(0x177)](_0x2f8f9d[_0x112f89(0x2fe)])){const _0xe2e4c8=_0x3b3789[_0x112f89(0x1dd)](_0x2f8f9d[_0x112f89(0x2fe)]);_0xe2e4c8[_0x112f89(0x21e)]+=',\x20'+_0x2f8f9d[_0x112f89(0x21e)];}else _0x3b3789[_0x112f89(0xb9)](_0x2f8f9d['selection'],_0x2f8f9d);}),Array['from'](_0x3b3789[_0x2e1c53(0x263)]());}var E=function(){const _0x2bf30c=_0x57a25a;return E=Object[_0x2bf30c(0x255)]||function(_0x29b6f2){const _0x43d0fd=_0x2bf30c;for(var _0x212bf4,_0xf77d94=0x1,_0x5373fb=arguments[_0x43d0fd(0x25f)];_0xf77d94<_0x5373fb;_0xf77d94++){_0x212bf4=arguments[_0xf77d94];for(var _0x2ebb4e in _0x212bf4)Object[_0x43d0fd(0x22c)][_0x43d0fd(0x10b)][_0x43d0fd(0x166)](_0x212bf4,_0x2ebb4e)&&(_0x29b6f2[_0x2ebb4e]=_0x212bf4[_0x2ebb4e]);}return _0x29b6f2;},E[_0x2bf30c(0xc0)](this,arguments);},Tt=function(_0x2e6554,_0x4d17){const _0x66e914=_0x57a25a;var _0x465279={};for(var _0x1af260 in _0x2e6554)Object[_0x66e914(0x22c)][_0x66e914(0x10b)]['call'](_0x2e6554,_0x1af260)&&_0x4d17['indexOf'](_0x1af260)<0x0&&(_0x465279[_0x1af260]=_0x2e6554[_0x1af260]);if(_0x2e6554!=null&&typeof Object[_0x66e914(0x295)]=='function'){for(var _0x1426f6=0x0,_0x1af260=Object['getOwnPropertySymbols'](_0x2e6554);_0x1426f6<_0x1af260[_0x66e914(0x25f)];_0x1426f6++)_0x4d17[_0x66e914(0x2f9)](_0x1af260[_0x1426f6])<0x0&&Object[_0x66e914(0x22c)]['propertyIsEnumerable'][_0x66e914(0x166)](_0x2e6554,_0x1af260[_0x1426f6])&&(_0x465279[_0x1af260[_0x1426f6]]=_0x2e6554[_0x1af260[_0x1426f6]]);}return _0x465279;},pe=M[_0x57a25a(0x30e)](function(_0x3afd06,_0x22aff1){const _0x2d76b0=_0x57a25a;var _0x3d40c6=_0x3afd06['icon'],_0x907bf2=_0x3afd06['id'],_0x18bde0=_0x3afd06[_0x2d76b0(0x1ff)],_0x5023f8=_0x3afd06[_0x2d76b0(0x240)],_0xdf27d1=Tt(_0x3afd06,[_0x2d76b0(0x25b),'id',_0x2d76b0(0x1ff),'extend']),_0x38e923=_0x2d76b0(0x200)[_0x2d76b0(0x11c)](_0x907bf2,'\x20')[_0x2d76b0(0x11c)](_0x18bde0||'')[_0x2d76b0(0x192)](),_0x3bca07=M['useRef']('_'[_0x2d76b0(0x11c)](Dt()));return we(_0x3d40c6,''[_0x2d76b0(0x11c)](_0x907bf2),{'defIds':_0x3d40c6[_0x2d76b0(0x27a)],'idSuffix':_0x3bca07['current']},E({'ref':_0x22aff1,'className':_0x38e923},_0xdf27d1),_0x5023f8);});function we(_0x2aeeec,_0x5c3b92,_0x4ed4ad,_0x2bf199,_0x18b270){const _0x1d7f55=_0x57a25a;return M['createElement'](_0x2aeeec[_0x1d7f55(0x215)],E(E({'key':_0x5c3b92},Ot(_0x2aeeec,_0x4ed4ad,_0x18b270)),_0x2bf199),(Rt(_0x2aeeec,_0x4ed4ad)[_0x1d7f55(0x1f5)]||[])[_0x1d7f55(0x2d8)](function(_0x54a9e3,_0x51677b){const _0x6c3621=_0x1d7f55;return we(_0x54a9e3,''[_0x6c3621(0x11c)](_0x5c3b92,'-')[_0x6c3621(0x11c)](_0x2aeeec[_0x6c3621(0x215)],'-')[_0x6c3621(0x11c)](_0x51677b),_0x4ed4ad,void 0x0,_0x18b270);}));}function Ot(_0x573e64,_0xacf61f,_0xa74557){const _0x299320=_0x57a25a;var _0x166781=E({},_0x573e64[_0x299320(0xea)]);_0xa74557!=null&&_0xa74557['colorChannel1']&&_0x166781['fill']===_0x299320(0x11d)&&(_0x166781[_0x299320(0x31e)]=_0xa74557['colorChannel1']),_0x573e64[_0x299320(0x215)]===_0x299320(0x317)&&_0x166781['id']&&(_0x166781['id']=_0x166781['id']+_0xacf61f[_0x299320(0xb7)]),Object['entries'](_0x166781)[_0x299320(0x2ef)](function(_0x2719a7){const _0x4cc43e=_0x299320;var _0xcb70d1=_0x2719a7[0x0],_0x5b952c=_0x2719a7[0x1];_0xcb70d1===_0x4cc43e(0x317)&&typeof _0x5b952c==_0x4cc43e(0x320)&&(_0x166781[_0xcb70d1]=_0x5b952c[_0x4cc43e(0x1ce)](/url\(#(.*)\)/,_0x4cc43e(0x2ee)[_0x4cc43e(0x11c)](_0xacf61f['idSuffix'],')')));});var _0x43c6ba=_0xacf61f[_0x299320(0x27a)];return!_0x43c6ba||_0x43c6ba[_0x299320(0x25f)]===0x0||(_0x573e64[_0x299320(0x215)]==='use'&&_0x166781[_0x299320(0x164)]&&(_0x166781[_0x299320(0x164)]=_0x166781[_0x299320(0x164)]+_0xacf61f[_0x299320(0xb7)]),Object[_0x299320(0xf7)](_0x166781)[_0x299320(0x2ef)](function(_0x2af2b6){const _0x1e7044=_0x299320;var _0x1c8955=_0x2af2b6[0x0],_0x1f0eec=_0x2af2b6[0x1];typeof _0x1f0eec==_0x1e7044(0x320)&&(_0x166781[_0x1c8955]=_0x1f0eec[_0x1e7044(0x1ce)](/url\(#(.*)\)/,_0x1e7044(0x2ee)[_0x1e7044(0x11c)](_0xacf61f[_0x1e7044(0xb7)],')')));})),_0x166781;}function Rt(_0x446c80,_0x5d248d){const _0x5ad819=_0x57a25a;var _0x119bf8,_0x1ffa05=_0x5d248d[_0x5ad819(0x27a)];return!_0x1ffa05||_0x1ffa05[_0x5ad819(0x25f)]===0x0?_0x446c80:_0x446c80[_0x5ad819(0x215)]===_0x5ad819(0x148)&&(!((_0x119bf8=_0x446c80[_0x5ad819(0x1f5)])===null||_0x119bf8===void 0x0)&&_0x119bf8[_0x5ad819(0x25f)])?E(E({},_0x446c80),{'children':_0x446c80[_0x5ad819(0x1f5)]['map'](function(_0x2d92c5){const _0x477d46=_0x5ad819;return typeof _0x2d92c5[_0x477d46(0xea)]['id']==_0x477d46(0x320)&&_0x1ffa05&&_0x1ffa05[_0x477d46(0x2f9)](_0x2d92c5[_0x477d46(0xea)]['id'])>-0x1?E(E({},_0x2d92c5),{'attrs':E(E({},_0x2d92c5[_0x477d46(0xea)]),{'id':_0x2d92c5[_0x477d46(0xea)]['id']+_0x5d248d['idSuffix']})}):_0x2d92c5;})}):_0x446c80;}function Dt(){const _0x196678=_0x57a25a;return Math[_0x196678(0x312)]()[_0x196678(0x229)](0x24)[_0x196678(0x329)](0x2,0x8);}pe[_0x57a25a(0x2e1)]='UniverIcon';var Ut={'tag':_0x57a25a(0x17e),'attrs':{'fill':_0x57a25a(0x1cd),'viewBox':_0x57a25a(0xd8),'width':_0x57a25a(0x2fb),'height':_0x57a25a(0x2fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a25a(0x221)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':'round','strokeLinejoin':_0x57a25a(0x1e4),'strokeWidth':1.2}}]},{'tag':_0x57a25a(0x148),'attrs':{},'children':[{'tag':_0x57a25a(0x132),'attrs':{'id':_0x57a25a(0x29c)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'fill':_0x57a25a(0x2b4),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x57a25a(0x29c)]},ye=M[_0x57a25a(0x30e)](function(_0x29795e,_0x113859){const _0x42ab1d=_0x57a25a;return M['createElement'](pe,Object[_0x42ab1d(0x255)]({},_0x29795e,{'id':'off-line-single','ref':_0x113859,'icon':Ut}));});ye[_0x57a25a(0x2e1)]=_0x57a25a(0x1f2);var Nt={'tag':'svg','attrs':{'fill':_0x57a25a(0x1cd),'viewBox':_0x57a25a(0x19a),'width':_0x57a25a(0x2fb),'height':_0x57a25a(0x2fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a25a(0x1a6)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'stroke':'currentColor','d':_0x57a25a(0x19d),'strokeLinecap':_0x57a25a(0x1e4),'strokeLinejoin':_0x57a25a(0x1e4),'strokeWidth':1.2}}]},{'tag':_0x57a25a(0x148),'attrs':{},'children':[{'tag':_0x57a25a(0x132),'attrs':{'id':_0x57a25a(0x2da)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'fill':_0x57a25a(0x2b4),'d':_0x57a25a(0xcd),'transform':_0x57a25a(0x2cf)}}]}]}],'defIds':[_0x57a25a(0x2da)]},$e=M[_0x57a25a(0x30e)](function(_0x4062a7,_0x5a0b70){const _0x30a69e=_0x57a25a;return M[_0x30a69e(0x145)](pe,Object[_0x30a69e(0x255)]({},_0x4062a7,{'id':'on-line-single','ref':_0x5a0b70,'icon':Nt}));});$e[_0x57a25a(0x2e1)]=_0x57a25a(0x2e4);function Mt(_0x125883){const _0x40cad5=_0x57a25a;switch(_0x125883){case u[_0x40cad5(0x1b0)][_0x40cad5(0x117)]:return _0x40cad5(0x24b);case u['CollaborationStatus'][_0x40cad5(0x1a3)]:return'collabStatus.conflict';case u[_0x40cad5(0x1b0)][_0x40cad5(0x2b5)]:return _0x40cad5(0x1fd);case u[_0x40cad5(0x1b0)][_0x40cad5(0x29d)]:return _0x40cad5(0xb0);case u[_0x40cad5(0x1b0)][_0x40cad5(0x2ff)]:case u[_0x40cad5(0x1b0)][_0x40cad5(0x2b6)]:return _0x40cad5(0xd3);case u['CollaborationStatus'][_0x40cad5(0x1c8)]:case u['CollaborationStatus'][_0x40cad5(0x2ec)]:return _0x40cad5(0x2fd);}}function xe(_0x5aae25){const _0x146846=_0x57a25a,{status$:_0x4115b9}=_0x5aae25,_0x3c33d2=T['useObservable'](_0x4115b9,u['CollaborationStatus'][_0x146846(0x29d)]),_0x1b269c=T['useDependency'](a['LocaleService']),_0x1f151a=T[_0x146846(0x196)](u[_0x146846(0x1ed)]),_0x4fc8d6=_0x3c33d2!==u[_0x146846(0x1b0)][_0x146846(0x117)],_0xc25ad5=_0x1b269c['t'](Mt(_0x3c33d2)),_0x1e99b8=_0x4fc8d6?P[_0x146846(0xcb)]($e,{}):P[_0x146846(0xcb)](ye,{}),_0x570b2e=M[_0x146846(0x256)](()=>{const _0x42347f=_0x146846;_0x4fc8d6||_0x1f151a[_0x42347f(0x140)]();},[_0x4fc8d6,_0x1f151a]);function _0x59debc(){const _0x923feb=_0x146846;return P['jsxs'](_0x923feb(0x1fc),{'className':_0x923feb(0x187),'onClick':_0x570b2e,'children':[P[_0x923feb(0xcb)](_0x923feb(0x1fc),{'className':D[_0x923feb(0x167)](_0x923feb(0x122),{'univer-text-green-500':_0x4fc8d6,'univer-text-red-500':!_0x4fc8d6}),'children':_0x1e99b8}),P[_0x923feb(0xcb)](_0x923feb(0x1fc),{'className':_0x923feb(0x10d),'children':_0xc25ad5})]});}return _0x4fc8d6?_0x59debc():P[_0x146846(0xcb)](D[_0x146846(0x100)],{'title':_0x1b269c['t']('collab-client.tooltip.reconnect'),'children':_0x59debc()});}var Lt=Object[_0x57a25a(0xbe)],Pt=(_0x2cbc60,_0x1e91e0,_0x49f1cc,_0x493646)=>{for(var _0x1d9f17=_0x493646>0x1?void 0x0:_0x493646?Lt(_0x1e91e0,_0x49f1cc):_0x1e91e0,_0x4e62e1=_0x2cbc60['length']-0x1,_0x5ee241;_0x4e62e1>=0x0;_0x4e62e1--)(_0x5ee241=_0x2cbc60[_0x4e62e1])&&(_0x1d9f17=_0x5ee241(_0x1d9f17)||_0x1d9f17);return _0x1d9f17;},V=(_0x424176,_0x21ca09)=>(_0x570d8c,_0x292ed9)=>_0x21ca09(_0x570d8c,_0x292ed9,_0x424176);exports[_0x57a25a(0xfc)]=class extends a[_0x57a25a(0xe9)]{constructor(_0x46a622,_0x5d43a2,_0x243c10,_0x1b668f){const _0x194e89=_0x57a25a;super(),h(this,_0x194e89(0xf8),new d[(_0x194e89(0x290))](u[_0x194e89(0x1b0)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x46a622,this['_injector']=_0x5d43a2,this['_collaborationController']=_0x243c10,this[_0x194e89(0x2f7)]=_0x1b668f,this['_initStatusComponent'](),this[_0x194e89(0x314)]());}[_0x57a25a(0x314)](){const _0x4d0d46=_0x57a25a;this['disposeWithMe'](this[_0x4d0d46(0x265)][_0x4d0d46(0x261)][_0x4d0d46(0x25e)](d[_0x4d0d46(0x1f1)](()=>{const _0x181d38=_0x4d0d46,_0x2f377d=this[_0x181d38(0x265)][_0x181d38(0x171)]();return _0x2f377d?this[_0x181d38(0x133)][_0x181d38(0x25c)](_0x2f377d['getUnitId']()):d['of'](null);}),d['switchMap'](_0x2e18da=>_0x2e18da?_0x2e18da[_0x4d0d46(0x1af)]:d['of'](u[_0x4d0d46(0x1b0)][_0x4d0d46(0x29d)])))['subscribe'](_0x3901f6=>{const _0x4dc035=_0x4d0d46;this['_status$'][_0x4dc035(0x28d)](_0x3901f6);}));}[_0x57a25a(0x2a6)](){const _0x2fb2fb=_0x57a25a;this[_0x2fb2fb(0x293)](this['_uiPartsService']['registerComponent'](T[_0x2fb2fb(0x1b3)]['HEADER_MENU'],()=>T['connectInjector'](At({'status$':this[_0x2fb2fb(0xf8)][_0x2fb2fb(0x13f)]()}),this[_0x2fb2fb(0x24d)])));}},exports[_0x57a25a(0xfc)]=Pt([V(0x0,a[_0x57a25a(0x2d5)]),V(0x1,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),V(0x2,a['Inject'](u[_0x57a25a(0x274)])),V(0x3,T[_0x57a25a(0x264)])],exports[_0x57a25a(0xfc)]);function At(_0x242d22){const {status$:_0xad70af}=_0x242d22;return function(){const _0xa43cda=_0x1cac;return P[_0xa43cda(0xcb)](xe,{'status$':_0xad70af});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x37aa6f,_0xc05eb2,_0x3db5d0,_0x52f45a)=>{const _0x1448df=_0x57a25a;for(var _0x20382c=_0x52f45a>0x1?void 0x0:_0x52f45a?wt(_0xc05eb2,_0x3db5d0):_0xc05eb2,_0xa2ccb3=_0x37aa6f[_0x1448df(0x25f)]-0x1,_0x2c786f;_0xa2ccb3>=0x0;_0xa2ccb3--)(_0x2c786f=_0x37aa6f[_0xa2ccb3])&&(_0x20382c=_0x2c786f(_0x20382c)||_0x20382c);return _0x20382c;},y=(_0x51ee4f,_0x5c9866)=>(_0x43b781,_0x68ab1b)=>_0x5c9866(_0x43b781,_0x68ab1b,_0x51ee4f);let q=class extends a[_0x57a25a(0xe9)]{constructor(_0x38294a,_0x26806f,_0x185e72,_0x3a7f5e,_0x5ba51e,_0x2ccacd){const _0x40b9ec=_0x57a25a;super(),this[_0x40b9ec(0x1f7)]=_0x38294a,this[_0x40b9ec(0x2dd)]=_0x26806f,this['_collaborationUIEventService']=_0x185e72,this[_0x40b9ec(0x1a1)]=_0x3a7f5e,this[_0x40b9ec(0x2c9)]=_0x5ba51e,this['_localeService']=_0x2ccacd,this[_0x40b9ec(0x2d4)](),this[_0x40b9ec(0x227)]();}['_setupBeforeClosingHandler'](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0xcd0928=_0x1cac;if(this['_localCacheService']['saveTaskMap'][_0xcd0928(0x2a5)])return this['_localeService']['t'](_0xcd0928(0x300));}));}[_0x57a25a(0x227)](){const _0x4d21b3=_0x57a25a;this[_0x4d21b3(0x293)](this[_0x4d21b3(0x2cb)][_0x4d21b3(0x12e)][_0x4d21b3(0x305)](_0x52b121=>{const _0x10d976=_0x4d21b3;_0x52b121['id']===u[_0x10d976(0x2c0)]['OTHER_CLIENT_EDITING']&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x102)],'content':this['_localeService']['t'](_0x10d976(0x111))}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x21c)]&&this['_messageService'][_0x10d976(0x301)]({'type':D['MessageType'][_0x10d976(0x102)],'content':this[_0x10d976(0x135)]['t'](_0x10d976(0x291))}),_0x52b121['id']===u['CollaborationUIEventId'][_0x10d976(0x131)]&&this[_0x10d976(0x2c9)][_0x10d976(0x301)]({'title':this[_0x10d976(0x135)]['t'](_0x10d976(0x278)),'content':this[_0x10d976(0x135)]['t'](_0x10d976(0x1df)),'type':_0x10d976(0x201),'duration':0x0}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x1a3)]&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x2e3)],'content':this[_0x10d976(0x135)]['t']('collaboration.closeRoom')+'('+_0x52b121[_0x10d976(0xe5)]+')'}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x197)]&&this['_messageService'][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x102)],'content':this[_0x10d976(0x135)]['t'](_0x52b121[_0x10d976(0xe5)]||'')}),_0x52b121['id']===u['CollaborationUIEventId'][_0x10d976(0x316)]&&this['_messageService'][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x102)],'content':this['_localeService']['t'](_0x10d976(0x18a))}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x257)]&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x2e3)],'content':this[_0x10d976(0x135)]['t'](_0x10d976(0x2f3))}),_0x52b121['id']===u['CollaborationUIEventId'][_0x10d976(0x120)]&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x2e3)],'content':this['_localeService']['t'](_0x10d976(0x279))});}));}};q=yt([y(0x0,T[_0x57a25a(0x32a)]),y(0x1,u[_0x57a25a(0x285)]),y(0x2,a[_0x57a25a(0x17f)](u[_0x57a25a(0x2b9)])),y(0x3,T[_0x57a25a(0x1e3)]),y(0x4,T['INotificationService']),y(0x5,a[_0x57a25a(0x17f)](a['LocaleService']))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x57a25a(0x226)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x2c4f1a,_0x5dcbb5,_0x46e238,_0x1c68f6)=>{const _0x342a6d=_0x57a25a;for(var _0x356428=_0x1c68f6>0x1?void 0x0:_0x1c68f6?xt(_0x5dcbb5,_0x46e238):_0x5dcbb5,_0x8bb421=_0x2c4f1a[_0x342a6d(0x25f)]-0x1,_0x2cf6a3;_0x8bb421>=0x0;_0x8bb421--)(_0x2cf6a3=_0x2c4f1a[_0x8bb421])&&(_0x356428=_0x2cf6a3(_0x356428)||_0x356428);return _0x356428;},H=(_0x408d3c,_0x5bbe01)=>(_0x5a1018,_0x1b1cc8)=>_0x5bbe01(_0x5a1018,_0x1b1cc8,_0x408d3c);exports[_0x57a25a(0x280)]=class extends a[_0x57a25a(0x1c0)]{constructor(_0x21c7c6,_0x2978f7,_0x1c5d6a,_0x9e7920,_0x509463){const _0xcad19a=_0x57a25a;super(),this[_0xcad19a(0x202)]=_0x21c7c6,this['_logService']=_0x2978f7,this[_0xcad19a(0x2d0)]=_0x1c5d6a,this[_0xcad19a(0x239)]=_0x9e7920,_0x509463?_0x509463==null||_0x509463['whenReady']()[_0xcad19a(0x107)](()=>this['_init']()):(this[_0xcad19a(0x2aa)]['debug'](_0xcad19a(0xdd),_0xcad19a(0xcf)),this[_0xcad19a(0x170)]());}async[_0x57a25a(0x170)](){const _0x4c2480=_0x57a25a,_0xddd5b4=this[_0x4c2480(0x202)][_0x4c2480(0xd0)](_0x4c2480(0x1bb)),_0x24da11=this[_0x4c2480(0x202)][_0x4c2480(0xd0)]('type'),_0x23b70a=this['_urlService'][_0x4c2480(0xd0)](_0x4c2480(0x260));if(!_0xddd5b4||!_0x24da11){this['_logService']['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x42845e=await this[_0x4c2480(0x239)][_0x4c2480(0x147)](_0xddd5b4,Number(_0x24da11),_0x23b70a);_0x42845e&&_0x42845e instanceof a[_0x4c2480(0x18c)]&&this['_setupSubUnitSync'](_0x42845e);}async[_0x57a25a(0x2a4)](_0x500088){const _0xafa122=_0x57a25a;await this[_0xafa122(0x262)](_0x500088),_0x500088[_0xafa122(0x1cb)][_0xafa122(0x25e)](d[_0xafa122(0x13c)](this[_0xafa122(0x2ed)]))[_0xafa122(0x305)](_0x2446f2=>{_0x2446f2&&this['_updateURLWithCurrentState'](_0x2446f2);}),this[_0xafa122(0x202)][_0xafa122(0x12a)]['pipe'](d['takeUntil'](this[_0xafa122(0x2ed)]))[_0xafa122(0x305)](()=>this['_updateSubUnitFromURLParams'](_0x500088));}[_0x57a25a(0xb3)](_0x39431d,_0x3cb14a=!0x1){const _0x5c748f=_0x57a25a,_0x25877a=this[_0x5c748f(0x202)][_0x5c748f(0xd0)](_0x5c748f(0x260));_0x39431d[_0x5c748f(0xff)]()!==_0x25877a&&this['_urlService'][_0x5c748f(0x16e)](_0x5c748f(0x260),_0x39431d[_0x5c748f(0xff)](),_0x3cb14a);}async[_0x57a25a(0x262)](_0x543a22){const _0x3100bb=_0x57a25a;var _0x1dc73e;const _0x2ec23c=this['_urlService'][_0x3100bb(0xd0)]('subunit');if(!_0x2ec23c||!_0x543a22[_0x3100bb(0x2d9)](_0x2ec23c)){const _0x8721ef=_0x543a22['getUnhiddenWorksheets']()[0x0],_0xb7509d=_0x543a22[_0x3100bb(0x2d9)](_0x8721ef);if(!_0xb7509d)return;this[_0x3100bb(0xb3)](_0xb7509d,!0x0),await this[_0x3100bb(0x2d0)]['executeCommand'](g[_0x3100bb(0x146)]['id'],{'unitId':_0x543a22['getUnitId'](),'subUnitId':_0x8721ef});return;}((_0x1dc73e=_0x543a22['getActiveSheet']())==null?void 0x0:_0x1dc73e[_0x3100bb(0xff)]())!==_0x2ec23c&&await this[_0x3100bb(0x2d0)][_0x3100bb(0x20c)](g[_0x3100bb(0x146)]['id'],{'unitId':_0x543a22['getUnitId'](),'subUnitId':_0x2ec23c});}},exports[_0x57a25a(0x280)]=jt([H(0x0,be),H(0x1,a[_0x57a25a(0x242)]),H(0x2,a[_0x57a25a(0x1a2)]),H(0x3,a[_0x57a25a(0x17f)](u[_0x57a25a(0x1c4)])),H(0x4,a[_0x57a25a(0x16d)](Ke[_0x57a25a(0x13e)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x57a25a(0xbe)],kt=(_0xe0490a,_0x39b083,_0x19e814,_0x5b904a)=>{const _0x3fee43=_0x57a25a;for(var _0x20afa2=_0x5b904a>0x1?void 0x0:_0x5b904a?Bt(_0x39b083,_0x19e814):_0x39b083,_0x4edc7c=_0xe0490a[_0x3fee43(0x25f)]-0x1,_0x7e6ee3;_0x4edc7c>=0x0;_0x4edc7c--)(_0x7e6ee3=_0xe0490a[_0x4edc7c])&&(_0x20afa2=_0x7e6ee3(_0x20afa2)||_0x20afa2);return _0x20afa2;},ce=(_0x200183,_0x20d8dc)=>(_0x5653ab,_0x348265)=>_0x20d8dc(_0x5653ab,_0x348265,_0x200183);let z=class{constructor(_0x2e616b,_0x1e976c,_0x4d3e1c){const _0x386e3a=_0x57a25a;this[_0x386e3a(0x24d)]=_0x2e616b,this[_0x386e3a(0xf1)]=_0x1e976c,this['_renderManagerService']=_0x4d3e1c;}[_0x57a25a(0x212)](_0x3ec157){const _0x261bb5=_0x57a25a;this[_0x261bb5(0x14b)](_0x3ec157),this[_0x261bb5(0x294)](_0x3ec157);}[_0x57a25a(0x1f3)](_0x54e719){const _0x3ae3cd=_0x57a25a,{unitID:_0x49836e}=_0x54e719,_0x3185dc=this['_renderManagerService'][_0x3ae3cd(0x19f)](_0x49836e)[_0x3ae3cd(0xd6)](b[_0x3ae3cd(0xc5)]),{redoCache:_0x272af6}=_0x3185dc[_0x3ae3cd(0x15d)]();if(_0x272af6[_0x3ae3cd(0x25f)]===0x0)return _0x54e719;let _0x343207=a['Tools']['deepClone'](_0x54e719[_0x3ae3cd(0x1b8)][0x0]);for(let _0x163096=0x0;_0x163096<_0x272af6[_0x3ae3cd(0x25f)];_0x163096++){const _0x4cafe2={'id':_0x3ae3cd(0x190),'params':{..._0x272af6[_0x163096]}},_0x31aeca=this[_0x3ae3cd(0xf1)][_0x3ae3cd(0x143)](_0x343207,_0x4cafe2,!0x1);if(m[_0x3ae3cd(0x251)](_0x31aeca))throw _0x31aeca[_0x3ae3cd(0x201)];_0x343207=_0x31aeca[_0x3ae3cd(0x292)];}return{...a[_0x3ae3cd(0x225)][_0x3ae3cd(0x12f)](_0x54e719),'mutations':[_0x343207]};}[_0x57a25a(0x14b)](_0x2c6b47){const _0xa22775=_0x57a25a,{unitID:_0x305860}=_0x2c6b47,_0x17553f=this[_0xa22775(0x29e)][_0xa22775(0x19f)](_0x305860)['with'](b[_0xa22775(0xc5)]),{undoCache:_0x463d32,redoCache:_0x42a6b6}=_0x17553f['getUndoRedoMutationParamsCache']();if(_0x463d32[_0xa22775(0x25f)]===0x0||_0x42a6b6[_0xa22775(0x25f)]===0x0)return;const _0x58e570=[],_0x2ad999=[];let _0x2ec350=a['Tools'][_0xa22775(0x12f)](_0x2c6b47[_0xa22775(0x1b8)][0x0]),_0xf36e9e=a['Tools'][_0xa22775(0x12f)](_0x2c6b47[_0xa22775(0x1b8)][0x0]);for(let _0x1dff31=_0x463d32[_0xa22775(0x25f)]-0x1;_0x1dff31>=0x0;_0x1dff31--){const _0xe67aed={'id':_0xa22775(0x190),'params':{..._0x463d32[_0x1dff31]}},_0x1aacdd={'id':_0xa22775(0x190),'params':{..._0x42a6b6[_0x1dff31]}},_0xd15f5f=this[_0xa22775(0xf1)][_0xa22775(0x143)](_0x2ec350,_0xe67aed,!0x1),_0x49460f=this[_0xa22775(0xf1)]['transformMutation'](_0xf36e9e,_0x1aacdd,!0x1);if(m[_0xa22775(0x251)](_0xd15f5f))throw _0xd15f5f[_0xa22775(0x201)];if(m[_0xa22775(0x251)](_0x49460f))throw _0x49460f[_0xa22775(0x201)];_0x58e570[_0xa22775(0x1bf)](_0xd15f5f['m2Prime'][_0xa22775(0x310)]),_0x2ad999[_0xa22775(0x1bf)](_0x49460f[_0xa22775(0x2e9)]['params']),_0x2ec350=_0xd15f5f[_0xa22775(0x292)],_0xf36e9e=_0x49460f[_0xa22775(0x292)];}_0x17553f[_0xa22775(0x19c)]({'undoCache':_0x58e570,'redoCache':_0x2ad999});}['_transformPreviousActiveRange'](_0x55a697){const _0x3de47c=_0x57a25a,{unitID:_0x26a138}=_0x55a697,_0x17aa3e=this[_0x3de47c(0x29e)][_0x3de47c(0x19f)](_0x26a138)[_0x3de47c(0xd6)](b['DocIMEInputManagerService']),_0x24d686=_0x17aa3e[_0x3de47c(0x2f5)]();if(_0x24d686==null)return;const _0x46d9fa=[{'id':_0x3de47c(0x190),'params':{'unitId':_0x55a697['unitID'],'actions':null,'textRanges':[_0x24d686]}}],_0x1242a3=this[_0x3de47c(0xf1)][_0x3de47c(0x1b1)](_0x55a697,_0x46d9fa);if(!m[_0x3de47c(0x2ce)](_0x1242a3))throw _0x1242a3[_0x3de47c(0x201)];const _0x194483=_0x1242a3['m2Prime'][0x0][_0x3de47c(0x310)][_0x3de47c(0x185)];Array[_0x3de47c(0x20a)](_0x194483)&&_0x194483[_0x3de47c(0x25f)]&&_0x17aa3e[_0x3de47c(0xc7)](_0x194483[0x0]);}};z=kt([ce(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),ce(0x1,m[_0x57a25a(0x26e)]),ce(0x2,p[_0x57a25a(0x238)])],z);var Ht=Object[_0x57a25a(0xbe)],Ft=(_0x520ddf,_0x213a3e,_0x3b1534,_0x5412af)=>{const _0x5a29a9=_0x57a25a;for(var _0xa155a2=_0x5412af>0x1?void 0x0:_0x5412af?Ht(_0x213a3e,_0x3b1534):_0x213a3e,_0x35ff4b=_0x520ddf[_0x5a29a9(0x25f)]-0x1,_0x3f5c75;_0x35ff4b>=0x0;_0x35ff4b--)(_0x3f5c75=_0x520ddf[_0x35ff4b])&&(_0xa155a2=_0x3f5c75(_0xa155a2)||_0xa155a2);return _0xa155a2;},le=(_0x304503,_0x13930f)=>(_0x17fe64,_0x43a44c)=>_0x13930f(_0x17fe64,_0x43a44c,_0x304503);let J=class{constructor(_0x137ec6,_0x18c935,_0x260c52){const _0x3c16e9=_0x57a25a;this[_0x3c16e9(0x24d)]=_0x137ec6,this[_0x3c16e9(0xf1)]=_0x18c935,this[_0x3c16e9(0x180)]=_0x260c52;}[_0x57a25a(0x109)](_0x165aab){const _0x3a46d6=_0x57a25a;this[_0x3a46d6(0x2f4)](_0x165aab);}['transformRemoteChangeset'](_0x2b743d){const _0x395a22=_0x57a25a,{unitID:_0x11b9e6}=_0x2b743d,{collaboration:_0x332b50}=this[_0x395a22(0x180)][_0x395a22(0xd9)](_0x11b9e6);if(_0x332b50[_0x395a22(0x25f)]===0x0)return _0x2b743d;let _0x3e9949=a[_0x395a22(0x225)][_0x395a22(0x12f)](_0x2b743d[_0x395a22(0x1b8)][0x0]);for(let _0x2d97fa=0x0;_0x2d97fa<_0x332b50['length'];_0x2d97fa++){const _0x55eac1={'id':_0x395a22(0x190),'params':{'unitId':_0x332b50[_0x2d97fa][_0x395a22(0x110)],..._0x332b50[_0x2d97fa][_0x395a22(0x14f)]}},_0x11e326=this[_0x395a22(0xf1)][_0x395a22(0x143)](_0x3e9949,_0x55eac1,!0x1);if(m[_0x395a22(0x251)](_0x11e326))throw _0x11e326[_0x395a22(0x201)];_0x3e9949=_0x11e326[_0x395a22(0x292)];}return{...a[_0x395a22(0x225)]['deepClone'](_0x2b743d),'mutations':[_0x3e9949]};}[_0x57a25a(0x2f4)](_0x5eda15){const _0x3f61fd=_0x57a25a,{unitID:_0x5d014f}=_0x5eda15,{history:_0x44ede3,collaboration:_0x4d7cac}=this['_docStateChangeManagerService'][_0x3f61fd(0xd9)](_0x5d014f);if(_0x44ede3[_0x3f61fd(0x25f)]===0x0&&_0x4d7cac['length']===0x0)return;const _0x2a85ee=[],_0x1fc795=[];let _0x188cc7=a[_0x3f61fd(0x225)][_0x3f61fd(0x12f)](_0x5eda15['mutations'][0x0]),_0x3fa276=a['Tools']['deepClone'](_0x5eda15[_0x3f61fd(0x1b8)][0x0]);for(let _0x327bbc=_0x44ede3['length']-0x1;_0x327bbc>=0x0;_0x327bbc--){const _0x514915={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44ede3[_0x327bbc][_0x3f61fd(0x110)],..._0x44ede3[_0x327bbc][_0x3f61fd(0x29a)]}},_0x3b0a19={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44ede3[_0x327bbc][_0x3f61fd(0x110)],..._0x44ede3[_0x327bbc]['redoState']}},_0x19be7c=this[_0x3f61fd(0xf1)][_0x3f61fd(0x143)](_0x188cc7,_0x514915,!0x1),_0x2659d6=this[_0x3f61fd(0xf1)][_0x3f61fd(0x143)](_0x3fa276,_0x3b0a19,!0x1);if(m['isTransformMutationFailure'](_0x19be7c))throw _0x19be7c['error'];if(m[_0x3f61fd(0x251)](_0x2659d6))throw _0x2659d6[_0x3f61fd(0x201)];_0x2a85ee[_0x3f61fd(0x1bf)]({..._0x44ede3[_0x327bbc],'undoState':_0x19be7c['m2Prime']['params'],'redoState':_0x2659d6[_0x3f61fd(0x2e9)][_0x3f61fd(0x310)]}),_0x188cc7=_0x19be7c['m1Prime'],_0x3fa276=_0x2659d6[_0x3f61fd(0x292)];}_0x188cc7=a[_0x3f61fd(0x225)][_0x3f61fd(0x12f)](_0x5eda15[_0x3f61fd(0x1b8)][0x0]),_0x3fa276=a[_0x3f61fd(0x225)][_0x3f61fd(0x12f)](_0x5eda15[_0x3f61fd(0x1b8)][0x0]);for(let _0x2df0fa=_0x4d7cac[_0x3f61fd(0x25f)]-0x1;_0x2df0fa>=0x0;_0x2df0fa--){const _0x15bc29={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4d7cac[_0x2df0fa]['unitId'],..._0x4d7cac[_0x2df0fa]['undoState']}},_0x2d7012={'id':_0x3f61fd(0x190),'params':{'unitId':_0x4d7cac[_0x2df0fa][_0x3f61fd(0x110)],..._0x4d7cac[_0x2df0fa][_0x3f61fd(0x14f)]}},_0x1b456d=this[_0x3f61fd(0xf1)]['transformMutation'](_0x188cc7,_0x15bc29,!0x1),_0x485e98=this[_0x3f61fd(0xf1)]['transformMutation'](_0x3fa276,_0x2d7012,!0x1);if(m[_0x3f61fd(0x251)](_0x1b456d))throw _0x1b456d['error'];if(m[_0x3f61fd(0x251)](_0x485e98))throw _0x485e98[_0x3f61fd(0x201)];_0x1fc795[_0x3f61fd(0x1bf)]({..._0x4d7cac[_0x2df0fa],'undoState':_0x1b456d[_0x3f61fd(0x2e9)]['params'],'redoState':_0x485e98['m2Prime'][_0x3f61fd(0x310)]}),_0x188cc7=_0x1b456d[_0x3f61fd(0x292)],_0x3fa276=_0x485e98[_0x3f61fd(0x292)];}this[_0x3f61fd(0x180)][_0x3f61fd(0x24c)](_0x5d014f,{'history':_0x2a85ee,'collaboration':_0x1fc795});}};J=Ft([le(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),le(0x1,m['ITransformService']),le(0x2,a[_0x57a25a(0x17f)](b[_0x57a25a(0x30f)]))],J);var Yt=Object[_0x57a25a(0xbe)],Wt=(_0x2abd09,_0x4df005,_0x864a11,_0x5e08fb)=>{for(var _0x3078c2=_0x5e08fb>0x1?void 0x0:_0x5e08fb?Yt(_0x4df005,_0x864a11):_0x4df005,_0x2bb61a=_0x2abd09['length']-0x1,_0x585145;_0x2bb61a>=0x0;_0x2bb61a--)(_0x585145=_0x2abd09[_0x2bb61a])&&(_0x3078c2=_0x585145(_0x3078c2)||_0x3078c2);return _0x3078c2;},Ne=(_0xed5638,_0x595f7b)=>(_0x57dbf5,_0x2c4d10)=>_0x595f7b(_0x57dbf5,_0x2c4d10,_0xed5638);let Z=class{constructor(_0x213cb6,_0x36f05c){const _0x244b6d=_0x57a25a;this[_0x244b6d(0x24d)]=_0x213cb6,this[_0x244b6d(0xf1)]=_0x36f05c;}['transformSelections'](_0x415aed){const _0x5051f8=_0x57a25a;var _0x12678c;const _0xc8205b=this[_0x5051f8(0x24d)][_0x5051f8(0x1dd)](Y['DocSelectionManagerService']),_0x35b308=(_0x12678c=_0xc8205b['getDocRanges']())!=null?_0x12678c:[];if(_0x35b308['length']===0x0)return;const _0x380ce4=_0x415aed[_0x5051f8(0x230)],_0x2323d6=[{'id':_0x5051f8(0x190),'params':{'unitId':_0x380ce4,'actions':null,'textRanges':_0x35b308}}],_0x2897cb=this[_0x5051f8(0xf1)][_0x5051f8(0x1b1)](_0x415aed,_0x2323d6);if(!m[_0x5051f8(0x2ce)](_0x2897cb))throw _0x2897cb[_0x5051f8(0x201)];const _0x18d822=_0x2897cb[_0x5051f8(0x2e9)][0x0][_0x5051f8(0x310)][_0x5051f8(0x185)];Array[_0x5051f8(0x20a)](_0x18d822)&&_0x18d822[_0x5051f8(0x25f)]&&_0xc8205b[_0x5051f8(0x273)](_0x18d822,{'unitId':_0x380ce4,'subUnitId':_0x380ce4},!0x1);}};Z=Wt([Ne(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),Ne(0x1,m[_0x57a25a(0x26e)])],Z);var Vt=Object[_0x57a25a(0xbe)],Xt=(_0x5ab375,_0x2e8ceb,_0x45f1f1,_0x186b51)=>{const _0x705cbf=_0x57a25a;for(var _0x23fcc6=_0x186b51>0x1?void 0x0:_0x186b51?Vt(_0x2e8ceb,_0x45f1f1):_0x2e8ceb,_0x24eabf=_0x5ab375[_0x705cbf(0x25f)]-0x1,_0x5203e6;_0x24eabf>=0x0;_0x24eabf--)(_0x5203e6=_0x5ab375[_0x24eabf])&&(_0x23fcc6=_0x5203e6(_0x23fcc6)||_0x23fcc6);return _0x23fcc6;},N=(_0x3e514e,_0x4573ac)=>(_0x5690c9,_0x4aecec)=>_0x4573ac(_0x5690c9,_0x4aecec,_0x3e514e);let Q=class extends a[_0x57a25a(0xe9)]{constructor(_0x32f907,_0x1b18c2,_0x1be965,_0xc728b6,_0x3874cb,_0x443489,_0x170bbd,_0x2e7ec5){const _0x48c0b7=_0x57a25a;super(),h(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus']['NOT_COLLAB'])),(this[_0x48c0b7(0x180)]=_0x32f907,this['_collaborationController']=_0x1b18c2,this[_0x48c0b7(0x15f)]=_0x1be965,this[_0x48c0b7(0x2b2)]=_0xc728b6,this[_0x48c0b7(0x2b1)]=_0x3874cb,this[_0x48c0b7(0x1f9)]=_0x443489,this[_0x48c0b7(0x1a1)]=_0x170bbd,this['_localeService']=_0x2e7ec5,this[_0x48c0b7(0x136)]());}[_0x57a25a(0x136)](){const _0x11528d=_0x57a25a;this[_0x11528d(0x293)](this[_0x11528d(0x133)][_0x11528d(0xfb)][_0x11528d(0x305)](_0x1cb526=>{const _0x52eb7b=_0x11528d,_0x1aad05=this[_0x52eb7b(0x180)][_0x52eb7b(0x14c)][_0x52eb7b(0x305)](_0x19408d=>{const _0x15d3d2=_0x52eb7b;if(_0x19408d==null)return;const {unitId:_0x24bdd1,redoState:_0x54757d,commandId:_0x3001c4}=_0x19408d;if(_0x24bdd1!==_0x1cb526[_0x15d3d2(0x230)])return;const _0x3f134={'id':_0x3001c4,'type':a[_0x15d3d2(0x1d9)][_0x15d3d2(0x156)],'params':{'unitId':_0x24bdd1,'actions':_0x54757d[_0x15d3d2(0x10e)],'textRanges':null}};_0x1cb526[_0x15d3d2(0x27c)](_0x3f134);});if(_0x1cb526[_0x52eb7b(0x293)](_0x1aad05),_0x1cb526 instanceof u[_0x52eb7b(0x26a)]){const _0x5d60e5={'onTransformIME':_0x531c42=>this['_docTransformIMECacheService'][_0x52eb7b(0x212)](_0x531c42),'onTransformState':_0x58b8cd=>this[_0x52eb7b(0x2b2)][_0x52eb7b(0x109)](_0x58b8cd),'onTransformSelections':_0x8d34f5=>this[_0x52eb7b(0x2b1)][_0x52eb7b(0x324)](_0x8d34f5),'onSyncEditingCollabCursor':_0x25e249=>this['_docSyncEditingCollabCursorService'][_0x52eb7b(0x159)](_0x25e249),'onTransformRemoteChangesetByIMECache':_0x144c10=>this[_0x52eb7b(0x15f)][_0x52eb7b(0x1f3)](_0x144c10),'onTransformRemoteChangesetByStateCache':_0x2d0784=>this[_0x52eb7b(0x2b2)][_0x52eb7b(0x1f3)](_0x2d0784)};_0x1cb526[_0x52eb7b(0x25a)](_0x5d60e5);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x57a25a(0x30f)])),N(0x1,a[_0x57a25a(0x17f)](u[_0x57a25a(0x274)])),N(0x2,a[_0x57a25a(0x17f)](z)),N(0x3,a[_0x57a25a(0x17f)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x57a25a(0x17f)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x57a25a(0x17f)](a[_0x57a25a(0x2d3)]))],Q);var Gt=Object[_0x57a25a(0xbe)],Kt=(_0x5704e0,_0x4f35b3,_0x237374,_0x231c4d)=>{for(var _0x196a2a=_0x231c4d>0x1?void 0x0:_0x231c4d?Gt(_0x4f35b3,_0x237374):_0x4f35b3,_0x5a3cf9=_0x5704e0['length']-0x1,_0x267cd3;_0x5a3cf9>=0x0;_0x5a3cf9--)(_0x267cd3=_0x5704e0[_0x5a3cf9])&&(_0x196a2a=_0x267cd3(_0x196a2a)||_0x196a2a);return _0x196a2a;},_e=(_0x2a053a,_0x4654e8)=>(_0xd5c2b,_0x4e40da)=>_0x4654e8(_0xd5c2b,_0x4e40da,_0x2a053a);let ge=class extends a[_0x57a25a(0xe9)]{constructor(_0x19dbf0,_0xd44c70,_0x36c586){const _0x2ef1b2=_0x57a25a;super(),h(this,_0x2ef1b2(0x2c3),new Map()),h(this,_0x2ef1b2(0x247),new Map()),h(this,'_disabled',!0x1),(this[_0x2ef1b2(0x218)]=_0x19dbf0,this[_0x2ef1b2(0x299)]=_0xd44c70,this[_0x2ef1b2(0x2bb)]=_0x36c586);}['disableLocalCache'](){const _0x26a1f0=_0x57a25a;this[_0x26a1f0(0x2f1)]=!0x0;}[_0x57a25a(0x10f)](){const _0x1cea46=_0x57a25a;this[_0x1cea46(0x2f1)]=!0x1;}get[_0x57a25a(0x137)](){const _0x262b72=_0x57a25a;return this[_0x262b72(0x247)];}[_0x57a25a(0x1eb)](){const _0x32029f=_0x57a25a;this[_0x32029f(0x162)]()[_0x32029f(0x107)](()=>super[_0x32029f(0x1eb)]());}async[_0x57a25a(0x1e5)](_0x441f1c){const _0x3ee456=_0x57a25a;return this[_0x3ee456(0x2f1)]?null:this['_localStorageService'][_0x3ee456(0x1c6)](u[_0x3ee456(0x1ad)](_0x441f1c));}async[_0x57a25a(0x1e2)](_0x534ba2,_0x3800cc){const _0x14c03e=_0x57a25a;return!!this[_0x14c03e(0x299)][_0x14c03e(0x286)](_0x534ba2,_0x3800cc);}['updateOfflineData'](_0x591553,_0x350a7f,_0x1fa5c7,_0x18f5c4){const _0x155be7=_0x57a25a,_0x212136=this[_0x155be7(0x2bb)]['getCurrentRevOfUnit'](_0x591553);this['_cachedData'][_0x155be7(0xb9)](_0x591553,{'unitID':_0x591553,'type':_0x350a7f,'awaitingChangeset':_0x1fa5c7,'mutations':_0x18f5c4,'rev':_0x212136}),this[_0x155be7(0x247)][_0x155be7(0x177)](_0x591553)||this[_0x155be7(0x199)](_0x591553);}[_0x57a25a(0x199)](_0x909dd4){const _0x2bd1ca=_0x57a25a,_0x4843c8=this[_0x2bd1ca(0x2af)]();_0x4843c8===0x0?this[_0x2bd1ca(0xf5)](_0x909dd4):this['_saveTaskMap'][_0x2bd1ca(0xb9)](_0x909dd4,setTimeout(()=>this[_0x2bd1ca(0xf5)](_0x909dd4),_0x4843c8));}[_0x57a25a(0x2af)](){const _0x3311ab=_0x57a25a;var _0x1571aa;return(_0x1571aa=this[_0x3311ab(0x218)][_0x3311ab(0x1fa)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x1571aa:u[_0x3311ab(0x124)];}[_0x57a25a(0xf5)](_0x48a84a){const _0x1203b8=_0x57a25a,_0x29f658=this[_0x1203b8(0x247)][_0x1203b8(0x1dd)](_0x48a84a);return _0x29f658!==void 0x0&&window[_0x1203b8(0x1d2)](_0x29f658),this[_0x1203b8(0x299)][_0x1203b8(0x286)](u[_0x1203b8(0x1ad)](_0x48a84a),this['_cachedData'][_0x1203b8(0x1dd)](_0x48a84a))[_0x1203b8(0x107)](()=>this[_0x1203b8(0x247)][_0x1203b8(0x234)](_0x48a84a));}async[_0x57a25a(0x162)](){const _0x1eccbe=_0x57a25a,_0x107dd4=[];this[_0x1eccbe(0x247)][_0x1eccbe(0x2ef)]((_0x27f944,_0x43b7d5)=>{const _0x1768cd=_0x1eccbe;window[_0x1768cd(0x1d2)](_0x27f944),_0x107dd4[_0x1768cd(0x11f)](this[_0x1768cd(0xf5)](_0x43b7d5)[_0x1768cd(0x107)](()=>{const _0x4e9f25=_0x1768cd;this[_0x4e9f25(0x247)]['delete'](_0x43b7d5);}));}),await Promise[_0x1eccbe(0x2bc)](_0x107dd4);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x57a25a(0x154)]),_e(0x2,a[_0x57a25a(0x17f)](m[_0x57a25a(0xef)]))],ge);class je extends a[_0x57a25a(0x1c0)]{constructor(){const _0x55988c=_0x57a25a;super(),h(this,_0x55988c(0x12a)),this[_0x55988c(0x12a)]=d[_0x55988c(0x214)](window,'popstate')[_0x55988c(0x25e)](d['takeUntil'](this[_0x55988c(0x2ed)]),d[_0x55988c(0x327)](0x1),d['mapTo'](void 0x0));}[_0x57a25a(0x16e)](_0x4fdb01,_0x4d67e4,_0x5d6057=!0x1){const _0x47f882=_0x57a25a,_0x5ce939=new URL(window['location'][_0x47f882(0x13d)]);_0x5ce939[_0x47f882(0x198)][_0x47f882(0xb9)](_0x4fdb01,_0x4d67e4),_0x5d6057?window['history'][_0x47f882(0xd2)]('','',_0x5ce939['toString']()):window[_0x47f882(0x1f0)][_0x47f882(0x2a0)]('','',_0x5ce939[_0x47f882(0x229)]());}['removeParam'](_0x393107,_0x634fc4=!0x1){const _0x11f7c5=_0x57a25a,_0x210ea4=new URL(window[_0x11f7c5(0x228)]['href']);_0x210ea4[_0x11f7c5(0x198)][_0x11f7c5(0x234)](_0x393107),_0x634fc4?window['history'][_0x11f7c5(0xd2)]('','',_0x210ea4[_0x11f7c5(0x229)]()):window[_0x11f7c5(0x1f0)][_0x11f7c5(0x2a0)]('','',_0x210ea4['toString']());}[_0x57a25a(0xd0)](_0x3b9950){const _0x31d621=_0x57a25a;var _0x5d665b;return(_0x5d665b=new URL(window['location'][_0x31d621(0x13d)])[_0x31d621(0x198)]['get'](_0x3b9950))!=null?_0x5d665b:void 0x0;}}var qt=Object['defineProperty'],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x1be4f9,_0x57fd2f,_0x1e6c80)=>_0x57fd2f in _0x1be4f9?qt(_0x1be4f9,_0x57fd2f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e6c80}):_0x1be4f9[_0x57fd2f]=_0x1e6c80,Zt=(_0x9cb9dc,_0x5684f1,_0x394a14,_0x1d7991)=>{const _0x240bb5=_0x57a25a;for(var _0x431723=_0x1d7991>0x1?void 0x0:_0x1d7991?zt(_0x5684f1,_0x394a14):_0x5684f1,_0x2c8f6f=_0x9cb9dc[_0x240bb5(0x25f)]-0x1,_0x47aa9e;_0x2c8f6f>=0x0;_0x2c8f6f--)(_0x47aa9e=_0x9cb9dc[_0x2c8f6f])&&(_0x431723=_0x47aa9e(_0x431723)||_0x431723);return _0x431723;},he=(_0x34302f,_0x392594)=>(_0x12ec1d,_0x26a6f3)=>_0x392594(_0x12ec1d,_0x26a6f3,_0x34302f),Qt=(_0x5ce339,_0x395eb0,_0x5d4e0e)=>Jt(_0x5ce339,_0x395eb0+'',_0x5d4e0e);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0xea1e1=Ue,_0x30411d,_0x352fbf,_0x4684d6){const _0x57efa6=_0x57a25a;super(),this[_0x57efa6(0x1c7)]=_0xea1e1,this[_0x57efa6(0x29e)]=_0x30411d,this[_0x57efa6(0x24d)]=_0x352fbf,this[_0x57efa6(0x218)]=_0x4684d6;const {..._0x4992e4}=a[_0x57efa6(0x21d)]({},Ue,this[_0x57efa6(0x1c7)]);this['_configService'][_0x57efa6(0x183)]($t,_0x4992e4);}['onStarting'](){const _0x42a53a=_0x57a25a;this['_registerDependencies'](),this[_0x42a53a(0x216)]();}[_0x57a25a(0x28b)](){const _0x2700fa=_0x57a25a;this[_0x2700fa(0x105)]();}['_registerDependencies'](){const _0x329a88=_0x57a25a;var _0x49e606;const _0x5f44b1=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x329a88(0x236)],{'useClass':G['WebSocketService']}],[u[_0x329a88(0x285)],{'useClass':ge}],[exports[_0x329a88(0xfc)]],[Q],[q],[x],[de],[exports[_0x329a88(0x280)]]];a['registerDependencies'](this[_0x329a88(0x24d)],a[_0x329a88(0x2a8)](_0x5f44b1,(_0x49e606=this['_config'])==null?void 0x0:_0x49e606[_0x329a88(0x129)]));}[_0x57a25a(0x105)](){const _0x37c00e=_0x57a25a;this['disposeWithMe'](this[_0x37c00e(0x29e)][_0x37c00e(0x28e)](a[_0x37c00e(0x2a9)]['UNIVER_DOC'],[Ie])),this[_0x37c00e(0x293)](this[_0x37c00e(0x29e)][_0x37c00e(0x28e)](a[_0x37c00e(0x2a9)][_0x37c00e(0x248)],[ve]));}[_0x57a25a(0x216)](){const _0x565756=_0x57a25a;a[_0x565756(0x112)](this['_injector'],[[x],[exports[_0x565756(0xfc)]],[Q],[q],[exports[_0x565756(0x280)]]]);}},Qt(exports[_0x57a25a(0x175)],_0x57a25a(0x19e),es),exports[_0x57a25a(0x175)]=Zt([a[_0x57a25a(0x27b)](u[_0x57a25a(0x123)]),he(0x1,p[_0x57a25a(0x238)]),he(0x2,a[_0x57a25a(0x17f)](a['Injector'])),he(0x3,a[_0x57a25a(0x18b)])],exports[_0x57a25a(0x175)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x53934e,_0x29473c,_0x1cdf6b,_0x1a6737)=>{for(var _0x5a6a73=_0x1a6737>0x1?void 0x0:_0x1a6737?ts(_0x29473c,_0x1cdf6b):_0x29473c,_0x1bf35e=_0x53934e['length']-0x1,_0x28b770;_0x1bf35e>=0x0;_0x1bf35e--)(_0x28b770=_0x53934e[_0x1bf35e])&&(_0x5a6a73=_0x28b770(_0x5a6a73)||_0x5a6a73);return _0x5a6a73;},F=(_0x17c36b,_0x3ad579)=>(_0x551b2d,_0x347525)=>_0x3ad579(_0x551b2d,_0x347525,_0x17c36b);exports[_0x57a25a(0x16c)]=class extends u[_0x57a25a(0x204)]{constructor(_0x15a44d,_0x37ae0c,_0x50c056,_0x1f5247,_0x1efb57){super(_0x15a44d,_0x37ae0c,_0x50c056,_0x1f5247,_0x1efb57);}async[_0x57a25a(0x27e)](_0x23ac61){const _0x282aaf=await this['_getSessionTicket'](),_0x4a4e3d=this['_createSocketURL'](_0x23ac61,_0x282aaf);return this['_doCreateSocket'](_0x4a4e3d);}[_0x57a25a(0x1a9)](_0x228ab3,_0x44cd8b){const _0x200693=_0x57a25a,_0x16e49f=typeof window>'u'?new URL(_0x228ab3):new URL(_0x228ab3,window['location'][_0x200693(0x2cd)]);_0x16e49f[_0x200693(0x198)][_0x200693(0xb9)](_0x200693(0x306),_0x44cd8b);const _0x13119c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x13119c[_0x200693(0x1dd)](_0x200693(0x179))&&_0x16e49f[_0x200693(0x198)]['set'](_0x200693(0x179),_0x13119c['get']('runId')),_0x16e49f[_0x200693(0x229)]();}async[_0x57a25a(0x2ba)](){const _0x3d7a40=_0x57a25a;var _0x2c9287,_0x20a308,_0x47d59d;const _0x3a7dac=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x8defca=(_0x2c9287=_0x3a7dac==null?void 0x0:_0x3a7dac[_0x3d7a40(0x276)])!=null?_0x2c9287:u[_0x3d7a40(0x1d8)];return(_0x47d59d=(_0x20a308=(await this['_httpService'][_0x3d7a40(0x1dd)](_0x8defca,{'headers':{'Content-Type':_0x3d7a40(0x103)}}))['body'])==null?void 0x0:_0x20a308['ticket'])!=null?_0x47d59d:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),F(0x1,a[_0x57a25a(0x17f)](G[_0x57a25a(0x1c9)])),F(0x2,a[_0x57a25a(0x18b)]),F(0x3,a[_0x57a25a(0x242)]),F(0x4,m[_0x57a25a(0x2db)])],exports[_0x57a25a(0x16c)]);const Me=0x7530,Le=_0x57a25a(0x155);class is extends a[_0x57a25a(0xe9)]{constructor(){const _0xec45d9=_0x57a25a;super(),h(this,'_id',a[_0xec45d9(0xce)]()),h(this,_0xec45d9(0x2c7),new Set()),h(this,_0xec45d9(0x1ae),new Map()),h(this,'_heartbeatTimer',null),h(this,_0xec45d9(0x1ef),new Map()),h(this,_0xec45d9(0x232),new Map()),this['_init']();}['dispose'](){const _0x5c87cf=_0x57a25a;super[_0x5c87cf(0x1eb)](),this[_0x5c87cf(0x1ef)][_0x5c87cf(0x2ef)]((_0x26e197,_0x296330)=>this[_0x5c87cf(0x2d7)](_0x296330)),this[_0x5c87cf(0x15b)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x12b766){const _0x2b8629=_0x57a25a;return this[_0x2b8629(0x1c2)](_0x12b766)['pipe'](d[_0x2b8629(0x1b4)]());}[_0x57a25a(0x30b)](_0x1f55d8){const _0x2e19ec=_0x57a25a;this[_0x2e19ec(0x2c7)][_0x2e19ec(0x2a5)]===0x0&&this[_0x2e19ec(0x125)](),this['_selfUnitIDs'][_0x2e19ec(0xdb)](_0x1f55d8),this[_0x2e19ec(0x254)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1f55d8],'isForwarded':!0x1});}['disposeUnit'](_0x36e692){const _0x20e4fb=_0x57a25a;this[_0x20e4fb(0x2c7)][_0x20e4fb(0x234)](_0x36e692),this[_0x20e4fb(0x2c7)]['size']===0x0&&this[_0x20e4fb(0x15b)]&&window[_0x20e4fb(0x2f8)](this[_0x20e4fb(0x15b)]);}[_0x57a25a(0x170)](){const _0x5ca928=_0x57a25a;this[_0x5ca928(0x293)](a[_0x5ca928(0x32b)](d['fromEvent'](window,'storage')['subscribe'](_0xa34e7f=>{const _0x5c053d=_0x5ca928;if(_0xa34e7f['key']!==Le||!_0xa34e7f['newValue'])return;const _0x2ccb61=JSON[_0x5c053d(0x2e8)](_0xa34e7f['newValue']);this[_0x5c053d(0x2b7)](_0x2ccb61);}))),window[_0x5ca928(0x158)]('unload',()=>this[_0x5ca928(0x254)]({'type':0x1,'memberID':this[_0x5ca928(0x1a0)],'unitIDs':Array[_0x5ca928(0x2e6)](this[_0x5ca928(0x2c7)])}));}[_0x57a25a(0x2b7)](_0xa404f8){const _0x277b0f=_0x57a25a;switch(_0xa404f8[_0x277b0f(0x258)]){case 0x0:this['_handleJoinEvent'](_0xa404f8);break;case 0x1:this['_handleLeaveEvent'](_0xa404f8);break;case 0x2:this[_0x277b0f(0x22d)](_0xa404f8);break;}}['_handleJoinEvent'](_0x44b703){const _0xac5d2b=_0x57a25a,{unitIDs:_0x5bc339,memberID:_0x1d0b1a,isForwarded:_0xad8e51}=_0x44b703;_0x5bc339[_0xac5d2b(0x2ef)](_0x4c69a6=>{const _0x8a8059=_0xac5d2b;if(!_0xad8e51&&this[_0x8a8059(0x1ae)]['has'](_0x4c69a6)&&this[_0x8a8059(0x1c2)](_0x4c69a6)[_0x8a8059(0x28d)](u[_0x8a8059(0xb2)][_0x8a8059(0x22f)]),!this[_0x8a8059(0x1ae)][_0x8a8059(0x177)](_0x4c69a6)||!this[_0x8a8059(0x1ae)][_0x8a8059(0x1dd)](_0x4c69a6)[_0x8a8059(0x177)](_0x1d0b1a)){const _0x3f3a37=this[_0x8a8059(0x1ae)][_0x8a8059(0x1dd)](_0x4c69a6)||new Set();_0x3f3a37[_0x8a8059(0xdb)](_0x1d0b1a),this[_0x8a8059(0x1ae)]['set'](_0x4c69a6,_0x3f3a37),this['_scheduleClearOtherTimer'](_0x1d0b1a);}}),_0xad8e51||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xac5d2b(0x2c7)]],'isForwarded':!0x0});}[_0x57a25a(0x16b)](_0x5094b2){const _0x249c20=_0x57a25a;this['_removeClearOtherTimer'](_0x5094b2);const _0x13a64c=window[_0x249c20(0x249)](()=>{const _0x3616ea=_0x249c20;this[_0x3616ea(0x1ae)]['forEach'](_0x5ac47b=>{const _0x52ae08=_0x3616ea;_0x5ac47b[_0x52ae08(0x234)](_0x5094b2);});},Me*0x2);this['_clearOtherTimers'][_0x249c20(0xb9)](_0x5094b2,_0x13a64c);}['_removeClearOtherTimer'](_0x4e6792){const _0x2dd9c1=_0x57a25a;if(this[_0x2dd9c1(0x1ef)][_0x2dd9c1(0x177)](_0x4e6792)){const _0x59af9b=this[_0x2dd9c1(0x1ef)][_0x2dd9c1(0x1dd)](_0x4e6792);_0x59af9b&&window[_0x2dd9c1(0x1d2)](_0x59af9b),this[_0x2dd9c1(0x1ef)][_0x2dd9c1(0xb9)](_0x4e6792,null);}}[_0x57a25a(0xb5)](_0xae0203){const _0x219e28=_0x57a25a,{memberID:_0x14fb4d,unitIDs:_0x2f6487}=_0xae0203;_0x2f6487[_0x219e28(0x2ef)](_0x2d7c1e=>{const _0x2248af=_0x219e28;var _0x3a6146;const _0x160ba0=this[_0x2248af(0x1ae)][_0x2248af(0x1dd)](_0x2d7c1e);_0x160ba0&&(_0x160ba0[_0x2248af(0x234)](_0x14fb4d),(_0x3a6146=this[_0x2248af(0x1c2)](_0x2d7c1e))==null||_0x3a6146[_0x2248af(0x28d)](_0x160ba0[_0x2248af(0x2a5)]===0x0?u[_0x2248af(0xb2)][_0x2248af(0x311)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x219e28(0x2d7)](_0x14fb4d);}['_handleHeartbeatEvent'](_0x265b0f){const _0x3e8eb2=_0x57a25a;this[_0x3e8eb2(0x16b)](_0x265b0f['memberID']);}[_0x57a25a(0x254)](_0x33af4c){const _0x13653f=_0x57a25a;localStorage[_0x13653f(0x286)](Le,JSON[_0x13653f(0x1d4)](_0x33af4c));}[_0x57a25a(0x125)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x14f0ba=_0x1cac;this[_0x14f0ba(0x254)]({'type':0x2,'memberID':this[_0x14f0ba(0x1a0)]});},Me);}['_ensureSubject'](_0x43e1f0){const _0x4cd701=_0x57a25a;return this[_0x4cd701(0x232)][_0x4cd701(0x177)](_0x43e1f0)||this['_unitStatus'][_0x4cd701(0xb9)](_0x43e1f0,new d[(_0x4cd701(0x290))](u[_0x4cd701(0xb2)][_0x4cd701(0x311)])),this['_unitStatus'][_0x4cd701(0x1dd)](_0x43e1f0);}}var Be=(_0x843785=>(_0x843785[_0x843785[_0x57a25a(0x181)]=0x0]=_0x57a25a(0x181),_0x843785[_0x843785['OK']=0x1]='OK',_0x843785[_0x843785['INTERNAL_ERROR']=0x2]=_0x57a25a(0x288),_0x843785[_0x843785[_0x57a25a(0x131)]=0x3]=_0x57a25a(0x131),_0x843785[_0x843785[_0x57a25a(0x321)]=0x4]='NOT_FOUND',_0x843785[_0x843785['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x843785[_0x843785[_0x57a25a(0x1bd)]=0x6]=_0x57a25a(0x1bd),_0x843785[_0x843785[_0x57a25a(0xf2)]=0x7]=_0x57a25a(0xf2),_0x843785[_0x843785[_0x57a25a(0x11b)]=0x8]=_0x57a25a(0x11b),_0x843785[_0x843785[_0x57a25a(0x235)]=0x9]=_0x57a25a(0x235),_0x843785[_0x843785[_0x57a25a(0x127)]=0xa]='LOGIN_FAILED',_0x843785[_0x843785[_0x57a25a(0x14d)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x843785[_0x843785['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x57a25a(0x134),_0x843785[_0x843785[_0x57a25a(0x13a)]=0x1772]=_0x57a25a(0x13a),_0x843785[_0x843785[_0x57a25a(0x211)]=0x1773]=_0x57a25a(0x211),_0x843785[_0x843785[_0x57a25a(0x297)]=0x1b59]=_0x57a25a(0x297),_0x843785[_0x843785[_0x57a25a(0x2f0)]=0x1b5a]=_0x57a25a(0x2f0),_0x843785[_0x843785['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x57a25a(0x1c3),_0x843785[_0x843785[_0x57a25a(0xde)]=0x1b5c]=_0x57a25a(0xde),_0x843785[_0x843785[_0x57a25a(0x141)]=0x1b5d]=_0x57a25a(0x141),_0x843785[_0x843785[_0x57a25a(0x2e5)]=0x1f41]=_0x57a25a(0x2e5),_0x843785[_0x843785[_0x57a25a(0x26d)]=0x2329]=_0x57a25a(0x26d),_0x843785[_0x843785[_0x57a25a(0x28c)]=0x232a]=_0x57a25a(0x28c),_0x843785[_0x843785[_0x57a25a(0x2c5)]=0x232b]=_0x57a25a(0x2c5),_0x843785[_0x843785['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x57a25a(0x128),_0x843785[_0x843785[_0x57a25a(0x210)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x843785[_0x843785[_0x57a25a(0x1c5)]=0x2711]=_0x57a25a(0x1c5),_0x843785[_0x843785[_0x57a25a(0xf3)]=0x2712]=_0x57a25a(0xf3),_0x843785[_0x843785[_0x57a25a(0x206)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x843785[_0x843785[_0x57a25a(0x207)]=0x2714]=_0x57a25a(0x207),_0x843785[_0x843785['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x843785[_0x843785[_0x57a25a(0x1b2)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x843785[_0x843785['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x57a25a(0x1d3),_0x843785[_0x843785['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x843785[_0x843785['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x57a25a(0x189),_0x843785[_0x843785[_0x57a25a(0x17a)]=0x271f]=_0x57a25a(0x17a),_0x843785[_0x843785[_0x57a25a(0x21b)]=0x2af9]=_0x57a25a(0x21b),_0x843785[_0x843785[_0x57a25a(0xd5)]=0x2ee1]=_0x57a25a(0xd5),_0x843785[_0x843785[_0x57a25a(0x22e)]=0x2ee2]=_0x57a25a(0x22e),_0x843785[_0x843785[_0x57a25a(0x20e)]=0x2ee3]=_0x57a25a(0x20e),_0x843785[_0x843785['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x843785[_0x843785[_0x57a25a(0xf4)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x843785[_0x843785[_0x57a25a(0x231)]=0x32c9]=_0x57a25a(0x231),_0x843785[_0x843785['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x843785[_0x843785['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x57a25a(0x1a8),_0x843785[_0x843785[_0x57a25a(0x188)]=-0x1]=_0x57a25a(0x188),_0x843785))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x196172,_0x82f832,_0x17a598,_0x281e57)=>{const _0x239889=_0x57a25a;for(var _0x29150f=_0x281e57>0x1?void 0x0:_0x281e57?ns(_0x82f832,_0x17a598):_0x82f832,_0x135c0a=_0x196172[_0x239889(0x25f)]-0x1,_0x2eac87;_0x135c0a>=0x0;_0x135c0a--)(_0x2eac87=_0x196172[_0x135c0a])&&(_0x29150f=_0x2eac87(_0x29150f)||_0x29150f);return _0x29150f;},ue=(_0x2e8faa,_0x2ca760)=>(_0x2718a9,_0x58a66b)=>_0x2ca760(_0x2718a9,_0x58a66b,_0x2e8faa);exports['RemoteUniscriptService']=class extends a[_0x57a25a(0xe9)]{constructor(_0x26ca84,_0x3eae87,_0x37296b){const _0x13f91b=_0x57a25a;super(),this['_instanceService']=_0x26ca84,this[_0x13f91b(0x12d)]=_0x3eae87,this[_0x13f91b(0x218)]=_0x37296b;}async[_0x57a25a(0x245)](_0x37a283,_0x4c4cd3,_0x31749c,..._0x87c2f7){const _0x4c1da5=_0x57a25a;var _0x19f9ad,_0x5d3b27,_0x3c142f,_0x50f68d;const _0x5ab5cf=this[_0x4c1da5(0x2a3)][_0x4c1da5(0x171)]();if(!_0x5ab5cf)throw new Error(_0x4c1da5(0x174));const _0x540557=((_0x19f9ad=this['_configService'][_0x4c1da5(0x1fa)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x19f9ad:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x37a283+_0x4c1da5(0xe3)+_0x4c4cd3,_0x25ae01=new URL(window[_0x4c1da5(0x228)]['href']),_0x53819b={'scriptId':_0x37a283,'runId':(_0x5d3b27=_0x25ae01[_0x4c1da5(0x198)][_0x4c1da5(0x1dd)](_0x4c1da5(0x179)))!=null?_0x5d3b27:'','function':_0x4c4cd3,'unitId':_0x5ab5cf[_0x4c1da5(0x15c)](),'argsOfFunction':JSON[_0x4c1da5(0x1d4)](_0x87c2f7),'invokeId':(_0x3c142f=_0x31749c[_0x4c1da5(0x194)])!=null?_0x3c142f:'','executionId':(_0x50f68d=_0x31749c[_0x4c1da5(0xba)])!=null?_0x50f68d:''};try{const _0x1548ea=await this[_0x4c1da5(0x12d)][_0x4c1da5(0x2ca)](_0x540557,{'body':_0x53819b});return _0x1548ea['body'][_0x4c1da5(0x201)]&&_0x1548ea[_0x4c1da5(0x1b9)][_0x4c1da5(0x201)]['code']!==Be['OK']?_0x4c1da5(0x160):_0x1548ea['body'][_0x4c1da5(0xbb)];}catch{return _0x4c1da5(0x160);}}},exports[_0x57a25a(0x15a)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x57a25a(0x17f)](G[_0x57a25a(0x1c9)])),ue(0x2,a[_0x57a25a(0x18b)])],exports[_0x57a25a(0x15a)]),exports['CollaborationStatusDisplay']=xe,exports[_0x57a25a(0x319)]=be,exports['SheetCollabCursorShape']=Ae,exports[_0x57a25a(0x1a5)]=is,exports['WebURLService']=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x6320f2=_0x3773;function _0x1a66(){const _0x150fdc=['42ZDxazE','Edit\x20conflicts','479772PyMrpU','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing\x20server\x20data...','Connection\x20failed,\x20please\x20check\x20your\x20network.','1328610EAEtKf','1469598kMMxIk','Authentication\x20Error','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1571886oENKNe','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','exports','Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Collaboration\x20Conflict','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Synced','Syncing...','Click\x20to\x20Reconnect','1168rJFYol','1344144CCXqsa','768maXRJT','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\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','77sUovVe','135975ezbnBS','12aVdkDb'];_0x1a66=function(){return _0x150fdc;};return _0x1a66();}(function(_0x5bb7c6,_0x998607){const _0x719aed=_0x3773,_0x41a8de=_0x5bb7c6();while(!![]){try{const _0x50949c=parseInt(_0x719aed(0x195))/0x1*(-parseInt(_0x719aed(0x197))/0x2)+parseInt(_0x719aed(0x1a4))/0x3+parseInt(_0x719aed(0x19c))/0x4*(-parseInt(_0x719aed(0x19b))/0x5)+-parseInt(_0x719aed(0x19f))/0x6*(parseInt(_0x719aed(0x19d))/0x7)+parseInt(_0x719aed(0x196))/0x8+-parseInt(_0x719aed(0x1a7))/0x9+parseInt(_0x719aed(0x1a3))/0xa*(parseInt(_0x719aed(0x19a))/0xb);if(_0x50949c===_0x998607)break;else _0x41a8de['push'](_0x41a8de['shift']());}catch(_0x237d3f){_0x41a8de['push'](_0x41a8de['shift']());}}}(_0x1a66,0x627bc));function _0x3773(_0x170567,_0x39e2c1){const _0x1a664a=_0x1a66();return _0x3773=function(_0x377314,_0x5aa171){_0x377314=_0x377314-0x18f;let _0x381b10=_0x1a664a[_0x377314];return _0x381b10;},_0x3773(_0x170567,_0x39e2c1);}const e={'collab-client':{'tooltip':{'reconnect':_0x6320f2(0x194)}},'collabStatus':{'fetchMiss':_0x6320f2(0x1a1),'conflict':_0x6320f2(0x19e),'notCollab':_0x6320f2(0x1aa),'synced':_0x6320f2(0x192),'syncing':_0x6320f2(0x193),'offline':_0x6320f2(0x191)},'session':{'connection-failed':_0x6320f2(0x1a2),'will-retry':_0x6320f2(0x1a0),'room-full':_0x6320f2(0x199),'collaboration-timeout':_0x6320f2(0x18f)},'conflict':{'title':_0x6320f2(0x190),'content':_0x6320f2(0x198)},'permission':{'title':_0x6320f2(0x1a5),'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':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x6320f2(0x1a6)},'auth':{'needGotoLoginAlert':_0x6320f2(0x1a8)}};module[_0x6320f2(0x1a9)]=e;
|