@univerjs-pro/collaboration-client-ui 0.12.4-insiders.20251212-6c41730 → 0.12.4-insiders.20251213-692494c
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 _0x5f4c13=_0x1124;(function(_0x211d30,_0x1b3ad4){const _0x356d71=_0x1124,_0x77f8ed=_0x211d30();while(!![]){try{const _0x48607a=-parseInt(_0x356d71(0x187))/0x1+-parseInt(_0x356d71(0x15a))/0x2*(parseInt(_0x356d71(0x1fc))/0x3)+-parseInt(_0x356d71(0x379))/0x4*(parseInt(_0x356d71(0x2db))/0x5)+-parseInt(_0x356d71(0x32a))/0x6+-parseInt(_0x356d71(0x3ce))/0x7*(parseInt(_0x356d71(0x30f))/0x8)+-parseInt(_0x356d71(0x2de))/0x9+-parseInt(_0x356d71(0x1a6))/0xa*(-parseInt(_0x356d71(0x212))/0xb);if(_0x48607a===_0x1b3ad4)break;else _0x77f8ed['push'](_0x77f8ed['shift']());}catch(_0xedd025){_0x77f8ed['push'](_0x77f8ed['shift']());}}}(_0x38fa,0x79abd));var Xe=Object[_0x5f4c13(0x214)],Ke=(_0x368558,_0x53bb82,_0x37a5ce)=>_0x53bb82 in _0x368558?Xe(_0x368558,_0x53bb82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37a5ce}):_0x368558[_0x53bb82]=_0x37a5ce,_=(_0x4e492d,_0x353606,_0x520e5b)=>Ke(_0x4e492d,typeof _0x353606!=_0x5f4c13(0x172)?_0x353606+'':_0x353606,_0x520e5b);Object[_0x5f4c13(0x214)](exports,Symbol['toStringTag'],{'value':_0x5f4c13(0x258)});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:_0xad38a3,..._0x2641a3}){const _0x5b3305=_0x5f4c13,{icon:_0x5b1cfb,id:_0x1e1b04,className:_0x39f2a8,extend:_0x4546e2,..._0x27efca}=_0x2641a3,_0x3a3ac2=(_0x5b3305(0x2cc)+_0x1e1b04+'\x20'+(_0x39f2a8||''))[_0x5b3305(0x15e)](),_0x1cb52b=A[_0x5b3305(0x23b)]('_'+Qe());return $e(_0x5b1cfb,''+_0x1e1b04,{'defIds':_0x5b1cfb['defIds'],'idSuffix':_0x1cb52b['current']},{'ref':_0xad38a3,'className':_0x3a3ac2,..._0x27efca},_0x4546e2);}function $e(_0x52df74,_0x161966,_0x533c9a,_0x14257e,_0x5cdb96){const _0x2e2a5e=_0x5f4c13;return A[_0x2e2a5e(0x208)](_0x52df74['tag'],{'key':_0x161966,...Je(_0x52df74,_0x533c9a,_0x5cdb96),..._0x14257e},(Ze(_0x52df74,_0x533c9a)[_0x2e2a5e(0x3ab)]||[])[_0x2e2a5e(0x13c)]((_0x14aba9,_0x33552f)=>$e(_0x14aba9,_0x161966+'-'+_0x52df74[_0x2e2a5e(0x32b)]+'-'+_0x33552f,_0x533c9a,void 0x0,_0x5cdb96)));}function Je(_0x46afc5,_0x2d99ff,_0x386136){const _0x414d54=_0x5f4c13,_0x18de96={..._0x46afc5['attrs']};_0x386136!=null&&_0x386136[_0x414d54(0x321)]&&_0x18de96[_0x414d54(0x233)]===_0x414d54(0x321)&&(_0x18de96['fill']=_0x386136[_0x414d54(0x321)]),_0x46afc5['tag']===_0x414d54(0x268)&&_0x18de96['id']&&(_0x18de96['id']=_0x18de96['id']+_0x2d99ff[_0x414d54(0x232)]),Object[_0x414d54(0x362)](_0x18de96)[_0x414d54(0x3ac)](([_0x372225,_0x53bcae])=>{const _0x58bbfc=_0x414d54;_0x372225===_0x58bbfc(0x268)&&typeof _0x53bcae==_0x58bbfc(0x260)&&(_0x18de96[_0x372225]=_0x53bcae[_0x58bbfc(0x246)](/url\(#(.*)\)/,_0x58bbfc(0x20a)+_0x2d99ff[_0x58bbfc(0x232)]+')'));});const {defIds:_0x2ccb5a}=_0x2d99ff;return!_0x2ccb5a||_0x2ccb5a[_0x414d54(0x231)]===0x0||(_0x46afc5[_0x414d54(0x32b)]==='use'&&_0x18de96[_0x414d54(0x395)]&&(_0x18de96[_0x414d54(0x395)]=_0x18de96[_0x414d54(0x395)]+_0x2d99ff['idSuffix']),Object['entries'](_0x18de96)['forEach'](([_0xb251f,_0x30eca7])=>{const _0x58e025=_0x414d54;typeof _0x30eca7=='string'&&(_0x18de96[_0xb251f]=_0x30eca7['replace'](/url\(#(.*)\)/,_0x58e025(0x20a)+_0x2d99ff['idSuffix']+')'));})),_0x18de96;}function Ze(_0x9724cb,_0x56d01d){const _0x186b57=_0x5f4c13;var _0x233a34;const {defIds:_0x1b906b}=_0x56d01d;return!_0x1b906b||_0x1b906b[_0x186b57(0x231)]===0x0?_0x9724cb:_0x9724cb[_0x186b57(0x32b)]===_0x186b57(0x27c)&&((_0x233a34=_0x9724cb['children'])!=null&&_0x233a34[_0x186b57(0x231)])?{..._0x9724cb,'children':_0x9724cb[_0x186b57(0x3ab)][_0x186b57(0x13c)](_0x3fd7cc=>typeof _0x3fd7cc[_0x186b57(0x1db)]['id']==_0x186b57(0x260)&&_0x1b906b&&_0x1b906b['includes'](_0x3fd7cc[_0x186b57(0x1db)]['id'])?{..._0x3fd7cc,'attrs':{..._0x3fd7cc['attrs'],'id':_0x3fd7cc[_0x186b57(0x1db)]['id']+_0x56d01d[_0x186b57(0x232)]}}:_0x3fd7cc)}:_0x9724cb;}function Qe(){const _0x14fbb4=_0x5f4c13;return Math[_0x14fbb4(0x1b2)]()[_0x14fbb4(0x327)](0x24)[_0x14fbb4(0x137)](0x2,0x8);}pe[_0x5f4c13(0x30a)]='UniverIcon';const et={'tag':_0x5f4c13(0x2f0),'attrs':{'xmlns':_0x5f4c13(0x3b0),'fill':_0x5f4c13(0x130),'viewBox':_0x5f4c13(0x2b6),'width':_0x5f4c13(0x2d7),'height':_0x5f4c13(0x2d7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5f4c13(0x1ec),'attrs':{'stroke':_0x5f4c13(0x33a),'d':_0x5f4c13(0x33c),'strokeLinecap':'round','strokeLinejoin':_0x5f4c13(0x2df),'strokeWidth':1.2}}]},{'tag':_0x5f4c13(0x27c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5f4c13(0x1ec),'attrs':{'fill':'white','d':_0x5f4c13(0x2cd)}}]}]}],'defIds':[_0x5f4c13(0x398)]},xe=A[_0x5f4c13(0x225)](function(_0x5ff3be,_0x4c5313){const _0x583cac=_0x5f4c13;return A['createElement'](pe,Object['assign']({},_0x5ff3be,{'id':_0x583cac(0x2f3),'ref':_0x4c5313,'icon':et}));});xe[_0x5f4c13(0x30a)]=_0x5f4c13(0x306);const tt={'tag':_0x5f4c13(0x2f0),'attrs':{'xmlns':_0x5f4c13(0x3b0),'fill':'none','viewBox':_0x5f4c13(0x1b3),'width':'1em','height':_0x5f4c13(0x2d7)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f4c13(0x2aa)},'children':[{'tag':_0x5f4c13(0x1ec),'attrs':{'stroke':_0x5f4c13(0x33a),'d':_0x5f4c13(0x287),'strokeLinecap':'round','strokeLinejoin':_0x5f4c13(0x2df),'strokeWidth':1.2}}]},{'tag':_0x5f4c13(0x27c),'attrs':{},'children':[{'tag':_0x5f4c13(0x18b),'attrs':{'id':_0x5f4c13(0x12c)},'children':[{'tag':'path','attrs':{'fill':_0x5f4c13(0x3de),'d':_0x5f4c13(0x2cd),'transform':_0x5f4c13(0x3bb)}}]}]}],'defIds':[_0x5f4c13(0x12c)]},Be=A[_0x5f4c13(0x225)](function(_0x6fbfea,_0x519f70){const _0x2f8304=_0x5f4c13;return A[_0x2f8304(0x208)](pe,Object[_0x2f8304(0x2ca)]({},_0x6fbfea,{'id':'on-line-icon','ref':_0x519f70,'icon':tt}));});Be[_0x5f4c13(0x30a)]=_0x5f4c13(0x37c);function st(_0x2c8d18){const _0x2d94b2=_0x5f4c13;switch(_0x2c8d18){case u[_0x2d94b2(0x376)][_0x2d94b2(0x177)]:return'collabStatus.offline';case u[_0x2d94b2(0x376)][_0x2d94b2(0x3b5)]:return'collabStatus.conflict';case u[_0x2d94b2(0x376)][_0x2d94b2(0x34e)]:return _0x2d94b2(0x144);case u[_0x2d94b2(0x376)]['NOT_COLLAB']:return _0x2d94b2(0x284);case u[_0x2d94b2(0x376)]['AWAITING']:case u[_0x2d94b2(0x376)][_0x2d94b2(0x365)]:return _0x2d94b2(0x2e5);case u['CollaborationStatus']['SYNCED']:case u[_0x2d94b2(0x376)]['PENDING']:return _0x2d94b2(0x3dd);}}function it(_0xdfbced){const _0xb6ea8b=_0x5f4c13,{status$:_0x245d2b}=_0xdfbced,_0x51af9d=O[_0xb6ea8b(0x298)](_0x245d2b,u[_0xb6ea8b(0x376)][_0xb6ea8b(0x347)]),_0x318408=O[_0xb6ea8b(0x15d)](a[_0xb6ea8b(0x2b2)]),_0x3aa45a=O['useDependency'](u[_0xb6ea8b(0x38f)]),_0x56afd3=_0x51af9d!==u[_0xb6ea8b(0x376)]['OFFLINE'],_0x5d981f=_0x318408['t'](st(_0x51af9d)),_0x50dc47=_0x56afd3?M[_0xb6ea8b(0x392)](Be,{}):M['jsx'](xe,{}),_0x300925=A['useCallback'](()=>{const _0x2b37b1=_0xb6ea8b;_0x56afd3||_0x3aa45a[_0x2b37b1(0x1ce)]();},[_0x56afd3,_0x3aa45a]);function _0x2a2471(){const _0xe816c0=_0xb6ea8b;return M['jsxs'](_0xe816c0(0x2a9),{'className':'univer-flex\x20univer-items-center','onClick':_0x300925,'children':[M[_0xe816c0(0x392)](_0xe816c0(0x2a9),{'className':p[_0xe816c0(0x176)](_0xe816c0(0x2bb),{'univer-text-green-500':_0x56afd3,'univer-text-red-500':!_0x56afd3}),'children':_0x50dc47}),M[_0xe816c0(0x392)]('div',{'className':_0xe816c0(0x126),'children':_0x5d981f})]});}return _0x56afd3?_0x2a2471():M[_0xb6ea8b(0x392)](p[_0xb6ea8b(0x167)],{'title':_0x318408['t'](_0xb6ea8b(0x2b1)),'children':_0x2a2471()});}var nt=Object[_0x5f4c13(0x1ee)],rt=(_0x22ea4f,_0x46b4af,_0x584bdb,_0x45ff7f)=>{const _0x2a3426=_0x5f4c13;for(var _0x5eef31=_0x45ff7f>0x1?void 0x0:_0x45ff7f?nt(_0x46b4af,_0x584bdb):_0x46b4af,_0x25a710=_0x22ea4f[_0x2a3426(0x231)]-0x1,_0x26f5c7;_0x25a710>=0x0;_0x25a710--)(_0x26f5c7=_0x22ea4f[_0x25a710])&&(_0x5eef31=_0x26f5c7(_0x5eef31)||_0x5eef31);return _0x5eef31;},K=(_0x4db39c,_0x12eb0a)=>(_0x140324,_0x1e537e)=>_0x12eb0a(_0x140324,_0x1e537e,_0x4db39c);exports[_0x5f4c13(0x386)]=class extends a[_0x5f4c13(0x28f)]{constructor(_0x1ecfa9,_0x23aa2e,_0x44211d,_0x32dcee){const _0x26a593=_0x5f4c13;super(),_(this,_0x26a593(0x16b),new I['BehaviorSubject'](u[_0x26a593(0x376)][_0x26a593(0x347)])),(this[_0x26a593(0x1fe)]=_0x1ecfa9,this[_0x26a593(0x1fd)]=_0x23aa2e,this[_0x26a593(0x217)]=_0x44211d,this[_0x26a593(0x12e)]=_0x32dcee,this[_0x26a593(0x1ff)](),this['_initStatusListener']());}[_0x5f4c13(0x1e9)](){const _0x1c87c3=_0x5f4c13;this[_0x1c87c3(0x3da)](this[_0x1c87c3(0x1fe)][_0x1c87c3(0x1c8)][_0x1c87c3(0x336)](I[_0x1c87c3(0x12d)](()=>{const _0x462cb1=_0x1c87c3,_0x2ab65f=this[_0x462cb1(0x1fe)][_0x462cb1(0x337)]();return _0x2ab65f?this[_0x462cb1(0x217)][_0x462cb1(0x23f)](_0x2ab65f[_0x462cb1(0x272)]()):I['of'](null);}),I[_0x1c87c3(0x12d)](_0x38ae2f=>_0x38ae2f?_0x38ae2f[_0x1c87c3(0x2fd)]:I['of'](u[_0x1c87c3(0x376)][_0x1c87c3(0x347)])))['subscribe'](_0x1ab59c=>{this['_status$']['next'](_0x1ab59c);}));}[_0x5f4c13(0x1ff)](){const _0x488041=_0x5f4c13;this[_0x488041(0x3da)](this[_0x488041(0x12e)][_0x488041(0x17d)](O[_0x488041(0x3a7)][_0x488041(0x3af)],()=>O[_0x488041(0x1e6)](ot({'status$':this[_0x488041(0x16b)]['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x5f4c13(0x12a)]),K(0x1,a['Inject'](a[_0x5f4c13(0x349)])),K(0x2,a[_0x5f4c13(0x21b)](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports[_0x5f4c13(0x386)]);function ot(_0x375dbd){const {status$:_0x2a8811}=_0x375dbd;return function(){const _0x2d85df=_0x1124;return M[_0x2d85df(0x392)](it,{'status$':_0x2a8811});};}const Oe=a[_0x5f4c13(0x34f)](_0x5f4c13(0x359));var at=Object[_0x5f4c13(0x1ee)],ct=(_0x1354ea,_0x53db52,_0x10bb40,_0x115be1)=>{const _0x2926e7=_0x5f4c13;for(var _0x57c0e5=_0x115be1>0x1?void 0x0:_0x115be1?at(_0x53db52,_0x10bb40):_0x53db52,_0x14be76=_0x1354ea[_0x2926e7(0x231)]-0x1,_0x15a58d;_0x14be76>=0x0;_0x14be76--)(_0x15a58d=_0x1354ea[_0x14be76])&&(_0x57c0e5=_0x15a58d(_0x57c0e5)||_0x57c0e5);return _0x57c0e5;},Y=(_0x554583,_0x5c4207)=>(_0x442187,_0x4ab954)=>_0x5c4207(_0x442187,_0x4ab954,_0x554583);exports[_0x5f4c13(0x24c)]=class extends a['RxDisposable']{constructor(_0x359c7a,_0x1f4da9,_0x58078a,_0x36a823,_0x1d78bc){const _0x59d2a5=_0x5f4c13;super(),this[_0x59d2a5(0x13a)]=_0x359c7a,this['_logService']=_0x1f4da9,this[_0x59d2a5(0x274)]=_0x58078a,this[_0x59d2a5(0x2a7)]=_0x36a823,_0x1d78bc?_0x1d78bc==null||_0x1d78bc[_0x59d2a5(0x354)]()[_0x59d2a5(0x314)](()=>this[_0x59d2a5(0x335)]()):(this['_logService'][_0x59d2a5(0x222)](_0x59d2a5(0x149),_0x59d2a5(0x1e7)),this[_0x59d2a5(0x335)]());}async['_init'](){const _0xceea70=_0x5f4c13,_0x4bf0af=this[_0xceea70(0x13a)][_0xceea70(0x269)](_0xceea70(0x352)),_0x5472db=this[_0xceea70(0x13a)][_0xceea70(0x269)]('type'),_0x5188d5=this[_0xceea70(0x13a)]['getParam'](_0xceea70(0x257));if(!_0x4bf0af||!_0x5472db){this[_0xceea70(0x277)][_0xceea70(0x222)](_0xceea70(0x149),_0xceea70(0x13d));return;}const _0x2bd857=await this[_0xceea70(0x2a7)][_0xceea70(0x2f5)](_0x4bf0af,Number(_0x5472db),_0x5188d5);_0x2bd857&&_0x2bd857 instanceof a[_0xceea70(0x30e)]&&this[_0xceea70(0x2c7)](_0x2bd857);}async[_0x5f4c13(0x2c7)](_0x398146){const _0x1acfc7=_0x5f4c13;await this[_0x1acfc7(0x39e)](_0x398146),_0x398146[_0x1acfc7(0x316)]['pipe'](I['takeUntil'](this['dispose$']))[_0x1acfc7(0x154)](_0x5e400=>{_0x5e400&&this['_updateURLWithCurrentState'](_0x5e400);}),this[_0x1acfc7(0x13a)][_0x1acfc7(0x396)]['pipe'](I[_0x1acfc7(0x3c7)](this['dispose$']))[_0x1acfc7(0x154)](()=>this[_0x1acfc7(0x39e)](_0x398146));}[_0x5f4c13(0x387)](_0x59833e,_0x13d7fa=!0x1){const _0x2f04b2=_0x5f4c13,_0x5710be=this[_0x2f04b2(0x13a)][_0x2f04b2(0x269)]('subunit');_0x59833e[_0x2f04b2(0x2d6)]()!==_0x5710be&&this['_urlService'][_0x2f04b2(0x201)](_0x2f04b2(0x257),_0x59833e[_0x2f04b2(0x2d6)](),_0x13d7fa);}async[_0x5f4c13(0x39e)](_0xd7b762){const _0x4179ba=_0x5f4c13;var _0x1407e5;const _0x2f1364=this[_0x4179ba(0x13a)][_0x4179ba(0x269)](_0x4179ba(0x257));if(!_0x2f1364||!_0xd7b762[_0x4179ba(0x2b9)](_0x2f1364)){const _0x28d8f3=_0xd7b762[_0x4179ba(0x202)]()[0x0],_0x488a3a=_0xd7b762['getSheetBySheetId'](_0x28d8f3);if(!_0x488a3a)return;this[_0x4179ba(0x387)](_0x488a3a,!0x0),await this[_0x4179ba(0x274)][_0x4179ba(0x2a0)](v[_0x4179ba(0x370)]['id'],{'unitId':_0xd7b762[_0x4179ba(0x272)](),'subUnitId':_0x28d8f3});return;}((_0x1407e5=_0xd7b762[_0x4179ba(0x373)]())==null?void 0x0:_0x1407e5[_0x4179ba(0x2d6)]())!==_0x2f1364&&await this[_0x4179ba(0x274)][_0x4179ba(0x2a0)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0xd7b762[_0x4179ba(0x272)](),'subUnitId':_0x2f1364});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x5f4c13(0x1f4)]),Y(0x3,a[_0x5f4c13(0x21b)](u[_0x5f4c13(0x164)])),Y(0x4,a[_0x5f4c13(0x1da)](qe[_0x5f4c13(0x282)]))],exports[_0x5f4c13(0x24c)]);var lt=Object[_0x5f4c13(0x1ee)],_t=(_0x363793,_0x2bfad3,_0x179b9f,_0x296e50)=>{const _0x3d400d=_0x5f4c13;for(var _0x2cce1e=_0x296e50>0x1?void 0x0:_0x296e50?lt(_0x2bfad3,_0x179b9f):_0x2bfad3,_0x122ead=_0x363793[_0x3d400d(0x231)]-0x1,_0x3fcca1;_0x122ead>=0x0;_0x122ead--)(_0x3fcca1=_0x363793[_0x122ead])&&(_0x2cce1e=_0x3fcca1(_0x2cce1e)||_0x2cce1e);return _0x2cce1e;},De=(_0x44d753,_0x1f326a)=>(_0x28dee2,_0x582433)=>_0x1f326a(_0x28dee2,_0x582433,_0x44d753);let me=class extends a['RxDisposable']{constructor(_0x1ef203,_0x1995f3){const _0x3d0dc2=_0x5f4c13;super(),this['_docClipboardService']=_0x1ef203,this[_0x3d0dc2(0x31c)]=_0x1995f3,this[_0x3d0dc2(0x335)]();}['_init'](){const _0x5643ff=_0x5f4c13,_0x2cae76=this;this['disposeWithMe'](this[_0x5643ff(0x1cd)]['addClipboardHook']({'onBeforePasteImage':async _0x30694a=>{const _0x311471=_0x5643ff,_0x2cb767=await _0x2cae76[_0x311471(0x31c)][_0x311471(0x357)](_0x30694a);return _0x2cb767?{'source':_0x2cb767[_0x311471(0x1b9)],'imageSourceType':_0x2cb767[_0x311471(0x22a)]}:null;}}));}};me=_t([De(0x0,T[_0x5f4c13(0x12b)]),De(0x1,ze[_0x5f4c13(0x3b1)])],me);const Ne=[_0x5f4c13(0x3ae),_0x5f4c13(0x292),'green.600',_0x5f4c13(0x383),_0x5f4c13(0x364),_0x5f4c13(0x19e)];class Re extends a['Disposable']{constructor(){const _0xbcd07c=_0x5f4c13;super(...arguments),_(this,_0xbcd07c(0x198),new Map()),_(this,_0xbcd07c(0x299),0x0);}[_0x5f4c13(0x39f)](_0x430d8c){const _0x183fff=_0x5f4c13;if(this[_0x183fff(0x198)][_0x183fff(0x17f)](_0x430d8c))return this['_assignedColors'][_0x183fff(0x389)](_0x430d8c);const _0x400f63=Ne[this[_0x183fff(0x299)]];return this[_0x183fff(0x299)]=(this['_colorIndex']+0x1)%Ne[_0x183fff(0x231)],this[_0x183fff(0x198)][_0x183fff(0x310)](_0x430d8c,_0x400f63),_0x400f63;}}function Fe(_0x4d2e81){const _0x3dcf5f=_0x5f4c13;let _0x12312f='';for(const _0x5fb033 of _0x4d2e81){const {startOffset:_0xd4aa53,endOffset:_0x2b8d57,isActive:_0x159c79,rangeType:_0x409e38,segmentId:_0x281089,segmentPage:_0x5e6de1}=_0x5fb033;_0x12312f[_0x3dcf5f(0x231)]&&(_0x12312f+=','),_0x12312f+=_0xd4aa53+':'+_0x2b8d57+':'+(_0x159c79?'1':'0')+':'+_0x409e38+':'+_0x281089+':'+_0x5e6de1;}return _0x12312f;}function ht(_0x5c27b7){const _0x12a4b2=_0x5f4c13,_0x56cfee=_0x5c27b7[_0x12a4b2(0x289)](','),_0x4fabc2=[];for(const _0x35a784 of _0x56cfee){const [_0x25844b,_0x4c5f45,_0x46f08a,_0x4bb133,_0x4e3c1b,_0x153375]=_0x35a784['split'](':');_0x4fabc2[_0x12a4b2(0x261)]({'startOffset':Number(_0x25844b),'endOffset':Number(_0x4c5f45),'collapsed':_0x25844b===_0x4c5f45,'isActive':_0x46f08a==='1','rangeType':_0x4bb133===a[_0x12a4b2(0x16d)][_0x12a4b2(0x148)]?a[_0x12a4b2(0x16d)][_0x12a4b2(0x148)]:a[_0x12a4b2(0x16d)]['RECT'],'segmentId':typeof _0x4e3c1b==_0x12a4b2(0x260)?String(_0x4e3c1b):'','segmentPage':Number(_0x153375!=null?_0x153375:-0x1)});}return _0x4fabc2[_0x12a4b2(0x1b8)](_0x13fead=>_0x13fead['isActive'])||(_0x4fabc2[0x0]['isActive']=!0x0),_0x4fabc2;}class be extends a[_0x5f4c13(0x1f7)]{constructor(){const _0x27d681=_0x5f4c13;super(...arguments),_(this,_0x27d681(0x2ee),new I[(_0x27d681(0x2ed))](null)),_(this,'collabCursorState$',this[_0x27d681(0x2ee)][_0x27d681(0x1dc)]());}[_0x5f4c13(0x3c1)](_0x41e9ed){const _0x5ee3f8=_0x5f4c13,{unitID:_0x424bc6,memberID:_0x3b64da,textRanges:_0x460de0}=_0x41e9ed,_0x364334=Fe(_0x460de0);if(_0x364334==='')return;const _0x1952f7={'unitID':_0x424bc6,'memberID':_0x3b64da,'selection':_0x364334};this['_collabCursorState$'][_0x5ee3f8(0x302)](_0x1952f7);}}var ut=Object[_0x5f4c13(0x1ee)],It=(_0x35ecd5,_0x270819,_0x2209ec,_0x331aac)=>{const _0x256cab=_0x5f4c13;for(var _0x315d35=_0x331aac>0x1?void 0x0:_0x331aac?ut(_0x270819,_0x2209ec):_0x270819,_0x2fec73=_0x35ecd5[_0x256cab(0x231)]-0x1,_0x5d4a3b;_0x2fec73>=0x0;_0x2fec73--)(_0x5d4a3b=_0x35ecd5[_0x2fec73])&&(_0x315d35=_0x5d4a3b(_0x315d35)||_0x315d35);return _0x315d35;},U=(_0x3bc4fb,_0x2d5a2d)=>(_0x4ce27a,_0x4a8da9)=>_0x2d5a2d(_0x4ce27a,_0x4a8da9,_0x3bc4fb);const St=0x12c,dt=0x64;let ve=class extends a[_0x5f4c13(0x1f7)]{constructor(_0x18ec84,_0x283063,_0x35d439,_0x116259,_0x5c1779,_0x5c825d,_0x21a6c7,_0x1b9fc8,_0x1d14ce){const _0x3bdc57=_0x5f4c13;super(),_(this,_0x3bdc57(0x20f),!0x1),_(this,_0x3bdc57(0x335),!0x1),_(this,_0x3bdc57(0x1df),new I[(_0x3bdc57(0x2ed))](new Map())),_(this,_0x3bdc57(0x23c),this[_0x3bdc57(0x1df)]['asObservable']()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x3bdc57(0x155),this['_roomMembers$'][_0x3bdc57(0x336)](I['debounceTime'](St))),_(this,_0x3bdc57(0x331),a['debounce'](_0x57c1cb=>{const _0x2fd12b=_0x3bdc57,_0x19b7c5={'eventID':g[_0x2fd12b(0x30d)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Fe(_0x57c1cb)}};this['_session'][_0x2fd12b(0x19f)](_0x19b7c5,this[_0x2fd12b(0x26a)]);},dt)),(this[_0x3bdc57(0x26a)]=_0x18ec84,this[_0x3bdc57(0x263)]=_0x283063,this['_injector']=_0x35d439,this['_colorAssignService']=_0x116259,this['_memberService']=_0x5c1779,this[_0x3bdc57(0x2f4)]=_0x5c825d,this['_transformService']=_0x21a6c7,this[_0x3bdc57(0x1fe)]=_0x1b9fc8,this[_0x3bdc57(0x274)]=_0x1d14ce);}get['cursorInfo'](){const _0x1c20c1=_0x5f4c13;return this[_0x1c20c1(0x1df)][_0x1c20c1(0x2cf)]();}get[_0x5f4c13(0x34c)](){const _0x5c10df=_0x5f4c13;return this['_roomMembers$'][_0x5c10df(0x2cf)]();}['dispose'](){const _0x37c814=_0x5f4c13;super[_0x37c814(0x18f)](),this[_0x37c814(0x1df)][_0x37c814(0x302)](new Map()),this['_cursorInfo$'][_0x37c814(0x382)](),this['_roomMembers$'][_0x37c814(0x302)]([]),this[_0x37c814(0x22d)]['complete']();}[_0x5f4c13(0x353)](){const _0x3a866a=_0x5f4c13;this[_0x3a866a(0x335)]||(this['_init']=!0x0,this[_0x3a866a(0x263)][_0x3a866a(0x3e0)][_0x3a866a(0x336)](I[_0x3a866a(0x3c7)](this[_0x3a866a(0x2ce)]))[_0x3a866a(0x154)](_0x28d3f6=>{const _0x52c285=_0x3a866a;_0x28d3f6===u['SessionStatus'][_0x52c285(0x210)]?this['_toggleOnline']():this[_0x52c285(0x3d1)]();}),this[_0x3a866a(0x263)][_0x3a866a(0x38b)][_0x3a866a(0x336)](I[_0x3a866a(0x3c7)](this[_0x3a866a(0x2ce)]))['subscribe'](_0x41c5dc=>{const _0x2c5b83=_0x3a866a,_0x1a4c3c=_0x41c5dc[_0x2c5b83(0x2c0)];_0x1a4c3c===g['CollaborationEvent'][_0x2c5b83(0x2a3)]&&this[_0x2c5b83(0x3ad)](_0x41c5dc),_0x1a4c3c===g[_0x2c5b83(0x30d)][_0x2c5b83(0x139)]&&this[_0x2c5b83(0x319)](_0x41c5dc);}),this[_0x3a866a(0x3da)](this[_0x3a866a(0x274)][_0x3a866a(0x3d8)](_0x1fd3f2=>{const _0x3ed44d=_0x3a866a,_0x54e18a=_0x1fd3f2[_0x3ed44d(0x346)];_0x54e18a!=null&&this[_0x3ed44d(0x20f)]&&_0x1fd3f2['id']===V[_0x3ed44d(0x2ab)]['id']&&_0x54e18a[_0x3ed44d(0x34a)]===this[_0x3ed44d(0x26a)]&&_0x54e18a['isEditing']===!0x1&&_0x54e18a['ranges'][_0x3ed44d(0x231)]>0x0&&this[_0x3ed44d(0x331)](_0x54e18a[_0x3ed44d(0x36e)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x3a866a(0x336)](I[_0x3a866a(0x3c7)](this['dispose$']))[_0x3a866a(0x154)](_0x4a4984=>{const _0x462216=_0x3a866a;if((_0x4a4984==null?void 0x0:_0x4a4984[_0x462216(0x26a)])!==this[_0x462216(0x26a)])return;const _0x35fdcf={'eventID':g[_0x462216(0x30d)][_0x462216(0x2a3)],'data':_0x4a4984};this[_0x462216(0x3ad)](_0x35fdcf);}),this[_0x3a866a(0x3da)](this[_0x3a866a(0x274)]['onCommandExecuted'](_0x1540a3=>{const _0x985c48=_0x3a866a;if(_0x1540a3['params']==null)return;const _0x4fbeeb=_0x1540a3['params'];if(_0x1540a3['id']!==V[_0x985c48(0x24e)]['id']||_0x4fbeeb[_0x985c48(0x34a)]!==this[_0x985c48(0x26a)])return;const _0x3862e2={'id':_0x985c48(0x209),'params':_0x4fbeeb},_0xf2e6bc=this[_0x985c48(0x1c5)];for(const [_0x458ba6,_0x3e15d6]of _0xf2e6bc){const _0x1b3362={'id':_0x985c48(0x209),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3e15d6['ranges']}},_0x4307a9=this['_transformService'][_0x985c48(0x31d)](_0x3862e2,_0x1b3362,!0x1);if(g[_0x985c48(0x140)](_0x4307a9))throw _0x4307a9[_0x985c48(0x1dd)];_0xf2e6bc[_0x985c48(0x310)](_0x458ba6,{..._0x3e15d6,'ranges':_0x4307a9[_0x985c48(0x3c4)]['params'][_0x985c48(0x304)]});}queueMicrotask(()=>{const _0x249a29=_0x985c48;this[_0x249a29(0x1df)][_0x249a29(0x302)](_0xf2e6bc);});})));}[_0x5f4c13(0x3ad)](_0x4e3ebc){const _0x5ae3ea=_0x5f4c13;var _0x53a9d9,_0x2fc61d;const {memberID:_0x1957a2,selection:_0x4d4a43}=_0x4e3ebc[_0x5ae3ea(0x31f)],_0x4cca04=ht(_0x4d4a43),_0x2ab69d=(_0x2fc61d=(_0x53a9d9=this[_0x5ae3ea(0x22c)][_0x5ae3ea(0x1bc)](this[_0x5ae3ea(0x26a)],_0x1957a2))==null?void 0x0:_0x53a9d9[_0x5ae3ea(0x25c)])!=null?_0x2fc61d:_0x5ae3ea(0x14c),_0xd9ac7a={'color':this[_0x5ae3ea(0x324)][_0x5ae3ea(0x39f)](_0x1957a2),'name':_0x2ab69d,'ranges':_0x4cca04},_0x371b92=this[_0x5ae3ea(0x1c5)];_0x371b92[_0x5ae3ea(0x310)](_0x1957a2,_0xd9ac7a),this[_0x5ae3ea(0x1df)][_0x5ae3ea(0x302)](_0x371b92);}[_0x5f4c13(0x319)](_0x1d60a0){const _0x2c0d34=_0x5f4c13,{memberID:_0x290b04}=_0x1d60a0[_0x2c0d34(0x31f)],_0x571d06=this[_0x2c0d34(0x1c5)];_0x571d06[_0x2c0d34(0x1aa)](_0x290b04),this['_cursorInfo$']['next'](_0x571d06);}[_0x5f4c13(0x3a0)](){const _0x3b63c2=_0x5f4c13;var _0x18ede9;if(this[_0x3b63c2(0x20f)]=!0x0,((_0x18ede9=this['_univerInstanceService'][_0x3b63c2(0x337)]())==null?void 0x0:_0x18ede9[_0x3b63c2(0x272)]())!==this[_0x3b63c2(0x26a)])return;const _0x3d6c4d=this[_0x3b63c2(0x1fd)]['get'](V[_0x3b63c2(0x345)])[_0x3b63c2(0x192)]();Array['isArray'](_0x3d6c4d)&&_0x3d6c4d[_0x3b63c2(0x231)]>0x0&&this[_0x3b63c2(0x331)](_0x3d6c4d);}['_toggleOffline'](){const _0x204599=_0x5f4c13;this[_0x204599(0x20f)]=!0x1;}};ve=It([U(0x2,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),U(0x3,a[_0x5f4c13(0x21b)](Re)),U(0x4,a[_0x5f4c13(0x21b)](u['MemberService'])),U(0x5,a[_0x5f4c13(0x21b)](be)),U(0x6,g[_0x5f4c13(0x2e7)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x5f4c13(0x1f4)])],ve);var ft=Object[_0x5f4c13(0x1ee)],mt=(_0x359d86,_0x5c8946,_0x5ef26b,_0x45aab2)=>{const _0x3b38a0=_0x5f4c13;for(var _0x1c7b67=_0x45aab2>0x1?void 0x0:_0x45aab2?ft(_0x5c8946,_0x5ef26b):_0x5c8946,_0x3a23a2=_0x359d86[_0x3b38a0(0x231)]-0x1,_0xdc02c8;_0x3a23a2>=0x0;_0x3a23a2--)(_0xdc02c8=_0x359d86[_0x3a23a2])&&(_0x1c7b67=_0xdc02c8(_0x1c7b67)||_0x1c7b67);return _0x1c7b67;},w=(_0x2d53b8,_0x178e4c)=>(_0x468778,_0x4341f7)=>_0x178e4c(_0x468778,_0x4341f7,_0x2d53b8);const vt=0x12c,gt=0x64,Et=()=>{let _0x18c29a=[],_0x64da93=!0x1;return _0x599b8b=>{_0x18c29a['push'](_0x599b8b),_0x64da93||(_0x64da93=!0x0,setTimeout(()=>{const _0xc2482c=_0x1124;_0x18c29a[_0xc2482c(0x3ac)](_0x1fd010=>_0x1fd010()),_0x18c29a=[],_0x64da93=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x59267c,_0x14988f,_0x2f9cf0,_0x147449,_0x2e09a6,_0x12d359,_0x51d980,_0x1f9428){const _0x164b5d=_0x5f4c13;super(),_(this,_0x164b5d(0x20f),!0x1),_(this,_0x164b5d(0x335),!0x1),_(this,'_cursorInfo$',new I[(_0x164b5d(0x2ed))](new Map())),_(this,_0x164b5d(0x23c),this[_0x164b5d(0x1df)]['asObservable']()),_(this,_0x164b5d(0x22d),new I[(_0x164b5d(0x2ed))]([])),_(this,'roomMembers$',this[_0x164b5d(0x22d)][_0x164b5d(0x336)](I[_0x164b5d(0x2a8)](vt))),_(this,'_updateLocalCursor',a[_0x164b5d(0x163)]((_0x41a85e,_0x4d6789)=>{const _0x6e622e=_0x164b5d,_0x595106={'eventID':g[_0x6e622e(0x30d)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x6e622e(0x26a)],'memberID':this[_0x6e622e(0x263)][_0x6e622e(0x13e)](),'selection':B[_0x6e622e(0x3cf)](_0x41a85e,_0x4d6789[_0x6e622e(0x342)])}};this[_0x6e622e(0x263)][_0x6e622e(0x19f)](_0x595106,this[_0x6e622e(0x26a)]);},gt)),(this['unitID']=_0x59267c,this[_0x164b5d(0x263)]=_0x14988f,this[_0x164b5d(0x1fd)]=_0x2f9cf0,this[_0x164b5d(0x324)]=_0x147449,this[_0x164b5d(0x22c)]=_0x2e09a6,this[_0x164b5d(0x1fe)]=_0x12d359,this[_0x164b5d(0x274)]=_0x51d980,this[_0x164b5d(0x3e2)]=_0x1f9428);}get[_0x5f4c13(0x1c5)](){const _0x3989eb=_0x5f4c13;return this[_0x3989eb(0x1df)][_0x3989eb(0x2cf)]();}get[_0x5f4c13(0x34c)](){const _0x5de91b=_0x5f4c13;return this[_0x5de91b(0x22d)][_0x5de91b(0x2cf)]();}[_0x5f4c13(0x18f)](){const _0x22f95d=_0x5f4c13;super['dispose'](),this[_0x22f95d(0x1df)][_0x22f95d(0x302)](new Map()),this['_cursorInfo$'][_0x22f95d(0x382)](),this['_roomMembers$'][_0x22f95d(0x302)]([]),this['_roomMembers$'][_0x22f95d(0x382)]();}[_0x5f4c13(0x353)](){const _0x22dacd=_0x5f4c13;this[_0x22dacd(0x335)]||(this['_init']=!0x0,this[_0x22dacd(0x263)][_0x22dacd(0x3e0)][_0x22dacd(0x336)](I[_0x22dacd(0x3c7)](this[_0x22dacd(0x2ce)]))[_0x22dacd(0x154)](_0x1b9717=>{const _0x43a150=_0x22dacd;_0x1b9717===u[_0x43a150(0x378)]['ONLINE']?this[_0x43a150(0x3a0)]():this[_0x43a150(0x3d1)]();}),this[_0x22dacd(0x263)][_0x22dacd(0x38b)][_0x22dacd(0x336)](I[_0x22dacd(0x3c7)](this[_0x22dacd(0x2ce)]))['subscribe'](_0x68ff4d=>{const _0x55755e=_0x22dacd,_0x17e826=_0x68ff4d['eventID'];_0x17e826===g[_0x55755e(0x30d)][_0x55755e(0x2a3)]&&this[_0x55755e(0x3ad)](_0x68ff4d),_0x17e826===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x55755e(0x319)](_0x68ff4d);}),this['_onRefRangeChange'](),this[_0x22dacd(0x3da)](this[_0x22dacd(0x274)][_0x22dacd(0x3d8)](_0x5dc585=>{const _0x302f73=_0x22dacd;if(this[_0x302f73(0x20f)]&&_0x5dc585['id']===v[_0x302f73(0x307)]['id']&&_0x5dc585[_0x302f73(0x346)][_0x302f73(0x34a)]===this['unitID']){const _0x20da38=_0x5dc585[_0x302f73(0x346)];this[_0x302f73(0x331)](_0x20da38[_0x302f73(0x283)],_0x20da38[_0x302f73(0x2d0)][0x0]);}})));}['_onCursorUpdate'](_0x2ec254){const _0x2243d2=_0x5f4c13;var _0x27f2e4,_0x36993d;const {memberID:_0x2b5225,selection:_0xd1a963}=_0x2ec254[_0x2243d2(0x31f)],{sheetName:_0x982153,range:_0x33fab1}=B[_0x2243d2(0x195)](_0xd1a963),_0x27c26b={'name':(_0x36993d=(_0x27f2e4=this[_0x2243d2(0x22c)][_0x2243d2(0x1bc)](this['unitID'],_0x2b5225))==null?void 0x0:_0x27f2e4[_0x2243d2(0x25c)])!=null?_0x36993d:'Unknown\x20user','range':this[_0x2243d2(0x1a8)](_0x982153,_0x33fab1),'sheetID':_0x982153,'color':this[_0x2243d2(0x324)][_0x2243d2(0x39f)](_0x2b5225),'selection':_0xd1a963},_0x518e44=this['cursorInfo'];_0x518e44[_0x2243d2(0x310)](_0x2b5225,_0x27c26b),this[_0x2243d2(0x1df)][_0x2243d2(0x302)](_0x518e44);}[_0x5f4c13(0x319)](_0x3bc8f2){const _0x2e1e87=_0x5f4c13,{memberID:_0x2c8288}=_0x3bc8f2[_0x2e1e87(0x31f)],_0x10b90b=this[_0x2e1e87(0x1c5)];_0x10b90b[_0x2e1e87(0x1aa)](_0x2c8288),this[_0x2e1e87(0x1df)][_0x2e1e87(0x302)](_0x10b90b);}[_0x5f4c13(0x1a8)](_0x5591e8,_0x3116c0){const _0x3368ae=_0x5f4c13;var _0x52681c,_0x5b20c9;const _0x5d36a2=(_0x5b20c9=(_0x52681c=this[_0x3368ae(0x1fe)]['getUniverSheetInstance'](this[_0x3368ae(0x26a)]))==null?void 0x0:_0x52681c[_0x3368ae(0x2b9)](_0x5591e8))==null?void 0x0:_0x5b20c9['getMergeData']();return(_0x5d36a2==null?void 0x0:_0x5d36a2[_0x3368ae(0x295)](_0x122c6c=>a[_0x3368ae(0x293)][_0x3368ae(0x229)](_0x122c6c,_0x3116c0)))||_0x3116c0;}[_0x5f4c13(0x224)](){const _0x790519=_0x5f4c13,_0x53779a=new a[(_0x790519(0x36d))](),_0x14afac=Et(),_0x24036d=()=>{const _0x3044a1=_0x790519;_0x53779a['dispose']();const _0x4013be=(_0x5202b5,_0x3dd9b3,_0x5ed125,_0x270732)=>{const _0x2f8417=_0x1124;let _0x1acae0=[];switch(_0x5202b5['id']){case v[_0x2f8417(0x1cf)]['DeleteRangeMoveLeftCommandId']:{_0x1acae0=v['handleDeleteRangeMoveLeft'](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x17b)]:{_0x1acae0=v[_0x2f8417(0x15f)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x264)]:{_0x1acae0=v[_0x2f8417(0x37f)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)]['InsertRangeMoveDownCommandId']:{_0x1acae0=v['handleInsertRangeMoveDown'](_0x5202b5,_0x270732);break;}case v['EffectRefRangId'][_0x2f8417(0x162)]:{_0x1acae0=v['handleInsertRangeMoveRight'](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x27b)]:{_0x1acae0=v['handleInsertRow'](_0x5202b5,_0x270732);break;}case v['EffectRefRangId'][_0x2f8417(0x254)]:{_0x1acae0=v[_0x2f8417(0x3b4)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x16e)]:{_0x1acae0=v[_0x2f8417(0x3db)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)]['RemoveRowCommandId']:{_0x1acae0=v[_0x2f8417(0x2c1)](_0x5202b5,_0x270732);break;}}const _0x186931=v[_0x2f8417(0x32e)](_0x1acae0,_0x270732),_0x1a63c6=this[_0x2f8417(0x1c5)][_0x2f8417(0x389)](_0x3dd9b3);if(_0x1a63c6&&_0x186931){const _0x5345f4={..._0x1a63c6,'range':_0x186931};this['cursorInfo']['set'](_0x3dd9b3,_0x5345f4),_0x14afac(()=>{const _0x454036=_0x2f8417,_0x1f85b0=this[_0x454036(0x3e2)][_0x454036(0x329)](_0x186931,_0xef98bc=>(_0x1f85b0[_0x454036(0x18f)](),_0x4013be(_0xef98bc,_0x3dd9b3,_0x5ed125,_0x186931)));_0x53779a['add'](_0x1f85b0);});}return{'redos':[],'undos':[]};};this[_0x3044a1(0x1c5)][_0x3044a1(0x3ac)]((_0x371c43,_0x308470)=>{const _0x56d00f=_0x3044a1,{range:_0x25d552,sheetID:_0x5cd087}=_0x371c43,_0x5ee91f=this['_refRangeService'][_0x56d00f(0x329)](_0x25d552,_0xc913b1=>(_0x5ee91f[_0x56d00f(0x18f)](),_0x4013be(_0xc913b1,_0x308470,_0x5cd087,_0x25d552)));_0x53779a['add'](_0x5ee91f);});};this[_0x790519(0x3da)](a[_0x790519(0x11e)](this[_0x790519(0x1df)][_0x790519(0x154)](()=>{_0x24036d();})));}[_0x5f4c13(0x3a0)](){const _0x3d2f03=_0x5f4c13;var _0x14723a,_0x40d6e9;if(this[_0x3d2f03(0x20f)]=!0x0,((_0x14723a=this[_0x3d2f03(0x1fe)][_0x3d2f03(0x337)]())==null?void 0x0:_0x14723a[_0x3d2f03(0x272)]())!==this[_0x3d2f03(0x26a)])return;const _0x3a5b47=(_0x40d6e9=this[_0x3d2f03(0x1fd)][_0x3d2f03(0x389)](v['SheetsSelectionsService'])[_0x3d2f03(0x14a)]())==null?void 0x0:_0x40d6e9[0x0],_0xf8137d=this['_univerInstanceService'][_0x3d2f03(0x3b3)](a[_0x3d2f03(0x1ea)]['UNIVER_SHEET'])[_0x3d2f03(0x373)]();_0x3a5b47&&_0xf8137d&&this[_0x3d2f03(0x331)](_0xf8137d['getSheetId'](),_0x3a5b47);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),w(0x3,a[_0x5f4c13(0x21b)](Re)),w(0x4,a[_0x5f4c13(0x21b)](u[_0x5f4c13(0x1d0)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x5f4c13(0x1f4)]),w(0x7,a[_0x5f4c13(0x21b)](v[_0x5f4c13(0x21f)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x226ce1,_0x2cca2c,_0x33a60d,_0x34e044)=>{const _0x4cc3a3=_0x5f4c13;for(var _0x1d359e=_0x34e044>0x1?void 0x0:_0x34e044?Ct(_0x2cca2c,_0x33a60d):_0x2cca2c,_0x2f4eab=_0x226ce1[_0x4cc3a3(0x231)]-0x1,_0x25337d;_0x2f4eab>=0x0;_0x2f4eab--)(_0x25337d=_0x226ce1[_0x2f4eab])&&(_0x1d359e=_0x25337d(_0x1d359e)||_0x1d359e);return _0x1d359e;},ce=(_0x2e52cc,_0x6ad805)=>(_0x17bb69,_0xe43149)=>_0x6ad805(_0x17bb69,_0xe43149,_0x2e52cc);let F=class extends a['RxDisposable']{constructor(_0x3af97e,_0x5e07ec,_0xc12fb0){const _0x3ccbb5=_0x5f4c13;super(),_(this,_0x3ccbb5(0x25b),new Map()),_(this,'_entityInit$',new I[(_0x3ccbb5(0x1e3))]()),(this['_univerInstanceService']=_0x3af97e,this[_0x3ccbb5(0x1fd)]=_0x5e07ec,this[_0x3ccbb5(0x363)]=_0xc12fb0,this['_init']());}[_0x5f4c13(0x18f)](){const _0x527638=_0x5f4c13;super[_0x527638(0x18f)](),this[_0x527638(0x350)][_0x527638(0x382)](),this[_0x527638(0x25b)][_0x527638(0x3ac)](_0x254745=>_0x254745['dispose']());}[_0x5f4c13(0x174)](_0x326b5b){const _0x4df667=_0x5f4c13;return this[_0x4df667(0x25b)][_0x4df667(0x17f)](_0x326b5b)?this['_entities'][_0x4df667(0x389)](_0x326b5b)[_0x4df667(0x23c)]:this[_0x4df667(0x350)]['pipe'](I['filter'](_0x88b812=>_0x88b812[_0x4df667(0x26a)]===_0x326b5b),I['switchMap'](_0x5ea81f=>_0x5ea81f[_0x4df667(0x23c)]));}[_0x5f4c13(0x335)](){const _0x45cf05=_0x5f4c13;this[_0x45cf05(0x1fe)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x45cf05(0x235)])['pipe'](I[_0x45cf05(0x3c7)](this[_0x45cf05(0x2ce)]))[_0x45cf05(0x154)](async _0x219775=>{const _0x572117=_0x45cf05,_0x10f740=_0x219775[_0x572117(0x272)](),_0x26e782=await this[_0x572117(0x391)](_0x10f740);this['_entityInit$'][_0x572117(0x302)](_0x26e782),this[_0x572117(0x25b)][_0x572117(0x310)](_0x10f740,_0x26e782);}),this[_0x45cf05(0x1fe)][_0x45cf05(0x296)](a[_0x45cf05(0x1ea)][_0x45cf05(0x340)])[_0x45cf05(0x336)](I[_0x45cf05(0x3c7)](this[_0x45cf05(0x2ce)]))[_0x45cf05(0x336)](I[_0x45cf05(0x33b)](_0x1df7a9=>!_0x1df7a9[_0x45cf05(0x272)]()[_0x45cf05(0x317)]('__')))['subscribe'](async _0x4a2ad2=>{const _0x43c969=_0x45cf05,_0x585441=_0x4a2ad2['getUnitId'](),_0x3ce635=await this[_0x43c969(0x200)](_0x585441);this[_0x43c969(0x350)][_0x43c969(0x302)](_0x3ce635),this['_entities'][_0x43c969(0x310)](_0x585441,_0x3ce635);}),I[_0x45cf05(0x1e2)](this['_univerInstanceService'][_0x45cf05(0x2d3)](a[_0x45cf05(0x1ea)][_0x45cf05(0x340)]),this['_univerInstanceService'][_0x45cf05(0x2d3)](a[_0x45cf05(0x1ea)]['UNIVER_SHEET']))[_0x45cf05(0x336)](I[_0x45cf05(0x3c7)](this[_0x45cf05(0x2ce)]))[_0x45cf05(0x154)](_0x328047=>{const _0x1cc528=_0x45cf05,_0x31c489=_0x328047[_0x1cc528(0x272)](),_0x48c6e9=this[_0x1cc528(0x25b)][_0x1cc528(0x389)](_0x31c489);_0x48c6e9&&(_0x48c6e9['dispose'](),this[_0x1cc528(0x25b)]['delete'](_0x31c489));});}async['_startSheetCollabCursor'](_0x12f475){const _0x336212=_0x5f4c13,_0x2ac6a3=await this[_0x336212(0x363)]['requireSession'](_0x12f475),_0x297eaa=this[_0x336212(0x1fd)][_0x336212(0x21c)](ge,_0x12f475,_0x2ac6a3);return _0x297eaa['init'](),_0x297eaa;}async[_0x5f4c13(0x200)](_0x500ba0){const _0x14c40f=_0x5f4c13,_0xc62d10=await this[_0x14c40f(0x363)][_0x14c40f(0x3a8)](_0x500ba0),_0x3a47ef=this[_0x14c40f(0x1fd)][_0x14c40f(0x21c)](ve,_0x500ba0,_0xc62d10);return _0x3a47ef['init'](),_0x3a47ef;}};F=Tt([ce(0x0,a[_0x5f4c13(0x12a)]),ce(0x1,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),ce(0x2,a[_0x5f4c13(0x21b)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0xb56f2f,_0x2b5927){const _0xd606d2=_0x5f4c13;let {radius:_0x123a32,width:_0x20a15a,height:_0x340692}=_0x2b5927;_0x123a32=_0x123a32!=null?_0x123a32:0x0,_0x20a15a=_0x20a15a!=null?_0x20a15a:0x1e,_0x340692=_0x340692!=null?_0x340692:0x1e;let _0x359428=0x0,_0x12e774=0x0,_0x42ff54=0x0;_0x359428=_0x12e774=_0x42ff54=Math[_0xd606d2(0x1d5)](_0x123a32,_0x20a15a/0x2,_0x340692/0x2),_0xb56f2f[_0xd606d2(0x175)](),_0xb56f2f['moveTo'](_0x359428,0x0),_0xb56f2f[_0xd606d2(0x309)](_0x20a15a-_0x12e774,0x0),_0xb56f2f[_0xd606d2(0x196)](_0x20a15a-_0x12e774,_0x12e774,_0x12e774,Math['PI']*0x3/0x2,0x0,!0x1),_0xb56f2f[_0xd606d2(0x309)](_0x20a15a,_0x340692-_0x42ff54),_0xb56f2f[_0xd606d2(0x196)](_0x20a15a-_0x42ff54,_0x340692-_0x42ff54,_0x42ff54,0x0,Math['PI']/0x2,!0x1),_0xb56f2f[_0xd606d2(0x309)](0x0,_0x340692),_0xb56f2f[_0xd606d2(0x309)](0x0,_0x359428),_0xb56f2f[_0xd606d2(0x196)](_0x359428,_0x359428,_0x359428,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xb56f2f[_0xd606d2(0x199)](),_0x2b5927[_0xd606d2(0x233)]&&(_0xb56f2f[_0xd606d2(0x247)](),_0xb56f2f[_0xd606d2(0x291)]=_0x2b5927['fill'],_0x2b5927[_0xd606d2(0x2e6)]==='evenodd'?_0xb56f2f[_0xd606d2(0x233)](_0xd606d2(0x20e)):_0xb56f2f[_0xd606d2(0x233)](),_0xb56f2f[_0xd606d2(0x146)]());}class re extends C['Shape']{constructor(_0x14d916,_0x4c1caf){const _0x5ce37b=_0x5f4c13;super(_0x14d916,_0x4c1caf),_(this,_0x5ce37b(0x3d5)),_(this,_0x5ce37b(0x339)),(this[_0x5ce37b(0x3d5)]=_0x4c1caf==null?void 0x0:_0x4c1caf['color'],this[_0x5ce37b(0x339)]=_0x4c1caf==null?void 0x0:_0x4c1caf[_0x5ce37b(0x339)]);}static[_0x5f4c13(0x3e6)](_0x197a14,_0x3ccbfb){const _0x1059df=_0x5f4c13,{text:_0x57ae38,color:_0x1b1b2e}=_0x3ccbfb;_0x197a14[_0x1059df(0x247)](),_0x197a14[_0x1059df(0x29e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x17534b=_0x197a14['measureText'](_0x57ae38)[_0x1059df(0x1a9)],_0x390d11=Math[_0x1059df(0x1d5)](_0x17534b+0x2*le,Ue);Ot(_0x197a14,{'height':X,'radius':0x4,'width':_0x390d11,'fill':_0x1b1b2e}),_0x197a14['fillStyle']='#FFF';const _0xb0cb93=le,_0x1d5778=X-pt,_0x249c68=Ue-0x2*le;if(_0x17534b>_0x249c68){let _0x5c5e82='',_0x77be12=0x0;for(const _0x119932 of _0x57ae38){const _0x252da2=_0x197a14[_0x1059df(0x16c)](_0x119932)['width'];if(_0x77be12+_0x252da2<=_0x249c68-_0x197a14[_0x1059df(0x16c)]('...')[_0x1059df(0x1a9)])_0x5c5e82+=_0x119932,_0x77be12+=_0x252da2;else{_0x5c5e82+=_0x1059df(0x2da);break;}}_0x197a14['fillText'](_0x5c5e82,_0xb0cb93,_0x1d5778);}else _0x197a14[_0x1059df(0x390)](_0x57ae38,_0xb0cb93,_0x1d5778);_0x197a14[_0x1059df(0x146)]();}[_0x5f4c13(0x305)](_0x85e1d2){const _0x55a4b4=_0x5f4c13;re[_0x55a4b4(0x3e6)](_0x85e1d2,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt=_0x5f4c13(0x341),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x5f4c13(0x3bf);class Le{constructor(_0x1251cf,_0xac1d40,_0x4ac58d,_0x2000bf){const _0x536408=_0x5f4c13;_(this,_0x536408(0x11c),[]),_(this,_0x536408(0x141),null),_(this,_0x536408(0x3b9),null),_(this,_0x536408(0x3e3),null),_(this,_0x536408(0x207),null),_(this,_0x536408(0x2b8),null),(this[_0x536408(0x3cd)]=_0x1251cf,this[_0x536408(0x22e)]=_0xac1d40,this[_0x536408(0x33f)]=_0x4ac58d,this['_document']=_0x2000bf,this[_0x536408(0x15c)]());}set[_0x5f4c13(0x371)](_0x3cca63){const _0x33f8ce=_0x5f4c13;_0x3cca63?(this[_0x33f8ce(0x3e3)]&&this[_0x33f8ce(0x3e3)][_0x33f8ce(0x150)](),this[_0x33f8ce(0x3b9)]&&this[_0x33f8ce(0x3b9)][_0x33f8ce(0x3b8)]()):(this[_0x33f8ce(0x3e3)]&&this[_0x33f8ce(0x3e3)][_0x33f8ce(0x3b8)](),this[_0x33f8ce(0x3b9)]&&this[_0x33f8ce(0x3b9)]['hide']());}[_0x5f4c13(0x18f)](){const _0x18f32c=_0x5f4c13;for(const _0x482cf5 of this['_shapes'])_0x482cf5[_0x18f32c(0x18f)]();this[_0x18f32c(0x3b9)]&&this[_0x18f32c(0x3b9)]['dispose'](),this[_0x18f32c(0x3e3)]&&this[_0x18f32c(0x3e3)][_0x18f32c(0x18f)](),this['_anchor']&&this[_0x18f32c(0x141)][_0x18f32c(0x18f)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x13fbd5=_0x5f4c13;var _0x4901e6;const {_docSkeleton:_0x360d69,_document:_0x58fdd6}=this,{color:_0x4e7fa1,name:_0x1c5b3c,ranges:_0x420954}=this[_0x13fbd5(0x3cd)],_0x3d6b4a=_0x58fdd6[_0x13fbd5(0x1e1)](),{docsLeft:_0x289993,docsTop:_0x28fb40}=_0x3d6b4a,_0x4896e8=new T[(_0x13fbd5(0x3e5))](_0x3d6b4a,_0x360d69);for(const {startOffset:_0x351ae5,endOffset:_0x1c1d75,rangeType:_0x58e128,segmentId:_0x3d3dab,segmentPage:_0x5d10ac,collapsed:_0x54d474,isActive:_0x59d790}of _0x420954){const _0x130aa3=_0x360d69[_0x13fbd5(0x29c)](_0x351ae5,!0x0,_0x3d3dab,_0x5d10ac);let _0x3e17e3=_0x360d69['findNodePositionByCharIndex'](_0x1c1d75,!0x0,_0x3d3dab,_0x5d10ac);if(_0x3e17e3==null&&(_0x3e17e3=_0x360d69[_0x13fbd5(0x29c)](_0x1c1d75-0x1,!0x1,_0x3d3dab,_0x5d10ac)),_0x59d790){const {contentBoxPointGroup:_0x3badd2}=_0x4896e8['getRangePointData'](_0x3e17e3,_0x3e17e3);if(_0x3badd2[_0x13fbd5(0x231)]===0x0)continue;this[_0x13fbd5(0x3e4)](_0x4e7fa1,_0x3badd2,_0x289993,_0x28fb40,_0x1c5b3c),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x130aa3&&_0x3e17e3){if(_0x58e128===a[_0x13fbd5(0x16d)][_0x13fbd5(0x1cc)]){const _0x12bc44=new T['NodePositionConvertToRectRange'](_0x3d6b4a,_0x360d69),{pointGroup:_0x4b7ae8}=(_0x4901e6=_0x12bc44[_0x13fbd5(0x185)](_0x130aa3,_0x3e17e3))!=null?_0x4901e6:{};if(_0x4b7ae8==null||_0x4b7ae8[_0x13fbd5(0x231)]===0x0)continue;this[_0x13fbd5(0x288)](_0x4e7fa1,_0x4b7ae8,_0x289993,_0x28fb40);}else{if(!_0x54d474){const {borderBoxPointGroup:_0x45a646}=_0x4896e8[_0x13fbd5(0x185)](_0x130aa3,_0x3e17e3);if(_0x45a646[_0x13fbd5(0x231)]===0x0)continue;this['_drawTextRange'](_0x4e7fa1,_0x45a646,_0x289993,_0x28fb40);}}}}}[_0x5f4c13(0x3e4)](_0x274ce3,_0x2af668,_0x17c5c3,_0x586edb,_0x13e7fd){const _0x247707=_0x5f4c13,_0x187b71=this[_0x247707(0x2ea)](_0x2af668),{left:_0x57b3bb,top:_0x2fb376,height:_0x1601a4}=_0x187b71,_0x4a0140=this['_getScale'](),_0x50d6ea=Nt/_0x4a0140,_0x45fbd7=new C[(_0x247707(0x124))](_e+a[_0x247707(0x1c6)](H),{'left':_0x57b3bb+_0x17c5c3-_0x50d6ea,'top':_0x2fb376+_0x586edb,'height':_0x1601a4,'width':Dt,'fill':_0x274ce3||C['getColor'](a['COLORS'][_0x247707(0x133)],0x0),'strokeWidth':_0x50d6ea,'stroke':Ut,'evented':!0x0});this[_0x247707(0x141)]=_0x45fbd7,this['_scene'][_0x247707(0x23d)](_0x45fbd7,T[_0x247707(0x1ed)]);const _0x372435=new C[(_0x247707(0x124))](_e+a[_0x247707(0x1c6)](H),{'left':_0x57b3bb+_0x17c5c3-_0x50d6ea,'top':_0x2fb376+_0x586edb-he/0x2,'height':he,'width':he,'fill':_0x274ce3||C[_0x247707(0x29a)](a['COLORS'][_0x247707(0x133)],0x0),'strokeWidth':0x0,'stroke':_0x274ce3||C[_0x247707(0x29a)](a[_0x247707(0x1b4)][_0x247707(0x133)],0x0),'evented':!0x1});this[_0x247707(0x3e3)]=_0x372435,this[_0x247707(0x22e)]['addObject'](_0x372435,T[_0x247707(0x1ed)]);const _0x26d3e4=new re(_e+a[_0x247707(0x1c6)](H),{'left':_0x57b3bb+_0x17c5c3-_0x50d6ea,'top':_0x2fb376+_0x586edb-X,'text':_0x13e7fd,'color':_0x274ce3});this[_0x247707(0x3b9)]=_0x26d3e4,this[_0x247707(0x22e)][_0x247707(0x23d)](_0x26d3e4,T[_0x247707(0x1ed)]),this[_0x247707(0x371)]=!0x1;}[_0x5f4c13(0x3dc)](){const _0xa88612=_0x5f4c13,_0x332fdc=this[_0xa88612(0x141)]['onPointerEnter$'][_0xa88612(0x377)](()=>{this['_hover']=!0x0;}),_0x275e1c=this['_anchor']['onPointerLeave$'][_0xa88612(0x377)](()=>{const _0x2091a6=_0xa88612;this[_0x2091a6(0x207)]&&clearTimeout(this['_hideTimer']),this[_0x2091a6(0x207)]=setTimeout(()=>{const _0x4d494b=_0x2091a6;this[_0x4d494b(0x371)]=!0x1;},0x7d0);});return()=>{const _0x3b207a=_0xa88612;_0x332fdc[_0x3b207a(0x35e)](),_0x275e1c[_0x3b207a(0x35e)]();};}['_drawTextRange'](_0xecaee5,_0x27d30d,_0xc10c11,_0x3dea8e){const _0x430bf1=_0x5f4c13,_0x23cba9=new a[(_0x430bf1(0x1b5))](_0xecaee5)[_0x430bf1(0x244)](0.2)[_0x430bf1(0x351)](),_0x5ac6b5=new C[(_0x430bf1(0x2e2))](Rt+a['generateRandomId'](H),{'pointsGroup':_0x27d30d,'fill':_0x23cba9||C['getColor'](a[_0x430bf1(0x1b4)][_0x430bf1(0x133)],0.2),'left':_0xc10c11,'top':_0x3dea8e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x430bf1(0x11c)][_0x430bf1(0x261)](_0x5ac6b5),this[_0x430bf1(0x22e)]['addObject'](_0x5ac6b5,T['TEXT_RANGE_LAYER_INDEX']);}[_0x5f4c13(0x288)](_0x348eae,_0x574c78,_0x247b96,_0x40e30a){const _0x981c16=_0x5f4c13,_0x2d853a=new a['ColorKit'](_0x348eae)[_0x981c16(0x244)](0.2)[_0x981c16(0x351)](),_0x337736=new C['RegularPolygon'](bt+a[_0x981c16(0x1c6)](H),{'pointsGroup':_0x574c78,'fill':_0x2d853a||C['getColor'](a[_0x981c16(0x1b4)][_0x981c16(0x133)],0.2),'left':_0x247b96,'top':_0x40e30a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x981c16(0x11c)][_0x981c16(0x261)](_0x337736),this['_scene']['addObject'](_0x337736,T[_0x981c16(0x1ed)]);}[_0x5f4c13(0x2ea)](_0x4d930a){const _0x1f325c=_0x4d930a[0x0],_0x30dbde=_0x1f325c[0x0],_0x39f6d9=_0x1f325c[0x2],{x:_0xf9939e,y:_0x15818c}=_0x30dbde,{x:_0x59b346,y:_0x56560a}=_0x39f6d9;return{'left':_0xf9939e,'top':_0x15818c,'width':_0x59b346-_0xf9939e,'height':_0x56560a-_0x15818c};}['_getScale'](){const _0x4716fa=_0x5f4c13,{scaleX:_0x165e77,scaleY:_0x23aa05}=this[_0x4716fa(0x22e)]['getAncestorScale']();return Math['max'](_0x165e77,_0x23aa05);}}var Lt=Object[_0x5f4c13(0x1ee)],Mt=(_0x2767f4,_0x4d1163,_0x40b907,_0x3677b6)=>{for(var _0x6c4d30=_0x3677b6>0x1?void 0x0:_0x3677b6?Lt(_0x4d1163,_0x40b907):_0x4d1163,_0x35cba8=_0x2767f4['length']-0x1,_0x33a828;_0x35cba8>=0x0;_0x35cba8--)(_0x33a828=_0x2767f4[_0x35cba8])&&(_0x6c4d30=_0x33a828(_0x6c4d30)||_0x6c4d30);return _0x6c4d30;},q=(_0x19108b,_0x51222a)=>(_0x44829c,_0x83bd7e)=>_0x51222a(_0x44829c,_0x83bd7e,_0x19108b);let Ee=class extends a[_0x5f4c13(0x1f7)]{constructor(_0x19ea0c,_0x1d5771,_0x36b5e1,_0x41597c,_0x37bf98){const _0x4fd501=_0x5f4c13;super(),_(this,_0x4fd501(0x2f8),[]),_(this,_0x4fd501(0x3d7),[]),(this['_context']=_0x19ea0c,this[_0x4fd501(0x28c)]=_0x1d5771,this[_0x4fd501(0x205)]=_0x36b5e1,this[_0x4fd501(0x274)]=_0x41597c,this[_0x4fd501(0x3a9)]=_0x37bf98,this[_0x4fd501(0x335)]());}[_0x5f4c13(0x335)](){const _0x56d194=_0x5f4c13,_0x197658=this[_0x56d194(0x3a1)]['unitId'],_0x2d6bc3=this[_0x56d194(0x28c)];this[_0x56d194(0x3da)](I['combineLatest']([this[_0x56d194(0x205)][_0x56d194(0x174)](_0x197658),this[_0x56d194(0x3a9)][_0x56d194(0x1eb)]])[_0x56d194(0x336)]($['map'](([_0xe4aa35,_0x45470b])=>({'skeleton':_0x2d6bc3[_0x56d194(0x179)](),'cursors':[..._0xe4aa35[_0x56d194(0x18c)]()][_0x56d194(0x308)](_0x524904=>({..._0x524904,'color':this[_0x56d194(0x3a9)][_0x56d194(0x2c6)](_0x524904['color'])}))})))['subscribe'](_0x12ae84=>{const _0x5b9f6a=_0x56d194;if(this[_0x5b9f6a(0x2f6)](),_0x12ae84){const {skeleton:_0xf3adcc,cursors:_0x18162e}=_0x12ae84;this[_0x5b9f6a(0x2fe)](_0xf3adcc,_0x18162e);}})),this['_initResize'](),this[_0x56d194(0x1d6)]();}[_0x5f4c13(0x2fe)](_0x257383,_0x4ca6b2){const _0x30355c=_0x5f4c13,{scene:_0x330f4a,mainComponent:_0x48aa23}=this[_0x30355c(0x3a1)],_0x204cc5=_0x4ca6b2[_0x30355c(0x13c)](_0x55f806=>new Le(_0x55f806,_0x330f4a,_0x257383,_0x48aa23));this[_0x30355c(0x2f8)]=_0x204cc5,this[_0x30355c(0x3d7)]=_0x4ca6b2;}[_0x5f4c13(0x2c4)](){const _0x1c99e9=_0x5f4c13;this[_0x1c99e9(0x2f6)]();const {scene:_0xe0fe71,mainComponent:_0x355a0a}=this[_0x1c99e9(0x3a1)],_0xb9d842=this[_0x1c99e9(0x28c)][_0x1c99e9(0x179)](),_0x15e8a5=this[_0x1c99e9(0x3d7)][_0x1c99e9(0x13c)](_0x7dfd9=>new Le(_0x7dfd9,_0xe0fe71,_0xb9d842,_0x355a0a));this[_0x1c99e9(0x2f8)]=_0x15e8a5;}[_0x5f4c13(0x2f6)](){const _0x56a979=_0x5f4c13;this[_0x56a979(0x2f8)][_0x56a979(0x3ac)](_0x23774f=>_0x23774f[_0x56a979(0x18f)]()),this[_0x56a979(0x2f8)]=[];}[_0x5f4c13(0x1d6)](){const _0xbbedfa=_0x5f4c13,_0x7b985=[T[_0xbbedfa(0x2ba)]['id']];this[_0xbbedfa(0x3da)](this[_0xbbedfa(0x274)][_0xbbedfa(0x3d8)](_0x385d8c=>{const _0x1f52e0=_0xbbedfa;_0x7b985[_0x1f52e0(0x31e)](_0x385d8c['id'])&&_0x385d8c[_0x1f52e0(0x346)][_0x1f52e0(0x34a)]===this[_0x1f52e0(0x3a1)][_0x1f52e0(0x34a)]&&this[_0x1f52e0(0x2c4)]();}));}[_0x5f4c13(0x26f)](){const _0x1028c5=_0x5f4c13;this[_0x1028c5(0x3da)](a[_0x1028c5(0x2a5)](this[_0x1028c5(0x3a1)][_0x1028c5(0x3c0)]['onTransformChange$'])['pipe']($[_0x1028c5(0x33b)](_0x206df3=>_0x206df3[_0x1028c5(0x1c4)]===C[_0x1028c5(0x3d9)][_0x1028c5(0x33e)]),$[_0x1028c5(0x21e)](0x10))[_0x1028c5(0x154)](()=>{const _0x3a19af=_0x1028c5;this[_0x3a19af(0x2c4)]();}));}};Ee=Mt([q(0x1,a[_0x5f4c13(0x21b)](V['DocSkeletonManagerService'])),q(0x2,a[_0x5f4c13(0x21b)](F)),q(0x3,a[_0x5f4c13(0x1f4)]),q(0x4,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x328)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x5f4c13(0x19d)]{constructor(_0x1a7e33,_0x19e35a){const _0x26acdb=_0x5f4c13;super(_0x1a7e33,_0x19e35a),_(this,_0x26acdb(0x1ca)),_(this,_0x26acdb(0x151),!0x1),_(this,_0x26acdb(0x27e)),_(this,_0x26acdb(0x181),''),_(this,_0x26acdb(0x262),_0x26acdb(0x320)),_(this,_0x26acdb(0x3bd)),(_0x19e35a&&this[_0x26acdb(0x250)](_0x19e35a),this['onPointerEnter$'][_0x26acdb(0x377)](()=>this[_0x26acdb(0x250)]({'hovered':!0x0})),this[_0x26acdb(0x240)][_0x26acdb(0x377)](()=>this[_0x26acdb(0x250)]({'hovered':!0x1})));}[_0x5f4c13(0x250)](_0x2cd84b){const _0x344b34=_0x5f4c13;var _0x1149dc,_0x258db1,_0x34a000,_0x3e5af0,_0x2b8242,_0xb8db62;this['_color']=(_0x1149dc=_0x2cd84b[_0x344b34(0x3d5)])!=null?_0x1149dc:this[_0x344b34(0x1ca)],this[_0x344b34(0x151)]=(_0x258db1=_0x2cd84b['hovered'])!=null?_0x258db1:this['_hovered'],this['_range']=(_0x34a000=_0x2cd84b['range'])!=null?_0x34a000:this['_range'],this['_name']=(_0x3e5af0=_0x2cd84b[_0x344b34(0x25c)])!=null?_0x3e5af0:this[_0x344b34(0x181)],this[_0x344b34(0x262)]=(_0x2b8242=_0x2cd84b[_0x344b34(0x14e)])!=null?_0x2b8242:this[_0x344b34(0x262)],this[_0x344b34(0x3bd)]=(_0xb8db62=_0x2cd84b[_0x344b34(0x294)])!=null?_0xb8db62:this[_0x344b34(0x3bd)],this[_0x344b34(0x243)]({'width':_0x2cd84b[_0x344b34(0x1a9)],'height':_0x2cd84b[_0x344b34(0x14f)]});}[_0x5f4c13(0x204)](_0x53a7d0){const _0x7f71b7=_0x5f4c13,{row:_0x237ed9,column:_0x2adc7f}=_0x53a7d0;if(_0x237ed9>=this['_range'][_0x7f71b7(0x1a7)]&&_0x237ed9<=this['_range'][_0x7f71b7(0x1d1)]&&_0x2adc7f>=this[_0x7f71b7(0x27e)]['startColumn']&&_0x2adc7f<=this[_0x7f71b7(0x27e)][_0x7f71b7(0x1ba)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x7f71b7(0x250)]({'hovered':!0x1});}[_0x5f4c13(0x36f)](_0x55193b){return!0x1;}[_0x5f4c13(0x305)](_0x53823f){const _0x30928f=_0x5f4c13;C[_0x30928f(0x124)]['drawWith'](_0x53823f,{'width':this[_0x30928f(0x1a9)],'height':this[_0x30928f(0x14f)],'strokeWidth':Pt,'stroke':this[_0x30928f(0x1ca)],'evented':!0x1,'fill':this[_0x30928f(0x3bd)]}),this['_hovered']&&(_0x53823f[_0x30928f(0x247)](),_0x53823f[_0x30928f(0x193)](0x1,0x0,0x0,0x1,this[_0x30928f(0x1a9)],this[_0x30928f(0x262)]===_0x30928f(0x2ff)?0x0:-X),re[_0x30928f(0x3e6)](_0x53823f,{'text':this['_name'],'color':this['_color']}),_0x53823f[_0x30928f(0x146)]());}}var wt=Object[_0x5f4c13(0x1ee)],yt=(_0x1ac4e1,_0x47915c,_0x7b3b90,_0x5d9674)=>{const _0x17cb2b=_0x5f4c13;for(var _0x2bf50f=_0x5d9674>0x1?void 0x0:_0x5d9674?wt(_0x47915c,_0x7b3b90):_0x47915c,_0x241552=_0x1ac4e1[_0x17cb2b(0x231)]-0x1,_0x177027;_0x241552>=0x0;_0x241552--)(_0x177027=_0x1ac4e1[_0x241552])&&(_0x2bf50f=_0x177027(_0x2bf50f)||_0x2bf50f);return _0x2bf50f;},ue=(_0x581fd6,_0x38efe3)=>(_0x4eae19,_0x362ffd)=>_0x38efe3(_0x4eae19,_0x362ffd,_0x581fd6);const $t=0x1389;let Ce=class extends a[_0x5f4c13(0x1f7)]{constructor(_0x2582d0,_0x256bfe,_0x55dfe0,_0x50369c){const _0x24fbcf=_0x5f4c13;super(),_(this,_0x24fbcf(0x3d7),new Set()),_(this,_0x24fbcf(0x186),null),(this[_0x24fbcf(0x3a1)]=_0x2582d0,this[_0x24fbcf(0x129)]=_0x256bfe,this[_0x24fbcf(0x205)]=_0x55dfe0,this[_0x24fbcf(0x3a9)]=_0x50369c,this['_init']());}[_0x5f4c13(0x335)](){const _0x2e199a=_0x5f4c13;this['_sheetSkeletonManagerService'][_0x2e199a(0x156)][_0x2e199a(0x336)]($[_0x2e199a(0x3c7)](this[_0x2e199a(0x2ce)]),$['switchMap'](_0x593699=>{const _0x2a2f92=_0x2e199a;if(_0x593699){const _0x2c4a84=_0x593699[_0x2a2f92(0x12f)];return I[_0x2a2f92(0x18d)](this[_0x2a2f92(0x205)][_0x2a2f92(0x174)](this[_0x2a2f92(0x3a1)][_0x2a2f92(0x34a)]),this[_0x2a2f92(0x3a9)]['currentTheme$'])[_0x2a2f92(0x336)]($[_0x2a2f92(0x13c)](([_0x1542c5,_0x5cca96])=>{const _0x56e6f2=new Map();return _0x1542c5['forEach']((_0x25d556,_0x2de047)=>{const _0x6b3ea7=_0x1124;if(_0x25d556[_0x6b3ea7(0x2bd)]===_0x2c4a84){const _0x18f5f5={..._0x25d556};_0x18f5f5[_0x6b3ea7(0x3d5)]=this[_0x6b3ea7(0x3a9)][_0x6b3ea7(0x2c6)](_0x25d556['color']),_0x56e6f2[_0x6b3ea7(0x310)](_0x2de047,_0x18f5f5);}}),{'skeleton':_0x593699,'cursors':_0x56e6f2};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x2e199a(0x154)](({skeleton:_0x4cc95f,cursors:_0x16dcfa})=>{const _0x364f95=_0x2e199a;this['_removeCollabCursors'](),_0x4cc95f&&this[_0x364f95(0x2fe)](_0x4cc95f,_0x16dcfa);}),this[_0x2e199a(0x129)]['currentSkeleton$'][_0x2e199a(0x154)](_0x3208b1=>{const _0x4d2c4e=_0x2e199a;if(_0x3208b1==null)return;const {skeleton:_0x18b46a}=_0x3208b1,{scene:_0x1cc7e1}=this[_0x4d2c4e(0x3a1)];_0x1cc7e1[_0x4d2c4e(0x32d)][_0x4d2c4e(0x377)](a[_0x4d2c4e(0x163)](_0x3165f5=>{const _0x1c452b=_0x4d2c4e;var _0x5848b3,_0xe56812;const {offsetX:_0x13379a,offsetY:_0x27c754}=_0x3165f5,{x:_0x58f981,y:_0x1969d9}=_0x1cc7e1[_0x1c452b(0x356)](C[_0x1c452b(0x270)][_0x1c452b(0x2d4)]([_0x13379a,_0x27c754])),{scaleX:_0x369abd,scaleY:_0x320052}=_0x1cc7e1[_0x1c452b(0x16a)](),_0x1392bf=_0x1cc7e1['getViewport'](C[_0x1c452b(0x120)]['VIEW_MAIN']),_0x275e26=_0x1cc7e1[_0x1c452b(0x32c)](C[_0x1c452b(0x270)][_0x1c452b(0x2d4)]([_0x58f981,_0x1969d9]),_0x1392bf),_0x5cc3ea=_0x18b46a[_0x1c452b(0x236)](_0x13379a,_0x27c754,_0x369abd,_0x320052,_0x275e26);((_0x5848b3=this['_lastPointer'])==null?void 0x0:_0x5848b3[_0x1c452b(0x248)])===_0x5cc3ea[_0x1c452b(0x248)]&&((_0xe56812=this[_0x1c452b(0x186)])==null?void 0x0:_0xe56812['row'])===_0x5cc3ea[_0x1c452b(0x1b7)]||this[_0x1c452b(0x3d7)][_0x1c452b(0x3ac)](_0x5a6ec6=>{const _0x4c842d=_0x1c452b;_0x5a6ec6[_0x4c842d(0x204)](_0x5cc3ea);});},0x64));});}[_0x5f4c13(0x2fe)](_0x5b2c10,_0x8ddf23){const _0x53e760=_0x5f4c13;var _0x1fae01;const _0x2dfe83=(_0x1fae01=this[_0x53e760(0x129)][_0x53e760(0x2f9)]())==null?void 0x0:_0x1fae01[_0x53e760(0x2a1)];if(!_0x2dfe83)return;const _0x2c09b8=this['_getSheetObject']();if(!_0x2c09b8)return;this[_0x53e760(0x3d7)][_0x53e760(0x3ac)](_0x4c97c0=>{const _0x4f25d6=_0x53e760;_0x4c97c0[_0x4f25d6(0x23e)]();});const {scene:_0x36bb47}=_0x2c09b8,_0x391e14=xt(Array[_0x53e760(0x25d)](_0x8ddf23['values']()))['map'](_0x4faee8=>{const _0x45f711=_0x53e760,{color:_0x4e8ed0,range:_0x3f8277,name:_0x5f2ab7,selection:_0x23389e,sheetID:_0x3bdd1f}=_0x4faee8,{startColumn:_0x3449ff,startRow:_0x14d5f8,endColumn:_0x6357eb,endRow:_0x4b7010}=_0x3f8277,_0x15df49=J[_0x45f711(0x15b)](_0x14d5f8,_0x3449ff,_0x36bb47,_0x2dfe83),_0x4350c5=J[_0x45f711(0x15b)](_0x4b7010,_0x6357eb,_0x36bb47,_0x2dfe83),{columnHeaderHeightAndMarginTop:_0x1cbed8}=_0x2dfe83,{startX:_0x28714b,startY:_0x436f38}=_0x15df49,{endX:_0x565fa1,endY:_0x117823}=_0x4350c5,_0xdf5a0e=_0x565fa1-_0x28714b,_0x313b16=_0x117823-_0x436f38,_0x5d2d3c={'labelPosition':_0x436f38-_0x1cbed8>=X?_0x45f711(0x320):_0x45f711(0x2ff),'sheetID':_0x3bdd1f,'range':_0x3f8277,'color':_0x4e8ed0,'name':_0x5f2ab7,'selection':_0x23389e,'left':_0x28714b,'top':_0x436f38,'width':_0xdf5a0e,'height':_0x313b16,'evented':!0x1,'zIndex':$t};return new je(_0x5f2ab7,_0x5d2d3c);});_0x36bb47[_0x53e760(0x22b)](_0x391e14,At),this['_cursors']=new Set(_0x391e14);}[_0x5f4c13(0x2f6)](){const _0xcbccc5=_0x5f4c13;var _0x4e4523;(_0x4e4523=this[_0xcbccc5(0x3d7)])==null||_0x4e4523['forEach'](_0x5c1837=>_0x5c1837[_0xcbccc5(0x18f)]());}[_0x5f4c13(0x368)](){const _0x1f7ef9=_0x5f4c13;return J[_0x1f7ef9(0x3bc)](this[_0x1f7ef9(0x3a1)]['unit'],this[_0x1f7ef9(0x3a1)]);}};Ce=yt([ue(0x1,a[_0x5f4c13(0x21b)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x5f4c13(0x21b)](F)),ue(0x3,a[_0x5f4c13(0x21b)](a['ThemeService']))],Ce);function xt(_0x5b1d65){const _0x5d91b5=_0x5f4c13,_0x32cd56=new Map();return _0x5b1d65['forEach'](_0x4612c1=>{const _0xa66938=_0x1124;if(_0x32cd56[_0xa66938(0x17f)](_0x4612c1[_0xa66938(0x29d)])){const _0xfa9583=_0x32cd56[_0xa66938(0x389)](_0x4612c1[_0xa66938(0x29d)]);_0xfa9583['name']+=',\x20'+_0x4612c1[_0xa66938(0x25c)];}else _0x32cd56[_0xa66938(0x310)](_0x4612c1[_0xa66938(0x29d)],_0x4612c1);}),Array[_0x5d91b5(0x25d)](_0x32cd56[_0x5d91b5(0x18c)]());}var Bt=Object[_0x5f4c13(0x1ee)],Ft=(_0x5ca936,_0x194353,_0x3edb2d,_0x27a719)=>{const _0x23e5e4=_0x5f4c13;for(var _0x48c3df=_0x27a719>0x1?void 0x0:_0x27a719?Bt(_0x194353,_0x3edb2d):_0x194353,_0x325f9c=_0x5ca936[_0x23e5e4(0x231)]-0x1,_0x5cc1ce;_0x325f9c>=0x0;_0x325f9c--)(_0x5cc1ce=_0x5ca936[_0x325f9c])&&(_0x48c3df=_0x5cc1ce(_0x48c3df)||_0x48c3df);return _0x48c3df;},y=(_0x59f3f9,_0x61b16a)=>(_0x1dfb25,_0x2b9c41)=>_0x61b16a(_0x1dfb25,_0x2b9c41,_0x59f3f9);let Z=class extends a[_0x5f4c13(0x28f)]{constructor(_0x284d45,_0x4de98a,_0x32d260,_0x5dee29,_0x1e4da4,_0x5b93d7){const _0x3bc978=_0x5f4c13;super(),this[_0x3bc978(0x19c)]=_0x284d45,this[_0x3bc978(0x239)]=_0x4de98a,this[_0x3bc978(0x3c6)]=_0x32d260,this['_messageService']=_0x5dee29,this[_0x3bc978(0x1d4)]=_0x1e4da4,this[_0x3bc978(0x2f1)]=_0x5b93d7,this[_0x3bc978(0x1c0)](),this[_0x3bc978(0x3ba)]();}[_0x5f4c13(0x1c0)](){const _0x1997b6=_0x5f4c13;this[_0x1997b6(0x3da)](this[_0x1997b6(0x19c)]['registerBeforeClose'](()=>{const _0x19be37=_0x1997b6;if(this[_0x19be37(0x239)]['saveTaskMap']['size'])return this[_0x19be37(0x2f1)]['t'](_0x19be37(0x2ac));}));}[_0x5f4c13(0x3ba)](){const _0x54af07=_0x5f4c13;this[_0x54af07(0x3da)](this['_collaborationUIEventService']['event$'][_0x54af07(0x154)](_0x3810f6=>{const _0x4acc38=_0x54af07;_0x3810f6['id']===u[_0x4acc38(0x145)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t']('collaboration.single-unit.warning')}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x1c7)]&&this[_0x4acc38(0x266)]['show']({'type':p[_0x4acc38(0x143)][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x388))}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x39b)]&&this[_0x4acc38(0x1d4)][_0x4acc38(0x3b8)]({'title':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x1c1)),'content':this['_localeService']['t'](_0x4acc38(0x275)),'type':_0x4acc38(0x1dd),'duration':0x0}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x3b5)]&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x159)],'content':this['_localeService']['t'](_0x4acc38(0x388))+'('+_0x3810f6['data']+')'}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x1a2)]&&this[_0x4acc38(0x266)][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t'](_0x3810f6[_0x4acc38(0x31f)]||'')}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x30c)]&&this[_0x4acc38(0x266)][_0x4acc38(0x3b8)]({'type':p['MessageType'][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x1d2))}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x281)]&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x159)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x2e0))}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x3c2)]&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x159)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x14b))});}));}};Z=Ft([y(0x0,O[_0x5f4c13(0x32f)]),y(0x1,u[_0x5f4c13(0x2e3)]),y(0x2,a[_0x5f4c13(0x21b)](u['CollaborationUIEventService'])),y(0x3,O[_0x5f4c13(0x117)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x5f4c13(0x2b2)]))],Z);var jt=Object[_0x5f4c13(0x1ee)],kt=(_0x1629fd,_0xa9cf9d,_0x37e2ba,_0x1f9e3c)=>{const _0x233d44=_0x5f4c13;for(var _0x112311=_0x1f9e3c>0x1?void 0x0:_0x1f9e3c?jt(_0xa9cf9d,_0x37e2ba):_0xa9cf9d,_0x1a9998=_0x1629fd[_0x233d44(0x231)]-0x1,_0x85c6cd;_0x1a9998>=0x0;_0x1a9998--)(_0x85c6cd=_0x1629fd[_0x1a9998])&&(_0x112311=_0x85c6cd(_0x112311)||_0x112311);return _0x112311;},z=(_0x56332e,_0x2413d2)=>(_0x2906fb,_0x53b2d5)=>_0x2413d2(_0x2906fb,_0x53b2d5,_0x56332e);let Q=class extends a[_0x5f4c13(0x28f)]{constructor(_0x2b3f92,_0x33175b,_0x31fc08,_0x42ee19){const _0x22db24=_0x5f4c13;super(),_(this,_0x22db24(0x1e4)),(this[_0x22db24(0x1fd)]=_0x2b3f92,this[_0x22db24(0x381)]=_0x33175b,this[_0x22db24(0x277)]=_0x31fc08,this[_0x22db24(0x3c5)]=_0x42ee19,this['_init']());}[_0x5f4c13(0x335)](){const _0x3297d7=_0x5f4c13;this['_initWindowErrorListener'](),this[_0x3297d7(0x348)](),this[_0x3297d7(0x28d)](),this[_0x3297d7(0x372)]();}['_initUserListener'](){const _0x588b87=_0x5f4c13;this[_0x588b87(0x3da)](this[_0x588b87(0x3c5)][_0x588b87(0x1fa)][_0x588b87(0x154)](_0x2a8e0f=>{const _0x203320=_0x588b87;this[_0x203320(0x1e4)]=_0x2a8e0f==null?void 0x0:_0x2a8e0f[_0x203320(0x26d)];}));}['_initWindowErrorListener'](){const _0x2231df=_0x5f4c13,_0x144644=_0x3c8396=>{const _0x25a568=_0x1124;var _0x329a30;this['_uploadLog']('error',_0x25a568(0x2ec)+_0x3c8396[_0x25a568(0x17c)]+_0x25a568(0x37d)+_0x3c8396['filename']+':'+_0x3c8396['lineno']+':'+_0x3c8396[_0x25a568(0x227)]+'\x0a'+(((_0x329a30=_0x3c8396['error'])==null?void 0x0:_0x329a30[_0x25a568(0x355)])||''));};window[_0x2231df(0x2ae)](_0x2231df(0x1dd),_0x144644),this[_0x2231df(0x3da)](()=>{const _0x16c1ef=_0x2231df;window[_0x16c1ef(0x1ab)](_0x16c1ef(0x1dd),_0x144644);});}['_initUnhandledRejectionListener'](){const _0x14cefc=_0x5f4c13,_0x476d73=_0x2c6401=>{const _0x49b1cf=_0x1124;this[_0x49b1cf(0x1f3)]('error',_0x49b1cf(0x119)+_0x2c6401['reason']);};window[_0x14cefc(0x2ae)](_0x14cefc(0x2a2),_0x476d73),this['disposeWithMe'](()=>{const _0x53d8c2=_0x14cefc;window[_0x53d8c2(0x1ab)](_0x53d8c2(0x2a2),_0x476d73);});}['_monkeyPatchLogService'](){const _0x121626=_0x5f4c13,_0x530ab2=this[_0x121626(0x277)][_0x121626(0x1dd)][_0x121626(0x300)](this[_0x121626(0x277)]);this[_0x121626(0x277)][_0x121626(0x1dd)]=(..._0x51b972)=>{const _0x32f0b8=_0x121626,_0x336616=_0x51b972[_0x32f0b8(0x13c)](_0x5e064e=>_0x5e064e instanceof Error?_0x5e064e[_0x32f0b8(0x17c)]+'\x0a'+_0x5e064e[_0x32f0b8(0x355)]:String(_0x5e064e))[_0x32f0b8(0x343)]('\x20');this[_0x32f0b8(0x1f3)](_0x32f0b8(0x1dd),'[LogService\x20Error]:\x20'+_0x336616),_0x530ab2(..._0x51b972);},this['disposeWithMe'](()=>{const _0x4a9ca1=_0x121626;this[_0x4a9ca1(0x277)][_0x4a9ca1(0x1dd)]=_0x530ab2;});}[_0x5f4c13(0x1f3)](_0x180934,_0x36bc87){const _0x241a57=_0x5f4c13;try{const _0x3b2ded={'userId':this[_0x241a57(0x1e4)],'logLabel':_0x180934,'content':_0x36bc87};this[_0x241a57(0x381)][_0x241a57(0x35a)](_0x241a57(0x1bf),{'body':_0x3b2ded})[_0x241a57(0x1b0)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x5f4c13(0x349)])),z(0x1,a[_0x5f4c13(0x21b)](x[_0x5f4c13(0x166)])),z(0x2,a[_0x5f4c13(0x1c9)]),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0x5f4c13(0x361),Me={};var Ht=Object[_0x5f4c13(0x1ee)],Wt=(_0x21dd2c,_0x359e20,_0xda0319,_0x313781)=>{for(var _0x4a0bf6=_0x313781>0x1?void 0x0:_0x313781?Ht(_0x359e20,_0xda0319):_0x359e20,_0x14e44a=_0x21dd2c['length']-0x1,_0x9bc4ca;_0x14e44a>=0x0;_0x14e44a--)(_0x9bc4ca=_0x21dd2c[_0x14e44a])&&(_0x4a0bf6=_0x9bc4ca(_0x4a0bf6)||_0x4a0bf6);return _0x4a0bf6;},Ae=(_0x6cbee3,_0xa634e8)=>(_0x1eeb08,_0x47a568)=>_0xa634e8(_0x1eeb08,_0x47a568,_0x6cbee3);let ee=class{constructor(_0x5ca068,_0x10aced){const _0x1183fd=_0x5f4c13;this[_0x1183fd(0x301)]=_0x5ca068,this['_renderManagerService']=_0x10aced;}['transformIMECache'](_0x36e7b8){const _0x1825cf=_0x5f4c13;this['_transformUndoRedoStack'](_0x36e7b8),this[_0x1825cf(0x153)](_0x36e7b8);}[_0x5f4c13(0x184)](_0x184398){const _0x38c6f0=_0x5f4c13,{unitID:_0x4fb255}=_0x184398,_0x6f1020=this[_0x38c6f0(0x3be)]['getRenderById'](_0x4fb255)[_0x38c6f0(0x158)](T[_0x38c6f0(0x125)]),{redoCache:_0x38c9d4}=_0x6f1020[_0x38c6f0(0x194)]();if(_0x38c9d4[_0x38c6f0(0x231)]===0x0)return _0x184398;let _0x5adeac=a['Tools']['deepClone'](_0x184398[_0x38c6f0(0x165)][0x0]);for(let _0x492fff=0x0;_0x492fff<_0x38c9d4[_0x38c6f0(0x231)];_0x492fff++){const _0x49a384={'id':_0x38c6f0(0x209),'params':{..._0x38c9d4[_0x492fff]}},_0x5969fb=this[_0x38c6f0(0x301)][_0x38c6f0(0x31d)](_0x5adeac,_0x49a384,!0x1);if(g[_0x38c6f0(0x140)](_0x5969fb))throw _0x5969fb[_0x38c6f0(0x1dd)];_0x5adeac=_0x5969fb[_0x38c6f0(0x219)];}return{...a[_0x38c6f0(0x17a)][_0x38c6f0(0x230)](_0x184398),'mutations':[_0x5adeac]};}[_0x5f4c13(0x318)](_0x59c8ee){const _0x3f19d9=_0x5f4c13,{unitID:_0x1e8d59}=_0x59c8ee,_0x5f10a3=this[_0x3f19d9(0x3be)][_0x3f19d9(0x39c)](_0x1e8d59)[_0x3f19d9(0x158)](T['DocIMEInputManagerService']),{undoCache:_0x586c15,redoCache:_0x2d1b45}=_0x5f10a3['getUndoRedoMutationParamsCache']();if(_0x586c15[_0x3f19d9(0x231)]===0x0||_0x2d1b45[_0x3f19d9(0x231)]===0x0)return;const _0x49bb85=[],_0x5ca3fc=[];let _0xf401d5=a[_0x3f19d9(0x17a)][_0x3f19d9(0x230)](_0x59c8ee[_0x3f19d9(0x165)][0x0]),_0x50ccfc=a[_0x3f19d9(0x17a)][_0x3f19d9(0x230)](_0x59c8ee['mutations'][0x0]);for(let _0x144d43=_0x586c15['length']-0x1;_0x144d43>=0x0;_0x144d43--){const _0x1ecf85={'id':_0x3f19d9(0x209),'params':{..._0x586c15[_0x144d43]}},_0x1f261c={'id':_0x3f19d9(0x209),'params':{..._0x2d1b45[_0x144d43]}},_0x497353=this[_0x3f19d9(0x301)][_0x3f19d9(0x31d)](_0xf401d5,_0x1ecf85,!0x1),_0x4c8f5d=this['_transformService'][_0x3f19d9(0x31d)](_0x50ccfc,_0x1f261c,!0x1);if(g[_0x3f19d9(0x140)](_0x497353))throw _0x497353[_0x3f19d9(0x1dd)];if(g[_0x3f19d9(0x140)](_0x4c8f5d))throw _0x4c8f5d[_0x3f19d9(0x1dd)];_0x49bb85['unshift'](_0x497353[_0x3f19d9(0x3c4)][_0x3f19d9(0x346)]),_0x5ca3fc['unshift'](_0x4c8f5d['m2Prime']['params']),_0xf401d5=_0x497353[_0x3f19d9(0x219)],_0x50ccfc=_0x4c8f5d[_0x3f19d9(0x219)];}_0x5f10a3['setUndoRedoMutationParamsCache']({'undoCache':_0x49bb85,'redoCache':_0x5ca3fc});}[_0x5f4c13(0x153)](_0x257fb0){const _0x2bce4e=_0x5f4c13,{unitID:_0x51330c}=_0x257fb0,_0xd592cf=this[_0x2bce4e(0x3be)][_0x2bce4e(0x39c)](_0x51330c)[_0x2bce4e(0x158)](T[_0x2bce4e(0x125)]),_0x344970=_0xd592cf['getActiveRange']();if(_0x344970==null)return;const _0x348b9c=[{'id':_0x2bce4e(0x209),'params':{'unitId':_0x257fb0['unitID'],'actions':null,'textRanges':[_0x344970]}}],_0x31c850=this['_transformService'][_0x2bce4e(0x2b5)](_0x257fb0,_0x348b9c);if(!g[_0x2bce4e(0x36c)](_0x31c850))throw _0x31c850['error'];const _0x2f0a4e=_0x31c850['m2Prime'][0x0][_0x2bce4e(0x346)]['textRanges'];Array[_0x2bce4e(0x180)](_0x2f0a4e)&&_0x2f0a4e[_0x2bce4e(0x231)]&&_0xd592cf['setActiveRange'](_0x2f0a4e[0x0]);}};ee=Wt([Ae(0x0,g[_0x5f4c13(0x2e7)]),Ae(0x1,C[_0x5f4c13(0x18a)])],ee);var Vt=Object[_0x5f4c13(0x1ee)],Gt=(_0x464ff2,_0x517e50,_0x1d00d4,_0x2f7cda)=>{const _0x31cae0=_0x5f4c13;for(var _0x22802c=_0x2f7cda>0x1?void 0x0:_0x2f7cda?Vt(_0x517e50,_0x1d00d4):_0x517e50,_0x4414bf=_0x464ff2[_0x31cae0(0x231)]-0x1,_0xe018f2;_0x4414bf>=0x0;_0x4414bf--)(_0xe018f2=_0x464ff2[_0x4414bf])&&(_0x22802c=_0xe018f2(_0x22802c)||_0x22802c);return _0x22802c;},Ie=(_0x24a403,_0x49e420)=>(_0x15a378,_0x52f2e1)=>_0x49e420(_0x15a378,_0x52f2e1,_0x24a403);let te=class{constructor(_0x5f21ac,_0x1179a0,_0x179d83){const _0x42676a=_0x5f4c13;this[_0x42676a(0x1fd)]=_0x5f21ac,this['_transformService']=_0x1179a0,this['_docStateChangeManagerService']=_0x179d83;}[_0x5f4c13(0x2be)](_0x3759bb){const _0x3febeb=_0x5f4c13;this[_0x3febeb(0x3cc)](_0x3759bb);}[_0x5f4c13(0x184)](_0xd56b22){const _0xcb7f73=_0x5f4c13,{unitID:_0xb6d38}=_0xd56b22,{collaboration:_0x3a4817}=this[_0xcb7f73(0x322)]['getStateCache'](_0xb6d38);if(_0x3a4817[_0xcb7f73(0x231)]===0x0)return _0xd56b22;let _0x402586=a[_0xcb7f73(0x17a)][_0xcb7f73(0x230)](_0xd56b22['mutations'][0x0]);for(let _0x13a4b7=0x0;_0x13a4b7<_0x3a4817[_0xcb7f73(0x231)];_0x13a4b7++){const _0x878e2d={'id':_0xcb7f73(0x209),'params':{'unitId':_0x3a4817[_0x13a4b7]['unitId'],..._0x3a4817[_0x13a4b7][_0xcb7f73(0x213)]}},_0x353cad=this['_transformService']['transformMutation'](_0x402586,_0x878e2d,!0x1);if(g[_0xcb7f73(0x140)](_0x353cad))throw _0x353cad[_0xcb7f73(0x1dd)];_0x402586=_0x353cad[_0xcb7f73(0x219)];}return{...a['Tools'][_0xcb7f73(0x230)](_0xd56b22),'mutations':[_0x402586]};}[_0x5f4c13(0x3cc)](_0x98b3a2){const _0x20b463=_0x5f4c13,{unitID:_0x4a0fa3}=_0x98b3a2,{history:_0x28929e,collaboration:_0x116c12}=this[_0x20b463(0x322)][_0x20b463(0x265)](_0x4a0fa3);if(_0x28929e['length']===0x0&&_0x116c12['length']===0x0)return;const _0x1d16c9=[],_0xe60ff8=[];let _0x404a0e=a[_0x20b463(0x17a)][_0x20b463(0x230)](_0x98b3a2[_0x20b463(0x165)][0x0]),_0x241633=a[_0x20b463(0x17a)][_0x20b463(0x230)](_0x98b3a2[_0x20b463(0x165)][0x0]);for(let _0x788cd6=_0x28929e[_0x20b463(0x231)]-0x1;_0x788cd6>=0x0;_0x788cd6--){const _0x479855={'id':_0x20b463(0x209),'params':{'unitId':_0x28929e[_0x788cd6][_0x20b463(0x34a)],..._0x28929e[_0x788cd6][_0x20b463(0x2f2)]}},_0x1cd71b={'id':_0x20b463(0x209),'params':{'unitId':_0x28929e[_0x788cd6]['unitId'],..._0x28929e[_0x788cd6]['redoState']}},_0x490061=this[_0x20b463(0x301)][_0x20b463(0x31d)](_0x404a0e,_0x479855,!0x1),_0x91123c=this[_0x20b463(0x301)]['transformMutation'](_0x241633,_0x1cd71b,!0x1);if(g[_0x20b463(0x140)](_0x490061))throw _0x490061[_0x20b463(0x1dd)];if(g[_0x20b463(0x140)](_0x91123c))throw _0x91123c['error'];_0x1d16c9['unshift']({..._0x28929e[_0x788cd6],'undoState':_0x490061[_0x20b463(0x3c4)][_0x20b463(0x346)],'redoState':_0x91123c['m2Prime'][_0x20b463(0x346)]}),_0x404a0e=_0x490061['m1Prime'],_0x241633=_0x91123c[_0x20b463(0x219)];}_0x404a0e=a[_0x20b463(0x17a)][_0x20b463(0x230)](_0x98b3a2['mutations'][0x0]),_0x241633=a[_0x20b463(0x17a)]['deepClone'](_0x98b3a2[_0x20b463(0x165)][0x0]);for(let _0x1de79a=_0x116c12['length']-0x1;_0x1de79a>=0x0;_0x1de79a--){const _0x58577e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x116c12[_0x1de79a]['unitId'],..._0x116c12[_0x1de79a][_0x20b463(0x2f2)]}},_0x1bbac3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x116c12[_0x1de79a][_0x20b463(0x34a)],..._0x116c12[_0x1de79a]['redoState']}},_0x59e72f=this[_0x20b463(0x301)][_0x20b463(0x31d)](_0x404a0e,_0x58577e,!0x1),_0x3021c3=this[_0x20b463(0x301)][_0x20b463(0x31d)](_0x241633,_0x1bbac3,!0x1);if(g[_0x20b463(0x140)](_0x59e72f))throw _0x59e72f[_0x20b463(0x1dd)];if(g[_0x20b463(0x140)](_0x3021c3))throw _0x3021c3[_0x20b463(0x1dd)];_0xe60ff8[_0x20b463(0x2cb)]({..._0x116c12[_0x1de79a],'undoState':_0x59e72f[_0x20b463(0x3c4)][_0x20b463(0x346)],'redoState':_0x3021c3['m2Prime'][_0x20b463(0x346)]}),_0x404a0e=_0x59e72f[_0x20b463(0x219)],_0x241633=_0x3021c3['m1Prime'];}this[_0x20b463(0x322)][_0x20b463(0x21a)](_0x4a0fa3,{'history':_0x1d16c9,'collaboration':_0xe60ff8});}};te=Gt([Ie(0x0,a['Inject'](a[_0x5f4c13(0x349)])),Ie(0x1,g[_0x5f4c13(0x2e7)]),Ie(0x2,a['Inject'](T[_0x5f4c13(0x2bf)]))],te);var Xt=Object[_0x5f4c13(0x1ee)],Kt=(_0xc47d4e,_0x5d74cb,_0x5abea4,_0x478af8)=>{for(var _0x1c08d1=_0x478af8>0x1?void 0x0:_0x478af8?Xt(_0x5d74cb,_0x5abea4):_0x5d74cb,_0x3a25ed=_0xc47d4e['length']-0x1,_0x3b50de;_0x3a25ed>=0x0;_0x3a25ed--)(_0x3b50de=_0xc47d4e[_0x3a25ed])&&(_0x1c08d1=_0x3b50de(_0x1c08d1)||_0x1c08d1);return _0x1c08d1;},Pe=(_0x117300,_0x358384)=>(_0x3768a8,_0x401b12)=>_0x358384(_0x3768a8,_0x401b12,_0x117300);let se=class{constructor(_0x490725,_0xbf3034){const _0x242b40=_0x5f4c13;this[_0x242b40(0x1fd)]=_0x490725,this['_transformService']=_0xbf3034;}['transformSelections'](_0x2be1f2){const _0x13f95f=_0x5f4c13;var _0x28312f;const _0x1d8254=this[_0x13f95f(0x1fd)][_0x13f95f(0x389)](V[_0x13f95f(0x345)]),_0x14fead=(_0x28312f=_0x1d8254[_0x13f95f(0x192)]())!=null?_0x28312f:[];if(_0x14fead[_0x13f95f(0x231)]===0x0)return;const _0x224af6=_0x2be1f2[_0x13f95f(0x26a)],_0x448e0d=[{'id':_0x13f95f(0x209),'params':{'unitId':_0x224af6,'actions':null,'textRanges':_0x14fead}}],_0x150ad7=this[_0x13f95f(0x301)][_0x13f95f(0x2b5)](_0x2be1f2,_0x448e0d);if(!g[_0x13f95f(0x36c)](_0x150ad7))throw _0x150ad7[_0x13f95f(0x1dd)];const _0x4f4b66=_0x150ad7['m2Prime'][0x0]['params'][_0x13f95f(0x304)];Array[_0x13f95f(0x180)](_0x4f4b66)&&_0x4f4b66[_0x13f95f(0x231)]&&_0x1d8254['replaceDocRanges'](_0x4f4b66,{'unitId':_0x224af6,'subUnitId':_0x224af6},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x5f4c13(0x349)])),Pe(0x1,g[_0x5f4c13(0x2e7)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x10ae08,_0x4adc77,_0x124af8,_0x532b77)=>{const _0x281c59=_0x5f4c13;for(var _0x5a3b1e=_0x532b77>0x1?void 0x0:_0x532b77?qt(_0x4adc77,_0x124af8):_0x4adc77,_0x384a87=_0x10ae08[_0x281c59(0x231)]-0x1,_0x31ac85;_0x384a87>=0x0;_0x384a87--)(_0x31ac85=_0x10ae08[_0x384a87])&&(_0x5a3b1e=_0x31ac85(_0x5a3b1e)||_0x5a3b1e);return _0x5a3b1e;},N=(_0x71a510,_0x141bd0)=>(_0x209062,_0x2a4274)=>_0x141bd0(_0x209062,_0x2a4274,_0x71a510);let ie=class extends a[_0x5f4c13(0x28f)]{constructor(_0x5c2e45,_0x4d84ee,_0x21c0f2,_0x12061e,_0x19e7e2,_0x249d74,_0x131102,_0x43dd29){const _0x1fccdc=_0x5f4c13;super(),_(this,'_status$',new I[(_0x1fccdc(0x2ed))](u[_0x1fccdc(0x376)][_0x1fccdc(0x347)])),(this['_docStateChangeManagerService']=_0x5c2e45,this[_0x1fccdc(0x217)]=_0x4d84ee,this[_0x1fccdc(0x245)]=_0x21c0f2,this[_0x1fccdc(0x325)]=_0x12061e,this[_0x1fccdc(0x1a4)]=_0x19e7e2,this['_docSyncEditingCollabCursorService']=_0x249d74,this['_messageService']=_0x131102,this[_0x1fccdc(0x2f1)]=_0x43dd29,this[_0x1fccdc(0x26e)]());}[_0x5f4c13(0x26e)](){const _0x38e68e=_0x5f4c13;this['disposeWithMe'](this['_collaborationController']['entityInit$'][_0x38e68e(0x154)](_0x2b8a2c=>{const _0x259de9=_0x38e68e,_0x195bd3=this[_0x259de9(0x322)][_0x259de9(0x332)][_0x259de9(0x154)](_0x3bb7a6=>{const _0x38f2b1=_0x259de9;if(_0x3bb7a6==null)return;const {unitId:_0x57fc40,redoState:_0x41369f,commandId:_0x2e66b1}=_0x3bb7a6;if(_0x57fc40!==_0x2b8a2c[_0x38f2b1(0x26a)])return;const _0x115b88={'id':_0x2e66b1,'type':a[_0x38f2b1(0x3d0)][_0x38f2b1(0x16f)],'params':{'unitId':_0x57fc40,'actions':_0x41369f[_0x38f2b1(0x2ef)],'textRanges':null}};_0x2b8a2c[_0x38f2b1(0x216)](_0x115b88);});if(_0x2b8a2c[_0x259de9(0x3da)](_0x195bd3),_0x2b8a2c instanceof u[_0x259de9(0x255)]){const _0x16f50b={'onTransformIME':_0x13696f=>this['_docTransformIMECacheService'][_0x259de9(0x369)](_0x13696f),'onTransformState':_0x3ed189=>this['_docTransformStateCacheService']['transformStateCache'](_0x3ed189),'onTransformSelections':_0x1e6f9a=>this[_0x259de9(0x1a4)][_0x259de9(0x1fb)](_0x1e6f9a),'onSyncEditingCollabCursor':_0x304f51=>this[_0x259de9(0x2ad)]['syncEditingCollabCursor'](_0x304f51),'onTransformRemoteChangesetByIMECache':_0x39e545=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x39e545),'onTransformRemoteChangesetByStateCache':_0x1b5597=>this[_0x259de9(0x325)]['transformRemoteChangeset'](_0x1b5597)};_0x2b8a2c[_0x259de9(0x2dc)](_0x16f50b);}}));}};ie=zt([N(0x0,a['Inject'](T[_0x5f4c13(0x2bf)])),N(0x1,a[_0x5f4c13(0x21b)](u['CollaborationController'])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x5f4c13(0x21b)](te)),N(0x4,a[_0x5f4c13(0x21b)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x5f4c13(0x117)]),N(0x7,a[_0x5f4c13(0x21b)](a['LocaleService']))],ie);var G=(_0x51631e=>(_0x51631e[_0x51631e[_0x5f4c13(0x128)]=0x0]=_0x5f4c13(0x128),_0x51631e[_0x51631e['OK']=0x1]='OK',_0x51631e[_0x51631e[_0x5f4c13(0x1af)]=0x2]='INTERNAL_ERROR',_0x51631e[_0x51631e[_0x5f4c13(0x39b)]=0x3]=_0x5f4c13(0x39b),_0x51631e[_0x51631e[_0x5f4c13(0x11a)]=0x4]=_0x5f4c13(0x11a),_0x51631e[_0x51631e[_0x5f4c13(0x27d)]=0x5]=_0x5f4c13(0x27d),_0x51631e[_0x51631e[_0x5f4c13(0x135)]=0x6]=_0x5f4c13(0x135),_0x51631e[_0x51631e[_0x5f4c13(0x190)]=0x7]=_0x5f4c13(0x190),_0x51631e[_0x51631e[_0x5f4c13(0x2c3)]=0x8]=_0x5f4c13(0x2c3),_0x51631e[_0x51631e[_0x5f4c13(0x303)]=0x9]=_0x5f4c13(0x303),_0x51631e[_0x51631e['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x51631e[_0x51631e[_0x5f4c13(0x3a6)]=0xb]=_0x5f4c13(0x3a6),_0x51631e[_0x51631e[_0x5f4c13(0x1d9)]=0xc]=_0x5f4c13(0x1d9),_0x51631e[_0x51631e['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x5f4c13(0x1cb),_0x51631e[_0x51631e['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x51631e[_0x51631e[_0x5f4c13(0x1a3)]=0xf]=_0x5f4c13(0x1a3),_0x51631e[_0x51631e[_0x5f4c13(0x333)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x51631e[_0x51631e[_0x5f4c13(0x2b7)]=0x64]=_0x5f4c13(0x2b7),_0x51631e[_0x51631e['ERROR_AGAIN']=0x65]=_0x5f4c13(0x2d1),_0x51631e[_0x51631e['USER_NOT_FOUND']=0xc9]=_0x5f4c13(0x14d),_0x51631e[_0x51631e[_0x5f4c13(0x280)]=0xca]=_0x5f4c13(0x280),_0x51631e[_0x51631e[_0x5f4c13(0x218)]=0x1389]=_0x5f4c13(0x218),_0x51631e[_0x51631e[_0x5f4c13(0x344)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x51631e[_0x51631e[_0x5f4c13(0x286)]=0x1772]=_0x5f4c13(0x286),_0x51631e[_0x51631e[_0x5f4c13(0x3a5)]=0x1773]=_0x5f4c13(0x3a5),_0x51631e[_0x51631e[_0x5f4c13(0x20b)]=0x1b59]=_0x5f4c13(0x20b),_0x51631e[_0x51631e[_0x5f4c13(0x18e)]=0x1b5a]=_0x5f4c13(0x18e),_0x51631e[_0x51631e[_0x5f4c13(0x189)]=0x1b5b]=_0x5f4c13(0x189),_0x51631e[_0x51631e[_0x5f4c13(0x251)]=0x1b5c]=_0x5f4c13(0x251),_0x51631e[_0x51631e[_0x5f4c13(0x35f)]=0x1b5d]=_0x5f4c13(0x35f),_0x51631e[_0x51631e[_0x5f4c13(0x157)]=0x1f41]=_0x5f4c13(0x157),_0x51631e[_0x51631e[_0x5f4c13(0x394)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x51631e[_0x51631e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5f4c13(0x39d),_0x51631e[_0x51631e[_0x5f4c13(0x20c)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x51631e[_0x51631e[_0x5f4c13(0x24b)]=0x232c]=_0x5f4c13(0x24b),_0x51631e[_0x51631e['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5f4c13(0x2a4),_0x51631e[_0x51631e[_0x5f4c13(0x26b)]=0x2711]=_0x5f4c13(0x26b),_0x51631e[_0x51631e[_0x5f4c13(0x285)]=0x2712]=_0x5f4c13(0x285),_0x51631e[_0x51631e[_0x5f4c13(0x215)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x51631e[_0x51631e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5f4c13(0x3cb),_0x51631e[_0x51631e[_0x5f4c13(0x1d7)]=0x271a]=_0x5f4c13(0x1d7),_0x51631e[_0x51631e[_0x5f4c13(0x31a)]=0x271b]=_0x5f4c13(0x31a),_0x51631e[_0x51631e[_0x5f4c13(0x1f2)]=0x271c]=_0x5f4c13(0x1f2),_0x51631e[_0x51631e[_0x5f4c13(0x234)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x51631e[_0x51631e[_0x5f4c13(0x38c)]=0x271e]=_0x5f4c13(0x38c),_0x51631e[_0x51631e[_0x5f4c13(0x19b)]=0x271f]=_0x5f4c13(0x19b),_0x51631e[_0x51631e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x51631e[_0x51631e[_0x5f4c13(0x211)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x51631e[_0x51631e[_0x5f4c13(0x276)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x51631e[_0x51631e[_0x5f4c13(0x13b)]=0x2ee2]=_0x5f4c13(0x13b),_0x51631e[_0x51631e[_0x5f4c13(0x1b6)]=0x2ee3]=_0x5f4c13(0x1b6),_0x51631e[_0x51631e['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x51631e[_0x51631e[_0x5f4c13(0x11d)]=0x2ee5]=_0x5f4c13(0x11d),_0x51631e[_0x51631e[_0x5f4c13(0x1ac)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x51631e[_0x51631e['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x51631e[_0x51631e[_0x5f4c13(0x2b4)]=0x32cb]=_0x5f4c13(0x2b4),_0x51631e[_0x51631e[_0x5f4c13(0x1ef)]=0x36b1]=_0x5f4c13(0x1ef),_0x51631e[_0x51631e[_0x5f4c13(0x37b)]=0x36b2]=_0x5f4c13(0x37b),_0x51631e[_0x51631e['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x5f4c13(0x24f),_0x51631e[_0x51631e[_0x5f4c13(0x3c8)]=0x36b4]=_0x5f4c13(0x3c8),_0x51631e[_0x51631e[_0x5f4c13(0x1a1)]=0x36b5]=_0x5f4c13(0x1a1),_0x51631e[_0x51631e[_0x5f4c13(0x367)]=0x36b6]=_0x5f4c13(0x367),_0x51631e[_0x51631e[_0x5f4c13(0x30b)]=0x36b7]=_0x5f4c13(0x30b),_0x51631e[_0x51631e['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x5f4c13(0x197),_0x51631e[_0x51631e[_0x5f4c13(0x237)]=0x3715]=_0x5f4c13(0x237),_0x51631e[_0x51631e[_0x5f4c13(0x1e8)]=0x3716]=_0x5f4c13(0x1e8),_0x51631e[_0x51631e[_0x5f4c13(0x271)]=0x3717]=_0x5f4c13(0x271),_0x51631e[_0x51631e[_0x5f4c13(0x161)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x51631e[_0x51631e[_0x5f4c13(0x24a)]=0x3a99]=_0x5f4c13(0x24a),_0x51631e[_0x51631e['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x5f4c13(0x34d),_0x51631e[_0x51631e[_0x5f4c13(0x23a)]=0x3a9b]=_0x5f4c13(0x23a),_0x51631e[_0x51631e['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x51631e[_0x51631e[_0x5f4c13(0x34b)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x51631e[_0x51631e[_0x5f4c13(0x188)]=0x3a9e]=_0x5f4c13(0x188),_0x51631e[_0x51631e[_0x5f4c13(0x223)]=0x3a9f]=_0x5f4c13(0x223),_0x51631e[_0x51631e[_0x5f4c13(0x249)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x51631e[_0x51631e[_0x5f4c13(0x226)]=-0x1]=_0x5f4c13(0x226),_0x51631e))(G||{});function Jt(_0x35f608){const _0x4b8e9b=_0x5f4c13;var _0x1aef9d,_0x303811;const _0x395f82=(_0x1aef9d=_0x35f608[_0x4b8e9b(0x37e)])==null?void 0x0:_0x1aef9d[_0x4b8e9b(0x1f6)],_0x4709b8=((_0x303811=_0x35f608[_0x4b8e9b(0x37e)])==null?void 0x0:_0x303811['totalFormulasToCalculate'])||0x0;return _0x395f82===B[_0x4b8e9b(0x375)][_0x4b8e9b(0x31b)]&&_0x4709b8>0x0;}function Zt(_0x120bc2){const _0x15a252=_0x5f4c13;return _0x120bc2['functionsExecutedState']===B[_0x15a252(0x123)][_0x15a252(0x2fc)];}var Qt=Object[_0x5f4c13(0x1ee)],es=(_0x4aa16a,_0x46485e,_0x18350d,_0x3e01c2)=>{const _0x83ba7d=_0x5f4c13;for(var _0x35e9db=_0x3e01c2>0x1?void 0x0:_0x3e01c2?Qt(_0x46485e,_0x18350d):_0x46485e,_0x17805a=_0x4aa16a[_0x83ba7d(0x231)]-0x1,_0x5c4e70;_0x17805a>=0x0;_0x17805a--)(_0x5c4e70=_0x4aa16a[_0x17805a])&&(_0x35e9db=_0x5c4e70(_0x35e9db)||_0x35e9db);return _0x35e9db;},L=(_0x5271c3,_0x1106b8)=>(_0x143c61,_0x251aaa)=>_0x1106b8(_0x143c61,_0x251aaa,_0x5271c3);const ts=_0x5f4c13(0x393),ss=_0x5f4c13(0x13f),is=_0x5f4c13(0x3a4);let ne=class extends a['Disposable']{constructor(_0x2b3b27,_0x5876ce,_0x35fd78,_0x221597,_0x8c4d9b,_0x499c38,_0x28bd03){const _0x348019=_0x5f4c13;super(),_(this,_0x348019(0x2af),null),_(this,_0x348019(0x3e1),0x0),_(this,_0x348019(0x259),0x0),_(this,'_taskIds',[]),_(this,_0x348019(0x399),0x0),(this['_messageService']=_0x2b3b27,this[_0x348019(0x274)]=_0x5876ce,this[_0x348019(0x29f)]=_0x35fd78,this['_httpService']=_0x221597,this[_0x348019(0x1fe)]=_0x8c4d9b,this[_0x348019(0x277)]=_0x499c38,this[_0x348019(0x2f1)]=_0x28bd03,this[_0x348019(0x1d3)]());}[_0x5f4c13(0x1d3)](){const _0x3de4e5=_0x5f4c13;this[_0x3de4e5(0x3da)](this[_0x3de4e5(0x274)][_0x3de4e5(0x1d8)]((_0x57f4a7,_0xbe681f)=>{const _0x26baca=_0x3de4e5;var _0x1cd23e;if(_0x57f4a7['id']!==B[_0x26baca(0x27a)]['id'])return;const _0x311893=_0x57f4a7['params'];if(!this[_0x26baca(0x26c)]((_0x1cd23e=_0x311893['dirtyRanges'])!=null?_0x1cd23e:[]))return;if(!this[_0x26baca(0x134)]())throw this[_0x26baca(0x1de)](_0x57f4a7,_0xbe681f),this[_0x26baca(0x315)](),new a[(_0x26baca(0x1f8))]();})),this[_0x3de4e5(0x3da)](this[_0x3de4e5(0x274)][_0x3de4e5(0x3d8)]((_0x323043,_0x46dfec)=>{const _0x15cec2=_0x3de4e5;if(_0x323043['id']!==B[_0x15cec2(0x297)]['id'])return;const _0x2a40b4=_0x323043[_0x15cec2(0x346)];if(Jt(_0x2a40b4)){const _0x564f67=a['generateRandomId']();this['_taskIds']['push'](_0x564f67),this[_0x15cec2(0x3d2)](_0x564f67);}else{if(Zt(_0x2a40b4)&&this[_0x15cec2(0x178)][_0x15cec2(0x231)]>0x0){const _0x10bb83=this[_0x15cec2(0x178)][_0x15cec2(0x2c9)]();this[_0x15cec2(0x182)](_0x10bb83);}}}));}['dispose'](){const _0x388cfa=_0x5f4c13;super[_0x388cfa(0x18f)](),this[_0x388cfa(0x25f)](),this[_0x388cfa(0x178)]=[],this[_0x388cfa(0x259)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x388cfa(0x399)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x4bb3a3,_0x193369){const _0x28258e=_0x5f4c13;for(let _0x5153ee=0x0;_0x5153ee<0x1e;_0x5153ee++)try{if(await this['_getFormulaLimitStatus'](),this[_0x28258e(0x134)]()){this[_0x28258e(0x334)](_0x4bb3a3,_0x193369),this['_messageService']['show']({'content':this[_0x28258e(0x2f1)]['t'](_0x28258e(0x267)),'type':p[_0x28258e(0x143)][_0x28258e(0x147)]});return;}await new Promise(_0x194104=>{const _0xc4b217=_0x28258e;this[_0xc4b217(0x2af)]=window[_0xc4b217(0x25e)](_0x194104,0x3e8);});}catch(_0x2fca3a){this[_0x28258e(0x277)][_0x28258e(0x1dd)](_0x2fca3a);}this['_messageService'][_0x28258e(0x3b8)]({'content':this[_0x28258e(0x2f1)]['t'](_0x28258e(0x2c8)),'type':p['MessageType'][_0x28258e(0x159)]});}[_0x5f4c13(0x334)](_0x7075fa,_0x272bd3){const _0x22a02b=_0x5f4c13;try{this['_commandService'][_0x22a02b(0x2a0)](_0x7075fa['id'],_0x7075fa[_0x22a02b(0x346)],_0x272bd3);}catch(_0x249a68){this['_logService'][_0x22a02b(0x1dd)](_0x249a68);}}[_0x5f4c13(0x1ad)](_0x2742e3,_0x1f10d1){const _0x50bc48=_0x5f4c13;_0x1f10d1<this[_0x50bc48(0x399)]||(this[_0x50bc48(0x399)]=_0x1f10d1,this[_0x50bc48(0x3e1)]=Number['parseInt'](_0x2742e3[_0x50bc48(0x138)]),this[_0x50bc48(0x259)]=Number['parseInt'](_0x2742e3[_0x50bc48(0x160)]));}async[_0x5f4c13(0x3d2)](_0x2ee553){const _0x669a6d=_0x5f4c13;var _0x53d8fe,_0x4caf83;const _0x36ffd2=Date[_0x669a6d(0x25a)]();try{const _0x5ed464=((_0x53d8fe=this[_0x669a6d(0x29f)][_0x669a6d(0x37a)](u[_0x669a6d(0x278)]))==null?void 0x0:_0x53d8fe[_0x669a6d(0x21d)])||ss,_0x41c0df=(await this[_0x669a6d(0x381)][_0x669a6d(0x35a)](_0x5ed464,{'body':JSON[_0x669a6d(0x241)]({'taskId':_0x2ee553})}))[_0x669a6d(0x136)];if(((_0x4caf83=_0x41c0df[_0x669a6d(0x1dd)])==null?void 0x0:_0x4caf83[_0x669a6d(0x2bc)])!==G['OK'])return;this[_0x669a6d(0x1ad)](_0x41c0df['limitInfo'],_0x36ffd2);}catch(_0x43c983){this['_logService']['error'](_0x43c983);}}async['_getFormulaLimitStatus'](_0x184a1f){const _0x51ae2f=_0x5f4c13;var _0x57909f,_0x3ebf37;const _0x16cb23=Date[_0x51ae2f(0x25a)]();try{const _0x5f380d=((_0x57909f=this[_0x51ae2f(0x29f)][_0x51ae2f(0x37a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x57909f[_0x51ae2f(0x366)])||ts,_0x5e7709=_0x184a1f?_0x5f380d+_0x51ae2f(0x313)+encodeURIComponent(_0x184a1f):_0x5f380d,_0x4caee9=(await this[_0x51ae2f(0x381)][_0x51ae2f(0x389)](_0x5e7709))[_0x51ae2f(0x136)];if(((_0x3ebf37=_0x4caee9[_0x51ae2f(0x1dd)])==null?void 0x0:_0x3ebf37[_0x51ae2f(0x2bc)])!==G['OK'])return;this[_0x51ae2f(0x1ad)](_0x4caee9[_0x51ae2f(0x2eb)],_0x16cb23);}catch(_0x23d4ce){this['_logService'][_0x51ae2f(0x1dd)](_0x23d4ce);}}async['_releaseCalculationLimit'](_0x3e156e){const _0x7e78cb=_0x5f4c13;var _0x2fb262,_0x54de4f;const _0x1afa05=Date[_0x7e78cb(0x25a)]();try{const _0x8df14f=((_0x2fb262=this[_0x7e78cb(0x29f)]['getConfig'](u[_0x7e78cb(0x278)]))==null?void 0x0:_0x2fb262[_0x7e78cb(0x142)])||is,_0x38c75c=(await this[_0x7e78cb(0x381)][_0x7e78cb(0x35a)](_0x8df14f,{'body':JSON['stringify']({'taskId':_0x3e156e})}))['body'];if(((_0x54de4f=_0x38c75c[_0x7e78cb(0x1dd)])==null?void 0x0:_0x54de4f[_0x7e78cb(0x2bc)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x38c75c[_0x7e78cb(0x2eb)],_0x1afa05);}catch(_0x1d9e4b){this[_0x7e78cb(0x277)][_0x7e78cb(0x1dd)](_0x1d9e4b);}}[_0x5f4c13(0x134)](){const _0x31d177=_0x5f4c13;return this[_0x31d177(0x3e1)]===0x0?!0x0:this[_0x31d177(0x3e1)]-this[_0x31d177(0x259)]>0x0;}[_0x5f4c13(0x25f)](){const _0x177729=_0x5f4c13;this[_0x177729(0x2af)]&&(clearTimeout(this[_0x177729(0x2af)]),this[_0x177729(0x2af)]=null);}['_showGuardMessage'](){const _0x908450=_0x5f4c13;this[_0x908450(0x266)][_0x908450(0x3b8)]({'content':this[_0x908450(0x2f1)]['t'](_0x908450(0x397)),'type':p['MessageType'][_0x908450(0x242)]});}['_hasFormulaInDirtyRanges'](_0x836b45){const _0x60d3ae=_0x5f4c13;for(const _0x34b12d of _0x836b45){const {unitId:_0x947efe,sheetId:_0x5f25c5,range:_0x5a84d5}=_0x34b12d,_0x2d5e21=this[_0x60d3ae(0x1fe)][_0x60d3ae(0x19a)](_0x947efe);if(!_0x2d5e21)continue;const _0x430566=_0x2d5e21[_0x60d3ae(0x2b9)](_0x5f25c5);if(!_0x430566)continue;const _0x5425ad=_0x430566['getCellMatrix']();for(let _0x410c03=_0x5a84d5[_0x60d3ae(0x1a7)];_0x410c03<=_0x5a84d5[_0x60d3ae(0x1d1)];_0x410c03++)for(let _0x4893d5=_0x5a84d5[_0x60d3ae(0x170)];_0x4893d5<=_0x5a84d5[_0x60d3ae(0x1ba)];_0x4893d5++){const _0x1b1e75=_0x5425ad[_0x60d3ae(0x2cf)](_0x410c03,_0x4893d5);if(_0x1b1e75&&(a[_0x60d3ae(0x221)](_0x1b1e75['f'])||a[_0x60d3ae(0x1bd)](_0x1b1e75['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x5f4c13(0x21b)](O[_0x5f4c13(0x117)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x5f4c13(0x21b)](x[_0x5f4c13(0x166)])),L(0x4,a[_0x5f4c13(0x12a)]),L(0x5,a[_0x5f4c13(0x1c9)]),L(0x6,a['Inject'](a[_0x5f4c13(0x2b2)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x14fc27,_0x5b229b,_0x4bfdc0,_0x20c9d5)=>{const _0x399f74=_0x5f4c13;for(var _0x575ef5=_0x20c9d5>0x1?void 0x0:_0x20c9d5?ns(_0x5b229b,_0x4bfdc0):_0x5b229b,_0x53a0ae=_0x14fc27[_0x399f74(0x231)]-0x1,_0x320b31;_0x53a0ae>=0x0;_0x53a0ae--)(_0x320b31=_0x14fc27[_0x53a0ae])&&(_0x575ef5=_0x320b31(_0x575ef5)||_0x575ef5);return _0x575ef5;},Se=(_0x4c48be,_0x297506)=>(_0x4a0082,_0x5d9395)=>_0x297506(_0x4a0082,_0x5d9395,_0x4c48be);let Te=class extends a[_0x5f4c13(0x28f)]{constructor(_0x30eeba,_0x108573,_0x164196){const _0x3e096e=_0x5f4c13;super(),_(this,_0x3e096e(0x24d),new Map()),_(this,_0x3e096e(0x169),new Map()),_(this,_0x3e096e(0x35b),!0x1),(this[_0x3e096e(0x29f)]=_0x30eeba,this['_localStorageService']=_0x108573,this[_0x3e096e(0x206)]=_0x164196);}[_0x5f4c13(0x2b3)](){const _0x5bbb5d=_0x5f4c13;this[_0x5bbb5d(0x35b)]=!0x0;}[_0x5f4c13(0x330)](){const _0x595235=_0x5f4c13;this[_0x595235(0x35b)]=!0x1;}get[_0x5f4c13(0x3b7)](){const _0x30611b=_0x5f4c13;return this[_0x30611b(0x169)];}[_0x5f4c13(0x18f)](){const _0x27b600=_0x5f4c13;this['exhaustSavingTask']()[_0x27b600(0x314)](()=>super['dispose']());}async[_0x5f4c13(0x38a)](_0x3fa261){const _0x4a5e1a=_0x5f4c13;return this[_0x4a5e1a(0x35b)]?null:this[_0x4a5e1a(0x311)][_0x4a5e1a(0x3b6)](u['getLocalCacheKey'](_0x3fa261));}async[_0x5f4c13(0x238)](_0x39bc73,_0x333efe){const _0x4c3726=_0x5f4c13;return!!this[_0x4c3726(0x311)][_0x4c3726(0x3df)](_0x39bc73,_0x333efe);}[_0x5f4c13(0x122)](_0x5adb0c,_0x2fe4e1,_0x2ade1b,_0x576756){const _0x49cbb6=_0x5f4c13,_0x14097b=this[_0x49cbb6(0x206)][_0x49cbb6(0x173)](_0x5adb0c);this[_0x49cbb6(0x24d)]['set'](_0x5adb0c,{'unitID':_0x5adb0c,'type':_0x2fe4e1,'awaitingChangeset':_0x2ade1b,'mutations':_0x576756,'rev':_0x14097b}),this['_saveTaskMap'][_0x49cbb6(0x17f)](_0x5adb0c)||this['_scheduleSaving'](_0x5adb0c);}[_0x5f4c13(0x380)](_0x5c5564){const _0x5607ed=_0x5f4c13,_0x14875c=this['_getSaveTimeout']();_0x14875c===0x0?this['_saveCache'](_0x5c5564):this[_0x5607ed(0x169)]['set'](_0x5c5564,setTimeout(()=>this[_0x5607ed(0x22f)](_0x5c5564),_0x14875c));}[_0x5f4c13(0x2d2)](){const _0x1e6518=_0x5f4c13;var _0x16a015;return(_0x16a015=this[_0x1e6518(0x29f)][_0x1e6518(0x37a)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x16a015:u[_0x1e6518(0x20d)];}[_0x5f4c13(0x22f)](_0x57ac00){const _0x50e62d=_0x5f4c13,_0x47b629=this[_0x50e62d(0x169)]['get'](_0x57ac00);return _0x47b629!==void 0x0&&window[_0x50e62d(0x127)](_0x47b629),this[_0x50e62d(0x311)][_0x50e62d(0x3df)](u[_0x50e62d(0x3b2)](_0x57ac00),this['_cachedData'][_0x50e62d(0x389)](_0x57ac00))['then'](()=>this[_0x50e62d(0x169)][_0x50e62d(0x1aa)](_0x57ac00));}async[_0x5f4c13(0x3a3)](){const _0x52f894=_0x5f4c13,_0x3ebc77=[];this[_0x52f894(0x169)][_0x52f894(0x3ac)]((_0x2f7de8,_0x27b18b)=>{const _0x19b823=_0x52f894;window['clearTimeout'](_0x2f7de8),_0x3ebc77[_0x19b823(0x261)](this[_0x19b823(0x22f)](_0x27b18b)[_0x19b823(0x314)](()=>{const _0x592454=_0x19b823;this[_0x592454(0x169)]['delete'](_0x27b18b);}));}),await Promise[_0x52f894(0x3d6)](_0x3ebc77);}};Te=rs([Se(0x0,a[_0x5f4c13(0x118)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a['Inject'](g[_0x5f4c13(0x17e)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x41cde1=_0x5f4c13;super(),_(this,_0x41cde1(0x396)),this[_0x41cde1(0x396)]=I[_0x41cde1(0x203)](window,'popstate')[_0x41cde1(0x336)](I[_0x41cde1(0x3c7)](this[_0x41cde1(0x2ce)]),I['shareReplay'](0x1),I['mapTo'](void 0x0));}['setParam'](_0x573b98,_0x1f57d4,_0x212255=!0x1){const _0x17f133=_0x5f4c13,_0x22eb7b=new URL(window[_0x17f133(0x2e1)][_0x17f133(0x36a)]);_0x22eb7b[_0x17f133(0x2e4)]['set'](_0x573b98,_0x1f57d4),_0x212255?window[_0x17f133(0x279)][_0x17f133(0x3d3)]('','',_0x22eb7b[_0x17f133(0x327)]()):window['history']['pushState']('','',_0x22eb7b[_0x17f133(0x327)]());}['removeParam'](_0x55de73,_0x2634c2=!0x1){const _0x15fbd5=_0x5f4c13,_0x58283c=new URL(window[_0x15fbd5(0x2e1)][_0x15fbd5(0x36a)]);_0x58283c[_0x15fbd5(0x2e4)][_0x15fbd5(0x1aa)](_0x55de73),_0x2634c2?window['history'][_0x15fbd5(0x3d3)]('','',_0x58283c[_0x15fbd5(0x327)]()):window[_0x15fbd5(0x279)][_0x15fbd5(0x28a)]('','',_0x58283c[_0x15fbd5(0x327)]());}['getParam'](_0x541776){const _0x291218=_0x5f4c13;var _0x4a22d1;return(_0x4a22d1=new URL(window['location'][_0x291218(0x36a)])[_0x291218(0x2e4)]['get'](_0x541776))!=null?_0x4a22d1:void 0x0;}}function _0x38fa(){const _0x48a9d3=['colorChannel1','_docStateChangeManagerService','_selfUnitIDs','_colorAssignService','_docTransformStateCacheService','ISnapshotServerService','toString','ThemeService','registerRefRange','2680356KXJMbC','tag','getVpScrollXYInfoByPosToVp','onPointerMove$','runRefRangeMutations','IBeforeCloseService','enableLocalCache','_updateLocalCursor','docStateChange$','LOGIN_TOKEN_PROCESSING_FAILED','_applyCommand','_init','pipe','getFocusedUnit','_clearOtherTimers','text','currentColor','filter','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','distinctUntilChanged','resize','_docSkeleton','UNIVER_DOC','collab-rect-range-','range','join','SNAPSHOT_INVALID_SNAPSHOT','DocSelectionManagerService','params','NOT_COLLAB','_initUnhandledRejectionListener','Injector','unitId','REDEMPTION_USER_NOT_ELIGIBLE','roomMembers','REDEMPTION_CODE_INACTIVE','FETCH_MISS','createIdentifier','_entityInit$','toRgbString','unit','init','whenReady','stack','getRelativeToViewportCoord','saveImage','Failed','uni.network.url-service','post','_disabled','size','DependentOn','unsubscribe','APPLY_DUPLICATED','ticket','collaboration-client-ui.config','entries','_collabSessionService','blue.400','AWAITING_WITH_PENDING','getformulaLimitStatusUrl','ENTITLE_COUPON_EXPIRED','_getSheetObject','transformIMECache','href','enableFrontendLog','isTransformMutationsWithChangesetSuccess','DisposableCollection','ranges','triggerDblclick','SetWorksheetActivateCommand','_hover','_initUserListener','getActiveSheet','invokeId','FormulaExecuteStageType','CollaborationStatus','subscribeEvent','SessionStatus','4YIzcJA','getConfig','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','OnLineIcon','\x20at\x20','stageInfo','handleInsertCol','_scheduleSaving','_httpService','complete','red.300','application/json','CollaborationSocketService','DesktopCollaborationStatusDisplayController','_updateURLWithCurrentState','collaboration.closeRoom','get','loadOfflineData','event$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','NO_OTHER_CLIENTS_EDITING','SheetCollabCursorShape','CollaborationSessionService','fillText','_startSheetCollabCursor','jsx','/universer-api/license/formula/limit/status','LICENSE_MAX_UNITS_EXCEEDED','xlink:href','urlChange$','formula.calculation.waiting','off-line-icon_clip0_910_343','_lastResponseTimestamp','key','PERMISSION_DENIED','getRenderById','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_updateSubUnitFromURLParams','assignAColorForMemberID','_toggleOnline','_context','_send','exhaustSavingTask','/universer-api/license/formula/limit/done','ENSURE_SNAPSHOT_EXECUTION','MOBILE_VERIFY_CODE_MISMATCH','BuiltInUIPart','requireSession','_themeService','_unitOnClients','children','forEach','_onCursorUpdate','purple.300','HEADER_MENU','http://www.w3.org/2000/svg','IImageIoService','getLocalCacheKey','getCurrentUnitForType','handleMoveRange','CONFLICT','getItem','saveTaskMap','show','_textBubble','_initEvent','translate(.97)','getSheetObject','_backgroundColor','_renderManagerService','rgba(255,\x20255,\x20255,\x200.01)','engine','syncEditingCollabCursor','SUBMIT_CHANGESET_TIMEOUT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','m2Prime','_collaborationSessionService','_collaborationUIEventService','takeUntil','PAYMENT_CHANNEL_NOT_SUPPORT','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_registerDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformHistoryAndStateStack','_cursor','7ACOIMM','serializeRangeWithSheet','CommandType','_toggleOffline','_startCalculationLimit','replaceState','setConfig','color','all','_cursors','onCommandExecuted','TRANSFORM_CHANGE_OBSERVABLE_TYPE','disposeWithMe','handleIRemoveCol','_handleHover','collabStatus.synced','white','setItem','sessionStatus$','_maxFormulaLimit','_refRangeService','_anchorDot','_drawAnchor','NodePositionConvertToCursor','drawWith','IMessageService','IConfigService','[Unhandled\x20Rejection]:\x20','NOT_FOUND','_config','_shapes','INVITE_CODE_ALREADY_BOUND','toDisposable','RemoteUniscriptService','SHEET_VIEWPORT_KEY','_handleJoinEvent','updateOfflineData','FormulaExecutedStateType','Rect','DocIMEInputManagerService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','clearTimeout','UNDEFINED','_sheetSkeletonManagerService','IUniverInstanceService','IDocClipboardService','on-line-icon_clip0_910_349','switchMap','_uiPartsService','sheetId','none','unload','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','black','_checkCalculationAvailable','ALREADY_EXISTS','body','substring','maxFormulaLimit','USERS_LEAVE','_urlService','INVALID_INVITE_CODE','map','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getMemberID','/universer-api/license/formula/limit/start','isTransformMutationFailure','_anchor','releaseFormulaLimitUrl','MessageType','collabStatus.fetchMiss','CollaborationUIEventId','restore','Success','TEXT','[CollaborationDataLoaderController]','getCurrentSelections','session.collaboration-timeout','Unknown\x20user','USER_NOT_FOUND','labelPosition','height','hide','_hovered','IURLService','_transformPreviousActiveRange','subscribe','roomMembers$','currentSkeleton$','CONNECTOR_DATA_TOO_LARGE','with','Error','2oGYxxd','getCoordByCell','_render','useDependency','trim','handleDeleteRangeMoveUp','currentUsage','ENTITLE_NEED_BILLING_ADDRESS','InsertRangeMoveRightCommandId','debounce','DataLoaderService','mutations','HTTPService','Tooltip','_ensureSubject','_saveTaskMap','getAncestorScale','_status$','measureText','DOC_RANGE_TYPE','RemoveColCommandId','MUTATION','startColumn','UnitStatus','symbol','getCurrentRevOfUnit','getCollabCursors$','beginPath','clsx','OFFLINE','_taskIds','getSkeleton','Tools','DeleteRangeMoveUpCommandId','message','registerComponent','RevisionService','has','isArray','_name','_releaseCalculationLimit','add','transformRemoteChangeset','getRangePointData','_lastPointer','774141HepIyK','REDEMPTION_USER_REDEEM_TIMES_EXCEED','APPLY_REVISION_CONFILICT','IRenderManagerService','clipPath','values','combineLatest','APPLY_NON_SEQUENTIAL_REVISION','dispose','INVALID_ARGUMENT','registerRenderModule','getDocRanges','transform','getUndoRedoMutationParamsCache','deserializeRangeWithSheet','arc','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_assignedColors','closePath','getUnit','YUUMI_AI_RUN_FAILED','_beforeCloseService','Shape','yellow.400','send','_removeClearOtherTimer','ENTITLE_INVALID_COUPON_CODE','JOIN_ROOM_FAILED','AUTHORIZE_CODE_ILLEGAL','_docTransformSelectionsService','_scheduleHeartbeat','643690MQXPlt','startRow','_getMergeRange','width','delete','removeEventListener','WECHAT_HAS_BEEN_BOUND','_setFormulaLimitStatus','_initDependencies','INTERNAL_ERROR','catch','_createSocketURL','random','0\x200\x2017\x2016','COLORS','ColorKit','INVITE_CODE_REQUIRED','row','some','source','endColumn','result','getMember','isFormulaId','runId','/universer-api/frontend/logs','_setupBeforeClosingHandler','permission.title','BrowserCollaborationSocketService','Warning','type','cursorInfo','generateRandomId','CLOSE_ROOM','focused$','ILogService','_color','EMAIL_VERIFY_CODE_MISMATCH','RECT','_docClipboardService','reconnect','EffectRefRangId','MemberService','endRow','session.will-retry','_initCommandInterceptor','_notificationService','min','_initCommandExecutedListener','YUUMI_NO_CUBOID_FOR_QUESTION','beforeCommandExecuted','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Optional','attrs','asObservable','error','_checkAndWaitForCalculationPermission','_cursorInfo$','newValue','getOffsetConfig','merge','Subject','_memberID','disposeUnit','connectInjector','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ENTITLE_REPORT_LIMIT_EXCEED','_initStatusListener','UniverInstanceType','currentTheme$','path','TEXT_RANGE_LAYER_INDEX','getOwnPropertyDescriptor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','ISocketService','getUnitStatus$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_uploadLog','ICommandService','search','stage','RxDisposable','CanceledError','_handleLeaveEvent','socket$','transformSelections','2304309jMeHcW','_injector','_univerInstanceService','_initStatusComponent','_startDocCollabCursor','setParam','getUnhiddenWorksheets','fromEvent','onMouseMove','_collabCursorController','_revisionService','_hideTimer','createElement','doc.mutation.rich-text-editing','url(#$1','APPLY_REJECT','LICENSE_IMPORT_SIZE_EXCEEDED','LOCAL_CACHE_INTERVAL','evenodd','_online','ONLINE','PY_RUNTIME_SCRIPT_ERROR','748QRTgaK','redoState','defineProperty','YUUMI_RATE_OVER_LIMIT','onLocalMutation','_collaborationController','CHANGESET_REVISION_CONFILICT','m1Prime','setStateCache','Inject','createInstance','startFormulaLimitUrl','throttleTime','RefRangeService','_heartbeatTimer','isFormulaString','debug','REDEMPTION_CODE_HAS_BEEN_CREATED','_onRefRangeChange','forwardRef','UNRECOGNIZED','colno','_handleHeartbeatEvent','contains','imageSourceType','addObjects','_memberService','_roomMembers$','_scene','_saveCache','deepClone','length','idSuffix','fill','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_SHEET','getCellPositionByOffset','ENTITLE_CHAT_LIMIT_EXCEED','saveOfflineData','_localCacheService','REDEMPTION_CODE_FULLY_REDEEMED','useRef','cursorInfo$','addObject','makeDirty','getCollabEntity$','onPointerLeave$','stringify','Loading','transformByState','setAlpha','_docTransformIMECacheService','replace','save','column','DATA_SOURCE_TOO_LARGE','REDEMPTION_INVALID_CODE','LICENSE_EXPORT_SIZE_EXCEEDED','CollaborationDataLoaderController','_cachedData','RichTextEditingMutation','ENTITLE_DUP_SUBSCRIPTION','setShapeProps','APPLY_PERMISSION_DENIED','parse','_scheduleClearOtherTimer','MoveRangeCommandId','DocCollaborationEntity','UniverCollaborationClientUIPlugin','subunit','Module','_currentUsage','now','_entities','name','from','setTimeout','_clearPolling','string','push','_labelPosition','_session','InsertColCommandId','getStateCache','_messageService','formula.calculation.started','mask','getParam','unitID','YUUMI_UNABLE_LOAD_URL','_hasFormulaInDirtyRanges','memberID','_initEntityListener','_initResize','Vector2','ENTITLE_INSUFFICIENT_QUOTA','getUnitId','touchDependencies','_commandService','permission.content','INVITE_CODE_HAS_BEEN_UES','_logService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','history','SetFormulaCalculationStartMutation','InsertRowCommandId','defs','UNAUTHENTICATED','_range','ACTIVE_UNIT_EVENT_CHANNEL','USER_IS_ANONYMOUS','SOCKET_FAILED','IRemoteInstanceService','subUnitId','collabStatus.notCollab','YUUMI_URL_COL_OUT_OF_RANGE','SNAPSHOT_HAS_BEEN_REMOVED','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','_drawRectRange','split','pushState','onRendered','_docSkeletonManagerService','_monkeyPatchLogService','clearInterval','Disposable','runOnServer','fillStyle','jiqing.500','Rectangle','backgroundColor','find','getTypeOfUnitAdded$','SetFormulaCalculationNotificationMutation','useObservable','_colorIndex','getColor','DEFAULT_WS_SESSION_TICKET_URL','findNodePositionByCharIndex','selection','font','_configService','executeCommand','skeleton','unhandledrejection','UPDATE_CURSOR','LICENSE_DISTRO_REJECTED','fromEventSubject','_instanceService','_dataLoaderService','debounceTime','div','url(#on-line-icon_clip0_910_349)','SetTextSelectionsOperation','collaboration.offline-data-not-saved','_docSyncEditingCollabCursorService','addEventListener','_pollingInterval','_id','collab-client.tooltip.reconnect','LocaleService','disableLocalCache','EMAIL_HAS_BEEN_BOUND','transformMutationsWithChangeset','0\x200\x2016\x2016','CURRENT_STATUS_CANNOT_OPERATE','_eventUnsubscribe','getSheetBySheetId','SetDocZoomRatioOperation','univer-mr-2\x20univer-flex\x20univer-text-xl','code','sheetID','transformStateCache','DocStateChangeManagerService','eventID','handleIRemoveRow','pluginName','TOO_MANY_REQUESTS','_refreshCollabCursors','OTHER_CLIENTS_EDITING','getColorFromTheme','_setupSubUnitSync','formula.calculation.unable','shift','assign','unshift','univerjs-icon\x20univerjs-icon-','M0\x200H16V16H0z','dispose$','getValue','selections','ERROR_AGAIN','_getSaveTimeout','getTypeOfUnitDisposed$','FromArray','_registerRenderDependencies','getSheetId','1em','override','_handleEvent','...','3037505plIWKq','addHandlerCallback','origin','7219782bQSAyp','round','session.connection-failed','location','RegularPolygon','ILocalCacheService','searchParams','collabStatus.syncing','fillRule','ITransformService','WebURLService','_getSessionTicket','_getAnchorBounding','limitInfo','[Window\x20Error]:\x20','BehaviorSubject','_collabCursorState$','actions','svg','_localeService','undoState','off-line-icon','_syncEditingCollabCursorService','loadUnit','_removeCollabCursors','setInterval','_cursorShapes','getCurrent','storage','sessionTicket','SUCCESS','status$','_updateCollabCursors','bottom','bind','_transformService','next','COMPLETION_FINISHED','textRanges','_draw','OffLineIcon','SetSelectionsOperation','flatMap','lineTo','displayName','ENTITLE_COUPON_USED_UP','SOCKET_FAILED_RETRY','CollaborationEvent','Workbook','3840464TQvekF','set','_localStorageService','_unitStatus','?taskId=','then','_showGuardMessage','activeSheet$','startsWith','_transformUndoRedoStack','_onCursorDelete','YUUMI_ASYNCIO_CANCELLED','START_CALCULATION','_imageIoService','transformMutation','includes','data','top'];_0x38fa=function(){return _0x48a9d3;};return _0x38fa();}function _0x1124(_0x5417d4,_0x6553bb){_0x5417d4=_0x5417d4-0x117;const _0x38fa46=_0x38fa();let _0x112425=_0x38fa46[_0x5417d4];return _0x112425;}var os=Object[_0x5f4c13(0x214)],as=Object['getOwnPropertyDescriptor'],cs=(_0x1f6e45,_0x495c78,_0x12fd0b)=>_0x495c78 in _0x1f6e45?os(_0x1f6e45,_0x495c78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12fd0b}):_0x1f6e45[_0x495c78]=_0x12fd0b,ls=(_0x49278e,_0x4c2ab2,_0x357453,_0x16da87)=>{const _0x342f75=_0x5f4c13;for(var _0x33b971=_0x16da87>0x1?void 0x0:_0x16da87?as(_0x4c2ab2,_0x357453):_0x4c2ab2,_0x29589b=_0x49278e[_0x342f75(0x231)]-0x1,_0x12cce0;_0x29589b>=0x0;_0x29589b--)(_0x12cce0=_0x49278e[_0x29589b])&&(_0x33b971=_0x12cce0(_0x33b971)||_0x33b971);return _0x33b971;},de=(_0x4c285d,_0x3ebf7e)=>(_0x1f02ac,_0x1da275)=>_0x3ebf7e(_0x1f02ac,_0x1da275,_0x4c285d),_s=(_0x192820,_0x493d7e,_0x26e7c6)=>cs(_0x192820,_0x493d7e+'',_0x26e7c6);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x1020aa=Me,_0x3bc6ab,_0x419627,_0x390433){const _0x514ba5=_0x5f4c13;super(),this[_0x514ba5(0x11b)]=_0x1020aa,this[_0x514ba5(0x3be)]=_0x3bc6ab,this[_0x514ba5(0x1fd)]=_0x419627,this[_0x514ba5(0x29f)]=_0x390433;const {..._0x156cf4}=a[_0x514ba5(0x1e2)]({},Me,this[_0x514ba5(0x11b)]);this['_configService'][_0x514ba5(0x3d4)](Yt,_0x156cf4);}['onStarting'](){const _0x2fc145=_0x5f4c13;this['_registerDependencies'](),this[_0x2fc145(0x1ae)]();}[_0x5f4c13(0x28b)](){const _0x15a294=_0x5f4c13;this[_0x15a294(0x2d5)]();}[_0x5f4c13(0x3ca)](){const _0x528f01=_0x5f4c13;var _0x28348e;const _0x119004=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x528f01(0x1f0)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x528f01(0x11b)][_0x528f01(0x36b)]&&_0x119004['push']([Q]),a['registerDependencies'](this[_0x528f01(0x1fd)],a['mergeOverrideWithDependencies'](_0x119004,(_0x28348e=this['_config'])==null?void 0x0:_0x28348e[_0x528f01(0x2d8)]));}[_0x5f4c13(0x2d5)](){const _0x3e94bc=_0x5f4c13;this[_0x3e94bc(0x3da)](this[_0x3e94bc(0x3be)][_0x3e94bc(0x191)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this[_0x3e94bc(0x3da)](this['_renderManagerService'][_0x3e94bc(0x191)](a['UniverInstanceType']['UNIVER_SHEET'],[Ce]));}[_0x5f4c13(0x1ae)](){const _0x149c92=_0x5f4c13;a[_0x149c92(0x273)](this[_0x149c92(0x1fd)],[[F],[exports[_0x149c92(0x386)]],[ie],[Z],[exports[_0x149c92(0x24c)]],[ne]]),this[_0x149c92(0x11b)][_0x149c92(0x36b)]&&a[_0x149c92(0x273)](this[_0x149c92(0x1fd)],[[Q]]);}},_s(exports[_0x5f4c13(0x256)],_0x5f4c13(0x2c2),hs),exports[_0x5f4c13(0x256)]=ls([a[_0x5f4c13(0x35d)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x5f4c13(0x18a)]),de(0x2,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),de(0x3,a['IConfigService'])],exports[_0x5f4c13(0x256)]);var us=Object[_0x5f4c13(0x1ee)],Is=(_0xd54244,_0x17ebd4,_0x2123c1,_0x319503)=>{const _0x165077=_0x5f4c13;for(var _0x5c9f56=_0x319503>0x1?void 0x0:_0x319503?us(_0x17ebd4,_0x2123c1):_0x17ebd4,_0x5656d2=_0xd54244[_0x165077(0x231)]-0x1,_0xb4d356;_0x5656d2>=0x0;_0x5656d2--)(_0xb4d356=_0xd54244[_0x5656d2])&&(_0x5c9f56=_0xb4d356(_0x5c9f56)||_0x5c9f56);return _0x5c9f56;},W=(_0x2844bc,_0x4631f2)=>(_0x9d2b1c,_0x290977)=>_0x4631f2(_0x9d2b1c,_0x290977,_0x2844bc);exports[_0x5f4c13(0x1c2)]=class extends u[_0x5f4c13(0x385)]{constructor(_0x5911db,_0x4639dc,_0x454df8,_0x5e2928,_0x502cd9){super(_0x5911db,_0x4639dc,_0x454df8,_0x5e2928,_0x502cd9);}async['createSocket'](_0x3309e3){const _0x4421ad=_0x5f4c13,_0x39771f=await this['_getSessionTicket'](),_0xef7795=this[_0x4421ad(0x1b1)](_0x3309e3,_0x39771f);return this['_doCreateSocket'](_0xef7795);}[_0x5f4c13(0x1b1)](_0x58ecb5,_0x2ca527){const _0x1d974f=_0x5f4c13,_0x40d3ba=typeof window>'u'?new URL(_0x58ecb5):new URL(_0x58ecb5,window[_0x1d974f(0x2e1)][_0x1d974f(0x2dd)]);_0x40d3ba['searchParams'][_0x1d974f(0x310)](_0x1d974f(0x2fb),_0x2ca527);const _0x3948cf=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1d974f(0x1f5)]);return _0x3948cf[_0x1d974f(0x389)]('runId')&&_0x40d3ba[_0x1d974f(0x2e4)][_0x1d974f(0x310)](_0x1d974f(0x1be),_0x3948cf['get']('runId')),_0x40d3ba[_0x1d974f(0x327)]();}async[_0x5f4c13(0x2e9)](){const _0x5d28d6=_0x5f4c13;var _0x27d324,_0x1a4916,_0x1d4e62;const _0xbb415=this[_0x5d28d6(0x29f)]['getConfig'](u[_0x5d28d6(0x278)]),_0x1012b7=(_0x27d324=_0xbb415==null?void 0x0:_0xbb415['wsSessionTicketUrl'])!=null?_0x27d324:u[_0x5d28d6(0x29b)];return(_0x1d4e62=(_0x1a4916=(await this[_0x5d28d6(0x381)]['get'](_0x1012b7,{'headers':{'Content-Type':_0x5d28d6(0x384)}}))[_0x5d28d6(0x136)])==null?void 0x0:_0x1a4916[_0x5d28d6(0x360)])!=null?_0x1d4e62:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),W(0x1,a[_0x5f4c13(0x21b)](x['HTTPService'])),W(0x2,a[_0x5f4c13(0x118)]),W(0x3,a[_0x5f4c13(0x1c9)]),W(0x4,g[_0x5f4c13(0x326)])],exports['BrowserCollaborationSocketService']);var Ss=Object[_0x5f4c13(0x1ee)],ds=(_0x538f46,_0x3107a2,_0x56d443,_0x2db13a)=>{for(var _0x3ae2de=_0x2db13a>0x1?void 0x0:_0x2db13a?Ss(_0x3107a2,_0x56d443):_0x3107a2,_0x45c3c2=_0x538f46['length']-0x1,_0x4c0d54;_0x45c3c2>=0x0;_0x45c3c2--)(_0x4c0d54=_0x538f46[_0x45c3c2])&&(_0x3ae2de=_0x4c0d54(_0x3ae2de)||_0x3ae2de);return _0x3ae2de;},fe=(_0x59377d,_0xaed835)=>(_0x136864,_0x2c7bb6)=>_0xaed835(_0x136864,_0x2c7bb6,_0x59377d);exports['RemoteUniscriptService']=class extends a[_0x5f4c13(0x28f)]{constructor(_0x3a01dd,_0x2a2ec4,_0x30d400){const _0x2aa58a=_0x5f4c13;super(),this['_instanceService']=_0x3a01dd,this[_0x2aa58a(0x381)]=_0x2a2ec4,this[_0x2aa58a(0x29f)]=_0x30d400;}async[_0x5f4c13(0x290)](_0x19e1d6,_0x47c5fc,_0xac8892,..._0x2afb22){const _0x70a1ca=_0x5f4c13;var _0x3adc55,_0x3271bd,_0x3e49a5,_0x3a5999;const _0x1496e0=this[_0x70a1ca(0x2a6)]['getFocusedUnit']();if(!_0x1496e0)throw new Error(_0x70a1ca(0x3c3));const _0x5157db=((_0x3adc55=this['_configService']['getConfig'](u[_0x70a1ca(0x3c9)]))!=null?_0x3adc55:u[_0x70a1ca(0x132)])+'/'+_0x19e1d6+'/run/'+_0x47c5fc,_0x359d77=new URL(window['location']['href']),_0x31c568={'scriptId':_0x19e1d6,'runId':(_0x3271bd=_0x359d77[_0x70a1ca(0x2e4)][_0x70a1ca(0x389)](_0x70a1ca(0x1be)))!=null?_0x3271bd:'','function':_0x47c5fc,'unitId':_0x1496e0[_0x70a1ca(0x272)](),'argsOfFunction':JSON[_0x70a1ca(0x241)](_0x2afb22),'invokeId':(_0x3e49a5=_0xac8892[_0x70a1ca(0x374)])!=null?_0x3e49a5:'','executionId':(_0x3a5999=_0xac8892['executionId'])!=null?_0x3a5999:''};try{const _0x19ce9a=await this[_0x70a1ca(0x381)]['post'](_0x5157db,{'body':_0x31c568});return _0x19ce9a[_0x70a1ca(0x136)]['error']&&_0x19ce9a[_0x70a1ca(0x136)][_0x70a1ca(0x1dd)][_0x70a1ca(0x2bc)]!==G['OK']?'Failed':_0x19ce9a['body'][_0x70a1ca(0x1bb)];}catch{return _0x70a1ca(0x358);}}},exports[_0x5f4c13(0x11f)]=ds([fe(0x0,a[_0x5f4c13(0x12a)]),fe(0x1,a[_0x5f4c13(0x21b)](x['HTTPService'])),fe(0x2,a[_0x5f4c13(0x118)])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0x5f4c13(0x27f);class fs extends a['Disposable']{constructor(){const _0x2ae517=_0x5f4c13;super(),_(this,_0x2ae517(0x2b0),a['generateRandomId']()),_(this,_0x2ae517(0x323),new Set()),_(this,_0x2ae517(0x3aa),new Map()),_(this,_0x2ae517(0x220),null),_(this,_0x2ae517(0x338),new Map()),_(this,_0x2ae517(0x312),new Map()),this['_init']();}[_0x5f4c13(0x18f)](){const _0x41ded5=_0x5f4c13;super[_0x41ded5(0x18f)](),this['_clearOtherTimers'][_0x41ded5(0x3ac)]((_0x4d5b2e,_0x2250f9)=>this[_0x41ded5(0x1a0)](_0x2250f9)),this[_0x41ded5(0x220)]&&window['clearInterval'](this[_0x41ded5(0x220)]);}[_0x5f4c13(0x1f1)](_0x4de2f8){const _0xdfb90e=_0x5f4c13;return this[_0xdfb90e(0x168)](_0x4de2f8)[_0xdfb90e(0x336)](I[_0xdfb90e(0x33d)]());}['editingUnit'](_0x3783e2){const _0x4353da=_0x5f4c13;this[_0x4353da(0x323)][_0x4353da(0x35c)]===0x0&&this[_0x4353da(0x1a5)](),this[_0x4353da(0x323)][_0x4353da(0x183)](_0x3783e2),this['_send']({'type':0x0,'memberID':this[_0x4353da(0x2b0)],'unitIDs':[_0x3783e2],'isForwarded':!0x1});}[_0x5f4c13(0x1e5)](_0x49921d){const _0x7c28aa=_0x5f4c13;this[_0x7c28aa(0x323)][_0x7c28aa(0x1aa)](_0x49921d),this['_selfUnitIDs']['size']===0x0&&this[_0x7c28aa(0x220)]&&window[_0x7c28aa(0x28e)](this[_0x7c28aa(0x220)]);}[_0x5f4c13(0x335)](){const _0x2a7180=_0x5f4c13;this[_0x2a7180(0x3da)](a[_0x2a7180(0x11e)](I[_0x2a7180(0x203)](window,_0x2a7180(0x2fa))[_0x2a7180(0x154)](_0x305976=>{const _0x8867ee=_0x2a7180;if(_0x305976[_0x8867ee(0x39a)]!==ye||!_0x305976[_0x8867ee(0x1e0)])return;const _0x489c7e=JSON[_0x8867ee(0x252)](_0x305976['newValue']);this[_0x8867ee(0x2d9)](_0x489c7e);}))),window[_0x2a7180(0x2ae)](_0x2a7180(0x131),()=>this[_0x2a7180(0x3a2)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2a7180(0x25d)](this[_0x2a7180(0x323)])}));}[_0x5f4c13(0x2d9)](_0x58b057){const _0x5ebe3c=_0x5f4c13;switch(_0x58b057[_0x5ebe3c(0x1c4)]){case 0x0:this[_0x5ebe3c(0x121)](_0x58b057);break;case 0x1:this[_0x5ebe3c(0x1f9)](_0x58b057);break;case 0x2:this['_handleHeartbeatEvent'](_0x58b057);break;}}['_handleJoinEvent'](_0x45a2fa){const _0xc6a88f=_0x5f4c13,{unitIDs:_0x43284f,memberID:_0x40a885,isForwarded:_0x3df383}=_0x45a2fa;_0x43284f[_0xc6a88f(0x3ac)](_0x16cb77=>{const _0x4ec61d=_0xc6a88f;if(!_0x3df383&&this[_0x4ec61d(0x3aa)][_0x4ec61d(0x17f)](_0x16cb77)&&this['_ensureSubject'](_0x16cb77)['next'](u[_0x4ec61d(0x171)][_0x4ec61d(0x2c5)]),!this[_0x4ec61d(0x3aa)][_0x4ec61d(0x17f)](_0x16cb77)||!this['_unitOnClients']['get'](_0x16cb77)[_0x4ec61d(0x17f)](_0x40a885)){const _0x21eeab=this['_unitOnClients']['get'](_0x16cb77)||new Set();_0x21eeab[_0x4ec61d(0x183)](_0x40a885),this[_0x4ec61d(0x3aa)]['set'](_0x16cb77,_0x21eeab),this[_0x4ec61d(0x253)](_0x40a885);}}),_0x3df383||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xc6a88f(0x323)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5cd849){const _0x34bfb6=_0x5f4c13;this['_removeClearOtherTimer'](_0x5cd849);const _0x3de51a=window[_0x34bfb6(0x25e)](()=>{const _0x175e27=_0x34bfb6;this[_0x175e27(0x3aa)]['forEach'](_0x5c4098=>{const _0x43a354=_0x175e27;_0x5c4098[_0x43a354(0x1aa)](_0x5cd849);});},we*0x2);this['_clearOtherTimers'][_0x34bfb6(0x310)](_0x5cd849,_0x3de51a);}[_0x5f4c13(0x1a0)](_0x11317f){const _0x13a086=_0x5f4c13;if(this[_0x13a086(0x338)][_0x13a086(0x17f)](_0x11317f)){const _0x3180ce=this[_0x13a086(0x338)][_0x13a086(0x389)](_0x11317f);_0x3180ce&&window[_0x13a086(0x127)](_0x3180ce),this['_clearOtherTimers'][_0x13a086(0x310)](_0x11317f,null);}}['_handleLeaveEvent'](_0x276c8a){const _0x10a920=_0x5f4c13,{memberID:_0x2215f2,unitIDs:_0x49375e}=_0x276c8a;_0x49375e[_0x10a920(0x3ac)](_0x2c403d=>{const _0x4514c9=_0x10a920;var _0x20a71f;const _0x48d5e3=this[_0x4514c9(0x3aa)][_0x4514c9(0x389)](_0x2c403d);_0x48d5e3&&(_0x48d5e3[_0x4514c9(0x1aa)](_0x2215f2),(_0x20a71f=this[_0x4514c9(0x168)](_0x2c403d))==null||_0x20a71f[_0x4514c9(0x302)](_0x48d5e3[_0x4514c9(0x35c)]===0x0?u[_0x4514c9(0x171)][_0x4514c9(0x38d)]:u['UnitStatus'][_0x4514c9(0x2c5)]));}),this[_0x10a920(0x1a0)](_0x2215f2);}[_0x5f4c13(0x228)](_0x210836){const _0x2d9dbc=_0x5f4c13;this['_scheduleClearOtherTimer'](_0x210836[_0x2d9dbc(0x26d)]);}[_0x5f4c13(0x3a2)](_0x35b4ea){const _0x149a4b=_0x5f4c13;localStorage[_0x149a4b(0x3df)](ye,JSON['stringify'](_0x35b4ea));}[_0x5f4c13(0x1a5)](){const _0x16307f=_0x5f4c13;this[_0x16307f(0x220)]=window[_0x16307f(0x2f7)](()=>{const _0x6aa876=_0x16307f;this[_0x6aa876(0x3a2)]({'type':0x2,'memberID':this[_0x6aa876(0x2b0)]});},we);}[_0x5f4c13(0x168)](_0x51242f){const _0x396891=_0x5f4c13;return this[_0x396891(0x312)][_0x396891(0x17f)](_0x51242f)||this['_unitStatus'][_0x396891(0x310)](_0x51242f,new I['BehaviorSubject'](u[_0x396891(0x171)][_0x396891(0x38d)])),this[_0x396891(0x312)][_0x396891(0x389)](_0x51242f);}}exports[_0x5f4c13(0x152)]=Oe,exports[_0x5f4c13(0x38e)]=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x5f4c13(0x2e8)]=ke;
|
|
1
|
+
'use strict';const _0x4e74b9=_0x33a7;(function(_0xf078ec,_0x30ac8c){const _0x4d4683=_0x33a7,_0x855e1d=_0xf078ec();while(!![]){try{const _0x5e4e40=parseInt(_0x4d4683(0x22e))/0x1*(parseInt(_0x4d4683(0x298))/0x2)+parseInt(_0x4d4683(0x301))/0x3*(parseInt(_0x4d4683(0x11c))/0x4)+-parseInt(_0x4d4683(0x26a))/0x5+-parseInt(_0x4d4683(0x208))/0x6*(parseInt(_0x4d4683(0x239))/0x7)+parseInt(_0x4d4683(0x124))/0x8+parseInt(_0x4d4683(0x2e3))/0x9+parseInt(_0x4d4683(0xf9))/0xa*(-parseInt(_0x4d4683(0x2fc))/0xb);if(_0x5e4e40===_0x30ac8c)break;else _0x855e1d['push'](_0x855e1d['shift']());}catch(_0x51fcd2){_0x855e1d['push'](_0x855e1d['shift']());}}}(_0x1b55,0x2a3f0));var Xe=Object[_0x4e74b9(0x123)],Ke=(_0x109730,_0x4348ce,_0x4f029a)=>_0x4348ce in _0x109730?Xe(_0x109730,_0x4348ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f029a}):_0x109730[_0x4348ce]=_0x4f029a,_=(_0x3ed584,_0x4d8075,_0x560779)=>Ke(_0x3ed584,typeof _0x4d8075!='symbol'?_0x4d8075+'':_0x4d8075,_0x560779);Object[_0x4e74b9(0x123)](exports,Symbol['toStringTag'],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x2c8b32,..._0x2ff2a4}){const _0x255d54=_0x4e74b9,{icon:_0x206913,id:_0x38f152,className:_0x5ef9a6,extend:_0x127c3f,..._0x289a99}=_0x2ff2a4,_0x15289d=('univerjs-icon\x20univerjs-icon-'+_0x38f152+'\x20'+(_0x5ef9a6||''))[_0x255d54(0x2b5)](),_0x305871=A[_0x255d54(0x161)]('_'+Qe());return $e(_0x206913,''+_0x38f152,{'defIds':_0x206913[_0x255d54(0xb6)],'idSuffix':_0x305871[_0x255d54(0x319)]},{'ref':_0x2c8b32,'className':_0x15289d,..._0x289a99},_0x127c3f);}function $e(_0x1ada16,_0x19db80,_0x2a23a4,_0x45c15a,_0x1aa49e){const _0x384904=_0x4e74b9;return A[_0x384904(0x119)](_0x1ada16[_0x384904(0x24d)],{'key':_0x19db80,...Je(_0x1ada16,_0x2a23a4,_0x1aa49e),..._0x45c15a},(Ze(_0x1ada16,_0x2a23a4)[_0x384904(0x21e)]||[])[_0x384904(0x1b0)]((_0x142095,_0x49b06e)=>$e(_0x142095,_0x19db80+'-'+_0x1ada16['tag']+'-'+_0x49b06e,_0x2a23a4,void 0x0,_0x1aa49e)));}function Je(_0xdca1a4,_0x2f42f9,_0x1578f4){const _0x8478f5=_0x4e74b9,_0x6f111d={..._0xdca1a4[_0x8478f5(0xdf)]};_0x1578f4!=null&&_0x1578f4[_0x8478f5(0x315)]&&_0x6f111d[_0x8478f5(0x29a)]===_0x8478f5(0x315)&&(_0x6f111d[_0x8478f5(0x29a)]=_0x1578f4[_0x8478f5(0x315)]),_0xdca1a4[_0x8478f5(0x24d)]===_0x8478f5(0x25b)&&_0x6f111d['id']&&(_0x6f111d['id']=_0x6f111d['id']+_0x2f42f9[_0x8478f5(0x16b)]),Object[_0x8478f5(0x253)](_0x6f111d)['forEach'](([_0x26c7ac,_0x44220e])=>{const _0x95adf=_0x8478f5;_0x26c7ac==='mask'&&typeof _0x44220e==_0x95adf(0x196)&&(_0x6f111d[_0x26c7ac]=_0x44220e[_0x95adf(0x270)](/url\(#(.*)\)/,_0x95adf(0x353)+_0x2f42f9['idSuffix']+')'));});const {defIds:_0x22a1bc}=_0x2f42f9;return!_0x22a1bc||_0x22a1bc['length']===0x0||(_0xdca1a4[_0x8478f5(0x24d)]===_0x8478f5(0x359)&&_0x6f111d['xlink:href']&&(_0x6f111d[_0x8478f5(0xb8)]=_0x6f111d[_0x8478f5(0xb8)]+_0x2f42f9[_0x8478f5(0x16b)]),Object[_0x8478f5(0x253)](_0x6f111d)[_0x8478f5(0xcd)](([_0x431d04,_0x58eece])=>{const _0xb9dbe5=_0x8478f5;typeof _0x58eece==_0xb9dbe5(0x196)&&(_0x6f111d[_0x431d04]=_0x58eece[_0xb9dbe5(0x270)](/url\(#(.*)\)/,_0xb9dbe5(0x353)+_0x2f42f9['idSuffix']+')'));})),_0x6f111d;}function Ze(_0x199d47,_0x496d90){const _0x103e4c=_0x4e74b9;var _0x4468ea;const {defIds:_0x422b02}=_0x496d90;return!_0x422b02||_0x422b02[_0x103e4c(0xd2)]===0x0?_0x199d47:_0x199d47[_0x103e4c(0x24d)]==='defs'&&((_0x4468ea=_0x199d47[_0x103e4c(0x21e)])!=null&&_0x4468ea[_0x103e4c(0xd2)])?{..._0x199d47,'children':_0x199d47[_0x103e4c(0x21e)][_0x103e4c(0x1b0)](_0x357d73=>typeof _0x357d73[_0x103e4c(0xdf)]['id']==_0x103e4c(0x196)&&_0x422b02&&_0x422b02[_0x103e4c(0x1eb)](_0x357d73[_0x103e4c(0xdf)]['id'])?{..._0x357d73,'attrs':{..._0x357d73[_0x103e4c(0xdf)],'id':_0x357d73[_0x103e4c(0xdf)]['id']+_0x496d90[_0x103e4c(0x16b)]}}:_0x357d73)}:_0x199d47;}function Qe(){const _0x4d6de5=_0x4e74b9;return Math[_0x4d6de5(0x2bb)]()[_0x4d6de5(0x2e2)](0x24)['substring'](0x2,0x8);}pe[_0x4e74b9(0x332)]=_0x4e74b9(0x264);const et={'tag':_0x4e74b9(0xab),'attrs':{'xmlns':_0x4e74b9(0x2b2),'fill':_0x4e74b9(0x29e),'viewBox':_0x4e74b9(0x1c2),'width':_0x4e74b9(0x125),'height':_0x4e74b9(0x125)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x4e74b9(0x2cd),'d':_0x4e74b9(0x2e9),'strokeLinecap':_0x4e74b9(0x354),'strokeLinejoin':_0x4e74b9(0x354),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4e74b9(0x1cc)},'children':[{'tag':_0x4e74b9(0x1fd),'attrs':{'fill':_0x4e74b9(0x177),'d':_0x4e74b9(0x25c)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x4e74b9(0x2b8)](function(_0x2e9ede,_0x13be5d){const _0x44792d=_0x4e74b9;return A[_0x44792d(0x119)](pe,Object[_0x44792d(0x182)]({},_0x2e9ede,{'id':_0x44792d(0x11e),'ref':_0x13be5d,'icon':et}));});xe[_0x4e74b9(0x332)]=_0x4e74b9(0x132);const tt={'tag':_0x4e74b9(0xab),'attrs':{'xmlns':_0x4e74b9(0x2b2),'fill':_0x4e74b9(0x29e),'viewBox':_0x4e74b9(0x254),'width':'1em','height':_0x4e74b9(0x125)},'children':[{'tag':'g','attrs':{'clipPath':_0x4e74b9(0x18f)},'children':[{'tag':_0x4e74b9(0x1fd),'attrs':{'stroke':_0x4e74b9(0x2cd),'d':_0x4e74b9(0xc0),'strokeLinecap':'round','strokeLinejoin':_0x4e74b9(0x354),'strokeWidth':1.2}}]},{'tag':_0x4e74b9(0x1cd),'attrs':{},'children':[{'tag':_0x4e74b9(0x34d),'attrs':{'id':_0x4e74b9(0xed)},'children':[{'tag':_0x4e74b9(0x1fd),'attrs':{'fill':_0x4e74b9(0x177),'d':_0x4e74b9(0x25c),'transform':_0x4e74b9(0x175)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x4e74b9(0x2b8)](function(_0x189004,_0x1705b1){const _0x3e8771=_0x4e74b9;return A[_0x3e8771(0x119)](pe,Object['assign']({},_0x189004,{'id':_0x3e8771(0x25f),'ref':_0x1705b1,'icon':tt}));});Be[_0x4e74b9(0x332)]='OnLineIcon';function st(_0x120d44){const _0x5c5059=_0x4e74b9;switch(_0x120d44){case u['CollaborationStatus'][_0x5c5059(0x26f)]:return'collabStatus.offline';case u[_0x5c5059(0x1d5)]['CONFLICT']:return'collabStatus.conflict';case u[_0x5c5059(0x1d5)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x5c5059(0x1d5)][_0x5c5059(0x1bd)]:return _0x5c5059(0xc2);case u[_0x5c5059(0x1d5)][_0x5c5059(0x1b7)]:case u[_0x5c5059(0x1d5)]['AWAITING_WITH_PENDING']:return _0x5c5059(0x284);case u[_0x5c5059(0x1d5)]['SYNCED']:case u['CollaborationStatus']['PENDING']:return _0x5c5059(0x2c0);}}function it(_0x5b823a){const _0x4b37a1=_0x4e74b9,{status$:_0x153b98}=_0x5b823a,_0x14789d=O[_0x4b37a1(0x180)](_0x153b98,u[_0x4b37a1(0x1d5)][_0x4b37a1(0x1bd)]),_0x501794=O[_0x4b37a1(0x25d)](a[_0x4b37a1(0x2d1)]),_0x18eda5=O[_0x4b37a1(0x25d)](u['CollaborationSessionService']),_0x47b050=_0x14789d!==u[_0x4b37a1(0x1d5)]['OFFLINE'],_0x515d3b=_0x501794['t'](st(_0x14789d)),_0x1c29ea=_0x47b050?M['jsx'](Be,{}):M[_0x4b37a1(0x16e)](xe,{}),_0x3ebf5b=A[_0x4b37a1(0x232)](()=>{const _0x4f152d=_0x4b37a1;_0x47b050||_0x18eda5[_0x4f152d(0xbc)]();},[_0x47b050,_0x18eda5]);function _0x16a110(){const _0x2cd6ff=_0x4b37a1;return M['jsxs'](_0x2cd6ff(0x29b),{'className':_0x2cd6ff(0x304),'onClick':_0x3ebf5b,'children':[M[_0x2cd6ff(0x16e)](_0x2cd6ff(0x29b),{'className':p['clsx'](_0x2cd6ff(0x271),{'univer-text-green-500':_0x47b050,'univer-text-red-500':!_0x47b050}),'children':_0x1c29ea}),M[_0x2cd6ff(0x16e)]('div',{'className':_0x2cd6ff(0x257),'children':_0x515d3b})]});}return _0x47b050?_0x16a110():M['jsx'](p['Tooltip'],{'title':_0x501794['t'](_0x4b37a1(0x266)),'children':_0x16a110()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x46cadb,_0x3e0473,_0x28ada5,_0xe8e9b0)=>{const _0x33d1ca=_0x4e74b9;for(var _0x34ce86=_0xe8e9b0>0x1?void 0x0:_0xe8e9b0?nt(_0x3e0473,_0x28ada5):_0x3e0473,_0x51444b=_0x46cadb[_0x33d1ca(0xd2)]-0x1,_0x3b1828;_0x51444b>=0x0;_0x51444b--)(_0x3b1828=_0x46cadb[_0x51444b])&&(_0x34ce86=_0x3b1828(_0x34ce86)||_0x34ce86);return _0x34ce86;},K=(_0x207ad7,_0x58543f)=>(_0x3fbd8e,_0x46bb59)=>_0x58543f(_0x3fbd8e,_0x46bb59,_0x207ad7);exports[_0x4e74b9(0x2ce)]=class extends a['Disposable']{constructor(_0x39b6df,_0x246070,_0xbd2e97,_0x3d6608){const _0xbafec4=_0x4e74b9;super(),_(this,_0xbafec4(0x12e),new I[(_0xbafec4(0x34b))](u[_0xbafec4(0x1d5)][_0xbafec4(0x1bd)])),(this[_0xbafec4(0x1c9)]=_0x39b6df,this[_0xbafec4(0xfb)]=_0x246070,this[_0xbafec4(0x1d9)]=_0xbd2e97,this['_uiPartsService']=_0x3d6608,this[_0xbafec4(0x1cf)](),this['_initStatusListener']());}[_0x4e74b9(0x155)](){const _0x27d03f=_0x4e74b9;this[_0x27d03f(0x31b)](this['_univerInstanceService'][_0x27d03f(0x221)][_0x27d03f(0x22f)](I[_0x27d03f(0x35b)](()=>{const _0x380621=_0x27d03f,_0x23ecd5=this[_0x380621(0x1c9)][_0x380621(0x171)]();return _0x23ecd5?this[_0x380621(0x1d9)][_0x380621(0xe7)](_0x23ecd5['getUnitId']()):I['of'](null);}),I[_0x27d03f(0x35b)](_0x145f35=>_0x145f35?_0x145f35[_0x27d03f(0xe8)]:I['of'](u[_0x27d03f(0x1d5)][_0x27d03f(0x1bd)])))[_0x27d03f(0xd0)](_0x394d5d=>{const _0x17f99e=_0x27d03f;this[_0x17f99e(0x12e)][_0x17f99e(0x2fa)](_0x394d5d);}));}[_0x4e74b9(0x1cf)](){const _0x130a12=_0x4e74b9;this[_0x130a12(0x31b)](this[_0x130a12(0xd7)][_0x130a12(0x1fa)](O['BuiltInUIPart'][_0x130a12(0x29c)],()=>O[_0x130a12(0xd1)](ot({'status$':this[_0x130a12(0x12e)][_0x130a12(0x1d3)]()}),this[_0x130a12(0xfb)])));}},exports[_0x4e74b9(0x2ce)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x4e74b9(0x2a2)](a[_0x4e74b9(0x26e)])),K(0x2,a[_0x4e74b9(0x2a2)](u[_0x4e74b9(0x356)])),K(0x3,O[_0x4e74b9(0x2bc)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x516b0e){const {status$:_0x4c1fdf}=_0x516b0e;return function(){const _0x4cca35=_0x33a7;return M[_0x4cca35(0x16e)](it,{'status$':_0x4c1fdf});};}const Oe=a[_0x4e74b9(0x2a9)](_0x4e74b9(0x120));var at=Object[_0x4e74b9(0x13e)],ct=(_0x3299d3,_0x4fab97,_0x4825ea,_0x3cee86)=>{const _0x164b5b=_0x4e74b9;for(var _0x5fd275=_0x3cee86>0x1?void 0x0:_0x3cee86?at(_0x4fab97,_0x4825ea):_0x4fab97,_0x397841=_0x3299d3[_0x164b5b(0xd2)]-0x1,_0x1eb701;_0x397841>=0x0;_0x397841--)(_0x1eb701=_0x3299d3[_0x397841])&&(_0x5fd275=_0x1eb701(_0x5fd275)||_0x5fd275);return _0x5fd275;},Y=(_0x5dee72,_0x8f9411)=>(_0x4f1658,_0x1dc679)=>_0x8f9411(_0x4f1658,_0x1dc679,_0x5dee72);exports[_0x4e74b9(0x1a5)]=class extends a[_0x4e74b9(0x15a)]{constructor(_0x25b5a2,_0x57c055,_0x4a654e,_0x59d3ae,_0x51762b){const _0x35799f=_0x4e74b9;super(),this[_0x35799f(0x1e7)]=_0x25b5a2,this['_logService']=_0x57c055,this[_0x35799f(0x2f2)]=_0x4a654e,this[_0x35799f(0x220)]=_0x59d3ae,_0x51762b?_0x51762b==null||_0x51762b[_0x35799f(0x2db)]()[_0x35799f(0xae)](()=>this[_0x35799f(0x360)]()):(this['_logService'][_0x35799f(0x1f3)](_0x35799f(0x1f6),_0x35799f(0x1e9)),this['_init']());}async['_init'](){const _0x2797e8=_0x4e74b9,_0x231693=this[_0x2797e8(0x1e7)][_0x2797e8(0x2e8)]('unit'),_0x1f408d=this[_0x2797e8(0x1e7)]['getParam']('type'),_0x427d39=this['_urlService'][_0x2797e8(0x2e8)](_0x2797e8(0xc9));if(!_0x231693||!_0x1f408d){this[_0x2797e8(0x2de)][_0x2797e8(0x1f3)](_0x2797e8(0x1f6),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4a728a=await this[_0x2797e8(0x220)][_0x2797e8(0x223)](_0x231693,Number(_0x1f408d),_0x427d39);_0x4a728a&&_0x4a728a instanceof a[_0x2797e8(0x36a)]&&this[_0x2797e8(0x1c3)](_0x4a728a);}async[_0x4e74b9(0x1c3)](_0x171d0a){const _0x43408c=_0x4e74b9;await this[_0x43408c(0xbe)](_0x171d0a),_0x171d0a[_0x43408c(0xbf)][_0x43408c(0x22f)](I[_0x43408c(0x138)](this[_0x43408c(0xe2)]))[_0x43408c(0xd0)](_0x66f4b6=>{const _0x5459bf=_0x43408c;_0x66f4b6&&this[_0x5459bf(0x296)](_0x66f4b6);}),this[_0x43408c(0x1e7)][_0x43408c(0x24a)][_0x43408c(0x22f)](I[_0x43408c(0x138)](this[_0x43408c(0xe2)]))[_0x43408c(0xd0)](()=>this[_0x43408c(0xbe)](_0x171d0a));}[_0x4e74b9(0x296)](_0x5dbd1a,_0x562f10=!0x1){const _0x5f3589=_0x4e74b9,_0x2d520c=this['_urlService'][_0x5f3589(0x2e8)]('subunit');_0x5dbd1a[_0x5f3589(0x164)]()!==_0x2d520c&&this[_0x5f3589(0x1e7)][_0x5f3589(0x328)]('subunit',_0x5dbd1a[_0x5f3589(0x164)](),_0x562f10);}async[_0x4e74b9(0xbe)](_0x42ad1d){const _0x5a7982=_0x4e74b9;var _0xa34d40;const _0x50e9aa=this[_0x5a7982(0x1e7)]['getParam']('subunit');if(!_0x50e9aa||!_0x42ad1d[_0x5a7982(0x302)](_0x50e9aa)){const _0x1d4047=_0x42ad1d[_0x5a7982(0x168)]()[0x0],_0x8ef972=_0x42ad1d[_0x5a7982(0x302)](_0x1d4047);if(!_0x8ef972)return;this['_updateURLWithCurrentState'](_0x8ef972,!0x0),await this['_commandService'][_0x5a7982(0x16d)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x42ad1d['getUnitId'](),'subUnitId':_0x1d4047});return;}((_0xa34d40=_0x42ad1d[_0x5a7982(0xd8)]())==null?void 0x0:_0xa34d40['getSheetId']())!==_0x50e9aa&&await this[_0x5a7982(0x2f2)][_0x5a7982(0x16d)](v[_0x5a7982(0x1b9)]['id'],{'unitId':_0x42ad1d[_0x5a7982(0x33b)](),'subUnitId':_0x50e9aa});}},exports[_0x4e74b9(0x1a5)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x4e74b9(0x276)]),Y(0x3,a[_0x4e74b9(0x2a2)](u['DataLoaderService'])),Y(0x4,a[_0x4e74b9(0x213)](qe[_0x4e74b9(0x236)]))],exports[_0x4e74b9(0x1a5)]);function _0x1b55(){const _0x297e2d=['UniverCollaborationClientUIPlugin','USER_IS_ANONYMOUS','enableLocalCache','YUUMI_RATE_OVER_LIMIT','DocCollaborationEntity','startColumn','setItem','setActiveRange','_cursor','url(#on-line-icon_clip0_910_349)','location','body','merge','clearInterval','code','_selfUnitIDs','string','_range','_render','search','PAYMENT_CHANNEL_NOT_SUPPORT','_configService','_initResize','unit','addObject','beginPath','getCurrentRevOfUnit','stageInfo','_cachedData','setInterval','_updateCollabCursors','CollaborationDataLoaderController','APPLY_NON_SEQUENTIAL_REVISION','_send','_unitStatus','ranges','data','disposeUnit','black','_scheduleClearOtherTimer','href','selections','map','saveTaskMap','MUTATION','TRANSFORM_CHANGE_OBSERVABLE_TYPE','MemberService','_handleJoinEvent','TEXT','AWAITING','moveTo','SetWorksheetActivateCommand','getCurrentSelections','endRow','has','NOT_COLLAB','_collabCursorState$','DocSelectionManagerService','_initDependencies','TEXT_RANGE_LAYER_INDEX','0\x200\x2016\x2016','_setupSubUnitSync','_monkeyPatchLogService','rgba(255,\x20255,\x20255,\x200.01)','SNAPSHOT_HAS_BEEN_REMOVED','text','some','_univerInstanceService','getColorFromTheme','result','off-line-icon_clip0_910_343','defs','_localeService','_initStatusComponent','APPLY_DUPLICATED','_registerDependencies','_saveTaskMap','asObservable','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CollaborationStatus','error','find','_startDocCollabCursor','_collaborationController','ONLINE','transformStateCache','UNRECOGNIZED','CONFLICT','getCurrent','REDEMPTION_USER_NOT_ELIGIBLE','YUUMI_CONNECTOR_URL_NOT_FOUND','CollaborationEvent','LICENSE_DISTRO_REJECTED','yellow.400','Disposable','show','arc','_urlService','debounce','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_disabled','includes','_lastResponseTimestamp','collab-rect-range-','InsertColCommandId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_online','_lastPointer','_scene','debug','toDisposable','_transformUndoRedoStack','[CollaborationDataLoaderController]','SHEET_VIEWPORT_KEY','InsertRangeMoveDownCommandId','_cursorShapes','registerComponent','_uploadLog','getConfig','path','ENTITLE_COUPON_USED_UP','REDEMPTION_CODE_INACTIVE','totalFormulasToCalculate','UNDEFINED','stringify','fillRule','green.600','_eventUnsubscribe','getRenderById','_initCommandInterceptor','30Ymzjwe','IMessageService','onTransformChange$','RegularPolygon','[LogService\x20Error]:\x20','handleInsertRangeMoveRight','syncEditingCollabCursor','MoveRangeCommandId','getCellMatrix','limitInfo','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Optional','_startCalculationLimit','_initEntityListener','getTypeOfUnitAdded$','getCollabCursors$','/universer-api/license/formula/limit/status','closePath','row','TOO_MANY_REQUESTS','_clearOtherTimers','enableFrontendLog','children','Subject','_dataLoaderService','focused$','_cursorInfo$','loadUnit','Unknown\x20user','fromEvent','_initWindowErrorListener','_getScale','textRanges','makeDirty','removeEventListener','IBeforeCloseService','_docStateChangeManagerService','pluginName','1SUPJRu','pipe','formula.calculation.waiting','selection','useCallback','WebBrowserSingleActiveUnitService','WebSocketService','_anchor','IRemoteInstanceService','dispose','getMemberID','308497rvyiQs','isTransformMutationFailure','LOGIN_TOKEN_PROCESSING_FAILED','width','LOCAL_CACHE_INTERVAL','NodePositionConvertToCursor','dirtyRanges','Failed','_localCacheService','_docClipboardService','_beforeCloseService','_setFormulaLimitStatus','unhandledrejection','collab-text-anchor-','ColorKit','_onCursorUpdate','isFormulaId','urlChange$','drawWith','getValue','tag','Loading','onMouseMove','_config','lineno','_setupBeforeClosingHandler','entries','0\x200\x2017\x2016','deserializeRangeWithSheet','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','handleDeleteRangeMoveUp','_hovered','createSocket','mask','M0\x200H16V16H0z','useDependency','collabCursorState$','on-line-icon','sessionStatus$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_ensureSubject','ENSURE_SNAPSHOT_EXECUTION','UniverIcon','_transformHistoryAndStateStack','collab-client.tooltip.reconnect','getColor','isEditing','_shapes','1065785vlkHLt','height','getSkeleton','_getFormulaLimitStatus','Injector','OFFLINE','replace','univer-mr-2\x20univer-flex\x20univer-text-xl','SetFormulaCalculationNotificationMutation','NOT_FOUND','INTERNAL_ERROR','_initUnhandledRejectionListener','ICommandService','blue.400','wsSessionTicketUrl','_roomMembers$','_scheduleHeartbeat','_revisionService','red.300','transformIMECache','stack','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','top','deepClone','collaboration.single-unit.warning','VIEW_MAIN','collabStatus.syncing','INVITE_CODE_REQUIRED','ENTITLE_DUP_SUBSCRIPTION','addEventListener','FormulaExecuteStageType','_themeService','source','handleInsertRangeMoveDown','USERS_LEAVE','LOCAL_CACHE_INTERVAL_KEY','RefRangeService','resize','DocIMEInputManagerService','RemoteUniscriptService','CommandType','generateRandomId','isTransformMutationsWithChangesetSuccess','handleInsertRow','_updateURLWithCurrentState','YUUMI_ALL_TABLES_IS_INVALID','571490JWdllr','startFormulaLimitUrl','fill','div','HEADER_MENU','newValue','none','_releaseCalculationLimit','onPointerLeave$','_localStorageService','Inject','_registerRenderDependencies','CURRENT_STATUS_CANNOT_OPERATE','NodePositionConvertToRectRange','YUUMI_ASYNCIO_CANCELLED','EMAIL_VERIFY_CODE_MISMATCH','sheetID','createIdentifier','unshift','getStateCache','_applyCommand','_docSyncEditingCollabCursorService','_pollingInterval','bottom','send','getformulaLimitStatusUrl','http://www.w3.org/2000/svg','onStarting','START_CALCULATION','trim','FormulaExecutedStateType','_scheduleSaving','forwardRef','handleIRemoveCol','UnitStatus','random','IUIPartsService','_getAnchorBounding','requireSession','WECHAT_HAS_BEEN_BOUND','collabStatus.synced','_toggleOffline','max','INVALID_ARGUMENT','PY_RUNTIME_SCRIPT_ERROR','_hover','_entityInit$','_docTransformStateCacheService','getLocalCacheKey','formula.calculation.started','CanceledError','isActive','history','currentColor','DesktopCollaborationStatusDisplayController','DeleteRangeMoveUpCommandId','mutations','LocaleService','color','/run/','_instanceService','INVALID_INVITE_CODE','ILocalStorageService','_context','getItem','formula.calculation.unable','FromArray','whenReady','EffectRefRangId','updateOfflineData','_logService','setConfig','ISocketService','MOBILE_HAS_BEEN_BOUND','toString','2924523tiznVz','_handleHeartbeatEvent','touchDependencies','m2Prime','RemoveColCommandId','getParam','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','_id','docStateChange$','DEFAULT_WS_SESSION_TICKET_URL','REDEMPTION_CODE_HAS_BEEN_CREATED','permission.content','with','cursorInfo','storage','_commandService','serializeRangeWithSheet','purple.300','imageSourceType','YUUMI_SUBSCRIPTION_NOT_FOUND','from','save','lineTo','next','_hasFormulaInDirtyRanges','1382260IIfXkd','getUndoRedoMutationParamsCache','Plugin','message','socket$','423AjQAtX','getSheetBySheetId','CHANGESET_REVISION_CONFILICT','univer-flex\x20univer-items-center','_memberService','registerRenderModule','_drawTextRange','init','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_handleLeaveEvent','post','fillText','_color','UNAUTHENTICATED','COLORS','fillStyle','_hideTimer','_colorIndex','subscribeEvent','onPointerMove$','colorChannel1','addObjects','_name','ENTITLE_COUPON_EXPIRED','current','cursorInfo$','disposeWithMe','transformSelections','complete','IUniverInstanceService','measureText','IRenderManagerService','getMember','mergeOverrideWithDependencies','addHandlerCallback','MessageType','_getMergeRange','assignAColorForMemberID','ACTIVE_UNIT_EVENT_CHANNEL','setParam','RECT','EMAIL_HAS_BEEN_BOUND','_getSaveTimeout','ALREADY_EXISTS','delete','_assignedColors','getDocRanges','YUUMI_URL_COL_OUT_OF_RANGE','_currentUsage','displayName','UniverInstanceType','ThemeService','join','SNAPSHOT_INVALID_SNAPSHOT','size','_refRangeService','_syncEditingCollabCursorService','exhaustSavingTask','getUnitId','colno','_showGuardMessage','get','range','SetFormulaCalculationStartMutation','setStateCache','combineLatest','values','contains','restore','ENTITLE_CHAT_LIMIT_EXCEED','bind','getRelativeToViewportCoord','_draw','DATA_SOURCE_TOO_LARGE','BehaviorSubject','toRgbString','clipPath','_createSocketURL','collaboration.closeRoom','CollaborationUIEventId','getSheetObject','Warning','url(#$1','round','transformByState','CollaborationController','REDEMPTION_CODE_NOT_STARTED','shift','use','transformRemoteChangeset','switchMap','clearTimeout','COMPLETION_FINISHED','_refreshCollabCursors','_heartbeatTimer','_init','_doCreateSocket','throttleTime','_initCommandExecutedListener','CollaborationUIEventService','set','MOBILE_VERIFY_CODE_MISMATCH','REDEMPTION_CODE_FULLY_REDEEMED','isArray','roomMembers','Workbook','_handleHover','endColumn','CollaborationSocketService','push','hovered','IURLService','Error','_removeClearOtherTimer','_handleEvent','createInstance','setTimeout','SessionStatus','LICENSE_MAX_UNITS_EXCEEDED','replaceState','ENTITLE_NEED_BILLING_ADDRESS','svg','editingUnit','sessionTicket','then','_backgroundColor','saveImage','NO_OTHER_CLIENTS_EDITING','DOC_RANGE_TYPE','_drawAnchor','parse','_getSheetObject','defIds','APPLY_REVISION_CONFILICT','xlink:href','getCellPositionByOffset','getAncestorScale','_initEvent','reconnect','_maxFormulaLimit','_updateSubUnitFromURLParams','activeSheet$','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','UPDATE_CURSOR','collabStatus.notCollab','SetTextSelectionsOperation','catch','name','CollaborationSessionService','addClipboardHook','USER_NOT_FOUND','subunit','BrowserCollaborationSocketService','_unitOnClients','hide','forEach','releaseFormulaLimitUrl','_anchorDot','subscribe','connectInjector','length','INVITE_CODE_ALREADY_BOUND','searchParams','type','setUndoRedoMutationParamsCache','_uiPartsService','getActiveSheet','DocSkeletonManagerService','getTypeOfUnitDisposed$','_messageService','sheetId','ENTITLE_INVALID_COUPON_CODE','PERMISSION_DENIED','attrs','DependentOn','getCoordByCell','dispose$','SUCCESS','saveOfflineData','_renderManagerService','getUnitStatus$','getCollabEntity$','status$','_colorAssignService','unsubscribe','getCurrentUnitForType','IImageIoService','on-line-icon_clip0_910_349','HTTPService','event$','...','REDEMPTION_INVALID_CODE','ILogService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','add','AUTHORIZE_CODE_ILLEGAL','jiqing.500','maxFormulaLimit','_collabCursorController','20SKLCfY','now','_injector','_document','handleIRemoveRow','startsWith','eventID','Shape','params','onPointerEnter$','APPLY_REJECT','Vector2','ENTITLE_REPORT_LIMIT_EXCEED','fromEventSubject','USER_NOT_INVITED_CODE','OTHER_CLIENT_EDITING','subUnitId','findNodePositionByCharIndex','registerBeforeClose','WebURLService','LICENSE_EXPORT_SIZE_EXCEEDED','_session','_onRefRangeChange','getMergeData','parseInt','session.collaboration-timeout','_docSkeletonManagerService','setAlpha','session.connection-failed','_memberID','RemoveRowCommandId','UNIVER_DOC','createElement','/universer-api/license/formula/limit/done','runId','5660jnUAoB','LICENSE_IMPORT_SIZE_EXCEEDED','off-line-icon','mapTo','uni.network.url-service','invokeId','memberID','defineProperty','381320gkuvXu','1em','unitId','_httpService','evenodd','split','_checkCalculationAvailable','roomMembers$','CONNECTOR_DATA_TOO_LARGE','IConfigService','_status$','getRangePointData','_textBubble','filter','OffLineIcon','_updateLocalCursor','m1Prime','_checkAndWaitForCalculationPermission','min','INVITE_CODE_HAS_BEEN_UES','takeUntil','getViewport','ERROR_AGAIN','SOCKET_FAILED_RETRY','YUUMI_UNABLE_LOAD_URL','handleDeleteRangeMoveLeft','getOwnPropertyDescriptor','_toggleOnline','runOnServer','_labelPosition','YUUMI_AI_RUN_FAILED','all','Tools','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_transformPreviousActiveRange','_entities','_cursors','_collaborationUIEventService','handleInsertCol','UNIVER_SHEET','redoState','collaboration.offline-data-not-saved','ITransformService','YUUMI_NO_CUBOID_FOR_QUESTION','doc.mutation.rich-text-editing','_docTransformSelectionsService','labelPosition','ENTITLE_USE_COUPON_NOT_1ST_TRADE','setShapeProps','_initStatusListener','Rect','InsertRangeMoveRightCommandId','onCommandExecuted','_removeCollabCursors','RxDisposable','currentTheme$','_onCursorDelete','transformMutation','_collabSessionService','_taskIds','_notificationService','useRef','OTHER_CLIENTS_EDITING','key','getSheetId','DeleteRangeMoveLeftCommandId','session.will-retry','engine','getUnhiddenWorksheets','_transformService','currentUsage','idSuffix','_docTransformIMECacheService','executeCommand','jsx','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_initUserListener','getFocusedUnit','reason','unitID','startRow','translate(.97)','registerRefRange','white','pushState','IDocClipboardService','registerDependencies','LOGIN_FAILED','RevisionService','JOIN_ROOM_FAILED','currentSkeleton$','transformMutationsWithChangeset','useObservable','INotificationService','assign','_sheetSkeletonManagerService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','/universer-api/frontend/logs'];_0x1b55=function(){return _0x297e2d;};return _0x1b55();}var lt=Object['getOwnPropertyDescriptor'],_t=(_0x501836,_0x54a70f,_0x49479b,_0x161e1b)=>{const _0x519396=_0x4e74b9;for(var _0x5f16fa=_0x161e1b>0x1?void 0x0:_0x161e1b?lt(_0x54a70f,_0x49479b):_0x54a70f,_0xa75432=_0x501836[_0x519396(0xd2)]-0x1,_0x5a039b;_0xa75432>=0x0;_0xa75432--)(_0x5a039b=_0x501836[_0xa75432])&&(_0x5f16fa=_0x5a039b(_0x5f16fa)||_0x5f16fa);return _0x5f16fa;},De=(_0x489a8d,_0x422b5f)=>(_0x2bdfa3,_0x1b273f)=>_0x422b5f(_0x2bdfa3,_0x1b273f,_0x489a8d);let me=class extends a[_0x4e74b9(0x15a)]{constructor(_0x34794a,_0x2ab13f){const _0xccd7c=_0x4e74b9;super(),this[_0xccd7c(0x242)]=_0x34794a,this['_imageIoService']=_0x2ab13f,this[_0xccd7c(0x360)]();}[_0x4e74b9(0x360)](){const _0x2b19b1=_0x4e74b9,_0x74a87e=this;this['disposeWithMe'](this[_0x2b19b1(0x242)][_0x2b19b1(0xc7)]({'onBeforePasteImage':async _0x308ca3=>{const _0x1c1d6b=_0x2b19b1,_0x235c4b=await _0x74a87e['_imageIoService'][_0x1c1d6b(0xb0)](_0x308ca3);return _0x235c4b?{'source':_0x235c4b[_0x1c1d6b(0x28a)],'imageSourceType':_0x235c4b[_0x1c1d6b(0x2f5)]}:null;}}));}};me=_t([De(0x0,T[_0x4e74b9(0x179)]),De(0x1,ze[_0x4e74b9(0xec)])],me);const Ne=[_0x4e74b9(0x2f4),_0x4e74b9(0xf6),_0x4e74b9(0x204),_0x4e74b9(0x27c),_0x4e74b9(0x277),_0x4e74b9(0x1e3)];class Re extends a['Disposable']{constructor(){const _0x2b16fc=_0x4e74b9;super(...arguments),_(this,_0x2b16fc(0x32e),new Map()),_(this,_0x2b16fc(0x312),0x0);}[_0x4e74b9(0x326)](_0x1772f1){const _0x4713d0=_0x4e74b9;if(this[_0x4713d0(0x32e)][_0x4713d0(0x1bc)](_0x1772f1))return this['_assignedColors'][_0x4713d0(0x33e)](_0x1772f1);const _0x2ba6b0=Ne[this[_0x4713d0(0x312)]];return this[_0x4713d0(0x312)]=(this[_0x4713d0(0x312)]+0x1)%Ne[_0x4713d0(0xd2)],this[_0x4713d0(0x32e)][_0x4713d0(0x365)](_0x1772f1,_0x2ba6b0),_0x2ba6b0;}}function Fe(_0x560550){let _0xe4a2dc='';for(const _0x169117 of _0x560550){const {startOffset:_0x22522f,endOffset:_0x2520a5,isActive:_0x2e35b4,rangeType:_0x2db92d,segmentId:_0xb1c9cc,segmentPage:_0x6635f7}=_0x169117;_0xe4a2dc['length']&&(_0xe4a2dc+=','),_0xe4a2dc+=_0x22522f+':'+_0x2520a5+':'+(_0x2e35b4?'1':'0')+':'+_0x2db92d+':'+_0xb1c9cc+':'+_0x6635f7;}return _0xe4a2dc;}function ht(_0xcea5fc){const _0x959cb7=_0x4e74b9,_0xa639b=_0xcea5fc['split'](','),_0x2c8c4e=[];for(const _0x4a3d5d of _0xa639b){const [_0x16f4e8,_0xc9923e,_0x1fed0d,_0x3e47f3,_0x17154d,_0x11ba47]=_0x4a3d5d[_0x959cb7(0x129)](':');_0x2c8c4e['push']({'startOffset':Number(_0x16f4e8),'endOffset':Number(_0xc9923e),'collapsed':_0x16f4e8===_0xc9923e,'isActive':_0x1fed0d==='1','rangeType':_0x3e47f3===a[_0x959cb7(0xb2)]['TEXT']?a[_0x959cb7(0xb2)][_0x959cb7(0x1b6)]:a[_0x959cb7(0xb2)][_0x959cb7(0x329)],'segmentId':typeof _0x17154d==_0x959cb7(0x196)?String(_0x17154d):'','segmentPage':Number(_0x11ba47!=null?_0x11ba47:-0x1)});}return _0x2c8c4e[_0x959cb7(0x1c8)](_0x55f71e=>_0x55f71e[_0x959cb7(0x2cb)])||(_0x2c8c4e[0x0][_0x959cb7(0x2cb)]=!0x0),_0x2c8c4e;}class be extends a[_0x4e74b9(0x15a)]{constructor(){const _0x1ad143=_0x4e74b9;super(...arguments),_(this,_0x1ad143(0x1be),new I[(_0x1ad143(0x34b))](null)),_(this,_0x1ad143(0x25e),this[_0x1ad143(0x1be)][_0x1ad143(0x1d3)]());}[_0x4e74b9(0x20e)](_0x489288){const _0x2b5520=_0x4e74b9,{unitID:_0x217af8,memberID:_0x4f69d0,textRanges:_0x375476}=_0x489288,_0x1aa182=Fe(_0x375476);if(_0x1aa182==='')return;const _0xfc975f={'unitID':_0x217af8,'memberID':_0x4f69d0,'selection':_0x1aa182};this[_0x2b5520(0x1be)][_0x2b5520(0x2fa)](_0xfc975f);}}var ut=Object[_0x4e74b9(0x13e)],It=(_0x3ce33c,_0x4ee4c9,_0x5e9efd,_0x8ba037)=>{const _0x38d840=_0x4e74b9;for(var _0x454cce=_0x8ba037>0x1?void 0x0:_0x8ba037?ut(_0x4ee4c9,_0x5e9efd):_0x4ee4c9,_0x329e74=_0x3ce33c[_0x38d840(0xd2)]-0x1,_0x3459c5;_0x329e74>=0x0;_0x329e74--)(_0x3459c5=_0x3ce33c[_0x329e74])&&(_0x454cce=_0x3459c5(_0x454cce)||_0x454cce);return _0x454cce;},U=(_0xcd1aec,_0x189f2f)=>(_0xe5614c,_0xdeb4ca)=>_0x189f2f(_0xe5614c,_0xdeb4ca,_0xcd1aec);const St=0x12c,dt=0x64;let ve=class extends a[_0x4e74b9(0x15a)]{constructor(_0x552539,_0x8d58fc,_0x5b933d,_0x323fa9,_0x112930,_0x4d1f92,_0x514710,_0x359165,_0x7f1249){const _0x55fd5d=_0x4e74b9;super(),_(this,'_online',!0x1),_(this,_0x55fd5d(0x360),!0x1),_(this,_0x55fd5d(0x222),new I[(_0x55fd5d(0x34b))](new Map())),_(this,'cursorInfo$',this[_0x55fd5d(0x222)][_0x55fd5d(0x1d3)]()),_(this,'_roomMembers$',new I[(_0x55fd5d(0x34b))]([])),_(this,_0x55fd5d(0x12b),this[_0x55fd5d(0x279)][_0x55fd5d(0x22f)](I['debounceTime'](St))),_(this,_0x55fd5d(0x133),a['debounce'](_0x2c1540=>{const _0x57d238=_0x55fd5d,_0x25922b={'eventID':g[_0x57d238(0x1e1)][_0x57d238(0xc1)],'data':{'unitID':this[_0x57d238(0x173)],'memberID':this['_session'][_0x57d238(0x238)](),'selection':Fe(_0x2c1540)}};this[_0x57d238(0x10e)][_0x57d238(0x2b0)](_0x25922b,this[_0x57d238(0x173)]);},dt)),(this[_0x55fd5d(0x173)]=_0x552539,this['_session']=_0x8d58fc,this[_0x55fd5d(0xfb)]=_0x5b933d,this[_0x55fd5d(0xe9)]=_0x323fa9,this[_0x55fd5d(0x305)]=_0x112930,this[_0x55fd5d(0x339)]=_0x4d1f92,this[_0x55fd5d(0x169)]=_0x514710,this[_0x55fd5d(0x1c9)]=_0x359165,this[_0x55fd5d(0x2f2)]=_0x7f1249);}get[_0x4e74b9(0x2f0)](){const _0x1a08d0=_0x4e74b9;return this[_0x1a08d0(0x222)][_0x1a08d0(0x24c)]();}get[_0x4e74b9(0x369)](){const _0x2d4167=_0x4e74b9;return this[_0x2d4167(0x279)][_0x2d4167(0x24c)]();}[_0x4e74b9(0x237)](){const _0x4ff5a4=_0x4e74b9;super[_0x4ff5a4(0x237)](),this[_0x4ff5a4(0x222)][_0x4ff5a4(0x2fa)](new Map()),this[_0x4ff5a4(0x222)]['complete'](),this[_0x4ff5a4(0x279)][_0x4ff5a4(0x2fa)]([]),this['_roomMembers$'][_0x4ff5a4(0x31d)]();}['init'](){const _0x4b16a4=_0x4e74b9;this['_init']||(this[_0x4b16a4(0x360)]=!0x0,this[_0x4b16a4(0x10e)][_0x4b16a4(0x260)][_0x4b16a4(0x22f)](I[_0x4b16a4(0x138)](this[_0x4b16a4(0xe2)]))[_0x4b16a4(0xd0)](_0x3b8d18=>{const _0x1312bc=_0x4b16a4;_0x3b8d18===u[_0x1312bc(0xa7)][_0x1312bc(0x1da)]?this['_toggleOnline']():this[_0x1312bc(0x2c1)]();}),this[_0x4b16a4(0x10e)][_0x4b16a4(0xef)][_0x4b16a4(0x22f)](I[_0x4b16a4(0x138)](this[_0x4b16a4(0xe2)]))[_0x4b16a4(0xd0)](_0x3b3692=>{const _0x1f0a19=_0x4b16a4,_0x515c7b=_0x3b3692[_0x1f0a19(0xff)];_0x515c7b===g[_0x1f0a19(0x1e1)][_0x1f0a19(0xc1)]&&this[_0x1f0a19(0x248)](_0x3b3692),_0x515c7b===g[_0x1f0a19(0x1e1)][_0x1f0a19(0x28c)]&&this[_0x1f0a19(0x15c)](_0x3b3692);}),this['disposeWithMe'](this[_0x4b16a4(0x2f2)][_0x4b16a4(0x158)](_0x406ed3=>{const _0x4cf5b5=_0x4b16a4,_0xd8296=_0x406ed3['params'];_0xd8296!=null&&this[_0x4cf5b5(0x1f0)]&&_0x406ed3['id']===V[_0x4cf5b5(0xc3)]['id']&&_0xd8296['unitId']===this[_0x4cf5b5(0x173)]&&_0xd8296[_0x4cf5b5(0x268)]===!0x1&&_0xd8296['ranges'][_0x4cf5b5(0xd2)]>0x0&&this['_updateLocalCursor'](_0xd8296[_0x4cf5b5(0x1a9)]);})),this[_0x4b16a4(0x339)][_0x4b16a4(0x25e)][_0x4b16a4(0x22f)](I[_0x4b16a4(0x138)](this[_0x4b16a4(0xe2)]))[_0x4b16a4(0xd0)](_0x5cc72f=>{const _0x57fb49=_0x4b16a4;if((_0x5cc72f==null?void 0x0:_0x5cc72f[_0x57fb49(0x173)])!==this[_0x57fb49(0x173)])return;const _0x38e5d3={'eventID':g[_0x57fb49(0x1e1)][_0x57fb49(0xc1)],'data':_0x5cc72f};this[_0x57fb49(0x248)](_0x38e5d3);}),this['disposeWithMe'](this[_0x4b16a4(0x2f2)][_0x4b16a4(0x158)](_0x25b433=>{const _0x31d013=_0x4b16a4;if(_0x25b433[_0x31d013(0x101)]==null)return;const _0x4adead=_0x25b433['params'];if(_0x25b433['id']!==V['RichTextEditingMutation']['id']||_0x4adead[_0x31d013(0x126)]!==this[_0x31d013(0x173)])return;const _0x19fe79={'id':_0x31d013(0x150),'params':_0x4adead},_0x26bc28=this['cursorInfo'];for(const [_0x3be884,_0x293047]of _0x26bc28){const _0x4b12c7={'id':_0x31d013(0x150),'params':{'unitId':this[_0x31d013(0x173)],'actions':null,'textRanges':_0x293047[_0x31d013(0x1a9)]}},_0x9e50d9=this[_0x31d013(0x169)][_0x31d013(0x15d)](_0x19fe79,_0x4b12c7,!0x1);if(g[_0x31d013(0x23a)](_0x9e50d9))throw _0x9e50d9['error'];_0x26bc28[_0x31d013(0x365)](_0x3be884,{..._0x293047,'ranges':_0x9e50d9[_0x31d013(0x2e6)][_0x31d013(0x101)]['textRanges']});}queueMicrotask(()=>{const _0x47fcbf=_0x31d013;this[_0x47fcbf(0x222)][_0x47fcbf(0x2fa)](_0x26bc28);});})));}[_0x4e74b9(0x248)](_0x10e5a1){const _0xf78c73=_0x4e74b9;var _0x4c0000,_0x12cb60;const {memberID:_0x398240,selection:_0x374abe}=_0x10e5a1[_0xf78c73(0x1aa)],_0x163a50=ht(_0x374abe),_0x48314b=(_0x12cb60=(_0x4c0000=this[_0xf78c73(0x305)]['getMember'](this[_0xf78c73(0x173)],_0x398240))==null?void 0x0:_0x4c0000[_0xf78c73(0xc5)])!=null?_0x12cb60:_0xf78c73(0x224),_0x5c981c={'color':this[_0xf78c73(0xe9)][_0xf78c73(0x326)](_0x398240),'name':_0x48314b,'ranges':_0x163a50},_0xd43acc=this[_0xf78c73(0x2f0)];_0xd43acc[_0xf78c73(0x365)](_0x398240,_0x5c981c),this[_0xf78c73(0x222)]['next'](_0xd43acc);}[_0x4e74b9(0x15c)](_0x43af11){const _0x28f33d=_0x4e74b9,{memberID:_0x268004}=_0x43af11[_0x28f33d(0x1aa)],_0x594d35=this[_0x28f33d(0x2f0)];_0x594d35['delete'](_0x268004),this[_0x28f33d(0x222)][_0x28f33d(0x2fa)](_0x594d35);}['_toggleOnline'](){const _0xa23acb=_0x4e74b9;var _0x386939;if(this['_online']=!0x0,((_0x386939=this[_0xa23acb(0x1c9)][_0xa23acb(0x171)]())==null?void 0x0:_0x386939[_0xa23acb(0x33b)]())!==this['unitID'])return;const _0x53e19b=this['_injector'][_0xa23acb(0x33e)](V[_0xa23acb(0x1bf)])[_0xa23acb(0x32f)]();Array['isArray'](_0x53e19b)&&_0x53e19b[_0xa23acb(0xd2)]>0x0&&this[_0xa23acb(0x133)](_0x53e19b);}[_0x4e74b9(0x2c1)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x4e74b9(0x2a2)](a[_0x4e74b9(0x26e)])),U(0x3,a[_0x4e74b9(0x2a2)](Re)),U(0x4,a[_0x4e74b9(0x2a2)](u[_0x4e74b9(0x1b4)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x4e74b9(0x14e)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x4e74b9(0x276)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x2400b2,_0x26df56,_0x1d35a9,_0x4bf67d)=>{const _0x343a62=_0x4e74b9;for(var _0x5133a7=_0x4bf67d>0x1?void 0x0:_0x4bf67d?ft(_0x26df56,_0x1d35a9):_0x26df56,_0x600f3d=_0x2400b2[_0x343a62(0xd2)]-0x1,_0x224361;_0x600f3d>=0x0;_0x600f3d--)(_0x224361=_0x2400b2[_0x600f3d])&&(_0x5133a7=_0x224361(_0x5133a7)||_0x5133a7);return _0x5133a7;},w=(_0x32d396,_0x4d09cc)=>(_0x1e4e08,_0x17ae50)=>_0x4d09cc(_0x1e4e08,_0x17ae50,_0x32d396);const vt=0x12c,gt=0x64,Et=()=>{let _0x1c14e9=[],_0x150fbc=!0x1;return _0x1f7a09=>{const _0x3a97b1=_0x33a7;_0x1c14e9[_0x3a97b1(0x9f)](_0x1f7a09),_0x150fbc||(_0x150fbc=!0x0,setTimeout(()=>{const _0x4e7085=_0x3a97b1;_0x1c14e9[_0x4e7085(0xcd)](_0x2938ee=>_0x2938ee()),_0x1c14e9=[],_0x150fbc=!0x1;}));};};let ge=class extends a[_0x4e74b9(0x15a)]{constructor(_0x3381c0,_0xa3849a,_0xba34a2,_0x109cdf,_0x39174a,_0x2677ed,_0x33bca0,_0x245c65){const _0x46edb1=_0x4e74b9;super(),_(this,_0x46edb1(0x1f0),!0x1),_(this,'_init',!0x1),_(this,_0x46edb1(0x222),new I['BehaviorSubject'](new Map())),_(this,_0x46edb1(0x31a),this['_cursorInfo$'][_0x46edb1(0x1d3)]()),_(this,'_roomMembers$',new I[(_0x46edb1(0x34b))]([])),_(this,_0x46edb1(0x12b),this[_0x46edb1(0x279)][_0x46edb1(0x22f)](I['debounceTime'](vt))),_(this,_0x46edb1(0x133),a[_0x46edb1(0x1e8)]((_0x5974c7,_0x4c8d36)=>{const _0x30e674=_0x46edb1,_0x149795={'eventID':g[_0x30e674(0x1e1)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x30e674(0x10e)][_0x30e674(0x238)](),'selection':B[_0x30e674(0x2f3)](_0x5974c7,_0x4c8d36[_0x30e674(0x33f)])}};this[_0x30e674(0x10e)][_0x30e674(0x2b0)](_0x149795,this[_0x30e674(0x173)]);},gt)),(this['unitID']=_0x3381c0,this[_0x46edb1(0x10e)]=_0xa3849a,this['_injector']=_0xba34a2,this[_0x46edb1(0xe9)]=_0x109cdf,this[_0x46edb1(0x305)]=_0x39174a,this[_0x46edb1(0x1c9)]=_0x2677ed,this[_0x46edb1(0x2f2)]=_0x33bca0,this[_0x46edb1(0x338)]=_0x245c65);}get[_0x4e74b9(0x2f0)](){const _0x32d4e7=_0x4e74b9;return this[_0x32d4e7(0x222)][_0x32d4e7(0x24c)]();}get[_0x4e74b9(0x369)](){const _0x1e679f=_0x4e74b9;return this[_0x1e679f(0x279)][_0x1e679f(0x24c)]();}[_0x4e74b9(0x237)](){const _0x42f0b0=_0x4e74b9;super[_0x42f0b0(0x237)](),this['_cursorInfo$']['next'](new Map()),this[_0x42f0b0(0x222)]['complete'](),this[_0x42f0b0(0x279)][_0x42f0b0(0x2fa)]([]),this[_0x42f0b0(0x279)][_0x42f0b0(0x31d)]();}[_0x4e74b9(0x308)](){const _0x1b797c=_0x4e74b9;this[_0x1b797c(0x360)]||(this[_0x1b797c(0x360)]=!0x0,this['_session'][_0x1b797c(0x260)][_0x1b797c(0x22f)](I[_0x1b797c(0x138)](this[_0x1b797c(0xe2)]))['subscribe'](_0x5c26b4=>{const _0x29f353=_0x1b797c;_0x5c26b4===u['SessionStatus'][_0x29f353(0x1da)]?this[_0x29f353(0x13f)]():this[_0x29f353(0x2c1)]();}),this[_0x1b797c(0x10e)][_0x1b797c(0xef)][_0x1b797c(0x22f)](I[_0x1b797c(0x138)](this[_0x1b797c(0xe2)]))['subscribe'](_0x244ee7=>{const _0x32257b=_0x1b797c,_0x214be2=_0x244ee7[_0x32257b(0xff)];_0x214be2===g[_0x32257b(0x1e1)][_0x32257b(0xc1)]&&this[_0x32257b(0x248)](_0x244ee7),_0x214be2===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x32257b(0x15c)](_0x244ee7);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x1b797c(0x2f2)][_0x1b797c(0x158)](_0x58ebe4=>{const _0x39af67=_0x1b797c;if(this['_online']&&_0x58ebe4['id']===v['SetSelectionsOperation']['id']&&_0x58ebe4['params'][_0x39af67(0x126)]===this['unitID']){const _0x2ae1e8=_0x58ebe4[_0x39af67(0x101)];this[_0x39af67(0x133)](_0x2ae1e8[_0x39af67(0x109)],_0x2ae1e8[_0x39af67(0x1af)][0x0]);}})));}['_onCursorUpdate'](_0x4076bf){const _0x461254=_0x4e74b9;var _0x54f75c,_0x36c4df;const {memberID:_0x1d3b41,selection:_0x3ef42e}=_0x4076bf[_0x461254(0x1aa)],{sheetName:_0x30c4e8,range:_0x3012cc}=B[_0x461254(0x255)](_0x3ef42e),_0x4fd2f5={'name':(_0x36c4df=(_0x54f75c=this[_0x461254(0x305)][_0x461254(0x321)](this[_0x461254(0x173)],_0x1d3b41))==null?void 0x0:_0x54f75c[_0x461254(0xc5)])!=null?_0x36c4df:'Unknown\x20user','range':this[_0x461254(0x325)](_0x30c4e8,_0x3012cc),'sheetID':_0x30c4e8,'color':this[_0x461254(0xe9)]['assignAColorForMemberID'](_0x1d3b41),'selection':_0x3ef42e},_0xd6d502=this['cursorInfo'];_0xd6d502[_0x461254(0x365)](_0x1d3b41,_0x4fd2f5),this['_cursorInfo$']['next'](_0xd6d502);}['_onCursorDelete'](_0x257774){const _0x20fd07=_0x4e74b9,{memberID:_0x251582}=_0x257774[_0x20fd07(0x1aa)],_0x4dcb6f=this[_0x20fd07(0x2f0)];_0x4dcb6f[_0x20fd07(0x32d)](_0x251582),this[_0x20fd07(0x222)][_0x20fd07(0x2fa)](_0x4dcb6f);}[_0x4e74b9(0x325)](_0x14649d,_0x520d99){const _0x162856=_0x4e74b9;var _0x3b3190,_0xa0c457;const _0x4cddd7=(_0xa0c457=(_0x3b3190=this[_0x162856(0x1c9)]['getUniverSheetInstance'](this[_0x162856(0x173)]))==null?void 0x0:_0x3b3190['getSheetBySheetId'](_0x14649d))==null?void 0x0:_0xa0c457[_0x162856(0x110)]();return(_0x4cddd7==null?void 0x0:_0x4cddd7[_0x162856(0x1d7)](_0x39ed8f=>a['Rectangle'][_0x162856(0x344)](_0x39ed8f,_0x520d99)))||_0x520d99;}[_0x4e74b9(0x10f)](){const _0x4c8ddf=_0x4e74b9,_0x4dfa8f=new a['DisposableCollection'](),_0x4db91c=Et(),_0x287a05=()=>{const _0x12d668=_0x33a7;_0x4dfa8f[_0x12d668(0x237)]();const _0x383bf0=(_0x450952,_0xff4d5e,_0x4f56a1,_0x319a0f)=>{const _0xd5eebd=_0x12d668;let _0x500a87=[];switch(_0x450952['id']){case v[_0xd5eebd(0x2dc)][_0xd5eebd(0x165)]:{_0x500a87=v[_0xd5eebd(0x13d)](_0x450952,_0x319a0f);break;}case v[_0xd5eebd(0x2dc)][_0xd5eebd(0x2cf)]:{_0x500a87=v[_0xd5eebd(0x258)](_0x450952,_0x319a0f);break;}case v['EffectRefRangId'][_0xd5eebd(0x1ee)]:{_0x500a87=v[_0xd5eebd(0x14a)](_0x450952,_0x319a0f);break;}case v[_0xd5eebd(0x2dc)][_0xd5eebd(0x1f8)]:{_0x500a87=v[_0xd5eebd(0x28b)](_0x450952,_0x319a0f);break;}case v[_0xd5eebd(0x2dc)][_0xd5eebd(0x157)]:{_0x500a87=v[_0xd5eebd(0x20d)](_0x450952,_0x319a0f);break;}case v[_0xd5eebd(0x2dc)]['InsertRowCommandId']:{_0x500a87=v[_0xd5eebd(0x295)](_0x450952,_0x319a0f);break;}case v[_0xd5eebd(0x2dc)][_0xd5eebd(0x20f)]:{_0x500a87=v['handleMoveRange'](_0x450952,_0x319a0f);break;}case v['EffectRefRangId'][_0xd5eebd(0x2e7)]:{_0x500a87=v[_0xd5eebd(0x2b9)](_0x450952,_0x319a0f);break;}case v['EffectRefRangId'][_0xd5eebd(0x117)]:{_0x500a87=v[_0xd5eebd(0xfd)](_0x450952,_0x319a0f);break;}}const _0x298998=v['runRefRangeMutations'](_0x500a87,_0x319a0f),_0x25f78f=this[_0xd5eebd(0x2f0)]['get'](_0xff4d5e);if(_0x25f78f&&_0x298998){const _0x34ddf={..._0x25f78f,'range':_0x298998};this[_0xd5eebd(0x2f0)]['set'](_0xff4d5e,_0x34ddf),_0x4db91c(()=>{const _0x1ed873=_0xd5eebd,_0x517bdb=this['_refRangeService'][_0x1ed873(0x176)](_0x298998,_0x430151=>(_0x517bdb[_0x1ed873(0x237)](),_0x383bf0(_0x430151,_0xff4d5e,_0x4f56a1,_0x298998)));_0x4dfa8f[_0x1ed873(0xf4)](_0x517bdb);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x273452,_0x3caca7)=>{const _0x447225=_0x12d668,{range:_0x5ba14a,sheetID:_0x31240e}=_0x273452,_0x47b1d7=this['_refRangeService'][_0x447225(0x176)](_0x5ba14a,_0x4105fb=>(_0x47b1d7[_0x447225(0x237)](),_0x383bf0(_0x4105fb,_0x3caca7,_0x31240e,_0x5ba14a)));_0x4dfa8f['add'](_0x47b1d7);});};this[_0x4c8ddf(0x31b)](a[_0x4c8ddf(0x1f4)](this[_0x4c8ddf(0x222)]['subscribe'](()=>{_0x287a05();})));}['_toggleOnline'](){const _0x170362=_0x4e74b9;var _0x4cd909,_0x158508;if(this['_online']=!0x0,((_0x4cd909=this[_0x170362(0x1c9)][_0x170362(0x171)]())==null?void 0x0:_0x4cd909[_0x170362(0x33b)]())!==this['unitID'])return;const _0x2a5d7b=(_0x158508=this[_0x170362(0xfb)][_0x170362(0x33e)](v['SheetsSelectionsService'])[_0x170362(0x1ba)]())==null?void 0x0:_0x158508[0x0],_0x37edaf=this[_0x170362(0x1c9)][_0x170362(0xeb)](a[_0x170362(0x333)][_0x170362(0x14b)])['getActiveSheet']();_0x2a5d7b&&_0x37edaf&&this[_0x170362(0x133)](_0x37edaf['getSheetId'](),_0x2a5d7b);}[_0x4e74b9(0x2c1)](){const _0x25b10d=_0x4e74b9;this[_0x25b10d(0x1f0)]=!0x1;}};ge=mt([w(0x2,a[_0x4e74b9(0x2a2)](a['Injector'])),w(0x3,a['Inject'](Re)),w(0x4,a['Inject'](u[_0x4e74b9(0x1b4)])),w(0x5,a[_0x4e74b9(0x31e)]),w(0x6,a[_0x4e74b9(0x276)]),w(0x7,a[_0x4e74b9(0x2a2)](v[_0x4e74b9(0x28e)]))],ge);var Ct=Object[_0x4e74b9(0x13e)],Tt=(_0x260b63,_0x5b7c1b,_0x42cd6b,_0x1d29e5)=>{const _0x572470=_0x4e74b9;for(var _0x13804b=_0x1d29e5>0x1?void 0x0:_0x1d29e5?Ct(_0x5b7c1b,_0x42cd6b):_0x5b7c1b,_0x3c63f9=_0x260b63[_0x572470(0xd2)]-0x1,_0x5255c4;_0x3c63f9>=0x0;_0x3c63f9--)(_0x5255c4=_0x260b63[_0x3c63f9])&&(_0x13804b=_0x5255c4(_0x13804b)||_0x13804b);return _0x13804b;},ce=(_0xe1e29,_0x2a2136)=>(_0xd8acec,_0x3bc220)=>_0x2a2136(_0xd8acec,_0x3bc220,_0xe1e29);let F=class extends a[_0x4e74b9(0x15a)]{constructor(_0x34855e,_0x111fa7,_0x6bcb2b){const _0x2b254f=_0x4e74b9;super(),_(this,_0x2b254f(0x147),new Map()),_(this,_0x2b254f(0x2c6),new I[(_0x2b254f(0x21f))]()),(this[_0x2b254f(0x1c9)]=_0x34855e,this[_0x2b254f(0xfb)]=_0x111fa7,this[_0x2b254f(0x15e)]=_0x6bcb2b,this[_0x2b254f(0x360)]());}[_0x4e74b9(0x237)](){const _0x486e61=_0x4e74b9;super[_0x486e61(0x237)](),this[_0x486e61(0x2c6)][_0x486e61(0x31d)](),this[_0x486e61(0x147)]['forEach'](_0x1489cc=>_0x1489cc['dispose']());}[_0x4e74b9(0x217)](_0x241ed9){const _0x20feeb=_0x4e74b9;return this[_0x20feeb(0x147)][_0x20feeb(0x1bc)](_0x241ed9)?this[_0x20feeb(0x147)]['get'](_0x241ed9)[_0x20feeb(0x31a)]:this['_entityInit$']['pipe'](I[_0x20feeb(0x131)](_0x3e5315=>_0x3e5315[_0x20feeb(0x173)]===_0x241ed9),I[_0x20feeb(0x35b)](_0x355fe0=>_0x355fe0[_0x20feeb(0x31a)]));}['_init'](){const _0x35c3ce=_0x4e74b9;this[_0x35c3ce(0x1c9)]['getTypeOfUnitAdded$'](a[_0x35c3ce(0x333)][_0x35c3ce(0x14b)])[_0x35c3ce(0x22f)](I['takeUntil'](this[_0x35c3ce(0xe2)]))[_0x35c3ce(0xd0)](async _0x2811b6=>{const _0x5bbefb=_0x35c3ce,_0x2c8810=_0x2811b6[_0x5bbefb(0x33b)](),_0x1e69ef=await this['_startSheetCollabCursor'](_0x2c8810);this[_0x5bbefb(0x2c6)][_0x5bbefb(0x2fa)](_0x1e69ef),this['_entities'][_0x5bbefb(0x365)](_0x2c8810,_0x1e69ef);}),this[_0x35c3ce(0x1c9)][_0x35c3ce(0x216)](a[_0x35c3ce(0x333)][_0x35c3ce(0x118)])[_0x35c3ce(0x22f)](I[_0x35c3ce(0x138)](this['dispose$']))['pipe'](I[_0x35c3ce(0x131)](_0x4f72a7=>!_0x4f72a7['getUnitId']()[_0x35c3ce(0xfe)]('__')))[_0x35c3ce(0xd0)](async _0x175a10=>{const _0x44520e=_0x35c3ce,_0x1d5366=_0x175a10[_0x44520e(0x33b)](),_0x511be4=await this[_0x44520e(0x1d8)](_0x1d5366);this[_0x44520e(0x2c6)]['next'](_0x511be4),this[_0x44520e(0x147)][_0x44520e(0x365)](_0x1d5366,_0x511be4);}),I[_0x35c3ce(0x192)](this[_0x35c3ce(0x1c9)][_0x35c3ce(0xda)](a['UniverInstanceType'][_0x35c3ce(0x118)]),this[_0x35c3ce(0x1c9)][_0x35c3ce(0xda)](a[_0x35c3ce(0x333)][_0x35c3ce(0x14b)]))['pipe'](I['takeUntil'](this[_0x35c3ce(0xe2)]))[_0x35c3ce(0xd0)](_0x29ce5a=>{const _0x2e2f64=_0x35c3ce,_0x3db8e7=_0x29ce5a[_0x2e2f64(0x33b)](),_0x56a80e=this[_0x2e2f64(0x147)][_0x2e2f64(0x33e)](_0x3db8e7);_0x56a80e&&(_0x56a80e['dispose'](),this[_0x2e2f64(0x147)][_0x2e2f64(0x32d)](_0x3db8e7));});}async['_startSheetCollabCursor'](_0x20c7ff){const _0x47ac95=_0x4e74b9,_0xc6838e=await this[_0x47ac95(0x15e)][_0x47ac95(0x2be)](_0x20c7ff),_0x3bb5df=this['_injector']['createInstance'](ge,_0x20c7ff,_0xc6838e);return _0x3bb5df[_0x47ac95(0x308)](),_0x3bb5df;}async[_0x4e74b9(0x1d8)](_0x254e2a){const _0x47e39f=_0x4e74b9,_0x343faf=await this[_0x47e39f(0x15e)][_0x47e39f(0x2be)](_0x254e2a),_0x167cea=this[_0x47e39f(0xfb)][_0x47e39f(0xa5)](ve,_0x254e2a,_0x343faf);return _0x167cea[_0x47e39f(0x308)](),_0x167cea;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a['Inject'](a[_0x4e74b9(0x26e)])),ce(0x2,a[_0x4e74b9(0x2a2)](u[_0x4e74b9(0xc6)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x8f8f65,_0x4f7b0d){const _0x4a6889=_0x4e74b9;let {radius:_0x54cdd8,width:_0x28f8b2,height:_0x1312dd}=_0x4f7b0d;_0x54cdd8=_0x54cdd8!=null?_0x54cdd8:0x0,_0x28f8b2=_0x28f8b2!=null?_0x28f8b2:0x1e,_0x1312dd=_0x1312dd!=null?_0x1312dd:0x1e;let _0x61aa24=0x0,_0x2eb715=0x0,_0xcaf561=0x0;_0x61aa24=_0x2eb715=_0xcaf561=Math[_0x4a6889(0x136)](_0x54cdd8,_0x28f8b2/0x2,_0x1312dd/0x2),_0x8f8f65[_0x4a6889(0x19f)](),_0x8f8f65[_0x4a6889(0x1b8)](_0x61aa24,0x0),_0x8f8f65[_0x4a6889(0x2f9)](_0x28f8b2-_0x2eb715,0x0),_0x8f8f65[_0x4a6889(0x1e6)](_0x28f8b2-_0x2eb715,_0x2eb715,_0x2eb715,Math['PI']*0x3/0x2,0x0,!0x1),_0x8f8f65['lineTo'](_0x28f8b2,_0x1312dd-_0xcaf561),_0x8f8f65[_0x4a6889(0x1e6)](_0x28f8b2-_0xcaf561,_0x1312dd-_0xcaf561,_0xcaf561,0x0,Math['PI']/0x2,!0x1),_0x8f8f65[_0x4a6889(0x2f9)](0x0,_0x1312dd),_0x8f8f65[_0x4a6889(0x2f9)](0x0,_0x61aa24),_0x8f8f65[_0x4a6889(0x1e6)](_0x61aa24,_0x61aa24,_0x61aa24,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x8f8f65[_0x4a6889(0x219)](),_0x4f7b0d['fill']&&(_0x8f8f65[_0x4a6889(0x2f8)](),_0x8f8f65[_0x4a6889(0x310)]=_0x4f7b0d[_0x4a6889(0x29a)],_0x4f7b0d[_0x4a6889(0x203)]===_0x4a6889(0x128)?_0x8f8f65[_0x4a6889(0x29a)](_0x4a6889(0x128)):_0x8f8f65[_0x4a6889(0x29a)](),_0x8f8f65[_0x4a6889(0x345)]());}class re extends C[_0x4e74b9(0x100)]{constructor(_0x1e2b3f,_0x581995){const _0x4b6936=_0x4e74b9;super(_0x1e2b3f,_0x581995),_(this,_0x4b6936(0x2d2)),_(this,'text'),(this[_0x4b6936(0x2d2)]=_0x581995==null?void 0x0:_0x581995[_0x4b6936(0x2d2)],this[_0x4b6936(0x1c7)]=_0x581995==null?void 0x0:_0x581995[_0x4b6936(0x1c7)]);}static[_0x4e74b9(0x24b)](_0x5eb249,_0x4ed6ca){const _0x45b19d=_0x4e74b9,{text:_0x2decde,color:_0xab70a4}=_0x4ed6ca;_0x5eb249[_0x45b19d(0x2f8)](),_0x5eb249['font']=_0x45b19d(0x16f);const _0x42a178=_0x5eb249[_0x45b19d(0x31f)](_0x2decde)[_0x45b19d(0x23c)],_0x3af290=Math['min'](_0x42a178+0x2*le,Ue);Ot(_0x5eb249,{'height':X,'radius':0x4,'width':_0x3af290,'fill':_0xab70a4}),_0x5eb249[_0x45b19d(0x310)]='#FFF';const _0xe1f2e4=le,_0x3c6ca6=X-pt,_0x2c16ee=Ue-0x2*le;if(_0x42a178>_0x2c16ee){let _0xc56694='',_0x161e8c=0x0;for(const _0x268aae of _0x2decde){const _0x506494=_0x5eb249['measureText'](_0x268aae)[_0x45b19d(0x23c)];if(_0x161e8c+_0x506494<=_0x2c16ee-_0x5eb249['measureText'](_0x45b19d(0xf0))[_0x45b19d(0x23c)])_0xc56694+=_0x268aae,_0x161e8c+=_0x506494;else{_0xc56694+=_0x45b19d(0xf0);break;}}_0x5eb249[_0x45b19d(0x30c)](_0xc56694,_0xe1f2e4,_0x3c6ca6);}else _0x5eb249[_0x45b19d(0x30c)](_0x2decde,_0xe1f2e4,_0x3c6ca6);_0x5eb249['restore']();}[_0x4e74b9(0x349)](_0x44d981){const _0x549f18=_0x4e74b9;re[_0x549f18(0x24b)](_0x44d981,this);}}function _0x33a7(_0xb3ef7,_0x3a8da0){_0xb3ef7=_0xb3ef7-0x9f;const _0x1b55c4=_0x1b55();let _0x33a77d=_0x1b55c4[_0xb3ef7];return _0x33a77d;}const _e=_0x4e74b9(0x246),Rt='collab-text-range-',bt=_0x4e74b9(0x1ed),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4e74b9(0x1c5);class Le{constructor(_0x1463b2,_0xddd413,_0x5d7788,_0x2035f8){const _0x56ff3d=_0x4e74b9;_(this,_0x56ff3d(0x269),[]),_(this,_0x56ff3d(0x235),null),_(this,_0x56ff3d(0x130),null),_(this,_0x56ff3d(0xcf),null),_(this,_0x56ff3d(0x311),null),_(this,_0x56ff3d(0x205),null),(this[_0x56ff3d(0x18e)]=_0x1463b2,this[_0x56ff3d(0x1f2)]=_0xddd413,this['_docSkeleton']=_0x5d7788,this[_0x56ff3d(0xfc)]=_0x2035f8,this[_0x56ff3d(0x198)]());}set[_0x4e74b9(0x2c5)](_0x3ff207){const _0x5cab6f=_0x4e74b9;_0x3ff207?(this[_0x5cab6f(0xcf)]&&this[_0x5cab6f(0xcf)][_0x5cab6f(0xcc)](),this[_0x5cab6f(0x130)]&&this[_0x5cab6f(0x130)][_0x5cab6f(0x1e5)]()):(this['_anchorDot']&&this[_0x5cab6f(0xcf)][_0x5cab6f(0x1e5)](),this[_0x5cab6f(0x130)]&&this[_0x5cab6f(0x130)]['hide']());}[_0x4e74b9(0x237)](){const _0x1734c2=_0x4e74b9;for(const _0x35796b of this[_0x1734c2(0x269)])_0x35796b[_0x1734c2(0x237)]();this[_0x1734c2(0x130)]&&this[_0x1734c2(0x130)]['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x1734c2(0x237)](),this[_0x1734c2(0x235)]&&this['_anchor'][_0x1734c2(0x237)](),this[_0x1734c2(0x205)]&&this[_0x1734c2(0x205)]();}[_0x4e74b9(0x198)](){const _0x16b840=_0x4e74b9;var _0x122dad;const {_docSkeleton:_0x24a42e,_document:_0x3c32d9}=this,{color:_0xcd8eb,name:_0x3f34c4,ranges:_0xc28e17}=this['_cursor'],_0x2c2986=_0x3c32d9['getOffsetConfig'](),{docsLeft:_0x5eb99a,docsTop:_0x5dd8d1}=_0x2c2986,_0x4b44d1=new T[(_0x16b840(0x23e))](_0x2c2986,_0x24a42e);for(const {startOffset:_0xae167e,endOffset:_0x34e1bd,rangeType:_0x190046,segmentId:_0x5308bf,segmentPage:_0x4c6081,collapsed:_0x367cc5,isActive:_0x24f133}of _0xc28e17){const _0x7dd047=_0x24a42e[_0x16b840(0x10a)](_0xae167e,!0x0,_0x5308bf,_0x4c6081);let _0x5af3da=_0x24a42e[_0x16b840(0x10a)](_0x34e1bd,!0x0,_0x5308bf,_0x4c6081);if(_0x5af3da==null&&(_0x5af3da=_0x24a42e['findNodePositionByCharIndex'](_0x34e1bd-0x1,!0x1,_0x5308bf,_0x4c6081)),_0x24f133){const {contentBoxPointGroup:_0x22642d}=_0x4b44d1[_0x16b840(0x12f)](_0x5af3da,_0x5af3da);if(_0x22642d[_0x16b840(0xd2)]===0x0)continue;this['_drawAnchor'](_0xcd8eb,_0x22642d,_0x5eb99a,_0x5dd8d1,_0x3f34c4),this['_eventUnsubscribe']=this[_0x16b840(0x36b)]();}if(_0x7dd047&&_0x5af3da){if(_0x190046===a[_0x16b840(0xb2)][_0x16b840(0x329)]){const _0x5362b6=new T[(_0x16b840(0x2a5))](_0x2c2986,_0x24a42e),{pointGroup:_0x1fc299}=(_0x122dad=_0x5362b6[_0x16b840(0x12f)](_0x7dd047,_0x5af3da))!=null?_0x122dad:{};if(_0x1fc299==null||_0x1fc299[_0x16b840(0xd2)]===0x0)continue;this['_drawRectRange'](_0xcd8eb,_0x1fc299,_0x5eb99a,_0x5dd8d1);}else{if(!_0x367cc5){const {borderBoxPointGroup:_0x2f519c}=_0x4b44d1[_0x16b840(0x12f)](_0x7dd047,_0x5af3da);if(_0x2f519c[_0x16b840(0xd2)]===0x0)continue;this[_0x16b840(0x307)](_0xcd8eb,_0x2f519c,_0x5eb99a,_0x5dd8d1);}}}}}[_0x4e74b9(0xb3)](_0x41b2ca,_0x196f06,_0x1f0a14,_0x2ed0f7,_0x23327d){const _0x325ef8=_0x4e74b9,_0x206ed0=this[_0x325ef8(0x2bd)](_0x196f06),{left:_0x3e5ad4,top:_0x50d7e7,height:_0x332720}=_0x206ed0,_0x762fd6=this[_0x325ef8(0x227)](),_0x103eb5=Nt/_0x762fd6,_0x4f6d0d=new C[(_0x325ef8(0x156))](_e+a[_0x325ef8(0x293)](H),{'left':_0x3e5ad4+_0x1f0a14-_0x103eb5,'top':_0x50d7e7+_0x2ed0f7,'height':_0x332720,'width':Dt,'fill':_0x41b2ca||C[_0x325ef8(0x267)](a['COLORS'][_0x325ef8(0x1ac)],0x0),'strokeWidth':_0x103eb5,'stroke':Ut,'evented':!0x0});this[_0x325ef8(0x235)]=_0x4f6d0d,this[_0x325ef8(0x1f2)][_0x325ef8(0x19e)](_0x4f6d0d,T[_0x325ef8(0x1c1)]);const _0x15f3dc=new C[(_0x325ef8(0x156))](_e+a[_0x325ef8(0x293)](H),{'left':_0x3e5ad4+_0x1f0a14-_0x103eb5,'top':_0x50d7e7+_0x2ed0f7-he/0x2,'height':he,'width':he,'fill':_0x41b2ca||C[_0x325ef8(0x267)](a['COLORS'][_0x325ef8(0x1ac)],0x0),'strokeWidth':0x0,'stroke':_0x41b2ca||C[_0x325ef8(0x267)](a[_0x325ef8(0x30f)][_0x325ef8(0x1ac)],0x0),'evented':!0x1});this['_anchorDot']=_0x15f3dc,this[_0x325ef8(0x1f2)][_0x325ef8(0x19e)](_0x15f3dc,T[_0x325ef8(0x1c1)]);const _0x5c89a3=new re(_e+a[_0x325ef8(0x293)](H),{'left':_0x3e5ad4+_0x1f0a14-_0x103eb5,'top':_0x50d7e7+_0x2ed0f7-X,'text':_0x23327d,'color':_0x41b2ca});this[_0x325ef8(0x130)]=_0x5c89a3,this[_0x325ef8(0x1f2)]['addObject'](_0x5c89a3,T[_0x325ef8(0x1c1)]),this[_0x325ef8(0x2c5)]=!0x1;}['_handleHover'](){const _0x36d747=_0x4e74b9,_0x2a53d=this[_0x36d747(0x235)]['onPointerEnter$'][_0x36d747(0x313)](()=>{const _0x2c4b30=_0x36d747;this[_0x2c4b30(0x2c5)]=!0x0;}),_0x3af97f=this['_anchor'][_0x36d747(0x2a0)]['subscribeEvent'](()=>{const _0x232991=_0x36d747;this[_0x232991(0x311)]&&clearTimeout(this[_0x232991(0x311)]),this['_hideTimer']=setTimeout(()=>{const _0x549267=_0x232991;this[_0x549267(0x2c5)]=!0x1;},0x7d0);});return()=>{const _0x30c451=_0x36d747;_0x2a53d[_0x30c451(0xea)](),_0x3af97f[_0x30c451(0xea)]();};}[_0x4e74b9(0x307)](_0x4a0277,_0x22f25a,_0x1b681d,_0x5cf388){const _0x1ecac4=_0x4e74b9,_0x5a7073=new a[(_0x1ecac4(0x247))](_0x4a0277)[_0x1ecac4(0x114)](0.2)[_0x1ecac4(0x34c)](),_0x377970=new C[(_0x1ecac4(0x20b))](Rt+a[_0x1ecac4(0x293)](H),{'pointsGroup':_0x22f25a,'fill':_0x5a7073||C[_0x1ecac4(0x267)](a['COLORS'][_0x1ecac4(0x1ac)],0.2),'left':_0x1b681d,'top':_0x5cf388,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ecac4(0x269)]['push'](_0x377970),this[_0x1ecac4(0x1f2)]['addObject'](_0x377970,T[_0x1ecac4(0x1c1)]);}['_drawRectRange'](_0x3eab7d,_0x26ef2f,_0x24d176,_0x4ea75a){const _0x5aefb4=_0x4e74b9,_0x10beda=new a[(_0x5aefb4(0x247))](_0x3eab7d)[_0x5aefb4(0x114)](0.2)['toRgbString'](),_0x11e6b7=new C[(_0x5aefb4(0x20b))](bt+a['generateRandomId'](H),{'pointsGroup':_0x26ef2f,'fill':_0x10beda||C[_0x5aefb4(0x267)](a['COLORS']['black'],0.2),'left':_0x24d176,'top':_0x4ea75a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5aefb4(0x9f)](_0x11e6b7),this[_0x5aefb4(0x1f2)][_0x5aefb4(0x19e)](_0x11e6b7,T[_0x5aefb4(0x1c1)]);}[_0x4e74b9(0x2bd)](_0x143a53){const _0x1f33bc=_0x143a53[0x0],_0x426605=_0x1f33bc[0x0],_0x2878f9=_0x1f33bc[0x2],{x:_0xa8a6c0,y:_0x15e0f0}=_0x426605,{x:_0xf37f5c,y:_0x114889}=_0x2878f9;return{'left':_0xa8a6c0,'top':_0x15e0f0,'width':_0xf37f5c-_0xa8a6c0,'height':_0x114889-_0x15e0f0};}[_0x4e74b9(0x227)](){const _0x32162c=_0x4e74b9,{scaleX:_0x57af27,scaleY:_0x451c87}=this[_0x32162c(0x1f2)][_0x32162c(0xba)]();return Math[_0x32162c(0x2c2)](_0x57af27,_0x451c87);}}var Lt=Object[_0x4e74b9(0x13e)],Mt=(_0x178869,_0x113a7e,_0x1b0072,_0x41af2a)=>{const _0x4f832f=_0x4e74b9;for(var _0xfe7de3=_0x41af2a>0x1?void 0x0:_0x41af2a?Lt(_0x113a7e,_0x1b0072):_0x113a7e,_0x4e5ea1=_0x178869[_0x4f832f(0xd2)]-0x1,_0x4f869f;_0x4e5ea1>=0x0;_0x4e5ea1--)(_0x4f869f=_0x178869[_0x4e5ea1])&&(_0xfe7de3=_0x4f869f(_0xfe7de3)||_0xfe7de3);return _0xfe7de3;},q=(_0xa2d8cb,_0x55193f)=>(_0x12dfdd,_0x5c076d)=>_0x55193f(_0x12dfdd,_0x5c076d,_0xa2d8cb);let Ee=class extends a[_0x4e74b9(0x15a)]{constructor(_0x2fb8bd,_0x13b40e,_0x188ca7,_0xe98d8d,_0x14f674){const _0x57f5e9=_0x4e74b9;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x57f5e9(0x2d7)]=_0x2fb8bd,this[_0x57f5e9(0x113)]=_0x13b40e,this[_0x57f5e9(0xf8)]=_0x188ca7,this[_0x57f5e9(0x2f2)]=_0xe98d8d,this['_themeService']=_0x14f674,this[_0x57f5e9(0x360)]());}[_0x4e74b9(0x360)](){const _0x27eefc=_0x4e74b9,_0x4583ae=this[_0x27eefc(0x2d7)]['unitId'],_0x56ba53=this['_docSkeletonManagerService'];this[_0x27eefc(0x31b)](I[_0x27eefc(0x342)]([this['_collabCursorController'][_0x27eefc(0x217)](_0x4583ae),this[_0x27eefc(0x289)][_0x27eefc(0x15b)]])[_0x27eefc(0x22f)]($[_0x27eefc(0x1b0)](([_0x35fbf4,_0x213c7e])=>({'skeleton':_0x56ba53[_0x27eefc(0x26c)](),'cursors':[..._0x35fbf4[_0x27eefc(0x343)]()]['flatMap'](_0x5d8ee3=>({..._0x5d8ee3,'color':this[_0x27eefc(0x289)][_0x27eefc(0x1ca)](_0x5d8ee3[_0x27eefc(0x2d2)])}))})))['subscribe'](_0x20d84b=>{const _0x496df9=_0x27eefc;if(this['_removeCollabCursors'](),_0x20d84b){const {skeleton:_0x18cc33,cursors:_0xa2b473}=_0x20d84b;this[_0x496df9(0x1a4)](_0x18cc33,_0xa2b473);}})),this['_initResize'](),this[_0x27eefc(0x363)]();}['_updateCollabCursors'](_0x361d2a,_0x1b80ca){const _0x11b945=_0x4e74b9,{scene:_0x5a08dc,mainComponent:_0x431d99}=this[_0x11b945(0x2d7)],_0x57cb1c=_0x1b80ca['map'](_0x3d7d1a=>new Le(_0x3d7d1a,_0x5a08dc,_0x361d2a,_0x431d99));this[_0x11b945(0x1f9)]=_0x57cb1c,this[_0x11b945(0x148)]=_0x1b80ca;}['_refreshCollabCursors'](){const _0x20e36c=_0x4e74b9;this['_removeCollabCursors']();const {scene:_0x44f8a0,mainComponent:_0x3c3344}=this[_0x20e36c(0x2d7)],_0x108ddd=this['_docSkeletonManagerService'][_0x20e36c(0x26c)](),_0x3270fc=this[_0x20e36c(0x148)][_0x20e36c(0x1b0)](_0x4897c0=>new Le(_0x4897c0,_0x44f8a0,_0x108ddd,_0x3c3344));this[_0x20e36c(0x1f9)]=_0x3270fc;}[_0x4e74b9(0x159)](){this['_cursorShapes']['forEach'](_0xae311a=>_0xae311a['dispose']()),this['_cursorShapes']=[];}[_0x4e74b9(0x363)](){const _0x539edd=_0x4e74b9,_0x1f7370=[T['SetDocZoomRatioOperation']['id']];this[_0x539edd(0x31b)](this[_0x539edd(0x2f2)][_0x539edd(0x158)](_0x5a0f87=>{const _0x4a0035=_0x539edd;_0x1f7370[_0x4a0035(0x1eb)](_0x5a0f87['id'])&&_0x5a0f87[_0x4a0035(0x101)]['unitId']===this[_0x4a0035(0x2d7)][_0x4a0035(0x126)]&&this[_0x4a0035(0x35e)]();}));}[_0x4e74b9(0x19c)](){const _0x4e067c=_0x4e74b9;this[_0x4e067c(0x31b)](a[_0x4e067c(0x106)](this[_0x4e067c(0x2d7)][_0x4e067c(0x167)][_0x4e067c(0x20a)])[_0x4e067c(0x22f)]($[_0x4e067c(0x131)](_0x4bbda1=>_0x4bbda1[_0x4e067c(0xd5)]===C[_0x4e067c(0x1b3)][_0x4e067c(0x28f)]),$[_0x4e067c(0x362)](0x10))[_0x4e067c(0xd0)](()=>{const _0x4d5574=_0x4e067c;this[_0x4d5574(0x35e)]();}));}};Ee=Mt([q(0x1,a[_0x4e74b9(0x2a2)](V[_0x4e74b9(0xd9)])),q(0x2,a[_0x4e74b9(0x2a2)](F)),q(0x3,a[_0x4e74b9(0x276)]),q(0x4,a[_0x4e74b9(0x2a2)](a[_0x4e74b9(0x334)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4e74b9(0x100)]{constructor(_0x4275f6,_0x4d0312){const _0x32a50e=_0x4e74b9;super(_0x4275f6,_0x4d0312),_(this,_0x32a50e(0x30d)),_(this,'_hovered',!0x1),_(this,_0x32a50e(0x197)),_(this,_0x32a50e(0x317),''),_(this,'_labelPosition',_0x32a50e(0x280)),_(this,_0x32a50e(0xaf)),(_0x4d0312&&this['setShapeProps'](_0x4d0312),this[_0x32a50e(0x102)][_0x32a50e(0x313)](()=>this[_0x32a50e(0x154)]({'hovered':!0x0})),this[_0x32a50e(0x2a0)][_0x32a50e(0x313)](()=>this[_0x32a50e(0x154)]({'hovered':!0x1})));}[_0x4e74b9(0x154)](_0x23363e){const _0x3ba869=_0x4e74b9;var _0x4747c2,_0x38e381,_0x1a630c,_0x5cdb09,_0x27b3c7,_0xcff58d;this[_0x3ba869(0x30d)]=(_0x4747c2=_0x23363e[_0x3ba869(0x2d2)])!=null?_0x4747c2:this[_0x3ba869(0x30d)],this[_0x3ba869(0x259)]=(_0x38e381=_0x23363e[_0x3ba869(0xa0)])!=null?_0x38e381:this['_hovered'],this[_0x3ba869(0x197)]=(_0x1a630c=_0x23363e['range'])!=null?_0x1a630c:this[_0x3ba869(0x197)],this[_0x3ba869(0x317)]=(_0x5cdb09=_0x23363e[_0x3ba869(0xc5)])!=null?_0x5cdb09:this[_0x3ba869(0x317)],this[_0x3ba869(0x141)]=(_0x27b3c7=_0x23363e[_0x3ba869(0x152)])!=null?_0x27b3c7:this[_0x3ba869(0x141)],this[_0x3ba869(0xaf)]=(_0xcff58d=_0x23363e['backgroundColor'])!=null?_0xcff58d:this[_0x3ba869(0xaf)],this[_0x3ba869(0x355)]({'width':_0x23363e['width'],'height':_0x23363e[_0x3ba869(0x26b)]});}[_0x4e74b9(0x24f)](_0x174539){const _0x26e109=_0x4e74b9,{row:_0x5a5618,column:_0x2bd41d}=_0x174539;if(_0x5a5618>=this[_0x26e109(0x197)]['startRow']&&_0x5a5618<=this[_0x26e109(0x197)][_0x26e109(0x1bb)]&&_0x2bd41d>=this[_0x26e109(0x197)][_0x26e109(0x18b)]&&_0x2bd41d<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x26e109(0x154)]({'hovered':!0x1});}['triggerDblclick'](_0x28bc64){return!0x1;}[_0x4e74b9(0x349)](_0x2baa34){const _0x5ba39c=_0x4e74b9;C[_0x5ba39c(0x156)][_0x5ba39c(0x24b)](_0x2baa34,{'width':this[_0x5ba39c(0x23c)],'height':this[_0x5ba39c(0x26b)],'strokeWidth':Pt,'stroke':this[_0x5ba39c(0x30d)],'evented':!0x1,'fill':this[_0x5ba39c(0xaf)]}),this[_0x5ba39c(0x259)]&&(_0x2baa34['save'](),_0x2baa34['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x5ba39c(0x2af)?0x0:-X),re['drawWith'](_0x2baa34,{'text':this['_name'],'color':this['_color']}),_0x2baa34['restore']());}}var wt=Object[_0x4e74b9(0x13e)],yt=(_0x13fa22,_0x36f8e8,_0x9277ec,_0x4e840f)=>{const _0x336d25=_0x4e74b9;for(var _0xa833d1=_0x4e840f>0x1?void 0x0:_0x4e840f?wt(_0x36f8e8,_0x9277ec):_0x36f8e8,_0x585951=_0x13fa22[_0x336d25(0xd2)]-0x1,_0x5548c9;_0x585951>=0x0;_0x585951--)(_0x5548c9=_0x13fa22[_0x585951])&&(_0xa833d1=_0x5548c9(_0xa833d1)||_0xa833d1);return _0xa833d1;},ue=(_0x278660,_0x46a5bd)=>(_0x263b1d,_0x522a1e)=>_0x46a5bd(_0x263b1d,_0x522a1e,_0x278660);const $t=0x1389;let Ce=class extends a[_0x4e74b9(0x15a)]{constructor(_0x418ded,_0x1e4044,_0x5a8053,_0x586197){const _0x462cad=_0x4e74b9;super(),_(this,_0x462cad(0x148),new Set()),_(this,'_lastPointer',null),(this[_0x462cad(0x2d7)]=_0x418ded,this[_0x462cad(0x183)]=_0x1e4044,this['_collabCursorController']=_0x5a8053,this[_0x462cad(0x289)]=_0x586197,this[_0x462cad(0x360)]());}['_init'](){const _0x45e258=_0x4e74b9;this[_0x45e258(0x183)][_0x45e258(0x17e)]['pipe']($[_0x45e258(0x138)](this[_0x45e258(0xe2)]),$['switchMap'](_0x30f677=>{const _0x37b054=_0x45e258;if(_0x30f677){const _0x1d60c5=_0x30f677[_0x37b054(0xdc)];return I[_0x37b054(0x342)](this['_collabCursorController'][_0x37b054(0x217)](this[_0x37b054(0x2d7)][_0x37b054(0x126)]),this[_0x37b054(0x289)][_0x37b054(0x15b)])[_0x37b054(0x22f)]($[_0x37b054(0x1b0)](([_0x251130,_0x361bc0])=>{const _0x2d155a=_0x37b054,_0x2c6ff4=new Map();return _0x251130[_0x2d155a(0xcd)]((_0x5027c5,_0x4cd66c)=>{const _0x34aa4c=_0x2d155a;if(_0x5027c5[_0x34aa4c(0x2a8)]===_0x1d60c5){const _0x1fd0e2={..._0x5027c5};_0x1fd0e2[_0x34aa4c(0x2d2)]=this[_0x34aa4c(0x289)][_0x34aa4c(0x1ca)](_0x5027c5[_0x34aa4c(0x2d2)]),_0x2c6ff4[_0x34aa4c(0x365)](_0x4cd66c,_0x1fd0e2);}}),{'skeleton':_0x30f677,'cursors':_0x2c6ff4};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x45e258(0xd0)](({skeleton:_0x3e3f04,cursors:_0x113378})=>{const _0x1bf508=_0x45e258;this[_0x1bf508(0x159)](),_0x3e3f04&&this[_0x1bf508(0x1a4)](_0x3e3f04,_0x113378);}),this[_0x45e258(0x183)][_0x45e258(0x17e)]['subscribe'](_0x1a5de3=>{const _0x1ec399=_0x45e258;if(_0x1a5de3==null)return;const {skeleton:_0x30970a}=_0x1a5de3,{scene:_0x4df7de}=this[_0x1ec399(0x2d7)];_0x4df7de[_0x1ec399(0x314)][_0x1ec399(0x313)](a['debounce'](_0x1e3984=>{const _0x1d2093=_0x1ec399;var _0x1be60f,_0x396873;const {offsetX:_0x5c20a4,offsetY:_0x505a14}=_0x1e3984,{x:_0x430f77,y:_0x5a529f}=_0x4df7de[_0x1d2093(0x348)](C[_0x1d2093(0x104)]['FromArray']([_0x5c20a4,_0x505a14])),{scaleX:_0x18d786,scaleY:_0x5f3678}=_0x4df7de['getAncestorScale'](),_0x23a9c1=_0x4df7de[_0x1d2093(0x139)](C[_0x1d2093(0x1f7)][_0x1d2093(0x283)]),_0x829c49=_0x4df7de['getVpScrollXYInfoByPosToVp'](C[_0x1d2093(0x104)][_0x1d2093(0x2da)]([_0x430f77,_0x5a529f]),_0x23a9c1),_0x38f7d3=_0x30970a[_0x1d2093(0xb9)](_0x5c20a4,_0x505a14,_0x18d786,_0x5f3678,_0x829c49);((_0x1be60f=this[_0x1d2093(0x1f1)])==null?void 0x0:_0x1be60f['column'])===_0x38f7d3['column']&&((_0x396873=this[_0x1d2093(0x1f1)])==null?void 0x0:_0x396873['row'])===_0x38f7d3[_0x1d2093(0x21a)]||this[_0x1d2093(0x148)][_0x1d2093(0xcd)](_0x5e9c05=>{_0x5e9c05['onMouseMove'](_0x38f7d3);});},0x64));});}['_updateCollabCursors'](_0x394580,_0x297196){const _0x5cc01a=_0x4e74b9;var _0x1f97ea;const _0x34a8e7=(_0x1f97ea=this['_sheetSkeletonManagerService'][_0x5cc01a(0x1de)]())==null?void 0x0:_0x1f97ea['skeleton'];if(!_0x34a8e7)return;const _0x2c6d48=this[_0x5cc01a(0xb5)]();if(!_0x2c6d48)return;this[_0x5cc01a(0x148)][_0x5cc01a(0xcd)](_0x17e75a=>{const _0x2f5173=_0x5cc01a;_0x17e75a[_0x2f5173(0x229)]();});const {scene:_0x26ba2d}=_0x2c6d48,_0x41fec0=xt(Array['from'](_0x297196[_0x5cc01a(0x343)]()))[_0x5cc01a(0x1b0)](_0x1638d8=>{const _0x4a6719=_0x5cc01a,{color:_0x1e9882,range:_0x3afaa0,name:_0x58b97d,selection:_0x3dc51c,sheetID:_0xa86eb3}=_0x1638d8,{startColumn:_0xc42d7c,startRow:_0x1ea0ad,endColumn:_0x261bd7,endRow:_0x16a815}=_0x3afaa0,_0x35c2bd=J[_0x4a6719(0xe1)](_0x1ea0ad,_0xc42d7c,_0x26ba2d,_0x34a8e7),_0x104f34=J[_0x4a6719(0xe1)](_0x16a815,_0x261bd7,_0x26ba2d,_0x34a8e7),{columnHeaderHeightAndMarginTop:_0x386a86}=_0x34a8e7,{startX:_0x24d0dd,startY:_0x5d52b3}=_0x35c2bd,{endX:_0x3fd96d,endY:_0x4ccb94}=_0x104f34,_0x136673=_0x3fd96d-_0x24d0dd,_0x32961b=_0x4ccb94-_0x5d52b3,_0x10246c={'labelPosition':_0x5d52b3-_0x386a86>=X?_0x4a6719(0x280):_0x4a6719(0x2af),'sheetID':_0xa86eb3,'range':_0x3afaa0,'color':_0x1e9882,'name':_0x58b97d,'selection':_0x3dc51c,'left':_0x24d0dd,'top':_0x5d52b3,'width':_0x136673,'height':_0x32961b,'evented':!0x1,'zIndex':$t};return new je(_0x58b97d,_0x10246c);});_0x26ba2d[_0x5cc01a(0x316)](_0x41fec0,At),this['_cursors']=new Set(_0x41fec0);}[_0x4e74b9(0x159)](){const _0x4d923e=_0x4e74b9;var _0x266477;(_0x266477=this['_cursors'])==null||_0x266477[_0x4d923e(0xcd)](_0x5ec3a6=>_0x5ec3a6[_0x4d923e(0x237)]());}['_getSheetObject'](){const _0x2ad040=_0x4e74b9;return J[_0x2ad040(0x351)](this['_context'][_0x2ad040(0x19d)],this[_0x2ad040(0x2d7)]);}};Ce=yt([ue(0x1,a[_0x4e74b9(0x2a2)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x4e74b9(0x2a2)](F)),ue(0x3,a['Inject'](a[_0x4e74b9(0x334)]))],Ce);function xt(_0x353e5e){const _0x1c0e2f=_0x4e74b9,_0x388446=new Map();return _0x353e5e['forEach'](_0x4efed1=>{const _0x4ee075=_0x33a7;if(_0x388446[_0x4ee075(0x1bc)](_0x4efed1[_0x4ee075(0x231)])){const _0xe4ff28=_0x388446['get'](_0x4efed1[_0x4ee075(0x231)]);_0xe4ff28[_0x4ee075(0xc5)]+=',\x20'+_0x4efed1[_0x4ee075(0xc5)];}else _0x388446['set'](_0x4efed1[_0x4ee075(0x231)],_0x4efed1);}),Array[_0x1c0e2f(0x2f7)](_0x388446['values']());}var Bt=Object[_0x4e74b9(0x13e)],Ft=(_0x202747,_0x87c204,_0x1b3dd4,_0x175536)=>{const _0x223e11=_0x4e74b9;for(var _0x2bca09=_0x175536>0x1?void 0x0:_0x175536?Bt(_0x87c204,_0x1b3dd4):_0x87c204,_0x596fe1=_0x202747[_0x223e11(0xd2)]-0x1,_0x516977;_0x596fe1>=0x0;_0x596fe1--)(_0x516977=_0x202747[_0x596fe1])&&(_0x2bca09=_0x516977(_0x2bca09)||_0x2bca09);return _0x2bca09;},y=(_0x2bdf77,_0xdddfbf)=>(_0x9bb17e,_0x378993)=>_0xdddfbf(_0x9bb17e,_0x378993,_0x2bdf77);let Z=class extends a[_0x4e74b9(0x1e4)]{constructor(_0x26c93a,_0x143106,_0x48a4ef,_0x35a3d0,_0xcb05f6,_0x3c7f18){const _0x19aa21=_0x4e74b9;super(),this[_0x19aa21(0x243)]=_0x26c93a,this[_0x19aa21(0x241)]=_0x143106,this['_collaborationUIEventService']=_0x48a4ef,this['_messageService']=_0x35a3d0,this[_0x19aa21(0x160)]=_0xcb05f6,this['_localeService']=_0x3c7f18,this[_0x19aa21(0x252)](),this[_0x19aa21(0xbb)]();}[_0x4e74b9(0x252)](){const _0x34d339=_0x4e74b9;this['disposeWithMe'](this[_0x34d339(0x243)][_0x34d339(0x10b)](()=>{const _0x108e37=_0x34d339;if(this[_0x108e37(0x241)][_0x108e37(0x1b1)][_0x108e37(0x337)])return this[_0x108e37(0x1ce)]['t'](_0x108e37(0x14d));}));}[_0x4e74b9(0xbb)](){const _0x4ae5b7=_0x4e74b9;this[_0x4ae5b7(0x31b)](this[_0x4ae5b7(0x149)][_0x4ae5b7(0xef)]['subscribe'](_0x8644ee=>{const _0x184493=_0x4ae5b7;_0x8644ee['id']===u[_0x184493(0x350)][_0x184493(0x108)]&&this[_0x184493(0xdb)][_0x184493(0x1e5)]({'type':p[_0x184493(0x324)][_0x184493(0x352)],'content':this[_0x184493(0x1ce)]['t'](_0x184493(0x282))}),_0x8644ee['id']===u[_0x184493(0x350)]['CLOSE_ROOM']&&this[_0x184493(0xdb)][_0x184493(0x1e5)]({'type':p[_0x184493(0x324)][_0x184493(0x352)],'content':this[_0x184493(0x1ce)]['t'](_0x184493(0x34f))}),_0x8644ee['id']===u[_0x184493(0x350)]['PERMISSION_DENIED']&&this['_notificationService'][_0x184493(0x1e5)]({'title':this[_0x184493(0x1ce)]['t']('permission.title'),'content':this[_0x184493(0x1ce)]['t'](_0x184493(0x2ee)),'type':_0x184493(0x1d6),'duration':0x0}),_0x8644ee['id']===u[_0x184493(0x350)][_0x184493(0x1dd)]&&this[_0x184493(0xdb)][_0x184493(0x1e5)]({'type':p[_0x184493(0x324)][_0x184493(0xa2)],'content':this[_0x184493(0x1ce)]['t'](_0x184493(0x34f))+'('+_0x8644ee[_0x184493(0x1aa)]+')'}),_0x8644ee['id']===u[_0x184493(0x350)][_0x184493(0x17d)]&&this['_messageService'][_0x184493(0x1e5)]({'type':p[_0x184493(0x324)]['Warning'],'content':this['_localeService']['t'](_0x8644ee[_0x184493(0x1aa)]||'')}),_0x8644ee['id']===u[_0x184493(0x350)][_0x184493(0x13b)]&&this[_0x184493(0xdb)][_0x184493(0x1e5)]({'type':p[_0x184493(0x324)][_0x184493(0x352)],'content':this['_localeService']['t'](_0x184493(0x166))}),_0x8644ee['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x184493(0xdb)][_0x184493(0x1e5)]({'type':p[_0x184493(0x324)][_0x184493(0xa2)],'content':this[_0x184493(0x1ce)]['t'](_0x184493(0x115))}),_0x8644ee['id']===u[_0x184493(0x350)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x184493(0xdb)][_0x184493(0x1e5)]({'type':p['MessageType'][_0x184493(0xa2)],'content':this[_0x184493(0x1ce)]['t'](_0x184493(0x112))});}));}};Z=Ft([y(0x0,O[_0x4e74b9(0x22b)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x4e74b9(0x2a2)](u[_0x4e74b9(0x364)])),y(0x3,O['IMessageService']),y(0x4,O[_0x4e74b9(0x181)]),y(0x5,a[_0x4e74b9(0x2a2)](a[_0x4e74b9(0x2d1)]))],Z);var jt=Object[_0x4e74b9(0x13e)],kt=(_0x5e3a58,_0x35bf01,_0x3278a3,_0x5e56c4)=>{for(var _0x17c0b9=_0x5e56c4>0x1?void 0x0:_0x5e56c4?jt(_0x35bf01,_0x3278a3):_0x35bf01,_0x329274=_0x5e3a58['length']-0x1,_0x997296;_0x329274>=0x0;_0x329274--)(_0x997296=_0x5e3a58[_0x329274])&&(_0x17c0b9=_0x997296(_0x17c0b9)||_0x17c0b9);return _0x17c0b9;},z=(_0x50ff31,_0x258991)=>(_0x4c649a,_0xa2a9ce)=>_0x258991(_0x4c649a,_0xa2a9ce,_0x50ff31);let Q=class extends a[_0x4e74b9(0x1e4)]{constructor(_0x345638,_0xb16451,_0x2d829a,_0x33b619){const _0x332320=_0x4e74b9;super(),_(this,_0x332320(0x116)),(this[_0x332320(0xfb)]=_0x345638,this[_0x332320(0x127)]=_0xb16451,this[_0x332320(0x2de)]=_0x2d829a,this['_collaborationSessionService']=_0x33b619,this[_0x332320(0x360)]());}[_0x4e74b9(0x360)](){const _0x2b3612=_0x4e74b9;this[_0x2b3612(0x226)](),this[_0x2b3612(0x275)](),this[_0x2b3612(0x1c4)](),this[_0x2b3612(0x170)]();}[_0x4e74b9(0x170)](){const _0x2549ba=_0x4e74b9;this[_0x2549ba(0x31b)](this['_collaborationSessionService'][_0x2549ba(0x300)]['subscribe'](_0x1623c5=>{const _0x2eefcb=_0x2549ba;this[_0x2eefcb(0x116)]=_0x1623c5==null?void 0x0:_0x1623c5[_0x2eefcb(0x122)];}));}['_initWindowErrorListener'](){const _0x324c8d=_0x4e74b9,_0x1c34fd=_0x34494e=>{const _0x9c5d42=_0x33a7;var _0x14ad46;this['_uploadLog'](_0x9c5d42(0x1d6),'[Window\x20Error]:\x20'+_0x34494e[_0x9c5d42(0x2ff)]+'\x20at\x20'+_0x34494e['filename']+':'+_0x34494e[_0x9c5d42(0x251)]+':'+_0x34494e[_0x9c5d42(0x33c)]+'\x0a'+(((_0x14ad46=_0x34494e[_0x9c5d42(0x1d6)])==null?void 0x0:_0x14ad46['stack'])||''));};window[_0x324c8d(0x287)](_0x324c8d(0x1d6),_0x1c34fd),this[_0x324c8d(0x31b)](()=>{const _0x3c47db=_0x324c8d;window[_0x3c47db(0x22a)](_0x3c47db(0x1d6),_0x1c34fd);});}[_0x4e74b9(0x275)](){const _0x7b8dcc=_0x4e74b9,_0x248626=_0x1e66ab=>{const _0x36c451=_0x33a7;this['_uploadLog'](_0x36c451(0x1d6),'[Unhandled\x20Rejection]:\x20'+_0x1e66ab[_0x36c451(0x172)]);};window['addEventListener'](_0x7b8dcc(0x245),_0x248626),this['disposeWithMe'](()=>{const _0xc9445f=_0x7b8dcc;window['removeEventListener'](_0xc9445f(0x245),_0x248626);});}[_0x4e74b9(0x1c4)](){const _0x23d55a=_0x4e74b9,_0x358117=this['_logService']['error'][_0x23d55a(0x347)](this[_0x23d55a(0x2de)]);this[_0x23d55a(0x2de)][_0x23d55a(0x1d6)]=(..._0x4bff87)=>{const _0x19159b=_0x23d55a,_0x17e37e=_0x4bff87[_0x19159b(0x1b0)](_0x57dc24=>_0x57dc24 instanceof Error?_0x57dc24[_0x19159b(0x2ff)]+'\x0a'+_0x57dc24[_0x19159b(0x27e)]:String(_0x57dc24))[_0x19159b(0x335)]('\x20');this[_0x19159b(0x1fb)](_0x19159b(0x1d6),_0x19159b(0x20c)+_0x17e37e),_0x358117(..._0x4bff87);},this['disposeWithMe'](()=>{const _0x5bf632=_0x23d55a;this[_0x5bf632(0x2de)][_0x5bf632(0x1d6)]=_0x358117;});}[_0x4e74b9(0x1fb)](_0x5f52b0,_0x3880e0){const _0x3cba7a=_0x4e74b9;try{const _0x1d06c3={'userId':this[_0x3cba7a(0x116)],'logLabel':_0x5f52b0,'content':_0x3880e0};this[_0x3cba7a(0x127)][_0x3cba7a(0x30b)](_0x3cba7a(0x185),{'body':_0x1d06c3})[_0x3cba7a(0xc4)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4e74b9(0x2a2)](a[_0x4e74b9(0x26e)])),z(0x1,a['Inject'](x[_0x4e74b9(0xee)])),z(0x2,a['ILogService']),z(0x3,a[_0x4e74b9(0x2a2)](u['CollaborationSessionService']))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x5a68ed,_0x25c5d6,_0x50080d,_0x46a681)=>{const _0x2828f4=_0x4e74b9;for(var _0x43078c=_0x46a681>0x1?void 0x0:_0x46a681?Ht(_0x25c5d6,_0x50080d):_0x25c5d6,_0x544eb5=_0x5a68ed[_0x2828f4(0xd2)]-0x1,_0x1e4927;_0x544eb5>=0x0;_0x544eb5--)(_0x1e4927=_0x5a68ed[_0x544eb5])&&(_0x43078c=_0x1e4927(_0x43078c)||_0x43078c);return _0x43078c;},Ae=(_0x140c4a,_0x27ec27)=>(_0x3bdb0e,_0x1b46f7)=>_0x27ec27(_0x3bdb0e,_0x1b46f7,_0x140c4a);let ee=class{constructor(_0x46c67a,_0x45e2b0){const _0x523752=_0x4e74b9;this['_transformService']=_0x46c67a,this[_0x523752(0xe5)]=_0x45e2b0;}[_0x4e74b9(0x27d)](_0x5b7c7e){const _0x2c841e=_0x4e74b9;this[_0x2c841e(0x1f5)](_0x5b7c7e),this[_0x2c841e(0x146)](_0x5b7c7e);}[_0x4e74b9(0x35a)](_0x46186a){const _0x133061=_0x4e74b9,{unitID:_0x5945cf}=_0x46186a,_0x57537a=this[_0x133061(0xe5)]['getRenderById'](_0x5945cf)[_0x133061(0x2ef)](T[_0x133061(0x290)]),{redoCache:_0x23a563}=_0x57537a[_0x133061(0x2fd)]();if(_0x23a563[_0x133061(0xd2)]===0x0)return _0x46186a;let _0x41f98c=a['Tools'][_0x133061(0x281)](_0x46186a[_0x133061(0x2d0)][0x0]);for(let _0x50d0f8=0x0;_0x50d0f8<_0x23a563[_0x133061(0xd2)];_0x50d0f8++){const _0x456d38={'id':'doc.mutation.rich-text-editing','params':{..._0x23a563[_0x50d0f8]}},_0x347682=this['_transformService'][_0x133061(0x15d)](_0x41f98c,_0x456d38,!0x1);if(g[_0x133061(0x23a)](_0x347682))throw _0x347682[_0x133061(0x1d6)];_0x41f98c=_0x347682['m1Prime'];}return{...a['Tools'][_0x133061(0x281)](_0x46186a),'mutations':[_0x41f98c]};}[_0x4e74b9(0x1f5)](_0x4b6f59){const _0xe5829b=_0x4e74b9,{unitID:_0x21e7a5}=_0x4b6f59,_0x3001d0=this[_0xe5829b(0xe5)][_0xe5829b(0x206)](_0x21e7a5)[_0xe5829b(0x2ef)](T[_0xe5829b(0x290)]),{undoCache:_0x34ba72,redoCache:_0x18f65c}=_0x3001d0[_0xe5829b(0x2fd)]();if(_0x34ba72[_0xe5829b(0xd2)]===0x0||_0x18f65c[_0xe5829b(0xd2)]===0x0)return;const _0x292d25=[],_0x456e49=[];let _0x295319=a[_0xe5829b(0x144)][_0xe5829b(0x281)](_0x4b6f59[_0xe5829b(0x2d0)][0x0]),_0x2280bf=a[_0xe5829b(0x144)][_0xe5829b(0x281)](_0x4b6f59[_0xe5829b(0x2d0)][0x0]);for(let _0x2e79d6=_0x34ba72['length']-0x1;_0x2e79d6>=0x0;_0x2e79d6--){const _0x506aac={'id':_0xe5829b(0x150),'params':{..._0x34ba72[_0x2e79d6]}},_0x7b524e={'id':_0xe5829b(0x150),'params':{..._0x18f65c[_0x2e79d6]}},_0x493884=this['_transformService'][_0xe5829b(0x15d)](_0x295319,_0x506aac,!0x1),_0x5423ad=this[_0xe5829b(0x169)][_0xe5829b(0x15d)](_0x2280bf,_0x7b524e,!0x1);if(g['isTransformMutationFailure'](_0x493884))throw _0x493884[_0xe5829b(0x1d6)];if(g[_0xe5829b(0x23a)](_0x5423ad))throw _0x5423ad[_0xe5829b(0x1d6)];_0x292d25[_0xe5829b(0x2aa)](_0x493884[_0xe5829b(0x2e6)][_0xe5829b(0x101)]),_0x456e49[_0xe5829b(0x2aa)](_0x5423ad['m2Prime'][_0xe5829b(0x101)]),_0x295319=_0x493884[_0xe5829b(0x134)],_0x2280bf=_0x5423ad['m1Prime'];}_0x3001d0[_0xe5829b(0xd6)]({'undoCache':_0x292d25,'redoCache':_0x456e49});}[_0x4e74b9(0x146)](_0x14510b){const _0x363733=_0x4e74b9,{unitID:_0x310d22}=_0x14510b,_0x450fde=this[_0x363733(0xe5)][_0x363733(0x206)](_0x310d22)[_0x363733(0x2ef)](T[_0x363733(0x290)]),_0x369f6d=_0x450fde['getActiveRange']();if(_0x369f6d==null)return;const _0x39dfd9=[{'id':_0x363733(0x150),'params':{'unitId':_0x14510b[_0x363733(0x173)],'actions':null,'textRanges':[_0x369f6d]}}],_0x593a2d=this[_0x363733(0x169)][_0x363733(0x17f)](_0x14510b,_0x39dfd9);if(!g[_0x363733(0x294)](_0x593a2d))throw _0x593a2d[_0x363733(0x1d6)];const _0x2ebf7a=_0x593a2d[_0x363733(0x2e6)][0x0][_0x363733(0x101)][_0x363733(0x228)];Array[_0x363733(0x368)](_0x2ebf7a)&&_0x2ebf7a[_0x363733(0xd2)]&&_0x450fde[_0x363733(0x18d)](_0x2ebf7a[0x0]);}};ee=Wt([Ae(0x0,g[_0x4e74b9(0x14e)]),Ae(0x1,C[_0x4e74b9(0x320)])],ee);var Vt=Object[_0x4e74b9(0x13e)],Gt=(_0x2f9b05,_0x538f60,_0x457958,_0x209f6e)=>{const _0x2a9015=_0x4e74b9;for(var _0x14841e=_0x209f6e>0x1?void 0x0:_0x209f6e?Vt(_0x538f60,_0x457958):_0x538f60,_0x48acad=_0x2f9b05[_0x2a9015(0xd2)]-0x1,_0x452a76;_0x48acad>=0x0;_0x48acad--)(_0x452a76=_0x2f9b05[_0x48acad])&&(_0x14841e=_0x452a76(_0x14841e)||_0x14841e);return _0x14841e;},Ie=(_0x205744,_0x2aefc9)=>(_0x4f8081,_0xe6977d)=>_0x2aefc9(_0x4f8081,_0xe6977d,_0x205744);let te=class{constructor(_0x42db63,_0x11da01,_0x48a263){const _0xb1d0d4=_0x4e74b9;this[_0xb1d0d4(0xfb)]=_0x42db63,this[_0xb1d0d4(0x169)]=_0x11da01,this['_docStateChangeManagerService']=_0x48a263;}[_0x4e74b9(0x1db)](_0x23e4da){this['_transformHistoryAndStateStack'](_0x23e4da);}['transformRemoteChangeset'](_0x2687f7){const _0x91a652=_0x4e74b9,{unitID:_0x2a085d}=_0x2687f7,{collaboration:_0x4d31d6}=this['_docStateChangeManagerService'][_0x91a652(0x2ab)](_0x2a085d);if(_0x4d31d6['length']===0x0)return _0x2687f7;let _0x52e739=a[_0x91a652(0x144)]['deepClone'](_0x2687f7[_0x91a652(0x2d0)][0x0]);for(let _0x3f6e40=0x0;_0x3f6e40<_0x4d31d6[_0x91a652(0xd2)];_0x3f6e40++){const _0x5df438={'id':_0x91a652(0x150),'params':{'unitId':_0x4d31d6[_0x3f6e40]['unitId'],..._0x4d31d6[_0x3f6e40][_0x91a652(0x14c)]}},_0x279012=this[_0x91a652(0x169)][_0x91a652(0x15d)](_0x52e739,_0x5df438,!0x1);if(g['isTransformMutationFailure'](_0x279012))throw _0x279012['error'];_0x52e739=_0x279012['m1Prime'];}return{...a['Tools'][_0x91a652(0x281)](_0x2687f7),'mutations':[_0x52e739]};}[_0x4e74b9(0x265)](_0x15ba29){const _0x57db1c=_0x4e74b9,{unitID:_0x585f94}=_0x15ba29,{history:_0x85506f,collaboration:_0x39b393}=this['_docStateChangeManagerService'][_0x57db1c(0x2ab)](_0x585f94);if(_0x85506f[_0x57db1c(0xd2)]===0x0&&_0x39b393['length']===0x0)return;const _0x2965ec=[],_0x229e22=[];let _0xcbaa62=a[_0x57db1c(0x144)]['deepClone'](_0x15ba29[_0x57db1c(0x2d0)][0x0]),_0x839cb9=a[_0x57db1c(0x144)][_0x57db1c(0x281)](_0x15ba29[_0x57db1c(0x2d0)][0x0]);for(let _0xdbd865=_0x85506f['length']-0x1;_0xdbd865>=0x0;_0xdbd865--){const _0x571f6f={'id':_0x57db1c(0x150),'params':{'unitId':_0x85506f[_0xdbd865][_0x57db1c(0x126)],..._0x85506f[_0xdbd865]['undoState']}},_0x549d74={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x85506f[_0xdbd865][_0x57db1c(0x126)],..._0x85506f[_0xdbd865][_0x57db1c(0x14c)]}},_0x129d62=this[_0x57db1c(0x169)]['transformMutation'](_0xcbaa62,_0x571f6f,!0x1),_0x287b89=this[_0x57db1c(0x169)][_0x57db1c(0x15d)](_0x839cb9,_0x549d74,!0x1);if(g[_0x57db1c(0x23a)](_0x129d62))throw _0x129d62[_0x57db1c(0x1d6)];if(g[_0x57db1c(0x23a)](_0x287b89))throw _0x287b89[_0x57db1c(0x1d6)];_0x2965ec[_0x57db1c(0x2aa)]({..._0x85506f[_0xdbd865],'undoState':_0x129d62[_0x57db1c(0x2e6)][_0x57db1c(0x101)],'redoState':_0x287b89[_0x57db1c(0x2e6)][_0x57db1c(0x101)]}),_0xcbaa62=_0x129d62[_0x57db1c(0x134)],_0x839cb9=_0x287b89['m1Prime'];}_0xcbaa62=a[_0x57db1c(0x144)]['deepClone'](_0x15ba29[_0x57db1c(0x2d0)][0x0]),_0x839cb9=a[_0x57db1c(0x144)][_0x57db1c(0x281)](_0x15ba29[_0x57db1c(0x2d0)][0x0]);for(let _0x51c945=_0x39b393[_0x57db1c(0xd2)]-0x1;_0x51c945>=0x0;_0x51c945--){const _0x49dcef={'id':_0x57db1c(0x150),'params':{'unitId':_0x39b393[_0x51c945][_0x57db1c(0x126)],..._0x39b393[_0x51c945]['undoState']}},_0x517052={'id':_0x57db1c(0x150),'params':{'unitId':_0x39b393[_0x51c945]['unitId'],..._0x39b393[_0x51c945][_0x57db1c(0x14c)]}},_0x2f9f57=this['_transformService'][_0x57db1c(0x15d)](_0xcbaa62,_0x49dcef,!0x1),_0x110b73=this[_0x57db1c(0x169)]['transformMutation'](_0x839cb9,_0x517052,!0x1);if(g[_0x57db1c(0x23a)](_0x2f9f57))throw _0x2f9f57[_0x57db1c(0x1d6)];if(g['isTransformMutationFailure'](_0x110b73))throw _0x110b73[_0x57db1c(0x1d6)];_0x229e22[_0x57db1c(0x2aa)]({..._0x39b393[_0x51c945],'undoState':_0x2f9f57['m2Prime']['params'],'redoState':_0x110b73[_0x57db1c(0x2e6)][_0x57db1c(0x101)]}),_0xcbaa62=_0x2f9f57[_0x57db1c(0x134)],_0x839cb9=_0x110b73[_0x57db1c(0x134)];}this[_0x57db1c(0x22c)][_0x57db1c(0x341)](_0x585f94,{'history':_0x2965ec,'collaboration':_0x229e22});}};te=Gt([Ie(0x0,a['Inject'](a[_0x4e74b9(0x26e)])),Ie(0x1,g[_0x4e74b9(0x14e)]),Ie(0x2,a['Inject'](T['DocStateChangeManagerService']))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x4cf440,_0x3fe401,_0x45b47d,_0x1dc381)=>{const _0x69738a=_0x4e74b9;for(var _0x8e2a6d=_0x1dc381>0x1?void 0x0:_0x1dc381?Xt(_0x3fe401,_0x45b47d):_0x3fe401,_0x473146=_0x4cf440[_0x69738a(0xd2)]-0x1,_0xe54a5f;_0x473146>=0x0;_0x473146--)(_0xe54a5f=_0x4cf440[_0x473146])&&(_0x8e2a6d=_0xe54a5f(_0x8e2a6d)||_0x8e2a6d);return _0x8e2a6d;},Pe=(_0x42cbff,_0x45b4f4)=>(_0x306057,_0x2ccee6)=>_0x45b4f4(_0x306057,_0x2ccee6,_0x42cbff);let se=class{constructor(_0x488ea3,_0x3a9a8c){const _0x589400=_0x4e74b9;this[_0x589400(0xfb)]=_0x488ea3,this[_0x589400(0x169)]=_0x3a9a8c;}['transformSelections'](_0x434042){const _0x5f2f82=_0x4e74b9;var _0x43f826;const _0x1b900b=this[_0x5f2f82(0xfb)][_0x5f2f82(0x33e)](V[_0x5f2f82(0x1bf)]),_0xe5ecba=(_0x43f826=_0x1b900b[_0x5f2f82(0x32f)]())!=null?_0x43f826:[];if(_0xe5ecba[_0x5f2f82(0xd2)]===0x0)return;const _0x1ab7b2=_0x434042[_0x5f2f82(0x173)],_0x469403=[{'id':_0x5f2f82(0x150),'params':{'unitId':_0x1ab7b2,'actions':null,'textRanges':_0xe5ecba}}],_0x42315e=this[_0x5f2f82(0x169)][_0x5f2f82(0x17f)](_0x434042,_0x469403);if(!g[_0x5f2f82(0x294)](_0x42315e))throw _0x42315e[_0x5f2f82(0x1d6)];const _0x19b98c=_0x42315e[_0x5f2f82(0x2e6)][0x0]['params'][_0x5f2f82(0x228)];Array[_0x5f2f82(0x368)](_0x19b98c)&&_0x19b98c[_0x5f2f82(0xd2)]&&_0x1b900b['replaceDocRanges'](_0x19b98c,{'unitId':_0x1ab7b2,'subUnitId':_0x1ab7b2},!0x1);}};se=Kt([Pe(0x0,a[_0x4e74b9(0x2a2)](a[_0x4e74b9(0x26e)])),Pe(0x1,g['ITransformService'])],se);var qt=Object[_0x4e74b9(0x13e)],zt=(_0x13b17c,_0x5c7ce0,_0x2dd7b6,_0x1be452)=>{const _0x61f604=_0x4e74b9;for(var _0xea73bf=_0x1be452>0x1?void 0x0:_0x1be452?qt(_0x5c7ce0,_0x2dd7b6):_0x5c7ce0,_0x44d41d=_0x13b17c[_0x61f604(0xd2)]-0x1,_0x47842f;_0x44d41d>=0x0;_0x44d41d--)(_0x47842f=_0x13b17c[_0x44d41d])&&(_0xea73bf=_0x47842f(_0xea73bf)||_0xea73bf);return _0xea73bf;},N=(_0x2f2f5d,_0x1d62bd)=>(_0x11e7c1,_0x2f819f)=>_0x1d62bd(_0x11e7c1,_0x2f819f,_0x2f2f5d);let ie=class extends a[_0x4e74b9(0x1e4)]{constructor(_0x4a19a1,_0x4f94a3,_0x2dab4f,_0x5c8fb3,_0x2c8a13,_0x2222ed,_0x32060b,_0x16573b){const _0x6c7bd2=_0x4e74b9;super(),_(this,_0x6c7bd2(0x12e),new I['BehaviorSubject'](u[_0x6c7bd2(0x1d5)][_0x6c7bd2(0x1bd)])),(this[_0x6c7bd2(0x22c)]=_0x4a19a1,this['_collaborationController']=_0x4f94a3,this[_0x6c7bd2(0x16c)]=_0x2dab4f,this[_0x6c7bd2(0x2c7)]=_0x5c8fb3,this[_0x6c7bd2(0x151)]=_0x2c8a13,this[_0x6c7bd2(0x2ad)]=_0x2222ed,this[_0x6c7bd2(0xdb)]=_0x32060b,this[_0x6c7bd2(0x1ce)]=_0x16573b,this[_0x6c7bd2(0x215)]());}['_initEntityListener'](){const _0x39d6cd=_0x4e74b9;this[_0x39d6cd(0x31b)](this['_collaborationController']['entityInit$']['subscribe'](_0x394dc6=>{const _0x5934df=_0x39d6cd,_0x13d242=this[_0x5934df(0x22c)][_0x5934df(0x2eb)][_0x5934df(0xd0)](_0x4175d3=>{const _0x231d89=_0x5934df;if(_0x4175d3==null)return;const {unitId:_0x4eca89,redoState:_0x482d2a,commandId:_0x3262cc}=_0x4175d3;if(_0x4eca89!==_0x394dc6['unitID'])return;const _0x37722c={'id':_0x3262cc,'type':a[_0x231d89(0x292)][_0x231d89(0x1b2)],'params':{'unitId':_0x4eca89,'actions':_0x482d2a['actions'],'textRanges':null}};_0x394dc6['onLocalMutation'](_0x37722c);});if(_0x394dc6['disposeWithMe'](_0x13d242),_0x394dc6 instanceof u[_0x5934df(0x18a)]){const _0x26b250={'onTransformIME':_0x561c63=>this[_0x5934df(0x16c)][_0x5934df(0x27d)](_0x561c63),'onTransformState':_0x553030=>this[_0x5934df(0x2c7)][_0x5934df(0x1db)](_0x553030),'onTransformSelections':_0x1259fe=>this['_docTransformSelectionsService'][_0x5934df(0x31c)](_0x1259fe),'onSyncEditingCollabCursor':_0x1e9658=>this[_0x5934df(0x2ad)][_0x5934df(0x20e)](_0x1e9658),'onTransformRemoteChangesetByIMECache':_0x1eae7e=>this[_0x5934df(0x16c)][_0x5934df(0x35a)](_0x1eae7e),'onTransformRemoteChangesetByStateCache':_0x5dde4d=>this[_0x5934df(0x2c7)][_0x5934df(0x35a)](_0x5dde4d)};_0x394dc6[_0x5934df(0x323)](_0x26b250);}}));}};ie=zt([N(0x0,a['Inject'](T['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0x4e74b9(0x356)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x4e74b9(0x2a2)](te)),N(0x4,a[_0x4e74b9(0x2a2)](se)),N(0x5,a['Inject'](be)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],ie);var G=(_0x5e2be3=>(_0x5e2be3[_0x5e2be3[_0x4e74b9(0x201)]=0x0]=_0x4e74b9(0x201),_0x5e2be3[_0x5e2be3['OK']=0x1]='OK',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x274)]=0x2]='INTERNAL_ERROR',_0x5e2be3[_0x5e2be3[_0x4e74b9(0xde)]=0x3]=_0x4e74b9(0xde),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x273)]=0x4]=_0x4e74b9(0x273),_0x5e2be3[_0x5e2be3['UNAUTHENTICATED']=0x5]=_0x4e74b9(0x30e),_0x5e2be3[_0x5e2be3['ALREADY_EXISTS']=0x6]=_0x4e74b9(0x32c),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x2c3)]=0x7]='INVALID_ARGUMENT',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x21b)]=0x8]=_0x4e74b9(0x21b),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x35d)]=0x9]='COMPLETION_FINISHED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x17b)]=0xa]='LOGIN_FAILED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x366)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1d4)]=0xc]=_0x4e74b9(0x1d4),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x2a7)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x212)]=0xe]=_0x4e74b9(0x212),_0x5e2be3[_0x5e2be3[_0x4e74b9(0xf5)]=0xf]=_0x4e74b9(0xf5),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x23b)]=0x10]=_0x4e74b9(0x23b),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x2a4)]=0x64]=_0x4e74b9(0x2a4),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x13a)]=0x65]=_0x4e74b9(0x13a),_0x5e2be3[_0x5e2be3[_0x4e74b9(0xc8)]=0xc9]=_0x4e74b9(0xc8),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x187)]=0xca]='USER_IS_ANONYMOUS',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x303)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x336)]=0x1771]=_0x4e74b9(0x336),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1c6)]=0x1772]=_0x4e74b9(0x1c6),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x263)]=0x1773]=_0x4e74b9(0x263),_0x5e2be3[_0x5e2be3['APPLY_REJECT']=0x1b59]=_0x4e74b9(0x103),_0x5e2be3[_0x5e2be3['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4e74b9(0x1a6),_0x5e2be3[_0x5e2be3['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4e74b9(0xb7),_0x5e2be3[_0x5e2be3['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1d0)]=0x1b5d]='APPLY_DUPLICATED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x12c)]=0x1f41]=_0x4e74b9(0x12c),_0x5e2be3[_0x5e2be3[_0x4e74b9(0xa8)]=0x2329]=_0x4e74b9(0xa8),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x27f)]=0x232a]=_0x4e74b9(0x27f),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x11d)]=0x232b]=_0x4e74b9(0x11d),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x10d)]=0x232c]=_0x4e74b9(0x10d),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1e2)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x13c)]=0x2711]=_0x4e74b9(0x13c),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x330)]=0x2712]=_0x4e74b9(0x330),_0x5e2be3[_0x5e2be3['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4e74b9(0x189),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x2f6)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x14f)]=0x271a]=_0x4e74b9(0x14f),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x2a6)]=0x271b]=_0x4e74b9(0x2a6),_0x5e2be3[_0x5e2be3[_0x4e74b9(0xf3)]=0x271c]=_0x4e74b9(0xf3),_0x5e2be3[_0x5e2be3['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4e74b9(0x297),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1ef)]=0x271e]=_0x4e74b9(0x1ef),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x142)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1e0)]=0x2720]=_0x4e74b9(0x1e0),_0x5e2be3[_0x5e2be3['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4e74b9(0x2c4),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x137)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x2d5)]=0x2ee2]=_0x4e74b9(0x2d5),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x285)]=0x2ee3]=_0x4e74b9(0x285),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x107)]=0x2ee4]=_0x4e74b9(0x107),_0x5e2be3[_0x5e2be3[_0x4e74b9(0xd3)]=0x2ee5]=_0x4e74b9(0xd3),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x2bf)]=0x32c9]=_0x4e74b9(0x2bf),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x2e1)]=0x32ca]=_0x4e74b9(0x2e1),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x32a)]=0x32cb]=_0x4e74b9(0x32a),_0x5e2be3[_0x5e2be3['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x256)]=0x36b2]=_0x4e74b9(0x256),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x286)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x19a)]=0x36b4]=_0x4e74b9(0x19a),_0x5e2be3[_0x5e2be3[_0x4e74b9(0xdd)]=0x36b5]=_0x4e74b9(0xdd),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x318)]=0x36b6]=_0x4e74b9(0x318),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1fe)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x153)]=0x36b8]=_0x4e74b9(0x153),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x346)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x105)]=0x3716]=_0x4e74b9(0x105),_0x5e2be3[_0x5e2be3['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x5e2be3[_0x5e2be3['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x4e74b9(0xaa),_0x5e2be3[_0x5e2be3[_0x4e74b9(0xf1)]=0x3a99]=_0x4e74b9(0xf1),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1ff)]=0x3a9a]=_0x4e74b9(0x1ff),_0x5e2be3[_0x5e2be3['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x4e74b9(0x367),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x357)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1df)]=0x3a9d]=_0x4e74b9(0x1df),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x184)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x2ed)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x5e2be3[_0x5e2be3[_0x4e74b9(0x34a)]=0x3e81]=_0x4e74b9(0x34a),_0x5e2be3[_0x5e2be3[_0x4e74b9(0x1dc)]=-0x1]=_0x4e74b9(0x1dc),_0x5e2be3))(G||{});function Jt(_0x50fa6d){const _0x22d352=_0x4e74b9;var _0x5e0829,_0x1ee919;const _0x1383c9=(_0x5e0829=_0x50fa6d[_0x22d352(0x1a1)])==null?void 0x0:_0x5e0829['stage'],_0x79276b=((_0x1ee919=_0x50fa6d['stageInfo'])==null?void 0x0:_0x1ee919[_0x22d352(0x200)])||0x0;return _0x1383c9===B[_0x22d352(0x288)][_0x22d352(0x2b4)]&&_0x79276b>0x0;}function Zt(_0x29b818){const _0x28c8f8=_0x4e74b9;return _0x29b818['functionsExecutedState']===B[_0x28c8f8(0x2b6)][_0x28c8f8(0xe3)];}var Qt=Object[_0x4e74b9(0x13e)],es=(_0x524237,_0x3acff0,_0x11d21,_0xec5709)=>{for(var _0xb9485e=_0xec5709>0x1?void 0x0:_0xec5709?Qt(_0x3acff0,_0x11d21):_0x3acff0,_0x40a147=_0x524237['length']-0x1,_0x5e7b90;_0x40a147>=0x0;_0x40a147--)(_0x5e7b90=_0x524237[_0x40a147])&&(_0xb9485e=_0x5e7b90(_0xb9485e)||_0xb9485e);return _0xb9485e;},L=(_0x346b92,_0x5d1648)=>(_0x1fbcd7,_0x458d8d)=>_0x5d1648(_0x1fbcd7,_0x458d8d,_0x346b92);const ts=_0x4e74b9(0x218),ss='/universer-api/license/formula/limit/start',is=_0x4e74b9(0x11a);let ne=class extends a[_0x4e74b9(0x1e4)]{constructor(_0x234344,_0x159241,_0x4442cd,_0x39dca6,_0x21ad2a,_0x35a53c,_0x510bd7){const _0x4bc764=_0x4e74b9;super(),_(this,_0x4bc764(0x2ae),null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0x4bc764(0x15f),[]),_(this,_0x4bc764(0x1ec),0x0),(this[_0x4bc764(0xdb)]=_0x234344,this['_commandService']=_0x159241,this[_0x4bc764(0x19b)]=_0x4442cd,this[_0x4bc764(0x127)]=_0x39dca6,this[_0x4bc764(0x1c9)]=_0x21ad2a,this[_0x4bc764(0x2de)]=_0x35a53c,this['_localeService']=_0x510bd7,this[_0x4bc764(0x207)]());}[_0x4e74b9(0x207)](){const _0x4474db=_0x4e74b9;this[_0x4474db(0x31b)](this[_0x4474db(0x2f2)]['beforeCommandExecuted']((_0x4cfe1f,_0x432bdc)=>{const _0x12e9b5=_0x4474db;var _0x1410b0;if(_0x4cfe1f['id']!==B[_0x12e9b5(0x340)]['id'])return;const _0x16ab8e=_0x4cfe1f['params'];if(!this[_0x12e9b5(0x2fb)]((_0x1410b0=_0x16ab8e[_0x12e9b5(0x23f)])!=null?_0x1410b0:[]))return;if(!this[_0x12e9b5(0x12a)]())throw this[_0x12e9b5(0x135)](_0x4cfe1f,_0x432bdc),this['_showGuardMessage'](),new a[(_0x12e9b5(0x2ca))]();})),this[_0x4474db(0x31b)](this['_commandService'][_0x4474db(0x158)]((_0xda6306,_0x2906e6)=>{const _0x47aa56=_0x4474db;if(_0xda6306['id']!==B[_0x47aa56(0x272)]['id'])return;const _0x3cdada=_0xda6306[_0x47aa56(0x101)];if(Jt(_0x3cdada)){const _0x4f15d7=a['generateRandomId']();this[_0x47aa56(0x15f)]['push'](_0x4f15d7),this[_0x47aa56(0x214)](_0x4f15d7);}else{if(Zt(_0x3cdada)&&this['_taskIds'][_0x47aa56(0xd2)]>0x0){const _0x372001=this[_0x47aa56(0x15f)][_0x47aa56(0x358)]();this[_0x47aa56(0x29f)](_0x372001);}}}));}[_0x4e74b9(0x237)](){const _0x1b56a8=_0x4e74b9;super['dispose'](),this['_clearPolling'](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x1b56a8(0xbd)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x4e74b9(0x135)](_0x443fd8,_0x38dc6f){const _0x3ef128=_0x4e74b9;for(let _0x4702d2=0x0;_0x4702d2<0x1e;_0x4702d2++)try{if(await this[_0x3ef128(0x26d)](),this['_checkCalculationAvailable']()){this[_0x3ef128(0x2ac)](_0x443fd8,_0x38dc6f),this[_0x3ef128(0xdb)][_0x3ef128(0x1e5)]({'content':this[_0x3ef128(0x1ce)]['t'](_0x3ef128(0x2c9)),'type':p[_0x3ef128(0x324)]['Success']});return;}await new Promise(_0x2363b6=>{const _0x1f34be=_0x3ef128;this[_0x1f34be(0x2ae)]=window[_0x1f34be(0xa6)](_0x2363b6,0x3e8);});}catch(_0x5ee9b2){this['_logService']['error'](_0x5ee9b2);}this[_0x3ef128(0xdb)][_0x3ef128(0x1e5)]({'content':this[_0x3ef128(0x1ce)]['t'](_0x3ef128(0x2d9)),'type':p[_0x3ef128(0x324)][_0x3ef128(0xa2)]});}[_0x4e74b9(0x2ac)](_0x1470bc,_0x3ec9b0){const _0x52a971=_0x4e74b9;try{this[_0x52a971(0x2f2)]['executeCommand'](_0x1470bc['id'],_0x1470bc[_0x52a971(0x101)],_0x3ec9b0);}catch(_0x300aa1){this[_0x52a971(0x2de)][_0x52a971(0x1d6)](_0x300aa1);}}[_0x4e74b9(0x244)](_0x22478c,_0x53f6e8){const _0x5dd8bc=_0x4e74b9;_0x53f6e8<this[_0x5dd8bc(0x1ec)]||(this[_0x5dd8bc(0x1ec)]=_0x53f6e8,this[_0x5dd8bc(0xbd)]=Number[_0x5dd8bc(0x111)](_0x22478c[_0x5dd8bc(0xf7)]),this[_0x5dd8bc(0x331)]=Number[_0x5dd8bc(0x111)](_0x22478c[_0x5dd8bc(0x16a)]));}async[_0x4e74b9(0x214)](_0x1743f4){const _0x4f884d=_0x4e74b9;var _0x5717e3,_0xb342de;const _0x43917c=Date['now']();try{const _0x4cfd24=((_0x5717e3=this[_0x4f884d(0x19b)][_0x4f884d(0x1fc)](u[_0x4f884d(0x261)]))==null?void 0x0:_0x5717e3[_0x4f884d(0x299)])||ss,_0x36f8d9=(await this[_0x4f884d(0x127)]['post'](_0x4cfd24,{'body':JSON[_0x4f884d(0x202)]({'taskId':_0x1743f4})}))[_0x4f884d(0x191)];if(((_0xb342de=_0x36f8d9['error'])==null?void 0x0:_0xb342de[_0x4f884d(0x194)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x36f8d9[_0x4f884d(0x211)],_0x43917c);}catch(_0x4dcbed){this[_0x4f884d(0x2de)][_0x4f884d(0x1d6)](_0x4dcbed);}}async['_getFormulaLimitStatus'](_0x2b975a){const _0x2fb586=_0x4e74b9;var _0x1f6571,_0x110476;const _0x54ad95=Date[_0x2fb586(0xfa)]();try{const _0x505d09=((_0x1f6571=this['_configService'][_0x2fb586(0x1fc)](u[_0x2fb586(0x261)]))==null?void 0x0:_0x1f6571[_0x2fb586(0x2b1)])||ts,_0x27f72d=_0x2b975a?_0x505d09+'?taskId='+encodeURIComponent(_0x2b975a):_0x505d09,_0x15a80e=(await this[_0x2fb586(0x127)][_0x2fb586(0x33e)](_0x27f72d))['body'];if(((_0x110476=_0x15a80e['error'])==null?void 0x0:_0x110476[_0x2fb586(0x194)])!==G['OK'])return;this[_0x2fb586(0x244)](_0x15a80e[_0x2fb586(0x211)],_0x54ad95);}catch(_0x5b39c1){this[_0x2fb586(0x2de)][_0x2fb586(0x1d6)](_0x5b39c1);}}async['_releaseCalculationLimit'](_0x4aaf9e){const _0x89f632=_0x4e74b9;var _0xf0a27a,_0x4c51d1;const _0x5298b6=Date[_0x89f632(0xfa)]();try{const _0x1136d7=((_0xf0a27a=this[_0x89f632(0x19b)][_0x89f632(0x1fc)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0xf0a27a[_0x89f632(0xce)])||is,_0x2d387f=(await this[_0x89f632(0x127)][_0x89f632(0x30b)](_0x1136d7,{'body':JSON[_0x89f632(0x202)]({'taskId':_0x4aaf9e})}))['body'];if(((_0x4c51d1=_0x2d387f['error'])==null?void 0x0:_0x4c51d1[_0x89f632(0x194)])!==G['OK'])return;this[_0x89f632(0x244)](_0x2d387f[_0x89f632(0x211)],_0x5298b6);}catch(_0x1607d0){this[_0x89f632(0x2de)][_0x89f632(0x1d6)](_0x1607d0);}}[_0x4e74b9(0x12a)](){const _0x217ca2=_0x4e74b9;return this[_0x217ca2(0xbd)]===0x0?!0x0:this[_0x217ca2(0xbd)]-this[_0x217ca2(0x331)]>0x0;}['_clearPolling'](){const _0x5ba399=_0x4e74b9;this['_pollingInterval']&&(clearTimeout(this[_0x5ba399(0x2ae)]),this[_0x5ba399(0x2ae)]=null);}[_0x4e74b9(0x33d)](){const _0x24a023=_0x4e74b9;this[_0x24a023(0xdb)][_0x24a023(0x1e5)]({'content':this[_0x24a023(0x1ce)]['t'](_0x24a023(0x230)),'type':p[_0x24a023(0x324)][_0x24a023(0x24e)]});}[_0x4e74b9(0x2fb)](_0x58d4a3){const _0x53d0aa=_0x4e74b9;for(const _0x4e9fd0 of _0x58d4a3){const {unitId:_0x53bd66,sheetId:_0x402012,range:_0x57653c}=_0x4e9fd0,_0x1a847c=this[_0x53d0aa(0x1c9)]['getUnit'](_0x53bd66);if(!_0x1a847c)continue;const _0x547a2e=_0x1a847c['getSheetBySheetId'](_0x402012);if(!_0x547a2e)continue;const _0x5aa7a9=_0x547a2e[_0x53d0aa(0x210)]();for(let _0x4cac45=_0x57653c[_0x53d0aa(0x174)];_0x4cac45<=_0x57653c['endRow'];_0x4cac45++)for(let _0x2a0f68=_0x57653c['startColumn'];_0x2a0f68<=_0x57653c[_0x53d0aa(0x36c)];_0x2a0f68++){const _0x4075fc=_0x5aa7a9[_0x53d0aa(0x24c)](_0x4cac45,_0x2a0f68);if(_0x4075fc&&(a['isFormulaString'](_0x4075fc['f'])||a[_0x53d0aa(0x249)](_0x4075fc['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x4e74b9(0x209)])),L(0x1,a[_0x4e74b9(0x276)]),L(0x2,a[_0x4e74b9(0x12d)]),L(0x3,a[_0x4e74b9(0x2a2)](x[_0x4e74b9(0xee)])),L(0x4,a[_0x4e74b9(0x31e)]),L(0x5,a[_0x4e74b9(0xf2)]),L(0x6,a[_0x4e74b9(0x2a2)](a[_0x4e74b9(0x2d1)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x4425aa,_0x21b29f,_0x8dba01,_0x4ce042)=>{for(var _0x34760a=_0x4ce042>0x1?void 0x0:_0x4ce042?ns(_0x21b29f,_0x8dba01):_0x21b29f,_0x4af91e=_0x4425aa['length']-0x1,_0x384c30;_0x4af91e>=0x0;_0x4af91e--)(_0x384c30=_0x4425aa[_0x4af91e])&&(_0x34760a=_0x384c30(_0x34760a)||_0x34760a);return _0x34760a;},Se=(_0x34f43a,_0x824aec)=>(_0xdce783,_0x2c688f)=>_0x824aec(_0xdce783,_0x2c688f,_0x34f43a);let Te=class extends a[_0x4e74b9(0x1e4)]{constructor(_0x125019,_0x4068f3,_0x785d1){const _0x2bf2b7=_0x4e74b9;super(),_(this,_0x2bf2b7(0x1a2),new Map()),_(this,_0x2bf2b7(0x1d2),new Map()),_(this,_0x2bf2b7(0x1ea),!0x1),(this['_configService']=_0x125019,this[_0x2bf2b7(0x2a1)]=_0x4068f3,this[_0x2bf2b7(0x27b)]=_0x785d1);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x4e74b9(0x188)](){const _0xb316a8=_0x4e74b9;this[_0xb316a8(0x1ea)]=!0x1;}get[_0x4e74b9(0x1b1)](){const _0x2b1793=_0x4e74b9;return this[_0x2b1793(0x1d2)];}[_0x4e74b9(0x237)](){const _0x64230a=_0x4e74b9;this[_0x64230a(0x33a)]()['then'](()=>super[_0x64230a(0x237)]());}async['loadOfflineData'](_0xc52c88){const _0x5b35a6=_0x4e74b9;return this['_disabled']?null:this['_localStorageService'][_0x5b35a6(0x2d8)](u[_0x5b35a6(0x2c8)](_0xc52c88));}async[_0x4e74b9(0xe4)](_0xfad94e,_0x58c0ee){const _0x1f07b3=_0x4e74b9;return!!this[_0x1f07b3(0x2a1)][_0x1f07b3(0x18c)](_0xfad94e,_0x58c0ee);}[_0x4e74b9(0x2dd)](_0x3409bc,_0x26f06e,_0x395ec9,_0x36829d){const _0x151e9e=_0x4e74b9,_0x3707b8=this[_0x151e9e(0x27b)][_0x151e9e(0x1a0)](_0x3409bc);this[_0x151e9e(0x1a2)]['set'](_0x3409bc,{'unitID':_0x3409bc,'type':_0x26f06e,'awaitingChangeset':_0x395ec9,'mutations':_0x36829d,'rev':_0x3707b8}),this[_0x151e9e(0x1d2)][_0x151e9e(0x1bc)](_0x3409bc)||this[_0x151e9e(0x2b7)](_0x3409bc);}['_scheduleSaving'](_0x16cd42){const _0x4a0556=_0x4e74b9,_0x591b32=this[_0x4a0556(0x32b)]();_0x591b32===0x0?this['_saveCache'](_0x16cd42):this[_0x4a0556(0x1d2)][_0x4a0556(0x365)](_0x16cd42,setTimeout(()=>this['_saveCache'](_0x16cd42),_0x591b32));}['_getSaveTimeout'](){const _0xccc396=_0x4e74b9;var _0x1e226c;return(_0x1e226c=this[_0xccc396(0x19b)][_0xccc396(0x1fc)](u[_0xccc396(0x28d)]))!=null?_0x1e226c:u[_0xccc396(0x23d)];}['_saveCache'](_0x3992cb){const _0x5e859f=_0x4e74b9,_0xc612f0=this[_0x5e859f(0x1d2)][_0x5e859f(0x33e)](_0x3992cb);return _0xc612f0!==void 0x0&&window['clearTimeout'](_0xc612f0),this['_localStorageService']['setItem'](u[_0x5e859f(0x2c8)](_0x3992cb),this['_cachedData'][_0x5e859f(0x33e)](_0x3992cb))[_0x5e859f(0xae)](()=>this[_0x5e859f(0x1d2)]['delete'](_0x3992cb));}async[_0x4e74b9(0x33a)](){const _0x43a16d=_0x4e74b9,_0x54132b=[];this['_saveTaskMap']['forEach']((_0x24e86a,_0xe17736)=>{const _0x398ad1=_0x33a7;window[_0x398ad1(0x35c)](_0x24e86a),_0x54132b[_0x398ad1(0x9f)](this['_saveCache'](_0xe17736)[_0x398ad1(0xae)](()=>{const _0x56a0c7=_0x398ad1;this[_0x56a0c7(0x1d2)]['delete'](_0xe17736);}));}),await Promise[_0x43a16d(0x143)](_0x54132b);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0x4e74b9(0x2d6)]),Se(0x2,a[_0x4e74b9(0x2a2)](g[_0x4e74b9(0x17c)]))],Te);class ke extends a[_0x4e74b9(0x15a)]{constructor(){const _0x4bd81a=_0x4e74b9;super(),_(this,_0x4bd81a(0x24a)),this['urlChange$']=I['fromEvent'](window,'popstate')[_0x4bd81a(0x22f)](I[_0x4bd81a(0x138)](this[_0x4bd81a(0xe2)]),I['shareReplay'](0x1),I[_0x4bd81a(0x11f)](void 0x0));}['setParam'](_0x2b62bd,_0x1e7863,_0x55a0a1=!0x1){const _0x2924ca=_0x4e74b9,_0x251f8c=new URL(window[_0x2924ca(0x190)][_0x2924ca(0x1ae)]);_0x251f8c[_0x2924ca(0xd4)]['set'](_0x2b62bd,_0x1e7863),_0x55a0a1?window[_0x2924ca(0x2cc)][_0x2924ca(0xa9)]('','',_0x251f8c['toString']()):window[_0x2924ca(0x2cc)]['pushState']('','',_0x251f8c[_0x2924ca(0x2e2)]());}['removeParam'](_0x482dfd,_0x57bb27=!0x1){const _0x218e9f=_0x4e74b9,_0x211882=new URL(window[_0x218e9f(0x190)]['href']);_0x211882[_0x218e9f(0xd4)][_0x218e9f(0x32d)](_0x482dfd),_0x57bb27?window['history'][_0x218e9f(0xa9)]('','',_0x211882['toString']()):window[_0x218e9f(0x2cc)][_0x218e9f(0x178)]('','',_0x211882[_0x218e9f(0x2e2)]());}['getParam'](_0x19b71f){const _0x1d2542=_0x4e74b9;var _0x217321;return(_0x217321=new URL(window['location']['href'])['searchParams'][_0x1d2542(0x33e)](_0x19b71f))!=null?_0x217321:void 0x0;}}var os=Object[_0x4e74b9(0x123)],as=Object[_0x4e74b9(0x13e)],cs=(_0x4b3448,_0x2262a5,_0x1b9339)=>_0x2262a5 in _0x4b3448?os(_0x4b3448,_0x2262a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b9339}):_0x4b3448[_0x2262a5]=_0x1b9339,ls=(_0x5b7028,_0x26e1b5,_0x26d6e2,_0x16df57)=>{const _0x2a6dc5=_0x4e74b9;for(var _0x191862=_0x16df57>0x1?void 0x0:_0x16df57?as(_0x26e1b5,_0x26d6e2):_0x26e1b5,_0x23577d=_0x5b7028[_0x2a6dc5(0xd2)]-0x1,_0x265f92;_0x23577d>=0x0;_0x23577d--)(_0x265f92=_0x5b7028[_0x23577d])&&(_0x191862=_0x265f92(_0x191862)||_0x191862);return _0x191862;},de=(_0x54bbc0,_0x2c34d0)=>(_0x4008c6,_0x51eadb)=>_0x2c34d0(_0x4008c6,_0x51eadb,_0x54bbc0),_s=(_0x5b8210,_0x5746ce,_0x557bb3)=>cs(_0x5b8210,_0x5746ce+'',_0x557bb3);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x4e74b9(0x186)]=class extends a[_0x4e74b9(0x2fe)]{constructor(_0x19af19=Me,_0x2b2098,_0x5be705,_0x331edf){const _0x90fe86=_0x4e74b9;super(),this['_config']=_0x19af19,this[_0x90fe86(0xe5)]=_0x2b2098,this[_0x90fe86(0xfb)]=_0x5be705,this[_0x90fe86(0x19b)]=_0x331edf;const {..._0x5772c9}=a[_0x90fe86(0x192)]({},Me,this[_0x90fe86(0x250)]);this[_0x90fe86(0x19b)][_0x90fe86(0x2df)](Yt,_0x5772c9);}[_0x4e74b9(0x2b3)](){const _0x515663=_0x4e74b9;this[_0x515663(0x1d1)](),this[_0x515663(0x1c0)]();}['onRendered'](){const _0x4d98ea=_0x4e74b9;this[_0x4d98ea(0x2a3)]();}['_registerDependencies'](){const _0x2cc820=_0x4e74b9;var _0x9c4d3e;const _0x45900a=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x2cc820(0x2e0)],{'useClass':x[_0x2cc820(0x234)]}],[u['ILocalCacheService'],{'useClass':Te}],[exports[_0x2cc820(0x2ce)]],[ie],[Z],[F],[me],[exports[_0x2cc820(0x1a5)]]];this[_0x2cc820(0x250)][_0x2cc820(0x21d)]&&_0x45900a[_0x2cc820(0x9f)]([Q]),a[_0x2cc820(0x17a)](this[_0x2cc820(0xfb)],a[_0x2cc820(0x322)](_0x45900a,(_0x9c4d3e=this[_0x2cc820(0x250)])==null?void 0x0:_0x9c4d3e['override']));}['_registerRenderDependencies'](){const _0x419399=_0x4e74b9;this[_0x419399(0x31b)](this[_0x419399(0xe5)][_0x419399(0x306)](a[_0x419399(0x333)][_0x419399(0x118)],[Ee])),this[_0x419399(0x31b)](this[_0x419399(0xe5)][_0x419399(0x306)](a['UniverInstanceType']['UNIVER_SHEET'],[Ce]));}[_0x4e74b9(0x1c0)](){const _0x4eca31=_0x4e74b9;a[_0x4eca31(0x2e5)](this[_0x4eca31(0xfb)],[[F],[exports[_0x4eca31(0x2ce)]],[ie],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this[_0x4eca31(0x250)][_0x4eca31(0x21d)]&&a[_0x4eca31(0x2e5)](this[_0x4eca31(0xfb)],[[Q]]);}},_s(exports[_0x4e74b9(0x186)],_0x4e74b9(0x22d),hs),exports[_0x4e74b9(0x186)]=ls([a[_0x4e74b9(0xe0)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x4e74b9(0x320)]),de(0x2,a[_0x4e74b9(0x2a2)](a[_0x4e74b9(0x26e)])),de(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x4e74b9(0x13e)],Is=(_0xa92c9e,_0x536ccd,_0x14f6d0,_0xb74620)=>{const _0x342c2f=_0x4e74b9;for(var _0x80c232=_0xb74620>0x1?void 0x0:_0xb74620?us(_0x536ccd,_0x14f6d0):_0x536ccd,_0x485b18=_0xa92c9e[_0x342c2f(0xd2)]-0x1,_0x321022;_0x485b18>=0x0;_0x485b18--)(_0x321022=_0xa92c9e[_0x485b18])&&(_0x80c232=_0x321022(_0x80c232)||_0x80c232);return _0x80c232;},W=(_0x6f60fb,_0x5ecbe5)=>(_0x6eac54,_0x5ea9d8)=>_0x5ecbe5(_0x6eac54,_0x5ea9d8,_0x6f60fb);exports[_0x4e74b9(0xca)]=class extends u[_0x4e74b9(0x36d)]{constructor(_0xd7a141,_0x1c315a,_0x2ca71b,_0x302a4a,_0x2c3ffc){super(_0xd7a141,_0x1c315a,_0x2ca71b,_0x302a4a,_0x2c3ffc);}async[_0x4e74b9(0x25a)](_0x52e89d){const _0x3dd46c=_0x4e74b9,_0x4f6851=await this['_getSessionTicket'](),_0x354d5b=this[_0x3dd46c(0x34e)](_0x52e89d,_0x4f6851);return this[_0x3dd46c(0x361)](_0x354d5b);}[_0x4e74b9(0x34e)](_0x1f10be,_0x3ce021){const _0x40efa0=_0x4e74b9,_0x24c589=typeof window>'u'?new URL(_0x1f10be):new URL(_0x1f10be,window[_0x40efa0(0x190)]['origin']);_0x24c589[_0x40efa0(0xd4)]['set'](_0x40efa0(0xad),_0x3ce021);const _0x480dfc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x40efa0(0x190)][_0x40efa0(0x199)]);return _0x480dfc[_0x40efa0(0x33e)]('runId')&&_0x24c589[_0x40efa0(0xd4)][_0x40efa0(0x365)]('runId',_0x480dfc[_0x40efa0(0x33e)](_0x40efa0(0x11b))),_0x24c589[_0x40efa0(0x2e2)]();}async['_getSessionTicket'](){const _0x812e8c=_0x4e74b9;var _0x2e7ac9,_0x1f6226,_0x103ed6;const _0x49eda7=this[_0x812e8c(0x19b)][_0x812e8c(0x1fc)](u[_0x812e8c(0x261)]),_0xbe2331=(_0x2e7ac9=_0x49eda7==null?void 0x0:_0x49eda7[_0x812e8c(0x278)])!=null?_0x2e7ac9:u[_0x812e8c(0x2ec)];return(_0x103ed6=(_0x1f6226=(await this['_httpService'][_0x812e8c(0x33e)](_0xbe2331,{'headers':{'Content-Type':'application/json'}}))[_0x812e8c(0x191)])==null?void 0x0:_0x1f6226['ticket'])!=null?_0x103ed6:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a[_0x4e74b9(0x2a2)](a[_0x4e74b9(0x26e)])),W(0x1,a[_0x4e74b9(0x2a2)](x[_0x4e74b9(0xee)])),W(0x2,a[_0x4e74b9(0x12d)]),W(0x3,a[_0x4e74b9(0xf2)]),W(0x4,g['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);var Ss=Object[_0x4e74b9(0x13e)],ds=(_0x449ff8,_0x57e2d4,_0x591eb4,_0x2bef96)=>{const _0x55ca46=_0x4e74b9;for(var _0x11e7bf=_0x2bef96>0x1?void 0x0:_0x2bef96?Ss(_0x57e2d4,_0x591eb4):_0x57e2d4,_0x591cb2=_0x449ff8[_0x55ca46(0xd2)]-0x1,_0x3af5cb;_0x591cb2>=0x0;_0x591cb2--)(_0x3af5cb=_0x449ff8[_0x591cb2])&&(_0x11e7bf=_0x3af5cb(_0x11e7bf)||_0x11e7bf);return _0x11e7bf;},fe=(_0x4a1a47,_0x296c60)=>(_0x2448e3,_0x16cae7)=>_0x296c60(_0x2448e3,_0x16cae7,_0x4a1a47);exports[_0x4e74b9(0x291)]=class extends a[_0x4e74b9(0x1e4)]{constructor(_0x3353bf,_0x52acdc,_0x14e271){const _0x76a484=_0x4e74b9;super(),this[_0x76a484(0x2d4)]=_0x3353bf,this[_0x76a484(0x127)]=_0x52acdc,this['_configService']=_0x14e271;}async[_0x4e74b9(0x140)](_0x25d2ff,_0x4577a3,_0x19144c,..._0x2ac862){const _0x103572=_0x4e74b9;var _0x2709c6,_0x1fd68f,_0x157b1e,_0x4f46a2;const _0x26c2f5=this[_0x103572(0x2d4)][_0x103572(0x171)]();if(!_0x26c2f5)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x37cfef=((_0x2709c6=this['_configService']['getConfig'](u[_0x103572(0x309)]))!=null?_0x2709c6:u[_0x103572(0x145)])+'/'+_0x25d2ff+_0x103572(0x2d3)+_0x4577a3,_0x7cccd=new URL(window[_0x103572(0x190)][_0x103572(0x1ae)]),_0x15c0a3={'scriptId':_0x25d2ff,'runId':(_0x1fd68f=_0x7cccd['searchParams'][_0x103572(0x33e)](_0x103572(0x11b)))!=null?_0x1fd68f:'','function':_0x4577a3,'unitId':_0x26c2f5[_0x103572(0x33b)](),'argsOfFunction':JSON[_0x103572(0x202)](_0x2ac862),'invokeId':(_0x157b1e=_0x19144c[_0x103572(0x121)])!=null?_0x157b1e:'','executionId':(_0x4f46a2=_0x19144c['executionId'])!=null?_0x4f46a2:''};try{const _0x4d01f9=await this['_httpService'][_0x103572(0x30b)](_0x37cfef,{'body':_0x15c0a3});return _0x4d01f9['body'][_0x103572(0x1d6)]&&_0x4d01f9['body']['error'][_0x103572(0x194)]!==G['OK']?'Failed':_0x4d01f9[_0x103572(0x191)][_0x103572(0x1cb)];}catch{return _0x103572(0x240);}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x4e74b9(0x31e)]),fe(0x1,a[_0x4e74b9(0x2a2)](x[_0x4e74b9(0xee)])),fe(0x2,a[_0x4e74b9(0x12d)])],exports[_0x4e74b9(0x291)]);const we=0x7530,ye=_0x4e74b9(0x327);class fs extends a[_0x4e74b9(0x1e4)]{constructor(){const _0x5a3fae=_0x4e74b9;super(),_(this,_0x5a3fae(0x2ea),a['generateRandomId']()),_(this,'_selfUnitIDs',new Set()),_(this,_0x5a3fae(0xcb),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x5a3fae(0x21c),new Map()),_(this,_0x5a3fae(0x1a8),new Map()),this[_0x5a3fae(0x360)]();}['dispose'](){const _0x2206e0=_0x4e74b9;super[_0x2206e0(0x237)](),this[_0x2206e0(0x21c)][_0x2206e0(0xcd)]((_0x3fa0ec,_0x48bc0a)=>this[_0x2206e0(0xa3)](_0x48bc0a)),this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4e74b9(0xe6)](_0xc9ba16){const _0x42c91a=_0x4e74b9;return this[_0x42c91a(0x262)](_0xc9ba16)[_0x42c91a(0x22f)](I['distinctUntilChanged']());}[_0x4e74b9(0xac)](_0x528659){const _0x3aadfc=_0x4e74b9;this['_selfUnitIDs'][_0x3aadfc(0x337)]===0x0&&this[_0x3aadfc(0x27a)](),this[_0x3aadfc(0x195)]['add'](_0x528659),this[_0x3aadfc(0x1a7)]({'type':0x0,'memberID':this[_0x3aadfc(0x2ea)],'unitIDs':[_0x528659],'isForwarded':!0x1});}[_0x4e74b9(0x1ab)](_0x3b305c){const _0x2a519d=_0x4e74b9;this[_0x2a519d(0x195)][_0x2a519d(0x32d)](_0x3b305c),this[_0x2a519d(0x195)][_0x2a519d(0x337)]===0x0&&this[_0x2a519d(0x35f)]&&window[_0x2a519d(0x193)](this[_0x2a519d(0x35f)]);}[_0x4e74b9(0x360)](){const _0x297c02=_0x4e74b9;this[_0x297c02(0x31b)](a['toDisposable'](I[_0x297c02(0x225)](window,_0x297c02(0x2f1))[_0x297c02(0xd0)](_0x5c8bf4=>{const _0x31bda3=_0x297c02;if(_0x5c8bf4[_0x31bda3(0x163)]!==ye||!_0x5c8bf4[_0x31bda3(0x29d)])return;const _0x50c197=JSON[_0x31bda3(0xb4)](_0x5c8bf4['newValue']);this[_0x31bda3(0xa4)](_0x50c197);}))),window[_0x297c02(0x287)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x297c02(0x2ea)],'unitIDs':Array[_0x297c02(0x2f7)](this[_0x297c02(0x195)])}));}[_0x4e74b9(0xa4)](_0x154edd){const _0x16ea3e=_0x4e74b9;switch(_0x154edd[_0x16ea3e(0xd5)]){case 0x0:this[_0x16ea3e(0x1b5)](_0x154edd);break;case 0x1:this[_0x16ea3e(0x30a)](_0x154edd);break;case 0x2:this[_0x16ea3e(0x2e4)](_0x154edd);break;}}[_0x4e74b9(0x1b5)](_0x32a12c){const _0x5d2dd3=_0x4e74b9,{unitIDs:_0x4e86e9,memberID:_0x3c5f69,isForwarded:_0x2999ef}=_0x32a12c;_0x4e86e9[_0x5d2dd3(0xcd)](_0x4862f4=>{const _0x3742dc=_0x5d2dd3;if(!_0x2999ef&&this['_unitOnClients'][_0x3742dc(0x1bc)](_0x4862f4)&&this['_ensureSubject'](_0x4862f4)['next'](u['UnitStatus'][_0x3742dc(0x162)]),!this[_0x3742dc(0xcb)][_0x3742dc(0x1bc)](_0x4862f4)||!this[_0x3742dc(0xcb)]['get'](_0x4862f4)['has'](_0x3c5f69)){const _0x524f58=this[_0x3742dc(0xcb)][_0x3742dc(0x33e)](_0x4862f4)||new Set();_0x524f58['add'](_0x3c5f69),this[_0x3742dc(0xcb)][_0x3742dc(0x365)](_0x4862f4,_0x524f58),this[_0x3742dc(0x1ad)](_0x3c5f69);}}),_0x2999ef||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5d2dd3(0x195)]],'isForwarded':!0x0});}[_0x4e74b9(0x1ad)](_0x27b6d5){const _0x458915=_0x4e74b9;this[_0x458915(0xa3)](_0x27b6d5);const _0x14036a=window[_0x458915(0xa6)](()=>{const _0x2864fa=_0x458915;this[_0x2864fa(0xcb)][_0x2864fa(0xcd)](_0x588396=>{const _0x546654=_0x2864fa;_0x588396[_0x546654(0x32d)](_0x27b6d5);});},we*0x2);this[_0x458915(0x21c)][_0x458915(0x365)](_0x27b6d5,_0x14036a);}[_0x4e74b9(0xa3)](_0x3c6ddf){const _0x2f8cef=_0x4e74b9;if(this[_0x2f8cef(0x21c)]['has'](_0x3c6ddf)){const _0x11f7da=this[_0x2f8cef(0x21c)][_0x2f8cef(0x33e)](_0x3c6ddf);_0x11f7da&&window['clearTimeout'](_0x11f7da),this[_0x2f8cef(0x21c)][_0x2f8cef(0x365)](_0x3c6ddf,null);}}['_handleLeaveEvent'](_0x233992){const _0x6ffdcf=_0x4e74b9,{memberID:_0x1d94da,unitIDs:_0x2f4611}=_0x233992;_0x2f4611[_0x6ffdcf(0xcd)](_0x11331b=>{const _0x17f9fd=_0x6ffdcf;var _0x1939a6;const _0x5e54c5=this['_unitOnClients']['get'](_0x11331b);_0x5e54c5&&(_0x5e54c5[_0x17f9fd(0x32d)](_0x1d94da),(_0x1939a6=this['_ensureSubject'](_0x11331b))==null||_0x1939a6[_0x17f9fd(0x2fa)](_0x5e54c5[_0x17f9fd(0x337)]===0x0?u['UnitStatus'][_0x17f9fd(0xb1)]:u[_0x17f9fd(0x2ba)]['OTHER_CLIENTS_EDITING']));}),this[_0x6ffdcf(0xa3)](_0x1d94da);}[_0x4e74b9(0x2e4)](_0xbc6ea3){const _0x3d79f0=_0x4e74b9;this[_0x3d79f0(0x1ad)](_0xbc6ea3[_0x3d79f0(0x122)]);}[_0x4e74b9(0x1a7)](_0x2cd174){const _0x39a21e=_0x4e74b9;localStorage['setItem'](ye,JSON[_0x39a21e(0x202)](_0x2cd174));}['_scheduleHeartbeat'](){const _0x184544=_0x4e74b9;this['_heartbeatTimer']=window[_0x184544(0x1a3)](()=>{const _0x12bb2f=_0x184544;this[_0x12bb2f(0x1a7)]({'type':0x2,'memberID':this[_0x12bb2f(0x2ea)]});},we);}['_ensureSubject'](_0x3cd218){const _0x526a96=_0x4e74b9;return this[_0x526a96(0x1a8)][_0x526a96(0x1bc)](_0x3cd218)||this['_unitStatus'][_0x526a96(0x365)](_0x3cd218,new I[(_0x526a96(0x34b))](u['UnitStatus'][_0x526a96(0xb1)])),this[_0x526a96(0x1a8)]['get'](_0x3cd218);}}exports[_0x4e74b9(0xa1)]=Oe,exports['SheetCollabCursorShape']=je,exports[_0x4e74b9(0x233)]=fs,exports[_0x4e74b9(0x10c)]=ke;
|