@univerjs-pro/collaboration-client-ui 0.8.1-nightly.202506161607 → 0.8.1-nightly.202506181607

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2fa518=_0x3677;(function(_0x280f10,_0x20eea7){const _0x36df42=_0x3677,_0x829f9c=_0x280f10();while(!![]){try{const _0x70a9d2=parseInt(_0x36df42(0x1d7))/0x1+-parseInt(_0x36df42(0x1cf))/0x2+-parseInt(_0x36df42(0x1cb))/0x3*(parseInt(_0x36df42(0x1d4))/0x4)+parseInt(_0x36df42(0x1cd))/0x5+parseInt(_0x36df42(0x1d6))/0x6*(parseInt(_0x36df42(0x1d5))/0x7)+-parseInt(_0x36df42(0x1d3))/0x8+parseInt(_0x36df42(0x1d0))/0x9*(parseInt(_0x36df42(0x1ce))/0xa);if(_0x70a9d2===_0x20eea7)break;else _0x829f9c['push'](_0x829f9c['shift']());}catch(_0x39922a){_0x829f9c['push'](_0x829f9c['shift']());}}}(_0x4301,0xa63c0));function _0x3677(_0x8fd173,_0x504816){const _0x430131=_0x4301();return _0x3677=function(_0x367736,_0x22b2a6){_0x367736=_0x367736-0x1ca;let _0x1851d0=_0x430131[_0x367736];return _0x1851d0;},_0x3677(_0x8fd173,_0x504816);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x2fa518(0x1cc)]{['runOnServer'](_0x3ffedd,_0x1b4388,..._0x4f82a1){const _0x5c933a=_0x2fa518;return this[_0x5c933a(0x1ca)][_0x5c933a(0x1d2)](t[_0x5c933a(0x1d1)])['runOnServer'](_0x3ffedd,_0x1b4388,{},..._0x4f82a1);}}function _0x4301(){const _0x5e25ce=['25384869WeSDhz','RemoteUniscriptService','get','8727520dFlifc','4RbwmMa','196ZXyAHU','57576SdiMXx','80975TGqYpT','extend','_injector','3452574RqvohU','FUniver','2107565PqsRmH','10kaIuAw','1338046dBTvIc'];_0x4301=function(){return _0x5e25ce;};return _0x4301();}e[_0x2fa518(0x1cc)][_0x2fa518(0x1d8)](c);
1
+ 'use strict';function _0x3247(){const _0xeb7080=['3795dKzoFR','156AbYxOU','83170lSigNv','@univerjs-pro/collaboration-client-ui','@univerjs/core/facade','runOnServer','RemoteUniscriptService','_injector','617344VQLHOK','FUniver','12PELabM','685888uHmeXD','3190190klLRlY','121405pEmXKq','423894KmKyHM','9GSebyw'];_0x3247=function(){return _0xeb7080;};return _0x3247();}function _0x2bd0(_0x48e26f,_0x31cfce){const _0x324774=_0x3247();return _0x2bd0=function(_0x2bd0e3,_0x58d396){_0x2bd0e3=_0x2bd0e3-0x148;let _0x3b780e=_0x324774[_0x2bd0e3];return _0x3b780e;},_0x2bd0(_0x48e26f,_0x31cfce);}const _0x25d1b0=_0x2bd0;(function(_0xbeafce,_0x1a2790){const _0x5e472b=_0x2bd0,_0x39c997=_0xbeafce();while(!![]){try{const _0x500b49=-parseInt(_0x5e472b(0x148))/0x1+parseInt(_0x5e472b(0x157))/0x2*(-parseInt(_0x5e472b(0x156))/0x3)+parseInt(_0x5e472b(0x150))/0x4*(parseInt(_0x5e472b(0x153))/0x5)+parseInt(_0x5e472b(0x154))/0x6+-parseInt(_0x5e472b(0x14e))/0x7+-parseInt(_0x5e472b(0x151))/0x8+-parseInt(_0x5e472b(0x155))/0x9*(-parseInt(_0x5e472b(0x152))/0xa);if(_0x500b49===_0x1a2790)break;else _0x39c997['push'](_0x39c997['shift']());}catch(_0x263475){_0x39c997['push'](_0x39c997['shift']());}}}(_0x3247,0x1a0f7));const t=require(_0x25d1b0(0x149)),e=require(_0x25d1b0(0x14a));class c extends e['FUniver']{[_0x25d1b0(0x14b)](_0x13e13c,_0x71bc10,..._0x569afa){const _0xa0945c=_0x25d1b0;return this[_0xa0945c(0x14d)]['get'](t[_0xa0945c(0x14c)])[_0xa0945c(0x14b)](_0x13e13c,_0x71bc10,{},..._0x569afa);}}e[_0x25d1b0(0x14f)]['extend'](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2af163=_0x293b;(function(_0x3fc7a7,_0x3cee23){const _0x5126fe=_0x293b,_0x28355d=_0x3fc7a7();while(!![]){try{const _0x106ba8=-parseInt(_0x5126fe(0x3a8))/0x1+-parseInt(_0x5126fe(0x229))/0x2*(-parseInt(_0x5126fe(0x1cf))/0x3)+-parseInt(_0x5126fe(0x20e))/0x4+parseInt(_0x5126fe(0x2ca))/0x5+-parseInt(_0x5126fe(0x388))/0x6*(-parseInt(_0x5126fe(0x341))/0x7)+-parseInt(_0x5126fe(0x1c1))/0x8+parseInt(_0x5126fe(0x179))/0x9;if(_0x106ba8===_0x3cee23)break;else _0x28355d['push'](_0x28355d['shift']());}catch(_0x2dc6d2){_0x28355d['push'](_0x28355d['shift']());}}}(_0x401a,0xd420e));var Ve=Object['defineProperty'],Xe=(_0x46d7d9,_0x335a4b,_0x4c5d0c)=>_0x335a4b in _0x46d7d9?Ve(_0x46d7d9,_0x335a4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c5d0c}):_0x46d7d9[_0x335a4b]=_0x4c5d0c,h=(_0x30916a,_0xeba42c,_0x55cb48)=>Xe(_0x30916a,typeof _0xeba42c!=_0x2af163(0x25e)?_0xeba42c+'':_0xeba42c,_0x55cb48);Object[_0x2af163(0x362)](exports,Symbol['toStringTag'],{'value':'Module'});const u=require(_0x2af163(0x2ae)),a=require(_0x2af163(0x389)),p=require(_0x2af163(0x163)),G=require('@univerjs/network'),b=require(_0x2af163(0x33c)),Ge=require(_0x2af163(0x158)),d=require('rxjs'),Y=require(_0x2af163(0x151)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x2af163(0x37c)),g=require(_0x2af163(0x288)),$=require(_0x2af163(0x3a9)),X=require('@univerjs/sheets-ui'),w=require('react/jsx-runtime'),T=require(_0x2af163(0x315)),D=require(_0x2af163(0x1bb)),M=require(_0x2af163(0x385)),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x28b079,_0x5d296b,_0x1accab,_0x1a7f54)=>{for(var _0x4c5aef=_0x1a7f54>0x1?void 0x0:_0x1a7f54?qe(_0x5d296b,_0x1accab):_0x5d296b,_0x32bcd1=_0x28b079['length']-0x1,_0x4a086d;_0x32bcd1>=0x0;_0x32bcd1--)(_0x4a086d=_0x28b079[_0x32bcd1])&&(_0x4c5aef=_0x4a086d(_0x4c5aef)||_0x4c5aef);return _0x4c5aef;},Te=(_0x418b29,_0x1de344)=>(_0x360af5,_0x47c622)=>_0x1de344(_0x360af5,_0x47c622,_0x418b29);let de=class extends a[_0x2af163(0x17a)]{constructor(_0x4f2121,_0x2bf588){const _0x29942d=_0x2af163;super(),this['_docClipboardService']=_0x4f2121,this[_0x29942d(0x1b4)]=_0x2bf588,this[_0x29942d(0x2bf)]();}['_init'](){const _0x133c6f=_0x2af163,_0x4b5376=this;this[_0x133c6f(0x1f8)](this[_0x133c6f(0x22c)][_0x133c6f(0x21f)]({'onBeforePasteImage':async _0x433af0=>{const _0x342ec8=_0x133c6f,_0xd483a2=await _0x4b5376[_0x342ec8(0x1b4)][_0x342ec8(0x18e)](_0x433af0);return _0xd483a2?{'source':_0xd483a2[_0x342ec8(0x331)],'imageSourceType':_0xd483a2['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x2af163(0x1f2)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x2af163(0x358),'jiqing.500','green.600',_0x2af163(0x156),_0x2af163(0x1fe),'yellow.400'];class me extends a[_0x2af163(0x1e8)]{constructor(){const _0x5d34d6=_0x2af163;super(...arguments),h(this,_0x5d34d6(0x2eb),new Map()),h(this,'_colorIndex',0x0);}[_0x2af163(0x188)](_0x136da0){const _0x1d8077=_0x2af163;if(this[_0x1d8077(0x2eb)]['has'](_0x136da0))return this['_assignedColors']['get'](_0x136da0);const _0x1f21cb=Oe[this[_0x1d8077(0x297)]];return this[_0x1d8077(0x297)]=(this[_0x1d8077(0x297)]+0x1)%Oe[_0x1d8077(0x2de)],this[_0x1d8077(0x2eb)]['set'](_0x136da0,_0x1f21cb),_0x1f21cb;}}function we(_0x1fa455){const _0x31296b=_0x2af163;let _0x4ce9df='';for(const _0x1550df of _0x1fa455){const {startOffset:_0x1aa89f,endOffset:_0x40d29a,isActive:_0x1cb440,rangeType:_0x61c7ab,segmentId:_0xc2a394,segmentPage:_0x5137c1}=_0x1550df;_0x4ce9df[_0x31296b(0x2de)]&&(_0x4ce9df+=','),_0x4ce9df+=_0x1aa89f+':'+_0x40d29a+':'+(_0x1cb440?'1':'0')+':'+_0x61c7ab+':'+_0xc2a394+':'+_0x5137c1;}return _0x4ce9df;}function Je(_0x1b92f9){const _0x3b19a3=_0x2af163,_0x2b3bb4=_0x1b92f9[_0x3b19a3(0x1ba)](','),_0x4b2119=[];for(const _0x12cb6c of _0x2b3bb4){const [_0x27391e,_0x40dda1,_0x38e4e9,_0x314e06,_0x293b9a,_0x36e5c8]=_0x12cb6c['split'](':');_0x4b2119[_0x3b19a3(0x314)]({'startOffset':Number(_0x27391e),'endOffset':Number(_0x40dda1),'collapsed':_0x27391e===_0x40dda1,'isActive':_0x38e4e9==='1','rangeType':_0x314e06===a[_0x3b19a3(0x1bf)][_0x3b19a3(0x323)]?a[_0x3b19a3(0x1bf)][_0x3b19a3(0x323)]:a[_0x3b19a3(0x1bf)][_0x3b19a3(0x26c)],'segmentId':typeof _0x293b9a==_0x3b19a3(0x2d2)?String(_0x293b9a):'','segmentPage':Number(_0x36e5c8!=null?_0x36e5c8:-0x1)});}return _0x4b2119['some'](_0x209a0a=>_0x209a0a[_0x3b19a3(0x2ba)])||(_0x4b2119[0x0][_0x3b19a3(0x2ba)]=!0x0),_0x4b2119;}class Ce extends a[_0x2af163(0x17a)]{constructor(){const _0x54ca76=_0x2af163;super(...arguments),h(this,_0x54ca76(0x347),new d[(_0x54ca76(0x201))](null)),h(this,_0x54ca76(0x165),this[_0x54ca76(0x347)][_0x54ca76(0x25f)]());}[_0x2af163(0x372)](_0x29099f){const _0x549db7=_0x2af163,{unitID:_0x3a7de9,memberID:_0x1d3583,textRanges:_0x343e09}=_0x29099f,_0x285c7c=we(_0x343e09);if(_0x285c7c==='')return;const _0x5b381b={'unitID':_0x3a7de9,'memberID':_0x1d3583,'selection':_0x285c7c};this['_collabCursorState$'][_0x549db7(0x355)](_0x5b381b);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0xe476d3,_0x36dafd,_0x5f127e,_0x1ca1a5)=>{const _0x30065d=_0x2af163;for(var _0x5cf459=_0x1ca1a5>0x1?void 0x0:_0x1ca1a5?Ze(_0x36dafd,_0x5f127e):_0x36dafd,_0x25af44=_0xe476d3[_0x30065d(0x2de)]-0x1,_0x39bd7b;_0x25af44>=0x0;_0x25af44--)(_0x39bd7b=_0xe476d3[_0x25af44])&&(_0x5cf459=_0x39bd7b(_0x5cf459)||_0x5cf459);return _0x5cf459;},L=(_0x14386a,_0x2ade1a)=>(_0x4eae6e,_0x253cdf)=>_0x2ade1a(_0x4eae6e,_0x253cdf,_0x14386a);const et=0x12c,tt=0x64;let fe=class extends a[_0x2af163(0x17a)]{constructor(_0x1f3579,_0x5dab00,_0x1e7c51,_0x45dfe3,_0x45c571,_0x31f30d,_0x5c87a8,_0x3f422c,_0x1f5931){const _0x3108f5=_0x2af163;super(),h(this,'_online',!0x1),h(this,_0x3108f5(0x2bf),!0x1),h(this,_0x3108f5(0x32a),new d[(_0x3108f5(0x201))](new Map())),h(this,_0x3108f5(0x3b5),this[_0x3108f5(0x32a)][_0x3108f5(0x25f)]()),h(this,_0x3108f5(0x1fb),new d[(_0x3108f5(0x201))]([])),h(this,'roomMembers$',this[_0x3108f5(0x1fb)][_0x3108f5(0x26a)](d[_0x3108f5(0x1c2)](et))),h(this,'_updateLocalCursor',a[_0x3108f5(0x2bc)](_0x54699d=>{const _0x2bfb09=_0x3108f5,_0x5b5b3c={'eventID':m[_0x2bfb09(0x1a7)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x2bfb09(0x377)](),'selection':we(_0x54699d)}};this[_0x2bfb09(0x1c4)][_0x2bfb09(0x2da)](_0x5b5b3c,this[_0x2bfb09(0x2a5)]);},tt)),(this[_0x3108f5(0x2a5)]=_0x1f3579,this[_0x3108f5(0x1c4)]=_0x5dab00,this[_0x3108f5(0x268)]=_0x1e7c51,this[_0x3108f5(0x3b4)]=_0x45dfe3,this[_0x3108f5(0x336)]=_0x45c571,this[_0x3108f5(0x3ab)]=_0x31f30d,this[_0x3108f5(0x39c)]=_0x5c87a8,this[_0x3108f5(0x2d0)]=_0x3f422c,this[_0x3108f5(0x236)]=_0x1f5931);}get[_0x2af163(0x253)](){const _0x1398ee=_0x2af163;return this[_0x1398ee(0x32a)]['getValue']();}get['roomMembers'](){const _0x4829ab=_0x2af163;return this['_roomMembers$'][_0x4829ab(0x38f)]();}[_0x2af163(0x176)](){const _0x4af433=_0x2af163;super[_0x4af433(0x176)](),this['_cursorInfo$'][_0x4af433(0x355)](new Map()),this['_cursorInfo$']['complete'](),this[_0x4af433(0x1fb)]['next']([]),this[_0x4af433(0x1fb)][_0x4af433(0x18f)]();}[_0x2af163(0x257)](){const _0x715d01=_0x2af163;this[_0x715d01(0x2bf)]||(this[_0x715d01(0x2bf)]=!0x0,this[_0x715d01(0x1c4)]['sessionStatus$'][_0x715d01(0x26a)](d['takeUntil'](this[_0x715d01(0x17b)]))['subscribe'](_0x503b5f=>{const _0x10d546=_0x715d01;_0x503b5f===u[_0x10d546(0x23c)][_0x10d546(0x1c6)]?this[_0x10d546(0x261)]():this['_toggleOffline']();}),this[_0x715d01(0x1c4)][_0x715d01(0x378)]['pipe'](d[_0x715d01(0x35c)](this[_0x715d01(0x17b)]))['subscribe'](_0x5d9a1e=>{const _0x220f5c=_0x715d01,_0x57448d=_0x5d9a1e[_0x220f5c(0x3a3)];_0x57448d===m[_0x220f5c(0x1a7)][_0x220f5c(0x3c3)]&&this[_0x220f5c(0x1b2)](_0x5d9a1e),_0x57448d===m[_0x220f5c(0x1a7)]['USERS_LEAVE']&&this[_0x220f5c(0x398)](_0x5d9a1e);}),this['disposeWithMe'](this[_0x715d01(0x236)][_0x715d01(0x35e)](_0x4cb1ef=>{const _0x110e02=_0x715d01,_0x2e3bea=_0x4cb1ef['params'];_0x2e3bea!=null&&this[_0x110e02(0x2a3)]&&_0x4cb1ef['id']===Y['SetTextSelectionsOperation']['id']&&_0x2e3bea['unitId']===this[_0x110e02(0x2a5)]&&_0x2e3bea[_0x110e02(0x2b0)]===!0x1&&_0x2e3bea['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x2e3bea[_0x110e02(0x2df)]);})),this[_0x715d01(0x3ab)][_0x715d01(0x165)][_0x715d01(0x26a)](d[_0x715d01(0x35c)](this[_0x715d01(0x17b)]))['subscribe'](_0x11bb5c=>{const _0x48c2f6=_0x715d01;if((_0x11bb5c==null?void 0x0:_0x11bb5c[_0x48c2f6(0x2a5)])!==this[_0x48c2f6(0x2a5)])return;const _0x9b39f6={'eventID':m[_0x48c2f6(0x1a7)][_0x48c2f6(0x3c3)],'data':_0x11bb5c};this[_0x48c2f6(0x1b2)](_0x9b39f6);}),this[_0x715d01(0x1f8)](this[_0x715d01(0x236)][_0x715d01(0x35e)](_0x5ab737=>{const _0x58ed55=_0x715d01;if(_0x5ab737[_0x58ed55(0x19d)]==null)return;const _0x5a3d94=_0x5ab737[_0x58ed55(0x19d)];if(_0x5ab737['id']!==Y[_0x58ed55(0x171)]['id']||_0x5a3d94[_0x58ed55(0x25c)]!==this[_0x58ed55(0x2a5)])return;const _0x14371b={'id':'doc.mutation.rich-text-editing','params':_0x5a3d94},_0x5d0a75=this[_0x58ed55(0x253)];for(const [_0x518290,_0x14209b]of _0x5d0a75){const _0x5b1360={'id':_0x58ed55(0x2a9),'params':{'unitId':this[_0x58ed55(0x2a5)],'actions':null,'textRanges':_0x14209b[_0x58ed55(0x2df)]}},_0x5bb4de=this[_0x58ed55(0x39c)][_0x58ed55(0x2ce)](_0x14371b,_0x5b1360,!0x1);if(m['isTransformMutationFailure'](_0x5bb4de))throw _0x5bb4de[_0x58ed55(0x23e)];_0x5d0a75[_0x58ed55(0x38c)](_0x518290,{..._0x14209b,'ranges':_0x5bb4de[_0x58ed55(0x263)]['params'][_0x58ed55(0x206)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x5d0a75);});})));}[_0x2af163(0x1b2)](_0x48d3cd){const _0x51c177=_0x2af163;var _0x5eedf6,_0x1be118;const {memberID:_0x519e5f,selection:_0x498f36}=_0x48d3cd[_0x51c177(0x375)],_0x1f7a4e=Je(_0x498f36),_0xbae4db=(_0x1be118=(_0x5eedf6=this[_0x51c177(0x336)][_0x51c177(0x231)](this[_0x51c177(0x2a5)],_0x519e5f))==null?void 0x0:_0x5eedf6[_0x51c177(0x17c)])!=null?_0x1be118:'Unknown\x20user',_0xff47ed={'color':this[_0x51c177(0x3b4)][_0x51c177(0x188)](_0x519e5f),'name':_0xbae4db,'ranges':_0x1f7a4e},_0x53f99b=this['cursorInfo'];_0x53f99b['set'](_0x519e5f,_0xff47ed),this['_cursorInfo$'][_0x51c177(0x355)](_0x53f99b);}['_onCursorDelete'](_0x141799){const _0x202fa7=_0x2af163,{memberID:_0x5790c0}=_0x141799[_0x202fa7(0x375)],_0x588350=this['cursorInfo'];_0x588350[_0x202fa7(0x1dd)](_0x5790c0),this[_0x202fa7(0x32a)][_0x202fa7(0x355)](_0x588350);}[_0x2af163(0x261)](){const _0x4e804f=_0x2af163;var _0x318531;if(this['_online']=!0x0,((_0x318531=this[_0x4e804f(0x2d0)][_0x4e804f(0x283)]())==null?void 0x0:_0x318531[_0x4e804f(0x2fa)]())!==this[_0x4e804f(0x2a5)])return;const _0x25685a=this[_0x4e804f(0x268)][_0x4e804f(0x18c)](Y[_0x4e804f(0x216)])[_0x4e804f(0x1b9)]();Array[_0x4e804f(0x2ad)](_0x25685a)&&_0x25685a[_0x4e804f(0x2de)]>0x0&&this[_0x4e804f(0x1bc)](_0x25685a);}[_0x2af163(0x200)](){const _0x11157e=_0x2af163;this[_0x11157e(0x2a3)]=!0x1;}};fe=Qe([L(0x2,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),L(0x3,a[_0x2af163(0x30b)](me)),L(0x4,a[_0x2af163(0x30b)](u[_0x2af163(0x273)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x2af163(0x1e6)]),L(0x7,a[_0x2af163(0x3ad)]),L(0x8,a[_0x2af163(0x321)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x559885,_0x51adaf,_0x33fc79,_0x532078)=>{const _0x19a61e=_0x2af163;for(var _0x3ce04f=_0x532078>0x1?void 0x0:_0x532078?st(_0x51adaf,_0x33fc79):_0x51adaf,_0x1e18d2=_0x559885[_0x19a61e(0x2de)]-0x1,_0xea9016;_0x1e18d2>=0x0;_0x1e18d2--)(_0xea9016=_0x559885[_0x1e18d2])&&(_0x3ce04f=_0xea9016(_0x3ce04f)||_0x3ce04f);return _0x3ce04f;},A=(_0x4c1734,_0x320b4e)=>(_0x1cdb51,_0x8deca3)=>_0x320b4e(_0x1cdb51,_0x8deca3,_0x4c1734);const nt=0x12c,rt=0x64,ot=()=>{let _0x10ec2d=[],_0x1d03ef=!0x1;return _0x311414=>{const _0x29f9e5=_0x293b;_0x10ec2d[_0x29f9e5(0x314)](_0x311414),_0x1d03ef||(_0x1d03ef=!0x0,setTimeout(()=>{const _0x110e78=_0x29f9e5;_0x10ec2d[_0x110e78(0x237)](_0x73f9cf=>_0x73f9cf()),_0x10ec2d=[],_0x1d03ef=!0x1;}));};};let Se=class extends a[_0x2af163(0x17a)]{constructor(_0x10508d,_0x16ee9c,_0x176a6d,_0x367383,_0x19d888,_0x204911,_0x3251c6,_0x1b0ddf){const _0x20891f=_0x2af163;super(),h(this,_0x20891f(0x2a3),!0x1),h(this,_0x20891f(0x2bf),!0x1),h(this,_0x20891f(0x32a),new d[(_0x20891f(0x201))](new Map())),h(this,_0x20891f(0x3b5),this[_0x20891f(0x32a)][_0x20891f(0x25f)]()),h(this,'_roomMembers$',new d[(_0x20891f(0x201))]([])),h(this,_0x20891f(0x24a),this[_0x20891f(0x1fb)][_0x20891f(0x26a)](d['debounceTime'](nt))),h(this,_0x20891f(0x1bc),a[_0x20891f(0x2bc)]((_0x3da8e4,_0x178e47)=>{const _0x148647=_0x20891f,_0x32d44c={'eventID':m['CollaborationEvent'][_0x148647(0x3c3)],'data':{'unitID':this[_0x148647(0x2a5)],'memberID':this[_0x148647(0x1c4)][_0x148647(0x377)](),'selection':Ee[_0x148647(0x37a)](_0x3da8e4,_0x178e47[_0x148647(0x186)])}};this[_0x148647(0x1c4)][_0x148647(0x2da)](_0x32d44c,this[_0x148647(0x2a5)]);},rt)),(this['unitID']=_0x10508d,this['_session']=_0x16ee9c,this[_0x20891f(0x268)]=_0x176a6d,this[_0x20891f(0x3b4)]=_0x367383,this[_0x20891f(0x336)]=_0x19d888,this['_univerInstanceService']=_0x204911,this[_0x20891f(0x236)]=_0x3251c6,this[_0x20891f(0x32b)]=_0x1b0ddf);}get[_0x2af163(0x253)](){const _0x5f191c=_0x2af163;return this[_0x5f191c(0x32a)][_0x5f191c(0x38f)]();}get[_0x2af163(0x3aa)](){const _0x4552b1=_0x2af163;return this[_0x4552b1(0x1fb)]['getValue']();}[_0x2af163(0x176)](){const _0x11311a=_0x2af163;super['dispose'](),this[_0x11311a(0x32a)][_0x11311a(0x355)](new Map()),this['_cursorInfo$'][_0x11311a(0x18f)](),this[_0x11311a(0x1fb)]['next']([]),this[_0x11311a(0x1fb)][_0x11311a(0x18f)]();}[_0x2af163(0x257)](){const _0x4ed0d1=_0x2af163;this[_0x4ed0d1(0x2bf)]||(this[_0x4ed0d1(0x2bf)]=!0x0,this[_0x4ed0d1(0x1c4)]['sessionStatus$'][_0x4ed0d1(0x26a)](d[_0x4ed0d1(0x35c)](this['dispose$']))[_0x4ed0d1(0x2fe)](_0x384b6f=>{const _0x4bf417=_0x4ed0d1;_0x384b6f===u[_0x4bf417(0x23c)]['ONLINE']?this[_0x4bf417(0x261)]():this[_0x4bf417(0x200)]();}),this['_session'][_0x4ed0d1(0x378)][_0x4ed0d1(0x26a)](d[_0x4ed0d1(0x35c)](this[_0x4ed0d1(0x17b)]))[_0x4ed0d1(0x2fe)](_0x33ee09=>{const _0x1a7fa8=_0x4ed0d1,_0x1bc7eb=_0x33ee09[_0x1a7fa8(0x3a3)];_0x1bc7eb===m[_0x1a7fa8(0x1a7)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x33ee09),_0x1bc7eb===m[_0x1a7fa8(0x1a7)][_0x1a7fa8(0x38e)]&&this['_onCursorDelete'](_0x33ee09);}),this[_0x4ed0d1(0x38b)](),this[_0x4ed0d1(0x1f8)](this['_commandService'][_0x4ed0d1(0x35e)](_0x3e4a6c=>{const _0x3a6987=_0x4ed0d1;if(this['_online']&&_0x3e4a6c['id']===g['SetSelectionsOperation']['id']&&_0x3e4a6c[_0x3a6987(0x19d)]['unitId']===this[_0x3a6987(0x2a5)]){const _0x737558=_0x3e4a6c['params'];this[_0x3a6987(0x1bc)](_0x737558['subUnitId'],_0x737558[_0x3a6987(0x2f4)][0x0]);}})));}[_0x2af163(0x1b2)](_0xb67688){const _0x3ff0c8=_0x2af163;var _0x5ce75a,_0x144f6f;const {memberID:_0x13a939,selection:_0x39320c}=_0xb67688['data'],{sheetName:_0x2c75d5,range:_0x1d9d12}=Ee[_0x3ff0c8(0x2b4)](_0x39320c),_0x2c2ff3={'name':(_0x144f6f=(_0x5ce75a=this['_memberService']['getMember'](this[_0x3ff0c8(0x2a5)],_0x13a939))==null?void 0x0:_0x5ce75a['name'])!=null?_0x144f6f:_0x3ff0c8(0x348),'range':this[_0x3ff0c8(0x28a)](_0x2c75d5,_0x1d9d12),'sheetID':_0x2c75d5,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x13a939),'selection':_0x39320c},_0x3d7c00=this[_0x3ff0c8(0x253)];_0x3d7c00[_0x3ff0c8(0x38c)](_0x13a939,_0x2c2ff3),this[_0x3ff0c8(0x32a)][_0x3ff0c8(0x355)](_0x3d7c00);}['_onCursorDelete'](_0x11a62e){const _0x2345d8=_0x2af163,{memberID:_0x4c50b6}=_0x11a62e[_0x2345d8(0x375)],_0x5502f2=this['cursorInfo'];_0x5502f2[_0x2345d8(0x1dd)](_0x4c50b6),this[_0x2345d8(0x32a)][_0x2345d8(0x355)](_0x5502f2);}[_0x2af163(0x28a)](_0x24efcc,_0x18e2bd){const _0xee4886=_0x2af163;var _0x4c1cbd,_0x28b653;const _0x48a492=(_0x28b653=(_0x4c1cbd=this[_0xee4886(0x2d0)][_0xee4886(0x26e)](this[_0xee4886(0x2a5)]))==null?void 0x0:_0x4c1cbd['getSheetBySheetId'](_0x24efcc))==null?void 0x0:_0x28b653[_0xee4886(0x157)]();return(_0x48a492==null?void 0x0:_0x48a492[_0xee4886(0x243)](_0x14cc02=>a[_0xee4886(0x217)][_0xee4886(0x1d8)](_0x14cc02,_0x18e2bd)))||_0x18e2bd;}[_0x2af163(0x38b)](){const _0x43d5c6=_0x2af163,_0x5c9bdd=new a['DisposableCollection'](),_0x229f3f=ot(),_0x2e8be6=()=>{const _0x399f86=_0x293b;_0x5c9bdd[_0x399f86(0x176)]();const _0x15addf=(_0x202052,_0x2edb22,_0x21894c,_0x362f13)=>{const _0x226f38=_0x399f86;let _0x3d2410=[];switch(_0x202052['id']){case g['EffectRefRangId'][_0x226f38(0x245)]:{_0x3d2410=g[_0x226f38(0x2e1)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)][_0x226f38(0x2be)]:{_0x3d2410=g[_0x226f38(0x208)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)][_0x226f38(0x26d)]:{_0x3d2410=g[_0x226f38(0x2c6)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)][_0x226f38(0x353)]:{_0x3d2410=g[_0x226f38(0x29c)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)]['InsertRangeMoveRightCommandId']:{_0x3d2410=g['handleInsertRangeMoveRight'](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)]['InsertRowCommandId']:{_0x3d2410=g['handleInsertRow'](_0x202052,_0x362f13);break;}case g['EffectRefRangId'][_0x226f38(0x152)]:{_0x3d2410=g[_0x226f38(0x344)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)]['RemoveColCommandId']:{_0x3d2410=g['handleIRemoveCol'](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)][_0x226f38(0x1dc)]:{_0x3d2410=g[_0x226f38(0x15a)](_0x202052,_0x362f13);break;}}const _0x49039b=g[_0x226f38(0x36d)](_0x3d2410,_0x362f13),_0x1e8cba=this[_0x226f38(0x253)][_0x226f38(0x18c)](_0x2edb22);if(_0x1e8cba&&_0x49039b){const _0x298bc4={..._0x1e8cba,'range':_0x49039b};this[_0x226f38(0x253)]['set'](_0x2edb22,_0x298bc4),_0x229f3f(()=>{const _0x121f07=_0x226f38,_0x5a09de=this[_0x121f07(0x32b)][_0x121f07(0x299)](_0x49039b,_0x56da9d=>(_0x5a09de['dispose'](),_0x15addf(_0x56da9d,_0x2edb22,_0x21894c,_0x49039b)));_0x5c9bdd[_0x121f07(0x199)](_0x5a09de);});}return{'redos':[],'undos':[]};};this[_0x399f86(0x253)][_0x399f86(0x237)]((_0x19ae80,_0x5edc5c)=>{const _0x6c3be9=_0x399f86,{range:_0x319ff2,sheetID:_0x5804c5}=_0x19ae80,_0x45e758=this[_0x6c3be9(0x32b)][_0x6c3be9(0x299)](_0x319ff2,_0x3ff0da=>(_0x45e758[_0x6c3be9(0x176)](),_0x15addf(_0x3ff0da,_0x5edc5c,_0x5804c5,_0x319ff2)));_0x5c9bdd[_0x6c3be9(0x199)](_0x45e758);});};this[_0x43d5c6(0x1f8)](a['toDisposable'](this[_0x43d5c6(0x32a)][_0x43d5c6(0x2fe)](()=>{_0x2e8be6();})));}[_0x2af163(0x261)](){const _0x12e982=_0x2af163;var _0x298f8c,_0x26d8ae;if(this[_0x12e982(0x2a3)]=!0x0,((_0x298f8c=this[_0x12e982(0x2d0)][_0x12e982(0x283)]())==null?void 0x0:_0x298f8c[_0x12e982(0x2fa)]())!==this[_0x12e982(0x2a5)])return;const _0x420ca7=(_0x26d8ae=this[_0x12e982(0x268)][_0x12e982(0x18c)](g[_0x12e982(0x2e5)])['getCurrentSelections']())==null?void 0x0:_0x26d8ae[0x0],_0x4ee661=this['_univerInstanceService'][_0x12e982(0x2f0)](a[_0x12e982(0x373)][_0x12e982(0x23a)])[_0x12e982(0x338)]();_0x420ca7&&_0x4ee661&&this[_0x12e982(0x1bc)](_0x4ee661['getSheetId'](),_0x420ca7);}[_0x2af163(0x200)](){const _0x3da8e7=_0x2af163;this[_0x3da8e7(0x2a3)]=!0x1;}};Se=it([A(0x2,a[_0x2af163(0x30b)](a['Injector'])),A(0x3,a['Inject'](me)),A(0x4,a['Inject'](u[_0x2af163(0x273)])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a[_0x2af163(0x30b)](g[_0x2af163(0x211)]))],Se);var at=Object[_0x2af163(0x330)],ct=(_0x88103e,_0x2c7902,_0x5c67b1,_0x58bc7c)=>{for(var _0x4894c8=_0x58bc7c>0x1?void 0x0:_0x58bc7c?at(_0x2c7902,_0x5c67b1):_0x2c7902,_0x233baf=_0x88103e['length']-0x1,_0x5c6a6a;_0x233baf>=0x0;_0x233baf--)(_0x5c6a6a=_0x88103e[_0x233baf])&&(_0x4894c8=_0x5c6a6a(_0x4894c8)||_0x4894c8);return _0x4894c8;},ie=(_0x115ab1,_0x4c2dde)=>(_0x3eac13,_0x2f82de)=>_0x4c2dde(_0x3eac13,_0x2f82de,_0x115ab1);let x=class extends a['RxDisposable']{constructor(_0x5b9d70,_0xced5c2,_0x2e0469){const _0x262569=_0x2af163;super(),h(this,_0x262569(0x346),new Map()),h(this,_0x262569(0x294),new d[(_0x262569(0x25d))]()),(this[_0x262569(0x2d0)]=_0x5b9d70,this['_injector']=_0xced5c2,this[_0x262569(0x27d)]=_0x2e0469,this['_init']());}[_0x2af163(0x176)](){const _0x1a9722=_0x2af163;super[_0x1a9722(0x176)](),this['_entityInit$'][_0x1a9722(0x18f)](),this[_0x1a9722(0x346)]['forEach'](_0x235770=>_0x235770[_0x1a9722(0x176)]());}[_0x2af163(0x185)](_0x2cd21d){const _0x34f890=_0x2af163;return this[_0x34f890(0x346)][_0x34f890(0x2cd)](_0x2cd21d)?this['_entities'][_0x34f890(0x18c)](_0x2cd21d)[_0x34f890(0x3b5)]:this[_0x34f890(0x294)][_0x34f890(0x26a)](d[_0x34f890(0x3ba)](_0x12de90=>_0x12de90[_0x34f890(0x2a5)]===_0x2cd21d),d['switchMap'](_0x39dfbf=>_0x39dfbf[_0x34f890(0x3b5)]));}['_init'](){const _0x2cab26=_0x2af163;this[_0x2cab26(0x2d0)][_0x2cab26(0x212)](a[_0x2cab26(0x373)]['UNIVER_SHEET'])[_0x2cab26(0x26a)](d[_0x2cab26(0x35c)](this[_0x2cab26(0x17b)]))[_0x2cab26(0x2fe)](async _0x3e1f3f=>{const _0x4f3d8f=_0x2cab26,_0x4965ad=_0x3e1f3f[_0x4f3d8f(0x2fa)](),_0x494ddb=await this['_startSheetCollabCursor'](_0x4965ad);this[_0x4f3d8f(0x294)][_0x4f3d8f(0x355)](_0x494ddb),this[_0x4f3d8f(0x346)][_0x4f3d8f(0x38c)](_0x4965ad,_0x494ddb);}),this[_0x2cab26(0x2d0)][_0x2cab26(0x212)](a[_0x2cab26(0x373)][_0x2cab26(0x31b)])[_0x2cab26(0x26a)](d['takeUntil'](this[_0x2cab26(0x17b)]))[_0x2cab26(0x26a)](d[_0x2cab26(0x3ba)](_0x23aaa2=>!_0x23aaa2[_0x2cab26(0x2fa)]()[_0x2cab26(0x195)]('__')))[_0x2cab26(0x2fe)](async _0x4978c0=>{const _0x19d26d=_0x2cab26,_0x35d3d2=_0x4978c0[_0x19d26d(0x2fa)](),_0x4ec3a0=await this[_0x19d26d(0x343)](_0x35d3d2);this[_0x19d26d(0x294)]['next'](_0x4ec3a0),this[_0x19d26d(0x346)][_0x19d26d(0x38c)](_0x35d3d2,_0x4ec3a0);}),d[_0x2cab26(0x21e)](this['_univerInstanceService'][_0x2cab26(0x14a)](a[_0x2cab26(0x373)][_0x2cab26(0x31b)]),this[_0x2cab26(0x2d0)]['getTypeOfUnitDisposed$'](a[_0x2cab26(0x373)][_0x2cab26(0x23a)]))['pipe'](d['takeUntil'](this['dispose$']))[_0x2cab26(0x2fe)](_0x229c9e=>{const _0x2f11e6=_0x2cab26,_0x97cae9=_0x229c9e[_0x2f11e6(0x2fa)](),_0x24ed83=this[_0x2f11e6(0x346)][_0x2f11e6(0x18c)](_0x97cae9);_0x24ed83&&(_0x24ed83[_0x2f11e6(0x176)](),this[_0x2f11e6(0x346)][_0x2f11e6(0x1dd)](_0x97cae9));});}async[_0x2af163(0x39e)](_0x1f9002){const _0x1cfc01=_0x2af163,_0x4bea83=await this[_0x1cfc01(0x27d)][_0x1cfc01(0x25a)](_0x1f9002),_0x21d233=this[_0x1cfc01(0x268)][_0x1cfc01(0x34e)](Se,_0x1f9002,_0x4bea83);return _0x21d233[_0x1cfc01(0x257)](),_0x21d233;}async[_0x2af163(0x343)](_0x24fd81){const _0x423d3f=_0x2af163,_0x9b3fae=await this[_0x423d3f(0x27d)]['requireSession'](_0x24fd81),_0x5c2126=this[_0x423d3f(0x268)][_0x423d3f(0x34e)](fe,_0x24fd81,_0x9b3fae);return _0x5c2126[_0x423d3f(0x257)](),_0x5c2126;}};function _0x401a(){const _0x204784=['registerRefRange','UnitStatus','deepClone','handleInsertRangeMoveDown','show','NodePositionConvertToRectRange','TEXT_RANGE_LAYER_INDEX','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','backgroundColor','_beforeCloseService','_online','_initDependencies','unitID','Warning','clearTimeout','PY_RUNTIME_SCRIPT_ERROR','doc.mutation.rich-text-editing','getColorFromTheme','_notificationService','_handleJoinEvent','isArray','@univerjs-pro/collaboration-client','_getSaveTimeout','isEditing','toString','_collabCursorController','addObject','deserializeRangeWithSheet','sheetID','WebURLService','collaboration-client-ui.config','executionId','setItem','isActive','Injector','debounce','from','DeleteRangeMoveUpCommandId','_init','getSheetObject','mergeOverrideWithDependencies','M0\x200H16V16H0z','endRow','fillText','restore','handleInsertCol','collabStatus.synced','getUndoRedoMutationParamsCache','_httpService','4786700HSdsWg','setInterval','session.collaboration-timeout','has','transformMutation','TOO_MANY_REQUESTS','_univerInstanceService','NOT_FOUND','string','UNRECOGNIZED','RevisionService','_instanceService','VIEW_MAIN','getRelativeToViewportCoord','MUTATION','EMAIL_HAS_BEEN_BOUND','send','_refreshCollabCursors','engine','wsSessionTicketUrl','length','ranges','UniverCollaborationClientUIPlugin','handleDeleteRangeMoveLeft','LOCAL_CACHE_INTERVAL_KEY','_initEntityListener','_cachedData','SheetsSelectionsService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_heartbeatTimer','setStateCache','collab-text-anchor-','_initStatusComponent','_assignedColors','executeCommand','focused$','registerDependencies','collab-text-range-','getCurrentUnitForType','PERMISSION_DENIED','permission.title','0\x200\x2017\x2016','selections','FromArray','urlChange$','MessageType','type','translate(.97)','getUnitId','hasOwnProperty','_revisionService','pushState','subscribe','YUUMI_TABLE_NOT_FOUND_IN_UNIT','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','OnLineIcon','getCoordByCell','INVALID_INVITE_CODE','getCollabEntity$','APPLY_REJECT','http://www.w3.org/2000/svg','enableLocalCache','getVpScrollXYInfoByPosToVp','MOBILE_HAS_BEEN_BOUND','INVITE_CODE_HAS_BEEN_UES','Inject','m1Prime','_id','LOGIN_FAILED','_hover','memberID','ENSURE_SNAPSHOT_EXECUTION','assign','none','push','@univerjs/ui','_shapes','shareReplay','getLocalCacheKey','key','CollaborationSocketService','UNIVER_DOC','OFFLINE','_drawTextRange','ILocalCacheService','OTHER_CLIENTS_EDITING','...','ICommandService','SheetSkeletonManagerService','TEXT','YUUMI_ASYNCIO_CANCELLED','INVITE_CODE_ALREADY_BOUND','drawWith','storage','UniverIcon','_status$','_cursorInfo$','_refRangeService','ISocketService','_registerDependencies','transformIMECache','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getOwnPropertyDescriptor','source','_handleHover','_range','code','APPLY_PERMISSION_DENIED','_memberService','CollaborationStatusDisplay','getActiveSheet','_textBubble','_removeCollabCursors','_initCommandExecutedListener','@univerjs/docs-ui','switchMap','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CollaborationStatus','getOwnPropertySymbols','8535793vaTuKS','hovered','_startDocCollabCursor','handleMoveRange','getItem','_entities','_collabCursorState$','Unknown\x20user','YUUMI_ALL_TABLES_IS_INVALID','UNAUTHENTICATED','_disabled','startColumn','height','createInstance','getActiveRange','then','call','_lastPointer','InsertRangeMoveDownCommandId','runId','next','setParam','_initEvent','purple.300','parse','RegularPolygon','_eventUnsubscribe','takeUntil','EffectRefRangId','onCommandExecuted','addObjects','NodePositionConvertToCursor','entries','defineProperty','onPointerLeave$','arc','width','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','min','_selfUnitIDs','row','_dataLoaderService','currentSkeleton$','displayName','runRefRangeMutations','_getScale','on-line-icon_clip0_910_349','closePath','_handleEvent','syncEditingCollabCursor','UniverInstanceType','INVALID_ARGUMENT','data','_updateSubUnitFromURLParams','getMemberID','event$','/run/','serializeRangeWithSheet','collabStatus.notCollab','@univerjs/engine-formula','replaceState','_cursorShapes','attrs','use','CollaborationDataLoaderController','HTTPService','entityInit$','getCurrentRevOfUnit','react','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CONNECTOR_DATA_TOO_LARGE','6OTaOik','@univerjs/core','_anchorDot','_onRefRangeChange','set','_transformPreviousActiveRange','USERS_LEAVE','getValue','_transformHistoryAndStateStack','CollaborationController','_config','SetDocZoomRatioOperation','getColor','_handleLeaveEvent','div','getConfig','_onCursorDelete','defIds','SetWorksheetActivateCommand','_transformUndoRedoStack','_transformService','DesktopCollaborationStatusDisplayController','_startSheetCollabCursor','concat','_color','_docSyncEditingCollabCursorService','svg','eventID','saveOfflineData','getRangePointData','registerRenderModule','indexOf','99635KqaAPV','rxjs/operators','roomMembers','_syncEditingCollabCursorService','_updateURLWithCurrentState','IUniverInstanceService','_unitStatus','lineTo','[CollaborationDataLoaderController]','WebBrowserSingleActiveUnitService','runOnServer','LICENSE_IMPORT_SIZE_EXCEEDED','_colorAssignService','cursorInfo$','labelPosition','setAlpha','_saveTaskMap','disposeUnit','filter','findNodePositionByCharIndex','xlink:href','off-line-icon','color','beginPath','_sheetSkeletonManagerService','isTransformMutationsWithChangesetSuccess','CHANGESET_REVISION_CONFILICT','UPDATE_CURSOR','activeSheet$','transformMutationsWithChangeset','_configService','undoState','icon','size','trim','getTypeOfUnitDisposed$','href','random','transform','getAncestorScale','JOIN_ROOM_FAILED','Tools','@univerjs/docs','MoveRangeCommandId','ALREADY_EXISTS','all','useRef','red.300','getMergeData','@univerjs/drawing','_updateCollabCursors','handleIRemoveRow','registerBeforeClose','top','IRenderManagerService','post','YUUMI_UNABLE_LOAD_URL','Shape','combineLatest','fill','@univerjs/engine-render','reconnect','collabCursorState$','subunit','_createSocketURL','IMessageService','AWAITING_WITH_PENDING','collabStatus.syncing','mutations','ColorKit','ISnapshotServerService','DocCollaborationEntity','SHEET_VIEWPORT_KEY','debug','RichTextEditingMutation','DEFAULT_WS_SESSION_TICKET_URL','ticket','getParam','getCurrent','dispose','setTimeout','_logService','4639950tyNrNH','RxDisposable','dispose$','name','_hideTimer','saveTaskMap','disableLocalCache','_context','_setupBeforeClosingHandler','application/json','SUBMIT_CHANGESET_TIMEOUT','forwardRef','getCollabCursors$','range','includes','assignAColorForMemberID','_localStorageService','RemoteUniscriptService','off-line-icon_clip0_910_343','get','getRenderById','saveImage','complete','IConfigService','transformStateCache','_scene','history','search','startsWith','unit','_urlService','onRendered','add','_messageService','clipPath','exhaustSavingTask','params','univer-mr-2\x20univer-flex\x20univer-text-xl','APPLY_REVISION_CONFILICT','_removeClearOtherTimer','CollaborationUIEventId','WECHAT_HAS_BEEN_BOUND','UniverCollaborationClientPlugin','_getSessionTicket','getSheetBySheetId','values','CollaborationEvent','endColumn','LICENSE_MAX_UNITS_EXCEEDED','0\x200\x2016\x2016','_docTransformSelectionsService','mapTo','ILocalStorageService','newValue','throttleTime','_initStatusListener','Tooltip','_onCursorUpdate','location','_imageIoService','flatMap','currentTheme$','jsx','fillRule','getDocRanges','split','@univerjs/design','_updateLocalCursor','_unitOnClients','_docStateChangeManagerService','DOC_RANGE_TYPE','status$','2915176uHWTCK','debounceTime','hide','_session','AWAITING','ONLINE','url(#off-line-icon_clip0_910_343)','measureText','searchParams','generateRandomId','IUIPartsService','Workbook','onLocalMutation','mask','30117KYxABP','_drawAnchor','toRgbString','NO_OTHER_CLIENTS_EDITING','unsubscribe','_hovered','_draw','_getAnchorBounding','transformRemoteChangeset','contains','onPointerEnter$','substring','CONFLICT','RemoveRowCommandId','delete','collabStatus.conflict','WebSocketService','_getSheetObject','_docTransformIMECacheService','_scheduleSaving','evenodd','1em','path','ITransformService','currentColor','Disposable','defs','Optional','_collaborationController','text','setShapeProps','createElement','colorChannel1','save','addHandlerCallback','IDocClipboardService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INTERNAL_ERROR','function','APPLY_NON_SEQUENTIAL_REVISION','_initResize','disposeWithMe','_handleHeartbeatEvent','sessionTicket','_roomMembers$','collaboration.single-unit.warning','CollaborationUIEventService','blue.400','selection','_toggleOffline','BehaviorSubject','_anchor','fromEvent','loadUnit','PENDING','textRanges','Rect','handleDeleteRangeMoveUp','_backgroundColor','touchDependencies','FETCH_MISS','COLORS','collab-rect-range-','5517828MVGNcY','max','moveTo','RefRangeService','getTypeOfUnitAdded$','invokeId','actions','getSheetId','DocSelectionManagerService','Rectangle','YUUMI_NO_CUBOID_FOR_QUESTION','DependentOn','skeleton','registerComponent','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_docTransformStateCacheService','merge','addClipboardHook','map','_setupSubUnitSync','onTransformChange$','createSocket','setUndoRedoMutationParamsCache','url(#$1','_renderManagerService','UNDEFINED','CollaborationSessionService','4rpeebh','redoState','_scheduleHeartbeat','_docClipboardService','LICENSE_EXPORT_SIZE_EXCEEDED','_themeService','bottom','IRemoteInstanceService','getMember','_collaborationUIEventService','getViewport','className','DocIMEInputManagerService','_commandService','forEach','_cursors','distinctUntilChanged','UNIVER_SHEET','body','SessionStatus','collabStatus.offline','error','COMPLETION_FINISHED','whenReady','removeParam','USER_NOT_INVITED_CODE','find','TRANSFORM_CHANGE_OBSERVABLE_TYPE','DeleteRangeMoveLeftCommandId','triggerDblclick','collaboration.closeRoom','Error','loadOfflineData','roomMembers$','ThemeService','_send','fillStyle','children','useDependency','isTransformMutationFailure','YUUMI_RATE_OVER_LIMIT','SOCKET_FAILED','cursorInfo','_registerRenderDependencies','LocaleService','DocStateChangeManagerService','init','_saveCache','_ensureSubject','requireSession','_cursor','unitId','Subject','symbol','asObservable','_document','_toggleOnline','_render','m2Prime','useObservable','_drawRectRange','_name','HEADER_MENU','_injector','with','pipe','override','RECT','InsertColCommandId','getUniverSheetInstance','INotificationService','propertyIsEnumerable','extend','getUnhiddenWorksheets','MemberService','YUUMI_SUBSCRIPTION_NOT_FOUND','_labelPosition','IURLService','getStateCache','LOCAL_CACHE_INTERVAL','column','round','subscribeEvent','ACTIVE_UNIT_EVENT_CHANNEL','_collabSessionService','_uiPartsService','idSuffix','tag','addEventListener','LICENSE_DISTRO_REJECTED','getFocusedUnit','DocSkeletonManagerService','YUUMI_AI_RUN_FAILED','black','stringify','@univerjs/sheets','_scheduleClearOtherTimer','_getMergeRange','_clearOtherTimers','INVITE_CODE_REQUIRED','Failed','YUUMI_URL_COL_OUT_OF_RANGE','_localeService','createIdentifier','NOT_COLLAB','url(#on-line-icon_clip0_910_349)','origin','_entityInit$','_localCacheService','unshift','_colorIndex','white'];_0x401a=function(){return _0x204784;};return _0x401a();}x=ct([ie(0x0,a[_0x2af163(0x3ad)]),ie(0x1,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),ie(0x2,a['Inject'](u[_0x2af163(0x228)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x260234,_0xdacea9){const _0x21f1f9=_0x2af163;let {radius:_0x3d1605,width:_0x425e69,height:_0x39dcbd}=_0xdacea9;_0x3d1605=_0x3d1605!=null?_0x3d1605:0x0,_0x425e69=_0x425e69!=null?_0x425e69:0x1e,_0x39dcbd=_0x39dcbd!=null?_0x39dcbd:0x1e;let _0x457542=0x0,_0x463141=0x0,_0xe83ec2=0x0;_0x457542=_0x463141=_0xe83ec2=Math[_0x21f1f9(0x367)](_0x3d1605,_0x425e69/0x2,_0x39dcbd/0x2),_0x260234[_0x21f1f9(0x3bf)](),_0x260234[_0x21f1f9(0x210)](_0x457542,0x0),_0x260234[_0x21f1f9(0x3af)](_0x425e69-_0x463141,0x0),_0x260234[_0x21f1f9(0x364)](_0x425e69-_0x463141,_0x463141,_0x463141,Math['PI']*0x3/0x2,0x0,!0x1),_0x260234[_0x21f1f9(0x3af)](_0x425e69,_0x39dcbd-_0xe83ec2),_0x260234[_0x21f1f9(0x364)](_0x425e69-_0xe83ec2,_0x39dcbd-_0xe83ec2,_0xe83ec2,0x0,Math['PI']/0x2,!0x1),_0x260234[_0x21f1f9(0x3af)](0x0,_0x39dcbd),_0x260234[_0x21f1f9(0x3af)](0x0,_0x457542),_0x260234[_0x21f1f9(0x364)](_0x457542,_0x457542,_0x457542,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x260234[_0x21f1f9(0x370)](),_0xdacea9['fill']&&(_0x260234['save'](),_0x260234[_0x21f1f9(0x24d)]=_0xdacea9[_0x21f1f9(0x162)],_0xdacea9[_0x21f1f9(0x1b8)]===_0x21f1f9(0x1e3)?_0x260234['fill'](_0x21f1f9(0x1e3)):_0x260234[_0x21f1f9(0x162)](),_0x260234[_0x21f1f9(0x2c5)]());}class ee extends p[_0x2af163(0x160)]{constructor(_0x206da6,_0x3841f9){const _0x1a7260=_0x2af163;super(_0x206da6,_0x3841f9),h(this,'color'),h(this,_0x1a7260(0x1ec)),(this[_0x1a7260(0x3be)]=_0x3841f9==null?void 0x0:_0x3841f9[_0x1a7260(0x3be)],this[_0x1a7260(0x1ec)]=_0x3841f9==null?void 0x0:_0x3841f9[_0x1a7260(0x1ec)]);}static[_0x2af163(0x326)](_0x3403e8,_0x48366d){const _0x79ff2b=_0x2af163,{text:_0x52fe0e,color:_0x2d746d}=_0x48366d;_0x3403e8[_0x79ff2b(0x1f0)](),_0x3403e8['font']=_0x79ff2b(0x386);const _0xd28c8f=_0x3403e8[_0x79ff2b(0x1c8)](_0x52fe0e)[_0x79ff2b(0x365)],_0x72c5e3=Math[_0x79ff2b(0x367)](_0xd28c8f+0x2*ne,Re);_t(_0x3403e8,{'height':K,'radius':0x4,'width':_0x72c5e3,'fill':_0x2d746d}),_0x3403e8['fillStyle']='#FFF';const _0x40ad24=ne,_0x524d3a=K-lt,_0x5e03f6=Re-0x2*ne;if(_0xd28c8f>_0x5e03f6){let _0x1f5438='',_0x2a2782=0x0;for(const _0x5dd6a2 of _0x52fe0e){const _0x4efa68=_0x3403e8['measureText'](_0x5dd6a2)[_0x79ff2b(0x365)];if(_0x2a2782+_0x4efa68<=_0x5e03f6-_0x3403e8[_0x79ff2b(0x1c8)](_0x79ff2b(0x320))[_0x79ff2b(0x365)])_0x1f5438+=_0x5dd6a2,_0x2a2782+=_0x4efa68;else{_0x1f5438+=_0x79ff2b(0x320);break;}}_0x3403e8[_0x79ff2b(0x2c4)](_0x1f5438,_0x40ad24,_0x524d3a);}else _0x3403e8['fillText'](_0x52fe0e,_0x40ad24,_0x524d3a);_0x3403e8[_0x79ff2b(0x2c5)]();}[_0x2af163(0x1d5)](_0x5de82e){const _0x403d51=_0x2af163;ee[_0x403d51(0x326)](_0x5de82e,this);}}const re=_0x2af163(0x2e9),ht=_0x2af163(0x2ef),ut=_0x2af163(0x20d),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x381b88,_0x22db50,_0x2f56e5,_0x2c70ed){const _0x58ef8a=_0x2af163;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x58ef8a(0x17d),null),h(this,_0x58ef8a(0x35b),null),(this[_0x58ef8a(0x25b)]=_0x381b88,this[_0x58ef8a(0x192)]=_0x22db50,this['_docSkeleton']=_0x2f56e5,this[_0x58ef8a(0x260)]=_0x2c70ed,this[_0x58ef8a(0x262)]());}set[_0x2af163(0x30f)](_0x553ba7){const _0x14683d=_0x2af163;_0x553ba7?(this['_anchorDot']&&this[_0x14683d(0x38a)][_0x14683d(0x1c3)](),this['_textBubble']&&this[_0x14683d(0x339)][_0x14683d(0x29d)]()):(this[_0x14683d(0x38a)]&&this[_0x14683d(0x38a)][_0x14683d(0x29d)](),this[_0x14683d(0x339)]&&this[_0x14683d(0x339)][_0x14683d(0x1c3)]());}[_0x2af163(0x176)](){const _0x5837c2=_0x2af163;for(const _0x4d77e0 of this[_0x5837c2(0x316)])_0x4d77e0['dispose']();this[_0x5837c2(0x339)]&&this[_0x5837c2(0x339)]['dispose'](),this[_0x5837c2(0x38a)]&&this['_anchorDot'][_0x5837c2(0x176)](),this[_0x5837c2(0x202)]&&this[_0x5837c2(0x202)][_0x5837c2(0x176)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2af163(0x262)](){const _0x36e9da=_0x2af163;var _0x211410;const {_docSkeleton:_0x386b78,_document:_0x397d34}=this,{color:_0x5f1d0b,name:_0x51fe82,ranges:_0x512288}=this['_cursor'],_0x4c74e6=_0x397d34['getOffsetConfig'](),{docsLeft:_0x44af40,docsTop:_0x29497f}=_0x4c74e6,_0xf4e3b6=new b[(_0x36e9da(0x360))](_0x4c74e6,_0x386b78);for(const {startOffset:_0x506c72,endOffset:_0x3baa90,rangeType:_0x4669a9,segmentId:_0x39cb31,segmentPage:_0x222d30,collapsed:_0x6de5d3,isActive:_0x2370a9}of _0x512288){const _0x2194c1=_0x386b78[_0x36e9da(0x3bb)](_0x506c72,!0x0,_0x39cb31,_0x222d30);let _0x1d0130=_0x386b78[_0x36e9da(0x3bb)](_0x3baa90,!0x0,_0x39cb31,_0x222d30);if(_0x1d0130==null&&(_0x1d0130=_0x386b78[_0x36e9da(0x3bb)](_0x3baa90-0x1,!0x1,_0x39cb31,_0x222d30)),_0x2370a9){const {contentBoxPointGroup:_0x3fe36f}=_0xf4e3b6[_0x36e9da(0x3a5)](_0x1d0130,_0x1d0130);if(_0x3fe36f[_0x36e9da(0x2de)]===0x0)continue;this[_0x36e9da(0x1d0)](_0x5f1d0b,_0x3fe36f,_0x44af40,_0x29497f,_0x51fe82),this[_0x36e9da(0x35b)]=this[_0x36e9da(0x332)]();}if(_0x2194c1&&_0x1d0130){if(_0x4669a9===a[_0x36e9da(0x1bf)][_0x36e9da(0x26c)]){const _0x26b935=new b[(_0x36e9da(0x29e))](_0x4c74e6,_0x386b78),{pointGroup:_0x2bc321}=(_0x211410=_0x26b935[_0x36e9da(0x3a5)](_0x2194c1,_0x1d0130))!=null?_0x211410:{};if(_0x2bc321==null||_0x2bc321[_0x36e9da(0x2de)]===0x0)continue;this[_0x36e9da(0x265)](_0x5f1d0b,_0x2bc321,_0x44af40,_0x29497f);}else{if(!_0x6de5d3){const {borderBoxPointGroup:_0x1ec1ab}=_0xf4e3b6['getRangePointData'](_0x2194c1,_0x1d0130);if(_0x1ec1ab[_0x36e9da(0x2de)]===0x0)continue;this['_drawTextRange'](_0x5f1d0b,_0x1ec1ab,_0x44af40,_0x29497f);}}}}}['_drawAnchor'](_0x55992b,_0x50b280,_0x429187,_0x26fc8e,_0x2b4e69){const _0x18b6af=_0x2af163,_0xdfcfc3=this[_0x18b6af(0x1d6)](_0x50b280),{left:_0x2b9145,top:_0x385da1,height:_0x2062cf}=_0xdfcfc3,_0x5c74f4=this[_0x18b6af(0x36e)](),_0x5590cd=ft/_0x5c74f4,_0x11b7e8=new p[(_0x18b6af(0x207))](re+a['Tools'][_0x18b6af(0x1ca)](k),{'left':_0x2b9145+_0x429187-_0x5590cd,'top':_0x385da1+_0x26fc8e,'height':_0x2062cf,'width':dt,'fill':_0x55992b||p['getColor'](a['COLORS'][_0x18b6af(0x286)],0x0),'strokeWidth':_0x5590cd,'stroke':St,'evented':!0x0});this['_anchor']=_0x11b7e8,this[_0x18b6af(0x192)][_0x18b6af(0x2b3)](_0x11b7e8,b['TEXT_RANGE_LAYER_INDEX']);const _0x361be9=new p['Rect'](re+a[_0x18b6af(0x150)][_0x18b6af(0x1ca)](k),{'left':_0x2b9145+_0x429187-_0x5590cd,'top':_0x385da1+_0x26fc8e-oe/0x2,'height':oe,'width':oe,'fill':_0x55992b||p[_0x18b6af(0x394)](a['COLORS'][_0x18b6af(0x286)],0x0),'strokeWidth':0x0,'stroke':_0x55992b||p[_0x18b6af(0x394)](a[_0x18b6af(0x20c)][_0x18b6af(0x286)],0x0),'evented':!0x1});this[_0x18b6af(0x38a)]=_0x361be9,this[_0x18b6af(0x192)][_0x18b6af(0x2b3)](_0x361be9,b[_0x18b6af(0x29f)]);const _0x74ed2b=new ee(re+a[_0x18b6af(0x150)][_0x18b6af(0x1ca)](k),{'left':_0x2b9145+_0x429187-_0x5590cd,'top':_0x385da1+_0x26fc8e-K,'text':_0x2b4e69,'color':_0x55992b});this[_0x18b6af(0x339)]=_0x74ed2b,this['_scene'][_0x18b6af(0x2b3)](_0x74ed2b,b[_0x18b6af(0x29f)]),this['_hover']=!0x1;}[_0x2af163(0x332)](){const _0x15655f=_0x2af163,_0x3b085f=this[_0x15655f(0x202)]['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x1dc1cb=this[_0x15655f(0x202)][_0x15655f(0x363)]['subscribeEvent'](()=>{const _0x32106e=_0x15655f;this[_0x32106e(0x17d)]&&clearTimeout(this[_0x32106e(0x17d)]),this[_0x32106e(0x17d)]=setTimeout(()=>{const _0x38c7d7=_0x32106e;this[_0x38c7d7(0x30f)]=!0x1;},0x7d0);});return()=>{const _0x2db7c5=_0x15655f;_0x3b085f[_0x2db7c5(0x1d3)](),_0x1dc1cb[_0x2db7c5(0x1d3)]();};}[_0x2af163(0x31d)](_0x33579f,_0x4ab32d,_0x165e5d,_0x391009){const _0x56eb64=_0x2af163,_0x287b7e=new a[(_0x56eb64(0x16c))](_0x33579f)[_0x56eb64(0x3b7)](0.2)[_0x56eb64(0x1d1)](),_0x519b19=new p[(_0x56eb64(0x35a))](ht+a[_0x56eb64(0x150)][_0x56eb64(0x1ca)](k),{'pointsGroup':_0x4ab32d,'fill':_0x287b7e||p[_0x56eb64(0x394)](a[_0x56eb64(0x20c)][_0x56eb64(0x286)],0.2),'left':_0x165e5d,'top':_0x391009,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x56eb64(0x316)][_0x56eb64(0x314)](_0x519b19),this[_0x56eb64(0x192)]['addObject'](_0x519b19,b['TEXT_RANGE_LAYER_INDEX']);}[_0x2af163(0x265)](_0x4778cc,_0x4fcf4d,_0x5f3526,_0x59573e){const _0x526175=_0x2af163,_0x26a8c2=new a[(_0x526175(0x16c))](_0x4778cc)['setAlpha'](0.2)[_0x526175(0x1d1)](),_0x332b1e=new p[(_0x526175(0x35a))](ut+a['Tools'][_0x526175(0x1ca)](k),{'pointsGroup':_0x4fcf4d,'fill':_0x26a8c2||p[_0x526175(0x394)](a['COLORS'][_0x526175(0x286)],0.2),'left':_0x5f3526,'top':_0x59573e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x526175(0x314)](_0x332b1e),this[_0x526175(0x192)]['addObject'](_0x332b1e,b[_0x526175(0x29f)]);}[_0x2af163(0x1d6)](_0xc30838){const _0x58a672=_0xc30838[0x0],_0xc27751=_0x58a672[0x0],_0x4d3e85=_0x58a672[0x2],{x:_0x1e4284,y:_0x4c9702}=_0xc27751,{x:_0x464b8a,y:_0x33db44}=_0x4d3e85;return{'left':_0x1e4284,'top':_0x4c9702,'width':_0x464b8a-_0x1e4284,'height':_0x33db44-_0x4c9702};}['_getScale'](){const _0x4e3151=_0x2af163,{scaleX:_0x7605d0,scaleY:_0x4aaa1a}=this[_0x4e3151(0x192)]['getAncestorScale']();return Math[_0x4e3151(0x20f)](_0x7605d0,_0x4aaa1a);}}var It=Object[_0x2af163(0x330)],vt=(_0x13e4ea,_0x3b8636,_0x45934e,_0x1a6064)=>{const _0x3c840b=_0x2af163;for(var _0x5d7a29=_0x1a6064>0x1?void 0x0:_0x1a6064?It(_0x3b8636,_0x45934e):_0x3b8636,_0x1706da=_0x13e4ea[_0x3c840b(0x2de)]-0x1,_0x30a1ab;_0x1706da>=0x0;_0x1706da--)(_0x30a1ab=_0x13e4ea[_0x1706da])&&(_0x5d7a29=_0x30a1ab(_0x5d7a29)||_0x5d7a29);return _0x5d7a29;},W=(_0x372ac9,_0x4344ea)=>(_0x77a458,_0x1a56a9)=>_0x4344ea(_0x77a458,_0x1a56a9,_0x372ac9);let Ie=class extends a['RxDisposable']{constructor(_0x4c2420,_0x3967fd,_0x439e37,_0x3cfaab,_0x427ffd){const _0x287c4c=_0x2af163;super(),h(this,_0x287c4c(0x37e),[]),h(this,_0x287c4c(0x238),[]),(this[_0x287c4c(0x180)]=_0x4c2420,this['_docSkeletonManagerService']=_0x3967fd,this[_0x287c4c(0x2b2)]=_0x439e37,this[_0x287c4c(0x236)]=_0x3cfaab,this['_themeService']=_0x427ffd,this[_0x287c4c(0x2bf)]());}[_0x2af163(0x2bf)](){const _0x1149c7=_0x2af163,_0x4cf0df=this[_0x1149c7(0x180)]['unitId'],_0x1d8fbb=this['_docSkeletonManagerService'];this[_0x1149c7(0x1f8)](d[_0x1149c7(0x161)]([this[_0x1149c7(0x2b2)][_0x1149c7(0x185)](_0x4cf0df),this[_0x1149c7(0x22e)][_0x1149c7(0x1b6)]])['pipe']($[_0x1149c7(0x220)](([_0x51640b,_0x21c03f])=>({'skeleton':_0x1d8fbb['getSkeleton'](),'cursors':[..._0x51640b[_0x1149c7(0x1a6)]()][_0x1149c7(0x1b5)](_0x3a0ad9=>({..._0x3a0ad9,'color':this['_themeService'][_0x1149c7(0x2aa)](_0x3a0ad9[_0x1149c7(0x3be)])}))})))['subscribe'](_0x5a2b21=>{const _0xf070ac=_0x1149c7;if(this[_0xf070ac(0x33a)](),_0x5a2b21){const {skeleton:_0xbd0134,cursors:_0x195a65}=_0x5a2b21;this[_0xf070ac(0x159)](_0xbd0134,_0x195a65);}})),this[_0x1149c7(0x1f7)](),this[_0x1149c7(0x33b)]();}[_0x2af163(0x159)](_0x1eac1d,_0x441d45){const _0x3f0705=_0x2af163,{scene:_0x166e03,mainComponent:_0x21fba3}=this['_context'],_0x42e8b2=_0x441d45[_0x3f0705(0x220)](_0x56fd06=>new De(_0x56fd06,_0x166e03,_0x1eac1d,_0x21fba3));this['_cursorShapes']=_0x42e8b2,this[_0x3f0705(0x238)]=_0x441d45;}['_refreshCollabCursors'](){const _0x1fceef=_0x2af163;this[_0x1fceef(0x33a)]();const {scene:_0x280d9e,mainComponent:_0x23d6a1}=this[_0x1fceef(0x180)],_0x158c2e=this['_docSkeletonManagerService']['getSkeleton'](),_0x187ad7=this[_0x1fceef(0x238)][_0x1fceef(0x220)](_0x51e839=>new De(_0x51e839,_0x280d9e,_0x158c2e,_0x23d6a1));this[_0x1fceef(0x37e)]=_0x187ad7;}[_0x2af163(0x33a)](){const _0x5c0e3f=_0x2af163;this[_0x5c0e3f(0x37e)][_0x5c0e3f(0x237)](_0x11c176=>_0x11c176[_0x5c0e3f(0x176)]()),this['_cursorShapes']=[];}[_0x2af163(0x33b)](){const _0x2cfc01=_0x2af163,_0x182602=[b[_0x2cfc01(0x393)]['id']];this[_0x2cfc01(0x1f8)](this[_0x2cfc01(0x236)][_0x2cfc01(0x35e)](_0x4516f7=>{const _0x272832=_0x2cfc01;_0x182602['includes'](_0x4516f7['id'])&&_0x4516f7[_0x272832(0x19d)][_0x272832(0x25c)]===this[_0x272832(0x180)][_0x272832(0x25c)]&&this[_0x272832(0x2db)]();}));}[_0x2af163(0x1f7)](){const _0x361b7f=_0x2af163;this['disposeWithMe'](a['fromEventSubject'](this[_0x361b7f(0x180)][_0x361b7f(0x2dc)][_0x361b7f(0x222)])[_0x361b7f(0x26a)]($['filter'](_0x4167be=>_0x4167be['type']===p[_0x361b7f(0x244)]['resize']),$[_0x361b7f(0x1af)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([W(0x1,a[_0x2af163(0x30b)](Y[_0x2af163(0x284)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x2af163(0x321)]),W(0x4,a[_0x2af163(0x30b)](a[_0x2af163(0x24b)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p['Shape']{constructor(_0x194597,_0x4f70fc){const _0x45cf8a=_0x2af163;super(_0x194597,_0x4f70fc),h(this,_0x45cf8a(0x3a0)),h(this,_0x45cf8a(0x1d4),!0x1),h(this,_0x45cf8a(0x333)),h(this,_0x45cf8a(0x266),''),h(this,'_labelPosition',_0x45cf8a(0x15c)),h(this,_0x45cf8a(0x209)),(_0x4f70fc&&this['setShapeProps'](_0x4f70fc),this[_0x45cf8a(0x1d9)][_0x45cf8a(0x27b)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x45cf8a(0x27b)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2af163(0x1ed)](_0x2d5abc){const _0x5a54d8=_0x2af163;var _0xa74abb,_0x373772,_0xb3971c,_0x523901,_0x24f000,_0x267d9e;this[_0x5a54d8(0x3a0)]=(_0xa74abb=_0x2d5abc[_0x5a54d8(0x3be)])!=null?_0xa74abb:this[_0x5a54d8(0x3a0)],this['_hovered']=(_0x373772=_0x2d5abc[_0x5a54d8(0x342)])!=null?_0x373772:this['_hovered'],this[_0x5a54d8(0x333)]=(_0xb3971c=_0x2d5abc['range'])!=null?_0xb3971c:this[_0x5a54d8(0x333)],this['_name']=(_0x523901=_0x2d5abc[_0x5a54d8(0x17c)])!=null?_0x523901:this[_0x5a54d8(0x266)],this['_labelPosition']=(_0x24f000=_0x2d5abc[_0x5a54d8(0x3b6)])!=null?_0x24f000:this[_0x5a54d8(0x275)],this['_backgroundColor']=(_0x267d9e=_0x2d5abc[_0x5a54d8(0x2a1)])!=null?_0x267d9e:this[_0x5a54d8(0x209)],this['transformByState']({'width':_0x2d5abc[_0x5a54d8(0x365)],'height':_0x2d5abc['height']});}['onMouseMove'](_0xa8b45){const _0x4fe753=_0x2af163,{row:_0x1fb79a,column:_0x358b96}=_0xa8b45;if(_0x1fb79a>=this[_0x4fe753(0x333)]['startRow']&&_0x1fb79a<=this[_0x4fe753(0x333)][_0x4fe753(0x2c3)]&&_0x358b96>=this[_0x4fe753(0x333)][_0x4fe753(0x34c)]&&_0x358b96<=this[_0x4fe753(0x333)][_0x4fe753(0x1a8)]){this[_0x4fe753(0x1ed)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2af163(0x246)](_0x17b422){return!0x1;}[_0x2af163(0x1d5)](_0x50bfa0){const _0x562bb7=_0x2af163;p[_0x562bb7(0x207)][_0x562bb7(0x326)](_0x50bfa0,{'width':this[_0x562bb7(0x365)],'height':this[_0x562bb7(0x34d)],'strokeWidth':mt,'stroke':this[_0x562bb7(0x3a0)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x50bfa0['save'](),_0x50bfa0[_0x562bb7(0x14d)](0x1,0x0,0x0,0x1,this[_0x562bb7(0x365)],this['_labelPosition']===_0x562bb7(0x22f)?0x0:-0x14),ee[_0x562bb7(0x326)](_0x50bfa0,{'text':this[_0x562bb7(0x266)],'color':this['_color']}),_0x50bfa0[_0x562bb7(0x2c5)]());}}var Ct=Object[_0x2af163(0x330)],pt=(_0x5eb8b9,_0x4c0056,_0x356591,_0x1aceeb)=>{const _0x4e9eb3=_0x2af163;for(var _0x378c44=_0x1aceeb>0x1?void 0x0:_0x1aceeb?Ct(_0x4c0056,_0x356591):_0x4c0056,_0x3d08fc=_0x5eb8b9[_0x4e9eb3(0x2de)]-0x1,_0x21a3b9;_0x3d08fc>=0x0;_0x3d08fc--)(_0x21a3b9=_0x5eb8b9[_0x3d08fc])&&(_0x378c44=_0x21a3b9(_0x378c44)||_0x378c44);return _0x378c44;},ae=(_0x4496a9,_0x335e30)=>(_0x51ef1a,_0x40e49c)=>_0x335e30(_0x51ef1a,_0x40e49c,_0x4496a9);const bt=0x1389;let ve=class extends a[_0x2af163(0x17a)]{constructor(_0x3e7e6d,_0x4d39e6,_0x1582e3,_0xf8d52f){const _0x2c36d7=_0x2af163;super(),h(this,_0x2c36d7(0x238),new Set()),h(this,'_lastPointer',null),(this[_0x2c36d7(0x180)]=_0x3e7e6d,this[_0x2c36d7(0x3c0)]=_0x4d39e6,this[_0x2c36d7(0x2b2)]=_0x1582e3,this['_themeService']=_0xf8d52f,this[_0x2c36d7(0x2bf)]());}[_0x2af163(0x2bf)](){const _0x5c75da=_0x2af163;this[_0x5c75da(0x3c0)][_0x5c75da(0x36b)][_0x5c75da(0x26a)]($[_0x5c75da(0x35c)](this[_0x5c75da(0x17b)]),$['switchMap'](_0x383bcb=>{const _0x44d0e6=_0x5c75da;if(_0x383bcb){const _0x15dd10=_0x383bcb['sheetId'];return d[_0x44d0e6(0x161)](this[_0x44d0e6(0x2b2)][_0x44d0e6(0x185)](this[_0x44d0e6(0x180)][_0x44d0e6(0x25c)]),this['_themeService'][_0x44d0e6(0x1b6)])[_0x44d0e6(0x26a)]($['map'](([_0xa819c9,_0x286b24])=>{const _0x430a66=_0x44d0e6,_0x3167cc=new Map();return _0xa819c9[_0x430a66(0x237)]((_0x476b97,_0x39d23f)=>{const _0x33207f=_0x430a66;if(_0x476b97[_0x33207f(0x2b5)]===_0x15dd10){const _0x1337fd={..._0x476b97};_0x1337fd[_0x33207f(0x3be)]=this['_themeService']['getColorFromTheme'](_0x476b97[_0x33207f(0x3be)]),_0x3167cc['set'](_0x39d23f,_0x1337fd);}}),{'skeleton':_0x383bcb,'cursors':_0x3167cc};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5c75da(0x2fe)](({skeleton:_0x4bd1ed,cursors:_0x353cfe})=>{const _0x47eef1=_0x5c75da;this[_0x47eef1(0x33a)](),_0x4bd1ed&&this[_0x47eef1(0x159)](_0x4bd1ed,_0x353cfe);}),this[_0x5c75da(0x3c0)]['currentSkeleton$']['subscribe'](_0x10bf8e=>{const _0x2ccd13=_0x5c75da;if(_0x10bf8e==null)return;const {skeleton:_0x171f52}=_0x10bf8e,{scene:_0x3b39f8}=this[_0x2ccd13(0x180)];_0x3b39f8['onPointerMove$']['subscribeEvent'](a[_0x2ccd13(0x2bc)](_0xe44a44=>{const _0x1ff446=_0x2ccd13;var _0x1bd3ab,_0x37a20e;const {offsetX:_0x4317b4,offsetY:_0x27f57d}=_0xe44a44,{x:_0x404dff,y:_0x2cfbc7}=_0x3b39f8[_0x1ff446(0x2d7)](p['Vector2'][_0x1ff446(0x2f5)]([_0x4317b4,_0x27f57d])),{scaleX:_0x3c98c6,scaleY:_0x172558}=_0x3b39f8[_0x1ff446(0x14e)](),_0x4f6b25=_0x3b39f8[_0x1ff446(0x233)](p[_0x1ff446(0x16f)][_0x1ff446(0x2d6)]),_0x244123=_0x3b39f8[_0x1ff446(0x308)](p['Vector2'][_0x1ff446(0x2f5)]([_0x404dff,_0x2cfbc7]),_0x4f6b25),_0x369730=_0x171f52['getCellPositionByOffset'](_0x4317b4,_0x27f57d,_0x3c98c6,_0x172558,_0x244123);((_0x1bd3ab=this[_0x1ff446(0x352)])==null?void 0x0:_0x1bd3ab[_0x1ff446(0x279)])===_0x369730['column']&&((_0x37a20e=this[_0x1ff446(0x352)])==null?void 0x0:_0x37a20e['row'])===_0x369730[_0x1ff446(0x369)]||this[_0x1ff446(0x238)][_0x1ff446(0x237)](_0x310334=>{_0x310334['onMouseMove'](_0x369730);});},0x64));});}[_0x2af163(0x159)](_0x3b00b3,_0x22d37a){const _0x58ac03=_0x2af163;var _0x32cc5a;const _0x3a178d=(_0x32cc5a=this[_0x58ac03(0x3c0)][_0x58ac03(0x175)]())==null?void 0x0:_0x32cc5a[_0x58ac03(0x21a)];if(!_0x3a178d)return;const _0x36eb16=this[_0x58ac03(0x1e0)]();if(!_0x36eb16)return;this[_0x58ac03(0x238)][_0x58ac03(0x237)](_0x4bff6f=>{_0x4bff6f['makeDirty']();});const {scene:_0x28032b}=_0x36eb16,_0x1638ca=Et(Array[_0x58ac03(0x2bd)](_0x22d37a[_0x58ac03(0x1a6)]()))[_0x58ac03(0x220)](_0x4757ba=>{const _0x2cd63f=_0x58ac03,{color:_0xea1f3a,range:_0x14eb4b,name:_0x47bfe3,selection:_0x3b4bf1,sheetID:_0x5da4f3}=_0x4757ba,{startColumn:_0x43a5a6,startRow:_0x57adab,endColumn:_0x363162,endRow:_0xeb69e3}=_0x14eb4b,_0x236d3a=X[_0x2cd63f(0x302)](_0x57adab,_0x43a5a6,_0x28032b,_0x3a178d),_0x47fee8=X['getCoordByCell'](_0xeb69e3,_0x363162,_0x28032b,_0x3a178d),{columnHeaderHeightAndMarginTop:_0x2ddd3a}=_0x3a178d,{startX:_0x3b0616,startY:_0x358fcb}=_0x236d3a,{endX:_0xcbe8ae,endY:_0x1c6410}=_0x47fee8,_0x4613c4=_0xcbe8ae-_0x3b0616,_0xebd664=_0x1c6410-_0x358fcb,_0x1ee449={'labelPosition':_0x358fcb-_0x2ddd3a>=K?'top':'bottom','sheetID':_0x5da4f3,'range':_0x14eb4b,'color':_0xea1f3a,'name':_0x47bfe3,'selection':_0x3b4bf1,'left':_0x3b0616,'top':_0x358fcb,'width':_0x4613c4,'height':_0xebd664,'evented':!0x1,'zIndex':bt};return new Pe(_0x47bfe3,_0x1ee449);});_0x28032b[_0x58ac03(0x35f)](_0x1638ca,gt),this[_0x58ac03(0x238)]=new Set(_0x1638ca);}[_0x2af163(0x33a)](){const _0x1b3e88=_0x2af163;var _0x4a1bb2;(_0x4a1bb2=this[_0x1b3e88(0x238)])==null||_0x4a1bb2[_0x1b3e88(0x237)](_0x21cc5a=>_0x21cc5a['dispose']());}[_0x2af163(0x1e0)](){const _0x14d6ba=_0x2af163;return X[_0x14d6ba(0x2c0)](this[_0x14d6ba(0x180)][_0x14d6ba(0x196)],this[_0x14d6ba(0x180)]);}};ve=pt([ae(0x1,a[_0x2af163(0x30b)](X[_0x2af163(0x322)])),ae(0x2,a[_0x2af163(0x30b)](x)),ae(0x3,a[_0x2af163(0x30b)](a[_0x2af163(0x24b)]))],ve);function Et(_0x1eeb1c){const _0x19ecff=_0x2af163,_0x5010d2=new Map();return _0x1eeb1c['forEach'](_0x3e62fa=>{const _0x1cf57b=_0x293b;if(_0x5010d2[_0x1cf57b(0x2cd)](_0x3e62fa[_0x1cf57b(0x1ff)])){const _0x271587=_0x5010d2[_0x1cf57b(0x18c)](_0x3e62fa[_0x1cf57b(0x1ff)]);_0x271587[_0x1cf57b(0x17c)]+=',\x20'+_0x3e62fa[_0x1cf57b(0x17c)];}else _0x5010d2['set'](_0x3e62fa[_0x1cf57b(0x1ff)],_0x3e62fa);}),Array[_0x19ecff(0x2bd)](_0x5010d2['values']());}var E=function(){const _0x5e5e8a=_0x2af163;return E=Object[_0x5e5e8a(0x312)]||function(_0x13ead4){const _0x2e5da1=_0x5e5e8a;for(var _0x2650da,_0x4b2bf3=0x1,_0x5a724b=arguments[_0x2e5da1(0x2de)];_0x4b2bf3<_0x5a724b;_0x4b2bf3++){_0x2650da=arguments[_0x4b2bf3];for(var _0x229f9c in _0x2650da)Object['prototype'][_0x2e5da1(0x2fb)]['call'](_0x2650da,_0x229f9c)&&(_0x13ead4[_0x229f9c]=_0x2650da[_0x229f9c]);}return _0x13ead4;},E['apply'](this,arguments);},Tt=function(_0x280b55,_0x296cd6){const _0x49e15b=_0x2af163;var _0x1e25a3={};for(var _0x458853 in _0x280b55)Object['prototype'][_0x49e15b(0x2fb)][_0x49e15b(0x351)](_0x280b55,_0x458853)&&_0x296cd6['indexOf'](_0x458853)<0x0&&(_0x1e25a3[_0x458853]=_0x280b55[_0x458853]);if(_0x280b55!=null&&typeof Object[_0x49e15b(0x340)]==_0x49e15b(0x1f5)){for(var _0xe882cb=0x0,_0x458853=Object[_0x49e15b(0x340)](_0x280b55);_0xe882cb<_0x458853[_0x49e15b(0x2de)];_0xe882cb++)_0x296cd6[_0x49e15b(0x3a7)](_0x458853[_0xe882cb])<0x0&&Object['prototype'][_0x49e15b(0x270)][_0x49e15b(0x351)](_0x280b55,_0x458853[_0xe882cb])&&(_0x1e25a3[_0x458853[_0xe882cb]]=_0x280b55[_0x458853[_0xe882cb]]);}return _0x1e25a3;},pe=M[_0x2af163(0x184)](function(_0x3363eb,_0x1726b2){const _0x11740b=_0x2af163;var _0x4f165c=_0x3363eb[_0x11740b(0x147)],_0x88bceb=_0x3363eb['id'],_0x16a841=_0x3363eb['className'],_0x41a510=_0x3363eb[_0x11740b(0x271)],_0x18d356=Tt(_0x3363eb,[_0x11740b(0x147),'id',_0x11740b(0x234),_0x11740b(0x271)]),_0x3d9f76='univerjs-icon\x20univerjs-icon-'[_0x11740b(0x39f)](_0x88bceb,'\x20')[_0x11740b(0x39f)](_0x16a841||'')[_0x11740b(0x149)](),_0x11293b=M[_0x11740b(0x155)]('_'[_0x11740b(0x39f)](Dt()));return Ae(_0x4f165c,''[_0x11740b(0x39f)](_0x88bceb),{'defIds':_0x4f165c[_0x11740b(0x399)],'idSuffix':_0x11293b['current']},E({'ref':_0x1726b2,'className':_0x3d9f76},_0x18d356),_0x41a510);});function Ae(_0xfe8146,_0x2ea0b7,_0x1774e9,_0x33911d,_0x2313a4){const _0x1bab74=_0x2af163;return M['createElement'](_0xfe8146[_0x1bab74(0x280)],E(E({'key':_0x2ea0b7},Ot(_0xfe8146,_0x1774e9,_0x2313a4)),_0x33911d),(Rt(_0xfe8146,_0x1774e9)[_0x1bab74(0x24e)]||[])[_0x1bab74(0x220)](function(_0x5b83e4,_0x17ddae){const _0x437763=_0x1bab74;return Ae(_0x5b83e4,''[_0x437763(0x39f)](_0x2ea0b7,'-')[_0x437763(0x39f)](_0xfe8146[_0x437763(0x280)],'-')[_0x437763(0x39f)](_0x17ddae),_0x1774e9,void 0x0,_0x2313a4);}));}function Ot(_0x34254f,_0x96c7b8,_0x11ac47){const _0x210cbc=_0x2af163;var _0x17563b=E({},_0x34254f[_0x210cbc(0x37f)]);_0x11ac47!=null&&_0x11ac47[_0x210cbc(0x1ef)]&&_0x17563b[_0x210cbc(0x162)]===_0x210cbc(0x1ef)&&(_0x17563b['fill']=_0x11ac47['colorChannel1']),_0x34254f[_0x210cbc(0x280)]===_0x210cbc(0x1ce)&&_0x17563b['id']&&(_0x17563b['id']=_0x17563b['id']+_0x96c7b8['idSuffix']),Object[_0x210cbc(0x361)](_0x17563b)[_0x210cbc(0x237)](function(_0x4411c3){const _0x3890af=_0x210cbc;var _0x5857a8=_0x4411c3[0x0],_0x1cc3df=_0x4411c3[0x1];_0x5857a8===_0x3890af(0x1ce)&&typeof _0x1cc3df==_0x3890af(0x2d2)&&(_0x17563b[_0x5857a8]=_0x1cc3df['replace'](/url\(#(.*)\)/,_0x3890af(0x225)[_0x3890af(0x39f)](_0x96c7b8[_0x3890af(0x27f)],')')));});var _0x5b9bfc=_0x96c7b8[_0x210cbc(0x399)];return!_0x5b9bfc||_0x5b9bfc['length']===0x0||(_0x34254f['tag']===_0x210cbc(0x380)&&_0x17563b[_0x210cbc(0x3bc)]&&(_0x17563b[_0x210cbc(0x3bc)]=_0x17563b[_0x210cbc(0x3bc)]+_0x96c7b8[_0x210cbc(0x27f)]),Object['entries'](_0x17563b)[_0x210cbc(0x237)](function(_0x574964){const _0x53b3b1=_0x210cbc;var _0x35bb67=_0x574964[0x0],_0x3d60b5=_0x574964[0x1];typeof _0x3d60b5==_0x53b3b1(0x2d2)&&(_0x17563b[_0x35bb67]=_0x3d60b5['replace'](/url\(#(.*)\)/,_0x53b3b1(0x225)[_0x53b3b1(0x39f)](_0x96c7b8[_0x53b3b1(0x27f)],')')));})),_0x17563b;}function Rt(_0xc8ad47,_0x76da0e){const _0xf22619=_0x2af163;var _0x386520,_0x432d81=_0x76da0e['defIds'];return!_0x432d81||_0x432d81[_0xf22619(0x2de)]===0x0?_0xc8ad47:_0xc8ad47['tag']===_0xf22619(0x1e9)&&(!((_0x386520=_0xc8ad47['children'])===null||_0x386520===void 0x0)&&_0x386520[_0xf22619(0x2de)])?E(E({},_0xc8ad47),{'children':_0xc8ad47[_0xf22619(0x24e)][_0xf22619(0x220)](function(_0x3bfe4d){const _0x2237d5=_0xf22619;return typeof _0x3bfe4d['attrs']['id']==_0x2237d5(0x2d2)&&_0x432d81&&_0x432d81[_0x2237d5(0x187)](_0x3bfe4d[_0x2237d5(0x37f)]['id'])?E(E({},_0x3bfe4d),{'attrs':E(E({},_0x3bfe4d[_0x2237d5(0x37f)]),{'id':_0x3bfe4d[_0x2237d5(0x37f)]['id']+_0x76da0e['idSuffix']})}):_0x3bfe4d;})}):_0xc8ad47;}function Dt(){const _0x123f98=_0x2af163;return Math[_0x123f98(0x14c)]()[_0x123f98(0x2b1)](0x24)[_0x123f98(0x1da)](0x2,0x8);}pe[_0x2af163(0x36c)]=_0x2af163(0x328);var Ut={'tag':_0x2af163(0x3a2),'attrs':{'xmlns':_0x2af163(0x306),'fill':_0x2af163(0x313),'viewBox':_0x2af163(0x1aa),'width':'1em','height':_0x2af163(0x1e4)},'children':[{'tag':'g','attrs':{'clipPath':_0x2af163(0x1c7)},'children':[{'tag':'path','attrs':{'stroke':_0x2af163(0x1e7),'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':_0x2af163(0x27a),'strokeLinejoin':_0x2af163(0x27a),'strokeWidth':1.2}}]},{'tag':_0x2af163(0x1e9),'attrs':{},'children':[{'tag':_0x2af163(0x19b),'attrs':{'id':_0x2af163(0x18b)},'children':[{'tag':'path','attrs':{'fill':_0x2af163(0x298),'d':_0x2af163(0x2c2)}}]}]}],'defIds':[_0x2af163(0x18b)]},ye=M[_0x2af163(0x184)](function(_0x38c042,_0x5006f6){const _0xdf4270=_0x2af163;return M['createElement'](pe,Object[_0xdf4270(0x312)]({},_0x38c042,{'id':_0xdf4270(0x3bd),'ref':_0x5006f6,'icon':Ut}));});ye['displayName']='OffLineIcon';var Nt={'tag':'svg','attrs':{'xmlns':_0x2af163(0x306),'fill':'none','viewBox':_0x2af163(0x2f3),'width':'1em','height':_0x2af163(0x1e4)},'children':[{'tag':'g','attrs':{'clipPath':_0x2af163(0x292)},'children':[{'tag':_0x2af163(0x1e5),'attrs':{'stroke':'currentColor','d':_0x2af163(0x300),'strokeLinecap':_0x2af163(0x27a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2af163(0x1e9),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x2af163(0x298),'d':'M0\x200H16V16H0z','transform':_0x2af163(0x2f9)}}]}]}],'defIds':[_0x2af163(0x36f)]},$e=M['forwardRef'](function(_0x1025a9,_0x3cbdc3){const _0x269607=_0x2af163;return M[_0x269607(0x1ee)](pe,Object[_0x269607(0x312)]({},_0x1025a9,{'id':'on-line-icon','ref':_0x3cbdc3,'icon':Nt}));});$e[_0x2af163(0x36c)]=_0x2af163(0x301);function Mt(_0x234537){const _0x1feb56=_0x2af163;switch(_0x234537){case u[_0x1feb56(0x33f)][_0x1feb56(0x31c)]:return _0x1feb56(0x23d);case u['CollaborationStatus'][_0x1feb56(0x1db)]:return _0x1feb56(0x1de);case u[_0x1feb56(0x33f)][_0x1feb56(0x20b)]:return'collabStatus.fetchMiss';case u[_0x1feb56(0x33f)]['NOT_COLLAB']:return _0x1feb56(0x37b);case u[_0x1feb56(0x33f)][_0x1feb56(0x1c5)]:case u['CollaborationStatus'][_0x1feb56(0x169)]:return _0x1feb56(0x16a);case u[_0x1feb56(0x33f)]['SYNCED']:case u[_0x1feb56(0x33f)][_0x1feb56(0x205)]:return _0x1feb56(0x2c7);}}function xe(_0x16020e){const _0x54f19d=_0x2af163,{status$:_0x21cd71}=_0x16020e,_0xe2f104=T[_0x54f19d(0x264)](_0x21cd71,u[_0x54f19d(0x33f)][_0x54f19d(0x291)]),_0x36814c=T[_0x54f19d(0x24f)](a[_0x54f19d(0x255)]),_0x556e87=T[_0x54f19d(0x24f)](u['CollaborationSessionService']),_0x1251a8=_0xe2f104!==u[_0x54f19d(0x33f)]['OFFLINE'],_0x2e0f16=_0x36814c['t'](Mt(_0xe2f104)),_0x2e7e0c=_0x1251a8?w[_0x54f19d(0x1b7)]($e,{}):w['jsx'](ye,{}),_0x43b152=M['useCallback'](()=>{const _0x3ab290=_0x54f19d;_0x1251a8||_0x556e87[_0x3ab290(0x164)]();},[_0x1251a8,_0x556e87]);function _0x3b43e7(){const _0x29ce63=_0x54f19d;return w['jsxs'](_0x29ce63(0x396),{'className':'univer-flex\x20univer-items-center','onClick':_0x43b152,'children':[w[_0x29ce63(0x1b7)](_0x29ce63(0x396),{'className':D['clsx'](_0x29ce63(0x19e),{'univer-text-green-500':_0x1251a8,'univer-text-red-500':!_0x1251a8}),'children':_0x2e7e0c}),w[_0x29ce63(0x1b7)]('div',{'className':_0x29ce63(0x21c),'children':_0x2e0f16})]});}return _0x1251a8?_0x3b43e7():w[_0x54f19d(0x1b7)](D[_0x54f19d(0x1b1)],{'title':_0x36814c['t']('collab-client.tooltip.reconnect'),'children':_0x3b43e7()});}var Lt=Object[_0x2af163(0x330)],wt=(_0x451ef3,_0x58f8b3,_0x8445ce,_0x1e3a15)=>{const _0x353684=_0x2af163;for(var _0x2cfabb=_0x1e3a15>0x1?void 0x0:_0x1e3a15?Lt(_0x58f8b3,_0x8445ce):_0x58f8b3,_0x3ef59b=_0x451ef3[_0x353684(0x2de)]-0x1,_0x5977db;_0x3ef59b>=0x0;_0x3ef59b--)(_0x5977db=_0x451ef3[_0x3ef59b])&&(_0x2cfabb=_0x5977db(_0x2cfabb)||_0x2cfabb);return _0x2cfabb;},V=(_0x22a3eb,_0xb78d21)=>(_0x4b8a2f,_0x4e3d16)=>_0xb78d21(_0x4b8a2f,_0x4e3d16,_0x22a3eb);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x45c7f9,_0x11754d,_0x1afc2b,_0x365cee){const _0x15aeef=_0x2af163;super(),h(this,_0x15aeef(0x329),new d[(_0x15aeef(0x201))](u[_0x15aeef(0x33f)][_0x15aeef(0x291)])),(this['_univerInstanceService']=_0x45c7f9,this[_0x15aeef(0x268)]=_0x11754d,this[_0x15aeef(0x1eb)]=_0x1afc2b,this[_0x15aeef(0x27e)]=_0x365cee,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x2af163(0x1b0)](){const _0x46e327=_0x2af163;this[_0x46e327(0x1f8)](this[_0x46e327(0x2d0)][_0x46e327(0x2ed)][_0x46e327(0x26a)](d['switchMap'](()=>{const _0x11477f=_0x46e327,_0x403420=this[_0x11477f(0x2d0)][_0x11477f(0x283)]();return _0x403420?this['_collaborationController'][_0x11477f(0x304)](_0x403420[_0x11477f(0x2fa)]()):d['of'](null);}),d[_0x46e327(0x33d)](_0x5d96f9=>_0x5d96f9?_0x5d96f9[_0x46e327(0x1c0)]:d['of'](u[_0x46e327(0x33f)][_0x46e327(0x291)])))['subscribe'](_0x4572ac=>{const _0x577a18=_0x46e327;this['_status$'][_0x577a18(0x355)](_0x4572ac);}));}[_0x2af163(0x2ea)](){const _0x3d652a=_0x2af163;this[_0x3d652a(0x1f8)](this[_0x3d652a(0x27e)][_0x3d652a(0x21b)](T['BuiltInUIPart'][_0x3d652a(0x267)],()=>T['connectInjector'](Pt({'status$':this[_0x3d652a(0x329)]['asObservable']()}),this[_0x3d652a(0x268)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a[_0x2af163(0x3ad)]),V(0x1,a[_0x2af163(0x30b)](a['Injector'])),V(0x2,a[_0x2af163(0x30b)](u[_0x2af163(0x391)])),V(0x3,T[_0x2af163(0x1cb)])],exports[_0x2af163(0x39d)]);function Pt(_0x4e4808){const {status$:_0x8474f2}=_0x4e4808;return function(){return w['jsx'](xe,{'status$':_0x8474f2});};}var At=Object[_0x2af163(0x330)],yt=(_0x56116d,_0x107ce9,_0x40a159,_0x5e0336)=>{const _0x2f8413=_0x2af163;for(var _0x2ec023=_0x5e0336>0x1?void 0x0:_0x5e0336?At(_0x107ce9,_0x40a159):_0x107ce9,_0x29c0e5=_0x56116d[_0x2f8413(0x2de)]-0x1,_0x10224a;_0x29c0e5>=0x0;_0x29c0e5--)(_0x10224a=_0x56116d[_0x29c0e5])&&(_0x2ec023=_0x10224a(_0x2ec023)||_0x2ec023);return _0x2ec023;},y=(_0x3750ce,_0x8ffa9e)=>(_0x5c32bc,_0x188dbe)=>_0x8ffa9e(_0x5c32bc,_0x188dbe,_0x3750ce);let q=class extends a[_0x2af163(0x1e8)]{constructor(_0x119dda,_0x4289f5,_0xf1f497,_0x5b7e4c,_0x56cfd6,_0x2a6942){const _0x598a13=_0x2af163;super(),this[_0x598a13(0x2a2)]=_0x119dda,this[_0x598a13(0x295)]=_0x4289f5,this[_0x598a13(0x232)]=_0xf1f497,this[_0x598a13(0x19a)]=_0x5b7e4c,this[_0x598a13(0x2ab)]=_0x56cfd6,this[_0x598a13(0x28f)]=_0x2a6942,this[_0x598a13(0x181)](),this[_0x598a13(0x357)]();}[_0x2af163(0x181)](){const _0x226dbe=_0x2af163;this[_0x226dbe(0x1f8)](this[_0x226dbe(0x2a2)][_0x226dbe(0x15b)](()=>{const _0x5f22c8=_0x226dbe;if(this[_0x5f22c8(0x295)]['saveTaskMap'][_0x5f22c8(0x148)])return this[_0x5f22c8(0x28f)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x2bd7ab=_0x2af163;this[_0x2bd7ab(0x1f8)](this[_0x2bd7ab(0x232)][_0x2bd7ab(0x378)][_0x2bd7ab(0x2fe)](_0x2c78ea=>{const _0x19818e=_0x2bd7ab;_0x2c78ea['id']===u[_0x19818e(0x1a1)]['OTHER_CLIENT_EDITING']&&this[_0x19818e(0x19a)][_0x19818e(0x29d)]({'type':D[_0x19818e(0x2f7)][_0x19818e(0x2a6)],'content':this[_0x19818e(0x28f)]['t'](_0x19818e(0x1fc))}),_0x2c78ea['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x19818e(0x19a)][_0x19818e(0x29d)]({'type':D['MessageType'][_0x19818e(0x2a6)],'content':this[_0x19818e(0x28f)]['t']('collaboration.closeRoom')}),_0x2c78ea['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x19818e(0x2ab)]['show']({'title':this[_0x19818e(0x28f)]['t'](_0x19818e(0x2f2)),'content':this['_localeService']['t']('permission.content'),'type':_0x19818e(0x23e),'duration':0x0}),_0x2c78ea['id']===u[_0x19818e(0x1a1)][_0x19818e(0x1db)]&&this['_messageService'][_0x19818e(0x29d)]({'type':D['MessageType'][_0x19818e(0x248)],'content':this[_0x19818e(0x28f)]['t'](_0x19818e(0x247))+'('+_0x2c78ea[_0x19818e(0x375)]+')'}),_0x2c78ea['id']===u[_0x19818e(0x1a1)][_0x19818e(0x14f)]&&this[_0x19818e(0x19a)][_0x19818e(0x29d)]({'type':D[_0x19818e(0x2f7)][_0x19818e(0x2a6)],'content':this[_0x19818e(0x28f)]['t'](_0x2c78ea['data']||'')}),_0x2c78ea['id']===u[_0x19818e(0x1a1)]['SOCKET_FAILED_RETRY']&&this[_0x19818e(0x19a)]['show']({'type':D['MessageType']['Warning'],'content':this[_0x19818e(0x28f)]['t']('session.will-retry')}),_0x2c78ea['id']===u['CollaborationUIEventId'][_0x19818e(0x252)]&&this['_messageService'][_0x19818e(0x29d)]({'type':D[_0x19818e(0x2f7)]['Error'],'content':this[_0x19818e(0x28f)]['t']('session.connection-failed')}),_0x2c78ea['id']===u['CollaborationUIEventId'][_0x19818e(0x183)]&&this[_0x19818e(0x19a)][_0x19818e(0x29d)]({'type':D[_0x19818e(0x2f7)][_0x19818e(0x248)],'content':this[_0x19818e(0x28f)]['t'](_0x19818e(0x2cc))});}));}};q=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x2af163(0x31e)]),y(0x2,a[_0x2af163(0x30b)](u[_0x2af163(0x1fd)])),y(0x3,T[_0x2af163(0x168)]),y(0x4,T[_0x2af163(0x26f)]),y(0x5,a[_0x2af163(0x30b)](a[_0x2af163(0x255)]))],q);const $t=_0x2af163(0x2b7),Ue={},be=a[_0x2af163(0x290)]('uni.network.url-service');var xt=Object[_0x2af163(0x330)],jt=(_0x5b4b64,_0x4dbc86,_0x7ea5f4,_0x25e726)=>{const _0x4c4291=_0x2af163;for(var _0x12234f=_0x25e726>0x1?void 0x0:_0x25e726?xt(_0x4dbc86,_0x7ea5f4):_0x4dbc86,_0x5a942c=_0x5b4b64[_0x4c4291(0x2de)]-0x1,_0xebbc48;_0x5a942c>=0x0;_0x5a942c--)(_0xebbc48=_0x5b4b64[_0x5a942c])&&(_0x12234f=_0xebbc48(_0x12234f)||_0x12234f);return _0x12234f;},H=(_0x5948f7,_0x20c07b)=>(_0x80f3bc,_0x3e7226)=>_0x20c07b(_0x80f3bc,_0x3e7226,_0x5948f7);exports['CollaborationDataLoaderController']=class extends a[_0x2af163(0x17a)]{constructor(_0x2acbff,_0x36b886,_0x38aa0a,_0x5862c5,_0x326d62){const _0x34b3b3=_0x2af163;super(),this['_urlService']=_0x2acbff,this[_0x34b3b3(0x178)]=_0x36b886,this[_0x34b3b3(0x236)]=_0x38aa0a,this[_0x34b3b3(0x36a)]=_0x5862c5,_0x326d62?_0x326d62==null||_0x326d62[_0x34b3b3(0x240)]()['then'](()=>this[_0x34b3b3(0x2bf)]()):(this[_0x34b3b3(0x178)]['debug'](_0x34b3b3(0x3b0),_0x34b3b3(0x2e6)),this['_init']());}async[_0x2af163(0x2bf)](){const _0x1fd8a1=_0x2af163,_0x1d931d=this[_0x1fd8a1(0x197)][_0x1fd8a1(0x174)](_0x1fd8a1(0x196)),_0x493f76=this[_0x1fd8a1(0x197)]['getParam'](_0x1fd8a1(0x2f8)),_0x23b04b=this[_0x1fd8a1(0x197)][_0x1fd8a1(0x174)](_0x1fd8a1(0x166));if(!_0x1d931d||!_0x493f76){this[_0x1fd8a1(0x178)][_0x1fd8a1(0x170)](_0x1fd8a1(0x3b0),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x108afb=await this[_0x1fd8a1(0x36a)][_0x1fd8a1(0x204)](_0x1d931d,Number(_0x493f76),_0x23b04b);_0x108afb&&_0x108afb instanceof a[_0x1fd8a1(0x1cc)]&&this[_0x1fd8a1(0x221)](_0x108afb);}async[_0x2af163(0x221)](_0x186814){const _0x594a54=_0x2af163;await this[_0x594a54(0x376)](_0x186814),_0x186814[_0x594a54(0x3c4)][_0x594a54(0x26a)](d['takeUntil'](this['dispose$']))['subscribe'](_0x195907=>{_0x195907&&this['_updateURLWithCurrentState'](_0x195907);}),this['_urlService'][_0x594a54(0x2f6)]['pipe'](d['takeUntil'](this['dispose$']))['subscribe'](()=>this[_0x594a54(0x376)](_0x186814));}[_0x2af163(0x3ac)](_0x48d6c4,_0x5f50da=!0x1){const _0xa6423b=_0x2af163,_0x30e509=this[_0xa6423b(0x197)][_0xa6423b(0x174)](_0xa6423b(0x166));_0x48d6c4[_0xa6423b(0x215)]()!==_0x30e509&&this[_0xa6423b(0x197)][_0xa6423b(0x356)](_0xa6423b(0x166),_0x48d6c4[_0xa6423b(0x215)](),_0x5f50da);}async[_0x2af163(0x376)](_0x51e652){const _0x24015a=_0x2af163;var _0x454cf7;const _0x41545f=this[_0x24015a(0x197)][_0x24015a(0x174)](_0x24015a(0x166));if(!_0x41545f||!_0x51e652[_0x24015a(0x1a5)](_0x41545f)){const _0xaaf6f0=_0x51e652[_0x24015a(0x272)]()[0x0],_0x3dc550=_0x51e652[_0x24015a(0x1a5)](_0xaaf6f0);if(!_0x3dc550)return;this['_updateURLWithCurrentState'](_0x3dc550,!0x0),await this[_0x24015a(0x236)][_0x24015a(0x2ec)](g[_0x24015a(0x39a)]['id'],{'unitId':_0x51e652[_0x24015a(0x2fa)](),'subUnitId':_0xaaf6f0});return;}((_0x454cf7=_0x51e652[_0x24015a(0x338)]())==null?void 0x0:_0x454cf7['getSheetId']())!==_0x41545f&&await this['_commandService'][_0x24015a(0x2ec)](g[_0x24015a(0x39a)]['id'],{'unitId':_0x51e652[_0x24015a(0x2fa)](),'subUnitId':_0x41545f});}},exports[_0x2af163(0x381)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x2af163(0x321)]),H(0x3,a[_0x2af163(0x30b)](u['DataLoaderService'])),H(0x4,a[_0x2af163(0x1ea)](Ke[_0x2af163(0x230)]))],exports[_0x2af163(0x381)]);function _0x293b(_0x2f8e82,_0x35439c){const _0x401a6e=_0x401a();return _0x293b=function(_0x293b87,_0x1d1b44){_0x293b87=_0x293b87-0x146;let _0x3ae0c9=_0x401a6e[_0x293b87];return _0x3ae0c9;},_0x293b(_0x2f8e82,_0x35439c);}var Bt=Object[_0x2af163(0x330)],kt=(_0x596eb4,_0xa1b805,_0x54de2e,_0x12e242)=>{const _0x5efe3e=_0x2af163;for(var _0xa99243=_0x12e242>0x1?void 0x0:_0x12e242?Bt(_0xa1b805,_0x54de2e):_0xa1b805,_0x2ef165=_0x596eb4[_0x5efe3e(0x2de)]-0x1,_0x35479d;_0x2ef165>=0x0;_0x2ef165--)(_0x35479d=_0x596eb4[_0x2ef165])&&(_0xa99243=_0x35479d(_0xa99243)||_0xa99243);return _0xa99243;},ce=(_0x40f99e,_0x59c996)=>(_0x471a9a,_0x3d60a3)=>_0x59c996(_0x471a9a,_0x3d60a3,_0x40f99e);let z=class{constructor(_0x20f873,_0x3aac30,_0x2e353c){const _0x361b9f=_0x2af163;this[_0x361b9f(0x268)]=_0x20f873,this['_transformService']=_0x3aac30,this[_0x361b9f(0x226)]=_0x2e353c;}['transformIMECache'](_0x3865ef){const _0x3500ca=_0x2af163;this[_0x3500ca(0x39b)](_0x3865ef),this['_transformPreviousActiveRange'](_0x3865ef);}[_0x2af163(0x1d7)](_0x211518){const _0x12601a=_0x2af163,{unitID:_0xeb906e}=_0x211518,_0x56c021=this['_renderManagerService'][_0x12601a(0x18d)](_0xeb906e)[_0x12601a(0x269)](b['DocIMEInputManagerService']),{redoCache:_0x59d781}=_0x56c021['getUndoRedoMutationParamsCache']();if(_0x59d781[_0x12601a(0x2de)]===0x0)return _0x211518;let _0x46a16d=a[_0x12601a(0x150)]['deepClone'](_0x211518[_0x12601a(0x16b)][0x0]);for(let _0x1bbae4=0x0;_0x1bbae4<_0x59d781[_0x12601a(0x2de)];_0x1bbae4++){const _0x4a3cbd={'id':_0x12601a(0x2a9),'params':{..._0x59d781[_0x1bbae4]}},_0x23d519=this[_0x12601a(0x39c)][_0x12601a(0x2ce)](_0x46a16d,_0x4a3cbd,!0x1);if(m[_0x12601a(0x250)](_0x23d519))throw _0x23d519[_0x12601a(0x23e)];_0x46a16d=_0x23d519['m1Prime'];}return{...a[_0x12601a(0x150)]['deepClone'](_0x211518),'mutations':[_0x46a16d]};}[_0x2af163(0x39b)](_0x10bffd){const _0x2c0690=_0x2af163,{unitID:_0x50c2e}=_0x10bffd,_0x531014=this[_0x2c0690(0x226)][_0x2c0690(0x18d)](_0x50c2e)[_0x2c0690(0x269)](b[_0x2c0690(0x235)]),{undoCache:_0x295747,redoCache:_0x5224ac}=_0x531014[_0x2c0690(0x2c8)]();if(_0x295747[_0x2c0690(0x2de)]===0x0||_0x5224ac['length']===0x0)return;const _0x4b510e=[],_0x5c1a85=[];let _0x95e968=a['Tools']['deepClone'](_0x10bffd[_0x2c0690(0x16b)][0x0]),_0x296336=a[_0x2c0690(0x150)]['deepClone'](_0x10bffd['mutations'][0x0]);for(let _0x14c3bb=_0x295747[_0x2c0690(0x2de)]-0x1;_0x14c3bb>=0x0;_0x14c3bb--){const _0x4897e1={'id':_0x2c0690(0x2a9),'params':{..._0x295747[_0x14c3bb]}},_0x3b8cb3={'id':'doc.mutation.rich-text-editing','params':{..._0x5224ac[_0x14c3bb]}},_0x25641a=this['_transformService'][_0x2c0690(0x2ce)](_0x95e968,_0x4897e1,!0x1),_0x23a6ba=this['_transformService']['transformMutation'](_0x296336,_0x3b8cb3,!0x1);if(m['isTransformMutationFailure'](_0x25641a))throw _0x25641a[_0x2c0690(0x23e)];if(m[_0x2c0690(0x250)](_0x23a6ba))throw _0x23a6ba[_0x2c0690(0x23e)];_0x4b510e[_0x2c0690(0x296)](_0x25641a[_0x2c0690(0x263)][_0x2c0690(0x19d)]),_0x5c1a85[_0x2c0690(0x296)](_0x23a6ba['m2Prime'][_0x2c0690(0x19d)]),_0x95e968=_0x25641a[_0x2c0690(0x30c)],_0x296336=_0x23a6ba[_0x2c0690(0x30c)];}_0x531014[_0x2c0690(0x224)]({'undoCache':_0x4b510e,'redoCache':_0x5c1a85});}[_0x2af163(0x38d)](_0x409ce4){const _0x27f2dc=_0x2af163,{unitID:_0x2f26ca}=_0x409ce4,_0x461234=this[_0x27f2dc(0x226)][_0x27f2dc(0x18d)](_0x2f26ca)[_0x27f2dc(0x269)](b[_0x27f2dc(0x235)]),_0x18c10d=_0x461234[_0x27f2dc(0x34f)]();if(_0x18c10d==null)return;const _0x4fc8ec=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x409ce4[_0x27f2dc(0x2a5)],'actions':null,'textRanges':[_0x18c10d]}}],_0x58fe29=this['_transformService'][_0x27f2dc(0x3c5)](_0x409ce4,_0x4fc8ec);if(!m[_0x27f2dc(0x3c1)](_0x58fe29))throw _0x58fe29[_0x27f2dc(0x23e)];const _0x23db68=_0x58fe29[_0x27f2dc(0x263)][0x0][_0x27f2dc(0x19d)][_0x27f2dc(0x206)];Array['isArray'](_0x23db68)&&_0x23db68[_0x27f2dc(0x2de)]&&_0x461234['setActiveRange'](_0x23db68[0x0]);}};z=kt([ce(0x0,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),ce(0x1,m[_0x2af163(0x1e6)]),ce(0x2,p[_0x2af163(0x15d)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x340acd,_0x2a1637,_0x536cfd,_0x58cc44)=>{const _0x2b6a09=_0x2af163;for(var _0x5e9810=_0x58cc44>0x1?void 0x0:_0x58cc44?Ht(_0x2a1637,_0x536cfd):_0x2a1637,_0x46f8b9=_0x340acd[_0x2b6a09(0x2de)]-0x1,_0x3707c8;_0x46f8b9>=0x0;_0x46f8b9--)(_0x3707c8=_0x340acd[_0x46f8b9])&&(_0x5e9810=_0x3707c8(_0x5e9810)||_0x5e9810);return _0x5e9810;},le=(_0x3b3f82,_0x1d0afd)=>(_0xcf1c70,_0x3e9a87)=>_0x1d0afd(_0xcf1c70,_0x3e9a87,_0x3b3f82);let J=class{constructor(_0x2b981b,_0x400277,_0x3d88b9){const _0x780ad6=_0x2af163;this[_0x780ad6(0x268)]=_0x2b981b,this[_0x780ad6(0x39c)]=_0x400277,this[_0x780ad6(0x1be)]=_0x3d88b9;}['transformStateCache'](_0x1f6fde){const _0x43796f=_0x2af163;this[_0x43796f(0x390)](_0x1f6fde);}['transformRemoteChangeset'](_0x23efa4){const _0x1ac172=_0x2af163,{unitID:_0x34b8af}=_0x23efa4,{collaboration:_0x412e2f}=this[_0x1ac172(0x1be)][_0x1ac172(0x277)](_0x34b8af);if(_0x412e2f[_0x1ac172(0x2de)]===0x0)return _0x23efa4;let _0x2d5531=a['Tools'][_0x1ac172(0x29b)](_0x23efa4['mutations'][0x0]);for(let _0x52f788=0x0;_0x52f788<_0x412e2f[_0x1ac172(0x2de)];_0x52f788++){const _0x2914b6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x412e2f[_0x52f788]['unitId'],..._0x412e2f[_0x52f788][_0x1ac172(0x22a)]}},_0x36d3a5=this[_0x1ac172(0x39c)][_0x1ac172(0x2ce)](_0x2d5531,_0x2914b6,!0x1);if(m[_0x1ac172(0x250)](_0x36d3a5))throw _0x36d3a5[_0x1ac172(0x23e)];_0x2d5531=_0x36d3a5[_0x1ac172(0x30c)];}return{...a['Tools'][_0x1ac172(0x29b)](_0x23efa4),'mutations':[_0x2d5531]};}[_0x2af163(0x390)](_0x19c309){const _0x44c7d9=_0x2af163,{unitID:_0x3c2061}=_0x19c309,{history:_0x70bbf1,collaboration:_0xbb86be}=this['_docStateChangeManagerService']['getStateCache'](_0x3c2061);if(_0x70bbf1[_0x44c7d9(0x2de)]===0x0&&_0xbb86be[_0x44c7d9(0x2de)]===0x0)return;const _0x22513c=[],_0xa73598=[];let _0x53a908=a[_0x44c7d9(0x150)][_0x44c7d9(0x29b)](_0x19c309['mutations'][0x0]),_0x1f933d=a[_0x44c7d9(0x150)]['deepClone'](_0x19c309[_0x44c7d9(0x16b)][0x0]);for(let _0x38dfaf=_0x70bbf1[_0x44c7d9(0x2de)]-0x1;_0x38dfaf>=0x0;_0x38dfaf--){const _0x90585={'id':_0x44c7d9(0x2a9),'params':{'unitId':_0x70bbf1[_0x38dfaf][_0x44c7d9(0x25c)],..._0x70bbf1[_0x38dfaf][_0x44c7d9(0x146)]}},_0x57cd44={'id':_0x44c7d9(0x2a9),'params':{'unitId':_0x70bbf1[_0x38dfaf][_0x44c7d9(0x25c)],..._0x70bbf1[_0x38dfaf][_0x44c7d9(0x22a)]}},_0x40f31c=this['_transformService']['transformMutation'](_0x53a908,_0x90585,!0x1),_0x430a97=this['_transformService'][_0x44c7d9(0x2ce)](_0x1f933d,_0x57cd44,!0x1);if(m[_0x44c7d9(0x250)](_0x40f31c))throw _0x40f31c[_0x44c7d9(0x23e)];if(m['isTransformMutationFailure'](_0x430a97))throw _0x430a97['error'];_0x22513c['unshift']({..._0x70bbf1[_0x38dfaf],'undoState':_0x40f31c[_0x44c7d9(0x263)][_0x44c7d9(0x19d)],'redoState':_0x430a97['m2Prime'][_0x44c7d9(0x19d)]}),_0x53a908=_0x40f31c[_0x44c7d9(0x30c)],_0x1f933d=_0x430a97[_0x44c7d9(0x30c)];}_0x53a908=a[_0x44c7d9(0x150)]['deepClone'](_0x19c309[_0x44c7d9(0x16b)][0x0]),_0x1f933d=a['Tools'][_0x44c7d9(0x29b)](_0x19c309[_0x44c7d9(0x16b)][0x0]);for(let _0x459f03=_0xbb86be[_0x44c7d9(0x2de)]-0x1;_0x459f03>=0x0;_0x459f03--){const _0xa8a327={'id':_0x44c7d9(0x2a9),'params':{'unitId':_0xbb86be[_0x459f03][_0x44c7d9(0x25c)],..._0xbb86be[_0x459f03][_0x44c7d9(0x146)]}},_0x4e6d6a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xbb86be[_0x459f03]['unitId'],..._0xbb86be[_0x459f03]['redoState']}},_0x3aa5a0=this['_transformService'][_0x44c7d9(0x2ce)](_0x53a908,_0xa8a327,!0x1),_0x4102a2=this[_0x44c7d9(0x39c)][_0x44c7d9(0x2ce)](_0x1f933d,_0x4e6d6a,!0x1);if(m[_0x44c7d9(0x250)](_0x3aa5a0))throw _0x3aa5a0[_0x44c7d9(0x23e)];if(m['isTransformMutationFailure'](_0x4102a2))throw _0x4102a2['error'];_0xa73598[_0x44c7d9(0x296)]({..._0xbb86be[_0x459f03],'undoState':_0x3aa5a0['m2Prime'][_0x44c7d9(0x19d)],'redoState':_0x4102a2[_0x44c7d9(0x263)][_0x44c7d9(0x19d)]}),_0x53a908=_0x3aa5a0['m1Prime'],_0x1f933d=_0x4102a2[_0x44c7d9(0x30c)];}this[_0x44c7d9(0x1be)][_0x44c7d9(0x2e8)](_0x3c2061,{'history':_0x22513c,'collaboration':_0xa73598});}};J=Ft([le(0x0,a[_0x2af163(0x30b)](a['Injector'])),le(0x1,m[_0x2af163(0x1e6)]),le(0x2,a['Inject'](b[_0x2af163(0x256)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x454708,_0x49db7d,_0x392441,_0x17e103)=>{const _0x255312=_0x2af163;for(var _0x440f6e=_0x17e103>0x1?void 0x0:_0x17e103?Yt(_0x49db7d,_0x392441):_0x49db7d,_0x3ba0c4=_0x454708[_0x255312(0x2de)]-0x1,_0x53df7e;_0x3ba0c4>=0x0;_0x3ba0c4--)(_0x53df7e=_0x454708[_0x3ba0c4])&&(_0x440f6e=_0x53df7e(_0x440f6e)||_0x440f6e);return _0x440f6e;},Ne=(_0x5ac0f0,_0x874491)=>(_0x1994f4,_0x3fa73b)=>_0x874491(_0x1994f4,_0x3fa73b,_0x5ac0f0);let Z=class{constructor(_0x59e80e,_0x3a3c21){const _0x2fc6f=_0x2af163;this[_0x2fc6f(0x268)]=_0x59e80e,this[_0x2fc6f(0x39c)]=_0x3a3c21;}['transformSelections'](_0x53dca2){const _0xb2c47e=_0x2af163;var _0x303d18;const _0x2fae0f=this['_injector'][_0xb2c47e(0x18c)](Y[_0xb2c47e(0x216)]),_0x2d794a=(_0x303d18=_0x2fae0f[_0xb2c47e(0x1b9)]())!=null?_0x303d18:[];if(_0x2d794a[_0xb2c47e(0x2de)]===0x0)return;const _0x33e428=_0x53dca2[_0xb2c47e(0x2a5)],_0x1b042e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x33e428,'actions':null,'textRanges':_0x2d794a}}],_0x55e8ce=this[_0xb2c47e(0x39c)]['transformMutationsWithChangeset'](_0x53dca2,_0x1b042e);if(!m[_0xb2c47e(0x3c1)](_0x55e8ce))throw _0x55e8ce[_0xb2c47e(0x23e)];const _0xe50dd9=_0x55e8ce['m2Prime'][0x0]['params'][_0xb2c47e(0x206)];Array[_0xb2c47e(0x2ad)](_0xe50dd9)&&_0xe50dd9['length']&&_0x2fae0f['replaceDocRanges'](_0xe50dd9,{'unitId':_0x33e428,'subUnitId':_0x33e428},!0x1);}};Z=Wt([Ne(0x0,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x2af163(0x330)],Xt=(_0x5c17c1,_0x195ad7,_0x7c758,_0x5a67d5)=>{for(var _0x5efd1c=_0x5a67d5>0x1?void 0x0:_0x5a67d5?Vt(_0x195ad7,_0x7c758):_0x195ad7,_0x1a82d2=_0x5c17c1['length']-0x1,_0x5f436a;_0x1a82d2>=0x0;_0x1a82d2--)(_0x5f436a=_0x5c17c1[_0x1a82d2])&&(_0x5efd1c=_0x5f436a(_0x5efd1c)||_0x5efd1c);return _0x5efd1c;},N=(_0x46012d,_0x526eb7)=>(_0x36f41e,_0x546e35)=>_0x526eb7(_0x36f41e,_0x546e35,_0x46012d);let Q=class extends a[_0x2af163(0x1e8)]{constructor(_0x341bfe,_0x54d668,_0x34a2e0,_0x5d202d,_0x40ff83,_0x3894d6,_0xf2c190,_0x109be7){const _0x54e1c5=_0x2af163;super(),h(this,_0x54e1c5(0x329),new d[(_0x54e1c5(0x201))](u[_0x54e1c5(0x33f)]['NOT_COLLAB'])),(this[_0x54e1c5(0x1be)]=_0x341bfe,this[_0x54e1c5(0x1eb)]=_0x54d668,this[_0x54e1c5(0x1e1)]=_0x34a2e0,this[_0x54e1c5(0x21d)]=_0x5d202d,this[_0x54e1c5(0x1ab)]=_0x40ff83,this[_0x54e1c5(0x3a1)]=_0x3894d6,this[_0x54e1c5(0x19a)]=_0xf2c190,this[_0x54e1c5(0x28f)]=_0x109be7,this[_0x54e1c5(0x2e3)]());}['_initEntityListener'](){const _0x392fb8=_0x2af163;this[_0x392fb8(0x1f8)](this[_0x392fb8(0x1eb)][_0x392fb8(0x383)][_0x392fb8(0x2fe)](_0xe91ccc=>{const _0x1c1e68=_0x392fb8,_0x466c7e=this['_docStateChangeManagerService']['docStateChange$'][_0x1c1e68(0x2fe)](_0x3f96e6=>{const _0x2b49c7=_0x1c1e68;if(_0x3f96e6==null)return;const {unitId:_0x3d0da8,redoState:_0xb1c2c2,commandId:_0x10a6fb}=_0x3f96e6;if(_0x3d0da8!==_0xe91ccc[_0x2b49c7(0x2a5)])return;const _0x5af077={'id':_0x10a6fb,'type':a['CommandType'][_0x2b49c7(0x2d8)],'params':{'unitId':_0x3d0da8,'actions':_0xb1c2c2[_0x2b49c7(0x214)],'textRanges':null}};_0xe91ccc[_0x2b49c7(0x1cd)](_0x5af077);});if(_0xe91ccc['disposeWithMe'](_0x466c7e),_0xe91ccc instanceof u[_0x1c1e68(0x16e)]){const _0x26c2ea={'onTransformIME':_0x4b751d=>this[_0x1c1e68(0x1e1)][_0x1c1e68(0x32e)](_0x4b751d),'onTransformState':_0x46ca09=>this[_0x1c1e68(0x21d)][_0x1c1e68(0x191)](_0x46ca09),'onTransformSelections':_0x591df1=>this[_0x1c1e68(0x1ab)]['transformSelections'](_0x591df1),'onSyncEditingCollabCursor':_0x1322ed=>this[_0x1c1e68(0x3a1)][_0x1c1e68(0x372)](_0x1322ed),'onTransformRemoteChangesetByIMECache':_0x22044d=>this['_docTransformIMECacheService'][_0x1c1e68(0x1d7)](_0x22044d),'onTransformRemoteChangesetByStateCache':_0x2ec9e2=>this[_0x1c1e68(0x21d)][_0x1c1e68(0x1d7)](_0x2ec9e2)};_0xe91ccc[_0x1c1e68(0x1f1)](_0x26c2ea);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x2af163(0x256)])),N(0x1,a[_0x2af163(0x30b)](u['CollaborationController'])),N(0x2,a[_0x2af163(0x30b)](z)),N(0x3,a[_0x2af163(0x30b)](J)),N(0x4,a[_0x2af163(0x30b)](Z)),N(0x5,a[_0x2af163(0x30b)](Ce)),N(0x6,T[_0x2af163(0x168)]),N(0x7,a['Inject'](a['LocaleService']))],Q);var Gt=Object[_0x2af163(0x330)],Kt=(_0x4882df,_0x1c9d9d,_0x1cbcd3,_0x24966a)=>{const _0x52a7fd=_0x2af163;for(var _0x9af51=_0x24966a>0x1?void 0x0:_0x24966a?Gt(_0x1c9d9d,_0x1cbcd3):_0x1c9d9d,_0x4bcb45=_0x4882df[_0x52a7fd(0x2de)]-0x1,_0x4291f6;_0x4bcb45>=0x0;_0x4bcb45--)(_0x4291f6=_0x4882df[_0x4bcb45])&&(_0x9af51=_0x4291f6(_0x9af51)||_0x9af51);return _0x9af51;},_e=(_0x4844bd,_0x23ce7e)=>(_0x1d0be4,_0x204408)=>_0x23ce7e(_0x1d0be4,_0x204408,_0x4844bd);let ge=class extends a['Disposable']{constructor(_0x48eee1,_0x473065,_0x2bc0af){const _0x54816e=_0x2af163;super(),h(this,_0x54816e(0x2e4),new Map()),h(this,_0x54816e(0x3b8),new Map()),h(this,'_disabled',!0x1),(this[_0x54816e(0x3c6)]=_0x48eee1,this[_0x54816e(0x189)]=_0x473065,this[_0x54816e(0x2fc)]=_0x2bc0af);}[_0x2af163(0x17f)](){const _0x5df58c=_0x2af163;this[_0x5df58c(0x34b)]=!0x0;}[_0x2af163(0x307)](){this['_disabled']=!0x1;}get[_0x2af163(0x17e)](){const _0x366ce6=_0x2af163;return this[_0x366ce6(0x3b8)];}[_0x2af163(0x176)](){const _0x115fbd=_0x2af163;this[_0x115fbd(0x19c)]()['then'](()=>super[_0x115fbd(0x176)]());}async[_0x2af163(0x249)](_0x4f0c3e){const _0x31319f=_0x2af163;return this[_0x31319f(0x34b)]?null:this[_0x31319f(0x189)][_0x31319f(0x345)](u[_0x31319f(0x318)](_0x4f0c3e));}async[_0x2af163(0x3a4)](_0x3c03fd,_0x3deaef){const _0x2d4130=_0x2af163;return!!this['_localStorageService'][_0x2d4130(0x2b9)](_0x3c03fd,_0x3deaef);}['updateOfflineData'](_0x4cb760,_0x2af461,_0x397e02,_0x485ee0){const _0x44d434=_0x2af163,_0x506855=this[_0x44d434(0x2fc)][_0x44d434(0x384)](_0x4cb760);this[_0x44d434(0x2e4)][_0x44d434(0x38c)](_0x4cb760,{'unitID':_0x4cb760,'type':_0x2af461,'awaitingChangeset':_0x397e02,'mutations':_0x485ee0,'rev':_0x506855}),this[_0x44d434(0x3b8)][_0x44d434(0x2cd)](_0x4cb760)||this[_0x44d434(0x1e2)](_0x4cb760);}[_0x2af163(0x1e2)](_0x212dd4){const _0x588ada=_0x2af163,_0x49c1b5=this[_0x588ada(0x2af)]();_0x49c1b5===0x0?this['_saveCache'](_0x212dd4):this[_0x588ada(0x3b8)][_0x588ada(0x38c)](_0x212dd4,setTimeout(()=>this['_saveCache'](_0x212dd4),_0x49c1b5));}['_getSaveTimeout'](){const _0x5a3aa4=_0x2af163;var _0x4dac6d;return(_0x4dac6d=this[_0x5a3aa4(0x3c6)][_0x5a3aa4(0x397)](u[_0x5a3aa4(0x2e2)]))!=null?_0x4dac6d:u[_0x5a3aa4(0x278)];}[_0x2af163(0x258)](_0x1e3fb4){const _0x153d7c=_0x2af163,_0x14b347=this[_0x153d7c(0x3b8)][_0x153d7c(0x18c)](_0x1e3fb4);return _0x14b347!==void 0x0&&window[_0x153d7c(0x2a7)](_0x14b347),this[_0x153d7c(0x189)]['setItem'](u['getLocalCacheKey'](_0x1e3fb4),this['_cachedData'][_0x153d7c(0x18c)](_0x1e3fb4))[_0x153d7c(0x350)](()=>this[_0x153d7c(0x3b8)][_0x153d7c(0x1dd)](_0x1e3fb4));}async[_0x2af163(0x19c)](){const _0x13734a=_0x2af163,_0x4f890c=[];this[_0x13734a(0x3b8)][_0x13734a(0x237)]((_0x5cb848,_0x230124)=>{const _0x15a72d=_0x13734a;window[_0x15a72d(0x2a7)](_0x5cb848),_0x4f890c[_0x15a72d(0x314)](this[_0x15a72d(0x258)](_0x230124)['then'](()=>{const _0x14e407=_0x15a72d;this[_0x14e407(0x3b8)][_0x14e407(0x1dd)](_0x230124);}));}),await Promise[_0x13734a(0x154)](_0x4f890c);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x2af163(0x1ad)]),_e(0x2,a[_0x2af163(0x30b)](m[_0x2af163(0x2d4)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x4ff4e7=_0x2af163;super(),h(this,_0x4ff4e7(0x2f6)),this[_0x4ff4e7(0x2f6)]=d[_0x4ff4e7(0x203)](window,'popstate')['pipe'](d[_0x4ff4e7(0x35c)](this[_0x4ff4e7(0x17b)]),d[_0x4ff4e7(0x317)](0x1),d[_0x4ff4e7(0x1ac)](void 0x0));}['setParam'](_0x426261,_0x1e0e6f,_0x443b54=!0x1){const _0x165237=_0x2af163,_0xba185f=new URL(window[_0x165237(0x1b3)][_0x165237(0x14b)]);_0xba185f[_0x165237(0x1c9)][_0x165237(0x38c)](_0x426261,_0x1e0e6f),_0x443b54?window[_0x165237(0x193)]['replaceState']('','',_0xba185f[_0x165237(0x2b1)]()):window['history'][_0x165237(0x2fd)]('','',_0xba185f[_0x165237(0x2b1)]());}[_0x2af163(0x241)](_0xcc9fe6,_0x284ee9=!0x1){const _0x2149ef=_0x2af163,_0x97bc29=new URL(window[_0x2149ef(0x1b3)][_0x2149ef(0x14b)]);_0x97bc29['searchParams'][_0x2149ef(0x1dd)](_0xcc9fe6),_0x284ee9?window['history'][_0x2149ef(0x37d)]('','',_0x97bc29[_0x2149ef(0x2b1)]()):window[_0x2149ef(0x193)][_0x2149ef(0x2fd)]('','',_0x97bc29[_0x2149ef(0x2b1)]());}[_0x2af163(0x174)](_0x3590e7){const _0x4552c0=_0x2af163;var _0x81f79a;return(_0x81f79a=new URL(window['location'][_0x4552c0(0x14b)])['searchParams']['get'](_0x3590e7))!=null?_0x81f79a:void 0x0;}}var qt=Object[_0x2af163(0x362)],zt=Object[_0x2af163(0x330)],Jt=(_0x17313d,_0x1de604,_0x1b1de2)=>_0x1de604 in _0x17313d?qt(_0x17313d,_0x1de604,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b1de2}):_0x17313d[_0x1de604]=_0x1b1de2,Zt=(_0xcb1645,_0x19eade,_0x2c52c1,_0x1e57c5)=>{const _0x331417=_0x2af163;for(var _0x45f401=_0x1e57c5>0x1?void 0x0:_0x1e57c5?zt(_0x19eade,_0x2c52c1):_0x19eade,_0x58ba0f=_0xcb1645[_0x331417(0x2de)]-0x1,_0x32a5d0;_0x58ba0f>=0x0;_0x58ba0f--)(_0x32a5d0=_0xcb1645[_0x58ba0f])&&(_0x45f401=_0x32a5d0(_0x45f401)||_0x45f401);return _0x45f401;},he=(_0x808717,_0x1edc24)=>(_0x1f1ac1,_0x5e5f42)=>_0x1edc24(_0x1f1ac1,_0x5e5f42,_0x808717),Qt=(_0x20e727,_0xc10ea3,_0x21e309)=>Jt(_0x20e727,_0xc10ea3+'',_0x21e309);const es=_0x2af163(0x32f);exports[_0x2af163(0x2e0)]=class extends a['Plugin']{constructor(_0x316018=Ue,_0x2428fc,_0x1903a3,_0x274389){const _0x24013f=_0x2af163;super(),this[_0x24013f(0x392)]=_0x316018,this[_0x24013f(0x226)]=_0x2428fc,this[_0x24013f(0x268)]=_0x1903a3,this['_configService']=_0x274389;const {..._0x51081e}=a[_0x24013f(0x21e)]({},Ue,this[_0x24013f(0x392)]);this[_0x24013f(0x3c6)]['setConfig']($t,_0x51081e);}['onStarting'](){const _0x4b8aeb=_0x2af163;this['_registerDependencies'](),this[_0x4b8aeb(0x2a4)]();}[_0x2af163(0x198)](){const _0x499bca=_0x2af163;this[_0x499bca(0x254)]();}[_0x2af163(0x32d)](){const _0x5a19d0=_0x2af163;var _0x4a646a;const _0x1aca9a=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5a19d0(0x32c)],{'useClass':G[_0x5a19d0(0x1df)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x5a19d0(0x39d)]],[Q],[q],[x],[de],[exports[_0x5a19d0(0x381)]]];a[_0x5a19d0(0x2ee)](this[_0x5a19d0(0x268)],a[_0x5a19d0(0x2c1)](_0x1aca9a,(_0x4a646a=this[_0x5a19d0(0x392)])==null?void 0x0:_0x4a646a[_0x5a19d0(0x26b)]));}[_0x2af163(0x254)](){const _0x4aef80=_0x2af163;this[_0x4aef80(0x1f8)](this['_renderManagerService'][_0x4aef80(0x3a6)](a[_0x4aef80(0x373)]['UNIVER_DOC'],[Ie])),this[_0x4aef80(0x1f8)](this[_0x4aef80(0x226)]['registerRenderModule'](a['UniverInstanceType'][_0x4aef80(0x23a)],[ve]));}[_0x2af163(0x2a4)](){const _0x54944e=_0x2af163;a[_0x54944e(0x20a)](this[_0x54944e(0x268)],[[x],[exports[_0x54944e(0x39d)]],[Q],[q],[exports[_0x54944e(0x381)]]]);}},Qt(exports[_0x2af163(0x2e0)],'pluginName',es),exports[_0x2af163(0x2e0)]=Zt([a[_0x2af163(0x219)](u[_0x2af163(0x1a3)]),he(0x1,p[_0x2af163(0x15d)]),he(0x2,a[_0x2af163(0x30b)](a['Injector'])),he(0x3,a['IConfigService'])],exports[_0x2af163(0x2e0)]);var ts=Object[_0x2af163(0x330)],ss=(_0x2c2b87,_0x59e22a,_0x25895e,_0x19df2c)=>{for(var _0x166659=_0x19df2c>0x1?void 0x0:_0x19df2c?ts(_0x59e22a,_0x25895e):_0x59e22a,_0x19ded1=_0x2c2b87['length']-0x1,_0x5e1311;_0x19ded1>=0x0;_0x19ded1--)(_0x5e1311=_0x2c2b87[_0x19ded1])&&(_0x166659=_0x5e1311(_0x166659)||_0x166659);return _0x166659;},F=(_0x36a22c,_0x824ad9)=>(_0x49bd8d,_0x2f775d)=>_0x824ad9(_0x49bd8d,_0x2f775d,_0x36a22c);exports['BrowserCollaborationSocketService']=class extends u[_0x2af163(0x31a)]{constructor(_0x5bba5c,_0x262d8b,_0x2dcbf5,_0x17dcdc,_0x259c62){super(_0x5bba5c,_0x262d8b,_0x2dcbf5,_0x17dcdc,_0x259c62);}async[_0x2af163(0x223)](_0x417cbc){const _0x3a938a=_0x2af163,_0x3bd472=await this[_0x3a938a(0x1a4)](),_0x4459fb=this['_createSocketURL'](_0x417cbc,_0x3bd472);return this['_doCreateSocket'](_0x4459fb);}[_0x2af163(0x167)](_0x1a773f,_0x116222){const _0x1785dc=_0x2af163,_0xeb3c30=typeof window>'u'?new URL(_0x1a773f):new URL(_0x1a773f,window[_0x1785dc(0x1b3)][_0x1785dc(0x293)]);_0xeb3c30[_0x1785dc(0x1c9)]['set'](_0x1785dc(0x1fa),_0x116222);const _0x3edc49=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1785dc(0x1b3)][_0x1785dc(0x194)]);return _0x3edc49[_0x1785dc(0x18c)](_0x1785dc(0x354))&&_0xeb3c30[_0x1785dc(0x1c9)][_0x1785dc(0x38c)]('runId',_0x3edc49[_0x1785dc(0x18c)](_0x1785dc(0x354))),_0xeb3c30[_0x1785dc(0x2b1)]();}async['_getSessionTicket'](){const _0x101101=_0x2af163;var _0x29d57e,_0x29b4aa,_0x3eb347;const _0x4db005=this[_0x101101(0x3c6)][_0x101101(0x397)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x9fb7a5=(_0x29d57e=_0x4db005==null?void 0x0:_0x4db005[_0x101101(0x2dd)])!=null?_0x29d57e:u[_0x101101(0x172)];return(_0x3eb347=(_0x29b4aa=(await this[_0x101101(0x2c9)]['get'](_0x9fb7a5,{'headers':{'Content-Type':_0x101101(0x182)}}))['body'])==null?void 0x0:_0x29b4aa[_0x101101(0x173)])!=null?_0x3eb347:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),F(0x1,a[_0x2af163(0x30b)](G[_0x2af163(0x382)])),F(0x2,a['IConfigService']),F(0x3,a['ILogService']),F(0x4,m[_0x2af163(0x16d)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x2af163(0x27c);class is extends a[_0x2af163(0x1e8)]{constructor(){const _0x4d5705=_0x2af163;super(),h(this,_0x4d5705(0x30d),a[_0x4d5705(0x1ca)]()),h(this,_0x4d5705(0x368),new Set()),h(this,_0x4d5705(0x1bd),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x4d5705(0x28b),new Map()),h(this,_0x4d5705(0x3ae),new Map()),this[_0x4d5705(0x2bf)]();}[_0x2af163(0x176)](){const _0x351709=_0x2af163;super['dispose'](),this['_clearOtherTimers'][_0x351709(0x237)]((_0x30839f,_0x298e83)=>this['_removeClearOtherTimer'](_0x298e83)),this[_0x351709(0x2e7)]&&window['clearInterval'](this[_0x351709(0x2e7)]);}['getUnitStatus$'](_0x40638b){const _0x38e23a=_0x2af163;return this[_0x38e23a(0x259)](_0x40638b)[_0x38e23a(0x26a)](d[_0x38e23a(0x239)]());}['editingUnit'](_0x53bb8b){const _0x3b8497=_0x2af163;this['_selfUnitIDs'][_0x3b8497(0x148)]===0x0&&this[_0x3b8497(0x22b)](),this[_0x3b8497(0x368)][_0x3b8497(0x199)](_0x53bb8b),this[_0x3b8497(0x24c)]({'type':0x0,'memberID':this[_0x3b8497(0x30d)],'unitIDs':[_0x53bb8b],'isForwarded':!0x1});}[_0x2af163(0x3b9)](_0x517c2e){const _0x6d64ae=_0x2af163;this['_selfUnitIDs']['delete'](_0x517c2e),this[_0x6d64ae(0x368)][_0x6d64ae(0x148)]===0x0&&this[_0x6d64ae(0x2e7)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x2af163(0x2bf)](){const _0x363583=_0x2af163;this['disposeWithMe'](a['toDisposable'](d[_0x363583(0x203)](window,_0x363583(0x327))['subscribe'](_0x350eed=>{const _0x467ac7=_0x363583;if(_0x350eed[_0x467ac7(0x319)]!==Le||!_0x350eed[_0x467ac7(0x1ae)])return;const _0x53a46d=JSON[_0x467ac7(0x359)](_0x350eed[_0x467ac7(0x1ae)]);this[_0x467ac7(0x371)](_0x53a46d);}))),window[_0x363583(0x281)]('unload',()=>this[_0x363583(0x24c)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x363583(0x2bd)](this[_0x363583(0x368)])}));}[_0x2af163(0x371)](_0x3a4b7c){const _0xc200e8=_0x2af163;switch(_0x3a4b7c[_0xc200e8(0x2f8)]){case 0x0:this[_0xc200e8(0x2ac)](_0x3a4b7c);break;case 0x1:this['_handleLeaveEvent'](_0x3a4b7c);break;case 0x2:this[_0xc200e8(0x1f9)](_0x3a4b7c);break;}}[_0x2af163(0x2ac)](_0x36b695){const _0x166c21=_0x2af163,{unitIDs:_0x5dca30,memberID:_0x576ffb,isForwarded:_0x254600}=_0x36b695;_0x5dca30[_0x166c21(0x237)](_0x953fa3=>{const _0x162abf=_0x166c21;if(!_0x254600&&this[_0x162abf(0x1bd)][_0x162abf(0x2cd)](_0x953fa3)&&this['_ensureSubject'](_0x953fa3)['next'](u[_0x162abf(0x29a)][_0x162abf(0x31f)]),!this[_0x162abf(0x1bd)]['has'](_0x953fa3)||!this[_0x162abf(0x1bd)][_0x162abf(0x18c)](_0x953fa3)[_0x162abf(0x2cd)](_0x576ffb)){const _0x3ba5e3=this[_0x162abf(0x1bd)][_0x162abf(0x18c)](_0x953fa3)||new Set();_0x3ba5e3[_0x162abf(0x199)](_0x576ffb),this[_0x162abf(0x1bd)][_0x162abf(0x38c)](_0x953fa3,_0x3ba5e3),this['_scheduleClearOtherTimer'](_0x576ffb);}}),_0x254600||this[_0x166c21(0x24c)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x166c21(0x368)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5f38d6){const _0x2f2b5e=_0x2af163;this['_removeClearOtherTimer'](_0x5f38d6);const _0xa86388=window[_0x2f2b5e(0x177)](()=>{const _0x16325f=_0x2f2b5e;this[_0x16325f(0x1bd)][_0x16325f(0x237)](_0x3d2485=>{const _0x392612=_0x16325f;_0x3d2485[_0x392612(0x1dd)](_0x5f38d6);});},Me*0x2);this[_0x2f2b5e(0x28b)][_0x2f2b5e(0x38c)](_0x5f38d6,_0xa86388);}[_0x2af163(0x1a0)](_0x1b78dd){const _0x2b8224=_0x2af163;if(this[_0x2b8224(0x28b)]['has'](_0x1b78dd)){const _0xffddcd=this[_0x2b8224(0x28b)]['get'](_0x1b78dd);_0xffddcd&&window[_0x2b8224(0x2a7)](_0xffddcd),this[_0x2b8224(0x28b)][_0x2b8224(0x38c)](_0x1b78dd,null);}}[_0x2af163(0x395)](_0x32cfd2){const _0x398c08=_0x2af163,{memberID:_0x4ff08e,unitIDs:_0x3f2a7f}=_0x32cfd2;_0x3f2a7f[_0x398c08(0x237)](_0x3e7359=>{const _0x34fe0c=_0x398c08;var _0x2960e1;const _0x5bd7a2=this['_unitOnClients']['get'](_0x3e7359);_0x5bd7a2&&(_0x5bd7a2[_0x34fe0c(0x1dd)](_0x4ff08e),(_0x2960e1=this[_0x34fe0c(0x259)](_0x3e7359))==null||_0x2960e1[_0x34fe0c(0x355)](_0x5bd7a2[_0x34fe0c(0x148)]===0x0?u['UnitStatus'][_0x34fe0c(0x1d2)]:u[_0x34fe0c(0x29a)]['OTHER_CLIENTS_EDITING']));}),this[_0x398c08(0x1a0)](_0x4ff08e);}[_0x2af163(0x1f9)](_0x320990){const _0x4d856e=_0x2af163;this[_0x4d856e(0x289)](_0x320990[_0x4d856e(0x310)]);}['_send'](_0x390cb6){localStorage['setItem'](Le,JSON['stringify'](_0x390cb6));}[_0x2af163(0x22b)](){const _0x178817=_0x2af163;this[_0x178817(0x2e7)]=window[_0x178817(0x2cb)](()=>{const _0x2f2d5e=_0x178817;this['_send']({'type':0x2,'memberID':this[_0x2f2d5e(0x30d)]});},Me);}[_0x2af163(0x259)](_0x18d5a6){const _0x572c00=_0x2af163;return this[_0x572c00(0x3ae)][_0x572c00(0x2cd)](_0x18d5a6)||this['_unitStatus'][_0x572c00(0x38c)](_0x18d5a6,new d['BehaviorSubject'](u[_0x572c00(0x29a)][_0x572c00(0x1d2)])),this[_0x572c00(0x3ae)][_0x572c00(0x18c)](_0x18d5a6);}}var Be=(_0x315c53=>(_0x315c53[_0x315c53[_0x2af163(0x227)]=0x0]=_0x2af163(0x227),_0x315c53[_0x315c53['OK']=0x1]='OK',_0x315c53[_0x315c53[_0x2af163(0x1f4)]=0x2]=_0x2af163(0x1f4),_0x315c53[_0x315c53[_0x2af163(0x2f1)]=0x3]=_0x2af163(0x2f1),_0x315c53[_0x315c53[_0x2af163(0x2d1)]=0x4]=_0x2af163(0x2d1),_0x315c53[_0x315c53[_0x2af163(0x34a)]=0x5]='UNAUTHENTICATED',_0x315c53[_0x315c53[_0x2af163(0x153)]=0x6]=_0x2af163(0x153),_0x315c53[_0x315c53[_0x2af163(0x374)]=0x7]=_0x2af163(0x374),_0x315c53[_0x315c53[_0x2af163(0x2cf)]=0x8]=_0x2af163(0x2cf),_0x315c53[_0x315c53[_0x2af163(0x23f)]=0x9]=_0x2af163(0x23f),_0x315c53[_0x315c53[_0x2af163(0x30e)]=0xa]='LOGIN_FAILED',_0x315c53[_0x315c53[_0x2af163(0x3c2)]=0x1389]=_0x2af163(0x3c2),_0x315c53[_0x315c53['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x315c53[_0x315c53['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x315c53[_0x315c53[_0x2af163(0x311)]=0x1773]=_0x2af163(0x311),_0x315c53[_0x315c53[_0x2af163(0x305)]=0x1b59]=_0x2af163(0x305),_0x315c53[_0x315c53[_0x2af163(0x1f6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x315c53[_0x315c53[_0x2af163(0x19f)]=0x1b5b]=_0x2af163(0x19f),_0x315c53[_0x315c53[_0x2af163(0x335)]=0x1b5c]=_0x2af163(0x335),_0x315c53[_0x315c53['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x315c53[_0x315c53[_0x2af163(0x387)]=0x1f41]=_0x2af163(0x387),_0x315c53[_0x315c53['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x2af163(0x1a9),_0x315c53[_0x315c53[_0x2af163(0x366)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x315c53[_0x315c53[_0x2af163(0x3b3)]=0x232b]=_0x2af163(0x3b3),_0x315c53[_0x315c53[_0x2af163(0x22d)]=0x232c]=_0x2af163(0x22d),_0x315c53[_0x315c53[_0x2af163(0x282)]=0x232d]=_0x2af163(0x282),_0x315c53[_0x315c53[_0x2af163(0x15f)]=0x2711]=_0x2af163(0x15f),_0x315c53[_0x315c53['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2af163(0x28e),_0x315c53[_0x315c53[_0x2af163(0x251)]=0x2713]=_0x2af163(0x251),_0x315c53[_0x315c53['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x2af163(0x274),_0x315c53[_0x315c53[_0x2af163(0x218)]=0x271a]=_0x2af163(0x218),_0x315c53[_0x315c53[_0x2af163(0x324)]=0x271b]=_0x2af163(0x324),_0x315c53[_0x315c53[_0x2af163(0x2ff)]=0x271c]=_0x2af163(0x2ff),_0x315c53[_0x315c53[_0x2af163(0x349)]=0x271d]=_0x2af163(0x349),_0x315c53[_0x315c53['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2af163(0x2a0),_0x315c53[_0x315c53[_0x2af163(0x285)]=0x271f]=_0x2af163(0x285),_0x315c53[_0x315c53[_0x2af163(0x2a8)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x315c53[_0x315c53[_0x2af163(0x30a)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x315c53[_0x315c53[_0x2af163(0x303)]=0x2ee2]=_0x2af163(0x303),_0x315c53[_0x315c53[_0x2af163(0x28c)]=0x2ee3]=_0x2af163(0x28c),_0x315c53[_0x315c53[_0x2af163(0x242)]=0x2ee4]=_0x2af163(0x242),_0x315c53[_0x315c53['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x2af163(0x325),_0x315c53[_0x315c53[_0x2af163(0x1a2)]=0x32c9]=_0x2af163(0x1a2),_0x315c53[_0x315c53[_0x2af163(0x309)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x315c53[_0x315c53['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x2af163(0x2d9),_0x315c53[_0x315c53[_0x2af163(0x2d3)]=-0x1]=_0x2af163(0x2d3),_0x315c53))(Be||{}),ns=Object[_0x2af163(0x330)],rs=(_0x37a809,_0x3a5a70,_0x3004b9,_0x8cafbd)=>{for(var _0x5bfd80=_0x8cafbd>0x1?void 0x0:_0x8cafbd?ns(_0x3a5a70,_0x3004b9):_0x3a5a70,_0x32bf44=_0x37a809['length']-0x1,_0x4df971;_0x32bf44>=0x0;_0x32bf44--)(_0x4df971=_0x37a809[_0x32bf44])&&(_0x5bfd80=_0x4df971(_0x5bfd80)||_0x5bfd80);return _0x5bfd80;},ue=(_0x3fe111,_0x139ae3)=>(_0x297295,_0x4141b1)=>_0x139ae3(_0x297295,_0x4141b1,_0x3fe111);exports[_0x2af163(0x18a)]=class extends a[_0x2af163(0x1e8)]{constructor(_0x43cb2c,_0x2ae03d,_0x5a0f9d){const _0x2b1106=_0x2af163;super(),this[_0x2b1106(0x2d5)]=_0x43cb2c,this['_httpService']=_0x2ae03d,this[_0x2b1106(0x3c6)]=_0x5a0f9d;}async[_0x2af163(0x3b2)](_0x75e7d5,_0x1ac3e3,_0x550823,..._0x2a4de3){const _0x4ae740=_0x2af163;var _0x39e64a,_0x142b9b,_0x124b43,_0x27ed19;const _0x56f6f4=this[_0x4ae740(0x2d5)]['getFocusedUnit']();if(!_0x56f6f4)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x261f9a=((_0x39e64a=this[_0x4ae740(0x3c6)]['getConfig'](u[_0x4ae740(0x33e)]))!=null?_0x39e64a:u[_0x4ae740(0x1f3)])+'/'+_0x75e7d5+_0x4ae740(0x379)+_0x1ac3e3,_0x361546=new URL(window[_0x4ae740(0x1b3)]['href']),_0x4c56ae={'scriptId':_0x75e7d5,'runId':(_0x142b9b=_0x361546[_0x4ae740(0x1c9)][_0x4ae740(0x18c)](_0x4ae740(0x354)))!=null?_0x142b9b:'','function':_0x1ac3e3,'unitId':_0x56f6f4['getUnitId'](),'argsOfFunction':JSON[_0x4ae740(0x287)](_0x2a4de3),'invokeId':(_0x124b43=_0x550823[_0x4ae740(0x213)])!=null?_0x124b43:'','executionId':(_0x27ed19=_0x550823[_0x4ae740(0x2b8)])!=null?_0x27ed19:''};try{const _0x23fda2=await this[_0x4ae740(0x2c9)][_0x4ae740(0x15e)](_0x261f9a,{'body':_0x4c56ae});return _0x23fda2[_0x4ae740(0x23b)][_0x4ae740(0x23e)]&&_0x23fda2[_0x4ae740(0x23b)][_0x4ae740(0x23e)][_0x4ae740(0x334)]!==Be['OK']?_0x4ae740(0x28d):_0x23fda2['body']['result'];}catch{return'Failed';}}},exports[_0x2af163(0x18a)]=rs([ue(0x0,a[_0x2af163(0x3ad)]),ue(0x1,a[_0x2af163(0x30b)](G[_0x2af163(0x382)])),ue(0x2,a[_0x2af163(0x190)])],exports[_0x2af163(0x18a)]),exports[_0x2af163(0x337)]=xe,exports[_0x2af163(0x276)]=be,exports['SheetCollabCursorShape']=Pe,exports[_0x2af163(0x3b1)]=is,exports[_0x2af163(0x2b6)]=je;
1
+ 'use strict';const _0x4bef21=_0x4804;(function(_0x5917a6,_0xfc7cd5){const _0x532c37=_0x4804,_0x2fc5be=_0x5917a6();while(!![]){try{const _0x5c32ae=parseInt(_0x532c37(0x3e9))/0x1*(parseInt(_0x532c37(0x278))/0x2)+parseInt(_0x532c37(0x231))/0x3+-parseInt(_0x532c37(0x327))/0x4*(-parseInt(_0x532c37(0x3ef))/0x5)+-parseInt(_0x532c37(0x274))/0x6*(parseInt(_0x532c37(0x3f0))/0x7)+parseInt(_0x532c37(0x2c7))/0x8+parseInt(_0x532c37(0x356))/0x9+-parseInt(_0x532c37(0x329))/0xa;if(_0x5c32ae===_0xfc7cd5)break;else _0x2fc5be['push'](_0x2fc5be['shift']());}catch(_0x516935){_0x2fc5be['push'](_0x2fc5be['shift']());}}}(_0x196b,0x73a48));var Ve=Object[_0x4bef21(0x20c)],Xe=(_0x1adc25,_0x43b4af,_0x2c6593)=>_0x43b4af in _0x1adc25?Ve(_0x1adc25,_0x43b4af,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c6593}):_0x1adc25[_0x43b4af]=_0x2c6593,h=(_0x1c775b,_0x54af83,_0x2de2bc)=>Xe(_0x1c775b,typeof _0x54af83!=_0x4bef21(0x247)?_0x54af83+'':_0x54af83,_0x2de2bc);Object[_0x4bef21(0x20c)](exports,Symbol[_0x4bef21(0x2be)],{'value':_0x4bef21(0x236)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x4bef21(0x467)),p=require('@univerjs/engine-render'),G=require(_0x4bef21(0x46c)),b=require(_0x4bef21(0x221)),Ge=require(_0x4bef21(0x45c)),d=require(_0x4bef21(0x43a)),Y=require(_0x4bef21(0x37f)),m=require(_0x4bef21(0x246)),Ee=require(_0x4bef21(0x37e)),g=require(_0x4bef21(0x387)),$=require(_0x4bef21(0x420)),X=require(_0x4bef21(0x235)),w=require(_0x4bef21(0x272)),T=require('@univerjs/ui'),D=require(_0x4bef21(0x33c)),M=require(_0x4bef21(0x41e)),Ke=require(_0x4bef21(0x2b3));var qe=Object[_0x4bef21(0x469)],ze=(_0x462ac9,_0xd6980f,_0xaf6560,_0x12eb41)=>{for(var _0x3ed4e4=_0x12eb41>0x1?void 0x0:_0x12eb41?qe(_0xd6980f,_0xaf6560):_0xd6980f,_0x5862b6=_0x462ac9['length']-0x1,_0x19c126;_0x5862b6>=0x0;_0x5862b6--)(_0x19c126=_0x462ac9[_0x5862b6])&&(_0x3ed4e4=_0x19c126(_0x3ed4e4)||_0x3ed4e4);return _0x3ed4e4;},Te=(_0x3fc4c5,_0x66df50)=>(_0x5b9b69,_0x319c7b)=>_0x66df50(_0x5b9b69,_0x319c7b,_0x3fc4c5);let de=class extends a['RxDisposable']{constructor(_0x15788,_0x238d30){const _0x24ca1b=_0x4bef21;super(),this[_0x24ca1b(0x39f)]=_0x15788,this[_0x24ca1b(0x3f6)]=_0x238d30,this[_0x24ca1b(0x2c4)]();}[_0x4bef21(0x2c4)](){const _0x3c4de9=_0x4bef21,_0x40f1e7=this;this[_0x3c4de9(0x291)](this[_0x3c4de9(0x39f)]['addClipboardHook']({'onBeforePasteImage':async _0x2197f5=>{const _0x188cb8=_0x3c4de9,_0xb35ef1=await _0x40f1e7['_imageIoService'][_0x188cb8(0x294)](_0x2197f5);return _0xb35ef1?{'source':_0xb35ef1[_0x188cb8(0x1f5)],'imageSourceType':_0xb35ef1[_0x188cb8(0x2bc)]}:null;}}));}};de=ze([Te(0x0,b[_0x4bef21(0x3e8)]),Te(0x1,Ge[_0x4bef21(0x284)])],de);const Oe=[_0x4bef21(0x2ff),_0x4bef21(0x216),_0x4bef21(0x1db),_0x4bef21(0x43c),_0x4bef21(0x30c),_0x4bef21(0x3b9)];class me extends a[_0x4bef21(0x2f3)]{constructor(){const _0x36d9be=_0x4bef21;super(...arguments),h(this,_0x36d9be(0x353),new Map()),h(this,_0x36d9be(0x337),0x0);}['assignAColorForMemberID'](_0xaff081){const _0x3b416e=_0x4bef21;if(this[_0x3b416e(0x353)][_0x3b416e(0x2ca)](_0xaff081))return this[_0x3b416e(0x353)][_0x3b416e(0x2d6)](_0xaff081);const _0x58a4db=Oe[this[_0x3b416e(0x337)]];return this[_0x3b416e(0x337)]=(this[_0x3b416e(0x337)]+0x1)%Oe[_0x3b416e(0x2a3)],this['_assignedColors'][_0x3b416e(0x323)](_0xaff081,_0x58a4db),_0x58a4db;}}function we(_0x3687b2){const _0x1b8658=_0x4bef21;let _0x160441='';for(const _0x33deb7 of _0x3687b2){const {startOffset:_0x1d7230,endOffset:_0x16eba5,isActive:_0x4520d1,rangeType:_0x489681,segmentId:_0x3299b6,segmentPage:_0x2b755c}=_0x33deb7;_0x160441[_0x1b8658(0x2a3)]&&(_0x160441+=','),_0x160441+=_0x1d7230+':'+_0x16eba5+':'+(_0x4520d1?'1':'0')+':'+_0x489681+':'+_0x3299b6+':'+_0x2b755c;}return _0x160441;}function Je(_0x5f1c61){const _0x1ae113=_0x4bef21,_0x157151=_0x5f1c61[_0x1ae113(0x256)](','),_0x36d740=[];for(const _0x2e9436 of _0x157151){const [_0x180e11,_0x3c3a8c,_0x226be7,_0x5380c4,_0x464fcd,_0x47e18d]=_0x2e9436[_0x1ae113(0x256)](':');_0x36d740[_0x1ae113(0x38b)]({'startOffset':Number(_0x180e11),'endOffset':Number(_0x3c3a8c),'collapsed':_0x180e11===_0x3c3a8c,'isActive':_0x226be7==='1','rangeType':_0x5380c4===a[_0x1ae113(0x408)][_0x1ae113(0x3de)]?a[_0x1ae113(0x408)][_0x1ae113(0x3de)]:a[_0x1ae113(0x408)][_0x1ae113(0x2e8)],'segmentId':typeof _0x464fcd==_0x1ae113(0x33a)?String(_0x464fcd):'','segmentPage':Number(_0x47e18d!=null?_0x47e18d:-0x1)});}return _0x36d740['some'](_0x39cbed=>_0x39cbed['isActive'])||(_0x36d740[0x0][_0x1ae113(0x25a)]=!0x0),_0x36d740;}class Ce extends a[_0x4bef21(0x418)]{constructor(){const _0x453291=_0x4bef21;super(...arguments),h(this,'_collabCursorState$',new d[(_0x453291(0x385))](null)),h(this,_0x453291(0x212),this[_0x453291(0x2cc)]['asObservable']());}[_0x4bef21(0x3d5)](_0x3099b1){const _0x1b8cd5=_0x4bef21,{unitID:_0x28331c,memberID:_0x2d4528,textRanges:_0x49323c}=_0x3099b1,_0x4b72e5=we(_0x49323c);if(_0x4b72e5==='')return;const _0x5d711a={'unitID':_0x28331c,'memberID':_0x2d4528,'selection':_0x4b72e5};this['_collabCursorState$'][_0x1b8cd5(0x394)](_0x5d711a);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x284b85,_0xd12814,_0x3dc25c,_0x5dcc58)=>{for(var _0xe877cc=_0x5dcc58>0x1?void 0x0:_0x5dcc58?Ze(_0xd12814,_0x3dc25c):_0xd12814,_0x2c7c23=_0x284b85['length']-0x1,_0x2b204a;_0x2c7c23>=0x0;_0x2c7c23--)(_0x2b204a=_0x284b85[_0x2c7c23])&&(_0xe877cc=_0x2b204a(_0xe877cc)||_0xe877cc);return _0xe877cc;},L=(_0x270078,_0xcbbd75)=>(_0x4ab702,_0xbf3bda)=>_0xcbbd75(_0x4ab702,_0xbf3bda,_0x270078);function _0x196b(){const _0x65d88a=['BehaviorSubject','collab-text-anchor-','@univerjs/sheets','_eventUnsubscribe','LOGIN_FAILED','_entityInit$','push','onPointerLeave$','collab-text-range-','APPLY_PERMISSION_DENIED','createSocket','INotificationService','ICommandService','ISnapshotServerService','_collaborationController','next','then','_sheetSkeletonManagerService','_instanceService','LOCAL_CACHE_INTERVAL_KEY','_drawTextRange','subscribeEvent','_messageService','IBeforeCloseService','attrs','none','_docClipboardService','extend','getItem','currentTheme$','svg','_saveCache','debounceTime','_id','NOT_COLLAB','onCommandExecuted','_hideTimer','transformSelections','Rectangle','_cursorInfo$','OTHER_CLIENT_EDITING','colorChannel1','isEditing','CollaborationSocketService','OffLineIcon','NodePositionConvertToCursor','ITransformService','translate(.97)','getLocalCacheKey','handleMoveRange','ONLINE','ThemeService','yellow.400','black','collabStatus.offline','_initCommandExecutedListener','IUniverInstanceService','round','registerDependencies','handleInsertRangeMoveRight','MOBILE_HAS_BEEN_BOUND','unit','_anchor','cursorInfo$','setActiveRange','deepClone','_removeCollabCursors','fillRule','DeleteRangeMoveUpCommandId','selection','m2Prime','transformStateCache','_onCursorUpdate','_docTransformSelectionsService','entityInit$','saveOfflineData','getMember','unitID','SYNCED','TRANSFORM_CHANGE_OBSERVABLE_TYPE','syncEditingCollabCursor','CollaborationController','FETCH_MISS','AWAITING','_transformService','replaceState','getCurrentSelections','getUnitStatus$','ENSURE_SNAPSHOT_EXECUTION','TEXT','_createSocketURL','createInstance','CollaborationStatus','onLocalMutation','hasOwnProperty','permission.title','_handleEvent','fromEvent','fillStyle','IDocClipboardService','841UlGfBU','setStateCache','WebSocketService','cursorInfo','_getAnchorBounding','_onRefRangeChange','5qNWWDq','189zKaEJS','_collabSessionService','subscribe','_updateSubUnitFromURLParams','params','restore','_imageIoService','className','collaboration.single-unit.warning','fillText','_anchorDot','arc','mask','_drawRectRange','ticket','_getSaveTimeout','idSuffix','size','MessageType','_renderManagerService','FromArray','ILocalCacheService','Tools','UniverIcon','DOC_RANGE_TYPE','univerjs-icon\x20univerjs-icon-','getParam','_getMergeRange','m1Prime','removeParam','_removeClearOtherTimer','_univerInstanceService','_initStatusListener','UniverInstanceType','with','endColumn','concat','searchParams','UnitStatus','current','RxDisposable','getColor','focused$','exhaustSavingTask','HTTPService','_localCacheService','react','EMAIL_HAS_BEEN_BOUND','rxjs/operators','DocCollaborationEntity','COLORS','handleIRemoveRow','assign','PENDING','getRangePointData','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','width','_commandService','SheetsSelectionsService','handleDeleteRangeMoveUp','collabStatus.conflict','LICENSE_EXPORT_SIZE_EXCEEDED','collaboration-client-ui.config','onMouseMove','getVpScrollXYInfoByPosToVp','getSheetObject','_clearOtherTimers','href','_backgroundColor','CLOSE_ROOM','LICENSE_IMPORT_SIZE_EXCEEDED','apply','_color','clearTimeout','rxjs','generateRandomId','red.300','registerRenderModule','_initEntityListener','ranges','moveTo','unitId','error','handleInsertRangeMoveDown','labelPosition','MoveRangeCommandId','_colorAssignService','save','getTypeOfUnitDisposed$','_registerDependencies','transformRemoteChangeset','_docTransformStateCacheService','_toggleOffline','Warning','_cachedData','entries','isTransformMutationsWithChangesetSuccess','pushState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','collabStatus.notCollab','getUndoRedoMutationParamsCache','DocIMEInputManagerService','INVITE_CODE_ALREADY_BOUND','InsertRangeMoveRightCommandId','COMPLETION_FINISHED','onPointerMove$','add','YUUMI_SUBSCRIPTION_NOT_FOUND','@univerjs/drawing','_ensureSubject','SetDocZoomRatioOperation','handleInsertCol','DocSelectionManagerService','displayName','UniverCollaborationClientPlugin','_draw','CHANGESET_REVISION_CONFILICT','requireSession','_context','@univerjs/core','div','getOwnPropertyDescriptor','WECHAT_HAS_BEEN_BOUND','executionId','@univerjs/network','getMemberID','deserializeRangeWithSheet','_document','children','reconnect','green.600','Failed','SNAPSHOT_HAS_BEEN_REMOVED','flatMap','contains','HEADER_MENU','getUnitId','name','IRenderManagerService','_notificationService','getCurrentUnitForType','debug','setTimeout','clearInterval','_docSkeleton','_labelPosition','APPLY_REJECT','getTypeOfUnitAdded$','_initDependencies','setAlpha','_initEvent','handleIRemoveCol','IMessageService','selections','_updateURLWithCurrentState','getCollabCursors$','source','tag','_getSessionTicket','getRenderById','CommandType','getSheetId','getCoordByCell','SessionStatus','urlChange$','_docSkeletonManagerService','engine','_initStatusComponent','disableLocalCache','doc.mutation.rich-text-editing','_render','url(#off-line-icon_clip0_910_343)','collab-rect-range-','IRemoteInstanceService','getStateCache','LICENSE_DISTRO_REJECTED','_startSheetCollabCursor','endRow','_handleLeaveEvent','defineProperty','_refRangeService','text','http://www.w3.org/2000/svg','uni.network.url-service','session.collaboration-timeout','collabCursorState$','useDependency','delete','init','jiqing.500','APPLY_REVISION_CONFILICT','DocStateChangeManagerService','_disabled','_send','OFFLINE','_cursorShapes','beginPath','CONFLICT','_cursors','key','@univerjs/docs-ui','YUUMI_UNABLE_LOAD_URL','call','Tooltip','_session','BrowserCollaborationSocketService','_getSheetObject','_online','setShapeProps','LocaleService','ColorKit','send','setParam','code','toDisposable','collaboration.closeRoom','2490297hLUQLz','INVITE_CODE_REQUIRED','_unitOnClients','_heartbeatTimer','@univerjs/sheets-ui','Module','transformMutation','_textBubble','setConfig','_injector','storage','toString','INTERNAL_ERROR','collaboration-client.offline-data-not-saved','distinctUntilChanged','session.connection-failed','SOCKET_FAILED','WebURLService','addObject','subunit','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','@univerjs-pro/collaboration','symbol','Inject','redoState','SetWorksheetActivateCommand','collabStatus.syncing','APPLY_NON_SEQUENTIAL_REVISION','defs','0\x200\x2016\x2016','find','Injector','USER_NOT_INVITED_CODE','trim','_docSyncEditingCollabCursorService','switchMap','InsertColCommandId','split','[CollaborationDataLoaderController]','loadUnit','_unitStatus','isActive','merge','isArray','_docStateChangeManagerService','findNodePositionByCharIndex','invokeId','_beforeCloseService','RemoteUniscriptService','_hovered','setItem','map','hide','jsx','getDocRanges','APPLY_DUPLICATED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onStarting','substring','pipe','measureText','YUUMI_URL_COL_OUT_OF_RANGE','_transformPreviousActiveRange','min','_handleJoinEvent','react/jsx-runtime','currentColor','123042TUpjhm','_roomMembers$','sheetId','registerBeforeClose','518GlERZU','drawWith','combineLatest','OnLineIcon','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','newValue','unload','loadOfflineData','_getScale','NOT_FOUND','getValue','transformMutationsWithChangeset','IImageIoService','getCurrentRevOfUnit','1em','getActiveRange','addEventListener','INVALID_ARGUMENT','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','sheetID','YUUMI_ALL_TABLES_IS_INVALID','DEFAULT_WS_SESSION_TICKET_URL','_startDocCollabCursor','debounce','_collabCursorController','disposeWithMe','_entities','RemoveColCommandId','saveImage','CollaborationSessionService','hovered','RevisionService','xlink:href','DeleteRangeMoveLeftCommandId','_toggleOnline','getViewport','path','roomMembers$','INVITE_CODE_HAS_BEEN_UES','dispose$','_updateCollabCursors','PY_RUNTIME_SCRIPT_ERROR','handleDeleteRangeMoveLeft','length','CollaborationUIEventId','_status$','getCellPositionByOffset','mergeOverrideWithDependencies','takeUntil','jsxs','backgroundColor','post','unsubscribe','white','actions','bottom','unshift','show','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','@univerjs/rpc','dispose','CollaborationEvent','CONNECTOR_DATA_TOO_LARGE','SheetCollabCursorShape','complete','Unknown\x20user','editingUnit','addHandlerCallback','imageSourceType','TEXT_RANGE_LAYER_INDEX','toStringTag','MemberService','stringify','Error','type','lineTo','_init','LOCAL_CACHE_INTERVAL','Subject','6559784wBmlvI','_scene','makeDirty','has','_dataLoaderService','_collabCursorState$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_refreshCollabCursors','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','off-line-icon','Workbook','_memberService','_uiPartsService','row','InsertRangeMoveDownCommandId','get','values','onPointerEnter$','_localStorageService','_handleHover','clsx','eventID','_cursor','YUUMI_AI_RUN_FAILED','_lastPointer','column','YUUMI_NO_CUBOID_FOR_QUESTION','univer-mr-2\x20univer-flex\x20univer-text-xl','memberID','range','isTransformMutationFailure','forEach','_httpService','RECT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UniverCollaborationClientUIPlugin','skeleton','roomMembers','on-line-icon_clip0_910_349','sessionStatus$','YUUMI_RATE_OVER_LIMIT','_themeService','SHEET_VIEWPORT_KEY','RefRangeService','Disposable','shareReplay','on-line-icon','_revisionService','IUIPartsService','_scheduleClearOtherTimer','INVALID_INVITE_CODE','_selfUnitIDs','transformByState','_registerRenderDependencies','_hover','USERS_LEAVE','purple.300','url(#$1','SOCKET_FAILED_RETRY','_configService','UNRECOGNIZED','max','_range','getRelativeToViewportCoord','createElement','_transformUndoRedoStack','fill','startColumn','CollaborationDataLoaderController','blue.400','currentSkeleton$','sessionTicket','body','Shape','all','getCollabEntity$','SetTextSelectionsOperation','SheetSkeletonManagerService','createIdentifier','_saveTaskMap','color','indexOf','_collaborationUIEventService','status$','UNAUTHENTICATED','override','ILogService','event$','toRgbString','getActiveSheet','saveTaskMap','touchDependencies','set','M0\x200H16V16H0z','ACTIVE_UNIT_EVENT_CHANNEL','PERMISSION_DENIED','1887036uNFamZ','location','19261070ioaswe','_docTransformIMECacheService','_updateLocalCursor','SetSelectionsOperation','...','ALREADY_EXISTS','history','filter','executeCommand','_initResize','OTHER_CLIENTS_EDITING','runOnServer','asObservable','AWAITING_WITH_PENDING','_colorIndex','assignAColorForMemberID','Rect','string','replaceDocRanges','@univerjs/design','IConfigService','defIds','getCurrent','_logService','prototype','textRanges','SNAPSHOT_INVALID_SNAPSHOT','updateOfflineData','getColorFromTheme','_drawAnchor','UNIVER_SHEET','wsSessionTicketUrl','resize','getConfig','getFocusedUnit','fromEventSubject','ISocketService','useCallback','_scheduleHeartbeat','subUnitId','InsertRowCommandId','IURLService','_assignedColors','UPDATE_CURSOR','CollaborationStatusDisplay','5524362MKtJqk','_config','from','forwardRef','clipPath','onRendered','DesktopCollaborationStatusDisplayController','_onCursorDelete','evenodd','session.will-retry','_syncEditingCollabCursorService','_handleHeartbeatEvent','getOwnPropertySymbols','top','_urlService','height','_setupBeforeClosingHandler','_name','CollaborationUIEventService','ILocalStorageService','EffectRefRangId','collabStatus.synced','data','getUnhiddenWorksheets','getSheetBySheetId','UNIVER_DOC','RegularPolygon','_transformHistoryAndStateStack','undoState','whenReady','runId','startRow','UNDEFINED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','TOO_MANY_REQUESTS','transformIMECache','off-line-icon_clip0_910_343','_localeService','LICENSE_MAX_UNITS_EXCEEDED','includes','@univerjs/engine-formula','@univerjs/docs','parse','_shapes','NO_OTHER_CLIENTS_EDITING','WebBrowserSingleActiveUnitService','mutations'];_0x196b=function(){return _0x65d88a;};return _0x196b();}const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x5bb9da,_0x4854d4,_0x27a44b,_0x218119,_0x400fc4,_0x1c66b1,_0xc03e8c,_0x17f4b1,_0x39639e){const _0x455397=_0x4bef21;super(),h(this,_0x455397(0x228),!0x1),h(this,'_init',!0x1),h(this,_0x455397(0x3ac),new d[(_0x455397(0x385))](new Map())),h(this,_0x455397(0x3c4),this[_0x455397(0x3ac)][_0x455397(0x335)]()),h(this,_0x455397(0x275),new d[(_0x455397(0x385))]([])),h(this,_0x455397(0x29d),this[_0x455397(0x275)][_0x455397(0x26c)](d[_0x455397(0x3a5)](et))),h(this,_0x455397(0x32b),a[_0x455397(0x28f)](_0x221b08=>{const _0x5349ef=_0x455397,_0x4b3086={'eventID':m[_0x5349ef(0x2b5)][_0x5349ef(0x354)],'data':{'unitID':this[_0x5349ef(0x3d2)],'memberID':this[_0x5349ef(0x225)][_0x5349ef(0x46d)](),'selection':we(_0x221b08)}};this[_0x5349ef(0x225)][_0x5349ef(0x22c)](_0x4b3086,this['unitID']);},tt)),(this[_0x455397(0x3d2)]=_0x5bb9da,this[_0x455397(0x225)]=_0x4854d4,this[_0x455397(0x23a)]=_0x27a44b,this[_0x455397(0x446)]=_0x218119,this['_memberService']=_0x400fc4,this[_0x455397(0x360)]=_0x1c66b1,this['_transformService']=_0xc03e8c,this[_0x455397(0x40f)]=_0x17f4b1,this[_0x455397(0x429)]=_0x39639e);}get[_0x4bef21(0x3ec)](){const _0x302bc8=_0x4bef21;return this[_0x302bc8(0x3ac)][_0x302bc8(0x282)]();}get[_0x4bef21(0x2ec)](){const _0x3cce4d=_0x4bef21;return this[_0x3cce4d(0x275)]['getValue']();}[_0x4bef21(0x2b4)](){const _0x523761=_0x4bef21;super[_0x523761(0x2b4)](),this[_0x523761(0x3ac)][_0x523761(0x394)](new Map()),this[_0x523761(0x3ac)]['complete'](),this[_0x523761(0x275)][_0x523761(0x394)]([]),this[_0x523761(0x275)][_0x523761(0x2b8)]();}[_0x4bef21(0x215)](){const _0x90fb1f=_0x4bef21;this['_init']||(this[_0x90fb1f(0x2c4)]=!0x0,this[_0x90fb1f(0x225)][_0x90fb1f(0x2ee)]['pipe'](d['takeUntil'](this[_0x90fb1f(0x29f)]))[_0x90fb1f(0x3f2)](_0x34cdee=>{const _0x4ecba6=_0x90fb1f;_0x34cdee===u['SessionStatus'][_0x4ecba6(0x3b7)]?this['_toggleOnline']():this[_0x4ecba6(0x44c)]();}),this[_0x90fb1f(0x225)]['event$']['pipe'](d[_0x90fb1f(0x2a8)](this[_0x90fb1f(0x29f)]))[_0x90fb1f(0x3f2)](_0x301e51=>{const _0x3dbcfa=_0x90fb1f,_0x275085=_0x301e51[_0x3dbcfa(0x2dc)];_0x275085===m[_0x3dbcfa(0x2b5)][_0x3dbcfa(0x354)]&&this[_0x3dbcfa(0x3cd)](_0x301e51),_0x275085===m[_0x3dbcfa(0x2b5)]['USERS_LEAVE']&&this[_0x3dbcfa(0x35d)](_0x301e51);}),this['disposeWithMe'](this[_0x90fb1f(0x429)][_0x90fb1f(0x3a8)](_0x2016ca=>{const _0x227a3=_0x90fb1f,_0x3e495a=_0x2016ca[_0x227a3(0x3f4)];_0x3e495a!=null&&this[_0x227a3(0x228)]&&_0x2016ca['id']===Y[_0x227a3(0x313)]['id']&&_0x3e495a[_0x227a3(0x441)]===this[_0x227a3(0x3d2)]&&_0x3e495a[_0x227a3(0x3af)]===!0x1&&_0x3e495a[_0x227a3(0x43f)][_0x227a3(0x2a3)]>0x0&&this[_0x227a3(0x32b)](_0x3e495a[_0x227a3(0x43f)]);})),this[_0x90fb1f(0x360)][_0x90fb1f(0x212)]['pipe'](d[_0x90fb1f(0x2a8)](this[_0x90fb1f(0x29f)]))[_0x90fb1f(0x3f2)](_0x24f777=>{const _0x1e6fd7=_0x90fb1f;if((_0x24f777==null?void 0x0:_0x24f777[_0x1e6fd7(0x3d2)])!==this[_0x1e6fd7(0x3d2)])return;const _0x2dc649={'eventID':m[_0x1e6fd7(0x2b5)]['UPDATE_CURSOR'],'data':_0x24f777};this['_onCursorUpdate'](_0x2dc649);}),this[_0x90fb1f(0x291)](this['_commandService'][_0x90fb1f(0x3a8)](_0xa10b6a=>{const _0xfd9066=_0x90fb1f;if(_0xa10b6a[_0xfd9066(0x3f4)]==null)return;const _0x230bc1=_0xa10b6a[_0xfd9066(0x3f4)];if(_0xa10b6a['id']!==Y['RichTextEditingMutation']['id']||_0x230bc1[_0xfd9066(0x441)]!==this[_0xfd9066(0x3d2)])return;const _0x5ecf0e={'id':_0xfd9066(0x202),'params':_0x230bc1},_0x12b0ca=this[_0xfd9066(0x3ec)];for(const [_0x1995da,_0x6bf4b9]of _0x12b0ca){const _0x19d0f0={'id':_0xfd9066(0x202),'params':{'unitId':this[_0xfd9066(0x3d2)],'actions':null,'textRanges':_0x6bf4b9[_0xfd9066(0x43f)]}},_0x3a44eb=this['_transformService'][_0xfd9066(0x237)](_0x5ecf0e,_0x19d0f0,!0x1);if(m[_0xfd9066(0x2e5)](_0x3a44eb))throw _0x3a44eb[_0xfd9066(0x442)];_0x12b0ca[_0xfd9066(0x323)](_0x1995da,{..._0x6bf4b9,'ranges':_0x3a44eb[_0xfd9066(0x3cb)]['params']['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x12b0ca);});})));}[_0x4bef21(0x3cd)](_0x50496f){const _0x42b429=_0x4bef21;var _0x15d524,_0x1389c8;const {memberID:_0x5644d5,selection:_0x4b7a27}=_0x50496f[_0x42b429(0x36c)],_0x5c3161=Je(_0x4b7a27),_0x5837c7=(_0x1389c8=(_0x15d524=this[_0x42b429(0x2d2)][_0x42b429(0x3d1)](this['unitID'],_0x5644d5))==null?void 0x0:_0x15d524[_0x42b429(0x1e2)])!=null?_0x1389c8:_0x42b429(0x2b9),_0x2f9c39={'color':this[_0x42b429(0x446)][_0x42b429(0x338)](_0x5644d5),'name':_0x5837c7,'ranges':_0x5c3161},_0x23c526=this[_0x42b429(0x3ec)];_0x23c526[_0x42b429(0x323)](_0x5644d5,_0x2f9c39),this['_cursorInfo$'][_0x42b429(0x394)](_0x23c526);}[_0x4bef21(0x35d)](_0x5b5730){const _0x35f9f0=_0x4bef21,{memberID:_0x1234d5}=_0x5b5730[_0x35f9f0(0x36c)],_0x43654b=this[_0x35f9f0(0x3ec)];_0x43654b[_0x35f9f0(0x214)](_0x1234d5),this[_0x35f9f0(0x3ac)][_0x35f9f0(0x394)](_0x43654b);}[_0x4bef21(0x29a)](){const _0x2fdde2=_0x4bef21;var _0x54c358;if(this['_online']=!0x0,((_0x54c358=this['_univerInstanceService'][_0x2fdde2(0x34b)]())==null?void 0x0:_0x54c358[_0x2fdde2(0x1e1)]())!==this[_0x2fdde2(0x3d2)])return;const _0x9d5f25=this[_0x2fdde2(0x23a)][_0x2fdde2(0x2d6)](Y[_0x2fdde2(0x460)])[_0x2fdde2(0x267)]();Array[_0x2fdde2(0x25c)](_0x9d5f25)&&_0x9d5f25[_0x2fdde2(0x2a3)]>0x0&&this[_0x2fdde2(0x32b)](_0x9d5f25);}[_0x4bef21(0x44c)](){const _0x2ed470=_0x4bef21;this[_0x2ed470(0x228)]=!0x1;}};fe=Qe([L(0x2,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a[_0x4bef21(0x248)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x4bef21(0x3bd)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x4bef21(0x469)],it=(_0x2a41f3,_0x27bbee,_0x5ba1b2,_0x2ee1ba)=>{for(var _0x470cbc=_0x2ee1ba>0x1?void 0x0:_0x2ee1ba?st(_0x27bbee,_0x5ba1b2):_0x27bbee,_0x1c1d01=_0x2a41f3['length']-0x1,_0x45bc91;_0x1c1d01>=0x0;_0x1c1d01--)(_0x45bc91=_0x2a41f3[_0x1c1d01])&&(_0x470cbc=_0x45bc91(_0x470cbc)||_0x470cbc);return _0x470cbc;},A=(_0x114dae,_0xcb8c3)=>(_0x618d3b,_0x5a713e)=>_0xcb8c3(_0x618d3b,_0x5a713e,_0x114dae);const nt=0x12c,rt=0x64,ot=()=>{let _0x18a4e8=[],_0x329e1f=!0x1;return _0x473605=>{_0x18a4e8['push'](_0x473605),_0x329e1f||(_0x329e1f=!0x0,setTimeout(()=>{const _0x16c05c=_0x4804;_0x18a4e8[_0x16c05c(0x2e6)](_0x402609=>_0x402609()),_0x18a4e8=[],_0x329e1f=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x45e2aa,_0x5d4751,_0x4f1854,_0x58267f,_0x529d29,_0x2ec915,_0x6f488a,_0x38f1a5){const _0x5c603c=_0x4bef21;super(),h(this,_0x5c603c(0x228),!0x1),h(this,_0x5c603c(0x2c4),!0x1),h(this,_0x5c603c(0x3ac),new d[(_0x5c603c(0x385))](new Map())),h(this,_0x5c603c(0x3c4),this['_cursorInfo$'][_0x5c603c(0x335)]()),h(this,_0x5c603c(0x275),new d[(_0x5c603c(0x385))]([])),h(this,_0x5c603c(0x29d),this[_0x5c603c(0x275)][_0x5c603c(0x26c)](d['debounceTime'](nt))),h(this,_0x5c603c(0x32b),a['debounce']((_0x5ae98b,_0x5a4ac3)=>{const _0x553320=_0x5c603c,_0x3a14b4={'eventID':m[_0x553320(0x2b5)][_0x553320(0x354)],'data':{'unitID':this[_0x553320(0x3d2)],'memberID':this['_session'][_0x553320(0x46d)](),'selection':Ee['serializeRangeWithSheet'](_0x5ae98b,_0x5a4ac3[_0x553320(0x2e4)])}};this[_0x553320(0x225)]['send'](_0x3a14b4,this[_0x553320(0x3d2)]);},rt)),(this[_0x5c603c(0x3d2)]=_0x45e2aa,this[_0x5c603c(0x225)]=_0x5d4751,this[_0x5c603c(0x23a)]=_0x4f1854,this[_0x5c603c(0x446)]=_0x58267f,this[_0x5c603c(0x2d2)]=_0x529d29,this[_0x5c603c(0x40f)]=_0x2ec915,this[_0x5c603c(0x429)]=_0x6f488a,this['_refRangeService']=_0x38f1a5);}get[_0x4bef21(0x3ec)](){const _0x4605c7=_0x4bef21;return this[_0x4605c7(0x3ac)]['getValue']();}get['roomMembers'](){const _0x3c6692=_0x4bef21;return this[_0x3c6692(0x275)]['getValue']();}['dispose'](){const _0x27c811=_0x4bef21;super[_0x27c811(0x2b4)](),this[_0x27c811(0x3ac)][_0x27c811(0x394)](new Map()),this[_0x27c811(0x3ac)]['complete'](),this['_roomMembers$']['next']([]),this[_0x27c811(0x275)][_0x27c811(0x2b8)]();}[_0x4bef21(0x215)](){const _0x5a8990=_0x4bef21;this[_0x5a8990(0x2c4)]||(this[_0x5a8990(0x2c4)]=!0x0,this[_0x5a8990(0x225)]['sessionStatus$']['pipe'](d[_0x5a8990(0x2a8)](this[_0x5a8990(0x29f)]))[_0x5a8990(0x3f2)](_0x594751=>{const _0x38ab85=_0x5a8990;_0x594751===u[_0x38ab85(0x1fc)][_0x38ab85(0x3b7)]?this[_0x38ab85(0x29a)]():this[_0x38ab85(0x44c)]();}),this[_0x5a8990(0x225)]['event$'][_0x5a8990(0x26c)](d['takeUntil'](this[_0x5a8990(0x29f)]))[_0x5a8990(0x3f2)](_0x4ea543=>{const _0xddb9ac=_0x5a8990,_0x344496=_0x4ea543['eventID'];_0x344496===m[_0xddb9ac(0x2b5)][_0xddb9ac(0x354)]&&this[_0xddb9ac(0x3cd)](_0x4ea543),_0x344496===m[_0xddb9ac(0x2b5)][_0xddb9ac(0x2fe)]&&this[_0xddb9ac(0x35d)](_0x4ea543);}),this[_0x5a8990(0x3ee)](),this[_0x5a8990(0x291)](this[_0x5a8990(0x429)][_0x5a8990(0x3a8)](_0x567c83=>{const _0x323b82=_0x5a8990;if(this[_0x323b82(0x228)]&&_0x567c83['id']===g[_0x323b82(0x32c)]['id']&&_0x567c83['params'][_0x323b82(0x441)]===this['unitID']){const _0x4a7f4b=_0x567c83[_0x323b82(0x3f4)];this['_updateLocalCursor'](_0x4a7f4b[_0x323b82(0x350)],_0x4a7f4b[_0x323b82(0x1f2)][0x0]);}})));}['_onCursorUpdate'](_0x565da5){const _0x4965a9=_0x4bef21;var _0x6ee44b,_0x4204c8;const {memberID:_0x34103e,selection:_0x3ee26b}=_0x565da5[_0x4965a9(0x36c)],{sheetName:_0x1650ab,range:_0x267706}=Ee[_0x4965a9(0x46e)](_0x3ee26b),_0x35a1f8={'name':(_0x4204c8=(_0x6ee44b=this['_memberService'][_0x4965a9(0x3d1)](this[_0x4965a9(0x3d2)],_0x34103e))==null?void 0x0:_0x6ee44b[_0x4965a9(0x1e2)])!=null?_0x4204c8:_0x4965a9(0x2b9),'range':this[_0x4965a9(0x40b)](_0x1650ab,_0x267706),'sheetID':_0x1650ab,'color':this[_0x4965a9(0x446)][_0x4965a9(0x338)](_0x34103e),'selection':_0x3ee26b},_0x1800ae=this['cursorInfo'];_0x1800ae['set'](_0x34103e,_0x35a1f8),this['_cursorInfo$']['next'](_0x1800ae);}['_onCursorDelete'](_0x55381a){const _0x4df2ab=_0x4bef21,{memberID:_0x26323a}=_0x55381a['data'],_0x4bf856=this[_0x4df2ab(0x3ec)];_0x4bf856[_0x4df2ab(0x214)](_0x26323a),this[_0x4df2ab(0x3ac)]['next'](_0x4bf856);}[_0x4bef21(0x40b)](_0x8204b1,_0x512491){const _0x2fb5c7=_0x4bef21;var _0x52884e,_0x5c6236;const _0x5ecf08=(_0x5c6236=(_0x52884e=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x2fb5c7(0x3d2)]))==null?void 0x0:_0x52884e[_0x2fb5c7(0x36e)](_0x8204b1))==null?void 0x0:_0x5c6236['getMergeData']();return(_0x5ecf08==null?void 0x0:_0x5ecf08[_0x2fb5c7(0x24f)](_0x530747=>a[_0x2fb5c7(0x3ab)][_0x2fb5c7(0x1df)](_0x530747,_0x512491)))||_0x512491;}[_0x4bef21(0x3ee)](){const _0x2b480a=_0x4bef21,_0xfce66=new a['DisposableCollection'](),_0x4ac51c=ot(),_0x6029e1=()=>{const _0x5440da=_0x4804;_0xfce66[_0x5440da(0x2b4)]();const _0x2ef1e3=(_0x392138,_0x1a5bc1,_0xa6b0ea,_0x1ade5a)=>{const _0x2d2e4c=_0x5440da;let _0x36e2e4=[];switch(_0x392138['id']){case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x299)]:{_0x36e2e4=g[_0x2d2e4c(0x2a2)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x3c9)]:{_0x36e2e4=g[_0x2d2e4c(0x42b)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x255)]:{_0x36e2e4=g[_0x2d2e4c(0x45f)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x2d5)]:{_0x36e2e4=g[_0x2d2e4c(0x443)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x457)]:{_0x36e2e4=g[_0x2d2e4c(0x3c0)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x351)]:{_0x36e2e4=g['handleInsertRow'](_0x392138,_0x1ade5a);break;}case g['EffectRefRangId'][_0x2d2e4c(0x445)]:{_0x36e2e4=g[_0x2d2e4c(0x3b6)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)][_0x2d2e4c(0x293)]:{_0x36e2e4=g[_0x2d2e4c(0x1f0)](_0x392138,_0x1ade5a);break;}case g[_0x2d2e4c(0x36a)]['RemoveRowCommandId']:{_0x36e2e4=g[_0x2d2e4c(0x423)](_0x392138,_0x1ade5a);break;}}const _0x386e40=g['runRefRangeMutations'](_0x36e2e4,_0x1ade5a),_0x14dc9a=this[_0x2d2e4c(0x3ec)][_0x2d2e4c(0x2d6)](_0x1a5bc1);if(_0x14dc9a&&_0x386e40){const _0x5511ae={..._0x14dc9a,'range':_0x386e40};this[_0x2d2e4c(0x3ec)][_0x2d2e4c(0x323)](_0x1a5bc1,_0x5511ae),_0x4ac51c(()=>{const _0x495b8f=_0x2d2e4c,_0x47634f=this[_0x495b8f(0x20d)]['registerRefRange'](_0x386e40,_0x318d70=>(_0x47634f[_0x495b8f(0x2b4)](),_0x2ef1e3(_0x318d70,_0x1a5bc1,_0xa6b0ea,_0x386e40)));_0xfce66['add'](_0x47634f);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x3d68d0,_0x20b689)=>{const _0x252d47=_0x5440da,{range:_0x8ccf3c,sheetID:_0x4c32fe}=_0x3d68d0,_0x40a3f8=this['_refRangeService']['registerRefRange'](_0x8ccf3c,_0x52ce87=>(_0x40a3f8[_0x252d47(0x2b4)](),_0x2ef1e3(_0x52ce87,_0x20b689,_0x4c32fe,_0x8ccf3c)));_0xfce66['add'](_0x40a3f8);});};this['disposeWithMe'](a[_0x2b480a(0x22f)](this[_0x2b480a(0x3ac)][_0x2b480a(0x3f2)](()=>{_0x6029e1();})));}[_0x4bef21(0x29a)](){const _0x585111=_0x4bef21;var _0x1d1d96,_0x5824c3;if(this[_0x585111(0x228)]=!0x0,((_0x1d1d96=this[_0x585111(0x40f)][_0x585111(0x34b)]())==null?void 0x0:_0x1d1d96['getUnitId']())!==this[_0x585111(0x3d2)])return;const _0x2a6b50=(_0x5824c3=this[_0x585111(0x23a)][_0x585111(0x2d6)](g[_0x585111(0x42a)])[_0x585111(0x3db)]())==null?void 0x0:_0x5824c3[0x0],_0x33d87c=this[_0x585111(0x40f)][_0x585111(0x1e5)](a[_0x585111(0x411)][_0x585111(0x347)])[_0x585111(0x320)]();_0x2a6b50&&_0x33d87c&&this[_0x585111(0x32b)](_0x33d87c[_0x585111(0x1fa)](),_0x2a6b50);}['_toggleOffline'](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),A(0x3,a['Inject'](me)),A(0x4,a['Inject'](u[_0x4bef21(0x2bf)])),A(0x5,a[_0x4bef21(0x3bd)]),A(0x6,a['ICommandService']),A(0x7,a[_0x4bef21(0x248)](g[_0x4bef21(0x2f2)]))],Se);var at=Object[_0x4bef21(0x469)],ct=(_0x5117e3,_0x34612e,_0x4abb98,_0x5c9e03)=>{const _0x35c6a2=_0x4bef21;for(var _0x74bde3=_0x5c9e03>0x1?void 0x0:_0x5c9e03?at(_0x34612e,_0x4abb98):_0x34612e,_0x230dcd=_0x5117e3[_0x35c6a2(0x2a3)]-0x1,_0x101c3c;_0x230dcd>=0x0;_0x230dcd--)(_0x101c3c=_0x5117e3[_0x230dcd])&&(_0x74bde3=_0x101c3c(_0x74bde3)||_0x74bde3);return _0x74bde3;},ie=(_0x163f74,_0x16da7c)=>(_0x55fa35,_0x4d51f8)=>_0x16da7c(_0x55fa35,_0x4d51f8,_0x163f74);let x=class extends a[_0x4bef21(0x418)]{constructor(_0x3c624d,_0x30cbfa,_0x553394){const _0x44ff25=_0x4bef21;super(),h(this,_0x44ff25(0x292),new Map()),h(this,_0x44ff25(0x38a),new d[(_0x44ff25(0x2c6))]()),(this[_0x44ff25(0x40f)]=_0x3c624d,this[_0x44ff25(0x23a)]=_0x30cbfa,this[_0x44ff25(0x3f1)]=_0x553394,this[_0x44ff25(0x2c4)]());}[_0x4bef21(0x2b4)](){const _0x1b2059=_0x4bef21;super['dispose'](),this['_entityInit$'][_0x1b2059(0x2b8)](),this[_0x1b2059(0x292)][_0x1b2059(0x2e6)](_0x49b373=>_0x49b373[_0x1b2059(0x2b4)]());}[_0x4bef21(0x1f4)](_0x544c28){const _0x253ba4=_0x4bef21;return this[_0x253ba4(0x292)][_0x253ba4(0x2ca)](_0x544c28)?this['_entities'][_0x253ba4(0x2d6)](_0x544c28)[_0x253ba4(0x3c4)]:this[_0x253ba4(0x38a)]['pipe'](d['filter'](_0x148f88=>_0x148f88[_0x253ba4(0x3d2)]===_0x544c28),d[_0x253ba4(0x254)](_0x3121e9=>_0x3121e9[_0x253ba4(0x3c4)]));}['_init'](){const _0x5387f0=_0x4bef21;this[_0x5387f0(0x40f)]['getTypeOfUnitAdded$'](a[_0x5387f0(0x411)][_0x5387f0(0x347)])[_0x5387f0(0x26c)](d[_0x5387f0(0x2a8)](this[_0x5387f0(0x29f)]))['subscribe'](async _0x314a42=>{const _0xc05565=_0x5387f0,_0x3afd62=_0x314a42[_0xc05565(0x1e1)](),_0x5961d4=await this['_startSheetCollabCursor'](_0x3afd62);this[_0xc05565(0x38a)][_0xc05565(0x394)](_0x5961d4),this[_0xc05565(0x292)][_0xc05565(0x323)](_0x3afd62,_0x5961d4);}),this[_0x5387f0(0x40f)][_0x5387f0(0x1ec)](a[_0x5387f0(0x411)][_0x5387f0(0x36f)])['pipe'](d[_0x5387f0(0x2a8)](this['dispose$']))[_0x5387f0(0x26c)](d[_0x5387f0(0x330)](_0x5bfa21=>!_0x5bfa21[_0x5387f0(0x1e1)]()['startsWith']('__')))[_0x5387f0(0x3f2)](async _0x26040a=>{const _0x1287ec=_0x5387f0,_0x32b1b2=_0x26040a[_0x1287ec(0x1e1)](),_0x250063=await this[_0x1287ec(0x28e)](_0x32b1b2);this[_0x1287ec(0x38a)][_0x1287ec(0x394)](_0x250063),this[_0x1287ec(0x292)]['set'](_0x32b1b2,_0x250063);}),d['merge'](this['_univerInstanceService'][_0x5387f0(0x448)](a['UniverInstanceType']['UNIVER_DOC']),this[_0x5387f0(0x40f)][_0x5387f0(0x448)](a[_0x5387f0(0x411)][_0x5387f0(0x347)]))[_0x5387f0(0x26c)](d[_0x5387f0(0x2a8)](this['dispose$']))[_0x5387f0(0x3f2)](_0x322a85=>{const _0x4373fa=_0x5387f0,_0x120d9f=_0x322a85[_0x4373fa(0x1e1)](),_0x16ccc8=this[_0x4373fa(0x292)][_0x4373fa(0x2d6)](_0x120d9f);_0x16ccc8&&(_0x16ccc8[_0x4373fa(0x2b4)](),this[_0x4373fa(0x292)][_0x4373fa(0x214)](_0x120d9f));});}async[_0x4bef21(0x209)](_0x5ca857){const _0x266e00=_0x4bef21,_0x17cdd6=await this[_0x266e00(0x3f1)][_0x266e00(0x465)](_0x5ca857),_0x16cf57=this['_injector'][_0x266e00(0x3e0)](Se,_0x5ca857,_0x17cdd6);return _0x16cf57[_0x266e00(0x215)](),_0x16cf57;}async[_0x4bef21(0x28e)](_0x3ed77b){const _0xf9eed1=_0x4bef21,_0x1dbe12=await this[_0xf9eed1(0x3f1)][_0xf9eed1(0x465)](_0x3ed77b),_0x2e8141=this[_0xf9eed1(0x23a)][_0xf9eed1(0x3e0)](fe,_0x3ed77b,_0x1dbe12);return _0x2e8141['init'](),_0x2e8141;}};x=ct([ie(0x0,a[_0x4bef21(0x3bd)]),ie(0x1,a['Inject'](a[_0x4bef21(0x250)])),ie(0x2,a[_0x4bef21(0x248)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3053ae,_0x2d2e13){const _0xcb5d75=_0x4bef21;let {radius:_0x40be6c,width:_0x5cf6e0,height:_0x327b14}=_0x2d2e13;_0x40be6c=_0x40be6c!=null?_0x40be6c:0x0,_0x5cf6e0=_0x5cf6e0!=null?_0x5cf6e0:0x1e,_0x327b14=_0x327b14!=null?_0x327b14:0x1e;let _0x3cb0ef=0x0,_0x21add1=0x0,_0x35e5e5=0x0;_0x3cb0ef=_0x21add1=_0x35e5e5=Math[_0xcb5d75(0x270)](_0x40be6c,_0x5cf6e0/0x2,_0x327b14/0x2),_0x3053ae[_0xcb5d75(0x21d)](),_0x3053ae[_0xcb5d75(0x440)](_0x3cb0ef,0x0),_0x3053ae[_0xcb5d75(0x2c3)](_0x5cf6e0-_0x21add1,0x0),_0x3053ae[_0xcb5d75(0x3fb)](_0x5cf6e0-_0x21add1,_0x21add1,_0x21add1,Math['PI']*0x3/0x2,0x0,!0x1),_0x3053ae['lineTo'](_0x5cf6e0,_0x327b14-_0x35e5e5),_0x3053ae[_0xcb5d75(0x3fb)](_0x5cf6e0-_0x35e5e5,_0x327b14-_0x35e5e5,_0x35e5e5,0x0,Math['PI']/0x2,!0x1),_0x3053ae[_0xcb5d75(0x2c3)](0x0,_0x327b14),_0x3053ae['lineTo'](0x0,_0x3cb0ef),_0x3053ae[_0xcb5d75(0x3fb)](_0x3cb0ef,_0x3cb0ef,_0x3cb0ef,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3053ae['closePath'](),_0x2d2e13[_0xcb5d75(0x309)]&&(_0x3053ae[_0xcb5d75(0x447)](),_0x3053ae[_0xcb5d75(0x3e7)]=_0x2d2e13[_0xcb5d75(0x309)],_0x2d2e13[_0xcb5d75(0x3c8)]==='evenodd'?_0x3053ae[_0xcb5d75(0x309)](_0xcb5d75(0x35e)):_0x3053ae[_0xcb5d75(0x309)](),_0x3053ae[_0xcb5d75(0x3f5)]());}class ee extends p[_0x4bef21(0x310)]{constructor(_0x2b90e9,_0x18ce6e){const _0x3b5d52=_0x4bef21;super(_0x2b90e9,_0x18ce6e),h(this,'color'),h(this,_0x3b5d52(0x20e)),(this[_0x3b5d52(0x317)]=_0x18ce6e==null?void 0x0:_0x18ce6e[_0x3b5d52(0x317)],this['text']=_0x18ce6e==null?void 0x0:_0x18ce6e['text']);}static[_0x4bef21(0x279)](_0x25987a,_0x4237b2){const _0x5f5a4c=_0x4bef21,{text:_0x3d01cc,color:_0x5c9c9c}=_0x4237b2;_0x25987a['save'](),_0x25987a['font']=_0x5f5a4c(0x452);const _0x414056=_0x25987a['measureText'](_0x3d01cc)[_0x5f5a4c(0x428)],_0x4ee92e=Math['min'](_0x414056+0x2*ne,Re);_t(_0x25987a,{'height':K,'radius':0x4,'width':_0x4ee92e,'fill':_0x5c9c9c}),_0x25987a[_0x5f5a4c(0x3e7)]='#FFF';const _0x1a3cc2=ne,_0x30a9ec=K-lt,_0x4a2c3d=Re-0x2*ne;if(_0x414056>_0x4a2c3d){let _0xc9ede0='',_0x4671c0=0x0;for(const _0xc57ddd of _0x3d01cc){const _0x5a5e8f=_0x25987a[_0x5f5a4c(0x26d)](_0xc57ddd)[_0x5f5a4c(0x428)];if(_0x4671c0+_0x5a5e8f<=_0x4a2c3d-_0x25987a[_0x5f5a4c(0x26d)](_0x5f5a4c(0x32d))['width'])_0xc9ede0+=_0xc57ddd,_0x4671c0+=_0x5a5e8f;else{_0xc9ede0+='...';break;}}_0x25987a[_0x5f5a4c(0x3f9)](_0xc9ede0,_0x1a3cc2,_0x30a9ec);}else _0x25987a[_0x5f5a4c(0x3f9)](_0x3d01cc,_0x1a3cc2,_0x30a9ec);_0x25987a[_0x5f5a4c(0x3f5)]();}[_0x4bef21(0x463)](_0x51e5f5){const _0x4c71a6=_0x4bef21;ee[_0x4c71a6(0x279)](_0x51e5f5,this);}}const re=_0x4bef21(0x386),ht=_0x4bef21(0x38d),ut=_0x4bef21(0x205),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x81eb01,_0x449cf9,_0x1de974,_0x239df9){const _0x2b3990=_0x4bef21;h(this,_0x2b3990(0x381),[]),h(this,_0x2b3990(0x3c3),null),h(this,'_textBubble',null),h(this,_0x2b3990(0x3fa),null),h(this,'_hideTimer',null),h(this,_0x2b3990(0x388),null),(this[_0x2b3990(0x2dd)]=_0x81eb01,this[_0x2b3990(0x2c8)]=_0x449cf9,this[_0x2b3990(0x1e9)]=_0x1de974,this[_0x2b3990(0x1d8)]=_0x239df9,this['_render']());}set[_0x4bef21(0x2fd)](_0x22142c){const _0x1b82e5=_0x4bef21;_0x22142c?(this[_0x1b82e5(0x3fa)]&&this[_0x1b82e5(0x3fa)][_0x1b82e5(0x265)](),this[_0x1b82e5(0x238)]&&this[_0x1b82e5(0x238)][_0x1b82e5(0x2b1)]()):(this['_anchorDot']&&this[_0x1b82e5(0x3fa)][_0x1b82e5(0x2b1)](),this[_0x1b82e5(0x238)]&&this[_0x1b82e5(0x238)][_0x1b82e5(0x265)]());}[_0x4bef21(0x2b4)](){const _0x403f33=_0x4bef21;for(const _0x36aa5c of this[_0x403f33(0x381)])_0x36aa5c['dispose']();this[_0x403f33(0x238)]&&this[_0x403f33(0x238)][_0x403f33(0x2b4)](),this['_anchorDot']&&this[_0x403f33(0x3fa)]['dispose'](),this['_anchor']&&this[_0x403f33(0x3c3)][_0x403f33(0x2b4)](),this[_0x403f33(0x388)]&&this[_0x403f33(0x388)]();}[_0x4bef21(0x203)](){const _0x22bc98=_0x4bef21;var _0x55103c;const {_docSkeleton:_0x1368b9,_document:_0x207e36}=this,{color:_0x31ce48,name:_0x120229,ranges:_0x3a40e9}=this[_0x22bc98(0x2dd)],_0x51c0ab=_0x207e36['getOffsetConfig'](),{docsLeft:_0x5c58a9,docsTop:_0x34d221}=_0x51c0ab,_0x4bfa82=new b[(_0x22bc98(0x3b2))](_0x51c0ab,_0x1368b9);for(const {startOffset:_0x104340,endOffset:_0x20292a,rangeType:_0x102bf4,segmentId:_0x186299,segmentPage:_0x401b12,collapsed:_0x30321f,isActive:_0x167df4}of _0x3a40e9){const _0x2eb867=_0x1368b9[_0x22bc98(0x25e)](_0x104340,!0x0,_0x186299,_0x401b12);let _0xfd9c5f=_0x1368b9[_0x22bc98(0x25e)](_0x20292a,!0x0,_0x186299,_0x401b12);if(_0xfd9c5f==null&&(_0xfd9c5f=_0x1368b9[_0x22bc98(0x25e)](_0x20292a-0x1,!0x1,_0x186299,_0x401b12)),_0x167df4){const {contentBoxPointGroup:_0x1d6762}=_0x4bfa82[_0x22bc98(0x426)](_0xfd9c5f,_0xfd9c5f);if(_0x1d6762[_0x22bc98(0x2a3)]===0x0)continue;this[_0x22bc98(0x346)](_0x31ce48,_0x1d6762,_0x5c58a9,_0x34d221,_0x120229),this[_0x22bc98(0x388)]=this[_0x22bc98(0x2da)]();}if(_0x2eb867&&_0xfd9c5f){if(_0x102bf4===a[_0x22bc98(0x408)]['RECT']){const _0x345f29=new b['NodePositionConvertToRectRange'](_0x51c0ab,_0x1368b9),{pointGroup:_0x17cde1}=(_0x55103c=_0x345f29['getRangePointData'](_0x2eb867,_0xfd9c5f))!=null?_0x55103c:{};if(_0x17cde1==null||_0x17cde1[_0x22bc98(0x2a3)]===0x0)continue;this[_0x22bc98(0x3fd)](_0x31ce48,_0x17cde1,_0x5c58a9,_0x34d221);}else{if(!_0x30321f){const {borderBoxPointGroup:_0x1295d6}=_0x4bfa82['getRangePointData'](_0x2eb867,_0xfd9c5f);if(_0x1295d6[_0x22bc98(0x2a3)]===0x0)continue;this[_0x22bc98(0x399)](_0x31ce48,_0x1295d6,_0x5c58a9,_0x34d221);}}}}}[_0x4bef21(0x346)](_0x246cdf,_0x20a9b9,_0x4611f4,_0x532e93,_0x15eccc){const _0x25ddf6=_0x4bef21,_0x5307ea=this[_0x25ddf6(0x3ed)](_0x20a9b9),{left:_0x34cc08,top:_0x588817,height:_0x5aa011}=_0x5307ea,_0x23e59a=this[_0x25ddf6(0x280)](),_0x467bf6=ft/_0x23e59a,_0x186a14=new p['Rect'](re+a['Tools'][_0x25ddf6(0x43b)](k),{'left':_0x34cc08+_0x4611f4-_0x467bf6,'top':_0x588817+_0x532e93,'height':_0x5aa011,'width':dt,'fill':_0x246cdf||p[_0x25ddf6(0x419)](a[_0x25ddf6(0x422)][_0x25ddf6(0x3ba)],0x0),'strokeWidth':_0x467bf6,'stroke':St,'evented':!0x0});this[_0x25ddf6(0x3c3)]=_0x186a14,this['_scene'][_0x25ddf6(0x243)](_0x186a14,b[_0x25ddf6(0x2bd)]);const _0x1a6ca1=new p[(_0x25ddf6(0x339))](re+a[_0x25ddf6(0x406)][_0x25ddf6(0x43b)](k),{'left':_0x34cc08+_0x4611f4-_0x467bf6,'top':_0x588817+_0x532e93-oe/0x2,'height':oe,'width':oe,'fill':_0x246cdf||p['getColor'](a[_0x25ddf6(0x422)][_0x25ddf6(0x3ba)],0x0),'strokeWidth':0x0,'stroke':_0x246cdf||p[_0x25ddf6(0x419)](a[_0x25ddf6(0x422)][_0x25ddf6(0x3ba)],0x0),'evented':!0x1});this[_0x25ddf6(0x3fa)]=_0x1a6ca1,this[_0x25ddf6(0x2c8)][_0x25ddf6(0x243)](_0x1a6ca1,b[_0x25ddf6(0x2bd)]);const _0x41ed3c=new ee(re+a['Tools'][_0x25ddf6(0x43b)](k),{'left':_0x34cc08+_0x4611f4-_0x467bf6,'top':_0x588817+_0x532e93-K,'text':_0x15eccc,'color':_0x246cdf});this[_0x25ddf6(0x238)]=_0x41ed3c,this[_0x25ddf6(0x2c8)]['addObject'](_0x41ed3c,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x4bef21(0x2da)](){const _0x3adea9=_0x4bef21,_0x2e9bac=this['_anchor']['onPointerEnter$'][_0x3adea9(0x39a)](()=>{this['_hover']=!0x0;}),_0x3f8bde=this[_0x3adea9(0x3c3)]['onPointerLeave$'][_0x3adea9(0x39a)](()=>{const _0xe168dc=_0x3adea9;this[_0xe168dc(0x3a9)]&&clearTimeout(this[_0xe168dc(0x3a9)]),this['_hideTimer']=setTimeout(()=>{const _0x40c953=_0xe168dc;this[_0x40c953(0x2fd)]=!0x1;},0x7d0);});return()=>{const _0x345449=_0x3adea9;_0x2e9bac[_0x345449(0x2ac)](),_0x3f8bde[_0x345449(0x2ac)]();};}[_0x4bef21(0x399)](_0x4870f7,_0xd03acd,_0x3c5b56,_0x3c8925){const _0x3999a=_0x4bef21,_0x31b61f=new a[(_0x3999a(0x22b))](_0x4870f7)[_0x3999a(0x1ee)](0.2)[_0x3999a(0x31f)](),_0xd6f81f=new p[(_0x3999a(0x370))](ht+a[_0x3999a(0x406)][_0x3999a(0x43b)](k),{'pointsGroup':_0xd03acd,'fill':_0x31b61f||p[_0x3999a(0x419)](a['COLORS']['black'],0.2),'left':_0x3c5b56,'top':_0x3c8925,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3999a(0x38b)](_0xd6f81f),this[_0x3999a(0x2c8)][_0x3999a(0x243)](_0xd6f81f,b[_0x3999a(0x2bd)]);}['_drawRectRange'](_0x31f4b,_0x53fc2c,_0x520559,_0x3a5fa6){const _0x3a1d5f=_0x4bef21,_0x50ee01=new a['ColorKit'](_0x31f4b)['setAlpha'](0.2)['toRgbString'](),_0x9d60d7=new p[(_0x3a1d5f(0x370))](ut+a[_0x3a1d5f(0x406)][_0x3a1d5f(0x43b)](k),{'pointsGroup':_0x53fc2c,'fill':_0x50ee01||p[_0x3a1d5f(0x419)](a['COLORS'][_0x3a1d5f(0x3ba)],0.2),'left':_0x520559,'top':_0x3a5fa6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a1d5f(0x381)][_0x3a1d5f(0x38b)](_0x9d60d7),this[_0x3a1d5f(0x2c8)][_0x3a1d5f(0x243)](_0x9d60d7,b[_0x3a1d5f(0x2bd)]);}['_getAnchorBounding'](_0x500b72){const _0x36d4f1=_0x500b72[0x0],_0x256443=_0x36d4f1[0x0],_0x3b71aa=_0x36d4f1[0x2],{x:_0xbad1f0,y:_0x5c5160}=_0x256443,{x:_0x403e69,y:_0x45e0d9}=_0x3b71aa;return{'left':_0xbad1f0,'top':_0x5c5160,'width':_0x403e69-_0xbad1f0,'height':_0x45e0d9-_0x5c5160};}[_0x4bef21(0x280)](){const _0x836efb=_0x4bef21,{scaleX:_0x2ac174,scaleY:_0x2e352d}=this[_0x836efb(0x2c8)]['getAncestorScale']();return Math[_0x836efb(0x304)](_0x2ac174,_0x2e352d);}}var It=Object[_0x4bef21(0x469)],vt=(_0x438366,_0x3f2612,_0x3871d0,_0x1a0ac6)=>{const _0xbbd2f3=_0x4bef21;for(var _0xb6f703=_0x1a0ac6>0x1?void 0x0:_0x1a0ac6?It(_0x3f2612,_0x3871d0):_0x3f2612,_0x5487af=_0x438366[_0xbbd2f3(0x2a3)]-0x1,_0x336e9a;_0x5487af>=0x0;_0x5487af--)(_0x336e9a=_0x438366[_0x5487af])&&(_0xb6f703=_0x336e9a(_0xb6f703)||_0xb6f703);return _0xb6f703;},W=(_0x48e9cd,_0x37de74)=>(_0x1927c0,_0x4a9e85)=>_0x37de74(_0x1927c0,_0x4a9e85,_0x48e9cd);let Ie=class extends a[_0x4bef21(0x418)]{constructor(_0x34d10e,_0x4ed96f,_0x22677f,_0x2b6a7d,_0x31a99b){const _0x5b2b64=_0x4bef21;super(),h(this,_0x5b2b64(0x21c),[]),h(this,_0x5b2b64(0x21f),[]),(this[_0x5b2b64(0x466)]=_0x34d10e,this[_0x5b2b64(0x1fe)]=_0x4ed96f,this[_0x5b2b64(0x290)]=_0x22677f,this[_0x5b2b64(0x429)]=_0x2b6a7d,this[_0x5b2b64(0x2f0)]=_0x31a99b,this['_init']());}[_0x4bef21(0x2c4)](){const _0x14a12f=_0x4bef21,_0x594941=this[_0x14a12f(0x466)][_0x14a12f(0x441)],_0x3db949=this[_0x14a12f(0x1fe)];this[_0x14a12f(0x291)](d[_0x14a12f(0x27a)]([this['_collabCursorController'][_0x14a12f(0x1f4)](_0x594941),this[_0x14a12f(0x2f0)][_0x14a12f(0x3a2)]])[_0x14a12f(0x26c)]($[_0x14a12f(0x264)](([_0x3e2039,_0x4f89cb])=>({'skeleton':_0x3db949['getSkeleton'](),'cursors':[..._0x3e2039[_0x14a12f(0x2d7)]()][_0x14a12f(0x1de)](_0x4a55d2=>({..._0x4a55d2,'color':this[_0x14a12f(0x2f0)]['getColorFromTheme'](_0x4a55d2[_0x14a12f(0x317)])}))})))[_0x14a12f(0x3f2)](_0x2ad067=>{const _0x225e41=_0x14a12f;if(this[_0x225e41(0x3c7)](),_0x2ad067){const {skeleton:_0x45942c,cursors:_0x3adabb}=_0x2ad067;this[_0x225e41(0x2a0)](_0x45942c,_0x3adabb);}})),this[_0x14a12f(0x332)](),this[_0x14a12f(0x3bc)]();}[_0x4bef21(0x2a0)](_0x599e4d,_0x388106){const _0x11b34c=_0x4bef21,{scene:_0x4b320a,mainComponent:_0x58ad70}=this[_0x11b34c(0x466)],_0x372c2f=_0x388106[_0x11b34c(0x264)](_0x10aff3=>new De(_0x10aff3,_0x4b320a,_0x599e4d,_0x58ad70));this[_0x11b34c(0x21c)]=_0x372c2f,this[_0x11b34c(0x21f)]=_0x388106;}[_0x4bef21(0x2ce)](){const _0xcff72b=_0x4bef21;this[_0xcff72b(0x3c7)]();const {scene:_0x5779ea,mainComponent:_0x1d951a}=this[_0xcff72b(0x466)],_0x1ba7f9=this[_0xcff72b(0x1fe)]['getSkeleton'](),_0x31c2f3=this[_0xcff72b(0x21f)][_0xcff72b(0x264)](_0x9f0b68=>new De(_0x9f0b68,_0x5779ea,_0x1ba7f9,_0x1d951a));this[_0xcff72b(0x21c)]=_0x31c2f3;}[_0x4bef21(0x3c7)](){const _0x28a073=_0x4bef21;this[_0x28a073(0x21c)][_0x28a073(0x2e6)](_0x279ba7=>_0x279ba7[_0x28a073(0x2b4)]()),this[_0x28a073(0x21c)]=[];}[_0x4bef21(0x3bc)](){const _0xa11354=_0x4bef21,_0x304784=[b[_0xa11354(0x45e)]['id']];this['disposeWithMe'](this[_0xa11354(0x429)][_0xa11354(0x3a8)](_0xcdf57d=>{const _0xa2ec07=_0xa11354;_0x304784[_0xa2ec07(0x37d)](_0xcdf57d['id'])&&_0xcdf57d[_0xa2ec07(0x3f4)][_0xa2ec07(0x441)]===this[_0xa2ec07(0x466)]['unitId']&&this[_0xa2ec07(0x2ce)]();}));}[_0x4bef21(0x332)](){const _0xd49581=_0x4bef21;this[_0xd49581(0x291)](a[_0xd49581(0x34c)](this[_0xd49581(0x466)][_0xd49581(0x1ff)]['onTransformChange$'])['pipe']($['filter'](_0x3a28ff=>_0x3a28ff[_0xd49581(0x2c2)]===p[_0xd49581(0x3d4)][_0xd49581(0x349)]),$['throttleTime'](0x10))[_0xd49581(0x3f2)](()=>{const _0x1eddb7=_0xd49581;this[_0x1eddb7(0x2ce)]();}));}};Ie=vt([W(0x1,a[_0x4bef21(0x248)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x4bef21(0x248)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x4bef21(0x248)](a[_0x4bef21(0x3b8)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p['Shape']{constructor(_0x164bd7,_0x3842f7){const _0xdc2d50=_0x4bef21;super(_0x164bd7,_0x3842f7),h(this,'_color'),h(this,_0xdc2d50(0x262),!0x1),h(this,_0xdc2d50(0x305)),h(this,_0xdc2d50(0x367),''),h(this,_0xdc2d50(0x1ea),_0xdc2d50(0x363)),h(this,_0xdc2d50(0x434)),(_0x3842f7&&this['setShapeProps'](_0x3842f7),this[_0xdc2d50(0x2d8)][_0xdc2d50(0x39a)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0xdc2d50(0x38c)][_0xdc2d50(0x39a)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4bef21(0x229)](_0x56e584){const _0x5c0438=_0x4bef21;var _0x3a1837,_0x590ced,_0x4fb054,_0x354708,_0x15cd52,_0x358c95;this[_0x5c0438(0x438)]=(_0x3a1837=_0x56e584['color'])!=null?_0x3a1837:this['_color'],this[_0x5c0438(0x262)]=(_0x590ced=_0x56e584[_0x5c0438(0x296)])!=null?_0x590ced:this[_0x5c0438(0x262)],this[_0x5c0438(0x305)]=(_0x4fb054=_0x56e584[_0x5c0438(0x2e4)])!=null?_0x4fb054:this['_range'],this[_0x5c0438(0x367)]=(_0x354708=_0x56e584['name'])!=null?_0x354708:this['_name'],this[_0x5c0438(0x1ea)]=(_0x15cd52=_0x56e584[_0x5c0438(0x444)])!=null?_0x15cd52:this[_0x5c0438(0x1ea)],this['_backgroundColor']=(_0x358c95=_0x56e584[_0x5c0438(0x2aa)])!=null?_0x358c95:this[_0x5c0438(0x434)],this[_0x5c0438(0x2fb)]({'width':_0x56e584['width'],'height':_0x56e584[_0x5c0438(0x365)]});}[_0x4bef21(0x42f)](_0x8f1346){const _0x28584a=_0x4bef21,{row:_0x44645d,column:_0x563150}=_0x8f1346;if(_0x44645d>=this[_0x28584a(0x305)][_0x28584a(0x375)]&&_0x44645d<=this[_0x28584a(0x305)][_0x28584a(0x20a)]&&_0x563150>=this[_0x28584a(0x305)][_0x28584a(0x30a)]&&_0x563150<=this[_0x28584a(0x305)][_0x28584a(0x413)]){this[_0x28584a(0x229)]({'hovered':!0x0});return;}this[_0x28584a(0x229)]({'hovered':!0x1});}['triggerDblclick'](_0x240285){return!0x1;}[_0x4bef21(0x463)](_0x461368){const _0x2beee0=_0x4bef21;p[_0x2beee0(0x339)][_0x2beee0(0x279)](_0x461368,{'width':this[_0x2beee0(0x428)],'height':this[_0x2beee0(0x365)],'strokeWidth':mt,'stroke':this[_0x2beee0(0x438)],'evented':!0x1,'fill':this[_0x2beee0(0x434)]}),this[_0x2beee0(0x262)]&&(_0x461368[_0x2beee0(0x447)](),_0x461368['transform'](0x1,0x0,0x0,0x1,this[_0x2beee0(0x428)],this[_0x2beee0(0x1ea)]===_0x2beee0(0x2af)?0x0:-0x14),ee[_0x2beee0(0x279)](_0x461368,{'text':this[_0x2beee0(0x367)],'color':this[_0x2beee0(0x438)]}),_0x461368['restore']());}}var Ct=Object[_0x4bef21(0x469)],pt=(_0x289cf0,_0x27ccf6,_0x14b793,_0x3fbee8)=>{const _0x3a15e6=_0x4bef21;for(var _0x3b8d21=_0x3fbee8>0x1?void 0x0:_0x3fbee8?Ct(_0x27ccf6,_0x14b793):_0x27ccf6,_0x35c829=_0x289cf0[_0x3a15e6(0x2a3)]-0x1,_0x1327ff;_0x35c829>=0x0;_0x35c829--)(_0x1327ff=_0x289cf0[_0x35c829])&&(_0x3b8d21=_0x1327ff(_0x3b8d21)||_0x3b8d21);return _0x3b8d21;},ae=(_0x5a8c2a,_0x42b1f7)=>(_0xfb2ec3,_0x253fc5)=>_0x42b1f7(_0xfb2ec3,_0x253fc5,_0x5a8c2a);const bt=0x1389;let ve=class extends a[_0x4bef21(0x418)]{constructor(_0x4b26af,_0x15489b,_0x2132e6,_0x4793e1){const _0x506983=_0x4bef21;super(),h(this,_0x506983(0x21f),new Set()),h(this,'_lastPointer',null),(this[_0x506983(0x466)]=_0x4b26af,this['_sheetSkeletonManagerService']=_0x15489b,this[_0x506983(0x290)]=_0x2132e6,this['_themeService']=_0x4793e1,this['_init']());}[_0x4bef21(0x2c4)](){const _0x47d6d0=_0x4bef21;this[_0x47d6d0(0x396)][_0x47d6d0(0x30d)][_0x47d6d0(0x26c)]($[_0x47d6d0(0x2a8)](this[_0x47d6d0(0x29f)]),$[_0x47d6d0(0x254)](_0x7116c8=>{const _0x319a66=_0x47d6d0;if(_0x7116c8){const _0x38f9bd=_0x7116c8[_0x319a66(0x276)];return d[_0x319a66(0x27a)](this[_0x319a66(0x290)][_0x319a66(0x1f4)](this[_0x319a66(0x466)]['unitId']),this[_0x319a66(0x2f0)][_0x319a66(0x3a2)])[_0x319a66(0x26c)]($['map'](([_0x180157,_0x2a6b92])=>{const _0x534138=_0x319a66,_0x11f769=new Map();return _0x180157[_0x534138(0x2e6)]((_0x26d6fb,_0x1744f5)=>{const _0xd7331e=_0x534138;if(_0x26d6fb[_0xd7331e(0x28b)]===_0x38f9bd){const _0x35764f={..._0x26d6fb};_0x35764f['color']=this[_0xd7331e(0x2f0)][_0xd7331e(0x345)](_0x26d6fb[_0xd7331e(0x317)]),_0x11f769[_0xd7331e(0x323)](_0x1744f5,_0x35764f);}}),{'skeleton':_0x7116c8,'cursors':_0x11f769};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x47d6d0(0x3f2)](({skeleton:_0x5e0527,cursors:_0x335049})=>{const _0x526592=_0x47d6d0;this[_0x526592(0x3c7)](),_0x5e0527&&this[_0x526592(0x2a0)](_0x5e0527,_0x335049);}),this[_0x47d6d0(0x396)]['currentSkeleton$']['subscribe'](_0x393ffe=>{const _0x4c4631=_0x47d6d0;if(_0x393ffe==null)return;const {skeleton:_0x2c13e8}=_0x393ffe,{scene:_0x143682}=this[_0x4c4631(0x466)];_0x143682[_0x4c4631(0x459)][_0x4c4631(0x39a)](a[_0x4c4631(0x28f)](_0xac27f2=>{const _0x530e8e=_0x4c4631;var _0x553c59,_0x3e39fb;const {offsetX:_0x9eb0d7,offsetY:_0x50d448}=_0xac27f2,{x:_0x429433,y:_0x4760b4}=_0x143682[_0x530e8e(0x306)](p['Vector2'][_0x530e8e(0x404)]([_0x9eb0d7,_0x50d448])),{scaleX:_0x33a830,scaleY:_0x5d0d6d}=_0x143682['getAncestorScale'](),_0x2f3b47=_0x143682[_0x530e8e(0x29b)](p[_0x530e8e(0x2f1)]['VIEW_MAIN']),_0x445679=_0x143682[_0x530e8e(0x430)](p['Vector2'][_0x530e8e(0x404)]([_0x429433,_0x4760b4]),_0x2f3b47),_0x23b077=_0x2c13e8[_0x530e8e(0x2a6)](_0x9eb0d7,_0x50d448,_0x33a830,_0x5d0d6d,_0x445679);((_0x553c59=this[_0x530e8e(0x2df)])==null?void 0x0:_0x553c59[_0x530e8e(0x2e0)])===_0x23b077['column']&&((_0x3e39fb=this[_0x530e8e(0x2df)])==null?void 0x0:_0x3e39fb[_0x530e8e(0x2d4)])===_0x23b077[_0x530e8e(0x2d4)]||this[_0x530e8e(0x21f)][_0x530e8e(0x2e6)](_0xfb61b2=>{const _0x2c7a2e=_0x530e8e;_0xfb61b2[_0x2c7a2e(0x42f)](_0x23b077);});},0x64));});}[_0x4bef21(0x2a0)](_0x3d1417,_0xb709f4){const _0x248580=_0x4bef21;var _0x408719;const _0x4e61de=(_0x408719=this[_0x248580(0x396)][_0x248580(0x33f)]())==null?void 0x0:_0x408719[_0x248580(0x2eb)];if(!_0x4e61de)return;const _0x5dd88a=this['_getSheetObject']();if(!_0x5dd88a)return;this[_0x248580(0x21f)][_0x248580(0x2e6)](_0x33779a=>{const _0x5b4ce5=_0x248580;_0x33779a[_0x5b4ce5(0x2c9)]();});const {scene:_0x4c6cbb}=_0x5dd88a,_0x4e9b9e=Et(Array[_0x248580(0x358)](_0xb709f4[_0x248580(0x2d7)]()))['map'](_0x1420a6=>{const _0x542454=_0x248580,{color:_0x2088be,range:_0x5d1cbf,name:_0x2cc22c,selection:_0x5132cb,sheetID:_0x5ad985}=_0x1420a6,{startColumn:_0x113e13,startRow:_0x5264bc,endColumn:_0x5d8826,endRow:_0x1536b5}=_0x5d1cbf,_0x2a404e=X[_0x542454(0x1fb)](_0x5264bc,_0x113e13,_0x4c6cbb,_0x4e61de),_0x339664=X[_0x542454(0x1fb)](_0x1536b5,_0x5d8826,_0x4c6cbb,_0x4e61de),{columnHeaderHeightAndMarginTop:_0x23680b}=_0x4e61de,{startX:_0x4d8222,startY:_0x4a461a}=_0x2a404e,{endX:_0x39d994,endY:_0x1e2f42}=_0x339664,_0x718600=_0x39d994-_0x4d8222,_0x19a051=_0x1e2f42-_0x4a461a,_0x2dd91a={'labelPosition':_0x4a461a-_0x23680b>=K?'top':'bottom','sheetID':_0x5ad985,'range':_0x5d1cbf,'color':_0x2088be,'name':_0x2cc22c,'selection':_0x5132cb,'left':_0x4d8222,'top':_0x4a461a,'width':_0x718600,'height':_0x19a051,'evented':!0x1,'zIndex':bt};return new Pe(_0x2cc22c,_0x2dd91a);});_0x4c6cbb['addObjects'](_0x4e9b9e,gt),this['_cursors']=new Set(_0x4e9b9e);}[_0x4bef21(0x3c7)](){const _0x370fb8=_0x4bef21;var _0x19c548;(_0x19c548=this[_0x370fb8(0x21f)])==null||_0x19c548[_0x370fb8(0x2e6)](_0x58f639=>_0x58f639[_0x370fb8(0x2b4)]());}[_0x4bef21(0x227)](){const _0x3ce462=_0x4bef21;return X[_0x3ce462(0x431)](this[_0x3ce462(0x466)]['unit'],this[_0x3ce462(0x466)]);}};ve=pt([ae(0x1,a[_0x4bef21(0x248)](X[_0x4bef21(0x314)])),ae(0x2,a[_0x4bef21(0x248)](x)),ae(0x3,a[_0x4bef21(0x248)](a['ThemeService']))],ve);function _0x4804(_0x20a67a,_0x12bf59){const _0x196b33=_0x196b();return _0x4804=function(_0x4804e8,_0x40214b){_0x4804e8=_0x4804e8-0x1d8;let _0x50b9a7=_0x196b33[_0x4804e8];return _0x50b9a7;},_0x4804(_0x20a67a,_0x12bf59);}function Et(_0x19d66e){const _0x3dd822=_0x4bef21,_0x7934db=new Map();return _0x19d66e['forEach'](_0x328557=>{const _0x1d5000=_0x4804;if(_0x7934db[_0x1d5000(0x2ca)](_0x328557[_0x1d5000(0x3ca)])){const _0x3067ba=_0x7934db['get'](_0x328557[_0x1d5000(0x3ca)]);_0x3067ba['name']+=',\x20'+_0x328557[_0x1d5000(0x1e2)];}else _0x7934db['set'](_0x328557[_0x1d5000(0x3ca)],_0x328557);}),Array[_0x3dd822(0x358)](_0x7934db[_0x3dd822(0x2d7)]());}var E=function(){const _0x509ee0=_0x4bef21;return E=Object['assign']||function(_0x228e97){const _0x9c5007=_0x4804;for(var _0x1a6316,_0x55ec7b=0x1,_0x13760b=arguments[_0x9c5007(0x2a3)];_0x55ec7b<_0x13760b;_0x55ec7b++){_0x1a6316=arguments[_0x55ec7b];for(var _0x213d2d in _0x1a6316)Object['prototype'][_0x9c5007(0x3e3)][_0x9c5007(0x223)](_0x1a6316,_0x213d2d)&&(_0x228e97[_0x213d2d]=_0x1a6316[_0x213d2d]);}return _0x228e97;},E[_0x509ee0(0x437)](this,arguments);},Tt=function(_0x3548e4,_0x4ceca8){const _0x33ec70=_0x4bef21;var _0x2653aa={};for(var _0x196e6a in _0x3548e4)Object[_0x33ec70(0x341)]['hasOwnProperty'][_0x33ec70(0x223)](_0x3548e4,_0x196e6a)&&_0x4ceca8[_0x33ec70(0x318)](_0x196e6a)<0x0&&(_0x2653aa[_0x196e6a]=_0x3548e4[_0x196e6a]);if(_0x3548e4!=null&&typeof Object[_0x33ec70(0x362)]=='function'){for(var _0x5113f7=0x0,_0x196e6a=Object['getOwnPropertySymbols'](_0x3548e4);_0x5113f7<_0x196e6a[_0x33ec70(0x2a3)];_0x5113f7++)_0x4ceca8['indexOf'](_0x196e6a[_0x5113f7])<0x0&&Object[_0x33ec70(0x341)]['propertyIsEnumerable'][_0x33ec70(0x223)](_0x3548e4,_0x196e6a[_0x5113f7])&&(_0x2653aa[_0x196e6a[_0x5113f7]]=_0x3548e4[_0x196e6a[_0x5113f7]]);}return _0x2653aa;},pe=M[_0x4bef21(0x359)](function(_0x334a3e,_0x3f58e7){const _0x561816=_0x4bef21;var _0x2d8015=_0x334a3e['icon'],_0x1019f1=_0x334a3e['id'],_0x51cd3e=_0x334a3e[_0x561816(0x3f7)],_0x39fae2=_0x334a3e[_0x561816(0x3a0)],_0x3b7f0f=Tt(_0x334a3e,['icon','id','className',_0x561816(0x3a0)]),_0x25abb6=_0x561816(0x409)[_0x561816(0x414)](_0x1019f1,'\x20')[_0x561816(0x414)](_0x51cd3e||'')[_0x561816(0x252)](),_0x584cb9=M['useRef']('_'[_0x561816(0x414)](Dt()));return Ae(_0x2d8015,''[_0x561816(0x414)](_0x1019f1),{'defIds':_0x2d8015[_0x561816(0x33e)],'idSuffix':_0x584cb9[_0x561816(0x417)]},E({'ref':_0x3f58e7,'className':_0x25abb6},_0x3b7f0f),_0x39fae2);});function Ae(_0x506591,_0x1789ff,_0x3b817c,_0x4fd05a,_0x43cd8c){const _0x2ea56e=_0x4bef21;return M[_0x2ea56e(0x307)](_0x506591[_0x2ea56e(0x1f6)],E(E({'key':_0x1789ff},Ot(_0x506591,_0x3b817c,_0x43cd8c)),_0x4fd05a),(Rt(_0x506591,_0x3b817c)[_0x2ea56e(0x1d9)]||[])['map'](function(_0x126297,_0x3ef2fc){const _0x5e3d8a=_0x2ea56e;return Ae(_0x126297,''[_0x5e3d8a(0x414)](_0x1789ff,'-')[_0x5e3d8a(0x414)](_0x506591['tag'],'-')[_0x5e3d8a(0x414)](_0x3ef2fc),_0x3b817c,void 0x0,_0x43cd8c);}));}function Ot(_0x35e1ed,_0x5a0455,_0x12b22e){const _0x59aadd=_0x4bef21;var _0x1f4b95=E({},_0x35e1ed[_0x59aadd(0x39d)]);_0x12b22e!=null&&_0x12b22e[_0x59aadd(0x3ae)]&&_0x1f4b95[_0x59aadd(0x309)]===_0x59aadd(0x3ae)&&(_0x1f4b95['fill']=_0x12b22e[_0x59aadd(0x3ae)]),_0x35e1ed[_0x59aadd(0x1f6)]===_0x59aadd(0x3fc)&&_0x1f4b95['id']&&(_0x1f4b95['id']=_0x1f4b95['id']+_0x5a0455[_0x59aadd(0x400)]),Object[_0x59aadd(0x44f)](_0x1f4b95)[_0x59aadd(0x2e6)](function(_0x2004b2){const _0x5ec881=_0x59aadd;var _0x3e921b=_0x2004b2[0x0],_0xcccc4f=_0x2004b2[0x1];_0x3e921b===_0x5ec881(0x3fc)&&typeof _0xcccc4f==_0x5ec881(0x33a)&&(_0x1f4b95[_0x3e921b]=_0xcccc4f['replace'](/url\(#(.*)\)/,_0x5ec881(0x300)[_0x5ec881(0x414)](_0x5a0455[_0x5ec881(0x400)],')')));});var _0x32fd5b=_0x5a0455[_0x59aadd(0x33e)];return!_0x32fd5b||_0x32fd5b[_0x59aadd(0x2a3)]===0x0||(_0x35e1ed[_0x59aadd(0x1f6)]==='use'&&_0x1f4b95[_0x59aadd(0x298)]&&(_0x1f4b95[_0x59aadd(0x298)]=_0x1f4b95['xlink:href']+_0x5a0455['idSuffix']),Object['entries'](_0x1f4b95)[_0x59aadd(0x2e6)](function(_0x486b0f){const _0x5722e8=_0x59aadd;var _0x1df10b=_0x486b0f[0x0],_0x34de87=_0x486b0f[0x1];typeof _0x34de87==_0x5722e8(0x33a)&&(_0x1f4b95[_0x1df10b]=_0x34de87['replace'](/url\(#(.*)\)/,_0x5722e8(0x300)[_0x5722e8(0x414)](_0x5a0455['idSuffix'],')')));})),_0x1f4b95;}function Rt(_0x21964a,_0x260806){const _0x29bd91=_0x4bef21;var _0x24ed99,_0x56be76=_0x260806['defIds'];return!_0x56be76||_0x56be76['length']===0x0?_0x21964a:_0x21964a[_0x29bd91(0x1f6)]===_0x29bd91(0x24d)&&(!((_0x24ed99=_0x21964a['children'])===null||_0x24ed99===void 0x0)&&_0x24ed99['length'])?E(E({},_0x21964a),{'children':_0x21964a['children']['map'](function(_0x3679e7){const _0x5acfe1=_0x29bd91;return typeof _0x3679e7[_0x5acfe1(0x39d)]['id']=='string'&&_0x56be76&&_0x56be76[_0x5acfe1(0x37d)](_0x3679e7[_0x5acfe1(0x39d)]['id'])?E(E({},_0x3679e7),{'attrs':E(E({},_0x3679e7[_0x5acfe1(0x39d)]),{'id':_0x3679e7[_0x5acfe1(0x39d)]['id']+_0x260806['idSuffix']})}):_0x3679e7;})}):_0x21964a;}function Dt(){const _0x430a8e=_0x4bef21;return Math['random']()[_0x430a8e(0x23c)](0x24)[_0x430a8e(0x26b)](0x2,0x8);}pe[_0x4bef21(0x461)]=_0x4bef21(0x407);var Ut={'tag':_0x4bef21(0x3a3),'attrs':{'xmlns':_0x4bef21(0x20f),'fill':'none','viewBox':_0x4bef21(0x24e),'width':_0x4bef21(0x286),'height':_0x4bef21(0x286)},'children':[{'tag':'g','attrs':{'clipPath':_0x4bef21(0x204)},'children':[{'tag':'path','attrs':{'stroke':_0x4bef21(0x273),'d':_0x4bef21(0x28a),'strokeLinecap':_0x4bef21(0x3be),'strokeLinejoin':_0x4bef21(0x3be),'strokeWidth':1.2}}]},{'tag':_0x4bef21(0x24d),'attrs':{},'children':[{'tag':_0x4bef21(0x35a),'attrs':{'id':_0x4bef21(0x37a)},'children':[{'tag':_0x4bef21(0x29c),'attrs':{'fill':'white','d':_0x4bef21(0x324)}}]}]}],'defIds':[_0x4bef21(0x37a)]},ye=M[_0x4bef21(0x359)](function(_0x2a5e29,_0x3383f9){const _0x80aace=_0x4bef21;return M[_0x80aace(0x307)](pe,Object['assign']({},_0x2a5e29,{'id':_0x80aace(0x2d0),'ref':_0x3383f9,'icon':Ut}));});ye[_0x4bef21(0x461)]=_0x4bef21(0x3b1);var Nt={'tag':_0x4bef21(0x3a3),'attrs':{'xmlns':_0x4bef21(0x20f),'fill':_0x4bef21(0x39e),'viewBox':'0\x200\x2017\x2016','width':_0x4bef21(0x286),'height':_0x4bef21(0x286)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x4bef21(0x29c),'attrs':{'stroke':_0x4bef21(0x273),'d':_0x4bef21(0x2b2),'strokeLinecap':'round','strokeLinejoin':_0x4bef21(0x3be),'strokeWidth':1.2}}]},{'tag':_0x4bef21(0x24d),'attrs':{},'children':[{'tag':_0x4bef21(0x35a),'attrs':{'id':_0x4bef21(0x2ed)},'children':[{'tag':'path','attrs':{'fill':_0x4bef21(0x2ad),'d':'M0\x200H16V16H0z','transform':_0x4bef21(0x3b4)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x4bef21(0x359)](function(_0x35ef6f,_0x54c195){const _0x2a30d8=_0x4bef21;return M[_0x2a30d8(0x307)](pe,Object[_0x2a30d8(0x424)]({},_0x35ef6f,{'id':_0x2a30d8(0x2f5),'ref':_0x54c195,'icon':Nt}));});$e[_0x4bef21(0x461)]=_0x4bef21(0x27b);function Mt(_0x72736e){const _0x416f2c=_0x4bef21;switch(_0x72736e){case u['CollaborationStatus'][_0x416f2c(0x21b)]:return _0x416f2c(0x3bb);case u[_0x416f2c(0x3e1)][_0x416f2c(0x21e)]:return _0x416f2c(0x42c);case u['CollaborationStatus'][_0x416f2c(0x3d7)]:return'collabStatus.fetchMiss';case u[_0x416f2c(0x3e1)][_0x416f2c(0x3a7)]:return _0x416f2c(0x453);case u[_0x416f2c(0x3e1)][_0x416f2c(0x3d8)]:case u[_0x416f2c(0x3e1)][_0x416f2c(0x336)]:return _0x416f2c(0x24b);case u['CollaborationStatus'][_0x416f2c(0x3d3)]:case u[_0x416f2c(0x3e1)][_0x416f2c(0x425)]:return _0x416f2c(0x36b);}}function xe(_0xdc3d53){const _0x3fccfc=_0x4bef21,{status$:_0x110305}=_0xdc3d53,_0x323130=T['useObservable'](_0x110305,u[_0x3fccfc(0x3e1)][_0x3fccfc(0x3a7)]),_0x253736=T['useDependency'](a[_0x3fccfc(0x22a)]),_0x12fd8c=T[_0x3fccfc(0x213)](u[_0x3fccfc(0x295)]),_0x1f4cc7=_0x323130!==u['CollaborationStatus'][_0x3fccfc(0x21b)],_0xf3fd2d=_0x253736['t'](Mt(_0x323130)),_0x40627b=_0x1f4cc7?w[_0x3fccfc(0x266)]($e,{}):w['jsx'](ye,{}),_0x15ae8b=M[_0x3fccfc(0x34e)](()=>{const _0xa01132=_0x3fccfc;_0x1f4cc7||_0x12fd8c[_0xa01132(0x1da)]();},[_0x1f4cc7,_0x12fd8c]);function _0x3a2569(){const _0x5e30ed=_0x3fccfc;return w[_0x5e30ed(0x2a9)](_0x5e30ed(0x468),{'className':'univer-flex\x20univer-items-center','onClick':_0x15ae8b,'children':[w[_0x5e30ed(0x266)](_0x5e30ed(0x468),{'className':D[_0x5e30ed(0x2db)](_0x5e30ed(0x2e2),{'univer-text-green-500':_0x1f4cc7,'univer-text-red-500':!_0x1f4cc7}),'children':_0x40627b}),w[_0x5e30ed(0x266)](_0x5e30ed(0x468),{'className':_0x5e30ed(0x427),'children':_0xf3fd2d})]});}return _0x1f4cc7?_0x3a2569():w[_0x3fccfc(0x266)](D[_0x3fccfc(0x224)],{'title':_0x253736['t']('collab-client.tooltip.reconnect'),'children':_0x3a2569()});}var Lt=Object['getOwnPropertyDescriptor'],wt=(_0x3ea386,_0x38c3a2,_0x2da2de,_0x120e53)=>{const _0x531e96=_0x4bef21;for(var _0x407e71=_0x120e53>0x1?void 0x0:_0x120e53?Lt(_0x38c3a2,_0x2da2de):_0x38c3a2,_0x395ac3=_0x3ea386[_0x531e96(0x2a3)]-0x1,_0x361374;_0x395ac3>=0x0;_0x395ac3--)(_0x361374=_0x3ea386[_0x395ac3])&&(_0x407e71=_0x361374(_0x407e71)||_0x407e71);return _0x407e71;},V=(_0xc89cd9,_0x113001)=>(_0x169940,_0xd49c73)=>_0x113001(_0x169940,_0xd49c73,_0xc89cd9);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x4bef21(0x2f3)]{constructor(_0x434b73,_0x3b981b,_0x2cb740,_0x508b4e){const _0x10177e=_0x4bef21;super(),h(this,_0x10177e(0x2a5),new d[(_0x10177e(0x385))](u[_0x10177e(0x3e1)][_0x10177e(0x3a7)])),(this['_univerInstanceService']=_0x434b73,this[_0x10177e(0x23a)]=_0x3b981b,this['_collaborationController']=_0x2cb740,this[_0x10177e(0x2d3)]=_0x508b4e,this[_0x10177e(0x200)](),this[_0x10177e(0x410)]());}['_initStatusListener'](){const _0xd78b2e=_0x4bef21;this[_0xd78b2e(0x291)](this[_0xd78b2e(0x40f)][_0xd78b2e(0x41a)][_0xd78b2e(0x26c)](d['switchMap'](()=>{const _0x284a2f=_0xd78b2e,_0x1b9ee8=this[_0x284a2f(0x40f)]['getFocusedUnit']();return _0x1b9ee8?this['_collaborationController'][_0x284a2f(0x312)](_0x1b9ee8['getUnitId']()):d['of'](null);}),d[_0xd78b2e(0x254)](_0x45018b=>_0x45018b?_0x45018b[_0xd78b2e(0x31a)]:d['of'](u[_0xd78b2e(0x3e1)][_0xd78b2e(0x3a7)])))[_0xd78b2e(0x3f2)](_0x17962a=>{const _0x374468=_0xd78b2e;this[_0x374468(0x2a5)]['next'](_0x17962a);}));}[_0x4bef21(0x200)](){const _0x4882a0=_0x4bef21;this['disposeWithMe'](this[_0x4882a0(0x2d3)]['registerComponent'](T['BuiltInUIPart'][_0x4882a0(0x1e0)],()=>T['connectInjector'](Pt({'status$':this['_status$'][_0x4882a0(0x335)]()}),this[_0x4882a0(0x23a)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a[_0x4bef21(0x3bd)]),V(0x1,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),V(0x2,a[_0x4bef21(0x248)](u['CollaborationController'])),V(0x3,T[_0x4bef21(0x2f7)])],exports[_0x4bef21(0x35c)]);function Pt(_0x149c70){const {status$:_0x4b92b6}=_0x149c70;return function(){const _0x5be761=_0x4804;return w[_0x5be761(0x266)](xe,{'status$':_0x4b92b6});};}var At=Object[_0x4bef21(0x469)],yt=(_0x36f7f0,_0x40939d,_0x15f3af,_0x2a6d96)=>{for(var _0x1f939b=_0x2a6d96>0x1?void 0x0:_0x2a6d96?At(_0x40939d,_0x15f3af):_0x40939d,_0x1f4295=_0x36f7f0['length']-0x1,_0x43a758;_0x1f4295>=0x0;_0x1f4295--)(_0x43a758=_0x36f7f0[_0x1f4295])&&(_0x1f939b=_0x43a758(_0x1f939b)||_0x1f939b);return _0x1f939b;},y=(_0x2ab0f8,_0x220de3)=>(_0x5738c2,_0x465c36)=>_0x220de3(_0x5738c2,_0x465c36,_0x2ab0f8);let q=class extends a[_0x4bef21(0x2f3)]{constructor(_0x5946e7,_0x4674e1,_0x200e6b,_0x4f4e38,_0x3ebd0e,_0x29ecce){const _0x2b99ef=_0x4bef21;super(),this[_0x2b99ef(0x260)]=_0x5946e7,this['_localCacheService']=_0x4674e1,this[_0x2b99ef(0x319)]=_0x200e6b,this[_0x2b99ef(0x39b)]=_0x4f4e38,this['_notificationService']=_0x3ebd0e,this[_0x2b99ef(0x37b)]=_0x29ecce,this[_0x2b99ef(0x366)](),this[_0x2b99ef(0x1ef)]();}[_0x4bef21(0x366)](){const _0x4c1aa6=_0x4bef21;this[_0x4c1aa6(0x291)](this['_beforeCloseService'][_0x4c1aa6(0x277)](()=>{const _0x3f88dd=_0x4c1aa6;if(this[_0x3f88dd(0x41d)][_0x3f88dd(0x321)][_0x3f88dd(0x401)])return this[_0x3f88dd(0x37b)]['t'](_0x3f88dd(0x23e));}));}[_0x4bef21(0x1ef)](){const _0x33d993=_0x4bef21;this[_0x33d993(0x291)](this[_0x33d993(0x319)][_0x33d993(0x31e)][_0x33d993(0x3f2)](_0x225eef=>{const _0x11dc0c=_0x33d993;_0x225eef['id']===u[_0x11dc0c(0x2a4)][_0x11dc0c(0x3ad)]&&this[_0x11dc0c(0x39b)][_0x11dc0c(0x2b1)]({'type':D[_0x11dc0c(0x402)]['Warning'],'content':this['_localeService']['t'](_0x11dc0c(0x3f8))}),_0x225eef['id']===u['CollaborationUIEventId'][_0x11dc0c(0x435)]&&this[_0x11dc0c(0x39b)][_0x11dc0c(0x2b1)]({'type':D[_0x11dc0c(0x402)][_0x11dc0c(0x44d)],'content':this[_0x11dc0c(0x37b)]['t'](_0x11dc0c(0x230))}),_0x225eef['id']===u[_0x11dc0c(0x2a4)][_0x11dc0c(0x326)]&&this[_0x11dc0c(0x1e4)][_0x11dc0c(0x2b1)]({'title':this['_localeService']['t'](_0x11dc0c(0x3e4)),'content':this['_localeService']['t']('permission.content'),'type':_0x11dc0c(0x442),'duration':0x0}),_0x225eef['id']===u['CollaborationUIEventId'][_0x11dc0c(0x21e)]&&this[_0x11dc0c(0x39b)][_0x11dc0c(0x2b1)]({'type':D['MessageType'][_0x11dc0c(0x2c1)],'content':this['_localeService']['t'](_0x11dc0c(0x230))+'('+_0x225eef[_0x11dc0c(0x36c)]+')'}),_0x225eef['id']===u[_0x11dc0c(0x2a4)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x11dc0c(0x2b1)]({'type':D['MessageType'][_0x11dc0c(0x44d)],'content':this[_0x11dc0c(0x37b)]['t'](_0x225eef[_0x11dc0c(0x36c)]||'')}),_0x225eef['id']===u['CollaborationUIEventId'][_0x11dc0c(0x301)]&&this[_0x11dc0c(0x39b)]['show']({'type':D[_0x11dc0c(0x402)]['Warning'],'content':this['_localeService']['t'](_0x11dc0c(0x35f))}),_0x225eef['id']===u[_0x11dc0c(0x2a4)][_0x11dc0c(0x241)]&&this['_messageService'][_0x11dc0c(0x2b1)]({'type':D[_0x11dc0c(0x402)][_0x11dc0c(0x2c1)],'content':this[_0x11dc0c(0x37b)]['t'](_0x11dc0c(0x240))}),_0x225eef['id']===u[_0x11dc0c(0x2a4)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x11dc0c(0x39b)]['show']({'type':D[_0x11dc0c(0x402)][_0x11dc0c(0x2c1)],'content':this[_0x11dc0c(0x37b)]['t'](_0x11dc0c(0x211))});}));}};q=yt([y(0x0,T[_0x4bef21(0x39c)]),y(0x1,u[_0x4bef21(0x405)]),y(0x2,a[_0x4bef21(0x248)](u[_0x4bef21(0x368)])),y(0x3,T[_0x4bef21(0x1f1)]),y(0x4,T[_0x4bef21(0x390)]),y(0x5,a[_0x4bef21(0x248)](a[_0x4bef21(0x22a)]))],q);const $t=_0x4bef21(0x42e),Ue={},be=a[_0x4bef21(0x315)](_0x4bef21(0x210));var xt=Object[_0x4bef21(0x469)],jt=(_0x543115,_0x4280e0,_0xb4ecc5,_0x3be78c)=>{const _0xb5c8c6=_0x4bef21;for(var _0x50bba8=_0x3be78c>0x1?void 0x0:_0x3be78c?xt(_0x4280e0,_0xb4ecc5):_0x4280e0,_0x250ef8=_0x543115[_0xb5c8c6(0x2a3)]-0x1,_0x1c01d4;_0x250ef8>=0x0;_0x250ef8--)(_0x1c01d4=_0x543115[_0x250ef8])&&(_0x50bba8=_0x1c01d4(_0x50bba8)||_0x50bba8);return _0x50bba8;},H=(_0x2d83ee,_0xb4565e)=>(_0x3106a3,_0x5de618)=>_0xb4565e(_0x3106a3,_0x5de618,_0x2d83ee);exports[_0x4bef21(0x30b)]=class extends a[_0x4bef21(0x418)]{constructor(_0x2b0b67,_0x1c212b,_0x380dfe,_0x41787a,_0x536f2c){const _0x919979=_0x4bef21;super(),this[_0x919979(0x364)]=_0x2b0b67,this[_0x919979(0x340)]=_0x1c212b,this[_0x919979(0x429)]=_0x380dfe,this[_0x919979(0x2cb)]=_0x41787a,_0x536f2c?_0x536f2c==null||_0x536f2c[_0x919979(0x373)]()[_0x919979(0x395)](()=>this['_init']()):(this[_0x919979(0x340)][_0x919979(0x1e6)](_0x919979(0x257),_0x919979(0x27c)),this[_0x919979(0x2c4)]());}async['_init'](){const _0x30ebba=_0x4bef21,_0x47c08b=this[_0x30ebba(0x364)]['getParam'](_0x30ebba(0x3c2)),_0x34b1d5=this[_0x30ebba(0x364)][_0x30ebba(0x40a)](_0x30ebba(0x2c2)),_0x16ac5f=this[_0x30ebba(0x364)][_0x30ebba(0x40a)](_0x30ebba(0x244));if(!_0x47c08b||!_0x34b1d5){this[_0x30ebba(0x340)][_0x30ebba(0x1e6)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x20d576=await this['_dataLoaderService'][_0x30ebba(0x258)](_0x47c08b,Number(_0x34b1d5),_0x16ac5f);_0x20d576&&_0x20d576 instanceof a[_0x30ebba(0x2d1)]&&this['_setupSubUnitSync'](_0x20d576);}async['_setupSubUnitSync'](_0x5c99f5){const _0xbb21e7=_0x4bef21;await this[_0xbb21e7(0x3f3)](_0x5c99f5),_0x5c99f5['activeSheet$'][_0xbb21e7(0x26c)](d[_0xbb21e7(0x2a8)](this['dispose$']))[_0xbb21e7(0x3f2)](_0xae349=>{_0xae349&&this['_updateURLWithCurrentState'](_0xae349);}),this[_0xbb21e7(0x364)][_0xbb21e7(0x1fd)][_0xbb21e7(0x26c)](d[_0xbb21e7(0x2a8)](this[_0xbb21e7(0x29f)]))[_0xbb21e7(0x3f2)](()=>this[_0xbb21e7(0x3f3)](_0x5c99f5));}[_0x4bef21(0x1f3)](_0x1cf903,_0x2e1c84=!0x1){const _0x84604f=_0x4bef21,_0x495053=this[_0x84604f(0x364)][_0x84604f(0x40a)]('subunit');_0x1cf903[_0x84604f(0x1fa)]()!==_0x495053&&this[_0x84604f(0x364)]['setParam'](_0x84604f(0x244),_0x1cf903[_0x84604f(0x1fa)](),_0x2e1c84);}async[_0x4bef21(0x3f3)](_0x52b1d6){const _0x2beaea=_0x4bef21;var _0x43f19b;const _0x1fc013=this[_0x2beaea(0x364)][_0x2beaea(0x40a)]('subunit');if(!_0x1fc013||!_0x52b1d6['getSheetBySheetId'](_0x1fc013)){const _0x42e172=_0x52b1d6[_0x2beaea(0x36d)]()[0x0],_0x462a1b=_0x52b1d6[_0x2beaea(0x36e)](_0x42e172);if(!_0x462a1b)return;this[_0x2beaea(0x1f3)](_0x462a1b,!0x0),await this['_commandService'][_0x2beaea(0x331)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x52b1d6['getUnitId'](),'subUnitId':_0x42e172});return;}((_0x43f19b=_0x52b1d6[_0x2beaea(0x320)]())==null?void 0x0:_0x43f19b['getSheetId']())!==_0x1fc013&&await this[_0x2beaea(0x429)]['executeCommand'](g[_0x2beaea(0x24a)]['id'],{'unitId':_0x52b1d6[_0x2beaea(0x1e1)](),'subUnitId':_0x1fc013});}},exports[_0x4bef21(0x30b)]=jt([H(0x0,be),H(0x1,a[_0x4bef21(0x31d)]),H(0x2,a[_0x4bef21(0x391)]),H(0x3,a[_0x4bef21(0x248)](u['DataLoaderService'])),H(0x4,a['Optional'](Ke[_0x4bef21(0x206)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x4bef21(0x469)],kt=(_0x24a857,_0x13d7c3,_0x1021cb,_0x2da731)=>{const _0x52fd3a=_0x4bef21;for(var _0x58b891=_0x2da731>0x1?void 0x0:_0x2da731?Bt(_0x13d7c3,_0x1021cb):_0x13d7c3,_0x51a5fc=_0x24a857[_0x52fd3a(0x2a3)]-0x1,_0x2430bc;_0x51a5fc>=0x0;_0x51a5fc--)(_0x2430bc=_0x24a857[_0x51a5fc])&&(_0x58b891=_0x2430bc(_0x58b891)||_0x58b891);return _0x58b891;},ce=(_0x16d8f8,_0x2d5501)=>(_0x561201,_0x67052b)=>_0x2d5501(_0x561201,_0x67052b,_0x16d8f8);let z=class{constructor(_0x446d1d,_0xa45016,_0x5eccab){const _0x47c18c=_0x4bef21;this[_0x47c18c(0x23a)]=_0x446d1d,this[_0x47c18c(0x3d9)]=_0xa45016,this[_0x47c18c(0x403)]=_0x5eccab;}[_0x4bef21(0x379)](_0x11b0a3){const _0x5ee384=_0x4bef21;this[_0x5ee384(0x308)](_0x11b0a3),this['_transformPreviousActiveRange'](_0x11b0a3);}[_0x4bef21(0x44a)](_0x6af746){const _0x5d3de8=_0x4bef21,{unitID:_0x5543e5}=_0x6af746,_0x425ad6=this[_0x5d3de8(0x403)][_0x5d3de8(0x1f8)](_0x5543e5)[_0x5d3de8(0x412)](b[_0x5d3de8(0x455)]),{redoCache:_0x243260}=_0x425ad6[_0x5d3de8(0x454)]();if(_0x243260[_0x5d3de8(0x2a3)]===0x0)return _0x6af746;let _0x2b01eb=a[_0x5d3de8(0x406)]['deepClone'](_0x6af746['mutations'][0x0]);for(let _0x41577c=0x0;_0x41577c<_0x243260[_0x5d3de8(0x2a3)];_0x41577c++){const _0xd521f8={'id':'doc.mutation.rich-text-editing','params':{..._0x243260[_0x41577c]}},_0xb5162a=this[_0x5d3de8(0x3d9)]['transformMutation'](_0x2b01eb,_0xd521f8,!0x1);if(m[_0x5d3de8(0x2e5)](_0xb5162a))throw _0xb5162a[_0x5d3de8(0x442)];_0x2b01eb=_0xb5162a[_0x5d3de8(0x40c)];}return{...a[_0x5d3de8(0x406)][_0x5d3de8(0x3c6)](_0x6af746),'mutations':[_0x2b01eb]};}[_0x4bef21(0x308)](_0x2a60bd){const _0xe5d5e=_0x4bef21,{unitID:_0xec0632}=_0x2a60bd,_0x3df1e1=this[_0xe5d5e(0x403)]['getRenderById'](_0xec0632)[_0xe5d5e(0x412)](b[_0xe5d5e(0x455)]),{undoCache:_0x12e40a,redoCache:_0x2a9f13}=_0x3df1e1['getUndoRedoMutationParamsCache']();if(_0x12e40a[_0xe5d5e(0x2a3)]===0x0||_0x2a9f13[_0xe5d5e(0x2a3)]===0x0)return;const _0x13d7ae=[],_0x80a1f6=[];let _0xd6e91d=a[_0xe5d5e(0x406)][_0xe5d5e(0x3c6)](_0x2a60bd[_0xe5d5e(0x384)][0x0]),_0x3f5c20=a[_0xe5d5e(0x406)][_0xe5d5e(0x3c6)](_0x2a60bd[_0xe5d5e(0x384)][0x0]);for(let _0x2221ba=_0x12e40a['length']-0x1;_0x2221ba>=0x0;_0x2221ba--){const _0x43a094={'id':_0xe5d5e(0x202),'params':{..._0x12e40a[_0x2221ba]}},_0x4fd0fa={'id':_0xe5d5e(0x202),'params':{..._0x2a9f13[_0x2221ba]}},_0x404bed=this[_0xe5d5e(0x3d9)][_0xe5d5e(0x237)](_0xd6e91d,_0x43a094,!0x1),_0x47ebdd=this[_0xe5d5e(0x3d9)][_0xe5d5e(0x237)](_0x3f5c20,_0x4fd0fa,!0x1);if(m[_0xe5d5e(0x2e5)](_0x404bed))throw _0x404bed['error'];if(m[_0xe5d5e(0x2e5)](_0x47ebdd))throw _0x47ebdd[_0xe5d5e(0x442)];_0x13d7ae[_0xe5d5e(0x2b0)](_0x404bed[_0xe5d5e(0x3cb)][_0xe5d5e(0x3f4)]),_0x80a1f6[_0xe5d5e(0x2b0)](_0x47ebdd[_0xe5d5e(0x3cb)][_0xe5d5e(0x3f4)]),_0xd6e91d=_0x404bed[_0xe5d5e(0x40c)],_0x3f5c20=_0x47ebdd[_0xe5d5e(0x40c)];}_0x3df1e1['setUndoRedoMutationParamsCache']({'undoCache':_0x13d7ae,'redoCache':_0x80a1f6});}[_0x4bef21(0x26f)](_0x6dea08){const _0x743582=_0x4bef21,{unitID:_0x27c6a4}=_0x6dea08,_0x4432ce=this['_renderManagerService'][_0x743582(0x1f8)](_0x27c6a4)[_0x743582(0x412)](b[_0x743582(0x455)]),_0x474c8a=_0x4432ce[_0x743582(0x287)]();if(_0x474c8a==null)return;const _0x4f98ea=[{'id':_0x743582(0x202),'params':{'unitId':_0x6dea08[_0x743582(0x3d2)],'actions':null,'textRanges':[_0x474c8a]}}],_0x33746f=this[_0x743582(0x3d9)]['transformMutationsWithChangeset'](_0x6dea08,_0x4f98ea);if(!m[_0x743582(0x450)](_0x33746f))throw _0x33746f[_0x743582(0x442)];const _0x26a6e7=_0x33746f[_0x743582(0x3cb)][0x0][_0x743582(0x3f4)][_0x743582(0x342)];Array['isArray'](_0x26a6e7)&&_0x26a6e7[_0x743582(0x2a3)]&&_0x4432ce[_0x743582(0x3c5)](_0x26a6e7[0x0]);}};z=kt([ce(0x0,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),ce(0x1,m[_0x4bef21(0x3b3)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0xc74dad,_0x16c9b9,_0x2157de,_0x207e23)=>{for(var _0x2e197e=_0x207e23>0x1?void 0x0:_0x207e23?Ht(_0x16c9b9,_0x2157de):_0x16c9b9,_0x37f05f=_0xc74dad['length']-0x1,_0x531cb7;_0x37f05f>=0x0;_0x37f05f--)(_0x531cb7=_0xc74dad[_0x37f05f])&&(_0x2e197e=_0x531cb7(_0x2e197e)||_0x2e197e);return _0x2e197e;},le=(_0x499a13,_0x5a3fbd)=>(_0x30280b,_0xa1d0b6)=>_0x5a3fbd(_0x30280b,_0xa1d0b6,_0x499a13);let J=class{constructor(_0x2b0e51,_0x4c7a43,_0x3f6851){this['_injector']=_0x2b0e51,this['_transformService']=_0x4c7a43,this['_docStateChangeManagerService']=_0x3f6851;}['transformStateCache'](_0x20bf2c){this['_transformHistoryAndStateStack'](_0x20bf2c);}[_0x4bef21(0x44a)](_0x79d363){const _0x3303ce=_0x4bef21,{unitID:_0x4cc44e}=_0x79d363,{collaboration:_0x472ab7}=this[_0x3303ce(0x25d)]['getStateCache'](_0x4cc44e);if(_0x472ab7['length']===0x0)return _0x79d363;let _0x48d261=a[_0x3303ce(0x406)][_0x3303ce(0x3c6)](_0x79d363[_0x3303ce(0x384)][0x0]);for(let _0x462299=0x0;_0x462299<_0x472ab7['length'];_0x462299++){const _0x56ee29={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x472ab7[_0x462299]['unitId'],..._0x472ab7[_0x462299][_0x3303ce(0x249)]}},_0x39c33e=this[_0x3303ce(0x3d9)][_0x3303ce(0x237)](_0x48d261,_0x56ee29,!0x1);if(m[_0x3303ce(0x2e5)](_0x39c33e))throw _0x39c33e[_0x3303ce(0x442)];_0x48d261=_0x39c33e[_0x3303ce(0x40c)];}return{...a[_0x3303ce(0x406)][_0x3303ce(0x3c6)](_0x79d363),'mutations':[_0x48d261]};}[_0x4bef21(0x371)](_0x5f351e){const _0x410c62=_0x4bef21,{unitID:_0x48ad5c}=_0x5f351e,{history:_0x1b7e60,collaboration:_0xc9da75}=this['_docStateChangeManagerService'][_0x410c62(0x207)](_0x48ad5c);if(_0x1b7e60[_0x410c62(0x2a3)]===0x0&&_0xc9da75[_0x410c62(0x2a3)]===0x0)return;const _0x16450d=[],_0x258b84=[];let _0x256fa5=a[_0x410c62(0x406)]['deepClone'](_0x5f351e['mutations'][0x0]),_0x30b260=a[_0x410c62(0x406)][_0x410c62(0x3c6)](_0x5f351e[_0x410c62(0x384)][0x0]);for(let _0x768674=_0x1b7e60[_0x410c62(0x2a3)]-0x1;_0x768674>=0x0;_0x768674--){const _0x24899d={'id':_0x410c62(0x202),'params':{'unitId':_0x1b7e60[_0x768674][_0x410c62(0x441)],..._0x1b7e60[_0x768674][_0x410c62(0x372)]}},_0x2321c0={'id':_0x410c62(0x202),'params':{'unitId':_0x1b7e60[_0x768674]['unitId'],..._0x1b7e60[_0x768674][_0x410c62(0x249)]}},_0x4a3b7c=this['_transformService'][_0x410c62(0x237)](_0x256fa5,_0x24899d,!0x1),_0x39b171=this[_0x410c62(0x3d9)][_0x410c62(0x237)](_0x30b260,_0x2321c0,!0x1);if(m[_0x410c62(0x2e5)](_0x4a3b7c))throw _0x4a3b7c['error'];if(m[_0x410c62(0x2e5)](_0x39b171))throw _0x39b171[_0x410c62(0x442)];_0x16450d[_0x410c62(0x2b0)]({..._0x1b7e60[_0x768674],'undoState':_0x4a3b7c[_0x410c62(0x3cb)]['params'],'redoState':_0x39b171[_0x410c62(0x3cb)]['params']}),_0x256fa5=_0x4a3b7c[_0x410c62(0x40c)],_0x30b260=_0x39b171[_0x410c62(0x40c)];}_0x256fa5=a[_0x410c62(0x406)][_0x410c62(0x3c6)](_0x5f351e[_0x410c62(0x384)][0x0]),_0x30b260=a[_0x410c62(0x406)][_0x410c62(0x3c6)](_0x5f351e[_0x410c62(0x384)][0x0]);for(let _0x245ab8=_0xc9da75[_0x410c62(0x2a3)]-0x1;_0x245ab8>=0x0;_0x245ab8--){const _0x1fc40b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xc9da75[_0x245ab8][_0x410c62(0x441)],..._0xc9da75[_0x245ab8][_0x410c62(0x372)]}},_0x29c000={'id':_0x410c62(0x202),'params':{'unitId':_0xc9da75[_0x245ab8][_0x410c62(0x441)],..._0xc9da75[_0x245ab8][_0x410c62(0x249)]}},_0x11fda0=this[_0x410c62(0x3d9)][_0x410c62(0x237)](_0x256fa5,_0x1fc40b,!0x1),_0x515fee=this[_0x410c62(0x3d9)]['transformMutation'](_0x30b260,_0x29c000,!0x1);if(m['isTransformMutationFailure'](_0x11fda0))throw _0x11fda0[_0x410c62(0x442)];if(m['isTransformMutationFailure'](_0x515fee))throw _0x515fee[_0x410c62(0x442)];_0x258b84[_0x410c62(0x2b0)]({..._0xc9da75[_0x245ab8],'undoState':_0x11fda0[_0x410c62(0x3cb)][_0x410c62(0x3f4)],'redoState':_0x515fee[_0x410c62(0x3cb)][_0x410c62(0x3f4)]}),_0x256fa5=_0x11fda0['m1Prime'],_0x30b260=_0x515fee[_0x410c62(0x40c)];}this[_0x410c62(0x25d)][_0x410c62(0x3ea)](_0x48ad5c,{'history':_0x16450d,'collaboration':_0x258b84});}};J=Ft([le(0x0,a[_0x4bef21(0x248)](a['Injector'])),le(0x1,m[_0x4bef21(0x3b3)]),le(0x2,a[_0x4bef21(0x248)](b[_0x4bef21(0x218)]))],J);var Yt=Object[_0x4bef21(0x469)],Wt=(_0x2c76c9,_0x4943f9,_0x1e0538,_0x50ba17)=>{const _0x1da38d=_0x4bef21;for(var _0xabf36d=_0x50ba17>0x1?void 0x0:_0x50ba17?Yt(_0x4943f9,_0x1e0538):_0x4943f9,_0x427533=_0x2c76c9[_0x1da38d(0x2a3)]-0x1,_0x4ed915;_0x427533>=0x0;_0x427533--)(_0x4ed915=_0x2c76c9[_0x427533])&&(_0xabf36d=_0x4ed915(_0xabf36d)||_0xabf36d);return _0xabf36d;},Ne=(_0x2b1db4,_0x324de0)=>(_0x1a7024,_0x46bc72)=>_0x324de0(_0x1a7024,_0x46bc72,_0x2b1db4);let Z=class{constructor(_0x21283f,_0x1f1287){const _0xad190f=_0x4bef21;this[_0xad190f(0x23a)]=_0x21283f,this[_0xad190f(0x3d9)]=_0x1f1287;}['transformSelections'](_0x319845){const _0x25906d=_0x4bef21;var _0x24f874;const _0x32bec9=this[_0x25906d(0x23a)]['get'](Y[_0x25906d(0x460)]),_0x38bb91=(_0x24f874=_0x32bec9[_0x25906d(0x267)]())!=null?_0x24f874:[];if(_0x38bb91[_0x25906d(0x2a3)]===0x0)return;const _0x119aa9=_0x319845[_0x25906d(0x3d2)],_0x4d563c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x119aa9,'actions':null,'textRanges':_0x38bb91}}],_0x56c91f=this[_0x25906d(0x3d9)][_0x25906d(0x283)](_0x319845,_0x4d563c);if(!m[_0x25906d(0x450)](_0x56c91f))throw _0x56c91f[_0x25906d(0x442)];const _0x15d523=_0x56c91f[_0x25906d(0x3cb)][0x0][_0x25906d(0x3f4)]['textRanges'];Array['isArray'](_0x15d523)&&_0x15d523[_0x25906d(0x2a3)]&&_0x32bec9[_0x25906d(0x33b)](_0x15d523,{'unitId':_0x119aa9,'subUnitId':_0x119aa9},!0x1);}};Z=Wt([Ne(0x0,a[_0x4bef21(0x248)](a['Injector'])),Ne(0x1,m[_0x4bef21(0x3b3)])],Z);var Vt=Object[_0x4bef21(0x469)],Xt=(_0x2e89e8,_0x2a3c0f,_0x1bc591,_0x2ba3a3)=>{const _0x2b77ac=_0x4bef21;for(var _0xe55d13=_0x2ba3a3>0x1?void 0x0:_0x2ba3a3?Vt(_0x2a3c0f,_0x1bc591):_0x2a3c0f,_0x1eb99a=_0x2e89e8[_0x2b77ac(0x2a3)]-0x1,_0x2fe387;_0x1eb99a>=0x0;_0x1eb99a--)(_0x2fe387=_0x2e89e8[_0x1eb99a])&&(_0xe55d13=_0x2fe387(_0xe55d13)||_0xe55d13);return _0xe55d13;},N=(_0xcdf117,_0x10ecba)=>(_0x2421d5,_0x30aa52)=>_0x10ecba(_0x2421d5,_0x30aa52,_0xcdf117);let Q=class extends a[_0x4bef21(0x2f3)]{constructor(_0x3df02d,_0x41404a,_0xdd9bb8,_0x1ec8e6,_0x55ead1,_0x2712b3,_0x79232a,_0x13c9d2){const _0x4703fa=_0x4bef21;super(),h(this,'_status$',new d[(_0x4703fa(0x385))](u[_0x4703fa(0x3e1)]['NOT_COLLAB'])),(this[_0x4703fa(0x25d)]=_0x3df02d,this[_0x4703fa(0x393)]=_0x41404a,this[_0x4703fa(0x32a)]=_0xdd9bb8,this[_0x4703fa(0x44b)]=_0x1ec8e6,this[_0x4703fa(0x3ce)]=_0x55ead1,this[_0x4703fa(0x253)]=_0x2712b3,this[_0x4703fa(0x39b)]=_0x79232a,this['_localeService']=_0x13c9d2,this[_0x4703fa(0x43e)]());}[_0x4bef21(0x43e)](){const _0x573e8f=_0x4bef21;this[_0x573e8f(0x291)](this[_0x573e8f(0x393)][_0x573e8f(0x3cf)][_0x573e8f(0x3f2)](_0x197e23=>{const _0x797576=_0x573e8f,_0x3ec9a2=this[_0x797576(0x25d)]['docStateChange$']['subscribe'](_0x4ed82c=>{const _0x45c02b=_0x797576;if(_0x4ed82c==null)return;const {unitId:_0x5172a9,redoState:_0x2fcbcb,commandId:_0x577271}=_0x4ed82c;if(_0x5172a9!==_0x197e23[_0x45c02b(0x3d2)])return;const _0x59f72d={'id':_0x577271,'type':a[_0x45c02b(0x1f9)]['MUTATION'],'params':{'unitId':_0x5172a9,'actions':_0x2fcbcb[_0x45c02b(0x2ae)],'textRanges':null}};_0x197e23[_0x45c02b(0x3e2)](_0x59f72d);});if(_0x197e23[_0x797576(0x291)](_0x3ec9a2),_0x197e23 instanceof u[_0x797576(0x421)]){const _0x434289={'onTransformIME':_0x5ba38a=>this[_0x797576(0x32a)][_0x797576(0x379)](_0x5ba38a),'onTransformState':_0x3a3b8f=>this[_0x797576(0x44b)][_0x797576(0x3cc)](_0x3a3b8f),'onTransformSelections':_0x198c07=>this['_docTransformSelectionsService'][_0x797576(0x3aa)](_0x198c07),'onSyncEditingCollabCursor':_0x2a5843=>this[_0x797576(0x253)][_0x797576(0x3d5)](_0x2a5843),'onTransformRemoteChangesetByIMECache':_0x439b71=>this[_0x797576(0x32a)][_0x797576(0x44a)](_0x439b71),'onTransformRemoteChangesetByStateCache':_0xe9e2bd=>this[_0x797576(0x44b)]['transformRemoteChangeset'](_0xe9e2bd)};_0x197e23[_0x797576(0x2bb)](_0x434289);}}));}};Q=Xt([N(0x0,a[_0x4bef21(0x248)](b['DocStateChangeManagerService'])),N(0x1,a[_0x4bef21(0x248)](u[_0x4bef21(0x3d6)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x4bef21(0x248)](J)),N(0x4,a[_0x4bef21(0x248)](Z)),N(0x5,a[_0x4bef21(0x248)](Ce)),N(0x6,T[_0x4bef21(0x1f1)]),N(0x7,a['Inject'](a[_0x4bef21(0x22a)]))],Q);var Gt=Object[_0x4bef21(0x469)],Kt=(_0x7e8c62,_0x406690,_0x219174,_0x33bd27)=>{const _0x415d56=_0x4bef21;for(var _0x30b96d=_0x33bd27>0x1?void 0x0:_0x33bd27?Gt(_0x406690,_0x219174):_0x406690,_0x122504=_0x7e8c62[_0x415d56(0x2a3)]-0x1,_0x30ae8d;_0x122504>=0x0;_0x122504--)(_0x30ae8d=_0x7e8c62[_0x122504])&&(_0x30b96d=_0x30ae8d(_0x30b96d)||_0x30b96d);return _0x30b96d;},_e=(_0x15c447,_0x45b385)=>(_0x1cedb5,_0x2fec92)=>_0x45b385(_0x1cedb5,_0x2fec92,_0x15c447);let ge=class extends a[_0x4bef21(0x2f3)]{constructor(_0x156f9d,_0x51b5ea,_0xd91084){const _0x1fb67b=_0x4bef21;super(),h(this,'_cachedData',new Map()),h(this,_0x1fb67b(0x316),new Map()),h(this,'_disabled',!0x1),(this[_0x1fb67b(0x302)]=_0x156f9d,this[_0x1fb67b(0x2d9)]=_0x51b5ea,this[_0x1fb67b(0x2f6)]=_0xd91084);}[_0x4bef21(0x201)](){const _0x226838=_0x4bef21;this[_0x226838(0x219)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x4bef21(0x321)](){const _0x1c7f71=_0x4bef21;return this[_0x1c7f71(0x316)];}[_0x4bef21(0x2b4)](){const _0x379d5a=_0x4bef21;this['exhaustSavingTask']()[_0x379d5a(0x395)](()=>super[_0x379d5a(0x2b4)]());}async[_0x4bef21(0x27f)](_0x171737){const _0x22e3f6=_0x4bef21;return this[_0x22e3f6(0x219)]?null:this[_0x22e3f6(0x2d9)][_0x22e3f6(0x3a1)](u['getLocalCacheKey'](_0x171737));}async[_0x4bef21(0x3d0)](_0x1701b4,_0x35ce5d){const _0x37b5e4=_0x4bef21;return!!this[_0x37b5e4(0x2d9)]['setItem'](_0x1701b4,_0x35ce5d);}[_0x4bef21(0x344)](_0x3ff241,_0x12e3e7,_0x5311d5,_0x47c3f2){const _0x27985c=_0x4bef21,_0x523158=this[_0x27985c(0x2f6)][_0x27985c(0x285)](_0x3ff241);this[_0x27985c(0x44e)][_0x27985c(0x323)](_0x3ff241,{'unitID':_0x3ff241,'type':_0x12e3e7,'awaitingChangeset':_0x5311d5,'mutations':_0x47c3f2,'rev':_0x523158}),this[_0x27985c(0x316)][_0x27985c(0x2ca)](_0x3ff241)||this['_scheduleSaving'](_0x3ff241);}['_scheduleSaving'](_0x2c172){const _0x1453bd=_0x4bef21,_0x2456c5=this[_0x1453bd(0x3ff)]();_0x2456c5===0x0?this[_0x1453bd(0x3a4)](_0x2c172):this['_saveTaskMap'][_0x1453bd(0x323)](_0x2c172,setTimeout(()=>this[_0x1453bd(0x3a4)](_0x2c172),_0x2456c5));}[_0x4bef21(0x3ff)](){const _0x4c36e9=_0x4bef21;var _0x3a19a4;return(_0x3a19a4=this['_configService'][_0x4c36e9(0x34a)](u[_0x4c36e9(0x398)]))!=null?_0x3a19a4:u[_0x4c36e9(0x2c5)];}[_0x4bef21(0x3a4)](_0x15ee83){const _0x424e7f=_0x4bef21,_0x10a4f6=this['_saveTaskMap']['get'](_0x15ee83);return _0x10a4f6!==void 0x0&&window[_0x424e7f(0x439)](_0x10a4f6),this[_0x424e7f(0x2d9)][_0x424e7f(0x263)](u[_0x424e7f(0x3b5)](_0x15ee83),this[_0x424e7f(0x44e)][_0x424e7f(0x2d6)](_0x15ee83))[_0x424e7f(0x395)](()=>this[_0x424e7f(0x316)][_0x424e7f(0x214)](_0x15ee83));}async[_0x4bef21(0x41b)](){const _0x2174f3=_0x4bef21,_0x4d5913=[];this['_saveTaskMap'][_0x2174f3(0x2e6)]((_0x1a4878,_0x38920d)=>{const _0x532f2a=_0x2174f3;window[_0x532f2a(0x439)](_0x1a4878),_0x4d5913['push'](this[_0x532f2a(0x3a4)](_0x38920d)[_0x532f2a(0x395)](()=>{const _0x2e8370=_0x532f2a;this[_0x2e8370(0x316)][_0x2e8370(0x214)](_0x38920d);}));}),await Promise[_0x2174f3(0x311)](_0x4d5913);}};ge=Kt([_e(0x0,a[_0x4bef21(0x33d)]),_e(0x1,a[_0x4bef21(0x369)]),_e(0x2,a[_0x4bef21(0x248)](m[_0x4bef21(0x297)]))],ge);class je extends a[_0x4bef21(0x418)]{constructor(){const _0x520d39=_0x4bef21;super(),h(this,_0x520d39(0x1fd)),this['urlChange$']=d['fromEvent'](window,'popstate')[_0x520d39(0x26c)](d[_0x520d39(0x2a8)](this[_0x520d39(0x29f)]),d[_0x520d39(0x2f4)](0x1),d['mapTo'](void 0x0));}[_0x4bef21(0x22d)](_0x18d1f9,_0x992ae6,_0x45cd55=!0x1){const _0x2a61b1=_0x4bef21,_0x46c99d=new URL(window[_0x2a61b1(0x328)][_0x2a61b1(0x433)]);_0x46c99d[_0x2a61b1(0x415)][_0x2a61b1(0x323)](_0x18d1f9,_0x992ae6),_0x45cd55?window[_0x2a61b1(0x32f)][_0x2a61b1(0x3da)]('','',_0x46c99d[_0x2a61b1(0x23c)]()):window['history'][_0x2a61b1(0x451)]('','',_0x46c99d[_0x2a61b1(0x23c)]());}[_0x4bef21(0x40d)](_0x3233f7,_0x166196=!0x1){const _0x23532f=_0x4bef21,_0x7ea0be=new URL(window['location']['href']);_0x7ea0be[_0x23532f(0x415)][_0x23532f(0x214)](_0x3233f7),_0x166196?window['history'][_0x23532f(0x3da)]('','',_0x7ea0be['toString']()):window['history'][_0x23532f(0x451)]('','',_0x7ea0be['toString']());}['getParam'](_0x236b43){const _0x5070c0=_0x4bef21;var _0x4e108d;return(_0x4e108d=new URL(window[_0x5070c0(0x328)][_0x5070c0(0x433)])['searchParams'][_0x5070c0(0x2d6)](_0x236b43))!=null?_0x4e108d:void 0x0;}}var qt=Object[_0x4bef21(0x20c)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0xb57535,_0x3647ec,_0x3188da)=>_0x3647ec in _0xb57535?qt(_0xb57535,_0x3647ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3188da}):_0xb57535[_0x3647ec]=_0x3188da,Zt=(_0x31777d,_0x55257c,_0x561106,_0x2fd43e)=>{const _0x471b4a=_0x4bef21;for(var _0x52624b=_0x2fd43e>0x1?void 0x0:_0x2fd43e?zt(_0x55257c,_0x561106):_0x55257c,_0x581cec=_0x31777d[_0x471b4a(0x2a3)]-0x1,_0x39743a;_0x581cec>=0x0;_0x581cec--)(_0x39743a=_0x31777d[_0x581cec])&&(_0x52624b=_0x39743a(_0x52624b)||_0x52624b);return _0x52624b;},he=(_0x12e561,_0x5b3234)=>(_0x2dc932,_0xb41c29)=>_0x5b3234(_0x2dc932,_0xb41c29,_0x12e561),Qt=(_0x175c45,_0x408370,_0x340c18)=>Jt(_0x175c45,_0x408370+'',_0x340c18);const es=_0x4bef21(0x377);exports[_0x4bef21(0x2ea)]=class extends a['Plugin']{constructor(_0x421087=Ue,_0x4889c3,_0xc10fef,_0x296f45){const _0x523532=_0x4bef21;super(),this['_config']=_0x421087,this[_0x523532(0x403)]=_0x4889c3,this[_0x523532(0x23a)]=_0xc10fef,this[_0x523532(0x302)]=_0x296f45;const {..._0x183b44}=a[_0x523532(0x25b)]({},Ue,this['_config']);this['_configService'][_0x523532(0x239)]($t,_0x183b44);}[_0x4bef21(0x26a)](){const _0xcc0bb3=_0x4bef21;this[_0xcc0bb3(0x449)](),this[_0xcc0bb3(0x1ed)]();}[_0x4bef21(0x35b)](){this['_registerRenderDependencies']();}[_0x4bef21(0x449)](){const _0x262df4=_0x4bef21;var _0x39f1e6;const _0x3e8782=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x262df4(0x34d)],{'useClass':G[_0x262df4(0x3eb)]}],[u[_0x262df4(0x405)],{'useClass':ge}],[exports[_0x262df4(0x35c)]],[Q],[q],[x],[de],[exports[_0x262df4(0x30b)]]];a[_0x262df4(0x3bf)](this['_injector'],a[_0x262df4(0x2a7)](_0x3e8782,(_0x39f1e6=this[_0x262df4(0x357)])==null?void 0x0:_0x39f1e6[_0x262df4(0x31c)]));}[_0x4bef21(0x2fc)](){const _0x456edf=_0x4bef21;this[_0x456edf(0x291)](this[_0x456edf(0x403)][_0x456edf(0x43d)](a[_0x456edf(0x411)][_0x456edf(0x36f)],[Ie])),this[_0x456edf(0x291)](this[_0x456edf(0x403)][_0x456edf(0x43d)](a[_0x456edf(0x411)]['UNIVER_SHEET'],[ve]));}[_0x4bef21(0x1ed)](){const _0x2c9835=_0x4bef21;a[_0x2c9835(0x322)](this[_0x2c9835(0x23a)],[[x],[exports[_0x2c9835(0x35c)]],[Q],[q],[exports[_0x2c9835(0x30b)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x4bef21(0x462)]),he(0x1,p[_0x4bef21(0x1e3)]),he(0x2,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),he(0x3,a[_0x4bef21(0x33d)])],exports[_0x4bef21(0x2ea)]);var ts=Object[_0x4bef21(0x469)],ss=(_0x345046,_0x3b79d1,_0x58c40d,_0x1e2807)=>{for(var _0x5cdce1=_0x1e2807>0x1?void 0x0:_0x1e2807?ts(_0x3b79d1,_0x58c40d):_0x3b79d1,_0x50d43b=_0x345046['length']-0x1,_0x16460f;_0x50d43b>=0x0;_0x50d43b--)(_0x16460f=_0x345046[_0x50d43b])&&(_0x5cdce1=_0x16460f(_0x5cdce1)||_0x5cdce1);return _0x5cdce1;},F=(_0x4c9be0,_0x3090c5)=>(_0xf5773,_0xc95c83)=>_0x3090c5(_0xf5773,_0xc95c83,_0x4c9be0);exports[_0x4bef21(0x226)]=class extends u[_0x4bef21(0x3b0)]{constructor(_0x48ca52,_0x2e86a3,_0x1cedf5,_0x2f88c3,_0x2696eb){super(_0x48ca52,_0x2e86a3,_0x1cedf5,_0x2f88c3,_0x2696eb);}async[_0x4bef21(0x38f)](_0x8ce53e){const _0x1636da=_0x4bef21,_0x44c672=await this[_0x1636da(0x1f7)](),_0x55f48b=this[_0x1636da(0x3df)](_0x8ce53e,_0x44c672);return this['_doCreateSocket'](_0x55f48b);}[_0x4bef21(0x3df)](_0x30f8d2,_0x2359e5){const _0x172e6d=_0x4bef21,_0x430e9b=typeof window>'u'?new URL(_0x30f8d2):new URL(_0x30f8d2,window[_0x172e6d(0x328)]['origin']);_0x430e9b['searchParams'][_0x172e6d(0x323)](_0x172e6d(0x30e),_0x2359e5);const _0x45fba8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x45fba8[_0x172e6d(0x2d6)](_0x172e6d(0x374))&&_0x430e9b[_0x172e6d(0x415)]['set'](_0x172e6d(0x374),_0x45fba8['get']('runId')),_0x430e9b[_0x172e6d(0x23c)]();}async['_getSessionTicket'](){const _0x12f338=_0x4bef21;var _0x13c664,_0xf7a096,_0x1d4219;const _0x216856=this[_0x12f338(0x302)][_0x12f338(0x34a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x33ee43=(_0x13c664=_0x216856==null?void 0x0:_0x216856[_0x12f338(0x348)])!=null?_0x13c664:u[_0x12f338(0x28d)];return(_0x1d4219=(_0xf7a096=(await this[_0x12f338(0x2e7)]['get'](_0x33ee43,{'headers':{'Content-Type':'application/json'}}))[_0x12f338(0x30f)])==null?void 0x0:_0xf7a096[_0x12f338(0x3fe)])!=null?_0x1d4219:'';}},exports[_0x4bef21(0x226)]=ss([F(0x0,a[_0x4bef21(0x248)](a[_0x4bef21(0x250)])),F(0x1,a[_0x4bef21(0x248)](G[_0x4bef21(0x41c)])),F(0x2,a[_0x4bef21(0x33d)]),F(0x3,a[_0x4bef21(0x31d)]),F(0x4,m[_0x4bef21(0x392)])],exports[_0x4bef21(0x226)]);const Me=0x7530,Le=_0x4bef21(0x325);class is extends a[_0x4bef21(0x2f3)]{constructor(){const _0x127c8b=_0x4bef21;super(),h(this,_0x127c8b(0x3a6),a[_0x127c8b(0x43b)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x127c8b(0x233),new Map()),h(this,_0x127c8b(0x234),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x127c8b(0x259),new Map()),this['_init']();}[_0x4bef21(0x2b4)](){const _0x3103ab=_0x4bef21;super[_0x3103ab(0x2b4)](),this[_0x3103ab(0x432)][_0x3103ab(0x2e6)]((_0x7646e0,_0x2f6f82)=>this[_0x3103ab(0x40e)](_0x2f6f82)),this['_heartbeatTimer']&&window[_0x3103ab(0x1e8)](this[_0x3103ab(0x234)]);}[_0x4bef21(0x3dc)](_0x1eb259){const _0x196c1c=_0x4bef21;return this[_0x196c1c(0x45d)](_0x1eb259)['pipe'](d[_0x196c1c(0x23f)]());}[_0x4bef21(0x2ba)](_0x27a751){const _0x2f9123=_0x4bef21;this[_0x2f9123(0x2fa)]['size']===0x0&&this[_0x2f9123(0x34f)](),this[_0x2f9123(0x2fa)][_0x2f9123(0x45a)](_0x27a751),this[_0x2f9123(0x21a)]({'type':0x0,'memberID':this[_0x2f9123(0x3a6)],'unitIDs':[_0x27a751],'isForwarded':!0x1});}['disposeUnit'](_0x298b82){const _0x408890=_0x4bef21;this[_0x408890(0x2fa)][_0x408890(0x214)](_0x298b82),this['_selfUnitIDs'][_0x408890(0x401)]===0x0&&this[_0x408890(0x234)]&&window[_0x408890(0x1e8)](this[_0x408890(0x234)]);}[_0x4bef21(0x2c4)](){const _0x48e280=_0x4bef21;this[_0x48e280(0x291)](a[_0x48e280(0x22f)](d[_0x48e280(0x3e6)](window,_0x48e280(0x23b))[_0x48e280(0x3f2)](_0x59cfb1=>{const _0x177fe0=_0x48e280;if(_0x59cfb1[_0x177fe0(0x220)]!==Le||!_0x59cfb1['newValue'])return;const _0x57aa6f=JSON[_0x177fe0(0x380)](_0x59cfb1[_0x177fe0(0x27d)]);this['_handleEvent'](_0x57aa6f);}))),window[_0x48e280(0x288)](_0x48e280(0x27e),()=>this[_0x48e280(0x21a)]({'type':0x1,'memberID':this[_0x48e280(0x3a6)],'unitIDs':Array['from'](this[_0x48e280(0x2fa)])}));}[_0x4bef21(0x3e5)](_0x283cd8){const _0x12f60a=_0x4bef21;switch(_0x283cd8['type']){case 0x0:this['_handleJoinEvent'](_0x283cd8);break;case 0x1:this[_0x12f60a(0x20b)](_0x283cd8);break;case 0x2:this[_0x12f60a(0x361)](_0x283cd8);break;}}[_0x4bef21(0x271)](_0x4c7cf2){const _0x14d509=_0x4bef21,{unitIDs:_0x51d9e9,memberID:_0x369263,isForwarded:_0x44be94}=_0x4c7cf2;_0x51d9e9[_0x14d509(0x2e6)](_0x3bc106=>{const _0x360204=_0x14d509;if(!_0x44be94&&this[_0x360204(0x233)]['has'](_0x3bc106)&&this['_ensureSubject'](_0x3bc106)['next'](u[_0x360204(0x416)][_0x360204(0x333)]),!this[_0x360204(0x233)][_0x360204(0x2ca)](_0x3bc106)||!this['_unitOnClients'][_0x360204(0x2d6)](_0x3bc106)[_0x360204(0x2ca)](_0x369263)){const _0x375809=this['_unitOnClients'][_0x360204(0x2d6)](_0x3bc106)||new Set();_0x375809[_0x360204(0x45a)](_0x369263),this[_0x360204(0x233)][_0x360204(0x323)](_0x3bc106,_0x375809),this[_0x360204(0x2f8)](_0x369263);}}),_0x44be94||this[_0x14d509(0x21a)]({'type':0x0,'memberID':this[_0x14d509(0x3a6)],'unitIDs':[...this[_0x14d509(0x2fa)]],'isForwarded':!0x0});}[_0x4bef21(0x2f8)](_0x5ad5cf){const _0x35be2a=_0x4bef21;this[_0x35be2a(0x40e)](_0x5ad5cf);const _0x23c748=window[_0x35be2a(0x1e7)](()=>{const _0x53fa01=_0x35be2a;this[_0x53fa01(0x233)]['forEach'](_0x510fa3=>{const _0x1fdc9b=_0x53fa01;_0x510fa3[_0x1fdc9b(0x214)](_0x5ad5cf);});},Me*0x2);this[_0x35be2a(0x432)]['set'](_0x5ad5cf,_0x23c748);}[_0x4bef21(0x40e)](_0x52ef2a){const _0x2cf492=_0x4bef21;if(this[_0x2cf492(0x432)][_0x2cf492(0x2ca)](_0x52ef2a)){const _0xf6ed98=this[_0x2cf492(0x432)]['get'](_0x52ef2a);_0xf6ed98&&window[_0x2cf492(0x439)](_0xf6ed98),this[_0x2cf492(0x432)][_0x2cf492(0x323)](_0x52ef2a,null);}}[_0x4bef21(0x20b)](_0x2f593a){const _0x23dbda=_0x4bef21,{memberID:_0x23b9d5,unitIDs:_0x183a88}=_0x2f593a;_0x183a88[_0x23dbda(0x2e6)](_0x1c5521=>{const _0x41b90c=_0x23dbda;var _0x3ba697;const _0x5b1522=this[_0x41b90c(0x233)]['get'](_0x1c5521);_0x5b1522&&(_0x5b1522['delete'](_0x23b9d5),(_0x3ba697=this[_0x41b90c(0x45d)](_0x1c5521))==null||_0x3ba697[_0x41b90c(0x394)](_0x5b1522[_0x41b90c(0x401)]===0x0?u[_0x41b90c(0x416)][_0x41b90c(0x382)]:u['UnitStatus'][_0x41b90c(0x333)]));}),this[_0x23dbda(0x40e)](_0x23b9d5);}[_0x4bef21(0x361)](_0x201a2a){const _0x261615=_0x4bef21;this['_scheduleClearOtherTimer'](_0x201a2a[_0x261615(0x2e3)]);}['_send'](_0xf8200e){const _0x1b1d05=_0x4bef21;localStorage[_0x1b1d05(0x263)](Le,JSON[_0x1b1d05(0x2c0)](_0xf8200e));}[_0x4bef21(0x34f)](){const _0x56d18a=_0x4bef21;this[_0x56d18a(0x234)]=window['setInterval'](()=>{const _0x2e7e7e=_0x56d18a;this[_0x2e7e7e(0x21a)]({'type':0x2,'memberID':this['_id']});},Me);}[_0x4bef21(0x45d)](_0x18a9c4){const _0x220295=_0x4bef21;return this[_0x220295(0x259)]['has'](_0x18a9c4)||this[_0x220295(0x259)][_0x220295(0x323)](_0x18a9c4,new d[(_0x220295(0x385))](u[_0x220295(0x416)][_0x220295(0x382)])),this[_0x220295(0x259)][_0x220295(0x2d6)](_0x18a9c4);}}var Be=(_0x3e6aed=>(_0x3e6aed[_0x3e6aed[_0x4bef21(0x376)]=0x0]=_0x4bef21(0x376),_0x3e6aed[_0x3e6aed['OK']=0x1]='OK',_0x3e6aed[_0x3e6aed[_0x4bef21(0x23d)]=0x2]=_0x4bef21(0x23d),_0x3e6aed[_0x3e6aed[_0x4bef21(0x326)]=0x3]=_0x4bef21(0x326),_0x3e6aed[_0x3e6aed[_0x4bef21(0x281)]=0x4]=_0x4bef21(0x281),_0x3e6aed[_0x3e6aed['UNAUTHENTICATED']=0x5]=_0x4bef21(0x31b),_0x3e6aed[_0x3e6aed['ALREADY_EXISTS']=0x6]=_0x4bef21(0x32e),_0x3e6aed[_0x3e6aed['INVALID_ARGUMENT']=0x7]=_0x4bef21(0x289),_0x3e6aed[_0x3e6aed[_0x4bef21(0x378)]=0x8]=_0x4bef21(0x378),_0x3e6aed[_0x3e6aed[_0x4bef21(0x458)]=0x9]=_0x4bef21(0x458),_0x3e6aed[_0x3e6aed[_0x4bef21(0x389)]=0xa]=_0x4bef21(0x389),_0x3e6aed[_0x3e6aed[_0x4bef21(0x464)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3e6aed[_0x3e6aed[_0x4bef21(0x343)]=0x1771]=_0x4bef21(0x343),_0x3e6aed[_0x3e6aed[_0x4bef21(0x1dd)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3e6aed[_0x3e6aed[_0x4bef21(0x3dd)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3e6aed[_0x3e6aed['APPLY_REJECT']=0x1b59]=_0x4bef21(0x1eb),_0x3e6aed[_0x3e6aed[_0x4bef21(0x24c)]=0x1b5a]=_0x4bef21(0x24c),_0x3e6aed[_0x3e6aed[_0x4bef21(0x217)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3e6aed[_0x3e6aed[_0x4bef21(0x38e)]=0x1b5c]=_0x4bef21(0x38e),_0x3e6aed[_0x3e6aed[_0x4bef21(0x268)]=0x1b5d]=_0x4bef21(0x268),_0x3e6aed[_0x3e6aed['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4bef21(0x2b6),_0x3e6aed[_0x3e6aed[_0x4bef21(0x37c)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3e6aed[_0x3e6aed[_0x4bef21(0x2cf)]=0x232a]=_0x4bef21(0x2cf),_0x3e6aed[_0x3e6aed[_0x4bef21(0x436)]=0x232b]=_0x4bef21(0x436),_0x3e6aed[_0x3e6aed[_0x4bef21(0x42d)]=0x232c]=_0x4bef21(0x42d),_0x3e6aed[_0x3e6aed['LICENSE_DISTRO_REJECTED']=0x232d]=_0x4bef21(0x208),_0x3e6aed[_0x3e6aed['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4bef21(0x222),_0x3e6aed[_0x3e6aed[_0x4bef21(0x26e)]=0x2712]=_0x4bef21(0x26e),_0x3e6aed[_0x3e6aed[_0x4bef21(0x2ef)]=0x2713]=_0x4bef21(0x2ef),_0x3e6aed[_0x3e6aed[_0x4bef21(0x45b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3e6aed[_0x3e6aed['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x4bef21(0x2e1),_0x3e6aed[_0x3e6aed['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x3e6aed[_0x3e6aed['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3e6aed[_0x3e6aed[_0x4bef21(0x28c)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x3e6aed[_0x3e6aed[_0x4bef21(0x2cd)]=0x271e]=_0x4bef21(0x2cd),_0x3e6aed[_0x3e6aed[_0x4bef21(0x2de)]=0x271f]=_0x4bef21(0x2de),_0x3e6aed[_0x3e6aed['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4bef21(0x2a1),_0x3e6aed[_0x3e6aed[_0x4bef21(0x29e)]=0x2ee1]=_0x4bef21(0x29e),_0x3e6aed[_0x3e6aed['INVALID_INVITE_CODE']=0x2ee2]=_0x4bef21(0x2f9),_0x3e6aed[_0x3e6aed[_0x4bef21(0x232)]=0x2ee3]=_0x4bef21(0x232),_0x3e6aed[_0x3e6aed[_0x4bef21(0x251)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x3e6aed[_0x3e6aed[_0x4bef21(0x456)]=0x2ee5]=_0x4bef21(0x456),_0x3e6aed[_0x3e6aed[_0x4bef21(0x46a)]=0x32c9]=_0x4bef21(0x46a),_0x3e6aed[_0x3e6aed[_0x4bef21(0x3c1)]=0x32ca]=_0x4bef21(0x3c1),_0x3e6aed[_0x3e6aed[_0x4bef21(0x41f)]=0x32cb]=_0x4bef21(0x41f),_0x3e6aed[_0x3e6aed[_0x4bef21(0x303)]=-0x1]=_0x4bef21(0x303),_0x3e6aed))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x2fcd9a,_0x449a96,_0x5c24f3,_0x59413b)=>{const _0x3a8a5d=_0x4bef21;for(var _0x5e20e8=_0x59413b>0x1?void 0x0:_0x59413b?ns(_0x449a96,_0x5c24f3):_0x449a96,_0x958637=_0x2fcd9a[_0x3a8a5d(0x2a3)]-0x1,_0x230f2f;_0x958637>=0x0;_0x958637--)(_0x230f2f=_0x2fcd9a[_0x958637])&&(_0x5e20e8=_0x230f2f(_0x5e20e8)||_0x5e20e8);return _0x5e20e8;},ue=(_0x3531e2,_0x37f40c)=>(_0x2102f8,_0x1cf4d3)=>_0x37f40c(_0x2102f8,_0x1cf4d3,_0x3531e2);exports[_0x4bef21(0x261)]=class extends a[_0x4bef21(0x2f3)]{constructor(_0x2d536c,_0xa6ae01,_0x23b098){const _0x11e66d=_0x4bef21;super(),this[_0x11e66d(0x397)]=_0x2d536c,this[_0x11e66d(0x2e7)]=_0xa6ae01,this[_0x11e66d(0x302)]=_0x23b098;}async[_0x4bef21(0x334)](_0x497223,_0x3f559d,_0xc80cf,..._0x22aecf){const _0x514f0b=_0x4bef21;var _0x48dc1e,_0x2ba781,_0x260007,_0x474e3b;const _0x4a4b4e=this[_0x514f0b(0x397)][_0x514f0b(0x34b)]();if(!_0x4a4b4e)throw new Error(_0x514f0b(0x2e9));const _0x43e870=((_0x48dc1e=this[_0x514f0b(0x302)][_0x514f0b(0x34a)](u[_0x514f0b(0x245)]))!=null?_0x48dc1e:u[_0x514f0b(0x269)])+'/'+_0x497223+'/run/'+_0x3f559d,_0xe63ba5=new URL(window[_0x514f0b(0x328)]['href']),_0x4f87e8={'scriptId':_0x497223,'runId':(_0x2ba781=_0xe63ba5[_0x514f0b(0x415)][_0x514f0b(0x2d6)]('runId'))!=null?_0x2ba781:'','function':_0x3f559d,'unitId':_0x4a4b4e[_0x514f0b(0x1e1)](),'argsOfFunction':JSON['stringify'](_0x22aecf),'invokeId':(_0x260007=_0xc80cf[_0x514f0b(0x25f)])!=null?_0x260007:'','executionId':(_0x474e3b=_0xc80cf[_0x514f0b(0x46b)])!=null?_0x474e3b:''};try{const _0x582be7=await this['_httpService'][_0x514f0b(0x2ab)](_0x43e870,{'body':_0x4f87e8});return _0x582be7['body']['error']&&_0x582be7[_0x514f0b(0x30f)][_0x514f0b(0x442)][_0x514f0b(0x22e)]!==Be['OK']?_0x514f0b(0x1dc):_0x582be7['body']['result'];}catch{return _0x514f0b(0x1dc);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G[_0x4bef21(0x41c)])),ue(0x2,a['IConfigService'])],exports[_0x4bef21(0x261)]),exports[_0x4bef21(0x355)]=xe,exports[_0x4bef21(0x352)]=be,exports[_0x4bef21(0x2b7)]=Pe,exports[_0x4bef21(0x383)]=is,exports[_0x4bef21(0x242)]=je;
@@ -1 +1 @@
1
- 'use strict';const _0x37a8d0=_0x21c4;(function(_0x42dcdf,_0x47cddb){const _0x2ab019=_0x21c4,_0x3f84ec=_0x42dcdf();while(!![]){try{const _0x32fff9=parseInt(_0x2ab019(0x12e))/0x1+parseInt(_0x2ab019(0x12a))/0x2+parseInt(_0x2ab019(0x13a))/0x3*(parseInt(_0x2ab019(0x133))/0x4)+-parseInt(_0x2ab019(0x12b))/0x5+-parseInt(_0x2ab019(0x138))/0x6+-parseInt(_0x2ab019(0x13b))/0x7+parseInt(_0x2ab019(0x130))/0x8*(-parseInt(_0x2ab019(0x132))/0x9);if(_0x32fff9===_0x47cddb)break;else _0x3f84ec['push'](_0x3f84ec['shift']());}catch(_0x365325){_0x3f84ec['push'](_0x3f84ec['shift']());}}}(_0x4564,0xcbb6c));function _0x21c4(_0x4a787f,_0x1109e8){const _0x4564da=_0x4564();return _0x21c4=function(_0x21c4d3,_0x2ab90d){_0x21c4d3=_0x21c4d3-0x128;let _0x2038d1=_0x4564da[_0x21c4d3];return _0x2038d1;},_0x21c4(_0x4a787f,_0x1109e8);}function _0x4564(){const _0x411176=['Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','72826OCeVls','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','1744VJyvKh','Click\x20to\x20Reconnect','39789Rvnrbu','8980lPHtlL','Collaboration\x20Conflict','Connection\x20failed,\x20please\x20check\x20your\x20network.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','242316tkSHbs','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','2076NQiWOQ','2127790SZvYeM','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','exports','Syncing...','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','3125218cUIeax','5232145zPLEgr'];_0x4564=function(){return _0x411176;};return _0x4564();}const e={'collab-client':{'tooltip':{'reconnect':_0x37a8d0(0x131)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x37a8d0(0x12c),'synced':_0x37a8d0(0x13e),'syncing':_0x37a8d0(0x128),'offline':_0x37a8d0(0x137)},'session':{'connection-failed':_0x37a8d0(0x135),'will-retry':_0x37a8d0(0x129),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x37a8d0(0x12d)},'conflict':{'title':_0x37a8d0(0x134),'content':_0x37a8d0(0x13c)},'permission':{'title':'Authentication\x20Error','content':_0x37a8d0(0x12f)},'collaboration':{'single-unit':{'warning':_0x37a8d0(0x136)},'closeRoom':_0x37a8d0(0x13d)},'auth':{'needGotoLoginAlert':_0x37a8d0(0x139)}};module[_0x37a8d0(0x13f)]=e;
1
+ 'use strict';function _0x46bd(){const _0x3dbea8=['Connection\x20failed,\x20please\x20check\x20your\x20network.','Edit\x20conflicts','451260nsCmOn','903789EXCawS','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Click\x20to\x20Reconnect','4SuBBpl','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing\x20server\x20data...','103256qcCVXS','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','36uvZJUJ','Syncing...','Collaboration\x20Conflict','6229760jzuLxF','Local\x20file','63516PnOOcg','122590TGNTrj','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','6329kXBbTq','21TuoUGA','Authentication\x20Error'];_0x46bd=function(){return _0x3dbea8;};return _0x46bd();}const _0x114485=_0x20c5;(function(_0x121111,_0x2bc232){const _0x215f97=_0x20c5,_0x2a2d64=_0x121111();while(!![]){try{const _0x36577a=-parseInt(_0x215f97(0x7b))/0x1*(-parseInt(_0x215f97(0x84))/0x2)+parseInt(_0x215f97(0x77))/0x3*(-parseInt(_0x215f97(0x72))/0x4)+parseInt(_0x215f97(0x78))/0x5+-parseInt(_0x215f97(0x80))/0x6*(parseInt(_0x215f97(0x7c))/0x7)+-parseInt(_0x215f97(0x87))/0x8+-parseInt(_0x215f97(0x81))/0x9+parseInt(_0x215f97(0x75))/0xa;if(_0x36577a===_0x2bc232)break;else _0x2a2d64['push'](_0x2a2d64['shift']());}catch(_0x277478){_0x2a2d64['push'](_0x2a2d64['shift']());}}}(_0x46bd,0x1fe56));function _0x20c5(_0x74e53e,_0xd972ac){const _0x46bd36=_0x46bd();return _0x20c5=function(_0x20c50f,_0x1f330e){_0x20c50f=_0x20c50f-0x71;let _0x1d9b43=_0x46bd36[_0x20c50f];return _0x1d9b43;},_0x20c5(_0x74e53e,_0xd972ac);}const e={'collab-client':{'tooltip':{'reconnect':_0x114485(0x83)}},'collabStatus':{'fetchMiss':_0x114485(0x86),'conflict':_0x114485(0x7f),'notCollab':_0x114485(0x76),'synced':'Synced','syncing':_0x114485(0x73),'offline':_0x114485(0x7a)},'session':{'connection-failed':_0x114485(0x7e),'will-retry':_0x114485(0x85),'room-full':_0x114485(0x71),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x114485(0x74),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x114485(0x7d),'content':_0x114485(0x82)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x114485(0x79)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};module['exports']=e;