@univerjs-pro/collaboration-client-ui 0.15.2-insiders.20260122-b1556b1 → 0.15.2-insiders.20260124-12fc7f0
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 +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x322ca1=_0xd0d7;(function(_0x25c4b2,_0x37d0bb){const _0x1f0fa0=_0xd0d7,_0xdd225=_0x25c4b2();while(!![]){try{const _0x4b771f=-parseInt(_0x1f0fa0(0x400))/0x1*(-parseInt(_0x1f0fa0(0x36c))/0x2)+-parseInt(_0x1f0fa0(0x2b9))/0x3+-parseInt(_0x1f0fa0(0x239))/0x4*(-parseInt(_0x1f0fa0(0x48d))/0x5)+parseInt(_0x1f0fa0(0x3ea))/0x6*(-parseInt(_0x1f0fa0(0x322))/0x7)+-parseInt(_0x1f0fa0(0x300))/0x8*(-parseInt(_0x1f0fa0(0x205))/0x9)+parseInt(_0x1f0fa0(0x1d4))/0xa+-parseInt(_0x1f0fa0(0x460))/0xb*(-parseInt(_0x1f0fa0(0x35f))/0xc);if(_0x4b771f===_0x37d0bb)break;else _0xdd225['push'](_0xdd225['shift']());}catch(_0x1f391b){_0xdd225['push'](_0xdd225['shift']());}}}(_0x2ccd,0xc8aed));var Xe=Object[_0x322ca1(0x40b)],Ke=(_0x12c278,_0x203e68,_0x3aab14)=>_0x203e68 in _0x12c278?Xe(_0x12c278,_0x203e68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3aab14}):_0x12c278[_0x203e68]=_0x3aab14,_=(_0xeae37f,_0x1923b3,_0x25ff7e)=>Ke(_0xeae37f,typeof _0x1923b3!=_0x322ca1(0x3bd)?_0x1923b3+'':_0x1923b3,_0x25ff7e);Object[_0x322ca1(0x40b)](exports,Symbol['toStringTag'],{'value':_0x322ca1(0x27d)});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:_0x43a7d7,..._0x47c4c5}){const _0x2f06f3=_0x322ca1,{icon:_0x3f43db,id:_0x1ecb4a,className:_0x3ea233,extend:_0xec8748,..._0x77eb3e}=_0x47c4c5,_0x12fd76=('univerjs-icon\x20univerjs-icon-'+_0x1ecb4a+'\x20'+(_0x3ea233||''))['trim'](),_0x2b455e=A[_0x2f06f3(0x35a)]('_'+Qe());return $e(_0x3f43db,''+_0x1ecb4a,{'defIds':_0x3f43db[_0x2f06f3(0x3fb)],'idSuffix':_0x2b455e[_0x2f06f3(0x44d)]},{'ref':_0x43a7d7,'className':_0x12fd76,..._0x77eb3e},_0xec8748);}function $e(_0x18a4bf,_0x2548a7,_0x132b5e,_0xce4445,_0x2ff8c9){const _0x27fbce=_0x322ca1;return A[_0x27fbce(0x30e)](_0x18a4bf[_0x27fbce(0x225)],{'key':_0x2548a7,...Je(_0x18a4bf,_0x132b5e,_0x2ff8c9),..._0xce4445},(Ze(_0x18a4bf,_0x132b5e)[_0x27fbce(0x46e)]||[])[_0x27fbce(0x445)]((_0x457f8d,_0x2aed7e)=>$e(_0x457f8d,_0x2548a7+'-'+_0x18a4bf[_0x27fbce(0x225)]+'-'+_0x2aed7e,_0x132b5e,void 0x0,_0x2ff8c9)));}function Je(_0x4cbadb,_0x597279,_0x6f2177){const _0x3432ee=_0x322ca1,_0x33f3d4={..._0x4cbadb[_0x3432ee(0x289)]};_0x6f2177!=null&&_0x6f2177[_0x3432ee(0x345)]&&_0x33f3d4[_0x3432ee(0x404)]==='colorChannel1'&&(_0x33f3d4[_0x3432ee(0x404)]=_0x6f2177['colorChannel1']),_0x4cbadb['tag']===_0x3432ee(0x1cf)&&_0x33f3d4['id']&&(_0x33f3d4['id']=_0x33f3d4['id']+_0x597279[_0x3432ee(0x3dc)]),Object[_0x3432ee(0x353)](_0x33f3d4)[_0x3432ee(0x48e)](([_0x5bc353,_0x100c1c])=>{const _0x5b9d6e=_0x3432ee;_0x5bc353==='mask'&&typeof _0x100c1c==_0x5b9d6e(0x31e)&&(_0x33f3d4[_0x5bc353]=_0x100c1c['replace'](/url\(#(.*)\)/,_0x5b9d6e(0x3d6)+_0x597279[_0x5b9d6e(0x3dc)]+')'));});const {defIds:_0x4ee9ca}=_0x597279;return!_0x4ee9ca||_0x4ee9ca['length']===0x0||(_0x4cbadb[_0x3432ee(0x225)]===_0x3432ee(0x330)&&_0x33f3d4[_0x3432ee(0x44f)]&&(_0x33f3d4[_0x3432ee(0x44f)]=_0x33f3d4[_0x3432ee(0x44f)]+_0x597279[_0x3432ee(0x3dc)]),Object[_0x3432ee(0x353)](_0x33f3d4)['forEach'](([_0x2c43bb,_0x107664])=>{const _0x38ea04=_0x3432ee;typeof _0x107664==_0x38ea04(0x31e)&&(_0x33f3d4[_0x2c43bb]=_0x107664[_0x38ea04(0x398)](/url\(#(.*)\)/,_0x38ea04(0x3d6)+_0x597279[_0x38ea04(0x3dc)]+')'));})),_0x33f3d4;}function Ze(_0x5709e5,_0x54aa66){const _0x379fb3=_0x322ca1;var _0x2e721f;const {defIds:_0x2a102f}=_0x54aa66;return!_0x2a102f||_0x2a102f[_0x379fb3(0x3f6)]===0x0?_0x5709e5:_0x5709e5[_0x379fb3(0x225)]===_0x379fb3(0x3a0)&&((_0x2e721f=_0x5709e5[_0x379fb3(0x46e)])!=null&&_0x2e721f[_0x379fb3(0x3f6)])?{..._0x5709e5,'children':_0x5709e5['children'][_0x379fb3(0x445)](_0x22db19=>typeof _0x22db19[_0x379fb3(0x289)]['id']==_0x379fb3(0x31e)&&_0x2a102f&&_0x2a102f[_0x379fb3(0x352)](_0x22db19[_0x379fb3(0x289)]['id'])?{..._0x22db19,'attrs':{..._0x22db19[_0x379fb3(0x289)],'id':_0x22db19[_0x379fb3(0x289)]['id']+_0x54aa66[_0x379fb3(0x3dc)]}}:_0x22db19)}:_0x5709e5;}function Qe(){const _0x1e5041=_0x322ca1;return Math[_0x1e5041(0x2d4)]()['toString'](0x24)[_0x1e5041(0x21f)](0x2,0x8);}pe['displayName']='UniverIcon';const et={'tag':'svg','attrs':{'xmlns':_0x322ca1(0x23b),'fill':'none','viewBox':_0x322ca1(0x453),'width':_0x322ca1(0x25e),'height':_0x322ca1(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x322ca1(0x1eb)},'children':[{'tag':_0x322ca1(0x306),'attrs':{'stroke':_0x322ca1(0x368),'d':_0x322ca1(0x334),'strokeLinecap':_0x322ca1(0x46f),'strokeLinejoin':_0x322ca1(0x46f),'strokeWidth':1.2}}]},{'tag':_0x322ca1(0x3a0),'attrs':{},'children':[{'tag':_0x322ca1(0x250),'attrs':{'id':_0x322ca1(0x26b)},'children':[{'tag':_0x322ca1(0x306),'attrs':{'fill':_0x322ca1(0x3a1),'d':_0x322ca1(0x2a7)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A['forwardRef'](function(_0x1266f5,_0x2c9c8b){const _0x306c23=_0x322ca1;return A[_0x306c23(0x30e)](pe,Object['assign']({},_0x1266f5,{'id':_0x306c23(0x266),'ref':_0x2c9c8b,'icon':et}));});xe['displayName']=_0x322ca1(0x22b);const tt={'tag':_0x322ca1(0x1ff),'attrs':{'xmlns':_0x322ca1(0x23b),'fill':_0x322ca1(0x2be),'viewBox':_0x322ca1(0x394),'width':_0x322ca1(0x25e),'height':_0x322ca1(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x322ca1(0x40a)},'children':[{'tag':'path','attrs':{'stroke':_0x322ca1(0x368),'d':_0x322ca1(0x235),'strokeLinecap':_0x322ca1(0x46f),'strokeLinejoin':_0x322ca1(0x46f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x322ca1(0x250),'attrs':{'id':_0x322ca1(0x3fd)},'children':[{'tag':'path','attrs':{'fill':_0x322ca1(0x3a1),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x322ca1(0x42c)](function(_0x1a233d,_0x47d4bd){const _0x3b688c=_0x322ca1;return A[_0x3b688c(0x30e)](pe,Object[_0x3b688c(0x438)]({},_0x1a233d,{'id':_0x3b688c(0x26a),'ref':_0x47d4bd,'icon':tt}));});Be[_0x322ca1(0x471)]=_0x322ca1(0x356);function st(_0x3fff24){const _0x2e5d18=_0x322ca1;switch(_0x3fff24){case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x1cd)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x2e5d18(0x283)]:return _0x2e5d18(0x381);case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x270)]:return _0x2e5d18(0x24a);case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x1e2)]:return'collabStatus.notCollab';case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x2f8)]:case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x2ba)]:return'collabStatus.syncing';case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x3b1)]:case u['CollaborationStatus'][_0x2e5d18(0x3b2)]:return _0x2e5d18(0x3c2);}}function it(_0x102ad9){const _0x58b6d8=_0x322ca1,{status$:_0x508457}=_0x102ad9,_0x21342f=O[_0x58b6d8(0x246)](_0x508457,u[_0x58b6d8(0x3ed)][_0x58b6d8(0x1e2)]),_0x284594=O[_0x58b6d8(0x321)](a['LocaleService']),_0x2d30e4=O[_0x58b6d8(0x321)](u[_0x58b6d8(0x238)]),_0x3e1b14=_0x21342f!==u[_0x58b6d8(0x3ed)][_0x58b6d8(0x1cd)],_0x15e6ab=_0x284594['t'](st(_0x21342f)),_0x4c494d=_0x3e1b14?M[_0x58b6d8(0x252)](Be,{}):M['jsx'](xe,{}),_0x534d4b=A[_0x58b6d8(0x202)](()=>{_0x3e1b14||_0x2d30e4['reconnect']();},[_0x3e1b14,_0x2d30e4]);function _0x50a30f(){const _0x57e094=_0x58b6d8;return M[_0x57e094(0x32c)](_0x57e094(0x248),{'className':_0x57e094(0x41d),'onClick':_0x534d4b,'children':[M[_0x57e094(0x252)](_0x57e094(0x248),{'className':p[_0x57e094(0x232)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x3e1b14,'univer-text-red-500':!_0x3e1b14}),'children':_0x4c494d}),M[_0x57e094(0x252)](_0x57e094(0x248),{'className':_0x57e094(0x20e),'children':_0x15e6ab})]});}return _0x3e1b14?_0x50a30f():M[_0x58b6d8(0x252)](p[_0x58b6d8(0x1c8)],{'title':_0x284594['t']('collab-client.tooltip.reconnect'),'children':_0x50a30f()});}var nt=Object[_0x322ca1(0x258)],rt=(_0x49c7f3,_0x28ae1d,_0x21ba6f,_0x3d98ea)=>{for(var _0x3e1586=_0x3d98ea>0x1?void 0x0:_0x3d98ea?nt(_0x28ae1d,_0x21ba6f):_0x28ae1d,_0xc154bc=_0x49c7f3['length']-0x1,_0xb192b4;_0xc154bc>=0x0;_0xc154bc--)(_0xb192b4=_0x49c7f3[_0xc154bc])&&(_0x3e1586=_0xb192b4(_0x3e1586)||_0x3e1586);return _0x3e1586;},K=(_0x1f828d,_0x502448)=>(_0x301092,_0x205e7c)=>_0x502448(_0x301092,_0x205e7c,_0x1f828d);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x322ca1(0x2c7)]{constructor(_0x1f1ba9,_0x2f98c6,_0x883094,_0x331ed7){const _0x24a499=_0x322ca1;super(),_(this,_0x24a499(0x45b),new I[(_0x24a499(0x3b4))](u[_0x24a499(0x3ed)][_0x24a499(0x1e2)])),(this[_0x24a499(0x234)]=_0x1f1ba9,this[_0x24a499(0x2bc)]=_0x2f98c6,this[_0x24a499(0x494)]=_0x883094,this[_0x24a499(0x25a)]=_0x331ed7,this[_0x24a499(0x2e6)](),this['_initStatusListener']());}[_0x322ca1(0x3c9)](){const _0xe1c66e=_0x322ca1;this[_0xe1c66e(0x2f4)](this[_0xe1c66e(0x234)][_0xe1c66e(0x327)][_0xe1c66e(0x22a)](I['switchMap'](()=>{const _0x1fdcd8=_0xe1c66e,_0x289a70=this['_univerInstanceService']['getFocusedUnit']();return _0x289a70?this[_0x1fdcd8(0x494)][_0x1fdcd8(0x253)](_0x289a70['getUnitId']()):I['of'](null);}),I[_0xe1c66e(0x32a)](_0x4a5b13=>_0x4a5b13?_0x4a5b13[_0xe1c66e(0x1ec)]:I['of'](u[_0xe1c66e(0x3ed)][_0xe1c66e(0x1e2)])))[_0xe1c66e(0x375)](_0x183139=>{const _0x94f9ef=_0xe1c66e;this[_0x94f9ef(0x45b)][_0x94f9ef(0x2b3)](_0x183139);}));}[_0x322ca1(0x2e6)](){const _0x2a10d0=_0x322ca1;this['disposeWithMe'](this[_0x2a10d0(0x25a)][_0x2a10d0(0x47e)](O['BuiltInUIPart'][_0x2a10d0(0x1ea)],()=>O[_0x2a10d0(0x3ca)](ot({'status$':this[_0x2a10d0(0x45b)][_0x2a10d0(0x452)]()}),this[_0x2a10d0(0x2bc)])));}},exports[_0x322ca1(0x387)]=rt([K(0x0,a[_0x322ca1(0x215)]),K(0x1,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),K(0x2,a[_0x322ca1(0x254)](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports[_0x322ca1(0x387)]);function ot(_0x3a3331){const {status$:_0x1af8b3}=_0x3a3331;return function(){const _0x39b632=_0xd0d7;return M[_0x39b632(0x252)](it,{'status$':_0x1af8b3});};}const Oe=a[_0x322ca1(0x33a)]('uni.network.url-service');var at=Object[_0x322ca1(0x258)],ct=(_0x2df46b,_0x37db0f,_0x5de66f,_0x471e38)=>{for(var _0x357e30=_0x471e38>0x1?void 0x0:_0x471e38?at(_0x37db0f,_0x5de66f):_0x37db0f,_0x579057=_0x2df46b['length']-0x1,_0x16db7f;_0x579057>=0x0;_0x579057--)(_0x16db7f=_0x2df46b[_0x579057])&&(_0x357e30=_0x16db7f(_0x357e30)||_0x357e30);return _0x357e30;},Y=(_0x38db80,_0x1562b3)=>(_0x4e4978,_0x42a8f4)=>_0x1562b3(_0x4e4978,_0x42a8f4,_0x38db80);exports[_0x322ca1(0x2f7)]=class extends a[_0x322ca1(0x481)]{constructor(_0x5ce51c,_0x34aa26,_0x40f051,_0x43d183,_0x516e51){const _0x2ad2d8=_0x322ca1;super(),this[_0x2ad2d8(0x2f6)]=_0x5ce51c,this[_0x2ad2d8(0x319)]=_0x34aa26,this['_commandService']=_0x40f051,this[_0x2ad2d8(0x2ec)]=_0x43d183,_0x516e51?_0x516e51==null||_0x516e51[_0x2ad2d8(0x24c)]()[_0x2ad2d8(0x344)](()=>this['_init']()):(this[_0x2ad2d8(0x319)]['debug'](_0x2ad2d8(0x1ca),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2ad2d8(0x1c5)]());}async[_0x322ca1(0x1c5)](){const _0x277954=_0x322ca1,_0x700167=this[_0x277954(0x2f6)]['getParam']('unit'),_0x4caef8=this['_urlService']['getParam'](_0x277954(0x384)),_0x35b438=this[_0x277954(0x2f6)]['getParam'](_0x277954(0x314));if(!_0x700167||!_0x4caef8){this[_0x277954(0x319)][_0x277954(0x3e1)](_0x277954(0x1ca),_0x277954(0x285));return;}const _0x4bba23=await this[_0x277954(0x2ec)][_0x277954(0x3bc)](_0x700167,Number(_0x4caef8),_0x35b438);_0x4bba23&&_0x4bba23 instanceof a[_0x277954(0x329)]&&this[_0x277954(0x343)](_0x4bba23);}async[_0x322ca1(0x343)](_0xb59ff8){const _0x2bd61e=_0x322ca1;await this[_0x2bd61e(0x261)](_0xb59ff8),_0xb59ff8[_0x2bd61e(0x223)][_0x2bd61e(0x22a)](I[_0x2bd61e(0x309)](this[_0x2bd61e(0x2dd)]))[_0x2bd61e(0x375)](_0x8a41eb=>{const _0x5f174d=_0x2bd61e;_0x8a41eb&&this[_0x5f174d(0x486)](_0x8a41eb);}),this[_0x2bd61e(0x2f6)][_0x2bd61e(0x448)]['pipe'](I[_0x2bd61e(0x309)](this[_0x2bd61e(0x2dd)]))[_0x2bd61e(0x375)](()=>this[_0x2bd61e(0x261)](_0xb59ff8));}['_updateURLWithCurrentState'](_0x42f5d1,_0x272715=!0x1){const _0x50ec58=_0x322ca1,_0x22c56b=this[_0x50ec58(0x2f6)][_0x50ec58(0x274)](_0x50ec58(0x314));_0x42f5d1[_0x50ec58(0x27f)]()!==_0x22c56b&&this[_0x50ec58(0x2f6)]['setParam'](_0x50ec58(0x314),_0x42f5d1[_0x50ec58(0x27f)](),_0x272715);}async['_updateSubUnitFromURLParams'](_0x268bbd){const _0x531811=_0x322ca1;var _0x5b98a9;const _0x21fbdd=this[_0x531811(0x2f6)][_0x531811(0x274)](_0x531811(0x314));if(!_0x21fbdd||!_0x268bbd[_0x531811(0x418)](_0x21fbdd)){const _0x256c27=_0x268bbd[_0x531811(0x1e8)]()[0x0],_0x47afe4=_0x268bbd[_0x531811(0x418)](_0x256c27);if(!_0x47afe4)return;this[_0x531811(0x486)](_0x47afe4,!0x0),await this[_0x531811(0x38a)][_0x531811(0x2ce)](v[_0x531811(0x1e6)]['id'],{'unitId':_0x268bbd[_0x531811(0x429)](),'subUnitId':_0x256c27});return;}((_0x5b98a9=_0x268bbd[_0x531811(0x2ea)]())==null?void 0x0:_0x5b98a9[_0x531811(0x27f)]())!==_0x21fbdd&&await this[_0x531811(0x38a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x268bbd[_0x531811(0x429)](),'subUnitId':_0x21fbdd});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x322ca1(0x1df)]),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x322ca1(0x377)])),Y(0x4,a[_0x322ca1(0x3fe)](qe['IRemoteInstanceService']))],exports[_0x322ca1(0x2f7)]);var lt=Object[_0x322ca1(0x258)],_t=(_0xfbf9ba,_0x5a5555,_0x5764da,_0x452f9c)=>{const _0x516db0=_0x322ca1;for(var _0x61224e=_0x452f9c>0x1?void 0x0:_0x452f9c?lt(_0x5a5555,_0x5764da):_0x5a5555,_0x54da43=_0xfbf9ba[_0x516db0(0x3f6)]-0x1,_0xf4aed0;_0x54da43>=0x0;_0x54da43--)(_0xf4aed0=_0xfbf9ba[_0x54da43])&&(_0x61224e=_0xf4aed0(_0x61224e)||_0x61224e);return _0x61224e;},De=(_0x2758f5,_0x1696cf)=>(_0x52e470,_0x45dd57)=>_0x1696cf(_0x52e470,_0x45dd57,_0x2758f5);let me=class extends a[_0x322ca1(0x481)]{constructor(_0x124228,_0x46dd40){const _0x1f3012=_0x322ca1;super(),this[_0x1f3012(0x44e)]=_0x124228,this[_0x1f3012(0x303)]=_0x46dd40,this[_0x1f3012(0x1c5)]();}[_0x322ca1(0x1c5)](){const _0x3c8e77=_0x322ca1,_0x345240=this;this['disposeWithMe'](this['_docClipboardService'][_0x3c8e77(0x2c6)]({'onBeforePasteImage':async _0x58cde1=>{const _0x22dfe6=_0x3c8e77,_0x4401fb=await _0x345240['_imageIoService'][_0x22dfe6(0x490)](_0x58cde1);return _0x4401fb?{'source':_0x4401fb['source'],'imageSourceType':_0x4401fb[_0x22dfe6(0x1cc)]}:null;}}));}};me=_t([De(0x0,T[_0x322ca1(0x3ff)]),De(0x1,ze[_0x322ca1(0x2cc)])],me);const Ne=[_0x322ca1(0x2fc),_0x322ca1(0x3ab),'green.600','red.300',_0x322ca1(0x392),_0x322ca1(0x26f)];class Re extends a[_0x322ca1(0x2c7)]{constructor(){const _0x5c998d=_0x322ca1;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x5c998d(0x3cb),0x0);}['assignAColorForMemberID'](_0x3ea269){const _0xb93ee6=_0x322ca1;if(this[_0xb93ee6(0x34e)][_0xb93ee6(0x259)](_0x3ea269))return this[_0xb93ee6(0x34e)][_0xb93ee6(0x442)](_0x3ea269);const _0x47d060=Ne[this[_0xb93ee6(0x3cb)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Ne[_0xb93ee6(0x3f6)],this['_assignedColors'][_0xb93ee6(0x385)](_0x3ea269,_0x47d060),_0x47d060;}}function Fe(_0x419fba){let _0x5ba8ed='';for(const _0x165bb9 of _0x419fba){const {startOffset:_0x5c9f80,endOffset:_0x4aae37,isActive:_0x4b5646,rangeType:_0x49b32c,segmentId:_0x511f5c,segmentPage:_0x48d0c0}=_0x165bb9;_0x5ba8ed['length']&&(_0x5ba8ed+=','),_0x5ba8ed+=_0x5c9f80+':'+_0x4aae37+':'+(_0x4b5646?'1':'0')+':'+_0x49b32c+':'+_0x511f5c+':'+_0x48d0c0;}return _0x5ba8ed;}function ht(_0x5b364e){const _0x241160=_0x322ca1,_0x5e9150=_0x5b364e[_0x241160(0x436)](','),_0x4790ee=[];for(const _0x4ffccb of _0x5e9150){const [_0x3f2eeb,_0x4b8594,_0x4b762b,_0x44ce90,_0xa50856,_0x59bbdb]=_0x4ffccb['split'](':');_0x4790ee[_0x241160(0x47b)]({'startOffset':Number(_0x3f2eeb),'endOffset':Number(_0x4b8594),'collapsed':_0x3f2eeb===_0x4b8594,'isActive':_0x4b762b==='1','rangeType':_0x44ce90===a[_0x241160(0x226)][_0x241160(0x34c)]?a[_0x241160(0x226)][_0x241160(0x34c)]:a[_0x241160(0x226)][_0x241160(0x3b5)],'segmentId':typeof _0xa50856==_0x241160(0x31e)?String(_0xa50856):'','segmentPage':Number(_0x59bbdb!=null?_0x59bbdb:-0x1)});}return _0x4790ee[_0x241160(0x495)](_0x102381=>_0x102381[_0x241160(0x31d)])||(_0x4790ee[0x0][_0x241160(0x31d)]=!0x0),_0x4790ee;}class be extends a[_0x322ca1(0x481)]{constructor(){const _0x4f8e96=_0x322ca1;super(...arguments),_(this,_0x4f8e96(0x1d5),new I['BehaviorSubject'](null)),_(this,_0x4f8e96(0x36a),this[_0x4f8e96(0x1d5)][_0x4f8e96(0x452)]());}[_0x322ca1(0x3ae)](_0x404f22){const _0x2afdbb=_0x322ca1,{unitID:_0x4384f8,memberID:_0x1d0463,textRanges:_0x102785}=_0x404f22,_0x277281=Fe(_0x102785);if(_0x277281==='')return;const _0x171f95={'unitID':_0x4384f8,'memberID':_0x1d0463,'selection':_0x277281};this[_0x2afdbb(0x1d5)][_0x2afdbb(0x2b3)](_0x171f95);}}var ut=Object[_0x322ca1(0x258)],It=(_0x2eb144,_0x1ddb37,_0xd293c9,_0x121ce0)=>{const _0x1764c6=_0x322ca1;for(var _0x46845d=_0x121ce0>0x1?void 0x0:_0x121ce0?ut(_0x1ddb37,_0xd293c9):_0x1ddb37,_0x1d2a77=_0x2eb144[_0x1764c6(0x3f6)]-0x1,_0x1ea8af;_0x1d2a77>=0x0;_0x1d2a77--)(_0x1ea8af=_0x2eb144[_0x1d2a77])&&(_0x46845d=_0x1ea8af(_0x46845d)||_0x46845d);return _0x46845d;},U=(_0x4e3fb2,_0x1f659c)=>(_0xc825d5,_0x1bca31)=>_0x1f659c(_0xc825d5,_0x1bca31,_0x4e3fb2);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x46aefb,_0x2a7cb4,_0x5843d9,_0x32e91e,_0x4cf1e2,_0x32365b,_0x250ab6,_0x3f7539,_0x58048a){const _0x1e7816=_0x322ca1;super(),_(this,_0x1e7816(0x1fc),!0x1),_(this,_0x1e7816(0x1c5),!0x1),_(this,'_cursorInfo$',new I[(_0x1e7816(0x3b4))](new Map())),_(this,_0x1e7816(0x216),this[_0x1e7816(0x38f)][_0x1e7816(0x452)]()),_(this,_0x1e7816(0x307),new I[(_0x1e7816(0x3b4))]([])),_(this,_0x1e7816(0x3c5),this[_0x1e7816(0x307)]['pipe'](I[_0x1e7816(0x396)](St))),_(this,'_updateLocalCursor',a['debounce'](_0x59d694=>{const _0x4be651=_0x1e7816,_0x52fc1b={'eventID':g[_0x4be651(0x2a0)][_0x4be651(0x294)],'data':{'unitID':this[_0x4be651(0x383)],'memberID':this[_0x4be651(0x395)][_0x4be651(0x373)](),'selection':Fe(_0x59d694)}};this[_0x4be651(0x395)][_0x4be651(0x42e)](_0x52fc1b,this[_0x4be651(0x383)]);},dt)),(this[_0x1e7816(0x383)]=_0x46aefb,this[_0x1e7816(0x395)]=_0x2a7cb4,this[_0x1e7816(0x2bc)]=_0x5843d9,this[_0x1e7816(0x3a2)]=_0x32e91e,this['_memberService']=_0x4cf1e2,this['_syncEditingCollabCursorService']=_0x32365b,this[_0x1e7816(0x325)]=_0x250ab6,this[_0x1e7816(0x234)]=_0x3f7539,this['_commandService']=_0x58048a);}get[_0x322ca1(0x2bd)](){const _0x360488=_0x322ca1;return this[_0x360488(0x38f)][_0x360488(0x2e7)]();}get[_0x322ca1(0x1e4)](){const _0x2e0963=_0x322ca1;return this[_0x2e0963(0x307)][_0x2e0963(0x2e7)]();}[_0x322ca1(0x290)](){const _0x124c3f=_0x322ca1;super[_0x124c3f(0x290)](),this[_0x124c3f(0x38f)][_0x124c3f(0x2b3)](new Map()),this[_0x124c3f(0x38f)]['complete'](),this[_0x124c3f(0x307)]['next']([]),this['_roomMembers$']['complete']();}['init'](){const _0x22a6ca=_0x322ca1;this[_0x22a6ca(0x1c5)]||(this[_0x22a6ca(0x1c5)]=!0x0,this[_0x22a6ca(0x395)][_0x22a6ca(0x2d9)][_0x22a6ca(0x22a)](I[_0x22a6ca(0x309)](this[_0x22a6ca(0x2dd)]))[_0x22a6ca(0x375)](_0x34d679=>{const _0x4414e5=_0x22a6ca;_0x34d679===u[_0x4414e5(0x24d)]['ONLINE']?this['_toggleOnline']():this[_0x4414e5(0x2dc)]();}),this['_session'][_0x22a6ca(0x350)][_0x22a6ca(0x22a)](I['takeUntil'](this[_0x22a6ca(0x2dd)]))[_0x22a6ca(0x375)](_0x69a781=>{const _0x2596a1=_0x22a6ca,_0xa0ad2=_0x69a781[_0x2596a1(0x41a)];_0xa0ad2===g[_0x2596a1(0x2a0)]['UPDATE_CURSOR']&&this[_0x2596a1(0x28b)](_0x69a781),_0xa0ad2===g[_0x2596a1(0x2a0)][_0x2596a1(0x28f)]&&this[_0x2596a1(0x354)](_0x69a781);}),this['disposeWithMe'](this[_0x22a6ca(0x38a)][_0x22a6ca(0x3c6)](_0x273612=>{const _0x123157=_0x22a6ca,_0x598cb6=_0x273612[_0x123157(0x380)];_0x598cb6!=null&&this[_0x123157(0x1fc)]&&_0x273612['id']===V[_0x123157(0x304)]['id']&&_0x598cb6[_0x123157(0x318)]===this['unitID']&&_0x598cb6[_0x123157(0x3f8)]===!0x1&&_0x598cb6['ranges'][_0x123157(0x3f6)]>0x0&&this[_0x123157(0x26d)](_0x598cb6[_0x123157(0x3d3)]);})),this['_syncEditingCollabCursorService'][_0x22a6ca(0x36a)][_0x22a6ca(0x22a)](I[_0x22a6ca(0x309)](this[_0x22a6ca(0x2dd)]))[_0x22a6ca(0x375)](_0x309315=>{const _0x423e58=_0x22a6ca;if((_0x309315==null?void 0x0:_0x309315['unitID'])!==this[_0x423e58(0x383)])return;const _0x469aa5={'eventID':g[_0x423e58(0x2a0)]['UPDATE_CURSOR'],'data':_0x309315};this['_onCursorUpdate'](_0x469aa5);}),this[_0x22a6ca(0x2f4)](this[_0x22a6ca(0x38a)][_0x22a6ca(0x3c6)](_0x22f858=>{const _0x311427=_0x22a6ca;if(_0x22f858[_0x311427(0x380)]==null)return;const _0x7ee87c=_0x22f858[_0x311427(0x380)];if(_0x22f858['id']!==V[_0x311427(0x272)]['id']||_0x7ee87c[_0x311427(0x318)]!==this[_0x311427(0x383)])return;const _0x21e88f={'id':'doc.mutation.rich-text-editing','params':_0x7ee87c},_0x33fca7=this[_0x311427(0x2bd)];for(const [_0x596bca,_0x4183f4]of _0x33fca7){const _0x181122={'id':_0x311427(0x3ba),'params':{'unitId':this[_0x311427(0x383)],'actions':null,'textRanges':_0x4183f4[_0x311427(0x3d3)]}},_0x5925d6=this['_transformService'][_0x311427(0x388)](_0x21e88f,_0x181122,!0x1);if(g[_0x311427(0x361)](_0x5925d6))throw _0x5925d6[_0x311427(0x430)];_0x33fca7[_0x311427(0x385)](_0x596bca,{..._0x4183f4,'ranges':_0x5925d6[_0x311427(0x458)][_0x311427(0x380)][_0x311427(0x378)]});}queueMicrotask(()=>{const _0x14dc8c=_0x311427;this[_0x14dc8c(0x38f)]['next'](_0x33fca7);});})));}[_0x322ca1(0x28b)](_0x587846){const _0x130b06=_0x322ca1;var _0x2fbb37,_0x575aad;const {memberID:_0x25732a,selection:_0x2f96ae}=_0x587846['data'],_0x770dca=ht(_0x2f96ae),_0x1eebeb=(_0x575aad=(_0x2fbb37=this[_0x130b06(0x447)][_0x130b06(0x482)](this['unitID'],_0x25732a))==null?void 0x0:_0x2fbb37[_0x130b06(0x3f4)])!=null?_0x575aad:_0x130b06(0x1d2),_0x47f8bc={'color':this[_0x130b06(0x3a2)][_0x130b06(0x2b4)](_0x25732a),'name':_0x1eebeb,'ranges':_0x770dca},_0x5b7f5c=this[_0x130b06(0x2bd)];_0x5b7f5c[_0x130b06(0x385)](_0x25732a,_0x47f8bc),this[_0x130b06(0x38f)][_0x130b06(0x2b3)](_0x5b7f5c);}[_0x322ca1(0x354)](_0x1dd0e1){const _0x1c2b68=_0x322ca1,{memberID:_0x3a5295}=_0x1dd0e1['data'],_0x46af3b=this[_0x1c2b68(0x2bd)];_0x46af3b['delete'](_0x3a5295),this['_cursorInfo$'][_0x1c2b68(0x2b3)](_0x46af3b);}[_0x322ca1(0x434)](){const _0x138843=_0x322ca1;var _0x126098;if(this['_online']=!0x0,((_0x126098=this[_0x138843(0x234)][_0x138843(0x3bf)]())==null?void 0x0:_0x126098[_0x138843(0x429)]())!==this[_0x138843(0x383)])return;const _0x47f004=this[_0x138843(0x2bc)]['get'](V[_0x138843(0x206)])[_0x138843(0x308)]();Array['isArray'](_0x47f004)&&_0x47f004['length']>0x0&&this[_0x138843(0x26d)](_0x47f004);}[_0x322ca1(0x2dc)](){const _0x501551=_0x322ca1;this[_0x501551(0x1fc)]=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x322ca1(0x245)])),U(0x3,a[_0x322ca1(0x254)](Re)),U(0x4,a[_0x322ca1(0x254)](u[_0x322ca1(0x346)])),U(0x5,a[_0x322ca1(0x254)](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x322ca1(0x215)]),U(0x8,a[_0x322ca1(0x3b9)])],ve);var ft=Object[_0x322ca1(0x258)],mt=(_0x160688,_0x343922,_0x5f2717,_0x2b00aa)=>{const _0x13130d=_0x322ca1;for(var _0x8add03=_0x2b00aa>0x1?void 0x0:_0x2b00aa?ft(_0x343922,_0x5f2717):_0x343922,_0x4afce2=_0x160688[_0x13130d(0x3f6)]-0x1,_0x2af585;_0x4afce2>=0x0;_0x4afce2--)(_0x2af585=_0x160688[_0x4afce2])&&(_0x8add03=_0x2af585(_0x8add03)||_0x8add03);return _0x8add03;},w=(_0x1979c3,_0x278a8a)=>(_0x51cd4b,_0x136b0a)=>_0x278a8a(_0x51cd4b,_0x136b0a,_0x1979c3);const vt=0x12c,gt=0x64,Et=()=>{let _0x3782c0=[],_0x20f67d=!0x1;return _0x3b3b05=>{const _0x3a1d20=_0xd0d7;_0x3782c0[_0x3a1d20(0x47b)](_0x3b3b05),_0x20f67d||(_0x20f67d=!0x0,setTimeout(()=>{const _0x2df53d=_0x3a1d20;_0x3782c0[_0x2df53d(0x48e)](_0x14a08e=>_0x14a08e()),_0x3782c0=[],_0x20f67d=!0x1;}));};};let ge=class extends a[_0x322ca1(0x481)]{constructor(_0x1c6d8b,_0x3c9764,_0x2499cd,_0x5b19ea,_0x5dc89a,_0x17e194,_0x140c19,_0x170fb4){const _0x2f8d3f=_0x322ca1;super(),_(this,_0x2f8d3f(0x1fc),!0x1),_(this,'_init',!0x1),_(this,_0x2f8d3f(0x38f),new I['BehaviorSubject'](new Map())),_(this,_0x2f8d3f(0x216),this[_0x2f8d3f(0x38f)][_0x2f8d3f(0x452)]()),_(this,_0x2f8d3f(0x307),new I[(_0x2f8d3f(0x3b4))]([])),_(this,_0x2f8d3f(0x3c5),this[_0x2f8d3f(0x307)][_0x2f8d3f(0x22a)](I['debounceTime'](vt))),_(this,'_updateLocalCursor',a['debounce']((_0xc5a6be,_0xfe992d)=>{const _0x6f648b=_0x2f8d3f,_0x50e6e1={'eventID':g[_0x6f648b(0x2a0)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x6f648b(0x395)][_0x6f648b(0x373)](),'selection':B['serializeRangeWithSheet'](_0xc5a6be,_0xfe992d[_0x6f648b(0x263)])}};this[_0x6f648b(0x395)][_0x6f648b(0x42e)](_0x50e6e1,this[_0x6f648b(0x383)]);},gt)),(this[_0x2f8d3f(0x383)]=_0x1c6d8b,this['_session']=_0x3c9764,this[_0x2f8d3f(0x2bc)]=_0x2499cd,this['_colorAssignService']=_0x5b19ea,this[_0x2f8d3f(0x447)]=_0x5dc89a,this[_0x2f8d3f(0x234)]=_0x17e194,this['_commandService']=_0x140c19,this[_0x2f8d3f(0x31b)]=_0x170fb4);}get[_0x322ca1(0x2bd)](){const _0xe9b8e7=_0x322ca1;return this[_0xe9b8e7(0x38f)][_0xe9b8e7(0x2e7)]();}get[_0x322ca1(0x1e4)](){return this['_roomMembers$']['getValue']();}[_0x322ca1(0x290)](){const _0x89be03=_0x322ca1;super[_0x89be03(0x290)](),this[_0x89be03(0x38f)][_0x89be03(0x2b3)](new Map()),this[_0x89be03(0x38f)][_0x89be03(0x22d)](),this[_0x89be03(0x307)][_0x89be03(0x2b3)]([]),this['_roomMembers$'][_0x89be03(0x22d)]();}[_0x322ca1(0x1e1)](){const _0x4240c0=_0x322ca1;this[_0x4240c0(0x1c5)]||(this['_init']=!0x0,this[_0x4240c0(0x395)][_0x4240c0(0x2d9)][_0x4240c0(0x22a)](I[_0x4240c0(0x309)](this[_0x4240c0(0x2dd)]))['subscribe'](_0x32c0dd=>{const _0x3d218a=_0x4240c0;_0x32c0dd===u[_0x3d218a(0x24d)][_0x3d218a(0x2f3)]?this['_toggleOnline']():this[_0x3d218a(0x2dc)]();}),this[_0x4240c0(0x395)][_0x4240c0(0x350)][_0x4240c0(0x22a)](I[_0x4240c0(0x309)](this[_0x4240c0(0x2dd)]))['subscribe'](_0x3e67e2=>{const _0x30cc7f=_0x4240c0,_0x165e61=_0x3e67e2['eventID'];_0x165e61===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x30cc7f(0x28b)](_0x3e67e2),_0x165e61===g[_0x30cc7f(0x2a0)][_0x30cc7f(0x28f)]&&this[_0x30cc7f(0x354)](_0x3e67e2);}),this[_0x4240c0(0x28d)](),this[_0x4240c0(0x2f4)](this[_0x4240c0(0x38a)][_0x4240c0(0x3c6)](_0x2ca209=>{const _0x1b0506=_0x4240c0;if(this[_0x1b0506(0x1fc)]&&_0x2ca209['id']===v[_0x1b0506(0x3e5)]['id']&&_0x2ca209['params']['unitId']===this[_0x1b0506(0x383)]){const _0x356308=_0x2ca209[_0x1b0506(0x380)];this[_0x1b0506(0x26d)](_0x356308[_0x1b0506(0x26c)],_0x356308[_0x1b0506(0x1f1)][0x0]);}})));}[_0x322ca1(0x28b)](_0x41180a){const _0x39b3b4=_0x322ca1;var _0x111cb7,_0x4ccf53;const {memberID:_0x53146c,selection:_0x1668a5}=_0x41180a[_0x39b3b4(0x349)],{sheetName:_0x11574f,range:_0x33c142}=B[_0x39b3b4(0x213)](_0x1668a5),_0x1fd3ec={'name':(_0x4ccf53=(_0x111cb7=this[_0x39b3b4(0x447)][_0x39b3b4(0x482)](this[_0x39b3b4(0x383)],_0x53146c))==null?void 0x0:_0x111cb7[_0x39b3b4(0x3f4)])!=null?_0x4ccf53:_0x39b3b4(0x1d2),'range':this[_0x39b3b4(0x444)](_0x11574f,_0x33c142),'sheetID':_0x11574f,'color':this[_0x39b3b4(0x3a2)]['assignAColorForMemberID'](_0x53146c),'selection':_0x1668a5},_0x4192cb=this['cursorInfo'];_0x4192cb[_0x39b3b4(0x385)](_0x53146c,_0x1fd3ec),this[_0x39b3b4(0x38f)]['next'](_0x4192cb);}[_0x322ca1(0x354)](_0x398b34){const _0x294040=_0x322ca1,{memberID:_0x418679}=_0x398b34[_0x294040(0x349)],_0x19acfd=this['cursorInfo'];_0x19acfd[_0x294040(0x485)](_0x418679),this['_cursorInfo$']['next'](_0x19acfd);}[_0x322ca1(0x444)](_0x461529,_0x5d5154){const _0x4b5cd6=_0x322ca1;var _0x337079,_0x1089cb;const _0x58ce5e=(_0x1089cb=(_0x337079=this[_0x4b5cd6(0x234)][_0x4b5cd6(0x1f9)](this[_0x4b5cd6(0x383)]))==null?void 0x0:_0x337079[_0x4b5cd6(0x418)](_0x461529))==null?void 0x0:_0x1089cb[_0x4b5cd6(0x464)]();return(_0x58ce5e==null?void 0x0:_0x58ce5e[_0x4b5cd6(0x455)](_0x1603a1=>a['Rectangle'][_0x4b5cd6(0x459)](_0x1603a1,_0x5d5154)))||_0x5d5154;}[_0x322ca1(0x28d)](){const _0x4efe75=_0x322ca1,_0x314f2e=new a[(_0x4efe75(0x477))](),_0x2f1280=Et(),_0x5ad82b=()=>{const _0x453fbf=_0x4efe75;_0x314f2e['dispose']();const _0x534a83=(_0x4ef085,_0x5b08c6,_0x2c4473,_0x17ee37)=>{const _0xbaa862=_0xd0d7;let _0x1f43b8=[];switch(_0x4ef085['id']){case v[_0xbaa862(0x281)][_0xbaa862(0x437)]:{_0x1f43b8=v[_0xbaa862(0x1e7)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)]['DeleteRangeMoveUpCommandId']:{_0x1f43b8=v[_0xbaa862(0x48f)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)][_0xbaa862(0x478)]:{_0x1f43b8=v['handleInsertCol'](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)]['InsertRangeMoveDownCommandId']:{_0x1f43b8=v[_0xbaa862(0x3fc)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)][_0xbaa862(0x265)]:{_0x1f43b8=v[_0xbaa862(0x34a)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)]['InsertRowCommandId']:{_0x1f43b8=v[_0xbaa862(0x38c)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)][_0xbaa862(0x219)]:{_0x1f43b8=v[_0xbaa862(0x3b6)](_0x4ef085,_0x17ee37);break;}case v['EffectRefRangId'][_0xbaa862(0x386)]:{_0x1f43b8=v[_0xbaa862(0x28c)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)][_0xbaa862(0x3d8)]:{_0x1f43b8=v['handleIRemoveRow'](_0x4ef085,_0x17ee37);break;}}const _0x30bf79=v[_0xbaa862(0x287)](_0x1f43b8,_0x17ee37),_0x59fe21=this[_0xbaa862(0x2bd)]['get'](_0x5b08c6);if(_0x59fe21&&_0x30bf79){const _0x58420d={..._0x59fe21,'range':_0x30bf79};this['cursorInfo'][_0xbaa862(0x385)](_0x5b08c6,_0x58420d),_0x2f1280(()=>{const _0x4fca8c=_0xbaa862,_0x3615d2=this[_0x4fca8c(0x31b)][_0x4fca8c(0x42a)](_0x30bf79,_0x85d991=>(_0x3615d2[_0x4fca8c(0x290)](),_0x534a83(_0x85d991,_0x5b08c6,_0x2c4473,_0x30bf79)));_0x314f2e[_0x4fca8c(0x269)](_0x3615d2);});}return{'redos':[],'undos':[]};};this[_0x453fbf(0x2bd)][_0x453fbf(0x48e)]((_0x20c3d4,_0x5aff9b)=>{const _0x3ef942=_0x453fbf,{range:_0x1911ee,sheetID:_0x142566}=_0x20c3d4,_0x30da4f=this[_0x3ef942(0x31b)][_0x3ef942(0x42a)](_0x1911ee,_0x48be2a=>(_0x30da4f[_0x3ef942(0x290)](),_0x534a83(_0x48be2a,_0x5aff9b,_0x142566,_0x1911ee)));_0x314f2e['add'](_0x30da4f);});};this['disposeWithMe'](a[_0x4efe75(0x1db)](this[_0x4efe75(0x38f)][_0x4efe75(0x375)](()=>{_0x5ad82b();})));}['_toggleOnline'](){const _0x2d5016=_0x322ca1;var _0x2d4129,_0x154d29;if(this[_0x2d5016(0x1fc)]=!0x0,((_0x2d4129=this[_0x2d5016(0x234)][_0x2d5016(0x3bf)]())==null?void 0x0:_0x2d4129['getUnitId']())!==this[_0x2d5016(0x383)])return;const _0x50cb2d=(_0x154d29=this[_0x2d5016(0x2bc)][_0x2d5016(0x442)](v['SheetsSelectionsService'])[_0x2d5016(0x3c4)]())==null?void 0x0:_0x154d29[0x0],_0x4cad9d=this[_0x2d5016(0x234)][_0x2d5016(0x48b)](a[_0x2d5016(0x2fa)][_0x2d5016(0x382)])[_0x2d5016(0x2ea)]();_0x50cb2d&&_0x4cad9d&&this[_0x2d5016(0x26d)](_0x4cad9d['getSheetId'](),_0x50cb2d);}[_0x322ca1(0x2dc)](){const _0x3794d1=_0x322ca1;this[_0x3794d1(0x1fc)]=!0x1;}};ge=mt([w(0x2,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),w(0x3,a[_0x322ca1(0x254)](Re)),w(0x4,a[_0x322ca1(0x254)](u[_0x322ca1(0x346)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x322ca1(0x3b9)]),w(0x7,a[_0x322ca1(0x254)](v[_0x322ca1(0x267)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x453bff,_0xc0f7ea,_0x428db5,_0x13ff7d)=>{for(var _0x46483a=_0x13ff7d>0x1?void 0x0:_0x13ff7d?Ct(_0xc0f7ea,_0x428db5):_0xc0f7ea,_0x1bd043=_0x453bff['length']-0x1,_0x345524;_0x1bd043>=0x0;_0x1bd043--)(_0x345524=_0x453bff[_0x1bd043])&&(_0x46483a=_0x345524(_0x46483a)||_0x46483a);return _0x46483a;},ce=(_0x367a19,_0x5ae7c3)=>(_0x2715e6,_0xa7737c)=>_0x5ae7c3(_0x2715e6,_0xa7737c,_0x367a19);let F=class extends a['RxDisposable']{constructor(_0x25f77d,_0x26d2ca,_0x3d486d){const _0x43c765=_0x322ca1;super(),_(this,_0x43c765(0x1e3),new Map()),_(this,_0x43c765(0x335),new I[(_0x43c765(0x1fe))]()),(this[_0x43c765(0x234)]=_0x25f77d,this[_0x43c765(0x2bc)]=_0x26d2ca,this[_0x43c765(0x28e)]=_0x3d486d,this['_init']());}[_0x322ca1(0x290)](){const _0x10de66=_0x322ca1;super[_0x10de66(0x290)](),this[_0x10de66(0x335)][_0x10de66(0x22d)](),this[_0x10de66(0x1e3)][_0x10de66(0x48e)](_0x40b3ed=>_0x40b3ed['dispose']());}[_0x322ca1(0x1ee)](_0x2a4948){const _0x2760f0=_0x322ca1;return this[_0x2760f0(0x1e3)]['has'](_0x2a4948)?this[_0x2760f0(0x1e3)]['get'](_0x2a4948)[_0x2760f0(0x216)]:this['_entityInit$'][_0x2760f0(0x22a)](I[_0x2760f0(0x1c9)](_0x2c37da=>_0x2c37da[_0x2760f0(0x383)]===_0x2a4948),I[_0x2760f0(0x32a)](_0x18c955=>_0x18c955[_0x2760f0(0x216)]));}[_0x322ca1(0x1c5)](){const _0x4eb6da=_0x322ca1;this[_0x4eb6da(0x234)][_0x4eb6da(0x493)](a['UniverInstanceType'][_0x4eb6da(0x382)])[_0x4eb6da(0x22a)](I['takeUntil'](this[_0x4eb6da(0x2dd)]))['subscribe'](async _0x6993a=>{const _0x21d6bb=_0x4eb6da,_0x3c22b6=_0x6993a['getUnitId'](),_0x2cbc1f=await this[_0x21d6bb(0x40d)](_0x3c22b6);this['_entityInit$'][_0x21d6bb(0x2b3)](_0x2cbc1f),this[_0x21d6bb(0x1e3)][_0x21d6bb(0x385)](_0x3c22b6,_0x2cbc1f);}),this['_univerInstanceService'][_0x4eb6da(0x493)](a[_0x4eb6da(0x2fa)][_0x4eb6da(0x24e)])[_0x4eb6da(0x22a)](I['takeUntil'](this['dispose$']))['pipe'](I[_0x4eb6da(0x1c9)](_0x626f89=>!_0x626f89[_0x4eb6da(0x429)]()[_0x4eb6da(0x3a5)]('__')))[_0x4eb6da(0x375)](async _0x48d399=>{const _0x51fb74=_0x4eb6da,_0x6eb84=_0x48d399[_0x51fb74(0x429)](),_0x253858=await this[_0x51fb74(0x2ff)](_0x6eb84);this[_0x51fb74(0x335)][_0x51fb74(0x2b3)](_0x253858),this[_0x51fb74(0x1e3)][_0x51fb74(0x385)](_0x6eb84,_0x253858);}),I['merge'](this[_0x4eb6da(0x234)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x4eb6da(0x24e)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x4eb6da(0x2fa)][_0x4eb6da(0x382)]))[_0x4eb6da(0x22a)](I[_0x4eb6da(0x309)](this[_0x4eb6da(0x2dd)]))[_0x4eb6da(0x375)](_0x11fabd=>{const _0xb9a274=_0x4eb6da,_0xc5b7b8=_0x11fabd[_0xb9a274(0x429)](),_0x5d97f3=this[_0xb9a274(0x1e3)][_0xb9a274(0x442)](_0xc5b7b8);_0x5d97f3&&(_0x5d97f3[_0xb9a274(0x290)](),this[_0xb9a274(0x1e3)][_0xb9a274(0x485)](_0xc5b7b8));});}async[_0x322ca1(0x40d)](_0x1989e5){const _0x5b3fcd=_0x322ca1,_0x551166=await this[_0x5b3fcd(0x28e)][_0x5b3fcd(0x33c)](_0x1989e5),_0x356db4=this[_0x5b3fcd(0x2bc)][_0x5b3fcd(0x282)](ge,_0x1989e5,_0x551166);return _0x356db4[_0x5b3fcd(0x1e1)](),_0x356db4;}async[_0x322ca1(0x2ff)](_0x22a988){const _0x50b7a6=_0x322ca1,_0x28e728=await this[_0x50b7a6(0x28e)]['requireSession'](_0x22a988),_0x5d0fc2=this[_0x50b7a6(0x2bc)]['createInstance'](ve,_0x22a988,_0x28e728);return _0x5d0fc2[_0x50b7a6(0x1e1)](),_0x5d0fc2;}};F=Tt([ce(0x0,a[_0x322ca1(0x215)]),ce(0x1,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),ce(0x2,a['Inject'](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x45f024,_0xee98cc){const _0x3f5383=_0x322ca1;let {radius:_0xbc3b24,width:_0x484212,height:_0xf710a6}=_0xee98cc;_0xbc3b24=_0xbc3b24!=null?_0xbc3b24:0x0,_0x484212=_0x484212!=null?_0x484212:0x1e,_0xf710a6=_0xf710a6!=null?_0xf710a6:0x1e;let _0x5d644e=0x0,_0x210096=0x0,_0x1ba1f4=0x0;_0x5d644e=_0x210096=_0x1ba1f4=Math[_0x3f5383(0x397)](_0xbc3b24,_0x484212/0x2,_0xf710a6/0x2),_0x45f024[_0x3f5383(0x347)](),_0x45f024[_0x3f5383(0x2f0)](_0x5d644e,0x0),_0x45f024[_0x3f5383(0x2b5)](_0x484212-_0x210096,0x0),_0x45f024['arc'](_0x484212-_0x210096,_0x210096,_0x210096,Math['PI']*0x3/0x2,0x0,!0x1),_0x45f024[_0x3f5383(0x2b5)](_0x484212,_0xf710a6-_0x1ba1f4),_0x45f024[_0x3f5383(0x210)](_0x484212-_0x1ba1f4,_0xf710a6-_0x1ba1f4,_0x1ba1f4,0x0,Math['PI']/0x2,!0x1),_0x45f024['lineTo'](0x0,_0xf710a6),_0x45f024[_0x3f5383(0x2b5)](0x0,_0x5d644e),_0x45f024['arc'](_0x5d644e,_0x5d644e,_0x5d644e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45f024[_0x3f5383(0x3c0)](),_0xee98cc[_0x3f5383(0x404)]&&(_0x45f024[_0x3f5383(0x3d9)](),_0x45f024[_0x3f5383(0x2a2)]=_0xee98cc[_0x3f5383(0x404)],_0xee98cc['fillRule']===_0x3f5383(0x46a)?_0x45f024['fill'](_0x3f5383(0x46a)):_0x45f024[_0x3f5383(0x404)](),_0x45f024['restore']());}class re extends C[_0x322ca1(0x3dd)]{constructor(_0x4e6a2c,_0x5ae723){const _0x53da7f=_0x322ca1;super(_0x4e6a2c,_0x5ae723),_(this,_0x53da7f(0x204)),_(this,_0x53da7f(0x2f1)),(this[_0x53da7f(0x204)]=_0x5ae723==null?void 0x0:_0x5ae723[_0x53da7f(0x204)],this['text']=_0x5ae723==null?void 0x0:_0x5ae723[_0x53da7f(0x2f1)]);}static[_0x322ca1(0x472)](_0x5a02c9,_0x55a7f1){const _0x185e98=_0x322ca1,{text:_0x50efb1,color:_0x3d6274}=_0x55a7f1;_0x5a02c9[_0x185e98(0x3d9)](),_0x5a02c9['font']=_0x185e98(0x1fd);const _0x5df8bd=_0x5a02c9[_0x185e98(0x2e5)](_0x50efb1)['width'],_0x34d669=Math[_0x185e98(0x397)](_0x5df8bd+0x2*le,Ue);Ot(_0x5a02c9,{'height':X,'radius':0x4,'width':_0x34d669,'fill':_0x3d6274}),_0x5a02c9[_0x185e98(0x2a2)]=_0x185e98(0x3ac);const _0x1b1dc3=le,_0x2d3e94=X-pt,_0x3527bc=Ue-0x2*le;if(_0x5df8bd>_0x3527bc){let _0x572a3c='',_0x10184f=0x0;for(const _0x2a19c2 of _0x50efb1){const _0x5be333=_0x5a02c9[_0x185e98(0x2e5)](_0x2a19c2)[_0x185e98(0x470)];if(_0x10184f+_0x5be333<=_0x3527bc-_0x5a02c9[_0x185e98(0x2e5)](_0x185e98(0x497))['width'])_0x572a3c+=_0x2a19c2,_0x10184f+=_0x5be333;else{_0x572a3c+='...';break;}}_0x5a02c9[_0x185e98(0x474)](_0x572a3c,_0x1b1dc3,_0x2d3e94);}else _0x5a02c9[_0x185e98(0x474)](_0x50efb1,_0x1b1dc3,_0x2d3e94);_0x5a02c9['restore']();}['_draw'](_0x4bfd39){const _0x416b3c=_0x322ca1;re[_0x416b3c(0x472)](_0x4bfd39,this);}}const _e=_0x322ca1(0x489),Rt='collab-text-range-',bt=_0x322ca1(0x43a),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x40ae5f,_0x598a3e,_0xeef4d1,_0x5abc0b){const _0x2b168b=_0x322ca1;_(this,'_shapes',[]),_(this,_0x2b168b(0x31a),null),_(this,_0x2b168b(0x2c2),null),_(this,'_anchorDot',null),_(this,_0x2b168b(0x333),null),_(this,'_eventUnsubscribe',null),(this[_0x2b168b(0x1c6)]=_0x40ae5f,this[_0x2b168b(0x2d1)]=_0x598a3e,this[_0x2b168b(0x2ef)]=_0xeef4d1,this[_0x2b168b(0x1d8)]=_0x5abc0b,this[_0x2b168b(0x488)]());}set[_0x322ca1(0x278)](_0x52f939){const _0x2dfb6c=_0x322ca1;_0x52f939?(this['_anchorDot']&&this[_0x2dfb6c(0x3a9)][_0x2dfb6c(0x240)](),this[_0x2dfb6c(0x2c2)]&&this['_textBubble'][_0x2dfb6c(0x3c3)]()):(this[_0x2dfb6c(0x3a9)]&&this['_anchorDot'][_0x2dfb6c(0x3c3)](),this[_0x2dfb6c(0x2c2)]&&this[_0x2dfb6c(0x2c2)][_0x2dfb6c(0x240)]());}[_0x322ca1(0x290)](){const _0x1241b0=_0x322ca1;for(const _0x198377 of this[_0x1241b0(0x336)])_0x198377['dispose']();this[_0x1241b0(0x2c2)]&&this[_0x1241b0(0x2c2)][_0x1241b0(0x290)](),this[_0x1241b0(0x3a9)]&&this[_0x1241b0(0x3a9)][_0x1241b0(0x290)](),this['_anchor']&&this[_0x1241b0(0x31a)][_0x1241b0(0x290)](),this['_eventUnsubscribe']&&this[_0x1241b0(0x1d3)]();}['_render'](){const _0x547ab5=_0x322ca1;var _0x5166fc;const {_docSkeleton:_0x2d2291,_document:_0xd79dc9}=this,{color:_0x312a8d,name:_0x901d1c,ranges:_0x54665a}=this[_0x547ab5(0x1c6)],_0x1a7d8c=_0xd79dc9['getOffsetConfig'](),{docsLeft:_0x55200a,docsTop:_0x452966}=_0x1a7d8c,_0x4d651b=new T[(_0x547ab5(0x342))](_0x1a7d8c,_0x2d2291);for(const {startOffset:_0xaad909,endOffset:_0x839977,rangeType:_0x2d4075,segmentId:_0x4b2677,segmentPage:_0x1bfa60,collapsed:_0x5bd7fb,isActive:_0x300a86}of _0x54665a){const _0x1e1132=_0x2d2291[_0x547ab5(0x43e)](_0xaad909,!0x0,_0x4b2677,_0x1bfa60);let _0x3543d0=_0x2d2291[_0x547ab5(0x43e)](_0x839977,!0x0,_0x4b2677,_0x1bfa60);if(_0x3543d0==null&&(_0x3543d0=_0x2d2291[_0x547ab5(0x43e)](_0x839977-0x1,!0x1,_0x4b2677,_0x1bfa60)),_0x300a86){const {contentBoxPointGroup:_0x278f93}=_0x4d651b[_0x547ab5(0x443)](_0x3543d0,_0x3543d0);if(_0x278f93[_0x547ab5(0x3f6)]===0x0)continue;this[_0x547ab5(0x365)](_0x312a8d,_0x278f93,_0x55200a,_0x452966,_0x901d1c),this[_0x547ab5(0x1d3)]=this[_0x547ab5(0x364)]();}if(_0x1e1132&&_0x3543d0){if(_0x2d4075===a[_0x547ab5(0x226)][_0x547ab5(0x3b5)]){const _0x5611dd=new T['NodePositionConvertToRectRange'](_0x1a7d8c,_0x2d2291),{pointGroup:_0x35823a}=(_0x5166fc=_0x5611dd['getRangePointData'](_0x1e1132,_0x3543d0))!=null?_0x5166fc:{};if(_0x35823a==null||_0x35823a[_0x547ab5(0x3f6)]===0x0)continue;this['_drawRectRange'](_0x312a8d,_0x35823a,_0x55200a,_0x452966);}else{if(!_0x5bd7fb){const {borderBoxPointGroup:_0x36b9c0}=_0x4d651b[_0x547ab5(0x443)](_0x1e1132,_0x3543d0);if(_0x36b9c0[_0x547ab5(0x3f6)]===0x0)continue;this[_0x547ab5(0x35d)](_0x312a8d,_0x36b9c0,_0x55200a,_0x452966);}}}}}['_drawAnchor'](_0x1d8302,_0x321352,_0x420506,_0x5a269e,_0x38b77f){const _0xd3c883=_0x322ca1,_0x56fa36=this[_0xd3c883(0x3bb)](_0x321352),{left:_0x1b56d5,top:_0x4d1159,height:_0x5cf965}=_0x56fa36,_0x1715da=this[_0xd3c883(0x2ac)](),_0x2d92c5=Nt/_0x1715da,_0x1fb63e=new C[(_0xd3c883(0x32f))](_e+a['generateRandomId'](H),{'left':_0x1b56d5+_0x420506-_0x2d92c5,'top':_0x4d1159+_0x5a269e,'height':_0x5cf965,'width':Dt,'fill':_0x1d8302||C['getColor'](a[_0xd3c883(0x1f2)][_0xd3c883(0x3a6)],0x0),'strokeWidth':_0x2d92c5,'stroke':Ut,'evented':!0x0});this[_0xd3c883(0x31a)]=_0x1fb63e,this['_scene'][_0xd3c883(0x1d6)](_0x1fb63e,T[_0xd3c883(0x357)]);const _0x575279=new C[(_0xd3c883(0x32f))](_e+a['generateRandomId'](H),{'left':_0x1b56d5+_0x420506-_0x2d92c5,'top':_0x4d1159+_0x5a269e-he/0x2,'height':he,'width':he,'fill':_0x1d8302||C[_0xd3c883(0x251)](a[_0xd3c883(0x1f2)][_0xd3c883(0x3a6)],0x0),'strokeWidth':0x0,'stroke':_0x1d8302||C['getColor'](a[_0xd3c883(0x1f2)][_0xd3c883(0x3a6)],0x0),'evented':!0x1});this[_0xd3c883(0x3a9)]=_0x575279,this[_0xd3c883(0x2d1)][_0xd3c883(0x1d6)](_0x575279,T['TEXT_RANGE_LAYER_INDEX']);const _0x2a0bf6=new re(_e+a[_0xd3c883(0x25f)](H),{'left':_0x1b56d5+_0x420506-_0x2d92c5,'top':_0x4d1159+_0x5a269e-X,'text':_0x38b77f,'color':_0x1d8302});this[_0xd3c883(0x2c2)]=_0x2a0bf6,this['_scene']['addObject'](_0x2a0bf6,T[_0xd3c883(0x357)]),this[_0xd3c883(0x278)]=!0x1;}[_0x322ca1(0x364)](){const _0x5e7c02=_0x322ca1,_0xf56f1d=this['_anchor']['onPointerEnter$'][_0x5e7c02(0x402)](()=>{const _0x10ce9f=_0x5e7c02;this[_0x10ce9f(0x278)]=!0x0;}),_0x4ae7c1=this[_0x5e7c02(0x31a)]['onPointerLeave$'][_0x5e7c02(0x402)](()=>{const _0x55c5e1=_0x5e7c02;this[_0x55c5e1(0x333)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x47c81c=_0x55c5e1;this[_0x47c81c(0x278)]=!0x1;},0x7d0);});return()=>{const _0x269a3d=_0x5e7c02;_0xf56f1d[_0x269a3d(0x3ce)](),_0x4ae7c1[_0x269a3d(0x3ce)]();};}[_0x322ca1(0x35d)](_0x25822d,_0x55fdba,_0x186965,_0x40076a){const _0x4f4c87=_0x322ca1,_0xa757a=new a[(_0x4f4c87(0x293))](_0x25822d)[_0x4f4c87(0x45c)](0.2)[_0x4f4c87(0x3be)](),_0x42b047=new C[(_0x4f4c87(0x23a))](Rt+a[_0x4f4c87(0x25f)](H),{'pointsGroup':_0x55fdba,'fill':_0xa757a||C['getColor'](a[_0x4f4c87(0x1f2)]['black'],0.2),'left':_0x186965,'top':_0x40076a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f4c87(0x336)][_0x4f4c87(0x47b)](_0x42b047),this[_0x4f4c87(0x2d1)][_0x4f4c87(0x1d6)](_0x42b047,T['TEXT_RANGE_LAYER_INDEX']);}[_0x322ca1(0x2fb)](_0x48b657,_0x11174a,_0x515631,_0x416352){const _0x510888=_0x322ca1,_0x35a86d=new a['ColorKit'](_0x48b657)[_0x510888(0x45c)](0.2)[_0x510888(0x3be)](),_0x1ac8a8=new C[(_0x510888(0x23a))](bt+a[_0x510888(0x25f)](H),{'pointsGroup':_0x11174a,'fill':_0x35a86d||C[_0x510888(0x251)](a[_0x510888(0x1f2)][_0x510888(0x3a6)],0.2),'left':_0x515631,'top':_0x416352,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x510888(0x336)][_0x510888(0x47b)](_0x1ac8a8),this[_0x510888(0x2d1)]['addObject'](_0x1ac8a8,T['TEXT_RANGE_LAYER_INDEX']);}[_0x322ca1(0x3bb)](_0x1ac3b7){const _0x197596=_0x1ac3b7[0x0],_0x192e53=_0x197596[0x0],_0x570319=_0x197596[0x2],{x:_0x5dacab,y:_0x262bb9}=_0x192e53,{x:_0x101764,y:_0x54888d}=_0x570319;return{'left':_0x5dacab,'top':_0x262bb9,'width':_0x101764-_0x5dacab,'height':_0x54888d-_0x262bb9};}[_0x322ca1(0x2ac)](){const _0x9fdbc5=_0x322ca1,{scaleX:_0x1d7aed,scaleY:_0x50b9c9}=this[_0x9fdbc5(0x2d1)][_0x9fdbc5(0x315)]();return Math[_0x9fdbc5(0x38e)](_0x1d7aed,_0x50b9c9);}}var Lt=Object[_0x322ca1(0x258)],Mt=(_0x23a7c4,_0xc2c6f,_0x41e31a,_0x1b2e13)=>{const _0x9c1356=_0x322ca1;for(var _0x14cc7c=_0x1b2e13>0x1?void 0x0:_0x1b2e13?Lt(_0xc2c6f,_0x41e31a):_0xc2c6f,_0x49dd46=_0x23a7c4[_0x9c1356(0x3f6)]-0x1,_0x50ebc5;_0x49dd46>=0x0;_0x49dd46--)(_0x50ebc5=_0x23a7c4[_0x49dd46])&&(_0x14cc7c=_0x50ebc5(_0x14cc7c)||_0x14cc7c);return _0x14cc7c;},q=(_0xeafe2b,_0x34bfb8)=>(_0x1240eb,_0x227b43)=>_0x34bfb8(_0x1240eb,_0x227b43,_0xeafe2b);let Ee=class extends a[_0x322ca1(0x481)]{constructor(_0x39fb1b,_0x44318c,_0x1defb2,_0x3796de,_0xd2e1b1){const _0x2b26a6=_0x322ca1;super(),_(this,_0x2b26a6(0x414),[]),_(this,_0x2b26a6(0x2af),[]),(this[_0x2b26a6(0x20f)]=_0x39fb1b,this[_0x2b26a6(0x3f9)]=_0x44318c,this[_0x2b26a6(0x3e8)]=_0x1defb2,this[_0x2b26a6(0x38a)]=_0x3796de,this['_themeService']=_0xd2e1b1,this['_init']());}[_0x322ca1(0x1c5)](){const _0x1bfdfc=_0x322ca1,_0x2099e1=this[_0x1bfdfc(0x20f)]['unitId'],_0x264792=this[_0x1bfdfc(0x3f9)];this[_0x1bfdfc(0x2f4)](I['combineLatest']([this[_0x1bfdfc(0x3e8)][_0x1bfdfc(0x1ee)](_0x2099e1),this['_themeService'][_0x1bfdfc(0x2e4)]])[_0x1bfdfc(0x22a)]($[_0x1bfdfc(0x445)](([_0x248cb9,_0x8bfed])=>({'skeleton':_0x264792[_0x1bfdfc(0x3e7)](),'cursors':[..._0x248cb9[_0x1bfdfc(0x369)]()]['flatMap'](_0x3f2cd9=>({..._0x3f2cd9,'color':this[_0x1bfdfc(0x2f2)][_0x1bfdfc(0x280)](_0x3f2cd9[_0x1bfdfc(0x204)])}))})))[_0x1bfdfc(0x375)](_0x2fbcbc=>{const _0x293eb4=_0x1bfdfc;if(this[_0x293eb4(0x24f)](),_0x2fbcbc){const {skeleton:_0x50b61b,cursors:_0x15d57d}=_0x2fbcbc;this[_0x293eb4(0x2ee)](_0x50b61b,_0x15d57d);}})),this[_0x1bfdfc(0x302)](),this[_0x1bfdfc(0x1e0)]();}[_0x322ca1(0x2ee)](_0x1527c1,_0x553fee){const _0x46581b=_0x322ca1,{scene:_0x482cfa,mainComponent:_0x31d13e}=this[_0x46581b(0x20f)],_0x472f50=_0x553fee[_0x46581b(0x445)](_0x44d8ec=>new Le(_0x44d8ec,_0x482cfa,_0x1527c1,_0x31d13e));this[_0x46581b(0x414)]=_0x472f50,this['_cursors']=_0x553fee;}[_0x322ca1(0x3e3)](){const _0x913260=_0x322ca1;this[_0x913260(0x24f)]();const {scene:_0x1761a8,mainComponent:_0x39dce5}=this[_0x913260(0x20f)],_0x2e50b1=this[_0x913260(0x3f9)]['getSkeleton'](),_0x5cf2f0=this[_0x913260(0x2af)][_0x913260(0x445)](_0xed1569=>new Le(_0xed1569,_0x1761a8,_0x2e50b1,_0x39dce5));this[_0x913260(0x414)]=_0x5cf2f0;}[_0x322ca1(0x24f)](){const _0x358403=_0x322ca1;this[_0x358403(0x414)]['forEach'](_0x174159=>_0x174159['dispose']()),this['_cursorShapes']=[];}[_0x322ca1(0x1e0)](){const _0x1c340e=_0x322ca1,_0x3f502d=[T['SetDocZoomRatioOperation']['id']];this[_0x1c340e(0x2f4)](this['_commandService'][_0x1c340e(0x3c6)](_0x3b20a2=>{const _0x21e5ff=_0x1c340e;_0x3f502d[_0x21e5ff(0x352)](_0x3b20a2['id'])&&_0x3b20a2[_0x21e5ff(0x380)][_0x21e5ff(0x318)]===this['_context'][_0x21e5ff(0x318)]&&this[_0x21e5ff(0x3e3)]();}));}[_0x322ca1(0x302)](){const _0x5d86af=_0x322ca1;this[_0x5d86af(0x2f4)](a[_0x5d86af(0x32d)](this['_context'][_0x5d86af(0x279)][_0x5d86af(0x3ee)])['pipe']($[_0x5d86af(0x1c9)](_0x1dffb4=>_0x1dffb4[_0x5d86af(0x384)]===C[_0x5d86af(0x1f6)][_0x5d86af(0x409)]),$[_0x5d86af(0x422)](0x10))[_0x5d86af(0x375)](()=>{const _0x13c425=_0x5d86af;this[_0x13c425(0x3e3)]();}));}};Ee=Mt([q(0x1,a[_0x322ca1(0x254)](V[_0x322ca1(0x37d)])),q(0x2,a[_0x322ca1(0x254)](F)),q(0x3,a[_0x322ca1(0x3b9)]),q(0x4,a[_0x322ca1(0x254)](a[_0x322ca1(0x1f0)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x322ca1(0x3dd)]{constructor(_0x4cc32c,_0x5de4c6){const _0x7e19e2=_0x322ca1;super(_0x4cc32c,_0x5de4c6),_(this,'_color'),_(this,_0x7e19e2(0x405),!0x1),_(this,_0x7e19e2(0x341)),_(this,_0x7e19e2(0x44b),''),_(this,'_labelPosition',_0x7e19e2(0x2e1)),_(this,_0x7e19e2(0x454)),(_0x5de4c6&&this[_0x7e19e2(0x1e9)](_0x5de4c6),this[_0x7e19e2(0x399)][_0x7e19e2(0x402)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x7e19e2(0x1e9)]({'hovered':!0x1})));}[_0x322ca1(0x1e9)](_0x448e22){const _0x1b78d7=_0x322ca1;var _0x34a226,_0x39f88a,_0x365fdc,_0x320fc5,_0x44f0f5,_0x2245fa;this[_0x1b78d7(0x483)]=(_0x34a226=_0x448e22[_0x1b78d7(0x204)])!=null?_0x34a226:this[_0x1b78d7(0x483)],this[_0x1b78d7(0x405)]=(_0x39f88a=_0x448e22['hovered'])!=null?_0x39f88a:this[_0x1b78d7(0x405)],this['_range']=(_0x365fdc=_0x448e22[_0x1b78d7(0x263)])!=null?_0x365fdc:this[_0x1b78d7(0x341)],this['_name']=(_0x320fc5=_0x448e22['name'])!=null?_0x320fc5:this[_0x1b78d7(0x44b)],this['_labelPosition']=(_0x44f0f5=_0x448e22[_0x1b78d7(0x3eb)])!=null?_0x44f0f5:this['_labelPosition'],this['_backgroundColor']=(_0x2245fa=_0x448e22[_0x1b78d7(0x3d0)])!=null?_0x2245fa:this[_0x1b78d7(0x454)],this['transformByState']({'width':_0x448e22[_0x1b78d7(0x470)],'height':_0x448e22[_0x1b78d7(0x249)]});}[_0x322ca1(0x3c1)](_0x24a5c6){const _0x37777e=_0x322ca1,{row:_0x1a8465,column:_0x26bdc9}=_0x24a5c6;if(_0x1a8465>=this['_range'][_0x37777e(0x370)]&&_0x1a8465<=this[_0x37777e(0x341)][_0x37777e(0x3aa)]&&_0x26bdc9>=this[_0x37777e(0x341)][_0x37777e(0x237)]&&_0x26bdc9<=this['_range'][_0x37777e(0x37c)]){this[_0x37777e(0x1e9)]({'hovered':!0x0});return;}this[_0x37777e(0x1e9)]({'hovered':!0x1});}[_0x322ca1(0x358)](_0x13551f){return!0x1;}[_0x322ca1(0x33d)](_0x39a41b){const _0x59c04a=_0x322ca1;C[_0x59c04a(0x32f)]['drawWith'](_0x39a41b,{'width':this[_0x59c04a(0x470)],'height':this['height'],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x39a41b[_0x59c04a(0x3d9)](),_0x39a41b['transform'](0x1,0x0,0x0,0x1,this[_0x59c04a(0x470)],this[_0x59c04a(0x360)]==='bottom'?0x0:-X),re[_0x59c04a(0x472)](_0x39a41b,{'text':this[_0x59c04a(0x44b)],'color':this[_0x59c04a(0x483)]}),_0x39a41b[_0x59c04a(0x467)]());}}var wt=Object[_0x322ca1(0x258)],yt=(_0x3ad49c,_0x5f45a8,_0x146c37,_0x88aaf8)=>{const _0x57df0e=_0x322ca1;for(var _0x97aae6=_0x88aaf8>0x1?void 0x0:_0x88aaf8?wt(_0x5f45a8,_0x146c37):_0x5f45a8,_0x29a1f7=_0x3ad49c[_0x57df0e(0x3f6)]-0x1,_0x26c0fa;_0x29a1f7>=0x0;_0x29a1f7--)(_0x26c0fa=_0x3ad49c[_0x29a1f7])&&(_0x97aae6=_0x26c0fa(_0x97aae6)||_0x97aae6);return _0x97aae6;},ue=(_0x2998c,_0x2f09ba)=>(_0x428a6e,_0x20de08)=>_0x2f09ba(_0x428a6e,_0x20de08,_0x2998c);function _0x2ccd(){const _0x394a10=['save','LOCAL_CACHE_INTERVAL','_initEntityListener','idSuffix','Shape','JOIN_ROOM_FAILED','sheetID','_unitOnClients','debug','CollaborationController','_refreshCollabCursors','_docSyncEditingCollabCursorService','SetSelectionsOperation','saveOfflineData','getSkeleton','_collabCursorController','popstate','72Rhjxdj','labelPosition','_cachedData','CollaborationStatus','onTransformChange$','from','setParam','_httpService','pluginName','formula.calculation.unable','name','DocCollaborationEntity','length','ILocalCacheService','isEditing','_docSkeletonManagerService','REDEMPTION_CODE_FULLY_REDEEMED','defIds','handleInsertRangeMoveDown','on-line-icon_clip0_910_349','Optional','IDocClipboardService','1109fjpwZt','INVALID_INVITE_CODE','subscribeEvent','isFormulaString','fill','_hovered','m1Prime','shareReplay','_sheetSkeletonManagerService','resize','url(#on-line-icon_clip0_910_349)','defineProperty','parseInt','_startSheetCollabCursor','_pollingInterval','_disabled','YUUMI_SUBSCRIPTION_NOT_FOUND','TOO_MANY_REQUESTS','fromEvent','ENTITLE_DUP_SUBSCRIPTION','_cursorShapes','setStateCache','INVITE_CODE_REQUIRED','CommandType','getSheetBySheetId','transformMutationsWithChangeset','eventID','_createSocketURL','YUUMI_NO_CUBOID_FOR_QUESTION','univer-flex\x20univer-items-center','clearTimeout','[Window\x20Error]:\x20','COMPLETION_FINISHED','/universer-api/frontend/logs','throttleTime','REDEMPTION_INVALID_CODE','transformRemoteChangeset','toString','registerRenderModule','_collaborationUIEventService','ENTITLE_REPORT_LIMIT_EXCEED','getUnitId','registerRefRange','PAYMENT_CHANNEL_NOT_SUPPORT','forwardRef','FromArray','send','YUUMI_ALL_TABLES_IS_INVALID','error','MOBILE_HAS_BEEN_BOUND','_removeClearOtherTimer','stageInfo','_toggleOnline','all','split','DeleteRangeMoveLeftCommandId','assign','_transformPreviousActiveRange','collab-rect-range-','_saveCache','LICENSE_IMPORT_SIZE_EXCEEDED','_initDependencies','findNodePositionByCharIndex','HTTPService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_setupBeforeClosingHandler','get','getRangePointData','_getMergeRange','map','combineLatest','_memberService','urlChange$','history','isTransformMutationsWithChangesetSuccess','_name','unshift','current','_docClipboardService','xlink:href','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Tools','asObservable','0\x200\x2016\x2016','_backgroundColor','find','_handleEvent','REDEMPTION_CODE_HAS_BEEN_CREATED','m2Prime','contains','bottom','_status$','setAlpha','invokeId','deepClone','YUUMI_CONNECTOR_URL_NOT_FOUND','3266373amqJjg','DATA_SOURCE_TOO_LARGE','APPLY_REVISION_CONFILICT','code','getMergeData','START_CALCULATION','_maxFormulaLimit','restore','unload','LICENSE_DISTRO_REJECTED','evenodd','_lastResponseTimestamp','body','UNDEFINED','children','round','width','displayName','drawWith','RevisionService','fillText','YUUMI_RATE_OVER_LIMIT','registerBeforeClose','DisposableCollection','InsertColCommandId','_configService','ERROR_AGAIN','push','_doCreateSocket','getConfig','registerComponent','maxFormulaLimit','SNAPSHOT_INVALID_SNAPSHOT','RxDisposable','getMember','_color','reason','delete','_updateURLWithCurrentState','_docTransformStateCacheService','_render','collab-text-anchor-','editingUnit','getCurrentUnitForType','LOGIN_TOKEN_PROCESSING_FAILED','3050295bnDbPV','forEach','handleDeleteRangeMoveUp','saveImage','_handleHeartbeatEvent','_checkCalculationAvailable','getTypeOfUnitAdded$','_collaborationController','some','_getFormulaLimitStatus','...','setUndoRedoMutationParamsCache','_init','_cursor','_clearOtherTimers','Tooltip','filter','[CollaborationDataLoaderController]','exhaustSavingTask','imageSourceType','OFFLINE','IMessageService','mask','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_docTransformSelectionsService','Unknown\x20user','_eventUnsubscribe','10955070oxRzda','_collabCursorState$','addObject','executionId','_document','_config','Loading','toDisposable','unit','_transformHistoryAndStateStack','APPLY_NON_SEQUENTIAL_REVISION','ILogService','_initCommandExecutedListener','init','NOT_COLLAB','_entities','roomMembers','onLocalMutation','SetWorksheetActivateCommand','handleDeleteRangeMoveLeft','getUnhiddenWorksheets','setShapeProps','HEADER_MENU','url(#off-line-icon_clip0_910_343)','status$','getLocalCacheKey','getCollabCursors$','_transformUndoRedoStack','ThemeService','selections','COLORS','LICENSE_MAX_UNITS_EXCEEDED','WECHAT_HAS_BEEN_BOUND','UNRECOGNIZED','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getCellMatrix','YUUMI_URL_COL_OUT_OF_RANGE','getUniverSheetInstance','_id','newValue','_online','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Subject','svg','_docStateChangeManagerService','?taskId=','useCallback','INVITE_CODE_ALREADY_BOUND','color','7803yDJjEq','DocSelectionManagerService','_ensureSubject','setInterval','_registerDependencies','replaceState','makeDirty','ILocalStorageService','_registerRenderDependencies','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_context','arc','actions','REDEMPTION_USER_NOT_ELIGIBLE','deserializeRangeWithSheet','_localeService','IUniverInstanceService','cursorInfo$','currentSkeleton$','Warning','MoveRangeCommandId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LOGIN_FAILED','mapTo','NO_OTHER_CLIENTS_EDITING','_heartbeatTimer','substring','getCellPositionByOffset','enableFrontendLog','WebSocketService','activeSheet$','USER_IS_ANONYMOUS','tag','DOC_RANGE_TYPE','origin','BrowserCollaborationSocketService','YUUMI_ASYNCIO_CANCELLED','pipe','OffLineIcon','REDEMPTION_CODE_INACTIVE','complete','sessionTicket','_docTransformIMECacheService','session.will-retry','row','clsx','socket$','_univerInstanceService','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','catch','startColumn','CollaborationSessionService','4trbISL','RegularPolygon','http://www.w3.org/2000/svg','SNAPSHOT_HAS_BEEN_REMOVED','getUnitStatus$','PY_RUNTIME_SCRIPT_ERROR','_hasFormulaInDirtyRanges','hide','IURLService','permission.content','_messageService','isArray','Injector','useObservable','DocStateChangeManagerService','div','height','collabStatus.fetchMiss','docStateChange$','whenReady','SessionStatus','UNIVER_DOC','_removeCollabCursors','clipPath','getColor','jsx','getCollabEntity$','Inject','unhandledrejection','IBeforeCloseService','MUTATION','getOwnPropertyDescriptor','has','_uiPartsService','EMAIL_VERIFY_CODE_MISMATCH','_getSheetObject','override','1em','generateRandomId','addEventListener','_updateSubUnitFromURLParams','mutations','range','beforeCommandExecuted','InsertRangeMoveRightCommandId','off-line-icon','RefRangeService','addObjects','add','on-line-icon','off-line-icon_clip0_910_343','subUnitId','_updateLocalCursor','_clearPolling','yellow.400','FETCH_MISS','LOCAL_CACHE_INTERVAL_KEY','RichTextEditingMutation','_setFormulaLimitStatus','getParam','post','_initUnhandledRejectionListener','REDEMPTION_CODE_NOT_STARTED','_hover','engine','getViewport','stringify','replaceDocRanges','Module','getCurrent','getSheetId','getColorFromTheme','EffectRefRangId','createInstance','CONFLICT','transformStateCache','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_send','runRefRangeMutations','_currentUsage','attrs','CanceledError','_onCursorUpdate','handleIRemoveCol','_onRefRangeChange','_collabSessionService','USERS_LEAVE','dispose','currentUsage','CollaborationUIEventId','ColorKit','UPDATE_CURSOR','setItem','_localCacheService','_uploadLog','collaboration.offline-data-not-saved','_initUserListener','limitInfo','_handleLeaveEvent','/run/','APPLY_REJECT','APPLY_DUPLICATED','_collaborationSessionService','CollaborationEvent','PERMISSION_DENIED','fillStyle','_selfUnitIDs','IConfigService','searchParams','href','M0\x200H16V16H0z','Plugin','debounce','loadOfflineData','FormulaExecuteStageType','_getScale','now','collaboration.closeRoom','_cursors','_taskIds','LICENSE_EXPORT_SIZE_EXCEEDED','_initEvent','next','assignAColorForMemberID','lineTo','formula.calculation.waiting','WebURLService','size','4454133eusHWW','AWAITING_WITH_PENDING','redoState','_injector','cursorInfo','none','getFormulaLimitStatusUrl','storage','OTHER_CLIENTS_EDITING','_textBubble','_notificationService','MessageType','permission.title','addClipboardHook','Disposable','Failed','SOCKET_FAILED','undoState','UNAUTHENTICATED','IImageIoService','APPLY_PERMISSION_DENIED','executeCommand','[Unhandled\x20Rejection]:\x20','totalFormulasToCalculate','_scene','IRenderManagerService','location','random','ENTITLE_COUPON_EXPIRED','mergeOverrideWithDependencies','_instanceService','[LogService\x20Error]:\x20','sessionStatus$','setConfig','UniverCollaborationClientUIPlugin','_toggleOffline','dispose$','getCurrentRevOfUnit','ISocketService','functionsExecutedState','top','column','saveTaskMap','currentTheme$','measureText','_initStatusComponent','getValue','NOT_FOUND','ENTITLE_INSUFFICIENT_QUOTA','getActiveSheet','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_dataLoaderService','runOnServer','_updateCollabCursors','_docSkeleton','moveTo','text','_themeService','ONLINE','disposeWithMe','_scheduleHeartbeat','_urlService','CollaborationDataLoaderController','AWAITING','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','UniverInstanceType','_drawRectRange','purple.300','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','USER_NOT_FOUND','_startDocCollabCursor','936gPBbaB','with','_initResize','_imageIoService','SetTextSelectionsOperation','application/json','path','_roomMembers$','getDocRanges','takeUntil','removeEventListener','setTimeout','ENSURE_SNAPSHOT_EXECUTION','result','createElement','EMAIL_HAS_BEEN_BOUND','_scheduleSaving','AUTHORIZE_CODE_ILLEGAL','CollaborationSocketService','_releaseCalculationLimit','subunit','getAncestorScale','createSocket','getVpScrollXYInfoByPosToVp','unitId','_logService','_anchor','_refRangeService','runId','isActive','string','_handleJoinEvent','Error','useDependency','848883ZLSqbt','INVALID_ARGUMENT','_unitStatus','_transformService','ENTITLE_CHAT_LIMIT_EXCEED','focused$','SUCCESS','Workbook','switchMap','getStateCache','jsxs','fromEventSubject','transformIMECache','Rect','use','_getSessionTicket','getActiveRange','_hideTimer','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','_entityInit$','_shapes','_initWindowErrorListener','session.connection-failed','INotificationService','createIdentifier','/universer-api/license/formula/limit/status','requireSession','_draw','_localStorageService','onStarting','VIEW_MAIN','_range','NodePositionConvertToCursor','_setupSubUnitSync','then','colorChannel1','MemberService','beginPath','INVITE_CODE_HAS_BEEN_UES','data','handleInsertRangeMoveRight','RemoteUniscriptService','TEXT','\x20at\x20','_assignedColors','[RemoteUniscriptService]:\x20no\x20focused\x20unit','event$','_saveTaskMap','includes','entries','_onCursorDelete','message','OnLineIcon','TEXT_RANGE_LAYER_INDEX','triggerDblclick','stage','useRef','ALREADY_EXISTS','key','_drawTextRange','_applyCommand','60gDYZgN','_labelPosition','isTransformMutationFailure','lineno','CHANGESET_REVISION_CONFILICT','_handleHover','_drawAnchor','join','_getSaveTimeout','currentColor','values','collabCursorState$','memberID','848BzTZNF','USER_NOT_INVITED_CODE','_lastPointer','REDEMPTION_USER_REDEEM_TIMES_EXCEED','startRow','getRelativeToViewportCoord','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getMemberID','search','subscribe','_beforeCloseService','DataLoaderService','textRanges','getItem','selection','setActiveRange','endColumn','DocSkeletonManagerService','onPointerMove$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','params','collabStatus.conflict','UNIVER_SHEET','unitID','type','set','RemoveColCommandId','DesktopCollaborationStatusDisplayController','transformMutation','isFormulaId','_commandService','ENTITLE_COUPON_USED_UP','handleInsertRow','DocIMEInputManagerService','max','_cursorInfo$','pushState','_checkAndWaitForCalculationPermission','blue.400','INTERNAL_ERROR','0\x200\x2017\x2016','_session','debounceTime','min','replace','onPointerEnter$','_revisionService','enableLocalCache','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ISnapshotServerService','sheetId','_renderManagerService','defs','white','_colorAssignService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getRenderById','startsWith','black','merge','UnitStatus','_anchorDot','endRow','jiqing.500','#FFF','YUUMI_AI_RUN_FAILED','syncEditingCollabCursor','bind','CURRENT_STATUS_CANNOT_OPERATE','SYNCED','PENDING','disposeUnit','BehaviorSubject','RECT','handleMoveRange','ITransformService','ENTITLE_NEED_BILLING_ADDRESS','ICommandService','doc.mutation.rich-text-editing','_getAnchorBounding','loadUnit','symbol','toRgbString','getFocusedUnit','closePath','onMouseMove','collabStatus.synced','show','getCurrentSelections','roomMembers$','onCommandExecuted','DEFAULT_WS_SESSION_TICKET_URL','touchDependencies','_initStatusListener','connectInjector','_colorIndex','SetFormulaCalculationStartMutation','_scheduleClearOtherTimer','unsubscribe','LocaleService','backgroundColor','_showGuardMessage','Vector2','ranges','ACTIVE_UNIT_EVENT_CHANNEL','transformSelections','url(#$1','_memberID','RemoveRowCommandId'];_0x2ccd=function(){return _0x394a10;};return _0x2ccd();}const $t=0x1389;let Ce=class extends a[_0x322ca1(0x481)]{constructor(_0x44b763,_0x30820f,_0x47f95d,_0x1d6625){const _0x584a49=_0x322ca1;super(),_(this,'_cursors',new Set()),_(this,_0x584a49(0x36e),null),(this[_0x584a49(0x20f)]=_0x44b763,this['_sheetSkeletonManagerService']=_0x30820f,this['_collabCursorController']=_0x47f95d,this[_0x584a49(0x2f2)]=_0x1d6625,this[_0x584a49(0x1c5)]());}['_init'](){const _0x12a459=_0x322ca1;this[_0x12a459(0x408)][_0x12a459(0x217)][_0x12a459(0x22a)]($[_0x12a459(0x309)](this[_0x12a459(0x2dd)]),$[_0x12a459(0x32a)](_0x18e399=>{const _0x3b65a9=_0x12a459;if(_0x18e399){const _0x4de8b3=_0x18e399[_0x3b65a9(0x39e)];return I[_0x3b65a9(0x446)](this[_0x3b65a9(0x3e8)][_0x3b65a9(0x1ee)](this[_0x3b65a9(0x20f)][_0x3b65a9(0x318)]),this['_themeService'][_0x3b65a9(0x2e4)])[_0x3b65a9(0x22a)]($[_0x3b65a9(0x445)](([_0x48c2e7,_0x2546b5])=>{const _0x2412bc=new Map();return _0x48c2e7['forEach']((_0x1dc77c,_0x77df63)=>{const _0x5ce29a=_0xd0d7;if(_0x1dc77c[_0x5ce29a(0x3df)]===_0x4de8b3){const _0x56aa0c={..._0x1dc77c};_0x56aa0c[_0x5ce29a(0x204)]=this['_themeService'][_0x5ce29a(0x280)](_0x1dc77c[_0x5ce29a(0x204)]),_0x2412bc[_0x5ce29a(0x385)](_0x77df63,_0x56aa0c);}}),{'skeleton':_0x18e399,'cursors':_0x2412bc};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x12a459(0x375)](({skeleton:_0x4000ae,cursors:_0x28fa43})=>{const _0x42a7af=_0x12a459;this['_removeCollabCursors'](),_0x4000ae&&this[_0x42a7af(0x2ee)](_0x4000ae,_0x28fa43);}),this[_0x12a459(0x408)]['currentSkeleton$'][_0x12a459(0x375)](_0x890441=>{const _0x4b9792=_0x12a459;if(_0x890441==null)return;const {skeleton:_0x507eb4}=_0x890441,{scene:_0x48c65b}=this[_0x4b9792(0x20f)];_0x48c65b[_0x4b9792(0x37e)][_0x4b9792(0x402)](a[_0x4b9792(0x2a9)](_0xa8f5c0=>{const _0x3bfc74=_0x4b9792;var _0x30064,_0x58912a;const {offsetX:_0xc6a2d6,offsetY:_0x37e390}=_0xa8f5c0,{x:_0xb09264,y:_0x3c3d69}=_0x48c65b[_0x3bfc74(0x371)](C[_0x3bfc74(0x3d2)][_0x3bfc74(0x42d)]([_0xc6a2d6,_0x37e390])),{scaleX:_0x2da13f,scaleY:_0x2e00f7}=_0x48c65b[_0x3bfc74(0x315)](),_0x3380f4=_0x48c65b[_0x3bfc74(0x27a)](C['SHEET_VIEWPORT_KEY'][_0x3bfc74(0x340)]),_0x24e79e=_0x48c65b[_0x3bfc74(0x317)](C[_0x3bfc74(0x3d2)]['FromArray']([_0xb09264,_0x3c3d69]),_0x3380f4),_0x131e4b=_0x507eb4[_0x3bfc74(0x220)](_0xc6a2d6,_0x37e390,_0x2da13f,_0x2e00f7,_0x24e79e);((_0x30064=this[_0x3bfc74(0x36e)])==null?void 0x0:_0x30064[_0x3bfc74(0x2e2)])===_0x131e4b['column']&&((_0x58912a=this[_0x3bfc74(0x36e)])==null?void 0x0:_0x58912a[_0x3bfc74(0x231)])===_0x131e4b[_0x3bfc74(0x231)]||this[_0x3bfc74(0x2af)][_0x3bfc74(0x48e)](_0x5ee8df=>{const _0x1e7fd6=_0x3bfc74;_0x5ee8df[_0x1e7fd6(0x3c1)](_0x131e4b);});},0x64));});}['_updateCollabCursors'](_0x55c020,_0x207bdd){const _0xc02142=_0x322ca1;var _0x4c13a8;const _0x3a6f7d=(_0x4c13a8=this[_0xc02142(0x408)][_0xc02142(0x27e)]())==null?void 0x0:_0x4c13a8['skeleton'];if(!_0x3a6f7d)return;const _0x35da93=this['_getSheetObject']();if(!_0x35da93)return;this['_cursors'][_0xc02142(0x48e)](_0x27fcd2=>{const _0x5a8eff=_0xc02142;_0x27fcd2[_0x5a8eff(0x20b)]();});const {scene:_0x3a24b0}=_0x35da93,_0x68be14=xt(Array[_0xc02142(0x3ef)](_0x207bdd[_0xc02142(0x369)]()))[_0xc02142(0x445)](_0x32ecd7=>{const _0x326aa5=_0xc02142,{color:_0x42f819,range:_0x15a185,name:_0x161029,selection:_0x39837b,sheetID:_0x197ad4}=_0x32ecd7,{startColumn:_0x470088,startRow:_0xa17658,endColumn:_0x29ae5d,endRow:_0x48c418}=_0x15a185,_0x1e27eb=J['getCoordByCell'](_0xa17658,_0x470088,_0x3a24b0,_0x3a6f7d),_0x442c81=J['getCoordByCell'](_0x48c418,_0x29ae5d,_0x3a24b0,_0x3a6f7d),{columnHeaderHeightAndMarginTop:_0x57a4a9}=_0x3a6f7d,{startX:_0x479852,startY:_0x229d2d}=_0x1e27eb,{endX:_0x43963d,endY:_0x3422cb}=_0x442c81,_0x382d69=_0x43963d-_0x479852,_0x2d11f7=_0x3422cb-_0x229d2d,_0x34cfae={'labelPosition':_0x229d2d-_0x57a4a9>=X?_0x326aa5(0x2e1):_0x326aa5(0x45a),'sheetID':_0x197ad4,'range':_0x15a185,'color':_0x42f819,'name':_0x161029,'selection':_0x39837b,'left':_0x479852,'top':_0x229d2d,'width':_0x382d69,'height':_0x2d11f7,'evented':!0x1,'zIndex':$t};return new je(_0x161029,_0x34cfae);});_0x3a24b0[_0xc02142(0x268)](_0x68be14,At),this['_cursors']=new Set(_0x68be14);}[_0x322ca1(0x24f)](){const _0x474f11=_0x322ca1;var _0x35954c;(_0x35954c=this[_0x474f11(0x2af)])==null||_0x35954c['forEach'](_0x364f8d=>_0x364f8d[_0x474f11(0x290)]());}[_0x322ca1(0x25c)](){const _0x3b90d9=_0x322ca1;return J['getSheetObject'](this['_context'][_0x3b90d9(0x1dc)],this[_0x3b90d9(0x20f)]);}};Ce=yt([ue(0x1,a[_0x322ca1(0x254)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x322ca1(0x254)](F)),ue(0x3,a['Inject'](a['ThemeService']))],Ce);function xt(_0x16f0d4){const _0x419616=_0x322ca1,_0x5a4057=new Map();return _0x16f0d4[_0x419616(0x48e)](_0x2f8111=>{const _0x3189a2=_0x419616;if(_0x5a4057[_0x3189a2(0x259)](_0x2f8111[_0x3189a2(0x37a)])){const _0xa0cdbf=_0x5a4057['get'](_0x2f8111[_0x3189a2(0x37a)]);_0xa0cdbf[_0x3189a2(0x3f4)]+=',\x20'+_0x2f8111[_0x3189a2(0x3f4)];}else _0x5a4057['set'](_0x2f8111['selection'],_0x2f8111);}),Array[_0x419616(0x3ef)](_0x5a4057[_0x419616(0x369)]());}var Bt=Object[_0x322ca1(0x258)],Ft=(_0x46f431,_0x51e693,_0x58b068,_0x2d2bfa)=>{const _0xcecc6b=_0x322ca1;for(var _0x97b183=_0x2d2bfa>0x1?void 0x0:_0x2d2bfa?Bt(_0x51e693,_0x58b068):_0x51e693,_0x8db54e=_0x46f431[_0xcecc6b(0x3f6)]-0x1,_0x1e8456;_0x8db54e>=0x0;_0x8db54e--)(_0x1e8456=_0x46f431[_0x8db54e])&&(_0x97b183=_0x1e8456(_0x97b183)||_0x97b183);return _0x97b183;},y=(_0x17b3de,_0x284cf3)=>(_0x30ead5,_0x59b9cb)=>_0x284cf3(_0x30ead5,_0x59b9cb,_0x17b3de);let Z=class extends a['Disposable']{constructor(_0x4c518e,_0xb5fbd2,_0x3fe1ef,_0x1e8700,_0x1899cb,_0x3687e3){const _0x363463=_0x322ca1;super(),this[_0x363463(0x376)]=_0x4c518e,this[_0x363463(0x296)]=_0xb5fbd2,this[_0x363463(0x427)]=_0x3fe1ef,this['_messageService']=_0x1e8700,this[_0x363463(0x2c3)]=_0x1899cb,this['_localeService']=_0x3687e3,this[_0x363463(0x441)](),this[_0x363463(0x2b2)]();}['_setupBeforeClosingHandler'](){const _0x3da365=_0x322ca1;this[_0x3da365(0x2f4)](this[_0x3da365(0x376)][_0x3da365(0x476)](()=>{const _0x1aa50b=_0x3da365;if(this[_0x1aa50b(0x296)][_0x1aa50b(0x2e3)][_0x1aa50b(0x2b8)])return this[_0x1aa50b(0x214)]['t'](_0x1aa50b(0x298));}));}[_0x322ca1(0x2b2)](){const _0x2eab2f=_0x322ca1;this[_0x2eab2f(0x2f4)](this[_0x2eab2f(0x427)]['event$'][_0x2eab2f(0x375)](_0x5a49a9=>{const _0x313cfb=_0x2eab2f;_0x5a49a9['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x313cfb(0x3c3)]({'type':p[_0x313cfb(0x2c4)]['Warning'],'content':this[_0x313cfb(0x214)]['t']('collaboration.single-unit.warning')}),_0x5a49a9['id']===u[_0x313cfb(0x292)]['CLOSE_ROOM']&&this[_0x313cfb(0x243)]['show']({'type':p['MessageType'][_0x313cfb(0x218)],'content':this[_0x313cfb(0x214)]['t']('collaboration.closeRoom')}),_0x5a49a9['id']===u[_0x313cfb(0x292)]['PERMISSION_DENIED']&&this['_notificationService'][_0x313cfb(0x3c3)]({'title':this[_0x313cfb(0x214)]['t'](_0x313cfb(0x2c5)),'content':this['_localeService']['t'](_0x313cfb(0x242)),'type':_0x313cfb(0x430),'duration':0x0}),_0x5a49a9['id']===u['CollaborationUIEventId'][_0x313cfb(0x283)]&&this['_messageService']['show']({'type':p['MessageType'][_0x313cfb(0x320)],'content':this['_localeService']['t'](_0x313cfb(0x2ae))+'('+_0x5a49a9[_0x313cfb(0x349)]+')'}),_0x5a49a9['id']===u['CollaborationUIEventId'][_0x313cfb(0x3de)]&&this[_0x313cfb(0x243)][_0x313cfb(0x3c3)]({'type':p[_0x313cfb(0x2c4)]['Warning'],'content':this[_0x313cfb(0x214)]['t'](_0x5a49a9[_0x313cfb(0x349)]||'')}),_0x5a49a9['id']===u[_0x313cfb(0x292)]['SOCKET_FAILED_RETRY']&&this[_0x313cfb(0x243)][_0x313cfb(0x3c3)]({'type':p['MessageType']['Warning'],'content':this[_0x313cfb(0x214)]['t'](_0x313cfb(0x230))}),_0x5a49a9['id']===u[_0x313cfb(0x292)][_0x313cfb(0x2c9)]&&this['_messageService'][_0x313cfb(0x3c3)]({'type':p[_0x313cfb(0x2c4)][_0x313cfb(0x320)],'content':this[_0x313cfb(0x214)]['t'](_0x313cfb(0x338))}),_0x5a49a9['id']===u[_0x313cfb(0x292)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x313cfb(0x243)]['show']({'type':p[_0x313cfb(0x2c4)][_0x313cfb(0x320)],'content':this[_0x313cfb(0x214)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x322ca1(0x256)]),y(0x1,u[_0x322ca1(0x3f7)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x322ca1(0x1ce)]),y(0x4,O[_0x322ca1(0x339)]),y(0x5,a['Inject'](a[_0x322ca1(0x3cf)]))],Z);var jt=Object[_0x322ca1(0x258)],kt=(_0x329036,_0x1a18ce,_0xd872aa,_0x1cafac)=>{const _0x150793=_0x322ca1;for(var _0x5b24d0=_0x1cafac>0x1?void 0x0:_0x1cafac?jt(_0x1a18ce,_0xd872aa):_0x1a18ce,_0xc93c54=_0x329036[_0x150793(0x3f6)]-0x1,_0x2aa485;_0xc93c54>=0x0;_0xc93c54--)(_0x2aa485=_0x329036[_0xc93c54])&&(_0x5b24d0=_0x2aa485(_0x5b24d0)||_0x5b24d0);return _0x5b24d0;},z=(_0x558f74,_0x30992d)=>(_0x1d49d8,_0x4e6932)=>_0x30992d(_0x1d49d8,_0x4e6932,_0x558f74);let Q=class extends a[_0x322ca1(0x2c7)]{constructor(_0x30fe22,_0x3695df,_0x5399cb,_0x42d1f4){const _0x19f751=_0x322ca1;super(),_(this,'_memberID'),(this[_0x19f751(0x2bc)]=_0x30fe22,this['_httpService']=_0x3695df,this[_0x19f751(0x319)]=_0x5399cb,this[_0x19f751(0x29f)]=_0x42d1f4,this[_0x19f751(0x1c5)]());}['_init'](){const _0x32f3f4=_0x322ca1;this[_0x32f3f4(0x337)](),this[_0x32f3f4(0x276)](),this['_monkeyPatchLogService'](),this[_0x32f3f4(0x299)]();}['_initUserListener'](){const _0x1cc625=_0x322ca1;this[_0x1cc625(0x2f4)](this[_0x1cc625(0x29f)][_0x1cc625(0x233)][_0x1cc625(0x375)](_0x47db8b=>{const _0x1c59ea=_0x1cc625;this[_0x1c59ea(0x3d7)]=_0x47db8b==null?void 0x0:_0x47db8b['memberID'];}));}['_initWindowErrorListener'](){const _0x4d5452=_0x322ca1,_0x82b8a0=_0x5abaac=>{const _0x1a2cdb=_0xd0d7;var _0x368c99;this['_uploadLog']('error',_0x1a2cdb(0x41f)+_0x5abaac[_0x1a2cdb(0x355)]+_0x1a2cdb(0x34d)+_0x5abaac['filename']+':'+_0x5abaac[_0x1a2cdb(0x362)]+':'+_0x5abaac['colno']+'\x0a'+(((_0x368c99=_0x5abaac[_0x1a2cdb(0x430)])==null?void 0x0:_0x368c99['stack'])||''));};window[_0x4d5452(0x260)](_0x4d5452(0x430),_0x82b8a0),this[_0x4d5452(0x2f4)](()=>{const _0x25aaf9=_0x4d5452;window[_0x25aaf9(0x30a)](_0x25aaf9(0x430),_0x82b8a0);});}[_0x322ca1(0x276)](){const _0x39372d=_0x322ca1,_0x129bc7=_0x11d7d7=>{const _0x285362=_0xd0d7;this['_uploadLog'](_0x285362(0x430),_0x285362(0x2cf)+_0x11d7d7[_0x285362(0x484)]);};window[_0x39372d(0x260)]('unhandledrejection',_0x129bc7),this['disposeWithMe'](()=>{const _0x5d673f=_0x39372d;window[_0x5d673f(0x30a)](_0x5d673f(0x255),_0x129bc7);});}['_monkeyPatchLogService'](){const _0xb2c458=_0x322ca1,_0x386445=this[_0xb2c458(0x319)]['error'][_0xb2c458(0x3af)](this[_0xb2c458(0x319)]);this[_0xb2c458(0x319)][_0xb2c458(0x430)]=(..._0x1b4219)=>{const _0x9ca4af=_0xb2c458,_0x1126d1=_0x1b4219[_0x9ca4af(0x445)](_0x221d32=>_0x221d32 instanceof Error?_0x221d32[_0x9ca4af(0x355)]+'\x0a'+_0x221d32['stack']:String(_0x221d32))[_0x9ca4af(0x366)]('\x20');this[_0x9ca4af(0x297)]('error',_0x9ca4af(0x2d8)+_0x1126d1),_0x386445(..._0x1b4219);},this[_0xb2c458(0x2f4)](()=>{const _0x240dfd=_0xb2c458;this[_0x240dfd(0x319)][_0x240dfd(0x430)]=_0x386445;});}['_uploadLog'](_0x599660,_0xb1b46){const _0x2f97b4=_0x322ca1;try{const _0x199b45={'userId':this[_0x2f97b4(0x3d7)],'logLabel':_0x599660,'content':_0xb1b46};this[_0x2f97b4(0x3f1)][_0x2f97b4(0x275)](_0x2f97b4(0x421),{'body':_0x199b45})[_0x2f97b4(0x236)](()=>{});}catch{}}};function _0xd0d7(_0x2a91f7,_0x27fb1c){_0x2a91f7=_0x2a91f7-0x1c5;const _0x2ccd05=_0x2ccd();let _0xd0d754=_0x2ccd05[_0x2a91f7];return _0xd0d754;}Q=kt([z(0x0,a[_0x322ca1(0x254)](a['Injector'])),z(0x1,a[_0x322ca1(0x254)](x['HTTPService'])),z(0x2,a[_0x322ca1(0x1df)]),z(0x3,a[_0x322ca1(0x254)](u[_0x322ca1(0x238)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x322ca1(0x258)],Wt=(_0x497f4f,_0x4551a2,_0x4a63e1,_0x56d98b)=>{const _0x4a101c=_0x322ca1;for(var _0x497a08=_0x56d98b>0x1?void 0x0:_0x56d98b?Ht(_0x4551a2,_0x4a63e1):_0x4551a2,_0x24e03b=_0x497f4f[_0x4a101c(0x3f6)]-0x1,_0x387dc3;_0x24e03b>=0x0;_0x24e03b--)(_0x387dc3=_0x497f4f[_0x24e03b])&&(_0x497a08=_0x387dc3(_0x497a08)||_0x497a08);return _0x497a08;},Ae=(_0x5d5f3a,_0x49ac1a)=>(_0x4a1f1f,_0x4134ce)=>_0x49ac1a(_0x4a1f1f,_0x4134ce,_0x5d5f3a);let ee=class{constructor(_0x57c3d5,_0x169e0c){const _0xa19ced=_0x322ca1;this[_0xa19ced(0x325)]=_0x57c3d5,this[_0xa19ced(0x39f)]=_0x169e0c;}[_0x322ca1(0x32e)](_0x4001fd){const _0x19cc1b=_0x322ca1;this[_0x19cc1b(0x1ef)](_0x4001fd),this['_transformPreviousActiveRange'](_0x4001fd);}[_0x322ca1(0x424)](_0x46e91f){const _0x10f7fa=_0x322ca1,{unitID:_0x203e63}=_0x46e91f,_0x20be6e=this[_0x10f7fa(0x39f)][_0x10f7fa(0x3a4)](_0x203e63)['with'](T[_0x10f7fa(0x38d)]),{redoCache:_0x151156}=_0x20be6e['getUndoRedoMutationParamsCache']();if(_0x151156[_0x10f7fa(0x3f6)]===0x0)return _0x46e91f;let _0x4b838e=a['Tools']['deepClone'](_0x46e91f['mutations'][0x0]);for(let _0x42f07e=0x0;_0x42f07e<_0x151156[_0x10f7fa(0x3f6)];_0x42f07e++){const _0x42b139={'id':_0x10f7fa(0x3ba),'params':{..._0x151156[_0x42f07e]}},_0x473b7f=this[_0x10f7fa(0x325)]['transformMutation'](_0x4b838e,_0x42b139,!0x1);if(g[_0x10f7fa(0x361)](_0x473b7f))throw _0x473b7f['error'];_0x4b838e=_0x473b7f[_0x10f7fa(0x406)];}return{...a['Tools'][_0x10f7fa(0x45e)](_0x46e91f),'mutations':[_0x4b838e]};}[_0x322ca1(0x1ef)](_0x1636ea){const _0x3207c1=_0x322ca1,{unitID:_0x5ec47d}=_0x1636ea,_0x2e7c72=this['_renderManagerService'][_0x3207c1(0x3a4)](_0x5ec47d)[_0x3207c1(0x301)](T[_0x3207c1(0x38d)]),{undoCache:_0x4d51d7,redoCache:_0x577f88}=_0x2e7c72['getUndoRedoMutationParamsCache']();if(_0x4d51d7[_0x3207c1(0x3f6)]===0x0||_0x577f88[_0x3207c1(0x3f6)]===0x0)return;const _0x3e6bb8=[],_0x31ae6d=[];let _0x3e89d1=a['Tools'][_0x3207c1(0x45e)](_0x1636ea['mutations'][0x0]),_0x5e2e62=a[_0x3207c1(0x451)][_0x3207c1(0x45e)](_0x1636ea['mutations'][0x0]);for(let _0x43261f=_0x4d51d7[_0x3207c1(0x3f6)]-0x1;_0x43261f>=0x0;_0x43261f--){const _0x445123={'id':_0x3207c1(0x3ba),'params':{..._0x4d51d7[_0x43261f]}},_0x291497={'id':_0x3207c1(0x3ba),'params':{..._0x577f88[_0x43261f]}},_0x5cf624=this[_0x3207c1(0x325)][_0x3207c1(0x388)](_0x3e89d1,_0x445123,!0x1),_0x3a60c4=this[_0x3207c1(0x325)][_0x3207c1(0x388)](_0x5e2e62,_0x291497,!0x1);if(g[_0x3207c1(0x361)](_0x5cf624))throw _0x5cf624[_0x3207c1(0x430)];if(g[_0x3207c1(0x361)](_0x3a60c4))throw _0x3a60c4[_0x3207c1(0x430)];_0x3e6bb8[_0x3207c1(0x44c)](_0x5cf624[_0x3207c1(0x458)][_0x3207c1(0x380)]),_0x31ae6d[_0x3207c1(0x44c)](_0x3a60c4['m2Prime']['params']),_0x3e89d1=_0x5cf624[_0x3207c1(0x406)],_0x5e2e62=_0x3a60c4[_0x3207c1(0x406)];}_0x2e7c72[_0x3207c1(0x498)]({'undoCache':_0x3e6bb8,'redoCache':_0x31ae6d});}[_0x322ca1(0x439)](_0x259e9e){const _0x32f015=_0x322ca1,{unitID:_0x5c780f}=_0x259e9e,_0x3a2717=this[_0x32f015(0x39f)][_0x32f015(0x3a4)](_0x5c780f)['with'](T[_0x32f015(0x38d)]),_0x5a3c06=_0x3a2717[_0x32f015(0x332)]();if(_0x5a3c06==null)return;const _0x37f7ba=[{'id':_0x32f015(0x3ba),'params':{'unitId':_0x259e9e[_0x32f015(0x383)],'actions':null,'textRanges':[_0x5a3c06]}}],_0x2f1897=this['_transformService'][_0x32f015(0x419)](_0x259e9e,_0x37f7ba);if(!g[_0x32f015(0x44a)](_0x2f1897))throw _0x2f1897['error'];const _0x576146=_0x2f1897[_0x32f015(0x458)][0x0][_0x32f015(0x380)][_0x32f015(0x378)];Array[_0x32f015(0x244)](_0x576146)&&_0x576146['length']&&_0x3a2717[_0x32f015(0x37b)](_0x576146[0x0]);}};ee=Wt([Ae(0x0,g[_0x322ca1(0x3b7)]),Ae(0x1,C[_0x322ca1(0x2d2)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x1b0939,_0xd68103,_0x30ae7a,_0x23b6f1)=>{const _0x17821a=_0x322ca1;for(var _0x505759=_0x23b6f1>0x1?void 0x0:_0x23b6f1?Vt(_0xd68103,_0x30ae7a):_0xd68103,_0x53a7d0=_0x1b0939[_0x17821a(0x3f6)]-0x1,_0x1e159f;_0x53a7d0>=0x0;_0x53a7d0--)(_0x1e159f=_0x1b0939[_0x53a7d0])&&(_0x505759=_0x1e159f(_0x505759)||_0x505759);return _0x505759;},Ie=(_0x113ff6,_0x111bdf)=>(_0x3a9cb3,_0x184b35)=>_0x111bdf(_0x3a9cb3,_0x184b35,_0x113ff6);let te=class{constructor(_0x213c60,_0x4c0daf,_0x577f3d){const _0x165a64=_0x322ca1;this[_0x165a64(0x2bc)]=_0x213c60,this[_0x165a64(0x325)]=_0x4c0daf,this[_0x165a64(0x200)]=_0x577f3d;}[_0x322ca1(0x284)](_0x529ea3){const _0x3c19a0=_0x322ca1;this[_0x3c19a0(0x1dd)](_0x529ea3);}['transformRemoteChangeset'](_0x22f785){const _0x10f617=_0x322ca1,{unitID:_0x4d4107}=_0x22f785,{collaboration:_0x1e2fd6}=this[_0x10f617(0x200)][_0x10f617(0x32b)](_0x4d4107);if(_0x1e2fd6[_0x10f617(0x3f6)]===0x0)return _0x22f785;let _0x2bec26=a[_0x10f617(0x451)][_0x10f617(0x45e)](_0x22f785[_0x10f617(0x262)][0x0]);for(let _0x2e7e57=0x0;_0x2e7e57<_0x1e2fd6['length'];_0x2e7e57++){const _0x59b0fe={'id':_0x10f617(0x3ba),'params':{'unitId':_0x1e2fd6[_0x2e7e57]['unitId'],..._0x1e2fd6[_0x2e7e57][_0x10f617(0x2bb)]}},_0x2ed2a5=this[_0x10f617(0x325)][_0x10f617(0x388)](_0x2bec26,_0x59b0fe,!0x1);if(g['isTransformMutationFailure'](_0x2ed2a5))throw _0x2ed2a5[_0x10f617(0x430)];_0x2bec26=_0x2ed2a5[_0x10f617(0x406)];}return{...a[_0x10f617(0x451)][_0x10f617(0x45e)](_0x22f785),'mutations':[_0x2bec26]};}[_0x322ca1(0x1dd)](_0x2b3b79){const _0x52fd8a=_0x322ca1,{unitID:_0x4174de}=_0x2b3b79,{history:_0x505662,collaboration:_0x35e03a}=this[_0x52fd8a(0x200)]['getStateCache'](_0x4174de);if(_0x505662[_0x52fd8a(0x3f6)]===0x0&&_0x35e03a[_0x52fd8a(0x3f6)]===0x0)return;const _0xa31b2b=[],_0x42f2b5=[];let _0x40c4eb=a[_0x52fd8a(0x451)]['deepClone'](_0x2b3b79[_0x52fd8a(0x262)][0x0]),_0x843784=a[_0x52fd8a(0x451)][_0x52fd8a(0x45e)](_0x2b3b79[_0x52fd8a(0x262)][0x0]);for(let _0x7b4cd0=_0x505662[_0x52fd8a(0x3f6)]-0x1;_0x7b4cd0>=0x0;_0x7b4cd0--){const _0x34b902={'id':_0x52fd8a(0x3ba),'params':{'unitId':_0x505662[_0x7b4cd0][_0x52fd8a(0x318)],..._0x505662[_0x7b4cd0][_0x52fd8a(0x2ca)]}},_0x4fca44={'id':_0x52fd8a(0x3ba),'params':{'unitId':_0x505662[_0x7b4cd0][_0x52fd8a(0x318)],..._0x505662[_0x7b4cd0][_0x52fd8a(0x2bb)]}},_0x490179=this['_transformService'][_0x52fd8a(0x388)](_0x40c4eb,_0x34b902,!0x1),_0x1e597e=this[_0x52fd8a(0x325)][_0x52fd8a(0x388)](_0x843784,_0x4fca44,!0x1);if(g['isTransformMutationFailure'](_0x490179))throw _0x490179[_0x52fd8a(0x430)];if(g[_0x52fd8a(0x361)](_0x1e597e))throw _0x1e597e[_0x52fd8a(0x430)];_0xa31b2b[_0x52fd8a(0x44c)]({..._0x505662[_0x7b4cd0],'undoState':_0x490179[_0x52fd8a(0x458)][_0x52fd8a(0x380)],'redoState':_0x1e597e[_0x52fd8a(0x458)][_0x52fd8a(0x380)]}),_0x40c4eb=_0x490179[_0x52fd8a(0x406)],_0x843784=_0x1e597e[_0x52fd8a(0x406)];}_0x40c4eb=a[_0x52fd8a(0x451)]['deepClone'](_0x2b3b79['mutations'][0x0]),_0x843784=a[_0x52fd8a(0x451)][_0x52fd8a(0x45e)](_0x2b3b79[_0x52fd8a(0x262)][0x0]);for(let _0x3c3119=_0x35e03a['length']-0x1;_0x3c3119>=0x0;_0x3c3119--){const _0x2c71ac={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x35e03a[_0x3c3119]['unitId'],..._0x35e03a[_0x3c3119][_0x52fd8a(0x2ca)]}},_0x153b59={'id':_0x52fd8a(0x3ba),'params':{'unitId':_0x35e03a[_0x3c3119][_0x52fd8a(0x318)],..._0x35e03a[_0x3c3119]['redoState']}},_0x104630=this['_transformService'][_0x52fd8a(0x388)](_0x40c4eb,_0x2c71ac,!0x1),_0x2bed=this['_transformService'][_0x52fd8a(0x388)](_0x843784,_0x153b59,!0x1);if(g[_0x52fd8a(0x361)](_0x104630))throw _0x104630[_0x52fd8a(0x430)];if(g[_0x52fd8a(0x361)](_0x2bed))throw _0x2bed[_0x52fd8a(0x430)];_0x42f2b5['unshift']({..._0x35e03a[_0x3c3119],'undoState':_0x104630[_0x52fd8a(0x458)][_0x52fd8a(0x380)],'redoState':_0x2bed[_0x52fd8a(0x458)][_0x52fd8a(0x380)]}),_0x40c4eb=_0x104630[_0x52fd8a(0x406)],_0x843784=_0x2bed[_0x52fd8a(0x406)];}this[_0x52fd8a(0x200)][_0x52fd8a(0x415)](_0x4174de,{'history':_0xa31b2b,'collaboration':_0x42f2b5});}};te=Gt([Ie(0x0,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),Ie(0x1,g[_0x322ca1(0x3b7)]),Ie(0x2,a[_0x322ca1(0x254)](T[_0x322ca1(0x247)]))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x315140,_0x146693,_0x53639a,_0x20c2d3)=>{for(var _0x2b4074=_0x20c2d3>0x1?void 0x0:_0x20c2d3?Xt(_0x146693,_0x53639a):_0x146693,_0x3f2497=_0x315140['length']-0x1,_0x3047ba;_0x3f2497>=0x0;_0x3f2497--)(_0x3047ba=_0x315140[_0x3f2497])&&(_0x2b4074=_0x3047ba(_0x2b4074)||_0x2b4074);return _0x2b4074;},Pe=(_0x136633,_0x5edf77)=>(_0x2a1a61,_0x2efa2f)=>_0x5edf77(_0x2a1a61,_0x2efa2f,_0x136633);let se=class{constructor(_0x42bf04,_0x46334b){const _0x306eed=_0x322ca1;this[_0x306eed(0x2bc)]=_0x42bf04,this[_0x306eed(0x325)]=_0x46334b;}['transformSelections'](_0x1de8b7){const _0x176a49=_0x322ca1;var _0x23852d;const _0x6ba719=this[_0x176a49(0x2bc)][_0x176a49(0x442)](V[_0x176a49(0x206)]),_0x317971=(_0x23852d=_0x6ba719[_0x176a49(0x308)]())!=null?_0x23852d:[];if(_0x317971['length']===0x0)return;const _0x8f0a9=_0x1de8b7['unitID'],_0x16cd79=[{'id':_0x176a49(0x3ba),'params':{'unitId':_0x8f0a9,'actions':null,'textRanges':_0x317971}}],_0x5eced6=this[_0x176a49(0x325)][_0x176a49(0x419)](_0x1de8b7,_0x16cd79);if(!g[_0x176a49(0x44a)](_0x5eced6))throw _0x5eced6[_0x176a49(0x430)];const _0x4119ef=_0x5eced6[_0x176a49(0x458)][0x0][_0x176a49(0x380)]['textRanges'];Array[_0x176a49(0x244)](_0x4119ef)&&_0x4119ef[_0x176a49(0x3f6)]&&_0x6ba719[_0x176a49(0x27c)](_0x4119ef,{'unitId':_0x8f0a9,'subUnitId':_0x8f0a9},!0x1);}};se=Kt([Pe(0x0,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),Pe(0x1,g[_0x322ca1(0x3b7)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x158992,_0x3bfcc9,_0x17df07,_0x26ec08)=>{const _0x169d1f=_0x322ca1;for(var _0x778ac3=_0x26ec08>0x1?void 0x0:_0x26ec08?qt(_0x3bfcc9,_0x17df07):_0x3bfcc9,_0x47912d=_0x158992[_0x169d1f(0x3f6)]-0x1,_0x2ba3cb;_0x47912d>=0x0;_0x47912d--)(_0x2ba3cb=_0x158992[_0x47912d])&&(_0x778ac3=_0x2ba3cb(_0x778ac3)||_0x778ac3);return _0x778ac3;},N=(_0x2a9cba,_0x30e226)=>(_0x33454d,_0x58da64)=>_0x30e226(_0x33454d,_0x58da64,_0x2a9cba);let ie=class extends a[_0x322ca1(0x2c7)]{constructor(_0xc6025e,_0x4c4416,_0x293450,_0x2853a8,_0x481554,_0x454cdb,_0x119e92,_0x13a791){const _0x2c9677=_0x322ca1;super(),_(this,_0x2c9677(0x45b),new I[(_0x2c9677(0x3b4))](u[_0x2c9677(0x3ed)][_0x2c9677(0x1e2)])),(this['_docStateChangeManagerService']=_0xc6025e,this[_0x2c9677(0x494)]=_0x4c4416,this['_docTransformIMECacheService']=_0x293450,this['_docTransformStateCacheService']=_0x2853a8,this['_docTransformSelectionsService']=_0x481554,this[_0x2c9677(0x3e4)]=_0x454cdb,this[_0x2c9677(0x243)]=_0x119e92,this[_0x2c9677(0x214)]=_0x13a791,this[_0x2c9677(0x3db)]());}[_0x322ca1(0x3db)](){const _0x32c1a2=_0x322ca1;this[_0x32c1a2(0x2f4)](this[_0x32c1a2(0x494)]['entityInit$']['subscribe'](_0x1fe786=>{const _0x4ae079=_0x32c1a2,_0xbb3959=this[_0x4ae079(0x200)][_0x4ae079(0x24b)][_0x4ae079(0x375)](_0x587d7f=>{const _0x54e90e=_0x4ae079;if(_0x587d7f==null)return;const {unitId:_0x26ab32,redoState:_0xd6243f,commandId:_0x31b7aa}=_0x587d7f;if(_0x26ab32!==_0x1fe786[_0x54e90e(0x383)])return;const _0x5cd353={'id':_0x31b7aa,'type':a[_0x54e90e(0x417)][_0x54e90e(0x257)],'params':{'unitId':_0x26ab32,'actions':_0xd6243f[_0x54e90e(0x211)],'textRanges':null}};_0x1fe786[_0x54e90e(0x1e5)](_0x5cd353);});if(_0x1fe786[_0x4ae079(0x2f4)](_0xbb3959),_0x1fe786 instanceof u[_0x4ae079(0x3f5)]){const _0x2a5b07={'onTransformIME':_0x20a704=>this[_0x4ae079(0x22f)]['transformIMECache'](_0x20a704),'onTransformState':_0x16de7b=>this[_0x4ae079(0x487)][_0x4ae079(0x284)](_0x16de7b),'onTransformSelections':_0x502061=>this[_0x4ae079(0x1d1)][_0x4ae079(0x3d5)](_0x502061),'onSyncEditingCollabCursor':_0x480968=>this[_0x4ae079(0x3e4)]['syncEditingCollabCursor'](_0x480968),'onTransformRemoteChangesetByIMECache':_0x198fce=>this[_0x4ae079(0x22f)][_0x4ae079(0x424)](_0x198fce),'onTransformRemoteChangesetByStateCache':_0x379f13=>this['_docTransformStateCacheService'][_0x4ae079(0x424)](_0x379f13)};_0x1fe786['addHandlerCallback'](_0x2a5b07);}}));}};ie=zt([N(0x0,a[_0x322ca1(0x254)](T['DocStateChangeManagerService'])),N(0x1,a[_0x322ca1(0x254)](u[_0x322ca1(0x3e2)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x322ca1(0x254)](te)),N(0x4,a['Inject'](se)),N(0x5,a[_0x322ca1(0x254)](be)),N(0x6,O[_0x322ca1(0x1ce)]),N(0x7,a[_0x322ca1(0x254)](a[_0x322ca1(0x3cf)]))],ie);var G=(_0x11f7ce=>(_0x11f7ce[_0x11f7ce['UNDEFINED']=0x0]=_0x322ca1(0x46d),_0x11f7ce[_0x11f7ce['OK']=0x1]='OK',_0x11f7ce[_0x11f7ce[_0x322ca1(0x393)]=0x2]=_0x322ca1(0x393),_0x11f7ce[_0x11f7ce['PERMISSION_DENIED']=0x3]=_0x322ca1(0x2a1),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2e8)]=0x4]=_0x322ca1(0x2e8),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2cb)]=0x5]=_0x322ca1(0x2cb),_0x11f7ce[_0x11f7ce[_0x322ca1(0x35b)]=0x6]=_0x322ca1(0x35b),_0x11f7ce[_0x11f7ce[_0x322ca1(0x323)]=0x7]=_0x322ca1(0x323),_0x11f7ce[_0x11f7ce['TOO_MANY_REQUESTS']=0x8]=_0x322ca1(0x411),_0x11f7ce[_0x11f7ce[_0x322ca1(0x420)]=0x9]=_0x322ca1(0x420),_0x11f7ce[_0x11f7ce[_0x322ca1(0x21b)]=0xa]=_0x322ca1(0x21b),_0x11f7ce[_0x11f7ce['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x11f7ce[_0x11f7ce[_0x322ca1(0x39c)]=0xc]=_0x322ca1(0x39c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x25b)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x11f7ce[_0x11f7ce['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x322ca1(0x2fd),_0x11f7ce[_0x11f7ce[_0x322ca1(0x311)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x11f7ce[_0x11f7ce[_0x322ca1(0x48c)]=0x10]=_0x322ca1(0x48c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3b0)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x11f7ce[_0x11f7ce[_0x322ca1(0x47a)]=0x65]=_0x322ca1(0x47a),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2fe)]=0xc9]=_0x322ca1(0x2fe),_0x11f7ce[_0x11f7ce[_0x322ca1(0x224)]=0xca]=_0x322ca1(0x224),_0x11f7ce[_0x11f7ce[_0x322ca1(0x363)]=0x1389]=_0x322ca1(0x363),_0x11f7ce[_0x11f7ce[_0x322ca1(0x480)]=0x1771]=_0x322ca1(0x480),_0x11f7ce[_0x11f7ce[_0x322ca1(0x23c)]=0x1772]=_0x322ca1(0x23c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x30c)]=0x1773]=_0x322ca1(0x30c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x29d)]=0x1b59]=_0x322ca1(0x29d),_0x11f7ce[_0x11f7ce[_0x322ca1(0x1de)]=0x1b5a]=_0x322ca1(0x1de),_0x11f7ce[_0x11f7ce[_0x322ca1(0x462)]=0x1b5b]=_0x322ca1(0x462),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2cd)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x11f7ce[_0x11f7ce[_0x322ca1(0x29e)]=0x1b5d]=_0x322ca1(0x29e),_0x11f7ce[_0x11f7ce['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x11f7ce[_0x11f7ce[_0x322ca1(0x1f3)]=0x2329]=_0x322ca1(0x1f3),_0x11f7ce[_0x11f7ce[_0x322ca1(0x450)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x11f7ce[_0x11f7ce[_0x322ca1(0x43c)]=0x232b]=_0x322ca1(0x43c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2b1)]=0x232c]=_0x322ca1(0x2b1),_0x11f7ce[_0x11f7ce[_0x322ca1(0x469)]=0x232d]=_0x322ca1(0x469),_0x11f7ce[_0x11f7ce['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x11f7ce[_0x11f7ce[_0x322ca1(0x1f8)]=0x2712]=_0x322ca1(0x1f8),_0x11f7ce[_0x11f7ce[_0x322ca1(0x475)]=0x2713]=_0x322ca1(0x475),_0x11f7ce[_0x11f7ce[_0x322ca1(0x410)]=0x2714]=_0x322ca1(0x410),_0x11f7ce[_0x11f7ce['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x322ca1(0x41c),_0x11f7ce[_0x11f7ce['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x322ca1(0x229),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3a3)]=0x271c]=_0x322ca1(0x3a3),_0x11f7ce[_0x11f7ce['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x322ca1(0x42f),_0x11f7ce[_0x11f7ce[_0x322ca1(0x440)]=0x271e]=_0x322ca1(0x440),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3ad)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x11f7ce[_0x11f7ce[_0x322ca1(0x45f)]=0x2720]=_0x322ca1(0x45f),_0x11f7ce[_0x11f7ce[_0x322ca1(0x23e)]=0x2af9]=_0x322ca1(0x23e),_0x11f7ce[_0x11f7ce[_0x322ca1(0x348)]=0x2ee1]=_0x322ca1(0x348),_0x11f7ce[_0x11f7ce[_0x322ca1(0x401)]=0x2ee2]='INVALID_INVITE_CODE',_0x11f7ce[_0x11f7ce['INVITE_CODE_REQUIRED']=0x2ee3]=_0x322ca1(0x416),_0x11f7ce[_0x11f7ce['USER_NOT_INVITED_CODE']=0x2ee4]=_0x322ca1(0x36d),_0x11f7ce[_0x11f7ce[_0x322ca1(0x203)]=0x2ee5]=_0x322ca1(0x203),_0x11f7ce[_0x11f7ce[_0x322ca1(0x1f4)]=0x32c9]=_0x322ca1(0x1f4),_0x11f7ce[_0x11f7ce[_0x322ca1(0x431)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x11f7ce[_0x11f7ce[_0x322ca1(0x30f)]=0x32cb]=_0x322ca1(0x30f),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2eb)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x11f7ce[_0x11f7ce[_0x322ca1(0x2f9)]=0x36b2]=_0x322ca1(0x2f9),_0x11f7ce[_0x11f7ce[_0x322ca1(0x413)]=0x36b3]=_0x322ca1(0x413),_0x11f7ce[_0x11f7ce[_0x322ca1(0x42b)]=0x36b4]=_0x322ca1(0x42b),_0x11f7ce[_0x11f7ce['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x11f7ce[_0x11f7ce[_0x322ca1(0x2d5)]=0x36b6]=_0x322ca1(0x2d5),_0x11f7ce[_0x11f7ce[_0x322ca1(0x38b)]=0x36b7]=_0x322ca1(0x38b),_0x11f7ce[_0x11f7ce[_0x322ca1(0x1d0)]=0x36b8]=_0x322ca1(0x1d0),_0x11f7ce[_0x11f7ce['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x322ca1(0x326),_0x11f7ce[_0x11f7ce['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x322ca1(0x428),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2e9)]=0x3717]=_0x322ca1(0x2e9),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3b8)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x11f7ce[_0x11f7ce['REDEMPTION_INVALID_CODE']=0x3a99]=_0x322ca1(0x423),_0x11f7ce[_0x11f7ce['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x322ca1(0x22c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3fa)]=0x3a9b]=_0x322ca1(0x3fa),_0x11f7ce[_0x11f7ce[_0x322ca1(0x277)]=0x3a9c]=_0x322ca1(0x277),_0x11f7ce[_0x11f7ce['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x322ca1(0x212),_0x11f7ce[_0x11f7ce['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x322ca1(0x36f),_0x11f7ce[_0x11f7ce['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x322ca1(0x457),_0x11f7ce[_0x11f7ce[_0x322ca1(0x461)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x11f7ce[_0x11f7ce[_0x322ca1(0x1f5)]=-0x1]=_0x322ca1(0x1f5),_0x11f7ce))(G||{});function Jt(_0x218f04){const _0x1eb821=_0x322ca1;var _0x31a4a5,_0x45a0ff;const _0x247aaa=(_0x31a4a5=_0x218f04[_0x1eb821(0x433)])==null?void 0x0:_0x31a4a5[_0x1eb821(0x359)],_0x3d8791=((_0x45a0ff=_0x218f04[_0x1eb821(0x433)])==null?void 0x0:_0x45a0ff[_0x1eb821(0x2d0)])||0x0;return _0x247aaa===B[_0x1eb821(0x2ab)][_0x1eb821(0x465)]&&_0x3d8791>0x0;}function Zt(_0x55fa68){const _0x2a6c7f=_0x322ca1;return _0x55fa68[_0x2a6c7f(0x2e0)]===B['FormulaExecutedStateType'][_0x2a6c7f(0x328)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x456399,_0x3ab7c3,_0xb359e1,_0x1d780f)=>{const _0x890271=_0x322ca1;for(var _0x2b625b=_0x1d780f>0x1?void 0x0:_0x1d780f?Qt(_0x3ab7c3,_0xb359e1):_0x3ab7c3,_0x1f74c1=_0x456399[_0x890271(0x3f6)]-0x1,_0x599168;_0x1f74c1>=0x0;_0x1f74c1--)(_0x599168=_0x456399[_0x1f74c1])&&(_0x2b625b=_0x599168(_0x2b625b)||_0x2b625b);return _0x2b625b;},L=(_0xdb3890,_0xc7cdf)=>(_0x502be6,_0xd0b344)=>_0xc7cdf(_0x502be6,_0xd0b344,_0xdb3890);const ts=_0x322ca1(0x33b),ss='/universer-api/license/formula/limit/start',is='/universer-api/license/formula/limit/done';let ne=class extends a['Disposable']{constructor(_0x287789,_0x2981f5,_0x3d63ce,_0xb75f8e,_0x2daac4,_0x46b501,_0x269101){const _0x4d26fd=_0x322ca1;super(),_(this,_0x4d26fd(0x40e),null),_(this,_0x4d26fd(0x466),0x0),_(this,_0x4d26fd(0x288),0x0),_(this,_0x4d26fd(0x2b0),[]),_(this,_0x4d26fd(0x46b),0x0),(this['_messageService']=_0x287789,this[_0x4d26fd(0x38a)]=_0x2981f5,this[_0x4d26fd(0x479)]=_0x3d63ce,this[_0x4d26fd(0x3f1)]=_0xb75f8e,this[_0x4d26fd(0x234)]=_0x2daac4,this[_0x4d26fd(0x319)]=_0x46b501,this['_localeService']=_0x269101,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0x1fdab9=_0x322ca1;this[_0x1fdab9(0x2f4)](this['_commandService'][_0x1fdab9(0x264)]((_0x5c6ee0,_0x27f097)=>{const _0x53e87a=_0x1fdab9;var _0x1e5dd7;if(_0x5c6ee0['id']!==B[_0x53e87a(0x3cc)]['id'])return;const _0x627206=_0x5c6ee0[_0x53e87a(0x380)];if(!this['_hasFormulaInDirtyRanges']((_0x1e5dd7=_0x627206['dirtyRanges'])!=null?_0x1e5dd7:[]))return;if(!this[_0x53e87a(0x492)]())throw this[_0x53e87a(0x391)](_0x5c6ee0,_0x27f097),this[_0x53e87a(0x3d1)](),new a[(_0x53e87a(0x28a))]();})),this['disposeWithMe'](this[_0x1fdab9(0x38a)]['onCommandExecuted']((_0x5b9a16,_0x570639)=>{const _0x20201e=_0x1fdab9;if(_0x5b9a16['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x585a51=_0x5b9a16['params'];if(Jt(_0x585a51)){const _0x2466fa=a[_0x20201e(0x25f)]();this[_0x20201e(0x2b0)][_0x20201e(0x47b)](_0x2466fa),this['_startCalculationLimit'](_0x2466fa);}else{if(Zt(_0x585a51)&&this['_taskIds'][_0x20201e(0x3f6)]>0x0){const _0x1120db=this[_0x20201e(0x2b0)]['shift']();this[_0x20201e(0x313)](_0x1120db);}}}));}[_0x322ca1(0x290)](){const _0x202cf8=_0x322ca1;super[_0x202cf8(0x290)](),this[_0x202cf8(0x26e)](),this[_0x202cf8(0x2b0)]=[],this[_0x202cf8(0x288)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x14da92,_0x2c8df8){const _0x304b68=_0x322ca1;for(let _0x41b83d=0x0;_0x41b83d<0x1e;_0x41b83d++)try{if(await this[_0x304b68(0x496)](),this[_0x304b68(0x492)]()){this[_0x304b68(0x35e)](_0x14da92,_0x2c8df8),this[_0x304b68(0x243)]['show']({'content':this['_localeService']['t']('formula.calculation.started'),'type':p[_0x304b68(0x2c4)]['Success']});return;}await new Promise(_0x1b1696=>{const _0x44232c=_0x304b68;this['_pollingInterval']=window[_0x44232c(0x30b)](_0x1b1696,0x3e8);});}catch(_0x220433){this[_0x304b68(0x319)][_0x304b68(0x430)](_0x220433);}this[_0x304b68(0x243)]['show']({'content':this[_0x304b68(0x214)]['t'](_0x304b68(0x3f3)),'type':p[_0x304b68(0x2c4)][_0x304b68(0x320)]});}[_0x322ca1(0x35e)](_0x2ecfaa,_0x3e61f9){const _0x194eb1=_0x322ca1;try{this[_0x194eb1(0x38a)]['executeCommand'](_0x2ecfaa['id'],_0x2ecfaa[_0x194eb1(0x380)],_0x3e61f9);}catch(_0x1a84e1){this[_0x194eb1(0x319)]['error'](_0x1a84e1);}}[_0x322ca1(0x273)](_0x259604,_0x5baa62){const _0xbdc01e=_0x322ca1;_0x5baa62<this['_lastResponseTimestamp']||(this[_0xbdc01e(0x46b)]=_0x5baa62,this['_maxFormulaLimit']=Number[_0xbdc01e(0x40c)](_0x259604[_0xbdc01e(0x47f)]),this['_currentUsage']=Number[_0xbdc01e(0x40c)](_0x259604[_0xbdc01e(0x291)]));}async['_startCalculationLimit'](_0x592e66){const _0x452f7b=_0x322ca1;var _0x200445,_0x2b1ba2;const _0x3780c1=Date['now']();try{const _0x389f02=((_0x200445=this['_configService'][_0x452f7b(0x47d)](u[_0x452f7b(0x37f)]))==null?void 0x0:_0x200445['startFormulaLimitUrl'])||ss,_0x2c2125=(await this[_0x452f7b(0x3f1)][_0x452f7b(0x275)](_0x389f02,{'body':JSON[_0x452f7b(0x27b)]({'taskId':_0x592e66})}))[_0x452f7b(0x46c)];if(((_0x2b1ba2=_0x2c2125[_0x452f7b(0x430)])==null?void 0x0:_0x2b1ba2[_0x452f7b(0x463)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x2c2125[_0x452f7b(0x29a)],_0x3780c1);}catch(_0x1ff2de){this['_logService'][_0x452f7b(0x430)](_0x1ff2de);}}async[_0x322ca1(0x496)](_0x168a6e){const _0x194695=_0x322ca1;var _0x40ea22,_0x5be5dd;const _0xf5053b=Date[_0x194695(0x2ad)]();try{const _0x36306e=((_0x40ea22=this[_0x194695(0x479)][_0x194695(0x47d)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x40ea22[_0x194695(0x2bf)])||ts,_0x3b2579=_0x168a6e?_0x36306e+_0x194695(0x201)+encodeURIComponent(_0x168a6e):_0x36306e,_0x556293=(await this[_0x194695(0x3f1)][_0x194695(0x442)](_0x3b2579))['body'];if(((_0x5be5dd=_0x556293[_0x194695(0x430)])==null?void 0x0:_0x5be5dd[_0x194695(0x463)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x556293[_0x194695(0x29a)],_0xf5053b);}catch(_0x4fb988){this['_logService'][_0x194695(0x430)](_0x4fb988);}}async[_0x322ca1(0x313)](_0x475326){const _0x3c6a38=_0x322ca1;var _0xe44793,_0x1d1fcf;const _0x26e76c=Date[_0x3c6a38(0x2ad)]();try{const _0x825a7d=((_0xe44793=this['_configService']['getConfig'](u[_0x3c6a38(0x37f)]))==null?void 0x0:_0xe44793['releaseFormulaLimitUrl'])||is,_0x4d9514=(await this[_0x3c6a38(0x3f1)][_0x3c6a38(0x275)](_0x825a7d,{'body':JSON['stringify']({'taskId':_0x475326})}))[_0x3c6a38(0x46c)];if(((_0x1d1fcf=_0x4d9514['error'])==null?void 0x0:_0x1d1fcf['code'])!==G['OK'])return;this[_0x3c6a38(0x273)](_0x4d9514[_0x3c6a38(0x29a)],_0x26e76c);}catch(_0x253e47){this[_0x3c6a38(0x319)]['error'](_0x253e47);}}['_checkCalculationAvailable'](){const _0x567292=_0x322ca1;return this[_0x567292(0x466)]===0x0?!0x0:this[_0x567292(0x466)]-this[_0x567292(0x288)]>0x0;}[_0x322ca1(0x26e)](){const _0x267283=_0x322ca1;this[_0x267283(0x40e)]&&(clearTimeout(this['_pollingInterval']),this[_0x267283(0x40e)]=null);}[_0x322ca1(0x3d1)](){const _0x58b6bb=_0x322ca1;this['_messageService'][_0x58b6bb(0x3c3)]({'content':this['_localeService']['t'](_0x58b6bb(0x2b6)),'type':p['MessageType'][_0x58b6bb(0x1da)]});}[_0x322ca1(0x23f)](_0x43d3ec){const _0x12c42e=_0x322ca1;for(const _0x3c3c08 of _0x43d3ec){const {unitId:_0xeb7808,sheetId:_0x9ed4ff,range:_0x352ca9}=_0x3c3c08,_0x5504e1=this[_0x12c42e(0x234)]['getUnit'](_0xeb7808);if(!_0x5504e1)continue;const _0xce781b=_0x5504e1[_0x12c42e(0x418)](_0x9ed4ff);if(!_0xce781b)continue;const _0x2ae8e6=_0xce781b[_0x12c42e(0x1f7)]();for(let _0x41368b=_0x352ca9[_0x12c42e(0x370)];_0x41368b<=_0x352ca9[_0x12c42e(0x3aa)];_0x41368b++)for(let _0x20b11e=_0x352ca9[_0x12c42e(0x237)];_0x20b11e<=_0x352ca9['endColumn'];_0x20b11e++){const _0x2928ed=_0x2ae8e6[_0x12c42e(0x2e7)](_0x41368b,_0x20b11e);if(_0x2928ed&&(a[_0x12c42e(0x403)](_0x2928ed['f'])||a[_0x12c42e(0x389)](_0x2928ed['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x322ca1(0x1ce)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x322ca1(0x254)](x[_0x322ca1(0x43f)])),L(0x4,a[_0x322ca1(0x215)]),L(0x5,a[_0x322ca1(0x1df)]),L(0x6,a[_0x322ca1(0x254)](a['LocaleService']))],ne);var ns=Object[_0x322ca1(0x258)],rs=(_0x28f0ce,_0x54fae9,_0x5d4a29,_0x4a4853)=>{const _0x2c05c2=_0x322ca1;for(var _0x491ab0=_0x4a4853>0x1?void 0x0:_0x4a4853?ns(_0x54fae9,_0x5d4a29):_0x54fae9,_0x14c24d=_0x28f0ce[_0x2c05c2(0x3f6)]-0x1,_0x2f3cdb;_0x14c24d>=0x0;_0x14c24d--)(_0x2f3cdb=_0x28f0ce[_0x14c24d])&&(_0x491ab0=_0x2f3cdb(_0x491ab0)||_0x491ab0);return _0x491ab0;},Se=(_0x4a947c,_0x271c67)=>(_0x1f0fa9,_0x143d4e)=>_0x271c67(_0x1f0fa9,_0x143d4e,_0x4a947c);let Te=class extends a[_0x322ca1(0x2c7)]{constructor(_0x7b46e2,_0x57d2bd,_0x56161d){const _0x433dc5=_0x322ca1;super(),_(this,_0x433dc5(0x3ec),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x7b46e2,this[_0x433dc5(0x33e)]=_0x57d2bd,this[_0x433dc5(0x39a)]=_0x56161d);}['disableLocalCache'](){const _0x1b5038=_0x322ca1;this[_0x1b5038(0x40f)]=!0x0;}[_0x322ca1(0x39b)](){const _0x2c7028=_0x322ca1;this[_0x2c7028(0x40f)]=!0x1;}get[_0x322ca1(0x2e3)](){const _0x20448a=_0x322ca1;return this[_0x20448a(0x351)];}[_0x322ca1(0x290)](){const _0x5145b3=_0x322ca1;this[_0x5145b3(0x1cb)]()['then'](()=>super['dispose']());}async[_0x322ca1(0x2aa)](_0x32e660){const _0xa52316=_0x322ca1;return this['_disabled']?null:this[_0xa52316(0x33e)][_0xa52316(0x379)](u[_0xa52316(0x1ed)](_0x32e660));}async[_0x322ca1(0x3e6)](_0x331034,_0x25d93d){const _0x33912a=_0x322ca1;return!!this[_0x33912a(0x33e)]['setItem'](_0x331034,_0x25d93d);}['updateOfflineData'](_0xc61793,_0x316ec2,_0x693ef5,_0x4f0fc1){const _0x38b8a5=_0x322ca1,_0x1bcdd3=this['_revisionService'][_0x38b8a5(0x2de)](_0xc61793);this['_cachedData']['set'](_0xc61793,{'unitID':_0xc61793,'type':_0x316ec2,'awaitingChangeset':_0x693ef5,'mutations':_0x4f0fc1,'rev':_0x1bcdd3}),this[_0x38b8a5(0x351)][_0x38b8a5(0x259)](_0xc61793)||this[_0x38b8a5(0x310)](_0xc61793);}[_0x322ca1(0x310)](_0x3003ac){const _0xd3c249=_0x322ca1,_0x52c5fa=this[_0xd3c249(0x367)]();_0x52c5fa===0x0?this[_0xd3c249(0x43b)](_0x3003ac):this[_0xd3c249(0x351)][_0xd3c249(0x385)](_0x3003ac,setTimeout(()=>this['_saveCache'](_0x3003ac),_0x52c5fa));}['_getSaveTimeout'](){const _0xca67fe=_0x322ca1;var _0x2f084d;return(_0x2f084d=this[_0xca67fe(0x479)][_0xca67fe(0x47d)](u[_0xca67fe(0x271)]))!=null?_0x2f084d:u[_0xca67fe(0x3da)];}[_0x322ca1(0x43b)](_0x23c53c){const _0x18cf27=_0x322ca1,_0x594e84=this[_0x18cf27(0x351)][_0x18cf27(0x442)](_0x23c53c);return _0x594e84!==void 0x0&&window[_0x18cf27(0x41e)](_0x594e84),this[_0x18cf27(0x33e)][_0x18cf27(0x295)](u[_0x18cf27(0x1ed)](_0x23c53c),this[_0x18cf27(0x3ec)][_0x18cf27(0x442)](_0x23c53c))[_0x18cf27(0x344)](()=>this[_0x18cf27(0x351)][_0x18cf27(0x485)](_0x23c53c));}async[_0x322ca1(0x1cb)](){const _0x3cb733=_0x322ca1,_0x2934bf=[];this[_0x3cb733(0x351)][_0x3cb733(0x48e)]((_0x46e34f,_0x12098e)=>{const _0x2aa37d=_0x3cb733;window[_0x2aa37d(0x41e)](_0x46e34f),_0x2934bf[_0x2aa37d(0x47b)](this[_0x2aa37d(0x43b)](_0x12098e)[_0x2aa37d(0x344)](()=>{const _0x1df862=_0x2aa37d;this[_0x1df862(0x351)][_0x1df862(0x485)](_0x12098e);}));}),await Promise[_0x3cb733(0x435)](_0x2934bf);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0x322ca1(0x20c)]),Se(0x2,a['Inject'](g[_0x322ca1(0x473)]))],Te);class ke extends a[_0x322ca1(0x481)]{constructor(){const _0x5e21ec=_0x322ca1;super(),_(this,_0x5e21ec(0x448)),this[_0x5e21ec(0x448)]=I[_0x5e21ec(0x412)](window,_0x5e21ec(0x3e9))[_0x5e21ec(0x22a)](I[_0x5e21ec(0x309)](this[_0x5e21ec(0x2dd)]),I[_0x5e21ec(0x407)](0x1),I[_0x5e21ec(0x21c)](void 0x0));}[_0x322ca1(0x3f0)](_0x33dc84,_0x429262,_0x163d81=!0x1){const _0xf4dadd=_0x322ca1,_0x9d7bcd=new URL(window[_0xf4dadd(0x2d3)]['href']);_0x9d7bcd[_0xf4dadd(0x2a5)][_0xf4dadd(0x385)](_0x33dc84,_0x429262),_0x163d81?window[_0xf4dadd(0x449)]['replaceState']('','',_0x9d7bcd['toString']()):window[_0xf4dadd(0x449)][_0xf4dadd(0x390)]('','',_0x9d7bcd[_0xf4dadd(0x425)]());}['removeParam'](_0x3e6797,_0x57e50a=!0x1){const _0x135339=_0x322ca1,_0x4be172=new URL(window[_0x135339(0x2d3)][_0x135339(0x2a6)]);_0x4be172[_0x135339(0x2a5)][_0x135339(0x485)](_0x3e6797),_0x57e50a?window[_0x135339(0x449)][_0x135339(0x20a)]('','',_0x4be172[_0x135339(0x425)]()):window[_0x135339(0x449)][_0x135339(0x390)]('','',_0x4be172[_0x135339(0x425)]());}[_0x322ca1(0x274)](_0x1b8090){const _0x4e07b9=_0x322ca1;var _0x4b3d77;return(_0x4b3d77=new URL(window[_0x4e07b9(0x2d3)][_0x4e07b9(0x2a6)])[_0x4e07b9(0x2a5)][_0x4e07b9(0x442)](_0x1b8090))!=null?_0x4b3d77:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x322ca1(0x258)],cs=(_0x2e58be,_0x3d09a4,_0x2e69be)=>_0x3d09a4 in _0x2e58be?os(_0x2e58be,_0x3d09a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e69be}):_0x2e58be[_0x3d09a4]=_0x2e69be,ls=(_0x5b111c,_0x3c0edc,_0x229067,_0x1e0224)=>{const _0x556152=_0x322ca1;for(var _0x1698d1=_0x1e0224>0x1?void 0x0:_0x1e0224?as(_0x3c0edc,_0x229067):_0x3c0edc,_0x3a673b=_0x5b111c[_0x556152(0x3f6)]-0x1,_0x52638a;_0x3a673b>=0x0;_0x3a673b--)(_0x52638a=_0x5b111c[_0x3a673b])&&(_0x1698d1=_0x52638a(_0x1698d1)||_0x1698d1);return _0x1698d1;},de=(_0x1184db,_0x1af9aa)=>(_0x498da7,_0x16b20e)=>_0x1af9aa(_0x498da7,_0x16b20e,_0x1184db),_s=(_0x16979f,_0x5f1441,_0x514806)=>cs(_0x16979f,_0x5f1441+'',_0x514806);const hs=_0x322ca1(0x372);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x322ca1(0x2a8)]{constructor(_0x45ab4c=Me,_0x5afe81,_0x3d88e0,_0x176da7){const _0x2a7056=_0x322ca1;super(),this[_0x2a7056(0x1d9)]=_0x45ab4c,this[_0x2a7056(0x39f)]=_0x5afe81,this[_0x2a7056(0x2bc)]=_0x3d88e0,this[_0x2a7056(0x479)]=_0x176da7;const {..._0x153638}=a[_0x2a7056(0x3a7)]({},Me,this[_0x2a7056(0x1d9)]);this[_0x2a7056(0x479)][_0x2a7056(0x2da)](Yt,_0x153638);}[_0x322ca1(0x33f)](){const _0xcde408=_0x322ca1;this[_0xcde408(0x209)](),this[_0xcde408(0x43d)]();}['onRendered'](){const _0x1ac4f1=_0x322ca1;this[_0x1ac4f1(0x20d)]();}['_registerDependencies'](){const _0x21ac9e=_0x322ca1;var _0x1fb7a3;const _0x15a970=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x21ac9e(0x2df)],{'useClass':x[_0x21ac9e(0x222)]}],[u['ILocalCacheService'],{'useClass':Te}],[exports[_0x21ac9e(0x387)]],[ie],[Z],[F],[me],[exports[_0x21ac9e(0x2f7)]]];this['_config']['enableFrontendLog']&&_0x15a970[_0x21ac9e(0x47b)]([Q]),a['registerDependencies'](this[_0x21ac9e(0x2bc)],a[_0x21ac9e(0x2d6)](_0x15a970,(_0x1fb7a3=this[_0x21ac9e(0x1d9)])==null?void 0x0:_0x1fb7a3[_0x21ac9e(0x25d)]));}[_0x322ca1(0x20d)](){const _0x380268=_0x322ca1;this[_0x380268(0x2f4)](this['_renderManagerService'][_0x380268(0x426)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this[_0x380268(0x2f4)](this[_0x380268(0x39f)][_0x380268(0x426)](a[_0x380268(0x2fa)][_0x380268(0x382)],[Ce]));}['_initDependencies'](){const _0x1cc4a7=_0x322ca1;a[_0x1cc4a7(0x3c8)](this[_0x1cc4a7(0x2bc)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x1cc4a7(0x2f7)]],[ne]]),this['_config'][_0x1cc4a7(0x221)]&&a[_0x1cc4a7(0x3c8)](this[_0x1cc4a7(0x2bc)],[[Q]]);}},_s(exports[_0x322ca1(0x2db)],_0x322ca1(0x3f2),hs),exports['UniverCollaborationClientUIPlugin']=ls([a['DependentOn'](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x322ca1(0x2d2)]),de(0x2,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),de(0x3,a[_0x322ca1(0x2a4)])],exports[_0x322ca1(0x2db)]);var us=Object[_0x322ca1(0x258)],Is=(_0x4f696a,_0x4f3905,_0x4d5f86,_0x278a59)=>{const _0xe28064=_0x322ca1;for(var _0x22cf43=_0x278a59>0x1?void 0x0:_0x278a59?us(_0x4f3905,_0x4d5f86):_0x4f3905,_0xd20124=_0x4f696a[_0xe28064(0x3f6)]-0x1,_0x246308;_0xd20124>=0x0;_0xd20124--)(_0x246308=_0x4f696a[_0xd20124])&&(_0x22cf43=_0x246308(_0x22cf43)||_0x22cf43);return _0x22cf43;},W=(_0x55c2d7,_0x15ba2f)=>(_0x46d500,_0xd485b2)=>_0x15ba2f(_0x46d500,_0xd485b2,_0x55c2d7);exports['BrowserCollaborationSocketService']=class extends u[_0x322ca1(0x312)]{constructor(_0x121fa0,_0xedb66f,_0x2e8b32,_0x2fc359,_0x3c122b){super(_0x121fa0,_0xedb66f,_0x2e8b32,_0x2fc359,_0x3c122b);}async[_0x322ca1(0x316)](_0x52629a){const _0x888cd5=_0x322ca1,_0x2b1002=await this[_0x888cd5(0x331)](),_0x366bbc=this['_createSocketURL'](_0x52629a,_0x2b1002);return this[_0x888cd5(0x47c)](_0x366bbc);}[_0x322ca1(0x41b)](_0x872144,_0x2f2118){const _0x2a0511=_0x322ca1,_0x3b61df=typeof window>'u'?new URL(_0x872144):new URL(_0x872144,window['location'][_0x2a0511(0x227)]);_0x3b61df[_0x2a0511(0x2a5)][_0x2a0511(0x385)](_0x2a0511(0x22e),_0x2f2118);const _0x15986c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2a0511(0x2d3)][_0x2a0511(0x374)]);return _0x15986c[_0x2a0511(0x442)](_0x2a0511(0x31c))&&_0x3b61df['searchParams'][_0x2a0511(0x385)](_0x2a0511(0x31c),_0x15986c[_0x2a0511(0x442)](_0x2a0511(0x31c))),_0x3b61df[_0x2a0511(0x425)]();}async[_0x322ca1(0x331)](){const _0x3f0d3c=_0x322ca1;var _0xd35ec5,_0x153524,_0x23b16f;const _0x2c2fc1=this[_0x3f0d3c(0x479)][_0x3f0d3c(0x47d)](u[_0x3f0d3c(0x37f)]),_0x562edb=(_0xd35ec5=_0x2c2fc1==null?void 0x0:_0x2c2fc1['wsSessionTicketUrl'])!=null?_0xd35ec5:u[_0x3f0d3c(0x3c7)];return(_0x23b16f=(_0x153524=(await this[_0x3f0d3c(0x3f1)][_0x3f0d3c(0x442)](_0x562edb,{'headers':{'Content-Type':_0x3f0d3c(0x305)}}))[_0x3f0d3c(0x46c)])==null?void 0x0:_0x153524['ticket'])!=null?_0x23b16f:'';}},exports[_0x322ca1(0x228)]=Is([W(0x0,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),W(0x1,a[_0x322ca1(0x254)](x[_0x322ca1(0x43f)])),W(0x2,a[_0x322ca1(0x2a4)]),W(0x3,a[_0x322ca1(0x1df)]),W(0x4,g[_0x322ca1(0x39d)])],exports[_0x322ca1(0x228)]);var Ss=Object[_0x322ca1(0x258)],ds=(_0x49d239,_0x527c28,_0x5a5d21,_0x37b850)=>{const _0x13abed=_0x322ca1;for(var _0x35b9ab=_0x37b850>0x1?void 0x0:_0x37b850?Ss(_0x527c28,_0x5a5d21):_0x527c28,_0x4ce4ed=_0x49d239[_0x13abed(0x3f6)]-0x1,_0x1d6ef3;_0x4ce4ed>=0x0;_0x4ce4ed--)(_0x1d6ef3=_0x49d239[_0x4ce4ed])&&(_0x35b9ab=_0x1d6ef3(_0x35b9ab)||_0x35b9ab);return _0x35b9ab;},fe=(_0x537d5a,_0x1a9028)=>(_0x3eb0cd,_0x38850e)=>_0x1a9028(_0x3eb0cd,_0x38850e,_0x537d5a);exports[_0x322ca1(0x34b)]=class extends a[_0x322ca1(0x2c7)]{constructor(_0x345413,_0xb29ae7,_0x5c9617){const _0x364291=_0x322ca1;super(),this[_0x364291(0x2d7)]=_0x345413,this[_0x364291(0x3f1)]=_0xb29ae7,this[_0x364291(0x479)]=_0x5c9617;}async[_0x322ca1(0x2ed)](_0x14f672,_0x569015,_0x58aabd,..._0x2873e0){const _0x4ebeeb=_0x322ca1;var _0x409606,_0x49797d,_0x4ca7ae,_0x18713e;const _0x407bf7=this[_0x4ebeeb(0x2d7)][_0x4ebeeb(0x3bf)]();if(!_0x407bf7)throw new Error(_0x4ebeeb(0x34f));const _0x2331fb=((_0x409606=this['_configService'][_0x4ebeeb(0x47d)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x409606:u[_0x4ebeeb(0x21a)])+'/'+_0x14f672+_0x4ebeeb(0x29c)+_0x569015,_0x184ce2=new URL(window['location'][_0x4ebeeb(0x2a6)]),_0x20d6cc={'scriptId':_0x14f672,'runId':(_0x49797d=_0x184ce2[_0x4ebeeb(0x2a5)][_0x4ebeeb(0x442)]('runId'))!=null?_0x49797d:'','function':_0x569015,'unitId':_0x407bf7[_0x4ebeeb(0x429)](),'argsOfFunction':JSON[_0x4ebeeb(0x27b)](_0x2873e0),'invokeId':(_0x4ca7ae=_0x58aabd[_0x4ebeeb(0x45d)])!=null?_0x4ca7ae:'','executionId':(_0x18713e=_0x58aabd[_0x4ebeeb(0x1d7)])!=null?_0x18713e:''};try{const _0x3f1a33=await this[_0x4ebeeb(0x3f1)][_0x4ebeeb(0x275)](_0x2331fb,{'body':_0x20d6cc});return _0x3f1a33[_0x4ebeeb(0x46c)]['error']&&_0x3f1a33[_0x4ebeeb(0x46c)][_0x4ebeeb(0x430)][_0x4ebeeb(0x463)]!==G['OK']?'Failed':_0x3f1a33['body'][_0x4ebeeb(0x30d)];}catch{return _0x4ebeeb(0x2c8);}}},exports[_0x322ca1(0x34b)]=ds([fe(0x0,a[_0x322ca1(0x215)]),fe(0x1,a[_0x322ca1(0x254)](x[_0x322ca1(0x43f)])),fe(0x2,a[_0x322ca1(0x2a4)])],exports[_0x322ca1(0x34b)]);const we=0x7530,ye=_0x322ca1(0x3d4);class fs extends a[_0x322ca1(0x2c7)]{constructor(){const _0x5e6116=_0x322ca1;super(),_(this,_0x5e6116(0x1fa),a['generateRandomId']()),_(this,_0x5e6116(0x2a3),new Set()),_(this,_0x5e6116(0x3e0),new Map()),_(this,_0x5e6116(0x21e),null),_(this,_0x5e6116(0x1c7),new Map()),_(this,_0x5e6116(0x324),new Map()),this['_init']();}[_0x322ca1(0x290)](){const _0x130e08=_0x322ca1;super[_0x130e08(0x290)](),this[_0x130e08(0x1c7)][_0x130e08(0x48e)]((_0x369c19,_0x3862c2)=>this[_0x130e08(0x432)](_0x3862c2)),this[_0x130e08(0x21e)]&&window['clearInterval'](this[_0x130e08(0x21e)]);}[_0x322ca1(0x23d)](_0xa47a09){const _0x2022da=_0x322ca1;return this[_0x2022da(0x207)](_0xa47a09)['pipe'](I['distinctUntilChanged']());}[_0x322ca1(0x48a)](_0x4effa8){const _0xbd90d4=_0x322ca1;this[_0xbd90d4(0x2a3)][_0xbd90d4(0x2b8)]===0x0&&this['_scheduleHeartbeat'](),this[_0xbd90d4(0x2a3)][_0xbd90d4(0x269)](_0x4effa8),this[_0xbd90d4(0x286)]({'type':0x0,'memberID':this[_0xbd90d4(0x1fa)],'unitIDs':[_0x4effa8],'isForwarded':!0x1});}[_0x322ca1(0x3b3)](_0xefb4ec){const _0x46c6dd=_0x322ca1;this['_selfUnitIDs']['delete'](_0xefb4ec),this[_0x46c6dd(0x2a3)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x46c6dd(0x21e)]);}[_0x322ca1(0x1c5)](){const _0x218905=_0x322ca1;this[_0x218905(0x2f4)](a[_0x218905(0x1db)](I[_0x218905(0x412)](window,_0x218905(0x2c0))[_0x218905(0x375)](_0x19147a=>{const _0x17aeb3=_0x218905;if(_0x19147a[_0x17aeb3(0x35c)]!==ye||!_0x19147a[_0x17aeb3(0x1fb)])return;const _0x2222c0=JSON['parse'](_0x19147a['newValue']);this[_0x17aeb3(0x456)](_0x2222c0);}))),window[_0x218905(0x260)](_0x218905(0x468),()=>this[_0x218905(0x286)]({'type':0x1,'memberID':this[_0x218905(0x1fa)],'unitIDs':Array[_0x218905(0x3ef)](this[_0x218905(0x2a3)])}));}[_0x322ca1(0x456)](_0x440520){const _0x1ce112=_0x322ca1;switch(_0x440520[_0x1ce112(0x384)]){case 0x0:this[_0x1ce112(0x31f)](_0x440520);break;case 0x1:this[_0x1ce112(0x29b)](_0x440520);break;case 0x2:this[_0x1ce112(0x491)](_0x440520);break;}}[_0x322ca1(0x31f)](_0x2f4e4d){const _0xe9f212=_0x322ca1,{unitIDs:_0x51ab91,memberID:_0x277f49,isForwarded:_0x1836f6}=_0x2f4e4d;_0x51ab91['forEach'](_0x23d288=>{const _0x4d8571=_0xd0d7;if(!_0x1836f6&&this[_0x4d8571(0x3e0)][_0x4d8571(0x259)](_0x23d288)&&this[_0x4d8571(0x207)](_0x23d288)[_0x4d8571(0x2b3)](u[_0x4d8571(0x3a8)][_0x4d8571(0x2c1)]),!this[_0x4d8571(0x3e0)][_0x4d8571(0x259)](_0x23d288)||!this[_0x4d8571(0x3e0)]['get'](_0x23d288)['has'](_0x277f49)){const _0x30699f=this[_0x4d8571(0x3e0)][_0x4d8571(0x442)](_0x23d288)||new Set();_0x30699f[_0x4d8571(0x269)](_0x277f49),this[_0x4d8571(0x3e0)]['set'](_0x23d288,_0x30699f),this['_scheduleClearOtherTimer'](_0x277f49);}}),_0x1836f6||this[_0xe9f212(0x286)]({'type':0x0,'memberID':this[_0xe9f212(0x1fa)],'unitIDs':[...this[_0xe9f212(0x2a3)]],'isForwarded':!0x0});}[_0x322ca1(0x3cd)](_0x547efe){const _0x1867c1=_0x322ca1;this[_0x1867c1(0x432)](_0x547efe);const _0x5e8aea=window[_0x1867c1(0x30b)](()=>{const _0x52e71c=_0x1867c1;this[_0x52e71c(0x3e0)]['forEach'](_0x20c33f=>{_0x20c33f['delete'](_0x547efe);});},we*0x2);this[_0x1867c1(0x1c7)][_0x1867c1(0x385)](_0x547efe,_0x5e8aea);}[_0x322ca1(0x432)](_0x1b0ad2){const _0x8c056c=_0x322ca1;if(this[_0x8c056c(0x1c7)]['has'](_0x1b0ad2)){const _0x1d672c=this[_0x8c056c(0x1c7)][_0x8c056c(0x442)](_0x1b0ad2);_0x1d672c&&window[_0x8c056c(0x41e)](_0x1d672c),this[_0x8c056c(0x1c7)][_0x8c056c(0x385)](_0x1b0ad2,null);}}['_handleLeaveEvent'](_0x418db7){const _0x414290=_0x322ca1,{memberID:_0x259274,unitIDs:_0x1be53b}=_0x418db7;_0x1be53b['forEach'](_0x13fd46=>{const _0x4fe410=_0xd0d7;var _0x227ba5;const _0x42b964=this[_0x4fe410(0x3e0)]['get'](_0x13fd46);_0x42b964&&(_0x42b964[_0x4fe410(0x485)](_0x259274),(_0x227ba5=this[_0x4fe410(0x207)](_0x13fd46))==null||_0x227ba5[_0x4fe410(0x2b3)](_0x42b964[_0x4fe410(0x2b8)]===0x0?u[_0x4fe410(0x3a8)][_0x4fe410(0x21d)]:u[_0x4fe410(0x3a8)]['OTHER_CLIENTS_EDITING']));}),this[_0x414290(0x432)](_0x259274);}['_handleHeartbeatEvent'](_0x487163){const _0x3607f1=_0x322ca1;this['_scheduleClearOtherTimer'](_0x487163[_0x3607f1(0x36b)]);}[_0x322ca1(0x286)](_0x5ec141){const _0x5e9732=_0x322ca1;localStorage[_0x5e9732(0x295)](ye,JSON[_0x5e9732(0x27b)](_0x5ec141));}[_0x322ca1(0x2f5)](){const _0x2c5b0d=_0x322ca1;this[_0x2c5b0d(0x21e)]=window[_0x2c5b0d(0x208)](()=>{const _0x3d51b7=_0x2c5b0d;this['_send']({'type':0x2,'memberID':this[_0x3d51b7(0x1fa)]});},we);}[_0x322ca1(0x207)](_0x5e2149){const _0x4691bb=_0x322ca1;return this[_0x4691bb(0x324)][_0x4691bb(0x259)](_0x5e2149)||this[_0x4691bb(0x324)][_0x4691bb(0x385)](_0x5e2149,new I['BehaviorSubject'](u[_0x4691bb(0x3a8)][_0x4691bb(0x21d)])),this[_0x4691bb(0x324)]['get'](_0x5e2149);}}exports[_0x322ca1(0x241)]=Oe,exports['SheetCollabCursorShape']=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x322ca1(0x2b7)]=ke;
|
|
1
|
+
'use strict';const _0x4a7abe=_0xdbe3;(function(_0x4f7829,_0x4f61a7){const _0x31b171=_0xdbe3,_0x469216=_0x4f7829();while(!![]){try{const _0x405d30=-parseInt(_0x31b171(0x30e))/0x1+parseInt(_0x31b171(0x3a6))/0x2+-parseInt(_0x31b171(0x429))/0x3*(-parseInt(_0x31b171(0x1d1))/0x4)+parseInt(_0x31b171(0x3a0))/0x5+parseInt(_0x31b171(0x488))/0x6+parseInt(_0x31b171(0x209))/0x7*(-parseInt(_0x31b171(0x2b3))/0x8)+parseInt(_0x31b171(0x39b))/0x9*(-parseInt(_0x31b171(0x212))/0xa);if(_0x405d30===_0x4f61a7)break;else _0x469216['push'](_0x469216['shift']());}catch(_0x28045a){_0x469216['push'](_0x469216['shift']());}}}(_0x3550,0xded0a));var Xe=Object[_0x4a7abe(0x25e)],Ke=(_0x1513ca,_0x1c9a95,_0x550757)=>_0x1c9a95 in _0x1513ca?Xe(_0x1513ca,_0x1c9a95,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x550757}):_0x1513ca[_0x1c9a95]=_0x550757,_=(_0x529ced,_0x3ac635,_0x36fbf7)=>Ke(_0x529ced,typeof _0x3ac635!=_0x4a7abe(0x2fc)?_0x3ac635+'':_0x3ac635,_0x36fbf7);Object['defineProperty'](exports,Symbol[_0x4a7abe(0x3ef)],{'value':_0x4a7abe(0x252)});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:_0x31c6ab,..._0x588389}){const _0x151412=_0x4a7abe,{icon:_0x2a5f13,id:_0x37e5ee,className:_0x5d6aac,extend:_0x4773ca,..._0x2e2ddd}=_0x588389,_0x471ee0=(_0x151412(0x31b)+_0x37e5ee+'\x20'+(_0x5d6aac||''))[_0x151412(0x2fd)](),_0x345bc8=A[_0x151412(0x23b)]('_'+Qe());return $e(_0x2a5f13,''+_0x37e5ee,{'defIds':_0x2a5f13['defIds'],'idSuffix':_0x345bc8['current']},{'ref':_0x31c6ab,'className':_0x471ee0,..._0x2e2ddd},_0x4773ca);}function $e(_0x2f8396,_0xf76121,_0x2ca74e,_0xb05f7b,_0x136d71){const _0x56200e=_0x4a7abe;return A['createElement'](_0x2f8396[_0x56200e(0x37f)],{'key':_0xf76121,...Je(_0x2f8396,_0x2ca74e,_0x136d71),..._0xb05f7b},(Ze(_0x2f8396,_0x2ca74e)[_0x56200e(0x341)]||[])[_0x56200e(0x314)]((_0x1b5fcc,_0x300e56)=>$e(_0x1b5fcc,_0xf76121+'-'+_0x2f8396['tag']+'-'+_0x300e56,_0x2ca74e,void 0x0,_0x136d71)));}function Je(_0x2f354c,_0x3a3ac9,_0x4a24b9){const _0x1e2734=_0x4a7abe,_0x21eed6={..._0x2f354c['attrs']};_0x4a24b9!=null&&_0x4a24b9[_0x1e2734(0x23f)]&&_0x21eed6[_0x1e2734(0x42c)]==='colorChannel1'&&(_0x21eed6[_0x1e2734(0x42c)]=_0x4a24b9[_0x1e2734(0x23f)]),_0x2f354c[_0x1e2734(0x37f)]===_0x1e2734(0x204)&&_0x21eed6['id']&&(_0x21eed6['id']=_0x21eed6['id']+_0x3a3ac9['idSuffix']),Object[_0x1e2734(0x236)](_0x21eed6)[_0x1e2734(0x2aa)](([_0x10bf47,_0x3704c0])=>{const _0x4ae7e6=_0x1e2734;_0x10bf47===_0x4ae7e6(0x204)&&typeof _0x3704c0==_0x4ae7e6(0x32b)&&(_0x21eed6[_0x10bf47]=_0x3704c0['replace'](/url\(#(.*)\)/,_0x4ae7e6(0x3ba)+_0x3a3ac9[_0x4ae7e6(0x472)]+')'));});const {defIds:_0x556def}=_0x3a3ac9;return!_0x556def||_0x556def[_0x1e2734(0x3e3)]===0x0||(_0x2f354c[_0x1e2734(0x37f)]===_0x1e2734(0x35b)&&_0x21eed6[_0x1e2734(0x215)]&&(_0x21eed6[_0x1e2734(0x215)]=_0x21eed6[_0x1e2734(0x215)]+_0x3a3ac9['idSuffix']),Object[_0x1e2734(0x236)](_0x21eed6)[_0x1e2734(0x2aa)](([_0x4ff696,_0x40e85d])=>{const _0x19c1cf=_0x1e2734;typeof _0x40e85d=='string'&&(_0x21eed6[_0x4ff696]=_0x40e85d[_0x19c1cf(0x36f)](/url\(#(.*)\)/,'url(#$1'+_0x3a3ac9[_0x19c1cf(0x472)]+')'));})),_0x21eed6;}function Ze(_0x235df5,_0x40efd5){const _0x51d6cb=_0x4a7abe;var _0x288df9;const {defIds:_0x5117c3}=_0x40efd5;return!_0x5117c3||_0x5117c3[_0x51d6cb(0x3e3)]===0x0?_0x235df5:_0x235df5[_0x51d6cb(0x37f)]===_0x51d6cb(0x441)&&((_0x288df9=_0x235df5[_0x51d6cb(0x341)])!=null&&_0x288df9[_0x51d6cb(0x3e3)])?{..._0x235df5,'children':_0x235df5['children'][_0x51d6cb(0x314)](_0x145077=>typeof _0x145077['attrs']['id']==_0x51d6cb(0x32b)&&_0x5117c3&&_0x5117c3[_0x51d6cb(0x3fc)](_0x145077[_0x51d6cb(0x3fa)]['id'])?{..._0x145077,'attrs':{..._0x145077[_0x51d6cb(0x3fa)],'id':_0x145077[_0x51d6cb(0x3fa)]['id']+_0x40efd5['idSuffix']}}:_0x145077)}:_0x235df5;}function Qe(){const _0x576e0c=_0x4a7abe;return Math[_0x576e0c(0x33d)]()[_0x576e0c(0x442)](0x24)[_0x576e0c(0x27d)](0x2,0x8);}pe[_0x4a7abe(0x438)]=_0x4a7abe(0x340);const et={'tag':_0x4a7abe(0x432),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4a7abe(0x415),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'stroke':_0x4a7abe(0x3e9),'d':_0x4a7abe(0x411),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4a7abe(0x441),'attrs':{},'children':[{'tag':_0x4a7abe(0x406),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'fill':_0x4a7abe(0x44f),'d':_0x4a7abe(0x357)}}]}]}],'defIds':[_0x4a7abe(0x26b)]},xe=A[_0x4a7abe(0x1c3)](function(_0x1edf92,_0x6c02d5){const _0x461e68=_0x4a7abe;return A['createElement'](pe,Object['assign']({},_0x1edf92,{'id':_0x461e68(0x2d8),'ref':_0x6c02d5,'icon':et}));});xe['displayName']=_0x4a7abe(0x3fb);const tt={'tag':_0x4a7abe(0x432),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4a7abe(0x47f),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4a7abe(0x445)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a7abe(0x2c1)},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'stroke':_0x4a7abe(0x3e9),'d':_0x4a7abe(0x1e0),'strokeLinecap':_0x4a7abe(0x381),'strokeLinejoin':_0x4a7abe(0x381),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a7abe(0x406),'attrs':{'id':_0x4a7abe(0x458)},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'fill':'white','d':_0x4a7abe(0x357),'transform':_0x4a7abe(0x266)}}]}]}],'defIds':[_0x4a7abe(0x458)]},Be=A[_0x4a7abe(0x1c3)](function(_0x390add,_0x4fdb46){const _0x50432e=_0x4a7abe;return A[_0x50432e(0x40e)](pe,Object[_0x50432e(0x1ee)]({},_0x390add,{'id':_0x50432e(0x2c9),'ref':_0x4fdb46,'icon':tt}));});Be[_0x4a7abe(0x438)]='OnLineIcon';function st(_0x6ae967){const _0x3da826=_0x4a7abe;switch(_0x6ae967){case u[_0x3da826(0x1bb)]['OFFLINE']:return _0x3da826(0x28f);case u['CollaborationStatus'][_0x3da826(0x431)]:return _0x3da826(0x404);case u[_0x3da826(0x1bb)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x3da826(0x1bb)][_0x3da826(0x2f4)]:return _0x3da826(0x3b9);case u[_0x3da826(0x1bb)][_0x3da826(0x25c)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x3da826(0x3f5);case u[_0x3da826(0x1bb)][_0x3da826(0x21d)]:case u[_0x3da826(0x1bb)][_0x3da826(0x3c3)]:return _0x3da826(0x2e9);}}function it(_0x2208ae){const _0x270970=_0x4a7abe,{status$:_0x354a8c}=_0x2208ae,_0x52f502=O[_0x270970(0x391)](_0x354a8c,u['CollaborationStatus']['NOT_COLLAB']),_0x224281=O[_0x270970(0x218)](a['LocaleService']),_0x6d954e=O[_0x270970(0x218)](u['CollaborationSessionService']),_0x144ee4=_0x52f502!==u[_0x270970(0x1bb)][_0x270970(0x257)],_0x481e32=_0x224281['t'](st(_0x52f502)),_0x465707=_0x144ee4?M[_0x270970(0x261)](Be,{}):M[_0x270970(0x261)](xe,{}),_0x12429e=A[_0x270970(0x3b0)](()=>{const _0x2e2ea2=_0x270970;_0x144ee4||_0x6d954e[_0x2e2ea2(0x224)]();},[_0x144ee4,_0x6d954e]);function _0x249f26(){const _0x4f6eda=_0x270970;return M[_0x4f6eda(0x36a)]('div',{'className':_0x4f6eda(0x386),'onClick':_0x12429e,'children':[M[_0x4f6eda(0x261)](_0x4f6eda(0x2e7),{'className':p[_0x4f6eda(0x3e4)](_0x4f6eda(0x1b7),{'univer-text-green-500':_0x144ee4,'univer-text-red-500':!_0x144ee4}),'children':_0x465707}),M[_0x4f6eda(0x261)](_0x4f6eda(0x2e7),{'className':_0x4f6eda(0x1cc),'children':_0x481e32})]});}return _0x144ee4?_0x249f26():M[_0x270970(0x261)](p[_0x270970(0x479)],{'title':_0x224281['t'](_0x270970(0x2d3)),'children':_0x249f26()});}var nt=Object[_0x4a7abe(0x319)],rt=(_0x5d2156,_0x51e758,_0x2042d7,_0x15bb2d)=>{const _0x4e3cc5=_0x4a7abe;for(var _0x6f9a62=_0x15bb2d>0x1?void 0x0:_0x15bb2d?nt(_0x51e758,_0x2042d7):_0x51e758,_0x33f341=_0x5d2156[_0x4e3cc5(0x3e3)]-0x1,_0xcc74fb;_0x33f341>=0x0;_0x33f341--)(_0xcc74fb=_0x5d2156[_0x33f341])&&(_0x6f9a62=_0xcc74fb(_0x6f9a62)||_0x6f9a62);return _0x6f9a62;},K=(_0x5285a9,_0x2dd431)=>(_0x1a1323,_0x5f2744)=>_0x2dd431(_0x1a1323,_0x5f2744,_0x5285a9);exports[_0x4a7abe(0x446)]=class extends a[_0x4a7abe(0x2de)]{constructor(_0x4c8c12,_0x3a10ad,_0x113f71,_0x20e7e7){const _0x46c346=_0x4a7abe;super(),_(this,_0x46c346(0x489),new I['BehaviorSubject'](u[_0x46c346(0x1bb)][_0x46c346(0x2f4)])),(this[_0x46c346(0x393)]=_0x4c8c12,this[_0x46c346(0x449)]=_0x3a10ad,this[_0x46c346(0x24e)]=_0x113f71,this[_0x46c346(0x39d)]=_0x20e7e7,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x4a7abe(0x372)](){const _0x4ab49d=_0x4a7abe;this[_0x4ab49d(0x360)](this['_univerInstanceService'][_0x4ab49d(0x253)][_0x4ab49d(0x31d)](I[_0x4ab49d(0x1ef)](()=>{const _0x51e0e3=_0x4ab49d,_0x3adba0=this[_0x51e0e3(0x393)][_0x51e0e3(0x460)]();return _0x3adba0?this[_0x51e0e3(0x24e)][_0x51e0e3(0x46e)](_0x3adba0['getUnitId']()):I['of'](null);}),I[_0x4ab49d(0x1ef)](_0x1e0466=>_0x1e0466?_0x1e0466[_0x4ab49d(0x444)]:I['of'](u[_0x4ab49d(0x1bb)][_0x4ab49d(0x2f4)])))[_0x4ab49d(0x1f1)](_0x3da364=>{const _0x126590=_0x4ab49d;this[_0x126590(0x489)]['next'](_0x3da364);}));}[_0x4a7abe(0x233)](){const _0x270bd0=_0x4a7abe;this[_0x270bd0(0x360)](this['_uiPartsService'][_0x270bd0(0x2fa)](O[_0x270bd0(0x440)][_0x270bd0(0x2bd)],()=>O['connectInjector'](ot({'status$':this['_status$']['asObservable']()}),this[_0x270bd0(0x449)])));}},exports[_0x4a7abe(0x446)]=rt([K(0x0,a[_0x4a7abe(0x1e6)]),K(0x1,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),K(0x2,a[_0x4a7abe(0x32c)](u['CollaborationController'])),K(0x3,O[_0x4a7abe(0x462)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x35a843){const {status$:_0x2fb081}=_0x35a843;return function(){const _0x3c7275=_0xdbe3;return M[_0x3c7275(0x261)](it,{'status$':_0x2fb081});};}const Oe=a['createIdentifier']('uni.network.url-service');var at=Object[_0x4a7abe(0x319)],ct=(_0x2b2180,_0x242231,_0x3ffaf4,_0x56db1e)=>{const _0x380fae=_0x4a7abe;for(var _0x5f1f30=_0x56db1e>0x1?void 0x0:_0x56db1e?at(_0x242231,_0x3ffaf4):_0x242231,_0x3957e7=_0x2b2180[_0x380fae(0x3e3)]-0x1,_0x2eb675;_0x3957e7>=0x0;_0x3957e7--)(_0x2eb675=_0x2b2180[_0x3957e7])&&(_0x5f1f30=_0x2eb675(_0x5f1f30)||_0x5f1f30);return _0x5f1f30;},Y=(_0x5cd0e0,_0x5b7552)=>(_0x291737,_0x5cb6d4)=>_0x5b7552(_0x291737,_0x5cb6d4,_0x5cd0e0);exports[_0x4a7abe(0x30d)]=class extends a['RxDisposable']{constructor(_0x26019f,_0x52cd89,_0x21c360,_0x20bbb0,_0x374f19){const _0x13d8ec=_0x4a7abe;super(),this[_0x13d8ec(0x2d7)]=_0x26019f,this[_0x13d8ec(0x32d)]=_0x52cd89,this[_0x13d8ec(0x263)]=_0x21c360,this[_0x13d8ec(0x333)]=_0x20bbb0,_0x374f19?_0x374f19==null||_0x374f19[_0x13d8ec(0x469)]()[_0x13d8ec(0x2bf)](()=>this[_0x13d8ec(0x3a9)]()):(this['_logService']['debug'](_0x13d8ec(0x3b7),_0x13d8ec(0x2d5)),this[_0x13d8ec(0x3a9)]());}async['_init'](){const _0x280c96=_0x4a7abe,_0x1a31da=this[_0x280c96(0x2d7)][_0x280c96(0x47c)]('unit'),_0x5aa70c=this[_0x280c96(0x2d7)][_0x280c96(0x47c)](_0x280c96(0x2b1)),_0x2e3069=this[_0x280c96(0x2d7)][_0x280c96(0x47c)](_0x280c96(0x2ce));if(!_0x1a31da||!_0x5aa70c){this[_0x280c96(0x32d)][_0x280c96(0x377)]('[CollaborationDataLoaderController]',_0x280c96(0x3df));return;}const _0x3615e7=await this[_0x280c96(0x333)][_0x280c96(0x251)](_0x1a31da,Number(_0x5aa70c),_0x2e3069);_0x3615e7&&_0x3615e7 instanceof a[_0x280c96(0x293)]&&this['_setupSubUnitSync'](_0x3615e7);}async[_0x4a7abe(0x258)](_0x3c7503){const _0x1b142a=_0x4a7abe;await this[_0x1b142a(0x40d)](_0x3c7503),_0x3c7503[_0x1b142a(0x423)][_0x1b142a(0x31d)](I['takeUntil'](this[_0x1b142a(0x288)]))['subscribe'](_0x3f1b3f=>{_0x3f1b3f&&this['_updateURLWithCurrentState'](_0x3f1b3f);}),this[_0x1b142a(0x2d7)][_0x1b142a(0x1ca)][_0x1b142a(0x31d)](I[_0x1b142a(0x239)](this[_0x1b142a(0x288)]))['subscribe'](()=>this[_0x1b142a(0x40d)](_0x3c7503));}['_updateURLWithCurrentState'](_0x45a553,_0x4fecc2=!0x1){const _0x3777c7=_0x4a7abe,_0x326403=this[_0x3777c7(0x2d7)]['getParam'](_0x3777c7(0x2ce));_0x45a553[_0x3777c7(0x338)]()!==_0x326403&&this[_0x3777c7(0x2d7)][_0x3777c7(0x3c7)]('subunit',_0x45a553[_0x3777c7(0x338)](),_0x4fecc2);}async[_0x4a7abe(0x40d)](_0x271472){const _0x10e304=_0x4a7abe;var _0x3f6c91;const _0x323d5e=this[_0x10e304(0x2d7)]['getParam'](_0x10e304(0x2ce));if(!_0x323d5e||!_0x271472[_0x10e304(0x2bb)](_0x323d5e)){const _0x3382e3=_0x271472[_0x10e304(0x1ed)]()[0x0],_0x7c3e6a=_0x271472[_0x10e304(0x2bb)](_0x3382e3);if(!_0x7c3e6a)return;this[_0x10e304(0x312)](_0x7c3e6a,!0x0),await this[_0x10e304(0x263)]['executeCommand'](v[_0x10e304(0x351)]['id'],{'unitId':_0x271472['getUnitId'](),'subUnitId':_0x3382e3});return;}((_0x3f6c91=_0x271472[_0x10e304(0x3bd)]())==null?void 0x0:_0x3f6c91[_0x10e304(0x338)]())!==_0x323d5e&&await this['_commandService'][_0x10e304(0x22f)](v[_0x10e304(0x351)]['id'],{'unitId':_0x271472[_0x10e304(0x201)](),'subUnitId':_0x323d5e});}},exports[_0x4a7abe(0x30d)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4a7abe(0x1dc)]),Y(0x2,a[_0x4a7abe(0x434)]),Y(0x3,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x3b6)])),Y(0x4,a[_0x4a7abe(0x3ed)](qe[_0x4a7abe(0x313)]))],exports[_0x4a7abe(0x30d)]);var lt=Object[_0x4a7abe(0x319)],_t=(_0x21786a,_0x23ea2d,_0x3dfd6d,_0x7bc1d4)=>{const _0x1f1d73=_0x4a7abe;for(var _0x48a524=_0x7bc1d4>0x1?void 0x0:_0x7bc1d4?lt(_0x23ea2d,_0x3dfd6d):_0x23ea2d,_0x17407d=_0x21786a[_0x1f1d73(0x3e3)]-0x1,_0x4c72ab;_0x17407d>=0x0;_0x17407d--)(_0x4c72ab=_0x21786a[_0x17407d])&&(_0x48a524=_0x4c72ab(_0x48a524)||_0x48a524);return _0x48a524;},De=(_0x293997,_0x27e9ce)=>(_0x5e3324,_0x5641fd)=>_0x27e9ce(_0x5e3324,_0x5641fd,_0x293997);let me=class extends a[_0x4a7abe(0x3cf)]{constructor(_0xa3b3ae,_0x432396){const _0x11804b=_0x4a7abe;super(),this['_docClipboardService']=_0xa3b3ae,this['_imageIoService']=_0x432396,this[_0x11804b(0x3a9)]();}[_0x4a7abe(0x3a9)](){const _0x3e86d7=_0x4a7abe,_0x4172fd=this;this['disposeWithMe'](this['_docClipboardService'][_0x3e86d7(0x1da)]({'onBeforePasteImage':async _0xdd0457=>{const _0x40287f=_0x3e86d7,_0x5770bb=await _0x4172fd[_0x40287f(0x461)][_0x40287f(0x36e)](_0xdd0457);return _0x5770bb?{'source':_0x5770bb[_0x40287f(0x2dd)],'imageSourceType':_0x5770bb[_0x40287f(0x27f)]}:null;}}));}};function _0xdbe3(_0x30b648,_0x45d520){_0x30b648=_0x30b648-0x1b7;const _0x355068=_0x3550();let _0xdbe337=_0x355068[_0x30b648];return _0xdbe337;}me=_t([De(0x0,T[_0x4a7abe(0x44b)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x4a7abe(0x454),_0x4a7abe(0x368),'green.600',_0x4a7abe(0x480),_0x4a7abe(0x3f7),_0x4a7abe(0x42f)];class Re extends a[_0x4a7abe(0x2de)]{constructor(){const _0x56a5e9=_0x4a7abe;super(...arguments),_(this,_0x56a5e9(0x2e2),new Map()),_(this,_0x56a5e9(0x2e5),0x0);}[_0x4a7abe(0x1de)](_0x4e9fde){const _0x1fcedb=_0x4a7abe;if(this['_assignedColors'][_0x1fcedb(0x439)](_0x4e9fde))return this['_assignedColors'][_0x1fcedb(0x1c8)](_0x4e9fde);const _0x1af8e7=Ne[this[_0x1fcedb(0x2e5)]];return this[_0x1fcedb(0x2e5)]=(this[_0x1fcedb(0x2e5)]+0x1)%Ne['length'],this[_0x1fcedb(0x2e2)]['set'](_0x4e9fde,_0x1af8e7),_0x1af8e7;}}function Fe(_0x352967){const _0x5e1c06=_0x4a7abe;let _0x3d639e='';for(const _0x5df97b of _0x352967){const {startOffset:_0x54d00c,endOffset:_0x1e0d32,isActive:_0x3e4862,rangeType:_0x1b2fb3,segmentId:_0x4b16b3,segmentPage:_0x162df3}=_0x5df97b;_0x3d639e[_0x5e1c06(0x3e3)]&&(_0x3d639e+=','),_0x3d639e+=_0x54d00c+':'+_0x1e0d32+':'+(_0x3e4862?'1':'0')+':'+_0x1b2fb3+':'+_0x4b16b3+':'+_0x162df3;}return _0x3d639e;}function ht(_0x4b7278){const _0x78000f=_0x4a7abe,_0x3cba74=_0x4b7278['split'](','),_0x115849=[];for(const _0x1173e1 of _0x3cba74){const [_0x1e4c9a,_0x9cec3c,_0x442e0e,_0x3151ec,_0x1361d5,_0x58176d]=_0x1173e1[_0x78000f(0x255)](':');_0x115849[_0x78000f(0x272)]({'startOffset':Number(_0x1e4c9a),'endOffset':Number(_0x9cec3c),'collapsed':_0x1e4c9a===_0x9cec3c,'isActive':_0x442e0e==='1','rangeType':_0x3151ec===a[_0x78000f(0x27b)][_0x78000f(0x262)]?a[_0x78000f(0x27b)][_0x78000f(0x262)]:a[_0x78000f(0x27b)][_0x78000f(0x2c7)],'segmentId':typeof _0x1361d5==_0x78000f(0x32b)?String(_0x1361d5):'','segmentPage':Number(_0x58176d!=null?_0x58176d:-0x1)});}return _0x115849[_0x78000f(0x22b)](_0x1430c1=>_0x1430c1['isActive'])||(_0x115849[0x0][_0x78000f(0x38b)]=!0x0),_0x115849;}class be extends a['RxDisposable']{constructor(){const _0x40b382=_0x4a7abe;super(...arguments),_(this,_0x40b382(0x448),new I[(_0x40b382(0x242))](null)),_(this,_0x40b382(0x1e8),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x468d67){const _0x26c934=_0x4a7abe,{unitID:_0x2e685f,memberID:_0x467531,textRanges:_0x25b953}=_0x468d67,_0x6f7bcc=Fe(_0x25b953);if(_0x6f7bcc==='')return;const _0x48e480={'unitID':_0x2e685f,'memberID':_0x467531,'selection':_0x6f7bcc};this[_0x26c934(0x448)][_0x26c934(0x435)](_0x48e480);}}var ut=Object[_0x4a7abe(0x319)],It=(_0x421997,_0x3077d3,_0x5435d1,_0xe520c2)=>{const _0x32d1dc=_0x4a7abe;for(var _0x39e3f2=_0xe520c2>0x1?void 0x0:_0xe520c2?ut(_0x3077d3,_0x5435d1):_0x3077d3,_0x23f9f1=_0x421997[_0x32d1dc(0x3e3)]-0x1,_0x268806;_0x23f9f1>=0x0;_0x23f9f1--)(_0x268806=_0x421997[_0x23f9f1])&&(_0x39e3f2=_0x268806(_0x39e3f2)||_0x39e3f2);return _0x39e3f2;},U=(_0x3481cd,_0x10989d)=>(_0x18d3d0,_0x53a600)=>_0x10989d(_0x18d3d0,_0x53a600,_0x3481cd);const St=0x12c,dt=0x64;let ve=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x1db430,_0x39ce4c,_0x44afcd,_0x2153de,_0x307441,_0x140178,_0x5418f0,_0x4eb565,_0x459054){const _0x19f28c=_0x4a7abe;super(),_(this,'_online',!0x1),_(this,_0x19f28c(0x3a9),!0x1),_(this,_0x19f28c(0x20b),new I[(_0x19f28c(0x242))](new Map())),_(this,_0x19f28c(0x2ac),this[_0x19f28c(0x20b)][_0x19f28c(0x389)]()),_(this,_0x19f28c(0x277),new I[(_0x19f28c(0x242))]([])),_(this,_0x19f28c(0x348),this['_roomMembers$'][_0x19f28c(0x31d)](I['debounceTime'](St))),_(this,_0x19f28c(0x2af),a[_0x19f28c(0x40a)](_0x42de6f=>{const _0x1d1c33=_0x19f28c,_0x38272c={'eventID':g[_0x1d1c33(0x3a1)][_0x1d1c33(0x222)],'data':{'unitID':this[_0x1d1c33(0x1f5)],'memberID':this[_0x1d1c33(0x2c8)][_0x1d1c33(0x3f9)](),'selection':Fe(_0x42de6f)}};this[_0x1d1c33(0x2c8)][_0x1d1c33(0x1f6)](_0x38272c,this['unitID']);},dt)),(this[_0x19f28c(0x1f5)]=_0x1db430,this[_0x19f28c(0x2c8)]=_0x39ce4c,this[_0x19f28c(0x449)]=_0x44afcd,this['_colorAssignService']=_0x2153de,this[_0x19f28c(0x295)]=_0x307441,this[_0x19f28c(0x2a1)]=_0x140178,this[_0x19f28c(0x3d4)]=_0x5418f0,this[_0x19f28c(0x393)]=_0x4eb565,this[_0x19f28c(0x263)]=_0x459054);}get[_0x4a7abe(0x346)](){const _0xe93db8=_0x4a7abe;return this['_cursorInfo$'][_0xe93db8(0x305)]();}get[_0x4a7abe(0x45b)](){const _0x8600b5=_0x4a7abe;return this[_0x8600b5(0x277)][_0x8600b5(0x305)]();}['dispose'](){const _0x640844=_0x4a7abe;super['dispose'](),this['_cursorInfo$'][_0x640844(0x435)](new Map()),this[_0x640844(0x20b)][_0x640844(0x3e6)](),this[_0x640844(0x277)]['next']([]),this[_0x640844(0x277)][_0x640844(0x3e6)]();}[_0x4a7abe(0x2a0)](){const _0x7d422a=_0x4a7abe;this[_0x7d422a(0x3a9)]||(this[_0x7d422a(0x3a9)]=!0x0,this[_0x7d422a(0x2c8)][_0x7d422a(0x353)]['pipe'](I[_0x7d422a(0x239)](this[_0x7d422a(0x288)]))[_0x7d422a(0x1f1)](_0x17dd53=>{const _0x4651ad=_0x7d422a;_0x17dd53===u[_0x4651ad(0x493)][_0x4651ad(0x413)]?this[_0x4651ad(0x221)]():this[_0x4651ad(0x3d3)]();}),this[_0x7d422a(0x2c8)][_0x7d422a(0x1cb)][_0x7d422a(0x31d)](I['takeUntil'](this[_0x7d422a(0x288)]))[_0x7d422a(0x1f1)](_0x515628=>{const _0x1a220d=_0x7d422a,_0x40321e=_0x515628[_0x1a220d(0x451)];_0x40321e===g[_0x1a220d(0x3a1)]['UPDATE_CURSOR']&&this[_0x1a220d(0x2a5)](_0x515628),_0x40321e===g[_0x1a220d(0x3a1)][_0x1a220d(0x1cd)]&&this[_0x1a220d(0x416)](_0x515628);}),this[_0x7d422a(0x360)](this[_0x7d422a(0x263)][_0x7d422a(0x453)](_0x4e2a38=>{const _0x43a275=_0x7d422a,_0x1103e8=_0x4e2a38[_0x43a275(0x43f)];_0x1103e8!=null&&this[_0x43a275(0x3d2)]&&_0x4e2a38['id']===V[_0x43a275(0x362)]['id']&&_0x1103e8['unitId']===this[_0x43a275(0x1f5)]&&_0x1103e8['isEditing']===!0x1&&_0x1103e8[_0x43a275(0x44c)][_0x43a275(0x3e3)]>0x0&&this['_updateLocalCursor'](_0x1103e8[_0x43a275(0x44c)]);})),this[_0x7d422a(0x2a1)][_0x7d422a(0x1e8)]['pipe'](I['takeUntil'](this[_0x7d422a(0x288)]))['subscribe'](_0xb00e46=>{const _0x5548a4=_0x7d422a;if((_0xb00e46==null?void 0x0:_0xb00e46[_0x5548a4(0x1f5)])!==this[_0x5548a4(0x1f5)])return;const _0x2b1ab3={'eventID':g[_0x5548a4(0x3a1)]['UPDATE_CURSOR'],'data':_0xb00e46};this[_0x5548a4(0x2a5)](_0x2b1ab3);}),this['disposeWithMe'](this[_0x7d422a(0x263)][_0x7d422a(0x453)](_0x507973=>{const _0x3f91e3=_0x7d422a;if(_0x507973[_0x3f91e3(0x43f)]==null)return;const _0x1fd4bc=_0x507973[_0x3f91e3(0x43f)];if(_0x507973['id']!==V[_0x3f91e3(0x30c)]['id']||_0x1fd4bc[_0x3f91e3(0x1c7)]!==this['unitID'])return;const _0x3d8f07={'id':_0x3f91e3(0x354),'params':_0x1fd4bc},_0x519d2a=this[_0x3f91e3(0x346)];for(const [_0x1c9331,_0x1bbe78]of _0x519d2a){const _0x1f6dcb={'id':_0x3f91e3(0x354),'params':{'unitId':this[_0x3f91e3(0x1f5)],'actions':null,'textRanges':_0x1bbe78['ranges']}},_0x433074=this['_transformService'][_0x3f91e3(0x2dc)](_0x3d8f07,_0x1f6dcb,!0x1);if(g[_0x3f91e3(0x408)](_0x433074))throw _0x433074[_0x3f91e3(0x291)];_0x519d2a[_0x3f91e3(0x205)](_0x1c9331,{..._0x1bbe78,'ranges':_0x433074['m2Prime'][_0x3f91e3(0x43f)]['textRanges']});}queueMicrotask(()=>{const _0x12a27c=_0x3f91e3;this[_0x12a27c(0x20b)][_0x12a27c(0x435)](_0x519d2a);});})));}[_0x4a7abe(0x2a5)](_0x961017){const _0x51fe4e=_0x4a7abe;var _0x128e87,_0x7a2dde;const {memberID:_0x44f0f6,selection:_0x282b1b}=_0x961017[_0x51fe4e(0x3c8)],_0x418f36=ht(_0x282b1b),_0x34504d=(_0x7a2dde=(_0x128e87=this['_memberService']['getMember'](this[_0x51fe4e(0x1f5)],_0x44f0f6))==null?void 0x0:_0x128e87['name'])!=null?_0x7a2dde:_0x51fe4e(0x20a),_0xee5c4b={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x44f0f6),'name':_0x34504d,'ranges':_0x418f36},_0x2a0511=this[_0x51fe4e(0x346)];_0x2a0511['set'](_0x44f0f6,_0xee5c4b),this[_0x51fe4e(0x20b)][_0x51fe4e(0x435)](_0x2a0511);}['_onCursorDelete'](_0x1e910b){const _0x2893f2=_0x4a7abe,{memberID:_0x4b7c84}=_0x1e910b[_0x2893f2(0x3c8)],_0x3da558=this[_0x2893f2(0x346)];_0x3da558['delete'](_0x4b7c84),this[_0x2893f2(0x20b)][_0x2893f2(0x435)](_0x3da558);}[_0x4a7abe(0x221)](){const _0x474f2c=_0x4a7abe;var _0xb2a90;if(this['_online']=!0x0,((_0xb2a90=this[_0x474f2c(0x393)][_0x474f2c(0x460)]())==null?void 0x0:_0xb2a90[_0x474f2c(0x201)]())!==this[_0x474f2c(0x1f5)])return;const _0xc138ba=this[_0x474f2c(0x449)][_0x474f2c(0x1c8)](V[_0x474f2c(0x325)])['getDocRanges']();Array[_0x474f2c(0x3b5)](_0xc138ba)&&_0xc138ba[_0x474f2c(0x3e3)]>0x0&&this[_0x474f2c(0x2af)](_0xc138ba);}[_0x4a7abe(0x3d3)](){const _0x380bca=_0x4a7abe;this[_0x380bca(0x3d2)]=!0x1;}};ve=It([U(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),U(0x3,a['Inject'](Re)),U(0x4,a['Inject'](u[_0x4a7abe(0x230)])),U(0x5,a[_0x4a7abe(0x32c)](be)),U(0x6,g[_0x4a7abe(0x2f2)]),U(0x7,a[_0x4a7abe(0x1e6)]),U(0x8,a['ICommandService'])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x2d6075,_0x2c471d,_0x1e1c6c,_0x2cb4ef)=>{for(var _0x42a7b8=_0x2cb4ef>0x1?void 0x0:_0x2cb4ef?ft(_0x2c471d,_0x1e1c6c):_0x2c471d,_0x3cab63=_0x2d6075['length']-0x1,_0x3c7e50;_0x3cab63>=0x0;_0x3cab63--)(_0x3c7e50=_0x2d6075[_0x3cab63])&&(_0x42a7b8=_0x3c7e50(_0x42a7b8)||_0x42a7b8);return _0x42a7b8;},w=(_0x98c20b,_0x473e62)=>(_0x4649dc,_0xd66aed)=>_0x473e62(_0x4649dc,_0xd66aed,_0x98c20b);const vt=0x12c,gt=0x64,Et=()=>{let _0x164feb=[],_0x4bf412=!0x1;return _0x5bc21b=>{_0x164feb['push'](_0x5bc21b),_0x4bf412||(_0x4bf412=!0x0,setTimeout(()=>{const _0x3536d6=_0xdbe3;_0x164feb[_0x3536d6(0x2aa)](_0x271670=>_0x271670()),_0x164feb=[],_0x4bf412=!0x1;}));};};let ge=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x38a5cd,_0x193b80,_0x3ba474,_0x12526f,_0x498821,_0x39adc3,_0x3df02d,_0x4eee34){const _0x18c53b=_0x4a7abe;super(),_(this,_0x18c53b(0x3d2),!0x1),_(this,_0x18c53b(0x3a9),!0x1),_(this,_0x18c53b(0x20b),new I[(_0x18c53b(0x242))](new Map())),_(this,_0x18c53b(0x2ac),this[_0x18c53b(0x20b)][_0x18c53b(0x389)]()),_(this,'_roomMembers$',new I[(_0x18c53b(0x242))]([])),_(this,_0x18c53b(0x348),this['_roomMembers$'][_0x18c53b(0x31d)](I[_0x18c53b(0x304)](vt))),_(this,_0x18c53b(0x2af),a[_0x18c53b(0x40a)]((_0x43513f,_0x4fba47)=>{const _0x365918=_0x18c53b,_0xa42c8d={'eventID':g[_0x365918(0x3a1)][_0x365918(0x222)],'data':{'unitID':this[_0x365918(0x1f5)],'memberID':this[_0x365918(0x2c8)][_0x365918(0x3f9)](),'selection':B[_0x365918(0x361)](_0x43513f,_0x4fba47[_0x365918(0x1f8)])}};this[_0x365918(0x2c8)][_0x365918(0x1f6)](_0xa42c8d,this[_0x365918(0x1f5)]);},gt)),(this[_0x18c53b(0x1f5)]=_0x38a5cd,this['_session']=_0x193b80,this['_injector']=_0x3ba474,this['_colorAssignService']=_0x12526f,this[_0x18c53b(0x295)]=_0x498821,this[_0x18c53b(0x393)]=_0x39adc3,this['_commandService']=_0x3df02d,this[_0x18c53b(0x349)]=_0x4eee34);}get['cursorInfo'](){const _0x22b3cf=_0x4a7abe;return this['_cursorInfo$'][_0x22b3cf(0x305)]();}get[_0x4a7abe(0x45b)](){const _0x52a1eb=_0x4a7abe;return this[_0x52a1eb(0x277)][_0x52a1eb(0x305)]();}[_0x4a7abe(0x234)](){const _0x2b2e64=_0x4a7abe;super['dispose'](),this[_0x2b2e64(0x20b)][_0x2b2e64(0x435)](new Map()),this[_0x2b2e64(0x20b)]['complete'](),this[_0x2b2e64(0x277)][_0x2b2e64(0x435)]([]),this[_0x2b2e64(0x277)][_0x2b2e64(0x3e6)]();}[_0x4a7abe(0x2a0)](){const _0x42415c=_0x4a7abe;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x42415c(0x31d)](I[_0x42415c(0x239)](this[_0x42415c(0x288)]))[_0x42415c(0x1f1)](_0x354050=>{const _0x3d681a=_0x42415c;_0x354050===u[_0x3d681a(0x493)][_0x3d681a(0x413)]?this[_0x3d681a(0x221)]():this['_toggleOffline']();}),this['_session'][_0x42415c(0x1cb)]['pipe'](I[_0x42415c(0x239)](this[_0x42415c(0x288)]))[_0x42415c(0x1f1)](_0x5585de=>{const _0x4ff517=_0x42415c,_0x1643c5=_0x5585de[_0x4ff517(0x451)];_0x1643c5===g[_0x4ff517(0x3a1)][_0x4ff517(0x222)]&&this[_0x4ff517(0x2a5)](_0x5585de),_0x1643c5===g[_0x4ff517(0x3a1)][_0x4ff517(0x1cd)]&&this[_0x4ff517(0x416)](_0x5585de);}),this[_0x42415c(0x3e5)](),this[_0x42415c(0x360)](this[_0x42415c(0x263)][_0x42415c(0x453)](_0x595f7c=>{const _0x258dfd=_0x42415c;if(this[_0x258dfd(0x3d2)]&&_0x595f7c['id']===v[_0x258dfd(0x327)]['id']&&_0x595f7c['params'][_0x258dfd(0x1c7)]===this[_0x258dfd(0x1f5)]){const _0x4e0537=_0x595f7c[_0x258dfd(0x43f)];this['_updateLocalCursor'](_0x4e0537[_0x258dfd(0x1f7)],_0x4e0537[_0x258dfd(0x3d8)][0x0]);}})));}[_0x4a7abe(0x2a5)](_0x15fde9){const _0xf3fd0e=_0x4a7abe;var _0x5b3751,_0x9008c2;const {memberID:_0x4913a8,selection:_0x802b24}=_0x15fde9['data'],{sheetName:_0x108710,range:_0x4492ea}=B[_0xf3fd0e(0x269)](_0x802b24),_0x47dce6={'name':(_0x9008c2=(_0x5b3751=this[_0xf3fd0e(0x295)][_0xf3fd0e(0x339)](this['unitID'],_0x4913a8))==null?void 0x0:_0x5b3751['name'])!=null?_0x9008c2:'Unknown\x20user','range':this[_0xf3fd0e(0x481)](_0x108710,_0x4492ea),'sheetID':_0x108710,'color':this[_0xf3fd0e(0x376)][_0xf3fd0e(0x1de)](_0x4913a8),'selection':_0x802b24},_0x58e48d=this[_0xf3fd0e(0x346)];_0x58e48d[_0xf3fd0e(0x205)](_0x4913a8,_0x47dce6),this[_0xf3fd0e(0x20b)][_0xf3fd0e(0x435)](_0x58e48d);}[_0x4a7abe(0x416)](_0x172fbf){const _0x142218=_0x4a7abe,{memberID:_0x1afc3a}=_0x172fbf[_0x142218(0x3c8)],_0x29efd7=this[_0x142218(0x346)];_0x29efd7['delete'](_0x1afc3a),this[_0x142218(0x20b)][_0x142218(0x435)](_0x29efd7);}[_0x4a7abe(0x481)](_0x14b492,_0x359a9b){const _0x492fac=_0x4a7abe;var _0x7b169d,_0x1187c0;const _0x2e6c68=(_0x1187c0=(_0x7b169d=this[_0x492fac(0x393)][_0x492fac(0x26d)](this[_0x492fac(0x1f5)]))==null?void 0x0:_0x7b169d[_0x492fac(0x2bb)](_0x14b492))==null?void 0x0:_0x1187c0['getMergeData']();return(_0x2e6c68==null?void 0x0:_0x2e6c68[_0x492fac(0x3ec)](_0x196134=>a[_0x492fac(0x278)][_0x492fac(0x375)](_0x196134,_0x359a9b)))||_0x359a9b;}['_onRefRangeChange'](){const _0x1a6105=_0x4a7abe,_0x718dd=new a['DisposableCollection'](),_0x351b03=Et(),_0x164829=()=>{const _0x4f8018=_0xdbe3;_0x718dd[_0x4f8018(0x234)]();const _0x45af14=(_0x2b3a8f,_0x36d3bf,_0x3fa491,_0x20774a)=>{const _0x5793de=_0x4f8018;let _0x93bd0b=[];switch(_0x2b3a8f['id']){case v['EffectRefRangId'][_0x5793de(0x37c)]:{_0x93bd0b=v[_0x5793de(0x388)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)]['DeleteRangeMoveUpCommandId']:{_0x93bd0b=v['handleDeleteRangeMoveUp'](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId'][_0x5793de(0x1e1)]:{_0x93bd0b=v[_0x5793de(0x38e)](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x93bd0b=v[_0x5793de(0x3ea)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x401)]:{_0x93bd0b=v[_0x5793de(0x317)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x31c)]:{_0x93bd0b=v['handleInsertRow'](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)]['MoveRangeCommandId']:{_0x93bd0b=v[_0x5793de(0x20c)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x3ac)]:{_0x93bd0b=v['handleIRemoveCol'](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId'][_0x5793de(0x44e)]:{_0x93bd0b=v[_0x5793de(0x283)](_0x2b3a8f,_0x20774a);break;}}const _0x27d22b=v[_0x5793de(0x359)](_0x93bd0b,_0x20774a),_0x4d9049=this[_0x5793de(0x346)][_0x5793de(0x1c8)](_0x36d3bf);if(_0x4d9049&&_0x27d22b){const _0x34726b={..._0x4d9049,'range':_0x27d22b};this[_0x5793de(0x346)][_0x5793de(0x205)](_0x36d3bf,_0x34726b),_0x351b03(()=>{const _0x5023f1=_0x5793de,_0x260f1e=this[_0x5023f1(0x349)][_0x5023f1(0x2a2)](_0x27d22b,_0x3644a7=>(_0x260f1e[_0x5023f1(0x234)](),_0x45af14(_0x3644a7,_0x36d3bf,_0x3fa491,_0x27d22b)));_0x718dd[_0x5023f1(0x3ab)](_0x260f1e);});}return{'redos':[],'undos':[]};};this[_0x4f8018(0x346)]['forEach']((_0x8ae339,_0x1d0b98)=>{const _0x355fd4=_0x4f8018,{range:_0x388595,sheetID:_0x4216ae}=_0x8ae339,_0x103b7c=this[_0x355fd4(0x349)][_0x355fd4(0x2a2)](_0x388595,_0x514eaf=>(_0x103b7c[_0x355fd4(0x234)](),_0x45af14(_0x514eaf,_0x1d0b98,_0x4216ae,_0x388595)));_0x718dd[_0x355fd4(0x3ab)](_0x103b7c);});};this[_0x1a6105(0x360)](a[_0x1a6105(0x1e5)](this[_0x1a6105(0x20b)]['subscribe'](()=>{_0x164829();})));}['_toggleOnline'](){const _0x520f1c=_0x4a7abe;var _0x50f799,_0x4f0c97;if(this['_online']=!0x0,((_0x50f799=this[_0x520f1c(0x393)]['getFocusedUnit']())==null?void 0x0:_0x50f799[_0x520f1c(0x201)]())!==this[_0x520f1c(0x1f5)])return;const _0xe59169=(_0x4f0c97=this[_0x520f1c(0x449)][_0x520f1c(0x1c8)](v['SheetsSelectionsService'])[_0x520f1c(0x21e)]())==null?void 0x0:_0x4f0c97[0x0],_0xdc95fa=this[_0x520f1c(0x393)]['getCurrentUnitForType'](a[_0x520f1c(0x483)][_0x520f1c(0x324)])[_0x520f1c(0x3bd)]();_0xe59169&&_0xdc95fa&&this[_0x520f1c(0x2af)](_0xdc95fa[_0x520f1c(0x338)](),_0xe59169);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),w(0x3,a['Inject'](Re)),w(0x4,a['Inject'](u[_0x4a7abe(0x230)])),w(0x5,a[_0x4a7abe(0x1e6)]),w(0x6,a[_0x4a7abe(0x434)]),w(0x7,a[_0x4a7abe(0x32c)](v[_0x4a7abe(0x478)]))],ge);var Ct=Object[_0x4a7abe(0x319)],Tt=(_0x29e448,_0x19bae5,_0x3b9d23,_0xab429c)=>{const _0x32e321=_0x4a7abe;for(var _0x3ee39f=_0xab429c>0x1?void 0x0:_0xab429c?Ct(_0x19bae5,_0x3b9d23):_0x19bae5,_0x37e57d=_0x29e448[_0x32e321(0x3e3)]-0x1,_0x5c605a;_0x37e57d>=0x0;_0x37e57d--)(_0x5c605a=_0x29e448[_0x37e57d])&&(_0x3ee39f=_0x5c605a(_0x3ee39f)||_0x3ee39f);return _0x3ee39f;},ce=(_0x357b6d,_0x542f10)=>(_0x328e2f,_0x41bdbc)=>_0x542f10(_0x328e2f,_0x41bdbc,_0x357b6d);let F=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x48a779,_0x1ddba2,_0x453473){const _0x1864dc=_0x4a7abe;super(),_(this,'_entities',new Map()),_(this,_0x1864dc(0x2df),new I[(_0x1864dc(0x315))]()),(this['_univerInstanceService']=_0x48a779,this[_0x1864dc(0x449)]=_0x1ddba2,this[_0x1864dc(0x28b)]=_0x453473,this[_0x1864dc(0x3a9)]());}[_0x4a7abe(0x234)](){const _0x35153e=_0x4a7abe;super[_0x35153e(0x234)](),this[_0x35153e(0x2df)][_0x35153e(0x3e6)](),this[_0x35153e(0x226)][_0x35153e(0x2aa)](_0x5e1e67=>_0x5e1e67['dispose']());}[_0x4a7abe(0x3a2)](_0x4df0df){const _0x51399e=_0x4a7abe;return this[_0x51399e(0x226)][_0x51399e(0x439)](_0x4df0df)?this['_entities'][_0x51399e(0x1c8)](_0x4df0df)[_0x51399e(0x2ac)]:this['_entityInit$'][_0x51399e(0x31d)](I['filter'](_0x507ef2=>_0x507ef2[_0x51399e(0x1f5)]===_0x4df0df),I[_0x51399e(0x1ef)](_0x38e94c=>_0x38e94c['cursorInfo$']));}[_0x4a7abe(0x3a9)](){const _0x2d8eb0=_0x4a7abe;this[_0x2d8eb0(0x393)][_0x2d8eb0(0x228)](a[_0x2d8eb0(0x483)]['UNIVER_SHEET'])[_0x2d8eb0(0x31d)](I[_0x2d8eb0(0x239)](this['dispose$']))['subscribe'](async _0x372b24=>{const _0x34558c=_0x2d8eb0,_0x36cfe1=_0x372b24[_0x34558c(0x201)](),_0x5d1c23=await this[_0x34558c(0x485)](_0x36cfe1);this[_0x34558c(0x2df)]['next'](_0x5d1c23),this[_0x34558c(0x226)]['set'](_0x36cfe1,_0x5d1c23);}),this['_univerInstanceService'][_0x2d8eb0(0x228)](a[_0x2d8eb0(0x483)][_0x2d8eb0(0x3a3)])[_0x2d8eb0(0x31d)](I['takeUntil'](this[_0x2d8eb0(0x288)]))[_0x2d8eb0(0x31d)](I[_0x2d8eb0(0x1f9)](_0x12ab22=>!_0x12ab22['getUnitId']()[_0x2d8eb0(0x270)]('__')))[_0x2d8eb0(0x1f1)](async _0x18e047=>{const _0x3b3817=_0x2d8eb0,_0x2a0d58=_0x18e047[_0x3b3817(0x201)](),_0x310105=await this[_0x3b3817(0x2a6)](_0x2a0d58);this[_0x3b3817(0x2df)]['next'](_0x310105),this[_0x3b3817(0x226)][_0x3b3817(0x205)](_0x2a0d58,_0x310105);}),I[_0x2d8eb0(0x2cd)](this[_0x2d8eb0(0x393)][_0x2d8eb0(0x241)](a[_0x2d8eb0(0x483)][_0x2d8eb0(0x3a3)]),this[_0x2d8eb0(0x393)][_0x2d8eb0(0x241)](a[_0x2d8eb0(0x483)]['UNIVER_SHEET']))['pipe'](I[_0x2d8eb0(0x239)](this[_0x2d8eb0(0x288)]))[_0x2d8eb0(0x1f1)](_0x4dc6a4=>{const _0x489c28=_0x2d8eb0,_0x1a52a2=_0x4dc6a4[_0x489c28(0x201)](),_0x5fc84=this[_0x489c28(0x226)]['get'](_0x1a52a2);_0x5fc84&&(_0x5fc84['dispose'](),this['_entities'][_0x489c28(0x1dd)](_0x1a52a2));});}async[_0x4a7abe(0x485)](_0x1565af){const _0x43580b=_0x4a7abe,_0x1e54eb=await this[_0x43580b(0x28b)][_0x43580b(0x311)](_0x1565af),_0x53f1d9=this[_0x43580b(0x449)][_0x43580b(0x20d)](ge,_0x1565af,_0x1e54eb);return _0x53f1d9['init'](),_0x53f1d9;}async[_0x4a7abe(0x2a6)](_0x3d6d24){const _0x1d629f=_0x4a7abe,_0xbb0d15=await this[_0x1d629f(0x28b)]['requireSession'](_0x3d6d24),_0x59b61d=this[_0x1d629f(0x449)]['createInstance'](ve,_0x3d6d24,_0xbb0d15);return _0x59b61d['init'](),_0x59b61d;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a['Inject'](a[_0x4a7abe(0x22c)])),ce(0x2,a[_0x4a7abe(0x32c)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x2525f,_0x3ad9f0){const _0x143559=_0x4a7abe;let {radius:_0x427836,width:_0x4f7a95,height:_0x5249e0}=_0x3ad9f0;_0x427836=_0x427836!=null?_0x427836:0x0,_0x4f7a95=_0x4f7a95!=null?_0x4f7a95:0x1e,_0x5249e0=_0x5249e0!=null?_0x5249e0:0x1e;let _0xcf68f7=0x0,_0x26dc24=0x0,_0x463b82=0x0;_0xcf68f7=_0x26dc24=_0x463b82=Math[_0x143559(0x35d)](_0x427836,_0x4f7a95/0x2,_0x5249e0/0x2),_0x2525f[_0x143559(0x343)](),_0x2525f['moveTo'](_0xcf68f7,0x0),_0x2525f['lineTo'](_0x4f7a95-_0x26dc24,0x0),_0x2525f[_0x143559(0x21b)](_0x4f7a95-_0x26dc24,_0x26dc24,_0x26dc24,Math['PI']*0x3/0x2,0x0,!0x1),_0x2525f[_0x143559(0x34a)](_0x4f7a95,_0x5249e0-_0x463b82),_0x2525f[_0x143559(0x21b)](_0x4f7a95-_0x463b82,_0x5249e0-_0x463b82,_0x463b82,0x0,Math['PI']/0x2,!0x1),_0x2525f[_0x143559(0x34a)](0x0,_0x5249e0),_0x2525f[_0x143559(0x34a)](0x0,_0xcf68f7),_0x2525f[_0x143559(0x21b)](_0xcf68f7,_0xcf68f7,_0xcf68f7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2525f['closePath'](),_0x3ad9f0[_0x143559(0x42c)]&&(_0x2525f[_0x143559(0x2ae)](),_0x2525f[_0x143559(0x26a)]=_0x3ad9f0['fill'],_0x3ad9f0[_0x143559(0x455)]==='evenodd'?_0x2525f[_0x143559(0x42c)](_0x143559(0x421)):_0x2525f[_0x143559(0x42c)](),_0x2525f['restore']());}class re extends C[_0x4a7abe(0x40c)]{constructor(_0x9d450f,_0x41f07e){const _0x2442d8=_0x4a7abe;super(_0x9d450f,_0x41f07e),_(this,'color'),_(this,_0x2442d8(0x285)),(this['color']=_0x41f07e==null?void 0x0:_0x41f07e['color'],this[_0x2442d8(0x285)]=_0x41f07e==null?void 0x0:_0x41f07e[_0x2442d8(0x285)]);}static[_0x4a7abe(0x328)](_0x262fb4,_0x1c36b9){const _0x5bd17f=_0x4a7abe,{text:_0x9f1aed,color:_0x5e5b00}=_0x1c36b9;_0x262fb4[_0x5bd17f(0x2ae)](),_0x262fb4[_0x5bd17f(0x292)]=_0x5bd17f(0x231);const _0x53d261=_0x262fb4['measureText'](_0x9f1aed)[_0x5bd17f(0x2f0)],_0x185507=Math['min'](_0x53d261+0x2*le,Ue);Ot(_0x262fb4,{'height':X,'radius':0x4,'width':_0x185507,'fill':_0x5e5b00}),_0x262fb4[_0x5bd17f(0x26a)]='#FFF';const _0x2463b4=le,_0x2290dd=X-pt,_0x599fb7=Ue-0x2*le;if(_0x53d261>_0x599fb7){let _0x50fb34='',_0xa7f91f=0x0;for(const _0x11ab7c of _0x9f1aed){const _0x54fb0c=_0x262fb4['measureText'](_0x11ab7c)[_0x5bd17f(0x2f0)];if(_0xa7f91f+_0x54fb0c<=_0x599fb7-_0x262fb4[_0x5bd17f(0x2ab)]('...')[_0x5bd17f(0x2f0)])_0x50fb34+=_0x11ab7c,_0xa7f91f+=_0x54fb0c;else{_0x50fb34+=_0x5bd17f(0x45c);break;}}_0x262fb4[_0x5bd17f(0x3e8)](_0x50fb34,_0x2463b4,_0x2290dd);}else _0x262fb4[_0x5bd17f(0x3e8)](_0x9f1aed,_0x2463b4,_0x2290dd);_0x262fb4[_0x5bd17f(0x46f)]();}['_draw'](_0x1c8d36){const _0x2c03b2=_0x4a7abe;re[_0x2c03b2(0x328)](_0x1c8d36,this);}}const _e=_0x4a7abe(0x2a7),Rt=_0x4a7abe(0x3ca),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4a7abe(0x1bf);class Le{constructor(_0x41e70f,_0x3de8ce,_0x349927,_0x14100d){const _0xe101c3=_0x4a7abe;_(this,_0xe101c3(0x414),[]),_(this,_0xe101c3(0x3c9),null),_(this,'_textBubble',null),_(this,_0xe101c3(0x3f3),null),_(this,_0xe101c3(0x2f1),null),_(this,_0xe101c3(0x37d),null),(this['_cursor']=_0x41e70f,this[_0xe101c3(0x25a)]=_0x3de8ce,this[_0xe101c3(0x398)]=_0x349927,this[_0xe101c3(0x200)]=_0x14100d,this[_0xe101c3(0x250)]());}set[_0x4a7abe(0x243)](_0x4f5d51){const _0x319e0c=_0x4a7abe;_0x4f5d51?(this['_anchorDot']&&this[_0x319e0c(0x3f3)][_0x319e0c(0x227)](),this['_textBubble']&&this['_textBubble'][_0x319e0c(0x23e)]()):(this[_0x319e0c(0x3f3)]&&this[_0x319e0c(0x3f3)][_0x319e0c(0x23e)](),this[_0x319e0c(0x3aa)]&&this['_textBubble']['hide']());}['dispose'](){const _0x43cb30=_0x4a7abe;for(const _0x54d11c of this[_0x43cb30(0x414)])_0x54d11c[_0x43cb30(0x234)]();this[_0x43cb30(0x3aa)]&&this[_0x43cb30(0x3aa)]['dispose'](),this['_anchorDot']&&this[_0x43cb30(0x3f3)][_0x43cb30(0x234)](),this[_0x43cb30(0x3c9)]&&this[_0x43cb30(0x3c9)]['dispose'](),this[_0x43cb30(0x37d)]&&this[_0x43cb30(0x37d)]();}[_0x4a7abe(0x250)](){const _0x5da584=_0x4a7abe;var _0x200d6e;const {_docSkeleton:_0x1fa6ae,_document:_0x30ddbc}=this,{color:_0x89e5f5,name:_0x369267,ranges:_0x55e22b}=this['_cursor'],_0x3453f1=_0x30ddbc['getOffsetConfig'](),{docsLeft:_0x357b52,docsTop:_0x4a9815}=_0x3453f1,_0x1c4048=new T[(_0x5da584(0x2a8))](_0x3453f1,_0x1fa6ae);for(const {startOffset:_0x3ad5cf,endOffset:_0x1f294a,rangeType:_0xc7f038,segmentId:_0x30bc22,segmentPage:_0x25ec20,collapsed:_0x1a161a,isActive:_0x5974fd}of _0x55e22b){const _0x144d0e=_0x1fa6ae['findNodePositionByCharIndex'](_0x3ad5cf,!0x0,_0x30bc22,_0x25ec20);let _0x1cbe35=_0x1fa6ae['findNodePositionByCharIndex'](_0x1f294a,!0x0,_0x30bc22,_0x25ec20);if(_0x1cbe35==null&&(_0x1cbe35=_0x1fa6ae[_0x5da584(0x214)](_0x1f294a-0x1,!0x1,_0x30bc22,_0x25ec20)),_0x5974fd){const {contentBoxPointGroup:_0x2e1889}=_0x1c4048['getRangePointData'](_0x1cbe35,_0x1cbe35);if(_0x2e1889['length']===0x0)continue;this[_0x5da584(0x3f6)](_0x89e5f5,_0x2e1889,_0x357b52,_0x4a9815,_0x369267),this['_eventUnsubscribe']=this[_0x5da584(0x276)]();}if(_0x144d0e&&_0x1cbe35){if(_0xc7f038===a[_0x5da584(0x27b)][_0x5da584(0x2c7)]){const _0x8b8313=new T[(_0x5da584(0x2be))](_0x3453f1,_0x1fa6ae),{pointGroup:_0x155dbb}=(_0x200d6e=_0x8b8313[_0x5da584(0x29c)](_0x144d0e,_0x1cbe35))!=null?_0x200d6e:{};if(_0x155dbb==null||_0x155dbb[_0x5da584(0x3e3)]===0x0)continue;this[_0x5da584(0x3b8)](_0x89e5f5,_0x155dbb,_0x357b52,_0x4a9815);}else{if(!_0x1a161a){const {borderBoxPointGroup:_0x741225}=_0x1c4048['getRangePointData'](_0x144d0e,_0x1cbe35);if(_0x741225[_0x5da584(0x3e3)]===0x0)continue;this[_0x5da584(0x490)](_0x89e5f5,_0x741225,_0x357b52,_0x4a9815);}}}}}[_0x4a7abe(0x3f6)](_0x32eba2,_0x5efcc7,_0x109e3d,_0x229c00,_0x234f30){const _0x56802b=_0x4a7abe,_0x59546a=this[_0x56802b(0x2c0)](_0x5efcc7),{left:_0x2e53e0,top:_0x259ea0,height:_0x12db8a}=_0x59546a,_0x1ffa1f=this['_getScale'](),_0x2f4569=Nt/_0x1ffa1f,_0x5c106=new C[(_0x56802b(0x412))](_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00,'height':_0x12db8a,'width':Dt,'fill':_0x32eba2||C[_0x56802b(0x397)](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'strokeWidth':_0x2f4569,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x5c106,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x5c106,T[_0x56802b(0x1f4)]);const _0x13bcc5=new C[(_0x56802b(0x412))](_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00-he/0x2,'height':he,'width':he,'fill':_0x32eba2||C[_0x56802b(0x397)](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'strokeWidth':0x0,'stroke':_0x32eba2||C['getColor'](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'evented':!0x1});this[_0x56802b(0x3f3)]=_0x13bcc5,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x13bcc5,T['TEXT_RANGE_LAYER_INDEX']);const _0x176c38=new re(_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00-X,'text':_0x234f30,'color':_0x32eba2});this[_0x56802b(0x3aa)]=_0x176c38,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x176c38,T[_0x56802b(0x1f4)]),this[_0x56802b(0x243)]=!0x1;}[_0x4a7abe(0x276)](){const _0x2e0836=_0x4a7abe,_0x33e148=this[_0x2e0836(0x3c9)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x11c9a4=_0x2e0836;this[_0x11c9a4(0x243)]=!0x0;}),_0x5c94c7=this['_anchor'][_0x2e0836(0x371)][_0x2e0836(0x2db)](()=>{const _0x4907b5=_0x2e0836;this[_0x4907b5(0x2f1)]&&clearTimeout(this[_0x4907b5(0x2f1)]),this[_0x4907b5(0x2f1)]=setTimeout(()=>{const _0x1f42a5=_0x4907b5;this[_0x1f42a5(0x243)]=!0x1;},0x7d0);});return()=>{const _0x2faba1=_0x2e0836;_0x33e148['unsubscribe'](),_0x5c94c7[_0x2faba1(0x2c4)]();};}[_0x4a7abe(0x490)](_0x3a7c3c,_0x34a9a1,_0x57ba70,_0xb45625){const _0x349bc9=_0x4a7abe,_0x43f454=new a['ColorKit'](_0x3a7c3c)['setAlpha'](0.2)['toRgbString'](),_0x283b2f=new C[(_0x349bc9(0x207))](Rt+a[_0x349bc9(0x32f)](H),{'pointsGroup':_0x34a9a1,'fill':_0x43f454||C[_0x349bc9(0x397)](a[_0x349bc9(0x379)]['black'],0.2),'left':_0x57ba70,'top':_0xb45625,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x349bc9(0x414)]['push'](_0x283b2f),this[_0x349bc9(0x25a)][_0x349bc9(0x443)](_0x283b2f,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4a7abe(0x3b8)](_0x555ba0,_0x11d653,_0x251bad,_0x3088dd){const _0x2944d8=_0x4a7abe,_0xdf8370=new a[(_0x2944d8(0x48f))](_0x555ba0)[_0x2944d8(0x380)](0.2)[_0x2944d8(0x2e6)](),_0x2f3428=new C[(_0x2944d8(0x207))](bt+a[_0x2944d8(0x32f)](H),{'pointsGroup':_0x11d653,'fill':_0xdf8370||C[_0x2944d8(0x397)](a['COLORS']['black'],0.2),'left':_0x251bad,'top':_0x3088dd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2944d8(0x414)][_0x2944d8(0x272)](_0x2f3428),this['_scene']['addObject'](_0x2f3428,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4a7abe(0x2c0)](_0x11a69d){const _0x44b7a9=_0x11a69d[0x0],_0x20d1b7=_0x44b7a9[0x0],_0x5638d8=_0x44b7a9[0x2],{x:_0x769aa4,y:_0x23a3e5}=_0x20d1b7,{x:_0x353a3a,y:_0x2d250d}=_0x5638d8;return{'left':_0x769aa4,'top':_0x23a3e5,'width':_0x353a3a-_0x769aa4,'height':_0x2d250d-_0x23a3e5};}[_0x4a7abe(0x1f2)](){const _0x2a1905=_0x4a7abe,{scaleX:_0x4ab412,scaleY:_0x469cde}=this[_0x2a1905(0x25a)][_0x2a1905(0x45f)]();return Math['max'](_0x4ab412,_0x469cde);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x262cf7,_0x30f1aa,_0x477f9a,_0x57d6e0)=>{const _0x1bdb68=_0x4a7abe;for(var _0x46e1fc=_0x57d6e0>0x1?void 0x0:_0x57d6e0?Lt(_0x30f1aa,_0x477f9a):_0x30f1aa,_0x45ee3f=_0x262cf7[_0x1bdb68(0x3e3)]-0x1,_0x36c107;_0x45ee3f>=0x0;_0x45ee3f--)(_0x36c107=_0x262cf7[_0x45ee3f])&&(_0x46e1fc=_0x36c107(_0x46e1fc)||_0x46e1fc);return _0x46e1fc;},q=(_0x63aec7,_0x28195c)=>(_0x559e5f,_0x29c930)=>_0x28195c(_0x559e5f,_0x29c930,_0x63aec7);let Ee=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x359f13,_0x4dc287,_0x5da428,_0x42252b,_0x4a7c05){const _0x8ca2ba=_0x4a7abe;super(),_(this,_0x8ca2ba(0x34f),[]),_(this,_0x8ca2ba(0x247),[]),(this['_context']=_0x359f13,this[_0x8ca2ba(0x30b)]=_0x4dc287,this[_0x8ca2ba(0x1fc)]=_0x5da428,this[_0x8ca2ba(0x263)]=_0x42252b,this['_themeService']=_0x4a7c05,this['_init']());}[_0x4a7abe(0x3a9)](){const _0x5425c6=_0x4a7abe,_0x2af4a7=this['_context'][_0x5425c6(0x1c7)],_0x3ce163=this['_docSkeletonManagerService'];this[_0x5425c6(0x360)](I[_0x5425c6(0x26e)]([this[_0x5425c6(0x1fc)][_0x5425c6(0x3a2)](_0x2af4a7),this['_themeService'][_0x5425c6(0x418)]])[_0x5425c6(0x31d)]($[_0x5425c6(0x314)](([_0x21a53b,_0xd15346])=>({'skeleton':_0x3ce163['getSkeleton'](),'cursors':[..._0x21a53b[_0x5425c6(0x329)]()][_0x5425c6(0x47d)](_0xd209cc=>({..._0xd209cc,'color':this[_0x5425c6(0x3e7)][_0x5425c6(0x400)](_0xd209cc[_0x5425c6(0x217)])}))})))['subscribe'](_0x58735a=>{const _0x1c040d=_0x5425c6;if(this[_0x1c040d(0x42b)](),_0x58735a){const {skeleton:_0x128a41,cursors:_0x25721c}=_0x58735a;this[_0x1c040d(0x459)](_0x128a41,_0x25721c);}})),this['_initResize'](),this[_0x5425c6(0x2cc)]();}['_updateCollabCursors'](_0x5b874b,_0x2f6e99){const _0x51e9a3=_0x4a7abe,{scene:_0x33e282,mainComponent:_0x1073b8}=this['_context'],_0x4a9392=_0x2f6e99[_0x51e9a3(0x314)](_0x3a4422=>new Le(_0x3a4422,_0x33e282,_0x5b874b,_0x1073b8));this[_0x51e9a3(0x34f)]=_0x4a9392,this[_0x51e9a3(0x247)]=_0x2f6e99;}['_refreshCollabCursors'](){const _0x30dab5=_0x4a7abe;this['_removeCollabCursors']();const {scene:_0x3b1a7a,mainComponent:_0x4fad72}=this[_0x30dab5(0x42e)],_0x3a194e=this[_0x30dab5(0x30b)][_0x30dab5(0x3da)](),_0x27c997=this[_0x30dab5(0x247)]['map'](_0x3750a2=>new Le(_0x3750a2,_0x3b1a7a,_0x3a194e,_0x4fad72));this[_0x30dab5(0x34f)]=_0x27c997;}[_0x4a7abe(0x42b)](){const _0xd3e235=_0x4a7abe;this[_0xd3e235(0x34f)][_0xd3e235(0x2aa)](_0x14183a=>_0x14183a[_0xd3e235(0x234)]()),this[_0xd3e235(0x34f)]=[];}['_initCommandExecutedListener'](){const _0x254c9e=_0x4a7abe,_0x222845=[T[_0x254c9e(0x22d)]['id']];this['disposeWithMe'](this[_0x254c9e(0x263)][_0x254c9e(0x453)](_0x25cc50=>{const _0x44b017=_0x254c9e;_0x222845[_0x44b017(0x3fc)](_0x25cc50['id'])&&_0x25cc50[_0x44b017(0x43f)]['unitId']===this[_0x44b017(0x42e)][_0x44b017(0x1c7)]&&this['_refreshCollabCursors']();}));}[_0x4a7abe(0x3bb)](){const _0x1ffc77=_0x4a7abe;this['disposeWithMe'](a[_0x1ffc77(0x350)](this[_0x1ffc77(0x42e)]['engine'][_0x1ffc77(0x1b9)])[_0x1ffc77(0x31d)]($[_0x1ffc77(0x1f9)](_0x19ff53=>_0x19ff53[_0x1ffc77(0x2b1)]===C[_0x1ffc77(0x3a8)][_0x1ffc77(0x452)]),$[_0x1ffc77(0x387)](0x10))[_0x1ffc77(0x1f1)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x4a7abe(0x32c)](V[_0x4a7abe(0x29a)])),q(0x2,a[_0x4a7abe(0x32c)](F)),q(0x3,a[_0x4a7abe(0x434)]),q(0x4,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x20f)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4a7abe(0x40c)]{constructor(_0x537ea7,_0x4dddb7){const _0x53db83=_0x4a7abe;super(_0x537ea7,_0x4dddb7),_(this,_0x53db83(0x3f0)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x53db83(0x3bf),''),_(this,_0x53db83(0x260),_0x53db83(0x28e)),_(this,_0x53db83(0x1db)),(_0x4dddb7&&this[_0x53db83(0x426)](_0x4dddb7),this[_0x53db83(0x203)][_0x53db83(0x2db)](()=>this[_0x53db83(0x426)]({'hovered':!0x0})),this[_0x53db83(0x371)][_0x53db83(0x2db)](()=>this[_0x53db83(0x426)]({'hovered':!0x1})));}[_0x4a7abe(0x426)](_0x47bda6){const _0x55789c=_0x4a7abe;var _0x1e9091,_0x12594d,_0x518de4,_0x1d23a8,_0x5f2d09,_0x5bafb6;this['_color']=(_0x1e9091=_0x47bda6['color'])!=null?_0x1e9091:this[_0x55789c(0x3f0)],this[_0x55789c(0x21f)]=(_0x12594d=_0x47bda6['hovered'])!=null?_0x12594d:this[_0x55789c(0x21f)],this[_0x55789c(0x23c)]=(_0x518de4=_0x47bda6[_0x55789c(0x1f8)])!=null?_0x518de4:this['_range'],this[_0x55789c(0x3bf)]=(_0x1d23a8=_0x47bda6[_0x55789c(0x1eb)])!=null?_0x1d23a8:this[_0x55789c(0x3bf)],this[_0x55789c(0x260)]=(_0x5f2d09=_0x47bda6['labelPosition'])!=null?_0x5f2d09:this[_0x55789c(0x260)],this[_0x55789c(0x1db)]=(_0x5bafb6=_0x47bda6[_0x55789c(0x2ed)])!=null?_0x5bafb6:this[_0x55789c(0x1db)],this['transformByState']({'width':_0x47bda6['width'],'height':_0x47bda6['height']});}[_0x4a7abe(0x273)](_0x5c6fab){const _0x13a003=_0x4a7abe,{row:_0x4d584a,column:_0x168a2d}=_0x5c6fab;if(_0x4d584a>=this[_0x13a003(0x23c)][_0x13a003(0x369)]&&_0x4d584a<=this[_0x13a003(0x23c)][_0x13a003(0x1ce)]&&_0x168a2d>=this[_0x13a003(0x23c)]['startColumn']&&_0x168a2d<=this[_0x13a003(0x23c)][_0x13a003(0x2fb)]){this[_0x13a003(0x426)]({'hovered':!0x0});return;}this[_0x13a003(0x426)]({'hovered':!0x1});}[_0x4a7abe(0x367)](_0x5cb3eb){return!0x1;}['_draw'](_0x13a15b){const _0x668880=_0x4a7abe;C['Rect'][_0x668880(0x328)](_0x13a15b,{'width':this[_0x668880(0x2f0)],'height':this[_0x668880(0x25d)],'strokeWidth':Pt,'stroke':this[_0x668880(0x3f0)],'evented':!0x1,'fill':this[_0x668880(0x1db)]}),this[_0x668880(0x21f)]&&(_0x13a15b[_0x668880(0x2ae)](),_0x13a15b[_0x668880(0x32a)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x668880(0x3ce)?0x0:-X),re[_0x668880(0x328)](_0x13a15b,{'text':this['_name'],'color':this[_0x668880(0x3f0)]}),_0x13a15b[_0x668880(0x46f)]());}}function _0x3550(){const _0x721d9d=['getMember','currentUsage','_clearOtherTimers','_docSyncEditingCollabCursorService','random','stage','_id','UniverIcon','children','UniverCollaborationClientUIPlugin','beginPath','setItem','REDEMPTION_CODE_INACTIVE','cursorInfo','REDEMPTION_USER_NOT_ELIGIBLE','roomMembers$','_refRangeService','lineTo','LICENSE_MAX_UNITS_EXCEEDED','\x20at\x20','INTERNAL_ERROR','history','_cursorShapes','fromEventSubject','SetWorksheetActivateCommand','WebBrowserSingleActiveUnitService','sessionStatus$','doc.mutation.rich-text-editing','textRanges','transformSelections','M0\x200H16V16H0z','FromArray','runRefRangeMutations','dirtyRanges','use','_initEntityListener','min','ENTITLE_COUPON_USED_UP','_lastPointer','disposeWithMe','serializeRangeWithSheet','SetTextSelectionsOperation','_revisionService','colno','_configService','collaboration.closeRoom','triggerDblclick','jiqing.500','startRow','jsxs','APPLY_NON_SEQUENTIAL_REVISION','REDEMPTION_CODE_NOT_STARTED','_initUserListener','saveImage','replace','Success','onPointerLeave$','_initStatusListener','unhandledrejection','SetFormulaCalculationStartMutation','contains','_colorAssignService','debug','touchDependencies','COLORS','INVITE_CODE_HAS_BEEN_UES','stack','DeleteRangeMoveLeftCommandId','_eventUnsubscribe','WebSocketService','tag','setAlpha','round','_releaseCalculationLimit','_monkeyPatchLogService','Failed','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','univer-flex\x20univer-items-center','throttleTime','handleDeleteRangeMoveLeft','asObservable','APPLY_PERMISSION_DENIED','isActive','_initUnhandledRejectionListener','LocaleService','handleInsertCol','saveOfflineData','WECHAT_HAS_BEEN_BOUND','useObservable','SetFormulaCalculationNotificationMutation','_univerInstanceService','_localStorageService','ENTITLE_COUPON_EXPIRED','_initEvent','getColor','_docSkeleton','_docStateChangeManagerService','[Window\x20Error]:\x20','117smTXfu','INVITE_CODE_REQUIRED','_uiPartsService','SOCKET_FAILED','exhaustSavingTask','2277125XQmDCO','CollaborationEvent','getCollabCursors$','UNIVER_DOC','NOT_FOUND','LOCAL_CACHE_INTERVAL','2552326ZprbPP','HTTPService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_init','_textBubble','add','RemoveColCommandId','TOO_MANY_REQUESTS','_messageService','registerDependencies','useCallback','sessionTicket','START_CALCULATION','_applyCommand','_transformHistoryAndStateStack','isArray','DataLoaderService','[CollaborationDataLoaderController]','_drawRectRange','collabStatus.notCollab','url(#$1','_initResize','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getActiveSheet','updateOfflineData','_name','_httpService','_localCacheService','getFormulaLimitStatusUrl','PENDING','INotificationService','collaboration.single-unit.warning','LOCAL_CACHE_INTERVAL_KEY','setParam','data','_anchor','collab-text-range-','AUTHORIZE_CODE_ILLEGAL','/run/','editingUnit','bottom','RxDisposable','getActiveRange','body','_online','_toggleOffline','_transformService','parseInt','getConfig','INVALID_ARGUMENT','selections','UnitStatus','getSkeleton','USER_NOT_INVITED_CODE','href','ENTITLE_CHAT_LIMIT_EXCEED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','mergeOverrideWithDependencies','syncEditingCollabCursor','wsSessionTicketUrl','length','clsx','_onRefRangeChange','complete','_themeService','fillText','currentColor','handleInsertRangeMoveDown','with','find','Optional','isFormulaString','toStringTag','_color','clearInterval','getCoordByCell','_anchorDot','docStateChange$','collabStatus.syncing','_drawAnchor','blue.400','fromEvent','getMemberID','attrs','OffLineIcon','includes','YUUMI_ALL_TABLES_IS_INVALID','/universer-api/frontend/logs','REDEMPTION_CODE_FULLY_REDEEMED','getColorFromTheme','InsertRangeMoveRightCommandId','m1Prime','addObjects','collabStatus.conflict','_cachedData','clipPath','IMessageService','isTransformMutationFailure','code','debounce','_instanceService','Shape','_updateSubUnitFromURLParams','createElement','LICENSE_EXPORT_SIZE_EXCEEDED','unit','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','Rect','ONLINE','_shapes','0\x200\x2016\x2016','_onCursorDelete','setTimeout','currentTheme$','getItem','mapTo','_maxFormulaLimit','_sheetSkeletonManagerService','ticket','createSocket','_scheduleHeartbeat','actions','evenodd','undoState','activeSheet$','_initDependencies','beforeCommandExecuted','setShapeProps','_docTransformSelectionsService','getRelativeToViewportCoord','2124PFplxb','CommandType','_removeCollabCursors','fill','from','_context','yellow.400','_ensureSubject','CONFLICT','svg','_handleJoinEvent','ICommandService','next','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_pollingInterval','displayName','has','permission.title','SUBMIT_CHANGESET_TIMEOUT','DEFAULT_WS_SESSION_TICKET_URL','MOBILE_VERIFY_CODE_MISMATCH','SNAPSHOT_INVALID_SNAPSHOT','params','BuiltInUIPart','defs','toString','addObject','status$','1em','DesktopCollaborationStatusDisplayController','USER_IS_ANONYMOUS','_collabCursorState$','_injector','_initCommandInterceptor','IDocClipboardService','ranges','_checkCalculationAvailable','RemoveRowCommandId','white','OTHER_CLIENTS_EDITING','eventID','resize','onCommandExecuted','purple.300','fillRule','/universer-api/license/formula/limit/start','clearTimeout','on-line-icon_clip0_910_349','_updateCollabCursors','APPLY_REVISION_CONFILICT','roomMembers','...','_taskIds','SheetCollabCursorShape','getAncestorScale','getFocusedUnit','_imageIoService','IUIPartsService','getVpScrollXYInfoByPosToVp','transformStateCache','onLocalMutation','SheetSkeletonManagerService','replaceDocRanges','redoState','whenReady','now','_handleEvent','YUUMI_NO_CUBOID_FOR_QUESTION','override','getCollabEntity$','restore','SOCKET_FAILED_RETRY','_hasFormulaInDirtyRanges','idSuffix','NO_OTHER_CLIENTS_EDITING','_transformPreviousActiveRange','_getFormulaLimitStatus','EMAIL_HAS_BEEN_BOUND','ALREADY_EXISTS','RefRangeService','Tooltip','_memberID','_docTransformIMECacheService','getParam','flatMap','_setFormulaLimitStatus','none','red.300','_getMergeRange','_selfUnitIDs','UniverInstanceType','FormulaExecuteStageType','_startSheetCollabCursor','totalFormulasToCalculate','saveTaskMap','10080864ntUGfx','_status$','transformMutationsWithChangeset','RevisionService','_lastResponseTimestamp','disableLocalCache','PY_RUNTIME_SCRIPT_ERROR','ColorKit','_drawTextRange','ENTITLE_INVALID_COUPON_CODE','Plugin','SessionStatus','getUnit','univer-mr-2\x20univer-flex\x20univer-text-xl','setStateCache','onTransformChange$','onRendered','CollaborationStatus','_disabled','CHANGESET_REVISION_CONFILICT','invokeId','rgba(255,\x20255,\x20255,\x200.01)','addEventListener','UniverCollaborationClientPlugin','functionsExecutedState','forwardRef','post','result','_transformUndoRedoStack','unitId','get','entityInit$','urlChange$','event$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','USERS_LEAVE','endRow','USER_NOT_FOUND','Error','6764hNwMLO','MOBILE_HAS_BEEN_BOUND','key','replaceState','formula.calculation.unable','CollaborationController','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_notificationService','releaseFormulaLimitUrl','addClipboardHook','_backgroundColor','ILogService','delete','assignAColorForMemberID','stringify','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','InsertColCommandId','formula.calculation.waiting','distinctUntilChanged','CollaborationUIEventId','toDisposable','IUniverInstanceService','LICENSE_IMPORT_SIZE_EXCEEDED','collabCursorState$','join','shift','name','Vector2','getUnhiddenWorksheets','assign','switchMap','searchParams','subscribe','_getScale','YUUMI_UNABLE_LOAD_URL','TEXT_RANGE_LAYER_INDEX','unitID','send','subUnitId','range','filter','DocStateChangeManagerService','_removeClearOtherTimer','_collabCursorController','_renderManagerService','location','CollaborationUIEventService','_document','getUnitId','newValue','onPointerEnter$','mask','set','YUUMI_URL_COL_OUT_OF_RANGE','RegularPolygon','registerBeforeClose','7snBShG','Unknown\x20user','_cursorInfo$','handleMoveRange','createInstance','_showGuardMessage','ThemeService','catch','[Unhandled\x20Rejection]:\x20','742810pnGEYC','UNRECOGNIZED','findNodePositionByCharIndex','xlink:href','getRenderById','color','useDependency','RemoteUniscriptService','lineno','arc','UNDEFINED','SYNCED','getCurrentSelections','_hovered','LOGIN_TOKEN_PROCESSING_FAILED','_toggleOnline','UPDATE_CURSOR','[RemoteUniscriptService]:\x20no\x20focused\x20unit','reconnect','pushState','_entities','hide','getTypeOfUnitAdded$','MessageType','IBeforeCloseService','some','Injector','SetDocZoomRatioOperation','session.collaboration-timeout','executeCommand','MemberService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','shareReplay','_initStatusComponent','dispose','YUUMI_AI_RUN_FAILED','entries','row','_startCalculationLimit','takeUntil','setActiveRange','useRef','_range','_getSaveTimeout','show','colorChannel1','ENTITLE_REPORT_LIMIT_EXCEED','getTypeOfUnitDisposed$','BehaviorSubject','_hover','_collaborationUIEventService','REDEMPTION_CODE_HAS_BEEN_CREATED','LICENSE_DISTRO_REJECTED','_cursors','skeleton','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','IRenderManagerService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','/universer-api/license/formula/limit/status','memberID','_collaborationController','_registerRenderDependencies','_render','loadUnit','Module','focused$','PAYMENT_CHANNEL_NOT_SUPPORT','split','Loading','OFFLINE','_setupSubUnitSync','message','_scene','_currentUsage','AWAITING','height','defineProperty','runId','_labelPosition','jsx','TEXT','_commandService','_config','isFormulaId','translate(.97)','EMAIL_VERIFY_CODE_MISMATCH','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','deserializeRangeWithSheet','fillStyle','off-line-icon_clip0_910_343','session.connection-failed','getUniverSheetInstance','combineLatest','stageInfo','startsWith','_localeService','push','onMouseMove','BrowserCollaborationSocketService','APPLY_DUPLICATED','_handleHover','_roomMembers$','Rectangle','loadOfflineData','DependentOn','DOC_RANGE_TYPE','IConfigService','substring','/universer-api/license/formula/limit/done','imageSourceType','registerRenderModule','CollaborationSocketService','currentSkeleton$','handleIRemoveRow','filename','text','EffectRefRangId','SNAPSHOT_HAS_BEEN_REMOVED','dispose$','APPLY_REJECT','removeEventListener','_collabSessionService','path','?taskId=','top','collabStatus.offline','ENTITLE_USE_COUPON_NOT_1ST_TRADE','error','font','Workbook','_unitStatus','_memberService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','PERMISSION_DENIED','isTransformMutationsWithChangesetSuccess','size','DocSkeletonManagerService','UNAUTHENTICATED','getRangePointData','_createSocketURL','_handleLeaveEvent','_collaborationSessionService','init','_syncEditingCollabCursorService','registerRefRange','deepClone','all','_onCursorUpdate','_startDocCollabCursor','collab-text-anchor-','NodePositionConvertToCursor','getLocalCacheKey','forEach','measureText','cursorInfo$','m2Prime','save','_updateLocalCursor','DocIMEInputManagerService','type','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','13281232OzTRXD','getCellPositionByOffset','selection','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getCellMatrix','YUUMI_ASYNCIO_CANCELLED','pluginName','_getSessionTicket','getSheetBySheetId','CanceledError','HEADER_MENU','NodePositionConvertToRectRange','then','_getAnchorBounding','url(#on-line-icon_clip0_910_349)','transformIMECache','YUUMI_CONNECTOR_URL_NOT_FOUND','unsubscribe','_checkAndWaitForCalculationPermission','ISnapshotServerService','RECT','_session','on-line-icon','onStarting','_docTransformStateCacheService','_initCommandExecutedListener','merge','subunit','_unitOnClients','ENTITLE_NEED_BILLING_ADDRESS','LOGIN_FAILED','WebURLService','collab-client.tooltip.reconnect','_initWindowErrorListener','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','session.will-retry','_urlService','off-line-icon','socket$','mutations','subscribeEvent','transformMutation','source','Disposable','_entityInit$','reason','CONNECTOR_DATA_TOO_LARGE','_assignedColors','_handleHeartbeatEvent','getUndoRedoMutationParamsCache','_colorIndex','toRgbString','div','[LogService\x20Error]:\x20','collabStatus.synced','_setupBeforeClosingHandler','setInterval','_saveCache','backgroundColor','_beforeCloseService','IURLService','width','_hideTimer','ITransformService','storage','NOT_COLLAB','ENTITLE_DUP_SUBSCRIPTION','transformRemoteChangeset','addHandlerCallback','INVALID_INVITE_CODE','CollaborationSessionService','registerComponent','endColumn','symbol','trim','_registerDependencies','unshift','getStateCache','MUTATION','YUUMI_SUBSCRIPTION_NOT_FOUND','_scheduleClearOtherTimer','debounceTime','getValue','limitInfo','_uploadLog','origin','SUCCESS','_scheduleSaving','_docSkeletonManagerService','RichTextEditingMutation','CollaborationDataLoaderController','1070503KzYION','_send','_clearPolling','requireSession','_updateURLWithCurrentState','IRemoteInstanceService','map','Subject','getCurrentRevOfUnit','handleInsertRangeMoveRight','black','getOwnPropertyDescriptor','REDEMPTION_INVALID_CODE','univerjs-icon\x20univerjs-icon-','InsertRowCommandId','pipe','COMPLETION_FINISHED','ILocalCacheService','DATA_SOURCE_TOO_LARGE','_saveTaskMap','CURRENT_STATUS_CANNOT_OPERATE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','UNIVER_SHEET','DocSelectionManagerService','runOnServer','SetSelectionsOperation','drawWith','values','transform','string','Inject','_logService','_getSheetObject','generateRandomId','OTHER_CLIENT_EDITING','ENTITLE_INSUFFICIENT_QUOTA','getViewport','_dataLoaderService','YUUMI_RATE_OVER_LIMIT','ISocketService','_heartbeatTimer','Tools','getSheetId'];_0x3550=function(){return _0x721d9d;};return _0x3550();}var wt=Object[_0x4a7abe(0x319)],yt=(_0x587126,_0x21f875,_0x3338e4,_0x253f5c)=>{const _0x474f8=_0x4a7abe;for(var _0x478f0b=_0x253f5c>0x1?void 0x0:_0x253f5c?wt(_0x21f875,_0x3338e4):_0x21f875,_0x1442a4=_0x587126[_0x474f8(0x3e3)]-0x1,_0x459a06;_0x1442a4>=0x0;_0x1442a4--)(_0x459a06=_0x587126[_0x1442a4])&&(_0x478f0b=_0x459a06(_0x478f0b)||_0x478f0b);return _0x478f0b;},ue=(_0x532fc7,_0x5de633)=>(_0x1e8793,_0x222798)=>_0x5de633(_0x1e8793,_0x222798,_0x532fc7);const $t=0x1389;let Ce=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x182ab7,_0x29264e,_0xec329,_0x384c85){const _0x5cb118=_0x4a7abe;super(),_(this,_0x5cb118(0x247),new Set()),_(this,_0x5cb118(0x35f),null),(this[_0x5cb118(0x42e)]=_0x182ab7,this['_sheetSkeletonManagerService']=_0x29264e,this[_0x5cb118(0x1fc)]=_0xec329,this[_0x5cb118(0x3e7)]=_0x384c85,this[_0x5cb118(0x3a9)]());}[_0x4a7abe(0x3a9)](){const _0x13631c=_0x4a7abe;this[_0x13631c(0x41c)]['currentSkeleton$']['pipe']($[_0x13631c(0x239)](this['dispose$']),$['switchMap'](_0x2921e5=>{const _0x822019=_0x13631c;if(_0x2921e5){const _0x3e8fb9=_0x2921e5['sheetId'];return I[_0x822019(0x26e)](this['_collabCursorController'][_0x822019(0x3a2)](this['_context'][_0x822019(0x1c7)]),this[_0x822019(0x3e7)][_0x822019(0x418)])['pipe']($[_0x822019(0x314)](([_0x213e66,_0x2dfe56])=>{const _0x589de8=_0x822019,_0x3573b1=new Map();return _0x213e66[_0x589de8(0x2aa)]((_0x490583,_0x13d2f7)=>{const _0x2d30b4=_0x589de8;if(_0x490583['sheetID']===_0x3e8fb9){const _0x4d68ba={..._0x490583};_0x4d68ba[_0x2d30b4(0x217)]=this[_0x2d30b4(0x3e7)][_0x2d30b4(0x400)](_0x490583[_0x2d30b4(0x217)]),_0x3573b1['set'](_0x13d2f7,_0x4d68ba);}}),{'skeleton':_0x2921e5,'cursors':_0x3573b1};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x13631c(0x1f1)](({skeleton:_0x2dbc1,cursors:_0x20619a})=>{const _0xa6e18f=_0x13631c;this[_0xa6e18f(0x42b)](),_0x2dbc1&&this[_0xa6e18f(0x459)](_0x2dbc1,_0x20619a);}),this['_sheetSkeletonManagerService'][_0x13631c(0x282)][_0x13631c(0x1f1)](_0x347a44=>{const _0x583510=_0x13631c;if(_0x347a44==null)return;const {skeleton:_0x4e7ec1}=_0x347a44,{scene:_0x8ba0f8}=this[_0x583510(0x42e)];_0x8ba0f8['onPointerMove$'][_0x583510(0x2db)](a[_0x583510(0x40a)](_0x46f583=>{const _0x49f000=_0x583510;var _0x473446,_0xeeb589;const {offsetX:_0x194d8b,offsetY:_0x55b181}=_0x46f583,{x:_0x140ba8,y:_0x48752e}=_0x8ba0f8[_0x49f000(0x428)](C[_0x49f000(0x1ec)]['FromArray']([_0x194d8b,_0x55b181])),{scaleX:_0x126b0a,scaleY:_0x5b2d7c}=_0x8ba0f8[_0x49f000(0x45f)](),_0x1d2e16=_0x8ba0f8[_0x49f000(0x332)](C['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x5385f6=_0x8ba0f8[_0x49f000(0x463)](C['Vector2'][_0x49f000(0x358)]([_0x140ba8,_0x48752e]),_0x1d2e16),_0x34b3ca=_0x4e7ec1[_0x49f000(0x2b4)](_0x194d8b,_0x55b181,_0x126b0a,_0x5b2d7c,_0x5385f6);((_0x473446=this[_0x49f000(0x35f)])==null?void 0x0:_0x473446['column'])===_0x34b3ca['column']&&((_0xeeb589=this[_0x49f000(0x35f)])==null?void 0x0:_0xeeb589['row'])===_0x34b3ca[_0x49f000(0x237)]||this[_0x49f000(0x247)][_0x49f000(0x2aa)](_0x5d4ca2=>{_0x5d4ca2['onMouseMove'](_0x34b3ca);});},0x64));});}['_updateCollabCursors'](_0x569e35,_0xe09400){const _0xdd576e=_0x4a7abe;var _0x3968f9;const _0x8f9a6c=(_0x3968f9=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3968f9[_0xdd576e(0x248)];if(!_0x8f9a6c)return;const _0x50b5fd=this[_0xdd576e(0x32e)]();if(!_0x50b5fd)return;this[_0xdd576e(0x247)][_0xdd576e(0x2aa)](_0x368606=>{_0x368606['makeDirty']();});const {scene:_0x32edab}=_0x50b5fd,_0x15c206=xt(Array[_0xdd576e(0x42d)](_0xe09400['values']()))[_0xdd576e(0x314)](_0x4a8e36=>{const _0x465e2e=_0xdd576e,{color:_0x5134a0,range:_0x704997,name:_0x5bc3d3,selection:_0xdfec17,sheetID:_0x45de84}=_0x4a8e36,{startColumn:_0x1a4c8b,startRow:_0x42e426,endColumn:_0xc4110d,endRow:_0x41f48f}=_0x704997,_0x17b610=J[_0x465e2e(0x3f2)](_0x42e426,_0x1a4c8b,_0x32edab,_0x8f9a6c),_0x7c6d74=J['getCoordByCell'](_0x41f48f,_0xc4110d,_0x32edab,_0x8f9a6c),{columnHeaderHeightAndMarginTop:_0x2d35bf}=_0x8f9a6c,{startX:_0x18c97c,startY:_0x3ea8ea}=_0x17b610,{endX:_0x2d3370,endY:_0x4a291a}=_0x7c6d74,_0xbc5c5f=_0x2d3370-_0x18c97c,_0x54fc60=_0x4a291a-_0x3ea8ea,_0x2442b1={'labelPosition':_0x3ea8ea-_0x2d35bf>=X?_0x465e2e(0x28e):_0x465e2e(0x3ce),'sheetID':_0x45de84,'range':_0x704997,'color':_0x5134a0,'name':_0x5bc3d3,'selection':_0xdfec17,'left':_0x18c97c,'top':_0x3ea8ea,'width':_0xbc5c5f,'height':_0x54fc60,'evented':!0x1,'zIndex':$t};return new je(_0x5bc3d3,_0x2442b1);});_0x32edab[_0xdd576e(0x403)](_0x15c206,At),this['_cursors']=new Set(_0x15c206);}['_removeCollabCursors'](){const _0x44a3db=_0x4a7abe;var _0x440d9f;(_0x440d9f=this['_cursors'])==null||_0x440d9f[_0x44a3db(0x2aa)](_0x19f345=>_0x19f345[_0x44a3db(0x234)]());}[_0x4a7abe(0x32e)](){const _0x5a095f=_0x4a7abe;return J['getSheetObject'](this['_context'][_0x5a095f(0x410)],this[_0x5a095f(0x42e)]);}};Ce=yt([ue(0x1,a[_0x4a7abe(0x32c)](J[_0x4a7abe(0x466)])),ue(0x2,a[_0x4a7abe(0x32c)](F)),ue(0x3,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x20f)]))],Ce);function xt(_0xa4741b){const _0x17ce17=_0x4a7abe,_0x44095d=new Map();return _0xa4741b['forEach'](_0x64fee4=>{const _0x259e86=_0xdbe3;if(_0x44095d['has'](_0x64fee4[_0x259e86(0x2b5)])){const _0x2e7589=_0x44095d[_0x259e86(0x1c8)](_0x64fee4[_0x259e86(0x2b5)]);_0x2e7589['name']+=',\x20'+_0x64fee4[_0x259e86(0x1eb)];}else _0x44095d[_0x259e86(0x205)](_0x64fee4[_0x259e86(0x2b5)],_0x64fee4);}),Array[_0x17ce17(0x42d)](_0x44095d[_0x17ce17(0x329)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x36bcb1,_0xc9178f,_0x142632,_0x1fa59f)=>{const _0x4cd36f=_0x4a7abe;for(var _0xbf3285=_0x1fa59f>0x1?void 0x0:_0x1fa59f?Bt(_0xc9178f,_0x142632):_0xc9178f,_0x4df951=_0x36bcb1[_0x4cd36f(0x3e3)]-0x1,_0x4f9372;_0x4df951>=0x0;_0x4df951--)(_0x4f9372=_0x36bcb1[_0x4df951])&&(_0xbf3285=_0x4f9372(_0xbf3285)||_0xbf3285);return _0xbf3285;},y=(_0x254f36,_0x338118)=>(_0x19dd2a,_0x3e662c)=>_0x338118(_0x19dd2a,_0x3e662c,_0x254f36);let Z=class extends a[_0x4a7abe(0x2de)]{constructor(_0x4c7432,_0x1c558,_0xde35cc,_0xf668ea,_0x2a5f8b,_0x17b3c6){const _0x19d6ad=_0x4a7abe;super(),this[_0x19d6ad(0x2ee)]=_0x4c7432,this[_0x19d6ad(0x3c1)]=_0x1c558,this['_collaborationUIEventService']=_0xde35cc,this['_messageService']=_0xf668ea,this[_0x19d6ad(0x1d8)]=_0x2a5f8b,this[_0x19d6ad(0x271)]=_0x17b3c6,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4a7abe(0x2ea)](){const _0x3099ed=_0x4a7abe;this[_0x3099ed(0x360)](this['_beforeCloseService'][_0x3099ed(0x208)](()=>{const _0x494a91=_0x3099ed;if(this[_0x494a91(0x3c1)][_0x494a91(0x487)][_0x494a91(0x299)])return this[_0x494a91(0x271)]['t']('collaboration.offline-data-not-saved');}));}[_0x4a7abe(0x396)](){const _0x328378=_0x4a7abe;this[_0x328378(0x360)](this[_0x328378(0x244)][_0x328378(0x1cb)][_0x328378(0x1f1)](_0x4634a1=>{const _0x58301b=_0x328378;_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x330)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x3c5))}),_0x4634a1['id']===u[_0x58301b(0x1e4)]['CLOSE_ROOM']&&this['_messageService'][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this['_localeService']['t'](_0x58301b(0x366))}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x297)]&&this[_0x58301b(0x1d8)][_0x58301b(0x23e)]({'title':this[_0x58301b(0x271)]['t'](_0x58301b(0x43a)),'content':this[_0x58301b(0x271)]['t']('permission.content'),'type':_0x58301b(0x291),'duration':0x0}),_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x431)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)][_0x58301b(0x1d0)],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x366))+'('+_0x4634a1['data']+')'}),_0x4634a1['id']===u[_0x58301b(0x1e4)]['JOIN_ROOM_FAILED']&&this[_0x58301b(0x3ae)]['show']({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x4634a1['data']||'')}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x470)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x2d6))}),_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x39e)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p['MessageType'][_0x58301b(0x1d0)],'content':this['_localeService']['t'](_0x58301b(0x26c))}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x43b)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)][_0x58301b(0x1d0)],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x22e))});}));}};Z=Ft([y(0x0,O[_0x4a7abe(0x22a)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x1ff)])),y(0x3,O['IMessageService']),y(0x4,O[_0x4a7abe(0x3c4)]),y(0x5,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],Z);var jt=Object[_0x4a7abe(0x319)],kt=(_0x13175c,_0x5b945a,_0x9182a3,_0x1bb8ad)=>{for(var _0x2a3813=_0x1bb8ad>0x1?void 0x0:_0x1bb8ad?jt(_0x5b945a,_0x9182a3):_0x5b945a,_0x3775cc=_0x13175c['length']-0x1,_0x19ce22;_0x3775cc>=0x0;_0x3775cc--)(_0x19ce22=_0x13175c[_0x3775cc])&&(_0x2a3813=_0x19ce22(_0x2a3813)||_0x2a3813);return _0x2a3813;},z=(_0x53c7e4,_0x19e17c)=>(_0x413bb4,_0x116aee)=>_0x19e17c(_0x413bb4,_0x116aee,_0x53c7e4);let Q=class extends a[_0x4a7abe(0x2de)]{constructor(_0x331803,_0x476f39,_0x4734b6,_0x1f7c99){const _0x2cfc4b=_0x4a7abe;super(),_(this,'_memberID'),(this[_0x2cfc4b(0x449)]=_0x331803,this[_0x2cfc4b(0x3c0)]=_0x476f39,this[_0x2cfc4b(0x32d)]=_0x4734b6,this[_0x2cfc4b(0x29f)]=_0x1f7c99,this[_0x2cfc4b(0x3a9)]());}['_init'](){const _0x5afa18=_0x4a7abe;this[_0x5afa18(0x2d4)](),this[_0x5afa18(0x38c)](),this[_0x5afa18(0x383)](),this[_0x5afa18(0x36d)]();}[_0x4a7abe(0x36d)](){const _0x4a238a=_0x4a7abe;this['disposeWithMe'](this[_0x4a238a(0x29f)][_0x4a238a(0x2d9)][_0x4a238a(0x1f1)](_0x4fe711=>{const _0x59cb3f=_0x4a238a;this[_0x59cb3f(0x47a)]=_0x4fe711==null?void 0x0:_0x4fe711[_0x59cb3f(0x24d)];}));}[_0x4a7abe(0x2d4)](){const _0x3afa54=_0x4a7abe,_0x29222c=_0x37c0e2=>{const _0x13a13f=_0xdbe3;var _0x3cddc7;this[_0x13a13f(0x307)](_0x13a13f(0x291),_0x13a13f(0x39a)+_0x37c0e2['message']+_0x13a13f(0x34c)+_0x37c0e2[_0x13a13f(0x284)]+':'+_0x37c0e2[_0x13a13f(0x21a)]+':'+_0x37c0e2[_0x13a13f(0x364)]+'\x0a'+(((_0x3cddc7=_0x37c0e2[_0x13a13f(0x291)])==null?void 0x0:_0x3cddc7[_0x13a13f(0x37b)])||''));};window[_0x3afa54(0x1c0)](_0x3afa54(0x291),_0x29222c),this[_0x3afa54(0x360)](()=>{const _0x5275df=_0x3afa54;window[_0x5275df(0x28a)](_0x5275df(0x291),_0x29222c);});}[_0x4a7abe(0x38c)](){const _0x271e38=_0x4a7abe,_0x5e2911=_0x481406=>{const _0x10bfca=_0xdbe3;this[_0x10bfca(0x307)](_0x10bfca(0x291),_0x10bfca(0x211)+_0x481406[_0x10bfca(0x2e0)]);};window[_0x271e38(0x1c0)](_0x271e38(0x373),_0x5e2911),this[_0x271e38(0x360)](()=>{const _0x5b39ab=_0x271e38;window[_0x5b39ab(0x28a)](_0x5b39ab(0x373),_0x5e2911);});}['_monkeyPatchLogService'](){const _0x1be364=_0x4a7abe,_0x344fbf=this[_0x1be364(0x32d)]['error']['bind'](this['_logService']);this[_0x1be364(0x32d)][_0x1be364(0x291)]=(..._0x5b2e47)=>{const _0x50e5e0=_0x1be364,_0x32a271=_0x5b2e47[_0x50e5e0(0x314)](_0x189cca=>_0x189cca instanceof Error?_0x189cca[_0x50e5e0(0x259)]+'\x0a'+_0x189cca['stack']:String(_0x189cca))[_0x50e5e0(0x1e9)]('\x20');this[_0x50e5e0(0x307)](_0x50e5e0(0x291),_0x50e5e0(0x2e8)+_0x32a271),_0x344fbf(..._0x5b2e47);},this[_0x1be364(0x360)](()=>{const _0x1781b5=_0x1be364;this[_0x1781b5(0x32d)][_0x1781b5(0x291)]=_0x344fbf;});}[_0x4a7abe(0x307)](_0x5471df,_0x26ea07){const _0xbe93ce=_0x4a7abe;try{const _0x1749dd={'userId':this['_memberID'],'logLabel':_0x5471df,'content':_0x26ea07};this[_0xbe93ce(0x3c0)][_0xbe93ce(0x1c4)](_0xbe93ce(0x3fe),{'body':_0x1749dd})[_0xbe93ce(0x210)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x4a7abe(0x22c)])),z(0x1,a['Inject'](x[_0x4a7abe(0x3a7)])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u[_0x4a7abe(0x2f9)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x4a7abe(0x319)],Wt=(_0xf137f9,_0x282274,_0x53c2d4,_0x423e77)=>{const _0x132415=_0x4a7abe;for(var _0x3428aa=_0x423e77>0x1?void 0x0:_0x423e77?Ht(_0x282274,_0x53c2d4):_0x282274,_0x202289=_0xf137f9[_0x132415(0x3e3)]-0x1,_0x1ecbee;_0x202289>=0x0;_0x202289--)(_0x1ecbee=_0xf137f9[_0x202289])&&(_0x3428aa=_0x1ecbee(_0x3428aa)||_0x3428aa);return _0x3428aa;},Ae=(_0x2b93d7,_0x4f797d)=>(_0x2956f0,_0x4e3448)=>_0x4f797d(_0x2956f0,_0x4e3448,_0x2b93d7);let ee=class{constructor(_0x310e45,_0x5686a7){const _0x2e484c=_0x4a7abe;this['_transformService']=_0x310e45,this[_0x2e484c(0x1fd)]=_0x5686a7;}[_0x4a7abe(0x2c2)](_0x4e2f7e){const _0x2ba60e=_0x4a7abe;this[_0x2ba60e(0x1c6)](_0x4e2f7e),this[_0x2ba60e(0x474)](_0x4e2f7e);}[_0x4a7abe(0x2f6)](_0x708a72){const _0x417341=_0x4a7abe,{unitID:_0x4921a6}=_0x708a72,_0x36de3b=this[_0x417341(0x1fd)][_0x417341(0x216)](_0x4921a6)[_0x417341(0x3eb)](T['DocIMEInputManagerService']),{redoCache:_0x2843c7}=_0x36de3b[_0x417341(0x2e4)]();if(_0x2843c7['length']===0x0)return _0x708a72;let _0x5e1db8=a['Tools'][_0x417341(0x2a3)](_0x708a72[_0x417341(0x2da)][0x0]);for(let _0x35777a=0x0;_0x35777a<_0x2843c7['length'];_0x35777a++){const _0x33fa66={'id':_0x417341(0x354),'params':{..._0x2843c7[_0x35777a]}},_0x3a786a=this[_0x417341(0x3d4)][_0x417341(0x2dc)](_0x5e1db8,_0x33fa66,!0x1);if(g['isTransformMutationFailure'](_0x3a786a))throw _0x3a786a['error'];_0x5e1db8=_0x3a786a[_0x417341(0x402)];}return{...a[_0x417341(0x337)][_0x417341(0x2a3)](_0x708a72),'mutations':[_0x5e1db8]};}[_0x4a7abe(0x1c6)](_0x1a6e5e){const _0x1fb974=_0x4a7abe,{unitID:_0x50116f}=_0x1a6e5e,_0x1d4ecc=this[_0x1fb974(0x1fd)][_0x1fb974(0x216)](_0x50116f)[_0x1fb974(0x3eb)](T[_0x1fb974(0x2b0)]),{undoCache:_0xe0f278,redoCache:_0x59b16d}=_0x1d4ecc['getUndoRedoMutationParamsCache']();if(_0xe0f278['length']===0x0||_0x59b16d[_0x1fb974(0x3e3)]===0x0)return;const _0x1cb71=[],_0x2fbf81=[];let _0x4ce7b8=a[_0x1fb974(0x337)][_0x1fb974(0x2a3)](_0x1a6e5e[_0x1fb974(0x2da)][0x0]),_0x3fc5be=a[_0x1fb974(0x337)][_0x1fb974(0x2a3)](_0x1a6e5e['mutations'][0x0]);for(let _0xf66db3=_0xe0f278[_0x1fb974(0x3e3)]-0x1;_0xf66db3>=0x0;_0xf66db3--){const _0x5a1b60={'id':_0x1fb974(0x354),'params':{..._0xe0f278[_0xf66db3]}},_0x1e8809={'id':_0x1fb974(0x354),'params':{..._0x59b16d[_0xf66db3]}},_0x1f4c36=this[_0x1fb974(0x3d4)]['transformMutation'](_0x4ce7b8,_0x5a1b60,!0x1),_0x1984ec=this[_0x1fb974(0x3d4)][_0x1fb974(0x2dc)](_0x3fc5be,_0x1e8809,!0x1);if(g[_0x1fb974(0x408)](_0x1f4c36))throw _0x1f4c36[_0x1fb974(0x291)];if(g['isTransformMutationFailure'](_0x1984ec))throw _0x1984ec[_0x1fb974(0x291)];_0x1cb71['unshift'](_0x1f4c36[_0x1fb974(0x2ad)]['params']),_0x2fbf81[_0x1fb974(0x2ff)](_0x1984ec[_0x1fb974(0x2ad)][_0x1fb974(0x43f)]),_0x4ce7b8=_0x1f4c36[_0x1fb974(0x402)],_0x3fc5be=_0x1984ec['m1Prime'];}_0x1d4ecc['setUndoRedoMutationParamsCache']({'undoCache':_0x1cb71,'redoCache':_0x2fbf81});}[_0x4a7abe(0x474)](_0x362680){const _0x1a7f6c=_0x4a7abe,{unitID:_0x4a0b84}=_0x362680,_0x4924c2=this[_0x1a7f6c(0x1fd)]['getRenderById'](_0x4a0b84)[_0x1a7f6c(0x3eb)](T[_0x1a7f6c(0x2b0)]),_0x22d9b7=_0x4924c2[_0x1a7f6c(0x3d0)]();if(_0x22d9b7==null)return;const _0x2c7f83=[{'id':_0x1a7f6c(0x354),'params':{'unitId':_0x362680['unitID'],'actions':null,'textRanges':[_0x22d9b7]}}],_0x10a899=this['_transformService']['transformMutationsWithChangeset'](_0x362680,_0x2c7f83);if(!g[_0x1a7f6c(0x298)](_0x10a899))throw _0x10a899['error'];const _0x1ccd92=_0x10a899['m2Prime'][0x0]['params'][_0x1a7f6c(0x355)];Array[_0x1a7f6c(0x3b5)](_0x1ccd92)&&_0x1ccd92[_0x1a7f6c(0x3e3)]&&_0x4924c2[_0x1a7f6c(0x23a)](_0x1ccd92[0x0]);}};ee=Wt([Ae(0x0,g[_0x4a7abe(0x2f2)]),Ae(0x1,C[_0x4a7abe(0x24a)])],ee);var Vt=Object[_0x4a7abe(0x319)],Gt=(_0x59995b,_0x4886c0,_0x58e30d,_0x4a83a6)=>{const _0xc8270f=_0x4a7abe;for(var _0x14203a=_0x4a83a6>0x1?void 0x0:_0x4a83a6?Vt(_0x4886c0,_0x58e30d):_0x4886c0,_0x14504a=_0x59995b[_0xc8270f(0x3e3)]-0x1,_0xe009ec;_0x14504a>=0x0;_0x14504a--)(_0xe009ec=_0x59995b[_0x14504a])&&(_0x14203a=_0xe009ec(_0x14203a)||_0x14203a);return _0x14203a;},Ie=(_0x5226cb,_0x185afb)=>(_0x3e4661,_0x3622e4)=>_0x185afb(_0x3e4661,_0x3622e4,_0x5226cb);let te=class{constructor(_0x25f974,_0x3edf63,_0xf26462){const _0x438617=_0x4a7abe;this[_0x438617(0x449)]=_0x25f974,this['_transformService']=_0x3edf63,this[_0x438617(0x399)]=_0xf26462;}[_0x4a7abe(0x464)](_0x4cdc7f){this['_transformHistoryAndStateStack'](_0x4cdc7f);}[_0x4a7abe(0x2f6)](_0x4ba2f8){const _0x9b0a42=_0x4a7abe,{unitID:_0x1a078a}=_0x4ba2f8,{collaboration:_0x5be3f9}=this['_docStateChangeManagerService']['getStateCache'](_0x1a078a);if(_0x5be3f9[_0x9b0a42(0x3e3)]===0x0)return _0x4ba2f8;let _0x5233d6=a[_0x9b0a42(0x337)]['deepClone'](_0x4ba2f8[_0x9b0a42(0x2da)][0x0]);for(let _0x32024e=0x0;_0x32024e<_0x5be3f9['length'];_0x32024e++){const _0x34a9d3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5be3f9[_0x32024e][_0x9b0a42(0x1c7)],..._0x5be3f9[_0x32024e][_0x9b0a42(0x468)]}},_0x997396=this[_0x9b0a42(0x3d4)][_0x9b0a42(0x2dc)](_0x5233d6,_0x34a9d3,!0x1);if(g[_0x9b0a42(0x408)](_0x997396))throw _0x997396['error'];_0x5233d6=_0x997396['m1Prime'];}return{...a['Tools']['deepClone'](_0x4ba2f8),'mutations':[_0x5233d6]};}[_0x4a7abe(0x3b4)](_0x297746){const _0x844299=_0x4a7abe,{unitID:_0x349b00}=_0x297746,{history:_0x4ce08d,collaboration:_0x7efe33}=this[_0x844299(0x399)][_0x844299(0x300)](_0x349b00);if(_0x4ce08d['length']===0x0&&_0x7efe33[_0x844299(0x3e3)]===0x0)return;const _0x348f42=[],_0x2f134e=[];let _0x4b1b05=a[_0x844299(0x337)][_0x844299(0x2a3)](_0x297746[_0x844299(0x2da)][0x0]),_0xa6c23e=a[_0x844299(0x337)]['deepClone'](_0x297746[_0x844299(0x2da)][0x0]);for(let _0x2e2f15=_0x4ce08d[_0x844299(0x3e3)]-0x1;_0x2e2f15>=0x0;_0x2e2f15--){const _0x22c640={'id':_0x844299(0x354),'params':{'unitId':_0x4ce08d[_0x2e2f15][_0x844299(0x1c7)],..._0x4ce08d[_0x2e2f15]['undoState']}},_0x1efc48={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ce08d[_0x2e2f15][_0x844299(0x1c7)],..._0x4ce08d[_0x2e2f15]['redoState']}},_0x223267=this[_0x844299(0x3d4)][_0x844299(0x2dc)](_0x4b1b05,_0x22c640,!0x1),_0xf2b24e=this[_0x844299(0x3d4)]['transformMutation'](_0xa6c23e,_0x1efc48,!0x1);if(g[_0x844299(0x408)](_0x223267))throw _0x223267[_0x844299(0x291)];if(g[_0x844299(0x408)](_0xf2b24e))throw _0xf2b24e[_0x844299(0x291)];_0x348f42[_0x844299(0x2ff)]({..._0x4ce08d[_0x2e2f15],'undoState':_0x223267['m2Prime'][_0x844299(0x43f)],'redoState':_0xf2b24e[_0x844299(0x2ad)]['params']}),_0x4b1b05=_0x223267['m1Prime'],_0xa6c23e=_0xf2b24e['m1Prime'];}_0x4b1b05=a[_0x844299(0x337)][_0x844299(0x2a3)](_0x297746[_0x844299(0x2da)][0x0]),_0xa6c23e=a[_0x844299(0x337)]['deepClone'](_0x297746[_0x844299(0x2da)][0x0]);for(let _0x5d3356=_0x7efe33['length']-0x1;_0x5d3356>=0x0;_0x5d3356--){const _0xee86f2={'id':_0x844299(0x354),'params':{'unitId':_0x7efe33[_0x5d3356][_0x844299(0x1c7)],..._0x7efe33[_0x5d3356][_0x844299(0x422)]}},_0x5a5247={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x7efe33[_0x5d3356][_0x844299(0x1c7)],..._0x7efe33[_0x5d3356][_0x844299(0x468)]}},_0x333b77=this['_transformService']['transformMutation'](_0x4b1b05,_0xee86f2,!0x1),_0x55d69a=this['_transformService'][_0x844299(0x2dc)](_0xa6c23e,_0x5a5247,!0x1);if(g[_0x844299(0x408)](_0x333b77))throw _0x333b77['error'];if(g[_0x844299(0x408)](_0x55d69a))throw _0x55d69a[_0x844299(0x291)];_0x2f134e[_0x844299(0x2ff)]({..._0x7efe33[_0x5d3356],'undoState':_0x333b77[_0x844299(0x2ad)][_0x844299(0x43f)],'redoState':_0x55d69a[_0x844299(0x2ad)][_0x844299(0x43f)]}),_0x4b1b05=_0x333b77[_0x844299(0x402)],_0xa6c23e=_0x55d69a[_0x844299(0x402)];}this['_docStateChangeManagerService'][_0x844299(0x1b8)](_0x349b00,{'history':_0x348f42,'collaboration':_0x2f134e});}};te=Gt([Ie(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),Ie(0x1,g[_0x4a7abe(0x2f2)]),Ie(0x2,a[_0x4a7abe(0x32c)](T[_0x4a7abe(0x1fa)]))],te);var Xt=Object[_0x4a7abe(0x319)],Kt=(_0x310483,_0x399182,_0x35e49a,_0xb3c3bb)=>{for(var _0x640f36=_0xb3c3bb>0x1?void 0x0:_0xb3c3bb?Xt(_0x399182,_0x35e49a):_0x399182,_0xbd98a7=_0x310483['length']-0x1,_0xb4065;_0xbd98a7>=0x0;_0xbd98a7--)(_0xb4065=_0x310483[_0xbd98a7])&&(_0x640f36=_0xb4065(_0x640f36)||_0x640f36);return _0x640f36;},Pe=(_0x4500ab,_0x2d0c38)=>(_0x1f73b0,_0x28e623)=>_0x2d0c38(_0x1f73b0,_0x28e623,_0x4500ab);let se=class{constructor(_0x3c5781,_0x216b1c){const _0x3ca883=_0x4a7abe;this[_0x3ca883(0x449)]=_0x3c5781,this['_transformService']=_0x216b1c;}['transformSelections'](_0x345e04){const _0x3e3304=_0x4a7abe;var _0x4d62c1;const _0x41c6f9=this['_injector'][_0x3e3304(0x1c8)](V[_0x3e3304(0x325)]),_0x2e079b=(_0x4d62c1=_0x41c6f9['getDocRanges']())!=null?_0x4d62c1:[];if(_0x2e079b[_0x3e3304(0x3e3)]===0x0)return;const _0x47daf7=_0x345e04[_0x3e3304(0x1f5)],_0x303dba=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x47daf7,'actions':null,'textRanges':_0x2e079b}}],_0x52fae6=this[_0x3e3304(0x3d4)][_0x3e3304(0x48a)](_0x345e04,_0x303dba);if(!g[_0x3e3304(0x298)](_0x52fae6))throw _0x52fae6[_0x3e3304(0x291)];const _0x4dfe34=_0x52fae6['m2Prime'][0x0][_0x3e3304(0x43f)][_0x3e3304(0x355)];Array['isArray'](_0x4dfe34)&&_0x4dfe34[_0x3e3304(0x3e3)]&&_0x41c6f9[_0x3e3304(0x467)](_0x4dfe34,{'unitId':_0x47daf7,'subUnitId':_0x47daf7},!0x1);}};se=Kt([Pe(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),Pe(0x1,g[_0x4a7abe(0x2f2)])],se);var qt=Object[_0x4a7abe(0x319)],zt=(_0x330aa5,_0x4c5109,_0x246e7b,_0x5170cc)=>{const _0xc2cf0b=_0x4a7abe;for(var _0xbef097=_0x5170cc>0x1?void 0x0:_0x5170cc?qt(_0x4c5109,_0x246e7b):_0x4c5109,_0x123132=_0x330aa5[_0xc2cf0b(0x3e3)]-0x1,_0xd5de0a;_0x123132>=0x0;_0x123132--)(_0xd5de0a=_0x330aa5[_0x123132])&&(_0xbef097=_0xd5de0a(_0xbef097)||_0xbef097);return _0xbef097;},N=(_0x31af66,_0x197be6)=>(_0x45f057,_0x10719c)=>_0x197be6(_0x45f057,_0x10719c,_0x31af66);let ie=class extends a[_0x4a7abe(0x2de)]{constructor(_0x2e79a4,_0x3f2a31,_0x736f1f,_0x3c4f50,_0x5ade71,_0xb44b56,_0x3b451a,_0x39be62){const _0x1a3573=_0x4a7abe;super(),_(this,_0x1a3573(0x489),new I[(_0x1a3573(0x242))](u[_0x1a3573(0x1bb)][_0x1a3573(0x2f4)])),(this[_0x1a3573(0x399)]=_0x2e79a4,this[_0x1a3573(0x24e)]=_0x3f2a31,this[_0x1a3573(0x47b)]=_0x736f1f,this[_0x1a3573(0x2cb)]=_0x3c4f50,this[_0x1a3573(0x427)]=_0x5ade71,this[_0x1a3573(0x33c)]=_0xb44b56,this[_0x1a3573(0x3ae)]=_0x3b451a,this[_0x1a3573(0x271)]=_0x39be62,this[_0x1a3573(0x35c)]());}[_0x4a7abe(0x35c)](){const _0x297aaa=_0x4a7abe;this[_0x297aaa(0x360)](this[_0x297aaa(0x24e)][_0x297aaa(0x1c9)][_0x297aaa(0x1f1)](_0x986c2=>{const _0x539c2b=_0x297aaa,_0x34da63=this[_0x539c2b(0x399)][_0x539c2b(0x3f4)][_0x539c2b(0x1f1)](_0x1acd78=>{const _0x107148=_0x539c2b;if(_0x1acd78==null)return;const {unitId:_0x3563a3,redoState:_0x1d8739,commandId:_0x52aeb1}=_0x1acd78;if(_0x3563a3!==_0x986c2[_0x107148(0x1f5)])return;const _0x426f22={'id':_0x52aeb1,'type':a[_0x107148(0x42a)][_0x107148(0x301)],'params':{'unitId':_0x3563a3,'actions':_0x1d8739[_0x107148(0x420)],'textRanges':null}};_0x986c2[_0x107148(0x465)](_0x426f22);});if(_0x986c2[_0x539c2b(0x360)](_0x34da63),_0x986c2 instanceof u['DocCollaborationEntity']){const _0xf03e1d={'onTransformIME':_0x19ce83=>this[_0x539c2b(0x47b)]['transformIMECache'](_0x19ce83),'onTransformState':_0x1bd960=>this[_0x539c2b(0x2cb)][_0x539c2b(0x464)](_0x1bd960),'onTransformSelections':_0x258883=>this[_0x539c2b(0x427)][_0x539c2b(0x356)](_0x258883),'onSyncEditingCollabCursor':_0x115d82=>this['_docSyncEditingCollabCursorService'][_0x539c2b(0x3e1)](_0x115d82),'onTransformRemoteChangesetByIMECache':_0x3f4c79=>this[_0x539c2b(0x47b)]['transformRemoteChangeset'](_0x3f4c79),'onTransformRemoteChangesetByStateCache':_0x352b1c=>this[_0x539c2b(0x2cb)][_0x539c2b(0x2f6)](_0x352b1c)};_0x986c2[_0x539c2b(0x2f7)](_0xf03e1d);}}));}};ie=zt([N(0x0,a[_0x4a7abe(0x32c)](T[_0x4a7abe(0x1fa)])),N(0x1,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x1d6)])),N(0x2,a[_0x4a7abe(0x32c)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x4a7abe(0x32c)](se)),N(0x5,a[_0x4a7abe(0x32c)](be)),N(0x6,O[_0x4a7abe(0x407)]),N(0x7,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],ie);var G=(_0x3e8a3c=>(_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x21c)]=0x0]=_0x4a7abe(0x21c),_0x3e8a3c[_0x3e8a3c['OK']=0x1]='OK',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x34d)]=0x2]='INTERNAL_ERROR',_0x3e8a3c[_0x3e8a3c['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3a4)]=0x4]=_0x4a7abe(0x3a4),_0x3e8a3c[_0x3e8a3c['UNAUTHENTICATED']=0x5]=_0x4a7abe(0x29b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x477)]=0x6]=_0x4a7abe(0x477),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3d7)]=0x7]=_0x4a7abe(0x3d7),_0x3e8a3c[_0x3e8a3c['TOO_MANY_REQUESTS']=0x8]=_0x4a7abe(0x3ad),_0x3e8a3c[_0x3e8a3c['COMPLETION_FINISHED']=0x9]=_0x4a7abe(0x31e),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2d1)]=0xa]=_0x4a7abe(0x2d1),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x43d)]=0xb]=_0x4a7abe(0x43d),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x385)]=0xc]=_0x4a7abe(0x385),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x267)]=0xd]=_0x4a7abe(0x267),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x436)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3e8a3c[_0x3e8a3c['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x4a7abe(0x3cb),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x220)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x3e8a3c[_0x3e8a3c['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x4a7abe(0x322),_0x3e8a3c[_0x3e8a3c['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x3e8a3c[_0x3e8a3c['USER_NOT_FOUND']=0xc9]=_0x4a7abe(0x1cf),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x447)]=0xca]=_0x4a7abe(0x447),_0x3e8a3c[_0x3e8a3c['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a7abe(0x1bd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x43e)]=0x1771]=_0x4a7abe(0x43e),_0x3e8a3c[_0x3e8a3c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4a7abe(0x287),_0x3e8a3c[_0x3e8a3c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x289)]=0x1b59]=_0x4a7abe(0x289),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x36b)]=0x1b5a]=_0x4a7abe(0x36b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x45a)]=0x1b5b]=_0x4a7abe(0x45a),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x38a)]=0x1b5c]=_0x4a7abe(0x38a),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x275)]=0x1b5d]='APPLY_DUPLICATED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2e1)]=0x1f41]=_0x4a7abe(0x2e1),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x34b)]=0x2329]=_0x4a7abe(0x34b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x296)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1e7)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x40f)]=0x232c]=_0x4a7abe(0x40f),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x246)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1f3)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x206)]=0x2712]=_0x4a7abe(0x206),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x334)]=0x2713]=_0x4a7abe(0x334),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x302)]=0x2714]=_0x4a7abe(0x302),_0x3e8a3c[_0x3e8a3c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x4a7abe(0x46c),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2b8)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1d7)]=0x271c]=_0x4a7abe(0x1d7),_0x3e8a3c[_0x3e8a3c['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4a7abe(0x3fd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2b6)]=0x271e]=_0x4a7abe(0x2b6),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x235)]=0x271f]=_0x4a7abe(0x235),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2c3)]=0x2720]=_0x4a7abe(0x2c3),_0x3e8a3c[_0x3e8a3c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4a7abe(0x48e),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x37a)]=0x2ee1]=_0x4a7abe(0x37a),_0x3e8a3c[_0x3e8a3c['INVALID_INVITE_CODE']=0x2ee2]=_0x4a7abe(0x2f8),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x39c)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3db)]=0x2ee4]=_0x4a7abe(0x3db),_0x3e8a3c[_0x3e8a3c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x390)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1d2)]=0x32ca]=_0x4a7abe(0x1d2),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x476)]=0x32cb]=_0x4a7abe(0x476),_0x3e8a3c[_0x3e8a3c['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x4a7abe(0x3de),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x24b)]=0x36b2]=_0x4a7abe(0x24b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2f5)]=0x36b3]=_0x4a7abe(0x2f5),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x254)]=0x36b4]=_0x4a7abe(0x254),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x491)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x395)]=0x36b6]=_0x4a7abe(0x395),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x35e)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x290)]=0x36b8]=_0x4a7abe(0x290),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3dd)]=0x3715]=_0x4a7abe(0x3dd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x240)]=0x3716]=_0x4a7abe(0x240),_0x3e8a3c[_0x3e8a3c['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x4a7abe(0x331),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2d0)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x31a)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x3e8a3c[_0x3e8a3c['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x4a7abe(0x345),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3ff)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x36c)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x347)]=0x3a9d]=_0x4a7abe(0x347),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3bc)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x245)]=0x3a9f]=_0x4a7abe(0x245),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x320)]=0x3e81]=_0x4a7abe(0x320),_0x3e8a3c[_0x3e8a3c['UNRECOGNIZED']=-0x1]=_0x4a7abe(0x213),_0x3e8a3c))(G||{});function Jt(_0x570c74){const _0x48a5d3=_0x4a7abe;var _0x54b533,_0x21f9e5;const _0x24f296=(_0x54b533=_0x570c74[_0x48a5d3(0x26f)])==null?void 0x0:_0x54b533[_0x48a5d3(0x33e)],_0x3d376c=((_0x21f9e5=_0x570c74[_0x48a5d3(0x26f)])==null?void 0x0:_0x21f9e5[_0x48a5d3(0x486)])||0x0;return _0x24f296===B[_0x48a5d3(0x484)][_0x48a5d3(0x3b2)]&&_0x3d376c>0x0;}function Zt(_0x3524a4){const _0x58d8b3=_0x4a7abe;return _0x3524a4[_0x58d8b3(0x1c2)]===B['FormulaExecutedStateType'][_0x58d8b3(0x309)];}var Qt=Object[_0x4a7abe(0x319)],es=(_0x5d5d42,_0x212455,_0x1c1832,_0x1a8815)=>{for(var _0x3b3e78=_0x1a8815>0x1?void 0x0:_0x1a8815?Qt(_0x212455,_0x1c1832):_0x212455,_0x3c7392=_0x5d5d42['length']-0x1,_0x2a0c1b;_0x3c7392>=0x0;_0x3c7392--)(_0x2a0c1b=_0x5d5d42[_0x3c7392])&&(_0x3b3e78=_0x2a0c1b(_0x3b3e78)||_0x3b3e78);return _0x3b3e78;},L=(_0x5be2cb,_0x594972)=>(_0x2c179f,_0x11d669)=>_0x594972(_0x2c179f,_0x11d669,_0x5be2cb);const ts=_0x4a7abe(0x24c),ss=_0x4a7abe(0x456),is=_0x4a7abe(0x27e);let ne=class extends a[_0x4a7abe(0x2de)]{constructor(_0x1a5c28,_0x50709a,_0xf4f448,_0x27dd4e,_0x4139cf,_0x214833,_0x1c2791){const _0x28805a=_0x4a7abe;super(),_(this,_0x28805a(0x437),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x28805a(0x25b),0x0),_(this,_0x28805a(0x45d),[]),_(this,_0x28805a(0x48c),0x0),(this[_0x28805a(0x3ae)]=_0x1a5c28,this['_commandService']=_0x50709a,this['_configService']=_0xf4f448,this['_httpService']=_0x27dd4e,this['_univerInstanceService']=_0x4139cf,this['_logService']=_0x214833,this[_0x28805a(0x271)]=_0x1c2791,this[_0x28805a(0x44a)]());}[_0x4a7abe(0x44a)](){const _0x26f38f=_0x4a7abe;this[_0x26f38f(0x360)](this[_0x26f38f(0x263)][_0x26f38f(0x425)]((_0x3bb669,_0x106d66)=>{const _0x1a5b4e=_0x26f38f;var _0xccbd60;if(_0x3bb669['id']!==B[_0x1a5b4e(0x374)]['id'])return;const _0x351a92=_0x3bb669[_0x1a5b4e(0x43f)];if(!this[_0x1a5b4e(0x471)]((_0xccbd60=_0x351a92[_0x1a5b4e(0x35a)])!=null?_0xccbd60:[]))return;if(!this[_0x1a5b4e(0x44d)]())throw this['_checkAndWaitForCalculationPermission'](_0x3bb669,_0x106d66),this[_0x1a5b4e(0x20e)](),new a[(_0x1a5b4e(0x2bc))]();})),this[_0x26f38f(0x360)](this['_commandService'][_0x26f38f(0x453)]((_0x3a3458,_0x10e925)=>{const _0x44f92e=_0x26f38f;if(_0x3a3458['id']!==B[_0x44f92e(0x392)]['id'])return;const _0x1ebe93=_0x3a3458[_0x44f92e(0x43f)];if(Jt(_0x1ebe93)){const _0x1e3177=a[_0x44f92e(0x32f)]();this['_taskIds'][_0x44f92e(0x272)](_0x1e3177),this[_0x44f92e(0x238)](_0x1e3177);}else{if(Zt(_0x1ebe93)&&this['_taskIds'][_0x44f92e(0x3e3)]>0x0){const _0x13f1b9=this[_0x44f92e(0x45d)][_0x44f92e(0x1ea)]();this[_0x44f92e(0x382)](_0x13f1b9);}}}));}[_0x4a7abe(0x234)](){const _0x4ea102=_0x4a7abe;super[_0x4ea102(0x234)](),this[_0x4ea102(0x310)](),this[_0x4ea102(0x45d)]=[],this['_currentUsage']=0x0,this[_0x4ea102(0x41b)]=0x0,this[_0x4ea102(0x48c)]=0x0;}async[_0x4a7abe(0x2c5)](_0x228dab,_0x32f671){const _0x27be41=_0x4a7abe;for(let _0x2569fd=0x0;_0x2569fd<0x1e;_0x2569fd++)try{if(await this[_0x27be41(0x475)](),this[_0x27be41(0x44d)]()){this['_applyCommand'](_0x228dab,_0x32f671),this['_messageService']['show']({'content':this[_0x27be41(0x271)]['t']('formula.calculation.started'),'type':p[_0x27be41(0x229)][_0x27be41(0x370)]});return;}await new Promise(_0x4a6ba6=>{const _0x366ca1=_0x27be41;this[_0x366ca1(0x437)]=window['setTimeout'](_0x4a6ba6,0x3e8);});}catch(_0x13be00){this[_0x27be41(0x32d)][_0x27be41(0x291)](_0x13be00);}this[_0x27be41(0x3ae)]['show']({'content':this[_0x27be41(0x271)]['t'](_0x27be41(0x1d5)),'type':p[_0x27be41(0x229)][_0x27be41(0x1d0)]});}[_0x4a7abe(0x3b3)](_0x513928,_0x1fc506){const _0x13bf5c=_0x4a7abe;try{this['_commandService'][_0x13bf5c(0x22f)](_0x513928['id'],_0x513928[_0x13bf5c(0x43f)],_0x1fc506);}catch(_0xbbebea){this[_0x13bf5c(0x32d)][_0x13bf5c(0x291)](_0xbbebea);}}[_0x4a7abe(0x47e)](_0x51e56d,_0x5e7583){const _0x437baf=_0x4a7abe;_0x5e7583<this['_lastResponseTimestamp']||(this[_0x437baf(0x48c)]=_0x5e7583,this['_maxFormulaLimit']=Number['parseInt'](_0x51e56d['maxFormulaLimit']),this[_0x437baf(0x25b)]=Number[_0x437baf(0x3d5)](_0x51e56d[_0x437baf(0x33a)]));}async[_0x4a7abe(0x238)](_0x4a87ca){const _0x2ed8fb=_0x4a7abe;var _0x5beb99,_0x181b5a;const _0x4c49bc=Date[_0x2ed8fb(0x46a)]();try{const _0x52cbec=((_0x5beb99=this[_0x2ed8fb(0x365)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5beb99['startFormulaLimitUrl'])||ss,_0x644bc4=(await this[_0x2ed8fb(0x3c0)][_0x2ed8fb(0x1c4)](_0x52cbec,{'body':JSON[_0x2ed8fb(0x1df)]({'taskId':_0x4a87ca})}))[_0x2ed8fb(0x3d1)];if(((_0x181b5a=_0x644bc4[_0x2ed8fb(0x291)])==null?void 0x0:_0x181b5a['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x644bc4['limitInfo'],_0x4c49bc);}catch(_0x2d6ac7){this[_0x2ed8fb(0x32d)][_0x2ed8fb(0x291)](_0x2d6ac7);}}async[_0x4a7abe(0x475)](_0x2767ee){const _0x50e84b=_0x4a7abe;var _0x2ce636,_0x439e89;const _0x2fada2=Date['now']();try{const _0x15d1f3=((_0x2ce636=this[_0x50e84b(0x365)][_0x50e84b(0x3d6)](u[_0x50e84b(0x268)]))==null?void 0x0:_0x2ce636[_0x50e84b(0x3c2)])||ts,_0x35f424=_0x2767ee?_0x15d1f3+_0x50e84b(0x28d)+encodeURIComponent(_0x2767ee):_0x15d1f3,_0x43796d=(await this[_0x50e84b(0x3c0)]['get'](_0x35f424))[_0x50e84b(0x3d1)];if(((_0x439e89=_0x43796d[_0x50e84b(0x291)])==null?void 0x0:_0x439e89['code'])!==G['OK'])return;this[_0x50e84b(0x47e)](_0x43796d['limitInfo'],_0x2fada2);}catch(_0x3016ad){this[_0x50e84b(0x32d)]['error'](_0x3016ad);}}async[_0x4a7abe(0x382)](_0x944747){const _0x190821=_0x4a7abe;var _0x46b3c7,_0xddcc7d;const _0x4a8ed7=Date['now']();try{const _0x17133d=((_0x46b3c7=this[_0x190821(0x365)]['getConfig'](u[_0x190821(0x268)]))==null?void 0x0:_0x46b3c7[_0x190821(0x1d9)])||is,_0x36bc58=(await this[_0x190821(0x3c0)]['post'](_0x17133d,{'body':JSON[_0x190821(0x1df)]({'taskId':_0x944747})}))[_0x190821(0x3d1)];if(((_0xddcc7d=_0x36bc58[_0x190821(0x291)])==null?void 0x0:_0xddcc7d[_0x190821(0x409)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x36bc58[_0x190821(0x306)],_0x4a8ed7);}catch(_0x9a0d0a){this['_logService'][_0x190821(0x291)](_0x9a0d0a);}}[_0x4a7abe(0x44d)](){const _0x215735=_0x4a7abe;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x215735(0x41b)]-this[_0x215735(0x25b)]>0x0;}[_0x4a7abe(0x310)](){const _0x3f4d37=_0x4a7abe;this[_0x3f4d37(0x437)]&&(clearTimeout(this['_pollingInterval']),this[_0x3f4d37(0x437)]=null);}[_0x4a7abe(0x20e)](){const _0x5915fb=_0x4a7abe;this[_0x5915fb(0x3ae)]['show']({'content':this[_0x5915fb(0x271)]['t'](_0x5915fb(0x1e2)),'type':p['MessageType'][_0x5915fb(0x256)]});}[_0x4a7abe(0x471)](_0x11f8e2){const _0x478fec=_0x4a7abe;for(const _0x30a88e of _0x11f8e2){const {unitId:_0x1a816c,sheetId:_0x1c37c2,range:_0x26e626}=_0x30a88e,_0xbd02f5=this[_0x478fec(0x393)][_0x478fec(0x494)](_0x1a816c);if(!_0xbd02f5)continue;const _0x11fc36=_0xbd02f5[_0x478fec(0x2bb)](_0x1c37c2);if(!_0x11fc36)continue;const _0x1b92b6=_0x11fc36[_0x478fec(0x2b7)]();for(let _0x2b555f=_0x26e626[_0x478fec(0x369)];_0x2b555f<=_0x26e626[_0x478fec(0x1ce)];_0x2b555f++)for(let _0x3ff342=_0x26e626['startColumn'];_0x3ff342<=_0x26e626[_0x478fec(0x2fb)];_0x3ff342++){const _0x17f1d=_0x1b92b6[_0x478fec(0x305)](_0x2b555f,_0x3ff342);if(_0x17f1d&&(a[_0x478fec(0x3ee)](_0x17f1d['f'])||a[_0x478fec(0x265)](_0x17f1d['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x4a7abe(0x407)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),L(0x4,a[_0x4a7abe(0x1e6)]),L(0x5,a[_0x4a7abe(0x1dc)]),L(0x6,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],ne);var ns=Object[_0x4a7abe(0x319)],rs=(_0x21cf97,_0xa1e283,_0x4a508c,_0x3a3eab)=>{const _0x6e6dd0=_0x4a7abe;for(var _0x1a10b9=_0x3a3eab>0x1?void 0x0:_0x3a3eab?ns(_0xa1e283,_0x4a508c):_0xa1e283,_0xd92c48=_0x21cf97[_0x6e6dd0(0x3e3)]-0x1,_0x29969c;_0xd92c48>=0x0;_0xd92c48--)(_0x29969c=_0x21cf97[_0xd92c48])&&(_0x1a10b9=_0x29969c(_0x1a10b9)||_0x1a10b9);return _0x1a10b9;},Se=(_0x42fdac,_0x599674)=>(_0x2e260e,_0x55f6aa)=>_0x599674(_0x2e260e,_0x55f6aa,_0x42fdac);let Te=class extends a[_0x4a7abe(0x2de)]{constructor(_0x5407be,_0x2466bf,_0x4f2fc4){const _0x5151ea=_0x4a7abe;super(),_(this,_0x5151ea(0x405),new Map()),_(this,_0x5151ea(0x321),new Map()),_(this,_0x5151ea(0x1bc),!0x1),(this[_0x5151ea(0x365)]=_0x5407be,this[_0x5151ea(0x394)]=_0x2466bf,this[_0x5151ea(0x363)]=_0x4f2fc4);}[_0x4a7abe(0x48d)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x592189=_0x4a7abe;this[_0x592189(0x1bc)]=!0x1;}get[_0x4a7abe(0x487)](){const _0xda1ccd=_0x4a7abe;return this[_0xda1ccd(0x321)];}[_0x4a7abe(0x234)](){const _0x17c5c5=_0x4a7abe;this[_0x17c5c5(0x39f)]()[_0x17c5c5(0x2bf)](()=>super[_0x17c5c5(0x234)]());}async[_0x4a7abe(0x279)](_0x551642){const _0x594656=_0x4a7abe;return this[_0x594656(0x1bc)]?null:this[_0x594656(0x394)][_0x594656(0x419)](u[_0x594656(0x2a9)](_0x551642));}async[_0x4a7abe(0x38f)](_0x45774c,_0x2aa9db){const _0x4502cd=_0x4a7abe;return!!this[_0x4502cd(0x394)][_0x4502cd(0x344)](_0x45774c,_0x2aa9db);}[_0x4a7abe(0x3be)](_0x1c625c,_0x27b393,_0x459bb1,_0x1bbc07){const _0x4206f5=_0x4a7abe,_0x542773=this[_0x4206f5(0x363)][_0x4206f5(0x316)](_0x1c625c);this['_cachedData'][_0x4206f5(0x205)](_0x1c625c,{'unitID':_0x1c625c,'type':_0x27b393,'awaitingChangeset':_0x459bb1,'mutations':_0x1bbc07,'rev':_0x542773}),this[_0x4206f5(0x321)]['has'](_0x1c625c)||this[_0x4206f5(0x30a)](_0x1c625c);}[_0x4a7abe(0x30a)](_0x49a3be){const _0x32c3e4=_0x4a7abe,_0x55e02c=this[_0x32c3e4(0x23d)]();_0x55e02c===0x0?this[_0x32c3e4(0x2ec)](_0x49a3be):this[_0x32c3e4(0x321)][_0x32c3e4(0x205)](_0x49a3be,setTimeout(()=>this[_0x32c3e4(0x2ec)](_0x49a3be),_0x55e02c));}[_0x4a7abe(0x23d)](){const _0x37a656=_0x4a7abe;var _0x5a0c6f;return(_0x5a0c6f=this[_0x37a656(0x365)][_0x37a656(0x3d6)](u[_0x37a656(0x3c6)]))!=null?_0x5a0c6f:u[_0x37a656(0x3a5)];}['_saveCache'](_0x452ae9){const _0x49429b=_0x4a7abe,_0x2f64bb=this[_0x49429b(0x321)][_0x49429b(0x1c8)](_0x452ae9);return _0x2f64bb!==void 0x0&&window[_0x49429b(0x457)](_0x2f64bb),this['_localStorageService'][_0x49429b(0x344)](u[_0x49429b(0x2a9)](_0x452ae9),this[_0x49429b(0x405)][_0x49429b(0x1c8)](_0x452ae9))[_0x49429b(0x2bf)](()=>this[_0x49429b(0x321)][_0x49429b(0x1dd)](_0x452ae9));}async[_0x4a7abe(0x39f)](){const _0x5ec868=_0x4a7abe,_0x34e51c=[];this[_0x5ec868(0x321)]['forEach']((_0x52b694,_0x3ec165)=>{const _0x2096ac=_0x5ec868;window['clearTimeout'](_0x52b694),_0x34e51c[_0x2096ac(0x272)](this[_0x2096ac(0x2ec)](_0x3ec165)[_0x2096ac(0x2bf)](()=>{const _0x2b9761=_0x2096ac;this[_0x2b9761(0x321)]['delete'](_0x3ec165);}));}),await Promise[_0x5ec868(0x2a4)](_0x34e51c);}};Te=rs([Se(0x0,a[_0x4a7abe(0x27c)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x4a7abe(0x32c)](g[_0x4a7abe(0x48b)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x390ff8=_0x4a7abe;super(),_(this,_0x390ff8(0x1ca)),this[_0x390ff8(0x1ca)]=I['fromEvent'](window,'popstate')[_0x390ff8(0x31d)](I[_0x390ff8(0x239)](this[_0x390ff8(0x288)]),I[_0x390ff8(0x232)](0x1),I[_0x390ff8(0x41a)](void 0x0));}[_0x4a7abe(0x3c7)](_0x59cbcf,_0x373abc,_0x51886a=!0x1){const _0x47a94e=_0x4a7abe,_0x119e31=new URL(window[_0x47a94e(0x1fe)][_0x47a94e(0x3dc)]);_0x119e31[_0x47a94e(0x1f0)][_0x47a94e(0x205)](_0x59cbcf,_0x373abc),_0x51886a?window[_0x47a94e(0x34e)]['replaceState']('','',_0x119e31[_0x47a94e(0x442)]()):window['history']['pushState']('','',_0x119e31['toString']());}['removeParam'](_0x299c0b,_0x29fe44=!0x1){const _0x54ffed=_0x4a7abe,_0xbde39e=new URL(window[_0x54ffed(0x1fe)][_0x54ffed(0x3dc)]);_0xbde39e['searchParams'][_0x54ffed(0x1dd)](_0x299c0b),_0x29fe44?window[_0x54ffed(0x34e)][_0x54ffed(0x1d4)]('','',_0xbde39e[_0x54ffed(0x442)]()):window[_0x54ffed(0x34e)][_0x54ffed(0x225)]('','',_0xbde39e['toString']());}['getParam'](_0x3efd35){const _0x4fc4e2=_0x4a7abe;var _0x21bb81;return(_0x21bb81=new URL(window[_0x4fc4e2(0x1fe)][_0x4fc4e2(0x3dc)])[_0x4fc4e2(0x1f0)][_0x4fc4e2(0x1c8)](_0x3efd35))!=null?_0x21bb81:void 0x0;}}var os=Object[_0x4a7abe(0x25e)],as=Object[_0x4a7abe(0x319)],cs=(_0x113e6d,_0x30bb09,_0x49eca0)=>_0x30bb09 in _0x113e6d?os(_0x113e6d,_0x30bb09,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49eca0}):_0x113e6d[_0x30bb09]=_0x49eca0,ls=(_0x40e2de,_0x3909c0,_0x6e3518,_0x1230d7)=>{const _0xf2c6d5=_0x4a7abe;for(var _0x5dcbbe=_0x1230d7>0x1?void 0x0:_0x1230d7?as(_0x3909c0,_0x6e3518):_0x3909c0,_0x21a699=_0x40e2de[_0xf2c6d5(0x3e3)]-0x1,_0x14f0e9;_0x21a699>=0x0;_0x21a699--)(_0x14f0e9=_0x40e2de[_0x21a699])&&(_0x5dcbbe=_0x14f0e9(_0x5dcbbe)||_0x5dcbbe);return _0x5dcbbe;},de=(_0x2b1652,_0x527f8d)=>(_0x24361c,_0x4ffcf8)=>_0x527f8d(_0x24361c,_0x4ffcf8,_0x2b1652),_s=(_0x3023be,_0x44814a,_0x3bac4c)=>cs(_0x3023be,_0x44814a+'',_0x3bac4c);const hs=_0x4a7abe(0x323);exports[_0x4a7abe(0x342)]=class extends a[_0x4a7abe(0x492)]{constructor(_0x2f0a99=Me,_0x301133,_0x2b7adc,_0x27ab71){const _0x2f4ef2=_0x4a7abe;super(),this[_0x2f4ef2(0x264)]=_0x2f0a99,this[_0x2f4ef2(0x1fd)]=_0x301133,this[_0x2f4ef2(0x449)]=_0x2b7adc,this['_configService']=_0x27ab71;const {..._0x50bcc2}=a[_0x2f4ef2(0x2cd)]({},Me,this[_0x2f4ef2(0x264)]);this[_0x2f4ef2(0x365)]['setConfig'](Yt,_0x50bcc2);}[_0x4a7abe(0x2ca)](){const _0x1aa3b6=_0x4a7abe;this[_0x1aa3b6(0x2fe)](),this[_0x1aa3b6(0x424)]();}[_0x4a7abe(0x1ba)](){const _0x3814c2=_0x4a7abe;this[_0x3814c2(0x24f)]();}[_0x4a7abe(0x2fe)](){const _0x32a807=_0x4a7abe;var _0x18ec63;const _0x123e80=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x32a807(0x335)],{'useClass':x[_0x32a807(0x37e)]}],[u[_0x32a807(0x31f)],{'useClass':Te}],[exports[_0x32a807(0x446)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x32a807(0x264)]['enableFrontendLog']&&_0x123e80[_0x32a807(0x272)]([Q]),a[_0x32a807(0x3af)](this[_0x32a807(0x449)],a[_0x32a807(0x3e0)](_0x123e80,(_0x18ec63=this['_config'])==null?void 0x0:_0x18ec63[_0x32a807(0x46d)]));}[_0x4a7abe(0x24f)](){const _0x4a0ee1=_0x4a7abe;this[_0x4a0ee1(0x360)](this['_renderManagerService'][_0x4a0ee1(0x280)](a[_0x4a0ee1(0x483)][_0x4a0ee1(0x3a3)],[Ee])),this[_0x4a0ee1(0x360)](this[_0x4a0ee1(0x1fd)][_0x4a0ee1(0x280)](a[_0x4a0ee1(0x483)][_0x4a0ee1(0x324)],[Ce]));}[_0x4a7abe(0x424)](){const _0x316e7f=_0x4a7abe;a[_0x316e7f(0x378)](this[_0x316e7f(0x449)],[[F],[exports[_0x316e7f(0x446)]],[ie],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this[_0x316e7f(0x264)]['enableFrontendLog']&&a[_0x316e7f(0x378)](this[_0x316e7f(0x449)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x4a7abe(0x2b9),hs),exports[_0x4a7abe(0x342)]=ls([a[_0x4a7abe(0x27a)](u[_0x4a7abe(0x1c1)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),de(0x3,a['IConfigService'])],exports[_0x4a7abe(0x342)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x210771,_0x22e963,_0x42662f,_0x1a0166)=>{for(var _0x2604c2=_0x1a0166>0x1?void 0x0:_0x1a0166?us(_0x22e963,_0x42662f):_0x22e963,_0x4ddb33=_0x210771['length']-0x1,_0x2fcca7;_0x4ddb33>=0x0;_0x4ddb33--)(_0x2fcca7=_0x210771[_0x4ddb33])&&(_0x2604c2=_0x2fcca7(_0x2604c2)||_0x2604c2);return _0x2604c2;},W=(_0x2cd09e,_0x49f322)=>(_0x1597e4,_0x5aa550)=>_0x49f322(_0x1597e4,_0x5aa550,_0x2cd09e);exports['BrowserCollaborationSocketService']=class extends u[_0x4a7abe(0x281)]{constructor(_0x20fe02,_0x5188ae,_0x2a63a5,_0x21e607,_0x318d2a){super(_0x20fe02,_0x5188ae,_0x2a63a5,_0x21e607,_0x318d2a);}async[_0x4a7abe(0x41e)](_0x81658f){const _0x5c717d=_0x4a7abe,_0x584b3e=await this[_0x5c717d(0x2ba)](),_0x3ee088=this[_0x5c717d(0x29d)](_0x81658f,_0x584b3e);return this['_doCreateSocket'](_0x3ee088);}[_0x4a7abe(0x29d)](_0x2213f6,_0x16b0bc){const _0x280ea2=_0x4a7abe,_0x30d8a1=typeof window>'u'?new URL(_0x2213f6):new URL(_0x2213f6,window[_0x280ea2(0x1fe)][_0x280ea2(0x308)]);_0x30d8a1['searchParams'][_0x280ea2(0x205)](_0x280ea2(0x3b1),_0x16b0bc);const _0x5f728b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x280ea2(0x1fe)]['search']);return _0x5f728b[_0x280ea2(0x1c8)](_0x280ea2(0x25f))&&_0x30d8a1[_0x280ea2(0x1f0)][_0x280ea2(0x205)]('runId',_0x5f728b[_0x280ea2(0x1c8)](_0x280ea2(0x25f))),_0x30d8a1[_0x280ea2(0x442)]();}async['_getSessionTicket'](){const _0x369b0f=_0x4a7abe;var _0x57ef8d,_0x13ea26,_0x4c6fdc;const _0x1c42e6=this[_0x369b0f(0x365)][_0x369b0f(0x3d6)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1e1927=(_0x57ef8d=_0x1c42e6==null?void 0x0:_0x1c42e6[_0x369b0f(0x3e2)])!=null?_0x57ef8d:u[_0x369b0f(0x43c)];return(_0x4c6fdc=(_0x13ea26=(await this[_0x369b0f(0x3c0)]['get'](_0x1e1927,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x13ea26[_0x369b0f(0x41d)])!=null?_0x4c6fdc:'';}},exports[_0x4a7abe(0x274)]=Is([W(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),W(0x1,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),W(0x2,a[_0x4a7abe(0x27c)]),W(0x3,a[_0x4a7abe(0x1dc)]),W(0x4,g[_0x4a7abe(0x2c6)])],exports[_0x4a7abe(0x274)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x1d56cc,_0x182b5d,_0x241e24,_0x5ac2c0)=>{const _0x9f4d18=_0x4a7abe;for(var _0x4d5011=_0x5ac2c0>0x1?void 0x0:_0x5ac2c0?Ss(_0x182b5d,_0x241e24):_0x182b5d,_0x1e8f89=_0x1d56cc[_0x9f4d18(0x3e3)]-0x1,_0x301419;_0x1e8f89>=0x0;_0x1e8f89--)(_0x301419=_0x1d56cc[_0x1e8f89])&&(_0x4d5011=_0x301419(_0x4d5011)||_0x4d5011);return _0x4d5011;},fe=(_0x38de57,_0x49ee45)=>(_0x4a22cf,_0xbf337c)=>_0x49ee45(_0x4a22cf,_0xbf337c,_0x38de57);exports['RemoteUniscriptService']=class extends a[_0x4a7abe(0x2de)]{constructor(_0x1a2a84,_0x3ec3b9,_0x1a12fc){const _0x5219d7=_0x4a7abe;super(),this[_0x5219d7(0x40b)]=_0x1a2a84,this[_0x5219d7(0x3c0)]=_0x3ec3b9,this[_0x5219d7(0x365)]=_0x1a12fc;}async[_0x4a7abe(0x326)](_0x6e5623,_0x1325b9,_0x55c94c,..._0x1b50e3){const _0x4a8df5=_0x4a7abe;var _0x30bd09,_0x329df3,_0x47c0aa,_0x29f25e;const _0x1aec45=this[_0x4a8df5(0x40b)][_0x4a8df5(0x460)]();if(!_0x1aec45)throw new Error(_0x4a8df5(0x223));const _0x2123f6=((_0x30bd09=this['_configService'][_0x4a8df5(0x3d6)](u[_0x4a8df5(0x2b2)]))!=null?_0x30bd09:u[_0x4a8df5(0x249)])+'/'+_0x6e5623+_0x4a8df5(0x3cc)+_0x1325b9,_0x50bef8=new URL(window['location'][_0x4a8df5(0x3dc)]),_0x3df2dd={'scriptId':_0x6e5623,'runId':(_0x329df3=_0x50bef8[_0x4a8df5(0x1f0)][_0x4a8df5(0x1c8)]('runId'))!=null?_0x329df3:'','function':_0x1325b9,'unitId':_0x1aec45['getUnitId'](),'argsOfFunction':JSON[_0x4a8df5(0x1df)](_0x1b50e3),'invokeId':(_0x47c0aa=_0x55c94c[_0x4a8df5(0x1be)])!=null?_0x47c0aa:'','executionId':(_0x29f25e=_0x55c94c['executionId'])!=null?_0x29f25e:''};try{const _0x4a7477=await this[_0x4a8df5(0x3c0)][_0x4a8df5(0x1c4)](_0x2123f6,{'body':_0x3df2dd});return _0x4a7477[_0x4a8df5(0x3d1)]['error']&&_0x4a7477[_0x4a8df5(0x3d1)][_0x4a8df5(0x291)][_0x4a8df5(0x409)]!==G['OK']?_0x4a8df5(0x384):_0x4a7477[_0x4a8df5(0x3d1)][_0x4a8df5(0x1c5)];}catch{return'Failed';}}},exports[_0x4a7abe(0x219)]=ds([fe(0x0,a[_0x4a7abe(0x1e6)]),fe(0x1,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),fe(0x2,a[_0x4a7abe(0x27c)])],exports['RemoteUniscriptService']);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x4a7abe(0x2de)]{constructor(){const _0xa95208=_0x4a7abe;super(),_(this,'_id',a[_0xa95208(0x32f)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0xa95208(0x336),null),_(this,'_clearOtherTimers',new Map()),_(this,_0xa95208(0x294),new Map()),this[_0xa95208(0x3a9)]();}[_0x4a7abe(0x234)](){const _0xbc590c=_0x4a7abe;super['dispose'](),this[_0xbc590c(0x33b)]['forEach']((_0x4e1ae6,_0x388b8c)=>this['_removeClearOtherTimer'](_0x388b8c)),this['_heartbeatTimer']&&window[_0xbc590c(0x3f1)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x6a6b5a){const _0x236b77=_0x4a7abe;return this[_0x236b77(0x430)](_0x6a6b5a)['pipe'](I[_0x236b77(0x1e3)]());}[_0x4a7abe(0x3cd)](_0x3f6ec2){const _0x293dea=_0x4a7abe;this['_selfUnitIDs'][_0x293dea(0x299)]===0x0&&this[_0x293dea(0x41f)](),this[_0x293dea(0x482)][_0x293dea(0x3ab)](_0x3f6ec2),this[_0x293dea(0x30f)]({'type':0x0,'memberID':this[_0x293dea(0x33f)],'unitIDs':[_0x3f6ec2],'isForwarded':!0x1});}['disposeUnit'](_0x36abb0){const _0x349801=_0x4a7abe;this[_0x349801(0x482)][_0x349801(0x1dd)](_0x36abb0),this[_0x349801(0x482)][_0x349801(0x299)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4a7abe(0x3a9)](){const _0x3af302=_0x4a7abe;this[_0x3af302(0x360)](a[_0x3af302(0x1e5)](I[_0x3af302(0x3f8)](window,_0x3af302(0x2f3))[_0x3af302(0x1f1)](_0x57a0c4=>{const _0x5d2a70=_0x3af302;if(_0x57a0c4[_0x5d2a70(0x1d3)]!==ye||!_0x57a0c4['newValue'])return;const _0x495158=JSON['parse'](_0x57a0c4[_0x5d2a70(0x202)]);this[_0x5d2a70(0x46b)](_0x495158);}))),window[_0x3af302(0x1c0)]('unload',()=>this[_0x3af302(0x30f)]({'type':0x1,'memberID':this[_0x3af302(0x33f)],'unitIDs':Array[_0x3af302(0x42d)](this[_0x3af302(0x482)])}));}[_0x4a7abe(0x46b)](_0x58fe5f){const _0x5b909f=_0x4a7abe;switch(_0x58fe5f['type']){case 0x0:this['_handleJoinEvent'](_0x58fe5f);break;case 0x1:this['_handleLeaveEvent'](_0x58fe5f);break;case 0x2:this[_0x5b909f(0x2e3)](_0x58fe5f);break;}}[_0x4a7abe(0x433)](_0x345208){const _0xd284ba=_0x4a7abe,{unitIDs:_0x42eacf,memberID:_0x2b98c4,isForwarded:_0x46d163}=_0x345208;_0x42eacf[_0xd284ba(0x2aa)](_0x5e5084=>{const _0x418a59=_0xd284ba;if(!_0x46d163&&this[_0x418a59(0x2cf)][_0x418a59(0x439)](_0x5e5084)&&this['_ensureSubject'](_0x5e5084)['next'](u[_0x418a59(0x3d9)][_0x418a59(0x450)]),!this[_0x418a59(0x2cf)][_0x418a59(0x439)](_0x5e5084)||!this[_0x418a59(0x2cf)][_0x418a59(0x1c8)](_0x5e5084)['has'](_0x2b98c4)){const _0x24377e=this[_0x418a59(0x2cf)][_0x418a59(0x1c8)](_0x5e5084)||new Set();_0x24377e[_0x418a59(0x3ab)](_0x2b98c4),this['_unitOnClients'][_0x418a59(0x205)](_0x5e5084,_0x24377e),this[_0x418a59(0x303)](_0x2b98c4);}}),_0x46d163||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xd284ba(0x482)]],'isForwarded':!0x0});}[_0x4a7abe(0x303)](_0x2967f2){const _0x2dbb5b=_0x4a7abe;this[_0x2dbb5b(0x1fb)](_0x2967f2);const _0x814271=window[_0x2dbb5b(0x417)](()=>{const _0x5980c7=_0x2dbb5b;this[_0x5980c7(0x2cf)]['forEach'](_0x40eb64=>{_0x40eb64['delete'](_0x2967f2);});},we*0x2);this[_0x2dbb5b(0x33b)]['set'](_0x2967f2,_0x814271);}[_0x4a7abe(0x1fb)](_0x2f9db6){const _0x301265=_0x4a7abe;if(this[_0x301265(0x33b)][_0x301265(0x439)](_0x2f9db6)){const _0x5f55b1=this[_0x301265(0x33b)]['get'](_0x2f9db6);_0x5f55b1&&window[_0x301265(0x457)](_0x5f55b1),this[_0x301265(0x33b)][_0x301265(0x205)](_0x2f9db6,null);}}[_0x4a7abe(0x29e)](_0x3a0477){const _0x21d18f=_0x4a7abe,{memberID:_0x380e2a,unitIDs:_0x31db19}=_0x3a0477;_0x31db19[_0x21d18f(0x2aa)](_0x55a4a0=>{const _0x34e1f6=_0x21d18f;var _0x376424;const _0x399974=this[_0x34e1f6(0x2cf)]['get'](_0x55a4a0);_0x399974&&(_0x399974[_0x34e1f6(0x1dd)](_0x380e2a),(_0x376424=this[_0x34e1f6(0x430)](_0x55a4a0))==null||_0x376424['next'](_0x399974[_0x34e1f6(0x299)]===0x0?u[_0x34e1f6(0x3d9)][_0x34e1f6(0x473)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x21d18f(0x1fb)](_0x380e2a);}['_handleHeartbeatEvent'](_0x24563b){const _0x236b66=_0x4a7abe;this[_0x236b66(0x303)](_0x24563b[_0x236b66(0x24d)]);}[_0x4a7abe(0x30f)](_0x49dd52){const _0x1639eb=_0x4a7abe;localStorage[_0x1639eb(0x344)](ye,JSON['stringify'](_0x49dd52));}['_scheduleHeartbeat'](){const _0x49acc1=_0x4a7abe;this['_heartbeatTimer']=window[_0x49acc1(0x2eb)](()=>{const _0x26c37e=_0x49acc1;this[_0x26c37e(0x30f)]({'type':0x2,'memberID':this[_0x26c37e(0x33f)]});},we);}[_0x4a7abe(0x430)](_0x183253){const _0x471e2a=_0x4a7abe;return this['_unitStatus'][_0x471e2a(0x439)](_0x183253)||this[_0x471e2a(0x294)][_0x471e2a(0x205)](_0x183253,new I[(_0x471e2a(0x242))](u['UnitStatus'][_0x471e2a(0x473)])),this[_0x471e2a(0x294)][_0x471e2a(0x1c8)](_0x183253);}}exports[_0x4a7abe(0x2ef)]=Oe,exports[_0x4a7abe(0x45e)]=je,exports[_0x4a7abe(0x352)]=fs,exports[_0x4a7abe(0x2d2)]=ke;
|