@univerjs-pro/collaboration-client-ui 0.15.2 → 0.15.3-insiders.20260131-cbd5fac
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/sk-SK.js +1 -0
- 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/sk-SK.js +1 -0
- 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/sk-SK.js +1 -0
- 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/types/locale/sk-SK.d.ts +3 -0
- 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/sk-SK.js +1 -0
- 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 +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xde5e7f=_0x3cd0;(function(_0x46a4b3,_0xc7d42d){const _0xda7a31=_0x3cd0,_0x192385=_0x46a4b3();while(!![]){try{const _0x6ef97d=-parseInt(_0xda7a31(0x318))/0x1+-parseInt(_0xda7a31(0x27f))/0x2*(parseInt(_0xda7a31(0x246))/0x3)+-parseInt(_0xda7a31(0x2d6))/0x4*(parseInt(_0xda7a31(0x2f1))/0x5)+-parseInt(_0xda7a31(0x2fd))/0x6+-parseInt(_0xda7a31(0x173))/0x7+parseInt(_0xda7a31(0x2e0))/0x8*(-parseInt(_0xda7a31(0x1d3))/0x9)+parseInt(_0xda7a31(0x1d5))/0xa*(parseInt(_0xda7a31(0xb1))/0xb);if(_0x6ef97d===_0xc7d42d)break;else _0x192385['push'](_0x192385['shift']());}catch(_0x5c310a){_0x192385['push'](_0x192385['shift']());}}}(_0x1c85,0xa5f29));var Xe=Object[_0xde5e7f(0x2d3)],Ke=(_0x510171,_0x56b7b0,_0x465d03)=>_0x56b7b0 in _0x510171?Xe(_0x510171,_0x56b7b0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x465d03}):_0x510171[_0x56b7b0]=_0x465d03,_=(_0x11c988,_0x59c9b1,_0x37b96d)=>Ke(_0x11c988,typeof _0x59c9b1!='symbol'?_0x59c9b1+'':_0x59c9b1,_0x37b96d);Object['defineProperty'](exports,Symbol[_0xde5e7f(0x164)],{'value':_0xde5e7f(0x302)});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:_0x78f10f,..._0x513925}){const _0x59e3a3=_0xde5e7f,{icon:_0x26a722,id:_0xee6e23,className:_0xd0919a,extend:_0x5e8c48,..._0x44e7f0}=_0x513925,_0x23fae9=(_0x59e3a3(0x28f)+_0xee6e23+'\x20'+(_0xd0919a||''))[_0x59e3a3(0x33d)](),_0x4f4666=A[_0x59e3a3(0x21e)]('_'+Qe());return $e(_0x26a722,''+_0xee6e23,{'defIds':_0x26a722[_0x59e3a3(0x312)],'idSuffix':_0x4f4666[_0x59e3a3(0x2c2)]},{'ref':_0x78f10f,'className':_0x23fae9,..._0x44e7f0},_0x5e8c48);}function $e(_0x274192,_0x511131,_0x2f7c90,_0x123e74,_0xd96527){const _0x359030=_0xde5e7f;return A[_0x359030(0x105)](_0x274192[_0x359030(0xc6)],{'key':_0x511131,...Je(_0x274192,_0x2f7c90,_0xd96527),..._0x123e74},(Ze(_0x274192,_0x2f7c90)['children']||[])['map']((_0x2bbf3e,_0x52b1cf)=>$e(_0x2bbf3e,_0x511131+'-'+_0x274192['tag']+'-'+_0x52b1cf,_0x2f7c90,void 0x0,_0xd96527)));}function Je(_0xb69439,_0x2719e1,_0x1a5f2e){const _0x20d614=_0xde5e7f,_0x322336={..._0xb69439[_0x20d614(0x204)]};_0x1a5f2e!=null&&_0x1a5f2e[_0x20d614(0x144)]&&_0x322336[_0x20d614(0x121)]===_0x20d614(0x144)&&(_0x322336[_0x20d614(0x121)]=_0x1a5f2e[_0x20d614(0x144)]),_0xb69439[_0x20d614(0xc6)]==='mask'&&_0x322336['id']&&(_0x322336['id']=_0x322336['id']+_0x2719e1[_0x20d614(0x2ed)]),Object[_0x20d614(0xff)](_0x322336)[_0x20d614(0x1a7)](([_0x5cb3fe,_0x7c1b99])=>{const _0x55ab8b=_0x20d614;_0x5cb3fe===_0x55ab8b(0x22f)&&typeof _0x7c1b99=='string'&&(_0x322336[_0x5cb3fe]=_0x7c1b99['replace'](/url\(#(.*)\)/,_0x55ab8b(0xe2)+_0x2719e1[_0x55ab8b(0x2ed)]+')'));});const {defIds:_0x9e4acd}=_0x2719e1;return!_0x9e4acd||_0x9e4acd[_0x20d614(0x1ef)]===0x0||(_0xb69439['tag']===_0x20d614(0x1ca)&&_0x322336[_0x20d614(0x20a)]&&(_0x322336[_0x20d614(0x20a)]=_0x322336[_0x20d614(0x20a)]+_0x2719e1[_0x20d614(0x2ed)]),Object[_0x20d614(0xff)](_0x322336)[_0x20d614(0x1a7)](([_0x592333,_0x9ff5c6])=>{const _0x193a3a=_0x20d614;typeof _0x9ff5c6==_0x193a3a(0x29c)&&(_0x322336[_0x592333]=_0x9ff5c6[_0x193a3a(0x31a)](/url\(#(.*)\)/,_0x193a3a(0xe2)+_0x2719e1[_0x193a3a(0x2ed)]+')'));})),_0x322336;}function Ze(_0x5af6bc,_0x3f4fa6){const _0x561637=_0xde5e7f;var _0x58a307;const {defIds:_0x518fde}=_0x3f4fa6;return!_0x518fde||_0x518fde[_0x561637(0x1ef)]===0x0?_0x5af6bc:_0x5af6bc[_0x561637(0xc6)]===_0x561637(0x18a)&&((_0x58a307=_0x5af6bc['children'])!=null&&_0x58a307[_0x561637(0x1ef)])?{..._0x5af6bc,'children':_0x5af6bc[_0x561637(0x195)][_0x561637(0x2b8)](_0x21f72e=>typeof _0x21f72e[_0x561637(0x204)]['id']==_0x561637(0x29c)&&_0x518fde&&_0x518fde[_0x561637(0x342)](_0x21f72e[_0x561637(0x204)]['id'])?{..._0x21f72e,'attrs':{..._0x21f72e[_0x561637(0x204)],'id':_0x21f72e['attrs']['id']+_0x3f4fa6[_0x561637(0x2ed)]}}:_0x21f72e)}:_0x5af6bc;}function Qe(){const _0x5bbaed=_0xde5e7f;return Math['random']()[_0x5bbaed(0x13b)](0x24)['substring'](0x2,0x8);}pe['displayName']='UniverIcon';const et={'tag':_0xde5e7f(0xc3),'attrs':{'xmlns':_0xde5e7f(0x243),'fill':_0xde5e7f(0x2a2),'viewBox':_0xde5e7f(0x170),'width':_0xde5e7f(0x274),'height':_0xde5e7f(0x274)},'children':[{'tag':'g','attrs':{'clipPath':_0xde5e7f(0x19c)},'children':[{'tag':_0xde5e7f(0x2ad),'attrs':{'stroke':'currentColor','d':_0xde5e7f(0x1a4),'strokeLinecap':_0xde5e7f(0x306),'strokeLinejoin':_0xde5e7f(0x306),'strokeWidth':1.2}}]},{'tag':_0xde5e7f(0x18a),'attrs':{},'children':[{'tag':_0xde5e7f(0x253),'attrs':{'id':_0xde5e7f(0x82)},'children':[{'tag':'path','attrs':{'fill':_0xde5e7f(0xc9),'d':_0xde5e7f(0x2c9)}}]}]}],'defIds':[_0xde5e7f(0x82)]},xe=A[_0xde5e7f(0xa1)](function(_0xd3b22a,_0x15250c){const _0x14ab05=_0xde5e7f;return A[_0x14ab05(0x105)](pe,Object[_0x14ab05(0x2a6)]({},_0xd3b22a,{'id':'off-line-icon','ref':_0x15250c,'icon':et}));});xe[_0xde5e7f(0x2e4)]='OffLineIcon';const tt={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xde5e7f(0x2a2),'viewBox':'0\x200\x2017\x2016','width':_0xde5e7f(0x274),'height':_0xde5e7f(0x274)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xde5e7f(0x2ad),'attrs':{'stroke':_0xde5e7f(0x276),'d':'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','strokeLinecap':'round','strokeLinejoin':_0xde5e7f(0x306),'strokeWidth':1.2}}]},{'tag':_0xde5e7f(0x18a),'attrs':{},'children':[{'tag':_0xde5e7f(0x253),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0xde5e7f(0xc9),'d':_0xde5e7f(0x2c9),'transform':_0xde5e7f(0x123)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0xde5e7f(0xa1)](function(_0x3d7fa4,_0x4770f6){const _0x54d454=_0xde5e7f;return A[_0x54d454(0x105)](pe,Object['assign']({},_0x3d7fa4,{'id':_0x54d454(0x1ff),'ref':_0x4770f6,'icon':tt}));});Be[_0xde5e7f(0x2e4)]='OnLineIcon';function st(_0x3177f2){const _0x790154=_0xde5e7f;switch(_0x3177f2){case u[_0x790154(0x7d)][_0x790154(0x1ea)]:return _0x790154(0xb0);case u[_0x790154(0x7d)][_0x790154(0xae)]:return _0x790154(0x31b);case u[_0x790154(0x7d)][_0x790154(0x185)]:return'collabStatus.fetchMiss';case u[_0x790154(0x7d)][_0x790154(0xcc)]:return _0x790154(0x25b);case u['CollaborationStatus']['AWAITING']:case u[_0x790154(0x7d)][_0x790154(0x98)]:return'collabStatus.syncing';case u[_0x790154(0x7d)][_0x790154(0xa5)]:case u[_0x790154(0x7d)][_0x790154(0xf6)]:return _0x790154(0x1bf);}}function it(_0xad0c5a){const _0x3568ee=_0xde5e7f,{status$:_0x2a0e08}=_0xad0c5a,_0x4340e7=O[_0x3568ee(0x18d)](_0x2a0e08,u[_0x3568ee(0x7d)][_0x3568ee(0xcc)]),_0x2faaa7=O[_0x3568ee(0x11e)](a[_0x3568ee(0x1b5)]),_0x385ee5=O[_0x3568ee(0x11e)](u[_0x3568ee(0x2da)]),_0x124aa5=_0x4340e7!==u[_0x3568ee(0x7d)][_0x3568ee(0x1ea)],_0x20b224=_0x2faaa7['t'](st(_0x4340e7)),_0x145bdc=_0x124aa5?M[_0x3568ee(0x2be)](Be,{}):M[_0x3568ee(0x2be)](xe,{}),_0x403d90=A['useCallback'](()=>{_0x124aa5||_0x385ee5['reconnect']();},[_0x124aa5,_0x385ee5]);function _0x4d2e58(){const _0x2d44e4=_0x3568ee;return M[_0x2d44e4(0x290)](_0x2d44e4(0x1c8),{'className':_0x2d44e4(0x115),'onClick':_0x403d90,'children':[M[_0x2d44e4(0x2be)]('div',{'className':p['clsx'](_0x2d44e4(0x1f4),{'univer-text-green-500':_0x124aa5,'univer-text-red-500':!_0x124aa5}),'children':_0x145bdc}),M[_0x2d44e4(0x2be)](_0x2d44e4(0x1c8),{'className':_0x2d44e4(0x279),'children':_0x20b224})]});}return _0x124aa5?_0x4d2e58():M['jsx'](p['Tooltip'],{'title':_0x2faaa7['t'](_0x3568ee(0x132)),'children':_0x4d2e58()});}var nt=Object[_0xde5e7f(0x100)],rt=(_0x3c0673,_0x25dbfc,_0x4e4232,_0x42fbfa)=>{const _0x3fac0f=_0xde5e7f;for(var _0x1f8118=_0x42fbfa>0x1?void 0x0:_0x42fbfa?nt(_0x25dbfc,_0x4e4232):_0x25dbfc,_0x19dedb=_0x3c0673[_0x3fac0f(0x1ef)]-0x1,_0x3f9b5e;_0x19dedb>=0x0;_0x19dedb--)(_0x3f9b5e=_0x3c0673[_0x19dedb])&&(_0x1f8118=_0x3f9b5e(_0x1f8118)||_0x1f8118);return _0x1f8118;},K=(_0x1a3299,_0x5d975a)=>(_0x5bdfde,_0x324102)=>_0x5d975a(_0x5bdfde,_0x324102,_0x1a3299);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0xde5e7f(0x109)]{constructor(_0x5dddab,_0x5b6629,_0x15dd57,_0x549214){const _0xa8e077=_0xde5e7f;super(),_(this,_0xa8e077(0x304),new I[(_0xa8e077(0x1b3))](u['CollaborationStatus']['NOT_COLLAB'])),(this[_0xa8e077(0x1e1)]=_0x5dddab,this['_injector']=_0x5b6629,this[_0xa8e077(0xb4)]=_0x15dd57,this[_0xa8e077(0xb8)]=_0x549214,this[_0xa8e077(0x2c8)](),this[_0xa8e077(0x1b1)]());}['_initStatusListener'](){const _0x54b2ab=_0xde5e7f;this[_0x54b2ab(0x19e)](this[_0x54b2ab(0x1e1)][_0x54b2ab(0x13d)][_0x54b2ab(0x27a)](I[_0x54b2ab(0x2aa)](()=>{const _0x26c67f=_0x54b2ab,_0x2767e7=this['_univerInstanceService'][_0x26c67f(0x15b)]();return _0x2767e7?this[_0x26c67f(0xb4)][_0x26c67f(0x1fb)](_0x2767e7[_0x26c67f(0x317)]()):I['of'](null);}),I[_0x54b2ab(0x2aa)](_0x5d2c2f=>_0x5d2c2f?_0x5d2c2f[_0x54b2ab(0x230)]:I['of'](u[_0x54b2ab(0x7d)][_0x54b2ab(0xcc)])))[_0x54b2ab(0x272)](_0x31c70b=>{const _0x42ab90=_0x54b2ab;this[_0x42ab90(0x304)][_0x42ab90(0x271)](_0x31c70b);}));}[_0xde5e7f(0x2c8)](){const _0xe23af4=_0xde5e7f;this[_0xe23af4(0x19e)](this[_0xe23af4(0xb8)][_0xe23af4(0x32a)](O[_0xe23af4(0x180)]['HEADER_MENU'],()=>O[_0xe23af4(0x298)](ot({'status$':this[_0xe23af4(0x304)][_0xe23af4(0xa3)]()}),this[_0xe23af4(0x2eb)])));}},exports[_0xde5e7f(0x28c)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0xde5e7f(0x300)](a['Injector'])),K(0x2,a[_0xde5e7f(0x300)](u[_0xde5e7f(0xcd)])),K(0x3,O[_0xde5e7f(0x33b)])],exports[_0xde5e7f(0x28c)]);function ot(_0x85b0c8){const {status$:_0x2e1103}=_0x85b0c8;return function(){const _0x3af479=_0x3cd0;return M[_0x3af479(0x2be)](it,{'status$':_0x2e1103});};}const Oe=a[_0xde5e7f(0x17d)](_0xde5e7f(0x328));var at=Object['getOwnPropertyDescriptor'],ct=(_0x268285,_0x549b6c,_0x2dc253,_0x48e343)=>{const _0x1c5c9b=_0xde5e7f;for(var _0x14497c=_0x48e343>0x1?void 0x0:_0x48e343?at(_0x549b6c,_0x2dc253):_0x549b6c,_0x4a5635=_0x268285[_0x1c5c9b(0x1ef)]-0x1,_0x518513;_0x4a5635>=0x0;_0x4a5635--)(_0x518513=_0x268285[_0x4a5635])&&(_0x14497c=_0x518513(_0x14497c)||_0x14497c);return _0x14497c;},Y=(_0x33c02c,_0x7a959d)=>(_0x2d0bd0,_0x1c4dfe)=>_0x7a959d(_0x2d0bd0,_0x1c4dfe,_0x33c02c);exports[_0xde5e7f(0x313)]=class extends a['RxDisposable']{constructor(_0x17f044,_0x382255,_0x7fc99,_0x5a1caa,_0x499ffa){const _0x16cc30=_0xde5e7f;super(),this[_0x16cc30(0x345)]=_0x17f044,this[_0x16cc30(0x1cf)]=_0x382255,this[_0x16cc30(0x220)]=_0x7fc99,this[_0x16cc30(0x89)]=_0x5a1caa,_0x499ffa?_0x499ffa==null||_0x499ffa[_0x16cc30(0x159)]()['then'](()=>this[_0x16cc30(0x8c)]()):(this[_0x16cc30(0x1cf)]['debug'](_0x16cc30(0x295),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x16cc30(0x8c)]());}async['_init'](){const _0x6649c6=_0xde5e7f,_0x4244df=this[_0x6649c6(0x345)][_0x6649c6(0x168)]('unit'),_0x438764=this[_0x6649c6(0x345)][_0x6649c6(0x168)](_0x6649c6(0x1ab)),_0x16584d=this['_urlService']['getParam'](_0x6649c6(0x2af));if(!_0x4244df||!_0x438764){this['_logService']['debug'](_0x6649c6(0x295),_0x6649c6(0x8e));return;}const _0x6c4852=await this[_0x6649c6(0x89)][_0x6649c6(0x2ba)](_0x4244df,Number(_0x438764),_0x16584d);_0x6c4852&&_0x6c4852 instanceof a[_0x6649c6(0x1b8)]&&this['_setupSubUnitSync'](_0x6c4852);}async[_0xde5e7f(0x347)](_0x2f1270){const _0x561ad2=_0xde5e7f;await this[_0x561ad2(0x1af)](_0x2f1270),_0x2f1270[_0x561ad2(0xd8)][_0x561ad2(0x27a)](I[_0x561ad2(0x2c7)](this[_0x561ad2(0x307)]))[_0x561ad2(0x272)](_0x2e6814=>{const _0x1b13ae=_0x561ad2;_0x2e6814&&this[_0x1b13ae(0x155)](_0x2e6814);}),this[_0x561ad2(0x345)][_0x561ad2(0x224)][_0x561ad2(0x27a)](I['takeUntil'](this[_0x561ad2(0x307)]))[_0x561ad2(0x272)](()=>this[_0x561ad2(0x1af)](_0x2f1270));}[_0xde5e7f(0x155)](_0x1c3108,_0x36511b=!0x1){const _0xb70757=_0xde5e7f,_0x4a12c6=this[_0xb70757(0x345)]['getParam']('subunit');_0x1c3108[_0xb70757(0x2f5)]()!==_0x4a12c6&&this[_0xb70757(0x345)]['setParam'](_0xb70757(0x2af),_0x1c3108['getSheetId'](),_0x36511b);}async[_0xde5e7f(0x1af)](_0x2b7614){const _0x37b8c8=_0xde5e7f;var _0x576e54;const _0x1beba1=this[_0x37b8c8(0x345)][_0x37b8c8(0x168)](_0x37b8c8(0x2af));if(!_0x1beba1||!_0x2b7614['getSheetBySheetId'](_0x1beba1)){const _0x18c180=_0x2b7614[_0x37b8c8(0x128)]()[0x0],_0x181777=_0x2b7614['getSheetBySheetId'](_0x18c180);if(!_0x181777)return;this[_0x37b8c8(0x155)](_0x181777,!0x0),await this['_commandService'][_0x37b8c8(0x1cc)](v[_0x37b8c8(0xe5)]['id'],{'unitId':_0x2b7614[_0x37b8c8(0x317)](),'subUnitId':_0x18c180});return;}((_0x576e54=_0x2b7614[_0x37b8c8(0x2ca)]())==null?void 0x0:_0x576e54[_0x37b8c8(0x2f5)]())!==_0x1beba1&&await this[_0x37b8c8(0x220)][_0x37b8c8(0x1cc)](v[_0x37b8c8(0xe5)]['id'],{'unitId':_0x2b7614[_0x37b8c8(0x317)](),'subUnitId':_0x1beba1});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0xde5e7f(0x32c)]),Y(0x3,a[_0xde5e7f(0x300)](u['DataLoaderService'])),Y(0x4,a[_0xde5e7f(0x287)](qe['IRemoteInstanceService']))],exports[_0xde5e7f(0x313)]);var lt=Object[_0xde5e7f(0x100)],_t=(_0x208641,_0x4795b5,_0xc1800d,_0x1d6911)=>{const _0x400772=_0xde5e7f;for(var _0x3d69a6=_0x1d6911>0x1?void 0x0:_0x1d6911?lt(_0x4795b5,_0xc1800d):_0x4795b5,_0x4cfc56=_0x208641[_0x400772(0x1ef)]-0x1,_0x577b84;_0x4cfc56>=0x0;_0x4cfc56--)(_0x577b84=_0x208641[_0x4cfc56])&&(_0x3d69a6=_0x577b84(_0x3d69a6)||_0x3d69a6);return _0x3d69a6;},De=(_0x581562,_0x22b4ec)=>(_0x54c22d,_0x327ca3)=>_0x22b4ec(_0x54c22d,_0x327ca3,_0x581562);let me=class extends a[_0xde5e7f(0x286)]{constructor(_0x15449f,_0x5b9e83){const _0x5bf165=_0xde5e7f;super(),this[_0x5bf165(0x17e)]=_0x15449f,this[_0x5bf165(0x235)]=_0x5b9e83,this['_init']();}[_0xde5e7f(0x8c)](){const _0x512619=_0xde5e7f,_0x2d2bc4=this;this['disposeWithMe'](this[_0x512619(0x17e)]['addClipboardHook']({'onBeforePasteImage':async _0x2aa39a=>{const _0x50bb3c=_0x512619,_0x397215=await _0x2d2bc4[_0x50bb3c(0x235)][_0x50bb3c(0x189)](_0x2aa39a);return _0x397215?{'source':_0x397215[_0x50bb3c(0x242)],'imageSourceType':_0x397215[_0x50bb3c(0x2f3)]}:null;}}));}};me=_t([De(0x0,T[_0xde5e7f(0x120)]),De(0x1,ze[_0xde5e7f(0x268)])],me);const Ne=[_0xde5e7f(0x2fe),_0xde5e7f(0x28b),_0xde5e7f(0x1db),_0xde5e7f(0x1ad),'blue.400',_0xde5e7f(0x2db)];class Re extends a[_0xde5e7f(0x109)]{constructor(){const _0x242112=_0xde5e7f;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x242112(0x85),0x0);}['assignAColorForMemberID'](_0x2a821a){const _0x1cb99e=_0xde5e7f;if(this['_assignedColors']['has'](_0x2a821a))return this[_0x1cb99e(0x28e)][_0x1cb99e(0x247)](_0x2a821a);const _0x48a501=Ne[this[_0x1cb99e(0x85)]];return this[_0x1cb99e(0x85)]=(this[_0x1cb99e(0x85)]+0x1)%Ne[_0x1cb99e(0x1ef)],this[_0x1cb99e(0x28e)][_0x1cb99e(0x258)](_0x2a821a,_0x48a501),_0x48a501;}}function Fe(_0x2e7d98){let _0x44fa52='';for(const _0x2e0b3d of _0x2e7d98){const {startOffset:_0x6726fd,endOffset:_0x3e779e,isActive:_0xfe95c8,rangeType:_0x6858da,segmentId:_0x32e960,segmentPage:_0x54d82d}=_0x2e0b3d;_0x44fa52['length']&&(_0x44fa52+=','),_0x44fa52+=_0x6726fd+':'+_0x3e779e+':'+(_0xfe95c8?'1':'0')+':'+_0x6858da+':'+_0x32e960+':'+_0x54d82d;}return _0x44fa52;}function ht(_0x12b1b8){const _0x5ab54a=_0xde5e7f,_0x4e9ab6=_0x12b1b8[_0x5ab54a(0x146)](','),_0x774842=[];for(const _0x3102a7 of _0x4e9ab6){const [_0x56ca22,_0x257a83,_0x5c6529,_0xc160d8,_0x114323,_0x228d55]=_0x3102a7[_0x5ab54a(0x146)](':');_0x774842[_0x5ab54a(0x32f)]({'startOffset':Number(_0x56ca22),'endOffset':Number(_0x257a83),'collapsed':_0x56ca22===_0x257a83,'isActive':_0x5c6529==='1','rangeType':_0xc160d8===a['DOC_RANGE_TYPE'][_0x5ab54a(0x1bd)]?a['DOC_RANGE_TYPE'][_0x5ab54a(0x1bd)]:a['DOC_RANGE_TYPE'][_0x5ab54a(0x228)],'segmentId':typeof _0x114323==_0x5ab54a(0x29c)?String(_0x114323):'','segmentPage':Number(_0x228d55!=null?_0x228d55:-0x1)});}return _0x774842['some'](_0x232f6d=>_0x232f6d[_0x5ab54a(0xb9)])||(_0x774842[0x0][_0x5ab54a(0xb9)]=!0x0),_0x774842;}class be extends a['RxDisposable']{constructor(){const _0x4ef46a=_0xde5e7f;super(...arguments),_(this,_0x4ef46a(0x1e5),new I[(_0x4ef46a(0x1b3))](null)),_(this,_0x4ef46a(0x2e8),this[_0x4ef46a(0x1e5)][_0x4ef46a(0xa3)]());}[_0xde5e7f(0x241)](_0x19a5d0){const _0x223515=_0xde5e7f,{unitID:_0x25b529,memberID:_0x4b0d17,textRanges:_0x53a1c7}=_0x19a5d0,_0x3a68fe=Fe(_0x53a1c7);if(_0x3a68fe==='')return;const _0x467f55={'unitID':_0x25b529,'memberID':_0x4b0d17,'selection':_0x3a68fe};this[_0x223515(0x1e5)][_0x223515(0x271)](_0x467f55);}}function _0x1c85(){const _0x1b72cc=['Warning','startColumn','evenodd','RECT','black','DocIMEInputManagerService','delete','_startCalculationLimit','_docTransformIMECacheService','ILocalStorageService','mask','status$','Tools','_eventUnsubscribe','_config','init','_imageIoService','_anchor','_selfUnitIDs','error','AUTHORIZE_CODE_ILLEGAL','REDEMPTION_USER_REDEEM_TIMES_EXCEED','hovered','Loading','_shapes','#FFF','YUUMI_UNABLE_LOAD_URL','RegularPolygon','syncEditingCollabCursor','source','http://www.w3.org/2000/svg','undoState','UNDEFINED','453909KkfmUn','get','_getSheetObject','ITransformService','_getAnchorBounding','_drawRectRange','getSheetObject','name','UNIVER_SHEET','SUBMIT_CHANGESET_TIMEOUT','mutations','getCollabCursors$','_collaborationSessionService','clipPath','onTransformChange$','/universer-api/license/formula/limit/start','PY_RUNTIME_SCRIPT_ERROR','_handleHeartbeatEvent','set','key','ILocalCacheService','collabStatus.notCollab','_showGuardMessage','Subject','_range','SetTextSelectionsOperation','from','contains','setConfig','DeleteRangeMoveLeftCommandId','MessageType','isTransformMutationFailure','replaceState','REDEMPTION_USER_NOT_ELIGIBLE','IImageIoService','onPointerMove$','setStateCache','FormulaExecuteStageType','IBeforeCloseService','ENSURE_SNAPSHOT_EXECUTION','_initDependencies','searchParams','DocSkeletonManagerService','next','subscribe','filter','1em','getRangePointData','currentColor','unshift','_localStorageService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','pipe','onPointerEnter$','RichTextEditingMutation','ENTITLE_CAN_NOT_BUY_LOWER_OTP','onPointerLeave$','2bUFbqm','handleDeleteRangeMoveUp','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','ENTITLE_NEED_BILLING_ADDRESS','find','_initCommandExecutedListener','origin','RxDisposable','Optional','ALREADY_EXISTS','FormulaExecutedStateType','INVITE_CODE_REQUIRED','jiqing.500','DesktopCollaborationStatusDisplayController','InsertRangeMoveRightCommandId','_assignedColors','univerjs-icon\x20univerjs-icon-','jsxs','YUUMI_RATE_OVER_LIMIT','pushState','width','Rectangle','[CollaborationDataLoaderController]','setParam','measureText','connectInjector','save','setInterval','dispose','string','_transformPreviousActiveRange','_setFormulaLimitStatus','_docTransformSelectionsService','CollaborationUIEventId','_collabCursorController','none','text','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','startsWith','assign','_docTransformStateCacheService','_refreshCollabCursors','transformMutation','switchMap','sheetId','Shape','path','UNRECOGNIZED','subunit','YUUMI_NO_CUBOID_FOR_QUESTION','totalFormulasToCalculate','SessionStatus','_id','MOBILE_HAS_BEEN_BOUND','arc','lineTo','_memberID','map','complete','loadUnit','actions','dirtyRanges','column','jsx','getOffsetConfig','_colorAssignService','Vector2','current','getLocalCacheKey','catch','_getFormulaLimitStatus','ColorKit','takeUntil','_initStatusComponent','M0\x200H16V16H0z','getActiveSheet','_initResize','MoveRangeCommandId','_revisionService','getSkeleton','runId','collab-rect-range-','bottom','onMouseMove','defineProperty','moveTo','_lastResponseTimestamp','174368XsdCry','ERROR_AGAIN','handleDeleteRangeMoveLeft','EMAIL_HAS_BEEN_BOUND','CollaborationSessionService','yellow.400','ENTITLE_CHAT_LIMIT_EXCEED','DocStateChangeManagerService','_hasFormulaInDirtyRanges','event$','5162048vBGOJJ','_getScale','SOCKET_FAILED_RETRY','IUniverInstanceService','displayName','INVALID_ARGUMENT','SNAPSHOT_INVALID_SNAPSHOT','UNIVER_DOC','collabCursorState$','BrowserCollaborationSocketService','getCellPositionByOffset','_injector','...','idSuffix','_color','cursorInfo$','ENTITLE_DUP_SUBSCRIPTION','110rZGZuc','_transformService','imageSourceType','ILogService','getSheetId','_initEvent','createInstance','collab-text-anchor-','_taskIds','_currentUsage','_handleEvent','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','7643988iongDE','purple.300','doc.mutation.rich-text-editing','Inject','onLocalMutation','Module','_renderManagerService','_status$','debounceTime','round','dispose$','range','OTHER_CLIENTS_EDITING','_lastPointer','IMessageService','MemberService','_cachedData','SetFormulaCalculationStartMutation','YUUMI_ALL_TABLES_IS_INVALID','CONNECTOR_DATA_TOO_LARGE','LOGIN_FAILED','defIds','CollaborationDataLoaderController','getCurrentSelections','invokeId','_initUnhandledRejectionListener','getUnitId','554429iktrbB','_session','replace','collabStatus.conflict','_saveCache','_checkAndWaitForCalculationPermission','getUnitStatus$','_releaseCalculationLimit','_pollingInterval','COLORS','getStateCache','_scene','parse','with','CollaborationEvent','selection','uni.network.url-service','WebBrowserSingleActiveUnitService','registerComponent','_cursorInfo$','ICommandService','post','height','push','_localCacheService','collaboration.closeRoom','_entityInit$','currentTheme$','_initWindowErrorListener','_onRefRangeChange','_anchorDot','SheetCollabCursorShape','_scheduleClearOtherTimer','getSheetBySheetId','_maxFormulaLimit','IUIPartsService','subUnitId','trim','isArray','editingUnit','FromArray','InsertRangeMoveDownCommandId','includes','transformRemoteChangeset','colno','_urlService','WECHAT_HAS_BEEN_BOUND','_setupSubUnitSync','getAncestorScale','_getSessionTicket','RefRangeService','NodePositionConvertToRectRange','parseInt','_drawAnchor','CollaborationStatus','ENTITLE_COUPON_USED_UP','transformByState','?taskId=','handleInsertRow','off-line-icon_clip0_910_343','entityInit$','_collaborationUIEventService','_colorIndex','_textBubble','currentUsage','transformMutationsWithChangeset','_dataLoaderService','newValue','_removeCollabCursors','_init','YUUMI_SUBSCRIPTION_NOT_FOUND','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','INVITE_CODE_ALREADY_BOUND','restore','_registerDependencies','removeParam','REDEMPTION_CODE_INACTIVE','redoState','IURLService','params','executionId','AWAITING_WITH_PENDING','sheetID','_hover','ISnapshotServerService','CURRENT_STATUS_CANNOT_OPERATE','_hideTimer','LICENSE_MAX_UNITS_EXCEEDED','_registerRenderDependencies','_docSyncEditingCollabCursorService','forwardRef','SUCCESS','asObservable','top','SYNCED','generateRandomId','ACTIVE_UNIT_EVENT_CHANNEL','LICENSE_IMPORT_SIZE_EXCEEDED','fromEvent','isEditing','_removeClearOtherTimer','collaboration.single-unit.warning','_online','CONFLICT','clearTimeout','collabStatus.offline','44bchujx','getUniverSheetInstance','setTimeout','_collaborationController','Error','_hovered','ENTITLE_COUPON_EXPIRED','_uiPartsService','isActive','max','flatMap','_initUserListener','_handleJoinEvent','INVALID_INVITE_CODE','fillRule','handleInsertRangeMoveDown','m2Prime','stack','svg','TEXT_RANGE_LAYER_INDEX','fillStyle','tag','APPLY_PERMISSION_DENIED','_labelPosition','white','setAlpha','getColor','NOT_COLLAB','CollaborationController','collab-text-range-','NO_OTHER_CLIENTS_EDITING','getMergeData','UniverCollaborationClientPlugin','toRgbString','closePath','search','roomMembers','RevisionService','getCurrent','activeSheet$','UniverInstanceType','releaseFormulaLimitUrl','getMember','ONLINE','all','START_CALCULATION','permission.content','_handleHover','OTHER_CLIENT_EDITING','url(#$1','_unitOnClients','_updateLocalCursor','SetWorksheetActivateCommand','subscribeEvent','labelPosition','wsSessionTicketUrl','PAYMENT_CHANNEL_NOT_SUPPORT','has','startRow','APPLY_DUPLICATED','_context','eventID','_configService','_drawTextRange','deserializeRangeWithSheet','docStateChange$','socket$','endRow','session.collaboration-timeout','PENDING','_cursorShapes','REDEMPTION_CODE_HAS_BEEN_CREATED','ranges','REDEMPTION_CODE_NOT_STARTED','collaboration-client-ui.config','hide','LOGIN_TOKEN_PROCESSING_FAILED','triggerDblclick','entries','getOwnPropertyDescriptor','engine','[Window\x20Error]:\x20','values','UnitStatus','createElement','SHEET_VIEWPORT_KEY','_disabled','INotificationService','Disposable','getMemberID','saveTaskMap','ThemeService','MOBILE_VERIFY_CODE_MISMATCH','CHANGESET_REVISION_CONFILICT','_cursor','limitInfo','onRendered','_onCursorUpdate','unhandledrejection','handleIRemoveRow','univer-flex\x20univer-items-center','toDisposable','getItem','WebURLService','getViewport','m1Prime','session.connection-failed','InsertColCommandId','merge','useDependency','REDEMPTION_INVALID_CODE','IDocClipboardService','fill','formula.calculation.unable','translate(.97)','cursorInfo','_unitStatus','CanceledError','APPLY_NON_SEQUENTIAL_REVISION','getUnhiddenWorksheets','DocSelectionManagerService','stage','[RemoteUniscriptService]:\x20no\x20focused\x20unit','USER_NOT_INVITED_CODE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_initCommandInterceptor','unitId','transformStateCache','_handleLeaveEvent','collab-client.tooltip.reconnect','_clearPolling','_startDocCollabCursor','DisposableCollection','_render','_sheetSkeletonManagerService','application/json','handleInsertCol','unload','toString','MUTATION','focused$','addObject','ENTITLE_REPORT_LIMIT_EXCEED','updateOfflineData','history','Rect','stringify','colorChannel1','getUndoRedoMutationParamsCache','split','_getMergeRange','getCoordByCell','lineno','serializeRangeWithSheet','unsubscribe','APPLY_REVISION_CONFILICT','_roomMembers$','_entities','_memberService','CollaborationUIEventService','RemoteUniscriptService','COMPLETION_FINISHED','[Unhandled\x20Rejection]:\x20','send','_updateURLWithCurrentState','drawWith','ENTITLE_INVALID_COUPON_CODE','sessionTicket','whenReady','location','getFocusedUnit','_messageService','exhaustSavingTask','requireSession','_createSocketURL','ENTITLE_USE_COUPON_NOT_1ST_TRADE','unitID','row','YUUMI_URL_COL_OUT_OF_RANGE','toStringTag','add','isFormulaString','stageInfo','getParam','_onCursorDelete','memberID','registerRenderModule','IConfigService','pluginName','LICENSE_EXPORT_SIZE_EXCEEDED','roomMembers$','0\x200\x2016\x2016','getVpScrollXYInfoByPosToVp','getTypeOfUnitAdded$','5956055dYcDdJ','_applyCommand','_document','getformulaLimitStatusUrl','_docStateChangeManagerService','min','_scheduleSaving','getColorFromTheme','formula.calculation.started','_collabSessionService','createIdentifier','_docClipboardService','_monkeyPatchLogService','BuiltInUIPart','code','USER_NOT_FOUND','SheetSkeletonManagerService','combineLatest','FETCH_MISS','APPLY_REJECT','_updateCollabCursors','transform','saveImage','defs','_toggleOnline','_themeService','useObservable','addEventListener','[LogService\x20Error]:\x20','deepClone','endColumn','storage','unit','CommandType','children','show','ENTITLE_INSUFFICIENT_QUOTA','LOCAL_CACHE_INTERVAL','USERS_LEAVE','shift','makeDirty','url(#off-line-icon_clip0_910_343)','handleInsertRangeMoveRight','disposeWithMe','findNodePositionByCharIndex','RemoveColCommandId','isFormulaId','Failed','_getSaveTimeout','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','EMAIL_VERIFY_CODE_MISMATCH','_beforeCloseService','forEach','_transformHistoryAndStateStack','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','skeleton','type','setActiveRange','red.300','size','_updateSubUnitFromURLParams','setShapeProps','_initStatusListener','_refRangeService','BehaviorSubject','_notificationService','LocaleService','maxFormulaLimit','HTTPService','Workbook','INVITE_CODE_HAS_BEEN_UES','registerDependencies','TOO_MANY_REQUESTS','_backgroundColor','TEXT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','collabStatus.synced','EffectRefRangId','now','_startSheetCollabCursor','_draw','getValue','data','REDEMPTION_CODE_FULLY_REDEEMED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','div','NOT_FOUND','use','DOC_RANGE_TYPE','executeCommand','removeEventListener','IRenderManagerService','_logService','_checkCalculationAvailable','_httpService','_send','9ZKvuBl','_clearOtherTimers','12786490guteAF','UNAUTHENTICATED','color','loadOfflineData','_heartbeatTimer','body','green.600','saveOfflineData','PERMISSION_DENIED','clearInterval','addHandlerCallback','transformSelections','_univerInstanceService','UPDATE_CURSOR','_doCreateSocket','_uploadLog','_collabCursorState$','DATA_SOURCE_TOO_LARGE','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','DeleteRangeMoveUpCommandId','disposeUnit','OFFLINE','JOIN_ROOM_FAILED','href','mapTo','SetFormulaCalculationNotificationMutation','length','INTERNAL_ERROR','setUndoRedoMutationParamsCache','Injector','getCurrentRevOfUnit','univer-mr-2\x20univer-flex\x20univer-text-xl','SOCKET_FAILED','_syncEditingCollabCursorService','getRenderById','_ensureSubject','USER_IS_ANONYMOUS','Unknown\x20user','getCollabEntity$','message','_docSkeletonManagerService','onCommandExecuted','on-line-icon','getConfig','disableLocalCache','InsertRowCommandId','getDocRanges','attrs','then','_localeService','fillText','assignAColorForMemberID','VIEW_MAIN','xlink:href','currentSkeleton$','session.will-retry','_cursors','_setupBeforeClosingHandler','_saveTaskMap','sessionStatus$','_initEntityListener','UniverCollaborationClientUIPlugin','startFormulaLimitUrl','distinctUntilChanged','DocCollaborationEntity','isTransformMutationsWithChangesetSuccess','_name','_toggleOffline','transformIMECache','getTypeOfUnitDisposed$','filename','_instanceService','fromEventSubject','useRef','textRanges','_commandService','mergeOverrideWithDependencies','_scheduleHeartbeat','SNAPSHOT_HAS_BEEN_REMOVED','urlChange$'];_0x1c85=function(){return _0x1b72cc;};return _0x1c85();}var ut=Object['getOwnPropertyDescriptor'],It=(_0x2b0a1d,_0x305347,_0x5e0219,_0x9776d4)=>{const _0x18797e=_0xde5e7f;for(var _0x18475c=_0x9776d4>0x1?void 0x0:_0x9776d4?ut(_0x305347,_0x5e0219):_0x305347,_0xa2ded1=_0x2b0a1d[_0x18797e(0x1ef)]-0x1,_0x1f7042;_0xa2ded1>=0x0;_0xa2ded1--)(_0x1f7042=_0x2b0a1d[_0xa2ded1])&&(_0x18475c=_0x1f7042(_0x18475c)||_0x18475c);return _0x18475c;},U=(_0x4de4a7,_0x51cb05)=>(_0x1a31b1,_0x3b5f1c)=>_0x51cb05(_0x1a31b1,_0x3b5f1c,_0x4de4a7);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x2e71c8,_0x12830d,_0x435cde,_0x3d77a9,_0x228a33,_0x3fb547,_0x4dde46,_0x326019,_0x239f9e){const _0x2af43b=_0xde5e7f;super(),_(this,'_online',!0x1),_(this,_0x2af43b(0x8c),!0x1),_(this,_0x2af43b(0x32b),new I['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x2af43b(0x32b)][_0x2af43b(0xa3)]()),_(this,_0x2af43b(0x14d),new I[(_0x2af43b(0x1b3))]([])),_(this,_0x2af43b(0x16f),this[_0x2af43b(0x14d)][_0x2af43b(0x27a)](I[_0x2af43b(0x305)](St))),_(this,_0x2af43b(0xe4),a['debounce'](_0x4d72b4=>{const _0x5ece21=_0x2af43b,_0x22bde0={'eventID':g[_0x5ece21(0x326)][_0x5ece21(0x1e2)],'data':{'unitID':this[_0x5ece21(0x161)],'memberID':this[_0x5ece21(0x319)][_0x5ece21(0x10a)](),'selection':Fe(_0x4d72b4)}};this[_0x5ece21(0x319)][_0x5ece21(0x154)](_0x22bde0,this[_0x5ece21(0x161)]);},dt)),(this[_0x2af43b(0x161)]=_0x2e71c8,this[_0x2af43b(0x319)]=_0x12830d,this[_0x2af43b(0x2eb)]=_0x435cde,this['_colorAssignService']=_0x3d77a9,this[_0x2af43b(0x14f)]=_0x228a33,this['_syncEditingCollabCursorService']=_0x3fb547,this[_0x2af43b(0x2f2)]=_0x4dde46,this['_univerInstanceService']=_0x326019,this['_commandService']=_0x239f9e);}get[_0xde5e7f(0x124)](){const _0x3652b1=_0xde5e7f;return this['_cursorInfo$'][_0x3652b1(0x1c4)]();}get['roomMembers'](){const _0x1ed7af=_0xde5e7f;return this['_roomMembers$'][_0x1ed7af(0x1c4)]();}[_0xde5e7f(0x29b)](){const _0x46af54=_0xde5e7f;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x46af54(0x32b)][_0x46af54(0x2b9)](),this['_roomMembers$'][_0x46af54(0x271)]([]),this[_0x46af54(0x14d)][_0x46af54(0x2b9)]();}[_0xde5e7f(0x234)](){const _0x50adff=_0xde5e7f;this[_0x50adff(0x8c)]||(this[_0x50adff(0x8c)]=!0x0,this[_0x50adff(0x319)][_0x50adff(0x210)][_0x50adff(0x27a)](I[_0x50adff(0x2c7)](this[_0x50adff(0x307)]))[_0x50adff(0x272)](_0x5405f7=>{const _0x1ba41a=_0x50adff;_0x5405f7===u[_0x1ba41a(0x2b2)][_0x1ba41a(0xdc)]?this[_0x1ba41a(0x18b)]():this['_toggleOffline']();}),this[_0x50adff(0x319)][_0x50adff(0x2df)][_0x50adff(0x27a)](I['takeUntil'](this[_0x50adff(0x307)]))[_0x50adff(0x272)](_0x5d7a4c=>{const _0x561ec8=_0x50adff,_0x655cd0=_0x5d7a4c[_0x561ec8(0xee)];_0x655cd0===g[_0x561ec8(0x326)][_0x561ec8(0x1e2)]&&this[_0x561ec8(0x112)](_0x5d7a4c),_0x655cd0===g[_0x561ec8(0x326)][_0x561ec8(0x199)]&&this['_onCursorDelete'](_0x5d7a4c);}),this['disposeWithMe'](this['_commandService'][_0x50adff(0x1fe)](_0x102d72=>{const _0x276df3=_0x50adff,_0x450d4d=_0x102d72[_0x276df3(0x96)];_0x450d4d!=null&&this[_0x276df3(0xad)]&&_0x102d72['id']===V[_0x276df3(0x25f)]['id']&&_0x450d4d[_0x276df3(0x12f)]===this[_0x276df3(0x161)]&&_0x450d4d[_0x276df3(0xaa)]===!0x1&&_0x450d4d[_0x276df3(0xf9)][_0x276df3(0x1ef)]>0x0&&this[_0x276df3(0xe4)](_0x450d4d[_0x276df3(0xf9)]);})),this[_0x50adff(0x1f6)][_0x50adff(0x2e8)][_0x50adff(0x27a)](I[_0x50adff(0x2c7)](this[_0x50adff(0x307)]))[_0x50adff(0x272)](_0x3e2065=>{const _0x209093=_0x50adff;if((_0x3e2065==null?void 0x0:_0x3e2065[_0x209093(0x161)])!==this[_0x209093(0x161)])return;const _0x575ee2={'eventID':g[_0x209093(0x326)][_0x209093(0x1e2)],'data':_0x3e2065};this['_onCursorUpdate'](_0x575ee2);}),this[_0x50adff(0x19e)](this[_0x50adff(0x220)][_0x50adff(0x1fe)](_0x32f846=>{const _0x2c3886=_0x50adff;if(_0x32f846[_0x2c3886(0x96)]==null)return;const _0x2d0896=_0x32f846[_0x2c3886(0x96)];if(_0x32f846['id']!==V[_0x2c3886(0x27c)]['id']||_0x2d0896[_0x2c3886(0x12f)]!==this[_0x2c3886(0x161)])return;const _0x487ce2={'id':_0x2c3886(0x2ff),'params':_0x2d0896},_0x49d5e9=this[_0x2c3886(0x124)];for(const [_0x2d9d9e,_0x584446]of _0x49d5e9){const _0x4aaca1={'id':_0x2c3886(0x2ff),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x584446[_0x2c3886(0xf9)]}},_0x23e834=this['_transformService'][_0x2c3886(0x2a9)](_0x487ce2,_0x4aaca1,!0x1);if(g[_0x2c3886(0x265)](_0x23e834))throw _0x23e834['error'];_0x49d5e9[_0x2c3886(0x258)](_0x2d9d9e,{..._0x584446,'ranges':_0x23e834['m2Prime']['params'][_0x2c3886(0x21f)]});}queueMicrotask(()=>{const _0x41a65b=_0x2c3886;this[_0x41a65b(0x32b)][_0x41a65b(0x271)](_0x49d5e9);});})));}['_onCursorUpdate'](_0xa7f3db){const _0x7a08b8=_0xde5e7f;var _0xcb67a5,_0x3cc32f;const {memberID:_0x5e001d,selection:_0x683f92}=_0xa7f3db['data'],_0x2b6f4e=ht(_0x683f92),_0x312719=(_0x3cc32f=(_0xcb67a5=this[_0x7a08b8(0x14f)][_0x7a08b8(0xdb)](this[_0x7a08b8(0x161)],_0x5e001d))==null?void 0x0:_0xcb67a5[_0x7a08b8(0x24d)])!=null?_0x3cc32f:'Unknown\x20user',_0xb94622={'color':this[_0x7a08b8(0x2c0)][_0x7a08b8(0x208)](_0x5e001d),'name':_0x312719,'ranges':_0x2b6f4e},_0x4e501d=this['cursorInfo'];_0x4e501d[_0x7a08b8(0x258)](_0x5e001d,_0xb94622),this[_0x7a08b8(0x32b)][_0x7a08b8(0x271)](_0x4e501d);}['_onCursorDelete'](_0x49993a){const _0x261bfc=_0xde5e7f,{memberID:_0x38828e}=_0x49993a[_0x261bfc(0x1c5)],_0x26d3f5=this[_0x261bfc(0x124)];_0x26d3f5[_0x261bfc(0x22b)](_0x38828e),this[_0x261bfc(0x32b)]['next'](_0x26d3f5);}[_0xde5e7f(0x18b)](){const _0x23117a=_0xde5e7f;var _0x211831;if(this[_0x23117a(0xad)]=!0x0,((_0x211831=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x211831[_0x23117a(0x317)]())!==this[_0x23117a(0x161)])return;const _0x198f11=this[_0x23117a(0x2eb)][_0x23117a(0x247)](V[_0x23117a(0x129)])['getDocRanges']();Array['isArray'](_0x198f11)&&_0x198f11[_0x23117a(0x1ef)]>0x0&&this[_0x23117a(0xe4)](_0x198f11);}[_0xde5e7f(0x218)](){const _0x58453a=_0xde5e7f;this[_0x58453a(0xad)]=!0x1;}};ve=It([U(0x2,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),U(0x3,a[_0xde5e7f(0x300)](Re)),U(0x4,a[_0xde5e7f(0x300)](u[_0xde5e7f(0x30c)])),U(0x5,a[_0xde5e7f(0x300)](be)),U(0x6,g[_0xde5e7f(0x249)]),U(0x7,a[_0xde5e7f(0x2e3)]),U(0x8,a[_0xde5e7f(0x32c)])],ve);var ft=Object[_0xde5e7f(0x100)],mt=(_0x2a9c54,_0x5c02ee,_0x7b4dea,_0x40cc42)=>{const _0x5a60e2=_0xde5e7f;for(var _0xf9a925=_0x40cc42>0x1?void 0x0:_0x40cc42?ft(_0x5c02ee,_0x7b4dea):_0x5c02ee,_0x2d1d7f=_0x2a9c54[_0x5a60e2(0x1ef)]-0x1,_0x31a257;_0x2d1d7f>=0x0;_0x2d1d7f--)(_0x31a257=_0x2a9c54[_0x2d1d7f])&&(_0xf9a925=_0x31a257(_0xf9a925)||_0xf9a925);return _0xf9a925;},w=(_0x1024ed,_0x1a99ff)=>(_0x39e78c,_0x5d4f08)=>_0x1a99ff(_0x39e78c,_0x5d4f08,_0x1024ed);const vt=0x12c,gt=0x64,Et=()=>{let _0x12f4a0=[],_0x6d7992=!0x1;return _0x5daf0b=>{const _0x5d4d17=_0x3cd0;_0x12f4a0[_0x5d4d17(0x32f)](_0x5daf0b),_0x6d7992||(_0x6d7992=!0x0,setTimeout(()=>{const _0x1ddcf3=_0x5d4d17;_0x12f4a0[_0x1ddcf3(0x1a7)](_0x210301=>_0x210301()),_0x12f4a0=[],_0x6d7992=!0x1;}));};};let ge=class extends a[_0xde5e7f(0x286)]{constructor(_0xbefe88,_0x22343d,_0xc93b05,_0x12b2df,_0x467066,_0x159b15,_0x577e1e,_0x5e3ce7){const _0x40dc9c=_0xde5e7f;super(),_(this,_0x40dc9c(0xad),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x40dc9c(0x1b3))](new Map())),_(this,_0x40dc9c(0x2ef),this['_cursorInfo$'][_0x40dc9c(0xa3)]()),_(this,'_roomMembers$',new I[(_0x40dc9c(0x1b3))]([])),_(this,_0x40dc9c(0x16f),this[_0x40dc9c(0x14d)][_0x40dc9c(0x27a)](I[_0x40dc9c(0x305)](vt))),_(this,_0x40dc9c(0xe4),a['debounce']((_0x147c03,_0x23e925)=>{const _0xcfb414=_0x40dc9c,_0x5187e6={'eventID':g[_0xcfb414(0x326)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xcfb414(0x161)],'memberID':this[_0xcfb414(0x319)][_0xcfb414(0x10a)](),'selection':B[_0xcfb414(0x14a)](_0x147c03,_0x23e925['range'])}};this[_0xcfb414(0x319)]['send'](_0x5187e6,this[_0xcfb414(0x161)]);},gt)),(this['unitID']=_0xbefe88,this['_session']=_0x22343d,this[_0x40dc9c(0x2eb)]=_0xc93b05,this[_0x40dc9c(0x2c0)]=_0x12b2df,this[_0x40dc9c(0x14f)]=_0x467066,this[_0x40dc9c(0x1e1)]=_0x159b15,this[_0x40dc9c(0x220)]=_0x577e1e,this[_0x40dc9c(0x1b2)]=_0x5e3ce7);}get[_0xde5e7f(0x124)](){const _0x4d0c93=_0xde5e7f;return this['_cursorInfo$'][_0x4d0c93(0x1c4)]();}get[_0xde5e7f(0xd5)](){const _0x1ecca0=_0xde5e7f;return this[_0x1ecca0(0x14d)]['getValue']();}['dispose'](){const _0x3532f9=_0xde5e7f;super['dispose'](),this[_0x3532f9(0x32b)][_0x3532f9(0x271)](new Map()),this[_0x3532f9(0x32b)]['complete'](),this[_0x3532f9(0x14d)]['next']([]),this['_roomMembers$'][_0x3532f9(0x2b9)]();}[_0xde5e7f(0x234)](){const _0x2b8010=_0xde5e7f;this[_0x2b8010(0x8c)]||(this[_0x2b8010(0x8c)]=!0x0,this['_session'][_0x2b8010(0x210)]['pipe'](I['takeUntil'](this[_0x2b8010(0x307)]))[_0x2b8010(0x272)](_0x5f25ba=>{const _0x344212=_0x2b8010;_0x5f25ba===u[_0x344212(0x2b2)][_0x344212(0xdc)]?this[_0x344212(0x18b)]():this[_0x344212(0x218)]();}),this['_session'][_0x2b8010(0x2df)][_0x2b8010(0x27a)](I[_0x2b8010(0x2c7)](this['dispose$']))[_0x2b8010(0x272)](_0x3a6ddc=>{const _0xf73b6a=_0x2b8010,_0x22c1d5=_0x3a6ddc[_0xf73b6a(0xee)];_0x22c1d5===g[_0xf73b6a(0x326)][_0xf73b6a(0x1e2)]&&this[_0xf73b6a(0x112)](_0x3a6ddc),_0x22c1d5===g[_0xf73b6a(0x326)][_0xf73b6a(0x199)]&&this[_0xf73b6a(0x169)](_0x3a6ddc);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x2b8010(0x220)]['onCommandExecuted'](_0x224c27=>{const _0x51630c=_0x2b8010;if(this['_online']&&_0x224c27['id']===v['SetSelectionsOperation']['id']&&_0x224c27[_0x51630c(0x96)][_0x51630c(0x12f)]===this[_0x51630c(0x161)]){const _0x3250dd=_0x224c27[_0x51630c(0x96)];this[_0x51630c(0xe4)](_0x3250dd[_0x51630c(0x33c)],_0x3250dd['selections'][0x0]);}})));}[_0xde5e7f(0x112)](_0x1c6f50){const _0x4295b2=_0xde5e7f;var _0xefedc5,_0x5f330f;const {memberID:_0x407786,selection:_0x5017d9}=_0x1c6f50[_0x4295b2(0x1c5)],{sheetName:_0x26d25a,range:_0x59d2f4}=B[_0x4295b2(0xf1)](_0x5017d9),_0x56d59f={'name':(_0x5f330f=(_0xefedc5=this[_0x4295b2(0x14f)][_0x4295b2(0xdb)](this[_0x4295b2(0x161)],_0x407786))==null?void 0x0:_0xefedc5[_0x4295b2(0x24d)])!=null?_0x5f330f:_0x4295b2(0x1fa),'range':this[_0x4295b2(0x147)](_0x26d25a,_0x59d2f4),'sheetID':_0x26d25a,'color':this[_0x4295b2(0x2c0)][_0x4295b2(0x208)](_0x407786),'selection':_0x5017d9},_0x5d71a5=this[_0x4295b2(0x124)];_0x5d71a5[_0x4295b2(0x258)](_0x407786,_0x56d59f),this[_0x4295b2(0x32b)][_0x4295b2(0x271)](_0x5d71a5);}[_0xde5e7f(0x169)](_0x17c67c){const _0x3c223a=_0xde5e7f,{memberID:_0x37e0a3}=_0x17c67c[_0x3c223a(0x1c5)],_0x58be72=this[_0x3c223a(0x124)];_0x58be72[_0x3c223a(0x22b)](_0x37e0a3),this[_0x3c223a(0x32b)][_0x3c223a(0x271)](_0x58be72);}[_0xde5e7f(0x147)](_0x180887,_0x3bd293){const _0x3eddad=_0xde5e7f;var _0x5dc5d1,_0x431f00;const _0x3dacfe=(_0x431f00=(_0x5dc5d1=this[_0x3eddad(0x1e1)][_0x3eddad(0xb2)](this[_0x3eddad(0x161)]))==null?void 0x0:_0x5dc5d1[_0x3eddad(0x339)](_0x180887))==null?void 0x0:_0x431f00[_0x3eddad(0xd0)]();return(_0x3dacfe==null?void 0x0:_0x3dacfe[_0x3eddad(0x283)](_0x4f16bb=>a[_0x3eddad(0x294)][_0x3eddad(0x261)](_0x4f16bb,_0x3bd293)))||_0x3bd293;}[_0xde5e7f(0x335)](){const _0x1d0d47=_0xde5e7f,_0x574dc9=new a[(_0x1d0d47(0x135))](),_0x546692=Et(),_0x2e0b72=()=>{const _0x2343cc=_0x1d0d47;_0x574dc9[_0x2343cc(0x29b)]();const _0x12908a=(_0xa01820,_0x56836c,_0x2ddce1,_0x554e3a)=>{const _0x2d5e74=_0x2343cc;let _0x2b62bb=[];switch(_0xa01820['id']){case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x263)]:{_0x2b62bb=v[_0x2d5e74(0x2d8)](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x1e8)]:{_0x2b62bb=v[_0x2d5e74(0x280)](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x11c)]:{_0x2b62bb=v[_0x2d5e74(0x139)](_0xa01820,_0x554e3a);break;}case v['EffectRefRangId'][_0x2d5e74(0x341)]:{_0x2b62bb=v[_0x2d5e74(0xc0)](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x28d)]:{_0x2b62bb=v[_0x2d5e74(0x19d)](_0xa01820,_0x554e3a);break;}case v['EffectRefRangId'][_0x2d5e74(0x202)]:{_0x2b62bb=v[_0x2d5e74(0x81)](_0xa01820,_0x554e3a);break;}case v['EffectRefRangId'][_0x2d5e74(0x2cc)]:{_0x2b62bb=v['handleMoveRange'](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x1a0)]:{_0x2b62bb=v['handleIRemoveCol'](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)]['RemoveRowCommandId']:{_0x2b62bb=v[_0x2d5e74(0x114)](_0xa01820,_0x554e3a);break;}}const _0x56a73a=v['runRefRangeMutations'](_0x2b62bb,_0x554e3a),_0x2842a0=this[_0x2d5e74(0x124)]['get'](_0x56836c);if(_0x2842a0&&_0x56a73a){const _0x5ab26d={..._0x2842a0,'range':_0x56a73a};this[_0x2d5e74(0x124)]['set'](_0x56836c,_0x5ab26d),_0x546692(()=>{const _0x2601bf=_0x2d5e74,_0x41312b=this[_0x2601bf(0x1b2)]['registerRefRange'](_0x56a73a,_0x3f78d2=>(_0x41312b[_0x2601bf(0x29b)](),_0x12908a(_0x3f78d2,_0x56836c,_0x2ddce1,_0x56a73a)));_0x574dc9[_0x2601bf(0x165)](_0x41312b);});}return{'redos':[],'undos':[]};};this[_0x2343cc(0x124)]['forEach']((_0x448e5d,_0x36a29d)=>{const _0x1a56bc=_0x2343cc,{range:_0x59d9dd,sheetID:_0x4e9df8}=_0x448e5d,_0x5420ee=this[_0x1a56bc(0x1b2)]['registerRefRange'](_0x59d9dd,_0x389e16=>(_0x5420ee[_0x1a56bc(0x29b)](),_0x12908a(_0x389e16,_0x36a29d,_0x4e9df8,_0x59d9dd)));_0x574dc9[_0x1a56bc(0x165)](_0x5420ee);});};this[_0x1d0d47(0x19e)](a[_0x1d0d47(0x116)](this[_0x1d0d47(0x32b)]['subscribe'](()=>{_0x2e0b72();})));}[_0xde5e7f(0x18b)](){const _0x333aeb=_0xde5e7f;var _0x20fb91,_0x49bd50;if(this['_online']=!0x0,((_0x20fb91=this[_0x333aeb(0x1e1)]['getFocusedUnit']())==null?void 0x0:_0x20fb91[_0x333aeb(0x317)]())!==this[_0x333aeb(0x161)])return;const _0x4d5923=(_0x49bd50=this[_0x333aeb(0x2eb)]['get'](v['SheetsSelectionsService'])[_0x333aeb(0x314)]())==null?void 0x0:_0x49bd50[0x0],_0xcb37c0=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x333aeb(0xd9)]['UNIVER_SHEET'])[_0x333aeb(0x2ca)]();_0x4d5923&&_0xcb37c0&&this[_0x333aeb(0xe4)](_0xcb37c0[_0x333aeb(0x2f5)](),_0x4d5923);}[_0xde5e7f(0x218)](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),w(0x3,a[_0xde5e7f(0x300)](Re)),w(0x4,a['Inject'](u[_0xde5e7f(0x30c)])),w(0x5,a[_0xde5e7f(0x2e3)]),w(0x6,a[_0xde5e7f(0x32c)]),w(0x7,a[_0xde5e7f(0x300)](v[_0xde5e7f(0x79)]))],ge);var Ct=Object[_0xde5e7f(0x100)],Tt=(_0x574785,_0x246fb7,_0x3191f9,_0x5c530c)=>{const _0x418912=_0xde5e7f;for(var _0x3b852d=_0x5c530c>0x1?void 0x0:_0x5c530c?Ct(_0x246fb7,_0x3191f9):_0x246fb7,_0x4af298=_0x574785[_0x418912(0x1ef)]-0x1,_0x36d599;_0x4af298>=0x0;_0x4af298--)(_0x36d599=_0x574785[_0x4af298])&&(_0x3b852d=_0x36d599(_0x3b852d)||_0x3b852d);return _0x3b852d;},ce=(_0x5c3b1b,_0x3b3e0c)=>(_0x279bdd,_0x39978f)=>_0x3b3e0c(_0x279bdd,_0x39978f,_0x5c3b1b);let F=class extends a['RxDisposable']{constructor(_0x5dff17,_0x44eedf,_0x4acc22){const _0x246cb2=_0xde5e7f;super(),_(this,_0x246cb2(0x14e),new Map()),_(this,_0x246cb2(0x332),new I[(_0x246cb2(0x25d))]()),(this['_univerInstanceService']=_0x5dff17,this[_0x246cb2(0x2eb)]=_0x44eedf,this[_0x246cb2(0x17c)]=_0x4acc22,this[_0x246cb2(0x8c)]());}[_0xde5e7f(0x29b)](){const _0x25a335=_0xde5e7f;super['dispose'](),this[_0x25a335(0x332)][_0x25a335(0x2b9)](),this[_0x25a335(0x14e)][_0x25a335(0x1a7)](_0x221aca=>_0x221aca[_0x25a335(0x29b)]());}[_0xde5e7f(0x251)](_0x564f71){const _0x50b612=_0xde5e7f;return this[_0x50b612(0x14e)][_0x50b612(0xea)](_0x564f71)?this['_entities'][_0x50b612(0x247)](_0x564f71)[_0x50b612(0x2ef)]:this[_0x50b612(0x332)][_0x50b612(0x27a)](I['filter'](_0x37ba22=>_0x37ba22[_0x50b612(0x161)]===_0x564f71),I[_0x50b612(0x2aa)](_0x1d6a30=>_0x1d6a30[_0x50b612(0x2ef)]));}['_init'](){const _0x4fb681=_0xde5e7f;this[_0x4fb681(0x1e1)][_0x4fb681(0x172)](a['UniverInstanceType'][_0x4fb681(0x24e)])['pipe'](I[_0x4fb681(0x2c7)](this[_0x4fb681(0x307)]))[_0x4fb681(0x272)](async _0x66fc6e=>{const _0x572bbe=_0x4fb681,_0x510da6=_0x66fc6e[_0x572bbe(0x317)](),_0x5c82c7=await this[_0x572bbe(0x1c2)](_0x510da6);this[_0x572bbe(0x332)][_0x572bbe(0x271)](_0x5c82c7),this[_0x572bbe(0x14e)][_0x572bbe(0x258)](_0x510da6,_0x5c82c7);}),this[_0x4fb681(0x1e1)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC'])[_0x4fb681(0x27a)](I['takeUntil'](this[_0x4fb681(0x307)]))[_0x4fb681(0x27a)](I['filter'](_0x2c1c6d=>!_0x2c1c6d[_0x4fb681(0x317)]()[_0x4fb681(0x2a5)]('__')))[_0x4fb681(0x272)](async _0x4317f3=>{const _0x3dfea8=_0x4fb681,_0x260d48=_0x4317f3[_0x3dfea8(0x317)](),_0x4869a3=await this[_0x3dfea8(0x134)](_0x260d48);this[_0x3dfea8(0x332)][_0x3dfea8(0x271)](_0x4869a3),this[_0x3dfea8(0x14e)][_0x3dfea8(0x258)](_0x260d48,_0x4869a3);}),I[_0x4fb681(0x11d)](this[_0x4fb681(0x1e1)][_0x4fb681(0x21a)](a[_0x4fb681(0xd9)]['UNIVER_DOC']),this[_0x4fb681(0x1e1)]['getTypeOfUnitDisposed$'](a[_0x4fb681(0xd9)][_0x4fb681(0x24e)]))[_0x4fb681(0x27a)](I[_0x4fb681(0x2c7)](this['dispose$']))[_0x4fb681(0x272)](_0x1f6c11=>{const _0x3ea82f=_0x4fb681,_0x51606f=_0x1f6c11[_0x3ea82f(0x317)](),_0x2e206c=this['_entities'][_0x3ea82f(0x247)](_0x51606f);_0x2e206c&&(_0x2e206c[_0x3ea82f(0x29b)](),this[_0x3ea82f(0x14e)][_0x3ea82f(0x22b)](_0x51606f));});}async[_0xde5e7f(0x1c2)](_0x194004){const _0x92f70=_0xde5e7f,_0x17ae7e=await this[_0x92f70(0x17c)][_0x92f70(0x15e)](_0x194004),_0x55ade2=this['_injector'][_0x92f70(0x2f7)](ge,_0x194004,_0x17ae7e);return _0x55ade2[_0x92f70(0x234)](),_0x55ade2;}async['_startDocCollabCursor'](_0x1b2c15){const _0x38063a=_0xde5e7f,_0x39f5d6=await this[_0x38063a(0x17c)]['requireSession'](_0x1b2c15),_0x117f7a=this[_0x38063a(0x2eb)]['createInstance'](ve,_0x1b2c15,_0x39f5d6);return _0x117f7a[_0x38063a(0x234)](),_0x117f7a;}};F=Tt([ce(0x0,a[_0xde5e7f(0x2e3)]),ce(0x1,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),ce(0x2,a['Inject'](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x52dbb4,_0x3b6e48){const _0x365ec1=_0xde5e7f;let {radius:_0x33358c,width:_0x159272,height:_0x44068a}=_0x3b6e48;_0x33358c=_0x33358c!=null?_0x33358c:0x0,_0x159272=_0x159272!=null?_0x159272:0x1e,_0x44068a=_0x44068a!=null?_0x44068a:0x1e;let _0x120c4d=0x0,_0x59cb31=0x0,_0x5e804c=0x0;_0x120c4d=_0x59cb31=_0x5e804c=Math[_0x365ec1(0x178)](_0x33358c,_0x159272/0x2,_0x44068a/0x2),_0x52dbb4['beginPath'](),_0x52dbb4[_0x365ec1(0x2d4)](_0x120c4d,0x0),_0x52dbb4[_0x365ec1(0x2b6)](_0x159272-_0x59cb31,0x0),_0x52dbb4[_0x365ec1(0x2b5)](_0x159272-_0x59cb31,_0x59cb31,_0x59cb31,Math['PI']*0x3/0x2,0x0,!0x1),_0x52dbb4[_0x365ec1(0x2b6)](_0x159272,_0x44068a-_0x5e804c),_0x52dbb4[_0x365ec1(0x2b5)](_0x159272-_0x5e804c,_0x44068a-_0x5e804c,_0x5e804c,0x0,Math['PI']/0x2,!0x1),_0x52dbb4[_0x365ec1(0x2b6)](0x0,_0x44068a),_0x52dbb4[_0x365ec1(0x2b6)](0x0,_0x120c4d),_0x52dbb4[_0x365ec1(0x2b5)](_0x120c4d,_0x120c4d,_0x120c4d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x52dbb4[_0x365ec1(0xd3)](),_0x3b6e48[_0x365ec1(0x121)]&&(_0x52dbb4[_0x365ec1(0x299)](),_0x52dbb4[_0x365ec1(0xc5)]=_0x3b6e48[_0x365ec1(0x121)],_0x3b6e48[_0x365ec1(0xbf)]===_0x365ec1(0x227)?_0x52dbb4[_0x365ec1(0x121)](_0x365ec1(0x227)):_0x52dbb4['fill'](),_0x52dbb4[_0x365ec1(0x90)]());}class re extends C[_0xde5e7f(0x2ac)]{constructor(_0x2b576a,_0x23006c){const _0x26138d=_0xde5e7f;super(_0x2b576a,_0x23006c),_(this,_0x26138d(0x1d7)),_(this,_0x26138d(0x2a3)),(this[_0x26138d(0x1d7)]=_0x23006c==null?void 0x0:_0x23006c[_0x26138d(0x1d7)],this[_0x26138d(0x2a3)]=_0x23006c==null?void 0x0:_0x23006c['text']);}static['drawWith'](_0x38b351,_0x41de1d){const _0x162a3a=_0xde5e7f,{text:_0x383db3,color:_0x52de36}=_0x41de1d;_0x38b351[_0x162a3a(0x299)](),_0x38b351['font']=_0x162a3a(0x1c7);const _0x194e82=_0x38b351[_0x162a3a(0x297)](_0x383db3)[_0x162a3a(0x293)],_0x21aab0=Math[_0x162a3a(0x178)](_0x194e82+0x2*le,Ue);Ot(_0x38b351,{'height':X,'radius':0x4,'width':_0x21aab0,'fill':_0x52de36}),_0x38b351[_0x162a3a(0xc5)]=_0x162a3a(0x23e);const _0x3c65ce=le,_0x3d7dc3=X-pt,_0x48ac78=Ue-0x2*le;if(_0x194e82>_0x48ac78){let _0x4cd277='',_0x1c0a8a=0x0;for(const _0x195498 of _0x383db3){const _0x302e03=_0x38b351[_0x162a3a(0x297)](_0x195498)['width'];if(_0x1c0a8a+_0x302e03<=_0x48ac78-_0x38b351['measureText'](_0x162a3a(0x2ec))[_0x162a3a(0x293)])_0x4cd277+=_0x195498,_0x1c0a8a+=_0x302e03;else{_0x4cd277+=_0x162a3a(0x2ec);break;}}_0x38b351[_0x162a3a(0x207)](_0x4cd277,_0x3c65ce,_0x3d7dc3);}else _0x38b351[_0x162a3a(0x207)](_0x383db3,_0x3c65ce,_0x3d7dc3);_0x38b351[_0x162a3a(0x90)]();}[_0xde5e7f(0x1c3)](_0xeb81db){const _0x19de90=_0xde5e7f;re[_0x19de90(0x156)](_0xeb81db,this);}}const _e=_0xde5e7f(0x2f8),Rt=_0xde5e7f(0xce),bt=_0xde5e7f(0x2d0),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x15278a,_0x3b383b,_0x22285d,_0x493f6c){const _0x3a6663=_0xde5e7f;_(this,_0x3a6663(0x23d),[]),_(this,_0x3a6663(0x236),null),_(this,'_textBubble',null),_(this,_0x3a6663(0x336),null),_(this,_0x3a6663(0x9d),null),_(this,'_eventUnsubscribe',null),(this['_cursor']=_0x15278a,this[_0x3a6663(0x323)]=_0x3b383b,this['_docSkeleton']=_0x22285d,this[_0x3a6663(0x175)]=_0x493f6c,this[_0x3a6663(0x136)]());}set[_0xde5e7f(0x9a)](_0x461296){const _0x5b7604=_0xde5e7f;_0x461296?(this[_0x5b7604(0x336)]&&this['_anchorDot']['hide'](),this[_0x5b7604(0x86)]&&this[_0x5b7604(0x86)][_0x5b7604(0x196)]()):(this['_anchorDot']&&this[_0x5b7604(0x336)]['show'](),this['_textBubble']&&this[_0x5b7604(0x86)][_0x5b7604(0xfc)]());}[_0xde5e7f(0x29b)](){const _0x3c4fd4=_0xde5e7f;for(const _0x49bc67 of this[_0x3c4fd4(0x23d)])_0x49bc67[_0x3c4fd4(0x29b)]();this['_textBubble']&&this[_0x3c4fd4(0x86)][_0x3c4fd4(0x29b)](),this[_0x3c4fd4(0x336)]&&this[_0x3c4fd4(0x336)]['dispose'](),this['_anchor']&&this[_0x3c4fd4(0x236)][_0x3c4fd4(0x29b)](),this[_0x3c4fd4(0x232)]&&this[_0x3c4fd4(0x232)]();}['_render'](){const _0x40bc7a=_0xde5e7f;var _0x563370;const {_docSkeleton:_0x3ec6cb,_document:_0x3607d1}=this,{color:_0x487de1,name:_0x35bc11,ranges:_0x481af6}=this[_0x40bc7a(0x10f)],_0x18a7c5=_0x3607d1[_0x40bc7a(0x2bf)](),{docsLeft:_0xc056c9,docsTop:_0x22294b}=_0x18a7c5,_0x52beea=new T['NodePositionConvertToCursor'](_0x18a7c5,_0x3ec6cb);for(const {startOffset:_0x191b88,endOffset:_0x50c32d,rangeType:_0x5255fe,segmentId:_0x3df415,segmentPage:_0x22f7b1,collapsed:_0xaee092,isActive:_0x525910}of _0x481af6){const _0x404635=_0x3ec6cb[_0x40bc7a(0x19f)](_0x191b88,!0x0,_0x3df415,_0x22f7b1);let _0x13580b=_0x3ec6cb[_0x40bc7a(0x19f)](_0x50c32d,!0x0,_0x3df415,_0x22f7b1);if(_0x13580b==null&&(_0x13580b=_0x3ec6cb[_0x40bc7a(0x19f)](_0x50c32d-0x1,!0x1,_0x3df415,_0x22f7b1)),_0x525910){const {contentBoxPointGroup:_0x4e98a3}=_0x52beea[_0x40bc7a(0x275)](_0x13580b,_0x13580b);if(_0x4e98a3[_0x40bc7a(0x1ef)]===0x0)continue;this[_0x40bc7a(0x7c)](_0x487de1,_0x4e98a3,_0xc056c9,_0x22294b,_0x35bc11),this[_0x40bc7a(0x232)]=this[_0x40bc7a(0xe0)]();}if(_0x404635&&_0x13580b){if(_0x5255fe===a[_0x40bc7a(0x1cb)][_0x40bc7a(0x228)]){const _0x5e8e2d=new T[(_0x40bc7a(0x7a))](_0x18a7c5,_0x3ec6cb),{pointGroup:_0x156823}=(_0x563370=_0x5e8e2d['getRangePointData'](_0x404635,_0x13580b))!=null?_0x563370:{};if(_0x156823==null||_0x156823[_0x40bc7a(0x1ef)]===0x0)continue;this[_0x40bc7a(0x24b)](_0x487de1,_0x156823,_0xc056c9,_0x22294b);}else{if(!_0xaee092){const {borderBoxPointGroup:_0x543409}=_0x52beea[_0x40bc7a(0x275)](_0x404635,_0x13580b);if(_0x543409[_0x40bc7a(0x1ef)]===0x0)continue;this['_drawTextRange'](_0x487de1,_0x543409,_0xc056c9,_0x22294b);}}}}}['_drawAnchor'](_0x3156ea,_0x3efae8,_0x39b98e,_0xf81e67,_0x5f4e16){const _0x597c38=_0xde5e7f,_0x5d1135=this[_0x597c38(0x24a)](_0x3efae8),{left:_0x6059c5,top:_0x414859,height:_0x413db3}=_0x5d1135,_0x28741f=this[_0x597c38(0x2e1)](),_0x847de4=Nt/_0x28741f,_0x4386c0=new C[(_0x597c38(0x142))](_e+a[_0x597c38(0xa6)](H),{'left':_0x6059c5+_0x39b98e-_0x847de4,'top':_0x414859+_0xf81e67,'height':_0x413db3,'width':Dt,'fill':_0x3156ea||C['getColor'](a['COLORS'][_0x597c38(0x229)],0x0),'strokeWidth':_0x847de4,'stroke':Ut,'evented':!0x0});this[_0x597c38(0x236)]=_0x4386c0,this[_0x597c38(0x323)][_0x597c38(0x13e)](_0x4386c0,T[_0x597c38(0xc4)]);const _0x2718da=new C[(_0x597c38(0x142))](_e+a['generateRandomId'](H),{'left':_0x6059c5+_0x39b98e-_0x847de4,'top':_0x414859+_0xf81e67-he/0x2,'height':he,'width':he,'fill':_0x3156ea||C[_0x597c38(0xcb)](a[_0x597c38(0x321)][_0x597c38(0x229)],0x0),'strokeWidth':0x0,'stroke':_0x3156ea||C[_0x597c38(0xcb)](a[_0x597c38(0x321)][_0x597c38(0x229)],0x0),'evented':!0x1});this[_0x597c38(0x336)]=_0x2718da,this[_0x597c38(0x323)][_0x597c38(0x13e)](_0x2718da,T[_0x597c38(0xc4)]);const _0x7812f=new re(_e+a[_0x597c38(0xa6)](H),{'left':_0x6059c5+_0x39b98e-_0x847de4,'top':_0x414859+_0xf81e67-X,'text':_0x5f4e16,'color':_0x3156ea});this[_0x597c38(0x86)]=_0x7812f,this['_scene'][_0x597c38(0x13e)](_0x7812f,T['TEXT_RANGE_LAYER_INDEX']),this[_0x597c38(0x9a)]=!0x1;}['_handleHover'](){const _0x32ab56=_0xde5e7f,_0x4636f6=this[_0x32ab56(0x236)][_0x32ab56(0x27b)][_0x32ab56(0xe6)](()=>{const _0x5584a6=_0x32ab56;this[_0x5584a6(0x9a)]=!0x0;}),_0x5557f9=this[_0x32ab56(0x236)][_0x32ab56(0x27e)]['subscribeEvent'](()=>{const _0x3b9d60=_0x32ab56;this[_0x3b9d60(0x9d)]&&clearTimeout(this[_0x3b9d60(0x9d)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x108c5c=_0x32ab56;_0x4636f6[_0x108c5c(0x14b)](),_0x5557f9[_0x108c5c(0x14b)]();};}[_0xde5e7f(0xf0)](_0x3b67c5,_0xc977d8,_0x492410,_0x3f2d42){const _0x4efa30=_0xde5e7f,_0x536063=new a[(_0x4efa30(0x2c6))](_0x3b67c5)[_0x4efa30(0xca)](0.2)[_0x4efa30(0xd2)](),_0x145fb4=new C[(_0x4efa30(0x240))](Rt+a[_0x4efa30(0xa6)](H),{'pointsGroup':_0xc977d8,'fill':_0x536063||C[_0x4efa30(0xcb)](a[_0x4efa30(0x321)]['black'],0.2),'left':_0x492410,'top':_0x3f2d42,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4efa30(0x23d)][_0x4efa30(0x32f)](_0x145fb4),this['_scene']['addObject'](_0x145fb4,T['TEXT_RANGE_LAYER_INDEX']);}[_0xde5e7f(0x24b)](_0xa4923d,_0x3bdbc3,_0x4240d6,_0x169665){const _0x24d84a=_0xde5e7f,_0x1cdcc1=new a[(_0x24d84a(0x2c6))](_0xa4923d)[_0x24d84a(0xca)](0.2)[_0x24d84a(0xd2)](),_0x18fef3=new C[(_0x24d84a(0x240))](bt+a['generateRandomId'](H),{'pointsGroup':_0x3bdbc3,'fill':_0x1cdcc1||C[_0x24d84a(0xcb)](a[_0x24d84a(0x321)]['black'],0.2),'left':_0x4240d6,'top':_0x169665,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x24d84a(0x32f)](_0x18fef3),this[_0x24d84a(0x323)][_0x24d84a(0x13e)](_0x18fef3,T[_0x24d84a(0xc4)]);}[_0xde5e7f(0x24a)](_0x6ad43a){const _0x2b5fdd=_0x6ad43a[0x0],_0x4e330c=_0x2b5fdd[0x0],_0x265c8c=_0x2b5fdd[0x2],{x:_0x1455df,y:_0x308941}=_0x4e330c,{x:_0x1605e7,y:_0x86c7ac}=_0x265c8c;return{'left':_0x1455df,'top':_0x308941,'width':_0x1605e7-_0x1455df,'height':_0x86c7ac-_0x308941};}[_0xde5e7f(0x2e1)](){const _0x501833=_0xde5e7f,{scaleX:_0x9e1dfb,scaleY:_0x4f337b}=this[_0x501833(0x323)][_0x501833(0x348)]();return Math[_0x501833(0xba)](_0x9e1dfb,_0x4f337b);}}var Lt=Object[_0xde5e7f(0x100)],Mt=(_0x211d44,_0x408144,_0x47e572,_0x13b79e)=>{const _0x924458=_0xde5e7f;for(var _0x245685=_0x13b79e>0x1?void 0x0:_0x13b79e?Lt(_0x408144,_0x47e572):_0x408144,_0x22ee5e=_0x211d44[_0x924458(0x1ef)]-0x1,_0x3007d2;_0x22ee5e>=0x0;_0x22ee5e--)(_0x3007d2=_0x211d44[_0x22ee5e])&&(_0x245685=_0x3007d2(_0x245685)||_0x245685);return _0x245685;},q=(_0x5cc11c,_0x471cb3)=>(_0x2f251a,_0x1d146b)=>_0x471cb3(_0x2f251a,_0x1d146b,_0x5cc11c);let Ee=class extends a[_0xde5e7f(0x286)]{constructor(_0xfe215c,_0x4b5921,_0x3e1da7,_0x2c936f,_0x31aafa){const _0x475c95=_0xde5e7f;super(),_(this,_0x475c95(0xf7),[]),_(this,_0x475c95(0x20d),[]),(this[_0x475c95(0xed)]=_0xfe215c,this[_0x475c95(0x1fd)]=_0x4b5921,this[_0x475c95(0x2a1)]=_0x3e1da7,this[_0x475c95(0x220)]=_0x2c936f,this[_0x475c95(0x18c)]=_0x31aafa,this[_0x475c95(0x8c)]());}[_0xde5e7f(0x8c)](){const _0x1f513d=_0xde5e7f,_0x7a0a1d=this['_context'][_0x1f513d(0x12f)],_0x5b0e9c=this['_docSkeletonManagerService'];this[_0x1f513d(0x19e)](I[_0x1f513d(0x184)]([this[_0x1f513d(0x2a1)][_0x1f513d(0x251)](_0x7a0a1d),this['_themeService'][_0x1f513d(0x333)]])[_0x1f513d(0x27a)]($[_0x1f513d(0x2b8)](([_0x23515d,_0x252dad])=>({'skeleton':_0x5b0e9c[_0x1f513d(0x2ce)](),'cursors':[..._0x23515d[_0x1f513d(0x103)]()][_0x1f513d(0xbb)](_0x54bf82=>({..._0x54bf82,'color':this['_themeService'][_0x1f513d(0x17a)](_0x54bf82[_0x1f513d(0x1d7)])}))})))[_0x1f513d(0x272)](_0x19907c=>{const _0x354194=_0x1f513d;if(this[_0x354194(0x8b)](),_0x19907c){const {skeleton:_0x3bbad9,cursors:_0x175553}=_0x19907c;this[_0x354194(0x187)](_0x3bbad9,_0x175553);}})),this[_0x1f513d(0x2cb)](),this[_0x1f513d(0x284)]();}[_0xde5e7f(0x187)](_0x31eb3a,_0x7f86e6){const _0x15ab8a=_0xde5e7f,{scene:_0x346aea,mainComponent:_0x4afc55}=this[_0x15ab8a(0xed)],_0x397291=_0x7f86e6[_0x15ab8a(0x2b8)](_0x527e47=>new Le(_0x527e47,_0x346aea,_0x31eb3a,_0x4afc55));this[_0x15ab8a(0xf7)]=_0x397291,this[_0x15ab8a(0x20d)]=_0x7f86e6;}[_0xde5e7f(0x2a8)](){const _0x32a049=_0xde5e7f;this[_0x32a049(0x8b)]();const {scene:_0x257c95,mainComponent:_0x18bf68}=this['_context'],_0x18e14d=this[_0x32a049(0x1fd)][_0x32a049(0x2ce)](),_0x3a935c=this[_0x32a049(0x20d)][_0x32a049(0x2b8)](_0x42811f=>new Le(_0x42811f,_0x257c95,_0x18e14d,_0x18bf68));this[_0x32a049(0xf7)]=_0x3a935c;}[_0xde5e7f(0x8b)](){const _0xc4a54c=_0xde5e7f;this['_cursorShapes'][_0xc4a54c(0x1a7)](_0x276a2d=>_0x276a2d['dispose']()),this[_0xc4a54c(0xf7)]=[];}['_initCommandExecutedListener'](){const _0x55ebe5=_0xde5e7f,_0x5f0c77=[T['SetDocZoomRatioOperation']['id']];this[_0x55ebe5(0x19e)](this['_commandService']['onCommandExecuted'](_0x3311b9=>{const _0x2d01b6=_0x55ebe5;_0x5f0c77[_0x2d01b6(0x342)](_0x3311b9['id'])&&_0x3311b9[_0x2d01b6(0x96)]['unitId']===this[_0x2d01b6(0xed)][_0x2d01b6(0x12f)]&&this[_0x2d01b6(0x2a8)]();}));}[_0xde5e7f(0x2cb)](){const _0x1e9dda=_0xde5e7f;this[_0x1e9dda(0x19e)](a[_0x1e9dda(0x21d)](this[_0x1e9dda(0xed)][_0x1e9dda(0x101)][_0x1e9dda(0x254)])[_0x1e9dda(0x27a)]($[_0x1e9dda(0x273)](_0x4429cb=>_0x4429cb[_0x1e9dda(0x1ab)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$['throttleTime'](0x10))[_0x1e9dda(0x272)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0xde5e7f(0x300)](V[_0xde5e7f(0x270)])),q(0x2,a[_0xde5e7f(0x300)](F)),q(0x3,a[_0xde5e7f(0x32c)]),q(0x4,a['Inject'](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C[_0xde5e7f(0x2ac)]{constructor(_0x4b19cf,_0x545a5d){const _0x4d091c=_0xde5e7f;super(_0x4b19cf,_0x545a5d),_(this,_0x4d091c(0x2ee)),_(this,_0x4d091c(0xb6),!0x1),_(this,'_range'),_(this,_0x4d091c(0x217),''),_(this,'_labelPosition',_0x4d091c(0xa4)),_(this,'_backgroundColor'),(_0x545a5d&&this[_0x4d091c(0x1b0)](_0x545a5d),this[_0x4d091c(0x27b)][_0x4d091c(0xe6)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4d091c(0x27e)][_0x4d091c(0xe6)](()=>this[_0x4d091c(0x1b0)]({'hovered':!0x1})));}[_0xde5e7f(0x1b0)](_0x580954){const _0x2c9d79=_0xde5e7f;var _0x3418ed,_0x3c087a,_0x296009,_0x496ab9,_0x5a3620,_0x5de1da;this[_0x2c9d79(0x2ee)]=(_0x3418ed=_0x580954[_0x2c9d79(0x1d7)])!=null?_0x3418ed:this[_0x2c9d79(0x2ee)],this['_hovered']=(_0x3c087a=_0x580954[_0x2c9d79(0x23b)])!=null?_0x3c087a:this['_hovered'],this[_0x2c9d79(0x25e)]=(_0x296009=_0x580954[_0x2c9d79(0x308)])!=null?_0x296009:this[_0x2c9d79(0x25e)],this['_name']=(_0x496ab9=_0x580954[_0x2c9d79(0x24d)])!=null?_0x496ab9:this['_name'],this['_labelPosition']=(_0x5a3620=_0x580954[_0x2c9d79(0xe7)])!=null?_0x5a3620:this[_0x2c9d79(0xc8)],this[_0x2c9d79(0x1bc)]=(_0x5de1da=_0x580954['backgroundColor'])!=null?_0x5de1da:this[_0x2c9d79(0x1bc)],this[_0x2c9d79(0x7f)]({'width':_0x580954['width'],'height':_0x580954[_0x2c9d79(0x32e)]});}[_0xde5e7f(0x2d2)](_0x3d36e6){const _0x1f398e=_0xde5e7f,{row:_0x304522,column:_0x1d08cd}=_0x3d36e6;if(_0x304522>=this[_0x1f398e(0x25e)][_0x1f398e(0xeb)]&&_0x304522<=this[_0x1f398e(0x25e)][_0x1f398e(0xf4)]&&_0x1d08cd>=this[_0x1f398e(0x25e)][_0x1f398e(0x226)]&&_0x1d08cd<=this[_0x1f398e(0x25e)][_0x1f398e(0x191)]){this[_0x1f398e(0x1b0)]({'hovered':!0x0});return;}this[_0x1f398e(0x1b0)]({'hovered':!0x1});}[_0xde5e7f(0xfe)](_0x39230a){return!0x1;}[_0xde5e7f(0x1c3)](_0x4b6dfd){const _0x340cfe=_0xde5e7f;C[_0x340cfe(0x142)]['drawWith'](_0x4b6dfd,{'width':this[_0x340cfe(0x293)],'height':this[_0x340cfe(0x32e)],'strokeWidth':Pt,'stroke':this[_0x340cfe(0x2ee)],'evented':!0x1,'fill':this[_0x340cfe(0x1bc)]}),this[_0x340cfe(0xb6)]&&(_0x4b6dfd[_0x340cfe(0x299)](),_0x4b6dfd[_0x340cfe(0x188)](0x1,0x0,0x0,0x1,this[_0x340cfe(0x293)],this[_0x340cfe(0xc8)]===_0x340cfe(0x2d1)?0x0:-X),re[_0x340cfe(0x156)](_0x4b6dfd,{'text':this[_0x340cfe(0x217)],'color':this[_0x340cfe(0x2ee)]}),_0x4b6dfd[_0x340cfe(0x90)]());}}var wt=Object[_0xde5e7f(0x100)],yt=(_0x277760,_0xfe2f58,_0x1062a1,_0x7a78d)=>{const _0x4e71f8=_0xde5e7f;for(var _0x394554=_0x7a78d>0x1?void 0x0:_0x7a78d?wt(_0xfe2f58,_0x1062a1):_0xfe2f58,_0x2f4a71=_0x277760[_0x4e71f8(0x1ef)]-0x1,_0x2d79a2;_0x2f4a71>=0x0;_0x2f4a71--)(_0x2d79a2=_0x277760[_0x2f4a71])&&(_0x394554=_0x2d79a2(_0x394554)||_0x394554);return _0x394554;},ue=(_0x3fa5c2,_0x2058c2)=>(_0xcbd33c,_0x11ada1)=>_0x2058c2(_0xcbd33c,_0x11ada1,_0x3fa5c2);const $t=0x1389;let Ce=class extends a[_0xde5e7f(0x286)]{constructor(_0x2f254a,_0xdb934b,_0x509acf,_0x8d5cfa){const _0x44a646=_0xde5e7f;super(),_(this,_0x44a646(0x20d),new Set()),_(this,'_lastPointer',null),(this[_0x44a646(0xed)]=_0x2f254a,this[_0x44a646(0x137)]=_0xdb934b,this[_0x44a646(0x2a1)]=_0x509acf,this['_themeService']=_0x8d5cfa,this['_init']());}['_init'](){const _0x3ba14e=_0xde5e7f;this[_0x3ba14e(0x137)][_0x3ba14e(0x20b)][_0x3ba14e(0x27a)]($['takeUntil'](this[_0x3ba14e(0x307)]),$['switchMap'](_0x263d67=>{const _0x107aa6=_0x3ba14e;if(_0x263d67){const _0x24e939=_0x263d67[_0x107aa6(0x2ab)];return I[_0x107aa6(0x184)](this[_0x107aa6(0x2a1)]['getCollabCursors$'](this['_context'][_0x107aa6(0x12f)]),this[_0x107aa6(0x18c)]['currentTheme$'])[_0x107aa6(0x27a)]($[_0x107aa6(0x2b8)](([_0x458c0f,_0x2c9735])=>{const _0x131e63=_0x107aa6,_0x153a1f=new Map();return _0x458c0f[_0x131e63(0x1a7)]((_0x11b82e,_0x35a943)=>{const _0x3cc3ed=_0x131e63;if(_0x11b82e[_0x3cc3ed(0x99)]===_0x24e939){const _0x377129={..._0x11b82e};_0x377129[_0x3cc3ed(0x1d7)]=this['_themeService']['getColorFromTheme'](_0x11b82e['color']),_0x153a1f[_0x3cc3ed(0x258)](_0x35a943,_0x377129);}}),{'skeleton':_0x263d67,'cursors':_0x153a1f};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x3ba14e(0x272)](({skeleton:_0xaf9bc1,cursors:_0xad562a})=>{this['_removeCollabCursors'](),_0xaf9bc1&&this['_updateCollabCursors'](_0xaf9bc1,_0xad562a);}),this['_sheetSkeletonManagerService'][_0x3ba14e(0x20b)][_0x3ba14e(0x272)](_0x55097a=>{const _0x88613b=_0x3ba14e;if(_0x55097a==null)return;const {skeleton:_0x39250d}=_0x55097a,{scene:_0x38c538}=this[_0x88613b(0xed)];_0x38c538[_0x88613b(0x269)][_0x88613b(0xe6)](a['debounce'](_0x523a8e=>{const _0xb9051b=_0x88613b;var _0xaf8805,_0x15a7f1;const {offsetX:_0x346773,offsetY:_0x418cfc}=_0x523a8e,{x:_0x39436d,y:_0xeec39a}=_0x38c538['getRelativeToViewportCoord'](C[_0xb9051b(0x2c1)][_0xb9051b(0x340)]([_0x346773,_0x418cfc])),{scaleX:_0x352401,scaleY:_0x4a5201}=_0x38c538[_0xb9051b(0x348)](),_0x5f315b=_0x38c538[_0xb9051b(0x119)](C[_0xb9051b(0x106)][_0xb9051b(0x209)]),_0x1bcaef=_0x38c538[_0xb9051b(0x171)](C[_0xb9051b(0x2c1)][_0xb9051b(0x340)]([_0x39436d,_0xeec39a]),_0x5f315b),_0x158e1c=_0x39250d[_0xb9051b(0x2ea)](_0x346773,_0x418cfc,_0x352401,_0x4a5201,_0x1bcaef);((_0xaf8805=this['_lastPointer'])==null?void 0x0:_0xaf8805['column'])===_0x158e1c[_0xb9051b(0x2bd)]&&((_0x15a7f1=this[_0xb9051b(0x30a)])==null?void 0x0:_0x15a7f1[_0xb9051b(0x162)])===_0x158e1c[_0xb9051b(0x162)]||this['_cursors'][_0xb9051b(0x1a7)](_0x9f053b=>{const _0x158bc5=_0xb9051b;_0x9f053b[_0x158bc5(0x2d2)](_0x158e1c);});},0x64));});}[_0xde5e7f(0x187)](_0x550d52,_0xbd88cb){const _0x1def96=_0xde5e7f;var _0x5e1c64;const _0x2360d0=(_0x5e1c64=this[_0x1def96(0x137)][_0x1def96(0xd7)]())==null?void 0x0:_0x5e1c64[_0x1def96(0x1aa)];if(!_0x2360d0)return;const _0x11d3bd=this[_0x1def96(0x248)]();if(!_0x11d3bd)return;this[_0x1def96(0x20d)]['forEach'](_0x55f0a7=>{const _0x297a76=_0x1def96;_0x55f0a7[_0x297a76(0x19b)]();});const {scene:_0x2440cd}=_0x11d3bd,_0x2c8fa6=xt(Array[_0x1def96(0x260)](_0xbd88cb[_0x1def96(0x103)]()))[_0x1def96(0x2b8)](_0x5e84c6=>{const _0x1025ea=_0x1def96,{color:_0x3792ea,range:_0xf08ded,name:_0x1de669,selection:_0x1cbbbf,sheetID:_0x41a499}=_0x5e84c6,{startColumn:_0x52faef,startRow:_0x326f6f,endColumn:_0x2ae9cb,endRow:_0x1c26d8}=_0xf08ded,_0xf792ce=J[_0x1025ea(0x148)](_0x326f6f,_0x52faef,_0x2440cd,_0x2360d0),_0x3ac693=J[_0x1025ea(0x148)](_0x1c26d8,_0x2ae9cb,_0x2440cd,_0x2360d0),{columnHeaderHeightAndMarginTop:_0x5457f9}=_0x2360d0,{startX:_0x4d33d2,startY:_0x4bebf1}=_0xf792ce,{endX:_0x3608b4,endY:_0x346b17}=_0x3ac693,_0x456dea=_0x3608b4-_0x4d33d2,_0x16267f=_0x346b17-_0x4bebf1,_0x22af19={'labelPosition':_0x4bebf1-_0x5457f9>=X?_0x1025ea(0xa4):_0x1025ea(0x2d1),'sheetID':_0x41a499,'range':_0xf08ded,'color':_0x3792ea,'name':_0x1de669,'selection':_0x1cbbbf,'left':_0x4d33d2,'top':_0x4bebf1,'width':_0x456dea,'height':_0x16267f,'evented':!0x1,'zIndex':$t};return new je(_0x1de669,_0x22af19);});_0x2440cd['addObjects'](_0x2c8fa6,At),this[_0x1def96(0x20d)]=new Set(_0x2c8fa6);}[_0xde5e7f(0x8b)](){const _0x4dd199=_0xde5e7f;var _0x2a93a8;(_0x2a93a8=this[_0x4dd199(0x20d)])==null||_0x2a93a8[_0x4dd199(0x1a7)](_0x59f3c9=>_0x59f3c9[_0x4dd199(0x29b)]());}['_getSheetObject'](){const _0x40d69a=_0xde5e7f;return J[_0x40d69a(0x24c)](this['_context'][_0x40d69a(0x193)],this[_0x40d69a(0xed)]);}};Ce=yt([ue(0x1,a[_0xde5e7f(0x300)](J[_0xde5e7f(0x183)])),ue(0x2,a[_0xde5e7f(0x300)](F)),ue(0x3,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x10c)]))],Ce);function xt(_0x58064f){const _0xb0280f=_0xde5e7f,_0x36118e=new Map();return _0x58064f['forEach'](_0x3ece58=>{const _0x5d947a=_0x3cd0;if(_0x36118e[_0x5d947a(0xea)](_0x3ece58[_0x5d947a(0x327)])){const _0x56b734=_0x36118e[_0x5d947a(0x247)](_0x3ece58[_0x5d947a(0x327)]);_0x56b734[_0x5d947a(0x24d)]+=',\x20'+_0x3ece58[_0x5d947a(0x24d)];}else _0x36118e[_0x5d947a(0x258)](_0x3ece58[_0x5d947a(0x327)],_0x3ece58);}),Array[_0xb0280f(0x260)](_0x36118e['values']());}var Bt=Object[_0xde5e7f(0x100)],Ft=(_0x36608e,_0x325ba0,_0x59897a,_0x4118d0)=>{const _0x11e0a5=_0xde5e7f;for(var _0x3bd9c8=_0x4118d0>0x1?void 0x0:_0x4118d0?Bt(_0x325ba0,_0x59897a):_0x325ba0,_0x264dd4=_0x36608e[_0x11e0a5(0x1ef)]-0x1,_0x487a87;_0x264dd4>=0x0;_0x264dd4--)(_0x487a87=_0x36608e[_0x264dd4])&&(_0x3bd9c8=_0x487a87(_0x3bd9c8)||_0x3bd9c8);return _0x3bd9c8;},y=(_0xd70dd1,_0x41bd94)=>(_0x5183dd,_0x48721f)=>_0x41bd94(_0x5183dd,_0x48721f,_0xd70dd1);let Z=class extends a[_0xde5e7f(0x109)]{constructor(_0x1cedda,_0x3e0600,_0x163f58,_0x34f0ae,_0x23034c,_0x3a1241){const _0x4ea8de=_0xde5e7f;super(),this[_0x4ea8de(0x1a6)]=_0x1cedda,this[_0x4ea8de(0x330)]=_0x3e0600,this[_0x4ea8de(0x84)]=_0x163f58,this['_messageService']=_0x34f0ae,this[_0x4ea8de(0x1b4)]=_0x23034c,this[_0x4ea8de(0x206)]=_0x3a1241,this[_0x4ea8de(0x20e)](),this[_0x4ea8de(0x2f6)]();}[_0xde5e7f(0x20e)](){const _0x4fd7b3=_0xde5e7f;this[_0x4fd7b3(0x19e)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x692542=_0x4fd7b3;if(this[_0x692542(0x330)][_0x692542(0x10b)]['size'])return this[_0x692542(0x206)]['t']('collaboration.offline-data-not-saved');}));}[_0xde5e7f(0x2f6)](){const _0x3e9ce2=_0xde5e7f;this[_0x3e9ce2(0x19e)](this[_0x3e9ce2(0x84)][_0x3e9ce2(0x2df)][_0x3e9ce2(0x272)](_0x18674f=>{const _0x3d5856=_0x3e9ce2;_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0xe1)]&&this[_0x3d5856(0x15c)][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)]['Warning'],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0xac))}),_0x18674f['id']===u[_0x3d5856(0x2a0)]['CLOSE_ROOM']&&this['_messageService']['show']({'type':p['MessageType'][_0x3d5856(0x225)],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0x331))}),_0x18674f['id']===u[_0x3d5856(0x2a0)]['PERMISSION_DENIED']&&this[_0x3d5856(0x1b4)][_0x3d5856(0x196)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0xdf)),'type':_0x3d5856(0x238),'duration':0x0}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0xae)]&&this['_messageService'][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)]['Error'],'content':this['_localeService']['t'](_0x3d5856(0x331))+'('+_0x18674f[_0x3d5856(0x1c5)]+')'}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0x1eb)]&&this[_0x3d5856(0x15c)][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)][_0x3d5856(0x225)],'content':this[_0x3d5856(0x206)]['t'](_0x18674f[_0x3d5856(0x1c5)]||'')}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0x2e2)]&&this[_0x3d5856(0x15c)]['show']({'type':p['MessageType'][_0x3d5856(0x225)],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0x20c))}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0x1f5)]&&this[_0x3d5856(0x15c)][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)][_0x3d5856(0xb5)],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0x11b))}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0x24f)]&&this[_0x3d5856(0x15c)][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)]['Error'],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0xf5))});}));}};Z=Ft([y(0x0,O[_0xde5e7f(0x26c)]),y(0x1,u[_0xde5e7f(0x25a)]),y(0x2,a[_0xde5e7f(0x300)](u[_0xde5e7f(0x150)])),y(0x3,O[_0xde5e7f(0x30b)]),y(0x4,O[_0xde5e7f(0x108)]),y(0x5,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1b5)]))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x5449fc,_0x29d6b8,_0x4948d8,_0x118f64)=>{const _0x3dbc39=_0xde5e7f;for(var _0x2f2e38=_0x118f64>0x1?void 0x0:_0x118f64?jt(_0x29d6b8,_0x4948d8):_0x29d6b8,_0x5ed872=_0x5449fc[_0x3dbc39(0x1ef)]-0x1,_0x1469d5;_0x5ed872>=0x0;_0x5ed872--)(_0x1469d5=_0x5449fc[_0x5ed872])&&(_0x2f2e38=_0x1469d5(_0x2f2e38)||_0x2f2e38);return _0x2f2e38;},z=(_0x3576cf,_0x2bd6f5)=>(_0x54379,_0x4bd21b)=>_0x2bd6f5(_0x54379,_0x4bd21b,_0x3576cf);let Q=class extends a[_0xde5e7f(0x109)]{constructor(_0x19aa0c,_0x4f67de,_0x40d3f3,_0x38ddde){const _0x29a2e1=_0xde5e7f;super(),_(this,'_memberID'),(this[_0x29a2e1(0x2eb)]=_0x19aa0c,this[_0x29a2e1(0x1d1)]=_0x4f67de,this['_logService']=_0x40d3f3,this[_0x29a2e1(0x252)]=_0x38ddde,this[_0x29a2e1(0x8c)]());}[_0xde5e7f(0x8c)](){const _0xc5569c=_0xde5e7f;this[_0xc5569c(0x334)](),this[_0xc5569c(0x316)](),this['_monkeyPatchLogService'](),this[_0xc5569c(0xbc)]();}['_initUserListener'](){const _0x1cdde5=_0xde5e7f;this[_0x1cdde5(0x19e)](this[_0x1cdde5(0x252)][_0x1cdde5(0xf3)]['subscribe'](_0x4179ca=>{const _0xad465f=_0x1cdde5;this[_0xad465f(0x2b7)]=_0x4179ca==null?void 0x0:_0x4179ca[_0xad465f(0x16a)];}));}['_initWindowErrorListener'](){const _0x19f664=_0xde5e7f,_0x4cd2a5=_0x35b7a9=>{const _0x359fd2=_0x3cd0;var _0x3d65b1;this[_0x359fd2(0x1e4)](_0x359fd2(0x238),_0x359fd2(0x102)+_0x35b7a9[_0x359fd2(0x1fc)]+'\x20at\x20'+_0x35b7a9[_0x359fd2(0x21b)]+':'+_0x35b7a9[_0x359fd2(0x149)]+':'+_0x35b7a9[_0x359fd2(0x344)]+'\x0a'+(((_0x3d65b1=_0x35b7a9[_0x359fd2(0x238)])==null?void 0x0:_0x3d65b1[_0x359fd2(0xc2)])||''));};window[_0x19f664(0x18e)]('error',_0x4cd2a5),this[_0x19f664(0x19e)](()=>{const _0x36e7c5=_0x19f664;window['removeEventListener'](_0x36e7c5(0x238),_0x4cd2a5);});}['_initUnhandledRejectionListener'](){const _0x33ccee=_0xde5e7f,_0x18d63b=_0x18ae8f=>{const _0x3746bf=_0x3cd0;this[_0x3746bf(0x1e4)](_0x3746bf(0x238),_0x3746bf(0x153)+_0x18ae8f['reason']);};window[_0x33ccee(0x18e)](_0x33ccee(0x113),_0x18d63b),this['disposeWithMe'](()=>{const _0x5377af=_0x33ccee;window[_0x5377af(0x1cd)]('unhandledrejection',_0x18d63b);});}[_0xde5e7f(0x17f)](){const _0x15e605=_0xde5e7f,_0xe69d96=this[_0x15e605(0x1cf)][_0x15e605(0x238)]['bind'](this[_0x15e605(0x1cf)]);this[_0x15e605(0x1cf)][_0x15e605(0x238)]=(..._0x4e3ecd)=>{const _0x9cb122=_0x15e605,_0x4e05a4=_0x4e3ecd[_0x9cb122(0x2b8)](_0x18e812=>_0x18e812 instanceof Error?_0x18e812[_0x9cb122(0x1fc)]+'\x0a'+_0x18e812['stack']:String(_0x18e812))['join']('\x20');this['_uploadLog'](_0x9cb122(0x238),_0x9cb122(0x18f)+_0x4e05a4),_0xe69d96(..._0x4e3ecd);},this[_0x15e605(0x19e)](()=>{const _0xbb614c=_0x15e605;this['_logService'][_0xbb614c(0x238)]=_0xe69d96;});}['_uploadLog'](_0x9be7b3,_0x1e2234){const _0x4fff66=_0xde5e7f;try{const _0x29b81c={'userId':this[_0x4fff66(0x2b7)],'logLabel':_0x9be7b3,'content':_0x1e2234};this[_0x4fff66(0x1d1)][_0x4fff66(0x32d)]('/universer-api/frontend/logs',{'body':_0x29b81c})[_0x4fff66(0x2c4)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),z(0x1,a[_0xde5e7f(0x300)](x[_0xde5e7f(0x1b7)])),z(0x2,a[_0xde5e7f(0x2f4)]),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0xde5e7f(0xfb),Me={};var Ht=Object[_0xde5e7f(0x100)],Wt=(_0x42d1e8,_0x5211e6,_0x8a85ce,_0x233cd3)=>{const _0x3c3722=_0xde5e7f;for(var _0x18a4fd=_0x233cd3>0x1?void 0x0:_0x233cd3?Ht(_0x5211e6,_0x8a85ce):_0x5211e6,_0x565ab1=_0x42d1e8[_0x3c3722(0x1ef)]-0x1,_0x2683f2;_0x565ab1>=0x0;_0x565ab1--)(_0x2683f2=_0x42d1e8[_0x565ab1])&&(_0x18a4fd=_0x2683f2(_0x18a4fd)||_0x18a4fd);return _0x18a4fd;},Ae=(_0x3597bf,_0x4c738a)=>(_0x2f51bb,_0xbba90)=>_0x4c738a(_0x2f51bb,_0xbba90,_0x3597bf);let ee=class{constructor(_0x5e3a92,_0x410114){const _0x57a502=_0xde5e7f;this[_0x57a502(0x2f2)]=_0x5e3a92,this[_0x57a502(0x303)]=_0x410114;}['transformIMECache'](_0x491dc2){const _0x1093ae=_0xde5e7f;this['_transformUndoRedoStack'](_0x491dc2),this[_0x1093ae(0x29d)](_0x491dc2);}[_0xde5e7f(0x343)](_0x3827d4){const _0x21a355=_0xde5e7f,{unitID:_0x4bbcb7}=_0x3827d4,_0x777ae5=this['_renderManagerService']['getRenderById'](_0x4bbcb7)[_0x21a355(0x325)](T[_0x21a355(0x22a)]),{redoCache:_0x12872f}=_0x777ae5[_0x21a355(0x145)]();if(_0x12872f[_0x21a355(0x1ef)]===0x0)return _0x3827d4;let _0x1e221d=a[_0x21a355(0x231)]['deepClone'](_0x3827d4[_0x21a355(0x250)][0x0]);for(let _0xa5b6b2=0x0;_0xa5b6b2<_0x12872f[_0x21a355(0x1ef)];_0xa5b6b2++){const _0xed2bc0={'id':_0x21a355(0x2ff),'params':{..._0x12872f[_0xa5b6b2]}},_0x3667a6=this[_0x21a355(0x2f2)][_0x21a355(0x2a9)](_0x1e221d,_0xed2bc0,!0x1);if(g[_0x21a355(0x265)](_0x3667a6))throw _0x3667a6[_0x21a355(0x238)];_0x1e221d=_0x3667a6[_0x21a355(0x11a)];}return{...a[_0x21a355(0x231)][_0x21a355(0x190)](_0x3827d4),'mutations':[_0x1e221d]};}['_transformUndoRedoStack'](_0x342d9f){const _0x2af529=_0xde5e7f,{unitID:_0x69398d}=_0x342d9f,_0x340c9d=this[_0x2af529(0x303)][_0x2af529(0x1f7)](_0x69398d)[_0x2af529(0x325)](T['DocIMEInputManagerService']),{undoCache:_0x4aab49,redoCache:_0x2bd688}=_0x340c9d['getUndoRedoMutationParamsCache']();if(_0x4aab49['length']===0x0||_0x2bd688[_0x2af529(0x1ef)]===0x0)return;const _0x40f7da=[],_0x177b08=[];let _0x517154=a[_0x2af529(0x231)][_0x2af529(0x190)](_0x342d9f[_0x2af529(0x250)][0x0]),_0x349e4a=a[_0x2af529(0x231)][_0x2af529(0x190)](_0x342d9f[_0x2af529(0x250)][0x0]);for(let _0x218916=_0x4aab49[_0x2af529(0x1ef)]-0x1;_0x218916>=0x0;_0x218916--){const _0x58f4ae={'id':'doc.mutation.rich-text-editing','params':{..._0x4aab49[_0x218916]}},_0x1ae522={'id':_0x2af529(0x2ff),'params':{..._0x2bd688[_0x218916]}},_0x5acf58=this['_transformService'][_0x2af529(0x2a9)](_0x517154,_0x58f4ae,!0x1),_0xa1e60d=this['_transformService'][_0x2af529(0x2a9)](_0x349e4a,_0x1ae522,!0x1);if(g[_0x2af529(0x265)](_0x5acf58))throw _0x5acf58['error'];if(g[_0x2af529(0x265)](_0xa1e60d))throw _0xa1e60d[_0x2af529(0x238)];_0x40f7da[_0x2af529(0x277)](_0x5acf58['m2Prime'][_0x2af529(0x96)]),_0x177b08[_0x2af529(0x277)](_0xa1e60d[_0x2af529(0xc1)][_0x2af529(0x96)]),_0x517154=_0x5acf58[_0x2af529(0x11a)],_0x349e4a=_0xa1e60d[_0x2af529(0x11a)];}_0x340c9d[_0x2af529(0x1f1)]({'undoCache':_0x40f7da,'redoCache':_0x177b08});}[_0xde5e7f(0x29d)](_0x27ce87){const _0x286bb4=_0xde5e7f,{unitID:_0x1e5490}=_0x27ce87,_0x4a636c=this['_renderManagerService']['getRenderById'](_0x1e5490)[_0x286bb4(0x325)](T[_0x286bb4(0x22a)]),_0x442c29=_0x4a636c['getActiveRange']();if(_0x442c29==null)return;const _0x5dad24=[{'id':_0x286bb4(0x2ff),'params':{'unitId':_0x27ce87[_0x286bb4(0x161)],'actions':null,'textRanges':[_0x442c29]}}],_0x616ca7=this[_0x286bb4(0x2f2)]['transformMutationsWithChangeset'](_0x27ce87,_0x5dad24);if(!g[_0x286bb4(0x216)](_0x616ca7))throw _0x616ca7[_0x286bb4(0x238)];const _0x4cddf4=_0x616ca7[_0x286bb4(0xc1)][0x0][_0x286bb4(0x96)][_0x286bb4(0x21f)];Array[_0x286bb4(0x33e)](_0x4cddf4)&&_0x4cddf4[_0x286bb4(0x1ef)]&&_0x4a636c[_0x286bb4(0x1ac)](_0x4cddf4[0x0]);}};ee=Wt([Ae(0x0,g[_0xde5e7f(0x249)]),Ae(0x1,C[_0xde5e7f(0x1ce)])],ee);var Vt=Object[_0xde5e7f(0x100)],Gt=(_0x27dad0,_0x342203,_0x3ac24a,_0x121926)=>{const _0x3e8027=_0xde5e7f;for(var _0x4d6d2a=_0x121926>0x1?void 0x0:_0x121926?Vt(_0x342203,_0x3ac24a):_0x342203,_0x59ec67=_0x27dad0[_0x3e8027(0x1ef)]-0x1,_0x3b929e;_0x59ec67>=0x0;_0x59ec67--)(_0x3b929e=_0x27dad0[_0x59ec67])&&(_0x4d6d2a=_0x3b929e(_0x4d6d2a)||_0x4d6d2a);return _0x4d6d2a;},Ie=(_0x4fd901,_0x59064d)=>(_0x31fac8,_0x1571ff)=>_0x59064d(_0x31fac8,_0x1571ff,_0x4fd901);let te=class{constructor(_0x41b00a,_0x5ec72d,_0x3049d2){const _0x550f5b=_0xde5e7f;this[_0x550f5b(0x2eb)]=_0x41b00a,this['_transformService']=_0x5ec72d,this[_0x550f5b(0x177)]=_0x3049d2;}['transformStateCache'](_0x31ae78){this['_transformHistoryAndStateStack'](_0x31ae78);}[_0xde5e7f(0x343)](_0x4eafb0){const _0x5ed1b3=_0xde5e7f,{unitID:_0x4213ac}=_0x4eafb0,{collaboration:_0x5946f8}=this[_0x5ed1b3(0x177)][_0x5ed1b3(0x322)](_0x4213ac);if(_0x5946f8[_0x5ed1b3(0x1ef)]===0x0)return _0x4eafb0;let _0x2f0700=a[_0x5ed1b3(0x231)][_0x5ed1b3(0x190)](_0x4eafb0[_0x5ed1b3(0x250)][0x0]);for(let _0x357655=0x0;_0x357655<_0x5946f8['length'];_0x357655++){const _0x5775ad={'id':_0x5ed1b3(0x2ff),'params':{'unitId':_0x5946f8[_0x357655][_0x5ed1b3(0x12f)],..._0x5946f8[_0x357655]['redoState']}},_0x5eb10a=this['_transformService'][_0x5ed1b3(0x2a9)](_0x2f0700,_0x5775ad,!0x1);if(g[_0x5ed1b3(0x265)](_0x5eb10a))throw _0x5eb10a[_0x5ed1b3(0x238)];_0x2f0700=_0x5eb10a['m1Prime'];}return{...a[_0x5ed1b3(0x231)][_0x5ed1b3(0x190)](_0x4eafb0),'mutations':[_0x2f0700]};}[_0xde5e7f(0x1a8)](_0x55709d){const _0x37f3b0=_0xde5e7f,{unitID:_0x386a80}=_0x55709d,{history:_0x59c471,collaboration:_0x53612e}=this['_docStateChangeManagerService'][_0x37f3b0(0x322)](_0x386a80);if(_0x59c471['length']===0x0&&_0x53612e[_0x37f3b0(0x1ef)]===0x0)return;const _0x501526=[],_0x289165=[];let _0x19fd8e=a['Tools'][_0x37f3b0(0x190)](_0x55709d[_0x37f3b0(0x250)][0x0]),_0x1cf935=a['Tools'][_0x37f3b0(0x190)](_0x55709d[_0x37f3b0(0x250)][0x0]);for(let _0x307ed3=_0x59c471['length']-0x1;_0x307ed3>=0x0;_0x307ed3--){const _0x13e1ca={'id':_0x37f3b0(0x2ff),'params':{'unitId':_0x59c471[_0x307ed3]['unitId'],..._0x59c471[_0x307ed3][_0x37f3b0(0x244)]}},_0x2e9433={'id':_0x37f3b0(0x2ff),'params':{'unitId':_0x59c471[_0x307ed3][_0x37f3b0(0x12f)],..._0x59c471[_0x307ed3][_0x37f3b0(0x94)]}},_0x3e4c9b=this[_0x37f3b0(0x2f2)][_0x37f3b0(0x2a9)](_0x19fd8e,_0x13e1ca,!0x1),_0x6f8507=this[_0x37f3b0(0x2f2)][_0x37f3b0(0x2a9)](_0x1cf935,_0x2e9433,!0x1);if(g['isTransformMutationFailure'](_0x3e4c9b))throw _0x3e4c9b['error'];if(g['isTransformMutationFailure'](_0x6f8507))throw _0x6f8507[_0x37f3b0(0x238)];_0x501526[_0x37f3b0(0x277)]({..._0x59c471[_0x307ed3],'undoState':_0x3e4c9b[_0x37f3b0(0xc1)][_0x37f3b0(0x96)],'redoState':_0x6f8507[_0x37f3b0(0xc1)][_0x37f3b0(0x96)]}),_0x19fd8e=_0x3e4c9b[_0x37f3b0(0x11a)],_0x1cf935=_0x6f8507[_0x37f3b0(0x11a)];}_0x19fd8e=a['Tools'][_0x37f3b0(0x190)](_0x55709d[_0x37f3b0(0x250)][0x0]),_0x1cf935=a['Tools']['deepClone'](_0x55709d[_0x37f3b0(0x250)][0x0]);for(let _0x292268=_0x53612e[_0x37f3b0(0x1ef)]-0x1;_0x292268>=0x0;_0x292268--){const _0x54fbaf={'id':_0x37f3b0(0x2ff),'params':{'unitId':_0x53612e[_0x292268]['unitId'],..._0x53612e[_0x292268][_0x37f3b0(0x244)]}},_0x1cc605={'id':_0x37f3b0(0x2ff),'params':{'unitId':_0x53612e[_0x292268][_0x37f3b0(0x12f)],..._0x53612e[_0x292268]['redoState']}},_0xb86b4c=this['_transformService']['transformMutation'](_0x19fd8e,_0x54fbaf,!0x1),_0xfd2d2e=this[_0x37f3b0(0x2f2)][_0x37f3b0(0x2a9)](_0x1cf935,_0x1cc605,!0x1);if(g[_0x37f3b0(0x265)](_0xb86b4c))throw _0xb86b4c['error'];if(g[_0x37f3b0(0x265)](_0xfd2d2e))throw _0xfd2d2e[_0x37f3b0(0x238)];_0x289165[_0x37f3b0(0x277)]({..._0x53612e[_0x292268],'undoState':_0xb86b4c[_0x37f3b0(0xc1)]['params'],'redoState':_0xfd2d2e['m2Prime'][_0x37f3b0(0x96)]}),_0x19fd8e=_0xb86b4c[_0x37f3b0(0x11a)],_0x1cf935=_0xfd2d2e[_0x37f3b0(0x11a)];}this[_0x37f3b0(0x177)][_0x37f3b0(0x26a)](_0x386a80,{'history':_0x501526,'collaboration':_0x289165});}};te=Gt([Ie(0x0,a[_0xde5e7f(0x300)](a['Injector'])),Ie(0x1,g['ITransformService']),Ie(0x2,a['Inject'](T['DocStateChangeManagerService']))],te);function _0x3cd0(_0x2bd83f,_0x570957){_0x2bd83f=_0x2bd83f-0x78;const _0x1c85ac=_0x1c85();let _0x3cd0d3=_0x1c85ac[_0x2bd83f];return _0x3cd0d3;}var Xt=Object[_0xde5e7f(0x100)],Kt=(_0x46301f,_0x45b08f,_0x2b8b53,_0x502619)=>{const _0x45a09f=_0xde5e7f;for(var _0x51248f=_0x502619>0x1?void 0x0:_0x502619?Xt(_0x45b08f,_0x2b8b53):_0x45b08f,_0xe584c0=_0x46301f[_0x45a09f(0x1ef)]-0x1,_0x3765a4;_0xe584c0>=0x0;_0xe584c0--)(_0x3765a4=_0x46301f[_0xe584c0])&&(_0x51248f=_0x3765a4(_0x51248f)||_0x51248f);return _0x51248f;},Pe=(_0x11f7f4,_0x1d1cad)=>(_0x52fb02,_0x48a02a)=>_0x1d1cad(_0x52fb02,_0x48a02a,_0x11f7f4);let se=class{constructor(_0x230102,_0x11e7a1){const _0x1834f0=_0xde5e7f;this[_0x1834f0(0x2eb)]=_0x230102,this[_0x1834f0(0x2f2)]=_0x11e7a1;}[_0xde5e7f(0x1e0)](_0x1750fb){const _0x18de96=_0xde5e7f;var _0x37fe74;const _0x1541db=this[_0x18de96(0x2eb)]['get'](V['DocSelectionManagerService']),_0x31349c=(_0x37fe74=_0x1541db[_0x18de96(0x203)]())!=null?_0x37fe74:[];if(_0x31349c[_0x18de96(0x1ef)]===0x0)return;const _0x384496=_0x1750fb[_0x18de96(0x161)],_0x50e212=[{'id':_0x18de96(0x2ff),'params':{'unitId':_0x384496,'actions':null,'textRanges':_0x31349c}}],_0x509ed2=this[_0x18de96(0x2f2)][_0x18de96(0x88)](_0x1750fb,_0x50e212);if(!g[_0x18de96(0x216)](_0x509ed2))throw _0x509ed2[_0x18de96(0x238)];const _0x380e51=_0x509ed2[_0x18de96(0xc1)][0x0][_0x18de96(0x96)][_0x18de96(0x21f)];Array['isArray'](_0x380e51)&&_0x380e51[_0x18de96(0x1ef)]&&_0x1541db['replaceDocRanges'](_0x380e51,{'unitId':_0x384496,'subUnitId':_0x384496},!0x1);}};se=Kt([Pe(0x0,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),Pe(0x1,g[_0xde5e7f(0x249)])],se);var qt=Object[_0xde5e7f(0x100)],zt=(_0x4cb3dd,_0x3bf21f,_0x5395e7,_0x11333b)=>{const _0x83f1a9=_0xde5e7f;for(var _0x1b0e39=_0x11333b>0x1?void 0x0:_0x11333b?qt(_0x3bf21f,_0x5395e7):_0x3bf21f,_0x298e8a=_0x4cb3dd[_0x83f1a9(0x1ef)]-0x1,_0x468a1d;_0x298e8a>=0x0;_0x298e8a--)(_0x468a1d=_0x4cb3dd[_0x298e8a])&&(_0x1b0e39=_0x468a1d(_0x1b0e39)||_0x1b0e39);return _0x1b0e39;},N=(_0xe02db1,_0x418131)=>(_0xe3f0b1,_0x2d84e2)=>_0x418131(_0xe3f0b1,_0x2d84e2,_0xe02db1);let ie=class extends a['Disposable']{constructor(_0x4346de,_0x4c784f,_0x2928dc,_0x33f37f,_0x49e35b,_0x781645,_0x42d29c,_0x286fa0){const _0x348b54=_0xde5e7f;super(),_(this,_0x348b54(0x304),new I[(_0x348b54(0x1b3))](u[_0x348b54(0x7d)][_0x348b54(0xcc)])),(this['_docStateChangeManagerService']=_0x4346de,this['_collaborationController']=_0x4c784f,this[_0x348b54(0x22d)]=_0x2928dc,this[_0x348b54(0x2a7)]=_0x33f37f,this[_0x348b54(0x29f)]=_0x49e35b,this[_0x348b54(0xa0)]=_0x781645,this[_0x348b54(0x15c)]=_0x42d29c,this[_0x348b54(0x206)]=_0x286fa0,this[_0x348b54(0x211)]());}['_initEntityListener'](){const _0x2e0214=_0xde5e7f;this[_0x2e0214(0x19e)](this[_0x2e0214(0xb4)][_0x2e0214(0x83)][_0x2e0214(0x272)](_0x5f71ba=>{const _0x4dbb95=_0x2e0214,_0x32af00=this[_0x4dbb95(0x177)][_0x4dbb95(0xf2)]['subscribe'](_0x33d9d7=>{const _0x6105fc=_0x4dbb95;if(_0x33d9d7==null)return;const {unitId:_0x52c460,redoState:_0x2671d4,commandId:_0x4e1e43}=_0x33d9d7;if(_0x52c460!==_0x5f71ba[_0x6105fc(0x161)])return;const _0x9d383c={'id':_0x4e1e43,'type':a[_0x6105fc(0x194)][_0x6105fc(0x13c)],'params':{'unitId':_0x52c460,'actions':_0x2671d4[_0x6105fc(0x2bb)],'textRanges':null}};_0x5f71ba[_0x6105fc(0x301)](_0x9d383c);});if(_0x5f71ba[_0x4dbb95(0x19e)](_0x32af00),_0x5f71ba instanceof u[_0x4dbb95(0x215)]){const _0x3dedd0={'onTransformIME':_0x18cec9=>this[_0x4dbb95(0x22d)][_0x4dbb95(0x219)](_0x18cec9),'onTransformState':_0x34d2dd=>this[_0x4dbb95(0x2a7)][_0x4dbb95(0x130)](_0x34d2dd),'onTransformSelections':_0x1b0887=>this[_0x4dbb95(0x29f)]['transformSelections'](_0x1b0887),'onSyncEditingCollabCursor':_0x5a3c05=>this[_0x4dbb95(0xa0)][_0x4dbb95(0x241)](_0x5a3c05),'onTransformRemoteChangesetByIMECache':_0x25123a=>this[_0x4dbb95(0x22d)][_0x4dbb95(0x343)](_0x25123a),'onTransformRemoteChangesetByStateCache':_0x123e87=>this[_0x4dbb95(0x2a7)][_0x4dbb95(0x343)](_0x123e87)};_0x5f71ba[_0x4dbb95(0x1df)](_0x3dedd0);}}));}};ie=zt([N(0x0,a[_0xde5e7f(0x300)](T[_0xde5e7f(0x2dd)])),N(0x1,a[_0xde5e7f(0x300)](u[_0xde5e7f(0xcd)])),N(0x2,a[_0xde5e7f(0x300)](ee)),N(0x3,a[_0xde5e7f(0x300)](te)),N(0x4,a[_0xde5e7f(0x300)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0xde5e7f(0x30b)]),N(0x7,a['Inject'](a['LocaleService']))],ie);var G=(_0x5e7e9e=>(_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x245)]=0x0]=_0xde5e7f(0x245),_0x5e7e9e[_0x5e7e9e['OK']=0x1]='OK',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1f0)]=0x2]=_0xde5e7f(0x1f0),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1dd)]=0x3]=_0xde5e7f(0x1dd),_0x5e7e9e[_0x5e7e9e['NOT_FOUND']=0x4]=_0xde5e7f(0x1c9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1d6)]=0x5]=_0xde5e7f(0x1d6),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x288)]=0x6]='ALREADY_EXISTS',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2e5)]=0x7]=_0xde5e7f(0x2e5),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1bb)]=0x8]=_0xde5e7f(0x1bb),_0x5e7e9e[_0x5e7e9e['COMPLETION_FINISHED']=0x9]=_0xde5e7f(0x152),_0x5e7e9e[_0x5e7e9e['LOGIN_FAILED']=0xa]=_0xde5e7f(0x311),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x10d)]=0xb]=_0xde5e7f(0x10d),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2a4)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1a5)]=0xd]=_0xde5e7f(0x1a5),_0x5e7e9e[_0x5e7e9e['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0xde5e7f(0x1e7),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x239)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x5e7e9e[_0x5e7e9e['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0xde5e7f(0xfd),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x9c)]=0x64]=_0xde5e7f(0x9c),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2d7)]=0x65]=_0xde5e7f(0x2d7),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x182)]=0xc9]=_0xde5e7f(0x182),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1f9)]=0xca]=_0xde5e7f(0x1f9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x10e)]=0x1389]=_0xde5e7f(0x10e),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2e6)]=0x1771]=_0xde5e7f(0x2e6),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x223)]=0x1772]=_0xde5e7f(0x223),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x26d)]=0x1773]=_0xde5e7f(0x26d),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x186)]=0x1b59]='APPLY_REJECT',_0x5e7e9e[_0x5e7e9e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0xde5e7f(0x127),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x14c)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xc7)]=0x1b5c]=_0xde5e7f(0xc7),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xec)]=0x1b5d]=_0xde5e7f(0xec),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x310)]=0x1f41]=_0xde5e7f(0x310),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x9e)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5e7e9e[_0x5e7e9e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xde5e7f(0x1a9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xa8)]=0x232b]=_0xde5e7f(0xa8),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x16e)]=0x232c]=_0xde5e7f(0x16e),_0x5e7e9e[_0x5e7e9e['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x23f)]=0x2711]=_0xde5e7f(0x23f),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x163)]=0x2712]=_0xde5e7f(0x163),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x291)]=0x2713]=_0xde5e7f(0x291),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x8d)]=0x2714]=_0xde5e7f(0x8d),_0x5e7e9e[_0x5e7e9e['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0xde5e7f(0x2b0),_0x5e7e9e[_0x5e7e9e['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1be)]=0x271c]=_0xde5e7f(0x1be),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x30f)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2fc)]=0x271e]=_0xde5e7f(0x2fc),_0x5e7e9e[_0x5e7e9e['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x5e7e9e[_0x5e7e9e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x256)]=0x2af9]=_0xde5e7f(0x256),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1b9)]=0x2ee1]=_0xde5e7f(0x1b9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xbe)]=0x2ee2]='INVALID_INVITE_CODE',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x28a)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x12c)]=0x2ee4]=_0xde5e7f(0x12c),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x8f)]=0x2ee5]=_0xde5e7f(0x8f),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x346)]=0x32c9]=_0xde5e7f(0x346),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2b4)]=0x32ca]=_0xde5e7f(0x2b4),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2d9)]=0x32cb]=_0xde5e7f(0x2d9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x27d)]=0x36b1]=_0xde5e7f(0x27d),_0x5e7e9e[_0x5e7e9e['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0xde5e7f(0x281),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2f0)]=0x36b3]=_0xde5e7f(0x2f0),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xe9)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x157)]=0x36b5]=_0xde5e7f(0x157),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xb7)]=0x36b6]=_0xde5e7f(0xb7),_0x5e7e9e[_0x5e7e9e['ENTITLE_COUPON_USED_UP']=0x36b7]=_0xde5e7f(0x7e),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x160)]=0x36b8]=_0xde5e7f(0x160),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2dc)]=0x3715]=_0xde5e7f(0x2dc),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x13f)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x5e7e9e[_0x5e7e9e['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0xde5e7f(0x197),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x282)]=0x37dd]=_0xde5e7f(0x282),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x11f)]=0x3a99]=_0xde5e7f(0x11f),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x93)]=0x3a9a]=_0xde5e7f(0x93),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1c6)]=0x3a9b]=_0xde5e7f(0x1c6),_0x5e7e9e[_0x5e7e9e['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0xde5e7f(0xfa),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x267)]=0x3a9d]=_0xde5e7f(0x267),_0x5e7e9e[_0x5e7e9e['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0xde5e7f(0x23a),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xf8)]=0x3a9f]=_0xde5e7f(0xf8),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1e6)]=0x3e81]=_0xde5e7f(0x1e6),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2ae)]=-0x1]=_0xde5e7f(0x2ae),_0x5e7e9e))(G||{});function Jt(_0x2c91ae){const _0x5b9e51=_0xde5e7f;var _0x426997,_0x42bba8;const _0x51d71c=(_0x426997=_0x2c91ae[_0x5b9e51(0x167)])==null?void 0x0:_0x426997[_0x5b9e51(0x12a)],_0x44dc43=((_0x42bba8=_0x2c91ae[_0x5b9e51(0x167)])==null?void 0x0:_0x42bba8[_0x5b9e51(0x2b1)])||0x0;return _0x51d71c===B[_0x5b9e51(0x26b)][_0x5b9e51(0xde)]&&_0x44dc43>0x0;}function Zt(_0x3b62a8){const _0x4c1236=_0xde5e7f;return _0x3b62a8['functionsExecutedState']===B[_0x4c1236(0x289)][_0x4c1236(0xa2)];}var Qt=Object[_0xde5e7f(0x100)],es=(_0x1f8a15,_0xe9ee76,_0x20d509,_0x381880)=>{for(var _0x382e97=_0x381880>0x1?void 0x0:_0x381880?Qt(_0xe9ee76,_0x20d509):_0xe9ee76,_0x13fd64=_0x1f8a15['length']-0x1,_0x2c8803;_0x13fd64>=0x0;_0x13fd64--)(_0x2c8803=_0x1f8a15[_0x13fd64])&&(_0x382e97=_0x2c8803(_0x382e97)||_0x382e97);return _0x382e97;},L=(_0x13b8f0,_0x2ce5cc)=>(_0x4dd886,_0x4d7e88)=>_0x2ce5cc(_0x4dd886,_0x4d7e88,_0x13b8f0);const ts='/universer-api/license/formula/limit/status',ss=_0xde5e7f(0x255),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0xde5e7f(0x109)]{constructor(_0x74d78e,_0x5273e4,_0x2bdec5,_0x56bb43,_0x1618a6,_0x262f9f,_0x2221ca){const _0x4313b4=_0xde5e7f;super(),_(this,'_pollingInterval',null),_(this,_0x4313b4(0x33a),0x0),_(this,_0x4313b4(0x2fa),0x0),_(this,_0x4313b4(0x2f9),[]),_(this,_0x4313b4(0x2d5),0x0),(this[_0x4313b4(0x15c)]=_0x74d78e,this['_commandService']=_0x5273e4,this[_0x4313b4(0xef)]=_0x2bdec5,this[_0x4313b4(0x1d1)]=_0x56bb43,this[_0x4313b4(0x1e1)]=_0x1618a6,this['_logService']=_0x262f9f,this[_0x4313b4(0x206)]=_0x2221ca,this['_initCommandInterceptor']());}[_0xde5e7f(0x12e)](){const _0x46920f=_0xde5e7f;this[_0x46920f(0x19e)](this['_commandService']['beforeCommandExecuted']((_0x52cd31,_0x1ddcb8)=>{const _0x24962b=_0x46920f;var _0x373f4e;if(_0x52cd31['id']!==B[_0x24962b(0x30e)]['id'])return;const _0x1eeb72=_0x52cd31['params'];if(!this[_0x24962b(0x2de)]((_0x373f4e=_0x1eeb72[_0x24962b(0x2bc)])!=null?_0x373f4e:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x24962b(0x31d)](_0x52cd31,_0x1ddcb8),this[_0x24962b(0x25c)](),new a[(_0x24962b(0x126))]();})),this[_0x46920f(0x19e)](this[_0x46920f(0x220)][_0x46920f(0x1fe)]((_0xe315fb,_0x213fd5)=>{const _0x3bfd77=_0x46920f;if(_0xe315fb['id']!==B[_0x3bfd77(0x1ee)]['id'])return;const _0x39b2e5=_0xe315fb[_0x3bfd77(0x96)];if(Jt(_0x39b2e5)){const _0x6cecbc=a[_0x3bfd77(0xa6)]();this[_0x3bfd77(0x2f9)][_0x3bfd77(0x32f)](_0x6cecbc),this[_0x3bfd77(0x22c)](_0x6cecbc);}else{if(Zt(_0x39b2e5)&&this[_0x3bfd77(0x2f9)][_0x3bfd77(0x1ef)]>0x0){const _0x19de8f=this[_0x3bfd77(0x2f9)][_0x3bfd77(0x19a)]();this[_0x3bfd77(0x31f)](_0x19de8f);}}}));}[_0xde5e7f(0x29b)](){const _0x2517d4=_0xde5e7f;super['dispose'](),this[_0x2517d4(0x133)](),this[_0x2517d4(0x2f9)]=[],this['_currentUsage']=0x0,this[_0x2517d4(0x33a)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0xde5e7f(0x31d)](_0x5764cf,_0x20c1e2){const _0x11880e=_0xde5e7f;for(let _0xb04be1=0x0;_0xb04be1<0x1e;_0xb04be1++)try{if(await this[_0x11880e(0x2c5)](),this[_0x11880e(0x1d0)]()){this[_0x11880e(0x174)](_0x5764cf,_0x20c1e2),this['_messageService'][_0x11880e(0x196)]({'content':this[_0x11880e(0x206)]['t'](_0x11880e(0x17b)),'type':p[_0x11880e(0x264)]['Success']});return;}await new Promise(_0x3af917=>{const _0x4978d1=_0x11880e;this['_pollingInterval']=window[_0x4978d1(0xb3)](_0x3af917,0x3e8);});}catch(_0x53e633){this[_0x11880e(0x1cf)]['error'](_0x53e633);}this[_0x11880e(0x15c)][_0x11880e(0x196)]({'content':this[_0x11880e(0x206)]['t'](_0x11880e(0x122)),'type':p[_0x11880e(0x264)]['Error']});}['_applyCommand'](_0x4c134b,_0x347bf4){const _0x383cac=_0xde5e7f;try{this[_0x383cac(0x220)][_0x383cac(0x1cc)](_0x4c134b['id'],_0x4c134b['params'],_0x347bf4);}catch(_0x457f44){this[_0x383cac(0x1cf)]['error'](_0x457f44);}}[_0xde5e7f(0x29e)](_0x508529,_0x267979){const _0x84ce42=_0xde5e7f;_0x267979<this[_0x84ce42(0x2d5)]||(this['_lastResponseTimestamp']=_0x267979,this[_0x84ce42(0x33a)]=Number['parseInt'](_0x508529[_0x84ce42(0x1b6)]),this[_0x84ce42(0x2fa)]=Number[_0x84ce42(0x7b)](_0x508529[_0x84ce42(0x87)]));}async[_0xde5e7f(0x22c)](_0x4734ed){const _0x2753ec=_0xde5e7f;var _0x1ad16e,_0x107caf;const _0x33006c=Date[_0x2753ec(0x1c1)]();try{const _0x37e41e=((_0x1ad16e=this['_configService']['getConfig'](u[_0x2753ec(0x12d)]))==null?void 0x0:_0x1ad16e[_0x2753ec(0x213)])||ss,_0x2ef5d0=(await this[_0x2753ec(0x1d1)][_0x2753ec(0x32d)](_0x37e41e,{'body':JSON['stringify']({'taskId':_0x4734ed})}))[_0x2753ec(0x1da)];if(((_0x107caf=_0x2ef5d0[_0x2753ec(0x238)])==null?void 0x0:_0x107caf[_0x2753ec(0x181)])!==G['OK'])return;this[_0x2753ec(0x29e)](_0x2ef5d0[_0x2753ec(0x110)],_0x33006c);}catch(_0x330fa0){this[_0x2753ec(0x1cf)][_0x2753ec(0x238)](_0x330fa0);}}async[_0xde5e7f(0x2c5)](_0x40184b){const _0x3031a1=_0xde5e7f;var _0x46f77b,_0x3188cf;const _0x313078=Date[_0x3031a1(0x1c1)]();try{const _0x5715e5=((_0x46f77b=this['_configService']['getConfig'](u[_0x3031a1(0x12d)]))==null?void 0x0:_0x46f77b[_0x3031a1(0x176)])||ts,_0x4b9e14=_0x40184b?_0x5715e5+_0x3031a1(0x80)+encodeURIComponent(_0x40184b):_0x5715e5,_0x3adcc7=(await this['_httpService'][_0x3031a1(0x247)](_0x4b9e14))[_0x3031a1(0x1da)];if(((_0x3188cf=_0x3adcc7[_0x3031a1(0x238)])==null?void 0x0:_0x3188cf[_0x3031a1(0x181)])!==G['OK'])return;this[_0x3031a1(0x29e)](_0x3adcc7[_0x3031a1(0x110)],_0x313078);}catch(_0x51719b){this['_logService'][_0x3031a1(0x238)](_0x51719b);}}async['_releaseCalculationLimit'](_0x54a2f7){const _0x28ba61=_0xde5e7f;var _0x51e305,_0x476100;const _0x306de2=Date['now']();try{const _0x147c5e=((_0x51e305=this[_0x28ba61(0xef)][_0x28ba61(0x200)](u[_0x28ba61(0x12d)]))==null?void 0x0:_0x51e305[_0x28ba61(0xda)])||is,_0x23404b=(await this[_0x28ba61(0x1d1)][_0x28ba61(0x32d)](_0x147c5e,{'body':JSON[_0x28ba61(0x143)]({'taskId':_0x54a2f7})}))['body'];if(((_0x476100=_0x23404b[_0x28ba61(0x238)])==null?void 0x0:_0x476100[_0x28ba61(0x181)])!==G['OK'])return;this[_0x28ba61(0x29e)](_0x23404b[_0x28ba61(0x110)],_0x306de2);}catch(_0x26d1b2){this[_0x28ba61(0x1cf)][_0x28ba61(0x238)](_0x26d1b2);}}[_0xde5e7f(0x1d0)](){const _0x21fd26=_0xde5e7f;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x21fd26(0x2fa)]>0x0;}[_0xde5e7f(0x133)](){const _0x143b0e=_0xde5e7f;this[_0x143b0e(0x320)]&&(clearTimeout(this[_0x143b0e(0x320)]),this[_0x143b0e(0x320)]=null);}['_showGuardMessage'](){const _0x2968b9=_0xde5e7f;this[_0x2968b9(0x15c)][_0x2968b9(0x196)]({'content':this[_0x2968b9(0x206)]['t']('formula.calculation.waiting'),'type':p['MessageType'][_0x2968b9(0x23c)]});}[_0xde5e7f(0x2de)](_0x361413){const _0x32b756=_0xde5e7f;for(const _0x491349 of _0x361413){const {unitId:_0x402c64,sheetId:_0x32ede8,range:_0x5ad021}=_0x491349,_0x5b8102=this[_0x32b756(0x1e1)]['getUnit'](_0x402c64);if(!_0x5b8102)continue;const _0x3b36b=_0x5b8102[_0x32b756(0x339)](_0x32ede8);if(!_0x3b36b)continue;const _0x37b771=_0x3b36b['getCellMatrix']();for(let _0x4ca8b0=_0x5ad021[_0x32b756(0xeb)];_0x4ca8b0<=_0x5ad021['endRow'];_0x4ca8b0++)for(let _0x5a929d=_0x5ad021['startColumn'];_0x5a929d<=_0x5ad021[_0x32b756(0x191)];_0x5a929d++){const _0x46bcd7=_0x37b771[_0x32b756(0x1c4)](_0x4ca8b0,_0x5a929d);if(_0x46bcd7&&(a[_0x32b756(0x166)](_0x46bcd7['f'])||a[_0x32b756(0x1a1)](_0x46bcd7['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0xde5e7f(0x300)](O['IMessageService'])),L(0x1,a[_0xde5e7f(0x32c)]),L(0x2,a[_0xde5e7f(0x16c)]),L(0x3,a[_0xde5e7f(0x300)](x['HTTPService'])),L(0x4,a[_0xde5e7f(0x2e3)]),L(0x5,a['ILogService']),L(0x6,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1b5)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x16312f,_0x5d9e9f,_0x1d3dd8,_0x2cfbc4)=>{for(var _0x2d30ff=_0x2cfbc4>0x1?void 0x0:_0x2cfbc4?ns(_0x5d9e9f,_0x1d3dd8):_0x5d9e9f,_0x4e6cd9=_0x16312f['length']-0x1,_0x5e0cb9;_0x4e6cd9>=0x0;_0x4e6cd9--)(_0x5e0cb9=_0x16312f[_0x4e6cd9])&&(_0x2d30ff=_0x5e0cb9(_0x2d30ff)||_0x2d30ff);return _0x2d30ff;},Se=(_0x56f8fe,_0x21392b)=>(_0x274ddf,_0x194f87)=>_0x21392b(_0x274ddf,_0x194f87,_0x56f8fe);let Te=class extends a['Disposable']{constructor(_0x3188ef,_0x1c4ba9,_0x25af3f){const _0x51fd56=_0xde5e7f;super(),_(this,_0x51fd56(0x30d),new Map()),_(this,_0x51fd56(0x20f),new Map()),_(this,_0x51fd56(0x107),!0x1),(this[_0x51fd56(0xef)]=_0x3188ef,this[_0x51fd56(0x278)]=_0x1c4ba9,this[_0x51fd56(0x2cd)]=_0x25af3f);}[_0xde5e7f(0x201)](){const _0x894cd6=_0xde5e7f;this[_0x894cd6(0x107)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0xde5e7f(0x10b)](){return this['_saveTaskMap'];}[_0xde5e7f(0x29b)](){const _0x3f0b33=_0xde5e7f;this['exhaustSavingTask']()[_0x3f0b33(0x205)](()=>super[_0x3f0b33(0x29b)]());}async[_0xde5e7f(0x1d8)](_0x2d8078){const _0x10de42=_0xde5e7f;return this['_disabled']?null:this['_localStorageService'][_0x10de42(0x117)](u[_0x10de42(0x2c3)](_0x2d8078));}async[_0xde5e7f(0x1dc)](_0x570175,_0x33b8b1){const _0x46c822=_0xde5e7f;return!!this[_0x46c822(0x278)]['setItem'](_0x570175,_0x33b8b1);}[_0xde5e7f(0x140)](_0x3ac41c,_0x2b50d1,_0x122ae7,_0x3d3f2c){const _0x29e061=_0xde5e7f,_0x137ace=this['_revisionService'][_0x29e061(0x1f3)](_0x3ac41c);this[_0x29e061(0x30d)]['set'](_0x3ac41c,{'unitID':_0x3ac41c,'type':_0x2b50d1,'awaitingChangeset':_0x122ae7,'mutations':_0x3d3f2c,'rev':_0x137ace}),this[_0x29e061(0x20f)][_0x29e061(0xea)](_0x3ac41c)||this[_0x29e061(0x179)](_0x3ac41c);}[_0xde5e7f(0x179)](_0x4ede4f){const _0x22badb=_0xde5e7f,_0x30b45c=this[_0x22badb(0x1a3)]();_0x30b45c===0x0?this[_0x22badb(0x31c)](_0x4ede4f):this[_0x22badb(0x20f)][_0x22badb(0x258)](_0x4ede4f,setTimeout(()=>this[_0x22badb(0x31c)](_0x4ede4f),_0x30b45c));}[_0xde5e7f(0x1a3)](){const _0x70a8f5=_0xde5e7f;var _0xdbfd1d;return(_0xdbfd1d=this[_0x70a8f5(0xef)]['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0xdbfd1d:u[_0x70a8f5(0x198)];}[_0xde5e7f(0x31c)](_0x1e7cde){const _0x153eef=_0xde5e7f,_0x2e1b1e=this[_0x153eef(0x20f)][_0x153eef(0x247)](_0x1e7cde);return _0x2e1b1e!==void 0x0&&window['clearTimeout'](_0x2e1b1e),this['_localStorageService']['setItem'](u[_0x153eef(0x2c3)](_0x1e7cde),this[_0x153eef(0x30d)][_0x153eef(0x247)](_0x1e7cde))[_0x153eef(0x205)](()=>this[_0x153eef(0x20f)][_0x153eef(0x22b)](_0x1e7cde));}async[_0xde5e7f(0x15d)](){const _0x2a3b1b=_0xde5e7f,_0x1af1b6=[];this[_0x2a3b1b(0x20f)]['forEach']((_0x291ba9,_0x20159d)=>{const _0x852aec=_0x2a3b1b;window[_0x852aec(0xaf)](_0x291ba9),_0x1af1b6[_0x852aec(0x32f)](this[_0x852aec(0x31c)](_0x20159d)[_0x852aec(0x205)](()=>{const _0x762f15=_0x852aec;this[_0x762f15(0x20f)][_0x762f15(0x22b)](_0x20159d);}));}),await Promise[_0x2a3b1b(0xdd)](_0x1af1b6);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0xde5e7f(0x22e)]),Se(0x2,a['Inject'](g[_0xde5e7f(0xd6)]))],Te);class ke extends a[_0xde5e7f(0x286)]{constructor(){const _0x4b24ba=_0xde5e7f;super(),_(this,_0x4b24ba(0x224)),this[_0x4b24ba(0x224)]=I['fromEvent'](window,'popstate')['pipe'](I['takeUntil'](this[_0x4b24ba(0x307)]),I['shareReplay'](0x1),I[_0x4b24ba(0x1ed)](void 0x0));}[_0xde5e7f(0x296)](_0x3dfaf8,_0x472cbc,_0x373721=!0x1){const _0x2644cd=_0xde5e7f,_0x25893f=new URL(window[_0x2644cd(0x15a)]['href']);_0x25893f['searchParams'][_0x2644cd(0x258)](_0x3dfaf8,_0x472cbc),_0x373721?window[_0x2644cd(0x141)][_0x2644cd(0x266)]('','',_0x25893f[_0x2644cd(0x13b)]()):window[_0x2644cd(0x141)][_0x2644cd(0x292)]('','',_0x25893f['toString']());}[_0xde5e7f(0x92)](_0x39be42,_0x18011e=!0x1){const _0x37ed4a=_0xde5e7f,_0x31e7a0=new URL(window[_0x37ed4a(0x15a)]['href']);_0x31e7a0['searchParams']['delete'](_0x39be42),_0x18011e?window[_0x37ed4a(0x141)]['replaceState']('','',_0x31e7a0[_0x37ed4a(0x13b)]()):window['history'][_0x37ed4a(0x292)]('','',_0x31e7a0[_0x37ed4a(0x13b)]());}[_0xde5e7f(0x168)](_0x2e0035){const _0x14d048=_0xde5e7f;var _0x1555b1;return(_0x1555b1=new URL(window['location'][_0x14d048(0x1ec)])[_0x14d048(0x26f)][_0x14d048(0x247)](_0x2e0035))!=null?_0x1555b1:void 0x0;}}var os=Object[_0xde5e7f(0x2d3)],as=Object[_0xde5e7f(0x100)],cs=(_0x392198,_0x2a1a3b,_0x33ac4c)=>_0x2a1a3b in _0x392198?os(_0x392198,_0x2a1a3b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33ac4c}):_0x392198[_0x2a1a3b]=_0x33ac4c,ls=(_0x10bbb1,_0x1741ad,_0x4a0c6e,_0x439b27)=>{const _0x1372f3=_0xde5e7f;for(var _0x40cc9e=_0x439b27>0x1?void 0x0:_0x439b27?as(_0x1741ad,_0x4a0c6e):_0x1741ad,_0x4c5063=_0x10bbb1[_0x1372f3(0x1ef)]-0x1,_0xb8854f;_0x4c5063>=0x0;_0x4c5063--)(_0xb8854f=_0x10bbb1[_0x4c5063])&&(_0x40cc9e=_0xb8854f(_0x40cc9e)||_0x40cc9e);return _0x40cc9e;},de=(_0x314d34,_0x2a1078)=>(_0x2a2b50,_0x2a105e)=>_0x2a1078(_0x2a2b50,_0x2a105e,_0x314d34),_s=(_0x5289b0,_0x3e5f3d,_0x44d7d1)=>cs(_0x5289b0,_0x3e5f3d+'',_0x44d7d1);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0xde5e7f(0x212)]=class extends a['Plugin']{constructor(_0x33b555=Me,_0x2c6462,_0x4b0b12,_0x2d497d){const _0x1dae0a=_0xde5e7f;super(),this['_config']=_0x33b555,this[_0x1dae0a(0x303)]=_0x2c6462,this[_0x1dae0a(0x2eb)]=_0x4b0b12,this[_0x1dae0a(0xef)]=_0x2d497d;const {..._0x14e0f6}=a[_0x1dae0a(0x11d)]({},Me,this[_0x1dae0a(0x233)]);this[_0x1dae0a(0xef)][_0x1dae0a(0x262)](Yt,_0x14e0f6);}['onStarting'](){const _0x27a3c8=_0xde5e7f;this[_0x27a3c8(0x91)](),this[_0x27a3c8(0x26e)]();}[_0xde5e7f(0x111)](){const _0x3dc845=_0xde5e7f;this[_0x3dc845(0x9f)]();}[_0xde5e7f(0x91)](){const _0x35bac9=_0xde5e7f;var _0x1c711c;const _0x50f64c=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x['WebSocketService']}],[u[_0x35bac9(0x25a)],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x35bac9(0x313)]]];this[_0x35bac9(0x233)]['enableFrontendLog']&&_0x50f64c[_0x35bac9(0x32f)]([Q]),a[_0x35bac9(0x1ba)](this[_0x35bac9(0x2eb)],a[_0x35bac9(0x221)](_0x50f64c,(_0x1c711c=this[_0x35bac9(0x233)])==null?void 0x0:_0x1c711c['override']));}[_0xde5e7f(0x9f)](){const _0x4a0289=_0xde5e7f;this[_0x4a0289(0x19e)](this[_0x4a0289(0x303)][_0x4a0289(0x16b)](a[_0x4a0289(0xd9)][_0x4a0289(0x2e7)],[Ee])),this[_0x4a0289(0x19e)](this[_0x4a0289(0x303)][_0x4a0289(0x16b)](a[_0x4a0289(0xd9)][_0x4a0289(0x24e)],[Ce]));}['_initDependencies'](){const _0x5987e0=_0xde5e7f;a['touchDependencies'](this['_injector'],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x5987e0(0x313)]],[ne]]),this[_0x5987e0(0x233)]['enableFrontendLog']&&a['touchDependencies'](this[_0x5987e0(0x2eb)],[[Q]]);}},_s(exports[_0xde5e7f(0x212)],_0xde5e7f(0x16d),hs),exports[_0xde5e7f(0x212)]=ls([a['DependentOn'](u[_0xde5e7f(0xd1)]),de(0x1,C[_0xde5e7f(0x1ce)]),de(0x2,a[_0xde5e7f(0x300)](a['Injector'])),de(0x3,a[_0xde5e7f(0x16c)])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0xde5e7f(0x100)],Is=(_0x3c85a7,_0x372974,_0x2079e3,_0x39e836)=>{const _0x1f66b9=_0xde5e7f;for(var _0xf1f138=_0x39e836>0x1?void 0x0:_0x39e836?us(_0x372974,_0x2079e3):_0x372974,_0x2836df=_0x3c85a7[_0x1f66b9(0x1ef)]-0x1,_0x3c5368;_0x2836df>=0x0;_0x2836df--)(_0x3c5368=_0x3c85a7[_0x2836df])&&(_0xf1f138=_0x3c5368(_0xf1f138)||_0xf1f138);return _0xf1f138;},W=(_0x32179d,_0x501bc2)=>(_0x351bc0,_0x17cc35)=>_0x501bc2(_0x351bc0,_0x17cc35,_0x32179d);exports[_0xde5e7f(0x2e9)]=class extends u['CollaborationSocketService']{constructor(_0x2b91e4,_0x12e3dd,_0x336a13,_0x2e0f80,_0x2ad84d){super(_0x2b91e4,_0x12e3dd,_0x336a13,_0x2e0f80,_0x2ad84d);}async['createSocket'](_0x59b091){const _0x431c10=_0xde5e7f,_0x39b39e=await this[_0x431c10(0x78)](),_0x8fceaa=this[_0x431c10(0x15f)](_0x59b091,_0x39b39e);return this[_0x431c10(0x1e3)](_0x8fceaa);}[_0xde5e7f(0x15f)](_0x1ca378,_0x3f80dc){const _0x1eb86e=_0xde5e7f,_0x559289=typeof window>'u'?new URL(_0x1ca378):new URL(_0x1ca378,window[_0x1eb86e(0x15a)][_0x1eb86e(0x285)]);_0x559289[_0x1eb86e(0x26f)][_0x1eb86e(0x258)](_0x1eb86e(0x158),_0x3f80dc);const _0x455e2d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1eb86e(0xd4)]);return _0x455e2d[_0x1eb86e(0x247)](_0x1eb86e(0x2cf))&&_0x559289[_0x1eb86e(0x26f)][_0x1eb86e(0x258)](_0x1eb86e(0x2cf),_0x455e2d[_0x1eb86e(0x247)](_0x1eb86e(0x2cf))),_0x559289['toString']();}async[_0xde5e7f(0x78)](){const _0x3825c7=_0xde5e7f;var _0x541e89,_0x5b0d21,_0x3d50dc;const _0x2b2e13=this['_configService'][_0x3825c7(0x200)](u[_0x3825c7(0x12d)]),_0x34a8ed=(_0x541e89=_0x2b2e13==null?void 0x0:_0x2b2e13[_0x3825c7(0xe8)])!=null?_0x541e89:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3d50dc=(_0x5b0d21=(await this[_0x3825c7(0x1d1)][_0x3825c7(0x247)](_0x34a8ed,{'headers':{'Content-Type':_0x3825c7(0x138)}}))[_0x3825c7(0x1da)])==null?void 0x0:_0x5b0d21['ticket'])!=null?_0x3d50dc:'';}},exports[_0xde5e7f(0x2e9)]=Is([W(0x0,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),W(0x1,a[_0xde5e7f(0x300)](x[_0xde5e7f(0x1b7)])),W(0x2,a['IConfigService']),W(0x3,a[_0xde5e7f(0x2f4)]),W(0x4,g[_0xde5e7f(0x9b)])],exports[_0xde5e7f(0x2e9)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x36dc71,_0x15573e,_0x4cb475,_0x48176b)=>{const _0x4b1906=_0xde5e7f;for(var _0x2b9376=_0x48176b>0x1?void 0x0:_0x48176b?Ss(_0x15573e,_0x4cb475):_0x15573e,_0xaa7b68=_0x36dc71[_0x4b1906(0x1ef)]-0x1,_0x215f4f;_0xaa7b68>=0x0;_0xaa7b68--)(_0x215f4f=_0x36dc71[_0xaa7b68])&&(_0x2b9376=_0x215f4f(_0x2b9376)||_0x2b9376);return _0x2b9376;},fe=(_0x56aa3d,_0x93e29)=>(_0x4ece11,_0x41c8a3)=>_0x93e29(_0x4ece11,_0x41c8a3,_0x56aa3d);exports[_0xde5e7f(0x151)]=class extends a[_0xde5e7f(0x109)]{constructor(_0x4735f4,_0x601898,_0x478ac2){const _0x16bca5=_0xde5e7f;super(),this[_0x16bca5(0x21c)]=_0x4735f4,this[_0x16bca5(0x1d1)]=_0x601898,this['_configService']=_0x478ac2;}async['runOnServer'](_0x3d9ffa,_0x2115ce,_0x3c6f5a,..._0xf3fd34){const _0x42cbbb=_0xde5e7f;var _0x56f772,_0x1a4ccc,_0x3df428,_0x1c8694;const _0x257552=this['_instanceService'][_0x42cbbb(0x15b)]();if(!_0x257552)throw new Error(_0x42cbbb(0x12b));const _0x297537=((_0x56f772=this['_configService'][_0x42cbbb(0x200)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x56f772:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x3d9ffa+'/run/'+_0x2115ce,_0x22351e=new URL(window['location'][_0x42cbbb(0x1ec)]),_0x3370ee={'scriptId':_0x3d9ffa,'runId':(_0x1a4ccc=_0x22351e[_0x42cbbb(0x26f)][_0x42cbbb(0x247)]('runId'))!=null?_0x1a4ccc:'','function':_0x2115ce,'unitId':_0x257552['getUnitId'](),'argsOfFunction':JSON[_0x42cbbb(0x143)](_0xf3fd34),'invokeId':(_0x3df428=_0x3c6f5a[_0x42cbbb(0x315)])!=null?_0x3df428:'','executionId':(_0x1c8694=_0x3c6f5a[_0x42cbbb(0x97)])!=null?_0x1c8694:''};try{const _0x2a3b8a=await this[_0x42cbbb(0x1d1)][_0x42cbbb(0x32d)](_0x297537,{'body':_0x3370ee});return _0x2a3b8a[_0x42cbbb(0x1da)][_0x42cbbb(0x238)]&&_0x2a3b8a[_0x42cbbb(0x1da)][_0x42cbbb(0x238)][_0x42cbbb(0x181)]!==G['OK']?_0x42cbbb(0x1a2):_0x2a3b8a['body']['result'];}catch{return'Failed';}}},exports[_0xde5e7f(0x151)]=ds([fe(0x0,a[_0xde5e7f(0x2e3)]),fe(0x1,a[_0xde5e7f(0x300)](x[_0xde5e7f(0x1b7)])),fe(0x2,a[_0xde5e7f(0x16c)])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0xde5e7f(0xa7);class fs extends a[_0xde5e7f(0x109)]{constructor(){const _0x194e54=_0xde5e7f;super(),_(this,_0x194e54(0x2b3),a[_0x194e54(0xa6)]()),_(this,_0x194e54(0x237),new Set()),_(this,_0x194e54(0xe3),new Map()),_(this,_0x194e54(0x1d9),null),_(this,_0x194e54(0x1d4),new Map()),_(this,_0x194e54(0x125),new Map()),this['_init']();}[_0xde5e7f(0x29b)](){const _0x2118e3=_0xde5e7f;super['dispose'](),this[_0x2118e3(0x1d4)][_0x2118e3(0x1a7)]((_0x574920,_0x30ea94)=>this[_0x2118e3(0xab)](_0x30ea94)),this[_0x2118e3(0x1d9)]&&window[_0x2118e3(0x1de)](this['_heartbeatTimer']);}[_0xde5e7f(0x31e)](_0x1ee9bf){const _0x4874a1=_0xde5e7f;return this[_0x4874a1(0x1f8)](_0x1ee9bf)[_0x4874a1(0x27a)](I[_0x4874a1(0x214)]());}[_0xde5e7f(0x33f)](_0x24c295){const _0x5ac835=_0xde5e7f;this[_0x5ac835(0x237)][_0x5ac835(0x1ae)]===0x0&&this[_0x5ac835(0x222)](),this[_0x5ac835(0x237)][_0x5ac835(0x165)](_0x24c295),this[_0x5ac835(0x1d2)]({'type':0x0,'memberID':this[_0x5ac835(0x2b3)],'unitIDs':[_0x24c295],'isForwarded':!0x1});}[_0xde5e7f(0x1e9)](_0xd8d6f3){const _0x5d6fab=_0xde5e7f;this['_selfUnitIDs'][_0x5d6fab(0x22b)](_0xd8d6f3),this[_0x5d6fab(0x237)][_0x5d6fab(0x1ae)]===0x0&&this[_0x5d6fab(0x1d9)]&&window['clearInterval'](this[_0x5d6fab(0x1d9)]);}[_0xde5e7f(0x8c)](){const _0x29876c=_0xde5e7f;this[_0x29876c(0x19e)](a[_0x29876c(0x116)](I[_0x29876c(0xa9)](window,_0x29876c(0x192))['subscribe'](_0x244ba8=>{const _0xd4be43=_0x29876c;if(_0x244ba8[_0xd4be43(0x259)]!==ye||!_0x244ba8[_0xd4be43(0x8a)])return;const _0x3fd9b9=JSON[_0xd4be43(0x324)](_0x244ba8['newValue']);this[_0xd4be43(0x2fb)](_0x3fd9b9);}))),window['addEventListener'](_0x29876c(0x13a),()=>this['_send']({'type':0x1,'memberID':this[_0x29876c(0x2b3)],'unitIDs':Array[_0x29876c(0x260)](this[_0x29876c(0x237)])}));}[_0xde5e7f(0x2fb)](_0x5cf80d){const _0x328a7c=_0xde5e7f;switch(_0x5cf80d[_0x328a7c(0x1ab)]){case 0x0:this[_0x328a7c(0xbd)](_0x5cf80d);break;case 0x1:this[_0x328a7c(0x131)](_0x5cf80d);break;case 0x2:this[_0x328a7c(0x257)](_0x5cf80d);break;}}[_0xde5e7f(0xbd)](_0x34b4f1){const _0x50cd43=_0xde5e7f,{unitIDs:_0x32100a,memberID:_0x48cf8a,isForwarded:_0x587363}=_0x34b4f1;_0x32100a[_0x50cd43(0x1a7)](_0x21323a=>{const _0x134440=_0x50cd43;if(!_0x587363&&this[_0x134440(0xe3)][_0x134440(0xea)](_0x21323a)&&this[_0x134440(0x1f8)](_0x21323a)['next'](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x134440(0xe3)][_0x134440(0xea)](_0x21323a)||!this[_0x134440(0xe3)][_0x134440(0x247)](_0x21323a)[_0x134440(0xea)](_0x48cf8a)){const _0xfab1fa=this[_0x134440(0xe3)][_0x134440(0x247)](_0x21323a)||new Set();_0xfab1fa['add'](_0x48cf8a),this['_unitOnClients'][_0x134440(0x258)](_0x21323a,_0xfab1fa),this[_0x134440(0x338)](_0x48cf8a);}}),_0x587363||this[_0x50cd43(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x50cd43(0x237)]],'isForwarded':!0x0});}[_0xde5e7f(0x338)](_0x570f79){const _0x4ec381=_0xde5e7f;this[_0x4ec381(0xab)](_0x570f79);const _0x5ccf3a=window[_0x4ec381(0xb3)](()=>{const _0x175f80=_0x4ec381;this[_0x175f80(0xe3)]['forEach'](_0x8d5d35=>{const _0x48e698=_0x175f80;_0x8d5d35[_0x48e698(0x22b)](_0x570f79);});},we*0x2);this[_0x4ec381(0x1d4)]['set'](_0x570f79,_0x5ccf3a);}[_0xde5e7f(0xab)](_0x27f77a){const _0x2ae152=_0xde5e7f;if(this[_0x2ae152(0x1d4)][_0x2ae152(0xea)](_0x27f77a)){const _0x1968c4=this[_0x2ae152(0x1d4)][_0x2ae152(0x247)](_0x27f77a);_0x1968c4&&window[_0x2ae152(0xaf)](_0x1968c4),this[_0x2ae152(0x1d4)][_0x2ae152(0x258)](_0x27f77a,null);}}[_0xde5e7f(0x131)](_0x40ce22){const _0x2841f1=_0xde5e7f,{memberID:_0x5a042d,unitIDs:_0x1b871c}=_0x40ce22;_0x1b871c[_0x2841f1(0x1a7)](_0x51ce84=>{const _0x3e845e=_0x2841f1;var _0x5b7ccd;const _0x2e0677=this['_unitOnClients']['get'](_0x51ce84);_0x2e0677&&(_0x2e0677['delete'](_0x5a042d),(_0x5b7ccd=this[_0x3e845e(0x1f8)](_0x51ce84))==null||_0x5b7ccd['next'](_0x2e0677[_0x3e845e(0x1ae)]===0x0?u[_0x3e845e(0x104)][_0x3e845e(0xcf)]:u[_0x3e845e(0x104)][_0x3e845e(0x309)]));}),this[_0x2841f1(0xab)](_0x5a042d);}[_0xde5e7f(0x257)](_0x315b08){const _0x310300=_0xde5e7f;this[_0x310300(0x338)](_0x315b08[_0x310300(0x16a)]);}[_0xde5e7f(0x1d2)](_0x51fa3d){const _0x1d072d=_0xde5e7f;localStorage['setItem'](ye,JSON[_0x1d072d(0x143)](_0x51fa3d));}['_scheduleHeartbeat'](){const _0x78abbb=_0xde5e7f;this[_0x78abbb(0x1d9)]=window[_0x78abbb(0x29a)](()=>{const _0xfbf1db=_0x78abbb;this[_0xfbf1db(0x1d2)]({'type':0x2,'memberID':this[_0xfbf1db(0x2b3)]});},we);}[_0xde5e7f(0x1f8)](_0x4101ff){const _0x5227fd=_0xde5e7f;return this[_0x5227fd(0x125)]['has'](_0x4101ff)||this['_unitStatus'][_0x5227fd(0x258)](_0x4101ff,new I[(_0x5227fd(0x1b3))](u[_0x5227fd(0x104)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x5227fd(0x125)][_0x5227fd(0x247)](_0x4101ff);}}exports[_0xde5e7f(0x95)]=Oe,exports[_0xde5e7f(0x337)]=je,exports[_0xde5e7f(0x329)]=fs,exports[_0xde5e7f(0x118)]=ke;
|
|
1
|
+
'use strict';const _0x57a880=_0x3624;(function(_0x360a2c,_0x30f8c0){const _0x5056aa=_0x3624,_0x18d4ee=_0x360a2c();while(!![]){try{const _0x1251fc=parseInt(_0x5056aa(0x2b2))/0x1+parseInt(_0x5056aa(0xc0))/0x2+-parseInt(_0x5056aa(0x29c))/0x3+-parseInt(_0x5056aa(0x22c))/0x4+-parseInt(_0x5056aa(0x22d))/0x5+parseInt(_0x5056aa(0x237))/0x6+parseInt(_0x5056aa(0x2ea))/0x7*(parseInt(_0x5056aa(0xae))/0x8);if(_0x1251fc===_0x30f8c0)break;else _0x18d4ee['push'](_0x18d4ee['shift']());}catch(_0x147c2f){_0x18d4ee['push'](_0x18d4ee['shift']());}}}(_0x3abf,0xd2786));var Xe=Object[_0x57a880(0x15a)],Ke=(_0x3ce90d,_0x2e4375,_0x29afd8)=>_0x2e4375 in _0x3ce90d?Xe(_0x3ce90d,_0x2e4375,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29afd8}):_0x3ce90d[_0x2e4375]=_0x29afd8,_=(_0x426528,_0x3913e5,_0x2bdb52)=>Ke(_0x426528,typeof _0x3913e5!=_0x57a880(0x19e)?_0x3913e5+'':_0x3913e5,_0x2bdb52);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x57a880(0xf6)});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:_0xb00585,..._0x224d8d}){const _0x170b52=_0x57a880,{icon:_0x535a89,id:_0x41fdc6,className:_0x13dc42,extend:_0x64d442,..._0x2a171c}=_0x224d8d,_0x3262cd=(_0x170b52(0x2c9)+_0x41fdc6+'\x20'+(_0x13dc42||''))[_0x170b52(0x13d)](),_0x5ad6ff=A[_0x170b52(0x1e5)]('_'+Qe());return $e(_0x535a89,''+_0x41fdc6,{'defIds':_0x535a89[_0x170b52(0xd5)],'idSuffix':_0x5ad6ff[_0x170b52(0x86)]},{'ref':_0xb00585,'className':_0x3262cd,..._0x2a171c},_0x64d442);}function $e(_0x110cba,_0x3580cb,_0xf86984,_0x31a425,_0x5c29d3){const _0x445a3b=_0x57a880;return A[_0x445a3b(0x1c1)](_0x110cba['tag'],{'key':_0x3580cb,...Je(_0x110cba,_0xf86984,_0x5c29d3),..._0x31a425},(Ze(_0x110cba,_0xf86984)['children']||[])[_0x445a3b(0x127)]((_0x3effd8,_0x121457)=>$e(_0x3effd8,_0x3580cb+'-'+_0x110cba[_0x445a3b(0x243)]+'-'+_0x121457,_0xf86984,void 0x0,_0x5c29d3)));}function Je(_0x28f5b7,_0x4400f9,_0x2e4019){const _0x53889d=_0x57a880,_0x3ae6b1={..._0x28f5b7[_0x53889d(0x193)]};_0x2e4019!=null&&_0x2e4019[_0x53889d(0x2ed)]&&_0x3ae6b1[_0x53889d(0x9a)]==='colorChannel1'&&(_0x3ae6b1[_0x53889d(0x9a)]=_0x2e4019[_0x53889d(0x2ed)]),_0x28f5b7[_0x53889d(0x243)]===_0x53889d(0x13b)&&_0x3ae6b1['id']&&(_0x3ae6b1['id']=_0x3ae6b1['id']+_0x4400f9['idSuffix']),Object[_0x53889d(0x120)](_0x3ae6b1)['forEach'](([_0x3aec28,_0x44c1df])=>{const _0x52872e=_0x53889d;_0x3aec28===_0x52872e(0x13b)&&typeof _0x44c1df==_0x52872e(0x8b)&&(_0x3ae6b1[_0x3aec28]=_0x44c1df[_0x52872e(0xed)](/url\(#(.*)\)/,_0x52872e(0x34c)+_0x4400f9[_0x52872e(0x19b)]+')'));});const {defIds:_0x4361c9}=_0x4400f9;return!_0x4361c9||_0x4361c9[_0x53889d(0x324)]===0x0||(_0x28f5b7[_0x53889d(0x243)]===_0x53889d(0x2f9)&&_0x3ae6b1[_0x53889d(0x288)]&&(_0x3ae6b1[_0x53889d(0x288)]=_0x3ae6b1['xlink:href']+_0x4400f9[_0x53889d(0x19b)]),Object[_0x53889d(0x120)](_0x3ae6b1)[_0x53889d(0x231)](([_0x5f151a,_0x4e6203])=>{const _0x1637b1=_0x53889d;typeof _0x4e6203==_0x1637b1(0x8b)&&(_0x3ae6b1[_0x5f151a]=_0x4e6203[_0x1637b1(0xed)](/url\(#(.*)\)/,'url(#$1'+_0x4400f9['idSuffix']+')'));})),_0x3ae6b1;}function Ze(_0xefb414,_0x5655b9){const _0x30ff27=_0x57a880;var _0xbfb0b9;const {defIds:_0x323865}=_0x5655b9;return!_0x323865||_0x323865[_0x30ff27(0x324)]===0x0?_0xefb414:_0xefb414[_0x30ff27(0x243)]===_0x30ff27(0x2f2)&&((_0xbfb0b9=_0xefb414[_0x30ff27(0xc4)])!=null&&_0xbfb0b9['length'])?{..._0xefb414,'children':_0xefb414[_0x30ff27(0xc4)]['map'](_0x5c9574=>typeof _0x5c9574['attrs']['id']==_0x30ff27(0x8b)&&_0x323865&&_0x323865[_0x30ff27(0x270)](_0x5c9574[_0x30ff27(0x193)]['id'])?{..._0x5c9574,'attrs':{..._0x5c9574[_0x30ff27(0x193)],'id':_0x5c9574['attrs']['id']+_0x5655b9[_0x30ff27(0x19b)]}}:_0x5c9574)}:_0xefb414;}function Qe(){const _0x4d6ba1=_0x57a880;return Math[_0x4d6ba1(0x23e)]()[_0x4d6ba1(0xc5)](0x24)['substring'](0x2,0x8);}pe[_0x57a880(0x2af)]=_0x57a880(0x143);const et={'tag':'svg','attrs':{'xmlns':_0x57a880(0x30f),'fill':'none','viewBox':_0x57a880(0x216),'width':'1em','height':_0x57a880(0x203)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a880(0x248)},'children':[{'tag':_0x57a880(0x2cc),'attrs':{'stroke':_0x57a880(0x2d7),'d':_0x57a880(0x229),'strokeLinecap':_0x57a880(0x1ad),'strokeLinejoin':_0x57a880(0x1ad),'strokeWidth':1.2}}]},{'tag':_0x57a880(0x2f2),'attrs':{},'children':[{'tag':_0x57a880(0x8c),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x57a880(0x2cc),'attrs':{'fill':_0x57a880(0x2d9),'d':_0x57a880(0xb9)}}]}]}],'defIds':[_0x57a880(0x97)]},xe=A[_0x57a880(0xef)](function(_0x4491e3,_0x377fe7){const _0x2196b8=_0x57a880;return A[_0x2196b8(0x1c1)](pe,Object['assign']({},_0x4491e3,{'id':_0x2196b8(0x1f6),'ref':_0x377fe7,'icon':et}));});xe[_0x57a880(0x2af)]='OffLineIcon';function _0x3624(_0x21dd38,_0x210339){_0x21dd38=_0x21dd38-0x72;const _0x3abfef=_0x3abf();let _0x362417=_0x3abfef[_0x21dd38];return _0x362417;}const tt={'tag':_0x57a880(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x57a880(0x194),'viewBox':_0x57a880(0x1a6),'width':_0x57a880(0x203),'height':_0x57a880(0x203)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a880(0x2c2)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x57a880(0x21d),'strokeLinecap':'round','strokeLinejoin':_0x57a880(0x1ad),'strokeWidth':1.2}}]},{'tag':_0x57a880(0x2f2),'attrs':{},'children':[{'tag':_0x57a880(0x8c),'attrs':{'id':_0x57a880(0x129)},'children':[{'tag':'path','attrs':{'fill':_0x57a880(0x2d9),'d':_0x57a880(0xb9),'transform':_0x57a880(0x29f)}}]}]}],'defIds':[_0x57a880(0x129)]},Be=A[_0x57a880(0xef)](function(_0x5b4fa6,_0x218b58){const _0x1fc7d0=_0x57a880;return A[_0x1fc7d0(0x1c1)](pe,Object[_0x1fc7d0(0x2ab)]({},_0x5b4fa6,{'id':'on-line-icon','ref':_0x218b58,'icon':tt}));});Be[_0x57a880(0x2af)]=_0x57a880(0x306);function st(_0x4f6f3b){const _0x4a718d=_0x57a880;switch(_0x4f6f3b){case u[_0x4a718d(0x18c)][_0x4a718d(0x8f)]:return _0x4a718d(0x2cd);case u[_0x4a718d(0x18c)][_0x4a718d(0x7d)]:return _0x4a718d(0x2cf);case u['CollaborationStatus'][_0x4a718d(0xd0)]:return'collabStatus.fetchMiss';case u[_0x4a718d(0x18c)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x4a718d(0x18c)][_0x4a718d(0x18e)]:case u[_0x4a718d(0x18c)][_0x4a718d(0x291)]:return _0x4a718d(0x162);case u[_0x4a718d(0x18c)][_0x4a718d(0x1de)]:case u['CollaborationStatus']['PENDING']:return _0x4a718d(0x247);}}function it(_0x4c8622){const _0x4f7d5d=_0x57a880,{status$:_0xc0fcd2}=_0x4c8622,_0x582392=O['useObservable'](_0xc0fcd2,u[_0x4f7d5d(0x18c)][_0x4f7d5d(0xb5)]),_0xbafc6d=O[_0x4f7d5d(0x183)](a[_0x4f7d5d(0x14b)]),_0x567b62=O['useDependency'](u[_0x4f7d5d(0x1b4)]),_0x236b8d=_0x582392!==u[_0x4f7d5d(0x18c)][_0x4f7d5d(0x8f)],_0x13fa9e=_0xbafc6d['t'](st(_0x582392)),_0x1682d6=_0x236b8d?M[_0x4f7d5d(0x210)](Be,{}):M['jsx'](xe,{}),_0x377ddc=A['useCallback'](()=>{const _0x96e91c=_0x4f7d5d;_0x236b8d||_0x567b62[_0x96e91c(0x2eb)]();},[_0x236b8d,_0x567b62]);function _0x150fb2(){const _0x46fe6a=_0x4f7d5d;return M['jsxs'](_0x46fe6a(0x1a5),{'className':'univer-flex\x20univer-items-center','onClick':_0x377ddc,'children':[M[_0x46fe6a(0x210)](_0x46fe6a(0x1a5),{'className':p[_0x46fe6a(0x133)](_0x46fe6a(0x302),{'univer-text-green-500':_0x236b8d,'univer-text-red-500':!_0x236b8d}),'children':_0x1682d6}),M[_0x46fe6a(0x210)](_0x46fe6a(0x1a5),{'className':_0x46fe6a(0x73),'children':_0x13fa9e})]});}return _0x236b8d?_0x150fb2():M[_0x4f7d5d(0x210)](p[_0x4f7d5d(0x113)],{'title':_0xbafc6d['t']('collab-client.tooltip.reconnect'),'children':_0x150fb2()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x17d82e,_0x517d83,_0x35be61,_0x59523f)=>{const _0x3de346=_0x57a880;for(var _0x57cb6d=_0x59523f>0x1?void 0x0:_0x59523f?nt(_0x517d83,_0x35be61):_0x517d83,_0x12a5c7=_0x17d82e[_0x3de346(0x324)]-0x1,_0x31509f;_0x12a5c7>=0x0;_0x12a5c7--)(_0x31509f=_0x17d82e[_0x12a5c7])&&(_0x57cb6d=_0x31509f(_0x57cb6d)||_0x57cb6d);return _0x57cb6d;},K=(_0x2021a6,_0x1063a4)=>(_0x4e6022,_0x182235)=>_0x1063a4(_0x4e6022,_0x182235,_0x2021a6);exports[_0x57a880(0xa9)]=class extends a[_0x57a880(0x23f)]{constructor(_0x5818bd,_0x2591ae,_0x121d87,_0x5a9fbc){const _0x2fc8eb=_0x57a880;super(),_(this,_0x2fc8eb(0x208),new I[(_0x2fc8eb(0x300))](u[_0x2fc8eb(0x18c)][_0x2fc8eb(0xb5)])),(this['_univerInstanceService']=_0x5818bd,this[_0x2fc8eb(0xcc)]=_0x2591ae,this[_0x2fc8eb(0x2b8)]=_0x121d87,this[_0x2fc8eb(0x1bc)]=_0x5a9fbc,this[_0x2fc8eb(0xb4)](),this['_initStatusListener']());}[_0x57a880(0x171)](){const _0x2d276b=_0x57a880;this[_0x2d276b(0x275)](this['_univerInstanceService'][_0x2d276b(0x30a)][_0x2d276b(0x307)](I[_0x2d276b(0x2d1)](()=>{const _0x4d278e=_0x2d276b,_0x14e10c=this[_0x4d278e(0x340)][_0x4d278e(0x79)]();return _0x14e10c?this[_0x4d278e(0x2b8)][_0x4d278e(0x336)](_0x14e10c[_0x4d278e(0x2de)]()):I['of'](null);}),I[_0x2d276b(0x2d1)](_0x350a21=>_0x350a21?_0x350a21[_0x2d276b(0x253)]:I['of'](u[_0x2d276b(0x18c)][_0x2d276b(0xb5)])))[_0x2d276b(0x1e0)](_0x29c427=>{const _0x5b4c2a=_0x2d276b;this[_0x5b4c2a(0x208)]['next'](_0x29c427);}));}['_initStatusComponent'](){const _0x1c2a96=_0x57a880;this['disposeWithMe'](this[_0x1c2a96(0x1bc)][_0x1c2a96(0x93)](O[_0x1c2a96(0x12f)][_0x1c2a96(0x345)],()=>O['connectInjector'](ot({'status$':this['_status$'][_0x1c2a96(0x150)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x57a880(0x200)](a[_0x57a880(0x334)])),K(0x2,a['Inject'](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports[_0x57a880(0xa9)]);function ot(_0x1081e6){const {status$:_0x56d3bb}=_0x1081e6;return function(){const _0x104504=_0x3624;return M[_0x104504(0x210)](it,{'status$':_0x56d3bb});};}const Oe=a[_0x57a880(0xb8)]('uni.network.url-service');var at=Object[_0x57a880(0xdf)],ct=(_0x5e6e14,_0x173415,_0x5a8127,_0x3d1ea6)=>{const _0x5ec595=_0x57a880;for(var _0x3623a6=_0x3d1ea6>0x1?void 0x0:_0x3d1ea6?at(_0x173415,_0x5a8127):_0x173415,_0x2bfba5=_0x5e6e14[_0x5ec595(0x324)]-0x1,_0x57cd1f;_0x2bfba5>=0x0;_0x2bfba5--)(_0x57cd1f=_0x5e6e14[_0x2bfba5])&&(_0x3623a6=_0x57cd1f(_0x3623a6)||_0x3623a6);return _0x3623a6;},Y=(_0xb6cde1,_0x2240ee)=>(_0x54ae27,_0x41d236)=>_0x2240ee(_0x54ae27,_0x41d236,_0xb6cde1);exports[_0x57a880(0x1f7)]=class extends a[_0x57a880(0xa7)]{constructor(_0x42e54d,_0x2228a7,_0x56bb6d,_0x1e44a6,_0x4c3322){const _0x115ad9=_0x57a880;super(),this[_0x115ad9(0x2a2)]=_0x42e54d,this[_0x115ad9(0xc7)]=_0x2228a7,this[_0x115ad9(0x1d5)]=_0x56bb6d,this[_0x115ad9(0x15c)]=_0x1e44a6,_0x4c3322?_0x4c3322==null||_0x4c3322[_0x115ad9(0x27e)]()[_0x115ad9(0x206)](()=>this[_0x115ad9(0x273)]()):(this[_0x115ad9(0xc7)][_0x115ad9(0x1d3)](_0x115ad9(0x8e),_0x115ad9(0x16b)),this[_0x115ad9(0x273)]());}async[_0x57a880(0x273)](){const _0x5654df=_0x57a880,_0x3b27b0=this[_0x5654df(0x2a2)]['getParam'](_0x5654df(0x249)),_0x5476e7=this[_0x5654df(0x2a2)]['getParam']('type'),_0x5e6951=this[_0x5654df(0x2a2)]['getParam'](_0x5654df(0x1ca));if(!_0x3b27b0||!_0x5476e7){this[_0x5654df(0xc7)]['debug']('[CollaborationDataLoaderController]',_0x5654df(0x28c));return;}const _0x2da2c6=await this[_0x5654df(0x15c)][_0x5654df(0x2b0)](_0x3b27b0,Number(_0x5476e7),_0x5e6951);_0x2da2c6&&_0x2da2c6 instanceof a[_0x5654df(0x323)]&&this[_0x5654df(0x1a3)](_0x2da2c6);}async[_0x57a880(0x1a3)](_0x54e708){const _0x49178a=_0x57a880;await this[_0x49178a(0x2f4)](_0x54e708),_0x54e708[_0x49178a(0x1ac)][_0x49178a(0x307)](I[_0x49178a(0x276)](this[_0x49178a(0xc9)]))[_0x49178a(0x1e0)](_0x3478e3=>{const _0x1b8294=_0x49178a;_0x3478e3&&this[_0x1b8294(0x82)](_0x3478e3);}),this[_0x49178a(0x2a2)]['urlChange$'][_0x49178a(0x307)](I['takeUntil'](this['dispose$']))[_0x49178a(0x1e0)](()=>this[_0x49178a(0x2f4)](_0x54e708));}[_0x57a880(0x82)](_0x4ffc8a,_0x12af85=!0x1){const _0x44aaa2=_0x57a880,_0x355c31=this['_urlService'][_0x44aaa2(0x11e)](_0x44aaa2(0x1ca));_0x4ffc8a[_0x44aaa2(0xab)]()!==_0x355c31&&this['_urlService'][_0x44aaa2(0x115)](_0x44aaa2(0x1ca),_0x4ffc8a[_0x44aaa2(0xab)](),_0x12af85);}async[_0x57a880(0x2f4)](_0x2c2f44){const _0x477d3d=_0x57a880;var _0x593fc0;const _0x4118d8=this['_urlService']['getParam']('subunit');if(!_0x4118d8||!_0x2c2f44['getSheetBySheetId'](_0x4118d8)){const _0x19c9f7=_0x2c2f44[_0x477d3d(0x84)]()[0x0],_0xb20fb3=_0x2c2f44['getSheetBySheetId'](_0x19c9f7);if(!_0xb20fb3)return;this[_0x477d3d(0x82)](_0xb20fb3,!0x0),await this['_commandService'][_0x477d3d(0x166)](v[_0x477d3d(0x9b)]['id'],{'unitId':_0x2c2f44['getUnitId'](),'subUnitId':_0x19c9f7});return;}((_0x593fc0=_0x2c2f44[_0x477d3d(0x31f)]())==null?void 0x0:_0x593fc0[_0x477d3d(0xab)]())!==_0x4118d8&&await this[_0x477d3d(0x1d5)][_0x477d3d(0x166)](v[_0x477d3d(0x9b)]['id'],{'unitId':_0x2c2f44[_0x477d3d(0x2de)](),'subUnitId':_0x4118d8});}},exports[_0x57a880(0x1f7)]=ct([Y(0x0,Oe),Y(0x1,a[_0x57a880(0x349)]),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x57a880(0x90)])),Y(0x4,a[_0x57a880(0x158)](qe[_0x57a880(0x218)]))],exports[_0x57a880(0x1f7)]);var lt=Object[_0x57a880(0xdf)],_t=(_0x1d5498,_0x28cfc0,_0x55d2a3,_0x927fe0)=>{const _0x4da454=_0x57a880;for(var _0x53aff7=_0x927fe0>0x1?void 0x0:_0x927fe0?lt(_0x28cfc0,_0x55d2a3):_0x28cfc0,_0x1c6619=_0x1d5498[_0x4da454(0x324)]-0x1,_0x57c277;_0x1c6619>=0x0;_0x1c6619--)(_0x57c277=_0x1d5498[_0x1c6619])&&(_0x53aff7=_0x57c277(_0x53aff7)||_0x53aff7);return _0x53aff7;},De=(_0x4857fc,_0x34c0f9)=>(_0x486783,_0xa7861a)=>_0x34c0f9(_0x486783,_0xa7861a,_0x4857fc);let me=class extends a[_0x57a880(0xa7)]{constructor(_0x2e460b,_0x16bb2d){const _0x5d1688=_0x57a880;super(),this['_docClipboardService']=_0x2e460b,this[_0x5d1688(0x2a6)]=_0x16bb2d,this[_0x5d1688(0x273)]();}[_0x57a880(0x273)](){const _0x129628=_0x57a880,_0x34cba0=this;this['disposeWithMe'](this[_0x129628(0x2e3)]['addClipboardHook']({'onBeforePasteImage':async _0x1ea37c=>{const _0xcd98=_0x129628,_0x16bf25=await _0x34cba0['_imageIoService'][_0xcd98(0x2bb)](_0x1ea37c);return _0x16bf25?{'source':_0x16bf25[_0xcd98(0x185)],'imageSourceType':_0x16bf25[_0xcd98(0x1f2)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0x57a880(0x1e4)])],me);const Ne=[_0x57a880(0x173),_0x57a880(0x219),_0x57a880(0x1bd),_0x57a880(0x32b),_0x57a880(0x32d),'yellow.400'];class Re extends a[_0x57a880(0x23f)]{constructor(){const _0x406f42=_0x57a880;super(...arguments),_(this,_0x406f42(0x117),new Map()),_(this,_0x406f42(0x1f4),0x0);}[_0x57a880(0x28a)](_0x52e95f){const _0x35b03e=_0x57a880;if(this['_assignedColors'][_0x35b03e(0x222)](_0x52e95f))return this[_0x35b03e(0x117)][_0x35b03e(0x2d2)](_0x52e95f);const _0x22c491=Ne[this[_0x35b03e(0x1f4)]];return this[_0x35b03e(0x1f4)]=(this[_0x35b03e(0x1f4)]+0x1)%Ne['length'],this['_assignedColors'][_0x35b03e(0x15b)](_0x52e95f,_0x22c491),_0x22c491;}}function Fe(_0x11085e){const _0x1e1f67=_0x57a880;let _0x9083ee='';for(const _0x4a8075 of _0x11085e){const {startOffset:_0x1fae2a,endOffset:_0x164ae6,isActive:_0x29538d,rangeType:_0x1fb97a,segmentId:_0x1a6957,segmentPage:_0x449440}=_0x4a8075;_0x9083ee[_0x1e1f67(0x324)]&&(_0x9083ee+=','),_0x9083ee+=_0x1fae2a+':'+_0x164ae6+':'+(_0x29538d?'1':'0')+':'+_0x1fb97a+':'+_0x1a6957+':'+_0x449440;}return _0x9083ee;}function ht(_0xe29c5a){const _0xb58c8c=_0x57a880,_0x34c6c0=_0xe29c5a[_0xb58c8c(0x239)](','),_0x5dc9ae=[];for(const _0x5ad981 of _0x34c6c0){const [_0x137835,_0x44f789,_0x3d2939,_0x51bc9a,_0x29b94f,_0x52c5a6]=_0x5ad981[_0xb58c8c(0x239)](':');_0x5dc9ae[_0xb58c8c(0x18b)]({'startOffset':Number(_0x137835),'endOffset':Number(_0x44f789),'collapsed':_0x137835===_0x44f789,'isActive':_0x3d2939==='1','rangeType':_0x51bc9a===a[_0xb58c8c(0x182)]['TEXT']?a[_0xb58c8c(0x182)][_0xb58c8c(0x16a)]:a[_0xb58c8c(0x182)][_0xb58c8c(0x214)],'segmentId':typeof _0x29b94f==_0xb58c8c(0x8b)?String(_0x29b94f):'','segmentPage':Number(_0x52c5a6!=null?_0x52c5a6:-0x1)});}return _0x5dc9ae['some'](_0x464df2=>_0x464df2[_0xb58c8c(0x285)])||(_0x5dc9ae[0x0][_0xb58c8c(0x285)]=!0x0),_0x5dc9ae;}class be extends a[_0x57a880(0xa7)]{constructor(){const _0x1cdbf5=_0x57a880;super(...arguments),_(this,_0x1cdbf5(0x32e),new I[(_0x1cdbf5(0x300))](null)),_(this,_0x1cdbf5(0x2e5),this[_0x1cdbf5(0x32e)][_0x1cdbf5(0x150)]());}[_0x57a880(0x260)](_0x2510d4){const _0x15d2fd=_0x57a880,{unitID:_0x564cf7,memberID:_0x404887,textRanges:_0x5937d6}=_0x2510d4,_0x2f7ced=Fe(_0x5937d6);if(_0x2f7ced==='')return;const _0x1060af={'unitID':_0x564cf7,'memberID':_0x404887,'selection':_0x2f7ced};this[_0x15d2fd(0x32e)]['next'](_0x1060af);}}var ut=Object[_0x57a880(0xdf)],It=(_0x3b5b41,_0x90ca92,_0x3bdc76,_0x426857)=>{const _0x53efa2=_0x57a880;for(var _0x5a952e=_0x426857>0x1?void 0x0:_0x426857?ut(_0x90ca92,_0x3bdc76):_0x90ca92,_0x7e4e7=_0x3b5b41[_0x53efa2(0x324)]-0x1,_0x1dec5b;_0x7e4e7>=0x0;_0x7e4e7--)(_0x1dec5b=_0x3b5b41[_0x7e4e7])&&(_0x5a952e=_0x1dec5b(_0x5a952e)||_0x5a952e);return _0x5a952e;},U=(_0x48663e,_0x576116)=>(_0x33c0be,_0x492658)=>_0x576116(_0x33c0be,_0x492658,_0x48663e);const St=0x12c,dt=0x64;let ve=class extends a[_0x57a880(0xa7)]{constructor(_0x3a3179,_0x3a2ce6,_0x1629cd,_0x523bd1,_0x1333cb,_0x51cf1e,_0x501a95,_0x17b5a0,_0x41602b){const _0x10b719=_0x57a880;super(),_(this,'_online',!0x1),_(this,_0x10b719(0x273),!0x1),_(this,_0x10b719(0x1d1),new I[(_0x10b719(0x300))](new Map())),_(this,_0x10b719(0x238),this[_0x10b719(0x1d1)][_0x10b719(0x150)]()),_(this,_0x10b719(0x338),new I[(_0x10b719(0x300))]([])),_(this,_0x10b719(0x153),this[_0x10b719(0x338)][_0x10b719(0x307)](I[_0x10b719(0x190)](St))),_(this,_0x10b719(0x1f8),a[_0x10b719(0x346)](_0x20f010=>{const _0x433b2f=_0x10b719,_0x306e8f={'eventID':g[_0x433b2f(0x263)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x433b2f(0x32a)],'memberID':this[_0x433b2f(0x2df)][_0x433b2f(0xce)](),'selection':Fe(_0x20f010)}};this['_session']['send'](_0x306e8f,this[_0x433b2f(0x32a)]);},dt)),(this[_0x10b719(0x32a)]=_0x3a3179,this[_0x10b719(0x2df)]=_0x3a2ce6,this[_0x10b719(0xcc)]=_0x1629cd,this['_colorAssignService']=_0x523bd1,this['_memberService']=_0x1333cb,this['_syncEditingCollabCursorService']=_0x51cf1e,this[_0x10b719(0x317)]=_0x501a95,this[_0x10b719(0x340)]=_0x17b5a0,this[_0x10b719(0x1d5)]=_0x41602b);}get['cursorInfo'](){const _0x27aaf9=_0x57a880;return this[_0x27aaf9(0x1d1)][_0x27aaf9(0x252)]();}get[_0x57a880(0x179)](){const _0x59e226=_0x57a880;return this['_roomMembers$'][_0x59e226(0x252)]();}[_0x57a880(0x180)](){const _0x5d4f7f=_0x57a880;super[_0x5d4f7f(0x180)](),this['_cursorInfo$'][_0x5d4f7f(0x165)](new Map()),this['_cursorInfo$']['complete'](),this[_0x5d4f7f(0x338)]['next']([]),this['_roomMembers$'][_0x5d4f7f(0x220)]();}[_0x57a880(0xe5)](){const _0x98b7d8=_0x57a880;this['_init']||(this['_init']=!0x0,this[_0x98b7d8(0x2df)][_0x98b7d8(0x11b)][_0x98b7d8(0x307)](I[_0x98b7d8(0x276)](this['dispose$']))[_0x98b7d8(0x1e0)](_0x31c65c=>{const _0x23eff5=_0x98b7d8;_0x31c65c===u[_0x23eff5(0x234)][_0x23eff5(0x16e)]?this[_0x23eff5(0x1df)]():this[_0x23eff5(0x2d0)]();}),this[_0x98b7d8(0x2df)][_0x98b7d8(0x353)][_0x98b7d8(0x307)](I[_0x98b7d8(0x276)](this['dispose$']))[_0x98b7d8(0x1e0)](_0x4d5af9=>{const _0x138e47=_0x98b7d8,_0x1b4f39=_0x4d5af9[_0x138e47(0xe3)];_0x1b4f39===g[_0x138e47(0x263)][_0x138e47(0x34e)]&&this['_onCursorUpdate'](_0x4d5af9),_0x1b4f39===g[_0x138e47(0x263)][_0x138e47(0xac)]&&this[_0x138e47(0x17d)](_0x4d5af9);}),this[_0x98b7d8(0x275)](this['_commandService']['onCommandExecuted'](_0x14d3a7=>{const _0x2c27ce=_0x98b7d8,_0x141251=_0x14d3a7[_0x2c27ce(0x1c8)];_0x141251!=null&&this[_0x2c27ce(0xaf)]&&_0x14d3a7['id']===V['SetTextSelectionsOperation']['id']&&_0x141251[_0x2c27ce(0x303)]===this[_0x2c27ce(0x32a)]&&_0x141251[_0x2c27ce(0x169)]===!0x1&&_0x141251[_0x2c27ce(0x119)]['length']>0x0&&this[_0x2c27ce(0x1f8)](_0x141251[_0x2c27ce(0x119)]);})),this[_0x98b7d8(0x2f7)][_0x98b7d8(0x2e5)][_0x98b7d8(0x307)](I[_0x98b7d8(0x276)](this[_0x98b7d8(0xc9)]))['subscribe'](_0x56388d=>{const _0x37e071=_0x98b7d8;if((_0x56388d==null?void 0x0:_0x56388d[_0x37e071(0x32a)])!==this['unitID'])return;const _0x54516a={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x56388d};this[_0x37e071(0x2bd)](_0x54516a);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x35df3e=>{const _0x368f90=_0x98b7d8;if(_0x35df3e[_0x368f90(0x1c8)]==null)return;const _0x310356=_0x35df3e['params'];if(_0x35df3e['id']!==V['RichTextEditingMutation']['id']||_0x310356[_0x368f90(0x303)]!==this[_0x368f90(0x32a)])return;const _0x5ddeef={'id':_0x368f90(0x10e),'params':_0x310356},_0x280aca=this[_0x368f90(0x16c)];for(const [_0x48822b,_0x1e1690]of _0x280aca){const _0x3c0db2={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x368f90(0x32a)],'actions':null,'textRanges':_0x1e1690[_0x368f90(0x119)]}},_0x78802a=this[_0x368f90(0x317)][_0x368f90(0x33f)](_0x5ddeef,_0x3c0db2,!0x1);if(g[_0x368f90(0x205)](_0x78802a))throw _0x78802a['error'];_0x280aca['set'](_0x48822b,{..._0x1e1690,'ranges':_0x78802a[_0x368f90(0x1e8)][_0x368f90(0x1c8)]['textRanges']});}queueMicrotask(()=>{const _0x168b41=_0x368f90;this[_0x168b41(0x1d1)]['next'](_0x280aca);});})));}[_0x57a880(0x2bd)](_0x3040d1){const _0x2ad171=_0x57a880;var _0xb1e9d7,_0x1f2205;const {memberID:_0x53d5a7,selection:_0x2585c4}=_0x3040d1[_0x2ad171(0x1d0)],_0x1ddfc8=ht(_0x2585c4),_0x19adbf=(_0x1f2205=(_0xb1e9d7=this[_0x2ad171(0xde)][_0x2ad171(0x335)](this[_0x2ad171(0x32a)],_0x53d5a7))==null?void 0x0:_0xb1e9d7['name'])!=null?_0x1f2205:_0x2ad171(0x2ae),_0x176888={'color':this[_0x2ad171(0x110)][_0x2ad171(0x28a)](_0x53d5a7),'name':_0x19adbf,'ranges':_0x1ddfc8},_0x1e5558=this[_0x2ad171(0x16c)];_0x1e5558[_0x2ad171(0x15b)](_0x53d5a7,_0x176888),this[_0x2ad171(0x1d1)]['next'](_0x1e5558);}[_0x57a880(0x17d)](_0x3adf7e){const _0x128492=_0x57a880,{memberID:_0x1f26a1}=_0x3adf7e[_0x128492(0x1d0)],_0x2d89d7=this[_0x128492(0x16c)];_0x2d89d7[_0x128492(0x1e2)](_0x1f26a1),this[_0x128492(0x1d1)][_0x128492(0x165)](_0x2d89d7);}['_toggleOnline'](){const _0x26075c=_0x57a880;var _0x144111;if(this[_0x26075c(0xaf)]=!0x0,((_0x144111=this[_0x26075c(0x340)][_0x26075c(0x79)]())==null?void 0x0:_0x144111['getUnitId']())!==this['unitID'])return;const _0x4ce0af=this[_0x26075c(0xcc)]['get'](V[_0x26075c(0x108)])['getDocRanges']();Array[_0x26075c(0x2c0)](_0x4ce0af)&&_0x4ce0af[_0x26075c(0x324)]>0x0&&this[_0x26075c(0x1f8)](_0x4ce0af);}['_toggleOffline'](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x57a880(0x200)](a['Injector'])),U(0x3,a[_0x57a880(0x200)](Re)),U(0x4,a['Inject'](u[_0x57a880(0xb1)])),U(0x5,a[_0x57a880(0x200)](be)),U(0x6,g[_0x57a880(0x99)]),U(0x7,a[_0x57a880(0x138)]),U(0x8,a[_0x57a880(0x2ff)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x1e4b17,_0x5e89f6,_0x379e7a,_0x137b6a)=>{const _0x536744=_0x57a880;for(var _0x437ae6=_0x137b6a>0x1?void 0x0:_0x137b6a?ft(_0x5e89f6,_0x379e7a):_0x5e89f6,_0x422bbb=_0x1e4b17[_0x536744(0x324)]-0x1,_0x2d4f02;_0x422bbb>=0x0;_0x422bbb--)(_0x2d4f02=_0x1e4b17[_0x422bbb])&&(_0x437ae6=_0x2d4f02(_0x437ae6)||_0x437ae6);return _0x437ae6;},w=(_0x578664,_0x1c9084)=>(_0x329d0c,_0x127cb7)=>_0x1c9084(_0x329d0c,_0x127cb7,_0x578664);const vt=0x12c,gt=0x64,Et=()=>{let _0x43d34a=[],_0x3e8b55=!0x1;return _0x48a663=>{const _0x23f786=_0x3624;_0x43d34a[_0x23f786(0x18b)](_0x48a663),_0x3e8b55||(_0x3e8b55=!0x0,setTimeout(()=>{const _0x1bcfd4=_0x23f786;_0x43d34a[_0x1bcfd4(0x231)](_0x21f5de=>_0x21f5de()),_0x43d34a=[],_0x3e8b55=!0x1;}));};};let ge=class extends a[_0x57a880(0xa7)]{constructor(_0x530c03,_0x54664a,_0x14d043,_0xaa434b,_0x1030e4,_0x3e15ca,_0x487432,_0x547004){const _0xe925c9=_0x57a880;super(),_(this,_0xe925c9(0xaf),!0x1),_(this,_0xe925c9(0x273),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0xe925c9(0x238),this[_0xe925c9(0x1d1)][_0xe925c9(0x150)]()),_(this,'_roomMembers$',new I[(_0xe925c9(0x300))]([])),_(this,'roomMembers$',this[_0xe925c9(0x338)][_0xe925c9(0x307)](I[_0xe925c9(0x190)](vt))),_(this,_0xe925c9(0x1f8),a[_0xe925c9(0x346)]((_0x40e93f,_0x759b37)=>{const _0x285951=_0xe925c9,_0xb2f0c9={'eventID':g['CollaborationEvent'][_0x285951(0x34e)],'data':{'unitID':this[_0x285951(0x32a)],'memberID':this['_session'][_0x285951(0xce)](),'selection':B[_0x285951(0x1ea)](_0x40e93f,_0x759b37[_0x285951(0x24d)])}};this['_session']['send'](_0xb2f0c9,this['unitID']);},gt)),(this['unitID']=_0x530c03,this[_0xe925c9(0x2df)]=_0x54664a,this[_0xe925c9(0xcc)]=_0x14d043,this[_0xe925c9(0x110)]=_0xaa434b,this[_0xe925c9(0xde)]=_0x1030e4,this[_0xe925c9(0x340)]=_0x3e15ca,this[_0xe925c9(0x1d5)]=_0x487432,this[_0xe925c9(0x319)]=_0x547004);}get[_0x57a880(0x16c)](){const _0x2a8a6d=_0x57a880;return this['_cursorInfo$'][_0x2a8a6d(0x252)]();}get[_0x57a880(0x179)](){const _0x324bd5=_0x57a880;return this[_0x324bd5(0x338)]['getValue']();}[_0x57a880(0x180)](){const _0x326b74=_0x57a880;super[_0x326b74(0x180)](),this[_0x326b74(0x1d1)][_0x326b74(0x165)](new Map()),this[_0x326b74(0x1d1)][_0x326b74(0x220)](),this[_0x326b74(0x338)][_0x326b74(0x165)]([]),this[_0x326b74(0x338)][_0x326b74(0x220)]();}['init'](){const _0x5ca806=_0x57a880;this['_init']||(this[_0x5ca806(0x273)]=!0x0,this['_session'][_0x5ca806(0x11b)][_0x5ca806(0x307)](I[_0x5ca806(0x276)](this[_0x5ca806(0xc9)]))[_0x5ca806(0x1e0)](_0x500874=>{const _0x173156=_0x5ca806;_0x500874===u[_0x173156(0x234)][_0x173156(0x16e)]?this['_toggleOnline']():this[_0x173156(0x2d0)]();}),this[_0x5ca806(0x2df)][_0x5ca806(0x353)][_0x5ca806(0x307)](I[_0x5ca806(0x276)](this['dispose$']))[_0x5ca806(0x1e0)](_0x48b00e=>{const _0x24f224=_0x5ca806,_0x59a11d=_0x48b00e[_0x24f224(0xe3)];_0x59a11d===g[_0x24f224(0x263)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x48b00e),_0x59a11d===g[_0x24f224(0x263)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x48b00e);}),this[_0x5ca806(0x7b)](),this[_0x5ca806(0x275)](this['_commandService']['onCommandExecuted'](_0x2cf75c=>{const _0x36df98=_0x5ca806;if(this[_0x36df98(0xaf)]&&_0x2cf75c['id']===v[_0x36df98(0x101)]['id']&&_0x2cf75c[_0x36df98(0x1c8)][_0x36df98(0x303)]===this[_0x36df98(0x32a)]){const _0x17c615=_0x2cf75c['params'];this[_0x36df98(0x1f8)](_0x17c615[_0x36df98(0x14e)],_0x17c615[_0x36df98(0x241)][0x0]);}})));}[_0x57a880(0x2bd)](_0x3a00a7){const _0x1bbbb3=_0x57a880;var _0x2cba39,_0x107e42;const {memberID:_0xfda85,selection:_0x2c8a7d}=_0x3a00a7['data'],{sheetName:_0x2ed4e9,range:_0x506815}=B[_0x1bbbb3(0x13f)](_0x2c8a7d),_0x4b1570={'name':(_0x107e42=(_0x2cba39=this[_0x1bbbb3(0xde)]['getMember'](this[_0x1bbbb3(0x32a)],_0xfda85))==null?void 0x0:_0x2cba39['name'])!=null?_0x107e42:'Unknown\x20user','range':this['_getMergeRange'](_0x2ed4e9,_0x506815),'sheetID':_0x2ed4e9,'color':this[_0x1bbbb3(0x110)][_0x1bbbb3(0x28a)](_0xfda85),'selection':_0x2c8a7d},_0x5edd4c=this[_0x1bbbb3(0x16c)];_0x5edd4c['set'](_0xfda85,_0x4b1570),this[_0x1bbbb3(0x1d1)][_0x1bbbb3(0x165)](_0x5edd4c);}['_onCursorDelete'](_0x2d6e32){const _0xeb1ac6=_0x57a880,{memberID:_0x49f517}=_0x2d6e32['data'],_0x4df48c=this[_0xeb1ac6(0x16c)];_0x4df48c['delete'](_0x49f517),this[_0xeb1ac6(0x1d1)][_0xeb1ac6(0x165)](_0x4df48c);}[_0x57a880(0x1d9)](_0x3908f4,_0x3200ad){const _0x4732c6=_0x57a880;var _0x3f6e3e,_0x314329;const _0x40e0fe=(_0x314329=(_0x3f6e3e=this[_0x4732c6(0x340)]['getUniverSheetInstance'](this[_0x4732c6(0x32a)]))==null?void 0x0:_0x3f6e3e[_0x4732c6(0x22f)](_0x3908f4))==null?void 0x0:_0x314329[_0x4732c6(0x2d6)]();return(_0x40e0fe==null?void 0x0:_0x40e0fe[_0x4732c6(0x23b)](_0x479d73=>a[_0x4732c6(0x34d)][_0x4732c6(0x2f6)](_0x479d73,_0x3200ad)))||_0x3200ad;}[_0x57a880(0x7b)](){const _0x2c0da9=_0x57a880,_0x461af8=new a[(_0x2c0da9(0x2ee))](),_0x442c41=Et(),_0x1079c9=()=>{const _0x38dd46=_0x2c0da9;_0x461af8['dispose']();const _0x34c864=(_0x53fb31,_0x205738,_0x52cd57,_0x4e78cc)=>{const _0x5da8f6=_0x3624;let _0x80336f=[];switch(_0x53fb31['id']){case v[_0x5da8f6(0x10f)][_0x5da8f6(0x197)]:{_0x80336f=v[_0x5da8f6(0x177)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0x16d)]:{_0x80336f=v[_0x5da8f6(0x21b)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0x1ba)]:{_0x80336f=v[_0x5da8f6(0x316)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)]['InsertRangeMoveDownCommandId']:{_0x80336f=v[_0x5da8f6(0x17e)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0x2dc)]:{_0x80336f=v[_0x5da8f6(0x32f)](_0x53fb31,_0x4e78cc);break;}case v['EffectRefRangId'][_0x5da8f6(0x343)]:{_0x80336f=v[_0x5da8f6(0x325)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0x292)]:{_0x80336f=v[_0x5da8f6(0x1ab)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0xbc)]:{_0x80336f=v[_0x5da8f6(0x294)](_0x53fb31,_0x4e78cc);break;}case v['EffectRefRangId'][_0x5da8f6(0x1d2)]:{_0x80336f=v[_0x5da8f6(0x2e4)](_0x53fb31,_0x4e78cc);break;}}const _0x2e02f1=v[_0x5da8f6(0x1b0)](_0x80336f,_0x4e78cc),_0x1efd6b=this[_0x5da8f6(0x16c)]['get'](_0x205738);if(_0x1efd6b&&_0x2e02f1){const _0x2e4c0e={..._0x1efd6b,'range':_0x2e02f1};this[_0x5da8f6(0x16c)][_0x5da8f6(0x15b)](_0x205738,_0x2e4c0e),_0x442c41(()=>{const _0x28458d=_0x5da8f6,_0x3c7c16=this[_0x28458d(0x319)]['registerRefRange'](_0x2e02f1,_0x34b93a=>(_0x3c7c16[_0x28458d(0x180)](),_0x34c864(_0x34b93a,_0x205738,_0x52cd57,_0x2e02f1)));_0x461af8[_0x28458d(0x78)](_0x3c7c16);});}return{'redos':[],'undos':[]};};this[_0x38dd46(0x16c)][_0x38dd46(0x231)]((_0x27eef3,_0x4272a4)=>{const _0x3a14c8=_0x38dd46,{range:_0x71c65,sheetID:_0xe70a14}=_0x27eef3,_0x1701bf=this['_refRangeService'][_0x3a14c8(0x87)](_0x71c65,_0x140633=>(_0x1701bf[_0x3a14c8(0x180)](),_0x34c864(_0x140633,_0x4272a4,_0xe70a14,_0x71c65)));_0x461af8['add'](_0x1701bf);});};this['disposeWithMe'](a[_0x2c0da9(0xa2)](this[_0x2c0da9(0x1d1)]['subscribe'](()=>{_0x1079c9();})));}[_0x57a880(0x1df)](){const _0x3dabb0=_0x57a880;var _0x2ca258,_0x496e60;if(this[_0x3dabb0(0xaf)]=!0x0,((_0x2ca258=this[_0x3dabb0(0x340)]['getFocusedUnit']())==null?void 0x0:_0x2ca258[_0x3dabb0(0x2de)]())!==this[_0x3dabb0(0x32a)])return;const _0x367fba=(_0x496e60=this[_0x3dabb0(0xcc)]['get'](v[_0x3dabb0(0x209)])['getCurrentSelections']())==null?void 0x0:_0x496e60[0x0],_0x314790=this[_0x3dabb0(0x340)][_0x3dabb0(0x25d)](a[_0x3dabb0(0x1e7)][_0x3dabb0(0x265)])[_0x3dabb0(0x31f)]();_0x367fba&&_0x314790&&this[_0x3dabb0(0x1f8)](_0x314790['getSheetId'](),_0x367fba);}[_0x57a880(0x2d0)](){const _0x106d50=_0x57a880;this[_0x106d50(0xaf)]=!0x1;}};ge=mt([w(0x2,a[_0x57a880(0x200)](a['Injector'])),w(0x3,a[_0x57a880(0x200)](Re)),w(0x4,a[_0x57a880(0x200)](u['MemberService'])),w(0x5,a[_0x57a880(0x138)]),w(0x6,a[_0x57a880(0x2ff)]),w(0x7,a[_0x57a880(0x200)](v[_0x57a880(0x2b1)]))],ge);var Ct=Object[_0x57a880(0xdf)],Tt=(_0x433aba,_0x53ef73,_0x742cfe,_0x4284c6)=>{for(var _0x18a5af=_0x4284c6>0x1?void 0x0:_0x4284c6?Ct(_0x53ef73,_0x742cfe):_0x53ef73,_0xb90269=_0x433aba['length']-0x1,_0x1887eb;_0xb90269>=0x0;_0xb90269--)(_0x1887eb=_0x433aba[_0xb90269])&&(_0x18a5af=_0x1887eb(_0x18a5af)||_0x18a5af);return _0x18a5af;},ce=(_0x1e0137,_0x4f99fd)=>(_0x363182,_0x5a49b2)=>_0x4f99fd(_0x363182,_0x5a49b2,_0x1e0137);let F=class extends a[_0x57a880(0xa7)]{constructor(_0x190404,_0x3c9e77,_0x128d74){const _0x234963=_0x57a880;super(),_(this,_0x234963(0x22b),new Map()),_(this,_0x234963(0xe9),new I[(_0x234963(0x242))]()),(this[_0x234963(0x340)]=_0x190404,this['_injector']=_0x3c9e77,this[_0x234963(0x24a)]=_0x128d74,this[_0x234963(0x273)]());}[_0x57a880(0x180)](){const _0x35b2b8=_0x57a880;super[_0x35b2b8(0x180)](),this[_0x35b2b8(0xe9)][_0x35b2b8(0x220)](),this[_0x35b2b8(0x22b)][_0x35b2b8(0x231)](_0x564a27=>_0x564a27[_0x35b2b8(0x180)]());}[_0x57a880(0xf3)](_0x3c03fd){const _0x3086f6=_0x57a880;return this['_entities'][_0x3086f6(0x222)](_0x3c03fd)?this[_0x3086f6(0x22b)]['get'](_0x3c03fd)[_0x3086f6(0x238)]:this['_entityInit$'][_0x3086f6(0x307)](I[_0x3086f6(0x1dd)](_0x24ae00=>_0x24ae00[_0x3086f6(0x32a)]===_0x3c03fd),I[_0x3086f6(0x2d1)](_0xf01a8e=>_0xf01a8e[_0x3086f6(0x238)]));}[_0x57a880(0x273)](){const _0x2dbeb9=_0x57a880;this[_0x2dbeb9(0x340)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x2dbeb9(0x265)])[_0x2dbeb9(0x307)](I['takeUntil'](this[_0x2dbeb9(0xc9)]))[_0x2dbeb9(0x1e0)](async _0x16280a=>{const _0x4c39bc=_0x2dbeb9,_0xc33b28=_0x16280a[_0x4c39bc(0x2de)](),_0x3eac21=await this[_0x4c39bc(0x26e)](_0xc33b28);this[_0x4c39bc(0xe9)][_0x4c39bc(0x165)](_0x3eac21),this[_0x4c39bc(0x22b)][_0x4c39bc(0x15b)](_0xc33b28,_0x3eac21);}),this[_0x2dbeb9(0x340)]['getTypeOfUnitAdded$'](a[_0x2dbeb9(0x1e7)][_0x2dbeb9(0x20c)])[_0x2dbeb9(0x307)](I[_0x2dbeb9(0x276)](this[_0x2dbeb9(0xc9)]))['pipe'](I[_0x2dbeb9(0x1dd)](_0x1a530f=>!_0x1a530f[_0x2dbeb9(0x2de)]()[_0x2dbeb9(0x277)]('__')))[_0x2dbeb9(0x1e0)](async _0x2ff84f=>{const _0xb116b7=_0x2dbeb9,_0x3378d4=_0x2ff84f[_0xb116b7(0x2de)](),_0x406185=await this['_startDocCollabCursor'](_0x3378d4);this['_entityInit$'][_0xb116b7(0x165)](_0x406185),this[_0xb116b7(0x22b)][_0xb116b7(0x15b)](_0x3378d4,_0x406185);}),I[_0x2dbeb9(0x140)](this[_0x2dbeb9(0x340)][_0x2dbeb9(0x72)](a[_0x2dbeb9(0x1e7)][_0x2dbeb9(0x20c)]),this[_0x2dbeb9(0x340)][_0x2dbeb9(0x72)](a[_0x2dbeb9(0x1e7)]['UNIVER_SHEET']))[_0x2dbeb9(0x307)](I[_0x2dbeb9(0x276)](this['dispose$']))[_0x2dbeb9(0x1e0)](_0x3555e7=>{const _0x604992=_0x2dbeb9,_0x4fc102=_0x3555e7[_0x604992(0x2de)](),_0x4c5820=this[_0x604992(0x22b)]['get'](_0x4fc102);_0x4c5820&&(_0x4c5820[_0x604992(0x180)](),this[_0x604992(0x22b)][_0x604992(0x1e2)](_0x4fc102));});}async[_0x57a880(0x26e)](_0x4ca769){const _0x310630=_0x57a880,_0x52e8d2=await this[_0x310630(0x24a)][_0x310630(0xbe)](_0x4ca769),_0x371df4=this[_0x310630(0xcc)][_0x310630(0x114)](ge,_0x4ca769,_0x52e8d2);return _0x371df4[_0x310630(0xe5)](),_0x371df4;}async[_0x57a880(0xc3)](_0x2c6f97){const _0xe7b848=_0x57a880,_0x23492a=await this[_0xe7b848(0x24a)][_0xe7b848(0xbe)](_0x2c6f97),_0xdcc467=this['_injector'][_0xe7b848(0x114)](ve,_0x2c6f97,_0x23492a);return _0xdcc467[_0xe7b848(0xe5)](),_0xdcc467;}};F=Tt([ce(0x0,a[_0x57a880(0x138)]),ce(0x1,a[_0x57a880(0x200)](a[_0x57a880(0x334)])),ce(0x2,a[_0x57a880(0x200)](u[_0x57a880(0x1b4)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x3569e8,_0x5b86c5){const _0x48e01d=_0x57a880;let {radius:_0x5a340a,width:_0x58ec90,height:_0x27a026}=_0x5b86c5;_0x5a340a=_0x5a340a!=null?_0x5a340a:0x0,_0x58ec90=_0x58ec90!=null?_0x58ec90:0x1e,_0x27a026=_0x27a026!=null?_0x27a026:0x1e;let _0xb969a1=0x0,_0x4d816d=0x0,_0x4ceeca=0x0;_0xb969a1=_0x4d816d=_0x4ceeca=Math[_0x48e01d(0x28b)](_0x5a340a,_0x58ec90/0x2,_0x27a026/0x2),_0x3569e8[_0x48e01d(0x254)](),_0x3569e8[_0x48e01d(0x23a)](_0xb969a1,0x0),_0x3569e8[_0x48e01d(0x80)](_0x58ec90-_0x4d816d,0x0),_0x3569e8['arc'](_0x58ec90-_0x4d816d,_0x4d816d,_0x4d816d,Math['PI']*0x3/0x2,0x0,!0x1),_0x3569e8[_0x48e01d(0x80)](_0x58ec90,_0x27a026-_0x4ceeca),_0x3569e8[_0x48e01d(0x20e)](_0x58ec90-_0x4ceeca,_0x27a026-_0x4ceeca,_0x4ceeca,0x0,Math['PI']/0x2,!0x1),_0x3569e8[_0x48e01d(0x80)](0x0,_0x27a026),_0x3569e8[_0x48e01d(0x80)](0x0,_0xb969a1),_0x3569e8[_0x48e01d(0x20e)](_0xb969a1,_0xb969a1,_0xb969a1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3569e8[_0x48e01d(0x12d)](),_0x5b86c5[_0x48e01d(0x9a)]&&(_0x3569e8[_0x48e01d(0x236)](),_0x3569e8[_0x48e01d(0xc8)]=_0x5b86c5[_0x48e01d(0x9a)],_0x5b86c5[_0x48e01d(0x332)]===_0x48e01d(0x2e1)?_0x3569e8[_0x48e01d(0x9a)](_0x48e01d(0x2e1)):_0x3569e8[_0x48e01d(0x9a)](),_0x3569e8[_0x48e01d(0x25a)]());}class re extends C['Shape']{constructor(_0x1d4c51,_0x49e121){const _0x425c32=_0x57a880;super(_0x1d4c51,_0x49e121),_(this,_0x425c32(0x154)),_(this,_0x425c32(0x16f)),(this['color']=_0x49e121==null?void 0x0:_0x49e121[_0x425c32(0x154)],this['text']=_0x49e121==null?void 0x0:_0x49e121['text']);}static['drawWith'](_0x1f401d,_0x41c0ec){const _0x45a7f8=_0x57a880,{text:_0x465ac0,color:_0x333db5}=_0x41c0ec;_0x1f401d[_0x45a7f8(0x236)](),_0x1f401d[_0x45a7f8(0x31e)]=_0x45a7f8(0x31a);const _0x38090e=_0x1f401d[_0x45a7f8(0x21c)](_0x465ac0)[_0x45a7f8(0x18f)],_0x367c0b=Math[_0x45a7f8(0x28b)](_0x38090e+0x2*le,Ue);Ot(_0x1f401d,{'height':X,'radius':0x4,'width':_0x367c0b,'fill':_0x333db5}),_0x1f401d['fillStyle']='#FFF';const _0x36abd6=le,_0x2345ec=X-pt,_0x51d92e=Ue-0x2*le;if(_0x38090e>_0x51d92e){let _0x39b67b='',_0x442b2e=0x0;for(const _0x55baf0 of _0x465ac0){const _0x311e4c=_0x1f401d[_0x45a7f8(0x21c)](_0x55baf0)[_0x45a7f8(0x18f)];if(_0x442b2e+_0x311e4c<=_0x51d92e-_0x1f401d[_0x45a7f8(0x21c)](_0x45a7f8(0x151))[_0x45a7f8(0x18f)])_0x39b67b+=_0x55baf0,_0x442b2e+=_0x311e4c;else{_0x39b67b+=_0x45a7f8(0x151);break;}}_0x1f401d[_0x45a7f8(0xd6)](_0x39b67b,_0x36abd6,_0x2345ec);}else _0x1f401d['fillText'](_0x465ac0,_0x36abd6,_0x2345ec);_0x1f401d[_0x45a7f8(0x25a)]();}[_0x57a880(0x1cc)](_0x3220f7){const _0x3af381=_0x57a880;re[_0x3af381(0x1f0)](_0x3220f7,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt=_0x57a880(0x251),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x57a880(0x2a4);class Le{constructor(_0x422540,_0xcd7d1f,_0x308a22,_0x2281ec){const _0x2cf804=_0x57a880;_(this,'_shapes',[]),_(this,_0x2cf804(0x187),null),_(this,_0x2cf804(0x156),null),_(this,_0x2cf804(0x2f8),null),_(this,'_hideTimer',null),_(this,_0x2cf804(0xa5),null),(this['_cursor']=_0x422540,this[_0x2cf804(0x2e6)]=_0xcd7d1f,this[_0x2cf804(0x160)]=_0x308a22,this[_0x2cf804(0x2c7)]=_0x2281ec,this[_0x2cf804(0x12c)]());}set['_hover'](_0x318829){const _0x3f05eb=_0x57a880;_0x318829?(this[_0x3f05eb(0x2f8)]&&this[_0x3f05eb(0x2f8)][_0x3f05eb(0x1b9)](),this[_0x3f05eb(0x156)]&&this[_0x3f05eb(0x156)][_0x3f05eb(0x2b9)]()):(this[_0x3f05eb(0x2f8)]&&this[_0x3f05eb(0x2f8)]['show'](),this[_0x3f05eb(0x156)]&&this[_0x3f05eb(0x156)]['hide']());}['dispose'](){const _0x4875b2=_0x57a880;for(const _0x1d4361 of this['_shapes'])_0x1d4361[_0x4875b2(0x180)]();this['_textBubble']&&this[_0x4875b2(0x156)][_0x4875b2(0x180)](),this['_anchorDot']&&this[_0x4875b2(0x2f8)][_0x4875b2(0x180)](),this[_0x4875b2(0x187)]&&this[_0x4875b2(0x187)][_0x4875b2(0x180)](),this[_0x4875b2(0xa5)]&&this[_0x4875b2(0xa5)]();}[_0x57a880(0x12c)](){const _0x2cf541=_0x57a880;var _0x216d93;const {_docSkeleton:_0x802b93,_document:_0x2c8aca}=this,{color:_0x2c5530,name:_0x278550,ranges:_0xb72d9e}=this[_0x2cf541(0x13c)],_0x5de5db=_0x2c8aca[_0x2cf541(0x312)](),{docsLeft:_0x2737c7,docsTop:_0x4588cd}=_0x5de5db,_0x519cac=new T[(_0x2cf541(0x159))](_0x5de5db,_0x802b93);for(const {startOffset:_0x4d0aa5,endOffset:_0x3f3de8,rangeType:_0x3489e1,segmentId:_0x26c1d9,segmentPage:_0x579879,collapsed:_0x50706d,isActive:_0xd0eb73}of _0xb72d9e){const _0x368828=_0x802b93[_0x2cf541(0x33a)](_0x4d0aa5,!0x0,_0x26c1d9,_0x579879);let _0x3f9bab=_0x802b93[_0x2cf541(0x33a)](_0x3f3de8,!0x0,_0x26c1d9,_0x579879);if(_0x3f9bab==null&&(_0x3f9bab=_0x802b93[_0x2cf541(0x33a)](_0x3f3de8-0x1,!0x1,_0x26c1d9,_0x579879)),_0xd0eb73){const {contentBoxPointGroup:_0xa88dcc}=_0x519cac[_0x2cf541(0x2a5)](_0x3f9bab,_0x3f9bab);if(_0xa88dcc[_0x2cf541(0x324)]===0x0)continue;this['_drawAnchor'](_0x2c5530,_0xa88dcc,_0x2737c7,_0x4588cd,_0x278550),this[_0x2cf541(0xa5)]=this[_0x2cf541(0x2e9)]();}if(_0x368828&&_0x3f9bab){if(_0x3489e1===a['DOC_RANGE_TYPE'][_0x2cf541(0x214)]){const _0x4eaf69=new T[(_0x2cf541(0x278))](_0x5de5db,_0x802b93),{pointGroup:_0x47e8be}=(_0x216d93=_0x4eaf69[_0x2cf541(0x2a5)](_0x368828,_0x3f9bab))!=null?_0x216d93:{};if(_0x47e8be==null||_0x47e8be[_0x2cf541(0x324)]===0x0)continue;this[_0x2cf541(0x264)](_0x2c5530,_0x47e8be,_0x2737c7,_0x4588cd);}else{if(!_0x50706d){const {borderBoxPointGroup:_0x5a3638}=_0x519cac['getRangePointData'](_0x368828,_0x3f9bab);if(_0x5a3638[_0x2cf541(0x324)]===0x0)continue;this['_drawTextRange'](_0x2c5530,_0x5a3638,_0x2737c7,_0x4588cd);}}}}}[_0x57a880(0xb2)](_0x22f27e,_0x38562f,_0x16f954,_0x352286,_0x4b3f21){const _0x92bec0=_0x57a880,_0x4d5e6f=this[_0x92bec0(0x1a9)](_0x38562f),{left:_0x118e12,top:_0x2c6004,height:_0x16ae75}=_0x4d5e6f,_0x2738ce=this[_0x92bec0(0x29b)](),_0x576fd3=Nt/_0x2738ce,_0x5dd727=new C[(_0x92bec0(0x136))](_e+a['generateRandomId'](H),{'left':_0x118e12+_0x16f954-_0x576fd3,'top':_0x2c6004+_0x352286,'height':_0x16ae75,'width':Dt,'fill':_0x22f27e||C[_0x92bec0(0x1f5)](a[_0x92bec0(0x13a)][_0x92bec0(0x1a0)],0x0),'strokeWidth':_0x576fd3,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x5dd727,this[_0x92bec0(0x2e6)]['addObject'](_0x5dd727,T[_0x92bec0(0x26b)]);const _0x58f93f=new C[(_0x92bec0(0x136))](_e+a['generateRandomId'](H),{'left':_0x118e12+_0x16f954-_0x576fd3,'top':_0x2c6004+_0x352286-he/0x2,'height':he,'width':he,'fill':_0x22f27e||C[_0x92bec0(0x1f5)](a[_0x92bec0(0x13a)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x22f27e||C['getColor'](a[_0x92bec0(0x13a)][_0x92bec0(0x1a0)],0x0),'evented':!0x1});this[_0x92bec0(0x2f8)]=_0x58f93f,this['_scene'][_0x92bec0(0x266)](_0x58f93f,T[_0x92bec0(0x26b)]);const _0x2dc28c=new re(_e+a[_0x92bec0(0x289)](H),{'left':_0x118e12+_0x16f954-_0x576fd3,'top':_0x2c6004+_0x352286-X,'text':_0x4b3f21,'color':_0x22f27e});this[_0x92bec0(0x156)]=_0x2dc28c,this[_0x92bec0(0x2e6)]['addObject'](_0x2dc28c,T[_0x92bec0(0x26b)]),this[_0x92bec0(0xe0)]=!0x1;}[_0x57a880(0x2e9)](){const _0x43ef00=_0x57a880,_0x29e0b1=this[_0x43ef00(0x187)]['onPointerEnter$'][_0x43ef00(0x2a9)](()=>{const _0xda6ceb=_0x43ef00;this[_0xda6ceb(0xe0)]=!0x0;}),_0x5d75f6=this[_0x43ef00(0x187)][_0x43ef00(0x1b1)]['subscribeEvent'](()=>{const _0x21c13d=_0x43ef00;this['_hideTimer']&&clearTimeout(this[_0x21c13d(0x170)]),this[_0x21c13d(0x170)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1afee7=_0x43ef00;_0x29e0b1['unsubscribe'](),_0x5d75f6[_0x1afee7(0x122)]();};}[_0x57a880(0x1e9)](_0xa87fbd,_0x243dfd,_0x95c18f,_0x7887ac){const _0x3c9321=_0x57a880,_0x5cc236=new a['ColorKit'](_0xa87fbd)[_0x3c9321(0x250)](0.2)[_0x3c9321(0xe6)](),_0x170970=new C[(_0x3c9321(0x204))](Rt+a[_0x3c9321(0x289)](H),{'pointsGroup':_0x243dfd,'fill':_0x5cc236||C['getColor'](a[_0x3c9321(0x13a)]['black'],0.2),'left':_0x95c18f,'top':_0x7887ac,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3c9321(0x33c)][_0x3c9321(0x18b)](_0x170970),this[_0x3c9321(0x2e6)][_0x3c9321(0x266)](_0x170970,T[_0x3c9321(0x26b)]);}[_0x57a880(0x264)](_0x14762b,_0x166aac,_0x36ae8a,_0x1832d1){const _0x516ab9=_0x57a880,_0x324881=new a[(_0x516ab9(0x18d))](_0x14762b)[_0x516ab9(0x250)](0.2)[_0x516ab9(0xe6)](),_0x51ba95=new C['RegularPolygon'](bt+a[_0x516ab9(0x289)](H),{'pointsGroup':_0x166aac,'fill':_0x324881||C[_0x516ab9(0x1f5)](a[_0x516ab9(0x13a)][_0x516ab9(0x1a0)],0.2),'left':_0x36ae8a,'top':_0x1832d1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x516ab9(0x33c)][_0x516ab9(0x18b)](_0x51ba95),this[_0x516ab9(0x2e6)][_0x516ab9(0x266)](_0x51ba95,T[_0x516ab9(0x26b)]);}[_0x57a880(0x1a9)](_0x2ec924){const _0x594d8b=_0x2ec924[0x0],_0x54202=_0x594d8b[0x0],_0x88310d=_0x594d8b[0x2],{x:_0x3b51be,y:_0x4f93e9}=_0x54202,{x:_0x454c98,y:_0x4f84cd}=_0x88310d;return{'left':_0x3b51be,'top':_0x4f93e9,'width':_0x454c98-_0x3b51be,'height':_0x4f84cd-_0x4f93e9};}[_0x57a880(0x29b)](){const _0x333f1f=_0x57a880,{scaleX:_0x93692b,scaleY:_0x4834bc}=this[_0x333f1f(0x2e6)][_0x333f1f(0x14d)]();return Math[_0x333f1f(0x322)](_0x93692b,_0x4834bc);}}var Lt=Object[_0x57a880(0xdf)],Mt=(_0x2299cd,_0x310f36,_0x3ff1de,_0x530ea0)=>{const _0x587bd9=_0x57a880;for(var _0x3134b5=_0x530ea0>0x1?void 0x0:_0x530ea0?Lt(_0x310f36,_0x3ff1de):_0x310f36,_0x398859=_0x2299cd[_0x587bd9(0x324)]-0x1,_0x29dc5c;_0x398859>=0x0;_0x398859--)(_0x29dc5c=_0x2299cd[_0x398859])&&(_0x3134b5=_0x29dc5c(_0x3134b5)||_0x3134b5);return _0x3134b5;},q=(_0x13317f,_0x274d5e)=>(_0x55c3ef,_0x58fee3)=>_0x274d5e(_0x55c3ef,_0x58fee3,_0x13317f);let Ee=class extends a[_0x57a880(0xa7)]{constructor(_0x15474b,_0x14b7aa,_0x119ead,_0xea9650,_0x1db6e2){const _0x211bdf=_0x57a880;super(),_(this,_0x211bdf(0x10a),[]),_(this,'_cursors',[]),(this[_0x211bdf(0x135)]=_0x15474b,this[_0x211bdf(0x2a3)]=_0x14b7aa,this[_0x211bdf(0x305)]=_0x119ead,this[_0x211bdf(0x1d5)]=_0xea9650,this['_themeService']=_0x1db6e2,this[_0x211bdf(0x273)]());}[_0x57a880(0x273)](){const _0x264833=_0x57a880,_0x21f5a4=this[_0x264833(0x135)][_0x264833(0x303)],_0x2953be=this[_0x264833(0x2a3)];this[_0x264833(0x275)](I[_0x264833(0x33e)]([this[_0x264833(0x305)][_0x264833(0xf3)](_0x21f5a4),this['_themeService'][_0x264833(0x1c2)]])[_0x264833(0x307)]($[_0x264833(0x127)](([_0x21e23b,_0x2d184c])=>({'skeleton':_0x2953be[_0x264833(0x17c)](),'cursors':[..._0x21e23b['values']()][_0x264833(0x271)](_0x42c4f1=>({..._0x42c4f1,'color':this['_themeService'][_0x264833(0x225)](_0x42c4f1[_0x264833(0x154)])}))})))['subscribe'](_0x29e461=>{const _0x81235a=_0x264833;if(this[_0x81235a(0x10c)](),_0x29e461){const {skeleton:_0x189b7d,cursors:_0x433412}=_0x29e461;this[_0x81235a(0xf1)](_0x189b7d,_0x433412);}})),this[_0x264833(0x34b)](),this['_initCommandExecutedListener']();}[_0x57a880(0xf1)](_0x1c9fa2,_0x426c85){const _0x3faf72=_0x57a880,{scene:_0x1e1998,mainComponent:_0x584955}=this[_0x3faf72(0x135)],_0x264f73=_0x426c85[_0x3faf72(0x127)](_0x27e631=>new Le(_0x27e631,_0x1e1998,_0x1c9fa2,_0x584955));this['_cursorShapes']=_0x264f73,this[_0x3faf72(0x188)]=_0x426c85;}[_0x57a880(0x85)](){const _0x24830b=_0x57a880;this[_0x24830b(0x10c)]();const {scene:_0x2f1f86,mainComponent:_0x17f7ba}=this[_0x24830b(0x135)],_0x131719=this['_docSkeletonManagerService'][_0x24830b(0x17c)](),_0x533a1a=this['_cursors'][_0x24830b(0x127)](_0x14912b=>new Le(_0x14912b,_0x2f1f86,_0x131719,_0x17f7ba));this[_0x24830b(0x10a)]=_0x533a1a;}[_0x57a880(0x10c)](){const _0x5c2e95=_0x57a880;this[_0x5c2e95(0x10a)][_0x5c2e95(0x231)](_0x5bb781=>_0x5bb781[_0x5c2e95(0x180)]()),this['_cursorShapes']=[];}[_0x57a880(0x223)](){const _0x1f06b3=_0x57a880,_0x18b450=[T[_0x1f06b3(0x230)]['id']];this[_0x1f06b3(0x275)](this[_0x1f06b3(0x1d5)][_0x1f06b3(0x267)](_0x4df5fd=>{const _0x2d3e28=_0x1f06b3;_0x18b450[_0x2d3e28(0x270)](_0x4df5fd['id'])&&_0x4df5fd[_0x2d3e28(0x1c8)][_0x2d3e28(0x303)]===this[_0x2d3e28(0x135)][_0x2d3e28(0x303)]&&this['_refreshCollabCursors']();}));}[_0x57a880(0x34b)](){const _0x2d1a3f=_0x57a880;this[_0x2d1a3f(0x275)](a[_0x2d1a3f(0x1b6)](this['_context'][_0x2d1a3f(0x2a1)][_0x2d1a3f(0x98)])[_0x2d1a3f(0x307)]($[_0x2d1a3f(0x1dd)](_0x20086c=>_0x20086c['type']===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2d1a3f(0xbd)]),$[_0x2d1a3f(0x228)](0x10))[_0x2d1a3f(0x1e0)](()=>{const _0xa865fe=_0x2d1a3f;this[_0xa865fe(0x85)]();}));}};Ee=Mt([q(0x1,a[_0x57a880(0x200)](V[_0x57a880(0x1ff)])),q(0x2,a[_0x57a880(0x200)](F)),q(0x3,a[_0x57a880(0x2ff)]),q(0x4,a['Inject'](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x34560a,_0x151c43){const _0x1bccee=_0x57a880;super(_0x34560a,_0x151c43),_(this,'_color'),_(this,_0x1bccee(0xdc),!0x1),_(this,_0x1bccee(0x147)),_(this,_0x1bccee(0x2b4),''),_(this,'_labelPosition',_0x1bccee(0x348)),_(this,_0x1bccee(0x1c9)),(_0x151c43&&this[_0x1bccee(0x75)](_0x151c43),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x1bccee(0x75)]({'hovered':!0x0})),this[_0x1bccee(0x1b1)]['subscribeEvent'](()=>this[_0x1bccee(0x75)]({'hovered':!0x1})));}[_0x57a880(0x75)](_0xb771e8){const _0x10c925=_0x57a880;var _0x13febf,_0x2ad6db,_0x331f5d,_0x104cf3,_0x23a041,_0x38c648;this[_0x10c925(0xa6)]=(_0x13febf=_0xb771e8[_0x10c925(0x154)])!=null?_0x13febf:this[_0x10c925(0xa6)],this[_0x10c925(0xdc)]=(_0x2ad6db=_0xb771e8[_0x10c925(0x30b)])!=null?_0x2ad6db:this['_hovered'],this[_0x10c925(0x147)]=(_0x331f5d=_0xb771e8[_0x10c925(0x24d)])!=null?_0x331f5d:this['_range'],this[_0x10c925(0x2b4)]=(_0x104cf3=_0xb771e8['name'])!=null?_0x104cf3:this[_0x10c925(0x2b4)],this[_0x10c925(0x161)]=(_0x23a041=_0xb771e8[_0x10c925(0x186)])!=null?_0x23a041:this[_0x10c925(0x161)],this['_backgroundColor']=(_0x38c648=_0xb771e8[_0x10c925(0x19c)])!=null?_0x38c648:this[_0x10c925(0x1c9)],this[_0x10c925(0x1a4)]({'width':_0xb771e8['width'],'height':_0xb771e8[_0x10c925(0x213)]});}['onMouseMove'](_0x3df0d6){const _0x49d477=_0x57a880,{row:_0x1d612a,column:_0x22742b}=_0x3df0d6;if(_0x1d612a>=this[_0x49d477(0x147)]['startRow']&&_0x1d612a<=this[_0x49d477(0x147)][_0x49d477(0x107)]&&_0x22742b>=this[_0x49d477(0x147)][_0x49d477(0xe1)]&&_0x22742b<=this[_0x49d477(0x147)][_0x49d477(0x2da)]){this[_0x49d477(0x75)]({'hovered':!0x0});return;}this[_0x49d477(0x75)]({'hovered':!0x1});}[_0x57a880(0x157)](_0x35aeed){return!0x1;}[_0x57a880(0x1cc)](_0x5e561e){const _0x4645b6=_0x57a880;C['Rect']['drawWith'](_0x5e561e,{'width':this[_0x4645b6(0x18f)],'height':this[_0x4645b6(0x213)],'strokeWidth':Pt,'stroke':this[_0x4645b6(0xa6)],'evented':!0x1,'fill':this[_0x4645b6(0x1c9)]}),this[_0x4645b6(0xdc)]&&(_0x5e561e[_0x4645b6(0x236)](),_0x5e561e[_0x4645b6(0x201)](0x1,0x0,0x0,0x1,this[_0x4645b6(0x18f)],this[_0x4645b6(0x161)]===_0x4645b6(0x15e)?0x0:-X),re[_0x4645b6(0x1f0)](_0x5e561e,{'text':this[_0x4645b6(0x2b4)],'color':this[_0x4645b6(0xa6)]}),_0x5e561e[_0x4645b6(0x25a)]());}}var wt=Object[_0x57a880(0xdf)],yt=(_0x4d4d8a,_0x33075b,_0x3391c3,_0xc92e56)=>{for(var _0x3efaa3=_0xc92e56>0x1?void 0x0:_0xc92e56?wt(_0x33075b,_0x3391c3):_0x33075b,_0x10cb0b=_0x4d4d8a['length']-0x1,_0x208d16;_0x10cb0b>=0x0;_0x10cb0b--)(_0x208d16=_0x4d4d8a[_0x10cb0b])&&(_0x3efaa3=_0x208d16(_0x3efaa3)||_0x3efaa3);return _0x3efaa3;},ue=(_0x2cc31a,_0xf2c4ff)=>(_0x32340b,_0x5ba3ad)=>_0xf2c4ff(_0x32340b,_0x5ba3ad,_0x2cc31a);const $t=0x1389;let Ce=class extends a[_0x57a880(0xa7)]{constructor(_0x34bcac,_0x565776,_0x106325,_0x2e6ed0){const _0x3caf9b=_0x57a880;super(),_(this,_0x3caf9b(0x188),new Set()),_(this,'_lastPointer',null),(this[_0x3caf9b(0x135)]=_0x34bcac,this['_sheetSkeletonManagerService']=_0x565776,this['_collabCursorController']=_0x106325,this[_0x3caf9b(0xc1)]=_0x2e6ed0,this['_init']());}[_0x57a880(0x273)](){const _0xdd1ad4=_0x57a880;this[_0xdd1ad4(0x282)][_0xdd1ad4(0x15d)][_0xdd1ad4(0x307)]($[_0xdd1ad4(0x276)](this[_0xdd1ad4(0xc9)]),$[_0xdd1ad4(0x2d1)](_0xc595ca=>{const _0x1fda87=_0xdd1ad4;if(_0xc595ca){const _0x553745=_0xc595ca[_0x1fda87(0x1c7)];return I[_0x1fda87(0x33e)](this[_0x1fda87(0x305)][_0x1fda87(0xf3)](this['_context']['unitId']),this[_0x1fda87(0xc1)][_0x1fda87(0x1c2)])['pipe']($['map'](([_0x4d1eef,_0x45ff8d])=>{const _0x356b89=new Map();return _0x4d1eef['forEach']((_0x46ffc8,_0x34f6f3)=>{const _0x5e4645=_0x3624;if(_0x46ffc8[_0x5e4645(0x1b5)]===_0x553745){const _0x2a4109={..._0x46ffc8};_0x2a4109[_0x5e4645(0x154)]=this['_themeService'][_0x5e4645(0x225)](_0x46ffc8['color']),_0x356b89[_0x5e4645(0x15b)](_0x34f6f3,_0x2a4109);}}),{'skeleton':_0xc595ca,'cursors':_0x356b89};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0xdd1ad4(0x1e0)](({skeleton:_0x184f8e,cursors:_0x32011e})=>{const _0x247481=_0xdd1ad4;this[_0x247481(0x10c)](),_0x184f8e&&this[_0x247481(0xf1)](_0x184f8e,_0x32011e);}),this[_0xdd1ad4(0x282)][_0xdd1ad4(0x15d)]['subscribe'](_0x37bb26=>{const _0x2ff477=_0xdd1ad4;if(_0x37bb26==null)return;const {skeleton:_0x2e6ea8}=_0x37bb26,{scene:_0x22ab64}=this['_context'];_0x22ab64['onPointerMove$'][_0x2ff477(0x2a9)](a[_0x2ff477(0x346)](_0x29bb83=>{const _0x50548b=_0x2ff477;var _0x2157dd,_0xd469dd;const {offsetX:_0x223d29,offsetY:_0x354ab0}=_0x29bb83,{x:_0xb039ee,y:_0x35c51e}=_0x22ab64[_0x50548b(0x2d5)](C[_0x50548b(0x2be)]['FromArray']([_0x223d29,_0x354ab0])),{scaleX:_0x2fa5f7,scaleY:_0x20ca3c}=_0x22ab64[_0x50548b(0x14d)](),_0x50ab80=_0x22ab64[_0x50548b(0x301)](C['SHEET_VIEWPORT_KEY'][_0x50548b(0x2a8)]),_0x1de096=_0x22ab64[_0x50548b(0x1fc)](C['Vector2'][_0x50548b(0x31c)]([_0xb039ee,_0x35c51e]),_0x50ab80),_0x2d51a8=_0x2e6ea8[_0x50548b(0xdd)](_0x223d29,_0x354ab0,_0x2fa5f7,_0x20ca3c,_0x1de096);((_0x2157dd=this['_lastPointer'])==null?void 0x0:_0x2157dd[_0x50548b(0x81)])===_0x2d51a8[_0x50548b(0x81)]&&((_0xd469dd=this['_lastPointer'])==null?void 0x0:_0xd469dd['row'])===_0x2d51a8[_0x50548b(0x233)]||this[_0x50548b(0x188)][_0x50548b(0x231)](_0x248162=>{const _0xe4e9e=_0x50548b;_0x248162[_0xe4e9e(0x2f5)](_0x2d51a8);});},0x64));});}[_0x57a880(0xf1)](_0x174315,_0x430a88){const _0x3bb257=_0x57a880;var _0x4670bf;const _0x296a77=(_0x4670bf=this[_0x3bb257(0x282)][_0x3bb257(0x1c6)]())==null?void 0x0:_0x4670bf[_0x3bb257(0xf7)];if(!_0x296a77)return;const _0x361cdf=this['_getSheetObject']();if(!_0x361cdf)return;this[_0x3bb257(0x188)][_0x3bb257(0x231)](_0x5377fc=>{const _0x336555=_0x3bb257;_0x5377fc[_0x336555(0xda)]();});const {scene:_0x52c737}=_0x361cdf,_0x296271=xt(Array[_0x3bb257(0x7f)](_0x430a88['values']()))[_0x3bb257(0x127)](_0xa68f6d=>{const _0x48dc9a=_0x3bb257,{color:_0x4d6bc9,range:_0x23334c,name:_0x52d67e,selection:_0x133abe,sheetID:_0x5e7d0d}=_0xa68f6d,{startColumn:_0x1e63d6,startRow:_0xce68e2,endColumn:_0xe759de,endRow:_0x2669c1}=_0x23334c,_0x22a40a=J[_0x48dc9a(0xb7)](_0xce68e2,_0x1e63d6,_0x52c737,_0x296a77),_0x538844=J[_0x48dc9a(0xb7)](_0x2669c1,_0xe759de,_0x52c737,_0x296a77),{columnHeaderHeightAndMarginTop:_0x1d3833}=_0x296a77,{startX:_0x15160b,startY:_0x488313}=_0x22a40a,{endX:_0x4dadf9,endY:_0x4750f0}=_0x538844,_0x189ed8=_0x4dadf9-_0x15160b,_0x51b32e=_0x4750f0-_0x488313,_0x760293={'labelPosition':_0x488313-_0x1d3833>=X?'top':'bottom','sheetID':_0x5e7d0d,'range':_0x23334c,'color':_0x4d6bc9,'name':_0x52d67e,'selection':_0x133abe,'left':_0x15160b,'top':_0x488313,'width':_0x189ed8,'height':_0x51b32e,'evented':!0x1,'zIndex':$t};return new je(_0x52d67e,_0x760293);});_0x52c737[_0x3bb257(0x1c4)](_0x296271,At),this[_0x3bb257(0x188)]=new Set(_0x296271);}[_0x57a880(0x10c)](){const _0x4f29f0=_0x57a880;var _0x1eb4f3;(_0x1eb4f3=this['_cursors'])==null||_0x1eb4f3[_0x4f29f0(0x231)](_0x1073ca=>_0x1073ca[_0x4f29f0(0x180)]());}[_0x57a880(0x25b)](){const _0x449f0d=_0x57a880;return J[_0x449f0d(0x284)](this['_context'][_0x449f0d(0x249)],this[_0x449f0d(0x135)]);}};Ce=yt([ue(0x1,a[_0x57a880(0x200)](J[_0x57a880(0xaa)])),ue(0x2,a['Inject'](F)),ue(0x3,a[_0x57a880(0x200)](a[_0x57a880(0xbb)]))],Ce);function xt(_0x35d9aa){const _0x2c219a=_0x57a880,_0x48053c=new Map();return _0x35d9aa[_0x2c219a(0x231)](_0x26cfa4=>{const _0x1867b7=_0x2c219a;if(_0x48053c['has'](_0x26cfa4[_0x1867b7(0x1ce)])){const _0xca9174=_0x48053c[_0x1867b7(0x2d2)](_0x26cfa4[_0x1867b7(0x1ce)]);_0xca9174[_0x1867b7(0x25f)]+=',\x20'+_0x26cfa4[_0x1867b7(0x25f)];}else _0x48053c[_0x1867b7(0x15b)](_0x26cfa4[_0x1867b7(0x1ce)],_0x26cfa4);}),Array[_0x2c219a(0x7f)](_0x48053c[_0x2c219a(0x226)]());}var Bt=Object[_0x57a880(0xdf)],Ft=(_0x11cf6e,_0x781ebb,_0x3dcfa7,_0x2068b7)=>{const _0x5b0a48=_0x57a880;for(var _0x24e9f4=_0x2068b7>0x1?void 0x0:_0x2068b7?Bt(_0x781ebb,_0x3dcfa7):_0x781ebb,_0x1e2075=_0x11cf6e[_0x5b0a48(0x324)]-0x1,_0x810a88;_0x1e2075>=0x0;_0x1e2075--)(_0x810a88=_0x11cf6e[_0x1e2075])&&(_0x24e9f4=_0x810a88(_0x24e9f4)||_0x24e9f4);return _0x24e9f4;},y=(_0x17fce5,_0x1fe47c)=>(_0x137036,_0x96376c)=>_0x1fe47c(_0x137036,_0x96376c,_0x17fce5);let Z=class extends a[_0x57a880(0x23f)]{constructor(_0x38b47a,_0x31a67f,_0x499865,_0x9109f1,_0x36f161,_0x32afbd){const _0x30381c=_0x57a880;super(),this[_0x30381c(0x2f1)]=_0x38b47a,this[_0x30381c(0x1a7)]=_0x31a67f,this[_0x30381c(0x123)]=_0x499865,this[_0x30381c(0x255)]=_0x9109f1,this[_0x30381c(0x286)]=_0x36f161,this[_0x30381c(0x295)]=_0x32afbd,this['_setupBeforeClosingHandler'](),this[_0x30381c(0x109)]();}['_setupBeforeClosingHandler'](){const _0x1f69b7=_0x57a880;this[_0x1f69b7(0x275)](this[_0x1f69b7(0x2f1)][_0x1f69b7(0x2ba)](()=>{const _0x3ff35f=_0x1f69b7;if(this[_0x3ff35f(0x1a7)][_0x3ff35f(0x296)][_0x3ff35f(0xe7)])return this[_0x3ff35f(0x295)]['t'](_0x3ff35f(0x29e));}));}[_0x57a880(0x109)](){const _0x26c6a6=_0x57a880;this[_0x26c6a6(0x275)](this['_collaborationUIEventService'][_0x26c6a6(0x353)][_0x26c6a6(0x1e0)](_0x5eeadc=>{const _0x18a3ea=_0x26c6a6;_0x5eeadc['id']===u[_0x18a3ea(0x7a)]['OTHER_CLIENT_EDITING']&&this[_0x18a3ea(0x255)][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)]['Warning'],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0x2c5))}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)][_0x18a3ea(0x137)]&&this['_messageService'][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)][_0x18a3ea(0x168)],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0x195))}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)][_0x18a3ea(0x24c)]&&this[_0x18a3ea(0x286)][_0x18a3ea(0x2b9)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x18a3ea(0x295)]['t']('permission.content'),'type':_0x18a3ea(0x337),'duration':0x0}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)]['CONFLICT']&&this[_0x18a3ea(0x255)][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)][_0x18a3ea(0x2f3)],'content':this[_0x18a3ea(0x295)]['t']('collaboration.closeRoom')+'('+_0x5eeadc[_0x18a3ea(0x1d0)]+')'}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)][_0x18a3ea(0x318)]&&this['_messageService'][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)]['Warning'],'content':this[_0x18a3ea(0x295)]['t'](_0x5eeadc[_0x18a3ea(0x1d0)]||'')}),_0x5eeadc['id']===u['CollaborationUIEventId'][_0x18a3ea(0x1f9)]&&this[_0x18a3ea(0x255)][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)][_0x18a3ea(0x168)],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0xcd))}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)]['SOCKET_FAILED']&&this['_messageService']['show']({'type':p[_0x18a3ea(0x310)][_0x18a3ea(0x2f3)],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0x22a))}),_0x5eeadc['id']===u['CollaborationUIEventId'][_0x18a3ea(0x327)]&&this[_0x18a3ea(0x255)][_0x18a3ea(0x2b9)]({'type':p['MessageType'][_0x18a3ea(0x2f3)],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0x74))});}));}};Z=Ft([y(0x0,O[_0x57a880(0xff)]),y(0x1,u[_0x57a880(0x8a)]),y(0x2,a[_0x57a880(0x200)](u[_0x57a880(0x244)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x57a880(0x14b)]))],Z);var jt=Object[_0x57a880(0xdf)],kt=(_0x265e95,_0x4a81b4,_0x56af36,_0x486de2)=>{for(var _0x1bb169=_0x486de2>0x1?void 0x0:_0x486de2?jt(_0x4a81b4,_0x56af36):_0x4a81b4,_0x136fc3=_0x265e95['length']-0x1,_0x2f1650;_0x136fc3>=0x0;_0x136fc3--)(_0x2f1650=_0x265e95[_0x136fc3])&&(_0x1bb169=_0x2f1650(_0x1bb169)||_0x1bb169);return _0x1bb169;},z=(_0x45952b,_0x10af0b)=>(_0x4cf1b7,_0x1af901)=>_0x10af0b(_0x4cf1b7,_0x1af901,_0x45952b);let Q=class extends a[_0x57a880(0x23f)]{constructor(_0x4ef296,_0x39ecb2,_0xd92d91,_0x5c03ae){const _0x6d4828=_0x57a880;super(),_(this,_0x6d4828(0x139)),(this['_injector']=_0x4ef296,this['_httpService']=_0x39ecb2,this[_0x6d4828(0xc7)]=_0xd92d91,this[_0x6d4828(0x163)]=_0x5c03ae,this[_0x6d4828(0x273)]());}[_0x57a880(0x273)](){const _0x5114c6=_0x57a880;this[_0x5114c6(0x152)](),this[_0x5114c6(0x2e0)](),this[_0x5114c6(0x25c)](),this[_0x5114c6(0x77)]();}[_0x57a880(0x77)](){const _0x5d0598=_0x57a880;this[_0x5d0598(0x275)](this[_0x5d0598(0x163)][_0x5d0598(0x30e)][_0x5d0598(0x1e0)](_0xf3d3fa=>{const _0x5cc858=_0x5d0598;this[_0x5cc858(0x139)]=_0xf3d3fa==null?void 0x0:_0xf3d3fa[_0x5cc858(0x14f)];}));}[_0x57a880(0x152)](){const _0x1ee648=_0x57a880,_0x4ed867=_0x54c1f8=>{const _0x457635=_0x3624;var _0x36a491;this[_0x457635(0x1f3)](_0x457635(0x337),'[Window\x20Error]:\x20'+_0x54c1f8[_0x457635(0x315)]+_0x457635(0x2b7)+_0x54c1f8[_0x457635(0xad)]+':'+_0x54c1f8[_0x457635(0x341)]+':'+_0x54c1f8[_0x457635(0x26a)]+'\x0a'+(((_0x36a491=_0x54c1f8['error'])==null?void 0x0:_0x36a491[_0x457635(0x281)])||''));};window['addEventListener'](_0x1ee648(0x337),_0x4ed867),this[_0x1ee648(0x275)](()=>{const _0x31629a=_0x1ee648;window[_0x31629a(0x28d)](_0x31629a(0x337),_0x4ed867);});}[_0x57a880(0x2e0)](){const _0x6909b1=_0x57a880,_0x8f66f2=_0x5ab059=>{const _0x3d1cd6=_0x3624;this['_uploadLog'](_0x3d1cd6(0x337),_0x3d1cd6(0x76)+_0x5ab059[_0x3d1cd6(0xd3)]);};window[_0x6909b1(0x2dd)](_0x6909b1(0xb6),_0x8f66f2),this[_0x6909b1(0x275)](()=>{const _0x348b2d=_0x6909b1;window['removeEventListener'](_0x348b2d(0xb6),_0x8f66f2);});}['_monkeyPatchLogService'](){const _0x55a29d=_0x57a880,_0x364402=this[_0x55a29d(0xc7)][_0x55a29d(0x337)][_0x55a29d(0x1cb)](this[_0x55a29d(0xc7)]);this['_logService'][_0x55a29d(0x337)]=(..._0x4dcf46)=>{const _0x35ecd4=_0x55a29d,_0x4f2ffe=_0x4dcf46['map'](_0x25e301=>_0x25e301 instanceof Error?_0x25e301[_0x35ecd4(0x315)]+'\x0a'+_0x25e301[_0x35ecd4(0x281)]:String(_0x25e301))[_0x35ecd4(0x215)]('\x20');this[_0x35ecd4(0x1f3)](_0x35ecd4(0x337),_0x35ecd4(0x329)+_0x4f2ffe),_0x364402(..._0x4dcf46);},this['disposeWithMe'](()=>{const _0x414e26=_0x55a29d;this[_0x414e26(0xc7)][_0x414e26(0x337)]=_0x364402;});}[_0x57a880(0x1f3)](_0x433941,_0x2f7f26){const _0x4146b8=_0x57a880;try{const _0x5bd811={'userId':this['_memberID'],'logLabel':_0x433941,'content':_0x2f7f26};this[_0x4146b8(0x28f)][_0x4146b8(0x14a)](_0x4146b8(0x224),{'body':_0x5bd811})[_0x4146b8(0x17f)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x57a880(0x200)](a['Injector'])),z(0x1,a[_0x57a880(0x200)](x[_0x57a880(0xe2)])),z(0x2,a['ILogService']),z(0x3,a[_0x57a880(0x200)](u['CollaborationSessionService']))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x57a880(0xdf)],Wt=(_0x4e0710,_0xd15758,_0x5b4925,_0x3b5520)=>{const _0x5b9887=_0x57a880;for(var _0x4b2529=_0x3b5520>0x1?void 0x0:_0x3b5520?Ht(_0xd15758,_0x5b4925):_0xd15758,_0x1dd7b8=_0x4e0710[_0x5b9887(0x324)]-0x1,_0xbd06b8;_0x1dd7b8>=0x0;_0x1dd7b8--)(_0xbd06b8=_0x4e0710[_0x1dd7b8])&&(_0x4b2529=_0xbd06b8(_0x4b2529)||_0x4b2529);return _0x4b2529;},Ae=(_0xd31f3a,_0x13cfd1)=>(_0x19ec52,_0x22e1fd)=>_0x13cfd1(_0x19ec52,_0x22e1fd,_0xd31f3a);let ee=class{constructor(_0x4ed356,_0x144f9a){const _0x360cf9=_0x57a880;this['_transformService']=_0x4ed356,this[_0x360cf9(0x105)]=_0x144f9a;}[_0x57a880(0x25e)](_0x13c738){const _0x5d8b4c=_0x57a880;this[_0x5d8b4c(0x232)](_0x13c738),this['_transformPreviousActiveRange'](_0x13c738);}[_0x57a880(0x178)](_0x18940f){const _0xdcba8c=_0x57a880,{unitID:_0x1576b9}=_0x18940f,_0x5741e5=this['_renderManagerService'][_0xdcba8c(0x2ad)](_0x1576b9)[_0xdcba8c(0x352)](T[_0xdcba8c(0x256)]),{redoCache:_0x3bd5fb}=_0x5741e5['getUndoRedoMutationParamsCache']();if(_0x3bd5fb[_0xdcba8c(0x324)]===0x0)return _0x18940f;let _0x2985a4=a['Tools'][_0xdcba8c(0x149)](_0x18940f['mutations'][0x0]);for(let _0x565e12=0x0;_0x565e12<_0x3bd5fb[_0xdcba8c(0x324)];_0x565e12++){const _0xf17a39={'id':_0xdcba8c(0x10e),'params':{..._0x3bd5fb[_0x565e12]}},_0x3bb116=this['_transformService'][_0xdcba8c(0x33f)](_0x2985a4,_0xf17a39,!0x1);if(g[_0xdcba8c(0x205)](_0x3bb116))throw _0x3bb116[_0xdcba8c(0x337)];_0x2985a4=_0x3bb116['m1Prime'];}return{...a[_0xdcba8c(0xfb)][_0xdcba8c(0x149)](_0x18940f),'mutations':[_0x2985a4]};}[_0x57a880(0x232)](_0x31341a){const _0x14a6ed=_0x57a880,{unitID:_0x45b1fa}=_0x31341a,_0x2beed5=this[_0x14a6ed(0x105)][_0x14a6ed(0x2ad)](_0x45b1fa)['with'](T[_0x14a6ed(0x256)]),{undoCache:_0x226791,redoCache:_0x546aa1}=_0x2beed5[_0x14a6ed(0x2cb)]();if(_0x226791[_0x14a6ed(0x324)]===0x0||_0x546aa1[_0x14a6ed(0x324)]===0x0)return;const _0x2ae44a=[],_0x5dd051=[];let _0x113456=a[_0x14a6ed(0xfb)][_0x14a6ed(0x149)](_0x31341a[_0x14a6ed(0x245)][0x0]),_0x47b186=a[_0x14a6ed(0xfb)][_0x14a6ed(0x149)](_0x31341a['mutations'][0x0]);for(let _0x3c9c69=_0x226791[_0x14a6ed(0x324)]-0x1;_0x3c9c69>=0x0;_0x3c9c69--){const _0x2c8dd4={'id':_0x14a6ed(0x10e),'params':{..._0x226791[_0x3c9c69]}},_0x1b74b5={'id':_0x14a6ed(0x10e),'params':{..._0x546aa1[_0x3c9c69]}},_0x521f20=this[_0x14a6ed(0x317)][_0x14a6ed(0x33f)](_0x113456,_0x2c8dd4,!0x1),_0x38eb9f=this[_0x14a6ed(0x317)][_0x14a6ed(0x33f)](_0x47b186,_0x1b74b5,!0x1);if(g[_0x14a6ed(0x205)](_0x521f20))throw _0x521f20[_0x14a6ed(0x337)];if(g['isTransformMutationFailure'](_0x38eb9f))throw _0x38eb9f[_0x14a6ed(0x337)];_0x2ae44a[_0x14a6ed(0x172)](_0x521f20[_0x14a6ed(0x1e8)][_0x14a6ed(0x1c8)]),_0x5dd051[_0x14a6ed(0x172)](_0x38eb9f['m2Prime'][_0x14a6ed(0x1c8)]),_0x113456=_0x521f20['m1Prime'],_0x47b186=_0x38eb9f[_0x14a6ed(0xc6)];}_0x2beed5[_0x14a6ed(0x23c)]({'undoCache':_0x2ae44a,'redoCache':_0x5dd051});}[_0x57a880(0x31d)](_0x2def3f){const _0x430a73=_0x57a880,{unitID:_0x57eb73}=_0x2def3f,_0x271312=this[_0x430a73(0x105)][_0x430a73(0x2ad)](_0x57eb73)[_0x430a73(0x352)](T[_0x430a73(0x256)]),_0x158456=_0x271312[_0x430a73(0x83)]();if(_0x158456==null)return;const _0x792582=[{'id':_0x430a73(0x10e),'params':{'unitId':_0x2def3f[_0x430a73(0x32a)],'actions':null,'textRanges':[_0x158456]}}],_0x4dcc51=this[_0x430a73(0x317)][_0x430a73(0x176)](_0x2def3f,_0x792582);if(!g[_0x430a73(0x2ec)](_0x4dcc51))throw _0x4dcc51[_0x430a73(0x337)];const _0x138207=_0x4dcc51[_0x430a73(0x1e8)][0x0][_0x430a73(0x1c8)][_0x430a73(0x297)];Array[_0x430a73(0x2c0)](_0x138207)&&_0x138207[_0x430a73(0x324)]&&_0x271312[_0x430a73(0x24b)](_0x138207[0x0]);}};ee=Wt([Ae(0x0,g[_0x57a880(0x99)]),Ae(0x1,C[_0x57a880(0x31b)])],ee);var Vt=Object[_0x57a880(0xdf)],Gt=(_0x19de12,_0x304153,_0x312585,_0x246952)=>{const _0x2788b1=_0x57a880;for(var _0x1fdff7=_0x246952>0x1?void 0x0:_0x246952?Vt(_0x304153,_0x312585):_0x304153,_0x2b1fe8=_0x19de12[_0x2788b1(0x324)]-0x1,_0x4f273f;_0x2b1fe8>=0x0;_0x2b1fe8--)(_0x4f273f=_0x19de12[_0x2b1fe8])&&(_0x1fdff7=_0x4f273f(_0x1fdff7)||_0x1fdff7);return _0x1fdff7;},Ie=(_0x262f07,_0x2c19fe)=>(_0x4ffde8,_0x4094e3)=>_0x2c19fe(_0x4ffde8,_0x4094e3,_0x262f07);let te=class{constructor(_0x5c93f1,_0x45b278,_0x337b0a){const _0x492f18=_0x57a880;this['_injector']=_0x5c93f1,this[_0x492f18(0x317)]=_0x45b278,this['_docStateChangeManagerService']=_0x337b0a;}[_0x57a880(0xea)](_0x52c8d7){const _0x1649e3=_0x57a880;this[_0x1649e3(0x293)](_0x52c8d7);}[_0x57a880(0x178)](_0x556974){const _0x6394d7=_0x57a880,{unitID:_0x334dce}=_0x556974,{collaboration:_0x3df0c7}=this['_docStateChangeManagerService'][_0x6394d7(0x91)](_0x334dce);if(_0x3df0c7[_0x6394d7(0x324)]===0x0)return _0x556974;let _0x2a4234=a[_0x6394d7(0xfb)][_0x6394d7(0x149)](_0x556974[_0x6394d7(0x245)][0x0]);for(let _0x11d958=0x0;_0x11d958<_0x3df0c7[_0x6394d7(0x324)];_0x11d958++){const _0x2c1577={'id':_0x6394d7(0x10e),'params':{'unitId':_0x3df0c7[_0x11d958]['unitId'],..._0x3df0c7[_0x11d958][_0x6394d7(0x131)]}},_0xe31de6=this[_0x6394d7(0x317)][_0x6394d7(0x33f)](_0x2a4234,_0x2c1577,!0x1);if(g[_0x6394d7(0x205)](_0xe31de6))throw _0xe31de6['error'];_0x2a4234=_0xe31de6[_0x6394d7(0xc6)];}return{...a[_0x6394d7(0xfb)][_0x6394d7(0x149)](_0x556974),'mutations':[_0x2a4234]};}[_0x57a880(0x293)](_0x39544f){const _0x3c65b0=_0x57a880,{unitID:_0x35726a}=_0x39544f,{history:_0x21b772,collaboration:_0x3577e5}=this[_0x3c65b0(0xd4)][_0x3c65b0(0x91)](_0x35726a);if(_0x21b772['length']===0x0&&_0x3577e5[_0x3c65b0(0x324)]===0x0)return;const _0x90d469=[],_0x15a31f=[];let _0x148f8a=a['Tools'][_0x3c65b0(0x149)](_0x39544f[_0x3c65b0(0x245)][0x0]),_0x292ada=a['Tools'][_0x3c65b0(0x149)](_0x39544f[_0x3c65b0(0x245)][0x0]);for(let _0x589f3e=_0x21b772[_0x3c65b0(0x324)]-0x1;_0x589f3e>=0x0;_0x589f3e--){const _0x182f02={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x21b772[_0x589f3e]['unitId'],..._0x21b772[_0x589f3e][_0x3c65b0(0x26d)]}},_0x3a112e={'id':_0x3c65b0(0x10e),'params':{'unitId':_0x21b772[_0x589f3e][_0x3c65b0(0x303)],..._0x21b772[_0x589f3e][_0x3c65b0(0x131)]}},_0x4ed679=this['_transformService'][_0x3c65b0(0x33f)](_0x148f8a,_0x182f02,!0x1),_0xd40bb9=this[_0x3c65b0(0x317)][_0x3c65b0(0x33f)](_0x292ada,_0x3a112e,!0x1);if(g[_0x3c65b0(0x205)](_0x4ed679))throw _0x4ed679[_0x3c65b0(0x337)];if(g[_0x3c65b0(0x205)](_0xd40bb9))throw _0xd40bb9[_0x3c65b0(0x337)];_0x90d469['unshift']({..._0x21b772[_0x589f3e],'undoState':_0x4ed679[_0x3c65b0(0x1e8)]['params'],'redoState':_0xd40bb9['m2Prime'][_0x3c65b0(0x1c8)]}),_0x148f8a=_0x4ed679['m1Prime'],_0x292ada=_0xd40bb9[_0x3c65b0(0xc6)];}_0x148f8a=a[_0x3c65b0(0xfb)][_0x3c65b0(0x149)](_0x39544f[_0x3c65b0(0x245)][0x0]),_0x292ada=a[_0x3c65b0(0xfb)][_0x3c65b0(0x149)](_0x39544f[_0x3c65b0(0x245)][0x0]);for(let _0x3cb7b8=_0x3577e5[_0x3c65b0(0x324)]-0x1;_0x3cb7b8>=0x0;_0x3cb7b8--){const _0x14225a={'id':_0x3c65b0(0x10e),'params':{'unitId':_0x3577e5[_0x3cb7b8][_0x3c65b0(0x303)],..._0x3577e5[_0x3cb7b8][_0x3c65b0(0x26d)]}},_0x1c5eff={'id':_0x3c65b0(0x10e),'params':{'unitId':_0x3577e5[_0x3cb7b8][_0x3c65b0(0x303)],..._0x3577e5[_0x3cb7b8][_0x3c65b0(0x131)]}},_0x4d7535=this[_0x3c65b0(0x317)][_0x3c65b0(0x33f)](_0x148f8a,_0x14225a,!0x1),_0x116cf1=this['_transformService'][_0x3c65b0(0x33f)](_0x292ada,_0x1c5eff,!0x1);if(g['isTransformMutationFailure'](_0x4d7535))throw _0x4d7535['error'];if(g[_0x3c65b0(0x205)](_0x116cf1))throw _0x116cf1[_0x3c65b0(0x337)];_0x15a31f[_0x3c65b0(0x172)]({..._0x3577e5[_0x3cb7b8],'undoState':_0x4d7535[_0x3c65b0(0x1e8)][_0x3c65b0(0x1c8)],'redoState':_0x116cf1[_0x3c65b0(0x1e8)][_0x3c65b0(0x1c8)]}),_0x148f8a=_0x4d7535['m1Prime'],_0x292ada=_0x116cf1['m1Prime'];}this[_0x3c65b0(0xd4)][_0x3c65b0(0x342)](_0x35726a,{'history':_0x90d469,'collaboration':_0x15a31f});}};te=Gt([Ie(0x0,a['Inject'](a[_0x57a880(0x334)])),Ie(0x1,g[_0x57a880(0x99)]),Ie(0x2,a[_0x57a880(0x200)](T[_0x57a880(0x2ef)]))],te);var Xt=Object[_0x57a880(0xdf)],Kt=(_0x2c4a01,_0x5c9d87,_0x456bd2,_0x24e2a3)=>{for(var _0x3cae52=_0x24e2a3>0x1?void 0x0:_0x24e2a3?Xt(_0x5c9d87,_0x456bd2):_0x5c9d87,_0x4786af=_0x2c4a01['length']-0x1,_0xcace3;_0x4786af>=0x0;_0x4786af--)(_0xcace3=_0x2c4a01[_0x4786af])&&(_0x3cae52=_0xcace3(_0x3cae52)||_0x3cae52);return _0x3cae52;},Pe=(_0x4cf61d,_0xad31a0)=>(_0x465668,_0x399371)=>_0xad31a0(_0x465668,_0x399371,_0x4cf61d);let se=class{constructor(_0xb2e9a1,_0x201b22){const _0x271727=_0x57a880;this[_0x271727(0xcc)]=_0xb2e9a1,this[_0x271727(0x317)]=_0x201b22;}[_0x57a880(0x14c)](_0x78068){const _0x2ca2b6=_0x57a880;var _0xf9b29c;const _0x567a0c=this[_0x2ca2b6(0xcc)][_0x2ca2b6(0x2d2)](V['DocSelectionManagerService']),_0x1fef32=(_0xf9b29c=_0x567a0c[_0x2ca2b6(0x1fb)]())!=null?_0xf9b29c:[];if(_0x1fef32[_0x2ca2b6(0x324)]===0x0)return;const _0xc08619=_0x78068[_0x2ca2b6(0x32a)],_0x5ab36c=[{'id':_0x2ca2b6(0x10e),'params':{'unitId':_0xc08619,'actions':null,'textRanges':_0x1fef32}}],_0x5787e3=this[_0x2ca2b6(0x317)][_0x2ca2b6(0x176)](_0x78068,_0x5ab36c);if(!g['isTransformMutationsWithChangesetSuccess'](_0x5787e3))throw _0x5787e3[_0x2ca2b6(0x337)];const _0x356375=_0x5787e3[_0x2ca2b6(0x1e8)][0x0]['params'][_0x2ca2b6(0x297)];Array['isArray'](_0x356375)&&_0x356375['length']&&_0x567a0c[_0x2ca2b6(0x2d8)](_0x356375,{'unitId':_0xc08619,'subUnitId':_0xc08619},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a['Injector'])),Pe(0x1,g[_0x57a880(0x99)])],se);var qt=Object[_0x57a880(0xdf)],zt=(_0x1ddc08,_0x8569de,_0xa7a580,_0x408541)=>{const _0x1e7864=_0x57a880;for(var _0x2527cc=_0x408541>0x1?void 0x0:_0x408541?qt(_0x8569de,_0xa7a580):_0x8569de,_0xa77c7a=_0x1ddc08[_0x1e7864(0x324)]-0x1,_0x781fb3;_0xa77c7a>=0x0;_0xa77c7a--)(_0x781fb3=_0x1ddc08[_0xa77c7a])&&(_0x2527cc=_0x781fb3(_0x2527cc)||_0x2527cc);return _0x2527cc;},N=(_0x19db09,_0x1a424a)=>(_0xf53e34,_0x3ff780)=>_0x1a424a(_0xf53e34,_0x3ff780,_0x19db09);let ie=class extends a['Disposable']{constructor(_0x2db48b,_0x45ef43,_0x7f0557,_0x36a673,_0x208bbd,_0x47de51,_0x28c5fa,_0x5ebb6f){const _0xb1c8fc=_0x57a880;super(),_(this,'_status$',new I[(_0xb1c8fc(0x300))](u[_0xb1c8fc(0x18c)][_0xb1c8fc(0xb5)])),(this[_0xb1c8fc(0xd4)]=_0x2db48b,this[_0xb1c8fc(0x2b8)]=_0x45ef43,this[_0xb1c8fc(0x2e8)]=_0x7f0557,this[_0xb1c8fc(0x27c)]=_0x36a673,this[_0xb1c8fc(0x1fa)]=_0x208bbd,this[_0xb1c8fc(0x191)]=_0x47de51,this[_0xb1c8fc(0x255)]=_0x28c5fa,this['_localeService']=_0x5ebb6f,this['_initEntityListener']());}['_initEntityListener'](){const _0xb965db=_0x57a880;this[_0xb965db(0x275)](this['_collaborationController'][_0xb965db(0x21a)][_0xb965db(0x1e0)](_0x1e70b0=>{const _0x45e1b2=_0xb965db,_0x3d75f2=this['_docStateChangeManagerService'][_0x45e1b2(0xdb)][_0x45e1b2(0x1e0)](_0x4e4320=>{const _0x210a91=_0x45e1b2;if(_0x4e4320==null)return;const {unitId:_0x2d9ed3,redoState:_0x3ab9c1,commandId:_0x17ba73}=_0x4e4320;if(_0x2d9ed3!==_0x1e70b0[_0x210a91(0x32a)])return;const _0x1c9b73={'id':_0x17ba73,'type':a[_0x210a91(0x30d)]['MUTATION'],'params':{'unitId':_0x2d9ed3,'actions':_0x3ab9c1[_0x210a91(0x2b6)],'textRanges':null}};_0x1e70b0[_0x210a91(0x2e7)](_0x1c9b73);});if(_0x1e70b0[_0x45e1b2(0x275)](_0x3d75f2),_0x1e70b0 instanceof u[_0x45e1b2(0x30c)]){const _0x22440c={'onTransformIME':_0x3f7d59=>this[_0x45e1b2(0x2e8)]['transformIMECache'](_0x3f7d59),'onTransformState':_0x59c305=>this[_0x45e1b2(0x27c)]['transformStateCache'](_0x59c305),'onTransformSelections':_0x30c7fc=>this[_0x45e1b2(0x1fa)]['transformSelections'](_0x30c7fc),'onSyncEditingCollabCursor':_0x42c5b0=>this[_0x45e1b2(0x191)][_0x45e1b2(0x260)](_0x42c5b0),'onTransformRemoteChangesetByIMECache':_0xdfdb85=>this[_0x45e1b2(0x2e8)][_0x45e1b2(0x178)](_0xdfdb85),'onTransformRemoteChangesetByStateCache':_0x554ad0=>this[_0x45e1b2(0x27c)][_0x45e1b2(0x178)](_0x554ad0)};_0x1e70b0['addHandlerCallback'](_0x22440c);}}));}};ie=zt([N(0x0,a[_0x57a880(0x200)](T[_0x57a880(0x2ef)])),N(0x1,a['Inject'](u[_0x57a880(0x1ed)])),N(0x2,a[_0x57a880(0x200)](ee)),N(0x3,a[_0x57a880(0x200)](te)),N(0x4,a[_0x57a880(0x200)](se)),N(0x5,a[_0x57a880(0x200)](be)),N(0x6,O[_0x57a880(0x1bb)]),N(0x7,a[_0x57a880(0x200)](a[_0x57a880(0x14b)]))],ie);var G=(_0x5b7d2d=>(_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1a2)]=0x0]=_0x57a880(0x1a2),_0x5b7d2d[_0x5b7d2d['OK']=0x1]='OK',_0x5b7d2d[_0x5b7d2d['INTERNAL_ERROR']=0x2]=_0x57a880(0x189),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x24c)]=0x3]=_0x57a880(0x24c),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x33b)]=0x4]='NOT_FOUND',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x145)]=0x5]=_0x57a880(0x145),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x20d)]=0x6]=_0x57a880(0x20d),_0x5b7d2d[_0x5b7d2d['INVALID_ARGUMENT']=0x7]=_0x57a880(0x304),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xd7)]=0x8]=_0x57a880(0xd7),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2ca)]=0x9]=_0x57a880(0x2ca),_0x5b7d2d[_0x5b7d2d['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x5b7d2d[_0x5b7d2d['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x57a880(0xf5),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1cd)]=0xc]=_0x57a880(0x1cd),_0x5b7d2d[_0x5b7d2d['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x57a880(0x1e1),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1ec)]=0xe]=_0x57a880(0x1ec),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1a8)]=0xf]=_0x57a880(0x1a8),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1af)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x5b7d2d[_0x5b7d2d['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5b7d2d[_0x5b7d2d['ERROR_AGAIN']=0x65]=_0x57a880(0x134),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x212)]=0xc9]=_0x57a880(0x212),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x126)]=0xca]=_0x57a880(0x126),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x283)]=0x1389]=_0x57a880(0x283),_0x5b7d2d[_0x5b7d2d['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x57a880(0xf2),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xf4)]=0x1772]=_0x57a880(0xf4),_0x5b7d2d[_0x5b7d2d['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x57a880(0x95),_0x5b7d2d[_0x5b7d2d['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1cf)]=0x1b5a]=_0x57a880(0x1cf),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2aa)]=0x1b5b]=_0x57a880(0x2aa),_0x5b7d2d[_0x5b7d2d['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1ee)]=0x1b5d]='APPLY_DUPLICATED',_0x5b7d2d[_0x5b7d2d[_0x57a880(0xca)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5b7d2d[_0x5b7d2d[_0x57a880(0xcb)]=0x2329]=_0x57a880(0xcb),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x279)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2c6)]=0x232b]=_0x57a880(0x2c6),_0x5b7d2d[_0x5b7d2d['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x57a880(0x344),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2ac)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1e6)]=0x2711]=_0x57a880(0x1e6),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xb3)]=0x2712]=_0x57a880(0xb3),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x29d)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x22e)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5b7d2d[_0x5b7d2d['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x57a880(0x309),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x354)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5b7d2d[_0x5b7d2d['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x57a880(0x142),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x320)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2e2)]=0x271e]=_0x57a880(0x2e2),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x132)]=0x271f]=_0x57a880(0x132),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xa8)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x5b7d2d[_0x5b7d2d['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x57a880(0x27a),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x258)]=0x2ee1]=_0x57a880(0x258),_0x5b7d2d[_0x5b7d2d['INVALID_INVITE_CODE']=0x2ee2]=_0x57a880(0x10b),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x184)]=0x2ee3]=_0x57a880(0x184),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x20f)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5b7d2d[_0x5b7d2d['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x313)]=0x32c9]=_0x57a880(0x313),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xd8)]=0x32ca]=_0x57a880(0xd8),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x12e)]=0x32cb]=_0x57a880(0x12e),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1eb)]=0x36b1]=_0x57a880(0x1eb),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x298)]=0x36b2]=_0x57a880(0x298),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1c3)]=0x36b3]=_0x57a880(0x1c3),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x104)]=0x36b4]=_0x57a880(0x104),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2bf)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x5b7d2d[_0x5b7d2d['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0x57a880(0x1b3),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x24f)]=0x36b7]=_0x57a880(0x24f),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x111)]=0x36b8]=_0x57a880(0x111),_0x5b7d2d[_0x5b7d2d['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x57a880(0xf0),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x217)]=0x3716]=_0x57a880(0x217),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x227)]=0x3717]=_0x57a880(0x227),_0x5b7d2d[_0x5b7d2d['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1b8)]=0x3a99]=_0x57a880(0x1b8),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xec)]=0x3a9a]=_0x57a880(0xec),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x311)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x5b7d2d[_0x5b7d2d['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x57a880(0x11c),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x32c)]=0x3a9d]=_0x57a880(0x32c),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x331)]=0x3a9e]=_0x57a880(0x331),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1b2)]=0x3a9f]=_0x57a880(0x1b2),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x199)]=0x3e81]=_0x57a880(0x199),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x33d)]=-0x1]=_0x57a880(0x33d),_0x5b7d2d))(G||{});function Jt(_0x59df53){const _0x5f27f1=_0x57a880;var _0x24cea7,_0x2477e7;const _0x445a26=(_0x24cea7=_0x59df53[_0x5f27f1(0x328)])==null?void 0x0:_0x24cea7[_0x5f27f1(0x351)],_0x542a59=((_0x2477e7=_0x59df53[_0x5f27f1(0x328)])==null?void 0x0:_0x2477e7[_0x5f27f1(0x350)])||0x0;return _0x445a26===B[_0x5f27f1(0x130)][_0x5f27f1(0x29a)]&&_0x542a59>0x0;}function Zt(_0xdb965){const _0x2e9803=_0x57a880;return _0xdb965[_0x2e9803(0xbf)]===B['FormulaExecutedStateType'][_0x2e9803(0xf8)];}var Qt=Object[_0x57a880(0xdf)],es=(_0x3c2cef,_0x5b2777,_0x5e7a8b,_0x566334)=>{for(var _0x2d72e1=_0x566334>0x1?void 0x0:_0x566334?Qt(_0x5b2777,_0x5e7a8b):_0x5b2777,_0x5bd1e1=_0x3c2cef['length']-0x1,_0x4e0049;_0x5bd1e1>=0x0;_0x5bd1e1--)(_0x4e0049=_0x3c2cef[_0x5bd1e1])&&(_0x2d72e1=_0x4e0049(_0x2d72e1)||_0x2d72e1);return _0x2d72e1;},L=(_0x26f97e,_0x17507d)=>(_0x445f9a,_0x165eed)=>_0x17507d(_0x445f9a,_0x165eed,_0x26f97e);const ts=_0x57a880(0x2bc),ss=_0x57a880(0x92),is=_0x57a880(0x124);let ne=class extends a[_0x57a880(0x23f)]{constructor(_0x1ff3a0,_0x51dea0,_0x2dda8d,_0x509af4,_0xf2514,_0x31c349,_0x71d6bb){const _0x52e8c3=_0x57a880;super(),_(this,_0x52e8c3(0x1dc),null),_(this,_0x52e8c3(0x2c1),0x0),_(this,'_currentUsage',0x0),_(this,'_taskIds',[]),_(this,_0x52e8c3(0x280),0x0),(this[_0x52e8c3(0x255)]=_0x1ff3a0,this[_0x52e8c3(0x1d5)]=_0x51dea0,this[_0x52e8c3(0xba)]=_0x2dda8d,this[_0x52e8c3(0x28f)]=_0x509af4,this[_0x52e8c3(0x340)]=_0xf2514,this[_0x52e8c3(0xc7)]=_0x31c349,this[_0x52e8c3(0x295)]=_0x71d6bb,this[_0x52e8c3(0x330)]());}[_0x57a880(0x330)](){const _0x327873=_0x57a880;this['disposeWithMe'](this['_commandService'][_0x327873(0x27d)]((_0x499b87,_0x3ad08e)=>{const _0x482789=_0x327873;var _0x27cc23;if(_0x499b87['id']!==B[_0x482789(0x259)]['id'])return;const _0x3ae14c=_0x499b87[_0x482789(0x1c8)];if(!this[_0x482789(0x2a0)]((_0x27cc23=_0x3ae14c[_0x482789(0x240)])!=null?_0x27cc23:[]))return;if(!this[_0x482789(0xcf)]())throw this['_checkAndWaitForCalculationPermission'](_0x499b87,_0x3ad08e),this['_showGuardMessage'](),new a[(_0x482789(0x1d6))]();})),this[_0x327873(0x275)](this[_0x327873(0x1d5)][_0x327873(0x267)]((_0x1f7220,_0xdde8c7)=>{const _0x14236e=_0x327873;if(_0x1f7220['id']!==B[_0x14236e(0x1fd)]['id'])return;const _0x364867=_0x1f7220[_0x14236e(0x1c8)];if(Jt(_0x364867)){const _0x13c64d=a[_0x14236e(0x289)]();this[_0x14236e(0xee)]['push'](_0x13c64d),this[_0x14236e(0x2a7)](_0x13c64d);}else{if(Zt(_0x364867)&&this[_0x14236e(0xee)][_0x14236e(0x324)]>0x0){const _0x47ddfc=this['_taskIds']['shift']();this[_0x14236e(0xf9)](_0x47ddfc);}}}));}[_0x57a880(0x180)](){const _0x332db2=_0x57a880;super[_0x332db2(0x180)](),this['_clearPolling'](),this[_0x332db2(0xee)]=[],this[_0x332db2(0x19a)]=0x0,this[_0x332db2(0x2c1)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x57a880(0x339)](_0x45de0e,_0x2aefcd){const _0x115d9e=_0x57a880;for(let _0x326761=0x0;_0x326761<0x1e;_0x326761++)try{if(await this[_0x115d9e(0x20b)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x45de0e,_0x2aefcd),this[_0x115d9e(0x255)][_0x115d9e(0x2b9)]({'content':this[_0x115d9e(0x295)]['t'](_0x115d9e(0x1d7)),'type':p[_0x115d9e(0x310)][_0x115d9e(0x1e3)]});return;}await new Promise(_0x278580=>{const _0xd2759d=_0x115d9e;this[_0xd2759d(0x1dc)]=window[_0xd2759d(0x308)](_0x278580,0x3e8);});}catch(_0xc49b5){this[_0x115d9e(0xc7)]['error'](_0xc49b5);}this[_0x115d9e(0x255)]['show']({'content':this['_localeService']['t'](_0x115d9e(0x19f)),'type':p[_0x115d9e(0x310)]['Error']});}[_0x57a880(0x34f)](_0x2708e7,_0x482d88){const _0x675ecc=_0x57a880;try{this[_0x675ecc(0x1d5)][_0x675ecc(0x166)](_0x2708e7['id'],_0x2708e7['params'],_0x482d88);}catch(_0x8dc9d7){this[_0x675ecc(0xc7)][_0x675ecc(0x337)](_0x8dc9d7);}}[_0x57a880(0x2f0)](_0x136e4b,_0x10259e){const _0x107f13=_0x57a880;_0x10259e<this['_lastResponseTimestamp']||(this[_0x107f13(0x280)]=_0x10259e,this['_maxFormulaLimit']=Number[_0x107f13(0x12a)](_0x136e4b['maxFormulaLimit']),this['_currentUsage']=Number[_0x107f13(0x12a)](_0x136e4b[_0x107f13(0x10d)]));}async[_0x57a880(0x2a7)](_0x3f0b5b){const _0xef8a5f=_0x57a880;var _0x146ca3,_0x5c71b9;const _0x51956f=Date[_0xef8a5f(0xfa)]();try{const _0x3807bf=((_0x146ca3=this[_0xef8a5f(0xba)][_0xef8a5f(0x13e)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x146ca3[_0xef8a5f(0xeb)])||ss,_0x351107=(await this[_0xef8a5f(0x28f)][_0xef8a5f(0x14a)](_0x3807bf,{'body':JSON['stringify']({'taskId':_0x3f0b5b})}))[_0xef8a5f(0x272)];if(((_0x5c71b9=_0x351107[_0xef8a5f(0x337)])==null?void 0x0:_0x5c71b9[_0xef8a5f(0x2db)])!==G['OK'])return;this[_0xef8a5f(0x2f0)](_0x351107['limitInfo'],_0x51956f);}catch(_0x28735e){this[_0xef8a5f(0xc7)]['error'](_0x28735e);}}async[_0x57a880(0x20b)](_0x192d78){const _0x3161e2=_0x57a880;var _0x39838d,_0x53c125;const _0x4441a6=Date[_0x3161e2(0xfa)]();try{const _0x417543=((_0x39838d=this[_0x3161e2(0xba)]['getConfig'](u[_0x3161e2(0x268)]))==null?void 0x0:_0x39838d[_0x3161e2(0x9d)])||ts,_0x16f004=_0x192d78?_0x417543+'?taskId='+encodeURIComponent(_0x192d78):_0x417543,_0x3e6502=(await this[_0x3161e2(0x28f)]['get'](_0x16f004))[_0x3161e2(0x272)];if(((_0x53c125=_0x3e6502[_0x3161e2(0x337)])==null?void 0x0:_0x53c125[_0x3161e2(0x2db)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x3e6502[_0x3161e2(0x1d8)],_0x4441a6);}catch(_0x2c08c4){this['_logService']['error'](_0x2c08c4);}}async['_releaseCalculationLimit'](_0x32cc00){const _0x320ea2=_0x57a880;var _0x22f5a4,_0x54a609;const _0x32aa07=Date['now']();try{const _0x2e5bfb=((_0x22f5a4=this[_0x320ea2(0xba)]['getConfig'](u[_0x320ea2(0x268)]))==null?void 0x0:_0x22f5a4[_0x320ea2(0x148)])||is,_0x29b201=(await this[_0x320ea2(0x28f)][_0x320ea2(0x14a)](_0x2e5bfb,{'body':JSON[_0x320ea2(0x287)]({'taskId':_0x32cc00})}))['body'];if(((_0x54a609=_0x29b201[_0x320ea2(0x337)])==null?void 0x0:_0x54a609[_0x320ea2(0x2db)])!==G['OK'])return;this[_0x320ea2(0x2f0)](_0x29b201[_0x320ea2(0x1d8)],_0x32aa07);}catch(_0x1f737b){this[_0x320ea2(0xc7)][_0x320ea2(0x337)](_0x1f737b);}}[_0x57a880(0xcf)](){const _0x3198cd=_0x57a880;return this[_0x3198cd(0x2c1)]===0x0?!0x0:this[_0x3198cd(0x2c1)]-this[_0x3198cd(0x19a)]>0x0;}[_0x57a880(0xd2)](){const _0x40c241=_0x57a880;this[_0x40c241(0x1dc)]&&(clearTimeout(this[_0x40c241(0x1dc)]),this[_0x40c241(0x1dc)]=null);}[_0x57a880(0x164)](){const _0x53c941=_0x57a880;this[_0x53c941(0x255)][_0x53c941(0x2b9)]({'content':this['_localeService']['t'](_0x53c941(0x103)),'type':p[_0x53c941(0x310)][_0x53c941(0x9c)]});}['_hasFormulaInDirtyRanges'](_0x54f561){const _0x5a3e28=_0x57a880;for(const _0x14cdd3 of _0x54f561){const {unitId:_0x51e50e,sheetId:_0x168373,range:_0x4e4c5b}=_0x14cdd3,_0x1e7392=this[_0x5a3e28(0x340)][_0x5a3e28(0x1be)](_0x51e50e);if(!_0x1e7392)continue;const _0x62438d=_0x1e7392['getSheetBySheetId'](_0x168373);if(!_0x62438d)continue;const _0x51ebda=_0x62438d[_0x5a3e28(0x146)]();for(let _0x48a0ce=_0x4e4c5b['startRow'];_0x48a0ce<=_0x4e4c5b['endRow'];_0x48a0ce++)for(let _0xac444a=_0x4e4c5b[_0x5a3e28(0xe1)];_0xac444a<=_0x4e4c5b[_0x5a3e28(0x2da)];_0xac444a++){const _0x4f8687=_0x51ebda['getValue'](_0x48a0ce,_0xac444a);if(_0x4f8687&&(a[_0x5a3e28(0x26f)](_0x4f8687['f'])||a[_0x5a3e28(0x175)](_0x4f8687['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x57a880(0x1bb)])),L(0x1,a[_0x57a880(0x2ff)]),L(0x2,a[_0x57a880(0x141)]),L(0x3,a[_0x57a880(0x200)](x[_0x57a880(0xe2)])),L(0x4,a[_0x57a880(0x138)]),L(0x5,a['ILogService']),L(0x6,a['Inject'](a[_0x57a880(0x14b)]))],ne);var ns=Object[_0x57a880(0xdf)],rs=(_0x3376dd,_0xf23931,_0x53b502,_0x475fbf)=>{for(var _0x33f864=_0x475fbf>0x1?void 0x0:_0x475fbf?ns(_0xf23931,_0x53b502):_0xf23931,_0x32e5d2=_0x3376dd['length']-0x1,_0x420ea3;_0x32e5d2>=0x0;_0x32e5d2--)(_0x420ea3=_0x3376dd[_0x32e5d2])&&(_0x33f864=_0x420ea3(_0x33f864)||_0x33f864);return _0x33f864;},Se=(_0x4c786b,_0x3352dd)=>(_0x3be87e,_0x8c9ecd)=>_0x3352dd(_0x3be87e,_0x8c9ecd,_0x4c786b);function _0x3abf(){const _0x1196b0=['_saveTaskMap','CollaborationEvent','_drawRectRange','UNIVER_SHEET','addObject','onCommandExecuted','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','mergeOverrideWithDependencies','colno','TEXT_RANGE_LAYER_INDEX','pluginName','undoState','_startSheetCollabCursor','isFormulaString','includes','flatMap','body','_init','_selfUnitIDs','disposeWithMe','takeUntil','startsWith','NodePositionConvertToRectRange','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','PY_RUNTIME_SCRIPT_ERROR','_handleLeaveEvent','_docTransformStateCacheService','beforeCommandExecuted','whenReady','ticket','_lastResponseTimestamp','stack','_sheetSkeletonManagerService','CHANGESET_REVISION_CONFILICT','getSheetObject','isActive','_notificationService','stringify','xlink:href','generateRandomId','assignAColorForMemberID','min','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','removeEventListener','invokeId','_httpService','getLocalCacheKey','AWAITING_WITH_PENDING','MoveRangeCommandId','_transformHistoryAndStateStack','handleIRemoveCol','_localeService','saveTaskMap','textRanges','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','DEFAULT_WS_SESSION_TICKET_URL','START_CALCULATION','_getScale','4608087jWjAqy','YUUMI_RATE_OVER_LIMIT','collaboration.offline-data-not-saved','translate(.97)','_hasFormulaInDirtyRanges','engine','_urlService','_docSkeletonManagerService','rgba(255,\x20255,\x20255,\x200.01)','getRangePointData','_imageIoService','_startCalculationLimit','VIEW_MAIN','subscribeEvent','APPLY_REVISION_CONFILICT','assign','LICENSE_DISTRO_REJECTED','getRenderById','Unknown\x20user','displayName','loadUnit','RefRangeService','269870qGHqXr','replaceState','_name','_initDependencies','actions','\x20at\x20','_collaborationController','show','registerBeforeClose','saveImage','/universer-api/license/formula/limit/status','_onCursorUpdate','Vector2','ENTITLE_INVALID_COUPON_CODE','isArray','_maxFormulaLimit','url(#on-line-icon_clip0_910_349)','runOnServer','search','collaboration.single-unit.warning','LICENSE_IMPORT_SIZE_EXCEEDED','_document','OTHER_CLIENTS_EDITING','univerjs-icon\x20univerjs-icon-','COMPLETION_FINISHED','getUndoRedoMutationParamsCache','path','collabStatus.offline','IURLService','collabStatus.conflict','_toggleOffline','switchMap','get','ISocketService','RemoteUniscriptService','getRelativeToViewportCoord','getMergeData','currentColor','replaceDocRanges','white','endColumn','code','InsertRangeMoveRightCommandId','addEventListener','getUnitId','_session','_initUnhandledRejectionListener','evenodd','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_docClipboardService','handleIRemoveRow','collabCursorState$','_scene','onLocalMutation','_docTransformIMECacheService','_handleHover','7172851pusSXa','reconnect','isTransformMutationsWithChangesetSuccess','colorChannel1','DisposableCollection','DocStateChangeManagerService','_setFormulaLimitStatus','_beforeCloseService','defs','Error','_updateSubUnitFromURLParams','onMouseMove','contains','_syncEditingCollabCursorService','_anchorDot','use','_send','_clearOtherTimers','registerRenderModule','pushState','location','ICommandService','BehaviorSubject','getViewport','univer-mr-2\x20univer-flex\x20univer-text-xl','unitId','INVALID_ARGUMENT','_collabCursorController','OnLineIcon','pipe','setTimeout','YUUMI_NO_CUBOID_FOR_QUESTION','focused$','hovered','DocCollaborationEntity','CommandType','socket$','http://www.w3.org/2000/svg','MessageType','REDEMPTION_CODE_FULLY_REDEEMED','getOffsetConfig','WECHAT_HAS_BEEN_BOUND','_heartbeatTimer','message','handleInsertCol','_transformService','JOIN_ROOM_FAILED','_refRangeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','IRenderManagerService','FromArray','_transformPreviousActiveRange','font','getActiveSheet','YUUMI_ALL_TABLES_IS_INVALID','origin','max','Workbook','length','handleInsertRow','_config','SUBMIT_CHANGESET_TIMEOUT','stageInfo','[LogService\x20Error]:\x20','unitID','red.300','REDEMPTION_USER_NOT_ELIGIBLE','blue.400','_collabCursorState$','handleInsertRangeMoveRight','_initCommandInterceptor','REDEMPTION_USER_REDEEM_TIMES_EXCEED','fillRule','loadOfflineData','Injector','getMember','getCollabEntity$','error','_roomMembers$','_checkAndWaitForCalculationPermission','findNodePositionByCharIndex','NOT_FOUND','_shapes','UNRECOGNIZED','combineLatest','transformMutation','_univerInstanceService','lineno','setStateCache','InsertRowCommandId','LICENSE_EXPORT_SIZE_EXCEEDED','HEADER_MENU','debounce','/run/','top','ILogService','setItem','_initResize','url(#$1','Rectangle','UPDATE_CURSOR','_applyCommand','totalFormulasToCalculate','stage','with','event$','YUUMI_ASYNCIO_CANCELLED','getTypeOfUnitDisposed$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','session.collaboration-timeout','setShapeProps','[Unhandled\x20Rejection]:\x20','_initUserListener','add','getFocusedUnit','CollaborationUIEventId','_onRefRangeChange','clearInterval','CONFLICT','_id','from','lineTo','column','_updateURLWithCurrentState','getActiveRange','getUnhiddenWorksheets','_refreshCollabCursors','current','registerRefRange','registerDependencies','saveOfflineData','ILocalCacheService','string','clipPath','NO_OTHER_CLIENTS_EDITING','[CollaborationDataLoaderController]','OFFLINE','DataLoaderService','getStateCache','/universer-api/license/formula/limit/start','registerComponent','disableLocalCache','ENSURE_SNAPSHOT_EXECUTION','_scheduleHeartbeat','off-line-icon_clip0_910_343','onTransformChange$','ITransformService','fill','SetWorksheetActivateCommand','Loading','getFormulaLimitStatusUrl','runId','_createSocketURL','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_registerRenderDependencies','toDisposable','_unitStatus','RevisionService','_eventUnsubscribe','_color','RxDisposable','YUUMI_CONNECTOR_URL_NOT_FOUND','DesktopCollaborationStatusDisplayController','SheetSkeletonManagerService','getSheetId','USERS_LEAVE','filename','8UKXAsc','_online','BrowserCollaborationSocketService','MemberService','_drawAnchor','YUUMI_URL_COL_OUT_OF_RANGE','_initStatusComponent','NOT_COLLAB','unhandledrejection','getCoordByCell','createIdentifier','M0\x200H16V16H0z','_configService','ThemeService','RemoveColCommandId','resize','requireSession','functionsExecutedState','3266188nBreDh','_themeService','UniverCollaborationClientUIPlugin','_startDocCollabCursor','children','toString','m1Prime','_logService','fillStyle','dispose$','CONNECTOR_DATA_TOO_LARGE','LICENSE_MAX_UNITS_EXCEEDED','_injector','session.will-retry','getMemberID','_checkCalculationAvailable','FETCH_MISS','touchDependencies','_clearPolling','reason','_docStateChangeManagerService','defIds','fillText','TOO_MANY_REQUESTS','MOBILE_HAS_BEEN_BOUND','type','makeDirty','docStateChange$','_hovered','getCellPositionByOffset','_memberService','getOwnPropertyDescriptor','_hover','startColumn','HTTPService','eventID','getUnitStatus$','init','toRgbString','size','editingUnit','_entityInit$','transformStateCache','startFormulaLimitUrl','REDEMPTION_CODE_INACTIVE','replace','_taskIds','forwardRef','ENTITLE_CHAT_LIMIT_EXCEED','_updateCollabCursors','SNAPSHOT_INVALID_SNAPSHOT','getCollabCursors$','SNAPSHOT_HAS_BEEN_REMOVED','MOBILE_VERIFY_CODE_MISMATCH','Module','skeleton','SUCCESS','_releaseCalculationLimit','now','Tools','_ensureSubject','updateOfflineData','executionId','IBeforeCloseService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','SetSelectionsOperation','SheetCollabCursorShape','formula.calculation.waiting','PAYMENT_CHANNEL_NOT_SUPPORT','_renderManagerService','sessionTicket','endRow','DocSelectionManagerService','_initEvent','_cursorShapes','INVALID_INVITE_CODE','_removeCollabCursors','currentUsage','doc.mutation.rich-text-editing','EffectRefRangId','_colorAssignService','ENTITLE_USE_COUPON_NOT_1ST_TRADE','result','Tooltip','createInstance','setParam','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_assignedColors','Failed','ranges','_cachedData','sessionStatus$','REDEMPTION_CODE_NOT_STARTED','all','getParam','_disabled','entries','setInterval','unsubscribe','_collaborationUIEventService','/universer-api/license/formula/limit/done','_removeClearOtherTimer','USER_IS_ANONYMOUS','map','_getSaveTimeout','on-line-icon_clip0_910_349','parseInt','clearTimeout','_render','closePath','EMAIL_HAS_BEEN_BOUND','BuiltInUIPart','FormulaExecuteStageType','redoState','YUUMI_AI_RUN_FAILED','clsx','ERROR_AGAIN','_context','Rect','CLOSE_ROOM','IUniverInstanceService','_memberID','COLORS','mask','_cursor','trim','getConfig','deserializeRangeWithSheet','merge','IConfigService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','UniverIcon','exhaustSavingTask','UNAUTHENTICATED','getCellMatrix','_range','releaseFormulaLimitUrl','deepClone','post','LocaleService','transformSelections','getAncestorScale','subUnitId','memberID','asObservable','...','_initWindowErrorListener','roomMembers$','color','href','_textBubble','triggerDblclick','Optional','NodePositionConvertToCursor','defineProperty','set','_dataLoaderService','currentSkeleton$','bottom','override','_docSkeleton','_labelPosition','collabStatus.syncing','_collaborationSessionService','_showGuardMessage','next','executeCommand','storage','Warning','isEditing','TEXT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','cursorInfo','DeleteRangeMoveUpCommandId','ONLINE','text','_hideTimer','_initStatusListener','unshift','purple.300','WebBrowserSingleActiveUnitService','isFormulaId','transformMutationsWithChangeset','handleDeleteRangeMoveLeft','transformRemoteChangeset','roomMembers','distinctUntilChanged','_scheduleClearOtherTimer','getSkeleton','_onCursorDelete','handleInsertRangeMoveDown','catch','dispose','disposeUnit','DOC_RANGE_TYPE','useDependency','INVITE_CODE_REQUIRED','source','labelPosition','_anchor','_cursors','INTERNAL_ERROR','_localStorageService','push','CollaborationStatus','ColorKit','AWAITING','width','debounceTime','_docSyncEditingCollabCursorService','DependentOn','attrs','none','collaboration.closeRoom','fromEvent','DeleteRangeMoveLeftCommandId','LOCAL_CACHE_INTERVAL_KEY','DATA_SOURCE_TOO_LARGE','_currentUsage','idSuffix','backgroundColor','_handleJoinEvent','symbol','formula.calculation.unable','black','popstate','UNDEFINED','_setupSubUnitSync','transformByState','div','0\x200\x2017\x2016','_localCacheService','AUTHORIZE_CODE_ILLEGAL','_getAnchorBounding','_registerDependencies','handleMoveRange','activeSheet$','round','newValue','LOGIN_TOKEN_PROCESSING_FAILED','runRefRangeMutations','onPointerLeave$','REDEMPTION_CODE_HAS_BEEN_CREATED','ENTITLE_COUPON_EXPIRED','CollaborationSessionService','sheetID','fromEventSubject','Plugin','REDEMPTION_INVALID_CODE','hide','InsertColCommandId','IMessageService','_uiPartsService','green.600','getUnit','shareReplay','_revisionService','createElement','currentTheme$','ENTITLE_DUP_SUBSCRIPTION','addObjects','_scheduleSaving','getCurrent','sheetId','params','_backgroundColor','subunit','bind','_draw','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','selection','APPLY_NON_SEQUENTIAL_REVISION','data','_cursorInfo$','RemoveRowCommandId','debug','key','_commandService','CanceledError','formula.calculation.started','limitInfo','_getMergeRange','CollaborationSocketService','removeParam','_pollingInterval','filter','SYNCED','_toggleOnline','subscribe','EMAIL_VERIFY_CODE_MISMATCH','delete','Success','IImageIoService','useRef','YUUMI_UNABLE_LOAD_URL','UniverInstanceType','m2Prime','_drawTextRange','serializeRangeWithSheet','ENTITLE_CAN_NOT_BUY_LOWER_OTP','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CollaborationController','APPLY_DUPLICATED','wsSessionTicketUrl','drawWith','_getSessionTicket','imageSourceType','_uploadLog','_colorIndex','getColor','off-line-icon','CollaborationDataLoaderController','_updateLocalCursor','SOCKET_FAILED_RETRY','_docTransformSelectionsService','getDocRanges','getVpScrollXYInfoByPosToVp','SetFormulaCalculationNotificationMutation','_handleHeartbeatEvent','DocSkeletonManagerService','Inject','transform','svg','1em','RegularPolygon','isTransformMutationFailure','then','urlChange$','_status$','SheetsSelectionsService','_unitOnClients','_getFormulaLimitStatus','UNIVER_DOC','ALREADY_EXISTS','arc','USER_NOT_INVITED_CODE','jsx','UnitStatus','USER_NOT_FOUND','height','RECT','join','0\x200\x2016\x2016','ENTITLE_REPORT_LIMIT_EXCEED','IRemoteInstanceService','jiqing.500','entityInit$','handleDeleteRangeMoveUp','measureText','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','searchParams','_handleEvent','complete','_doCreateSocket','has','_initCommandExecutedListener','/universer-api/frontend/logs','getColorFromTheme','values','ENTITLE_INSUFFICIENT_QUOTA','throttleTime','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','session.connection-failed','_entities','4170656moUCOA','5809310SnWrll','YUUMI_SUBSCRIPTION_NOT_FOUND','getSheetBySheetId','SetDocZoomRatioOperation','forEach','_transformUndoRedoStack','row','SessionStatus','history','save','10049904voyjmd','cursorInfo$','split','moveTo','find','setUndoRedoMutationParamsCache','_saveCache','random','Disposable','dirtyRanges','selections','Subject','tag','CollaborationUIEventService','mutations','ISnapshotServerService','collabStatus.synced','url(#off-line-icon_clip0_910_343)','unit','_collabSessionService','setActiveRange','PERMISSION_DENIED','range','enableLocalCache','ENTITLE_COUPON_USED_UP','setAlpha','collab-rect-range-','getValue','status$','beginPath','_messageService','DocIMEInputManagerService','enableFrontendLog','INVITE_CODE_HAS_BEEN_UES','SetFormulaCalculationStartMutation','restore','_getSheetObject','_monkeyPatchLogService','getCurrentUnitForType','transformIMECache','name','syncEditingCollabCursor','_instanceService'];_0x3abf=function(){return _0x1196b0;};return _0x3abf();}let Te=class extends a[_0x57a880(0x23f)]{constructor(_0x3c7fca,_0x553f32,_0x2e4255){const _0xd623f5=_0x57a880;super(),_(this,'_cachedData',new Map()),_(this,_0xd623f5(0x262),new Map()),_(this,_0xd623f5(0x11f),!0x1),(this['_configService']=_0x3c7fca,this[_0xd623f5(0x18a)]=_0x553f32,this[_0xd623f5(0x1c0)]=_0x2e4255);}[_0x57a880(0x94)](){this['_disabled']=!0x0;}[_0x57a880(0x24e)](){const _0x4c36fc=_0x57a880;this[_0x4c36fc(0x11f)]=!0x1;}get[_0x57a880(0x296)](){const _0x47d8a1=_0x57a880;return this[_0x47d8a1(0x262)];}[_0x57a880(0x180)](){const _0x3aded5=_0x57a880;this['exhaustSavingTask']()[_0x3aded5(0x206)](()=>super[_0x3aded5(0x180)]());}async[_0x57a880(0x333)](_0x522002){const _0x5ea53d=_0x57a880;return this[_0x5ea53d(0x11f)]?null:this['_localStorageService']['getItem'](u[_0x5ea53d(0x290)](_0x522002));}async[_0x57a880(0x89)](_0x33a271,_0x27c551){const _0x325a17=_0x57a880;return!!this[_0x325a17(0x18a)][_0x325a17(0x34a)](_0x33a271,_0x27c551);}[_0x57a880(0xfd)](_0x324868,_0x575bc6,_0x16d65c,_0x223a63){const _0xc4a9c=_0x57a880,_0x191d76=this['_revisionService']['getCurrentRevOfUnit'](_0x324868);this['_cachedData'][_0xc4a9c(0x15b)](_0x324868,{'unitID':_0x324868,'type':_0x575bc6,'awaitingChangeset':_0x16d65c,'mutations':_0x223a63,'rev':_0x191d76}),this['_saveTaskMap'][_0xc4a9c(0x222)](_0x324868)||this[_0xc4a9c(0x1c5)](_0x324868);}['_scheduleSaving'](_0x3aafd8){const _0x2668be=_0x57a880,_0x43ad29=this[_0x2668be(0x128)]();_0x43ad29===0x0?this[_0x2668be(0x23d)](_0x3aafd8):this[_0x2668be(0x262)]['set'](_0x3aafd8,setTimeout(()=>this[_0x2668be(0x23d)](_0x3aafd8),_0x43ad29));}['_getSaveTimeout'](){const _0x5b43f1=_0x57a880;var _0x31435c;return(_0x31435c=this['_configService'][_0x5b43f1(0x13e)](u[_0x5b43f1(0x198)]))!=null?_0x31435c:u['LOCAL_CACHE_INTERVAL'];}[_0x57a880(0x23d)](_0x414864){const _0x595e6e=_0x57a880,_0x56f8e6=this[_0x595e6e(0x262)][_0x595e6e(0x2d2)](_0x414864);return _0x56f8e6!==void 0x0&&window['clearTimeout'](_0x56f8e6),this[_0x595e6e(0x18a)][_0x595e6e(0x34a)](u[_0x595e6e(0x290)](_0x414864),this[_0x595e6e(0x11a)][_0x595e6e(0x2d2)](_0x414864))[_0x595e6e(0x206)](()=>this[_0x595e6e(0x262)][_0x595e6e(0x1e2)](_0x414864));}async[_0x57a880(0x144)](){const _0x38ba6a=_0x57a880,_0xe2b528=[];this[_0x38ba6a(0x262)]['forEach']((_0x400847,_0x4d4022)=>{const _0x7530f4=_0x38ba6a;window[_0x7530f4(0x12b)](_0x400847),_0xe2b528[_0x7530f4(0x18b)](this[_0x7530f4(0x23d)](_0x4d4022)[_0x7530f4(0x206)](()=>{const _0x41a9c8=_0x7530f4;this[_0x41a9c8(0x262)][_0x41a9c8(0x1e2)](_0x4d4022);}));}),await Promise[_0x38ba6a(0x11d)](_0xe2b528);}};Te=rs([Se(0x0,a[_0x57a880(0x141)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x57a880(0x200)](g[_0x57a880(0xa4)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x9de20c=_0x57a880;super(),_(this,_0x9de20c(0x207)),this[_0x9de20c(0x207)]=I['fromEvent'](window,_0x9de20c(0x1a1))[_0x9de20c(0x307)](I[_0x9de20c(0x276)](this[_0x9de20c(0xc9)]),I[_0x9de20c(0x1bf)](0x1),I['mapTo'](void 0x0));}[_0x57a880(0x115)](_0x4579b0,_0x1931f3,_0x146119=!0x1){const _0x150c4a=_0x57a880,_0x284235=new URL(window[_0x150c4a(0x2fe)][_0x150c4a(0x155)]);_0x284235[_0x150c4a(0x21e)][_0x150c4a(0x15b)](_0x4579b0,_0x1931f3),_0x146119?window[_0x150c4a(0x235)][_0x150c4a(0x2b3)]('','',_0x284235['toString']()):window[_0x150c4a(0x235)][_0x150c4a(0x2fd)]('','',_0x284235[_0x150c4a(0xc5)]());}[_0x57a880(0x1db)](_0x45810a,_0xce8aec=!0x1){const _0xb7191c=_0x57a880,_0xd2b600=new URL(window[_0xb7191c(0x2fe)][_0xb7191c(0x155)]);_0xd2b600['searchParams']['delete'](_0x45810a),_0xce8aec?window['history'][_0xb7191c(0x2b3)]('','',_0xd2b600[_0xb7191c(0xc5)]()):window[_0xb7191c(0x235)]['pushState']('','',_0xd2b600['toString']());}[_0x57a880(0x11e)](_0x5c50b9){const _0x2685d7=_0x57a880;var _0x476e7a;return(_0x476e7a=new URL(window[_0x2685d7(0x2fe)][_0x2685d7(0x155)])['searchParams']['get'](_0x5c50b9))!=null?_0x476e7a:void 0x0;}}var os=Object[_0x57a880(0x15a)],as=Object[_0x57a880(0xdf)],cs=(_0x3074af,_0x4421d0,_0x2dca87)=>_0x4421d0 in _0x3074af?os(_0x3074af,_0x4421d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dca87}):_0x3074af[_0x4421d0]=_0x2dca87,ls=(_0x1e6329,_0x9fdb2c,_0x505204,_0x4b8051)=>{const _0x12ce0d=_0x57a880;for(var _0x272028=_0x4b8051>0x1?void 0x0:_0x4b8051?as(_0x9fdb2c,_0x505204):_0x9fdb2c,_0x17138b=_0x1e6329[_0x12ce0d(0x324)]-0x1,_0x2e2c4f;_0x17138b>=0x0;_0x17138b--)(_0x2e2c4f=_0x1e6329[_0x17138b])&&(_0x272028=_0x2e2c4f(_0x272028)||_0x272028);return _0x272028;},de=(_0x2dd780,_0x170d3b)=>(_0x111e67,_0x1c72ff)=>_0x170d3b(_0x111e67,_0x1c72ff,_0x2dd780),_s=(_0x113c46,_0x4cd75e,_0x1e4536)=>cs(_0x113c46,_0x4cd75e+'',_0x1e4536);const hs=_0x57a880(0xa0);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x57a880(0x1b7)]{constructor(_0x3db3b9=Me,_0x5266f4,_0x28617d,_0x19df95){const _0x59a2e1=_0x57a880;super(),this[_0x59a2e1(0x326)]=_0x3db3b9,this[_0x59a2e1(0x105)]=_0x5266f4,this[_0x59a2e1(0xcc)]=_0x28617d,this[_0x59a2e1(0xba)]=_0x19df95;const {..._0x15a737}=a[_0x59a2e1(0x140)]({},Me,this[_0x59a2e1(0x326)]);this['_configService']['setConfig'](Yt,_0x15a737);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){const _0x3b71c9=_0x57a880;this[_0x3b71c9(0xa1)]();}[_0x57a880(0x1aa)](){const _0x18b834=_0x57a880;var _0x5df4a1;const _0x2c9b2c=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x18b834(0x2d3)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':Te}],[exports[_0x18b834(0xa9)]],[ie],[Z],[F],[me],[exports[_0x18b834(0x1f7)]]];this[_0x18b834(0x326)][_0x18b834(0x257)]&&_0x2c9b2c[_0x18b834(0x18b)]([Q]),a[_0x18b834(0x88)](this[_0x18b834(0xcc)],a[_0x18b834(0x269)](_0x2c9b2c,(_0x5df4a1=this[_0x18b834(0x326)])==null?void 0x0:_0x5df4a1[_0x18b834(0x15f)]));}['_registerRenderDependencies'](){const _0x424397=_0x57a880;this[_0x424397(0x275)](this['_renderManagerService'][_0x424397(0x2fc)](a[_0x424397(0x1e7)][_0x424397(0x20c)],[Ee])),this[_0x424397(0x275)](this[_0x424397(0x105)][_0x424397(0x2fc)](a[_0x424397(0x1e7)][_0x424397(0x265)],[Ce]));}[_0x57a880(0x2b5)](){const _0x25f449=_0x57a880;a[_0x25f449(0xd1)](this[_0x25f449(0xcc)],[[F],[exports[_0x25f449(0xa9)]],[ie],[Z],[exports[_0x25f449(0x1f7)]],[ne]]),this[_0x25f449(0x326)][_0x25f449(0x257)]&&a['touchDependencies'](this[_0x25f449(0xcc)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x57a880(0x26c),hs),exports[_0x57a880(0xc2)]=ls([a[_0x57a880(0x192)](u['UniverCollaborationClientPlugin']),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x57a880(0x200)](a[_0x57a880(0x334)])),de(0x3,a[_0x57a880(0x141)])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x57a880(0xdf)],Is=(_0x48de15,_0x3e71d6,_0x4d958b,_0xef5c80)=>{for(var _0xd31ea7=_0xef5c80>0x1?void 0x0:_0xef5c80?us(_0x3e71d6,_0x4d958b):_0x3e71d6,_0xba6890=_0x48de15['length']-0x1,_0x15515a;_0xba6890>=0x0;_0xba6890--)(_0x15515a=_0x48de15[_0xba6890])&&(_0xd31ea7=_0x15515a(_0xd31ea7)||_0xd31ea7);return _0xd31ea7;},W=(_0x4189db,_0x530559)=>(_0x37b021,_0x2a5b42)=>_0x530559(_0x37b021,_0x2a5b42,_0x4189db);exports[_0x57a880(0xb0)]=class extends u[_0x57a880(0x1da)]{constructor(_0x5b5d77,_0x1d69fb,_0x51bb7e,_0x5b0b50,_0x599795){super(_0x5b5d77,_0x1d69fb,_0x51bb7e,_0x5b0b50,_0x599795);}async['createSocket'](_0x833623){const _0x2f02f2=_0x57a880,_0x12403c=await this[_0x2f02f2(0x1f1)](),_0x4a2fdb=this[_0x2f02f2(0x9f)](_0x833623,_0x12403c);return this[_0x2f02f2(0x221)](_0x4a2fdb);}[_0x57a880(0x9f)](_0x4cf11b,_0x373663){const _0x3842b2=_0x57a880,_0x3ce4d5=typeof window>'u'?new URL(_0x4cf11b):new URL(_0x4cf11b,window['location'][_0x3842b2(0x321)]);_0x3ce4d5['searchParams'][_0x3842b2(0x15b)](_0x3842b2(0x106),_0x373663);const _0x3eb2a4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3842b2(0x2fe)][_0x3842b2(0x2c4)]);return _0x3eb2a4[_0x3842b2(0x2d2)](_0x3842b2(0x9e))&&_0x3ce4d5[_0x3842b2(0x21e)][_0x3842b2(0x15b)](_0x3842b2(0x9e),_0x3eb2a4[_0x3842b2(0x2d2)](_0x3842b2(0x9e))),_0x3ce4d5[_0x3842b2(0xc5)]();}async['_getSessionTicket'](){const _0x1f8ebb=_0x57a880;var _0x2e28fa,_0x17c2bd,_0x4e4973;const _0x500003=this[_0x1f8ebb(0xba)][_0x1f8ebb(0x13e)](u[_0x1f8ebb(0x268)]),_0x2b9bdf=(_0x2e28fa=_0x500003==null?void 0x0:_0x500003[_0x1f8ebb(0x1ef)])!=null?_0x2e28fa:u[_0x1f8ebb(0x299)];return(_0x4e4973=(_0x17c2bd=(await this[_0x1f8ebb(0x28f)][_0x1f8ebb(0x2d2)](_0x2b9bdf,{'headers':{'Content-Type':'application/json'}}))[_0x1f8ebb(0x272)])==null?void 0x0:_0x17c2bd[_0x1f8ebb(0x27f)])!=null?_0x4e4973:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a[_0x57a880(0x200)](a[_0x57a880(0x334)])),W(0x1,a[_0x57a880(0x200)](x[_0x57a880(0xe2)])),W(0x2,a[_0x57a880(0x141)]),W(0x3,a[_0x57a880(0x349)]),W(0x4,g[_0x57a880(0x246)])],exports[_0x57a880(0xb0)]);var Ss=Object[_0x57a880(0xdf)],ds=(_0x3e2fd,_0x59d8ab,_0x2a0ca6,_0x571de4)=>{const _0x1965ca=_0x57a880;for(var _0x2eb359=_0x571de4>0x1?void 0x0:_0x571de4?Ss(_0x59d8ab,_0x2a0ca6):_0x59d8ab,_0x30a3fb=_0x3e2fd[_0x1965ca(0x324)]-0x1,_0x3b6cb7;_0x30a3fb>=0x0;_0x30a3fb--)(_0x3b6cb7=_0x3e2fd[_0x30a3fb])&&(_0x2eb359=_0x3b6cb7(_0x2eb359)||_0x2eb359);return _0x2eb359;},fe=(_0x1e3f2e,_0x576f84)=>(_0xce0ec8,_0x34bca1)=>_0x576f84(_0xce0ec8,_0x34bca1,_0x1e3f2e);exports[_0x57a880(0x2d4)]=class extends a[_0x57a880(0x23f)]{constructor(_0x4828db,_0x4472d0,_0x7d957e){const _0x25a5d5=_0x57a880;super(),this[_0x25a5d5(0x261)]=_0x4828db,this[_0x25a5d5(0x28f)]=_0x4472d0,this['_configService']=_0x7d957e;}async[_0x57a880(0x2c3)](_0x2115f6,_0x222f3e,_0x33c618,..._0x357cbc){const _0x356c4d=_0x57a880;var _0x39eece,_0x764f70,_0x51808d,_0x3cff2c;const _0x2a0c22=this['_instanceService'][_0x356c4d(0x79)]();if(!_0x2a0c22)throw new Error(_0x356c4d(0x100));const _0x3c8111=((_0x39eece=this[_0x356c4d(0xba)][_0x356c4d(0x13e)](u[_0x356c4d(0x116)]))!=null?_0x39eece:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x2115f6+_0x356c4d(0x347)+_0x222f3e,_0x318416=new URL(window[_0x356c4d(0x2fe)][_0x356c4d(0x155)]),_0x53903d={'scriptId':_0x2115f6,'runId':(_0x764f70=_0x318416[_0x356c4d(0x21e)][_0x356c4d(0x2d2)](_0x356c4d(0x9e)))!=null?_0x764f70:'','function':_0x222f3e,'unitId':_0x2a0c22[_0x356c4d(0x2de)](),'argsOfFunction':JSON[_0x356c4d(0x287)](_0x357cbc),'invokeId':(_0x51808d=_0x33c618[_0x356c4d(0x28e)])!=null?_0x51808d:'','executionId':(_0x3cff2c=_0x33c618[_0x356c4d(0xfe)])!=null?_0x3cff2c:''};try{const _0x5db9b7=await this[_0x356c4d(0x28f)][_0x356c4d(0x14a)](_0x3c8111,{'body':_0x53903d});return _0x5db9b7[_0x356c4d(0x272)][_0x356c4d(0x337)]&&_0x5db9b7[_0x356c4d(0x272)]['error']['code']!==G['OK']?_0x356c4d(0x118):_0x5db9b7[_0x356c4d(0x272)][_0x356c4d(0x112)];}catch{return _0x356c4d(0x118);}}},exports[_0x57a880(0x2d4)]=ds([fe(0x0,a[_0x57a880(0x138)]),fe(0x1,a[_0x57a880(0x200)](x[_0x57a880(0xe2)])),fe(0x2,a[_0x57a880(0x141)])],exports[_0x57a880(0x2d4)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x57a880(0x23f)]{constructor(){const _0x1dc6a1=_0x57a880;super(),_(this,'_id',a[_0x1dc6a1(0x289)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x1dc6a1(0x314),null),_(this,_0x1dc6a1(0x2fb),new Map()),_(this,'_unitStatus',new Map()),this[_0x1dc6a1(0x273)]();}[_0x57a880(0x180)](){const _0x2d2569=_0x57a880;super[_0x2d2569(0x180)](),this[_0x2d2569(0x2fb)]['forEach']((_0x29db41,_0xc0863)=>this[_0x2d2569(0x125)](_0xc0863)),this[_0x2d2569(0x314)]&&window[_0x2d2569(0x7c)](this[_0x2d2569(0x314)]);}[_0x57a880(0xe4)](_0x4db4d8){const _0x440b0e=_0x57a880;return this[_0x440b0e(0xfc)](_0x4db4d8)[_0x440b0e(0x307)](I[_0x440b0e(0x17a)]());}[_0x57a880(0xe8)](_0x268ebc){const _0x4fc5ca=_0x57a880;this['_selfUnitIDs']['size']===0x0&&this[_0x4fc5ca(0x96)](),this['_selfUnitIDs'][_0x4fc5ca(0x78)](_0x268ebc),this[_0x4fc5ca(0x2fa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x268ebc],'isForwarded':!0x1});}[_0x57a880(0x181)](_0x2cea2b){const _0x22842f=_0x57a880;this['_selfUnitIDs'][_0x22842f(0x1e2)](_0x2cea2b),this[_0x22842f(0x274)][_0x22842f(0xe7)]===0x0&&this[_0x22842f(0x314)]&&window[_0x22842f(0x7c)](this[_0x22842f(0x314)]);}[_0x57a880(0x273)](){const _0x522732=_0x57a880;this[_0x522732(0x275)](a[_0x522732(0xa2)](I[_0x522732(0x196)](window,_0x522732(0x167))['subscribe'](_0x137d3a=>{const _0x361b41=_0x522732;if(_0x137d3a[_0x361b41(0x1d4)]!==ye||!_0x137d3a['newValue'])return;const _0x11ae6f=JSON['parse'](_0x137d3a[_0x361b41(0x1ae)]);this[_0x361b41(0x21f)](_0x11ae6f);}))),window[_0x522732(0x2dd)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x522732(0x7e)],'unitIDs':Array[_0x522732(0x7f)](this[_0x522732(0x274)])}));}[_0x57a880(0x21f)](_0x5e73e4){const _0xae5954=_0x57a880;switch(_0x5e73e4[_0xae5954(0xd9)]){case 0x0:this[_0xae5954(0x19d)](_0x5e73e4);break;case 0x1:this[_0xae5954(0x27b)](_0x5e73e4);break;case 0x2:this[_0xae5954(0x1fe)](_0x5e73e4);break;}}['_handleJoinEvent'](_0x3aa76e){const _0x3d7fa3=_0x57a880,{unitIDs:_0x27fc4c,memberID:_0x11f3d5,isForwarded:_0x37ef3b}=_0x3aa76e;_0x27fc4c['forEach'](_0x272672=>{const _0x4ebed4=_0x3624;if(!_0x37ef3b&&this[_0x4ebed4(0x20a)][_0x4ebed4(0x222)](_0x272672)&&this['_ensureSubject'](_0x272672)['next'](u[_0x4ebed4(0x211)][_0x4ebed4(0x2c8)]),!this[_0x4ebed4(0x20a)][_0x4ebed4(0x222)](_0x272672)||!this[_0x4ebed4(0x20a)][_0x4ebed4(0x2d2)](_0x272672)[_0x4ebed4(0x222)](_0x11f3d5)){const _0x551268=this[_0x4ebed4(0x20a)][_0x4ebed4(0x2d2)](_0x272672)||new Set();_0x551268[_0x4ebed4(0x78)](_0x11f3d5),this[_0x4ebed4(0x20a)][_0x4ebed4(0x15b)](_0x272672,_0x551268),this[_0x4ebed4(0x17b)](_0x11f3d5);}}),_0x37ef3b||this[_0x3d7fa3(0x2fa)]({'type':0x0,'memberID':this[_0x3d7fa3(0x7e)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x57a880(0x17b)](_0x279fd8){const _0x58562=_0x57a880;this['_removeClearOtherTimer'](_0x279fd8);const _0x218cd9=window['setTimeout'](()=>{const _0x3fecd4=_0x3624;this[_0x3fecd4(0x20a)][_0x3fecd4(0x231)](_0x6a6c5a=>{const _0x2456e8=_0x3fecd4;_0x6a6c5a[_0x2456e8(0x1e2)](_0x279fd8);});},we*0x2);this['_clearOtherTimers'][_0x58562(0x15b)](_0x279fd8,_0x218cd9);}['_removeClearOtherTimer'](_0x13eaa5){const _0x13e7f1=_0x57a880;if(this[_0x13e7f1(0x2fb)][_0x13e7f1(0x222)](_0x13eaa5)){const _0x53cda2=this[_0x13e7f1(0x2fb)][_0x13e7f1(0x2d2)](_0x13eaa5);_0x53cda2&&window[_0x13e7f1(0x12b)](_0x53cda2),this['_clearOtherTimers'][_0x13e7f1(0x15b)](_0x13eaa5,null);}}[_0x57a880(0x27b)](_0x23259f){const _0x507625=_0x57a880,{memberID:_0x453f72,unitIDs:_0x4a31bf}=_0x23259f;_0x4a31bf[_0x507625(0x231)](_0x5019d1=>{const _0x186517=_0x507625;var _0x53b4ce;const _0x365b90=this[_0x186517(0x20a)][_0x186517(0x2d2)](_0x5019d1);_0x365b90&&(_0x365b90[_0x186517(0x1e2)](_0x453f72),(_0x53b4ce=this['_ensureSubject'](_0x5019d1))==null||_0x53b4ce['next'](_0x365b90['size']===0x0?u[_0x186517(0x211)][_0x186517(0x8d)]:u['UnitStatus'][_0x186517(0x2c8)]));}),this[_0x507625(0x125)](_0x453f72);}['_handleHeartbeatEvent'](_0x59dc55){const _0x36d052=_0x57a880;this['_scheduleClearOtherTimer'](_0x59dc55[_0x36d052(0x14f)]);}['_send'](_0x4e9daf){const _0x5e80d6=_0x57a880;localStorage[_0x5e80d6(0x34a)](ye,JSON['stringify'](_0x4e9daf));}['_scheduleHeartbeat'](){const _0x181688=_0x57a880;this[_0x181688(0x314)]=window[_0x181688(0x121)](()=>{const _0x71193d=_0x181688;this['_send']({'type':0x2,'memberID':this[_0x71193d(0x7e)]});},we);}[_0x57a880(0xfc)](_0x192770){const _0x4c7962=_0x57a880;return this[_0x4c7962(0xa3)][_0x4c7962(0x222)](_0x192770)||this['_unitStatus'][_0x4c7962(0x15b)](_0x192770,new I[(_0x4c7962(0x300))](u[_0x4c7962(0x211)][_0x4c7962(0x8d)])),this[_0x4c7962(0xa3)][_0x4c7962(0x2d2)](_0x192770);}}exports[_0x57a880(0x2ce)]=Oe,exports[_0x57a880(0x102)]=je,exports[_0x57a880(0x174)]=fs,exports['WebURLService']=ke;
|