@univerjs-pro/collaboration-client-ui 0.8.2-nightly.202506211606 → 0.8.2-nightly.202506221606
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';function _0x2dbb(){const _0xff997c=['275DeOTUb','48978rQVYDq','2110821centgA','46634566zaKQVN','9976faKWNI','@univerjs-pro/collaboration-client-ui','FUniver','35MtDbSm','RemoteUniscriptService','6666560tEsKBB','653838BqXsty','runOnServer','_injector','@univerjs/core/facade','4kUAOSt','1450TTXoQJ','extend','1525420HyRhAR'];_0x2dbb=function(){return _0xff997c;};return _0x2dbb();}const _0x32b553=_0x1aef;(function(_0x171e58,_0x58001c){const _0x4dabda=_0x1aef,_0x31f896=_0x171e58();while(!![]){try{const _0x4f1b4a=-parseInt(_0x4dabda(0x1a2))/0x1+parseInt(_0x4dabda(0x19f))/0x2*(-parseInt(_0x4dabda(0x1a5))/0x3)+parseInt(_0x4dabda(0x1a7))/0x4*(parseInt(_0x4dabda(0x1a3))/0x5)+-parseInt(_0x4dabda(0x19b))/0x6*(parseInt(_0x4dabda(0x198))/0x7)+parseInt(_0x4dabda(0x19a))/0x8+parseInt(_0x4dabda(0x1a4))/0x9*(-parseInt(_0x4dabda(0x1a0))/0xa)+parseInt(_0x4dabda(0x1a6))/0xb;if(_0x4f1b4a===_0x58001c)break;else _0x31f896['push'](_0x31f896['shift']());}catch(_0x37293f){_0x31f896['push'](_0x31f896['shift']());}}}(_0x2dbb,0xe652f));const t=require(_0x32b553(0x196)),e=require(_0x32b553(0x19e));class c extends e['FUniver']{[_0x32b553(0x19c)](_0x5ab03f,_0x291eb6,..._0xb9c43a){const _0x24960c=_0x32b553;return this[_0x24960c(0x19d)]['get'](t[_0x24960c(0x199)])[_0x24960c(0x19c)](_0x5ab03f,_0x291eb6,{},..._0xb9c43a);}}function _0x1aef(_0x52897b,_0x448a6b){const _0x2dbbdf=_0x2dbb();return _0x1aef=function(_0x1aef7c,_0x1cf1c7){_0x1aef7c=_0x1aef7c-0x196;let _0x1a2a07=_0x2dbbdf[_0x1aef7c];return _0x1a2a07;},_0x1aef(_0x52897b,_0x448a6b);}e[_0x32b553(0x197)][_0x32b553(0x1a1)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x30c27a=_0x2320;(function(_0xfb7e1d,_0x46eb39){const _0x28fe9b=_0x2320,_0x5cb23d=_0xfb7e1d();while(!![]){try{const _0x25a3a1=-parseInt(_0x28fe9b(0x244))/0x1+parseInt(_0x28fe9b(0x23d))/0x2*(-parseInt(_0x28fe9b(0x19b))/0x3)+parseInt(_0x28fe9b(0x1bd))/0x4*(-parseInt(_0x28fe9b(0x219))/0x5)+-parseInt(_0x28fe9b(0x3c7))/0x6*(parseInt(_0x28fe9b(0x223))/0x7)+parseInt(_0x28fe9b(0x1f6))/0x8+parseInt(_0x28fe9b(0x34d))/0x9*(-parseInt(_0x28fe9b(0x3df))/0xa)+parseInt(_0x28fe9b(0x16c))/0xb;if(_0x25a3a1===_0x46eb39)break;else _0x5cb23d['push'](_0x5cb23d['shift']());}catch(_0x1d2bfc){_0x5cb23d['push'](_0x5cb23d['shift']());}}}(_0x3f13,0x18cc0));var Ve=Object[_0x30c27a(0x1b4)],Xe=(_0x37bf52,_0x274a74,_0x13a6c9)=>_0x274a74 in _0x37bf52?Ve(_0x37bf52,_0x274a74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13a6c9}):_0x37bf52[_0x274a74]=_0x13a6c9,h=(_0x111273,_0x252c8e,_0xb15281)=>Xe(_0x111273,typeof _0x252c8e!=_0x30c27a(0x1e5)?_0x252c8e+'':_0x252c8e,_0xb15281);Object[_0x30c27a(0x1b4)](exports,Symbol[_0x30c27a(0x38a)],{'value':_0x30c27a(0x2c8)});const u=require(_0x30c27a(0x1b6)),a=require('@univerjs/core'),p=require(_0x30c27a(0x1f8)),G=require(_0x30c27a(0x2b1)),E=require(_0x30c27a(0x2a6)),Ge=require(_0x30c27a(0x2a8)),d=require(_0x30c27a(0x184)),m=require(_0x30c27a(0x286)),Y=require('@univerjs/docs'),be=require(_0x30c27a(0x2a4)),g=require(_0x30c27a(0x379)),$=require(_0x30c27a(0x279)),X=require(_0x30c27a(0x277)),P=require(_0x30c27a(0x367)),O=require(_0x30c27a(0x22a)),D=require(_0x30c27a(0x1ad)),M=require('react'),Ke=require(_0x30c27a(0x39e));var qe=Object[_0x30c27a(0x329)],ze=(_0x19cd65,_0x5f1f0b,_0x36941b,_0x21694e)=>{const _0x254f4b=_0x30c27a;for(var _0x369f89=_0x21694e>0x1?void 0x0:_0x21694e?qe(_0x5f1f0b,_0x36941b):_0x5f1f0b,_0x3726a2=_0x19cd65[_0x254f4b(0x2ff)]-0x1,_0x76770d;_0x3726a2>=0x0;_0x3726a2--)(_0x76770d=_0x19cd65[_0x3726a2])&&(_0x369f89=_0x76770d(_0x369f89)||_0x369f89);return _0x369f89;},Oe=(_0x3ee9d0,_0x498a1a)=>(_0x4bb43b,_0x4c5fff)=>_0x498a1a(_0x4bb43b,_0x4c5fff,_0x3ee9d0);let de=class extends a[_0x30c27a(0x2fa)]{constructor(_0x217b4c,_0x4a6a75){const _0x2b7a7e=_0x30c27a;super(),this[_0x2b7a7e(0x3b8)]=_0x217b4c,this[_0x2b7a7e(0x234)]=_0x4a6a75,this[_0x2b7a7e(0x271)]();}[_0x30c27a(0x271)](){const _0x5164ec=_0x30c27a,_0x40a3fa=this;this[_0x5164ec(0x20b)](this[_0x5164ec(0x3b8)][_0x5164ec(0x293)]({'onBeforePasteImage':async _0x4f5f38=>{const _0x593392=_0x5164ec,_0xf7e26a=await _0x40a3fa[_0x593392(0x234)][_0x593392(0x1ab)](_0x4f5f38);return _0xf7e26a?{'source':_0xf7e26a[_0x593392(0x1c1)],'imageSourceType':_0xf7e26a[_0x593392(0x1eb)]}:null;}}));}};de=ze([Oe(0x0,E[_0x30c27a(0x278)]),Oe(0x1,Ge[_0x30c27a(0x3fa)])],de);const Te=[_0x30c27a(0x1cd),_0x30c27a(0x333),_0x30c27a(0x29a),'red.300',_0x30c27a(0x2dc),'yellow.400'];class me extends a[_0x30c27a(0x27d)]{constructor(){const _0x27009b=_0x30c27a;super(...arguments),h(this,_0x27009b(0x3dd),new Map()),h(this,_0x27009b(0x21e),0x0);}[_0x30c27a(0x387)](_0x3ba0ec){const _0x2dbbae=_0x30c27a;if(this[_0x2dbbae(0x3dd)][_0x2dbbae(0x29e)](_0x3ba0ec))return this['_assignedColors']['get'](_0x3ba0ec);const _0x25d3ad=Te[this[_0x2dbbae(0x21e)]];return this[_0x2dbbae(0x21e)]=(this[_0x2dbbae(0x21e)]+0x1)%Te[_0x2dbbae(0x2ff)],this['_assignedColors'][_0x2dbbae(0x2f3)](_0x3ba0ec,_0x25d3ad),_0x25d3ad;}}function Pe(_0xe32420){const _0x2e3c1e=_0x30c27a;let _0x390fa2='';for(const _0x282ad6 of _0xe32420){const {startOffset:_0x5002de,endOffset:_0x3daa3e,isActive:_0x46ec9c,rangeType:_0x39f493,segmentId:_0xc4c0c3,segmentPage:_0x4bac9f}=_0x282ad6;_0x390fa2[_0x2e3c1e(0x2ff)]&&(_0x390fa2+=','),_0x390fa2+=_0x5002de+':'+_0x3daa3e+':'+(_0x46ec9c?'1':'0')+':'+_0x39f493+':'+_0xc4c0c3+':'+_0x4bac9f;}return _0x390fa2;}function Je(_0x39aa78){const _0x29618b=_0x30c27a,_0xceaa23=_0x39aa78[_0x29618b(0x3c1)](','),_0x5aecb8=[];for(const _0x203fd4 of _0xceaa23){const [_0xeffcd3,_0x3913e3,_0x20b873,_0x414a44,_0x152fab,_0x5559e8]=_0x203fd4[_0x29618b(0x3c1)](':');_0x5aecb8[_0x29618b(0x1b8)]({'startOffset':Number(_0xeffcd3),'endOffset':Number(_0x3913e3),'collapsed':_0xeffcd3===_0x3913e3,'isActive':_0x20b873==='1','rangeType':_0x414a44===a[_0x29618b(0x289)][_0x29618b(0x342)]?a[_0x29618b(0x289)]['TEXT']:a[_0x29618b(0x289)][_0x29618b(0x321)],'segmentId':typeof _0x152fab==_0x29618b(0x3d7)?String(_0x152fab):'','segmentPage':Number(_0x5559e8!=null?_0x5559e8:-0x1)});}return _0x5aecb8[_0x29618b(0x21f)](_0x26cd7f=>_0x26cd7f['isActive'])||(_0x5aecb8[0x0][_0x29618b(0x1f3)]=!0x0),_0x5aecb8;}class Ce extends a['RxDisposable']{constructor(){const _0x1342df=_0x30c27a;super(...arguments),h(this,'_collabCursorState$',new d[(_0x1342df(0x299))](null)),h(this,_0x1342df(0x312),this[_0x1342df(0x2a0)][_0x1342df(0x2d7)]());}[_0x30c27a(0x204)](_0x5496f3){const _0x1f3cfe=_0x30c27a,{unitID:_0x44258a,memberID:_0x3ad282,textRanges:_0x347ab1}=_0x5496f3,_0x1799d7=Pe(_0x347ab1);if(_0x1799d7==='')return;const _0x550000={'unitID':_0x44258a,'memberID':_0x3ad282,'selection':_0x1799d7};this[_0x1f3cfe(0x2a0)][_0x1f3cfe(0x2d2)](_0x550000);}}var Ze=Object[_0x30c27a(0x329)],Qe=(_0x8ca01,_0x2ce8c6,_0x104146,_0x1f4dae)=>{for(var _0x19ef15=_0x1f4dae>0x1?void 0x0:_0x1f4dae?Ze(_0x2ce8c6,_0x104146):_0x2ce8c6,_0x35bed1=_0x8ca01['length']-0x1,_0x4acd49;_0x35bed1>=0x0;_0x35bed1--)(_0x4acd49=_0x8ca01[_0x35bed1])&&(_0x19ef15=_0x4acd49(_0x19ef15)||_0x19ef15);return _0x19ef15;},L=(_0x22ab4c,_0x30b6e9)=>(_0x2289c3,_0x21445b)=>_0x30b6e9(_0x2289c3,_0x21445b,_0x22ab4c);const et=0x12c,tt=0x64;let Ie=class extends a[_0x30c27a(0x2fa)]{constructor(_0x3f6290,_0xbf536b,_0x581ed4,_0x422da7,_0x25947c,_0x250a44,_0x596692,_0x25992f,_0x56153b){const _0x4956d1=_0x30c27a;super(),h(this,_0x4956d1(0x323),!0x1),h(this,_0x4956d1(0x271),!0x1),h(this,_0x4956d1(0x3f6),new d[(_0x4956d1(0x299))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x4956d1(0x2d7)]()),h(this,_0x4956d1(0x242),new d[(_0x4956d1(0x299))]([])),h(this,_0x4956d1(0x215),this[_0x4956d1(0x242)][_0x4956d1(0x180)](d[_0x4956d1(0x1ce)](et))),h(this,_0x4956d1(0x3b0),a[_0x4956d1(0x265)](_0x574f9b=>{const _0x42d94a=_0x4956d1,_0x5e97b3={'eventID':m[_0x42d94a(0x39c)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x42d94a(0x1c4)][_0x42d94a(0x347)](),'selection':Pe(_0x574f9b)}};this[_0x42d94a(0x1c4)]['send'](_0x5e97b3,this[_0x42d94a(0x2a5)]);},tt)),(this[_0x4956d1(0x2a5)]=_0x3f6290,this[_0x4956d1(0x1c4)]=_0xbf536b,this[_0x4956d1(0x236)]=_0x581ed4,this[_0x4956d1(0x302)]=_0x422da7,this[_0x4956d1(0x1df)]=_0x25947c,this[_0x4956d1(0x2b3)]=_0x250a44,this[_0x4956d1(0x3fe)]=_0x596692,this[_0x4956d1(0x3e3)]=_0x25992f,this['_commandService']=_0x56153b);}get['cursorInfo'](){const _0x38a10a=_0x30c27a;return this[_0x38a10a(0x3f6)][_0x38a10a(0x322)]();}get['roomMembers'](){const _0x3366f3=_0x30c27a;return this['_roomMembers$'][_0x3366f3(0x322)]();}['dispose'](){const _0x36429a=_0x30c27a;super[_0x36429a(0x196)](),this[_0x36429a(0x3f6)]['next'](new Map()),this[_0x36429a(0x3f6)][_0x36429a(0x39d)](),this[_0x36429a(0x242)][_0x36429a(0x2d2)]([]),this['_roomMembers$'][_0x36429a(0x39d)]();}[_0x30c27a(0x1e7)](){const _0x909aed=_0x30c27a;this[_0x909aed(0x271)]||(this['_init']=!0x0,this[_0x909aed(0x1c4)][_0x909aed(0x1e8)]['pipe'](d[_0x909aed(0x23f)](this[_0x909aed(0x320)]))['subscribe'](_0x3f6ac4=>{const _0x4c5267=_0x909aed;_0x3f6ac4===u[_0x4c5267(0x335)][_0x4c5267(0x31e)]?this[_0x4c5267(0x3a7)]():this[_0x4c5267(0x372)]();}),this[_0x909aed(0x1c4)][_0x909aed(0x386)]['pipe'](d['takeUntil'](this[_0x909aed(0x320)]))[_0x909aed(0x258)](_0x3e7f6d=>{const _0x20a0b6=_0x909aed,_0x2b76d3=_0x3e7f6d[_0x20a0b6(0x1d6)];_0x2b76d3===m[_0x20a0b6(0x39c)][_0x20a0b6(0x1fe)]&&this[_0x20a0b6(0x24d)](_0x3e7f6d),_0x2b76d3===m[_0x20a0b6(0x39c)][_0x20a0b6(0x2ea)]&&this['_onCursorDelete'](_0x3e7f6d);}),this[_0x909aed(0x20b)](this[_0x909aed(0x3a6)][_0x909aed(0x263)](_0xa1c098=>{const _0x127717=_0x909aed,_0x343ad6=_0xa1c098[_0x127717(0x222)];_0x343ad6!=null&&this[_0x127717(0x323)]&&_0xa1c098['id']===Y[_0x127717(0x336)]['id']&&_0x343ad6['unitId']===this[_0x127717(0x2a5)]&&_0x343ad6[_0x127717(0x200)]===!0x1&&_0x343ad6[_0x127717(0x303)][_0x127717(0x2ff)]>0x0&&this['_updateLocalCursor'](_0x343ad6[_0x127717(0x303)]);})),this['_syncEditingCollabCursorService'][_0x909aed(0x312)][_0x909aed(0x180)](d[_0x909aed(0x23f)](this[_0x909aed(0x320)]))[_0x909aed(0x258)](_0x3e4238=>{const _0x498446=_0x909aed;if((_0x3e4238==null?void 0x0:_0x3e4238[_0x498446(0x2a5)])!==this[_0x498446(0x2a5)])return;const _0x5ad799={'eventID':m[_0x498446(0x39c)][_0x498446(0x1fe)],'data':_0x3e4238};this[_0x498446(0x24d)](_0x5ad799);}),this[_0x909aed(0x20b)](this['_commandService'][_0x909aed(0x263)](_0x1720a3=>{const _0x3aaf57=_0x909aed;if(_0x1720a3[_0x3aaf57(0x222)]==null)return;const _0x34c7ff=_0x1720a3[_0x3aaf57(0x222)];if(_0x1720a3['id']!==Y[_0x3aaf57(0x18c)]['id']||_0x34c7ff['unitId']!==this[_0x3aaf57(0x2a5)])return;const _0x393b46={'id':'doc.mutation.rich-text-editing','params':_0x34c7ff},_0x26f8f7=this[_0x3aaf57(0x3ee)];for(const [_0x503882,_0x3b16d8]of _0x26f8f7){const _0x514d78={'id':_0x3aaf57(0x212),'params':{'unitId':this[_0x3aaf57(0x2a5)],'actions':null,'textRanges':_0x3b16d8['ranges']}},_0x3a6f5e=this[_0x3aaf57(0x3fe)][_0x3aaf57(0x399)](_0x393b46,_0x514d78,!0x1);if(m[_0x3aaf57(0x1c3)](_0x3a6f5e))throw _0x3a6f5e[_0x3aaf57(0x243)];_0x26f8f7['set'](_0x503882,{..._0x3b16d8,'ranges':_0x3a6f5e[_0x3aaf57(0x3f4)][_0x3aaf57(0x222)][_0x3aaf57(0x382)]});}queueMicrotask(()=>{const _0x5537d1=_0x3aaf57;this[_0x5537d1(0x3f6)][_0x5537d1(0x2d2)](_0x26f8f7);});})));}['_onCursorUpdate'](_0xd5248c){const _0x36d7d1=_0x30c27a;var _0x3c4674,_0x48898c;const {memberID:_0x144f51,selection:_0x41f107}=_0xd5248c[_0x36d7d1(0x190)],_0x2b1de8=Je(_0x41f107),_0x517dd5=(_0x48898c=(_0x3c4674=this[_0x36d7d1(0x1df)]['getMember'](this[_0x36d7d1(0x2a5)],_0x144f51))==null?void 0x0:_0x3c4674[_0x36d7d1(0x257)])!=null?_0x48898c:'Unknown\x20user',_0x4eec72={'color':this[_0x36d7d1(0x302)][_0x36d7d1(0x387)](_0x144f51),'name':_0x517dd5,'ranges':_0x2b1de8},_0x537c9a=this[_0x36d7d1(0x3ee)];_0x537c9a[_0x36d7d1(0x2f3)](_0x144f51,_0x4eec72),this[_0x36d7d1(0x3f6)][_0x36d7d1(0x2d2)](_0x537c9a);}[_0x30c27a(0x390)](_0x143316){const _0x553fd7=_0x30c27a,{memberID:_0x34d2ea}=_0x143316[_0x553fd7(0x190)],_0x1b2883=this[_0x553fd7(0x3ee)];_0x1b2883[_0x553fd7(0x33a)](_0x34d2ea),this['_cursorInfo$'][_0x553fd7(0x2d2)](_0x1b2883);}[_0x30c27a(0x3a7)](){const _0x2972c4=_0x30c27a;var _0x4ee1d1;if(this[_0x2972c4(0x323)]=!0x0,((_0x4ee1d1=this[_0x2972c4(0x3e3)][_0x2972c4(0x24e)]())==null?void 0x0:_0x4ee1d1[_0x2972c4(0x16f)]())!==this[_0x2972c4(0x2a5)])return;const _0x3e2540=this['_injector'][_0x2972c4(0x235)](Y[_0x2972c4(0x2e8)])['getDocRanges']();Array[_0x2972c4(0x2d5)](_0x3e2540)&&_0x3e2540[_0x2972c4(0x2ff)]>0x0&&this[_0x2972c4(0x3b0)](_0x3e2540);}[_0x30c27a(0x372)](){const _0xd6b4fd=_0x30c27a;this[_0xd6b4fd(0x323)]=!0x1;}};Ie=Qe([L(0x2,a[_0x30c27a(0x34b)](a['Injector'])),L(0x3,a[_0x30c27a(0x34b)](me)),L(0x4,a[_0x30c27a(0x34b)](u[_0x30c27a(0x37f)])),L(0x5,a[_0x30c27a(0x34b)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x30c27a(0x3e0)]),L(0x8,a[_0x30c27a(0x39f)])],Ie);var st=Object[_0x30c27a(0x329)],it=(_0x13ce7a,_0x1f34f7,_0xaa6ea1,_0x551563)=>{const _0x1b22d5=_0x30c27a;for(var _0x50d9a5=_0x551563>0x1?void 0x0:_0x551563?st(_0x1f34f7,_0xaa6ea1):_0x1f34f7,_0x2ee5df=_0x13ce7a[_0x1b22d5(0x2ff)]-0x1,_0x2dd1fc;_0x2ee5df>=0x0;_0x2ee5df--)(_0x2dd1fc=_0x13ce7a[_0x2ee5df])&&(_0x50d9a5=_0x2dd1fc(_0x50d9a5)||_0x50d9a5);return _0x50d9a5;},A=(_0x367d93,_0xc155ed)=>(_0x151bc9,_0x8df936)=>_0xc155ed(_0x151bc9,_0x8df936,_0x367d93);const nt=0x12c,rt=0x64,ot=()=>{let _0x1c8e74=[],_0x4af2df=!0x1;return _0x2c6212=>{_0x1c8e74['push'](_0x2c6212),_0x4af2df||(_0x4af2df=!0x0,setTimeout(()=>{_0x1c8e74['forEach'](_0x17edee=>_0x17edee()),_0x1c8e74=[],_0x4af2df=!0x1;}));};};let Se=class extends a[_0x30c27a(0x2fa)]{constructor(_0x540333,_0x278f35,_0x5058dc,_0x2940f9,_0x8189f7,_0x27816e,_0x30fce9,_0xf1a48e){const _0xeef00c=_0x30c27a;super(),h(this,_0xeef00c(0x323),!0x1),h(this,_0xeef00c(0x271),!0x1),h(this,_0xeef00c(0x3f6),new d[(_0xeef00c(0x299))](new Map())),h(this,_0xeef00c(0x3b3),this[_0xeef00c(0x3f6)]['asObservable']()),h(this,'_roomMembers$',new d[(_0xeef00c(0x299))]([])),h(this,_0xeef00c(0x215),this[_0xeef00c(0x242)][_0xeef00c(0x180)](d[_0xeef00c(0x1ce)](nt))),h(this,'_updateLocalCursor',a[_0xeef00c(0x265)]((_0x24c608,_0x553683)=>{const _0x27b02b=_0xeef00c,_0x39730c={'eventID':m['CollaborationEvent'][_0x27b02b(0x1fe)],'data':{'unitID':this[_0x27b02b(0x2a5)],'memberID':this[_0x27b02b(0x1c4)][_0x27b02b(0x347)](),'selection':be[_0x27b02b(0x314)](_0x24c608,_0x553683[_0x27b02b(0x3d6)])}};this[_0x27b02b(0x1c4)][_0x27b02b(0x37e)](_0x39730c,this['unitID']);},rt)),(this['unitID']=_0x540333,this[_0xeef00c(0x1c4)]=_0x278f35,this[_0xeef00c(0x236)]=_0x5058dc,this['_colorAssignService']=_0x2940f9,this['_memberService']=_0x8189f7,this[_0xeef00c(0x3e3)]=_0x27816e,this['_commandService']=_0x30fce9,this[_0xeef00c(0x186)]=_0xf1a48e);}get[_0x30c27a(0x3ee)](){const _0x3b50a4=_0x30c27a;return this[_0x3b50a4(0x3f6)][_0x3b50a4(0x322)]();}get[_0x30c27a(0x238)](){return this['_roomMembers$']['getValue']();}[_0x30c27a(0x196)](){const _0x39cea6=_0x30c27a;super[_0x39cea6(0x196)](),this[_0x39cea6(0x3f6)][_0x39cea6(0x2d2)](new Map()),this[_0x39cea6(0x3f6)][_0x39cea6(0x39d)](),this[_0x39cea6(0x242)][_0x39cea6(0x2d2)]([]),this['_roomMembers$'][_0x39cea6(0x39d)]();}[_0x30c27a(0x1e7)](){const _0xb4df21=_0x30c27a;this[_0xb4df21(0x271)]||(this['_init']=!0x0,this[_0xb4df21(0x1c4)]['sessionStatus$']['pipe'](d[_0xb4df21(0x23f)](this[_0xb4df21(0x320)]))['subscribe'](_0x31d9c8=>{const _0x44df14=_0xb4df21;_0x31d9c8===u[_0x44df14(0x335)][_0x44df14(0x31e)]?this[_0x44df14(0x3a7)]():this['_toggleOffline']();}),this[_0xb4df21(0x1c4)][_0xb4df21(0x386)][_0xb4df21(0x180)](d['takeUntil'](this[_0xb4df21(0x320)]))[_0xb4df21(0x258)](_0x4961f4=>{const _0x5057c4=_0xb4df21,_0x9a7e7a=_0x4961f4[_0x5057c4(0x1d6)];_0x9a7e7a===m['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x4961f4),_0x9a7e7a===m[_0x5057c4(0x39c)][_0x5057c4(0x2ea)]&&this[_0x5057c4(0x390)](_0x4961f4);}),this[_0xb4df21(0x331)](),this[_0xb4df21(0x20b)](this['_commandService'][_0xb4df21(0x263)](_0x380c0a=>{const _0x147aa8=_0xb4df21;if(this[_0x147aa8(0x323)]&&_0x380c0a['id']===g[_0x147aa8(0x250)]['id']&&_0x380c0a[_0x147aa8(0x222)][_0x147aa8(0x2ed)]===this[_0x147aa8(0x2a5)]){const _0x39975a=_0x380c0a[_0x147aa8(0x222)];this[_0x147aa8(0x3b0)](_0x39975a[_0x147aa8(0x1dd)],_0x39975a['selections'][0x0]);}})));}[_0x30c27a(0x24d)](_0x134e1c){const _0x36b22c=_0x30c27a;var _0xe0b155,_0x27e5f1;const {memberID:_0x3f0220,selection:_0xfb748}=_0x134e1c[_0x36b22c(0x190)],{sheetName:_0x51d1a9,range:_0x515e80}=be[_0x36b22c(0x3b2)](_0xfb748),_0x4233be={'name':(_0x27e5f1=(_0xe0b155=this[_0x36b22c(0x1df)][_0x36b22c(0x370)](this[_0x36b22c(0x2a5)],_0x3f0220))==null?void 0x0:_0xe0b155[_0x36b22c(0x257)])!=null?_0x27e5f1:_0x36b22c(0x211),'range':this['_getMergeRange'](_0x51d1a9,_0x515e80),'sheetID':_0x51d1a9,'color':this[_0x36b22c(0x302)][_0x36b22c(0x387)](_0x3f0220),'selection':_0xfb748},_0x36ade7=this[_0x36b22c(0x3ee)];_0x36ade7['set'](_0x3f0220,_0x4233be),this['_cursorInfo$']['next'](_0x36ade7);}[_0x30c27a(0x390)](_0x4d6bf9){const _0x3a5189=_0x30c27a,{memberID:_0x55a9cb}=_0x4d6bf9['data'],_0x382ae2=this[_0x3a5189(0x3ee)];_0x382ae2[_0x3a5189(0x33a)](_0x55a9cb),this[_0x3a5189(0x3f6)]['next'](_0x382ae2);}[_0x30c27a(0x173)](_0x25eb9e,_0x47e4d1){const _0x59044f=_0x30c27a;var _0x245439,_0x3ac421;const _0x6729be=(_0x3ac421=(_0x245439=this[_0x59044f(0x3e3)][_0x59044f(0x194)](this[_0x59044f(0x2a5)]))==null?void 0x0:_0x245439[_0x59044f(0x2ee)](_0x25eb9e))==null?void 0x0:_0x3ac421[_0x59044f(0x350)]();return(_0x6729be==null?void 0x0:_0x6729be[_0x59044f(0x2cd)](_0x519a50=>a[_0x59044f(0x2c1)]['contains'](_0x519a50,_0x47e4d1)))||_0x47e4d1;}[_0x30c27a(0x331)](){const _0x20647a=_0x30c27a,_0x1e17b2=new a['DisposableCollection'](),_0x1961e9=ot(),_0x31cadc=()=>{const _0xdd8bf9=_0x2320;_0x1e17b2[_0xdd8bf9(0x196)]();const _0x599f8d=(_0x1f90fc,_0x3c4087,_0x47898a,_0x5ed6f8)=>{const _0x3ed547=_0xdd8bf9;let _0x27bee5=[];switch(_0x1f90fc['id']){case g['EffectRefRangId'][_0x3ed547(0x225)]:{_0x27bee5=g[_0x3ed547(0x295)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x1c5)]:{_0x27bee5=g[_0x3ed547(0x349)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x3af)]:{_0x27bee5=g[_0x3ed547(0x3ce)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x2d9)]:{_0x27bee5=g[_0x3ed547(0x357)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x2db)]:{_0x27bee5=g[_0x3ed547(0x311)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)]['InsertRowCommandId']:{_0x27bee5=g['handleInsertRow'](_0x1f90fc,_0x5ed6f8);break;}case g['EffectRefRangId'][_0x3ed547(0x1d1)]:{_0x27bee5=g['handleMoveRange'](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x291)]:{_0x27bee5=g['handleIRemoveCol'](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)]['RemoveRowCommandId']:{_0x27bee5=g[_0x3ed547(0x1e2)](_0x1f90fc,_0x5ed6f8);break;}}const _0x396a00=g['runRefRangeMutations'](_0x27bee5,_0x5ed6f8),_0x35de8a=this[_0x3ed547(0x3ee)]['get'](_0x3c4087);if(_0x35de8a&&_0x396a00){const _0x494e9f={..._0x35de8a,'range':_0x396a00};this[_0x3ed547(0x3ee)]['set'](_0x3c4087,_0x494e9f),_0x1961e9(()=>{const _0x403bfa=_0x3ed547,_0x55bd45=this[_0x403bfa(0x186)][_0x403bfa(0x31c)](_0x396a00,_0xa1e278=>(_0x55bd45[_0x403bfa(0x196)](),_0x599f8d(_0xa1e278,_0x3c4087,_0x47898a,_0x396a00)));_0x1e17b2['add'](_0x55bd45);});}return{'redos':[],'undos':[]};};this[_0xdd8bf9(0x3ee)][_0xdd8bf9(0x232)]((_0x239052,_0x2f422a)=>{const _0x44db86=_0xdd8bf9,{range:_0x2136e3,sheetID:_0xfa09c8}=_0x239052,_0x1907bb=this[_0x44db86(0x186)]['registerRefRange'](_0x2136e3,_0xbef6c3=>(_0x1907bb[_0x44db86(0x196)](),_0x599f8d(_0xbef6c3,_0x2f422a,_0xfa09c8,_0x2136e3)));_0x1e17b2[_0x44db86(0x20f)](_0x1907bb);});};this[_0x20647a(0x20b)](a[_0x20647a(0x19d)](this[_0x20647a(0x3f6)]['subscribe'](()=>{_0x31cadc();})));}[_0x30c27a(0x3a7)](){const _0xbb0c7d=_0x30c27a;var _0x118712,_0x24cd76;if(this['_online']=!0x0,((_0x118712=this[_0xbb0c7d(0x3e3)][_0xbb0c7d(0x24e)]())==null?void 0x0:_0x118712['getUnitId']())!==this[_0xbb0c7d(0x2a5)])return;const _0x29f289=(_0x24cd76=this['_injector']['get'](g[_0xbb0c7d(0x328)])[_0xbb0c7d(0x17e)]())==null?void 0x0:_0x24cd76[0x0],_0xb6dd83=this['_univerInstanceService'][_0xbb0c7d(0x337)](a[_0xbb0c7d(0x38f)][_0xbb0c7d(0x3d2)])[_0xbb0c7d(0x208)]();_0x29f289&&_0xb6dd83&&this[_0xbb0c7d(0x3b0)](_0xb6dd83[_0xbb0c7d(0x18b)](),_0x29f289);}['_toggleOffline'](){const _0x4f3d56=_0x30c27a;this[_0x4f3d56(0x323)]=!0x1;}};Se=it([A(0x2,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x30c27a(0x34b)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x30c27a(0x39f)]),A(0x7,a[_0x30c27a(0x34b)](g[_0x30c27a(0x1cb)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x44db5d,_0x4dc377,_0x599020,_0x344dc0)=>{for(var _0x4e8a93=_0x344dc0>0x1?void 0x0:_0x344dc0?at(_0x4dc377,_0x599020):_0x4dc377,_0x23e199=_0x44db5d['length']-0x1,_0x480d19;_0x23e199>=0x0;_0x23e199--)(_0x480d19=_0x44db5d[_0x23e199])&&(_0x4e8a93=_0x480d19(_0x4e8a93)||_0x4e8a93);return _0x4e8a93;},ie=(_0x365f17,_0x20a4d8)=>(_0x14d6d3,_0x45b59a)=>_0x20a4d8(_0x14d6d3,_0x45b59a,_0x365f17);let x=class extends a[_0x30c27a(0x2fa)]{constructor(_0x1705a8,_0x223fd2,_0x3c303a){const _0x5dec74=_0x30c27a;super(),h(this,_0x5dec74(0x380),new Map()),h(this,'_entityInit$',new d[(_0x5dec74(0x316))]()),(this['_univerInstanceService']=_0x1705a8,this['_injector']=_0x223fd2,this[_0x5dec74(0x1b1)]=_0x3c303a,this[_0x5dec74(0x271)]());}[_0x30c27a(0x196)](){const _0x4dd0c1=_0x30c27a;super[_0x4dd0c1(0x196)](),this[_0x4dd0c1(0x28c)][_0x4dd0c1(0x39d)](),this[_0x4dd0c1(0x380)][_0x4dd0c1(0x232)](_0x4d9df9=>_0x4d9df9['dispose']());}[_0x30c27a(0x3bb)](_0x527c46){const _0x348817=_0x30c27a;return this['_entities'][_0x348817(0x29e)](_0x527c46)?this[_0x348817(0x380)][_0x348817(0x235)](_0x527c46)[_0x348817(0x3b3)]:this[_0x348817(0x28c)][_0x348817(0x180)](d['filter'](_0x43d8cc=>_0x43d8cc[_0x348817(0x2a5)]===_0x527c46),d[_0x348817(0x361)](_0x2cb001=>_0x2cb001[_0x348817(0x3b3)]));}[_0x30c27a(0x271)](){const _0x10d40f=_0x30c27a;this[_0x10d40f(0x3e3)][_0x10d40f(0x30f)](a[_0x10d40f(0x38f)][_0x10d40f(0x3d2)])[_0x10d40f(0x180)](d[_0x10d40f(0x23f)](this['dispose$']))['subscribe'](async _0x155d2c=>{const _0x1766e2=_0x10d40f,_0x402520=_0x155d2c['getUnitId'](),_0x19c1b7=await this[_0x1766e2(0x2cc)](_0x402520);this[_0x1766e2(0x28c)][_0x1766e2(0x2d2)](_0x19c1b7),this[_0x1766e2(0x380)][_0x1766e2(0x2f3)](_0x402520,_0x19c1b7);}),this[_0x10d40f(0x3e3)][_0x10d40f(0x30f)](a[_0x10d40f(0x38f)][_0x10d40f(0x394)])[_0x10d40f(0x180)](d[_0x10d40f(0x23f)](this[_0x10d40f(0x320)]))['pipe'](d[_0x10d40f(0x3f5)](_0x134cbc=>!_0x134cbc[_0x10d40f(0x16f)]()[_0x10d40f(0x1c0)]('__')))[_0x10d40f(0x258)](async _0x2ef52b=>{const _0x36d65d=_0x10d40f,_0x4dcf53=_0x2ef52b[_0x36d65d(0x16f)](),_0x56efde=await this[_0x36d65d(0x25d)](_0x4dcf53);this[_0x36d65d(0x28c)][_0x36d65d(0x2d2)](_0x56efde),this['_entities'][_0x36d65d(0x2f3)](_0x4dcf53,_0x56efde);}),d[_0x10d40f(0x2bb)](this['_univerInstanceService'][_0x10d40f(0x267)](a[_0x10d40f(0x38f)]['UNIVER_DOC']),this[_0x10d40f(0x3e3)][_0x10d40f(0x267)](a['UniverInstanceType']['UNIVER_SHEET']))[_0x10d40f(0x180)](d['takeUntil'](this[_0x10d40f(0x320)]))[_0x10d40f(0x258)](_0x46028b=>{const _0x11e812=_0x10d40f,_0x203419=_0x46028b[_0x11e812(0x16f)](),_0x2d911b=this[_0x11e812(0x380)][_0x11e812(0x235)](_0x203419);_0x2d911b&&(_0x2d911b[_0x11e812(0x196)](),this[_0x11e812(0x380)][_0x11e812(0x33a)](_0x203419));});}async['_startSheetCollabCursor'](_0x22ad37){const _0x15f19a=_0x30c27a,_0x4258b5=await this['_collabSessionService'][_0x15f19a(0x2b8)](_0x22ad37),_0x579746=this['_injector'][_0x15f19a(0x3ad)](Se,_0x22ad37,_0x4258b5);return _0x579746[_0x15f19a(0x1e7)](),_0x579746;}async['_startDocCollabCursor'](_0x47f5ef){const _0x15fa5e=_0x30c27a,_0x387169=await this[_0x15fa5e(0x1b1)][_0x15fa5e(0x2b8)](_0x47f5ef),_0x2760bc=this['_injector'][_0x15fa5e(0x3ad)](Ie,_0x47f5ef,_0x387169);return _0x2760bc[_0x15fa5e(0x1e7)](),_0x2760bc;}};x=ct([ie(0x0,a[_0x30c27a(0x3e0)]),ie(0x1,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),ie(0x2,a[_0x30c27a(0x34b)](u[_0x30c27a(0x1be)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _0x3f13(){const _0x4fb1e8=['MemberService','_entities','code','textRanges','_cachedData','none','unit','event$','assignAColorForMemberID','_drawTextRange','focused$','toStringTag','mapTo','defIds','_removeClearOtherTimer','IMessageService','UniverInstanceType','_onCursorDelete','_docTransformStateCacheService','with','beginPath','UNIVER_DOC','setActiveRange','evenodd','white','TOO_MANY_REQUESTS','transformMutation','_docSyncEditingCollabCursorService','svg','CollaborationEvent','complete','@univerjs/rpc','ICommandService','UniverIcon','SetWorksheetActivateCommand','setParam','updateOfflineData','_registerDependencies','toRgbString','_commandService','_toggleOnline','addObjects','FromArray','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','DocStateChangeManagerService','isTransformMutationsWithChangesetSuccess','createInstance','history','InsertColCommandId','_updateLocalCursor','_cursorShapes','deserializeRangeWithSheet','cursorInfo$','LICENSE_MAX_UNITS_EXCEEDED','translate(.97)','transformRemoteChangeset','unload','_docClipboardService','EffectRefRangId','propertyIsEnumerable','getCollabCursors$','endColumn','INVALID_ARGUMENT','fromEventSubject','getUnitStatus$','_backgroundColor','split','replace','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','defs','_removeCollabCursors','text','93516PBNLok','onLocalMutation','_initDependencies','INVITE_CODE_REQUIRED','INTERNAL_ERROR','Vector2','MUTATION','handleInsertCol','useDependency','_transformUndoRedoStack','_send','UNIVER_SHEET','clearInterval','sheetID','displayName','range','string','_ensureSubject','clearTimeout','AWAITING','then','collabStatus.syncing','_assignedColors','YUUMI_ASYNCIO_CANCELLED','27420IIFeLL','IUniverInstanceService','CHANGESET_REVISION_CONFILICT','addHandlerCallback','_univerInstanceService','YUUMI_UNABLE_LOAD_URL','_hovered','useObservable','mask','_handleHeartbeatEvent','setStateCache','DesktopCollaborationStatusDisplayController','_docTransformSelectionsService','registerDependencies','getRelativeToViewportCoord','cursorInfo','getConfig','OnLineIcon','getDocRanges','trim','_initEvent','m2Prime','filter','_cursorInfo$','executeCommand','_hover','getVpScrollXYInfoByPosToVp','IImageIoService','YUUMI_SUBSCRIPTION_NOT_FOUND','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','className','_transformService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','arc','6109290WGzDRC','DependentOn','_transformPreviousActiveRange','getUnitId','attrs','_createSocketURL','path','_getMergeRange','saveTaskMap','_color','_cursors','_localStorageService','_configService','_name','YUUMI_CONNECTOR_URL_NOT_FOUND','_transformHistoryAndStateStack','forwardRef','CollaborationStatusDisplay','getCurrentSelections','top','pipe','_docTransformIMECacheService','_hideTimer','uni.network.url-service','rxjs','NodePositionConvertToRectRange','_refRangeService','APPLY_PERMISSION_DENIED','registerRenderModule','substring','EMAIL_HAS_BEEN_BOUND','getSheetId','RichTextEditingMutation','[RemoteUniscriptService]:\x20no\x20focused\x20unit','COLORS','_textBubble','data','memberID','mergeOverrideWithDependencies','Warning','getUniverSheetInstance','editingUnit','dispose','_unitStatus','bottom','colorChannel1','save','455199sjbdpS','whenReady','toDisposable','_sheetSkeletonManagerService','_id','newValue','ticket','_handleHover','IURLService','sessionTicket','NOT_COLLAB','collabStatus.offline','ISocketService','APPLY_DUPLICATED','setTimeout','ENSURE_SNAPSHOT_EXECUTION','saveImage','undoState','@univerjs/design','jsx','ACTIVE_UNIT_EVENT_CHANNEL','IRemoteInstanceService','_collabSessionService','pushState','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','defineProperty','DataLoaderService','@univerjs-pro/collaboration-client','combineLatest','push','_collaborationController','_instanceService','LOCAL_CACHE_INTERVAL_KEY','_scene','4196YaCWaF','CollaborationSessionService','stringify','startsWith','source','disableLocalCache','isTransformMutationFailure','_session','DeleteRangeMoveUpCommandId','INVALID_INVITE_CODE','permission.title','DocCollaborationEntity','createIdentifier','getCurrent','RefRangeService','_updateURLWithCurrentState','purple.300','debounceTime','registerComponent','startColumn','MoveRangeCommandId','0\x200\x2017\x2016','getUnhiddenWorksheets','unsubscribe','_uiPartsService','eventID','createSocket','CollaborationUIEventId','ILocalStorageService','round','_getScale','LOGIN_FAILED','subUnitId','univer-mr-2\x20univer-flex\x20univer-text-xl','_memberService','_saveTaskMap','on-line-icon_clip0_910_349','handleIRemoveRow','UniverCollaborationClientUIPlugin','use','symbol','searchParams','init','sessionStatus$','CollaborationStatus','_initCommandExecutedListener','imageSourceType','fromEvent','collab-text-anchor-','Rect','rgba(255,\x20255,\x20255,\x200.01)','_refreshCollabCursors','session.will-retry','concat','isActive','_selfUnitIDs','executionId','1070056xOUxMw','url(#$1','@univerjs/engine-render','function','onPointerLeave$','from','loadUnit','_beforeCloseService','UPDATE_CURSOR','shareReplay','isEditing','invokeId','closePath','PERMISSION_DENIED','syncEditingCollabCursor','_revisionService','_handleLeaveEvent','_config','getActiveSheet','_anchorDot','idSuffix','disposeWithMe','origin','...','_themeService','add','MOBILE_VERIFY_CODE_MISMATCH','Unknown\x20user','doc.mutation.rich-text-editing','LocaleService','skeleton','roomMembers$','collab-text-range-','setAlpha','connectInjector','50SOTNVN','YUUMI_ALL_TABLES_IS_INVALID','moveTo','M0\x200H16V16H0z','urlChange$','_colorIndex','some','DocIMEInputManagerService','NodePositionConvertToCursor','params','14JpQNdO','http://www.w3.org/2000/svg','DeleteRangeMoveLeftCommandId','getStateCache','CONFLICT','collaboration-client-ui.config','INVITE_CODE_ALREADY_BOUND','@univerjs/ui','UNDEFINED','COMPLETION_FINISHED','wsSessionTicketUrl','IConfigService','OffLineIcon','apply','UNAUTHENTICATED','forEach','location','_imageIoService','get','_injector','_scheduleHeartbeat','roomMembers','WECHAT_HAS_BEEN_BOUND','SYNCED','saveOfflineData','MOBILE_HAS_BEEN_BOUND','2DBxwxU','_drawAnchor','takeUntil','ColorKit','_scheduleSaving','_roomMembers$','error','191276PADzWw','1em','setShapeProps','WebURLService','Injector','distinctUntilChanged','CONNECTOR_DATA_TOO_LARGE','_shapes','APPLY_NON_SEQUENTIAL_REVISION','_onCursorUpdate','getFocusedUnit','_docStateChangeManagerService','SetSelectionsOperation','SheetCollabCursorShape','_httpService','onPointerEnter$','ILocalCacheService','getUndoRedoMutationParamsCache','collaboration.closeRoom','name','subscribe','fillStyle','enableLocalCache','YUUMI_TABLE_NOT_FOUND_IN_UNIT','font','_startDocCollabCursor','_notificationService','Optional','unshift','currentColor','findNodePositionByCharIndex','onCommandExecuted','generateRandomId','debounce','CollaborationDataLoaderController','getTypeOfUnitDisposed$','YUUMI_RATE_OVER_LIMIT','mutations','color','_context','_getSessionTicket','IBeforeCloseService','CommandType','all','_localeService','_init','_initResize','off-line-icon_clip0_910_343','deepClone','onMouseMove','_getSaveTimeout','@univerjs/sheets-ui','IDocClipboardService','rxjs/operators','hovered','row','_setupSubUnitSync','Disposable','triggerDblclick','FETCH_MISS','removeParam','getOwnPropertySymbols','SNAPSHOT_INVALID_SNAPSHOT','INotificationService','_initEntityListener','NO_OTHER_CLIENTS_EDITING','@univerjs-pro/collaboration','getRenderById','height','DOC_RANGE_TYPE','JOIN_ROOM_FAILED','_doCreateSocket','_entityInit$','_range','IUIPartsService','restore','toString','RemoveColCommandId','subunit','addClipboardHook','replaceState','handleDeleteRangeMoveLeft','ALREADY_EXISTS','xlink:href','OTHER_CLIENTS_EDITING','BehaviorSubject','green.600','_anchor','fill','m1Prime','has','HEADER_MENU','_collabCursorState$','_logService','Plugin','status$','@univerjs/engine-formula','unitID','@univerjs/docs-ui','lineTo','@univerjs/drawing','size','call','_status$','column','UnitStatus','HTTPService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','random','@univerjs/network','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_syncEditingCollabCursorService','onStarting','fillText','transformStateCache','labelPosition','requireSession','_saveCache','_updateCollabCursors','merge','getCurrentRevOfUnit','selection','_dataLoaderService','getSkeleton','ISnapshotServerService','Rectangle','PY_RUNTIME_SCRIPT_ERROR','assign','_scheduleClearOtherTimer','_messageService','result','entries','Module','SetDocZoomRatioOperation','Tools','CollaborationUIEventService','_startSheetCollabCursor','find','reconnect','icon','extend','values','next','getColor','_render','isArray','currentSkeleton$','asObservable','YUUMI_AI_RUN_FAILED','InsertRangeMoveDownCommandId','getAncestorScale','InsertRangeMoveRightCommandId','blue.400','tag','MessageType','YUUMI_NO_CUBOID_FOR_QUESTION','_setupBeforeClosingHandler','Failed','runOnServer','[CollaborationDataLoaderController]','/run/','jsxs','Error','RegularPolygon','DocSelectionManagerService','resize','USERS_LEAVE','_heartbeatTimer','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','unitId','getSheetBySheetId','LICENSE_DISTRO_REJECTED','_getAnchorBounding','url(#on-line-icon_clip0_910_349)','sheetId','set','LICENSE_EXPORT_SIZE_EXCEEDED','prototype','includes','width','addObject','off-line-icon','RxDisposable','EMAIL_VERIFY_CODE_MISMATCH','min','univer-flex\x20univer-items-center','hide','length','_getSheetObject','NOT_FOUND','_colorAssignService','ranges','debug','div','disposeUnit','IRenderManagerService','body','application/json','getSheetObject','_eventUnsubscribe','_updateSubUnitFromURLParams','pluginName','endRow','getTypeOfUnitAdded$','startRow','handleInsertRangeMoveRight','collabCursorState$','_initStatusComponent','serializeRangeWithSheet','redoState','Subject','black','entityInit$','session.connection-failed','getParam','type','registerRefRange','hasOwnProperty','ONLINE','_disabled','dispose$','RECT','getValue','_online','_handleEvent','setUndoRedoMutationParamsCache','_unitOnClients','APPLY_REVISION_CONFILICT','SheetsSelectionsService','getOwnPropertyDescriptor','backgroundColor','setConfig','show','_labelPosition','APPLY_REJECT','UniverCollaborationClientPlugin','CollaborationSocketService','_onRefRangeChange','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','jiqing.500','getCellPositionByOffset','SessionStatus','SetTextSelectionsOperation','getCurrentUnitForType','on-line-icon','_localCacheService','delete','_urlService','createElement','_lastPointer','indexOf','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ITransformService','TEXT','_docSkeletonManagerService','USER_NOT_INVITED_CODE','TEXT_RANGE_LAYER_INDEX','UNRECOGNIZED','getMemberID','_collaborationUIEventService','handleDeleteRangeMoveUp','DocSkeletonManagerService','Inject','getLocalCacheKey','666iCyVsY','0\x200\x2016\x2016','makeDirty','getMergeData','drawWith','getColorFromTheme','getViewport','_registerRenderDependencies','ILogService','SHEET_VIEWPORT_KEY','handleInsertRangeMoveDown','_clearOtherTimers','INVITE_CODE_HAS_BEEN_UES','getRangePointData','onRendered','popstate','setItem','currentTheme$','CollaborationController','key','switchMap','search','_collabCursorController','subscribeEvent','transformMutationsWithChangeset','actions','react/jsx-runtime','map','touchDependencies','ThemeService','OFFLINE','YUUMI_URL_COL_OUT_OF_RANGE','AWAITING_WITH_PENDING','LOCAL_CACHE_INTERVAL','_cursor','getMember','_drawRectRange','_toggleOffline','href','measureText','_docSkeleton','runId','RemoteUniscriptService','BuiltInUIPart','@univerjs/sheets','children','_renderManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collab-rect-range-','send'];_0x3f13=function(){return _0x4fb1e8;};return _0x3f13();}function _t(_0x31b99e,_0x3c9bc0){const _0x590836=_0x30c27a;let {radius:_0x981ae,width:_0x5374dd,height:_0x10855b}=_0x3c9bc0;_0x981ae=_0x981ae!=null?_0x981ae:0x0,_0x5374dd=_0x5374dd!=null?_0x5374dd:0x1e,_0x10855b=_0x10855b!=null?_0x10855b:0x1e;let _0x5f0e9d=0x0,_0x2baf20=0x0,_0x59863a=0x0;_0x5f0e9d=_0x2baf20=_0x59863a=Math['min'](_0x981ae,_0x5374dd/0x2,_0x10855b/0x2),_0x31b99e[_0x590836(0x393)](),_0x31b99e[_0x590836(0x21b)](_0x5f0e9d,0x0),_0x31b99e[_0x590836(0x2a7)](_0x5374dd-_0x2baf20,0x0),_0x31b99e[_0x590836(0x400)](_0x5374dd-_0x2baf20,_0x2baf20,_0x2baf20,Math['PI']*0x3/0x2,0x0,!0x1),_0x31b99e[_0x590836(0x2a7)](_0x5374dd,_0x10855b-_0x59863a),_0x31b99e[_0x590836(0x400)](_0x5374dd-_0x59863a,_0x10855b-_0x59863a,_0x59863a,0x0,Math['PI']/0x2,!0x1),_0x31b99e[_0x590836(0x2a7)](0x0,_0x10855b),_0x31b99e[_0x590836(0x2a7)](0x0,_0x5f0e9d),_0x31b99e['arc'](_0x5f0e9d,_0x5f0e9d,_0x5f0e9d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x31b99e[_0x590836(0x202)](),_0x3c9bc0[_0x590836(0x29c)]&&(_0x31b99e['save'](),_0x31b99e[_0x590836(0x259)]=_0x3c9bc0['fill'],_0x3c9bc0['fillRule']===_0x590836(0x396)?_0x31b99e[_0x590836(0x29c)](_0x590836(0x396)):_0x31b99e[_0x590836(0x29c)](),_0x31b99e[_0x590836(0x28f)]());}class ee extends p['Shape']{constructor(_0x334201,_0x16cd12){const _0x2564cc=_0x30c27a;super(_0x334201,_0x16cd12),h(this,_0x2564cc(0x26a)),h(this,_0x2564cc(0x3c6)),(this['color']=_0x16cd12==null?void 0x0:_0x16cd12[_0x2564cc(0x26a)],this[_0x2564cc(0x3c6)]=_0x16cd12==null?void 0x0:_0x16cd12[_0x2564cc(0x3c6)]);}static['drawWith'](_0x5b73dd,_0x3b79ac){const _0x12ada3=_0x30c27a,{text:_0x33e0c5,color:_0xb77c04}=_0x3b79ac;_0x5b73dd[_0x12ada3(0x19a)](),_0x5b73dd[_0x12ada3(0x25c)]=_0x12ada3(0x3aa);const _0x3b1eb8=_0x5b73dd[_0x12ada3(0x374)](_0x33e0c5)['width'],_0x276188=Math[_0x12ada3(0x2fc)](_0x3b1eb8+0x2*ne,Re);_t(_0x5b73dd,{'height':K,'radius':0x4,'width':_0x276188,'fill':_0xb77c04}),_0x5b73dd['fillStyle']='#FFF';const _0xf246e3=ne,_0x2087b5=K-lt,_0xd18aee=Re-0x2*ne;if(_0x3b1eb8>_0xd18aee){let _0x185696='',_0x579091=0x0;for(const _0x127a2a of _0x33e0c5){const _0x4827ea=_0x5b73dd[_0x12ada3(0x374)](_0x127a2a)[_0x12ada3(0x2f7)];if(_0x579091+_0x4827ea<=_0xd18aee-_0x5b73dd[_0x12ada3(0x374)](_0x12ada3(0x20d))[_0x12ada3(0x2f7)])_0x185696+=_0x127a2a,_0x579091+=_0x4827ea;else{_0x185696+=_0x12ada3(0x20d);break;}}_0x5b73dd[_0x12ada3(0x2b5)](_0x185696,_0xf246e3,_0x2087b5);}else _0x5b73dd['fillText'](_0x33e0c5,_0xf246e3,_0x2087b5);_0x5b73dd['restore']();}['_draw'](_0x295400){ee['drawWith'](_0x295400,this);}}const re=_0x30c27a(0x1ed),ht=_0x30c27a(0x216),ut=_0x30c27a(0x37d),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x30c27a(0x1ef);class De{constructor(_0x3c028f,_0x21231f,_0x11172a,_0x13fbe0){const _0x306159=_0x30c27a;h(this,'_shapes',[]),h(this,_0x306159(0x29b),null),h(this,_0x306159(0x18f),null),h(this,_0x306159(0x209),null),h(this,_0x306159(0x182),null),h(this,_0x306159(0x30b),null),(this['_cursor']=_0x3c028f,this[_0x306159(0x1bc)]=_0x21231f,this[_0x306159(0x375)]=_0x11172a,this['_document']=_0x13fbe0,this[_0x306159(0x2d4)]());}set[_0x30c27a(0x3f8)](_0x499085){const _0x5774ce=_0x30c27a;_0x499085?(this['_anchorDot']&&this[_0x5774ce(0x209)][_0x5774ce(0x2fe)](),this[_0x5774ce(0x18f)]&&this[_0x5774ce(0x18f)][_0x5774ce(0x32c)]()):(this['_anchorDot']&&this[_0x5774ce(0x209)]['show'](),this[_0x5774ce(0x18f)]&&this[_0x5774ce(0x18f)][_0x5774ce(0x2fe)]());}[_0x30c27a(0x196)](){const _0x2ca18c=_0x30c27a;for(const _0x1f9cd2 of this[_0x2ca18c(0x24b)])_0x1f9cd2['dispose']();this['_textBubble']&&this[_0x2ca18c(0x18f)]['dispose'](),this[_0x2ca18c(0x209)]&&this[_0x2ca18c(0x209)][_0x2ca18c(0x196)](),this[_0x2ca18c(0x29b)]&&this['_anchor'][_0x2ca18c(0x196)](),this[_0x2ca18c(0x30b)]&&this['_eventUnsubscribe']();}['_render'](){const _0x228f5c=_0x30c27a;var _0x55b6b;const {_docSkeleton:_0x3fd6da,_document:_0x5a6678}=this,{color:_0x3351fd,name:_0x35bc33,ranges:_0x5bea79}=this[_0x228f5c(0x36f)],_0xe58d4f=_0x5a6678['getOffsetConfig'](),{docsLeft:_0x848521,docsTop:_0x591122}=_0xe58d4f,_0x4ca715=new E[(_0x228f5c(0x221))](_0xe58d4f,_0x3fd6da);for(const {startOffset:_0x59b4ef,endOffset:_0x1aebc2,rangeType:_0x21403d,segmentId:_0x981303,segmentPage:_0x17d52f,collapsed:_0x1b4cac,isActive:_0x149108}of _0x5bea79){const _0x492fe9=_0x3fd6da['findNodePositionByCharIndex'](_0x59b4ef,!0x0,_0x981303,_0x17d52f);let _0x2db12a=_0x3fd6da[_0x228f5c(0x262)](_0x1aebc2,!0x0,_0x981303,_0x17d52f);if(_0x2db12a==null&&(_0x2db12a=_0x3fd6da[_0x228f5c(0x262)](_0x1aebc2-0x1,!0x1,_0x981303,_0x17d52f)),_0x149108){const {contentBoxPointGroup:_0x38d207}=_0x4ca715[_0x228f5c(0x35a)](_0x2db12a,_0x2db12a);if(_0x38d207[_0x228f5c(0x2ff)]===0x0)continue;this[_0x228f5c(0x23e)](_0x3351fd,_0x38d207,_0x848521,_0x591122,_0x35bc33),this[_0x228f5c(0x30b)]=this[_0x228f5c(0x1a2)]();}if(_0x492fe9&&_0x2db12a){if(_0x21403d===a['DOC_RANGE_TYPE']['RECT']){const _0x8f856d=new E[(_0x228f5c(0x185))](_0xe58d4f,_0x3fd6da),{pointGroup:_0x4995b9}=(_0x55b6b=_0x8f856d[_0x228f5c(0x35a)](_0x492fe9,_0x2db12a))!=null?_0x55b6b:{};if(_0x4995b9==null||_0x4995b9[_0x228f5c(0x2ff)]===0x0)continue;this[_0x228f5c(0x371)](_0x3351fd,_0x4995b9,_0x848521,_0x591122);}else{if(!_0x1b4cac){const {borderBoxPointGroup:_0x5366c9}=_0x4ca715[_0x228f5c(0x35a)](_0x492fe9,_0x2db12a);if(_0x5366c9['length']===0x0)continue;this['_drawTextRange'](_0x3351fd,_0x5366c9,_0x848521,_0x591122);}}}}}[_0x30c27a(0x23e)](_0x5c198a,_0x29d63c,_0x2646ec,_0x65d03e,_0x173830){const _0x42e82d=_0x30c27a,_0x2689c3=this[_0x42e82d(0x2f0)](_0x29d63c),{left:_0x2acb33,top:_0x8f8ed0,height:_0x263a7d}=_0x2689c3,_0x29738b=this['_getScale'](),_0x5ef50a=It/_0x29738b,_0x14e437=new p[(_0x42e82d(0x1ee))](re+a[_0x42e82d(0x2ca)][_0x42e82d(0x264)](k),{'left':_0x2acb33+_0x2646ec-_0x5ef50a,'top':_0x8f8ed0+_0x65d03e,'height':_0x263a7d,'width':dt,'fill':_0x5c198a||p[_0x42e82d(0x2d3)](a[_0x42e82d(0x18e)][_0x42e82d(0x317)],0x0),'strokeWidth':_0x5ef50a,'stroke':St,'evented':!0x0});this[_0x42e82d(0x29b)]=_0x14e437,this[_0x42e82d(0x1bc)][_0x42e82d(0x2f8)](_0x14e437,E[_0x42e82d(0x345)]);const _0x3135fc=new p['Rect'](re+a[_0x42e82d(0x2ca)]['generateRandomId'](k),{'left':_0x2acb33+_0x2646ec-_0x5ef50a,'top':_0x8f8ed0+_0x65d03e-oe/0x2,'height':oe,'width':oe,'fill':_0x5c198a||p[_0x42e82d(0x2d3)](a[_0x42e82d(0x18e)][_0x42e82d(0x317)],0x0),'strokeWidth':0x0,'stroke':_0x5c198a||p[_0x42e82d(0x2d3)](a[_0x42e82d(0x18e)][_0x42e82d(0x317)],0x0),'evented':!0x1});this[_0x42e82d(0x209)]=_0x3135fc,this[_0x42e82d(0x1bc)][_0x42e82d(0x2f8)](_0x3135fc,E[_0x42e82d(0x345)]);const _0x3dcb5a=new ee(re+a['Tools']['generateRandomId'](k),{'left':_0x2acb33+_0x2646ec-_0x5ef50a,'top':_0x8f8ed0+_0x65d03e-K,'text':_0x173830,'color':_0x5c198a});this[_0x42e82d(0x18f)]=_0x3dcb5a,this['_scene'][_0x42e82d(0x2f8)](_0x3dcb5a,E[_0x42e82d(0x345)]),this[_0x42e82d(0x3f8)]=!0x1;}['_handleHover'](){const _0x26cf91=_0x30c27a,_0xbc340e=this['_anchor'][_0x26cf91(0x253)][_0x26cf91(0x364)](()=>{this['_hover']=!0x0;}),_0x4646d1=this[_0x26cf91(0x29b)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x5c7fb0=_0x26cf91;this[_0x5c7fb0(0x182)]&&clearTimeout(this['_hideTimer']),this[_0x5c7fb0(0x182)]=setTimeout(()=>{const _0x364bc5=_0x5c7fb0;this[_0x364bc5(0x3f8)]=!0x1;},0x7d0);});return()=>{const _0x509139=_0x26cf91;_0xbc340e[_0x509139(0x1d4)](),_0x4646d1[_0x509139(0x1d4)]();};}[_0x30c27a(0x388)](_0x4a0524,_0x6be708,_0x3013e0,_0x5651ee){const _0x54e8d5=_0x30c27a,_0x287ddb=new a[(_0x54e8d5(0x240))](_0x4a0524)[_0x54e8d5(0x217)](0.2)[_0x54e8d5(0x3a5)](),_0x39410d=new p[(_0x54e8d5(0x2e7))](ht+a[_0x54e8d5(0x2ca)]['generateRandomId'](k),{'pointsGroup':_0x6be708,'fill':_0x287ddb||p[_0x54e8d5(0x2d3)](a[_0x54e8d5(0x18e)][_0x54e8d5(0x317)],0.2),'left':_0x3013e0,'top':_0x5651ee,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x54e8d5(0x1b8)](_0x39410d),this[_0x54e8d5(0x1bc)]['addObject'](_0x39410d,E[_0x54e8d5(0x345)]);}[_0x30c27a(0x371)](_0x3725f3,_0x9fb14f,_0x34d6c5,_0x4fcec2){const _0x51e55b=_0x30c27a,_0x5e4725=new a[(_0x51e55b(0x240))](_0x3725f3)[_0x51e55b(0x217)](0.2)[_0x51e55b(0x3a5)](),_0x4a689a=new p[(_0x51e55b(0x2e7))](ut+a['Tools'][_0x51e55b(0x264)](k),{'pointsGroup':_0x9fb14f,'fill':_0x5e4725||p[_0x51e55b(0x2d3)](a['COLORS']['black'],0.2),'left':_0x34d6c5,'top':_0x4fcec2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x51e55b(0x1b8)](_0x4a689a),this[_0x51e55b(0x1bc)]['addObject'](_0x4a689a,E['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x43dda6){const _0x1136bb=_0x43dda6[0x0],_0x5ade84=_0x1136bb[0x0],_0x270f2a=_0x1136bb[0x2],{x:_0x67ae77,y:_0x35a9df}=_0x5ade84,{x:_0x11b61a,y:_0x2af72f}=_0x270f2a;return{'left':_0x67ae77,'top':_0x35a9df,'width':_0x11b61a-_0x67ae77,'height':_0x2af72f-_0x35a9df};}[_0x30c27a(0x1db)](){const _0x551eb6=_0x30c27a,{scaleX:_0x52dc73,scaleY:_0x470027}=this[_0x551eb6(0x1bc)][_0x551eb6(0x2da)]();return Math['max'](_0x52dc73,_0x470027);}}var ft=Object[_0x30c27a(0x329)],vt=(_0x27e837,_0xaddbf0,_0xd52471,_0x3c3a67)=>{const _0x4e7433=_0x30c27a;for(var _0x4f794d=_0x3c3a67>0x1?void 0x0:_0x3c3a67?ft(_0xaddbf0,_0xd52471):_0xaddbf0,_0x1d2d4a=_0x27e837[_0x4e7433(0x2ff)]-0x1,_0x243a6a;_0x1d2d4a>=0x0;_0x1d2d4a--)(_0x243a6a=_0x27e837[_0x1d2d4a])&&(_0x4f794d=_0x243a6a(_0x4f794d)||_0x4f794d);return _0x4f794d;},W=(_0x11fb01,_0x155af4)=>(_0xa5648f,_0x232726)=>_0x155af4(_0xa5648f,_0x232726,_0x11fb01);let fe=class extends a[_0x30c27a(0x2fa)]{constructor(_0x19730f,_0x271d10,_0x55b7d5,_0x4de3eb,_0x226cdd){const _0x46a832=_0x30c27a;super(),h(this,_0x46a832(0x3b1),[]),h(this,_0x46a832(0x176),[]),(this[_0x46a832(0x26b)]=_0x19730f,this[_0x46a832(0x343)]=_0x271d10,this['_collabCursorController']=_0x55b7d5,this[_0x46a832(0x3a6)]=_0x4de3eb,this[_0x46a832(0x20e)]=_0x226cdd,this['_init']());}['_init'](){const _0x2c7ac2=_0x30c27a,_0x301402=this[_0x2c7ac2(0x26b)]['unitId'],_0x2c78fa=this['_docSkeletonManagerService'];this[_0x2c7ac2(0x20b)](d[_0x2c7ac2(0x1b7)]([this[_0x2c7ac2(0x363)][_0x2c7ac2(0x3bb)](_0x301402),this[_0x2c7ac2(0x20e)][_0x2c7ac2(0x35e)]])[_0x2c7ac2(0x180)]($[_0x2c7ac2(0x368)](([_0x1589a8,_0x111024])=>({'skeleton':_0x2c78fa['getSkeleton'](),'cursors':[..._0x1589a8[_0x2c7ac2(0x2d1)]()]['flatMap'](_0x35c806=>({..._0x35c806,'color':this[_0x2c7ac2(0x20e)][_0x2c7ac2(0x352)](_0x35c806['color'])}))})))[_0x2c7ac2(0x258)](_0x285613=>{const _0x35d048=_0x2c7ac2;if(this[_0x35d048(0x3c5)](),_0x285613){const {skeleton:_0x4a2f7c,cursors:_0x1e78e6}=_0x285613;this[_0x35d048(0x2ba)](_0x4a2f7c,_0x1e78e6);}})),this[_0x2c7ac2(0x272)](),this[_0x2c7ac2(0x1ea)]();}[_0x30c27a(0x2ba)](_0x5d0a70,_0x3237c7){const _0x193178=_0x30c27a,{scene:_0x2b9c3f,mainComponent:_0x3df2ed}=this[_0x193178(0x26b)],_0x112bc5=_0x3237c7[_0x193178(0x368)](_0xdf95ac=>new De(_0xdf95ac,_0x2b9c3f,_0x5d0a70,_0x3df2ed));this['_cursorShapes']=_0x112bc5,this['_cursors']=_0x3237c7;}[_0x30c27a(0x1f0)](){const _0x5ce21f=_0x30c27a;this[_0x5ce21f(0x3c5)]();const {scene:_0xb4dfe5,mainComponent:_0x4f8c68}=this['_context'],_0x2faa30=this[_0x5ce21f(0x343)][_0x5ce21f(0x2bf)](),_0x54ccae=this[_0x5ce21f(0x176)][_0x5ce21f(0x368)](_0x6d53e7=>new De(_0x6d53e7,_0xb4dfe5,_0x2faa30,_0x4f8c68));this[_0x5ce21f(0x3b1)]=_0x54ccae;}['_removeCollabCursors'](){const _0x3f6179=_0x30c27a;this[_0x3f6179(0x3b1)]['forEach'](_0x46f99d=>_0x46f99d[_0x3f6179(0x196)]()),this[_0x3f6179(0x3b1)]=[];}['_initCommandExecutedListener'](){const _0x1c42f5=_0x30c27a,_0x5b460b=[E[_0x1c42f5(0x2c9)]['id']];this[_0x1c42f5(0x20b)](this[_0x1c42f5(0x3a6)][_0x1c42f5(0x263)](_0x43490b=>{const _0x49c1a3=_0x1c42f5;_0x5b460b[_0x49c1a3(0x2f6)](_0x43490b['id'])&&_0x43490b[_0x49c1a3(0x222)][_0x49c1a3(0x2ed)]===this['_context'][_0x49c1a3(0x2ed)]&&this['_refreshCollabCursors']();}));}[_0x30c27a(0x272)](){const _0x1c553b=_0x30c27a;this[_0x1c553b(0x20b)](a[_0x1c553b(0x3be)](this[_0x1c553b(0x26b)]['engine']['onTransformChange$'])[_0x1c553b(0x180)]($[_0x1c553b(0x3f5)](_0x458026=>_0x458026[_0x1c553b(0x31b)]===p[_0x1c553b(0x3ff)][_0x1c553b(0x2e9)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x30c27a(0x34a)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x30c27a(0x39f)]),W(0x4,a[_0x30c27a(0x34b)](a[_0x30c27a(0x36a)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x25efda,_0x4ace93){const _0x45f375=_0x30c27a;super(_0x25efda,_0x4ace93),h(this,_0x45f375(0x175)),h(this,_0x45f375(0x3e5),!0x1),h(this,_0x45f375(0x28d)),h(this,'_name',''),h(this,'_labelPosition',_0x45f375(0x17f)),h(this,_0x45f375(0x3c0)),(_0x4ace93&&this[_0x45f375(0x246)](_0x4ace93),this[_0x45f375(0x253)][_0x45f375(0x364)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x45f375(0x1fa)]['subscribeEvent'](()=>this[_0x45f375(0x246)]({'hovered':!0x1})));}['setShapeProps'](_0x5dcba4){const _0x5e9f4c=_0x30c27a;var _0x3af954,_0x4e4952,_0x1b3de3,_0x14663c,_0x1fcce3,_0x38f8e9;this[_0x5e9f4c(0x175)]=(_0x3af954=_0x5dcba4[_0x5e9f4c(0x26a)])!=null?_0x3af954:this[_0x5e9f4c(0x175)],this['_hovered']=(_0x4e4952=_0x5dcba4[_0x5e9f4c(0x27a)])!=null?_0x4e4952:this[_0x5e9f4c(0x3e5)],this[_0x5e9f4c(0x28d)]=(_0x1b3de3=_0x5dcba4[_0x5e9f4c(0x3d6)])!=null?_0x1b3de3:this['_range'],this[_0x5e9f4c(0x179)]=(_0x14663c=_0x5dcba4[_0x5e9f4c(0x257)])!=null?_0x14663c:this[_0x5e9f4c(0x179)],this[_0x5e9f4c(0x32d)]=(_0x1fcce3=_0x5dcba4[_0x5e9f4c(0x2b7)])!=null?_0x1fcce3:this[_0x5e9f4c(0x32d)],this[_0x5e9f4c(0x3c0)]=(_0x38f8e9=_0x5dcba4[_0x5e9f4c(0x32a)])!=null?_0x38f8e9:this[_0x5e9f4c(0x3c0)],this['transformByState']({'width':_0x5dcba4['width'],'height':_0x5dcba4[_0x5e9f4c(0x288)]});}['onMouseMove'](_0x35f619){const _0xe19ac6=_0x30c27a,{row:_0x49cbfb,column:_0x165c0c}=_0x35f619;if(_0x49cbfb>=this[_0xe19ac6(0x28d)][_0xe19ac6(0x310)]&&_0x49cbfb<=this[_0xe19ac6(0x28d)][_0xe19ac6(0x30e)]&&_0x165c0c>=this[_0xe19ac6(0x28d)][_0xe19ac6(0x1d0)]&&_0x165c0c<=this[_0xe19ac6(0x28d)][_0xe19ac6(0x3bc)]){this[_0xe19ac6(0x246)]({'hovered':!0x0});return;}this[_0xe19ac6(0x246)]({'hovered':!0x1});}[_0x30c27a(0x27e)](_0x5c7c72){return!0x1;}['_draw'](_0x2abc28){const _0x2adc52=_0x30c27a;p[_0x2adc52(0x1ee)][_0x2adc52(0x351)](_0x2abc28,{'width':this[_0x2adc52(0x2f7)],'height':this[_0x2adc52(0x288)],'strokeWidth':mt,'stroke':this[_0x2adc52(0x175)],'evented':!0x1,'fill':this[_0x2adc52(0x3c0)]}),this[_0x2adc52(0x3e5)]&&(_0x2abc28[_0x2adc52(0x19a)](),_0x2abc28['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x2adc52(0x32d)]===_0x2adc52(0x198)?0x0:-0x14),ee[_0x2adc52(0x351)](_0x2abc28,{'text':this[_0x2adc52(0x179)],'color':this['_color']}),_0x2abc28[_0x2adc52(0x28f)]());}}var Ct=Object[_0x30c27a(0x329)],pt=(_0x31974e,_0x4a5ab9,_0x47b386,_0x1939cc)=>{for(var _0x508ad7=_0x1939cc>0x1?void 0x0:_0x1939cc?Ct(_0x4a5ab9,_0x47b386):_0x4a5ab9,_0x331c23=_0x31974e['length']-0x1,_0x287e4b;_0x331c23>=0x0;_0x331c23--)(_0x287e4b=_0x31974e[_0x331c23])&&(_0x508ad7=_0x287e4b(_0x508ad7)||_0x508ad7);return _0x508ad7;},ae=(_0xafb282,_0x4e0598)=>(_0x2743ec,_0x2d6c4a)=>_0x4e0598(_0x2743ec,_0x2d6c4a,_0xafb282);const Et=0x1389;let ve=class extends a[_0x30c27a(0x2fa)]{constructor(_0x428b5e,_0x43e341,_0x25f411,_0x1ba92b){const _0x4098b=_0x30c27a;super(),h(this,_0x4098b(0x176),new Set()),h(this,_0x4098b(0x33d),null),(this[_0x4098b(0x26b)]=_0x428b5e,this['_sheetSkeletonManagerService']=_0x43e341,this[_0x4098b(0x363)]=_0x25f411,this[_0x4098b(0x20e)]=_0x1ba92b,this['_init']());}[_0x30c27a(0x271)](){const _0x456505=_0x30c27a;this[_0x456505(0x19e)][_0x456505(0x2d6)][_0x456505(0x180)]($[_0x456505(0x23f)](this['dispose$']),$[_0x456505(0x361)](_0x40a45f=>{const _0x5dd519=_0x456505;if(_0x40a45f){const _0x3e6671=_0x40a45f[_0x5dd519(0x2f2)];return d[_0x5dd519(0x1b7)](this['_collabCursorController'][_0x5dd519(0x3bb)](this[_0x5dd519(0x26b)][_0x5dd519(0x2ed)]),this[_0x5dd519(0x20e)]['currentTheme$'])[_0x5dd519(0x180)]($['map'](([_0x6789e2,_0x563d2f])=>{const _0x390bbe=_0x5dd519,_0x4b65fb=new Map();return _0x6789e2[_0x390bbe(0x232)]((_0x596073,_0x4cd742)=>{const _0x266c18=_0x390bbe;if(_0x596073[_0x266c18(0x3d4)]===_0x3e6671){const _0x108866={..._0x596073};_0x108866[_0x266c18(0x26a)]=this[_0x266c18(0x20e)]['getColorFromTheme'](_0x596073[_0x266c18(0x26a)]),_0x4b65fb[_0x266c18(0x2f3)](_0x4cd742,_0x108866);}}),{'skeleton':_0x40a45f,'cursors':_0x4b65fb};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x456505(0x258)](({skeleton:_0x38f80f,cursors:_0xef25ba})=>{const _0x3f31e5=_0x456505;this[_0x3f31e5(0x3c5)](),_0x38f80f&&this[_0x3f31e5(0x2ba)](_0x38f80f,_0xef25ba);}),this[_0x456505(0x19e)][_0x456505(0x2d6)]['subscribe'](_0x180398=>{const _0xc5381=_0x456505;if(_0x180398==null)return;const {skeleton:_0x145f73}=_0x180398,{scene:_0x3ad98f}=this['_context'];_0x3ad98f['onPointerMove$'][_0xc5381(0x364)](a[_0xc5381(0x265)](_0x576080=>{const _0x335417=_0xc5381;var _0xcc9d7c,_0x4ea698;const {offsetX:_0x386cb9,offsetY:_0x115ca0}=_0x576080,{x:_0x8fcb13,y:_0x2031b1}=_0x3ad98f[_0x335417(0x3ed)](p[_0x335417(0x3cc)][_0x335417(0x3a9)]([_0x386cb9,_0x115ca0])),{scaleX:_0x3f7bea,scaleY:_0x100558}=_0x3ad98f[_0x335417(0x2da)](),_0x2c7584=_0x3ad98f[_0x335417(0x353)](p[_0x335417(0x356)]['VIEW_MAIN']),_0x46bebf=_0x3ad98f[_0x335417(0x3f9)](p[_0x335417(0x3cc)]['FromArray']([_0x8fcb13,_0x2031b1]),_0x2c7584),_0xf5f14f=_0x145f73[_0x335417(0x334)](_0x386cb9,_0x115ca0,_0x3f7bea,_0x100558,_0x46bebf);((_0xcc9d7c=this[_0x335417(0x33d)])==null?void 0x0:_0xcc9d7c[_0x335417(0x2ac)])===_0xf5f14f[_0x335417(0x2ac)]&&((_0x4ea698=this[_0x335417(0x33d)])==null?void 0x0:_0x4ea698[_0x335417(0x27b)])===_0xf5f14f['row']||this[_0x335417(0x176)][_0x335417(0x232)](_0x158827=>{const _0x1d83cc=_0x335417;_0x158827[_0x1d83cc(0x275)](_0xf5f14f);});},0x64));});}['_updateCollabCursors'](_0x10ed26,_0x2fafd3){const _0x51d7de=_0x30c27a;var _0x3d7dbc;const _0xafa54=(_0x3d7dbc=this[_0x51d7de(0x19e)][_0x51d7de(0x1ca)]())==null?void 0x0:_0x3d7dbc[_0x51d7de(0x214)];if(!_0xafa54)return;const _0x45f2d1=this['_getSheetObject']();if(!_0x45f2d1)return;this[_0x51d7de(0x176)][_0x51d7de(0x232)](_0x111cd3=>{const _0x455aa2=_0x51d7de;_0x111cd3[_0x455aa2(0x34f)]();});const {scene:_0x21256a}=_0x45f2d1,_0x364ffe=bt(Array['from'](_0x2fafd3[_0x51d7de(0x2d1)]()))[_0x51d7de(0x368)](_0x22177b=>{const _0xab797=_0x51d7de,{color:_0x3881c0,range:_0x4d67e6,name:_0x52a012,selection:_0x916774,sheetID:_0x3f0c93}=_0x22177b,{startColumn:_0x5f4ecf,startRow:_0x5a4704,endColumn:_0x56fd38,endRow:_0x159216}=_0x4d67e6,_0x506bdf=X['getCoordByCell'](_0x5a4704,_0x5f4ecf,_0x21256a,_0xafa54),_0x3e8884=X['getCoordByCell'](_0x159216,_0x56fd38,_0x21256a,_0xafa54),{columnHeaderHeightAndMarginTop:_0x3bf61b}=_0xafa54,{startX:_0x212144,startY:_0x4b25d4}=_0x506bdf,{endX:_0x5bfa6a,endY:_0x1fb670}=_0x3e8884,_0x515a6c=_0x5bfa6a-_0x212144,_0x301ade=_0x1fb670-_0x4b25d4,_0x3f611e={'labelPosition':_0x4b25d4-_0x3bf61b>=K?_0xab797(0x17f):_0xab797(0x198),'sheetID':_0x3f0c93,'range':_0x4d67e6,'color':_0x3881c0,'name':_0x52a012,'selection':_0x916774,'left':_0x212144,'top':_0x4b25d4,'width':_0x515a6c,'height':_0x301ade,'evented':!0x1,'zIndex':Et};return new we(_0x52a012,_0x3f611e);});_0x21256a[_0x51d7de(0x3a8)](_0x364ffe,gt),this[_0x51d7de(0x176)]=new Set(_0x364ffe);}['_removeCollabCursors'](){const _0x3ddc45=_0x30c27a;var _0x160a35;(_0x160a35=this['_cursors'])==null||_0x160a35[_0x3ddc45(0x232)](_0x36f89f=>_0x36f89f['dispose']());}[_0x30c27a(0x300)](){const _0x1b0a07=_0x30c27a;return X[_0x1b0a07(0x30a)](this[_0x1b0a07(0x26b)][_0x1b0a07(0x385)],this[_0x1b0a07(0x26b)]);}};ve=pt([ae(0x1,a[_0x30c27a(0x34b)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x30c27a(0x34b)](a['ThemeService']))],ve);function bt(_0x55c63d){const _0x2f6808=_0x30c27a,_0x1cc4f4=new Map();return _0x55c63d[_0x2f6808(0x232)](_0x5ad960=>{const _0x571aa9=_0x2f6808;if(_0x1cc4f4[_0x571aa9(0x29e)](_0x5ad960[_0x571aa9(0x2bd)])){const _0xaece80=_0x1cc4f4[_0x571aa9(0x235)](_0x5ad960['selection']);_0xaece80['name']+=',\x20'+_0x5ad960[_0x571aa9(0x257)];}else _0x1cc4f4[_0x571aa9(0x2f3)](_0x5ad960['selection'],_0x5ad960);}),Array[_0x2f6808(0x1fb)](_0x1cc4f4['values']());}var b=function(){const _0xf1658b=_0x30c27a;return b=Object[_0xf1658b(0x2c3)]||function(_0xaf9258){const _0x509f1c=_0xf1658b;for(var _0x3a4a53,_0x370c7b=0x1,_0x1dfb1e=arguments[_0x509f1c(0x2ff)];_0x370c7b<_0x1dfb1e;_0x370c7b++){_0x3a4a53=arguments[_0x370c7b];for(var _0xb7691e in _0x3a4a53)Object[_0x509f1c(0x2f5)]['hasOwnProperty']['call'](_0x3a4a53,_0xb7691e)&&(_0xaf9258[_0xb7691e]=_0x3a4a53[_0xb7691e]);}return _0xaf9258;},b[_0xf1658b(0x230)](this,arguments);},Ot=function(_0x2604cc,_0x96ef37){const _0x10e354=_0x30c27a;var _0x35ec96={};for(var _0x189049 in _0x2604cc)Object[_0x10e354(0x2f5)][_0x10e354(0x31d)][_0x10e354(0x2aa)](_0x2604cc,_0x189049)&&_0x96ef37[_0x10e354(0x33e)](_0x189049)<0x0&&(_0x35ec96[_0x189049]=_0x2604cc[_0x189049]);if(_0x2604cc!=null&&typeof Object[_0x10e354(0x281)]==_0x10e354(0x1f9)){for(var _0x1c22c0=0x0,_0x189049=Object[_0x10e354(0x281)](_0x2604cc);_0x1c22c0<_0x189049[_0x10e354(0x2ff)];_0x1c22c0++)_0x96ef37[_0x10e354(0x33e)](_0x189049[_0x1c22c0])<0x0&&Object[_0x10e354(0x2f5)][_0x10e354(0x3ba)]['call'](_0x2604cc,_0x189049[_0x1c22c0])&&(_0x35ec96[_0x189049[_0x1c22c0]]=_0x2604cc[_0x189049[_0x1c22c0]]);}return _0x35ec96;},pe=M[_0x30c27a(0x17c)](function(_0x26a188,_0x3e221e){const _0x493e57=_0x30c27a;var _0x4f0f1a=_0x26a188['icon'],_0x2ae170=_0x26a188['id'],_0x2c62cb=_0x26a188[_0x493e57(0x3fd)],_0xda1145=_0x26a188[_0x493e57(0x2d0)],_0x517b5f=Ot(_0x26a188,[_0x493e57(0x2cf),'id','className',_0x493e57(0x2d0)]),_0x1d688c='univerjs-icon\x20univerjs-icon-'[_0x493e57(0x1f2)](_0x2ae170,'\x20')['concat'](_0x2c62cb||'')[_0x493e57(0x3f2)](),_0xdef6ce=M['useRef']('_'[_0x493e57(0x1f2)](Dt()));return Ae(_0x4f0f1a,''[_0x493e57(0x1f2)](_0x2ae170),{'defIds':_0x4f0f1a[_0x493e57(0x38c)],'idSuffix':_0xdef6ce['current']},b({'ref':_0x3e221e,'className':_0x1d688c},_0x517b5f),_0xda1145);});function Ae(_0x3d997b,_0x2ca1d3,_0x5b5ef8,_0x14cd6f,_0x45a063){const _0x304657=_0x30c27a;return M[_0x304657(0x33c)](_0x3d997b[_0x304657(0x2dd)],b(b({'key':_0x2ca1d3},Tt(_0x3d997b,_0x5b5ef8,_0x45a063)),_0x14cd6f),(Rt(_0x3d997b,_0x5b5ef8)[_0x304657(0x37a)]||[])[_0x304657(0x368)](function(_0x5e9f0d,_0x244b4e){const _0x36a986=_0x304657;return Ae(_0x5e9f0d,''[_0x36a986(0x1f2)](_0x2ca1d3,'-')['concat'](_0x3d997b[_0x36a986(0x2dd)],'-')['concat'](_0x244b4e),_0x5b5ef8,void 0x0,_0x45a063);}));}function Tt(_0x2cab5f,_0x1d478f,_0x53d659){const _0x2d9ee3=_0x30c27a;var _0x106daf=b({},_0x2cab5f[_0x2d9ee3(0x170)]);_0x53d659!=null&&_0x53d659[_0x2d9ee3(0x199)]&&_0x106daf[_0x2d9ee3(0x29c)]===_0x2d9ee3(0x199)&&(_0x106daf[_0x2d9ee3(0x29c)]=_0x53d659[_0x2d9ee3(0x199)]),_0x2cab5f[_0x2d9ee3(0x2dd)]===_0x2d9ee3(0x3e7)&&_0x106daf['id']&&(_0x106daf['id']=_0x106daf['id']+_0x1d478f['idSuffix']),Object[_0x2d9ee3(0x2c7)](_0x106daf)[_0x2d9ee3(0x232)](function(_0x57b3df){const _0x48a075=_0x2d9ee3;var _0x5170d6=_0x57b3df[0x0],_0x21fd75=_0x57b3df[0x1];_0x5170d6===_0x48a075(0x3e7)&&typeof _0x21fd75==_0x48a075(0x3d7)&&(_0x106daf[_0x5170d6]=_0x21fd75[_0x48a075(0x3c2)](/url\(#(.*)\)/,'url(#$1'[_0x48a075(0x1f2)](_0x1d478f[_0x48a075(0x20a)],')')));});var _0x567cb8=_0x1d478f['defIds'];return!_0x567cb8||_0x567cb8['length']===0x0||(_0x2cab5f['tag']===_0x2d9ee3(0x1e4)&&_0x106daf['xlink:href']&&(_0x106daf[_0x2d9ee3(0x297)]=_0x106daf['xlink:href']+_0x1d478f[_0x2d9ee3(0x20a)]),Object[_0x2d9ee3(0x2c7)](_0x106daf)[_0x2d9ee3(0x232)](function(_0x4b5e19){const _0x5530fd=_0x2d9ee3;var _0x43a4d4=_0x4b5e19[0x0],_0x256f24=_0x4b5e19[0x1];typeof _0x256f24==_0x5530fd(0x3d7)&&(_0x106daf[_0x43a4d4]=_0x256f24[_0x5530fd(0x3c2)](/url\(#(.*)\)/,_0x5530fd(0x1f7)[_0x5530fd(0x1f2)](_0x1d478f['idSuffix'],')')));})),_0x106daf;}function Rt(_0x31c126,_0x4cbd06){const _0xbb893d=_0x30c27a;var _0x33c19c,_0x142038=_0x4cbd06[_0xbb893d(0x38c)];return!_0x142038||_0x142038[_0xbb893d(0x2ff)]===0x0?_0x31c126:_0x31c126[_0xbb893d(0x2dd)]===_0xbb893d(0x3c4)&&(!((_0x33c19c=_0x31c126['children'])===null||_0x33c19c===void 0x0)&&_0x33c19c[_0xbb893d(0x2ff)])?b(b({},_0x31c126),{'children':_0x31c126['children']['map'](function(_0x59d184){const _0x3819e2=_0xbb893d;return typeof _0x59d184[_0x3819e2(0x170)]['id']=='string'&&_0x142038&&_0x142038[_0x3819e2(0x2f6)](_0x59d184['attrs']['id'])?b(b({},_0x59d184),{'attrs':b(b({},_0x59d184[_0x3819e2(0x170)]),{'id':_0x59d184[_0x3819e2(0x170)]['id']+_0x4cbd06[_0x3819e2(0x20a)]})}):_0x59d184;})}):_0x31c126;}function Dt(){const _0x7efda=_0x30c27a;return Math[_0x7efda(0x2b0)]()['toString'](0x24)[_0x7efda(0x189)](0x2,0x8);}pe[_0x30c27a(0x3d5)]=_0x30c27a(0x3a0);var Ut={'tag':_0x30c27a(0x39b),'attrs':{'xmlns':_0x30c27a(0x224),'fill':_0x30c27a(0x384),'viewBox':_0x30c27a(0x34e),'width':_0x30c27a(0x245),'height':_0x30c27a(0x245)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x30c27a(0x172),'attrs':{'stroke':_0x30c27a(0x261),'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':_0x30c27a(0x1da),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x30c27a(0x273)},'children':[{'tag':_0x30c27a(0x172),'attrs':{'fill':'white','d':_0x30c27a(0x21c)}}]}]}],'defIds':[_0x30c27a(0x273)]},ye=M[_0x30c27a(0x17c)](function(_0x1235b3,_0x366066){const _0x2368ab=_0x30c27a;return M['createElement'](pe,Object['assign']({},_0x1235b3,{'id':_0x2368ab(0x2f9),'ref':_0x366066,'icon':Ut}));});ye['displayName']=_0x30c27a(0x22f);var Nt={'tag':_0x30c27a(0x39b),'attrs':{'xmlns':_0x30c27a(0x224),'fill':'none','viewBox':_0x30c27a(0x1d2),'width':'1em','height':_0x30c27a(0x245)},'children':[{'tag':'g','attrs':{'clipPath':_0x30c27a(0x2f1)},'children':[{'tag':'path','attrs':{'stroke':_0x30c27a(0x261),'d':_0x30c27a(0x2ec),'strokeLinecap':_0x30c27a(0x1da),'strokeLinejoin':_0x30c27a(0x1da),'strokeWidth':1.2}}]},{'tag':_0x30c27a(0x3c4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x30c27a(0x1e1)},'children':[{'tag':_0x30c27a(0x172),'attrs':{'fill':_0x30c27a(0x397),'d':_0x30c27a(0x21c),'transform':_0x30c27a(0x3b5)}}]}]}],'defIds':[_0x30c27a(0x1e1)]},$e=M['forwardRef'](function(_0x38e4d5,_0x3fbff1){const _0x178895=_0x30c27a;return M[_0x178895(0x33c)](pe,Object[_0x178895(0x2c3)]({},_0x38e4d5,{'id':_0x178895(0x338),'ref':_0x3fbff1,'icon':Nt}));});$e[_0x30c27a(0x3d5)]=_0x30c27a(0x3f0);function Mt(_0x51a7f5){const _0x2925a4=_0x30c27a;switch(_0x51a7f5){case u[_0x2925a4(0x1e9)][_0x2925a4(0x36b)]:return _0x2925a4(0x1a6);case u[_0x2925a4(0x1e9)][_0x2925a4(0x227)]:return'collabStatus.conflict';case u[_0x2925a4(0x1e9)][_0x2925a4(0x27f)]:return'collabStatus.fetchMiss';case u[_0x2925a4(0x1e9)][_0x2925a4(0x1a5)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x2925a4(0x3da)]:case u[_0x2925a4(0x1e9)][_0x2925a4(0x36d)]:return _0x2925a4(0x3dc);case u[_0x2925a4(0x1e9)][_0x2925a4(0x23a)]:case u[_0x2925a4(0x1e9)]['PENDING']:return'collabStatus.synced';}}function xe(_0xaf8d74){const _0x1bf03a=_0x30c27a,{status$:_0x53ee5c}=_0xaf8d74,_0x3c9c73=O[_0x1bf03a(0x3e6)](_0x53ee5c,u['CollaborationStatus']['NOT_COLLAB']),_0x5371ef=O[_0x1bf03a(0x3cf)](a[_0x1bf03a(0x213)]),_0x4f2771=O[_0x1bf03a(0x3cf)](u[_0x1bf03a(0x1be)]),_0x350f04=_0x3c9c73!==u['CollaborationStatus'][_0x1bf03a(0x36b)],_0x1e4adc=_0x5371ef['t'](Mt(_0x3c9c73)),_0x24e9db=_0x350f04?P['jsx']($e,{}):P[_0x1bf03a(0x1ae)](ye,{}),_0x71a609=M['useCallback'](()=>{const _0x103807=_0x1bf03a;_0x350f04||_0x4f2771[_0x103807(0x2ce)]();},[_0x350f04,_0x4f2771]);function _0x1afb8b(){const _0x44d09e=_0x1bf03a;return P[_0x44d09e(0x2e5)]('div',{'className':_0x44d09e(0x2fd),'onClick':_0x71a609,'children':[P[_0x44d09e(0x1ae)]('div',{'className':D['clsx'](_0x44d09e(0x1de),{'univer-text-green-500':_0x350f04,'univer-text-red-500':!_0x350f04}),'children':_0x24e9db}),P[_0x44d09e(0x1ae)](_0x44d09e(0x305),{'className':_0x44d09e(0x332),'children':_0x1e4adc})]});}return _0x350f04?_0x1afb8b():P[_0x1bf03a(0x1ae)](D['Tooltip'],{'title':_0x5371ef['t']('collab-client.tooltip.reconnect'),'children':_0x1afb8b()});}var Lt=Object[_0x30c27a(0x329)],Pt=(_0x386092,_0x181521,_0x3b8396,_0x2ac141)=>{const _0x4944be=_0x30c27a;for(var _0x3c122a=_0x2ac141>0x1?void 0x0:_0x2ac141?Lt(_0x181521,_0x3b8396):_0x181521,_0x2ad3b9=_0x386092[_0x4944be(0x2ff)]-0x1,_0x56a907;_0x2ad3b9>=0x0;_0x2ad3b9--)(_0x56a907=_0x386092[_0x2ad3b9])&&(_0x3c122a=_0x56a907(_0x3c122a)||_0x3c122a);return _0x3c122a;},V=(_0x57df6f,_0x6b6519)=>(_0x10cf0a,_0x20e8eb)=>_0x6b6519(_0x10cf0a,_0x20e8eb,_0x57df6f);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x30c27a(0x27d)]{constructor(_0x4814cb,_0x2adf30,_0x3d1ccf,_0x2dff4a){const _0x17796a=_0x30c27a;super(),h(this,_0x17796a(0x2ab),new d['BehaviorSubject'](u[_0x17796a(0x1e9)][_0x17796a(0x1a5)])),(this[_0x17796a(0x3e3)]=_0x4814cb,this[_0x17796a(0x236)]=_0x2adf30,this[_0x17796a(0x1b9)]=_0x3d1ccf,this[_0x17796a(0x1d5)]=_0x2dff4a,this[_0x17796a(0x313)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x349127=_0x30c27a;this['disposeWithMe'](this['_univerInstanceService'][_0x349127(0x389)][_0x349127(0x180)](d[_0x349127(0x361)](()=>{const _0x5e521b=_0x349127,_0x2197fa=this['_univerInstanceService'][_0x5e521b(0x24e)]();return _0x2197fa?this[_0x5e521b(0x1b9)]['getCollabEntity$'](_0x2197fa[_0x5e521b(0x16f)]()):d['of'](null);}),d[_0x349127(0x361)](_0x499984=>_0x499984?_0x499984[_0x349127(0x2a3)]:d['of'](u[_0x349127(0x1e9)][_0x349127(0x1a5)])))[_0x349127(0x258)](_0xdbdf0c=>{const _0x20176d=_0x349127;this['_status$'][_0x20176d(0x2d2)](_0xdbdf0c);}));}[_0x30c27a(0x313)](){const _0x578af6=_0x30c27a;this[_0x578af6(0x20b)](this[_0x578af6(0x1d5)][_0x578af6(0x1cf)](O[_0x578af6(0x378)][_0x578af6(0x29f)],()=>O[_0x578af6(0x218)](wt({'status$':this[_0x578af6(0x2ab)]['asObservable']()}),this[_0x578af6(0x236)])));}},exports[_0x30c27a(0x3ea)]=Pt([V(0x0,a[_0x30c27a(0x3e0)]),V(0x1,a['Inject'](a[_0x30c27a(0x248)])),V(0x2,a[_0x30c27a(0x34b)](u[_0x30c27a(0x35f)])),V(0x3,O[_0x30c27a(0x28e)])],exports[_0x30c27a(0x3ea)]);function wt(_0x354863){const {status$:_0x149ae6}=_0x354863;return function(){const _0x29cdb1=_0x2320;return P[_0x29cdb1(0x1ae)](xe,{'status$':_0x149ae6});};}var At=Object[_0x30c27a(0x329)],yt=(_0x2e72ae,_0x49e248,_0x542e95,_0x5a3095)=>{const _0x29b91d=_0x30c27a;for(var _0x116317=_0x5a3095>0x1?void 0x0:_0x5a3095?At(_0x49e248,_0x542e95):_0x49e248,_0x339335=_0x2e72ae[_0x29b91d(0x2ff)]-0x1,_0xa103f4;_0x339335>=0x0;_0x339335--)(_0xa103f4=_0x2e72ae[_0x339335])&&(_0x116317=_0xa103f4(_0x116317)||_0x116317);return _0x116317;},y=(_0x5e4831,_0x433b9d)=>(_0xe0ee80,_0x54425b)=>_0x433b9d(_0xe0ee80,_0x54425b,_0x5e4831);let q=class extends a[_0x30c27a(0x27d)]{constructor(_0x38aeda,_0x422ee2,_0x2ad95b,_0xb584c9,_0x5507de,_0x17c9aa){const _0xfe0b11=_0x30c27a;super(),this['_beforeCloseService']=_0x38aeda,this[_0xfe0b11(0x339)]=_0x422ee2,this[_0xfe0b11(0x348)]=_0x2ad95b,this[_0xfe0b11(0x2c5)]=_0xb584c9,this['_notificationService']=_0x5507de,this[_0xfe0b11(0x270)]=_0x17c9aa,this[_0xfe0b11(0x2e0)](),this['_initEvent']();}[_0x30c27a(0x2e0)](){const _0x49b86e=_0x30c27a;this[_0x49b86e(0x20b)](this[_0x49b86e(0x1fd)]['registerBeforeClose'](()=>{const _0x12becc=_0x49b86e;if(this[_0x12becc(0x339)]['saveTaskMap'][_0x12becc(0x2a9)])return this[_0x12becc(0x270)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x30c27a(0x3f3)](){const _0x14d966=_0x30c27a;this[_0x14d966(0x20b)](this[_0x14d966(0x348)][_0x14d966(0x386)]['subscribe'](_0x3d9522=>{const _0x308d93=_0x14d966;_0x3d9522['id']===u[_0x308d93(0x1d8)]['OTHER_CLIENT_EDITING']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x193)],'content':this[_0x308d93(0x270)]['t']('collaboration.single-unit.warning')}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['CLOSE_ROOM']&&this['_messageService'][_0x308d93(0x32c)]({'type':D['MessageType'][_0x308d93(0x193)],'content':this[_0x308d93(0x270)]['t']('collaboration.closeRoom')}),_0x3d9522['id']===u['CollaborationUIEventId'][_0x308d93(0x203)]&&this[_0x308d93(0x25e)][_0x308d93(0x32c)]({'title':this[_0x308d93(0x270)]['t'](_0x308d93(0x1c7)),'content':this['_localeService']['t']('permission.content'),'type':_0x308d93(0x243),'duration':0x0}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['CONFLICT']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x2e6)],'content':this[_0x308d93(0x270)]['t'](_0x308d93(0x256))+'('+_0x3d9522[_0x308d93(0x190)]+')'}),_0x3d9522['id']===u[_0x308d93(0x1d8)][_0x308d93(0x28a)]&&this['_messageService']['show']({'type':D[_0x308d93(0x2de)]['Warning'],'content':this['_localeService']['t'](_0x3d9522[_0x308d93(0x190)]||'')}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['SOCKET_FAILED_RETRY']&&this[_0x308d93(0x2c5)]['show']({'type':D[_0x308d93(0x2de)][_0x308d93(0x193)],'content':this['_localeService']['t'](_0x308d93(0x1f1))}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['SOCKET_FAILED']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x2e6)],'content':this[_0x308d93(0x270)]['t'](_0x308d93(0x319))}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x2e6)],'content':this[_0x308d93(0x270)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,O[_0x30c27a(0x26d)]),y(0x1,u[_0x30c27a(0x254)]),y(0x2,a[_0x30c27a(0x34b)](u[_0x30c27a(0x2cb)])),y(0x3,O[_0x30c27a(0x38e)]),y(0x4,O[_0x30c27a(0x283)]),y(0x5,a[_0x30c27a(0x34b)](a['LocaleService']))],q);const $t=_0x30c27a(0x228),Ue={},Ee=a[_0x30c27a(0x1c9)](_0x30c27a(0x183));var xt=Object[_0x30c27a(0x329)],Bt=(_0x2f3f26,_0x2a6cfc,_0x49ef50,_0x188ac3)=>{const _0x46dd15=_0x30c27a;for(var _0x7a4030=_0x188ac3>0x1?void 0x0:_0x188ac3?xt(_0x2a6cfc,_0x49ef50):_0x2a6cfc,_0x249086=_0x2f3f26[_0x46dd15(0x2ff)]-0x1,_0x2ebd04;_0x249086>=0x0;_0x249086--)(_0x2ebd04=_0x2f3f26[_0x249086])&&(_0x7a4030=_0x2ebd04(_0x7a4030)||_0x7a4030);return _0x7a4030;},F=(_0x30764c,_0x249584)=>(_0x3c0e76,_0x2ed23d)=>_0x249584(_0x3c0e76,_0x2ed23d,_0x30764c);exports[_0x30c27a(0x266)]=class extends a[_0x30c27a(0x2fa)]{constructor(_0x45fc4e,_0x5f365e,_0xa6d653,_0x4ddccb,_0x572141){const _0x11dc56=_0x30c27a;super(),this[_0x11dc56(0x33b)]=_0x45fc4e,this[_0x11dc56(0x2a1)]=_0x5f365e,this[_0x11dc56(0x3a6)]=_0xa6d653,this[_0x11dc56(0x2be)]=_0x4ddccb,_0x572141?_0x572141==null||_0x572141[_0x11dc56(0x19c)]()[_0x11dc56(0x3db)](()=>this[_0x11dc56(0x271)]()):(this[_0x11dc56(0x2a1)][_0x11dc56(0x304)]('[CollaborationDataLoaderController]',_0x11dc56(0x37c)),this[_0x11dc56(0x271)]());}async[_0x30c27a(0x271)](){const _0x1501cf=_0x30c27a,_0x4f8702=this['_urlService'][_0x1501cf(0x31a)]('unit'),_0x40049b=this[_0x1501cf(0x33b)]['getParam'](_0x1501cf(0x31b)),_0x42f27c=this[_0x1501cf(0x33b)]['getParam'](_0x1501cf(0x292));if(!_0x4f8702||!_0x40049b){this[_0x1501cf(0x2a1)][_0x1501cf(0x304)](_0x1501cf(0x2e3),_0x1501cf(0x1b3));return;}const _0xef38fd=await this[_0x1501cf(0x2be)][_0x1501cf(0x1fc)](_0x4f8702,Number(_0x40049b),_0x42f27c);_0xef38fd&&_0xef38fd instanceof a['Workbook']&&this[_0x1501cf(0x27c)](_0xef38fd);}async['_setupSubUnitSync'](_0x4d0596){const _0x11bd78=_0x30c27a;await this[_0x11bd78(0x30c)](_0x4d0596),_0x4d0596['activeSheet$'][_0x11bd78(0x180)](d[_0x11bd78(0x23f)](this['dispose$']))[_0x11bd78(0x258)](_0x217741=>{const _0x43c040=_0x11bd78;_0x217741&&this[_0x43c040(0x1cc)](_0x217741);}),this[_0x11bd78(0x33b)]['urlChange$'][_0x11bd78(0x180)](d['takeUntil'](this[_0x11bd78(0x320)]))[_0x11bd78(0x258)](()=>this[_0x11bd78(0x30c)](_0x4d0596));}[_0x30c27a(0x1cc)](_0x5d9f67,_0xa629b8=!0x1){const _0x18694b=_0x30c27a,_0x2120fe=this['_urlService'][_0x18694b(0x31a)]('subunit');_0x5d9f67[_0x18694b(0x18b)]()!==_0x2120fe&&this[_0x18694b(0x33b)]['setParam']('subunit',_0x5d9f67[_0x18694b(0x18b)](),_0xa629b8);}async[_0x30c27a(0x30c)](_0x1ca243){const _0x536034=_0x30c27a;var _0x347346;const _0x26c788=this[_0x536034(0x33b)][_0x536034(0x31a)]('subunit');if(!_0x26c788||!_0x1ca243['getSheetBySheetId'](_0x26c788)){const _0x299a19=_0x1ca243[_0x536034(0x1d3)]()[0x0],_0x6c1135=_0x1ca243[_0x536034(0x2ee)](_0x299a19);if(!_0x6c1135)return;this[_0x536034(0x1cc)](_0x6c1135,!0x0),await this[_0x536034(0x3a6)][_0x536034(0x3f7)](g[_0x536034(0x3a1)]['id'],{'unitId':_0x1ca243[_0x536034(0x16f)](),'subUnitId':_0x299a19});return;}((_0x347346=_0x1ca243[_0x536034(0x208)]())==null?void 0x0:_0x347346[_0x536034(0x18b)]())!==_0x26c788&&await this[_0x536034(0x3a6)][_0x536034(0x3f7)](g[_0x536034(0x3a1)]['id'],{'unitId':_0x1ca243[_0x536034(0x16f)](),'subUnitId':_0x26c788});}},exports['CollaborationDataLoaderController']=Bt([F(0x0,Ee),F(0x1,a[_0x30c27a(0x355)]),F(0x2,a[_0x30c27a(0x39f)]),F(0x3,a[_0x30c27a(0x34b)](u[_0x30c27a(0x1b5)])),F(0x4,a[_0x30c27a(0x25f)](Ke[_0x30c27a(0x1b0)]))],exports[_0x30c27a(0x266)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x223097,_0x2a27ac,_0x475b41,_0x3f6813)=>{for(var _0x19414f=_0x3f6813>0x1?void 0x0:_0x3f6813?jt(_0x2a27ac,_0x475b41):_0x2a27ac,_0x32e4ac=_0x223097['length']-0x1,_0x123c45;_0x32e4ac>=0x0;_0x32e4ac--)(_0x123c45=_0x223097[_0x32e4ac])&&(_0x19414f=_0x123c45(_0x19414f)||_0x19414f);return _0x19414f;},ce=(_0x2c43c4,_0xb1529b)=>(_0x4bf248,_0x34912e)=>_0xb1529b(_0x4bf248,_0x34912e,_0x2c43c4);let z=class{constructor(_0x4cd140,_0x5457ba,_0x486599){const _0x2f56a6=_0x30c27a;this[_0x2f56a6(0x236)]=_0x4cd140,this[_0x2f56a6(0x3fe)]=_0x5457ba,this[_0x2f56a6(0x37b)]=_0x486599;}['transformIMECache'](_0xb5e2bf){const _0x240313=_0x30c27a;this[_0x240313(0x3d0)](_0xb5e2bf),this[_0x240313(0x16e)](_0xb5e2bf);}['transformRemoteChangeset'](_0x177a97){const _0x16e415=_0x30c27a,{unitID:_0x274400}=_0x177a97,_0x1800c6=this[_0x16e415(0x37b)][_0x16e415(0x287)](_0x274400)['with'](E[_0x16e415(0x220)]),{redoCache:_0x4571c8}=_0x1800c6[_0x16e415(0x255)]();if(_0x4571c8[_0x16e415(0x2ff)]===0x0)return _0x177a97;let _0xc5ee9b=a[_0x16e415(0x2ca)]['deepClone'](_0x177a97[_0x16e415(0x269)][0x0]);for(let _0x523fc8=0x0;_0x523fc8<_0x4571c8['length'];_0x523fc8++){const _0x2582e7={'id':_0x16e415(0x212),'params':{..._0x4571c8[_0x523fc8]}},_0x3e62a=this[_0x16e415(0x3fe)][_0x16e415(0x399)](_0xc5ee9b,_0x2582e7,!0x1);if(m[_0x16e415(0x1c3)](_0x3e62a))throw _0x3e62a[_0x16e415(0x243)];_0xc5ee9b=_0x3e62a[_0x16e415(0x29d)];}return{...a[_0x16e415(0x2ca)][_0x16e415(0x274)](_0x177a97),'mutations':[_0xc5ee9b]};}['_transformUndoRedoStack'](_0x420854){const _0x583203=_0x30c27a,{unitID:_0x497cce}=_0x420854,_0x38276b=this[_0x583203(0x37b)][_0x583203(0x287)](_0x497cce)[_0x583203(0x392)](E[_0x583203(0x220)]),{undoCache:_0x213b42,redoCache:_0x1cfb3e}=_0x38276b[_0x583203(0x255)]();if(_0x213b42[_0x583203(0x2ff)]===0x0||_0x1cfb3e[_0x583203(0x2ff)]===0x0)return;const _0x59382d=[],_0x22188e=[];let _0x142c5a=a[_0x583203(0x2ca)][_0x583203(0x274)](_0x420854[_0x583203(0x269)][0x0]),_0x9420a6=a[_0x583203(0x2ca)][_0x583203(0x274)](_0x420854[_0x583203(0x269)][0x0]);for(let _0x86509d=_0x213b42[_0x583203(0x2ff)]-0x1;_0x86509d>=0x0;_0x86509d--){const _0x3ac5b3={'id':_0x583203(0x212),'params':{..._0x213b42[_0x86509d]}},_0xfbec2a={'id':_0x583203(0x212),'params':{..._0x1cfb3e[_0x86509d]}},_0x1a4c04=this[_0x583203(0x3fe)][_0x583203(0x399)](_0x142c5a,_0x3ac5b3,!0x1),_0x1d2f1a=this['_transformService'][_0x583203(0x399)](_0x9420a6,_0xfbec2a,!0x1);if(m['isTransformMutationFailure'](_0x1a4c04))throw _0x1a4c04[_0x583203(0x243)];if(m[_0x583203(0x1c3)](_0x1d2f1a))throw _0x1d2f1a[_0x583203(0x243)];_0x59382d['unshift'](_0x1a4c04['m2Prime'][_0x583203(0x222)]),_0x22188e[_0x583203(0x260)](_0x1d2f1a[_0x583203(0x3f4)][_0x583203(0x222)]),_0x142c5a=_0x1a4c04[_0x583203(0x29d)],_0x9420a6=_0x1d2f1a[_0x583203(0x29d)];}_0x38276b[_0x583203(0x325)]({'undoCache':_0x59382d,'redoCache':_0x22188e});}[_0x30c27a(0x16e)](_0x453307){const _0x3702ab=_0x30c27a,{unitID:_0x2dfb4e}=_0x453307,_0x52c099=this[_0x3702ab(0x37b)][_0x3702ab(0x287)](_0x2dfb4e)[_0x3702ab(0x392)](E[_0x3702ab(0x220)]),_0x32116d=_0x52c099['getActiveRange']();if(_0x32116d==null)return;const _0x3038b1=[{'id':_0x3702ab(0x212),'params':{'unitId':_0x453307[_0x3702ab(0x2a5)],'actions':null,'textRanges':[_0x32116d]}}],_0x2ed315=this[_0x3702ab(0x3fe)][_0x3702ab(0x365)](_0x453307,_0x3038b1);if(!m[_0x3702ab(0x3ac)](_0x2ed315))throw _0x2ed315[_0x3702ab(0x243)];const _0x48b00b=_0x2ed315[_0x3702ab(0x3f4)][0x0]['params'][_0x3702ab(0x382)];Array['isArray'](_0x48b00b)&&_0x48b00b[_0x3702ab(0x2ff)]&&_0x52c099[_0x3702ab(0x395)](_0x48b00b[0x0]);}};z=kt([ce(0x0,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),ce(0x1,m[_0x30c27a(0x341)]),ce(0x2,p[_0x30c27a(0x307)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x4a8143,_0x41c7ae,_0x51c066,_0x488326)=>{const _0x3d83c5=_0x30c27a;for(var _0x1424b0=_0x488326>0x1?void 0x0:_0x488326?Ft(_0x41c7ae,_0x51c066):_0x41c7ae,_0x302491=_0x4a8143[_0x3d83c5(0x2ff)]-0x1,_0x2560b4;_0x302491>=0x0;_0x302491--)(_0x2560b4=_0x4a8143[_0x302491])&&(_0x1424b0=_0x2560b4(_0x1424b0)||_0x1424b0);return _0x1424b0;},le=(_0x4a1978,_0x1ea768)=>(_0x348fba,_0x121066)=>_0x1ea768(_0x348fba,_0x121066,_0x4a1978);let J=class{constructor(_0x393d17,_0x2ee9fa,_0x1b9369){const _0x5dd8f7=_0x30c27a;this[_0x5dd8f7(0x236)]=_0x393d17,this[_0x5dd8f7(0x3fe)]=_0x2ee9fa,this[_0x5dd8f7(0x24f)]=_0x1b9369;}[_0x30c27a(0x2b6)](_0x32eeed){const _0x4b009f=_0x30c27a;this[_0x4b009f(0x17b)](_0x32eeed);}[_0x30c27a(0x3b6)](_0x4cfc4e){const _0x2e9fbf=_0x30c27a,{unitID:_0x5cab30}=_0x4cfc4e,{collaboration:_0x41ae1e}=this[_0x2e9fbf(0x24f)][_0x2e9fbf(0x226)](_0x5cab30);if(_0x41ae1e['length']===0x0)return _0x4cfc4e;let _0x438785=a['Tools'][_0x2e9fbf(0x274)](_0x4cfc4e['mutations'][0x0]);for(let _0x4233a1=0x0;_0x4233a1<_0x41ae1e[_0x2e9fbf(0x2ff)];_0x4233a1++){const _0x5cecb7={'id':_0x2e9fbf(0x212),'params':{'unitId':_0x41ae1e[_0x4233a1][_0x2e9fbf(0x2ed)],..._0x41ae1e[_0x4233a1]['redoState']}},_0x2db438=this[_0x2e9fbf(0x3fe)][_0x2e9fbf(0x399)](_0x438785,_0x5cecb7,!0x1);if(m['isTransformMutationFailure'](_0x2db438))throw _0x2db438[_0x2e9fbf(0x243)];_0x438785=_0x2db438[_0x2e9fbf(0x29d)];}return{...a[_0x2e9fbf(0x2ca)]['deepClone'](_0x4cfc4e),'mutations':[_0x438785]};}[_0x30c27a(0x17b)](_0xed7001){const _0x5a261d=_0x30c27a,{unitID:_0x149c45}=_0xed7001,{history:_0x386624,collaboration:_0x18825b}=this['_docStateChangeManagerService']['getStateCache'](_0x149c45);if(_0x386624[_0x5a261d(0x2ff)]===0x0&&_0x18825b[_0x5a261d(0x2ff)]===0x0)return;const _0x35d2f0=[],_0x1af1a6=[];let _0x50653b=a[_0x5a261d(0x2ca)][_0x5a261d(0x274)](_0xed7001[_0x5a261d(0x269)][0x0]),_0x2e3e84=a[_0x5a261d(0x2ca)]['deepClone'](_0xed7001[_0x5a261d(0x269)][0x0]);for(let _0x4cca0d=_0x386624[_0x5a261d(0x2ff)]-0x1;_0x4cca0d>=0x0;_0x4cca0d--){const _0x350602={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x386624[_0x4cca0d]['unitId'],..._0x386624[_0x4cca0d][_0x5a261d(0x1ac)]}},_0x328c2a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x386624[_0x4cca0d][_0x5a261d(0x2ed)],..._0x386624[_0x4cca0d][_0x5a261d(0x315)]}},_0x18b1ed=this[_0x5a261d(0x3fe)][_0x5a261d(0x399)](_0x50653b,_0x350602,!0x1),_0x2514d8=this[_0x5a261d(0x3fe)][_0x5a261d(0x399)](_0x2e3e84,_0x328c2a,!0x1);if(m[_0x5a261d(0x1c3)](_0x18b1ed))throw _0x18b1ed[_0x5a261d(0x243)];if(m['isTransformMutationFailure'](_0x2514d8))throw _0x2514d8[_0x5a261d(0x243)];_0x35d2f0[_0x5a261d(0x260)]({..._0x386624[_0x4cca0d],'undoState':_0x18b1ed[_0x5a261d(0x3f4)]['params'],'redoState':_0x2514d8['m2Prime'][_0x5a261d(0x222)]}),_0x50653b=_0x18b1ed[_0x5a261d(0x29d)],_0x2e3e84=_0x2514d8[_0x5a261d(0x29d)];}_0x50653b=a[_0x5a261d(0x2ca)][_0x5a261d(0x274)](_0xed7001[_0x5a261d(0x269)][0x0]),_0x2e3e84=a[_0x5a261d(0x2ca)][_0x5a261d(0x274)](_0xed7001[_0x5a261d(0x269)][0x0]);for(let _0x598ce3=_0x18825b[_0x5a261d(0x2ff)]-0x1;_0x598ce3>=0x0;_0x598ce3--){const _0x51f876={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18825b[_0x598ce3][_0x5a261d(0x2ed)],..._0x18825b[_0x598ce3][_0x5a261d(0x1ac)]}},_0x4ee016={'id':_0x5a261d(0x212),'params':{'unitId':_0x18825b[_0x598ce3][_0x5a261d(0x2ed)],..._0x18825b[_0x598ce3]['redoState']}},_0x9d230=this[_0x5a261d(0x3fe)]['transformMutation'](_0x50653b,_0x51f876,!0x1),_0x3066f3=this[_0x5a261d(0x3fe)][_0x5a261d(0x399)](_0x2e3e84,_0x4ee016,!0x1);if(m['isTransformMutationFailure'](_0x9d230))throw _0x9d230[_0x5a261d(0x243)];if(m[_0x5a261d(0x1c3)](_0x3066f3))throw _0x3066f3['error'];_0x1af1a6['unshift']({..._0x18825b[_0x598ce3],'undoState':_0x9d230[_0x5a261d(0x3f4)][_0x5a261d(0x222)],'redoState':_0x3066f3[_0x5a261d(0x3f4)][_0x5a261d(0x222)]}),_0x50653b=_0x9d230[_0x5a261d(0x29d)],_0x2e3e84=_0x3066f3[_0x5a261d(0x29d)];}this[_0x5a261d(0x24f)][_0x5a261d(0x3e9)](_0x149c45,{'history':_0x35d2f0,'collaboration':_0x1af1a6});}};J=Ht([le(0x0,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),le(0x1,m[_0x30c27a(0x341)]),le(0x2,a['Inject'](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x30c27a(0x329)],Wt=(_0x168d70,_0x574458,_0x355db2,_0x4cd4ab)=>{for(var _0x1906f4=_0x4cd4ab>0x1?void 0x0:_0x4cd4ab?Yt(_0x574458,_0x355db2):_0x574458,_0x159532=_0x168d70['length']-0x1,_0x1609c3;_0x159532>=0x0;_0x159532--)(_0x1609c3=_0x168d70[_0x159532])&&(_0x1906f4=_0x1609c3(_0x1906f4)||_0x1906f4);return _0x1906f4;},Ne=(_0x1054eb,_0x5e6c3b)=>(_0x343eea,_0x11634c)=>_0x5e6c3b(_0x343eea,_0x11634c,_0x1054eb);let Z=class{constructor(_0x505015,_0x4ba11e){const _0x4d6eaf=_0x30c27a;this[_0x4d6eaf(0x236)]=_0x505015,this[_0x4d6eaf(0x3fe)]=_0x4ba11e;}['transformSelections'](_0x107f91){const _0x212cab=_0x30c27a;var _0x21fb94;const _0x4408e5=this[_0x212cab(0x236)][_0x212cab(0x235)](Y[_0x212cab(0x2e8)]),_0x59ea37=(_0x21fb94=_0x4408e5[_0x212cab(0x3f1)]())!=null?_0x21fb94:[];if(_0x59ea37[_0x212cab(0x2ff)]===0x0)return;const _0x172f65=_0x107f91[_0x212cab(0x2a5)],_0x2074a7=[{'id':_0x212cab(0x212),'params':{'unitId':_0x172f65,'actions':null,'textRanges':_0x59ea37}}],_0x339fd3=this[_0x212cab(0x3fe)][_0x212cab(0x365)](_0x107f91,_0x2074a7);if(!m['isTransformMutationsWithChangesetSuccess'](_0x339fd3))throw _0x339fd3['error'];const _0x99a394=_0x339fd3['m2Prime'][0x0][_0x212cab(0x222)][_0x212cab(0x382)];Array[_0x212cab(0x2d5)](_0x99a394)&&_0x99a394[_0x212cab(0x2ff)]&&_0x4408e5['replaceDocRanges'](_0x99a394,{'unitId':_0x172f65,'subUnitId':_0x172f65},!0x1);}};Z=Wt([Ne(0x0,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),Ne(0x1,m[_0x30c27a(0x341)])],Z);var Vt=Object[_0x30c27a(0x329)],Xt=(_0x296c91,_0x329236,_0x3c65cf,_0xfa8985)=>{const _0x4ac1ad=_0x30c27a;for(var _0x32ab90=_0xfa8985>0x1?void 0x0:_0xfa8985?Vt(_0x329236,_0x3c65cf):_0x329236,_0x48b359=_0x296c91[_0x4ac1ad(0x2ff)]-0x1,_0x4ef5cf;_0x48b359>=0x0;_0x48b359--)(_0x4ef5cf=_0x296c91[_0x48b359])&&(_0x32ab90=_0x4ef5cf(_0x32ab90)||_0x32ab90);return _0x32ab90;},N=(_0x228ab0,_0x5e9c9c)=>(_0x2fea0,_0x2e2e9a)=>_0x5e9c9c(_0x2fea0,_0x2e2e9a,_0x228ab0);let Q=class extends a[_0x30c27a(0x27d)]{constructor(_0x4e8c94,_0x4ea2ef,_0x4d16f8,_0x4e5fb9,_0x3f41d0,_0x179046,_0x40a82c,_0x2d2d9b){const _0x370518=_0x30c27a;super(),h(this,_0x370518(0x2ab),new d[(_0x370518(0x299))](u[_0x370518(0x1e9)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x4e8c94,this['_collaborationController']=_0x4ea2ef,this[_0x370518(0x181)]=_0x4d16f8,this[_0x370518(0x391)]=_0x4e5fb9,this['_docTransformSelectionsService']=_0x3f41d0,this[_0x370518(0x39a)]=_0x179046,this['_messageService']=_0x40a82c,this[_0x370518(0x270)]=_0x2d2d9b,this['_initEntityListener']());}[_0x30c27a(0x284)](){const _0xddc989=_0x30c27a;this[_0xddc989(0x20b)](this[_0xddc989(0x1b9)][_0xddc989(0x318)][_0xddc989(0x258)](_0x223f9d=>{const _0x3591b7=_0xddc989,_0x5996ec=this['_docStateChangeManagerService']['docStateChange$'][_0x3591b7(0x258)](_0x4ebdab=>{const _0x2f3ee3=_0x3591b7;if(_0x4ebdab==null)return;const {unitId:_0x558f45,redoState:_0x3e5ffa,commandId:_0xe5be61}=_0x4ebdab;if(_0x558f45!==_0x223f9d['unitID'])return;const _0x5c9559={'id':_0xe5be61,'type':a[_0x2f3ee3(0x26e)][_0x2f3ee3(0x3cd)],'params':{'unitId':_0x558f45,'actions':_0x3e5ffa[_0x2f3ee3(0x366)],'textRanges':null}};_0x223f9d[_0x2f3ee3(0x3c8)](_0x5c9559);});if(_0x223f9d[_0x3591b7(0x20b)](_0x5996ec),_0x223f9d instanceof u[_0x3591b7(0x1c8)]){const _0xffafa9={'onTransformIME':_0xa7d108=>this[_0x3591b7(0x181)]['transformIMECache'](_0xa7d108),'onTransformState':_0xdb24ed=>this[_0x3591b7(0x391)][_0x3591b7(0x2b6)](_0xdb24ed),'onTransformSelections':_0x1249b6=>this[_0x3591b7(0x3eb)]['transformSelections'](_0x1249b6),'onSyncEditingCollabCursor':_0x2b5e75=>this['_docSyncEditingCollabCursorService'][_0x3591b7(0x204)](_0x2b5e75),'onTransformRemoteChangesetByIMECache':_0x4d9ec1=>this[_0x3591b7(0x181)]['transformRemoteChangeset'](_0x4d9ec1),'onTransformRemoteChangesetByStateCache':_0x9645cb=>this[_0x3591b7(0x391)][_0x3591b7(0x3b6)](_0x9645cb)};_0x223f9d[_0x3591b7(0x3e2)](_0xffafa9);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x30c27a(0x3ab)])),N(0x1,a[_0x30c27a(0x34b)](u['CollaborationController'])),N(0x2,a[_0x30c27a(0x34b)](z)),N(0x3,a[_0x30c27a(0x34b)](J)),N(0x4,a[_0x30c27a(0x34b)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x30c27a(0x213)]))],Q);function _0x2320(_0x117683,_0x40b712){const _0x3f1352=_0x3f13();return _0x2320=function(_0x23200e,_0x4f1a04){_0x23200e=_0x23200e-0x16c;let _0x344daa=_0x3f1352[_0x23200e];return _0x344daa;},_0x2320(_0x117683,_0x40b712);}var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x19e10b,_0x34ad0d,_0x460f05,_0x3c3bb8)=>{const _0x46ed96=_0x30c27a;for(var _0x51b5b0=_0x3c3bb8>0x1?void 0x0:_0x3c3bb8?Gt(_0x34ad0d,_0x460f05):_0x34ad0d,_0x4bd166=_0x19e10b[_0x46ed96(0x2ff)]-0x1,_0x259ba7;_0x4bd166>=0x0;_0x4bd166--)(_0x259ba7=_0x19e10b[_0x4bd166])&&(_0x51b5b0=_0x259ba7(_0x51b5b0)||_0x51b5b0);return _0x51b5b0;},_e=(_0x58b0f3,_0x575842)=>(_0x1491a8,_0x3535a4)=>_0x575842(_0x1491a8,_0x3535a4,_0x58b0f3);let ge=class extends a[_0x30c27a(0x27d)]{constructor(_0x5b3505,_0x17153f,_0x4911a9){const _0x36a1d1=_0x30c27a;super(),h(this,'_cachedData',new Map()),h(this,_0x36a1d1(0x1e0),new Map()),h(this,_0x36a1d1(0x31f),!0x1),(this[_0x36a1d1(0x178)]=_0x5b3505,this['_localStorageService']=_0x17153f,this[_0x36a1d1(0x205)]=_0x4911a9);}[_0x30c27a(0x1c2)](){const _0x5af95e=_0x30c27a;this[_0x5af95e(0x31f)]=!0x0;}[_0x30c27a(0x25a)](){const _0x27220a=_0x30c27a;this[_0x27220a(0x31f)]=!0x1;}get[_0x30c27a(0x174)](){const _0x498e00=_0x30c27a;return this[_0x498e00(0x1e0)];}['dispose'](){const _0x343e5a=_0x30c27a;this['exhaustSavingTask']()[_0x343e5a(0x3db)](()=>super['dispose']());}async['loadOfflineData'](_0x2e64c9){const _0x261208=_0x30c27a;return this[_0x261208(0x31f)]?null:this['_localStorageService']['getItem'](u[_0x261208(0x34c)](_0x2e64c9));}async[_0x30c27a(0x23b)](_0x57a181,_0x5d4671){const _0x435ff2=_0x30c27a;return!!this[_0x435ff2(0x177)][_0x435ff2(0x35d)](_0x57a181,_0x5d4671);}[_0x30c27a(0x3a3)](_0x1b8462,_0x5d4bb8,_0x47cbe0,_0x3f7fc3){const _0x4638ec=_0x30c27a,_0xad3556=this['_revisionService'][_0x4638ec(0x2bc)](_0x1b8462);this[_0x4638ec(0x383)][_0x4638ec(0x2f3)](_0x1b8462,{'unitID':_0x1b8462,'type':_0x5d4bb8,'awaitingChangeset':_0x47cbe0,'mutations':_0x3f7fc3,'rev':_0xad3556}),this[_0x4638ec(0x1e0)][_0x4638ec(0x29e)](_0x1b8462)||this[_0x4638ec(0x241)](_0x1b8462);}[_0x30c27a(0x241)](_0x20c2cd){const _0x130731=_0x30c27a,_0x313318=this['_getSaveTimeout']();_0x313318===0x0?this[_0x130731(0x2b9)](_0x20c2cd):this[_0x130731(0x1e0)]['set'](_0x20c2cd,setTimeout(()=>this['_saveCache'](_0x20c2cd),_0x313318));}[_0x30c27a(0x276)](){const _0x91d210=_0x30c27a;var _0x4ac611;return(_0x4ac611=this['_configService'][_0x91d210(0x3ef)](u[_0x91d210(0x1bb)]))!=null?_0x4ac611:u[_0x91d210(0x36e)];}[_0x30c27a(0x2b9)](_0x27404e){const _0x55e3b6=_0x30c27a,_0x5b9ed3=this['_saveTaskMap'][_0x55e3b6(0x235)](_0x27404e);return _0x5b9ed3!==void 0x0&&window[_0x55e3b6(0x3d9)](_0x5b9ed3),this['_localStorageService']['setItem'](u[_0x55e3b6(0x34c)](_0x27404e),this['_cachedData'][_0x55e3b6(0x235)](_0x27404e))['then'](()=>this[_0x55e3b6(0x1e0)]['delete'](_0x27404e));}async['exhaustSavingTask'](){const _0x8d667b=_0x30c27a,_0x38046b=[];this[_0x8d667b(0x1e0)][_0x8d667b(0x232)]((_0x93b406,_0x42934a)=>{const _0x1cf5cb=_0x8d667b;window[_0x1cf5cb(0x3d9)](_0x93b406),_0x38046b[_0x1cf5cb(0x1b8)](this[_0x1cf5cb(0x2b9)](_0x42934a)[_0x1cf5cb(0x3db)](()=>{const _0x4e6258=_0x1cf5cb;this[_0x4e6258(0x1e0)][_0x4e6258(0x33a)](_0x42934a);}));}),await Promise[_0x8d667b(0x26f)](_0x38046b);}};ge=Kt([_e(0x0,a[_0x30c27a(0x22e)]),_e(0x1,a[_0x30c27a(0x1d9)]),_e(0x2,a[_0x30c27a(0x34b)](m['RevisionService']))],ge);class Be extends a[_0x30c27a(0x2fa)]{constructor(){const _0x44d6fb=_0x30c27a;super(),h(this,_0x44d6fb(0x21d)),this['urlChange$']=d[_0x44d6fb(0x1ec)](window,_0x44d6fb(0x35c))[_0x44d6fb(0x180)](d[_0x44d6fb(0x23f)](this[_0x44d6fb(0x320)]),d[_0x44d6fb(0x1ff)](0x1),d[_0x44d6fb(0x38b)](void 0x0));}[_0x30c27a(0x3a2)](_0x4aa6d5,_0x4df8e7,_0x3767f0=!0x1){const _0x4681df=_0x30c27a,_0x459246=new URL(window[_0x4681df(0x233)][_0x4681df(0x373)]);_0x459246[_0x4681df(0x1e6)]['set'](_0x4aa6d5,_0x4df8e7),_0x3767f0?window[_0x4681df(0x3ae)][_0x4681df(0x294)]('','',_0x459246['toString']()):window[_0x4681df(0x3ae)][_0x4681df(0x1b2)]('','',_0x459246[_0x4681df(0x290)]());}[_0x30c27a(0x280)](_0x5a00b7,_0x6d061b=!0x1){const _0x40470e=_0x30c27a,_0x396a2e=new URL(window[_0x40470e(0x233)][_0x40470e(0x373)]);_0x396a2e[_0x40470e(0x1e6)][_0x40470e(0x33a)](_0x5a00b7),_0x6d061b?window['history'][_0x40470e(0x294)]('','',_0x396a2e[_0x40470e(0x290)]()):window[_0x40470e(0x3ae)][_0x40470e(0x1b2)]('','',_0x396a2e[_0x40470e(0x290)]());}[_0x30c27a(0x31a)](_0x42cbec){const _0x2280ae=_0x30c27a;var _0x25d258;return(_0x25d258=new URL(window['location']['href'])['searchParams'][_0x2280ae(0x235)](_0x42cbec))!=null?_0x25d258:void 0x0;}}var qt=Object[_0x30c27a(0x1b4)],zt=Object[_0x30c27a(0x329)],Jt=(_0xb4c9bf,_0x1bac7e,_0x26bab7)=>_0x1bac7e in _0xb4c9bf?qt(_0xb4c9bf,_0x1bac7e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26bab7}):_0xb4c9bf[_0x1bac7e]=_0x26bab7,Zt=(_0x47ac5e,_0x16cf86,_0x268c07,_0x1df82e)=>{const _0x31b26c=_0x30c27a;for(var _0x5d43e9=_0x1df82e>0x1?void 0x0:_0x1df82e?zt(_0x16cf86,_0x268c07):_0x16cf86,_0x99d5dc=_0x47ac5e[_0x31b26c(0x2ff)]-0x1,_0x236425;_0x99d5dc>=0x0;_0x99d5dc--)(_0x236425=_0x47ac5e[_0x99d5dc])&&(_0x5d43e9=_0x236425(_0x5d43e9)||_0x5d43e9);return _0x5d43e9;},he=(_0x1ffa1f,_0x5f5567)=>(_0x4ba7c1,_0x2c2093)=>_0x5f5567(_0x4ba7c1,_0x2c2093,_0x1ffa1f),Qt=(_0x218af2,_0x133bbf,_0x4ca6ad)=>Jt(_0x218af2,_0x133bbf+'',_0x4ca6ad);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x30c27a(0x1e3)]=class extends a[_0x30c27a(0x2a2)]{constructor(_0x18f200=Ue,_0x1be29e,_0x1aaa6f,_0x1dcff6){const _0x12e84d=_0x30c27a;super(),this['_config']=_0x18f200,this[_0x12e84d(0x37b)]=_0x1be29e,this[_0x12e84d(0x236)]=_0x1aaa6f,this[_0x12e84d(0x178)]=_0x1dcff6;const {..._0x4134f3}=a[_0x12e84d(0x2bb)]({},Ue,this[_0x12e84d(0x207)]);this[_0x12e84d(0x178)][_0x12e84d(0x32b)]($t,_0x4134f3);}[_0x30c27a(0x2b4)](){const _0x2d5659=_0x30c27a;this[_0x2d5659(0x3a4)](),this['_initDependencies']();}[_0x30c27a(0x35b)](){const _0x224470=_0x30c27a;this[_0x224470(0x354)]();}['_registerDependencies'](){const _0x341d7b=_0x30c27a;var _0x596b3f;const _0x4de388=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x341d7b(0x1a7)],{'useClass':G['WebSocketService']}],[u[_0x341d7b(0x254)],{'useClass':ge}],[exports[_0x341d7b(0x3ea)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x341d7b(0x3ec)](this[_0x341d7b(0x236)],a[_0x341d7b(0x192)](_0x4de388,(_0x596b3f=this[_0x341d7b(0x207)])==null?void 0x0:_0x596b3f['override']));}['_registerRenderDependencies'](){const _0xad452a=_0x30c27a;this[_0xad452a(0x20b)](this[_0xad452a(0x37b)][_0xad452a(0x188)](a[_0xad452a(0x38f)][_0xad452a(0x394)],[fe])),this[_0xad452a(0x20b)](this[_0xad452a(0x37b)]['registerRenderModule'](a[_0xad452a(0x38f)][_0xad452a(0x3d2)],[ve]));}[_0x30c27a(0x3c9)](){const _0x215466=_0x30c27a;a[_0x215466(0x369)](this[_0x215466(0x236)],[[x],[exports[_0x215466(0x3ea)]],[Q],[q],[exports[_0x215466(0x266)]]]);}},Qt(exports[_0x30c27a(0x1e3)],_0x30c27a(0x30d),es),exports[_0x30c27a(0x1e3)]=Zt([a[_0x30c27a(0x16d)](u[_0x30c27a(0x32f)]),he(0x1,p[_0x30c27a(0x307)]),he(0x2,a[_0x30c27a(0x34b)](a['Injector'])),he(0x3,a[_0x30c27a(0x22e)])],exports[_0x30c27a(0x1e3)]);var ts=Object[_0x30c27a(0x329)],ss=(_0x4e2033,_0x1757ef,_0x216bac,_0x289f7d)=>{for(var _0x2f5cdd=_0x289f7d>0x1?void 0x0:_0x289f7d?ts(_0x1757ef,_0x216bac):_0x1757ef,_0x4843d2=_0x4e2033['length']-0x1,_0x595ffb;_0x4843d2>=0x0;_0x4843d2--)(_0x595ffb=_0x4e2033[_0x4843d2])&&(_0x2f5cdd=_0x595ffb(_0x2f5cdd)||_0x2f5cdd);return _0x2f5cdd;},H=(_0x12944e,_0x1048cc)=>(_0x5d33b7,_0x4a9d4d)=>_0x1048cc(_0x5d33b7,_0x4a9d4d,_0x12944e);exports['BrowserCollaborationSocketService']=class extends u[_0x30c27a(0x330)]{constructor(_0x5a203c,_0x47e5d9,_0x9ac870,_0x16d5e1,_0x7f511){super(_0x5a203c,_0x47e5d9,_0x9ac870,_0x16d5e1,_0x7f511);}async[_0x30c27a(0x1d7)](_0x2c0aca){const _0x18364e=_0x30c27a,_0xf09d6e=await this[_0x18364e(0x26c)](),_0x3474d5=this[_0x18364e(0x171)](_0x2c0aca,_0xf09d6e);return this[_0x18364e(0x28b)](_0x3474d5);}[_0x30c27a(0x171)](_0x35375f,_0x498e6e){const _0x38743d=_0x30c27a,_0x428e3e=typeof window>'u'?new URL(_0x35375f):new URL(_0x35375f,window[_0x38743d(0x233)][_0x38743d(0x20c)]);_0x428e3e['searchParams'][_0x38743d(0x2f3)](_0x38743d(0x1a4),_0x498e6e);const _0x28d84d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x38743d(0x233)][_0x38743d(0x362)]);return _0x28d84d[_0x38743d(0x235)](_0x38743d(0x376))&&_0x428e3e[_0x38743d(0x1e6)][_0x38743d(0x2f3)](_0x38743d(0x376),_0x28d84d[_0x38743d(0x235)](_0x38743d(0x376))),_0x428e3e[_0x38743d(0x290)]();}async[_0x30c27a(0x26c)](){const _0x3f1b77=_0x30c27a;var _0x12a00c,_0x2f49c6,_0x329cf5;const _0x59f62c=this[_0x3f1b77(0x178)]['getConfig'](u[_0x3f1b77(0x3fc)]),_0x41c66e=(_0x12a00c=_0x59f62c==null?void 0x0:_0x59f62c[_0x3f1b77(0x22d)])!=null?_0x12a00c:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x329cf5=(_0x2f49c6=(await this[_0x3f1b77(0x252)][_0x3f1b77(0x235)](_0x41c66e,{'headers':{'Content-Type':_0x3f1b77(0x309)}}))[_0x3f1b77(0x308)])==null?void 0x0:_0x2f49c6[_0x3f1b77(0x1a1)])!=null?_0x329cf5:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a['Inject'](a[_0x30c27a(0x248)])),H(0x1,a[_0x30c27a(0x34b)](G[_0x30c27a(0x2ae)])),H(0x2,a[_0x30c27a(0x22e)]),H(0x3,a['ILogService']),H(0x4,m[_0x30c27a(0x2c0)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x30c27a(0x1af);class is extends a[_0x30c27a(0x27d)]{constructor(){const _0x80fa2f=_0x30c27a;super(),h(this,_0x80fa2f(0x19f),a[_0x80fa2f(0x264)]()),h(this,_0x80fa2f(0x1f4),new Set()),h(this,_0x80fa2f(0x326),new Map()),h(this,_0x80fa2f(0x2eb),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x80fa2f(0x197),new Map()),this[_0x80fa2f(0x271)]();}[_0x30c27a(0x196)](){const _0x5d71e2=_0x30c27a;super[_0x5d71e2(0x196)](),this[_0x5d71e2(0x358)][_0x5d71e2(0x232)]((_0xeada82,_0x1ce5bf)=>this[_0x5d71e2(0x38d)](_0x1ce5bf)),this[_0x5d71e2(0x2eb)]&&window[_0x5d71e2(0x3d3)](this['_heartbeatTimer']);}[_0x30c27a(0x3bf)](_0x49df1c){const _0x176341=_0x30c27a;return this['_ensureSubject'](_0x49df1c)[_0x176341(0x180)](d[_0x176341(0x249)]());}[_0x30c27a(0x195)](_0x2fa11b){const _0x540095=_0x30c27a;this[_0x540095(0x1f4)][_0x540095(0x2a9)]===0x0&&this[_0x540095(0x237)](),this[_0x540095(0x1f4)][_0x540095(0x20f)](_0x2fa11b),this[_0x540095(0x3d1)]({'type':0x0,'memberID':this[_0x540095(0x19f)],'unitIDs':[_0x2fa11b],'isForwarded':!0x1});}[_0x30c27a(0x306)](_0x1f90ae){const _0x143e32=_0x30c27a;this[_0x143e32(0x1f4)][_0x143e32(0x33a)](_0x1f90ae),this[_0x143e32(0x1f4)][_0x143e32(0x2a9)]===0x0&&this[_0x143e32(0x2eb)]&&window[_0x143e32(0x3d3)](this['_heartbeatTimer']);}[_0x30c27a(0x271)](){const _0x57d713=_0x30c27a;this[_0x57d713(0x20b)](a[_0x57d713(0x19d)](d[_0x57d713(0x1ec)](window,'storage')[_0x57d713(0x258)](_0x47d37a=>{const _0x2f1577=_0x57d713;if(_0x47d37a[_0x2f1577(0x360)]!==Le||!_0x47d37a[_0x2f1577(0x1a0)])return;const _0x15b7ae=JSON['parse'](_0x47d37a[_0x2f1577(0x1a0)]);this['_handleEvent'](_0x15b7ae);}))),window['addEventListener'](_0x57d713(0x3b7),()=>this[_0x57d713(0x3d1)]({'type':0x1,'memberID':this[_0x57d713(0x19f)],'unitIDs':Array[_0x57d713(0x1fb)](this[_0x57d713(0x1f4)])}));}[_0x30c27a(0x324)](_0x57d468){const _0x350a05=_0x30c27a;switch(_0x57d468[_0x350a05(0x31b)]){case 0x0:this['_handleJoinEvent'](_0x57d468);break;case 0x1:this[_0x350a05(0x206)](_0x57d468);break;case 0x2:this[_0x350a05(0x3e8)](_0x57d468);break;}}['_handleJoinEvent'](_0x1ca726){const _0x1a116d=_0x30c27a,{unitIDs:_0x13d13f,memberID:_0x26aeed,isForwarded:_0x36ef6c}=_0x1ca726;_0x13d13f[_0x1a116d(0x232)](_0x2cffb2=>{const _0x2e8222=_0x1a116d;if(!_0x36ef6c&&this[_0x2e8222(0x326)][_0x2e8222(0x29e)](_0x2cffb2)&&this[_0x2e8222(0x3d8)](_0x2cffb2)['next'](u[_0x2e8222(0x2ad)]['OTHER_CLIENTS_EDITING']),!this[_0x2e8222(0x326)][_0x2e8222(0x29e)](_0x2cffb2)||!this['_unitOnClients']['get'](_0x2cffb2)[_0x2e8222(0x29e)](_0x26aeed)){const _0x1ae4b7=this[_0x2e8222(0x326)][_0x2e8222(0x235)](_0x2cffb2)||new Set();_0x1ae4b7[_0x2e8222(0x20f)](_0x26aeed),this[_0x2e8222(0x326)][_0x2e8222(0x2f3)](_0x2cffb2,_0x1ae4b7),this[_0x2e8222(0x2c4)](_0x26aeed);}}),_0x36ef6c||this[_0x1a116d(0x3d1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x30c27a(0x2c4)](_0x5a3ce6){const _0x134856=_0x30c27a;this[_0x134856(0x38d)](_0x5a3ce6);const _0x4cf2dc=window[_0x134856(0x1a9)](()=>{const _0x54499d=_0x134856;this['_unitOnClients'][_0x54499d(0x232)](_0x5d746f=>{_0x5d746f['delete'](_0x5a3ce6);});},Me*0x2);this['_clearOtherTimers'][_0x134856(0x2f3)](_0x5a3ce6,_0x4cf2dc);}[_0x30c27a(0x38d)](_0x4c442d){const _0x121cde=_0x30c27a;if(this[_0x121cde(0x358)][_0x121cde(0x29e)](_0x4c442d)){const _0x46b2ac=this[_0x121cde(0x358)][_0x121cde(0x235)](_0x4c442d);_0x46b2ac&&window[_0x121cde(0x3d9)](_0x46b2ac),this[_0x121cde(0x358)]['set'](_0x4c442d,null);}}[_0x30c27a(0x206)](_0x211153){const _0x23627d=_0x30c27a,{memberID:_0xf468ad,unitIDs:_0x5d569c}=_0x211153;_0x5d569c['forEach'](_0x103793=>{const _0x574464=_0x2320;var _0x277784;const _0xf2edb9=this[_0x574464(0x326)]['get'](_0x103793);_0xf2edb9&&(_0xf2edb9[_0x574464(0x33a)](_0xf468ad),(_0x277784=this[_0x574464(0x3d8)](_0x103793))==null||_0x277784[_0x574464(0x2d2)](_0xf2edb9[_0x574464(0x2a9)]===0x0?u[_0x574464(0x2ad)][_0x574464(0x285)]:u[_0x574464(0x2ad)][_0x574464(0x298)]));}),this[_0x23627d(0x38d)](_0xf468ad);}[_0x30c27a(0x3e8)](_0x27ec46){const _0x4f08c7=_0x30c27a;this[_0x4f08c7(0x2c4)](_0x27ec46[_0x4f08c7(0x191)]);}[_0x30c27a(0x3d1)](_0x25fc2f){const _0x208a92=_0x30c27a;localStorage[_0x208a92(0x35d)](Le,JSON[_0x208a92(0x1bf)](_0x25fc2f));}[_0x30c27a(0x237)](){const _0x1090fb=_0x30c27a;this[_0x1090fb(0x2eb)]=window['setInterval'](()=>{const _0x28299f=_0x1090fb;this['_send']({'type':0x2,'memberID':this[_0x28299f(0x19f)]});},Me);}['_ensureSubject'](_0x468e73){const _0x5ba413=_0x30c27a;return this[_0x5ba413(0x197)][_0x5ba413(0x29e)](_0x468e73)||this[_0x5ba413(0x197)][_0x5ba413(0x2f3)](_0x468e73,new d[(_0x5ba413(0x299))](u[_0x5ba413(0x2ad)][_0x5ba413(0x285)])),this[_0x5ba413(0x197)]['get'](_0x468e73);}}var je=(_0x2316fd=>(_0x2316fd[_0x2316fd['UNDEFINED']=0x0]=_0x30c27a(0x22b),_0x2316fd[_0x2316fd['OK']=0x1]='OK',_0x2316fd[_0x2316fd[_0x30c27a(0x3cb)]=0x2]=_0x30c27a(0x3cb),_0x2316fd[_0x2316fd[_0x30c27a(0x203)]=0x3]=_0x30c27a(0x203),_0x2316fd[_0x2316fd[_0x30c27a(0x301)]=0x4]=_0x30c27a(0x301),_0x2316fd[_0x2316fd[_0x30c27a(0x231)]=0x5]=_0x30c27a(0x231),_0x2316fd[_0x2316fd[_0x30c27a(0x296)]=0x6]='ALREADY_EXISTS',_0x2316fd[_0x2316fd[_0x30c27a(0x3bd)]=0x7]=_0x30c27a(0x3bd),_0x2316fd[_0x2316fd[_0x30c27a(0x398)]=0x8]='TOO_MANY_REQUESTS',_0x2316fd[_0x2316fd[_0x30c27a(0x22c)]=0x9]=_0x30c27a(0x22c),_0x2316fd[_0x2316fd[_0x30c27a(0x1dc)]=0xa]=_0x30c27a(0x1dc),_0x2316fd[_0x2316fd[_0x30c27a(0x210)]=0xb]=_0x30c27a(0x210),_0x2316fd[_0x2316fd[_0x30c27a(0x33f)]=0xc]=_0x30c27a(0x33f),_0x2316fd[_0x2316fd[_0x30c27a(0x2fb)]=0xd]=_0x30c27a(0x2fb),_0x2316fd[_0x2316fd[_0x30c27a(0x2af)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2316fd[_0x2316fd[_0x30c27a(0x3e1)]=0x1389]=_0x30c27a(0x3e1),_0x2316fd[_0x2316fd[_0x30c27a(0x282)]=0x1771]=_0x30c27a(0x282),_0x2316fd[_0x2316fd['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2316fd[_0x2316fd[_0x30c27a(0x1aa)]=0x1773]=_0x30c27a(0x1aa),_0x2316fd[_0x2316fd['APPLY_REJECT']=0x1b59]=_0x30c27a(0x32e),_0x2316fd[_0x2316fd[_0x30c27a(0x24c)]=0x1b5a]=_0x30c27a(0x24c),_0x2316fd[_0x2316fd['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x30c27a(0x327),_0x2316fd[_0x2316fd[_0x30c27a(0x187)]=0x1b5c]=_0x30c27a(0x187),_0x2316fd[_0x2316fd[_0x30c27a(0x1a8)]=0x1b5d]=_0x30c27a(0x1a8),_0x2316fd[_0x2316fd[_0x30c27a(0x24a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2316fd[_0x2316fd[_0x30c27a(0x3b4)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2316fd[_0x2316fd[_0x30c27a(0x340)]=0x232a]=_0x30c27a(0x340),_0x2316fd[_0x2316fd['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2316fd[_0x2316fd[_0x30c27a(0x2f4)]=0x232c]=_0x30c27a(0x2f4),_0x2316fd[_0x2316fd[_0x30c27a(0x2ef)]=0x232d]=_0x30c27a(0x2ef),_0x2316fd[_0x2316fd[_0x30c27a(0x3e4)]=0x2711]=_0x30c27a(0x3e4),_0x2316fd[_0x2316fd[_0x30c27a(0x36c)]=0x2712]=_0x30c27a(0x36c),_0x2316fd[_0x2316fd[_0x30c27a(0x268)]=0x2713]=_0x30c27a(0x268),_0x2316fd[_0x2316fd[_0x30c27a(0x3fb)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2316fd[_0x2316fd[_0x30c27a(0x2df)]=0x271a]=_0x30c27a(0x2df),_0x2316fd[_0x2316fd['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x30c27a(0x3de),_0x2316fd[_0x2316fd[_0x30c27a(0x25b)]=0x271c]=_0x30c27a(0x25b),_0x2316fd[_0x2316fd[_0x30c27a(0x21a)]=0x271d]=_0x30c27a(0x21a),_0x2316fd[_0x2316fd[_0x30c27a(0x3c3)]=0x271e]=_0x30c27a(0x3c3),_0x2316fd[_0x2316fd[_0x30c27a(0x2d8)]=0x271f]=_0x30c27a(0x2d8),_0x2316fd[_0x2316fd[_0x30c27a(0x17a)]=0x2720]=_0x30c27a(0x17a),_0x2316fd[_0x2316fd[_0x30c27a(0x2c2)]=0x2af9]=_0x30c27a(0x2c2),_0x2316fd[_0x2316fd[_0x30c27a(0x359)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2316fd[_0x2316fd[_0x30c27a(0x1c6)]=0x2ee2]='INVALID_INVITE_CODE',_0x2316fd[_0x2316fd[_0x30c27a(0x3ca)]=0x2ee3]=_0x30c27a(0x3ca),_0x2316fd[_0x2316fd[_0x30c27a(0x344)]=0x2ee4]=_0x30c27a(0x344),_0x2316fd[_0x2316fd[_0x30c27a(0x229)]=0x2ee5]=_0x30c27a(0x229),_0x2316fd[_0x2316fd[_0x30c27a(0x239)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2316fd[_0x2316fd[_0x30c27a(0x23c)]=0x32ca]=_0x30c27a(0x23c),_0x2316fd[_0x2316fd[_0x30c27a(0x18a)]=0x32cb]=_0x30c27a(0x18a),_0x2316fd[_0x2316fd[_0x30c27a(0x346)]=-0x1]='UNRECOGNIZED',_0x2316fd))(je||{}),ns=Object[_0x30c27a(0x329)],rs=(_0x17e2a4,_0x4d5f10,_0x322355,_0x2765f5)=>{const _0x43a802=_0x30c27a;for(var _0x5327b0=_0x2765f5>0x1?void 0x0:_0x2765f5?ns(_0x4d5f10,_0x322355):_0x4d5f10,_0x2b0d16=_0x17e2a4[_0x43a802(0x2ff)]-0x1,_0x3f75a3;_0x2b0d16>=0x0;_0x2b0d16--)(_0x3f75a3=_0x17e2a4[_0x2b0d16])&&(_0x5327b0=_0x3f75a3(_0x5327b0)||_0x5327b0);return _0x5327b0;},ue=(_0x48061b,_0x5200bc)=>(_0x23732a,_0x11c3af)=>_0x5200bc(_0x23732a,_0x11c3af,_0x48061b);exports[_0x30c27a(0x377)]=class extends a[_0x30c27a(0x27d)]{constructor(_0x547763,_0x40e530,_0x23a603){const _0x3d1bc8=_0x30c27a;super(),this[_0x3d1bc8(0x1ba)]=_0x547763,this['_httpService']=_0x40e530,this[_0x3d1bc8(0x178)]=_0x23a603;}async[_0x30c27a(0x2e2)](_0x38b8d8,_0x1abb7f,_0x3711a2,..._0xcc287b){const _0x4f53ed=_0x30c27a;var _0x57db3b,_0x2f2dfd,_0x23424d,_0x57ac7f;const _0x175691=this[_0x4f53ed(0x1ba)][_0x4f53ed(0x24e)]();if(!_0x175691)throw new Error(_0x4f53ed(0x18d));const _0x21aaf3=((_0x57db3b=this[_0x4f53ed(0x178)]['getConfig'](u[_0x4f53ed(0x2b2)]))!=null?_0x57db3b:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x38b8d8+_0x4f53ed(0x2e4)+_0x1abb7f,_0x3b58be=new URL(window[_0x4f53ed(0x233)][_0x4f53ed(0x373)]),_0x4dcc6d={'scriptId':_0x38b8d8,'runId':(_0x2f2dfd=_0x3b58be[_0x4f53ed(0x1e6)][_0x4f53ed(0x235)](_0x4f53ed(0x376)))!=null?_0x2f2dfd:'','function':_0x1abb7f,'unitId':_0x175691[_0x4f53ed(0x16f)](),'argsOfFunction':JSON[_0x4f53ed(0x1bf)](_0xcc287b),'invokeId':(_0x23424d=_0x3711a2[_0x4f53ed(0x201)])!=null?_0x23424d:'','executionId':(_0x57ac7f=_0x3711a2[_0x4f53ed(0x1f5)])!=null?_0x57ac7f:''};try{const _0x1fd334=await this[_0x4f53ed(0x252)]['post'](_0x21aaf3,{'body':_0x4dcc6d});return _0x1fd334[_0x4f53ed(0x308)]['error']&&_0x1fd334[_0x4f53ed(0x308)][_0x4f53ed(0x243)][_0x4f53ed(0x381)]!==je['OK']?_0x4f53ed(0x2e1):_0x1fd334['body'][_0x4f53ed(0x2c6)];}catch{return _0x4f53ed(0x2e1);}}},exports[_0x30c27a(0x377)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G['HTTPService'])),ue(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports[_0x30c27a(0x17d)]=xe,exports[_0x30c27a(0x1a3)]=Ee,exports[_0x30c27a(0x251)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x30c27a(0x247)]=Be;
|
|
1
|
+
'use strict';const _0x926bd0=_0x18d9;(function(_0x4e25a1,_0x3a473e){const _0x1b52ce=_0x18d9,_0xd94e03=_0x4e25a1();while(!![]){try{const _0x47db42=parseInt(_0x1b52ce(0x2d4))/0x1+-parseInt(_0x1b52ce(0x1c2))/0x2+-parseInt(_0x1b52ce(0x1ff))/0x3+-parseInt(_0x1b52ce(0x270))/0x4+-parseInt(_0x1b52ce(0x23d))/0x5*(parseInt(_0x1b52ce(0x301))/0x6)+parseInt(_0x1b52ce(0x16e))/0x7*(-parseInt(_0x1b52ce(0x10c))/0x8)+parseInt(_0x1b52ce(0x173))/0x9*(parseInt(_0x1b52ce(0xe5))/0xa);if(_0x47db42===_0x3a473e)break;else _0xd94e03['push'](_0xd94e03['shift']());}catch(_0x3de270){_0xd94e03['push'](_0xd94e03['shift']());}}}(_0xdace,0xb836c));var Ve=Object[_0x926bd0(0x2f4)],Xe=(_0x3ac092,_0x3ee587,_0x31d8bc)=>_0x3ee587 in _0x3ac092?Ve(_0x3ac092,_0x3ee587,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31d8bc}):_0x3ac092[_0x3ee587]=_0x31d8bc,h=(_0x8be7f6,_0x15855c,_0x4b03e8)=>Xe(_0x8be7f6,typeof _0x15855c!=_0x926bd0(0x282)?_0x15855c+'':_0x15855c,_0x4b03e8);Object['defineProperty'](exports,Symbol[_0x926bd0(0x203)],{'value':_0x926bd0(0xed)});const u=require(_0x926bd0(0x280)),a=require(_0x926bd0(0x2e5)),p=require('@univerjs/engine-render'),G=require(_0x926bd0(0x17f)),E=require(_0x926bd0(0x11c)),Ge=require(_0x926bd0(0x294)),d=require(_0x926bd0(0x27c)),m=require(_0x926bd0(0x163)),Y=require(_0x926bd0(0x1df)),be=require(_0x926bd0(0x32b)),g=require(_0x926bd0(0x2d2)),$=require(_0x926bd0(0x2f1)),X=require(_0x926bd0(0x1a6)),P=require(_0x926bd0(0x177)),O=require(_0x926bd0(0x369)),D=require(_0x926bd0(0x228)),M=require('react'),Ke=require(_0x926bd0(0x2f5));var qe=Object[_0x926bd0(0x311)],ze=(_0x54fdb1,_0x28f8f7,_0x5e90a6,_0x50ab13)=>{const _0x20c42b=_0x926bd0;for(var _0x2be4e9=_0x50ab13>0x1?void 0x0:_0x50ab13?qe(_0x28f8f7,_0x5e90a6):_0x28f8f7,_0x40c3e4=_0x54fdb1[_0x20c42b(0x2ef)]-0x1,_0xfe1475;_0x40c3e4>=0x0;_0x40c3e4--)(_0xfe1475=_0x54fdb1[_0x40c3e4])&&(_0x2be4e9=_0xfe1475(_0x2be4e9)||_0x2be4e9);return _0x2be4e9;},Oe=(_0x5c37ea,_0x5d289a)=>(_0xd024bc,_0x4aff79)=>_0x5d289a(_0xd024bc,_0x4aff79,_0x5c37ea);let de=class extends a[_0x926bd0(0x2b5)]{constructor(_0x43804f,_0x3d11ec){const _0x3f7827=_0x926bd0;super(),this[_0x3f7827(0x1f1)]=_0x43804f,this[_0x3f7827(0xdd)]=_0x3d11ec,this[_0x3f7827(0x274)]();}['_init'](){const _0xe18079=_0x926bd0,_0x4e9a28=this;this[_0xe18079(0x2a5)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x5aff9c=>{const _0x49aa8f=_0xe18079,_0x45f3da=await _0x4e9a28[_0x49aa8f(0xdd)][_0x49aa8f(0x353)](_0x5aff9c);return _0x45f3da?{'source':_0x45f3da['source'],'imageSourceType':_0x45f3da['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E['IDocClipboardService']),Oe(0x1,Ge['IImageIoService'])],de);const Te=[_0x926bd0(0x351),_0x926bd0(0x15a),_0x926bd0(0x230),_0x926bd0(0x220),_0x926bd0(0x1e0),_0x926bd0(0x1d9)];class me extends a[_0x926bd0(0x256)]{constructor(){const _0x220d8e=_0x926bd0;super(...arguments),h(this,_0x220d8e(0x338),new Map()),h(this,_0x220d8e(0x1a9),0x0);}[_0x926bd0(0x1dd)](_0x24f0e2){const _0x2610ba=_0x926bd0;if(this[_0x2610ba(0x338)]['has'](_0x24f0e2))return this[_0x2610ba(0x338)][_0x2610ba(0x1ed)](_0x24f0e2);const _0x167f02=Te[this[_0x2610ba(0x1a9)]];return this[_0x2610ba(0x1a9)]=(this['_colorIndex']+0x1)%Te[_0x2610ba(0x2ef)],this['_assignedColors'][_0x2610ba(0x2c2)](_0x24f0e2,_0x167f02),_0x167f02;}}function Pe(_0x354e7f){let _0x2c7824='';for(const _0xadff72 of _0x354e7f){const {startOffset:_0x29e400,endOffset:_0x44739e,isActive:_0x85c2ea,rangeType:_0x72711f,segmentId:_0x55678e,segmentPage:_0x46519c}=_0xadff72;_0x2c7824['length']&&(_0x2c7824+=','),_0x2c7824+=_0x29e400+':'+_0x44739e+':'+(_0x85c2ea?'1':'0')+':'+_0x72711f+':'+_0x55678e+':'+_0x46519c;}return _0x2c7824;}function Je(_0x1ea5f8){const _0x2dfcf3=_0x926bd0,_0x3b9e2c=_0x1ea5f8[_0x2dfcf3(0x119)](','),_0x250cf5=[];for(const _0xe85bbd of _0x3b9e2c){const [_0x1b1a58,_0x1ff0da,_0x2e5e25,_0x25b8d0,_0x48056d,_0x380525]=_0xe85bbd[_0x2dfcf3(0x119)](':');_0x250cf5[_0x2dfcf3(0x14c)]({'startOffset':Number(_0x1b1a58),'endOffset':Number(_0x1ff0da),'collapsed':_0x1b1a58===_0x1ff0da,'isActive':_0x2e5e25==='1','rangeType':_0x25b8d0===a[_0x2dfcf3(0x190)][_0x2dfcf3(0xe7)]?a[_0x2dfcf3(0x190)]['TEXT']:a[_0x2dfcf3(0x190)][_0x2dfcf3(0x164)],'segmentId':typeof _0x48056d==_0x2dfcf3(0x2e7)?String(_0x48056d):'','segmentPage':Number(_0x380525!=null?_0x380525:-0x1)});}return _0x250cf5[_0x2dfcf3(0x2c3)](_0x4cb80e=>_0x4cb80e[_0x2dfcf3(0x34c)])||(_0x250cf5[0x0][_0x2dfcf3(0x34c)]=!0x0),_0x250cf5;}class Ce extends a[_0x926bd0(0x2b5)]{constructor(){const _0x144b5a=_0x926bd0;super(...arguments),h(this,_0x144b5a(0x355),new d[(_0x144b5a(0xef))](null)),h(this,_0x144b5a(0x1ce),this['_collabCursorState$'][_0x144b5a(0xf6)]());}[_0x926bd0(0x23b)](_0x1f1cad){const _0x3df6e7=_0x926bd0,{unitID:_0x19b997,memberID:_0xbf5e3,textRanges:_0x40cd95}=_0x1f1cad,_0x48f78e=Pe(_0x40cd95);if(_0x48f78e==='')return;const _0x446f2d={'unitID':_0x19b997,'memberID':_0xbf5e3,'selection':_0x48f78e};this[_0x3df6e7(0x355)][_0x3df6e7(0x33c)](_0x446f2d);}}var Ze=Object[_0x926bd0(0x311)],Qe=(_0x353931,_0x1fd4a1,_0x3d1616,_0x3e367c)=>{for(var _0x46a3dc=_0x3e367c>0x1?void 0x0:_0x3e367c?Ze(_0x1fd4a1,_0x3d1616):_0x1fd4a1,_0x297ca5=_0x353931['length']-0x1,_0x29a101;_0x297ca5>=0x0;_0x297ca5--)(_0x29a101=_0x353931[_0x297ca5])&&(_0x46a3dc=_0x29a101(_0x46a3dc)||_0x46a3dc);return _0x46a3dc;},L=(_0x38b578,_0x22035e)=>(_0x259bfa,_0x44af30)=>_0x22035e(_0x259bfa,_0x44af30,_0x38b578);const et=0x12c,tt=0x64;let Ie=class extends a['RxDisposable']{constructor(_0x165fec,_0x3c8659,_0x4722a5,_0x2c1876,_0x2281c7,_0x1316fe,_0x2e07a3,_0x4213a8,_0x2717d3){const _0xb1817d=_0x926bd0;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0xb1817d(0xf3),new d[(_0xb1817d(0xef))](new Map())),h(this,_0xb1817d(0x27b),this[_0xb1817d(0xf3)][_0xb1817d(0xf6)]()),h(this,'_roomMembers$',new d[(_0xb1817d(0xef))]([])),h(this,_0xb1817d(0x2b8),this[_0xb1817d(0x17e)][_0xb1817d(0x19e)](d[_0xb1817d(0x112)](et))),h(this,'_updateLocalCursor',a[_0xb1817d(0x23a)](_0x84b9fe=>{const _0x5ad40c=_0xb1817d,_0x4125ba={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x5ad40c(0x171)],'memberID':this[_0x5ad40c(0x144)][_0x5ad40c(0x283)](),'selection':Pe(_0x84b9fe)}};this['_session'][_0x5ad40c(0x1af)](_0x4125ba,this[_0x5ad40c(0x171)]);},tt)),(this['unitID']=_0x165fec,this[_0xb1817d(0x144)]=_0x3c8659,this[_0xb1817d(0x215)]=_0x4722a5,this[_0xb1817d(0x185)]=_0x2c1876,this['_memberService']=_0x2281c7,this[_0xb1817d(0x259)]=_0x1316fe,this[_0xb1817d(0xee)]=_0x2e07a3,this[_0xb1817d(0xd1)]=_0x4213a8,this[_0xb1817d(0x17c)]=_0x2717d3);}get[_0x926bd0(0x366)](){const _0x5a80ac=_0x926bd0;return this[_0x5a80ac(0xf3)][_0x5a80ac(0x1b0)]();}get[_0x926bd0(0x2bd)](){const _0x4ec825=_0x926bd0;return this[_0x4ec825(0x17e)]['getValue']();}[_0x926bd0(0x2ba)](){const _0x10efc2=_0x926bd0;super['dispose'](),this[_0x10efc2(0xf3)][_0x10efc2(0x33c)](new Map()),this['_cursorInfo$'][_0x10efc2(0x103)](),this[_0x10efc2(0x17e)][_0x10efc2(0x33c)]([]),this[_0x10efc2(0x17e)]['complete']();}[_0x926bd0(0x2c7)](){const _0x34994=_0x926bd0;this[_0x34994(0x274)]||(this[_0x34994(0x274)]=!0x0,this[_0x34994(0x144)][_0x34994(0x11d)][_0x34994(0x19e)](d[_0x34994(0x1d5)](this[_0x34994(0x23e)]))[_0x34994(0x1e6)](_0x44fe7c=>{const _0x371359=_0x34994;_0x44fe7c===u[_0x371359(0x1e7)][_0x371359(0x1c0)]?this['_toggleOnline']():this[_0x371359(0x149)]();}),this[_0x34994(0x144)][_0x34994(0x1ec)][_0x34994(0x19e)](d[_0x34994(0x1d5)](this[_0x34994(0x23e)]))[_0x34994(0x1e6)](_0x150dea=>{const _0x8beccb=_0x34994,_0x364799=_0x150dea[_0x8beccb(0x2c0)];_0x364799===m[_0x8beccb(0x2e1)]['UPDATE_CURSOR']&&this[_0x8beccb(0x233)](_0x150dea),_0x364799===m[_0x8beccb(0x2e1)][_0x8beccb(0x146)]&&this[_0x8beccb(0x2b3)](_0x150dea);}),this[_0x34994(0x2a5)](this[_0x34994(0x17c)]['onCommandExecuted'](_0x3c39ef=>{const _0x4a9134=_0x34994,_0x135ab3=_0x3c39ef[_0x4a9134(0x131)];_0x135ab3!=null&&this[_0x4a9134(0x2db)]&&_0x3c39ef['id']===Y[_0x4a9134(0x18d)]['id']&&_0x135ab3[_0x4a9134(0x34a)]===this['unitID']&&_0x135ab3[_0x4a9134(0x238)]===!0x1&&_0x135ab3[_0x4a9134(0x2b4)]['length']>0x0&&this[_0x4a9134(0x2ed)](_0x135ab3[_0x4a9134(0x2b4)]);})),this[_0x34994(0x259)][_0x34994(0x1ce)][_0x34994(0x19e)](d[_0x34994(0x1d5)](this[_0x34994(0x23e)]))['subscribe'](_0x266c7c=>{const _0x5490a1=_0x34994;if((_0x266c7c==null?void 0x0:_0x266c7c['unitID'])!==this['unitID'])return;const _0x319575={'eventID':m[_0x5490a1(0x2e1)][_0x5490a1(0x2fa)],'data':_0x266c7c};this[_0x5490a1(0x233)](_0x319575);}),this[_0x34994(0x2a5)](this[_0x34994(0x17c)][_0x34994(0x1fc)](_0x3c8b4f=>{const _0x4d0199=_0x34994;if(_0x3c8b4f[_0x4d0199(0x131)]==null)return;const _0x1fb15f=_0x3c8b4f['params'];if(_0x3c8b4f['id']!==Y[_0x4d0199(0x262)]['id']||_0x1fb15f['unitId']!==this[_0x4d0199(0x171)])return;const _0x5f3e24={'id':_0x4d0199(0x1aa),'params':_0x1fb15f},_0x41d0c3=this[_0x4d0199(0x366)];for(const [_0x517e51,_0x28072b]of _0x41d0c3){const _0x1f6051={'id':_0x4d0199(0x1aa),'params':{'unitId':this[_0x4d0199(0x171)],'actions':null,'textRanges':_0x28072b[_0x4d0199(0x2b4)]}},_0x4d4f47=this[_0x4d0199(0xee)][_0x4d0199(0x342)](_0x5f3e24,_0x1f6051,!0x1);if(m[_0x4d0199(0x2ee)](_0x4d4f47))throw _0x4d4f47['error'];_0x41d0c3['set'](_0x517e51,{..._0x28072b,'ranges':_0x4d4f47['m2Prime'][_0x4d0199(0x131)][_0x4d0199(0x141)]});}queueMicrotask(()=>{const _0x22b737=_0x4d0199;this[_0x22b737(0xf3)][_0x22b737(0x33c)](_0x41d0c3);});})));}[_0x926bd0(0x233)](_0x3d6f62){const _0x196952=_0x926bd0;var _0x566d1b,_0x47ae0c;const {memberID:_0x5b723c,selection:_0x59b48f}=_0x3d6f62[_0x196952(0x179)],_0xfc3345=Je(_0x59b48f),_0x3c7056=(_0x47ae0c=(_0x566d1b=this[_0x196952(0x344)]['getMember'](this[_0x196952(0x171)],_0x5b723c))==null?void 0x0:_0x566d1b[_0x196952(0x1b5)])!=null?_0x47ae0c:'Unknown\x20user',_0xec1eed={'color':this[_0x196952(0x185)][_0x196952(0x1dd)](_0x5b723c),'name':_0x3c7056,'ranges':_0xfc3345},_0x10480c=this[_0x196952(0x366)];_0x10480c[_0x196952(0x2c2)](_0x5b723c,_0xec1eed),this[_0x196952(0xf3)][_0x196952(0x33c)](_0x10480c);}[_0x926bd0(0x2b3)](_0x59e2d3){const _0x264af9=_0x926bd0,{memberID:_0x74ec96}=_0x59e2d3[_0x264af9(0x179)],_0x5a18da=this[_0x264af9(0x366)];_0x5a18da[_0x264af9(0x292)](_0x74ec96),this['_cursorInfo$']['next'](_0x5a18da);}[_0x926bd0(0x328)](){const _0x43d26a=_0x926bd0;var _0x5db3fc;if(this['_online']=!0x0,((_0x5db3fc=this[_0x43d26a(0xd1)][_0x43d26a(0x234)]())==null?void 0x0:_0x5db3fc['getUnitId']())!==this['unitID'])return;const _0x5ef49d=this[_0x43d26a(0x215)]['get'](Y[_0x43d26a(0x2d1)])['getDocRanges']();Array['isArray'](_0x5ef49d)&&_0x5ef49d[_0x43d26a(0x2ef)]>0x0&&this[_0x43d26a(0x2ed)](_0x5ef49d);}[_0x926bd0(0x149)](){const _0x3857a1=_0x926bd0;this[_0x3857a1(0x2db)]=!0x1;}};Ie=Qe([L(0x2,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),L(0x3,a[_0x926bd0(0xec)](me)),L(0x4,a[_0x926bd0(0xec)](u[_0x926bd0(0x2bb)])),L(0x5,a[_0x926bd0(0xec)](Ce)),L(0x6,m[_0x926bd0(0x18e)]),L(0x7,a[_0x926bd0(0x1db)]),L(0x8,a[_0x926bd0(0x130)])],Ie);var st=Object[_0x926bd0(0x311)],it=(_0x170a4c,_0x2e1c5c,_0x14eb90,_0x4e1918)=>{for(var _0x364a08=_0x4e1918>0x1?void 0x0:_0x4e1918?st(_0x2e1c5c,_0x14eb90):_0x2e1c5c,_0xb269fa=_0x170a4c['length']-0x1,_0x34fd5c;_0xb269fa>=0x0;_0xb269fa--)(_0x34fd5c=_0x170a4c[_0xb269fa])&&(_0x364a08=_0x34fd5c(_0x364a08)||_0x364a08);return _0x364a08;},A=(_0xb9c2c,_0x339f0b)=>(_0x59ba20,_0x5004cf)=>_0x339f0b(_0x59ba20,_0x5004cf,_0xb9c2c);const nt=0x12c,rt=0x64,ot=()=>{let _0xdae996=[],_0x33c382=!0x1;return _0x15e733=>{const _0x1842ee=_0x18d9;_0xdae996[_0x1842ee(0x14c)](_0x15e733),_0x33c382||(_0x33c382=!0x0,setTimeout(()=>{_0xdae996['forEach'](_0x193318=>_0x193318()),_0xdae996=[],_0x33c382=!0x1;}));};};let Se=class extends a[_0x926bd0(0x2b5)]{constructor(_0x584507,_0x17cd01,_0x3bc478,_0xe2806f,_0x148e0a,_0x464007,_0x556b4e,_0x385a95){const _0x5075d6=_0x926bd0;super(),h(this,_0x5075d6(0x2db),!0x1),h(this,_0x5075d6(0x274),!0x1),h(this,_0x5075d6(0xf3),new d[(_0x5075d6(0xef))](new Map())),h(this,_0x5075d6(0x27b),this[_0x5075d6(0xf3)][_0x5075d6(0xf6)]()),h(this,_0x5075d6(0x17e),new d[(_0x5075d6(0xef))]([])),h(this,_0x5075d6(0x2b8),this[_0x5075d6(0x17e)][_0x5075d6(0x19e)](d[_0x5075d6(0x112)](nt))),h(this,_0x5075d6(0x2ed),a[_0x5075d6(0x23a)]((_0x29d9e4,_0x2b9d61)=>{const _0x262983=_0x5075d6,_0x3cfc3c={'eventID':m[_0x262983(0x2e1)][_0x262983(0x2fa)],'data':{'unitID':this[_0x262983(0x171)],'memberID':this[_0x262983(0x144)][_0x262983(0x283)](),'selection':be[_0x262983(0x309)](_0x29d9e4,_0x2b9d61[_0x262983(0x27e)])}};this[_0x262983(0x144)][_0x262983(0x1af)](_0x3cfc3c,this[_0x262983(0x171)]);},rt)),(this[_0x5075d6(0x171)]=_0x584507,this[_0x5075d6(0x144)]=_0x17cd01,this[_0x5075d6(0x215)]=_0x3bc478,this[_0x5075d6(0x185)]=_0xe2806f,this['_memberService']=_0x148e0a,this[_0x5075d6(0xd1)]=_0x464007,this[_0x5075d6(0x17c)]=_0x556b4e,this[_0x5075d6(0x2f0)]=_0x385a95);}get[_0x926bd0(0x366)](){const _0x27f4e7=_0x926bd0;return this[_0x27f4e7(0xf3)][_0x27f4e7(0x1b0)]();}get[_0x926bd0(0x2bd)](){const _0x197861=_0x926bd0;return this[_0x197861(0x17e)]['getValue']();}[_0x926bd0(0x2ba)](){const _0x218875=_0x926bd0;super[_0x218875(0x2ba)](),this[_0x218875(0xf3)]['next'](new Map()),this[_0x218875(0xf3)][_0x218875(0x103)](),this[_0x218875(0x17e)][_0x218875(0x33c)]([]),this[_0x218875(0x17e)][_0x218875(0x103)]();}[_0x926bd0(0x2c7)](){const _0x40d471=_0x926bd0;this[_0x40d471(0x274)]||(this['_init']=!0x0,this[_0x40d471(0x144)][_0x40d471(0x11d)][_0x40d471(0x19e)](d[_0x40d471(0x1d5)](this[_0x40d471(0x23e)]))['subscribe'](_0x53fb0f=>{const _0x233dc6=_0x40d471;_0x53fb0f===u[_0x233dc6(0x1e7)]['ONLINE']?this[_0x233dc6(0x328)]():this[_0x233dc6(0x149)]();}),this['_session']['event$'][_0x40d471(0x19e)](d['takeUntil'](this['dispose$']))[_0x40d471(0x1e6)](_0x33a43e=>{const _0x584caf=_0x40d471,_0x3ead15=_0x33a43e['eventID'];_0x3ead15===m[_0x584caf(0x2e1)]['UPDATE_CURSOR']&&this[_0x584caf(0x233)](_0x33a43e),_0x3ead15===m[_0x584caf(0x2e1)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x33a43e);}),this[_0x40d471(0x11e)](),this[_0x40d471(0x2a5)](this['_commandService'][_0x40d471(0x1fc)](_0x8efdbd=>{const _0x3bcbaf=_0x40d471;if(this[_0x3bcbaf(0x2db)]&&_0x8efdbd['id']===g[_0x3bcbaf(0x289)]['id']&&_0x8efdbd[_0x3bcbaf(0x131)]['unitId']===this[_0x3bcbaf(0x171)]){const _0x1179be=_0x8efdbd[_0x3bcbaf(0x131)];this[_0x3bcbaf(0x2ed)](_0x1179be[_0x3bcbaf(0x334)],_0x1179be[_0x3bcbaf(0x2ff)][0x0]);}})));}[_0x926bd0(0x233)](_0x28d45a){const _0x153706=_0x926bd0;var _0x1cfbb7,_0xdf3343;const {memberID:_0x102715,selection:_0x1ab2c5}=_0x28d45a['data'],{sheetName:_0x17fb3b,range:_0x521ffb}=be[_0x153706(0x15e)](_0x1ab2c5),_0x48b579={'name':(_0xdf3343=(_0x1cfbb7=this[_0x153706(0x344)]['getMember'](this[_0x153706(0x171)],_0x102715))==null?void 0x0:_0x1cfbb7[_0x153706(0x1b5)])!=null?_0xdf3343:'Unknown\x20user','range':this[_0x153706(0x1c7)](_0x17fb3b,_0x521ffb),'sheetID':_0x17fb3b,'color':this['_colorAssignService'][_0x153706(0x1dd)](_0x102715),'selection':_0x1ab2c5},_0x599054=this[_0x153706(0x366)];_0x599054['set'](_0x102715,_0x48b579),this[_0x153706(0xf3)][_0x153706(0x33c)](_0x599054);}[_0x926bd0(0x2b3)](_0x397707){const _0x2e9717=_0x926bd0,{memberID:_0x206b1e}=_0x397707[_0x2e9717(0x179)],_0x12de23=this['cursorInfo'];_0x12de23[_0x2e9717(0x292)](_0x206b1e),this[_0x2e9717(0xf3)]['next'](_0x12de23);}[_0x926bd0(0x1c7)](_0x6857c0,_0x5c1bcf){const _0x553fee=_0x926bd0;var _0x3f6913,_0x3b25b3;const _0x37c8db=(_0x3b25b3=(_0x3f6913=this['_univerInstanceService'][_0x553fee(0x140)](this[_0x553fee(0x171)]))==null?void 0x0:_0x3f6913[_0x553fee(0x34d)](_0x6857c0))==null?void 0x0:_0x3b25b3[_0x553fee(0x2bc)]();return(_0x37c8db==null?void 0x0:_0x37c8db[_0x553fee(0x2cc)](_0x46dd85=>a[_0x553fee(0x113)]['contains'](_0x46dd85,_0x5c1bcf)))||_0x5c1bcf;}[_0x926bd0(0x11e)](){const _0x334efe=_0x926bd0,_0x57eee1=new a[(_0x334efe(0x2fd))](),_0xbde9fd=ot(),_0x398086=()=>{const _0x11d6fa=_0x334efe;_0x57eee1['dispose']();const _0x4aa3d5=(_0x3d4518,_0x4dfd61,_0x373fc4,_0x651054)=>{const _0x56a0aa=_0x18d9;let _0x57c978=[];switch(_0x3d4518['id']){case g[_0x56a0aa(0x286)][_0x56a0aa(0x23f)]:{_0x57c978=g[_0x56a0aa(0x2b2)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0x24d)]:{_0x57c978=g[_0x56a0aa(0x168)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)]['InsertColCommandId']:{_0x57c978=g['handleInsertCol'](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)]['InsertRangeMoveDownCommandId']:{_0x57c978=g['handleInsertRangeMoveDown'](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)]['InsertRangeMoveRightCommandId']:{_0x57c978=g[_0x56a0aa(0x1fe)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0xd5)]:{_0x57c978=g['handleInsertRow'](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0x2aa)]:{_0x57c978=g[_0x56a0aa(0x224)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0x33d)]:{_0x57c978=g[_0x56a0aa(0x18a)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0x122)]:{_0x57c978=g[_0x56a0aa(0x22f)](_0x3d4518,_0x651054);break;}}const _0x4ef5e0=g[_0x56a0aa(0x159)](_0x57c978,_0x651054),_0x51d2b5=this['cursorInfo']['get'](_0x4dfd61);if(_0x51d2b5&&_0x4ef5e0){const _0x425df3={..._0x51d2b5,'range':_0x4ef5e0};this['cursorInfo'][_0x56a0aa(0x2c2)](_0x4dfd61,_0x425df3),_0xbde9fd(()=>{const _0x56bf0c=_0x56a0aa,_0x738a39=this['_refRangeService']['registerRefRange'](_0x4ef5e0,_0x97f513=>(_0x738a39[_0x56bf0c(0x2ba)](),_0x4aa3d5(_0x97f513,_0x4dfd61,_0x373fc4,_0x4ef5e0)));_0x57eee1[_0x56bf0c(0xf0)](_0x738a39);});}return{'redos':[],'undos':[]};};this[_0x11d6fa(0x366)][_0x11d6fa(0x35e)]((_0x330151,_0x331aeb)=>{const _0x5ce537=_0x11d6fa,{range:_0x56b9eb,sheetID:_0x3b4a15}=_0x330151,_0xc745a8=this[_0x5ce537(0x2f0)][_0x5ce537(0x123)](_0x56b9eb,_0x32909b=>(_0xc745a8['dispose'](),_0x4aa3d5(_0x32909b,_0x331aeb,_0x3b4a15,_0x56b9eb)));_0x57eee1[_0x5ce537(0xf0)](_0xc745a8);});};this[_0x334efe(0x2a5)](a['toDisposable'](this[_0x334efe(0xf3)][_0x334efe(0x1e6)](()=>{_0x398086();})));}[_0x926bd0(0x328)](){const _0x11b10c=_0x926bd0;var _0x30fead,_0x4c1bc8;if(this[_0x11b10c(0x2db)]=!0x0,((_0x30fead=this[_0x11b10c(0xd1)][_0x11b10c(0x234)]())==null?void 0x0:_0x30fead[_0x11b10c(0x13a)]())!==this[_0x11b10c(0x171)])return;const _0x1bd007=(_0x4c1bc8=this[_0x11b10c(0x215)][_0x11b10c(0x1ed)](g[_0x11b10c(0x308)])[_0x11b10c(0x18b)]())==null?void 0x0:_0x4c1bc8[0x0],_0x4895f3=this[_0x11b10c(0xd1)][_0x11b10c(0x126)](a['UniverInstanceType'][_0x11b10c(0x358)])[_0x11b10c(0x2e2)]();_0x1bd007&&_0x4895f3&&this[_0x11b10c(0x2ed)](_0x4895f3[_0x11b10c(0x20f)](),_0x1bd007);}[_0x926bd0(0x149)](){const _0x392f91=_0x926bd0;this[_0x392f91(0x2db)]=!0x1;}};Se=it([A(0x2,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),A(0x3,a[_0x926bd0(0xec)](me)),A(0x4,a['Inject'](u[_0x926bd0(0x2bb)])),A(0x5,a[_0x926bd0(0x1db)]),A(0x6,a['ICommandService']),A(0x7,a[_0x926bd0(0xec)](g[_0x926bd0(0x22b)]))],Se);var at=Object[_0x926bd0(0x311)],ct=(_0x363797,_0x54d299,_0x4225b7,_0x143b4f)=>{const _0x4c4f00=_0x926bd0;for(var _0x33e50b=_0x143b4f>0x1?void 0x0:_0x143b4f?at(_0x54d299,_0x4225b7):_0x54d299,_0x3268cf=_0x363797[_0x4c4f00(0x2ef)]-0x1,_0xe43493;_0x3268cf>=0x0;_0x3268cf--)(_0xe43493=_0x363797[_0x3268cf])&&(_0x33e50b=_0xe43493(_0x33e50b)||_0x33e50b);return _0x33e50b;},ie=(_0x463fe5,_0x8d18c4)=>(_0x49795d,_0x3e6691)=>_0x8d18c4(_0x49795d,_0x3e6691,_0x463fe5);let x=class extends a['RxDisposable']{constructor(_0x1b3ffa,_0x552dbb,_0x107a7a){const _0x229595=_0x926bd0;super(),h(this,_0x229595(0x139),new Map()),h(this,_0x229595(0x206),new d[(_0x229595(0x2dd))]()),(this[_0x229595(0xd1)]=_0x1b3ffa,this[_0x229595(0x215)]=_0x552dbb,this['_collabSessionService']=_0x107a7a,this[_0x229595(0x274)]());}['dispose'](){const _0x236ab3=_0x926bd0;super[_0x236ab3(0x2ba)](),this['_entityInit$'][_0x236ab3(0x103)](),this[_0x236ab3(0x139)]['forEach'](_0x62d5e6=>_0x62d5e6['dispose']());}[_0x926bd0(0x1a7)](_0x2324bb){const _0x4cd347=_0x926bd0;return this['_entities'][_0x4cd347(0x295)](_0x2324bb)?this[_0x4cd347(0x139)][_0x4cd347(0x1ed)](_0x2324bb)[_0x4cd347(0x27b)]:this['_entityInit$'][_0x4cd347(0x19e)](d['filter'](_0x1d07f1=>_0x1d07f1[_0x4cd347(0x171)]===_0x2324bb),d[_0x4cd347(0x15c)](_0x3f436c=>_0x3f436c[_0x4cd347(0x27b)]));}[_0x926bd0(0x274)](){const _0x6afccf=_0x926bd0;this[_0x6afccf(0xd1)][_0x6afccf(0x340)](a['UniverInstanceType'][_0x6afccf(0x358)])[_0x6afccf(0x19e)](d[_0x6afccf(0x1d5)](this[_0x6afccf(0x23e)]))['subscribe'](async _0x4362c1=>{const _0x9efdd8=_0x6afccf,_0x42164b=_0x4362c1[_0x9efdd8(0x13a)](),_0x415595=await this[_0x9efdd8(0x180)](_0x42164b);this['_entityInit$'][_0x9efdd8(0x33c)](_0x415595),this[_0x9efdd8(0x139)][_0x9efdd8(0x2c2)](_0x42164b,_0x415595);}),this[_0x6afccf(0xd1)]['getTypeOfUnitAdded$'](a[_0x6afccf(0x197)]['UNIVER_DOC'])['pipe'](d[_0x6afccf(0x1d5)](this[_0x6afccf(0x23e)]))['pipe'](d['filter'](_0x4749f9=>!_0x4749f9['getUnitId']()[_0x6afccf(0x264)]('__')))[_0x6afccf(0x1e6)](async _0x58809e=>{const _0x5cd9f0=_0x6afccf,_0x58a486=_0x58809e[_0x5cd9f0(0x13a)](),_0x2014b4=await this['_startDocCollabCursor'](_0x58a486);this['_entityInit$']['next'](_0x2014b4),this[_0x5cd9f0(0x139)][_0x5cd9f0(0x2c2)](_0x58a486,_0x2014b4);}),d['merge'](this[_0x6afccf(0xd1)][_0x6afccf(0x296)](a[_0x6afccf(0x197)][_0x6afccf(0x1f7)]),this[_0x6afccf(0xd1)][_0x6afccf(0x296)](a[_0x6afccf(0x197)][_0x6afccf(0x358)]))['pipe'](d['takeUntil'](this[_0x6afccf(0x23e)]))[_0x6afccf(0x1e6)](_0x195d96=>{const _0x2b98ca=_0x6afccf,_0x216b34=_0x195d96[_0x2b98ca(0x13a)](),_0xe340e9=this[_0x2b98ca(0x139)]['get'](_0x216b34);_0xe340e9&&(_0xe340e9['dispose'](),this[_0x2b98ca(0x139)][_0x2b98ca(0x292)](_0x216b34));});}async[_0x926bd0(0x180)](_0x10d0e4){const _0x454704=_0x926bd0,_0x2e58a3=await this[_0x454704(0x299)]['requireSession'](_0x10d0e4),_0x187f01=this[_0x454704(0x215)][_0x454704(0x136)](Se,_0x10d0e4,_0x2e58a3);return _0x187f01[_0x454704(0x2c7)](),_0x187f01;}async[_0x926bd0(0x188)](_0x3538c7){const _0x331f66=_0x926bd0,_0x132561=await this[_0x331f66(0x299)][_0x331f66(0x269)](_0x3538c7),_0x39387e=this[_0x331f66(0x215)]['createInstance'](Ie,_0x3538c7,_0x132561);return _0x39387e[_0x331f66(0x2c7)](),_0x39387e;}};x=ct([ie(0x0,a[_0x926bd0(0x1db)]),ie(0x1,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),ie(0x2,a[_0x926bd0(0xec)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x47236c,_0xca5a7f){const _0x3adfee=_0x926bd0;let {radius:_0x539902,width:_0x58b210,height:_0x59cb79}=_0xca5a7f;_0x539902=_0x539902!=null?_0x539902:0x0,_0x58b210=_0x58b210!=null?_0x58b210:0x1e,_0x59cb79=_0x59cb79!=null?_0x59cb79:0x1e;let _0x5aa9ad=0x0,_0xacc39b=0x0,_0x2125fd=0x0;_0x5aa9ad=_0xacc39b=_0x2125fd=Math[_0x3adfee(0x361)](_0x539902,_0x58b210/0x2,_0x59cb79/0x2),_0x47236c[_0x3adfee(0x10a)](),_0x47236c['moveTo'](_0x5aa9ad,0x0),_0x47236c[_0x3adfee(0x13d)](_0x58b210-_0xacc39b,0x0),_0x47236c[_0x3adfee(0x32c)](_0x58b210-_0xacc39b,_0xacc39b,_0xacc39b,Math['PI']*0x3/0x2,0x0,!0x1),_0x47236c['lineTo'](_0x58b210,_0x59cb79-_0x2125fd),_0x47236c[_0x3adfee(0x32c)](_0x58b210-_0x2125fd,_0x59cb79-_0x2125fd,_0x2125fd,0x0,Math['PI']/0x2,!0x1),_0x47236c[_0x3adfee(0x13d)](0x0,_0x59cb79),_0x47236c[_0x3adfee(0x13d)](0x0,_0x5aa9ad),_0x47236c[_0x3adfee(0x32c)](_0x5aa9ad,_0x5aa9ad,_0x5aa9ad,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x47236c[_0x3adfee(0x324)](),_0xca5a7f[_0x3adfee(0x1c5)]&&(_0x47236c['save'](),_0x47236c[_0x3adfee(0x26c)]=_0xca5a7f[_0x3adfee(0x1c5)],_0xca5a7f[_0x3adfee(0xea)]===_0x3adfee(0x2e3)?_0x47236c[_0x3adfee(0x1c5)](_0x3adfee(0x2e3)):_0x47236c['fill'](),_0x47236c[_0x3adfee(0x31c)]());}class ee extends p['Shape']{constructor(_0x435923,_0x7bb31f){const _0x4d3aac=_0x926bd0;super(_0x435923,_0x7bb31f),h(this,'color'),h(this,_0x4d3aac(0x29b)),(this[_0x4d3aac(0x248)]=_0x7bb31f==null?void 0x0:_0x7bb31f[_0x4d3aac(0x248)],this['text']=_0x7bb31f==null?void 0x0:_0x7bb31f[_0x4d3aac(0x29b)]);}static['drawWith'](_0x5727a0,_0x193a0a){const _0x5b4e73=_0x926bd0,{text:_0x5ca6af,color:_0x278738}=_0x193a0a;_0x5727a0[_0x5b4e73(0x14e)](),_0x5727a0[_0x5b4e73(0x1bf)]=_0x5b4e73(0x1a2);const _0x22511f=_0x5727a0[_0x5b4e73(0x1f5)](_0x5ca6af)[_0x5b4e73(0x30c)],_0x509635=Math[_0x5b4e73(0x361)](_0x22511f+0x2*ne,Re);_t(_0x5727a0,{'height':K,'radius':0x4,'width':_0x509635,'fill':_0x278738}),_0x5727a0[_0x5b4e73(0x26c)]=_0x5b4e73(0x16b);const _0x2763a7=ne,_0x2b4472=K-lt,_0x2ffd4f=Re-0x2*ne;if(_0x22511f>_0x2ffd4f){let _0x4345a5='',_0x1f0f92=0x0;for(const _0x44cb7e of _0x5ca6af){const _0x4012ed=_0x5727a0[_0x5b4e73(0x1f5)](_0x44cb7e)[_0x5b4e73(0x30c)];if(_0x1f0f92+_0x4012ed<=_0x2ffd4f-_0x5727a0[_0x5b4e73(0x1f5)]('...')[_0x5b4e73(0x30c)])_0x4345a5+=_0x44cb7e,_0x1f0f92+=_0x4012ed;else{_0x4345a5+=_0x5b4e73(0x368);break;}}_0x5727a0[_0x5b4e73(0x33f)](_0x4345a5,_0x2763a7,_0x2b4472);}else _0x5727a0['fillText'](_0x5ca6af,_0x2763a7,_0x2b4472);_0x5727a0[_0x5b4e73(0x31c)]();}[_0x926bd0(0x32d)](_0x55a2e0){const _0x291928=_0x926bd0;ee[_0x291928(0x281)](_0x55a2e0,this);}}const re=_0x926bd0(0x20b),ht=_0x926bd0(0xf1),ut=_0x926bd0(0x32f),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x926bd0(0x184);class De{constructor(_0x28e391,_0x373c09,_0x57e312,_0x47ef71){const _0x510ff5=_0x926bd0;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,_0x510ff5(0x323),null),h(this,_0x510ff5(0x231),null),h(this,_0x510ff5(0x2d7),null),h(this,_0x510ff5(0x155),null),(this[_0x510ff5(0x125)]=_0x28e391,this[_0x510ff5(0x21c)]=_0x373c09,this[_0x510ff5(0x223)]=_0x57e312,this[_0x510ff5(0x169)]=_0x47ef71,this[_0x510ff5(0x1fb)]());}set[_0x926bd0(0x102)](_0x20776e){const _0x1f1562=_0x926bd0;_0x20776e?(this[_0x1f1562(0x231)]&&this[_0x1f1562(0x231)][_0x1f1562(0x127)](),this[_0x1f1562(0x323)]&&this[_0x1f1562(0x323)][_0x1f1562(0x2a8)]()):(this[_0x1f1562(0x231)]&&this[_0x1f1562(0x231)]['show'](),this[_0x1f1562(0x323)]&&this[_0x1f1562(0x323)][_0x1f1562(0x127)]());}[_0x926bd0(0x2ba)](){const _0x357afc=_0x926bd0;for(const _0x5bb9f7 of this['_shapes'])_0x5bb9f7['dispose']();this[_0x357afc(0x323)]&&this[_0x357afc(0x323)][_0x357afc(0x2ba)](),this[_0x357afc(0x231)]&&this[_0x357afc(0x231)][_0x357afc(0x2ba)](),this[_0x357afc(0x15f)]&&this['_anchor']['dispose'](),this[_0x357afc(0x155)]&&this[_0x357afc(0x155)]();}[_0x926bd0(0x1fb)](){const _0x40d8dd=_0x926bd0;var _0x33b45d;const {_docSkeleton:_0x4ca27f,_document:_0x51fb47}=this,{color:_0x218de9,name:_0x3a9c55,ranges:_0x44fb9e}=this[_0x40d8dd(0x125)],_0x351cba=_0x51fb47[_0x40d8dd(0x26e)](),{docsLeft:_0x2c7cab,docsTop:_0x14d213}=_0x351cba,_0x59b338=new E[(_0x40d8dd(0xde))](_0x351cba,_0x4ca27f);for(const {startOffset:_0x123c5d,endOffset:_0xb15b3a,rangeType:_0xc4e631,segmentId:_0x13619f,segmentPage:_0xd81e9c,collapsed:_0x21c038,isActive:_0x5ae1c1}of _0x44fb9e){const _0x53769c=_0x4ca27f[_0x40d8dd(0x277)](_0x123c5d,!0x0,_0x13619f,_0xd81e9c);let _0x2bab49=_0x4ca27f[_0x40d8dd(0x277)](_0xb15b3a,!0x0,_0x13619f,_0xd81e9c);if(_0x2bab49==null&&(_0x2bab49=_0x4ca27f['findNodePositionByCharIndex'](_0xb15b3a-0x1,!0x1,_0x13619f,_0xd81e9c)),_0x5ae1c1){const {contentBoxPointGroup:_0x168036}=_0x59b338[_0x40d8dd(0x1cc)](_0x2bab49,_0x2bab49);if(_0x168036[_0x40d8dd(0x2ef)]===0x0)continue;this['_drawAnchor'](_0x218de9,_0x168036,_0x2c7cab,_0x14d213,_0x3a9c55),this[_0x40d8dd(0x155)]=this[_0x40d8dd(0x297)]();}if(_0x53769c&&_0x2bab49){if(_0xc4e631===a[_0x40d8dd(0x190)]['RECT']){const _0x1adc27=new E['NodePositionConvertToRectRange'](_0x351cba,_0x4ca27f),{pointGroup:_0x21fbac}=(_0x33b45d=_0x1adc27[_0x40d8dd(0x1cc)](_0x53769c,_0x2bab49))!=null?_0x33b45d:{};if(_0x21fbac==null||_0x21fbac[_0x40d8dd(0x2ef)]===0x0)continue;this['_drawRectRange'](_0x218de9,_0x21fbac,_0x2c7cab,_0x14d213);}else{if(!_0x21c038){const {borderBoxPointGroup:_0x3a5798}=_0x59b338[_0x40d8dd(0x1cc)](_0x53769c,_0x2bab49);if(_0x3a5798[_0x40d8dd(0x2ef)]===0x0)continue;this[_0x40d8dd(0x1cd)](_0x218de9,_0x3a5798,_0x2c7cab,_0x14d213);}}}}}['_drawAnchor'](_0x4978f7,_0x2c5a37,_0x2fcbdb,_0x20e03a,_0x8354db){const _0x587ac7=_0x926bd0,_0x305015=this['_getAnchorBounding'](_0x2c5a37),{left:_0x4f2da6,top:_0x91eb09,height:_0x595143}=_0x305015,_0x393582=this[_0x587ac7(0x364)](),_0x15e7b8=It/_0x393582,_0x3c8698=new p[(_0x587ac7(0x19a))](re+a[_0x587ac7(0x2c8)][_0x587ac7(0x34e)](k),{'left':_0x4f2da6+_0x2fcbdb-_0x15e7b8,'top':_0x91eb09+_0x20e03a,'height':_0x595143,'width':dt,'fill':_0x4978f7||p[_0x587ac7(0x158)](a['COLORS'][_0x587ac7(0x135)],0x0),'strokeWidth':_0x15e7b8,'stroke':St,'evented':!0x0});this['_anchor']=_0x3c8698,this[_0x587ac7(0x21c)][_0x587ac7(0x329)](_0x3c8698,E[_0x587ac7(0x24b)]);const _0x689e19=new p[(_0x587ac7(0x19a))](re+a['Tools'][_0x587ac7(0x34e)](k),{'left':_0x4f2da6+_0x2fcbdb-_0x15e7b8,'top':_0x91eb09+_0x20e03a-oe/0x2,'height':oe,'width':oe,'fill':_0x4978f7||p[_0x587ac7(0x158)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x4978f7||p['getColor'](a[_0x587ac7(0x260)][_0x587ac7(0x135)],0x0),'evented':!0x1});this[_0x587ac7(0x231)]=_0x689e19,this[_0x587ac7(0x21c)][_0x587ac7(0x329)](_0x689e19,E[_0x587ac7(0x24b)]);const _0x42a2fb=new ee(re+a[_0x587ac7(0x2c8)]['generateRandomId'](k),{'left':_0x4f2da6+_0x2fcbdb-_0x15e7b8,'top':_0x91eb09+_0x20e03a-K,'text':_0x8354db,'color':_0x4978f7});this[_0x587ac7(0x323)]=_0x42a2fb,this['_scene'][_0x587ac7(0x329)](_0x42a2fb,E['TEXT_RANGE_LAYER_INDEX']),this[_0x587ac7(0x102)]=!0x1;}['_handleHover'](){const _0x31af69=_0x926bd0,_0x365cfc=this[_0x31af69(0x15f)][_0x31af69(0x24f)]['subscribeEvent'](()=>{const _0x415d09=_0x31af69;this[_0x415d09(0x102)]=!0x0;}),_0x2c718=this[_0x31af69(0x15f)][_0x31af69(0x143)][_0x31af69(0x1ea)](()=>{const _0x22fc88=_0x31af69;this[_0x22fc88(0x2d7)]&&clearTimeout(this[_0x22fc88(0x2d7)]),this[_0x22fc88(0x2d7)]=setTimeout(()=>{const _0x3f5fe1=_0x22fc88;this[_0x3f5fe1(0x102)]=!0x1;},0x7d0);});return()=>{const _0x5ac49b=_0x31af69;_0x365cfc[_0x5ac49b(0xd4)](),_0x2c718[_0x5ac49b(0xd4)]();};}[_0x926bd0(0x1cd)](_0x6f00d9,_0x1a1b3f,_0x3e21d7,_0x6d2d8c){const _0x3551c1=_0x926bd0,_0x18f80f=new a[(_0x3551c1(0x1be))](_0x6f00d9)[_0x3551c1(0x218)](0.2)[_0x3551c1(0x108)](),_0x56f4df=new p[(_0x3551c1(0x29c))](ht+a[_0x3551c1(0x2c8)][_0x3551c1(0x34e)](k),{'pointsGroup':_0x1a1b3f,'fill':_0x18f80f||p[_0x3551c1(0x158)](a[_0x3551c1(0x260)][_0x3551c1(0x135)],0.2),'left':_0x3e21d7,'top':_0x6d2d8c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3551c1(0xfd)][_0x3551c1(0x14c)](_0x56f4df),this[_0x3551c1(0x21c)][_0x3551c1(0x329)](_0x56f4df,E[_0x3551c1(0x24b)]);}['_drawRectRange'](_0x51919f,_0x5c3ba5,_0x189cec,_0x1fe45f){const _0x152726=_0x926bd0,_0x54743d=new a[(_0x152726(0x1be))](_0x51919f)[_0x152726(0x218)](0.2)[_0x152726(0x108)](),_0x32971e=new p[(_0x152726(0x29c))](ut+a[_0x152726(0x2c8)][_0x152726(0x34e)](k),{'pointsGroup':_0x5c3ba5,'fill':_0x54743d||p[_0x152726(0x158)](a['COLORS'][_0x152726(0x135)],0.2),'left':_0x189cec,'top':_0x1fe45f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x152726(0x14c)](_0x32971e),this[_0x152726(0x21c)][_0x152726(0x329)](_0x32971e,E['TEXT_RANGE_LAYER_INDEX']);}[_0x926bd0(0xfa)](_0x2d9be3){const _0x448d6e=_0x2d9be3[0x0],_0x223389=_0x448d6e[0x0],_0x5ccebd=_0x448d6e[0x2],{x:_0x15491a,y:_0x5302c9}=_0x223389,{x:_0x57e35a,y:_0x147a4c}=_0x5ccebd;return{'left':_0x15491a,'top':_0x5302c9,'width':_0x57e35a-_0x15491a,'height':_0x147a4c-_0x5302c9};}[_0x926bd0(0x364)](){const _0x223367=_0x926bd0,{scaleX:_0x34f846,scaleY:_0x4ed605}=this['_scene'][_0x223367(0x2e8)]();return Math['max'](_0x34f846,_0x4ed605);}}var ft=Object['getOwnPropertyDescriptor'],vt=(_0x15df08,_0x2af041,_0x19fb85,_0x5c0c1e)=>{const _0x571f80=_0x926bd0;for(var _0xcd8946=_0x5c0c1e>0x1?void 0x0:_0x5c0c1e?ft(_0x2af041,_0x19fb85):_0x2af041,_0x1511fe=_0x15df08[_0x571f80(0x2ef)]-0x1,_0x2e04c0;_0x1511fe>=0x0;_0x1511fe--)(_0x2e04c0=_0x15df08[_0x1511fe])&&(_0xcd8946=_0x2e04c0(_0xcd8946)||_0xcd8946);return _0xcd8946;},W=(_0x36072f,_0x439701)=>(_0x4393d9,_0x19a418)=>_0x439701(_0x4393d9,_0x19a418,_0x36072f);let fe=class extends a[_0x926bd0(0x2b5)]{constructor(_0x49d465,_0x4df030,_0x208bdc,_0x2f89e7,_0x1e97e1){const _0x66cabd=_0x926bd0;super(),h(this,'_cursorShapes',[]),h(this,_0x66cabd(0x2c5),[]),(this[_0x66cabd(0x194)]=_0x49d465,this[_0x66cabd(0x28b)]=_0x4df030,this[_0x66cabd(0x21d)]=_0x208bdc,this[_0x66cabd(0x17c)]=_0x2f89e7,this[_0x66cabd(0x252)]=_0x1e97e1,this['_init']());}[_0x926bd0(0x274)](){const _0x4e1a8b=_0x926bd0,_0x4c1763=this['_context'][_0x4e1a8b(0x34a)],_0x423713=this[_0x4e1a8b(0x28b)];this['disposeWithMe'](d[_0x4e1a8b(0x22c)]([this['_collabCursorController']['getCollabCursors$'](_0x4c1763),this[_0x4e1a8b(0x252)]['currentTheme$']])[_0x4e1a8b(0x19e)]($[_0x4e1a8b(0x306)](([_0x417acd,_0x1a1847])=>({'skeleton':_0x423713[_0x4e1a8b(0x148)](),'cursors':[..._0x417acd['values']()][_0x4e1a8b(0x151)](_0x5754a7=>({..._0x5754a7,'color':this['_themeService'][_0x4e1a8b(0x35a)](_0x5754a7[_0x4e1a8b(0x248)])}))})))[_0x4e1a8b(0x1e6)](_0x4e6122=>{const _0x204df3=_0x4e1a8b;if(this[_0x204df3(0x1d6)](),_0x4e6122){const {skeleton:_0x4cab61,cursors:_0x3d5725}=_0x4e6122;this['_updateCollabCursors'](_0x4cab61,_0x3d5725);}})),this[_0x4e1a8b(0x13b)](),this[_0x4e1a8b(0x288)]();}[_0x926bd0(0x11b)](_0x4caa80,_0x58d9e2){const _0x4ea7ac=_0x926bd0,{scene:_0x3a39ab,mainComponent:_0x4e7d7a}=this[_0x4ea7ac(0x194)],_0x53dce0=_0x58d9e2[_0x4ea7ac(0x306)](_0x3e2df8=>new De(_0x3e2df8,_0x3a39ab,_0x4caa80,_0x4e7d7a));this['_cursorShapes']=_0x53dce0,this[_0x4ea7ac(0x2c5)]=_0x58d9e2;}[_0x926bd0(0x343)](){const _0x48bf1a=_0x926bd0;this[_0x48bf1a(0x1d6)]();const {scene:_0x4d4cc8,mainComponent:_0x53724b}=this[_0x48bf1a(0x194)],_0x8514db=this[_0x48bf1a(0x28b)]['getSkeleton'](),_0x5a4c6d=this['_cursors']['map'](_0x26b7d2=>new De(_0x26b7d2,_0x4d4cc8,_0x8514db,_0x53724b));this[_0x48bf1a(0x365)]=_0x5a4c6d;}['_removeCollabCursors'](){const _0x5cf3f1=_0x926bd0;this['_cursorShapes']['forEach'](_0x5c4457=>_0x5c4457[_0x5cf3f1(0x2ba)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1d014c=_0x926bd0,_0x2db224=[E[_0x1d014c(0xfb)]['id']];this[_0x1d014c(0x2a5)](this['_commandService'][_0x1d014c(0x1fc)](_0x30f8b4=>{const _0x222dec=_0x1d014c;_0x2db224['includes'](_0x30f8b4['id'])&&_0x30f8b4[_0x222dec(0x131)][_0x222dec(0x34a)]===this[_0x222dec(0x194)][_0x222dec(0x34a)]&&this[_0x222dec(0x343)]();}));}[_0x926bd0(0x13b)](){const _0x5c9a39=_0x926bd0;this['disposeWithMe'](a['fromEventSubject'](this['_context'][_0x5c9a39(0x240)][_0x5c9a39(0x319)])[_0x5c9a39(0x19e)]($['filter'](_0x3ecc0f=>_0x3ecc0f[_0x5c9a39(0x2b0)]===p[_0x5c9a39(0xfc)][_0x5c9a39(0x320)]),$[_0x5c9a39(0x2d9)](0x10))['subscribe'](()=>{const _0xcbf461=_0x5c9a39;this[_0xcbf461(0x343)]();}));}};fe=vt([W(0x1,a[_0x926bd0(0xec)](Y[_0x926bd0(0x114)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x926bd0(0x130)]),W(0x4,a[_0x926bd0(0xec)](a[_0x926bd0(0x176)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0xf4e202,_0x345818){const _0x373287=_0x926bd0;super(_0xf4e202,_0x345818),h(this,'_color'),h(this,_0x373287(0x276),!0x1),h(this,_0x373287(0xcf)),h(this,_0x373287(0x154),''),h(this,_0x373287(0x118),_0x373287(0x2ae)),h(this,_0x373287(0x15b)),(_0x345818&&this[_0x373287(0x27a)](_0x345818),this['onPointerEnter$'][_0x373287(0x1ea)](()=>this[_0x373287(0x27a)]({'hovered':!0x0})),this[_0x373287(0x143)][_0x373287(0x1ea)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x97d0ad){const _0x41855d=_0x926bd0;var _0x3c841d,_0x5de048,_0x6500ab,_0x48537b,_0x1c489c,_0x3f3b0a;this[_0x41855d(0x27d)]=(_0x3c841d=_0x97d0ad['color'])!=null?_0x3c841d:this['_color'],this[_0x41855d(0x276)]=(_0x5de048=_0x97d0ad[_0x41855d(0x265)])!=null?_0x5de048:this[_0x41855d(0x276)],this['_range']=(_0x6500ab=_0x97d0ad[_0x41855d(0x27e)])!=null?_0x6500ab:this[_0x41855d(0xcf)],this[_0x41855d(0x154)]=(_0x48537b=_0x97d0ad[_0x41855d(0x1b5)])!=null?_0x48537b:this[_0x41855d(0x154)],this[_0x41855d(0x118)]=(_0x1c489c=_0x97d0ad['labelPosition'])!=null?_0x1c489c:this[_0x41855d(0x118)],this[_0x41855d(0x15b)]=(_0x3f3b0a=_0x97d0ad[_0x41855d(0x13e)])!=null?_0x3f3b0a:this[_0x41855d(0x15b)],this[_0x41855d(0x352)]({'width':_0x97d0ad[_0x41855d(0x30c)],'height':_0x97d0ad[_0x41855d(0x11f)]});}[_0x926bd0(0x2e4)](_0x2513e2){const _0x1f06c2=_0x926bd0,{row:_0x3668d8,column:_0x3c4161}=_0x2513e2;if(_0x3668d8>=this['_range']['startRow']&&_0x3668d8<=this[_0x1f06c2(0xcf)][_0x1f06c2(0x326)]&&_0x3c4161>=this[_0x1f06c2(0xcf)][_0x1f06c2(0xd3)]&&_0x3c4161<=this[_0x1f06c2(0xcf)][_0x1f06c2(0x35b)]){this[_0x1f06c2(0x27a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x926bd0(0x363)](_0x40046e){return!0x1;}[_0x926bd0(0x32d)](_0x1242af){const _0x235d68=_0x926bd0;p[_0x235d68(0x19a)]['drawWith'](_0x1242af,{'width':this[_0x235d68(0x30c)],'height':this['height'],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x235d68(0x15b)]}),this['_hovered']&&(_0x1242af[_0x235d68(0x14e)](),_0x1242af[_0x235d68(0x33a)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x235d68(0x1ad)?0x0:-0x14),ee[_0x235d68(0x281)](_0x1242af,{'text':this['_name'],'color':this[_0x235d68(0x27d)]}),_0x1242af[_0x235d68(0x31c)]());}}var Ct=Object[_0x926bd0(0x311)],pt=(_0x50983e,_0x8438d6,_0x4f29ab,_0x3681dc)=>{const _0x55272e=_0x926bd0;for(var _0x42f01b=_0x3681dc>0x1?void 0x0:_0x3681dc?Ct(_0x8438d6,_0x4f29ab):_0x8438d6,_0x2d27a5=_0x50983e[_0x55272e(0x2ef)]-0x1,_0x313e0b;_0x2d27a5>=0x0;_0x2d27a5--)(_0x313e0b=_0x50983e[_0x2d27a5])&&(_0x42f01b=_0x313e0b(_0x42f01b)||_0x42f01b);return _0x42f01b;},ae=(_0x4a7adb,_0x2b1043)=>(_0x19b7d9,_0x3cf950)=>_0x2b1043(_0x19b7d9,_0x3cf950,_0x4a7adb);const Et=0x1389;let ve=class extends a[_0x926bd0(0x2b5)]{constructor(_0x411f11,_0x2ef48f,_0x1ab3c5,_0x1ad3fb){const _0x35eb1e=_0x926bd0;super(),h(this,'_cursors',new Set()),h(this,_0x35eb1e(0x2f9),null),(this[_0x35eb1e(0x194)]=_0x411f11,this[_0x35eb1e(0xf5)]=_0x2ef48f,this['_collabCursorController']=_0x1ab3c5,this[_0x35eb1e(0x252)]=_0x1ad3fb,this['_init']());}[_0x926bd0(0x274)](){const _0x59a9d1=_0x926bd0;this[_0x59a9d1(0xf5)]['currentSkeleton$'][_0x59a9d1(0x19e)]($[_0x59a9d1(0x1d5)](this[_0x59a9d1(0x23e)]),$[_0x59a9d1(0x15c)](_0x5e1c0b=>{const _0x3845e5=_0x59a9d1;if(_0x5e1c0b){const _0x2a3aff=_0x5e1c0b['sheetId'];return d[_0x3845e5(0x22c)](this[_0x3845e5(0x21d)][_0x3845e5(0x1a7)](this[_0x3845e5(0x194)][_0x3845e5(0x34a)]),this[_0x3845e5(0x252)]['currentTheme$'])[_0x3845e5(0x19e)]($[_0x3845e5(0x306)](([_0x66dd8c,_0x216793])=>{const _0x44ba2d=_0x3845e5,_0x3cd026=new Map();return _0x66dd8c[_0x44ba2d(0x35e)]((_0x4dba19,_0x402d1a)=>{const _0x5c81e9=_0x44ba2d;if(_0x4dba19[_0x5c81e9(0x1b3)]===_0x2a3aff){const _0x120d87={..._0x4dba19};_0x120d87[_0x5c81e9(0x248)]=this[_0x5c81e9(0x252)]['getColorFromTheme'](_0x4dba19['color']),_0x3cd026[_0x5c81e9(0x2c2)](_0x402d1a,_0x120d87);}}),{'skeleton':_0x5e1c0b,'cursors':_0x3cd026};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x59a9d1(0x1e6)](({skeleton:_0x235f73,cursors:_0x35fb72})=>{this['_removeCollabCursors'](),_0x235f73&&this['_updateCollabCursors'](_0x235f73,_0x35fb72);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x623d0c=>{const _0x5a0611=_0x59a9d1;if(_0x623d0c==null)return;const {skeleton:_0x56f5e6}=_0x623d0c,{scene:_0x4ac1ec}=this[_0x5a0611(0x194)];_0x4ac1ec[_0x5a0611(0x1bb)]['subscribeEvent'](a['debounce'](_0x19ca36=>{const _0x30f764=_0x5a0611;var _0x4bea1d,_0x4df14d;const {offsetX:_0x2ce059,offsetY:_0x96aa2f}=_0x19ca36,{x:_0x1491fc,y:_0x170844}=_0x4ac1ec[_0x30f764(0x1d7)](p[_0x30f764(0x193)][_0x30f764(0x14a)]([_0x2ce059,_0x96aa2f])),{scaleX:_0x1620c0,scaleY:_0x33c34d}=_0x4ac1ec[_0x30f764(0x2e8)](),_0xe35074=_0x4ac1ec[_0x30f764(0x2f8)](p[_0x30f764(0x156)]['VIEW_MAIN']),_0x1a3d20=_0x4ac1ec[_0x30f764(0x1b8)](p[_0x30f764(0x193)][_0x30f764(0x14a)]([_0x1491fc,_0x170844]),_0xe35074),_0x165313=_0x56f5e6[_0x30f764(0x191)](_0x2ce059,_0x96aa2f,_0x1620c0,_0x33c34d,_0x1a3d20);((_0x4bea1d=this[_0x30f764(0x2f9)])==null?void 0x0:_0x4bea1d['column'])===_0x165313[_0x30f764(0x192)]&&((_0x4df14d=this[_0x30f764(0x2f9)])==null?void 0x0:_0x4df14d[_0x30f764(0x1ab)])===_0x165313[_0x30f764(0x1ab)]||this[_0x30f764(0x2c5)]['forEach'](_0x8dcd3c=>{_0x8dcd3c['onMouseMove'](_0x165313);});},0x64));});}[_0x926bd0(0x11b)](_0x97b240,_0x56810f){const _0x693c8f=_0x926bd0;var _0xd38124;const _0x45fdb5=(_0xd38124=this[_0x693c8f(0xf5)][_0x693c8f(0x13c)]())==null?void 0x0:_0xd38124['skeleton'];if(!_0x45fdb5)return;const _0x2eb04a=this['_getSheetObject']();if(!_0x2eb04a)return;this['_cursors'][_0x693c8f(0x35e)](_0x3ae648=>{const _0x25a761=_0x693c8f;_0x3ae648[_0x25a761(0xe3)]();});const {scene:_0x58a190}=_0x2eb04a,_0x20254f=bt(Array[_0x693c8f(0x298)](_0x56810f[_0x693c8f(0x357)]()))['map'](_0x147bf8=>{const _0x215b19=_0x693c8f,{color:_0x1a7d3c,range:_0x53c409,name:_0xf669f1,selection:_0x538063,sheetID:_0x1505a3}=_0x147bf8,{startColumn:_0x541256,startRow:_0x3a0bf4,endColumn:_0x3a7583,endRow:_0x5af183}=_0x53c409,_0x417388=X[_0x215b19(0x1b2)](_0x3a0bf4,_0x541256,_0x58a190,_0x45fdb5),_0x190d73=X[_0x215b19(0x1b2)](_0x5af183,_0x3a7583,_0x58a190,_0x45fdb5),{columnHeaderHeightAndMarginTop:_0x53f59c}=_0x45fdb5,{startX:_0x1ca42e,startY:_0x158080}=_0x417388,{endX:_0x325e68,endY:_0x49923c}=_0x190d73,_0x22b24f=_0x325e68-_0x1ca42e,_0x4ce5ca=_0x49923c-_0x158080,_0x4d3d9d={'labelPosition':_0x158080-_0x53f59c>=K?_0x215b19(0x2ae):'bottom','sheetID':_0x1505a3,'range':_0x53c409,'color':_0x1a7d3c,'name':_0xf669f1,'selection':_0x538063,'left':_0x1ca42e,'top':_0x158080,'width':_0x22b24f,'height':_0x4ce5ca,'evented':!0x1,'zIndex':Et};return new we(_0xf669f1,_0x4d3d9d);});_0x58a190[_0x693c8f(0x341)](_0x20254f,gt),this['_cursors']=new Set(_0x20254f);}[_0x926bd0(0x1d6)](){const _0x395ce8=_0x926bd0;var _0x9220c6;(_0x9220c6=this['_cursors'])==null||_0x9220c6[_0x395ce8(0x35e)](_0x27740a=>_0x27740a[_0x395ce8(0x2ba)]());}[_0x926bd0(0x14d)](){const _0x17e15c=_0x926bd0;return X[_0x17e15c(0x332)](this[_0x17e15c(0x194)]['unit'],this[_0x17e15c(0x194)]);}};ve=pt([ae(0x1,a[_0x926bd0(0xec)](X[_0x926bd0(0x201)])),ae(0x2,a[_0x926bd0(0xec)](x)),ae(0x3,a[_0x926bd0(0xec)](a[_0x926bd0(0x176)]))],ve);function bt(_0x2b228a){const _0x243200=_0x926bd0,_0x4d929e=new Map();return _0x2b228a[_0x243200(0x35e)](_0x1bde53=>{const _0x2fbee3=_0x243200;if(_0x4d929e[_0x2fbee3(0x295)](_0x1bde53[_0x2fbee3(0x2c4)])){const _0x1b4780=_0x4d929e[_0x2fbee3(0x1ed)](_0x1bde53[_0x2fbee3(0x2c4)]);_0x1b4780[_0x2fbee3(0x1b5)]+=',\x20'+_0x1bde53['name'];}else _0x4d929e[_0x2fbee3(0x2c2)](_0x1bde53[_0x2fbee3(0x2c4)],_0x1bde53);}),Array[_0x243200(0x298)](_0x4d929e[_0x243200(0x357)]());}var b=function(){const _0x773c7=_0x926bd0;return b=Object[_0x773c7(0x178)]||function(_0x3f28c0){const _0x3799c2=_0x773c7;for(var _0x52e311,_0x33631c=0x1,_0x1e92f3=arguments[_0x3799c2(0x2ef)];_0x33631c<_0x1e92f3;_0x33631c++){_0x52e311=arguments[_0x33631c];for(var _0x3912ab in _0x52e311)Object['prototype'][_0x3799c2(0x315)][_0x3799c2(0x2f6)](_0x52e311,_0x3912ab)&&(_0x3f28c0[_0x3912ab]=_0x52e311[_0x3912ab]);}return _0x3f28c0;},b[_0x773c7(0x300)](this,arguments);},Ot=function(_0x5bbc69,_0x3782a3){const _0x5b5626=_0x926bd0;var _0x169061={};for(var _0x35fa3f in _0x5bbc69)Object[_0x5b5626(0xe9)][_0x5b5626(0x315)][_0x5b5626(0x2f6)](_0x5bbc69,_0x35fa3f)&&_0x3782a3[_0x5b5626(0x275)](_0x35fa3f)<0x0&&(_0x169061[_0x35fa3f]=_0x5bbc69[_0x35fa3f]);if(_0x5bbc69!=null&&typeof Object[_0x5b5626(0x1ba)]==_0x5b5626(0x2a1)){for(var _0x3f410c=0x0,_0x35fa3f=Object[_0x5b5626(0x1ba)](_0x5bbc69);_0x3f410c<_0x35fa3f[_0x5b5626(0x2ef)];_0x3f410c++)_0x3782a3[_0x5b5626(0x275)](_0x35fa3f[_0x3f410c])<0x0&&Object[_0x5b5626(0xe9)][_0x5b5626(0x2e9)][_0x5b5626(0x2f6)](_0x5bbc69,_0x35fa3f[_0x3f410c])&&(_0x169061[_0x35fa3f[_0x3f410c]]=_0x5bbc69[_0x35fa3f[_0x3f410c]]);}return _0x169061;},pe=M[_0x926bd0(0x2af)](function(_0x5e3ede,_0x331f07){const _0x37b024=_0x926bd0;var _0x1baaee=_0x5e3ede[_0x37b024(0x22e)],_0x35b8f7=_0x5e3ede['id'],_0x2a6e7d=_0x5e3ede[_0x37b024(0x29f)],_0x2a932e=_0x5e3ede[_0x37b024(0x2a4)],_0x59f1c3=Ot(_0x5e3ede,[_0x37b024(0x22e),'id','className',_0x37b024(0x2a4)]),_0x4140ff=_0x37b024(0x19d)[_0x37b024(0x1de)](_0x35b8f7,'\x20')['concat'](_0x2a6e7d||'')[_0x37b024(0xf4)](),_0x39335b=M[_0x37b024(0x255)]('_'['concat'](Dt()));return Ae(_0x1baaee,''[_0x37b024(0x1de)](_0x35b8f7),{'defIds':_0x1baaee[_0x37b024(0xe1)],'idSuffix':_0x39335b['current']},b({'ref':_0x331f07,'className':_0x4140ff},_0x59f1c3),_0x2a932e);});function _0xdace(){const _0x333557=['_cachedData','text','RegularPolygon','IRemoteInstanceService','Workbook','className','popstate','function','clearInterval','stringify','extend','disposeWithMe','CONNECTOR_DATA_TOO_LARGE','searchParams','show','entries','MoveRangeCommandId','USER_NOT_INVITED_CODE','INVITE_CODE_HAS_BEEN_UES','_collaborationController','top','forwardRef','type','_saveCache','handleDeleteRangeMoveLeft','_onCursorDelete','ranges','RxDisposable','NOT_FOUND','YUUMI_NO_CUBOID_FOR_QUESTION','roomMembers$','_scheduleSaving','dispose','MemberService','getMergeData','roomMembers','HTTPService','FETCH_MISS','eventID','_scheduleHeartbeat','set','some','selection','_cursors','LICENSE_IMPORT_SIZE_EXCEEDED','init','Tools','0\x200\x2017\x2016','BuiltInUIPart','none','find','RevisionService','mergeOverrideWithDependencies','attrs','INVITE_CODE_ALREADY_BOUND','DocSelectionManagerService','@univerjs/sheets','includes','327509CaqcCI','INVITE_CODE_REQUIRED','_docStateChangeManagerService','_hideTimer','mapTo','throttleTime','setParam','_online','_handleLeaveEvent','Subject','_heartbeatTimer','all','post','CollaborationEvent','getActiveSheet','evenodd','onMouseMove','@univerjs/core','INTERNAL_ERROR','string','getAncestorScale','propertyIsEnumerable','setTimeout','UniverCollaborationClientPlugin','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','_updateLocalCursor','isTransformMutationFailure','length','_refRangeService','rxjs/operators','m1Prime','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','defineProperty','@univerjs/rpc','call','with','getViewport','_lastPointer','UPDATE_CURSOR','APPLY_DUPLICATED','memberID','DisposableCollection','Plugin','selections','apply','28452zoQNlm','runId','addHandlerCallback','fromEvent','_getSessionTicket','map','_send','SheetsSelectionsService','serializeRangeWithSheet','useCallback','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','width','_transformHistoryAndStateStack','loadUnit','getLocalCacheKey','YUUMI_URL_COL_OUT_OF_RANGE','getOwnPropertyDescriptor','_setupBeforeClosingHandler','subunit','_initDependencies','hasOwnProperty','session.connection-failed','distinctUntilChanged','unload','onTransformChange$','undoState','executionId','restore','TOO_MANY_REQUESTS','error','parse','resize','getCollabEntity$','saveTaskMap','_textBubble','closePath','EMAIL_VERIFY_CODE_MISMATCH','endRow','_transformPreviousActiveRange','_toggleOnline','addObject','_localeService','@univerjs/engine-formula','arc','_draw','_uiPartsService','collab-rect-range-','JOIN_ROOM_FAILED','DocIMEInputManagerService','getSheetObject','url(#off-line-icon_clip0_910_343)','subUnitId','reconnect','m2Prime','whenReady','_assignedColors','[RemoteUniscriptService]:\x20no\x20focused\x20unit','transform','_removeClearOtherTimer','next','RemoveColCommandId','IBeforeCloseService','fillText','getTypeOfUnitAdded$','addObjects','transformMutation','_refreshCollabCursors','_memberService','univer-mr-2\x20univer-flex\x20univer-text-xl','LICENSE_MAX_UNITS_EXCEEDED','IConfigService','_updateURLWithCurrentState','_beforeCloseService','unitId','newValue','isActive','getSheetBySheetId','generateRandomId','Optional','getUnhiddenWorksheets','purple.300','transformByState','saveImage','OffLineIcon','_collabCursorState$','WebURLService','values','UNIVER_SHEET','_ensureSubject','getColorFromTheme','endColumn','setInterval','_renderManagerService','forEach','IMessageService','transformIMECache','min','Tooltip','triggerDblclick','_getScale','_cursorShapes','cursorInfo','CommandType','...','@univerjs/ui','_range','WebBrowserSingleActiveUnitService','_univerInstanceService','PENDING','startColumn','unsubscribe','InsertRowCommandId','collaboration.closeRoom','_createSocketURL','_status$','DataLoaderService','LocaleService','clsx','[CollaborationDataLoaderController]','_imageIoService','NodePositionConvertToCursor','_instanceService','CollaborationDataLoaderController','defIds','registerComponent','makeDirty','CollaborationController','650YCHafk','_handleJoinEvent','TEXT','getRenderById','prototype','fillRule','removeParam','Inject','Module','_transformService','BehaviorSubject','add','collab-text-range-','_disabled','_cursorInfo$','trim','_sheetSkeletonManagerService','asObservable','_logService','jsx','Injector','_getAnchorBounding','SetDocZoomRatioOperation','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_shapes','UniverIcon','isArray','INVALID_ARGUMENT','APPLY_PERMISSION_DENIED','_hover','complete','on-line-icon_clip0_910_349','createIdentifier','WebSocketService','MessageType','toRgbString','_initStatusComponent','beginPath','registerBeforeClose','688IkluOK','path','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','DocStateChangeManagerService','div','merge','debounceTime','Rectangle','DocSkeletonManagerService','_docSyncEditingCollabCursorService','AWAITING','session.collaboration-timeout','_labelPosition','split','url(#on-line-icon_clip0_910_349)','_updateCollabCursors','@univerjs/docs-ui','sessionStatus$','_onRefRangeChange','height','_docTransformStateCacheService','body','RemoveRowCommandId','registerRefRange','_config','_cursor','getCurrentUnitForType','hide','NO_OTHER_CLIENTS_EDITING','YUUMI_AI_RUN_FAILED','ILocalCacheService','LICENSE_DISTRO_REJECTED','href','connectInjector','CollaborationUIEventId','off-line-icon_clip0_910_343','ICommandService','params','_getSaveTimeout','_configService','code','black','createInstance','url(#$1','collaboration.single-unit.warning','_entities','getUnitId','_initResize','getCurrent','lineTo','backgroundColor','_updateSubUnitFromURLParams','getUniverSheetInstance','textRanges','EMAIL_HAS_BEEN_BOUND','onPointerLeave$','_session','executeCommand','USERS_LEAVE','pushState','getSkeleton','_toggleOffline','FromArray','storage','push','_getSheetObject','save','toString','UNRECOGNIZED','flatMap','session.will-retry','YUUMI_SUBSCRIPTION_NOT_FOUND','_name','_eventUnsubscribe','SHEET_VIEWPORT_KEY','ALREADY_EXISTS','getColor','runRefRangeMutations','jiqing.500','_backgroundColor','switchMap','touchDependencies','deserializeRangeWithSheet','_anchor','_id','_notificationService','location','@univerjs-pro/collaboration','RECT','result','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','M0\x200H16V16H0z','handleDeleteRangeMoveUp','_document','UnitStatus','#FFF','createElement','runOnServer','117509HHXFZz','LICENSE_EXPORT_SIZE_EXCEEDED','entityInit$','unitID','loadOfflineData','766125ruGhTf','DependentOn','transformStateCache','ThemeService','react/jsx-runtime','assign','data','LOCAL_CACHE_INTERVAL_KEY','pluginName','_commandService','_docTransformSelectionsService','_roomMembers$','@univerjs/network','_startSheetCollabCursor','getUndoRedoMutationParamsCache','CollaborationSessionService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','rgba(255,\x20255,\x20255,\x200.01)','_colorAssignService','OTHER_CLIENT_EDITING','_docTransformIMECacheService','_startDocCollabCursor','collaboration-client.offline-data-not-saved','handleIRemoveCol','getCurrentSelections','setStateCache','SetTextSelectionsOperation','ITransformService','_unitOnClients','DOC_RANGE_TYPE','getCellPositionByOffset','column','Vector2','_context','APPLY_NON_SEQUENTIAL_REVISION','_doCreateSocket','UniverInstanceType','SNAPSHOT_HAS_BEEN_REMOVED','svg','Rect','_registerDependencies','displayName','univerjs-icon\x20univerjs-icon-','pipe','SOCKET_FAILED_RETRY','addEventListener','_revisionService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_clearOtherTimers','getStateCache','translate(.97)','@univerjs/sheets-ui','getCollabCursors$','IUIPartsService','_colorIndex','doc.mutation.rich-text-editing','row','PY_RUNTIME_SCRIPT_ERROR','bottom','white','send','getValue','SUBMIT_CHANGESET_TIMEOUT','getCoordByCell','sheetID','OnLineIcon','name','AWAITING_WITH_PENDING','status$','getVpScrollXYInfoByPosToVp','YUUMI_ASYNCIO_CANCELLED','getOwnPropertySymbols','onPointerMove$','off-line-icon','CHANGESET_REVISION_CONFILICT','ColorKit','font','ONLINE','YUUMI_RATE_OVER_LIMIT','1789310xkuvoW','_selfUnitIDs','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','fill','CONFLICT','_getMergeRange','PERMISSION_DENIED','1em','history','HEADER_MENU','getRangePointData','_drawTextRange','collabCursorState$','mutations','INVALID_INVITE_CODE','LOGIN_FAILED','NOT_COLLAB','idSuffix','substring','takeUntil','_removeCollabCursors','getRelativeToViewportCoord','size','yellow.400','clipPath','IUniverInstanceService','collabStatus.conflict','assignAColorForMemberID','concat','@univerjs/docs','blue.400','transformMutationsWithChangeset','jsxs','ISocketService','invokeId','defs','subscribe','SessionStatus','urlChange$','permission.content','subscribeEvent','RemoteUniscriptService','event$','get','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','mask','setItem','_docClipboardService','http://www.w3.org/2000/svg','then','transformSelections','measureText','currentColor','UNIVER_DOC','_registerRenderDependencies','collab-client.tooltip.reconnect','OTHER_CLIENTS_EDITING','_render','onCommandExecuted','getDocRanges','handleInsertRangeMoveRight','1257801KhVfpz','children','SheetSkeletonManagerService','redoState','toStringTag','SNAPSHOT_INVALID_SNAPSHOT','shareReplay','_entityInit$','onRendered','colorChannel1','OFFLINE','0\x200\x2016\x2016','collab-text-anchor-','getCurrentRevOfUnit','Error','_initEntityListener','getSheetId','clearTimeout','ENSURE_SNAPSHOT_EXECUTION','CollaborationUIEventService','APPLY_REJECT','collabStatus.offline','_injector','_httpService','_urlService','setAlpha','activeSheet$','SOCKET_FAILED','deepClone','_scene','_collabCursorController','round','tag','red.300','ILocalStorageService','WECHAT_HAS_BEEN_BOUND','_docSkeleton','handleMoveRange','_localCacheService','_scheduleClearOtherTimer','UNDEFINED','@univerjs/design','unshift','collabStatus.syncing','RefRangeService','combineLatest','transformRemoteChangeset','icon','handleIRemoveRow','green.600','_anchorDot','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_onCursorUpdate','getFocusedUnit','ISnapshotServerService','_handleHeartbeatEvent','ACTIVE_UNIT_EVENT_CHANNEL','isEditing','_collaborationUIEventService','debounce','syncEditingCollabCursor','Warning','1465NORxhh','dispose$','DeleteRangeMoveLeftCommandId','engine','registerRenderModule','YUUMI_TABLE_NOT_FOUND_IN_UNIT','debug','collabStatus.fetchMiss','_initStatusListener','replaceDocRanges','use','color','xlink:href','_saveTaskMap','TEXT_RANGE_LAYER_INDEX','_dataLoaderService','DeleteRangeMoveUpCommandId','MOBILE_VERIFY_CODE_MISMATCH','onPointerEnter$','YUUMI_UNABLE_LOAD_URL','exhaustSavingTask','_themeService','Failed','_unitStatus','useRef','Disposable','SYNCED','YUUMI_ALL_TABLES_IS_INVALID','_syncEditingCollabCursorService','replace','enableLocalCache','COMPLETION_FINISHED','APPLY_REVISION_CONFILICT','collabStatus.synced','SheetCollabCursorShape','COLORS','CollaborationStatusDisplay','RichTextEditingMutation','editingUnit','startsWith','hovered','_localStorageService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CollaborationStatus','requireSession','UniverCollaborationClientUIPlugin','onLocalMutation','fillStyle','_initEvent','getOffsetConfig','origin','3836336ahEAfH','permission.title','YUUMI_CONNECTOR_URL_NOT_FOUND','onStarting','_init','indexOf','_hovered','findNodePositionByCharIndex','DesktopCollaborationStatusDisplayController','SetWorksheetActivateCommand','setShapeProps','cursorInfo$','rxjs','_color','range','ILogService','@univerjs-pro/collaboration-client','drawWith','symbol','getMemberID','getParam','replaceState','EffectRefRangId','getConfig','_initCommandExecutedListener','SetSelectionsOperation','MUTATION','_docSkeletonManagerService','_messageService','_handleEvent','setActiveRange','MOBILE_HAS_BEEN_BOUND','/run/','univer-flex\x20univer-items-center','delete','setConfig','@univerjs/drawing','has','getTypeOfUnitDisposed$','_handleHover','from','_collabSessionService'];_0xdace=function(){return _0x333557;};return _0xdace();}function Ae(_0x130a93,_0x137997,_0x2a49ae,_0x2e8160,_0x4525c4){const _0x16f9c0=_0x926bd0;return M['createElement'](_0x130a93[_0x16f9c0(0x21f)],b(b({'key':_0x137997},Tt(_0x130a93,_0x2a49ae,_0x4525c4)),_0x2e8160),(Rt(_0x130a93,_0x2a49ae)['children']||[])[_0x16f9c0(0x306)](function(_0x44e399,_0xb3162){const _0x20ad7c=_0x16f9c0;return Ae(_0x44e399,''[_0x20ad7c(0x1de)](_0x137997,'-')[_0x20ad7c(0x1de)](_0x130a93[_0x20ad7c(0x21f)],'-')[_0x20ad7c(0x1de)](_0xb3162),_0x2a49ae,void 0x0,_0x4525c4);}));}function Tt(_0x1f2b1c,_0x80e018,_0xfe6156){const _0x53fdd7=_0x926bd0;var _0xb82e=b({},_0x1f2b1c[_0x53fdd7(0x2cf)]);_0xfe6156!=null&&_0xfe6156[_0x53fdd7(0x208)]&&_0xb82e[_0x53fdd7(0x1c5)]===_0x53fdd7(0x208)&&(_0xb82e[_0x53fdd7(0x1c5)]=_0xfe6156[_0x53fdd7(0x208)]),_0x1f2b1c['tag']===_0x53fdd7(0x1ef)&&_0xb82e['id']&&(_0xb82e['id']=_0xb82e['id']+_0x80e018[_0x53fdd7(0x1d3)]),Object[_0x53fdd7(0x2a9)](_0xb82e)[_0x53fdd7(0x35e)](function(_0x3bd67a){const _0x32f697=_0x53fdd7;var _0x36dbe4=_0x3bd67a[0x0],_0x395b16=_0x3bd67a[0x1];_0x36dbe4===_0x32f697(0x1ef)&&typeof _0x395b16==_0x32f697(0x2e7)&&(_0xb82e[_0x36dbe4]=_0x395b16[_0x32f697(0x25a)](/url\(#(.*)\)/,_0x32f697(0x137)[_0x32f697(0x1de)](_0x80e018[_0x32f697(0x1d3)],')')));});var _0x516689=_0x80e018['defIds'];return!_0x516689||_0x516689['length']===0x0||(_0x1f2b1c[_0x53fdd7(0x21f)]===_0x53fdd7(0x247)&&_0xb82e[_0x53fdd7(0x249)]&&(_0xb82e['xlink:href']=_0xb82e[_0x53fdd7(0x249)]+_0x80e018[_0x53fdd7(0x1d3)]),Object[_0x53fdd7(0x2a9)](_0xb82e)[_0x53fdd7(0x35e)](function(_0x5400f0){const _0x11b3bd=_0x53fdd7;var _0x371628=_0x5400f0[0x0],_0x1bc6c7=_0x5400f0[0x1];typeof _0x1bc6c7==_0x11b3bd(0x2e7)&&(_0xb82e[_0x371628]=_0x1bc6c7[_0x11b3bd(0x25a)](/url\(#(.*)\)/,_0x11b3bd(0x137)['concat'](_0x80e018[_0x11b3bd(0x1d3)],')')));})),_0xb82e;}function Rt(_0x272e8f,_0x4dfce5){const _0x144328=_0x926bd0;var _0x4cd418,_0x141735=_0x4dfce5[_0x144328(0xe1)];return!_0x141735||_0x141735[_0x144328(0x2ef)]===0x0?_0x272e8f:_0x272e8f['tag']==='defs'&&(!((_0x4cd418=_0x272e8f[_0x144328(0x200)])===null||_0x4cd418===void 0x0)&&_0x4cd418['length'])?b(b({},_0x272e8f),{'children':_0x272e8f[_0x144328(0x200)][_0x144328(0x306)](function(_0x40003b){const _0x3d2827=_0x144328;return typeof _0x40003b['attrs']['id']==_0x3d2827(0x2e7)&&_0x141735&&_0x141735[_0x3d2827(0x2d3)](_0x40003b[_0x3d2827(0x2cf)]['id'])?b(b({},_0x40003b),{'attrs':b(b({},_0x40003b[_0x3d2827(0x2cf)]),{'id':_0x40003b[_0x3d2827(0x2cf)]['id']+_0x4dfce5[_0x3d2827(0x1d3)]})}):_0x40003b;})}):_0x272e8f;}function Dt(){const _0x5809b2=_0x926bd0;return Math['random']()[_0x5809b2(0x14f)](0x24)[_0x5809b2(0x1d4)](0x2,0x8);}pe[_0x926bd0(0x19c)]=_0x926bd0(0xfe);var Ut={'tag':_0x926bd0(0x199),'attrs':{'xmlns':_0x926bd0(0x1f2),'fill':_0x926bd0(0x2cb),'viewBox':_0x926bd0(0x20a),'width':_0x926bd0(0x1c9),'height':_0x926bd0(0x1c9)},'children':[{'tag':'g','attrs':{'clipPath':_0x926bd0(0x333)},'children':[{'tag':_0x926bd0(0x10d),'attrs':{'stroke':_0x926bd0(0x1f6),'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':_0x926bd0(0x21e),'strokeWidth':1.2}}]},{'tag':_0x926bd0(0x1e5),'attrs':{},'children':[{'tag':_0x926bd0(0x1da),'attrs':{'id':_0x926bd0(0x12f)},'children':[{'tag':_0x926bd0(0x10d),'attrs':{'fill':_0x926bd0(0x1ae),'d':_0x926bd0(0x167)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M[_0x926bd0(0x2af)](function(_0x358b5b,_0x56738f){const _0x5a6848=_0x926bd0;return M[_0x5a6848(0x16c)](pe,Object[_0x5a6848(0x178)]({},_0x358b5b,{'id':_0x5a6848(0x1bc),'ref':_0x56738f,'icon':Ut}));});ye[_0x926bd0(0x19c)]=_0x926bd0(0x354);var Nt={'tag':_0x926bd0(0x199),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x926bd0(0x2c9),'width':_0x926bd0(0x1c9),'height':_0x926bd0(0x1c9)},'children':[{'tag':'g','attrs':{'clipPath':_0x926bd0(0x11a)},'children':[{'tag':_0x926bd0(0x10d),'attrs':{'stroke':'currentColor','d':_0x926bd0(0x2ec),'strokeLinecap':_0x926bd0(0x21e),'strokeLinejoin':_0x926bd0(0x21e),'strokeWidth':1.2}}]},{'tag':_0x926bd0(0x1e5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x926bd0(0x104)},'children':[{'tag':_0x926bd0(0x10d),'attrs':{'fill':_0x926bd0(0x1ae),'d':_0x926bd0(0x167),'transform':_0x926bd0(0x1a5)}}]}]}],'defIds':[_0x926bd0(0x104)]},$e=M['forwardRef'](function(_0x247161,_0x2dbd71){const _0x3b58cb=_0x926bd0;return M[_0x3b58cb(0x16c)](pe,Object[_0x3b58cb(0x178)]({},_0x247161,{'id':'on-line-icon','ref':_0x2dbd71,'icon':Nt}));});$e['displayName']=_0x926bd0(0x1b4);function Mt(_0x2e76ab){const _0x4a098b=_0x926bd0;switch(_0x2e76ab){case u[_0x4a098b(0x268)][_0x4a098b(0x209)]:return _0x4a098b(0x214);case u[_0x4a098b(0x268)][_0x4a098b(0x1c6)]:return _0x4a098b(0x1dc);case u[_0x4a098b(0x268)][_0x4a098b(0x2bf)]:return _0x4a098b(0x244);case u[_0x4a098b(0x268)][_0x4a098b(0x1d2)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x4a098b(0x116)]:case u['CollaborationStatus'][_0x4a098b(0x1b6)]:return _0x4a098b(0x22a);case u[_0x4a098b(0x268)][_0x4a098b(0x257)]:case u[_0x4a098b(0x268)][_0x4a098b(0xd2)]:return _0x4a098b(0x25e);}}function xe(_0x2a7d5c){const _0x43247c=_0x926bd0,{status$:_0x395822}=_0x2a7d5c,_0xe1a000=O['useObservable'](_0x395822,u[_0x43247c(0x268)]['NOT_COLLAB']),_0x391c2a=O['useDependency'](a[_0x43247c(0xda)]),_0x2c87e8=O['useDependency'](u[_0x43247c(0x182)]),_0x1bb62f=_0xe1a000!==u[_0x43247c(0x268)][_0x43247c(0x209)],_0xd5f60d=_0x391c2a['t'](Mt(_0xe1a000)),_0x5cc9dd=_0x1bb62f?P['jsx']($e,{}):P['jsx'](ye,{}),_0x35d49a=M[_0x43247c(0x30a)](()=>{const _0x55d3f1=_0x43247c;_0x1bb62f||_0x2c87e8[_0x55d3f1(0x335)]();},[_0x1bb62f,_0x2c87e8]);function _0x502cc3(){const _0x1f2406=_0x43247c;return P[_0x1f2406(0x1e2)](_0x1f2406(0x110),{'className':_0x1f2406(0x291),'onClick':_0x35d49a,'children':[P[_0x1f2406(0xf8)](_0x1f2406(0x110),{'className':D[_0x1f2406(0xdb)](_0x1f2406(0x345),{'univer-text-green-500':_0x1bb62f,'univer-text-red-500':!_0x1bb62f}),'children':_0x5cc9dd}),P[_0x1f2406(0xf8)](_0x1f2406(0x110),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xd5f60d})]});}return _0x1bb62f?_0x502cc3():P[_0x43247c(0xf8)](D[_0x43247c(0x362)],{'title':_0x391c2a['t'](_0x43247c(0x1f9)),'children':_0x502cc3()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x548620,_0x422e07,_0x48f5bf,_0x3152f4)=>{const _0x33d057=_0x926bd0;for(var _0x3b2356=_0x3152f4>0x1?void 0x0:_0x3152f4?Lt(_0x422e07,_0x48f5bf):_0x422e07,_0x39dae7=_0x548620[_0x33d057(0x2ef)]-0x1,_0x1b13bf;_0x39dae7>=0x0;_0x39dae7--)(_0x1b13bf=_0x548620[_0x39dae7])&&(_0x3b2356=_0x1b13bf(_0x3b2356)||_0x3b2356);return _0x3b2356;},V=(_0x182daa,_0x29e305)=>(_0x416870,_0x35fb12)=>_0x29e305(_0x416870,_0x35fb12,_0x182daa);exports[_0x926bd0(0x278)]=class extends a['Disposable']{constructor(_0x299c3e,_0x1ff843,_0x2994e0,_0x4527a3){const _0x4fd763=_0x926bd0;super(),h(this,_0x4fd763(0xd8),new d[(_0x4fd763(0xef))](u[_0x4fd763(0x268)]['NOT_COLLAB'])),(this[_0x4fd763(0xd1)]=_0x299c3e,this[_0x4fd763(0x215)]=_0x1ff843,this[_0x4fd763(0x2ad)]=_0x2994e0,this[_0x4fd763(0x32e)]=_0x4527a3,this[_0x4fd763(0x109)](),this[_0x4fd763(0x245)]());}[_0x926bd0(0x245)](){const _0x10c643=_0x926bd0;this[_0x10c643(0x2a5)](this['_univerInstanceService']['focused$'][_0x10c643(0x19e)](d[_0x10c643(0x15c)](()=>{const _0x3fb5de=_0x10c643,_0x5c9795=this[_0x3fb5de(0xd1)][_0x3fb5de(0x234)]();return _0x5c9795?this[_0x3fb5de(0x2ad)][_0x3fb5de(0x321)](_0x5c9795['getUnitId']()):d['of'](null);}),d[_0x10c643(0x15c)](_0x4af4e7=>_0x4af4e7?_0x4af4e7[_0x10c643(0x1b7)]:d['of'](u[_0x10c643(0x268)][_0x10c643(0x1d2)])))[_0x10c643(0x1e6)](_0x51df50=>{this['_status$']['next'](_0x51df50);}));}[_0x926bd0(0x109)](){const _0x211d9b=_0x926bd0;this[_0x211d9b(0x2a5)](this[_0x211d9b(0x32e)][_0x211d9b(0xe2)](O[_0x211d9b(0x2ca)][_0x211d9b(0x1cb)],()=>O[_0x211d9b(0x12d)](wt({'status$':this['_status$'][_0x211d9b(0xf6)]()}),this['_injector'])));}},exports[_0x926bd0(0x278)]=Pt([V(0x0,a[_0x926bd0(0x1db)]),V(0x1,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),V(0x2,a[_0x926bd0(0xec)](u[_0x926bd0(0xe4)])),V(0x3,O[_0x926bd0(0x1a8)])],exports[_0x926bd0(0x278)]);function _0x18d9(_0x355123,_0x59e754){const _0xdacee6=_0xdace();return _0x18d9=function(_0x18d95e,_0x8aada1){_0x18d95e=_0x18d95e-0xcf;let _0x14bea2=_0xdacee6[_0x18d95e];return _0x14bea2;},_0x18d9(_0x355123,_0x59e754);}function wt(_0x3d4585){const {status$:_0x425d77}=_0x3d4585;return function(){const _0x9769bb=_0x18d9;return P[_0x9769bb(0xf8)](xe,{'status$':_0x425d77});};}var At=Object[_0x926bd0(0x311)],yt=(_0xeedf95,_0x17ea25,_0xae9d38,_0x410fb3)=>{const _0x1694fb=_0x926bd0;for(var _0x218b51=_0x410fb3>0x1?void 0x0:_0x410fb3?At(_0x17ea25,_0xae9d38):_0x17ea25,_0x148c3e=_0xeedf95[_0x1694fb(0x2ef)]-0x1,_0x5d3540;_0x148c3e>=0x0;_0x148c3e--)(_0x5d3540=_0xeedf95[_0x148c3e])&&(_0x218b51=_0x5d3540(_0x218b51)||_0x218b51);return _0x218b51;},y=(_0x6f13c0,_0x423203)=>(_0x34a525,_0x2a7b26)=>_0x423203(_0x34a525,_0x2a7b26,_0x6f13c0);let q=class extends a[_0x926bd0(0x256)]{constructor(_0x165213,_0x2c241c,_0x583974,_0x3bc727,_0xa56b0,_0x182534){const _0x1572af=_0x926bd0;super(),this['_beforeCloseService']=_0x165213,this['_localCacheService']=_0x2c241c,this[_0x1572af(0x239)]=_0x583974,this[_0x1572af(0x28c)]=_0x3bc727,this[_0x1572af(0x161)]=_0xa56b0,this[_0x1572af(0x32a)]=_0x182534,this['_setupBeforeClosingHandler'](),this[_0x1572af(0x26d)]();}[_0x926bd0(0x312)](){const _0x229330=_0x926bd0;this['disposeWithMe'](this[_0x229330(0x349)][_0x229330(0x10b)](()=>{const _0x3e4099=_0x229330;if(this[_0x3e4099(0x225)]['saveTaskMap'][_0x3e4099(0x1d8)])return this[_0x3e4099(0x32a)]['t'](_0x3e4099(0x189));}));}[_0x926bd0(0x26d)](){const _0x4135e6=_0x926bd0;this[_0x4135e6(0x2a5)](this[_0x4135e6(0x239)]['event$'][_0x4135e6(0x1e6)](_0x59ecaa=>{const _0x20569d=_0x4135e6;_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x186)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)][_0x20569d(0x23c)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0x138))}),_0x59ecaa['id']===u[_0x20569d(0x12e)]['CLOSE_ROOM']&&this[_0x20569d(0x28c)]['show']({'type':D[_0x20569d(0x107)]['Warning'],'content':this['_localeService']['t'](_0x20569d(0xd6))}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x1c8)]&&this['_notificationService'][_0x20569d(0x2a8)]({'title':this[_0x20569d(0x32a)]['t'](_0x20569d(0x271)),'content':this['_localeService']['t'](_0x20569d(0x1e9)),'type':_0x20569d(0x31e),'duration':0x0}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x1c6)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)][_0x20569d(0x20d)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0xd6))+'('+_0x59ecaa[_0x20569d(0x179)]+')'}),_0x59ecaa['id']===u['CollaborationUIEventId'][_0x20569d(0x330)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)]['Warning'],'content':this[_0x20569d(0x32a)]['t'](_0x59ecaa[_0x20569d(0x179)]||'')}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x19f)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D['MessageType'][_0x20569d(0x23c)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0x152))}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x21a)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)][_0x20569d(0x20d)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0x316))}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x1b1)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)][_0x20569d(0x20d)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0x117))});}));}};q=yt([y(0x0,O[_0x926bd0(0x33e)]),y(0x1,u[_0x926bd0(0x12a)]),y(0x2,a['Inject'](u[_0x926bd0(0x212)])),y(0x3,O[_0x926bd0(0x35f)]),y(0x4,O['INotificationService']),y(0x5,a[_0x926bd0(0xec)](a[_0x926bd0(0xda)]))],q);const $t='collaboration-client-ui.config',Ue={},Ee=a[_0x926bd0(0x105)]('uni.network.url-service');var xt=Object[_0x926bd0(0x311)],Bt=(_0x3b4b80,_0x4e7b27,_0x5659b3,_0x3c61cd)=>{const _0x27bab0=_0x926bd0;for(var _0x2f78d8=_0x3c61cd>0x1?void 0x0:_0x3c61cd?xt(_0x4e7b27,_0x5659b3):_0x4e7b27,_0x108840=_0x3b4b80[_0x27bab0(0x2ef)]-0x1,_0x27f541;_0x108840>=0x0;_0x108840--)(_0x27f541=_0x3b4b80[_0x108840])&&(_0x2f78d8=_0x27f541(_0x2f78d8)||_0x2f78d8);return _0x2f78d8;},F=(_0x5b67ca,_0x307a44)=>(_0x599328,_0x354f51)=>_0x307a44(_0x599328,_0x354f51,_0x5b67ca);exports['CollaborationDataLoaderController']=class extends a[_0x926bd0(0x2b5)]{constructor(_0x11b8af,_0x74097,_0x411dc2,_0x37654a,_0x576bd3){const _0x251b2f=_0x926bd0;super(),this[_0x251b2f(0x217)]=_0x11b8af,this['_logService']=_0x74097,this[_0x251b2f(0x17c)]=_0x411dc2,this[_0x251b2f(0x24c)]=_0x37654a,_0x576bd3?_0x576bd3==null||_0x576bd3[_0x251b2f(0x337)]()[_0x251b2f(0x1f3)](()=>this[_0x251b2f(0x274)]()):(this[_0x251b2f(0xf7)][_0x251b2f(0x243)](_0x251b2f(0xdc),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x926bd0(0x274)](){const _0x13551e=_0x926bd0,_0x3bbde8=this[_0x13551e(0x217)]['getParam']('unit'),_0x30ebdc=this[_0x13551e(0x217)]['getParam'](_0x13551e(0x2b0)),_0x1c211b=this['_urlService'][_0x13551e(0x284)](_0x13551e(0x313));if(!_0x3bbde8||!_0x30ebdc){this[_0x13551e(0xf7)][_0x13551e(0x243)](_0x13551e(0xdc),_0x13551e(0x166));return;}const _0x15cf22=await this[_0x13551e(0x24c)][_0x13551e(0x30e)](_0x3bbde8,Number(_0x30ebdc),_0x1c211b);_0x15cf22&&_0x15cf22 instanceof a[_0x13551e(0x29e)]&&this['_setupSubUnitSync'](_0x15cf22);}async['_setupSubUnitSync'](_0x2b28d9){const _0x4f9e74=_0x926bd0;await this[_0x4f9e74(0x13f)](_0x2b28d9),_0x2b28d9[_0x4f9e74(0x219)][_0x4f9e74(0x19e)](d[_0x4f9e74(0x1d5)](this[_0x4f9e74(0x23e)]))[_0x4f9e74(0x1e6)](_0x35f838=>{const _0x362f28=_0x4f9e74;_0x35f838&&this[_0x362f28(0x348)](_0x35f838);}),this[_0x4f9e74(0x217)][_0x4f9e74(0x1e8)][_0x4f9e74(0x19e)](d[_0x4f9e74(0x1d5)](this['dispose$']))['subscribe'](()=>this[_0x4f9e74(0x13f)](_0x2b28d9));}[_0x926bd0(0x348)](_0x301625,_0xa74fd2=!0x1){const _0x9260e9=_0x926bd0,_0x3d11d4=this['_urlService']['getParam'](_0x9260e9(0x313));_0x301625[_0x9260e9(0x20f)]()!==_0x3d11d4&&this[_0x9260e9(0x217)]['setParam'](_0x9260e9(0x313),_0x301625[_0x9260e9(0x20f)](),_0xa74fd2);}async[_0x926bd0(0x13f)](_0x54e384){const _0xc1d26c=_0x926bd0;var _0x58e0cc;const _0xa9492d=this[_0xc1d26c(0x217)][_0xc1d26c(0x284)](_0xc1d26c(0x313));if(!_0xa9492d||!_0x54e384['getSheetBySheetId'](_0xa9492d)){const _0x550cf2=_0x54e384[_0xc1d26c(0x350)]()[0x0],_0xfc2a09=_0x54e384[_0xc1d26c(0x34d)](_0x550cf2);if(!_0xfc2a09)return;this['_updateURLWithCurrentState'](_0xfc2a09,!0x0),await this[_0xc1d26c(0x17c)][_0xc1d26c(0x145)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x54e384[_0xc1d26c(0x13a)](),'subUnitId':_0x550cf2});return;}((_0x58e0cc=_0x54e384[_0xc1d26c(0x2e2)]())==null?void 0x0:_0x58e0cc[_0xc1d26c(0x20f)]())!==_0xa9492d&&await this[_0xc1d26c(0x17c)][_0xc1d26c(0x145)](g[_0xc1d26c(0x279)]['id'],{'unitId':_0x54e384[_0xc1d26c(0x13a)](),'subUnitId':_0xa9492d});}},exports[_0x926bd0(0xe0)]=Bt([F(0x0,Ee),F(0x1,a[_0x926bd0(0x27f)]),F(0x2,a[_0x926bd0(0x130)]),F(0x3,a[_0x926bd0(0xec)](u[_0x926bd0(0xd9)])),F(0x4,a[_0x926bd0(0x34f)](Ke[_0x926bd0(0x29d)]))],exports[_0x926bd0(0xe0)]);var jt=Object[_0x926bd0(0x311)],kt=(_0x17633e,_0x41890c,_0x4116e7,_0x586308)=>{const _0x463537=_0x926bd0;for(var _0x391fe7=_0x586308>0x1?void 0x0:_0x586308?jt(_0x41890c,_0x4116e7):_0x41890c,_0x3507d8=_0x17633e[_0x463537(0x2ef)]-0x1,_0x3e6031;_0x3507d8>=0x0;_0x3507d8--)(_0x3e6031=_0x17633e[_0x3507d8])&&(_0x391fe7=_0x3e6031(_0x391fe7)||_0x391fe7);return _0x391fe7;},ce=(_0x184d46,_0x511b23)=>(_0x4126b1,_0x51ebec)=>_0x511b23(_0x4126b1,_0x51ebec,_0x184d46);let z=class{constructor(_0x49c17d,_0x49447c,_0xe1bd35){this['_injector']=_0x49c17d,this['_transformService']=_0x49447c,this['_renderManagerService']=_0xe1bd35;}['transformIMECache'](_0x4afb10){const _0x56b39f=_0x926bd0;this['_transformUndoRedoStack'](_0x4afb10),this[_0x56b39f(0x327)](_0x4afb10);}[_0x926bd0(0x22d)](_0x28dfad){const _0x427299=_0x926bd0,{unitID:_0x51fd4c}=_0x28dfad,_0x5f2207=this[_0x427299(0x35d)][_0x427299(0xe8)](_0x51fd4c)[_0x427299(0x2f7)](E[_0x427299(0x331)]),{redoCache:_0x2e07cd}=_0x5f2207[_0x427299(0x181)]();if(_0x2e07cd[_0x427299(0x2ef)]===0x0)return _0x28dfad;let _0x32380f=a[_0x427299(0x2c8)][_0x427299(0x21b)](_0x28dfad['mutations'][0x0]);for(let _0x372da5=0x0;_0x372da5<_0x2e07cd[_0x427299(0x2ef)];_0x372da5++){const _0x18bbde={'id':_0x427299(0x1aa),'params':{..._0x2e07cd[_0x372da5]}},_0x505f1b=this[_0x427299(0xee)][_0x427299(0x342)](_0x32380f,_0x18bbde,!0x1);if(m[_0x427299(0x2ee)](_0x505f1b))throw _0x505f1b[_0x427299(0x31e)];_0x32380f=_0x505f1b['m1Prime'];}return{...a['Tools'][_0x427299(0x21b)](_0x28dfad),'mutations':[_0x32380f]};}['_transformUndoRedoStack'](_0x13cea7){const _0x5d0d9b=_0x926bd0,{unitID:_0x3acec9}=_0x13cea7,_0x2d42f2=this[_0x5d0d9b(0x35d)][_0x5d0d9b(0xe8)](_0x3acec9)[_0x5d0d9b(0x2f7)](E['DocIMEInputManagerService']),{undoCache:_0x39b57e,redoCache:_0x100a22}=_0x2d42f2[_0x5d0d9b(0x181)]();if(_0x39b57e[_0x5d0d9b(0x2ef)]===0x0||_0x100a22['length']===0x0)return;const _0x2ea67d=[],_0x5df8e9=[];let _0x4689e3=a['Tools'][_0x5d0d9b(0x21b)](_0x13cea7[_0x5d0d9b(0x1cf)][0x0]),_0x15b657=a[_0x5d0d9b(0x2c8)]['deepClone'](_0x13cea7[_0x5d0d9b(0x1cf)][0x0]);for(let _0x40b237=_0x39b57e[_0x5d0d9b(0x2ef)]-0x1;_0x40b237>=0x0;_0x40b237--){const _0x30c639={'id':_0x5d0d9b(0x1aa),'params':{..._0x39b57e[_0x40b237]}},_0x2dd664={'id':_0x5d0d9b(0x1aa),'params':{..._0x100a22[_0x40b237]}},_0x46c96a=this[_0x5d0d9b(0xee)][_0x5d0d9b(0x342)](_0x4689e3,_0x30c639,!0x1),_0x19b1fe=this['_transformService'][_0x5d0d9b(0x342)](_0x15b657,_0x2dd664,!0x1);if(m[_0x5d0d9b(0x2ee)](_0x46c96a))throw _0x46c96a[_0x5d0d9b(0x31e)];if(m[_0x5d0d9b(0x2ee)](_0x19b1fe))throw _0x19b1fe[_0x5d0d9b(0x31e)];_0x2ea67d[_0x5d0d9b(0x229)](_0x46c96a[_0x5d0d9b(0x336)][_0x5d0d9b(0x131)]),_0x5df8e9[_0x5d0d9b(0x229)](_0x19b1fe[_0x5d0d9b(0x336)][_0x5d0d9b(0x131)]),_0x4689e3=_0x46c96a[_0x5d0d9b(0x2f2)],_0x15b657=_0x19b1fe['m1Prime'];}_0x2d42f2['setUndoRedoMutationParamsCache']({'undoCache':_0x2ea67d,'redoCache':_0x5df8e9});}[_0x926bd0(0x327)](_0x6f903){const _0x31923c=_0x926bd0,{unitID:_0x4afc43}=_0x6f903,_0x4ca4fd=this['_renderManagerService'][_0x31923c(0xe8)](_0x4afc43)[_0x31923c(0x2f7)](E['DocIMEInputManagerService']),_0x211e6a=_0x4ca4fd['getActiveRange']();if(_0x211e6a==null)return;const _0x146ed5=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x6f903[_0x31923c(0x171)],'actions':null,'textRanges':[_0x211e6a]}}],_0x8f6bd4=this[_0x31923c(0xee)][_0x31923c(0x1e1)](_0x6f903,_0x146ed5);if(!m['isTransformMutationsWithChangesetSuccess'](_0x8f6bd4))throw _0x8f6bd4['error'];const _0x28c49b=_0x8f6bd4[_0x31923c(0x336)][0x0][_0x31923c(0x131)][_0x31923c(0x141)];Array[_0x31923c(0xff)](_0x28c49b)&&_0x28c49b[_0x31923c(0x2ef)]&&_0x4ca4fd[_0x31923c(0x28e)](_0x28c49b[0x0]);}};z=kt([ce(0x0,a['Inject'](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x192ad1,_0x5a6005,_0x27b859,_0xd6a45f)=>{const _0x2cb734=_0x926bd0;for(var _0x2f240f=_0xd6a45f>0x1?void 0x0:_0xd6a45f?Ft(_0x5a6005,_0x27b859):_0x5a6005,_0x7a760e=_0x192ad1[_0x2cb734(0x2ef)]-0x1,_0x27cf14;_0x7a760e>=0x0;_0x7a760e--)(_0x27cf14=_0x192ad1[_0x7a760e])&&(_0x2f240f=_0x27cf14(_0x2f240f)||_0x2f240f);return _0x2f240f;},le=(_0x16e5be,_0x4da26a)=>(_0x5a62eb,_0x25af6)=>_0x4da26a(_0x5a62eb,_0x25af6,_0x16e5be);let J=class{constructor(_0x2e5b1b,_0x36aae2,_0xaee2d1){const _0x436686=_0x926bd0;this[_0x436686(0x215)]=_0x2e5b1b,this['_transformService']=_0x36aae2,this[_0x436686(0x2d6)]=_0xaee2d1;}[_0x926bd0(0x175)](_0x47a420){const _0x2dab8e=_0x926bd0;this[_0x2dab8e(0x30d)](_0x47a420);}['transformRemoteChangeset'](_0xf11643){const _0x35303e=_0x926bd0,{unitID:_0x252066}=_0xf11643,{collaboration:_0x159bcc}=this[_0x35303e(0x2d6)][_0x35303e(0x1a4)](_0x252066);if(_0x159bcc[_0x35303e(0x2ef)]===0x0)return _0xf11643;let _0x47feb9=a[_0x35303e(0x2c8)]['deepClone'](_0xf11643[_0x35303e(0x1cf)][0x0]);for(let _0x5d096e=0x0;_0x5d096e<_0x159bcc['length'];_0x5d096e++){const _0x301790={'id':_0x35303e(0x1aa),'params':{'unitId':_0x159bcc[_0x5d096e][_0x35303e(0x34a)],..._0x159bcc[_0x5d096e][_0x35303e(0x202)]}},_0x1825b2=this[_0x35303e(0xee)]['transformMutation'](_0x47feb9,_0x301790,!0x1);if(m['isTransformMutationFailure'](_0x1825b2))throw _0x1825b2[_0x35303e(0x31e)];_0x47feb9=_0x1825b2['m1Prime'];}return{...a[_0x35303e(0x2c8)][_0x35303e(0x21b)](_0xf11643),'mutations':[_0x47feb9]};}[_0x926bd0(0x30d)](_0x4eefa3){const _0x45a640=_0x926bd0,{unitID:_0xe49228}=_0x4eefa3,{history:_0x43a308,collaboration:_0x6fda63}=this[_0x45a640(0x2d6)][_0x45a640(0x1a4)](_0xe49228);if(_0x43a308['length']===0x0&&_0x6fda63[_0x45a640(0x2ef)]===0x0)return;const _0x491586=[],_0x117043=[];let _0x3ca978=a[_0x45a640(0x2c8)]['deepClone'](_0x4eefa3[_0x45a640(0x1cf)][0x0]),_0x421627=a[_0x45a640(0x2c8)]['deepClone'](_0x4eefa3[_0x45a640(0x1cf)][0x0]);for(let _0x3f4817=_0x43a308['length']-0x1;_0x3f4817>=0x0;_0x3f4817--){const _0x56616c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x43a308[_0x3f4817][_0x45a640(0x34a)],..._0x43a308[_0x3f4817][_0x45a640(0x31a)]}},_0x5500a4={'id':_0x45a640(0x1aa),'params':{'unitId':_0x43a308[_0x3f4817][_0x45a640(0x34a)],..._0x43a308[_0x3f4817][_0x45a640(0x202)]}},_0x788df1=this['_transformService'][_0x45a640(0x342)](_0x3ca978,_0x56616c,!0x1),_0x4b36bb=this['_transformService'][_0x45a640(0x342)](_0x421627,_0x5500a4,!0x1);if(m[_0x45a640(0x2ee)](_0x788df1))throw _0x788df1[_0x45a640(0x31e)];if(m['isTransformMutationFailure'](_0x4b36bb))throw _0x4b36bb['error'];_0x491586[_0x45a640(0x229)]({..._0x43a308[_0x3f4817],'undoState':_0x788df1[_0x45a640(0x336)][_0x45a640(0x131)],'redoState':_0x4b36bb['m2Prime']['params']}),_0x3ca978=_0x788df1['m1Prime'],_0x421627=_0x4b36bb[_0x45a640(0x2f2)];}_0x3ca978=a[_0x45a640(0x2c8)][_0x45a640(0x21b)](_0x4eefa3[_0x45a640(0x1cf)][0x0]),_0x421627=a['Tools']['deepClone'](_0x4eefa3['mutations'][0x0]);for(let _0x3918d0=_0x6fda63['length']-0x1;_0x3918d0>=0x0;_0x3918d0--){const _0x5f0416={'id':_0x45a640(0x1aa),'params':{'unitId':_0x6fda63[_0x3918d0][_0x45a640(0x34a)],..._0x6fda63[_0x3918d0][_0x45a640(0x31a)]}},_0x1d111a={'id':_0x45a640(0x1aa),'params':{'unitId':_0x6fda63[_0x3918d0][_0x45a640(0x34a)],..._0x6fda63[_0x3918d0][_0x45a640(0x202)]}},_0x37cf36=this[_0x45a640(0xee)][_0x45a640(0x342)](_0x3ca978,_0x5f0416,!0x1),_0x52848b=this[_0x45a640(0xee)][_0x45a640(0x342)](_0x421627,_0x1d111a,!0x1);if(m[_0x45a640(0x2ee)](_0x37cf36))throw _0x37cf36[_0x45a640(0x31e)];if(m[_0x45a640(0x2ee)](_0x52848b))throw _0x52848b['error'];_0x117043[_0x45a640(0x229)]({..._0x6fda63[_0x3918d0],'undoState':_0x37cf36[_0x45a640(0x336)][_0x45a640(0x131)],'redoState':_0x52848b[_0x45a640(0x336)]['params']}),_0x3ca978=_0x37cf36['m1Prime'],_0x421627=_0x52848b[_0x45a640(0x2f2)];}this[_0x45a640(0x2d6)][_0x45a640(0x18c)](_0xe49228,{'history':_0x491586,'collaboration':_0x117043});}};J=Ht([le(0x0,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),le(0x1,m['ITransformService']),le(0x2,a[_0x926bd0(0xec)](E[_0x926bd0(0x10f)]))],J);var Yt=Object[_0x926bd0(0x311)],Wt=(_0x23578d,_0x5ab501,_0x3c131a,_0x56cf64)=>{for(var _0x2b1ddb=_0x56cf64>0x1?void 0x0:_0x56cf64?Yt(_0x5ab501,_0x3c131a):_0x5ab501,_0x195b89=_0x23578d['length']-0x1,_0x5a904e;_0x195b89>=0x0;_0x195b89--)(_0x5a904e=_0x23578d[_0x195b89])&&(_0x2b1ddb=_0x5a904e(_0x2b1ddb)||_0x2b1ddb);return _0x2b1ddb;},Ne=(_0x3c8ef4,_0x16daf4)=>(_0x457f7f,_0x197484)=>_0x16daf4(_0x457f7f,_0x197484,_0x3c8ef4);let Z=class{constructor(_0x26ec26,_0x4207d3){const _0x29c852=_0x926bd0;this[_0x29c852(0x215)]=_0x26ec26,this[_0x29c852(0xee)]=_0x4207d3;}['transformSelections'](_0xcf5d14){const _0x10119e=_0x926bd0;var _0x5958f8;const _0x40cad2=this[_0x10119e(0x215)]['get'](Y[_0x10119e(0x2d1)]),_0x64b5a=(_0x5958f8=_0x40cad2[_0x10119e(0x1fd)]())!=null?_0x5958f8:[];if(_0x64b5a['length']===0x0)return;const _0x28f8fe=_0xcf5d14['unitID'],_0x22a72d=[{'id':_0x10119e(0x1aa),'params':{'unitId':_0x28f8fe,'actions':null,'textRanges':_0x64b5a}}],_0x337ee2=this[_0x10119e(0xee)][_0x10119e(0x1e1)](_0xcf5d14,_0x22a72d);if(!m['isTransformMutationsWithChangesetSuccess'](_0x337ee2))throw _0x337ee2[_0x10119e(0x31e)];const _0x5ecb01=_0x337ee2['m2Prime'][0x0][_0x10119e(0x131)][_0x10119e(0x141)];Array[_0x10119e(0xff)](_0x5ecb01)&&_0x5ecb01[_0x10119e(0x2ef)]&&_0x40cad2[_0x10119e(0x246)](_0x5ecb01,{'unitId':_0x28f8fe,'subUnitId':_0x28f8fe},!0x1);}};Z=Wt([Ne(0x0,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),Ne(0x1,m[_0x926bd0(0x18e)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x34ee0a,_0x445491,_0x4039e3,_0x447a48)=>{for(var _0x3d2cf3=_0x447a48>0x1?void 0x0:_0x447a48?Vt(_0x445491,_0x4039e3):_0x445491,_0x3f8a98=_0x34ee0a['length']-0x1,_0x4797fa;_0x3f8a98>=0x0;_0x3f8a98--)(_0x4797fa=_0x34ee0a[_0x3f8a98])&&(_0x3d2cf3=_0x4797fa(_0x3d2cf3)||_0x3d2cf3);return _0x3d2cf3;},N=(_0x399f72,_0x4cd9f9)=>(_0x5b667b,_0x175e96)=>_0x4cd9f9(_0x5b667b,_0x175e96,_0x399f72);let Q=class extends a['Disposable']{constructor(_0x2dfade,_0x587293,_0xc9ef05,_0x558cff,_0x3619ab,_0x1eddfd,_0x2fea1b,_0x2a70f0){const _0x2106c7=_0x926bd0;super(),h(this,_0x2106c7(0xd8),new d['BehaviorSubject'](u[_0x2106c7(0x268)][_0x2106c7(0x1d2)])),(this[_0x2106c7(0x2d6)]=_0x2dfade,this[_0x2106c7(0x2ad)]=_0x587293,this[_0x2106c7(0x187)]=_0xc9ef05,this[_0x2106c7(0x120)]=_0x558cff,this['_docTransformSelectionsService']=_0x3619ab,this[_0x2106c7(0x115)]=_0x1eddfd,this['_messageService']=_0x2fea1b,this[_0x2106c7(0x32a)]=_0x2a70f0,this['_initEntityListener']());}[_0x926bd0(0x20e)](){const _0x32ac84=_0x926bd0;this[_0x32ac84(0x2a5)](this[_0x32ac84(0x2ad)][_0x32ac84(0x170)][_0x32ac84(0x1e6)](_0x389312=>{const _0x221be2=_0x32ac84,_0x31af20=this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0x3ea91e=>{const _0x58e94d=_0x18d9;if(_0x3ea91e==null)return;const {unitId:_0xcc010a,redoState:_0x5e7bd6,commandId:_0x7690fa}=_0x3ea91e;if(_0xcc010a!==_0x389312[_0x58e94d(0x171)])return;const _0x3cdfa4={'id':_0x7690fa,'type':a[_0x58e94d(0x367)][_0x58e94d(0x28a)],'params':{'unitId':_0xcc010a,'actions':_0x5e7bd6['actions'],'textRanges':null}};_0x389312[_0x58e94d(0x26b)](_0x3cdfa4);});if(_0x389312['disposeWithMe'](_0x31af20),_0x389312 instanceof u['DocCollaborationEntity']){const _0x575159={'onTransformIME':_0x28fe7a=>this['_docTransformIMECacheService'][_0x221be2(0x360)](_0x28fe7a),'onTransformState':_0x13b9fd=>this[_0x221be2(0x120)][_0x221be2(0x175)](_0x13b9fd),'onTransformSelections':_0x3cc02a=>this[_0x221be2(0x17d)][_0x221be2(0x1f4)](_0x3cc02a),'onSyncEditingCollabCursor':_0x1353f0=>this[_0x221be2(0x115)][_0x221be2(0x23b)](_0x1353f0),'onTransformRemoteChangesetByIMECache':_0x116d67=>this[_0x221be2(0x187)][_0x221be2(0x22d)](_0x116d67),'onTransformRemoteChangesetByStateCache':_0x195712=>this[_0x221be2(0x120)][_0x221be2(0x22d)](_0x195712)};_0x389312[_0x221be2(0x303)](_0x575159);}}));}};Q=Xt([N(0x0,a[_0x926bd0(0xec)](E[_0x926bd0(0x10f)])),N(0x1,a[_0x926bd0(0xec)](u[_0x926bd0(0xe4)])),N(0x2,a[_0x926bd0(0xec)](z)),N(0x3,a[_0x926bd0(0xec)](J)),N(0x4,a[_0x926bd0(0xec)](Z)),N(0x5,a[_0x926bd0(0xec)](Ce)),N(0x6,O[_0x926bd0(0x35f)]),N(0x7,a[_0x926bd0(0xec)](a[_0x926bd0(0xda)]))],Q);var Gt=Object[_0x926bd0(0x311)],Kt=(_0x1be29c,_0x7c5550,_0x12aa86,_0x143bd2)=>{for(var _0xc22be7=_0x143bd2>0x1?void 0x0:_0x143bd2?Gt(_0x7c5550,_0x12aa86):_0x7c5550,_0x25d481=_0x1be29c['length']-0x1,_0x2a11f1;_0x25d481>=0x0;_0x25d481--)(_0x2a11f1=_0x1be29c[_0x25d481])&&(_0xc22be7=_0x2a11f1(_0xc22be7)||_0xc22be7);return _0xc22be7;},_e=(_0x3395ea,_0x48b206)=>(_0x30803c,_0x3e7b92)=>_0x48b206(_0x30803c,_0x3e7b92,_0x3395ea);let ge=class extends a[_0x926bd0(0x256)]{constructor(_0x2837d1,_0x29b3c6,_0x152537){const _0xe588c0=_0x926bd0;super(),h(this,_0xe588c0(0x29a),new Map()),h(this,_0xe588c0(0x24a),new Map()),h(this,_0xe588c0(0xf2),!0x1),(this[_0xe588c0(0x133)]=_0x2837d1,this[_0xe588c0(0x266)]=_0x29b3c6,this[_0xe588c0(0x1a1)]=_0x152537);}['disableLocalCache'](){const _0x3238e9=_0x926bd0;this[_0x3238e9(0xf2)]=!0x0;}[_0x926bd0(0x25b)](){const _0x3e3059=_0x926bd0;this[_0x3e3059(0xf2)]=!0x1;}get[_0x926bd0(0x322)](){return this['_saveTaskMap'];}[_0x926bd0(0x2ba)](){const _0x462d2d=_0x926bd0;this[_0x462d2d(0x251)]()[_0x462d2d(0x1f3)](()=>super[_0x462d2d(0x2ba)]());}async[_0x926bd0(0x172)](_0x5b623d){const _0x186d26=_0x926bd0;return this[_0x186d26(0xf2)]?null:this['_localStorageService']['getItem'](u[_0x186d26(0x30f)](_0x5b623d));}async['saveOfflineData'](_0x5569d5,_0x33d490){const _0x129dbc=_0x926bd0;return!!this[_0x129dbc(0x266)][_0x129dbc(0x1f0)](_0x5569d5,_0x33d490);}['updateOfflineData'](_0x26e348,_0x1826ac,_0x1a1be6,_0x44f29e){const _0x4497cf=_0x926bd0,_0x1240dc=this[_0x4497cf(0x1a1)][_0x4497cf(0x20c)](_0x26e348);this[_0x4497cf(0x29a)][_0x4497cf(0x2c2)](_0x26e348,{'unitID':_0x26e348,'type':_0x1826ac,'awaitingChangeset':_0x1a1be6,'mutations':_0x44f29e,'rev':_0x1240dc}),this[_0x4497cf(0x24a)][_0x4497cf(0x295)](_0x26e348)||this[_0x4497cf(0x2b9)](_0x26e348);}[_0x926bd0(0x2b9)](_0x5e2a63){const _0x843d60=_0x926bd0,_0x1a4111=this['_getSaveTimeout']();_0x1a4111===0x0?this[_0x843d60(0x2b1)](_0x5e2a63):this[_0x843d60(0x24a)]['set'](_0x5e2a63,setTimeout(()=>this[_0x843d60(0x2b1)](_0x5e2a63),_0x1a4111));}[_0x926bd0(0x132)](){const _0x1e9ff0=_0x926bd0;var _0x2d09e5;return(_0x2d09e5=this[_0x1e9ff0(0x133)]['getConfig'](u[_0x1e9ff0(0x17a)]))!=null?_0x2d09e5:u['LOCAL_CACHE_INTERVAL'];}[_0x926bd0(0x2b1)](_0x2b0b59){const _0x5eb578=_0x926bd0,_0x186ca4=this[_0x5eb578(0x24a)][_0x5eb578(0x1ed)](_0x2b0b59);return _0x186ca4!==void 0x0&&window[_0x5eb578(0x210)](_0x186ca4),this[_0x5eb578(0x266)][_0x5eb578(0x1f0)](u['getLocalCacheKey'](_0x2b0b59),this['_cachedData'][_0x5eb578(0x1ed)](_0x2b0b59))['then'](()=>this[_0x5eb578(0x24a)][_0x5eb578(0x292)](_0x2b0b59));}async[_0x926bd0(0x251)](){const _0xc5741f=_0x926bd0,_0x192c6c=[];this[_0xc5741f(0x24a)][_0xc5741f(0x35e)]((_0xab025c,_0x4d8f3b)=>{const _0x156721=_0xc5741f;window['clearTimeout'](_0xab025c),_0x192c6c[_0x156721(0x14c)](this['_saveCache'](_0x4d8f3b)[_0x156721(0x1f3)](()=>{const _0x5ec6bf=_0x156721;this[_0x5ec6bf(0x24a)][_0x5ec6bf(0x292)](_0x4d8f3b);}));}),await Promise[_0xc5741f(0x2df)](_0x192c6c);}};ge=Kt([_e(0x0,a[_0x926bd0(0x347)]),_e(0x1,a[_0x926bd0(0x221)]),_e(0x2,a[_0x926bd0(0xec)](m[_0x926bd0(0x2cd)]))],ge);class Be extends a[_0x926bd0(0x2b5)]{constructor(){const _0x11337c=_0x926bd0;super(),h(this,_0x11337c(0x1e8)),this[_0x11337c(0x1e8)]=d[_0x11337c(0x304)](window,_0x11337c(0x2a0))['pipe'](d[_0x11337c(0x1d5)](this['dispose$']),d[_0x11337c(0x205)](0x1),d[_0x11337c(0x2d8)](void 0x0));}[_0x926bd0(0x2da)](_0x3d74e2,_0x58754a,_0x16109c=!0x1){const _0x14afef=_0x926bd0,_0x42b5c9=new URL(window['location'][_0x14afef(0x12c)]);_0x42b5c9[_0x14afef(0x2a7)]['set'](_0x3d74e2,_0x58754a),_0x16109c?window['history'][_0x14afef(0x285)]('','',_0x42b5c9[_0x14afef(0x14f)]()):window[_0x14afef(0x1ca)][_0x14afef(0x147)]('','',_0x42b5c9['toString']());}[_0x926bd0(0xeb)](_0x26960a,_0x5d1bc5=!0x1){const _0x458f4e=_0x926bd0,_0x3af37b=new URL(window[_0x458f4e(0x162)][_0x458f4e(0x12c)]);_0x3af37b['searchParams'][_0x458f4e(0x292)](_0x26960a),_0x5d1bc5?window[_0x458f4e(0x1ca)][_0x458f4e(0x285)]('','',_0x3af37b[_0x458f4e(0x14f)]()):window[_0x458f4e(0x1ca)][_0x458f4e(0x147)]('','',_0x3af37b[_0x458f4e(0x14f)]());}[_0x926bd0(0x284)](_0x3792ac){const _0x48deff=_0x926bd0;var _0x2843e0;return(_0x2843e0=new URL(window[_0x48deff(0x162)][_0x48deff(0x12c)])[_0x48deff(0x2a7)][_0x48deff(0x1ed)](_0x3792ac))!=null?_0x2843e0:void 0x0;}}var qt=Object[_0x926bd0(0x2f4)],zt=Object[_0x926bd0(0x311)],Jt=(_0x5f24bd,_0x1cb19e,_0x57d318)=>_0x1cb19e in _0x5f24bd?qt(_0x5f24bd,_0x1cb19e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d318}):_0x5f24bd[_0x1cb19e]=_0x57d318,Zt=(_0x1fbac2,_0x364e27,_0x178841,_0x421014)=>{for(var _0x49a918=_0x421014>0x1?void 0x0:_0x421014?zt(_0x364e27,_0x178841):_0x364e27,_0x5270a7=_0x1fbac2['length']-0x1,_0x1bb880;_0x5270a7>=0x0;_0x5270a7--)(_0x1bb880=_0x1fbac2[_0x5270a7])&&(_0x49a918=_0x1bb880(_0x49a918)||_0x49a918);return _0x49a918;},he=(_0x2d3dcc,_0x379b10)=>(_0x23475e,_0x9b9466)=>_0x379b10(_0x23475e,_0x9b9466,_0x2d3dcc),Qt=(_0x30d39d,_0xe2369f,_0x29cff8)=>Jt(_0x30d39d,_0xe2369f+'',_0x29cff8);const es=_0x926bd0(0x10e);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x926bd0(0x2fe)]{constructor(_0x7e0c5b=Ue,_0x2440df,_0x34f00d,_0x27df98){const _0x33dddb=_0x926bd0;super(),this['_config']=_0x7e0c5b,this[_0x33dddb(0x35d)]=_0x2440df,this['_injector']=_0x34f00d,this[_0x33dddb(0x133)]=_0x27df98;const {..._0x8ea006}=a[_0x33dddb(0x111)]({},Ue,this['_config']);this[_0x33dddb(0x133)][_0x33dddb(0x293)]($t,_0x8ea006);}[_0x926bd0(0x273)](){const _0x5048c1=_0x926bd0;this[_0x5048c1(0x19b)](),this[_0x5048c1(0x314)]();}[_0x926bd0(0x207)](){const _0xc5b171=_0x926bd0;this[_0xc5b171(0x1f8)]();}['_registerDependencies'](){const _0x585541=_0x926bd0;var _0xc26c76;const _0x4c1a21=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x585541(0x1e3)],{'useClass':G[_0x585541(0x106)]}],[u[_0x585541(0x12a)],{'useClass':ge}],[exports[_0x585541(0x278)]],[Q],[q],[x],[de],[exports[_0x585541(0xe0)]]];a['registerDependencies'](this[_0x585541(0x215)],a[_0x585541(0x2ce)](_0x4c1a21,(_0xc26c76=this[_0x585541(0x124)])==null?void 0x0:_0xc26c76['override']));}[_0x926bd0(0x1f8)](){const _0x644607=_0x926bd0;this['disposeWithMe'](this['_renderManagerService'][_0x644607(0x241)](a[_0x644607(0x197)][_0x644607(0x1f7)],[fe])),this[_0x644607(0x2a5)](this[_0x644607(0x35d)]['registerRenderModule'](a[_0x644607(0x197)]['UNIVER_SHEET'],[ve]));}[_0x926bd0(0x314)](){const _0x18ba72=_0x926bd0;a[_0x18ba72(0x15d)](this[_0x18ba72(0x215)],[[x],[exports[_0x18ba72(0x278)]],[Q],[q],[exports[_0x18ba72(0xe0)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x926bd0(0x17b),es),exports[_0x926bd0(0x26a)]=Zt([a[_0x926bd0(0x174)](u[_0x926bd0(0x2eb)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x926bd0(0xf9)])),he(0x3,a[_0x926bd0(0x347)])],exports[_0x926bd0(0x26a)]);var ts=Object[_0x926bd0(0x311)],ss=(_0x18cb18,_0x4d1849,_0x3f1324,_0x4a0c75)=>{const _0x2db35b=_0x926bd0;for(var _0x66206=_0x4a0c75>0x1?void 0x0:_0x4a0c75?ts(_0x4d1849,_0x3f1324):_0x4d1849,_0x5e2fb6=_0x18cb18[_0x2db35b(0x2ef)]-0x1,_0x201fbb;_0x5e2fb6>=0x0;_0x5e2fb6--)(_0x201fbb=_0x18cb18[_0x5e2fb6])&&(_0x66206=_0x201fbb(_0x66206)||_0x66206);return _0x66206;},H=(_0x302edb,_0x5306ed)=>(_0x5df12b,_0x1bf435)=>_0x5306ed(_0x5df12b,_0x1bf435,_0x302edb);exports['BrowserCollaborationSocketService']=class extends u['CollaborationSocketService']{constructor(_0x2f71d2,_0x2d7450,_0x49403b,_0x5ce848,_0x432978){super(_0x2f71d2,_0x2d7450,_0x49403b,_0x5ce848,_0x432978);}async['createSocket'](_0x2a78d1){const _0x5619ae=_0x926bd0,_0x55e437=await this[_0x5619ae(0x305)](),_0x4b1747=this['_createSocketURL'](_0x2a78d1,_0x55e437);return this[_0x5619ae(0x196)](_0x4b1747);}[_0x926bd0(0xd7)](_0x385a38,_0x5cdf61){const _0x533bf7=_0x926bd0,_0x5d165b=typeof window>'u'?new URL(_0x385a38):new URL(_0x385a38,window[_0x533bf7(0x162)][_0x533bf7(0x26f)]);_0x5d165b[_0x533bf7(0x2a7)][_0x533bf7(0x2c2)]('sessionTicket',_0x5cdf61);const _0x4800d4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x4800d4['get'](_0x533bf7(0x302))&&_0x5d165b['searchParams'][_0x533bf7(0x2c2)](_0x533bf7(0x302),_0x4800d4[_0x533bf7(0x1ed)]('runId')),_0x5d165b[_0x533bf7(0x14f)]();}async['_getSessionTicket'](){const _0x19102f=_0x926bd0;var _0x13c305,_0x2e4aea,_0x39d96f;const _0x439bc6=this[_0x19102f(0x133)][_0x19102f(0x287)](u[_0x19102f(0x1ee)]),_0x241f71=(_0x13c305=_0x439bc6==null?void 0x0:_0x439bc6['wsSessionTicketUrl'])!=null?_0x13c305:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x39d96f=(_0x2e4aea=(await this[_0x19102f(0x216)][_0x19102f(0x1ed)](_0x241f71,{'headers':{'Content-Type':'application/json'}}))[_0x19102f(0x121)])==null?void 0x0:_0x2e4aea['ticket'])!=null?_0x39d96f:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),H(0x1,a[_0x926bd0(0xec)](G[_0x926bd0(0x2be)])),H(0x2,a[_0x926bd0(0x347)]),H(0x3,a[_0x926bd0(0x27f)]),H(0x4,m[_0x926bd0(0x235)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x926bd0(0x237);class is extends a[_0x926bd0(0x256)]{constructor(){const _0x245491=_0x926bd0;super(),h(this,_0x245491(0x160),a[_0x245491(0x34e)]()),h(this,_0x245491(0x1c3),new Set()),h(this,_0x245491(0x18f),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,_0x245491(0x254),new Map()),this['_init']();}[_0x926bd0(0x2ba)](){const _0x4122db=_0x926bd0;super[_0x4122db(0x2ba)](),this['_clearOtherTimers'][_0x4122db(0x35e)]((_0x2226a3,_0x51772c)=>this[_0x4122db(0x33b)](_0x51772c)),this[_0x4122db(0x2de)]&&window[_0x4122db(0x2a2)](this[_0x4122db(0x2de)]);}['getUnitStatus$'](_0x7a2f99){const _0x8937a6=_0x926bd0;return this[_0x8937a6(0x359)](_0x7a2f99)[_0x8937a6(0x19e)](d[_0x8937a6(0x317)]());}[_0x926bd0(0x263)](_0xd5c762){const _0x2bcb5f=_0x926bd0;this['_selfUnitIDs'][_0x2bcb5f(0x1d8)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2bcb5f(0x1c3)]['add'](_0xd5c762),this[_0x2bcb5f(0x307)]({'type':0x0,'memberID':this[_0x2bcb5f(0x160)],'unitIDs':[_0xd5c762],'isForwarded':!0x1});}['disposeUnit'](_0x1c0960){const _0xfe5b70=_0x926bd0;this['_selfUnitIDs'][_0xfe5b70(0x292)](_0x1c0960),this[_0xfe5b70(0x1c3)]['size']===0x0&&this[_0xfe5b70(0x2de)]&&window[_0xfe5b70(0x2a2)](this['_heartbeatTimer']);}[_0x926bd0(0x274)](){const _0x53a2d5=_0x926bd0;this[_0x53a2d5(0x2a5)](a['toDisposable'](d[_0x53a2d5(0x304)](window,_0x53a2d5(0x14b))['subscribe'](_0x3ca4f3=>{const _0x3f5b08=_0x53a2d5;if(_0x3ca4f3['key']!==Le||!_0x3ca4f3[_0x3f5b08(0x34b)])return;const _0x27f25f=JSON[_0x3f5b08(0x31f)](_0x3ca4f3[_0x3f5b08(0x34b)]);this[_0x3f5b08(0x28d)](_0x27f25f);}))),window[_0x53a2d5(0x1a0)](_0x53a2d5(0x318),()=>this['_send']({'type':0x1,'memberID':this[_0x53a2d5(0x160)],'unitIDs':Array[_0x53a2d5(0x298)](this[_0x53a2d5(0x1c3)])}));}['_handleEvent'](_0x226ac5){const _0x1cd017=_0x926bd0;switch(_0x226ac5[_0x1cd017(0x2b0)]){case 0x0:this[_0x1cd017(0xe6)](_0x226ac5);break;case 0x1:this['_handleLeaveEvent'](_0x226ac5);break;case 0x2:this[_0x1cd017(0x236)](_0x226ac5);break;}}['_handleJoinEvent'](_0x2f6387){const _0xd8f94e=_0x926bd0,{unitIDs:_0x11d431,memberID:_0x433b6b,isForwarded:_0x3c5845}=_0x2f6387;_0x11d431['forEach'](_0x52f04f=>{const _0x479977=_0x18d9;if(!_0x3c5845&&this['_unitOnClients'][_0x479977(0x295)](_0x52f04f)&&this[_0x479977(0x359)](_0x52f04f)[_0x479977(0x33c)](u[_0x479977(0x16a)][_0x479977(0x1fa)]),!this['_unitOnClients'][_0x479977(0x295)](_0x52f04f)||!this[_0x479977(0x18f)][_0x479977(0x1ed)](_0x52f04f)[_0x479977(0x295)](_0x433b6b)){const _0x1e09b6=this[_0x479977(0x18f)]['get'](_0x52f04f)||new Set();_0x1e09b6[_0x479977(0xf0)](_0x433b6b),this[_0x479977(0x18f)][_0x479977(0x2c2)](_0x52f04f,_0x1e09b6),this[_0x479977(0x226)](_0x433b6b);}}),_0x3c5845||this[_0xd8f94e(0x307)]({'type':0x0,'memberID':this[_0xd8f94e(0x160)],'unitIDs':[...this[_0xd8f94e(0x1c3)]],'isForwarded':!0x0});}[_0x926bd0(0x226)](_0xc4c83a){const _0x466e71=_0x926bd0;this[_0x466e71(0x33b)](_0xc4c83a);const _0x510b28=window[_0x466e71(0x2ea)](()=>{const _0x229d58=_0x466e71;this[_0x229d58(0x18f)][_0x229d58(0x35e)](_0x27e203=>{_0x27e203['delete'](_0xc4c83a);});},Me*0x2);this[_0x466e71(0x1a3)][_0x466e71(0x2c2)](_0xc4c83a,_0x510b28);}['_removeClearOtherTimer'](_0x282d05){const _0x59e9e4=_0x926bd0;if(this[_0x59e9e4(0x1a3)][_0x59e9e4(0x295)](_0x282d05)){const _0x4958c5=this['_clearOtherTimers'][_0x59e9e4(0x1ed)](_0x282d05);_0x4958c5&&window[_0x59e9e4(0x210)](_0x4958c5),this[_0x59e9e4(0x1a3)][_0x59e9e4(0x2c2)](_0x282d05,null);}}[_0x926bd0(0x2dc)](_0x4d8ed3){const _0x5e5961=_0x926bd0,{memberID:_0x20c3d4,unitIDs:_0x54a784}=_0x4d8ed3;_0x54a784['forEach'](_0x1ad7f1=>{const _0x385c0a=_0x18d9;var _0x13e8ea;const _0x39021c=this[_0x385c0a(0x18f)]['get'](_0x1ad7f1);_0x39021c&&(_0x39021c[_0x385c0a(0x292)](_0x20c3d4),(_0x13e8ea=this[_0x385c0a(0x359)](_0x1ad7f1))==null||_0x13e8ea['next'](_0x39021c[_0x385c0a(0x1d8)]===0x0?u['UnitStatus'][_0x385c0a(0x128)]:u[_0x385c0a(0x16a)]['OTHER_CLIENTS_EDITING']));}),this[_0x5e5961(0x33b)](_0x20c3d4);}[_0x926bd0(0x236)](_0x40f54a){const _0x22945=_0x926bd0;this['_scheduleClearOtherTimer'](_0x40f54a[_0x22945(0x2fc)]);}[_0x926bd0(0x307)](_0x71891f){const _0x224dbb=_0x926bd0;localStorage[_0x224dbb(0x1f0)](Le,JSON[_0x224dbb(0x2a3)](_0x71891f));}[_0x926bd0(0x2c1)](){const _0x58813d=_0x926bd0;this['_heartbeatTimer']=window[_0x58813d(0x35c)](()=>{const _0x5d570c=_0x58813d;this[_0x5d570c(0x307)]({'type':0x2,'memberID':this[_0x5d570c(0x160)]});},Me);}['_ensureSubject'](_0xe3d85){const _0xcb2718=_0x926bd0;return this[_0xcb2718(0x254)][_0xcb2718(0x295)](_0xe3d85)||this[_0xcb2718(0x254)]['set'](_0xe3d85,new d[(_0xcb2718(0xef))](u[_0xcb2718(0x16a)][_0xcb2718(0x128)])),this[_0xcb2718(0x254)][_0xcb2718(0x1ed)](_0xe3d85);}}var je=(_0x40243f=>(_0x40243f[_0x40243f[_0x926bd0(0x227)]=0x0]=_0x926bd0(0x227),_0x40243f[_0x40243f['OK']=0x1]='OK',_0x40243f[_0x40243f[_0x926bd0(0x2e6)]=0x2]=_0x926bd0(0x2e6),_0x40243f[_0x40243f[_0x926bd0(0x1c8)]=0x3]='PERMISSION_DENIED',_0x40243f[_0x40243f['NOT_FOUND']=0x4]=_0x926bd0(0x2b6),_0x40243f[_0x40243f['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x40243f[_0x40243f[_0x926bd0(0x157)]=0x6]='ALREADY_EXISTS',_0x40243f[_0x40243f[_0x926bd0(0x100)]=0x7]=_0x926bd0(0x100),_0x40243f[_0x40243f['TOO_MANY_REQUESTS']=0x8]=_0x926bd0(0x31d),_0x40243f[_0x40243f[_0x926bd0(0x25c)]=0x9]=_0x926bd0(0x25c),_0x40243f[_0x40243f['LOGIN_FAILED']=0xa]=_0x926bd0(0x1d1),_0x40243f[_0x40243f[_0x926bd0(0x24e)]=0xb]=_0x926bd0(0x24e),_0x40243f[_0x40243f[_0x926bd0(0x183)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40243f[_0x40243f[_0x926bd0(0x325)]=0xd]=_0x926bd0(0x325),_0x40243f[_0x40243f[_0x926bd0(0x2f3)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40243f[_0x40243f[_0x926bd0(0x1bd)]=0x1389]=_0x926bd0(0x1bd),_0x40243f[_0x40243f[_0x926bd0(0x204)]=0x1771]=_0x926bd0(0x204),_0x40243f[_0x40243f[_0x926bd0(0x198)]=0x1772]=_0x926bd0(0x198),_0x40243f[_0x40243f[_0x926bd0(0x211)]=0x1773]=_0x926bd0(0x211),_0x40243f[_0x40243f[_0x926bd0(0x213)]=0x1b59]=_0x926bd0(0x213),_0x40243f[_0x40243f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x926bd0(0x195),_0x40243f[_0x40243f['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x926bd0(0x25d),_0x40243f[_0x40243f[_0x926bd0(0x101)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x40243f[_0x40243f[_0x926bd0(0x2fb)]=0x1b5d]='APPLY_DUPLICATED',_0x40243f[_0x40243f[_0x926bd0(0x2a6)]=0x1f41]=_0x926bd0(0x2a6),_0x40243f[_0x40243f[_0x926bd0(0x346)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x40243f[_0x40243f[_0x926bd0(0x30b)]=0x232a]=_0x926bd0(0x30b),_0x40243f[_0x40243f[_0x926bd0(0x2c6)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x40243f[_0x40243f[_0x926bd0(0x16f)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x40243f[_0x40243f[_0x926bd0(0x12b)]=0x232d]=_0x926bd0(0x12b),_0x40243f[_0x40243f['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x926bd0(0x250),_0x40243f[_0x40243f[_0x926bd0(0x310)]=0x2712]=_0x926bd0(0x310),_0x40243f[_0x40243f[_0x926bd0(0x1c1)]=0x2713]=_0x926bd0(0x1c1),_0x40243f[_0x40243f[_0x926bd0(0x153)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x40243f[_0x40243f[_0x926bd0(0x2b7)]=0x271a]=_0x926bd0(0x2b7),_0x40243f[_0x40243f[_0x926bd0(0x1b9)]=0x271b]=_0x926bd0(0x1b9),_0x40243f[_0x40243f[_0x926bd0(0x242)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x40243f[_0x40243f[_0x926bd0(0x258)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x40243f[_0x40243f['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x926bd0(0x232),_0x40243f[_0x40243f['YUUMI_AI_RUN_FAILED']=0x271f]=_0x926bd0(0x129),_0x40243f[_0x40243f[_0x926bd0(0x272)]=0x2720]=_0x926bd0(0x272),_0x40243f[_0x40243f['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x926bd0(0x1ac),_0x40243f[_0x40243f[_0x926bd0(0x2ac)]=0x2ee1]=_0x926bd0(0x2ac),_0x40243f[_0x40243f['INVALID_INVITE_CODE']=0x2ee2]=_0x926bd0(0x1d0),_0x40243f[_0x40243f[_0x926bd0(0x2d5)]=0x2ee3]=_0x926bd0(0x2d5),_0x40243f[_0x40243f[_0x926bd0(0x2ab)]=0x2ee4]=_0x926bd0(0x2ab),_0x40243f[_0x40243f[_0x926bd0(0x2d0)]=0x2ee5]=_0x926bd0(0x2d0),_0x40243f[_0x40243f[_0x926bd0(0x222)]=0x32c9]=_0x926bd0(0x222),_0x40243f[_0x40243f[_0x926bd0(0x28f)]=0x32ca]=_0x926bd0(0x28f),_0x40243f[_0x40243f[_0x926bd0(0x142)]=0x32cb]=_0x926bd0(0x142),_0x40243f[_0x40243f[_0x926bd0(0x150)]=-0x1]=_0x926bd0(0x150),_0x40243f))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x14ba24,_0x109d67,_0x325160,_0x30d9fc)=>{for(var _0x5b408b=_0x30d9fc>0x1?void 0x0:_0x30d9fc?ns(_0x109d67,_0x325160):_0x109d67,_0x3861cd=_0x14ba24['length']-0x1,_0x4ac83e;_0x3861cd>=0x0;_0x3861cd--)(_0x4ac83e=_0x14ba24[_0x3861cd])&&(_0x5b408b=_0x4ac83e(_0x5b408b)||_0x5b408b);return _0x5b408b;},ue=(_0x2295f7,_0x43f29e)=>(_0x585e63,_0xfad30f)=>_0x43f29e(_0x585e63,_0xfad30f,_0x2295f7);exports[_0x926bd0(0x1eb)]=class extends a[_0x926bd0(0x256)]{constructor(_0x36ff82,_0x31b086,_0xfe55e2){const _0x3f66f6=_0x926bd0;super(),this[_0x3f66f6(0xdf)]=_0x36ff82,this[_0x3f66f6(0x216)]=_0x31b086,this[_0x3f66f6(0x133)]=_0xfe55e2;}async[_0x926bd0(0x16d)](_0x3e4003,_0x2650ec,_0x10a562,..._0x6d4f){const _0x209a8c=_0x926bd0;var _0x210ba4,_0x24b095,_0x4c816a,_0x2ea323;const _0x4b766f=this[_0x209a8c(0xdf)][_0x209a8c(0x234)]();if(!_0x4b766f)throw new Error(_0x209a8c(0x339));const _0x28fc72=((_0x210ba4=this[_0x209a8c(0x133)][_0x209a8c(0x287)](u[_0x209a8c(0x1c4)]))!=null?_0x210ba4:u[_0x209a8c(0x267)])+'/'+_0x3e4003+_0x209a8c(0x290)+_0x2650ec,_0x480f1d=new URL(window['location'][_0x209a8c(0x12c)]),_0x14cc62={'scriptId':_0x3e4003,'runId':(_0x24b095=_0x480f1d[_0x209a8c(0x2a7)][_0x209a8c(0x1ed)](_0x209a8c(0x302)))!=null?_0x24b095:'','function':_0x2650ec,'unitId':_0x4b766f[_0x209a8c(0x13a)](),'argsOfFunction':JSON[_0x209a8c(0x2a3)](_0x6d4f),'invokeId':(_0x4c816a=_0x10a562[_0x209a8c(0x1e4)])!=null?_0x4c816a:'','executionId':(_0x2ea323=_0x10a562[_0x209a8c(0x31b)])!=null?_0x2ea323:''};try{const _0x37e663=await this[_0x209a8c(0x216)][_0x209a8c(0x2e0)](_0x28fc72,{'body':_0x14cc62});return _0x37e663[_0x209a8c(0x121)][_0x209a8c(0x31e)]&&_0x37e663[_0x209a8c(0x121)]['error'][_0x209a8c(0x134)]!==je['OK']?_0x209a8c(0x253):_0x37e663[_0x209a8c(0x121)][_0x209a8c(0x165)];}catch{return _0x209a8c(0x253);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x926bd0(0x1db)]),ue(0x1,a['Inject'](G['HTTPService'])),ue(0x2,a[_0x926bd0(0x347)])],exports[_0x926bd0(0x1eb)]),exports[_0x926bd0(0x261)]=xe,exports['IURLService']=Ee,exports[_0x926bd0(0x25f)]=we,exports[_0x926bd0(0xd0)]=is,exports[_0x926bd0(0x356)]=Be;
|