@univerjs-pro/collaboration-client-ui 0.13.0-insiders.20251220-0a5ea4d → 0.14.0-insiders.20251222-4efcfbb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4b8fc7=_0x3f9c;(function(_0x4e158d,_0x544cc1){const _0x313814=_0x3f9c,_0x30c865=_0x4e158d();while(!![]){try{const _0x9c8b36=-parseInt(_0x313814(0x1ec))/0x1+-parseInt(_0x313814(0x8c))/0x2+-parseInt(_0x313814(0xfb))/0x3*(parseInt(_0x313814(0x18f))/0x4)+-parseInt(_0x313814(0x1ed))/0x5*(-parseInt(_0x313814(0x29e))/0x6)+parseInt(_0x313814(0x9d))/0x7*(-parseInt(_0x313814(0x269))/0x8)+parseInt(_0x313814(0x1aa))/0x9*(-parseInt(_0x313814(0x349))/0xa)+-parseInt(_0x313814(0x283))/0xb*(-parseInt(_0x313814(0x27c))/0xc);if(_0x9c8b36===_0x544cc1)break;else _0x30c865['push'](_0x30c865['shift']());}catch(_0xd226dc){_0x30c865['push'](_0x30c865['shift']());}}}(_0x2abb,0x8de27));var Xe=Object[_0x4b8fc7(0x1bf)],Ke=(_0x420b5c,_0x2d4f2e,_0x53bf96)=>_0x2d4f2e in _0x420b5c?Xe(_0x420b5c,_0x2d4f2e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53bf96}):_0x420b5c[_0x2d4f2e]=_0x53bf96,_=(_0x3b40cd,_0x525ccd,_0x153c88)=>Ke(_0x3b40cd,typeof _0x525ccd!=_0x4b8fc7(0x108)?_0x525ccd+'':_0x525ccd,_0x153c88);Object[_0x4b8fc7(0x1bf)](exports,Symbol[_0x4b8fc7(0x211)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x4a4bec,..._0x4d4772}){const _0x50952f=_0x4b8fc7,{icon:_0x58a3ab,id:_0x4d3fdf,className:_0x32708f,extend:_0x5bdffe,..._0x370877}=_0x4d4772,_0x40e693=(_0x50952f(0x290)+_0x4d3fdf+'\x20'+(_0x32708f||''))[_0x50952f(0x11d)](),_0x4e22fe=A[_0x50952f(0xdc)]('_'+Qe());return $e(_0x58a3ab,''+_0x4d3fdf,{'defIds':_0x58a3ab[_0x50952f(0x123)],'idSuffix':_0x4e22fe[_0x50952f(0x2dd)]},{'ref':_0x4a4bec,'className':_0x40e693,..._0x370877},_0x5bdffe);}function $e(_0x167b05,_0x14d7f4,_0x6ba323,_0x4dae66,_0x468f7f){const _0x5cb4ab=_0x4b8fc7;return A[_0x5cb4ab(0x2a5)](_0x167b05[_0x5cb4ab(0x226)],{'key':_0x14d7f4,...Je(_0x167b05,_0x6ba323,_0x468f7f),..._0x4dae66},(Ze(_0x167b05,_0x6ba323)[_0x5cb4ab(0x210)]||[])[_0x5cb4ab(0x13b)]((_0xd85d89,_0xd01e8f)=>$e(_0xd85d89,_0x14d7f4+'-'+_0x167b05[_0x5cb4ab(0x226)]+'-'+_0xd01e8f,_0x6ba323,void 0x0,_0x468f7f)));}function Je(_0x40b301,_0xeca039,_0x4b4909){const _0x1699df=_0x4b8fc7,_0x1bfecc={..._0x40b301[_0x1699df(0x2ce)]};_0x4b4909!=null&&_0x4b4909['colorChannel1']&&_0x1bfecc[_0x1699df(0x97)]===_0x1699df(0x253)&&(_0x1bfecc[_0x1699df(0x97)]=_0x4b4909[_0x1699df(0x253)]),_0x40b301[_0x1699df(0x226)]===_0x1699df(0x184)&&_0x1bfecc['id']&&(_0x1bfecc['id']=_0x1bfecc['id']+_0xeca039[_0x1699df(0x2bf)]),Object[_0x1699df(0x19a)](_0x1bfecc)[_0x1699df(0x7d)](([_0x20436e,_0x39cd6d])=>{const _0x2e5690=_0x1699df;_0x20436e===_0x2e5690(0x184)&&typeof _0x39cd6d==_0x2e5690(0x31a)&&(_0x1bfecc[_0x20436e]=_0x39cd6d[_0x2e5690(0xb6)](/url\(#(.*)\)/,_0x2e5690(0xa9)+_0xeca039[_0x2e5690(0x2bf)]+')'));});const {defIds:_0x357eab}=_0xeca039;return!_0x357eab||_0x357eab[_0x1699df(0x34f)]===0x0||(_0x40b301[_0x1699df(0x226)]===_0x1699df(0x34d)&&_0x1bfecc['xlink:href']&&(_0x1bfecc['xlink:href']=_0x1bfecc[_0x1699df(0xfc)]+_0xeca039[_0x1699df(0x2bf)]),Object['entries'](_0x1bfecc)['forEach'](([_0xd51be,_0x426617])=>{const _0x4a0ecd=_0x1699df;typeof _0x426617==_0x4a0ecd(0x31a)&&(_0x1bfecc[_0xd51be]=_0x426617[_0x4a0ecd(0xb6)](/url\(#(.*)\)/,_0x4a0ecd(0xa9)+_0xeca039['idSuffix']+')'));})),_0x1bfecc;}function Ze(_0x97bd56,_0x5eddaf){const _0x18b30f=_0x4b8fc7;var _0x29c10c;const {defIds:_0xf4cdef}=_0x5eddaf;return!_0xf4cdef||_0xf4cdef['length']===0x0?_0x97bd56:_0x97bd56[_0x18b30f(0x226)]===_0x18b30f(0x355)&&((_0x29c10c=_0x97bd56[_0x18b30f(0x210)])!=null&&_0x29c10c[_0x18b30f(0x34f)])?{..._0x97bd56,'children':_0x97bd56[_0x18b30f(0x210)]['map'](_0x2a0538=>typeof _0x2a0538['attrs']['id']==_0x18b30f(0x31a)&&_0xf4cdef&&_0xf4cdef[_0x18b30f(0x16f)](_0x2a0538[_0x18b30f(0x2ce)]['id'])?{..._0x2a0538,'attrs':{..._0x2a0538[_0x18b30f(0x2ce)],'id':_0x2a0538[_0x18b30f(0x2ce)]['id']+_0x5eddaf[_0x18b30f(0x2bf)]}}:_0x2a0538)}:_0x97bd56;}function Qe(){const _0x5dc41b=_0x4b8fc7;return Math[_0x5dc41b(0xc3)]()[_0x5dc41b(0x320)](0x24)[_0x5dc41b(0x13d)](0x2,0x8);}pe[_0x4b8fc7(0x1ac)]=_0x4b8fc7(0x24b);const et={'tag':'svg','attrs':{'xmlns':_0x4b8fc7(0x116),'fill':_0x4b8fc7(0x1a6),'viewBox':_0x4b8fc7(0x295),'width':_0x4b8fc7(0x183),'height':_0x4b8fc7(0x183)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4b8fc7(0x2f9),'attrs':{'stroke':'currentColor','d':_0x4b8fc7(0x205),'strokeLinecap':'round','strokeLinejoin':_0x4b8fc7(0xed),'strokeWidth':1.2}}]},{'tag':_0x4b8fc7(0x355),'attrs':{},'children':[{'tag':_0x4b8fc7(0x23d),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4b8fc7(0x2f9),'attrs':{'fill':_0x4b8fc7(0x20c),'d':_0x4b8fc7(0x324)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x4b8fc7(0x2a2)](function(_0x2bba21,_0x5e27d6){const _0x5b5563=_0x4b8fc7;return A['createElement'](pe,Object[_0x5b5563(0x194)]({},_0x2bba21,{'id':_0x5b5563(0x125),'ref':_0x5e27d6,'icon':et}));});xe['displayName']='OffLineIcon';const tt={'tag':_0x4b8fc7(0x33c),'attrs':{'xmlns':_0x4b8fc7(0x116),'fill':_0x4b8fc7(0x1a6),'viewBox':_0x4b8fc7(0x19d),'width':_0x4b8fc7(0x183),'height':_0x4b8fc7(0x183)},'children':[{'tag':'g','attrs':{'clipPath':_0x4b8fc7(0x140)},'children':[{'tag':_0x4b8fc7(0x2f9),'attrs':{'stroke':_0x4b8fc7(0x143),'d':_0x4b8fc7(0x180),'strokeLinecap':_0x4b8fc7(0xed),'strokeLinejoin':_0x4b8fc7(0xed),'strokeWidth':1.2}}]},{'tag':_0x4b8fc7(0x355),'attrs':{},'children':[{'tag':_0x4b8fc7(0x23d),'attrs':{'id':_0x4b8fc7(0x1b2)},'children':[{'tag':_0x4b8fc7(0x2f9),'attrs':{'fill':_0x4b8fc7(0x20c),'d':_0x4b8fc7(0x324),'transform':_0x4b8fc7(0x121)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x4b8fc7(0x2a2)](function(_0x12f5dc,_0x585e91){const _0x3677c8=_0x4b8fc7;return A[_0x3677c8(0x2a5)](pe,Object[_0x3677c8(0x194)]({},_0x12f5dc,{'id':_0x3677c8(0x273),'ref':_0x585e91,'icon':tt}));});Be[_0x4b8fc7(0x1ac)]=_0x4b8fc7(0x18c);function st(_0x139867){const _0x35aed0=_0x4b8fc7;switch(_0x139867){case u[_0x35aed0(0x1db)]['OFFLINE']:return _0x35aed0(0x328);case u['CollaborationStatus']['CONFLICT']:return _0x35aed0(0x300);case u[_0x35aed0(0x1db)][_0x35aed0(0x30a)]:return _0x35aed0(0x317);case u[_0x35aed0(0x1db)][_0x35aed0(0x10a)]:return _0x35aed0(0x33b);case u[_0x35aed0(0x1db)][_0x35aed0(0xb9)]:case u[_0x35aed0(0x1db)][_0x35aed0(0x29b)]:return _0x35aed0(0x115);case u[_0x35aed0(0x1db)][_0x35aed0(0x218)]:case u[_0x35aed0(0x1db)]['PENDING']:return'collabStatus.synced';}}function it(_0x5f5062){const _0x1b3361=_0x4b8fc7,{status$:_0x1532e0}=_0x5f5062,_0x44c466=O['useObservable'](_0x1532e0,u[_0x1b3361(0x1db)]['NOT_COLLAB']),_0x22cce0=O['useDependency'](a[_0x1b3361(0x2a0)]),_0x7c2584=O[_0x1b3361(0x90)](u['CollaborationSessionService']),_0x52e89f=_0x44c466!==u[_0x1b3361(0x1db)][_0x1b3361(0xa3)],_0x4dd59f=_0x22cce0['t'](st(_0x44c466)),_0x2706e3=_0x52e89f?M[_0x1b3361(0x31d)](Be,{}):M['jsx'](xe,{}),_0x12430c=A[_0x1b3361(0x30c)](()=>{const _0x4900d1=_0x1b3361;_0x52e89f||_0x7c2584[_0x4900d1(0x33f)]();},[_0x52e89f,_0x7c2584]);function _0x5a4255(){const _0x2f720e=_0x1b3361;return M['jsxs'](_0x2f720e(0x31b),{'className':_0x2f720e(0x2f8),'onClick':_0x12430c,'children':[M['jsx'](_0x2f720e(0x31b),{'className':p[_0x2f720e(0x7b)](_0x2f720e(0x182),{'univer-text-green-500':_0x52e89f,'univer-text-red-500':!_0x52e89f}),'children':_0x2706e3}),M[_0x2f720e(0x31d)](_0x2f720e(0x31b),{'className':_0x2f720e(0x1ce),'children':_0x4dd59f})]});}return _0x52e89f?_0x5a4255():M[_0x1b3361(0x31d)](p[_0x1b3361(0x201)],{'title':_0x22cce0['t'](_0x1b3361(0x160)),'children':_0x5a4255()});}var nt=Object[_0x4b8fc7(0x288)],rt=(_0x251bb7,_0x24897f,_0xdef5cf,_0x59b262)=>{const _0x474bc4=_0x4b8fc7;for(var _0xac202d=_0x59b262>0x1?void 0x0:_0x59b262?nt(_0x24897f,_0xdef5cf):_0x24897f,_0x256d25=_0x251bb7[_0x474bc4(0x34f)]-0x1,_0x253b1c;_0x256d25>=0x0;_0x256d25--)(_0x253b1c=_0x251bb7[_0x256d25])&&(_0xac202d=_0x253b1c(_0xac202d)||_0xac202d);return _0xac202d;},K=(_0x1aba8b,_0x5026c4)=>(_0x16a030,_0x5b9091)=>_0x5026c4(_0x16a030,_0x5b9091,_0x1aba8b);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x2c0ed4,_0x1051ca,_0x58514c,_0x23c92c){const _0x5c56d2=_0x4b8fc7;super(),_(this,_0x5c56d2(0x206),new I[(_0x5c56d2(0x2ad))](u[_0x5c56d2(0x1db)][_0x5c56d2(0x10a)])),(this['_univerInstanceService']=_0x2c0ed4,this[_0x5c56d2(0x1a4)]=_0x1051ca,this[_0x5c56d2(0x242)]=_0x58514c,this[_0x5c56d2(0x227)]=_0x23c92c,this['_initStatusComponent'](),this[_0x5c56d2(0xe2)]());}[_0x4b8fc7(0xe2)](){const _0x19d869=_0x4b8fc7;this['disposeWithMe'](this[_0x19d869(0x32f)]['focused$'][_0x19d869(0x266)](I[_0x19d869(0x2e4)](()=>{const _0x3c37c6=_0x19d869,_0x4958a9=this['_univerInstanceService'][_0x3c37c6(0x151)]();return _0x4958a9?this[_0x3c37c6(0x242)][_0x3c37c6(0x1e7)](_0x4958a9[_0x3c37c6(0x1f6)]()):I['of'](null);}),I[_0x19d869(0x2e4)](_0x4cb70d=>_0x4cb70d?_0x4cb70d['status$']:I['of'](u[_0x19d869(0x1db)]['NOT_COLLAB'])))['subscribe'](_0x2cde99=>{const _0x1b2b96=_0x19d869;this['_status$'][_0x1b2b96(0x322)](_0x2cde99);}));}[_0x4b8fc7(0x141)](){const _0xd8df9e=_0x4b8fc7;this[_0xd8df9e(0x350)](this[_0xd8df9e(0x227)]['registerComponent'](O['BuiltInUIPart'][_0xd8df9e(0x118)],()=>O[_0xd8df9e(0xeb)](ot({'status$':this[_0xd8df9e(0x206)]['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x4b8fc7(0xec)]),K(0x1,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),K(0x2,a[_0x4b8fc7(0x2ee)](u[_0x4b8fc7(0x15b)])),K(0x3,O[_0x4b8fc7(0x1f7)])],exports[_0x4b8fc7(0xf2)]);function ot(_0xd5628){const {status$:_0x37ff44}=_0xd5628;return function(){return M['jsx'](it,{'status$':_0x37ff44});};}const Oe=a['createIdentifier'](_0x4b8fc7(0xde));var at=Object[_0x4b8fc7(0x288)],ct=(_0x4d7e89,_0x5adfde,_0x274376,_0x55e886)=>{const _0x4d05bb=_0x4b8fc7;for(var _0x3ed902=_0x55e886>0x1?void 0x0:_0x55e886?at(_0x5adfde,_0x274376):_0x5adfde,_0x4cbd0f=_0x4d7e89[_0x4d05bb(0x34f)]-0x1,_0x2d07dc;_0x4cbd0f>=0x0;_0x4cbd0f--)(_0x2d07dc=_0x4d7e89[_0x4cbd0f])&&(_0x3ed902=_0x2d07dc(_0x3ed902)||_0x3ed902);return _0x3ed902;},Y=(_0x5d58fa,_0x9f2b17)=>(_0x11c671,_0x2899f7)=>_0x9f2b17(_0x11c671,_0x2899f7,_0x5d58fa);exports[_0x4b8fc7(0x136)]=class extends a[_0x4b8fc7(0x312)]{constructor(_0x2aad51,_0x349fde,_0x17f654,_0x116c11,_0x537f49){const _0xda3a0b=_0x4b8fc7;super(),this[_0xda3a0b(0x345)]=_0x2aad51,this[_0xda3a0b(0x284)]=_0x349fde,this['_commandService']=_0x17f654,this['_dataLoaderService']=_0x116c11,_0x537f49?_0x537f49==null||_0x537f49[_0xda3a0b(0x277)]()[_0xda3a0b(0x26a)](()=>this[_0xda3a0b(0x16a)]()):(this[_0xda3a0b(0x284)]['debug']('[CollaborationDataLoaderController]',_0xda3a0b(0x196)),this['_init']());}async[_0x4b8fc7(0x16a)](){const _0x206691=_0x4b8fc7,_0x119956=this[_0x206691(0x345)][_0x206691(0x181)]('unit'),_0x5e64f4=this['_urlService'][_0x206691(0x181)](_0x206691(0x2c3)),_0x53457c=this[_0x206691(0x345)][_0x206691(0x181)](_0x206691(0x1a2));if(!_0x119956||!_0x5e64f4){this[_0x206691(0x284)][_0x206691(0x30b)](_0x206691(0x2e6),_0x206691(0x21b));return;}const _0x538e87=await this[_0x206691(0x130)][_0x206691(0x174)](_0x119956,Number(_0x5e64f4),_0x53457c);_0x538e87&&_0x538e87 instanceof a[_0x206691(0x2e9)]&&this[_0x206691(0x286)](_0x538e87);}async['_setupSubUnitSync'](_0x4855da){const _0x52888c=_0x4b8fc7;await this[_0x52888c(0x2e1)](_0x4855da),_0x4855da[_0x52888c(0x275)][_0x52888c(0x266)](I['takeUntil'](this[_0x52888c(0x29f)]))[_0x52888c(0x304)](_0xd0f1be=>{const _0x4d8883=_0x52888c;_0xd0f1be&&this[_0x4d8883(0x29d)](_0xd0f1be);}),this[_0x52888c(0x345)]['urlChange$']['pipe'](I[_0x52888c(0x351)](this[_0x52888c(0x29f)]))[_0x52888c(0x304)](()=>this[_0x52888c(0x2e1)](_0x4855da));}[_0x4b8fc7(0x29d)](_0x1b37f7,_0x1c5755=!0x1){const _0x2fdaf8=_0x4b8fc7,_0x58d31b=this['_urlService'][_0x2fdaf8(0x181)](_0x2fdaf8(0x1a2));_0x1b37f7[_0x2fdaf8(0x2aa)]()!==_0x58d31b&&this[_0x2fdaf8(0x345)][_0x2fdaf8(0x246)](_0x2fdaf8(0x1a2),_0x1b37f7[_0x2fdaf8(0x2aa)](),_0x1c5755);}async['_updateSubUnitFromURLParams'](_0x4c8a81){const _0x271370=_0x4b8fc7;var _0x4276c4;const _0x11edaa=this[_0x271370(0x345)][_0x271370(0x181)](_0x271370(0x1a2));if(!_0x11edaa||!_0x4c8a81['getSheetBySheetId'](_0x11edaa)){const _0x5102dc=_0x4c8a81['getUnhiddenWorksheets']()[0x0],_0x4f9d13=_0x4c8a81[_0x271370(0x24c)](_0x5102dc);if(!_0x4f9d13)return;this[_0x271370(0x29d)](_0x4f9d13,!0x0),await this[_0x271370(0x22a)][_0x271370(0x154)](v[_0x271370(0x292)]['id'],{'unitId':_0x4c8a81['getUnitId'](),'subUnitId':_0x5102dc});return;}((_0x4276c4=_0x4c8a81[_0x271370(0x1ff)]())==null?void 0x0:_0x4276c4[_0x271370(0x2aa)]())!==_0x11edaa&&await this['_commandService'][_0x271370(0x154)](v[_0x271370(0x292)]['id'],{'unitId':_0x4c8a81[_0x271370(0x1f6)](),'subUnitId':_0x11edaa});}},exports[_0x4b8fc7(0x136)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4b8fc7(0x344)]),Y(0x2,a[_0x4b8fc7(0x25a)]),Y(0x3,a[_0x4b8fc7(0x2ee)](u[_0x4b8fc7(0xa5)])),Y(0x4,a[_0x4b8fc7(0x208)](qe['IRemoteInstanceService']))],exports[_0x4b8fc7(0x136)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x507c9a,_0x3e9a92,_0x385187,_0x5ae692)=>{const _0x28c0b3=_0x4b8fc7;for(var _0x519dd9=_0x5ae692>0x1?void 0x0:_0x5ae692?lt(_0x3e9a92,_0x385187):_0x3e9a92,_0xb41c5b=_0x507c9a[_0x28c0b3(0x34f)]-0x1,_0x2b21dd;_0xb41c5b>=0x0;_0xb41c5b--)(_0x2b21dd=_0x507c9a[_0xb41c5b])&&(_0x519dd9=_0x2b21dd(_0x519dd9)||_0x519dd9);return _0x519dd9;},De=(_0x46fd9b,_0x31ae77)=>(_0x58fd03,_0x1547ab)=>_0x31ae77(_0x58fd03,_0x1547ab,_0x46fd9b);let me=class extends a[_0x4b8fc7(0x312)]{constructor(_0x28ffe0,_0x5ca903){const _0x375f9b=_0x4b8fc7;super(),this[_0x375f9b(0x102)]=_0x28ffe0,this['_imageIoService']=_0x5ca903,this[_0x375f9b(0x16a)]();}[_0x4b8fc7(0x16a)](){const _0x1d28ca=_0x4b8fc7,_0xaa5f2=this;this[_0x1d28ca(0x350)](this[_0x1d28ca(0x102)][_0x1d28ca(0x262)]({'onBeforePasteImage':async _0x59ec7e=>{const _0x163953=_0x1d28ca,_0x4c50a1=await _0xaa5f2[_0x163953(0xf1)][_0x163953(0x162)](_0x59ec7e);return _0x4c50a1?{'source':_0x4c50a1[_0x163953(0xbc)],'imageSourceType':_0x4c50a1[_0x163953(0x82)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0x4b8fc7(0x1c4)])],me);const Ne=[_0x4b8fc7(0xdd),_0x4b8fc7(0x2cd),_0x4b8fc7(0x24d),_0x4b8fc7(0x22e),_0x4b8fc7(0x16e),_0x4b8fc7(0x28a)];class Re extends a['Disposable']{constructor(){const _0x7ed0b3=_0x4b8fc7;super(...arguments),_(this,_0x7ed0b3(0xd0),new Map()),_(this,_0x7ed0b3(0x14f),0x0);}[_0x4b8fc7(0x2a1)](_0x3ce881){const _0x13cd46=_0x4b8fc7;if(this[_0x13cd46(0xd0)][_0x13cd46(0x2e2)](_0x3ce881))return this[_0x13cd46(0xd0)][_0x13cd46(0x16d)](_0x3ce881);const _0x5dc021=Ne[this[_0x13cd46(0x14f)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Ne[_0x13cd46(0x34f)],this[_0x13cd46(0xd0)][_0x13cd46(0x272)](_0x3ce881,_0x5dc021),_0x5dc021;}}function Fe(_0xfb2a95){const _0x26ce55=_0x4b8fc7;let _0x5b0f5c='';for(const _0x3d0e8b of _0xfb2a95){const {startOffset:_0x24bfac,endOffset:_0x308eea,isActive:_0x2c55b6,rangeType:_0x1d9072,segmentId:_0x514407,segmentPage:_0x46f84f}=_0x3d0e8b;_0x5b0f5c[_0x26ce55(0x34f)]&&(_0x5b0f5c+=','),_0x5b0f5c+=_0x24bfac+':'+_0x308eea+':'+(_0x2c55b6?'1':'0')+':'+_0x1d9072+':'+_0x514407+':'+_0x46f84f;}return _0x5b0f5c;}function ht(_0x30b497){const _0x3a3238=_0x4b8fc7,_0x171a31=_0x30b497[_0x3a3238(0x1b1)](','),_0x2988a2=[];for(const _0x5e4ac9 of _0x171a31){const [_0x50c9bc,_0x119a54,_0x1357b0,_0x1c733c,_0x5be996,_0x1d7fcf]=_0x5e4ac9[_0x3a3238(0x1b1)](':');_0x2988a2[_0x3a3238(0x8d)]({'startOffset':Number(_0x50c9bc),'endOffset':Number(_0x119a54),'collapsed':_0x50c9bc===_0x119a54,'isActive':_0x1357b0==='1','rangeType':_0x1c733c===a[_0x3a3238(0x229)][_0x3a3238(0x2d6)]?a['DOC_RANGE_TYPE'][_0x3a3238(0x2d6)]:a[_0x3a3238(0x229)][_0x3a3238(0xaf)],'segmentId':typeof _0x5be996==_0x3a3238(0x31a)?String(_0x5be996):'','segmentPage':Number(_0x1d7fcf!=null?_0x1d7fcf:-0x1)});}return _0x2988a2[_0x3a3238(0x26c)](_0x17e254=>_0x17e254[_0x3a3238(0x1e0)])||(_0x2988a2[0x0][_0x3a3238(0x1e0)]=!0x0),_0x2988a2;}class be extends a[_0x4b8fc7(0x312)]{constructor(){const _0x559a7f=_0x4b8fc7;super(...arguments),_(this,_0x559a7f(0x297),new I[(_0x559a7f(0x2ad))](null)),_(this,_0x559a7f(0x9b),this['_collabCursorState$'][_0x559a7f(0x1be)]());}[_0x4b8fc7(0x294)](_0xa31030){const _0x5680e7=_0x4b8fc7,{unitID:_0x21baba,memberID:_0x1e8ab5,textRanges:_0x380d5f}=_0xa31030,_0x5ac3a2=Fe(_0x380d5f);if(_0x5ac3a2==='')return;const _0x26a1cd={'unitID':_0x21baba,'memberID':_0x1e8ab5,'selection':_0x5ac3a2};this['_collabCursorState$'][_0x5680e7(0x322)](_0x26a1cd);}}var ut=Object[_0x4b8fc7(0x288)],It=(_0x564a8b,_0x2c4a6e,_0xc77e13,_0x571d0f)=>{for(var _0x503926=_0x571d0f>0x1?void 0x0:_0x571d0f?ut(_0x2c4a6e,_0xc77e13):_0x2c4a6e,_0x2e56d1=_0x564a8b['length']-0x1,_0x51ed7e;_0x2e56d1>=0x0;_0x2e56d1--)(_0x51ed7e=_0x564a8b[_0x2e56d1])&&(_0x503926=_0x51ed7e(_0x503926)||_0x503926);return _0x503926;},U=(_0x20e1e7,_0x2d0f74)=>(_0x5564c5,_0x3c652d)=>_0x2d0f74(_0x5564c5,_0x3c652d,_0x20e1e7);const St=0x12c,dt=0x64;let ve=class extends a[_0x4b8fc7(0x312)]{constructor(_0x5d9c0a,_0x55038e,_0xb6999e,_0x4173e8,_0x21215e,_0x100fa1,_0x300589,_0x6ee177,_0x5ac546){const _0x1bf596=_0x4b8fc7;super(),_(this,_0x1bf596(0x2da),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x1bf596(0x2ad))](new Map())),_(this,_0x1bf596(0x314),this[_0x1bf596(0x287)][_0x1bf596(0x1be)]()),_(this,'_roomMembers$',new I[(_0x1bf596(0x2ad))]([])),_(this,_0x1bf596(0x132),this[_0x1bf596(0xbb)][_0x1bf596(0x266)](I[_0x1bf596(0x17c)](St))),_(this,_0x1bf596(0x22f),a[_0x1bf596(0x248)](_0x51024b=>{const _0x5a9f1b=_0x1bf596,_0x25e621={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x5a9f1b(0x10e)][_0x5a9f1b(0x2df)](),'selection':Fe(_0x51024b)}};this[_0x5a9f1b(0x10e)]['send'](_0x25e621,this[_0x5a9f1b(0x282)]);},dt)),(this[_0x1bf596(0x282)]=_0x5d9c0a,this[_0x1bf596(0x10e)]=_0x55038e,this['_injector']=_0xb6999e,this['_colorAssignService']=_0x4173e8,this[_0x1bf596(0x257)]=_0x21215e,this['_syncEditingCollabCursorService']=_0x100fa1,this[_0x1bf596(0x193)]=_0x300589,this[_0x1bf596(0x32f)]=_0x6ee177,this['_commandService']=_0x5ac546);}get[_0x4b8fc7(0xfd)](){const _0x3a21cb=_0x4b8fc7;return this[_0x3a21cb(0x287)][_0x3a21cb(0xf7)]();}get[_0x4b8fc7(0x11a)](){const _0x111d91=_0x4b8fc7;return this[_0x111d91(0xbb)]['getValue']();}[_0x4b8fc7(0x83)](){const _0x586320=_0x4b8fc7;super['dispose'](),this[_0x586320(0x287)]['next'](new Map()),this[_0x586320(0x287)][_0x586320(0x88)](),this[_0x586320(0xbb)]['next']([]),this['_roomMembers$'][_0x586320(0x88)]();}[_0x4b8fc7(0x1da)](){const _0x4aa9f0=_0x4b8fc7;this[_0x4aa9f0(0x16a)]||(this[_0x4aa9f0(0x16a)]=!0x0,this[_0x4aa9f0(0x10e)]['sessionStatus$']['pipe'](I[_0x4aa9f0(0x351)](this[_0x4aa9f0(0x29f)]))['subscribe'](_0x3a87c5=>{const _0x25d4bb=_0x4aa9f0;_0x3a87c5===u[_0x25d4bb(0x323)]['ONLINE']?this['_toggleOnline']():this[_0x25d4bb(0x9c)]();}),this[_0x4aa9f0(0x10e)][_0x4aa9f0(0x1b8)][_0x4aa9f0(0x266)](I[_0x4aa9f0(0x351)](this[_0x4aa9f0(0x29f)]))['subscribe'](_0x8ace74=>{const _0x38b3aa=_0x4aa9f0,_0x511239=_0x8ace74[_0x38b3aa(0x1ca)];_0x511239===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x38b3aa(0x15d)](_0x8ace74),_0x511239===g['CollaborationEvent'][_0x38b3aa(0x18d)]&&this['_onCursorDelete'](_0x8ace74);}),this['disposeWithMe'](this[_0x4aa9f0(0x22a)][_0x4aa9f0(0x289)](_0x234c9b=>{const _0xe5ec54=_0x4aa9f0,_0x9a0059=_0x234c9b[_0xe5ec54(0x299)];_0x9a0059!=null&&this[_0xe5ec54(0x2da)]&&_0x234c9b['id']===V['SetTextSelectionsOperation']['id']&&_0x9a0059[_0xe5ec54(0x119)]===this[_0xe5ec54(0x282)]&&_0x9a0059[_0xe5ec54(0x197)]===!0x1&&_0x9a0059[_0xe5ec54(0x87)][_0xe5ec54(0x34f)]>0x0&&this[_0xe5ec54(0x22f)](_0x9a0059[_0xe5ec54(0x87)]);})),this['_syncEditingCollabCursorService'][_0x4aa9f0(0x9b)]['pipe'](I[_0x4aa9f0(0x351)](this[_0x4aa9f0(0x29f)]))[_0x4aa9f0(0x304)](_0x49353c=>{const _0x3bc52d=_0x4aa9f0;if((_0x49353c==null?void 0x0:_0x49353c[_0x3bc52d(0x282)])!==this[_0x3bc52d(0x282)])return;const _0x40d843={'eventID':g[_0x3bc52d(0x2cb)][_0x3bc52d(0x230)],'data':_0x49353c};this[_0x3bc52d(0x15d)](_0x40d843);}),this[_0x4aa9f0(0x350)](this[_0x4aa9f0(0x22a)][_0x4aa9f0(0x289)](_0x137312=>{const _0x532597=_0x4aa9f0;if(_0x137312[_0x532597(0x299)]==null)return;const _0x2205bb=_0x137312[_0x532597(0x299)];if(_0x137312['id']!==V['RichTextEditingMutation']['id']||_0x2205bb[_0x532597(0x119)]!==this[_0x532597(0x282)])return;const _0x59c65c={'id':_0x532597(0x2e8),'params':_0x2205bb},_0x3f80d1=this[_0x532597(0xfd)];for(const [_0x5a15fe,_0x588fd5]of _0x3f80d1){const _0x193717={'id':_0x532597(0x2e8),'params':{'unitId':this[_0x532597(0x282)],'actions':null,'textRanges':_0x588fd5[_0x532597(0x87)]}},_0xd731ad=this[_0x532597(0x193)][_0x532597(0x80)](_0x59c65c,_0x193717,!0x1);if(g[_0x532597(0x185)](_0xd731ad))throw _0xd731ad[_0x532597(0x1e1)];_0x3f80d1[_0x532597(0x272)](_0x5a15fe,{..._0x588fd5,'ranges':_0xd731ad[_0x532597(0x348)][_0x532597(0x299)]['textRanges']});}queueMicrotask(()=>{const _0x1d8c2c=_0x532597;this['_cursorInfo$'][_0x1d8c2c(0x322)](_0x3f80d1);});})));}['_onCursorUpdate'](_0x2f445f){const _0x21b64a=_0x4b8fc7;var _0x2dca11,_0x12116e;const {memberID:_0x14e341,selection:_0x5f1fa6}=_0x2f445f[_0x21b64a(0x342)],_0x6b5cda=ht(_0x5f1fa6),_0x17d6fc=(_0x12116e=(_0x2dca11=this['_memberService'][_0x21b64a(0x1a8)](this['unitID'],_0x14e341))==null?void 0x0:_0x2dca11[_0x21b64a(0x31f)])!=null?_0x12116e:_0x21b64a(0x231),_0x1d74db={'color':this[_0x21b64a(0xb3)][_0x21b64a(0x2a1)](_0x14e341),'name':_0x17d6fc,'ranges':_0x6b5cda},_0x5a67ba=this[_0x21b64a(0xfd)];_0x5a67ba['set'](_0x14e341,_0x1d74db),this['_cursorInfo$']['next'](_0x5a67ba);}[_0x4b8fc7(0x2bc)](_0x559a83){const _0x5e9537=_0x4b8fc7,{memberID:_0x16e9ac}=_0x559a83[_0x5e9537(0x342)],_0x4e8081=this['cursorInfo'];_0x4e8081[_0x5e9537(0x224)](_0x16e9ac),this['_cursorInfo$'][_0x5e9537(0x322)](_0x4e8081);}[_0x4b8fc7(0x169)](){const _0x1b0bd6=_0x4b8fc7;var _0x46d68d;if(this[_0x1b0bd6(0x2da)]=!0x0,((_0x46d68d=this[_0x1b0bd6(0x32f)][_0x1b0bd6(0x151)]())==null?void 0x0:_0x46d68d[_0x1b0bd6(0x1f6)]())!==this[_0x1b0bd6(0x282)])return;const _0x42dc60=this[_0x1b0bd6(0x1a4)][_0x1b0bd6(0x16d)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x1b0bd6(0x2ab)](_0x42dc60)&&_0x42dc60[_0x1b0bd6(0x34f)]>0x0&&this[_0x1b0bd6(0x22f)](_0x42dc60);}[_0x4b8fc7(0x9c)](){const _0x4a0dff=_0x4b8fc7;this[_0x4a0dff(0x2da)]=!0x1;}};ve=It([U(0x2,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x4b8fc7(0x2ee)](u[_0x4b8fc7(0x20b)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x4b8fc7(0x1af)]),U(0x7,a[_0x4b8fc7(0xec)]),U(0x8,a[_0x4b8fc7(0x25a)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x10e408,_0x3c7707,_0x1373a6,_0x763e84)=>{for(var _0x5233d9=_0x763e84>0x1?void 0x0:_0x763e84?ft(_0x3c7707,_0x1373a6):_0x3c7707,_0x4b644c=_0x10e408['length']-0x1,_0x541d7b;_0x4b644c>=0x0;_0x4b644c--)(_0x541d7b=_0x10e408[_0x4b644c])&&(_0x5233d9=_0x541d7b(_0x5233d9)||_0x5233d9);return _0x5233d9;},w=(_0x357d17,_0x5301f2)=>(_0x21f8bc,_0x507c2a)=>_0x5301f2(_0x21f8bc,_0x507c2a,_0x357d17);const vt=0x12c,gt=0x64,Et=()=>{let _0x1e96db=[],_0x4a89e8=!0x1;return _0x4ecbfe=>{const _0x1db108=_0x3f9c;_0x1e96db[_0x1db108(0x8d)](_0x4ecbfe),_0x4a89e8||(_0x4a89e8=!0x0,setTimeout(()=>{const _0x543be3=_0x1db108;_0x1e96db[_0x543be3(0x7d)](_0xdb837a=>_0xdb837a()),_0x1e96db=[],_0x4a89e8=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x1a19bf,_0x80d7c7,_0x46c338,_0x18c752,_0x218ba6,_0x89c85d,_0x4ad2ab,_0x2f504d){const _0x89cb28=_0x4b8fc7;super(),_(this,_0x89cb28(0x2da),!0x1),_(this,_0x89cb28(0x16a),!0x1),_(this,_0x89cb28(0x287),new I[(_0x89cb28(0x2ad))](new Map())),_(this,_0x89cb28(0x314),this['_cursorInfo$'][_0x89cb28(0x1be)]()),_(this,_0x89cb28(0xbb),new I['BehaviorSubject']([])),_(this,'roomMembers$',this[_0x89cb28(0xbb)][_0x89cb28(0x266)](I[_0x89cb28(0x17c)](vt))),_(this,_0x89cb28(0x22f),a[_0x89cb28(0x248)]((_0x7cb332,_0x22ca37)=>{const _0x216255=_0x89cb28,_0x505f2c={'eventID':g['CollaborationEvent'][_0x216255(0x230)],'data':{'unitID':this[_0x216255(0x282)],'memberID':this[_0x216255(0x10e)][_0x216255(0x2df)](),'selection':B[_0x216255(0xcc)](_0x7cb332,_0x22ca37[_0x216255(0x9e)])}};this[_0x216255(0x10e)][_0x216255(0x2ae)](_0x505f2c,this[_0x216255(0x282)]);},gt)),(this[_0x89cb28(0x282)]=_0x1a19bf,this['_session']=_0x80d7c7,this[_0x89cb28(0x1a4)]=_0x46c338,this['_colorAssignService']=_0x18c752,this[_0x89cb28(0x257)]=_0x218ba6,this[_0x89cb28(0x32f)]=_0x89c85d,this['_commandService']=_0x4ad2ab,this[_0x89cb28(0x261)]=_0x2f504d);}get[_0x4b8fc7(0xfd)](){const _0x351a97=_0x4b8fc7;return this[_0x351a97(0x287)][_0x351a97(0xf7)]();}get[_0x4b8fc7(0x11a)](){const _0x519bb5=_0x4b8fc7;return this['_roomMembers$'][_0x519bb5(0xf7)]();}[_0x4b8fc7(0x83)](){const _0x4d6dcb=_0x4b8fc7;super[_0x4d6dcb(0x83)](),this[_0x4d6dcb(0x287)]['next'](new Map()),this[_0x4d6dcb(0x287)]['complete'](),this[_0x4d6dcb(0xbb)][_0x4d6dcb(0x322)]([]),this[_0x4d6dcb(0xbb)][_0x4d6dcb(0x88)]();}[_0x4b8fc7(0x1da)](){const _0x20cd19=_0x4b8fc7;this[_0x20cd19(0x16a)]||(this[_0x20cd19(0x16a)]=!0x0,this['_session'][_0x20cd19(0x27e)][_0x20cd19(0x266)](I[_0x20cd19(0x351)](this[_0x20cd19(0x29f)]))['subscribe'](_0x568979=>{const _0x573482=_0x20cd19;_0x568979===u[_0x573482(0x323)][_0x573482(0x33e)]?this[_0x573482(0x169)]():this['_toggleOffline']();}),this[_0x20cd19(0x10e)][_0x20cd19(0x1b8)][_0x20cd19(0x266)](I[_0x20cd19(0x351)](this[_0x20cd19(0x29f)]))[_0x20cd19(0x304)](_0x391fd0=>{const _0x55bbaf=_0x20cd19,_0x4a623e=_0x391fd0['eventID'];_0x4a623e===g['CollaborationEvent'][_0x55bbaf(0x230)]&&this['_onCursorUpdate'](_0x391fd0),_0x4a623e===g[_0x55bbaf(0x2cb)]['USERS_LEAVE']&&this[_0x55bbaf(0x2bc)](_0x391fd0);}),this[_0x20cd19(0x319)](),this[_0x20cd19(0x350)](this[_0x20cd19(0x22a)][_0x20cd19(0x289)](_0x44551f=>{const _0x231bd5=_0x20cd19;if(this[_0x231bd5(0x2da)]&&_0x44551f['id']===v[_0x231bd5(0x1d0)]['id']&&_0x44551f['params'][_0x231bd5(0x119)]===this[_0x231bd5(0x282)]){const _0x38cafb=_0x44551f[_0x231bd5(0x299)];this[_0x231bd5(0x22f)](_0x38cafb[_0x231bd5(0x338)],_0x38cafb[_0x231bd5(0xce)][0x0]);}})));}[_0x4b8fc7(0x15d)](_0x231ae3){const _0x7978e2=_0x4b8fc7;var _0x2afa5f,_0x4531bf;const {memberID:_0x307ee1,selection:_0x1175a3}=_0x231ae3[_0x7978e2(0x342)],{sheetName:_0x29fc3c,range:_0x2fff19}=B[_0x7978e2(0x1d4)](_0x1175a3),_0x387410={'name':(_0x4531bf=(_0x2afa5f=this['_memberService']['getMember'](this[_0x7978e2(0x282)],_0x307ee1))==null?void 0x0:_0x2afa5f[_0x7978e2(0x31f)])!=null?_0x4531bf:_0x7978e2(0x231),'range':this[_0x7978e2(0x1d2)](_0x29fc3c,_0x2fff19),'sheetID':_0x29fc3c,'color':this[_0x7978e2(0xb3)][_0x7978e2(0x2a1)](_0x307ee1),'selection':_0x1175a3},_0x4d83c2=this[_0x7978e2(0xfd)];_0x4d83c2[_0x7978e2(0x272)](_0x307ee1,_0x387410),this[_0x7978e2(0x287)][_0x7978e2(0x322)](_0x4d83c2);}[_0x4b8fc7(0x2bc)](_0x2ec088){const _0x2f5f26=_0x4b8fc7,{memberID:_0xbf9128}=_0x2ec088[_0x2f5f26(0x342)],_0xec12b4=this[_0x2f5f26(0xfd)];_0xec12b4[_0x2f5f26(0x224)](_0xbf9128),this[_0x2f5f26(0x287)][_0x2f5f26(0x322)](_0xec12b4);}['_getMergeRange'](_0xc6eef,_0x2c24a8){const _0x4bdb94=_0x4b8fc7;var _0x4f447d,_0x3a5124;const _0x489144=(_0x3a5124=(_0x4f447d=this['_univerInstanceService'][_0x4bdb94(0x2f3)](this[_0x4bdb94(0x282)]))==null?void 0x0:_0x4f447d[_0x4bdb94(0x24c)](_0xc6eef))==null?void 0x0:_0x3a5124[_0x4bdb94(0xc5)]();return(_0x489144==null?void 0x0:_0x489144[_0x4bdb94(0x1e9)](_0x483f24=>a[_0x4bdb94(0x165)][_0x4bdb94(0x215)](_0x483f24,_0x2c24a8)))||_0x2c24a8;}[_0x4b8fc7(0x319)](){const _0x5df311=_0x4b8fc7,_0xe933a6=new a[(_0x5df311(0x190))](),_0x5dc64d=Et(),_0x2199fe=()=>{const _0x28bed9=_0x5df311;_0xe933a6[_0x28bed9(0x83)]();const _0x5211b5=(_0x599537,_0x1d42d5,_0x358b39,_0x55f29f)=>{const _0x2ffe3b=_0x28bed9;let _0x5725a3=[];switch(_0x599537['id']){case v[_0x2ffe3b(0x2fd)][_0x2ffe3b(0x207)]:{_0x5725a3=v[_0x2ffe3b(0x120)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)]['DeleteRangeMoveUpCommandId']:{_0x5725a3=v[_0x2ffe3b(0x1cf)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)][_0x2ffe3b(0x8e)]:{_0x5725a3=v[_0x2ffe3b(0x23e)](_0x599537,_0x55f29f);break;}case v['EffectRefRangId'][_0x2ffe3b(0x12b)]:{_0x5725a3=v[_0x2ffe3b(0x2c9)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)]['InsertRangeMoveRightCommandId']:{_0x5725a3=v[_0x2ffe3b(0x24f)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)][_0x2ffe3b(0x34e)]:{_0x5725a3=v[_0x2ffe3b(0x1c0)](_0x599537,_0x55f29f);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x5725a3=v[_0x2ffe3b(0x175)](_0x599537,_0x55f29f);break;}case v['EffectRefRangId'][_0x2ffe3b(0x14d)]:{_0x5725a3=v[_0x2ffe3b(0x29a)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)][_0x2ffe3b(0x2fa)]:{_0x5725a3=v['handleIRemoveRow'](_0x599537,_0x55f29f);break;}}const _0x1557a3=v[_0x2ffe3b(0x209)](_0x5725a3,_0x55f29f),_0x2e92b7=this[_0x2ffe3b(0xfd)][_0x2ffe3b(0x16d)](_0x1d42d5);if(_0x2e92b7&&_0x1557a3){const _0x217575={..._0x2e92b7,'range':_0x1557a3};this[_0x2ffe3b(0xfd)][_0x2ffe3b(0x272)](_0x1d42d5,_0x217575),_0x5dc64d(()=>{const _0x621812=_0x2ffe3b,_0x285b1f=this[_0x621812(0x261)][_0x621812(0x2ac)](_0x1557a3,_0x37535b=>(_0x285b1f[_0x621812(0x83)](),_0x5211b5(_0x37535b,_0x1d42d5,_0x358b39,_0x1557a3)));_0xe933a6[_0x621812(0x219)](_0x285b1f);});}return{'redos':[],'undos':[]};};this[_0x28bed9(0xfd)][_0x28bed9(0x7d)]((_0x263e3f,_0x469243)=>{const _0x10ff0e=_0x28bed9,{range:_0x1e5b90,sheetID:_0x2f91c9}=_0x263e3f,_0x10f957=this['_refRangeService'][_0x10ff0e(0x2ac)](_0x1e5b90,_0x1dbc2b=>(_0x10f957[_0x10ff0e(0x83)](),_0x5211b5(_0x1dbc2b,_0x469243,_0x2f91c9,_0x1e5b90)));_0xe933a6[_0x10ff0e(0x219)](_0x10f957);});};this[_0x5df311(0x350)](a['toDisposable'](this[_0x5df311(0x287)][_0x5df311(0x304)](()=>{_0x2199fe();})));}[_0x4b8fc7(0x169)](){const _0x57cf89=_0x4b8fc7;var _0x433eca,_0x5708f4;if(this['_online']=!0x0,((_0x433eca=this[_0x57cf89(0x32f)]['getFocusedUnit']())==null?void 0x0:_0x433eca[_0x57cf89(0x1f6)]())!==this[_0x57cf89(0x282)])return;const _0x566de0=(_0x5708f4=this[_0x57cf89(0x1a4)][_0x57cf89(0x16d)](v[_0x57cf89(0x337)])['getCurrentSelections']())==null?void 0x0:_0x5708f4[0x0],_0x2bd843=this[_0x57cf89(0x32f)]['getCurrentUnitForType'](a[_0x57cf89(0x326)]['UNIVER_SHEET'])[_0x57cf89(0x1ff)]();_0x566de0&&_0x2bd843&&this[_0x57cf89(0x22f)](_0x2bd843['getSheetId'](),_0x566de0);}[_0x4b8fc7(0x9c)](){const _0x28e4da=_0x4b8fc7;this[_0x28e4da(0x2da)]=!0x1;}};ge=mt([w(0x2,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x4b8fc7(0x2ee)](u['MemberService'])),w(0x5,a[_0x4b8fc7(0xec)]),w(0x6,a[_0x4b8fc7(0x25a)]),w(0x7,a[_0x4b8fc7(0x2ee)](v[_0x4b8fc7(0x325)]))],ge);var Ct=Object[_0x4b8fc7(0x288)],Tt=(_0x93472c,_0x2beaab,_0x48f571,_0x4c16de)=>{const _0x371adf=_0x4b8fc7;for(var _0x3630bb=_0x4c16de>0x1?void 0x0:_0x4c16de?Ct(_0x2beaab,_0x48f571):_0x2beaab,_0x27308a=_0x93472c[_0x371adf(0x34f)]-0x1,_0x251de3;_0x27308a>=0x0;_0x27308a--)(_0x251de3=_0x93472c[_0x27308a])&&(_0x3630bb=_0x251de3(_0x3630bb)||_0x3630bb);return _0x3630bb;},ce=(_0x1a46ba,_0x339ce2)=>(_0xab6f18,_0xd590ed)=>_0x339ce2(_0xab6f18,_0xd590ed,_0x1a46ba);let F=class extends a[_0x4b8fc7(0x312)]{constructor(_0x580e93,_0x534361,_0x52809d){const _0x4a3c14=_0x4b8fc7;super(),_(this,_0x4a3c14(0x1f1),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x4a3c14(0x32f)]=_0x580e93,this['_injector']=_0x534361,this['_collabSessionService']=_0x52809d,this[_0x4a3c14(0x16a)]());}['dispose'](){const _0x153c2b=_0x4b8fc7;super[_0x153c2b(0x83)](),this[_0x153c2b(0x1b6)][_0x153c2b(0x88)](),this[_0x153c2b(0x1f1)][_0x153c2b(0x7d)](_0x59dc51=>_0x59dc51[_0x153c2b(0x83)]());}[_0x4b8fc7(0x128)](_0x4876fc){const _0x22235d=_0x4b8fc7;return this[_0x22235d(0x1f1)]['has'](_0x4876fc)?this[_0x22235d(0x1f1)][_0x22235d(0x16d)](_0x4876fc)[_0x22235d(0x314)]:this[_0x22235d(0x1b6)][_0x22235d(0x266)](I[_0x22235d(0x145)](_0x237ea4=>_0x237ea4['unitID']===_0x4876fc),I[_0x22235d(0x2e4)](_0x18dc5c=>_0x18dc5c[_0x22235d(0x314)]));}[_0x4b8fc7(0x16a)](){const _0x1e31e7=_0x4b8fc7;this['_univerInstanceService'][_0x1e31e7(0x2b8)](a[_0x1e31e7(0x326)][_0x1e31e7(0x1dc)])[_0x1e31e7(0x266)](I[_0x1e31e7(0x351)](this['dispose$']))[_0x1e31e7(0x304)](async _0xc49529=>{const _0x3e16e4=_0x1e31e7,_0x374422=_0xc49529[_0x3e16e4(0x1f6)](),_0x524074=await this['_startSheetCollabCursor'](_0x374422);this[_0x3e16e4(0x1b6)][_0x3e16e4(0x322)](_0x524074),this[_0x3e16e4(0x1f1)]['set'](_0x374422,_0x524074);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x1e31e7(0x326)][_0x1e31e7(0xa7)])[_0x1e31e7(0x266)](I['takeUntil'](this[_0x1e31e7(0x29f)]))[_0x1e31e7(0x266)](I[_0x1e31e7(0x145)](_0x5aad78=>!_0x5aad78[_0x1e31e7(0x1f6)]()['startsWith']('__')))[_0x1e31e7(0x304)](async _0x226ece=>{const _0x234c73=_0x1e31e7,_0xed692d=_0x226ece[_0x234c73(0x1f6)](),_0x142b51=await this['_startDocCollabCursor'](_0xed692d);this[_0x234c73(0x1b6)]['next'](_0x142b51),this[_0x234c73(0x1f1)]['set'](_0xed692d,_0x142b51);}),I[_0x1e31e7(0x239)](this[_0x1e31e7(0x32f)][_0x1e31e7(0x17e)](a[_0x1e31e7(0x326)][_0x1e31e7(0xa7)]),this[_0x1e31e7(0x32f)][_0x1e31e7(0x17e)](a[_0x1e31e7(0x326)][_0x1e31e7(0x1dc)]))[_0x1e31e7(0x266)](I[_0x1e31e7(0x351)](this[_0x1e31e7(0x29f)]))[_0x1e31e7(0x304)](_0x573721=>{const _0x29d641=_0x1e31e7,_0x3fb925=_0x573721[_0x29d641(0x1f6)](),_0x5ec566=this['_entities']['get'](_0x3fb925);_0x5ec566&&(_0x5ec566[_0x29d641(0x83)](),this[_0x29d641(0x1f1)][_0x29d641(0x224)](_0x3fb925));});}async['_startSheetCollabCursor'](_0x2d58d8){const _0x286c7c=_0x4b8fc7,_0x9d1f47=await this[_0x286c7c(0x32b)][_0x286c7c(0x15c)](_0x2d58d8),_0x4edf8f=this[_0x286c7c(0x1a4)]['createInstance'](ge,_0x2d58d8,_0x9d1f47);return _0x4edf8f[_0x286c7c(0x1da)](),_0x4edf8f;}async[_0x4b8fc7(0x81)](_0x490b8e){const _0x4157d9=_0x4b8fc7,_0x5d83f8=await this['_collabSessionService'][_0x4157d9(0x15c)](_0x490b8e),_0x2e279f=this[_0x4157d9(0x1a4)]['createInstance'](ve,_0x490b8e,_0x5d83f8);return _0x2e279f[_0x4157d9(0x1da)](),_0x2e279f;}};F=Tt([ce(0x0,a[_0x4b8fc7(0xec)]),ce(0x1,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),ce(0x2,a['Inject'](u[_0x4b8fc7(0x1b0)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x106518,_0x509b1c){const _0x3d8a8c=_0x4b8fc7;let {radius:_0x237bdc,width:_0x2f7090,height:_0x31a371}=_0x509b1c;_0x237bdc=_0x237bdc!=null?_0x237bdc:0x0,_0x2f7090=_0x2f7090!=null?_0x2f7090:0x1e,_0x31a371=_0x31a371!=null?_0x31a371:0x1e;let _0x1fd778=0x0,_0x23eca1=0x0,_0x9b9583=0x0;_0x1fd778=_0x23eca1=_0x9b9583=Math[_0x3d8a8c(0x146)](_0x237bdc,_0x2f7090/0x2,_0x31a371/0x2),_0x106518[_0x3d8a8c(0x2f0)](),_0x106518[_0x3d8a8c(0x150)](_0x1fd778,0x0),_0x106518[_0x3d8a8c(0x135)](_0x2f7090-_0x23eca1,0x0),_0x106518[_0x3d8a8c(0x1d3)](_0x2f7090-_0x23eca1,_0x23eca1,_0x23eca1,Math['PI']*0x3/0x2,0x0,!0x1),_0x106518[_0x3d8a8c(0x135)](_0x2f7090,_0x31a371-_0x9b9583),_0x106518[_0x3d8a8c(0x1d3)](_0x2f7090-_0x9b9583,_0x31a371-_0x9b9583,_0x9b9583,0x0,Math['PI']/0x2,!0x1),_0x106518[_0x3d8a8c(0x135)](0x0,_0x31a371),_0x106518[_0x3d8a8c(0x135)](0x0,_0x1fd778),_0x106518[_0x3d8a8c(0x1d3)](_0x1fd778,_0x1fd778,_0x1fd778,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x106518[_0x3d8a8c(0x7c)](),_0x509b1c[_0x3d8a8c(0x97)]&&(_0x106518[_0x3d8a8c(0x167)](),_0x106518['fillStyle']=_0x509b1c[_0x3d8a8c(0x97)],_0x509b1c['fillRule']===_0x3d8a8c(0x156)?_0x106518[_0x3d8a8c(0x97)](_0x3d8a8c(0x156)):_0x106518[_0x3d8a8c(0x97)](),_0x106518[_0x3d8a8c(0x2a7)]());}class re extends C['Shape']{constructor(_0x2b4b82,_0x209b92){const _0x37a020=_0x4b8fc7;super(_0x2b4b82,_0x209b92),_(this,_0x37a020(0x1eb)),_(this,_0x37a020(0x1a5)),(this[_0x37a020(0x1eb)]=_0x209b92==null?void 0x0:_0x209b92['color'],this['text']=_0x209b92==null?void 0x0:_0x209b92[_0x37a020(0x1a5)]);}static[_0x4b8fc7(0xcf)](_0x15641d,_0x3af59e){const _0x314e9c=_0x4b8fc7,{text:_0x65360e,color:_0x5e714d}=_0x3af59e;_0x15641d[_0x314e9c(0x167)](),_0x15641d[_0x314e9c(0x255)]=_0x314e9c(0x15e);const _0x13dafc=_0x15641d[_0x314e9c(0x220)](_0x65360e)[_0x314e9c(0x280)],_0x13f8f3=Math[_0x314e9c(0x146)](_0x13dafc+0x2*le,Ue);Ot(_0x15641d,{'height':X,'radius':0x4,'width':_0x13f8f3,'fill':_0x5e714d}),_0x15641d[_0x314e9c(0x336)]=_0x314e9c(0x222);const _0x365832=le,_0x7a4c1e=X-pt,_0x27fa33=Ue-0x2*le;if(_0x13dafc>_0x27fa33){let _0x5e589e='',_0x2b9003=0x0;for(const _0x135d11 of _0x65360e){const _0xcc6413=_0x15641d['measureText'](_0x135d11)[_0x314e9c(0x280)];if(_0x2b9003+_0xcc6413<=_0x27fa33-_0x15641d[_0x314e9c(0x220)](_0x314e9c(0x166))[_0x314e9c(0x280)])_0x5e589e+=_0x135d11,_0x2b9003+=_0xcc6413;else{_0x5e589e+=_0x314e9c(0x166);break;}}_0x15641d['fillText'](_0x5e589e,_0x365832,_0x7a4c1e);}else _0x15641d[_0x314e9c(0x1f4)](_0x65360e,_0x365832,_0x7a4c1e);_0x15641d[_0x314e9c(0x2a7)]();}[_0x4b8fc7(0x199)](_0x49822a){const _0x3fe978=_0x4b8fc7;re[_0x3fe978(0xcf)](_0x49822a,this);}}const _e=_0x4b8fc7(0x147),Rt=_0x4b8fc7(0x313),bt=_0x4b8fc7(0x12e),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x4f05bd,_0x563916,_0x272e2b,_0x3633e0){const _0x592572=_0x4b8fc7;_(this,_0x592572(0x2f2),[]),_(this,_0x592572(0x24a),null),_(this,_0x592572(0xe8),null),_(this,_0x592572(0x129),null),_(this,_0x592572(0x32c),null),_(this,_0x592572(0x305),null),(this['_cursor']=_0x4f05bd,this[_0x592572(0x153)]=_0x563916,this[_0x592572(0x1c9)]=_0x272e2b,this[_0x592572(0xc6)]=_0x3633e0,this[_0x592572(0x13a)]());}set['_hover'](_0x3c804a){const _0x3d026c=_0x4b8fc7;_0x3c804a?(this[_0x3d026c(0x129)]&&this[_0x3d026c(0x129)]['hide'](),this[_0x3d026c(0xe8)]&&this[_0x3d026c(0xe8)][_0x3d026c(0x234)]()):(this['_anchorDot']&&this[_0x3d026c(0x129)]['show'](),this[_0x3d026c(0xe8)]&&this[_0x3d026c(0xe8)][_0x3d026c(0x161)]());}[_0x4b8fc7(0x83)](){const _0xd8bc76=_0x4b8fc7;for(const _0xb64eaf of this[_0xd8bc76(0x2f2)])_0xb64eaf[_0xd8bc76(0x83)]();this[_0xd8bc76(0xe8)]&&this[_0xd8bc76(0xe8)][_0xd8bc76(0x83)](),this['_anchorDot']&&this[_0xd8bc76(0x129)]['dispose'](),this[_0xd8bc76(0x24a)]&&this[_0xd8bc76(0x24a)][_0xd8bc76(0x83)](),this[_0xd8bc76(0x305)]&&this[_0xd8bc76(0x305)]();}[_0x4b8fc7(0x13a)](){const _0x39de84=_0x4b8fc7;var _0x385d4c;const {_docSkeleton:_0x13d2c9,_document:_0x358299}=this,{color:_0x3dbf8f,name:_0x1298e5,ranges:_0xe21a5e}=this[_0x39de84(0xac)],_0x14d2e4=_0x358299[_0x39de84(0x2ef)](),{docsLeft:_0x536da9,docsTop:_0x89857f}=_0x14d2e4,_0x8803d2=new T[(_0x39de84(0xd8))](_0x14d2e4,_0x13d2c9);for(const {startOffset:_0x33a2b5,endOffset:_0x420140,rangeType:_0x2aaa8e,segmentId:_0x52a6ba,segmentPage:_0x1ed79d,collapsed:_0x583587,isActive:_0x3c5fc8}of _0xe21a5e){const _0x2a589b=_0x13d2c9[_0x39de84(0x228)](_0x33a2b5,!0x0,_0x52a6ba,_0x1ed79d);let _0x5c170f=_0x13d2c9['findNodePositionByCharIndex'](_0x420140,!0x0,_0x52a6ba,_0x1ed79d);if(_0x5c170f==null&&(_0x5c170f=_0x13d2c9['findNodePositionByCharIndex'](_0x420140-0x1,!0x1,_0x52a6ba,_0x1ed79d)),_0x3c5fc8){const {contentBoxPointGroup:_0x42de46}=_0x8803d2[_0x39de84(0x1a9)](_0x5c170f,_0x5c170f);if(_0x42de46['length']===0x0)continue;this[_0x39de84(0x20f)](_0x3dbf8f,_0x42de46,_0x536da9,_0x89857f,_0x1298e5),this[_0x39de84(0x305)]=this['_handleHover']();}if(_0x2a589b&&_0x5c170f){if(_0x2aaa8e===a[_0x39de84(0x229)]['RECT']){const _0x2efba3=new T[(_0x39de84(0x341))](_0x14d2e4,_0x13d2c9),{pointGroup:_0x355657}=(_0x385d4c=_0x2efba3[_0x39de84(0x1a9)](_0x2a589b,_0x5c170f))!=null?_0x385d4c:{};if(_0x355657==null||_0x355657[_0x39de84(0x34f)]===0x0)continue;this[_0x39de84(0x1e6)](_0x3dbf8f,_0x355657,_0x536da9,_0x89857f);}else{if(!_0x583587){const {borderBoxPointGroup:_0x59fe6d}=_0x8803d2[_0x39de84(0x1a9)](_0x2a589b,_0x5c170f);if(_0x59fe6d['length']===0x0)continue;this[_0x39de84(0x1fa)](_0x3dbf8f,_0x59fe6d,_0x536da9,_0x89857f);}}}}}['_drawAnchor'](_0xfa460c,_0x424426,_0xe32a4f,_0x29faaa,_0x2ea431){const _0x3b6722=_0x4b8fc7,_0x2c5e04=this[_0x3b6722(0xdb)](_0x424426),{left:_0x26ac02,top:_0x2c2fdf,height:_0x4ed4f0}=_0x2c5e04,_0x1a2f38=this[_0x3b6722(0x2b1)](),_0x464c48=Nt/_0x1a2f38,_0x432ba4=new C['Rect'](_e+a[_0x3b6722(0x214)](H),{'left':_0x26ac02+_0xe32a4f-_0x464c48,'top':_0x2c2fdf+_0x29faaa,'height':_0x4ed4f0,'width':Dt,'fill':_0xfa460c||C[_0x3b6722(0x170)](a[_0x3b6722(0x2b5)][_0x3b6722(0xc2)],0x0),'strokeWidth':_0x464c48,'stroke':Ut,'evented':!0x0});this[_0x3b6722(0x24a)]=_0x432ba4,this[_0x3b6722(0x153)][_0x3b6722(0xb4)](_0x432ba4,T[_0x3b6722(0x2bd)]);const _0x44fa5a=new C[(_0x3b6722(0x245))](_e+a[_0x3b6722(0x214)](H),{'left':_0x26ac02+_0xe32a4f-_0x464c48,'top':_0x2c2fdf+_0x29faaa-he/0x2,'height':he,'width':he,'fill':_0xfa460c||C[_0x3b6722(0x170)](a[_0x3b6722(0x2b5)][_0x3b6722(0xc2)],0x0),'strokeWidth':0x0,'stroke':_0xfa460c||C[_0x3b6722(0x170)](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x44fa5a,this[_0x3b6722(0x153)][_0x3b6722(0xb4)](_0x44fa5a,T['TEXT_RANGE_LAYER_INDEX']);const _0x43d800=new re(_e+a[_0x3b6722(0x214)](H),{'left':_0x26ac02+_0xe32a4f-_0x464c48,'top':_0x2c2fdf+_0x29faaa-X,'text':_0x2ea431,'color':_0xfa460c});this[_0x3b6722(0xe8)]=_0x43d800,this[_0x3b6722(0x153)][_0x3b6722(0xb4)](_0x43d800,T[_0x3b6722(0x2bd)]),this[_0x3b6722(0x308)]=!0x1;}[_0x4b8fc7(0x1dd)](){const _0x204bef=_0x4b8fc7,_0x1a46bf=this[_0x204bef(0x24a)]['onPointerEnter$'][_0x204bef(0x92)](()=>{this['_hover']=!0x0;}),_0x121818=this[_0x204bef(0x24a)][_0x204bef(0x158)][_0x204bef(0x92)](()=>{const _0x3e1691=_0x204bef;this[_0x3e1691(0x32c)]&&clearTimeout(this[_0x3e1691(0x32c)]),this[_0x3e1691(0x32c)]=setTimeout(()=>{const _0x2ec9ff=_0x3e1691;this[_0x2ec9ff(0x308)]=!0x1;},0x7d0);});return()=>{_0x1a46bf['unsubscribe'](),_0x121818['unsubscribe']();};}[_0x4b8fc7(0x1fa)](_0x3f5cb9,_0x32b872,_0x1ec6b3,_0x4d7e8c){const _0x59633e=_0x4b8fc7,_0x462295=new a['ColorKit'](_0x3f5cb9)[_0x59633e(0x1ee)](0.2)[_0x59633e(0x21a)](),_0x200235=new C['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0x32b872,'fill':_0x462295||C[_0x59633e(0x170)](a[_0x59633e(0x2b5)][_0x59633e(0xc2)],0.2),'left':_0x1ec6b3,'top':_0x4d7e8c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x59633e(0x2f2)][_0x59633e(0x8d)](_0x200235),this[_0x59633e(0x153)]['addObject'](_0x200235,T[_0x59633e(0x2bd)]);}[_0x4b8fc7(0x1e6)](_0x31c7ee,_0x3ef8b9,_0x20304a,_0x2a98cc){const _0x2ac0fb=_0x4b8fc7,_0x8ce417=new a[(_0x2ac0fb(0x32a))](_0x31c7ee)[_0x2ac0fb(0x1ee)](0.2)[_0x2ac0fb(0x21a)](),_0x20346e=new C[(_0x2ac0fb(0x1e3))](bt+a['generateRandomId'](H),{'pointsGroup':_0x3ef8b9,'fill':_0x8ce417||C[_0x2ac0fb(0x170)](a[_0x2ac0fb(0x2b5)][_0x2ac0fb(0xc2)],0.2),'left':_0x20304a,'top':_0x2a98cc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2ac0fb(0x2f2)][_0x2ac0fb(0x8d)](_0x20346e),this[_0x2ac0fb(0x153)][_0x2ac0fb(0xb4)](_0x20346e,T[_0x2ac0fb(0x2bd)]);}[_0x4b8fc7(0xdb)](_0x1393ce){const _0xb67590=_0x1393ce[0x0],_0x3bdc74=_0xb67590[0x0],_0x4d53f3=_0xb67590[0x2],{x:_0x4a940b,y:_0x2b94a6}=_0x3bdc74,{x:_0x213589,y:_0x5cb1d7}=_0x4d53f3;return{'left':_0x4a940b,'top':_0x2b94a6,'width':_0x213589-_0x4a940b,'height':_0x5cb1d7-_0x2b94a6};}[_0x4b8fc7(0x2b1)](){const _0xe4d738=_0x4b8fc7,{scaleX:_0x55dc39,scaleY:_0x2fe28b}=this[_0xe4d738(0x153)][_0xe4d738(0xf0)]();return Math[_0xe4d738(0x14c)](_0x55dc39,_0x2fe28b);}}var Lt=Object[_0x4b8fc7(0x288)],Mt=(_0x12e759,_0x16c9da,_0x1ad45b,_0x262557)=>{const _0x516c66=_0x4b8fc7;for(var _0x517384=_0x262557>0x1?void 0x0:_0x262557?Lt(_0x16c9da,_0x1ad45b):_0x16c9da,_0x202bd5=_0x12e759[_0x516c66(0x34f)]-0x1,_0x1f29da;_0x202bd5>=0x0;_0x202bd5--)(_0x1f29da=_0x12e759[_0x202bd5])&&(_0x517384=_0x1f29da(_0x517384)||_0x517384);return _0x517384;},q=(_0x15f2f7,_0x183326)=>(_0x2960db,_0x4039c2)=>_0x183326(_0x2960db,_0x4039c2,_0x15f2f7);let Ee=class extends a[_0x4b8fc7(0x312)]{constructor(_0x3f30a9,_0x138ffc,_0x395ea8,_0x52c36b,_0x184124){const _0x3c8c2b=_0x4b8fc7;super(),_(this,_0x3c8c2b(0x2c8),[]),_(this,_0x3c8c2b(0xf3),[]),(this[_0x3c8c2b(0x2d0)]=_0x3f30a9,this[_0x3c8c2b(0xa4)]=_0x138ffc,this[_0x3c8c2b(0x124)]=_0x395ea8,this[_0x3c8c2b(0x22a)]=_0x52c36b,this['_themeService']=_0x184124,this[_0x3c8c2b(0x16a)]());}['_init'](){const _0x5835f9=_0x4b8fc7,_0x5eaa99=this[_0x5835f9(0x2d0)]['unitId'],_0x14842f=this[_0x5835f9(0xa4)];this[_0x5835f9(0x350)](I[_0x5835f9(0x94)]([this[_0x5835f9(0x124)][_0x5835f9(0x128)](_0x5eaa99),this[_0x5835f9(0x278)][_0x5835f9(0x1b4)]])['pipe']($[_0x5835f9(0x13b)](([_0x368c6d,_0x582d6e])=>({'skeleton':_0x14842f[_0x5835f9(0x110)](),'cursors':[..._0x368c6d[_0x5835f9(0x33a)]()][_0x5835f9(0x20e)](_0x2d1da3=>({..._0x2d1da3,'color':this['_themeService'][_0x5835f9(0x1d7)](_0x2d1da3[_0x5835f9(0x1eb)])}))})))[_0x5835f9(0x304)](_0x5dff14=>{const _0x1d471b=_0x5835f9;if(this['_removeCollabCursors'](),_0x5dff14){const {skeleton:_0x4b589e,cursors:_0x5070df}=_0x5dff14;this[_0x1d471b(0x1df)](_0x4b589e,_0x5070df);}})),this[_0x5835f9(0x7f)](),this[_0x5835f9(0x20d)]();}[_0x4b8fc7(0x1df)](_0x2d42cd,_0x1ed724){const _0x358cb8=_0x4b8fc7,{scene:_0x109e7f,mainComponent:_0x52a7ad}=this[_0x358cb8(0x2d0)],_0x52ecce=_0x1ed724[_0x358cb8(0x13b)](_0x5df4ad=>new Le(_0x5df4ad,_0x109e7f,_0x2d42cd,_0x52a7ad));this['_cursorShapes']=_0x52ecce,this[_0x358cb8(0xf3)]=_0x1ed724;}[_0x4b8fc7(0x21c)](){const _0x13d37d=_0x4b8fc7;this['_removeCollabCursors']();const {scene:_0x2d922d,mainComponent:_0x499ee0}=this['_context'],_0x1f39b=this[_0x13d37d(0xa4)][_0x13d37d(0x110)](),_0x23debb=this[_0x13d37d(0xf3)][_0x13d37d(0x13b)](_0x5945c1=>new Le(_0x5945c1,_0x2d922d,_0x1f39b,_0x499ee0));this[_0x13d37d(0x2c8)]=_0x23debb;}[_0x4b8fc7(0x13e)](){const _0x4f37fe=_0x4b8fc7;this['_cursorShapes'][_0x4f37fe(0x7d)](_0x3ae63b=>_0x3ae63b[_0x4f37fe(0x83)]()),this[_0x4f37fe(0x2c8)]=[];}['_initCommandExecutedListener'](){const _0xd1b98e=_0x4b8fc7,_0x286d98=[T['SetDocZoomRatioOperation']['id']];this[_0xd1b98e(0x350)](this[_0xd1b98e(0x22a)][_0xd1b98e(0x289)](_0x1e7868=>{const _0x465184=_0xd1b98e;_0x286d98[_0x465184(0x16f)](_0x1e7868['id'])&&_0x1e7868['params'][_0x465184(0x119)]===this[_0x465184(0x2d0)][_0x465184(0x119)]&&this[_0x465184(0x21c)]();}));}[_0x4b8fc7(0x7f)](){const _0x5469cd=_0x4b8fc7;this[_0x5469cd(0x350)](a['fromEventSubject'](this[_0x5469cd(0x2d0)][_0x5469cd(0x1ba)][_0x5469cd(0x198)])['pipe']($[_0x5469cd(0x145)](_0x3059e7=>_0x3059e7['type']===C[_0x5469cd(0x155)][_0x5469cd(0x85)]),$[_0x5469cd(0x122)](0x10))[_0x5469cd(0x304)](()=>{const _0x1c9861=_0x5469cd;this[_0x1c9861(0x21c)]();}));}};Ee=Mt([q(0x1,a[_0x4b8fc7(0x2ee)](V[_0x4b8fc7(0x1b9)])),q(0x2,a[_0x4b8fc7(0x2ee)](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1f9)]))],Ee);function _0x2abb(){const _0x42d881=['_collaborationController','INVITE_CODE_HAS_BEEN_UES','EMAIL_HAS_BEEN_BOUND','Rect','setParam','onStarting','debounce','sheetId','_anchor','UniverIcon','getSheetBySheetId','green.600','setTimeout','handleInsertRangeMoveRight','_uploadLog','ENTITLE_CHAT_LIMIT_EXCEED','ISnapshotServerService','colorChannel1','ENTITLE_REPORT_LIMIT_EXCEED','font','_initUserListener','_memberService','_renderManagerService','post','ICommandService','dirtyRanges','join','totalFormulasToCalculate','_clearPolling','_initCommandInterceptor','SUCCESS','_refRangeService','addClipboardHook','selection','_clearOtherTimers','SheetCollabCursorShape','pipe','deepClone','exhaustSavingTask','1304ZBVdaV','then','APPLY_REVISION_CONFILICT','some','setStateCache','_checkCalculationAvailable','DocCollaborationEntity','_notificationService','/universer-api/frontend/logs','set','on-line-icon','runId','activeSheet$','permission.title','whenReady','_themeService','_saveCache','formula.calculation.waiting','CLOSE_ROOM','12972FGGxPg','loadOfflineData','sessionStatus$','ACTIVE_UNIT_EVENT_CHANNEL','width','_instanceService','unitID','34705LTfnqS','_logService','removeEventListener','_setupSubUnitSync','_cursorInfo$','getOwnPropertyDescriptor','onCommandExecuted','yellow.400','startRow','ENTITLE_INSUFFICIENT_QUOTA','VIEW_MAIN','disableLocalCache','addEventListener','univerjs-icon\x20univerjs-icon-','startColumn','SetWorksheetActivateCommand','PAYMENT_CHANNEL_NOT_SUPPORT','syncEditingCollabCursor','0\x200\x2016\x2016','getRenderById','_collabCursorState$','getCellMatrix','params','handleIRemoveCol','AWAITING_WITH_PENDING','_transformHistoryAndStateStack','_updateURLWithCurrentState','966mSjmcI','dispose$','LocaleService','assignAColorForMemberID','forwardRef','Tools','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','createElement','_checkAndWaitForCalculationPermission','restore','memberID','ENTITLE_DUP_SUBSCRIPTION','getSheetId','isArray','registerRefRange','BehaviorSubject','send','WebSocketService','IConfigService','_getScale','_range','ENSURE_SNAPSHOT_EXECUTION','toDisposable','COLORS','INVITE_CODE_REQUIRED','stack','getTypeOfUnitAdded$','ENTITLE_NEED_BILLING_ADDRESS','UNAUTHENTICATED','REDEMPTION_CODE_INACTIVE','_onCursorDelete','TEXT_RANGE_LAYER_INDEX','_heartbeatTimer','idSuffix','_applyCommand','YUUMI_UNABLE_LOAD_URL','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','type','result','getUnitStatus$','SetFormulaCalculationStartMutation','Error','_cursorShapes','handleInsertRangeMoveDown','transformSelections','CollaborationEvent','SNAPSHOT_INVALID_SNAPSHOT','jiqing.500','attrs','_hasFormulaInDirtyRanges','_context','SOCKET_FAILED','_hovered','WECHAT_HAS_BEEN_BOUND','_docStateChangeManagerService','REDEMPTION_CODE_NOT_STARTED','TEXT','getVpScrollXYInfoByPosToVp','transformIMECache','ALREADY_EXISTS','_online','SheetSkeletonManagerService','IBeforeCloseService','current','redoState','getMemberID','limitInfo','_updateSubUnitFromURLParams','has','REDEMPTION_CODE_HAS_BEEN_CREATED','switchMap','all','[CollaborationDataLoaderController]','APPLY_DUPLICATED','doc.mutation.rich-text-editing','Workbook','onMouseMove','EMAIL_VERIFY_CODE_MISMATCH','CONNECTOR_DATA_TOO_LARGE','docStateChange$','Inject','getOffsetConfig','beginPath','currentSkeleton$','_shapes','getUniverSheetInstance','permission.content','DocSelectionManagerService','enableFrontendLog','WebBrowserSingleActiveUnitService','univer-flex\x20univer-items-center','path','RemoveRowCommandId','_getFormulaLimitStatus','_configService','EffectRefRangId','history','_unitOnClients','collabStatus.conflict','LICENSE_MAX_UNITS_EXCEEDED','_localCacheService','unload','subscribe','_eventUnsubscribe','currentUsage','_initEvent','_hover','_handleLeaveEvent','FETCH_MISS','debug','useCallback','_config','Plugin','getRelativeToViewportCoord','hovered','getActiveRange','RxDisposable','collab-text-range-','cursorInfo$','_scheduleHeartbeat','onRendered','collabStatus.fetchMiss','_setupBeforeClosingHandler','_onRefRangeChange','string','div','YUUMI_URL_COL_OUT_OF_RANGE','jsx','getformulaLimitStatusUrl','name','toString','Loading','next','SessionStatus','M0\x200H16V16H0z','RefRangeService','UniverInstanceType','RemoteUniscriptService','collabStatus.offline','colno','ColorKit','_collabSessionService','_hideTimer','code','START_CALCULATION','_univerInstanceService','UNRECOGNIZED','location','INVALID_ARGUMENT','getConfig','_id','replaceState','fillStyle','SheetsSelectionsService','subUnitId','LOCAL_CACHE_INTERVAL_KEY','values','collabStatus.notCollab','svg','OTHER_CLIENTS_EDITING','ONLINE','reconnect','FormulaExecuteStageType','NodePositionConvertToRectRange','data','bottom','ILogService','_urlService','_initUnhandledRejectionListener','editingUnit','m2Prime','1341320tucnmw','_send','_httpService','APPLY_PERMISSION_DENIED','use','InsertRowCommandId','length','disposeWithMe','takeUntil','FromArray','_collaborationUIEventService','collaboration-client-ui.config','defs','clsx','closePath','forEach','getCurrentRevOfUnit','_initResize','transformMutation','_startDocCollabCursor','imageSourceType','dispose','WebURLService','resize','endColumn','ranges','complete','[Unhandled\x20Rejection]:\x20','urlChange$','actions','583148ALdEVQ','push','InsertColCommandId','UnitStatus','useDependency','PERMISSION_DENIED','subscribeEvent','_docTransformIMECacheService','combineLatest','_getSheetObject','_monkeyPatchLogService','fill','_saveTaskMap','popstate','getCellPositionByOffset','collabCursorState$','_toggleOffline','26642EZRgWN','range','getUndoRedoMutationParamsCache','transformByState','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_backgroundColor','OFFLINE','_docSkeletonManagerService','DataLoaderService','LOGIN_FAILED','UNIVER_DOC','parseInt','url(#$1','application/json','undoState','_cursor','_lastResponseTimestamp','Success','RECT','setShapeProps','LOCAL_CACHE_INTERVAL','HTTPService','_colorAssignService','addObject','INTERNAL_ERROR','replace','CHANGESET_REVISION_CONFILICT','_registerRenderDependencies','AWAITING','ENTITLE_INVALID_COUPON_CODE','_roomMembers$','source','_name','_disabled','disposeUnit','key','_maxFormulaLimit','black','random','LICENSE_EXPORT_SIZE_EXCEEDED','getMergeData','_document','_lastPointer','LICENSE_DISTRO_REJECTED','_currentUsage','/run/','YUUMI_ASYNCIO_CANCELLED','serializeRangeWithSheet','?taskId=','selections','drawWith','_assignedColors','DocStateChangeManagerService','UniverCollaborationClientPlugin','transformStateCache','_color','stageInfo','_initWindowErrorListener','Warning','NodePositionConvertToCursor','collaboration.closeRoom','isFormulaString','_getAnchorBounding','useRef','purple.300','uni.network.url-service','labelPosition','ERROR_AGAIN','getCurrent','_initStatusListener','mutations','getItem','DEFAULT_WS_SESSION_TICKET_URL','YUUMI_RATE_OVER_LIMIT','DocIMEInputManagerService','_textBubble','saveTaskMap','/universer-api/license/formula/limit/status','connectInjector','IUniverInstanceService','round','_registerDependencies','_scheduleClearOtherTimer','getAncestorScale','_imageIoService','DesktopCollaborationStatusDisplayController','_cursors','registerDependencies','getUnit','_handleEvent','getValue','runOnServer','[RemoteUniscriptService]:\x20no\x20focused\x20unit','Shape','99pJNnnb','xlink:href','cursorInfo','REDEMPTION_INVALID_CODE','DATA_SOURCE_TOO_LARGE','_beforeCloseService','Failed','_docClipboardService','UniverCollaborationClientUIPlugin','getSheetObject','_getSaveTimeout','session.collaboration-timeout','_sheetSkeletonManagerService','symbol','updateOfflineData','NOT_COLLAB','fromEvent','entityInit$','column','_session','mergeOverrideWithDependencies','getSkeleton','href','bind','textRanges','_createSocketURL','collabStatus.syncing','http://www.w3.org/2000/svg','_unitStatus','HEADER_MENU','unitId','roomMembers','_doCreateSocket','[LogService\x20Error]:\x20','trim','ILocalCacheService','INVALID_INVITE_CODE','handleDeleteRangeMoveLeft','translate(.97)','throttleTime','defIds','_collabCursorController','off-line-icon','from','IRenderManagerService','getCollabCursors$','_anchorDot','_taskIds','InsertRangeMoveDownCommandId','saveOfflineData','SUBMIT_CHANGESET_TIMEOUT','collab-rect-range-','transformRemoteChangeset','_dataLoaderService','distinctUntilChanged','roomMembers$','MOBILE_VERIFY_CODE_MISMATCH','onLocalMutation','lineTo','CollaborationDataLoaderController','body','COMPLETION_FINISHED','onPointerMove$','_render','map','stringify','substring','_removeCollabCursors','CollaborationUIEventService','url(#on-line-icon_clip0_910_349)','_initStatusComponent','skeleton','currentColor','startFormulaLimitUrl','filter','min','collab-text-anchor-','beforeCommandExecuted','INVITE_CODE_ALREADY_BOUND','YUUMI_SUBSCRIPTION_NOT_FOUND','USER_IS_ANONYMOUS','max','RemoveColCommandId','formula.calculation.unable','_colorIndex','moveTo','getFocusedUnit','_docTransformStateCacheService','_scene','executeCommand','TRANSFORM_CHANGE_OBSERVABLE_TYPE','evenodd','registerRenderModule','onPointerLeave$','_transformPreviousActiveRange','_memberID','CollaborationController','requireSession','_onCursorUpdate','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','search','collab-client.tooltip.reconnect','hide','saveImage','sessionTicket','Vector2','Rectangle','...','save','USER_NOT_INVITED_CODE','_toggleOnline','_init','getStateCache','sheetID','get','blue.400','includes','getColor','AUTHORIZE_CODE_ILLEGAL','_transformUndoRedoStack','_cachedData','loadUnit','handleMoveRange','CollaborationUIEventId','YUUMI_TABLE_NOT_FOUND_IN_UNIT','CURRENT_STATUS_CANNOT_OPERATE','_getSessionTicket','_messageService','ENTITLE_COUPON_EXPIRED','debounceTime','replaceDocRanges','getTypeOfUnitDisposed$','APPLY_NON_SEQUENTIAL_REVISION','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','getParam','univer-mr-2\x20univer-flex\x20univer-text-xl','1em','mask','isTransformMutationFailure','RevisionService','_handleJoinEvent','LOGIN_TOKEN_PROCESSING_FAILED','APPLY_REJECT','NOT_FOUND','transformMutationsWithChangeset','OnLineIcon','USERS_LEAVE','UNDEFINED','73316CpjBUp','DisposableCollection','_startCalculationLimit','clearInterval','_transformService','assign','_initEntityListener','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isEditing','onTransformChange$','_draw','entries','_selfUnitIDs','isTransformMutationsWithChangesetSuccess','0\x200\x2017\x2016','unhandledrejection','_pollingInterval','getLocalCacheKey','size','subunit','m1Prime','_injector','text','none','_labelPosition','getMember','getRangePointData','45LQrlNJ','_scheduleSaving','displayName','getCoordByCell','setInterval','ITransformService','CollaborationSessionService','split','on-line-icon_clip0_910_349','REDEMPTION_USER_NOT_ELIGIBLE','currentTheme$','MOBILE_HAS_BEEN_BOUND','_entityInit$','REDEMPTION_CODE_FULLY_REDEEMED','event$','DocSkeletonManagerService','engine','origin','newValue','/universer-api/license/formula/limit/done','asObservable','defineProperty','handleInsertRow','BrowserCollaborationSocketService','YUUMI_CONNECTOR_URL_NOT_FOUND','YUUMI_ALL_TABLES_IS_INVALID','IImageIoService','clearTimeout','with','ENTITLE_COUPON_USED_UP','executionId','_docSkeleton','eventID','setUndoRedoMutationParamsCache','Disposable','PY_RUNTIME_SCRIPT_ERROR','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','handleDeleteRangeMoveUp','SetSelectionsOperation','row','_getMergeRange','arc','deserializeRangeWithSheet','pluginName','YUUMI_NO_CUBOID_FOR_QUESTION','getColorFromTheme','unshift','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','init','CollaborationStatus','UNIVER_SHEET','_handleHover','_ensureSubject','_updateCollabCursors','isActive','error','now','RegularPolygon','Injector','MessageType','_drawRectRange','getCollabEntity$','collaboration.offline-data-not-saved','find','SNAPSHOT_HAS_BEEN_REMOVED','color','1051672lUweyh','12725ycjEeL','setAlpha','_localStorageService','endRow','_entities','FormulaExecutedStateType','top','fillText','stage','getUnitId','IUIPartsService','_handleHeartbeatEvent','ThemeService','_drawTextRange','\x20at\x20','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CommandType','_removeClearOtherTimer','getActiveSheet','_setFormulaLimitStatus','Tooltip','DependentOn','catch','YUUMI_AI_RUN_FAILED','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','_status$','DeleteRangeMoveLeftCommandId','Optional','runRefRangeMutations','IMessageService','MemberService','white','_initCommandExecutedListener','flatMap','_drawAnchor','children','toStringTag','USER_NOT_FOUND','_revisionService','generateRandomId','contains','touchDependencies','LICENSE_IMPORT_SIZE_EXCEEDED','SYNCED','add','toRgbString','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_refreshCollabCursors','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','registerBeforeClose','_docSyncEditingCollabCursorService','measureText','searchParams','#FFF','unit','delete','_docTransformSelectionsService','tag','_uiPartsService','findNodePositionByCharIndex','DOC_RANGE_TYPE','_commandService','_initDependencies','socket$','_localeService','red.300','_updateLocalCursor','UPDATE_CURSOR','Unknown\x20user','height','setConfig','show','IURLService','invokeId','setItem','collaboration.single-unit.warning','merge','ENTITLE_USE_COUPON_NOT_1ST_TRADE','parse','session.connection-failed','clipPath','handleInsertCol','getDocRanges','TOO_MANY_REQUESTS','_showGuardMessage'];_0x2abb=function(){return _0x42d881;};return _0x2abb();}const At=0x1,Pt=1.5;class je extends C[_0x4b8fc7(0xfa)]{constructor(_0x482212,_0x1b42a0){const _0x57806a=_0x4b8fc7;super(_0x482212,_0x1b42a0),_(this,_0x57806a(0xd4)),_(this,_0x57806a(0x2d2),!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0x57806a(0x1a7),_0x57806a(0x1f3)),_(this,_0x57806a(0xa2)),(_0x1b42a0&&this[_0x57806a(0xb0)](_0x1b42a0),this['onPointerEnter$'][_0x57806a(0x92)](()=>this[_0x57806a(0xb0)]({'hovered':!0x0})),this['onPointerLeave$'][_0x57806a(0x92)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x12b489){const _0x25cb42=_0x4b8fc7;var _0x3f1312,_0x385f1e,_0x43ea14,_0x46ef5d,_0x476f0d,_0x3eaa43;this['_color']=(_0x3f1312=_0x12b489[_0x25cb42(0x1eb)])!=null?_0x3f1312:this[_0x25cb42(0xd4)],this[_0x25cb42(0x2d2)]=(_0x385f1e=_0x12b489[_0x25cb42(0x310)])!=null?_0x385f1e:this[_0x25cb42(0x2d2)],this['_range']=(_0x43ea14=_0x12b489[_0x25cb42(0x9e)])!=null?_0x43ea14:this[_0x25cb42(0x2b2)],this[_0x25cb42(0xbd)]=(_0x46ef5d=_0x12b489['name'])!=null?_0x46ef5d:this[_0x25cb42(0xbd)],this[_0x25cb42(0x1a7)]=(_0x476f0d=_0x12b489[_0x25cb42(0xdf)])!=null?_0x476f0d:this[_0x25cb42(0x1a7)],this['_backgroundColor']=(_0x3eaa43=_0x12b489['backgroundColor'])!=null?_0x3eaa43:this['_backgroundColor'],this[_0x25cb42(0xa0)]({'width':_0x12b489[_0x25cb42(0x280)],'height':_0x12b489[_0x25cb42(0x232)]});}[_0x4b8fc7(0x2ea)](_0x15263c){const _0x58a6d2=_0x4b8fc7,{row:_0x1b6ad9,column:_0x32db4f}=_0x15263c;if(_0x1b6ad9>=this[_0x58a6d2(0x2b2)][_0x58a6d2(0x28b)]&&_0x1b6ad9<=this[_0x58a6d2(0x2b2)][_0x58a6d2(0x1f0)]&&_0x32db4f>=this['_range'][_0x58a6d2(0x291)]&&_0x32db4f<=this[_0x58a6d2(0x2b2)][_0x58a6d2(0x86)]){this[_0x58a6d2(0xb0)]({'hovered':!0x0});return;}this[_0x58a6d2(0xb0)]({'hovered':!0x1});}['triggerDblclick'](_0x1e7748){return!0x1;}['_draw'](_0x3a9f14){const _0x5c0c25=_0x4b8fc7;C[_0x5c0c25(0x245)][_0x5c0c25(0xcf)](_0x3a9f14,{'width':this[_0x5c0c25(0x280)],'height':this[_0x5c0c25(0x232)],'strokeWidth':Pt,'stroke':this[_0x5c0c25(0xd4)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x5c0c25(0x2d2)]&&(_0x3a9f14[_0x5c0c25(0x167)](),_0x3a9f14['transform'](0x1,0x0,0x0,0x1,this[_0x5c0c25(0x280)],this['_labelPosition']===_0x5c0c25(0x343)?0x0:-X),re[_0x5c0c25(0xcf)](_0x3a9f14,{'text':this[_0x5c0c25(0xbd)],'color':this[_0x5c0c25(0xd4)]}),_0x3a9f14['restore']());}}var wt=Object[_0x4b8fc7(0x288)],yt=(_0x271b8f,_0x4baf17,_0x8b4a36,_0x456457)=>{const _0x473682=_0x4b8fc7;for(var _0x4ecef2=_0x456457>0x1?void 0x0:_0x456457?wt(_0x4baf17,_0x8b4a36):_0x4baf17,_0x11e4b0=_0x271b8f[_0x473682(0x34f)]-0x1,_0xb26866;_0x11e4b0>=0x0;_0x11e4b0--)(_0xb26866=_0x271b8f[_0x11e4b0])&&(_0x4ecef2=_0xb26866(_0x4ecef2)||_0x4ecef2);return _0x4ecef2;},ue=(_0x673267,_0x597089)=>(_0x4bdaa8,_0x37fb8a)=>_0x597089(_0x4bdaa8,_0x37fb8a,_0x673267);function _0x3f9c(_0x197fa9,_0x4e4dab){_0x197fa9=_0x197fa9-0x7b;const _0x2abb65=_0x2abb();let _0x3f9c88=_0x2abb65[_0x197fa9];return _0x3f9c88;}const $t=0x1389;let Ce=class extends a[_0x4b8fc7(0x312)]{constructor(_0x36c070,_0xd55802,_0x576243,_0x43a439){const _0x20281b=_0x4b8fc7;super(),_(this,_0x20281b(0xf3),new Set()),_(this,'_lastPointer',null),(this[_0x20281b(0x2d0)]=_0x36c070,this['_sheetSkeletonManagerService']=_0xd55802,this[_0x20281b(0x124)]=_0x576243,this['_themeService']=_0x43a439,this[_0x20281b(0x16a)]());}['_init'](){const _0x38ca16=_0x4b8fc7;this[_0x38ca16(0x107)][_0x38ca16(0x2f1)][_0x38ca16(0x266)]($[_0x38ca16(0x351)](this[_0x38ca16(0x29f)]),$[_0x38ca16(0x2e4)](_0x132e05=>{const _0x457441=_0x38ca16;if(_0x132e05){const _0x1c9e1e=_0x132e05[_0x457441(0x249)];return I[_0x457441(0x94)](this[_0x457441(0x124)][_0x457441(0x128)](this['_context'][_0x457441(0x119)]),this[_0x457441(0x278)][_0x457441(0x1b4)])[_0x457441(0x266)]($[_0x457441(0x13b)](([_0x5275ca,_0x59517e])=>{const _0x373919=_0x457441,_0x2dfe76=new Map();return _0x5275ca[_0x373919(0x7d)]((_0x14e945,_0x286c28)=>{const _0x2b3ab4=_0x373919;if(_0x14e945[_0x2b3ab4(0x16c)]===_0x1c9e1e){const _0x5c340b={..._0x14e945};_0x5c340b[_0x2b3ab4(0x1eb)]=this[_0x2b3ab4(0x278)]['getColorFromTheme'](_0x14e945['color']),_0x2dfe76['set'](_0x286c28,_0x5c340b);}}),{'skeleton':_0x132e05,'cursors':_0x2dfe76};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x38ca16(0x304)](({skeleton:_0x211d1a,cursors:_0x100ab7})=>{const _0x37096a=_0x38ca16;this[_0x37096a(0x13e)](),_0x211d1a&&this[_0x37096a(0x1df)](_0x211d1a,_0x100ab7);}),this[_0x38ca16(0x107)][_0x38ca16(0x2f1)][_0x38ca16(0x304)](_0x3e2a45=>{const _0x5ba78b=_0x38ca16;if(_0x3e2a45==null)return;const {skeleton:_0x1742f5}=_0x3e2a45,{scene:_0x1ccbb8}=this[_0x5ba78b(0x2d0)];_0x1ccbb8[_0x5ba78b(0x139)][_0x5ba78b(0x92)](a[_0x5ba78b(0x248)](_0x526052=>{const _0x29bf28=_0x5ba78b;var _0x1559b0,_0x3723d5;const {offsetX:_0x72aa10,offsetY:_0x2861a3}=_0x526052,{x:_0x57bb75,y:_0x243453}=_0x1ccbb8[_0x29bf28(0x30f)](C['Vector2'][_0x29bf28(0x352)]([_0x72aa10,_0x2861a3])),{scaleX:_0x4166a9,scaleY:_0x371ea9}=_0x1ccbb8[_0x29bf28(0xf0)](),_0x27ab92=_0x1ccbb8['getViewport'](C['SHEET_VIEWPORT_KEY'][_0x29bf28(0x28d)]),_0x128e1d=_0x1ccbb8[_0x29bf28(0x2d7)](C[_0x29bf28(0x164)][_0x29bf28(0x352)]([_0x57bb75,_0x243453]),_0x27ab92),_0x2cd321=_0x1742f5[_0x29bf28(0x9a)](_0x72aa10,_0x2861a3,_0x4166a9,_0x371ea9,_0x128e1d);((_0x1559b0=this[_0x29bf28(0xc7)])==null?void 0x0:_0x1559b0[_0x29bf28(0x10d)])===_0x2cd321[_0x29bf28(0x10d)]&&((_0x3723d5=this[_0x29bf28(0xc7)])==null?void 0x0:_0x3723d5[_0x29bf28(0x1d1)])===_0x2cd321[_0x29bf28(0x1d1)]||this[_0x29bf28(0xf3)][_0x29bf28(0x7d)](_0x4a84a8=>{const _0x215c2e=_0x29bf28;_0x4a84a8[_0x215c2e(0x2ea)](_0x2cd321);});},0x64));});}['_updateCollabCursors'](_0x3ff953,_0x5f0a0b){const _0x4efc28=_0x4b8fc7;var _0x45827e;const _0x4da674=(_0x45827e=this[_0x4efc28(0x107)][_0x4efc28(0xe1)]())==null?void 0x0:_0x45827e[_0x4efc28(0x142)];if(!_0x4da674)return;const _0x371641=this[_0x4efc28(0x95)]();if(!_0x371641)return;this['_cursors'][_0x4efc28(0x7d)](_0x5c3b2b=>{_0x5c3b2b['makeDirty']();});const {scene:_0x20ac08}=_0x371641,_0x3d82a5=xt(Array['from'](_0x5f0a0b['values']()))['map'](_0x2b0923=>{const _0x59d609=_0x4efc28,{color:_0x4c7371,range:_0x19a7b5,name:_0x3d6fe1,selection:_0x21c097,sheetID:_0x56eab2}=_0x2b0923,{startColumn:_0x386676,startRow:_0x142e06,endColumn:_0x30d2d4,endRow:_0x58a79f}=_0x19a7b5,_0x188f59=J[_0x59d609(0x1ad)](_0x142e06,_0x386676,_0x20ac08,_0x4da674),_0x57d6ca=J[_0x59d609(0x1ad)](_0x58a79f,_0x30d2d4,_0x20ac08,_0x4da674),{columnHeaderHeightAndMarginTop:_0x44b717}=_0x4da674,{startX:_0x1c3a9d,startY:_0x1c92a2}=_0x188f59,{endX:_0x330973,endY:_0x59b6ec}=_0x57d6ca,_0x42bb37=_0x330973-_0x1c3a9d,_0x9cfc0b=_0x59b6ec-_0x1c92a2,_0x4cbbe8={'labelPosition':_0x1c92a2-_0x44b717>=X?_0x59d609(0x1f3):_0x59d609(0x343),'sheetID':_0x56eab2,'range':_0x19a7b5,'color':_0x4c7371,'name':_0x3d6fe1,'selection':_0x21c097,'left':_0x1c3a9d,'top':_0x1c92a2,'width':_0x42bb37,'height':_0x9cfc0b,'evented':!0x1,'zIndex':$t};return new je(_0x3d6fe1,_0x4cbbe8);});_0x20ac08['addObjects'](_0x3d82a5,At),this['_cursors']=new Set(_0x3d82a5);}[_0x4b8fc7(0x13e)](){const _0x1d6126=_0x4b8fc7;var _0x42f3a7;(_0x42f3a7=this['_cursors'])==null||_0x42f3a7[_0x1d6126(0x7d)](_0x4f982e=>_0x4f982e[_0x1d6126(0x83)]());}[_0x4b8fc7(0x95)](){const _0x687110=_0x4b8fc7;return J[_0x687110(0x104)](this[_0x687110(0x2d0)][_0x687110(0x223)],this[_0x687110(0x2d0)]);}};Ce=yt([ue(0x1,a[_0x4b8fc7(0x2ee)](J[_0x4b8fc7(0x2db)])),ue(0x2,a[_0x4b8fc7(0x2ee)](F)),ue(0x3,a['Inject'](a[_0x4b8fc7(0x1f9)]))],Ce);function xt(_0x30b1da){const _0xf4e748=_0x4b8fc7,_0xb0e651=new Map();return _0x30b1da[_0xf4e748(0x7d)](_0x5d8de1=>{const _0x68cea3=_0xf4e748;if(_0xb0e651[_0x68cea3(0x2e2)](_0x5d8de1[_0x68cea3(0x263)])){const _0x15b936=_0xb0e651['get'](_0x5d8de1[_0x68cea3(0x263)]);_0x15b936[_0x68cea3(0x31f)]+=',\x20'+_0x5d8de1[_0x68cea3(0x31f)];}else _0xb0e651[_0x68cea3(0x272)](_0x5d8de1['selection'],_0x5d8de1);}),Array[_0xf4e748(0x126)](_0xb0e651[_0xf4e748(0x33a)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x223105,_0x3c19d8,_0xd7b284,_0x8088aa)=>{const _0x506557=_0x4b8fc7;for(var _0x36ce95=_0x8088aa>0x1?void 0x0:_0x8088aa?Bt(_0x3c19d8,_0xd7b284):_0x3c19d8,_0x2215ba=_0x223105[_0x506557(0x34f)]-0x1,_0x2ff11d;_0x2215ba>=0x0;_0x2215ba--)(_0x2ff11d=_0x223105[_0x2215ba])&&(_0x36ce95=_0x2ff11d(_0x36ce95)||_0x36ce95);return _0x36ce95;},y=(_0xcf630,_0x19c894)=>(_0x40c655,_0x173ab0)=>_0x19c894(_0x40c655,_0x173ab0,_0xcf630);let Z=class extends a['Disposable']{constructor(_0x5e4fc5,_0x121e17,_0x273700,_0x4a0bd2,_0x40b5d4,_0x5380e4){const _0x4f4a4a=_0x4b8fc7;super(),this[_0x4f4a4a(0x100)]=_0x5e4fc5,this[_0x4f4a4a(0x302)]=_0x121e17,this['_collaborationUIEventService']=_0x273700,this[_0x4f4a4a(0x17a)]=_0x4a0bd2,this[_0x4f4a4a(0x270)]=_0x40b5d4,this[_0x4f4a4a(0x22d)]=_0x5380e4,this[_0x4f4a4a(0x318)](),this[_0x4f4a4a(0x307)]();}[_0x4b8fc7(0x318)](){const _0x343259=_0x4b8fc7;this['disposeWithMe'](this['_beforeCloseService'][_0x343259(0x21e)](()=>{const _0x10b29a=_0x343259;if(this[_0x10b29a(0x302)]['saveTaskMap'][_0x10b29a(0x1a1)])return this[_0x10b29a(0x22d)]['t'](_0x10b29a(0x1e8));}));}[_0x4b8fc7(0x307)](){const _0x270df2=_0x4b8fc7;this['disposeWithMe'](this[_0x270df2(0x353)][_0x270df2(0x1b8)][_0x270df2(0x304)](_0x134fe0=>{const _0x2e849f=_0x270df2;_0x134fe0['id']===u[_0x2e849f(0x176)]['OTHER_CLIENT_EDITING']&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p[_0x2e849f(0x1e5)]['Warning'],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0x238))}),_0x134fe0['id']===u[_0x2e849f(0x176)][_0x2e849f(0x27b)]&&this[_0x2e849f(0x17a)]['show']({'type':p[_0x2e849f(0x1e5)][_0x2e849f(0xd7)],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0xd9))}),_0x134fe0['id']===u['CollaborationUIEventId'][_0x2e849f(0x91)]&&this[_0x2e849f(0x270)][_0x2e849f(0x234)]({'title':this['_localeService']['t'](_0x2e849f(0x276)),'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0x2f4)),'type':_0x2e849f(0x1e1),'duration':0x0}),_0x134fe0['id']===u[_0x2e849f(0x176)]['CONFLICT']&&this[_0x2e849f(0x17a)]['show']({'type':p['MessageType']['Error'],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0xd9))+'('+_0x134fe0['data']+')'}),_0x134fe0['id']===u[_0x2e849f(0x176)]['JOIN_ROOM_FAILED']&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p['MessageType'][_0x2e849f(0xd7)],'content':this[_0x2e849f(0x22d)]['t'](_0x134fe0[_0x2e849f(0x342)]||'')}),_0x134fe0['id']===u[_0x2e849f(0x176)]['SOCKET_FAILED_RETRY']&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p['MessageType']['Warning'],'content':this['_localeService']['t']('session.will-retry')}),_0x134fe0['id']===u[_0x2e849f(0x176)][_0x2e849f(0x2d1)]&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p[_0x2e849f(0x1e5)]['Error'],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0x23c))}),_0x134fe0['id']===u[_0x2e849f(0x176)][_0x2e849f(0x12d)]&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p[_0x2e849f(0x1e5)][_0x2e849f(0x2c7)],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0x106))});}));}};Z=Ft([y(0x0,O[_0x4b8fc7(0x2dc)]),y(0x1,u[_0x4b8fc7(0x11e)]),y(0x2,a['Inject'](u[_0x4b8fc7(0x13f)])),y(0x3,O[_0x4b8fc7(0x20a)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x5086aa,_0x56d5b2,_0x57bbd0,_0x35ef11)=>{const _0x3ad5d0=_0x4b8fc7;for(var _0x589d24=_0x35ef11>0x1?void 0x0:_0x35ef11?jt(_0x56d5b2,_0x57bbd0):_0x56d5b2,_0x579f85=_0x5086aa[_0x3ad5d0(0x34f)]-0x1,_0x4fe5fa;_0x579f85>=0x0;_0x579f85--)(_0x4fe5fa=_0x5086aa[_0x579f85])&&(_0x589d24=_0x4fe5fa(_0x589d24)||_0x589d24);return _0x589d24;},z=(_0x2a3317,_0x48ee91)=>(_0x184a81,_0x16c37c)=>_0x48ee91(_0x184a81,_0x16c37c,_0x2a3317);let Q=class extends a['Disposable']{constructor(_0x4d5ac6,_0x4374c0,_0x3abbf4,_0x2b404e){const _0x4ca651=_0x4b8fc7;super(),_(this,_0x4ca651(0x15a)),(this['_injector']=_0x4d5ac6,this['_httpService']=_0x4374c0,this[_0x4ca651(0x284)]=_0x3abbf4,this['_collaborationSessionService']=_0x2b404e,this[_0x4ca651(0x16a)]());}[_0x4b8fc7(0x16a)](){const _0x31a5ca=_0x4b8fc7;this[_0x31a5ca(0xd6)](),this[_0x31a5ca(0x346)](),this[_0x31a5ca(0x96)](),this[_0x31a5ca(0x256)]();}[_0x4b8fc7(0x256)](){const _0x3bb3b7=_0x4b8fc7;this['disposeWithMe'](this['_collaborationSessionService'][_0x3bb3b7(0x22c)]['subscribe'](_0x2cd9fb=>{const _0x36a05b=_0x3bb3b7;this[_0x36a05b(0x15a)]=_0x2cd9fb==null?void 0x0:_0x2cd9fb[_0x36a05b(0x2a8)];}));}[_0x4b8fc7(0xd6)](){const _0x47e05f=_0x4b8fc7,_0x4bd8e7=_0x4b51a0=>{const _0x2cb700=_0x3f9c;var _0x442ae2;this[_0x2cb700(0x250)]('error','[Window\x20Error]:\x20'+_0x4b51a0['message']+_0x2cb700(0x1fb)+_0x4b51a0['filename']+':'+_0x4b51a0['lineno']+':'+_0x4b51a0[_0x2cb700(0x329)]+'\x0a'+(((_0x442ae2=_0x4b51a0[_0x2cb700(0x1e1)])==null?void 0x0:_0x442ae2[_0x2cb700(0x2b7)])||''));};window[_0x47e05f(0x28f)](_0x47e05f(0x1e1),_0x4bd8e7),this[_0x47e05f(0x350)](()=>{const _0x58d0bf=_0x47e05f;window[_0x58d0bf(0x285)](_0x58d0bf(0x1e1),_0x4bd8e7);});}['_initUnhandledRejectionListener'](){const _0x195726=_0x4b8fc7,_0x233a22=_0x44d919=>{const _0x24424f=_0x3f9c;this['_uploadLog'](_0x24424f(0x1e1),_0x24424f(0x89)+_0x44d919['reason']);};window[_0x195726(0x28f)](_0x195726(0x19e),_0x233a22),this[_0x195726(0x350)](()=>{const _0x31cd2d=_0x195726;window[_0x31cd2d(0x285)]('unhandledrejection',_0x233a22);});}[_0x4b8fc7(0x96)](){const _0x36feb5=_0x4b8fc7,_0x316642=this[_0x36feb5(0x284)][_0x36feb5(0x1e1)][_0x36feb5(0x112)](this[_0x36feb5(0x284)]);this[_0x36feb5(0x284)]['error']=(..._0x5c8598)=>{const _0x45f2d3=_0x36feb5,_0x3132ea=_0x5c8598[_0x45f2d3(0x13b)](_0x1b0f1b=>_0x1b0f1b instanceof Error?_0x1b0f1b['message']+'\x0a'+_0x1b0f1b[_0x45f2d3(0x2b7)]:String(_0x1b0f1b))[_0x45f2d3(0x25c)]('\x20');this[_0x45f2d3(0x250)](_0x45f2d3(0x1e1),_0x45f2d3(0x11c)+_0x3132ea),_0x316642(..._0x5c8598);},this[_0x36feb5(0x350)](()=>{const _0x4b98a2=_0x36feb5;this[_0x4b98a2(0x284)][_0x4b98a2(0x1e1)]=_0x316642;});}[_0x4b8fc7(0x250)](_0x354b90,_0x458f5a){const _0x1f9a8b=_0x4b8fc7;try{const _0xe3ab9d={'userId':this['_memberID'],'logLabel':_0x354b90,'content':_0x458f5a};this[_0x1f9a8b(0x34b)]['post'](_0x1f9a8b(0x271),{'body':_0xe3ab9d})[_0x1f9a8b(0x203)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4b8fc7(0x2ee)](a['Injector'])),z(0x1,a[_0x4b8fc7(0x2ee)](x[_0x4b8fc7(0xb2)])),z(0x2,a[_0x4b8fc7(0x344)]),z(0x3,a[_0x4b8fc7(0x2ee)](u[_0x4b8fc7(0x1b0)]))],Q);const Yt=_0x4b8fc7(0x354),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x400d40,_0x105096,_0x174e3f,_0x25543a)=>{const _0x379b81=_0x4b8fc7;for(var _0x8fc16b=_0x25543a>0x1?void 0x0:_0x25543a?Ht(_0x105096,_0x174e3f):_0x105096,_0x548f43=_0x400d40[_0x379b81(0x34f)]-0x1,_0x1c557a;_0x548f43>=0x0;_0x548f43--)(_0x1c557a=_0x400d40[_0x548f43])&&(_0x8fc16b=_0x1c557a(_0x8fc16b)||_0x8fc16b);return _0x8fc16b;},Ae=(_0xb7991c,_0x46ee59)=>(_0x3ab30c,_0x4096fb)=>_0x46ee59(_0x3ab30c,_0x4096fb,_0xb7991c);let ee=class{constructor(_0x3dfcde,_0x2c90f2){this['_transformService']=_0x3dfcde,this['_renderManagerService']=_0x2c90f2;}[_0x4b8fc7(0x2d8)](_0x31e6a5){const _0x5649b5=_0x4b8fc7;this[_0x5649b5(0x172)](_0x31e6a5),this[_0x5649b5(0x159)](_0x31e6a5);}[_0x4b8fc7(0x12f)](_0x29616e){const _0xa8e770=_0x4b8fc7,{unitID:_0x307d19}=_0x29616e,_0x384c46=this['_renderManagerService'][_0xa8e770(0x296)](_0x307d19)[_0xa8e770(0x1c6)](T[_0xa8e770(0xe7)]),{redoCache:_0x41a6e0}=_0x384c46[_0xa8e770(0x9f)]();if(_0x41a6e0[_0xa8e770(0x34f)]===0x0)return _0x29616e;let _0x540874=a['Tools'][_0xa8e770(0x267)](_0x29616e[_0xa8e770(0xe3)][0x0]);for(let _0x4bce1f=0x0;_0x4bce1f<_0x41a6e0[_0xa8e770(0x34f)];_0x4bce1f++){const _0x8109e8={'id':_0xa8e770(0x2e8),'params':{..._0x41a6e0[_0x4bce1f]}},_0x10b274=this[_0xa8e770(0x193)][_0xa8e770(0x80)](_0x540874,_0x8109e8,!0x1);if(g[_0xa8e770(0x185)](_0x10b274))throw _0x10b274['error'];_0x540874=_0x10b274[_0xa8e770(0x1a3)];}return{...a[_0xa8e770(0x2a3)]['deepClone'](_0x29616e),'mutations':[_0x540874]};}['_transformUndoRedoStack'](_0x1a5382){const _0x13d163=_0x4b8fc7,{unitID:_0x6336e1}=_0x1a5382,_0x3a8c0a=this[_0x13d163(0x258)][_0x13d163(0x296)](_0x6336e1)['with'](T[_0x13d163(0xe7)]),{undoCache:_0x3929fd,redoCache:_0x1a9ed9}=_0x3a8c0a[_0x13d163(0x9f)]();if(_0x3929fd[_0x13d163(0x34f)]===0x0||_0x1a9ed9[_0x13d163(0x34f)]===0x0)return;const _0x129a4b=[],_0x5458fd=[];let _0x61a6e0=a[_0x13d163(0x2a3)][_0x13d163(0x267)](_0x1a5382['mutations'][0x0]),_0x217495=a[_0x13d163(0x2a3)][_0x13d163(0x267)](_0x1a5382['mutations'][0x0]);for(let _0x3c1be2=_0x3929fd[_0x13d163(0x34f)]-0x1;_0x3c1be2>=0x0;_0x3c1be2--){const _0x2ee791={'id':_0x13d163(0x2e8),'params':{..._0x3929fd[_0x3c1be2]}},_0x4f047b={'id':'doc.mutation.rich-text-editing','params':{..._0x1a9ed9[_0x3c1be2]}},_0x383f91=this[_0x13d163(0x193)]['transformMutation'](_0x61a6e0,_0x2ee791,!0x1),_0x566dd6=this[_0x13d163(0x193)]['transformMutation'](_0x217495,_0x4f047b,!0x1);if(g['isTransformMutationFailure'](_0x383f91))throw _0x383f91[_0x13d163(0x1e1)];if(g[_0x13d163(0x185)](_0x566dd6))throw _0x566dd6['error'];_0x129a4b[_0x13d163(0x1d8)](_0x383f91['m2Prime'][_0x13d163(0x299)]),_0x5458fd[_0x13d163(0x1d8)](_0x566dd6['m2Prime'][_0x13d163(0x299)]),_0x61a6e0=_0x383f91[_0x13d163(0x1a3)],_0x217495=_0x566dd6[_0x13d163(0x1a3)];}_0x3a8c0a[_0x13d163(0x1cb)]({'undoCache':_0x129a4b,'redoCache':_0x5458fd});}[_0x4b8fc7(0x159)](_0x1f78bf){const _0x355cbc=_0x4b8fc7,{unitID:_0x1a5dfd}=_0x1f78bf,_0x270776=this[_0x355cbc(0x258)][_0x355cbc(0x296)](_0x1a5dfd)[_0x355cbc(0x1c6)](T[_0x355cbc(0xe7)]),_0x949521=_0x270776[_0x355cbc(0x311)]();if(_0x949521==null)return;const _0x6b608f=[{'id':_0x355cbc(0x2e8),'params':{'unitId':_0x1f78bf['unitID'],'actions':null,'textRanges':[_0x949521]}}],_0x34117d=this[_0x355cbc(0x193)][_0x355cbc(0x18b)](_0x1f78bf,_0x6b608f);if(!g[_0x355cbc(0x19c)](_0x34117d))throw _0x34117d['error'];const _0xaaaa2b=_0x34117d[_0x355cbc(0x348)][0x0][_0x355cbc(0x299)]['textRanges'];Array[_0x355cbc(0x2ab)](_0xaaaa2b)&&_0xaaaa2b[_0x355cbc(0x34f)]&&_0x270776['setActiveRange'](_0xaaaa2b[0x0]);}};ee=Wt([Ae(0x0,g[_0x4b8fc7(0x1af)]),Ae(0x1,C[_0x4b8fc7(0x127)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x209eaa,_0x3db380,_0x5a5f65,_0x5b6abb)=>{const _0x18bd4e=_0x4b8fc7;for(var _0x56da81=_0x5b6abb>0x1?void 0x0:_0x5b6abb?Vt(_0x3db380,_0x5a5f65):_0x3db380,_0x38aeb2=_0x209eaa[_0x18bd4e(0x34f)]-0x1,_0x4b595a;_0x38aeb2>=0x0;_0x38aeb2--)(_0x4b595a=_0x209eaa[_0x38aeb2])&&(_0x56da81=_0x4b595a(_0x56da81)||_0x56da81);return _0x56da81;},Ie=(_0x3eb0f3,_0x42c642)=>(_0x450475,_0x4286c8)=>_0x42c642(_0x450475,_0x4286c8,_0x3eb0f3);let te=class{constructor(_0x38cb25,_0x5c75b9,_0x6cf99e){const _0x2c1e68=_0x4b8fc7;this[_0x2c1e68(0x1a4)]=_0x38cb25,this[_0x2c1e68(0x193)]=_0x5c75b9,this[_0x2c1e68(0x2d4)]=_0x6cf99e;}[_0x4b8fc7(0xd3)](_0x5ef84d){this['_transformHistoryAndStateStack'](_0x5ef84d);}[_0x4b8fc7(0x12f)](_0x278e13){const _0x4072ce=_0x4b8fc7,{unitID:_0x1bc638}=_0x278e13,{collaboration:_0x4b365e}=this[_0x4072ce(0x2d4)][_0x4072ce(0x16b)](_0x1bc638);if(_0x4b365e[_0x4072ce(0x34f)]===0x0)return _0x278e13;let _0x479f38=a[_0x4072ce(0x2a3)]['deepClone'](_0x278e13[_0x4072ce(0xe3)][0x0]);for(let _0x3d992e=0x0;_0x3d992e<_0x4b365e[_0x4072ce(0x34f)];_0x3d992e++){const _0x5fede8={'id':_0x4072ce(0x2e8),'params':{'unitId':_0x4b365e[_0x3d992e]['unitId'],..._0x4b365e[_0x3d992e][_0x4072ce(0x2de)]}},_0x146768=this[_0x4072ce(0x193)][_0x4072ce(0x80)](_0x479f38,_0x5fede8,!0x1);if(g[_0x4072ce(0x185)](_0x146768))throw _0x146768[_0x4072ce(0x1e1)];_0x479f38=_0x146768[_0x4072ce(0x1a3)];}return{...a[_0x4072ce(0x2a3)][_0x4072ce(0x267)](_0x278e13),'mutations':[_0x479f38]};}[_0x4b8fc7(0x29c)](_0x459b73){const _0x4e723e=_0x4b8fc7,{unitID:_0x21cfa4}=_0x459b73,{history:_0x16556a,collaboration:_0x330fb2}=this[_0x4e723e(0x2d4)]['getStateCache'](_0x21cfa4);if(_0x16556a[_0x4e723e(0x34f)]===0x0&&_0x330fb2[_0x4e723e(0x34f)]===0x0)return;const _0x27c02e=[],_0x406d31=[];let _0x2416ed=a['Tools'][_0x4e723e(0x267)](_0x459b73[_0x4e723e(0xe3)][0x0]),_0x314a61=a[_0x4e723e(0x2a3)][_0x4e723e(0x267)](_0x459b73[_0x4e723e(0xe3)][0x0]);for(let _0x3a5fe0=_0x16556a[_0x4e723e(0x34f)]-0x1;_0x3a5fe0>=0x0;_0x3a5fe0--){const _0x59ace0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x16556a[_0x3a5fe0][_0x4e723e(0x119)],..._0x16556a[_0x3a5fe0][_0x4e723e(0xab)]}},_0x4ba0e8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x16556a[_0x3a5fe0][_0x4e723e(0x119)],..._0x16556a[_0x3a5fe0][_0x4e723e(0x2de)]}},_0x1e9fc4=this[_0x4e723e(0x193)][_0x4e723e(0x80)](_0x2416ed,_0x59ace0,!0x1),_0x5c4fab=this['_transformService'][_0x4e723e(0x80)](_0x314a61,_0x4ba0e8,!0x1);if(g[_0x4e723e(0x185)](_0x1e9fc4))throw _0x1e9fc4[_0x4e723e(0x1e1)];if(g[_0x4e723e(0x185)](_0x5c4fab))throw _0x5c4fab[_0x4e723e(0x1e1)];_0x27c02e[_0x4e723e(0x1d8)]({..._0x16556a[_0x3a5fe0],'undoState':_0x1e9fc4[_0x4e723e(0x348)][_0x4e723e(0x299)],'redoState':_0x5c4fab[_0x4e723e(0x348)][_0x4e723e(0x299)]}),_0x2416ed=_0x1e9fc4[_0x4e723e(0x1a3)],_0x314a61=_0x5c4fab[_0x4e723e(0x1a3)];}_0x2416ed=a[_0x4e723e(0x2a3)][_0x4e723e(0x267)](_0x459b73['mutations'][0x0]),_0x314a61=a['Tools'][_0x4e723e(0x267)](_0x459b73['mutations'][0x0]);for(let _0x14046c=_0x330fb2[_0x4e723e(0x34f)]-0x1;_0x14046c>=0x0;_0x14046c--){const _0x2b324b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x330fb2[_0x14046c][_0x4e723e(0x119)],..._0x330fb2[_0x14046c][_0x4e723e(0xab)]}},_0x482ccc={'id':_0x4e723e(0x2e8),'params':{'unitId':_0x330fb2[_0x14046c][_0x4e723e(0x119)],..._0x330fb2[_0x14046c][_0x4e723e(0x2de)]}},_0x5efeb8=this[_0x4e723e(0x193)]['transformMutation'](_0x2416ed,_0x2b324b,!0x1),_0x20cd5a=this[_0x4e723e(0x193)][_0x4e723e(0x80)](_0x314a61,_0x482ccc,!0x1);if(g[_0x4e723e(0x185)](_0x5efeb8))throw _0x5efeb8[_0x4e723e(0x1e1)];if(g[_0x4e723e(0x185)](_0x20cd5a))throw _0x20cd5a[_0x4e723e(0x1e1)];_0x406d31[_0x4e723e(0x1d8)]({..._0x330fb2[_0x14046c],'undoState':_0x5efeb8[_0x4e723e(0x348)][_0x4e723e(0x299)],'redoState':_0x20cd5a[_0x4e723e(0x348)][_0x4e723e(0x299)]}),_0x2416ed=_0x5efeb8[_0x4e723e(0x1a3)],_0x314a61=_0x20cd5a[_0x4e723e(0x1a3)];}this[_0x4e723e(0x2d4)][_0x4e723e(0x26d)](_0x21cfa4,{'history':_0x27c02e,'collaboration':_0x406d31});}};te=Gt([Ie(0x0,a['Inject'](a[_0x4b8fc7(0x1e4)])),Ie(0x1,g[_0x4b8fc7(0x1af)]),Ie(0x2,a['Inject'](T['DocStateChangeManagerService']))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x6b7c15,_0x364f0b,_0x31812a,_0x37a358)=>{const _0x55309e=_0x4b8fc7;for(var _0x3ea622=_0x37a358>0x1?void 0x0:_0x37a358?Xt(_0x364f0b,_0x31812a):_0x364f0b,_0x56df23=_0x6b7c15[_0x55309e(0x34f)]-0x1,_0x4d0773;_0x56df23>=0x0;_0x56df23--)(_0x4d0773=_0x6b7c15[_0x56df23])&&(_0x3ea622=_0x4d0773(_0x3ea622)||_0x3ea622);return _0x3ea622;},Pe=(_0x57a49f,_0x5548d1)=>(_0x55389f,_0x4cbfd6)=>_0x5548d1(_0x55389f,_0x4cbfd6,_0x57a49f);let se=class{constructor(_0x205b18,_0x238c38){const _0x2aa121=_0x4b8fc7;this[_0x2aa121(0x1a4)]=_0x205b18,this[_0x2aa121(0x193)]=_0x238c38;}[_0x4b8fc7(0x2ca)](_0x3ca598){const _0x1982cd=_0x4b8fc7;var _0x478f09;const _0x22fb6b=this[_0x1982cd(0x1a4)][_0x1982cd(0x16d)](V[_0x1982cd(0x2f5)]),_0xb6a8ab=(_0x478f09=_0x22fb6b[_0x1982cd(0x23f)]())!=null?_0x478f09:[];if(_0xb6a8ab[_0x1982cd(0x34f)]===0x0)return;const _0x50ae01=_0x3ca598[_0x1982cd(0x282)],_0x51b91f=[{'id':_0x1982cd(0x2e8),'params':{'unitId':_0x50ae01,'actions':null,'textRanges':_0xb6a8ab}}],_0x3aa5e1=this['_transformService'][_0x1982cd(0x18b)](_0x3ca598,_0x51b91f);if(!g[_0x1982cd(0x19c)](_0x3aa5e1))throw _0x3aa5e1[_0x1982cd(0x1e1)];const _0x5031e8=_0x3aa5e1[_0x1982cd(0x348)][0x0][_0x1982cd(0x299)][_0x1982cd(0x113)];Array[_0x1982cd(0x2ab)](_0x5031e8)&&_0x5031e8[_0x1982cd(0x34f)]&&_0x22fb6b[_0x1982cd(0x17d)](_0x5031e8,{'unitId':_0x50ae01,'subUnitId':_0x50ae01},!0x1);}};se=Kt([Pe(0x0,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),Pe(0x1,g['ITransformService'])],se);var qt=Object[_0x4b8fc7(0x288)],zt=(_0x2dfd20,_0x52bfde,_0x13e294,_0x468e76)=>{const _0x1c0b08=_0x4b8fc7;for(var _0x32f592=_0x468e76>0x1?void 0x0:_0x468e76?qt(_0x52bfde,_0x13e294):_0x52bfde,_0x5a7d1f=_0x2dfd20[_0x1c0b08(0x34f)]-0x1,_0xec15ba;_0x5a7d1f>=0x0;_0x5a7d1f--)(_0xec15ba=_0x2dfd20[_0x5a7d1f])&&(_0x32f592=_0xec15ba(_0x32f592)||_0x32f592);return _0x32f592;},N=(_0x5aee2b,_0x17d187)=>(_0x53f779,_0x2037ae)=>_0x17d187(_0x53f779,_0x2037ae,_0x5aee2b);let ie=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x7b015b,_0x474616,_0x348171,_0x5972e3,_0x106f68,_0x3180f9,_0x21abfe,_0x1955a6){const _0x3f1e0d=_0x4b8fc7;super(),_(this,_0x3f1e0d(0x206),new I[(_0x3f1e0d(0x2ad))](u[_0x3f1e0d(0x1db)]['NOT_COLLAB'])),(this[_0x3f1e0d(0x2d4)]=_0x7b015b,this[_0x3f1e0d(0x242)]=_0x474616,this[_0x3f1e0d(0x93)]=_0x348171,this['_docTransformStateCacheService']=_0x5972e3,this[_0x3f1e0d(0x225)]=_0x106f68,this[_0x3f1e0d(0x21f)]=_0x3180f9,this[_0x3f1e0d(0x17a)]=_0x21abfe,this['_localeService']=_0x1955a6,this[_0x3f1e0d(0x195)]());}[_0x4b8fc7(0x195)](){const _0x3b277d=_0x4b8fc7;this['disposeWithMe'](this[_0x3b277d(0x242)][_0x3b277d(0x10c)][_0x3b277d(0x304)](_0x5ec898=>{const _0x2c261d=_0x3b277d,_0x1ead04=this[_0x2c261d(0x2d4)][_0x2c261d(0x2ed)]['subscribe'](_0x2088f5=>{const _0x36995c=_0x2c261d;if(_0x2088f5==null)return;const {unitId:_0x5f786e,redoState:_0x4a87ed,commandId:_0x1ff53f}=_0x2088f5;if(_0x5f786e!==_0x5ec898[_0x36995c(0x282)])return;const _0x349ff6={'id':_0x1ff53f,'type':a[_0x36995c(0x1fd)]['MUTATION'],'params':{'unitId':_0x5f786e,'actions':_0x4a87ed[_0x36995c(0x8b)],'textRanges':null}};_0x5ec898[_0x36995c(0x134)](_0x349ff6);});if(_0x5ec898['disposeWithMe'](_0x1ead04),_0x5ec898 instanceof u[_0x2c261d(0x26f)]){const _0x4e1d1c={'onTransformIME':_0x4c9ea6=>this['_docTransformIMECacheService'][_0x2c261d(0x2d8)](_0x4c9ea6),'onTransformState':_0x59000e=>this[_0x2c261d(0x152)]['transformStateCache'](_0x59000e),'onTransformSelections':_0x37f380=>this['_docTransformSelectionsService']['transformSelections'](_0x37f380),'onSyncEditingCollabCursor':_0x12f7ce=>this[_0x2c261d(0x21f)][_0x2c261d(0x294)](_0x12f7ce),'onTransformRemoteChangesetByIMECache':_0x4e8e71=>this[_0x2c261d(0x93)][_0x2c261d(0x12f)](_0x4e8e71),'onTransformRemoteChangesetByStateCache':_0x403a9f=>this[_0x2c261d(0x152)][_0x2c261d(0x12f)](_0x403a9f)};_0x5ec898['addHandlerCallback'](_0x4e1d1c);}}));}};ie=zt([N(0x0,a[_0x4b8fc7(0x2ee)](T[_0x4b8fc7(0xd1)])),N(0x1,a[_0x4b8fc7(0x2ee)](u['CollaborationController'])),N(0x2,a[_0x4b8fc7(0x2ee)](ee)),N(0x3,a[_0x4b8fc7(0x2ee)](te)),N(0x4,a['Inject'](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x4b8fc7(0x20a)]),N(0x7,a['Inject'](a['LocaleService']))],ie);var G=(_0xbc2562=>(_0xbc2562[_0xbc2562[_0x4b8fc7(0x18e)]=0x0]=_0x4b8fc7(0x18e),_0xbc2562[_0xbc2562['OK']=0x1]='OK',_0xbc2562[_0xbc2562[_0x4b8fc7(0xb5)]=0x2]=_0x4b8fc7(0xb5),_0xbc2562[_0xbc2562[_0x4b8fc7(0x91)]=0x3]=_0x4b8fc7(0x91),_0xbc2562[_0xbc2562[_0x4b8fc7(0x18a)]=0x4]=_0x4b8fc7(0x18a),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2ba)]=0x5]=_0x4b8fc7(0x2ba),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2d9)]=0x6]=_0x4b8fc7(0x2d9),_0xbc2562[_0xbc2562[_0x4b8fc7(0x332)]=0x7]=_0x4b8fc7(0x332),_0xbc2562[_0xbc2562[_0x4b8fc7(0x240)]=0x8]=_0x4b8fc7(0x240),_0xbc2562[_0xbc2562[_0x4b8fc7(0x138)]=0x9]='COMPLETION_FINISHED',_0xbc2562[_0xbc2562[_0x4b8fc7(0xa6)]=0xa]=_0x4b8fc7(0xa6),_0xbc2562[_0xbc2562[_0x4b8fc7(0x133)]=0xb]=_0x4b8fc7(0x133),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1d9)]=0xc]=_0x4b8fc7(0x1d9),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2eb)]=0xd]=_0x4b8fc7(0x2eb),_0xbc2562[_0xbc2562['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x4b8fc7(0x1fc),_0xbc2562[_0xbc2562[_0x4b8fc7(0x171)]=0xf]=_0x4b8fc7(0x171),_0xbc2562[_0xbc2562['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x4b8fc7(0x188),_0xbc2562[_0xbc2562[_0x4b8fc7(0x178)]=0x64]=_0x4b8fc7(0x178),_0xbc2562[_0xbc2562[_0x4b8fc7(0xe0)]=0x65]=_0x4b8fc7(0xe0),_0xbc2562[_0xbc2562[_0x4b8fc7(0x212)]=0xc9]=_0x4b8fc7(0x212),_0xbc2562[_0xbc2562[_0x4b8fc7(0x14b)]=0xca]=_0x4b8fc7(0x14b),_0xbc2562[_0xbc2562[_0x4b8fc7(0xb7)]=0x1389]=_0x4b8fc7(0xb7),_0xbc2562[_0xbc2562['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4b8fc7(0x2cc),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1ea)]=0x1772]=_0x4b8fc7(0x1ea),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2b3)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0xbc2562[_0xbc2562[_0x4b8fc7(0x189)]=0x1b59]=_0x4b8fc7(0x189),_0xbc2562[_0xbc2562[_0x4b8fc7(0x17f)]=0x1b5a]=_0x4b8fc7(0x17f),_0xbc2562[_0xbc2562['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4b8fc7(0x26b),_0xbc2562[_0xbc2562['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4b8fc7(0x34c),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2e7)]=0x1b5d]=_0x4b8fc7(0x2e7),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2ec)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xbc2562[_0xbc2562[_0x4b8fc7(0x301)]=0x2329]=_0x4b8fc7(0x301),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2a4)]=0x232a]=_0x4b8fc7(0x2a4),_0xbc2562[_0xbc2562[_0x4b8fc7(0x217)]=0x232b]=_0x4b8fc7(0x217),_0xbc2562[_0xbc2562[_0x4b8fc7(0xc4)]=0x232c]=_0x4b8fc7(0xc4),_0xbc2562[_0xbc2562[_0x4b8fc7(0xc8)]=0x232d]=_0x4b8fc7(0xc8),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2c1)]=0x2711]=_0x4b8fc7(0x2c1),_0xbc2562[_0xbc2562[_0x4b8fc7(0x31c)]=0x2712]=_0x4b8fc7(0x31c),_0xbc2562[_0xbc2562['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4b8fc7(0xe6),_0xbc2562[_0xbc2562[_0x4b8fc7(0x14a)]=0x2714]=_0x4b8fc7(0x14a),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1d6)]=0x271a]=_0x4b8fc7(0x1d6),_0xbc2562[_0xbc2562['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x4b8fc7(0xcb),_0xbc2562[_0xbc2562[_0x4b8fc7(0x177)]=0x271c]=_0x4b8fc7(0x177),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1c3)]=0x271d]=_0x4b8fc7(0x1c3),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2c2)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xbc2562[_0xbc2562['YUUMI_AI_RUN_FAILED']=0x271f]=_0x4b8fc7(0x204),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1c2)]=0x2720]=_0x4b8fc7(0x1c2),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1cd)]=0x2af9]=_0x4b8fc7(0x1cd),_0xbc2562[_0xbc2562[_0x4b8fc7(0x243)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0xbc2562[_0xbc2562['INVALID_INVITE_CODE']=0x2ee2]=_0x4b8fc7(0x11f),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2b6)]=0x2ee3]=_0x4b8fc7(0x2b6),_0xbc2562[_0xbc2562[_0x4b8fc7(0x168)]=0x2ee4]=_0x4b8fc7(0x168),_0xbc2562[_0xbc2562[_0x4b8fc7(0x149)]=0x2ee5]=_0x4b8fc7(0x149),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2d3)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xbc2562[_0xbc2562['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x4b8fc7(0x1b5),_0xbc2562[_0xbc2562[_0x4b8fc7(0x244)]=0x32cb]=_0x4b8fc7(0x244),_0xbc2562[_0xbc2562[_0x4b8fc7(0xa1)]=0x36b1]=_0x4b8fc7(0xa1),_0xbc2562[_0xbc2562['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0xbc2562[_0xbc2562[_0x4b8fc7(0x2a9)]=0x36b3]=_0x4b8fc7(0x2a9),_0xbc2562[_0xbc2562[_0x4b8fc7(0x293)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0xbc2562[_0xbc2562[_0x4b8fc7(0xba)]=0x36b5]=_0x4b8fc7(0xba),_0xbc2562[_0xbc2562[_0x4b8fc7(0x17b)]=0x36b6]=_0x4b8fc7(0x17b),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1c7)]=0x36b7]=_0x4b8fc7(0x1c7),_0xbc2562[_0xbc2562[_0x4b8fc7(0x23a)]=0x36b8]=_0x4b8fc7(0x23a),_0xbc2562[_0xbc2562[_0x4b8fc7(0x251)]=0x3715]=_0x4b8fc7(0x251),_0xbc2562[_0xbc2562[_0x4b8fc7(0x254)]=0x3716]=_0x4b8fc7(0x254),_0xbc2562[_0xbc2562[_0x4b8fc7(0x28c)]=0x3717]=_0x4b8fc7(0x28c),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2b9)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0xbc2562[_0xbc2562[_0x4b8fc7(0xfe)]=0x3a99]='REDEMPTION_INVALID_CODE',_0xbc2562[_0xbc2562[_0x4b8fc7(0x2bb)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0xbc2562[_0xbc2562['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x4b8fc7(0x1b7),_0xbc2562[_0xbc2562['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x4b8fc7(0x2d5),_0xbc2562[_0xbc2562['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x4b8fc7(0x1b3),_0xbc2562[_0xbc2562['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0xbc2562[_0xbc2562[_0x4b8fc7(0x2e3)]=0x3a9f]=_0x4b8fc7(0x2e3),_0xbc2562[_0xbc2562['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x4b8fc7(0xff),_0xbc2562[_0xbc2562['UNRECOGNIZED']=-0x1]=_0x4b8fc7(0x330),_0xbc2562))(G||{});function Jt(_0x4a808b){const _0x369ecf=_0x4b8fc7;var _0x20f345,_0x207443;const _0x9a7e57=(_0x20f345=_0x4a808b[_0x369ecf(0xd5)])==null?void 0x0:_0x20f345[_0x369ecf(0x1f5)],_0x51a7c3=((_0x207443=_0x4a808b[_0x369ecf(0xd5)])==null?void 0x0:_0x207443[_0x369ecf(0x25d)])||0x0;return _0x9a7e57===B[_0x369ecf(0x340)][_0x369ecf(0x32e)]&&_0x51a7c3>0x0;}function Zt(_0x5f3823){const _0x5acca9=_0x4b8fc7;return _0x5f3823['functionsExecutedState']===B[_0x5acca9(0x1f2)][_0x5acca9(0x260)];}var Qt=Object[_0x4b8fc7(0x288)],es=(_0x22cfd0,_0x8edb5c,_0x1dbc7c,_0x243215)=>{const _0x2af3b4=_0x4b8fc7;for(var _0x5ec257=_0x243215>0x1?void 0x0:_0x243215?Qt(_0x8edb5c,_0x1dbc7c):_0x8edb5c,_0x5eedc4=_0x22cfd0[_0x2af3b4(0x34f)]-0x1,_0x28d1bc;_0x5eedc4>=0x0;_0x5eedc4--)(_0x28d1bc=_0x22cfd0[_0x5eedc4])&&(_0x5ec257=_0x28d1bc(_0x5ec257)||_0x5ec257);return _0x5ec257;},L=(_0x106db2,_0x2596a5)=>(_0x2a3277,_0x43a6c0)=>_0x2596a5(_0x2a3277,_0x43a6c0,_0x106db2);const ts=_0x4b8fc7(0xea),ss='/universer-api/license/formula/limit/start',is=_0x4b8fc7(0x1bd);let ne=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x321488,_0x2b9d3e,_0x1adb89,_0x72afe7,_0x5f2daf,_0x21d202,_0xf6ab6c){const _0x520a6d=_0x4b8fc7;super(),_(this,_0x520a6d(0x19f),null),_(this,_0x520a6d(0xc1),0x0),_(this,_0x520a6d(0xc9),0x0),_(this,'_taskIds',[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x520a6d(0x17a)]=_0x321488,this['_commandService']=_0x2b9d3e,this['_configService']=_0x1adb89,this['_httpService']=_0x72afe7,this[_0x520a6d(0x32f)]=_0x5f2daf,this[_0x520a6d(0x284)]=_0x21d202,this[_0x520a6d(0x22d)]=_0xf6ab6c,this[_0x520a6d(0x25f)]());}['_initCommandInterceptor'](){const _0x5931f9=_0x4b8fc7;this[_0x5931f9(0x350)](this[_0x5931f9(0x22a)][_0x5931f9(0x148)]((_0xed1ca7,_0x360789)=>{const _0x5d0cc5=_0x5931f9;var _0xeaaa77;if(_0xed1ca7['id']!==B[_0x5d0cc5(0x2c6)]['id'])return;const _0x404926=_0xed1ca7[_0x5d0cc5(0x299)];if(!this[_0x5d0cc5(0x2cf)]((_0xeaaa77=_0x404926[_0x5d0cc5(0x25b)])!=null?_0xeaaa77:[]))return;if(!this[_0x5d0cc5(0x26e)]())throw this[_0x5d0cc5(0x2a6)](_0xed1ca7,_0x360789),this['_showGuardMessage'](),new a['CanceledError']();})),this[_0x5931f9(0x350)](this[_0x5931f9(0x22a)][_0x5931f9(0x289)]((_0x2eac77,_0x3e1481)=>{const _0xe9cf01=_0x5931f9;if(_0x2eac77['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x1a32de=_0x2eac77[_0xe9cf01(0x299)];if(Jt(_0x1a32de)){const _0x5a4b24=a[_0xe9cf01(0x214)]();this[_0xe9cf01(0x12a)][_0xe9cf01(0x8d)](_0x5a4b24),this[_0xe9cf01(0x191)](_0x5a4b24);}else{if(Zt(_0x1a32de)&&this['_taskIds']['length']>0x0){const _0x31bbbb=this[_0xe9cf01(0x12a)]['shift']();this['_releaseCalculationLimit'](_0x31bbbb);}}}));}[_0x4b8fc7(0x83)](){const _0x1b987d=_0x4b8fc7;super[_0x1b987d(0x83)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x1b987d(0xc9)]=0x0,this[_0x1b987d(0xc1)]=0x0,this[_0x1b987d(0xad)]=0x0;}async[_0x4b8fc7(0x2a6)](_0x3eb161,_0x6e3fca){const _0x2ba01a=_0x4b8fc7;for(let _0x39dea3=0x0;_0x39dea3<0x1e;_0x39dea3++)try{if(await this[_0x2ba01a(0x2fb)](),this[_0x2ba01a(0x26e)]()){this[_0x2ba01a(0x2c0)](_0x3eb161,_0x6e3fca),this[_0x2ba01a(0x17a)]['show']({'content':this[_0x2ba01a(0x22d)]['t']('formula.calculation.started'),'type':p[_0x2ba01a(0x1e5)][_0x2ba01a(0xae)]});return;}await new Promise(_0x2299d4=>{const _0x27cfde=_0x2ba01a;this[_0x27cfde(0x19f)]=window[_0x27cfde(0x24e)](_0x2299d4,0x3e8);});}catch(_0x1a118d){this['_logService']['error'](_0x1a118d);}this[_0x2ba01a(0x17a)][_0x2ba01a(0x234)]({'content':this['_localeService']['t'](_0x2ba01a(0x14e)),'type':p[_0x2ba01a(0x1e5)][_0x2ba01a(0x2c7)]});}[_0x4b8fc7(0x2c0)](_0x44e400,_0x137465){const _0x2d131a=_0x4b8fc7;try{this['_commandService'][_0x2d131a(0x154)](_0x44e400['id'],_0x44e400[_0x2d131a(0x299)],_0x137465);}catch(_0x2dc991){this[_0x2d131a(0x284)][_0x2d131a(0x1e1)](_0x2dc991);}}['_setFormulaLimitStatus'](_0x4a29bd,_0x47fc7c){const _0x328c47=_0x4b8fc7;_0x47fc7c<this['_lastResponseTimestamp']||(this[_0x328c47(0xad)]=_0x47fc7c,this['_maxFormulaLimit']=Number[_0x328c47(0xa8)](_0x4a29bd['maxFormulaLimit']),this[_0x328c47(0xc9)]=Number[_0x328c47(0xa8)](_0x4a29bd[_0x328c47(0x306)]));}async[_0x4b8fc7(0x191)](_0x1103e6){const _0x3fcc73=_0x4b8fc7;var _0x203115,_0x2ff509;const _0x32c039=Date['now']();try{const _0x91ea3a=((_0x203115=this[_0x3fcc73(0x2fc)][_0x3fcc73(0x333)](u[_0x3fcc73(0x21d)]))==null?void 0x0:_0x203115[_0x3fcc73(0x144)])||ss,_0x234911=(await this[_0x3fcc73(0x34b)][_0x3fcc73(0x259)](_0x91ea3a,{'body':JSON['stringify']({'taskId':_0x1103e6})}))[_0x3fcc73(0x137)];if(((_0x2ff509=_0x234911['error'])==null?void 0x0:_0x2ff509['code'])!==G['OK'])return;this[_0x3fcc73(0x200)](_0x234911[_0x3fcc73(0x2e0)],_0x32c039);}catch(_0x32a377){this[_0x3fcc73(0x284)]['error'](_0x32a377);}}async['_getFormulaLimitStatus'](_0x2cc9de){const _0x47dad3=_0x4b8fc7;var _0x459768,_0x57f065;const _0x13084a=Date[_0x47dad3(0x1e2)]();try{const _0xc8f36e=((_0x459768=this[_0x47dad3(0x2fc)][_0x47dad3(0x333)](u[_0x47dad3(0x21d)]))==null?void 0x0:_0x459768[_0x47dad3(0x31e)])||ts,_0x30e7cb=_0x2cc9de?_0xc8f36e+_0x47dad3(0xcd)+encodeURIComponent(_0x2cc9de):_0xc8f36e,_0x5dcdda=(await this['_httpService'][_0x47dad3(0x16d)](_0x30e7cb))[_0x47dad3(0x137)];if(((_0x57f065=_0x5dcdda[_0x47dad3(0x1e1)])==null?void 0x0:_0x57f065['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x5dcdda['limitInfo'],_0x13084a);}catch(_0x5a9fa2){this[_0x47dad3(0x284)]['error'](_0x5a9fa2);}}async['_releaseCalculationLimit'](_0x14d51c){const _0x49b279=_0x4b8fc7;var _0x52feed,_0x46af7c;const _0x545e54=Date[_0x49b279(0x1e2)]();try{const _0x14dfe0=((_0x52feed=this[_0x49b279(0x2fc)][_0x49b279(0x333)](u[_0x49b279(0x21d)]))==null?void 0x0:_0x52feed['releaseFormulaLimitUrl'])||is,_0x3051d6=(await this[_0x49b279(0x34b)][_0x49b279(0x259)](_0x14dfe0,{'body':JSON[_0x49b279(0x13c)]({'taskId':_0x14d51c})}))[_0x49b279(0x137)];if(((_0x46af7c=_0x3051d6['error'])==null?void 0x0:_0x46af7c[_0x49b279(0x32d)])!==G['OK'])return;this[_0x49b279(0x200)](_0x3051d6[_0x49b279(0x2e0)],_0x545e54);}catch(_0x132626){this[_0x49b279(0x284)][_0x49b279(0x1e1)](_0x132626);}}[_0x4b8fc7(0x26e)](){const _0x1f2b61=_0x4b8fc7;return this[_0x1f2b61(0xc1)]===0x0?!0x0:this[_0x1f2b61(0xc1)]-this[_0x1f2b61(0xc9)]>0x0;}[_0x4b8fc7(0x25e)](){const _0x57811c=_0x4b8fc7;this[_0x57811c(0x19f)]&&(clearTimeout(this[_0x57811c(0x19f)]),this[_0x57811c(0x19f)]=null);}[_0x4b8fc7(0x241)](){const _0x1943df=_0x4b8fc7;this[_0x1943df(0x17a)][_0x1943df(0x234)]({'content':this['_localeService']['t'](_0x1943df(0x27a)),'type':p['MessageType'][_0x1943df(0x321)]});}[_0x4b8fc7(0x2cf)](_0x251564){const _0x2a29cb=_0x4b8fc7;for(const _0x1226de of _0x251564){const {unitId:_0x39d2e3,sheetId:_0x233a5a,range:_0x2c2c35}=_0x1226de,_0x5a997b=this['_univerInstanceService'][_0x2a29cb(0xf5)](_0x39d2e3);if(!_0x5a997b)continue;const _0x2623b3=_0x5a997b[_0x2a29cb(0x24c)](_0x233a5a);if(!_0x2623b3)continue;const _0x3f8a9b=_0x2623b3[_0x2a29cb(0x298)]();for(let _0x5bda60=_0x2c2c35['startRow'];_0x5bda60<=_0x2c2c35['endRow'];_0x5bda60++)for(let _0x596ea8=_0x2c2c35[_0x2a29cb(0x291)];_0x596ea8<=_0x2c2c35['endColumn'];_0x596ea8++){const _0xad9acb=_0x3f8a9b[_0x2a29cb(0xf7)](_0x5bda60,_0x596ea8);if(_0xad9acb&&(a[_0x2a29cb(0xda)](_0xad9acb['f'])||a['isFormulaId'](_0xad9acb['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4b8fc7(0x2ee)](O['IMessageService'])),L(0x1,a[_0x4b8fc7(0x25a)]),L(0x2,a[_0x4b8fc7(0x2b0)]),L(0x3,a[_0x4b8fc7(0x2ee)](x[_0x4b8fc7(0xb2)])),L(0x4,a[_0x4b8fc7(0xec)]),L(0x5,a[_0x4b8fc7(0x344)]),L(0x6,a[_0x4b8fc7(0x2ee)](a['LocaleService']))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x4a4ff8,_0x4c8ef3,_0x1b4a81,_0x61297d)=>{const _0x21f051=_0x4b8fc7;for(var _0x227a43=_0x61297d>0x1?void 0x0:_0x61297d?ns(_0x4c8ef3,_0x1b4a81):_0x4c8ef3,_0x1e2c96=_0x4a4ff8[_0x21f051(0x34f)]-0x1,_0x37fbc6;_0x1e2c96>=0x0;_0x1e2c96--)(_0x37fbc6=_0x4a4ff8[_0x1e2c96])&&(_0x227a43=_0x37fbc6(_0x227a43)||_0x227a43);return _0x227a43;},Se=(_0x4d2fb7,_0x4a69d1)=>(_0x2442c7,_0x591aa2)=>_0x4a69d1(_0x2442c7,_0x591aa2,_0x4d2fb7);let Te=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x3ad03d,_0xb39fc2,_0x400933){const _0xc819f6=_0x4b8fc7;super(),_(this,_0xc819f6(0x173),new Map()),_(this,_0xc819f6(0x98),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x3ad03d,this[_0xc819f6(0x1ef)]=_0xb39fc2,this[_0xc819f6(0x213)]=_0x400933);}[_0x4b8fc7(0x28e)](){const _0x4be9cf=_0x4b8fc7;this[_0x4be9cf(0xbe)]=!0x0;}['enableLocalCache'](){const _0x30bb77=_0x4b8fc7;this[_0x30bb77(0xbe)]=!0x1;}get[_0x4b8fc7(0xe9)](){const _0x49437f=_0x4b8fc7;return this[_0x49437f(0x98)];}['dispose'](){const _0x4ca65b=_0x4b8fc7;this[_0x4ca65b(0x268)]()['then'](()=>super[_0x4ca65b(0x83)]());}async[_0x4b8fc7(0x27d)](_0x26f12e){const _0x4fedb4=_0x4b8fc7;return this[_0x4fedb4(0xbe)]?null:this[_0x4fedb4(0x1ef)][_0x4fedb4(0xe4)](u[_0x4fedb4(0x1a0)](_0x26f12e));}async[_0x4b8fc7(0x12c)](_0x250650,_0x22fdee){const _0x474e6e=_0x4b8fc7;return!!this['_localStorageService'][_0x474e6e(0x237)](_0x250650,_0x22fdee);}[_0x4b8fc7(0x109)](_0x650593,_0x67aba7,_0x55fc26,_0x175c8d){const _0x6e8a93=_0x4b8fc7,_0x5eed61=this['_revisionService'][_0x6e8a93(0x7e)](_0x650593);this[_0x6e8a93(0x173)]['set'](_0x650593,{'unitID':_0x650593,'type':_0x67aba7,'awaitingChangeset':_0x55fc26,'mutations':_0x175c8d,'rev':_0x5eed61}),this[_0x6e8a93(0x98)]['has'](_0x650593)||this[_0x6e8a93(0x1ab)](_0x650593);}['_scheduleSaving'](_0x2cf1d9){const _0x4c707c=_0x4b8fc7,_0x1afaf7=this[_0x4c707c(0x105)]();_0x1afaf7===0x0?this[_0x4c707c(0x279)](_0x2cf1d9):this[_0x4c707c(0x98)][_0x4c707c(0x272)](_0x2cf1d9,setTimeout(()=>this['_saveCache'](_0x2cf1d9),_0x1afaf7));}[_0x4b8fc7(0x105)](){const _0x1f217a=_0x4b8fc7;var _0x88dc24;return(_0x88dc24=this[_0x1f217a(0x2fc)]['getConfig'](u[_0x1f217a(0x339)]))!=null?_0x88dc24:u[_0x1f217a(0xb1)];}[_0x4b8fc7(0x279)](_0x34def5){const _0x4353c9=_0x4b8fc7,_0x3b388c=this[_0x4353c9(0x98)][_0x4353c9(0x16d)](_0x34def5);return _0x3b388c!==void 0x0&&window[_0x4353c9(0x1c5)](_0x3b388c),this[_0x4353c9(0x1ef)][_0x4353c9(0x237)](u[_0x4353c9(0x1a0)](_0x34def5),this[_0x4353c9(0x173)]['get'](_0x34def5))[_0x4353c9(0x26a)](()=>this['_saveTaskMap']['delete'](_0x34def5));}async[_0x4b8fc7(0x268)](){const _0x26e6a3=_0x4b8fc7,_0x21099b=[];this[_0x26e6a3(0x98)][_0x26e6a3(0x7d)]((_0x55f060,_0x4f88e2)=>{const _0x493d91=_0x26e6a3;window[_0x493d91(0x1c5)](_0x55f060),_0x21099b[_0x493d91(0x8d)](this[_0x493d91(0x279)](_0x4f88e2)[_0x493d91(0x26a)](()=>{const _0x53e55c=_0x493d91;this[_0x53e55c(0x98)][_0x53e55c(0x224)](_0x4f88e2);}));}),await Promise[_0x26e6a3(0x2e5)](_0x21099b);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a['ILocalStorageService']),Se(0x2,a['Inject'](g[_0x4b8fc7(0x186)]))],Te);class ke extends a[_0x4b8fc7(0x312)]{constructor(){const _0x2bff94=_0x4b8fc7;super(),_(this,_0x2bff94(0x8a)),this['urlChange$']=I[_0x2bff94(0x10b)](window,_0x2bff94(0x99))[_0x2bff94(0x266)](I[_0x2bff94(0x351)](this[_0x2bff94(0x29f)]),I['shareReplay'](0x1),I['mapTo'](void 0x0));}[_0x4b8fc7(0x246)](_0x1b47ff,_0x1862e2,_0x56e858=!0x1){const _0x3ec833=_0x4b8fc7,_0x588e50=new URL(window[_0x3ec833(0x331)][_0x3ec833(0x111)]);_0x588e50[_0x3ec833(0x221)][_0x3ec833(0x272)](_0x1b47ff,_0x1862e2),_0x56e858?window[_0x3ec833(0x2fe)][_0x3ec833(0x335)]('','',_0x588e50[_0x3ec833(0x320)]()):window[_0x3ec833(0x2fe)]['pushState']('','',_0x588e50['toString']());}['removeParam'](_0x5d6950,_0x22afb1=!0x1){const _0x5e274e=_0x4b8fc7,_0xa4046d=new URL(window['location']['href']);_0xa4046d[_0x5e274e(0x221)][_0x5e274e(0x224)](_0x5d6950),_0x22afb1?window[_0x5e274e(0x2fe)][_0x5e274e(0x335)]('','',_0xa4046d[_0x5e274e(0x320)]()):window[_0x5e274e(0x2fe)]['pushState']('','',_0xa4046d[_0x5e274e(0x320)]());}['getParam'](_0x2cdcc2){const _0x30f88f=_0x4b8fc7;var _0x325202;return(_0x325202=new URL(window[_0x30f88f(0x331)][_0x30f88f(0x111)])[_0x30f88f(0x221)][_0x30f88f(0x16d)](_0x2cdcc2))!=null?_0x325202:void 0x0;}}var os=Object[_0x4b8fc7(0x1bf)],as=Object[_0x4b8fc7(0x288)],cs=(_0x1a1e89,_0x37a35c,_0x3623c0)=>_0x37a35c in _0x1a1e89?os(_0x1a1e89,_0x37a35c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3623c0}):_0x1a1e89[_0x37a35c]=_0x3623c0,ls=(_0x3ffd6f,_0xe11a1c,_0x50fd43,_0x5dca1a)=>{const _0x236c93=_0x4b8fc7;for(var _0x4171d0=_0x5dca1a>0x1?void 0x0:_0x5dca1a?as(_0xe11a1c,_0x50fd43):_0xe11a1c,_0x213d31=_0x3ffd6f[_0x236c93(0x34f)]-0x1,_0x497573;_0x213d31>=0x0;_0x213d31--)(_0x497573=_0x3ffd6f[_0x213d31])&&(_0x4171d0=_0x497573(_0x4171d0)||_0x4171d0);return _0x4171d0;},de=(_0x7872d5,_0x50ff90)=>(_0x31af55,_0x9b5402)=>_0x50ff90(_0x31af55,_0x9b5402,_0x7872d5),_s=(_0x10521c,_0x3477aa,_0x18c346)=>cs(_0x10521c,_0x3477aa+'',_0x18c346);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x4b8fc7(0x103)]=class extends a[_0x4b8fc7(0x30e)]{constructor(_0x32495b=Me,_0x1cc98f,_0x5f400f,_0x3e27d4){const _0x4fc8f3=_0x4b8fc7;super(),this[_0x4fc8f3(0x30d)]=_0x32495b,this[_0x4fc8f3(0x258)]=_0x1cc98f,this[_0x4fc8f3(0x1a4)]=_0x5f400f,this['_configService']=_0x3e27d4;const {..._0x492b5f}=a['merge']({},Me,this['_config']);this['_configService'][_0x4fc8f3(0x233)](Yt,_0x492b5f);}[_0x4b8fc7(0x247)](){const _0x39ae48=_0x4b8fc7;this['_registerDependencies'](),this[_0x39ae48(0x22b)]();}[_0x4b8fc7(0x316)](){this['_registerRenderDependencies']();}[_0x4b8fc7(0xee)](){const _0x35704b=_0x4b8fc7;var _0x4bb6c1;const _0x544f85=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x35704b(0x2af)]}],[u['ILocalCacheService'],{'useClass':Te}],[exports[_0x35704b(0xf2)]],[ie],[Z],[F],[me],[exports[_0x35704b(0x136)]]];this[_0x35704b(0x30d)][_0x35704b(0x2f6)]&&_0x544f85['push']([Q]),a[_0x35704b(0xf4)](this[_0x35704b(0x1a4)],a[_0x35704b(0x10f)](_0x544f85,(_0x4bb6c1=this[_0x35704b(0x30d)])==null?void 0x0:_0x4bb6c1['override']));}[_0x4b8fc7(0xb8)](){const _0xb1b178=_0x4b8fc7;this[_0xb1b178(0x350)](this[_0xb1b178(0x258)][_0xb1b178(0x157)](a[_0xb1b178(0x326)][_0xb1b178(0xa7)],[Ee])),this[_0xb1b178(0x350)](this[_0xb1b178(0x258)][_0xb1b178(0x157)](a[_0xb1b178(0x326)][_0xb1b178(0x1dc)],[Ce]));}[_0x4b8fc7(0x22b)](){const _0x919fba=_0x4b8fc7;a[_0x919fba(0x216)](this[_0x919fba(0x1a4)],[[F],[exports[_0x919fba(0xf2)]],[ie],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this[_0x919fba(0x30d)][_0x919fba(0x2f6)]&&a[_0x919fba(0x216)](this[_0x919fba(0x1a4)],[[Q]]);}},_s(exports[_0x4b8fc7(0x103)],_0x4b8fc7(0x1d5),hs),exports[_0x4b8fc7(0x103)]=ls([a[_0x4b8fc7(0x202)](u[_0x4b8fc7(0xd2)]),de(0x1,C[_0x4b8fc7(0x127)]),de(0x2,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),de(0x3,a[_0x4b8fc7(0x2b0)])],exports[_0x4b8fc7(0x103)]);var us=Object[_0x4b8fc7(0x288)],Is=(_0x559229,_0x7c1057,_0x215715,_0x5e9afe)=>{const _0xb78b02=_0x4b8fc7;for(var _0x3cb4e0=_0x5e9afe>0x1?void 0x0:_0x5e9afe?us(_0x7c1057,_0x215715):_0x7c1057,_0x1bc2b5=_0x559229[_0xb78b02(0x34f)]-0x1,_0x1196f5;_0x1bc2b5>=0x0;_0x1bc2b5--)(_0x1196f5=_0x559229[_0x1bc2b5])&&(_0x3cb4e0=_0x1196f5(_0x3cb4e0)||_0x3cb4e0);return _0x3cb4e0;},W=(_0x184b30,_0x1d03c0)=>(_0xb4e41a,_0x4f53d1)=>_0x1d03c0(_0xb4e41a,_0x4f53d1,_0x184b30);exports[_0x4b8fc7(0x1c1)]=class extends u['CollaborationSocketService']{constructor(_0x28569f,_0x5362f4,_0x4705e2,_0xdb8a19,_0x50c429){super(_0x28569f,_0x5362f4,_0x4705e2,_0xdb8a19,_0x50c429);}async['createSocket'](_0x4b84d8){const _0x23b227=_0x4b8fc7,_0x35a909=await this[_0x23b227(0x179)](),_0x6f79b5=this[_0x23b227(0x114)](_0x4b84d8,_0x35a909);return this[_0x23b227(0x11b)](_0x6f79b5);}[_0x4b8fc7(0x114)](_0x1f4da0,_0x2bd885){const _0x4d6d1d=_0x4b8fc7,_0x46b67e=typeof window>'u'?new URL(_0x1f4da0):new URL(_0x1f4da0,window['location'][_0x4d6d1d(0x1bb)]);_0x46b67e[_0x4d6d1d(0x221)][_0x4d6d1d(0x272)](_0x4d6d1d(0x163),_0x2bd885);const _0x2ffc7c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4d6d1d(0x331)][_0x4d6d1d(0x15f)]);return _0x2ffc7c[_0x4d6d1d(0x16d)](_0x4d6d1d(0x274))&&_0x46b67e['searchParams'][_0x4d6d1d(0x272)](_0x4d6d1d(0x274),_0x2ffc7c['get'](_0x4d6d1d(0x274))),_0x46b67e[_0x4d6d1d(0x320)]();}async[_0x4b8fc7(0x179)](){const _0x4ace48=_0x4b8fc7;var _0x4ec302,_0x115bf5,_0x475a34;const _0xe53136=this[_0x4ace48(0x2fc)]['getConfig'](u[_0x4ace48(0x21d)]),_0x2203e4=(_0x4ec302=_0xe53136==null?void 0x0:_0xe53136['wsSessionTicketUrl'])!=null?_0x4ec302:u[_0x4ace48(0xe5)];return(_0x475a34=(_0x115bf5=(await this['_httpService']['get'](_0x2203e4,{'headers':{'Content-Type':_0x4ace48(0xaa)}}))[_0x4ace48(0x137)])==null?void 0x0:_0x115bf5['ticket'])!=null?_0x475a34:'';}},exports[_0x4b8fc7(0x1c1)]=Is([W(0x0,a[_0x4b8fc7(0x2ee)](a['Injector'])),W(0x1,a[_0x4b8fc7(0x2ee)](x[_0x4b8fc7(0xb2)])),W(0x2,a[_0x4b8fc7(0x2b0)]),W(0x3,a[_0x4b8fc7(0x344)]),W(0x4,g[_0x4b8fc7(0x252)])],exports[_0x4b8fc7(0x1c1)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x2e7743,_0x1bd7ea,_0x1b79e9,_0x3ce754)=>{const _0x1fffef=_0x4b8fc7;for(var _0x1c7047=_0x3ce754>0x1?void 0x0:_0x3ce754?Ss(_0x1bd7ea,_0x1b79e9):_0x1bd7ea,_0x26c269=_0x2e7743[_0x1fffef(0x34f)]-0x1,_0x4949ef;_0x26c269>=0x0;_0x26c269--)(_0x4949ef=_0x2e7743[_0x26c269])&&(_0x1c7047=_0x4949ef(_0x1c7047)||_0x1c7047);return _0x1c7047;},fe=(_0x17afb8,_0x2424b5)=>(_0x55bb06,_0x4e9e59)=>_0x2424b5(_0x55bb06,_0x4e9e59,_0x17afb8);exports[_0x4b8fc7(0x327)]=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x20f481,_0x20490b,_0x5e2d55){const _0x34b915=_0x4b8fc7;super(),this['_instanceService']=_0x20f481,this[_0x34b915(0x34b)]=_0x20490b,this['_configService']=_0x5e2d55;}async[_0x4b8fc7(0xf8)](_0x1cb53f,_0x1742fe,_0x48d934,..._0x3d43d4){const _0x4e3180=_0x4b8fc7;var _0x3ad22d,_0x35bd96,_0x45fa4e,_0x19e584;const _0x349711=this[_0x4e3180(0x281)][_0x4e3180(0x151)]();if(!_0x349711)throw new Error(_0x4e3180(0xf9));const _0x5132a4=((_0x3ad22d=this[_0x4e3180(0x2fc)][_0x4e3180(0x333)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x3ad22d:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1cb53f+_0x4e3180(0xca)+_0x1742fe,_0x1a5013=new URL(window[_0x4e3180(0x331)][_0x4e3180(0x111)]),_0x4613a8={'scriptId':_0x1cb53f,'runId':(_0x35bd96=_0x1a5013['searchParams'][_0x4e3180(0x16d)](_0x4e3180(0x274)))!=null?_0x35bd96:'','function':_0x1742fe,'unitId':_0x349711[_0x4e3180(0x1f6)](),'argsOfFunction':JSON[_0x4e3180(0x13c)](_0x3d43d4),'invokeId':(_0x45fa4e=_0x48d934[_0x4e3180(0x236)])!=null?_0x45fa4e:'','executionId':(_0x19e584=_0x48d934[_0x4e3180(0x1c8)])!=null?_0x19e584:''};try{const _0x2b052b=await this['_httpService'][_0x4e3180(0x259)](_0x5132a4,{'body':_0x4613a8});return _0x2b052b['body'][_0x4e3180(0x1e1)]&&_0x2b052b[_0x4e3180(0x137)][_0x4e3180(0x1e1)][_0x4e3180(0x32d)]!==G['OK']?_0x4e3180(0x101):_0x2b052b[_0x4e3180(0x137)][_0x4e3180(0x2c4)];}catch{return _0x4e3180(0x101);}}},exports[_0x4b8fc7(0x327)]=ds([fe(0x0,a[_0x4b8fc7(0xec)]),fe(0x1,a[_0x4b8fc7(0x2ee)](x[_0x4b8fc7(0xb2)])),fe(0x2,a[_0x4b8fc7(0x2b0)])],exports[_0x4b8fc7(0x327)]);const we=0x7530,ye=_0x4b8fc7(0x27f);class fs extends a[_0x4b8fc7(0x1cc)]{constructor(){const _0x2c5da1=_0x4b8fc7;super(),_(this,_0x2c5da1(0x334),a[_0x2c5da1(0x214)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x2c5da1(0x2ff),new Map()),_(this,_0x2c5da1(0x2be),null),_(this,_0x2c5da1(0x264),new Map()),_(this,_0x2c5da1(0x117),new Map()),this[_0x2c5da1(0x16a)]();}[_0x4b8fc7(0x83)](){const _0x12147b=_0x4b8fc7;super['dispose'](),this[_0x12147b(0x264)]['forEach']((_0x233f15,_0x5c1eb4)=>this[_0x12147b(0x1fe)](_0x5c1eb4)),this[_0x12147b(0x2be)]&&window[_0x12147b(0x192)](this['_heartbeatTimer']);}[_0x4b8fc7(0x2c5)](_0x2698d0){const _0x4dd659=_0x4b8fc7;return this[_0x4dd659(0x1de)](_0x2698d0)[_0x4dd659(0x266)](I[_0x4dd659(0x131)]());}[_0x4b8fc7(0x347)](_0x540956){const _0x153e31=_0x4b8fc7;this[_0x153e31(0x19b)][_0x153e31(0x1a1)]===0x0&&this['_scheduleHeartbeat'](),this[_0x153e31(0x19b)]['add'](_0x540956),this[_0x153e31(0x34a)]({'type':0x0,'memberID':this[_0x153e31(0x334)],'unitIDs':[_0x540956],'isForwarded':!0x1});}[_0x4b8fc7(0xbf)](_0x1cb55a){const _0x40c8bc=_0x4b8fc7;this[_0x40c8bc(0x19b)]['delete'](_0x1cb55a),this[_0x40c8bc(0x19b)]['size']===0x0&&this[_0x40c8bc(0x2be)]&&window[_0x40c8bc(0x192)](this[_0x40c8bc(0x2be)]);}[_0x4b8fc7(0x16a)](){const _0x3159f4=_0x4b8fc7;this[_0x3159f4(0x350)](a[_0x3159f4(0x2b4)](I[_0x3159f4(0x10b)](window,'storage')[_0x3159f4(0x304)](_0x4a3a6c=>{const _0x387fa9=_0x3159f4;if(_0x4a3a6c[_0x387fa9(0xc0)]!==ye||!_0x4a3a6c['newValue'])return;const _0x414423=JSON[_0x387fa9(0x23b)](_0x4a3a6c[_0x387fa9(0x1bc)]);this[_0x387fa9(0xf6)](_0x414423);}))),window[_0x3159f4(0x28f)](_0x3159f4(0x303),()=>this[_0x3159f4(0x34a)]({'type':0x1,'memberID':this[_0x3159f4(0x334)],'unitIDs':Array['from'](this[_0x3159f4(0x19b)])}));}[_0x4b8fc7(0xf6)](_0x5c14db){const _0xfa01fa=_0x4b8fc7;switch(_0x5c14db[_0xfa01fa(0x2c3)]){case 0x0:this['_handleJoinEvent'](_0x5c14db);break;case 0x1:this[_0xfa01fa(0x309)](_0x5c14db);break;case 0x2:this[_0xfa01fa(0x1f8)](_0x5c14db);break;}}[_0x4b8fc7(0x187)](_0x1bb0e5){const _0x273220=_0x4b8fc7,{unitIDs:_0x2a89cb,memberID:_0x38b687,isForwarded:_0x2892a0}=_0x1bb0e5;_0x2a89cb[_0x273220(0x7d)](_0x5ddabc=>{const _0x2b04f0=_0x273220;if(!_0x2892a0&&this[_0x2b04f0(0x2ff)][_0x2b04f0(0x2e2)](_0x5ddabc)&&this['_ensureSubject'](_0x5ddabc)[_0x2b04f0(0x322)](u['UnitStatus'][_0x2b04f0(0x33d)]),!this[_0x2b04f0(0x2ff)][_0x2b04f0(0x2e2)](_0x5ddabc)||!this[_0x2b04f0(0x2ff)][_0x2b04f0(0x16d)](_0x5ddabc)['has'](_0x38b687)){const _0x40f7ed=this['_unitOnClients']['get'](_0x5ddabc)||new Set();_0x40f7ed[_0x2b04f0(0x219)](_0x38b687),this['_unitOnClients'][_0x2b04f0(0x272)](_0x5ddabc,_0x40f7ed),this[_0x2b04f0(0xef)](_0x38b687);}}),_0x2892a0||this[_0x273220(0x34a)]({'type':0x0,'memberID':this[_0x273220(0x334)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3007c8){const _0x1b98ed=_0x4b8fc7;this[_0x1b98ed(0x1fe)](_0x3007c8);const _0x26d89a=window[_0x1b98ed(0x24e)](()=>{const _0x5e1503=_0x1b98ed;this[_0x5e1503(0x2ff)]['forEach'](_0x2492e8=>{const _0x176815=_0x5e1503;_0x2492e8[_0x176815(0x224)](_0x3007c8);});},we*0x2);this[_0x1b98ed(0x264)]['set'](_0x3007c8,_0x26d89a);}[_0x4b8fc7(0x1fe)](_0x5c2b46){const _0x35b933=_0x4b8fc7;if(this[_0x35b933(0x264)]['has'](_0x5c2b46)){const _0x4d1a1c=this[_0x35b933(0x264)][_0x35b933(0x16d)](_0x5c2b46);_0x4d1a1c&&window[_0x35b933(0x1c5)](_0x4d1a1c),this['_clearOtherTimers'][_0x35b933(0x272)](_0x5c2b46,null);}}[_0x4b8fc7(0x309)](_0x314061){const _0x180b92=_0x4b8fc7,{memberID:_0x3a538a,unitIDs:_0x4e146e}=_0x314061;_0x4e146e[_0x180b92(0x7d)](_0x596c91=>{const _0x2a6cfe=_0x180b92;var _0x2a4234;const _0x284cd4=this[_0x2a6cfe(0x2ff)][_0x2a6cfe(0x16d)](_0x596c91);_0x284cd4&&(_0x284cd4[_0x2a6cfe(0x224)](_0x3a538a),(_0x2a4234=this[_0x2a6cfe(0x1de)](_0x596c91))==null||_0x2a4234[_0x2a6cfe(0x322)](_0x284cd4[_0x2a6cfe(0x1a1)]===0x0?u[_0x2a6cfe(0x8f)]['NO_OTHER_CLIENTS_EDITING']:u[_0x2a6cfe(0x8f)][_0x2a6cfe(0x33d)]));}),this[_0x180b92(0x1fe)](_0x3a538a);}[_0x4b8fc7(0x1f8)](_0x1baa38){const _0x3b5b4d=_0x4b8fc7;this[_0x3b5b4d(0xef)](_0x1baa38[_0x3b5b4d(0x2a8)]);}[_0x4b8fc7(0x34a)](_0x4570dc){const _0x4ac63e=_0x4b8fc7;localStorage['setItem'](ye,JSON[_0x4ac63e(0x13c)](_0x4570dc));}[_0x4b8fc7(0x315)](){const _0x40c0c0=_0x4b8fc7;this['_heartbeatTimer']=window[_0x40c0c0(0x1ae)](()=>{const _0x539082=_0x40c0c0;this[_0x539082(0x34a)]({'type':0x2,'memberID':this[_0x539082(0x334)]});},we);}[_0x4b8fc7(0x1de)](_0x3ffe43){const _0x55c2a4=_0x4b8fc7;return this['_unitStatus']['has'](_0x3ffe43)||this[_0x55c2a4(0x117)][_0x55c2a4(0x272)](_0x3ffe43,new I[(_0x55c2a4(0x2ad))](u[_0x55c2a4(0x8f)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x55c2a4(0x117)][_0x55c2a4(0x16d)](_0x3ffe43);}}exports[_0x4b8fc7(0x235)]=Oe,exports[_0x4b8fc7(0x265)]=je,exports[_0x4b8fc7(0x2f7)]=fs,exports[_0x4b8fc7(0x84)]=ke;
|
|
1
|
+
'use strict';const _0x12c13e=_0x4e05;(function(_0x34eb39,_0x1b4948){const _0x4b4244=_0x4e05,_0x48ee8e=_0x34eb39();while(!![]){try{const _0x379b8d=parseInt(_0x4b4244(0x21f))/0x1+parseInt(_0x4b4244(0x362))/0x2*(parseInt(_0x4b4244(0x33d))/0x3)+-parseInt(_0x4b4244(0x33e))/0x4*(parseInt(_0x4b4244(0x201))/0x5)+-parseInt(_0x4b4244(0x114))/0x6+-parseInt(_0x4b4244(0xe9))/0x7+-parseInt(_0x4b4244(0xf2))/0x8+parseInt(_0x4b4244(0x379))/0x9;if(_0x379b8d===_0x1b4948)break;else _0x48ee8e['push'](_0x48ee8e['shift']());}catch(_0x52a57c){_0x48ee8e['push'](_0x48ee8e['shift']());}}}(_0x7500,0x1dba0));var Xe=Object['defineProperty'],Ke=(_0x3b7c06,_0x568a57,_0x48e26f)=>_0x568a57 in _0x3b7c06?Xe(_0x3b7c06,_0x568a57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48e26f}):_0x3b7c06[_0x568a57]=_0x48e26f,_=(_0x54544e,_0x28f80c,_0x48aa05)=>Ke(_0x54544e,typeof _0x28f80c!='symbol'?_0x28f80c+'':_0x28f80c,_0x48aa05);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x12c13e(0xfb)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x273f39,..._0x4cac29}){const _0x5c68c9=_0x12c13e,{icon:_0x18a5a3,id:_0x1b11e2,className:_0x5ed94a,extend:_0x16fd07,..._0xaaba7}=_0x4cac29,_0x18cec5=('univerjs-icon\x20univerjs-icon-'+_0x1b11e2+'\x20'+(_0x5ed94a||''))[_0x5c68c9(0x210)](),_0x53912a=A['useRef']('_'+Qe());return $e(_0x18a5a3,''+_0x1b11e2,{'defIds':_0x18a5a3['defIds'],'idSuffix':_0x53912a[_0x5c68c9(0x10d)]},{'ref':_0x273f39,'className':_0x18cec5,..._0xaaba7},_0x16fd07);}function $e(_0x34a037,_0x32a3de,_0x4e4186,_0x3fdca3,_0x225d55){const _0x2bd0b7=_0x12c13e;return A[_0x2bd0b7(0x353)](_0x34a037[_0x2bd0b7(0x37f)],{'key':_0x32a3de,...Je(_0x34a037,_0x4e4186,_0x225d55),..._0x3fdca3},(Ze(_0x34a037,_0x4e4186)[_0x2bd0b7(0x169)]||[])[_0x2bd0b7(0x200)]((_0x1083a2,_0x576056)=>$e(_0x1083a2,_0x32a3de+'-'+_0x34a037[_0x2bd0b7(0x37f)]+'-'+_0x576056,_0x4e4186,void 0x0,_0x225d55)));}function Je(_0x4fcc7f,_0x2b8fd5,_0x584d6a){const _0x513d27=_0x12c13e,_0x4492df={..._0x4fcc7f[_0x513d27(0x11e)]};_0x584d6a!=null&&_0x584d6a[_0x513d27(0x2e1)]&&_0x4492df[_0x513d27(0xdd)]==='colorChannel1'&&(_0x4492df[_0x513d27(0xdd)]=_0x584d6a[_0x513d27(0x2e1)]),_0x4fcc7f['tag']===_0x513d27(0x16f)&&_0x4492df['id']&&(_0x4492df['id']=_0x4492df['id']+_0x2b8fd5[_0x513d27(0x316)]),Object[_0x513d27(0x120)](_0x4492df)[_0x513d27(0x2aa)](([_0x4f42e8,_0x176d07])=>{const _0xc75ecd=_0x513d27;_0x4f42e8===_0xc75ecd(0x16f)&&typeof _0x176d07==_0xc75ecd(0x152)&&(_0x4492df[_0x4f42e8]=_0x176d07[_0xc75ecd(0x142)](/url\(#(.*)\)/,_0xc75ecd(0x11b)+_0x2b8fd5[_0xc75ecd(0x316)]+')'));});const {defIds:_0xcbd8b3}=_0x2b8fd5;return!_0xcbd8b3||_0xcbd8b3[_0x513d27(0x1b0)]===0x0||(_0x4fcc7f[_0x513d27(0x37f)]==='use'&&_0x4492df[_0x513d27(0x137)]&&(_0x4492df[_0x513d27(0x137)]=_0x4492df[_0x513d27(0x137)]+_0x2b8fd5[_0x513d27(0x316)]),Object[_0x513d27(0x120)](_0x4492df)[_0x513d27(0x2aa)](([_0x58d224,_0x1a6e96])=>{const _0x167b23=_0x513d27;typeof _0x1a6e96==_0x167b23(0x152)&&(_0x4492df[_0x58d224]=_0x1a6e96[_0x167b23(0x142)](/url\(#(.*)\)/,_0x167b23(0x11b)+_0x2b8fd5[_0x167b23(0x316)]+')'));})),_0x4492df;}function Ze(_0x23bd79,_0x31e491){const _0xde3c00=_0x12c13e;var _0x4e0771;const {defIds:_0xc263f4}=_0x31e491;return!_0xc263f4||_0xc263f4[_0xde3c00(0x1b0)]===0x0?_0x23bd79:_0x23bd79[_0xde3c00(0x37f)]==='defs'&&((_0x4e0771=_0x23bd79['children'])!=null&&_0x4e0771[_0xde3c00(0x1b0)])?{..._0x23bd79,'children':_0x23bd79[_0xde3c00(0x169)][_0xde3c00(0x200)](_0x293982=>typeof _0x293982[_0xde3c00(0x11e)]['id']==_0xde3c00(0x152)&&_0xc263f4&&_0xc263f4[_0xde3c00(0x1f1)](_0x293982[_0xde3c00(0x11e)]['id'])?{..._0x293982,'attrs':{..._0x293982[_0xde3c00(0x11e)],'id':_0x293982['attrs']['id']+_0x31e491['idSuffix']}}:_0x293982)}:_0x23bd79;}function Qe(){const _0x2d214c=_0x12c13e;return Math[_0x2d214c(0x351)]()[_0x2d214c(0x2fa)](0x24)[_0x2d214c(0x13b)](0x2,0x8);}pe[_0x12c13e(0xec)]=_0x12c13e(0x168);const et={'tag':_0x12c13e(0xd0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12c13e(0x2ec),'viewBox':_0x12c13e(0x338),'width':_0x12c13e(0x2ac),'height':_0x12c13e(0x2ac)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x12c13e(0x306),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x12c13e(0x272),'strokeLinejoin':_0x12c13e(0x272),'strokeWidth':1.2}}]},{'tag':_0x12c13e(0x2ae),'attrs':{},'children':[{'tag':_0x12c13e(0x35a),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x12c13e(0x306),'attrs':{'fill':'white','d':_0x12c13e(0xf3)}}]}]}],'defIds':[_0x12c13e(0x182)]},xe=A['forwardRef'](function(_0x496096,_0x43e444){const _0x375bb5=_0x12c13e;return A[_0x375bb5(0x353)](pe,Object['assign']({},_0x496096,{'id':'off-line-icon','ref':_0x43e444,'icon':et}));});xe['displayName']='OffLineIcon';const tt={'tag':_0x12c13e(0xd0),'attrs':{'xmlns':_0x12c13e(0x2f2),'fill':_0x12c13e(0x2ec),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x12c13e(0x2ac)},'children':[{'tag':'g','attrs':{'clipPath':_0x12c13e(0x237)},'children':[{'tag':_0x12c13e(0x306),'attrs':{'stroke':'currentColor','d':_0x12c13e(0x102),'strokeLinecap':_0x12c13e(0x272),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x12c13e(0x2ae),'attrs':{},'children':[{'tag':_0x12c13e(0x35a),'attrs':{'id':_0x12c13e(0x2f9)},'children':[{'tag':_0x12c13e(0x306),'attrs':{'fill':_0x12c13e(0x314),'d':_0x12c13e(0xf3),'transform':'translate(.97)'}}]}]}],'defIds':[_0x12c13e(0x2f9)]},Be=A['forwardRef'](function(_0x161eeb,_0x1cd553){const _0x1e7746=_0x12c13e;return A[_0x1e7746(0x353)](pe,Object['assign']({},_0x161eeb,{'id':_0x1e7746(0x319),'ref':_0x1cd553,'icon':tt}));});Be['displayName']=_0x12c13e(0x343);function _0x4e05(_0x3183a4,_0x280045){_0x3183a4=_0x3183a4-0xcd;const _0x75007c=_0x7500();let _0x4e053a=_0x75007c[_0x3183a4];return _0x4e053a;}function st(_0x24ccaf){const _0x331ce8=_0x12c13e;switch(_0x24ccaf){case u['CollaborationStatus'][_0x331ce8(0x32b)]:return _0x331ce8(0x384);case u['CollaborationStatus'][_0x331ce8(0x1e4)]:return _0x331ce8(0x365);case u[_0x331ce8(0x393)][_0x331ce8(0xde)]:return _0x331ce8(0x111);case u['CollaborationStatus'][_0x331ce8(0x1c1)]:return _0x331ce8(0x34f);case u['CollaborationStatus'][_0x331ce8(0x1ea)]:case u[_0x331ce8(0x393)][_0x331ce8(0x281)]:return _0x331ce8(0x330);case u[_0x331ce8(0x393)][_0x331ce8(0x2e2)]:case u[_0x331ce8(0x393)][_0x331ce8(0x1ee)]:return'collabStatus.synced';}}function it(_0x283f90){const _0xc2463f=_0x12c13e,{status$:_0x3a8611}=_0x283f90,_0x1e0a54=O['useObservable'](_0x3a8611,u[_0xc2463f(0x393)][_0xc2463f(0x1c1)]),_0x17a1da=O[_0xc2463f(0x217)](a[_0xc2463f(0x260)]),_0x528a61=O[_0xc2463f(0x217)](u[_0xc2463f(0x1ec)]),_0x193ddb=_0x1e0a54!==u[_0xc2463f(0x393)][_0xc2463f(0x32b)],_0x3bbfd6=_0x17a1da['t'](st(_0x1e0a54)),_0x351673=_0x193ddb?M[_0xc2463f(0x155)](Be,{}):M[_0xc2463f(0x155)](xe,{}),_0x238595=A[_0xc2463f(0x1ed)](()=>{_0x193ddb||_0x528a61['reconnect']();},[_0x193ddb,_0x528a61]);function _0x163dce(){const _0x21e529=_0xc2463f;return M[_0x21e529(0x363)]('div',{'className':_0x21e529(0x369),'onClick':_0x238595,'children':[M['jsx'](_0x21e529(0x227),{'className':p[_0x21e529(0x1db)](_0x21e529(0xd4),{'univer-text-green-500':_0x193ddb,'univer-text-red-500':!_0x193ddb}),'children':_0x351673}),M[_0x21e529(0x155)](_0x21e529(0x227),{'className':_0x21e529(0x1c0),'children':_0x3bbfd6})]});}return _0x193ddb?_0x163dce():M[_0xc2463f(0x155)](p[_0xc2463f(0x2a2)],{'title':_0x17a1da['t'](_0xc2463f(0x296)),'children':_0x163dce()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x22b5ba,_0x4e316e,_0x201232,_0xa906ea)=>{const _0x4c9be0=_0x12c13e;for(var _0x16f39f=_0xa906ea>0x1?void 0x0:_0xa906ea?nt(_0x4e316e,_0x201232):_0x4e316e,_0x27d972=_0x22b5ba[_0x4c9be0(0x1b0)]-0x1,_0x257fa3;_0x27d972>=0x0;_0x27d972--)(_0x257fa3=_0x22b5ba[_0x27d972])&&(_0x16f39f=_0x257fa3(_0x16f39f)||_0x16f39f);return _0x16f39f;},K=(_0x3df1d1,_0xb1769b)=>(_0x7eef71,_0xd77cf4)=>_0xb1769b(_0x7eef71,_0xd77cf4,_0x3df1d1);exports[_0x12c13e(0xf4)]=class extends a[_0x12c13e(0x30f)]{constructor(_0x252d0b,_0x23ec9d,_0x281bc8,_0x247c5f){const _0x4f87c4=_0x12c13e;super(),_(this,_0x4f87c4(0xd8),new I['BehaviorSubject'](u[_0x4f87c4(0x393)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x252d0b,this['_injector']=_0x23ec9d,this[_0x4f87c4(0x1da)]=_0x281bc8,this[_0x4f87c4(0x2d3)]=_0x247c5f,this[_0x4f87c4(0x214)](),this[_0x4f87c4(0x266)]());}[_0x12c13e(0x266)](){const _0x171cfe=_0x12c13e;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x171cfe(0x310)](I[_0x171cfe(0x287)](()=>{const _0x3ed1a4=_0x171cfe,_0x5bff5c=this[_0x3ed1a4(0xe7)][_0x3ed1a4(0x2d1)]();return _0x5bff5c?this[_0x3ed1a4(0x1da)][_0x3ed1a4(0x23d)](_0x5bff5c[_0x3ed1a4(0x36b)]()):I['of'](null);}),I['switchMap'](_0x57eada=>_0x57eada?_0x57eada['status$']:I['of'](u[_0x171cfe(0x393)][_0x171cfe(0x1c1)])))[_0x171cfe(0x148)](_0x6ea698=>{const _0x540433=_0x171cfe;this['_status$'][_0x540433(0x381)](_0x6ea698);}));}[_0x12c13e(0x214)](){const _0x4508af=_0x12c13e;this[_0x4508af(0x20d)](this[_0x4508af(0x2d3)][_0x4508af(0x19b)](O[_0x4508af(0xd2)][_0x4508af(0x1f6)],()=>O[_0x4508af(0x291)](ot({'status$':this[_0x4508af(0xd8)][_0x4508af(0x135)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x12c13e(0x355)]),K(0x1,a[_0x12c13e(0x24b)](a[_0x12c13e(0x24d)])),K(0x2,a[_0x12c13e(0x24b)](u[_0x12c13e(0x2b6)])),K(0x3,O['IUIPartsService'])],exports[_0x12c13e(0xf4)]);function ot(_0x26a754){const {status$:_0x330f6a}=_0x26a754;return function(){const _0x228cc4=_0x4e05;return M[_0x228cc4(0x155)](it,{'status$':_0x330f6a});};}const Oe=a['createIdentifier'](_0x12c13e(0x1c9));var at=Object['getOwnPropertyDescriptor'],ct=(_0x380a7a,_0x3eb494,_0x1e4672,_0x239d18)=>{const _0x148e7f=_0x12c13e;for(var _0x322b79=_0x239d18>0x1?void 0x0:_0x239d18?at(_0x3eb494,_0x1e4672):_0x3eb494,_0x267f07=_0x380a7a[_0x148e7f(0x1b0)]-0x1,_0x49e3be;_0x267f07>=0x0;_0x267f07--)(_0x49e3be=_0x380a7a[_0x267f07])&&(_0x322b79=_0x49e3be(_0x322b79)||_0x322b79);return _0x322b79;},Y=(_0xd107fc,_0x59e790)=>(_0x34a4a7,_0x1ade93)=>_0x59e790(_0x34a4a7,_0x1ade93,_0xd107fc);exports['CollaborationDataLoaderController']=class extends a[_0x12c13e(0x271)]{constructor(_0xebe27a,_0x5d348b,_0x3e733c,_0x2a621a,_0x1ad9b0){const _0x1c432d=_0x12c13e;super(),this['_urlService']=_0xebe27a,this['_logService']=_0x5d348b,this[_0x1c432d(0x2a4)]=_0x3e733c,this[_0x1c432d(0x1cf)]=_0x2a621a,_0x1ad9b0?_0x1ad9b0==null||_0x1ad9b0[_0x1c432d(0x2e6)]()[_0x1c432d(0x26c)](()=>this[_0x1c432d(0x274)]()):(this[_0x1c432d(0x13e)][_0x1c432d(0x242)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x1c432d(0x274)]());}async[_0x12c13e(0x274)](){const _0x2ddb2e=_0x12c13e,_0x29e038=this['_urlService'][_0x2ddb2e(0x1bf)](_0x2ddb2e(0x303)),_0x57ce43=this[_0x2ddb2e(0x28c)][_0x2ddb2e(0x1bf)]('type'),_0x68429d=this[_0x2ddb2e(0x28c)]['getParam'](_0x2ddb2e(0x337));if(!_0x29e038||!_0x57ce43){this['_logService'][_0x2ddb2e(0x242)]('[CollaborationDataLoaderController]',_0x2ddb2e(0x1f7));return;}const _0x1b29be=await this['_dataLoaderService'][_0x2ddb2e(0x2e4)](_0x29e038,Number(_0x57ce43),_0x68429d);_0x1b29be&&_0x1b29be instanceof a[_0x2ddb2e(0xdc)]&&this[_0x2ddb2e(0x174)](_0x1b29be);}async[_0x12c13e(0x174)](_0x2750aa){const _0x2daee9=_0x12c13e;await this[_0x2daee9(0x16c)](_0x2750aa),_0x2750aa[_0x2daee9(0x2e9)][_0x2daee9(0x310)](I[_0x2daee9(0x261)](this['dispose$']))[_0x2daee9(0x148)](_0x3ba0ad=>{_0x3ba0ad&&this['_updateURLWithCurrentState'](_0x3ba0ad);}),this[_0x2daee9(0x28c)][_0x2daee9(0x33b)][_0x2daee9(0x310)](I[_0x2daee9(0x261)](this[_0x2daee9(0x34c)]))[_0x2daee9(0x148)](()=>this[_0x2daee9(0x16c)](_0x2750aa));}[_0x12c13e(0x2a5)](_0x15ca3d,_0x50b05a=!0x1){const _0x5bb690=_0x12c13e,_0x5a2892=this[_0x5bb690(0x28c)]['getParam'](_0x5bb690(0x337));_0x15ca3d['getSheetId']()!==_0x5a2892&&this[_0x5bb690(0x28c)][_0x5bb690(0x2d5)](_0x5bb690(0x337),_0x15ca3d['getSheetId'](),_0x50b05a);}async[_0x12c13e(0x16c)](_0x330992){const _0x26207b=_0x12c13e;var _0x5ab834;const _0x1f20c8=this[_0x26207b(0x28c)][_0x26207b(0x1bf)](_0x26207b(0x337));if(!_0x1f20c8||!_0x330992['getSheetBySheetId'](_0x1f20c8)){const _0x3bb524=_0x330992['getUnhiddenWorksheets']()[0x0],_0xa92eb=_0x330992['getSheetBySheetId'](_0x3bb524);if(!_0xa92eb)return;this[_0x26207b(0x2a5)](_0xa92eb,!0x0),await this[_0x26207b(0x2a4)]['executeCommand'](v[_0x26207b(0x1ff)]['id'],{'unitId':_0x330992[_0x26207b(0x36b)](),'subUnitId':_0x3bb524});return;}((_0x5ab834=_0x330992['getActiveSheet']())==null?void 0x0:_0x5ab834[_0x26207b(0x31f)]())!==_0x1f20c8&&await this[_0x26207b(0x2a4)][_0x26207b(0x328)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x330992[_0x26207b(0x36b)](),'subUnitId':_0x1f20c8});}},exports[_0x12c13e(0x294)]=ct([Y(0x0,Oe),Y(0x1,a[_0x12c13e(0x376)]),Y(0x2,a[_0x12c13e(0x304)]),Y(0x3,a[_0x12c13e(0x24b)](u['DataLoaderService'])),Y(0x4,a[_0x12c13e(0x167)](qe[_0x12c13e(0x235)]))],exports[_0x12c13e(0x294)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0xa98811,_0x2c8bb4,_0x2b684a,_0x4a39b0)=>{const _0x592b99=_0x12c13e;for(var _0x32b53d=_0x4a39b0>0x1?void 0x0:_0x4a39b0?lt(_0x2c8bb4,_0x2b684a):_0x2c8bb4,_0x2f80c3=_0xa98811[_0x592b99(0x1b0)]-0x1,_0x161671;_0x2f80c3>=0x0;_0x2f80c3--)(_0x161671=_0xa98811[_0x2f80c3])&&(_0x32b53d=_0x161671(_0x32b53d)||_0x32b53d);return _0x32b53d;},De=(_0xb488c1,_0x36e39a)=>(_0x2b8ed7,_0x3490cd)=>_0x36e39a(_0x2b8ed7,_0x3490cd,_0xb488c1);let me=class extends a['RxDisposable']{constructor(_0x5834c0,_0xee96e0){const _0x676906=_0x12c13e;super(),this[_0x676906(0x18d)]=_0x5834c0,this[_0x676906(0x326)]=_0xee96e0,this[_0x676906(0x274)]();}[_0x12c13e(0x274)](){const _0x530b47=_0x12c13e,_0x2cb5a9=this;this['disposeWithMe'](this[_0x530b47(0x18d)][_0x530b47(0x195)]({'onBeforePasteImage':async _0x3a8192=>{const _0x37cba2=_0x530b47,_0x3b0db2=await _0x2cb5a9[_0x37cba2(0x326)][_0x37cba2(0x288)](_0x3a8192);return _0x3b0db2?{'source':_0x3b0db2[_0x37cba2(0x263)],'imageSourceType':_0x3b0db2[_0x37cba2(0x2c6)]}:null;}}));}};me=_t([De(0x0,T[_0x12c13e(0x256)]),De(0x1,ze[_0x12c13e(0x220)])],me);const Ne=[_0x12c13e(0x116),_0x12c13e(0x2ba),'green.600',_0x12c13e(0xf9),'blue.400',_0x12c13e(0x186)];class Re extends a[_0x12c13e(0x30f)]{constructor(){const _0x24ae66=_0x12c13e;super(...arguments),_(this,_0x24ae66(0x15e),new Map()),_(this,_0x24ae66(0x35d),0x0);}[_0x12c13e(0xe0)](_0x3ef95f){const _0x74eff0=_0x12c13e;if(this[_0x74eff0(0x15e)][_0x74eff0(0x192)](_0x3ef95f))return this[_0x74eff0(0x15e)]['get'](_0x3ef95f);const _0x30d4bf=Ne[this['_colorIndex']];return this[_0x74eff0(0x35d)]=(this[_0x74eff0(0x35d)]+0x1)%Ne[_0x74eff0(0x1b0)],this['_assignedColors'][_0x74eff0(0x14c)](_0x3ef95f,_0x30d4bf),_0x30d4bf;}}function Fe(_0x272c2a){let _0x1b96fb='';for(const _0x332b63 of _0x272c2a){const {startOffset:_0x3db6ef,endOffset:_0x2af370,isActive:_0x4ab8e5,rangeType:_0x431cf4,segmentId:_0xb74fa3,segmentPage:_0x42dfc0}=_0x332b63;_0x1b96fb['length']&&(_0x1b96fb+=','),_0x1b96fb+=_0x3db6ef+':'+_0x2af370+':'+(_0x4ab8e5?'1':'0')+':'+_0x431cf4+':'+_0xb74fa3+':'+_0x42dfc0;}return _0x1b96fb;}function ht(_0x4f31dc){const _0x5f233d=_0x12c13e,_0x2517c9=_0x4f31dc[_0x5f233d(0x25b)](','),_0x29e10e=[];for(const _0xd40b28 of _0x2517c9){const [_0x3e74c5,_0x1ae703,_0x5cc021,_0x2e224f,_0x1e95ce,_0x54f648]=_0xd40b28['split'](':');_0x29e10e[_0x5f233d(0x248)]({'startOffset':Number(_0x3e74c5),'endOffset':Number(_0x1ae703),'collapsed':_0x3e74c5===_0x1ae703,'isActive':_0x5cc021==='1','rangeType':_0x2e224f===a[_0x5f233d(0x333)]['TEXT']?a['DOC_RANGE_TYPE'][_0x5f233d(0x36c)]:a['DOC_RANGE_TYPE'][_0x5f233d(0x112)],'segmentId':typeof _0x1e95ce==_0x5f233d(0x152)?String(_0x1e95ce):'','segmentPage':Number(_0x54f648!=null?_0x54f648:-0x1)});}return _0x29e10e[_0x5f233d(0x173)](_0x3b129f=>_0x3b129f[_0x5f233d(0x19a)])||(_0x29e10e[0x0]['isActive']=!0x0),_0x29e10e;}class be extends a[_0x12c13e(0x271)]{constructor(){const _0x798a63=_0x12c13e;super(...arguments),_(this,_0x798a63(0x27a),new I[(_0x798a63(0x383))](null)),_(this,_0x798a63(0x229),this[_0x798a63(0x27a)]['asObservable']());}[_0x12c13e(0x18e)](_0x4f217b){const _0x325677=_0x12c13e,{unitID:_0x3f8fd0,memberID:_0x4363d5,textRanges:_0x3fcc77}=_0x4f217b,_0x2beb9a=Fe(_0x3fcc77);if(_0x2beb9a==='')return;const _0x1d2c2e={'unitID':_0x3f8fd0,'memberID':_0x4363d5,'selection':_0x2beb9a};this[_0x325677(0x27a)]['next'](_0x1d2c2e);}}var ut=Object[_0x12c13e(0x331)],It=(_0x59621b,_0x3d9ff1,_0x5cf4e2,_0x1edbf9)=>{const _0x30e3c4=_0x12c13e;for(var _0x231039=_0x1edbf9>0x1?void 0x0:_0x1edbf9?ut(_0x3d9ff1,_0x5cf4e2):_0x3d9ff1,_0x1fa4f0=_0x59621b[_0x30e3c4(0x1b0)]-0x1,_0x32d5f4;_0x1fa4f0>=0x0;_0x1fa4f0--)(_0x32d5f4=_0x59621b[_0x1fa4f0])&&(_0x231039=_0x32d5f4(_0x231039)||_0x231039);return _0x231039;},U=(_0x3244ef,_0x42f36f)=>(_0x96ad99,_0x2ad231)=>_0x42f36f(_0x96ad99,_0x2ad231,_0x3244ef);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x4a501a,_0x5be1ed,_0x288005,_0x26ce06,_0x3f3d76,_0x21c18f,_0x99bc6f,_0x378028,_0x570455){const _0x5e5b31=_0x12c13e;super(),_(this,_0x5e5b31(0x37d),!0x1),_(this,_0x5e5b31(0x274),!0x1),_(this,_0x5e5b31(0x301),new I['BehaviorSubject'](new Map())),_(this,_0x5e5b31(0x292),this[_0x5e5b31(0x301)][_0x5e5b31(0x135)]()),_(this,_0x5e5b31(0x20a),new I[(_0x5e5b31(0x383))]([])),_(this,_0x5e5b31(0x194),this['_roomMembers$'][_0x5e5b31(0x310)](I[_0x5e5b31(0x285)](St))),_(this,_0x5e5b31(0x29b),a[_0x5e5b31(0x26b)](_0x29df79=>{const _0x24bd27=_0x5e5b31,_0x1f2fac={'eventID':g[_0x24bd27(0x37e)][_0x24bd27(0x25d)],'data':{'unitID':this[_0x24bd27(0xe4)],'memberID':this[_0x24bd27(0x12a)]['getMemberID'](),'selection':Fe(_0x29df79)}};this[_0x24bd27(0x12a)][_0x24bd27(0x2a3)](_0x1f2fac,this['unitID']);},dt)),(this[_0x5e5b31(0xe4)]=_0x4a501a,this['_session']=_0x5be1ed,this[_0x5e5b31(0x30d)]=_0x288005,this[_0x5e5b31(0x28e)]=_0x26ce06,this['_memberService']=_0x3f3d76,this[_0x5e5b31(0x104)]=_0x21c18f,this[_0x5e5b31(0x2cf)]=_0x99bc6f,this[_0x5e5b31(0xe7)]=_0x378028,this[_0x5e5b31(0x2a4)]=_0x570455);}get[_0x12c13e(0x377)](){const _0x509046=_0x12c13e;return this[_0x509046(0x301)][_0x509046(0x144)]();}get[_0x12c13e(0x1fb)](){const _0x5de257=_0x12c13e;return this[_0x5de257(0x20a)][_0x5de257(0x144)]();}['dispose'](){const _0x47751e=_0x12c13e;super[_0x47751e(0x15a)](),this[_0x47751e(0x301)]['next'](new Map()),this[_0x47751e(0x301)]['complete'](),this[_0x47751e(0x20a)]['next']([]),this[_0x47751e(0x20a)][_0x47751e(0x157)]();}['init'](){const _0x336d85=_0x12c13e;this[_0x336d85(0x274)]||(this[_0x336d85(0x274)]=!0x0,this[_0x336d85(0x12a)][_0x336d85(0x2b3)][_0x336d85(0x310)](I[_0x336d85(0x261)](this[_0x336d85(0x34c)]))[_0x336d85(0x148)](_0x1294ca=>{const _0x46648e=_0x336d85;_0x1294ca===u[_0x46648e(0x143)][_0x46648e(0x146)]?this[_0x46648e(0x15c)]():this['_toggleOffline']();}),this[_0x336d85(0x12a)][_0x336d85(0x226)][_0x336d85(0x310)](I['takeUntil'](this[_0x336d85(0x34c)]))[_0x336d85(0x148)](_0x2a8c75=>{const _0x5564e9=_0x336d85,_0x5a59fe=_0x2a8c75[_0x5564e9(0x2b4)];_0x5a59fe===g[_0x5564e9(0x37e)][_0x5564e9(0x25d)]&&this[_0x5564e9(0x2c1)](_0x2a8c75),_0x5a59fe===g[_0x5564e9(0x37e)][_0x5564e9(0x2e7)]&&this[_0x5564e9(0x165)](_0x2a8c75);}),this[_0x336d85(0x20d)](this[_0x336d85(0x2a4)]['onCommandExecuted'](_0x31af34=>{const _0x46aa02=_0x336d85,_0x569fd6=_0x31af34[_0x46aa02(0x2cb)];_0x569fd6!=null&&this[_0x46aa02(0x37d)]&&_0x31af34['id']===V['SetTextSelectionsOperation']['id']&&_0x569fd6[_0x46aa02(0x14f)]===this['unitID']&&_0x569fd6['isEditing']===!0x1&&_0x569fd6[_0x46aa02(0x298)]['length']>0x0&&this[_0x46aa02(0x29b)](_0x569fd6[_0x46aa02(0x298)]);})),this[_0x336d85(0x104)][_0x336d85(0x229)][_0x336d85(0x310)](I[_0x336d85(0x261)](this[_0x336d85(0x34c)]))[_0x336d85(0x148)](_0x3d4062=>{const _0x5c7c47=_0x336d85;if((_0x3d4062==null?void 0x0:_0x3d4062['unitID'])!==this['unitID'])return;const _0x233a02={'eventID':g[_0x5c7c47(0x37e)]['UPDATE_CURSOR'],'data':_0x3d4062};this[_0x5c7c47(0x2c1)](_0x233a02);}),this[_0x336d85(0x20d)](this[_0x336d85(0x2a4)][_0x336d85(0x15d)](_0x456d02=>{const _0x29b40f=_0x336d85;if(_0x456d02[_0x29b40f(0x2cb)]==null)return;const _0x4165e4=_0x456d02[_0x29b40f(0x2cb)];if(_0x456d02['id']!==V[_0x29b40f(0x2cd)]['id']||_0x4165e4[_0x29b40f(0x14f)]!==this[_0x29b40f(0xe4)])return;const _0x2ca229={'id':_0x29b40f(0x124),'params':_0x4165e4},_0x36f84c=this[_0x29b40f(0x377)];for(const [_0xfaebef,_0x582099]of _0x36f84c){const _0x5ed086={'id':_0x29b40f(0x124),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x582099['ranges']}},_0x1a2954=this['_transformService']['transformMutation'](_0x2ca229,_0x5ed086,!0x1);if(g[_0x29b40f(0x385)](_0x1a2954))throw _0x1a2954[_0x29b40f(0xed)];_0x36f84c[_0x29b40f(0x14c)](_0xfaebef,{..._0x582099,'ranges':_0x1a2954['m2Prime'][_0x29b40f(0x2cb)][_0x29b40f(0x1f2)]});}queueMicrotask(()=>{const _0x1c801c=_0x29b40f;this['_cursorInfo$'][_0x1c801c(0x381)](_0x36f84c);});})));}[_0x12c13e(0x2c1)](_0x55b507){const _0x3cb3d7=_0x12c13e;var _0x46b7a9,_0x34c3c1;const {memberID:_0x4c9a2e,selection:_0x33f5a0}=_0x55b507[_0x3cb3d7(0x13c)],_0x4b014b=ht(_0x33f5a0),_0x33722c=(_0x34c3c1=(_0x46b7a9=this[_0x3cb3d7(0x230)]['getMember'](this[_0x3cb3d7(0xe4)],_0x4c9a2e))==null?void 0x0:_0x46b7a9[_0x3cb3d7(0x10a)])!=null?_0x34c3c1:'Unknown\x20user',_0x324f78={'color':this[_0x3cb3d7(0x28e)][_0x3cb3d7(0xe0)](_0x4c9a2e),'name':_0x33722c,'ranges':_0x4b014b},_0x3cd92c=this[_0x3cb3d7(0x377)];_0x3cd92c['set'](_0x4c9a2e,_0x324f78),this[_0x3cb3d7(0x301)][_0x3cb3d7(0x381)](_0x3cd92c);}[_0x12c13e(0x165)](_0x263e3f){const _0xce73bc=_0x12c13e,{memberID:_0x433a0c}=_0x263e3f[_0xce73bc(0x13c)],_0x2f1795=this[_0xce73bc(0x377)];_0x2f1795['delete'](_0x433a0c),this[_0xce73bc(0x301)][_0xce73bc(0x381)](_0x2f1795);}[_0x12c13e(0x15c)](){const _0x1979b4=_0x12c13e;var _0x125e1b;if(this[_0x1979b4(0x37d)]=!0x0,((_0x125e1b=this['_univerInstanceService'][_0x1979b4(0x2d1)]())==null?void 0x0:_0x125e1b[_0x1979b4(0x36b)]())!==this[_0x1979b4(0xe4)])return;const _0x208575=this[_0x1979b4(0x30d)]['get'](V[_0x1979b4(0x130)])[_0x1979b4(0x1de)]();Array[_0x1979b4(0x21b)](_0x208575)&&_0x208575['length']>0x0&&this[_0x1979b4(0x29b)](_0x208575);}[_0x12c13e(0x18f)](){const _0x4c9e4b=_0x12c13e;this[_0x4c9e4b(0x37d)]=!0x1;}};ve=It([U(0x2,a[_0x12c13e(0x24b)](a['Injector'])),U(0x3,a[_0x12c13e(0x24b)](Re)),U(0x4,a['Inject'](u[_0x12c13e(0xe8)])),U(0x5,a['Inject'](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x12c13e(0x355)]),U(0x8,a[_0x12c13e(0x304)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x2ba29d,_0x1d3f8f,_0x345f55,_0x335e1a)=>{for(var _0x104b42=_0x335e1a>0x1?void 0x0:_0x335e1a?ft(_0x1d3f8f,_0x345f55):_0x1d3f8f,_0x20efa2=_0x2ba29d['length']-0x1,_0x3c3bdd;_0x20efa2>=0x0;_0x20efa2--)(_0x3c3bdd=_0x2ba29d[_0x20efa2])&&(_0x104b42=_0x3c3bdd(_0x104b42)||_0x104b42);return _0x104b42;},w=(_0xa7a819,_0x2ecf12)=>(_0x2cf693,_0x11228c)=>_0x2ecf12(_0x2cf693,_0x11228c,_0xa7a819);const vt=0x12c,gt=0x64,Et=()=>{let _0x70fd8f=[],_0x1181c1=!0x1;return _0x4352e7=>{_0x70fd8f['push'](_0x4352e7),_0x1181c1||(_0x1181c1=!0x0,setTimeout(()=>{_0x70fd8f['forEach'](_0x22d51f=>_0x22d51f()),_0x70fd8f=[],_0x1181c1=!0x1;}));};};let ge=class extends a[_0x12c13e(0x271)]{constructor(_0x5e8bde,_0x1b26c0,_0x236f42,_0x25180b,_0x4e9919,_0x58de96,_0x164093,_0x436439){const _0x49de62=_0x12c13e;super(),_(this,_0x49de62(0x37d),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x49de62(0x292),this['_cursorInfo$'][_0x49de62(0x135)]()),_(this,_0x49de62(0x20a),new I[(_0x49de62(0x383))]([])),_(this,_0x49de62(0x194),this[_0x49de62(0x20a)]['pipe'](I[_0x49de62(0x285)](vt))),_(this,_0x49de62(0x29b),a['debounce']((_0x2d2d29,_0x28948b)=>{const _0x376807=_0x49de62,_0x4da443={'eventID':g[_0x376807(0x37e)][_0x376807(0x25d)],'data':{'unitID':this[_0x376807(0xe4)],'memberID':this[_0x376807(0x12a)]['getMemberID'](),'selection':B[_0x376807(0x392)](_0x2d2d29,_0x28948b[_0x376807(0x125)])}};this['_session'][_0x376807(0x2a3)](_0x4da443,this['unitID']);},gt)),(this[_0x49de62(0xe4)]=_0x5e8bde,this[_0x49de62(0x12a)]=_0x1b26c0,this[_0x49de62(0x30d)]=_0x236f42,this['_colorAssignService']=_0x25180b,this[_0x49de62(0x230)]=_0x4e9919,this['_univerInstanceService']=_0x58de96,this[_0x49de62(0x2a4)]=_0x164093,this[_0x49de62(0x36e)]=_0x436439);}get[_0x12c13e(0x377)](){return this['_cursorInfo$']['getValue']();}get[_0x12c13e(0x1fb)](){const _0x4e20c7=_0x12c13e;return this[_0x4e20c7(0x20a)]['getValue']();}[_0x12c13e(0x15a)](){const _0x5afb47=_0x12c13e;super[_0x5afb47(0x15a)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x5afb47(0x157)](),this[_0x5afb47(0x20a)][_0x5afb47(0x381)]([]),this['_roomMembers$'][_0x5afb47(0x157)]();}[_0x12c13e(0x37a)](){const _0x5dfbc9=_0x12c13e;this[_0x5dfbc9(0x274)]||(this[_0x5dfbc9(0x274)]=!0x0,this[_0x5dfbc9(0x12a)][_0x5dfbc9(0x2b3)][_0x5dfbc9(0x310)](I[_0x5dfbc9(0x261)](this[_0x5dfbc9(0x34c)]))['subscribe'](_0x4821a3=>{const _0x2adb02=_0x5dfbc9;_0x4821a3===u[_0x2adb02(0x143)][_0x2adb02(0x146)]?this[_0x2adb02(0x15c)]():this[_0x2adb02(0x18f)]();}),this['_session']['event$']['pipe'](I[_0x5dfbc9(0x261)](this[_0x5dfbc9(0x34c)]))['subscribe'](_0x35058b=>{const _0x4f2bdf=_0x5dfbc9,_0xec9306=_0x35058b['eventID'];_0xec9306===g[_0x4f2bdf(0x37e)][_0x4f2bdf(0x25d)]&&this[_0x4f2bdf(0x2c1)](_0x35058b),_0xec9306===g['CollaborationEvent'][_0x4f2bdf(0x2e7)]&&this['_onCursorDelete'](_0x35058b);}),this[_0x5dfbc9(0x140)](),this[_0x5dfbc9(0x20d)](this[_0x5dfbc9(0x2a4)][_0x5dfbc9(0x15d)](_0x130063=>{const _0x2a0acd=_0x5dfbc9;if(this[_0x2a0acd(0x37d)]&&_0x130063['id']===v[_0x2a0acd(0x15b)]['id']&&_0x130063[_0x2a0acd(0x2cb)][_0x2a0acd(0x14f)]===this['unitID']){const _0xbca740=_0x130063[_0x2a0acd(0x2cb)];this['_updateLocalCursor'](_0xbca740[_0x2a0acd(0x252)],_0xbca740['selections'][0x0]);}})));}[_0x12c13e(0x2c1)](_0x47c59e){const _0x5d79c1=_0x12c13e;var _0x3ca83e,_0x59eadc;const {memberID:_0x5945e2,selection:_0x45b50d}=_0x47c59e[_0x5d79c1(0x13c)],{sheetName:_0x3b517b,range:_0x4a8472}=B[_0x5d79c1(0x189)](_0x45b50d),_0x4ff844={'name':(_0x59eadc=(_0x3ca83e=this[_0x5d79c1(0x230)][_0x5d79c1(0x115)](this[_0x5d79c1(0xe4)],_0x5945e2))==null?void 0x0:_0x3ca83e['name'])!=null?_0x59eadc:_0x5d79c1(0x20f),'range':this[_0x5d79c1(0x187)](_0x3b517b,_0x4a8472),'sheetID':_0x3b517b,'color':this[_0x5d79c1(0x28e)][_0x5d79c1(0xe0)](_0x5945e2),'selection':_0x45b50d},_0x164f02=this[_0x5d79c1(0x377)];_0x164f02[_0x5d79c1(0x14c)](_0x5945e2,_0x4ff844),this[_0x5d79c1(0x301)][_0x5d79c1(0x381)](_0x164f02);}[_0x12c13e(0x165)](_0x9b1c2c){const _0x48ee0c=_0x12c13e,{memberID:_0x103620}=_0x9b1c2c[_0x48ee0c(0x13c)],_0x5154fb=this[_0x48ee0c(0x377)];_0x5154fb[_0x48ee0c(0x106)](_0x103620),this[_0x48ee0c(0x301)][_0x48ee0c(0x381)](_0x5154fb);}[_0x12c13e(0x187)](_0x3555a6,_0x15cedd){const _0x312835=_0x12c13e;var _0x369e70,_0x53753d;const _0x1100b9=(_0x53753d=(_0x369e70=this[_0x312835(0xe7)]['getUniverSheetInstance'](this[_0x312835(0xe4)]))==null?void 0x0:_0x369e70['getSheetBySheetId'](_0x3555a6))==null?void 0x0:_0x53753d[_0x312835(0x265)]();return(_0x1100b9==null?void 0x0:_0x1100b9[_0x312835(0x250)](_0x35eb02=>a[_0x312835(0x25a)][_0x312835(0x2b2)](_0x35eb02,_0x15cedd)))||_0x15cedd;}[_0x12c13e(0x140)](){const _0x5a7b23=_0x12c13e,_0x402661=new a[(_0x5a7b23(0x14d))](),_0x1a413f=Et(),_0x161bcf=()=>{const _0x5013bd=_0x5a7b23;_0x402661[_0x5013bd(0x15a)]();const _0x17dcf6=(_0x2c83a6,_0x39c954,_0x1749cb,_0x4cd6bd)=>{const _0x3a416d=_0x5013bd;let _0x3ac562=[];switch(_0x2c83a6['id']){case v[_0x3a416d(0x2df)][_0x3a416d(0x380)]:{_0x3ac562=v['handleDeleteRangeMoveLeft'](_0x2c83a6,_0x4cd6bd);break;}case v[_0x3a416d(0x2df)][_0x3a416d(0xcd)]:{_0x3ac562=v[_0x3a416d(0x26a)](_0x2c83a6,_0x4cd6bd);break;}case v[_0x3a416d(0x2df)][_0x3a416d(0x2b7)]:{_0x3ac562=v[_0x3a416d(0x2e3)](_0x2c83a6,_0x4cd6bd);break;}case v['EffectRefRangId'][_0x3a416d(0x23b)]:{_0x3ac562=v[_0x3a416d(0x317)](_0x2c83a6,_0x4cd6bd);break;}case v[_0x3a416d(0x2df)][_0x3a416d(0x1a2)]:{_0x3ac562=v[_0x3a416d(0x1e1)](_0x2c83a6,_0x4cd6bd);break;}case v[_0x3a416d(0x2df)]['InsertRowCommandId']:{_0x3ac562=v[_0x3a416d(0x172)](_0x2c83a6,_0x4cd6bd);break;}case v['EffectRefRangId'][_0x3a416d(0x36a)]:{_0x3ac562=v[_0x3a416d(0x2a8)](_0x2c83a6,_0x4cd6bd);break;}case v[_0x3a416d(0x2df)][_0x3a416d(0x12c)]:{_0x3ac562=v['handleIRemoveCol'](_0x2c83a6,_0x4cd6bd);break;}case v['EffectRefRangId'][_0x3a416d(0x262)]:{_0x3ac562=v['handleIRemoveRow'](_0x2c83a6,_0x4cd6bd);break;}}const _0x4573fd=v['runRefRangeMutations'](_0x3ac562,_0x4cd6bd),_0x599131=this[_0x3a416d(0x377)][_0x3a416d(0x350)](_0x39c954);if(_0x599131&&_0x4573fd){const _0x1a5820={..._0x599131,'range':_0x4573fd};this[_0x3a416d(0x377)]['set'](_0x39c954,_0x1a5820),_0x1a413f(()=>{const _0x46d28e=_0x3a416d,_0x649b52=this[_0x46d28e(0x36e)][_0x46d28e(0x2c5)](_0x4573fd,_0x57292a=>(_0x649b52[_0x46d28e(0x15a)](),_0x17dcf6(_0x57292a,_0x39c954,_0x1749cb,_0x4573fd)));_0x402661[_0x46d28e(0x1f9)](_0x649b52);});}return{'redos':[],'undos':[]};};this[_0x5013bd(0x377)][_0x5013bd(0x2aa)]((_0x5c682c,_0x1e0c72)=>{const _0x433550=_0x5013bd,{range:_0x1333d9,sheetID:_0x45954f}=_0x5c682c,_0x3082a4=this[_0x433550(0x36e)][_0x433550(0x2c5)](_0x1333d9,_0x4788a1=>(_0x3082a4[_0x433550(0x15a)](),_0x17dcf6(_0x4788a1,_0x1e0c72,_0x45954f,_0x1333d9)));_0x402661['add'](_0x3082a4);});};this[_0x5a7b23(0x20d)](a[_0x5a7b23(0x269)](this['_cursorInfo$']['subscribe'](()=>{_0x161bcf();})));}['_toggleOnline'](){const _0x2a1475=_0x12c13e;var _0x4b587e,_0x4e2334;if(this['_online']=!0x0,((_0x4b587e=this[_0x2a1475(0xe7)][_0x2a1475(0x2d1)]())==null?void 0x0:_0x4b587e['getUnitId']())!==this[_0x2a1475(0xe4)])return;const _0x304278=(_0x4e2334=this[_0x2a1475(0x30d)]['get'](v[_0x2a1475(0x141)])[_0x2a1475(0x11c)]())==null?void 0x0:_0x4e2334[0x0],_0x2a75bd=this['_univerInstanceService'][_0x2a1475(0x2a6)](a[_0x2a1475(0x234)][_0x2a1475(0x11f)])['getActiveSheet']();_0x304278&&_0x2a75bd&&this[_0x2a1475(0x29b)](_0x2a75bd[_0x2a1475(0x31f)](),_0x304278);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a['Inject'](a[_0x12c13e(0x24d)])),w(0x3,a[_0x12c13e(0x24b)](Re)),w(0x4,a['Inject'](u['MemberService'])),w(0x5,a[_0x12c13e(0x355)]),w(0x6,a[_0x12c13e(0x304)]),w(0x7,a[_0x12c13e(0x24b)](v[_0x12c13e(0x109)]))],ge);var Ct=Object[_0x12c13e(0x331)],Tt=(_0x474f8e,_0x361d5c,_0x2749d6,_0x5cc904)=>{for(var _0x6c91cd=_0x5cc904>0x1?void 0x0:_0x5cc904?Ct(_0x361d5c,_0x2749d6):_0x361d5c,_0x4855ca=_0x474f8e['length']-0x1,_0x4aa4d3;_0x4855ca>=0x0;_0x4855ca--)(_0x4aa4d3=_0x474f8e[_0x4855ca])&&(_0x6c91cd=_0x4aa4d3(_0x6c91cd)||_0x6c91cd);return _0x6c91cd;},ce=(_0x20e84d,_0x20cfbb)=>(_0x47367a,_0x2885e9)=>_0x20cfbb(_0x47367a,_0x2885e9,_0x20e84d);let F=class extends a[_0x12c13e(0x271)]{constructor(_0x179d27,_0x3b381e,_0x133f6e){const _0x3769b5=_0x12c13e;super(),_(this,_0x3769b5(0x1b8),new Map()),_(this,_0x3769b5(0x1e7),new I[(_0x3769b5(0x2a0))]()),(this['_univerInstanceService']=_0x179d27,this[_0x3769b5(0x30d)]=_0x3b381e,this['_collabSessionService']=_0x133f6e,this[_0x3769b5(0x274)]());}[_0x12c13e(0x15a)](){const _0x399cae=_0x12c13e;super[_0x399cae(0x15a)](),this[_0x399cae(0x1e7)][_0x399cae(0x157)](),this[_0x399cae(0x1b8)]['forEach'](_0x1c09d7=>_0x1c09d7[_0x399cae(0x15a)]());}[_0x12c13e(0x1ad)](_0x422a21){const _0x5e6ffa=_0x12c13e;return this[_0x5e6ffa(0x1b8)][_0x5e6ffa(0x192)](_0x422a21)?this[_0x5e6ffa(0x1b8)]['get'](_0x422a21)[_0x5e6ffa(0x292)]:this[_0x5e6ffa(0x1e7)]['pipe'](I[_0x5e6ffa(0x14a)](_0x3a465a=>_0x3a465a[_0x5e6ffa(0xe4)]===_0x422a21),I[_0x5e6ffa(0x287)](_0x536388=>_0x536388[_0x5e6ffa(0x292)]));}[_0x12c13e(0x274)](){const _0x2f1122=_0x12c13e;this[_0x2f1122(0xe7)][_0x2f1122(0x1ba)](a[_0x2f1122(0x234)][_0x2f1122(0x11f)])['pipe'](I['takeUntil'](this[_0x2f1122(0x34c)]))[_0x2f1122(0x148)](async _0x87e28=>{const _0x37eedf=_0x2f1122,_0x4ba53a=_0x87e28[_0x37eedf(0x36b)](),_0x4fae9b=await this[_0x37eedf(0x17f)](_0x4ba53a);this[_0x37eedf(0x1e7)][_0x37eedf(0x381)](_0x4fae9b),this[_0x37eedf(0x1b8)][_0x37eedf(0x14c)](_0x4ba53a,_0x4fae9b);}),this[_0x2f1122(0xe7)][_0x2f1122(0x1ba)](a[_0x2f1122(0x234)]['UNIVER_DOC'])[_0x2f1122(0x310)](I[_0x2f1122(0x261)](this['dispose$']))[_0x2f1122(0x310)](I[_0x2f1122(0x14a)](_0x5ec980=>!_0x5ec980[_0x2f1122(0x36b)]()[_0x2f1122(0x10f)]('__')))['subscribe'](async _0x397bbb=>{const _0x48c680=_0x2f1122,_0x9f4e3f=_0x397bbb[_0x48c680(0x36b)](),_0x1d9534=await this[_0x48c680(0x181)](_0x9f4e3f);this[_0x48c680(0x1e7)][_0x48c680(0x381)](_0x1d9534),this[_0x48c680(0x1b8)][_0x48c680(0x14c)](_0x9f4e3f,_0x1d9534);}),I[_0x2f1122(0x391)](this['_univerInstanceService'][_0x2f1122(0x193)](a[_0x2f1122(0x234)][_0x2f1122(0x1aa)]),this[_0x2f1122(0xe7)][_0x2f1122(0x193)](a[_0x2f1122(0x234)]['UNIVER_SHEET']))[_0x2f1122(0x310)](I[_0x2f1122(0x261)](this[_0x2f1122(0x34c)]))['subscribe'](_0x16a52d=>{const _0x1be380=_0x2f1122,_0x35f902=_0x16a52d[_0x1be380(0x36b)](),_0x552c06=this[_0x1be380(0x1b8)][_0x1be380(0x350)](_0x35f902);_0x552c06&&(_0x552c06[_0x1be380(0x15a)](),this[_0x1be380(0x1b8)][_0x1be380(0x106)](_0x35f902));});}async[_0x12c13e(0x17f)](_0x2edd50){const _0x5753a9=_0x12c13e,_0x1dba72=await this[_0x5753a9(0x352)][_0x5753a9(0x2da)](_0x2edd50),_0x5ed165=this[_0x5753a9(0x30d)][_0x5753a9(0x382)](ge,_0x2edd50,_0x1dba72);return _0x5ed165['init'](),_0x5ed165;}async[_0x12c13e(0x181)](_0x13d055){const _0xd999be=_0x12c13e,_0x19371b=await this[_0xd999be(0x352)][_0xd999be(0x2da)](_0x13d055),_0x347120=this[_0xd999be(0x30d)]['createInstance'](ve,_0x13d055,_0x19371b);return _0x347120[_0xd999be(0x37a)](),_0x347120;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x12c13e(0x24b)](a[_0x12c13e(0x24d)])),ce(0x2,a[_0x12c13e(0x24b)](u[_0x12c13e(0x1ec)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x3bb8c1,_0x160f43){const _0x228266=_0x12c13e;let {radius:_0x38b86f,width:_0x4d4ac1,height:_0x43144d}=_0x160f43;_0x38b86f=_0x38b86f!=null?_0x38b86f:0x0,_0x4d4ac1=_0x4d4ac1!=null?_0x4d4ac1:0x1e,_0x43144d=_0x43144d!=null?_0x43144d:0x1e;let _0x5ad2e0=0x0,_0x12b237=0x0,_0x198062=0x0;_0x5ad2e0=_0x12b237=_0x198062=Math[_0x228266(0x2a1)](_0x38b86f,_0x4d4ac1/0x2,_0x43144d/0x2),_0x3bb8c1[_0x228266(0x300)](),_0x3bb8c1[_0x228266(0x1d2)](_0x5ad2e0,0x0),_0x3bb8c1[_0x228266(0x246)](_0x4d4ac1-_0x12b237,0x0),_0x3bb8c1['arc'](_0x4d4ac1-_0x12b237,_0x12b237,_0x12b237,Math['PI']*0x3/0x2,0x0,!0x1),_0x3bb8c1[_0x228266(0x246)](_0x4d4ac1,_0x43144d-_0x198062),_0x3bb8c1['arc'](_0x4d4ac1-_0x198062,_0x43144d-_0x198062,_0x198062,0x0,Math['PI']/0x2,!0x1),_0x3bb8c1[_0x228266(0x246)](0x0,_0x43144d),_0x3bb8c1['lineTo'](0x0,_0x5ad2e0),_0x3bb8c1[_0x228266(0x375)](_0x5ad2e0,_0x5ad2e0,_0x5ad2e0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3bb8c1[_0x228266(0x245)](),_0x160f43[_0x228266(0xdd)]&&(_0x3bb8c1[_0x228266(0x2e5)](),_0x3bb8c1[_0x228266(0x151)]=_0x160f43[_0x228266(0xdd)],_0x160f43[_0x228266(0x2d2)]===_0x228266(0x364)?_0x3bb8c1[_0x228266(0xdd)](_0x228266(0x364)):_0x3bb8c1['fill'](),_0x3bb8c1[_0x228266(0x27e)]());}class re extends C['Shape']{constructor(_0x2a047a,_0x5502b0){const _0x4537fb=_0x12c13e;super(_0x2a047a,_0x5502b0),_(this,'color'),_(this,_0x4537fb(0x278)),(this[_0x4537fb(0x23a)]=_0x5502b0==null?void 0x0:_0x5502b0[_0x4537fb(0x23a)],this[_0x4537fb(0x278)]=_0x5502b0==null?void 0x0:_0x5502b0[_0x4537fb(0x278)]);}static[_0x12c13e(0x1ae)](_0x451c43,_0x3afeed){const _0x2bcbfc=_0x12c13e,{text:_0x5b2e7e,color:_0x2121cf}=_0x3afeed;_0x451c43[_0x2bcbfc(0x2e5)](),_0x451c43[_0x2bcbfc(0x123)]=_0x2bcbfc(0xd3);const _0x3bdac6=_0x451c43['measureText'](_0x5b2e7e)[_0x2bcbfc(0x1fa)],_0x5a65d5=Math[_0x2bcbfc(0x2a1)](_0x3bdac6+0x2*le,Ue);Ot(_0x451c43,{'height':X,'radius':0x4,'width':_0x5a65d5,'fill':_0x2121cf}),_0x451c43[_0x2bcbfc(0x151)]=_0x2bcbfc(0x1fe);const _0x27fccb=le,_0xdb09d0=X-pt,_0x2973d3=Ue-0x2*le;if(_0x3bdac6>_0x2973d3){let _0x23074a='',_0x3417f0=0x0;for(const _0x1a37f9 of _0x5b2e7e){const _0x4c3ce7=_0x451c43[_0x2bcbfc(0xe2)](_0x1a37f9)[_0x2bcbfc(0x1fa)];if(_0x3417f0+_0x4c3ce7<=_0x2973d3-_0x451c43[_0x2bcbfc(0xe2)](_0x2bcbfc(0x36d))[_0x2bcbfc(0x1fa)])_0x23074a+=_0x1a37f9,_0x3417f0+=_0x4c3ce7;else{_0x23074a+=_0x2bcbfc(0x36d);break;}}_0x451c43[_0x2bcbfc(0xf0)](_0x23074a,_0x27fccb,_0xdb09d0);}else _0x451c43[_0x2bcbfc(0xf0)](_0x5b2e7e,_0x27fccb,_0xdb09d0);_0x451c43[_0x2bcbfc(0x27e)]();}[_0x12c13e(0xf8)](_0x6702a8){const _0x4b8c08=_0x12c13e;re[_0x4b8c08(0x1ae)](_0x6702a8,this);}}const _e=_0x12c13e(0x1a1),Rt=_0x12c13e(0x2fd),bt=_0x12c13e(0x163),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x12c13e(0x1ef);class Le{constructor(_0x2d8880,_0x20918c,_0x569377,_0x46f976){const _0x2f5ce4=_0x12c13e;_(this,_0x2f5ce4(0x27d),[]),_(this,_0x2f5ce4(0xeb),null),_(this,_0x2f5ce4(0x293),null),_(this,_0x2f5ce4(0x241),null),_(this,'_hideTimer',null),_(this,_0x2f5ce4(0x259),null),(this[_0x2f5ce4(0x387)]=_0x2d8880,this[_0x2f5ce4(0x2fb)]=_0x20918c,this[_0x2f5ce4(0x134)]=_0x569377,this[_0x2f5ce4(0x190)]=_0x46f976,this[_0x2f5ce4(0x1a8)]());}set['_hover'](_0x5b262d){const _0x40d898=_0x12c13e;_0x5b262d?(this['_anchorDot']&&this[_0x40d898(0x241)][_0x40d898(0x2bd)](),this[_0x40d898(0x293)]&&this[_0x40d898(0x293)][_0x40d898(0x255)]()):(this[_0x40d898(0x241)]&&this['_anchorDot'][_0x40d898(0x255)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x12c13e(0x15a)](){const _0x5cecac=_0x12c13e;for(const _0x2280e6 of this[_0x5cecac(0x27d)])_0x2280e6[_0x5cecac(0x15a)]();this[_0x5cecac(0x293)]&&this[_0x5cecac(0x293)]['dispose'](),this[_0x5cecac(0x241)]&&this[_0x5cecac(0x241)][_0x5cecac(0x15a)](),this[_0x5cecac(0xeb)]&&this['_anchor'][_0x5cecac(0x15a)](),this[_0x5cecac(0x259)]&&this[_0x5cecac(0x259)]();}[_0x12c13e(0x1a8)](){const _0x5dac17=_0x12c13e;var _0x2c4f86;const {_docSkeleton:_0x58e552,_document:_0x3656d4}=this,{color:_0x5b2a72,name:_0x191cc4,ranges:_0x2a5947}=this[_0x5dac17(0x387)],_0x3b680a=_0x3656d4['getOffsetConfig'](),{docsLeft:_0x204891,docsTop:_0x37f7d9}=_0x3b680a,_0x16b14a=new T['NodePositionConvertToCursor'](_0x3b680a,_0x58e552);for(const {startOffset:_0x42c84e,endOffset:_0x57b788,rangeType:_0x2cdb96,segmentId:_0x183178,segmentPage:_0x5abad9,collapsed:_0x27a29b,isActive:_0xcadbb8}of _0x2a5947){const _0x158e58=_0x58e552[_0x5dac17(0x32c)](_0x42c84e,!0x0,_0x183178,_0x5abad9);let _0x442a53=_0x58e552[_0x5dac17(0x32c)](_0x57b788,!0x0,_0x183178,_0x5abad9);if(_0x442a53==null&&(_0x442a53=_0x58e552[_0x5dac17(0x32c)](_0x57b788-0x1,!0x1,_0x183178,_0x5abad9)),_0xcadbb8){const {contentBoxPointGroup:_0x514793}=_0x16b14a[_0x5dac17(0x2af)](_0x442a53,_0x442a53);if(_0x514793[_0x5dac17(0x1b0)]===0x0)continue;this[_0x5dac17(0x2c4)](_0x5b2a72,_0x514793,_0x204891,_0x37f7d9,_0x191cc4),this['_eventUnsubscribe']=this[_0x5dac17(0xd6)]();}if(_0x158e58&&_0x442a53){if(_0x2cdb96===a[_0x5dac17(0x333)][_0x5dac17(0x112)]){const _0x482083=new T[(_0x5dac17(0x1e3))](_0x3b680a,_0x58e552),{pointGroup:_0x3b60cc}=(_0x2c4f86=_0x482083['getRangePointData'](_0x158e58,_0x442a53))!=null?_0x2c4f86:{};if(_0x3b60cc==null||_0x3b60cc['length']===0x0)continue;this[_0x5dac17(0x20c)](_0x5b2a72,_0x3b60cc,_0x204891,_0x37f7d9);}else{if(!_0x27a29b){const {borderBoxPointGroup:_0x324f38}=_0x16b14a[_0x5dac17(0x2af)](_0x158e58,_0x442a53);if(_0x324f38[_0x5dac17(0x1b0)]===0x0)continue;this[_0x5dac17(0x117)](_0x5b2a72,_0x324f38,_0x204891,_0x37f7d9);}}}}}['_drawAnchor'](_0x2f4f9c,_0xdd9615,_0x442f4c,_0x6a7495,_0x42a31f){const _0xe15351=_0x12c13e,_0x5c7921=this['_getAnchorBounding'](_0xdd9615),{left:_0x3e5da2,top:_0x2888da,height:_0xc7a4fb}=_0x5c7921,_0x194091=this['_getScale'](),_0x36e1ea=Nt/_0x194091,_0x4f0e9e=new C[(_0xe15351(0x268))](_e+a['generateRandomId'](H),{'left':_0x3e5da2+_0x442f4c-_0x36e1ea,'top':_0x2888da+_0x6a7495,'height':_0xc7a4fb,'width':Dt,'fill':_0x2f4f9c||C['getColor'](a[_0xe15351(0x164)][_0xe15351(0x38e)],0x0),'strokeWidth':_0x36e1ea,'stroke':Ut,'evented':!0x0});this[_0xe15351(0xeb)]=_0x4f0e9e,this['_scene'][_0xe15351(0x1e9)](_0x4f0e9e,T[_0xe15351(0x136)]);const _0x2878d2=new C[(_0xe15351(0x268))](_e+a['generateRandomId'](H),{'left':_0x3e5da2+_0x442f4c-_0x36e1ea,'top':_0x2888da+_0x6a7495-he/0x2,'height':he,'width':he,'fill':_0x2f4f9c||C['getColor'](a[_0xe15351(0x164)][_0xe15351(0x38e)],0x0),'strokeWidth':0x0,'stroke':_0x2f4f9c||C[_0xe15351(0x12d)](a[_0xe15351(0x164)][_0xe15351(0x38e)],0x0),'evented':!0x1});this[_0xe15351(0x241)]=_0x2878d2,this['_scene'][_0xe15351(0x1e9)](_0x2878d2,T['TEXT_RANGE_LAYER_INDEX']);const _0x15992c=new re(_e+a[_0xe15351(0xf1)](H),{'left':_0x3e5da2+_0x442f4c-_0x36e1ea,'top':_0x2888da+_0x6a7495-X,'text':_0x42a31f,'color':_0x2f4f9c});this[_0xe15351(0x293)]=_0x15992c,this[_0xe15351(0x2fb)][_0xe15351(0x1e9)](_0x15992c,T[_0xe15351(0x136)]),this[_0xe15351(0x16d)]=!0x1;}[_0x12c13e(0xd6)](){const _0x56b0d2=_0x12c13e,_0x346d7e=this['_anchor']['onPointerEnter$']['subscribeEvent'](()=>{const _0x3be568=_0x4e05;this[_0x3be568(0x16d)]=!0x0;}),_0x41d780=this['_anchor'][_0x56b0d2(0x184)]['subscribeEvent'](()=>{const _0x38a54f=_0x56b0d2;this[_0x38a54f(0x251)]&&clearTimeout(this[_0x38a54f(0x251)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x27f486=_0x56b0d2;_0x346d7e[_0x27f486(0x2f8)](),_0x41d780[_0x27f486(0x2f8)]();};}['_drawTextRange'](_0x35e0bf,_0x3794b2,_0x820449,_0x8e53de){const _0x38c57a=_0x12c13e,_0x1fd5bf=new a['ColorKit'](_0x35e0bf)[_0x38c57a(0x1dc)](0.2)[_0x38c57a(0x1a9)](),_0x5d0541=new C[(_0x38c57a(0x2f5))](Rt+a[_0x38c57a(0xf1)](H),{'pointsGroup':_0x3794b2,'fill':_0x1fd5bf||C[_0x38c57a(0x12d)](a['COLORS']['black'],0.2),'left':_0x820449,'top':_0x8e53de,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x38c57a(0x27d)][_0x38c57a(0x248)](_0x5d0541),this[_0x38c57a(0x2fb)][_0x38c57a(0x1e9)](_0x5d0541,T['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x36182e,_0xdd85b0,_0x4ec963,_0x5d8a82){const _0x3f6b77=_0x12c13e,_0x396933=new a[(_0x3f6b77(0x1e5))](_0x36182e)[_0x3f6b77(0x1dc)](0.2)[_0x3f6b77(0x1a9)](),_0x5d681f=new C['RegularPolygon'](bt+a['generateRandomId'](H),{'pointsGroup':_0xdd85b0,'fill':_0x396933||C['getColor'](a[_0x3f6b77(0x164)]['black'],0.2),'left':_0x4ec963,'top':_0x5d8a82,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3f6b77(0x248)](_0x5d681f),this[_0x3f6b77(0x2fb)][_0x3f6b77(0x1e9)](_0x5d681f,T[_0x3f6b77(0x136)]);}[_0x12c13e(0x30b)](_0x3f9a8b){const _0x2b9c38=_0x3f9a8b[0x0],_0x4c8321=_0x2b9c38[0x0],_0x2142f0=_0x2b9c38[0x2],{x:_0x20e482,y:_0x166ff4}=_0x4c8321,{x:_0x1d05b5,y:_0x3d6117}=_0x2142f0;return{'left':_0x20e482,'top':_0x166ff4,'width':_0x1d05b5-_0x20e482,'height':_0x3d6117-_0x166ff4};}[_0x12c13e(0x1d8)](){const _0x4a378b=_0x12c13e,{scaleX:_0x378d40,scaleY:_0x58bbbb}=this[_0x4a378b(0x2fb)]['getAncestorScale']();return Math['max'](_0x378d40,_0x58bbbb);}}var Lt=Object[_0x12c13e(0x331)],Mt=(_0x5f558f,_0xa80af7,_0x515fd1,_0xc094e2)=>{const _0x2d4277=_0x12c13e;for(var _0x45dd6c=_0xc094e2>0x1?void 0x0:_0xc094e2?Lt(_0xa80af7,_0x515fd1):_0xa80af7,_0x519e52=_0x5f558f[_0x2d4277(0x1b0)]-0x1,_0x4a4441;_0x519e52>=0x0;_0x519e52--)(_0x4a4441=_0x5f558f[_0x519e52])&&(_0x45dd6c=_0x4a4441(_0x45dd6c)||_0x45dd6c);return _0x45dd6c;},q=(_0x5412e0,_0x56847a)=>(_0x40c4c3,_0x107fcb)=>_0x56847a(_0x40c4c3,_0x107fcb,_0x5412e0);let Ee=class extends a[_0x12c13e(0x271)]{constructor(_0x1308b2,_0x2d14dd,_0x4cbff9,_0x412564,_0x11f699){const _0x24c5be=_0x12c13e;super(),_(this,_0x24c5be(0x389),[]),_(this,_0x24c5be(0x25c),[]),(this[_0x24c5be(0x31d)]=_0x1308b2,this['_docSkeletonManagerService']=_0x2d14dd,this[_0x24c5be(0x38a)]=_0x4cbff9,this[_0x24c5be(0x2a4)]=_0x412564,this[_0x24c5be(0xfd)]=_0x11f699,this[_0x24c5be(0x274)]());}['_init'](){const _0x5c0769=_0x12c13e,_0x3c25d6=this['_context'][_0x5c0769(0x14f)],_0x597b04=this[_0x5c0769(0x12b)];this[_0x5c0769(0x20d)](I[_0x5c0769(0x1a7)]([this[_0x5c0769(0x38a)]['getCollabCursors$'](_0x3c25d6),this['_themeService'][_0x5c0769(0xf6)]])[_0x5c0769(0x310)]($[_0x5c0769(0x200)](([_0x14251b,_0x5d445d])=>({'skeleton':_0x597b04[_0x5c0769(0x13d)](),'cursors':[..._0x14251b['values']()][_0x5c0769(0x367)](_0x5cf3cc=>({..._0x5cf3cc,'color':this[_0x5c0769(0xfd)][_0x5c0769(0x14e)](_0x5cf3cc[_0x5c0769(0x23a)])}))})))['subscribe'](_0x47ac00=>{const _0x16249e=_0x5c0769;if(this[_0x16249e(0x309)](),_0x47ac00){const {skeleton:_0x4bbde0,cursors:_0x3132e7}=_0x47ac00;this[_0x16249e(0x2e8)](_0x4bbde0,_0x3132e7);}})),this[_0x5c0769(0x21e)](),this[_0x5c0769(0x239)]();}[_0x12c13e(0x2e8)](_0x2c0a2c,_0x1ca4e9){const _0x475c7c=_0x12c13e,{scene:_0x9983a0,mainComponent:_0x3b4c42}=this[_0x475c7c(0x31d)],_0x5799fe=_0x1ca4e9['map'](_0x363656=>new Le(_0x363656,_0x9983a0,_0x2c0a2c,_0x3b4c42));this[_0x475c7c(0x389)]=_0x5799fe,this[_0x475c7c(0x25c)]=_0x1ca4e9;}[_0x12c13e(0x308)](){const _0x48e34e=_0x12c13e;this[_0x48e34e(0x309)]();const {scene:_0x37bc14,mainComponent:_0x3e19bf}=this[_0x48e34e(0x31d)],_0x3ce779=this[_0x48e34e(0x12b)]['getSkeleton'](),_0x1b9192=this[_0x48e34e(0x25c)][_0x48e34e(0x200)](_0x47a03d=>new Le(_0x47a03d,_0x37bc14,_0x3ce779,_0x3e19bf));this['_cursorShapes']=_0x1b9192;}[_0x12c13e(0x309)](){const _0xd56fe0=_0x12c13e;this[_0xd56fe0(0x389)][_0xd56fe0(0x2aa)](_0x54e644=>_0x54e644[_0xd56fe0(0x15a)]()),this[_0xd56fe0(0x389)]=[];}[_0x12c13e(0x239)](){const _0x1bc1e9=_0x12c13e,_0x545a0f=[T['SetDocZoomRatioOperation']['id']];this[_0x1bc1e9(0x20d)](this[_0x1bc1e9(0x2a4)]['onCommandExecuted'](_0x31aca9=>{const _0x2a8826=_0x1bc1e9;_0x545a0f['includes'](_0x31aca9['id'])&&_0x31aca9[_0x2a8826(0x2cb)][_0x2a8826(0x14f)]===this[_0x2a8826(0x31d)]['unitId']&&this[_0x2a8826(0x308)]();}));}[_0x12c13e(0x21e)](){const _0x426419=_0x12c13e;this['disposeWithMe'](a['fromEventSubject'](this[_0x426419(0x31d)]['engine']['onTransformChange$'])[_0x426419(0x310)]($['filter'](_0xaa38cf=>_0xaa38cf[_0x426419(0x21d)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x426419(0x1b7)]),$[_0x426419(0x370)](0x10))[_0x426419(0x148)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a['Inject'](V[_0x12c13e(0x10e)])),q(0x2,a['Inject'](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x12c13e(0x24b)](a[_0x12c13e(0x32f)]))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x343736,_0x3f4ac9){const _0x5d107f=_0x12c13e;super(_0x343736,_0x3f4ac9),_(this,_0x5d107f(0x228)),_(this,'_hovered',!0x1),_(this,_0x5d107f(0x2bb)),_(this,'_name',''),_(this,_0x5d107f(0x31c),_0x5d107f(0x2d0)),_(this,_0x5d107f(0x19c)),(_0x3f4ac9&&this['setShapeProps'](_0x3f4ac9),this[_0x5d107f(0x1f8)][_0x5d107f(0x1e0)](()=>this[_0x5d107f(0x17e)]({'hovered':!0x0})),this['onPointerLeave$'][_0x5d107f(0x1e0)](()=>this[_0x5d107f(0x17e)]({'hovered':!0x1})));}['setShapeProps'](_0x939cd9){const _0x186d76=_0x12c13e;var _0x2687d4,_0x1f2943,_0x307527,_0x49280c,_0x2a25f1,_0x317235;this['_color']=(_0x2687d4=_0x939cd9[_0x186d76(0x23a)])!=null?_0x2687d4:this[_0x186d76(0x228)],this['_hovered']=(_0x1f2943=_0x939cd9[_0x186d76(0x1cd)])!=null?_0x1f2943:this[_0x186d76(0x247)],this[_0x186d76(0x2bb)]=(_0x307527=_0x939cd9[_0x186d76(0x125)])!=null?_0x307527:this[_0x186d76(0x2bb)],this[_0x186d76(0x10c)]=(_0x49280c=_0x939cd9[_0x186d76(0x10a)])!=null?_0x49280c:this[_0x186d76(0x10c)],this['_labelPosition']=(_0x2a25f1=_0x939cd9['labelPosition'])!=null?_0x2a25f1:this[_0x186d76(0x31c)],this[_0x186d76(0x19c)]=(_0x317235=_0x939cd9['backgroundColor'])!=null?_0x317235:this[_0x186d76(0x19c)],this[_0x186d76(0x244)]({'width':_0x939cd9['width'],'height':_0x939cd9[_0x186d76(0x1d3)]});}['onMouseMove'](_0x1f6de6){const _0x5f07e9=_0x12c13e,{row:_0x1fba36,column:_0x1c7589}=_0x1f6de6;if(_0x1fba36>=this[_0x5f07e9(0x2bb)][_0x5f07e9(0x21c)]&&_0x1fba36<=this[_0x5f07e9(0x2bb)][_0x5f07e9(0x24c)]&&_0x1c7589>=this['_range'][_0x5f07e9(0x1ab)]&&_0x1c7589<=this['_range'][_0x5f07e9(0x275)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x5f07e9(0x17e)]({'hovered':!0x1});}[_0x12c13e(0x345)](_0x13933e){return!0x1;}[_0x12c13e(0xf8)](_0x3d91ea){const _0x5e724c=_0x12c13e;C[_0x5e724c(0x268)][_0x5e724c(0x1ae)](_0x3d91ea,{'width':this[_0x5e724c(0x1fa)],'height':this[_0x5e724c(0x1d3)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x3d91ea[_0x5e724c(0x2e5)](),_0x3d91ea[_0x5e724c(0x1cb)](0x1,0x0,0x0,0x1,this[_0x5e724c(0x1fa)],this[_0x5e724c(0x31c)]==='bottom'?0x0:-X),re[_0x5e724c(0x1ae)](_0x3d91ea,{'text':this[_0x5e724c(0x10c)],'color':this[_0x5e724c(0x228)]}),_0x3d91ea[_0x5e724c(0x27e)]());}}var wt=Object[_0x12c13e(0x331)],yt=(_0x2dbc3d,_0x53df4d,_0x4c577b,_0x333d85)=>{for(var _0x262ebe=_0x333d85>0x1?void 0x0:_0x333d85?wt(_0x53df4d,_0x4c577b):_0x53df4d,_0x4a2ba6=_0x2dbc3d['length']-0x1,_0x1af512;_0x4a2ba6>=0x0;_0x4a2ba6--)(_0x1af512=_0x2dbc3d[_0x4a2ba6])&&(_0x262ebe=_0x1af512(_0x262ebe)||_0x262ebe);return _0x262ebe;},ue=(_0x5f4732,_0x84d0bd)=>(_0x23541d,_0x53dc59)=>_0x84d0bd(_0x23541d,_0x53dc59,_0x5f4732);const $t=0x1389;let Ce=class extends a[_0x12c13e(0x271)]{constructor(_0x3377bb,_0x228334,_0xecee4,_0x109fbe){const _0x1b6251=_0x12c13e;super(),_(this,_0x1b6251(0x25c),new Set()),_(this,_0x1b6251(0x2ed),null),(this['_context']=_0x3377bb,this[_0x1b6251(0x1bd)]=_0x228334,this[_0x1b6251(0x38a)]=_0xecee4,this[_0x1b6251(0xfd)]=_0x109fbe,this['_init']());}[_0x12c13e(0x274)](){const _0x193fdc=_0x12c13e;this[_0x193fdc(0x1bd)]['currentSkeleton$'][_0x193fdc(0x310)]($[_0x193fdc(0x261)](this['dispose$']),$['switchMap'](_0x5b7fbe=>{const _0x41072c=_0x193fdc;if(_0x5b7fbe){const _0x16b820=_0x5b7fbe['sheetId'];return I[_0x41072c(0x1a7)](this['_collabCursorController']['getCollabCursors$'](this[_0x41072c(0x31d)]['unitId']),this[_0x41072c(0xfd)][_0x41072c(0xf6)])[_0x41072c(0x310)]($[_0x41072c(0x200)](([_0x9b3cc7,_0xb8d705])=>{const _0x1079af=_0x41072c,_0x57a8dd=new Map();return _0x9b3cc7[_0x1079af(0x2aa)]((_0x2e2d61,_0x1b0364)=>{const _0x228043=_0x1079af;if(_0x2e2d61[_0x228043(0xd7)]===_0x16b820){const _0x2717c9={..._0x2e2d61};_0x2717c9[_0x228043(0x23a)]=this[_0x228043(0xfd)][_0x228043(0x14e)](_0x2e2d61[_0x228043(0x23a)]),_0x57a8dd[_0x228043(0x14c)](_0x1b0364,_0x2717c9);}}),{'skeleton':_0x5b7fbe,'cursors':_0x57a8dd};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x193fdc(0x148)](({skeleton:_0x167048,cursors:_0x193172})=>{const _0x308b88=_0x193fdc;this[_0x308b88(0x309)](),_0x167048&&this['_updateCollabCursors'](_0x167048,_0x193172);}),this[_0x193fdc(0x1bd)]['currentSkeleton$']['subscribe'](_0xfc36fd=>{const _0x4bee9c=_0x193fdc;if(_0xfc36fd==null)return;const {skeleton:_0x4beefb}=_0xfc36fd,{scene:_0x36e1e5}=this[_0x4bee9c(0x31d)];_0x36e1e5[_0x4bee9c(0x37b)]['subscribeEvent'](a[_0x4bee9c(0x26b)](_0x55e729=>{const _0x274792=_0x4bee9c;var _0x188d9e,_0x16854f;const {offsetX:_0x5aa800,offsetY:_0x2834cc}=_0x55e729,{x:_0x461c1e,y:_0x1cee5d}=_0x36e1e5[_0x274792(0x264)](C[_0x274792(0x122)]['FromArray']([_0x5aa800,_0x2834cc])),{scaleX:_0x33c56c,scaleY:_0x44b4fe}=_0x36e1e5[_0x274792(0x35b)](),_0x1f5761=_0x36e1e5[_0x274792(0x18b)](C['SHEET_VIEWPORT_KEY'][_0x274792(0x35f)]),_0x4a81ab=_0x36e1e5[_0x274792(0x348)](C[_0x274792(0x122)]['FromArray']([_0x461c1e,_0x1cee5d]),_0x1f5761),_0x55ef02=_0x4beefb[_0x274792(0x371)](_0x5aa800,_0x2834cc,_0x33c56c,_0x44b4fe,_0x4a81ab);((_0x188d9e=this[_0x274792(0x2ed)])==null?void 0x0:_0x188d9e[_0x274792(0x2ea)])===_0x55ef02[_0x274792(0x2ea)]&&((_0x16854f=this['_lastPointer'])==null?void 0x0:_0x16854f[_0x274792(0x2b0)])===_0x55ef02[_0x274792(0x2b0)]||this[_0x274792(0x25c)]['forEach'](_0x37a57e=>{_0x37a57e['onMouseMove'](_0x55ef02);});},0x64));});}[_0x12c13e(0x2e8)](_0x47d566,_0x4786c3){const _0x3fdbd8=_0x12c13e;var _0x2cd49d;const _0x12a311=(_0x2cd49d=this[_0x3fdbd8(0x1bd)][_0x3fdbd8(0xe5)]())==null?void 0x0:_0x2cd49d[_0x3fdbd8(0x2c3)];if(!_0x12a311)return;const _0x5123ae=this[_0x3fdbd8(0x327)]();if(!_0x5123ae)return;this[_0x3fdbd8(0x25c)]['forEach'](_0x238467=>{const _0x295b37=_0x3fdbd8;_0x238467[_0x295b37(0x118)]();});const {scene:_0x3c84fc}=_0x5123ae,_0xf7637f=xt(Array[_0x3fdbd8(0x270)](_0x4786c3[_0x3fdbd8(0x1c2)]()))[_0x3fdbd8(0x200)](_0x1441ea=>{const _0x3c01e5=_0x3fdbd8,{color:_0x268ba1,range:_0x4ca9ec,name:_0x5ef615,selection:_0x5a84c9,sheetID:_0x404263}=_0x1441ea,{startColumn:_0x1debbd,startRow:_0x237dad,endColumn:_0x25ff19,endRow:_0x50af28}=_0x4ca9ec,_0xad22f9=J['getCoordByCell'](_0x237dad,_0x1debbd,_0x3c84fc,_0x12a311),_0x333299=J[_0x3c01e5(0x1c5)](_0x50af28,_0x25ff19,_0x3c84fc,_0x12a311),{columnHeaderHeightAndMarginTop:_0x440741}=_0x12a311,{startX:_0x59d7d0,startY:_0x374ee6}=_0xad22f9,{endX:_0xd60ce8,endY:_0x35f97d}=_0x333299,_0x3fdcab=_0xd60ce8-_0x59d7d0,_0x52f471=_0x35f97d-_0x374ee6,_0x4eacc8={'labelPosition':_0x374ee6-_0x440741>=X?_0x3c01e5(0x2d0):_0x3c01e5(0x132),'sheetID':_0x404263,'range':_0x4ca9ec,'color':_0x268ba1,'name':_0x5ef615,'selection':_0x5a84c9,'left':_0x59d7d0,'top':_0x374ee6,'width':_0x3fdcab,'height':_0x52f471,'evented':!0x1,'zIndex':$t};return new je(_0x5ef615,_0x4eacc8);});_0x3c84fc[_0x3fdbd8(0x17b)](_0xf7637f,At),this[_0x3fdbd8(0x25c)]=new Set(_0xf7637f);}[_0x12c13e(0x309)](){const _0x58c5a3=_0x12c13e;var _0x40243b;(_0x40243b=this[_0x58c5a3(0x25c)])==null||_0x40243b[_0x58c5a3(0x2aa)](_0x47eca9=>_0x47eca9[_0x58c5a3(0x15a)]());}[_0x12c13e(0x327)](){const _0x5f2db5=_0x12c13e;return J[_0x5f2db5(0x1d4)](this[_0x5f2db5(0x31d)][_0x5f2db5(0x303)],this['_context']);}};Ce=yt([ue(0x1,a[_0x12c13e(0x24b)](J[_0x12c13e(0x156)])),ue(0x2,a[_0x12c13e(0x24b)](F)),ue(0x3,a['Inject'](a[_0x12c13e(0x32f)]))],Ce);function xt(_0x1cd115){const _0x550f6e=_0x12c13e,_0x207f56=new Map();return _0x1cd115['forEach'](_0x57a4c4=>{const _0x5d8d5d=_0x4e05;if(_0x207f56[_0x5d8d5d(0x192)](_0x57a4c4[_0x5d8d5d(0xf5)])){const _0x1edb52=_0x207f56[_0x5d8d5d(0x350)](_0x57a4c4[_0x5d8d5d(0xf5)]);_0x1edb52[_0x5d8d5d(0x10a)]+=',\x20'+_0x57a4c4[_0x5d8d5d(0x10a)];}else _0x207f56['set'](_0x57a4c4['selection'],_0x57a4c4);}),Array[_0x550f6e(0x270)](_0x207f56[_0x550f6e(0x1c2)]());}var Bt=Object[_0x12c13e(0x331)],Ft=(_0x3db85b,_0x382973,_0x376cc6,_0x38519b)=>{const _0x5287ca=_0x12c13e;for(var _0x50d386=_0x38519b>0x1?void 0x0:_0x38519b?Bt(_0x382973,_0x376cc6):_0x382973,_0x2d9fa7=_0x3db85b[_0x5287ca(0x1b0)]-0x1,_0x5762b4;_0x2d9fa7>=0x0;_0x2d9fa7--)(_0x5762b4=_0x3db85b[_0x2d9fa7])&&(_0x50d386=_0x5762b4(_0x50d386)||_0x50d386);return _0x50d386;},y=(_0x3ae107,_0x357a5d)=>(_0x4f9e52,_0x5b07d8)=>_0x357a5d(_0x4f9e52,_0x5b07d8,_0x3ae107);let Z=class extends a[_0x12c13e(0x30f)]{constructor(_0x19a088,_0x324024,_0x1876f4,_0x484b88,_0x49f470,_0x20f799){const _0x51bf1c=_0x12c13e;super(),this[_0x51bf1c(0x23c)]=_0x19a088,this[_0x51bf1c(0x232)]=_0x324024,this[_0x51bf1c(0x28f)]=_0x1876f4,this[_0x51bf1c(0x2dd)]=_0x484b88,this[_0x51bf1c(0x243)]=_0x49f470,this[_0x51bf1c(0x205)]=_0x20f799,this[_0x51bf1c(0x2c8)](),this[_0x51bf1c(0x17c)]();}[_0x12c13e(0x2c8)](){const _0x270789=_0x12c13e;this[_0x270789(0x20d)](this[_0x270789(0x23c)]['registerBeforeClose'](()=>{const _0x1173ae=_0x270789;if(this[_0x1173ae(0x232)][_0x1173ae(0x1dd)][_0x1173ae(0xfa)])return this[_0x1173ae(0x205)]['t'](_0x1173ae(0x19d));}));}[_0x12c13e(0x17c)](){const _0x300a2e=_0x12c13e;this[_0x300a2e(0x20d)](this[_0x300a2e(0x28f)][_0x300a2e(0x226)][_0x300a2e(0x148)](_0x2d3102=>{const _0x1b1a31=_0x300a2e;_0x2d3102['id']===u['CollaborationUIEventId'][_0x1b1a31(0x18c)]&&this[_0x1b1a31(0x2dd)]['show']({'type':p[_0x1b1a31(0x340)]['Warning'],'content':this[_0x1b1a31(0x205)]['t'](_0x1b1a31(0x121))}),_0x2d3102['id']===u[_0x1b1a31(0x108)]['CLOSE_ROOM']&&this[_0x1b1a31(0x2dd)]['show']({'type':p[_0x1b1a31(0x340)]['Warning'],'content':this[_0x1b1a31(0x205)]['t']('collaboration.closeRoom')}),_0x2d3102['id']===u[_0x1b1a31(0x108)][_0x1b1a31(0x373)]&&this['_notificationService'][_0x1b1a31(0x255)]({'title':this['_localeService']['t'](_0x1b1a31(0x374)),'content':this[_0x1b1a31(0x205)]['t']('permission.content'),'type':'error','duration':0x0}),_0x2d3102['id']===u[_0x1b1a31(0x108)][_0x1b1a31(0x1e4)]&&this[_0x1b1a31(0x2dd)]['show']({'type':p[_0x1b1a31(0x340)]['Error'],'content':this[_0x1b1a31(0x205)]['t'](_0x1b1a31(0x29f))+'('+_0x2d3102[_0x1b1a31(0x13c)]+')'}),_0x2d3102['id']===u[_0x1b1a31(0x108)]['JOIN_ROOM_FAILED']&&this[_0x1b1a31(0x2dd)]['show']({'type':p[_0x1b1a31(0x340)][_0x1b1a31(0x2f3)],'content':this[_0x1b1a31(0x205)]['t'](_0x2d3102[_0x1b1a31(0x13c)]||'')}),_0x2d3102['id']===u[_0x1b1a31(0x108)][_0x1b1a31(0x2fc)]&&this[_0x1b1a31(0x2dd)][_0x1b1a31(0x255)]({'type':p['MessageType'][_0x1b1a31(0x2f3)],'content':this[_0x1b1a31(0x205)]['t'](_0x1b1a31(0x24f))}),_0x2d3102['id']===u['CollaborationUIEventId'][_0x1b1a31(0x332)]&&this[_0x1b1a31(0x2dd)][_0x1b1a31(0x255)]({'type':p[_0x1b1a31(0x340)][_0x1b1a31(0x280)],'content':this[_0x1b1a31(0x205)]['t'](_0x1b1a31(0xf7))}),_0x2d3102['id']===u[_0x1b1a31(0x108)][_0x1b1a31(0x179)]&&this[_0x1b1a31(0x2dd)][_0x1b1a31(0x255)]({'type':p[_0x1b1a31(0x340)][_0x1b1a31(0x280)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x12c13e(0x2b8)]),y(0x1,u[_0x12c13e(0x1c6)]),y(0x2,a['Inject'](u[_0x12c13e(0x1af)])),y(0x3,O['IMessageService']),y(0x4,O[_0x12c13e(0x2ab)]),y(0x5,a[_0x12c13e(0x24b)](a[_0x12c13e(0x260)]))],Z);function _0x7500(){const _0x21a02a=['_registerDependencies','_transformPreviousActiveRange','_eventUnsubscribe','Rectangle','split','_cursors','UPDATE_CURSOR','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','DEFAULT_WS_SESSION_TICKET_URL','LocaleService','takeUntil','RemoveRowCommandId','source','getRelativeToViewportCoord','getMergeData','_initStatusListener','reason','Rect','toDisposable','handleDeleteRangeMoveUp','debounce','then','newValue','transformMutation','_initUnhandledRejectionListener','from','RxDisposable','round','searchParams','_init','endColumn','_disabled','FormulaExecutedStateType','text','DocStateChangeManagerService','_collabCursorState$','LOGIN_FAILED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_shapes','restore','DATA_SOURCE_TOO_LARGE','Error','AWAITING_WITH_PENDING','addEventListener','USER_NOT_FOUND','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','debounceTime','location','switchMap','saveImage','COMPLETION_FINISHED','_initEntityListener','IRenderManagerService','_urlService','ENTITLE_COUPON_USED_UP','_colorAssignService','_collaborationUIEventService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','connectInjector','cursorInfo$','_textBubble','CollaborationDataLoaderController','getConfig','collab-client.tooltip.reconnect','_memberID','ranges','_applyCommand','ENTITLE_REPORT_LIMIT_EXCEED','_updateLocalCursor','_currentUsage','totalFormulasToCalculate','CollaborationSocketService','collaboration.closeRoom','Subject','min','Tooltip','send','_commandService','_updateURLWithCurrentState','getCurrentUnitForType','post','handleMoveRange','popstate','forEach','INotificationService','1em','Loading','defs','getRangePointData','row','getformulaLimitStatusUrl','contains','sessionStatus$','eventID','collaboration-client-ui.config','CollaborationController','InsertColCommandId','IBeforeCloseService','/universer-api/license/formula/limit/done','jiqing.500','_range','_pollingInterval','hide','_clearPolling','YUUMI_RATE_OVER_LIMIT','MOBILE_VERIFY_CODE_MISMATCH','_onCursorUpdate','getActiveRange','skeleton','_drawAnchor','registerRefRange','imageSourceType','transformIMECache','_setupBeforeClosingHandler','transformStateCache','_checkAndWaitForCalculationPermission','params','WebBrowserSingleActiveUnitService','RichTextEditingMutation','socket$','_transformService','top','getFocusedUnit','fillRule','_uiPartsService','REDEMPTION_CODE_NOT_STARTED','setParam','WECHAT_HAS_BEEN_BOUND','_removeClearOtherTimer','RemoteUniscriptService','_scheduleClearOtherTimer','requireSession','fromEvent','clearTimeout','_messageService','registerDependencies','EffectRefRangId','SNAPSHOT_HAS_BEEN_REMOVED','colorChannel1','SYNCED','handleInsertCol','loadUnit','save','whenReady','USERS_LEAVE','_updateCollabCursors','activeSheet$','column','SetFormulaCalculationNotificationMutation','none','_lastPointer','_releaseCalculationLimit','stack','_cachedData','SNAPSHOT_INVALID_SNAPSHOT','http://www.w3.org/2000/svg','Warning','_getSessionTicket','RegularPolygon','ENTITLE_COUPON_EXPIRED','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','unsubscribe','on-line-icon_clip0_910_349','toString','_scene','SOCKET_FAILED_RETRY','collab-text-range-','_handleEvent','executionId','beginPath','_cursorInfo$','_clearOtherTimers','unit','ICommandService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','path','ITransformService','_refreshCollabCursors','_removeCollabCursors','_getFormulaLimitStatus','_getAnchorBounding','EMAIL_VERIFY_CODE_MISMATCH','_injector','UniverCollaborationClientUIPlugin','Disposable','pipe','onLocalMutation','_showGuardMessage','\x20at\x20','white','_localStorageService','idSuffix','handleInsertRangeMoveDown','_createSocketURL','on-line-icon','INVALID_INVITE_CODE','m2Prime','_labelPosition','_context','getRenderById','getSheetId','exhaustSavingTask','formula.calculation.waiting','_hasFormulaInDirtyRanges','YUUMI_SUBSCRIPTION_NOT_FOUND','setItem','application/json','_imageIoService','_getSheetObject','executeCommand','_config','LICENSE_EXPORT_SIZE_EXCEEDED','OFFLINE','findNodePositionByCharIndex','_configService','REDEMPTION_INVALID_CODE','ThemeService','collabStatus.syncing','getOwnPropertyDescriptor','SOCKET_FAILED','DOC_RANGE_TYPE','runId','registerRenderModule','transformMutationsWithChangeset','subunit','0\x200\x2016\x2016','_maxFormulaLimit','currentUsage','urlChange$','getLocalCacheKey','24BMOHTs','72976AZLHKc','parse','MessageType','_uploadLog','/universer-api/license/formula/limit/start','OnLineIcon','key','triggerDblclick','_scheduleSaving','EMAIL_HAS_BEEN_BOUND','getVpScrollXYInfoByPosToVp','Failed','invokeId','Plugin','dispose$','NO_OTHER_CLIENTS_EDITING','RevisionService','collabStatus.notCollab','get','random','_collabSessionService','createElement','deepClone','IUniverInstanceService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_collaborationSessionService','_docTransformSelectionsService','USER_NOT_INVITED_CODE','clipPath','getAncestorScale','ALREADY_EXISTS','_colorIndex','redoState','VIEW_MAIN','disableLocalCache','stageInfo','54118ECiPqC','jsxs','evenodd','collabStatus.conflict','pluginName','flatMap','filename','univer-flex\x20univer-items-center','MoveRangeCommandId','getUnitId','TEXT','...','_refRangeService','DocIMEInputManagerService','throttleTime','getCellPositionByOffset','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','PERMISSION_DENIED','permission.title','arc','ILogService','cursorInfo','_httpService','2488077upKzao','init','onPointerMove$','ENTITLE_DUP_SUBSCRIPTION','_online','CollaborationEvent','tag','DeleteRangeMoveLeftCommandId','next','createInstance','BehaviorSubject','collabStatus.offline','isTransformMutationFailure','IConfigService','_cursor','_monkeyPatchLogService','_cursorShapes','_collabCursorController','_lastResponseTimestamp','_checkCalculationAvailable','_taskIds','black','ERROR_AGAIN','ENSURE_SNAPSHOT_EXECUTION','merge','serializeRangeWithSheet','CollaborationStatus','with','_transformHistoryAndStateStack','PY_RUNTIME_SCRIPT_ERROR','DeleteRangeMoveUpCommandId','CommandType','_saveTaskMap','svg','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','BuiltInUIPart','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','univer-mr-2\x20univer-flex\x20univer-text-xl','Tools','_handleHover','sheetID','_status$','isFormulaId','USER_IS_ANONYMOUS','bind','Workbook','fill','FETCH_MISS','body','assignAColorForMemberID','Success','measureText','_docStateChangeManagerService','unitID','getCurrent','NOT_FOUND','_univerInstanceService','MemberService','1329279FXuktp','OTHER_CLIENTS_EDITING','_anchor','displayName','error','_renderManagerService','CONNECTOR_DATA_TOO_LARGE','fillText','generateRandomId','513112HTWdWb','M0\x200H16V16H0z','DesktopCollaborationStatusDisplayController','selection','currentTheme$','session.connection-failed','_draw','red.300','size','Module','transformRemoteChangeset','_themeService','LICENSE_MAX_UNITS_EXCEEDED','clearInterval','_initDependencies','_ensureSubject','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','YUUMI_UNABLE_LOAD_URL','_syncEditingCollabCursorService','setInterval','delete','result','CollaborationUIEventId','RefRangeService','name','LICENSE_IMPORT_SIZE_EXCEEDED','_name','current','DocSkeletonManagerService','startsWith','DocCollaborationEntity','collabStatus.fetchMiss','RECT','UNRECOGNIZED','834090ZLxuGr','getMember','purple.300','_drawTextRange','makeDirty','_initWindowErrorListener','getUndoRedoMutationParamsCache','url(#$1','getCurrentSelections','IMessageService','attrs','UNIVER_SHEET','entries','collaboration.single-unit.warning','Vector2','font','doc.mutation.rich-text-editing','range','_setFormulaLimitStatus','/universer-api/license/formula/limit/status','storage','join','_session','_docSkeletonManagerService','RemoveColCommandId','getColor','sessionTicket','_id','DocSelectionManagerService','ISocketService','bottom','setConfig','_docSkeleton','asObservable','TEXT_RANGE_LAYER_INDEX','xlink:href','message','addHandlerCallback','getSheetBySheetId','substring','data','getSkeleton','_logService','wsSessionTicketUrl','_onRefRangeChange','SheetsSelectionsService','replace','SessionStatus','getValue','_unitStatus','ONLINE','DependentOn','subscribe','unhandledrejection','filter','IURLService','set','DisposableCollection','getColorFromTheme','unitId','now','fillStyle','string','updateOfflineData','_initCommandInterceptor','jsx','SheetSkeletonManagerService','complete','unload','transformSelections','dispose','SetSelectionsOperation','_toggleOnline','onCommandExecuted','_assignedColors','YUUMI_ALL_TABLES_IS_INVALID','shareReplay','removeParam','TOO_MANY_REQUESTS','collab-rect-range-','COLORS','_onCursorDelete','lineno','Optional','UniverIcon','children','CURRENT_STATUS_CANNOT_OPERATE','entityInit$','_updateSubUnitFromURLParams','_hover','stage','mask','[Unhandled\x20Rejection]:\x20','_heartbeatTimer','handleInsertRow','some','_setupSubUnitSync','UNAUTHENTICATED','removeEventListener','loadOfflineData','override','SUBMIT_CHANGESET_TIMEOUT','getCellMatrix','addObjects','_initEvent','_saveCache','setShapeProps','_startSheetCollabCursor','_handleJoinEvent','_startDocCollabCursor','off-line-icon_clip0_910_343','catch','onPointerLeave$','m1Prime','yellow.400','_getMergeRange','?taskId=','deserializeRangeWithSheet','_send','getViewport','OTHER_CLIENT_EDITING','_docClipboardService','syncEditingCollabCursor','_toggleOffline','_document','APPLY_NON_SEQUENTIAL_REVISION','has','getTypeOfUnitDisposed$','roomMembers$','addClipboardHook','search','_initUserListener','beforeCommandExecuted','WebURLService','isActive','registerComponent','_backgroundColor','collaboration.offline-data-not-saved','REDEMPTION_CODE_INACTIVE','REDEMPTION_USER_NOT_ELIGIBLE','functionsExecutedState','collab-text-anchor-','InsertRangeMoveRightCommandId','href','INVALID_ARGUMENT','formula.calculation.started','ticket','combineLatest','_render','toRgbString','UNIVER_DOC','startColumn','FormulaExecuteStageType','getCollabCursors$','drawWith','CollaborationUIEventService','length','ENTITLE_CHAT_LIMIT_EXCEED','editingUnit','APPLY_DUPLICATED','YUUMI_ASYNCIO_CANCELLED','enableFrontendLog','INTERNAL_ERROR','resize','_entities','CHANGESET_REVISION_CONFILICT','getTypeOfUnitAdded$','_docTransformStateCacheService','shift','_sheetSkeletonManagerService','replaceState','getParam','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','NOT_COLLAB','values','APPLY_REVISION_CONFILICT','getUnit','getCoordByCell','ILocalCacheService','HTTPService','touchDependencies','uni.network.url-service','LICENSE_DISTRO_REJECTED','transform','runOnServer','hovered','stringify','_dataLoaderService','isTransformMutationsWithChangesetSuccess','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','moveTo','height','getSheetObject','undoState','_docSyncEditingCollabCursorService','APPLY_REJECT','_getScale','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_collaborationController','clsx','setAlpha','saveTaskMap','getDocRanges','setUndoRedoMutationParamsCache','subscribeEvent','handleInsertRangeMoveRight','UNDEFINED','NodePositionConvertToRectRange','CONFLICT','ColorKit','APPLY_PERMISSION_DENIED','_entityInit$','SetFormulaCalculationStartMutation','addObject','AWAITING','_handleLeaveEvent','CollaborationSessionService','useCallback','PENDING','rgba(255,\x20255,\x20255,\x200.01)','enableLocalCache','includes','textRanges','parseInt','pushState','_selfUnitIDs','HEADER_MENU','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onPointerEnter$','add','width','roomMembers','mutations','BrowserCollaborationSocketService','#FFF','SetWorksheetActivateCommand','map','15uocbdz','_doCreateSocket','mergeOverrideWithDependencies','all','_localeService','limitInfo','_transformUndoRedoStack','YUUMI_URL_COL_OUT_OF_RANGE','LOGIN_TOKEN_PROCESSING_FAILED','_roomMembers$','_instanceService','_drawRectRange','disposeWithMe','ENTITLE_INSUFFICIENT_QUOTA','Unknown\x20user','trim','unshift','_unitOnClients','getStateCache','_initStatusComponent','_handleHeartbeatEvent','createSocket','useDependency','_docTransformIMECacheService','UnitStatus','history','isArray','startRow','type','_initResize','76618xmxGoq','IImageIoService','memberID','colno','actions','INVITE_CODE_REQUIRED','INVITE_CODE_ALREADY_BOUND','event$','div','_color','collabCursorState$','REDEMPTION_CODE_FULLY_REDEEMED','onStarting','AUTHORIZE_CODE_ILLEGAL','YUUMI_CONNECTOR_URL_NOT_FOUND','ENTITLE_NEED_BILLING_ADDRESS','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_memberService','WebSocketService','_localCacheService','YUUMI_NO_CUBOID_FOR_QUESTION','UniverInstanceType','IRemoteInstanceService','getCurrentRevOfUnit','url(#on-line-icon_clip0_910_349)','_registerRenderDependencies','_initCommandExecutedListener','color','InsertRangeMoveDownCommandId','_beforeCloseService','getCollabEntity$','code','_getSaveTimeout','/universer-api/frontend/logs','_anchorDot','debug','_notificationService','transformByState','closePath','lineTo','_hovered','push','getItem','saveOfflineData','Inject','endRow','Injector','setTimeout','session.will-retry','find','_hideTimer','subUnitId','SUCCESS','_revisionService','show','IDocClipboardService'];_0x7500=function(){return _0x21a02a;};return _0x7500();}var jt=Object['getOwnPropertyDescriptor'],kt=(_0x548be2,_0x545b66,_0x11772a,_0x23b37e)=>{const _0x36994c=_0x12c13e;for(var _0x331563=_0x23b37e>0x1?void 0x0:_0x23b37e?jt(_0x545b66,_0x11772a):_0x545b66,_0x573555=_0x548be2[_0x36994c(0x1b0)]-0x1,_0x5b0226;_0x573555>=0x0;_0x573555--)(_0x5b0226=_0x548be2[_0x573555])&&(_0x331563=_0x5b0226(_0x331563)||_0x331563);return _0x331563;},z=(_0x23f39b,_0x124f7f)=>(_0x4cc399,_0x2ed0e7)=>_0x124f7f(_0x4cc399,_0x2ed0e7,_0x23f39b);let Q=class extends a['Disposable']{constructor(_0x2fcf73,_0x26f8f6,_0x26375f,_0x1b93ce){const _0x2e1f04=_0x12c13e;super(),_(this,'_memberID'),(this[_0x2e1f04(0x30d)]=_0x2fcf73,this[_0x2e1f04(0x378)]=_0x26f8f6,this[_0x2e1f04(0x13e)]=_0x26375f,this[_0x2e1f04(0x357)]=_0x1b93ce,this[_0x2e1f04(0x274)]());}['_init'](){const _0x280570=_0x12c13e;this['_initWindowErrorListener'](),this[_0x280570(0x26f)](),this[_0x280570(0x388)](),this[_0x280570(0x197)]();}[_0x12c13e(0x197)](){const _0x2817fe=_0x12c13e;this[_0x2817fe(0x20d)](this[_0x2817fe(0x357)][_0x2817fe(0x2ce)]['subscribe'](_0x2a41c8=>{const _0x55ba71=_0x2817fe;this[_0x55ba71(0x297)]=_0x2a41c8==null?void 0x0:_0x2a41c8[_0x55ba71(0x221)];}));}[_0x12c13e(0x119)](){const _0x799e36=_0x12c13e,_0x39a290=_0x4e68f5=>{const _0x4fb9a3=_0x4e05;var _0x4531cb;this['_uploadLog']('error','[Window\x20Error]:\x20'+_0x4e68f5[_0x4fb9a3(0x138)]+_0x4fb9a3(0x313)+_0x4e68f5[_0x4fb9a3(0x368)]+':'+_0x4e68f5[_0x4fb9a3(0x166)]+':'+_0x4e68f5[_0x4fb9a3(0x222)]+'\x0a'+(((_0x4531cb=_0x4e68f5[_0x4fb9a3(0xed)])==null?void 0x0:_0x4531cb['stack'])||''));};window['addEventListener']('error',_0x39a290),this[_0x799e36(0x20d)](()=>{const _0x3b80=_0x799e36;window[_0x3b80(0x176)](_0x3b80(0xed),_0x39a290);});}['_initUnhandledRejectionListener'](){const _0x24a90b=_0x12c13e,_0x4c5d5e=_0x2a6674=>{const _0x5b2320=_0x4e05;this[_0x5b2320(0x341)]('error',_0x5b2320(0x170)+_0x2a6674[_0x5b2320(0x267)]);};window[_0x24a90b(0x282)]('unhandledrejection',_0x4c5d5e),this[_0x24a90b(0x20d)](()=>{const _0x1a6b9a=_0x24a90b;window[_0x1a6b9a(0x176)](_0x1a6b9a(0x149),_0x4c5d5e);});}[_0x12c13e(0x388)](){const _0x18e038=_0x12c13e,_0x194e8f=this[_0x18e038(0x13e)][_0x18e038(0xed)][_0x18e038(0xdb)](this[_0x18e038(0x13e)]);this[_0x18e038(0x13e)][_0x18e038(0xed)]=(..._0x1f9636)=>{const _0x24ca7a=_0x18e038,_0x565ed1=_0x1f9636[_0x24ca7a(0x200)](_0x5414a4=>_0x5414a4 instanceof Error?_0x5414a4[_0x24ca7a(0x138)]+'\x0a'+_0x5414a4[_0x24ca7a(0x2ef)]:String(_0x5414a4))[_0x24ca7a(0x129)]('\x20');this[_0x24ca7a(0x341)](_0x24ca7a(0xed),'[LogService\x20Error]:\x20'+_0x565ed1),_0x194e8f(..._0x1f9636);},this[_0x18e038(0x20d)](()=>{const _0x41f2b4=_0x18e038;this[_0x41f2b4(0x13e)][_0x41f2b4(0xed)]=_0x194e8f;});}['_uploadLog'](_0x101320,_0x976394){const _0x378aa=_0x12c13e;try{const _0x8b3bc8={'userId':this['_memberID'],'logLabel':_0x101320,'content':_0x976394};this[_0x378aa(0x378)][_0x378aa(0x2a7)](_0x378aa(0x240),{'body':_0x8b3bc8})[_0x378aa(0x183)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x12c13e(0x24b)](a['Injector'])),z(0x1,a[_0x12c13e(0x24b)](x[_0x12c13e(0x1c7)])),z(0x2,a['ILogService']),z(0x3,a[_0x12c13e(0x24b)](u[_0x12c13e(0x1ec)]))],Q);const Yt=_0x12c13e(0x2b5),Me={};var Ht=Object[_0x12c13e(0x331)],Wt=(_0x13c7d3,_0x4a0e9e,_0x519ca9,_0x2af566)=>{const _0x465c72=_0x12c13e;for(var _0x68e46=_0x2af566>0x1?void 0x0:_0x2af566?Ht(_0x4a0e9e,_0x519ca9):_0x4a0e9e,_0x5d3ee4=_0x13c7d3[_0x465c72(0x1b0)]-0x1,_0x4f6db0;_0x5d3ee4>=0x0;_0x5d3ee4--)(_0x4f6db0=_0x13c7d3[_0x5d3ee4])&&(_0x68e46=_0x4f6db0(_0x68e46)||_0x68e46);return _0x68e46;},Ae=(_0x37a09f,_0x33fd74)=>(_0x141842,_0x26e962)=>_0x33fd74(_0x141842,_0x26e962,_0x37a09f);let ee=class{constructor(_0x12a8d3,_0x20d348){const _0x53194f=_0x12c13e;this[_0x53194f(0x2cf)]=_0x12a8d3,this[_0x53194f(0xee)]=_0x20d348;}[_0x12c13e(0x2c7)](_0x31ba57){const _0x2e632f=_0x12c13e;this[_0x2e632f(0x207)](_0x31ba57),this[_0x2e632f(0x258)](_0x31ba57);}['transformRemoteChangeset'](_0x4b25b3){const _0x4a5386=_0x12c13e,{unitID:_0xc04f41}=_0x4b25b3,_0x4b5249=this[_0x4a5386(0xee)][_0x4a5386(0x31e)](_0xc04f41)[_0x4a5386(0x394)](T[_0x4a5386(0x36f)]),{redoCache:_0x40cfb3}=_0x4b5249[_0x4a5386(0x11a)]();if(_0x40cfb3[_0x4a5386(0x1b0)]===0x0)return _0x4b25b3;let _0x218241=a[_0x4a5386(0xd5)]['deepClone'](_0x4b25b3['mutations'][0x0]);for(let _0x3f164e=0x0;_0x3f164e<_0x40cfb3[_0x4a5386(0x1b0)];_0x3f164e++){const _0x40e935={'id':_0x4a5386(0x124),'params':{..._0x40cfb3[_0x3f164e]}},_0x1b00cb=this[_0x4a5386(0x2cf)][_0x4a5386(0x26e)](_0x218241,_0x40e935,!0x1);if(g[_0x4a5386(0x385)](_0x1b00cb))throw _0x1b00cb['error'];_0x218241=_0x1b00cb[_0x4a5386(0x185)];}return{...a[_0x4a5386(0xd5)]['deepClone'](_0x4b25b3),'mutations':[_0x218241]};}[_0x12c13e(0x207)](_0x23b70b){const _0xebbe81=_0x12c13e,{unitID:_0x234346}=_0x23b70b,_0x253013=this[_0xebbe81(0xee)][_0xebbe81(0x31e)](_0x234346)[_0xebbe81(0x394)](T['DocIMEInputManagerService']),{undoCache:_0x5e4246,redoCache:_0x598a66}=_0x253013['getUndoRedoMutationParamsCache']();if(_0x5e4246['length']===0x0||_0x598a66[_0xebbe81(0x1b0)]===0x0)return;const _0x45cf43=[],_0x2366c9=[];let _0x4430cf=a['Tools'][_0xebbe81(0x354)](_0x23b70b[_0xebbe81(0x1fc)][0x0]),_0x537f1d=a[_0xebbe81(0xd5)][_0xebbe81(0x354)](_0x23b70b[_0xebbe81(0x1fc)][0x0]);for(let _0x37f91c=_0x5e4246[_0xebbe81(0x1b0)]-0x1;_0x37f91c>=0x0;_0x37f91c--){const _0x2b252c={'id':'doc.mutation.rich-text-editing','params':{..._0x5e4246[_0x37f91c]}},_0x4b1dcb={'id':_0xebbe81(0x124),'params':{..._0x598a66[_0x37f91c]}},_0x25f5c9=this[_0xebbe81(0x2cf)][_0xebbe81(0x26e)](_0x4430cf,_0x2b252c,!0x1),_0x2b24a8=this[_0xebbe81(0x2cf)]['transformMutation'](_0x537f1d,_0x4b1dcb,!0x1);if(g[_0xebbe81(0x385)](_0x25f5c9))throw _0x25f5c9[_0xebbe81(0xed)];if(g['isTransformMutationFailure'](_0x2b24a8))throw _0x2b24a8[_0xebbe81(0xed)];_0x45cf43[_0xebbe81(0x211)](_0x25f5c9['m2Prime']['params']),_0x2366c9[_0xebbe81(0x211)](_0x2b24a8[_0xebbe81(0x31b)]['params']),_0x4430cf=_0x25f5c9[_0xebbe81(0x185)],_0x537f1d=_0x2b24a8[_0xebbe81(0x185)];}_0x253013[_0xebbe81(0x1df)]({'undoCache':_0x45cf43,'redoCache':_0x2366c9});}[_0x12c13e(0x258)](_0x412679){const _0x588409=_0x12c13e,{unitID:_0x52f9d1}=_0x412679,_0x1c6e1d=this[_0x588409(0xee)][_0x588409(0x31e)](_0x52f9d1)[_0x588409(0x394)](T['DocIMEInputManagerService']),_0x39af7d=_0x1c6e1d[_0x588409(0x2c2)]();if(_0x39af7d==null)return;const _0x2ec6be=[{'id':_0x588409(0x124),'params':{'unitId':_0x412679['unitID'],'actions':null,'textRanges':[_0x39af7d]}}],_0x5af60a=this[_0x588409(0x2cf)][_0x588409(0x336)](_0x412679,_0x2ec6be);if(!g[_0x588409(0x1d0)](_0x5af60a))throw _0x5af60a['error'];const _0x2f6921=_0x5af60a[_0x588409(0x31b)][0x0][_0x588409(0x2cb)][_0x588409(0x1f2)];Array[_0x588409(0x21b)](_0x2f6921)&&_0x2f6921['length']&&_0x1c6e1d['setActiveRange'](_0x2f6921[0x0]);}};ee=Wt([Ae(0x0,g[_0x12c13e(0x307)]),Ae(0x1,C[_0x12c13e(0x28b)])],ee);var Vt=Object[_0x12c13e(0x331)],Gt=(_0x4dcbe2,_0x47bacf,_0x5b20d8,_0x287be6)=>{const _0x467950=_0x12c13e;for(var _0x163b39=_0x287be6>0x1?void 0x0:_0x287be6?Vt(_0x47bacf,_0x5b20d8):_0x47bacf,_0x59b280=_0x4dcbe2[_0x467950(0x1b0)]-0x1,_0x2e178a;_0x59b280>=0x0;_0x59b280--)(_0x2e178a=_0x4dcbe2[_0x59b280])&&(_0x163b39=_0x2e178a(_0x163b39)||_0x163b39);return _0x163b39;},Ie=(_0xc4cf72,_0x1a7b62)=>(_0x30f26c,_0x59e36d)=>_0x1a7b62(_0x30f26c,_0x59e36d,_0xc4cf72);let te=class{constructor(_0x15616b,_0x2dfedf,_0x281f2e){const _0x1a2d26=_0x12c13e;this[_0x1a2d26(0x30d)]=_0x15616b,this[_0x1a2d26(0x2cf)]=_0x2dfedf,this[_0x1a2d26(0xe3)]=_0x281f2e;}[_0x12c13e(0x2c9)](_0x166f74){this['_transformHistoryAndStateStack'](_0x166f74);}['transformRemoteChangeset'](_0x13169f){const _0x5d228a=_0x12c13e,{unitID:_0x30b35d}=_0x13169f,{collaboration:_0x5cb6ff}=this[_0x5d228a(0xe3)][_0x5d228a(0x213)](_0x30b35d);if(_0x5cb6ff[_0x5d228a(0x1b0)]===0x0)return _0x13169f;let _0x3ce243=a[_0x5d228a(0xd5)][_0x5d228a(0x354)](_0x13169f[_0x5d228a(0x1fc)][0x0]);for(let _0x12d92e=0x0;_0x12d92e<_0x5cb6ff[_0x5d228a(0x1b0)];_0x12d92e++){const _0x372467={'id':_0x5d228a(0x124),'params':{'unitId':_0x5cb6ff[_0x12d92e]['unitId'],..._0x5cb6ff[_0x12d92e][_0x5d228a(0x35e)]}},_0x2c4248=this[_0x5d228a(0x2cf)][_0x5d228a(0x26e)](_0x3ce243,_0x372467,!0x1);if(g[_0x5d228a(0x385)](_0x2c4248))throw _0x2c4248[_0x5d228a(0xed)];_0x3ce243=_0x2c4248[_0x5d228a(0x185)];}return{...a[_0x5d228a(0xd5)][_0x5d228a(0x354)](_0x13169f),'mutations':[_0x3ce243]};}[_0x12c13e(0x395)](_0x2ae74e){const _0x184078=_0x12c13e,{unitID:_0x4742be}=_0x2ae74e,{history:_0x11fea1,collaboration:_0x3d6bc6}=this[_0x184078(0xe3)]['getStateCache'](_0x4742be);if(_0x11fea1[_0x184078(0x1b0)]===0x0&&_0x3d6bc6[_0x184078(0x1b0)]===0x0)return;const _0xd62d57=[],_0x5e1c1d=[];let _0x415f57=a[_0x184078(0xd5)][_0x184078(0x354)](_0x2ae74e[_0x184078(0x1fc)][0x0]),_0x1dddff=a['Tools'][_0x184078(0x354)](_0x2ae74e[_0x184078(0x1fc)][0x0]);for(let _0x418b4d=_0x11fea1['length']-0x1;_0x418b4d>=0x0;_0x418b4d--){const _0xda9c52={'id':_0x184078(0x124),'params':{'unitId':_0x11fea1[_0x418b4d][_0x184078(0x14f)],..._0x11fea1[_0x418b4d]['undoState']}},_0x432340={'id':_0x184078(0x124),'params':{'unitId':_0x11fea1[_0x418b4d][_0x184078(0x14f)],..._0x11fea1[_0x418b4d]['redoState']}},_0x4ee533=this[_0x184078(0x2cf)][_0x184078(0x26e)](_0x415f57,_0xda9c52,!0x1),_0x2a2223=this[_0x184078(0x2cf)]['transformMutation'](_0x1dddff,_0x432340,!0x1);if(g['isTransformMutationFailure'](_0x4ee533))throw _0x4ee533[_0x184078(0xed)];if(g['isTransformMutationFailure'](_0x2a2223))throw _0x2a2223[_0x184078(0xed)];_0xd62d57[_0x184078(0x211)]({..._0x11fea1[_0x418b4d],'undoState':_0x4ee533[_0x184078(0x31b)]['params'],'redoState':_0x2a2223[_0x184078(0x31b)][_0x184078(0x2cb)]}),_0x415f57=_0x4ee533[_0x184078(0x185)],_0x1dddff=_0x2a2223[_0x184078(0x185)];}_0x415f57=a[_0x184078(0xd5)][_0x184078(0x354)](_0x2ae74e[_0x184078(0x1fc)][0x0]),_0x1dddff=a['Tools'][_0x184078(0x354)](_0x2ae74e['mutations'][0x0]);for(let _0x3f6576=_0x3d6bc6[_0x184078(0x1b0)]-0x1;_0x3f6576>=0x0;_0x3f6576--){const _0x58092f={'id':_0x184078(0x124),'params':{'unitId':_0x3d6bc6[_0x3f6576][_0x184078(0x14f)],..._0x3d6bc6[_0x3f6576][_0x184078(0x1d5)]}},_0x4a3d45={'id':_0x184078(0x124),'params':{'unitId':_0x3d6bc6[_0x3f6576][_0x184078(0x14f)],..._0x3d6bc6[_0x3f6576]['redoState']}},_0x4cf587=this['_transformService'][_0x184078(0x26e)](_0x415f57,_0x58092f,!0x1),_0x311498=this['_transformService'][_0x184078(0x26e)](_0x1dddff,_0x4a3d45,!0x1);if(g['isTransformMutationFailure'](_0x4cf587))throw _0x4cf587[_0x184078(0xed)];if(g[_0x184078(0x385)](_0x311498))throw _0x311498[_0x184078(0xed)];_0x5e1c1d['unshift']({..._0x3d6bc6[_0x3f6576],'undoState':_0x4cf587[_0x184078(0x31b)]['params'],'redoState':_0x311498['m2Prime'][_0x184078(0x2cb)]}),_0x415f57=_0x4cf587['m1Prime'],_0x1dddff=_0x311498[_0x184078(0x185)];}this['_docStateChangeManagerService']['setStateCache'](_0x4742be,{'history':_0xd62d57,'collaboration':_0x5e1c1d});}};te=Gt([Ie(0x0,a[_0x12c13e(0x24b)](a[_0x12c13e(0x24d)])),Ie(0x1,g[_0x12c13e(0x307)]),Ie(0x2,a[_0x12c13e(0x24b)](T[_0x12c13e(0x279)]))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x41828f,_0x3a3687,_0x281f08,_0x5603fe)=>{const _0x662a60=_0x12c13e;for(var _0x3bf387=_0x5603fe>0x1?void 0x0:_0x5603fe?Xt(_0x3a3687,_0x281f08):_0x3a3687,_0xc4bf7=_0x41828f[_0x662a60(0x1b0)]-0x1,_0x1e815b;_0xc4bf7>=0x0;_0xc4bf7--)(_0x1e815b=_0x41828f[_0xc4bf7])&&(_0x3bf387=_0x1e815b(_0x3bf387)||_0x3bf387);return _0x3bf387;},Pe=(_0x3bf794,_0x503046)=>(_0x590dfc,_0x196c96)=>_0x503046(_0x590dfc,_0x196c96,_0x3bf794);let se=class{constructor(_0xada5ff,_0x499673){const _0x3cbd34=_0x12c13e;this[_0x3cbd34(0x30d)]=_0xada5ff,this[_0x3cbd34(0x2cf)]=_0x499673;}[_0x12c13e(0x159)](_0x4692de){const _0x3e0ad4=_0x12c13e;var _0x38ac54;const _0xda2af3=this[_0x3e0ad4(0x30d)]['get'](V[_0x3e0ad4(0x130)]),_0x1538d5=(_0x38ac54=_0xda2af3[_0x3e0ad4(0x1de)]())!=null?_0x38ac54:[];if(_0x1538d5[_0x3e0ad4(0x1b0)]===0x0)return;const _0x1d13af=_0x4692de[_0x3e0ad4(0xe4)],_0x4117ac=[{'id':_0x3e0ad4(0x124),'params':{'unitId':_0x1d13af,'actions':null,'textRanges':_0x1538d5}}],_0x2a7f50=this['_transformService'][_0x3e0ad4(0x336)](_0x4692de,_0x4117ac);if(!g['isTransformMutationsWithChangesetSuccess'](_0x2a7f50))throw _0x2a7f50['error'];const _0x32d7a4=_0x2a7f50[_0x3e0ad4(0x31b)][0x0]['params'][_0x3e0ad4(0x1f2)];Array[_0x3e0ad4(0x21b)](_0x32d7a4)&&_0x32d7a4[_0x3e0ad4(0x1b0)]&&_0xda2af3['replaceDocRanges'](_0x32d7a4,{'unitId':_0x1d13af,'subUnitId':_0x1d13af},!0x1);}};se=Kt([Pe(0x0,a[_0x12c13e(0x24b)](a[_0x12c13e(0x24d)])),Pe(0x1,g[_0x12c13e(0x307)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x10f3e8,_0x58e242,_0x379073,_0x232214)=>{for(var _0x490cf5=_0x232214>0x1?void 0x0:_0x232214?qt(_0x58e242,_0x379073):_0x58e242,_0x376485=_0x10f3e8['length']-0x1,_0x5e947b;_0x376485>=0x0;_0x376485--)(_0x5e947b=_0x10f3e8[_0x376485])&&(_0x490cf5=_0x5e947b(_0x490cf5)||_0x490cf5);return _0x490cf5;},N=(_0x521bb6,_0x179d1c)=>(_0x4c5529,_0x32b2dd)=>_0x179d1c(_0x4c5529,_0x32b2dd,_0x521bb6);let ie=class extends a[_0x12c13e(0x30f)]{constructor(_0x13c8f4,_0x4ff198,_0xdec820,_0x1d57cd,_0x267f96,_0x916608,_0x4271e5,_0x19718e){const _0x54d38f=_0x12c13e;super(),_(this,_0x54d38f(0xd8),new I[(_0x54d38f(0x383))](u[_0x54d38f(0x393)][_0x54d38f(0x1c1)])),(this[_0x54d38f(0xe3)]=_0x13c8f4,this[_0x54d38f(0x1da)]=_0x4ff198,this['_docTransformIMECacheService']=_0xdec820,this['_docTransformStateCacheService']=_0x1d57cd,this[_0x54d38f(0x358)]=_0x267f96,this[_0x54d38f(0x1d6)]=_0x916608,this[_0x54d38f(0x2dd)]=_0x4271e5,this['_localeService']=_0x19718e,this[_0x54d38f(0x28a)]());}[_0x12c13e(0x28a)](){const _0x1e8967=_0x12c13e;this[_0x1e8967(0x20d)](this[_0x1e8967(0x1da)][_0x1e8967(0x16b)][_0x1e8967(0x148)](_0x797202=>{const _0xf33af=_0x1e8967,_0xc1ed20=this[_0xf33af(0xe3)]['docStateChange$']['subscribe'](_0x445c82=>{const _0x345100=_0xf33af;if(_0x445c82==null)return;const {unitId:_0x605cbb,redoState:_0xb51cd5,commandId:_0x2353f2}=_0x445c82;if(_0x605cbb!==_0x797202[_0x345100(0xe4)])return;const _0x189fbb={'id':_0x2353f2,'type':a[_0x345100(0xce)]['MUTATION'],'params':{'unitId':_0x605cbb,'actions':_0xb51cd5[_0x345100(0x223)],'textRanges':null}};_0x797202[_0x345100(0x311)](_0x189fbb);});if(_0x797202[_0xf33af(0x20d)](_0xc1ed20),_0x797202 instanceof u[_0xf33af(0x110)]){const _0x353e06={'onTransformIME':_0x19f55b=>this['_docTransformIMECacheService']['transformIMECache'](_0x19f55b),'onTransformState':_0x443963=>this['_docTransformStateCacheService'][_0xf33af(0x2c9)](_0x443963),'onTransformSelections':_0x7baf47=>this['_docTransformSelectionsService'][_0xf33af(0x159)](_0x7baf47),'onSyncEditingCollabCursor':_0x34ffb2=>this[_0xf33af(0x1d6)][_0xf33af(0x18e)](_0x34ffb2),'onTransformRemoteChangesetByIMECache':_0x460dd9=>this[_0xf33af(0x218)][_0xf33af(0xfc)](_0x460dd9),'onTransformRemoteChangesetByStateCache':_0x1db65f=>this[_0xf33af(0x1bb)][_0xf33af(0xfc)](_0x1db65f)};_0x797202[_0xf33af(0x139)](_0x353e06);}}));}};ie=zt([N(0x0,a[_0x12c13e(0x24b)](T[_0x12c13e(0x279)])),N(0x1,a[_0x12c13e(0x24b)](u[_0x12c13e(0x2b6)])),N(0x2,a[_0x12c13e(0x24b)](ee)),N(0x3,a[_0x12c13e(0x24b)](te)),N(0x4,a[_0x12c13e(0x24b)](se)),N(0x5,a[_0x12c13e(0x24b)](be)),N(0x6,O[_0x12c13e(0x11d)]),N(0x7,a[_0x12c13e(0x24b)](a[_0x12c13e(0x260)]))],ie);var G=(_0x350283=>(_0x350283[_0x350283[_0x12c13e(0x1e2)]=0x0]='UNDEFINED',_0x350283[_0x350283['OK']=0x1]='OK',_0x350283[_0x350283[_0x12c13e(0x1b6)]=0x2]=_0x12c13e(0x1b6),_0x350283[_0x350283[_0x12c13e(0x373)]=0x3]='PERMISSION_DENIED',_0x350283[_0x350283[_0x12c13e(0xe6)]=0x4]=_0x12c13e(0xe6),_0x350283[_0x350283[_0x12c13e(0x175)]=0x5]='UNAUTHENTICATED',_0x350283[_0x350283['ALREADY_EXISTS']=0x6]=_0x12c13e(0x35c),_0x350283[_0x350283[_0x12c13e(0x1a4)]=0x7]='INVALID_ARGUMENT',_0x350283[_0x350283['TOO_MANY_REQUESTS']=0x8]=_0x12c13e(0x162),_0x350283[_0x350283[_0x12c13e(0x289)]=0x9]=_0x12c13e(0x289),_0x350283[_0x350283['LOGIN_FAILED']=0xa]=_0x12c13e(0x27b),_0x350283[_0x350283[_0x12c13e(0x2c0)]=0xb]=_0x12c13e(0x2c0),_0x350283[_0x350283[_0x12c13e(0x305)]=0xc]=_0x12c13e(0x305),_0x350283[_0x350283[_0x12c13e(0x30c)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x350283[_0x350283[_0x12c13e(0x2f7)]=0xe]=_0x12c13e(0x2f7),_0x350283[_0x350283[_0x12c13e(0x22c)]=0xf]=_0x12c13e(0x22c),_0x350283[_0x350283[_0x12c13e(0x209)]=0x10]=_0x12c13e(0x209),_0x350283[_0x350283[_0x12c13e(0x16a)]=0x64]=_0x12c13e(0x16a),_0x350283[_0x350283[_0x12c13e(0x38f)]=0x65]=_0x12c13e(0x38f),_0x350283[_0x350283[_0x12c13e(0x283)]=0xc9]='USER_NOT_FOUND',_0x350283[_0x350283['USER_IS_ANONYMOUS']=0xca]=_0x12c13e(0xda),_0x350283[_0x350283[_0x12c13e(0x1b9)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x350283[_0x350283['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x12c13e(0x2f1),_0x350283[_0x350283[_0x12c13e(0x2e0)]=0x1772]=_0x12c13e(0x2e0),_0x350283[_0x350283[_0x12c13e(0x390)]=0x1773]=_0x12c13e(0x390),_0x350283[_0x350283[_0x12c13e(0x1d7)]=0x1b59]=_0x12c13e(0x1d7),_0x350283[_0x350283[_0x12c13e(0x191)]=0x1b5a]=_0x12c13e(0x191),_0x350283[_0x350283[_0x12c13e(0x1c3)]=0x1b5b]=_0x12c13e(0x1c3),_0x350283[_0x350283[_0x12c13e(0x1e6)]=0x1b5c]=_0x12c13e(0x1e6),_0x350283[_0x350283[_0x12c13e(0x1b3)]=0x1b5d]=_0x12c13e(0x1b3),_0x350283[_0x350283[_0x12c13e(0xef)]=0x1f41]=_0x12c13e(0xef),_0x350283[_0x350283[_0x12c13e(0xfe)]=0x2329]=_0x12c13e(0xfe),_0x350283[_0x350283[_0x12c13e(0x290)]=0x232a]=_0x12c13e(0x290),_0x350283[_0x350283[_0x12c13e(0x10b)]=0x232b]=_0x12c13e(0x10b),_0x350283[_0x350283['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x12c13e(0x32a),_0x350283[_0x350283[_0x12c13e(0x1ca)]=0x232d]=_0x12c13e(0x1ca),_0x350283[_0x350283[_0x12c13e(0x103)]=0x2711]=_0x12c13e(0x103),_0x350283[_0x350283[_0x12c13e(0x208)]=0x2712]=_0x12c13e(0x208),_0x350283[_0x350283[_0x12c13e(0x2bf)]=0x2713]=_0x12c13e(0x2bf),_0x350283[_0x350283[_0x12c13e(0x323)]=0x2714]=_0x12c13e(0x323),_0x350283[_0x350283[_0x12c13e(0x233)]=0x271a]=_0x12c13e(0x233),_0x350283[_0x350283[_0x12c13e(0x1b4)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x350283[_0x350283[_0x12c13e(0x22f)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x350283[_0x350283['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x12c13e(0x15f),_0x350283[_0x350283[_0x12c13e(0x284)]=0x271e]=_0x12c13e(0x284),_0x350283[_0x350283['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x350283[_0x350283[_0x12c13e(0x22d)]=0x2720]=_0x12c13e(0x22d),_0x350283[_0x350283['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x12c13e(0x396),_0x350283[_0x350283['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x350283[_0x350283[_0x12c13e(0x31a)]=0x2ee2]='INVALID_INVITE_CODE',_0x350283[_0x350283['INVITE_CODE_REQUIRED']=0x2ee3]=_0x12c13e(0x224),_0x350283[_0x350283['USER_NOT_INVITED_CODE']=0x2ee4]=_0x12c13e(0x359),_0x350283[_0x350283[_0x12c13e(0x225)]=0x2ee5]=_0x12c13e(0x225),_0x350283[_0x350283['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x12c13e(0x2d6),_0x350283[_0x350283['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x350283[_0x350283[_0x12c13e(0x347)]=0x32cb]=_0x12c13e(0x347),_0x350283[_0x350283['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x12c13e(0x27c),_0x350283[_0x350283[_0x12c13e(0x356)]=0x36b2]=_0x12c13e(0x356),_0x350283[_0x350283[_0x12c13e(0x37c)]=0x36b3]=_0x12c13e(0x37c),_0x350283[_0x350283['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x350283[_0x350283['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x350283[_0x350283[_0x12c13e(0x2f6)]=0x36b6]=_0x12c13e(0x2f6),_0x350283[_0x350283[_0x12c13e(0x28d)]=0x36b7]=_0x12c13e(0x28d),_0x350283[_0x350283[_0x12c13e(0x1d9)]=0x36b8]=_0x12c13e(0x1d9),_0x350283[_0x350283[_0x12c13e(0x1b1)]=0x3715]=_0x12c13e(0x1b1),_0x350283[_0x350283['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x12c13e(0x29a),_0x350283[_0x350283[_0x12c13e(0x20e)]=0x3717]=_0x12c13e(0x20e),_0x350283[_0x350283[_0x12c13e(0x22e)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x350283[_0x350283[_0x12c13e(0x32e)]=0x3a99]=_0x12c13e(0x32e),_0x350283[_0x350283[_0x12c13e(0x19e)]=0x3a9a]=_0x12c13e(0x19e),_0x350283[_0x350283['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x12c13e(0x22a),_0x350283[_0x350283[_0x12c13e(0x2d4)]=0x3a9c]=_0x12c13e(0x2d4),_0x350283[_0x350283[_0x12c13e(0x19f)]=0x3a9d]=_0x12c13e(0x19f),_0x350283[_0x350283['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x350283[_0x350283['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x350283[_0x350283['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x12c13e(0x27f),_0x350283[_0x350283[_0x12c13e(0x113)]=-0x1]=_0x12c13e(0x113),_0x350283))(G||{});function Jt(_0x33c586){const _0x2a1f85=_0x12c13e;var _0x28f871,_0xb46ad5;const _0x4203ae=(_0x28f871=_0x33c586[_0x2a1f85(0x361)])==null?void 0x0:_0x28f871[_0x2a1f85(0x16e)],_0x83df86=((_0xb46ad5=_0x33c586[_0x2a1f85(0x361)])==null?void 0x0:_0xb46ad5[_0x2a1f85(0x29d)])||0x0;return _0x4203ae===B[_0x2a1f85(0x1ac)]['START_CALCULATION']&&_0x83df86>0x0;}function Zt(_0x4db078){const _0x58f595=_0x12c13e;return _0x4db078[_0x58f595(0x1a0)]===B[_0x58f595(0x277)][_0x58f595(0x253)];}var Qt=Object[_0x12c13e(0x331)],es=(_0x1a8f10,_0x5f1b2a,_0xe7ffe3,_0x4a1d97)=>{const _0x1e083b=_0x12c13e;for(var _0x521a8d=_0x4a1d97>0x1?void 0x0:_0x4a1d97?Qt(_0x5f1b2a,_0xe7ffe3):_0x5f1b2a,_0x5bd8c1=_0x1a8f10[_0x1e083b(0x1b0)]-0x1,_0x23dffc;_0x5bd8c1>=0x0;_0x5bd8c1--)(_0x23dffc=_0x1a8f10[_0x5bd8c1])&&(_0x521a8d=_0x23dffc(_0x521a8d)||_0x521a8d);return _0x521a8d;},L=(_0xb4938f,_0xeab0c9)=>(_0x56a52,_0x52130e)=>_0xeab0c9(_0x56a52,_0x52130e,_0xb4938f);const ts=_0x12c13e(0x127),ss=_0x12c13e(0x342),is=_0x12c13e(0x2b9);let ne=class extends a[_0x12c13e(0x30f)]{constructor(_0x1ff634,_0x3e8918,_0x5e8160,_0x784b21,_0x5559d7,_0x365120,_0x2957ab){const _0x1ca119=_0x12c13e;super(),_(this,'_pollingInterval',null),_(this,_0x1ca119(0x339),0x0),_(this,_0x1ca119(0x29c),0x0),_(this,_0x1ca119(0x38d),[]),_(this,'_lastResponseTimestamp',0x0),(this['_messageService']=_0x1ff634,this[_0x1ca119(0x2a4)]=_0x3e8918,this[_0x1ca119(0x32d)]=_0x5e8160,this['_httpService']=_0x784b21,this[_0x1ca119(0xe7)]=_0x5559d7,this[_0x1ca119(0x13e)]=_0x365120,this[_0x1ca119(0x205)]=_0x2957ab,this['_initCommandInterceptor']());}[_0x12c13e(0x154)](){const _0x5c68a9=_0x12c13e;this[_0x5c68a9(0x20d)](this[_0x5c68a9(0x2a4)][_0x5c68a9(0x198)]((_0xcc6157,_0x588c9e)=>{const _0x1d7306=_0x5c68a9;var _0x7c184;if(_0xcc6157['id']!==B[_0x1d7306(0x1e8)]['id'])return;const _0x24f0fd=_0xcc6157[_0x1d7306(0x2cb)];if(!this[_0x1d7306(0x322)]((_0x7c184=_0x24f0fd['dirtyRanges'])!=null?_0x7c184:[]))return;if(!this[_0x1d7306(0x38c)]())throw this[_0x1d7306(0x2ca)](_0xcc6157,_0x588c9e),this[_0x1d7306(0x312)](),new a['CanceledError']();})),this[_0x5c68a9(0x20d)](this['_commandService'][_0x5c68a9(0x15d)]((_0x345fa7,_0x460ab4)=>{const _0x469eff=_0x5c68a9;if(_0x345fa7['id']!==B[_0x469eff(0x2eb)]['id'])return;const _0x4613a7=_0x345fa7[_0x469eff(0x2cb)];if(Jt(_0x4613a7)){const _0x3c79ed=a[_0x469eff(0xf1)]();this[_0x469eff(0x38d)][_0x469eff(0x248)](_0x3c79ed),this['_startCalculationLimit'](_0x3c79ed);}else{if(Zt(_0x4613a7)&&this[_0x469eff(0x38d)]['length']>0x0){const _0x5a1d9f=this[_0x469eff(0x38d)][_0x469eff(0x1bc)]();this[_0x469eff(0x2ee)](_0x5a1d9f);}}}));}[_0x12c13e(0x15a)](){const _0x45a901=_0x12c13e;super[_0x45a901(0x15a)](),this[_0x45a901(0x2be)](),this[_0x45a901(0x38d)]=[],this[_0x45a901(0x29c)]=0x0,this[_0x45a901(0x339)]=0x0,this[_0x45a901(0x38b)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x1ea80e,_0x7f982f){const _0x3ef903=_0x12c13e;for(let _0xd52a89=0x0;_0xd52a89<0x1e;_0xd52a89++)try{if(await this[_0x3ef903(0x30a)](),this[_0x3ef903(0x38c)]()){this[_0x3ef903(0x299)](_0x1ea80e,_0x7f982f),this[_0x3ef903(0x2dd)][_0x3ef903(0x255)]({'content':this[_0x3ef903(0x205)]['t'](_0x3ef903(0x1a5)),'type':p[_0x3ef903(0x340)][_0x3ef903(0xe1)]});return;}await new Promise(_0x2de4b0=>{this['_pollingInterval']=window['setTimeout'](_0x2de4b0,0x3e8);});}catch(_0x97c48d){this[_0x3ef903(0x13e)][_0x3ef903(0xed)](_0x97c48d);}this[_0x3ef903(0x2dd)]['show']({'content':this[_0x3ef903(0x205)]['t']('formula.calculation.unable'),'type':p[_0x3ef903(0x340)][_0x3ef903(0x280)]});}['_applyCommand'](_0x7a9395,_0xba475f){const _0x30166b=_0x12c13e;try{this[_0x30166b(0x2a4)][_0x30166b(0x328)](_0x7a9395['id'],_0x7a9395[_0x30166b(0x2cb)],_0xba475f);}catch(_0x4ba5b7){this[_0x30166b(0x13e)][_0x30166b(0xed)](_0x4ba5b7);}}[_0x12c13e(0x126)](_0x4b02cc,_0x2766ca){const _0x3478e7=_0x12c13e;_0x2766ca<this['_lastResponseTimestamp']||(this[_0x3478e7(0x38b)]=_0x2766ca,this[_0x3478e7(0x339)]=Number[_0x3478e7(0x1f3)](_0x4b02cc['maxFormulaLimit']),this[_0x3478e7(0x29c)]=Number[_0x3478e7(0x1f3)](_0x4b02cc[_0x3478e7(0x33a)]));}async['_startCalculationLimit'](_0x1c0e18){const _0x54c2ec=_0x12c13e;var _0x364daa,_0x259c2d;const _0x402367=Date['now']();try{const _0x40f662=((_0x364daa=this[_0x54c2ec(0x32d)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x364daa['startFormulaLimitUrl'])||ss,_0x7d2ddb=(await this['_httpService'][_0x54c2ec(0x2a7)](_0x40f662,{'body':JSON[_0x54c2ec(0x1ce)]({'taskId':_0x1c0e18})}))['body'];if(((_0x259c2d=_0x7d2ddb[_0x54c2ec(0xed)])==null?void 0x0:_0x259c2d[_0x54c2ec(0x23e)])!==G['OK'])return;this[_0x54c2ec(0x126)](_0x7d2ddb['limitInfo'],_0x402367);}catch(_0x416dd1){this[_0x54c2ec(0x13e)][_0x54c2ec(0xed)](_0x416dd1);}}async[_0x12c13e(0x30a)](_0x175ceb){const _0x556ff3=_0x12c13e;var _0x69d2ee,_0x1ef28b;const _0x15e3f4=Date[_0x556ff3(0x150)]();try{const _0x488363=((_0x69d2ee=this['_configService'][_0x556ff3(0x295)](u[_0x556ff3(0x372)]))==null?void 0x0:_0x69d2ee[_0x556ff3(0x2b1)])||ts,_0x1098c9=_0x175ceb?_0x488363+_0x556ff3(0x188)+encodeURIComponent(_0x175ceb):_0x488363,_0x50e333=(await this[_0x556ff3(0x378)][_0x556ff3(0x350)](_0x1098c9))['body'];if(((_0x1ef28b=_0x50e333[_0x556ff3(0xed)])==null?void 0x0:_0x1ef28b[_0x556ff3(0x23e)])!==G['OK'])return;this[_0x556ff3(0x126)](_0x50e333[_0x556ff3(0x206)],_0x15e3f4);}catch(_0x410078){this[_0x556ff3(0x13e)][_0x556ff3(0xed)](_0x410078);}}async['_releaseCalculationLimit'](_0x58056b){const _0x557efb=_0x12c13e;var _0x5ede83,_0x38a427;const _0x2479b8=Date['now']();try{const _0x43ecde=((_0x5ede83=this[_0x557efb(0x32d)][_0x557efb(0x295)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5ede83['releaseFormulaLimitUrl'])||is,_0x3e45ed=(await this[_0x557efb(0x378)][_0x557efb(0x2a7)](_0x43ecde,{'body':JSON[_0x557efb(0x1ce)]({'taskId':_0x58056b})}))[_0x557efb(0xdf)];if(((_0x38a427=_0x3e45ed[_0x557efb(0xed)])==null?void 0x0:_0x38a427[_0x557efb(0x23e)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x3e45ed['limitInfo'],_0x2479b8);}catch(_0x4b7a48){this[_0x557efb(0x13e)][_0x557efb(0xed)](_0x4b7a48);}}['_checkCalculationAvailable'](){const _0x95837d=_0x12c13e;return this[_0x95837d(0x339)]===0x0?!0x0:this[_0x95837d(0x339)]-this['_currentUsage']>0x0;}[_0x12c13e(0x2be)](){const _0x21ff87=_0x12c13e;this[_0x21ff87(0x2bc)]&&(clearTimeout(this[_0x21ff87(0x2bc)]),this['_pollingInterval']=null);}[_0x12c13e(0x312)](){const _0x501a77=_0x12c13e;this[_0x501a77(0x2dd)][_0x501a77(0x255)]({'content':this[_0x501a77(0x205)]['t'](_0x501a77(0x321)),'type':p['MessageType'][_0x501a77(0x2ad)]});}[_0x12c13e(0x322)](_0x39ed68){const _0x35952d=_0x12c13e;for(const _0x2ab78e of _0x39ed68){const {unitId:_0x27bf51,sheetId:_0x48418b,range:_0x56f838}=_0x2ab78e,_0x25be35=this[_0x35952d(0xe7)][_0x35952d(0x1c4)](_0x27bf51);if(!_0x25be35)continue;const _0x2cab56=_0x25be35[_0x35952d(0x13a)](_0x48418b);if(!_0x2cab56)continue;const _0x3e2e7c=_0x2cab56[_0x35952d(0x17a)]();for(let _0x59f3bf=_0x56f838[_0x35952d(0x21c)];_0x59f3bf<=_0x56f838['endRow'];_0x59f3bf++)for(let _0x1aecc6=_0x56f838['startColumn'];_0x1aecc6<=_0x56f838[_0x35952d(0x275)];_0x1aecc6++){const _0x7874c6=_0x3e2e7c[_0x35952d(0x144)](_0x59f3bf,_0x1aecc6);if(_0x7874c6&&(a['isFormulaString'](_0x7874c6['f'])||a[_0x35952d(0xd9)](_0x7874c6['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x12c13e(0x24b)](O[_0x12c13e(0x11d)])),L(0x1,a[_0x12c13e(0x304)]),L(0x2,a[_0x12c13e(0x386)]),L(0x3,a['Inject'](x[_0x12c13e(0x1c7)])),L(0x4,a['IUniverInstanceService']),L(0x5,a['ILogService']),L(0x6,a['Inject'](a[_0x12c13e(0x260)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x2bf8c3,_0xe38747,_0x240197,_0x3d532a)=>{const _0x1d97d1=_0x12c13e;for(var _0x5cf8f9=_0x3d532a>0x1?void 0x0:_0x3d532a?ns(_0xe38747,_0x240197):_0xe38747,_0x3a4986=_0x2bf8c3[_0x1d97d1(0x1b0)]-0x1,_0x1fc303;_0x3a4986>=0x0;_0x3a4986--)(_0x1fc303=_0x2bf8c3[_0x3a4986])&&(_0x5cf8f9=_0x1fc303(_0x5cf8f9)||_0x5cf8f9);return _0x5cf8f9;},Se=(_0x42955d,_0x2758da)=>(_0x45eedf,_0x27bc18)=>_0x2758da(_0x45eedf,_0x27bc18,_0x42955d);let Te=class extends a['Disposable']{constructor(_0x29ddb1,_0x3a9a17,_0x9b40fb){const _0x2ecb73=_0x12c13e;super(),_(this,_0x2ecb73(0x2f0),new Map()),_(this,_0x2ecb73(0xcf),new Map()),_(this,'_disabled',!0x1),(this[_0x2ecb73(0x32d)]=_0x29ddb1,this['_localStorageService']=_0x3a9a17,this[_0x2ecb73(0x254)]=_0x9b40fb);}[_0x12c13e(0x360)](){this['_disabled']=!0x0;}[_0x12c13e(0x1f0)](){const _0x298ba5=_0x12c13e;this[_0x298ba5(0x276)]=!0x1;}get[_0x12c13e(0x1dd)](){return this['_saveTaskMap'];}['dispose'](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x12c13e(0x177)](_0x589b24){const _0x5c33f1=_0x12c13e;return this[_0x5c33f1(0x276)]?null:this[_0x5c33f1(0x315)][_0x5c33f1(0x249)](u['getLocalCacheKey'](_0x589b24));}async[_0x12c13e(0x24a)](_0x3d4386,_0x431f96){return!!this['_localStorageService']['setItem'](_0x3d4386,_0x431f96);}[_0x12c13e(0x153)](_0x79119c,_0x5e0365,_0x2d744b,_0x1c917f){const _0x4bb411=_0x12c13e,_0x543bad=this[_0x4bb411(0x254)][_0x4bb411(0x236)](_0x79119c);this[_0x4bb411(0x2f0)][_0x4bb411(0x14c)](_0x79119c,{'unitID':_0x79119c,'type':_0x5e0365,'awaitingChangeset':_0x2d744b,'mutations':_0x1c917f,'rev':_0x543bad}),this[_0x4bb411(0xcf)]['has'](_0x79119c)||this['_scheduleSaving'](_0x79119c);}[_0x12c13e(0x346)](_0x28b6c0){const _0x5494d1=_0x12c13e,_0x125898=this[_0x5494d1(0x23f)]();_0x125898===0x0?this[_0x5494d1(0x17d)](_0x28b6c0):this['_saveTaskMap'][_0x5494d1(0x14c)](_0x28b6c0,setTimeout(()=>this[_0x5494d1(0x17d)](_0x28b6c0),_0x125898));}['_getSaveTimeout'](){const _0x5bfada=_0x12c13e;var _0x275fb9;return(_0x275fb9=this['_configService'][_0x5bfada(0x295)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x275fb9:u['LOCAL_CACHE_INTERVAL'];}[_0x12c13e(0x17d)](_0x11c602){const _0x359c73=_0x12c13e,_0x2b6842=this['_saveTaskMap']['get'](_0x11c602);return _0x2b6842!==void 0x0&&window[_0x359c73(0x2dc)](_0x2b6842),this['_localStorageService'][_0x359c73(0x324)](u[_0x359c73(0x33c)](_0x11c602),this[_0x359c73(0x2f0)][_0x359c73(0x350)](_0x11c602))[_0x359c73(0x26c)](()=>this['_saveTaskMap'][_0x359c73(0x106)](_0x11c602));}async[_0x12c13e(0x320)](){const _0x35b250=_0x12c13e,_0x2cf7f1=[];this[_0x35b250(0xcf)][_0x35b250(0x2aa)]((_0x2f57e2,_0x55c682)=>{const _0x3e9918=_0x35b250;window[_0x3e9918(0x2dc)](_0x2f57e2),_0x2cf7f1[_0x3e9918(0x248)](this[_0x3e9918(0x17d)](_0x55c682)[_0x3e9918(0x26c)](()=>{const _0x21cff1=_0x3e9918;this['_saveTaskMap'][_0x21cff1(0x106)](_0x55c682);}));}),await Promise[_0x35b250(0x204)](_0x2cf7f1);}};Te=rs([Se(0x0,a[_0x12c13e(0x386)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x12c13e(0x24b)](g[_0x12c13e(0x34e)]))],Te);class ke extends a[_0x12c13e(0x271)]{constructor(){const _0xe6fa8f=_0x12c13e;super(),_(this,_0xe6fa8f(0x33b)),this[_0xe6fa8f(0x33b)]=I[_0xe6fa8f(0x2db)](window,_0xe6fa8f(0x2a9))[_0xe6fa8f(0x310)](I[_0xe6fa8f(0x261)](this[_0xe6fa8f(0x34c)]),I[_0xe6fa8f(0x160)](0x1),I['mapTo'](void 0x0));}[_0x12c13e(0x2d5)](_0x53313a,_0x3b45b7,_0x29b7ab=!0x1){const _0x47fad9=_0x12c13e,_0x487320=new URL(window[_0x47fad9(0x286)]['href']);_0x487320[_0x47fad9(0x273)]['set'](_0x53313a,_0x3b45b7),_0x29b7ab?window[_0x47fad9(0x21a)][_0x47fad9(0x1be)]('','',_0x487320[_0x47fad9(0x2fa)]()):window[_0x47fad9(0x21a)][_0x47fad9(0x1f4)]('','',_0x487320[_0x47fad9(0x2fa)]());}[_0x12c13e(0x161)](_0x17327f,_0x1ceda4=!0x1){const _0x4a6bd6=_0x12c13e,_0x2f7587=new URL(window[_0x4a6bd6(0x286)][_0x4a6bd6(0x1a3)]);_0x2f7587[_0x4a6bd6(0x273)][_0x4a6bd6(0x106)](_0x17327f),_0x1ceda4?window[_0x4a6bd6(0x21a)][_0x4a6bd6(0x1be)]('','',_0x2f7587['toString']()):window['history'][_0x4a6bd6(0x1f4)]('','',_0x2f7587['toString']());}[_0x12c13e(0x1bf)](_0x157d92){const _0x2432af=_0x12c13e;var _0x5e9c0e;return(_0x5e9c0e=new URL(window[_0x2432af(0x286)][_0x2432af(0x1a3)])[_0x2432af(0x273)][_0x2432af(0x350)](_0x157d92))!=null?_0x5e9c0e:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x12c13e(0x331)],cs=(_0x527ea1,_0x5c4dbc,_0x4f5291)=>_0x5c4dbc in _0x527ea1?os(_0x527ea1,_0x5c4dbc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f5291}):_0x527ea1[_0x5c4dbc]=_0x4f5291,ls=(_0x2f32c2,_0x5ebe3c,_0x44cb77,_0x5bb35a)=>{const _0x3a36a4=_0x12c13e;for(var _0x120860=_0x5bb35a>0x1?void 0x0:_0x5bb35a?as(_0x5ebe3c,_0x44cb77):_0x5ebe3c,_0x4430fa=_0x2f32c2[_0x3a36a4(0x1b0)]-0x1,_0x56be44;_0x4430fa>=0x0;_0x4430fa--)(_0x56be44=_0x2f32c2[_0x4430fa])&&(_0x120860=_0x56be44(_0x120860)||_0x120860);return _0x120860;},de=(_0x12ef2e,_0x73aacd)=>(_0x81f7ba,_0x13314f)=>_0x73aacd(_0x81f7ba,_0x13314f,_0x12ef2e),_s=(_0x265265,_0x4f5ec6,_0x2df8a8)=>cs(_0x265265,_0x4f5ec6+'',_0x2df8a8);const hs=_0x12c13e(0xd1);exports[_0x12c13e(0x30e)]=class extends a[_0x12c13e(0x34b)]{constructor(_0x114f32=Me,_0x3521e4,_0x1995fa,_0x10d507){const _0x448d61=_0x12c13e;super(),this[_0x448d61(0x329)]=_0x114f32,this[_0x448d61(0xee)]=_0x3521e4,this[_0x448d61(0x30d)]=_0x1995fa,this[_0x448d61(0x32d)]=_0x10d507;const {..._0x4e1664}=a[_0x448d61(0x391)]({},Me,this[_0x448d61(0x329)]);this[_0x448d61(0x32d)][_0x448d61(0x133)](Yt,_0x4e1664);}[_0x12c13e(0x22b)](){const _0x447d4a=_0x12c13e;this[_0x447d4a(0x257)](),this[_0x447d4a(0x100)]();}['onRendered'](){const _0x427631=_0x12c13e;this[_0x427631(0x238)]();}['_registerDependencies'](){const _0xfdcc2c=_0x12c13e;var _0x422465;const _0x572bf3=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0xfdcc2c(0x131)],{'useClass':x[_0xfdcc2c(0x231)]}],[u[_0xfdcc2c(0x1c6)],{'useClass':Te}],[exports[_0xfdcc2c(0xf4)]],[ie],[Z],[F],[me],[exports[_0xfdcc2c(0x294)]]];this['_config'][_0xfdcc2c(0x1b5)]&&_0x572bf3[_0xfdcc2c(0x248)]([Q]),a[_0xfdcc2c(0x2de)](this[_0xfdcc2c(0x30d)],a[_0xfdcc2c(0x203)](_0x572bf3,(_0x422465=this[_0xfdcc2c(0x329)])==null?void 0x0:_0x422465[_0xfdcc2c(0x178)]));}[_0x12c13e(0x238)](){const _0x2bc733=_0x12c13e;this[_0x2bc733(0x20d)](this[_0x2bc733(0xee)][_0x2bc733(0x335)](a[_0x2bc733(0x234)]['UNIVER_DOC'],[Ee])),this[_0x2bc733(0x20d)](this['_renderManagerService']['registerRenderModule'](a[_0x2bc733(0x234)][_0x2bc733(0x11f)],[Ce]));}[_0x12c13e(0x100)](){const _0x87031f=_0x12c13e;a[_0x87031f(0x1c8)](this[_0x87031f(0x30d)],[[F],[exports[_0x87031f(0xf4)]],[ie],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this[_0x87031f(0x329)]['enableFrontendLog']&&a['touchDependencies'](this[_0x87031f(0x30d)],[[Q]]);}},_s(exports[_0x12c13e(0x30e)],_0x12c13e(0x366),hs),exports[_0x12c13e(0x30e)]=ls([a[_0x12c13e(0x147)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x12c13e(0x28b)]),de(0x2,a[_0x12c13e(0x24b)](a['Injector'])),de(0x3,a[_0x12c13e(0x386)])],exports[_0x12c13e(0x30e)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x42f066,_0x11b738,_0x2c5cc7,_0xf2274b)=>{const _0x6d606=_0x12c13e;for(var _0x5f0b79=_0xf2274b>0x1?void 0x0:_0xf2274b?us(_0x11b738,_0x2c5cc7):_0x11b738,_0x3aab6c=_0x42f066[_0x6d606(0x1b0)]-0x1,_0x4c3194;_0x3aab6c>=0x0;_0x3aab6c--)(_0x4c3194=_0x42f066[_0x3aab6c])&&(_0x5f0b79=_0x4c3194(_0x5f0b79)||_0x5f0b79);return _0x5f0b79;},W=(_0x5ed6bf,_0x43f851)=>(_0x5e0199,_0x29a5af)=>_0x43f851(_0x5e0199,_0x29a5af,_0x5ed6bf);exports[_0x12c13e(0x1fd)]=class extends u[_0x12c13e(0x29e)]{constructor(_0x41aca3,_0x58f104,_0x5ed3aa,_0x3d382d,_0x48dc5c){super(_0x41aca3,_0x58f104,_0x5ed3aa,_0x3d382d,_0x48dc5c);}async[_0x12c13e(0x216)](_0x2518a9){const _0x29b1f4=_0x12c13e,_0x52972a=await this[_0x29b1f4(0x2f4)](),_0x1a9fe7=this[_0x29b1f4(0x318)](_0x2518a9,_0x52972a);return this[_0x29b1f4(0x202)](_0x1a9fe7);}[_0x12c13e(0x318)](_0x2e4de2,_0x390d3d){const _0x570058=_0x12c13e,_0x500509=typeof window>'u'?new URL(_0x2e4de2):new URL(_0x2e4de2,window['location']['origin']);_0x500509[_0x570058(0x273)][_0x570058(0x14c)](_0x570058(0x12e),_0x390d3d);const _0x109d51=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x570058(0x286)][_0x570058(0x196)]);return _0x109d51[_0x570058(0x350)](_0x570058(0x334))&&_0x500509[_0x570058(0x273)][_0x570058(0x14c)]('runId',_0x109d51[_0x570058(0x350)](_0x570058(0x334))),_0x500509[_0x570058(0x2fa)]();}async[_0x12c13e(0x2f4)](){const _0x17d5ff=_0x12c13e;var _0x374d74,_0xe7b078,_0x557823;const _0x3b6a26=this[_0x17d5ff(0x32d)][_0x17d5ff(0x295)](u[_0x17d5ff(0x372)]),_0x360fd3=(_0x374d74=_0x3b6a26==null?void 0x0:_0x3b6a26[_0x17d5ff(0x13f)])!=null?_0x374d74:u[_0x17d5ff(0x25f)];return(_0x557823=(_0xe7b078=(await this[_0x17d5ff(0x378)][_0x17d5ff(0x350)](_0x360fd3,{'headers':{'Content-Type':_0x17d5ff(0x325)}}))['body'])==null?void 0x0:_0xe7b078[_0x17d5ff(0x1a6)])!=null?_0x557823:'';}},exports[_0x12c13e(0x1fd)]=Is([W(0x0,a[_0x12c13e(0x24b)](a[_0x12c13e(0x24d)])),W(0x1,a['Inject'](x[_0x12c13e(0x1c7)])),W(0x2,a[_0x12c13e(0x386)]),W(0x3,a[_0x12c13e(0x376)]),W(0x4,g['ISnapshotServerService'])],exports[_0x12c13e(0x1fd)]);var Ss=Object[_0x12c13e(0x331)],ds=(_0x366358,_0x27c621,_0x32ff05,_0x36c937)=>{const _0x1a9161=_0x12c13e;for(var _0x4d7db7=_0x36c937>0x1?void 0x0:_0x36c937?Ss(_0x27c621,_0x32ff05):_0x27c621,_0x38e36b=_0x366358[_0x1a9161(0x1b0)]-0x1,_0x2a3c70;_0x38e36b>=0x0;_0x38e36b--)(_0x2a3c70=_0x366358[_0x38e36b])&&(_0x4d7db7=_0x2a3c70(_0x4d7db7)||_0x4d7db7);return _0x4d7db7;},fe=(_0x4796f1,_0x244ae4)=>(_0x3faebe,_0xd03945)=>_0x244ae4(_0x3faebe,_0xd03945,_0x4796f1);exports[_0x12c13e(0x2d8)]=class extends a[_0x12c13e(0x30f)]{constructor(_0x37cfd1,_0x12e842,_0x45509b){const _0x22e117=_0x12c13e;super(),this[_0x22e117(0x20b)]=_0x37cfd1,this[_0x22e117(0x378)]=_0x12e842,this['_configService']=_0x45509b;}async[_0x12c13e(0x1cc)](_0x2d7b50,_0x4205a4,_0xfc36d3,..._0x44d37a){const _0xe0b037=_0x12c13e;var _0x3f1958,_0x1ca28a,_0x1c9d46,_0x1169af;const _0x71d970=this['_instanceService'][_0xe0b037(0x2d1)]();if(!_0x71d970)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0xc47718=((_0x3f1958=this[_0xe0b037(0x32d)]['getConfig'](u[_0xe0b037(0x25e)]))!=null?_0x3f1958:u[_0xe0b037(0x1d1)])+'/'+_0x2d7b50+'/run/'+_0x4205a4,_0x3bd530=new URL(window[_0xe0b037(0x286)][_0xe0b037(0x1a3)]),_0x2198cc={'scriptId':_0x2d7b50,'runId':(_0x1ca28a=_0x3bd530['searchParams'][_0xe0b037(0x350)]('runId'))!=null?_0x1ca28a:'','function':_0x4205a4,'unitId':_0x71d970['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x44d37a),'invokeId':(_0x1c9d46=_0xfc36d3[_0xe0b037(0x34a)])!=null?_0x1c9d46:'','executionId':(_0x1169af=_0xfc36d3[_0xe0b037(0x2ff)])!=null?_0x1169af:''};try{const _0x46527a=await this[_0xe0b037(0x378)][_0xe0b037(0x2a7)](_0xc47718,{'body':_0x2198cc});return _0x46527a[_0xe0b037(0xdf)][_0xe0b037(0xed)]&&_0x46527a['body'][_0xe0b037(0xed)][_0xe0b037(0x23e)]!==G['OK']?_0xe0b037(0x349):_0x46527a[_0xe0b037(0xdf)][_0xe0b037(0x107)];}catch{return _0xe0b037(0x349);}}},exports[_0x12c13e(0x2d8)]=ds([fe(0x0,a[_0x12c13e(0x355)]),fe(0x1,a['Inject'](x['HTTPService'])),fe(0x2,a['IConfigService'])],exports[_0x12c13e(0x2d8)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x12c13e(0x30f)]{constructor(){const _0x53f6e7=_0x12c13e;super(),_(this,'_id',a[_0x53f6e7(0xf1)]()),_(this,_0x53f6e7(0x1f5),new Set()),_(this,_0x53f6e7(0x212),new Map()),_(this,_0x53f6e7(0x171),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this['_init']();}[_0x12c13e(0x15a)](){const _0x5b61da=_0x12c13e;super[_0x5b61da(0x15a)](),this[_0x5b61da(0x302)][_0x5b61da(0x2aa)]((_0x1ee3fe,_0x5b9407)=>this[_0x5b61da(0x2d7)](_0x5b9407)),this[_0x5b61da(0x171)]&&window[_0x5b61da(0xff)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x4ad6e0){const _0x1980e1=_0x12c13e;return this[_0x1980e1(0x101)](_0x4ad6e0)[_0x1980e1(0x310)](I['distinctUntilChanged']());}[_0x12c13e(0x1b2)](_0x57dfa2){const _0x5717f6=_0x12c13e;this[_0x5717f6(0x1f5)][_0x5717f6(0xfa)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x57dfa2),this[_0x5717f6(0x18a)]({'type':0x0,'memberID':this[_0x5717f6(0x12f)],'unitIDs':[_0x57dfa2],'isForwarded':!0x1});}['disposeUnit'](_0x524052){const _0x1b0a27=_0x12c13e;this['_selfUnitIDs'][_0x1b0a27(0x106)](_0x524052),this[_0x1b0a27(0x1f5)]['size']===0x0&&this[_0x1b0a27(0x171)]&&window[_0x1b0a27(0xff)](this['_heartbeatTimer']);}[_0x12c13e(0x274)](){const _0x29dc93=_0x12c13e;this[_0x29dc93(0x20d)](a[_0x29dc93(0x269)](I[_0x29dc93(0x2db)](window,_0x29dc93(0x128))[_0x29dc93(0x148)](_0x1e9ce9=>{const _0x181722=_0x29dc93;if(_0x1e9ce9[_0x181722(0x344)]!==ye||!_0x1e9ce9[_0x181722(0x26d)])return;const _0x39cc25=JSON[_0x181722(0x33f)](_0x1e9ce9['newValue']);this['_handleEvent'](_0x39cc25);}))),window[_0x29dc93(0x282)](_0x29dc93(0x158),()=>this[_0x29dc93(0x18a)]({'type':0x1,'memberID':this[_0x29dc93(0x12f)],'unitIDs':Array[_0x29dc93(0x270)](this[_0x29dc93(0x1f5)])}));}[_0x12c13e(0x2fe)](_0x16d620){const _0x5efc71=_0x12c13e;switch(_0x16d620['type']){case 0x0:this[_0x5efc71(0x180)](_0x16d620);break;case 0x1:this[_0x5efc71(0x1eb)](_0x16d620);break;case 0x2:this[_0x5efc71(0x215)](_0x16d620);break;}}['_handleJoinEvent'](_0x5b7269){const _0x43ae66=_0x12c13e,{unitIDs:_0x2061ff,memberID:_0x180c6a,isForwarded:_0x3dea7e}=_0x5b7269;_0x2061ff[_0x43ae66(0x2aa)](_0x2757e7=>{const _0x55dc98=_0x43ae66;if(!_0x3dea7e&&this[_0x55dc98(0x212)][_0x55dc98(0x192)](_0x2757e7)&&this[_0x55dc98(0x101)](_0x2757e7)[_0x55dc98(0x381)](u[_0x55dc98(0x219)]['OTHER_CLIENTS_EDITING']),!this[_0x55dc98(0x212)]['has'](_0x2757e7)||!this[_0x55dc98(0x212)][_0x55dc98(0x350)](_0x2757e7)['has'](_0x180c6a)){const _0x31c6cd=this[_0x55dc98(0x212)][_0x55dc98(0x350)](_0x2757e7)||new Set();_0x31c6cd[_0x55dc98(0x1f9)](_0x180c6a),this[_0x55dc98(0x212)]['set'](_0x2757e7,_0x31c6cd),this[_0x55dc98(0x2d9)](_0x180c6a);}}),_0x3dea7e||this['_send']({'type':0x0,'memberID':this[_0x43ae66(0x12f)],'unitIDs':[...this[_0x43ae66(0x1f5)]],'isForwarded':!0x0});}[_0x12c13e(0x2d9)](_0x4bdcfa){const _0x4612f8=_0x12c13e;this[_0x4612f8(0x2d7)](_0x4bdcfa);const _0x2f1b74=window[_0x4612f8(0x24e)](()=>{const _0x1e04dc=_0x4612f8;this[_0x1e04dc(0x212)][_0x1e04dc(0x2aa)](_0x5d11d8=>{const _0x5b8c5c=_0x1e04dc;_0x5d11d8[_0x5b8c5c(0x106)](_0x4bdcfa);});},we*0x2);this[_0x4612f8(0x302)][_0x4612f8(0x14c)](_0x4bdcfa,_0x2f1b74);}[_0x12c13e(0x2d7)](_0x3618f3){const _0x1944bb=_0x12c13e;if(this['_clearOtherTimers']['has'](_0x3618f3)){const _0x15ce0a=this['_clearOtherTimers'][_0x1944bb(0x350)](_0x3618f3);_0x15ce0a&&window[_0x1944bb(0x2dc)](_0x15ce0a),this[_0x1944bb(0x302)][_0x1944bb(0x14c)](_0x3618f3,null);}}[_0x12c13e(0x1eb)](_0x3f1837){const _0x1af642=_0x12c13e,{memberID:_0x3456ac,unitIDs:_0x1f27dd}=_0x3f1837;_0x1f27dd['forEach'](_0x5e8d16=>{const _0xb800c3=_0x4e05;var _0x43f6c3;const _0x429abf=this[_0xb800c3(0x212)][_0xb800c3(0x350)](_0x5e8d16);_0x429abf&&(_0x429abf[_0xb800c3(0x106)](_0x3456ac),(_0x43f6c3=this[_0xb800c3(0x101)](_0x5e8d16))==null||_0x43f6c3[_0xb800c3(0x381)](_0x429abf[_0xb800c3(0xfa)]===0x0?u[_0xb800c3(0x219)][_0xb800c3(0x34d)]:u[_0xb800c3(0x219)][_0xb800c3(0xea)]));}),this[_0x1af642(0x2d7)](_0x3456ac);}[_0x12c13e(0x215)](_0x119914){const _0x7f6a10=_0x12c13e;this[_0x7f6a10(0x2d9)](_0x119914[_0x7f6a10(0x221)]);}['_send'](_0x57fa6b){const _0x16a2b0=_0x12c13e;localStorage['setItem'](ye,JSON[_0x16a2b0(0x1ce)](_0x57fa6b));}['_scheduleHeartbeat'](){const _0x1f5926=_0x12c13e;this['_heartbeatTimer']=window[_0x1f5926(0x105)](()=>{const _0x111af1=_0x1f5926;this[_0x111af1(0x18a)]({'type':0x2,'memberID':this[_0x111af1(0x12f)]});},we);}['_ensureSubject'](_0x732403){const _0x2f338e=_0x12c13e;return this[_0x2f338e(0x145)][_0x2f338e(0x192)](_0x732403)||this[_0x2f338e(0x145)][_0x2f338e(0x14c)](_0x732403,new I[(_0x2f338e(0x383))](u[_0x2f338e(0x219)][_0x2f338e(0x34d)])),this['_unitStatus'][_0x2f338e(0x350)](_0x732403);}}exports[_0x12c13e(0x14b)]=Oe,exports['SheetCollabCursorShape']=je,exports[_0x12c13e(0x2cc)]=fs,exports[_0x12c13e(0x199)]=ke;
|