@univerjs-pro/collaboration-client-ui 0.10.10-experimental.20251010-3f807c5 → 0.10.10-nightly.202510170942

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 (52) 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/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/locale/en-US.d.ts +7 -0
  38. package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +38 -0
  39. package/lib/types/services/formula-calculation-guard/util.d.ts +11 -0
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/vi-VN.js +1 -1
  50. package/lib/umd/locale/zh-CN.js +1 -1
  51. package/lib/umd/locale/zh-TW.js +1 -1
  52. package/package.json +17 -17
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xcba175=_0x12c7;(function(_0x2df536,_0x4fefb2){const _0x258e3d=_0x12c7,_0x483a13=_0x2df536();while(!![]){try{const _0x4ed726=parseInt(_0x258e3d(0x21e))/0x1*(parseInt(_0x258e3d(0x1dd))/0x2)+parseInt(_0x258e3d(0x24f))/0x3+parseInt(_0x258e3d(0x29c))/0x4+parseInt(_0x258e3d(0x30f))/0x5+-parseInt(_0x258e3d(0x282))/0x6*(-parseInt(_0x258e3d(0x3b7))/0x7)+parseInt(_0x258e3d(0x358))/0x8+-parseInt(_0x258e3d(0x346))/0x9*(parseInt(_0x258e3d(0x3bd))/0xa);if(_0x4ed726===_0x4fefb2)break;else _0x483a13['push'](_0x483a13['shift']());}catch(_0x57e57b){_0x483a13['push'](_0x483a13['shift']());}}}(_0x5767,0x66c77));var We=Object['defineProperty'],Ve=(_0x4ac503,_0x28f821,_0x43b695)=>_0x28f821 in _0x4ac503?We(_0x4ac503,_0x28f821,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43b695}):_0x4ac503[_0x28f821]=_0x43b695,h=(_0x583a15,_0x3cb657,_0x3b3792)=>Ve(_0x583a15,typeof _0x3cb657!=_0xcba175(0x391)?_0x3cb657+'':_0x3cb657,_0x3b3792);Object[_0xcba175(0x2f5)](exports,Symbol[_0xcba175(0x23c)],{'value':_0xcba175(0x295)});const A=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/ui'),I=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),K=require('@univerjs/network'),T=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),E=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Te=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var O=function(){const _0xddc71b=_0xcba175;return O=Object[_0xddc71b(0x174)]||function(_0x43e961){const _0x23b711=_0xddc71b;for(var _0x4e51ff,_0x3782f3=0x1,_0x5d5dc1=arguments['length'];_0x3782f3<_0x5d5dc1;_0x3782f3++){_0x4e51ff=arguments[_0x3782f3];for(var _0x5e87e4 in _0x4e51ff)Object[_0x23b711(0x203)][_0x23b711(0x3ed)]['call'](_0x4e51ff,_0x5e87e4)&&(_0x43e961[_0x5e87e4]=_0x4e51ff[_0x5e87e4]);}return _0x43e961;},O[_0xddc71b(0x3f1)](this,arguments);},Ke=function(_0x36efa3,_0x42d317){const _0x473352=_0xcba175;var _0x114aed={};for(var _0x5589a1 in _0x36efa3)Object[_0x473352(0x203)][_0x473352(0x3ed)][_0x473352(0x1d5)](_0x36efa3,_0x5589a1)&&_0x42d317[_0x473352(0x215)](_0x5589a1)<0x0&&(_0x114aed[_0x5589a1]=_0x36efa3[_0x5589a1]);if(_0x36efa3!=null&&typeof Object[_0x473352(0x385)]==_0x473352(0x36d)){for(var _0x2c711a=0x0,_0x5589a1=Object[_0x473352(0x385)](_0x36efa3);_0x2c711a<_0x5589a1[_0x473352(0x193)];_0x2c711a++)_0x42d317[_0x473352(0x215)](_0x5589a1[_0x2c711a])<0x0&&Object['prototype'][_0x473352(0x183)][_0x473352(0x1d5)](_0x36efa3,_0x5589a1[_0x2c711a])&&(_0x114aed[_0x5589a1[_0x2c711a]]=_0x36efa3[_0x5589a1[_0x2c711a]]);}return _0x114aed;},ge=M[_0xcba175(0x2cc)](function(_0x3b9928,_0x247bb9){const _0x6b21dd=_0xcba175;var _0x1cc511=_0x3b9928[_0x6b21dd(0x1ad)],_0x5bf427=_0x3b9928['id'],_0x2384b7=_0x3b9928[_0x6b21dd(0x1f9)],_0x1a5f93=_0x3b9928[_0x6b21dd(0x2e7)],_0x255bf0=Ke(_0x3b9928,[_0x6b21dd(0x1ad),'id','className',_0x6b21dd(0x2e7)]),_0x26560b=_0x6b21dd(0x342)[_0x6b21dd(0x2ac)](_0x5bf427,'\x20')[_0x6b21dd(0x2ac)](_0x2384b7||'')[_0x6b21dd(0x34b)](),_0x779d1d=M[_0x6b21dd(0x2f2)]('_'[_0x6b21dd(0x2ac)](Ze()));return Ae(_0x1cc511,''[_0x6b21dd(0x2ac)](_0x5bf427),{'defIds':_0x1cc511['defIds'],'idSuffix':_0x779d1d[_0x6b21dd(0x2f0)]},O({'ref':_0x247bb9,'className':_0x26560b},_0x255bf0),_0x1a5f93);});function Ae(_0x3623b3,_0x283eec,_0x522040,_0x2f19db,_0x4bb7e3){const _0x31b5b1=_0xcba175;return M['createElement'](_0x3623b3['tag'],O(O({'key':_0x283eec},qe(_0x3623b3,_0x522040,_0x4bb7e3)),_0x2f19db),(ze(_0x3623b3,_0x522040)[_0x31b5b1(0x38f)]||[])[_0x31b5b1(0x2d9)](function(_0x17156f,_0x5aa80c){const _0x24e33d=_0x31b5b1;return Ae(_0x17156f,''[_0x24e33d(0x2ac)](_0x283eec,'-')[_0x24e33d(0x2ac)](_0x3623b3[_0x24e33d(0x264)],'-')[_0x24e33d(0x2ac)](_0x5aa80c),_0x522040,void 0x0,_0x4bb7e3);}));}function qe(_0x12790b,_0x309158,_0x196b15){const _0x4a407c=_0xcba175;var _0x327d9b=O({},_0x12790b[_0x4a407c(0x313)]);_0x196b15!=null&&_0x196b15[_0x4a407c(0x3e2)]&&_0x327d9b[_0x4a407c(0x368)]===_0x4a407c(0x3e2)&&(_0x327d9b[_0x4a407c(0x368)]=_0x196b15['colorChannel1']),_0x12790b[_0x4a407c(0x264)]===_0x4a407c(0x3e0)&&_0x327d9b['id']&&(_0x327d9b['id']=_0x327d9b['id']+_0x309158[_0x4a407c(0x1b3)]),Object[_0x4a407c(0x321)](_0x327d9b)[_0x4a407c(0x1fc)](function(_0x3897d0){const _0x409e39=_0x4a407c;var _0x4a5bdc=_0x3897d0[0x0],_0x5b23b5=_0x3897d0[0x1];_0x4a5bdc===_0x409e39(0x3e0)&&typeof _0x5b23b5==_0x409e39(0x2d2)&&(_0x327d9b[_0x4a5bdc]=_0x5b23b5[_0x409e39(0x238)](/url\(#(.*)\)/,_0x409e39(0x323)[_0x409e39(0x2ac)](_0x309158[_0x409e39(0x1b3)],')')));});var _0x2617e2=_0x309158['defIds'];return!_0x2617e2||_0x2617e2['length']===0x0||(_0x12790b['tag']===_0x4a407c(0x192)&&_0x327d9b[_0x4a407c(0x314)]&&(_0x327d9b[_0x4a407c(0x314)]=_0x327d9b[_0x4a407c(0x314)]+_0x309158['idSuffix']),Object[_0x4a407c(0x321)](_0x327d9b)[_0x4a407c(0x1fc)](function(_0x566574){const _0x5c4b2d=_0x4a407c;var _0x4d494a=_0x566574[0x0],_0x392460=_0x566574[0x1];typeof _0x392460==_0x5c4b2d(0x2d2)&&(_0x327d9b[_0x4d494a]=_0x392460['replace'](/url\(#(.*)\)/,_0x5c4b2d(0x323)['concat'](_0x309158[_0x5c4b2d(0x1b3)],')')));})),_0x327d9b;}function ze(_0x2d50ec,_0x2aaf8b){const _0x138ae2=_0xcba175;var _0x33d32d,_0x1870d3=_0x2aaf8b[_0x138ae2(0x2fa)];return!_0x1870d3||_0x1870d3[_0x138ae2(0x193)]===0x0?_0x2d50ec:_0x2d50ec[_0x138ae2(0x264)]===_0x138ae2(0x2bf)&&(!((_0x33d32d=_0x2d50ec['children'])===null||_0x33d32d===void 0x0)&&_0x33d32d[_0x138ae2(0x193)])?O(O({},_0x2d50ec),{'children':_0x2d50ec[_0x138ae2(0x38f)][_0x138ae2(0x2d9)](function(_0x810f27){const _0x53fb04=_0x138ae2;return typeof _0x810f27[_0x53fb04(0x313)]['id']==_0x53fb04(0x2d2)&&_0x1870d3&&_0x1870d3[_0x53fb04(0x360)](_0x810f27['attrs']['id'])?O(O({},_0x810f27),{'attrs':O(O({},_0x810f27[_0x53fb04(0x313)]),{'id':_0x810f27[_0x53fb04(0x313)]['id']+_0x2aaf8b[_0x53fb04(0x1b3)]})}):_0x810f27;})}):_0x2d50ec;}function Ze(){const _0x13321c=_0xcba175;return Math['random']()[_0x13321c(0x29b)](0x24)[_0x13321c(0x2e4)](0x2,0x8);}ge['displayName']=_0xcba175(0x2ee);var Je={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xcba175(0x1d9),'width':_0xcba175(0x2de),'height':_0xcba175(0x2de)},'children':[{'tag':'g','attrs':{'clipPath':_0xcba175(0x185)},'children':[{'tag':'path','attrs':{'stroke':_0xcba175(0x1a4),'d':_0xcba175(0x2b6),'strokeLinecap':_0xcba175(0x204),'strokeLinejoin':_0xcba175(0x204),'strokeWidth':1.2}}]},{'tag':_0xcba175(0x2bf),'attrs':{},'children':[{'tag':_0xcba175(0x2a1),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xcba175(0x241),'attrs':{'fill':_0xcba175(0x285),'d':_0xcba175(0x1c5)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pe=M[_0xcba175(0x2cc)](function(_0x2f477b,_0xf61b21){const _0x123659=_0xcba175;return M['createElement'](ge,Object['assign']({},_0x2f477b,{'id':_0x123659(0x316),'ref':_0xf61b21,'icon':Je}));});Pe[_0xcba175(0x39a)]=_0xcba175(0x233);var Qe={'tag':'svg','attrs':{'xmlns':_0xcba175(0x21a),'fill':_0xcba175(0x2ca),'viewBox':_0xcba175(0x331),'width':_0xcba175(0x2de),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xcba175(0x251)},'children':[{'tag':_0xcba175(0x241),'attrs':{'stroke':_0xcba175(0x1a4),'d':_0xcba175(0x18e),'strokeLinecap':_0xcba175(0x204),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xcba175(0x2bf),'attrs':{},'children':[{'tag':_0xcba175(0x2a1),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xcba175(0x241),'attrs':{'fill':_0xcba175(0x285),'d':_0xcba175(0x1c5),'transform':_0xcba175(0x34d)}}]}]}],'defIds':[_0xcba175(0x1de)]},we=M[_0xcba175(0x2cc)](function(_0x3fd3d9,_0x261dcc){const _0x523739=_0xcba175;return M[_0x523739(0x3a0)](ge,Object['assign']({},_0x3fd3d9,{'id':'on-line-icon','ref':_0x261dcc,'icon':Qe}));});we[_0xcba175(0x39a)]=_0xcba175(0x347);function et(_0x1cf445){const _0x15596a=_0xcba175;switch(_0x1cf445){case u[_0x15596a(0x3a1)][_0x15596a(0x3d2)]:return _0x15596a(0x17c);case u['CollaborationStatus']['CONFLICT']:return _0x15596a(0x279);case u[_0x15596a(0x3a1)][_0x15596a(0x214)]:return _0x15596a(0x338);case u[_0x15596a(0x3a1)][_0x15596a(0x28f)]:return _0x15596a(0x31e);case u[_0x15596a(0x3a1)][_0x15596a(0x3a7)]:case u[_0x15596a(0x3a1)][_0x15596a(0x3c2)]:return _0x15596a(0x252);case u['CollaborationStatus'][_0x15596a(0x3a8)]:case u[_0x15596a(0x3a1)][_0x15596a(0x1ed)]:return _0x15596a(0x2af);}}function tt(_0x5708ae){const _0x552e2c=_0xcba175,{status$:_0x13eb2c}=_0x5708ae,_0xfc5227=p[_0x552e2c(0x3df)](_0x13eb2c,u[_0x552e2c(0x3a1)][_0x552e2c(0x28f)]),_0x4aad27=p[_0x552e2c(0x2dd)](a['LocaleService']),_0x1d7a94=p[_0x552e2c(0x2dd)](u[_0x552e2c(0x25d)]),_0x1a7cf3=_0xfc5227!==u['CollaborationStatus'][_0x552e2c(0x3d2)],_0x25a29e=_0x4aad27['t'](et(_0xfc5227)),_0x2d5d76=_0x1a7cf3?A[_0x552e2c(0x3c0)](we,{}):A[_0x552e2c(0x3c0)](Pe,{}),_0x2ab78e=M[_0x552e2c(0x367)](()=>{const _0xb1c77c=_0x552e2c;_0x1a7cf3||_0x1d7a94[_0xb1c77c(0x26f)]();},[_0x1a7cf3,_0x1d7a94]);function _0x2d1b2(){const _0xcf4c21=_0x552e2c;return A[_0xcf4c21(0x1bb)](_0xcf4c21(0x176),{'className':_0xcf4c21(0x180),'onClick':_0x2ab78e,'children':[A[_0xcf4c21(0x3c0)](_0xcf4c21(0x176),{'className':D[_0xcf4c21(0x3f8)](_0xcf4c21(0x3f6),{'univer-text-green-500':_0x1a7cf3,'univer-text-red-500':!_0x1a7cf3}),'children':_0x2d5d76}),A[_0xcf4c21(0x3c0)](_0xcf4c21(0x176),{'className':_0xcf4c21(0x195),'children':_0x25a29e})]});}return _0x1a7cf3?_0x2d1b2():A[_0x552e2c(0x3c0)](D[_0x552e2c(0x3fe)],{'title':_0x4aad27['t'](_0x552e2c(0x17f)),'children':_0x2d1b2()});}var st=Object[_0xcba175(0x1a8)],it=(_0x186da9,_0x1e4159,_0x105422,_0x51d42e)=>{for(var _0xcacd1b=_0x51d42e>0x1?void 0x0:_0x51d42e?st(_0x1e4159,_0x105422):_0x1e4159,_0xbcda8b=_0x186da9['length']-0x1,_0x427d0f;_0xbcda8b>=0x0;_0xbcda8b--)(_0x427d0f=_0x186da9[_0xbcda8b])&&(_0xcacd1b=_0x427d0f(_0xcacd1b)||_0xcacd1b);return _0xcacd1b;},V=(_0x84fde9,_0x6c13f5)=>(_0x257c55,_0x2ba07d)=>_0x6c13f5(_0x257c55,_0x2ba07d,_0x84fde9);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0xcba175(0x1d7)]{constructor(_0x3035d2,_0x4a904e,_0x372f41,_0x2b9025){const _0x3b9eeb=_0xcba175;super(),h(this,_0x3b9eeb(0x3ac),new I[(_0x3b9eeb(0x1ca))](u[_0x3b9eeb(0x3a1)]['NOT_COLLAB'])),(this[_0x3b9eeb(0x1bd)]=_0x3035d2,this[_0x3b9eeb(0x3f5)]=_0x4a904e,this[_0x3b9eeb(0x2b1)]=_0x372f41,this[_0x3b9eeb(0x3fa)]=_0x2b9025,this[_0x3b9eeb(0x34e)](),this[_0x3b9eeb(0x33c)]());}[_0xcba175(0x33c)](){const _0x3554e8=_0xcba175;this[_0x3554e8(0x369)](this[_0x3554e8(0x1bd)][_0x3554e8(0x326)][_0x3554e8(0x247)](I[_0x3554e8(0x29f)](()=>{const _0x30c870=_0x3554e8,_0x1f4239=this[_0x30c870(0x1bd)][_0x30c870(0x1be)]();return _0x1f4239?this[_0x30c870(0x2b1)][_0x30c870(0x328)](_0x1f4239[_0x30c870(0x310)]()):I['of'](null);}),I[_0x3554e8(0x29f)](_0x1a1b6c=>_0x1a1b6c?_0x1a1b6c[_0x3554e8(0x3dd)]:I['of'](u[_0x3554e8(0x3a1)][_0x3554e8(0x28f)])))['subscribe'](_0x3393c2=>{const _0x38a405=_0x3554e8;this[_0x38a405(0x3ac)][_0x38a405(0x27b)](_0x3393c2);}));}[_0xcba175(0x34e)](){const _0x4423e4=_0xcba175;this[_0x4423e4(0x369)](this['_uiPartsService'][_0x4423e4(0x2e5)](p[_0x4423e4(0x308)][_0x4423e4(0x39c)],()=>p[_0x4423e4(0x201)](nt({'status$':this[_0x4423e4(0x3ac)][_0x4423e4(0x336)]()}),this[_0x4423e4(0x3f5)])));}},exports[_0xcba175(0x221)]=it([V(0x0,a[_0xcba175(0x273)]),V(0x1,a[_0xcba175(0x27e)](a[_0xcba175(0x2ef)])),V(0x2,a[_0xcba175(0x27e)](u[_0xcba175(0x363)])),V(0x3,p[_0xcba175(0x35e)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x4e371e){const {status$:_0x2a23f1}=_0x4e371e;return function(){return A['jsx'](tt,{'status$':_0x2a23f1});};}const Ee=a[_0xcba175(0x234)]('uni.network.url-service');var rt=Object['getOwnPropertyDescriptor'],ot=(_0x567e8a,_0x1fc563,_0x537c43,_0x30be38)=>{const _0x1f73e9=_0xcba175;for(var _0x39fec6=_0x30be38>0x1?void 0x0:_0x30be38?rt(_0x1fc563,_0x537c43):_0x1fc563,_0x227df1=_0x567e8a[_0x1f73e9(0x193)]-0x1,_0x52bc26;_0x227df1>=0x0;_0x227df1--)(_0x52bc26=_0x567e8a[_0x227df1])&&(_0x39fec6=_0x52bc26(_0x39fec6)||_0x39fec6);return _0x39fec6;},k=(_0x2acc31,_0x5e677e)=>(_0x185caf,_0x933101)=>_0x5e677e(_0x185caf,_0x933101,_0x2acc31);exports['CollaborationDataLoaderController']=class extends a[_0xcba175(0x39f)]{constructor(_0x450933,_0x1b803f,_0x15d870,_0x14956c,_0xbc4a78){const _0xde2b89=_0xcba175;super(),this['_urlService']=_0x450933,this['_logService']=_0x1b803f,this[_0xde2b89(0x1b0)]=_0x15d870,this[_0xde2b89(0x3d9)]=_0x14956c,_0xbc4a78?_0xbc4a78==null||_0xbc4a78[_0xde2b89(0x351)]()[_0xde2b89(0x3b0)](()=>this['_init']()):(this[_0xde2b89(0x227)][_0xde2b89(0x2f6)](_0xde2b89(0x277),_0xde2b89(0x2b0)),this[_0xde2b89(0x322)]());}async[_0xcba175(0x322)](){const _0x5e7fa5=_0xcba175,_0x2f3e88=this['_urlService'][_0x5e7fa5(0x400)]('unit'),_0x3544ec=this['_urlService']['getParam'](_0x5e7fa5(0x25b)),_0x2ca584=this[_0x5e7fa5(0x1cd)][_0x5e7fa5(0x400)](_0x5e7fa5(0x31f));if(!_0x2f3e88||!_0x3544ec){this[_0x5e7fa5(0x227)]['debug'](_0x5e7fa5(0x277),_0x5e7fa5(0x263));return;}const _0x1ae73c=await this[_0x5e7fa5(0x3d9)][_0x5e7fa5(0x3a6)](_0x2f3e88,Number(_0x3544ec),_0x2ca584);_0x1ae73c&&_0x1ae73c instanceof a[_0x5e7fa5(0x389)]&&this['_setupSubUnitSync'](_0x1ae73c);}async[_0xcba175(0x39e)](_0x286944){const _0x4f7cf1=_0xcba175;await this['_updateSubUnitFromURLParams'](_0x286944),_0x286944['activeSheet$'][_0x4f7cf1(0x247)](I['takeUntil'](this[_0x4f7cf1(0x382)]))['subscribe'](_0xf6e4ea=>{const _0xd7e576=_0x4f7cf1;_0xf6e4ea&&this[_0xd7e576(0x217)](_0xf6e4ea);}),this[_0x4f7cf1(0x1cd)][_0x4f7cf1(0x1d0)][_0x4f7cf1(0x247)](I[_0x4f7cf1(0x206)](this['dispose$']))[_0x4f7cf1(0x37c)](()=>this[_0x4f7cf1(0x3ea)](_0x286944));}[_0xcba175(0x217)](_0x30b4c3,_0x5498aa=!0x1){const _0x236de2=_0xcba175,_0x20963a=this[_0x236de2(0x1cd)][_0x236de2(0x400)](_0x236de2(0x31f));_0x30b4c3['getSheetId']()!==_0x20963a&&this[_0x236de2(0x1cd)]['setParam'](_0x236de2(0x31f),_0x30b4c3['getSheetId'](),_0x5498aa);}async[_0xcba175(0x3ea)](_0x4c2fa6){const _0x7833e2=_0xcba175;var _0x412d52;const _0x24d210=this['_urlService'][_0x7833e2(0x400)](_0x7833e2(0x31f));if(!_0x24d210||!_0x4c2fa6[_0x7833e2(0x3ab)](_0x24d210)){const _0x3d7f17=_0x4c2fa6[_0x7833e2(0x349)]()[0x0],_0x973e5c=_0x4c2fa6[_0x7833e2(0x3ab)](_0x3d7f17);if(!_0x973e5c)return;this['_updateURLWithCurrentState'](_0x973e5c,!0x0),await this[_0x7833e2(0x1b0)][_0x7833e2(0x3eb)](g[_0x7833e2(0x19e)]['id'],{'unitId':_0x4c2fa6['getUnitId'](),'subUnitId':_0x3d7f17});return;}((_0x412d52=_0x4c2fa6[_0x7833e2(0x1bf)]())==null?void 0x0:_0x412d52[_0x7833e2(0x3ff)]())!==_0x24d210&&await this[_0x7833e2(0x1b0)][_0x7833e2(0x3eb)](g[_0x7833e2(0x19e)]['id'],{'unitId':_0x4c2fa6[_0x7833e2(0x310)](),'subUnitId':_0x24d210});}},exports[_0xcba175(0x320)]=ot([k(0x0,Ee),k(0x1,a['ILogService']),k(0x2,a['ICommandService']),k(0x3,a['Inject'](u[_0xcba175(0x32d)])),k(0x4,a['Optional'](Xe['IRemoteInstanceService']))],exports[_0xcba175(0x320)]);var at=Object[_0xcba175(0x1a8)],ct=(_0x550465,_0x5260d7,_0x2880a4,_0x32db0c)=>{const _0x26d17a=_0xcba175;for(var _0x5807b3=_0x32db0c>0x1?void 0x0:_0x32db0c?at(_0x5260d7,_0x2880a4):_0x5260d7,_0x550877=_0x550465[_0x26d17a(0x193)]-0x1,_0x501652;_0x550877>=0x0;_0x550877--)(_0x501652=_0x550465[_0x550877])&&(_0x5807b3=_0x501652(_0x5807b3)||_0x5807b3);return _0x5807b3;},Oe=(_0x3b77c9,_0x3976d7)=>(_0x2c8b5a,_0x46d011)=>_0x3976d7(_0x2c8b5a,_0x46d011,_0x3b77c9);let ue=class extends a[_0xcba175(0x39f)]{constructor(_0x3aa81b,_0x229480){const _0x6c24e9=_0xcba175;super(),this[_0x6c24e9(0x372)]=_0x3aa81b,this[_0x6c24e9(0x32f)]=_0x229480,this[_0x6c24e9(0x322)]();}[_0xcba175(0x322)](){const _0x3bef97=_0xcba175,_0x4ae4df=this;this[_0x3bef97(0x369)](this['_docClipboardService'][_0x3bef97(0x29e)]({'onBeforePasteImage':async _0x32de41=>{const _0x12de83=_0x3bef97,_0x456421=await _0x4ae4df[_0x12de83(0x32f)][_0x12de83(0x230)](_0x32de41);return _0x456421?{'source':_0x456421[_0x12de83(0x317)],'imageSourceType':_0x456421[_0x12de83(0x2b2)]}:null;}}));}};ue=ct([Oe(0x0,T['IDocClipboardService']),Oe(0x1,Ge[_0xcba175(0x293)])],ue);const pe=['purple.300',_0xcba175(0x24e),_0xcba175(0x20e),_0xcba175(0x18a),'blue.400','yellow.400'];class me extends a[_0xcba175(0x1d7)]{constructor(){const _0x33c332=_0xcba175;super(...arguments),h(this,_0x33c332(0x34c),new Map()),h(this,_0x33c332(0x3b5),0x0);}[_0xcba175(0x305)](_0x19b516){const _0x35769c=_0xcba175;if(this[_0x35769c(0x34c)]['has'](_0x19b516))return this[_0x35769c(0x34c)][_0x35769c(0x1ec)](_0x19b516);const _0x4722d8=pe[this[_0x35769c(0x3b5)]];return this['_colorIndex']=(this[_0x35769c(0x3b5)]+0x1)%pe[_0x35769c(0x193)],this[_0x35769c(0x34c)][_0x35769c(0x224)](_0x19b516,_0x4722d8),_0x4722d8;}}function ye(_0x5351a3){let _0x1d65b1='';for(const _0x38ae7b of _0x5351a3){const {startOffset:_0x2fa718,endOffset:_0x492b2c,isActive:_0x3bf349,rangeType:_0x563703,segmentId:_0x5d1e0e,segmentPage:_0x3097d9}=_0x38ae7b;_0x1d65b1['length']&&(_0x1d65b1+=','),_0x1d65b1+=_0x2fa718+':'+_0x492b2c+':'+(_0x3bf349?'1':'0')+':'+_0x563703+':'+_0x5d1e0e+':'+_0x3097d9;}return _0x1d65b1;}function lt(_0x32848c){const _0x9f556c=_0xcba175,_0x48d3ce=_0x32848c['split'](','),_0x32c569=[];for(const _0x43298d of _0x48d3ce){const [_0x3c6795,_0x4c70b0,_0x575cf8,_0x235297,_0x5775aa,_0x493107]=_0x43298d['split'](':');_0x32c569[_0x9f556c(0x278)]({'startOffset':Number(_0x3c6795),'endOffset':Number(_0x4c70b0),'collapsed':_0x3c6795===_0x4c70b0,'isActive':_0x575cf8==='1','rangeType':_0x235297===a[_0x9f556c(0x27a)][_0x9f556c(0x194)]?a['DOC_RANGE_TYPE'][_0x9f556c(0x194)]:a[_0x9f556c(0x27a)]['RECT'],'segmentId':typeof _0x5775aa==_0x9f556c(0x2d2)?String(_0x5775aa):'','segmentPage':Number(_0x493107!=null?_0x493107:-0x1)});}return _0x32c569[_0x9f556c(0x33d)](_0xc6f807=>_0xc6f807[_0x9f556c(0x1ac)])||(_0x32c569[0x0][_0x9f556c(0x1ac)]=!0x0),_0x32c569;}class Ce extends a['RxDisposable']{constructor(){const _0xa18d1e=_0xcba175;super(...arguments),h(this,_0xa18d1e(0x260),new I['BehaviorSubject'](null)),h(this,_0xa18d1e(0x187),this[_0xa18d1e(0x260)][_0xa18d1e(0x336)]());}[_0xcba175(0x175)](_0x8dd4e5){const _0x50e7ec=_0xcba175,{unitID:_0x381d82,memberID:_0x15d4ef,textRanges:_0x35f1bc}=_0x8dd4e5,_0x580663=ye(_0x35f1bc);if(_0x580663==='')return;const _0x3ecf07={'unitID':_0x381d82,'memberID':_0x15d4ef,'selection':_0x580663};this[_0x50e7ec(0x260)][_0x50e7ec(0x27b)](_0x3ecf07);}}var _t=Object[_0xcba175(0x1a8)],ht=(_0x3328ca,_0x9ef94d,_0x410a7b,_0x13f33)=>{const _0x418711=_0xcba175;for(var _0xba28cf=_0x13f33>0x1?void 0x0:_0x13f33?_t(_0x9ef94d,_0x410a7b):_0x9ef94d,_0x25dc68=_0x3328ca[_0x418711(0x193)]-0x1,_0xa1f53e;_0x25dc68>=0x0;_0x25dc68--)(_0xa1f53e=_0x3328ca[_0x25dc68])&&(_0xba28cf=_0xa1f53e(_0xba28cf)||_0xba28cf);return _0xba28cf;},L=(_0xbdfd47,_0x54a585)=>(_0x13c65e,_0xba8028)=>_0x54a585(_0x13c65e,_0xba8028,_0xbdfd47);const ut=0x12c,It=0x64;function _0x5767(){const _0x3d4f2c=['hide','mutations','_document','substring','registerComponent','TOO_MANY_REQUESTS','extend','DocSkeletonManagerService','unsubscribe','_getAnchorBounding','_removeClearOtherTimer','enableLocalCache','name','UniverIcon','Injector','current','#FFF','useRef','_revisionService','subscribeEvent','defineProperty','debug','closePath','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','IConfigService','defIds','distinctUntilChanged','lineTo','LOCAL_CACHE_INTERVAL','UniverCollaborationClientUIPlugin','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','SessionStatus','mergeOverrideWithDependencies','transformStateCache','_roomMembers$','NodePositionConvertToCursor','assignAColorForMemberID','isArray','_instanceService','BuiltInUIPart','_session','parse','session.will-retry','setActiveRange','history','sheetId','1525330fLymef','getUnitId','toDisposable','RemoveColCommandId','attrs','xlink:href','_cursorInfo$','off-line-icon','source','_docSyncEditingCollabCursorService','Error','_send','_unitStatus','generateRandomId','ERROR_AGAIN','collabStatus.notCollab','subunit','CollaborationDataLoaderController','entries','_init','url(#$1','saveOfflineData','handleDeleteRangeMoveUp','focused$','addEventListener','getCollabEntity$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','event$','moveTo','EffectRefRangId','DataLoaderService','debounceTime','_imageIoService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','0\x200\x2017\x2016','setUndoRedoMutationParamsCache','createSocket','requireSession','YUUMI_CONNECTOR_URL_NOT_FOUND','asObservable','_themeService','collabStatus.fetchMiss','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','YUUMI_ASYNCIO_CANCELLED','INVITE_CODE_REQUIRED','_initStatusListener','some','onPointerEnter$','IURLService','InsertRangeMoveRightCommandId','InsertRowCommandId','univerjs-icon\x20univerjs-icon-','_beforeCloseService','unitID','[RemoteUniscriptService]:\x20no\x20focused\x20unit','72783lWPvEk','OnLineIcon','EMAIL_VERIFY_CODE_MISMATCH','getUnhiddenWorksheets','CommandType','trim','_assignedColors','translate(.97)','_initStatusComponent','LOCAL_CACHE_INTERVAL_KEY','RemoteUniscriptService','whenReady','session.connection-failed','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_registerRenderDependencies','SheetCollabCursorShape','Unknown\x20user','PERMISSION_DENIED','621912GEyInt','_updateCollabCursors','_saveCache','YUUMI_ALL_TABLES_IS_INVALID','getCoordByCell','INVITE_CODE_HAS_BEEN_UES','IUIPartsService','transformIMECache','includes','IMessageService','RegularPolygon','CollaborationController','add','_memberService','_range','useCallback','fill','disposeWithMe','YUUMI_RATE_OVER_LIMIT','collaboration.closeRoom','cursorInfo$','function','_labelPosition','REDEMPTION_CODE_HAS_BEEN_CREATED','_docStateChangeManagerService','Vector2','_docClipboardService','UNAUTHENTICATED','shareReplay','Rect','getItem','handleDeleteRangeMoveLeft','MOBILE_VERIFY_CODE_MISMATCH','column','_onCursorUpdate','fillText','subscribe','session.collaboration-timeout','setTimeout','getMember','APPLY_REVISION_CONFILICT','has','dispose$','flatMap','rgba(255,\x20255,\x20255,\x200.01)','getOwnPropertySymbols','DependentOn','registerDependencies','disableLocalCache','Workbook','DEFAULT_WS_SESSION_TICKET_URL','_handleHeartbeatEvent','getColorFromTheme','_draw','NodePositionConvertToRectRange','children','_configService','symbol','ThemeService','getMergeData','FromArray','selections','_sheetSkeletonManagerService','_handleHover','_online','_onRefRangeChange','displayName','SHEET_VIEWPORT_KEY','HEADER_MENU','override','_setupSubUnitSync','RxDisposable','createElement','CollaborationStatus','getDocRanges','_transformUndoRedoStack','removeParam','startRow','loadUnit','AWAITING','SYNCED','PAYMENT_CHANNEL_NOT_SUPPORT','saveTaskMap','getSheetBySheetId','_status$','UPDATE_CURSOR','m1Prime','toRgbString','then','runRefRangeMutations','restore','RichTextEditingMutation','redoState','_colorIndex','body','9989KvKBtj','SetSelectionsOperation','clearTimeout','black','ACTIVE_UNIT_EVENT_CHANNEL','_docSkeletonManagerService','1670UlndTg','INVALID_ARGUMENT','APPLY_PERMISSION_DENIED','jsx','setParam','AWAITING_WITH_PENDING','send','LOGIN_FAILED','_collabCursorController','DocSelectionManagerService','BrowserCollaborationSocketService','_localCacheService','APPLY_REJECT','_docTransformSelectionsService','getCollabCursors$','measureText','drawWith','debounce','_initResize','_initEvent','ENTITLE_NEED_BILLING_ADDRESS','OFFLINE','Failed','collaboration.single-unit.warning','permission.title','clearInterval','search','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_dataLoaderService','merge','UniverInstanceType','MessageType','status$','_context','useObservable','mask','loadOfflineData','colorChannel1','_initEntityListener','entityInit$','isTransformMutationsWithChangesetSuccess','CollaborationEvent','undoState','OTHER_CLIENTS_EDITING','searchParams','_updateSubUnitFromURLParams','executeCommand','popstate','hasOwnProperty','_id','engine','serializeRangeWithSheet','apply','arc','IBeforeCloseService','TEXT_RANGE_LAYER_INDEX','_injector','univer-mr-2\x20univer-flex\x20univer-text-xl','DeleteRangeMoveLeftCommandId','clsx','mapTo','_uiPartsService','_refreshCollabCursors','onLocalMutation','transformRemoteChangeset','Tooltip','getSheetId','getParam','runId','JOIN_ROOM_FAILED','_handleJoinEvent','USER_IS_ANONYMOUS','INVITE_CODE_ALREADY_BOUND','assign','syncEditingCollabCursor','div','ONLINE','UnitStatus','getSkeleton','getMemberID','unitId','collabStatus.offline','AUTHORIZE_CODE_ILLEGAL','DocStateChangeManagerService','collab-client.tooltip.reconnect','univer-flex\x20univer-items-center','UNIVER_DOC','_initDependencies','propertyIsEnumerable','onMouseMove','url(#off-line-icon_clip0_910_343)','storage','collabCursorState$','addObject','doc.mutation.rich-text-editing','red.300','_cursor','exhaustSavingTask','onPointerLeave$','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','_anchorDot','COMPLETION_FINISHED','_scheduleClearOtherTimer','use','length','TEXT','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','invokeId','CHANGESET_REVISION_CONFILICT','_setupBeforeClosingHandler','getCellPositionByOffset','font','_scheduleHeartbeat','deepClone','WECHAT_HAS_BEEN_BOUND','SetWorksheetActivateCommand','getUndoRedoMutationParamsCache','getValue','_getScale','_localeService','CONFLICT','currentColor','roomMembers$','registerBeforeClose','SetTextSelectionsOperation','getOwnPropertyDescriptor','_render','getLocalCacheKey','getSheetObject','isActive','icon','VIEW_MAIN','transformByState','_commandService','getRangePointData','_transformHistoryAndStateStack','idSuffix','LocaleService','key','LICENSE_MAX_UNITS_EXCEEDED','_renderManagerService','_textBubble','_cursorShapes','startsWith','jsxs','RefRangeService','_univerInstanceService','getFocusedUnit','getActiveSheet','_scene','LICENSE_DISTRO_REJECTED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','currentSkeleton$','_backgroundColor','M0\x200H16V16H0z','registerRenderModule','EMAIL_HAS_BEEN_BOUND','newValue','href','BehaviorSubject','UNDEFINED','/run/','_urlService','setItem','complete','urlChange$','_lastPointer','onTransformChange$','_startSheetCollabCursor','INotificationService','call','LICENSE_IMPORT_SIZE_EXCEEDED','Disposable','updateOfflineData','0\x200\x2016\x2016','onCommandExecuted','roomMembers','DocIMEInputManagerService','4uSFvXr','on-line-icon_clip0_910_349','_localStorageService','height','CollaborationUIEventId','_hovered','getConfig','...','ISocketService','getRelativeToViewportCoord','registerRefRange','WebSocketService','show','Rectangle','getCurrentSelections','get','PENDING','_toggleOnline','InsertRangeMoveDownCommandId','_entities','_hideTimer','RECT','YUUMI_UNABLE_LOAD_URL','error','_unitOnClients','USER_NOT_INVITED_CODE','_drawTextRange','_scheduleSaving','className','isTransformMutationFailure','DeleteRangeMoveUpCommandId','forEach','eventID','LICENSE_EXPORT_SIZE_EXCEEDED','collab-text-range-','UNIVER_SHEET','connectInjector','fromEventSubject','prototype','round','MUTATION','takeUntil','PY_RUNTIME_SCRIPT_ERROR','_toggleOffline','SheetsSelectionsService','_handleLeaveEvent','_onCursorDelete','CURRENT_STATUS_CANNOT_OPERATE','ENTITLE_DUP_SUBSCRIPTION','green.600','getCurrentRevOfUnit','_saveTaskMap','combineLatest','SNAPSHOT_HAS_BEEN_REMOVED','fillStyle','FETCH_MISS','indexOf','_getSessionTicket','_updateURLWithCurrentState','textRanges','UNRECOGNIZED','http://www.w3.org/2000/svg','executionId','_handleEvent','row','18601rHsXNB','collab-rect-range-','getViewport','DesktopCollaborationStatusDisplayController','_config','getVpScrollXYInfoByPosToVp','set','cursorInfo','_getMergeRange','_logService','CollaborationUIEventService','ILocalCacheService','_entityInit$','_disabled','ENTITLE_CHAT_LIMIT_EXCEED','_hover','_ensureSubject','_getSheetObject','saveImage','m2Prime','editingUnit','OffLineIcon','createIdentifier','ITransformService','MOBILE_HAS_BEEN_BOUND','_collabSessionService','replace','getCurrentUnitForType','_heartbeatTimer','Warning','toStringTag','size','_cachedData','InsertColCommandId','handleInsertRow','path','unload','_createSocketURL','getOffsetConfig','endColumn','range','pipe','_colorAssignService','_selfUnitIDs','ColorKit','REDEMPTION_CODE_NOT_STARTED','dispose','setAlpha','jiqing.500','694527soQfAe','handleInsertRangeMoveDown','url(#on-line-icon_clip0_910_349)','collabStatus.syncing','_cursors','_messageService','ICommandService','SUBMIT_CHANGESET_TIMEOUT','_docTransformIMECacheService','unshift','transform','USERS_LEAVE','type','width','CollaborationSessionService','SNAPSHOT_INVALID_SNAPSHOT','_removeCollabCursors','_collabCursorState$','_anchor','endRow','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','tag','_docTransformStateCacheService','with','application/json','text','throttleTime','REDEMPTION_CODE_INACTIVE','_clearOtherTimers','_drawRectRange','origin','pushState','reconnect','_collaborationUIEventService','onPointerMove$','values','IUniverInstanceService','permission.content','_color','handleInsertRangeMoveRight','[CollaborationDataLoaderController]','push','collabStatus.conflict','DOC_RANGE_TYPE','next','REDEMPTION_USER_NOT_ELIGIBLE','stringify','Inject','post','getColor','pluginName','2994ZnyyyE','_eventUnsubscribe','HTTPService','white','IRenderManagerService','bottom','init','_refRangeService','_getSaveTimeout','color','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_doCreateSocket','collab-text-anchor-','NOT_COLLAB','getRenderById','_shapes','CONNECTOR_DATA_TOO_LARGE','IImageIoService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','Module','_transformService','_syncEditingCollabCursorService','setStateCache','REDEMPTION_CODE_FULLY_REDEEMED','NOT_FOUND','toString','1631692NoVrGc','Tools','addClipboardHook','switchMap','triggerDblclick','clipPath','actions','setShapeProps','filter','getTypeOfUnitDisposed$','getTypeOfUnitAdded$','ticket','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_registerDependencies','_httpService','sessionTicket','concat','SheetSkeletonManagerService','RevisionService','collabStatus.synced','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_collaborationController','imageSourceType','makeDirty','ALREADY_EXISTS','_drawAnchor','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','_name','min','params','getStateCache','currentTheme$','MoveRangeCommandId','fillRule','transformSelections','defs','Subject','data','getActiveRange','_updateLocalCursor','save','NO_OTHER_CLIENTS_EDITING','location','delete','_initCommandExecutedListener','_startDocCollabCursor','none','YUUMI_AI_RUN_FAILED','forwardRef','from','transformMutation','_transformPreviousActiveRange','runOnServer','Shape','string','selection','touchDependencies','MemberService','COLORS','fromEvent','findNodePositionByCharIndex','map','REDEMPTION_USER_REDEEM_TIMES_EXCEED','ranges','ILocalStorageService','useDependency','1em','INTERNAL_ERROR','_docSkeleton'];_0x5767=function(){return _0x3d4f2c;};return _0x5767();}let Ie=class extends a[_0xcba175(0x39f)]{constructor(_0x411be7,_0x387cee,_0xdf8ed0,_0x4d403e,_0x4e18c9,_0x4ffc85,_0xcdc364,_0x277fa9,_0xad2c90){const _0x2c7d92=_0xcba175;super(),h(this,_0x2c7d92(0x398),!0x1),h(this,_0x2c7d92(0x322),!0x1),h(this,_0x2c7d92(0x315),new I[(_0x2c7d92(0x1ca))](new Map())),h(this,_0x2c7d92(0x36c),this[_0x2c7d92(0x315)][_0x2c7d92(0x336)]()),h(this,_0x2c7d92(0x303),new I['BehaviorSubject']([])),h(this,_0x2c7d92(0x1a5),this[_0x2c7d92(0x303)][_0x2c7d92(0x247)](I[_0x2c7d92(0x32e)](ut))),h(this,_0x2c7d92(0x2c3),a[_0x2c7d92(0x3ce)](_0x1c3785=>{const _0x5f2355=_0x2c7d92,_0x3a08cd={'eventID':E['CollaborationEvent'][_0x5f2355(0x3ad)],'data':{'unitID':this[_0x5f2355(0x344)],'memberID':this[_0x5f2355(0x309)][_0x5f2355(0x17a)](),'selection':ye(_0x1c3785)}};this[_0x5f2355(0x309)][_0x5f2355(0x3c3)](_0x3a08cd,this[_0x5f2355(0x344)]);},It)),(this[_0x2c7d92(0x344)]=_0x411be7,this[_0x2c7d92(0x309)]=_0x387cee,this[_0x2c7d92(0x3f5)]=_0xdf8ed0,this[_0x2c7d92(0x248)]=_0x4d403e,this[_0x2c7d92(0x365)]=_0x4e18c9,this['_syncEditingCollabCursorService']=_0x4ffc85,this[_0x2c7d92(0x296)]=_0xcdc364,this['_univerInstanceService']=_0x277fa9,this[_0x2c7d92(0x1b0)]=_0xad2c90);}get[_0xcba175(0x225)](){return this['_cursorInfo$']['getValue']();}get[_0xcba175(0x1db)](){const _0x27c4a6=_0xcba175;return this['_roomMembers$'][_0x27c4a6(0x1a0)]();}['dispose'](){const _0x1cca3d=_0xcba175;super[_0x1cca3d(0x24c)](),this[_0x1cca3d(0x315)][_0x1cca3d(0x27b)](new Map()),this['_cursorInfo$'][_0x1cca3d(0x1cf)](),this[_0x1cca3d(0x303)][_0x1cca3d(0x27b)]([]),this[_0x1cca3d(0x303)]['complete']();}[_0xcba175(0x288)](){const _0x2969aa=_0xcba175;this[_0x2969aa(0x322)]||(this[_0x2969aa(0x322)]=!0x0,this[_0x2969aa(0x309)]['sessionStatus$'][_0x2969aa(0x247)](I[_0x2969aa(0x206)](this[_0x2969aa(0x382)]))[_0x2969aa(0x37c)](_0x22e440=>{const _0x2fb6d5=_0x2969aa;_0x22e440===u[_0x2fb6d5(0x300)][_0x2fb6d5(0x177)]?this[_0x2fb6d5(0x1ee)]():this[_0x2fb6d5(0x208)]();}),this[_0x2969aa(0x309)][_0x2969aa(0x32a)][_0x2969aa(0x247)](I[_0x2969aa(0x206)](this['dispose$']))['subscribe'](_0x57006c=>{const _0x4503e6=_0x2969aa,_0x1a630b=_0x57006c[_0x4503e6(0x1fd)];_0x1a630b===E[_0x4503e6(0x3e6)][_0x4503e6(0x3ad)]&&this[_0x4503e6(0x37a)](_0x57006c),_0x1a630b===E[_0x4503e6(0x3e6)][_0x4503e6(0x25a)]&&this[_0x4503e6(0x20b)](_0x57006c);}),this[_0x2969aa(0x369)](this[_0x2969aa(0x1b0)][_0x2969aa(0x1da)](_0x1a5a4d=>{const _0x3c682c=_0x2969aa,_0x227317=_0x1a5a4d[_0x3c682c(0x2b9)];_0x227317!=null&&this[_0x3c682c(0x398)]&&_0x1a5a4d['id']===Y[_0x3c682c(0x1a7)]['id']&&_0x227317[_0x3c682c(0x17b)]===this['unitID']&&_0x227317['isEditing']===!0x1&&_0x227317[_0x3c682c(0x2db)]['length']>0x0&&this['_updateLocalCursor'](_0x227317['ranges']);})),this[_0x2969aa(0x297)][_0x2969aa(0x187)][_0x2969aa(0x247)](I[_0x2969aa(0x206)](this[_0x2969aa(0x382)]))[_0x2969aa(0x37c)](_0x230750=>{const _0x45b809=_0x2969aa;if((_0x230750==null?void 0x0:_0x230750[_0x45b809(0x344)])!==this[_0x45b809(0x344)])return;const _0x4cf011={'eventID':E[_0x45b809(0x3e6)][_0x45b809(0x3ad)],'data':_0x230750};this[_0x45b809(0x37a)](_0x4cf011);}),this[_0x2969aa(0x369)](this[_0x2969aa(0x1b0)]['onCommandExecuted'](_0x52bdb6=>{const _0xf3e870=_0x2969aa;if(_0x52bdb6[_0xf3e870(0x2b9)]==null)return;const _0x4d1cfd=_0x52bdb6['params'];if(_0x52bdb6['id']!==Y[_0xf3e870(0x3b3)]['id']||_0x4d1cfd['unitId']!==this['unitID'])return;const _0x279a4e={'id':_0xf3e870(0x189),'params':_0x4d1cfd},_0x41a19f=this['cursorInfo'];for(const [_0x67306f,_0x4b8277]of _0x41a19f){const _0x30f4d8={'id':_0xf3e870(0x189),'params':{'unitId':this[_0xf3e870(0x344)],'actions':null,'textRanges':_0x4b8277[_0xf3e870(0x2db)]}},_0x43c767=this[_0xf3e870(0x296)][_0xf3e870(0x2ce)](_0x279a4e,_0x30f4d8,!0x1);if(E['isTransformMutationFailure'](_0x43c767))throw _0x43c767[_0xf3e870(0x1f4)];_0x41a19f[_0xf3e870(0x224)](_0x67306f,{..._0x4b8277,'ranges':_0x43c767[_0xf3e870(0x231)][_0xf3e870(0x2b9)][_0xf3e870(0x218)]});}queueMicrotask(()=>{const _0x416952=_0xf3e870;this[_0x416952(0x315)]['next'](_0x41a19f);});})));}['_onCursorUpdate'](_0x21c0b8){const _0x2dc623=_0xcba175;var _0x140bfa,_0x1fd739;const {memberID:_0x979aff,selection:_0x1c5a9e}=_0x21c0b8[_0x2dc623(0x2c1)],_0x4e4a09=lt(_0x1c5a9e),_0x5ce552=(_0x1fd739=(_0x140bfa=this[_0x2dc623(0x365)][_0x2dc623(0x37f)](this[_0x2dc623(0x344)],_0x979aff))==null?void 0x0:_0x140bfa[_0x2dc623(0x2ed)])!=null?_0x1fd739:_0x2dc623(0x356),_0xe79686={'color':this[_0x2dc623(0x248)][_0x2dc623(0x305)](_0x979aff),'name':_0x5ce552,'ranges':_0x4e4a09},_0x53ce48=this[_0x2dc623(0x225)];_0x53ce48[_0x2dc623(0x224)](_0x979aff,_0xe79686),this['_cursorInfo$'][_0x2dc623(0x27b)](_0x53ce48);}[_0xcba175(0x20b)](_0x1e62d7){const _0x4ccbc9=_0xcba175,{memberID:_0xbd4278}=_0x1e62d7['data'],_0x207c13=this[_0x4ccbc9(0x225)];_0x207c13[_0x4ccbc9(0x2c7)](_0xbd4278),this[_0x4ccbc9(0x315)][_0x4ccbc9(0x27b)](_0x207c13);}[_0xcba175(0x1ee)](){const _0x1dd5af=_0xcba175;var _0x144737;if(this[_0x1dd5af(0x398)]=!0x0,((_0x144737=this[_0x1dd5af(0x1bd)]['getFocusedUnit']())==null?void 0x0:_0x144737[_0x1dd5af(0x310)]())!==this[_0x1dd5af(0x344)])return;const _0x2f251c=this[_0x1dd5af(0x3f5)]['get'](Y['DocSelectionManagerService'])[_0x1dd5af(0x3a2)]();Array['isArray'](_0x2f251c)&&_0x2f251c[_0x1dd5af(0x193)]>0x0&&this[_0x1dd5af(0x2c3)](_0x2f251c);}[_0xcba175(0x208)](){const _0x132f20=_0xcba175;this[_0x132f20(0x398)]=!0x1;}};Ie=ht([L(0x2,a[_0xcba175(0x27e)](a[_0xcba175(0x2ef)])),L(0x3,a[_0xcba175(0x27e)](me)),L(0x4,a[_0xcba175(0x27e)](u[_0xcba175(0x2d5)])),L(0x5,a[_0xcba175(0x27e)](Ce)),L(0x6,E['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0xcba175(0x255)])],Ie);var dt=Object['getOwnPropertyDescriptor'],St=(_0x3ead40,_0x14bc49,_0x3fd4a4,_0x14bd4b)=>{const _0x3bf668=_0xcba175;for(var _0x126fea=_0x14bd4b>0x1?void 0x0:_0x14bd4b?dt(_0x14bc49,_0x3fd4a4):_0x14bc49,_0x4b5a79=_0x3ead40[_0x3bf668(0x193)]-0x1,_0x4d7266;_0x4b5a79>=0x0;_0x4b5a79--)(_0x4d7266=_0x3ead40[_0x4b5a79])&&(_0x126fea=_0x4d7266(_0x126fea)||_0x126fea);return _0x126fea;},w=(_0x5321bf,_0x4b0804)=>(_0x29b217,_0x5089a1)=>_0x4b0804(_0x29b217,_0x5089a1,_0x5321bf);const ft=0x12c,vt=0x64,gt=()=>{let _0x1cf26f=[],_0x327b32=!0x1;return _0x38c0c4=>{const _0x508f1a=_0x12c7;_0x1cf26f[_0x508f1a(0x278)](_0x38c0c4),_0x327b32||(_0x327b32=!0x0,setTimeout(()=>{_0x1cf26f['forEach'](_0x21ae5e=>_0x21ae5e()),_0x1cf26f=[],_0x327b32=!0x1;}));};};let de=class extends a[_0xcba175(0x39f)]{constructor(_0x1398c3,_0x39b36e,_0x21fd66,_0xbb6062,_0x504066,_0xb19a4d,_0x4cc27d,_0x5aaf53){const _0x2eb8f5=_0xcba175;super(),h(this,_0x2eb8f5(0x398),!0x1),h(this,'_init',!0x1),h(this,_0x2eb8f5(0x315),new I[(_0x2eb8f5(0x1ca))](new Map())),h(this,_0x2eb8f5(0x36c),this[_0x2eb8f5(0x315)]['asObservable']()),h(this,_0x2eb8f5(0x303),new I['BehaviorSubject']([])),h(this,_0x2eb8f5(0x1a5),this[_0x2eb8f5(0x303)][_0x2eb8f5(0x247)](I[_0x2eb8f5(0x32e)](ft))),h(this,'_updateLocalCursor',a[_0x2eb8f5(0x3ce)]((_0x17b862,_0x2ad063)=>{const _0x30d76e=_0x2eb8f5,_0x3e4a23={'eventID':E[_0x30d76e(0x3e6)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x30d76e(0x344)],'memberID':this[_0x30d76e(0x309)][_0x30d76e(0x17a)](),'selection':Te[_0x30d76e(0x3f0)](_0x17b862,_0x2ad063[_0x30d76e(0x246)])}};this[_0x30d76e(0x309)][_0x30d76e(0x3c3)](_0x3e4a23,this['unitID']);},vt)),(this[_0x2eb8f5(0x344)]=_0x1398c3,this['_session']=_0x39b36e,this[_0x2eb8f5(0x3f5)]=_0x21fd66,this['_colorAssignService']=_0xbb6062,this[_0x2eb8f5(0x365)]=_0x504066,this[_0x2eb8f5(0x1bd)]=_0xb19a4d,this[_0x2eb8f5(0x1b0)]=_0x4cc27d,this[_0x2eb8f5(0x289)]=_0x5aaf53);}get['cursorInfo'](){const _0x49d857=_0xcba175;return this['_cursorInfo$'][_0x49d857(0x1a0)]();}get[_0xcba175(0x1db)](){const _0x1396b7=_0xcba175;return this[_0x1396b7(0x303)][_0x1396b7(0x1a0)]();}['dispose'](){const _0x386ba0=_0xcba175;super[_0x386ba0(0x24c)](),this[_0x386ba0(0x315)][_0x386ba0(0x27b)](new Map()),this[_0x386ba0(0x315)][_0x386ba0(0x1cf)](),this['_roomMembers$']['next']([]),this[_0x386ba0(0x303)][_0x386ba0(0x1cf)]();}[_0xcba175(0x288)](){const _0xe5312=_0xcba175;this[_0xe5312(0x322)]||(this['_init']=!0x0,this[_0xe5312(0x309)]['sessionStatus$'][_0xe5312(0x247)](I[_0xe5312(0x206)](this['dispose$']))['subscribe'](_0x5d0df9=>{const _0x11e38e=_0xe5312;_0x5d0df9===u['SessionStatus'][_0x11e38e(0x177)]?this[_0x11e38e(0x1ee)]():this[_0x11e38e(0x208)]();}),this[_0xe5312(0x309)][_0xe5312(0x32a)][_0xe5312(0x247)](I[_0xe5312(0x206)](this[_0xe5312(0x382)]))[_0xe5312(0x37c)](_0x2aefee=>{const _0x4ccbe8=_0xe5312,_0x392107=_0x2aefee[_0x4ccbe8(0x1fd)];_0x392107===E[_0x4ccbe8(0x3e6)][_0x4ccbe8(0x3ad)]&&this['_onCursorUpdate'](_0x2aefee),_0x392107===E[_0x4ccbe8(0x3e6)][_0x4ccbe8(0x25a)]&&this[_0x4ccbe8(0x20b)](_0x2aefee);}),this[_0xe5312(0x399)](),this[_0xe5312(0x369)](this['_commandService'][_0xe5312(0x1da)](_0x35fd27=>{const _0x5bc156=_0xe5312;if(this[_0x5bc156(0x398)]&&_0x35fd27['id']===g[_0x5bc156(0x3b8)]['id']&&_0x35fd27['params']['unitId']===this[_0x5bc156(0x344)]){const _0xdae432=_0x35fd27['params'];this[_0x5bc156(0x2c3)](_0xdae432['subUnitId'],_0xdae432[_0x5bc156(0x395)][0x0]);}})));}[_0xcba175(0x37a)](_0x31697f){const _0x4b3ec6=_0xcba175;var _0x4f485d,_0x14bbcf;const {memberID:_0x156e73,selection:_0x4b4638}=_0x31697f[_0x4b3ec6(0x2c1)],{sheetName:_0x330f81,range:_0x3182c4}=Te['deserializeRangeWithSheet'](_0x4b4638),_0x40418b={'name':(_0x14bbcf=(_0x4f485d=this[_0x4b3ec6(0x365)][_0x4b3ec6(0x37f)](this[_0x4b3ec6(0x344)],_0x156e73))==null?void 0x0:_0x4f485d['name'])!=null?_0x14bbcf:_0x4b3ec6(0x356),'range':this[_0x4b3ec6(0x226)](_0x330f81,_0x3182c4),'sheetID':_0x330f81,'color':this[_0x4b3ec6(0x248)][_0x4b3ec6(0x305)](_0x156e73),'selection':_0x4b4638},_0x53f4d4=this[_0x4b3ec6(0x225)];_0x53f4d4[_0x4b3ec6(0x224)](_0x156e73,_0x40418b),this['_cursorInfo$'][_0x4b3ec6(0x27b)](_0x53f4d4);}['_onCursorDelete'](_0x4b5c68){const _0x247421=_0xcba175,{memberID:_0x5285e8}=_0x4b5c68['data'],_0x478456=this[_0x247421(0x225)];_0x478456[_0x247421(0x2c7)](_0x5285e8),this[_0x247421(0x315)]['next'](_0x478456);}[_0xcba175(0x226)](_0x3d5671,_0x55a9f2){const _0x5682de=_0xcba175;var _0x3c4592,_0x1e8f15;const _0x324b0d=(_0x1e8f15=(_0x3c4592=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x5682de(0x344)]))==null?void 0x0:_0x3c4592[_0x5682de(0x3ab)](_0x3d5671))==null?void 0x0:_0x1e8f15[_0x5682de(0x393)]();return(_0x324b0d==null?void 0x0:_0x324b0d['find'](_0xff4cfc=>a[_0x5682de(0x1ea)]['contains'](_0xff4cfc,_0x55a9f2)))||_0x55a9f2;}['_onRefRangeChange'](){const _0x4aaad7=_0xcba175,_0x5ed913=new a['DisposableCollection'](),_0x3361ac=gt(),_0x320443=()=>{const _0x2218d4=_0x12c7;_0x5ed913[_0x2218d4(0x24c)]();const _0x3cd7db=(_0x5db016,_0x5ccac0,_0x5c421e,_0xf516fe)=>{const _0x362978=_0x2218d4;let _0x497643=[];switch(_0x5db016['id']){case g[_0x362978(0x32c)][_0x362978(0x3f7)]:{_0x497643=g[_0x362978(0x377)](_0x5db016,_0xf516fe);break;}case g[_0x362978(0x32c)][_0x362978(0x1fb)]:{_0x497643=g[_0x362978(0x325)](_0x5db016,_0xf516fe);break;}case g[_0x362978(0x32c)][_0x362978(0x23f)]:{_0x497643=g['handleInsertCol'](_0x5db016,_0xf516fe);break;}case g[_0x362978(0x32c)][_0x362978(0x1ef)]:{_0x497643=g[_0x362978(0x250)](_0x5db016,_0xf516fe);break;}case g[_0x362978(0x32c)][_0x362978(0x340)]:{_0x497643=g[_0x362978(0x276)](_0x5db016,_0xf516fe);break;}case g[_0x362978(0x32c)][_0x362978(0x341)]:{_0x497643=g[_0x362978(0x240)](_0x5db016,_0xf516fe);break;}case g['EffectRefRangId'][_0x362978(0x2bc)]:{_0x497643=g['handleMoveRange'](_0x5db016,_0xf516fe);break;}case g[_0x362978(0x32c)][_0x362978(0x312)]:{_0x497643=g['handleIRemoveCol'](_0x5db016,_0xf516fe);break;}case g[_0x362978(0x32c)]['RemoveRowCommandId']:{_0x497643=g['handleIRemoveRow'](_0x5db016,_0xf516fe);break;}}const _0x536b04=g[_0x362978(0x3b1)](_0x497643,_0xf516fe),_0x5ec46d=this[_0x362978(0x225)]['get'](_0x5ccac0);if(_0x5ec46d&&_0x536b04){const _0x5dc4e6={..._0x5ec46d,'range':_0x536b04};this[_0x362978(0x225)]['set'](_0x5ccac0,_0x5dc4e6),_0x3361ac(()=>{const _0x17c2d7=_0x362978,_0x48b219=this[_0x17c2d7(0x289)][_0x17c2d7(0x1e7)](_0x536b04,_0x1925fc=>(_0x48b219[_0x17c2d7(0x24c)](),_0x3cd7db(_0x1925fc,_0x5ccac0,_0x5c421e,_0x536b04)));_0x5ed913[_0x17c2d7(0x364)](_0x48b219);});}return{'redos':[],'undos':[]};};this[_0x2218d4(0x225)]['forEach']((_0x2599ca,_0x29b2ca)=>{const _0x1d3299=_0x2218d4,{range:_0x78eb00,sheetID:_0x5984b1}=_0x2599ca,_0x26d119=this['_refRangeService'][_0x1d3299(0x1e7)](_0x78eb00,_0x1da29c=>(_0x26d119['dispose'](),_0x3cd7db(_0x1da29c,_0x29b2ca,_0x5984b1,_0x78eb00)));_0x5ed913['add'](_0x26d119);});};this[_0x4aaad7(0x369)](a['toDisposable'](this[_0x4aaad7(0x315)]['subscribe'](()=>{_0x320443();})));}[_0xcba175(0x1ee)](){const _0x1fd9c1=_0xcba175;var _0xac6ea,_0x5c7d03;if(this[_0x1fd9c1(0x398)]=!0x0,((_0xac6ea=this[_0x1fd9c1(0x1bd)]['getFocusedUnit']())==null?void 0x0:_0xac6ea[_0x1fd9c1(0x310)]())!==this['unitID'])return;const _0x4495cc=(_0x5c7d03=this[_0x1fd9c1(0x3f5)][_0x1fd9c1(0x1ec)](g[_0x1fd9c1(0x209)])[_0x1fd9c1(0x1eb)]())==null?void 0x0:_0x5c7d03[0x0],_0x58a8c0=this[_0x1fd9c1(0x1bd)][_0x1fd9c1(0x239)](a['UniverInstanceType'][_0x1fd9c1(0x200)])[_0x1fd9c1(0x1bf)]();_0x4495cc&&_0x58a8c0&&this[_0x1fd9c1(0x2c3)](_0x58a8c0[_0x1fd9c1(0x3ff)](),_0x4495cc);}[_0xcba175(0x208)](){const _0x5589f1=_0xcba175;this[_0x5589f1(0x398)]=!0x1;}};de=St([w(0x2,a[_0xcba175(0x27e)](a[_0xcba175(0x2ef)])),w(0x3,a['Inject'](me)),w(0x4,a[_0xcba175(0x27e)](u['MemberService'])),w(0x5,a[_0xcba175(0x273)]),w(0x6,a[_0xcba175(0x255)]),w(0x7,a[_0xcba175(0x27e)](g[_0xcba175(0x1bc)]))],de);var Et=Object['getOwnPropertyDescriptor'],mt=(_0x4ab3b5,_0xfccc87,_0x2c2262,_0xde53fd)=>{const _0x3ae464=_0xcba175;for(var _0x52f46e=_0xde53fd>0x1?void 0x0:_0xde53fd?Et(_0xfccc87,_0x2c2262):_0xfccc87,_0x6e70a4=_0x4ab3b5[_0x3ae464(0x193)]-0x1,_0x216f87;_0x6e70a4>=0x0;_0x6e70a4--)(_0x216f87=_0x4ab3b5[_0x6e70a4])&&(_0x52f46e=_0x216f87(_0x52f46e)||_0x52f46e);return _0x52f46e;},ie=(_0x23a564,_0x12012c)=>(_0x3bb957,_0x5d9bc2)=>_0x12012c(_0x3bb957,_0x5d9bc2,_0x23a564);let x=class extends a['RxDisposable']{constructor(_0x52b6a9,_0x5b3661,_0x56703c){const _0x5edb62=_0xcba175;super(),h(this,_0x5edb62(0x1f0),new Map()),h(this,'_entityInit$',new I[(_0x5edb62(0x2c0))]()),(this['_univerInstanceService']=_0x52b6a9,this[_0x5edb62(0x3f5)]=_0x5b3661,this[_0x5edb62(0x237)]=_0x56703c,this[_0x5edb62(0x322)]());}[_0xcba175(0x24c)](){const _0x128365=_0xcba175;super[_0x128365(0x24c)](),this[_0x128365(0x22a)][_0x128365(0x1cf)](),this[_0x128365(0x1f0)][_0x128365(0x1fc)](_0x1ee695=>_0x1ee695[_0x128365(0x24c)]());}['getCollabCursors$'](_0x14c518){const _0x46b672=_0xcba175;return this[_0x46b672(0x1f0)][_0x46b672(0x381)](_0x14c518)?this['_entities']['get'](_0x14c518)['cursorInfo$']:this[_0x46b672(0x22a)]['pipe'](I[_0x46b672(0x2a4)](_0x51d6db=>_0x51d6db['unitID']===_0x14c518),I['switchMap'](_0x132efa=>_0x132efa[_0x46b672(0x36c)]));}[_0xcba175(0x322)](){const _0x52f687=_0xcba175;this[_0x52f687(0x1bd)]['getTypeOfUnitAdded$'](a[_0x52f687(0x3db)]['UNIVER_SHEET'])[_0x52f687(0x247)](I[_0x52f687(0x206)](this[_0x52f687(0x382)]))[_0x52f687(0x37c)](async _0x255513=>{const _0x5a6ce9=_0x52f687,_0x1d9e2f=_0x255513[_0x5a6ce9(0x310)](),_0xc9a320=await this['_startSheetCollabCursor'](_0x1d9e2f);this[_0x5a6ce9(0x22a)][_0x5a6ce9(0x27b)](_0xc9a320),this[_0x5a6ce9(0x1f0)][_0x5a6ce9(0x224)](_0x1d9e2f,_0xc9a320);}),this[_0x52f687(0x1bd)][_0x52f687(0x2a6)](a[_0x52f687(0x3db)][_0x52f687(0x181)])['pipe'](I[_0x52f687(0x206)](this[_0x52f687(0x382)]))[_0x52f687(0x247)](I[_0x52f687(0x2a4)](_0x395c43=>!_0x395c43['getUnitId']()[_0x52f687(0x1ba)]('__')))[_0x52f687(0x37c)](async _0x1c7af0=>{const _0x1be41c=_0x52f687,_0x3b1f8f=_0x1c7af0[_0x1be41c(0x310)](),_0x42c636=await this[_0x1be41c(0x2c9)](_0x3b1f8f);this[_0x1be41c(0x22a)][_0x1be41c(0x27b)](_0x42c636),this[_0x1be41c(0x1f0)][_0x1be41c(0x224)](_0x3b1f8f,_0x42c636);}),I[_0x52f687(0x3da)](this[_0x52f687(0x1bd)][_0x52f687(0x2a5)](a['UniverInstanceType']['UNIVER_DOC']),this[_0x52f687(0x1bd)]['getTypeOfUnitDisposed$'](a[_0x52f687(0x3db)][_0x52f687(0x200)]))[_0x52f687(0x247)](I[_0x52f687(0x206)](this[_0x52f687(0x382)]))[_0x52f687(0x37c)](_0x218a3f=>{const _0x328c9e=_0x52f687,_0x3e8078=_0x218a3f[_0x328c9e(0x310)](),_0x303a74=this[_0x328c9e(0x1f0)][_0x328c9e(0x1ec)](_0x3e8078);_0x303a74&&(_0x303a74['dispose'](),this[_0x328c9e(0x1f0)][_0x328c9e(0x2c7)](_0x3e8078));});}async[_0xcba175(0x1d3)](_0x42fd96){const _0x4f69e3=_0xcba175,_0x5b4038=await this['_collabSessionService']['requireSession'](_0x42fd96),_0x48e5cd=this[_0x4f69e3(0x3f5)]['createInstance'](de,_0x42fd96,_0x5b4038);return _0x48e5cd[_0x4f69e3(0x288)](),_0x48e5cd;}async[_0xcba175(0x2c9)](_0x362762){const _0x1800e6=_0xcba175,_0x12a2c5=await this[_0x1800e6(0x237)][_0x1800e6(0x334)](_0x362762),_0x1b0806=this['_injector']['createInstance'](Ie,_0x362762,_0x12a2c5);return _0x1b0806[_0x1800e6(0x288)](),_0x1b0806;}};x=mt([ie(0x0,a[_0xcba175(0x273)]),ie(0x1,a[_0xcba175(0x27e)](a[_0xcba175(0x2ef)])),ie(0x2,a[_0xcba175(0x27e)](u[_0xcba175(0x25d)]))],x);const W=0x14,Re=0xc8,ne=0x4,Ct=0x5;function Tt(_0x41c67e,_0x58dd80){const _0x49a3cc=_0xcba175;let {radius:_0x5dffa1,width:_0xcfdb9b,height:_0x42b4b0}=_0x58dd80;_0x5dffa1=_0x5dffa1!=null?_0x5dffa1:0x0,_0xcfdb9b=_0xcfdb9b!=null?_0xcfdb9b:0x1e,_0x42b4b0=_0x42b4b0!=null?_0x42b4b0:0x1e;let _0x228cd4=0x0,_0x843e0f=0x0,_0x1ef139=0x0;_0x228cd4=_0x843e0f=_0x1ef139=Math['min'](_0x5dffa1,_0xcfdb9b/0x2,_0x42b4b0/0x2),_0x41c67e['beginPath'](),_0x41c67e[_0x49a3cc(0x32b)](_0x228cd4,0x0),_0x41c67e['lineTo'](_0xcfdb9b-_0x843e0f,0x0),_0x41c67e[_0x49a3cc(0x3f2)](_0xcfdb9b-_0x843e0f,_0x843e0f,_0x843e0f,Math['PI']*0x3/0x2,0x0,!0x1),_0x41c67e[_0x49a3cc(0x2fc)](_0xcfdb9b,_0x42b4b0-_0x1ef139),_0x41c67e[_0x49a3cc(0x3f2)](_0xcfdb9b-_0x1ef139,_0x42b4b0-_0x1ef139,_0x1ef139,0x0,Math['PI']/0x2,!0x1),_0x41c67e[_0x49a3cc(0x2fc)](0x0,_0x42b4b0),_0x41c67e[_0x49a3cc(0x2fc)](0x0,_0x228cd4),_0x41c67e['arc'](_0x228cd4,_0x228cd4,_0x228cd4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x41c67e[_0x49a3cc(0x2f7)](),_0x58dd80['fill']&&(_0x41c67e[_0x49a3cc(0x2c4)](),_0x41c67e[_0x49a3cc(0x213)]=_0x58dd80[_0x49a3cc(0x368)],_0x58dd80[_0x49a3cc(0x2bd)]==='evenodd'?_0x41c67e[_0x49a3cc(0x368)]('evenodd'):_0x41c67e['fill'](),_0x41c67e[_0x49a3cc(0x3b2)]());}class ee extends C[_0xcba175(0x2d1)]{constructor(_0x4cddfb,_0x3cc9ff){const _0x2ead0a=_0xcba175;super(_0x4cddfb,_0x3cc9ff),h(this,_0x2ead0a(0x28b)),h(this,_0x2ead0a(0x268)),(this[_0x2ead0a(0x28b)]=_0x3cc9ff==null?void 0x0:_0x3cc9ff['color'],this['text']=_0x3cc9ff==null?void 0x0:_0x3cc9ff[_0x2ead0a(0x268)]);}static[_0xcba175(0x3cd)](_0x15dc3e,_0x46a4db){const _0x5a2329=_0xcba175,{text:_0x2521c5,color:_0x2f3491}=_0x46a4db;_0x15dc3e[_0x5a2329(0x2c4)](),_0x15dc3e[_0x5a2329(0x19a)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x3c7c6a=_0x15dc3e['measureText'](_0x2521c5)[_0x5a2329(0x25c)],_0x50c7ed=Math[_0x5a2329(0x2b8)](_0x3c7c6a+0x2*ne,Re);Tt(_0x15dc3e,{'height':W,'radius':0x4,'width':_0x50c7ed,'fill':_0x2f3491}),_0x15dc3e['fillStyle']=_0x5a2329(0x2f1);const _0x15ec22=ne,_0x1c72a7=W-Ct,_0x290e0a=Re-0x2*ne;if(_0x3c7c6a>_0x290e0a){let _0x46d9c7='',_0x12a3b1=0x0;for(const _0x20e974 of _0x2521c5){const _0x3c6001=_0x15dc3e[_0x5a2329(0x3cc)](_0x20e974)[_0x5a2329(0x25c)];if(_0x12a3b1+_0x3c6001<=_0x290e0a-_0x15dc3e[_0x5a2329(0x3cc)](_0x5a2329(0x1e4))[_0x5a2329(0x25c)])_0x46d9c7+=_0x20e974,_0x12a3b1+=_0x3c6001;else{_0x46d9c7+='...';break;}}_0x15dc3e['fillText'](_0x46d9c7,_0x15ec22,_0x1c72a7);}else _0x15dc3e[_0x5a2329(0x37b)](_0x2521c5,_0x15ec22,_0x1c72a7);_0x15dc3e[_0x5a2329(0x3b2)]();}[_0xcba175(0x38d)](_0x2ea4bb){const _0x2d55da=_0xcba175;ee[_0x2d55da(0x3cd)](_0x2ea4bb,this);}}const re=_0xcba175(0x28e),Ot=_0xcba175(0x1ff),pt=_0xcba175(0x21f),F=0x6,Rt=1.5,oe=0x4,bt=1.5,Dt=_0xcba175(0x384);class be{constructor(_0x15046f,_0x342dfe,_0x594c75,_0x569d78){const _0x246dc2=_0xcba175;h(this,_0x246dc2(0x291),[]),h(this,_0x246dc2(0x261),null),h(this,_0x246dc2(0x1b8),null),h(this,_0x246dc2(0x18f),null),h(this,_0x246dc2(0x1f1),null),h(this,_0x246dc2(0x283),null),(this[_0x246dc2(0x18b)]=_0x15046f,this['_scene']=_0x342dfe,this[_0x246dc2(0x2e0)]=_0x594c75,this[_0x246dc2(0x2e3)]=_0x569d78,this[_0x246dc2(0x1a9)]());}set[_0xcba175(0x22d)](_0x104f63){const _0x2dd024=_0xcba175;_0x104f63?(this[_0x2dd024(0x18f)]&&this[_0x2dd024(0x18f)][_0x2dd024(0x2e1)](),this[_0x2dd024(0x1b8)]&&this[_0x2dd024(0x1b8)][_0x2dd024(0x1e9)]()):(this[_0x2dd024(0x18f)]&&this['_anchorDot'][_0x2dd024(0x1e9)](),this[_0x2dd024(0x1b8)]&&this[_0x2dd024(0x1b8)]['hide']());}[_0xcba175(0x24c)](){const _0x5f2af5=_0xcba175;for(const _0x57aa20 of this[_0x5f2af5(0x291)])_0x57aa20[_0x5f2af5(0x24c)]();this[_0x5f2af5(0x1b8)]&&this[_0x5f2af5(0x1b8)][_0x5f2af5(0x24c)](),this['_anchorDot']&&this[_0x5f2af5(0x18f)][_0x5f2af5(0x24c)](),this[_0x5f2af5(0x261)]&&this[_0x5f2af5(0x261)][_0x5f2af5(0x24c)](),this[_0x5f2af5(0x283)]&&this['_eventUnsubscribe']();}['_render'](){const _0x322120=_0xcba175;var _0x5f2fc0;const {_docSkeleton:_0x457ab3,_document:_0x19b286}=this,{color:_0x259deb,name:_0x5a10d3,ranges:_0x24072f}=this['_cursor'],_0x5aa08d=_0x19b286[_0x322120(0x244)](),{docsLeft:_0x398be9,docsTop:_0xc0d66e}=_0x5aa08d,_0x15c78a=new T[(_0x322120(0x304))](_0x5aa08d,_0x457ab3);for(const {startOffset:_0x10ca95,endOffset:_0x3d5c2e,rangeType:_0x3115bb,segmentId:_0x4dc14b,segmentPage:_0xcb5f84,collapsed:_0xa00bf,isActive:_0x43c5b6}of _0x24072f){const _0x299b69=_0x457ab3[_0x322120(0x2d8)](_0x10ca95,!0x0,_0x4dc14b,_0xcb5f84);let _0x2ca331=_0x457ab3[_0x322120(0x2d8)](_0x3d5c2e,!0x0,_0x4dc14b,_0xcb5f84);if(_0x2ca331==null&&(_0x2ca331=_0x457ab3['findNodePositionByCharIndex'](_0x3d5c2e-0x1,!0x1,_0x4dc14b,_0xcb5f84)),_0x43c5b6){const {contentBoxPointGroup:_0x1dc02b}=_0x15c78a[_0x322120(0x1b1)](_0x2ca331,_0x2ca331);if(_0x1dc02b[_0x322120(0x193)]===0x0)continue;this[_0x322120(0x2b5)](_0x259deb,_0x1dc02b,_0x398be9,_0xc0d66e,_0x5a10d3),this[_0x322120(0x283)]=this['_handleHover']();}if(_0x299b69&&_0x2ca331){if(_0x3115bb===a[_0x322120(0x27a)][_0x322120(0x1f2)]){const _0x4c3e99=new T[(_0x322120(0x38e))](_0x5aa08d,_0x457ab3),{pointGroup:_0x3c0e0b}=(_0x5f2fc0=_0x4c3e99[_0x322120(0x1b1)](_0x299b69,_0x2ca331))!=null?_0x5f2fc0:{};if(_0x3c0e0b==null||_0x3c0e0b[_0x322120(0x193)]===0x0)continue;this[_0x322120(0x26c)](_0x259deb,_0x3c0e0b,_0x398be9,_0xc0d66e);}else{if(!_0xa00bf){const {borderBoxPointGroup:_0x137da3}=_0x15c78a[_0x322120(0x1b1)](_0x299b69,_0x2ca331);if(_0x137da3[_0x322120(0x193)]===0x0)continue;this[_0x322120(0x1f7)](_0x259deb,_0x137da3,_0x398be9,_0xc0d66e);}}}}}[_0xcba175(0x2b5)](_0x7503f,_0x5c3e6a,_0x596006,_0x4f78e1,_0x291d38){const _0x4b89e5=_0xcba175,_0x42c507=this[_0x4b89e5(0x2ea)](_0x5c3e6a),{left:_0x263185,top:_0x5f0e9f,height:_0x4ec2b2}=_0x42c507,_0x4acb91=this[_0x4b89e5(0x1a1)](),_0x5c10ab=bt/_0x4acb91,_0x571bb3=new C[(_0x4b89e5(0x375))](re+a[_0x4b89e5(0x31c)](F),{'left':_0x263185+_0x596006-_0x5c10ab,'top':_0x5f0e9f+_0x4f78e1,'height':_0x4ec2b2,'width':Rt,'fill':_0x7503f||C['getColor'](a['COLORS']['black'],0x0),'strokeWidth':_0x5c10ab,'stroke':Dt,'evented':!0x0});this[_0x4b89e5(0x261)]=_0x571bb3,this[_0x4b89e5(0x1c0)]['addObject'](_0x571bb3,T[_0x4b89e5(0x3f4)]);const _0x277928=new C[(_0x4b89e5(0x375))](re+a['generateRandomId'](F),{'left':_0x263185+_0x596006-_0x5c10ab,'top':_0x5f0e9f+_0x4f78e1-oe/0x2,'height':oe,'width':oe,'fill':_0x7503f||C[_0x4b89e5(0x280)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x7503f||C['getColor'](a[_0x4b89e5(0x2d6)][_0x4b89e5(0x3ba)],0x0),'evented':!0x1});this[_0x4b89e5(0x18f)]=_0x277928,this[_0x4b89e5(0x1c0)][_0x4b89e5(0x188)](_0x277928,T[_0x4b89e5(0x3f4)]);const _0x386588=new ee(re+a[_0x4b89e5(0x31c)](F),{'left':_0x263185+_0x596006-_0x5c10ab,'top':_0x5f0e9f+_0x4f78e1-W,'text':_0x291d38,'color':_0x7503f});this[_0x4b89e5(0x1b8)]=_0x386588,this[_0x4b89e5(0x1c0)]['addObject'](_0x386588,T['TEXT_RANGE_LAYER_INDEX']),this[_0x4b89e5(0x22d)]=!0x1;}[_0xcba175(0x397)](){const _0x1c077f=_0xcba175,_0x4352e1=this[_0x1c077f(0x261)]['onPointerEnter$'][_0x1c077f(0x2f4)](()=>{const _0x1d89ee=_0x1c077f;this[_0x1d89ee(0x22d)]=!0x0;}),_0x425db2=this[_0x1c077f(0x261)][_0x1c077f(0x18d)]['subscribeEvent'](()=>{const _0x367fd0=_0x1c077f;this['_hideTimer']&&clearTimeout(this[_0x367fd0(0x1f1)]),this[_0x367fd0(0x1f1)]=setTimeout(()=>{const _0x40a413=_0x367fd0;this[_0x40a413(0x22d)]=!0x1;},0x7d0);});return()=>{const _0x181d4a=_0x1c077f;_0x4352e1['unsubscribe'](),_0x425db2[_0x181d4a(0x2e9)]();};}[_0xcba175(0x1f7)](_0xd73ee0,_0x6bb7ba,_0x20425d,_0x359ae2){const _0x392323=_0xcba175,_0x245a04=new a[(_0x392323(0x24a))](_0xd73ee0)[_0x392323(0x24d)](0.2)[_0x392323(0x3af)](),_0xea78b4=new C[(_0x392323(0x362))](Ot+a[_0x392323(0x31c)](F),{'pointsGroup':_0x6bb7ba,'fill':_0x245a04||C[_0x392323(0x280)](a[_0x392323(0x2d6)]['black'],0.2),'left':_0x20425d,'top':_0x359ae2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x392323(0x278)](_0xea78b4),this[_0x392323(0x1c0)][_0x392323(0x188)](_0xea78b4,T[_0x392323(0x3f4)]);}[_0xcba175(0x26c)](_0x33b44a,_0xef06b,_0x4e3d00,_0x1a3937){const _0x9fff22=_0xcba175,_0x421b32=new a[(_0x9fff22(0x24a))](_0x33b44a)['setAlpha'](0.2)[_0x9fff22(0x3af)](),_0x54b36e=new C[(_0x9fff22(0x362))](pt+a[_0x9fff22(0x31c)](F),{'pointsGroup':_0xef06b,'fill':_0x421b32||C[_0x9fff22(0x280)](a['COLORS'][_0x9fff22(0x3ba)],0.2),'left':_0x4e3d00,'top':_0x1a3937,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9fff22(0x291)][_0x9fff22(0x278)](_0x54b36e),this[_0x9fff22(0x1c0)][_0x9fff22(0x188)](_0x54b36e,T[_0x9fff22(0x3f4)]);}[_0xcba175(0x2ea)](_0x462b30){const _0x4dfff1=_0x462b30[0x0],_0xfe72f5=_0x4dfff1[0x0],_0x909760=_0x4dfff1[0x2],{x:_0x4e4125,y:_0x3faf89}=_0xfe72f5,{x:_0x3a350c,y:_0x1b8a61}=_0x909760;return{'left':_0x4e4125,'top':_0x3faf89,'width':_0x3a350c-_0x4e4125,'height':_0x1b8a61-_0x3faf89};}[_0xcba175(0x1a1)](){const _0x2f3692=_0xcba175,{scaleX:_0x16269b,scaleY:_0x24f064}=this[_0x2f3692(0x1c0)]['getAncestorScale']();return Math['max'](_0x16269b,_0x24f064);}}var Nt=Object[_0xcba175(0x1a8)],Ut=(_0x3800f0,_0x28dc82,_0x3274d6,_0x433818)=>{const _0x39ab64=_0xcba175;for(var _0x2870c7=_0x433818>0x1?void 0x0:_0x433818?Nt(_0x28dc82,_0x3274d6):_0x28dc82,_0x69e134=_0x3800f0[_0x39ab64(0x193)]-0x1,_0x4627d1;_0x69e134>=0x0;_0x69e134--)(_0x4627d1=_0x3800f0[_0x69e134])&&(_0x2870c7=_0x4627d1(_0x2870c7)||_0x2870c7);return _0x2870c7;},X=(_0x59778a,_0x2a96e3)=>(_0x2f332d,_0x1e7b8b)=>_0x2a96e3(_0x2f332d,_0x1e7b8b,_0x59778a);let Se=class extends a['RxDisposable']{constructor(_0x29b880,_0x21f42b,_0x39472b,_0x305c2a,_0x14f739){const _0xc77e5=_0xcba175;super(),h(this,_0xc77e5(0x1b9),[]),h(this,'_cursors',[]),(this[_0xc77e5(0x3de)]=_0x29b880,this['_docSkeletonManagerService']=_0x21f42b,this[_0xc77e5(0x3c5)]=_0x39472b,this[_0xc77e5(0x1b0)]=_0x305c2a,this[_0xc77e5(0x337)]=_0x14f739,this['_init']());}[_0xcba175(0x322)](){const _0x55f1eb=_0xcba175,_0x5a41de=this[_0x55f1eb(0x3de)][_0x55f1eb(0x17b)],_0x17353a=this[_0x55f1eb(0x3bc)];this[_0x55f1eb(0x369)](I[_0x55f1eb(0x211)]([this[_0x55f1eb(0x3c5)][_0x55f1eb(0x3cb)](_0x5a41de),this[_0x55f1eb(0x337)][_0x55f1eb(0x2bb)]])[_0x55f1eb(0x247)]($[_0x55f1eb(0x2d9)](([_0xcece65,_0x3d8abd])=>({'skeleton':_0x17353a[_0x55f1eb(0x179)](),'cursors':[..._0xcece65['values']()][_0x55f1eb(0x383)](_0x411403=>({..._0x411403,'color':this[_0x55f1eb(0x337)][_0x55f1eb(0x38c)](_0x411403[_0x55f1eb(0x28b)])}))})))[_0x55f1eb(0x37c)](_0x1ce3d9=>{const _0x4fe9d6=_0x55f1eb;if(this['_removeCollabCursors'](),_0x1ce3d9){const {skeleton:_0x15d10b,cursors:_0xe770bc}=_0x1ce3d9;this[_0x4fe9d6(0x359)](_0x15d10b,_0xe770bc);}})),this[_0x55f1eb(0x3cf)](),this[_0x55f1eb(0x2c8)]();}[_0xcba175(0x359)](_0x41b49f,_0x51ff64){const _0x184823=_0xcba175,{scene:_0x3cf014,mainComponent:_0x215ea8}=this['_context'],_0x1d79af=_0x51ff64[_0x184823(0x2d9)](_0x270cd8=>new be(_0x270cd8,_0x3cf014,_0x41b49f,_0x215ea8));this[_0x184823(0x1b9)]=_0x1d79af,this[_0x184823(0x253)]=_0x51ff64;}[_0xcba175(0x3fb)](){const _0x51b2cb=_0xcba175;this[_0x51b2cb(0x25f)]();const {scene:_0x5381c6,mainComponent:_0x18db2e}=this[_0x51b2cb(0x3de)],_0x3ce000=this['_docSkeletonManagerService']['getSkeleton'](),_0x25614b=this[_0x51b2cb(0x253)][_0x51b2cb(0x2d9)](_0x2e4ebf=>new be(_0x2e4ebf,_0x5381c6,_0x3ce000,_0x18db2e));this[_0x51b2cb(0x1b9)]=_0x25614b;}['_removeCollabCursors'](){const _0x52a9d7=_0xcba175;this[_0x52a9d7(0x1b9)][_0x52a9d7(0x1fc)](_0x41633f=>_0x41633f[_0x52a9d7(0x24c)]()),this[_0x52a9d7(0x1b9)]=[];}[_0xcba175(0x2c8)](){const _0x146894=_0xcba175,_0x5a6252=[T['SetDocZoomRatioOperation']['id']];this[_0x146894(0x369)](this[_0x146894(0x1b0)][_0x146894(0x1da)](_0x574494=>{const _0x4fea0b=_0x146894;_0x5a6252[_0x4fea0b(0x360)](_0x574494['id'])&&_0x574494[_0x4fea0b(0x2b9)][_0x4fea0b(0x17b)]===this[_0x4fea0b(0x3de)][_0x4fea0b(0x17b)]&&this[_0x4fea0b(0x3fb)]();}));}[_0xcba175(0x3cf)](){const _0x118056=_0xcba175;this[_0x118056(0x369)](a[_0x118056(0x202)](this['_context'][_0x118056(0x3ef)][_0x118056(0x1d2)])[_0x118056(0x247)]($[_0x118056(0x2a4)](_0x332397=>_0x332397['type']===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x118056(0x269)](0x10))[_0x118056(0x37c)](()=>{const _0x17b34c=_0x118056;this[_0x17b34c(0x3fb)]();}));}};Se=Ut([X(0x1,a['Inject'](Y[_0xcba175(0x2e8)])),X(0x2,a[_0xcba175(0x27e)](x)),X(0x3,a[_0xcba175(0x255)]),X(0x4,a[_0xcba175(0x27e)](a[_0xcba175(0x392)]))],Se);const Mt=0x1,Lt=1.5;class $e extends C[_0xcba175(0x2d1)]{constructor(_0x4eedd7,_0x4c97e3){const _0x54ae6d=_0xcba175;super(_0x4eedd7,_0x4c97e3),h(this,_0x54ae6d(0x275)),h(this,_0x54ae6d(0x1e2),!0x1),h(this,_0x54ae6d(0x366)),h(this,_0x54ae6d(0x2b7),''),h(this,_0x54ae6d(0x36e),'top'),h(this,_0x54ae6d(0x1c4)),(_0x4c97e3&&this[_0x54ae6d(0x2a3)](_0x4c97e3),this[_0x54ae6d(0x33e)][_0x54ae6d(0x2f4)](()=>this[_0x54ae6d(0x2a3)]({'hovered':!0x0})),this[_0x54ae6d(0x18d)][_0x54ae6d(0x2f4)](()=>this[_0x54ae6d(0x2a3)]({'hovered':!0x1})));}[_0xcba175(0x2a3)](_0x4a3ea0){const _0x7713c=_0xcba175;var _0x38f5cd,_0x9467dd,_0x1cee9f,_0x1a2609,_0x2df769,_0x3f5e59;this['_color']=(_0x38f5cd=_0x4a3ea0[_0x7713c(0x28b)])!=null?_0x38f5cd:this[_0x7713c(0x275)],this[_0x7713c(0x1e2)]=(_0x9467dd=_0x4a3ea0['hovered'])!=null?_0x9467dd:this[_0x7713c(0x1e2)],this['_range']=(_0x1cee9f=_0x4a3ea0['range'])!=null?_0x1cee9f:this[_0x7713c(0x366)],this[_0x7713c(0x2b7)]=(_0x1a2609=_0x4a3ea0[_0x7713c(0x2ed)])!=null?_0x1a2609:this[_0x7713c(0x2b7)],this['_labelPosition']=(_0x2df769=_0x4a3ea0['labelPosition'])!=null?_0x2df769:this[_0x7713c(0x36e)],this[_0x7713c(0x1c4)]=(_0x3f5e59=_0x4a3ea0['backgroundColor'])!=null?_0x3f5e59:this['_backgroundColor'],this[_0x7713c(0x1af)]({'width':_0x4a3ea0[_0x7713c(0x25c)],'height':_0x4a3ea0[_0x7713c(0x1e0)]});}[_0xcba175(0x184)](_0x539232){const _0x18af07=_0xcba175,{row:_0x2946a8,column:_0x11be49}=_0x539232;if(_0x2946a8>=this[_0x18af07(0x366)][_0x18af07(0x3a5)]&&_0x2946a8<=this[_0x18af07(0x366)][_0x18af07(0x262)]&&_0x11be49>=this[_0x18af07(0x366)]['startColumn']&&_0x11be49<=this[_0x18af07(0x366)][_0x18af07(0x245)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x18af07(0x2a3)]({'hovered':!0x1});}[_0xcba175(0x2a0)](_0x58776f){return!0x1;}[_0xcba175(0x38d)](_0x1a4134){const _0x3e1556=_0xcba175;C[_0x3e1556(0x375)][_0x3e1556(0x3cd)](_0x1a4134,{'width':this['width'],'height':this[_0x3e1556(0x1e0)],'strokeWidth':Lt,'stroke':this[_0x3e1556(0x275)],'evented':!0x1,'fill':this[_0x3e1556(0x1c4)]}),this[_0x3e1556(0x1e2)]&&(_0x1a4134[_0x3e1556(0x2c4)](),_0x1a4134[_0x3e1556(0x259)](0x1,0x0,0x0,0x1,this[_0x3e1556(0x25c)],this[_0x3e1556(0x36e)]==='bottom'?0x0:-W),ee[_0x3e1556(0x3cd)](_0x1a4134,{'text':this[_0x3e1556(0x2b7)],'color':this[_0x3e1556(0x275)]}),_0x1a4134[_0x3e1556(0x3b2)]());}}var At=Object[_0xcba175(0x1a8)],Pt=(_0x22dcdf,_0x56e79d,_0x9764d9,_0xf527c1)=>{const _0x3fa5c6=_0xcba175;for(var _0x573988=_0xf527c1>0x1?void 0x0:_0xf527c1?At(_0x56e79d,_0x9764d9):_0x56e79d,_0x10be63=_0x22dcdf[_0x3fa5c6(0x193)]-0x1,_0x855ef6;_0x10be63>=0x0;_0x10be63--)(_0x855ef6=_0x22dcdf[_0x10be63])&&(_0x573988=_0x855ef6(_0x573988)||_0x573988);return _0x573988;},ae=(_0x21923b,_0x282927)=>(_0x382c1f,_0x367038)=>_0x282927(_0x382c1f,_0x367038,_0x21923b);const wt=0x1389;let fe=class extends a[_0xcba175(0x39f)]{constructor(_0x8a5573,_0x3cd178,_0x372aa0,_0x339f4a){const _0x44347e=_0xcba175;super(),h(this,_0x44347e(0x253),new Set()),h(this,_0x44347e(0x1d1),null),(this['_context']=_0x8a5573,this[_0x44347e(0x396)]=_0x3cd178,this[_0x44347e(0x3c5)]=_0x372aa0,this['_themeService']=_0x339f4a,this['_init']());}[_0xcba175(0x322)](){const _0x57571a=_0xcba175;this[_0x57571a(0x396)][_0x57571a(0x1c3)]['pipe']($[_0x57571a(0x206)](this['dispose$']),$[_0x57571a(0x29f)](_0x32db1b=>{const _0x46526a=_0x57571a;if(_0x32db1b){const _0x503c96=_0x32db1b[_0x46526a(0x30e)];return I['combineLatest'](this['_collabCursorController'][_0x46526a(0x3cb)](this[_0x46526a(0x3de)][_0x46526a(0x17b)]),this['_themeService'][_0x46526a(0x2bb)])[_0x46526a(0x247)]($[_0x46526a(0x2d9)](([_0x265bba,_0x1a9219])=>{const _0x322a15=_0x46526a,_0x534b29=new Map();return _0x265bba[_0x322a15(0x1fc)]((_0x420737,_0x580710)=>{const _0x1e7b6b=_0x322a15;if(_0x420737['sheetID']===_0x503c96){const _0xf32699={..._0x420737};_0xf32699[_0x1e7b6b(0x28b)]=this[_0x1e7b6b(0x337)][_0x1e7b6b(0x38c)](_0x420737[_0x1e7b6b(0x28b)]),_0x534b29['set'](_0x580710,_0xf32699);}}),{'skeleton':_0x32db1b,'cursors':_0x534b29};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xb788bb,cursors:_0x3c6274})=>{const _0x11bd25=_0x57571a;this[_0x11bd25(0x25f)](),_0xb788bb&&this[_0x11bd25(0x359)](_0xb788bb,_0x3c6274);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x16aad4=>{const _0x24b35d=_0x57571a;if(_0x16aad4==null)return;const {skeleton:_0x3c8ebc}=_0x16aad4,{scene:_0x1b104d}=this[_0x24b35d(0x3de)];_0x1b104d[_0x24b35d(0x271)][_0x24b35d(0x2f4)](a[_0x24b35d(0x3ce)](_0x1f5d35=>{const _0x1f481e=_0x24b35d;var _0x1f1857,_0x381fd4;const {offsetX:_0x106816,offsetY:_0x2b2fa9}=_0x1f5d35,{x:_0x13be1f,y:_0x3b440d}=_0x1b104d[_0x1f481e(0x1e6)](C[_0x1f481e(0x371)][_0x1f481e(0x394)]([_0x106816,_0x2b2fa9])),{scaleX:_0x9cbd95,scaleY:_0x278179}=_0x1b104d['getAncestorScale'](),_0x214520=_0x1b104d[_0x1f481e(0x220)](C[_0x1f481e(0x39b)][_0x1f481e(0x1ae)]),_0x3fede4=_0x1b104d[_0x1f481e(0x223)](C['Vector2']['FromArray']([_0x13be1f,_0x3b440d]),_0x214520),_0x40f39d=_0x3c8ebc[_0x1f481e(0x199)](_0x106816,_0x2b2fa9,_0x9cbd95,_0x278179,_0x3fede4);((_0x1f1857=this[_0x1f481e(0x1d1)])==null?void 0x0:_0x1f1857[_0x1f481e(0x379)])===_0x40f39d[_0x1f481e(0x379)]&&((_0x381fd4=this['_lastPointer'])==null?void 0x0:_0x381fd4[_0x1f481e(0x21d)])===_0x40f39d['row']||this[_0x1f481e(0x253)]['forEach'](_0x589332=>{const _0x3f0aca=_0x1f481e;_0x589332[_0x3f0aca(0x184)](_0x40f39d);});},0x64));});}[_0xcba175(0x359)](_0x331346,_0x1ab3e4){const _0x1a47b2=_0xcba175;var _0x2b811b;const _0x4f897a=(_0x2b811b=this[_0x1a47b2(0x396)]['getCurrent']())==null?void 0x0:_0x2b811b['skeleton'];if(!_0x4f897a)return;const _0x434e19=this[_0x1a47b2(0x22f)]();if(!_0x434e19)return;this[_0x1a47b2(0x253)][_0x1a47b2(0x1fc)](_0x2ccf47=>{const _0x47ae66=_0x1a47b2;_0x2ccf47[_0x47ae66(0x2b3)]();});const {scene:_0x4bbdde}=_0x434e19,_0x3f8d10=yt(Array[_0x1a47b2(0x2cd)](_0x1ab3e4[_0x1a47b2(0x272)]()))[_0x1a47b2(0x2d9)](_0x3e8827=>{const _0x674b67=_0x1a47b2,{color:_0x4f44f3,range:_0x4824a1,name:_0x5a652b,selection:_0xa0a0f9,sheetID:_0x8e70c6}=_0x3e8827,{startColumn:_0x233979,startRow:_0x3b68e0,endColumn:_0x420990,endRow:_0x367511}=_0x4824a1,_0x314788=G[_0x674b67(0x35c)](_0x3b68e0,_0x233979,_0x4bbdde,_0x4f897a),_0x10bdf1=G['getCoordByCell'](_0x367511,_0x420990,_0x4bbdde,_0x4f897a),{columnHeaderHeightAndMarginTop:_0x18eee5}=_0x4f897a,{startX:_0x428f77,startY:_0x347094}=_0x314788,{endX:_0x128fa4,endY:_0x30c703}=_0x10bdf1,_0x114f0f=_0x128fa4-_0x428f77,_0x58c7bf=_0x30c703-_0x347094,_0x448762={'labelPosition':_0x347094-_0x18eee5>=W?'top':_0x674b67(0x287),'sheetID':_0x8e70c6,'range':_0x4824a1,'color':_0x4f44f3,'name':_0x5a652b,'selection':_0xa0a0f9,'left':_0x428f77,'top':_0x347094,'width':_0x114f0f,'height':_0x58c7bf,'evented':!0x1,'zIndex':wt};return new $e(_0x5a652b,_0x448762);});_0x4bbdde['addObjects'](_0x3f8d10,Mt),this[_0x1a47b2(0x253)]=new Set(_0x3f8d10);}['_removeCollabCursors'](){const _0x453cdc=_0xcba175;var _0x4dba13;(_0x4dba13=this[_0x453cdc(0x253)])==null||_0x4dba13[_0x453cdc(0x1fc)](_0x119dff=>_0x119dff[_0x453cdc(0x24c)]());}[_0xcba175(0x22f)](){const _0x1145e1=_0xcba175;return G[_0x1145e1(0x1ab)](this[_0x1145e1(0x3de)]['unit'],this[_0x1145e1(0x3de)]);}};fe=Pt([ae(0x1,a[_0xcba175(0x27e)](G[_0xcba175(0x2ad)])),ae(0x2,a[_0xcba175(0x27e)](x)),ae(0x3,a['Inject'](a[_0xcba175(0x392)]))],fe);function _0x12c7(_0x45115a,_0x5a34a2){const _0x5767af=_0x5767();return _0x12c7=function(_0x12c750,_0x3c7063){_0x12c750=_0x12c750-0x173;let _0x19fde7=_0x5767af[_0x12c750];return _0x19fde7;},_0x12c7(_0x45115a,_0x5a34a2);}function yt(_0x5f36fe){const _0x4379d9=_0xcba175,_0x5d132d=new Map();return _0x5f36fe[_0x4379d9(0x1fc)](_0x5d9d18=>{const _0x5908db=_0x4379d9;if(_0x5d132d['has'](_0x5d9d18[_0x5908db(0x2d3)])){const _0x1851a3=_0x5d132d['get'](_0x5d9d18[_0x5908db(0x2d3)]);_0x1851a3[_0x5908db(0x2ed)]+=',\x20'+_0x5d9d18[_0x5908db(0x2ed)];}else _0x5d132d[_0x5908db(0x224)](_0x5d9d18[_0x5908db(0x2d3)],_0x5d9d18);}),Array[_0x4379d9(0x2cd)](_0x5d132d[_0x4379d9(0x272)]());}var $t=Object[_0xcba175(0x1a8)],xt=(_0x408f90,_0x201a55,_0xc8b535,_0x230bcc)=>{for(var _0x5ca633=_0x230bcc>0x1?void 0x0:_0x230bcc?$t(_0x201a55,_0xc8b535):_0x201a55,_0x420229=_0x408f90['length']-0x1,_0x1cceff;_0x420229>=0x0;_0x420229--)(_0x1cceff=_0x408f90[_0x420229])&&(_0x5ca633=_0x1cceff(_0x5ca633)||_0x5ca633);return _0x5ca633;},y=(_0x1e14c1,_0x467ebd)=>(_0x332249,_0x1588af)=>_0x467ebd(_0x332249,_0x1588af,_0x1e14c1);let q=class extends a[_0xcba175(0x1d7)]{constructor(_0x46b925,_0x54adec,_0x3884db,_0x942595,_0x26e28e,_0x141612){const _0x38af75=_0xcba175;super(),this['_beforeCloseService']=_0x46b925,this[_0x38af75(0x3c8)]=_0x54adec,this[_0x38af75(0x270)]=_0x3884db,this[_0x38af75(0x254)]=_0x942595,this['_notificationService']=_0x26e28e,this[_0x38af75(0x1a2)]=_0x141612,this[_0x38af75(0x198)](),this[_0x38af75(0x3d0)]();}[_0xcba175(0x198)](){const _0x10cda3=_0xcba175;this[_0x10cda3(0x369)](this[_0x10cda3(0x343)][_0x10cda3(0x1a6)](()=>{const _0x2bd7d1=_0x10cda3;if(this[_0x2bd7d1(0x3c8)][_0x2bd7d1(0x3aa)][_0x2bd7d1(0x23d)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x3c0a01=_0xcba175;this['disposeWithMe'](this[_0x3c0a01(0x270)][_0x3c0a01(0x32a)][_0x3c0a01(0x37c)](_0x1c969d=>{const _0x31ba9f=_0x3c0a01;_0x1c969d['id']===u[_0x31ba9f(0x1e1)]['OTHER_CLIENT_EDITING']&&this[_0x31ba9f(0x254)][_0x31ba9f(0x1e9)]({'type':D[_0x31ba9f(0x3dc)]['Warning'],'content':this[_0x31ba9f(0x1a2)]['t'](_0x31ba9f(0x3d4))}),_0x1c969d['id']===u[_0x31ba9f(0x1e1)]['CLOSE_ROOM']&&this[_0x31ba9f(0x254)][_0x31ba9f(0x1e9)]({'type':D['MessageType'][_0x31ba9f(0x23b)],'content':this[_0x31ba9f(0x1a2)]['t'](_0x31ba9f(0x36b))}),_0x1c969d['id']===u[_0x31ba9f(0x1e1)][_0x31ba9f(0x357)]&&this['_notificationService'][_0x31ba9f(0x1e9)]({'title':this['_localeService']['t'](_0x31ba9f(0x3d5)),'content':this[_0x31ba9f(0x1a2)]['t'](_0x31ba9f(0x274)),'type':_0x31ba9f(0x1f4),'duration':0x0}),_0x1c969d['id']===u['CollaborationUIEventId'][_0x31ba9f(0x1a3)]&&this['_messageService']['show']({'type':D['MessageType']['Error'],'content':this[_0x31ba9f(0x1a2)]['t'](_0x31ba9f(0x36b))+'('+_0x1c969d[_0x31ba9f(0x2c1)]+')'}),_0x1c969d['id']===u['CollaborationUIEventId'][_0x31ba9f(0x402)]&&this[_0x31ba9f(0x254)][_0x31ba9f(0x1e9)]({'type':D[_0x31ba9f(0x3dc)][_0x31ba9f(0x23b)],'content':this[_0x31ba9f(0x1a2)]['t'](_0x1c969d[_0x31ba9f(0x2c1)]||'')}),_0x1c969d['id']===u[_0x31ba9f(0x1e1)]['SOCKET_FAILED_RETRY']&&this[_0x31ba9f(0x254)]['show']({'type':D[_0x31ba9f(0x3dc)][_0x31ba9f(0x23b)],'content':this[_0x31ba9f(0x1a2)]['t'](_0x31ba9f(0x30b))}),_0x1c969d['id']===u[_0x31ba9f(0x1e1)]['SOCKET_FAILED']&&this[_0x31ba9f(0x254)]['show']({'type':D[_0x31ba9f(0x3dc)][_0x31ba9f(0x319)],'content':this['_localeService']['t'](_0x31ba9f(0x352))}),_0x1c969d['id']===u[_0x31ba9f(0x1e1)][_0x31ba9f(0x256)]&&this[_0x31ba9f(0x254)][_0x31ba9f(0x1e9)]({'type':D[_0x31ba9f(0x3dc)][_0x31ba9f(0x319)],'content':this[_0x31ba9f(0x1a2)]['t'](_0x31ba9f(0x37d))});}));}};q=xt([y(0x0,p[_0xcba175(0x3f3)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0xcba175(0x27e)](u[_0xcba175(0x228)])),y(0x3,p[_0xcba175(0x361)]),y(0x4,p[_0xcba175(0x1d4)]),y(0x5,a[_0xcba175(0x27e)](a[_0xcba175(0x1b4)]))],q);const Bt='collaboration-client-ui.config',De={};var jt=Object[_0xcba175(0x1a8)],kt=(_0x2fadef,_0x20556c,_0x15da86,_0x581edb)=>{for(var _0x532b34=_0x581edb>0x1?void 0x0:_0x581edb?jt(_0x20556c,_0x15da86):_0x20556c,_0x5619b0=_0x2fadef['length']-0x1,_0x29bbff;_0x5619b0>=0x0;_0x5619b0--)(_0x29bbff=_0x2fadef[_0x5619b0])&&(_0x532b34=_0x29bbff(_0x532b34)||_0x532b34);return _0x532b34;},Ne=(_0x4c9d4e,_0x1247fd)=>(_0x2d40cd,_0x35ff76)=>_0x1247fd(_0x2d40cd,_0x35ff76,_0x4c9d4e);let z=class{constructor(_0xc61665,_0x4728cb){const _0x4edea6=_0xcba175;this[_0x4edea6(0x296)]=_0xc61665,this[_0x4edea6(0x1b7)]=_0x4728cb;}[_0xcba175(0x35f)](_0x4fc94e){const _0x46806b=_0xcba175;this['_transformUndoRedoStack'](_0x4fc94e),this[_0x46806b(0x2cf)](_0x4fc94e);}[_0xcba175(0x3fd)](_0x13e414){const _0x3cc26e=_0xcba175,{unitID:_0x5aa4c6}=_0x13e414,_0x4c2168=this[_0x3cc26e(0x1b7)][_0x3cc26e(0x290)](_0x5aa4c6)[_0x3cc26e(0x266)](T['DocIMEInputManagerService']),{redoCache:_0x11b1cc}=_0x4c2168[_0x3cc26e(0x19f)]();if(_0x11b1cc[_0x3cc26e(0x193)]===0x0)return _0x13e414;let _0x5c0314=a['Tools']['deepClone'](_0x13e414[_0x3cc26e(0x2e2)][0x0]);for(let _0x18ce43=0x0;_0x18ce43<_0x11b1cc[_0x3cc26e(0x193)];_0x18ce43++){const _0x5c8fb8={'id':_0x3cc26e(0x189),'params':{..._0x11b1cc[_0x18ce43]}},_0x4459f2=this[_0x3cc26e(0x296)][_0x3cc26e(0x2ce)](_0x5c0314,_0x5c8fb8,!0x1);if(E[_0x3cc26e(0x1fa)](_0x4459f2))throw _0x4459f2[_0x3cc26e(0x1f4)];_0x5c0314=_0x4459f2['m1Prime'];}return{...a[_0x3cc26e(0x29d)]['deepClone'](_0x13e414),'mutations':[_0x5c0314]};}[_0xcba175(0x3a3)](_0x501794){const _0x26cbce=_0xcba175,{unitID:_0x12a75c}=_0x501794,_0x59e4c0=this[_0x26cbce(0x1b7)][_0x26cbce(0x290)](_0x12a75c)[_0x26cbce(0x266)](T[_0x26cbce(0x1dc)]),{undoCache:_0x520c1b,redoCache:_0x554701}=_0x59e4c0[_0x26cbce(0x19f)]();if(_0x520c1b[_0x26cbce(0x193)]===0x0||_0x554701[_0x26cbce(0x193)]===0x0)return;const _0x133ebe=[],_0x551d51=[];let _0x39f6b5=a[_0x26cbce(0x29d)][_0x26cbce(0x19c)](_0x501794[_0x26cbce(0x2e2)][0x0]),_0x42b8d7=a[_0x26cbce(0x29d)][_0x26cbce(0x19c)](_0x501794['mutations'][0x0]);for(let _0x1e131c=_0x520c1b['length']-0x1;_0x1e131c>=0x0;_0x1e131c--){const _0x5766f8={'id':'doc.mutation.rich-text-editing','params':{..._0x520c1b[_0x1e131c]}},_0x2f36ff={'id':_0x26cbce(0x189),'params':{..._0x554701[_0x1e131c]}},_0x28ef62=this['_transformService'][_0x26cbce(0x2ce)](_0x39f6b5,_0x5766f8,!0x1),_0x5122c3=this['_transformService']['transformMutation'](_0x42b8d7,_0x2f36ff,!0x1);if(E[_0x26cbce(0x1fa)](_0x28ef62))throw _0x28ef62[_0x26cbce(0x1f4)];if(E['isTransformMutationFailure'](_0x5122c3))throw _0x5122c3[_0x26cbce(0x1f4)];_0x133ebe[_0x26cbce(0x258)](_0x28ef62[_0x26cbce(0x231)][_0x26cbce(0x2b9)]),_0x551d51[_0x26cbce(0x258)](_0x5122c3[_0x26cbce(0x231)]['params']),_0x39f6b5=_0x28ef62['m1Prime'],_0x42b8d7=_0x5122c3[_0x26cbce(0x3ae)];}_0x59e4c0[_0x26cbce(0x332)]({'undoCache':_0x133ebe,'redoCache':_0x551d51});}[_0xcba175(0x2cf)](_0x681781){const _0x3f40ad=_0xcba175,{unitID:_0xdc31e8}=_0x681781,_0x1f0ca5=this['_renderManagerService'][_0x3f40ad(0x290)](_0xdc31e8)[_0x3f40ad(0x266)](T[_0x3f40ad(0x1dc)]),_0x1f6698=_0x1f0ca5[_0x3f40ad(0x2c2)]();if(_0x1f6698==null)return;const _0x9639cf=[{'id':_0x3f40ad(0x189),'params':{'unitId':_0x681781[_0x3f40ad(0x344)],'actions':null,'textRanges':[_0x1f6698]}}],_0x476e5b=this['_transformService']['transformMutationsWithChangeset'](_0x681781,_0x9639cf);if(!E[_0x3f40ad(0x3e5)](_0x476e5b))throw _0x476e5b['error'];const _0x351530=_0x476e5b[_0x3f40ad(0x231)][0x0][_0x3f40ad(0x2b9)][_0x3f40ad(0x218)];Array[_0x3f40ad(0x306)](_0x351530)&&_0x351530[_0x3f40ad(0x193)]&&_0x1f0ca5[_0x3f40ad(0x30c)](_0x351530[0x0]);}};z=kt([Ne(0x0,E['ITransformService']),Ne(0x1,C['IRenderManagerService'])],z);var Ft=Object[_0xcba175(0x1a8)],Ht=(_0x4bf845,_0x3f0e18,_0x2d8e3b,_0x1b8c34)=>{const _0x53a36a=_0xcba175;for(var _0x5b8e29=_0x1b8c34>0x1?void 0x0:_0x1b8c34?Ft(_0x3f0e18,_0x2d8e3b):_0x3f0e18,_0x33c0cb=_0x4bf845[_0x53a36a(0x193)]-0x1,_0x311088;_0x33c0cb>=0x0;_0x33c0cb--)(_0x311088=_0x4bf845[_0x33c0cb])&&(_0x5b8e29=_0x311088(_0x5b8e29)||_0x5b8e29);return _0x5b8e29;},ce=(_0x1cb4f3,_0x4ce6eb)=>(_0x11f254,_0x38f2c3)=>_0x4ce6eb(_0x11f254,_0x38f2c3,_0x1cb4f3);let Z=class{constructor(_0x164886,_0x49a247,_0x3155a9){const _0x44bff6=_0xcba175;this['_injector']=_0x164886,this[_0x44bff6(0x296)]=_0x49a247,this['_docStateChangeManagerService']=_0x3155a9;}[_0xcba175(0x302)](_0x5656e0){const _0xbc0c6e=_0xcba175;this[_0xbc0c6e(0x1b2)](_0x5656e0);}[_0xcba175(0x3fd)](_0x1c463a){const _0x5a3c85=_0xcba175,{unitID:_0xc98a81}=_0x1c463a,{collaboration:_0x393685}=this[_0x5a3c85(0x370)][_0x5a3c85(0x2ba)](_0xc98a81);if(_0x393685[_0x5a3c85(0x193)]===0x0)return _0x1c463a;let _0x58476d=a[_0x5a3c85(0x29d)]['deepClone'](_0x1c463a['mutations'][0x0]);for(let _0x186322=0x0;_0x186322<_0x393685[_0x5a3c85(0x193)];_0x186322++){const _0x751102={'id':_0x5a3c85(0x189),'params':{'unitId':_0x393685[_0x186322][_0x5a3c85(0x17b)],..._0x393685[_0x186322][_0x5a3c85(0x3b4)]}},_0x448742=this[_0x5a3c85(0x296)][_0x5a3c85(0x2ce)](_0x58476d,_0x751102,!0x1);if(E['isTransformMutationFailure'](_0x448742))throw _0x448742[_0x5a3c85(0x1f4)];_0x58476d=_0x448742[_0x5a3c85(0x3ae)];}return{...a['Tools'][_0x5a3c85(0x19c)](_0x1c463a),'mutations':[_0x58476d]};}['_transformHistoryAndStateStack'](_0x44b73e){const _0x422139=_0xcba175,{unitID:_0x42f5a3}=_0x44b73e,{history:_0x1f6537,collaboration:_0x3e99ff}=this[_0x422139(0x370)]['getStateCache'](_0x42f5a3);if(_0x1f6537[_0x422139(0x193)]===0x0&&_0x3e99ff[_0x422139(0x193)]===0x0)return;const _0x2cfb45=[],_0x19caf5=[];let _0x43bb70=a[_0x422139(0x29d)][_0x422139(0x19c)](_0x44b73e[_0x422139(0x2e2)][0x0]),_0x13eaca=a[_0x422139(0x29d)][_0x422139(0x19c)](_0x44b73e[_0x422139(0x2e2)][0x0]);for(let _0x3fc016=_0x1f6537[_0x422139(0x193)]-0x1;_0x3fc016>=0x0;_0x3fc016--){const _0x5b80b3={'id':_0x422139(0x189),'params':{'unitId':_0x1f6537[_0x3fc016]['unitId'],..._0x1f6537[_0x3fc016]['undoState']}},_0x17440b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1f6537[_0x3fc016][_0x422139(0x17b)],..._0x1f6537[_0x3fc016][_0x422139(0x3b4)]}},_0x464b13=this['_transformService'][_0x422139(0x2ce)](_0x43bb70,_0x5b80b3,!0x1),_0x2bffde=this[_0x422139(0x296)]['transformMutation'](_0x13eaca,_0x17440b,!0x1);if(E['isTransformMutationFailure'](_0x464b13))throw _0x464b13[_0x422139(0x1f4)];if(E[_0x422139(0x1fa)](_0x2bffde))throw _0x2bffde[_0x422139(0x1f4)];_0x2cfb45[_0x422139(0x258)]({..._0x1f6537[_0x3fc016],'undoState':_0x464b13[_0x422139(0x231)][_0x422139(0x2b9)],'redoState':_0x2bffde[_0x422139(0x231)][_0x422139(0x2b9)]}),_0x43bb70=_0x464b13[_0x422139(0x3ae)],_0x13eaca=_0x2bffde[_0x422139(0x3ae)];}_0x43bb70=a[_0x422139(0x29d)]['deepClone'](_0x44b73e['mutations'][0x0]),_0x13eaca=a['Tools'][_0x422139(0x19c)](_0x44b73e[_0x422139(0x2e2)][0x0]);for(let _0x42dc6f=_0x3e99ff['length']-0x1;_0x42dc6f>=0x0;_0x42dc6f--){const _0xdeb8eb={'id':_0x422139(0x189),'params':{'unitId':_0x3e99ff[_0x42dc6f][_0x422139(0x17b)],..._0x3e99ff[_0x42dc6f][_0x422139(0x3e7)]}},_0x2625fd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3e99ff[_0x42dc6f][_0x422139(0x17b)],..._0x3e99ff[_0x42dc6f]['redoState']}},_0x2c3791=this[_0x422139(0x296)]['transformMutation'](_0x43bb70,_0xdeb8eb,!0x1),_0x2e1205=this['_transformService'][_0x422139(0x2ce)](_0x13eaca,_0x2625fd,!0x1);if(E['isTransformMutationFailure'](_0x2c3791))throw _0x2c3791[_0x422139(0x1f4)];if(E['isTransformMutationFailure'](_0x2e1205))throw _0x2e1205[_0x422139(0x1f4)];_0x19caf5[_0x422139(0x258)]({..._0x3e99ff[_0x42dc6f],'undoState':_0x2c3791[_0x422139(0x231)]['params'],'redoState':_0x2e1205[_0x422139(0x231)]['params']}),_0x43bb70=_0x2c3791[_0x422139(0x3ae)],_0x13eaca=_0x2e1205[_0x422139(0x3ae)];}this[_0x422139(0x370)][_0x422139(0x298)](_0x42f5a3,{'history':_0x2cfb45,'collaboration':_0x19caf5});}};Z=Ht([ce(0x0,a[_0xcba175(0x27e)](a[_0xcba175(0x2ef)])),ce(0x1,E[_0xcba175(0x235)]),ce(0x2,a[_0xcba175(0x27e)](T[_0xcba175(0x17e)]))],Z);var Yt=Object[_0xcba175(0x1a8)],Wt=(_0x5b8c01,_0x2a08f0,_0x4969e7,_0x36712b)=>{for(var _0x42d39a=_0x36712b>0x1?void 0x0:_0x36712b?Yt(_0x2a08f0,_0x4969e7):_0x2a08f0,_0x4306fc=_0x5b8c01['length']-0x1,_0x4200ac;_0x4306fc>=0x0;_0x4306fc--)(_0x4200ac=_0x5b8c01[_0x4306fc])&&(_0x42d39a=_0x4200ac(_0x42d39a)||_0x42d39a);return _0x42d39a;},Ue=(_0x4d5cd1,_0x132598)=>(_0x2e3add,_0x11e589)=>_0x132598(_0x2e3add,_0x11e589,_0x4d5cd1);let J=class{constructor(_0x20d1ee,_0x591b67){const _0x2c6948=_0xcba175;this[_0x2c6948(0x3f5)]=_0x20d1ee,this[_0x2c6948(0x296)]=_0x591b67;}['transformSelections'](_0x280bfd){const _0x4de9ea=_0xcba175;var _0x307143;const _0x59889a=this[_0x4de9ea(0x3f5)][_0x4de9ea(0x1ec)](Y[_0x4de9ea(0x3c6)]),_0x14791e=(_0x307143=_0x59889a['getDocRanges']())!=null?_0x307143:[];if(_0x14791e['length']===0x0)return;const _0x57c1e9=_0x280bfd[_0x4de9ea(0x344)],_0x21e9be=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57c1e9,'actions':null,'textRanges':_0x14791e}}],_0x263c0d=this[_0x4de9ea(0x296)]['transformMutationsWithChangeset'](_0x280bfd,_0x21e9be);if(!E['isTransformMutationsWithChangesetSuccess'](_0x263c0d))throw _0x263c0d['error'];const _0x2d41a1=_0x263c0d[_0x4de9ea(0x231)][0x0]['params'][_0x4de9ea(0x218)];Array[_0x4de9ea(0x306)](_0x2d41a1)&&_0x2d41a1[_0x4de9ea(0x193)]&&_0x59889a['replaceDocRanges'](_0x2d41a1,{'unitId':_0x57c1e9,'subUnitId':_0x57c1e9},!0x1);}};J=Wt([Ue(0x0,a[_0xcba175(0x27e)](a[_0xcba175(0x2ef)])),Ue(0x1,E[_0xcba175(0x235)])],J);var Vt=Object[_0xcba175(0x1a8)],Xt=(_0x407dca,_0xe30ba9,_0x4ee2b2,_0x5d429c)=>{for(var _0x30cb9e=_0x5d429c>0x1?void 0x0:_0x5d429c?Vt(_0xe30ba9,_0x4ee2b2):_0xe30ba9,_0x4969d2=_0x407dca['length']-0x1,_0x28daa2;_0x4969d2>=0x0;_0x4969d2--)(_0x28daa2=_0x407dca[_0x4969d2])&&(_0x30cb9e=_0x28daa2(_0x30cb9e)||_0x30cb9e);return _0x30cb9e;},U=(_0x5e236b,_0x4204c7)=>(_0xbde0c4,_0x1b3fe1)=>_0x4204c7(_0xbde0c4,_0x1b3fe1,_0x5e236b);let Q=class extends a[_0xcba175(0x1d7)]{constructor(_0x308847,_0x18e58d,_0x479543,_0x365a14,_0x202891,_0x153730,_0x3aa365,_0x9dfed7){const _0x269645=_0xcba175;super(),h(this,'_status$',new I['BehaviorSubject'](u[_0x269645(0x3a1)][_0x269645(0x28f)])),(this[_0x269645(0x370)]=_0x308847,this['_collaborationController']=_0x18e58d,this['_docTransformIMECacheService']=_0x479543,this['_docTransformStateCacheService']=_0x365a14,this[_0x269645(0x3ca)]=_0x202891,this[_0x269645(0x318)]=_0x153730,this[_0x269645(0x254)]=_0x3aa365,this['_localeService']=_0x9dfed7,this[_0x269645(0x3e3)]());}[_0xcba175(0x3e3)](){const _0x5956b8=_0xcba175;this['disposeWithMe'](this[_0x5956b8(0x2b1)][_0x5956b8(0x3e4)][_0x5956b8(0x37c)](_0x5b4221=>{const _0x4b4fba=_0x5956b8,_0x2d66ae=this[_0x4b4fba(0x370)]['docStateChange$'][_0x4b4fba(0x37c)](_0x587991=>{const _0x5abe32=_0x4b4fba;if(_0x587991==null)return;const {unitId:_0x3c19ff,redoState:_0x2af401,commandId:_0x64d621}=_0x587991;if(_0x3c19ff!==_0x5b4221['unitID'])return;const _0x21f9c7={'id':_0x64d621,'type':a[_0x5abe32(0x34a)][_0x5abe32(0x205)],'params':{'unitId':_0x3c19ff,'actions':_0x2af401[_0x5abe32(0x2a2)],'textRanges':null}};_0x5b4221[_0x5abe32(0x3fc)](_0x21f9c7);});if(_0x5b4221[_0x4b4fba(0x369)](_0x2d66ae),_0x5b4221 instanceof u['DocCollaborationEntity']){const _0x45f764={'onTransformIME':_0x340aec=>this['_docTransformIMECacheService'][_0x4b4fba(0x35f)](_0x340aec),'onTransformState':_0x55f4aa=>this[_0x4b4fba(0x265)][_0x4b4fba(0x302)](_0x55f4aa),'onTransformSelections':_0x1dd2b3=>this[_0x4b4fba(0x3ca)][_0x4b4fba(0x2be)](_0x1dd2b3),'onSyncEditingCollabCursor':_0x25a5f8=>this[_0x4b4fba(0x318)][_0x4b4fba(0x175)](_0x25a5f8),'onTransformRemoteChangesetByIMECache':_0x2ab6d4=>this[_0x4b4fba(0x257)][_0x4b4fba(0x3fd)](_0x2ab6d4),'onTransformRemoteChangesetByStateCache':_0x2219f7=>this[_0x4b4fba(0x265)][_0x4b4fba(0x3fd)](_0x2219f7)};_0x5b4221['addHandlerCallback'](_0x45f764);}}));}};Q=Xt([U(0x0,a[_0xcba175(0x27e)](T[_0xcba175(0x17e)])),U(0x1,a['Inject'](u[_0xcba175(0x363)])),U(0x2,a['Inject'](z)),U(0x3,a[_0xcba175(0x27e)](Z)),U(0x4,a[_0xcba175(0x27e)](J)),U(0x5,a[_0xcba175(0x27e)](Ce)),U(0x6,p[_0xcba175(0x361)]),U(0x7,a[_0xcba175(0x27e)](a[_0xcba175(0x1b4)]))],Q);var Gt=Object[_0xcba175(0x1a8)],Kt=(_0x2f8d23,_0xff1f90,_0x5c93f7,_0x30ff57)=>{const _0xdab7f9=_0xcba175;for(var _0x5b248e=_0x30ff57>0x1?void 0x0:_0x30ff57?Gt(_0xff1f90,_0x5c93f7):_0xff1f90,_0x5c171a=_0x2f8d23[_0xdab7f9(0x193)]-0x1,_0x25410e;_0x5c171a>=0x0;_0x5c171a--)(_0x25410e=_0x2f8d23[_0x5c171a])&&(_0x5b248e=_0x25410e(_0x5b248e)||_0x5b248e);return _0x5b248e;},le=(_0xdb78e7,_0x2513aa)=>(_0x4aedbe,_0x571457)=>_0x2513aa(_0x4aedbe,_0x571457,_0xdb78e7);let ve=class extends a['Disposable']{constructor(_0xf607e4,_0x54c54c,_0x22fa64){const _0x16ca83=_0xcba175;super(),h(this,_0x16ca83(0x23e),new Map()),h(this,_0x16ca83(0x210),new Map()),h(this,'_disabled',!0x1),(this[_0x16ca83(0x390)]=_0xf607e4,this[_0x16ca83(0x1df)]=_0x54c54c,this[_0x16ca83(0x2f3)]=_0x22fa64);}[_0xcba175(0x388)](){const _0x43a953=_0xcba175;this[_0x43a953(0x22b)]=!0x0;}[_0xcba175(0x2ec)](){this['_disabled']=!0x1;}get[_0xcba175(0x3aa)](){const _0x1f90d0=_0xcba175;return this[_0x1f90d0(0x210)];}[_0xcba175(0x24c)](){const _0x4d976a=_0xcba175;this[_0x4d976a(0x18c)]()[_0x4d976a(0x3b0)](()=>super[_0x4d976a(0x24c)]());}async[_0xcba175(0x3e1)](_0x1074d7){const _0x132fe8=_0xcba175;return this[_0x132fe8(0x22b)]?null:this[_0x132fe8(0x1df)][_0x132fe8(0x376)](u[_0x132fe8(0x1aa)](_0x1074d7));}async[_0xcba175(0x324)](_0x2d4bed,_0x3bc09c){const _0x4d87e5=_0xcba175;return!!this[_0x4d87e5(0x1df)][_0x4d87e5(0x1ce)](_0x2d4bed,_0x3bc09c);}[_0xcba175(0x1d8)](_0x3d4d39,_0x4babc0,_0x5e6d9f,_0x13e741){const _0x254ea8=_0xcba175,_0x57feb6=this[_0x254ea8(0x2f3)][_0x254ea8(0x20f)](_0x3d4d39);this['_cachedData'][_0x254ea8(0x224)](_0x3d4d39,{'unitID':_0x3d4d39,'type':_0x4babc0,'awaitingChangeset':_0x5e6d9f,'mutations':_0x13e741,'rev':_0x57feb6}),this[_0x254ea8(0x210)]['has'](_0x3d4d39)||this[_0x254ea8(0x1f8)](_0x3d4d39);}['_scheduleSaving'](_0x3dfa1c){const _0x343c26=_0xcba175,_0x56cc53=this[_0x343c26(0x28a)]();_0x56cc53===0x0?this['_saveCache'](_0x3dfa1c):this[_0x343c26(0x210)][_0x343c26(0x224)](_0x3dfa1c,setTimeout(()=>this['_saveCache'](_0x3dfa1c),_0x56cc53));}[_0xcba175(0x28a)](){const _0x5e5d44=_0xcba175;var _0x2b1592;return(_0x2b1592=this[_0x5e5d44(0x390)][_0x5e5d44(0x1e3)](u[_0x5e5d44(0x34f)]))!=null?_0x2b1592:u[_0x5e5d44(0x2fd)];}[_0xcba175(0x35a)](_0xfd00c2){const _0x61d1ca=_0xcba175,_0x63083=this[_0x61d1ca(0x210)][_0x61d1ca(0x1ec)](_0xfd00c2);return _0x63083!==void 0x0&&window[_0x61d1ca(0x3b9)](_0x63083),this['_localStorageService'][_0x61d1ca(0x1ce)](u['getLocalCacheKey'](_0xfd00c2),this[_0x61d1ca(0x23e)][_0x61d1ca(0x1ec)](_0xfd00c2))[_0x61d1ca(0x3b0)](()=>this[_0x61d1ca(0x210)][_0x61d1ca(0x2c7)](_0xfd00c2));}async[_0xcba175(0x18c)](){const _0x4bb9bc=_0xcba175,_0xdc1375=[];this[_0x4bb9bc(0x210)][_0x4bb9bc(0x1fc)]((_0x37b1a5,_0x7504e7)=>{const _0x2e4b89=_0x4bb9bc;window['clearTimeout'](_0x37b1a5),_0xdc1375[_0x2e4b89(0x278)](this['_saveCache'](_0x7504e7)[_0x2e4b89(0x3b0)](()=>{this['_saveTaskMap']['delete'](_0x7504e7);}));}),await Promise['all'](_0xdc1375);}};ve=Kt([le(0x0,a[_0xcba175(0x2f9)]),le(0x1,a[_0xcba175(0x2dc)]),le(0x2,a[_0xcba175(0x27e)](E[_0xcba175(0x2ae)]))],ve);class xe extends a[_0xcba175(0x39f)]{constructor(){const _0x2d0ac3=_0xcba175;super(),h(this,'urlChange$'),this[_0x2d0ac3(0x1d0)]=I['fromEvent'](window,_0x2d0ac3(0x3ec))[_0x2d0ac3(0x247)](I[_0x2d0ac3(0x206)](this[_0x2d0ac3(0x382)]),I[_0x2d0ac3(0x374)](0x1),I[_0x2d0ac3(0x3f9)](void 0x0));}[_0xcba175(0x3c1)](_0x288b49,_0x240a4e,_0x3458d9=!0x1){const _0x1e54ed=_0xcba175,_0x530336=new URL(window[_0x1e54ed(0x2c6)][_0x1e54ed(0x1c9)]);_0x530336['searchParams'][_0x1e54ed(0x224)](_0x288b49,_0x240a4e),_0x3458d9?window[_0x1e54ed(0x30d)]['replaceState']('','',_0x530336[_0x1e54ed(0x29b)]()):window[_0x1e54ed(0x30d)][_0x1e54ed(0x26e)]('','',_0x530336[_0x1e54ed(0x29b)]());}[_0xcba175(0x3a4)](_0x376a36,_0x5acf63=!0x1){const _0x48367d=_0xcba175,_0x55e200=new URL(window[_0x48367d(0x2c6)]['href']);_0x55e200[_0x48367d(0x3e9)][_0x48367d(0x2c7)](_0x376a36),_0x5acf63?window[_0x48367d(0x30d)]['replaceState']('','',_0x55e200[_0x48367d(0x29b)]()):window[_0x48367d(0x30d)][_0x48367d(0x26e)]('','',_0x55e200[_0x48367d(0x29b)]());}[_0xcba175(0x400)](_0x1274dd){const _0x3c455e=_0xcba175;var _0x6c955;return(_0x6c955=new URL(window[_0x3c455e(0x2c6)][_0x3c455e(0x1c9)])[_0x3c455e(0x3e9)][_0x3c455e(0x1ec)](_0x1274dd))!=null?_0x6c955:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0xcba175(0x1a8)],Zt=(_0x20ede3,_0x202e84,_0x521809)=>_0x202e84 in _0x20ede3?qt(_0x20ede3,_0x202e84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x521809}):_0x20ede3[_0x202e84]=_0x521809,Jt=(_0x3252c2,_0x43de9a,_0x26f42f,_0x2b5fde)=>{for(var _0x465b5b=_0x2b5fde>0x1?void 0x0:_0x2b5fde?zt(_0x43de9a,_0x26f42f):_0x43de9a,_0x5c7cf5=_0x3252c2['length']-0x1,_0x3555fa;_0x5c7cf5>=0x0;_0x5c7cf5--)(_0x3555fa=_0x3252c2[_0x5c7cf5])&&(_0x465b5b=_0x3555fa(_0x465b5b)||_0x465b5b);return _0x465b5b;},_e=(_0x40600a,_0xc8f9e4)=>(_0xc2f92c,_0x5ad1cc)=>_0xc8f9e4(_0xc2f92c,_0x5ad1cc,_0x40600a),Qt=(_0x37922f,_0x4269b6,_0x3d5b66)=>Zt(_0x37922f,_0x4269b6+'',_0x3d5b66);const es=_0xcba175(0x330);exports[_0xcba175(0x2fe)]=class extends a['Plugin']{constructor(_0x47c213=De,_0xc575aa,_0x584717,_0x27c081){const _0x20b601=_0xcba175;super(),this[_0x20b601(0x222)]=_0x47c213,this[_0x20b601(0x1b7)]=_0xc575aa,this[_0x20b601(0x3f5)]=_0x584717,this[_0x20b601(0x390)]=_0x27c081;const {..._0x4ce9f5}=a[_0x20b601(0x3da)]({},De,this[_0x20b601(0x222)]);this[_0x20b601(0x390)]['setConfig'](Bt,_0x4ce9f5);}['onStarting'](){const _0x54ded0=_0xcba175;this[_0x54ded0(0x2a9)](),this[_0x54ded0(0x182)]();}['onRendered'](){const _0x22e036=_0xcba175;this[_0x22e036(0x354)]();}['_registerDependencies'](){const _0x5f4ceb=_0xcba175;var _0x45c27f;const _0xebf7a0=[[me],[J],[z],[Z],[Ce],[Ee,{'useClass':xe}],[K[_0x5f4ceb(0x1e5)],{'useClass':K[_0x5f4ceb(0x1e8)]}],[u[_0x5f4ceb(0x229)],{'useClass':ve}],[exports[_0x5f4ceb(0x221)]],[Q],[q],[x],[ue],[exports[_0x5f4ceb(0x320)]]];a[_0x5f4ceb(0x387)](this[_0x5f4ceb(0x3f5)],a[_0x5f4ceb(0x301)](_0xebf7a0,(_0x45c27f=this[_0x5f4ceb(0x222)])==null?void 0x0:_0x45c27f[_0x5f4ceb(0x39d)]));}[_0xcba175(0x354)](){const _0x5ca538=_0xcba175;this[_0x5ca538(0x369)](this[_0x5ca538(0x1b7)][_0x5ca538(0x1c6)](a[_0x5ca538(0x3db)]['UNIVER_DOC'],[Se])),this[_0x5ca538(0x369)](this[_0x5ca538(0x1b7)]['registerRenderModule'](a[_0x5ca538(0x3db)][_0x5ca538(0x200)],[fe]));}[_0xcba175(0x182)](){const _0x24551a=_0xcba175;a[_0x24551a(0x2d4)](this[_0x24551a(0x3f5)],[[x],[exports[_0x24551a(0x221)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0xcba175(0x2fe)],_0xcba175(0x281),es),exports[_0xcba175(0x2fe)]=Jt([a[_0xcba175(0x386)](u['UniverCollaborationClientPlugin']),_e(0x1,C[_0xcba175(0x286)]),_e(0x2,a[_0xcba175(0x27e)](a[_0xcba175(0x2ef)])),_e(0x3,a['IConfigService'])],exports[_0xcba175(0x2fe)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x4818dc,_0x4b649e,_0x40d4d7,_0x38e5f4)=>{for(var _0x5d82e3=_0x38e5f4>0x1?void 0x0:_0x38e5f4?ts(_0x4b649e,_0x40d4d7):_0x4b649e,_0x2f50b3=_0x4818dc['length']-0x1,_0x97e99e;_0x2f50b3>=0x0;_0x2f50b3--)(_0x97e99e=_0x4818dc[_0x2f50b3])&&(_0x5d82e3=_0x97e99e(_0x5d82e3)||_0x5d82e3);return _0x5d82e3;},H=(_0x38dac6,_0x219ee9)=>(_0x5b9f53,_0x32529b)=>_0x219ee9(_0x5b9f53,_0x32529b,_0x38dac6);exports[_0xcba175(0x3c7)]=class extends u['CollaborationSocketService']{constructor(_0x45d6f5,_0x510fa0,_0x48149e,_0x409a62,_0xce1992){super(_0x45d6f5,_0x510fa0,_0x48149e,_0x409a62,_0xce1992);}async[_0xcba175(0x333)](_0xfdcabd){const _0x105bd9=_0xcba175,_0x4a890a=await this[_0x105bd9(0x216)](),_0x5831f8=this[_0x105bd9(0x243)](_0xfdcabd,_0x4a890a);return this[_0x105bd9(0x28d)](_0x5831f8);}[_0xcba175(0x243)](_0xe4e1fa,_0x1ea215){const _0x40c803=_0xcba175,_0x50bd2d=typeof window>'u'?new URL(_0xe4e1fa):new URL(_0xe4e1fa,window[_0x40c803(0x2c6)][_0x40c803(0x26d)]);_0x50bd2d[_0x40c803(0x3e9)][_0x40c803(0x224)](_0x40c803(0x2ab),_0x1ea215);const _0xec0111=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x40c803(0x2c6)][_0x40c803(0x3d7)]);return _0xec0111[_0x40c803(0x1ec)](_0x40c803(0x401))&&_0x50bd2d['searchParams'][_0x40c803(0x224)](_0x40c803(0x401),_0xec0111[_0x40c803(0x1ec)](_0x40c803(0x401))),_0x50bd2d[_0x40c803(0x29b)]();}async['_getSessionTicket'](){const _0x3f79d1=_0xcba175;var _0xba38ef,_0x295ea8,_0x165f14;const _0x2e51d9=this[_0x3f79d1(0x390)]['getConfig'](u[_0x3f79d1(0x1c2)]),_0x287b81=(_0xba38ef=_0x2e51d9==null?void 0x0:_0x2e51d9['wsSessionTicketUrl'])!=null?_0xba38ef:u[_0x3f79d1(0x38a)];return(_0x165f14=(_0x295ea8=(await this[_0x3f79d1(0x2aa)][_0x3f79d1(0x1ec)](_0x287b81,{'headers':{'Content-Type':_0x3f79d1(0x267)}}))['body'])==null?void 0x0:_0x295ea8[_0x3f79d1(0x2a7)])!=null?_0x165f14:'';}},exports[_0xcba175(0x3c7)]=ss([H(0x0,a[_0xcba175(0x27e)](a[_0xcba175(0x2ef)])),H(0x1,a[_0xcba175(0x27e)](K[_0xcba175(0x284)])),H(0x2,a[_0xcba175(0x2f9)]),H(0x3,a['ILogService']),H(0x4,E['ISnapshotServerService'])],exports[_0xcba175(0x3c7)]);var Be=(_0x51f4b7=>(_0x51f4b7[_0x51f4b7['UNDEFINED']=0x0]=_0xcba175(0x1cb),_0x51f4b7[_0x51f4b7['OK']=0x1]='OK',_0x51f4b7[_0x51f4b7[_0xcba175(0x2df)]=0x2]=_0xcba175(0x2df),_0x51f4b7[_0x51f4b7['PERMISSION_DENIED']=0x3]=_0xcba175(0x357),_0x51f4b7[_0x51f4b7[_0xcba175(0x29a)]=0x4]=_0xcba175(0x29a),_0x51f4b7[_0x51f4b7[_0xcba175(0x373)]=0x5]='UNAUTHENTICATED',_0x51f4b7[_0x51f4b7[_0xcba175(0x2b4)]=0x6]='ALREADY_EXISTS',_0x51f4b7[_0x51f4b7[_0xcba175(0x3be)]=0x7]=_0xcba175(0x3be),_0x51f4b7[_0x51f4b7[_0xcba175(0x2e6)]=0x8]=_0xcba175(0x2e6),_0x51f4b7[_0x51f4b7[_0xcba175(0x190)]=0x9]=_0xcba175(0x190),_0x51f4b7[_0x51f4b7[_0xcba175(0x3c4)]=0xa]=_0xcba175(0x3c4),_0x51f4b7[_0x51f4b7[_0xcba175(0x378)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x51f4b7[_0x51f4b7[_0xcba175(0x353)]=0xc]=_0xcba175(0x353),_0x51f4b7[_0x51f4b7[_0xcba175(0x348)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x51f4b7[_0x51f4b7[_0xcba175(0x28c)]=0xe]=_0xcba175(0x28c),_0x51f4b7[_0x51f4b7[_0xcba175(0x17d)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x51f4b7[_0x51f4b7['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x51f4b7[_0x51f4b7[_0xcba175(0x20c)]=0x64]=_0xcba175(0x20c),_0x51f4b7[_0x51f4b7['ERROR_AGAIN']=0x65]=_0xcba175(0x31d),_0x51f4b7[_0x51f4b7['USER_NOT_FOUND']=0xc9]='USER_NOT_FOUND',_0x51f4b7[_0x51f4b7[_0xcba175(0x404)]=0xca]='USER_IS_ANONYMOUS',_0x51f4b7[_0x51f4b7[_0xcba175(0x197)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x51f4b7[_0x51f4b7[_0xcba175(0x25e)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x51f4b7[_0x51f4b7[_0xcba175(0x212)]=0x1772]=_0xcba175(0x212),_0x51f4b7[_0x51f4b7['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x51f4b7[_0x51f4b7[_0xcba175(0x3c9)]=0x1b59]=_0xcba175(0x3c9),_0x51f4b7[_0x51f4b7['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x51f4b7[_0x51f4b7[_0xcba175(0x380)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x51f4b7[_0x51f4b7[_0xcba175(0x3bf)]=0x1b5c]=_0xcba175(0x3bf),_0x51f4b7[_0x51f4b7['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x51f4b7[_0x51f4b7[_0xcba175(0x292)]=0x1f41]=_0xcba175(0x292),_0x51f4b7[_0x51f4b7[_0xcba175(0x1b6)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x51f4b7[_0x51f4b7[_0xcba175(0x2f8)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x51f4b7[_0x51f4b7[_0xcba175(0x1d6)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x51f4b7[_0x51f4b7['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0xcba175(0x1fe),_0x51f4b7[_0x51f4b7[_0xcba175(0x1c1)]=0x232d]=_0xcba175(0x1c1),_0x51f4b7[_0x51f4b7['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0xcba175(0x1f3),_0x51f4b7[_0x51f4b7['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x51f4b7[_0x51f4b7['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xcba175(0x36a),_0x51f4b7[_0x51f4b7['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x51f4b7[_0x51f4b7['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x51f4b7[_0x51f4b7['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0xcba175(0x33a),_0x51f4b7[_0x51f4b7['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0xcba175(0x2a8),_0x51f4b7[_0x51f4b7[_0xcba175(0x35b)]=0x271d]=_0xcba175(0x35b),_0x51f4b7[_0x51f4b7[_0xcba175(0x2ff)]=0x271e]=_0xcba175(0x2ff),_0x51f4b7[_0x51f4b7[_0xcba175(0x2cb)]=0x271f]=_0xcba175(0x2cb),_0x51f4b7[_0x51f4b7[_0xcba175(0x335)]=0x2720]=_0xcba175(0x335),_0x51f4b7[_0x51f4b7[_0xcba175(0x207)]=0x2af9]=_0xcba175(0x207),_0x51f4b7[_0x51f4b7[_0xcba175(0x35d)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x51f4b7[_0x51f4b7['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x51f4b7[_0x51f4b7['INVITE_CODE_REQUIRED']=0x2ee3]=_0xcba175(0x33b),_0x51f4b7[_0x51f4b7['USER_NOT_INVITED_CODE']=0x2ee4]=_0xcba175(0x1f6),_0x51f4b7[_0x51f4b7[_0xcba175(0x173)]=0x2ee5]=_0xcba175(0x173),_0x51f4b7[_0x51f4b7[_0xcba175(0x19d)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x51f4b7[_0x51f4b7[_0xcba175(0x236)]=0x32ca]=_0xcba175(0x236),_0x51f4b7[_0x51f4b7['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0xcba175(0x1c7),_0x51f4b7[_0x51f4b7[_0xcba175(0x3d8)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x51f4b7[_0x51f4b7[_0xcba175(0x294)]=0x36b2]=_0xcba175(0x294),_0x51f4b7[_0x51f4b7[_0xcba175(0x20d)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x51f4b7[_0x51f4b7['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0xcba175(0x3a9),_0x51f4b7[_0x51f4b7[_0xcba175(0x22c)]=0x3715]=_0xcba175(0x22c),_0x51f4b7[_0x51f4b7['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x51f4b7[_0x51f4b7['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0xcba175(0x3d1),_0x51f4b7[_0x51f4b7['REDEMPTION_INVALID_CODE']=0x3a99]='REDEMPTION_INVALID_CODE',_0x51f4b7[_0x51f4b7['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0xcba175(0x26a),_0x51f4b7[_0x51f4b7['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0xcba175(0x299),_0x51f4b7[_0x51f4b7[_0xcba175(0x24b)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x51f4b7[_0x51f4b7[_0xcba175(0x27c)]=0x3a9d]=_0xcba175(0x27c),_0x51f4b7[_0x51f4b7['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0xcba175(0x2da),_0x51f4b7[_0x51f4b7['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0xcba175(0x36f),_0x51f4b7[_0x51f4b7[_0xcba175(0x219)]=-0x1]=_0xcba175(0x219),_0x51f4b7))(Be||{}),is=Object['getOwnPropertyDescriptor'],ns=(_0x2dfe2d,_0x31247b,_0x47a6a0,_0x465d1f)=>{for(var _0x4a9656=_0x465d1f>0x1?void 0x0:_0x465d1f?is(_0x31247b,_0x47a6a0):_0x31247b,_0x4f6ebb=_0x2dfe2d['length']-0x1,_0x2573b7;_0x4f6ebb>=0x0;_0x4f6ebb--)(_0x2573b7=_0x2dfe2d[_0x4f6ebb])&&(_0x4a9656=_0x2573b7(_0x4a9656)||_0x4a9656);return _0x4a9656;},he=(_0x2f0ac7,_0x50a9f4)=>(_0x5d7d3a,_0x2e11c1)=>_0x50a9f4(_0x5d7d3a,_0x2e11c1,_0x2f0ac7);exports['RemoteUniscriptService']=class extends a[_0xcba175(0x1d7)]{constructor(_0x24bad8,_0x4879e7,_0x12af00){const _0x45084d=_0xcba175;super(),this['_instanceService']=_0x24bad8,this['_httpService']=_0x4879e7,this[_0x45084d(0x390)]=_0x12af00;}async[_0xcba175(0x2d0)](_0x1fed73,_0x24984d,_0x385d32,..._0x502e82){const _0x5cd6fb=_0xcba175;var _0x2d3a22,_0x3726a8,_0x3a585d,_0x30284d;const _0x1e64e5=this[_0x5cd6fb(0x307)][_0x5cd6fb(0x1be)]();if(!_0x1e64e5)throw new Error(_0x5cd6fb(0x345));const _0x139662=((_0x2d3a22=this[_0x5cd6fb(0x390)][_0x5cd6fb(0x1e3)](u[_0x5cd6fb(0x339)]))!=null?_0x2d3a22:u[_0x5cd6fb(0x329)])+'/'+_0x1fed73+_0x5cd6fb(0x1cc)+_0x24984d,_0x50cd6c=new URL(window['location'][_0x5cd6fb(0x1c9)]),_0x3d9a28={'scriptId':_0x1fed73,'runId':(_0x3726a8=_0x50cd6c[_0x5cd6fb(0x3e9)]['get'](_0x5cd6fb(0x401)))!=null?_0x3726a8:'','function':_0x24984d,'unitId':_0x1e64e5['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x502e82),'invokeId':(_0x3a585d=_0x385d32[_0x5cd6fb(0x196)])!=null?_0x3a585d:'','executionId':(_0x30284d=_0x385d32[_0x5cd6fb(0x21b)])!=null?_0x30284d:''};try{const _0x188a5d=await this[_0x5cd6fb(0x2aa)][_0x5cd6fb(0x27f)](_0x139662,{'body':_0x3d9a28});return _0x188a5d[_0x5cd6fb(0x3b6)][_0x5cd6fb(0x1f4)]&&_0x188a5d[_0x5cd6fb(0x3b6)][_0x5cd6fb(0x1f4)]['code']!==Be['OK']?_0x5cd6fb(0x3d3):_0x188a5d[_0x5cd6fb(0x3b6)]['result'];}catch{return'Failed';}}},exports[_0xcba175(0x350)]=ns([he(0x0,a['IUniverInstanceService']),he(0x1,a[_0xcba175(0x27e)](K[_0xcba175(0x284)])),he(0x2,a[_0xcba175(0x2f9)])],exports['RemoteUniscriptService']);const Me=0x7530,Le=_0xcba175(0x3bb);class rs extends a['Disposable']{constructor(){const _0x173e16=_0xcba175;super(),h(this,_0x173e16(0x3ee),a[_0x173e16(0x31c)]()),h(this,_0x173e16(0x249),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x173e16(0x23a),null),h(this,_0x173e16(0x26b),new Map()),h(this,_0x173e16(0x31b),new Map()),this['_init']();}[_0xcba175(0x24c)](){const _0x40ca5e=_0xcba175;super[_0x40ca5e(0x24c)](),this[_0x40ca5e(0x26b)][_0x40ca5e(0x1fc)]((_0x250676,_0x4f7c94)=>this[_0x40ca5e(0x2eb)](_0x4f7c94)),this[_0x40ca5e(0x23a)]&&window[_0x40ca5e(0x3d6)](this[_0x40ca5e(0x23a)]);}['getUnitStatus$'](_0x16b810){const _0x444c58=_0xcba175;return this['_ensureSubject'](_0x16b810)[_0x444c58(0x247)](I[_0x444c58(0x2fb)]());}[_0xcba175(0x232)](_0x5f0674){const _0x549121=_0xcba175;this['_selfUnitIDs'][_0x549121(0x23d)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x549121(0x364)](_0x5f0674),this[_0x549121(0x31a)]({'type':0x0,'memberID':this[_0x549121(0x3ee)],'unitIDs':[_0x5f0674],'isForwarded':!0x1});}['disposeUnit'](_0x1e6783){const _0x40685c=_0xcba175;this[_0x40685c(0x249)]['delete'](_0x1e6783),this[_0x40685c(0x249)][_0x40685c(0x23d)]===0x0&&this[_0x40685c(0x23a)]&&window[_0x40685c(0x3d6)](this['_heartbeatTimer']);}[_0xcba175(0x322)](){const _0x7f2cd2=_0xcba175;this['disposeWithMe'](a[_0x7f2cd2(0x311)](I[_0x7f2cd2(0x2d7)](window,_0x7f2cd2(0x186))[_0x7f2cd2(0x37c)](_0x1c3411=>{const _0x181ecc=_0x7f2cd2;if(_0x1c3411[_0x181ecc(0x1b5)]!==Le||!_0x1c3411['newValue'])return;const _0x2a1e99=JSON[_0x181ecc(0x30a)](_0x1c3411[_0x181ecc(0x1c8)]);this[_0x181ecc(0x21c)](_0x2a1e99);}))),window[_0x7f2cd2(0x327)](_0x7f2cd2(0x242),()=>this[_0x7f2cd2(0x31a)]({'type':0x1,'memberID':this[_0x7f2cd2(0x3ee)],'unitIDs':Array[_0x7f2cd2(0x2cd)](this[_0x7f2cd2(0x249)])}));}[_0xcba175(0x21c)](_0x4c8a0c){const _0x51fbe2=_0xcba175;switch(_0x4c8a0c['type']){case 0x0:this[_0x51fbe2(0x403)](_0x4c8a0c);break;case 0x1:this[_0x51fbe2(0x20a)](_0x4c8a0c);break;case 0x2:this[_0x51fbe2(0x38b)](_0x4c8a0c);break;}}[_0xcba175(0x403)](_0x2896ee){const _0x3f1b7a=_0xcba175,{unitIDs:_0x1d3eff,memberID:_0xf65350,isForwarded:_0x297bfe}=_0x2896ee;_0x1d3eff['forEach'](_0x5d8be7=>{const _0x3b6c48=_0x12c7;if(!_0x297bfe&&this[_0x3b6c48(0x1f5)][_0x3b6c48(0x381)](_0x5d8be7)&&this[_0x3b6c48(0x22e)](_0x5d8be7)['next'](u[_0x3b6c48(0x178)][_0x3b6c48(0x3e8)]),!this['_unitOnClients'][_0x3b6c48(0x381)](_0x5d8be7)||!this[_0x3b6c48(0x1f5)]['get'](_0x5d8be7)[_0x3b6c48(0x381)](_0xf65350)){const _0x7177c9=this['_unitOnClients'][_0x3b6c48(0x1ec)](_0x5d8be7)||new Set();_0x7177c9[_0x3b6c48(0x364)](_0xf65350),this[_0x3b6c48(0x1f5)][_0x3b6c48(0x224)](_0x5d8be7,_0x7177c9),this['_scheduleClearOtherTimer'](_0xf65350);}}),_0x297bfe||this[_0x3f1b7a(0x31a)]({'type':0x0,'memberID':this[_0x3f1b7a(0x3ee)],'unitIDs':[...this[_0x3f1b7a(0x249)]],'isForwarded':!0x0});}[_0xcba175(0x191)](_0x123786){const _0x455cc9=_0xcba175;this[_0x455cc9(0x2eb)](_0x123786);const _0x16f202=window[_0x455cc9(0x37e)](()=>{this['_unitOnClients']['forEach'](_0x21e47c=>{_0x21e47c['delete'](_0x123786);});},Me*0x2);this[_0x455cc9(0x26b)][_0x455cc9(0x224)](_0x123786,_0x16f202);}['_removeClearOtherTimer'](_0x2e7f5c){const _0x1a2b5d=_0xcba175;if(this[_0x1a2b5d(0x26b)][_0x1a2b5d(0x381)](_0x2e7f5c)){const _0x40d6d2=this[_0x1a2b5d(0x26b)][_0x1a2b5d(0x1ec)](_0x2e7f5c);_0x40d6d2&&window[_0x1a2b5d(0x3b9)](_0x40d6d2),this[_0x1a2b5d(0x26b)][_0x1a2b5d(0x224)](_0x2e7f5c,null);}}[_0xcba175(0x20a)](_0x3b4c3e){const _0x3b0102=_0xcba175,{memberID:_0x443e8b,unitIDs:_0x42f1a0}=_0x3b4c3e;_0x42f1a0['forEach'](_0x3535be=>{const _0xfa4560=_0x12c7;var _0x1a4316;const _0x3a0cf1=this[_0xfa4560(0x1f5)][_0xfa4560(0x1ec)](_0x3535be);_0x3a0cf1&&(_0x3a0cf1[_0xfa4560(0x2c7)](_0x443e8b),(_0x1a4316=this[_0xfa4560(0x22e)](_0x3535be))==null||_0x1a4316['next'](_0x3a0cf1[_0xfa4560(0x23d)]===0x0?u[_0xfa4560(0x178)][_0xfa4560(0x2c5)]:u[_0xfa4560(0x178)]['OTHER_CLIENTS_EDITING']));}),this[_0x3b0102(0x2eb)](_0x443e8b);}[_0xcba175(0x38b)](_0x36eb45){this['_scheduleClearOtherTimer'](_0x36eb45['memberID']);}[_0xcba175(0x31a)](_0x4d0c6e){const _0x317189=_0xcba175;localStorage[_0x317189(0x1ce)](Le,JSON[_0x317189(0x27d)](_0x4d0c6e));}[_0xcba175(0x19b)](){const _0xf09047=_0xcba175;this[_0xf09047(0x23a)]=window['setInterval'](()=>{const _0x530fc9=_0xf09047;this[_0x530fc9(0x31a)]({'type':0x2,'memberID':this[_0x530fc9(0x3ee)]});},Me);}[_0xcba175(0x22e)](_0x3e26b6){const _0x1892bd=_0xcba175;return this[_0x1892bd(0x31b)][_0x1892bd(0x381)](_0x3e26b6)||this['_unitStatus'][_0x1892bd(0x224)](_0x3e26b6,new I[(_0x1892bd(0x1ca))](u[_0x1892bd(0x178)][_0x1892bd(0x2c5)])),this[_0x1892bd(0x31b)][_0x1892bd(0x1ec)](_0x3e26b6);}}exports[_0xcba175(0x33f)]=Ee,exports[_0xcba175(0x355)]=$e,exports['WebBrowserSingleActiveUnitService']=rs,exports['WebURLService']=xe;
1
+ 'use strict';const _0x112f11=_0x29e7;(function(_0x3e21a1,_0x1c569a){const _0x29b1fd=_0x29e7,_0x5ccba5=_0x3e21a1();while(!![]){try{const _0xeba00a=parseInt(_0x29b1fd(0x219))/0x1*(parseInt(_0x29b1fd(0x20a))/0x2)+-parseInt(_0x29b1fd(0x137))/0x3*(-parseInt(_0x29b1fd(0x3a2))/0x4)+-parseInt(_0x29b1fd(0x230))/0x5*(-parseInt(_0x29b1fd(0x1a3))/0x6)+-parseInt(_0x29b1fd(0x106))/0x7*(-parseInt(_0x29b1fd(0x102))/0x8)+-parseInt(_0x29b1fd(0x359))/0x9+parseInt(_0x29b1fd(0x3ae))/0xa+parseInt(_0x29b1fd(0x2a3))/0xb*(-parseInt(_0x29b1fd(0x356))/0xc);if(_0xeba00a===_0x1c569a)break;else _0x5ccba5['push'](_0x5ccba5['shift']());}catch(_0xbb5d50){_0x5ccba5['push'](_0x5ccba5['shift']());}}}(_0x1d23,0x5333e));var Ge=Object[_0x112f11(0x39a)],Xe=(_0x3c98b0,_0x839fa9,_0x23f189)=>_0x839fa9 in _0x3c98b0?Ge(_0x3c98b0,_0x839fa9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23f189}):_0x3c98b0[_0x839fa9]=_0x23f189,_=(_0x2ead2d,_0x33c441,_0x3142b2)=>Xe(_0x2ead2d,typeof _0x33c441!=_0x112f11(0x12c)?_0x33c441+'':_0x33c441,_0x3142b2);Object[_0x112f11(0x39a)](exports,Symbol['toStringTag'],{'value':'Module'});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');var O=function(){const _0x4a8ed1=_0x112f11;return O=Object[_0x4a8ed1(0x25d)]||function(_0x27087b){const _0xc1834=_0x4a8ed1;for(var _0x521b14,_0x4371d3=0x1,_0x1ccff1=arguments[_0xc1834(0x132)];_0x4371d3<_0x1ccff1;_0x4371d3++){_0x521b14=arguments[_0x4371d3];for(var _0x21c108 in _0x521b14)Object['prototype'][_0xc1834(0x37d)]['call'](_0x521b14,_0x21c108)&&(_0x27087b[_0x21c108]=_0x521b14[_0x21c108]);}return _0x27087b;},O[_0x4a8ed1(0x2d4)](this,arguments);},ze=function(_0x8dd33d,_0xa8f390){const _0x38613f=_0x112f11;var _0x48c602={};for(var _0x11d018 in _0x8dd33d)Object[_0x38613f(0x36b)][_0x38613f(0x37d)][_0x38613f(0x2aa)](_0x8dd33d,_0x11d018)&&_0xa8f390[_0x38613f(0x174)](_0x11d018)<0x0&&(_0x48c602[_0x11d018]=_0x8dd33d[_0x11d018]);if(_0x8dd33d!=null&&typeof Object[_0x38613f(0x350)]==_0x38613f(0x333)){for(var _0x2a71a6=0x0,_0x11d018=Object[_0x38613f(0x350)](_0x8dd33d);_0x2a71a6<_0x11d018['length'];_0x2a71a6++)_0xa8f390[_0x38613f(0x174)](_0x11d018[_0x2a71a6])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x8dd33d,_0x11d018[_0x2a71a6])&&(_0x48c602[_0x11d018[_0x2a71a6]]=_0x8dd33d[_0x11d018[_0x2a71a6]]);}return _0x48c602;},pe=L[_0x112f11(0x338)](function(_0x5e2670,_0x4eef74){const _0x2ae66b=_0x112f11;var _0x4b2bb7=_0x5e2670[_0x2ae66b(0x161)],_0x5d0e10=_0x5e2670['id'],_0x1cc86d=_0x5e2670[_0x2ae66b(0x118)],_0x6115cf=_0x5e2670[_0x2ae66b(0x242)],_0x59eaed=ze(_0x5e2670,[_0x2ae66b(0x161),'id',_0x2ae66b(0x118),'extend']),_0xa6c516=_0x2ae66b(0x2f9)[_0x2ae66b(0x345)](_0x5d0e10,'\x20')[_0x2ae66b(0x345)](_0x1cc86d||'')[_0x2ae66b(0x184)](),_0x841bfb=L[_0x2ae66b(0x337)]('_'[_0x2ae66b(0x345)](Qe()));return ye(_0x4b2bb7,''['concat'](_0x5d0e10),{'defIds':_0x4b2bb7[_0x2ae66b(0x227)],'idSuffix':_0x841bfb['current']},O({'ref':_0x4eef74,'className':_0xa6c516},_0x59eaed),_0x6115cf);});function ye(_0x3205fe,_0x290d91,_0x13a560,_0x53fc4d,_0x5d99d4){const _0x570a00=_0x112f11;return L[_0x570a00(0x2ae)](_0x3205fe[_0x570a00(0x114)],O(O({'key':_0x290d91},Je(_0x3205fe,_0x13a560,_0x5d99d4)),_0x53fc4d),(Ze(_0x3205fe,_0x13a560)['children']||[])[_0x570a00(0x2a9)](function(_0x3ea9f0,_0x25910b){const _0x38bf2c=_0x570a00;return ye(_0x3ea9f0,''[_0x38bf2c(0x345)](_0x290d91,'-')[_0x38bf2c(0x345)](_0x3205fe['tag'],'-')[_0x38bf2c(0x345)](_0x25910b),_0x13a560,void 0x0,_0x5d99d4);}));}function Je(_0x2a0b24,_0x152ab4,_0x34baef){const _0x5e31b2=_0x112f11;var _0x2b3881=O({},_0x2a0b24[_0x5e31b2(0x2ac)]);_0x34baef!=null&&_0x34baef[_0x5e31b2(0x203)]&&_0x2b3881[_0x5e31b2(0x352)]===_0x5e31b2(0x203)&&(_0x2b3881[_0x5e31b2(0x352)]=_0x34baef[_0x5e31b2(0x203)]),_0x2a0b24[_0x5e31b2(0x114)]==='mask'&&_0x2b3881['id']&&(_0x2b3881['id']=_0x2b3881['id']+_0x152ab4[_0x5e31b2(0x1ee)]),Object['entries'](_0x2b3881)['forEach'](function(_0x281c25){const _0x2fb981=_0x5e31b2;var _0x40ca29=_0x281c25[0x0],_0x12e381=_0x281c25[0x1];_0x40ca29===_0x2fb981(0x1ea)&&typeof _0x12e381=='string'&&(_0x2b3881[_0x40ca29]=_0x12e381[_0x2fb981(0x11b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x152ab4['idSuffix'],')')));});var _0x1a07d5=_0x152ab4[_0x5e31b2(0x227)];return!_0x1a07d5||_0x1a07d5['length']===0x0||(_0x2a0b24[_0x5e31b2(0x114)]===_0x5e31b2(0x1b0)&&_0x2b3881[_0x5e31b2(0x116)]&&(_0x2b3881[_0x5e31b2(0x116)]=_0x2b3881[_0x5e31b2(0x116)]+_0x152ab4[_0x5e31b2(0x1ee)]),Object[_0x5e31b2(0x121)](_0x2b3881)['forEach'](function(_0x4cbba6){const _0x1440c8=_0x5e31b2;var _0xa03b3a=_0x4cbba6[0x0],_0x30d5dd=_0x4cbba6[0x1];typeof _0x30d5dd==_0x1440c8(0x1c0)&&(_0x2b3881[_0xa03b3a]=_0x30d5dd[_0x1440c8(0x11b)](/url\(#(.*)\)/,_0x1440c8(0x14d)['concat'](_0x152ab4[_0x1440c8(0x1ee)],')')));})),_0x2b3881;}function Ze(_0x583b19,_0x46f241){const _0x32c67c=_0x112f11;var _0xa4665,_0x5aec23=_0x46f241['defIds'];return!_0x5aec23||_0x5aec23['length']===0x0?_0x583b19:_0x583b19[_0x32c67c(0x114)]===_0x32c67c(0x12f)&&(!((_0xa4665=_0x583b19[_0x32c67c(0x362)])===null||_0xa4665===void 0x0)&&_0xa4665['length'])?O(O({},_0x583b19),{'children':_0x583b19[_0x32c67c(0x362)][_0x32c67c(0x2a9)](function(_0x543930){const _0x265804=_0x32c67c;return typeof _0x543930['attrs']['id']==_0x265804(0x1c0)&&_0x5aec23&&_0x5aec23['includes'](_0x543930[_0x265804(0x2ac)]['id'])?O(O({},_0x543930),{'attrs':O(O({},_0x543930[_0x265804(0x2ac)]),{'id':_0x543930['attrs']['id']+_0x46f241[_0x265804(0x1ee)]})}):_0x543930;})}):_0x583b19;}function Qe(){const _0x533ebc=_0x112f11;return Math[_0x533ebc(0x1e7)]()[_0x533ebc(0x1c8)](0x24)['substring'](0x2,0x8);}pe[_0x112f11(0x210)]='UniverIcon';var et={'tag':'svg','attrs':{'xmlns':_0x112f11(0x2fb),'fill':_0x112f11(0x113),'viewBox':_0x112f11(0x2d7),'width':_0x112f11(0x314),'height':_0x112f11(0x314)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x112f11(0x383),'attrs':{'stroke':_0x112f11(0x179),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x112f11(0x1b5),'strokeLinejoin':_0x112f11(0x1b5),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x112f11(0x23c)},'children':[{'tag':_0x112f11(0x383),'attrs':{'fill':_0x112f11(0x3af),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=L[_0x112f11(0x338)](function(_0x50513c,_0x4465fa){const _0x122bab=_0x112f11;return L[_0x122bab(0x2ae)](pe,Object['assign']({},_0x50513c,{'id':_0x122bab(0x105),'ref':_0x4465fa,'icon':et}));});xe[_0x112f11(0x210)]=_0x112f11(0x32e);var tt={'tag':_0x112f11(0x181),'attrs':{'xmlns':_0x112f11(0x2fb),'fill':_0x112f11(0x113),'viewBox':_0x112f11(0x39f),'width':_0x112f11(0x314),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x112f11(0x383),'attrs':{'stroke':_0x112f11(0x179),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x112f11(0x1b5),'strokeLinejoin':_0x112f11(0x1b5),'strokeWidth':1.2}}]},{'tag':_0x112f11(0x12f),'attrs':{},'children':[{'tag':_0x112f11(0x269),'attrs':{'id':_0x112f11(0x1a5)},'children':[{'tag':_0x112f11(0x383),'attrs':{'fill':_0x112f11(0x3af),'d':_0x112f11(0x28e),'transform':_0x112f11(0x387)}}]}]}],'defIds':[_0x112f11(0x1a5)]},$e=L[_0x112f11(0x338)](function(_0x2dc88b,_0x14fb1a){const _0x5d3037=_0x112f11;return L['createElement'](pe,Object[_0x5d3037(0x25d)]({},_0x2dc88b,{'id':_0x5d3037(0x165),'ref':_0x14fb1a,'icon':tt}));});$e[_0x112f11(0x210)]='OnLineIcon';function st(_0x5b86f4){const _0x5ea49c=_0x112f11;switch(_0x5b86f4){case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x330)]:return _0x5ea49c(0x13b);case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x34c)]:return _0x5ea49c(0x1b2);case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x271)]:return'collabStatus.fetchMiss';case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x1d6)]:return _0x5ea49c(0x2e4);case u[_0x5ea49c(0x2f7)]['AWAITING']:case u[_0x5ea49c(0x2f7)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u['CollaborationStatus'][_0x5ea49c(0x19d)]:case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x1d7)]:return _0x5ea49c(0x250);}}function it(_0x22327a){const _0x50d7bb=_0x112f11,{status$:_0x304413}=_0x22327a,_0x24d2d7=R['useObservable'](_0x304413,u['CollaborationStatus']['NOT_COLLAB']),_0x28d48b=R[_0x50d7bb(0x19e)](a['LocaleService']),_0x10e68f=R[_0x50d7bb(0x19e)](u[_0x50d7bb(0x12b)]),_0x530093=_0x24d2d7!==u[_0x50d7bb(0x2f7)][_0x50d7bb(0x330)],_0x2fde4f=_0x28d48b['t'](st(_0x24d2d7)),_0x2829db=_0x530093?P[_0x50d7bb(0x21f)]($e,{}):P[_0x50d7bb(0x21f)](xe,{}),_0x4775ec=L[_0x50d7bb(0x38a)](()=>{const _0x3433bb=_0x50d7bb;_0x530093||_0x10e68f[_0x3433bb(0x276)]();},[_0x530093,_0x10e68f]);function _0x17eaeb(){const _0xa21a7e=_0x50d7bb;return P[_0xa21a7e(0x18d)](_0xa21a7e(0x217),{'className':_0xa21a7e(0x37e),'onClick':_0x4775ec,'children':[P[_0xa21a7e(0x21f)](_0xa21a7e(0x217),{'className':T[_0xa21a7e(0x2e6)](_0xa21a7e(0x34f),{'univer-text-green-500':_0x530093,'univer-text-red-500':!_0x530093}),'children':_0x2829db}),P[_0xa21a7e(0x21f)](_0xa21a7e(0x217),{'className':_0xa21a7e(0x147),'children':_0x2fde4f})]});}return _0x530093?_0x17eaeb():P[_0x50d7bb(0x21f)](T[_0x50d7bb(0x1c1)],{'title':_0x28d48b['t'](_0x50d7bb(0x33f)),'children':_0x17eaeb()});}var nt=Object[_0x112f11(0x265)],rt=(_0x2189c1,_0x404eec,_0x1de77f,_0x2c7fa3)=>{const _0x2cf0ce=_0x112f11;for(var _0x3a347d=_0x2c7fa3>0x1?void 0x0:_0x2c7fa3?nt(_0x404eec,_0x1de77f):_0x404eec,_0x4f3970=_0x2189c1[_0x2cf0ce(0x132)]-0x1,_0x2afd6c;_0x4f3970>=0x0;_0x4f3970--)(_0x2afd6c=_0x2189c1[_0x4f3970])&&(_0x3a347d=_0x2afd6c(_0x3a347d)||_0x3a347d);return _0x3a347d;},q=(_0x1a4793,_0x3a2524)=>(_0x11cbef,_0x1a6e48)=>_0x3a2524(_0x11cbef,_0x1a6e48,_0x1a4793);exports[_0x112f11(0x33a)]=class extends a['Disposable']{constructor(_0x503be0,_0x471189,_0x215d67,_0x3d5834){const _0x18c350=_0x112f11;super(),_(this,_0x18c350(0x2db),new I[(_0x18c350(0x1dd))](u[_0x18c350(0x2f7)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x503be0,this[_0x18c350(0x399)]=_0x471189,this[_0x18c350(0x131)]=_0x215d67,this[_0x18c350(0x149)]=_0x3d5834,this[_0x18c350(0x247)](),this[_0x18c350(0x23f)]());}[_0x112f11(0x23f)](){const _0x4faa50=_0x112f11;this[_0x4faa50(0x2dc)](this[_0x4faa50(0x368)][_0x4faa50(0xf5)][_0x4faa50(0x15e)](I[_0x4faa50(0x1ce)](()=>{const _0x109a52=_0x4faa50,_0x327d13=this[_0x109a52(0x368)]['getFocusedUnit']();return _0x327d13?this[_0x109a52(0x131)][_0x109a52(0x27b)](_0x327d13['getUnitId']()):I['of'](null);}),I[_0x4faa50(0x1ce)](_0xf1b880=>_0xf1b880?_0xf1b880[_0x4faa50(0xfc)]:I['of'](u[_0x4faa50(0x2f7)][_0x4faa50(0x1d6)])))['subscribe'](_0x528cd0=>{const _0x5282c2=_0x4faa50;this[_0x5282c2(0x2db)][_0x5282c2(0x159)](_0x528cd0);}));}[_0x112f11(0x247)](){const _0x4ad369=_0x112f11;this[_0x4ad369(0x2dc)](this[_0x4ad369(0x149)][_0x4ad369(0x231)](R[_0x4ad369(0x35c)][_0x4ad369(0x156)],()=>R[_0x4ad369(0x263)](ot({'status$':this['_status$'][_0x4ad369(0x38e)]()}),this['_injector'])));}},exports[_0x112f11(0x33a)]=rt([q(0x0,a[_0x112f11(0x2cf)]),q(0x1,a['Inject'](a[_0x112f11(0x32f)])),q(0x2,a[_0x112f11(0x277)](u[_0x112f11(0x2d6)])),q(0x3,R['IUIPartsService'])],exports[_0x112f11(0x33a)]);function ot(_0x27f1a8){const {status$:_0x53ea63}=_0x27f1a8;return function(){const _0xc081e6=_0x29e7;return P[_0xc081e6(0x21f)](it,{'status$':_0x53ea63});};}const Te=a[_0x112f11(0x295)](_0x112f11(0x285));var at=Object[_0x112f11(0x265)],ct=(_0x17ae67,_0x4a2e07,_0x369c96,_0x11df7f)=>{const _0x1e34dd=_0x112f11;for(var _0x510190=_0x11df7f>0x1?void 0x0:_0x11df7f?at(_0x4a2e07,_0x369c96):_0x4a2e07,_0x8ce58d=_0x17ae67[_0x1e34dd(0x132)]-0x1,_0x3b274b;_0x8ce58d>=0x0;_0x8ce58d--)(_0x3b274b=_0x17ae67[_0x8ce58d])&&(_0x510190=_0x3b274b(_0x510190)||_0x510190);return _0x510190;},Y=(_0x1ddf92,_0xe2f8e2)=>(_0x3eaaf0,_0x48ab7f)=>_0xe2f8e2(_0x3eaaf0,_0x48ab7f,_0x1ddf92);exports[_0x112f11(0x374)]=class extends a[_0x112f11(0x2a7)]{constructor(_0x6ac9d9,_0x36daa4,_0x2d7077,_0x41579d,_0x3a6083){const _0x2ca784=_0x112f11;super(),this[_0x2ca784(0x2f2)]=_0x6ac9d9,this[_0x2ca784(0x3ad)]=_0x36daa4,this[_0x2ca784(0x124)]=_0x2d7077,this['_dataLoaderService']=_0x41579d,_0x3a6083?_0x3a6083==null||_0x3a6083['whenReady']()['then'](()=>this[_0x2ca784(0x31e)]()):(this[_0x2ca784(0x3ad)]['debug']('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2ca784(0x31e)]());}async['_init'](){const _0x7a5915=_0x112f11,_0x53dbf5=this[_0x7a5915(0x2f2)]['getParam'](_0x7a5915(0x38c)),_0x1f6bbe=this[_0x7a5915(0x2f2)][_0x7a5915(0x1ab)](_0x7a5915(0x342)),_0x7a0dae=this[_0x7a5915(0x2f2)][_0x7a5915(0x1ab)](_0x7a5915(0x275));if(!_0x53dbf5||!_0x1f6bbe){this[_0x7a5915(0x3ad)][_0x7a5915(0x23d)](_0x7a5915(0x1f9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x28671a=await this['_dataLoaderService'][_0x7a5915(0x2b4)](_0x53dbf5,Number(_0x1f6bbe),_0x7a0dae);_0x28671a&&_0x28671a instanceof a['Workbook']&&this[_0x7a5915(0x30c)](_0x28671a);}async[_0x112f11(0x30c)](_0x48cdde){const _0x10ce43=_0x112f11;await this[_0x10ce43(0x19a)](_0x48cdde),_0x48cdde[_0x10ce43(0x223)][_0x10ce43(0x15e)](I[_0x10ce43(0x2a6)](this[_0x10ce43(0x33b)]))[_0x10ce43(0x1a4)](_0x4f9f5b=>{_0x4f9f5b&&this['_updateURLWithCurrentState'](_0x4f9f5b);}),this[_0x10ce43(0x2f2)][_0x10ce43(0x1ba)][_0x10ce43(0x15e)](I['takeUntil'](this[_0x10ce43(0x33b)]))[_0x10ce43(0x1a4)](()=>this['_updateSubUnitFromURLParams'](_0x48cdde));}[_0x112f11(0x143)](_0x5a6433,_0x16cdb0=!0x1){const _0x492270=_0x112f11,_0x3a0733=this[_0x492270(0x2f2)][_0x492270(0x1ab)](_0x492270(0x275));_0x5a6433[_0x492270(0x3a5)]()!==_0x3a0733&&this[_0x492270(0x2f2)][_0x492270(0x108)](_0x492270(0x275),_0x5a6433[_0x492270(0x3a5)](),_0x16cdb0);}async[_0x112f11(0x19a)](_0x5b7e63){const _0x13b13e=_0x112f11;var _0x5cf6d6;const _0x32b094=this[_0x13b13e(0x2f2)][_0x13b13e(0x1ab)](_0x13b13e(0x275));if(!_0x32b094||!_0x5b7e63[_0x13b13e(0x1db)](_0x32b094)){const _0x478aa0=_0x5b7e63[_0x13b13e(0x385)]()[0x0],_0xa74068=_0x5b7e63['getSheetBySheetId'](_0x478aa0);if(!_0xa74068)return;this[_0x13b13e(0x143)](_0xa74068,!0x0),await this['_commandService'][_0x13b13e(0x257)](v[_0x13b13e(0x127)]['id'],{'unitId':_0x5b7e63[_0x13b13e(0x1d3)](),'subUnitId':_0x478aa0});return;}((_0x5cf6d6=_0x5b7e63[_0x13b13e(0xfb)]())==null?void 0x0:_0x5cf6d6[_0x13b13e(0x3a5)]())!==_0x32b094&&await this[_0x13b13e(0x124)][_0x13b13e(0x257)](v[_0x13b13e(0x127)]['id'],{'unitId':_0x5b7e63[_0x13b13e(0x1d3)](),'subUnitId':_0x32b094});}},exports[_0x112f11(0x374)]=ct([Y(0x0,Te),Y(0x1,a[_0x112f11(0x12d)]),Y(0x2,a[_0x112f11(0x16e)]),Y(0x3,a['Inject'](u[_0x112f11(0x1cd)])),Y(0x4,a[_0x112f11(0x10b)](Ke['IRemoteInstanceService']))],exports[_0x112f11(0x374)]);var lt=Object[_0x112f11(0x265)],_t=(_0x32f594,_0x3ea944,_0x309acc,_0x1debf9)=>{const _0xbbc329=_0x112f11;for(var _0x1d454f=_0x1debf9>0x1?void 0x0:_0x1debf9?lt(_0x3ea944,_0x309acc):_0x3ea944,_0x46f57c=_0x32f594[_0xbbc329(0x132)]-0x1,_0x432cb2;_0x46f57c>=0x0;_0x46f57c--)(_0x432cb2=_0x32f594[_0x46f57c])&&(_0x1d454f=_0x432cb2(_0x1d454f)||_0x1d454f);return _0x1d454f;},be=(_0x4e8dff,_0x153949)=>(_0x2225b1,_0x29b9e5)=>_0x153949(_0x2225b1,_0x29b9e5,_0x4e8dff);let fe=class extends a['RxDisposable']{constructor(_0x5e01f8,_0x3b69e7){const _0x5f4cdd=_0x112f11;super(),this[_0x5f4cdd(0x1a6)]=_0x5e01f8,this['_imageIoService']=_0x3b69e7,this['_init']();}['_init'](){const _0x456496=_0x112f11,_0x71edde=this;this[_0x456496(0x2dc)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x573ab9=>{const _0x26a16b=_0x456496,_0x2d87fd=await _0x71edde[_0x26a16b(0x209)][_0x26a16b(0x192)](_0x573ab9);return _0x2d87fd?{'source':_0x2d87fd[_0x26a16b(0x187)],'imageSourceType':_0x2d87fd[_0x26a16b(0xf4)]}:null;}}));}};fe=_t([be(0x0,p[_0x112f11(0x17c)]),be(0x1,qe['IImageIoService'])],fe);const De=[_0x112f11(0x3a9),_0x112f11(0x36d),_0x112f11(0x2af),_0x112f11(0x322),_0x112f11(0x279),_0x112f11(0xfa)];class Oe extends a[_0x112f11(0x18b)]{constructor(){const _0x33ccd7=_0x112f11;super(...arguments),_(this,_0x33ccd7(0x34d),new Map()),_(this,_0x33ccd7(0x20c),0x0);}[_0x112f11(0x364)](_0x56a218){const _0x351e2f=_0x112f11;if(this['_assignedColors']['has'](_0x56a218))return this[_0x351e2f(0x34d)][_0x351e2f(0x243)](_0x56a218);const _0x281e80=De[this[_0x351e2f(0x20c)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%De[_0x351e2f(0x132)],this[_0x351e2f(0x34d)]['set'](_0x56a218,_0x281e80),_0x281e80;}}function Be(_0x43e282){let _0xbfa438='';for(const _0x19f292 of _0x43e282){const {startOffset:_0x3bee4b,endOffset:_0x24e91c,isActive:_0x50a83d,rangeType:_0x1fa9df,segmentId:_0x4a8022,segmentPage:_0x57e485}=_0x19f292;_0xbfa438['length']&&(_0xbfa438+=','),_0xbfa438+=_0x3bee4b+':'+_0x24e91c+':'+(_0x50a83d?'1':'0')+':'+_0x1fa9df+':'+_0x4a8022+':'+_0x57e485;}return _0xbfa438;}function ht(_0x2ed8cd){const _0x2bc499=_0x112f11,_0x5db7b2=_0x2ed8cd['split'](','),_0x3cd6cb=[];for(const _0x41a3a8 of _0x5db7b2){const [_0x3d54a2,_0x2bc8b9,_0x2fb1ad,_0xaadf89,_0x4901ab,_0x11ac5c]=_0x41a3a8[_0x2bc499(0x111)](':');_0x3cd6cb['push']({'startOffset':Number(_0x3d54a2),'endOffset':Number(_0x2bc8b9),'collapsed':_0x3d54a2===_0x2bc8b9,'isActive':_0x2fb1ad==='1','rangeType':_0xaadf89===a[_0x2bc499(0x212)][_0x2bc499(0x11f)]?a['DOC_RANGE_TYPE'][_0x2bc499(0x11f)]:a['DOC_RANGE_TYPE'][_0x2bc499(0x177)],'segmentId':typeof _0x4901ab=='string'?String(_0x4901ab):'','segmentPage':Number(_0x11ac5c!=null?_0x11ac5c:-0x1)});}return _0x3cd6cb['some'](_0x3a8004=>_0x3a8004[_0x2bc499(0x1e9)])||(_0x3cd6cb[0x0][_0x2bc499(0x1e9)]=!0x0),_0x3cd6cb;}class Re extends a[_0x112f11(0x2a7)]{constructor(){const _0x297d35=_0x112f11;super(...arguments),_(this,_0x297d35(0x393),new I['BehaviorSubject'](null)),_(this,_0x297d35(0x1fd),this['_collabCursorState$'][_0x297d35(0x38e)]());}[_0x112f11(0x262)](_0x31c084){const _0x1717fb=_0x112f11,{unitID:_0x313d1a,memberID:_0x1ccd85,textRanges:_0x189d00}=_0x31c084,_0x2055d0=Be(_0x189d00);if(_0x2055d0==='')return;const _0x3eee94={'unitID':_0x313d1a,'memberID':_0x1ccd85,'selection':_0x2055d0};this['_collabCursorState$'][_0x1717fb(0x159)](_0x3eee94);}}var ut=Object[_0x112f11(0x265)],It=(_0x36c822,_0x21f43f,_0x23851c,_0x227f1e)=>{for(var _0x5df7c3=_0x227f1e>0x1?void 0x0:_0x227f1e?ut(_0x21f43f,_0x23851c):_0x21f43f,_0x1d5c16=_0x36c822['length']-0x1,_0x184e77;_0x1d5c16>=0x0;_0x1d5c16--)(_0x184e77=_0x36c822[_0x1d5c16])&&(_0x5df7c3=_0x184e77(_0x5df7c3)||_0x5df7c3);return _0x5df7c3;},M=(_0x2f3e5c,_0x39a7d6)=>(_0x7c9803,_0x3912a9)=>_0x39a7d6(_0x7c9803,_0x3912a9,_0x2f3e5c);const dt=0x12c,St=0x64;let me=class extends a[_0x112f11(0x2a7)]{constructor(_0x4a6422,_0x42fd7b,_0x1a9d90,_0x3f6049,_0x5e06bb,_0x4cc40f,_0x554f23,_0x22b17b,_0x3bf8aa){const _0x1a6499=_0x112f11;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x1a6499(0x34b),new I[(_0x1a6499(0x1dd))](new Map())),_(this,_0x1a6499(0x1cc),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new I[(_0x1a6499(0x1dd))]([])),_(this,'roomMembers$',this[_0x1a6499(0x2d1)][_0x1a6499(0x15e)](I['debounceTime'](dt))),_(this,'_updateLocalCursor',a['debounce'](_0x35930c=>{const _0x98cbfd=_0x1a6499,_0x2c7cca={'eventID':g[_0x98cbfd(0x24e)][_0x98cbfd(0x1f5)],'data':{'unitID':this[_0x98cbfd(0x2ad)],'memberID':this[_0x98cbfd(0x2e7)][_0x98cbfd(0x259)](),'selection':Be(_0x35930c)}};this['_session'][_0x98cbfd(0x339)](_0x2c7cca,this[_0x98cbfd(0x2ad)]);},St)),(this[_0x1a6499(0x2ad)]=_0x4a6422,this['_session']=_0x42fd7b,this[_0x1a6499(0x399)]=_0x1a9d90,this['_colorAssignService']=_0x3f6049,this[_0x1a6499(0x32b)]=_0x5e06bb,this[_0x1a6499(0x13a)]=_0x4cc40f,this[_0x1a6499(0x14e)]=_0x554f23,this[_0x1a6499(0x368)]=_0x22b17b,this[_0x1a6499(0x124)]=_0x3bf8aa);}get[_0x112f11(0x1b7)](){return this['_cursorInfo$']['getValue']();}get[_0x112f11(0x2a4)](){const _0x30413b=_0x112f11;return this[_0x30413b(0x2d1)]['getValue']();}['dispose'](){const _0x3e6439=_0x112f11;super[_0x3e6439(0x2de)](),this[_0x3e6439(0x34b)][_0x3e6439(0x159)](new Map()),this['_cursorInfo$'][_0x3e6439(0x188)](),this[_0x3e6439(0x2d1)]['next']([]),this[_0x3e6439(0x2d1)][_0x3e6439(0x188)]();}[_0x112f11(0x278)](){const _0x472610=_0x112f11;this[_0x472610(0x31e)]||(this[_0x472610(0x31e)]=!0x0,this[_0x472610(0x2e7)][_0x472610(0x296)]['pipe'](I[_0x472610(0x2a6)](this['dispose$']))[_0x472610(0x1a4)](_0x4c749b=>{const _0x597d5b=_0x472610;_0x4c749b===u[_0x597d5b(0x2b6)][_0x597d5b(0x1d9)]?this['_toggleOnline']():this[_0x597d5b(0x1b6)]();}),this[_0x472610(0x2e7)][_0x472610(0x13d)]['pipe'](I[_0x472610(0x2a6)](this[_0x472610(0x33b)]))['subscribe'](_0x33dd7b=>{const _0x4f0ad2=_0x472610,_0x563839=_0x33dd7b[_0x4f0ad2(0x1ae)];_0x563839===g[_0x4f0ad2(0x24e)][_0x4f0ad2(0x1f5)]&&this[_0x4f0ad2(0x232)](_0x33dd7b),_0x563839===g[_0x4f0ad2(0x24e)][_0x4f0ad2(0x1fa)]&&this[_0x4f0ad2(0x2a8)](_0x33dd7b);}),this[_0x472610(0x2dc)](this[_0x472610(0x124)][_0x472610(0x12a)](_0x87c95e=>{const _0x5e4df4=_0x472610,_0x59b4b8=_0x87c95e[_0x5e4df4(0x298)];_0x59b4b8!=null&&this['_online']&&_0x87c95e['id']===V[_0x5e4df4(0x222)]['id']&&_0x59b4b8[_0x5e4df4(0x1bf)]===this[_0x5e4df4(0x2ad)]&&_0x59b4b8[_0x5e4df4(0x1e6)]===!0x1&&_0x59b4b8[_0x5e4df4(0x386)][_0x5e4df4(0x132)]>0x0&&this[_0x5e4df4(0x1ac)](_0x59b4b8[_0x5e4df4(0x386)]);})),this['_syncEditingCollabCursorService'][_0x472610(0x1fd)]['pipe'](I[_0x472610(0x2a6)](this[_0x472610(0x33b)]))[_0x472610(0x1a4)](_0x554bcb=>{const _0x311c39=_0x472610;if((_0x554bcb==null?void 0x0:_0x554bcb['unitID'])!==this[_0x311c39(0x2ad)])return;const _0x5dec0f={'eventID':g[_0x311c39(0x24e)][_0x311c39(0x1f5)],'data':_0x554bcb};this[_0x311c39(0x232)](_0x5dec0f);}),this[_0x472610(0x2dc)](this[_0x472610(0x124)]['onCommandExecuted'](_0x33d029=>{const _0x4f05a4=_0x472610;if(_0x33d029[_0x4f05a4(0x298)]==null)return;const _0x2b5205=_0x33d029['params'];if(_0x33d029['id']!==V[_0x4f05a4(0x395)]['id']||_0x2b5205[_0x4f05a4(0x1bf)]!==this[_0x4f05a4(0x2ad)])return;const _0x67c11d={'id':_0x4f05a4(0x2b0),'params':_0x2b5205},_0x5cfc8e=this['cursorInfo'];for(const [_0x3b6281,_0x1e6005]of _0x5cfc8e){const _0x15e0ab={'id':_0x4f05a4(0x2b0),'params':{'unitId':this[_0x4f05a4(0x2ad)],'actions':null,'textRanges':_0x1e6005['ranges']}},_0x2fec1d=this[_0x4f05a4(0x14e)][_0x4f05a4(0x1f4)](_0x67c11d,_0x15e0ab,!0x1);if(g['isTransformMutationFailure'](_0x2fec1d))throw _0x2fec1d[_0x4f05a4(0x351)];_0x5cfc8e[_0x4f05a4(0x17b)](_0x3b6281,{..._0x1e6005,'ranges':_0x2fec1d[_0x4f05a4(0x15f)]['params'][_0x4f05a4(0x220)]});}queueMicrotask(()=>{const _0x20f222=_0x4f05a4;this[_0x20f222(0x34b)][_0x20f222(0x159)](_0x5cfc8e);});})));}[_0x112f11(0x232)](_0x58bd69){const _0x4662ee=_0x112f11;var _0x134651,_0x585133;const {memberID:_0xd88fcf,selection:_0x135999}=_0x58bd69[_0x4662ee(0x34e)],_0x20bd17=ht(_0x135999),_0x2284aa=(_0x585133=(_0x134651=this['_memberService'][_0x4662ee(0x389)](this['unitID'],_0xd88fcf))==null?void 0x0:_0x134651[_0x4662ee(0x3a3)])!=null?_0x585133:_0x4662ee(0x3a6),_0xfc0962={'color':this[_0x4662ee(0x16c)][_0x4662ee(0x364)](_0xd88fcf),'name':_0x2284aa,'ranges':_0x20bd17},_0x178e50=this[_0x4662ee(0x1b7)];_0x178e50[_0x4662ee(0x17b)](_0xd88fcf,_0xfc0962),this[_0x4662ee(0x34b)][_0x4662ee(0x159)](_0x178e50);}[_0x112f11(0x2a8)](_0x30d557){const _0x453425=_0x112f11,{memberID:_0x55fd65}=_0x30d557[_0x453425(0x34e)],_0x9880ed=this[_0x453425(0x1b7)];_0x9880ed[_0x453425(0x375)](_0x55fd65),this['_cursorInfo$']['next'](_0x9880ed);}[_0x112f11(0x166)](){const _0x19d25e=_0x112f11;var _0x46cc3f;if(this[_0x19d25e(0x1c3)]=!0x0,((_0x46cc3f=this[_0x19d25e(0x368)][_0x19d25e(0x299)]())==null?void 0x0:_0x46cc3f[_0x19d25e(0x1d3)]())!==this[_0x19d25e(0x2ad)])return;const _0x1ad5c1=this['_injector'][_0x19d25e(0x243)](V[_0x19d25e(0x268)])[_0x19d25e(0x329)]();Array['isArray'](_0x1ad5c1)&&_0x1ad5c1[_0x19d25e(0x132)]>0x0&&this[_0x19d25e(0x1ac)](_0x1ad5c1);}['_toggleOffline'](){const _0x4c563a=_0x112f11;this[_0x4c563a(0x1c3)]=!0x1;}};me=It([M(0x2,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),M(0x3,a[_0x112f11(0x277)](Oe)),M(0x4,a[_0x112f11(0x277)](u['MemberService'])),M(0x5,a['Inject'](Re)),M(0x6,g[_0x112f11(0x2c3)]),M(0x7,a[_0x112f11(0x2cf)]),M(0x8,a[_0x112f11(0x16e)])],me);var ft=Object[_0x112f11(0x265)],mt=(_0x53eabc,_0x386036,_0x2e051e,_0x51686c)=>{const _0x5103b6=_0x112f11;for(var _0x306351=_0x51686c>0x1?void 0x0:_0x51686c?ft(_0x386036,_0x2e051e):_0x386036,_0x4dc526=_0x53eabc[_0x5103b6(0x132)]-0x1,_0x46e85c;_0x4dc526>=0x0;_0x4dc526--)(_0x46e85c=_0x53eabc[_0x4dc526])&&(_0x306351=_0x46e85c(_0x306351)||_0x306351);return _0x306351;},y=(_0x302396,_0x1b0ac7)=>(_0x2fc1fd,_0x1898bb)=>_0x1b0ac7(_0x2fc1fd,_0x1898bb,_0x302396);function _0x1d23(){const _0x3571ca=['clsx','_session','toDisposable','FromArray','_startSheetCollabCursor','restore','endColumn','_renderManagerService','Warning','IMessageService','with','enableLocalCache','_urlService','MemberService','_initEvent','parse','searchParams','CollaborationStatus','getLocalCacheKey','univerjs-icon\x20univerjs-icon-','handleIRemoveCol','http://www.w3.org/2000/svg','_saveCache','SUCCESS','code','ENSURE_SNAPSHOT_EXECUTION','Rect','selection','fillStyle','ThemeService','YUUMI_ALL_TABLES_IS_INVALID','PY_RUNTIME_SCRIPT_ERROR','FormulaExecuteStageType','getUniverSheetInstance','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_handleEvent','InsertRangeMoveDownCommandId','_currentUsage','_setupSubUnitSync','mutations','transformMutationsWithChangeset','_textBubble','OTHER_CLIENT_EDITING','setConfig','UNAUTHENTICATED','arc','1em','startRow','disableLocalCache','PERMISSION_DENIED','Rectangle','debounce','USER_IS_ANONYMOUS','_unitOnClients','ENTITLE_CAN_NOT_BUY_LOWER_OTP','WebSocketService','_init','_drawTextRange','getStateCache','_scheduleClearOtherTimer','red.300','_range','SUBMIT_CHANGESET_TIMEOUT','USER_NOT_INVITED_CODE','_initResize','isTransformMutationsWithChangesetSuccess','font','getDocRanges','createInstance','_memberService','totalFormulasToCalculate','replaceDocRanges','OffLineIcon','Injector','OFFLINE','_handleLeaveEvent','body','function','onPointerEnter$','YUUMI_UNABLE_LOAD_URL','_getAnchorBounding','useRef','forwardRef','send','DesktopCollaborationStatusDisplayController','dispose$','_document','DocStateChangeManagerService','DocSkeletonManagerService','collab-client.tooltip.reconnect','getSkeleton','USER_NOT_FOUND','type','getRangePointData','_collabSessionService','concat','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LOGIN_FAILED','IRenderManagerService','_initEntityListener','_getSaveTimeout','_cursorInfo$','CONFLICT','_assignedColors','data','univer-mr-2\x20univer-flex\x20univer-text-xl','getOwnPropertySymbols','error','fill','_instanceService','storage','popstate','12AvsMVp','transformIMECache','_maxFormulaLimit','6047451qTtqqW','_docTransformSelectionsService','addObject','BuiltInUIPart','replaceState','_send','m1Prime','endRow','measureText','children','TOO_MANY_REQUESTS','assignAColorForMemberID','FormulaExecutedStateType','getformulaLimitStatusUrl','/universer-api/license/formula/limit/done','_univerInstanceService','handleInsertRow','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','prototype','text','jiqing.500','REDEMPTION_INVALID_CODE','transform','getMergeData','_selfUnitIDs','_initCommandInterceptor','_createSocketURL','CollaborationDataLoaderController','delete','_beforeCloseService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_saveTaskMap','_scheduleSaving','ColorKit','startsWith','_localStorageService','hasOwnProperty','univer-flex\x20univer-items-center','labelPosition','transformByState','_lastPointer','_cursorShapes','path','_cursor','getUnhiddenWorksheets','ranges','translate(.97)','REDEMPTION_CODE_NOT_STARTED','getMember','useCallback','getActiveRange','unit','formula.calculation.started','asObservable','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_entityInit$','/universer-api/license/formula/limit/status','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_collabCursorState$','moveTo','RichTextEditingMutation','APPLY_NON_SEQUENTIAL_REVISION','generateRandomId','_unitStatus','_injector','defineProperty','_scene','subscribeEvent','newValue','entityInit$','0\x200\x2017\x2016','_shapes','_setFormulaLimitStatus','44768fXXWOy','name','black','getSheetId','Unknown\x20user','application/json','filter','purple.300','SheetSkeletonManagerService','stageInfo','_startCalculationLimit','_logService','2955540CGSxaQ','white','_refRangeService','has','ISnapshotServerService','show','imageSourceType','focused$','getTypeOfUnitAdded$','_transformPreviousActiveRange','_hovered','_transformUndoRedoStack','yellow.400','getActiveSheet','status$','handleInsertRangeMoveDown','flatMap','_disabled','contains','_configService','603752QmZHBi','IConfigService','_pollingInterval','off-line-icon','14ZNWwha','APPLY_REJECT','setParam','getAncestorScale','DocCollaborationEntity','Optional','CollaborationSocketService','now','YUUMI_SUBSCRIPTION_NOT_FOUND','saveOfflineData','WECHAT_HAS_BEEN_BOUND','split','NO_OTHER_CLIENTS_EDITING','none','tag','Failed','xlink:href','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','className','ENTITLE_REPORT_LIMIT_EXCEED','ISocketService','replace','...','currentTheme$','clearTimeout','TEXT','#FFF','entries','AUTHORIZE_CODE_ILLEGAL','_backgroundColor','_commandService','onTransformChange$','SHEET_VIEWPORT_KEY','SetWorksheetActivateCommand','UniverInstanceType','makeDirty','onCommandExecuted','CollaborationSessionService','symbol','ILogService','max','defs','_ensureSubject','_collaborationController','length','transformStateCache','touchDependencies','Vector2','registerDependencies','48lwkbzl','TEXT_RANGE_LAYER_INDEX','debounceTime','_syncEditingCollabCursorService','collabStatus.offline','registerRefRange','event$','INVITE_CODE_REQUIRED','location','SetFormulaCalculationNotificationMutation','drawWith','setTimeout','_updateURLWithCurrentState','key','ticket','getTypeOfUnitDisposed$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','collaboration.closeRoom','_uiPartsService','pluginName','onMouseMove','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','url(#$1','_transformService','YUUMI_ASYNCIO_CANCELLED','NodePositionConvertToRectRange','Success','collab-rect-range-','_docSkeletonManagerService','JOIN_ROOM_FAILED','SetDocZoomRatioOperation','HEADER_MENU','INotificationService','PAYMENT_CHANNEL_NOT_SUPPORT','next','_refreshCollabCursors','executionId','then','SetSelectionsOperation','pipe','m2Prime','_clearOtherTimers','icon','_render','forEach','getColor','on-line-icon','_toggleOnline','fillText','getColorFromTheme','fillRule','RefRangeService','all','_colorAssignService','_docTransformStateCacheService','ICommandService','addEventListener','runId','handleInsertRangeMoveRight','throttleTime','getItem','indexOf','collaboration-client.offline-data-not-saved','UnitStatus','RECT','CHANGESET_REVISION_CONFILICT','currentColor','DEFAULT_WS_SESSION_TICKET_URL','set','IDocClipboardService','UNIVER_DOC','_revisionService','_scheduleHeartbeat','ENTITLE_DUP_SUBSCRIPTION','svg','_labelPosition','WebURLService','trim','parseInt','setItem','source','complete','INVITE_CODE_ALREADY_BOUND','collab-text-anchor-','Disposable','onPointerLeave$','jsxs','height','RemoteUniscriptService','undoState','_config','saveImage','runRefRangeMutations','onStarting','findNodePositionByCharIndex','_getMergeRange','_id','_doCreateSocket','selections','_updateSubUnitFromURLParams','_notificationService','_heartbeatTimer','SYNCED','useDependency','MOBILE_HAS_BEEN_BOUND','_cursors','saveTaskMap','_startDocCollabCursor','2697888WYMZbJ','subscribe','on-line-icon_clip0_910_349','_docClipboardService','_initCommandExecutedListener','APPLY_PERMISSION_DENIED','hide','evenodd','getParam','_updateLocalCursor','MUTATION','eventID','_anchor','use','runOnServer','collabStatus.conflict','UNDEFINED','INVALID_INVITE_CODE','round','_toggleOffline','cursorInfo','getCoordByCell','range','urlChange$','values','redoState','resize','_hasFormulaInDirtyRanges','unitId','string','Tooltip','APPLY_REVISION_CONFILICT','_online','pushState','_name','InsertColCommandId','closePath','toString','_transformHistoryAndStateStack','LOCAL_CACHE_INTERVAL_KEY','_getScale','cursorInfo$','DataLoaderService','switchMap','getRelativeToViewportCoord','getRenderById','disposeUnit','handleInsertCol','getUnitId','setShapeProps','beginPath','NOT_COLLAB','PENDING','shareReplay','ONLINE','BrowserCollaborationSocketService','getSheetBySheetId','isTransformMutationFailure','BehaviorSubject','InsertRowCommandId','createSocket','Subject','width','_collaborationUIEventService','REDEMPTION_CODE_FULLY_REDEEMED','_setupBeforeClosingHandler','invokeId','isEditing','random','RevisionService','isActive','mask','stringify','CONNECTOR_DATA_TOO_LARGE','_handleJoinEvent','idSuffix','_checkAndWaitForCalculationPermission','_sheetSkeletonManagerService','addHandlerCallback','row','shift','transformMutation','UPDATE_CURSOR','UniverCollaborationClientUIPlugin','INVITE_CODE_HAS_BEEN_UES','_updateCollabCursors','[CollaborationDataLoaderController]','USERS_LEAVE','distinctUntilChanged','transformSelections','collabCursorState$','_taskIds','REDEMPTION_USER_NOT_ELIGIBLE','history','bottom','getCellMatrix','colorChannel1','href','YUUMI_CONNECTOR_URL_NOT_FOUND','_localeService','backgroundColor','ENTITLE_CHAT_LIMIT_EXCEED','_imageIoService','4LWtNOV','getVpScrollXYInfoByPosToVp','_colorIndex','color','setUndoRedoMutationParamsCache','post','displayName','_removeClearOtherTimer','DOC_RANGE_TYPE','_applyCommand','START_CALCULATION','getUndoRedoMutationParamsCache','onLocalMutation','div','LICENSE_IMPORT_SIZE_EXCEEDED','318211kMPNiD','RemoveColCommandId','_docSkeleton','_removeCollabCursors','_initDependencies','EMAIL_VERIFY_CODE_MISMATCH','jsx','textRanges','combineLatest','SetTextSelectionsOperation','activeSheet$','_getFormulaLimitStatus','getUnit','origin','defIds','deepClone','_handleHeartbeatEvent','size','beforeCommandExecuted','COMPLETION_FINISHED','Tools','EMAIL_HAS_BEEN_BOUND','triggerDblclick','5zoIull','registerComponent','_onCursorUpdate','LICENSE_DISTRO_REJECTED','add','_eventUnsubscribe','_anchorDot','DeleteRangeMoveLeftCommandId','CURRENT_STATUS_CANNOT_OPERATE','sheetID','serializeRangeWithSheet','INVALID_ARGUMENT','off-line-icon_clip0_910_343','debug','formula.calculation.unable','_initStatusListener','_getSheetObject','_hover','extend','get','_drawAnchor','Error','collab-text-range-','_initStatusComponent','_messageService','APPLY_DUPLICATED','SNAPSHOT_HAS_BEEN_REMOVED','_checkCalculationAvailable','getValue','LocaleService','CollaborationEvent','removeParam','collabStatus.synced','getCurrentUnitForType','toRgbString','_context','registerRenderModule','LOGIN_TOKEN_PROCESSING_FAILED','deserializeRangeWithSheet','executeCommand','getViewport','getMemberID','engine','REDEMPTION_CODE_INACTIVE','EffectRefRangId','assign','loadOfflineData','search','_docStateChangeManagerService','getCollabCursors$','syncEditingCollabCursor','connectInjector','onRendered','getOwnPropertyDescriptor','_clearPolling','_entities','DocSelectionManagerService','clipPath','getConfig','CollaborationUIEventService','ILocalCacheService','_localCacheService','fromEvent','UNRECOGNIZED','_color','FETCH_MISS','DisposableCollection','unsubscribe','column','subunit','reconnect','Inject','init','blue.400','YUUMI_NO_CUBOID_FOR_QUESTION','getCollabEntity$','_cachedData','Shape','currentSkeleton$','/run/','DependentOn','limitInfo','OTHER_CLIENTS_EDITING','_docTransformIMECacheService','permission.content','uni.network.url-service','from','save','/universer-api/license/formula/limit/start','YUUMI_AI_RUN_FAILED','_draw','unshift','handleDeleteRangeMoveUp','ERROR_AGAIN','M0\x200H16V16H0z','getUnitStatus$','clearInterval','releaseFormulaLimitUrl','_getSessionTicket','REDEMPTION_CODE_HAS_BEEN_CREATED','CommandType','createIdentifier','sessionStatus$','_themeService','params','getFocusedUnit','collaboration-client-ui.config','mergeOverrideWithDependencies','getCellPositionByOffset','_handleHover','_releaseCalculationLimit','collaboration.single-unit.warning','TRANSFORM_CHANGE_OBSERVABLE_TYPE','requireSession','_showGuardMessage','7687867rfOSyg','roomMembers','setAlpha','takeUntil','RxDisposable','_onCursorDelete','map','call','INTERNAL_ERROR','attrs','unitID','createElement','green.600','doc.mutation.rich-text-editing','_httpService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ALREADY_EXISTS','loadUnit','CollaborationUIEventId','SessionStatus','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CanceledError','NOT_FOUND','SOCKET_FAILED_RETRY','SNAPSHOT_INVALID_SNAPSHOT','merge','LICENSE_EXPORT_SIZE_EXCEEDED','UNIVER_SHEET','_drawRectRange','_hideTimer','docStateChange$','currentUsage','ITransformService','COLORS','lineTo','_onRefRangeChange','startColumn','RegularPolygon','session.connection-failed','rgba(255,\x20255,\x20255,\x200.01)','DocIMEInputManagerService','HTTPService','push','fromEventSubject','IUniverInstanceService','min','_roomMembers$','find','setActiveRange','apply','transformRemoteChangeset','CollaborationController','0\x200\x2016\x2016','RemoveRowCommandId','ACTIVE_UNIT_EVENT_CHANNEL','_lastResponseTimestamp','_status$','disposeWithMe','handleDeleteRangeMoveLeft','dispose','mapTo','MessageType','addObjects','_collabCursorController','isArray','collabStatus.notCollab','LICENSE_MAX_UNITS_EXCEEDED'];_0x1d23=function(){return _0x3571ca;};return _0x1d23();}const vt=0x12c,gt=0x64,Et=()=>{let _0x40611f=[],_0x343799=!0x1;return _0x4554eb=>{const _0xb06d06=_0x29e7;_0x40611f[_0xb06d06(0x2cd)](_0x4554eb),_0x343799||(_0x343799=!0x0,setTimeout(()=>{const _0x2c87eb=_0xb06d06;_0x40611f[_0x2c87eb(0x163)](_0x2374e6=>_0x2374e6()),_0x40611f=[],_0x343799=!0x1;}));};};let ve=class extends a['RxDisposable']{constructor(_0x56bba1,_0x29f7f3,_0x4c4b14,_0x3d3558,_0x5288e7,_0x4f78fb,_0x496a98,_0x13d8e2){const _0x117d3f=_0x112f11;super(),_(this,_0x117d3f(0x1c3),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x117d3f(0x1dd))](new Map())),_(this,'cursorInfo$',this[_0x117d3f(0x34b)]['asObservable']()),_(this,_0x117d3f(0x2d1),new I[(_0x117d3f(0x1dd))]([])),_(this,'roomMembers$',this[_0x117d3f(0x2d1)]['pipe'](I[_0x117d3f(0x139)](vt))),_(this,_0x117d3f(0x1ac),a[_0x117d3f(0x319)]((_0x42f0d8,_0x13155f)=>{const _0x979ba=_0x117d3f,_0x41d808={'eventID':g[_0x979ba(0x24e)][_0x979ba(0x1f5)],'data':{'unitID':this[_0x979ba(0x2ad)],'memberID':this[_0x979ba(0x2e7)][_0x979ba(0x259)](),'selection':B[_0x979ba(0x23a)](_0x42f0d8,_0x13155f[_0x979ba(0x1b9)])}};this[_0x979ba(0x2e7)][_0x979ba(0x339)](_0x41d808,this[_0x979ba(0x2ad)]);},gt)),(this['unitID']=_0x56bba1,this['_session']=_0x29f7f3,this[_0x117d3f(0x399)]=_0x4c4b14,this[_0x117d3f(0x16c)]=_0x3d3558,this[_0x117d3f(0x32b)]=_0x5288e7,this[_0x117d3f(0x368)]=_0x4f78fb,this['_commandService']=_0x496a98,this[_0x117d3f(0x3b0)]=_0x13d8e2);}get[_0x112f11(0x1b7)](){const _0x4b558b=_0x112f11;return this['_cursorInfo$'][_0x4b558b(0x24c)]();}get[_0x112f11(0x2a4)](){const _0x5a15de=_0x112f11;return this['_roomMembers$'][_0x5a15de(0x24c)]();}[_0x112f11(0x2de)](){const _0x2ae72a=_0x112f11;super['dispose'](),this[_0x2ae72a(0x34b)][_0x2ae72a(0x159)](new Map()),this[_0x2ae72a(0x34b)]['complete'](),this[_0x2ae72a(0x2d1)][_0x2ae72a(0x159)]([]),this[_0x2ae72a(0x2d1)]['complete']();}[_0x112f11(0x278)](){const _0x33b445=_0x112f11;this['_init']||(this['_init']=!0x0,this[_0x33b445(0x2e7)][_0x33b445(0x296)][_0x33b445(0x15e)](I['takeUntil'](this[_0x33b445(0x33b)]))['subscribe'](_0x4f684b=>{const _0x15e96e=_0x33b445;_0x4f684b===u[_0x15e96e(0x2b6)]['ONLINE']?this['_toggleOnline']():this[_0x15e96e(0x1b6)]();}),this[_0x33b445(0x2e7)][_0x33b445(0x13d)][_0x33b445(0x15e)](I[_0x33b445(0x2a6)](this[_0x33b445(0x33b)]))['subscribe'](_0x35eb26=>{const _0x2ca4e9=_0x33b445,_0x19752c=_0x35eb26[_0x2ca4e9(0x1ae)];_0x19752c===g[_0x2ca4e9(0x24e)][_0x2ca4e9(0x1f5)]&&this[_0x2ca4e9(0x232)](_0x35eb26),_0x19752c===g[_0x2ca4e9(0x24e)][_0x2ca4e9(0x1fa)]&&this[_0x2ca4e9(0x2a8)](_0x35eb26);}),this[_0x33b445(0x2c6)](),this[_0x33b445(0x2dc)](this[_0x33b445(0x124)][_0x33b445(0x12a)](_0x3cac70=>{const _0x4a0dfd=_0x33b445;if(this[_0x4a0dfd(0x1c3)]&&_0x3cac70['id']===v[_0x4a0dfd(0x15d)]['id']&&_0x3cac70[_0x4a0dfd(0x298)]['unitId']===this[_0x4a0dfd(0x2ad)]){const _0x35804e=_0x3cac70['params'];this[_0x4a0dfd(0x1ac)](_0x35804e['subUnitId'],_0x35804e[_0x4a0dfd(0x199)][0x0]);}})));}[_0x112f11(0x232)](_0x1fb4e9){const _0x384d33=_0x112f11;var _0x1cfe89,_0x42e324;const {memberID:_0x249daa,selection:_0x25bdf9}=_0x1fb4e9[_0x384d33(0x34e)],{sheetName:_0x4d02c3,range:_0x5bd066}=B[_0x384d33(0x256)](_0x25bdf9),_0xae0e34={'name':(_0x42e324=(_0x1cfe89=this[_0x384d33(0x32b)][_0x384d33(0x389)](this[_0x384d33(0x2ad)],_0x249daa))==null?void 0x0:_0x1cfe89[_0x384d33(0x3a3)])!=null?_0x42e324:'Unknown\x20user','range':this[_0x384d33(0x196)](_0x4d02c3,_0x5bd066),'sheetID':_0x4d02c3,'color':this[_0x384d33(0x16c)][_0x384d33(0x364)](_0x249daa),'selection':_0x25bdf9},_0x1e808d=this[_0x384d33(0x1b7)];_0x1e808d[_0x384d33(0x17b)](_0x249daa,_0xae0e34),this[_0x384d33(0x34b)][_0x384d33(0x159)](_0x1e808d);}[_0x112f11(0x2a8)](_0x4fe60a){const _0x2b5882=_0x112f11,{memberID:_0x553281}=_0x4fe60a[_0x2b5882(0x34e)],_0x38ec43=this[_0x2b5882(0x1b7)];_0x38ec43['delete'](_0x553281),this[_0x2b5882(0x34b)][_0x2b5882(0x159)](_0x38ec43);}[_0x112f11(0x196)](_0x52f819,_0x15e7ff){const _0x57067c=_0x112f11;var _0x153fcb,_0x1f3678;const _0x3c0f44=(_0x1f3678=(_0x153fcb=this[_0x57067c(0x368)][_0x57067c(0x307)](this[_0x57067c(0x2ad)]))==null?void 0x0:_0x153fcb[_0x57067c(0x1db)](_0x52f819))==null?void 0x0:_0x1f3678[_0x57067c(0x370)]();return(_0x3c0f44==null?void 0x0:_0x3c0f44[_0x57067c(0x2d2)](_0x52805e=>a[_0x57067c(0x318)][_0x57067c(0x100)](_0x52805e,_0x15e7ff)))||_0x15e7ff;}[_0x112f11(0x2c6)](){const _0x157cce=_0x112f11,_0x1e96c8=new a[(_0x157cce(0x272))](),_0x2231cf=Et(),_0x573ae2=()=>{const _0x34a5f2=_0x157cce;_0x1e96c8['dispose']();const _0x43fb8d=(_0x4af698,_0x5997b3,_0x4a4904,_0x4b0692)=>{const _0x524aa4=_0x29e7;let _0x61c71d=[];switch(_0x4af698['id']){case v[_0x524aa4(0x25c)][_0x524aa4(0x237)]:{_0x61c71d=v[_0x524aa4(0x2dd)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)]['DeleteRangeMoveUpCommandId']:{_0x61c71d=v[_0x524aa4(0x28c)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x1c6)]:{_0x61c71d=v[_0x524aa4(0x1d2)](_0x4af698,_0x4b0692);break;}case v['EffectRefRangId'][_0x524aa4(0x30a)]:{_0x61c71d=v[_0x524aa4(0xfd)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)]['InsertRangeMoveRightCommandId']:{_0x61c71d=v[_0x524aa4(0x171)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x1de)]:{_0x61c71d=v[_0x524aa4(0x369)](_0x4af698,_0x4b0692);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x61c71d=v['handleMoveRange'](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x21a)]:{_0x61c71d=v[_0x524aa4(0x2fa)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x2d8)]:{_0x61c71d=v['handleIRemoveRow'](_0x4af698,_0x4b0692);break;}}const _0xc656f3=v[_0x524aa4(0x193)](_0x61c71d,_0x4b0692),_0x395d3f=this[_0x524aa4(0x1b7)][_0x524aa4(0x243)](_0x5997b3);if(_0x395d3f&&_0xc656f3){const _0x469d0f={..._0x395d3f,'range':_0xc656f3};this[_0x524aa4(0x1b7)][_0x524aa4(0x17b)](_0x5997b3,_0x469d0f),_0x2231cf(()=>{const _0x4ea002=_0x524aa4,_0x5ccad1=this[_0x4ea002(0x3b0)][_0x4ea002(0x13c)](_0xc656f3,_0x243780=>(_0x5ccad1[_0x4ea002(0x2de)](),_0x43fb8d(_0x243780,_0x5997b3,_0x4a4904,_0xc656f3)));_0x1e96c8[_0x4ea002(0x234)](_0x5ccad1);});}return{'redos':[],'undos':[]};};this[_0x34a5f2(0x1b7)]['forEach']((_0xe86a83,_0x1977d5)=>{const _0x5e0f75=_0x34a5f2,{range:_0x22dad7,sheetID:_0x1b919e}=_0xe86a83,_0x22c41f=this[_0x5e0f75(0x3b0)][_0x5e0f75(0x13c)](_0x22dad7,_0x5c91df=>(_0x22c41f[_0x5e0f75(0x2de)](),_0x43fb8d(_0x5c91df,_0x1977d5,_0x1b919e,_0x22dad7)));_0x1e96c8['add'](_0x22c41f);});};this[_0x157cce(0x2dc)](a[_0x157cce(0x2e8)](this['_cursorInfo$'][_0x157cce(0x1a4)](()=>{_0x573ae2();})));}[_0x112f11(0x166)](){const _0x639d27=_0x112f11;var _0x4ddaa9,_0x25119b;if(this[_0x639d27(0x1c3)]=!0x0,((_0x4ddaa9=this[_0x639d27(0x368)][_0x639d27(0x299)]())==null?void 0x0:_0x4ddaa9[_0x639d27(0x1d3)]())!==this[_0x639d27(0x2ad)])return;const _0x209ac3=(_0x25119b=this[_0x639d27(0x399)]['get'](v['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x25119b[0x0],_0x165a2f=this[_0x639d27(0x368)][_0x639d27(0x251)](a[_0x639d27(0x128)][_0x639d27(0x2be)])[_0x639d27(0xfb)]();_0x209ac3&&_0x165a2f&&this[_0x639d27(0x1ac)](_0x165a2f['getSheetId'](),_0x209ac3);}[_0x112f11(0x1b6)](){const _0x5d914e=_0x112f11;this[_0x5d914e(0x1c3)]=!0x1;}};ve=mt([y(0x2,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),y(0x3,a[_0x112f11(0x277)](Oe)),y(0x4,a['Inject'](u[_0x112f11(0x2f3)])),y(0x5,a[_0x112f11(0x2cf)]),y(0x6,a[_0x112f11(0x16e)]),y(0x7,a[_0x112f11(0x277)](v[_0x112f11(0x16a)]))],ve);var Ct=Object[_0x112f11(0x265)],pt=(_0x175f3f,_0x2fa676,_0x21f239,_0x3be40b)=>{const _0x413063=_0x112f11;for(var _0x25882a=_0x3be40b>0x1?void 0x0:_0x3be40b?Ct(_0x2fa676,_0x21f239):_0x2fa676,_0x494e19=_0x175f3f[_0x413063(0x132)]-0x1,_0x336a99;_0x494e19>=0x0;_0x494e19--)(_0x336a99=_0x175f3f[_0x494e19])&&(_0x25882a=_0x336a99(_0x25882a)||_0x25882a);return _0x25882a;},ae=(_0x962f99,_0x4c5b2e)=>(_0x424277,_0x220ac7)=>_0x4c5b2e(_0x424277,_0x220ac7,_0x962f99);let F=class extends a['RxDisposable']{constructor(_0x1fff10,_0x1a6cae,_0x5a6eb7){const _0x3849b2=_0x112f11;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new I[(_0x3849b2(0x1e0))]()),(this[_0x3849b2(0x368)]=_0x1fff10,this['_injector']=_0x1a6cae,this['_collabSessionService']=_0x5a6eb7,this[_0x3849b2(0x31e)]());}[_0x112f11(0x2de)](){const _0x16e3de=_0x112f11;super[_0x16e3de(0x2de)](),this[_0x16e3de(0x390)]['complete'](),this[_0x16e3de(0x267)][_0x16e3de(0x163)](_0x1ae7c4=>_0x1ae7c4[_0x16e3de(0x2de)]());}['getCollabCursors$'](_0x486195){const _0x3931e1=_0x112f11;return this[_0x3931e1(0x267)]['has'](_0x486195)?this[_0x3931e1(0x267)]['get'](_0x486195)['cursorInfo$']:this[_0x3931e1(0x390)][_0x3931e1(0x15e)](I['filter'](_0x227052=>_0x227052[_0x3931e1(0x2ad)]===_0x486195),I[_0x3931e1(0x1ce)](_0x28d41e=>_0x28d41e['cursorInfo$']));}['_init'](){const _0x2e7a2a=_0x112f11;this['_univerInstanceService'][_0x2e7a2a(0xf6)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2e7a2a(0x15e)](I[_0x2e7a2a(0x2a6)](this[_0x2e7a2a(0x33b)]))[_0x2e7a2a(0x1a4)](async _0x42573f=>{const _0x167ae1=_0x2e7a2a,_0x134e61=_0x42573f[_0x167ae1(0x1d3)](),_0x1a9725=await this[_0x167ae1(0x2ea)](_0x134e61);this[_0x167ae1(0x390)][_0x167ae1(0x159)](_0x1a9725),this[_0x167ae1(0x267)][_0x167ae1(0x17b)](_0x134e61,_0x1a9725);}),this['_univerInstanceService'][_0x2e7a2a(0xf6)](a[_0x2e7a2a(0x128)][_0x2e7a2a(0x17d)])['pipe'](I['takeUntil'](this[_0x2e7a2a(0x33b)]))[_0x2e7a2a(0x15e)](I['filter'](_0x2f4154=>!_0x2f4154[_0x2e7a2a(0x1d3)]()[_0x2e7a2a(0x37b)]('__')))[_0x2e7a2a(0x1a4)](async _0x5643ad=>{const _0x18218c=_0x2e7a2a,_0x5ef9ca=_0x5643ad[_0x18218c(0x1d3)](),_0x46586e=await this[_0x18218c(0x1a2)](_0x5ef9ca);this[_0x18218c(0x390)]['next'](_0x46586e),this[_0x18218c(0x267)]['set'](_0x5ef9ca,_0x46586e);}),I[_0x2e7a2a(0x2bc)](this[_0x2e7a2a(0x368)][_0x2e7a2a(0x146)](a[_0x2e7a2a(0x128)][_0x2e7a2a(0x17d)]),this[_0x2e7a2a(0x368)][_0x2e7a2a(0x146)](a[_0x2e7a2a(0x128)][_0x2e7a2a(0x2be)]))[_0x2e7a2a(0x15e)](I['takeUntil'](this[_0x2e7a2a(0x33b)]))[_0x2e7a2a(0x1a4)](_0x427ab4=>{const _0x78d2a1=_0x2e7a2a,_0x1864fa=_0x427ab4[_0x78d2a1(0x1d3)](),_0x5b74ee=this[_0x78d2a1(0x267)][_0x78d2a1(0x243)](_0x1864fa);_0x5b74ee&&(_0x5b74ee[_0x78d2a1(0x2de)](),this[_0x78d2a1(0x267)][_0x78d2a1(0x375)](_0x1864fa));});}async[_0x112f11(0x2ea)](_0x113e5f){const _0x2f1d1d=_0x112f11,_0x5573a3=await this[_0x2f1d1d(0x344)][_0x2f1d1d(0x2a1)](_0x113e5f),_0x139201=this[_0x2f1d1d(0x399)]['createInstance'](ve,_0x113e5f,_0x5573a3);return _0x139201[_0x2f1d1d(0x278)](),_0x139201;}async[_0x112f11(0x1a2)](_0x5c62f7){const _0x4ebe91=_0x112f11,_0x4d91cc=await this[_0x4ebe91(0x344)][_0x4ebe91(0x2a1)](_0x5c62f7),_0x1cdfe8=this['_injector'][_0x4ebe91(0x32a)](me,_0x5c62f7,_0x4d91cc);return _0x1cdfe8[_0x4ebe91(0x278)](),_0x1cdfe8;}};F=pt([ae(0x0,a['IUniverInstanceService']),ae(0x1,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),ae(0x2,a['Inject'](u[_0x112f11(0x12b)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0xf2a38,_0x235370){const _0x227b16=_0x112f11;let {radius:_0x89473c,width:_0x562799,height:_0x42537c}=_0x235370;_0x89473c=_0x89473c!=null?_0x89473c:0x0,_0x562799=_0x562799!=null?_0x562799:0x1e,_0x42537c=_0x42537c!=null?_0x42537c:0x1e;let _0x13c606=0x0,_0x5b8427=0x0,_0x2dc1c0=0x0;_0x13c606=_0x5b8427=_0x2dc1c0=Math[_0x227b16(0x2d0)](_0x89473c,_0x562799/0x2,_0x42537c/0x2),_0xf2a38[_0x227b16(0x1d5)](),_0xf2a38[_0x227b16(0x394)](_0x13c606,0x0),_0xf2a38[_0x227b16(0x2c5)](_0x562799-_0x5b8427,0x0),_0xf2a38[_0x227b16(0x313)](_0x562799-_0x5b8427,_0x5b8427,_0x5b8427,Math['PI']*0x3/0x2,0x0,!0x1),_0xf2a38[_0x227b16(0x2c5)](_0x562799,_0x42537c-_0x2dc1c0),_0xf2a38[_0x227b16(0x313)](_0x562799-_0x2dc1c0,_0x42537c-_0x2dc1c0,_0x2dc1c0,0x0,Math['PI']/0x2,!0x1),_0xf2a38[_0x227b16(0x2c5)](0x0,_0x42537c),_0xf2a38[_0x227b16(0x2c5)](0x0,_0x13c606),_0xf2a38[_0x227b16(0x313)](_0x13c606,_0x13c606,_0x13c606,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xf2a38[_0x227b16(0x1c7)](),_0x235370[_0x227b16(0x352)]&&(_0xf2a38[_0x227b16(0x287)](),_0xf2a38[_0x227b16(0x302)]=_0x235370[_0x227b16(0x352)],_0x235370[_0x227b16(0x169)]==='evenodd'?_0xf2a38[_0x227b16(0x352)](_0x227b16(0x1aa)):_0xf2a38[_0x227b16(0x352)](),_0xf2a38[_0x227b16(0x2eb)]());}class ne extends C[_0x112f11(0x27d)]{constructor(_0x1bed95,_0x207836){const _0x21a81a=_0x112f11;super(_0x1bed95,_0x207836),_(this,_0x21a81a(0x20d)),_(this,_0x21a81a(0x36c)),(this['color']=_0x207836==null?void 0x0:_0x207836[_0x21a81a(0x20d)],this['text']=_0x207836==null?void 0x0:_0x207836[_0x21a81a(0x36c)]);}static[_0x112f11(0x141)](_0x2ee5a6,_0x2bd442){const _0x2fcf1c=_0x112f11,{text:_0x290abb,color:_0x33d568}=_0x2bd442;_0x2ee5a6[_0x2fcf1c(0x287)](),_0x2ee5a6[_0x2fcf1c(0x328)]=_0x2fcf1c(0x392);const _0x24fce2=_0x2ee5a6['measureText'](_0x290abb)[_0x2fcf1c(0x1e1)],_0x28419c=Math['min'](_0x24fce2+0x2*ce,Ne);Ot(_0x2ee5a6,{'height':K,'radius':0x4,'width':_0x28419c,'fill':_0x33d568}),_0x2ee5a6[_0x2fcf1c(0x302)]=_0x2fcf1c(0x120);const _0x33ca99=ce,_0x598ef6=K-Tt,_0x3f4522=Ne-0x2*ce;if(_0x24fce2>_0x3f4522){let _0x54299c='',_0x3c6cf2=0x0;for(const _0x1a1ef6 of _0x290abb){const _0x2bbbd5=_0x2ee5a6[_0x2fcf1c(0x361)](_0x1a1ef6)[_0x2fcf1c(0x1e1)];if(_0x3c6cf2+_0x2bbbd5<=_0x3f4522-_0x2ee5a6[_0x2fcf1c(0x361)]('...')[_0x2fcf1c(0x1e1)])_0x54299c+=_0x1a1ef6,_0x3c6cf2+=_0x2bbbd5;else{_0x54299c+=_0x2fcf1c(0x11c);break;}}_0x2ee5a6[_0x2fcf1c(0x167)](_0x54299c,_0x33ca99,_0x598ef6);}else _0x2ee5a6['fillText'](_0x290abb,_0x33ca99,_0x598ef6);_0x2ee5a6[_0x2fcf1c(0x2eb)]();}[_0x112f11(0x28a)](_0x303d1b){const _0x2f671d=_0x112f11;ne[_0x2f671d(0x141)](_0x303d1b,this);}}const le=_0x112f11(0x18a),Rt=_0x112f11(0x246),bt=_0x112f11(0x152),H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0x112f11(0x2ca);class Ue{constructor(_0x1669d1,_0x2eb17c,_0x5c3153,_0x2b3062){const _0x2471ab=_0x112f11;_(this,_0x2471ab(0x3a0),[]),_(this,_0x2471ab(0x1af),null),_(this,_0x2471ab(0x30f),null),_(this,'_anchorDot',null),_(this,_0x2471ab(0x2c0),null),_(this,_0x2471ab(0x235),null),(this['_cursor']=_0x1669d1,this[_0x2471ab(0x39b)]=_0x2eb17c,this[_0x2471ab(0x21b)]=_0x5c3153,this[_0x2471ab(0x33c)]=_0x2b3062,this['_render']());}set['_hover'](_0x216b5b){const _0x1f4486=_0x112f11;_0x216b5b?(this[_0x1f4486(0x236)]&&this[_0x1f4486(0x236)][_0x1f4486(0x1a9)](),this[_0x1f4486(0x30f)]&&this[_0x1f4486(0x30f)][_0x1f4486(0xf3)]()):(this[_0x1f4486(0x236)]&&this[_0x1f4486(0x236)][_0x1f4486(0xf3)](),this[_0x1f4486(0x30f)]&&this[_0x1f4486(0x30f)]['hide']());}[_0x112f11(0x2de)](){const _0x5bbf32=_0x112f11;for(const _0x272dd7 of this['_shapes'])_0x272dd7[_0x5bbf32(0x2de)]();this['_textBubble']&&this[_0x5bbf32(0x30f)]['dispose'](),this[_0x5bbf32(0x236)]&&this[_0x5bbf32(0x236)]['dispose'](),this[_0x5bbf32(0x1af)]&&this['_anchor'][_0x5bbf32(0x2de)](),this[_0x5bbf32(0x235)]&&this[_0x5bbf32(0x235)]();}[_0x112f11(0x162)](){const _0x270551=_0x112f11;var _0x444738;const {_docSkeleton:_0x219627,_document:_0x652f33}=this,{color:_0x5053ad,name:_0x550b72,ranges:_0x4bb485}=this[_0x270551(0x384)],_0x326991=_0x652f33['getOffsetConfig'](),{docsLeft:_0x5bc1ae,docsTop:_0x1e6e49}=_0x326991,_0x2c6d1a=new p['NodePositionConvertToCursor'](_0x326991,_0x219627);for(const {startOffset:_0x2b65ee,endOffset:_0x584b00,rangeType:_0x8e5ccd,segmentId:_0x53d5bc,segmentPage:_0x69580b,collapsed:_0x2c6071,isActive:_0x2200f0}of _0x4bb485){const _0x27e7c5=_0x219627[_0x270551(0x195)](_0x2b65ee,!0x0,_0x53d5bc,_0x69580b);let _0x3afd0c=_0x219627[_0x270551(0x195)](_0x584b00,!0x0,_0x53d5bc,_0x69580b);if(_0x3afd0c==null&&(_0x3afd0c=_0x219627[_0x270551(0x195)](_0x584b00-0x1,!0x1,_0x53d5bc,_0x69580b)),_0x2200f0){const {contentBoxPointGroup:_0x57d534}=_0x2c6d1a[_0x270551(0x343)](_0x3afd0c,_0x3afd0c);if(_0x57d534[_0x270551(0x132)]===0x0)continue;this[_0x270551(0x244)](_0x5053ad,_0x57d534,_0x5bc1ae,_0x1e6e49,_0x550b72),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x27e7c5&&_0x3afd0c){if(_0x8e5ccd===a['DOC_RANGE_TYPE'][_0x270551(0x177)]){const _0x57be9c=new p[(_0x270551(0x150))](_0x326991,_0x219627),{pointGroup:_0x20e24f}=(_0x444738=_0x57be9c[_0x270551(0x343)](_0x27e7c5,_0x3afd0c))!=null?_0x444738:{};if(_0x20e24f==null||_0x20e24f[_0x270551(0x132)]===0x0)continue;this['_drawRectRange'](_0x5053ad,_0x20e24f,_0x5bc1ae,_0x1e6e49);}else{if(!_0x2c6071){const {borderBoxPointGroup:_0x5ec46b}=_0x2c6d1a[_0x270551(0x343)](_0x27e7c5,_0x3afd0c);if(_0x5ec46b[_0x270551(0x132)]===0x0)continue;this[_0x270551(0x31f)](_0x5053ad,_0x5ec46b,_0x5bc1ae,_0x1e6e49);}}}}}['_drawAnchor'](_0x2b3d14,_0x3c4f2d,_0x346791,_0x1a2b82,_0x463339){const _0x4b04f6=_0x112f11,_0xf41096=this[_0x4b04f6(0x336)](_0x3c4f2d),{left:_0x5e865a,top:_0x3ebaad,height:_0x1fc6b3}=_0xf41096,_0x29cbc9=this['_getScale'](),_0x35d290=Nt/_0x29cbc9,_0x50ee1d=new C[(_0x4b04f6(0x300))](le+a[_0x4b04f6(0x397)](H),{'left':_0x5e865a+_0x346791-_0x35d290,'top':_0x3ebaad+_0x1a2b82,'height':_0x1fc6b3,'width':Dt,'fill':_0x2b3d14||C[_0x4b04f6(0x164)](a[_0x4b04f6(0x2c4)][_0x4b04f6(0x3a4)],0x0),'strokeWidth':_0x35d290,'stroke':Ut,'evented':!0x0});this[_0x4b04f6(0x1af)]=_0x50ee1d,this[_0x4b04f6(0x39b)][_0x4b04f6(0x35b)](_0x50ee1d,p[_0x4b04f6(0x138)]);const _0x5285ae=new C[(_0x4b04f6(0x300))](le+a[_0x4b04f6(0x397)](H),{'left':_0x5e865a+_0x346791-_0x35d290,'top':_0x3ebaad+_0x1a2b82-_e/0x2,'height':_e,'width':_e,'fill':_0x2b3d14||C['getColor'](a[_0x4b04f6(0x2c4)][_0x4b04f6(0x3a4)],0x0),'strokeWidth':0x0,'stroke':_0x2b3d14||C[_0x4b04f6(0x164)](a['COLORS'][_0x4b04f6(0x3a4)],0x0),'evented':!0x1});this[_0x4b04f6(0x236)]=_0x5285ae,this[_0x4b04f6(0x39b)][_0x4b04f6(0x35b)](_0x5285ae,p[_0x4b04f6(0x138)]);const _0xb90cc9=new ne(le+a[_0x4b04f6(0x397)](H),{'left':_0x5e865a+_0x346791-_0x35d290,'top':_0x3ebaad+_0x1a2b82-K,'text':_0x463339,'color':_0x2b3d14});this['_textBubble']=_0xb90cc9,this[_0x4b04f6(0x39b)][_0x4b04f6(0x35b)](_0xb90cc9,p[_0x4b04f6(0x138)]),this[_0x4b04f6(0x241)]=!0x1;}[_0x112f11(0x29d)](){const _0x2b42ed=_0x112f11,_0x48c51e=this[_0x2b42ed(0x1af)][_0x2b42ed(0x334)][_0x2b42ed(0x39c)](()=>{this['_hover']=!0x0;}),_0x393a05=this[_0x2b42ed(0x1af)][_0x2b42ed(0x18c)][_0x2b42ed(0x39c)](()=>{const _0x3c2018=_0x2b42ed;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x3c2018(0x2c0)]=setTimeout(()=>{const _0x61b8b2=_0x3c2018;this[_0x61b8b2(0x241)]=!0x1;},0x7d0);});return()=>{const _0x1282b1=_0x2b42ed;_0x48c51e[_0x1282b1(0x273)](),_0x393a05[_0x1282b1(0x273)]();};}[_0x112f11(0x31f)](_0x1feb9c,_0x3cc776,_0x5c800f,_0x52bff0){const _0x54a99b=_0x112f11,_0x51631d=new a[(_0x54a99b(0x37a))](_0x1feb9c)[_0x54a99b(0x2a5)](0.2)[_0x54a99b(0x252)](),_0x33e84d=new C[(_0x54a99b(0x2c8))](Rt+a[_0x54a99b(0x397)](H),{'pointsGroup':_0x3cc776,'fill':_0x51631d||C['getColor'](a[_0x54a99b(0x2c4)]['black'],0.2),'left':_0x5c800f,'top':_0x52bff0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x54a99b(0x3a0)][_0x54a99b(0x2cd)](_0x33e84d),this[_0x54a99b(0x39b)][_0x54a99b(0x35b)](_0x33e84d,p[_0x54a99b(0x138)]);}[_0x112f11(0x2bf)](_0x5038e1,_0x41e6cb,_0x4b10c1,_0x3096d9){const _0x50f564=_0x112f11,_0x4a0cc1=new a['ColorKit'](_0x5038e1)[_0x50f564(0x2a5)](0.2)[_0x50f564(0x252)](),_0xf15c70=new C['RegularPolygon'](bt+a[_0x50f564(0x397)](H),{'pointsGroup':_0x41e6cb,'fill':_0x4a0cc1||C[_0x50f564(0x164)](a[_0x50f564(0x2c4)][_0x50f564(0x3a4)],0.2),'left':_0x4b10c1,'top':_0x3096d9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x50f564(0x3a0)][_0x50f564(0x2cd)](_0xf15c70),this['_scene'][_0x50f564(0x35b)](_0xf15c70,p[_0x50f564(0x138)]);}[_0x112f11(0x336)](_0x4d6f57){const _0x2ed6e0=_0x4d6f57[0x0],_0x1c41b3=_0x2ed6e0[0x0],_0x56860a=_0x2ed6e0[0x2],{x:_0x1287e1,y:_0x16f985}=_0x1c41b3,{x:_0x48b063,y:_0x8a4ba9}=_0x56860a;return{'left':_0x1287e1,'top':_0x16f985,'width':_0x48b063-_0x1287e1,'height':_0x8a4ba9-_0x16f985};}[_0x112f11(0x1cb)](){const _0x5189bf=_0x112f11,{scaleX:_0x49ed6f,scaleY:_0x3aa864}=this[_0x5189bf(0x39b)][_0x5189bf(0x109)]();return Math[_0x5189bf(0x12e)](_0x49ed6f,_0x3aa864);}}var Lt=Object[_0x112f11(0x265)],Mt=(_0x1750ec,_0x45be3c,_0x321544,_0x50bb1c)=>{const _0x2c2068=_0x112f11;for(var _0x412723=_0x50bb1c>0x1?void 0x0:_0x50bb1c?Lt(_0x45be3c,_0x321544):_0x45be3c,_0xc8712=_0x1750ec[_0x2c2068(0x132)]-0x1,_0x997ded;_0xc8712>=0x0;_0xc8712--)(_0x997ded=_0x1750ec[_0xc8712])&&(_0x412723=_0x997ded(_0x412723)||_0x412723);return _0x412723;},z=(_0x4875dc,_0x272070)=>(_0x45b963,_0xea378a)=>_0x272070(_0x45b963,_0xea378a,_0x4875dc);let ge=class extends a[_0x112f11(0x2a7)]{constructor(_0xf48ac0,_0x295175,_0x183ec0,_0x298a04,_0x4217a6){const _0x2b3ee6=_0x112f11;super(),_(this,_0x2b3ee6(0x382),[]),_(this,_0x2b3ee6(0x1a0),[]),(this[_0x2b3ee6(0x253)]=_0xf48ac0,this[_0x2b3ee6(0x153)]=_0x295175,this[_0x2b3ee6(0x2e2)]=_0x183ec0,this[_0x2b3ee6(0x124)]=_0x298a04,this[_0x2b3ee6(0x297)]=_0x4217a6,this[_0x2b3ee6(0x31e)]());}[_0x112f11(0x31e)](){const _0x20fe1b=_0x112f11,_0x2f320c=this[_0x20fe1b(0x253)][_0x20fe1b(0x1bf)],_0x52b98b=this[_0x20fe1b(0x153)];this[_0x20fe1b(0x2dc)](I[_0x20fe1b(0x221)]([this[_0x20fe1b(0x2e2)]['getCollabCursors$'](_0x2f320c),this[_0x20fe1b(0x297)][_0x20fe1b(0x11d)]])['pipe']($[_0x20fe1b(0x2a9)](([_0x381850,_0x4d3752])=>({'skeleton':_0x52b98b['getSkeleton'](),'cursors':[..._0x381850['values']()][_0x20fe1b(0xfe)](_0x241667=>({..._0x241667,'color':this['_themeService'][_0x20fe1b(0x168)](_0x241667[_0x20fe1b(0x20d)])}))})))[_0x20fe1b(0x1a4)](_0x14f530=>{if(this['_removeCollabCursors'](),_0x14f530){const {skeleton:_0x48cfe5,cursors:_0x33fa38}=_0x14f530;this['_updateCollabCursors'](_0x48cfe5,_0x33fa38);}})),this[_0x20fe1b(0x326)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x4adeb7,_0x1e08a8){const _0x2b18b5=_0x112f11,{scene:_0x364598,mainComponent:_0x2a340d}=this['_context'],_0x693970=_0x1e08a8[_0x2b18b5(0x2a9)](_0x5033b2=>new Ue(_0x5033b2,_0x364598,_0x4adeb7,_0x2a340d));this[_0x2b18b5(0x382)]=_0x693970,this[_0x2b18b5(0x1a0)]=_0x1e08a8;}[_0x112f11(0x15a)](){const _0x7e6c2a=_0x112f11;this[_0x7e6c2a(0x21c)]();const {scene:_0x5a6413,mainComponent:_0x319652}=this[_0x7e6c2a(0x253)],_0xb6cacf=this[_0x7e6c2a(0x153)][_0x7e6c2a(0x340)](),_0x449c99=this[_0x7e6c2a(0x1a0)][_0x7e6c2a(0x2a9)](_0x3c5414=>new Ue(_0x3c5414,_0x5a6413,_0xb6cacf,_0x319652));this['_cursorShapes']=_0x449c99;}[_0x112f11(0x21c)](){const _0x397f8c=_0x112f11;this[_0x397f8c(0x382)][_0x397f8c(0x163)](_0x573c7f=>_0x573c7f[_0x397f8c(0x2de)]()),this[_0x397f8c(0x382)]=[];}[_0x112f11(0x1a7)](){const _0x351d9e=_0x112f11,_0x349955=[p[_0x351d9e(0x155)]['id']];this[_0x351d9e(0x2dc)](this['_commandService'][_0x351d9e(0x12a)](_0x3fb38a=>{const _0x569dae=_0x351d9e;_0x349955['includes'](_0x3fb38a['id'])&&_0x3fb38a[_0x569dae(0x298)][_0x569dae(0x1bf)]===this[_0x569dae(0x253)][_0x569dae(0x1bf)]&&this[_0x569dae(0x15a)]();}));}['_initResize'](){const _0xf9ab81=_0x112f11;this[_0xf9ab81(0x2dc)](a[_0xf9ab81(0x2ce)](this[_0xf9ab81(0x253)][_0xf9ab81(0x25a)][_0xf9ab81(0x125)])[_0xf9ab81(0x15e)]($[_0xf9ab81(0x3a8)](_0x5484bb=>_0x5484bb['type']===C[_0xf9ab81(0x2a0)][_0xf9ab81(0x1bd)]),$[_0xf9ab81(0x172)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};ge=Mt([z(0x1,a[_0x112f11(0x277)](V[_0x112f11(0x33e)])),z(0x2,a[_0x112f11(0x277)](F)),z(0x3,a[_0x112f11(0x16e)]),z(0x4,a[_0x112f11(0x277)](a[_0x112f11(0x303)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0x112f11(0x27d)]{constructor(_0x4d7c16,_0x35791d){const _0x162ac2=_0x112f11;super(_0x4d7c16,_0x35791d),_(this,'_color'),_(this,_0x162ac2(0xf8),!0x1),_(this,_0x162ac2(0x323)),_(this,_0x162ac2(0x1c5),''),_(this,_0x162ac2(0x182),'top'),_(this,_0x162ac2(0x123)),(_0x35791d&&this[_0x162ac2(0x1d4)](_0x35791d),this[_0x162ac2(0x334)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x162ac2(0x18c)][_0x162ac2(0x39c)](()=>this[_0x162ac2(0x1d4)]({'hovered':!0x1})));}['setShapeProps'](_0x10bc8b){const _0xd816ed=_0x112f11;var _0x16ac3e,_0x548a85,_0x4cc8a2,_0x32b512,_0x5ae56c,_0xf3fd6d;this[_0xd816ed(0x270)]=(_0x16ac3e=_0x10bc8b[_0xd816ed(0x20d)])!=null?_0x16ac3e:this[_0xd816ed(0x270)],this[_0xd816ed(0xf8)]=(_0x548a85=_0x10bc8b['hovered'])!=null?_0x548a85:this[_0xd816ed(0xf8)],this[_0xd816ed(0x323)]=(_0x4cc8a2=_0x10bc8b[_0xd816ed(0x1b9)])!=null?_0x4cc8a2:this[_0xd816ed(0x323)],this[_0xd816ed(0x1c5)]=(_0x32b512=_0x10bc8b['name'])!=null?_0x32b512:this[_0xd816ed(0x1c5)],this[_0xd816ed(0x182)]=(_0x5ae56c=_0x10bc8b[_0xd816ed(0x37f)])!=null?_0x5ae56c:this[_0xd816ed(0x182)],this[_0xd816ed(0x123)]=(_0xf3fd6d=_0x10bc8b[_0xd816ed(0x207)])!=null?_0xf3fd6d:this[_0xd816ed(0x123)],this[_0xd816ed(0x380)]({'width':_0x10bc8b[_0xd816ed(0x1e1)],'height':_0x10bc8b[_0xd816ed(0x18e)]});}[_0x112f11(0x14b)](_0x469543){const _0x3a227c=_0x112f11,{row:_0x1a00db,column:_0x115391}=_0x469543;if(_0x1a00db>=this[_0x3a227c(0x323)][_0x3a227c(0x315)]&&_0x1a00db<=this[_0x3a227c(0x323)]['endRow']&&_0x115391>=this[_0x3a227c(0x323)][_0x3a227c(0x2c7)]&&_0x115391<=this[_0x3a227c(0x323)]['endColumn']){this[_0x3a227c(0x1d4)]({'hovered':!0x0});return;}this[_0x3a227c(0x1d4)]({'hovered':!0x1});}[_0x112f11(0x22f)](_0x197835){return!0x1;}[_0x112f11(0x28a)](_0x3f2ce9){const _0x507288=_0x112f11;C[_0x507288(0x300)][_0x507288(0x141)](_0x3f2ce9,{'width':this['width'],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x507288(0x270)],'evented':!0x1,'fill':this[_0x507288(0x123)]}),this[_0x507288(0xf8)]&&(_0x3f2ce9[_0x507288(0x287)](),_0x3f2ce9[_0x507288(0x36f)](0x1,0x0,0x0,0x1,this['width'],this[_0x507288(0x182)]==='bottom'?0x0:-K),ne[_0x507288(0x141)](_0x3f2ce9,{'text':this[_0x507288(0x1c5)],'color':this[_0x507288(0x270)]}),_0x3f2ce9[_0x507288(0x2eb)]());}}var wt=Object[_0x112f11(0x265)],yt=(_0x564172,_0x3a6ae2,_0x4c52ba,_0x30e663)=>{const _0x3262cb=_0x112f11;for(var _0x1e3ff4=_0x30e663>0x1?void 0x0:_0x30e663?wt(_0x3a6ae2,_0x4c52ba):_0x3a6ae2,_0x1687af=_0x564172[_0x3262cb(0x132)]-0x1,_0x40cc6e;_0x1687af>=0x0;_0x1687af--)(_0x40cc6e=_0x564172[_0x1687af])&&(_0x1e3ff4=_0x40cc6e(_0x1e3ff4)||_0x1e3ff4);return _0x1e3ff4;},he=(_0x1afc71,_0x407f77)=>(_0x453422,_0x54728c)=>_0x407f77(_0x453422,_0x54728c,_0x1afc71);const xt=0x1389;let Ee=class extends a[_0x112f11(0x2a7)]{constructor(_0x4bef08,_0x3f5baf,_0x4d8489,_0x7468e3){const _0x78563d=_0x112f11;super(),_(this,'_cursors',new Set()),_(this,_0x78563d(0x381),null),(this[_0x78563d(0x253)]=_0x4bef08,this[_0x78563d(0x1f0)]=_0x3f5baf,this[_0x78563d(0x2e2)]=_0x4d8489,this[_0x78563d(0x297)]=_0x7468e3,this[_0x78563d(0x31e)]());}[_0x112f11(0x31e)](){const _0x5944ff=_0x112f11;this['_sheetSkeletonManagerService'][_0x5944ff(0x27e)][_0x5944ff(0x15e)]($[_0x5944ff(0x2a6)](this['dispose$']),$[_0x5944ff(0x1ce)](_0x4207df=>{const _0x47f5f5=_0x5944ff;if(_0x4207df){const _0x146263=_0x4207df['sheetId'];return I[_0x47f5f5(0x221)](this[_0x47f5f5(0x2e2)][_0x47f5f5(0x261)](this[_0x47f5f5(0x253)][_0x47f5f5(0x1bf)]),this[_0x47f5f5(0x297)][_0x47f5f5(0x11d)])['pipe']($[_0x47f5f5(0x2a9)](([_0x5860c8,_0xd6f5e8])=>{const _0x585691=_0x47f5f5,_0x522cad=new Map();return _0x5860c8[_0x585691(0x163)]((_0x476484,_0x32d9be)=>{const _0x5bbb3c=_0x585691;if(_0x476484[_0x5bbb3c(0x239)]===_0x146263){const _0x2034ee={..._0x476484};_0x2034ee['color']=this[_0x5bbb3c(0x297)][_0x5bbb3c(0x168)](_0x476484[_0x5bbb3c(0x20d)]),_0x522cad[_0x5bbb3c(0x17b)](_0x32d9be,_0x2034ee);}}),{'skeleton':_0x4207df,'cursors':_0x522cad};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4ba84d,cursors:_0xb05eb9})=>{const _0x4bc156=_0x5944ff;this[_0x4bc156(0x21c)](),_0x4ba84d&&this[_0x4bc156(0x1f8)](_0x4ba84d,_0xb05eb9);}),this[_0x5944ff(0x1f0)]['currentSkeleton$'][_0x5944ff(0x1a4)](_0xaa4ef3=>{const _0xb6b9fc=_0x5944ff;if(_0xaa4ef3==null)return;const {skeleton:_0x1de9f8}=_0xaa4ef3,{scene:_0x59829}=this[_0xb6b9fc(0x253)];_0x59829['onPointerMove$'][_0xb6b9fc(0x39c)](a[_0xb6b9fc(0x319)](_0x5224e9=>{const _0x4596a2=_0xb6b9fc;var _0x249d0a,_0x5d9f74;const {offsetX:_0x10f323,offsetY:_0xd3cc0}=_0x5224e9,{x:_0x504c86,y:_0x5cf0dd}=_0x59829[_0x4596a2(0x1cf)](C[_0x4596a2(0x135)][_0x4596a2(0x2e9)]([_0x10f323,_0xd3cc0])),{scaleX:_0x46d5c6,scaleY:_0x4056c8}=_0x59829[_0x4596a2(0x109)](),_0x250d5f=_0x59829[_0x4596a2(0x258)](C[_0x4596a2(0x126)]['VIEW_MAIN']),_0x6cdaf4=_0x59829[_0x4596a2(0x20b)](C[_0x4596a2(0x135)][_0x4596a2(0x2e9)]([_0x504c86,_0x5cf0dd]),_0x250d5f),_0x3555c6=_0x1de9f8[_0x4596a2(0x29c)](_0x10f323,_0xd3cc0,_0x46d5c6,_0x4056c8,_0x6cdaf4);((_0x249d0a=this[_0x4596a2(0x381)])==null?void 0x0:_0x249d0a[_0x4596a2(0x274)])===_0x3555c6[_0x4596a2(0x274)]&&((_0x5d9f74=this['_lastPointer'])==null?void 0x0:_0x5d9f74[_0x4596a2(0x1f2)])===_0x3555c6[_0x4596a2(0x1f2)]||this['_cursors'][_0x4596a2(0x163)](_0x405a72=>{const _0x9f3ebf=_0x4596a2;_0x405a72[_0x9f3ebf(0x14b)](_0x3555c6);});},0x64));});}[_0x112f11(0x1f8)](_0x25ce95,_0x1d85e8){const _0x514d5e=_0x112f11;var _0x1aa799;const _0x407c77=(_0x1aa799=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x1aa799['skeleton'];if(!_0x407c77)return;const _0x39cbf8=this[_0x514d5e(0x240)]();if(!_0x39cbf8)return;this[_0x514d5e(0x1a0)]['forEach'](_0x12f921=>{const _0x4b6472=_0x514d5e;_0x12f921[_0x4b6472(0x129)]();});const {scene:_0x4e2fd9}=_0x39cbf8,_0x1042f8=$t(Array['from'](_0x1d85e8[_0x514d5e(0x1bb)]()))[_0x514d5e(0x2a9)](_0x32e519=>{const _0x196241=_0x514d5e,{color:_0x3966b2,range:_0x554e18,name:_0x1e5c50,selection:_0x513c01,sheetID:_0x304429}=_0x32e519,{startColumn:_0x409d90,startRow:_0x592a70,endColumn:_0x1d0585,endRow:_0x2edf25}=_0x554e18,_0x6d64a9=J['getCoordByCell'](_0x592a70,_0x409d90,_0x4e2fd9,_0x407c77),_0x34a45c=J[_0x196241(0x1b8)](_0x2edf25,_0x1d0585,_0x4e2fd9,_0x407c77),{columnHeaderHeightAndMarginTop:_0x56e724}=_0x407c77,{startX:_0x59c67c,startY:_0x30180c}=_0x6d64a9,{endX:_0x5d028e,endY:_0x5ec5db}=_0x34a45c,_0x57753d=_0x5d028e-_0x59c67c,_0x94706f=_0x5ec5db-_0x30180c,_0x147bb1={'labelPosition':_0x30180c-_0x56e724>=K?'top':_0x196241(0x201),'sheetID':_0x304429,'range':_0x554e18,'color':_0x3966b2,'name':_0x1e5c50,'selection':_0x513c01,'left':_0x59c67c,'top':_0x30180c,'width':_0x57753d,'height':_0x94706f,'evented':!0x1,'zIndex':xt};return new Fe(_0x1e5c50,_0x147bb1);});_0x4e2fd9[_0x514d5e(0x2e1)](_0x1042f8,At),this[_0x514d5e(0x1a0)]=new Set(_0x1042f8);}['_removeCollabCursors'](){const _0x29fa58=_0x112f11;var _0x20455d;(_0x20455d=this[_0x29fa58(0x1a0)])==null||_0x20455d['forEach'](_0x479867=>_0x479867[_0x29fa58(0x2de)]());}[_0x112f11(0x240)](){const _0x11120e=_0x112f11;return J['getSheetObject'](this['_context']['unit'],this[_0x11120e(0x253)]);}};Ee=yt([he(0x1,a[_0x112f11(0x277)](J[_0x112f11(0x3aa)])),he(0x2,a[_0x112f11(0x277)](F)),he(0x3,a[_0x112f11(0x277)](a[_0x112f11(0x303)]))],Ee);function $t(_0x12ca83){const _0x357338=_0x112f11,_0x3a18c4=new Map();return _0x12ca83['forEach'](_0x1c0953=>{const _0x1fff7b=_0x29e7;if(_0x3a18c4[_0x1fff7b(0x3b1)](_0x1c0953[_0x1fff7b(0x301)])){const _0x3ff7f9=_0x3a18c4[_0x1fff7b(0x243)](_0x1c0953[_0x1fff7b(0x301)]);_0x3ff7f9[_0x1fff7b(0x3a3)]+=',\x20'+_0x1c0953[_0x1fff7b(0x3a3)];}else _0x3a18c4[_0x1fff7b(0x17b)](_0x1c0953['selection'],_0x1c0953);}),Array[_0x357338(0x286)](_0x3a18c4['values']());}var Bt=Object[_0x112f11(0x265)],Ft=(_0x2b465f,_0x584584,_0x37ea73,_0x127c40)=>{const _0x356a3b=_0x112f11;for(var _0x3aeb2a=_0x127c40>0x1?void 0x0:_0x127c40?Bt(_0x584584,_0x37ea73):_0x584584,_0x196ff0=_0x2b465f[_0x356a3b(0x132)]-0x1,_0x30bbd8;_0x196ff0>=0x0;_0x196ff0--)(_0x30bbd8=_0x2b465f[_0x196ff0])&&(_0x3aeb2a=_0x30bbd8(_0x3aeb2a)||_0x3aeb2a);return _0x3aeb2a;},x=(_0x30f6d8,_0xa34841)=>(_0x4f243f,_0x4f5bf9)=>_0xa34841(_0x4f243f,_0x4f5bf9,_0x30f6d8);let Z=class extends a[_0x112f11(0x18b)]{constructor(_0x1550e9,_0x5dcbb2,_0x596827,_0x518b5b,_0x475a57,_0x422622){const _0x4688a7=_0x112f11;super(),this[_0x4688a7(0x376)]=_0x1550e9,this[_0x4688a7(0x26d)]=_0x5dcbb2,this[_0x4688a7(0x1e2)]=_0x596827,this[_0x4688a7(0x248)]=_0x518b5b,this[_0x4688a7(0x19b)]=_0x475a57,this[_0x4688a7(0x206)]=_0x422622,this[_0x4688a7(0x1e4)](),this[_0x4688a7(0x2f4)]();}['_setupBeforeClosingHandler'](){const _0x8e361f=_0x112f11;this[_0x8e361f(0x2dc)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x42e01b=_0x8e361f;if(this[_0x42e01b(0x26d)]['saveTaskMap']['size'])return this[_0x42e01b(0x206)]['t'](_0x42e01b(0x175));}));}[_0x112f11(0x2f4)](){const _0x5e0364=_0x112f11;this[_0x5e0364(0x2dc)](this['_collaborationUIEventService'][_0x5e0364(0x13d)][_0x5e0364(0x1a4)](_0x41baf8=>{const _0x32ac78=_0x5e0364;_0x41baf8['id']===u['CollaborationUIEventId'][_0x32ac78(0x310)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T['MessageType'][_0x32ac78(0x2ee)],'content':this['_localeService']['t'](_0x32ac78(0x29f))}),_0x41baf8['id']===u[_0x32ac78(0x2b5)]['CLOSE_ROOM']&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)]['Warning'],'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x148))}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x317)]&&this[_0x32ac78(0x19b)][_0x32ac78(0xf3)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x284)),'type':_0x32ac78(0x351),'duration':0x0}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x34c)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)]['Error'],'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x148))+'('+_0x41baf8['data']+')'}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x154)]&&this[_0x32ac78(0x248)]['show']({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x2ee)],'content':this['_localeService']['t'](_0x41baf8[_0x32ac78(0x34e)]||'')}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x2ba)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x2ee)],'content':this['_localeService']['t']('session.will-retry')}),_0x41baf8['id']===u[_0x32ac78(0x2b5)]['SOCKET_FAILED']&&this['_messageService'][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x245)],'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x2c9))}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x324)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x245)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};Z=Ft([x(0x0,R['IBeforeCloseService']),x(0x1,u[_0x112f11(0x26c)]),x(0x2,a[_0x112f11(0x277)](u[_0x112f11(0x26b)])),x(0x3,R[_0x112f11(0x2ef)]),x(0x4,R[_0x112f11(0x157)]),x(0x5,a['Inject'](a[_0x112f11(0x24d)]))],Z);const kt=_0x112f11(0x29a),Le={};var jt=Object[_0x112f11(0x265)],Yt=(_0x46b632,_0x211ba1,_0x89f82c,_0x17fe31)=>{const _0x4833f1=_0x112f11;for(var _0x4b7ace=_0x17fe31>0x1?void 0x0:_0x17fe31?jt(_0x211ba1,_0x89f82c):_0x211ba1,_0x1c6f52=_0x46b632[_0x4833f1(0x132)]-0x1,_0x50436e;_0x1c6f52>=0x0;_0x1c6f52--)(_0x50436e=_0x46b632[_0x1c6f52])&&(_0x4b7ace=_0x50436e(_0x4b7ace)||_0x4b7ace);return _0x4b7ace;},Me=(_0x2243e2,_0xe4d3b4)=>(_0x2a2def,_0x21909e)=>_0xe4d3b4(_0x2a2def,_0x21909e,_0x2243e2);let Q=class{constructor(_0x5ca376,_0xe2e4c3){const _0x5d2a1d=_0x112f11;this['_transformService']=_0x5ca376,this[_0x5d2a1d(0x2ed)]=_0xe2e4c3;}[_0x112f11(0x357)](_0x44856e){const _0x1f905c=_0x112f11;this[_0x1f905c(0xf9)](_0x44856e),this[_0x1f905c(0xf7)](_0x44856e);}['transformRemoteChangeset'](_0x57781a){const _0x10c35b=_0x112f11,{unitID:_0x40371f}=_0x57781a,_0x48c049=this[_0x10c35b(0x2ed)][_0x10c35b(0x1d0)](_0x40371f)[_0x10c35b(0x2f0)](p[_0x10c35b(0x2cb)]),{redoCache:_0x2e6ba9}=_0x48c049[_0x10c35b(0x215)]();if(_0x2e6ba9['length']===0x0)return _0x57781a;let _0x5e4f74=a[_0x10c35b(0x22d)][_0x10c35b(0x228)](_0x57781a[_0x10c35b(0x30d)][0x0]);for(let _0x16de05=0x0;_0x16de05<_0x2e6ba9[_0x10c35b(0x132)];_0x16de05++){const _0x1316e5={'id':_0x10c35b(0x2b0),'params':{..._0x2e6ba9[_0x16de05]}},_0x38aea8=this['_transformService'][_0x10c35b(0x1f4)](_0x5e4f74,_0x1316e5,!0x1);if(g[_0x10c35b(0x1dc)](_0x38aea8))throw _0x38aea8[_0x10c35b(0x351)];_0x5e4f74=_0x38aea8[_0x10c35b(0x35f)];}return{...a[_0x10c35b(0x22d)][_0x10c35b(0x228)](_0x57781a),'mutations':[_0x5e4f74]};}[_0x112f11(0xf9)](_0x10cecf){const _0x236e09=_0x112f11,{unitID:_0x368484}=_0x10cecf,_0x5340a8=this[_0x236e09(0x2ed)][_0x236e09(0x1d0)](_0x368484)[_0x236e09(0x2f0)](p['DocIMEInputManagerService']),{undoCache:_0x56b045,redoCache:_0x586c57}=_0x5340a8[_0x236e09(0x215)]();if(_0x56b045[_0x236e09(0x132)]===0x0||_0x586c57[_0x236e09(0x132)]===0x0)return;const _0x1a7531=[],_0x9e4622=[];let _0x4a267f=a[_0x236e09(0x22d)]['deepClone'](_0x10cecf[_0x236e09(0x30d)][0x0]),_0x471dca=a[_0x236e09(0x22d)][_0x236e09(0x228)](_0x10cecf[_0x236e09(0x30d)][0x0]);for(let _0xe6f88=_0x56b045[_0x236e09(0x132)]-0x1;_0xe6f88>=0x0;_0xe6f88--){const _0x234eb4={'id':_0x236e09(0x2b0),'params':{..._0x56b045[_0xe6f88]}},_0x18ff25={'id':_0x236e09(0x2b0),'params':{..._0x586c57[_0xe6f88]}},_0x355d6e=this[_0x236e09(0x14e)]['transformMutation'](_0x4a267f,_0x234eb4,!0x1),_0x56c18b=this[_0x236e09(0x14e)][_0x236e09(0x1f4)](_0x471dca,_0x18ff25,!0x1);if(g[_0x236e09(0x1dc)](_0x355d6e))throw _0x355d6e['error'];if(g[_0x236e09(0x1dc)](_0x56c18b))throw _0x56c18b[_0x236e09(0x351)];_0x1a7531[_0x236e09(0x28b)](_0x355d6e[_0x236e09(0x15f)][_0x236e09(0x298)]),_0x9e4622[_0x236e09(0x28b)](_0x56c18b[_0x236e09(0x15f)][_0x236e09(0x298)]),_0x4a267f=_0x355d6e[_0x236e09(0x35f)],_0x471dca=_0x56c18b[_0x236e09(0x35f)];}_0x5340a8[_0x236e09(0x20e)]({'undoCache':_0x1a7531,'redoCache':_0x9e4622});}[_0x112f11(0xf7)](_0x78036d){const _0x2db07b=_0x112f11,{unitID:_0x1a55a6}=_0x78036d,_0x378f6b=this['_renderManagerService'][_0x2db07b(0x1d0)](_0x1a55a6)[_0x2db07b(0x2f0)](p['DocIMEInputManagerService']),_0x336b96=_0x378f6b[_0x2db07b(0x38b)]();if(_0x336b96==null)return;const _0x5aa77f=[{'id':_0x2db07b(0x2b0),'params':{'unitId':_0x78036d[_0x2db07b(0x2ad)],'actions':null,'textRanges':[_0x336b96]}}],_0x147b06=this[_0x2db07b(0x14e)][_0x2db07b(0x30e)](_0x78036d,_0x5aa77f);if(!g['isTransformMutationsWithChangesetSuccess'](_0x147b06))throw _0x147b06[_0x2db07b(0x351)];const _0x3df4f8=_0x147b06[_0x2db07b(0x15f)][0x0]['params'][_0x2db07b(0x220)];Array[_0x2db07b(0x2e3)](_0x3df4f8)&&_0x3df4f8['length']&&_0x378f6b[_0x2db07b(0x2d3)](_0x3df4f8[0x0]);}};Q=Yt([Me(0x0,g[_0x112f11(0x2c3)]),Me(0x1,C['IRenderManagerService'])],Q);var Ht=Object[_0x112f11(0x265)],Wt=(_0x3a8424,_0x5a74dc,_0x5a29ed,_0x10f538)=>{for(var _0x5d1114=_0x10f538>0x1?void 0x0:_0x10f538?Ht(_0x5a74dc,_0x5a29ed):_0x5a74dc,_0x3ea74c=_0x3a8424['length']-0x1,_0x1f8ec9;_0x3ea74c>=0x0;_0x3ea74c--)(_0x1f8ec9=_0x3a8424[_0x3ea74c])&&(_0x5d1114=_0x1f8ec9(_0x5d1114)||_0x5d1114);return _0x5d1114;},ue=(_0x393c51,_0x4b598e)=>(_0x1ebc3a,_0x3f9cc7)=>_0x4b598e(_0x1ebc3a,_0x3f9cc7,_0x393c51);let ee=class{constructor(_0x295194,_0x221cbf,_0x2b4a8d){const _0x47d721=_0x112f11;this['_injector']=_0x295194,this['_transformService']=_0x221cbf,this[_0x47d721(0x260)]=_0x2b4a8d;}[_0x112f11(0x133)](_0x4fe669){const _0x268fcc=_0x112f11;this[_0x268fcc(0x1c9)](_0x4fe669);}[_0x112f11(0x2d5)](_0x51d84c){const _0x2ba9a7=_0x112f11,{unitID:_0x7cd8c}=_0x51d84c,{collaboration:_0x11433d}=this[_0x2ba9a7(0x260)][_0x2ba9a7(0x320)](_0x7cd8c);if(_0x11433d['length']===0x0)return _0x51d84c;let _0x3f354e=a[_0x2ba9a7(0x22d)][_0x2ba9a7(0x228)](_0x51d84c[_0x2ba9a7(0x30d)][0x0]);for(let _0x21b391=0x0;_0x21b391<_0x11433d[_0x2ba9a7(0x132)];_0x21b391++){const _0x36739c={'id':_0x2ba9a7(0x2b0),'params':{'unitId':_0x11433d[_0x21b391]['unitId'],..._0x11433d[_0x21b391][_0x2ba9a7(0x1bc)]}},_0x2e19e9=this[_0x2ba9a7(0x14e)]['transformMutation'](_0x3f354e,_0x36739c,!0x1);if(g[_0x2ba9a7(0x1dc)](_0x2e19e9))throw _0x2e19e9[_0x2ba9a7(0x351)];_0x3f354e=_0x2e19e9[_0x2ba9a7(0x35f)];}return{...a[_0x2ba9a7(0x22d)][_0x2ba9a7(0x228)](_0x51d84c),'mutations':[_0x3f354e]};}['_transformHistoryAndStateStack'](_0x362e3a){const _0x3aab18=_0x112f11,{unitID:_0xf91a5c}=_0x362e3a,{history:_0x15602e,collaboration:_0x2f6538}=this[_0x3aab18(0x260)][_0x3aab18(0x320)](_0xf91a5c);if(_0x15602e[_0x3aab18(0x132)]===0x0&&_0x2f6538[_0x3aab18(0x132)]===0x0)return;const _0xc08c41=[],_0x51dd11=[];let _0x5fa0a3=a[_0x3aab18(0x22d)][_0x3aab18(0x228)](_0x362e3a[_0x3aab18(0x30d)][0x0]),_0x169387=a[_0x3aab18(0x22d)][_0x3aab18(0x228)](_0x362e3a[_0x3aab18(0x30d)][0x0]);for(let _0x49e69a=_0x15602e['length']-0x1;_0x49e69a>=0x0;_0x49e69a--){const _0x319cf2={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x15602e[_0x49e69a][_0x3aab18(0x1bf)],..._0x15602e[_0x49e69a][_0x3aab18(0x190)]}},_0x590dab={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x15602e[_0x49e69a]['unitId'],..._0x15602e[_0x49e69a][_0x3aab18(0x1bc)]}},_0x46f4a0=this[_0x3aab18(0x14e)][_0x3aab18(0x1f4)](_0x5fa0a3,_0x319cf2,!0x1),_0x29d9d0=this[_0x3aab18(0x14e)][_0x3aab18(0x1f4)](_0x169387,_0x590dab,!0x1);if(g[_0x3aab18(0x1dc)](_0x46f4a0))throw _0x46f4a0['error'];if(g['isTransformMutationFailure'](_0x29d9d0))throw _0x29d9d0[_0x3aab18(0x351)];_0xc08c41[_0x3aab18(0x28b)]({..._0x15602e[_0x49e69a],'undoState':_0x46f4a0[_0x3aab18(0x15f)]['params'],'redoState':_0x29d9d0[_0x3aab18(0x15f)][_0x3aab18(0x298)]}),_0x5fa0a3=_0x46f4a0[_0x3aab18(0x35f)],_0x169387=_0x29d9d0[_0x3aab18(0x35f)];}_0x5fa0a3=a['Tools'][_0x3aab18(0x228)](_0x362e3a['mutations'][0x0]),_0x169387=a[_0x3aab18(0x22d)][_0x3aab18(0x228)](_0x362e3a['mutations'][0x0]);for(let _0x139b6c=_0x2f6538[_0x3aab18(0x132)]-0x1;_0x139b6c>=0x0;_0x139b6c--){const _0x5051a9={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x2f6538[_0x139b6c][_0x3aab18(0x1bf)],..._0x2f6538[_0x139b6c][_0x3aab18(0x190)]}},_0x27cfa8={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x2f6538[_0x139b6c][_0x3aab18(0x1bf)],..._0x2f6538[_0x139b6c][_0x3aab18(0x1bc)]}},_0xd8c1e9=this['_transformService']['transformMutation'](_0x5fa0a3,_0x5051a9,!0x1),_0x2ebc64=this[_0x3aab18(0x14e)][_0x3aab18(0x1f4)](_0x169387,_0x27cfa8,!0x1);if(g['isTransformMutationFailure'](_0xd8c1e9))throw _0xd8c1e9[_0x3aab18(0x351)];if(g[_0x3aab18(0x1dc)](_0x2ebc64))throw _0x2ebc64[_0x3aab18(0x351)];_0x51dd11[_0x3aab18(0x28b)]({..._0x2f6538[_0x139b6c],'undoState':_0xd8c1e9[_0x3aab18(0x15f)][_0x3aab18(0x298)],'redoState':_0x2ebc64[_0x3aab18(0x15f)][_0x3aab18(0x298)]}),_0x5fa0a3=_0xd8c1e9['m1Prime'],_0x169387=_0x2ebc64[_0x3aab18(0x35f)];}this[_0x3aab18(0x260)]['setStateCache'](_0xf91a5c,{'history':_0xc08c41,'collaboration':_0x51dd11});}};ee=Wt([ue(0x0,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),ue(0x1,g[_0x112f11(0x2c3)]),ue(0x2,a[_0x112f11(0x277)](p[_0x112f11(0x33d)]))],ee);var Vt=Object[_0x112f11(0x265)],Gt=(_0x42f49f,_0x5dbe74,_0x247990,_0x1ade56)=>{for(var _0x1270dc=_0x1ade56>0x1?void 0x0:_0x1ade56?Vt(_0x5dbe74,_0x247990):_0x5dbe74,_0x26ae08=_0x42f49f['length']-0x1,_0x30a59a;_0x26ae08>=0x0;_0x26ae08--)(_0x30a59a=_0x42f49f[_0x26ae08])&&(_0x1270dc=_0x30a59a(_0x1270dc)||_0x1270dc);return _0x1270dc;},Ae=(_0x2a1309,_0x10a669)=>(_0x455f84,_0x12d731)=>_0x10a669(_0x455f84,_0x12d731,_0x2a1309);let te=class{constructor(_0xb95f0f,_0x28dc7f){const _0x48a862=_0x112f11;this[_0x48a862(0x399)]=_0xb95f0f,this['_transformService']=_0x28dc7f;}[_0x112f11(0x1fc)](_0xcdbf3f){const _0x3dcd51=_0x112f11;var _0x516c47;const _0x169064=this[_0x3dcd51(0x399)]['get'](V[_0x3dcd51(0x268)]),_0x3a16eb=(_0x516c47=_0x169064[_0x3dcd51(0x329)]())!=null?_0x516c47:[];if(_0x3a16eb[_0x3dcd51(0x132)]===0x0)return;const _0x5e06b4=_0xcdbf3f[_0x3dcd51(0x2ad)],_0x4e739a=[{'id':_0x3dcd51(0x2b0),'params':{'unitId':_0x5e06b4,'actions':null,'textRanges':_0x3a16eb}}],_0x360497=this[_0x3dcd51(0x14e)]['transformMutationsWithChangeset'](_0xcdbf3f,_0x4e739a);if(!g[_0x3dcd51(0x327)](_0x360497))throw _0x360497['error'];const _0x37e0cc=_0x360497['m2Prime'][0x0][_0x3dcd51(0x298)][_0x3dcd51(0x220)];Array['isArray'](_0x37e0cc)&&_0x37e0cc[_0x3dcd51(0x132)]&&_0x169064[_0x3dcd51(0x32d)](_0x37e0cc,{'unitId':_0x5e06b4,'subUnitId':_0x5e06b4},!0x1);}};te=Gt([Ae(0x0,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),Ae(0x1,g['ITransformService'])],te);var Xt=Object[_0x112f11(0x265)],Kt=(_0x2cf8b0,_0x1288dc,_0x168cc4,_0x2e04b3)=>{const _0x5d4f27=_0x112f11;for(var _0x45c880=_0x2e04b3>0x1?void 0x0:_0x2e04b3?Xt(_0x1288dc,_0x168cc4):_0x1288dc,_0x3920df=_0x2cf8b0[_0x5d4f27(0x132)]-0x1,_0x4a7329;_0x3920df>=0x0;_0x3920df--)(_0x4a7329=_0x2cf8b0[_0x3920df])&&(_0x45c880=_0x4a7329(_0x45c880)||_0x45c880);return _0x45c880;},U=(_0x4f2724,_0x220e60)=>(_0x562f07,_0x532f8f)=>_0x220e60(_0x562f07,_0x532f8f,_0x4f2724);let se=class extends a[_0x112f11(0x18b)]{constructor(_0x215996,_0x3ab657,_0xa457b8,_0x2cb261,_0x194490,_0x169052,_0x24463e,_0x1a2ad5){const _0x1da069=_0x112f11;super(),_(this,'_status$',new I[(_0x1da069(0x1dd))](u['CollaborationStatus'][_0x1da069(0x1d6)])),(this[_0x1da069(0x260)]=_0x215996,this[_0x1da069(0x131)]=_0x3ab657,this[_0x1da069(0x283)]=_0xa457b8,this[_0x1da069(0x16d)]=_0x2cb261,this[_0x1da069(0x35a)]=_0x194490,this['_docSyncEditingCollabCursorService']=_0x169052,this['_messageService']=_0x24463e,this['_localeService']=_0x1a2ad5,this['_initEntityListener']());}[_0x112f11(0x349)](){const _0x121983=_0x112f11;this[_0x121983(0x2dc)](this[_0x121983(0x131)][_0x121983(0x39e)][_0x121983(0x1a4)](_0x1d9906=>{const _0x2adc9b=_0x121983,_0x58fb78=this[_0x2adc9b(0x260)][_0x2adc9b(0x2c1)]['subscribe'](_0x2c38a9=>{const _0x4feb04=_0x2adc9b;if(_0x2c38a9==null)return;const {unitId:_0x2359e5,redoState:_0x56946b,commandId:_0x5522b4}=_0x2c38a9;if(_0x2359e5!==_0x1d9906[_0x4feb04(0x2ad)])return;const _0x282a34={'id':_0x5522b4,'type':a[_0x4feb04(0x294)][_0x4feb04(0x1ad)],'params':{'unitId':_0x2359e5,'actions':_0x56946b['actions'],'textRanges':null}};_0x1d9906[_0x4feb04(0x216)](_0x282a34);});if(_0x1d9906[_0x2adc9b(0x2dc)](_0x58fb78),_0x1d9906 instanceof u[_0x2adc9b(0x10a)]){const _0x4fc780={'onTransformIME':_0x24089b=>this[_0x2adc9b(0x283)][_0x2adc9b(0x357)](_0x24089b),'onTransformState':_0xd569eb=>this[_0x2adc9b(0x16d)][_0x2adc9b(0x133)](_0xd569eb),'onTransformSelections':_0x9877=>this[_0x2adc9b(0x35a)][_0x2adc9b(0x1fc)](_0x9877),'onSyncEditingCollabCursor':_0x2aa81d=>this['_docSyncEditingCollabCursorService'][_0x2adc9b(0x262)](_0x2aa81d),'onTransformRemoteChangesetByIMECache':_0x4770e8=>this[_0x2adc9b(0x283)]['transformRemoteChangeset'](_0x4770e8),'onTransformRemoteChangesetByStateCache':_0x1faac8=>this['_docTransformStateCacheService'][_0x2adc9b(0x2d5)](_0x1faac8)};_0x1d9906[_0x2adc9b(0x1f1)](_0x4fc780);}}));}};se=Kt([U(0x0,a[_0x112f11(0x277)](p[_0x112f11(0x33d)])),U(0x1,a[_0x112f11(0x277)](u[_0x112f11(0x2d6)])),U(0x2,a[_0x112f11(0x277)](Q)),U(0x3,a[_0x112f11(0x277)](ee)),U(0x4,a[_0x112f11(0x277)](te)),U(0x5,a[_0x112f11(0x277)](Re)),U(0x6,R[_0x112f11(0x2ef)]),U(0x7,a[_0x112f11(0x277)](a[_0x112f11(0x24d)]))],se);var G=(_0x186439=>(_0x186439[_0x186439[_0x112f11(0x1b3)]=0x0]=_0x112f11(0x1b3),_0x186439[_0x186439['OK']=0x1]='OK',_0x186439[_0x186439[_0x112f11(0x2ab)]=0x2]=_0x112f11(0x2ab),_0x186439[_0x186439[_0x112f11(0x317)]=0x3]=_0x112f11(0x317),_0x186439[_0x186439['NOT_FOUND']=0x4]=_0x112f11(0x2b9),_0x186439[_0x186439[_0x112f11(0x312)]=0x5]=_0x112f11(0x312),_0x186439[_0x186439[_0x112f11(0x2b3)]=0x6]=_0x112f11(0x2b3),_0x186439[_0x186439[_0x112f11(0x23b)]=0x7]='INVALID_ARGUMENT',_0x186439[_0x186439['TOO_MANY_REQUESTS']=0x8]=_0x112f11(0x363),_0x186439[_0x186439[_0x112f11(0x22c)]=0x9]='COMPLETION_FINISHED',_0x186439[_0x186439['LOGIN_FAILED']=0xa]=_0x112f11(0x347),_0x186439[_0x186439['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x186439[_0x186439[_0x112f11(0x2b2)]=0xc]=_0x112f11(0x2b2),_0x186439[_0x186439['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x112f11(0x21e),_0x186439[_0x186439[_0x112f11(0x117)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x186439[_0x186439[_0x112f11(0x122)]=0xf]=_0x112f11(0x122),_0x186439[_0x186439[_0x112f11(0x255)]=0x10]=_0x112f11(0x255),_0x186439[_0x186439[_0x112f11(0x238)]=0x64]=_0x112f11(0x238),_0x186439[_0x186439[_0x112f11(0x28d)]=0x65]='ERROR_AGAIN',_0x186439[_0x186439['USER_NOT_FOUND']=0xc9]=_0x112f11(0x341),_0x186439[_0x186439[_0x112f11(0x31a)]=0xca]='USER_IS_ANONYMOUS',_0x186439[_0x186439[_0x112f11(0x178)]=0x1389]=_0x112f11(0x178),_0x186439[_0x186439[_0x112f11(0x2bb)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x186439[_0x186439[_0x112f11(0x24a)]=0x1772]=_0x112f11(0x24a),_0x186439[_0x186439[_0x112f11(0x2ff)]=0x1773]=_0x112f11(0x2ff),_0x186439[_0x186439['APPLY_REJECT']=0x1b59]=_0x112f11(0x107),_0x186439[_0x186439[_0x112f11(0x396)]=0x1b5a]=_0x112f11(0x396),_0x186439[_0x186439[_0x112f11(0x1c2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x186439[_0x186439[_0x112f11(0x1a8)]=0x1b5c]=_0x112f11(0x1a8),_0x186439[_0x186439[_0x112f11(0x249)]=0x1b5d]=_0x112f11(0x249),_0x186439[_0x186439[_0x112f11(0x1ec)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x186439[_0x186439[_0x112f11(0x2e5)]=0x2329]=_0x112f11(0x2e5),_0x186439[_0x186439[_0x112f11(0x14c)]=0x232a]=_0x112f11(0x14c),_0x186439[_0x186439[_0x112f11(0x218)]=0x232b]=_0x112f11(0x218),_0x186439[_0x186439['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x112f11(0x2bd),_0x186439[_0x186439['LICENSE_DISTRO_REJECTED']=0x232d]=_0x112f11(0x233),_0x186439[_0x186439[_0x112f11(0x335)]=0x2711]=_0x112f11(0x335),_0x186439[_0x186439['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x186439[_0x186439['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x186439[_0x186439[_0x112f11(0x10e)]=0x2714]=_0x112f11(0x10e),_0x186439[_0x186439[_0x112f11(0x27a)]=0x271a]=_0x112f11(0x27a),_0x186439[_0x186439[_0x112f11(0x14f)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x186439[_0x186439['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x112f11(0x38f),_0x186439[_0x186439[_0x112f11(0x304)]=0x271d]=_0x112f11(0x304),_0x186439[_0x186439[_0x112f11(0x36a)]=0x271e]=_0x112f11(0x36a),_0x186439[_0x186439[_0x112f11(0x289)]=0x271f]=_0x112f11(0x289),_0x186439[_0x186439[_0x112f11(0x205)]=0x2720]=_0x112f11(0x205),_0x186439[_0x186439['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x112f11(0x305),_0x186439[_0x186439[_0x112f11(0x1f7)]=0x2ee1]=_0x112f11(0x1f7),_0x186439[_0x186439['INVALID_INVITE_CODE']=0x2ee2]=_0x112f11(0x1b4),_0x186439[_0x186439['INVITE_CODE_REQUIRED']=0x2ee3]=_0x112f11(0x13e),_0x186439[_0x186439[_0x112f11(0x325)]=0x2ee4]=_0x112f11(0x325),_0x186439[_0x186439[_0x112f11(0x189)]=0x2ee5]=_0x112f11(0x189),_0x186439[_0x186439[_0x112f11(0x110)]=0x32c9]=_0x112f11(0x110),_0x186439[_0x186439[_0x112f11(0x19f)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x186439[_0x186439[_0x112f11(0x22e)]=0x32cb]=_0x112f11(0x22e),_0x186439[_0x186439[_0x112f11(0x31c)]=0x36b1]=_0x112f11(0x31c),_0x186439[_0x186439[_0x112f11(0x377)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x186439[_0x186439[_0x112f11(0x180)]=0x36b3]=_0x112f11(0x180),_0x186439[_0x186439[_0x112f11(0x158)]=0x36b4]=_0x112f11(0x158),_0x186439[_0x186439[_0x112f11(0x208)]=0x3715]=_0x112f11(0x208),_0x186439[_0x186439[_0x112f11(0x119)]=0x3716]=_0x112f11(0x119),_0x186439[_0x186439['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x186439[_0x186439['REDEMPTION_INVALID_CODE']=0x3a99]=_0x112f11(0x36e),_0x186439[_0x186439[_0x112f11(0x25b)]=0x3a9a]=_0x112f11(0x25b),_0x186439[_0x186439[_0x112f11(0x1e3)]=0x3a9b]=_0x112f11(0x1e3),_0x186439[_0x186439[_0x112f11(0x388)]=0x3a9c]=_0x112f11(0x388),_0x186439[_0x186439[_0x112f11(0x1ff)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x186439[_0x186439[_0x112f11(0x308)]=0x3a9e]=_0x112f11(0x308),_0x186439[_0x186439[_0x112f11(0x293)]=0x3a9f]=_0x112f11(0x293),_0x186439[_0x186439[_0x112f11(0x26f)]=-0x1]=_0x112f11(0x26f),_0x186439))(G||{});function qt(_0x139c7c){const _0x5610d0=_0x112f11;var _0x409ce2,_0xed9212;const _0x4fdadb=(_0x409ce2=_0x139c7c[_0x5610d0(0x3ab)])==null?void 0x0:_0x409ce2['stage'],_0x1b0ba2=((_0xed9212=_0x139c7c[_0x5610d0(0x3ab)])==null?void 0x0:_0xed9212[_0x5610d0(0x32c)])||0x0;return _0x4fdadb===B[_0x5610d0(0x306)][_0x5610d0(0x214)]&&_0x1b0ba2>0x0;}function zt(_0x442fbe){const _0x2535b0=_0x112f11;return _0x442fbe['functionsExecutedState']===B[_0x2535b0(0x365)][_0x2535b0(0x2fd)];}var Jt=Object[_0x112f11(0x265)],Zt=(_0x4fec46,_0x84c0e6,_0x356fb6,_0x4d2df8)=>{const _0x8e63d9=_0x112f11;for(var _0x291d44=_0x4d2df8>0x1?void 0x0:_0x4d2df8?Jt(_0x84c0e6,_0x356fb6):_0x84c0e6,_0x253be0=_0x4fec46[_0x8e63d9(0x132)]-0x1,_0x1e84b6;_0x253be0>=0x0;_0x253be0--)(_0x1e84b6=_0x4fec46[_0x253be0])&&(_0x291d44=_0x1e84b6(_0x291d44)||_0x291d44);return _0x291d44;},A=(_0x135e82,_0x3fe452)=>(_0x32a183,_0x19c03d)=>_0x3fe452(_0x32a183,_0x19c03d,_0x135e82);function _0x29e7(_0x413cbf,_0x1b276d){const _0x1d231a=_0x1d23();return _0x29e7=function(_0x29e743,_0x4c6694){_0x29e743=_0x29e743-0xf2;let _0x420222=_0x1d231a[_0x29e743];return _0x420222;},_0x29e7(_0x413cbf,_0x1b276d);}const Qt=_0x112f11(0x391),es=_0x112f11(0x288),ts=_0x112f11(0x367);let ie=class extends a[_0x112f11(0x18b)]{constructor(_0x3f9bf7,_0x8c4cd0,_0x41c11f,_0x3746b0,_0x18d73f,_0x1bbdd7,_0x1aaf49){const _0x4e1a42=_0x112f11;super(),_(this,_0x4e1a42(0x104),null),_(this,_0x4e1a42(0x358),0x0),_(this,_0x4e1a42(0x30b),0x0),_(this,_0x4e1a42(0x1fe),[]),_(this,_0x4e1a42(0x2da),0x0),(this[_0x4e1a42(0x248)]=_0x3f9bf7,this[_0x4e1a42(0x124)]=_0x8c4cd0,this[_0x4e1a42(0x101)]=_0x41c11f,this[_0x4e1a42(0x2b1)]=_0x3746b0,this['_univerInstanceService']=_0x18d73f,this[_0x4e1a42(0x3ad)]=_0x1bbdd7,this['_localeService']=_0x1aaf49,this[_0x4e1a42(0x372)]());}['_initCommandInterceptor'](){const _0x26786b=_0x112f11;this[_0x26786b(0x2dc)](this['_commandService'][_0x26786b(0x22b)]((_0xceebea,_0x1b1efb)=>{const _0x4ab1e2=_0x26786b;if(_0xceebea['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x31a8e2=_0xceebea[_0x4ab1e2(0x298)];if(!this[_0x4ab1e2(0x1be)](_0x31a8e2['dirtyRanges']))return;if(!this['_checkCalculationAvailable']())throw this[_0x4ab1e2(0x1ef)](_0xceebea,_0x1b1efb),this[_0x4ab1e2(0x2a2)](),new a[(_0x4ab1e2(0x2b8))]();})),this[_0x26786b(0x2dc)](this['_commandService'][_0x26786b(0x12a)]((_0x1d49b8,_0x228be7)=>{const _0x3cd7e6=_0x26786b;if(_0x1d49b8['id']!==B[_0x3cd7e6(0x140)]['id'])return;const _0x1159c2=_0x1d49b8[_0x3cd7e6(0x298)];if(qt(_0x1159c2)){const _0x703cbf=a[_0x3cd7e6(0x397)]();this[_0x3cd7e6(0x1fe)][_0x3cd7e6(0x2cd)](_0x703cbf),this['_startCalculationLimit'](_0x703cbf);}else{if(zt(_0x1159c2)&&this['_taskIds'][_0x3cd7e6(0x132)]>0x0){const _0x18f84c=this[_0x3cd7e6(0x1fe)][_0x3cd7e6(0x1f3)]();this[_0x3cd7e6(0x29e)](_0x18f84c);}}}));}[_0x112f11(0x2de)](){const _0x133112=_0x112f11;super['dispose'](),this[_0x133112(0x266)](),this[_0x133112(0x1fe)]=[],this['_currentUsage']=0x0,this[_0x133112(0x358)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x112f11(0x1ef)](_0x50f648,_0x592203){const _0x12e3d6=_0x112f11;for(let _0x54f8c8=0x0;_0x54f8c8<0x1e;_0x54f8c8++)try{if(await this[_0x12e3d6(0x224)](),this[_0x12e3d6(0x24b)]()){this[_0x12e3d6(0x213)](_0x50f648,_0x592203),this['_messageService'][_0x12e3d6(0xf3)]({'content':this[_0x12e3d6(0x206)]['t'](_0x12e3d6(0x38d)),'type':T[_0x12e3d6(0x2e0)][_0x12e3d6(0x151)]});return;}await new Promise(_0x494222=>{const _0x4a87f5=_0x12e3d6;this[_0x4a87f5(0x104)]=window[_0x4a87f5(0x142)](_0x494222,0x3e8);});}catch(_0x477d95){this[_0x12e3d6(0x3ad)][_0x12e3d6(0x351)](_0x477d95);}this['_messageService'][_0x12e3d6(0xf3)]({'content':this['_localeService']['t'](_0x12e3d6(0x23e)),'type':T['MessageType'][_0x12e3d6(0x245)]});}['_applyCommand'](_0x1c2665,_0x3b285a){const _0x379c58=_0x112f11;try{this[_0x379c58(0x124)][_0x379c58(0x257)](_0x1c2665['id'],_0x1c2665[_0x379c58(0x298)],_0x3b285a);}catch(_0x10bbb5){this[_0x379c58(0x3ad)][_0x379c58(0x351)](_0x10bbb5);}}[_0x112f11(0x3a1)](_0x38fca3,_0x42ca79){const _0x4962cd=_0x112f11;_0x42ca79<this[_0x4962cd(0x2da)]||(this[_0x4962cd(0x2da)]=_0x42ca79,this[_0x4962cd(0x358)]=Number[_0x4962cd(0x185)](_0x38fca3['maxFormulaLimit']),this[_0x4962cd(0x30b)]=Number[_0x4962cd(0x185)](_0x38fca3[_0x4962cd(0x2c2)]));}async[_0x112f11(0x3ac)](_0x3bf8d3){const _0x27771e=_0x112f11;var _0x19f8cb,_0x25fbb8;const _0x3018d6=Date[_0x27771e(0x10d)]();try{const _0x425c84=((_0x19f8cb=this[_0x27771e(0x101)][_0x27771e(0x26a)](u[_0x27771e(0x346)]))==null?void 0x0:_0x19f8cb['startFormulaLimitUrl'])||es,_0x441ce2=(await this[_0x27771e(0x2b1)][_0x27771e(0x20f)](_0x425c84,{'body':JSON['stringify']({'taskId':_0x3bf8d3})}))['body'];if(((_0x25fbb8=_0x441ce2[_0x27771e(0x351)])==null?void 0x0:_0x25fbb8[_0x27771e(0x2fe)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x441ce2[_0x27771e(0x281)],_0x3018d6);}catch(_0x385edd){this['_logService']['error'](_0x385edd);}}async['_getFormulaLimitStatus'](_0x36408f){const _0x4c3b68=_0x112f11;var _0x12fdd3,_0x226d2c;const _0xb49f3=Date['now']();try{const _0x260b59=((_0x12fdd3=this[_0x4c3b68(0x101)][_0x4c3b68(0x26a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x12fdd3[_0x4c3b68(0x366)])||Qt,_0x1ed7c9=_0x36408f?_0x260b59+'?taskId='+encodeURIComponent(_0x36408f):_0x260b59,_0x46ebea=(await this['_httpService'][_0x4c3b68(0x243)](_0x1ed7c9))[_0x4c3b68(0x332)];if(((_0x226d2c=_0x46ebea[_0x4c3b68(0x351)])==null?void 0x0:_0x226d2c[_0x4c3b68(0x2fe)])!==G['OK'])return;this[_0x4c3b68(0x3a1)](_0x46ebea['limitInfo'],_0xb49f3);}catch(_0x15cde8){this[_0x4c3b68(0x3ad)][_0x4c3b68(0x351)](_0x15cde8);}}async[_0x112f11(0x29e)](_0x55692a){const _0x3a0cd1=_0x112f11;var _0x5c17b4,_0x5555df;const _0x5da0f0=Date[_0x3a0cd1(0x10d)]();try{const _0x58f2f8=((_0x5c17b4=this[_0x3a0cd1(0x101)][_0x3a0cd1(0x26a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5c17b4[_0x3a0cd1(0x291)])||ts,_0xcf579=(await this[_0x3a0cd1(0x2b1)][_0x3a0cd1(0x20f)](_0x58f2f8,{'body':JSON[_0x3a0cd1(0x1eb)]({'taskId':_0x55692a})}))[_0x3a0cd1(0x332)];if(((_0x5555df=_0xcf579[_0x3a0cd1(0x351)])==null?void 0x0:_0x5555df[_0x3a0cd1(0x2fe)])!==G['OK'])return;this[_0x3a0cd1(0x3a1)](_0xcf579[_0x3a0cd1(0x281)],_0x5da0f0);}catch(_0x2d29f7){this[_0x3a0cd1(0x3ad)][_0x3a0cd1(0x351)](_0x2d29f7);}}[_0x112f11(0x24b)](){const _0x3dc164=_0x112f11;return this[_0x3dc164(0x358)]===0x0?!0x0:this[_0x3dc164(0x358)]-this[_0x3dc164(0x30b)]>0x0;}['_clearPolling'](){const _0x4f347f=_0x112f11;this[_0x4f347f(0x104)]&&(clearTimeout(this[_0x4f347f(0x104)]),this[_0x4f347f(0x104)]=null);}[_0x112f11(0x2a2)](){const _0xe315c4=_0x112f11;this[_0xe315c4(0x248)][_0xe315c4(0xf3)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T[_0xe315c4(0x2e0)]['Loading']});}[_0x112f11(0x1be)](_0x3255e3){const _0x177212=_0x112f11;for(const _0x9b81fd of _0x3255e3){const {unitId:_0x2fe700,sheetId:_0x1f010b,range:_0x20b13d}=_0x9b81fd,_0x5a1a60=this[_0x177212(0x368)][_0x177212(0x225)](_0x2fe700);if(!_0x5a1a60)continue;const _0x3fd0e3=_0x5a1a60[_0x177212(0x1db)](_0x1f010b);if(!_0x3fd0e3)continue;const _0x24d943=_0x3fd0e3[_0x177212(0x202)]();for(let _0x14f75f=_0x20b13d['startRow'];_0x14f75f<=_0x20b13d[_0x177212(0x360)];_0x14f75f++)for(let _0x3c373d=_0x20b13d[_0x177212(0x2c7)];_0x3c373d<=_0x20b13d[_0x177212(0x2ec)];_0x3c373d++){const _0x4f545b=_0x24d943[_0x177212(0x24c)](_0x14f75f,_0x3c373d);if(_0x4f545b&&(a['isFormulaString'](_0x4f545b['f'])||a['isFormulaId'](_0x4f545b['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a['Inject'](R[_0x112f11(0x2ef)])),A(0x1,a[_0x112f11(0x16e)]),A(0x2,a['IConfigService']),A(0x3,a[_0x112f11(0x277)](X[_0x112f11(0x2cc)])),A(0x4,a['IUniverInstanceService']),A(0x5,a['ILogService']),A(0x6,a['Inject'](a[_0x112f11(0x24d)]))],ie);var ss=Object[_0x112f11(0x265)],is=(_0x1efde1,_0x1b6091,_0x54350c,_0x13a840)=>{const _0x4607ef=_0x112f11;for(var _0x12d35f=_0x13a840>0x1?void 0x0:_0x13a840?ss(_0x1b6091,_0x54350c):_0x1b6091,_0x2544a0=_0x1efde1[_0x4607ef(0x132)]-0x1,_0x500709;_0x2544a0>=0x0;_0x2544a0--)(_0x500709=_0x1efde1[_0x2544a0])&&(_0x12d35f=_0x500709(_0x12d35f)||_0x12d35f);return _0x12d35f;},Ie=(_0x489b9e,_0x171c96)=>(_0xdad764,_0x5048ef)=>_0x171c96(_0xdad764,_0x5048ef,_0x489b9e);let Ce=class extends a['Disposable']{constructor(_0x2ce255,_0x10929d,_0x1dd487){const _0x3651e9=_0x112f11;super(),_(this,_0x3651e9(0x27c),new Map()),_(this,_0x3651e9(0x378),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x2ce255,this[_0x3651e9(0x37c)]=_0x10929d,this[_0x3651e9(0x17e)]=_0x1dd487);}[_0x112f11(0x316)](){const _0x4b44ba=_0x112f11;this[_0x4b44ba(0xff)]=!0x0;}[_0x112f11(0x2f1)](){const _0x19a34e=_0x112f11;this[_0x19a34e(0xff)]=!0x1;}get[_0x112f11(0x1a1)](){return this['_saveTaskMap'];}['dispose'](){const _0x9dfc64=_0x112f11;this['exhaustSavingTask']()[_0x9dfc64(0x15c)](()=>super[_0x9dfc64(0x2de)]());}async[_0x112f11(0x25e)](_0x2c8d38){const _0x8ae4f4=_0x112f11;return this[_0x8ae4f4(0xff)]?null:this[_0x8ae4f4(0x37c)][_0x8ae4f4(0x173)](u[_0x8ae4f4(0x2f8)](_0x2c8d38));}async[_0x112f11(0x10f)](_0x117dbd,_0x552307){const _0x1f5f30=_0x112f11;return!!this[_0x1f5f30(0x37c)][_0x1f5f30(0x186)](_0x117dbd,_0x552307);}['updateOfflineData'](_0x23e58e,_0x59f99b,_0x2b7252,_0x35265a){const _0x2a69a8=_0x112f11,_0x2aff03=this[_0x2a69a8(0x17e)]['getCurrentRevOfUnit'](_0x23e58e);this[_0x2a69a8(0x27c)][_0x2a69a8(0x17b)](_0x23e58e,{'unitID':_0x23e58e,'type':_0x59f99b,'awaitingChangeset':_0x2b7252,'mutations':_0x35265a,'rev':_0x2aff03}),this[_0x2a69a8(0x378)][_0x2a69a8(0x3b1)](_0x23e58e)||this[_0x2a69a8(0x379)](_0x23e58e);}['_scheduleSaving'](_0xd877f0){const _0x413913=_0x112f11,_0x4f5e67=this[_0x413913(0x34a)]();_0x4f5e67===0x0?this[_0x413913(0x2fc)](_0xd877f0):this[_0x413913(0x378)]['set'](_0xd877f0,setTimeout(()=>this[_0x413913(0x2fc)](_0xd877f0),_0x4f5e67));}['_getSaveTimeout'](){const _0x37b343=_0x112f11;var _0x539a48;return(_0x539a48=this[_0x37b343(0x101)]['getConfig'](u[_0x37b343(0x1ca)]))!=null?_0x539a48:u['LOCAL_CACHE_INTERVAL'];}[_0x112f11(0x2fc)](_0x5b64e3){const _0xab88da=_0x112f11,_0x2033a8=this[_0xab88da(0x378)]['get'](_0x5b64e3);return _0x2033a8!==void 0x0&&window['clearTimeout'](_0x2033a8),this[_0xab88da(0x37c)]['setItem'](u[_0xab88da(0x2f8)](_0x5b64e3),this['_cachedData']['get'](_0x5b64e3))[_0xab88da(0x15c)](()=>this[_0xab88da(0x378)][_0xab88da(0x375)](_0x5b64e3));}async['exhaustSavingTask'](){const _0x2673bb=_0x112f11,_0x2dad59=[];this['_saveTaskMap']['forEach']((_0x4bae63,_0x12f09a)=>{const _0x32789e=_0x29e7;window[_0x32789e(0x11e)](_0x4bae63),_0x2dad59[_0x32789e(0x2cd)](this['_saveCache'](_0x12f09a)[_0x32789e(0x15c)](()=>{const _0x44e6da=_0x32789e;this[_0x44e6da(0x378)]['delete'](_0x12f09a);}));}),await Promise[_0x2673bb(0x16b)](_0x2dad59);}};Ce=is([Ie(0x0,a[_0x112f11(0x103)]),Ie(0x1,a['ILocalStorageService']),Ie(0x2,a[_0x112f11(0x277)](g[_0x112f11(0x1e8)]))],Ce);class ke extends a[_0x112f11(0x2a7)]{constructor(){const _0x442ce2=_0x112f11;super(),_(this,_0x442ce2(0x1ba)),this[_0x442ce2(0x1ba)]=I['fromEvent'](window,_0x442ce2(0x355))[_0x442ce2(0x15e)](I[_0x442ce2(0x2a6)](this[_0x442ce2(0x33b)]),I[_0x442ce2(0x1d8)](0x1),I[_0x442ce2(0x2df)](void 0x0));}['setParam'](_0x2012d5,_0xa08d3f,_0x2f10f2=!0x1){const _0x2dceb5=_0x112f11,_0x49dd43=new URL(window[_0x2dceb5(0x13f)][_0x2dceb5(0x204)]);_0x49dd43[_0x2dceb5(0x2f6)][_0x2dceb5(0x17b)](_0x2012d5,_0xa08d3f),_0x2f10f2?window[_0x2dceb5(0x200)][_0x2dceb5(0x35d)]('','',_0x49dd43[_0x2dceb5(0x1c8)]()):window['history'][_0x2dceb5(0x1c4)]('','',_0x49dd43['toString']());}[_0x112f11(0x24f)](_0x142f79,_0x5bd0f3=!0x1){const _0x82156d=_0x112f11,_0x4c0655=new URL(window[_0x82156d(0x13f)]['href']);_0x4c0655[_0x82156d(0x2f6)][_0x82156d(0x375)](_0x142f79),_0x5bd0f3?window[_0x82156d(0x200)][_0x82156d(0x35d)]('','',_0x4c0655[_0x82156d(0x1c8)]()):window[_0x82156d(0x200)][_0x82156d(0x1c4)]('','',_0x4c0655['toString']());}[_0x112f11(0x1ab)](_0x33e3da){const _0x510ab5=_0x112f11;var _0x114db8;return(_0x114db8=new URL(window[_0x510ab5(0x13f)][_0x510ab5(0x204)])[_0x510ab5(0x2f6)]['get'](_0x33e3da))!=null?_0x114db8:void 0x0;}}var ns=Object[_0x112f11(0x39a)],rs=Object[_0x112f11(0x265)],os=(_0x3739bc,_0x990ac3,_0x508a74)=>_0x990ac3 in _0x3739bc?ns(_0x3739bc,_0x990ac3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x508a74}):_0x3739bc[_0x990ac3]=_0x508a74,as=(_0xeb00cf,_0x3a3a33,_0x415332,_0x4d13b1)=>{const _0x4dd8fc=_0x112f11;for(var _0x53cdb9=_0x4d13b1>0x1?void 0x0:_0x4d13b1?rs(_0x3a3a33,_0x415332):_0x3a3a33,_0x172bdc=_0xeb00cf[_0x4dd8fc(0x132)]-0x1,_0x233609;_0x172bdc>=0x0;_0x172bdc--)(_0x233609=_0xeb00cf[_0x172bdc])&&(_0x53cdb9=_0x233609(_0x53cdb9)||_0x53cdb9);return _0x53cdb9;},de=(_0x507d02,_0x3b4ef7)=>(_0x27108a,_0x327c72)=>_0x3b4ef7(_0x27108a,_0x327c72,_0x507d02),cs=(_0x469523,_0x27ae97,_0x21d8b0)=>os(_0x469523,_0x27ae97+'',_0x21d8b0);const ls='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x112f11(0x1f6)]=class extends a['Plugin']{constructor(_0x4b6d52=Le,_0x38bc2d,_0x144045,_0x5b5146){const _0x75fdfa=_0x112f11;super(),this[_0x75fdfa(0x191)]=_0x4b6d52,this[_0x75fdfa(0x2ed)]=_0x38bc2d,this[_0x75fdfa(0x399)]=_0x144045,this[_0x75fdfa(0x101)]=_0x5b5146;const {..._0x5aa050}=a[_0x75fdfa(0x2bc)]({},Le,this[_0x75fdfa(0x191)]);this[_0x75fdfa(0x101)][_0x75fdfa(0x311)](kt,_0x5aa050);}[_0x112f11(0x194)](){const _0x30dc6d=_0x112f11;this['_registerDependencies'](),this[_0x30dc6d(0x21d)]();}[_0x112f11(0x264)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x142390=_0x112f11;var _0x400d92;const _0x28d28d=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x142390(0x11a)],{'useClass':X[_0x142390(0x31d)]}],[u[_0x142390(0x26c)],{'useClass':Ce}],[exports[_0x142390(0x33a)]],[se],[Z],[F],[fe],[exports[_0x142390(0x374)]]];a[_0x142390(0x136)](this[_0x142390(0x399)],a[_0x142390(0x29b)](_0x28d28d,(_0x400d92=this['_config'])==null?void 0x0:_0x400d92['override']));}['_registerRenderDependencies'](){const _0x271da2=_0x112f11;this[_0x271da2(0x2dc)](this[_0x271da2(0x2ed)][_0x271da2(0x254)](a[_0x271da2(0x128)]['UNIVER_DOC'],[ge])),this[_0x271da2(0x2dc)](this[_0x271da2(0x2ed)][_0x271da2(0x254)](a[_0x271da2(0x128)][_0x271da2(0x2be)],[Ee]));}[_0x112f11(0x21d)](){const _0x2ae4a1=_0x112f11;a[_0x2ae4a1(0x134)](this[_0x2ae4a1(0x399)],[[F],[exports[_0x2ae4a1(0x33a)]],[se],[Z],[exports[_0x2ae4a1(0x374)]],[ie]]);}},cs(exports[_0x112f11(0x1f6)],_0x112f11(0x14a),ls),exports[_0x112f11(0x1f6)]=as([a[_0x112f11(0x280)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x112f11(0x348)]),de(0x2,a['Inject'](a[_0x112f11(0x32f)])),de(0x3,a[_0x112f11(0x103)])],exports[_0x112f11(0x1f6)]);var _s=Object[_0x112f11(0x265)],hs=(_0x540212,_0x4f522b,_0x30e9d9,_0x4f89bd)=>{const _0x3b1186=_0x112f11;for(var _0x26e627=_0x4f89bd>0x1?void 0x0:_0x4f89bd?_s(_0x4f522b,_0x30e9d9):_0x4f522b,_0x179b62=_0x540212[_0x3b1186(0x132)]-0x1,_0x385d62;_0x179b62>=0x0;_0x179b62--)(_0x385d62=_0x540212[_0x179b62])&&(_0x26e627=_0x385d62(_0x26e627)||_0x26e627);return _0x26e627;},W=(_0x2c1dc9,_0x3addbd)=>(_0x3cad74,_0x15cba1)=>_0x3addbd(_0x3cad74,_0x15cba1,_0x2c1dc9);exports['BrowserCollaborationSocketService']=class extends u[_0x112f11(0x10c)]{constructor(_0x43fcda,_0x2fcc66,_0x35b874,_0x553313,_0xb9b26c){super(_0x43fcda,_0x2fcc66,_0x35b874,_0x553313,_0xb9b26c);}async[_0x112f11(0x1df)](_0x5d0876){const _0x1dca75=_0x112f11,_0x4612fd=await this[_0x1dca75(0x292)](),_0x17f598=this[_0x1dca75(0x373)](_0x5d0876,_0x4612fd);return this[_0x1dca75(0x198)](_0x17f598);}[_0x112f11(0x373)](_0x8ebbda,_0x12ab0f){const _0x3c6f6b=_0x112f11,_0x39e40e=typeof window>'u'?new URL(_0x8ebbda):new URL(_0x8ebbda,window[_0x3c6f6b(0x13f)][_0x3c6f6b(0x226)]);_0x39e40e[_0x3c6f6b(0x2f6)][_0x3c6f6b(0x17b)]('sessionTicket',_0x12ab0f);const _0x28431f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3c6f6b(0x13f)][_0x3c6f6b(0x25f)]);return _0x28431f[_0x3c6f6b(0x243)](_0x3c6f6b(0x170))&&_0x39e40e['searchParams']['set'](_0x3c6f6b(0x170),_0x28431f[_0x3c6f6b(0x243)](_0x3c6f6b(0x170))),_0x39e40e[_0x3c6f6b(0x1c8)]();}async['_getSessionTicket'](){const _0x22f55f=_0x112f11;var _0x16f736,_0x797d1b,_0x28b8a1;const _0x4de503=this['_configService']['getConfig'](u[_0x22f55f(0x346)]),_0x9fa43e=(_0x16f736=_0x4de503==null?void 0x0:_0x4de503['wsSessionTicketUrl'])!=null?_0x16f736:u[_0x22f55f(0x17a)];return(_0x28b8a1=(_0x797d1b=(await this[_0x22f55f(0x2b1)][_0x22f55f(0x243)](_0x9fa43e,{'headers':{'Content-Type':_0x22f55f(0x3a7)}}))[_0x22f55f(0x332)])==null?void 0x0:_0x797d1b[_0x22f55f(0x145)])!=null?_0x28b8a1:'';}},exports[_0x112f11(0x1da)]=hs([W(0x0,a['Inject'](a[_0x112f11(0x32f)])),W(0x1,a['Inject'](X[_0x112f11(0x2cc)])),W(0x2,a[_0x112f11(0x103)]),W(0x3,a[_0x112f11(0x12d)]),W(0x4,g[_0x112f11(0xf2)])],exports[_0x112f11(0x1da)]);var us=Object[_0x112f11(0x265)],Is=(_0x1b5bf9,_0x115257,_0x4b7546,_0x1a9306)=>{const _0x4ea549=_0x112f11;for(var _0x428f55=_0x1a9306>0x1?void 0x0:_0x1a9306?us(_0x115257,_0x4b7546):_0x115257,_0x490cf1=_0x1b5bf9[_0x4ea549(0x132)]-0x1,_0x257b54;_0x490cf1>=0x0;_0x490cf1--)(_0x257b54=_0x1b5bf9[_0x490cf1])&&(_0x428f55=_0x257b54(_0x428f55)||_0x428f55);return _0x428f55;},Se=(_0x1a0d2b,_0x3916e7)=>(_0x201f3f,_0xccc8fd)=>_0x3916e7(_0x201f3f,_0xccc8fd,_0x1a0d2b);exports[_0x112f11(0x18f)]=class extends a[_0x112f11(0x18b)]{constructor(_0x3d2cae,_0x2c31aa,_0x14ee4a){const _0x1c943b=_0x112f11;super(),this[_0x1c943b(0x353)]=_0x3d2cae,this[_0x1c943b(0x2b1)]=_0x2c31aa,this[_0x1c943b(0x101)]=_0x14ee4a;}async[_0x112f11(0x1b1)](_0x2b9a6c,_0x33e1e4,_0x3b54ec,..._0x5e915b){const _0x38e602=_0x112f11;var _0x4c8678,_0x5391b3,_0x397586,_0x4d0cc8;const _0xc6fbdf=this[_0x38e602(0x353)][_0x38e602(0x299)]();if(!_0xc6fbdf)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2f8bf0=((_0x4c8678=this[_0x38e602(0x101)][_0x38e602(0x26a)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4c8678:u[_0x38e602(0x2b7)])+'/'+_0x2b9a6c+_0x38e602(0x27f)+_0x33e1e4,_0x47aa08=new URL(window[_0x38e602(0x13f)]['href']),_0x4c6ec5={'scriptId':_0x2b9a6c,'runId':(_0x5391b3=_0x47aa08[_0x38e602(0x2f6)][_0x38e602(0x243)](_0x38e602(0x170)))!=null?_0x5391b3:'','function':_0x33e1e4,'unitId':_0xc6fbdf[_0x38e602(0x1d3)](),'argsOfFunction':JSON[_0x38e602(0x1eb)](_0x5e915b),'invokeId':(_0x397586=_0x3b54ec[_0x38e602(0x1e5)])!=null?_0x397586:'','executionId':(_0x4d0cc8=_0x3b54ec[_0x38e602(0x15b)])!=null?_0x4d0cc8:''};try{const _0x2ca1d0=await this['_httpService'][_0x38e602(0x20f)](_0x2f8bf0,{'body':_0x4c6ec5});return _0x2ca1d0[_0x38e602(0x332)][_0x38e602(0x351)]&&_0x2ca1d0[_0x38e602(0x332)][_0x38e602(0x351)][_0x38e602(0x2fe)]!==G['OK']?_0x38e602(0x115):_0x2ca1d0[_0x38e602(0x332)]['result'];}catch{return _0x38e602(0x115);}}},exports['RemoteUniscriptService']=Is([Se(0x0,a[_0x112f11(0x2cf)]),Se(0x1,a[_0x112f11(0x277)](X['HTTPService'])),Se(0x2,a['IConfigService'])],exports[_0x112f11(0x18f)]);const Pe=0x7530,we=_0x112f11(0x2d9);class ds extends a[_0x112f11(0x18b)]{constructor(){const _0x4b2ee5=_0x112f11;super(),_(this,'_id',a[_0x4b2ee5(0x397)]()),_(this,_0x4b2ee5(0x371),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x4b2ee5(0x19c),null),_(this,_0x4b2ee5(0x160),new Map()),_(this,_0x4b2ee5(0x398),new Map()),this[_0x4b2ee5(0x31e)]();}['dispose'](){const _0x42aae6=_0x112f11;super[_0x42aae6(0x2de)](),this[_0x42aae6(0x160)][_0x42aae6(0x163)]((_0x50fc7b,_0x2b0fbd)=>this['_removeClearOtherTimer'](_0x2b0fbd)),this[_0x42aae6(0x19c)]&&window[_0x42aae6(0x290)](this['_heartbeatTimer']);}[_0x112f11(0x28f)](_0x5f0084){const _0x382112=_0x112f11;return this['_ensureSubject'](_0x5f0084)[_0x382112(0x15e)](I[_0x382112(0x1fb)]());}['editingUnit'](_0x1a6c66){const _0x5a9de9=_0x112f11;this[_0x5a9de9(0x371)][_0x5a9de9(0x22a)]===0x0&&this[_0x5a9de9(0x17f)](),this[_0x5a9de9(0x371)][_0x5a9de9(0x234)](_0x1a6c66),this['_send']({'type':0x0,'memberID':this[_0x5a9de9(0x197)],'unitIDs':[_0x1a6c66],'isForwarded':!0x1});}[_0x112f11(0x1d1)](_0x5ad57f){const _0x366f76=_0x112f11;this[_0x366f76(0x371)][_0x366f76(0x375)](_0x5ad57f),this[_0x366f76(0x371)][_0x366f76(0x22a)]===0x0&&this[_0x366f76(0x19c)]&&window[_0x366f76(0x290)](this[_0x366f76(0x19c)]);}[_0x112f11(0x31e)](){const _0x117275=_0x112f11;this[_0x117275(0x2dc)](a['toDisposable'](I[_0x117275(0x26e)](window,_0x117275(0x354))[_0x117275(0x1a4)](_0x5abd6b=>{const _0x165856=_0x117275;if(_0x5abd6b[_0x165856(0x144)]!==we||!_0x5abd6b[_0x165856(0x39d)])return;const _0xbd301d=JSON[_0x165856(0x2f5)](_0x5abd6b['newValue']);this[_0x165856(0x309)](_0xbd301d);}))),window[_0x117275(0x16f)]('unload',()=>this[_0x117275(0x35e)]({'type':0x1,'memberID':this[_0x117275(0x197)],'unitIDs':Array[_0x117275(0x286)](this[_0x117275(0x371)])}));}[_0x112f11(0x309)](_0x2133cd){const _0x4b1f09=_0x112f11;switch(_0x2133cd[_0x4b1f09(0x342)]){case 0x0:this[_0x4b1f09(0x1ed)](_0x2133cd);break;case 0x1:this[_0x4b1f09(0x331)](_0x2133cd);break;case 0x2:this[_0x4b1f09(0x229)](_0x2133cd);break;}}[_0x112f11(0x1ed)](_0x154e0a){const _0xef9169=_0x112f11,{unitIDs:_0x879878,memberID:_0x410d10,isForwarded:_0x5a3c5f}=_0x154e0a;_0x879878[_0xef9169(0x163)](_0x33abf1=>{const _0x2f1762=_0xef9169;if(!_0x5a3c5f&&this['_unitOnClients'][_0x2f1762(0x3b1)](_0x33abf1)&&this[_0x2f1762(0x130)](_0x33abf1)['next'](u['UnitStatus'][_0x2f1762(0x282)]),!this['_unitOnClients'][_0x2f1762(0x3b1)](_0x33abf1)||!this[_0x2f1762(0x31b)][_0x2f1762(0x243)](_0x33abf1)['has'](_0x410d10)){const _0xb9f8aa=this[_0x2f1762(0x31b)]['get'](_0x33abf1)||new Set();_0xb9f8aa[_0x2f1762(0x234)](_0x410d10),this[_0x2f1762(0x31b)][_0x2f1762(0x17b)](_0x33abf1,_0xb9f8aa),this[_0x2f1762(0x321)](_0x410d10);}}),_0x5a3c5f||this['_send']({'type':0x0,'memberID':this[_0xef9169(0x197)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x112f11(0x321)](_0x2b916b){const _0xc85eb3=_0x112f11;this['_removeClearOtherTimer'](_0x2b916b);const _0x37c578=window['setTimeout'](()=>{const _0x52af6c=_0x29e7;this[_0x52af6c(0x31b)][_0x52af6c(0x163)](_0x3dd324=>{const _0x2e3fd5=_0x52af6c;_0x3dd324[_0x2e3fd5(0x375)](_0x2b916b);});},Pe*0x2);this['_clearOtherTimers'][_0xc85eb3(0x17b)](_0x2b916b,_0x37c578);}[_0x112f11(0x211)](_0x795226){const _0x13949f=_0x112f11;if(this[_0x13949f(0x160)][_0x13949f(0x3b1)](_0x795226)){const _0x3f0140=this[_0x13949f(0x160)][_0x13949f(0x243)](_0x795226);_0x3f0140&&window[_0x13949f(0x11e)](_0x3f0140),this[_0x13949f(0x160)][_0x13949f(0x17b)](_0x795226,null);}}[_0x112f11(0x331)](_0x3d8880){const _0x3a285d=_0x112f11,{memberID:_0x3c20e3,unitIDs:_0x274186}=_0x3d8880;_0x274186[_0x3a285d(0x163)](_0x3970e3=>{const _0x493b5a=_0x3a285d;var _0x43f52e;const _0x19c2f5=this[_0x493b5a(0x31b)]['get'](_0x3970e3);_0x19c2f5&&(_0x19c2f5[_0x493b5a(0x375)](_0x3c20e3),(_0x43f52e=this[_0x493b5a(0x130)](_0x3970e3))==null||_0x43f52e[_0x493b5a(0x159)](_0x19c2f5[_0x493b5a(0x22a)]===0x0?u[_0x493b5a(0x176)][_0x493b5a(0x112)]:u[_0x493b5a(0x176)]['OTHER_CLIENTS_EDITING']));}),this[_0x3a285d(0x211)](_0x3c20e3);}[_0x112f11(0x229)](_0x1d238d){const _0x5bbb2f=_0x112f11;this[_0x5bbb2f(0x321)](_0x1d238d['memberID']);}[_0x112f11(0x35e)](_0x458fda){const _0x2803f3=_0x112f11;localStorage[_0x2803f3(0x186)](we,JSON[_0x2803f3(0x1eb)](_0x458fda));}[_0x112f11(0x17f)](){const _0x5459a6=_0x112f11;this[_0x5459a6(0x19c)]=window['setInterval'](()=>{const _0x168531=_0x5459a6;this[_0x168531(0x35e)]({'type':0x2,'memberID':this['_id']});},Pe);}[_0x112f11(0x130)](_0x136b22){const _0x2751e3=_0x112f11;return this[_0x2751e3(0x398)][_0x2751e3(0x3b1)](_0x136b22)||this['_unitStatus'][_0x2751e3(0x17b)](_0x136b22,new I[(_0x2751e3(0x1dd))](u[_0x2751e3(0x176)][_0x2751e3(0x112)])),this[_0x2751e3(0x398)][_0x2751e3(0x243)](_0x136b22);}}exports['IURLService']=Te,exports['SheetCollabCursorShape']=Fe,exports['WebBrowserSingleActiveUnitService']=ds,exports[_0x112f11(0x183)]=ke;