@univerjs-pro/collaboration-client-ui 0.16.0 → 0.16.1

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 (57) 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/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/umd/facade.js +1 -1
  44. package/lib/umd/index.js +1 -1
  45. package/lib/umd/locale/ca-ES.js +1 -1
  46. package/lib/umd/locale/en-US.js +1 -1
  47. package/lib/umd/locale/es-ES.js +1 -1
  48. package/lib/umd/locale/fa-IR.js +1 -1
  49. package/lib/umd/locale/fr-FR.js +1 -1
  50. package/lib/umd/locale/ja-JP.js +1 -1
  51. package/lib/umd/locale/ko-KR.js +1 -1
  52. package/lib/umd/locale/ru-RU.js +1 -1
  53. package/lib/umd/locale/sk-SK.js +1 -1
  54. package/lib/umd/locale/vi-VN.js +1 -1
  55. package/lib/umd/locale/zh-CN.js +1 -1
  56. package/lib/umd/locale/zh-TW.js +1 -1
  57. package/package.json +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x515691=_0x5d58;(function(_0x5d4240,_0x4a5955){const _0x38dccf=_0x5d58,_0x4fea9f=_0x5d4240();while(!![]){try{const _0xfa78e0=-parseInt(_0x38dccf(0x13c))/0x1*(parseInt(_0x38dccf(0x24b))/0x2)+-parseInt(_0x38dccf(0x288))/0x3+parseInt(_0x38dccf(0x1e1))/0x4+parseInt(_0x38dccf(0x386))/0x5+parseInt(_0x38dccf(0x1e5))/0x6+-parseInt(_0x38dccf(0x123))/0x7+parseInt(_0x38dccf(0x13e))/0x8*(parseInt(_0x38dccf(0x114))/0x9);if(_0xfa78e0===_0x4a5955)break;else _0x4fea9f['push'](_0x4fea9f['shift']());}catch(_0x42d307){_0x4fea9f['push'](_0x4fea9f['shift']());}}}(_0xc800,0x1ba70));var Xe=Object['defineProperty'],Ke=(_0x4eabee,_0xec94c1,_0x26b9b8)=>_0xec94c1 in _0x4eabee?Xe(_0x4eabee,_0xec94c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26b9b8}):_0x4eabee[_0xec94c1]=_0x26b9b8,_=(_0x2d10b2,_0x59bbec,_0x4b272d)=>Ke(_0x2d10b2,typeof _0x59bbec!=_0x515691(0x296)?_0x59bbec+'':_0x59bbec,_0x4b272d);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x515691(0x1fa)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),T=require('@univerjs/engine-render'),x=require('@univerjs/network'),C=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x52a61e,..._0x4a1164}){const _0x160b83=_0x515691,{icon:_0x12df26,id:_0x316f44,className:_0x588902,extend:_0x5cc7b4,..._0x305a44}=_0x4a1164,_0x4ec0b6=(_0x160b83(0x117)+_0x316f44+'\x20'+(_0x588902||''))[_0x160b83(0x262)](),_0xa8bdb1=A[_0x160b83(0x14b)]('_'+Qe());return $e(_0x12df26,''+_0x316f44,{'defIds':_0x12df26[_0x160b83(0x19e)],'idSuffix':_0xa8bdb1['current']},{'ref':_0x52a61e,'className':_0x4ec0b6,..._0x305a44},_0x5cc7b4);}function $e(_0x1349de,_0x31dda0,_0xd02c84,_0x18251b,_0x456a97){const _0x23fd60=_0x515691;return A[_0x23fd60(0x305)](_0x1349de[_0x23fd60(0x385)],{'key':_0x31dda0,...Je(_0x1349de,_0xd02c84,_0x456a97),..._0x18251b},(Ze(_0x1349de,_0xd02c84)[_0x23fd60(0x2b3)]||[])[_0x23fd60(0x112)]((_0x170e2c,_0x364711)=>$e(_0x170e2c,_0x31dda0+'-'+_0x1349de['tag']+'-'+_0x364711,_0xd02c84,void 0x0,_0x456a97)));}function Je(_0x2fa9eb,_0x3484e5,_0x378bcb){const _0x52ff89=_0x515691,_0x472732={..._0x2fa9eb[_0x52ff89(0x115)]};_0x378bcb!=null&&_0x378bcb[_0x52ff89(0x1b9)]&&_0x472732[_0x52ff89(0x248)]===_0x52ff89(0x1b9)&&(_0x472732[_0x52ff89(0x248)]=_0x378bcb['colorChannel1']),_0x2fa9eb['tag']===_0x52ff89(0xda)&&_0x472732['id']&&(_0x472732['id']=_0x472732['id']+_0x3484e5['idSuffix']),Object[_0x52ff89(0xfa)](_0x472732)[_0x52ff89(0x1dc)](([_0x28c0ec,_0x41c896])=>{const _0x10e836=_0x52ff89;_0x28c0ec==='mask'&&typeof _0x41c896==_0x10e836(0xc0)&&(_0x472732[_0x28c0ec]=_0x41c896['replace'](/url\(#(.*)\)/,_0x10e836(0x1f7)+_0x3484e5[_0x10e836(0x34d)]+')'));});const {defIds:_0x442a87}=_0x3484e5;return!_0x442a87||_0x442a87[_0x52ff89(0x189)]===0x0||(_0x2fa9eb['tag']===_0x52ff89(0x18b)&&_0x472732[_0x52ff89(0x19c)]&&(_0x472732[_0x52ff89(0x19c)]=_0x472732[_0x52ff89(0x19c)]+_0x3484e5[_0x52ff89(0x34d)]),Object['entries'](_0x472732)['forEach'](([_0x2c74ae,_0x5665c9])=>{const _0x384120=_0x52ff89;typeof _0x5665c9==_0x384120(0xc0)&&(_0x472732[_0x2c74ae]=_0x5665c9[_0x384120(0x253)](/url\(#(.*)\)/,_0x384120(0x1f7)+_0x3484e5[_0x384120(0x34d)]+')'));})),_0x472732;}function Ze(_0x1202b5,_0x1f1764){const _0x19b70f=_0x515691;var _0x2351dc;const {defIds:_0x403591}=_0x1f1764;return!_0x403591||_0x403591[_0x19b70f(0x189)]===0x0?_0x1202b5:_0x1202b5[_0x19b70f(0x385)]===_0x19b70f(0x2ff)&&((_0x2351dc=_0x1202b5['children'])!=null&&_0x2351dc[_0x19b70f(0x189)])?{..._0x1202b5,'children':_0x1202b5['children'][_0x19b70f(0x112)](_0x5680c5=>typeof _0x5680c5[_0x19b70f(0x115)]['id']=='string'&&_0x403591&&_0x403591[_0x19b70f(0x10b)](_0x5680c5[_0x19b70f(0x115)]['id'])?{..._0x5680c5,'attrs':{..._0x5680c5['attrs'],'id':_0x5680c5[_0x19b70f(0x115)]['id']+_0x1f1764[_0x19b70f(0x34d)]}}:_0x5680c5)}:_0x1202b5;}function Qe(){const _0x481975=_0x515691;return Math[_0x481975(0x1e4)]()[_0x481975(0x28f)](0x24)[_0x481975(0x2b1)](0x2,0x8);}pe['displayName']=_0x515691(0x171);const et={'tag':_0x515691(0x2b8),'attrs':{'xmlns':_0x515691(0x15f),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x515691(0x20a),'height':_0x515691(0x20a)},'children':[{'tag':'g','attrs':{'clipPath':_0x515691(0x222)},'children':[{'tag':'path','attrs':{'stroke':_0x515691(0x303),'d':_0x515691(0x34a),'strokeLinecap':_0x515691(0xfd),'strokeLinejoin':_0x515691(0xfd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x515691(0x1a3),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x515691(0xc7),'d':_0x515691(0x2f9)}}]}]}],'defIds':[_0x515691(0x144)]},xe=A['forwardRef'](function(_0x21b65e,_0x45a798){const _0xc0797a=_0x515691;return A[_0xc0797a(0x305)](pe,Object['assign']({},_0x21b65e,{'id':_0xc0797a(0x187),'ref':_0x45a798,'icon':et}));});xe['displayName']=_0x515691(0xc9);const tt={'tag':'svg','attrs':{'xmlns':_0x515691(0x15f),'fill':_0x515691(0x1ee),'viewBox':_0x515691(0xd4),'width':'1em','height':_0x515691(0x20a)},'children':[{'tag':'g','attrs':{'clipPath':_0x515691(0xfe)},'children':[{'tag':_0x515691(0x131),'attrs':{'stroke':'currentColor','d':_0x515691(0x22d),'strokeLinecap':_0x515691(0xfd),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x515691(0x2ff),'attrs':{},'children':[{'tag':_0x515691(0x1a3),'attrs':{'id':_0x515691(0x2db)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x515691(0x2f9),'transform':_0x515691(0x202)}}]}]}],'defIds':[_0x515691(0x2db)]},Be=A['forwardRef'](function(_0x55352f,_0x260677){const _0x3cc397=_0x515691;return A[_0x3cc397(0x305)](pe,Object[_0x3cc397(0x329)]({},_0x55352f,{'id':_0x3cc397(0x34c),'ref':_0x260677,'icon':tt}));});Be['displayName']='OnLineIcon';function it(_0x2c7e5f){const _0x110e0e=_0x515691;switch(_0x2c7e5f){case u[_0x110e0e(0x1d9)][_0x110e0e(0x25b)]:return'collabStatus.offline';case u[_0x110e0e(0x1d9)]['CONFLICT']:return _0x110e0e(0x142);case u['CollaborationStatus'][_0x110e0e(0x16f)]:return _0x110e0e(0x2e9);case u[_0x110e0e(0x1d9)]['NOT_COLLAB']:return _0x110e0e(0x226);case u['CollaborationStatus'][_0x110e0e(0x2c3)]:case u['CollaborationStatus'][_0x110e0e(0x1e2)]:return'collabStatus.syncing';case u[_0x110e0e(0x1d9)]['SYNCED']:case u[_0x110e0e(0x1d9)][_0x110e0e(0x2ad)]:return _0x110e0e(0x1dd);}}function st(_0x211c95){const _0xc087cd=_0x515691,{status$:_0x108ae9}=_0x211c95,_0x3ef701=O[_0xc087cd(0x129)](_0x108ae9,u[_0xc087cd(0x1d9)][_0xc087cd(0x2ab)]),_0x2680cc=O[_0xc087cd(0x1f0)](a['LocaleService']),_0x348d38=O[_0xc087cd(0x1f0)](u['CollaborationSessionService']),_0x2c0ebd=_0x3ef701!==u[_0xc087cd(0x1d9)][_0xc087cd(0x25b)],_0x4542bc=_0x2680cc['t'](it(_0x3ef701)),_0x13ee64=_0x2c0ebd?M[_0xc087cd(0xc1)](Be,{}):M[_0xc087cd(0xc1)](xe,{}),_0x42d659=A['useCallback'](()=>{const _0x4604b3=_0xc087cd;_0x2c0ebd||_0x348d38[_0x4604b3(0x13a)]();},[_0x2c0ebd,_0x348d38]);function _0x45911f(){const _0x12a2f6=_0xc087cd;return M['jsxs'](_0x12a2f6(0x390),{'className':_0x12a2f6(0x38d),'onClick':_0x42d659,'children':[M[_0x12a2f6(0xc1)](_0x12a2f6(0x390),{'className':p[_0x12a2f6(0x36c)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2c0ebd,'univer-text-red-500':!_0x2c0ebd}),'children':_0x13ee64}),M['jsx'](_0x12a2f6(0x390),{'className':_0x12a2f6(0xd3),'children':_0x4542bc})]});}return _0x2c0ebd?_0x45911f():M[_0xc087cd(0xc1)](p['Tooltip'],{'title':_0x2680cc['t'](_0xc087cd(0x27c)),'children':_0x45911f()});}var nt=Object[_0x515691(0x2a9)],rt=(_0x3521f3,_0x2f1c20,_0x1773f0,_0x27900a)=>{for(var _0x217a83=_0x27900a>0x1?void 0x0:_0x27900a?nt(_0x2f1c20,_0x1773f0):_0x2f1c20,_0x390830=_0x3521f3['length']-0x1,_0x16139a;_0x390830>=0x0;_0x390830--)(_0x16139a=_0x3521f3[_0x390830])&&(_0x217a83=_0x16139a(_0x217a83)||_0x217a83);return _0x217a83;},K=(_0xfdc654,_0x4208dd)=>(_0x463db8,_0x55035e)=>_0x4208dd(_0x463db8,_0x55035e,_0xfdc654);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x515691(0x29e)]{constructor(_0x2ad453,_0x1755d9,_0x1efd9c,_0x2ad6dd){const _0x3c1f51=_0x515691;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x3c1f51(0x1d9)][_0x3c1f51(0x2ab)])),(this[_0x3c1f51(0x28d)]=_0x2ad453,this[_0x3c1f51(0xc4)]=_0x1755d9,this[_0x3c1f51(0x101)]=_0x1efd9c,this[_0x3c1f51(0x352)]=_0x2ad6dd,this[_0x3c1f51(0x190)](),this[_0x3c1f51(0x1f8)]());}[_0x515691(0x1f8)](){const _0x4e984f=_0x515691;this[_0x4e984f(0x204)](this[_0x4e984f(0x28d)]['focused$']['pipe'](I[_0x4e984f(0x235)](()=>{const _0x4b5f54=_0x4e984f,_0x58e4e7=this[_0x4b5f54(0x28d)][_0x4b5f54(0x1bd)]();return _0x58e4e7?this[_0x4b5f54(0x101)]['getCollabEntity$'](_0x58e4e7[_0x4b5f54(0x182)]()):I['of'](null);}),I[_0x4e984f(0x235)](_0x3761d8=>_0x3761d8?_0x3761d8[_0x4e984f(0x398)]:I['of'](u[_0x4e984f(0x1d9)][_0x4e984f(0x2ab)])))[_0x4e984f(0xe4)](_0x4c4b53=>{this['_status$']['next'](_0x4c4b53);}));}[_0x515691(0x190)](){const _0x32b4dd=_0x515691;this['disposeWithMe'](this[_0x32b4dd(0x352)][_0x32b4dd(0x22f)](O[_0x32b4dd(0x1f4)][_0x32b4dd(0x1aa)],()=>O['connectInjector'](ot({'status$':this[_0x32b4dd(0x108)]['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x515691(0x2ae)]),K(0x1,a[_0x515691(0xf3)](a['Injector'])),K(0x2,a[_0x515691(0xf3)](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x1b5f9b){const {status$:_0x8eb894}=_0x1b5f9b;return function(){const _0x226765=_0x5d58;return M[_0x226765(0xc1)](st,{'status$':_0x8eb894});};}const Oe=a['createIdentifier'](_0x515691(0x1b6));var at=Object[_0x515691(0x2a9)],ct=(_0x4f26e3,_0x104a10,_0x21ac10,_0x2074a6)=>{const _0x152a84=_0x515691;for(var _0x2f7dad=_0x2074a6>0x1?void 0x0:_0x2074a6?at(_0x104a10,_0x21ac10):_0x104a10,_0x4cbded=_0x4f26e3[_0x152a84(0x189)]-0x1,_0x3475f2;_0x4cbded>=0x0;_0x4cbded--)(_0x3475f2=_0x4f26e3[_0x4cbded])&&(_0x2f7dad=_0x3475f2(_0x2f7dad)||_0x2f7dad);return _0x2f7dad;},Y=(_0x50dc0f,_0x2ec99d)=>(_0x476500,_0x34b557)=>_0x2ec99d(_0x476500,_0x34b557,_0x50dc0f);exports[_0x515691(0x371)]=class extends a[_0x515691(0x306)]{constructor(_0x45b93f,_0x5dc087,_0x26ab02,_0x3fda71,_0x35eb04){const _0x10b96c=_0x515691;super(),this[_0x10b96c(0xbe)]=_0x45b93f,this['_logService']=_0x5dc087,this[_0x10b96c(0x397)]=_0x26ab02,this[_0x10b96c(0x258)]=_0x3fda71,_0x35eb04?_0x35eb04==null||_0x35eb04[_0x10b96c(0x357)]()[_0x10b96c(0x25f)](()=>this[_0x10b96c(0x2bd)]()):(this['_logService'][_0x10b96c(0x286)](_0x10b96c(0x145),_0x10b96c(0x1c2)),this[_0x10b96c(0x2bd)]());}async[_0x515691(0x2bd)](){const _0xa67263=_0x515691,_0x14871c=this[_0xa67263(0xbe)][_0xa67263(0x2e5)](_0xa67263(0x156)),_0x3b598f=this[_0xa67263(0xbe)][_0xa67263(0x2e5)](_0xa67263(0x37d)),_0x934244=this['_urlService'][_0xa67263(0x2e5)](_0xa67263(0xba));if(!_0x14871c||!_0x3b598f){this[_0xa67263(0x172)][_0xa67263(0x286)]('[CollaborationDataLoaderController]',_0xa67263(0x2b7));return;}const _0x32601b=await this['_dataLoaderService'][_0xa67263(0x191)](_0x14871c,Number(_0x3b598f),_0x934244);_0x32601b&&_0x32601b instanceof a[_0xa67263(0x268)]&&this[_0xa67263(0x141)](_0x32601b);}async['_setupSubUnitSync'](_0x1dfcae){const _0x256b53=_0x515691;await this['_updateSubUnitFromURLParams'](_0x1dfcae),_0x1dfcae['activeSheet$'][_0x256b53(0x228)](I[_0x256b53(0x246)](this[_0x256b53(0x281)]))[_0x256b53(0xe4)](_0x4c23cc=>{const _0xf7922d=_0x256b53;_0x4c23cc&&this[_0xf7922d(0xfc)](_0x4c23cc);}),this[_0x256b53(0xbe)]['urlChange$'][_0x256b53(0x228)](I[_0x256b53(0x246)](this[_0x256b53(0x281)]))['subscribe'](()=>this[_0x256b53(0x2c1)](_0x1dfcae));}[_0x515691(0xfc)](_0x1feaa7,_0x209c27=!0x1){const _0x313555=_0x515691,_0x4e3fde=this[_0x313555(0xbe)][_0x313555(0x2e5)](_0x313555(0xba));_0x1feaa7[_0x313555(0x198)]()!==_0x4e3fde&&this[_0x313555(0xbe)][_0x313555(0x260)](_0x313555(0xba),_0x1feaa7[_0x313555(0x198)](),_0x209c27);}async['_updateSubUnitFromURLParams'](_0x28cee6){const _0x55f289=_0x515691;var _0x2f6396;const _0x450cb8=this[_0x55f289(0xbe)][_0x55f289(0x2e5)]('subunit');if(!_0x450cb8||!_0x28cee6['getSheetBySheetId'](_0x450cb8)){const _0x153842=_0x28cee6[_0x55f289(0x1e7)]()[0x0],_0x119f3c=_0x28cee6[_0x55f289(0x24e)](_0x153842);if(!_0x119f3c)return;this[_0x55f289(0xfc)](_0x119f3c,!0x0),await this[_0x55f289(0x397)][_0x55f289(0x2c0)](g[_0x55f289(0x266)]['id'],{'unitId':_0x28cee6['getUnitId'](),'subUnitId':_0x153842});return;}((_0x2f6396=_0x28cee6[_0x55f289(0xdc)]())==null?void 0x0:_0x2f6396[_0x55f289(0x198)]())!==_0x450cb8&&await this[_0x55f289(0x397)][_0x55f289(0x2c0)](g[_0x55f289(0x266)]['id'],{'unitId':_0x28cee6['getUnitId'](),'subUnitId':_0x450cb8});}},exports[_0x515691(0x371)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x515691(0x347)]),Y(0x3,a[_0x515691(0xf3)](u[_0x515691(0xbc)])),Y(0x4,a['Optional'](qe[_0x515691(0x14f)]))],exports['CollaborationDataLoaderController']);var lt=Object[_0x515691(0x2a9)],_t=(_0x13ffca,_0x2d611b,_0x7941f4,_0x277db7)=>{const _0x5a73dc=_0x515691;for(var _0x3bf22a=_0x277db7>0x1?void 0x0:_0x277db7?lt(_0x2d611b,_0x7941f4):_0x2d611b,_0xfd4af9=_0x13ffca[_0x5a73dc(0x189)]-0x1,_0x1d56de;_0xfd4af9>=0x0;_0xfd4af9--)(_0x1d56de=_0x13ffca[_0xfd4af9])&&(_0x3bf22a=_0x1d56de(_0x3bf22a)||_0x3bf22a);return _0x3bf22a;},De=(_0x2a2f13,_0x4383c1)=>(_0x2ef0b9,_0x3ccb81)=>_0x4383c1(_0x2ef0b9,_0x3ccb81,_0x2a2f13);let me=class extends a[_0x515691(0x306)]{constructor(_0x1a8007,_0x53ec2c){const _0x397859=_0x515691;super(),this[_0x397859(0x38b)]=_0x1a8007,this[_0x397859(0x1c9)]=_0x53ec2c,this[_0x397859(0x2bd)]();}[_0x515691(0x2bd)](){const _0x568042=_0x515691,_0x2f2a94=this;this[_0x568042(0x204)](this[_0x568042(0x38b)][_0x568042(0x316)]({'onBeforePasteImage':async _0x356a8c=>{const _0x8caebb=_0x568042,_0x5004e4=await _0x2f2a94[_0x8caebb(0x1c9)][_0x8caebb(0x146)](_0x356a8c);return _0x5004e4?{'source':_0x5004e4[_0x8caebb(0x20d)],'imageSourceType':_0x5004e4['imageSourceType']}:null;}}));}};me=_t([De(0x0,C[_0x515691(0xf9)]),De(0x1,ze[_0x515691(0x349)])],me);const Ne=['purple.300','jiqing.500','green.600',_0x515691(0x16c),_0x515691(0x27d),_0x515691(0x224)];class be extends a[_0x515691(0x29e)]{constructor(){const _0x1d5153=_0x515691;super(...arguments),_(this,_0x1d5153(0x18a),new Map()),_(this,_0x1d5153(0xde),0x0);}[_0x515691(0x38c)](_0x1587af){const _0x56b531=_0x515691;if(this[_0x56b531(0x18a)][_0x56b531(0x2ba)](_0x1587af))return this[_0x56b531(0x18a)][_0x56b531(0x1be)](_0x1587af);const _0x3bf2f5=Ne[this[_0x56b531(0xde)]];return this[_0x56b531(0xde)]=(this[_0x56b531(0xde)]+0x1)%Ne[_0x56b531(0x189)],this[_0x56b531(0x18a)]['set'](_0x1587af,_0x3bf2f5),_0x3bf2f5;}}function ke(_0x38c3f6){const _0x5decac=_0x515691;let _0x1ee0a1='';for(const _0x444060 of _0x38c3f6){const {startOffset:_0x52c897,endOffset:_0x4dc308,isActive:_0x582e4f,rangeType:_0x531eb5,segmentId:_0x42ac97,segmentPage:_0x123f8a}=_0x444060;_0x1ee0a1[_0x5decac(0x189)]&&(_0x1ee0a1+=','),_0x1ee0a1+=_0x52c897+':'+_0x4dc308+':'+(_0x582e4f?'1':'0')+':'+_0x531eb5+':'+_0x42ac97+':'+_0x123f8a;}return _0x1ee0a1;}function ht(_0xd38e46){const _0x597a77=_0x515691,_0x25d995=_0xd38e46['split'](','),_0x49e695=[];for(const _0x336e6e of _0x25d995){const [_0x58dbc3,_0x142714,_0x41531d,_0x40aef4,_0x3d4c44,_0x4661bb]=_0x336e6e[_0x597a77(0x1c4)](':');_0x49e695['push']({'startOffset':Number(_0x58dbc3),'endOffset':Number(_0x142714),'collapsed':_0x58dbc3===_0x142714,'isActive':_0x41531d==='1','rangeType':_0x40aef4===a['DOC_RANGE_TYPE'][_0x597a77(0x225)]?a[_0x597a77(0x275)][_0x597a77(0x225)]:a[_0x597a77(0x275)][_0x597a77(0x177)],'segmentId':typeof _0x3d4c44=='string'?String(_0x3d4c44):'','segmentPage':Number(_0x4661bb!=null?_0x4661bb:-0x1)});}return _0x49e695[_0x597a77(0x15b)](_0x2bade4=>_0x2bade4[_0x597a77(0x334)])||(_0x49e695[0x0]['isActive']=!0x0),_0x49e695;}class Re extends a['RxDisposable']{constructor(){const _0x2fae39=_0x515691;super(...arguments),_(this,'_collabCursorState$',new I[(_0x2fae39(0x17c))](null)),_(this,_0x2fae39(0x233),this[_0x2fae39(0x392)][_0x2fae39(0x16d)]());}[_0x515691(0x119)](_0x11b04d){const _0x72ac85=_0x515691,{unitID:_0x2a7cd1,memberID:_0x112202,textRanges:_0x2dfb12}=_0x11b04d,_0x57d8cf=ke(_0x2dfb12);if(_0x57d8cf==='')return;const _0x1faf7c={'unitID':_0x2a7cd1,'memberID':_0x112202,'selection':_0x57d8cf};this[_0x72ac85(0x392)][_0x72ac85(0x361)](_0x1faf7c);}}var ut=Object[_0x515691(0x2a9)],It=(_0x151964,_0x38e209,_0x1725ac,_0x2af14a)=>{const _0x46f231=_0x515691;for(var _0x57de7d=_0x2af14a>0x1?void 0x0:_0x2af14a?ut(_0x38e209,_0x1725ac):_0x38e209,_0x286c0c=_0x151964[_0x46f231(0x189)]-0x1,_0x28d5ed;_0x286c0c>=0x0;_0x286c0c--)(_0x28d5ed=_0x151964[_0x286c0c])&&(_0x57de7d=_0x28d5ed(_0x57de7d)||_0x57de7d);return _0x57de7d;},U=(_0x3b0c9f,_0x39bdf8)=>(_0x271705,_0x2f5d19)=>_0x39bdf8(_0x271705,_0x2f5d19,_0x3b0c9f);const dt=0x12c,St=0x64;let ge=class extends a[_0x515691(0x306)]{constructor(_0x281c00,_0x519b1c,_0x57df2d,_0x38a1a1,_0x4d081f,_0x4f4169,_0x49758f,_0x384759,_0x1cfa9a){const _0x48b16d=_0x515691;super(),_(this,_0x48b16d(0x290),!0x1),_(this,_0x48b16d(0x2bd),!0x1),_(this,_0x48b16d(0x2f1),new I[(_0x48b16d(0x17c))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x48b16d(0x16d)]()),_(this,_0x48b16d(0x325),new I[(_0x48b16d(0x17c))]([])),_(this,_0x48b16d(0xf0),this['_roomMembers$'][_0x48b16d(0x228)](I[_0x48b16d(0x150)](dt))),_(this,'_updateLocalCursor',a[_0x48b16d(0x313)](_0xb6c581=>{const _0x31f7ad=_0x48b16d,_0x59a615={'eventID':v[_0x31f7ad(0x1a7)][_0x31f7ad(0x203)],'data':{'unitID':this[_0x31f7ad(0x17a)],'memberID':this[_0x31f7ad(0x183)][_0x31f7ad(0x205)](),'selection':ke(_0xb6c581)}};this[_0x31f7ad(0x183)][_0x31f7ad(0x255)](_0x59a615,this[_0x31f7ad(0x17a)]);},St)),(this[_0x48b16d(0x17a)]=_0x281c00,this[_0x48b16d(0x183)]=_0x519b1c,this['_injector']=_0x57df2d,this[_0x48b16d(0x2f8)]=_0x38a1a1,this[_0x48b16d(0x30c)]=_0x4d081f,this[_0x48b16d(0x14a)]=_0x4f4169,this[_0x48b16d(0x2cf)]=_0x49758f,this[_0x48b16d(0x28d)]=_0x384759,this[_0x48b16d(0x397)]=_0x1cfa9a);}get[_0x515691(0x342)](){const _0x15c843=_0x515691;return this[_0x15c843(0x2f1)][_0x15c843(0x2ee)]();}get['roomMembers'](){const _0x237c00=_0x515691;return this['_roomMembers$'][_0x237c00(0x2ee)]();}[_0x515691(0x37b)](){const _0x4dccc7=_0x515691;super[_0x4dccc7(0x37b)](),this[_0x4dccc7(0x2f1)][_0x4dccc7(0x361)](new Map()),this[_0x4dccc7(0x2f1)][_0x4dccc7(0xd1)](),this[_0x4dccc7(0x325)]['next']([]),this[_0x4dccc7(0x325)]['complete']();}['init'](){const _0x178944=_0x515691;this[_0x178944(0x2bd)]||(this[_0x178944(0x2bd)]=!0x0,this[_0x178944(0x183)][_0x178944(0x1ec)][_0x178944(0x228)](I[_0x178944(0x246)](this[_0x178944(0x281)]))[_0x178944(0xe4)](_0x512ba2=>{const _0x1fbad2=_0x178944;_0x512ba2===u[_0x1fbad2(0x317)][_0x1fbad2(0x242)]?this[_0x1fbad2(0x395)]():this[_0x1fbad2(0x295)]();}),this['_session']['event$'][_0x178944(0x228)](I['takeUntil'](this[_0x178944(0x281)]))['subscribe'](_0x4d7849=>{const _0x1e0591=_0x178944,_0x109c07=_0x4d7849['eventID'];_0x109c07===v['CollaborationEvent'][_0x1e0591(0x203)]&&this[_0x1e0591(0x236)](_0x4d7849),_0x109c07===v[_0x1e0591(0x1a7)][_0x1e0591(0x35f)]&&this[_0x1e0591(0x1b4)](_0x4d7849);}),this[_0x178944(0x204)](this[_0x178944(0x397)][_0x178944(0x19b)](_0x3ee080=>{const _0x1f0782=_0x178944,_0xe7cc48=_0x3ee080[_0x1f0782(0x181)];_0xe7cc48!=null&&this[_0x1f0782(0x290)]&&_0x3ee080['id']===V[_0x1f0782(0x1e6)]['id']&&_0xe7cc48[_0x1f0782(0x26d)]===this['unitID']&&_0xe7cc48[_0x1f0782(0xd7)]===!0x1&&_0xe7cc48[_0x1f0782(0x19d)][_0x1f0782(0x189)]>0x0&&this['_updateLocalCursor'](_0xe7cc48['ranges']);})),this[_0x178944(0x14a)]['collabCursorState$'][_0x178944(0x228)](I[_0x178944(0x246)](this[_0x178944(0x281)]))[_0x178944(0xe4)](_0x485ff7=>{const _0x42c25f=_0x178944;if((_0x485ff7==null?void 0x0:_0x485ff7[_0x42c25f(0x17a)])!==this[_0x42c25f(0x17a)])return;const _0x395702={'eventID':v[_0x42c25f(0x1a7)][_0x42c25f(0x203)],'data':_0x485ff7};this[_0x42c25f(0x236)](_0x395702);}),this[_0x178944(0x204)](this[_0x178944(0x397)][_0x178944(0x19b)](_0x1569f9=>{const _0x3ca046=_0x178944;if(_0x1569f9[_0x3ca046(0x181)]==null)return;const _0x8ec82d=_0x1569f9[_0x3ca046(0x181)];if(_0x1569f9['id']!==V[_0x3ca046(0x2bb)]['id']||_0x8ec82d[_0x3ca046(0x26d)]!==this[_0x3ca046(0x17a)])return;const _0x24b475={'id':_0x3ca046(0xe2),'params':_0x8ec82d},_0x11d207=this[_0x3ca046(0x342)];for(const [_0x47040e,_0x4577ea]of _0x11d207){const _0xed1ff2={'id':_0x3ca046(0xe2),'params':{'unitId':this[_0x3ca046(0x17a)],'actions':null,'textRanges':_0x4577ea[_0x3ca046(0x19d)]}},_0x1dadc0=this['_transformService']['transformMutation'](_0x24b475,_0xed1ff2,!0x1);if(v[_0x3ca046(0x338)](_0x1dadc0))throw _0x1dadc0['error'];_0x11d207[_0x3ca046(0x197)](_0x47040e,{..._0x4577ea,'ranges':_0x1dadc0['m2Prime'][_0x3ca046(0x181)][_0x3ca046(0x2f3)]});}queueMicrotask(()=>{const _0x3e3e13=_0x3ca046;this[_0x3e3e13(0x2f1)][_0x3e3e13(0x361)](_0x11d207);});})));}['_onCursorUpdate'](_0x499c5e){const _0x18dc4a=_0x515691;var _0x181b13,_0x5c091c;const {memberID:_0x2b9dc9,selection:_0x1b1f8e}=_0x499c5e[_0x18dc4a(0x18e)],_0x3c49c6=ht(_0x1b1f8e),_0x553e8a=(_0x5c091c=(_0x181b13=this[_0x18dc4a(0x30c)]['getMember'](this[_0x18dc4a(0x17a)],_0x2b9dc9))==null?void 0x0:_0x181b13[_0x18dc4a(0x2fc)])!=null?_0x5c091c:_0x18dc4a(0x2ca),_0x5984d4={'color':this[_0x18dc4a(0x2f8)][_0x18dc4a(0x38c)](_0x2b9dc9),'name':_0x553e8a,'ranges':_0x3c49c6},_0x34c483=this[_0x18dc4a(0x342)];_0x34c483['set'](_0x2b9dc9,_0x5984d4),this['_cursorInfo$']['next'](_0x34c483);}[_0x515691(0x1b4)](_0x3b9a1d){const _0x44f5b6=_0x515691,{memberID:_0x58c641}=_0x3b9a1d[_0x44f5b6(0x18e)],_0x78a93f=this['cursorInfo'];_0x78a93f[_0x44f5b6(0x2a1)](_0x58c641),this[_0x44f5b6(0x2f1)]['next'](_0x78a93f);}[_0x515691(0x395)](){const _0x1dcb4c=_0x515691;var _0x2528f0;if(this[_0x1dcb4c(0x290)]=!0x0,((_0x2528f0=this[_0x1dcb4c(0x28d)][_0x1dcb4c(0x1bd)]())==null?void 0x0:_0x2528f0[_0x1dcb4c(0x182)]())!==this[_0x1dcb4c(0x17a)])return;const _0x4e561d=this[_0x1dcb4c(0xc4)][_0x1dcb4c(0x1be)](V['DocSelectionManagerService'])[_0x1dcb4c(0x35c)]();Array[_0x1dcb4c(0x2ef)](_0x4e561d)&&_0x4e561d['length']>0x0&&this[_0x1dcb4c(0x331)](_0x4e561d);}[_0x515691(0x295)](){this['_online']=!0x1;}};ge=It([U(0x2,a[_0x515691(0xf3)](a[_0x515691(0x26e)])),U(0x3,a[_0x515691(0xf3)](be)),U(0x4,a[_0x515691(0xf3)](u[_0x515691(0x1f5)])),U(0x5,a[_0x515691(0xf3)](Re)),U(0x6,v[_0x515691(0x301)]),U(0x7,a[_0x515691(0x2ae)]),U(0x8,a['ICommandService'])],ge);var ft=Object[_0x515691(0x2a9)],mt=(_0x479014,_0x56f9b1,_0xf4b95f,_0x4a0db8)=>{const _0x27fac3=_0x515691;for(var _0x432f65=_0x4a0db8>0x1?void 0x0:_0x4a0db8?ft(_0x56f9b1,_0xf4b95f):_0x56f9b1,_0x1aea6=_0x479014[_0x27fac3(0x189)]-0x1,_0x37af85;_0x1aea6>=0x0;_0x1aea6--)(_0x37af85=_0x479014[_0x1aea6])&&(_0x432f65=_0x37af85(_0x432f65)||_0x432f65);return _0x432f65;},w=(_0x9383af,_0x48d1ad)=>(_0x1ab23b,_0x344a70)=>_0x48d1ad(_0x1ab23b,_0x344a70,_0x9383af);const gt=0x12c,vt=0x64,Et=()=>{let _0x38348a=[],_0x4829fd=!0x1;return _0x445bfa=>{const _0x463511=_0x5d58;_0x38348a[_0x463511(0x19a)](_0x445bfa),_0x4829fd||(_0x4829fd=!0x0,setTimeout(()=>{const _0x4f45cf=_0x463511;_0x38348a[_0x4f45cf(0x1dc)](_0x36d0cb=>_0x36d0cb()),_0x38348a=[],_0x4829fd=!0x1;}));};};let ve=class extends a[_0x515691(0x306)]{constructor(_0x47b0b0,_0xfd3cf,_0x49a1b4,_0x29b990,_0x23ee3f,_0x37a2c5,_0x264c02,_0x49539e){const _0x45eda8=_0x515691;super(),_(this,_0x45eda8(0x290),!0x1),_(this,_0x45eda8(0x2bd),!0x1),_(this,_0x45eda8(0x2f1),new I[(_0x45eda8(0x17c))](new Map())),_(this,_0x45eda8(0x1e8),this[_0x45eda8(0x2f1)][_0x45eda8(0x16d)]()),_(this,_0x45eda8(0x325),new I[(_0x45eda8(0x17c))]([])),_(this,_0x45eda8(0xf0),this['_roomMembers$'][_0x45eda8(0x228)](I[_0x45eda8(0x150)](gt))),_(this,'_updateLocalCursor',a[_0x45eda8(0x313)]((_0x170500,_0x323990)=>{const _0x562b9c=_0x45eda8,_0x39727c={'eventID':v[_0x562b9c(0x1a7)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x562b9c(0x17a)],'memberID':this[_0x562b9c(0x183)][_0x562b9c(0x205)](),'selection':B[_0x562b9c(0x28c)](_0x170500,_0x323990[_0x562b9c(0x23f)])}};this['_session']['send'](_0x39727c,this[_0x562b9c(0x17a)]);},vt)),(this[_0x45eda8(0x17a)]=_0x47b0b0,this[_0x45eda8(0x183)]=_0xfd3cf,this[_0x45eda8(0xc4)]=_0x49a1b4,this[_0x45eda8(0x2f8)]=_0x29b990,this[_0x45eda8(0x30c)]=_0x23ee3f,this[_0x45eda8(0x28d)]=_0x37a2c5,this[_0x45eda8(0x397)]=_0x264c02,this[_0x45eda8(0x2bc)]=_0x49539e);}get['cursorInfo'](){const _0x26c5c3=_0x515691;return this['_cursorInfo$'][_0x26c5c3(0x2ee)]();}get['roomMembers'](){const _0xd39146=_0x515691;return this[_0xd39146(0x325)][_0xd39146(0x2ee)]();}['dispose'](){const _0x43e755=_0x515691;super[_0x43e755(0x37b)](),this[_0x43e755(0x2f1)][_0x43e755(0x361)](new Map()),this[_0x43e755(0x2f1)][_0x43e755(0xd1)](),this['_roomMembers$'][_0x43e755(0x361)]([]),this['_roomMembers$'][_0x43e755(0xd1)]();}[_0x515691(0x125)](){const _0x93c64d=_0x515691;this[_0x93c64d(0x2bd)]||(this['_init']=!0x0,this['_session'][_0x93c64d(0x1ec)]['pipe'](I[_0x93c64d(0x246)](this[_0x93c64d(0x281)]))[_0x93c64d(0xe4)](_0x31d892=>{const _0x36e406=_0x93c64d;_0x31d892===u[_0x36e406(0x317)]['ONLINE']?this[_0x36e406(0x395)]():this['_toggleOffline']();}),this[_0x93c64d(0x183)][_0x93c64d(0x1a6)][_0x93c64d(0x228)](I[_0x93c64d(0x246)](this[_0x93c64d(0x281)]))[_0x93c64d(0xe4)](_0x4843c0=>{const _0x46eec5=_0x93c64d,_0x353d9e=_0x4843c0[_0x46eec5(0x133)];_0x353d9e===v[_0x46eec5(0x1a7)][_0x46eec5(0x203)]&&this[_0x46eec5(0x236)](_0x4843c0),_0x353d9e===v[_0x46eec5(0x1a7)][_0x46eec5(0x35f)]&&this[_0x46eec5(0x1b4)](_0x4843c0);}),this[_0x93c64d(0x28a)](),this['disposeWithMe'](this[_0x93c64d(0x397)][_0x93c64d(0x19b)](_0x3460f1=>{const _0x52fac4=_0x93c64d;if(this[_0x52fac4(0x290)]&&_0x3460f1['id']===g['SetSelectionsOperation']['id']&&_0x3460f1[_0x52fac4(0x181)][_0x52fac4(0x26d)]===this['unitID']){const _0x5134cd=_0x3460f1[_0x52fac4(0x181)];this[_0x52fac4(0x331)](_0x5134cd[_0x52fac4(0x247)],_0x5134cd[_0x52fac4(0xc3)][0x0]);}})));}[_0x515691(0x236)](_0x5a0b32){const _0x46c4f5=_0x515691;var _0xb0930b,_0x31f535;const {memberID:_0x3f57a7,selection:_0x8267cd}=_0x5a0b32[_0x46c4f5(0x18e)],{sheetName:_0x997500,range:_0x524b0e}=B['deserializeRangeWithSheet'](_0x8267cd),_0x59b177={'name':(_0x31f535=(_0xb0930b=this[_0x46c4f5(0x30c)][_0x46c4f5(0x33a)](this[_0x46c4f5(0x17a)],_0x3f57a7))==null?void 0x0:_0xb0930b[_0x46c4f5(0x2fc)])!=null?_0x31f535:'Unknown\x20user','range':this['_getMergeRange'](_0x997500,_0x524b0e),'sheetID':_0x997500,'color':this[_0x46c4f5(0x2f8)][_0x46c4f5(0x38c)](_0x3f57a7),'selection':_0x8267cd},_0x22d65d=this[_0x46c4f5(0x342)];_0x22d65d['set'](_0x3f57a7,_0x59b177),this[_0x46c4f5(0x2f1)][_0x46c4f5(0x361)](_0x22d65d);}[_0x515691(0x1b4)](_0x30fbd3){const _0x5416ec=_0x515691,{memberID:_0xd8552a}=_0x30fbd3[_0x5416ec(0x18e)],_0x277053=this['cursorInfo'];_0x277053['delete'](_0xd8552a),this[_0x5416ec(0x2f1)][_0x5416ec(0x361)](_0x277053);}[_0x515691(0x1d6)](_0x243ee0,_0x3a8910){const _0x326fa7=_0x515691;var _0x34af70,_0x25cb7a;const _0x3cae09=(_0x25cb7a=(_0x34af70=this[_0x326fa7(0x28d)][_0x326fa7(0x211)](this['unitID']))==null?void 0x0:_0x34af70['getSheetBySheetId'](_0x243ee0))==null?void 0x0:_0x25cb7a[_0x326fa7(0x350)]();return(_0x3cae09==null?void 0x0:_0x3cae09['find'](_0x5c85aa=>a[_0x326fa7(0x378)]['contains'](_0x5c85aa,_0x3a8910)))||_0x3a8910;}['_onRefRangeChange'](){const _0x191caf=_0x515691,_0x261528=new a['DisposableCollection'](),_0x30779a=Et(),_0x1bcfdf=()=>{const _0x1ff21a=_0x5d58;_0x261528[_0x1ff21a(0x37b)]();const _0x2b9536=(_0x21ceef,_0x219b00,_0x6fb757,_0x2c0494)=>{const _0x2b1642=_0x1ff21a;let _0x11bccc=[];switch(_0x21ceef['id']){case g['EffectRefRangId'][_0x2b1642(0x333)]:{_0x11bccc=g[_0x2b1642(0x25c)](_0x21ceef,_0x2c0494);break;}case g[_0x2b1642(0x122)]['DeleteRangeMoveUpCommandId']:{_0x11bccc=g[_0x2b1642(0x272)](_0x21ceef,_0x2c0494);break;}case g[_0x2b1642(0x122)][_0x2b1642(0x38e)]:{_0x11bccc=g[_0x2b1642(0x318)](_0x21ceef,_0x2c0494);break;}case g[_0x2b1642(0x122)]['InsertRangeMoveDownCommandId']:{_0x11bccc=g[_0x2b1642(0x348)](_0x21ceef,_0x2c0494);break;}case g[_0x2b1642(0x122)]['InsertRangeMoveRightCommandId']:{_0x11bccc=g[_0x2b1642(0xb6)](_0x21ceef,_0x2c0494);break;}case g['EffectRefRangId'][_0x2b1642(0x176)]:{_0x11bccc=g[_0x2b1642(0x2a2)](_0x21ceef,_0x2c0494);break;}case g[_0x2b1642(0x122)][_0x2b1642(0xd9)]:{_0x11bccc=g['handleMoveRange'](_0x21ceef,_0x2c0494);break;}case g[_0x2b1642(0x122)][_0x2b1642(0x1d8)]:{_0x11bccc=g[_0x2b1642(0x1db)](_0x21ceef,_0x2c0494);break;}case g[_0x2b1642(0x122)][_0x2b1642(0x11e)]:{_0x11bccc=g[_0x2b1642(0x200)](_0x21ceef,_0x2c0494);break;}}const _0x2e93df=g[_0x2b1642(0x2ac)](_0x11bccc,_0x2c0494),_0x6661db=this[_0x2b1642(0x342)][_0x2b1642(0x1be)](_0x219b00);if(_0x6661db&&_0x2e93df){const _0x32eae0={..._0x6661db,'range':_0x2e93df};this['cursorInfo'][_0x2b1642(0x197)](_0x219b00,_0x32eae0),_0x30779a(()=>{const _0x18fdeb=_0x2b1642,_0x498813=this[_0x18fdeb(0x2bc)][_0x18fdeb(0x148)](_0x2e93df,_0x2c2a50=>(_0x498813[_0x18fdeb(0x37b)](),_0x2b9536(_0x2c2a50,_0x219b00,_0x6fb757,_0x2e93df)));_0x261528['add'](_0x498813);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1ff21a(0x1dc)]((_0x58f7c2,_0x336f53)=>{const _0x3bc3eb=_0x1ff21a,{range:_0x33eda2,sheetID:_0x373a35}=_0x58f7c2,_0x5b9ea0=this[_0x3bc3eb(0x2bc)][_0x3bc3eb(0x148)](_0x33eda2,_0x445e82=>(_0x5b9ea0[_0x3bc3eb(0x37b)](),_0x2b9536(_0x445e82,_0x336f53,_0x373a35,_0x33eda2)));_0x261528[_0x3bc3eb(0x304)](_0x5b9ea0);});};this[_0x191caf(0x204)](a['toDisposable'](this[_0x191caf(0x2f1)][_0x191caf(0xe4)](()=>{_0x1bcfdf();})));}[_0x515691(0x395)](){const _0x2148f9=_0x515691;var _0x42a499,_0x33114d;if(this[_0x2148f9(0x290)]=!0x0,((_0x42a499=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x42a499['getUnitId']())!==this[_0x2148f9(0x17a)])return;const _0x27a5db=(_0x33114d=this['_injector']['get'](g[_0x2148f9(0x340)])[_0x2148f9(0x2b6)]())==null?void 0x0:_0x33114d[0x0],_0x1265d7=this[_0x2148f9(0x28d)]['getCurrentUnitForType'](a[_0x2148f9(0x213)][_0x2148f9(0x239)])[_0x2148f9(0xdc)]();_0x27a5db&&_0x1265d7&&this['_updateLocalCursor'](_0x1265d7[_0x2148f9(0x198)](),_0x27a5db);}[_0x515691(0x295)](){const _0x4c8125=_0x515691;this[_0x4c8125(0x290)]=!0x1;}};ve=mt([w(0x2,a[_0x515691(0xf3)](a[_0x515691(0x26e)])),w(0x3,a[_0x515691(0xf3)](be)),w(0x4,a[_0x515691(0xf3)](u['MemberService'])),w(0x5,a[_0x515691(0x2ae)]),w(0x6,a['ICommandService']),w(0x7,a[_0x515691(0xf3)](g[_0x515691(0x240)]))],ve);var Tt=Object[_0x515691(0x2a9)],Ct=(_0x41e082,_0x2ea57f,_0x36e0d3,_0x3679a7)=>{const _0x195199=_0x515691;for(var _0xa4e81a=_0x3679a7>0x1?void 0x0:_0x3679a7?Tt(_0x2ea57f,_0x36e0d3):_0x2ea57f,_0xbbc6d5=_0x41e082[_0x195199(0x189)]-0x1,_0x4161f4;_0xbbc6d5>=0x0;_0xbbc6d5--)(_0x4161f4=_0x41e082[_0xbbc6d5])&&(_0xa4e81a=_0x4161f4(_0xa4e81a)||_0xa4e81a);return _0xa4e81a;},ce=(_0x564072,_0x11bdf9)=>(_0x344925,_0x12618b)=>_0x11bdf9(_0x344925,_0x12618b,_0x564072);let k=class extends a[_0x515691(0x306)]{constructor(_0x544aa9,_0x1ca88b,_0xe9bfee){const _0x2caf5a=_0x515691;super(),_(this,'_entities',new Map()),_(this,_0x2caf5a(0x1ed),new I[(_0x2caf5a(0xb8))]()),(this['_univerInstanceService']=_0x544aa9,this[_0x2caf5a(0xc4)]=_0x1ca88b,this['_collabSessionService']=_0xe9bfee,this[_0x2caf5a(0x2bd)]());}['dispose'](){const _0x2f54f1=_0x515691;super[_0x2f54f1(0x37b)](),this['_entityInit$'][_0x2f54f1(0xd1)](),this[_0x2f54f1(0x358)][_0x2f54f1(0x1dc)](_0x43342c=>_0x43342c[_0x2f54f1(0x37b)]());}[_0x515691(0x158)](_0x271563){const _0x443889=_0x515691;return this[_0x443889(0x358)][_0x443889(0x2ba)](_0x271563)?this[_0x443889(0x358)]['get'](_0x271563)['cursorInfo$']:this[_0x443889(0x1ed)][_0x443889(0x228)](I[_0x443889(0x1f2)](_0x5b5894=>_0x5b5894[_0x443889(0x17a)]===_0x271563),I[_0x443889(0x235)](_0x2f19f0=>_0x2f19f0[_0x443889(0x1e8)]));}[_0x515691(0x2bd)](){const _0x3165ae=_0x515691;this['_univerInstanceService'][_0x3165ae(0x33b)](a[_0x3165ae(0x213)][_0x3165ae(0x239)])[_0x3165ae(0x228)](I[_0x3165ae(0x246)](this['dispose$']))[_0x3165ae(0xe4)](async _0x153ffd=>{const _0xd5abd9=_0x3165ae,_0x2577a4=_0x153ffd[_0xd5abd9(0x182)](),_0x3798c2=await this[_0xd5abd9(0x2eb)](_0x2577a4);this[_0xd5abd9(0x1ed)][_0xd5abd9(0x361)](_0x3798c2),this['_entities'][_0xd5abd9(0x197)](_0x2577a4,_0x3798c2);}),this[_0x3165ae(0x28d)][_0x3165ae(0x33b)](a[_0x3165ae(0x213)][_0x3165ae(0x21e)])[_0x3165ae(0x228)](I[_0x3165ae(0x246)](this[_0x3165ae(0x281)]))[_0x3165ae(0x228)](I[_0x3165ae(0x1f2)](_0x1d674f=>!_0x1d674f[_0x3165ae(0x182)]()['startsWith']('__')))['subscribe'](async _0x3fdb9e=>{const _0x39f5ae=_0x3165ae,_0x556ad7=_0x3fdb9e[_0x39f5ae(0x182)](),_0x467158=await this['_startDocCollabCursor'](_0x556ad7);this[_0x39f5ae(0x1ed)]['next'](_0x467158),this['_entities'][_0x39f5ae(0x197)](_0x556ad7,_0x467158);}),I['merge'](this[_0x3165ae(0x28d)][_0x3165ae(0x10e)](a[_0x3165ae(0x213)]['UNIVER_DOC']),this[_0x3165ae(0x28d)]['getTypeOfUnitDisposed$'](a[_0x3165ae(0x213)][_0x3165ae(0x239)]))[_0x3165ae(0x228)](I[_0x3165ae(0x246)](this['dispose$']))[_0x3165ae(0xe4)](_0x38898e=>{const _0x3335ea=_0x3165ae,_0x345ca5=_0x38898e[_0x3335ea(0x182)](),_0x194bd9=this['_entities'][_0x3335ea(0x1be)](_0x345ca5);_0x194bd9&&(_0x194bd9[_0x3335ea(0x37b)](),this[_0x3335ea(0x358)][_0x3335ea(0x2a1)](_0x345ca5));});}async[_0x515691(0x2eb)](_0x3f20c1){const _0x49f58c=_0x515691,_0x5c27a7=await this[_0x49f58c(0x323)][_0x49f58c(0x2d4)](_0x3f20c1),_0x348361=this['_injector']['createInstance'](ve,_0x3f20c1,_0x5c27a7);return _0x348361['init'](),_0x348361;}async[_0x515691(0x1ef)](_0x31e207){const _0x26c5c8=_0x515691,_0x32a856=await this[_0x26c5c8(0x323)][_0x26c5c8(0x2d4)](_0x31e207),_0x5dbbf0=this['_injector'][_0x26c5c8(0x2b5)](ge,_0x31e207,_0x32a856);return _0x5dbbf0[_0x26c5c8(0x125)](),_0x5dbbf0;}};k=Ct([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x515691(0xf3)](a[_0x515691(0x26e)])),ce(0x2,a[_0x515691(0xf3)](u[_0x515691(0x37f)]))],k);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x39b0c0,_0x2cb5ae){const _0x13c5d1=_0x515691;let {radius:_0x429228,width:_0x1e687d,height:_0x2bc667}=_0x2cb5ae;_0x429228=_0x429228!=null?_0x429228:0x0,_0x1e687d=_0x1e687d!=null?_0x1e687d:0x1e,_0x2bc667=_0x2bc667!=null?_0x2bc667:0x1e;let _0x18ceea=0x0,_0x375e0f=0x0,_0x3e8d7=0x0;_0x18ceea=_0x375e0f=_0x3e8d7=Math[_0x13c5d1(0x10d)](_0x429228,_0x1e687d/0x2,_0x2bc667/0x2),_0x39b0c0[_0x13c5d1(0x231)](),_0x39b0c0[_0x13c5d1(0xcf)](_0x18ceea,0x0),_0x39b0c0[_0x13c5d1(0xbf)](_0x1e687d-_0x375e0f,0x0),_0x39b0c0[_0x13c5d1(0xeb)](_0x1e687d-_0x375e0f,_0x375e0f,_0x375e0f,Math['PI']*0x3/0x2,0x0,!0x1),_0x39b0c0[_0x13c5d1(0xbf)](_0x1e687d,_0x2bc667-_0x3e8d7),_0x39b0c0['arc'](_0x1e687d-_0x3e8d7,_0x2bc667-_0x3e8d7,_0x3e8d7,0x0,Math['PI']/0x2,!0x1),_0x39b0c0['lineTo'](0x0,_0x2bc667),_0x39b0c0[_0x13c5d1(0xbf)](0x0,_0x18ceea),_0x39b0c0[_0x13c5d1(0xeb)](_0x18ceea,_0x18ceea,_0x18ceea,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x39b0c0[_0x13c5d1(0x269)](),_0x2cb5ae['fill']&&(_0x39b0c0[_0x13c5d1(0x195)](),_0x39b0c0[_0x13c5d1(0x127)]=_0x2cb5ae['fill'],_0x2cb5ae[_0x13c5d1(0xcb)]==='evenodd'?_0x39b0c0[_0x13c5d1(0x248)](_0x13c5d1(0xef)):_0x39b0c0[_0x13c5d1(0x248)](),_0x39b0c0[_0x13c5d1(0x36e)]());}class re extends T[_0x515691(0x30d)]{constructor(_0x3e793a,_0x150611){const _0x534f20=_0x515691;super(_0x3e793a,_0x150611),_(this,_0x534f20(0x165)),_(this,_0x534f20(0x151)),(this[_0x534f20(0x165)]=_0x150611==null?void 0x0:_0x150611[_0x534f20(0x165)],this[_0x534f20(0x151)]=_0x150611==null?void 0x0:_0x150611['text']);}static['drawWith'](_0x4174cb,_0x1d0fe0){const _0x32367f=_0x515691,{text:_0x4cad5f,color:_0x180ab9}=_0x1d0fe0;_0x4174cb[_0x32367f(0x195)](),_0x4174cb[_0x32367f(0x161)]=_0x32367f(0x2a6);const _0xd537b1=_0x4174cb[_0x32367f(0x37c)](_0x4cad5f)[_0x32367f(0x227)],_0x51d6d9=Math[_0x32367f(0x10d)](_0xd537b1+0x2*le,Ue);Ot(_0x4174cb,{'height':X,'radius':0x4,'width':_0x51d6d9,'fill':_0x180ab9}),_0x4174cb[_0x32367f(0x127)]=_0x32367f(0x34b);const _0x22854a=le,_0x352b79=X-pt,_0x3858b6=Ue-0x2*le;if(_0xd537b1>_0x3858b6){let _0x1df59f='',_0x1460d6=0x0;for(const _0x4ba871 of _0x4cad5f){const _0xd77847=_0x4174cb[_0x32367f(0x37c)](_0x4ba871)[_0x32367f(0x227)];if(_0x1460d6+_0xd77847<=_0x3858b6-_0x4174cb[_0x32367f(0x37c)](_0x32367f(0x1cc))[_0x32367f(0x227)])_0x1df59f+=_0x4ba871,_0x1460d6+=_0xd77847;else{_0x1df59f+=_0x32367f(0x1cc);break;}}_0x4174cb[_0x32367f(0x1c7)](_0x1df59f,_0x22854a,_0x352b79);}else _0x4174cb[_0x32367f(0x1c7)](_0x4cad5f,_0x22854a,_0x352b79);_0x4174cb[_0x32367f(0x36e)]();}[_0x515691(0x2d0)](_0x37adbd){const _0x11e1fa=_0x515691;re[_0x11e1fa(0x10f)](_0x37adbd,this);}}const _e=_0x515691(0x28b),bt=_0x515691(0x21a),Rt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x515691(0x267);class Le{constructor(_0x9cfca6,_0x411547,_0xb68e21,_0x3bfd82){const _0x3e25a8=_0x515691;_(this,'_shapes',[]),_(this,_0x3e25a8(0x16a),null),_(this,'_textBubble',null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x3e25a8(0x1cf)]=_0x9cfca6,this[_0x3e25a8(0x26f)]=_0x411547,this['_docSkeleton']=_0xb68e21,this[_0x3e25a8(0x2e2)]=_0x3bfd82,this[_0x3e25a8(0x330)]());}set[_0x515691(0x1f3)](_0x45fc83){const _0x10deb7=_0x515691;_0x45fc83?(this[_0x10deb7(0x16e)]&&this['_anchorDot']['hide'](),this[_0x10deb7(0x12b)]&&this[_0x10deb7(0x12b)]['show']()):(this[_0x10deb7(0x16e)]&&this[_0x10deb7(0x16e)]['show'](),this['_textBubble']&&this[_0x10deb7(0x12b)]['hide']());}[_0x515691(0x37b)](){const _0x565586=_0x515691;for(const _0x256dac of this[_0x565586(0x28e)])_0x256dac[_0x565586(0x37b)]();this[_0x565586(0x12b)]&&this['_textBubble'][_0x565586(0x37b)](),this[_0x565586(0x16e)]&&this['_anchorDot'][_0x565586(0x37b)](),this[_0x565586(0x16a)]&&this['_anchor'][_0x565586(0x37b)](),this[_0x565586(0x297)]&&this[_0x565586(0x297)]();}[_0x515691(0x330)](){const _0x3b19cc=_0x515691;var _0x1cb7e5;const {_docSkeleton:_0x4269c6,_document:_0x2a97a4}=this,{color:_0x1b351e,name:_0x395e64,ranges:_0xc89d9c}=this[_0x3b19cc(0x1cf)],_0x16910f=_0x2a97a4[_0x3b19cc(0x124)](),{docsLeft:_0x4bbd9b,docsTop:_0x206e40}=_0x16910f,_0x49d03c=new C[(_0x3b19cc(0x1a1))](_0x16910f,_0x4269c6);for(const {startOffset:_0xeb33b3,endOffset:_0x11ec5f,rangeType:_0x4d2658,segmentId:_0x135ec7,segmentPage:_0x4abfe3,collapsed:_0x1aa9e1,isActive:_0x227f05}of _0xc89d9c){const _0x59dd1e=_0x4269c6['findNodePositionByCharIndex'](_0xeb33b3,!0x0,_0x135ec7,_0x4abfe3);let _0x18a0d1=_0x4269c6[_0x3b19cc(0x26b)](_0x11ec5f,!0x0,_0x135ec7,_0x4abfe3);if(_0x18a0d1==null&&(_0x18a0d1=_0x4269c6[_0x3b19cc(0x26b)](_0x11ec5f-0x1,!0x1,_0x135ec7,_0x4abfe3)),_0x227f05){const {contentBoxPointGroup:_0x20b03d}=_0x49d03c[_0x3b19cc(0xe0)](_0x18a0d1,_0x18a0d1);if(_0x20b03d[_0x3b19cc(0x189)]===0x0)continue;this['_drawAnchor'](_0x1b351e,_0x20b03d,_0x4bbd9b,_0x206e40,_0x395e64),this[_0x3b19cc(0x297)]=this[_0x3b19cc(0x23d)]();}if(_0x59dd1e&&_0x18a0d1){if(_0x4d2658===a[_0x3b19cc(0x275)]['RECT']){const _0xd560d6=new C[(_0x3b19cc(0x105))](_0x16910f,_0x4269c6),{pointGroup:_0x21c829}=(_0x1cb7e5=_0xd560d6[_0x3b19cc(0xe0)](_0x59dd1e,_0x18a0d1))!=null?_0x1cb7e5:{};if(_0x21c829==null||_0x21c829[_0x3b19cc(0x189)]===0x0)continue;this[_0x3b19cc(0x219)](_0x1b351e,_0x21c829,_0x4bbd9b,_0x206e40);}else{if(!_0x1aa9e1){const {borderBoxPointGroup:_0x5097f6}=_0x49d03c[_0x3b19cc(0xe0)](_0x59dd1e,_0x18a0d1);if(_0x5097f6[_0x3b19cc(0x189)]===0x0)continue;this[_0x3b19cc(0x31e)](_0x1b351e,_0x5097f6,_0x4bbd9b,_0x206e40);}}}}}['_drawAnchor'](_0x4ad252,_0x2c4150,_0x4e17cf,_0x1b2bf2,_0x10c537){const _0x294fe6=_0x515691,_0x4e79c9=this[_0x294fe6(0x26c)](_0x2c4150),{left:_0x110c1f,top:_0x54bd75,height:_0xc96f4d}=_0x4e79c9,_0x524a96=this[_0x294fe6(0x1b8)](),_0x57eeb7=Nt/_0x524a96,_0x47e5fb=new T['Rect'](_e+a[_0x294fe6(0x34e)](H),{'left':_0x110c1f+_0x4e17cf-_0x57eeb7,'top':_0x54bd75+_0x1b2bf2,'height':_0xc96f4d,'width':Dt,'fill':_0x4ad252||T[_0x294fe6(0x375)](a[_0x294fe6(0x33e)][_0x294fe6(0x1b2)],0x0),'strokeWidth':_0x57eeb7,'stroke':Ut,'evented':!0x0});this[_0x294fe6(0x16a)]=_0x47e5fb,this[_0x294fe6(0x26f)][_0x294fe6(0x22e)](_0x47e5fb,C['TEXT_RANGE_LAYER_INDEX']);const _0x51d2d7=new T[(_0x294fe6(0x32d))](_e+a['generateRandomId'](H),{'left':_0x110c1f+_0x4e17cf-_0x57eeb7,'top':_0x54bd75+_0x1b2bf2-he/0x2,'height':he,'width':he,'fill':_0x4ad252||T[_0x294fe6(0x375)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x4ad252||T['getColor'](a['COLORS'][_0x294fe6(0x1b2)],0x0),'evented':!0x1});this['_anchorDot']=_0x51d2d7,this[_0x294fe6(0x26f)][_0x294fe6(0x22e)](_0x51d2d7,C['TEXT_RANGE_LAYER_INDEX']);const _0x2fdd8e=new re(_e+a[_0x294fe6(0x34e)](H),{'left':_0x110c1f+_0x4e17cf-_0x57eeb7,'top':_0x54bd75+_0x1b2bf2-X,'text':_0x10c537,'color':_0x4ad252});this[_0x294fe6(0x12b)]=_0x2fdd8e,this[_0x294fe6(0x26f)]['addObject'](_0x2fdd8e,C['TEXT_RANGE_LAYER_INDEX']),this[_0x294fe6(0x1f3)]=!0x1;}[_0x515691(0x23d)](){const _0x1a2faf=_0x515691,_0x589163=this[_0x1a2faf(0x16a)][_0x1a2faf(0x21d)][_0x1a2faf(0x1d4)](()=>{this['_hover']=!0x0;}),_0x2c7a7c=this[_0x1a2faf(0x16a)][_0x1a2faf(0xc5)][_0x1a2faf(0x1d4)](()=>{const _0xee1864=_0x1a2faf;this['_hideTimer']&&clearTimeout(this[_0xee1864(0x2d3)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{_0x589163['unsubscribe'](),_0x2c7a7c['unsubscribe']();};}[_0x515691(0x31e)](_0x7b2f09,_0x1eb659,_0x8a8dcc,_0x493dca){const _0x131ec3=_0x515691,_0x2ca055=new a[(_0x131ec3(0x1a5))](_0x7b2f09)['setAlpha'](0.2)[_0x131ec3(0x23a)](),_0x1270ac=new T[(_0x131ec3(0x22b))](bt+a[_0x131ec3(0x34e)](H),{'pointsGroup':_0x1eb659,'fill':_0x2ca055||T[_0x131ec3(0x375)](a['COLORS'][_0x131ec3(0x1b2)],0.2),'left':_0x8a8dcc,'top':_0x493dca,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x131ec3(0x28e)]['push'](_0x1270ac),this[_0x131ec3(0x26f)][_0x131ec3(0x22e)](_0x1270ac,C[_0x131ec3(0x2e6)]);}[_0x515691(0x219)](_0x11f5c4,_0x32b726,_0x230fa8,_0x16a5ba){const _0x181e87=_0x515691,_0x5ca559=new a['ColorKit'](_0x11f5c4)[_0x181e87(0x132)](0.2)[_0x181e87(0x23a)](),_0x582a81=new T['RegularPolygon'](Rt+a[_0x181e87(0x34e)](H),{'pointsGroup':_0x32b726,'fill':_0x5ca559||T[_0x181e87(0x375)](a[_0x181e87(0x33e)][_0x181e87(0x1b2)],0.2),'left':_0x230fa8,'top':_0x16a5ba,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x582a81),this[_0x181e87(0x26f)]['addObject'](_0x582a81,C[_0x181e87(0x2e6)]);}[_0x515691(0x26c)](_0x192c21){const _0x1060a7=_0x192c21[0x0],_0x27cdd1=_0x1060a7[0x0],_0x5c293b=_0x1060a7[0x2],{x:_0x363f04,y:_0x3dca9d}=_0x27cdd1,{x:_0x1baf5b,y:_0x573f50}=_0x5c293b;return{'left':_0x363f04,'top':_0x3dca9d,'width':_0x1baf5b-_0x363f04,'height':_0x573f50-_0x3dca9d};}['_getScale'](){const _0x4955c4=_0x515691,{scaleX:_0x39c922,scaleY:_0x37549d}=this[_0x4955c4(0x26f)][_0x4955c4(0x178)]();return Math[_0x4955c4(0x354)](_0x39c922,_0x37549d);}}var Lt=Object[_0x515691(0x2a9)],Mt=(_0x14f7e7,_0x91d08b,_0x3239ce,_0x17f227)=>{const _0x4a6f08=_0x515691;for(var _0xd8bb1c=_0x17f227>0x1?void 0x0:_0x17f227?Lt(_0x91d08b,_0x3239ce):_0x91d08b,_0x5bfa40=_0x14f7e7[_0x4a6f08(0x189)]-0x1,_0x3e4641;_0x5bfa40>=0x0;_0x5bfa40--)(_0x3e4641=_0x14f7e7[_0x5bfa40])&&(_0xd8bb1c=_0x3e4641(_0xd8bb1c)||_0xd8bb1c);return _0xd8bb1c;},q=(_0xe87c1d,_0x4efba3)=>(_0x25cce3,_0x1837b8)=>_0x4efba3(_0x25cce3,_0x1837b8,_0xe87c1d);let Ee=class extends a[_0x515691(0x306)]{constructor(_0x45d7f4,_0x206d7a,_0xd57840,_0x5bd253,_0x46571b){const _0x5d424f=_0x515691;super(),_(this,_0x5d424f(0x13b),[]),_(this,_0x5d424f(0x1b5),[]),(this['_context']=_0x45d7f4,this[_0x5d424f(0x363)]=_0x206d7a,this['_collabCursorController']=_0xd57840,this[_0x5d424f(0x397)]=_0x5bd253,this['_themeService']=_0x46571b,this[_0x5d424f(0x2bd)]());}['_init'](){const _0x31e3b6=_0x515691,_0x491814=this['_context'][_0x31e3b6(0x26d)],_0x22aa44=this[_0x31e3b6(0x363)];this['disposeWithMe'](I[_0x31e3b6(0x134)]([this[_0x31e3b6(0x320)][_0x31e3b6(0x158)](_0x491814),this[_0x31e3b6(0x2cc)][_0x31e3b6(0x265)]])[_0x31e3b6(0x228)]($['map'](([_0x428d37,_0x505780])=>({'skeleton':_0x22aa44[_0x31e3b6(0x324)](),'cursors':[..._0x428d37[_0x31e3b6(0x362)]()]['flatMap'](_0x573028=>({..._0x573028,'color':this['_themeService'][_0x31e3b6(0x339)](_0x573028[_0x31e3b6(0x165)])}))})))[_0x31e3b6(0xe4)](_0x42765d=>{const _0x518c8e=_0x31e3b6;if(this[_0x518c8e(0x298)](),_0x42765d){const {skeleton:_0xe4d2cf,cursors:_0x21fbae}=_0x42765d;this['_updateCollabCursors'](_0xe4d2cf,_0x21fbae);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x515691(0x1b1)](_0x269796,_0x1211d5){const _0x5bc61e=_0x515691,{scene:_0xbe4f08,mainComponent:_0x3e8dc0}=this[_0x5bc61e(0x381)],_0x2272b4=_0x1211d5[_0x5bc61e(0x112)](_0x2e81e2=>new Le(_0x2e81e2,_0xbe4f08,_0x269796,_0x3e8dc0));this['_cursorShapes']=_0x2272b4,this[_0x5bc61e(0x1b5)]=_0x1211d5;}[_0x515691(0x379)](){const _0x14d39d=_0x515691;this[_0x14d39d(0x298)]();const {scene:_0x3f6abf,mainComponent:_0x2b0686}=this['_context'],_0x2a733e=this[_0x14d39d(0x363)][_0x14d39d(0x324)](),_0x4a665f=this[_0x14d39d(0x1b5)][_0x14d39d(0x112)](_0x5e7178=>new Le(_0x5e7178,_0x3f6abf,_0x2a733e,_0x2b0686));this[_0x14d39d(0x13b)]=_0x4a665f;}['_removeCollabCursors'](){const _0x3f33da=_0x515691;this[_0x3f33da(0x13b)][_0x3f33da(0x1dc)](_0x102db1=>_0x102db1[_0x3f33da(0x37b)]()),this[_0x3f33da(0x13b)]=[];}[_0x515691(0xec)](){const _0x253be5=_0x515691,_0xb96da6=[C[_0x253be5(0x173)]['id']];this['disposeWithMe'](this[_0x253be5(0x397)][_0x253be5(0x19b)](_0x5600ba=>{const _0x12f60d=_0x253be5;_0xb96da6[_0x12f60d(0x10b)](_0x5600ba['id'])&&_0x5600ba[_0x12f60d(0x181)]['unitId']===this['_context']['unitId']&&this['_refreshCollabCursors']();}));}[_0x515691(0x282)](){const _0x263d66=_0x515691;this[_0x263d66(0x204)](a[_0x263d66(0x212)](this[_0x263d66(0x381)][_0x263d66(0x215)][_0x263d66(0x33f)])['pipe']($[_0x263d66(0x1f2)](_0x44ed97=>_0x44ed97[_0x263d66(0x37d)]===T[_0x263d66(0x118)]['resize']),$[_0x263d66(0x2c7)](0x10))[_0x263d66(0xe4)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x515691(0xf3)](V[_0x515691(0x380)])),q(0x2,a[_0x515691(0xf3)](k)),q(0x3,a[_0x515691(0x347)]),q(0x4,a[_0x515691(0xf3)](a[_0x515691(0xe8)]))],Ee);const At=0x1,Pt=1.5;class Fe extends T[_0x515691(0x30d)]{constructor(_0x3fe389,_0x18bcbe){const _0xd9e321=_0x515691;var _0x5978dd,_0x556e01;super(_0x3fe389,_0x18bcbe),_(this,_0xd9e321(0x174)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0xd9e321(0x229),'top'),_(this,_0xd9e321(0x36d)),_(this,_0xd9e321(0x30e)),_(this,_0xd9e321(0xf6)),_(this,_0xd9e321(0x2c9),0x4),_(this,_0xd9e321(0x1f6)),_(this,_0xd9e321(0x270)),_(this,'_isBlinkVisible',!0x0),_(this,'_offsetY',0x0),(_0x18bcbe&&(this[_0xd9e321(0xbb)](_0x18bcbe),_0x18bcbe['highlight']&&((_0x5978dd=_0x18bcbe[_0xd9e321(0x391)])!=null?_0x5978dd:this[_0xd9e321(0x2c9)])&&this[_0xd9e321(0x179)]((_0x556e01=_0x18bcbe[_0xd9e321(0x391)])!=null?_0x556e01:this[_0xd9e321(0x2c9)])),this[_0xd9e321(0x21d)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0xd9e321(0xc5)][_0xd9e321(0x1d4)](()=>this[_0xd9e321(0xbb)]({'hovered':!0x1})));}['setOffsetY'](_0x10e1b1){const _0x522044=_0x515691;this[_0x522044(0x393)]=_0x10e1b1;}[_0x515691(0xbb)](_0x2c9357){const _0x2a0368=_0x515691;var _0x4b4b5b,_0x30275e,_0x29427d,_0x254cb0,_0x158a9c,_0x2930b0,_0x2e72f5;this[_0x2a0368(0x174)]=(_0x4b4b5b=_0x2c9357[_0x2a0368(0x165)])!=null?_0x4b4b5b:this[_0x2a0368(0x174)],this[_0x2a0368(0x373)]=(_0x30275e=_0x2c9357['hovered'])!=null?_0x30275e:this[_0x2a0368(0x373)],this[_0x2a0368(0x126)]=(_0x29427d=_0x2c9357[_0x2a0368(0x23f)])!=null?_0x29427d:this['_range'],this[_0x2a0368(0x1af)]=(_0x254cb0=_0x2c9357[_0x2a0368(0x2fc)])!=null?_0x254cb0:this[_0x2a0368(0x1af)],this[_0x2a0368(0x229)]=(_0x158a9c=_0x2c9357[_0x2a0368(0x2dc)])!=null?_0x158a9c:this[_0x2a0368(0x229)],this[_0x2a0368(0x36d)]=(_0x2930b0=_0x2c9357[_0x2a0368(0x25e)])!=null?_0x2930b0:this[_0x2a0368(0x36d)],this['_showText']=(_0x2e72f5=_0x2c9357[_0x2a0368(0x1ae)])!=null?_0x2e72f5:this[_0x2a0368(0x30e)],_0x2c9357[_0x2a0368(0x391)]!==void 0x0&&(this[_0x2a0368(0x2c9)]=_0x2c9357[_0x2a0368(0x391)]),_0x2c9357[_0x2a0368(0x10a)]!==void 0x0&&(this[_0x2a0368(0xf6)]=_0x2c9357['highlight']),_0x2c9357[_0x2a0368(0x372)]!==void 0x0&&(this[_0x2a0368(0x393)]=_0x2c9357[_0x2a0368(0x372)]),this[_0x2a0368(0x2c8)]({'width':_0x2c9357['width'],'height':_0x2c9357[_0x2a0368(0xbd)]});}['onMouseMove'](_0x392788){const _0x122613=_0x515691,{row:_0x479201,column:_0x497f5f}=_0x392788;if(_0x479201>=this['_range'][_0x122613(0x121)]&&_0x479201<=this[_0x122613(0x126)][_0x122613(0x38f)]&&_0x497f5f>=this[_0x122613(0x126)][_0x122613(0x2c2)]&&_0x497f5f<=this['_range']['endColumn']){this[_0x122613(0xbb)]({'hovered':!0x0});return;}this[_0x122613(0xbb)]({'hovered':!0x1});}[_0x515691(0x179)](_0x5586ea){const _0x358080=_0x515691;this[_0x358080(0x32e)](),this[_0x358080(0x147)]=!0x0,this[_0x358080(0x270)]=window['setInterval'](()=>{this['_isBlinkVisible']=!this['_isBlinkVisible'],this['makeDirty'](!0x0);},0x1f4),this[_0x358080(0x1f6)]=window[_0x358080(0x2c5)](()=>{const _0x37be98=_0x358080;this[_0x37be98(0x32e)](),this[_0x37be98(0x147)]=!0x0,this[_0x37be98(0x23b)](!0x0);},_0x5586ea*0x3e8);}[_0x515691(0x32e)](){const _0x3a2f86=_0x515691;this[_0x3a2f86(0x270)]&&(window[_0x3a2f86(0x1b0)](this[_0x3a2f86(0x270)]),this[_0x3a2f86(0x270)]=void 0x0),this[_0x3a2f86(0x1f6)]&&(window[_0x3a2f86(0xf2)](this['_blinkTimer']),this[_0x3a2f86(0x1f6)]=void 0x0);}[_0x515691(0x285)](_0x541f87){return!0x1;}[_0x515691(0x37b)](){const _0x37a371=_0x515691;this[_0x37a371(0x32e)](),super[_0x37a371(0x37b)]();}['_draw'](_0x2eba5c){const _0x45cf30=_0x515691;var _0x18e9ef,_0x1b635f;let _0x4aac58=this[_0x45cf30(0x174)],_0x3187eb=this['_backgroundColor'];this[_0x45cf30(0xf6)]&&!this['_isBlinkVisible']&&(_0x4aac58=this[_0x45cf30(0x21c)](this[_0x45cf30(0x174)]),_0x3187eb=this[_0x45cf30(0x36d)]?this[_0x45cf30(0x21c)](this[_0x45cf30(0x36d)]):void 0x0),T[_0x45cf30(0x32d)][_0x45cf30(0x10f)](_0x2eba5c,{'width':this['width'],'height':this[_0x45cf30(0xbd)],'strokeWidth':(_0x18e9ef=this[_0x45cf30(0x154)])!=null?_0x18e9ef:Pt,'stroke':_0x4aac58,'evented':!0x1,'fill':_0x3187eb}),(this[_0x45cf30(0x373)]||this[_0x45cf30(0x30e)])&&(_0x2eba5c[_0x45cf30(0x195)](),_0x2eba5c[_0x45cf30(0x2d9)](0x1,0x0,0x0,0x1,this[_0x45cf30(0x227)],(this['_labelPosition']===_0x45cf30(0x1e0)?0x0:-X)+((_0x1b635f=this[_0x45cf30(0x393)])!=null?_0x1b635f:0x0)),re[_0x45cf30(0x10f)](_0x2eba5c,{'text':this[_0x45cf30(0x1af)],'color':_0x4aac58}),_0x2eba5c[_0x45cf30(0x36e)]());}[_0x515691(0x21c)](_0x2023c5){const _0x28b110=_0x515691;if(_0x2023c5['startsWith']('#')){const _0x2f1168=Number[_0x28b110(0x24c)](_0x2023c5[_0x28b110(0x29f)](0x1,0x3),0x10),_0x5d5c75=Number[_0x28b110(0x24c)](_0x2023c5['slice'](0x3,0x5),0x10),_0x5792dc=Number[_0x28b110(0x24c)](_0x2023c5['slice'](0x5,0x7),0x10);return _0x28b110(0xe6)+_0x2f1168+',\x20'+_0x5d5c75+',\x20'+_0x5792dc+_0x28b110(0x157);}return _0x2023c5[_0x28b110(0x344)](_0x28b110(0x11b))?_0x2023c5[_0x28b110(0x253)](/[\d.]+\)$/g,_0x28b110(0x2df)):_0x2023c5[_0x28b110(0x344)](_0x28b110(0x2b9))?_0x2023c5[_0x28b110(0x253)](_0x28b110(0x2b9),_0x28b110(0x11b))['replace'](')',_0x28b110(0x157)):_0x2023c5;}}function _0xc800(){const _0x5a1bee=['MemberService','_blinkTimer','url(#$1','_initStatusListener','PERMISSION_DENIED','Module','transformIMECache','RemoteUniscriptService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','permission.title','_maxFormulaLimit','handleIRemoveRow','_configService','translate(.97)','UPDATE_CURSOR','disposeWithMe','getMemberID','ENTITLE_CAN_NOT_BUY_LOWER_OTP','touchDependencies','_currentUsage','ENTITLE_COUPON_USED_UP','1em','formula.calculation.waiting','transformMutationsWithChangeset','source','join','filename','_setupBeforeClosingHandler','getUniverSheetInstance','fromEventSubject','UniverInstanceType','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','engine','getRenderById','_unitStatus','runId','_drawRectRange','collab-text-range-','removeParam','_getLighterColor','onPointerEnter$','UNIVER_DOC','onRendered','APPLY_DUPLICATED','_applyCommand','url(#off-line-icon_clip0_910_343)','RevisionService','yellow.400','TEXT','collabStatus.notCollab','width','pipe','_labelPosition','_handleHeartbeatEvent','RegularPolygon','MessageType','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','addObject','registerComponent','getStateCache','beginPath','urlChange$','collabCursorState$','_transformUndoRedoStack','switchMap','_onCursorUpdate','IRenderManagerService','CHANGESET_REVISION_CONFILICT','UNIVER_SHEET','toRgbString','makeDirty','IBeforeCloseService','_handleHover','DependentOn','range','RefRangeService','YUUMI_CONNECTOR_URL_NOT_FOUND','ONLINE','HTTPService','_clearPolling','now','takeUntil','subUnitId','fill','onPointerMove$','row','96hkUpbp','parseInt','collaboration.closeRoom','getSheetBySheetId','INVALID_ARGUMENT','_saveCache','_registerRenderDependencies','setConfig','replace','IConfigService','send','getActiveRange','_notificationService','_dataLoaderService','_setFormulaLimitStatus','DocCollaborationEntity','OFFLINE','handleDeleteRangeMoveLeft','_getSaveTimeout','backgroundColor','then','setParam','REDEMPTION_CODE_INACTIVE','trim','Vector2','_instanceService','currentTheme$','SetWorksheetActivateCommand','rgba(255,\x20255,\x20255,\x200.01)','Workbook','closePath','addEventListener','findNodePositionByCharIndex','_getAnchorBounding','unitId','Injector','_scene','_blinkIntervalTimer','LICENSE_EXPORT_SIZE_EXCEEDED','handleDeleteRangeMoveUp','_handleEvent','redoState','DOC_RANGE_TYPE','ERROR_AGAIN','session.collaboration-timeout','permission.content','onStarting','m2Prime','_beforeCloseService','collab-client.tooltip.reconnect','blue.400','key','[LogService\x20Error]:\x20','LICENSE_MAX_UNITS_EXCEEDED','dispose$','_initResize','post','DATA_SOURCE_TOO_LARGE','triggerDblclick','debug','APPLY_PERMISSION_DENIED','270168UUYfEL','isFormulaString','_onRefRangeChange','collab-text-anchor-','serializeRangeWithSheet','_univerInstanceService','_shapes','toString','_online','MUTATION','YUUMI_URL_COL_OUT_OF_RANGE','_localeService','origin','_toggleOffline','symbol','_eventUnsubscribe','_removeCollabCursors','_transformPreviousActiveRange','ILocalCacheService','saveOfflineData','SUCCESS','APPLY_REJECT','Disposable','slice','getConfig','delete','handleInsertRow','collaboration-client-ui.config','from','/run/','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getCellPositionByOffset','getOwnPropertyDescriptor','totalFormulasToCalculate','NOT_COLLAB','runRefRangeMutations','PENDING','IUniverInstanceService','lineno','stage','substring','toDisposable','children','setStateCache','createInstance','getCurrentSelections','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','svg','rgb','has','RichTextEditingMutation','_refRangeService','_init','_heartbeatTimer','getSheetObject','executeCommand','_updateSubUnitFromURLParams','startColumn','AWAITING','merge','setTimeout','catch','throttleTime','transformByState','_highlightSecond','Unknown\x20user','UNDEFINED','_themeService','Failed','EMAIL_HAS_BEEN_BOUND','_transformService','_draw','UniverCollaborationClientUIPlugin','REDEMPTION_USER_NOT_ELIGIBLE','_hideTimer','requireSession','parse','_initDependencies','YUUMI_RATE_OVER_LIMIT','with','transform','_scheduleClearOtherTimer','on-line-icon_clip0_910_349','labelPosition','ILogService','mapTo','0.2)','formula.calculation.unable','YUUMI_NO_CUBOID_FOR_QUESTION','_document','pushState','transformStateCache','getParam','TEXT_RANGE_LAYER_INDEX','onLocalMutation','YUUMI_AI_RUN_FAILED','collabStatus.fetchMiss','_httpService','_startSheetCollabCursor','WebBrowserSingleActiveUnitService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getValue','isArray','registerRenderModule','_cursorInfo$','_scheduleSaving','textRanges','getLocalCacheKey','?taskId=','VIEW_MAIN','fromEvent','_colorAssignService','M0\x200H16V16H0z','replaceState','YUUMI_UNABLE_LOAD_URL','name','distinctUntilChanged','_sheetSkeletonManagerService','defs','INotificationService','ITransformService','setItem','currentColor','add','createElement','RxDisposable','_disabled','href','_lastPointer','_ensureSubject','NOT_FOUND','_memberService','Shape','_showText','TOO_MANY_REQUESTS','EMAIL_VERIFY_CODE_MISMATCH','ENTITLE_USE_COUPON_NOT_1ST_TRADE','ENSURE_SNAPSHOT_EXECUTION','debounce','enableFrontendLog','newValue','addClipboardHook','SessionStatus','handleInsertCol','AUTHORIZE_CODE_ILLEGAL','CollaborationUIEventId','shift','searchParams','all','_drawTextRange','\x20at\x20','_collabCursorController','UnitStatus','stringify','_collabSessionService','getSkeleton','_roomMembers$','addObjects','LOGIN_TOKEN_PROCESSING_FAILED','/universer-api/frontend/logs','assign','_removeClearOtherTimer','WebURLService','MOBILE_VERIFY_CODE_MISMATCH','Rect','_stopBlinking','ENTITLE_INVALID_COUPON_CODE','_render','_updateLocalCursor','COMPLETION_FINISHED','DeleteRangeMoveLeftCommandId','isActive','WebSocketService','WECHAT_HAS_BEEN_BOUND','_checkCalculationAvailable','isTransformMutationFailure','getColorFromTheme','getMember','getTypeOfUnitAdded$','_initUserListener','_releaseCalculationLimit','COLORS','onTransformChange$','SheetsSelectionsService','YUUMI_ASYNCIO_CANCELLED','cursorInfo','message','startsWith','_showGuardMessage','ENTITLE_CHAT_LIMIT_EXCEED','ICommandService','handleInsertRangeMoveDown','IImageIoService','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','#FFF','on-line-icon','idSuffix','generateRandomId','override','getMergeData','_docStateChangeManagerService','_uiPartsService','Plugin','max','_pollingInterval','START_CALCULATION','whenReady','_entities','FormulaExecuteStageType','disposeUnit','wsSessionTicketUrl','getDocRanges','PY_RUNTIME_SCRIPT_ERROR','CollaborationSocketService','USERS_LEAVE','m1Prime','next','values','_docSkeletonManagerService','actions','_unitOnClients','_collaborationUIEventService','_initEvent','MOBILE_HAS_BEEN_BOUND','ticket','collaboration.offline-data-not-saved','show','clsx','_backgroundColor','restore','NO_OTHER_CLIENTS_EDITING','enableLocalCache','CollaborationDataLoaderController','offsetY','_hovered','_hasFormulaInDirtyRanges','getColor','mergeOverrideWithDependencies','ENTITLE_REPORT_LIMIT_EXCEED','Rectangle','_refreshCollabCursors','_scheduleHeartbeat','dispose','measureText','type','_messageService','CollaborationSessionService','DocSkeletonManagerService','_context','DocStateChangeManagerService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CanceledError','tag','58695uGAnpj','_memberID','IMessageService','_cachedData','limitInfo','_docClipboardService','assignAColorForMemberID','univer-flex\x20univer-items-center','InsertColCommandId','endRow','div','highlightSecond','_collabCursorState$','_offsetY','stack','_toggleOnline','CommandType','_commandService','status$','_registerDependencies','handleInsertRangeMoveRight','_getFormulaLimitStatus','Subject','setActiveRange','subunit','setShapeProps','DataLoaderService','height','_urlService','lineTo','string','jsx','[Window\x20Error]:\x20','selections','_injector','onPointerLeave$','getRelativeToViewportCoord','white','CollaborationController','OffLineIcon','socket$','fillRule','_docTransformIMECacheService','ENTITLE_DUP_SUBSCRIPTION','getUndoRedoMutationParamsCache','moveTo','maxFormulaLimit','complete','INVITE_CODE_ALREADY_BOUND','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','0\x200\x2017\x2016','ENTITLE_INSUFFICIENT_QUOTA','disableLocalCache','isEditing','_docTransformSelectionsService','MoveRangeCommandId','mask','_docSyncEditingCollabCursorService','getActiveSheet','entityInit$','_colorIndex','stageInfo','getRangePointData','Warning','doc.mutation.rich-text-editing','session.connection-failed','subscribe','getItem','rgba(','isTransformMutationsWithChangesetSuccess','ThemeService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','executionId','arc','_initCommandExecutedListener','DocIMEInputManagerService','CONNECTOR_DATA_TOO_LARGE','evenodd','roomMembers$','CONFLICT','clearTimeout','Inject','bind','_selfUnitIDs','_highlight','_localStorageService','REDEMPTION_CODE_FULLY_REDEEMED','IDocClipboardService','entries','BrowserCollaborationSocketService','_updateURLWithCurrentState','round','url(#on-line-icon_clip0_910_349)','LICENSE_DISTRO_REJECTED','addHandlerCallback','_collaborationController','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initWindowErrorListener','selection','NodePositionConvertToRectRange','_clearOtherTimers','error','_status$','unshift','highlight','includes','unhandledrejection','min','getTypeOfUnitDisposed$','drawWith','invokeId','code','map','ALREADY_EXISTS','4770WClmnz','attrs','REDEMPTION_CODE_NOT_STARTED','univerjs-icon\x20univerjs-icon-','TRANSFORM_CHANGE_OBSERVABLE_TYPE','syncEditingCollabCursor','APPLY_REVISION_CONFILICT','rgba','ACTIVE_UNIT_EVENT_CHANNEL','CURRENT_STATUS_CANNOT_OPERATE','RemoveRowCommandId','LOCAL_CACHE_INTERVAL','UNAUTHENTICATED','startRow','EffectRefRangId','343616wYlCKN','getOffsetConfig','init','_range','fillStyle','DocSelectionManagerService','useObservable','USER_NOT_FOUND','_textBubble','SheetSkeletonManagerService','INVITE_CODE_REQUIRED','DEFAULT_WS_SESSION_TICKET_URL','CollaborationUIEventService','location','path','setAlpha','eventID','combineLatest','deepClone','body','USER_NOT_INVITED_CODE','_lastResponseTimestamp','exhaustSavingTask','reconnect','_cursorShapes','4201stkWUy','updateOfflineData','6088kfwUrm','dirtyRanges','_handleJoinEvent','_setupSubUnitSync','collabStatus.conflict','YUUMI_ALL_TABLES_IS_INVALID','off-line-icon_clip0_910_343','[CollaborationDataLoaderController]','saveImage','_isBlinkVisible','registerRefRange','getVpScrollXYInfoByPosToVp','_syncEditingCollabCursorService','useRef','_revisionService','registerDependencies','PAYMENT_CHANNEL_NOT_SUPPORT','IRemoteInstanceService','debounceTime','text','_doCreateSocket','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','strokeWidth','INTERNAL_ERROR','unit',',\x200.2)','getCollabCursors$','getViewport','getCoordByCell','some','session.will-retry','_saveTaskMap','size','http://www.w3.org/2000/svg','USER_IS_ANONYMOUS','font','_transformHistoryAndStateStack','_handleLeaveEvent','INVITE_CODE_HAS_BEEN_UES','color','Tools','_localCacheService','_uploadLog','_id','_anchor','_config','red.300','asObservable','_anchorDot','FETCH_MISS','INVALID_INVITE_CODE','UniverIcon','_logService','SetDocZoomRatioOperation','_color','_collaborationSessionService','InsertRowCommandId','RECT','getAncestorScale','_startBlinking','unitID','[Unhandled\x20Rejection]:\x20','BehaviorSubject','transformRemoteChangeset','memberID','isFormulaId','_startCalculationLimit','params','getUnitId','_session','transformMutation','mutations','currentUsage','off-line-icon','transformSelections','length','_assignedColors','use','beforeCommandExecuted','LocaleService','data','_checkAndWaitForCalculationPermission','_initStatusComponent','loadUnit','FromArray','REDEMPTION_USER_REDEEM_TIMES_EXCEED','/universer-api/license/formula/limit/start','save','LICENSE_IMPORT_SIZE_EXCEEDED','set','getSheetId','/universer-api/license/formula/limit/status','push','onCommandExecuted','xlink:href','ranges','defIds','getCurrentRevOfUnit','skeleton','NodePositionConvertToCursor','_getSessionTicket','clipPath','DesktopCollaborationStatusDisplayController','ColorKit','event$','CollaborationEvent','reason','_initUnhandledRejectionListener','HEADER_MENU','REDEMPTION_CODE_HAS_BEEN_CREATED','_renderManagerService','_docTransformStateCacheService','showText','_name','clearInterval','_updateCollabCursors','black','undoState','_onCursorDelete','_cursors','uni.network.url-service','IURLService','_getScale','colorChannel1','LOGIN_FAILED','ISocketService','_createSocketURL','getFocusedUnit','get','collaboration.single-unit.warning','_taskIds','REDEMPTION_INVALID_CODE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Error','split','UniverCollaborationClientPlugin','/universer-api/license/formula/limit/done','fillText','saveTaskMap','_imageIoService','currentSkeleton$','storage','...','APPLY_NON_SEQUENTIAL_REVISION','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_cursor','history','functionsExecutedState','ENTITLE_NEED_BILLING_ADDRESS','OTHER_CLIENTS_EDITING','subscribeEvent','getCurrent','_getMergeRange','getUnitStatus$','RemoveColCommandId','CollaborationStatus','_send','handleIRemoveCol','forEach','collabStatus.synced','_initEntityListener','ILocalStorageService','bottom','26368PvbRYK','AWAITING_WITH_PENDING','replaceDocRanges','random','194370obuwDQ','SetTextSelectionsOperation','getUnhiddenWorksheets','cursorInfo$','startFormulaLimitUrl','_initCommandInterceptor','application/json','sessionStatus$','_entityInit$','none','_startDocCollabCursor','useDependency','_monkeyPatchLogService','filter','_hover','BuiltInUIPart'];_0xc800=function(){return _0x5a1bee;};return _0xc800();}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x31d951,_0x5055ec,_0x5c206c,_0x2367eb)=>{const _0x64ab9d=_0x515691;for(var _0x422f36=_0x2367eb>0x1?void 0x0:_0x2367eb?wt(_0x5055ec,_0x5c206c):_0x5055ec,_0x4f76bc=_0x31d951[_0x64ab9d(0x189)]-0x1,_0x20720f;_0x4f76bc>=0x0;_0x4f76bc--)(_0x20720f=_0x31d951[_0x4f76bc])&&(_0x422f36=_0x20720f(_0x422f36)||_0x422f36);return _0x422f36;},ue=(_0x1b72fe,_0x47ca3b)=>(_0x2b9dc1,_0xba6847)=>_0x47ca3b(_0x2b9dc1,_0xba6847,_0x1b72fe);const $t=0x1389;let Te=class extends a['RxDisposable']{constructor(_0x391ae3,_0x2d527e,_0x49de49,_0x2d746a){const _0xa7007f=_0x515691;super(),_(this,_0xa7007f(0x1b5),new Set()),_(this,_0xa7007f(0x309),null),(this[_0xa7007f(0x381)]=_0x391ae3,this['_sheetSkeletonManagerService']=_0x2d527e,this['_collabCursorController']=_0x49de49,this[_0xa7007f(0x2cc)]=_0x2d746a,this[_0xa7007f(0x2bd)]());}[_0x515691(0x2bd)](){const _0xb5b8ad=_0x515691;this[_0xb5b8ad(0x2fe)][_0xb5b8ad(0x1ca)][_0xb5b8ad(0x228)]($[_0xb5b8ad(0x246)](this[_0xb5b8ad(0x281)]),$['switchMap'](_0x366dca=>{const _0x4aa4eb=_0xb5b8ad;if(_0x366dca){const _0x6af9a7=_0x366dca['sheetId'];return I[_0x4aa4eb(0x134)](this['_collabCursorController'][_0x4aa4eb(0x158)](this[_0x4aa4eb(0x381)][_0x4aa4eb(0x26d)]),this[_0x4aa4eb(0x2cc)][_0x4aa4eb(0x265)])['pipe']($[_0x4aa4eb(0x112)](([_0x53f839,_0x4ea7f6])=>{const _0x1337e8=_0x4aa4eb,_0x259915=new Map();return _0x53f839[_0x1337e8(0x1dc)]((_0x50715c,_0x10d898)=>{const _0x1e2073=_0x1337e8;if(_0x50715c['sheetID']===_0x6af9a7){const _0x1939d7={..._0x50715c};_0x1939d7['color']=this[_0x1e2073(0x2cc)]['getColorFromTheme'](_0x50715c['color']),_0x259915[_0x1e2073(0x197)](_0x10d898,_0x1939d7);}}),{'skeleton':_0x366dca,'cursors':_0x259915};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0xb5b8ad(0xe4)](({skeleton:_0x4926e1,cursors:_0x16d4f7})=>{const _0x3cfd81=_0xb5b8ad;this['_removeCollabCursors'](),_0x4926e1&&this[_0x3cfd81(0x1b1)](_0x4926e1,_0x16d4f7);}),this['_sheetSkeletonManagerService'][_0xb5b8ad(0x1ca)][_0xb5b8ad(0xe4)](_0x5aa43c=>{const _0x572893=_0xb5b8ad;if(_0x5aa43c==null)return;const {skeleton:_0x24f4ac}=_0x5aa43c,{scene:_0xfe3932}=this[_0x572893(0x381)];_0xfe3932[_0x572893(0x249)][_0x572893(0x1d4)](a[_0x572893(0x313)](_0x532449=>{const _0x29cb1f=_0x572893;var _0x296a63,_0x4384a7;const {offsetX:_0x4207ce,offsetY:_0x2e5a13}=_0x532449,{x:_0x57cd11,y:_0x5f36c2}=_0xfe3932[_0x29cb1f(0xc6)](T[_0x29cb1f(0x263)][_0x29cb1f(0x192)]([_0x4207ce,_0x2e5a13])),{scaleX:_0x3a5920,scaleY:_0x50a91b}=_0xfe3932[_0x29cb1f(0x178)](),_0x3fa295=_0xfe3932[_0x29cb1f(0x159)](T['SHEET_VIEWPORT_KEY'][_0x29cb1f(0x2f6)]),_0x28643d=_0xfe3932[_0x29cb1f(0x149)](T['Vector2'][_0x29cb1f(0x192)]([_0x57cd11,_0x5f36c2]),_0x3fa295),_0x29807f=_0x24f4ac[_0x29cb1f(0x2a8)](_0x4207ce,_0x2e5a13,_0x3a5920,_0x50a91b,_0x28643d);((_0x296a63=this[_0x29cb1f(0x309)])==null?void 0x0:_0x296a63['column'])===_0x29807f['column']&&((_0x4384a7=this[_0x29cb1f(0x309)])==null?void 0x0:_0x4384a7[_0x29cb1f(0x24a)])===_0x29807f['row']||this[_0x29cb1f(0x1b5)][_0x29cb1f(0x1dc)](_0x2d8fae=>{_0x2d8fae['onMouseMove'](_0x29807f);});},0x64));});}['_updateCollabCursors'](_0x5b4e8e,_0x1b62fe){const _0x45ee0c=_0x515691;var _0x49fa8e;const _0x51f7f3=(_0x49fa8e=this[_0x45ee0c(0x2fe)][_0x45ee0c(0x1d5)]())==null?void 0x0:_0x49fa8e[_0x45ee0c(0x1a0)];if(!_0x51f7f3)return;const _0x37d547=this['_getSheetObject']();if(!_0x37d547)return;this[_0x45ee0c(0x1b5)][_0x45ee0c(0x1dc)](_0x154695=>{const _0x175deb=_0x45ee0c;_0x154695[_0x175deb(0x23b)]();});const {scene:_0x2c2024}=_0x37d547,_0x4dfbe3=xt(Array[_0x45ee0c(0x2a4)](_0x1b62fe[_0x45ee0c(0x362)]()))[_0x45ee0c(0x112)](_0x539c2a=>{const _0x4bfa26=_0x45ee0c,{color:_0x693305,range:_0x56ae10,name:_0x2bf4ad,selection:_0x19d518,sheetID:_0x5e02a6}=_0x539c2a,{startColumn:_0x5514eb,startRow:_0x2a6d22,endColumn:_0x22f1b0,endRow:_0x202693}=_0x56ae10,_0x4c7a65=J[_0x4bfa26(0x15a)](_0x2a6d22,_0x5514eb,_0x2c2024,_0x51f7f3),_0x5cc0b0=J[_0x4bfa26(0x15a)](_0x202693,_0x22f1b0,_0x2c2024,_0x51f7f3),{columnHeaderHeightAndMarginTop:_0x293095}=_0x51f7f3,{startX:_0x535d02,startY:_0x4806d4}=_0x4c7a65,{endX:_0x49b9d6,endY:_0x3ac95a}=_0x5cc0b0,_0x5b136a=_0x49b9d6-_0x535d02,_0x4c887b=_0x3ac95a-_0x4806d4,_0x47a3c5={'labelPosition':_0x4806d4-_0x293095>=X?'top':_0x4bfa26(0x1e0),'sheetID':_0x5e02a6,'range':_0x56ae10,'color':_0x693305,'name':_0x2bf4ad,'selection':_0x19d518,'left':_0x535d02,'top':_0x4806d4,'width':_0x5b136a,'height':_0x4c887b,'evented':!0x1,'zIndex':$t};return new Fe(_0x2bf4ad,_0x47a3c5);});_0x2c2024[_0x45ee0c(0x326)](_0x4dfbe3,At),this['_cursors']=new Set(_0x4dfbe3);}[_0x515691(0x298)](){const _0xf46c7=_0x515691;var _0x3323a5;(_0x3323a5=this[_0xf46c7(0x1b5)])==null||_0x3323a5[_0xf46c7(0x1dc)](_0x5972a4=>_0x5972a4[_0xf46c7(0x37b)]());}['_getSheetObject'](){const _0x59939b=_0x515691;return J[_0x59939b(0x2bf)](this['_context'][_0x59939b(0x156)],this['_context']);}};Te=yt([ue(0x1,a[_0x515691(0xf3)](J[_0x515691(0x12c)])),ue(0x2,a[_0x515691(0xf3)](k)),ue(0x3,a[_0x515691(0xf3)](a[_0x515691(0xe8)]))],Te);function xt(_0x37458b){const _0x28130d=_0x515691,_0xdfb71a=new Map();return _0x37458b[_0x28130d(0x1dc)](_0x2f6764=>{const _0x2cda7d=_0x28130d;if(_0xdfb71a[_0x2cda7d(0x2ba)](_0x2f6764['selection'])){const _0xcb5d2=_0xdfb71a[_0x2cda7d(0x1be)](_0x2f6764['selection']);_0xcb5d2[_0x2cda7d(0x2fc)]+=',\x20'+_0x2f6764[_0x2cda7d(0x2fc)];}else _0xdfb71a[_0x2cda7d(0x197)](_0x2f6764[_0x2cda7d(0x104)],_0x2f6764);}),Array[_0x28130d(0x2a4)](_0xdfb71a[_0x28130d(0x362)]());}var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x469808,_0x3d8b80,_0x15c594,_0x41844a)=>{const _0x20b36f=_0x515691;for(var _0x1d4aca=_0x41844a>0x1?void 0x0:_0x41844a?Bt(_0x3d8b80,_0x15c594):_0x3d8b80,_0x22bc1b=_0x469808[_0x20b36f(0x189)]-0x1,_0x48e7e3;_0x22bc1b>=0x0;_0x22bc1b--)(_0x48e7e3=_0x469808[_0x22bc1b])&&(_0x1d4aca=_0x48e7e3(_0x1d4aca)||_0x1d4aca);return _0x1d4aca;},y=(_0x32493f,_0x50d331)=>(_0x424baa,_0x32014b)=>_0x50d331(_0x424baa,_0x32014b,_0x32493f);let Z=class extends a['Disposable']{constructor(_0x40efcc,_0x3e7f6e,_0x4e287f,_0x1a41b3,_0x59370b,_0x436003){const _0x42dc11=_0x515691;super(),this[_0x42dc11(0x27b)]=_0x40efcc,this[_0x42dc11(0x167)]=_0x3e7f6e,this[_0x42dc11(0x366)]=_0x4e287f,this[_0x42dc11(0x37e)]=_0x1a41b3,this[_0x42dc11(0x257)]=_0x59370b,this[_0x42dc11(0x293)]=_0x436003,this[_0x42dc11(0x210)](),this[_0x42dc11(0x367)]();}[_0x515691(0x210)](){const _0x102d05=_0x515691;this[_0x102d05(0x204)](this[_0x102d05(0x27b)]['registerBeforeClose'](()=>{const _0x53ccec=_0x102d05;if(this[_0x53ccec(0x167)][_0x53ccec(0x1c8)][_0x53ccec(0x15e)])return this['_localeService']['t'](_0x53ccec(0x36a));}));}['_initEvent'](){const _0x2b1d81=_0x515691;this[_0x2b1d81(0x204)](this[_0x2b1d81(0x366)][_0x2b1d81(0x1a6)][_0x2b1d81(0xe4)](_0x20a3c6=>{const _0x2854b9=_0x2b1d81;_0x20a3c6['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x2854b9(0x37e)]['show']({'type':p['MessageType'][_0x2854b9(0xe1)],'content':this[_0x2854b9(0x293)]['t'](_0x2854b9(0x1bf))}),_0x20a3c6['id']===u[_0x2854b9(0x31a)]['CLOSE_ROOM']&&this[_0x2854b9(0x37e)][_0x2854b9(0x36b)]({'type':p['MessageType']['Warning'],'content':this['_localeService']['t'](_0x2854b9(0x24d))}),_0x20a3c6['id']===u[_0x2854b9(0x31a)][_0x2854b9(0x1f9)]&&this[_0x2854b9(0x257)][_0x2854b9(0x36b)]({'title':this['_localeService']['t'](_0x2854b9(0x1fe)),'content':this[_0x2854b9(0x293)]['t'](_0x2854b9(0x278)),'type':_0x2854b9(0x107),'duration':0x0}),_0x20a3c6['id']===u[_0x2854b9(0x31a)][_0x2854b9(0xf1)]&&this[_0x2854b9(0x37e)][_0x2854b9(0x36b)]({'type':p[_0x2854b9(0x22c)]['Error'],'content':this[_0x2854b9(0x293)]['t'](_0x2854b9(0x24d))+'('+_0x20a3c6[_0x2854b9(0x18e)]+')'}),_0x20a3c6['id']===u[_0x2854b9(0x31a)]['JOIN_ROOM_FAILED']&&this[_0x2854b9(0x37e)]['show']({'type':p[_0x2854b9(0x22c)][_0x2854b9(0xe1)],'content':this[_0x2854b9(0x293)]['t'](_0x20a3c6[_0x2854b9(0x18e)]||'')}),_0x20a3c6['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x2854b9(0x37e)][_0x2854b9(0x36b)]({'type':p['MessageType'][_0x2854b9(0xe1)],'content':this[_0x2854b9(0x293)]['t'](_0x2854b9(0x15c))}),_0x20a3c6['id']===u[_0x2854b9(0x31a)]['SOCKET_FAILED']&&this[_0x2854b9(0x37e)][_0x2854b9(0x36b)]({'type':p['MessageType'][_0x2854b9(0x1c3)],'content':this[_0x2854b9(0x293)]['t'](_0x2854b9(0xe3))}),_0x20a3c6['id']===u[_0x2854b9(0x31a)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x2854b9(0x37e)][_0x2854b9(0x36b)]({'type':p[_0x2854b9(0x22c)]['Error'],'content':this[_0x2854b9(0x293)]['t'](_0x2854b9(0x277))});}));}};Z=kt([y(0x0,O[_0x515691(0x23c)]),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x515691(0x12f)])),y(0x3,O[_0x515691(0x388)]),y(0x4,O[_0x515691(0x300)]),y(0x5,a[_0x515691(0xf3)](a[_0x515691(0x18d)]))],Z);var Ft=Object[_0x515691(0x2a9)],jt=(_0x41ab64,_0xcbaa9d,_0x2877df,_0x56d661)=>{const _0x53b282=_0x515691;for(var _0x3cfb47=_0x56d661>0x1?void 0x0:_0x56d661?Ft(_0xcbaa9d,_0x2877df):_0xcbaa9d,_0x2bb8f0=_0x41ab64[_0x53b282(0x189)]-0x1,_0x2ebc5e;_0x2bb8f0>=0x0;_0x2bb8f0--)(_0x2ebc5e=_0x41ab64[_0x2bb8f0])&&(_0x3cfb47=_0x2ebc5e(_0x3cfb47)||_0x3cfb47);return _0x3cfb47;},z=(_0x12a5c9,_0x1f2586)=>(_0x4f4957,_0x593c05)=>_0x1f2586(_0x4f4957,_0x593c05,_0x12a5c9);let Q=class extends a[_0x515691(0x29e)]{constructor(_0x4b7fea,_0xa5a268,_0x29d889,_0x433a81){const _0x47a760=_0x515691;super(),_(this,'_memberID'),(this[_0x47a760(0xc4)]=_0x4b7fea,this['_httpService']=_0xa5a268,this[_0x47a760(0x172)]=_0x29d889,this[_0x47a760(0x175)]=_0x433a81,this['_init']());}[_0x515691(0x2bd)](){const _0x10340f=_0x515691;this[_0x10340f(0x103)](),this[_0x10340f(0x1a9)](),this['_monkeyPatchLogService'](),this['_initUserListener']();}[_0x515691(0x33c)](){const _0x6697df=_0x515691;this['disposeWithMe'](this[_0x6697df(0x175)][_0x6697df(0xca)]['subscribe'](_0x52f754=>{const _0x13fb8e=_0x6697df;this[_0x13fb8e(0x387)]=_0x52f754==null?void 0x0:_0x52f754[_0x13fb8e(0x17e)];}));}[_0x515691(0x103)](){const _0x5999b6=_0x515691,_0x5dd39f=_0x2696e7=>{const _0x4eb97f=_0x5d58;var _0x58794b;this[_0x4eb97f(0x168)](_0x4eb97f(0x107),_0x4eb97f(0xc2)+_0x2696e7[_0x4eb97f(0x343)]+_0x4eb97f(0x31f)+_0x2696e7[_0x4eb97f(0x20f)]+':'+_0x2696e7[_0x4eb97f(0x2af)]+':'+_0x2696e7['colno']+'\x0a'+(((_0x58794b=_0x2696e7[_0x4eb97f(0x107)])==null?void 0x0:_0x58794b[_0x4eb97f(0x394)])||''));};window['addEventListener'](_0x5999b6(0x107),_0x5dd39f),this['disposeWithMe'](()=>{const _0x204802=_0x5999b6;window['removeEventListener'](_0x204802(0x107),_0x5dd39f);});}[_0x515691(0x1a9)](){const _0x1c0e45=_0x27c499=>{const _0x43e5e8=_0x5d58;this[_0x43e5e8(0x168)](_0x43e5e8(0x107),_0x43e5e8(0x17b)+_0x27c499[_0x43e5e8(0x1a8)]);};window['addEventListener']('unhandledrejection',_0x1c0e45),this['disposeWithMe'](()=>{const _0x1cd4a8=_0x5d58;window['removeEventListener'](_0x1cd4a8(0x10c),_0x1c0e45);});}[_0x515691(0x1f1)](){const _0x41cb2e=_0x515691,_0x5c0da7=this[_0x41cb2e(0x172)][_0x41cb2e(0x107)][_0x41cb2e(0xf4)](this[_0x41cb2e(0x172)]);this[_0x41cb2e(0x172)][_0x41cb2e(0x107)]=(..._0x1cb96a)=>{const _0x55c931=_0x41cb2e,_0x34e2eb=_0x1cb96a['map'](_0xb79345=>_0xb79345 instanceof Error?_0xb79345[_0x55c931(0x343)]+'\x0a'+_0xb79345[_0x55c931(0x394)]:String(_0xb79345))[_0x55c931(0x20e)]('\x20');this[_0x55c931(0x168)]('error',_0x55c931(0x27f)+_0x34e2eb),_0x5c0da7(..._0x1cb96a);},this[_0x41cb2e(0x204)](()=>{this['_logService']['error']=_0x5c0da7;});}['_uploadLog'](_0x252444,_0x3a9aae){const _0x1cea72=_0x515691;try{const _0x1df353={'userId':this['_memberID'],'logLabel':_0x252444,'content':_0x3a9aae};this[_0x1cea72(0x2ea)][_0x1cea72(0x283)](_0x1cea72(0x328),{'body':_0x1df353})[_0x1cea72(0x2c6)](()=>{});}catch{}}};Q=jt([z(0x0,a[_0x515691(0xf3)](a[_0x515691(0x26e)])),z(0x1,a[_0x515691(0xf3)](x[_0x515691(0x243)])),z(0x2,a[_0x515691(0x2dd)]),z(0x3,a['Inject'](u[_0x515691(0x37f)]))],Q);const Yt=_0x515691(0x2a3),Me={};var Ht=Object[_0x515691(0x2a9)],Wt=(_0x3cab94,_0x41f303,_0x18ce58,_0x1903fe)=>{const _0x5ea617=_0x515691;for(var _0xbcc9c6=_0x1903fe>0x1?void 0x0:_0x1903fe?Ht(_0x41f303,_0x18ce58):_0x41f303,_0x46eaa8=_0x3cab94[_0x5ea617(0x189)]-0x1,_0x59c7e4;_0x46eaa8>=0x0;_0x46eaa8--)(_0x59c7e4=_0x3cab94[_0x46eaa8])&&(_0xbcc9c6=_0x59c7e4(_0xbcc9c6)||_0xbcc9c6);return _0xbcc9c6;},Ae=(_0x255dd1,_0x594052)=>(_0x389e4a,_0x1d3206)=>_0x594052(_0x389e4a,_0x1d3206,_0x255dd1);let ee=class{constructor(_0xd17eaf,_0x2c03ac){const _0x4c7d6d=_0x515691;this[_0x4c7d6d(0x2cf)]=_0xd17eaf,this[_0x4c7d6d(0x1ac)]=_0x2c03ac;}['transformIMECache'](_0x647585){const _0x31a69b=_0x515691;this[_0x31a69b(0x234)](_0x647585),this['_transformPreviousActiveRange'](_0x647585);}[_0x515691(0x17d)](_0x3638cf){const _0x38a62a=_0x515691,{unitID:_0x23f158}=_0x3638cf,_0x3cf700=this[_0x38a62a(0x1ac)][_0x38a62a(0x216)](_0x23f158)[_0x38a62a(0x2d8)](C[_0x38a62a(0xed)]),{redoCache:_0x3e5a82}=_0x3cf700['getUndoRedoMutationParamsCache']();if(_0x3e5a82['length']===0x0)return _0x3638cf;let _0x46250b=a[_0x38a62a(0x166)]['deepClone'](_0x3638cf[_0x38a62a(0x185)][0x0]);for(let _0xdaef88=0x0;_0xdaef88<_0x3e5a82[_0x38a62a(0x189)];_0xdaef88++){const _0x12d491={'id':_0x38a62a(0xe2),'params':{..._0x3e5a82[_0xdaef88]}},_0x558c87=this[_0x38a62a(0x2cf)][_0x38a62a(0x184)](_0x46250b,_0x12d491,!0x1);if(v['isTransformMutationFailure'](_0x558c87))throw _0x558c87['error'];_0x46250b=_0x558c87[_0x38a62a(0x360)];}return{...a[_0x38a62a(0x166)][_0x38a62a(0x135)](_0x3638cf),'mutations':[_0x46250b]};}[_0x515691(0x234)](_0x4df03c){const _0x412b4d=_0x515691,{unitID:_0x403bb0}=_0x4df03c,_0x588367=this[_0x412b4d(0x1ac)][_0x412b4d(0x216)](_0x403bb0)[_0x412b4d(0x2d8)](C[_0x412b4d(0xed)]),{undoCache:_0x51a47f,redoCache:_0x54678a}=_0x588367[_0x412b4d(0xce)]();if(_0x51a47f['length']===0x0||_0x54678a[_0x412b4d(0x189)]===0x0)return;const _0x2ec468=[],_0x3eb5ce=[];let _0x20930c=a[_0x412b4d(0x166)]['deepClone'](_0x4df03c['mutations'][0x0]),_0x2b26b2=a[_0x412b4d(0x166)][_0x412b4d(0x135)](_0x4df03c[_0x412b4d(0x185)][0x0]);for(let _0x3ad488=_0x51a47f[_0x412b4d(0x189)]-0x1;_0x3ad488>=0x0;_0x3ad488--){const _0x3c3599={'id':'doc.mutation.rich-text-editing','params':{..._0x51a47f[_0x3ad488]}},_0x1b56d3={'id':_0x412b4d(0xe2),'params':{..._0x54678a[_0x3ad488]}},_0x1df20c=this[_0x412b4d(0x2cf)][_0x412b4d(0x184)](_0x20930c,_0x3c3599,!0x1),_0x408548=this['_transformService']['transformMutation'](_0x2b26b2,_0x1b56d3,!0x1);if(v[_0x412b4d(0x338)](_0x1df20c))throw _0x1df20c['error'];if(v[_0x412b4d(0x338)](_0x408548))throw _0x408548[_0x412b4d(0x107)];_0x2ec468[_0x412b4d(0x109)](_0x1df20c[_0x412b4d(0x27a)][_0x412b4d(0x181)]),_0x3eb5ce[_0x412b4d(0x109)](_0x408548[_0x412b4d(0x27a)][_0x412b4d(0x181)]),_0x20930c=_0x1df20c[_0x412b4d(0x360)],_0x2b26b2=_0x408548['m1Prime'];}_0x588367['setUndoRedoMutationParamsCache']({'undoCache':_0x2ec468,'redoCache':_0x3eb5ce});}[_0x515691(0x299)](_0xd9cbef){const _0x2bd4df=_0x515691,{unitID:_0x83b9c7}=_0xd9cbef,_0x30b842=this[_0x2bd4df(0x1ac)][_0x2bd4df(0x216)](_0x83b9c7)['with'](C[_0x2bd4df(0xed)]),_0x1b11e8=_0x30b842[_0x2bd4df(0x256)]();if(_0x1b11e8==null)return;const _0x26c4e9=[{'id':_0x2bd4df(0xe2),'params':{'unitId':_0xd9cbef[_0x2bd4df(0x17a)],'actions':null,'textRanges':[_0x1b11e8]}}],_0x18bf44=this['_transformService'][_0x2bd4df(0x20c)](_0xd9cbef,_0x26c4e9);if(!v['isTransformMutationsWithChangesetSuccess'](_0x18bf44))throw _0x18bf44[_0x2bd4df(0x107)];const _0xc1aab7=_0x18bf44['m2Prime'][0x0][_0x2bd4df(0x181)]['textRanges'];Array[_0x2bd4df(0x2ef)](_0xc1aab7)&&_0xc1aab7[_0x2bd4df(0x189)]&&_0x30b842[_0x2bd4df(0xb9)](_0xc1aab7[0x0]);}};ee=Wt([Ae(0x0,v[_0x515691(0x301)]),Ae(0x1,T['IRenderManagerService'])],ee);var Vt=Object[_0x515691(0x2a9)],Gt=(_0x4a648a,_0x580a95,_0xa249ca,_0x208827)=>{const _0x5f43ee=_0x515691;for(var _0x478685=_0x208827>0x1?void 0x0:_0x208827?Vt(_0x580a95,_0xa249ca):_0x580a95,_0x501b4b=_0x4a648a[_0x5f43ee(0x189)]-0x1,_0x1735ca;_0x501b4b>=0x0;_0x501b4b--)(_0x1735ca=_0x4a648a[_0x501b4b])&&(_0x478685=_0x1735ca(_0x478685)||_0x478685);return _0x478685;},Ie=(_0xdb7c36,_0x2bbdcb)=>(_0x8070c6,_0x1476e5)=>_0x2bbdcb(_0x8070c6,_0x1476e5,_0xdb7c36);let te=class{constructor(_0x284171,_0x299a6f,_0x43e0e3){const _0x5aec6c=_0x515691;this['_injector']=_0x284171,this[_0x5aec6c(0x2cf)]=_0x299a6f,this['_docStateChangeManagerService']=_0x43e0e3;}[_0x515691(0x2e4)](_0x236f13){this['_transformHistoryAndStateStack'](_0x236f13);}[_0x515691(0x17d)](_0x8afd3d){const _0x244789=_0x515691,{unitID:_0x5974d4}=_0x8afd3d,{collaboration:_0x388a30}=this[_0x244789(0x351)][_0x244789(0x230)](_0x5974d4);if(_0x388a30[_0x244789(0x189)]===0x0)return _0x8afd3d;let _0x3fc0de=a[_0x244789(0x166)][_0x244789(0x135)](_0x8afd3d[_0x244789(0x185)][0x0]);for(let _0x49ba5d=0x0;_0x49ba5d<_0x388a30[_0x244789(0x189)];_0x49ba5d++){const _0xd10dec={'id':_0x244789(0xe2),'params':{'unitId':_0x388a30[_0x49ba5d][_0x244789(0x26d)],..._0x388a30[_0x49ba5d][_0x244789(0x274)]}},_0x3b1147=this[_0x244789(0x2cf)]['transformMutation'](_0x3fc0de,_0xd10dec,!0x1);if(v[_0x244789(0x338)](_0x3b1147))throw _0x3b1147[_0x244789(0x107)];_0x3fc0de=_0x3b1147['m1Prime'];}return{...a[_0x244789(0x166)][_0x244789(0x135)](_0x8afd3d),'mutations':[_0x3fc0de]};}[_0x515691(0x162)](_0xa103f2){const _0x51d86b=_0x515691,{unitID:_0x3bba24}=_0xa103f2,{history:_0x1b5104,collaboration:_0x175125}=this[_0x51d86b(0x351)][_0x51d86b(0x230)](_0x3bba24);if(_0x1b5104[_0x51d86b(0x189)]===0x0&&_0x175125[_0x51d86b(0x189)]===0x0)return;const _0x3fced1=[],_0x32a06e=[];let _0x43ba17=a[_0x51d86b(0x166)][_0x51d86b(0x135)](_0xa103f2['mutations'][0x0]),_0xc0356b=a[_0x51d86b(0x166)][_0x51d86b(0x135)](_0xa103f2[_0x51d86b(0x185)][0x0]);for(let _0x319bb9=_0x1b5104['length']-0x1;_0x319bb9>=0x0;_0x319bb9--){const _0x1aa05d={'id':_0x51d86b(0xe2),'params':{'unitId':_0x1b5104[_0x319bb9][_0x51d86b(0x26d)],..._0x1b5104[_0x319bb9][_0x51d86b(0x1b3)]}},_0x321165={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b5104[_0x319bb9][_0x51d86b(0x26d)],..._0x1b5104[_0x319bb9][_0x51d86b(0x274)]}},_0x321ced=this['_transformService'][_0x51d86b(0x184)](_0x43ba17,_0x1aa05d,!0x1),_0x166510=this[_0x51d86b(0x2cf)][_0x51d86b(0x184)](_0xc0356b,_0x321165,!0x1);if(v[_0x51d86b(0x338)](_0x321ced))throw _0x321ced[_0x51d86b(0x107)];if(v[_0x51d86b(0x338)](_0x166510))throw _0x166510[_0x51d86b(0x107)];_0x3fced1[_0x51d86b(0x109)]({..._0x1b5104[_0x319bb9],'undoState':_0x321ced['m2Prime'][_0x51d86b(0x181)],'redoState':_0x166510[_0x51d86b(0x27a)][_0x51d86b(0x181)]}),_0x43ba17=_0x321ced['m1Prime'],_0xc0356b=_0x166510[_0x51d86b(0x360)];}_0x43ba17=a[_0x51d86b(0x166)]['deepClone'](_0xa103f2[_0x51d86b(0x185)][0x0]),_0xc0356b=a[_0x51d86b(0x166)][_0x51d86b(0x135)](_0xa103f2[_0x51d86b(0x185)][0x0]);for(let _0x2f7075=_0x175125['length']-0x1;_0x2f7075>=0x0;_0x2f7075--){const _0x257d7e={'id':_0x51d86b(0xe2),'params':{'unitId':_0x175125[_0x2f7075][_0x51d86b(0x26d)],..._0x175125[_0x2f7075][_0x51d86b(0x1b3)]}},_0x20af9c={'id':_0x51d86b(0xe2),'params':{'unitId':_0x175125[_0x2f7075][_0x51d86b(0x26d)],..._0x175125[_0x2f7075][_0x51d86b(0x274)]}},_0x4b5b6b=this[_0x51d86b(0x2cf)]['transformMutation'](_0x43ba17,_0x257d7e,!0x1),_0x21e093=this[_0x51d86b(0x2cf)][_0x51d86b(0x184)](_0xc0356b,_0x20af9c,!0x1);if(v['isTransformMutationFailure'](_0x4b5b6b))throw _0x4b5b6b[_0x51d86b(0x107)];if(v[_0x51d86b(0x338)](_0x21e093))throw _0x21e093[_0x51d86b(0x107)];_0x32a06e['unshift']({..._0x175125[_0x2f7075],'undoState':_0x4b5b6b[_0x51d86b(0x27a)]['params'],'redoState':_0x21e093[_0x51d86b(0x27a)][_0x51d86b(0x181)]}),_0x43ba17=_0x4b5b6b[_0x51d86b(0x360)],_0xc0356b=_0x21e093[_0x51d86b(0x360)];}this[_0x51d86b(0x351)][_0x51d86b(0x2b4)](_0x3bba24,{'history':_0x3fced1,'collaboration':_0x32a06e});}};te=Gt([Ie(0x0,a[_0x515691(0xf3)](a['Injector'])),Ie(0x1,v['ITransformService']),Ie(0x2,a[_0x515691(0xf3)](C['DocStateChangeManagerService']))],te);var Xt=Object[_0x515691(0x2a9)],Kt=(_0x1a7287,_0x54b116,_0x208df2,_0x410fc0)=>{const _0x43ef28=_0x515691;for(var _0xc1ac3a=_0x410fc0>0x1?void 0x0:_0x410fc0?Xt(_0x54b116,_0x208df2):_0x54b116,_0x5548f1=_0x1a7287[_0x43ef28(0x189)]-0x1,_0x350a86;_0x5548f1>=0x0;_0x5548f1--)(_0x350a86=_0x1a7287[_0x5548f1])&&(_0xc1ac3a=_0x350a86(_0xc1ac3a)||_0xc1ac3a);return _0xc1ac3a;},Pe=(_0x575516,_0x47a49e)=>(_0x4ce937,_0x2082c2)=>_0x47a49e(_0x4ce937,_0x2082c2,_0x575516);let ie=class{constructor(_0x46e766,_0x4beeb5){const _0x14eb06=_0x515691;this[_0x14eb06(0xc4)]=_0x46e766,this[_0x14eb06(0x2cf)]=_0x4beeb5;}[_0x515691(0x188)](_0x2a541d){const _0x4f8655=_0x515691;var _0x42e17f;const _0x26ad43=this[_0x4f8655(0xc4)][_0x4f8655(0x1be)](V[_0x4f8655(0x128)]),_0x23ed05=(_0x42e17f=_0x26ad43[_0x4f8655(0x35c)]())!=null?_0x42e17f:[];if(_0x23ed05[_0x4f8655(0x189)]===0x0)return;const _0x4304ba=_0x2a541d['unitID'],_0x2bd45e=[{'id':_0x4f8655(0xe2),'params':{'unitId':_0x4304ba,'actions':null,'textRanges':_0x23ed05}}],_0x537a1b=this['_transformService'][_0x4f8655(0x20c)](_0x2a541d,_0x2bd45e);if(!v[_0x4f8655(0xe7)](_0x537a1b))throw _0x537a1b[_0x4f8655(0x107)];const _0x123837=_0x537a1b[_0x4f8655(0x27a)][0x0][_0x4f8655(0x181)][_0x4f8655(0x2f3)];Array[_0x4f8655(0x2ef)](_0x123837)&&_0x123837[_0x4f8655(0x189)]&&_0x26ad43[_0x4f8655(0x1e3)](_0x123837,{'unitId':_0x4304ba,'subUnitId':_0x4304ba},!0x1);}};ie=Kt([Pe(0x0,a['Inject'](a[_0x515691(0x26e)])),Pe(0x1,v[_0x515691(0x301)])],ie);var qt=Object['getOwnPropertyDescriptor'],zt=(_0xf8594f,_0x3b7113,_0x427cc9,_0x1495b4)=>{const _0x185bbb=_0x515691;for(var _0x3f9f93=_0x1495b4>0x1?void 0x0:_0x1495b4?qt(_0x3b7113,_0x427cc9):_0x3b7113,_0x381f03=_0xf8594f[_0x185bbb(0x189)]-0x1,_0x1ed2a8;_0x381f03>=0x0;_0x381f03--)(_0x1ed2a8=_0xf8594f[_0x381f03])&&(_0x3f9f93=_0x1ed2a8(_0x3f9f93)||_0x3f9f93);return _0x3f9f93;},N=(_0x436d01,_0x5bfd53)=>(_0x12cee0,_0x5c0db3)=>_0x5bfd53(_0x12cee0,_0x5c0db3,_0x436d01);let se=class extends a[_0x515691(0x29e)]{constructor(_0x4bdcbb,_0x1cee69,_0x3a204f,_0x13d09d,_0x1805ad,_0x196a96,_0x46d710,_0x3d6fc2){const _0x5100da=_0x515691;super(),_(this,_0x5100da(0x108),new I[(_0x5100da(0x17c))](u[_0x5100da(0x1d9)][_0x5100da(0x2ab)])),(this[_0x5100da(0x351)]=_0x4bdcbb,this[_0x5100da(0x101)]=_0x1cee69,this[_0x5100da(0xcc)]=_0x3a204f,this[_0x5100da(0x1ad)]=_0x13d09d,this[_0x5100da(0xd8)]=_0x1805ad,this[_0x5100da(0xdb)]=_0x196a96,this[_0x5100da(0x37e)]=_0x46d710,this[_0x5100da(0x293)]=_0x3d6fc2,this[_0x5100da(0x1de)]());}[_0x515691(0x1de)](){const _0x327c2d=_0x515691;this[_0x327c2d(0x204)](this['_collaborationController'][_0x327c2d(0xdd)][_0x327c2d(0xe4)](_0x527c46=>{const _0x24eb01=_0x327c2d,_0x95afe7=this['_docStateChangeManagerService']['docStateChange$'][_0x24eb01(0xe4)](_0x3a4a8a=>{const _0x87315=_0x24eb01;if(_0x3a4a8a==null)return;const {unitId:_0x262013,redoState:_0xe6943a,commandId:_0x10b7a2}=_0x3a4a8a;if(_0x262013!==_0x527c46[_0x87315(0x17a)])return;const _0x3bb2f3={'id':_0x10b7a2,'type':a[_0x87315(0x396)][_0x87315(0x291)],'params':{'unitId':_0x262013,'actions':_0xe6943a[_0x87315(0x364)],'textRanges':null}};_0x527c46[_0x87315(0x2e7)](_0x3bb2f3);});if(_0x527c46[_0x24eb01(0x204)](_0x95afe7),_0x527c46 instanceof u[_0x24eb01(0x25a)]){const _0x1413a3={'onTransformIME':_0xa3aa4d=>this[_0x24eb01(0xcc)][_0x24eb01(0x1fb)](_0xa3aa4d),'onTransformState':_0x2d4b34=>this[_0x24eb01(0x1ad)]['transformStateCache'](_0x2d4b34),'onTransformSelections':_0x27fb95=>this[_0x24eb01(0xd8)][_0x24eb01(0x188)](_0x27fb95),'onSyncEditingCollabCursor':_0x396160=>this[_0x24eb01(0xdb)][_0x24eb01(0x119)](_0x396160),'onTransformRemoteChangesetByIMECache':_0x4b1bbd=>this[_0x24eb01(0xcc)][_0x24eb01(0x17d)](_0x4b1bbd),'onTransformRemoteChangesetByStateCache':_0x24b56c=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x24b56c)};_0x527c46[_0x24eb01(0x100)](_0x1413a3);}}));}};se=zt([N(0x0,a[_0x515691(0xf3)](C[_0x515691(0x382)])),N(0x1,a[_0x515691(0xf3)](u[_0x515691(0xc8)])),N(0x2,a[_0x515691(0xf3)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x515691(0xf3)](ie)),N(0x5,a['Inject'](Re)),N(0x6,O[_0x515691(0x388)]),N(0x7,a[_0x515691(0xf3)](a[_0x515691(0x18d)]))],se);var G=(_0x2f182a=>(_0x2f182a[_0x2f182a[_0x515691(0x2cb)]=0x0]='UNDEFINED',_0x2f182a[_0x2f182a['OK']=0x1]='OK',_0x2f182a[_0x2f182a[_0x515691(0x155)]=0x2]=_0x515691(0x155),_0x2f182a[_0x2f182a[_0x515691(0x1f9)]=0x3]=_0x515691(0x1f9),_0x2f182a[_0x2f182a[_0x515691(0x30b)]=0x4]='NOT_FOUND',_0x2f182a[_0x2f182a['UNAUTHENTICATED']=0x5]=_0x515691(0x120),_0x2f182a[_0x2f182a[_0x515691(0x113)]=0x6]='ALREADY_EXISTS',_0x2f182a[_0x2f182a['INVALID_ARGUMENT']=0x7]=_0x515691(0x24f),_0x2f182a[_0x2f182a[_0x515691(0x30f)]=0x8]=_0x515691(0x30f),_0x2f182a[_0x2f182a[_0x515691(0x332)]=0x9]=_0x515691(0x332),_0x2f182a[_0x2f182a[_0x515691(0x1ba)]=0xa]=_0x515691(0x1ba),_0x2f182a[_0x2f182a[_0x515691(0x32c)]=0xb]=_0x515691(0x32c),_0x2f182a[_0x2f182a[_0x515691(0x102)]=0xc]=_0x515691(0x102),_0x2f182a[_0x2f182a[_0x515691(0x310)]=0xd]=_0x515691(0x310),_0x2f182a[_0x2f182a[_0x515691(0x1fd)]=0xe]=_0x515691(0x1fd),_0x2f182a[_0x2f182a[_0x515691(0x319)]=0xf]=_0x515691(0x319),_0x2f182a[_0x2f182a[_0x515691(0x327)]=0x10]=_0x515691(0x327),_0x2f182a[_0x2f182a[_0x515691(0x11d)]=0x64]=_0x515691(0x11d),_0x2f182a[_0x2f182a[_0x515691(0x276)]=0x65]=_0x515691(0x276),_0x2f182a[_0x2f182a[_0x515691(0x12a)]=0xc9]=_0x515691(0x12a),_0x2f182a[_0x2f182a[_0x515691(0x160)]=0xca]='USER_IS_ANONYMOUS',_0x2f182a[_0x2f182a[_0x515691(0x238)]=0x1389]=_0x515691(0x238),_0x2f182a[_0x2f182a['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2f182a[_0x2f182a['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2f182a[_0x2f182a[_0x515691(0x312)]=0x1773]=_0x515691(0x312),_0x2f182a[_0x2f182a[_0x515691(0x29d)]=0x1b59]=_0x515691(0x29d),_0x2f182a[_0x2f182a[_0x515691(0x1cd)]=0x1b5a]=_0x515691(0x1cd),_0x2f182a[_0x2f182a[_0x515691(0x11a)]=0x1b5b]=_0x515691(0x11a),_0x2f182a[_0x2f182a[_0x515691(0x287)]=0x1b5c]=_0x515691(0x287),_0x2f182a[_0x2f182a[_0x515691(0x220)]=0x1b5d]=_0x515691(0x220),_0x2f182a[_0x2f182a[_0x515691(0xee)]=0x1f41]=_0x515691(0xee),_0x2f182a[_0x2f182a[_0x515691(0x280)]=0x2329]=_0x515691(0x280),_0x2f182a[_0x2f182a['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2f182a[_0x2f182a[_0x515691(0x196)]=0x232b]=_0x515691(0x196),_0x2f182a[_0x2f182a['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x515691(0x271),_0x2f182a[_0x2f182a['LICENSE_DISTRO_REJECTED']=0x232d]=_0x515691(0xff),_0x2f182a[_0x2f182a[_0x515691(0x2fb)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2f182a[_0x2f182a[_0x515691(0x292)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2f182a[_0x2f182a[_0x515691(0x2d7)]=0x2713]=_0x515691(0x2d7),_0x2f182a[_0x2f182a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2f182a[_0x2f182a['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x515691(0x2e1),_0x2f182a[_0x2f182a[_0x515691(0x341)]=0x271b]=_0x515691(0x341),_0x2f182a[_0x2f182a[_0x515691(0x1ce)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2f182a[_0x2f182a[_0x515691(0x143)]=0x271d]=_0x515691(0x143),_0x2f182a[_0x2f182a[_0x515691(0x214)]=0x271e]=_0x515691(0x214),_0x2f182a[_0x2f182a[_0x515691(0x2e8)]=0x271f]=_0x515691(0x2e8),_0x2f182a[_0x2f182a['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x515691(0x241),_0x2f182a[_0x2f182a[_0x515691(0x35d)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2f182a[_0x2f182a[_0x515691(0x164)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2f182a[_0x2f182a['INVALID_INVITE_CODE']=0x2ee2]=_0x515691(0x170),_0x2f182a[_0x2f182a[_0x515691(0x12d)]=0x2ee3]=_0x515691(0x12d),_0x2f182a[_0x2f182a['USER_NOT_INVITED_CODE']=0x2ee4]=_0x515691(0x137),_0x2f182a[_0x2f182a[_0x515691(0xd2)]=0x2ee5]=_0x515691(0xd2),_0x2f182a[_0x2f182a[_0x515691(0x336)]=0x32c9]=_0x515691(0x336),_0x2f182a[_0x2f182a['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x515691(0x368),_0x2f182a[_0x2f182a[_0x515691(0x2ce)]=0x32cb]=_0x515691(0x2ce),_0x2f182a[_0x2f182a[_0x515691(0x206)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2f182a[_0x2f182a[_0x515691(0xe9)]=0x36b2]=_0x515691(0xe9),_0x2f182a[_0x2f182a[_0x515691(0xcd)]=0x36b3]=_0x515691(0xcd),_0x2f182a[_0x2f182a[_0x515691(0x14e)]=0x36b4]=_0x515691(0x14e),_0x2f182a[_0x2f182a[_0x515691(0x32f)]=0x36b5]=_0x515691(0x32f),_0x2f182a[_0x2f182a['ENTITLE_COUPON_EXPIRED']=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x2f182a[_0x2f182a[_0x515691(0x209)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x2f182a[_0x2f182a[_0x515691(0x311)]=0x36b8]=_0x515691(0x311),_0x2f182a[_0x2f182a['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x515691(0x346),_0x2f182a[_0x2f182a[_0x515691(0x377)]=0x3716]=_0x515691(0x377),_0x2f182a[_0x2f182a[_0x515691(0xd5)]=0x3717]=_0x515691(0xd5),_0x2f182a[_0x2f182a[_0x515691(0x1d2)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x2f182a[_0x2f182a['REDEMPTION_INVALID_CODE']=0x3a99]=_0x515691(0x1c1),_0x2f182a[_0x2f182a['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x515691(0x261),_0x2f182a[_0x2f182a[_0x515691(0xf8)]=0x3a9b]=_0x515691(0xf8),_0x2f182a[_0x2f182a[_0x515691(0x116)]=0x3a9c]=_0x515691(0x116),_0x2f182a[_0x2f182a[_0x515691(0x2d2)]=0x3a9d]=_0x515691(0x2d2),_0x2f182a[_0x2f182a['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x515691(0x193),_0x2f182a[_0x2f182a[_0x515691(0x1ab)]=0x3a9f]=_0x515691(0x1ab),_0x2f182a[_0x2f182a[_0x515691(0x284)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2f182a[_0x2f182a['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x2f182a))(G||{});function Jt(_0x1a0c52){const _0x528569=_0x515691;var _0x5ef659,_0x46fc1a;const _0x2f6e6b=(_0x5ef659=_0x1a0c52[_0x528569(0xdf)])==null?void 0x0:_0x5ef659[_0x528569(0x2b0)],_0x5182ba=((_0x46fc1a=_0x1a0c52[_0x528569(0xdf)])==null?void 0x0:_0x46fc1a[_0x528569(0x2aa)])||0x0;return _0x2f6e6b===B[_0x528569(0x359)][_0x528569(0x356)]&&_0x5182ba>0x0;}function Zt(_0x38917b){const _0x1472e1=_0x515691;return _0x38917b[_0x1472e1(0x1d1)]===B['FormulaExecutedStateType'][_0x1472e1(0x29c)];}var Qt=Object[_0x515691(0x2a9)],ei=(_0x5a2cc4,_0x512b59,_0x4a4641,_0x4fcafd)=>{const _0x46abd8=_0x515691;for(var _0x51da2a=_0x4fcafd>0x1?void 0x0:_0x4fcafd?Qt(_0x512b59,_0x4a4641):_0x512b59,_0x582729=_0x5a2cc4[_0x46abd8(0x189)]-0x1,_0x444baf;_0x582729>=0x0;_0x582729--)(_0x444baf=_0x5a2cc4[_0x582729])&&(_0x51da2a=_0x444baf(_0x51da2a)||_0x51da2a);return _0x51da2a;},L=(_0x5a500a,_0x5f0b2b)=>(_0x2245b2,_0x479464)=>_0x5f0b2b(_0x2245b2,_0x479464,_0x5a500a);const ti=_0x515691(0x199),ii=_0x515691(0x194),si=_0x515691(0x1c6);let ne=class extends a[_0x515691(0x29e)]{constructor(_0x4974ee,_0xfe9f69,_0x1c37cc,_0x10a8f9,_0x1655de,_0x4880cb,_0x366f6b){const _0x47ff59=_0x515691;super(),_(this,_0x47ff59(0x355),null),_(this,_0x47ff59(0x1ff),0x0),_(this,_0x47ff59(0x208),0x0),_(this,'_taskIds',[]),_(this,_0x47ff59(0x138),0x0),(this[_0x47ff59(0x37e)]=_0x4974ee,this[_0x47ff59(0x397)]=_0xfe9f69,this[_0x47ff59(0x201)]=_0x1c37cc,this['_httpService']=_0x10a8f9,this[_0x47ff59(0x28d)]=_0x1655de,this[_0x47ff59(0x172)]=_0x4880cb,this[_0x47ff59(0x293)]=_0x366f6b,this[_0x47ff59(0x1ea)]());}[_0x515691(0x1ea)](){const _0x28bb49=_0x515691;this[_0x28bb49(0x204)](this[_0x28bb49(0x397)][_0x28bb49(0x18c)]((_0x407e83,_0x12a42c)=>{const _0x157415=_0x28bb49;var _0x4c402f;if(_0x407e83['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x2381e1=_0x407e83[_0x157415(0x181)];if(!this[_0x157415(0x374)]((_0x4c402f=_0x2381e1[_0x157415(0x13f)])!=null?_0x4c402f:[]))return;if(!this[_0x157415(0x337)]())throw this['_checkAndWaitForCalculationPermission'](_0x407e83,_0x12a42c),this[_0x157415(0x345)](),new a[(_0x157415(0x384))]();})),this[_0x28bb49(0x204)](this[_0x28bb49(0x397)][_0x28bb49(0x19b)]((_0x8b902b,_0x1b6c1f)=>{const _0x24b889=_0x28bb49;if(_0x8b902b['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x23212d=_0x8b902b[_0x24b889(0x181)];if(Jt(_0x23212d)){const _0x59f308=a[_0x24b889(0x34e)]();this[_0x24b889(0x1c0)][_0x24b889(0x19a)](_0x59f308),this[_0x24b889(0x180)](_0x59f308);}else{if(Zt(_0x23212d)&&this['_taskIds'][_0x24b889(0x189)]>0x0){const _0x49d0b2=this[_0x24b889(0x1c0)][_0x24b889(0x31b)]();this[_0x24b889(0x33d)](_0x49d0b2);}}}));}[_0x515691(0x37b)](){const _0x54119a=_0x515691;super['dispose'](),this[_0x54119a(0x244)](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x54119a(0x1ff)]=0x0,this[_0x54119a(0x138)]=0x0;}async[_0x515691(0x18f)](_0x1eda40,_0x390ff3){const _0x267d0d=_0x515691;for(let _0x257e83=0x0;_0x257e83<0x1e;_0x257e83++)try{if(await this['_getFormulaLimitStatus'](),this[_0x267d0d(0x337)]()){this[_0x267d0d(0x221)](_0x1eda40,_0x390ff3),this['_messageService'][_0x267d0d(0x36b)]({'content':this[_0x267d0d(0x293)]['t']('formula.calculation.started'),'type':p['MessageType']['Success']});return;}await new Promise(_0x5857b8=>{const _0x1df0f2=_0x267d0d;this['_pollingInterval']=window[_0x1df0f2(0x2c5)](_0x5857b8,0x3e8);});}catch(_0x1eafa5){this[_0x267d0d(0x172)][_0x267d0d(0x107)](_0x1eafa5);}this[_0x267d0d(0x37e)][_0x267d0d(0x36b)]({'content':this[_0x267d0d(0x293)]['t'](_0x267d0d(0x2e0)),'type':p['MessageType'][_0x267d0d(0x1c3)]});}['_applyCommand'](_0x40f1bf,_0x15e610){const _0x4266da=_0x515691;try{this[_0x4266da(0x397)][_0x4266da(0x2c0)](_0x40f1bf['id'],_0x40f1bf[_0x4266da(0x181)],_0x15e610);}catch(_0x2dc7af){this[_0x4266da(0x172)][_0x4266da(0x107)](_0x2dc7af);}}[_0x515691(0x259)](_0x580dcb,_0x338eac){const _0x5d80f0=_0x515691;_0x338eac<this[_0x5d80f0(0x138)]||(this[_0x5d80f0(0x138)]=_0x338eac,this[_0x5d80f0(0x1ff)]=Number[_0x5d80f0(0x24c)](_0x580dcb[_0x5d80f0(0xd0)]),this[_0x5d80f0(0x208)]=Number[_0x5d80f0(0x24c)](_0x580dcb[_0x5d80f0(0x186)]));}async[_0x515691(0x180)](_0x591b4e){const _0x2dd9bd=_0x515691;var _0x57b69b,_0x4f8337;const _0x2eb316=Date[_0x2dd9bd(0x245)]();try{const _0x3594e1=((_0x57b69b=this[_0x2dd9bd(0x201)]['getConfig'](u[_0x2dd9bd(0x2a7)]))==null?void 0x0:_0x57b69b[_0x2dd9bd(0x1e9)])||ii,_0x350113=(await this[_0x2dd9bd(0x2ea)][_0x2dd9bd(0x283)](_0x3594e1,{'body':JSON['stringify']({'taskId':_0x591b4e})}))[_0x2dd9bd(0x136)];if(((_0x4f8337=_0x350113['error'])==null?void 0x0:_0x4f8337[_0x2dd9bd(0x111)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x350113[_0x2dd9bd(0x38a)],_0x2eb316);}catch(_0x5ade73){this[_0x2dd9bd(0x172)][_0x2dd9bd(0x107)](_0x5ade73);}}async[_0x515691(0xb7)](_0x286656){const _0x58d2af=_0x515691;var _0x3324fc,_0x10f255;const _0x1b1f58=Date['now']();try{const _0x1c903a=((_0x3324fc=this[_0x58d2af(0x201)][_0x58d2af(0x2a0)](u[_0x58d2af(0x2a7)]))==null?void 0x0:_0x3324fc['getFormulaLimitStatusUrl'])||ti,_0x2dda8f=_0x286656?_0x1c903a+_0x58d2af(0x2f5)+encodeURIComponent(_0x286656):_0x1c903a,_0x2074bf=(await this[_0x58d2af(0x2ea)][_0x58d2af(0x1be)](_0x2dda8f))[_0x58d2af(0x136)];if(((_0x10f255=_0x2074bf[_0x58d2af(0x107)])==null?void 0x0:_0x10f255[_0x58d2af(0x111)])!==G['OK'])return;this[_0x58d2af(0x259)](_0x2074bf[_0x58d2af(0x38a)],_0x1b1f58);}catch(_0x126740){this[_0x58d2af(0x172)][_0x58d2af(0x107)](_0x126740);}}async[_0x515691(0x33d)](_0x21ebed){const _0xf60bce=_0x515691;var _0x58ea16,_0xc06195;const _0x4edb6d=Date[_0xf60bce(0x245)]();try{const _0x397493=((_0x58ea16=this['_configService']['getConfig'](u[_0xf60bce(0x2a7)]))==null?void 0x0:_0x58ea16['releaseFormulaLimitUrl'])||si,_0x3a2e20=(await this[_0xf60bce(0x2ea)][_0xf60bce(0x283)](_0x397493,{'body':JSON['stringify']({'taskId':_0x21ebed})}))[_0xf60bce(0x136)];if(((_0xc06195=_0x3a2e20['error'])==null?void 0x0:_0xc06195['code'])!==G['OK'])return;this[_0xf60bce(0x259)](_0x3a2e20['limitInfo'],_0x4edb6d);}catch(_0x21d6cc){this['_logService']['error'](_0x21d6cc);}}[_0x515691(0x337)](){const _0x46dd97=_0x515691;return this[_0x46dd97(0x1ff)]===0x0?!0x0:this[_0x46dd97(0x1ff)]-this[_0x46dd97(0x208)]>0x0;}[_0x515691(0x244)](){const _0x3370e2=_0x515691;this[_0x3370e2(0x355)]&&(clearTimeout(this[_0x3370e2(0x355)]),this[_0x3370e2(0x355)]=null);}['_showGuardMessage'](){const _0x50dd56=_0x515691;this[_0x50dd56(0x37e)][_0x50dd56(0x36b)]({'content':this['_localeService']['t'](_0x50dd56(0x20b)),'type':p[_0x50dd56(0x22c)]['Loading']});}['_hasFormulaInDirtyRanges'](_0x58806c){const _0x49f5ca=_0x515691;for(const _0x55b319 of _0x58806c){const {unitId:_0x258bfc,sheetId:_0x2c5da6,range:_0x30d439}=_0x55b319,_0x5ea1b2=this[_0x49f5ca(0x28d)]['getUnit'](_0x258bfc);if(!_0x5ea1b2)continue;const _0x598539=_0x5ea1b2[_0x49f5ca(0x24e)](_0x2c5da6);if(!_0x598539)continue;const _0x42d220=_0x598539['getCellMatrix']();for(let _0x1db8ad=_0x30d439[_0x49f5ca(0x121)];_0x1db8ad<=_0x30d439[_0x49f5ca(0x38f)];_0x1db8ad++)for(let _0x358249=_0x30d439['startColumn'];_0x358249<=_0x30d439['endColumn'];_0x358249++){const _0x50518f=_0x42d220[_0x49f5ca(0x2ee)](_0x1db8ad,_0x358249);if(_0x50518f&&(a[_0x49f5ca(0x289)](_0x50518f['f'])||a[_0x49f5ca(0x17f)](_0x50518f['si'])))return!0x0;}}return!0x1;}};ne=ei([L(0x0,a[_0x515691(0xf3)](O[_0x515691(0x388)])),L(0x1,a[_0x515691(0x347)]),L(0x2,a['IConfigService']),L(0x3,a[_0x515691(0xf3)](x[_0x515691(0x243)])),L(0x4,a[_0x515691(0x2ae)]),L(0x5,a[_0x515691(0x2dd)]),L(0x6,a['Inject'](a[_0x515691(0x18d)]))],ne);var ni=Object[_0x515691(0x2a9)],ri=(_0x15af2a,_0x27072f,_0x30d781,_0x1b76e1)=>{const _0x44ae5e=_0x515691;for(var _0x1a4dd7=_0x1b76e1>0x1?void 0x0:_0x1b76e1?ni(_0x27072f,_0x30d781):_0x27072f,_0x301565=_0x15af2a[_0x44ae5e(0x189)]-0x1,_0x2f5e1d;_0x301565>=0x0;_0x301565--)(_0x2f5e1d=_0x15af2a[_0x301565])&&(_0x1a4dd7=_0x2f5e1d(_0x1a4dd7)||_0x1a4dd7);return _0x1a4dd7;},de=(_0x30cb7e,_0x14fa09)=>(_0x2829a3,_0x218ac9)=>_0x14fa09(_0x2829a3,_0x218ac9,_0x30cb7e);let Ce=class extends a['Disposable']{constructor(_0x58423a,_0x3c918b,_0x146b3c){const _0x574983=_0x515691;super(),_(this,_0x574983(0x389),new Map()),_(this,_0x574983(0x15d),new Map()),_(this,_0x574983(0x307),!0x1),(this['_configService']=_0x58423a,this['_localStorageService']=_0x3c918b,this[_0x574983(0x14c)]=_0x146b3c);}[_0x515691(0xd6)](){this['_disabled']=!0x0;}[_0x515691(0x370)](){const _0x28ad10=_0x515691;this[_0x28ad10(0x307)]=!0x1;}get[_0x515691(0x1c8)](){return this['_saveTaskMap'];}[_0x515691(0x37b)](){const _0x2478e3=_0x515691;this['exhaustSavingTask']()[_0x2478e3(0x25f)](()=>super['dispose']());}async['loadOfflineData'](_0x234557){const _0x168fa7=_0x515691;return this[_0x168fa7(0x307)]?null:this[_0x168fa7(0xf7)][_0x168fa7(0xe5)](u[_0x168fa7(0x2f4)](_0x234557));}async[_0x515691(0x29b)](_0x43c409,_0x9c5f56){const _0x743a5b=_0x515691;return!!this[_0x743a5b(0xf7)][_0x743a5b(0x302)](_0x43c409,_0x9c5f56);}[_0x515691(0x13d)](_0x2d6b6a,_0x49405c,_0x13b3ac,_0x34b27d){const _0x34b48b=_0x515691,_0x359847=this[_0x34b48b(0x14c)][_0x34b48b(0x19f)](_0x2d6b6a);this['_cachedData']['set'](_0x2d6b6a,{'unitID':_0x2d6b6a,'type':_0x49405c,'awaitingChangeset':_0x13b3ac,'mutations':_0x34b27d,'rev':_0x359847}),this[_0x34b48b(0x15d)][_0x34b48b(0x2ba)](_0x2d6b6a)||this['_scheduleSaving'](_0x2d6b6a);}[_0x515691(0x2f2)](_0x27094a){const _0x41b2c7=_0x515691,_0x2df1c5=this[_0x41b2c7(0x25d)]();_0x2df1c5===0x0?this['_saveCache'](_0x27094a):this[_0x41b2c7(0x15d)][_0x41b2c7(0x197)](_0x27094a,setTimeout(()=>this[_0x41b2c7(0x250)](_0x27094a),_0x2df1c5));}[_0x515691(0x25d)](){const _0x1eb762=_0x515691;var _0x520c15;return(_0x520c15=this['_configService'][_0x1eb762(0x2a0)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x520c15:u[_0x1eb762(0x11f)];}[_0x515691(0x250)](_0x180389){const _0x2ea9e5=_0x515691,_0x2a848d=this['_saveTaskMap'][_0x2ea9e5(0x1be)](_0x180389);return _0x2a848d!==void 0x0&&window[_0x2ea9e5(0xf2)](_0x2a848d),this[_0x2ea9e5(0xf7)][_0x2ea9e5(0x302)](u[_0x2ea9e5(0x2f4)](_0x180389),this[_0x2ea9e5(0x389)][_0x2ea9e5(0x1be)](_0x180389))['then'](()=>this[_0x2ea9e5(0x15d)]['delete'](_0x180389));}async[_0x515691(0x139)](){const _0x1bb2fe=_0x515691,_0x38b8ed=[];this[_0x1bb2fe(0x15d)][_0x1bb2fe(0x1dc)]((_0x49c255,_0x2c386b)=>{const _0x2c0c54=_0x1bb2fe;window[_0x2c0c54(0xf2)](_0x49c255),_0x38b8ed[_0x2c0c54(0x19a)](this[_0x2c0c54(0x250)](_0x2c386b)[_0x2c0c54(0x25f)](()=>{const _0x53fddc=_0x2c0c54;this[_0x53fddc(0x15d)][_0x53fddc(0x2a1)](_0x2c386b);}));}),await Promise[_0x1bb2fe(0x31d)](_0x38b8ed);}};Ce=ri([de(0x0,a[_0x515691(0x254)]),de(0x1,a[_0x515691(0x1df)]),de(0x2,a[_0x515691(0xf3)](v[_0x515691(0x223)]))],Ce);function _0x5d58(_0x402bd0,_0x7fbd74){_0x402bd0=_0x402bd0-0xb5;const _0xc800cf=_0xc800();let _0x5d5811=_0xc800cf[_0x402bd0];return _0x5d5811;}class je extends a[_0x515691(0x306)]{constructor(){const _0x2e4841=_0x515691;super(),_(this,_0x2e4841(0x232)),this[_0x2e4841(0x232)]=I[_0x2e4841(0x2f7)](window,'popstate')[_0x2e4841(0x228)](I[_0x2e4841(0x246)](this[_0x2e4841(0x281)]),I['shareReplay'](0x1),I[_0x2e4841(0x2de)](void 0x0));}[_0x515691(0x260)](_0x56a8ad,_0x815f0a,_0x16a4e7=!0x1){const _0x33d9c9=_0x515691,_0x94e583=new URL(window['location'][_0x33d9c9(0x308)]);_0x94e583[_0x33d9c9(0x31c)][_0x33d9c9(0x197)](_0x56a8ad,_0x815f0a),_0x16a4e7?window[_0x33d9c9(0x1d0)]['replaceState']('','',_0x94e583[_0x33d9c9(0x28f)]()):window[_0x33d9c9(0x1d0)][_0x33d9c9(0x2e3)]('','',_0x94e583[_0x33d9c9(0x28f)]());}[_0x515691(0x21b)](_0x36ce2b,_0x1a2054=!0x1){const _0x4dc88a=_0x515691,_0x2f0772=new URL(window[_0x4dc88a(0x130)][_0x4dc88a(0x308)]);_0x2f0772[_0x4dc88a(0x31c)]['delete'](_0x36ce2b),_0x1a2054?window[_0x4dc88a(0x1d0)][_0x4dc88a(0x2fa)]('','',_0x2f0772[_0x4dc88a(0x28f)]()):window[_0x4dc88a(0x1d0)][_0x4dc88a(0x2e3)]('','',_0x2f0772['toString']());}[_0x515691(0x2e5)](_0x2c9575){const _0x18940f=_0x515691;var _0x41e398;return(_0x41e398=new URL(window['location'][_0x18940f(0x308)])[_0x18940f(0x31c)][_0x18940f(0x1be)](_0x2c9575))!=null?_0x41e398:void 0x0;}}var oi=Object['defineProperty'],ai=Object[_0x515691(0x2a9)],ci=(_0x4c2a78,_0x63e9a5,_0x3116f7)=>_0x63e9a5 in _0x4c2a78?oi(_0x4c2a78,_0x63e9a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3116f7}):_0x4c2a78[_0x63e9a5]=_0x3116f7,li=(_0x1c6730,_0x5e3ff0,_0x3e9ce3,_0x1cc77f)=>{const _0x3047cf=_0x515691;for(var _0xdd1a02=_0x1cc77f>0x1?void 0x0:_0x1cc77f?ai(_0x5e3ff0,_0x3e9ce3):_0x5e3ff0,_0x3279d7=_0x1c6730[_0x3047cf(0x189)]-0x1,_0x5572de;_0x3279d7>=0x0;_0x3279d7--)(_0x5572de=_0x1c6730[_0x3279d7])&&(_0xdd1a02=_0x5572de(_0xdd1a02)||_0xdd1a02);return _0xdd1a02;},Se=(_0x1996c0,_0x1604f5)=>(_0x32c35a,_0x2e39f4)=>_0x1604f5(_0x32c35a,_0x2e39f4,_0x1996c0),_i=(_0x1a93dd,_0x4150e7,_0x27ea24)=>ci(_0x1a93dd,_0x4150e7+'',_0x27ea24);const hi=_0x515691(0x2ed);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x515691(0x353)]{constructor(_0x4eb0b5=Me,_0xcb97c,_0x53be42,_0xd309fc){const _0x19a031=_0x515691;super(),this[_0x19a031(0x16b)]=_0x4eb0b5,this[_0x19a031(0x1ac)]=_0xcb97c,this[_0x19a031(0xc4)]=_0x53be42,this[_0x19a031(0x201)]=_0xd309fc;const {..._0x3b16c5}=a[_0x19a031(0x2c4)]({},Me,this[_0x19a031(0x16b)]);this[_0x19a031(0x201)][_0x19a031(0x252)](Yt,_0x3b16c5);}[_0x515691(0x279)](){const _0x3191e2=_0x515691;this[_0x3191e2(0xb5)](),this[_0x3191e2(0x2d6)]();}[_0x515691(0x21f)](){const _0x47e33f=_0x515691;this[_0x47e33f(0x251)]();}[_0x515691(0xb5)](){const _0x4e1823=_0x515691;var _0x6559f7;const _0x83415c=[[be],[ne],[ie],[ee],[te],[Re],[Oe,{'useClass':je}],[x[_0x4e1823(0x1bb)],{'useClass':x[_0x4e1823(0x335)]}],[u[_0x4e1823(0x29a)],{'useClass':Ce}],[exports['DesktopCollaborationStatusDisplayController']],[se],[Z],[k],[me],[exports['CollaborationDataLoaderController']]];this[_0x4e1823(0x16b)][_0x4e1823(0x314)]&&_0x83415c['push']([Q]),a[_0x4e1823(0x14d)](this[_0x4e1823(0xc4)],a[_0x4e1823(0x376)](_0x83415c,(_0x6559f7=this[_0x4e1823(0x16b)])==null?void 0x0:_0x6559f7[_0x4e1823(0x34f)]));}[_0x515691(0x251)](){const _0x453a2c=_0x515691;this[_0x453a2c(0x204)](this['_renderManagerService'][_0x453a2c(0x2f0)](a[_0x453a2c(0x213)][_0x453a2c(0x21e)],[Ee])),this[_0x453a2c(0x204)](this[_0x453a2c(0x1ac)]['registerRenderModule'](a[_0x453a2c(0x213)][_0x453a2c(0x239)],[Te]));}[_0x515691(0x2d6)](){const _0x143c62=_0x515691;a[_0x143c62(0x207)](this['_injector'],[[k],[exports[_0x143c62(0x1a4)]],[se],[Z],[exports[_0x143c62(0x371)]],[ne]]),this[_0x143c62(0x16b)][_0x143c62(0x314)]&&a[_0x143c62(0x207)](this[_0x143c62(0xc4)],[[Q]]);}},_i(exports[_0x515691(0x2d1)],'pluginName',hi),exports[_0x515691(0x2d1)]=li([a[_0x515691(0x23e)](u[_0x515691(0x1c5)]),Se(0x1,T[_0x515691(0x237)]),Se(0x2,a[_0x515691(0xf3)](a[_0x515691(0x26e)])),Se(0x3,a[_0x515691(0x254)])],exports[_0x515691(0x2d1)]);var ui=Object[_0x515691(0x2a9)],Ii=(_0x54ca46,_0x5ee523,_0x5f0475,_0x12ffa7)=>{for(var _0x189e28=_0x12ffa7>0x1?void 0x0:_0x12ffa7?ui(_0x5ee523,_0x5f0475):_0x5ee523,_0x1de713=_0x54ca46['length']-0x1,_0xac2772;_0x1de713>=0x0;_0x1de713--)(_0xac2772=_0x54ca46[_0x1de713])&&(_0x189e28=_0xac2772(_0x189e28)||_0x189e28);return _0x189e28;},W=(_0x5bdb88,_0x11d361)=>(_0x10c481,_0x30be3b)=>_0x11d361(_0x10c481,_0x30be3b,_0x5bdb88);exports['BrowserCollaborationSocketService']=class extends u[_0x515691(0x35e)]{constructor(_0x2f8b7d,_0x2fef8e,_0x13a2c8,_0x4a3951,_0x5a75bd){super(_0x2f8b7d,_0x2fef8e,_0x13a2c8,_0x4a3951,_0x5a75bd);}async['createSocket'](_0x11c756){const _0x4f93aa=_0x515691,_0x1373e2=await this[_0x4f93aa(0x1a2)](),_0x9ae562=this['_createSocketURL'](_0x11c756,_0x1373e2);return this[_0x4f93aa(0x152)](_0x9ae562);}[_0x515691(0x1bc)](_0x536b10,_0x54e998){const _0x2f7c2a=_0x515691,_0x2b97c7=typeof window>'u'?new URL(_0x536b10):new URL(_0x536b10,window[_0x2f7c2a(0x130)][_0x2f7c2a(0x294)]);_0x2b97c7[_0x2f7c2a(0x31c)]['set']('sessionTicket',_0x54e998);const _0x1d0cff=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x1d0cff[_0x2f7c2a(0x1be)](_0x2f7c2a(0x218))&&_0x2b97c7[_0x2f7c2a(0x31c)][_0x2f7c2a(0x197)](_0x2f7c2a(0x218),_0x1d0cff[_0x2f7c2a(0x1be)](_0x2f7c2a(0x218))),_0x2b97c7[_0x2f7c2a(0x28f)]();}async[_0x515691(0x1a2)](){const _0x2e91b0=_0x515691;var _0x5d9785,_0x489e86,_0x52a514;const _0x25e114=this[_0x2e91b0(0x201)][_0x2e91b0(0x2a0)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x85004b=(_0x5d9785=_0x25e114==null?void 0x0:_0x25e114[_0x2e91b0(0x35b)])!=null?_0x5d9785:u[_0x2e91b0(0x12e)];return(_0x52a514=(_0x489e86=(await this[_0x2e91b0(0x2ea)][_0x2e91b0(0x1be)](_0x85004b,{'headers':{'Content-Type':_0x2e91b0(0x1eb)}}))[_0x2e91b0(0x136)])==null?void 0x0:_0x489e86[_0x2e91b0(0x369)])!=null?_0x52a514:'';}},exports['BrowserCollaborationSocketService']=Ii([W(0x0,a[_0x515691(0xf3)](a[_0x515691(0x26e)])),W(0x1,a['Inject'](x[_0x515691(0x243)])),W(0x2,a[_0x515691(0x254)]),W(0x3,a[_0x515691(0x2dd)]),W(0x4,v['ISnapshotServerService'])],exports[_0x515691(0xfb)]);var di=Object['getOwnPropertyDescriptor'],Si=(_0x5652a3,_0x41af12,_0x3d97e9,_0x3f8b18)=>{const _0x151ad1=_0x515691;for(var _0x989bb8=_0x3f8b18>0x1?void 0x0:_0x3f8b18?di(_0x41af12,_0x3d97e9):_0x41af12,_0x46e7e4=_0x5652a3[_0x151ad1(0x189)]-0x1,_0x2c87e5;_0x46e7e4>=0x0;_0x46e7e4--)(_0x2c87e5=_0x5652a3[_0x46e7e4])&&(_0x989bb8=_0x2c87e5(_0x989bb8)||_0x989bb8);return _0x989bb8;},fe=(_0x354f58,_0x5bb25b)=>(_0x28cbe3,_0x1358f8)=>_0x5bb25b(_0x28cbe3,_0x1358f8,_0x354f58);exports[_0x515691(0x1fc)]=class extends a[_0x515691(0x29e)]{constructor(_0x4b63c1,_0x1daba4,_0x51f422){const _0x321310=_0x515691;super(),this[_0x321310(0x264)]=_0x4b63c1,this[_0x321310(0x2ea)]=_0x1daba4,this[_0x321310(0x201)]=_0x51f422;}async['runOnServer'](_0x91c4d7,_0x20eb5c,_0x422589,..._0x1fc108){const _0x6a9d9d=_0x515691;var _0x8b1f10,_0x10a3bf,_0x455938,_0x525f80;const _0x853370=this[_0x6a9d9d(0x264)][_0x6a9d9d(0x1bd)]();if(!_0x853370)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5867eb=((_0x8b1f10=this[_0x6a9d9d(0x201)]['getConfig'](u[_0x6a9d9d(0x153)]))!=null?_0x8b1f10:u[_0x6a9d9d(0x383)])+'/'+_0x91c4d7+_0x6a9d9d(0x2a5)+_0x20eb5c,_0x59b5d3=new URL(window[_0x6a9d9d(0x130)]['href']),_0x156e09={'scriptId':_0x91c4d7,'runId':(_0x10a3bf=_0x59b5d3[_0x6a9d9d(0x31c)][_0x6a9d9d(0x1be)]('runId'))!=null?_0x10a3bf:'','function':_0x20eb5c,'unitId':_0x853370[_0x6a9d9d(0x182)](),'argsOfFunction':JSON[_0x6a9d9d(0x322)](_0x1fc108),'invokeId':(_0x455938=_0x422589[_0x6a9d9d(0x110)])!=null?_0x455938:'','executionId':(_0x525f80=_0x422589[_0x6a9d9d(0xea)])!=null?_0x525f80:''};try{const _0x3dcebd=await this[_0x6a9d9d(0x2ea)]['post'](_0x5867eb,{'body':_0x156e09});return _0x3dcebd[_0x6a9d9d(0x136)][_0x6a9d9d(0x107)]&&_0x3dcebd[_0x6a9d9d(0x136)][_0x6a9d9d(0x107)][_0x6a9d9d(0x111)]!==G['OK']?_0x6a9d9d(0x2cd):_0x3dcebd['body']['result'];}catch{return _0x6a9d9d(0x2cd);}}},exports[_0x515691(0x1fc)]=Si([fe(0x0,a[_0x515691(0x2ae)]),fe(0x1,a['Inject'](x[_0x515691(0x243)])),fe(0x2,a['IConfigService'])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0x515691(0x11c);class fi extends a[_0x515691(0x29e)]{constructor(){const _0x210014=_0x515691;super(),_(this,'_id',a[_0x210014(0x34e)]()),_(this,_0x210014(0xf5),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x210014(0x2be),null),_(this,_0x210014(0x106),new Map()),_(this,_0x210014(0x217),new Map()),this[_0x210014(0x2bd)]();}[_0x515691(0x37b)](){const _0x39c811=_0x515691;super[_0x39c811(0x37b)](),this[_0x39c811(0x106)]['forEach']((_0x33670b,_0x212ea2)=>this[_0x39c811(0x32a)](_0x212ea2)),this[_0x39c811(0x2be)]&&window[_0x39c811(0x1b0)](this[_0x39c811(0x2be)]);}[_0x515691(0x1d7)](_0x3160d8){const _0x4960e3=_0x515691;return this[_0x4960e3(0x30a)](_0x3160d8)['pipe'](I[_0x4960e3(0x2fd)]());}['editingUnit'](_0xf01b01){const _0x1af310=_0x515691;this[_0x1af310(0xf5)][_0x1af310(0x15e)]===0x0&&this[_0x1af310(0x37a)](),this[_0x1af310(0xf5)][_0x1af310(0x304)](_0xf01b01),this['_send']({'type':0x0,'memberID':this[_0x1af310(0x169)],'unitIDs':[_0xf01b01],'isForwarded':!0x1});}[_0x515691(0x35a)](_0x4977a2){const _0x2078a2=_0x515691;this[_0x2078a2(0xf5)]['delete'](_0x4977a2),this[_0x2078a2(0xf5)][_0x2078a2(0x15e)]===0x0&&this[_0x2078a2(0x2be)]&&window[_0x2078a2(0x1b0)](this[_0x2078a2(0x2be)]);}[_0x515691(0x2bd)](){const _0x9082cd=_0x515691;this[_0x9082cd(0x204)](a[_0x9082cd(0x2b2)](I['fromEvent'](window,_0x9082cd(0x1cb))['subscribe'](_0x576e18=>{const _0x15aaea=_0x9082cd;if(_0x576e18[_0x15aaea(0x27e)]!==ye||!_0x576e18[_0x15aaea(0x315)])return;const _0x5078fc=JSON[_0x15aaea(0x2d5)](_0x576e18['newValue']);this[_0x15aaea(0x273)](_0x5078fc);}))),window[_0x9082cd(0x26a)]('unload',()=>this[_0x9082cd(0x1da)]({'type':0x1,'memberID':this[_0x9082cd(0x169)],'unitIDs':Array['from'](this[_0x9082cd(0xf5)])}));}[_0x515691(0x273)](_0x19e121){const _0x3c3796=_0x515691;switch(_0x19e121['type']){case 0x0:this[_0x3c3796(0x140)](_0x19e121);break;case 0x1:this['_handleLeaveEvent'](_0x19e121);break;case 0x2:this[_0x3c3796(0x22a)](_0x19e121);break;}}[_0x515691(0x140)](_0x23144a){const _0x5e7e48=_0x515691,{unitIDs:_0x280125,memberID:_0x18c63c,isForwarded:_0x278fef}=_0x23144a;_0x280125[_0x5e7e48(0x1dc)](_0x3311fb=>{const _0x4d6df8=_0x5e7e48;if(!_0x278fef&&this[_0x4d6df8(0x365)][_0x4d6df8(0x2ba)](_0x3311fb)&&this[_0x4d6df8(0x30a)](_0x3311fb)['next'](u[_0x4d6df8(0x321)][_0x4d6df8(0x1d3)]),!this[_0x4d6df8(0x365)][_0x4d6df8(0x2ba)](_0x3311fb)||!this[_0x4d6df8(0x365)][_0x4d6df8(0x1be)](_0x3311fb)['has'](_0x18c63c)){const _0x43f8e9=this[_0x4d6df8(0x365)][_0x4d6df8(0x1be)](_0x3311fb)||new Set();_0x43f8e9['add'](_0x18c63c),this[_0x4d6df8(0x365)][_0x4d6df8(0x197)](_0x3311fb,_0x43f8e9),this['_scheduleClearOtherTimer'](_0x18c63c);}}),_0x278fef||this['_send']({'type':0x0,'memberID':this[_0x5e7e48(0x169)],'unitIDs':[...this[_0x5e7e48(0xf5)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4bdf49){const _0x2b6484=_0x515691;this['_removeClearOtherTimer'](_0x4bdf49);const _0x29f1d2=window[_0x2b6484(0x2c5)](()=>{const _0x914b61=_0x2b6484;this[_0x914b61(0x365)][_0x914b61(0x1dc)](_0x2fff30=>{const _0x5dce45=_0x914b61;_0x2fff30[_0x5dce45(0x2a1)](_0x4bdf49);});},we*0x2);this[_0x2b6484(0x106)][_0x2b6484(0x197)](_0x4bdf49,_0x29f1d2);}[_0x515691(0x32a)](_0x407e51){const _0x1fd15f=_0x515691;if(this['_clearOtherTimers'][_0x1fd15f(0x2ba)](_0x407e51)){const _0x3cc4d1=this[_0x1fd15f(0x106)]['get'](_0x407e51);_0x3cc4d1&&window['clearTimeout'](_0x3cc4d1),this[_0x1fd15f(0x106)][_0x1fd15f(0x197)](_0x407e51,null);}}[_0x515691(0x163)](_0x2dfaf0){const {memberID:_0x1a4371,unitIDs:_0x29e365}=_0x2dfaf0;_0x29e365['forEach'](_0x4b8cd6=>{const _0x377b21=_0x5d58;var _0x21b940;const _0x11e037=this[_0x377b21(0x365)][_0x377b21(0x1be)](_0x4b8cd6);_0x11e037&&(_0x11e037[_0x377b21(0x2a1)](_0x1a4371),(_0x21b940=this['_ensureSubject'](_0x4b8cd6))==null||_0x21b940[_0x377b21(0x361)](_0x11e037[_0x377b21(0x15e)]===0x0?u[_0x377b21(0x321)][_0x377b21(0x36f)]:u[_0x377b21(0x321)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x1a4371);}[_0x515691(0x22a)](_0x4d22f7){const _0xe617cf=_0x515691;this[_0xe617cf(0x2da)](_0x4d22f7[_0xe617cf(0x17e)]);}['_send'](_0x5bbfa1){const _0x3af168=_0x515691;localStorage['setItem'](ye,JSON[_0x3af168(0x322)](_0x5bbfa1));}['_scheduleHeartbeat'](){const _0x32f2eb=_0x515691;this[_0x32f2eb(0x2be)]=window['setInterval'](()=>{const _0x4cdccb=_0x32f2eb;this[_0x4cdccb(0x1da)]({'type':0x2,'memberID':this[_0x4cdccb(0x169)]});},we);}[_0x515691(0x30a)](_0x257ca3){const _0x5097c9=_0x515691;return this['_unitStatus'][_0x5097c9(0x2ba)](_0x257ca3)||this[_0x5097c9(0x217)][_0x5097c9(0x197)](_0x257ca3,new I[(_0x5097c9(0x17c))](u[_0x5097c9(0x321)][_0x5097c9(0x36f)])),this['_unitStatus'][_0x5097c9(0x1be)](_0x257ca3);}}exports[_0x515691(0x1b7)]=Oe,exports['SheetCollabCursorShape']=Fe,exports[_0x515691(0x2ec)]=fi,exports[_0x515691(0x32b)]=je;
1
+ 'use strict';const _0xa8fcb3=_0x2702;(function(_0x4e79cc,_0x65186e){const _0x3138d8=_0x2702,_0x5a023e=_0x4e79cc();while(!![]){try{const _0x1b2715=-parseInt(_0x3138d8(0x217))/0x1*(-parseInt(_0x3138d8(0x1a0))/0x2)+parseInt(_0x3138d8(0x1e4))/0x3*(-parseInt(_0x3138d8(0x183))/0x4)+parseInt(_0x3138d8(0x269))/0x5*(parseInt(_0x3138d8(0x86))/0x6)+-parseInt(_0x3138d8(0x318))/0x7*(parseInt(_0x3138d8(0x344))/0x8)+parseInt(_0x3138d8(0x2c6))/0x9*(parseInt(_0x3138d8(0x14f))/0xa)+-parseInt(_0x3138d8(0x156))/0xb+-parseInt(_0x3138d8(0x2cf))/0xc;if(_0x1b2715===_0x65186e)break;else _0x5a023e['push'](_0x5a023e['shift']());}catch(_0x1be374){_0x5a023e['push'](_0x5a023e['shift']());}}}(_0xd5ca,0x84267));var Xe=Object[_0xa8fcb3(0x2e1)],Ke=(_0xc307,_0x24b676,_0x4c5d97)=>_0x24b676 in _0xc307?Xe(_0xc307,_0x24b676,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c5d97}):_0xc307[_0x24b676]=_0x4c5d97,_=(_0x848e51,_0x3a3526,_0x1dcd87)=>Ke(_0x848e51,typeof _0x3a3526!=_0xa8fcb3(0x99)?_0x3a3526+'':_0x3a3526,_0x1dcd87);Object[_0xa8fcb3(0x2e1)](exports,Symbol[_0xa8fcb3(0x260)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),T=require('@univerjs/engine-render'),x=require('@univerjs/network'),C=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x2f9ecf,..._0x2567c4}){const _0x339cc1=_0xa8fcb3,{icon:_0x1fcd2b,id:_0x6dba2b,className:_0x227926,extend:_0x5d4966,..._0x2b9808}=_0x2567c4,_0x275908=(_0x339cc1(0x265)+_0x6dba2b+'\x20'+(_0x227926||''))[_0x339cc1(0x2cb)](),_0x57a37d=A[_0x339cc1(0xed)]('_'+Qe());return $e(_0x1fcd2b,''+_0x6dba2b,{'defIds':_0x1fcd2b[_0x339cc1(0x1d4)],'idSuffix':_0x57a37d['current']},{'ref':_0x2f9ecf,'className':_0x275908,..._0x2b9808},_0x5d4966);}function $e(_0x1e2160,_0x271119,_0x182e40,_0x2332d0,_0x52171e){const _0x9b5a1f=_0xa8fcb3;return A[_0x9b5a1f(0xfc)](_0x1e2160[_0x9b5a1f(0x21e)],{'key':_0x271119,...Je(_0x1e2160,_0x182e40,_0x52171e),..._0x2332d0},(Ze(_0x1e2160,_0x182e40)[_0x9b5a1f(0x125)]||[])[_0x9b5a1f(0x141)]((_0x34d135,_0x11a6a4)=>$e(_0x34d135,_0x271119+'-'+_0x1e2160[_0x9b5a1f(0x21e)]+'-'+_0x11a6a4,_0x182e40,void 0x0,_0x52171e)));}function Je(_0x3d796d,_0x29b9a2,_0x18caa4){const _0x4c3af7=_0xa8fcb3,_0x315ba7={..._0x3d796d[_0x4c3af7(0x245)]};_0x18caa4!=null&&_0x18caa4[_0x4c3af7(0x263)]&&_0x315ba7[_0x4c3af7(0x204)]===_0x4c3af7(0x263)&&(_0x315ba7[_0x4c3af7(0x204)]=_0x18caa4[_0x4c3af7(0x263)]),_0x3d796d[_0x4c3af7(0x21e)]===_0x4c3af7(0xe5)&&_0x315ba7['id']&&(_0x315ba7['id']=_0x315ba7['id']+_0x29b9a2[_0x4c3af7(0x181)]),Object[_0x4c3af7(0xc9)](_0x315ba7)[_0x4c3af7(0x2b4)](([_0x2e01dc,_0x440aa6])=>{const _0x2d8c79=_0x4c3af7;_0x2e01dc===_0x2d8c79(0xe5)&&typeof _0x440aa6==_0x2d8c79(0x27e)&&(_0x315ba7[_0x2e01dc]=_0x440aa6[_0x2d8c79(0x13a)](/url\(#(.*)\)/,'url(#$1'+_0x29b9a2[_0x2d8c79(0x181)]+')'));});const {defIds:_0x304c90}=_0x29b9a2;return!_0x304c90||_0x304c90[_0x4c3af7(0x250)]===0x0||(_0x3d796d[_0x4c3af7(0x21e)]===_0x4c3af7(0xec)&&_0x315ba7[_0x4c3af7(0x237)]&&(_0x315ba7[_0x4c3af7(0x237)]=_0x315ba7['xlink:href']+_0x29b9a2[_0x4c3af7(0x181)]),Object[_0x4c3af7(0xc9)](_0x315ba7)[_0x4c3af7(0x2b4)](([_0x5f1b02,_0xbf868b])=>{const _0x2d92ef=_0x4c3af7;typeof _0xbf868b=='string'&&(_0x315ba7[_0x5f1b02]=_0xbf868b['replace'](/url\(#(.*)\)/,_0x2d92ef(0x22d)+_0x29b9a2[_0x2d92ef(0x181)]+')'));})),_0x315ba7;}function Ze(_0x42b74c,_0x284777){const _0x38b52d=_0xa8fcb3;var _0x3f6664;const {defIds:_0x3768fb}=_0x284777;return!_0x3768fb||_0x3768fb[_0x38b52d(0x250)]===0x0?_0x42b74c:_0x42b74c['tag']==='defs'&&((_0x3f6664=_0x42b74c[_0x38b52d(0x125)])!=null&&_0x3f6664[_0x38b52d(0x250)])?{..._0x42b74c,'children':_0x42b74c[_0x38b52d(0x125)][_0x38b52d(0x141)](_0x150be8=>typeof _0x150be8['attrs']['id']==_0x38b52d(0x27e)&&_0x3768fb&&_0x3768fb[_0x38b52d(0x27b)](_0x150be8['attrs']['id'])?{..._0x150be8,'attrs':{..._0x150be8[_0x38b52d(0x245)],'id':_0x150be8['attrs']['id']+_0x284777[_0x38b52d(0x181)]}}:_0x150be8)}:_0x42b74c;}function Qe(){const _0x3e1571=_0xa8fcb3;return Math[_0x3e1571(0x323)]()['toString'](0x24)[_0x3e1571(0x2c3)](0x2,0x8);}pe[_0xa8fcb3(0x304)]='UniverIcon';const et={'tag':_0xa8fcb3(0x2f7),'attrs':{'xmlns':_0xa8fcb3(0x2aa),'fill':'none','viewBox':_0xa8fcb3(0x1bb),'width':_0xa8fcb3(0x127),'height':_0xa8fcb3(0x127)},'children':[{'tag':'g','attrs':{'clipPath':_0xa8fcb3(0x25b)},'children':[{'tag':_0xa8fcb3(0x1b6),'attrs':{'stroke':_0xa8fcb3(0x1b2),'d':_0xa8fcb3(0xd7),'strokeLinecap':_0xa8fcb3(0x231),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xa8fcb3(0xc4)},'children':[{'tag':_0xa8fcb3(0x1b6),'attrs':{'fill':'white','d':_0xa8fcb3(0x278)}}]}]}],'defIds':[_0xa8fcb3(0xc4)]},xe=A['forwardRef'](function(_0xdceb0f,_0xccc22d){const _0x4cef0e=_0xa8fcb3;return A[_0x4cef0e(0xfc)](pe,Object[_0x4cef0e(0x30b)]({},_0xdceb0f,{'id':'off-line-icon','ref':_0xccc22d,'icon':et}));});xe[_0xa8fcb3(0x304)]=_0xa8fcb3(0x30c);const tt={'tag':'svg','attrs':{'xmlns':_0xa8fcb3(0x2aa),'fill':_0xa8fcb3(0x1da),'viewBox':_0xa8fcb3(0xb4),'width':_0xa8fcb3(0x127),'height':_0xa8fcb3(0x127)},'children':[{'tag':'g','attrs':{'clipPath':_0xa8fcb3(0x7f)},'children':[{'tag':_0xa8fcb3(0x1b6),'attrs':{'stroke':_0xa8fcb3(0x1b2),'d':_0xa8fcb3(0x1d3),'strokeLinecap':_0xa8fcb3(0x231),'strokeLinejoin':_0xa8fcb3(0x231),'strokeWidth':1.2}}]},{'tag':_0xa8fcb3(0xf1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xa8fcb3(0x201)},'children':[{'tag':_0xa8fcb3(0x1b6),'attrs':{'fill':_0xa8fcb3(0x7b),'d':'M0\x200H16V16H0z','transform':_0xa8fcb3(0xfd)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0xa8fcb3(0x116)](function(_0x224e5d,_0x26917d){const _0x1a63ee=_0xa8fcb3;return A[_0x1a63ee(0xfc)](pe,Object[_0x1a63ee(0x30b)]({},_0x224e5d,{'id':'on-line-icon','ref':_0x26917d,'icon':tt}));});Be[_0xa8fcb3(0x304)]='OnLineIcon';function it(_0x5ca0a3){const _0x4ece94=_0xa8fcb3;switch(_0x5ca0a3){case u[_0x4ece94(0x2db)][_0x4ece94(0x117)]:return _0x4ece94(0xdd);case u['CollaborationStatus']['CONFLICT']:return _0x4ece94(0x146);case u[_0x4ece94(0x2db)][_0x4ece94(0x13f)]:return _0x4ece94(0x2dc);case u[_0x4ece94(0x2db)]['NOT_COLLAB']:return _0x4ece94(0x296);case u[_0x4ece94(0x2db)][_0x4ece94(0xcd)]:case u['CollaborationStatus'][_0x4ece94(0x104)]:return _0x4ece94(0x275);case u[_0x4ece94(0x2db)]['SYNCED']:case u['CollaborationStatus'][_0x4ece94(0x1d6)]:return'collabStatus.synced';}}function st(_0x8d3486){const _0xd7157f=_0xa8fcb3,{status$:_0x27e730}=_0x8d3486,_0x23a18e=O[_0xd7157f(0xd8)](_0x27e730,u['CollaborationStatus'][_0xd7157f(0x1c3)]),_0x5014e8=O[_0xd7157f(0x331)](a[_0xd7157f(0x1b3)]),_0x451633=O[_0xd7157f(0x331)](u[_0xd7157f(0x9b)]),_0x20e8e7=_0x23a18e!==u[_0xd7157f(0x2db)]['OFFLINE'],_0x1c66e1=_0x5014e8['t'](it(_0x23a18e)),_0x47f812=_0x20e8e7?M[_0xd7157f(0x30e)](Be,{}):M['jsx'](xe,{}),_0x50713=A[_0xd7157f(0x280)](()=>{_0x20e8e7||_0x451633['reconnect']();},[_0x20e8e7,_0x451633]);function _0x30ffc8(){const _0x125fb6=_0xd7157f;return M[_0x125fb6(0x321)](_0x125fb6(0x13e),{'className':_0x125fb6(0x169),'onClick':_0x50713,'children':[M[_0x125fb6(0x30e)](_0x125fb6(0x13e),{'className':p[_0x125fb6(0x9e)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x20e8e7,'univer-text-red-500':!_0x20e8e7}),'children':_0x47f812}),M['jsx'](_0x125fb6(0x13e),{'className':_0x125fb6(0x158),'children':_0x1c66e1})]});}return _0x20e8e7?_0x30ffc8():M[_0xd7157f(0x30e)](p[_0xd7157f(0x1e6)],{'title':_0x5014e8['t'](_0xd7157f(0xeb)),'children':_0x30ffc8()});}var nt=Object[_0xa8fcb3(0x2c0)],rt=(_0x38089b,_0x34adb3,_0x45622d,_0xb112dc)=>{const _0x2293c5=_0xa8fcb3;for(var _0x1750f1=_0xb112dc>0x1?void 0x0:_0xb112dc?nt(_0x34adb3,_0x45622d):_0x34adb3,_0x337830=_0x38089b[_0x2293c5(0x250)]-0x1,_0x30bcdf;_0x337830>=0x0;_0x337830--)(_0x30bcdf=_0x38089b[_0x337830])&&(_0x1750f1=_0x30bcdf(_0x1750f1)||_0x1750f1);return _0x1750f1;},K=(_0x22e8cf,_0x5c61bb)=>(_0x56c287,_0x26fcea)=>_0x5c61bb(_0x56c287,_0x26fcea,_0x22e8cf);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x57c763,_0x457a62,_0x96dd34,_0x354973){const _0x36c291=_0xa8fcb3;super(),_(this,_0x36c291(0x299),new I[(_0x36c291(0x87))](u['CollaborationStatus'][_0x36c291(0x1c3)])),(this[_0x36c291(0x140)]=_0x57c763,this[_0x36c291(0x137)]=_0x457a62,this[_0x36c291(0x30d)]=_0x96dd34,this[_0x36c291(0x15f)]=_0x354973,this[_0x36c291(0x102)](),this[_0x36c291(0x22e)]());}[_0xa8fcb3(0x22e)](){const _0x44422b=_0xa8fcb3;this[_0x44422b(0x111)](this['_univerInstanceService'][_0x44422b(0x10c)][_0x44422b(0x1a1)](I[_0x44422b(0x14c)](()=>{const _0x235080=_0x44422b,_0x56c7f5=this[_0x235080(0x140)]['getFocusedUnit']();return _0x56c7f5?this['_collaborationController'][_0x235080(0x1fe)](_0x56c7f5[_0x235080(0x1b5)]()):I['of'](null);}),I['switchMap'](_0x27dc61=>_0x27dc61?_0x27dc61[_0x44422b(0x234)]:I['of'](u[_0x44422b(0x2db)]['NOT_COLLAB'])))['subscribe'](_0x144562=>{const _0x5438f0=_0x44422b;this['_status$'][_0x5438f0(0x1c9)](_0x144562);}));}['_initStatusComponent'](){const _0x4824f8=_0xa8fcb3;this['disposeWithMe'](this[_0x4824f8(0x15f)][_0x4824f8(0x20e)](O['BuiltInUIPart'][_0x4824f8(0x213)],()=>O['connectInjector'](ot({'status$':this[_0x4824f8(0x299)][_0x4824f8(0x167)]()}),this[_0x4824f8(0x137)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a[_0xa8fcb3(0x1c7)])),K(0x2,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x1f8)])),K(0x3,O[_0xa8fcb3(0x26e)])],exports[_0xa8fcb3(0x2f3)]);function ot(_0xa33694){const {status$:_0x4b85a0}=_0xa33694;return function(){const _0x3ccea5=_0x2702;return M[_0x3ccea5(0x30e)](st,{'status$':_0x4b85a0});};}const Oe=a[_0xa8fcb3(0x33e)](_0xa8fcb3(0x266));var at=Object[_0xa8fcb3(0x2c0)],ct=(_0x2c7744,_0x173c92,_0x409794,_0x5d65aa)=>{const _0x36f250=_0xa8fcb3;for(var _0x1393b2=_0x5d65aa>0x1?void 0x0:_0x5d65aa?at(_0x173c92,_0x409794):_0x173c92,_0x326fcf=_0x2c7744[_0x36f250(0x250)]-0x1,_0x46293b;_0x326fcf>=0x0;_0x326fcf--)(_0x46293b=_0x2c7744[_0x326fcf])&&(_0x1393b2=_0x46293b(_0x1393b2)||_0x1393b2);return _0x1393b2;},Y=(_0x92c023,_0x4ab120)=>(_0x2d592e,_0xb4aecd)=>_0x4ab120(_0x2d592e,_0xb4aecd,_0x92c023);exports[_0xa8fcb3(0x254)]=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x4164e9,_0x41d30f,_0x345212,_0x155b47,_0x5a38c3){const _0x428c43=_0xa8fcb3;super(),this[_0x428c43(0x19d)]=_0x4164e9,this[_0x428c43(0x25a)]=_0x41d30f,this[_0x428c43(0x72)]=_0x345212,this[_0x428c43(0xc2)]=_0x155b47,_0x5a38c3?_0x5a38c3==null||_0x5a38c3[_0x428c43(0x319)]()['then'](()=>this[_0x428c43(0x24a)]()):(this[_0x428c43(0x25a)][_0x428c43(0x18e)](_0x428c43(0xcb),_0x428c43(0x6c)),this[_0x428c43(0x24a)]());}async['_init'](){const _0x3eff7f=_0xa8fcb3,_0x33df73=this['_urlService'][_0x3eff7f(0x287)](_0x3eff7f(0x2ff)),_0x2841e6=this[_0x3eff7f(0x19d)]['getParam'](_0x3eff7f(0x289)),_0x13ecae=this['_urlService'][_0x3eff7f(0x287)]('subunit');if(!_0x33df73||!_0x2841e6){this['_logService'][_0x3eff7f(0x18e)]('[CollaborationDataLoaderController]',_0x3eff7f(0x152));return;}const _0x4f9b24=await this[_0x3eff7f(0xc2)][_0x3eff7f(0x173)](_0x33df73,Number(_0x2841e6),_0x13ecae);_0x4f9b24&&_0x4f9b24 instanceof a[_0x3eff7f(0xc7)]&&this[_0x3eff7f(0x31d)](_0x4f9b24);}async[_0xa8fcb3(0x31d)](_0x3dd56a){const _0x4793f8=_0xa8fcb3;await this['_updateSubUnitFromURLParams'](_0x3dd56a),_0x3dd56a[_0x4793f8(0x112)]['pipe'](I[_0x4793f8(0x19e)](this[_0x4793f8(0x358)]))['subscribe'](_0x4bbe5c=>{const _0x2ae409=_0x4793f8;_0x4bbe5c&&this[_0x2ae409(0x2f1)](_0x4bbe5c);}),this[_0x4793f8(0x19d)][_0x4793f8(0x27c)][_0x4793f8(0x1a1)](I[_0x4793f8(0x19e)](this[_0x4793f8(0x358)]))[_0x4793f8(0x185)](()=>this[_0x4793f8(0x182)](_0x3dd56a));}[_0xa8fcb3(0x2f1)](_0x210589,_0x486c6a=!0x1){const _0x453f54=_0xa8fcb3,_0x49b903=this[_0x453f54(0x19d)]['getParam'](_0x453f54(0x1c2));_0x210589['getSheetId']()!==_0x49b903&&this['_urlService']['setParam']('subunit',_0x210589[_0x453f54(0x288)](),_0x486c6a);}async[_0xa8fcb3(0x182)](_0x4fa575){const _0x462d39=_0xa8fcb3;var _0x514736;const _0x4f3982=this[_0x462d39(0x19d)][_0x462d39(0x287)](_0x462d39(0x1c2));if(!_0x4f3982||!_0x4fa575[_0x462d39(0x1ab)](_0x4f3982)){const _0x11ddd8=_0x4fa575[_0x462d39(0x138)]()[0x0],_0x2d2cb5=_0x4fa575[_0x462d39(0x1ab)](_0x11ddd8);if(!_0x2d2cb5)return;this[_0x462d39(0x2f1)](_0x2d2cb5,!0x0),await this[_0x462d39(0x72)]['executeCommand'](g[_0x462d39(0x2f2)]['id'],{'unitId':_0x4fa575[_0x462d39(0x1b5)](),'subUnitId':_0x11ddd8});return;}((_0x514736=_0x4fa575[_0x462d39(0x1f7)]())==null?void 0x0:_0x514736[_0x462d39(0x288)]())!==_0x4f3982&&await this[_0x462d39(0x72)][_0x462d39(0xa8)](g[_0x462d39(0x2f2)]['id'],{'unitId':_0x4fa575[_0x462d39(0x1b5)](),'subUnitId':_0x4f3982});}},exports[_0xa8fcb3(0x254)]=ct([Y(0x0,Oe),Y(0x1,a[_0xa8fcb3(0x284)]),Y(0x2,a[_0xa8fcb3(0x233)]),Y(0x3,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x11d)])),Y(0x4,a[_0xa8fcb3(0x1d0)](qe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var lt=Object[_0xa8fcb3(0x2c0)],_t=(_0x32ca85,_0x202c27,_0x2fc32f,_0x5419bd)=>{const _0x3e85b2=_0xa8fcb3;for(var _0x28f5fa=_0x5419bd>0x1?void 0x0:_0x5419bd?lt(_0x202c27,_0x2fc32f):_0x202c27,_0x4a25c9=_0x32ca85[_0x3e85b2(0x250)]-0x1,_0x345709;_0x4a25c9>=0x0;_0x4a25c9--)(_0x345709=_0x32ca85[_0x4a25c9])&&(_0x28f5fa=_0x345709(_0x28f5fa)||_0x28f5fa);return _0x28f5fa;},De=(_0x35bd5f,_0x4d3ca3)=>(_0x20244b,_0x2038bb)=>_0x4d3ca3(_0x20244b,_0x2038bb,_0x35bd5f);let me=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x2d8479,_0x1ab442){const _0x561aa8=_0xa8fcb3;super(),this[_0x561aa8(0x2d7)]=_0x2d8479,this[_0x561aa8(0x2ae)]=_0x1ab442,this[_0x561aa8(0x24a)]();}[_0xa8fcb3(0x24a)](){const _0x7e33bb=_0xa8fcb3,_0x343e92=this;this[_0x7e33bb(0x111)](this[_0x7e33bb(0x2d7)]['addClipboardHook']({'onBeforePasteImage':async _0x3c632c=>{const _0x505018=_0x7e33bb,_0x294589=await _0x343e92[_0x505018(0x2ae)]['saveImage'](_0x3c632c);return _0x294589?{'source':_0x294589[_0x505018(0xbe)],'imageSourceType':_0x294589[_0x505018(0x332)]}:null;}}));}};me=_t([De(0x0,C[_0xa8fcb3(0x1ee)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0xa8fcb3(0x310),_0xa8fcb3(0x2d1),_0xa8fcb3(0x1f9),_0xa8fcb3(0x28e),'blue.400',_0xa8fcb3(0x2d4)];class be extends a[_0xa8fcb3(0x1ca)]{constructor(){const _0x1354a0=_0xa8fcb3;super(...arguments),_(this,_0x1354a0(0x21d),new Map()),_(this,_0x1354a0(0x301),0x0);}['assignAColorForMemberID'](_0x478b4e){const _0x4490cb=_0xa8fcb3;if(this[_0x4490cb(0x21d)][_0x4490cb(0x339)](_0x478b4e))return this[_0x4490cb(0x21d)]['get'](_0x478b4e);const _0x159e80=Ne[this[_0x4490cb(0x301)]];return this[_0x4490cb(0x301)]=(this[_0x4490cb(0x301)]+0x1)%Ne['length'],this[_0x4490cb(0x21d)][_0x4490cb(0x2a9)](_0x478b4e,_0x159e80),_0x159e80;}}function ke(_0x5d1236){const _0x1cc8a0=_0xa8fcb3;let _0x4bfb71='';for(const _0x517178 of _0x5d1236){const {startOffset:_0x4fb722,endOffset:_0x1c3e01,isActive:_0x29b5ba,rangeType:_0x3b4bef,segmentId:_0x1b413a,segmentPage:_0x16e84a}=_0x517178;_0x4bfb71[_0x1cc8a0(0x250)]&&(_0x4bfb71+=','),_0x4bfb71+=_0x4fb722+':'+_0x1c3e01+':'+(_0x29b5ba?'1':'0')+':'+_0x3b4bef+':'+_0x1b413a+':'+_0x16e84a;}return _0x4bfb71;}function ht(_0xcf3a06){const _0x3ace0b=_0xa8fcb3,_0x59686b=_0xcf3a06[_0x3ace0b(0x357)](','),_0x46e960=[];for(const _0x1a02d4 of _0x59686b){const [_0x5e3632,_0x426868,_0x44447c,_0x359ee4,_0xbaa671,_0x1bf278]=_0x1a02d4['split'](':');_0x46e960[_0x3ace0b(0x336)]({'startOffset':Number(_0x5e3632),'endOffset':Number(_0x426868),'collapsed':_0x5e3632===_0x426868,'isActive':_0x44447c==='1','rangeType':_0x359ee4===a[_0x3ace0b(0x33a)][_0x3ace0b(0xd0)]?a[_0x3ace0b(0x33a)][_0x3ace0b(0xd0)]:a[_0x3ace0b(0x33a)][_0x3ace0b(0x270)],'segmentId':typeof _0xbaa671==_0x3ace0b(0x27e)?String(_0xbaa671):'','segmentPage':Number(_0x1bf278!=null?_0x1bf278:-0x1)});}return _0x46e960[_0x3ace0b(0xe6)](_0x2f31e1=>_0x2f31e1[_0x3ace0b(0x192)])||(_0x46e960[0x0]['isActive']=!0x0),_0x46e960;}class Re extends a[_0xa8fcb3(0x1e1)]{constructor(){const _0x5593bc=_0xa8fcb3;super(...arguments),_(this,'_collabCursorState$',new I[(_0x5593bc(0x87))](null)),_(this,_0x5593bc(0x29c),this[_0x5593bc(0x1ac)][_0x5593bc(0x167)]());}[_0xa8fcb3(0x98)](_0x5b4ab5){const _0x4e0b8d=_0xa8fcb3,{unitID:_0x593ad4,memberID:_0x3dc235,textRanges:_0x4c468c}=_0x5b4ab5,_0x1ec401=ke(_0x4c468c);if(_0x1ec401==='')return;const _0x531afe={'unitID':_0x593ad4,'memberID':_0x3dc235,'selection':_0x1ec401};this[_0x4e0b8d(0x1ac)]['next'](_0x531afe);}}var ut=Object[_0xa8fcb3(0x2c0)],It=(_0x5d1f59,_0x9be3be,_0x22d328,_0x5c7fc2)=>{for(var _0x3f3e68=_0x5c7fc2>0x1?void 0x0:_0x5c7fc2?ut(_0x9be3be,_0x22d328):_0x9be3be,_0x300cdd=_0x5d1f59['length']-0x1,_0x1bc7de;_0x300cdd>=0x0;_0x300cdd--)(_0x1bc7de=_0x5d1f59[_0x300cdd])&&(_0x3f3e68=_0x1bc7de(_0x3f3e68)||_0x3f3e68);return _0x3f3e68;},U=(_0x59bfde,_0x486e28)=>(_0x10bd2a,_0x48c1b6)=>_0x486e28(_0x10bd2a,_0x48c1b6,_0x59bfde);const dt=0x12c,St=0x64;let ge=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x28a00,_0x1075ba,_0x20f2a2,_0x25c263,_0x579e58,_0x11b3cb,_0x5cf5e0,_0x370e4e,_0xb88bb){const _0x1e24b0=_0xa8fcb3;super(),_(this,'_online',!0x1),_(this,_0x1e24b0(0x24a),!0x1),_(this,_0x1e24b0(0x17e),new I[(_0x1e24b0(0x87))](new Map())),_(this,_0x1e24b0(0x6b),this['_cursorInfo$']['asObservable']()),_(this,_0x1e24b0(0x7d),new I[(_0x1e24b0(0x87))]([])),_(this,_0x1e24b0(0x274),this[_0x1e24b0(0x7d)]['pipe'](I[_0x1e24b0(0x151)](dt))),_(this,'_updateLocalCursor',a[_0x1e24b0(0x1fb)](_0x260493=>{const _0x5897f7=_0x1e24b0,_0x39439e={'eventID':v[_0x5897f7(0x161)][_0x5897f7(0x206)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x5897f7(0x135)](),'selection':ke(_0x260493)}};this[_0x5897f7(0x24b)][_0x5897f7(0x1bd)](_0x39439e,this[_0x5897f7(0x1a9)]);},St)),(this[_0x1e24b0(0x1a9)]=_0x28a00,this[_0x1e24b0(0x24b)]=_0x1075ba,this['_injector']=_0x20f2a2,this['_colorAssignService']=_0x25c263,this[_0x1e24b0(0x130)]=_0x579e58,this['_syncEditingCollabCursorService']=_0x11b3cb,this[_0x1e24b0(0x238)]=_0x5cf5e0,this[_0x1e24b0(0x140)]=_0x370e4e,this['_commandService']=_0xb88bb);}get[_0xa8fcb3(0xde)](){const _0x303fa1=_0xa8fcb3;return this[_0x303fa1(0x17e)][_0x303fa1(0x2ec)]();}get[_0xa8fcb3(0x212)](){const _0x311ee0=_0xa8fcb3;return this[_0x311ee0(0x7d)]['getValue']();}[_0xa8fcb3(0x229)](){const _0x2c26f4=_0xa8fcb3;super['dispose'](),this[_0x2c26f4(0x17e)][_0x2c26f4(0x1c9)](new Map()),this['_cursorInfo$']['complete'](),this[_0x2c26f4(0x7d)][_0x2c26f4(0x1c9)]([]),this[_0x2c26f4(0x7d)][_0x2c26f4(0x35d)]();}[_0xa8fcb3(0x172)](){const _0x288b56=_0xa8fcb3;this[_0x288b56(0x24a)]||(this[_0x288b56(0x24a)]=!0x0,this[_0x288b56(0x24b)][_0x288b56(0x30f)][_0x288b56(0x1a1)](I[_0x288b56(0x19e)](this['dispose$']))[_0x288b56(0x185)](_0x31f566=>{const _0x4ea322=_0x288b56;_0x31f566===u['SessionStatus'][_0x4ea322(0x1e9)]?this['_toggleOnline']():this[_0x4ea322(0x292)]();}),this[_0x288b56(0x24b)][_0x288b56(0x187)]['pipe'](I[_0x288b56(0x19e)](this[_0x288b56(0x358)]))[_0x288b56(0x185)](_0xa65e69=>{const _0x4e13a6=_0x288b56,_0x3390b8=_0xa65e69[_0x4e13a6(0x306)];_0x3390b8===v[_0x4e13a6(0x161)][_0x4e13a6(0x206)]&&this[_0x4e13a6(0xfe)](_0xa65e69),_0x3390b8===v[_0x4e13a6(0x161)][_0x4e13a6(0x2e9)]&&this['_onCursorDelete'](_0xa65e69);}),this[_0x288b56(0x111)](this['_commandService'][_0x288b56(0xc6)](_0x16d59a=>{const _0x5c128a=_0x288b56,_0x1e6a54=_0x16d59a[_0x5c128a(0x215)];_0x1e6a54!=null&&this['_online']&&_0x16d59a['id']===V[_0x5c128a(0x73)]['id']&&_0x1e6a54[_0x5c128a(0x2b0)]===this[_0x5c128a(0x1a9)]&&_0x1e6a54[_0x5c128a(0xa1)]===!0x1&&_0x1e6a54['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x1e6a54[_0x5c128a(0x194)]);})),this[_0x288b56(0x1b0)]['collabCursorState$'][_0x288b56(0x1a1)](I['takeUntil'](this[_0x288b56(0x358)]))[_0x288b56(0x185)](_0x5d328c=>{const _0x5d2ef9=_0x288b56;if((_0x5d328c==null?void 0x0:_0x5d328c['unitID'])!==this[_0x5d2ef9(0x1a9)])return;const _0x5d0dc5={'eventID':v[_0x5d2ef9(0x161)]['UPDATE_CURSOR'],'data':_0x5d328c};this['_onCursorUpdate'](_0x5d0dc5);}),this[_0x288b56(0x111)](this[_0x288b56(0x72)][_0x288b56(0xc6)](_0x50b3f7=>{const _0x52c8e1=_0x288b56;if(_0x50b3f7[_0x52c8e1(0x215)]==null)return;const _0x196f5b=_0x50b3f7[_0x52c8e1(0x215)];if(_0x50b3f7['id']!==V[_0x52c8e1(0x2e4)]['id']||_0x196f5b[_0x52c8e1(0x2b0)]!==this[_0x52c8e1(0x1a9)])return;const _0x36634c={'id':_0x52c8e1(0x218),'params':_0x196f5b},_0x3fe0ab=this['cursorInfo'];for(const [_0x315fb1,_0x66e5bb]of _0x3fe0ab){const _0x5107fd={'id':_0x52c8e1(0x218),'params':{'unitId':this[_0x52c8e1(0x1a9)],'actions':null,'textRanges':_0x66e5bb[_0x52c8e1(0x194)]}},_0x565804=this['_transformService'][_0x52c8e1(0x2ca)](_0x36634c,_0x5107fd,!0x1);if(v['isTransformMutationFailure'](_0x565804))throw _0x565804[_0x52c8e1(0x123)];_0x3fe0ab['set'](_0x315fb1,{..._0x66e5bb,'ranges':_0x565804[_0x52c8e1(0x246)][_0x52c8e1(0x215)]['textRanges']});}queueMicrotask(()=>{const _0xa15a7e=_0x52c8e1;this['_cursorInfo$'][_0xa15a7e(0x1c9)](_0x3fe0ab);});})));}[_0xa8fcb3(0xfe)](_0xcd4304){const _0x14c5f2=_0xa8fcb3;var _0x32a248,_0x5da154;const {memberID:_0x94dab5,selection:_0x317971}=_0xcd4304[_0x14c5f2(0x28f)],_0x4d61ba=ht(_0x317971),_0x4e6a27=(_0x5da154=(_0x32a248=this[_0x14c5f2(0x130)]['getMember'](this['unitID'],_0x94dab5))==null?void 0x0:_0x32a248[_0x14c5f2(0x10b)])!=null?_0x5da154:'Unknown\x20user',_0x5e72e7={'color':this[_0x14c5f2(0x256)][_0x14c5f2(0x216)](_0x94dab5),'name':_0x4e6a27,'ranges':_0x4d61ba},_0x28d339=this[_0x14c5f2(0xde)];_0x28d339['set'](_0x94dab5,_0x5e72e7),this[_0x14c5f2(0x17e)][_0x14c5f2(0x1c9)](_0x28d339);}[_0xa8fcb3(0x1e3)](_0x402e7d){const _0x3e676b=_0xa8fcb3,{memberID:_0x665e69}=_0x402e7d[_0x3e676b(0x28f)],_0x3ac121=this['cursorInfo'];_0x3ac121[_0x3e676b(0x295)](_0x665e69),this[_0x3e676b(0x17e)][_0x3e676b(0x1c9)](_0x3ac121);}['_toggleOnline'](){const _0x547646=_0xa8fcb3;var _0x5a6747;if(this[_0x547646(0x1bc)]=!0x0,((_0x5a6747=this[_0x547646(0x140)][_0x547646(0x20d)]())==null?void 0x0:_0x5a6747[_0x547646(0x1b5)]())!==this['unitID'])return;const _0xb0f07f=this[_0x547646(0x137)][_0x547646(0x27d)](V[_0x547646(0x159)])['getDocRanges']();Array['isArray'](_0xb0f07f)&&_0xb0f07f[_0x547646(0x250)]>0x0&&this[_0x547646(0xf0)](_0xb0f07f);}[_0xa8fcb3(0x292)](){const _0x22aabf=_0xa8fcb3;this[_0x22aabf(0x1bc)]=!0x1;}};ge=It([U(0x2,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),U(0x3,a['Inject'](be)),U(0x4,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0xa3)])),U(0x5,a[_0xa8fcb3(0x271)](Re)),U(0x6,v[_0xa8fcb3(0x227)]),U(0x7,a['IUniverInstanceService']),U(0x8,a['ICommandService'])],ge);var ft=Object[_0xa8fcb3(0x2c0)],mt=(_0x34b762,_0x7998ea,_0x2fac13,_0x18d5aa)=>{const _0x192614=_0xa8fcb3;for(var _0x495f66=_0x18d5aa>0x1?void 0x0:_0x18d5aa?ft(_0x7998ea,_0x2fac13):_0x7998ea,_0x4c1766=_0x34b762[_0x192614(0x250)]-0x1,_0xab69f8;_0x4c1766>=0x0;_0x4c1766--)(_0xab69f8=_0x34b762[_0x4c1766])&&(_0x495f66=_0xab69f8(_0x495f66)||_0x495f66);return _0x495f66;},w=(_0x2ee061,_0x7b18ac)=>(_0x4f0f25,_0x40bde1)=>_0x7b18ac(_0x4f0f25,_0x40bde1,_0x2ee061);const gt=0x12c,vt=0x64,Et=()=>{let _0x5f024d=[],_0x5091cc=!0x1;return _0x1bd262=>{const _0x504b22=_0x2702;_0x5f024d[_0x504b22(0x336)](_0x1bd262),_0x5091cc||(_0x5091cc=!0x0,setTimeout(()=>{_0x5f024d['forEach'](_0x32c3c4=>_0x32c3c4()),_0x5f024d=[],_0x5091cc=!0x1;}));};};let ve=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x51d0df,_0x19e732,_0x5de490,_0x5a29bf,_0x4ef712,_0x4aba76,_0x4e9475,_0x16172d){const _0x1d56bd=_0xa8fcb3;super(),_(this,_0x1d56bd(0x1bc),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x1d56bd(0x87))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x1d56bd(0x167)]()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x1d56bd(0x274),this['_roomMembers$'][_0x1d56bd(0x1a1)](I[_0x1d56bd(0x151)](gt))),_(this,'_updateLocalCursor',a[_0x1d56bd(0x1fb)]((_0x546526,_0xe8487)=>{const _0x1825fb=_0x1d56bd,_0x86ed1e={'eventID':v[_0x1825fb(0x161)][_0x1825fb(0x206)],'data':{'unitID':this[_0x1825fb(0x1a9)],'memberID':this[_0x1825fb(0x24b)][_0x1825fb(0x135)](),'selection':B[_0x1825fb(0xd4)](_0x546526,_0xe8487[_0x1825fb(0x34a)])}};this[_0x1825fb(0x24b)]['send'](_0x86ed1e,this[_0x1825fb(0x1a9)]);},vt)),(this['unitID']=_0x51d0df,this[_0x1d56bd(0x24b)]=_0x19e732,this[_0x1d56bd(0x137)]=_0x5de490,this[_0x1d56bd(0x256)]=_0x5a29bf,this[_0x1d56bd(0x130)]=_0x4ef712,this['_univerInstanceService']=_0x4aba76,this[_0x1d56bd(0x72)]=_0x4e9475,this[_0x1d56bd(0x1ef)]=_0x16172d);}get[_0xa8fcb3(0xde)](){const _0x36ed20=_0xa8fcb3;return this[_0x36ed20(0x17e)][_0x36ed20(0x2ec)]();}get['roomMembers'](){const _0x47a396=_0xa8fcb3;return this[_0x47a396(0x7d)][_0x47a396(0x2ec)]();}['dispose'](){const _0x5a7560=_0xa8fcb3;super['dispose'](),this[_0x5a7560(0x17e)]['next'](new Map()),this[_0x5a7560(0x17e)][_0x5a7560(0x35d)](),this[_0x5a7560(0x7d)][_0x5a7560(0x1c9)]([]),this[_0x5a7560(0x7d)][_0x5a7560(0x35d)]();}[_0xa8fcb3(0x172)](){const _0x3dbf8e=_0xa8fcb3;this[_0x3dbf8e(0x24a)]||(this[_0x3dbf8e(0x24a)]=!0x0,this['_session'][_0x3dbf8e(0x30f)][_0x3dbf8e(0x1a1)](I[_0x3dbf8e(0x19e)](this['dispose$']))[_0x3dbf8e(0x185)](_0x3df8d5=>{const _0x145ad2=_0x3dbf8e;_0x3df8d5===u[_0x145ad2(0xab)][_0x145ad2(0x1e9)]?this[_0x145ad2(0x20f)]():this[_0x145ad2(0x292)]();}),this[_0x3dbf8e(0x24b)][_0x3dbf8e(0x187)][_0x3dbf8e(0x1a1)](I[_0x3dbf8e(0x19e)](this[_0x3dbf8e(0x358)]))[_0x3dbf8e(0x185)](_0xaf2175=>{const _0x117bd3=_0x3dbf8e,_0x31805d=_0xaf2175['eventID'];_0x31805d===v[_0x117bd3(0x161)][_0x117bd3(0x206)]&&this[_0x117bd3(0xfe)](_0xaf2175),_0x31805d===v[_0x117bd3(0x161)][_0x117bd3(0x2e9)]&&this['_onCursorDelete'](_0xaf2175);}),this[_0x3dbf8e(0xd9)](),this[_0x3dbf8e(0x111)](this[_0x3dbf8e(0x72)][_0x3dbf8e(0xc6)](_0x26f51f=>{const _0x1c4741=_0x3dbf8e;if(this[_0x1c4741(0x1bc)]&&_0x26f51f['id']===g['SetSelectionsOperation']['id']&&_0x26f51f[_0x1c4741(0x215)][_0x1c4741(0x2b0)]===this['unitID']){const _0x41c18b=_0x26f51f[_0x1c4741(0x215)];this[_0x1c4741(0xf0)](_0x41c18b['subUnitId'],_0x41c18b['selections'][0x0]);}})));}[_0xa8fcb3(0xfe)](_0x3b1761){const _0x1dccbe=_0xa8fcb3;var _0x57f5f0,_0x3fd840;const {memberID:_0x4cb1fc,selection:_0x3bd2f1}=_0x3b1761[_0x1dccbe(0x28f)],{sheetName:_0x2d7fb7,range:_0x25fb6a}=B[_0x1dccbe(0x175)](_0x3bd2f1),_0x4dca06={'name':(_0x3fd840=(_0x57f5f0=this[_0x1dccbe(0x130)]['getMember'](this['unitID'],_0x4cb1fc))==null?void 0x0:_0x57f5f0['name'])!=null?_0x3fd840:_0x1dccbe(0x16d),'range':this[_0x1dccbe(0x17a)](_0x2d7fb7,_0x25fb6a),'sheetID':_0x2d7fb7,'color':this[_0x1dccbe(0x256)][_0x1dccbe(0x216)](_0x4cb1fc),'selection':_0x3bd2f1},_0x5592f6=this[_0x1dccbe(0xde)];_0x5592f6[_0x1dccbe(0x2a9)](_0x4cb1fc,_0x4dca06),this['_cursorInfo$']['next'](_0x5592f6);}['_onCursorDelete'](_0x4ea3af){const _0x4c3d27=_0xa8fcb3,{memberID:_0x1d3959}=_0x4ea3af[_0x4c3d27(0x28f)],_0x11febc=this[_0x4c3d27(0xde)];_0x11febc[_0x4c3d27(0x295)](_0x1d3959),this[_0x4c3d27(0x17e)][_0x4c3d27(0x1c9)](_0x11febc);}[_0xa8fcb3(0x17a)](_0x28a652,_0x58494b){const _0x352c4a=_0xa8fcb3;var _0x196cae,_0x5367c2;const _0x3bce9f=(_0x5367c2=(_0x196cae=this[_0x352c4a(0x140)][_0x352c4a(0x101)](this[_0x352c4a(0x1a9)]))==null?void 0x0:_0x196cae['getSheetBySheetId'](_0x28a652))==null?void 0x0:_0x5367c2[_0x352c4a(0x221)]();return(_0x3bce9f==null?void 0x0:_0x3bce9f['find'](_0x390983=>a[_0x352c4a(0x2d8)][_0x352c4a(0xd2)](_0x390983,_0x58494b)))||_0x58494b;}[_0xa8fcb3(0xd9)](){const _0xebb8fd=_0xa8fcb3,_0x5b0b25=new a[(_0xebb8fd(0x12c))](),_0x5ca4cf=Et(),_0x1383b3=()=>{const _0x219e5d=_0xebb8fd;_0x5b0b25[_0x219e5d(0x229)]();const _0xd240b9=(_0x34ecca,_0x5856a1,_0x1110bf,_0x1dc48a)=>{const _0x103fe6=_0x219e5d;let _0x9fe712=[];switch(_0x34ecca['id']){case g[_0x103fe6(0x88)]['DeleteRangeMoveLeftCommandId']:{_0x9fe712=g['handleDeleteRangeMoveLeft'](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)][_0x103fe6(0x243)]:{_0x9fe712=g[_0x103fe6(0x25f)](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)]['InsertColCommandId']:{_0x9fe712=g[_0x103fe6(0x35c)](_0x34ecca,_0x1dc48a);break;}case g['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x9fe712=g[_0x103fe6(0x32e)](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)][_0x103fe6(0x334)]:{_0x9fe712=g['handleInsertRangeMoveRight'](_0x34ecca,_0x1dc48a);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x9fe712=g[_0x103fe6(0x11c)](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)][_0x103fe6(0xa6)]:{_0x9fe712=g['handleMoveRange'](_0x34ecca,_0x1dc48a);break;}case g['EffectRefRangId'][_0x103fe6(0x1b9)]:{_0x9fe712=g[_0x103fe6(0x34c)](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)]['RemoveRowCommandId']:{_0x9fe712=g[_0x103fe6(0x307)](_0x34ecca,_0x1dc48a);break;}}const _0x111236=g[_0x103fe6(0x22c)](_0x9fe712,_0x1dc48a),_0x4b8f2a=this[_0x103fe6(0xde)][_0x103fe6(0x27d)](_0x5856a1);if(_0x4b8f2a&&_0x111236){const _0x300226={..._0x4b8f2a,'range':_0x111236};this['cursorInfo'][_0x103fe6(0x2a9)](_0x5856a1,_0x300226),_0x5ca4cf(()=>{const _0x17a488=_0x103fe6,_0x4b91a3=this[_0x17a488(0x1ef)][_0x17a488(0xc5)](_0x111236,_0x5024c6=>(_0x4b91a3[_0x17a488(0x229)](),_0xd240b9(_0x5024c6,_0x5856a1,_0x1110bf,_0x111236)));_0x5b0b25['add'](_0x4b91a3);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x219e5d(0x2b4)]((_0x43b683,_0x57cf74)=>{const _0xa27a6c=_0x219e5d,{range:_0x74666f,sheetID:_0xf75fe6}=_0x43b683,_0x1af5f9=this[_0xa27a6c(0x1ef)][_0xa27a6c(0xc5)](_0x74666f,_0x2fcb1d=>(_0x1af5f9[_0xa27a6c(0x229)](),_0xd240b9(_0x2fcb1d,_0x57cf74,_0xf75fe6,_0x74666f)));_0x5b0b25[_0xa27a6c(0x14e)](_0x1af5f9);});};this[_0xebb8fd(0x111)](a[_0xebb8fd(0x9a)](this[_0xebb8fd(0x17e)][_0xebb8fd(0x185)](()=>{_0x1383b3();})));}['_toggleOnline'](){const _0x19399e=_0xa8fcb3;var _0xf4240f,_0x276a2a;if(this['_online']=!0x0,((_0xf4240f=this['_univerInstanceService'][_0x19399e(0x20d)]())==null?void 0x0:_0xf4240f[_0x19399e(0x1b5)]())!==this[_0x19399e(0x1a9)])return;const _0x48bf73=(_0x276a2a=this[_0x19399e(0x137)]['get'](g[_0x19399e(0xe2)])[_0x19399e(0x12d)]())==null?void 0x0:_0x276a2a[0x0],_0x435727=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x19399e(0x351)][_0x19399e(0x26b)])[_0x19399e(0x1f7)]();_0x48bf73&&_0x435727&&this['_updateLocalCursor'](_0x435727[_0x19399e(0x288)](),_0x48bf73);}['_toggleOffline'](){const _0x4d5005=_0xa8fcb3;this[_0x4d5005(0x1bc)]=!0x1;}};ve=mt([w(0x2,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),w(0x3,a['Inject'](be)),w(0x4,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0xa3)])),w(0x5,a[_0xa8fcb3(0x2f5)]),w(0x6,a[_0xa8fcb3(0x233)]),w(0x7,a[_0xa8fcb3(0x271)](g[_0xa8fcb3(0x21c)]))],ve);var Tt=Object[_0xa8fcb3(0x2c0)],Ct=(_0x45266a,_0x2188dd,_0x1340e6,_0x7512f)=>{const _0x1eb4e7=_0xa8fcb3;for(var _0x431607=_0x7512f>0x1?void 0x0:_0x7512f?Tt(_0x2188dd,_0x1340e6):_0x2188dd,_0x1d2bbe=_0x45266a[_0x1eb4e7(0x250)]-0x1,_0x39ea2d;_0x1d2bbe>=0x0;_0x1d2bbe--)(_0x39ea2d=_0x45266a[_0x1d2bbe])&&(_0x431607=_0x39ea2d(_0x431607)||_0x431607);return _0x431607;},ce=(_0x25b8bf,_0x1a686f)=>(_0x31f863,_0x2473d6)=>_0x1a686f(_0x31f863,_0x2473d6,_0x25b8bf);let k=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x3d1c32,_0x499aee,_0x599051){const _0x2b81a5=_0xa8fcb3;super(),_(this,'_entities',new Map()),_(this,_0x2b81a5(0x349),new I[(_0x2b81a5(0x33d))]()),(this[_0x2b81a5(0x140)]=_0x3d1c32,this['_injector']=_0x499aee,this['_collabSessionService']=_0x599051,this['_init']());}[_0xa8fcb3(0x229)](){const _0x13df9d=_0xa8fcb3;super[_0x13df9d(0x229)](),this['_entityInit$']['complete'](),this[_0x13df9d(0xe7)][_0x13df9d(0x2b4)](_0x235859=>_0x235859[_0x13df9d(0x229)]());}['getCollabCursors$'](_0x35425b){const _0x4b4cdf=_0xa8fcb3;return this[_0x4b4cdf(0xe7)][_0x4b4cdf(0x339)](_0x35425b)?this[_0x4b4cdf(0xe7)][_0x4b4cdf(0x27d)](_0x35425b)[_0x4b4cdf(0x6b)]:this['_entityInit$'][_0x4b4cdf(0x1a1)](I['filter'](_0x15f51f=>_0x15f51f[_0x4b4cdf(0x1a9)]===_0x35425b),I[_0x4b4cdf(0x14c)](_0x35dc2c=>_0x35dc2c[_0x4b4cdf(0x6b)]));}[_0xa8fcb3(0x24a)](){const _0x504180=_0xa8fcb3;this[_0x504180(0x140)][_0x504180(0x1c1)](a[_0x504180(0x351)][_0x504180(0x26b)])[_0x504180(0x1a1)](I[_0x504180(0x19e)](this[_0x504180(0x358)]))['subscribe'](async _0x44bb6d=>{const _0x4ad356=_0x504180,_0x37ac15=_0x44bb6d[_0x4ad356(0x1b5)](),_0x560f7a=await this[_0x4ad356(0x264)](_0x37ac15);this[_0x4ad356(0x349)][_0x4ad356(0x1c9)](_0x560f7a),this[_0x4ad356(0xe7)][_0x4ad356(0x2a9)](_0x37ac15,_0x560f7a);}),this[_0x504180(0x140)][_0x504180(0x1c1)](a[_0x504180(0x351)][_0x504180(0xf2)])['pipe'](I[_0x504180(0x19e)](this['dispose$']))[_0x504180(0x1a1)](I[_0x504180(0x154)](_0x300fc9=>!_0x300fc9[_0x504180(0x1b5)]()[_0x504180(0x163)]('__')))[_0x504180(0x185)](async _0x143681=>{const _0x43baaf=_0x504180,_0x17237d=_0x143681[_0x43baaf(0x1b5)](),_0x5b3c4e=await this[_0x43baaf(0xfa)](_0x17237d);this[_0x43baaf(0x349)][_0x43baaf(0x1c9)](_0x5b3c4e),this['_entities']['set'](_0x17237d,_0x5b3c4e);}),I['merge'](this[_0x504180(0x140)][_0x504180(0x2df)](a[_0x504180(0x351)][_0x504180(0xf2)]),this['_univerInstanceService'][_0x504180(0x2df)](a[_0x504180(0x351)][_0x504180(0x26b)]))[_0x504180(0x1a1)](I[_0x504180(0x19e)](this['dispose$']))[_0x504180(0x185)](_0x13527e=>{const _0x34a50c=_0x504180,_0x4b9612=_0x13527e[_0x34a50c(0x1b5)](),_0xb53ed8=this[_0x34a50c(0xe7)][_0x34a50c(0x27d)](_0x4b9612);_0xb53ed8&&(_0xb53ed8['dispose'](),this['_entities']['delete'](_0x4b9612));});}async[_0xa8fcb3(0x264)](_0x9f1858){const _0x28a869=_0xa8fcb3,_0x5dc06a=await this[_0x28a869(0x2ac)]['requireSession'](_0x9f1858),_0xa2357d=this[_0x28a869(0x137)][_0x28a869(0x26c)](ve,_0x9f1858,_0x5dc06a);return _0xa2357d[_0x28a869(0x172)](),_0xa2357d;}async[_0xa8fcb3(0xfa)](_0x59bec5){const _0x1cabe7=_0xa8fcb3,_0x16ff04=await this[_0x1cabe7(0x2ac)][_0x1cabe7(0x19a)](_0x59bec5),_0x39bc2a=this[_0x1cabe7(0x137)][_0x1cabe7(0x26c)](ge,_0x59bec5,_0x16ff04);return _0x39bc2a[_0x1cabe7(0x172)](),_0x39bc2a;}};k=Ct([ce(0x0,a[_0xa8fcb3(0x2f5)]),ce(0x1,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),ce(0x2,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x9b)]))],k);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x5580d4,_0x4b81c6){const _0x38f7b3=_0xa8fcb3;let {radius:_0x4edf2f,width:_0x298716,height:_0x2c8c76}=_0x4b81c6;_0x4edf2f=_0x4edf2f!=null?_0x4edf2f:0x0,_0x298716=_0x298716!=null?_0x298716:0x1e,_0x2c8c76=_0x2c8c76!=null?_0x2c8c76:0x1e;let _0x4ba96b=0x0,_0x10bd28=0x0,_0x491855=0x0;_0x4ba96b=_0x10bd28=_0x491855=Math['min'](_0x4edf2f,_0x298716/0x2,_0x2c8c76/0x2),_0x5580d4[_0x38f7b3(0x26d)](),_0x5580d4['moveTo'](_0x4ba96b,0x0),_0x5580d4[_0x38f7b3(0xfb)](_0x298716-_0x10bd28,0x0),_0x5580d4[_0x38f7b3(0x18a)](_0x298716-_0x10bd28,_0x10bd28,_0x10bd28,Math['PI']*0x3/0x2,0x0,!0x1),_0x5580d4['lineTo'](_0x298716,_0x2c8c76-_0x491855),_0x5580d4[_0x38f7b3(0x18a)](_0x298716-_0x491855,_0x2c8c76-_0x491855,_0x491855,0x0,Math['PI']/0x2,!0x1),_0x5580d4['lineTo'](0x0,_0x2c8c76),_0x5580d4['lineTo'](0x0,_0x4ba96b),_0x5580d4[_0x38f7b3(0x18a)](_0x4ba96b,_0x4ba96b,_0x4ba96b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5580d4[_0x38f7b3(0x219)](),_0x4b81c6[_0x38f7b3(0x204)]&&(_0x5580d4[_0x38f7b3(0x19b)](),_0x5580d4[_0x38f7b3(0x2ef)]=_0x4b81c6[_0x38f7b3(0x204)],_0x4b81c6[_0x38f7b3(0xb3)]===_0x38f7b3(0x2fc)?_0x5580d4['fill']('evenodd'):_0x5580d4[_0x38f7b3(0x204)](),_0x5580d4[_0x38f7b3(0x2ed)]());}class re extends T[_0xa8fcb3(0x31f)]{constructor(_0x593d23,_0x532fdb){const _0x4b8518=_0xa8fcb3;super(_0x593d23,_0x532fdb),_(this,'color'),_(this,_0x4b8518(0x1ce)),(this[_0x4b8518(0xdf)]=_0x532fdb==null?void 0x0:_0x532fdb[_0x4b8518(0xdf)],this[_0x4b8518(0x1ce)]=_0x532fdb==null?void 0x0:_0x532fdb['text']);}static['drawWith'](_0x39b29c,_0x24e613){const _0x241ec2=_0xa8fcb3,{text:_0x4906ce,color:_0x126d30}=_0x24e613;_0x39b29c[_0x241ec2(0x19b)](),_0x39b29c[_0x241ec2(0x2b5)]=_0x241ec2(0x2ea);const _0x4eafec=_0x39b29c[_0x241ec2(0x249)](_0x4906ce)[_0x241ec2(0x200)],_0x11259f=Math[_0x241ec2(0xd1)](_0x4eafec+0x2*le,Ue);Ot(_0x39b29c,{'height':X,'radius':0x4,'width':_0x11259f,'fill':_0x126d30}),_0x39b29c[_0x241ec2(0x2ef)]=_0x241ec2(0x1db);const _0x2aad12=le,_0x4a20e9=X-pt,_0x4b6e4d=Ue-0x2*le;if(_0x4eafec>_0x4b6e4d){let _0x2b8d32='',_0x3ba289=0x0;for(const _0x3a8baa of _0x4906ce){const _0x5c6657=_0x39b29c[_0x241ec2(0x249)](_0x3a8baa)['width'];if(_0x3ba289+_0x5c6657<=_0x4b6e4d-_0x39b29c[_0x241ec2(0x249)](_0x241ec2(0x320))[_0x241ec2(0x200)])_0x2b8d32+=_0x3a8baa,_0x3ba289+=_0x5c6657;else{_0x2b8d32+=_0x241ec2(0x320);break;}}_0x39b29c[_0x241ec2(0x251)](_0x2b8d32,_0x2aad12,_0x4a20e9);}else _0x39b29c[_0x241ec2(0x251)](_0x4906ce,_0x2aad12,_0x4a20e9);_0x39b29c[_0x241ec2(0x2ed)]();}[_0xa8fcb3(0xe4)](_0x41821f){re['drawWith'](_0x41821f,this);}}const _e=_0xa8fcb3(0x115),bt=_0xa8fcb3(0x165),Rt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0xa8fcb3(0x179);class Le{constructor(_0xa85ef2,_0x2b545b,_0x11ab2c,_0x44f609){const _0x1a9402=_0xa8fcb3;_(this,'_shapes',[]),_(this,_0x1a9402(0x147),null),_(this,'_textBubble',null),_(this,_0x1a9402(0x23f),null),_(this,_0x1a9402(0xd3),null),_(this,_0x1a9402(0x31c),null),(this[_0x1a9402(0x338)]=_0xa85ef2,this[_0x1a9402(0x24f)]=_0x2b545b,this[_0x1a9402(0xcf)]=_0x11ab2c,this[_0x1a9402(0x133)]=_0x44f609,this[_0x1a9402(0x354)]());}set['_hover'](_0x214aaa){const _0x3f0fae=_0xa8fcb3;_0x214aaa?(this[_0x3f0fae(0x23f)]&&this[_0x3f0fae(0x23f)]['hide'](),this[_0x3f0fae(0xe1)]&&this[_0x3f0fae(0xe1)][_0x3f0fae(0xbc)]()):(this[_0x3f0fae(0x23f)]&&this[_0x3f0fae(0x23f)][_0x3f0fae(0xbc)](),this['_textBubble']&&this[_0x3f0fae(0xe1)][_0x3f0fae(0x90)]());}[_0xa8fcb3(0x229)](){const _0x503570=_0xa8fcb3;for(const _0x5ee62e of this[_0x503570(0xf7)])_0x5ee62e[_0x503570(0x229)]();this[_0x503570(0xe1)]&&this[_0x503570(0xe1)][_0x503570(0x229)](),this[_0x503570(0x23f)]&&this[_0x503570(0x23f)][_0x503570(0x229)](),this['_anchor']&&this[_0x503570(0x147)][_0x503570(0x229)](),this['_eventUnsubscribe']&&this[_0x503570(0x31c)]();}[_0xa8fcb3(0x354)](){const _0x5b5f7f=_0xa8fcb3;var _0x53b386;const {_docSkeleton:_0x68f300,_document:_0x5019aa}=this,{color:_0x5f2a86,name:_0x422c72,ranges:_0x28d706}=this['_cursor'],_0x344938=_0x5019aa['getOffsetConfig'](),{docsLeft:_0x1cb39e,docsTop:_0x129867}=_0x344938,_0x277204=new C['NodePositionConvertToCursor'](_0x344938,_0x68f300);for(const {startOffset:_0x42cf40,endOffset:_0x40abf4,rangeType:_0x3aa78e,segmentId:_0x383476,segmentPage:_0x4d39ef,collapsed:_0x20e36b,isActive:_0x1a1e2c}of _0x28d706){const _0x3516bd=_0x68f300[_0x5b5f7f(0x6e)](_0x42cf40,!0x0,_0x383476,_0x4d39ef);let _0x296a67=_0x68f300[_0x5b5f7f(0x6e)](_0x40abf4,!0x0,_0x383476,_0x4d39ef);if(_0x296a67==null&&(_0x296a67=_0x68f300['findNodePositionByCharIndex'](_0x40abf4-0x1,!0x1,_0x383476,_0x4d39ef)),_0x1a1e2c){const {contentBoxPointGroup:_0x23cd7f}=_0x277204[_0x5b5f7f(0xa5)](_0x296a67,_0x296a67);if(_0x23cd7f['length']===0x0)continue;this[_0x5b5f7f(0x2a4)](_0x5f2a86,_0x23cd7f,_0x1cb39e,_0x129867,_0x422c72),this[_0x5b5f7f(0x31c)]=this['_handleHover']();}if(_0x3516bd&&_0x296a67){if(_0x3aa78e===a['DOC_RANGE_TYPE'][_0x5b5f7f(0x270)]){const _0x4308b3=new C['NodePositionConvertToRectRange'](_0x344938,_0x68f300),{pointGroup:_0x4f2627}=(_0x53b386=_0x4308b3[_0x5b5f7f(0xa5)](_0x3516bd,_0x296a67))!=null?_0x53b386:{};if(_0x4f2627==null||_0x4f2627[_0x5b5f7f(0x250)]===0x0)continue;this['_drawRectRange'](_0x5f2a86,_0x4f2627,_0x1cb39e,_0x129867);}else{if(!_0x20e36b){const {borderBoxPointGroup:_0x489cd1}=_0x277204[_0x5b5f7f(0xa5)](_0x3516bd,_0x296a67);if(_0x489cd1[_0x5b5f7f(0x250)]===0x0)continue;this[_0x5b5f7f(0x335)](_0x5f2a86,_0x489cd1,_0x1cb39e,_0x129867);}}}}}['_drawAnchor'](_0x5879a7,_0x96ef8a,_0x59700a,_0x265859,_0x4b3d13){const _0x1fe291=_0xa8fcb3,_0x3d9ffa=this[_0x1fe291(0x294)](_0x96ef8a),{left:_0x882855,top:_0x780dfd,height:_0x58d06a}=_0x3d9ffa,_0xb073ec=this['_getScale'](),_0x5dfc30=Nt/_0xb073ec,_0x53d50a=new T['Rect'](_e+a[_0x1fe291(0x124)](H),{'left':_0x882855+_0x59700a-_0x5dfc30,'top':_0x780dfd+_0x265859,'height':_0x58d06a,'width':Dt,'fill':_0x5879a7||T[_0x1fe291(0x340)](a[_0x1fe291(0x1c8)][_0x1fe291(0x293)],0x0),'strokeWidth':_0x5dfc30,'stroke':Ut,'evented':!0x0});this[_0x1fe291(0x147)]=_0x53d50a,this['_scene'][_0x1fe291(0x10e)](_0x53d50a,C['TEXT_RANGE_LAYER_INDEX']);const _0x5ea20d=new T['Rect'](_e+a['generateRandomId'](H),{'left':_0x882855+_0x59700a-_0x5dfc30,'top':_0x780dfd+_0x265859-he/0x2,'height':he,'width':he,'fill':_0x5879a7||T[_0x1fe291(0x340)](a[_0x1fe291(0x1c8)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5879a7||T[_0x1fe291(0x340)](a[_0x1fe291(0x1c8)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x5ea20d,this[_0x1fe291(0x24f)][_0x1fe291(0x10e)](_0x5ea20d,C[_0x1fe291(0x23b)]);const _0x472163=new re(_e+a[_0x1fe291(0x124)](H),{'left':_0x882855+_0x59700a-_0x5dfc30,'top':_0x780dfd+_0x265859-X,'text':_0x4b3d13,'color':_0x5879a7});this[_0x1fe291(0xe1)]=_0x472163,this[_0x1fe291(0x24f)][_0x1fe291(0x10e)](_0x472163,C['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0xa8fcb3(0x33c)](){const _0x2e83bf=_0xa8fcb3,_0x10abcf=this[_0x2e83bf(0x147)][_0x2e83bf(0x16f)]['subscribeEvent'](()=>{const _0x6bbdd4=_0x2e83bf;this[_0x6bbdd4(0x6f)]=!0x0;}),_0x55314f=this[_0x2e83bf(0x147)][_0x2e83bf(0xbb)][_0x2e83bf(0x2b8)](()=>{const _0x11aeb1=_0x2e83bf;this[_0x11aeb1(0xd3)]&&clearTimeout(this[_0x11aeb1(0xd3)]),this[_0x11aeb1(0xd3)]=setTimeout(()=>{const _0x503cc9=_0x11aeb1;this[_0x503cc9(0x6f)]=!0x1;},0x7d0);});return()=>{const _0x2ffca2=_0x2e83bf;_0x10abcf[_0x2ffca2(0x203)](),_0x55314f['unsubscribe']();};}[_0xa8fcb3(0x335)](_0x2478d0,_0x3d9705,_0x1aa3b3,_0x191639){const _0x383e39=_0xa8fcb3,_0x56f90b=new a[(_0x383e39(0x346))](_0x2478d0)[_0x383e39(0x2e7)](0.2)[_0x383e39(0x2a3)](),_0x5a3e3c=new T['RegularPolygon'](bt+a[_0x383e39(0x124)](H),{'pointsGroup':_0x3d9705,'fill':_0x56f90b||T[_0x383e39(0x340)](a['COLORS']['black'],0.2),'left':_0x1aa3b3,'top':_0x191639,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x383e39(0xf7)][_0x383e39(0x336)](_0x5a3e3c),this['_scene'][_0x383e39(0x10e)](_0x5a3e3c,C['TEXT_RANGE_LAYER_INDEX']);}[_0xa8fcb3(0x16c)](_0x176d48,_0x41976a,_0x561ee7,_0x64593a){const _0x55f04d=_0xa8fcb3,_0x8ad1fc=new a[(_0x55f04d(0x346))](_0x176d48)[_0x55f04d(0x2e7)](0.2)[_0x55f04d(0x2a3)](),_0x5a350c=new T['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0x41976a,'fill':_0x8ad1fc||T[_0x55f04d(0x340)](a[_0x55f04d(0x1c8)][_0x55f04d(0x293)],0.2),'left':_0x561ee7,'top':_0x64593a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x55f04d(0x336)](_0x5a350c),this[_0x55f04d(0x24f)][_0x55f04d(0x10e)](_0x5a350c,C[_0x55f04d(0x23b)]);}[_0xa8fcb3(0x294)](_0x4a63f6){const _0x32f541=_0x4a63f6[0x0],_0x61c48=_0x32f541[0x0],_0x3261c9=_0x32f541[0x2],{x:_0x5262f0,y:_0x416414}=_0x61c48,{x:_0x55ab0f,y:_0x15d279}=_0x3261c9;return{'left':_0x5262f0,'top':_0x416414,'width':_0x55ab0f-_0x5262f0,'height':_0x15d279-_0x416414};}[_0xa8fcb3(0x32f)](){const _0xe1cf8b=_0xa8fcb3,{scaleX:_0x5cdf1b,scaleY:_0x48fa21}=this['_scene'][_0xe1cf8b(0x226)]();return Math['max'](_0x5cdf1b,_0x48fa21);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x43ebd8,_0x54aaac,_0x5827f2,_0x37b4cf)=>{const _0xdfc892=_0xa8fcb3;for(var _0x20c8f9=_0x37b4cf>0x1?void 0x0:_0x37b4cf?Lt(_0x54aaac,_0x5827f2):_0x54aaac,_0x3e4384=_0x43ebd8[_0xdfc892(0x250)]-0x1,_0x114a63;_0x3e4384>=0x0;_0x3e4384--)(_0x114a63=_0x43ebd8[_0x3e4384])&&(_0x20c8f9=_0x114a63(_0x20c8f9)||_0x20c8f9);return _0x20c8f9;},q=(_0x321cb1,_0x40a6b4)=>(_0x298786,_0x507ef2)=>_0x40a6b4(_0x298786,_0x507ef2,_0x321cb1);let Ee=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x44cbed,_0x396393,_0x55d6dc,_0x64a497,_0x5006fe){const _0xc34afc=_0xa8fcb3;super(),_(this,_0xc34afc(0x1aa),[]),_(this,_0xc34afc(0xca),[]),(this[_0xc34afc(0x16b)]=_0x44cbed,this[_0xc34afc(0x2c2)]=_0x396393,this[_0xc34afc(0x118)]=_0x55d6dc,this[_0xc34afc(0x72)]=_0x64a497,this['_themeService']=_0x5006fe,this['_init']());}[_0xa8fcb3(0x24a)](){const _0x33bd6=_0xa8fcb3,_0x4b8763=this[_0x33bd6(0x16b)][_0x33bd6(0x2b0)],_0x4a5a50=this[_0x33bd6(0x2c2)];this[_0x33bd6(0x111)](I[_0x33bd6(0x329)]([this[_0x33bd6(0x118)][_0x33bd6(0x2ce)](_0x4b8763),this['_themeService'][_0x33bd6(0x2cc)]])[_0x33bd6(0x1a1)]($[_0x33bd6(0x141)](([_0x7ef665,_0x2ea41f])=>({'skeleton':_0x4a5a50[_0x33bd6(0x139)](),'cursors':[..._0x7ef665[_0x33bd6(0x120)]()]['flatMap'](_0x3d6fbe=>({..._0x3d6fbe,'color':this['_themeService'][_0x33bd6(0x1cd)](_0x3d6fbe[_0x33bd6(0xdf)])}))})))[_0x33bd6(0x185)](_0x200fcf=>{const _0x98bd39=_0x33bd6;if(this[_0x98bd39(0x178)](),_0x200fcf){const {skeleton:_0xeb84d,cursors:_0x5b91d2}=_0x200fcf;this['_updateCollabCursors'](_0xeb84d,_0x5b91d2);}})),this[_0x33bd6(0x32d)](),this[_0x33bd6(0x315)]();}[_0xa8fcb3(0x100)](_0x216137,_0x2a5ece){const _0xdb7bc6=_0xa8fcb3,{scene:_0x199b18,mainComponent:_0xf4e364}=this[_0xdb7bc6(0x16b)],_0xaff7c9=_0x2a5ece['map'](_0x1d0c8c=>new Le(_0x1d0c8c,_0x199b18,_0x216137,_0xf4e364));this[_0xdb7bc6(0x1aa)]=_0xaff7c9,this[_0xdb7bc6(0xca)]=_0x2a5ece;}['_refreshCollabCursors'](){const _0x40019c=_0xa8fcb3;this[_0x40019c(0x178)]();const {scene:_0xeca0a3,mainComponent:_0x2b0c53}=this[_0x40019c(0x16b)],_0x1e91ab=this['_docSkeletonManagerService'][_0x40019c(0x139)](),_0x510463=this[_0x40019c(0xca)]['map'](_0x494208=>new Le(_0x494208,_0xeca0a3,_0x1e91ab,_0x2b0c53));this['_cursorShapes']=_0x510463;}[_0xa8fcb3(0x178)](){const _0x55de8e=_0xa8fcb3;this['_cursorShapes'][_0x55de8e(0x2b4)](_0x2abf89=>_0x2abf89['dispose']()),this[_0x55de8e(0x1aa)]=[];}[_0xa8fcb3(0x315)](){const _0x5dd013=_0xa8fcb3,_0x23823f=[C[_0x5dd013(0xac)]['id']];this[_0x5dd013(0x111)](this[_0x5dd013(0x72)][_0x5dd013(0xc6)](_0x19a9f5=>{const _0x463026=_0x5dd013;_0x23823f[_0x463026(0x27b)](_0x19a9f5['id'])&&_0x19a9f5[_0x463026(0x215)][_0x463026(0x2b0)]===this[_0x463026(0x16b)][_0x463026(0x2b0)]&&this[_0x463026(0x34d)]();}));}['_initResize'](){const _0x3baa86=_0xa8fcb3;this[_0x3baa86(0x111)](a[_0x3baa86(0x2a0)](this[_0x3baa86(0x16b)][_0x3baa86(0x267)]['onTransformChange$'])[_0x3baa86(0x1a1)]($[_0x3baa86(0x154)](_0x52fb4c=>_0x52fb4c['type']===T['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x3baa86(0x91)](0x10))[_0x3baa86(0x185)](()=>{const _0x1e07d3=_0x3baa86;this[_0x1e07d3(0x34d)]();}));}};Ee=Mt([q(0x1,a[_0xa8fcb3(0x271)](V[_0xa8fcb3(0x26a)])),q(0x2,a['Inject'](k)),q(0x3,a[_0xa8fcb3(0x233)]),q(0x4,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x126)]))],Ee);const At=0x1,Pt=1.5;class Fe extends T[_0xa8fcb3(0x31f)]{constructor(_0x19d3df,_0x46ce3f){const _0x324c63=_0xa8fcb3;var _0x15b0eb,_0x25c1d7;super(_0x19d3df,_0x46ce3f),_(this,_0x324c63(0x2cd)),_(this,_0x324c63(0x1ec),!0x1),_(this,_0x324c63(0x2b3)),_(this,_0x324c63(0x2d3),''),_(this,_0x324c63(0x1d7),_0x324c63(0x1bf)),_(this,_0x324c63(0xa9)),_(this,_0x324c63(0x128)),_(this,_0x324c63(0x2f8)),_(this,'_highlightSecond',0x4),_(this,'_blinkTimer'),_(this,_0x324c63(0x17c)),_(this,_0x324c63(0x150),!0x0),_(this,_0x324c63(0x308),0x0),(_0x46ce3f&&(this[_0x324c63(0x94)](_0x46ce3f),_0x46ce3f[_0x324c63(0x14a)]&&((_0x15b0eb=_0x46ce3f[_0x324c63(0x25c)])!=null?_0x15b0eb:this['_highlightSecond'])&&this[_0x324c63(0x228)]((_0x25c1d7=_0x46ce3f[_0x324c63(0x25c)])!=null?_0x25c1d7:this[_0x324c63(0x171)])),this['onPointerEnter$'][_0x324c63(0x2b8)](()=>this[_0x324c63(0x94)]({'hovered':!0x0})),this[_0x324c63(0xbb)]['subscribeEvent'](()=>this[_0x324c63(0x94)]({'hovered':!0x1})));}['setOffsetY'](_0x496831){const _0x302af6=_0xa8fcb3;this[_0x302af6(0x308)]=_0x496831;}[_0xa8fcb3(0x94)](_0x5eac57){const _0x481d88=_0xa8fcb3;var _0x3cf0f1,_0x247369,_0x4172dd,_0x45eb07,_0xa70e75,_0x24c693,_0x50aca0;this[_0x481d88(0x2cd)]=(_0x3cf0f1=_0x5eac57[_0x481d88(0xdf)])!=null?_0x3cf0f1:this[_0x481d88(0x2cd)],this[_0x481d88(0x1ec)]=(_0x247369=_0x5eac57[_0x481d88(0x314)])!=null?_0x247369:this[_0x481d88(0x1ec)],this[_0x481d88(0x2b3)]=(_0x4172dd=_0x5eac57['range'])!=null?_0x4172dd:this[_0x481d88(0x2b3)],this[_0x481d88(0x2d3)]=(_0x45eb07=_0x5eac57[_0x481d88(0x10b)])!=null?_0x45eb07:this[_0x481d88(0x2d3)],this[_0x481d88(0x1d7)]=(_0xa70e75=_0x5eac57[_0x481d88(0xf6)])!=null?_0xa70e75:this['_labelPosition'],this[_0x481d88(0xa9)]=(_0x24c693=_0x5eac57[_0x481d88(0x166)])!=null?_0x24c693:this[_0x481d88(0xa9)],this[_0x481d88(0x128)]=(_0x50aca0=_0x5eac57[_0x481d88(0x2a1)])!=null?_0x50aca0:this[_0x481d88(0x128)],_0x5eac57['highlightSecond']!==void 0x0&&(this[_0x481d88(0x171)]=_0x5eac57[_0x481d88(0x25c)]),_0x5eac57['highlight']!==void 0x0&&(this[_0x481d88(0x2f8)]=_0x5eac57[_0x481d88(0x14a)]),_0x5eac57[_0x481d88(0x193)]!==void 0x0&&(this[_0x481d88(0x308)]=_0x5eac57[_0x481d88(0x193)]),this[_0x481d88(0x77)]({'width':_0x5eac57[_0x481d88(0x200)],'height':_0x5eac57['height']});}[_0xa8fcb3(0x347)](_0x1c7a5d){const _0x503d96=_0xa8fcb3,{row:_0x4bf788,column:_0x3b712e}=_0x1c7a5d;if(_0x4bf788>=this['_range'][_0x503d96(0x2bc)]&&_0x4bf788<=this[_0x503d96(0x2b3)][_0x503d96(0x241)]&&_0x3b712e>=this[_0x503d96(0x2b3)][_0x503d96(0xf3)]&&_0x3b712e<=this[_0x503d96(0x2b3)]['endColumn']){this[_0x503d96(0x94)]({'hovered':!0x0});return;}this[_0x503d96(0x94)]({'hovered':!0x1});}[_0xa8fcb3(0x228)](_0x59b471){const _0x3e73d9=_0xa8fcb3;this[_0x3e73d9(0x15c)](),this[_0x3e73d9(0x150)]=!0x0,this['_blinkIntervalTimer']=window[_0x3e73d9(0x148)](()=>{const _0x2b709f=_0x3e73d9;this['_isBlinkVisible']=!this[_0x2b709f(0x150)],this[_0x2b709f(0x134)](!0x0);},0x1f4),this[_0x3e73d9(0x22f)]=window[_0x3e73d9(0x132)](()=>{const _0x22e7f3=_0x3e73d9;this[_0x22e7f3(0x15c)](),this[_0x22e7f3(0x150)]=!0x0,this[_0x22e7f3(0x134)](!0x0);},_0x59b471*0x3e8);}[_0xa8fcb3(0x15c)](){const _0x59eb14=_0xa8fcb3;this[_0x59eb14(0x17c)]&&(window['clearInterval'](this[_0x59eb14(0x17c)]),this[_0x59eb14(0x17c)]=void 0x0),this[_0x59eb14(0x22f)]&&(window[_0x59eb14(0x16a)](this[_0x59eb14(0x22f)]),this[_0x59eb14(0x22f)]=void 0x0);}[_0xa8fcb3(0x1e5)](_0x25b325){return!0x1;}[_0xa8fcb3(0x229)](){this['_stopBlinking'](),super['dispose']();}[_0xa8fcb3(0xe4)](_0x3e57d6){const _0x490d8d=_0xa8fcb3;var _0x3012ee,_0x1eb941;let _0x456e29=this[_0x490d8d(0x2cd)],_0x1b8fd6=this[_0x490d8d(0xa9)];this[_0x490d8d(0x2f8)]&&!this['_isBlinkVisible']&&(_0x456e29=this[_0x490d8d(0x2a6)](this['_color']),_0x1b8fd6=this[_0x490d8d(0xa9)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),T[_0x490d8d(0x2a7)][_0x490d8d(0x2b6)](_0x3e57d6,{'width':this[_0x490d8d(0x200)],'height':this[_0x490d8d(0x247)],'strokeWidth':(_0x3012ee=this[_0x490d8d(0x211)])!=null?_0x3012ee:Pt,'stroke':_0x456e29,'evented':!0x1,'fill':_0x1b8fd6}),(this[_0x490d8d(0x1ec)]||this[_0x490d8d(0x128)])&&(_0x3e57d6[_0x490d8d(0x19b)](),_0x3e57d6[_0x490d8d(0xaa)](0x1,0x0,0x0,0x1,this[_0x490d8d(0x200)],(this[_0x490d8d(0x1d7)]===_0x490d8d(0x1cf)?0x0:-X)+((_0x1eb941=this[_0x490d8d(0x308)])!=null?_0x1eb941:0x0)),re['drawWith'](_0x3e57d6,{'text':this[_0x490d8d(0x2d3)],'color':_0x456e29}),_0x3e57d6[_0x490d8d(0x2ed)]());}[_0xa8fcb3(0x2a6)](_0x51314f){const _0x3762f4=_0xa8fcb3;if(_0x51314f[_0x3762f4(0x163)]('#')){const _0x76f788=Number[_0x3762f4(0x26f)](_0x51314f[_0x3762f4(0x76)](0x1,0x3),0x10),_0x511e5b=Number['parseInt'](_0x51314f[_0x3762f4(0x76)](0x3,0x5),0x10),_0x4eb600=Number[_0x3762f4(0x26f)](_0x51314f[_0x3762f4(0x76)](0x5,0x7),0x10);return _0x3762f4(0xf4)+_0x76f788+',\x20'+_0x511e5b+',\x20'+_0x4eb600+_0x3762f4(0x313);}return _0x51314f[_0x3762f4(0x163)](_0x3762f4(0x23a))?_0x51314f[_0x3762f4(0x13a)](/[\d.]+\)$/g,_0x3762f4(0xe0)):_0x51314f[_0x3762f4(0x163)](_0x3762f4(0x2d9))?_0x51314f[_0x3762f4(0x13a)](_0x3762f4(0x2d9),'rgba')[_0x3762f4(0x13a)](')',_0x3762f4(0x313)):_0x51314f;}}var wt=Object[_0xa8fcb3(0x2c0)],yt=(_0x5916cd,_0x4aa858,_0x51f804,_0x3990af)=>{const _0x944ec=_0xa8fcb3;for(var _0x4ece18=_0x3990af>0x1?void 0x0:_0x3990af?wt(_0x4aa858,_0x51f804):_0x4aa858,_0x19a028=_0x5916cd[_0x944ec(0x250)]-0x1,_0x2d2d3a;_0x19a028>=0x0;_0x19a028--)(_0x2d2d3a=_0x5916cd[_0x19a028])&&(_0x4ece18=_0x2d2d3a(_0x4ece18)||_0x4ece18);return _0x4ece18;},ue=(_0x4bd53c,_0x26a104)=>(_0x985ba5,_0x290f21)=>_0x26a104(_0x985ba5,_0x290f21,_0x4bd53c);const $t=0x1389;let Te=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0xf66331,_0x180bea,_0x2c6ef4,_0x514301){const _0x2d6d3a=_0xa8fcb3;super(),_(this,_0x2d6d3a(0xca),new Set()),_(this,_0x2d6d3a(0x279),null),(this[_0x2d6d3a(0x16b)]=_0xf66331,this[_0x2d6d3a(0x230)]=_0x180bea,this[_0x2d6d3a(0x118)]=_0x2c6ef4,this[_0x2d6d3a(0x9f)]=_0x514301,this['_init']());}['_init'](){const _0x14c3ff=_0xa8fcb3;this[_0x14c3ff(0x230)][_0x14c3ff(0x11e)][_0x14c3ff(0x1a1)]($[_0x14c3ff(0x19e)](this['dispose$']),$[_0x14c3ff(0x14c)](_0x300ba6=>{const _0x1057d4=_0x14c3ff;if(_0x300ba6){const _0x479a53=_0x300ba6[_0x1057d4(0x1d2)];return I['combineLatest'](this[_0x1057d4(0x118)]['getCollabCursors$'](this[_0x1057d4(0x16b)][_0x1057d4(0x2b0)]),this[_0x1057d4(0x9f)][_0x1057d4(0x2cc)])['pipe']($['map'](([_0x55fdaa,_0x3bd9d5])=>{const _0x163b95=_0x1057d4,_0x182610=new Map();return _0x55fdaa[_0x163b95(0x2b4)]((_0x2e8188,_0x30a1ac)=>{const _0x27c91d=_0x163b95;if(_0x2e8188[_0x27c91d(0x202)]===_0x479a53){const _0x4e6b1d={..._0x2e8188};_0x4e6b1d[_0x27c91d(0xdf)]=this[_0x27c91d(0x9f)]['getColorFromTheme'](_0x2e8188[_0x27c91d(0xdf)]),_0x182610['set'](_0x30a1ac,_0x4e6b1d);}}),{'skeleton':_0x300ba6,'cursors':_0x182610};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x14c3ff(0x185)](({skeleton:_0x387207,cursors:_0x54d9ab})=>{this['_removeCollabCursors'](),_0x387207&&this['_updateCollabCursors'](_0x387207,_0x54d9ab);}),this[_0x14c3ff(0x230)][_0x14c3ff(0x11e)][_0x14c3ff(0x185)](_0x260f5c=>{const _0x5702b7=_0x14c3ff;if(_0x260f5c==null)return;const {skeleton:_0x3c9c0f}=_0x260f5c,{scene:_0x17320b}=this['_context'];_0x17320b[_0x5702b7(0x17f)][_0x5702b7(0x2b8)](a[_0x5702b7(0x1fb)](_0xf57886=>{const _0x29cfd5=_0x5702b7;var _0x2681ae,_0x2fb5d3;const {offsetX:_0x27a82d,offsetY:_0x3b737b}=_0xf57886,{x:_0x47173d,y:_0x47f51a}=_0x17320b['getRelativeToViewportCoord'](T[_0x29cfd5(0x1e8)][_0x29cfd5(0x1cb)]([_0x27a82d,_0x3b737b])),{scaleX:_0x89af71,scaleY:_0x588bbd}=_0x17320b[_0x29cfd5(0x226)](),_0x4804a2=_0x17320b[_0x29cfd5(0x18c)](T[_0x29cfd5(0x1b1)][_0x29cfd5(0x13c)]),_0x3bb2ec=_0x17320b[_0x29cfd5(0x342)](T[_0x29cfd5(0x1e8)][_0x29cfd5(0x1cb)]([_0x47173d,_0x47f51a]),_0x4804a2),_0x2e6756=_0x3c9c0f[_0x29cfd5(0x1a5)](_0x27a82d,_0x3b737b,_0x89af71,_0x588bbd,_0x3bb2ec);((_0x2681ae=this[_0x29cfd5(0x279)])==null?void 0x0:_0x2681ae[_0x29cfd5(0x24e)])===_0x2e6756[_0x29cfd5(0x24e)]&&((_0x2fb5d3=this['_lastPointer'])==null?void 0x0:_0x2fb5d3[_0x29cfd5(0xda)])===_0x2e6756[_0x29cfd5(0xda)]||this[_0x29cfd5(0xca)][_0x29cfd5(0x2b4)](_0x69a3bf=>{const _0x2b9664=_0x29cfd5;_0x69a3bf[_0x2b9664(0x347)](_0x2e6756);});},0x64));});}[_0xa8fcb3(0x100)](_0x5098e1,_0x4c3f3c){const _0x129f89=_0xa8fcb3;var _0xbff60f;const _0x11c051=(_0xbff60f=this[_0x129f89(0x230)][_0x129f89(0x1eb)]())==null?void 0x0:_0xbff60f[_0x129f89(0x7e)];if(!_0x11c051)return;const _0x14b81c=this[_0x129f89(0x2b7)]();if(!_0x14b81c)return;this[_0x129f89(0xca)][_0x129f89(0x2b4)](_0x4444c5=>{const _0x26aa9e=_0x129f89;_0x4444c5[_0x26aa9e(0x134)]();});const {scene:_0x2ac953}=_0x14b81c,_0x36996c=xt(Array['from'](_0x4c3f3c[_0x129f89(0x120)]()))[_0x129f89(0x141)](_0x1201ad=>{const _0x5708cb=_0x129f89,{color:_0x173b58,range:_0x32911f,name:_0xeb3964,selection:_0x3feadf,sheetID:_0x3019e7}=_0x1201ad,{startColumn:_0x33a16c,startRow:_0xf78dba,endColumn:_0x31fc10,endRow:_0x247d85}=_0x32911f,_0x46f1e6=J[_0x5708cb(0x29a)](_0xf78dba,_0x33a16c,_0x2ac953,_0x11c051),_0x2a7137=J[_0x5708cb(0x29a)](_0x247d85,_0x31fc10,_0x2ac953,_0x11c051),{columnHeaderHeightAndMarginTop:_0xe4e693}=_0x11c051,{startX:_0x3754d4,startY:_0x17c5bd}=_0x46f1e6,{endX:_0x202fd1,endY:_0x409c3e}=_0x2a7137,_0x19d934=_0x202fd1-_0x3754d4,_0x4c1788=_0x409c3e-_0x17c5bd,_0x1940fc={'labelPosition':_0x17c5bd-_0xe4e693>=X?_0x5708cb(0x1bf):_0x5708cb(0x1cf),'sheetID':_0x3019e7,'range':_0x32911f,'color':_0x173b58,'name':_0xeb3964,'selection':_0x3feadf,'left':_0x3754d4,'top':_0x17c5bd,'width':_0x19d934,'height':_0x4c1788,'evented':!0x1,'zIndex':$t};return new Fe(_0xeb3964,_0x1940fc);});_0x2ac953[_0x129f89(0x18b)](_0x36996c,At),this[_0x129f89(0xca)]=new Set(_0x36996c);}[_0xa8fcb3(0x178)](){const _0x7040e2=_0xa8fcb3;var _0x3690c0;(_0x3690c0=this[_0x7040e2(0xca)])==null||_0x3690c0[_0x7040e2(0x2b4)](_0x1dd7a5=>_0x1dd7a5[_0x7040e2(0x229)]());}[_0xa8fcb3(0x2b7)](){const _0x3446fd=_0xa8fcb3;return J[_0x3446fd(0x297)](this[_0x3446fd(0x16b)][_0x3446fd(0x2ff)],this[_0x3446fd(0x16b)]);}};Te=yt([ue(0x1,a[_0xa8fcb3(0x271)](J[_0xa8fcb3(0x2d2)])),ue(0x2,a[_0xa8fcb3(0x271)](k)),ue(0x3,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x126)]))],Te);function xt(_0x519406){const _0x740251=_0xa8fcb3,_0x410b5c=new Map();return _0x519406[_0x740251(0x2b4)](_0x4fc14f=>{const _0x5a5966=_0x740251;if(_0x410b5c[_0x5a5966(0x339)](_0x4fc14f[_0x5a5966(0x214)])){const _0x5b1bcc=_0x410b5c[_0x5a5966(0x27d)](_0x4fc14f['selection']);_0x5b1bcc[_0x5a5966(0x10b)]+=',\x20'+_0x4fc14f[_0x5a5966(0x10b)];}else _0x410b5c[_0x5a5966(0x2a9)](_0x4fc14f['selection'],_0x4fc14f);}),Array['from'](_0x410b5c[_0x740251(0x120)]());}var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x419475,_0x40530a,_0x488770,_0x594c85)=>{const _0x3699d8=_0xa8fcb3;for(var _0x3aca06=_0x594c85>0x1?void 0x0:_0x594c85?Bt(_0x40530a,_0x488770):_0x40530a,_0x4df196=_0x419475[_0x3699d8(0x250)]-0x1,_0x5531ba;_0x4df196>=0x0;_0x4df196--)(_0x5531ba=_0x419475[_0x4df196])&&(_0x3aca06=_0x5531ba(_0x3aca06)||_0x3aca06);return _0x3aca06;},y=(_0x1edfc5,_0x292aaa)=>(_0x3678f6,_0xec04a9)=>_0x292aaa(_0x3678f6,_0xec04a9,_0x1edfc5);let Z=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x58ac87,_0x36403e,_0x469c46,_0x3fa843,_0x295e08,_0x57ace7){const _0xdc6cc6=_0xa8fcb3;super(),this[_0xdc6cc6(0x1f3)]=_0x58ac87,this[_0xdc6cc6(0x1ea)]=_0x36403e,this[_0xdc6cc6(0xe9)]=_0x469c46,this[_0xdc6cc6(0x10a)]=_0x3fa843,this['_notificationService']=_0x295e08,this[_0xdc6cc6(0x1fa)]=_0x57ace7,this[_0xdc6cc6(0x1ba)](),this[_0xdc6cc6(0x2f6)]();}[_0xa8fcb3(0x1ba)](){const _0x5bd71b=_0xa8fcb3;this[_0x5bd71b(0x111)](this[_0x5bd71b(0x1f3)]['registerBeforeClose'](()=>{const _0x1eac14=_0x5bd71b;if(this['_localCacheService'][_0x1eac14(0x14d)][_0x1eac14(0x239)])return this['_localeService']['t'](_0x1eac14(0x20b));}));}[_0xa8fcb3(0x2f6)](){const _0x4f466f=_0xa8fcb3;this[_0x4f466f(0x111)](this['_collaborationUIEventService'][_0x4f466f(0x187)][_0x4f466f(0x185)](_0x12110f=>{const _0x14c9eb=_0x4f466f;_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0x2b2)]&&this['_messageService'][_0x14c9eb(0xbc)]({'type':p[_0x14c9eb(0x199)][_0x14c9eb(0x70)],'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x248))}),_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0x106)]&&this[_0x14c9eb(0x10a)][_0x14c9eb(0xbc)]({'type':p['MessageType'][_0x14c9eb(0x70)],'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x1fd))}),_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0x1b4)]&&this['_notificationService'][_0x14c9eb(0xbc)]({'title':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x78)),'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x162)),'type':_0x14c9eb(0x123),'duration':0x0}),_0x12110f['id']===u[_0x14c9eb(0xf8)]['CONFLICT']&&this[_0x14c9eb(0x10a)][_0x14c9eb(0xbc)]({'type':p['MessageType']['Error'],'content':this['_localeService']['t'](_0x14c9eb(0x1fd))+'('+_0x12110f[_0x14c9eb(0x28f)]+')'}),_0x12110f['id']===u['CollaborationUIEventId'][_0x14c9eb(0x75)]&&this['_messageService'][_0x14c9eb(0xbc)]({'type':p[_0x14c9eb(0x199)][_0x14c9eb(0x70)],'content':this['_localeService']['t'](_0x12110f['data']||'')}),_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0xce)]&&this[_0x14c9eb(0x10a)]['show']({'type':p['MessageType'][_0x14c9eb(0x70)],'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x207))}),_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0x2f9)]&&this[_0x14c9eb(0x10a)]['show']({'type':p[_0x14c9eb(0x199)][_0x14c9eb(0x190)],'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x35b))}),_0x12110f['id']===u['CollaborationUIEventId'][_0x14c9eb(0x2d6)]&&this[_0x14c9eb(0x10a)][_0x14c9eb(0xbc)]({'type':p[_0x14c9eb(0x199)][_0x14c9eb(0x190)],'content':this['_localeService']['t'](_0x14c9eb(0x240))});}));}};Z=kt([y(0x0,O[_0xa8fcb3(0x28b)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x22a)])),y(0x3,O[_0xa8fcb3(0x2af)]),y(0x4,O[_0xa8fcb3(0xc8)]),y(0x5,a[_0xa8fcb3(0x271)](a['LocaleService']))],Z);var Ft=Object[_0xa8fcb3(0x2c0)],jt=(_0x5ea06e,_0x859b02,_0x71e485,_0x341cdc)=>{const _0x35f09c=_0xa8fcb3;for(var _0x99bc8d=_0x341cdc>0x1?void 0x0:_0x341cdc?Ft(_0x859b02,_0x71e485):_0x859b02,_0x5438b9=_0x5ea06e[_0x35f09c(0x250)]-0x1,_0x50a01c;_0x5438b9>=0x0;_0x5438b9--)(_0x50a01c=_0x5ea06e[_0x5438b9])&&(_0x99bc8d=_0x50a01c(_0x99bc8d)||_0x99bc8d);return _0x99bc8d;},z=(_0x1e1d2f,_0x4813b8)=>(_0x516601,_0x527a6)=>_0x4813b8(_0x516601,_0x527a6,_0x1e1d2f);let Q=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x35eb3a,_0x83b893,_0x53b628,_0x33f039){const _0xd0d618=_0xa8fcb3;super(),_(this,_0xd0d618(0x2bb)),(this[_0xd0d618(0x137)]=_0x35eb3a,this[_0xd0d618(0x1c4)]=_0x83b893,this['_logService']=_0x53b628,this[_0xd0d618(0x12f)]=_0x33f039,this['_init']());}[_0xa8fcb3(0x24a)](){const _0x177499=_0xa8fcb3;this[_0x177499(0x302)](),this['_initUnhandledRejectionListener'](),this[_0x177499(0x330)](),this[_0x177499(0x10f)]();}['_initUserListener'](){const _0x4eaefe=_0xa8fcb3;this[_0x4eaefe(0x111)](this['_collaborationSessionService']['socket$'][_0x4eaefe(0x185)](_0xdd2c5e=>{this['_memberID']=_0xdd2c5e==null?void 0x0:_0xdd2c5e['memberID'];}));}[_0xa8fcb3(0x302)](){const _0x45c272=_0xa8fcb3,_0x2a511c=_0xd34125=>{const _0x47999e=_0x2702;var _0x42b608;this['_uploadLog']('error',_0x47999e(0x21b)+_0xd34125[_0x47999e(0xaf)]+_0x47999e(0xba)+_0xd34125['filename']+':'+_0xd34125[_0x47999e(0x153)]+':'+_0xd34125[_0x47999e(0xe8)]+'\x0a'+(((_0x42b608=_0xd34125[_0x47999e(0x123)])==null?void 0x0:_0x42b608[_0x47999e(0xcc)])||''));};window[_0x45c272(0x261)](_0x45c272(0x123),_0x2a511c),this['disposeWithMe'](()=>{const _0x526b15=_0x45c272;window[_0x526b15(0x2eb)](_0x526b15(0x123),_0x2a511c);});}[_0xa8fcb3(0x2ad)](){const _0x31199e=_0xa8fcb3,_0x2b6436=_0x4d23c4=>{const _0x1b646b=_0x2702;this[_0x1b646b(0x191)](_0x1b646b(0x123),'[Unhandled\x20Rejection]:\x20'+_0x4d23c4[_0x1b646b(0x19f)]);};window[_0x31199e(0x261)]('unhandledrejection',_0x2b6436),this[_0x31199e(0x111)](()=>{const _0x26b08b=_0x31199e;window[_0x26b08b(0x2eb)](_0x26b08b(0x160),_0x2b6436);});}[_0xa8fcb3(0x330)](){const _0x5e7351=_0xa8fcb3,_0x25ade0=this[_0x5e7351(0x25a)][_0x5e7351(0x123)][_0x5e7351(0x30a)](this['_logService']);this['_logService'][_0x5e7351(0x123)]=(..._0x527e05)=>{const _0x1295c2=_0x5e7351,_0x123f92=_0x527e05[_0x1295c2(0x141)](_0x473630=>_0x473630 instanceof Error?_0x473630[_0x1295c2(0xaf)]+'\x0a'+_0x473630[_0x1295c2(0xcc)]:String(_0x473630))['join']('\x20');this[_0x1295c2(0x191)]('error',_0x1295c2(0x168)+_0x123f92),_0x25ade0(..._0x527e05);},this['disposeWithMe'](()=>{const _0x22cfbc=_0x5e7351;this[_0x22cfbc(0x25a)][_0x22cfbc(0x123)]=_0x25ade0;});}[_0xa8fcb3(0x191)](_0x48b840,_0x30ce70){const _0x89f7cc=_0xa8fcb3;try{const _0x12f01a={'userId':this[_0x89f7cc(0x2bb)],'logLabel':_0x48b840,'content':_0x30ce70};this[_0x89f7cc(0x1c4)][_0x89f7cc(0x305)](_0x89f7cc(0x1f4),{'body':_0x12f01a})[_0x89f7cc(0x15b)](()=>{});}catch{}}};Q=jt([z(0x0,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),z(0x1,a['Inject'](x[_0xa8fcb3(0x196)])),z(0x2,a[_0xa8fcb3(0x284)]),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0xa8fcb3(0x7c),Me={};var Ht=Object[_0xa8fcb3(0x2c0)],Wt=(_0x8c7ec,_0x313ef5,_0x3934a4,_0x300291)=>{const _0x2230ff=_0xa8fcb3;for(var _0x46a848=_0x300291>0x1?void 0x0:_0x300291?Ht(_0x313ef5,_0x3934a4):_0x313ef5,_0x459c91=_0x8c7ec[_0x2230ff(0x250)]-0x1,_0xa40f91;_0x459c91>=0x0;_0x459c91--)(_0xa40f91=_0x8c7ec[_0x459c91])&&(_0x46a848=_0xa40f91(_0x46a848)||_0x46a848);return _0x46a848;},Ae=(_0x247793,_0x250311)=>(_0x526325,_0x316087)=>_0x250311(_0x526325,_0x316087,_0x247793);let ee=class{constructor(_0x4217e3,_0x188dd5){const _0x4c2f50=_0xa8fcb3;this[_0x4c2f50(0x238)]=_0x4217e3,this[_0x4c2f50(0x71)]=_0x188dd5;}[_0xa8fcb3(0x268)](_0x1c0af6){const _0x3086b6=_0xa8fcb3;this[_0x3086b6(0xb0)](_0x1c0af6),this[_0x3086b6(0x2fe)](_0x1c0af6);}[_0xa8fcb3(0xb8)](_0xaa4258){const _0x4b2b71=_0xa8fcb3,{unitID:_0x40e813}=_0xaa4258,_0x378a47=this[_0x4b2b71(0x71)][_0x4b2b71(0x136)](_0x40e813)[_0x4b2b71(0x11f)](C[_0x4b2b71(0x107)]),{redoCache:_0x19d263}=_0x378a47[_0x4b2b71(0x131)]();if(_0x19d263[_0x4b2b71(0x250)]===0x0)return _0xaa4258;let _0x351249=a[_0x4b2b71(0xc1)]['deepClone'](_0xaa4258[_0x4b2b71(0x35a)][0x0]);for(let _0x36e20d=0x0;_0x36e20d<_0x19d263[_0x4b2b71(0x250)];_0x36e20d++){const _0x19f96f={'id':'doc.mutation.rich-text-editing','params':{..._0x19d263[_0x36e20d]}},_0x19f332=this[_0x4b2b71(0x238)][_0x4b2b71(0x2ca)](_0x351249,_0x19f96f,!0x1);if(v[_0x4b2b71(0x1af)](_0x19f332))throw _0x19f332[_0x4b2b71(0x123)];_0x351249=_0x19f332[_0x4b2b71(0x1a8)];}return{...a['Tools']['deepClone'](_0xaa4258),'mutations':[_0x351249]};}[_0xa8fcb3(0xb0)](_0x5622ed){const _0x45221c=_0xa8fcb3,{unitID:_0x54b4e5}=_0x5622ed,_0x118ebb=this[_0x45221c(0x71)]['getRenderById'](_0x54b4e5)[_0x45221c(0x11f)](C[_0x45221c(0x107)]),{undoCache:_0x2ce7ec,redoCache:_0x41f6fc}=_0x118ebb[_0x45221c(0x131)]();if(_0x2ce7ec[_0x45221c(0x250)]===0x0||_0x41f6fc[_0x45221c(0x250)]===0x0)return;const _0x257e29=[],_0x2ab8f3=[];let _0x46d248=a[_0x45221c(0xc1)][_0x45221c(0x244)](_0x5622ed['mutations'][0x0]),_0x35d6dd=a[_0x45221c(0xc1)][_0x45221c(0x244)](_0x5622ed['mutations'][0x0]);for(let _0x4db4a7=_0x2ce7ec['length']-0x1;_0x4db4a7>=0x0;_0x4db4a7--){const _0x49bb3b={'id':_0x45221c(0x218),'params':{..._0x2ce7ec[_0x4db4a7]}},_0x28319b={'id':_0x45221c(0x218),'params':{..._0x41f6fc[_0x4db4a7]}},_0x34b645=this['_transformService'][_0x45221c(0x2ca)](_0x46d248,_0x49bb3b,!0x1),_0x32b016=this[_0x45221c(0x238)][_0x45221c(0x2ca)](_0x35d6dd,_0x28319b,!0x1);if(v[_0x45221c(0x1af)](_0x34b645))throw _0x34b645[_0x45221c(0x123)];if(v[_0x45221c(0x1af)](_0x32b016))throw _0x32b016['error'];_0x257e29[_0x45221c(0x17b)](_0x34b645[_0x45221c(0x246)]['params']),_0x2ab8f3[_0x45221c(0x17b)](_0x32b016['m2Prime'][_0x45221c(0x215)]),_0x46d248=_0x34b645[_0x45221c(0x1a8)],_0x35d6dd=_0x32b016[_0x45221c(0x1a8)];}_0x118ebb[_0x45221c(0x22b)]({'undoCache':_0x257e29,'redoCache':_0x2ab8f3});}[_0xa8fcb3(0x2fe)](_0x101a59){const _0x220304=_0xa8fcb3,{unitID:_0x180c01}=_0x101a59,_0x529f6b=this[_0x220304(0x71)][_0x220304(0x136)](_0x180c01)[_0x220304(0x11f)](C[_0x220304(0x107)]),_0x2d0cc4=_0x529f6b[_0x220304(0x170)]();if(_0x2d0cc4==null)return;const _0x57e23a=[{'id':_0x220304(0x218),'params':{'unitId':_0x101a59[_0x220304(0x1a9)],'actions':null,'textRanges':[_0x2d0cc4]}}],_0x15b0f0=this['_transformService'][_0x220304(0x2f0)](_0x101a59,_0x57e23a);if(!v['isTransformMutationsWithChangesetSuccess'](_0x15b0f0))throw _0x15b0f0[_0x220304(0x123)];const _0x3125c5=_0x15b0f0['m2Prime'][0x0][_0x220304(0x215)][_0x220304(0xb9)];Array[_0x220304(0x2e3)](_0x3125c5)&&_0x3125c5[_0x220304(0x250)]&&_0x529f6b[_0x220304(0x83)](_0x3125c5[0x0]);}};ee=Wt([Ae(0x0,v[_0xa8fcb3(0x227)]),Ae(0x1,T[_0xa8fcb3(0x144)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x20e7ad,_0x19b90b,_0x3c97c7,_0x49c0ee)=>{const _0x4e9ae8=_0xa8fcb3;for(var _0x1b0b92=_0x49c0ee>0x1?void 0x0:_0x49c0ee?Vt(_0x19b90b,_0x3c97c7):_0x19b90b,_0x5080df=_0x20e7ad[_0x4e9ae8(0x250)]-0x1,_0x5eaf0e;_0x5080df>=0x0;_0x5080df--)(_0x5eaf0e=_0x20e7ad[_0x5080df])&&(_0x1b0b92=_0x5eaf0e(_0x1b0b92)||_0x1b0b92);return _0x1b0b92;},Ie=(_0x24ea78,_0x43f011)=>(_0x485dae,_0x1e8c82)=>_0x43f011(_0x485dae,_0x1e8c82,_0x24ea78);let te=class{constructor(_0x4b808b,_0x48af12,_0x5190b4){const _0x2cdcb7=_0xa8fcb3;this['_injector']=_0x4b808b,this['_transformService']=_0x48af12,this[_0x2cdcb7(0x1c5)]=_0x5190b4;}[_0xa8fcb3(0x13d)](_0x1a8b8e){const _0x161e11=_0xa8fcb3;this[_0x161e11(0x119)](_0x1a8b8e);}[_0xa8fcb3(0xb8)](_0x471085){const _0x270c60=_0xa8fcb3,{unitID:_0x2b3d33}=_0x471085,{collaboration:_0x2ae6e9}=this[_0x270c60(0x1c5)]['getStateCache'](_0x2b3d33);if(_0x2ae6e9[_0x270c60(0x250)]===0x0)return _0x471085;let _0x22da86=a['Tools']['deepClone'](_0x471085[_0x270c60(0x35a)][0x0]);for(let _0x2bc8b0=0x0;_0x2bc8b0<_0x2ae6e9[_0x270c60(0x250)];_0x2bc8b0++){const _0x5019bf={'id':_0x270c60(0x218),'params':{'unitId':_0x2ae6e9[_0x2bc8b0][_0x270c60(0x2b0)],..._0x2ae6e9[_0x2bc8b0]['redoState']}},_0x124fe3=this['_transformService']['transformMutation'](_0x22da86,_0x5019bf,!0x1);if(v[_0x270c60(0x1af)](_0x124fe3))throw _0x124fe3[_0x270c60(0x123)];_0x22da86=_0x124fe3[_0x270c60(0x1a8)];}return{...a['Tools'][_0x270c60(0x244)](_0x471085),'mutations':[_0x22da86]};}[_0xa8fcb3(0x119)](_0x2e0010){const _0x46b396=_0xa8fcb3,{unitID:_0x141b52}=_0x2e0010,{history:_0x19613b,collaboration:_0x1ce3dd}=this[_0x46b396(0x1c5)][_0x46b396(0x31b)](_0x141b52);if(_0x19613b[_0x46b396(0x250)]===0x0&&_0x1ce3dd[_0x46b396(0x250)]===0x0)return;const _0x587ab6=[],_0xfa4d28=[];let _0x3d4cb8=a[_0x46b396(0xc1)][_0x46b396(0x244)](_0x2e0010['mutations'][0x0]),_0x3c4fe4=a[_0x46b396(0xc1)][_0x46b396(0x244)](_0x2e0010[_0x46b396(0x35a)][0x0]);for(let _0xe226d2=_0x19613b[_0x46b396(0x250)]-0x1;_0xe226d2>=0x0;_0xe226d2--){const _0x407dd1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x19613b[_0xe226d2][_0x46b396(0x2b0)],..._0x19613b[_0xe226d2][_0x46b396(0x184)]}},_0x45e2c7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x19613b[_0xe226d2][_0x46b396(0x2b0)],..._0x19613b[_0xe226d2][_0x46b396(0xe3)]}},_0x15e546=this[_0x46b396(0x238)][_0x46b396(0x2ca)](_0x3d4cb8,_0x407dd1,!0x1),_0x16ae37=this[_0x46b396(0x238)][_0x46b396(0x2ca)](_0x3c4fe4,_0x45e2c7,!0x1);if(v[_0x46b396(0x1af)](_0x15e546))throw _0x15e546['error'];if(v['isTransformMutationFailure'](_0x16ae37))throw _0x16ae37['error'];_0x587ab6[_0x46b396(0x17b)]({..._0x19613b[_0xe226d2],'undoState':_0x15e546[_0x46b396(0x246)][_0x46b396(0x215)],'redoState':_0x16ae37[_0x46b396(0x246)][_0x46b396(0x215)]}),_0x3d4cb8=_0x15e546[_0x46b396(0x1a8)],_0x3c4fe4=_0x16ae37[_0x46b396(0x1a8)];}_0x3d4cb8=a[_0x46b396(0xc1)][_0x46b396(0x244)](_0x2e0010[_0x46b396(0x35a)][0x0]),_0x3c4fe4=a['Tools'][_0x46b396(0x244)](_0x2e0010[_0x46b396(0x35a)][0x0]);for(let _0x200ef2=_0x1ce3dd[_0x46b396(0x250)]-0x1;_0x200ef2>=0x0;_0x200ef2--){const _0x17a9d8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ce3dd[_0x200ef2][_0x46b396(0x2b0)],..._0x1ce3dd[_0x200ef2][_0x46b396(0x184)]}},_0x222eb1={'id':_0x46b396(0x218),'params':{'unitId':_0x1ce3dd[_0x200ef2][_0x46b396(0x2b0)],..._0x1ce3dd[_0x200ef2][_0x46b396(0xe3)]}},_0x480776=this[_0x46b396(0x238)]['transformMutation'](_0x3d4cb8,_0x17a9d8,!0x1),_0x2694e3=this['_transformService']['transformMutation'](_0x3c4fe4,_0x222eb1,!0x1);if(v[_0x46b396(0x1af)](_0x480776))throw _0x480776[_0x46b396(0x123)];if(v[_0x46b396(0x1af)](_0x2694e3))throw _0x2694e3[_0x46b396(0x123)];_0xfa4d28[_0x46b396(0x17b)]({..._0x1ce3dd[_0x200ef2],'undoState':_0x480776[_0x46b396(0x246)][_0x46b396(0x215)],'redoState':_0x2694e3[_0x46b396(0x246)][_0x46b396(0x215)]}),_0x3d4cb8=_0x480776[_0x46b396(0x1a8)],_0x3c4fe4=_0x2694e3['m1Prime'];}this['_docStateChangeManagerService'][_0x46b396(0x34f)](_0x141b52,{'history':_0x587ab6,'collaboration':_0xfa4d28});}};te=Gt([Ie(0x0,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),Ie(0x1,v[_0xa8fcb3(0x227)]),Ie(0x2,a['Inject'](C[_0xa8fcb3(0x28a)]))],te);var Xt=Object[_0xa8fcb3(0x2c0)],Kt=(_0x353af5,_0x1daf17,_0x50bd0a,_0x130c18)=>{const _0x4b495f=_0xa8fcb3;for(var _0x331ba8=_0x130c18>0x1?void 0x0:_0x130c18?Xt(_0x1daf17,_0x50bd0a):_0x1daf17,_0x1fd5f8=_0x353af5[_0x4b495f(0x250)]-0x1,_0x5b4353;_0x1fd5f8>=0x0;_0x1fd5f8--)(_0x5b4353=_0x353af5[_0x1fd5f8])&&(_0x331ba8=_0x5b4353(_0x331ba8)||_0x331ba8);return _0x331ba8;},Pe=(_0x3efade,_0x1ae317)=>(_0x17fca9,_0x7626ed)=>_0x1ae317(_0x17fca9,_0x7626ed,_0x3efade);let ie=class{constructor(_0x1eb1ac,_0x3aebf5){const _0x5b596b=_0xa8fcb3;this[_0x5b596b(0x137)]=_0x1eb1ac,this['_transformService']=_0x3aebf5;}[_0xa8fcb3(0x85)](_0x37f15c){const _0x244dc1=_0xa8fcb3;var _0x3e487b;const _0x5109f7=this['_injector']['get'](V[_0x244dc1(0x159)]),_0x48ba5d=(_0x3e487b=_0x5109f7['getDocRanges']())!=null?_0x3e487b:[];if(_0x48ba5d[_0x244dc1(0x250)]===0x0)return;const _0xe99154=_0x37f15c['unitID'],_0x256042=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe99154,'actions':null,'textRanges':_0x48ba5d}}],_0x149b4e=this[_0x244dc1(0x238)][_0x244dc1(0x2f0)](_0x37f15c,_0x256042);if(!v[_0x244dc1(0x359)](_0x149b4e))throw _0x149b4e[_0x244dc1(0x123)];const _0x5dfe1f=_0x149b4e['m2Prime'][0x0][_0x244dc1(0x215)]['textRanges'];Array['isArray'](_0x5dfe1f)&&_0x5dfe1f[_0x244dc1(0x250)]&&_0x5109f7[_0x244dc1(0x259)](_0x5dfe1f,{'unitId':_0xe99154,'subUnitId':_0xe99154},!0x1);}};ie=Kt([Pe(0x0,a['Inject'](a[_0xa8fcb3(0x1c7)])),Pe(0x1,v[_0xa8fcb3(0x227)])],ie);var qt=Object[_0xa8fcb3(0x2c0)],zt=(_0x3d7abd,_0x2bb3f4,_0x5bcfba,_0x4e735b)=>{const _0x177276=_0xa8fcb3;for(var _0x190c4c=_0x4e735b>0x1?void 0x0:_0x4e735b?qt(_0x2bb3f4,_0x5bcfba):_0x2bb3f4,_0x3aa9f5=_0x3d7abd[_0x177276(0x250)]-0x1,_0x142adb;_0x3aa9f5>=0x0;_0x3aa9f5--)(_0x142adb=_0x3d7abd[_0x3aa9f5])&&(_0x190c4c=_0x142adb(_0x190c4c)||_0x190c4c);return _0x190c4c;},N=(_0x36d410,_0x3f7b28)=>(_0x3e61b3,_0xfea064)=>_0x3f7b28(_0x3e61b3,_0xfea064,_0x36d410);let se=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x31477b,_0x10e31b,_0x332e2d,_0x5bca66,_0x4f98cb,_0x203843,_0x112b15,_0xb277f6){const _0x232357=_0xa8fcb3;super(),_(this,'_status$',new I['BehaviorSubject'](u['CollaborationStatus'][_0x232357(0x1c3)])),(this[_0x232357(0x1c5)]=_0x31477b,this[_0x232357(0x30d)]=_0x10e31b,this[_0x232357(0x18d)]=_0x332e2d,this[_0x232357(0xa4)]=_0x5bca66,this[_0x232357(0x255)]=_0x4f98cb,this[_0x232357(0x29d)]=_0x203843,this[_0x232357(0x10a)]=_0x112b15,this[_0x232357(0x1fa)]=_0xb277f6,this[_0x232357(0x2d0)]());}[_0xa8fcb3(0x2d0)](){const _0x16bb09=_0xa8fcb3;this['disposeWithMe'](this[_0x16bb09(0x30d)][_0x16bb09(0x82)][_0x16bb09(0x185)](_0x5ebc05=>{const _0x310636=_0x16bb09,_0x1544de=this[_0x310636(0x1c5)][_0x310636(0xea)][_0x310636(0x185)](_0x2da63b=>{const _0x2a180f=_0x310636;if(_0x2da63b==null)return;const {unitId:_0x3c0217,redoState:_0x2b20c9,commandId:_0x3da0b8}=_0x2da63b;if(_0x3c0217!==_0x5ebc05[_0x2a180f(0x1a9)])return;const _0x5f0899={'id':_0x3da0b8,'type':a[_0x2a180f(0x9c)][_0x2a180f(0x80)],'params':{'unitId':_0x3c0217,'actions':_0x2b20c9[_0x2a180f(0x236)],'textRanges':null}};_0x5ebc05[_0x2a180f(0x222)](_0x5f0899);});if(_0x5ebc05[_0x310636(0x111)](_0x1544de),_0x5ebc05 instanceof u[_0x310636(0x282)]){const _0x207b6d={'onTransformIME':_0x48a015=>this[_0x310636(0x18d)][_0x310636(0x268)](_0x48a015),'onTransformState':_0x30798f=>this[_0x310636(0xa4)][_0x310636(0x13d)](_0x30798f),'onTransformSelections':_0x5c8578=>this[_0x310636(0x255)][_0x310636(0x85)](_0x5c8578),'onSyncEditingCollabCursor':_0x47b0a5=>this[_0x310636(0x29d)]['syncEditingCollabCursor'](_0x47b0a5),'onTransformRemoteChangesetByIMECache':_0x3f1173=>this['_docTransformIMECacheService'][_0x310636(0xb8)](_0x3f1173),'onTransformRemoteChangesetByStateCache':_0x24a01b=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x24a01b)};_0x5ebc05['addHandlerCallback'](_0x207b6d);}}));}};se=zt([N(0x0,a['Inject'](C[_0xa8fcb3(0x28a)])),N(0x1,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x1f8)])),N(0x2,a[_0xa8fcb3(0x271)](ee)),N(0x3,a[_0xa8fcb3(0x271)](te)),N(0x4,a['Inject'](ie)),N(0x5,a[_0xa8fcb3(0x271)](Re)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],se);var G=(_0x306027=>(_0x306027[_0x306027['UNDEFINED']=0x0]=_0xa8fcb3(0x27a),_0x306027[_0x306027['OK']=0x1]='OK',_0x306027[_0x306027[_0xa8fcb3(0x235)]=0x2]=_0xa8fcb3(0x235),_0x306027[_0x306027[_0xa8fcb3(0x1b4)]=0x3]=_0xa8fcb3(0x1b4),_0x306027[_0x306027[_0xa8fcb3(0x232)]=0x4]=_0xa8fcb3(0x232),_0x306027[_0x306027[_0xa8fcb3(0xb2)]=0x5]=_0xa8fcb3(0xb2),_0x306027[_0x306027[_0xa8fcb3(0x2b1)]=0x6]=_0xa8fcb3(0x2b1),_0x306027[_0x306027[_0xa8fcb3(0x197)]=0x7]=_0xa8fcb3(0x197),_0x306027[_0x306027[_0xa8fcb3(0x2fb)]=0x8]=_0xa8fcb3(0x2fb),_0x306027[_0x306027[_0xa8fcb3(0x28d)]=0x9]=_0xa8fcb3(0x28d),_0x306027[_0x306027[_0xa8fcb3(0x8f)]=0xa]='LOGIN_FAILED',_0x306027[_0x306027[_0xa8fcb3(0x12a)]=0xb]=_0xa8fcb3(0x12a),_0x306027[_0x306027[_0xa8fcb3(0x2e2)]=0xc]=_0xa8fcb3(0x2e2),_0x306027[_0x306027[_0xa8fcb3(0x2de)]=0xd]=_0xa8fcb3(0x2de),_0x306027[_0x306027[_0xa8fcb3(0x2a2)]=0xe]=_0xa8fcb3(0x2a2),_0x306027[_0x306027['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0xa8fcb3(0x8d),_0x306027[_0x306027[_0xa8fcb3(0x273)]=0x10]=_0xa8fcb3(0x273),_0x306027[_0x306027[_0xa8fcb3(0x11a)]=0x64]=_0xa8fcb3(0x11a),_0x306027[_0x306027[_0xa8fcb3(0x2dd)]=0x65]=_0xa8fcb3(0x2dd),_0x306027[_0x306027[_0xa8fcb3(0x189)]=0xc9]=_0xa8fcb3(0x189),_0x306027[_0x306027[_0xa8fcb3(0x253)]=0xca]=_0xa8fcb3(0x253),_0x306027[_0x306027[_0xa8fcb3(0x343)]=0x1389]=_0xa8fcb3(0x343),_0x306027[_0x306027[_0xa8fcb3(0x2b9)]=0x1771]=_0xa8fcb3(0x2b9),_0x306027[_0x306027['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xa8fcb3(0xf5),_0x306027[_0x306027['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xa8fcb3(0x1ad),_0x306027[_0x306027['APPLY_REJECT']=0x1b59]=_0xa8fcb3(0x2a5),_0x306027[_0x306027[_0xa8fcb3(0x262)]=0x1b5a]=_0xa8fcb3(0x262),_0x306027[_0x306027[_0xa8fcb3(0x2c5)]=0x1b5b]=_0xa8fcb3(0x2c5),_0x306027[_0x306027['APPLY_PERMISSION_DENIED']=0x1b5c]=_0xa8fcb3(0x8c),_0x306027[_0x306027[_0xa8fcb3(0x21f)]=0x1b5d]=_0xa8fcb3(0x21f),_0x306027[_0x306027['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0xa8fcb3(0x277),_0x306027[_0x306027[_0xa8fcb3(0xbf)]=0x2329]=_0xa8fcb3(0xbf),_0x306027[_0x306027[_0xa8fcb3(0x129)]=0x232a]=_0xa8fcb3(0x129),_0x306027[_0x306027['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xa8fcb3(0x209),_0x306027[_0x306027[_0xa8fcb3(0x195)]=0x232c]=_0xa8fcb3(0x195),_0x306027[_0x306027[_0xa8fcb3(0x311)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x306027[_0x306027[_0xa8fcb3(0x258)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x306027[_0x306027[_0xa8fcb3(0x1e0)]=0x2712]=_0xa8fcb3(0x1e0),_0x306027[_0x306027['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x306027[_0x306027[_0xa8fcb3(0x1d1)]=0x2714]=_0xa8fcb3(0x1d1),_0x306027[_0x306027[_0xa8fcb3(0x142)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x306027[_0x306027[_0xa8fcb3(0x1e7)]=0x271b]=_0xa8fcb3(0x1e7),_0x306027[_0x306027[_0xa8fcb3(0x79)]=0x271c]=_0xa8fcb3(0x79),_0x306027[_0x306027[_0xa8fcb3(0x84)]=0x271d]=_0xa8fcb3(0x84),_0x306027[_0x306027[_0xa8fcb3(0x2bd)]=0x271e]=_0xa8fcb3(0x2bd),_0x306027[_0x306027['YUUMI_AI_RUN_FAILED']=0x271f]=_0xa8fcb3(0x21a),_0x306027[_0x306027[_0xa8fcb3(0x291)]=0x2720]=_0xa8fcb3(0x291),_0x306027[_0x306027['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0xa8fcb3(0xae),_0x306027[_0x306027[_0xa8fcb3(0x25d)]=0x2ee1]=_0xa8fcb3(0x25d),_0x306027[_0x306027[_0xa8fcb3(0x2c4)]=0x2ee2]=_0xa8fcb3(0x2c4),_0x306027[_0x306027['INVITE_CODE_REQUIRED']=0x2ee3]=_0xa8fcb3(0x1f1),_0x306027[_0x306027[_0xa8fcb3(0xef)]=0x2ee4]=_0xa8fcb3(0xef),_0x306027[_0x306027['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x306027[_0x306027['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0xa8fcb3(0x1c0),_0x306027[_0x306027[_0xa8fcb3(0x1fc)]=0x32ca]=_0xa8fcb3(0x1fc),_0x306027[_0x306027[_0xa8fcb3(0x1a2)]=0x32cb]=_0xa8fcb3(0x1a2),_0x306027[_0x306027[_0xa8fcb3(0x1ff)]=0x36b1]=_0xa8fcb3(0x1ff),_0x306027[_0x306027[_0xa8fcb3(0x7a)]=0x36b2]=_0xa8fcb3(0x7a),_0x306027[_0x306027['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0xa8fcb3(0x285),_0x306027[_0x306027[_0xa8fcb3(0x15e)]=0x36b4]=_0xa8fcb3(0x15e),_0x306027[_0x306027[_0xa8fcb3(0x28c)]=0x36b5]=_0xa8fcb3(0x28c),_0x306027[_0x306027['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0xa8fcb3(0x1d9),_0x306027[_0x306027[_0xa8fcb3(0x2bf)]=0x36b7]=_0xa8fcb3(0x2bf),_0x306027[_0x306027[_0xa8fcb3(0x1d5)]=0x36b8]=_0xa8fcb3(0x1d5),_0x306027[_0x306027['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x306027[_0x306027['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0xa8fcb3(0x2fa),_0x306027[_0x306027[_0xa8fcb3(0x220)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x306027[_0x306027['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0xa8fcb3(0x34b),_0x306027[_0x306027['REDEMPTION_INVALID_CODE']=0x3a99]=_0xa8fcb3(0x1dd),_0x306027[_0x306027[_0xa8fcb3(0x1a3)]=0x3a9a]=_0xa8fcb3(0x1a3),_0x306027[_0x306027[_0xa8fcb3(0x32b)]=0x3a9b]=_0xa8fcb3(0x32b),_0x306027[_0x306027['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0xa8fcb3(0x2c7),_0x306027[_0x306027[_0xa8fcb3(0x2e8)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x306027[_0x306027[_0xa8fcb3(0x2e0)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x306027[_0x306027[_0xa8fcb3(0x1c6)]=0x3a9f]=_0xa8fcb3(0x1c6),_0x306027[_0x306027[_0xa8fcb3(0xc3)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x306027[_0x306027[_0xa8fcb3(0x341)]=-0x1]='UNRECOGNIZED',_0x306027))(G||{});function Jt(_0x59e94c){const _0x5ce27f=_0xa8fcb3;var _0x33c395,_0x32ae53;const _0xf79597=(_0x33c395=_0x59e94c[_0x5ce27f(0x19c)])==null?void 0x0:_0x33c395[_0x5ce27f(0x14b)],_0x507158=((_0x32ae53=_0x59e94c['stageInfo'])==null?void 0x0:_0x32ae53[_0x5ce27f(0x312)])||0x0;return _0xf79597===B[_0x5ce27f(0x108)][_0x5ce27f(0x20a)]&&_0x507158>0x0;}function Zt(_0xc135a4){const _0x3fcd16=_0xa8fcb3;return _0xc135a4[_0x3fcd16(0x1cc)]===B[_0x3fcd16(0xd6)][_0x3fcd16(0x283)];}var Qt=Object[_0xa8fcb3(0x2c0)],ei=(_0x4d41f5,_0x488cd8,_0x3146aa,_0x4b1d41)=>{for(var _0x1234ae=_0x4b1d41>0x1?void 0x0:_0x4b1d41?Qt(_0x488cd8,_0x3146aa):_0x488cd8,_0x5a6cc5=_0x4d41f5['length']-0x1,_0x4036d2;_0x5a6cc5>=0x0;_0x5a6cc5--)(_0x4036d2=_0x4d41f5[_0x5a6cc5])&&(_0x1234ae=_0x4036d2(_0x1234ae)||_0x1234ae);return _0x1234ae;},L=(_0x2d6851,_0x17ae04)=>(_0x410059,_0x786fd6)=>_0x17ae04(_0x410059,_0x786fd6,_0x2d6851);const ti=_0xa8fcb3(0x27f),ii='/universer-api/license/formula/limit/start',si='/universer-api/license/formula/limit/done';let ne=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x816f54,_0x40d602,_0x1afc0d,_0x3d17bf,_0x4aa44a,_0x272e6d,_0x8fd77){const _0x33f075=_0xa8fcb3;super(),_(this,_0x33f075(0x16e),null),_(this,_0x33f075(0x281),0x0),_(this,_0x33f075(0x110),0x0),_(this,_0x33f075(0x121),[]),_(this,_0x33f075(0x1df),0x0),(this['_messageService']=_0x816f54,this[_0x33f075(0x72)]=_0x40d602,this['_configService']=_0x1afc0d,this[_0x33f075(0x1c4)]=_0x3d17bf,this['_univerInstanceService']=_0x4aa44a,this[_0x33f075(0x25a)]=_0x272e6d,this[_0x33f075(0x1fa)]=_0x8fd77,this['_initCommandInterceptor']());}[_0xa8fcb3(0x326)](){const _0x5b96d8=_0xa8fcb3;this[_0x5b96d8(0x111)](this[_0x5b96d8(0x72)][_0x5b96d8(0x33f)]((_0x2a3102,_0x526cb9)=>{const _0x5c9a74=_0x5b96d8;var _0x3f5981;if(_0x2a3102['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x2b9f6c=_0x2a3102[_0x5c9a74(0x215)];if(!this[_0x5c9a74(0x18f)]((_0x3f5981=_0x2b9f6c['dirtyRanges'])!=null?_0x3f5981:[]))return;if(!this[_0x5c9a74(0x25e)]())throw this[_0x5c9a74(0x164)](_0x2a3102,_0x526cb9),this[_0x5c9a74(0x32a)](),new a['CanceledError']();})),this[_0x5b96d8(0x111)](this['_commandService'][_0x5b96d8(0xc6)]((_0x241ed8,_0x522e96)=>{const _0x299ea9=_0x5b96d8;if(_0x241ed8['id']!==B[_0x299ea9(0x89)]['id'])return;const _0x5240d8=_0x241ed8[_0x299ea9(0x215)];if(Jt(_0x5240d8)){const _0x1abb34=a[_0x299ea9(0x124)]();this[_0x299ea9(0x121)][_0x299ea9(0x336)](_0x1abb34),this[_0x299ea9(0x205)](_0x1abb34);}else{if(Zt(_0x5240d8)&&this[_0x299ea9(0x121)][_0x299ea9(0x250)]>0x0){const _0x1710f9=this[_0x299ea9(0x121)][_0x299ea9(0x2d5)]();this['_releaseCalculationLimit'](_0x1710f9);}}}));}[_0xa8fcb3(0x229)](){const _0x193277=_0xa8fcb3;super[_0x193277(0x229)](),this[_0x193277(0x20c)](),this[_0x193277(0x121)]=[],this[_0x193277(0x110)]=0x0,this[_0x193277(0x281)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0xf8955a,_0x4e2b7c){const _0x3783e3=_0xa8fcb3;for(let _0x5ac5eb=0x0;_0x5ac5eb<0x1e;_0x5ac5eb++)try{if(await this['_getFormulaLimitStatus'](),this[_0x3783e3(0x25e)]()){this[_0x3783e3(0xf9)](_0xf8955a,_0x4e2b7c),this[_0x3783e3(0x10a)]['show']({'content':this[_0x3783e3(0x1fa)]['t'](_0x3783e3(0x143)),'type':p['MessageType'][_0x3783e3(0x2fd)]});return;}await new Promise(_0xb3957c=>{const _0x4817e3=_0x3783e3;this[_0x4817e3(0x16e)]=window['setTimeout'](_0xb3957c,0x3e8);});}catch(_0x153c00){this[_0x3783e3(0x25a)][_0x3783e3(0x123)](_0x153c00);}this['_messageService']['show']({'content':this[_0x3783e3(0x1fa)]['t'](_0x3783e3(0x113)),'type':p[_0x3783e3(0x199)][_0x3783e3(0x190)]});}[_0xa8fcb3(0xf9)](_0x5361c7,_0x40f446){const _0x4a357a=_0xa8fcb3;try{this[_0x4a357a(0x72)][_0x4a357a(0xa8)](_0x5361c7['id'],_0x5361c7[_0x4a357a(0x215)],_0x40f446);}catch(_0x577500){this[_0x4a357a(0x25a)]['error'](_0x577500);}}[_0xa8fcb3(0x2ab)](_0xd97e62,_0x748b00){const _0x2b87ea=_0xa8fcb3;_0x748b00<this[_0x2b87ea(0x1df)]||(this[_0x2b87ea(0x1df)]=_0x748b00,this[_0x2b87ea(0x281)]=Number[_0x2b87ea(0x26f)](_0xd97e62[_0x2b87ea(0x92)]),this['_currentUsage']=Number[_0x2b87ea(0x26f)](_0xd97e62[_0x2b87ea(0x257)]));}async[_0xa8fcb3(0x205)](_0x4d196a){const _0x133f66=_0xa8fcb3;var _0x451307,_0x4c9ba4;const _0xc7e5d5=Date[_0x133f66(0x322)]();try{const _0x25d8a0=((_0x451307=this['_configService']['getConfig'](u[_0x133f66(0x8e)]))==null?void 0x0:_0x451307[_0x133f66(0x2da)])||ii,_0x2a96e3=(await this['_httpService'][_0x133f66(0x305)](_0x25d8a0,{'body':JSON['stringify']({'taskId':_0x4d196a})}))[_0x133f66(0x1f0)];if(((_0x4c9ba4=_0x2a96e3[_0x133f66(0x123)])==null?void 0x0:_0x4c9ba4['code'])!==G['OK'])return;this[_0x133f66(0x2ab)](_0x2a96e3[_0x133f66(0x74)],_0xc7e5d5);}catch(_0x45d633){this[_0x133f66(0x25a)]['error'](_0x45d633);}}async['_getFormulaLimitStatus'](_0x2c708c){const _0x67af67=_0xa8fcb3;var _0xa5f9e4,_0x310b06;const _0xaf02ef=Date[_0x67af67(0x322)]();try{const _0xfef121=((_0xa5f9e4=this[_0x67af67(0x34e)][_0x67af67(0x186)](u[_0x67af67(0x8e)]))==null?void 0x0:_0xa5f9e4[_0x67af67(0x2c1)])||ti,_0xec47de=_0x2c708c?_0xfef121+_0x67af67(0xb6)+encodeURIComponent(_0x2c708c):_0xfef121,_0x1688bf=(await this[_0x67af67(0x1c4)][_0x67af67(0x27d)](_0xec47de))['body'];if(((_0x310b06=_0x1688bf['error'])==null?void 0x0:_0x310b06[_0x67af67(0x2be)])!==G['OK'])return;this[_0x67af67(0x2ab)](_0x1688bf['limitInfo'],_0xaf02ef);}catch(_0x13bc8a){this['_logService'][_0x67af67(0x123)](_0x13bc8a);}}async['_releaseCalculationLimit'](_0x31d297){const _0x5010e7=_0xa8fcb3;var _0x27da59,_0xa845c4;const _0x43123b=Date[_0x5010e7(0x322)]();try{const _0x12a15c=((_0x27da59=this['_configService'][_0x5010e7(0x186)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x27da59[_0x5010e7(0x9d)])||si,_0x198b42=(await this['_httpService']['post'](_0x12a15c,{'body':JSON[_0x5010e7(0x1f6)]({'taskId':_0x31d297})}))[_0x5010e7(0x1f0)];if(((_0xa845c4=_0x198b42['error'])==null?void 0x0:_0xa845c4[_0x5010e7(0x2be)])!==G['OK'])return;this[_0x5010e7(0x2ab)](_0x198b42['limitInfo'],_0x43123b);}catch(_0x3674e1){this[_0x5010e7(0x25a)][_0x5010e7(0x123)](_0x3674e1);}}[_0xa8fcb3(0x25e)](){const _0x2be403=_0xa8fcb3;return this[_0x2be403(0x281)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0xa8fcb3(0x20c)](){const _0x398f89=_0xa8fcb3;this[_0x398f89(0x16e)]&&(clearTimeout(this[_0x398f89(0x16e)]),this['_pollingInterval']=null);}[_0xa8fcb3(0x32a)](){const _0x366dda=_0xa8fcb3;this[_0x366dda(0x10a)][_0x366dda(0xbc)]({'content':this[_0x366dda(0x1fa)]['t'](_0x366dda(0x272)),'type':p[_0x366dda(0x199)][_0x366dda(0x11b)]});}[_0xa8fcb3(0x18f)](_0x20d65b){const _0x3e2502=_0xa8fcb3;for(const _0x522049 of _0x20d65b){const {unitId:_0x1589a3,sheetId:_0xd1cfc3,range:_0x225156}=_0x522049,_0x171f0f=this[_0x3e2502(0x140)]['getUnit'](_0x1589a3);if(!_0x171f0f)continue;const _0x319cdd=_0x171f0f[_0x3e2502(0x1ab)](_0xd1cfc3);if(!_0x319cdd)continue;const _0x42a238=_0x319cdd[_0x3e2502(0x105)]();for(let _0x1ca73b=_0x225156[_0x3e2502(0x2bc)];_0x1ca73b<=_0x225156[_0x3e2502(0x241)];_0x1ca73b++)for(let _0x2c5a6=_0x225156[_0x3e2502(0xf3)];_0x2c5a6<=_0x225156['endColumn'];_0x2c5a6++){const _0x1718ba=_0x42a238[_0x3e2502(0x2ec)](_0x1ca73b,_0x2c5a6);if(_0x1718ba&&(a[_0x3e2502(0x32c)](_0x1718ba['f'])||a[_0x3e2502(0x1b8)](_0x1718ba['si'])))return!0x0;}}return!0x1;}};ne=ei([L(0x0,a['Inject'](O[_0xa8fcb3(0x2af)])),L(0x1,a[_0xa8fcb3(0x233)]),L(0x2,a[_0xa8fcb3(0x12b)]),L(0x3,a[_0xa8fcb3(0x271)](x[_0xa8fcb3(0x196)])),L(0x4,a[_0xa8fcb3(0x2f5)]),L(0x5,a[_0xa8fcb3(0x284)]),L(0x6,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1b3)]))],ne);var ni=Object[_0xa8fcb3(0x2c0)],ri=(_0x4f3132,_0x421904,_0x496775,_0x4363fe)=>{const _0x5c6d0f=_0xa8fcb3;for(var _0x4e4847=_0x4363fe>0x1?void 0x0:_0x4363fe?ni(_0x421904,_0x496775):_0x421904,_0xe970bc=_0x4f3132[_0x5c6d0f(0x250)]-0x1,_0xe8cd98;_0xe970bc>=0x0;_0xe970bc--)(_0xe8cd98=_0x4f3132[_0xe970bc])&&(_0x4e4847=_0xe8cd98(_0x4e4847)||_0x4e4847);return _0x4e4847;},de=(_0x5c30fc,_0x15f3b3)=>(_0x52e99d,_0x553640)=>_0x15f3b3(_0x52e99d,_0x553640,_0x5c30fc);let Ce=class extends a['Disposable']{constructor(_0x4daf57,_0x106bbb,_0x317ad7){const _0x3b7061=_0xa8fcb3;super(),_(this,_0x3b7061(0x17d),new Map()),_(this,_0x3b7061(0x1ae),new Map()),_(this,_0x3b7061(0x109),!0x1),(this[_0x3b7061(0x34e)]=_0x4daf57,this['_localStorageService']=_0x106bbb,this['_revisionService']=_0x317ad7);}['disableLocalCache'](){const _0x3affbe=_0xa8fcb3;this[_0x3affbe(0x109)]=!0x0;}[_0xa8fcb3(0x177)](){const _0xba9141=_0xa8fcb3;this[_0xba9141(0x109)]=!0x1;}get[_0xa8fcb3(0x14d)](){const _0x579347=_0xa8fcb3;return this[_0x579347(0x1ae)];}[_0xa8fcb3(0x229)](){const _0x46dab7=_0xa8fcb3;this[_0x46dab7(0x352)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x224bfd){const _0x3ad9b8=_0xa8fcb3;return this[_0x3ad9b8(0x109)]?null:this[_0x3ad9b8(0x2a8)][_0x3ad9b8(0x356)](u[_0x3ad9b8(0x174)](_0x224bfd));}async[_0xa8fcb3(0x2c9)](_0x1e905f,_0x47d7ec){const _0x1809ee=_0xa8fcb3;return!!this[_0x1809ee(0x2a8)][_0x1809ee(0x224)](_0x1e905f,_0x47d7ec);}[_0xa8fcb3(0x208)](_0x7e12d5,_0x24517d,_0x165a83,_0x4fea7d){const _0x5d2b56=_0xa8fcb3,_0x51d37b=this[_0x5d2b56(0x286)][_0x5d2b56(0x252)](_0x7e12d5);this[_0x5d2b56(0x17d)][_0x5d2b56(0x2a9)](_0x7e12d5,{'unitID':_0x7e12d5,'type':_0x24517d,'awaitingChangeset':_0x165a83,'mutations':_0x4fea7d,'rev':_0x51d37b}),this['_saveTaskMap'][_0x5d2b56(0x339)](_0x7e12d5)||this[_0x5d2b56(0x8b)](_0x7e12d5);}[_0xa8fcb3(0x8b)](_0x54f016){const _0xb36665=_0xa8fcb3,_0x3a614a=this[_0xb36665(0x2f4)]();_0x3a614a===0x0?this['_saveCache'](_0x54f016):this['_saveTaskMap'][_0xb36665(0x2a9)](_0x54f016,setTimeout(()=>this['_saveCache'](_0x54f016),_0x3a614a));}[_0xa8fcb3(0x2f4)](){const _0x583aef=_0xa8fcb3;var _0x54a3d6;return(_0x54a3d6=this[_0x583aef(0x34e)][_0x583aef(0x186)](u[_0x583aef(0x157)]))!=null?_0x54a3d6:u[_0x583aef(0xdc)];}[_0xa8fcb3(0xee)](_0x294f12){const _0x1765b4=_0xa8fcb3,_0x8caeb5=this[_0x1765b4(0x1ae)]['get'](_0x294f12);return _0x8caeb5!==void 0x0&&window[_0x1765b4(0x16a)](_0x8caeb5),this[_0x1765b4(0x2a8)]['setItem'](u[_0x1765b4(0x174)](_0x294f12),this[_0x1765b4(0x17d)]['get'](_0x294f12))['then'](()=>this[_0x1765b4(0x1ae)][_0x1765b4(0x295)](_0x294f12));}async['exhaustSavingTask'](){const _0x4639b4=_0xa8fcb3,_0x360952=[];this['_saveTaskMap'][_0x4639b4(0x2b4)]((_0x3ad0f8,_0xb78e15)=>{const _0x565ebf=_0x4639b4;window['clearTimeout'](_0x3ad0f8),_0x360952['push'](this[_0x565ebf(0xee)](_0xb78e15)['then'](()=>{const _0x34f7a2=_0x565ebf;this[_0x34f7a2(0x1ae)][_0x34f7a2(0x295)](_0xb78e15);}));}),await Promise['all'](_0x360952);}};Ce=ri([de(0x0,a['IConfigService']),de(0x1,a[_0xa8fcb3(0x15d)]),de(0x2,a[_0xa8fcb3(0x271)](v['RevisionService']))],Ce);class je extends a['RxDisposable']{constructor(){const _0x549b2b=_0xa8fcb3;super(),_(this,_0x549b2b(0x27c)),this[_0x549b2b(0x27c)]=I[_0x549b2b(0x325)](window,_0x549b2b(0x103))[_0x549b2b(0x1a1)](I['takeUntil'](this[_0x549b2b(0x358)]),I[_0x549b2b(0x1d8)](0x1),I[_0x549b2b(0xad)](void 0x0));}['setParam'](_0x54bd43,_0x2b770a,_0x2b9d26=!0x1){const _0x1a3407=_0xa8fcb3,_0x388048=new URL(window[_0x1a3407(0x1a7)][_0x1a3407(0x324)]);_0x388048[_0x1a3407(0x242)][_0x1a3407(0x2a9)](_0x54bd43,_0x2b770a),_0x2b9d26?window[_0x1a3407(0x1f2)][_0x1a3407(0x1b7)]('','',_0x388048[_0x1a3407(0x24c)]()):window['history']['pushState']('','',_0x388048[_0x1a3407(0x24c)]());}[_0xa8fcb3(0x1e2)](_0x326564,_0x252384=!0x1){const _0x550c7d=_0xa8fcb3,_0x2cab65=new URL(window[_0x550c7d(0x1a7)][_0x550c7d(0x324)]);_0x2cab65[_0x550c7d(0x242)][_0x550c7d(0x295)](_0x326564),_0x252384?window[_0x550c7d(0x1f2)][_0x550c7d(0x1b7)]('','',_0x2cab65['toString']()):window[_0x550c7d(0x1f2)]['pushState']('','',_0x2cab65[_0x550c7d(0x24c)]());}[_0xa8fcb3(0x287)](_0x394be3){const _0x18beda=_0xa8fcb3;var _0x28c779;return(_0x28c779=new URL(window[_0x18beda(0x1a7)]['href'])[_0x18beda(0x242)][_0x18beda(0x27d)](_0x394be3))!=null?_0x28c779:void 0x0;}}var oi=Object['defineProperty'],ai=Object[_0xa8fcb3(0x2c0)],ci=(_0x56c33b,_0x5d9bb7,_0x58e6ea)=>_0x5d9bb7 in _0x56c33b?oi(_0x56c33b,_0x5d9bb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58e6ea}):_0x56c33b[_0x5d9bb7]=_0x58e6ea,li=(_0x1226df,_0x4b89a9,_0x5c9922,_0x1d7b0e)=>{const _0x214476=_0xa8fcb3;for(var _0x54ec2d=_0x1d7b0e>0x1?void 0x0:_0x1d7b0e?ai(_0x4b89a9,_0x5c9922):_0x4b89a9,_0x6f39a=_0x1226df[_0x214476(0x250)]-0x1,_0x443fc0;_0x6f39a>=0x0;_0x6f39a--)(_0x443fc0=_0x1226df[_0x6f39a])&&(_0x54ec2d=_0x443fc0(_0x54ec2d)||_0x54ec2d);return _0x54ec2d;},Se=(_0xc87758,_0x142a0b)=>(_0x43b197,_0x4b4da2)=>_0x142a0b(_0x43b197,_0x4b4da2,_0xc87758),_i=(_0x30f555,_0x3c85c2,_0x592f89)=>ci(_0x30f555,_0x3c85c2+'',_0x592f89);function _0xd5ca(){const _0x5d3701=['LICENSE_IMPORT_SIZE_EXCEEDED','START_CALCULATION','collaboration.offline-data-not-saved','_clearPolling','getFocusedUnit','registerComponent','_toggleOnline','_registerRenderDependencies','strokeWidth','roomMembers','HEADER_MENU','selection','params','assignAColorForMemberID','7zUNaVa','doc.mutation.rich-text-editing','closePath','YUUMI_AI_RUN_FAILED','[Window\x20Error]:\x20','RefRangeService','_assignedColors','tag','APPLY_DUPLICATED','ENTITLE_INSUFFICIENT_QUOTA','getMergeData','onLocalMutation','_config','setItem','_id','getAncestorScale','ITransformService','_startBlinking','dispose','CollaborationUIEventService','setUndoRedoMutationParamsCache','runRefRangeMutations','url(#$1','_initStatusListener','_blinkTimer','_sheetSkeletonManagerService','round','NOT_FOUND','ICommandService','status$','INTERNAL_ERROR','actions','xlink:href','_transformService','size','rgba','TEXT_RANGE_LAYER_INDEX','memberID','search','_createSocketURL','_anchorDot','session.collaboration-timeout','endRow','searchParams','DeleteRangeMoveUpCommandId','deepClone','attrs','m2Prime','height','collaboration.single-unit.warning','measureText','_init','_session','toString','_initDependencies','column','_scene','length','fillText','getCurrentRevOfUnit','USER_IS_ANONYMOUS','CollaborationDataLoaderController','_docTransformSelectionsService','_colorAssignService','currentUsage','YUUMI_UNABLE_LOAD_URL','replaceDocRanges','_logService','url(#off-line-icon_clip0_910_343)','highlightSecond','INVITE_CODE_HAS_BEEN_UES','_checkCalculationAvailable','handleDeleteRangeMoveUp','toStringTag','addEventListener','APPLY_NON_SEQUENTIAL_REVISION','colorChannel1','_startSheetCollabCursor','univerjs-icon\x20univerjs-icon-','uni.network.url-service','engine','transformIMECache','15qGBPIb','DocSkeletonManagerService','UNIVER_SHEET','createInstance','beginPath','IUIPartsService','parseInt','RECT','Inject','formula.calculation.waiting','LOGIN_TOKEN_PROCESSING_FAILED','roomMembers$','collabStatus.syncing','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CONNECTOR_DATA_TOO_LARGE','M0\x200H16V16H0z','_lastPointer','UNDEFINED','includes','urlChange$','get','string','/universer-api/license/formula/limit/status','useCallback','_maxFormulaLimit','DocCollaborationEntity','SUCCESS','ILogService','ENTITLE_DUP_SUBSCRIPTION','_revisionService','getParam','getSheetId','type','DocStateChangeManagerService','IBeforeCloseService','ENTITLE_INVALID_COUPON_CODE','COMPLETION_FINISHED','red.300','data','/run/','YUUMI_CONNECTOR_URL_NOT_FOUND','_toggleOffline','black','_getAnchorBounding','delete','collabStatus.notCollab','getSheetObject','parse','_status$','getCoordByCell','UnitStatus','collabCursorState$','_docSyncEditingCollabCursorService','onStarting','clearInterval','fromEventSubject','showText','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','toRgbString','_drawAnchor','APPLY_REJECT','_getLighterColor','Rect','_localStorageService','set','http://www.w3.org/2000/svg','_setFormulaLimitStatus','_collabSessionService','_initUnhandledRejectionListener','_imageIoService','IMessageService','unitId','ALREADY_EXISTS','OTHER_CLIENT_EDITING','_range','forEach','font','drawWith','_getSheetObject','subscribeEvent','SNAPSHOT_INVALID_SNAPSHOT','WebSocketService','_memberID','startRow','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','code','ENTITLE_COUPON_USED_UP','getOwnPropertyDescriptor','getFormulaLimitStatusUrl','_docSkeletonManagerService','substring','INVALID_INVITE_CODE','APPLY_REVISION_CONFILICT','450990gkeweE','REDEMPTION_CODE_NOT_STARTED','BrowserCollaborationSocketService','saveOfflineData','transformMutation','trim','currentTheme$','_color','getCollabCursors$','5716584giwmAw','_initEntityListener','jiqing.500','SheetSkeletonManagerService','_name','yellow.400','shift','SUBMIT_CHANGESET_TIMEOUT','_docClipboardService','Rectangle','rgb','startFormulaLimitUrl','CollaborationStatus','collabStatus.fetchMiss','ERROR_AGAIN','EMAIL_VERIFY_CODE_MISMATCH','getTypeOfUnitDisposed$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','defineProperty','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','isArray','RichTextEditingMutation','disposeUnit','touchDependencies','setAlpha','REDEMPTION_USER_NOT_ELIGIBLE','USERS_LEAVE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','removeEventListener','getValue','restore','_handleLeaveEvent','fillStyle','transformMutationsWithChangeset','_updateURLWithCurrentState','SetWorksheetActivateCommand','DesktopCollaborationStatusDisplayController','_getSaveTimeout','IUniverInstanceService','_initEvent','svg','_highlight','SOCKET_FAILED','ENTITLE_REPORT_LIMIT_EXCEED','TOO_MANY_REQUESTS','evenodd','Success','_transformPreviousActiveRange','unit','runOnServer','_colorIndex','_initWindowErrorListener','unload','displayName','post','eventID','handleIRemoveRow','_offsetY','enableFrontendLog','bind','assign','OffLineIcon','_collaborationController','jsx','sessionStatus$','purple.300','LICENSE_DISTRO_REJECTED','totalFormulasToCalculate',',\x200.2)','hovered','_initCommandExecutedListener','_ensureSubject','_unitStatus','14IqtoHi','whenReady','_instanceService','getStateCache','_eventUnsubscribe','_setupSubUnitSync','SheetCollabCursorShape','Shape','...','jsxs','now','random','href','fromEvent','_initCommandInterceptor','ISnapshotServerService','runId','combineLatest','_showGuardMessage','REDEMPTION_CODE_FULLY_REDEEMED','isFormulaString','_initResize','handleInsertRangeMoveDown','_getScale','_monkeyPatchLogService','useDependency','imageSourceType','Failed','InsertRangeMoveRightCommandId','_drawTextRange','push','WebBrowserSingleActiveUnitService','_cursor','has','DOC_RANGE_TYPE','_handleJoinEvent','_handleHover','Subject','createIdentifier','beforeCommandExecuted','getColor','UNRECOGNIZED','getVpScrollXYInfoByPosToVp','CHANGESET_REVISION_CONFILICT','610352CaMiqY','newValue','ColorKit','onMouseMove','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_entityInit$','range','ENTITLE_NEED_BILLING_ADDRESS','handleIRemoveCol','_refreshCollabCursors','_configService','setStateCache','Plugin','UniverInstanceType','exhaustSavingTask','merge','_render','invokeId','getItem','split','dispose$','isTransformMutationsWithChangesetSuccess','mutations','session.connection-failed','handleInsertCol','complete','cursorInfo$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_doCreateSocket','findNodePositionByCharIndex','_hover','Warning','_renderManagerService','_commandService','SetTextSelectionsOperation','limitInfo','JOIN_ROOM_FAILED','slice','transformByState','permission.title','YUUMI_TABLE_NOT_FOUND_IN_UNIT','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','white','collaboration-client-ui.config','_roomMembers$','skeleton','url(#on-line-icon_clip0_910_349)','MUTATION','wsSessionTicketUrl','entityInit$','setActiveRange','YUUMI_ALL_TABLES_IS_INVALID','transformSelections','1515102flqajt','BehaviorSubject','EffectRefRangId','SetFormulaCalculationNotificationMutation','key','_scheduleSaving','APPLY_PERMISSION_DENIED','AUTHORIZE_CODE_ILLEGAL','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LOGIN_FAILED','hide','throttleTime','maxFormulaLimit','WebURLService','setShapeProps','DEFAULT_WS_SESSION_TICKET_URL','storage','RemoteUniscriptService','syncEditingCollabCursor','symbol','toDisposable','CollaborationSessionService','CommandType','releaseFormulaLimitUrl','clsx','_themeService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','isEditing','_clearOtherTimers','MemberService','_docTransformStateCacheService','getRangePointData','MoveRangeCommandId','_scheduleHeartbeat','executeCommand','_backgroundColor','transform','SessionStatus','SetDocZoomRatioOperation','mapTo','PY_RUNTIME_SCRIPT_ERROR','message','_transformUndoRedoStack','registerRenderModule','UNAUTHENTICATED','fillRule','0\x200\x2017\x2016','UniverCollaborationClientUIPlugin','?taskId=','distinctUntilChanged','transformRemoteChangeset','textRanges','\x20at\x20','onPointerLeave$','show','origin','source','LICENSE_MAX_UNITS_EXCEEDED','result','Tools','_dataLoaderService','DATA_SOURCE_TOO_LARGE','off-line-icon_clip0_910_343','registerRefRange','onCommandExecuted','Workbook','INotificationService','entries','_cursors','[CollaborationDataLoaderController]','stack','AWAITING','SOCKET_FAILED_RETRY','_docSkeleton','TEXT','min','contains','_hideTimer','serializeRangeWithSheet','NO_OTHER_CLIENTS_EDITING','FormulaExecutedStateType','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','useObservable','_onRefRangeChange','row','executionId','LOCAL_CACHE_INTERVAL','collabStatus.offline','cursorInfo','color','0.2)','_textBubble','SheetsSelectionsService','redoState','_draw','mask','some','_entities','colno','_collaborationUIEventService','docStateChange$','collab-client.tooltip.reconnect','use','useRef','_saveCache','USER_NOT_INVITED_CODE','_updateLocalCursor','defs','UNIVER_DOC','startColumn','rgba(','SNAPSHOT_HAS_BEEN_REMOVED','labelPosition','_shapes','CollaborationUIEventId','_applyCommand','_startDocCollabCursor','lineTo','createElement','translate(.97)','_onCursorUpdate','override','_updateCollabCursors','getUniverSheetInstance','_initStatusComponent','popstate','AWAITING_WITH_PENDING','getCellMatrix','CLOSE_ROOM','DocIMEInputManagerService','FormulaExecuteStageType','_disabled','_messageService','name','focused$','_removeClearOtherTimer','addObject','_initUserListener','_currentUsage','disposeWithMe','activeSheet$','formula.calculation.unable','_heartbeatTimer','collab-text-anchor-','forwardRef','OFFLINE','_collabCursorController','_transformHistoryAndStateStack','CURRENT_STATUS_CANNOT_OPERATE','Loading','handleInsertRow','DataLoaderService','currentSkeleton$','with','values','_taskIds','_scheduleClearOtherTimer','error','generateRandomId','children','ThemeService','1em','_showText','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MOBILE_VERIFY_CODE_MISMATCH','IConfigService','DisposableCollection','getCurrentSelections','ILocalCacheService','_collaborationSessionService','_memberService','getUndoRedoMutationParamsCache','setTimeout','_document','makeDirty','getMemberID','getRenderById','_injector','getUnhiddenWorksheets','getSkeleton','replace','createSocket','VIEW_MAIN','transformStateCache','div','FETCH_MISS','_univerInstanceService','map','YUUMI_NO_CUBOID_FOR_QUESTION','formula.calculation.started','IRenderManagerService','ticket','collabStatus.conflict','_anchor','setInterval','mergeOverrideWithDependencies','highlight','stage','switchMap','saveTaskMap','add','100WNPsdz','_isBlinkVisible','debounceTime','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','lineno','filter','from','2131987cDaBGB','LOCAL_CACHE_INTERVAL_KEY','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','DocSelectionManagerService','DependentOn','catch','_stopBlinking','ILocalStorageService','PAYMENT_CHANNEL_NOT_SUPPORT','_uiPartsService','unhandledrejection','CollaborationEvent','permission.content','startsWith','_checkAndWaitForCalculationPermission','collab-text-range-','backgroundColor','asObservable','[LogService\x20Error]:\x20','univer-flex\x20univer-items-center','clearTimeout','_context','_drawRectRange','Unknown\x20user','_pollingInterval','onPointerEnter$','getActiveRange','_highlightSecond','init','loadUnit','getLocalCacheKey','deserializeRangeWithSheet','UniverCollaborationClientPlugin','enableLocalCache','_removeCollabCursors','rgba(255,\x20255,\x20255,\x200.01)','_getMergeRange','unshift','_blinkIntervalTimer','_cachedData','_cursorInfo$','onPointerMove$','_handleEvent','idSuffix','_updateSubUnitFromURLParams','1014316wTbFul','undoState','subscribe','getConfig','event$','ACTIVE_UNIT_EVENT_CHANNEL','USER_NOT_FOUND','arc','addObjects','getViewport','_docTransformIMECacheService','debug','_hasFormulaInDirtyRanges','Error','_uploadLog','isActive','offsetY','ranges','LICENSE_EXPORT_SIZE_EXCEEDED','HTTPService','INVALID_ARGUMENT','pluginName','MessageType','requireSession','save','stageInfo','_urlService','takeUntil','reason','102572sdFANM','pipe','EMAIL_HAS_BEEN_BOUND','REDEMPTION_CODE_INACTIVE','_selfUnitIDs','getCellPositionByOffset','OTHER_CLIENTS_EDITING','location','m1Prime','unitID','_cursorShapes','getSheetBySheetId','_collabCursorState$','ENSURE_SNAPSHOT_EXECUTION','_saveTaskMap','isTransformMutationFailure','_syncEditingCollabCursorService','SHEET_VIEWPORT_KEY','currentColor','LocaleService','PERMISSION_DENIED','getUnitId','path','replaceState','isFormulaId','RemoveColCommandId','_setupBeforeClosingHandler','0\x200\x2016\x2016','_online','send','CollaborationSocketService','top','WECHAT_HAS_BEEN_BOUND','getTypeOfUnitAdded$','subunit','NOT_COLLAB','_httpService','_docStateChangeManagerService','REDEMPTION_CODE_HAS_BEEN_CREATED','Injector','COLORS','next','Disposable','FromArray','functionsExecutedState','getColorFromTheme','text','bottom','Optional','YUUMI_SUBSCRIPTION_NOT_FOUND','sheetId','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','defIds','ENTITLE_USE_COUPON_NOT_1ST_TRADE','PENDING','_labelPosition','shareReplay','ENTITLE_COUPON_EXPIRED','none','#FFF','_getSessionTicket','REDEMPTION_INVALID_CODE','_send','_lastResponseTimestamp','YUUMI_URL_COL_OUT_OF_RANGE','RxDisposable','removeParam','_onCursorDelete','3ejHvlo','triggerDblclick','Tooltip','YUUMI_ASYNCIO_CANCELLED','Vector2','ONLINE','_localCacheService','getCurrent','_hovered','_unitOnClients','IDocClipboardService','_refRangeService','body','INVITE_CODE_REQUIRED','history','_beforeCloseService','/universer-api/frontend/logs','_registerDependencies','stringify','getActiveSheet','CollaborationController','green.600','_localeService','debounce','MOBILE_HAS_BEEN_BOUND','collaboration.closeRoom','getCollabEntity$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','width','on-line-icon_clip0_910_349','sheetID','unsubscribe','fill','_startCalculationLimit','UPDATE_CURSOR','session.will-retry','updateOfflineData'];_0xd5ca=function(){return _0x5d3701;};return _0xd5ca();}const hi='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0xa8fcb3(0xb5)]=class extends a[_0xa8fcb3(0x350)]{constructor(_0x1f5632=Me,_0x4242ba,_0x5b0884,_0x27d26d){const _0x2eb3b3=_0xa8fcb3;super(),this[_0x2eb3b3(0x223)]=_0x1f5632,this[_0x2eb3b3(0x71)]=_0x4242ba,this[_0x2eb3b3(0x137)]=_0x5b0884,this[_0x2eb3b3(0x34e)]=_0x27d26d;const {..._0x2d5596}=a[_0x2eb3b3(0x353)]({},Me,this['_config']);this[_0x2eb3b3(0x34e)]['setConfig'](Yt,_0x2d5596);}[_0xa8fcb3(0x29e)](){const _0x105f10=_0xa8fcb3;this['_registerDependencies'](),this[_0x105f10(0x24d)]();}['onRendered'](){const _0xffb220=_0xa8fcb3;this[_0xffb220(0x210)]();}[_0xa8fcb3(0x1f5)](){const _0x5d7947=_0xa8fcb3;var _0xf93a84;const _0xac08db=[[be],[ne],[ie],[ee],[te],[Re],[Oe,{'useClass':je}],[x['ISocketService'],{'useClass':x[_0x5d7947(0x2ba)]}],[u[_0x5d7947(0x12e)],{'useClass':Ce}],[exports[_0x5d7947(0x2f3)]],[se],[Z],[k],[me],[exports[_0x5d7947(0x254)]]];this['_config']['enableFrontendLog']&&_0xac08db[_0x5d7947(0x336)]([Q]),a['registerDependencies'](this[_0x5d7947(0x137)],a[_0x5d7947(0x149)](_0xac08db,(_0xf93a84=this[_0x5d7947(0x223)])==null?void 0x0:_0xf93a84[_0x5d7947(0xff)]));}[_0xa8fcb3(0x210)](){const _0x25a9e7=_0xa8fcb3;this[_0x25a9e7(0x111)](this[_0x25a9e7(0x71)][_0x25a9e7(0xb1)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this[_0x25a9e7(0x111)](this[_0x25a9e7(0x71)][_0x25a9e7(0xb1)](a['UniverInstanceType']['UNIVER_SHEET'],[Te]));}[_0xa8fcb3(0x24d)](){const _0xf834f9=_0xa8fcb3;a[_0xf834f9(0x2e6)](this[_0xf834f9(0x137)],[[k],[exports[_0xf834f9(0x2f3)]],[se],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this['_config'][_0xf834f9(0x309)]&&a['touchDependencies'](this[_0xf834f9(0x137)],[[Q]]);}},_i(exports['UniverCollaborationClientUIPlugin'],_0xa8fcb3(0x198),hi),exports['UniverCollaborationClientUIPlugin']=li([a[_0xa8fcb3(0x15a)](u[_0xa8fcb3(0x176)]),Se(0x1,T[_0xa8fcb3(0x144)]),Se(0x2,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),Se(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var ui=Object[_0xa8fcb3(0x2c0)],Ii=(_0x1e2281,_0x1e08ab,_0x2a6747,_0x1f85ca)=>{const _0x1cf842=_0xa8fcb3;for(var _0x967e57=_0x1f85ca>0x1?void 0x0:_0x1f85ca?ui(_0x1e08ab,_0x2a6747):_0x1e08ab,_0x5ad46a=_0x1e2281[_0x1cf842(0x250)]-0x1,_0x17d985;_0x5ad46a>=0x0;_0x5ad46a--)(_0x17d985=_0x1e2281[_0x5ad46a])&&(_0x967e57=_0x17d985(_0x967e57)||_0x967e57);return _0x967e57;},W=(_0x3c71c8,_0x3f3a6b)=>(_0xede2c2,_0x162836)=>_0x3f3a6b(_0xede2c2,_0x162836,_0x3c71c8);exports[_0xa8fcb3(0x2c8)]=class extends u[_0xa8fcb3(0x1be)]{constructor(_0x20a7d3,_0x2bfaa8,_0x495538,_0x1a0207,_0x58a72d){super(_0x20a7d3,_0x2bfaa8,_0x495538,_0x1a0207,_0x58a72d);}async[_0xa8fcb3(0x13b)](_0x208661){const _0x2595a0=_0xa8fcb3,_0x37853f=await this[_0x2595a0(0x1dc)](),_0xc23349=this[_0x2595a0(0x23e)](_0x208661,_0x37853f);return this[_0x2595a0(0x6d)](_0xc23349);}[_0xa8fcb3(0x23e)](_0x4667af,_0x22dde2){const _0x1ee27c=_0xa8fcb3,_0x58ec5f=typeof window>'u'?new URL(_0x4667af):new URL(_0x4667af,window[_0x1ee27c(0x1a7)][_0x1ee27c(0xbd)]);_0x58ec5f[_0x1ee27c(0x242)][_0x1ee27c(0x2a9)]('sessionTicket',_0x22dde2);const _0x413b58=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1ee27c(0x23d)]);return _0x413b58[_0x1ee27c(0x27d)](_0x1ee27c(0x328))&&_0x58ec5f['searchParams'][_0x1ee27c(0x2a9)](_0x1ee27c(0x328),_0x413b58[_0x1ee27c(0x27d)](_0x1ee27c(0x328))),_0x58ec5f[_0x1ee27c(0x24c)]();}async[_0xa8fcb3(0x1dc)](){const _0x131c9e=_0xa8fcb3;var _0x365196,_0x5eaaed,_0x5b74b4;const _0x247c8b=this[_0x131c9e(0x34e)][_0x131c9e(0x186)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x559ee7=(_0x365196=_0x247c8b==null?void 0x0:_0x247c8b[_0x131c9e(0x81)])!=null?_0x365196:u[_0x131c9e(0x95)];return(_0x5b74b4=(_0x5eaaed=(await this['_httpService'][_0x131c9e(0x27d)](_0x559ee7,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x5eaaed[_0x131c9e(0x145)])!=null?_0x5b74b4:'';}},exports[_0xa8fcb3(0x2c8)]=Ii([W(0x0,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),W(0x1,a[_0xa8fcb3(0x271)](x[_0xa8fcb3(0x196)])),W(0x2,a[_0xa8fcb3(0x12b)]),W(0x3,a[_0xa8fcb3(0x284)]),W(0x4,v[_0xa8fcb3(0x327)])],exports[_0xa8fcb3(0x2c8)]);var di=Object[_0xa8fcb3(0x2c0)],Si=(_0x86f036,_0x3c3bfb,_0x2abc2d,_0x31a833)=>{const _0x2ddc9f=_0xa8fcb3;for(var _0x595f27=_0x31a833>0x1?void 0x0:_0x31a833?di(_0x3c3bfb,_0x2abc2d):_0x3c3bfb,_0xa76f94=_0x86f036[_0x2ddc9f(0x250)]-0x1,_0x50aa96;_0xa76f94>=0x0;_0xa76f94--)(_0x50aa96=_0x86f036[_0xa76f94])&&(_0x595f27=_0x50aa96(_0x595f27)||_0x595f27);return _0x595f27;},fe=(_0x20a5de,_0x1eb237)=>(_0x36136d,_0x15311c)=>_0x1eb237(_0x36136d,_0x15311c,_0x20a5de);function _0x2702(_0x578ab2,_0x19060e){_0x578ab2=_0x578ab2-0x6b;const _0xd5ca7b=_0xd5ca();let _0x270228=_0xd5ca7b[_0x578ab2];return _0x270228;}exports['RemoteUniscriptService']=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x49e024,_0x14610f,_0x1ec609){const _0x34856e=_0xa8fcb3;super(),this[_0x34856e(0x31a)]=_0x49e024,this[_0x34856e(0x1c4)]=_0x14610f,this['_configService']=_0x1ec609;}async[_0xa8fcb3(0x300)](_0x33af70,_0x38b37f,_0x1e53d7,..._0x21e3c3){const _0x2e6ea6=_0xa8fcb3;var _0x32d614,_0x455938,_0x24e08d,_0x217511;const _0x53d6d8=this[_0x2e6ea6(0x31a)][_0x2e6ea6(0x20d)]();if(!_0x53d6d8)throw new Error(_0x2e6ea6(0xa0));const _0x3f2c23=((_0x32d614=this[_0x2e6ea6(0x34e)][_0x2e6ea6(0x186)](u[_0x2e6ea6(0x276)]))!=null?_0x32d614:u[_0x2e6ea6(0x348)])+'/'+_0x33af70+_0x2e6ea6(0x290)+_0x38b37f,_0x3756b8=new URL(window[_0x2e6ea6(0x1a7)]['href']),_0x3ffcdd={'scriptId':_0x33af70,'runId':(_0x455938=_0x3756b8[_0x2e6ea6(0x242)]['get'](_0x2e6ea6(0x328)))!=null?_0x455938:'','function':_0x38b37f,'unitId':_0x53d6d8['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x21e3c3),'invokeId':(_0x24e08d=_0x1e53d7[_0x2e6ea6(0x355)])!=null?_0x24e08d:'','executionId':(_0x217511=_0x1e53d7[_0x2e6ea6(0xdb)])!=null?_0x217511:''};try{const _0xa7ef7f=await this['_httpService'][_0x2e6ea6(0x305)](_0x3f2c23,{'body':_0x3ffcdd});return _0xa7ef7f['body'][_0x2e6ea6(0x123)]&&_0xa7ef7f[_0x2e6ea6(0x1f0)][_0x2e6ea6(0x123)][_0x2e6ea6(0x2be)]!==G['OK']?_0x2e6ea6(0x333):_0xa7ef7f[_0x2e6ea6(0x1f0)][_0x2e6ea6(0xc0)];}catch{return _0x2e6ea6(0x333);}}},exports['RemoteUniscriptService']=Si([fe(0x0,a[_0xa8fcb3(0x2f5)]),fe(0x1,a[_0xa8fcb3(0x271)](x[_0xa8fcb3(0x196)])),fe(0x2,a[_0xa8fcb3(0x12b)])],exports[_0xa8fcb3(0x97)]);const we=0x7530,ye=_0xa8fcb3(0x188);class fi extends a[_0xa8fcb3(0x1ca)]{constructor(){const _0x1fcc71=_0xa8fcb3;super(),_(this,'_id',a[_0x1fcc71(0x124)]()),_(this,_0x1fcc71(0x1a4),new Set()),_(this,_0x1fcc71(0x1ed),new Map()),_(this,_0x1fcc71(0x114),null),_(this,_0x1fcc71(0xa2),new Map()),_(this,'_unitStatus',new Map()),this[_0x1fcc71(0x24a)]();}[_0xa8fcb3(0x229)](){const _0x311d49=_0xa8fcb3;super[_0x311d49(0x229)](),this[_0x311d49(0xa2)][_0x311d49(0x2b4)]((_0x458afc,_0x594c27)=>this[_0x311d49(0x10d)](_0x594c27)),this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1209b3){const _0x26e1b1=_0xa8fcb3;return this[_0x26e1b1(0x316)](_0x1209b3)[_0x26e1b1(0x1a1)](I[_0x26e1b1(0xb7)]());}['editingUnit'](_0xeb44de){const _0x378efb=_0xa8fcb3;this[_0x378efb(0x1a4)][_0x378efb(0x239)]===0x0&&this[_0x378efb(0xa7)](),this[_0x378efb(0x1a4)]['add'](_0xeb44de),this[_0x378efb(0x1de)]({'type':0x0,'memberID':this[_0x378efb(0x225)],'unitIDs':[_0xeb44de],'isForwarded':!0x1});}[_0xa8fcb3(0x2e5)](_0x1ede0e){const _0x1d2067=_0xa8fcb3;this[_0x1d2067(0x1a4)][_0x1d2067(0x295)](_0x1ede0e),this['_selfUnitIDs'][_0x1d2067(0x239)]===0x0&&this[_0x1d2067(0x114)]&&window[_0x1d2067(0x29f)](this['_heartbeatTimer']);}['_init'](){const _0x2dfc5d=_0xa8fcb3;this['disposeWithMe'](a['toDisposable'](I[_0x2dfc5d(0x325)](window,_0x2dfc5d(0x96))['subscribe'](_0x4353ed=>{const _0x36be52=_0x2dfc5d;if(_0x4353ed[_0x36be52(0x8a)]!==ye||!_0x4353ed[_0x36be52(0x345)])return;const _0x171a1c=JSON[_0x36be52(0x298)](_0x4353ed['newValue']);this[_0x36be52(0x180)](_0x171a1c);}))),window[_0x2dfc5d(0x261)](_0x2dfc5d(0x303),()=>this[_0x2dfc5d(0x1de)]({'type':0x1,'memberID':this[_0x2dfc5d(0x225)],'unitIDs':Array[_0x2dfc5d(0x155)](this[_0x2dfc5d(0x1a4)])}));}['_handleEvent'](_0x4522db){const _0x3e4fd9=_0xa8fcb3;switch(_0x4522db[_0x3e4fd9(0x289)]){case 0x0:this[_0x3e4fd9(0x33b)](_0x4522db);break;case 0x1:this[_0x3e4fd9(0x2ee)](_0x4522db);break;case 0x2:this['_handleHeartbeatEvent'](_0x4522db);break;}}[_0xa8fcb3(0x33b)](_0x60af17){const _0x4050fd=_0xa8fcb3,{unitIDs:_0x5e6bbf,memberID:_0x5b4840,isForwarded:_0x38ea24}=_0x60af17;_0x5e6bbf[_0x4050fd(0x2b4)](_0x2c6e91=>{const _0x5590e0=_0x4050fd;if(!_0x38ea24&&this[_0x5590e0(0x1ed)][_0x5590e0(0x339)](_0x2c6e91)&&this[_0x5590e0(0x316)](_0x2c6e91)[_0x5590e0(0x1c9)](u[_0x5590e0(0x29b)][_0x5590e0(0x1a6)]),!this['_unitOnClients']['has'](_0x2c6e91)||!this[_0x5590e0(0x1ed)][_0x5590e0(0x27d)](_0x2c6e91)[_0x5590e0(0x339)](_0x5b4840)){const _0x4ef7f1=this[_0x5590e0(0x1ed)][_0x5590e0(0x27d)](_0x2c6e91)||new Set();_0x4ef7f1[_0x5590e0(0x14e)](_0x5b4840),this[_0x5590e0(0x1ed)][_0x5590e0(0x2a9)](_0x2c6e91,_0x4ef7f1),this[_0x5590e0(0x122)](_0x5b4840);}}),_0x38ea24||this[_0x4050fd(0x1de)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4050fd(0x1a4)]],'isForwarded':!0x0});}[_0xa8fcb3(0x122)](_0x5479d8){const _0x4edd59=_0xa8fcb3;this['_removeClearOtherTimer'](_0x5479d8);const _0x50eae9=window[_0x4edd59(0x132)](()=>{const _0x285088=_0x4edd59;this['_unitOnClients'][_0x285088(0x2b4)](_0x3aae3b=>{const _0x449bca=_0x285088;_0x3aae3b[_0x449bca(0x295)](_0x5479d8);});},we*0x2);this['_clearOtherTimers']['set'](_0x5479d8,_0x50eae9);}[_0xa8fcb3(0x10d)](_0x1cfbe8){const _0x639796=_0xa8fcb3;if(this[_0x639796(0xa2)]['has'](_0x1cfbe8)){const _0x1acf25=this['_clearOtherTimers'][_0x639796(0x27d)](_0x1cfbe8);_0x1acf25&&window[_0x639796(0x16a)](_0x1acf25),this[_0x639796(0xa2)][_0x639796(0x2a9)](_0x1cfbe8,null);}}[_0xa8fcb3(0x2ee)](_0x185d40){const _0x10d33e=_0xa8fcb3,{memberID:_0x571365,unitIDs:_0x152c33}=_0x185d40;_0x152c33[_0x10d33e(0x2b4)](_0x3ce844=>{const _0x168613=_0x10d33e;var _0x178b94;const _0x407cba=this[_0x168613(0x1ed)]['get'](_0x3ce844);_0x407cba&&(_0x407cba[_0x168613(0x295)](_0x571365),(_0x178b94=this[_0x168613(0x316)](_0x3ce844))==null||_0x178b94[_0x168613(0x1c9)](_0x407cba['size']===0x0?u[_0x168613(0x29b)]['NO_OTHER_CLIENTS_EDITING']:u[_0x168613(0x29b)][_0x168613(0x1a6)]));}),this['_removeClearOtherTimer'](_0x571365);}['_handleHeartbeatEvent'](_0x332ca1){const _0x1d8a89=_0xa8fcb3;this[_0x1d8a89(0x122)](_0x332ca1[_0x1d8a89(0x23c)]);}[_0xa8fcb3(0x1de)](_0x1c8989){const _0x523303=_0xa8fcb3;localStorage[_0x523303(0x224)](ye,JSON['stringify'](_0x1c8989));}[_0xa8fcb3(0xa7)](){const _0x26101f=_0xa8fcb3;this[_0x26101f(0x114)]=window[_0x26101f(0x148)](()=>{const _0x944637=_0x26101f;this[_0x944637(0x1de)]({'type':0x2,'memberID':this[_0x944637(0x225)]});},we);}[_0xa8fcb3(0x316)](_0xa8175d){const _0x287c3a=_0xa8fcb3;return this[_0x287c3a(0x317)][_0x287c3a(0x339)](_0xa8175d)||this[_0x287c3a(0x317)][_0x287c3a(0x2a9)](_0xa8175d,new I[(_0x287c3a(0x87))](u[_0x287c3a(0x29b)][_0x287c3a(0xd5)])),this['_unitStatus']['get'](_0xa8175d);}}exports['IURLService']=Oe,exports[_0xa8fcb3(0x31e)]=Fe,exports[_0xa8fcb3(0x337)]=fi,exports[_0xa8fcb3(0x93)]=je;