@univerjs-pro/collaboration-client-ui 0.12.2-nightly.202511290905 → 0.12.3

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.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5e7409=_0x4e0e;(function(_0x140af3,_0x2d2162){const _0x35ceed=_0x4e0e,_0x48e960=_0x140af3();while(!![]){try{const _0x530885=-parseInt(_0x35ceed(0x3ce))/0x1*(parseInt(_0x35ceed(0x185))/0x2)+parseInt(_0x35ceed(0x27b))/0x3+-parseInt(_0x35ceed(0x36c))/0x4+-parseInt(_0x35ceed(0x398))/0x5*(-parseInt(_0x35ceed(0x10d))/0x6)+-parseInt(_0x35ceed(0x2c2))/0x7*(parseInt(_0x35ceed(0x30b))/0x8)+parseInt(_0x35ceed(0x2a3))/0x9*(parseInt(_0x35ceed(0x211))/0xa)+-parseInt(_0x35ceed(0x2c7))/0xb;if(_0x530885===_0x2d2162)break;else _0x48e960['push'](_0x48e960['shift']());}catch(_0x228e6d){_0x48e960['push'](_0x48e960['shift']());}}}(_0x5a7d,0xb477f));var Xe=Object[_0x5e7409(0x3cd)],Ke=(_0x2a2861,_0x235f0e,_0x43b986)=>_0x235f0e in _0x2a2861?Xe(_0x2a2861,_0x235f0e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43b986}):_0x2a2861[_0x235f0e]=_0x43b986,_=(_0x5414d9,_0x13c32f,_0xd049b3)=>Ke(_0x5414d9,typeof _0x13c32f!=_0x5e7409(0x3c6)?_0x13c32f+'':_0x13c32f,_0xd049b3);Object[_0x5e7409(0x3cd)](exports,Symbol[_0x5e7409(0x1b1)],{'value':_0x5e7409(0x238)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=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 Te({ref:_0x2b61b6,..._0x1a749e}){const _0x2f5836=_0x5e7409,{icon:_0xc00e2d,id:_0x343e2d,className:_0x5aa3ec,extend:_0x3cbded,..._0x2f82b7}=_0x1a749e,_0xa7fa63=(_0x2f5836(0x13f)+_0x343e2d+'\x20'+(_0x5aa3ec||''))[_0x2f5836(0x122)](),_0x565c37=A[_0x2f5836(0x236)]('_'+Qe());return $e(_0xc00e2d,''+_0x343e2d,{'defIds':_0xc00e2d['defIds'],'idSuffix':_0x565c37[_0x2f5836(0x1d8)]},{'ref':_0x2b61b6,'className':_0xa7fa63,..._0x2f82b7},_0x3cbded);}function $e(_0x13e470,_0x3728f2,_0x66b48f,_0x498289,_0x38066c){const _0x16c416=_0x5e7409;return A[_0x16c416(0x1b4)](_0x13e470['tag'],{'key':_0x3728f2,...Je(_0x13e470,_0x66b48f,_0x38066c),..._0x498289},(Ze(_0x13e470,_0x66b48f)[_0x16c416(0x326)]||[])[_0x16c416(0x173)]((_0x2e8b7c,_0x25fb45)=>$e(_0x2e8b7c,_0x3728f2+'-'+_0x13e470[_0x16c416(0x354)]+'-'+_0x25fb45,_0x66b48f,void 0x0,_0x38066c)));}function Je(_0x17843c,_0x5b4cf6,_0x568fff){const _0x30f465=_0x5e7409,_0x57d598={..._0x17843c[_0x30f465(0x2ae)]};_0x568fff!=null&&_0x568fff[_0x30f465(0x3be)]&&_0x57d598['fill']==='colorChannel1'&&(_0x57d598[_0x30f465(0x2cb)]=_0x568fff[_0x30f465(0x3be)]),_0x17843c[_0x30f465(0x354)]==='mask'&&_0x57d598['id']&&(_0x57d598['id']=_0x57d598['id']+_0x5b4cf6['idSuffix']),Object[_0x30f465(0x216)](_0x57d598)[_0x30f465(0x2f8)](([_0x54a40c,_0x5a424a])=>{const _0x54c97a=_0x30f465;_0x54a40c===_0x54c97a(0x2d9)&&typeof _0x5a424a=='string'&&(_0x57d598[_0x54a40c]=_0x5a424a[_0x54c97a(0x1ce)](/url\(#(.*)\)/,_0x54c97a(0x169)+_0x5b4cf6[_0x54c97a(0x32a)]+')'));});const {defIds:_0xcb8135}=_0x5b4cf6;return!_0xcb8135||_0xcb8135[_0x30f465(0x23d)]===0x0||(_0x17843c['tag']===_0x30f465(0x13b)&&_0x57d598[_0x30f465(0x250)]&&(_0x57d598[_0x30f465(0x250)]=_0x57d598[_0x30f465(0x250)]+_0x5b4cf6[_0x30f465(0x32a)]),Object[_0x30f465(0x216)](_0x57d598)[_0x30f465(0x2f8)](([_0x4766f1,_0x140558])=>{const _0xbfa3b8=_0x30f465;typeof _0x140558=='string'&&(_0x57d598[_0x4766f1]=_0x140558[_0xbfa3b8(0x1ce)](/url\(#(.*)\)/,_0xbfa3b8(0x169)+_0x5b4cf6['idSuffix']+')'));})),_0x57d598;}function Ze(_0x2b7518,_0x1468e7){const _0xb767f0=_0x5e7409;var _0x242b97;const {defIds:_0x3eb112}=_0x1468e7;return!_0x3eb112||_0x3eb112[_0xb767f0(0x23d)]===0x0?_0x2b7518:_0x2b7518['tag']===_0xb767f0(0x1c9)&&((_0x242b97=_0x2b7518[_0xb767f0(0x326)])!=null&&_0x242b97['length'])?{..._0x2b7518,'children':_0x2b7518['children'][_0xb767f0(0x173)](_0x541dde=>typeof _0x541dde[_0xb767f0(0x2ae)]['id']=='string'&&_0x3eb112&&_0x3eb112[_0xb767f0(0x28a)](_0x541dde[_0xb767f0(0x2ae)]['id'])?{..._0x541dde,'attrs':{..._0x541dde[_0xb767f0(0x2ae)],'id':_0x541dde[_0xb767f0(0x2ae)]['id']+_0x1468e7[_0xb767f0(0x32a)]}}:_0x541dde)}:_0x2b7518;}function Qe(){const _0x185101=_0x5e7409;return Math[_0x185101(0x17e)]()[_0x185101(0x245)](0x24)[_0x185101(0x375)](0x2,0x8);}Te['displayName']=_0x5e7409(0x271);const et={'tag':'svg','attrs':{'xmlns':_0x5e7409(0x20b),'fill':_0x5e7409(0x280),'viewBox':_0x5e7409(0x156),'width':_0x5e7409(0x116),'height':_0x5e7409(0x116)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e7409(0x2b0)},'children':[{'tag':_0x5e7409(0x3a3),'attrs':{'stroke':_0x5e7409(0x310),'d':_0x5e7409(0x34b),'strokeLinecap':'round','strokeLinejoin':_0x5e7409(0x170),'strokeWidth':1.2}}]},{'tag':_0x5e7409(0x1c9),'attrs':{},'children':[{'tag':_0x5e7409(0x1a4),'attrs':{'id':_0x5e7409(0x199)},'children':[{'tag':_0x5e7409(0x3a3),'attrs':{'fill':_0x5e7409(0x35d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x5e7409(0x141)](function(_0x9880cc,_0x63dd54){const _0x3b30e4=_0x5e7409;return A[_0x3b30e4(0x1b4)](Te,Object['assign']({},_0x9880cc,{'id':'off-line-icon','ref':_0x63dd54,'icon':et}));});xe[_0x5e7409(0x106)]=_0x5e7409(0x151);const tt={'tag':_0x5e7409(0x322),'attrs':{'xmlns':_0x5e7409(0x20b),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x5e7409(0x116),'height':_0x5e7409(0x116)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e7409(0x2ff)},'children':[{'tag':_0x5e7409(0x3a3),'attrs':{'stroke':'currentColor','d':_0x5e7409(0x30d),'strokeLinecap':_0x5e7409(0x170),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5e7409(0x1c9),'attrs':{},'children':[{'tag':_0x5e7409(0x1a4),'attrs':{'id':_0x5e7409(0x33a)},'children':[{'tag':_0x5e7409(0x3a3),'attrs':{'fill':_0x5e7409(0x35d),'d':_0x5e7409(0x244),'transform':_0x5e7409(0x3bd)}}]}]}],'defIds':[_0x5e7409(0x33a)]},Be=A['forwardRef'](function(_0xc21f65,_0x222942){const _0x415ec7=_0x5e7409;return A['createElement'](Te,Object['assign']({},_0xc21f65,{'id':_0x415ec7(0x21c),'ref':_0x222942,'icon':tt}));});Be[_0x5e7409(0x106)]=_0x5e7409(0x1d4);function st(_0x124855){const _0x281d5f=_0x5e7409;switch(_0x124855){case u['CollaborationStatus'][_0x281d5f(0x1a7)]:return _0x281d5f(0x1d6);case u[_0x281d5f(0x3d1)][_0x281d5f(0x14b)]:return'collabStatus.conflict';case u['CollaborationStatus']['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x281d5f(0x3d1)][_0x281d5f(0x257)]:return _0x281d5f(0x276);case u[_0x281d5f(0x3d1)][_0x281d5f(0x383)]:case u[_0x281d5f(0x3d1)][_0x281d5f(0x1e1)]:return _0x281d5f(0x2c6);case u[_0x281d5f(0x3d1)][_0x281d5f(0x1ea)]:case u['CollaborationStatus'][_0x281d5f(0x18d)]:return _0x281d5f(0x324);}}function it(_0x2a9b7e){const _0x133b2f=_0x5e7409,{status$:_0xfc5bcf}=_0x2a9b7e,_0x253f2d=O[_0x133b2f(0x1c8)](_0xfc5bcf,u[_0x133b2f(0x3d1)][_0x133b2f(0x257)]),_0x1692dd=O[_0x133b2f(0x39a)](a['LocaleService']),_0x29feeb=O[_0x133b2f(0x39a)](u['CollaborationSessionService']),_0x3afd9b=_0x253f2d!==u[_0x133b2f(0x3d1)]['OFFLINE'],_0x8381e5=_0x1692dd['t'](st(_0x253f2d)),_0x909607=_0x3afd9b?M[_0x133b2f(0x364)](Be,{}):M[_0x133b2f(0x364)](xe,{}),_0xe140de=A[_0x133b2f(0x284)](()=>{const _0x5c2e59=_0x133b2f;_0x3afd9b||_0x29feeb[_0x5c2e59(0x2aa)]();},[_0x3afd9b,_0x29feeb]);function _0x57ba4f(){const _0x228616=_0x133b2f;return M[_0x228616(0x275)](_0x228616(0x196),{'className':'univer-flex\x20univer-items-center','onClick':_0xe140de,'children':[M[_0x228616(0x364)]('div',{'className':T[_0x228616(0x2e0)](_0x228616(0x13c),{'univer-text-green-500':_0x3afd9b,'univer-text-red-500':!_0x3afd9b}),'children':_0x909607}),M[_0x228616(0x364)](_0x228616(0x196),{'className':_0x228616(0x226),'children':_0x8381e5})]});}return _0x3afd9b?_0x57ba4f():M[_0x133b2f(0x364)](T[_0x133b2f(0x342)],{'title':_0x1692dd['t'](_0x133b2f(0x11d)),'children':_0x57ba4f()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x57706b,_0x16d980,_0xa7e5e9,_0x2c8c17)=>{const _0x23d25e=_0x5e7409;for(var _0xa341a4=_0x2c8c17>0x1?void 0x0:_0x2c8c17?nt(_0x16d980,_0xa7e5e9):_0x16d980,_0x553090=_0x57706b[_0x23d25e(0x23d)]-0x1,_0x3820ae;_0x553090>=0x0;_0x553090--)(_0x3820ae=_0x57706b[_0x553090])&&(_0xa341a4=_0x3820ae(_0xa341a4)||_0xa341a4);return _0xa341a4;},K=(_0x20f814,_0x163b76)=>(_0x4adfe7,_0x2317a6)=>_0x163b76(_0x4adfe7,_0x2317a6,_0x20f814);exports[_0x5e7409(0x1ba)]=class extends a[_0x5e7409(0x3c4)]{constructor(_0x1962ca,_0x1ea9ab,_0x538d93,_0x32cc87){const _0x5199b7=_0x5e7409;super(),_(this,_0x5199b7(0x1fa),new I['BehaviorSubject'](u[_0x5199b7(0x3d1)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x1962ca,this['_injector']=_0x1ea9ab,this['_collaborationController']=_0x538d93,this['_uiPartsService']=_0x32cc87,this[_0x5199b7(0x34d)](),this[_0x5199b7(0x3cb)]());}[_0x5e7409(0x3cb)](){const _0xfc3e20=_0x5e7409;this['disposeWithMe'](this[_0xfc3e20(0x336)]['focused$']['pipe'](I['switchMap'](()=>{const _0x567071=_0xfc3e20,_0x3d3a3f=this[_0x567071(0x336)]['getFocusedUnit']();return _0x3d3a3f?this[_0x567071(0x3b0)]['getCollabEntity$'](_0x3d3a3f[_0x567071(0x3b5)]()):I['of'](null);}),I['switchMap'](_0x706d7c=>_0x706d7c?_0x706d7c[_0xfc3e20(0x237)]:I['of'](u[_0xfc3e20(0x3d1)][_0xfc3e20(0x257)])))[_0xfc3e20(0x24c)](_0xfac9d2=>{const _0x348ec4=_0xfc3e20;this[_0x348ec4(0x1fa)]['next'](_0xfac9d2);}));}[_0x5e7409(0x34d)](){const _0x5d061c=_0x5e7409;this['disposeWithMe'](this[_0x5d061c(0x3cc)]['registerComponent'](O[_0x5d061c(0x357)][_0x5d061c(0x1af)],()=>O['connectInjector'](ot({'status$':this[_0x5d061c(0x1fa)][_0x5d061c(0x181)]()}),this[_0x5d061c(0x232)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x5e7409(0x119)]),K(0x1,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),K(0x2,a[_0x5e7409(0x10a)](u[_0x5e7409(0x1df)])),K(0x3,O['IUIPartsService'])],exports[_0x5e7409(0x1ba)]);function ot(_0x504b7d){const {status$:_0x423aaa}=_0x504b7d;return function(){const _0x56e49b=_0x4e0e;return M[_0x56e49b(0x364)](it,{'status$':_0x423aaa});};}const Oe=a['createIdentifier'](_0x5e7409(0x1cd));var at=Object[_0x5e7409(0x3ca)],ct=(_0x5e8dba,_0x16934a,_0x460466,_0x5ddcb7)=>{const _0x47c758=_0x5e7409;for(var _0x59d7d=_0x5ddcb7>0x1?void 0x0:_0x5ddcb7?at(_0x16934a,_0x460466):_0x16934a,_0x29c8ea=_0x5e8dba[_0x47c758(0x23d)]-0x1,_0x247594;_0x29c8ea>=0x0;_0x29c8ea--)(_0x247594=_0x5e8dba[_0x29c8ea])&&(_0x59d7d=_0x247594(_0x59d7d)||_0x59d7d);return _0x59d7d;},Y=(_0x1aab94,_0x37445b)=>(_0xded860,_0x1e5d5e)=>_0x37445b(_0xded860,_0x1e5d5e,_0x1aab94);exports[_0x5e7409(0x2bc)]=class extends a[_0x5e7409(0x2fe)]{constructor(_0x4d9955,_0xb54c20,_0x123602,_0x368665,_0x22fbe5){const _0x4ff91d=_0x5e7409;super(),this['_urlService']=_0x4d9955,this['_logService']=_0xb54c20,this[_0x4ff91d(0x2e9)]=_0x123602,this[_0x4ff91d(0x152)]=_0x368665,_0x22fbe5?_0x22fbe5==null||_0x22fbe5['whenReady']()[_0x4ff91d(0x147)](()=>this[_0x4ff91d(0x303)]()):(this['_logService'][_0x4ff91d(0x14e)](_0x4ff91d(0x1db),_0x4ff91d(0x369)),this['_init']());}async[_0x5e7409(0x303)](){const _0x470243=_0x5e7409,_0x37a86d=this[_0x470243(0x1a3)]['getParam']('unit'),_0x151796=this[_0x470243(0x1a3)][_0x470243(0x145)]('type'),_0x26caa5=this[_0x470243(0x1a3)][_0x470243(0x145)](_0x470243(0x19e));if(!_0x37a86d||!_0x151796){this[_0x470243(0x28b)][_0x470243(0x14e)](_0x470243(0x1db),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x11c8c3=await this['_dataLoaderService']['loadUnit'](_0x37a86d,Number(_0x151796),_0x26caa5);_0x11c8c3&&_0x11c8c3 instanceof a[_0x470243(0x186)]&&this[_0x470243(0x15e)](_0x11c8c3);}async['_setupSubUnitSync'](_0xba3910){const _0x35fd35=_0x5e7409;await this[_0x35fd35(0x16f)](_0xba3910),_0xba3910[_0x35fd35(0x309)][_0x35fd35(0x168)](I['takeUntil'](this[_0x35fd35(0x33d)]))[_0x35fd35(0x24c)](_0x4da041=>{const _0x2d9161=_0x35fd35;_0x4da041&&this[_0x2d9161(0x144)](_0x4da041);}),this[_0x35fd35(0x1a3)][_0x35fd35(0x1bb)][_0x35fd35(0x168)](I[_0x35fd35(0x2a0)](this['dispose$']))['subscribe'](()=>this[_0x35fd35(0x16f)](_0xba3910));}[_0x5e7409(0x144)](_0x38f46c,_0x352e16=!0x1){const _0x433122=_0x5e7409,_0x57f6ed=this[_0x433122(0x1a3)][_0x433122(0x145)](_0x433122(0x19e));_0x38f46c[_0x433122(0x351)]()!==_0x57f6ed&&this[_0x433122(0x1a3)][_0x433122(0x14f)](_0x433122(0x19e),_0x38f46c[_0x433122(0x351)](),_0x352e16);}async[_0x5e7409(0x16f)](_0xa49af4){const _0x3a0fc7=_0x5e7409;var _0x2e6145;const _0x28bebc=this[_0x3a0fc7(0x1a3)][_0x3a0fc7(0x145)](_0x3a0fc7(0x19e));if(!_0x28bebc||!_0xa49af4[_0x3a0fc7(0x2a4)](_0x28bebc)){const _0x183c41=_0xa49af4[_0x3a0fc7(0x135)]()[0x0],_0x5cdcef=_0xa49af4['getSheetBySheetId'](_0x183c41);if(!_0x5cdcef)return;this[_0x3a0fc7(0x144)](_0x5cdcef,!0x0),await this[_0x3a0fc7(0x2e9)][_0x3a0fc7(0x3c7)](v[_0x3a0fc7(0x195)]['id'],{'unitId':_0xa49af4[_0x3a0fc7(0x3b5)](),'subUnitId':_0x183c41});return;}((_0x2e6145=_0xa49af4[_0x3a0fc7(0x183)]())==null?void 0x0:_0x2e6145['getSheetId']())!==_0x28bebc&&await this['_commandService'][_0x3a0fc7(0x3c7)](v[_0x3a0fc7(0x195)]['id'],{'unitId':_0xa49af4[_0x3a0fc7(0x3b5)](),'subUnitId':_0x28bebc});}},exports[_0x5e7409(0x2bc)]=ct([Y(0x0,Oe),Y(0x1,a[_0x5e7409(0x314)]),Y(0x2,a[_0x5e7409(0x366)]),Y(0x3,a['Inject'](u[_0x5e7409(0x28c)])),Y(0x4,a[_0x5e7409(0x110)](qe[_0x5e7409(0x285)]))],exports[_0x5e7409(0x2bc)]);var lt=Object[_0x5e7409(0x3ca)],_t=(_0x3afa80,_0x28d637,_0x440f30,_0x2a5d09)=>{const _0x4fa245=_0x5e7409;for(var _0x37332a=_0x2a5d09>0x1?void 0x0:_0x2a5d09?lt(_0x28d637,_0x440f30):_0x28d637,_0x128831=_0x3afa80[_0x4fa245(0x23d)]-0x1,_0x4d0db0;_0x128831>=0x0;_0x128831--)(_0x4d0db0=_0x3afa80[_0x128831])&&(_0x37332a=_0x4d0db0(_0x37332a)||_0x37332a);return _0x37332a;},De=(_0x9132ce,_0x349de9)=>(_0x112965,_0x4c3952)=>_0x349de9(_0x112965,_0x4c3952,_0x9132ce);let me=class extends a[_0x5e7409(0x2fe)]{constructor(_0x4a995b,_0x329b9a){const _0x595daa=_0x5e7409;super(),this[_0x595daa(0x12a)]=_0x4a995b,this[_0x595daa(0x164)]=_0x329b9a,this[_0x595daa(0x303)]();}[_0x5e7409(0x303)](){const _0x5011dc=_0x5e7409,_0x5ccf7b=this;this['disposeWithMe'](this[_0x5011dc(0x12a)]['addClipboardHook']({'onBeforePasteImage':async _0x515ba7=>{const _0xcfed2d=_0x5011dc,_0x32b32e=await _0x5ccf7b[_0xcfed2d(0x164)][_0xcfed2d(0x1f6)](_0x515ba7);return _0x32b32e?{'source':_0x32b32e[_0xcfed2d(0x12f)],'imageSourceType':_0x32b32e[_0xcfed2d(0x2c9)]}:null;}}));}};me=_t([De(0x0,p[_0x5e7409(0x11e)]),De(0x1,ze[_0x5e7409(0x32e)])],me);const Ne=['purple.300',_0x5e7409(0x344),_0x5e7409(0x27e),_0x5e7409(0x24d),'blue.400',_0x5e7409(0x39b)];class Re extends a[_0x5e7409(0x3c4)]{constructor(){const _0x27bf3c=_0x5e7409;super(...arguments),_(this,_0x27bf3c(0x234),new Map()),_(this,_0x27bf3c(0x352),0x0);}[_0x5e7409(0x1da)](_0x3649c6){const _0x17f49c=_0x5e7409;if(this[_0x17f49c(0x234)]['has'](_0x3649c6))return this[_0x17f49c(0x234)][_0x17f49c(0x22b)](_0x3649c6);const _0x347cab=Ne[this[_0x17f49c(0x352)]];return this['_colorIndex']=(this[_0x17f49c(0x352)]+0x1)%Ne[_0x17f49c(0x23d)],this[_0x17f49c(0x234)][_0x17f49c(0x15c)](_0x3649c6,_0x347cab),_0x347cab;}}function _0x5a7d(){const _0x1944f7=['reconnect','clearInterval','has','switchMap','attrs','_themeService','url(#off-line-icon_clip0_910_343)','width','_scheduleSaving','FromArray','_maxFormulaLimit','_docSyncEditingCollabCursorService','throttleTime','_transformPreviousActiveRange','subscribeEvent','collaboration.single-unit.warning','height','origin','CollaborationDataLoaderController','stringify','selection','ALREADY_EXISTS','RegularPolygon','FormulaExecuteStageType','7lpklmw','releaseFormulaLimitUrl','unitId','runOnServer','collabStatus.syncing','11853853Koyvvg','registerRenderModule','imageSourceType','BrowserCollaborationSocketService','fill','START_CALCULATION','OTHER_CLIENT_EDITING','resize','_registerDependencies','WECHAT_HAS_BEEN_BOUND','_showGuardMessage','_initDependencies','transformByState','shareReplay','_colorAssignService','handleMoveRange','getformulaLimitStatusUrl','getUnit','mask','AUTHORIZE_CODE_ILLEGAL','fillRule','_initEvent','cursorInfo','makeDirty','Loading','clsx','RevisionService','push','_beforeCloseService','_send','functionsExecutedState','LICENSE_IMPORT_SIZE_EXCEEDED','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getConfig','_commandService','_registerRenderDependencies','JOIN_ROOM_FAILED','IURLService','saveTaskMap','RemoveRowCommandId','UnitStatus','size','DEFAULT_WS_SESSION_TICKET_URL','ONLINE','_sheetSkeletonManagerService','session.connection-failed','REDEMPTION_INVALID_CODE','createSocket','startsWith','forEach','_httpService','_cursors','ILocalStorageService','formula.calculation.waiting','HTTPService','RxDisposable','url(#on-line-icon_clip0_910_349)','SessionStatus','getColorFromTheme','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_init','SOCKET_FAILED','now','Shape','color','debounce','activeSheet$','popstate','621560ckzeZq','roomMembers$','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','INTERNAL_ERROR','actions','currentColor','ENTITLE_CHAT_LIMIT_EXCEED','_handleLeaveEvent','getMemberID','ILogService','_collaborationSessionService','_config','InsertRangeMoveRightCommandId','DocSelectionManagerService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','#FFF','merge','beginPath','getColor','getSheetObject','_name','textRanges','_checkCalculationAvailable','svg','clearTimeout','collabStatus.synced','ACTIVE_UNIT_EVENT_CHANNEL','children','RECT','ERROR_AGAIN','skeleton','idSuffix','_lastPointer','Tools','next','IImageIoService','rgba(255,\x20255,\x20255,\x200.01)','_unitOnClients','findNodePositionByCharIndex','addObject','lineno','handleDeleteRangeMoveUp','MoveRangeCommandId','_univerInstanceService','_toggleOnline','_anchorDot','_docTransformStateCacheService','on-line-icon_clip0_910_349','_messageService','NOT_FOUND','dispose$','exhaustSavingTask','_localeService','filename','APPLY_REVISION_CONFILICT','Tooltip','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','jiqing.500','onMouseMove','handleIRemoveRow','transformMutation','addHandlerCallback','InsertRowCommandId','limitInfo','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','SetSelectionsOperation','_initStatusComponent','getMember','UNIVER_SHEET','executionId','getSheetId','_colorIndex','show','tag','post','getRangePointData','BuiltInUIPart','code','LocaleService','_applyCommand','delete','colno','white','ThemeService','startRow','_onCursorUpdate','disposeWithMe','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getDocRanges','jsx','MessageType','ICommandService','all','transformIMECache','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','WebURLService','APPLY_DUPLICATED','4173324ZMiQZL','init','[Unhandled\x20Rejection]:\x20','YUUMI_ALL_TABLES_IS_INVALID','_revisionService','application/json','redoState','UNRECOGNIZED','_range','substring','_uploadLog','UPDATE_CURSOR','TEXT','_transformUndoRedoStack','Warning','_scheduleClearOtherTimer','LOGIN_FAILED','setAlpha','Plugin','save','_collabCursorState$','_setFormulaLimitStatus','_checkAndWaitForCalculationPermission','AWAITING','handleInsertRangeMoveRight','onStarting','touchDependencies','black','TOO_MANY_REQUESTS','filter','Success','_startCalculationLimit','APPLY_NON_SEQUENTIAL_REVISION','_setupBeforeClosingHandler','_syncEditingCollabCursorService','INVALID_INVITE_CODE','LOGIN_TOKEN_PROCESSING_FAILED','override','getCoordByCell','Error','MOBILE_HAS_BEEN_BOUND','getMergeData','getLocalCacheKey','USER_IS_ANONYMOUS','127405LKycEs','search','useDependency','yellow.400','_cachedData','PAYMENT_CHANNEL_NOT_SUPPORT','Rect','_notificationService','_onRefRangeChange','dispose','UNDEFINED','path','CURRENT_STATUS_CANNOT_OPERATE','selections','LOCAL_CACHE_INTERVAL_KEY','onCommandExecuted','ticket','unit','getCellPositionByOffset','isTransformMutationsWithChangesetSuccess','syncEditingCollabCursor','type','ITransformService','_labelPosition','_collaborationController','dirtyRanges','loadOfflineData','Subject','getFocusedUnit','getUnitId','_roomMembers$','_initEntityListener','event$','combineLatest','COLORS','_docSkeleton','NodePositionConvertToRectRange','translate(.97)','colorChannel1','from','/universer-api/license/formula/limit/status','parse','_entities','add','Disposable','_docSkeletonManagerService','symbol','executeCommand','handleInsertRangeMoveDown','setActiveRange','getOwnPropertyDescriptor','_initStatusListener','_uiPartsService','defineProperty','122ZoFACQ','_releaseCalculationLimit','mapTo','CollaborationStatus','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_scene','transformRemoteChangeset','_getScale','setShapeProps','isArray','displayName','subUnitId','onRendered','unload','Inject','APPLY_PERMISSION_DENIED','runRefRangeMutations','282WvONar','replaceState','EffectRefRangId','Optional','_eventUnsubscribe','YUUMI_URL_COL_OUT_OF_RANGE','name','formula.calculation.started','body','1em','Failed','ENTITLE_CAN_NOT_BUY_LOWER_OTP','IUniverInstanceService','debounceTime','closePath','_clearOtherTimers','collab-client.tooltip.reconnect','IDocClipboardService','_renderManagerService','REDEMPTION_CODE_NOT_STARTED','_pollingInterval','trim','/universer-api/license/formula/limit/done','join','YUUMI_UNABLE_LOAD_URL','isTransformMutationFailure','DocStateChangeManagerService','_backgroundColor','triggerDblclick','_docClipboardService','contains','_toggleOffline','enableLocalCache','_transformHistoryAndStateStack','source','INVITE_CODE_ALREADY_BOUND','location','stageInfo','_hover','_getSaveTimeout','getUnhiddenWorksheets','USER_NOT_FOUND','ILocalCacheService','send','registerRefRange','_initWindowErrorListener','use','univer-mr-2\x20univer-flex\x20univer-text-xl','SOCKET_FAILED_RETRY','SNAPSHOT_HAS_BEEN_REMOVED','univerjs-icon\x20univerjs-icon-','Rectangle','forwardRef','unsubscribe','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_updateURLWithCurrentState','getParam','_online','then','MemberService','_ensureSubject','handleInsertCol','CONFLICT','setUndoRedoMutationParamsCache','InsertColCommandId','debug','setParam','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','OffLineIcon','_dataLoaderService','_cursorInfo$','YUUMI_AI_RUN_FAILED','_clearPolling','0\x200\x2016\x2016','currentSkeleton$','measureText','searchParams','storage','getCurrent','set','_collabSessionService','_setupSubUnitSync','sessionTicket','_draw','_drawTextRange','_getFormulaLimitStatus','_handleHover','_imageIoService','MOBILE_VERIFY_CODE_MISMATCH','bottom','DocCollaborationEntity','pipe','url(#$1','PERMISSION_DENIED','SetTextSelectionsOperation','_memberID','APPLY_REJECT','TEXT_RANGE_LAYER_INDEX','_updateSubUnitFromURLParams','round','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','requireSession','map','_getSheetObject','SUCCESS','COMPLETION_FINISHED','SheetCollabCursorShape','parseInt','YUUMI_NO_CUBOID_FOR_QUESTION','RichTextEditingMutation','_currentUsage','collaboration.closeRoom','generateRandomId','random','/universer-api/frontend/logs','result','asObservable','session.collaboration-timeout','getActiveSheet','...','6718UkQJkA','Workbook','_handleHeartbeatEvent','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','stage','Injector','_refreshCollabCursors','IMessageService','PENDING','DocIMEInputManagerService','invokeId','_docStateChangeManagerService','BehaviorSubject','catch','ranges','serializeRangeWithSheet','SetWorksheetActivateCommand','div','UniverCollaborationClientPlugin','_transformService','off-line-icon_clip0_910_343','onTransformChange$','_document','_drawAnchor','arc','subunit','_initUnhandledRejectionListener','_instanceService','with','find','_urlService','clipPath','CollaborationSocketService','collaboration-client-ui.config','OFFLINE','_startDocCollabCursor','removeEventListener','key','_updateCollabCursors','_lastResponseTimestamp','backgroundColor','_initCommandExecutedListener','HEADER_MENU','YUUMI_CONNECTOR_URL_NOT_FOUND','toStringTag','LICENSE_EXPORT_SIZE_EXCEEDED','params','createElement','deepClone','_cursor','_updateLocalCursor','setTimeout','bind','DesktopCollaborationStatusDisplayController','urlChange$','getRelativeToViewportCoord','pushState','labelPosition','CollaborationEvent','EMAIL_HAS_BEEN_BOUND','endColumn','YUUMI_SUBSCRIPTION_NOT_FOUND','cursorInfo$','CHANGESET_REVISION_CONFILICT','transformStateCache','removeParam','REDEMPTION_CODE_INACTIVE','useObservable','defs','runId','shift','_getSessionTicket','uni.network.url-service','replace','_initUserListener','ISocketService','DependentOn','IBeforeCloseService','roomMembers','OnLineIcon','getCollabCursors$','collabStatus.offline','unhandledrejection','current','_taskIds','assignAColorForMemberID','[CollaborationDataLoaderController]','data','DATA_SOURCE_TOO_LARGE','permission.title','CollaborationController','_hasFormulaInDirtyRanges','AWAITING_WITH_PENDING','RefRangeService','isActive','RemoteUniscriptService','_render','currentTheme$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','complete','_configService','SYNCED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_TABLE_NOT_FOUND_IN_UNIT','RemoveColCommandId','sessionStatus$','collab-text-range-','IRenderManagerService','registerDependencies','OTHER_CLIENTS_EDITING','mutations','_getAnchorBounding','evenodd','saveImage','_startSheetCollabCursor','_memberService','ENTITLE_INSUFFICIENT_QUOTA','_status$','_shapes','UniverInstanceType','_hovered','INVALID_ARGUMENT','_selfUnitIDs','onLocalMutation','getValue','_textBubble','LICENSE_MAX_UNITS_EXCEEDED','CollaborationUIEventId','onPointerEnter$','collab-text-anchor-','enableFrontendLog','?taskId=','SetFormulaCalculationNotificationMutation','SNAPSHOT_INVALID_SNAPSHOT','http://www.w3.org/2000/svg','_doCreateSocket','_handleJoinEvent','_saveTaskMap','ENTITLE_DUP_SUBSCRIPTION','getAncestorScale','10yFbpwG','m2Prime','DOC_RANGE_TYPE','MUTATION','engine','entries','_color','history','_initResize','getUndoRedoMutationParamsCache','href','on-line-icon','USER_NOT_INVITED_CODE','YUUMI_ASYNCIO_CANCELLED','toRgbString','ENTITLE_REPORT_LIMIT_EXCEED','doc.mutation.rich-text-editing','getStateCache','getActiveRange','drawWith','saveOfflineData','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','error','CONNECTOR_DATA_TOO_LARGE','LOCAL_CACHE_INTERVAL','_onCursorDelete','get','_localCacheService','onPointerLeave$','collab-rect-range-','_collabCursorController','session.will-retry','createInstance','_injector','_saveCache','_assignedColors','_docTransformSelectionsService','useRef','status$','Module','_drawRectRange','IConfigService','getSkeleton','UNAUTHENTICATED','length','EMAIL_VERIFY_CODE_MISMATCH','moveTo','_session','_removeCollabCursors','ENTITLE_NEED_BILLING_ADDRESS','transformSelections','M0\x200H16V16H0z','toString','addEventListener','startColumn','_unitStatus','text','YUUMI_RATE_OVER_LIMIT','_context','subscribe','red.300','_docTransformIMECacheService','_entityInit$','xlink:href','isEditing','unitID','_handleEvent','sheetId','unshift','InsertRangeMoveDownCommandId','NOT_COLLAB','getCellMatrix','memberID','fillText','newValue','DeleteRangeMoveUpCommandId','collabCursorState$','_refRangeService','_scheduleHeartbeat','_getMergeRange','getRenderById','collaboration-client.offline-data-not-saved','UniverCollaborationClientUIPlugin','stack','isFormulaId','DocSkeletonManagerService','min','_anchor','lineTo','_removeClearOtherTimer','setInterval','SHEET_VIEWPORT_KEY','endRow','formula.calculation.unable','values','hovered','UniverIcon','ENSURE_SNAPSHOT_EXECUTION','UNIVER_DOC','editingUnit','jsxs','collabStatus.notCollab','_collaborationUIEventService','DeleteRangeMoveLeftCommandId','getTypeOfUnitDisposed$','DisposableCollection','2817474RhyccJ','_heartbeatTimer','_hideTimer','green.600','undoState','none','some','maxFormulaLimit','Vector2','useCallback','IRemoteInstanceService','Unknown\x20user','string','eventID','_disabled','includes','_logService','DataLoaderService','fillStyle','_cursorShapes','WebBrowserSingleActiveUnitService','_createSocketURL','INVITE_CODE_REQUIRED','getCurrentSelections','SheetsSelectionsService','_localStorageService','setConfig','socket$','\x20at\x20','message','column','NO_OTHER_CLIENTS_EDITING','m1Prime','toDisposable','_id','fromEvent','LICENSE_DISTRO_REJECTED','takeUntil','[LogService\x20Error]:\x20','[Window\x20Error]:\x20','10897929QSgSJJ','getSheetBySheetId','PY_RUNTIME_SCRIPT_ERROR','REDEMPTION_CODE_FULLY_REDEEMED','setItem','restore','REDEMPTION_USER_NOT_ELIGIBLE'];_0x5a7d=function(){return _0x1944f7;};return _0x5a7d();}function Fe(_0x407c32){const _0x6699cd=_0x5e7409;let _0x24fd5a='';for(const _0x49b7dc of _0x407c32){const {startOffset:_0x4dc166,endOffset:_0x1e3d06,isActive:_0x69b6b,rangeType:_0x23e137,segmentId:_0xf8b717,segmentPage:_0x5b01e2}=_0x49b7dc;_0x24fd5a[_0x6699cd(0x23d)]&&(_0x24fd5a+=','),_0x24fd5a+=_0x4dc166+':'+_0x1e3d06+':'+(_0x69b6b?'1':'0')+':'+_0x23e137+':'+_0xf8b717+':'+_0x5b01e2;}return _0x24fd5a;}function ht(_0x58a904){const _0x27c8d1=_0x5e7409,_0x3d3897=_0x58a904['split'](','),_0x245aba=[];for(const _0x1164cd of _0x3d3897){const [_0x1cc780,_0x280e71,_0x4e926d,_0x256967,_0x5c12e9,_0x351d6e]=_0x1164cd['split'](':');_0x245aba['push']({'startOffset':Number(_0x1cc780),'endOffset':Number(_0x280e71),'collapsed':_0x1cc780===_0x280e71,'isActive':_0x4e926d==='1','rangeType':_0x256967===a[_0x27c8d1(0x213)][_0x27c8d1(0x378)]?a[_0x27c8d1(0x213)][_0x27c8d1(0x378)]:a[_0x27c8d1(0x213)][_0x27c8d1(0x327)],'segmentId':typeof _0x5c12e9==_0x27c8d1(0x287)?String(_0x5c12e9):'','segmentPage':Number(_0x351d6e!=null?_0x351d6e:-0x1)});}return _0x245aba[_0x27c8d1(0x281)](_0x2ba06c=>_0x2ba06c['isActive'])||(_0x245aba[0x0][_0x27c8d1(0x1e3)]=!0x0),_0x245aba;}class be extends a[_0x5e7409(0x2fe)]{constructor(){const _0x273293=_0x5e7409;super(...arguments),_(this,_0x273293(0x380),new I[(_0x273293(0x191))](null)),_(this,_0x273293(0x25d),this[_0x273293(0x380)][_0x273293(0x181)]());}[_0x5e7409(0x3ac)](_0x4f0e39){const _0x55d5d0=_0x5e7409,{unitID:_0x181c66,memberID:_0x5cd6c8,textRanges:_0x4dd7d4}=_0x4f0e39,_0x1ffca3=Fe(_0x4dd7d4);if(_0x1ffca3==='')return;const _0x59361b={'unitID':_0x181c66,'memberID':_0x5cd6c8,'selection':_0x1ffca3};this[_0x55d5d0(0x380)][_0x55d5d0(0x32d)](_0x59361b);}}var ut=Object[_0x5e7409(0x3ca)],It=(_0x30a00b,_0x11824b,_0x2596ff,_0x150424)=>{const _0x1882a1=_0x5e7409;for(var _0x2cbef2=_0x150424>0x1?void 0x0:_0x150424?ut(_0x11824b,_0x2596ff):_0x11824b,_0x36cc54=_0x30a00b[_0x1882a1(0x23d)]-0x1,_0x5087f1;_0x36cc54>=0x0;_0x36cc54--)(_0x5087f1=_0x30a00b[_0x36cc54])&&(_0x2cbef2=_0x5087f1(_0x2cbef2)||_0x2cbef2);return _0x2cbef2;},U=(_0x705a38,_0x565fe1)=>(_0x5174c6,_0x50ad45)=>_0x565fe1(_0x5174c6,_0x50ad45,_0x705a38);const dt=0x12c,St=0x64;let ve=class extends a['RxDisposable']{constructor(_0x2eba19,_0x39f767,_0xa3032c,_0x58e8c3,_0x2c57d7,_0x26b8e5,_0x3f9ead,_0x8949d4,_0x5e42be){const _0x2b9fa7=_0x5e7409;super(),_(this,_0x2b9fa7(0x146),!0x1),_(this,'_init',!0x1),_(this,_0x2b9fa7(0x153),new I[(_0x2b9fa7(0x191))](new Map())),_(this,'cursorInfo$',this[_0x2b9fa7(0x153)]['asObservable']()),_(this,_0x2b9fa7(0x3b6),new I[(_0x2b9fa7(0x191))]([])),_(this,_0x2b9fa7(0x30c),this['_roomMembers$'][_0x2b9fa7(0x168)](I[_0x2b9fa7(0x11a)](dt))),_(this,'_updateLocalCursor',a['debounce'](_0x3f693a=>{const _0x10005c=_0x2b9fa7,_0x385666={'eventID':g[_0x10005c(0x1bf)][_0x10005c(0x377)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Fe(_0x3f693a)}};this['_session'][_0x10005c(0x138)](_0x385666,this['unitID']);},St)),(this[_0x2b9fa7(0x252)]=_0x2eba19,this['_session']=_0x39f767,this[_0x2b9fa7(0x232)]=_0xa3032c,this[_0x2b9fa7(0x2d5)]=_0x58e8c3,this['_memberService']=_0x2c57d7,this[_0x2b9fa7(0x38e)]=_0x26b8e5,this[_0x2b9fa7(0x198)]=_0x3f9ead,this[_0x2b9fa7(0x336)]=_0x8949d4,this['_commandService']=_0x5e42be);}get['cursorInfo'](){const _0x4d61a8=_0x5e7409;return this[_0x4d61a8(0x153)]['getValue']();}get['roomMembers'](){const _0x1515d0=_0x5e7409;return this[_0x1515d0(0x3b6)][_0x1515d0(0x201)]();}[_0x5e7409(0x3a1)](){const _0x332d3a=_0x5e7409;super[_0x332d3a(0x3a1)](),this[_0x332d3a(0x153)][_0x332d3a(0x32d)](new Map()),this[_0x332d3a(0x153)]['complete'](),this[_0x332d3a(0x3b6)][_0x332d3a(0x32d)]([]),this[_0x332d3a(0x3b6)][_0x332d3a(0x1e8)]();}[_0x5e7409(0x36d)](){const _0x7ec1df=_0x5e7409;this['_init']||(this['_init']=!0x0,this[_0x7ec1df(0x240)][_0x7ec1df(0x1ee)][_0x7ec1df(0x168)](I[_0x7ec1df(0x2a0)](this[_0x7ec1df(0x33d)]))[_0x7ec1df(0x24c)](_0x113564=>{const _0x3c91c4=_0x7ec1df;_0x113564===u[_0x3c91c4(0x300)][_0x3c91c4(0x2f2)]?this[_0x3c91c4(0x337)]():this[_0x3c91c4(0x12c)]();}),this[_0x7ec1df(0x240)][_0x7ec1df(0x3b8)][_0x7ec1df(0x168)](I['takeUntil'](this[_0x7ec1df(0x33d)]))[_0x7ec1df(0x24c)](_0x48574e=>{const _0x58a7d1=_0x7ec1df,_0x772eff=_0x48574e[_0x58a7d1(0x288)];_0x772eff===g[_0x58a7d1(0x1bf)][_0x58a7d1(0x377)]&&this['_onCursorUpdate'](_0x48574e),_0x772eff===g[_0x58a7d1(0x1bf)]['USERS_LEAVE']&&this[_0x58a7d1(0x22a)](_0x48574e);}),this['disposeWithMe'](this[_0x7ec1df(0x2e9)][_0x7ec1df(0x3a7)](_0x457e9e=>{const _0x696eae=_0x7ec1df,_0x5f1f62=_0x457e9e['params'];_0x5f1f62!=null&&this[_0x696eae(0x146)]&&_0x457e9e['id']===V[_0x696eae(0x16b)]['id']&&_0x5f1f62['unitId']===this[_0x696eae(0x252)]&&_0x5f1f62[_0x696eae(0x251)]===!0x1&&_0x5f1f62[_0x696eae(0x193)][_0x696eae(0x23d)]>0x0&&this[_0x696eae(0x1b7)](_0x5f1f62[_0x696eae(0x193)]);})),this[_0x7ec1df(0x38e)]['collabCursorState$'][_0x7ec1df(0x168)](I[_0x7ec1df(0x2a0)](this[_0x7ec1df(0x33d)]))[_0x7ec1df(0x24c)](_0x512947=>{const _0x1ffbd2=_0x7ec1df;if((_0x512947==null?void 0x0:_0x512947[_0x1ffbd2(0x252)])!==this[_0x1ffbd2(0x252)])return;const _0x507a23={'eventID':g[_0x1ffbd2(0x1bf)]['UPDATE_CURSOR'],'data':_0x512947};this[_0x1ffbd2(0x360)](_0x507a23);}),this['disposeWithMe'](this[_0x7ec1df(0x2e9)][_0x7ec1df(0x3a7)](_0x9283af=>{const _0x80f42c=_0x7ec1df;if(_0x9283af['params']==null)return;const _0x28b1db=_0x9283af[_0x80f42c(0x1b3)];if(_0x9283af['id']!==V[_0x80f42c(0x17a)]['id']||_0x28b1db['unitId']!==this[_0x80f42c(0x252)])return;const _0x3ac329={'id':_0x80f42c(0x221),'params':_0x28b1db},_0x5835bd=this['cursorInfo'];for(const [_0x34b4dd,_0x4f924e]of _0x5835bd){const _0xc934e7={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4f924e[_0x80f42c(0x193)]}},_0x5b7642=this['_transformService'][_0x80f42c(0x347)](_0x3ac329,_0xc934e7,!0x1);if(g[_0x80f42c(0x126)](_0x5b7642))throw _0x5b7642[_0x80f42c(0x227)];_0x5835bd[_0x80f42c(0x15c)](_0x34b4dd,{..._0x4f924e,'ranges':_0x5b7642[_0x80f42c(0x212)][_0x80f42c(0x1b3)][_0x80f42c(0x320)]});}queueMicrotask(()=>{const _0x11f15d=_0x80f42c;this[_0x11f15d(0x153)][_0x11f15d(0x32d)](_0x5835bd);});})));}[_0x5e7409(0x360)](_0x52320b){const _0xfc4cae=_0x5e7409;var _0x18fde0,_0x40ef58;const {memberID:_0x40be95,selection:_0x14552a}=_0x52320b[_0xfc4cae(0x1dc)],_0x7e5abc=ht(_0x14552a),_0x6e7161=(_0x40ef58=(_0x18fde0=this[_0xfc4cae(0x1f8)]['getMember'](this[_0xfc4cae(0x252)],_0x40be95))==null?void 0x0:_0x18fde0['name'])!=null?_0x40ef58:'Unknown\x20user',_0x4c588c={'color':this[_0xfc4cae(0x2d5)][_0xfc4cae(0x1da)](_0x40be95),'name':_0x6e7161,'ranges':_0x7e5abc},_0x460793=this['cursorInfo'];_0x460793[_0xfc4cae(0x15c)](_0x40be95,_0x4c588c),this[_0xfc4cae(0x153)]['next'](_0x460793);}['_onCursorDelete'](_0x128539){const _0x47ef3e=_0x5e7409,{memberID:_0x298fdc}=_0x128539['data'],_0x594928=this[_0x47ef3e(0x2dd)];_0x594928[_0x47ef3e(0x35b)](_0x298fdc),this[_0x47ef3e(0x153)][_0x47ef3e(0x32d)](_0x594928);}[_0x5e7409(0x337)](){const _0xa284e3=_0x5e7409;var _0x586450;if(this['_online']=!0x0,((_0x586450=this[_0xa284e3(0x336)][_0xa284e3(0x3b4)]())==null?void 0x0:_0x586450[_0xa284e3(0x3b5)]())!==this['unitID'])return;const _0x477185=this[_0xa284e3(0x232)][_0xa284e3(0x22b)](V[_0xa284e3(0x318)])['getDocRanges']();Array[_0xa284e3(0x105)](_0x477185)&&_0x477185[_0xa284e3(0x23d)]>0x0&&this[_0xa284e3(0x1b7)](_0x477185);}[_0x5e7409(0x12c)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x5e7409(0x10a)](a['Injector'])),U(0x3,a[_0x5e7409(0x10a)](Re)),U(0x4,a[_0x5e7409(0x10a)](u[_0x5e7409(0x148)])),U(0x5,a[_0x5e7409(0x10a)](be)),U(0x6,g[_0x5e7409(0x3ae)]),U(0x7,a[_0x5e7409(0x119)]),U(0x8,a[_0x5e7409(0x366)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x5a6ea3,_0x1d7f62,_0x201651,_0x6f572f)=>{const _0x54c6e4=_0x5e7409;for(var _0x544fc4=_0x6f572f>0x1?void 0x0:_0x6f572f?ft(_0x1d7f62,_0x201651):_0x1d7f62,_0x25ab78=_0x5a6ea3[_0x54c6e4(0x23d)]-0x1,_0xf9fc01;_0x25ab78>=0x0;_0x25ab78--)(_0xf9fc01=_0x5a6ea3[_0x25ab78])&&(_0x544fc4=_0xf9fc01(_0x544fc4)||_0x544fc4);return _0x544fc4;},w=(_0x9542d5,_0xaf9eda)=>(_0x594b00,_0x5ee070)=>_0xaf9eda(_0x594b00,_0x5ee070,_0x9542d5);const vt=0x12c,gt=0x64,Et=()=>{let _0x8d8f94=[],_0x2f8bb8=!0x1;return _0x4537f6=>{const _0x11b617=_0x4e0e;_0x8d8f94[_0x11b617(0x2e2)](_0x4537f6),_0x2f8bb8||(_0x2f8bb8=!0x0,setTimeout(()=>{const _0x59577a=_0x11b617;_0x8d8f94[_0x59577a(0x2f8)](_0x3f1fe1=>_0x3f1fe1()),_0x8d8f94=[],_0x2f8bb8=!0x1;}));};};let ge=class extends a[_0x5e7409(0x2fe)]{constructor(_0x25405e,_0x13b508,_0x592568,_0x35ef57,_0x261838,_0x4d5665,_0x5b3f0a,_0x45c75f){const _0x4626b8=_0x5e7409;super(),_(this,_0x4626b8(0x146),!0x1),_(this,_0x4626b8(0x303),!0x1),_(this,_0x4626b8(0x153),new I['BehaviorSubject'](new Map())),_(this,_0x4626b8(0x1c3),this[_0x4626b8(0x153)][_0x4626b8(0x181)]()),_(this,'_roomMembers$',new I[(_0x4626b8(0x191))]([])),_(this,'roomMembers$',this[_0x4626b8(0x3b6)][_0x4626b8(0x168)](I['debounceTime'](vt))),_(this,'_updateLocalCursor',a[_0x4626b8(0x308)]((_0x656ef5,_0x5bdc4c)=>{const _0x4456e3=_0x4626b8,_0x858062={'eventID':g['CollaborationEvent'][_0x4456e3(0x377)],'data':{'unitID':this[_0x4456e3(0x252)],'memberID':this[_0x4456e3(0x240)][_0x4456e3(0x313)](),'selection':B[_0x4456e3(0x194)](_0x656ef5,_0x5bdc4c['range'])}};this[_0x4456e3(0x240)][_0x4456e3(0x138)](_0x858062,this[_0x4456e3(0x252)]);},gt)),(this['unitID']=_0x25405e,this[_0x4626b8(0x240)]=_0x13b508,this[_0x4626b8(0x232)]=_0x592568,this[_0x4626b8(0x2d5)]=_0x35ef57,this['_memberService']=_0x261838,this[_0x4626b8(0x336)]=_0x4d5665,this[_0x4626b8(0x2e9)]=_0x5b3f0a,this[_0x4626b8(0x25e)]=_0x45c75f);}get[_0x5e7409(0x2dd)](){const _0x3610e3=_0x5e7409;return this[_0x3610e3(0x153)][_0x3610e3(0x201)]();}get[_0x5e7409(0x1d3)](){const _0x2d0e10=_0x5e7409;return this[_0x2d0e10(0x3b6)][_0x2d0e10(0x201)]();}[_0x5e7409(0x3a1)](){const _0x4e3389=_0x5e7409;super[_0x4e3389(0x3a1)](),this['_cursorInfo$']['next'](new Map()),this[_0x4e3389(0x153)][_0x4e3389(0x1e8)](),this['_roomMembers$'][_0x4e3389(0x32d)]([]),this[_0x4e3389(0x3b6)]['complete']();}[_0x5e7409(0x36d)](){const _0x1c8115=_0x5e7409;this[_0x1c8115(0x303)]||(this[_0x1c8115(0x303)]=!0x0,this[_0x1c8115(0x240)][_0x1c8115(0x1ee)][_0x1c8115(0x168)](I[_0x1c8115(0x2a0)](this[_0x1c8115(0x33d)]))[_0x1c8115(0x24c)](_0x229b11=>{const _0x5d1253=_0x1c8115;_0x229b11===u[_0x5d1253(0x300)][_0x5d1253(0x2f2)]?this[_0x5d1253(0x337)]():this[_0x5d1253(0x12c)]();}),this[_0x1c8115(0x240)][_0x1c8115(0x3b8)][_0x1c8115(0x168)](I[_0x1c8115(0x2a0)](this[_0x1c8115(0x33d)]))[_0x1c8115(0x24c)](_0x4fbfd4=>{const _0x3cc5ed=_0x1c8115,_0x5a2a4c=_0x4fbfd4[_0x3cc5ed(0x288)];_0x5a2a4c===g[_0x3cc5ed(0x1bf)][_0x3cc5ed(0x377)]&&this[_0x3cc5ed(0x360)](_0x4fbfd4),_0x5a2a4c===g[_0x3cc5ed(0x1bf)]['USERS_LEAVE']&&this[_0x3cc5ed(0x22a)](_0x4fbfd4);}),this[_0x1c8115(0x3a0)](),this[_0x1c8115(0x361)](this[_0x1c8115(0x2e9)][_0x1c8115(0x3a7)](_0x5f06ab=>{const _0x530a06=_0x1c8115;if(this['_online']&&_0x5f06ab['id']===v[_0x530a06(0x34c)]['id']&&_0x5f06ab['params']['unitId']===this[_0x530a06(0x252)]){const _0x358be0=_0x5f06ab[_0x530a06(0x1b3)];this['_updateLocalCursor'](_0x358be0[_0x530a06(0x107)],_0x358be0[_0x530a06(0x3a5)][0x0]);}})));}[_0x5e7409(0x360)](_0x17a68e){const _0xaf2f3c=_0x5e7409;var _0x283b24,_0x2fa129;const {memberID:_0x42971d,selection:_0xb6b6ef}=_0x17a68e[_0xaf2f3c(0x1dc)],{sheetName:_0x25f7d5,range:_0x2a8a4b}=B['deserializeRangeWithSheet'](_0xb6b6ef),_0x334de3={'name':(_0x2fa129=(_0x283b24=this['_memberService'][_0xaf2f3c(0x34e)](this[_0xaf2f3c(0x252)],_0x42971d))==null?void 0x0:_0x283b24[_0xaf2f3c(0x113)])!=null?_0x2fa129:_0xaf2f3c(0x286),'range':this[_0xaf2f3c(0x260)](_0x25f7d5,_0x2a8a4b),'sheetID':_0x25f7d5,'color':this['_colorAssignService'][_0xaf2f3c(0x1da)](_0x42971d),'selection':_0xb6b6ef},_0x1089f2=this['cursorInfo'];_0x1089f2[_0xaf2f3c(0x15c)](_0x42971d,_0x334de3),this[_0xaf2f3c(0x153)][_0xaf2f3c(0x32d)](_0x1089f2);}[_0x5e7409(0x22a)](_0x550795){const _0x2e40b8=_0x5e7409,{memberID:_0x2a3117}=_0x550795['data'],_0x8e579f=this['cursorInfo'];_0x8e579f['delete'](_0x2a3117),this[_0x2e40b8(0x153)][_0x2e40b8(0x32d)](_0x8e579f);}[_0x5e7409(0x260)](_0x583078,_0x1852b5){const _0xcc733a=_0x5e7409;var _0x594563,_0xc8faa;const _0x11946a=(_0xc8faa=(_0x594563=this[_0xcc733a(0x336)]['getUniverSheetInstance'](this[_0xcc733a(0x252)]))==null?void 0x0:_0x594563[_0xcc733a(0x2a4)](_0x583078))==null?void 0x0:_0xc8faa[_0xcc733a(0x395)]();return(_0x11946a==null?void 0x0:_0x11946a[_0xcc733a(0x1a2)](_0x341e18=>a[_0xcc733a(0x140)][_0xcc733a(0x12b)](_0x341e18,_0x1852b5)))||_0x1852b5;}[_0x5e7409(0x3a0)](){const _0x48fdb6=_0x5e7409,_0x2d5748=new a[(_0x48fdb6(0x27a))](),_0x489cbf=Et(),_0x3a22c4=()=>{const _0x15e76e=_0x48fdb6;_0x2d5748[_0x15e76e(0x3a1)]();const _0x46bd00=(_0x38c956,_0x2bc9fb,_0x3f2a90,_0x897e65)=>{const _0x21dfce=_0x15e76e;let _0x4985da=[];switch(_0x38c956['id']){case v['EffectRefRangId'][_0x21dfce(0x278)]:{_0x4985da=v['handleDeleteRangeMoveLeft'](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x25c)]:{_0x4985da=v[_0x21dfce(0x334)](_0x38c956,_0x897e65);break;}case v['EffectRefRangId'][_0x21dfce(0x14d)]:{_0x4985da=v[_0x21dfce(0x14a)](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x256)]:{_0x4985da=v[_0x21dfce(0x3c8)](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x317)]:{_0x4985da=v[_0x21dfce(0x384)](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x349)]:{_0x4985da=v['handleInsertRow'](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x335)]:{_0x4985da=v[_0x21dfce(0x2d6)](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x1ed)]:{_0x4985da=v['handleIRemoveCol'](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x2ee)]:{_0x4985da=v[_0x21dfce(0x346)](_0x38c956,_0x897e65);break;}}const _0x45ca22=v[_0x21dfce(0x10c)](_0x4985da,_0x897e65),_0x5c2399=this[_0x21dfce(0x2dd)]['get'](_0x2bc9fb);if(_0x5c2399&&_0x45ca22){const _0x301eed={..._0x5c2399,'range':_0x45ca22};this[_0x21dfce(0x2dd)][_0x21dfce(0x15c)](_0x2bc9fb,_0x301eed),_0x489cbf(()=>{const _0x2fe30f=_0x21dfce,_0x353d9f=this[_0x2fe30f(0x25e)][_0x2fe30f(0x139)](_0x45ca22,_0x56e56f=>(_0x353d9f[_0x2fe30f(0x3a1)](),_0x46bd00(_0x56e56f,_0x2bc9fb,_0x3f2a90,_0x45ca22)));_0x2d5748['add'](_0x353d9f);});}return{'redos':[],'undos':[]};};this[_0x15e76e(0x2dd)][_0x15e76e(0x2f8)]((_0x697f4c,_0x1df836)=>{const _0x5e05f0=_0x15e76e,{range:_0xf9393f,sheetID:_0x5704b4}=_0x697f4c,_0x1acf75=this[_0x5e05f0(0x25e)][_0x5e05f0(0x139)](_0xf9393f,_0x596701=>(_0x1acf75[_0x5e05f0(0x3a1)](),_0x46bd00(_0x596701,_0x1df836,_0x5704b4,_0xf9393f)));_0x2d5748['add'](_0x1acf75);});};this[_0x48fdb6(0x361)](a['toDisposable'](this[_0x48fdb6(0x153)]['subscribe'](()=>{_0x3a22c4();})));}[_0x5e7409(0x337)](){const _0xb15eb6=_0x5e7409;var _0xfb9897,_0x1790df;if(this[_0xb15eb6(0x146)]=!0x0,((_0xfb9897=this[_0xb15eb6(0x336)]['getFocusedUnit']())==null?void 0x0:_0xfb9897[_0xb15eb6(0x3b5)]())!==this[_0xb15eb6(0x252)])return;const _0x364a0d=(_0x1790df=this['_injector'][_0xb15eb6(0x22b)](v[_0xb15eb6(0x293)])[_0xb15eb6(0x292)]())==null?void 0x0:_0x1790df[0x0],_0x324a9b=this[_0xb15eb6(0x336)]['getCurrentUnitForType'](a[_0xb15eb6(0x1fc)][_0xb15eb6(0x34f)])[_0xb15eb6(0x183)]();_0x364a0d&&_0x324a9b&&this[_0xb15eb6(0x1b7)](_0x324a9b[_0xb15eb6(0x351)](),_0x364a0d);}[_0x5e7409(0x12c)](){const _0x278ffc=_0x5e7409;this[_0x278ffc(0x146)]=!0x1;}};ge=mt([w(0x2,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),w(0x3,a[_0x5e7409(0x10a)](Re)),w(0x4,a[_0x5e7409(0x10a)](u[_0x5e7409(0x148)])),w(0x5,a[_0x5e7409(0x119)]),w(0x6,a[_0x5e7409(0x366)]),w(0x7,a[_0x5e7409(0x10a)](v[_0x5e7409(0x1e2)]))],ge);var Ct=Object[_0x5e7409(0x3ca)],pt=(_0x28795f,_0x48d077,_0x37f80f,_0x25918c)=>{const _0x1f5229=_0x5e7409;for(var _0x501e8c=_0x25918c>0x1?void 0x0:_0x25918c?Ct(_0x48d077,_0x37f80f):_0x48d077,_0x43bd7a=_0x28795f[_0x1f5229(0x23d)]-0x1,_0x414066;_0x43bd7a>=0x0;_0x43bd7a--)(_0x414066=_0x28795f[_0x43bd7a])&&(_0x501e8c=_0x414066(_0x501e8c)||_0x501e8c);return _0x501e8c;},ce=(_0x1dbba7,_0x2b1844)=>(_0x8943e9,_0x458ae1)=>_0x2b1844(_0x8943e9,_0x458ae1,_0x1dbba7);let F=class extends a[_0x5e7409(0x2fe)]{constructor(_0x20e375,_0x9b4368,_0x12e5fe){const _0x3223a3=_0x5e7409;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new I[(_0x3223a3(0x3b3))]()),(this[_0x3223a3(0x336)]=_0x20e375,this[_0x3223a3(0x232)]=_0x9b4368,this[_0x3223a3(0x15d)]=_0x12e5fe,this[_0x3223a3(0x303)]());}[_0x5e7409(0x3a1)](){const _0x5d5128=_0x5e7409;super[_0x5d5128(0x3a1)](),this[_0x5d5128(0x24f)][_0x5d5128(0x1e8)](),this[_0x5d5128(0x3c2)]['forEach'](_0x5dab11=>_0x5dab11[_0x5d5128(0x3a1)]());}[_0x5e7409(0x1d5)](_0x2dec44){const _0x41a63f=_0x5e7409;return this[_0x41a63f(0x3c2)][_0x41a63f(0x2ac)](_0x2dec44)?this[_0x41a63f(0x3c2)][_0x41a63f(0x22b)](_0x2dec44)[_0x41a63f(0x1c3)]:this[_0x41a63f(0x24f)]['pipe'](I[_0x41a63f(0x389)](_0x3d8fc7=>_0x3d8fc7['unitID']===_0x2dec44),I['switchMap'](_0x129fd9=>_0x129fd9[_0x41a63f(0x1c3)]));}['_init'](){const _0x10a537=_0x5e7409;this[_0x10a537(0x336)]['getTypeOfUnitAdded$'](a[_0x10a537(0x1fc)][_0x10a537(0x34f)])['pipe'](I[_0x10a537(0x2a0)](this['dispose$']))[_0x10a537(0x24c)](async _0x1b11a5=>{const _0x594827=_0x10a537,_0x115df7=_0x1b11a5['getUnitId'](),_0x3f8921=await this['_startSheetCollabCursor'](_0x115df7);this['_entityInit$']['next'](_0x3f8921),this[_0x594827(0x3c2)][_0x594827(0x15c)](_0x115df7,_0x3f8921);}),this[_0x10a537(0x336)]['getTypeOfUnitAdded$'](a[_0x10a537(0x1fc)][_0x10a537(0x273)])[_0x10a537(0x168)](I[_0x10a537(0x2a0)](this[_0x10a537(0x33d)]))['pipe'](I['filter'](_0x41ed78=>!_0x41ed78['getUnitId']()[_0x10a537(0x2f7)]('__')))[_0x10a537(0x24c)](async _0x93b713=>{const _0x1f8639=_0x10a537,_0x5220f1=_0x93b713['getUnitId'](),_0x31a920=await this[_0x1f8639(0x1a8)](_0x5220f1);this['_entityInit$']['next'](_0x31a920),this[_0x1f8639(0x3c2)][_0x1f8639(0x15c)](_0x5220f1,_0x31a920);}),I[_0x10a537(0x31b)](this[_0x10a537(0x336)][_0x10a537(0x279)](a[_0x10a537(0x1fc)]['UNIVER_DOC']),this[_0x10a537(0x336)][_0x10a537(0x279)](a['UniverInstanceType'][_0x10a537(0x34f)]))[_0x10a537(0x168)](I[_0x10a537(0x2a0)](this[_0x10a537(0x33d)]))[_0x10a537(0x24c)](_0x4e2384=>{const _0x3eadf5=_0x10a537,_0x1c756d=_0x4e2384['getUnitId'](),_0x5d1e17=this['_entities'][_0x3eadf5(0x22b)](_0x1c756d);_0x5d1e17&&(_0x5d1e17['dispose'](),this[_0x3eadf5(0x3c2)][_0x3eadf5(0x35b)](_0x1c756d));});}async[_0x5e7409(0x1f7)](_0x190296){const _0x1ee20c=_0x5e7409,_0x150709=await this[_0x1ee20c(0x15d)][_0x1ee20c(0x172)](_0x190296),_0x257dd9=this[_0x1ee20c(0x232)][_0x1ee20c(0x231)](ge,_0x190296,_0x150709);return _0x257dd9[_0x1ee20c(0x36d)](),_0x257dd9;}async[_0x5e7409(0x1a8)](_0x4a1a15){const _0x142bfc=_0x5e7409,_0x3c819a=await this[_0x142bfc(0x15d)][_0x142bfc(0x172)](_0x4a1a15),_0x13adbe=this[_0x142bfc(0x232)][_0x142bfc(0x231)](ve,_0x4a1a15,_0x3c819a);return _0x13adbe[_0x142bfc(0x36d)](),_0x13adbe;}};F=pt([ce(0x0,a[_0x5e7409(0x119)]),ce(0x1,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),ce(0x2,a[_0x5e7409(0x10a)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x4fc8a1,_0x2ff81d){const _0x5c36b0=_0x5e7409;let {radius:_0x1fa652,width:_0x206052,height:_0x5eb76b}=_0x2ff81d;_0x1fa652=_0x1fa652!=null?_0x1fa652:0x0,_0x206052=_0x206052!=null?_0x206052:0x1e,_0x5eb76b=_0x5eb76b!=null?_0x5eb76b:0x1e;let _0x53c6f7=0x0,_0x409189=0x0,_0x32cc65=0x0;_0x53c6f7=_0x409189=_0x32cc65=Math[_0x5c36b0(0x267)](_0x1fa652,_0x206052/0x2,_0x5eb76b/0x2),_0x4fc8a1[_0x5c36b0(0x31c)](),_0x4fc8a1[_0x5c36b0(0x23f)](_0x53c6f7,0x0),_0x4fc8a1[_0x5c36b0(0x269)](_0x206052-_0x409189,0x0),_0x4fc8a1[_0x5c36b0(0x19d)](_0x206052-_0x409189,_0x409189,_0x409189,Math['PI']*0x3/0x2,0x0,!0x1),_0x4fc8a1[_0x5c36b0(0x269)](_0x206052,_0x5eb76b-_0x32cc65),_0x4fc8a1['arc'](_0x206052-_0x32cc65,_0x5eb76b-_0x32cc65,_0x32cc65,0x0,Math['PI']/0x2,!0x1),_0x4fc8a1[_0x5c36b0(0x269)](0x0,_0x5eb76b),_0x4fc8a1['lineTo'](0x0,_0x53c6f7),_0x4fc8a1[_0x5c36b0(0x19d)](_0x53c6f7,_0x53c6f7,_0x53c6f7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4fc8a1[_0x5c36b0(0x11b)](),_0x2ff81d[_0x5c36b0(0x2cb)]&&(_0x4fc8a1[_0x5c36b0(0x37f)](),_0x4fc8a1[_0x5c36b0(0x28d)]=_0x2ff81d[_0x5c36b0(0x2cb)],_0x2ff81d[_0x5c36b0(0x2db)]==='evenodd'?_0x4fc8a1['fill'](_0x5c36b0(0x1f5)):_0x4fc8a1[_0x5c36b0(0x2cb)](),_0x4fc8a1['restore']());}class re extends C[_0x5e7409(0x306)]{constructor(_0x5f349b,_0xcb026e){const _0x1d10d0=_0x5e7409;super(_0x5f349b,_0xcb026e),_(this,'color'),_(this,_0x1d10d0(0x249)),(this['color']=_0xcb026e==null?void 0x0:_0xcb026e[_0x1d10d0(0x307)],this[_0x1d10d0(0x249)]=_0xcb026e==null?void 0x0:_0xcb026e['text']);}static['drawWith'](_0x35d632,_0x587582){const _0x4b6115=_0x5e7409,{text:_0x194310,color:_0x56938e}=_0x587582;_0x35d632[_0x4b6115(0x37f)](),_0x35d632['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x105f01=_0x35d632[_0x4b6115(0x158)](_0x194310)[_0x4b6115(0x2b1)],_0x3faf89=Math[_0x4b6115(0x267)](_0x105f01+0x2*le,Ue);Ot(_0x35d632,{'height':X,'radius':0x4,'width':_0x3faf89,'fill':_0x56938e}),_0x35d632[_0x4b6115(0x28d)]=_0x4b6115(0x31a);const _0x564831=le,_0x2f351d=X-Tt,_0x2c319f=Ue-0x2*le;if(_0x105f01>_0x2c319f){let _0xb505e4='',_0x4778eb=0x0;for(const _0xb0d963 of _0x194310){const _0x2e7cfc=_0x35d632[_0x4b6115(0x158)](_0xb0d963)[_0x4b6115(0x2b1)];if(_0x4778eb+_0x2e7cfc<=_0x2c319f-_0x35d632[_0x4b6115(0x158)](_0x4b6115(0x184))[_0x4b6115(0x2b1)])_0xb505e4+=_0xb0d963,_0x4778eb+=_0x2e7cfc;else{_0xb505e4+=_0x4b6115(0x184);break;}}_0x35d632[_0x4b6115(0x25a)](_0xb505e4,_0x564831,_0x2f351d);}else _0x35d632[_0x4b6115(0x25a)](_0x194310,_0x564831,_0x2f351d);_0x35d632[_0x4b6115(0x2a8)]();}[_0x5e7409(0x160)](_0x18ff4c){const _0x48689b=_0x5e7409;re[_0x48689b(0x224)](_0x18ff4c,this);}}const _e=_0x5e7409(0x206),Rt=_0x5e7409(0x1ef),bt=_0x5e7409(0x22e),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x5e7409(0x32f);class Le{constructor(_0x4f9a35,_0x9bcce1,_0x18d2e4,_0x5bc2cd){const _0x3a3bb5=_0x5e7409;_(this,'_shapes',[]),_(this,_0x3a3bb5(0x268),null),_(this,_0x3a3bb5(0x202),null),_(this,_0x3a3bb5(0x338),null),_(this,_0x3a3bb5(0x27d),null),_(this,_0x3a3bb5(0x111),null),(this[_0x3a3bb5(0x1b6)]=_0x4f9a35,this[_0x3a3bb5(0x101)]=_0x9bcce1,this[_0x3a3bb5(0x3bb)]=_0x18d2e4,this[_0x3a3bb5(0x19b)]=_0x5bc2cd,this[_0x3a3bb5(0x1e5)]());}set[_0x5e7409(0x133)](_0x3fca81){const _0x288ce4=_0x5e7409;_0x3fca81?(this[_0x288ce4(0x338)]&&this['_anchorDot']['hide'](),this[_0x288ce4(0x202)]&&this[_0x288ce4(0x202)]['show']()):(this[_0x288ce4(0x338)]&&this[_0x288ce4(0x338)][_0x288ce4(0x353)](),this[_0x288ce4(0x202)]&&this[_0x288ce4(0x202)]['hide']());}['dispose'](){const _0x5eeea0=_0x5e7409;for(const _0x41ef96 of this['_shapes'])_0x41ef96[_0x5eeea0(0x3a1)]();this[_0x5eeea0(0x202)]&&this[_0x5eeea0(0x202)][_0x5eeea0(0x3a1)](),this[_0x5eeea0(0x338)]&&this['_anchorDot'][_0x5eeea0(0x3a1)](),this[_0x5eeea0(0x268)]&&this[_0x5eeea0(0x268)][_0x5eeea0(0x3a1)](),this[_0x5eeea0(0x111)]&&this['_eventUnsubscribe']();}[_0x5e7409(0x1e5)](){const _0x130c2c=_0x5e7409;var _0x21377d;const {_docSkeleton:_0x554d9e,_document:_0x4772fa}=this,{color:_0x319936,name:_0x5d01f1,ranges:_0x2c2150}=this[_0x130c2c(0x1b6)],_0x1fe0b1=_0x4772fa['getOffsetConfig'](),{docsLeft:_0x4f3048,docsTop:_0x5a00fc}=_0x1fe0b1,_0x30be17=new p['NodePositionConvertToCursor'](_0x1fe0b1,_0x554d9e);for(const {startOffset:_0x3518fd,endOffset:_0x3d0fa8,rangeType:_0x4fdd2d,segmentId:_0x3909ba,segmentPage:_0x77da3e,collapsed:_0x189524,isActive:_0x267124}of _0x2c2150){const _0x582d5a=_0x554d9e[_0x130c2c(0x331)](_0x3518fd,!0x0,_0x3909ba,_0x77da3e);let _0x4b196f=_0x554d9e['findNodePositionByCharIndex'](_0x3d0fa8,!0x0,_0x3909ba,_0x77da3e);if(_0x4b196f==null&&(_0x4b196f=_0x554d9e[_0x130c2c(0x331)](_0x3d0fa8-0x1,!0x1,_0x3909ba,_0x77da3e)),_0x267124){const {contentBoxPointGroup:_0x53c3ae}=_0x30be17['getRangePointData'](_0x4b196f,_0x4b196f);if(_0x53c3ae[_0x130c2c(0x23d)]===0x0)continue;this[_0x130c2c(0x19c)](_0x319936,_0x53c3ae,_0x4f3048,_0x5a00fc,_0x5d01f1),this[_0x130c2c(0x111)]=this[_0x130c2c(0x163)]();}if(_0x582d5a&&_0x4b196f){if(_0x4fdd2d===a['DOC_RANGE_TYPE'][_0x130c2c(0x327)]){const _0x4184a6=new p[(_0x130c2c(0x3bc))](_0x1fe0b1,_0x554d9e),{pointGroup:_0x155a25}=(_0x21377d=_0x4184a6[_0x130c2c(0x356)](_0x582d5a,_0x4b196f))!=null?_0x21377d:{};if(_0x155a25==null||_0x155a25['length']===0x0)continue;this[_0x130c2c(0x239)](_0x319936,_0x155a25,_0x4f3048,_0x5a00fc);}else{if(!_0x189524){const {borderBoxPointGroup:_0x5a5499}=_0x30be17[_0x130c2c(0x356)](_0x582d5a,_0x4b196f);if(_0x5a5499['length']===0x0)continue;this['_drawTextRange'](_0x319936,_0x5a5499,_0x4f3048,_0x5a00fc);}}}}}[_0x5e7409(0x19c)](_0x228d03,_0x343445,_0x384f72,_0x193c72,_0x397eab){const _0x337616=_0x5e7409,_0x39e47c=this[_0x337616(0x1f4)](_0x343445),{left:_0x35b6fa,top:_0x5e4364,height:_0x15ed40}=_0x39e47c,_0x415a5f=this[_0x337616(0x103)](),_0x24094d=Nt/_0x415a5f,_0x88d274=new C['Rect'](_e+a[_0x337616(0x17d)](H),{'left':_0x35b6fa+_0x384f72-_0x24094d,'top':_0x5e4364+_0x193c72,'height':_0x15ed40,'width':Dt,'fill':_0x228d03||C[_0x337616(0x31d)](a[_0x337616(0x3ba)]['black'],0x0),'strokeWidth':_0x24094d,'stroke':Ut,'evented':!0x0});this[_0x337616(0x268)]=_0x88d274,this[_0x337616(0x101)]['addObject'](_0x88d274,p['TEXT_RANGE_LAYER_INDEX']);const _0x32f05a=new C['Rect'](_e+a[_0x337616(0x17d)](H),{'left':_0x35b6fa+_0x384f72-_0x24094d,'top':_0x5e4364+_0x193c72-he/0x2,'height':he,'width':he,'fill':_0x228d03||C[_0x337616(0x31d)](a[_0x337616(0x3ba)][_0x337616(0x387)],0x0),'strokeWidth':0x0,'stroke':_0x228d03||C[_0x337616(0x31d)](a[_0x337616(0x3ba)][_0x337616(0x387)],0x0),'evented':!0x1});this[_0x337616(0x338)]=_0x32f05a,this[_0x337616(0x101)][_0x337616(0x332)](_0x32f05a,p[_0x337616(0x16e)]);const _0x219647=new re(_e+a[_0x337616(0x17d)](H),{'left':_0x35b6fa+_0x384f72-_0x24094d,'top':_0x5e4364+_0x193c72-X,'text':_0x397eab,'color':_0x228d03});this[_0x337616(0x202)]=_0x219647,this[_0x337616(0x101)][_0x337616(0x332)](_0x219647,p[_0x337616(0x16e)]),this['_hover']=!0x1;}[_0x5e7409(0x163)](){const _0x4aef9d=_0x5e7409,_0x4cf1c6=this['_anchor'][_0x4aef9d(0x205)][_0x4aef9d(0x2b8)](()=>{const _0x5c5818=_0x4aef9d;this[_0x5c5818(0x133)]=!0x0;}),_0x2dba54=this[_0x4aef9d(0x268)][_0x4aef9d(0x22d)]['subscribeEvent'](()=>{const _0x5b4f1c=_0x4aef9d;this['_hideTimer']&&clearTimeout(this[_0x5b4f1c(0x27d)]),this[_0x5b4f1c(0x27d)]=setTimeout(()=>{const _0x30395f=_0x5b4f1c;this[_0x30395f(0x133)]=!0x1;},0x7d0);});return()=>{const _0x59823a=_0x4aef9d;_0x4cf1c6[_0x59823a(0x142)](),_0x2dba54[_0x59823a(0x142)]();};}[_0x5e7409(0x161)](_0x26b7ea,_0x1fb5f7,_0x5b57c2,_0x80e193){const _0x20c3c9=_0x5e7409,_0x12e1aa=new a['ColorKit'](_0x26b7ea)['setAlpha'](0.2)['toRgbString'](),_0xf6047a=new C[(_0x20c3c9(0x2c0))](Rt+a[_0x20c3c9(0x17d)](H),{'pointsGroup':_0x1fb5f7,'fill':_0x12e1aa||C[_0x20c3c9(0x31d)](a['COLORS']['black'],0.2),'left':_0x5b57c2,'top':_0x80e193,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20c3c9(0x1fb)][_0x20c3c9(0x2e2)](_0xf6047a),this[_0x20c3c9(0x101)][_0x20c3c9(0x332)](_0xf6047a,p[_0x20c3c9(0x16e)]);}[_0x5e7409(0x239)](_0x16e484,_0x297366,_0x4783e9,_0x1c4333){const _0x18b464=_0x5e7409,_0x262922=new a['ColorKit'](_0x16e484)[_0x18b464(0x37d)](0.2)[_0x18b464(0x21f)](),_0x229f89=new C['RegularPolygon'](bt+a[_0x18b464(0x17d)](H),{'pointsGroup':_0x297366,'fill':_0x262922||C[_0x18b464(0x31d)](a[_0x18b464(0x3ba)][_0x18b464(0x387)],0.2),'left':_0x4783e9,'top':_0x1c4333,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x18b464(0x1fb)]['push'](_0x229f89),this[_0x18b464(0x101)][_0x18b464(0x332)](_0x229f89,p[_0x18b464(0x16e)]);}[_0x5e7409(0x1f4)](_0x225542){const _0xaf0d4b=_0x225542[0x0],_0x142f25=_0xaf0d4b[0x0],_0x4fd08d=_0xaf0d4b[0x2],{x:_0x314828,y:_0x2b3c63}=_0x142f25,{x:_0x18a651,y:_0x394d65}=_0x4fd08d;return{'left':_0x314828,'top':_0x2b3c63,'width':_0x18a651-_0x314828,'height':_0x394d65-_0x2b3c63};}[_0x5e7409(0x103)](){const _0x25f904=_0x5e7409,{scaleX:_0x3e62ac,scaleY:_0x279ee5}=this[_0x25f904(0x101)][_0x25f904(0x210)]();return Math['max'](_0x3e62ac,_0x279ee5);}}var Lt=Object[_0x5e7409(0x3ca)],Mt=(_0x144c09,_0x5caa76,_0x38c06b,_0x8f84ed)=>{const _0x11089e=_0x5e7409;for(var _0x4de365=_0x8f84ed>0x1?void 0x0:_0x8f84ed?Lt(_0x5caa76,_0x38c06b):_0x5caa76,_0x162980=_0x144c09[_0x11089e(0x23d)]-0x1,_0x557994;_0x162980>=0x0;_0x162980--)(_0x557994=_0x144c09[_0x162980])&&(_0x4de365=_0x557994(_0x4de365)||_0x4de365);return _0x4de365;},q=(_0x40a416,_0x1401f0)=>(_0x488ba9,_0x10dfa1)=>_0x1401f0(_0x488ba9,_0x10dfa1,_0x40a416);let Ee=class extends a[_0x5e7409(0x2fe)]{constructor(_0x234831,_0x900286,_0x4cb2df,_0x58f23e,_0xc4afa5){const _0x344c20=_0x5e7409;super(),_(this,_0x344c20(0x28e),[]),_(this,_0x344c20(0x2fa),[]),(this[_0x344c20(0x24b)]=_0x234831,this[_0x344c20(0x3c5)]=_0x900286,this['_collabCursorController']=_0x4cb2df,this['_commandService']=_0x58f23e,this['_themeService']=_0xc4afa5,this[_0x344c20(0x303)]());}[_0x5e7409(0x303)](){const _0x284a4f=_0x5e7409,_0xc284d0=this[_0x284a4f(0x24b)][_0x284a4f(0x2c4)],_0x265c9f=this[_0x284a4f(0x3c5)];this[_0x284a4f(0x361)](I[_0x284a4f(0x3b9)]([this[_0x284a4f(0x22f)]['getCollabCursors$'](_0xc284d0),this[_0x284a4f(0x2af)]['currentTheme$']])[_0x284a4f(0x168)]($[_0x284a4f(0x173)](([_0x595cb9,_0x37b4f6])=>({'skeleton':_0x265c9f[_0x284a4f(0x23b)](),'cursors':[..._0x595cb9['values']()]['flatMap'](_0x5cbe3a=>({..._0x5cbe3a,'color':this['_themeService'][_0x284a4f(0x301)](_0x5cbe3a[_0x284a4f(0x307)])}))})))['subscribe'](_0xcbfc26=>{const _0x2a71bf=_0x284a4f;if(this['_removeCollabCursors'](),_0xcbfc26){const {skeleton:_0x27fec9,cursors:_0x3eeee0}=_0xcbfc26;this[_0x2a71bf(0x1ab)](_0x27fec9,_0x3eeee0);}})),this[_0x284a4f(0x219)](),this[_0x284a4f(0x1ae)]();}[_0x5e7409(0x1ab)](_0x53913d,_0x24db26){const _0x3b8de7=_0x5e7409,{scene:_0x2963f7,mainComponent:_0xa54f96}=this[_0x3b8de7(0x24b)],_0x3e0658=_0x24db26[_0x3b8de7(0x173)](_0x58e629=>new Le(_0x58e629,_0x2963f7,_0x53913d,_0xa54f96));this['_cursorShapes']=_0x3e0658,this[_0x3b8de7(0x2fa)]=_0x24db26;}[_0x5e7409(0x18b)](){const _0x479621=_0x5e7409;this[_0x479621(0x241)]();const {scene:_0x1c2be6,mainComponent:_0x2805a1}=this['_context'],_0x39ac07=this[_0x479621(0x3c5)][_0x479621(0x23b)](),_0x1f3006=this['_cursors'][_0x479621(0x173)](_0x57f288=>new Le(_0x57f288,_0x1c2be6,_0x39ac07,_0x2805a1));this['_cursorShapes']=_0x1f3006;}['_removeCollabCursors'](){const _0x5e1807=_0x5e7409;this[_0x5e1807(0x28e)][_0x5e1807(0x2f8)](_0x5e0046=>_0x5e0046[_0x5e1807(0x3a1)]()),this['_cursorShapes']=[];}[_0x5e7409(0x1ae)](){const _0x4dcd21=_0x5e7409,_0x3ccabb=[p['SetDocZoomRatioOperation']['id']];this[_0x4dcd21(0x361)](this[_0x4dcd21(0x2e9)][_0x4dcd21(0x3a7)](_0x1f23cb=>{const _0xbb1f57=_0x4dcd21;_0x3ccabb[_0xbb1f57(0x28a)](_0x1f23cb['id'])&&_0x1f23cb[_0xbb1f57(0x1b3)]['unitId']===this['_context'][_0xbb1f57(0x2c4)]&&this[_0xbb1f57(0x18b)]();}));}['_initResize'](){const _0x39271e=_0x5e7409;this[_0x39271e(0x361)](a['fromEventSubject'](this[_0x39271e(0x24b)][_0x39271e(0x215)][_0x39271e(0x19a)])[_0x39271e(0x168)]($['filter'](_0x5eb032=>_0x5eb032[_0x39271e(0x3ad)]===C[_0x39271e(0x302)][_0x39271e(0x2ce)]),$[_0x39271e(0x2b6)](0x10))['subscribe'](()=>{const _0xcca6c9=_0x39271e;this[_0xcca6c9(0x18b)]();}));}};Ee=Mt([q(0x1,a[_0x5e7409(0x10a)](V[_0x5e7409(0x266)])),q(0x2,a['Inject'](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x5e7409(0x10a)](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x151cdb,_0x4d532b){const _0x373371=_0x5e7409;super(_0x151cdb,_0x4d532b),_(this,_0x373371(0x217)),_(this,_0x373371(0x1fd),!0x1),_(this,'_range'),_(this,_0x373371(0x31f),''),_(this,_0x373371(0x3af),'top'),_(this,_0x373371(0x128)),(_0x4d532b&&this[_0x373371(0x104)](_0x4d532b),this[_0x373371(0x205)]['subscribeEvent'](()=>this[_0x373371(0x104)]({'hovered':!0x0})),this[_0x373371(0x22d)][_0x373371(0x2b8)](()=>this[_0x373371(0x104)]({'hovered':!0x1})));}['setShapeProps'](_0x16f9a0){const _0x5b374f=_0x5e7409;var _0x2752e5,_0x5ee610,_0x2f06ad,_0x2cb20a,_0x1fbedd,_0x238eb4;this['_color']=(_0x2752e5=_0x16f9a0['color'])!=null?_0x2752e5:this[_0x5b374f(0x217)],this[_0x5b374f(0x1fd)]=(_0x5ee610=_0x16f9a0[_0x5b374f(0x270)])!=null?_0x5ee610:this[_0x5b374f(0x1fd)],this[_0x5b374f(0x374)]=(_0x2f06ad=_0x16f9a0['range'])!=null?_0x2f06ad:this['_range'],this[_0x5b374f(0x31f)]=(_0x2cb20a=_0x16f9a0['name'])!=null?_0x2cb20a:this[_0x5b374f(0x31f)],this[_0x5b374f(0x3af)]=(_0x1fbedd=_0x16f9a0[_0x5b374f(0x1be)])!=null?_0x1fbedd:this[_0x5b374f(0x3af)],this['_backgroundColor']=(_0x238eb4=_0x16f9a0[_0x5b374f(0x1ad)])!=null?_0x238eb4:this[_0x5b374f(0x128)],this[_0x5b374f(0x2d3)]({'width':_0x16f9a0[_0x5b374f(0x2b1)],'height':_0x16f9a0[_0x5b374f(0x2ba)]});}[_0x5e7409(0x345)](_0x3a91ae){const _0x50fe2f=_0x5e7409,{row:_0x8f3999,column:_0x37d833}=_0x3a91ae;if(_0x8f3999>=this[_0x50fe2f(0x374)][_0x50fe2f(0x35f)]&&_0x8f3999<=this[_0x50fe2f(0x374)][_0x50fe2f(0x26d)]&&_0x37d833>=this[_0x50fe2f(0x374)][_0x50fe2f(0x247)]&&_0x37d833<=this['_range']['endColumn']){this[_0x50fe2f(0x104)]({'hovered':!0x0});return;}this[_0x50fe2f(0x104)]({'hovered':!0x1});}[_0x5e7409(0x129)](_0x259c3a){return!0x1;}[_0x5e7409(0x160)](_0x54cdba){const _0x32f174=_0x5e7409;C[_0x32f174(0x39e)][_0x32f174(0x224)](_0x54cdba,{'width':this[_0x32f174(0x2b1)],'height':this[_0x32f174(0x2ba)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x32f174(0x128)]}),this[_0x32f174(0x1fd)]&&(_0x54cdba[_0x32f174(0x37f)](),_0x54cdba['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x32f174(0x3af)]===_0x32f174(0x166)?0x0:-X),re['drawWith'](_0x54cdba,{'text':this[_0x32f174(0x31f)],'color':this[_0x32f174(0x217)]}),_0x54cdba['restore']());}}function _0x4e0e(_0x39a72d,_0x5a0938){const _0x5a7d1f=_0x5a7d();return _0x4e0e=function(_0x4e0e82,_0x4daa6d){_0x4e0e82=_0x4e0e82-0x100;let _0x680604=_0x5a7d1f[_0x4e0e82];return _0x680604;},_0x4e0e(_0x39a72d,_0x5a0938);}var wt=Object[_0x5e7409(0x3ca)],yt=(_0x129a0d,_0x3f2d65,_0x1e3ca0,_0x18d01e)=>{const _0x1b4f99=_0x5e7409;for(var _0x1b393f=_0x18d01e>0x1?void 0x0:_0x18d01e?wt(_0x3f2d65,_0x1e3ca0):_0x3f2d65,_0x3ec8bf=_0x129a0d[_0x1b4f99(0x23d)]-0x1,_0x1c01b5;_0x3ec8bf>=0x0;_0x3ec8bf--)(_0x1c01b5=_0x129a0d[_0x3ec8bf])&&(_0x1b393f=_0x1c01b5(_0x1b393f)||_0x1b393f);return _0x1b393f;},ue=(_0x49465a,_0xb08fe0)=>(_0x55b66b,_0x3c4c22)=>_0xb08fe0(_0x55b66b,_0x3c4c22,_0x49465a);const $t=0x1389;let Ce=class extends a[_0x5e7409(0x2fe)]{constructor(_0x1c4974,_0x47fad3,_0xb72ad6,_0x361000){const _0x33773a=_0x5e7409;super(),_(this,_0x33773a(0x2fa),new Set()),_(this,_0x33773a(0x32b),null),(this[_0x33773a(0x24b)]=_0x1c4974,this['_sheetSkeletonManagerService']=_0x47fad3,this['_collabCursorController']=_0xb72ad6,this[_0x33773a(0x2af)]=_0x361000,this[_0x33773a(0x303)]());}['_init'](){const _0x46151b=_0x5e7409;this[_0x46151b(0x2f3)]['currentSkeleton$'][_0x46151b(0x168)]($[_0x46151b(0x2a0)](this[_0x46151b(0x33d)]),$[_0x46151b(0x2ad)](_0x745ac1=>{const _0x22e48e=_0x46151b;if(_0x745ac1){const _0x1315f8=_0x745ac1[_0x22e48e(0x254)];return I[_0x22e48e(0x3b9)](this[_0x22e48e(0x22f)][_0x22e48e(0x1d5)](this[_0x22e48e(0x24b)][_0x22e48e(0x2c4)]),this[_0x22e48e(0x2af)][_0x22e48e(0x1e6)])[_0x22e48e(0x168)]($[_0x22e48e(0x173)](([_0x4ba4ed,_0xdd33f6])=>{const _0x25042e=_0x22e48e,_0x36dded=new Map();return _0x4ba4ed[_0x25042e(0x2f8)]((_0x216926,_0xfc7abc)=>{const _0xca8037=_0x25042e;if(_0x216926['sheetID']===_0x1315f8){const _0x1befa0={..._0x216926};_0x1befa0[_0xca8037(0x307)]=this[_0xca8037(0x2af)][_0xca8037(0x301)](_0x216926[_0xca8037(0x307)]),_0x36dded[_0xca8037(0x15c)](_0xfc7abc,_0x1befa0);}}),{'skeleton':_0x745ac1,'cursors':_0x36dded};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x46151b(0x24c)](({skeleton:_0x738312,cursors:_0x42ef85})=>{const _0x387d52=_0x46151b;this['_removeCollabCursors'](),_0x738312&&this[_0x387d52(0x1ab)](_0x738312,_0x42ef85);}),this[_0x46151b(0x2f3)][_0x46151b(0x157)][_0x46151b(0x24c)](_0x3e9b46=>{const _0x2501d0=_0x46151b;if(_0x3e9b46==null)return;const {skeleton:_0x162f48}=_0x3e9b46,{scene:_0x44553b}=this[_0x2501d0(0x24b)];_0x44553b['onPointerMove$']['subscribeEvent'](a[_0x2501d0(0x308)](_0x99fe42=>{const _0x54ad68=_0x2501d0;var _0x5e8557,_0x10def5;const {offsetX:_0x31fc4f,offsetY:_0x592881}=_0x99fe42,{x:_0x3ae43e,y:_0x3908cb}=_0x44553b[_0x54ad68(0x1bc)](C[_0x54ad68(0x283)][_0x54ad68(0x2b3)]([_0x31fc4f,_0x592881])),{scaleX:_0x50f377,scaleY:_0x1f30d8}=_0x44553b[_0x54ad68(0x210)](),_0x319a86=_0x44553b['getViewport'](C[_0x54ad68(0x26c)]['VIEW_MAIN']),_0x2f883f=_0x44553b['getVpScrollXYInfoByPosToVp'](C['Vector2'][_0x54ad68(0x2b3)]([_0x3ae43e,_0x3908cb]),_0x319a86),_0x4afbba=_0x162f48[_0x54ad68(0x3aa)](_0x31fc4f,_0x592881,_0x50f377,_0x1f30d8,_0x2f883f);((_0x5e8557=this[_0x54ad68(0x32b)])==null?void 0x0:_0x5e8557[_0x54ad68(0x299)])===_0x4afbba[_0x54ad68(0x299)]&&((_0x10def5=this[_0x54ad68(0x32b)])==null?void 0x0:_0x10def5['row'])===_0x4afbba['row']||this[_0x54ad68(0x2fa)][_0x54ad68(0x2f8)](_0x286577=>{const _0x52f8b4=_0x54ad68;_0x286577[_0x52f8b4(0x345)](_0x4afbba);});},0x64));});}['_updateCollabCursors'](_0x5c13fc,_0x65c22a){const _0x4b253a=_0x5e7409;var _0x45e748;const _0x27a95f=(_0x45e748=this['_sheetSkeletonManagerService'][_0x4b253a(0x15b)]())==null?void 0x0:_0x45e748[_0x4b253a(0x329)];if(!_0x27a95f)return;const _0x2510aa=this[_0x4b253a(0x174)]();if(!_0x2510aa)return;this['_cursors'][_0x4b253a(0x2f8)](_0x428a96=>{const _0x1299e3=_0x4b253a;_0x428a96[_0x1299e3(0x2de)]();});const {scene:_0x53a7ac}=_0x2510aa,_0x13a452=xt(Array[_0x4b253a(0x3bf)](_0x65c22a[_0x4b253a(0x26f)]()))[_0x4b253a(0x173)](_0x58beb0=>{const _0x4aae87=_0x4b253a,{color:_0x42e9c1,range:_0x50611e,name:_0x2ad4db,selection:_0x2a7e77,sheetID:_0x2ee4fa}=_0x58beb0,{startColumn:_0x5a40af,startRow:_0x53e319,endColumn:_0x45e49d,endRow:_0x331e3e}=_0x50611e,_0x465c8b=J[_0x4aae87(0x392)](_0x53e319,_0x5a40af,_0x53a7ac,_0x27a95f),_0x19df4d=J[_0x4aae87(0x392)](_0x331e3e,_0x45e49d,_0x53a7ac,_0x27a95f),{columnHeaderHeightAndMarginTop:_0xd57fa2}=_0x27a95f,{startX:_0x3a7f64,startY:_0x2cefe3}=_0x465c8b,{endX:_0x110c5b,endY:_0x46d094}=_0x19df4d,_0x407797=_0x110c5b-_0x3a7f64,_0x2aa6fe=_0x46d094-_0x2cefe3,_0x190b9b={'labelPosition':_0x2cefe3-_0xd57fa2>=X?'top':_0x4aae87(0x166),'sheetID':_0x2ee4fa,'range':_0x50611e,'color':_0x42e9c1,'name':_0x2ad4db,'selection':_0x2a7e77,'left':_0x3a7f64,'top':_0x2cefe3,'width':_0x407797,'height':_0x2aa6fe,'evented':!0x1,'zIndex':$t};return new je(_0x2ad4db,_0x190b9b);});_0x53a7ac['addObjects'](_0x13a452,At),this[_0x4b253a(0x2fa)]=new Set(_0x13a452);}[_0x5e7409(0x241)](){const _0x3493e7=_0x5e7409;var _0x5238f9;(_0x5238f9=this['_cursors'])==null||_0x5238f9[_0x3493e7(0x2f8)](_0x2f80fc=>_0x2f80fc[_0x3493e7(0x3a1)]());}[_0x5e7409(0x174)](){const _0x64fca8=_0x5e7409;return J[_0x64fca8(0x31e)](this[_0x64fca8(0x24b)][_0x64fca8(0x3a9)],this['_context']);}};Ce=yt([ue(0x1,a['Inject'](J['SheetSkeletonManagerService'])),ue(0x2,a['Inject'](F)),ue(0x3,a[_0x5e7409(0x10a)](a[_0x5e7409(0x35e)]))],Ce);function xt(_0x52c44b){const _0x71209f=_0x5e7409,_0x38d662=new Map();return _0x52c44b['forEach'](_0x3eeb3c=>{const _0x2d2985=_0x4e0e;if(_0x38d662[_0x2d2985(0x2ac)](_0x3eeb3c[_0x2d2985(0x2be)])){const _0x5dae76=_0x38d662['get'](_0x3eeb3c[_0x2d2985(0x2be)]);_0x5dae76[_0x2d2985(0x113)]+=',\x20'+_0x3eeb3c[_0x2d2985(0x113)];}else _0x38d662[_0x2d2985(0x15c)](_0x3eeb3c[_0x2d2985(0x2be)],_0x3eeb3c);}),Array[_0x71209f(0x3bf)](_0x38d662[_0x71209f(0x26f)]());}var Bt=Object[_0x5e7409(0x3ca)],Ft=(_0x3024d8,_0x34e47e,_0x739ce5,_0x1dc346)=>{for(var _0x243738=_0x1dc346>0x1?void 0x0:_0x1dc346?Bt(_0x34e47e,_0x739ce5):_0x34e47e,_0x38f166=_0x3024d8['length']-0x1,_0x5d82d7;_0x38f166>=0x0;_0x38f166--)(_0x5d82d7=_0x3024d8[_0x38f166])&&(_0x243738=_0x5d82d7(_0x243738)||_0x243738);return _0x243738;},y=(_0x4d80b8,_0x35f478)=>(_0x56e274,_0x1e51f8)=>_0x35f478(_0x56e274,_0x1e51f8,_0x4d80b8);let Z=class extends a[_0x5e7409(0x3c4)]{constructor(_0x3ef1bf,_0x5893f4,_0x57a7c7,_0x2d55e,_0x267292,_0x520454){const _0x53c52a=_0x5e7409;super(),this[_0x53c52a(0x2e3)]=_0x3ef1bf,this[_0x53c52a(0x22c)]=_0x5893f4,this[_0x53c52a(0x277)]=_0x57a7c7,this['_messageService']=_0x2d55e,this[_0x53c52a(0x39f)]=_0x267292,this[_0x53c52a(0x33f)]=_0x520454,this['_setupBeforeClosingHandler'](),this[_0x53c52a(0x2dc)]();}[_0x5e7409(0x38d)](){const _0x39aaa9=_0x5e7409;this[_0x39aaa9(0x361)](this[_0x39aaa9(0x2e3)]['registerBeforeClose'](()=>{const _0x7535a1=_0x39aaa9;if(this[_0x7535a1(0x22c)][_0x7535a1(0x2ed)][_0x7535a1(0x2f0)])return this[_0x7535a1(0x33f)]['t'](_0x7535a1(0x262));}));}[_0x5e7409(0x2dc)](){const _0x4c2a3d=_0x5e7409;this[_0x4c2a3d(0x361)](this[_0x4c2a3d(0x277)][_0x4c2a3d(0x3b8)][_0x4c2a3d(0x24c)](_0x1e5ae8=>{const _0x382b7f=_0x4c2a3d;_0x1e5ae8['id']===u[_0x382b7f(0x204)][_0x382b7f(0x2cd)]&&this[_0x382b7f(0x33b)][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)]['Warning'],'content':this[_0x382b7f(0x33f)]['t'](_0x382b7f(0x2b9))}),_0x1e5ae8['id']===u[_0x382b7f(0x204)]['CLOSE_ROOM']&&this['_messageService'][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)][_0x382b7f(0x37a)],'content':this['_localeService']['t'](_0x382b7f(0x17c))}),_0x1e5ae8['id']===u[_0x382b7f(0x204)][_0x382b7f(0x16a)]&&this['_notificationService'][_0x382b7f(0x353)]({'title':this['_localeService']['t'](_0x382b7f(0x1de)),'content':this['_localeService']['t']('permission.content'),'type':_0x382b7f(0x227),'duration':0x0}),_0x1e5ae8['id']===u['CollaborationUIEventId'][_0x382b7f(0x14b)]&&this['_messageService'][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)]['Error'],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x1e5ae8[_0x382b7f(0x1dc)]+')'}),_0x1e5ae8['id']===u[_0x382b7f(0x204)][_0x382b7f(0x2eb)]&&this[_0x382b7f(0x33b)]['show']({'type':T['MessageType'][_0x382b7f(0x37a)],'content':this['_localeService']['t'](_0x1e5ae8['data']||'')}),_0x1e5ae8['id']===u[_0x382b7f(0x204)][_0x382b7f(0x13d)]&&this[_0x382b7f(0x33b)][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)][_0x382b7f(0x37a)],'content':this[_0x382b7f(0x33f)]['t'](_0x382b7f(0x230))}),_0x1e5ae8['id']===u['CollaborationUIEventId'][_0x382b7f(0x304)]&&this[_0x382b7f(0x33b)]['show']({'type':T[_0x382b7f(0x365)][_0x382b7f(0x393)],'content':this[_0x382b7f(0x33f)]['t'](_0x382b7f(0x2f4))}),_0x1e5ae8['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x382b7f(0x33b)][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)][_0x382b7f(0x393)],'content':this[_0x382b7f(0x33f)]['t'](_0x382b7f(0x182))});}));}};Z=Ft([y(0x0,O[_0x5e7409(0x1d2)]),y(0x1,u[_0x5e7409(0x137)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x5e7409(0x18c)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x5e7409(0x359)]))],Z);var jt=Object[_0x5e7409(0x3ca)],kt=(_0x39c175,_0x27b384,_0x492501,_0x483262)=>{const _0x44d4ab=_0x5e7409;for(var _0x402d05=_0x483262>0x1?void 0x0:_0x483262?jt(_0x27b384,_0x492501):_0x27b384,_0x45fbd0=_0x39c175[_0x44d4ab(0x23d)]-0x1,_0x38aa7d;_0x45fbd0>=0x0;_0x45fbd0--)(_0x38aa7d=_0x39c175[_0x45fbd0])&&(_0x402d05=_0x38aa7d(_0x402d05)||_0x402d05);return _0x402d05;},z=(_0x32acf4,_0x3ba361)=>(_0x4e4bd6,_0xbe8375)=>_0x3ba361(_0x4e4bd6,_0xbe8375,_0x32acf4);let Q=class extends a['Disposable']{constructor(_0x5c9f4e,_0x3999fa,_0x1b3d51,_0x2d4799){const _0x493b05=_0x5e7409;super(),_(this,_0x493b05(0x16c)),(this[_0x493b05(0x232)]=_0x5c9f4e,this[_0x493b05(0x2f9)]=_0x3999fa,this[_0x493b05(0x28b)]=_0x1b3d51,this[_0x493b05(0x315)]=_0x2d4799,this[_0x493b05(0x303)]());}['_init'](){const _0x56b2f0=_0x5e7409;this[_0x56b2f0(0x13a)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x56b2f0(0x1cf)]();}[_0x5e7409(0x1cf)](){const _0x2c1d4e=_0x5e7409;this[_0x2c1d4e(0x361)](this[_0x2c1d4e(0x315)][_0x2c1d4e(0x296)][_0x2c1d4e(0x24c)](_0x38696a=>{const _0x4b91a7=_0x2c1d4e;this['_memberID']=_0x38696a==null?void 0x0:_0x38696a[_0x4b91a7(0x259)];}));}[_0x5e7409(0x13a)](){const _0x24858c=_0x5e7409,_0x4c26cb=_0x23ba30=>{const _0x5e1d12=_0x4e0e;var _0x3a7688;this['_uploadLog'](_0x5e1d12(0x227),_0x5e1d12(0x2a2)+_0x23ba30[_0x5e1d12(0x298)]+_0x5e1d12(0x297)+_0x23ba30[_0x5e1d12(0x340)]+':'+_0x23ba30[_0x5e1d12(0x333)]+':'+_0x23ba30[_0x5e1d12(0x35c)]+'\x0a'+(((_0x3a7688=_0x23ba30[_0x5e1d12(0x227)])==null?void 0x0:_0x3a7688[_0x5e1d12(0x264)])||''));};window[_0x24858c(0x246)](_0x24858c(0x227),_0x4c26cb),this[_0x24858c(0x361)](()=>{const _0x1e0ff8=_0x24858c;window[_0x1e0ff8(0x1a9)]('error',_0x4c26cb);});}[_0x5e7409(0x19f)](){const _0x1cb035=_0x5e7409,_0x386881=_0x553952=>{const _0x3745e8=_0x4e0e;this[_0x3745e8(0x376)](_0x3745e8(0x227),_0x3745e8(0x36e)+_0x553952['reason']);};window['addEventListener'](_0x1cb035(0x1d7),_0x386881),this[_0x1cb035(0x361)](()=>{const _0x53806d=_0x1cb035;window[_0x53806d(0x1a9)](_0x53806d(0x1d7),_0x386881);});}['_monkeyPatchLogService'](){const _0x5f2a16=_0x5e7409,_0x1194af=this[_0x5f2a16(0x28b)][_0x5f2a16(0x227)][_0x5f2a16(0x1b9)](this['_logService']);this[_0x5f2a16(0x28b)][_0x5f2a16(0x227)]=(..._0x4a942c)=>{const _0x43beec=_0x5f2a16,_0x19bd95=_0x4a942c[_0x43beec(0x173)](_0x29f84d=>_0x29f84d instanceof Error?_0x29f84d[_0x43beec(0x298)]+'\x0a'+_0x29f84d['stack']:String(_0x29f84d))[_0x43beec(0x124)]('\x20');this[_0x43beec(0x376)](_0x43beec(0x227),_0x43beec(0x2a1)+_0x19bd95),_0x1194af(..._0x4a942c);},this[_0x5f2a16(0x361)](()=>{const _0x183400=_0x5f2a16;this['_logService'][_0x183400(0x227)]=_0x1194af;});}[_0x5e7409(0x376)](_0x150ab9,_0x50b963){const _0x1ba1a9=_0x5e7409;try{const _0x2b5a2f={'userId':this['_memberID'],'logLabel':_0x150ab9,'content':_0x50b963};this['_httpService'][_0x1ba1a9(0x355)](_0x1ba1a9(0x17f),{'body':_0x2b5a2f})[_0x1ba1a9(0x192)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x5e7409(0x10a)](a['Injector'])),z(0x1,a[_0x5e7409(0x10a)](x['HTTPService'])),z(0x2,a[_0x5e7409(0x314)]),z(0x3,a[_0x5e7409(0x10a)](u['CollaborationSessionService']))],Q);const Yt=_0x5e7409(0x1a6),Me={};var Ht=Object[_0x5e7409(0x3ca)],Wt=(_0x17c843,_0x5130fb,_0x55f4a0,_0x5617f4)=>{const _0x498367=_0x5e7409;for(var _0x545b60=_0x5617f4>0x1?void 0x0:_0x5617f4?Ht(_0x5130fb,_0x55f4a0):_0x5130fb,_0x49d79d=_0x17c843[_0x498367(0x23d)]-0x1,_0x25aa83;_0x49d79d>=0x0;_0x49d79d--)(_0x25aa83=_0x17c843[_0x49d79d])&&(_0x545b60=_0x25aa83(_0x545b60)||_0x545b60);return _0x545b60;},Ae=(_0x444d38,_0x561404)=>(_0x56b8b7,_0x59756e)=>_0x561404(_0x56b8b7,_0x59756e,_0x444d38);let ee=class{constructor(_0x4578cc,_0x1f3d34){const _0x44dd4c=_0x5e7409;this[_0x44dd4c(0x198)]=_0x4578cc,this[_0x44dd4c(0x11f)]=_0x1f3d34;}[_0x5e7409(0x368)](_0x84be15){const _0x1b4f29=_0x5e7409;this[_0x1b4f29(0x379)](_0x84be15),this[_0x1b4f29(0x2b7)](_0x84be15);}[_0x5e7409(0x102)](_0x4ee8fe){const _0x32f941=_0x5e7409,{unitID:_0x3b049f}=_0x4ee8fe,_0xd11412=this['_renderManagerService']['getRenderById'](_0x3b049f)[_0x32f941(0x1a1)](p['DocIMEInputManagerService']),{redoCache:_0xff173}=_0xd11412[_0x32f941(0x21a)]();if(_0xff173[_0x32f941(0x23d)]===0x0)return _0x4ee8fe;let _0x3c612f=a[_0x32f941(0x32c)]['deepClone'](_0x4ee8fe[_0x32f941(0x1f3)][0x0]);for(let _0xdd2bf4=0x0;_0xdd2bf4<_0xff173['length'];_0xdd2bf4++){const _0x5f30ef={'id':_0x32f941(0x221),'params':{..._0xff173[_0xdd2bf4]}},_0x17a5d3=this['_transformService'][_0x32f941(0x347)](_0x3c612f,_0x5f30ef,!0x1);if(g[_0x32f941(0x126)](_0x17a5d3))throw _0x17a5d3[_0x32f941(0x227)];_0x3c612f=_0x17a5d3[_0x32f941(0x29b)];}return{...a[_0x32f941(0x32c)][_0x32f941(0x1b5)](_0x4ee8fe),'mutations':[_0x3c612f]};}[_0x5e7409(0x379)](_0x128dfc){const _0x16d7e3=_0x5e7409,{unitID:_0x48146e}=_0x128dfc,_0x46ac30=this[_0x16d7e3(0x11f)]['getRenderById'](_0x48146e)[_0x16d7e3(0x1a1)](p[_0x16d7e3(0x18e)]),{undoCache:_0x333ad8,redoCache:_0x242242}=_0x46ac30[_0x16d7e3(0x21a)]();if(_0x333ad8[_0x16d7e3(0x23d)]===0x0||_0x242242[_0x16d7e3(0x23d)]===0x0)return;const _0xbe3e13=[],_0x3fc462=[];let _0x2e6bc2=a['Tools'][_0x16d7e3(0x1b5)](_0x128dfc[_0x16d7e3(0x1f3)][0x0]),_0x263058=a[_0x16d7e3(0x32c)]['deepClone'](_0x128dfc[_0x16d7e3(0x1f3)][0x0]);for(let _0x2217b8=_0x333ad8[_0x16d7e3(0x23d)]-0x1;_0x2217b8>=0x0;_0x2217b8--){const _0x4c9757={'id':_0x16d7e3(0x221),'params':{..._0x333ad8[_0x2217b8]}},_0x119474={'id':'doc.mutation.rich-text-editing','params':{..._0x242242[_0x2217b8]}},_0x23ae6f=this['_transformService'][_0x16d7e3(0x347)](_0x2e6bc2,_0x4c9757,!0x1),_0x482cc9=this[_0x16d7e3(0x198)]['transformMutation'](_0x263058,_0x119474,!0x1);if(g['isTransformMutationFailure'](_0x23ae6f))throw _0x23ae6f[_0x16d7e3(0x227)];if(g[_0x16d7e3(0x126)](_0x482cc9))throw _0x482cc9[_0x16d7e3(0x227)];_0xbe3e13[_0x16d7e3(0x255)](_0x23ae6f[_0x16d7e3(0x212)][_0x16d7e3(0x1b3)]),_0x3fc462[_0x16d7e3(0x255)](_0x482cc9[_0x16d7e3(0x212)][_0x16d7e3(0x1b3)]),_0x2e6bc2=_0x23ae6f[_0x16d7e3(0x29b)],_0x263058=_0x482cc9[_0x16d7e3(0x29b)];}_0x46ac30[_0x16d7e3(0x14c)]({'undoCache':_0xbe3e13,'redoCache':_0x3fc462});}[_0x5e7409(0x2b7)](_0x4b34de){const _0x190ab7=_0x5e7409,{unitID:_0x250c6e}=_0x4b34de,_0x40cd37=this[_0x190ab7(0x11f)][_0x190ab7(0x261)](_0x250c6e)['with'](p[_0x190ab7(0x18e)]),_0x3f75c5=_0x40cd37[_0x190ab7(0x223)]();if(_0x3f75c5==null)return;const _0x54c693=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b34de['unitID'],'actions':null,'textRanges':[_0x3f75c5]}}],_0x54b9cc=this[_0x190ab7(0x198)]['transformMutationsWithChangeset'](_0x4b34de,_0x54c693);if(!g[_0x190ab7(0x3ab)](_0x54b9cc))throw _0x54b9cc[_0x190ab7(0x227)];const _0x5288c8=_0x54b9cc[_0x190ab7(0x212)][0x0]['params'][_0x190ab7(0x320)];Array[_0x190ab7(0x105)](_0x5288c8)&&_0x5288c8[_0x190ab7(0x23d)]&&_0x40cd37[_0x190ab7(0x3c9)](_0x5288c8[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x5e7409(0x3ca)],Gt=(_0x544d4d,_0x186dd5,_0x2cd561,_0x511122)=>{const _0x1fea9f=_0x5e7409;for(var _0x291272=_0x511122>0x1?void 0x0:_0x511122?Vt(_0x186dd5,_0x2cd561):_0x186dd5,_0x546840=_0x544d4d[_0x1fea9f(0x23d)]-0x1,_0x254df8;_0x546840>=0x0;_0x546840--)(_0x254df8=_0x544d4d[_0x546840])&&(_0x291272=_0x254df8(_0x291272)||_0x291272);return _0x291272;},Ie=(_0x11e83c,_0x323f8e)=>(_0x2acf06,_0x106d8f)=>_0x323f8e(_0x2acf06,_0x106d8f,_0x11e83c);let te=class{constructor(_0x484480,_0x5a37be,_0x290016){const _0x1018d3=_0x5e7409;this['_injector']=_0x484480,this[_0x1018d3(0x198)]=_0x5a37be,this[_0x1018d3(0x190)]=_0x290016;}['transformStateCache'](_0x138541){const _0x245797=_0x5e7409;this[_0x245797(0x12e)](_0x138541);}['transformRemoteChangeset'](_0x114f32){const _0x4687f0=_0x5e7409,{unitID:_0x594665}=_0x114f32,{collaboration:_0x3006aa}=this[_0x4687f0(0x190)][_0x4687f0(0x222)](_0x594665);if(_0x3006aa[_0x4687f0(0x23d)]===0x0)return _0x114f32;let _0x50c899=a[_0x4687f0(0x32c)][_0x4687f0(0x1b5)](_0x114f32[_0x4687f0(0x1f3)][0x0]);for(let _0x32c331=0x0;_0x32c331<_0x3006aa['length'];_0x32c331++){const _0x1ff7c7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3006aa[_0x32c331][_0x4687f0(0x2c4)],..._0x3006aa[_0x32c331][_0x4687f0(0x372)]}},_0x38fcf2=this[_0x4687f0(0x198)][_0x4687f0(0x347)](_0x50c899,_0x1ff7c7,!0x1);if(g['isTransformMutationFailure'](_0x38fcf2))throw _0x38fcf2[_0x4687f0(0x227)];_0x50c899=_0x38fcf2[_0x4687f0(0x29b)];}return{...a['Tools']['deepClone'](_0x114f32),'mutations':[_0x50c899]};}[_0x5e7409(0x12e)](_0xab3387){const _0x6603e0=_0x5e7409,{unitID:_0x1e827f}=_0xab3387,{history:_0x436111,collaboration:_0x225831}=this[_0x6603e0(0x190)]['getStateCache'](_0x1e827f);if(_0x436111['length']===0x0&&_0x225831[_0x6603e0(0x23d)]===0x0)return;const _0x1adc68=[],_0x49adde=[];let _0x296959=a[_0x6603e0(0x32c)][_0x6603e0(0x1b5)](_0xab3387[_0x6603e0(0x1f3)][0x0]),_0x31200d=a[_0x6603e0(0x32c)][_0x6603e0(0x1b5)](_0xab3387[_0x6603e0(0x1f3)][0x0]);for(let _0x33dc36=_0x436111['length']-0x1;_0x33dc36>=0x0;_0x33dc36--){const _0x214015={'id':_0x6603e0(0x221),'params':{'unitId':_0x436111[_0x33dc36][_0x6603e0(0x2c4)],..._0x436111[_0x33dc36][_0x6603e0(0x27f)]}},_0xf18f41={'id':_0x6603e0(0x221),'params':{'unitId':_0x436111[_0x33dc36]['unitId'],..._0x436111[_0x33dc36][_0x6603e0(0x372)]}},_0x3635d8=this['_transformService'][_0x6603e0(0x347)](_0x296959,_0x214015,!0x1),_0x36166f=this[_0x6603e0(0x198)][_0x6603e0(0x347)](_0x31200d,_0xf18f41,!0x1);if(g['isTransformMutationFailure'](_0x3635d8))throw _0x3635d8[_0x6603e0(0x227)];if(g[_0x6603e0(0x126)](_0x36166f))throw _0x36166f[_0x6603e0(0x227)];_0x1adc68[_0x6603e0(0x255)]({..._0x436111[_0x33dc36],'undoState':_0x3635d8[_0x6603e0(0x212)][_0x6603e0(0x1b3)],'redoState':_0x36166f[_0x6603e0(0x212)]['params']}),_0x296959=_0x3635d8[_0x6603e0(0x29b)],_0x31200d=_0x36166f['m1Prime'];}_0x296959=a['Tools'][_0x6603e0(0x1b5)](_0xab3387[_0x6603e0(0x1f3)][0x0]),_0x31200d=a[_0x6603e0(0x32c)][_0x6603e0(0x1b5)](_0xab3387[_0x6603e0(0x1f3)][0x0]);for(let _0x17c976=_0x225831['length']-0x1;_0x17c976>=0x0;_0x17c976--){const _0x1dfe9c={'id':_0x6603e0(0x221),'params':{'unitId':_0x225831[_0x17c976][_0x6603e0(0x2c4)],..._0x225831[_0x17c976][_0x6603e0(0x27f)]}},_0x41e93a={'id':_0x6603e0(0x221),'params':{'unitId':_0x225831[_0x17c976][_0x6603e0(0x2c4)],..._0x225831[_0x17c976]['redoState']}},_0x898da4=this[_0x6603e0(0x198)]['transformMutation'](_0x296959,_0x1dfe9c,!0x1),_0x44b4b5=this[_0x6603e0(0x198)][_0x6603e0(0x347)](_0x31200d,_0x41e93a,!0x1);if(g[_0x6603e0(0x126)](_0x898da4))throw _0x898da4[_0x6603e0(0x227)];if(g['isTransformMutationFailure'](_0x44b4b5))throw _0x44b4b5['error'];_0x49adde['unshift']({..._0x225831[_0x17c976],'undoState':_0x898da4['m2Prime'][_0x6603e0(0x1b3)],'redoState':_0x44b4b5[_0x6603e0(0x212)][_0x6603e0(0x1b3)]}),_0x296959=_0x898da4[_0x6603e0(0x29b)],_0x31200d=_0x44b4b5['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x1e827f,{'history':_0x1adc68,'collaboration':_0x49adde});}};te=Gt([Ie(0x0,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),Ie(0x1,g[_0x5e7409(0x3ae)]),Ie(0x2,a[_0x5e7409(0x10a)](p[_0x5e7409(0x127)]))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x16a8a0,_0x2c284d,_0x4131e9,_0x246970)=>{const _0x57fc2d=_0x5e7409;for(var _0x7423aa=_0x246970>0x1?void 0x0:_0x246970?Xt(_0x2c284d,_0x4131e9):_0x2c284d,_0x310331=_0x16a8a0[_0x57fc2d(0x23d)]-0x1,_0x216662;_0x310331>=0x0;_0x310331--)(_0x216662=_0x16a8a0[_0x310331])&&(_0x7423aa=_0x216662(_0x7423aa)||_0x7423aa);return _0x7423aa;},Pe=(_0x1ee996,_0x3248dc)=>(_0x5479a0,_0x3d286d)=>_0x3248dc(_0x5479a0,_0x3d286d,_0x1ee996);let se=class{constructor(_0x77a54f,_0x25fd30){const _0x58ce74=_0x5e7409;this[_0x58ce74(0x232)]=_0x77a54f,this[_0x58ce74(0x198)]=_0x25fd30;}[_0x5e7409(0x243)](_0x5d9283){const _0x4d38b6=_0x5e7409;var _0x1511b5;const _0x1cd5fb=this[_0x4d38b6(0x232)][_0x4d38b6(0x22b)](V['DocSelectionManagerService']),_0xd7214=(_0x1511b5=_0x1cd5fb[_0x4d38b6(0x363)]())!=null?_0x1511b5:[];if(_0xd7214[_0x4d38b6(0x23d)]===0x0)return;const _0x44b0b8=_0x5d9283[_0x4d38b6(0x252)],_0x273c3b=[{'id':_0x4d38b6(0x221),'params':{'unitId':_0x44b0b8,'actions':null,'textRanges':_0xd7214}}],_0x5c1726=this[_0x4d38b6(0x198)]['transformMutationsWithChangeset'](_0x5d9283,_0x273c3b);if(!g['isTransformMutationsWithChangesetSuccess'](_0x5c1726))throw _0x5c1726['error'];const _0x340ac7=_0x5c1726[_0x4d38b6(0x212)][0x0][_0x4d38b6(0x1b3)]['textRanges'];Array[_0x4d38b6(0x105)](_0x340ac7)&&_0x340ac7['length']&&_0x1cd5fb['replaceDocRanges'](_0x340ac7,{'unitId':_0x44b0b8,'subUnitId':_0x44b0b8},!0x1);}};se=Kt([Pe(0x0,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),Pe(0x1,g['ITransformService'])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x5de539,_0x3462f7,_0x1eead0,_0x36c79f)=>{for(var _0x5d2a48=_0x36c79f>0x1?void 0x0:_0x36c79f?qt(_0x3462f7,_0x1eead0):_0x3462f7,_0x1cfa39=_0x5de539['length']-0x1,_0x1f20a1;_0x1cfa39>=0x0;_0x1cfa39--)(_0x1f20a1=_0x5de539[_0x1cfa39])&&(_0x5d2a48=_0x1f20a1(_0x5d2a48)||_0x5d2a48);return _0x5d2a48;},N=(_0x176e77,_0x1dbca7)=>(_0x3ba096,_0x528800)=>_0x1dbca7(_0x3ba096,_0x528800,_0x176e77);let ie=class extends a[_0x5e7409(0x3c4)]{constructor(_0x3d5f29,_0x538e71,_0x2479c7,_0x1f692e,_0x4f21e3,_0x4c2341,_0x415376,_0x181289){const _0x20d579=_0x5e7409;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x20d579(0x3d1)][_0x20d579(0x257)])),(this[_0x20d579(0x190)]=_0x3d5f29,this[_0x20d579(0x3b0)]=_0x538e71,this[_0x20d579(0x24e)]=_0x2479c7,this[_0x20d579(0x339)]=_0x1f692e,this['_docTransformSelectionsService']=_0x4f21e3,this[_0x20d579(0x2b5)]=_0x4c2341,this[_0x20d579(0x33b)]=_0x415376,this[_0x20d579(0x33f)]=_0x181289,this[_0x20d579(0x3b7)]());}[_0x5e7409(0x3b7)](){const _0x4af648=_0x5e7409;this[_0x4af648(0x361)](this[_0x4af648(0x3b0)]['entityInit$']['subscribe'](_0x247573=>{const _0x443526=_0x4af648,_0x4ab0ad=this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0x2ac68d=>{const _0x3d118f=_0x4e0e;if(_0x2ac68d==null)return;const {unitId:_0x34a74d,redoState:_0x5ca3ec,commandId:_0x243fb9}=_0x2ac68d;if(_0x34a74d!==_0x247573[_0x3d118f(0x252)])return;const _0x204bd2={'id':_0x243fb9,'type':a['CommandType'][_0x3d118f(0x214)],'params':{'unitId':_0x34a74d,'actions':_0x5ca3ec[_0x3d118f(0x30f)],'textRanges':null}};_0x247573[_0x3d118f(0x200)](_0x204bd2);});if(_0x247573[_0x443526(0x361)](_0x4ab0ad),_0x247573 instanceof u[_0x443526(0x167)]){const _0x3f155a={'onTransformIME':_0x2b214d=>this[_0x443526(0x24e)]['transformIMECache'](_0x2b214d),'onTransformState':_0x1d70ed=>this[_0x443526(0x339)][_0x443526(0x1c5)](_0x1d70ed),'onTransformSelections':_0x1eaf8e=>this[_0x443526(0x235)]['transformSelections'](_0x1eaf8e),'onSyncEditingCollabCursor':_0xa20a0c=>this[_0x443526(0x2b5)][_0x443526(0x3ac)](_0xa20a0c),'onTransformRemoteChangesetByIMECache':_0x4f2471=>this[_0x443526(0x24e)]['transformRemoteChangeset'](_0x4f2471),'onTransformRemoteChangesetByStateCache':_0x4b5ac9=>this['_docTransformStateCacheService'][_0x443526(0x102)](_0x4b5ac9)};_0x247573[_0x443526(0x348)](_0x3f155a);}}));}};ie=zt([N(0x0,a[_0x5e7409(0x10a)](p[_0x5e7409(0x127)])),N(0x1,a[_0x5e7409(0x10a)](u[_0x5e7409(0x1df)])),N(0x2,a[_0x5e7409(0x10a)](ee)),N(0x3,a[_0x5e7409(0x10a)](te)),N(0x4,a[_0x5e7409(0x10a)](se)),N(0x5,a[_0x5e7409(0x10a)](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x5e7409(0x10a)](a['LocaleService']))],ie);var G=(_0x2cda95=>(_0x2cda95[_0x2cda95[_0x5e7409(0x3a2)]=0x0]=_0x5e7409(0x3a2),_0x2cda95[_0x2cda95['OK']=0x1]='OK',_0x2cda95[_0x2cda95[_0x5e7409(0x30e)]=0x2]=_0x5e7409(0x30e),_0x2cda95[_0x2cda95[_0x5e7409(0x16a)]=0x3]=_0x5e7409(0x16a),_0x2cda95[_0x2cda95[_0x5e7409(0x33c)]=0x4]=_0x5e7409(0x33c),_0x2cda95[_0x2cda95[_0x5e7409(0x23c)]=0x5]='UNAUTHENTICATED',_0x2cda95[_0x2cda95[_0x5e7409(0x2bf)]=0x6]=_0x5e7409(0x2bf),_0x2cda95[_0x2cda95[_0x5e7409(0x1fe)]=0x7]=_0x5e7409(0x1fe),_0x2cda95[_0x2cda95[_0x5e7409(0x388)]=0x8]=_0x5e7409(0x388),_0x2cda95[_0x2cda95['COMPLETION_FINISHED']=0x9]=_0x5e7409(0x176),_0x2cda95[_0x2cda95[_0x5e7409(0x37c)]=0xa]='LOGIN_FAILED',_0x2cda95[_0x2cda95[_0x5e7409(0x165)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2cda95[_0x2cda95[_0x5e7409(0x100)]=0xc]=_0x5e7409(0x100),_0x2cda95[_0x2cda95['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x5e7409(0x23e),_0x2cda95[_0x2cda95['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x5e7409(0x143),_0x2cda95[_0x2cda95[_0x5e7409(0x2da)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x2cda95[_0x2cda95[_0x5e7409(0x390)]=0x10]=_0x5e7409(0x390),_0x2cda95[_0x2cda95['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x5e7409(0x3a4),_0x2cda95[_0x2cda95[_0x5e7409(0x328)]=0x65]=_0x5e7409(0x328),_0x2cda95[_0x2cda95[_0x5e7409(0x136)]=0xc9]='USER_NOT_FOUND',_0x2cda95[_0x2cda95['USER_IS_ANONYMOUS']=0xca]=_0x5e7409(0x397),_0x2cda95[_0x2cda95['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x5e7409(0x1c4),_0x2cda95[_0x2cda95['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5e7409(0x20a),_0x2cda95[_0x2cda95[_0x5e7409(0x13e)]=0x1772]=_0x5e7409(0x13e),_0x2cda95[_0x2cda95[_0x5e7409(0x272)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2cda95[_0x2cda95['APPLY_REJECT']=0x1b59]=_0x5e7409(0x16d),_0x2cda95[_0x2cda95[_0x5e7409(0x38c)]=0x1b5a]=_0x5e7409(0x38c),_0x2cda95[_0x2cda95[_0x5e7409(0x341)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2cda95[_0x2cda95['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5e7409(0x10b),_0x2cda95[_0x2cda95[_0x5e7409(0x36b)]=0x1b5d]=_0x5e7409(0x36b),_0x2cda95[_0x2cda95[_0x5e7409(0x228)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2cda95[_0x2cda95['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5e7409(0x203),_0x2cda95[_0x2cda95[_0x5e7409(0x150)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2cda95[_0x2cda95[_0x5e7409(0x2e6)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2cda95[_0x2cda95['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x5e7409(0x1b2),_0x2cda95[_0x2cda95[_0x5e7409(0x29f)]=0x232d]=_0x5e7409(0x29f),_0x2cda95[_0x2cda95['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5e7409(0x125),_0x2cda95[_0x2cda95[_0x5e7409(0x112)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2cda95[_0x2cda95['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5e7409(0x24a),_0x2cda95[_0x2cda95['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5e7409(0x1c2),_0x2cda95[_0x2cda95[_0x5e7409(0x179)]=0x271a]=_0x5e7409(0x179),_0x2cda95[_0x2cda95['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x5e7409(0x21e),_0x2cda95[_0x2cda95['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x5e7409(0x1ec),_0x2cda95[_0x2cda95[_0x5e7409(0x36f)]=0x271d]=_0x5e7409(0x36f),_0x2cda95[_0x2cda95['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x5e7409(0x188),_0x2cda95[_0x2cda95[_0x5e7409(0x154)]=0x271f]=_0x5e7409(0x154),_0x2cda95[_0x2cda95['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x5e7409(0x1b0),_0x2cda95[_0x2cda95[_0x5e7409(0x2a5)]=0x2af9]=_0x5e7409(0x2a5),_0x2cda95[_0x2cda95['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2cda95[_0x2cda95[_0x5e7409(0x38f)]=0x2ee2]=_0x5e7409(0x38f),_0x2cda95[_0x2cda95[_0x5e7409(0x291)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2cda95[_0x2cda95[_0x5e7409(0x21d)]=0x2ee4]=_0x5e7409(0x21d),_0x2cda95[_0x2cda95['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5e7409(0x130),_0x2cda95[_0x2cda95['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x5e7409(0x2d0),_0x2cda95[_0x2cda95[_0x5e7409(0x394)]=0x32ca]=_0x5e7409(0x394),_0x2cda95[_0x2cda95[_0x5e7409(0x1c0)]=0x32cb]=_0x5e7409(0x1c0),_0x2cda95[_0x2cda95[_0x5e7409(0x118)]=0x36b1]=_0x5e7409(0x118),_0x2cda95[_0x2cda95[_0x5e7409(0x171)]=0x36b2]=_0x5e7409(0x171),_0x2cda95[_0x2cda95[_0x5e7409(0x20f)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x2cda95[_0x2cda95[_0x5e7409(0x39d)]=0x36b4]=_0x5e7409(0x39d),_0x2cda95[_0x2cda95[_0x5e7409(0x311)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2cda95[_0x2cda95[_0x5e7409(0x220)]=0x3716]=_0x5e7409(0x220),_0x2cda95[_0x2cda95[_0x5e7409(0x1f9)]=0x3717]=_0x5e7409(0x1f9),_0x2cda95[_0x2cda95[_0x5e7409(0x242)]=0x37dd]=_0x5e7409(0x242),_0x2cda95[_0x2cda95[_0x5e7409(0x2f5)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x2cda95[_0x2cda95[_0x5e7409(0x1c7)]=0x3a9a]=_0x5e7409(0x1c7),_0x2cda95[_0x2cda95['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x5e7409(0x2a6),_0x2cda95[_0x2cda95[_0x5e7409(0x120)]=0x3a9c]=_0x5e7409(0x120),_0x2cda95[_0x2cda95[_0x5e7409(0x2a9)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x2cda95[_0x2cda95[_0x5e7409(0x2e7)]=0x3a9e]=_0x5e7409(0x2e7),_0x2cda95[_0x2cda95['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2cda95[_0x2cda95['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x5e7409(0x1dd),_0x2cda95[_0x2cda95[_0x5e7409(0x373)]=-0x1]=_0x5e7409(0x373),_0x2cda95))(G||{});function Jt(_0x3233cf){const _0x36d062=_0x5e7409;var _0x25edae,_0x5c0726;const _0x29efb3=(_0x25edae=_0x3233cf[_0x36d062(0x132)])==null?void 0x0:_0x25edae[_0x36d062(0x189)],_0x48714e=((_0x5c0726=_0x3233cf['stageInfo'])==null?void 0x0:_0x5c0726['totalFormulasToCalculate'])||0x0;return _0x29efb3===B[_0x36d062(0x2c1)][_0x36d062(0x2cc)]&&_0x48714e>0x0;}function Zt(_0x27bc63){const _0x3c2e80=_0x5e7409;return _0x27bc63[_0x3c2e80(0x2e5)]===B['FormulaExecutedStateType'][_0x3c2e80(0x175)];}var Qt=Object[_0x5e7409(0x3ca)],es=(_0x3e6d13,_0xf9497a,_0x18a963,_0x21da89)=>{const _0x2626dd=_0x5e7409;for(var _0x35698c=_0x21da89>0x1?void 0x0:_0x21da89?Qt(_0xf9497a,_0x18a963):_0xf9497a,_0x94786f=_0x3e6d13[_0x2626dd(0x23d)]-0x1,_0x3bc21a;_0x94786f>=0x0;_0x94786f--)(_0x3bc21a=_0x3e6d13[_0x94786f])&&(_0x35698c=_0x3bc21a(_0x35698c)||_0x35698c);return _0x35698c;},L=(_0x46675d,_0x200c36)=>(_0x44bdd3,_0x100707)=>_0x200c36(_0x44bdd3,_0x100707,_0x46675d);const ts=_0x5e7409(0x3c0),ss='/universer-api/license/formula/limit/start',is=_0x5e7409(0x123);let ne=class extends a[_0x5e7409(0x3c4)]{constructor(_0x54cba6,_0x4271cb,_0x2788fd,_0x381350,_0x4a5f35,_0x9bc789,_0x55c030){const _0x12a492=_0x5e7409;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0x12a492(0x17b),0x0),_(this,_0x12a492(0x1d9),[]),_(this,_0x12a492(0x1ac),0x0),(this[_0x12a492(0x33b)]=_0x54cba6,this[_0x12a492(0x2e9)]=_0x4271cb,this[_0x12a492(0x1e9)]=_0x2788fd,this[_0x12a492(0x2f9)]=_0x381350,this[_0x12a492(0x336)]=_0x4a5f35,this['_logService']=_0x9bc789,this['_localeService']=_0x55c030,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0x329d03=_0x5e7409;this[_0x329d03(0x361)](this[_0x329d03(0x2e9)]['beforeCommandExecuted']((_0x256d2b,_0x2d9c61)=>{const _0x4a7ae8=_0x329d03;var _0x60dd3f;if(_0x256d2b['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x485e3a=_0x256d2b[_0x4a7ae8(0x1b3)];if(!this['_hasFormulaInDirtyRanges']((_0x60dd3f=_0x485e3a[_0x4a7ae8(0x3b1)])!=null?_0x60dd3f:[]))return;if(!this[_0x4a7ae8(0x321)]())throw this['_checkAndWaitForCalculationPermission'](_0x256d2b,_0x2d9c61),this[_0x4a7ae8(0x2d1)](),new a['CanceledError']();})),this[_0x329d03(0x361)](this[_0x329d03(0x2e9)][_0x329d03(0x3a7)]((_0x38e71b,_0x52cb55)=>{const _0x37d289=_0x329d03;if(_0x38e71b['id']!==B[_0x37d289(0x209)]['id'])return;const _0xc73f80=_0x38e71b[_0x37d289(0x1b3)];if(Jt(_0xc73f80)){const _0x604111=a[_0x37d289(0x17d)]();this['_taskIds']['push'](_0x604111),this[_0x37d289(0x38b)](_0x604111);}else{if(Zt(_0xc73f80)&&this[_0x37d289(0x1d9)][_0x37d289(0x23d)]>0x0){const _0x47f92e=this[_0x37d289(0x1d9)][_0x37d289(0x1cb)]();this[_0x37d289(0x3cf)](_0x47f92e);}}}));}[_0x5e7409(0x3a1)](){const _0x47e1e3=_0x5e7409;super[_0x47e1e3(0x3a1)](),this[_0x47e1e3(0x155)](),this[_0x47e1e3(0x1d9)]=[],this[_0x47e1e3(0x17b)]=0x0,this[_0x47e1e3(0x2b4)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x5e7409(0x382)](_0x2a0dd4,_0x401c6b){const _0x156491=_0x5e7409;for(let _0x4e0509=0x0;_0x4e0509<0x1e;_0x4e0509++)try{if(await this['_getFormulaLimitStatus'](),this[_0x156491(0x321)]()){this['_applyCommand'](_0x2a0dd4,_0x401c6b),this['_messageService']['show']({'content':this[_0x156491(0x33f)]['t'](_0x156491(0x114)),'type':T[_0x156491(0x365)][_0x156491(0x38a)]});return;}await new Promise(_0x367ea5=>{const _0x22872f=_0x156491;this[_0x22872f(0x121)]=window[_0x22872f(0x1b8)](_0x367ea5,0x3e8);});}catch(_0x1db757){this['_logService'][_0x156491(0x227)](_0x1db757);}this['_messageService'][_0x156491(0x353)]({'content':this[_0x156491(0x33f)]['t'](_0x156491(0x26e)),'type':T[_0x156491(0x365)]['Error']});}[_0x5e7409(0x35a)](_0x567c33,_0x32049a){const _0x5e1da3=_0x5e7409;try{this[_0x5e1da3(0x2e9)]['executeCommand'](_0x567c33['id'],_0x567c33[_0x5e1da3(0x1b3)],_0x32049a);}catch(_0x4b3f00){this[_0x5e1da3(0x28b)][_0x5e1da3(0x227)](_0x4b3f00);}}['_setFormulaLimitStatus'](_0x3bd932,_0x41c6a2){const _0x285afb=_0x5e7409;_0x41c6a2<this[_0x285afb(0x1ac)]||(this[_0x285afb(0x1ac)]=_0x41c6a2,this[_0x285afb(0x2b4)]=Number['parseInt'](_0x3bd932[_0x285afb(0x282)]),this[_0x285afb(0x17b)]=Number[_0x285afb(0x178)](_0x3bd932['currentUsage']));}async[_0x5e7409(0x38b)](_0x2bcf11){const _0x557261=_0x5e7409;var _0x53cc44,_0x4b0a87;const _0x2e4464=Date['now']();try{const _0x42843e=((_0x53cc44=this[_0x557261(0x1e9)][_0x557261(0x2e8)](u[_0x557261(0x1e7)]))==null?void 0x0:_0x53cc44['startFormulaLimitUrl'])||ss,_0x4a3a81=(await this['_httpService'][_0x557261(0x355)](_0x42843e,{'body':JSON[_0x557261(0x2bd)]({'taskId':_0x2bcf11})}))[_0x557261(0x115)];if(((_0x4b0a87=_0x4a3a81['error'])==null?void 0x0:_0x4b0a87[_0x557261(0x358)])!==G['OK'])return;this[_0x557261(0x381)](_0x4a3a81['limitInfo'],_0x2e4464);}catch(_0x39b957){this[_0x557261(0x28b)][_0x557261(0x227)](_0x39b957);}}async[_0x5e7409(0x162)](_0x4d8785){const _0x1e4ac7=_0x5e7409;var _0x51dcb7,_0x596161;const _0x1029b4=Date['now']();try{const _0x28ca85=((_0x51dcb7=this[_0x1e4ac7(0x1e9)][_0x1e4ac7(0x2e8)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x51dcb7[_0x1e4ac7(0x2d7)])||ts,_0x34ddbf=_0x4d8785?_0x28ca85+_0x1e4ac7(0x208)+encodeURIComponent(_0x4d8785):_0x28ca85,_0x60ed86=(await this[_0x1e4ac7(0x2f9)][_0x1e4ac7(0x22b)](_0x34ddbf))['body'];if(((_0x596161=_0x60ed86[_0x1e4ac7(0x227)])==null?void 0x0:_0x596161[_0x1e4ac7(0x358)])!==G['OK'])return;this[_0x1e4ac7(0x381)](_0x60ed86[_0x1e4ac7(0x34a)],_0x1029b4);}catch(_0x22a23b){this[_0x1e4ac7(0x28b)][_0x1e4ac7(0x227)](_0x22a23b);}}async['_releaseCalculationLimit'](_0x4cca84){const _0x2147ba=_0x5e7409;var _0x268ba0,_0x283662;const _0x16ba46=Date[_0x2147ba(0x305)]();try{const _0x3b8562=((_0x268ba0=this[_0x2147ba(0x1e9)][_0x2147ba(0x2e8)](u[_0x2147ba(0x1e7)]))==null?void 0x0:_0x268ba0[_0x2147ba(0x2c3)])||is,_0x180c3f=(await this[_0x2147ba(0x2f9)][_0x2147ba(0x355)](_0x3b8562,{'body':JSON[_0x2147ba(0x2bd)]({'taskId':_0x4cca84})}))[_0x2147ba(0x115)];if(((_0x283662=_0x180c3f[_0x2147ba(0x227)])==null?void 0x0:_0x283662[_0x2147ba(0x358)])!==G['OK'])return;this[_0x2147ba(0x381)](_0x180c3f[_0x2147ba(0x34a)],_0x16ba46);}catch(_0x45da2d){this['_logService']['error'](_0x45da2d);}}['_checkCalculationAvailable'](){const _0x2e1eec=_0x5e7409;return this[_0x2e1eec(0x2b4)]===0x0?!0x0:this[_0x2e1eec(0x2b4)]-this[_0x2e1eec(0x17b)]>0x0;}[_0x5e7409(0x155)](){const _0x1510ff=_0x5e7409;this[_0x1510ff(0x121)]&&(clearTimeout(this[_0x1510ff(0x121)]),this['_pollingInterval']=null);}[_0x5e7409(0x2d1)](){const _0x1deb9f=_0x5e7409;this[_0x1deb9f(0x33b)][_0x1deb9f(0x353)]({'content':this['_localeService']['t'](_0x1deb9f(0x2fc)),'type':T[_0x1deb9f(0x365)][_0x1deb9f(0x2df)]});}[_0x5e7409(0x1e0)](_0x38c8af){const _0x90603d=_0x5e7409;for(const _0x4904c3 of _0x38c8af){const {unitId:_0x41ac8d,sheetId:_0x35d4e2,range:_0x34f16e}=_0x4904c3,_0x21fd30=this[_0x90603d(0x336)][_0x90603d(0x2d8)](_0x41ac8d);if(!_0x21fd30)continue;const _0x40a261=_0x21fd30['getSheetBySheetId'](_0x35d4e2);if(!_0x40a261)continue;const _0x117dd0=_0x40a261[_0x90603d(0x258)]();for(let _0xba8ed4=_0x34f16e[_0x90603d(0x35f)];_0xba8ed4<=_0x34f16e['endRow'];_0xba8ed4++)for(let _0x539893=_0x34f16e['startColumn'];_0x539893<=_0x34f16e[_0x90603d(0x1c1)];_0x539893++){const _0x49c880=_0x117dd0[_0x90603d(0x201)](_0xba8ed4,_0x539893);if(_0x49c880&&(a['isFormulaString'](_0x49c880['f'])||a[_0x90603d(0x265)](_0x49c880['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x5e7409(0x18c)])),L(0x1,a[_0x5e7409(0x366)]),L(0x2,a['IConfigService']),L(0x3,a['Inject'](x['HTTPService'])),L(0x4,a[_0x5e7409(0x119)]),L(0x5,a[_0x5e7409(0x314)]),L(0x6,a[_0x5e7409(0x10a)](a['LocaleService']))],ne);var ns=Object[_0x5e7409(0x3ca)],rs=(_0x35bbd2,_0x894b0f,_0x406f65,_0x4cfedf)=>{const _0x50e067=_0x5e7409;for(var _0x19b22b=_0x4cfedf>0x1?void 0x0:_0x4cfedf?ns(_0x894b0f,_0x406f65):_0x894b0f,_0x5704dc=_0x35bbd2[_0x50e067(0x23d)]-0x1,_0x101ee0;_0x5704dc>=0x0;_0x5704dc--)(_0x101ee0=_0x35bbd2[_0x5704dc])&&(_0x19b22b=_0x101ee0(_0x19b22b)||_0x19b22b);return _0x19b22b;},de=(_0x52f3a0,_0x5447f6)=>(_0x3eb257,_0x10d95d)=>_0x5447f6(_0x3eb257,_0x10d95d,_0x52f3a0);let pe=class extends a[_0x5e7409(0x3c4)]{constructor(_0x155a52,_0x3c24ee,_0x52c689){const _0x54125c=_0x5e7409;super(),_(this,_0x54125c(0x39c),new Map()),_(this,_0x54125c(0x20e),new Map()),_(this,'_disabled',!0x1),(this[_0x54125c(0x1e9)]=_0x155a52,this[_0x54125c(0x294)]=_0x3c24ee,this[_0x54125c(0x370)]=_0x52c689);}['disableLocalCache'](){const _0x554f60=_0x5e7409;this[_0x554f60(0x289)]=!0x0;}[_0x5e7409(0x12d)](){const _0x4a74ce=_0x5e7409;this[_0x4a74ce(0x289)]=!0x1;}get[_0x5e7409(0x2ed)](){const _0x19dc06=_0x5e7409;return this[_0x19dc06(0x20e)];}[_0x5e7409(0x3a1)](){const _0x1cc16a=_0x5e7409;this[_0x1cc16a(0x33e)]()[_0x1cc16a(0x147)](()=>super[_0x1cc16a(0x3a1)]());}async[_0x5e7409(0x3b2)](_0x2f9a9f){const _0x380808=_0x5e7409;return this[_0x380808(0x289)]?null:this['_localStorageService']['getItem'](u[_0x380808(0x396)](_0x2f9a9f));}async[_0x5e7409(0x225)](_0x50da1a,_0xf12902){const _0x299c37=_0x5e7409;return!!this[_0x299c37(0x294)][_0x299c37(0x2a7)](_0x50da1a,_0xf12902);}['updateOfflineData'](_0xe42ff7,_0x205c1e,_0x19e916,_0x2770da){const _0x4ade20=_0x5e7409,_0x206f1b=this[_0x4ade20(0x370)]['getCurrentRevOfUnit'](_0xe42ff7);this[_0x4ade20(0x39c)][_0x4ade20(0x15c)](_0xe42ff7,{'unitID':_0xe42ff7,'type':_0x205c1e,'awaitingChangeset':_0x19e916,'mutations':_0x2770da,'rev':_0x206f1b}),this['_saveTaskMap'][_0x4ade20(0x2ac)](_0xe42ff7)||this[_0x4ade20(0x2b2)](_0xe42ff7);}[_0x5e7409(0x2b2)](_0x4fba07){const _0x222b4e=_0x5e7409,_0x296142=this[_0x222b4e(0x134)]();_0x296142===0x0?this['_saveCache'](_0x4fba07):this['_saveTaskMap']['set'](_0x4fba07,setTimeout(()=>this[_0x222b4e(0x233)](_0x4fba07),_0x296142));}['_getSaveTimeout'](){const _0x3848d1=_0x5e7409;var _0x585fc5;return(_0x585fc5=this[_0x3848d1(0x1e9)][_0x3848d1(0x2e8)](u[_0x3848d1(0x3a6)]))!=null?_0x585fc5:u[_0x3848d1(0x229)];}['_saveCache'](_0x9c2248){const _0x5d61d9=_0x5e7409,_0x198038=this['_saveTaskMap']['get'](_0x9c2248);return _0x198038!==void 0x0&&window[_0x5d61d9(0x323)](_0x198038),this[_0x5d61d9(0x294)][_0x5d61d9(0x2a7)](u[_0x5d61d9(0x396)](_0x9c2248),this[_0x5d61d9(0x39c)][_0x5d61d9(0x22b)](_0x9c2248))[_0x5d61d9(0x147)](()=>this[_0x5d61d9(0x20e)]['delete'](_0x9c2248));}async[_0x5e7409(0x33e)](){const _0x44891f=_0x5e7409,_0x4626a0=[];this[_0x44891f(0x20e)][_0x44891f(0x2f8)]((_0x21a2a7,_0x1e0c5c)=>{const _0x383757=_0x44891f;window[_0x383757(0x323)](_0x21a2a7),_0x4626a0[_0x383757(0x2e2)](this[_0x383757(0x233)](_0x1e0c5c)[_0x383757(0x147)](()=>{const _0x31a215=_0x383757;this[_0x31a215(0x20e)][_0x31a215(0x35b)](_0x1e0c5c);}));}),await Promise[_0x44891f(0x367)](_0x4626a0);}};pe=rs([de(0x0,a[_0x5e7409(0x23a)]),de(0x1,a[_0x5e7409(0x2fb)]),de(0x2,a[_0x5e7409(0x10a)](g[_0x5e7409(0x2e1)]))],pe);class ke extends a[_0x5e7409(0x2fe)]{constructor(){const _0x3bff64=_0x5e7409;super(),_(this,_0x3bff64(0x1bb)),this[_0x3bff64(0x1bb)]=I['fromEvent'](window,_0x3bff64(0x30a))['pipe'](I[_0x3bff64(0x2a0)](this[_0x3bff64(0x33d)]),I[_0x3bff64(0x2d4)](0x1),I[_0x3bff64(0x3d0)](void 0x0));}[_0x5e7409(0x14f)](_0x3d3f04,_0x193e72,_0x419878=!0x1){const _0x34b6a0=_0x5e7409,_0x180ec0=new URL(window[_0x34b6a0(0x131)][_0x34b6a0(0x21b)]);_0x180ec0[_0x34b6a0(0x159)][_0x34b6a0(0x15c)](_0x3d3f04,_0x193e72),_0x419878?window['history'][_0x34b6a0(0x10e)]('','',_0x180ec0[_0x34b6a0(0x245)]()):window[_0x34b6a0(0x218)][_0x34b6a0(0x1bd)]('','',_0x180ec0[_0x34b6a0(0x245)]());}[_0x5e7409(0x1c6)](_0xced10c,_0x16e5da=!0x1){const _0x269786=_0x5e7409,_0x2d4199=new URL(window[_0x269786(0x131)][_0x269786(0x21b)]);_0x2d4199['searchParams']['delete'](_0xced10c),_0x16e5da?window[_0x269786(0x218)][_0x269786(0x10e)]('','',_0x2d4199[_0x269786(0x245)]()):window[_0x269786(0x218)]['pushState']('','',_0x2d4199[_0x269786(0x245)]());}['getParam'](_0x58b876){const _0x21cce7=_0x5e7409;var _0x36deda;return(_0x36deda=new URL(window[_0x21cce7(0x131)][_0x21cce7(0x21b)])[_0x21cce7(0x159)][_0x21cce7(0x22b)](_0x58b876))!=null?_0x36deda:void 0x0;}}var os=Object['defineProperty'],as=Object['getOwnPropertyDescriptor'],cs=(_0x11311a,_0x3336de,_0x339cb9)=>_0x3336de in _0x11311a?os(_0x11311a,_0x3336de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x339cb9}):_0x11311a[_0x3336de]=_0x339cb9,ls=(_0x1d16ea,_0x417770,_0x436cd5,_0x4df835)=>{const _0x53045e=_0x5e7409;for(var _0xbacea4=_0x4df835>0x1?void 0x0:_0x4df835?as(_0x417770,_0x436cd5):_0x417770,_0x64058e=_0x1d16ea[_0x53045e(0x23d)]-0x1,_0x125148;_0x64058e>=0x0;_0x64058e--)(_0x125148=_0x1d16ea[_0x64058e])&&(_0xbacea4=_0x125148(_0xbacea4)||_0xbacea4);return _0xbacea4;},Se=(_0xc9c085,_0x42645b)=>(_0x38a55b,_0x44c794)=>_0x42645b(_0x38a55b,_0x44c794,_0xc9c085),_s=(_0x31276d,_0x555ce4,_0x1e2446)=>cs(_0x31276d,_0x555ce4+'',_0x1e2446);const hs=_0x5e7409(0x1eb);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5e7409(0x37e)]{constructor(_0x2d4a65=Me,_0x3b00d6,_0x523af4,_0x22dfe5){const _0x58a7e6=_0x5e7409;super(),this[_0x58a7e6(0x316)]=_0x2d4a65,this[_0x58a7e6(0x11f)]=_0x3b00d6,this['_injector']=_0x523af4,this[_0x58a7e6(0x1e9)]=_0x22dfe5;const {..._0x447b77}=a[_0x58a7e6(0x31b)]({},Me,this[_0x58a7e6(0x316)]);this[_0x58a7e6(0x1e9)][_0x58a7e6(0x295)](Yt,_0x447b77);}[_0x5e7409(0x385)](){const _0x2229cc=_0x5e7409;this[_0x2229cc(0x2cf)](),this[_0x2229cc(0x2d2)]();}[_0x5e7409(0x108)](){const _0x58d35e=_0x5e7409;this[_0x58d35e(0x2ea)]();}[_0x5e7409(0x2cf)](){const _0x47dd28=_0x5e7409;var _0x4c9a97;const _0x530ef0=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x47dd28(0x1d0)],{'useClass':x['WebSocketService']}],[u[_0x47dd28(0x137)],{'useClass':pe}],[exports[_0x47dd28(0x1ba)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x47dd28(0x316)]['enableFrontendLog']&&_0x530ef0[_0x47dd28(0x2e2)]([Q]),a[_0x47dd28(0x1f1)](this['_injector'],a['mergeOverrideWithDependencies'](_0x530ef0,(_0x4c9a97=this['_config'])==null?void 0x0:_0x4c9a97[_0x47dd28(0x391)]));}[_0x5e7409(0x2ea)](){const _0x3ebe4e=_0x5e7409;this[_0x3ebe4e(0x361)](this[_0x3ebe4e(0x11f)][_0x3ebe4e(0x2c8)](a[_0x3ebe4e(0x1fc)][_0x3ebe4e(0x273)],[Ee])),this[_0x3ebe4e(0x361)](this['_renderManagerService'][_0x3ebe4e(0x2c8)](a[_0x3ebe4e(0x1fc)][_0x3ebe4e(0x34f)],[Ce]));}[_0x5e7409(0x2d2)](){const _0x393a79=_0x5e7409;a['touchDependencies'](this[_0x393a79(0x232)],[[F],[exports[_0x393a79(0x1ba)]],[ie],[Z],[exports[_0x393a79(0x2bc)]],[ne]]),this[_0x393a79(0x316)][_0x393a79(0x207)]&&a[_0x393a79(0x386)](this['_injector'],[[Q]]);}},_s(exports[_0x5e7409(0x263)],'pluginName',hs),exports[_0x5e7409(0x263)]=ls([a[_0x5e7409(0x1d1)](u[_0x5e7409(0x197)]),Se(0x1,C[_0x5e7409(0x1f0)]),Se(0x2,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),Se(0x3,a[_0x5e7409(0x23a)])],exports[_0x5e7409(0x263)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x3e4d68,_0x26f625,_0x11f04a,_0x131aed)=>{const _0x3b4f37=_0x5e7409;for(var _0x107ee1=_0x131aed>0x1?void 0x0:_0x131aed?us(_0x26f625,_0x11f04a):_0x26f625,_0x27a4a9=_0x3e4d68[_0x3b4f37(0x23d)]-0x1,_0xa21d97;_0x27a4a9>=0x0;_0x27a4a9--)(_0xa21d97=_0x3e4d68[_0x27a4a9])&&(_0x107ee1=_0xa21d97(_0x107ee1)||_0x107ee1);return _0x107ee1;},W=(_0x3ec9c5,_0x21cffc)=>(_0x1df7e8,_0x2ef99b)=>_0x21cffc(_0x1df7e8,_0x2ef99b,_0x3ec9c5);exports[_0x5e7409(0x2ca)]=class extends u[_0x5e7409(0x1a5)]{constructor(_0x1a4935,_0x9767c5,_0x41b612,_0x377d3f,_0x4f8924){super(_0x1a4935,_0x9767c5,_0x41b612,_0x377d3f,_0x4f8924);}async[_0x5e7409(0x2f6)](_0x251bff){const _0x3aff75=_0x5e7409,_0x29ba96=await this[_0x3aff75(0x1cc)](),_0x449249=this[_0x3aff75(0x290)](_0x251bff,_0x29ba96);return this[_0x3aff75(0x20c)](_0x449249);}[_0x5e7409(0x290)](_0x4c36ef,_0xbd91ba){const _0x38a74e=_0x5e7409,_0x4f9e3a=typeof window>'u'?new URL(_0x4c36ef):new URL(_0x4c36ef,window[_0x38a74e(0x131)][_0x38a74e(0x2bb)]);_0x4f9e3a['searchParams'][_0x38a74e(0x15c)](_0x38a74e(0x15f),_0xbd91ba);const _0x5764d8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x38a74e(0x131)][_0x38a74e(0x399)]);return _0x5764d8[_0x38a74e(0x22b)](_0x38a74e(0x1ca))&&_0x4f9e3a[_0x38a74e(0x159)][_0x38a74e(0x15c)](_0x38a74e(0x1ca),_0x5764d8[_0x38a74e(0x22b)](_0x38a74e(0x1ca))),_0x4f9e3a['toString']();}async[_0x5e7409(0x1cc)](){const _0x21d533=_0x5e7409;var _0x1c1042,_0x334fa1,_0x36329a;const _0x333251=this[_0x21d533(0x1e9)][_0x21d533(0x2e8)](u[_0x21d533(0x1e7)]),_0x1183db=(_0x1c1042=_0x333251==null?void 0x0:_0x333251['wsSessionTicketUrl'])!=null?_0x1c1042:u[_0x21d533(0x2f1)];return(_0x36329a=(_0x334fa1=(await this[_0x21d533(0x2f9)][_0x21d533(0x22b)](_0x1183db,{'headers':{'Content-Type':_0x21d533(0x371)}}))[_0x21d533(0x115)])==null?void 0x0:_0x334fa1[_0x21d533(0x3a8)])!=null?_0x36329a:'';}},exports[_0x5e7409(0x2ca)]=Is([W(0x0,a['Inject'](a[_0x5e7409(0x18a)])),W(0x1,a[_0x5e7409(0x10a)](x['HTTPService'])),W(0x2,a[_0x5e7409(0x23a)]),W(0x3,a['ILogService']),W(0x4,g['ISnapshotServerService'])],exports[_0x5e7409(0x2ca)]);var ds=Object[_0x5e7409(0x3ca)],Ss=(_0x33a4b8,_0x1feec8,_0x3c4c67,_0x54f1c4)=>{const _0x64bfdb=_0x5e7409;for(var _0x854f90=_0x54f1c4>0x1?void 0x0:_0x54f1c4?ds(_0x1feec8,_0x3c4c67):_0x1feec8,_0x18cafd=_0x33a4b8[_0x64bfdb(0x23d)]-0x1,_0x1dbd92;_0x18cafd>=0x0;_0x18cafd--)(_0x1dbd92=_0x33a4b8[_0x18cafd])&&(_0x854f90=_0x1dbd92(_0x854f90)||_0x854f90);return _0x854f90;},fe=(_0x4e33ac,_0x545a20)=>(_0x57d439,_0x40e33b)=>_0x545a20(_0x57d439,_0x40e33b,_0x4e33ac);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0xcfd8be,_0x1bd45c,_0x22bfd0){const _0x3cd970=_0x5e7409;super(),this[_0x3cd970(0x1a0)]=_0xcfd8be,this[_0x3cd970(0x2f9)]=_0x1bd45c,this[_0x3cd970(0x1e9)]=_0x22bfd0;}async[_0x5e7409(0x2c5)](_0xdfb7ae,_0x94255e,_0x37c9bd,..._0x4ab709){const _0x35c761=_0x5e7409;var _0x1e9461,_0x25d2df,_0x38ea9d,_0x3192a1;const _0x496ec7=this['_instanceService'][_0x35c761(0x3b4)]();if(!_0x496ec7)throw new Error(_0x35c761(0x362));const _0x248653=((_0x1e9461=this[_0x35c761(0x1e9)]['getConfig'](u[_0x35c761(0x343)]))!=null?_0x1e9461:u[_0x35c761(0x319)])+'/'+_0xdfb7ae+'/run/'+_0x94255e,_0x15ce7e=new URL(window[_0x35c761(0x131)]['href']),_0x19b007={'scriptId':_0xdfb7ae,'runId':(_0x25d2df=_0x15ce7e['searchParams'][_0x35c761(0x22b)](_0x35c761(0x1ca)))!=null?_0x25d2df:'','function':_0x94255e,'unitId':_0x496ec7[_0x35c761(0x3b5)](),'argsOfFunction':JSON['stringify'](_0x4ab709),'invokeId':(_0x38ea9d=_0x37c9bd[_0x35c761(0x18f)])!=null?_0x38ea9d:'','executionId':(_0x3192a1=_0x37c9bd[_0x35c761(0x350)])!=null?_0x3192a1:''};try{const _0x506141=await this[_0x35c761(0x2f9)][_0x35c761(0x355)](_0x248653,{'body':_0x19b007});return _0x506141[_0x35c761(0x115)][_0x35c761(0x227)]&&_0x506141['body'][_0x35c761(0x227)][_0x35c761(0x358)]!==G['OK']?_0x35c761(0x117):_0x506141['body'][_0x35c761(0x180)];}catch{return'Failed';}}},exports[_0x5e7409(0x1e4)]=Ss([fe(0x0,a[_0x5e7409(0x119)]),fe(0x1,a[_0x5e7409(0x10a)](x[_0x5e7409(0x2fd)])),fe(0x2,a[_0x5e7409(0x23a)])],exports[_0x5e7409(0x1e4)]);const we=0x7530,ye=_0x5e7409(0x325);class fs extends a['Disposable']{constructor(){const _0x13ee1d=_0x5e7409;super(),_(this,_0x13ee1d(0x29d),a[_0x13ee1d(0x17d)]()),_(this,_0x13ee1d(0x1ff),new Set()),_(this,_0x13ee1d(0x330),new Map()),_(this,_0x13ee1d(0x27c),null),_(this,_0x13ee1d(0x11c),new Map()),_(this,_0x13ee1d(0x248),new Map()),this[_0x13ee1d(0x303)]();}[_0x5e7409(0x3a1)](){const _0x376a9d=_0x5e7409;super[_0x376a9d(0x3a1)](),this[_0x376a9d(0x11c)][_0x376a9d(0x2f8)]((_0x1e6c24,_0x437e5f)=>this[_0x376a9d(0x26a)](_0x437e5f)),this[_0x376a9d(0x27c)]&&window[_0x376a9d(0x2ab)](this[_0x376a9d(0x27c)]);}['getUnitStatus$'](_0x3a3304){const _0x27e9aa=_0x5e7409;return this[_0x27e9aa(0x149)](_0x3a3304)[_0x27e9aa(0x168)](I['distinctUntilChanged']());}[_0x5e7409(0x274)](_0x5f1a26){const _0x56fa21=_0x5e7409;this['_selfUnitIDs'][_0x56fa21(0x2f0)]===0x0&&this[_0x56fa21(0x25f)](),this[_0x56fa21(0x1ff)][_0x56fa21(0x3c3)](_0x5f1a26),this[_0x56fa21(0x2e4)]({'type':0x0,'memberID':this[_0x56fa21(0x29d)],'unitIDs':[_0x5f1a26],'isForwarded':!0x1});}['disposeUnit'](_0x4c1149){const _0x5e3afc=_0x5e7409;this[_0x5e3afc(0x1ff)][_0x5e3afc(0x35b)](_0x4c1149),this[_0x5e3afc(0x1ff)][_0x5e3afc(0x2f0)]===0x0&&this[_0x5e3afc(0x27c)]&&window[_0x5e3afc(0x2ab)](this[_0x5e3afc(0x27c)]);}[_0x5e7409(0x303)](){const _0x3cff81=_0x5e7409;this[_0x3cff81(0x361)](a[_0x3cff81(0x29c)](I[_0x3cff81(0x29e)](window,_0x3cff81(0x15a))[_0x3cff81(0x24c)](_0x4cbdc6=>{const _0x2ec371=_0x3cff81;if(_0x4cbdc6[_0x2ec371(0x1aa)]!==ye||!_0x4cbdc6[_0x2ec371(0x25b)])return;const _0x5313f2=JSON[_0x2ec371(0x3c1)](_0x4cbdc6['newValue']);this[_0x2ec371(0x253)](_0x5313f2);}))),window[_0x3cff81(0x246)](_0x3cff81(0x109),()=>this[_0x3cff81(0x2e4)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x298d55){const _0xfd0abe=_0x5e7409;switch(_0x298d55[_0xfd0abe(0x3ad)]){case 0x0:this['_handleJoinEvent'](_0x298d55);break;case 0x1:this[_0xfd0abe(0x312)](_0x298d55);break;case 0x2:this[_0xfd0abe(0x187)](_0x298d55);break;}}[_0x5e7409(0x20d)](_0x53c59e){const _0x4780ed=_0x5e7409,{unitIDs:_0x53caa6,memberID:_0x4ccb19,isForwarded:_0x36b71c}=_0x53c59e;_0x53caa6[_0x4780ed(0x2f8)](_0x18f2d1=>{const _0x59e1a0=_0x4780ed;if(!_0x36b71c&&this[_0x59e1a0(0x330)][_0x59e1a0(0x2ac)](_0x18f2d1)&&this[_0x59e1a0(0x149)](_0x18f2d1)[_0x59e1a0(0x32d)](u[_0x59e1a0(0x2ef)][_0x59e1a0(0x1f2)]),!this[_0x59e1a0(0x330)][_0x59e1a0(0x2ac)](_0x18f2d1)||!this[_0x59e1a0(0x330)][_0x59e1a0(0x22b)](_0x18f2d1)[_0x59e1a0(0x2ac)](_0x4ccb19)){const _0x3a81df=this[_0x59e1a0(0x330)][_0x59e1a0(0x22b)](_0x18f2d1)||new Set();_0x3a81df[_0x59e1a0(0x3c3)](_0x4ccb19),this[_0x59e1a0(0x330)][_0x59e1a0(0x15c)](_0x18f2d1,_0x3a81df),this[_0x59e1a0(0x37b)](_0x4ccb19);}}),_0x36b71c||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4780ed(0x1ff)]],'isForwarded':!0x0});}[_0x5e7409(0x37b)](_0x3c9525){const _0x299ec5=_0x5e7409;this['_removeClearOtherTimer'](_0x3c9525);const _0x1c5368=window[_0x299ec5(0x1b8)](()=>{const _0x231f9e=_0x299ec5;this[_0x231f9e(0x330)][_0x231f9e(0x2f8)](_0x5cc7c4=>{_0x5cc7c4['delete'](_0x3c9525);});},we*0x2);this[_0x299ec5(0x11c)][_0x299ec5(0x15c)](_0x3c9525,_0x1c5368);}[_0x5e7409(0x26a)](_0x23fc8a){const _0x4b5945=_0x5e7409;if(this[_0x4b5945(0x11c)][_0x4b5945(0x2ac)](_0x23fc8a)){const _0x55ceab=this[_0x4b5945(0x11c)]['get'](_0x23fc8a);_0x55ceab&&window[_0x4b5945(0x323)](_0x55ceab),this['_clearOtherTimers'][_0x4b5945(0x15c)](_0x23fc8a,null);}}['_handleLeaveEvent'](_0x50662b){const _0x56a420=_0x5e7409,{memberID:_0x179913,unitIDs:_0x35331d}=_0x50662b;_0x35331d[_0x56a420(0x2f8)](_0x4d6901=>{const _0x434dac=_0x56a420;var _0x149d86;const _0x909143=this[_0x434dac(0x330)]['get'](_0x4d6901);_0x909143&&(_0x909143['delete'](_0x179913),(_0x149d86=this[_0x434dac(0x149)](_0x4d6901))==null||_0x149d86['next'](_0x909143[_0x434dac(0x2f0)]===0x0?u[_0x434dac(0x2ef)][_0x434dac(0x29a)]:u[_0x434dac(0x2ef)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x179913);}[_0x5e7409(0x187)](_0x2f88d9){const _0x58db82=_0x5e7409;this['_scheduleClearOtherTimer'](_0x2f88d9[_0x58db82(0x259)]);}[_0x5e7409(0x2e4)](_0x144f0f){const _0x4211da=_0x5e7409;localStorage[_0x4211da(0x2a7)](ye,JSON[_0x4211da(0x2bd)](_0x144f0f));}['_scheduleHeartbeat'](){const _0x1f84e6=_0x5e7409;this['_heartbeatTimer']=window[_0x1f84e6(0x26b)](()=>{const _0x284e2e=_0x1f84e6;this[_0x284e2e(0x2e4)]({'type':0x2,'memberID':this[_0x284e2e(0x29d)]});},we);}[_0x5e7409(0x149)](_0x3eed83){const _0x5c2a6f=_0x5e7409;return this[_0x5c2a6f(0x248)][_0x5c2a6f(0x2ac)](_0x3eed83)||this[_0x5c2a6f(0x248)]['set'](_0x3eed83,new I[(_0x5c2a6f(0x191))](u[_0x5c2a6f(0x2ef)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x5c2a6f(0x248)][_0x5c2a6f(0x22b)](_0x3eed83);}}exports[_0x5e7409(0x2ec)]=Oe,exports[_0x5e7409(0x177)]=je,exports[_0x5e7409(0x28f)]=fs,exports[_0x5e7409(0x36a)]=ke;
1
+ 'use strict';const _0x4c4685=_0x1c17;(function(_0x1050a7,_0x4201e3){const _0x24a91b=_0x1c17,_0x12e674=_0x1050a7();while(!![]){try{const _0x3c22c9=parseInt(_0x24a91b(0x3d1))/0x1*(parseInt(_0x24a91b(0x3fa))/0x2)+-parseInt(_0x24a91b(0x1a8))/0x3*(-parseInt(_0x24a91b(0x23f))/0x4)+-parseInt(_0x24a91b(0x27d))/0x5*(parseInt(_0x24a91b(0x235))/0x6)+parseInt(_0x24a91b(0x404))/0x7+-parseInt(_0x24a91b(0x257))/0x8*(parseInt(_0x24a91b(0x369))/0x9)+parseInt(_0x24a91b(0x27e))/0xa+-parseInt(_0x24a91b(0x1a6))/0xb*(parseInt(_0x24a91b(0x2a2))/0xc);if(_0x3c22c9===_0x4201e3)break;else _0x12e674['push'](_0x12e674['shift']());}catch(_0x5f33d3){_0x12e674['push'](_0x12e674['shift']());}}}(_0x392f,0x84764));var Xe=Object[_0x4c4685(0x1f3)],Ke=(_0xa4edc9,_0x25c41c,_0x5ef9c5)=>_0x25c41c in _0xa4edc9?Xe(_0xa4edc9,_0x25c41c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ef9c5}):_0xa4edc9[_0x25c41c]=_0x5ef9c5,_=(_0x2fde65,_0x49602e,_0x2511b6)=>Ke(_0x2fde65,typeof _0x49602e!=_0x4c4685(0x1ad)?_0x49602e+'':_0x49602e,_0x2511b6);Object[_0x4c4685(0x1f3)](exports,Symbol[_0x4c4685(0x214)],{'value':_0x4c4685(0x2c4)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=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 Te({ref:_0x30dec1,..._0x22af3a}){const _0x3262ed=_0x4c4685,{icon:_0x53a361,id:_0x11f80d,className:_0x5ee08a,extend:_0x17f146,..._0xf06b4f}=_0x22af3a,_0x47dcdc=(_0x3262ed(0x34b)+_0x11f80d+'\x20'+(_0x5ee08a||''))[_0x3262ed(0x375)](),_0x2df801=A['useRef']('_'+Qe());return $e(_0x53a361,''+_0x11f80d,{'defIds':_0x53a361[_0x3262ed(0x413)],'idSuffix':_0x2df801[_0x3262ed(0x3d4)]},{'ref':_0x30dec1,'className':_0x47dcdc,..._0xf06b4f},_0x17f146);}function $e(_0x46a1d6,_0x132bb1,_0x3138e4,_0x2c7542,_0x5d0c8c){const _0xf65714=_0x4c4685;return A[_0xf65714(0x1d1)](_0x46a1d6[_0xf65714(0x3cc)],{'key':_0x132bb1,...Je(_0x46a1d6,_0x3138e4,_0x5d0c8c),..._0x2c7542},(Ze(_0x46a1d6,_0x3138e4)[_0xf65714(0x2c3)]||[])['map']((_0x5b6d9a,_0xec6570)=>$e(_0x5b6d9a,_0x132bb1+'-'+_0x46a1d6[_0xf65714(0x3cc)]+'-'+_0xec6570,_0x3138e4,void 0x0,_0x5d0c8c)));}function Je(_0x8a7df4,_0x53aefe,_0x41a827){const _0x33dd11=_0x4c4685,_0x5c9026={..._0x8a7df4[_0x33dd11(0x200)]};_0x41a827!=null&&_0x41a827['colorChannel1']&&_0x5c9026['fill']===_0x33dd11(0x22e)&&(_0x5c9026['fill']=_0x41a827[_0x33dd11(0x22e)]),_0x8a7df4['tag']===_0x33dd11(0x2f4)&&_0x5c9026['id']&&(_0x5c9026['id']=_0x5c9026['id']+_0x53aefe['idSuffix']),Object[_0x33dd11(0x231)](_0x5c9026)[_0x33dd11(0x258)](([_0xf90380,_0x251b7e])=>{const _0x4f8568=_0x33dd11;_0xf90380===_0x4f8568(0x2f4)&&typeof _0x251b7e==_0x4f8568(0x30b)&&(_0x5c9026[_0xf90380]=_0x251b7e['replace'](/url\(#(.*)\)/,_0x4f8568(0x29e)+_0x53aefe['idSuffix']+')'));});const {defIds:_0x3a76fe}=_0x53aefe;return!_0x3a76fe||_0x3a76fe[_0x33dd11(0x393)]===0x0||(_0x8a7df4[_0x33dd11(0x3cc)]==='use'&&_0x5c9026[_0x33dd11(0x246)]&&(_0x5c9026[_0x33dd11(0x246)]=_0x5c9026[_0x33dd11(0x246)]+_0x53aefe[_0x33dd11(0x3c4)]),Object['entries'](_0x5c9026)['forEach'](([_0x4489e1,_0x4aa347])=>{const _0x47d1a1=_0x33dd11;typeof _0x4aa347=='string'&&(_0x5c9026[_0x4489e1]=_0x4aa347[_0x47d1a1(0x3f8)](/url\(#(.*)\)/,_0x47d1a1(0x29e)+_0x53aefe['idSuffix']+')'));})),_0x5c9026;}function Ze(_0x1ef044,_0x2677ea){const _0x2eb629=_0x4c4685;var _0x21cd08;const {defIds:_0x2c72a1}=_0x2677ea;return!_0x2c72a1||_0x2c72a1[_0x2eb629(0x393)]===0x0?_0x1ef044:_0x1ef044[_0x2eb629(0x3cc)]===_0x2eb629(0x3e7)&&((_0x21cd08=_0x1ef044[_0x2eb629(0x2c3)])!=null&&_0x21cd08[_0x2eb629(0x393)])?{..._0x1ef044,'children':_0x1ef044[_0x2eb629(0x2c3)][_0x2eb629(0x36a)](_0x29c5d5=>typeof _0x29c5d5[_0x2eb629(0x200)]['id']=='string'&&_0x2c72a1&&_0x2c72a1[_0x2eb629(0x34c)](_0x29c5d5[_0x2eb629(0x200)]['id'])?{..._0x29c5d5,'attrs':{..._0x29c5d5[_0x2eb629(0x200)],'id':_0x29c5d5[_0x2eb629(0x200)]['id']+_0x2677ea[_0x2eb629(0x3c4)]}}:_0x29c5d5)}:_0x1ef044;}function Qe(){const _0x3bc14e=_0x4c4685;return Math['random']()[_0x3bc14e(0x173)](0x24)[_0x3bc14e(0x429)](0x2,0x8);}Te[_0x4c4685(0x209)]=_0x4c4685(0x283);const et={'tag':_0x4c4685(0x337),'attrs':{'xmlns':_0x4c4685(0x1e6),'fill':_0x4c4685(0x41c),'viewBox':_0x4c4685(0x376),'width':_0x4c4685(0x3c7),'height':_0x4c4685(0x3c7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'stroke':_0x4c4685(0x1ff),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4c4685(0x3d8),'strokeLinejoin':_0x4c4685(0x3d8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'fill':_0x4c4685(0x3eb),'d':_0x4c4685(0x317)}}]}]}],'defIds':[_0x4c4685(0x342)]},xe=A['forwardRef'](function(_0x2e674f,_0x486c6e){const _0x5c4c29=_0x4c4685;return A[_0x5c4c29(0x1d1)](Te,Object[_0x5c4c29(0x2e0)]({},_0x2e674f,{'id':'off-line-icon','ref':_0x486c6e,'icon':et}));});xe['displayName']=_0x4c4685(0x426);const tt={'tag':_0x4c4685(0x337),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c4685(0x41c),'viewBox':_0x4c4685(0x33e),'width':_0x4c4685(0x3c7),'height':_0x4c4685(0x3c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c4685(0x3b5)},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'stroke':_0x4c4685(0x1ff),'d':_0x4c4685(0x2f8),'strokeLinecap':_0x4c4685(0x3d8),'strokeLinejoin':_0x4c4685(0x3d8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4c4685(0x386),'attrs':{'id':_0x4c4685(0x25d)},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'fill':_0x4c4685(0x3eb),'d':_0x4c4685(0x317),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4c4685(0x25d)]},Be=A[_0x4c4685(0x261)](function(_0x5655f3,_0x3cd5d0){const _0x459190=_0x4c4685;return A[_0x459190(0x1d1)](Te,Object[_0x459190(0x2e0)]({},_0x5655f3,{'id':_0x459190(0x22a),'ref':_0x3cd5d0,'icon':tt}));});Be[_0x4c4685(0x209)]=_0x4c4685(0x198);function st(_0x34751f){const _0x1032ac=_0x4c4685;switch(_0x34751f){case u['CollaborationStatus'][_0x1032ac(0x30a)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x1032ac(0x38f)]:return _0x1032ac(0x2ed);case u['CollaborationStatus'][_0x1032ac(0x219)]:return _0x1032ac(0x37e);case u[_0x1032ac(0x27f)][_0x1032ac(0x1d5)]:return _0x1032ac(0x19c);case u[_0x1032ac(0x27f)]['AWAITING']:case u[_0x1032ac(0x27f)][_0x1032ac(0x2d0)]:return _0x1032ac(0x2a0);case u[_0x1032ac(0x27f)]['SYNCED']:case u[_0x1032ac(0x27f)][_0x1032ac(0x359)]:return _0x1032ac(0x30f);}}function it(_0x22aca9){const _0x4e2b06=_0x4c4685,{status$:_0x47d4f0}=_0x22aca9,_0x9afe17=O[_0x4e2b06(0x221)](_0x47d4f0,u[_0x4e2b06(0x27f)][_0x4e2b06(0x1d5)]),_0x2c23a5=O[_0x4e2b06(0x183)](a[_0x4e2b06(0x394)]),_0x50c49d=O[_0x4e2b06(0x183)](u[_0x4e2b06(0x35f)]),_0x5b1638=_0x9afe17!==u['CollaborationStatus']['OFFLINE'],_0x45469b=_0x2c23a5['t'](st(_0x9afe17)),_0x2f5a27=_0x5b1638?M[_0x4e2b06(0x296)](Be,{}):M[_0x4e2b06(0x296)](xe,{}),_0x3a8722=A[_0x4e2b06(0x31f)](()=>{const _0x26b2a1=_0x4e2b06;_0x5b1638||_0x50c49d[_0x26b2a1(0x31d)]();},[_0x5b1638,_0x50c49d]);function _0x3d36e0(){const _0x44eb59=_0x4e2b06;return M[_0x44eb59(0x23e)](_0x44eb59(0x3f6),{'className':_0x44eb59(0x1e0),'onClick':_0x3a8722,'children':[M[_0x44eb59(0x296)]('div',{'className':T[_0x44eb59(0x1f9)](_0x44eb59(0x270),{'univer-text-green-500':_0x5b1638,'univer-text-red-500':!_0x5b1638}),'children':_0x2f5a27}),M[_0x44eb59(0x296)](_0x44eb59(0x3f6),{'className':_0x44eb59(0x38a),'children':_0x45469b})]});}return _0x5b1638?_0x3d36e0():M[_0x4e2b06(0x296)](T[_0x4e2b06(0x39c)],{'title':_0x2c23a5['t'](_0x4e2b06(0x3f5)),'children':_0x3d36e0()});}var nt=Object[_0x4c4685(0x1b0)],rt=(_0x3f9460,_0x46d2e9,_0x3ac6b3,_0x260998)=>{const _0x2f8428=_0x4c4685;for(var _0x3cd047=_0x260998>0x1?void 0x0:_0x260998?nt(_0x46d2e9,_0x3ac6b3):_0x46d2e9,_0x296e22=_0x3f9460[_0x2f8428(0x393)]-0x1,_0x441ce9;_0x296e22>=0x0;_0x296e22--)(_0x441ce9=_0x3f9460[_0x296e22])&&(_0x3cd047=_0x441ce9(_0x3cd047)||_0x3cd047);return _0x3cd047;},K=(_0x4c4f6a,_0x3ceb73)=>(_0xa23399,_0x5068be)=>_0x3ceb73(_0xa23399,_0x5068be,_0x4c4f6a);exports[_0x4c4685(0x340)]=class extends a['Disposable']{constructor(_0x34a69a,_0x43882b,_0x2b70e0,_0x356444){const _0xecd485=_0x4c4685;super(),_(this,_0xecd485(0x384),new I[(_0xecd485(0x37d))](u[_0xecd485(0x27f)][_0xecd485(0x1d5)])),(this[_0xecd485(0x175)]=_0x34a69a,this['_injector']=_0x43882b,this['_collaborationController']=_0x2b70e0,this[_0xecd485(0x34e)]=_0x356444,this['_initStatusComponent'](),this[_0xecd485(0x313)]());}[_0x4c4685(0x313)](){const _0x552858=_0x4c4685;this[_0x552858(0x1c2)](this[_0x552858(0x175)][_0x552858(0x2b3)][_0x552858(0x249)](I[_0x552858(0x225)](()=>{const _0xc701b3=_0x552858,_0x246c10=this[_0xc701b3(0x175)][_0xc701b3(0x2e6)]();return _0x246c10?this[_0xc701b3(0x362)]['getCollabEntity$'](_0x246c10[_0xc701b3(0x1ca)]()):I['of'](null);}),I[_0x552858(0x225)](_0x424cf5=>_0x424cf5?_0x424cf5['status$']:I['of'](u[_0x552858(0x27f)][_0x552858(0x1d5)])))['subscribe'](_0x38c236=>{const _0x5952b2=_0x552858;this['_status$'][_0x5952b2(0x215)](_0x38c236);}));}[_0x4c4685(0x336)](){const _0x21403d=_0x4c4685;this[_0x21403d(0x1c2)](this['_uiPartsService'][_0x21403d(0x37b)](O[_0x21403d(0x2b4)][_0x21403d(0x1db)],()=>O[_0x21403d(0x213)](ot({'status$':this[_0x21403d(0x384)][_0x21403d(0x3d0)]()}),this[_0x21403d(0x28a)])));}},exports[_0x4c4685(0x340)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),K(0x2,a[_0x4c4685(0x414)](u[_0x4c4685(0x1f2)])),K(0x3,O[_0x4c4685(0x230)])],exports[_0x4c4685(0x340)]);function ot(_0x4287eb){const {status$:_0x4297f1}=_0x4287eb;return function(){const _0x31ff1f=_0x1c17;return M[_0x31ff1f(0x296)](it,{'status$':_0x4297f1});};}const Oe=a[_0x4c4685(0x276)]('uni.network.url-service');var at=Object[_0x4c4685(0x1b0)],ct=(_0x16fb93,_0x65d475,_0x3e8bdd,_0x208a83)=>{const _0x2766a5=_0x4c4685;for(var _0x466214=_0x208a83>0x1?void 0x0:_0x208a83?at(_0x65d475,_0x3e8bdd):_0x65d475,_0x55dfd0=_0x16fb93[_0x2766a5(0x393)]-0x1,_0x19df76;_0x55dfd0>=0x0;_0x55dfd0--)(_0x19df76=_0x16fb93[_0x55dfd0])&&(_0x466214=_0x19df76(_0x466214)||_0x466214);return _0x466214;},Y=(_0x4aa573,_0x1ed546)=>(_0x315e30,_0x179963)=>_0x1ed546(_0x315e30,_0x179963,_0x4aa573);exports[_0x4c4685(0x1ec)]=class extends a[_0x4c4685(0x303)]{constructor(_0x1d9ae8,_0x504ce5,_0xe15e0,_0x4dd06e,_0x54dbde){const _0x1b3dde=_0x4c4685;super(),this[_0x1b3dde(0x347)]=_0x1d9ae8,this[_0x1b3dde(0x228)]=_0x504ce5,this['_commandService']=_0xe15e0,this[_0x1b3dde(0x24f)]=_0x4dd06e,_0x54dbde?_0x54dbde==null||_0x54dbde[_0x1b3dde(0x3b9)]()[_0x1b3dde(0x382)](()=>this[_0x1b3dde(0x16e)]()):(this['_logService']['debug'](_0x1b3dde(0x354),_0x1b3dde(0x2b5)),this[_0x1b3dde(0x16e)]());}async[_0x4c4685(0x16e)](){const _0x5ef6bb=_0x4c4685,_0x3ba6f3=this[_0x5ef6bb(0x347)][_0x5ef6bb(0x42b)](_0x5ef6bb(0x2ad)),_0x4672c0=this['_urlService'][_0x5ef6bb(0x42b)]('type'),_0x2e5fd1=this[_0x5ef6bb(0x347)][_0x5ef6bb(0x42b)]('subunit');if(!_0x3ba6f3||!_0x4672c0){this[_0x5ef6bb(0x228)][_0x5ef6bb(0x2a7)](_0x5ef6bb(0x354),_0x5ef6bb(0x35b));return;}const _0x1486fe=await this['_dataLoaderService'][_0x5ef6bb(0x1fd)](_0x3ba6f3,Number(_0x4672c0),_0x2e5fd1);_0x1486fe&&_0x1486fe instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x1486fe);}async[_0x4c4685(0x267)](_0x79950c){const _0x540de1=_0x4c4685;await this['_updateSubUnitFromURLParams'](_0x79950c),_0x79950c[_0x540de1(0x360)][_0x540de1(0x249)](I[_0x540de1(0x206)](this['dispose$']))[_0x540de1(0x2e5)](_0x20f653=>{const _0x53a153=_0x540de1;_0x20f653&&this[_0x53a153(0x40b)](_0x20f653);}),this[_0x540de1(0x347)][_0x540de1(0x30d)][_0x540de1(0x249)](I[_0x540de1(0x206)](this[_0x540de1(0x374)]))['subscribe'](()=>this[_0x540de1(0x38c)](_0x79950c));}[_0x4c4685(0x40b)](_0x450f98,_0xc2bef9=!0x1){const _0x1453bd=_0x4c4685,_0x530f98=this['_urlService'][_0x1453bd(0x42b)](_0x1453bd(0x1cb));_0x450f98[_0x1453bd(0x1a9)]()!==_0x530f98&&this[_0x1453bd(0x347)][_0x1453bd(0x1b3)](_0x1453bd(0x1cb),_0x450f98['getSheetId'](),_0xc2bef9);}async['_updateSubUnitFromURLParams'](_0x4421d){const _0x2819b8=_0x4c4685;var _0x32a786;const _0x502f1a=this[_0x2819b8(0x347)][_0x2819b8(0x42b)]('subunit');if(!_0x502f1a||!_0x4421d[_0x2819b8(0x226)](_0x502f1a)){const _0x5ace54=_0x4421d['getUnhiddenWorksheets']()[0x0],_0x5ed48d=_0x4421d[_0x2819b8(0x226)](_0x5ace54);if(!_0x5ed48d)return;this[_0x2819b8(0x40b)](_0x5ed48d,!0x0),await this['_commandService'][_0x2819b8(0x18b)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4421d[_0x2819b8(0x1ca)](),'subUnitId':_0x5ace54});return;}((_0x32a786=_0x4421d['getActiveSheet']())==null?void 0x0:_0x32a786[_0x2819b8(0x1a9)]())!==_0x502f1a&&await this['_commandService']['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4421d[_0x2819b8(0x1ca)](),'subUnitId':_0x502f1a});}},exports[_0x4c4685(0x1ec)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4c4685(0x259)]),Y(0x2,a[_0x4c4685(0x3c5)]),Y(0x3,a['Inject'](u[_0x4c4685(0x3d2)])),Y(0x4,a[_0x4c4685(0x326)](qe[_0x4c4685(0x207)]))],exports[_0x4c4685(0x1ec)]);var lt=Object[_0x4c4685(0x1b0)],_t=(_0x1c22d6,_0x1f7474,_0xd67b35,_0x36d377)=>{const _0x53f2b0=_0x4c4685;for(var _0x1bdc9b=_0x36d377>0x1?void 0x0:_0x36d377?lt(_0x1f7474,_0xd67b35):_0x1f7474,_0x109fbd=_0x1c22d6[_0x53f2b0(0x393)]-0x1,_0x1959fa;_0x109fbd>=0x0;_0x109fbd--)(_0x1959fa=_0x1c22d6[_0x109fbd])&&(_0x1bdc9b=_0x1959fa(_0x1bdc9b)||_0x1bdc9b);return _0x1bdc9b;},De=(_0x2a2465,_0x527c1f)=>(_0x12c7aa,_0x58f4d7)=>_0x527c1f(_0x12c7aa,_0x58f4d7,_0x2a2465);let me=class extends a[_0x4c4685(0x303)]{constructor(_0x1dce7e,_0x2b7bf6){const _0x57cba8=_0x4c4685;super(),this[_0x57cba8(0x40c)]=_0x1dce7e,this[_0x57cba8(0x31c)]=_0x2b7bf6,this[_0x57cba8(0x16e)]();}[_0x4c4685(0x16e)](){const _0x49ef6f=_0x4c4685,_0x41725=this;this[_0x49ef6f(0x1c2)](this[_0x49ef6f(0x40c)][_0x49ef6f(0x3ab)]({'onBeforePasteImage':async _0x2dc4dd=>{const _0x38132a=_0x49ef6f,_0x584e67=await _0x41725[_0x38132a(0x31c)][_0x38132a(0x178)](_0x2dc4dd);return _0x584e67?{'source':_0x584e67['source'],'imageSourceType':_0x584e67[_0x38132a(0x2ba)]}:null;}}));}};me=_t([De(0x0,p[_0x4c4685(0x26f)]),De(0x1,ze[_0x4c4685(0x3aa)])],me);const Ne=[_0x4c4685(0x363),_0x4c4685(0x28e),'green.600',_0x4c4685(0x1b5),_0x4c4685(0x39e),_0x4c4685(0x1e1)];class Re extends a[_0x4c4685(0x25e)]{constructor(){const _0x3a7def=_0x4c4685;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x3a7def(0x31a),0x0);}[_0x4c4685(0x21d)](_0x27e2f0){const _0x230b10=_0x4c4685;if(this[_0x230b10(0x23c)][_0x230b10(0x39b)](_0x27e2f0))return this[_0x230b10(0x23c)][_0x230b10(0x418)](_0x27e2f0);const _0x178ddf=Ne[this[_0x230b10(0x31a)]];return this[_0x230b10(0x31a)]=(this['_colorIndex']+0x1)%Ne[_0x230b10(0x393)],this[_0x230b10(0x23c)][_0x230b10(0x1d4)](_0x27e2f0,_0x178ddf),_0x178ddf;}}function Fe(_0x103de2){const _0x2db1a8=_0x4c4685;let _0x1f78de='';for(const _0x14426d of _0x103de2){const {startOffset:_0x1e485f,endOffset:_0x4abcf5,isActive:_0x301300,rangeType:_0x1d40a2,segmentId:_0x1ab3c4,segmentPage:_0x4f1f11}=_0x14426d;_0x1f78de[_0x2db1a8(0x393)]&&(_0x1f78de+=','),_0x1f78de+=_0x1e485f+':'+_0x4abcf5+':'+(_0x301300?'1':'0')+':'+_0x1d40a2+':'+_0x1ab3c4+':'+_0x4f1f11;}return _0x1f78de;}function ht(_0x4a3bc4){const _0x143983=_0x4c4685,_0x198ead=_0x4a3bc4[_0x143983(0x32d)](','),_0x1ea64b=[];for(const _0x7e6ce0 of _0x198ead){const [_0x347cc8,_0x2fba98,_0x406b68,_0x496dcb,_0x15e0a2,_0x100c97]=_0x7e6ce0['split'](':');_0x1ea64b[_0x143983(0x2cc)]({'startOffset':Number(_0x347cc8),'endOffset':Number(_0x2fba98),'collapsed':_0x347cc8===_0x2fba98,'isActive':_0x406b68==='1','rangeType':_0x496dcb===a['DOC_RANGE_TYPE'][_0x143983(0x1d8)]?a['DOC_RANGE_TYPE'][_0x143983(0x1d8)]:a[_0x143983(0x38d)]['RECT'],'segmentId':typeof _0x15e0a2==_0x143983(0x30b)?String(_0x15e0a2):'','segmentPage':Number(_0x100c97!=null?_0x100c97:-0x1)});}return _0x1ea64b[_0x143983(0x3ff)](_0x4b0154=>_0x4b0154[_0x143983(0x3de)])||(_0x1ea64b[0x0][_0x143983(0x3de)]=!0x0),_0x1ea64b;}class be extends a[_0x4c4685(0x303)]{constructor(){const _0x4e6111=_0x4c4685;super(...arguments),_(this,_0x4e6111(0x344),new I[(_0x4e6111(0x37d))](null)),_(this,_0x4e6111(0x3bf),this[_0x4e6111(0x344)][_0x4e6111(0x3d0)]());}[_0x4c4685(0x1b7)](_0x17de45){const _0x5df2f1=_0x4c4685,{unitID:_0x4a2e23,memberID:_0x472eb4,textRanges:_0x161eb8}=_0x17de45,_0x4ffc95=Fe(_0x161eb8);if(_0x4ffc95==='')return;const _0x1db795={'unitID':_0x4a2e23,'memberID':_0x472eb4,'selection':_0x4ffc95};this[_0x5df2f1(0x344)]['next'](_0x1db795);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x55c343,_0x19e5a8,_0x3a9060,_0x2b49e5)=>{for(var _0x48c2c2=_0x2b49e5>0x1?void 0x0:_0x2b49e5?ut(_0x19e5a8,_0x3a9060):_0x19e5a8,_0x379ebd=_0x55c343['length']-0x1,_0x1103f0;_0x379ebd>=0x0;_0x379ebd--)(_0x1103f0=_0x55c343[_0x379ebd])&&(_0x48c2c2=_0x1103f0(_0x48c2c2)||_0x48c2c2);return _0x48c2c2;},U=(_0x5aa6c4,_0x301fc3)=>(_0x3fb83a,_0x53add2)=>_0x301fc3(_0x3fb83a,_0x53add2,_0x5aa6c4);const dt=0x12c,St=0x64;let ve=class extends a[_0x4c4685(0x303)]{constructor(_0x1b57f0,_0x17a2cc,_0xad4e61,_0x2da9c5,_0x78b4a0,_0x1275da,_0x747fa0,_0xbc2919,_0x3bd5c2){const _0x4242bf=_0x4c4685;super(),_(this,_0x4242bf(0x2a5),!0x1),_(this,_0x4242bf(0x16e),!0x1),_(this,_0x4242bf(0x1fa),new I['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x4242bf(0x1fa)][_0x4242bf(0x3d0)]()),_(this,_0x4242bf(0x3e0),new I[(_0x4242bf(0x37d))]([])),_(this,'roomMembers$',this[_0x4242bf(0x3e0)][_0x4242bf(0x249)](I[_0x4242bf(0x2b8)](dt))),_(this,'_updateLocalCursor',a[_0x4242bf(0x3d9)](_0xeaef88=>{const _0x20cb1b=_0x4242bf,_0x6a1632={'eventID':g[_0x20cb1b(0x319)][_0x20cb1b(0x390)],'data':{'unitID':this[_0x20cb1b(0x179)],'memberID':this[_0x20cb1b(0x1d2)]['getMemberID'](),'selection':Fe(_0xeaef88)}};this[_0x20cb1b(0x1d2)][_0x20cb1b(0x39d)](_0x6a1632,this[_0x20cb1b(0x179)]);},St)),(this[_0x4242bf(0x179)]=_0x1b57f0,this[_0x4242bf(0x1d2)]=_0x17a2cc,this[_0x4242bf(0x28a)]=_0xad4e61,this[_0x4242bf(0x1b6)]=_0x2da9c5,this[_0x4242bf(0x403)]=_0x78b4a0,this[_0x4242bf(0x381)]=_0x1275da,this[_0x4242bf(0x2f6)]=_0x747fa0,this['_univerInstanceService']=_0xbc2919,this[_0x4242bf(0x25a)]=_0x3bd5c2);}get[_0x4c4685(0x297)](){const _0x10f0d0=_0x4c4685;return this[_0x10f0d0(0x1fa)][_0x10f0d0(0x2f1)]();}get[_0x4c4685(0x341)](){const _0xe54ff2=_0x4c4685;return this[_0xe54ff2(0x3e0)][_0xe54ff2(0x2f1)]();}[_0x4c4685(0x3d3)](){const _0x5712e8=_0x4c4685;super['dispose'](),this['_cursorInfo$'][_0x5712e8(0x215)](new Map()),this['_cursorInfo$']['complete'](),this[_0x5712e8(0x3e0)][_0x5712e8(0x215)]([]),this['_roomMembers$'][_0x5712e8(0x27b)]();}['init'](){const _0x5e7853=_0x4c4685;this['_init']||(this[_0x5e7853(0x16e)]=!0x0,this[_0x5e7853(0x1d2)][_0x5e7853(0x332)][_0x5e7853(0x249)](I[_0x5e7853(0x206)](this[_0x5e7853(0x374)]))[_0x5e7853(0x2e5)](_0x3731fa=>{const _0xcf8a32=_0x5e7853;_0x3731fa===u[_0xcf8a32(0x2cf)][_0xcf8a32(0x1ef)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x5e7853(0x1d2)][_0x5e7853(0x2dd)][_0x5e7853(0x249)](I['takeUntil'](this[_0x5e7853(0x374)]))['subscribe'](_0x1989aa=>{const _0x257870=_0x5e7853,_0xd4b5aa=_0x1989aa['eventID'];_0xd4b5aa===g[_0x257870(0x319)][_0x257870(0x390)]&&this[_0x257870(0x24b)](_0x1989aa),_0xd4b5aa===g[_0x257870(0x319)]['USERS_LEAVE']&&this[_0x257870(0x34d)](_0x1989aa);}),this[_0x5e7853(0x1c2)](this[_0x5e7853(0x25a)][_0x5e7853(0x17a)](_0x3e9489=>{const _0x44e2d7=_0x5e7853,_0x3b8127=_0x3e9489[_0x44e2d7(0x18a)];_0x3b8127!=null&&this[_0x44e2d7(0x2a5)]&&_0x3e9489['id']===V['SetTextSelectionsOperation']['id']&&_0x3b8127[_0x44e2d7(0x1a1)]===this[_0x44e2d7(0x179)]&&_0x3b8127['isEditing']===!0x1&&_0x3b8127[_0x44e2d7(0x1df)][_0x44e2d7(0x393)]>0x0&&this['_updateLocalCursor'](_0x3b8127[_0x44e2d7(0x1df)]);})),this[_0x5e7853(0x381)][_0x5e7853(0x3bf)][_0x5e7853(0x249)](I[_0x5e7853(0x206)](this[_0x5e7853(0x374)]))['subscribe'](_0x46f691=>{const _0x232013=_0x5e7853;if((_0x46f691==null?void 0x0:_0x46f691[_0x232013(0x179)])!==this[_0x232013(0x179)])return;const _0xf67cc={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x46f691};this[_0x232013(0x24b)](_0xf67cc);}),this[_0x5e7853(0x1c2)](this[_0x5e7853(0x25a)]['onCommandExecuted'](_0x32f516=>{const _0x57dc7e=_0x5e7853;if(_0x32f516[_0x57dc7e(0x18a)]==null)return;const _0x373edd=_0x32f516[_0x57dc7e(0x18a)];if(_0x32f516['id']!==V[_0x57dc7e(0x2fb)]['id']||_0x373edd['unitId']!==this[_0x57dc7e(0x179)])return;const _0x3c8a1a={'id':_0x57dc7e(0x3b3),'params':_0x373edd},_0x4dc5a9=this[_0x57dc7e(0x297)];for(const [_0x227916,_0x34b384]of _0x4dc5a9){const _0xccf91f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x57dc7e(0x179)],'actions':null,'textRanges':_0x34b384['ranges']}},_0x4d002d=this[_0x57dc7e(0x2f6)][_0x57dc7e(0x42f)](_0x3c8a1a,_0xccf91f,!0x1);if(g[_0x57dc7e(0x2c0)](_0x4d002d))throw _0x4d002d[_0x57dc7e(0x2c2)];_0x4dc5a9['set'](_0x227916,{..._0x34b384,'ranges':_0x4d002d[_0x57dc7e(0x411)][_0x57dc7e(0x18a)][_0x57dc7e(0x220)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x4dc5a9);});})));}[_0x4c4685(0x24b)](_0x2b3318){const _0x8023d0=_0x4c4685;var _0x5e1b4d,_0x1309a9;const {memberID:_0x2c8450,selection:_0x38fa1b}=_0x2b3318[_0x8023d0(0x339)],_0x567ca1=ht(_0x38fa1b),_0x200858=(_0x1309a9=(_0x5e1b4d=this['_memberService'][_0x8023d0(0x2bc)](this[_0x8023d0(0x179)],_0x2c8450))==null?void 0x0:_0x5e1b4d[_0x8023d0(0x2c8)])!=null?_0x1309a9:'Unknown\x20user',_0x4fa293={'color':this[_0x8023d0(0x1b6)]['assignAColorForMemberID'](_0x2c8450),'name':_0x200858,'ranges':_0x567ca1},_0x3dca90=this[_0x8023d0(0x297)];_0x3dca90['set'](_0x2c8450,_0x4fa293),this[_0x8023d0(0x1fa)][_0x8023d0(0x215)](_0x3dca90);}[_0x4c4685(0x34d)](_0x37cd76){const _0x2a1f06=_0x4c4685,{memberID:_0x2df331}=_0x37cd76[_0x2a1f06(0x339)],_0x213988=this['cursorInfo'];_0x213988[_0x2a1f06(0x1be)](_0x2df331),this[_0x2a1f06(0x1fa)][_0x2a1f06(0x215)](_0x213988);}[_0x4c4685(0x1ee)](){const _0x2ce5c1=_0x4c4685;var _0x542f91;if(this[_0x2ce5c1(0x2a5)]=!0x0,((_0x542f91=this[_0x2ce5c1(0x175)][_0x2ce5c1(0x2e6)]())==null?void 0x0:_0x542f91[_0x2ce5c1(0x1ca)]())!==this[_0x2ce5c1(0x179)])return;const _0x179ff8=this[_0x2ce5c1(0x28a)][_0x2ce5c1(0x418)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x2ce5c1(0x2bf)](_0x179ff8)&&_0x179ff8[_0x2ce5c1(0x393)]>0x0&&this[_0x2ce5c1(0x19b)](_0x179ff8);}[_0x4c4685(0x329)](){const _0x15c2f2=_0x4c4685;this[_0x15c2f2(0x2a5)]=!0x1;}};ve=It([U(0x2,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),U(0x3,a[_0x4c4685(0x414)](Re)),U(0x4,a[_0x4c4685(0x414)](u[_0x4c4685(0x2e4)])),U(0x5,a[_0x4c4685(0x414)](be)),U(0x6,g[_0x4c4685(0x279)]),U(0x7,a[_0x4c4685(0x19d)]),U(0x8,a[_0x4c4685(0x3c5)])],ve);function _0x1c17(_0x202f99,_0x4d8bc4){const _0x392f0e=_0x392f();return _0x1c17=function(_0x1c1723,_0x559fc1){_0x1c1723=_0x1c1723-0x16c;let _0x4329d6=_0x392f0e[_0x1c1723];return _0x4329d6;},_0x1c17(_0x202f99,_0x4d8bc4);}var ft=Object[_0x4c4685(0x1b0)],mt=(_0x43f72e,_0x59622a,_0x70278,_0x51b49f)=>{const _0x54ea5c=_0x4c4685;for(var _0x27dbd6=_0x51b49f>0x1?void 0x0:_0x51b49f?ft(_0x59622a,_0x70278):_0x59622a,_0x4fc14d=_0x43f72e[_0x54ea5c(0x393)]-0x1,_0x3203b2;_0x4fc14d>=0x0;_0x4fc14d--)(_0x3203b2=_0x43f72e[_0x4fc14d])&&(_0x27dbd6=_0x3203b2(_0x27dbd6)||_0x27dbd6);return _0x27dbd6;},w=(_0x2b2a9e,_0x4aaff0)=>(_0x56c7d9,_0x5ac920)=>_0x4aaff0(_0x56c7d9,_0x5ac920,_0x2b2a9e);const vt=0x12c,gt=0x64,Et=()=>{let _0x327b39=[],_0x5cae23=!0x1;return _0x3cd75d=>{_0x327b39['push'](_0x3cd75d),_0x5cae23||(_0x5cae23=!0x0,setTimeout(()=>{const _0x54f6b1=_0x1c17;_0x327b39[_0x54f6b1(0x258)](_0x3612aa=>_0x3612aa()),_0x327b39=[],_0x5cae23=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x244741,_0x13b9b4,_0x5c59db,_0x2c15bb,_0x1d7afa,_0x102d0e,_0xd4349b,_0x278806){const _0x1c9b9a=_0x4c4685;super(),_(this,_0x1c9b9a(0x2a5),!0x1),_(this,'_init',!0x1),_(this,_0x1c9b9a(0x1fa),new I[(_0x1c9b9a(0x37d))](new Map())),_(this,_0x1c9b9a(0x2aa),this[_0x1c9b9a(0x1fa)]['asObservable']()),_(this,_0x1c9b9a(0x3e0),new I[(_0x1c9b9a(0x37d))]([])),_(this,_0x1c9b9a(0x3ec),this[_0x1c9b9a(0x3e0)][_0x1c9b9a(0x249)](I[_0x1c9b9a(0x2b8)](vt))),_(this,_0x1c9b9a(0x19b),a[_0x1c9b9a(0x3d9)]((_0x53c6fb,_0x1dac1b)=>{const _0x3a34d7=_0x1c9b9a,_0x2d24cc={'eventID':g[_0x3a34d7(0x319)][_0x3a34d7(0x390)],'data':{'unitID':this[_0x3a34d7(0x179)],'memberID':this[_0x3a34d7(0x1d2)][_0x3a34d7(0x41f)](),'selection':B['serializeRangeWithSheet'](_0x53c6fb,_0x1dac1b[_0x3a34d7(0x20b)])}};this['_session'][_0x3a34d7(0x39d)](_0x2d24cc,this[_0x3a34d7(0x179)]);},gt)),(this[_0x1c9b9a(0x179)]=_0x244741,this['_session']=_0x13b9b4,this[_0x1c9b9a(0x28a)]=_0x5c59db,this[_0x1c9b9a(0x1b6)]=_0x2c15bb,this[_0x1c9b9a(0x403)]=_0x1d7afa,this[_0x1c9b9a(0x175)]=_0x102d0e,this[_0x1c9b9a(0x25a)]=_0xd4349b,this[_0x1c9b9a(0x17d)]=_0x278806);}get[_0x4c4685(0x297)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5d017c=_0x4c4685;return this[_0x5d017c(0x3e0)][_0x5d017c(0x2f1)]();}['dispose'](){const _0x497d0d=_0x4c4685;super[_0x497d0d(0x3d3)](),this[_0x497d0d(0x1fa)][_0x497d0d(0x215)](new Map()),this[_0x497d0d(0x1fa)][_0x497d0d(0x27b)](),this[_0x497d0d(0x3e0)]['next']([]),this[_0x497d0d(0x3e0)][_0x497d0d(0x27b)]();}[_0x4c4685(0x2f7)](){const _0x151de9=_0x4c4685;this['_init']||(this['_init']=!0x0,this[_0x151de9(0x1d2)][_0x151de9(0x332)]['pipe'](I[_0x151de9(0x206)](this[_0x151de9(0x374)]))['subscribe'](_0x461757=>{const _0x3219fd=_0x151de9;_0x461757===u[_0x3219fd(0x2cf)][_0x3219fd(0x1ef)]?this[_0x3219fd(0x1ee)]():this[_0x3219fd(0x329)]();}),this['_session'][_0x151de9(0x2dd)][_0x151de9(0x249)](I['takeUntil'](this[_0x151de9(0x374)]))[_0x151de9(0x2e5)](_0x380670=>{const _0x377bfa=_0x151de9,_0x46f7ff=_0x380670[_0x377bfa(0x2c6)];_0x46f7ff===g[_0x377bfa(0x319)][_0x377bfa(0x390)]&&this[_0x377bfa(0x24b)](_0x380670),_0x46f7ff===g[_0x377bfa(0x319)][_0x377bfa(0x33a)]&&this[_0x377bfa(0x34d)](_0x380670);}),this['_onRefRangeChange'](),this[_0x151de9(0x1c2)](this[_0x151de9(0x25a)][_0x151de9(0x17a)](_0x12953e=>{const _0x5bb3ef=_0x151de9;if(this[_0x5bb3ef(0x2a5)]&&_0x12953e['id']===v[_0x5bb3ef(0x2fc)]['id']&&_0x12953e['params']['unitId']===this[_0x5bb3ef(0x179)]){const _0x4734de=_0x12953e[_0x5bb3ef(0x18a)];this['_updateLocalCursor'](_0x4734de[_0x5bb3ef(0x2d1)],_0x4734de[_0x5bb3ef(0x2b2)][0x0]);}})));}['_onCursorUpdate'](_0x2cfc1d){const _0x5c4b24=_0x4c4685;var _0x18c12a,_0x4e4dc1;const {memberID:_0xf24bdf,selection:_0x521700}=_0x2cfc1d['data'],{sheetName:_0x538689,range:_0x2a3612}=B['deserializeRangeWithSheet'](_0x521700),_0x3399a1={'name':(_0x4e4dc1=(_0x18c12a=this[_0x5c4b24(0x403)][_0x5c4b24(0x2bc)](this['unitID'],_0xf24bdf))==null?void 0x0:_0x18c12a[_0x5c4b24(0x2c8)])!=null?_0x4e4dc1:'Unknown\x20user','range':this[_0x5c4b24(0x24a)](_0x538689,_0x2a3612),'sheetID':_0x538689,'color':this['_colorAssignService']['assignAColorForMemberID'](_0xf24bdf),'selection':_0x521700},_0x226ac8=this[_0x5c4b24(0x297)];_0x226ac8['set'](_0xf24bdf,_0x3399a1),this['_cursorInfo$'][_0x5c4b24(0x215)](_0x226ac8);}[_0x4c4685(0x34d)](_0x21f87e){const _0x4d5fd3=_0x4c4685,{memberID:_0x2163cb}=_0x21f87e[_0x4d5fd3(0x339)],_0x2c8870=this['cursorInfo'];_0x2c8870['delete'](_0x2163cb),this[_0x4d5fd3(0x1fa)][_0x4d5fd3(0x215)](_0x2c8870);}[_0x4c4685(0x24a)](_0x420652,_0x50668e){const _0x5317f4=_0x4c4685;var _0x52cf91,_0x4866f4;const _0x34eaca=(_0x4866f4=(_0x52cf91=this[_0x5317f4(0x175)][_0x5317f4(0x3e8)](this['unitID']))==null?void 0x0:_0x52cf91['getSheetBySheetId'](_0x420652))==null?void 0x0:_0x4866f4[_0x5317f4(0x17f)]();return(_0x34eaca==null?void 0x0:_0x34eaca[_0x5317f4(0x211)](_0x22d904=>a[_0x5317f4(0x19e)]['contains'](_0x22d904,_0x50668e)))||_0x50668e;}['_onRefRangeChange'](){const _0x41b44f=_0x4c4685,_0x5290b6=new a[(_0x41b44f(0x3a2))](),_0x118907=Et(),_0x11c68a=()=>{const _0x1e047f=_0x41b44f;_0x5290b6[_0x1e047f(0x3d3)]();const _0x21cd48=(_0x278d3b,_0x21a103,_0x2329a5,_0x20237c)=>{const _0x3c6671=_0x1e047f;let _0x570bf4=[];switch(_0x278d3b['id']){case v['EffectRefRangId'][_0x3c6671(0x316)]:{_0x570bf4=v[_0x3c6671(0x192)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)]['DeleteRangeMoveUpCommandId']:{_0x570bf4=v[_0x3c6671(0x2b1)](_0x278d3b,_0x20237c);break;}case v['EffectRefRangId'][_0x3c6671(0x2eb)]:{_0x570bf4=v[_0x3c6671(0x1f6)](_0x278d3b,_0x20237c);break;}case v['EffectRefRangId'][_0x3c6671(0x42c)]:{_0x570bf4=v[_0x3c6671(0x424)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)]['InsertRangeMoveRightCommandId']:{_0x570bf4=v[_0x3c6671(0x262)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)][_0x3c6671(0x1fc)]:{_0x570bf4=v[_0x3c6671(0x20d)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)][_0x3c6671(0x3af)]:{_0x570bf4=v['handleMoveRange'](_0x278d3b,_0x20237c);break;}case v['EffectRefRangId'][_0x3c6671(0x3b2)]:{_0x570bf4=v[_0x3c6671(0x33b)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)][_0x3c6671(0x402)]:{_0x570bf4=v['handleIRemoveRow'](_0x278d3b,_0x20237c);break;}}const _0x5cfdce=v[_0x3c6671(0x23d)](_0x570bf4,_0x20237c),_0x343505=this['cursorInfo'][_0x3c6671(0x418)](_0x21a103);if(_0x343505&&_0x5cfdce){const _0x2e1188={..._0x343505,'range':_0x5cfdce};this[_0x3c6671(0x297)][_0x3c6671(0x1d4)](_0x21a103,_0x2e1188),_0x118907(()=>{const _0x548dc7=_0x3c6671,_0x3c124c=this[_0x548dc7(0x17d)][_0x548dc7(0x320)](_0x5cfdce,_0x2f3192=>(_0x3c124c[_0x548dc7(0x3d3)](),_0x21cd48(_0x2f3192,_0x21a103,_0x2329a5,_0x5cfdce)));_0x5290b6[_0x548dc7(0x1c9)](_0x3c124c);});}return{'redos':[],'undos':[]};};this[_0x1e047f(0x297)][_0x1e047f(0x258)]((_0x180d57,_0x29aca8)=>{const _0x59bc1c=_0x1e047f,{range:_0x4ef2b0,sheetID:_0x22d96b}=_0x180d57,_0x568273=this[_0x59bc1c(0x17d)]['registerRefRange'](_0x4ef2b0,_0x22cc89=>(_0x568273[_0x59bc1c(0x3d3)](),_0x21cd48(_0x22cc89,_0x29aca8,_0x22d96b,_0x4ef2b0)));_0x5290b6[_0x59bc1c(0x1c9)](_0x568273);});};this['disposeWithMe'](a[_0x41b44f(0x356)](this[_0x41b44f(0x1fa)][_0x41b44f(0x2e5)](()=>{_0x11c68a();})));}[_0x4c4685(0x1ee)](){const _0x2bfbdb=_0x4c4685;var _0x5e0d16,_0x2d7c94;if(this['_online']=!0x0,((_0x5e0d16=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x5e0d16['getUnitId']())!==this[_0x2bfbdb(0x179)])return;const _0x5c097f=(_0x2d7c94=this[_0x2bfbdb(0x28a)][_0x2bfbdb(0x418)](v[_0x2bfbdb(0x302)])[_0x2bfbdb(0x2ca)]())==null?void 0x0:_0x2d7c94[0x0],_0x2d9ad1=this[_0x2bfbdb(0x175)]['getCurrentUnitForType'](a[_0x2bfbdb(0x323)][_0x2bfbdb(0x2a6)])[_0x2bfbdb(0x2ae)]();_0x5c097f&&_0x2d9ad1&&this[_0x2bfbdb(0x19b)](_0x2d9ad1[_0x2bfbdb(0x1a9)](),_0x5c097f);}[_0x4c4685(0x329)](){const _0x26177d=_0x4c4685;this[_0x26177d(0x2a5)]=!0x1;}};ge=mt([w(0x2,a[_0x4c4685(0x414)](a['Injector'])),w(0x3,a[_0x4c4685(0x414)](Re)),w(0x4,a[_0x4c4685(0x414)](u[_0x4c4685(0x2e4)])),w(0x5,a[_0x4c4685(0x19d)]),w(0x6,a[_0x4c4685(0x3c5)]),w(0x7,a[_0x4c4685(0x414)](v[_0x4c4685(0x3e9)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x1b0fc3,_0x5b2272,_0x18b41e,_0x3b8e93)=>{for(var _0x2581b5=_0x3b8e93>0x1?void 0x0:_0x3b8e93?Ct(_0x5b2272,_0x18b41e):_0x5b2272,_0xeb87b1=_0x1b0fc3['length']-0x1,_0x5190ec;_0xeb87b1>=0x0;_0xeb87b1--)(_0x5190ec=_0x1b0fc3[_0xeb87b1])&&(_0x2581b5=_0x5190ec(_0x2581b5)||_0x2581b5);return _0x2581b5;},ce=(_0x4df2c9,_0x29be0e)=>(_0x12da03,_0x200e67)=>_0x29be0e(_0x12da03,_0x200e67,_0x4df2c9);let F=class extends a[_0x4c4685(0x303)]{constructor(_0x3f47e6,_0xfd5737,_0x3c0b7d){const _0x172f62=_0x4c4685;super(),_(this,_0x172f62(0x274),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x172f62(0x175)]=_0x3f47e6,this[_0x172f62(0x28a)]=_0xfd5737,this[_0x172f62(0x289)]=_0x3c0b7d,this[_0x172f62(0x16e)]());}[_0x4c4685(0x3d3)](){const _0x2c8553=_0x4c4685;super[_0x2c8553(0x3d3)](),this['_entityInit$']['complete'](),this[_0x2c8553(0x274)][_0x2c8553(0x258)](_0x148de0=>_0x148de0['dispose']());}[_0x4c4685(0x16c)](_0x7a59ab){const _0x4f548d=_0x4c4685;return this[_0x4f548d(0x274)]['has'](_0x7a59ab)?this[_0x4f548d(0x274)][_0x4f548d(0x418)](_0x7a59ab)[_0x4f548d(0x2aa)]:this[_0x4f548d(0x2d6)][_0x4f548d(0x249)](I[_0x4f548d(0x190)](_0x1694a3=>_0x1694a3[_0x4f548d(0x179)]===_0x7a59ab),I[_0x4f548d(0x225)](_0x2d8b4f=>_0x2d8b4f[_0x4f548d(0x2aa)]));}[_0x4c4685(0x16e)](){const _0x2e8bfa=_0x4c4685;this[_0x2e8bfa(0x175)][_0x2e8bfa(0x41b)](a[_0x2e8bfa(0x323)][_0x2e8bfa(0x2a6)])[_0x2e8bfa(0x249)](I['takeUntil'](this[_0x2e8bfa(0x374)]))[_0x2e8bfa(0x2e5)](async _0x349494=>{const _0x494c53=_0x2e8bfa,_0x10c7d8=_0x349494[_0x494c53(0x1ca)](),_0x5479f5=await this[_0x494c53(0x366)](_0x10c7d8);this[_0x494c53(0x2d6)][_0x494c53(0x215)](_0x5479f5),this[_0x494c53(0x274)][_0x494c53(0x1d4)](_0x10c7d8,_0x5479f5);}),this[_0x2e8bfa(0x175)][_0x2e8bfa(0x41b)](a[_0x2e8bfa(0x323)][_0x2e8bfa(0x227)])['pipe'](I[_0x2e8bfa(0x206)](this[_0x2e8bfa(0x374)]))['pipe'](I[_0x2e8bfa(0x190)](_0x57225a=>!_0x57225a['getUnitId']()[_0x2e8bfa(0x365)]('__')))[_0x2e8bfa(0x2e5)](async _0x51ba14=>{const _0x3fa97d=_0x2e8bfa,_0x1b2289=_0x51ba14[_0x3fa97d(0x1ca)](),_0x1aec34=await this['_startDocCollabCursor'](_0x1b2289);this[_0x3fa97d(0x2d6)][_0x3fa97d(0x215)](_0x1aec34),this[_0x3fa97d(0x274)][_0x3fa97d(0x1d4)](_0x1b2289,_0x1aec34);}),I[_0x2e8bfa(0x2d3)](this[_0x2e8bfa(0x175)][_0x2e8bfa(0x333)](a['UniverInstanceType'][_0x2e8bfa(0x227)]),this[_0x2e8bfa(0x175)][_0x2e8bfa(0x333)](a[_0x2e8bfa(0x323)][_0x2e8bfa(0x2a6)]))[_0x2e8bfa(0x249)](I['takeUntil'](this['dispose$']))['subscribe'](_0x48a370=>{const _0x2b04bf=_0x2e8bfa,_0x1bbe3e=_0x48a370[_0x2b04bf(0x1ca)](),_0x2d0723=this['_entities'][_0x2b04bf(0x418)](_0x1bbe3e);_0x2d0723&&(_0x2d0723['dispose'](),this['_entities'][_0x2b04bf(0x1be)](_0x1bbe3e));});}async[_0x4c4685(0x366)](_0x503c58){const _0x3abaea=_0x4c4685,_0x2a9e44=await this[_0x3abaea(0x289)]['requireSession'](_0x503c58),_0x55aef1=this['_injector'][_0x3abaea(0x2d5)](ge,_0x503c58,_0x2a9e44);return _0x55aef1['init'](),_0x55aef1;}async['_startDocCollabCursor'](_0x57563e){const _0x3e6660=_0x4c4685,_0x1c53ba=await this['_collabSessionService'][_0x3e6660(0x21f)](_0x57563e),_0x2c0a4b=this[_0x3e6660(0x28a)]['createInstance'](ve,_0x57563e,_0x1c53ba);return _0x2c0a4b['init'](),_0x2c0a4b;}};F=pt([ce(0x0,a[_0x4c4685(0x19d)]),ce(0x1,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),ce(0x2,a[_0x4c4685(0x414)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x20ee22,_0x4cf533){const _0x1594de=_0x4c4685;let {radius:_0x127a4a,width:_0xaeedbf,height:_0x1b8e4d}=_0x4cf533;_0x127a4a=_0x127a4a!=null?_0x127a4a:0x0,_0xaeedbf=_0xaeedbf!=null?_0xaeedbf:0x1e,_0x1b8e4d=_0x1b8e4d!=null?_0x1b8e4d:0x1e;let _0x31c4e8=0x0,_0x668f7b=0x0,_0x31b20c=0x0;_0x31c4e8=_0x668f7b=_0x31b20c=Math[_0x1594de(0x2f9)](_0x127a4a,_0xaeedbf/0x2,_0x1b8e4d/0x2),_0x20ee22[_0x1594de(0x3b8)](),_0x20ee22['moveTo'](_0x31c4e8,0x0),_0x20ee22[_0x1594de(0x286)](_0xaeedbf-_0x668f7b,0x0),_0x20ee22['arc'](_0xaeedbf-_0x668f7b,_0x668f7b,_0x668f7b,Math['PI']*0x3/0x2,0x0,!0x1),_0x20ee22['lineTo'](_0xaeedbf,_0x1b8e4d-_0x31b20c),_0x20ee22['arc'](_0xaeedbf-_0x31b20c,_0x1b8e4d-_0x31b20c,_0x31b20c,0x0,Math['PI']/0x2,!0x1),_0x20ee22[_0x1594de(0x286)](0x0,_0x1b8e4d),_0x20ee22[_0x1594de(0x286)](0x0,_0x31c4e8),_0x20ee22['arc'](_0x31c4e8,_0x31c4e8,_0x31c4e8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x20ee22[_0x1594de(0x1a5)](),_0x4cf533[_0x1594de(0x194)]&&(_0x20ee22['save'](),_0x20ee22['fillStyle']=_0x4cf533[_0x1594de(0x194)],_0x4cf533[_0x1594de(0x1ab)]===_0x1594de(0x324)?_0x20ee22[_0x1594de(0x194)]('evenodd'):_0x20ee22[_0x1594de(0x194)](),_0x20ee22[_0x1594de(0x17e)]());}class re extends C[_0x4c4685(0x3cd)]{constructor(_0x69d8f0,_0x2b7073){const _0x20792e=_0x4c4685;super(_0x69d8f0,_0x2b7073),_(this,_0x20792e(0x240)),_(this,'text'),(this[_0x20792e(0x240)]=_0x2b7073==null?void 0x0:_0x2b7073[_0x20792e(0x240)],this[_0x20792e(0x222)]=_0x2b7073==null?void 0x0:_0x2b7073[_0x20792e(0x222)]);}static[_0x4c4685(0x40f)](_0x1f7d12,_0xd19539){const _0x45d7b0=_0x4c4685,{text:_0x1ff86b,color:_0x2cefce}=_0xd19539;_0x1f7d12[_0x45d7b0(0x3c6)](),_0x1f7d12[_0x45d7b0(0x1d7)]=_0x45d7b0(0x3ea);const _0x47540f=_0x1f7d12[_0x45d7b0(0x3be)](_0x1ff86b)[_0x45d7b0(0x217)],_0x2fb17f=Math[_0x45d7b0(0x2f9)](_0x47540f+0x2*le,Ue);Ot(_0x1f7d12,{'height':X,'radius':0x4,'width':_0x2fb17f,'fill':_0x2cefce}),_0x1f7d12[_0x45d7b0(0x392)]=_0x45d7b0(0x16f);const _0x28c122=le,_0x306ccc=X-Tt,_0x1cb767=Ue-0x2*le;if(_0x47540f>_0x1cb767){let _0x5bdbfa='',_0x4c299a=0x0;for(const _0x13ddcd of _0x1ff86b){const _0x4dc036=_0x1f7d12[_0x45d7b0(0x3be)](_0x13ddcd)[_0x45d7b0(0x217)];if(_0x4c299a+_0x4dc036<=_0x1cb767-_0x1f7d12[_0x45d7b0(0x3be)](_0x45d7b0(0x29c))['width'])_0x5bdbfa+=_0x13ddcd,_0x4c299a+=_0x4dc036;else{_0x5bdbfa+=_0x45d7b0(0x29c);break;}}_0x1f7d12[_0x45d7b0(0x2d7)](_0x5bdbfa,_0x28c122,_0x306ccc);}else _0x1f7d12[_0x45d7b0(0x2d7)](_0x1ff86b,_0x28c122,_0x306ccc);_0x1f7d12['restore']();}[_0x4c4685(0x229)](_0x4534c4){const _0x55c468=_0x4c4685;re[_0x55c468(0x40f)](_0x4534c4,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x54bc93,_0x32f7b8,_0x49a407,_0x55e971){const _0x52cca2=_0x4c4685;_(this,_0x52cca2(0x3ac),[]),_(this,'_anchor',null),_(this,_0x52cca2(0x3e2),null),_(this,_0x52cca2(0x3a4),null),_(this,_0x52cca2(0x21b),null),_(this,_0x52cca2(0x3a7),null),(this[_0x52cca2(0x3cb)]=_0x54bc93,this[_0x52cca2(0x32f)]=_0x32f7b8,this['_docSkeleton']=_0x49a407,this[_0x52cca2(0x377)]=_0x55e971,this[_0x52cca2(0x299)]());}set['_hover'](_0x91936a){const _0xbbde22=_0x4c4685;_0x91936a?(this['_anchorDot']&&this[_0xbbde22(0x3a4)][_0xbbde22(0x406)](),this[_0xbbde22(0x3e2)]&&this['_textBubble'][_0xbbde22(0x22b)]()):(this[_0xbbde22(0x3a4)]&&this[_0xbbde22(0x3a4)][_0xbbde22(0x22b)](),this['_textBubble']&&this[_0xbbde22(0x3e2)]['hide']());}[_0x4c4685(0x3d3)](){const _0x24b4a1=_0x4c4685;for(const _0x9ff930 of this[_0x24b4a1(0x3ac)])_0x9ff930['dispose']();this[_0x24b4a1(0x3e2)]&&this[_0x24b4a1(0x3e2)][_0x24b4a1(0x3d3)](),this[_0x24b4a1(0x3a4)]&&this['_anchorDot'][_0x24b4a1(0x3d3)](),this[_0x24b4a1(0x38e)]&&this[_0x24b4a1(0x38e)]['dispose'](),this[_0x24b4a1(0x3a7)]&&this[_0x24b4a1(0x3a7)]();}[_0x4c4685(0x299)](){const _0x47da9b=_0x4c4685;var _0x3bfcfa;const {_docSkeleton:_0x2885a1,_document:_0x12f12a}=this,{color:_0x4e2f29,name:_0x4ab08a,ranges:_0x4f216e}=this[_0x47da9b(0x3cb)],_0x5adfe1=_0x12f12a[_0x47da9b(0x195)](),{docsLeft:_0x3b6ba5,docsTop:_0x51f8bd}=_0x5adfe1,_0x1faa35=new p[(_0x47da9b(0x3cf))](_0x5adfe1,_0x2885a1);for(const {startOffset:_0x3b8bd4,endOffset:_0x455ad4,rangeType:_0x3762e2,segmentId:_0x360ed3,segmentPage:_0x574798,collapsed:_0x155652,isActive:_0x1e2060}of _0x4f216e){const _0x6dabde=_0x2885a1[_0x47da9b(0x1ce)](_0x3b8bd4,!0x0,_0x360ed3,_0x574798);let _0x4c56b6=_0x2885a1['findNodePositionByCharIndex'](_0x455ad4,!0x0,_0x360ed3,_0x574798);if(_0x4c56b6==null&&(_0x4c56b6=_0x2885a1[_0x47da9b(0x1ce)](_0x455ad4-0x1,!0x1,_0x360ed3,_0x574798)),_0x1e2060){const {contentBoxPointGroup:_0x27b974}=_0x1faa35['getRangePointData'](_0x4c56b6,_0x4c56b6);if(_0x27b974[_0x47da9b(0x393)]===0x0)continue;this[_0x47da9b(0x1e2)](_0x4e2f29,_0x27b974,_0x3b6ba5,_0x51f8bd,_0x4ab08a),this[_0x47da9b(0x3a7)]=this['_handleHover']();}if(_0x6dabde&&_0x4c56b6){if(_0x3762e2===a[_0x47da9b(0x38d)][_0x47da9b(0x391)]){const _0x2dc92c=new p['NodePositionConvertToRectRange'](_0x5adfe1,_0x2885a1),{pointGroup:_0x2a0617}=(_0x3bfcfa=_0x2dc92c[_0x47da9b(0x36e)](_0x6dabde,_0x4c56b6))!=null?_0x3bfcfa:{};if(_0x2a0617==null||_0x2a0617[_0x47da9b(0x393)]===0x0)continue;this[_0x47da9b(0x405)](_0x4e2f29,_0x2a0617,_0x3b6ba5,_0x51f8bd);}else{if(!_0x155652){const {borderBoxPointGroup:_0x3a0d13}=_0x1faa35['getRangePointData'](_0x6dabde,_0x4c56b6);if(_0x3a0d13[_0x47da9b(0x393)]===0x0)continue;this[_0x47da9b(0x20e)](_0x4e2f29,_0x3a0d13,_0x3b6ba5,_0x51f8bd);}}}}}[_0x4c4685(0x1e2)](_0x2cb1ed,_0x4a479e,_0x131ebd,_0x1c7c8d,_0x7a0618){const _0x99e054=_0x4c4685,_0x517f21=this[_0x99e054(0x16d)](_0x4a479e),{left:_0x5af54c,top:_0x1f0184,height:_0x12c63a}=_0x517f21,_0x44550e=this[_0x99e054(0x348)](),_0x875220=Nt/_0x44550e,_0xe8958c=new C[(_0x99e054(0x242))](_e+a[_0x99e054(0x331)](H),{'left':_0x5af54c+_0x131ebd-_0x875220,'top':_0x1f0184+_0x1c7c8d,'height':_0x12c63a,'width':Dt,'fill':_0x2cb1ed||C[_0x99e054(0x428)](a['COLORS'][_0x99e054(0x1f4)],0x0),'strokeWidth':_0x875220,'stroke':Ut,'evented':!0x0});this[_0x99e054(0x38e)]=_0xe8958c,this['_scene'][_0x99e054(0x3a6)](_0xe8958c,p[_0x99e054(0x1b1)]);const _0x2e637f=new C['Rect'](_e+a[_0x99e054(0x331)](H),{'left':_0x5af54c+_0x131ebd-_0x875220,'top':_0x1f0184+_0x1c7c8d-he/0x2,'height':he,'width':he,'fill':_0x2cb1ed||C[_0x99e054(0x428)](a[_0x99e054(0x3ed)][_0x99e054(0x1f4)],0x0),'strokeWidth':0x0,'stroke':_0x2cb1ed||C[_0x99e054(0x428)](a[_0x99e054(0x3ed)]['black'],0x0),'evented':!0x1});this[_0x99e054(0x3a4)]=_0x2e637f,this[_0x99e054(0x32f)]['addObject'](_0x2e637f,p['TEXT_RANGE_LAYER_INDEX']);const _0x10d2fd=new re(_e+a['generateRandomId'](H),{'left':_0x5af54c+_0x131ebd-_0x875220,'top':_0x1f0184+_0x1c7c8d-X,'text':_0x7a0618,'color':_0x2cb1ed});this[_0x99e054(0x3e2)]=_0x10d2fd,this[_0x99e054(0x32f)][_0x99e054(0x3a6)](_0x10d2fd,p[_0x99e054(0x1b1)]),this['_hover']=!0x1;}[_0x4c4685(0x1dd)](){const _0x345a1d=_0x4c4685,_0x479046=this[_0x345a1d(0x38e)][_0x345a1d(0x1d3)][_0x345a1d(0x3a5)](()=>{const _0x124167=_0x345a1d;this[_0x124167(0x310)]=!0x0;}),_0x4ec05b=this[_0x345a1d(0x38e)][_0x345a1d(0x293)][_0x345a1d(0x3a5)](()=>{const _0x58cb41=_0x345a1d;this[_0x58cb41(0x21b)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x58263c=_0x58cb41;this[_0x58263c(0x310)]=!0x1;},0x7d0);});return()=>{const _0xe45b21=_0x345a1d;_0x479046[_0xe45b21(0x1c7)](),_0x4ec05b[_0xe45b21(0x1c7)]();};}[_0x4c4685(0x20e)](_0x56fa60,_0xdb75e6,_0x26a953,_0x5dd604){const _0x9bb654=_0x4c4685,_0x5d0a5e=new a['ColorKit'](_0x56fa60)['setAlpha'](0.2)[_0x9bb654(0x349)](),_0x1f5dd4=new C['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0xdb75e6,'fill':_0x5d0a5e||C[_0x9bb654(0x428)](a[_0x9bb654(0x3ed)]['black'],0.2),'left':_0x26a953,'top':_0x5dd604,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1f5dd4),this['_scene'][_0x9bb654(0x3a6)](_0x1f5dd4,p[_0x9bb654(0x1b1)]);}[_0x4c4685(0x405)](_0xcc002b,_0x3eb25a,_0x51f29f,_0x5f2211){const _0x26ffb7=_0x4c4685,_0x33a559=new a[(_0x26ffb7(0x2c9))](_0xcc002b)[_0x26ffb7(0x3ce)](0.2)['toRgbString'](),_0x342792=new C[(_0x26ffb7(0x282))](bt+a[_0x26ffb7(0x331)](H),{'pointsGroup':_0x3eb25a,'fill':_0x33a559||C[_0x26ffb7(0x428)](a[_0x26ffb7(0x3ed)][_0x26ffb7(0x1f4)],0.2),'left':_0x51f29f,'top':_0x5f2211,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26ffb7(0x3ac)][_0x26ffb7(0x2cc)](_0x342792),this[_0x26ffb7(0x32f)][_0x26ffb7(0x3a6)](_0x342792,p['TEXT_RANGE_LAYER_INDEX']);}[_0x4c4685(0x16d)](_0x155c15){const _0x87ad99=_0x155c15[0x0],_0x314b90=_0x87ad99[0x0],_0x7a96a0=_0x87ad99[0x2],{x:_0x3fd276,y:_0x37488f}=_0x314b90,{x:_0x313b33,y:_0xcadaa8}=_0x7a96a0;return{'left':_0x3fd276,'top':_0x37488f,'width':_0x313b33-_0x3fd276,'height':_0xcadaa8-_0x37488f};}[_0x4c4685(0x348)](){const _0x45ed4b=_0x4c4685,{scaleX:_0x2b148b,scaleY:_0x32ca50}=this['_scene']['getAncestorScale']();return Math[_0x45ed4b(0x26c)](_0x2b148b,_0x32ca50);}}var Lt=Object[_0x4c4685(0x1b0)],Mt=(_0x46ee2b,_0x3f064a,_0x505cbc,_0x319534)=>{const _0x4232d4=_0x4c4685;for(var _0x1b6f1a=_0x319534>0x1?void 0x0:_0x319534?Lt(_0x3f064a,_0x505cbc):_0x3f064a,_0x12dba7=_0x46ee2b[_0x4232d4(0x393)]-0x1,_0x4dd60b;_0x12dba7>=0x0;_0x12dba7--)(_0x4dd60b=_0x46ee2b[_0x12dba7])&&(_0x1b6f1a=_0x4dd60b(_0x1b6f1a)||_0x1b6f1a);return _0x1b6f1a;},q=(_0x18efbb,_0xe107d1)=>(_0x38ef95,_0x232a8a)=>_0xe107d1(_0x38ef95,_0x232a8a,_0x18efbb);let Ee=class extends a[_0x4c4685(0x303)]{constructor(_0x2469e5,_0x2d072a,_0x572da0,_0x323a26,_0x7133f2){const _0x1952ff=_0x4c4685;super(),_(this,_0x1952ff(0x311),[]),_(this,'_cursors',[]),(this[_0x1952ff(0x288)]=_0x2469e5,this[_0x1952ff(0x3f1)]=_0x2d072a,this[_0x1952ff(0x3ad)]=_0x572da0,this['_commandService']=_0x323a26,this[_0x1952ff(0x2db)]=_0x7133f2,this[_0x1952ff(0x16e)]());}['_init'](){const _0x44fbe9=_0x4c4685,_0x1f8719=this[_0x44fbe9(0x288)][_0x44fbe9(0x1a1)],_0x11a6f0=this['_docSkeletonManagerService'];this[_0x44fbe9(0x1c2)](I['combineLatest']([this[_0x44fbe9(0x3ad)][_0x44fbe9(0x16c)](_0x1f8719),this[_0x44fbe9(0x2db)][_0x44fbe9(0x28d)]])[_0x44fbe9(0x249)]($[_0x44fbe9(0x36a)](([_0x2accaa,_0x16f86b])=>({'skeleton':_0x11a6f0[_0x44fbe9(0x2df)](),'cursors':[..._0x2accaa[_0x44fbe9(0x335)]()][_0x44fbe9(0x36d)](_0x31185e=>({..._0x31185e,'color':this[_0x44fbe9(0x2db)][_0x44fbe9(0x40a)](_0x31185e[_0x44fbe9(0x240)])}))})))[_0x44fbe9(0x2e5)](_0x488b52=>{const _0xbd6fbb=_0x44fbe9;if(this[_0xbd6fbb(0x415)](),_0x488b52){const {skeleton:_0x4cfd28,cursors:_0x12ee21}=_0x488b52;this['_updateCollabCursors'](_0x4cfd28,_0x12ee21);}})),this[_0x44fbe9(0x264)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x263e4c,_0x52ec7c){const _0x273894=_0x4c4685,{scene:_0x4824dd,mainComponent:_0xd43a01}=this[_0x273894(0x288)],_0x4466f7=_0x52ec7c[_0x273894(0x36a)](_0x1caf00=>new Le(_0x1caf00,_0x4824dd,_0x263e4c,_0xd43a01));this[_0x273894(0x311)]=_0x4466f7,this[_0x273894(0x2ab)]=_0x52ec7c;}[_0x4c4685(0x181)](){const _0x5ced05=_0x4c4685;this[_0x5ced05(0x415)]();const {scene:_0x463007,mainComponent:_0x50263e}=this[_0x5ced05(0x288)],_0x3d3f8a=this[_0x5ced05(0x3f1)][_0x5ced05(0x2df)](),_0xb75985=this[_0x5ced05(0x2ab)]['map'](_0x562ebc=>new Le(_0x562ebc,_0x463007,_0x3d3f8a,_0x50263e));this[_0x5ced05(0x311)]=_0xb75985;}[_0x4c4685(0x415)](){const _0x1b73e2=_0x4c4685;this['_cursorShapes'][_0x1b73e2(0x258)](_0x3d9798=>_0x3d9798['dispose']()),this['_cursorShapes']=[];}[_0x4c4685(0x1d6)](){const _0x2d8941=_0x4c4685,_0x12915d=[p[_0x2d8941(0x37c)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x316a50=>{const _0x5a3cef=_0x2d8941;_0x12915d['includes'](_0x316a50['id'])&&_0x316a50[_0x5a3cef(0x18a)][_0x5a3cef(0x1a1)]===this[_0x5a3cef(0x288)][_0x5a3cef(0x1a1)]&&this[_0x5a3cef(0x181)]();}));}[_0x4c4685(0x264)](){const _0x25a756=_0x4c4685;this[_0x25a756(0x1c2)](a['fromEventSubject'](this['_context'][_0x25a756(0x1e4)][_0x25a756(0x427)])[_0x25a756(0x249)]($['filter'](_0x509a11=>_0x509a11[_0x25a756(0x180)]===C[_0x25a756(0x3e1)][_0x25a756(0x2d9)]),$['throttleTime'](0x10))[_0x25a756(0x2e5)](()=>{const _0x34e27d=_0x25a756;this[_0x34e27d(0x181)]();}));}};Ee=Mt([q(0x1,a[_0x4c4685(0x414)](V[_0x4c4685(0x380)])),q(0x2,a[_0x4c4685(0x414)](F)),q(0x3,a[_0x4c4685(0x3c5)]),q(0x4,a[_0x4c4685(0x414)](a[_0x4c4685(0x422)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4c4685(0x3cd)]{constructor(_0x1029ff,_0x1748c4){const _0x4bb5fa=_0x4c4685;super(_0x1029ff,_0x1748c4),_(this,_0x4bb5fa(0x256)),_(this,_0x4bb5fa(0x2d2),!0x1),_(this,'_range'),_(this,_0x4bb5fa(0x234),''),_(this,_0x4bb5fa(0x23a),'top'),_(this,_0x4bb5fa(0x3f0)),(_0x1748c4&&this[_0x4bb5fa(0x352)](_0x1748c4),this[_0x4bb5fa(0x1d3)][_0x4bb5fa(0x3a5)](()=>this[_0x4bb5fa(0x352)]({'hovered':!0x0})),this[_0x4bb5fa(0x293)][_0x4bb5fa(0x3a5)](()=>this[_0x4bb5fa(0x352)]({'hovered':!0x1})));}[_0x4c4685(0x352)](_0x2828cf){const _0xe1874=_0x4c4685;var _0x4caacf,_0x435b7b,_0x4562bb,_0x4c74f5,_0x25ba5d,_0x4801f4;this[_0xe1874(0x256)]=(_0x4caacf=_0x2828cf['color'])!=null?_0x4caacf:this[_0xe1874(0x256)],this['_hovered']=(_0x435b7b=_0x2828cf['hovered'])!=null?_0x435b7b:this[_0xe1874(0x2d2)],this[_0xe1874(0x2e3)]=(_0x4562bb=_0x2828cf['range'])!=null?_0x4562bb:this[_0xe1874(0x2e3)],this[_0xe1874(0x234)]=(_0x4c74f5=_0x2828cf[_0xe1874(0x2c8)])!=null?_0x4c74f5:this[_0xe1874(0x234)],this[_0xe1874(0x23a)]=(_0x25ba5d=_0x2828cf[_0xe1874(0x3b6)])!=null?_0x25ba5d:this[_0xe1874(0x23a)],this[_0xe1874(0x3f0)]=(_0x4801f4=_0x2828cf[_0xe1874(0x3b4)])!=null?_0x4801f4:this[_0xe1874(0x3f0)],this[_0xe1874(0x170)]({'width':_0x2828cf['width'],'height':_0x2828cf[_0xe1874(0x24d)]});}[_0x4c4685(0x298)](_0x176d55){const _0x3e469f=_0x4c4685,{row:_0x326fcd,column:_0x29607a}=_0x176d55;if(_0x326fcd>=this[_0x3e469f(0x2e3)][_0x3e469f(0x1f1)]&&_0x326fcd<=this[_0x3e469f(0x2e3)][_0x3e469f(0x315)]&&_0x29607a>=this[_0x3e469f(0x2e3)][_0x3e469f(0x253)]&&_0x29607a<=this[_0x3e469f(0x2e3)][_0x3e469f(0x345)]){this[_0x3e469f(0x352)]({'hovered':!0x0});return;}this[_0x3e469f(0x352)]({'hovered':!0x1});}[_0x4c4685(0x33d)](_0x3ca065){return!0x1;}[_0x4c4685(0x229)](_0x574ac8){const _0x2cb406=_0x4c4685;C[_0x2cb406(0x242)]['drawWith'](_0x574ac8,{'width':this['width'],'height':this[_0x2cb406(0x24d)],'strokeWidth':Pt,'stroke':this[_0x2cb406(0x256)],'evented':!0x1,'fill':this[_0x2cb406(0x3f0)]}),this['_hovered']&&(_0x574ac8[_0x2cb406(0x3c6)](),_0x574ac8['transform'](0x1,0x0,0x0,0x1,this[_0x2cb406(0x217)],this[_0x2cb406(0x23a)]===_0x2cb406(0x39f)?0x0:-X),re[_0x2cb406(0x40f)](_0x574ac8,{'text':this[_0x2cb406(0x234)],'color':this[_0x2cb406(0x256)]}),_0x574ac8['restore']());}}var wt=Object[_0x4c4685(0x1b0)],yt=(_0x25f305,_0x16625b,_0x8eba49,_0x328d0e)=>{const _0x5de6b7=_0x4c4685;for(var _0x5e2de7=_0x328d0e>0x1?void 0x0:_0x328d0e?wt(_0x16625b,_0x8eba49):_0x16625b,_0x49a9eb=_0x25f305[_0x5de6b7(0x393)]-0x1,_0x1fd9fb;_0x49a9eb>=0x0;_0x49a9eb--)(_0x1fd9fb=_0x25f305[_0x49a9eb])&&(_0x5e2de7=_0x1fd9fb(_0x5e2de7)||_0x5e2de7);return _0x5e2de7;},ue=(_0x23d3ef,_0x54a2cd)=>(_0x54a94c,_0x43743d)=>_0x54a2cd(_0x54a94c,_0x43743d,_0x23d3ef);const $t=0x1389;let Ce=class extends a[_0x4c4685(0x303)]{constructor(_0x252cc6,_0x516e89,_0x3bd50b,_0x28c05f){const _0x416674=_0x4c4685;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this[_0x416674(0x288)]=_0x252cc6,this[_0x416674(0x17b)]=_0x516e89,this[_0x416674(0x3ad)]=_0x3bd50b,this[_0x416674(0x2db)]=_0x28c05f,this['_init']());}[_0x4c4685(0x16e)](){const _0x4c6cbc=_0x4c4685;this[_0x4c6cbc(0x17b)]['currentSkeleton$'][_0x4c6cbc(0x249)]($[_0x4c6cbc(0x206)](this['dispose$']),$['switchMap'](_0xe2b4f1=>{const _0x172142=_0x4c6cbc;if(_0xe2b4f1){const _0x326dd6=_0xe2b4f1[_0x172142(0x266)];return I[_0x172142(0x1fb)](this[_0x172142(0x3ad)][_0x172142(0x16c)](this[_0x172142(0x288)]['unitId']),this[_0x172142(0x2db)]['currentTheme$'])[_0x172142(0x249)]($[_0x172142(0x36a)](([_0x3283f3,_0x5ea659])=>{const _0x3ae483=_0x172142,_0x1f86ff=new Map();return _0x3283f3[_0x3ae483(0x258)]((_0x462df8,_0x2e0e43)=>{const _0x4437db=_0x3ae483;if(_0x462df8['sheetID']===_0x326dd6){const _0xc24d={..._0x462df8};_0xc24d[_0x4437db(0x240)]=this[_0x4437db(0x2db)][_0x4437db(0x40a)](_0x462df8[_0x4437db(0x240)]),_0x1f86ff[_0x4437db(0x1d4)](_0x2e0e43,_0xc24d);}}),{'skeleton':_0xe2b4f1,'cursors':_0x1f86ff};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x4c6cbc(0x2e5)](({skeleton:_0x29d58d,cursors:_0x3c1a80})=>{const _0x30b61b=_0x4c6cbc;this[_0x30b61b(0x415)](),_0x29d58d&&this['_updateCollabCursors'](_0x29d58d,_0x3c1a80);}),this[_0x4c6cbc(0x17b)][_0x4c6cbc(0x2c5)]['subscribe'](_0x271524=>{const _0x543541=_0x4c6cbc;if(_0x271524==null)return;const {skeleton:_0x3caaac}=_0x271524,{scene:_0x14ea54}=this[_0x543541(0x288)];_0x14ea54[_0x543541(0x3bb)]['subscribeEvent'](a[_0x543541(0x3d9)](_0x235f62=>{const _0x5c2417=_0x543541;var _0x39ab5a,_0x5e0365;const {offsetX:_0x320059,offsetY:_0x43a826}=_0x235f62,{x:_0x37c4fc,y:_0x1a007f}=_0x14ea54[_0x5c2417(0x35c)](C['Vector2'][_0x5c2417(0x3e6)]([_0x320059,_0x43a826])),{scaleX:_0x3daf86,scaleY:_0x1c900c}=_0x14ea54[_0x5c2417(0x408)](),_0xd20d53=_0x14ea54[_0x5c2417(0x2a8)](C[_0x5c2417(0x396)][_0x5c2417(0x32b)]),_0x3b4baf=_0x14ea54[_0x5c2417(0x22d)](C['Vector2'][_0x5c2417(0x3e6)]([_0x37c4fc,_0x1a007f]),_0xd20d53),_0x19d7d2=_0x3caaac['getCellPositionByOffset'](_0x320059,_0x43a826,_0x3daf86,_0x1c900c,_0x3b4baf);((_0x39ab5a=this[_0x5c2417(0x312)])==null?void 0x0:_0x39ab5a[_0x5c2417(0x41d)])===_0x19d7d2['column']&&((_0x5e0365=this[_0x5c2417(0x312)])==null?void 0x0:_0x5e0365[_0x5c2417(0x236)])===_0x19d7d2[_0x5c2417(0x236)]||this[_0x5c2417(0x2ab)][_0x5c2417(0x258)](_0x2c1f50=>{const _0x4ff316=_0x5c2417;_0x2c1f50[_0x4ff316(0x298)](_0x19d7d2);});},0x64));});}[_0x4c4685(0x35e)](_0x2c1ed2,_0x5c7e49){const _0x5428bc=_0x4c4685;var _0x4deaf6;const _0x54ca78=(_0x4deaf6=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x4deaf6[_0x5428bc(0x255)];if(!_0x54ca78)return;const _0x2f17ab=this[_0x5428bc(0x1bb)]();if(!_0x2f17ab)return;this[_0x5428bc(0x2ab)]['forEach'](_0x2ca5f0=>{const _0x22084a=_0x5428bc;_0x2ca5f0[_0x22084a(0x32c)]();});const {scene:_0x42b529}=_0x2f17ab,_0x51f528=xt(Array[_0x5428bc(0x2f2)](_0x5c7e49[_0x5428bc(0x335)]()))[_0x5428bc(0x36a)](_0x369ac1=>{const _0x5c441e=_0x5428bc,{color:_0x1e8963,range:_0x2c44aa,name:_0xf74140,selection:_0x3a547a,sheetID:_0x1745d6}=_0x369ac1,{startColumn:_0x15c87e,startRow:_0x5516c7,endColumn:_0x33c7cf,endRow:_0x52e185}=_0x2c44aa,_0x1e2f6b=J[_0x5c441e(0x2be)](_0x5516c7,_0x15c87e,_0x42b529,_0x54ca78),_0x13776c=J[_0x5c441e(0x2be)](_0x52e185,_0x33c7cf,_0x42b529,_0x54ca78),{columnHeaderHeightAndMarginTop:_0x346c78}=_0x54ca78,{startX:_0x3459da,startY:_0x1f96a2}=_0x1e2f6b,{endX:_0x25847a,endY:_0x41f59b}=_0x13776c,_0x40555d=_0x25847a-_0x3459da,_0x1a133b=_0x41f59b-_0x1f96a2,_0x1fd42b={'labelPosition':_0x1f96a2-_0x346c78>=X?'top':_0x5c441e(0x39f),'sheetID':_0x1745d6,'range':_0x2c44aa,'color':_0x1e8963,'name':_0xf74140,'selection':_0x3a547a,'left':_0x3459da,'top':_0x1f96a2,'width':_0x40555d,'height':_0x1a133b,'evented':!0x1,'zIndex':$t};return new je(_0xf74140,_0x1fd42b);});_0x42b529['addObjects'](_0x51f528,At),this[_0x5428bc(0x2ab)]=new Set(_0x51f528);}[_0x4c4685(0x415)](){const _0x46c7c7=_0x4c4685;var _0x1e6863;(_0x1e6863=this[_0x46c7c7(0x2ab)])==null||_0x1e6863[_0x46c7c7(0x258)](_0x469aff=>_0x469aff[_0x46c7c7(0x3d3)]());}[_0x4c4685(0x1bb)](){const _0x11382d=_0x4c4685;return J[_0x11382d(0x22c)](this['_context'][_0x11382d(0x2ad)],this[_0x11382d(0x288)]);}};Ce=yt([ue(0x1,a['Inject'](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x4c4685(0x414)](F)),ue(0x3,a[_0x4c4685(0x414)](a[_0x4c4685(0x422)]))],Ce);function xt(_0x990ef8){const _0x3e2205=_0x4c4685,_0x38f4ca=new Map();return _0x990ef8[_0x3e2205(0x258)](_0x73036c=>{const _0x2c7a48=_0x3e2205;if(_0x38f4ca[_0x2c7a48(0x39b)](_0x73036c[_0x2c7a48(0x208)])){const _0x5663c3=_0x38f4ca['get'](_0x73036c[_0x2c7a48(0x208)]);_0x5663c3[_0x2c7a48(0x2c8)]+=',\x20'+_0x73036c[_0x2c7a48(0x2c8)];}else _0x38f4ca['set'](_0x73036c[_0x2c7a48(0x208)],_0x73036c);}),Array[_0x3e2205(0x2f2)](_0x38f4ca[_0x3e2205(0x335)]());}var Bt=Object[_0x4c4685(0x1b0)],Ft=(_0x188c7e,_0x49eda4,_0x346b0c,_0x5357d2)=>{const _0x2d1fcf=_0x4c4685;for(var _0x137b31=_0x5357d2>0x1?void 0x0:_0x5357d2?Bt(_0x49eda4,_0x346b0c):_0x49eda4,_0x302979=_0x188c7e[_0x2d1fcf(0x393)]-0x1,_0x556528;_0x302979>=0x0;_0x302979--)(_0x556528=_0x188c7e[_0x302979])&&(_0x137b31=_0x556528(_0x137b31)||_0x137b31);return _0x137b31;},y=(_0x3ddf31,_0x4c1a62)=>(_0x35683d,_0x374c4f)=>_0x4c1a62(_0x35683d,_0x374c4f,_0x3ddf31);function _0x392f(){const _0xf7fbb1=['_initStatusComponent','svg','_taskIds','data','USERS_LEAVE','handleIRemoveCol','_hasFormulaInDirtyRanges','triggerDblclick','0\x200\x2017\x2016','REDEMPTION_USER_NOT_ELIGIBLE','DesktopCollaborationStatusDisplayController','roomMembers','off-line-icon_clip0_910_343','_transformUndoRedoStack','_collabCursorState$','endColumn','YUUMI_CONNECTOR_URL_NOT_FOUND','_urlService','_getScale','toRgbString','popstate','univerjs-icon\x20univerjs-icon-','includes','_onCursorDelete','_uiPartsService','_messageService','setConfig','currentUsage','setShapeProps','_clearOtherTimers','[CollaborationDataLoaderController]','transformRemoteChangeset','toDisposable','_ensureSubject','IURLService','PENDING','_unitOnClients','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getRelativeToViewportCoord','SetFormulaCalculationNotificationMutation','_updateCollabCursors','CollaborationSessionService','activeSheet$','APPLY_REJECT','_collaborationController','purple.300','unshift','startsWith','_startSheetCollabCursor','_cachedData','CHANGESET_REVISION_CONFILICT','189261lOdiUw','map','WECHAT_HAS_BEEN_BOUND','CLOSE_ROOM','flatMap','getRangePointData','YUUMI_ASYNCIO_CANCELLED','registerBeforeClose','_scheduleHeartbeat','updateOfflineData','enableLocalCache','dispose$','trim','0\x200\x2016\x2016','_document','_httpService','loadOfflineData','ENTITLE_INSUFFICIENT_QUOTA','registerComponent','SetDocZoomRatioOperation','BehaviorSubject','collabStatus.fetchMiss','_registerDependencies','DocSkeletonManagerService','_syncEditingCollabCursorService','then','lineno','_status$','_docTransformIMECacheService','clipPath','filename','USER_NOT_INVITED_CODE','touchDependencies','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','YUUMI_SUBSCRIPTION_NOT_FOUND','_updateSubUnitFromURLParams','DOC_RANGE_TYPE','_anchor','CONFLICT','UPDATE_CURSOR','RECT','fillStyle','length','LocaleService','YUUMI_NO_CUBOID_FOR_QUESTION','SHEET_VIEWPORT_KEY','_disabled','YUUMI_URL_COL_OUT_OF_RANGE','UNAUTHENTICATED','onStarting','has','Tooltip','send','blue.400','bottom','totalFormulasToCalculate','EMAIL_VERIFY_CODE_MISMATCH','DisposableCollection','YUUMI_AI_RUN_FAILED','_anchorDot','subscribeEvent','addObject','_eventUnsubscribe','ENTITLE_DUP_SUBSCRIPTION','_checkCalculationAvailable','IImageIoService','addClipboardHook','_shapes','_collabCursorController','Tools','MoveRangeCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','WebSocketService','RemoveColCommandId','doc.mutation.rich-text-editing','backgroundColor','url(#on-line-icon_clip0_910_349)','labelPosition','_send','beginPath','whenReady','ACTIVE_UNIT_EVENT_CHANNEL','onPointerMove$','_currentUsage','saveOfflineData','measureText','collabCursorState$','undoState','_collaborationUIEventService','session.connection-failed','REDEMPTION_CODE_FULLY_REDEEMED','idSuffix','ICommandService','save','1em','pushState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','stage','_cursor','tag','Shape','setAlpha','NodePositionConvertToCursor','asObservable','3MYvDGu','DataLoaderService','dispose','current','dirtyRanges','deepClone','BrowserCollaborationSocketService','round','debounce','isTransformMutationsWithChangesetSuccess','START_CALCULATION','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ALREADY_EXISTS','isActive','_transformPreviousActiveRange','_roomMembers$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_textBubble','/universer-api/license/formula/limit/done','FormulaExecutedStateType','invokeId','FromArray','defs','getUniverSheetInstance','RefRangeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','white','roomMembers$','COLORS','join','result','_backgroundColor','_docSkeletonManagerService','ENTITLE_REPORT_LIMIT_EXCEED','SetFormulaCalculationStartMutation','Loading','collab-client.tooltip.reconnect','div','location','replace','shareReplay','78266eeyTjC','runId','AUTHORIZE_CODE_ILLEGAL','setUndoRedoMutationParamsCache','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','some','stringify','_docSyncEditingCollabCursorService','RemoveRowCommandId','_memberService','2405375llODjl','_drawRectRange','hide','DATA_SOURCE_TOO_LARGE','getAncestorScale','_scheduleSaving','getColorFromTheme','_updateURLWithCurrentState','_docClipboardService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','UniverCollaborationClientUIPlugin','drawWith','_configService','m2Prime','override','defIds','Inject','_removeCollabCursors','_renderManagerService','Warning','get','_selfUnitIDs','_localStorageService','getTypeOfUnitAdded$','none','column','SUBMIT_CHANGESET_TIMEOUT','getMemberID','registerRenderModule','DEFAULT_WS_SESSION_TICKET_URL','ThemeService','getDocRanges','handleInsertRangeMoveDown','ENTITLE_CHAT_LIMIT_EXCEED','OffLineIcon','onTransformChange$','getColor','substring','body','getParam','InsertRangeMoveDownCommandId','YUUMI_UNABLE_LOAD_URL','FormulaExecuteStageType','transformMutation','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getCollabCursors$','_getAnchorBounding','_init','#FFF','transformByState','INVITE_CODE_HAS_BEEN_UES','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','toString','SOCKET_FAILED_RETRY','_univerInstanceService','SNAPSHOT_INVALID_SNAPSHOT','unhandledrejection','saveImage','unitID','onCommandExecuted','_sheetSkeletonManagerService','PAYMENT_CHANNEL_NOT_SUPPORT','_refRangeService','restore','getMergeData','type','_refreshCollabCursors','entityInit$','useDependency','getConfig','_doCreateSocket','INVITE_CODE_REQUIRED','CollaborationUIEventId','saveTaskMap','history','params','executeCommand','redoState','parseInt','_localeService','NO_OTHER_CLIENTS_EDITING','filter','transformIMECache','handleDeleteRangeMoveLeft','_handleHeartbeatEvent','fill','getOffsetConfig','Failed','sessionTicket','OnLineIcon','startFormulaLimitUrl','ENSURE_SNAPSHOT_EXECUTION','_updateLocalCursor','collabStatus.notCollab','IUniverInstanceService','Rectangle','docStateChange$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','unitId','_removeClearOtherTimer','session.collaboration-timeout','[LogService\x20Error]:\x20','closePath','96371lYlCSw','href','339255nEISXB','getSheetId','_getSaveTimeout','fillRule','now','symbol','pluginName','ENTITLE_NEED_BILLING_ADDRESS','getOwnPropertyDescriptor','TEXT_RANGE_LAYER_INDEX','session.will-retry','setParam','_applyCommand','red.300','_colorAssignService','syncEditingCollabCursor','PY_RUNTIME_SCRIPT_ERROR','with','formula.calculation.unable','_getSheetObject','_heartbeatTimer','[Window\x20Error]:\x20','delete','UniverCollaborationClientPlugin','removeEventListener','NOT_FOUND','disposeWithMe','UNDEFINED','setItem','WebURLService','IConfigService','unsubscribe','LICENSE_DISTRO_REJECTED','add','getUnitId','subunit','collaboration.single-unit.warning','application/json','findNodePositionByCharIndex','getUnit','YUUMI_RATE_OVER_LIMIT','createElement','_session','onPointerEnter$','set','NOT_COLLAB','_initCommandExecutedListener','font','TEXT','_saveTaskMap','getRenderById','HEADER_MENU','MOBILE_VERIFY_CODE_MISMATCH','_handleHover','_lastResponseTimestamp','ranges','univer-flex\x20univer-items-center','yellow.400','_drawAnchor','memberID','engine','exhaustSavingTask','http://www.w3.org/2000/svg','stageInfo','_scheduleClearOtherTimer','executionId','IMessageService','_setupBeforeClosingHandler','CollaborationDataLoaderController','MOBILE_HAS_BEEN_BOUND','_toggleOnline','ONLINE','REDEMPTION_INVALID_CODE','startRow','CollaborationController','defineProperty','black','_pollingInterval','handleInsertCol','APPLY_NON_SEQUENTIAL_REVISION','_docTransformStateCacheService','clsx','_cursorInfo$','combineLatest','InsertRowCommandId','loadUnit','searchParams','currentColor','attrs','size','catch','message','MessageType','storage','takeUntil','IRemoteInstanceService','selection','displayName','APPLY_PERMISSION_DENIED','range','transformStateCache','handleInsertRow','_drawTextRange','clearTimeout','HTTPService','find','formula.calculation.started','connectInjector','toStringTag','next','collaboration.closeRoom','width','INVITE_CODE_ALREADY_BOUND','FETCH_MISS','WebBrowserSingleActiveUnitService','_hideTimer','mutations','assignAColorForMemberID','_config','requireSession','textRanges','useObservable','text','setActiveRange','INTERNAL_ERROR','switchMap','getSheetBySheetId','UNIVER_DOC','_logService','_draw','on-line-icon','show','getSheetObject','getVpScrollXYInfoByPosToVp','colorChannel1','getLocalCacheKey','IUIPartsService','entries','unload','OTHER_CLIENTS_EDITING','_name','6DGScoQ','row','mergeOverrideWithDependencies','APPLY_REVISION_CONFILICT','_docTransformSelectionsService','_labelPosition','_initUserListener','_assignedColors','runRefRangeMutations','jsxs','20gLLuCi','color','Error','Rect','replaceState','_clearPolling','_createSocketURL','xlink:href','_beforeCloseService','_initEvent','pipe','_getMergeRange','_onCursorUpdate','addEventListener','height','_uploadLog','_dataLoaderService','_instanceService','YUUMI_ALL_TABLES_IS_INVALID','[RemoteUniscriptService]:\x20no\x20focused\x20unit','startColumn','INVALID_ARGUMENT','skeleton','_color','248PutQtk','forEach','ILogService','_commandService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','SNAPSHOT_HAS_BEEN_REMOVED','on-line-icon_clip0_910_349','Disposable','_getSessionTicket','_getFormulaLimitStatus','forwardRef','handleInsertRangeMoveRight','LICENSE_IMPORT_SIZE_EXCEEDED','_initResize','permission.content','sheetId','_setupSubUnitSync','DocIMEInputManagerService','origin','permission.title','DocStateChangeManagerService','max','registerDependencies','getCurrentRevOfUnit','IDocClipboardService','univer-mr-2\x20univer-flex\x20univer-text-xl','editingUnit','PERMISSION_DENIED','SheetCollabCursorShape','_entities','_initUnhandledRejectionListener','createIdentifier','getActiveRange','Injector','ITransformService','CURRENT_STATUS_CANNOT_OPERATE','complete','_docStateChangeManagerService','743165FTpJom','7459360gdALWG','CollaborationStatus','/universer-api/frontend/logs','transformMutationsWithChangeset','RegularPolygon','UniverIcon','_initWindowErrorListener','newValue','lineTo','m1Prime','_context','_collabSessionService','_injector','_localCacheService','APPLY_DUPLICATED','currentTheme$','jiqing.500','_initCommandInterceptor','getUnitStatus$','/universer-api/license/formula/limit/start','EMAIL_HAS_BEEN_BOUND','onPointerLeave$','JOIN_ROOM_FAILED','UnitStatus','jsx','cursorInfo','onMouseMove','_render','LICENSE_MAX_UNITS_EXCEEDED','_showGuardMessage','...','collaboration-client.offline-data-not-saved','url(#$1','LICENSE_EXPORT_SIZE_EXCEEDED','collabStatus.syncing','RevisionService','588GaooRa','_revisionService','isFormulaId','_online','UNIVER_SHEET','debug','getViewport','ERROR_AGAIN','cursorInfo$','_cursors','_setFormulaLimitStatus','unit','getActiveSheet','USER_IS_ANONYMOUS','_initDependencies','handleDeleteRangeMoveUp','selections','focused$','BuiltInUIPart','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_notificationService','EffectRefRangId','debounceTime','isFormulaString','imageSourceType','CommandType','getMember','RemoteUniscriptService','getCoordByCell','isArray','isTransformMutationFailure','path','error','children','Module','currentSkeleton$','eventID','_checkAndWaitForCalculationPermission','name','ColorKit','getCurrentSelections','\x20at\x20','push','SOCKET_FAILED','_saveCache','SessionStatus','AWAITING_WITH_PENDING','subUnitId','_hovered','merge','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','createInstance','_entityInit$','fillText','setStateCache','resize','_maxFormulaLimit','_themeService','ILocalCacheService','event$','_registerRenderDependencies','getSkeleton','assign','_memberID','_handleEvent','_range','MemberService','subscribe','getFocusedUnit','stack','onLocalMutation','getItem','LOGIN_TOKEN_PROCESSING_FAILED','InsertColCommandId','DependentOn','collabStatus.conflict','REDEMPTION_CODE_NOT_STARTED','createSocket','UNRECOGNIZED','getValue','from','_transformHistoryAndStateStack','mask','runOnServer','_transformService','init','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','min','_unitStatus','RichTextEditingMutation','SetSelectionsOperation','USER_NOT_FOUND','setTimeout','colno','post','MUTATION','SheetsSelectionsService','RxDisposable','DocSelectionManagerService','limitInfo','_monkeyPatchLogService','wsSessionTicketUrl','_handleJoinEvent','CanceledError','OFFLINE','string','TOO_MANY_REQUESTS','urlChange$','OTHER_CLIENT_EDITING','collabStatus.synced','_hover','_cursorShapes','_lastPointer','_initStatusListener','releaseFormulaLimitUrl','endRow','DeleteRangeMoveLeftCommandId','M0\x200H16V16H0z','_startCalculationLimit','CollaborationEvent','_colorIndex','_id','_imageIoService','reconnect','code','useCallback','registerRefRange','LOGIN_FAILED','getCellMatrix','UniverInstanceType','evenodd','disposeUnit','Optional','shift','COMPLETION_FINISHED','_toggleOffline','IRenderManagerService','VIEW_MAIN','makeDirty','split','ILocalStorageService','_scene','?taskId=','generateRandomId','sessionStatus$','getTypeOfUnitDisposed$','CONNECTOR_DATA_TOO_LARGE','values'];_0x392f=function(){return _0xf7fbb1;};return _0x392f();}let Z=class extends a['Disposable']{constructor(_0x437a74,_0x8e68ec,_0x7d7056,_0x5159d3,_0x2e9397,_0x1526b2){const _0x160571=_0x4c4685;super(),this[_0x160571(0x247)]=_0x437a74,this[_0x160571(0x28b)]=_0x8e68ec,this[_0x160571(0x3c1)]=_0x7d7056,this[_0x160571(0x34f)]=_0x5159d3,this[_0x160571(0x2b6)]=_0x2e9397,this['_localeService']=_0x1526b2,this[_0x160571(0x1eb)](),this[_0x160571(0x248)]();}[_0x4c4685(0x1eb)](){const _0x44c47e=_0x4c4685;this[_0x44c47e(0x1c2)](this['_beforeCloseService'][_0x44c47e(0x370)](()=>{const _0x5a7411=_0x44c47e;if(this[_0x5a7411(0x28b)][_0x5a7411(0x188)][_0x5a7411(0x201)])return this[_0x5a7411(0x18e)]['t'](_0x5a7411(0x29d));}));}['_initEvent'](){const _0x51cfb9=_0x4c4685;this[_0x51cfb9(0x1c2)](this[_0x51cfb9(0x3c1)][_0x51cfb9(0x2dd)][_0x51cfb9(0x2e5)](_0x1420f4=>{const _0x8a5f1a=_0x51cfb9;_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x30e)]&&this[_0x8a5f1a(0x34f)][_0x8a5f1a(0x22b)]({'type':T[_0x8a5f1a(0x204)][_0x8a5f1a(0x417)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x1cc))}),_0x1420f4['id']===u['CollaborationUIEventId'][_0x8a5f1a(0x36c)]&&this['_messageService'][_0x8a5f1a(0x22b)]({'type':T['MessageType'][_0x8a5f1a(0x417)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x216))}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x272)]&&this['_notificationService']['show']({'title':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x26a)),'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x265)),'type':_0x8a5f1a(0x2c2),'duration':0x0}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x38f)]&&this[_0x8a5f1a(0x34f)][_0x8a5f1a(0x22b)]({'type':T['MessageType'][_0x8a5f1a(0x241)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x216))+'('+_0x1420f4['data']+')'}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x294)]&&this['_messageService'][_0x8a5f1a(0x22b)]({'type':T[_0x8a5f1a(0x204)][_0x8a5f1a(0x417)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x1420f4['data']||'')}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x174)]&&this[_0x8a5f1a(0x34f)][_0x8a5f1a(0x22b)]({'type':T['MessageType']['Warning'],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x1b2))}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x2cd)]&&this[_0x8a5f1a(0x34f)]['show']({'type':T['MessageType'][_0x8a5f1a(0x241)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x3c2))}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x41e)]&&this['_messageService'][_0x8a5f1a(0x22b)]({'type':T[_0x8a5f1a(0x204)][_0x8a5f1a(0x241)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x1a3))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x4c4685(0x2dc)]),y(0x2,a[_0x4c4685(0x414)](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x4c4685(0x414)](a['LocaleService']))],Z);var jt=Object[_0x4c4685(0x1b0)],kt=(_0x34a69f,_0x334105,_0x28d2d7,_0x5d28ed)=>{const _0x3077ae=_0x4c4685;for(var _0x283cea=_0x5d28ed>0x1?void 0x0:_0x5d28ed?jt(_0x334105,_0x28d2d7):_0x334105,_0x413029=_0x34a69f[_0x3077ae(0x393)]-0x1,_0x3e2c46;_0x413029>=0x0;_0x413029--)(_0x3e2c46=_0x34a69f[_0x413029])&&(_0x283cea=_0x3e2c46(_0x283cea)||_0x283cea);return _0x283cea;},z=(_0x550353,_0x5ad412)=>(_0x2f9ca7,_0x1c2ad0)=>_0x5ad412(_0x2f9ca7,_0x1c2ad0,_0x550353);let Q=class extends a[_0x4c4685(0x25e)]{constructor(_0x54706f,_0xc18274,_0x1bba59,_0x354d7a){const _0x49007f=_0x4c4685;super(),_(this,_0x49007f(0x2e1)),(this[_0x49007f(0x28a)]=_0x54706f,this[_0x49007f(0x378)]=_0xc18274,this['_logService']=_0x1bba59,this['_collaborationSessionService']=_0x354d7a,this[_0x49007f(0x16e)]());}[_0x4c4685(0x16e)](){const _0x3f0af5=_0x4c4685;this[_0x3f0af5(0x284)](),this[_0x3f0af5(0x275)](),this[_0x3f0af5(0x306)](),this[_0x3f0af5(0x23b)]();}[_0x4c4685(0x23b)](){const _0x4822f1=_0x4c4685;this['disposeWithMe'](this['_collaborationSessionService']['socket$'][_0x4822f1(0x2e5)](_0x4b7448=>{const _0x4c31be=_0x4822f1;this[_0x4c31be(0x2e1)]=_0x4b7448==null?void 0x0:_0x4b7448[_0x4c31be(0x1e3)];}));}['_initWindowErrorListener'](){const _0x141928=_0x4c4685,_0x2d3303=_0x82716b=>{const _0x44fb6a=_0x1c17;var _0x2421c0;this[_0x44fb6a(0x24e)](_0x44fb6a(0x2c2),_0x44fb6a(0x1bd)+_0x82716b[_0x44fb6a(0x203)]+_0x44fb6a(0x2cb)+_0x82716b[_0x44fb6a(0x387)]+':'+_0x82716b[_0x44fb6a(0x383)]+':'+_0x82716b[_0x44fb6a(0x2ff)]+'\x0a'+(((_0x2421c0=_0x82716b[_0x44fb6a(0x2c2)])==null?void 0x0:_0x2421c0[_0x44fb6a(0x2e7)])||''));};window[_0x141928(0x24c)](_0x141928(0x2c2),_0x2d3303),this[_0x141928(0x1c2)](()=>{const _0x7253b7=_0x141928;window[_0x7253b7(0x1c0)](_0x7253b7(0x2c2),_0x2d3303);});}[_0x4c4685(0x275)](){const _0xbb7d0c=_0x4c4685,_0x526dfa=_0x745564=>{const _0x45d7b2=_0x1c17;this['_uploadLog'](_0x45d7b2(0x2c2),'[Unhandled\x20Rejection]:\x20'+_0x745564['reason']);};window[_0xbb7d0c(0x24c)]('unhandledrejection',_0x526dfa),this['disposeWithMe'](()=>{const _0x5ba9ca=_0xbb7d0c;window['removeEventListener'](_0x5ba9ca(0x177),_0x526dfa);});}[_0x4c4685(0x306)](){const _0x7e2bac=_0x4c4685,_0x495662=this[_0x7e2bac(0x228)][_0x7e2bac(0x2c2)]['bind'](this[_0x7e2bac(0x228)]);this[_0x7e2bac(0x228)][_0x7e2bac(0x2c2)]=(..._0x5c63ed)=>{const _0xb71aa9=_0x7e2bac,_0x4a4faf=_0x5c63ed[_0xb71aa9(0x36a)](_0x1a3b5a=>_0x1a3b5a instanceof Error?_0x1a3b5a[_0xb71aa9(0x203)]+'\x0a'+_0x1a3b5a['stack']:String(_0x1a3b5a))[_0xb71aa9(0x3ee)]('\x20');this[_0xb71aa9(0x24e)](_0xb71aa9(0x2c2),_0xb71aa9(0x1a4)+_0x4a4faf),_0x495662(..._0x5c63ed);},this[_0x7e2bac(0x1c2)](()=>{const _0x2fbc04=_0x7e2bac;this[_0x2fbc04(0x228)][_0x2fbc04(0x2c2)]=_0x495662;});}['_uploadLog'](_0x44fac8,_0x2056cb){const _0x442559=_0x4c4685;try{const _0x2b53ed={'userId':this['_memberID'],'logLabel':_0x44fac8,'content':_0x2056cb};this['_httpService'][_0x442559(0x300)](_0x442559(0x280),{'body':_0x2b53ed})[_0x442559(0x202)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x4c4685(0x278)])),z(0x1,a[_0x4c4685(0x414)](x[_0x4c4685(0x210)])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u[_0x4c4685(0x35f)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x4c4685(0x1b0)],Wt=(_0x3a48dc,_0x2733fe,_0x269583,_0x3a7dce)=>{const _0x26c15d=_0x4c4685;for(var _0x10baf7=_0x3a7dce>0x1?void 0x0:_0x3a7dce?Ht(_0x2733fe,_0x269583):_0x2733fe,_0xff3bcd=_0x3a48dc[_0x26c15d(0x393)]-0x1,_0x92d108;_0xff3bcd>=0x0;_0xff3bcd--)(_0x92d108=_0x3a48dc[_0xff3bcd])&&(_0x10baf7=_0x92d108(_0x10baf7)||_0x10baf7);return _0x10baf7;},Ae=(_0x1adee0,_0x4cf90d)=>(_0x74760c,_0x36bf2f)=>_0x4cf90d(_0x74760c,_0x36bf2f,_0x1adee0);let ee=class{constructor(_0x19961e,_0x145061){const _0x326589=_0x4c4685;this[_0x326589(0x2f6)]=_0x19961e,this[_0x326589(0x416)]=_0x145061;}[_0x4c4685(0x191)](_0x3551b0){const _0x107c9b=_0x4c4685;this[_0x107c9b(0x343)](_0x3551b0),this[_0x107c9b(0x3df)](_0x3551b0);}[_0x4c4685(0x355)](_0x3d5c84){const _0x35d86d=_0x4c4685,{unitID:_0x59f981}=_0x3d5c84,_0xfc7717=this[_0x35d86d(0x416)][_0x35d86d(0x1da)](_0x59f981)['with'](p[_0x35d86d(0x268)]),{redoCache:_0x5293c8}=_0xfc7717['getUndoRedoMutationParamsCache']();if(_0x5293c8[_0x35d86d(0x393)]===0x0)return _0x3d5c84;let _0x172a5a=a[_0x35d86d(0x3ae)]['deepClone'](_0x3d5c84[_0x35d86d(0x21c)][0x0]);for(let _0x33c478=0x0;_0x33c478<_0x5293c8[_0x35d86d(0x393)];_0x33c478++){const _0xfe962b={'id':_0x35d86d(0x3b3),'params':{..._0x5293c8[_0x33c478]}},_0x56ec62=this[_0x35d86d(0x2f6)][_0x35d86d(0x42f)](_0x172a5a,_0xfe962b,!0x1);if(g[_0x35d86d(0x2c0)](_0x56ec62))throw _0x56ec62['error'];_0x172a5a=_0x56ec62['m1Prime'];}return{...a[_0x35d86d(0x3ae)][_0x35d86d(0x3d6)](_0x3d5c84),'mutations':[_0x172a5a]};}[_0x4c4685(0x343)](_0x51b561){const _0x1d0acc=_0x4c4685,{unitID:_0x3920a5}=_0x51b561,_0x1bae3d=this[_0x1d0acc(0x416)][_0x1d0acc(0x1da)](_0x3920a5)[_0x1d0acc(0x1b9)](p[_0x1d0acc(0x268)]),{undoCache:_0x4b7da8,redoCache:_0x4c5970}=_0x1bae3d['getUndoRedoMutationParamsCache']();if(_0x4b7da8[_0x1d0acc(0x393)]===0x0||_0x4c5970[_0x1d0acc(0x393)]===0x0)return;const _0x3644a6=[],_0x411a5e=[];let _0x122be3=a[_0x1d0acc(0x3ae)]['deepClone'](_0x51b561[_0x1d0acc(0x21c)][0x0]),_0x8d22d0=a['Tools'][_0x1d0acc(0x3d6)](_0x51b561[_0x1d0acc(0x21c)][0x0]);for(let _0x292601=_0x4b7da8[_0x1d0acc(0x393)]-0x1;_0x292601>=0x0;_0x292601--){const _0x4c0651={'id':_0x1d0acc(0x3b3),'params':{..._0x4b7da8[_0x292601]}},_0x153b62={'id':_0x1d0acc(0x3b3),'params':{..._0x4c5970[_0x292601]}},_0x4e4d12=this['_transformService']['transformMutation'](_0x122be3,_0x4c0651,!0x1),_0x1cc7da=this[_0x1d0acc(0x2f6)][_0x1d0acc(0x42f)](_0x8d22d0,_0x153b62,!0x1);if(g[_0x1d0acc(0x2c0)](_0x4e4d12))throw _0x4e4d12[_0x1d0acc(0x2c2)];if(g['isTransformMutationFailure'](_0x1cc7da))throw _0x1cc7da[_0x1d0acc(0x2c2)];_0x3644a6[_0x1d0acc(0x364)](_0x4e4d12[_0x1d0acc(0x411)][_0x1d0acc(0x18a)]),_0x411a5e[_0x1d0acc(0x364)](_0x1cc7da[_0x1d0acc(0x411)]['params']),_0x122be3=_0x4e4d12[_0x1d0acc(0x287)],_0x8d22d0=_0x1cc7da['m1Prime'];}_0x1bae3d[_0x1d0acc(0x3fd)]({'undoCache':_0x3644a6,'redoCache':_0x411a5e});}[_0x4c4685(0x3df)](_0x585aa5){const _0x1faab9=_0x4c4685,{unitID:_0x15cde8}=_0x585aa5,_0x5c4a9b=this[_0x1faab9(0x416)][_0x1faab9(0x1da)](_0x15cde8)[_0x1faab9(0x1b9)](p['DocIMEInputManagerService']),_0x3caa90=_0x5c4a9b[_0x1faab9(0x277)]();if(_0x3caa90==null)return;const _0x58c383=[{'id':_0x1faab9(0x3b3),'params':{'unitId':_0x585aa5[_0x1faab9(0x179)],'actions':null,'textRanges':[_0x3caa90]}}],_0x244255=this['_transformService'][_0x1faab9(0x281)](_0x585aa5,_0x58c383);if(!g[_0x1faab9(0x3da)](_0x244255))throw _0x244255[_0x1faab9(0x2c2)];const _0x33a05c=_0x244255[_0x1faab9(0x411)][0x0][_0x1faab9(0x18a)][_0x1faab9(0x220)];Array[_0x1faab9(0x2bf)](_0x33a05c)&&_0x33a05c[_0x1faab9(0x393)]&&_0x5c4a9b[_0x1faab9(0x223)](_0x33a05c[0x0]);}};ee=Wt([Ae(0x0,g[_0x4c4685(0x279)]),Ae(0x1,C[_0x4c4685(0x32a)])],ee);var Vt=Object[_0x4c4685(0x1b0)],Gt=(_0x3900ae,_0x312431,_0x5a417a,_0x4e337d)=>{const _0x344c44=_0x4c4685;for(var _0xacb919=_0x4e337d>0x1?void 0x0:_0x4e337d?Vt(_0x312431,_0x5a417a):_0x312431,_0x2dfe9f=_0x3900ae[_0x344c44(0x393)]-0x1,_0x45a471;_0x2dfe9f>=0x0;_0x2dfe9f--)(_0x45a471=_0x3900ae[_0x2dfe9f])&&(_0xacb919=_0x45a471(_0xacb919)||_0xacb919);return _0xacb919;},Ie=(_0x41c2b5,_0xef05d1)=>(_0x5b1d67,_0x3bfd23)=>_0xef05d1(_0x5b1d67,_0x3bfd23,_0x41c2b5);let te=class{constructor(_0x3fcd65,_0x24028f,_0xb0e614){const _0x65976f=_0x4c4685;this[_0x65976f(0x28a)]=_0x3fcd65,this['_transformService']=_0x24028f,this['_docStateChangeManagerService']=_0xb0e614;}[_0x4c4685(0x20c)](_0x352248){const _0xfe326=_0x4c4685;this[_0xfe326(0x2f3)](_0x352248);}[_0x4c4685(0x355)](_0x92f78){const _0x560b1c=_0x4c4685,{unitID:_0x17bdac}=_0x92f78,{collaboration:_0x403af7}=this[_0x560b1c(0x27c)]['getStateCache'](_0x17bdac);if(_0x403af7['length']===0x0)return _0x92f78;let _0x74723=a['Tools'][_0x560b1c(0x3d6)](_0x92f78['mutations'][0x0]);for(let _0x3fad5=0x0;_0x3fad5<_0x403af7[_0x560b1c(0x393)];_0x3fad5++){const _0x92a7f8={'id':_0x560b1c(0x3b3),'params':{'unitId':_0x403af7[_0x3fad5]['unitId'],..._0x403af7[_0x3fad5][_0x560b1c(0x18c)]}},_0x17a6ca=this[_0x560b1c(0x2f6)]['transformMutation'](_0x74723,_0x92a7f8,!0x1);if(g[_0x560b1c(0x2c0)](_0x17a6ca))throw _0x17a6ca['error'];_0x74723=_0x17a6ca[_0x560b1c(0x287)];}return{...a['Tools'][_0x560b1c(0x3d6)](_0x92f78),'mutations':[_0x74723]};}[_0x4c4685(0x2f3)](_0x1d6e72){const _0x50fed2=_0x4c4685,{unitID:_0x2fb507}=_0x1d6e72,{history:_0x34973b,collaboration:_0xd16b7b}=this[_0x50fed2(0x27c)]['getStateCache'](_0x2fb507);if(_0x34973b['length']===0x0&&_0xd16b7b[_0x50fed2(0x393)]===0x0)return;const _0x26961c=[],_0x1cfd89=[];let _0x9d38ce=a[_0x50fed2(0x3ae)][_0x50fed2(0x3d6)](_0x1d6e72[_0x50fed2(0x21c)][0x0]),_0x3ef2c6=a[_0x50fed2(0x3ae)][_0x50fed2(0x3d6)](_0x1d6e72[_0x50fed2(0x21c)][0x0]);for(let _0x4226e0=_0x34973b[_0x50fed2(0x393)]-0x1;_0x4226e0>=0x0;_0x4226e0--){const _0x205e06={'id':_0x50fed2(0x3b3),'params':{'unitId':_0x34973b[_0x4226e0][_0x50fed2(0x1a1)],..._0x34973b[_0x4226e0][_0x50fed2(0x3c0)]}},_0x3220c0={'id':_0x50fed2(0x3b3),'params':{'unitId':_0x34973b[_0x4226e0]['unitId'],..._0x34973b[_0x4226e0][_0x50fed2(0x18c)]}},_0x3fd758=this[_0x50fed2(0x2f6)][_0x50fed2(0x42f)](_0x9d38ce,_0x205e06,!0x1),_0x203cac=this['_transformService']['transformMutation'](_0x3ef2c6,_0x3220c0,!0x1);if(g[_0x50fed2(0x2c0)](_0x3fd758))throw _0x3fd758[_0x50fed2(0x2c2)];if(g[_0x50fed2(0x2c0)](_0x203cac))throw _0x203cac['error'];_0x26961c[_0x50fed2(0x364)]({..._0x34973b[_0x4226e0],'undoState':_0x3fd758['m2Prime']['params'],'redoState':_0x203cac[_0x50fed2(0x411)][_0x50fed2(0x18a)]}),_0x9d38ce=_0x3fd758[_0x50fed2(0x287)],_0x3ef2c6=_0x203cac[_0x50fed2(0x287)];}_0x9d38ce=a[_0x50fed2(0x3ae)]['deepClone'](_0x1d6e72[_0x50fed2(0x21c)][0x0]),_0x3ef2c6=a[_0x50fed2(0x3ae)]['deepClone'](_0x1d6e72[_0x50fed2(0x21c)][0x0]);for(let _0x59c98a=_0xd16b7b['length']-0x1;_0x59c98a>=0x0;_0x59c98a--){const _0xbfeab9={'id':_0x50fed2(0x3b3),'params':{'unitId':_0xd16b7b[_0x59c98a]['unitId'],..._0xd16b7b[_0x59c98a][_0x50fed2(0x3c0)]}},_0x57274f={'id':_0x50fed2(0x3b3),'params':{'unitId':_0xd16b7b[_0x59c98a][_0x50fed2(0x1a1)],..._0xd16b7b[_0x59c98a][_0x50fed2(0x18c)]}},_0x49f7e0=this[_0x50fed2(0x2f6)][_0x50fed2(0x42f)](_0x9d38ce,_0xbfeab9,!0x1),_0x2c3ab1=this[_0x50fed2(0x2f6)][_0x50fed2(0x42f)](_0x3ef2c6,_0x57274f,!0x1);if(g[_0x50fed2(0x2c0)](_0x49f7e0))throw _0x49f7e0['error'];if(g[_0x50fed2(0x2c0)](_0x2c3ab1))throw _0x2c3ab1[_0x50fed2(0x2c2)];_0x1cfd89[_0x50fed2(0x364)]({..._0xd16b7b[_0x59c98a],'undoState':_0x49f7e0[_0x50fed2(0x411)]['params'],'redoState':_0x2c3ab1[_0x50fed2(0x411)]['params']}),_0x9d38ce=_0x49f7e0[_0x50fed2(0x287)],_0x3ef2c6=_0x2c3ab1[_0x50fed2(0x287)];}this[_0x50fed2(0x27c)][_0x50fed2(0x2d8)](_0x2fb507,{'history':_0x26961c,'collaboration':_0x1cfd89});}};te=Gt([Ie(0x0,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),Ie(0x1,g[_0x4c4685(0x279)]),Ie(0x2,a[_0x4c4685(0x414)](p[_0x4c4685(0x26b)]))],te);var Xt=Object[_0x4c4685(0x1b0)],Kt=(_0x3550cf,_0x444c41,_0x5a5dea,_0x465e2a)=>{const _0x3a254f=_0x4c4685;for(var _0x35edbc=_0x465e2a>0x1?void 0x0:_0x465e2a?Xt(_0x444c41,_0x5a5dea):_0x444c41,_0x4afa58=_0x3550cf[_0x3a254f(0x393)]-0x1,_0x37eed9;_0x4afa58>=0x0;_0x4afa58--)(_0x37eed9=_0x3550cf[_0x4afa58])&&(_0x35edbc=_0x37eed9(_0x35edbc)||_0x35edbc);return _0x35edbc;},Pe=(_0x392316,_0x2b5e19)=>(_0x496312,_0x144e1d)=>_0x2b5e19(_0x496312,_0x144e1d,_0x392316);let se=class{constructor(_0x54006f,_0x193a66){const _0x257308=_0x4c4685;this[_0x257308(0x28a)]=_0x54006f,this[_0x257308(0x2f6)]=_0x193a66;}['transformSelections'](_0x4c5b4c){const _0x595ad4=_0x4c4685;var _0x51cef1;const _0x5aa7ad=this[_0x595ad4(0x28a)]['get'](V[_0x595ad4(0x304)]),_0x59ec6c=(_0x51cef1=_0x5aa7ad[_0x595ad4(0x423)]())!=null?_0x51cef1:[];if(_0x59ec6c[_0x595ad4(0x393)]===0x0)return;const _0x4b9aca=_0x4c5b4c[_0x595ad4(0x179)],_0xfaa9e9=[{'id':_0x595ad4(0x3b3),'params':{'unitId':_0x4b9aca,'actions':null,'textRanges':_0x59ec6c}}],_0x30cbcd=this[_0x595ad4(0x2f6)][_0x595ad4(0x281)](_0x4c5b4c,_0xfaa9e9);if(!g[_0x595ad4(0x3da)](_0x30cbcd))throw _0x30cbcd[_0x595ad4(0x2c2)];const _0x42469b=_0x30cbcd[_0x595ad4(0x411)][0x0]['params'][_0x595ad4(0x220)];Array[_0x595ad4(0x2bf)](_0x42469b)&&_0x42469b[_0x595ad4(0x393)]&&_0x5aa7ad['replaceDocRanges'](_0x42469b,{'unitId':_0x4b9aca,'subUnitId':_0x4b9aca},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x4c4685(0x278)])),Pe(0x1,g[_0x4c4685(0x279)])],se);var qt=Object[_0x4c4685(0x1b0)],zt=(_0x35d0ea,_0x1c5d3c,_0x99175f,_0xc11653)=>{const _0x2ea0ae=_0x4c4685;for(var _0x285878=_0xc11653>0x1?void 0x0:_0xc11653?qt(_0x1c5d3c,_0x99175f):_0x1c5d3c,_0x413b01=_0x35d0ea[_0x2ea0ae(0x393)]-0x1,_0x48d31c;_0x413b01>=0x0;_0x413b01--)(_0x48d31c=_0x35d0ea[_0x413b01])&&(_0x285878=_0x48d31c(_0x285878)||_0x285878);return _0x285878;},N=(_0x41f033,_0x279de5)=>(_0x116c45,_0x255bbf)=>_0x279de5(_0x116c45,_0x255bbf,_0x41f033);let ie=class extends a[_0x4c4685(0x25e)]{constructor(_0x88715e,_0x4e60d7,_0x38741c,_0x26319a,_0x3bf44f,_0x3f9a3b,_0x231cf3,_0x521fed){const _0x1181b6=_0x4c4685;super(),_(this,'_status$',new I[(_0x1181b6(0x37d))](u[_0x1181b6(0x27f)]['NOT_COLLAB'])),(this[_0x1181b6(0x27c)]=_0x88715e,this[_0x1181b6(0x362)]=_0x4e60d7,this[_0x1181b6(0x385)]=_0x38741c,this[_0x1181b6(0x1f8)]=_0x26319a,this['_docTransformSelectionsService']=_0x3bf44f,this['_docSyncEditingCollabCursorService']=_0x3f9a3b,this['_messageService']=_0x231cf3,this['_localeService']=_0x521fed,this['_initEntityListener']());}['_initEntityListener'](){const _0x493359=_0x4c4685;this[_0x493359(0x1c2)](this[_0x493359(0x362)][_0x493359(0x182)][_0x493359(0x2e5)](_0x29b14f=>{const _0x37fa86=_0x493359,_0x2c9be4=this[_0x37fa86(0x27c)][_0x37fa86(0x19f)][_0x37fa86(0x2e5)](_0x541272=>{const _0x30751d=_0x37fa86;if(_0x541272==null)return;const {unitId:_0x43c335,redoState:_0x22e31d,commandId:_0x39d57a}=_0x541272;if(_0x43c335!==_0x29b14f[_0x30751d(0x179)])return;const _0x5737f4={'id':_0x39d57a,'type':a[_0x30751d(0x2bb)][_0x30751d(0x301)],'params':{'unitId':_0x43c335,'actions':_0x22e31d['actions'],'textRanges':null}};_0x29b14f[_0x30751d(0x2e8)](_0x5737f4);});if(_0x29b14f[_0x37fa86(0x1c2)](_0x2c9be4),_0x29b14f instanceof u['DocCollaborationEntity']){const _0x16555e={'onTransformIME':_0x1c7f4c=>this['_docTransformIMECacheService']['transformIMECache'](_0x1c7f4c),'onTransformState':_0x5e4ce4=>this[_0x37fa86(0x1f8)][_0x37fa86(0x20c)](_0x5e4ce4),'onTransformSelections':_0x3b4ee1=>this[_0x37fa86(0x239)]['transformSelections'](_0x3b4ee1),'onSyncEditingCollabCursor':_0x290485=>this[_0x37fa86(0x401)][_0x37fa86(0x1b7)](_0x290485),'onTransformRemoteChangesetByIMECache':_0x6bff8b=>this[_0x37fa86(0x385)]['transformRemoteChangeset'](_0x6bff8b),'onTransformRemoteChangesetByStateCache':_0xc6eb1a=>this[_0x37fa86(0x1f8)][_0x37fa86(0x355)](_0xc6eb1a)};_0x29b14f['addHandlerCallback'](_0x16555e);}}));}};ie=zt([N(0x0,a[_0x4c4685(0x414)](p[_0x4c4685(0x26b)])),N(0x1,a[_0x4c4685(0x414)](u[_0x4c4685(0x1f2)])),N(0x2,a[_0x4c4685(0x414)](ee)),N(0x3,a[_0x4c4685(0x414)](te)),N(0x4,a['Inject'](se)),N(0x5,a[_0x4c4685(0x414)](be)),N(0x6,O[_0x4c4685(0x1ea)]),N(0x7,a[_0x4c4685(0x414)](a[_0x4c4685(0x394)]))],ie);var G=(_0x3ebc51=>(_0x3ebc51[_0x3ebc51[_0x4c4685(0x1c3)]=0x0]='UNDEFINED',_0x3ebc51[_0x3ebc51['OK']=0x1]='OK',_0x3ebc51[_0x3ebc51['INTERNAL_ERROR']=0x2]=_0x4c4685(0x224),_0x3ebc51[_0x3ebc51[_0x4c4685(0x272)]=0x3]=_0x4c4685(0x272),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1c1)]=0x4]=_0x4c4685(0x1c1),_0x3ebc51[_0x3ebc51[_0x4c4685(0x399)]=0x5]=_0x4c4685(0x399),_0x3ebc51[_0x3ebc51['ALREADY_EXISTS']=0x6]=_0x4c4685(0x3dd),_0x3ebc51[_0x3ebc51['INVALID_ARGUMENT']=0x7]=_0x4c4685(0x254),_0x3ebc51[_0x3ebc51[_0x4c4685(0x30c)]=0x8]=_0x4c4685(0x30c),_0x3ebc51[_0x3ebc51[_0x4c4685(0x328)]=0x9]=_0x4c4685(0x328),_0x3ebc51[_0x3ebc51[_0x4c4685(0x321)]=0xa]=_0x4c4685(0x321),_0x3ebc51[_0x3ebc51['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x4c4685(0x1dc),_0x3ebc51[_0x3ebc51[_0x4c4685(0x430)]=0xc]=_0x4c4685(0x430),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3a1)]=0xd]=_0x4c4685(0x3a1),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3dc)]=0xe]=_0x4c4685(0x3dc),_0x3ebc51[_0x3ebc51['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x4c4685(0x3fc),_0x3ebc51[_0x3ebc51['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x4c4685(0x2ea),_0x3ebc51[_0x3ebc51['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x4c4685(0x27a),_0x3ebc51[_0x3ebc51['ERROR_AGAIN']=0x65]=_0x4c4685(0x2a9),_0x3ebc51[_0x3ebc51[_0x4c4685(0x2fd)]=0xc9]=_0x4c4685(0x2fd),_0x3ebc51[_0x3ebc51[_0x4c4685(0x2af)]=0xca]='USER_IS_ANONYMOUS',_0x3ebc51[_0x3ebc51[_0x4c4685(0x368)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3ebc51[_0x3ebc51[_0x4c4685(0x176)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3ebc51[_0x3ebc51['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4c4685(0x25c),_0x3ebc51[_0x3ebc51['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x4c4685(0x19a),_0x3ebc51[_0x3ebc51['APPLY_REJECT']=0x1b59]=_0x4c4685(0x361),_0x3ebc51[_0x3ebc51['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4c4685(0x1f7),_0x3ebc51[_0x3ebc51[_0x4c4685(0x238)]=0x1b5b]=_0x4c4685(0x238),_0x3ebc51[_0x3ebc51[_0x4c4685(0x20a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3ebc51[_0x3ebc51['APPLY_DUPLICATED']=0x1b5d]=_0x4c4685(0x28c),_0x3ebc51[_0x3ebc51[_0x4c4685(0x334)]=0x1f41]=_0x4c4685(0x334),_0x3ebc51[_0x3ebc51[_0x4c4685(0x29a)]=0x2329]=_0x4c4685(0x29a),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3c9)]=0x232a]=_0x4c4685(0x3c9),_0x3ebc51[_0x3ebc51[_0x4c4685(0x263)]=0x232b]=_0x4c4685(0x263),_0x3ebc51[_0x3ebc51[_0x4c4685(0x29f)]=0x232c]=_0x4c4685(0x29f),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1c8)]=0x232d]=_0x4c4685(0x1c8),_0x3ebc51[_0x3ebc51[_0x4c4685(0x42d)]=0x2711]=_0x4c4685(0x42d),_0x3ebc51[_0x3ebc51[_0x4c4685(0x398)]=0x2712]=_0x4c4685(0x398),_0x3ebc51[_0x3ebc51['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4c4685(0x1d0),_0x3ebc51[_0x3ebc51[_0x4c4685(0x38b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3ebc51[_0x3ebc51[_0x4c4685(0x395)]=0x271a]=_0x4c4685(0x395),_0x3ebc51[_0x3ebc51[_0x4c4685(0x36f)]=0x271b]=_0x4c4685(0x36f),_0x3ebc51[_0x3ebc51['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3ebc51[_0x3ebc51[_0x4c4685(0x251)]=0x271d]=_0x4c4685(0x251),_0x3ebc51[_0x3ebc51[_0x4c4685(0x25b)]=0x271e]=_0x4c4685(0x25b),_0x3ebc51[_0x3ebc51['YUUMI_AI_RUN_FAILED']=0x271f]=_0x4c4685(0x3a3),_0x3ebc51[_0x3ebc51['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4c4685(0x346),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1b8)]=0x2af9]=_0x4c4685(0x1b8),_0x3ebc51[_0x3ebc51['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x4c4685(0x171),_0x3ebc51[_0x3ebc51['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x3ebc51[_0x3ebc51['INVITE_CODE_REQUIRED']=0x2ee3]=_0x4c4685(0x186),_0x3ebc51[_0x3ebc51[_0x4c4685(0x388)]=0x2ee4]=_0x4c4685(0x388),_0x3ebc51[_0x3ebc51['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x4c4685(0x218),_0x3ebc51[_0x3ebc51[_0x4c4685(0x36b)]=0x32c9]=_0x4c4685(0x36b),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1ed)]=0x32ca]=_0x4c4685(0x1ed),_0x3ebc51[_0x3ebc51[_0x4c4685(0x292)]=0x32cb]=_0x4c4685(0x292),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1a0)]=0x36b1]=_0x4c4685(0x1a0),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3fe)]=0x36b2]=_0x4c4685(0x3fe),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3a8)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x3ebc51[_0x3ebc51[_0x4c4685(0x17c)]=0x36b4]=_0x4c4685(0x17c),_0x3ebc51[_0x3ebc51[_0x4c4685(0x425)]=0x3715]=_0x4c4685(0x425),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3f2)]=0x3716]=_0x4c4685(0x3f2),_0x3ebc51[_0x3ebc51[_0x4c4685(0x37a)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x3ebc51[_0x3ebc51[_0x4c4685(0x1af)]=0x37dd]=_0x4c4685(0x1af),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1f0)]=0x3a99]=_0x4c4685(0x1f0),_0x3ebc51[_0x3ebc51['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x3ebc51[_0x3ebc51[_0x4c4685(0x3c3)]=0x3a9b]=_0x4c4685(0x3c3),_0x3ebc51[_0x3ebc51['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x4c4685(0x2ee),_0x3ebc51[_0x3ebc51[_0x4c4685(0x33f)]=0x3a9d]=_0x4c4685(0x33f),_0x3ebc51[_0x3ebc51[_0x4c4685(0x40d)]=0x3a9e]=_0x4c4685(0x40d),_0x3ebc51[_0x3ebc51['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x3ebc51[_0x3ebc51[_0x4c4685(0x407)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x3ebc51[_0x3ebc51['UNRECOGNIZED']=-0x1]=_0x4c4685(0x2f0),_0x3ebc51))(G||{});function Jt(_0x13c5b9){const _0x357038=_0x4c4685;var _0x443b19,_0x340705;const _0x57fa38=(_0x443b19=_0x13c5b9[_0x357038(0x1e7)])==null?void 0x0:_0x443b19[_0x357038(0x3ca)],_0x296294=((_0x340705=_0x13c5b9['stageInfo'])==null?void 0x0:_0x340705[_0x357038(0x3a0)])||0x0;return _0x57fa38===B[_0x357038(0x42e)][_0x357038(0x3db)]&&_0x296294>0x0;}function Zt(_0x51a0a8){const _0x3fdfa5=_0x4c4685;return _0x51a0a8['functionsExecutedState']===B[_0x3fdfa5(0x3e4)]['SUCCESS'];}var Qt=Object[_0x4c4685(0x1b0)],es=(_0x4954e3,_0x630055,_0xbcc942,_0x3ae3a1)=>{const _0x3f7a01=_0x4c4685;for(var _0x3fbcde=_0x3ae3a1>0x1?void 0x0:_0x3ae3a1?Qt(_0x630055,_0xbcc942):_0x630055,_0x308289=_0x4954e3[_0x3f7a01(0x393)]-0x1,_0x56e58e;_0x308289>=0x0;_0x308289--)(_0x56e58e=_0x4954e3[_0x308289])&&(_0x3fbcde=_0x56e58e(_0x3fbcde)||_0x3fbcde);return _0x3fbcde;},L=(_0x357d94,_0x2a41cc)=>(_0x354998,_0xfa5f5d)=>_0x2a41cc(_0x354998,_0xfa5f5d,_0x357d94);const ts='/universer-api/license/formula/limit/status',ss=_0x4c4685(0x291),is=_0x4c4685(0x3e3);let ne=class extends a[_0x4c4685(0x25e)]{constructor(_0x32f097,_0x8830d1,_0x342266,_0x14268b,_0x49c1a8,_0x98431b,_0x3ae846){const _0x34a75a=_0x4c4685;super(),_(this,_0x34a75a(0x1f5),null),_(this,_0x34a75a(0x2da),0x0),_(this,_0x34a75a(0x3bc),0x0),_(this,'_taskIds',[]),_(this,_0x34a75a(0x1de),0x0),(this[_0x34a75a(0x34f)]=_0x32f097,this[_0x34a75a(0x25a)]=_0x8830d1,this[_0x34a75a(0x410)]=_0x342266,this[_0x34a75a(0x378)]=_0x14268b,this[_0x34a75a(0x175)]=_0x49c1a8,this[_0x34a75a(0x228)]=_0x98431b,this[_0x34a75a(0x18e)]=_0x3ae846,this[_0x34a75a(0x28f)]());}['_initCommandInterceptor'](){const _0x4dc0b8=_0x4c4685;this['disposeWithMe'](this[_0x4dc0b8(0x25a)]['beforeCommandExecuted']((_0x8f5048,_0x3aacf8)=>{const _0x476173=_0x4dc0b8;var _0x298323;if(_0x8f5048['id']!==B[_0x476173(0x3f3)]['id'])return;const _0x3c4d89=_0x8f5048[_0x476173(0x18a)];if(!this[_0x476173(0x33c)]((_0x298323=_0x3c4d89[_0x476173(0x3d5)])!=null?_0x298323:[]))return;if(!this[_0x476173(0x3a9)]())throw this[_0x476173(0x2c7)](_0x8f5048,_0x3aacf8),this[_0x476173(0x29b)](),new a[(_0x476173(0x309))]();})),this[_0x4dc0b8(0x1c2)](this[_0x4dc0b8(0x25a)]['onCommandExecuted']((_0x1b620f,_0x157e16)=>{const _0x1590a7=_0x4dc0b8;if(_0x1b620f['id']!==B[_0x1590a7(0x35d)]['id'])return;const _0x1215cf=_0x1b620f[_0x1590a7(0x18a)];if(Jt(_0x1215cf)){const _0x1a7add=a['generateRandomId']();this[_0x1590a7(0x338)][_0x1590a7(0x2cc)](_0x1a7add),this[_0x1590a7(0x318)](_0x1a7add);}else{if(Zt(_0x1215cf)&&this[_0x1590a7(0x338)][_0x1590a7(0x393)]>0x0){const _0x7d2308=this['_taskIds'][_0x1590a7(0x327)]();this['_releaseCalculationLimit'](_0x7d2308);}}}));}['dispose'](){const _0x3b9d41=_0x4c4685;super[_0x3b9d41(0x3d3)](),this[_0x3b9d41(0x244)](),this['_taskIds']=[],this[_0x3b9d41(0x3bc)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x4c4685(0x2c7)](_0x1fa218,_0xfa889f){const _0x5a9d54=_0x4c4685;for(let _0x3e2354=0x0;_0x3e2354<0x1e;_0x3e2354++)try{if(await this[_0x5a9d54(0x260)](),this[_0x5a9d54(0x3a9)]()){this[_0x5a9d54(0x1b4)](_0x1fa218,_0xfa889f),this[_0x5a9d54(0x34f)][_0x5a9d54(0x22b)]({'content':this[_0x5a9d54(0x18e)]['t'](_0x5a9d54(0x212)),'type':T['MessageType']['Success']});return;}await new Promise(_0x1584b4=>{const _0x12213c=_0x5a9d54;this['_pollingInterval']=window[_0x12213c(0x2fe)](_0x1584b4,0x3e8);});}catch(_0x89674){this[_0x5a9d54(0x228)][_0x5a9d54(0x2c2)](_0x89674);}this['_messageService']['show']({'content':this[_0x5a9d54(0x18e)]['t'](_0x5a9d54(0x1ba)),'type':T[_0x5a9d54(0x204)][_0x5a9d54(0x241)]});}[_0x4c4685(0x1b4)](_0x1b6009,_0x5a2d17){const _0x47e45a=_0x4c4685;try{this['_commandService'][_0x47e45a(0x18b)](_0x1b6009['id'],_0x1b6009['params'],_0x5a2d17);}catch(_0x885c23){this[_0x47e45a(0x228)][_0x47e45a(0x2c2)](_0x885c23);}}[_0x4c4685(0x2ac)](_0x23ce11,_0xe32def){const _0x157972=_0x4c4685;_0xe32def<this[_0x157972(0x1de)]||(this['_lastResponseTimestamp']=_0xe32def,this['_maxFormulaLimit']=Number[_0x157972(0x18d)](_0x23ce11['maxFormulaLimit']),this[_0x157972(0x3bc)]=Number['parseInt'](_0x23ce11[_0x157972(0x351)]));}async[_0x4c4685(0x318)](_0x6abdd1){const _0x408131=_0x4c4685;var _0x1e305f,_0x17d78a;const _0x1643f2=Date['now']();try{const _0x5ebf44=((_0x1e305f=this[_0x408131(0x410)][_0x408131(0x184)](u[_0x408131(0x3b0)]))==null?void 0x0:_0x1e305f[_0x408131(0x199)])||ss,_0x1c5961=(await this[_0x408131(0x378)][_0x408131(0x300)](_0x5ebf44,{'body':JSON['stringify']({'taskId':_0x6abdd1})}))[_0x408131(0x42a)];if(((_0x17d78a=_0x1c5961['error'])==null?void 0x0:_0x17d78a[_0x408131(0x31e)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x1c5961[_0x408131(0x305)],_0x1643f2);}catch(_0x5e3079){this[_0x408131(0x228)][_0x408131(0x2c2)](_0x5e3079);}}async[_0x4c4685(0x260)](_0x3c7203){const _0xd31e9e=_0x4c4685;var _0x1c1768,_0x166504;const _0x40a2aa=Date['now']();try{const _0x201791=((_0x1c1768=this['_configService'][_0xd31e9e(0x184)](u[_0xd31e9e(0x3b0)]))==null?void 0x0:_0x1c1768['getformulaLimitStatusUrl'])||ts,_0x143e0a=_0x3c7203?_0x201791+_0xd31e9e(0x330)+encodeURIComponent(_0x3c7203):_0x201791,_0x206cef=(await this['_httpService'][_0xd31e9e(0x418)](_0x143e0a))['body'];if(((_0x166504=_0x206cef[_0xd31e9e(0x2c2)])==null?void 0x0:_0x166504[_0xd31e9e(0x31e)])!==G['OK'])return;this[_0xd31e9e(0x2ac)](_0x206cef[_0xd31e9e(0x305)],_0x40a2aa);}catch(_0x2dd34e){this[_0xd31e9e(0x228)][_0xd31e9e(0x2c2)](_0x2dd34e);}}async['_releaseCalculationLimit'](_0x44a819){const _0x157d42=_0x4c4685;var _0x1980fd,_0x16f2e0;const _0x19e039=Date[_0x157d42(0x1ac)]();try{const _0x5ec7ff=((_0x1980fd=this[_0x157d42(0x410)][_0x157d42(0x184)](u[_0x157d42(0x3b0)]))==null?void 0x0:_0x1980fd[_0x157d42(0x314)])||is,_0x24812f=(await this[_0x157d42(0x378)][_0x157d42(0x300)](_0x5ec7ff,{'body':JSON[_0x157d42(0x400)]({'taskId':_0x44a819})}))[_0x157d42(0x42a)];if(((_0x16f2e0=_0x24812f['error'])==null?void 0x0:_0x16f2e0[_0x157d42(0x31e)])!==G['OK'])return;this[_0x157d42(0x2ac)](_0x24812f[_0x157d42(0x305)],_0x19e039);}catch(_0x21607a){this[_0x157d42(0x228)][_0x157d42(0x2c2)](_0x21607a);}}[_0x4c4685(0x3a9)](){const _0x2e354d=_0x4c4685;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x2e354d(0x3bc)]>0x0;}[_0x4c4685(0x244)](){const _0x2b1822=_0x4c4685;this['_pollingInterval']&&(clearTimeout(this[_0x2b1822(0x1f5)]),this[_0x2b1822(0x1f5)]=null);}[_0x4c4685(0x29b)](){const _0x313c3d=_0x4c4685;this[_0x313c3d(0x34f)]['show']({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T[_0x313c3d(0x204)][_0x313c3d(0x3f4)]});}[_0x4c4685(0x33c)](_0x4971bf){const _0x219306=_0x4c4685;for(const _0x3d46d1 of _0x4971bf){const {unitId:_0x33bdc9,sheetId:_0x386390,range:_0x4d87df}=_0x3d46d1,_0x43b4e8=this['_univerInstanceService'][_0x219306(0x1cf)](_0x33bdc9);if(!_0x43b4e8)continue;const _0x176333=_0x43b4e8['getSheetBySheetId'](_0x386390);if(!_0x176333)continue;const _0x194f32=_0x176333[_0x219306(0x322)]();for(let _0x445071=_0x4d87df[_0x219306(0x1f1)];_0x445071<=_0x4d87df[_0x219306(0x315)];_0x445071++)for(let _0x1c5edf=_0x4d87df[_0x219306(0x253)];_0x1c5edf<=_0x4d87df[_0x219306(0x345)];_0x1c5edf++){const _0x26bd01=_0x194f32[_0x219306(0x2f1)](_0x445071,_0x1c5edf);if(_0x26bd01&&(a[_0x219306(0x2b9)](_0x26bd01['f'])||a[_0x219306(0x2a4)](_0x26bd01['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4c4685(0x414)](O[_0x4c4685(0x1ea)])),L(0x1,a['ICommandService']),L(0x2,a[_0x4c4685(0x1c6)]),L(0x3,a[_0x4c4685(0x414)](x['HTTPService'])),L(0x4,a[_0x4c4685(0x19d)]),L(0x5,a[_0x4c4685(0x259)]),L(0x6,a[_0x4c4685(0x414)](a[_0x4c4685(0x394)]))],ne);var ns=Object[_0x4c4685(0x1b0)],rs=(_0x594aac,_0x1d52c0,_0x3905df,_0x55aaf8)=>{const _0x545b74=_0x4c4685;for(var _0x3b0ef7=_0x55aaf8>0x1?void 0x0:_0x55aaf8?ns(_0x1d52c0,_0x3905df):_0x1d52c0,_0x4e877b=_0x594aac[_0x545b74(0x393)]-0x1,_0x58cb26;_0x4e877b>=0x0;_0x4e877b--)(_0x58cb26=_0x594aac[_0x4e877b])&&(_0x3b0ef7=_0x58cb26(_0x3b0ef7)||_0x3b0ef7);return _0x3b0ef7;},de=(_0x1ec492,_0x4634c2)=>(_0x3565c7,_0x22affe)=>_0x4634c2(_0x3565c7,_0x22affe,_0x1ec492);let pe=class extends a[_0x4c4685(0x25e)]{constructor(_0x36c9ef,_0x27a80c,_0x37e3fb){const _0x3af825=_0x4c4685;super(),_(this,'_cachedData',new Map()),_(this,_0x3af825(0x1d9),new Map()),_(this,'_disabled',!0x1),(this[_0x3af825(0x410)]=_0x36c9ef,this[_0x3af825(0x41a)]=_0x27a80c,this['_revisionService']=_0x37e3fb);}['disableLocalCache'](){const _0x5a9530=_0x4c4685;this[_0x5a9530(0x397)]=!0x0;}[_0x4c4685(0x373)](){this['_disabled']=!0x1;}get[_0x4c4685(0x188)](){const _0x51184a=_0x4c4685;return this[_0x51184a(0x1d9)];}[_0x4c4685(0x3d3)](){const _0x4202dd=_0x4c4685;this[_0x4202dd(0x1e5)]()[_0x4202dd(0x382)](()=>super[_0x4202dd(0x3d3)]());}async[_0x4c4685(0x379)](_0x43f3bb){const _0x50cd05=_0x4c4685;return this[_0x50cd05(0x397)]?null:this[_0x50cd05(0x41a)][_0x50cd05(0x2e9)](u[_0x50cd05(0x22f)](_0x43f3bb));}async[_0x4c4685(0x3bd)](_0x32c048,_0x586860){const _0x44fde9=_0x4c4685;return!!this[_0x44fde9(0x41a)]['setItem'](_0x32c048,_0x586860);}[_0x4c4685(0x372)](_0x1fcefe,_0x3d49ec,_0x4414e1,_0x3b3a32){const _0x32ac6e=_0x4c4685,_0x20804a=this[_0x32ac6e(0x2a3)][_0x32ac6e(0x26e)](_0x1fcefe);this['_cachedData'][_0x32ac6e(0x1d4)](_0x1fcefe,{'unitID':_0x1fcefe,'type':_0x3d49ec,'awaitingChangeset':_0x4414e1,'mutations':_0x3b3a32,'rev':_0x20804a}),this['_saveTaskMap'][_0x32ac6e(0x39b)](_0x1fcefe)||this[_0x32ac6e(0x409)](_0x1fcefe);}[_0x4c4685(0x409)](_0x2c0c39){const _0x5a89b8=_0x4c4685,_0xf0c260=this[_0x5a89b8(0x1aa)]();_0xf0c260===0x0?this['_saveCache'](_0x2c0c39):this[_0x5a89b8(0x1d9)][_0x5a89b8(0x1d4)](_0x2c0c39,setTimeout(()=>this['_saveCache'](_0x2c0c39),_0xf0c260));}['_getSaveTimeout'](){const _0x47f840=_0x4c4685;var _0x3e7b4c;return(_0x3e7b4c=this['_configService'][_0x47f840(0x184)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x3e7b4c:u['LOCAL_CACHE_INTERVAL'];}[_0x4c4685(0x2ce)](_0x124423){const _0x868585=_0x4c4685,_0x188980=this[_0x868585(0x1d9)]['get'](_0x124423);return _0x188980!==void 0x0&&window[_0x868585(0x20f)](_0x188980),this[_0x868585(0x41a)]['setItem'](u[_0x868585(0x22f)](_0x124423),this[_0x868585(0x367)]['get'](_0x124423))[_0x868585(0x382)](()=>this[_0x868585(0x1d9)][_0x868585(0x1be)](_0x124423));}async['exhaustSavingTask'](){const _0x4793c4=_0x4c4685,_0x1b3c51=[];this[_0x4793c4(0x1d9)][_0x4793c4(0x258)]((_0x45d30a,_0xae4c68)=>{const _0x1d6b6a=_0x4793c4;window[_0x1d6b6a(0x20f)](_0x45d30a),_0x1b3c51['push'](this[_0x1d6b6a(0x2ce)](_0xae4c68)[_0x1d6b6a(0x382)](()=>{const _0x580f13=_0x1d6b6a;this[_0x580f13(0x1d9)][_0x580f13(0x1be)](_0xae4c68);}));}),await Promise['all'](_0x1b3c51);}};pe=rs([de(0x0,a[_0x4c4685(0x1c6)]),de(0x1,a[_0x4c4685(0x32e)]),de(0x2,a[_0x4c4685(0x414)](g[_0x4c4685(0x2a1)]))],pe);class ke extends a['RxDisposable']{constructor(){const _0x577e48=_0x4c4685;super(),_(this,_0x577e48(0x30d)),this[_0x577e48(0x30d)]=I['fromEvent'](window,_0x577e48(0x34a))[_0x577e48(0x249)](I['takeUntil'](this[_0x577e48(0x374)]),I[_0x577e48(0x3f9)](0x1),I['mapTo'](void 0x0));}['setParam'](_0x4b7d35,_0x8d7936,_0x381267=!0x1){const _0x4f65b2=_0x4c4685,_0x423cfd=new URL(window[_0x4f65b2(0x3f7)][_0x4f65b2(0x1a7)]);_0x423cfd[_0x4f65b2(0x1fe)][_0x4f65b2(0x1d4)](_0x4b7d35,_0x8d7936),_0x381267?window[_0x4f65b2(0x189)][_0x4f65b2(0x243)]('','',_0x423cfd[_0x4f65b2(0x173)]()):window['history'][_0x4f65b2(0x3c8)]('','',_0x423cfd[_0x4f65b2(0x173)]());}['removeParam'](_0x3d4f64,_0x134029=!0x1){const _0x597ff5=_0x4c4685,_0x440cc2=new URL(window[_0x597ff5(0x3f7)]['href']);_0x440cc2[_0x597ff5(0x1fe)][_0x597ff5(0x1be)](_0x3d4f64),_0x134029?window['history'][_0x597ff5(0x243)]('','',_0x440cc2[_0x597ff5(0x173)]()):window['history'][_0x597ff5(0x3c8)]('','',_0x440cc2[_0x597ff5(0x173)]());}[_0x4c4685(0x42b)](_0x1e1136){const _0x19c6c9=_0x4c4685;var _0x4f84e0;return(_0x4f84e0=new URL(window['location'][_0x19c6c9(0x1a7)])[_0x19c6c9(0x1fe)][_0x19c6c9(0x418)](_0x1e1136))!=null?_0x4f84e0:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x4c4685(0x1b0)],cs=(_0x2a5d1f,_0x42fd8e,_0x4943db)=>_0x42fd8e in _0x2a5d1f?os(_0x2a5d1f,_0x42fd8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4943db}):_0x2a5d1f[_0x42fd8e]=_0x4943db,ls=(_0x286e42,_0x3f9d56,_0x39a43f,_0x381625)=>{const _0x33da02=_0x4c4685;for(var _0xb60e87=_0x381625>0x1?void 0x0:_0x381625?as(_0x3f9d56,_0x39a43f):_0x3f9d56,_0x37805d=_0x286e42[_0x33da02(0x393)]-0x1,_0x13534e;_0x37805d>=0x0;_0x37805d--)(_0x13534e=_0x286e42[_0x37805d])&&(_0xb60e87=_0x13534e(_0xb60e87)||_0xb60e87);return _0xb60e87;},Se=(_0x2ede0b,_0x396e47)=>(_0x3a5f57,_0x5bec7f)=>_0x396e47(_0x3a5f57,_0x5bec7f,_0x2ede0b),_s=(_0x3225a9,_0x3a995e,_0x1fd040)=>cs(_0x3225a9,_0x3a995e+'',_0x1fd040);const hs=_0x4c4685(0x172);exports[_0x4c4685(0x40e)]=class extends a['Plugin']{constructor(_0x20ad9a=Me,_0x3e5f8d,_0x3b8a62,_0x16493b){const _0x2f3174=_0x4c4685;super(),this[_0x2f3174(0x21e)]=_0x20ad9a,this[_0x2f3174(0x416)]=_0x3e5f8d,this[_0x2f3174(0x28a)]=_0x3b8a62,this['_configService']=_0x16493b;const {..._0x57801a}=a[_0x2f3174(0x2d3)]({},Me,this[_0x2f3174(0x21e)]);this[_0x2f3174(0x410)][_0x2f3174(0x350)](Yt,_0x57801a);}[_0x4c4685(0x39a)](){const _0x36ce3d=_0x4c4685;this[_0x36ce3d(0x37f)](),this[_0x36ce3d(0x2b0)]();}['onRendered'](){const _0xc003b3=_0x4c4685;this[_0xc003b3(0x2de)]();}[_0x4c4685(0x37f)](){const _0x29b859=_0x4c4685;var _0x518178;const _0x4a897e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x29b859(0x3b1)]}],[u[_0x29b859(0x2dc)],{'useClass':pe}],[exports[_0x29b859(0x340)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this['_config']['enableFrontendLog']&&_0x4a897e['push']([Q]),a[_0x29b859(0x26d)](this[_0x29b859(0x28a)],a[_0x29b859(0x237)](_0x4a897e,(_0x518178=this[_0x29b859(0x21e)])==null?void 0x0:_0x518178[_0x29b859(0x412)]));}['_registerRenderDependencies'](){const _0x1b8063=_0x4c4685;this[_0x1b8063(0x1c2)](this[_0x1b8063(0x416)][_0x1b8063(0x420)](a[_0x1b8063(0x323)]['UNIVER_DOC'],[Ee])),this[_0x1b8063(0x1c2)](this[_0x1b8063(0x416)][_0x1b8063(0x420)](a[_0x1b8063(0x323)][_0x1b8063(0x2a6)],[Ce]));}[_0x4c4685(0x2b0)](){const _0x1f78a0=_0x4c4685;a[_0x1f78a0(0x389)](this['_injector'],[[F],[exports[_0x1f78a0(0x340)]],[ie],[Z],[exports[_0x1f78a0(0x1ec)]],[ne]]),this['_config']['enableFrontendLog']&&a[_0x1f78a0(0x389)](this['_injector'],[[Q]]);}},_s(exports[_0x4c4685(0x40e)],_0x4c4685(0x1ae),hs),exports[_0x4c4685(0x40e)]=ls([a[_0x4c4685(0x2ec)](u[_0x4c4685(0x1bf)]),Se(0x1,C[_0x4c4685(0x32a)]),Se(0x2,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),Se(0x3,a[_0x4c4685(0x1c6)])],exports[_0x4c4685(0x40e)]);var us=Object[_0x4c4685(0x1b0)],Is=(_0x5787dd,_0x2d1f1a,_0x5c7bd2,_0x19b80a)=>{const _0x4c3e6c=_0x4c4685;for(var _0x1da02a=_0x19b80a>0x1?void 0x0:_0x19b80a?us(_0x2d1f1a,_0x5c7bd2):_0x2d1f1a,_0x1d1d3c=_0x5787dd[_0x4c3e6c(0x393)]-0x1,_0xae99ba;_0x1d1d3c>=0x0;_0x1d1d3c--)(_0xae99ba=_0x5787dd[_0x1d1d3c])&&(_0x1da02a=_0xae99ba(_0x1da02a)||_0x1da02a);return _0x1da02a;},W=(_0x473b0a,_0x498512)=>(_0x4075d3,_0x2ef55b)=>_0x498512(_0x4075d3,_0x2ef55b,_0x473b0a);exports[_0x4c4685(0x3d7)]=class extends u['CollaborationSocketService']{constructor(_0x3dfd0c,_0x31c4b1,_0x2c35fc,_0x4f9509,_0x32355f){super(_0x3dfd0c,_0x31c4b1,_0x2c35fc,_0x4f9509,_0x32355f);}async[_0x4c4685(0x2ef)](_0x35b542){const _0x25b000=_0x4c4685,_0x1b0270=await this[_0x25b000(0x25f)](),_0x501217=this[_0x25b000(0x245)](_0x35b542,_0x1b0270);return this[_0x25b000(0x185)](_0x501217);}[_0x4c4685(0x245)](_0x563783,_0x546699){const _0x29f942=_0x4c4685,_0x1cae02=typeof window>'u'?new URL(_0x563783):new URL(_0x563783,window['location'][_0x29f942(0x269)]);_0x1cae02[_0x29f942(0x1fe)][_0x29f942(0x1d4)](_0x29f942(0x197),_0x546699);const _0x162c2f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x29f942(0x3f7)]['search']);return _0x162c2f[_0x29f942(0x418)]('runId')&&_0x1cae02[_0x29f942(0x1fe)][_0x29f942(0x1d4)](_0x29f942(0x3fb),_0x162c2f[_0x29f942(0x418)](_0x29f942(0x3fb))),_0x1cae02[_0x29f942(0x173)]();}async[_0x4c4685(0x25f)](){const _0x48b537=_0x4c4685;var _0x216087,_0x5a93ec,_0x27af6a;const _0x144930=this[_0x48b537(0x410)][_0x48b537(0x184)](u[_0x48b537(0x3b0)]),_0x5069e3=(_0x216087=_0x144930==null?void 0x0:_0x144930[_0x48b537(0x307)])!=null?_0x216087:u[_0x48b537(0x421)];return(_0x27af6a=(_0x5a93ec=(await this[_0x48b537(0x378)][_0x48b537(0x418)](_0x5069e3,{'headers':{'Content-Type':_0x48b537(0x1cd)}}))['body'])==null?void 0x0:_0x5a93ec['ticket'])!=null?_0x27af6a:'';}},exports[_0x4c4685(0x3d7)]=Is([W(0x0,a[_0x4c4685(0x414)](a['Injector'])),W(0x1,a[_0x4c4685(0x414)](x['HTTPService'])),W(0x2,a[_0x4c4685(0x1c6)]),W(0x3,a[_0x4c4685(0x259)]),W(0x4,g['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);var ds=Object[_0x4c4685(0x1b0)],Ss=(_0x4ca050,_0x600c7e,_0x4eb890,_0x5bda1f)=>{for(var _0x252486=_0x5bda1f>0x1?void 0x0:_0x5bda1f?ds(_0x600c7e,_0x4eb890):_0x600c7e,_0x589710=_0x4ca050['length']-0x1,_0x31b892;_0x589710>=0x0;_0x589710--)(_0x31b892=_0x4ca050[_0x589710])&&(_0x252486=_0x31b892(_0x252486)||_0x252486);return _0x252486;},fe=(_0x10236b,_0xe76a13)=>(_0xa5e19a,_0x30e39d)=>_0xe76a13(_0xa5e19a,_0x30e39d,_0x10236b);exports[_0x4c4685(0x2bd)]=class extends a['Disposable']{constructor(_0x44aee5,_0x40d448,_0x254842){const _0x2eff4b=_0x4c4685;super(),this[_0x2eff4b(0x250)]=_0x44aee5,this['_httpService']=_0x40d448,this[_0x2eff4b(0x410)]=_0x254842;}async[_0x4c4685(0x2f5)](_0x1ffe67,_0x58943d,_0x201270,..._0x218439){const _0x3dc466=_0x4c4685;var _0x51a21c,_0xef59f9,_0x2deba0,_0x27224a;const _0x5e9cea=this[_0x3dc466(0x250)][_0x3dc466(0x2e6)]();if(!_0x5e9cea)throw new Error(_0x3dc466(0x252));const _0x17593f=((_0x51a21c=this[_0x3dc466(0x410)][_0x3dc466(0x184)](u[_0x3dc466(0x2d4)]))!=null?_0x51a21c:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1ffe67+'/run/'+_0x58943d,_0x454303=new URL(window['location']['href']),_0x24fe35={'scriptId':_0x1ffe67,'runId':(_0xef59f9=_0x454303[_0x3dc466(0x1fe)][_0x3dc466(0x418)]('runId'))!=null?_0xef59f9:'','function':_0x58943d,'unitId':_0x5e9cea[_0x3dc466(0x1ca)](),'argsOfFunction':JSON['stringify'](_0x218439),'invokeId':(_0x2deba0=_0x201270[_0x3dc466(0x3e5)])!=null?_0x2deba0:'','executionId':(_0x27224a=_0x201270[_0x3dc466(0x1e9)])!=null?_0x27224a:''};try{const _0x6415b5=await this['_httpService'][_0x3dc466(0x300)](_0x17593f,{'body':_0x24fe35});return _0x6415b5[_0x3dc466(0x42a)][_0x3dc466(0x2c2)]&&_0x6415b5[_0x3dc466(0x42a)][_0x3dc466(0x2c2)][_0x3dc466(0x31e)]!==G['OK']?_0x3dc466(0x196):_0x6415b5[_0x3dc466(0x42a)][_0x3dc466(0x3ef)];}catch{return _0x3dc466(0x196);}}},exports[_0x4c4685(0x2bd)]=Ss([fe(0x0,a['IUniverInstanceService']),fe(0x1,a[_0x4c4685(0x414)](x[_0x4c4685(0x210)])),fe(0x2,a[_0x4c4685(0x1c6)])],exports[_0x4c4685(0x2bd)]);const we=0x7530,ye=_0x4c4685(0x3ba);class fs extends a[_0x4c4685(0x25e)]{constructor(){const _0x59b96f=_0x4c4685;super(),_(this,'_id',a[_0x59b96f(0x331)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x59b96f(0x35a),new Map()),_(this,_0x59b96f(0x1bc),null),_(this,_0x59b96f(0x353),new Map()),_(this,_0x59b96f(0x2fa),new Map()),this['_init']();}[_0x4c4685(0x3d3)](){const _0x1c9fdb=_0x4c4685;super['dispose'](),this[_0x1c9fdb(0x353)]['forEach']((_0x43dae4,_0x46cff5)=>this[_0x1c9fdb(0x1a2)](_0x46cff5)),this[_0x1c9fdb(0x1bc)]&&window['clearInterval'](this[_0x1c9fdb(0x1bc)]);}[_0x4c4685(0x290)](_0x4c32f9){const _0x299410=_0x4c4685;return this['_ensureSubject'](_0x4c32f9)[_0x299410(0x249)](I['distinctUntilChanged']());}[_0x4c4685(0x271)](_0x120bcb){const _0xc26a50=_0x4c4685;this['_selfUnitIDs']['size']===0x0&&this[_0xc26a50(0x371)](),this[_0xc26a50(0x419)]['add'](_0x120bcb),this[_0xc26a50(0x3b7)]({'type':0x0,'memberID':this[_0xc26a50(0x31b)],'unitIDs':[_0x120bcb],'isForwarded':!0x1});}[_0x4c4685(0x325)](_0x18ca02){const _0x2b82c2=_0x4c4685;this[_0x2b82c2(0x419)][_0x2b82c2(0x1be)](_0x18ca02),this[_0x2b82c2(0x419)][_0x2b82c2(0x201)]===0x0&&this[_0x2b82c2(0x1bc)]&&window['clearInterval'](this[_0x2b82c2(0x1bc)]);}['_init'](){const _0x21c9c6=_0x4c4685;this[_0x21c9c6(0x1c2)](a[_0x21c9c6(0x356)](I['fromEvent'](window,_0x21c9c6(0x205))[_0x21c9c6(0x2e5)](_0x24b647=>{const _0x357254=_0x21c9c6;if(_0x24b647['key']!==ye||!_0x24b647[_0x357254(0x285)])return;const _0x5a4420=JSON['parse'](_0x24b647[_0x357254(0x285)]);this[_0x357254(0x2e2)](_0x5a4420);}))),window[_0x21c9c6(0x24c)](_0x21c9c6(0x232),()=>this[_0x21c9c6(0x3b7)]({'type':0x1,'memberID':this[_0x21c9c6(0x31b)],'unitIDs':Array[_0x21c9c6(0x2f2)](this['_selfUnitIDs'])}));}[_0x4c4685(0x2e2)](_0x42c1cc){const _0x31a736=_0x4c4685;switch(_0x42c1cc[_0x31a736(0x180)]){case 0x0:this[_0x31a736(0x308)](_0x42c1cc);break;case 0x1:this['_handleLeaveEvent'](_0x42c1cc);break;case 0x2:this[_0x31a736(0x193)](_0x42c1cc);break;}}[_0x4c4685(0x308)](_0x5b52f7){const _0x4e36c7=_0x4c4685,{unitIDs:_0x2b9155,memberID:_0x354e7b,isForwarded:_0x3e5fae}=_0x5b52f7;_0x2b9155[_0x4e36c7(0x258)](_0x56d129=>{const _0x2c2235=_0x4e36c7;if(!_0x3e5fae&&this[_0x2c2235(0x35a)][_0x2c2235(0x39b)](_0x56d129)&&this[_0x2c2235(0x357)](_0x56d129)[_0x2c2235(0x215)](u[_0x2c2235(0x295)][_0x2c2235(0x233)]),!this[_0x2c2235(0x35a)][_0x2c2235(0x39b)](_0x56d129)||!this['_unitOnClients'][_0x2c2235(0x418)](_0x56d129)[_0x2c2235(0x39b)](_0x354e7b)){const _0x5472b7=this[_0x2c2235(0x35a)]['get'](_0x56d129)||new Set();_0x5472b7[_0x2c2235(0x1c9)](_0x354e7b),this[_0x2c2235(0x35a)][_0x2c2235(0x1d4)](_0x56d129,_0x5472b7),this[_0x2c2235(0x1e8)](_0x354e7b);}}),_0x3e5fae||this[_0x4e36c7(0x3b7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4c4685(0x1e8)](_0x318ca1){const _0x1f997b=_0x4c4685;this[_0x1f997b(0x1a2)](_0x318ca1);const _0x150e83=window[_0x1f997b(0x2fe)](()=>{const _0x2eeb56=_0x1f997b;this[_0x2eeb56(0x35a)][_0x2eeb56(0x258)](_0x204777=>{_0x204777['delete'](_0x318ca1);});},we*0x2);this[_0x1f997b(0x353)][_0x1f997b(0x1d4)](_0x318ca1,_0x150e83);}[_0x4c4685(0x1a2)](_0x259210){const _0x410923=_0x4c4685;if(this[_0x410923(0x353)][_0x410923(0x39b)](_0x259210)){const _0x52f4d0=this[_0x410923(0x353)][_0x410923(0x418)](_0x259210);_0x52f4d0&&window['clearTimeout'](_0x52f4d0),this[_0x410923(0x353)][_0x410923(0x1d4)](_0x259210,null);}}['_handleLeaveEvent'](_0x437d38){const _0x4cd720=_0x4c4685,{memberID:_0x4e68c3,unitIDs:_0x39cf1f}=_0x437d38;_0x39cf1f[_0x4cd720(0x258)](_0xe7cbca=>{const _0x1342ff=_0x4cd720;var _0x3d2f16;const _0x175af3=this['_unitOnClients']['get'](_0xe7cbca);_0x175af3&&(_0x175af3[_0x1342ff(0x1be)](_0x4e68c3),(_0x3d2f16=this['_ensureSubject'](_0xe7cbca))==null||_0x3d2f16[_0x1342ff(0x215)](_0x175af3['size']===0x0?u['UnitStatus'][_0x1342ff(0x18f)]:u[_0x1342ff(0x295)][_0x1342ff(0x233)]));}),this[_0x4cd720(0x1a2)](_0x4e68c3);}['_handleHeartbeatEvent'](_0x233f87){this['_scheduleClearOtherTimer'](_0x233f87['memberID']);}[_0x4c4685(0x3b7)](_0x4e3c25){const _0x5a945d=_0x4c4685;localStorage[_0x5a945d(0x1c4)](ye,JSON['stringify'](_0x4e3c25));}[_0x4c4685(0x371)](){const _0xfe4f1a=_0x4c4685;this[_0xfe4f1a(0x1bc)]=window['setInterval'](()=>{const _0x537f21=_0xfe4f1a;this[_0x537f21(0x3b7)]({'type':0x2,'memberID':this[_0x537f21(0x31b)]});},we);}[_0x4c4685(0x357)](_0x3bfe58){const _0xa709c1=_0x4c4685;return this[_0xa709c1(0x2fa)][_0xa709c1(0x39b)](_0x3bfe58)||this[_0xa709c1(0x2fa)][_0xa709c1(0x1d4)](_0x3bfe58,new I[(_0xa709c1(0x37d))](u[_0xa709c1(0x295)][_0xa709c1(0x18f)])),this[_0xa709c1(0x2fa)]['get'](_0x3bfe58);}}exports[_0x4c4685(0x358)]=Oe,exports[_0x4c4685(0x273)]=je,exports[_0x4c4685(0x21a)]=fs,exports[_0x4c4685(0x1c5)]=ke;