@univerjs-pro/collaboration-client-ui 1.0.0-beta.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.css +10 -22
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/commands/operations/update-remote-unit-presence.operation.d.ts +25 -0
  66. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +2 -4
  67. package/lib/types/controllers/collab-cursor/unit-presence-collab-cursor-entity.d.ts +38 -0
  68. package/lib/types/controllers/collab-cursor/unit-presence-collab-cursor.controller.d.ts +21 -0
  69. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +8 -13
  70. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +1 -2
  71. package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +3 -15
  72. package/lib/types/locale/en-US.d.ts +0 -1
  73. package/lib/types/models/cursor.d.ts +0 -25
  74. package/lib/types/plugin.d.ts +3 -2
  75. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +3 -3
  76. package/lib/types/views/components/SnapshotLoadingTimeout.d.ts +0 -4
  77. package/lib/types/views/shapes/doc-collab-cursor.d.ts +6 -1
  78. package/lib/umd/facade.js +1 -1
  79. package/lib/umd/index.js +1 -1
  80. package/lib/umd/locale/ar-SA.js +1 -1
  81. package/lib/umd/locale/ca-ES.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -1
  88. package/lib/umd/locale/it-IT.js +1 -1
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/pl-PL.js +1 -1
  92. package/lib/umd/locale/pt-BR.js +1 -1
  93. package/lib/umd/locale/ru-RU.js +1 -1
  94. package/lib/umd/locale/sk-SK.js +1 -1
  95. package/lib/umd/locale/vi-VN.js +1 -1
  96. package/lib/umd/locale/zh-CN.js +1 -1
  97. package/lib/umd/locale/zh-HK.js +1 -1
  98. package/lib/umd/locale/zh-TW.js +1 -1
  99. package/package.json +17 -21
  100. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +0 -31
  101. package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +0 -21
  102. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +0 -34
  103. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +0 -21
  104. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +0 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x246bb0=_0x55a3;(function(_0x2519f3,_0xc3298){const _0xc8d3be=_0x55a3,_0x2aa5ba=_0x2519f3();while(!![]){try{const _0x421873=parseInt(_0xc8d3be(0x28b))/0x1*(parseInt(_0xc8d3be(0x328))/0x2)+parseInt(_0xc8d3be(0x2aa))/0x3*(parseInt(_0xc8d3be(0x280))/0x4)+parseInt(_0xc8d3be(0xdd))/0x5+-parseInt(_0xc8d3be(0x21b))/0x6*(parseInt(_0xc8d3be(0x12d))/0x7)+parseInt(_0xc8d3be(0x253))/0x8*(-parseInt(_0xc8d3be(0x116))/0x9)+-parseInt(_0xc8d3be(0x342))/0xa+-parseInt(_0xc8d3be(0x106))/0xb*(-parseInt(_0xc8d3be(0x2f3))/0xc);if(_0x421873===_0xc3298)break;else _0x2aa5ba['push'](_0x2aa5ba['shift']());}catch(_0x546130){_0x2aa5ba['push'](_0x2aa5ba['shift']());}}}(_0x48ff,0xede29),Object[_0x246bb0(0x120)](exports,Symbol[_0x246bb0(0x125)],{'value':'Module'}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration'),d=require('@univerjs-pro/license'),f=require('@univerjs/docs'),p=require('@univerjs/docs-ui'),m=require('@univerjs/engine-render'),h=require('@univerjs/network'),g=require('@univerjs/engine-formula'),_=require('@univerjs/sheets'),v=require('@univerjs-pro/slides-ui'),y=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),b=require('@univerjs/protocol');function te(_0x52df35){const _0xe7a967=_0x246bb0;switch(_0x52df35){case t['CollaborationStatus'][_0xe7a967(0x28d)]:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0xf9)],{}),'colorClass':_0xe7a967(0x1f5),'i18nKey':_0xe7a967(0x11f),'tooltipKey':_0xe7a967(0x22e),'clickable':!0x0,'indicator':'static'};case t[_0xe7a967(0x335)]['CONFLICT']:return{'icon':(0x0,l['jsx'])(s[_0xe7a967(0xf9)],{}),'colorClass':_0xe7a967(0x306),'i18nKey':_0xe7a967(0x1e2),'clickable':!0x1,'indicator':_0xe7a967(0x276)};case t[_0xe7a967(0x335)]['FETCH_MISS']:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s['LoadingMultiIcon'],{}),'colorClass':_0xe7a967(0x13c),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':'spin'};case t[_0xe7a967(0x335)][_0xe7a967(0x344)]:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0x2c2)],{}),'colorClass':'univer-text-gray-400','i18nKey':_0xe7a967(0x36b),'clickable':!0x1,'indicator':_0xe7a967(0x276)};case t[_0xe7a967(0x335)][_0xe7a967(0x243)]:case t[_0xe7a967(0x335)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0xea)],{}),'colorClass':_0xe7a967(0x13c),'i18nKey':_0xe7a967(0x17d),'clickable':!0x1,'indicator':_0xe7a967(0x1c1)};case t[_0xe7a967(0x335)][_0xe7a967(0x2ca)]:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0xea)],{}),'colorClass':_0xe7a967(0x13c),'i18nKey':_0xe7a967(0x17d),'clickable':!0x1,'indicator':_0xe7a967(0x1c1)};case t['CollaborationStatus']['SYNCED']:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0x2c2)],{}),'colorClass':_0xe7a967(0x134),'i18nKey':_0xe7a967(0x3a7),'clickable':!0x1,'indicator':_0xe7a967(0x276)};}}function ne(_0xed9e9a){const _0x28c22c=_0x246bb0;let {status$:_0x31c7ec}=_0xed9e9a,_0x4c09fa=(0x0,r[_0x28c22c(0x3ca)])(_0x31c7ec,t[_0x28c22c(0x335)][_0x28c22c(0x344)]),_0x27a1fc=(0x0,r[_0x28c22c(0xcd)])(n[_0x28c22c(0x266)]),_0x437b45=(0x0,r['useDependency'])(t[_0x28c22c(0x2d9)]),_0x12cfdf=(0x0,c[_0x28c22c(0x149)])(()=>te(_0x4c09fa),[_0x4c09fa]),_0x523dfd=_0x4c09fa!==t[_0x28c22c(0x335)][_0x28c22c(0x28d)],_0x281841=_0x27a1fc['t'](_0x12cfdf[_0x28c22c(0x138)]),_0x28c485=_0x12cfdf[_0x28c22c(0x24c)]?_0x27a1fc['t'](_0x12cfdf[_0x28c22c(0x24c)]):_0x281841,_0x5dbf76=(0x0,c[_0x28c22c(0x26d)])(()=>{const _0x558a1b=_0x28c22c;_0x523dfd||_0x437b45[_0x558a1b(0x211)]();},[_0x523dfd,_0x437b45]),_0x4522d9=(0x0,c[_0x28c22c(0x26d)])(_0x12a298=>{const _0x2646b7=_0x28c22c;!_0x523dfd&&(_0x12a298['key']===_0x2646b7(0x29d)||_0x12a298[_0x2646b7(0x13f)]==='\x20')&&(_0x12a298['preventDefault'](),_0x437b45[_0x2646b7(0x211)]());},[_0x523dfd,_0x437b45]),_0x1e76d7=(0x0,l[_0x28c22c(0x30f)])('span',{'className':(0x0,o[_0x28c22c(0x11c)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x28c22c(0x263),_0x12cfdf[_0x28c22c(0x170)],{'univer-animate-spin':_0x12cfdf['indicator']===_0x28c22c(0x1c1),'univer-animate-pulse':_0x12cfdf[_0x28c22c(0x103)]===_0x28c22c(0x3a6)}),'aria-hidden':'true','children':_0x12cfdf[_0x28c22c(0x2b0)]}),_0x37e28f=(0x0,l[_0x28c22c(0x30f)])(_0x28c22c(0x126),{'className':(0x0,o['clsx'])(_0x28c22c(0x246),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x28c22c(0x1f7),_0x28c22c(0x18d),_0x28c22c(0x36c),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x12cfdf[_0x28c22c(0x187)],'univer-cursor-default':!_0x12cfdf[_0x28c22c(0x187)]}),'children':_0x1e76d7});return _0x12cfdf[_0x28c22c(0x187)]?(0x0,l[_0x28c22c(0x30f)])(o['Tooltip'],{'title':_0x28c485,'placement':_0x28c22c(0x31b),'children':(0x0,l[_0x28c22c(0x30f)])('button',{'type':_0x28c22c(0x35d),'onClick':_0x5dbf76,'onKeyDown':_0x4522d9,'className':(0x0,o[_0x28c22c(0x11c)])(_0x28c22c(0x270),'univer-border-none\x20univer-bg-transparent',_0x28c22c(0x1a4),'univer-appearance-none'),'aria-label':_0x281841+_0x28c22c(0x236)+_0x28c485,'role':_0x28c22c(0x333),'aria-live':'polite','aria-atomic':_0x28c22c(0xde),'children':_0x37e28f})}):(0x0,l[_0x28c22c(0x30f)])(o['Tooltip'],{'title':_0x28c485,'placement':_0x28c22c(0x31b),'children':(0x0,l[_0x28c22c(0x30f)])(_0x28c22c(0x392),{'className':(0x0,o[_0x28c22c(0x11c)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x28c22c(0x10f),_0x28c22c(0x1a4)),'aria-label':_0x281841,'role':'status','aria-live':_0x28c22c(0x195),'aria-atomic':'true','children':_0x37e28f})});}function x(_0x2a0110){'@babel/helpers - typeof';const _0x2e6f23=_0x246bb0;return x=typeof Symbol==_0x2e6f23(0x2c7)&&typeof Symbol[_0x2e6f23(0x29a)]==_0x2e6f23(0xf1)?function(_0x2236ce){return typeof _0x2236ce;}:function(_0x1be915){const _0x35dfab=_0x2e6f23;return _0x1be915&&typeof Symbol=='function'&&_0x1be915[_0x35dfab(0x38e)]===Symbol&&_0x1be915!==Symbol[_0x35dfab(0x38d)]?_0x35dfab(0xf1):typeof _0x1be915;},x(_0x2a0110);}function re(_0x2ef1c0,_0x3bd63f){const _0x132c82=_0x246bb0;if(x(_0x2ef1c0)!=_0x132c82(0x14d)||!_0x2ef1c0)return _0x2ef1c0;var _0x375e6d=_0x2ef1c0[Symbol[_0x132c82(0x1bd)]];if(_0x375e6d!==void 0x0){var _0x22cabb=_0x375e6d[_0x132c82(0x2b2)](_0x2ef1c0,_0x3bd63f||_0x132c82(0x3b7));if(x(_0x22cabb)!=_0x132c82(0x14d))return _0x22cabb;throw TypeError(_0x132c82(0x124));}return(_0x3bd63f===_0x132c82(0x227)?String:Number)(_0x2ef1c0);}function ie(_0x47f310){const _0x363d95=_0x246bb0;var _0x84a639=re(_0x47f310,_0x363d95(0x227));return x(_0x84a639)=='symbol'?_0x84a639:_0x84a639+'';}function S(_0x573342,_0x113f0d,_0x284113){return(_0x113f0d=ie(_0x113f0d))in _0x573342?Object['defineProperty'](_0x573342,_0x113f0d,{'value':_0x284113,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x573342[_0x113f0d]=_0x284113,_0x573342;}function C(_0x26878d,_0x464a37){return function(_0x18916c,_0x57762b){_0x464a37(_0x18916c,_0x57762b,_0x26878d);};}function w(_0x4daa98,_0x200099,_0x32134,_0x1926f3){const _0x5128fd=_0x246bb0;var _0x1d2c1c=arguments[_0x5128fd(0x192)],_0x4e3ff1=_0x1d2c1c<0x3?_0x200099:_0x1926f3===null?_0x1926f3=Object[_0x5128fd(0x201)](_0x200099,_0x32134):_0x1926f3,_0x3482a9;if(typeof Reflect==_0x5128fd(0x14d)&&typeof Reflect[_0x5128fd(0x326)]==_0x5128fd(0x2c7))_0x4e3ff1=Reflect[_0x5128fd(0x326)](_0x4daa98,_0x200099,_0x32134,_0x1926f3);else{for(var _0x5b6356=_0x4daa98[_0x5128fd(0x192)]-0x1;_0x5b6356>=0x0;_0x5b6356--)(_0x3482a9=_0x4daa98[_0x5b6356])&&(_0x4e3ff1=(_0x1d2c1c<0x3?_0x3482a9(_0x4e3ff1):_0x1d2c1c>0x3?_0x3482a9(_0x200099,_0x32134,_0x4e3ff1):_0x3482a9(_0x200099,_0x32134))||_0x4e3ff1);}return _0x1d2c1c>0x3&&_0x4e3ff1&&Object[_0x5128fd(0x120)](_0x200099,_0x32134,_0x4e3ff1),_0x4e3ff1;}let T=class extends n['Disposable']{constructor(_0x1106c2,_0x1d8eee,_0x5be3a6,_0x1dd127){const _0x4a20d2=_0x246bb0;super(),this[_0x4a20d2(0x123)]=_0x1106c2,this[_0x4a20d2(0x257)]=_0x1d8eee,this[_0x4a20d2(0x2a3)]=_0x5be3a6,this[_0x4a20d2(0x3d0)]=_0x1dd127,S(this,_0x4a20d2(0x3bb),new i[(_0x4a20d2(0x2b7))](t[_0x4a20d2(0x335)][_0x4a20d2(0x344)])),this[_0x4a20d2(0x1c7)](),this[_0x4a20d2(0x3a3)]();}[_0x246bb0(0x3a3)](){const _0x4b55b4=_0x246bb0;this['disposeWithMe']((0x0,i[_0x4b55b4(0x2ff)])(this[_0x4b55b4(0x123)]['focused$'],this[_0x4b55b4(0x123)][_0x4b55b4(0x14c)](n['UniverInstanceType'][_0x4b55b4(0x1cd)]),this[_0x4b55b4(0x123)][_0x4b55b4(0x14c)](n[_0x4b55b4(0xd2)][_0x4b55b4(0x1e6)]))[_0x4b55b4(0x319)]((0x0,a[_0x4b55b4(0x1cb)])(()=>ae(this[_0x4b55b4(0x123)])),(0x0,a[_0x4b55b4(0x22a)])(),(0x0,i['switchMap'])(_0x479b51=>_0x479b51?this[_0x4b55b4(0x2a3)]['getCollabEntity$'](_0x479b51):(0x0,i['of'])(null)),(0x0,i[_0x4b55b4(0x283)])(_0x1753f0=>_0x1753f0?_0x1753f0[_0x4b55b4(0x2dd)]:(0x0,i['of'])(t[_0x4b55b4(0x335)][_0x4b55b4(0x344)])))[_0x4b55b4(0x173)](_0x116a40=>{this['_status$']['next'](_0x116a40);}));}[_0x246bb0(0x1c7)](){const _0x1de8b7=_0x246bb0;this[_0x1de8b7(0x275)](this['_uiPartsService'][_0x1de8b7(0x33e)](r[_0x1de8b7(0x265)]['HEADER_MENU'],()=>(0x0,r[_0x1de8b7(0x3ad)])(se({'status$':this[_0x1de8b7(0x3bb)][_0x1de8b7(0x191)]()}),this[_0x1de8b7(0x257)])));}};T=w([C(0x0,n['IUniverInstanceService']),C(0x1,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x35f)])),C(0x3,r[_0x246bb0(0x235)])],T);let E=class extends n[_0x246bb0(0x13d)]{constructor(_0xc985b0,_0x2b1db4,_0x26b20d,_0x5b0c63){const _0x2a1e8e=_0x246bb0;super(),this['_univerInstanceService']=_0xc985b0,this['_injector']=_0x2b1db4,this[_0x2a1e8e(0x2a3)]=_0x26b20d,this['_uiPartsService']=_0x5b0c63,S(this,'_status$',new i[(_0x2a1e8e(0x2b7))](t[_0x2a1e8e(0x335)]['NOT_COLLAB'])),this['_initStatusComponent'](),this[_0x2a1e8e(0x3a3)]();}[_0x246bb0(0x3a3)](){const _0x1f20fd=_0x246bb0;this[_0x1f20fd(0x275)]((0x0,i[_0x1f20fd(0x2ff)])((0x0,i['of'])(null),this[_0x1f20fd(0x123)]['getCurrentTypeOfUnit$'](n['UniverInstanceType'][_0x1f20fd(0x291)]))[_0x1f20fd(0x319)]((0x0,a[_0x1f20fd(0x1cb)])(()=>oe(this[_0x1f20fd(0x123)])),(0x0,a[_0x1f20fd(0x22a)])(),(0x0,i[_0x1f20fd(0x283)])(_0x4b371b=>_0x4b371b?this[_0x1f20fd(0x2a3)][_0x1f20fd(0x39c)](_0x4b371b):(0x0,i['of'])(null)),(0x0,i[_0x1f20fd(0x283)])(_0x2d5f6f=>_0x2d5f6f?_0x2d5f6f[_0x1f20fd(0x2dd)]:(0x0,i['of'])(t[_0x1f20fd(0x335)][_0x1f20fd(0x344)])))[_0x1f20fd(0x173)](_0x3f9ba1=>{const _0x491331=_0x1f20fd;this[_0x491331(0x3bb)][_0x491331(0x264)](_0x3f9ba1);}));}['_initStatusComponent'](){const _0x748b3f=_0x246bb0;this[_0x748b3f(0x275)](this[_0x748b3f(0x3d0)][_0x748b3f(0x33e)](e['BOARD_TOP_RIGHT_MENU_LEADING_PART'],()=>(0x0,r['connectInjector'])(se({'status$':this[_0x748b3f(0x3bb)]['asObservable']()}),this[_0x748b3f(0x257)])));}};function _0x55a3(_0x3546c1,_0x324980){_0x3546c1=_0x3546c1-0xc3;const _0x48ffa7=_0x48ff();let _0x55a309=_0x48ffa7[_0x3546c1];return _0x55a309;}E=w([C(0x0,n[_0x246bb0(0x324)]),C(0x1,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x35f)])),C(0x3,r['IUIPartsService'])],E);function ae(_0x59a4a8){const _0x4ea45f=_0x246bb0;let _0x9a7b3f=_0x59a4a8['getFocusedUnit'](),_0x15d81a=_0x9a7b3f==null?void 0x0:_0x9a7b3f[_0x4ea45f(0x313)]();if(_0x15d81a&&!(0x0,n[_0x4ea45f(0x3a8)])(_0x15d81a))return _0x15d81a;let _0x7bda6f=_0x59a4a8['getCurrentUnitOfType'](n[_0x4ea45f(0xd2)]['UNIVER_DOC']),_0x48e405=_0x7bda6f==null?void 0x0:_0x7bda6f[_0x4ea45f(0x313)]();if(_0x48e405&&!(0x0,n['isInternalEditorID'])(_0x48e405))return _0x48e405;let _0x3d94d1=_0x59a4a8['getCurrentUnitOfType'](n[_0x4ea45f(0xd2)][_0x4ea45f(0x1e6)]);if(_0x3d94d1)return _0x3d94d1[_0x4ea45f(0x313)]();let _0x441949=_0x59a4a8[_0x4ea45f(0x3c2)](n[_0x4ea45f(0xd2)]['UNIVER_DOC'])[_0x4ea45f(0x37a)](_0x4cb4bc=>!(0x0,n[_0x4ea45f(0x3a8)])(_0x4cb4bc[_0x4ea45f(0x313)]()));return _0x441949?_0x441949[_0x4ea45f(0x313)]():null;}function oe(_0x5221a0){const _0x2febd5=_0x246bb0;let _0x22eff1=_0x5221a0[_0x2febd5(0x12c)](n['UniverInstanceType'][_0x2febd5(0x291)]);return(_0x22eff1==null?void 0x0:_0x22eff1[_0x2febd5(0x313)]())??null;}function se(_0x179a6f){let {status$:_0x43475c}=_0x179a6f;return function(){const _0x39a3a3=_0x55a3;return(0x0,l[_0x39a3a3(0x30f)])(ne,{'status$':_0x43475c});};}var ce=_0x246bb0(0x2ba),le=_0x246bb0(0x2d3);const ue={};let D=class extends n[_0x246bb0(0x2db)]{constructor(_0x505286,_0x1a5ca2){const _0x3b2ccf=_0x246bb0;super(),this[_0x3b2ccf(0x20b)]=_0x505286,this[_0x3b2ccf(0x331)]=_0x1a5ca2,this['_init']();}['_init'](){const _0x205f32=_0x246bb0;let _0x5b35c5=this;this['disposeWithMe'](this[_0x205f32(0x20b)]['addClipboardHook']({'onBeforePasteImage':async _0x3f9dce=>{const _0x535d54=_0x205f32;let _0x1e8be3=await _0x5b35c5[_0x535d54(0x331)][_0x535d54(0x1a8)](_0x3f9dce);return _0x1e8be3?{'source':_0x1e8be3['source'],'imageSourceType':_0x1e8be3[_0x535d54(0x1d3)]}:null;}}));}};D=w([C(0x0,p[_0x246bb0(0x260)]),C(0x1,n[_0x246bb0(0x230)])],D);function de(_0x1f9b30,_0x309f0a){const _0x31e465=_0x246bb0;_0x1f9b30[_0x31e465(0x341)](),_0x1f9b30[_0x31e465(0x37e)]=_0x31e465(0x2d4);let _0x399381=_0x1f9b30[_0x31e465(0x1c6)](_0x309f0a)[_0x31e465(0x1b2)];return _0x1f9b30['restore'](),Math[_0x31e465(0x23c)](_0x399381+0x8,0xc8);}function fe(_0x2cc0da,_0x5df5fb){const _0x4b004a=_0x246bb0;let {radius:_0x42c824,width:_0x9996d1,height:_0x434362}=_0x5df5fb;_0x42c824??=0x0,_0x9996d1??=0x1e,_0x434362??=0x1e;let _0x2cdb9e=0x0,_0x10a7d9=0x0,_0x450b9c=0x0;_0x2cdb9e=_0x10a7d9=_0x450b9c=Math['min'](_0x42c824,_0x9996d1/0x2,_0x434362/0x2),_0x2cc0da['beginPath'](),_0x2cc0da[_0x4b004a(0x1f6)](_0x2cdb9e,0x0),_0x2cc0da['lineTo'](_0x9996d1-_0x10a7d9,0x0),_0x2cc0da['arc'](_0x9996d1-_0x10a7d9,_0x10a7d9,_0x10a7d9,Math['PI']*0x3/0x2,0x0,!0x1),_0x2cc0da['lineTo'](_0x9996d1,_0x434362-_0x450b9c),_0x2cc0da[_0x4b004a(0xf5)](_0x9996d1-_0x450b9c,_0x434362-_0x450b9c,_0x450b9c,0x0,Math['PI']/0x2,!0x1),_0x2cc0da[_0x4b004a(0x1e3)](0x0,_0x434362),_0x2cc0da[_0x4b004a(0x1e3)](0x0,_0x2cdb9e),_0x2cc0da[_0x4b004a(0xf5)](_0x2cdb9e,_0x2cdb9e,_0x2cdb9e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2cc0da['closePath'](),_0x5df5fb[_0x4b004a(0x343)]&&(_0x2cc0da[_0x4b004a(0x341)](),_0x2cc0da['fillStyle']=_0x5df5fb[_0x4b004a(0x343)],_0x5df5fb['fillRule']===_0x4b004a(0x15c)?_0x2cc0da[_0x4b004a(0x343)](_0x4b004a(0x15c)):_0x2cc0da[_0x4b004a(0x343)](),_0x2cc0da['restore']());}var O=class e extends m[_0x246bb0(0x2c0)]{constructor(_0x4ed0a3,_0x573c2b){const _0x22cb2f=_0x246bb0;super(_0x4ed0a3,_0x573c2b),S(this,'color',void 0x0),S(this,_0x22cb2f(0x113),void 0x0),this[_0x22cb2f(0x26e)]=_0x573c2b==null?void 0x0:_0x573c2b['color'],this['text']=_0x573c2b==null?void 0x0:_0x573c2b[_0x22cb2f(0x113)];}static[_0x246bb0(0x387)](_0x187f34,_0x4a3037){const _0x329d17=_0x246bb0;let {text:_0x26003e,color:_0x32f076}=_0x4a3037;_0x187f34[_0x329d17(0x341)](),_0x187f34[_0x329d17(0x37e)]=_0x329d17(0x2f0);let _0xe1f156=_0x187f34[_0x329d17(0x1c6)](_0x26003e)[_0x329d17(0x1b2)];if(fe(_0x187f34,{'height':0x14,'radius':0x4,'width':de(_0x187f34,_0x26003e),'fill':_0x32f076,'evented':!0x1}),_0x187f34['fillStyle']=_0x329d17(0x18b),_0xe1f156>0xc0){let _0x434326='',_0x26a048=0x0;for(let _0x3c6cda of _0x26003e){let _0x13b034=_0x187f34[_0x329d17(0x1c6)](_0x3c6cda)[_0x329d17(0x1b2)];if(_0x26a048+_0x13b034<=0xc0-_0x187f34[_0x329d17(0x1c6)](_0x329d17(0x388))[_0x329d17(0x1b2)])_0x434326+=_0x3c6cda,_0x26a048+=_0x13b034;else{_0x434326+='...';break;}}_0x187f34[_0x329d17(0x3c7)](_0x434326,0x4,0xf);}else _0x187f34[_0x329d17(0x3c7)](_0x26003e,0x4,0xf);_0x187f34[_0x329d17(0x1dd)]();}[_0x246bb0(0x2b4)](_0x24e26f){const _0x10ee72=_0x246bb0;e[_0x10ee72(0x387)](_0x24e26f,this);}};const k=0x138a;var pe=class extends m[_0x246bb0(0x2c0)]{constructor(_0x1861f9,_0x515bec){const _0x58854c=_0x246bb0;super(_0x1861f9,{..._0x515bec,'evented':!0x1}),S(this,_0x58854c(0x2d5),'#4f46e5'),S(this,_0x58854c(0x2ad),''),S(this,_0x58854c(0x3a0),!0x0),_0x515bec&&this[_0x58854c(0x351)](_0x515bec);}[_0x246bb0(0x351)](_0x1bccc0){const _0x454e1e=_0x246bb0;this[_0x454e1e(0x2d5)]=_0x1bccc0[_0x454e1e(0x26e)]??this[_0x454e1e(0x2d5)],this[_0x454e1e(0x2ad)]=_0x1bccc0[_0x454e1e(0x21e)]??this[_0x454e1e(0x2ad)],this[_0x454e1e(0x3a0)]=_0x1bccc0[_0x454e1e(0x24f)]??this[_0x454e1e(0x3a0)],this[_0x454e1e(0x294)]=!0x1,this[_0x454e1e(0x238)]({'left':_0x1bccc0['left']??this[_0x454e1e(0x33c)],'top':_0x1bccc0[_0x454e1e(0x2f5)]??this[_0x454e1e(0x2f5)],'width':_0x1bccc0[_0x454e1e(0x1b2)]??this[_0x454e1e(0x1b2)],'height':_0x1bccc0[_0x454e1e(0x128)]??this[_0x454e1e(0x128)],'angle':_0x1bccc0[_0x454e1e(0x10d)]??this['angle']});}[_0x246bb0(0x2b4)](_0x52f6c9){const _0x47db49=_0x246bb0;_0x52f6c9['save'](),_0x52f6c9['strokeStyle']=this[_0x47db49(0x2d5)],_0x52f6c9['lineWidth']=this['strokeWidth']||1.5,_0x52f6c9['setLineDash']([0x6,0x4]),_0x52f6c9[_0x47db49(0x19d)](0x0,0x0,this[_0x47db49(0x1b2)],this[_0x47db49(0x128)]),_0x52f6c9[_0x47db49(0x1dd)](),this[_0x47db49(0x3a0)]&&(_0x52f6c9[_0x47db49(0x341)](),_0x52f6c9[_0x47db49(0x32d)](0x1,0x0,0x0,0x1,this[_0x47db49(0x1b2)],-0x14),O[_0x47db49(0x387)](_0x52f6c9,{'text':this[_0x47db49(0x2ad)],'color':this[_0x47db49(0x2d5)]}),_0x52f6c9['restore']());}};const me=[_0x246bb0(0x19b),'jiqing.500',_0x246bb0(0x1f2),_0x246bb0(0x156),_0x246bb0(0x245),_0x246bb0(0x129)];var A=class extends n['Disposable']{constructor(..._0xba6306){const _0xda6c55=_0x246bb0;super(..._0xba6306),S(this,_0xda6c55(0x18f),new Map()),S(this,'_colorIndex',0x0);}[_0x246bb0(0x17f)](_0x5964b6){const _0x3181e9=_0x246bb0;if(this[_0x3181e9(0x18f)][_0x3181e9(0x2eb)](_0x5964b6))return this[_0x3181e9(0x18f)][_0x3181e9(0x2e5)](_0x5964b6);let _0x358b14=me[this[_0x3181e9(0x2ed)]];return this[_0x3181e9(0x2ed)]=(this[_0x3181e9(0x2ed)]+0x1)%me[_0x3181e9(0x192)],this[_0x3181e9(0x18f)][_0x3181e9(0x2f4)](_0x5964b6,_0x358b14),_0x358b14;}};function he(_0x2abe4c){const _0x1fcb0b=_0x246bb0;let _0x17c57a;try{_0x17c57a=JSON[_0x1fcb0b(0x1ab)](_0x2abe4c);}catch{return null;}if(typeof _0x17c57a!='object'||!_0x17c57a)return null;let _0x3c3891=_0x17c57a;if(_0x3c3891[_0x1fcb0b(0x37b)]!==_0x1fcb0b(0x317)||typeof _0x3c3891[_0x1fcb0b(0x193)]!=_0x1fcb0b(0x227)||typeof _0x3c3891[_0x1fcb0b(0x3bc)]!=_0x1fcb0b(0x227))return null;let _0x562e91=Array['isArray'](_0x3c3891[_0x1fcb0b(0x21d)])?_0x3c3891[_0x1fcb0b(0x21d)][_0x1fcb0b(0x18a)](_0x4673c6=>typeof _0x4673c6==_0x1fcb0b(0x227)):[],_0x2d9ccb=typeof _0x3c3891['focusedId']==_0x1fcb0b(0x227)?_0x3c3891[_0x1fcb0b(0x16e)]:null;return{'kind':'board-element-selection','unitId':_0x3c3891[_0x1fcb0b(0x193)],'subUnitId':_0x3c3891['subUnitId'],'selectedIds':_0x562e91,'focusedId':_0x2d9ccb};}let j=class extends n[_0x246bb0(0x2db)]{get[_0x246bb0(0x30a)](){const _0x331233=_0x246bb0;return this[_0x331233(0x361)][_0x331233(0x288)]();}get[_0x246bb0(0x277)](){const _0x2958a2=_0x246bb0;return this[_0x2958a2(0x185)]['getValue']();}constructor(_0x336747,_0x3d12d9,_0x2a3d53,_0x5d98e7,_0x1d89ff){const _0x1f0389=_0x246bb0;super(),this[_0x1f0389(0x2a7)]=_0x336747,this[_0x1f0389(0x3c6)]=_0x3d12d9,this[_0x1f0389(0x147)]=_0x2a3d53,this[_0x1f0389(0x286)]=_0x5d98e7,this[_0x1f0389(0x1f4)]=_0x1d89ff,S(this,_0x1f0389(0xf4),!0x1),S(this,_0x1f0389(0x244),!0x1),S(this,_0x1f0389(0x361),new i['BehaviorSubject'](new Map())),S(this,_0x1f0389(0x27b),this[_0x1f0389(0x361)][_0x1f0389(0x191)]()),S(this,'_roomMembers$',new i[(_0x1f0389(0x2b7))]([])),S(this,'roomMembers$',this[_0x1f0389(0x185)][_0x1f0389(0x319)]((0x0,i[_0x1f0389(0x1f1)])(0x12c))),S(this,_0x1f0389(0x2c9),(0x0,n[_0x1f0389(0x225)])(_0xf81ac=>{const _0x351aec=_0x1f0389;let _0x513c96=_0xf81ac[_0x351aec(0x2c5)];if(!_0x513c96||_0x513c96[_0x351aec(0x193)]!==this[_0x351aec(0x2a7)])return;let _0x5045d3={'kind':_0x351aec(0x317),'unitId':_0x513c96[_0x351aec(0x193)],'subUnitId':_0x513c96[_0x351aec(0x3bc)],'selectedIds':_0xf81ac[_0x351aec(0x21d)][_0x351aec(0x18a)](_0x376901=>typeof _0x376901==_0x351aec(0x227)),'focusedId':_0xf81ac[_0x351aec(0x16e)]},_0x26f779={'eventID':u[_0x351aec(0x26a)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x351aec(0x2a7)],'memberID':this[_0x351aec(0x3c6)][_0x351aec(0x262)](),'selection':JSON[_0x351aec(0x146)](_0x5045d3)}};this[_0x351aec(0x3c6)][_0x351aec(0x207)](_0x26f779,this['unitID']);},0x64));}[_0x246bb0(0x20f)](){const _0x43bf14=_0x246bb0;super['dispose'](),this[_0x43bf14(0x361)][_0x43bf14(0x264)](new Map()),this[_0x43bf14(0x361)][_0x43bf14(0x1b3)](),this[_0x43bf14(0x185)]['next']([]),this[_0x43bf14(0x185)][_0x43bf14(0x1b3)]();}[_0x246bb0(0x213)](){const _0x2e9a3e=_0x246bb0;this[_0x2e9a3e(0x244)]||(this[_0x2e9a3e(0x244)]=!0x0,this[_0x2e9a3e(0x3c6)]['sessionStatus$'][_0x2e9a3e(0x319)]((0x0,i[_0x2e9a3e(0x119)])(this[_0x2e9a3e(0x22c)]))['subscribe'](_0xd80f51=>{const _0x1175bb=_0x2e9a3e;_0xd80f51===t[_0x1175bb(0x1be)][_0x1175bb(0x25e)]?this[_0x1175bb(0x274)]():this['_toggleOffline']();}),this[_0x2e9a3e(0x3c6)][_0x2e9a3e(0x1a3)][_0x2e9a3e(0x319)]((0x0,i['takeUntil'])(this['dispose$']))[_0x2e9a3e(0x173)](_0x1f6678=>{const _0x56cfce=_0x2e9a3e;let _0x85ee11=_0x1f6678[_0x56cfce(0x2ec)];_0x85ee11===u['CollaborationEvent'][_0x56cfce(0x2d7)]&&this[_0x56cfce(0x27d)](_0x1f6678),_0x85ee11===u[_0x56cfce(0x26a)][_0x56cfce(0xfb)]&&this[_0x56cfce(0xec)](_0x1f6678);}),this['_boardElementStateService'][_0x2e9a3e(0x323)][_0x2e9a3e(0x319)]((0x0,i[_0x2e9a3e(0x119)])(this[_0x2e9a3e(0x22c)]))[_0x2e9a3e(0x173)](_0xad0848=>{const _0x22145a=_0x2e9a3e;this[_0x22145a(0xf4)]&&this[_0x22145a(0x2c9)](_0xad0848);}));}[_0x246bb0(0x27d)](_0x3d3e35){const _0x5c31f9=_0x246bb0;var _0x445cf0,_0x52603c,_0x1525ec;let {memberID:_0x298bdc,selection:_0x281f49}=_0x3d3e35[_0x5c31f9(0x32a)];if(_0x298bdc===((_0x445cf0=(_0x52603c=this[_0x5c31f9(0x3c6)])['getMemberID'])==null?void 0x0:_0x445cf0[_0x5c31f9(0x2b2)](_0x52603c)))return;let _0x4c407c=he(_0x281f49);if(!_0x4c407c||_0x4c407c[_0x5c31f9(0x193)]!==this[_0x5c31f9(0x2a7)])return;let _0x318ba9=((_0x1525ec=this[_0x5c31f9(0x286)][_0x5c31f9(0x130)](this[_0x5c31f9(0x2a7)],_0x298bdc))==null?void 0x0:_0x1525ec[_0x5c31f9(0x21e)])??_0x5c31f9(0x197),_0x7c225d={'color':this[_0x5c31f9(0x147)][_0x5c31f9(0x17f)](_0x298bdc),'name':_0x318ba9,'unitId':_0x4c407c[_0x5c31f9(0x193)],'subUnitId':_0x4c407c['subUnitId'],'selectedIds':_0x4c407c[_0x5c31f9(0x21d)],'focusedId':_0x4c407c[_0x5c31f9(0x16e)],'selection':_0x281f49},_0x49b0e1=new Map(this[_0x5c31f9(0x30a)]);_0x49b0e1['set'](_0x298bdc,_0x7c225d),this[_0x5c31f9(0x361)][_0x5c31f9(0x264)](_0x49b0e1);}['_onCursorDelete'](_0xa05d2d){const _0x12d7f0=_0x246bb0;let {memberID:_0x5baca3}=_0xa05d2d['data'],_0x431f94=new Map(this[_0x12d7f0(0x30a)]);_0x431f94[_0x12d7f0(0x296)](_0x5baca3),this['_cursorInfo$']['next'](_0x431f94);}[_0x246bb0(0x274)](){const _0x296d30=_0x246bb0;this['_online']=!0x0,this[_0x296d30(0x2c9)](this['_boardElementStateService'][_0x296d30(0x312)]());}[_0x246bb0(0x1c4)](){const _0x38594a=_0x246bb0;this[_0x38594a(0xf4)]=!0x1;}};j=w([C(0x2,(0x0,n[_0x246bb0(0x1a6)])(A)),C(0x3,(0x0,n['Inject'])(t[_0x246bb0(0x204)])),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(e[_0x246bb0(0x35e)]))],j);function ge(_0x2de8ec){const _0x416f9b=_0x246bb0;let _0xfe5528='';for(let _0x424ff0 of _0x2de8ec){let {startOffset:_0x3f1424,endOffset:_0x21330c,isActive:_0x539d4f,rangeType:_0x31693f,segmentId:_0x5cb648,segmentPage:_0xa46a60}=_0x424ff0;_0xfe5528[_0x416f9b(0x192)]&&(_0xfe5528+=','),_0xfe5528+=_0x3f1424+':'+_0x21330c+':'+(_0x539d4f?'1':'0')+':'+_0x31693f+':'+_0x5cb648+':'+_0xa46a60;}return _0xfe5528;}function _0x48ff(){const _0x52cb31=['[CollaborationDataLoaderController]','isEditing','_memberService','mutations','getValue','_updateURLWithCurrentState','_shortcutService','89627ROHVDo','getObject','OFFLINE','_initUnhandledRejectionListener','getActiveSlide','IRemoteInstanceService','UNIVER_BOARD','packageName','subscribeEvent','evented','_createSocketURL','delete','ILocalCacheService','snapshot-loading-','clear','iterator','_sheetLoadingRenderService','range','Enter','_clearTimeoutState','SUCCESS','buildDrawingOKey','startColumn','getCollabCursors$','_collaborationController','IBeforeCloseService','DEFAULT_WS_SESSION_TICKET_URL','previewCellData','unitID','BrowserCollaborationSocketService','isArray','46353GClzxH','/run/','InsertRangeMoveRightCommandId','_name','addHandlerCallback','_initEvent','icon','_onRefRangeChange','call','searchParams','_draw','location','getTypeOfUnitDisposed$','BehaviorSubject','getScrollXYInfoByViewport','getItem','@univerjs-pro/collaboration-client-ui','releaseFormulaLimitUrl','whenReady','SetTextSelectionsOperation','rgba','small','Shape','Warning','OnLineIcon','RECT','reason','context','getRangePointData','function','startRow','_updateLocalCursor','PENDING','_offsetY','_updateSheetPreview','_scheduleHeartbeat','onMouseMove','getUnit','_clearPolling','UniverDocsUIPlugin','getActivePageId','1.0.0-beta.0','bold\x2013px\x20Arial,\x20sans-serif','_color','from','UPDATE_CURSOR','unhandledrejection','CollaborationSessionService','getConfig','RxDisposable','message','status$','collaboration-client-ui.permission.title','flatMap','_highlight','startPluginsForType','toISOString','search','m2Prime','get','some','transformSelections','DocSkeletonManagerService','_cursor','Success','has','eventID','_colorIndex','_transformPreviousActiveRange','collaboration-client-ui.snapshotLoading.refresh','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','clearTimeout','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','816euNIkM','set','top','Subject','stage','SnapshotLoadStage','RemoveColCommandId','UniverNetworkPlugin','collaboration-client-ui.formula.calculation.unable','_startCalculationLimit','_handleEvent','show','merge','snapshot-loading-timeout','getCoordByCell','backupOfflineData','_uploadLog','_interactionBlocked$','setOffsetY','univer-text-orange-500','_collabSessionService','href','backgroundColor','cursorInfo','newValue','_unitStatus','getFocusedUnit','combineLatest','jsx','sheetID','DependentOn','getSnapshot','getUnitId','transformRemoteChangeset','getFormulaLimitStatusUrl','_logService','board-element-selection','urlChange$','pipe','RichTextEditingMutation','bottom','subunit','deserializeRangeWithSheet','_syncEditingCollabCursorService','getDocRanges','IConfigService','activeSheetId',':backup:','state$','IUniverInstanceService','setAlpha','decorate','getRenderUnitById','26SQekjg','_getSaveTimeout','data','DocCollaborationEntity','_scheduleRender','transform','_docTransformIMECacheService','syncEditingCollabCursor','requireSession','_imageIoService','_getSheetLoadingRenderService','status','_eventUnsubscribe','CollaborationStatus','registerBeforeClose','_watchBlockProgress','black','pushState','_updateSubUnitFromURLParams','InsertColCommandId','left','isActive','registerComponent','addEventListener','_shapes','save','10459970YEYfxR','fill','NOT_COLLAB','UniverRenderEnginePlugin','add','contains','collaboration-client-ui.conflict.content','_stopBlinking','createElement','IShortcutService','_isVisibleUnit','_initCommandExecutedListener','_selfUnitIDs','forEach','resolve','setShapeProps','_scheduleSaving','WebSocketService','SheetSkeletonManagerService','SUBMIT_CHANGESET_TIMEOUT','_highlightSecond','getParam','removeObjects','_setupBeforeClosingHandler','unit','getActiveRange','forceDisable','button','IBoardElementStateService','CollaborationController','parseInt','_cursorInfo$','Rect','removeEventListener','unshift','_renderManagerService','unsubscribe','_releaseCalculationLimit','_transformHistoryAndStateStack','snapshot-loading-interaction-guard','right','collaboration-client-ui.collabStatus.notCollab','dark:focus:!univer-ring-offset-gray-800','_memberID','_isApplyingOverlays','_updateCollabCursors','_anchor','SOCKET_FAILED_RETRY','roomMembers$','exhaustSavingTask','labelPosition','serializeRangeWithSheet','PERMISSION_DENIED','_pluginService','SheetsSelectionsService','_monkeyPatchLogService','find','kind','_snapshotLoadingService','_blinkIntervalTimer','font','PluginService','strokeWidth','RevisionService','_setInteractionBlocked','createInstance','selections','_cursorShapes','collaboration-client-ui.formula.calculation.waiting','drawWith','...','Fragment','isTransformMutationsWithChangesetSuccess','EffectRefRangId','TEXT','prototype','constructor','getActiveSheet','override','body','div','collaboration-client-ui.formula.calculation.started','handleDeleteRangeMoveLeft','removeParam','split','DocSelectionManagerService','COMPLETE','transformIMECache','loadOfflineData','getCurrentSkeleton','getCollabEntity$','getUnhiddenWorksheets','SHEET_VIEWPORT_KEY','timeoutState$','_showText','_getSessionTicket','clearInterval','_initStatusListener','resize','disposeUnit','pulse','collaboration-client-ui.collabStatus.synced','isInternalEditorID','activeSlideId$','onStarting','saveTaskMap','_getSceneObjectByKey','connectInjector','_removeCollabCursors','_localeService','Tools','_pointerMoveDisposable','disableLocalCache','triggerDblclick','join','_handoffPreview','MoveRangeCommandId','default','UniverDocsPlugin','_saveCache','_startBlinking','_status$','subUnitId','_entities','Optional','CLOSE_ROOM','OTHER_CLIENT_EDITING','onCommandExecuted','getAllUnitsForType','transformMutation','setTimeout','ThemeService','_session','fillText','_hideTimer','_getObjectBounds','useObservable','deepClone','CollaborationSocketService','_getAnchorBounding','_disabled','getViewport','_uiPartsService','IURLService','MessageType','toString','Button','Vector2','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','collabCursorState$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','OTHER_CLIENTS_EDITING','collab-rect-range-','with','getId','useDependency','_latestCursors','size','params','m1Prime','UniverInstanceType','_transformUndoRedoStack','_backgroundColor','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','_handoffUnitIds','_send','_blinkTimer','_currentUsage','SetWorksheetActivateCommand','currentUsage','wsSessionTicketUrl','751680dwxfsh','true','_refreshCollabCursors','_cursors','timedOut','Failed','removeObject','mapTo','filename','SetFormulaCalculationNotificationMutation','handleDeleteRangeMoveUp','_pollingInterval','remove','LoadingMultiIcon','_updateMessage','_onCursorDelete','ColorKit','offsetY','_beforeCloseService','RemoveRowCommandId','symbol','GLOBAL','_configService','_online','arc','_removeClearOtherTimer','_dataLoaderService','_sheetSkeletonManagerService','OffLineIcon','getAncestorScale','USERS_LEAVE','ranges','_docSkeletonManagerService','_id','jsxs','/universer-api/license/formula/limit/start','_scene','ILogService','indicator','history','getSheetBySheetId','300311eIcOzg','_lastPointer','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','doc.mutation.rich-text-editing','_drawAnchor','_latestStates','currentSkeleton$','angle','FromArray','univer-border-none\x20univer-bg-transparent','setItem','push','currentTheme$','text','_handleHeartbeatEvent','getLocalCacheKey','24543HfVzlp','workbookShell','selection','takeUntil','enableDocumentCollaborationUI','_cachedData','clsx','addObject','ISheetLoadingRenderService','collaboration-client-ui.collabStatus.offline','defineProperty','ISnapshotServerService','getCoordRelativeToViewport','_univerInstanceService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toStringTag','span','_initEntityListener','height','yellow.400','SOCKET_FAILED','_localStorageService','getCurrentUnitOfType','7wvQwbX','_messageIds','?taskId=','getMember','UNIVER_SLIDE','LOCAL_CACHE_INTERVAL_KEY','storage','univer-text-green-500','RegularPolygon','executeCommand','_handleJoinEvent','i18nKey','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ISlideDrawingStateService','type','univer-text-blue-500','Disposable','onPointerMove$','key','socket$','Injector','_unitOnClients','_checkAndWaitForCalculationPermission','highlight','_setFormulaLimitStatus','stringify','_colorAssignService','collaboration-client-ui.collabStatus.fetchMiss','useMemo','highlightSecond','_saveTaskMap','getCurrentTypeOfUnit$','object','getTypeOfUnitAdded$','_context','[RemoteUniscriptService]:\x20no\x20focused\x20unit','DesktopCollaborationStatusDisplayController','showSkeleton','stageInfo','_clearOtherTimers','DocIMEInputManagerService','red.300','setParam','collaboration-client-ui.collaboration.single-unit.warning','collaboration-client-ui.permission.content','_collaborationSessionService','_docTransformStateCacheService','evenodd','_urlService','fromEvent','CollaborationUIEventId','_getMergeRange','findNodePositionByCharIndex','handleInsertRangeMoveDown','handleMoveRange','0.2)','handleInsertRangeMoveRight','[Window\x20Error]:\x20','collaboration-client-ui.collaboration.closeRoom','toDisposable','invokeId','redoState','_messageService','isFormulaString','post','focusedId','generateRandomId','colorClass','memberID','onPointerLeave$','subscribe','ticket','UniverCollaborationPlugin','undoState','START_CALCULATION','colno','_textBubble','TRANSFORM_CHANGE_OBSERVABLE_TYPE','scene','_range','collaboration-client-ui.collabStatus.syncing','_initDependencies','assignAColorForMemberID','version','toRgbString','isTransformMutationFailure','LOADING_BLOCKS','getUnitStatus$','_roomMembers$','ICommandService','clickable','_instanceService','runRefRangeMutations','filter','#FFF','touchDependencies','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_collaborationUIEventService','_assignedColors','CanceledError','asObservable','length','unitId','COLORS','polite','_maxFormulaLimit','Unknown\x20user','column','_taskIds','row','purple.300','SnapshotLoadingService','strokeRect','values','shift','_render','collab-text-range-','collaboration-client-ui.session.connection-failed','event$','univer-m-0\x20univer-p-0','_timeoutState$','Inject','_hover','saveImage','_collabCursorState$','_themeService','parse','_httpService','timeoutId','_ensureSubject','error','all','value','width','complete','hide','_initCommandInterceptor','UniverCollaborationClientPlugin','_hidePreview','_getLighterColor','registerRenderModule','_showGuardMessage','_drawRectRange','_getScale','toPrimitive','SessionStatus',',\x200.2)','CONFLICT','spin','code','NodePositionConvertToRectRange','_toggleOffline','_checkCalculationAvailable','measureText','_initStatusComponent','getCellIndexByOffset','totalBlocks','_labelPosition','map','_startBoardCollabCursor','UNIVER_DOC','_refRangeService','_shortcutBlock','DeleteRangeMoveUpCommandId','IMessageService','now','imageSourceType','_applyCommand','_registerDependencies','NodePositionConvertToCursor','_transformService','getColor','_lastResponseTimestamp','getRealBound','endRow','_localCacheService','restore','functionsExecutedState','slide-element-selection','WebBrowserSingleActiveUnitService','_initUserListener','collaboration-client-ui.collabStatus.conflict','lineTo','_commandService','_notificationService','UNIVER_SHEET','_renderScheduled','collab-text-anchor-','setConfig','WarningIcon','collaboration-client-ui.session.collaboration-timeout','setInterval','_docSyncEditingCollabCursorService','sessionStatus$','HTTPService','_getFormulaLimitStatus','debounceTime','green.600','uni.network.url-service','_boardElementStateService','univer-text-red-500','moveTo','univer-transition-all\x20univer-duration-200','ACTIVE_UNIT_EVENT_CHANNEL','INotificationService','/universer-api/license/formula/limit/done','_hovered','_docTransformSelectionsService','ERROR','_getSheetObject','onRendered','collaboration-client-ui.config','getOwnPropertyDescriptor','getCurrentRevOfUnit','_slideDrawingStateService','MemberService','rgb','addObject$','send','slice','mergeOverrideWithDependencies','Workbook','_docClipboardService','_config','_registerRenderDependencies','Loading','dispose','makeDirty','reconnect','Error','init','_initWindowErrorListener','handoff','limitInfo','InsertRangeMoveDownCommandId','_collabCursorController','DisposableCollection','_clearBlockProgressWatch','637158fwyksv','popstate','selectedIds','name','getColorFromTheme','registerRefRange','getMergeData','_document','onPointerEnter$','_entityInit$','debounce','updateOfflineData','string','setActiveRange','UniverLicensePlugin','distinctUntilChanged','startsWith','dispose$','_revisionService','collaboration-client-ui.collabClient.tooltip.reconnect','_labelHorizontalPosition','IImageIoService','_hasFormulaInDirtyRanges','_previewUnitId','previewReady','JOIN_ROOM_FAILED','IUIPartsService','\x20-\x20','DOC_RANGE_TYPE','transformByState','handleInsertRow','maxFormulaLimit','loadedBlocks','min','stack','collaboration-client-ui.snapshotLoading.timeout','_startSlideCollabCursor','getSheetId','_blockProgressWatches','engine','AWAITING','_init','blue.400','univer-flex\x20univer-items-center\x20univer-justify-center','getObjectIncludeInGroup','getUndoRedoMutationParamsCache','executionId','board-collab-cursor-','_isBlinkVisible','tooltipKey','runId','alert','showText','textRanges','_doCreateSocket','UnitStatus','3928GnTnwP','_startDocCollabCursor','totalFormulasToCalculate','startFormulaLimitUrl','_injector','DeleteRangeMoveLeftCommandId','replaceState','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_docStateChangeManagerService','labelHorizontalPosition','replace','ONLINE','replaceDocRanges','IDocClipboardService','TEXT_RANGE_LAYER_INDEX','getMemberID','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','next','BuiltInUIPart','LocaleService','dirtyRanges','saveOfflineData','endColumn','CollaborationEvent','_anchorDot','getStateCache','useCallback','color','createSocket','univer-inline-flex\x20univer-items-center\x20univer-justify-center','setStateCache','handleIRemoveCol','isFormulaId','_toggleOnline','disposeWithMe','static','roomMembers','sheetId','_heartbeatTimer','ErrorCode','cursorInfo$','_scheduleClearOtherTimer','_onCursorUpdate','then','addObjects','76eXfsAt','getSkeleton','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','switchMap'];_0x48ff=function(){return _0x52cb31;};return _0x48ff();}function _e(_0x391907){const _0x4f8837=_0x246bb0;let _0x1cb3c1=_0x391907[_0x4f8837(0x396)](','),_0x2ea962=[];for(let _0xaddacb of _0x1cb3c1){let [_0x6d8e99,_0x5bb2b0,_0x32d960,_0x205bc1,_0x4e62b7,_0x5b83d1]=_0xaddacb['split'](':');_0x2ea962[_0x4f8837(0x111)]({'startOffset':Number(_0x6d8e99),'endOffset':Number(_0x5bb2b0),'collapsed':_0x6d8e99===_0x5bb2b0,'isActive':_0x32d960==='1','rangeType':_0x205bc1===n['DOC_RANGE_TYPE'][_0x4f8837(0x38c)]?n[_0x4f8837(0x237)][_0x4f8837(0x38c)]:n[_0x4f8837(0x237)][_0x4f8837(0x2c3)],'segmentId':typeof _0x4e62b7=='string'?String(_0x4e62b7):'','segmentPage':Number(_0x5b83d1??-0x1)});}return _0x2ea962[_0x4f8837(0x2e6)](_0x55c519=>_0x55c519[_0x4f8837(0x33d)])||(_0x2ea962[0x0]['isActive']=!0x0),_0x2ea962;}var M=class extends n['RxDisposable']{constructor(..._0x134f4f){const _0x5899f2=_0x246bb0;super(..._0x134f4f),S(this,_0x5899f2(0x1a9),new i[(_0x5899f2(0x2b7))](null)),S(this,_0x5899f2(0xc7),this[_0x5899f2(0x1a9)][_0x5899f2(0x191)]());}[_0x246bb0(0x32f)](_0x54ae68){const _0x4ae9fe=_0x246bb0;let {unitID:_0x54d78d,memberID:_0x5a0b16,textRanges:_0x2b3ca2}=_0x54ae68,_0x5cdea2=ge(_0x2b3ca2);if(_0x5cdea2==='')return;let _0x16bdb7={'unitID':_0x54d78d,'memberID':_0x5a0b16,'selection':_0x5cdea2};this['_collabCursorState$'][_0x4ae9fe(0x264)](_0x16bdb7);}};let N=class extends n[_0x246bb0(0x2db)]{get[_0x246bb0(0x30a)](){const _0x4cf03e=_0x246bb0;return this[_0x4cf03e(0x361)][_0x4cf03e(0x288)]();}get[_0x246bb0(0x277)](){const _0x578612=_0x246bb0;return this[_0x578612(0x185)][_0x578612(0x288)]();}constructor(_0x1bb1bd,_0x2e4cfd,_0x491e4a,_0x249051,_0x3fb5df,_0x574a8f,_0xe253cf,_0x8f5d5b,_0x244800){const _0x585395=_0x246bb0;super(),this[_0x585395(0x2a7)]=_0x1bb1bd,this[_0x585395(0x3c6)]=_0x2e4cfd,this[_0x585395(0x257)]=_0x491e4a,this[_0x585395(0x147)]=_0x249051,this[_0x585395(0x286)]=_0x3fb5df,this['_syncEditingCollabCursorService']=_0x574a8f,this[_0x585395(0x1d7)]=_0xe253cf,this['_univerInstanceService']=_0x8f5d5b,this[_0x585395(0x1e4)]=_0x244800,S(this,_0x585395(0xf4),!0x1),S(this,_0x585395(0x244),!0x1),S(this,_0x585395(0x361),new i['BehaviorSubject'](new Map())),S(this,'cursorInfo$',this[_0x585395(0x361)][_0x585395(0x191)]()),S(this,_0x585395(0x185),new i[(_0x585395(0x2b7))]([])),S(this,_0x585395(0x372),this[_0x585395(0x185)][_0x585395(0x319)]((0x0,i[_0x585395(0x1f1)])(0x12c))),S(this,_0x585395(0x2c9),(0x0,n[_0x585395(0x225)])(_0x2646d1=>{const _0x517f5d=_0x585395;let _0xc06a13={'eventID':u[_0x517f5d(0x26a)][_0x517f5d(0x2d7)],'data':{'unitID':this[_0x517f5d(0x2a7)],'memberID':this['_session']['getMemberID'](),'selection':ge(_0x2646d1)}};this[_0x517f5d(0x3c6)]['send'](_0xc06a13,this[_0x517f5d(0x2a7)]);},0x64));}['dispose'](){const _0x52d9bb=_0x246bb0;super[_0x52d9bb(0x20f)](),this[_0x52d9bb(0x361)][_0x52d9bb(0x264)](new Map()),this['_cursorInfo$'][_0x52d9bb(0x1b3)](),this['_roomMembers$'][_0x52d9bb(0x264)]([]),this['_roomMembers$']['complete']();}[_0x246bb0(0x213)](){const _0x190422=_0x246bb0;this[_0x190422(0x244)]||(this[_0x190422(0x244)]=!0x0,this[_0x190422(0x3c6)][_0x190422(0x1ee)][_0x190422(0x319)]((0x0,i[_0x190422(0x119)])(this[_0x190422(0x22c)]))['subscribe'](_0x2a6f02=>{const _0x19c51e=_0x190422;_0x2a6f02===t[_0x19c51e(0x1be)][_0x19c51e(0x25e)]?this[_0x19c51e(0x274)]():this[_0x19c51e(0x1c4)]();}),this['_session'][_0x190422(0x1a3)][_0x190422(0x319)]((0x0,i[_0x190422(0x119)])(this['dispose$']))[_0x190422(0x173)](_0x2b59f3=>{const _0x49568f=_0x190422;let _0x566da7=_0x2b59f3[_0x49568f(0x2ec)];_0x566da7===u[_0x49568f(0x26a)][_0x49568f(0x2d7)]&&this[_0x49568f(0x27d)](_0x2b59f3),_0x566da7===u[_0x49568f(0x26a)][_0x49568f(0xfb)]&&this['_onCursorDelete'](_0x2b59f3);}),this[_0x190422(0x275)](this['_commandService']['onCommandExecuted'](_0x24a025=>{const _0x51121c=_0x190422;let _0x231f02=_0x24a025['params'];_0x231f02!=null&&this['_online']&&_0x24a025['id']===f[_0x51121c(0x2bd)]['id']&&_0x231f02[_0x51121c(0x193)]===this[_0x51121c(0x2a7)]&&_0x231f02[_0x51121c(0x285)]===!0x1&&_0x231f02['ranges']['length']>0x0&&this[_0x51121c(0x2c9)](_0x231f02['ranges']);})),this[_0x190422(0x31e)][_0x190422(0xc7)][_0x190422(0x319)]((0x0,i[_0x190422(0x119)])(this[_0x190422(0x22c)]))[_0x190422(0x173)](_0x3a22bb=>{const _0x5e5697=_0x190422;if((_0x3a22bb==null?void 0x0:_0x3a22bb[_0x5e5697(0x2a7)])!==this[_0x5e5697(0x2a7)])return;let _0xfc596c={'eventID':u[_0x5e5697(0x26a)][_0x5e5697(0x2d7)],'data':_0x3a22bb};this['_onCursorUpdate'](_0xfc596c);}),this[_0x190422(0x275)](this[_0x190422(0x1e4)][_0x190422(0x3c1)](_0x5f4aa2=>{const _0x2215fe=_0x190422;if(_0x5f4aa2['params']==null)return;let _0x195432=_0x5f4aa2[_0x2215fe(0xd0)];if(_0x5f4aa2['id']!==f[_0x2215fe(0x31a)]['id']||_0x195432[_0x2215fe(0x193)]!==this['unitID'])return;let _0x3f3e95={'id':'doc.mutation.rich-text-editing','params':_0x195432},_0xc4f663=this[_0x2215fe(0x30a)];for(let [_0x210f58,_0xb82aef]of _0xc4f663){let _0x264768={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2215fe(0x2a7)],'actions':null,'textRanges':_0xb82aef[_0x2215fe(0xfc)]}},_0x367f41=this[_0x2215fe(0x1d7)][_0x2215fe(0x3c3)](_0x3f3e95,_0x264768,!0x1);if((0x0,u[_0x2215fe(0x182)])(_0x367f41))throw _0x367f41[_0x2215fe(0x1af)];_0xc4f663['set'](_0x210f58,{..._0xb82aef,'ranges':_0x367f41[_0x2215fe(0x2e4)][_0x2215fe(0xd0)]['textRanges']});}queueMicrotask(()=>{const _0x5dd486=_0x2215fe;this[_0x5dd486(0x361)][_0x5dd486(0x264)](_0xc4f663);});})));}[_0x246bb0(0x27d)](_0x36380b){const _0x14c157=_0x246bb0;var _0x40329a;let {memberID:_0x50a134,selection:_0x53d3db}=_0x36380b['data'],_0x460775=_e(_0x53d3db),_0x3a1e4c=((_0x40329a=this[_0x14c157(0x286)][_0x14c157(0x130)](this[_0x14c157(0x2a7)],_0x50a134))==null?void 0x0:_0x40329a[_0x14c157(0x21e)])??_0x14c157(0x197),_0x1a7c66={'color':this[_0x14c157(0x147)]['assignAColorForMemberID'](_0x50a134),'name':_0x3a1e4c,'ranges':_0x460775},_0x507711=this[_0x14c157(0x30a)];_0x507711['set'](_0x50a134,_0x1a7c66),this['_cursorInfo$'][_0x14c157(0x264)](_0x507711);}[_0x246bb0(0xec)](_0x4a19ba){const _0x22a98f=_0x246bb0;let {memberID:_0x2b62ec}=_0x4a19ba['data'],_0x25922c=this['cursorInfo'];_0x25922c['delete'](_0x2b62ec),this[_0x22a98f(0x361)][_0x22a98f(0x264)](_0x25922c);}['_toggleOnline'](){const _0x307159=_0x246bb0;var _0x4e76f8;if(this['_online']=!0x0,((_0x4e76f8=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4e76f8[_0x307159(0x313)]())!==this['unitID'])return;let _0x2bc031=this[_0x307159(0x257)][_0x307159(0x2e5)](f[_0x307159(0x397)])[_0x307159(0x31f)]();Array[_0x307159(0x2a9)](_0x2bc031)&&_0x2bc031[_0x307159(0x192)]>0x0&&this[_0x307159(0x2c9)](_0x2bc031);}['_toggleOffline'](){this['_online']=!0x1;}};N=w([C(0x2,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(A)),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x204)])),C(0x5,(0x0,n[_0x246bb0(0x1a6)])(M)),C(0x6,u['ITransformService']),C(0x7,n['IUniverInstanceService']),C(0x8,n['ICommandService'])],N);const ve=()=>{let _0xa7da24=[],_0xeb758e=!0x1;return _0xc8c17c=>{const _0x4a4a3f=_0x55a3;_0xa7da24[_0x4a4a3f(0x111)](_0xc8c17c),_0xeb758e||(_0xeb758e=!0x0,setTimeout(()=>{const _0x4b6250=_0x4a4a3f;_0xa7da24[_0x4b6250(0x34f)](_0x45b4c0=>_0x45b4c0()),_0xa7da24=[],_0xeb758e=!0x1;}));};};let P=class extends n[_0x246bb0(0x2db)]{get[_0x246bb0(0x30a)](){const _0x5e28b7=_0x246bb0;return this[_0x5e28b7(0x361)]['getValue']();}get[_0x246bb0(0x277)](){const _0x486150=_0x246bb0;return this[_0x486150(0x185)]['getValue']();}constructor(_0x48eb06,_0x2855f4,_0x3c0402,_0x15efb8,_0x38e463,_0x294d04,_0x18bd9a,_0x56d031){const _0x2f22ef=_0x246bb0;super(),this[_0x2f22ef(0x2a7)]=_0x48eb06,this[_0x2f22ef(0x3c6)]=_0x2855f4,this['_injector']=_0x3c0402,this[_0x2f22ef(0x147)]=_0x15efb8,this[_0x2f22ef(0x286)]=_0x38e463,this[_0x2f22ef(0x123)]=_0x294d04,this[_0x2f22ef(0x1e4)]=_0x18bd9a,this[_0x2f22ef(0x1ce)]=_0x56d031,S(this,_0x2f22ef(0xf4),!0x1),S(this,_0x2f22ef(0x244),!0x1),S(this,_0x2f22ef(0x361),new i[(_0x2f22ef(0x2b7))](new Map())),S(this,'cursorInfo$',this[_0x2f22ef(0x361)][_0x2f22ef(0x191)]()),S(this,_0x2f22ef(0x185),new i[(_0x2f22ef(0x2b7))]([])),S(this,_0x2f22ef(0x372),this[_0x2f22ef(0x185)][_0x2f22ef(0x319)]((0x0,i[_0x2f22ef(0x1f1)])(0x12c))),S(this,_0x2f22ef(0x2c9),(0x0,n[_0x2f22ef(0x225)])((_0x2a652a,_0x3f297b)=>{const _0x1e4068=_0x2f22ef;let _0x1bcf6e={'eventID':u[_0x1e4068(0x26a)][_0x1e4068(0x2d7)],'data':{'unitID':this[_0x1e4068(0x2a7)],'memberID':this[_0x1e4068(0x3c6)][_0x1e4068(0x262)](),'selection':(0x0,g[_0x1e4068(0x375)])(_0x2a652a,_0x3f297b[_0x1e4068(0x29c)])}};this[_0x1e4068(0x3c6)]['send'](_0x1bcf6e,this[_0x1e4068(0x2a7)]);},0x64));}[_0x246bb0(0x20f)](){const _0x1e09a1=_0x246bb0;super[_0x1e09a1(0x20f)](),this[_0x1e09a1(0x361)][_0x1e09a1(0x264)](new Map()),this[_0x1e09a1(0x361)]['complete'](),this[_0x1e09a1(0x185)][_0x1e09a1(0x264)]([]),this[_0x1e09a1(0x185)][_0x1e09a1(0x1b3)]();}[_0x246bb0(0x213)](){const _0x35e9cf=_0x246bb0;this[_0x35e9cf(0x244)]||(this['_init']=!0x0,this[_0x35e9cf(0x3c6)][_0x35e9cf(0x1ee)][_0x35e9cf(0x319)]((0x0,i[_0x35e9cf(0x119)])(this[_0x35e9cf(0x22c)]))[_0x35e9cf(0x173)](_0x1376b2=>{const _0x15892a=_0x35e9cf;_0x1376b2===t['SessionStatus'][_0x15892a(0x25e)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x35e9cf(0x3c6)][_0x35e9cf(0x1a3)][_0x35e9cf(0x319)]((0x0,i[_0x35e9cf(0x119)])(this['dispose$']))['subscribe'](_0x152fda=>{const _0x48d9de=_0x35e9cf;let _0x2528f1=_0x152fda[_0x48d9de(0x2ec)];_0x2528f1===u['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x48d9de(0x27d)](_0x152fda),_0x2528f1===u[_0x48d9de(0x26a)][_0x48d9de(0xfb)]&&this['_onCursorDelete'](_0x152fda);}),this[_0x35e9cf(0x2b1)](),this[_0x35e9cf(0x275)](this['_commandService']['onCommandExecuted'](_0x3525db=>{const _0x25c823=_0x35e9cf;if(this[_0x25c823(0xf4)]&&_0x3525db['id']===_['SetSelectionsOperation']['id']&&_0x3525db[_0x25c823(0xd0)][_0x25c823(0x193)]===this[_0x25c823(0x2a7)]){let _0x3cabcd=_0x3525db['params'];this[_0x25c823(0x2c9)](_0x3cabcd['subUnitId'],_0x3cabcd[_0x25c823(0x384)][0x0]);}})));}['_onCursorUpdate'](_0x4b6bee){const _0x142109=_0x246bb0;var _0x265f75;let {memberID:_0x212565,selection:_0xb9afe1}=_0x4b6bee[_0x142109(0x32a)],{sheetName:_0x4f6ef2,range:_0x25c12a}=(0x0,g[_0x142109(0x31d)])(_0xb9afe1),_0x4853cd={'name':((_0x265f75=this[_0x142109(0x286)][_0x142109(0x130)](this[_0x142109(0x2a7)],_0x212565))==null?void 0x0:_0x265f75['name'])??'Unknown\x20user','range':this[_0x142109(0x160)](_0x4f6ef2,_0x25c12a),'sheetID':_0x4f6ef2,'color':this['_colorAssignService'][_0x142109(0x17f)](_0x212565),'selection':_0xb9afe1},_0x11a3d4=this['cursorInfo'];_0x11a3d4[_0x142109(0x2f4)](_0x212565,_0x4853cd),this[_0x142109(0x361)][_0x142109(0x264)](_0x11a3d4);}['_onCursorDelete'](_0x57bbb8){const _0x37d202=_0x246bb0;let {memberID:_0xd5e4a3}=_0x57bbb8[_0x37d202(0x32a)],_0x2e1caa=this[_0x37d202(0x30a)];_0x2e1caa['delete'](_0xd5e4a3),this[_0x37d202(0x361)][_0x37d202(0x264)](_0x2e1caa);}[_0x246bb0(0x160)](_0x18b90b,_0x443481){const _0x53b280=_0x246bb0;var _0x38ca84;let _0x54629e=(_0x38ca84=this['_univerInstanceService']['getUnit'](this[_0x53b280(0x2a7)],n[_0x53b280(0xd2)]['UNIVER_SHEET']))==null||(_0x38ca84=_0x38ca84[_0x53b280(0x105)](_0x18b90b))==null?void 0x0:_0x38ca84[_0x53b280(0x221)]();return(_0x54629e==null?void 0x0:_0x54629e[_0x53b280(0x37a)](_0x17838d=>n['Rectangle'][_0x53b280(0x347)](_0x17838d,_0x443481)))||_0x443481;}[_0x246bb0(0x2b1)](){const _0x4fd703=_0x246bb0;let _0x444a66=new n[(_0x4fd703(0x219))](),_0x2bd6f2=ve(),_0x31ac71=()=>{const _0xceace4=_0x4fd703;_0x444a66[_0xceace4(0x20f)]();let _0x4e2157=(_0x76ca20,_0xe8f645,_0x4151b5,_0x417087)=>{const _0x1d97e3=_0xceace4;let _0x41c641=[];switch(_0x76ca20['id']){case _['EffectRefRangId'][_0x1d97e3(0x258)]:_0x41c641=(0x0,_[_0x1d97e3(0x394)])(_0x76ca20,_0x417087);break;case _['EffectRefRangId'][_0x1d97e3(0x1d0)]:_0x41c641=(0x0,_[_0x1d97e3(0xe7)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x33b)]:_0x41c641=(0x0,_['handleInsertCol'])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x217)]:_0x41c641=(0x0,_[_0x1d97e3(0x162)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x2ac)]:_0x41c641=(0x0,_[_0x1d97e3(0x165)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)]['InsertRowCommandId']:_0x41c641=(0x0,_[_0x1d97e3(0x239)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x3b6)]:_0x41c641=(0x0,_[_0x1d97e3(0x163)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x2f9)]:_0x41c641=(0x0,_[_0x1d97e3(0x272)])(_0x76ca20,_0x417087);break;case _['EffectRefRangId'][_0x1d97e3(0xf0)]:_0x41c641=(0x0,_['handleIRemoveRow'])(_0x76ca20,_0x417087);break;}let _0x44b6e8=(0x0,_[_0x1d97e3(0x189)])(_0x41c641,_0x417087),_0x3c01b5=this[_0x1d97e3(0x30a)][_0x1d97e3(0x2e5)](_0xe8f645);if(_0x3c01b5&&_0x44b6e8){let _0x419fb1={..._0x3c01b5,'range':_0x44b6e8};this[_0x1d97e3(0x30a)][_0x1d97e3(0x2f4)](_0xe8f645,_0x419fb1),_0x2bd6f2(()=>{const _0x586b3e=_0x1d97e3;let _0x29f14c=this[_0x586b3e(0x1ce)][_0x586b3e(0x220)](_0x44b6e8,_0x1fea5a=>(_0x29f14c[_0x586b3e(0x20f)](),_0x4e2157(_0x1fea5a,_0xe8f645,_0x4151b5,_0x44b6e8)));_0x444a66[_0x586b3e(0x346)](_0x29f14c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xceace4(0x34f)]((_0x426da2,_0xc58752)=>{const _0x470534=_0xceace4;let {range:_0xe314ef,sheetID:_0x3eaa34}=_0x426da2,_0x2193d1=this[_0x470534(0x1ce)][_0x470534(0x220)](_0xe314ef,_0x4a5d16=>(_0x2193d1[_0x470534(0x20f)](),_0x4e2157(_0x4a5d16,_0xc58752,_0x3eaa34,_0xe314ef)));_0x444a66['add'](_0x2193d1);});};this['disposeWithMe']((0x0,n['toDisposable'])(this[_0x4fd703(0x361)][_0x4fd703(0x173)](()=>{_0x31ac71();})));}[_0x246bb0(0x274)](){const _0x5f47e9=_0x246bb0;var _0x4aa7a2,_0x30e5af;if(this[_0x5f47e9(0xf4)]=!0x0,((_0x4aa7a2=this['_univerInstanceService'][_0x5f47e9(0x30d)]())==null?void 0x0:_0x4aa7a2[_0x5f47e9(0x313)]())!==this[_0x5f47e9(0x2a7)])return;let _0x3b641e=(_0x30e5af=this[_0x5f47e9(0x257)][_0x5f47e9(0x2e5)](_[_0x5f47e9(0x378)])['getCurrentSelections']())==null?void 0x0:_0x30e5af[0x0],_0xa2b9dc=this[_0x5f47e9(0x123)][_0x5f47e9(0x12c)](n[_0x5f47e9(0xd2)][_0x5f47e9(0x1e6)])['getActiveSheet']();_0x3b641e&&_0xa2b9dc&&this[_0x5f47e9(0x2c9)](_0xa2b9dc[_0x5f47e9(0x240)](),_0x3b641e);}[_0x246bb0(0x1c4)](){this['_online']=!0x1;}};P=w([C(0x2,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(A)),C(0x4,(0x0,n['Inject'])(t[_0x246bb0(0x204)])),C(0x5,n['IUniverInstanceService']),C(0x6,n['ICommandService']),C(0x7,(0x0,n[_0x246bb0(0x1a6)])(_['RefRangeService']))],P);function ye(_0x32d1fa){const _0x2cd5db=_0x246bb0;let _0x115e3f;try{_0x115e3f=JSON[_0x2cd5db(0x1ab)](_0x32d1fa);}catch{return null;}if(typeof _0x115e3f!=_0x2cd5db(0x14d)||!_0x115e3f)return null;let _0x48e25b=_0x115e3f;if(_0x48e25b['kind']!==_0x2cd5db(0x1df)||typeof _0x48e25b[_0x2cd5db(0x193)]!=_0x2cd5db(0x227)||typeof _0x48e25b['subUnitId']!=_0x2cd5db(0x227))return null;let _0x3678df=Array[_0x2cd5db(0x2a9)](_0x48e25b[_0x2cd5db(0x21d)])?_0x48e25b[_0x2cd5db(0x21d)][_0x2cd5db(0x18a)](_0x5ed87d=>typeof _0x5ed87d==_0x2cd5db(0x227)):[],_0x248c3c=typeof _0x48e25b[_0x2cd5db(0x16e)]=='string'?_0x48e25b[_0x2cd5db(0x16e)]:null;return{'kind':_0x2cd5db(0x1df),'unitId':_0x48e25b[_0x2cd5db(0x193)],'subUnitId':_0x48e25b[_0x2cd5db(0x3bc)],'selectedIds':_0x3678df,'focusedId':_0x248c3c};}let F=class extends n[_0x246bb0(0x2db)]{get['cursorInfo'](){const _0x46687a=_0x246bb0;return this[_0x46687a(0x361)][_0x46687a(0x288)]();}get[_0x246bb0(0x277)](){const _0x164080=_0x246bb0;return this[_0x164080(0x185)][_0x164080(0x288)]();}constructor(_0x55a2d3,_0x2d38a0,_0x1e8674,_0x25ac81,_0x287fb3){const _0x3d562c=_0x246bb0;super(),this[_0x3d562c(0x2a7)]=_0x55a2d3,this['_session']=_0x2d38a0,this[_0x3d562c(0x147)]=_0x1e8674,this[_0x3d562c(0x286)]=_0x25ac81,this[_0x3d562c(0x203)]=_0x287fb3,S(this,_0x3d562c(0xf4),!0x1),S(this,_0x3d562c(0x244),!0x1),S(this,_0x3d562c(0x361),new i[(_0x3d562c(0x2b7))](new Map())),S(this,_0x3d562c(0x27b),this[_0x3d562c(0x361)][_0x3d562c(0x191)]()),S(this,_0x3d562c(0x185),new i[(_0x3d562c(0x2b7))]([])),S(this,'roomMembers$',this[_0x3d562c(0x185)]['pipe']((0x0,i[_0x3d562c(0x1f1)])(0x12c))),S(this,'_updateLocalCursor',(0x0,n[_0x3d562c(0x225)])(_0x4bdb6d=>{const _0x4b01a9=_0x3d562c;let _0xc17d41=_0x4bdb6d[_0x4b01a9(0x2c5)];if(!_0xc17d41||_0xc17d41[_0x4b01a9(0x193)]!==this[_0x4b01a9(0x2a7)])return;let _0x4bf3a1={'kind':_0x4b01a9(0x1df),'unitId':_0xc17d41[_0x4b01a9(0x193)],'subUnitId':_0xc17d41[_0x4b01a9(0x3bc)],'selectedIds':_0x4bdb6d['selectedIds']['filter'](_0x484f94=>typeof _0x484f94==_0x4b01a9(0x227)),'focusedId':_0x4bdb6d[_0x4b01a9(0x16e)]},_0x35f39e={'eventID':u[_0x4b01a9(0x26a)][_0x4b01a9(0x2d7)],'data':{'unitID':this[_0x4b01a9(0x2a7)],'memberID':this[_0x4b01a9(0x3c6)]['getMemberID'](),'selection':JSON[_0x4b01a9(0x146)](_0x4bf3a1)}};this['_session'][_0x4b01a9(0x207)](_0x35f39e,this['unitID']);},0x64));}[_0x246bb0(0x20f)](){const _0x23cda1=_0x246bb0;super[_0x23cda1(0x20f)](),this[_0x23cda1(0x361)][_0x23cda1(0x264)](new Map()),this[_0x23cda1(0x361)][_0x23cda1(0x1b3)](),this[_0x23cda1(0x185)][_0x23cda1(0x264)]([]),this['_roomMembers$'][_0x23cda1(0x1b3)]();}['init'](){const _0x1b98c2=_0x246bb0;this[_0x1b98c2(0x244)]||(this['_init']=!0x0,this[_0x1b98c2(0x3c6)][_0x1b98c2(0x1ee)][_0x1b98c2(0x319)]((0x0,i['takeUntil'])(this[_0x1b98c2(0x22c)]))[_0x1b98c2(0x173)](_0x5d80f6=>{const _0x13f43a=_0x1b98c2;_0x5d80f6===t['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x13f43a(0x1c4)]();}),this[_0x1b98c2(0x3c6)][_0x1b98c2(0x1a3)]['pipe']((0x0,i[_0x1b98c2(0x119)])(this[_0x1b98c2(0x22c)]))[_0x1b98c2(0x173)](_0x12d1b2=>{const _0x53805f=_0x1b98c2;let _0x1bee4a=_0x12d1b2[_0x53805f(0x2ec)];_0x1bee4a===u[_0x53805f(0x26a)]['UPDATE_CURSOR']&&this[_0x53805f(0x27d)](_0x12d1b2),_0x1bee4a===u['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x12d1b2);}),this[_0x1b98c2(0x203)][_0x1b98c2(0x323)][_0x1b98c2(0x319)]((0x0,i[_0x1b98c2(0x119)])(this[_0x1b98c2(0x22c)]))[_0x1b98c2(0x173)](_0x460208=>{const _0xa0b181=_0x1b98c2;this[_0xa0b181(0xf4)]&&this[_0xa0b181(0x2c9)](_0x460208);}));}[_0x246bb0(0x27d)](_0x13e6f2){const _0x550087=_0x246bb0;var _0x32375f,_0x5ac24c,_0x383a98;let {memberID:_0x22d67d,selection:_0x7e384b}=_0x13e6f2[_0x550087(0x32a)];if(_0x22d67d===((_0x32375f=(_0x5ac24c=this[_0x550087(0x3c6)])[_0x550087(0x262)])==null?void 0x0:_0x32375f['call'](_0x5ac24c)))return;let _0x1e1251=ye(_0x7e384b);if(!_0x1e1251||_0x1e1251[_0x550087(0x193)]!==this['unitID'])return;let _0x465175=((_0x383a98=this[_0x550087(0x286)][_0x550087(0x130)](this[_0x550087(0x2a7)],_0x22d67d))==null?void 0x0:_0x383a98[_0x550087(0x21e)])??_0x550087(0x197),_0x1d1bd2={'color':this[_0x550087(0x147)][_0x550087(0x17f)](_0x22d67d),'name':_0x465175,'unitId':_0x1e1251[_0x550087(0x193)],'subUnitId':_0x1e1251['subUnitId'],'selectedIds':_0x1e1251[_0x550087(0x21d)],'focusedId':_0x1e1251[_0x550087(0x16e)],'selection':_0x7e384b},_0x137264=new Map(this[_0x550087(0x30a)]);_0x137264[_0x550087(0x2f4)](_0x22d67d,_0x1d1bd2),this[_0x550087(0x361)][_0x550087(0x264)](_0x137264);}[_0x246bb0(0xec)](_0x2ef6b8){const _0x16f41f=_0x246bb0;let {memberID:_0x113ce0}=_0x2ef6b8[_0x16f41f(0x32a)],_0x3402e7=new Map(this[_0x16f41f(0x30a)]);_0x3402e7[_0x16f41f(0x296)](_0x113ce0),this[_0x16f41f(0x361)][_0x16f41f(0x264)](_0x3402e7);}[_0x246bb0(0x274)](){const _0x3a8d77=_0x246bb0;this['_online']=!0x0,this[_0x3a8d77(0x2c9)](this[_0x3a8d77(0x203)]['getSnapshot']());}['_toggleOffline'](){const _0x42df83=_0x246bb0;this[_0x42df83(0xf4)]=!0x1;}};F=w([C(0x2,(0x0,n[_0x246bb0(0x1a6)])(A)),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x204)])),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(v[_0x246bb0(0x13a)]))],F);let I=class extends n[_0x246bb0(0x2db)]{constructor(_0x261c5e,_0x145fd4,_0x181e2d){const _0x55d6c4=_0x246bb0;super(),this[_0x55d6c4(0x123)]=_0x261c5e,this['_injector']=_0x145fd4,this[_0x55d6c4(0x307)]=_0x181e2d,S(this,_0x55d6c4(0x3bd),new Map()),S(this,_0x55d6c4(0x224),new i[(_0x55d6c4(0x2f6))]()),this[_0x55d6c4(0x244)]();}[_0x246bb0(0x20f)](){const _0x4df186=_0x246bb0;super[_0x4df186(0x20f)](),this['_entityInit$']['complete'](),this[_0x4df186(0x3bd)][_0x4df186(0x34f)](_0x12daa0=>_0x12daa0[_0x4df186(0x20f)]());}['getCollabCursors$'](_0x10e0cd){const _0xa285a8=_0x246bb0;return this[_0xa285a8(0x3bd)][_0xa285a8(0x2eb)](_0x10e0cd)?this[_0xa285a8(0x3bd)][_0xa285a8(0x2e5)](_0x10e0cd)['cursorInfo$']:this['_entityInit$'][_0xa285a8(0x319)]((0x0,i[_0xa285a8(0x18a)])(_0x1ab93a=>_0x1ab93a['unitID']===_0x10e0cd),(0x0,i[_0xa285a8(0x283)])(_0x2576cf=>_0x2576cf['cursorInfo$']));}[_0x246bb0(0x244)](){const _0x2e93ce=_0x246bb0;this['_univerInstanceService'][_0x2e93ce(0x14e)](n[_0x2e93ce(0xd2)][_0x2e93ce(0x1e6)])[_0x2e93ce(0x319)]((0x0,i[_0x2e93ce(0x119)])(this[_0x2e93ce(0x22c)]))[_0x2e93ce(0x173)](async _0x2a7ea9=>{const _0x11ba3c=_0x2e93ce;let _0x599809=_0x2a7ea9['unit'][_0x11ba3c(0x313)](),_0x56cf99=await this['_startSheetCollabCursor'](_0x599809);this[_0x11ba3c(0x224)][_0x11ba3c(0x264)](_0x56cf99),this[_0x11ba3c(0x3bd)]['set'](_0x599809,_0x56cf99);}),this[_0x2e93ce(0x123)]['getTypeOfUnitAdded$'](n[_0x2e93ce(0xd2)]['UNIVER_DOC'])['pipe']((0x0,i['takeUntil'])(this['dispose$']))[_0x2e93ce(0x319)]((0x0,i[_0x2e93ce(0x18a)])(_0x8ba82f=>!_0x8ba82f[_0x2e93ce(0x35a)]['getUnitId']()[_0x2e93ce(0x22b)]('__')))['subscribe'](async _0x387d56=>{const _0x382831=_0x2e93ce;let {unit:_0x3c414e}=_0x387d56,_0x485d87=_0x3c414e[_0x382831(0x313)](),_0x28728c=await this[_0x382831(0x254)](_0x485d87);this[_0x382831(0x224)][_0x382831(0x264)](_0x28728c),this[_0x382831(0x3bd)][_0x382831(0x2f4)](_0x485d87,_0x28728c);}),this[_0x2e93ce(0x123)]['getTypeOfUnitAdded$'](n['UniverInstanceType']['UNIVER_SLIDE'])[_0x2e93ce(0x319)]((0x0,i['takeUntil'])(this[_0x2e93ce(0x22c)]))[_0x2e93ce(0x173)](async _0x2f0a84=>{const _0x245bc4=_0x2e93ce;let _0x1c15b6=_0x2f0a84[_0x245bc4(0x35a)][_0x245bc4(0x313)](),_0x16d643=await this['_startSlideCollabCursor'](_0x1c15b6);this['_entityInit$'][_0x245bc4(0x264)](_0x16d643),this[_0x245bc4(0x3bd)][_0x245bc4(0x2f4)](_0x1c15b6,_0x16d643);}),this[_0x2e93ce(0x123)]['getTypeOfUnitAdded$'](n['UniverInstanceType'][_0x2e93ce(0x291)])['pipe']((0x0,i[_0x2e93ce(0x119)])(this[_0x2e93ce(0x22c)]))[_0x2e93ce(0x173)](async _0x2a70ba=>{const _0x43d90c=_0x2e93ce;let _0x427c4a=_0x2a70ba[_0x43d90c(0x35a)]['getUnitId'](),_0x3361c7=await this['_startBoardCollabCursor'](_0x427c4a);this[_0x43d90c(0x224)][_0x43d90c(0x264)](_0x3361c7),this['_entities'][_0x43d90c(0x2f4)](_0x427c4a,_0x3361c7);}),(0x0,i['merge'])(this[_0x2e93ce(0x123)][_0x2e93ce(0x2b6)](n[_0x2e93ce(0xd2)][_0x2e93ce(0x1cd)]),this[_0x2e93ce(0x123)][_0x2e93ce(0x2b6)](n[_0x2e93ce(0xd2)][_0x2e93ce(0x1e6)]),this[_0x2e93ce(0x123)][_0x2e93ce(0x2b6)](n[_0x2e93ce(0xd2)][_0x2e93ce(0x131)]),this[_0x2e93ce(0x123)][_0x2e93ce(0x2b6)](n[_0x2e93ce(0xd2)]['UNIVER_BOARD']))['pipe']((0x0,i[_0x2e93ce(0x119)])(this['dispose$']))[_0x2e93ce(0x173)](_0x5f266=>{const _0x50c1ec=_0x2e93ce;let _0x4ea1ae=_0x5f266[_0x50c1ec(0x313)](),_0x31138e=this['_entities'][_0x50c1ec(0x2e5)](_0x4ea1ae);_0x31138e&&(_0x31138e[_0x50c1ec(0x20f)](),this['_entities'][_0x50c1ec(0x296)](_0x4ea1ae));});}async['_startSheetCollabCursor'](_0x860822){const _0x58f10b=_0x246bb0;let _0x30ac7e=await this[_0x58f10b(0x307)][_0x58f10b(0x330)](_0x860822),_0x292033=this[_0x58f10b(0x257)][_0x58f10b(0x383)](P,_0x860822,_0x30ac7e);return _0x292033[_0x58f10b(0x213)](),_0x292033;}async[_0x246bb0(0x254)](_0x1be226){const _0x22b5f6=_0x246bb0;let _0x3acaa8=await this[_0x22b5f6(0x307)]['requireSession'](_0x1be226),_0x5dc8e6=this[_0x22b5f6(0x257)][_0x22b5f6(0x383)](N,_0x1be226,_0x3acaa8);return _0x5dc8e6[_0x22b5f6(0x213)](),_0x5dc8e6;}async[_0x246bb0(0x23f)](_0x179509){const _0x36cf08=_0x246bb0;let _0x57be5a=await this['_collabSessionService'][_0x36cf08(0x330)](_0x179509),_0x45e347=this[_0x36cf08(0x257)]['createInstance'](F,_0x179509,_0x57be5a);return _0x45e347[_0x36cf08(0x213)](),_0x45e347;}async[_0x246bb0(0x1cc)](_0x12ff7c){const _0x3f3098=_0x246bb0;let _0x5cd1ab=await this[_0x3f3098(0x307)][_0x3f3098(0x330)](_0x12ff7c),_0x506428=this[_0x3f3098(0x257)][_0x3f3098(0x383)](j,_0x12ff7c,_0x5cd1ab);return _0x506428[_0x3f3098(0x213)](),_0x506428;}};I=w([C(0x0,n[_0x246bb0(0x324)]),C(0x1,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x2d9)]))],I);let L=class extends n[_0x246bb0(0x2db)]{constructor(_0x4c5b55,_0x2f5c38,_0xc4e5d2){const _0x1e772d=_0x246bb0;super(),this[_0x1e772d(0x14f)]=_0x4c5b55,this['_collabCursorController']=_0x2f5c38,this[_0x1e772d(0x1aa)]=_0xc4e5d2,S(this,'_cursors',new Set()),S(this,_0x1e772d(0x1e7),!0x1),S(this,_0x1e772d(0x36e),!0x1),S(this,'_latestCursors',new Map()),this[_0x1e772d(0x244)]();}['dispose'](){this['_removeCollabCursors'](),super['dispose']();}[_0x246bb0(0x244)](){const _0x646daa=_0x246bb0;let _0x38033b=this[_0x646daa(0x218)][_0x646daa(0x2a2)](this[_0x646daa(0x14f)]['unitId']);this[_0x646daa(0x275)]((0x0,n[_0x646daa(0x168)])((0x0,i['combineLatest'])([_0x38033b,this[_0x646daa(0x14f)][_0x646daa(0x35a)]['theme$'],this['_themeService'][_0x646daa(0x112)]])[_0x646daa(0x319)]((0x0,i[_0x646daa(0x119)])(this[_0x646daa(0x22c)]))[_0x646daa(0x173)](([_0x1eb6d2])=>{const _0xfeabcb=_0x646daa;let _0x50cd79=this[_0xfeabcb(0x14f)]['unit'][_0xfeabcb(0x2d2)](),_0x3b89b6=new Map();_0x1eb6d2['forEach']((_0x35a7df,_0x73af99)=>{const _0x456ae1=_0xfeabcb;_0x35a7df[_0x456ae1(0x3bc)]===_0x50cd79&&_0x3b89b6[_0x456ae1(0x2f4)](_0x73af99,{..._0x35a7df,'color':this[_0x456ae1(0x1aa)][_0x456ae1(0x21f)](_0x35a7df['color'])});}),this[_0xfeabcb(0xce)]=_0x3b89b6,this['_scheduleRender']();})));let _0x23019b=this[_0x646daa(0x14f)][_0x646daa(0x17b)];this[_0x646daa(0x275)]((0x0,n[_0x646daa(0x168)])(_0x23019b[_0x646daa(0x206)][_0x646daa(0x319)]((0x0,i[_0x646daa(0x119)])(this['dispose$']))[_0x646daa(0x173)](()=>{const _0x31beaf=_0x646daa;this[_0x31beaf(0x36e)]||this[_0x31beaf(0x32c)]();})));}['_scheduleRender'](){const _0x282eaf=_0x246bb0;this['_renderScheduled']||(this[_0x282eaf(0x1e7)]=!0x0,Promise['resolve']()[_0x282eaf(0x27e)](()=>{const _0x422226=_0x282eaf;this[_0x422226(0x1e7)]=!0x1,this[_0x422226(0x1a0)]();}));}[_0x246bb0(0x1a0)](){const _0x5bf401=_0x246bb0;this['_removeCollabCursors']();let _0x572891=this[_0x5bf401(0x14f)][_0x5bf401(0x35a)][_0x5bf401(0x2d2)](),_0x49b8aa=[];if(this['_latestCursors'][_0x5bf401(0x34f)]((_0x45b589,_0x39584f)=>{const _0x25fd30=_0x5bf401;_0x45b589['subUnitId']===_0x572891&&_0x45b589[_0x25fd30(0x21d)]['forEach'](_0x41df21=>{const _0x5bc7e1=_0x25fd30;let _0x329e66=(0x0,e['getBoardElementRenderObjectKey'])(_0x45b589[_0x5bc7e1(0x193)],_0x41df21),_0x243d16=this['_getSceneObjectByKey'](_0x329e66);if(!_0x243d16)return;let _0x38ca25=this[_0x5bc7e1(0x3c9)](_0x243d16);_0x49b8aa[_0x5bc7e1(0x111)](new pe(_0x5bc7e1(0x24a)+_0x39584f+'-'+_0x41df21,{..._0x45b589,'left':_0x38ca25[_0x5bc7e1(0x33c)],'top':_0x38ca25['top'],'width':_0x38ca25[_0x5bc7e1(0x1b2)],'height':_0x38ca25['height'],'angle':_0x243d16[_0x5bc7e1(0x10d)],'evented':!0x1,'zIndex':k}));});}),_0x49b8aa[_0x5bf401(0x192)]===0x0){this[_0x5bf401(0x14f)][_0x5bf401(0x17b)]['makeDirty'](!0x0);return;}this[_0x5bf401(0x36e)]=!0x0,this[_0x5bf401(0x14f)][_0x5bf401(0x17b)]['addObjects'](_0x49b8aa,k),this[_0x5bf401(0x36e)]=!0x1,this[_0x5bf401(0xe0)]=new Set(_0x49b8aa),this[_0x5bf401(0x14f)][_0x5bf401(0x17b)][_0x5bf401(0x210)](!0x0);}[_0x246bb0(0x3ae)](){const _0x7cc58e=_0x246bb0;let _0x37050a=Array['from'](this[_0x7cc58e(0xe0)]);if(_0x37050a['length']===0x0)return;let _0x16ddc=this['_context'][_0x7cc58e(0x17b)];_0x7cc58e(0x358)in _0x16ddc&&typeof _0x16ddc[_0x7cc58e(0x358)]==_0x7cc58e(0x2c7)?_0x16ddc[_0x7cc58e(0x358)](_0x37050a):_0x37050a['forEach'](_0x23276a=>{const _0x10b713=_0x7cc58e;_0x10b713(0xe3)in _0x16ddc&&typeof _0x16ddc[_0x10b713(0xe3)]==_0x10b713(0x2c7)?_0x16ddc[_0x10b713(0xe3)](_0x23276a):_0x23276a[_0x10b713(0x20f)]();}),this[_0x7cc58e(0xe0)][_0x7cc58e(0x299)](),_0x16ddc[_0x7cc58e(0x210)](!0x0);}[_0x246bb0(0x3ac)](_0x146cf2){const _0x36fbca=_0x246bb0;var _0x500265;let _0x3531b9=this[_0x36fbca(0x14f)][_0x36fbca(0x17b)];return((_0x500265=_0x3531b9[_0x36fbca(0x247)])==null?void 0x0:_0x500265['call'](_0x3531b9,_0x146cf2))??_0x3531b9[_0x36fbca(0x28c)](_0x146cf2)??null;}[_0x246bb0(0x3c9)](_0x6274b9){const _0x3cde59=_0x246bb0;var _0x2ac06e;let _0x5cbe42=_0x6274b9;return((_0x2ac06e=_0x5cbe42[_0x3cde59(0x1da)])==null?void 0x0:_0x2ac06e[_0x3cde59(0x2b2)](_0x5cbe42))??{'left':_0x6274b9[_0x3cde59(0x33c)],'top':_0x6274b9[_0x3cde59(0x2f5)],'width':_0x6274b9[_0x3cde59(0x1b2)],'height':_0x6274b9['height']};}};L=w([C(0x1,(0x0,n[_0x246bb0(0x1a6)])(I)),C(0x2,(0x0,n['Inject'])(n['ThemeService']))],L);const R=_0x246bb0(0x1e8);var be=class{constructor(_0x40b920,_0x277fe5,_0x19d010,_0x28d868){const _0x2851da=_0x246bb0;this[_0x2851da(0x2e9)]=_0x40b920,this[_0x2851da(0x101)]=_0x277fe5,this['_docSkeleton']=_0x19d010,this[_0x2851da(0x222)]=_0x28d868,S(this,_0x2851da(0x340),[]),S(this,'_anchor',null),S(this,_0x2851da(0x179),null),S(this,_0x2851da(0x26b),null),S(this,_0x2851da(0x3c8),null),S(this,_0x2851da(0x334),null),this[_0x2851da(0x1a0)]();}set[_0x246bb0(0x1a7)](_0x2ff124){const _0x47e4fb=_0x246bb0;_0x2ff124?(this['_anchorDot']&&this[_0x47e4fb(0x26b)][_0x47e4fb(0x1b4)](),this[_0x47e4fb(0x179)]&&this[_0x47e4fb(0x179)][_0x47e4fb(0x2fe)]()):(this[_0x47e4fb(0x26b)]&&this[_0x47e4fb(0x26b)][_0x47e4fb(0x2fe)](),this[_0x47e4fb(0x179)]&&this[_0x47e4fb(0x179)][_0x47e4fb(0x1b4)]());}[_0x246bb0(0x20f)](){const _0x3a78b2=_0x246bb0;for(let _0x6c3c4c of this['_shapes'])_0x6c3c4c['dispose']();this[_0x3a78b2(0x179)]&&this[_0x3a78b2(0x179)][_0x3a78b2(0x20f)](),this['_anchorDot']&&this[_0x3a78b2(0x26b)][_0x3a78b2(0x20f)](),this[_0x3a78b2(0x370)]&&this[_0x3a78b2(0x370)][_0x3a78b2(0x20f)](),this['_eventUnsubscribe']&&this[_0x3a78b2(0x334)]();}[_0x246bb0(0x1a0)](){const _0x29097d=_0x246bb0;let {_docSkeleton:_0x1c0634,_document:_0x2ee77}=this,{color:_0x1dca28,name:_0x4c16b1,ranges:_0x47fdd5}=this['_cursor'],_0x23ad77=_0x2ee77['getOffsetConfig'](),{docsLeft:_0x1c5cd3,docsTop:_0x485906}=_0x23ad77,_0x231c9d=new p[(_0x29097d(0x1d6))](_0x23ad77,_0x1c0634);for(let {startOffset:_0x10c3bb,endOffset:_0x273a9f,rangeType:_0x516fd4,segmentId:_0x5bd8fe,segmentPage:_0x5991da,collapsed:_0x1f1507,isActive:_0x55ca6e}of _0x47fdd5){let _0x362a0d=_0x1c0634[_0x29097d(0x161)](_0x10c3bb,!0x0,_0x5bd8fe,_0x5991da),_0x2b0634=_0x1c0634[_0x29097d(0x161)](_0x273a9f,!0x0,_0x5bd8fe,_0x5991da);if(_0x2b0634??=_0x1c0634[_0x29097d(0x161)](_0x273a9f-0x1,!0x1,_0x5bd8fe,_0x5991da),_0x55ca6e){let {contentBoxPointGroup:_0x5040c7}=_0x231c9d['getRangePointData'](_0x2b0634,_0x2b0634);if(_0x5040c7[_0x29097d(0x192)]===0x0)continue;this[_0x29097d(0x10a)](_0x1dca28,_0x5040c7,_0x1c5cd3,_0x485906,_0x4c16b1),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x362a0d&&_0x2b0634){if(_0x516fd4===n[_0x29097d(0x237)][_0x29097d(0x2c3)]){let {pointGroup:_0x124970}=new p[(_0x29097d(0x1c3))](_0x23ad77,_0x1c0634)[_0x29097d(0x2c6)](_0x362a0d,_0x2b0634)??{};if(_0x124970==null||_0x124970[_0x29097d(0x192)]===0x0)continue;this[_0x29097d(0x1bb)](_0x1dca28,_0x124970,_0x1c5cd3,_0x485906);}else{if(!_0x1f1507){let {borderBoxPointGroup:_0x10971e}=_0x231c9d['getRangePointData'](_0x362a0d,_0x2b0634);if(_0x10971e[_0x29097d(0x192)]===0x0)continue;this['_drawTextRange'](_0x1dca28,_0x10971e,_0x1c5cd3,_0x485906);}}}}}[_0x246bb0(0x10a)](_0x101a6f,_0x1ac5ec,_0x2c693e,_0x271ee5,_0x464df3){const _0x4b692b=_0x246bb0;let {left:_0x43519,top:_0x5217f9,height:_0x371e3d}=this[_0x4b692b(0x3cd)](_0x1ac5ec),_0x2e61a4=1.5/this[_0x4b692b(0x1bc)](),_0x53729c=new m[(_0x4b692b(0x362))](R+(0x0,n[_0x4b692b(0x16f)])(0x6),{'left':_0x43519+_0x2c693e-_0x2e61a4,'top':_0x5217f9+_0x271ee5,'height':_0x371e3d,'width':1.5,'fill':_0x101a6f||(0x0,m[_0x4b692b(0x1d8)])(n['COLORS']['black'],0x0),'strokeWidth':_0x2e61a4,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x4b692b(0x370)]=_0x53729c,this[_0x4b692b(0x101)][_0x4b692b(0x11d)](_0x53729c,p[_0x4b692b(0x261)]);let _0x2a5bdf=new m[(_0x4b692b(0x362))](R+(0x0,n['generateRandomId'])(0x6),{'left':_0x43519+_0x2c693e-_0x2e61a4,'top':_0x5217f9+_0x271ee5-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x101a6f||(0x0,m[_0x4b692b(0x1d8)])(n[_0x4b692b(0x194)][_0x4b692b(0x338)],0x0),'strokeWidth':0x0,'stroke':_0x101a6f||(0x0,m[_0x4b692b(0x1d8)])(n[_0x4b692b(0x194)][_0x4b692b(0x338)],0x0),'evented':!0x1});this['_anchorDot']=_0x2a5bdf,this[_0x4b692b(0x101)]['addObject'](_0x2a5bdf,p['TEXT_RANGE_LAYER_INDEX']);let _0x17fdd6=new O(R+(0x0,n[_0x4b692b(0x16f)])(0x6),{'left':_0x43519+_0x2c693e-_0x2e61a4,'top':_0x5217f9+_0x271ee5-0x14,'text':_0x464df3,'color':_0x101a6f});this['_textBubble']=_0x17fdd6,this[_0x4b692b(0x101)][_0x4b692b(0x11d)](_0x17fdd6,p[_0x4b692b(0x261)]),this[_0x4b692b(0x1a7)]=!0x1;}['_handleHover'](){const _0x1cbb0e=_0x246bb0;let _0x5e181f=this['_anchor']['onPointerEnter$'][_0x1cbb0e(0x293)](()=>{const _0x5c6652=_0x1cbb0e;this[_0x5c6652(0x1a7)]=!0x0;}),_0x40a79b=this[_0x1cbb0e(0x370)][_0x1cbb0e(0x172)]['subscribeEvent'](()=>{const _0x461e06=_0x1cbb0e;this[_0x461e06(0x3c8)]&&clearTimeout(this[_0x461e06(0x3c8)]),this['_hideTimer']=setTimeout(()=>{const _0x48f83f=_0x461e06;this[_0x48f83f(0x1a7)]=!0x1;},0x7d0);});return()=>{const _0x321cd4=_0x1cbb0e;_0x5e181f[_0x321cd4(0x366)](),_0x40a79b[_0x321cd4(0x366)]();};}['_drawTextRange'](_0x39baaf,_0x514952,_0x322787,_0x101ac9){const _0x1d5b29=_0x246bb0;let _0x4f9017=0.2,_0x5ceef8=new n[(_0x1d5b29(0xed))](_0x39baaf)[_0x1d5b29(0x325)](_0x4f9017)['toRgbString'](),_0x42cd6b=new m[(_0x1d5b29(0x135))](_0x1d5b29(0x1a1)+(0x0,n[_0x1d5b29(0x16f)])(0x6),{'pointsGroup':_0x514952,'fill':_0x5ceef8||(0x0,m['getColor'])(n['COLORS'][_0x1d5b29(0x338)],_0x4f9017),'left':_0x322787,'top':_0x101ac9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1d5b29(0x111)](_0x42cd6b),this[_0x1d5b29(0x101)][_0x1d5b29(0x11d)](_0x42cd6b,p['TEXT_RANGE_LAYER_INDEX']);}[_0x246bb0(0x1bb)](_0x16b0f6,_0x40526c,_0x458579,_0x43d186){const _0x1c35f7=_0x246bb0;let _0x458780=0.2,_0x3654ee=new n[(_0x1c35f7(0xed))](_0x16b0f6)['setAlpha'](_0x458780)[_0x1c35f7(0x181)](),_0x1b53d7=new m[(_0x1c35f7(0x135))](_0x1c35f7(0xca)+(0x0,n[_0x1c35f7(0x16f)])(0x6),{'pointsGroup':_0x40526c,'fill':_0x3654ee||(0x0,m[_0x1c35f7(0x1d8)])(n[_0x1c35f7(0x194)]['black'],_0x458780),'left':_0x458579,'top':_0x43d186,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1c35f7(0x340)][_0x1c35f7(0x111)](_0x1b53d7),this['_scene'][_0x1c35f7(0x11d)](_0x1b53d7,p[_0x1c35f7(0x261)]);}[_0x246bb0(0x3cd)](_0x3b99e0){let _0x18ef0f=_0x3b99e0[0x0],_0x1f213e=_0x18ef0f[0x0],_0x304340=_0x18ef0f[0x2],{x:_0x176ec2,y:_0x3677c1}=_0x1f213e,{x:_0x216d15,y:_0x3a88e0}=_0x304340;return{'left':_0x176ec2,'top':_0x3677c1,'width':_0x216d15-_0x176ec2,'height':_0x3a88e0-_0x3677c1};}[_0x246bb0(0x1bc)](){const _0x53d739=_0x246bb0;let {scaleX:_0x44dec1,scaleY:_0x4edc74}=this[_0x53d739(0x101)][_0x53d739(0xfa)]();return Math['max'](_0x44dec1,_0x4edc74);}};let z=class extends n[_0x246bb0(0x2db)]{constructor(_0x52b842,_0x1b919e,_0x153183,_0x3d05c0,_0x408795){const _0x53490c=_0x246bb0;super(),this[_0x53490c(0x14f)]=_0x52b842,this[_0x53490c(0xfd)]=_0x1b919e,this[_0x53490c(0x218)]=_0x153183,this['_commandService']=_0x3d05c0,this[_0x53490c(0x1aa)]=_0x408795,S(this,_0x53490c(0x385),[]),S(this,_0x53490c(0xe0),[]),this[_0x53490c(0x244)]();}['_init'](){const _0x56bcab=_0x246bb0;let _0x4b86aa=this['_context'][_0x56bcab(0x193)],_0x797ea3=this['_docSkeletonManagerService'];this[_0x56bcab(0x275)]((0x0,i[_0x56bcab(0x30e)])([this['_collabCursorController'][_0x56bcab(0x2a2)](_0x4b86aa),this[_0x56bcab(0x1aa)][_0x56bcab(0x112)]])[_0x56bcab(0x319)]((0x0,a[_0x56bcab(0x1cb)])(([_0x505d77,_0x5ac9f5])=>({'skeleton':_0x797ea3[_0x56bcab(0x281)](),'cursors':[..._0x505d77[_0x56bcab(0x19e)]()][_0x56bcab(0x2df)](_0x4893d9=>({..._0x4893d9,'color':this[_0x56bcab(0x1aa)][_0x56bcab(0x21f)](_0x4893d9[_0x56bcab(0x26e)])}))})))[_0x56bcab(0x173)](_0x159320=>{const _0x1b38cf=_0x56bcab;if(this[_0x1b38cf(0x3ae)](),_0x159320){let {skeleton:_0x3c7919,cursors:_0x583828}=_0x159320;this['_updateCollabCursors'](_0x3c7919,_0x583828);}})),this['_initResize'](),this[_0x56bcab(0x34d)]();}['_updateCollabCursors'](_0x50d8b7,_0x25c72b){const _0x36e674=_0x246bb0;let {scene:_0x1427e7,mainComponent:_0x1f5ef9}=this[_0x36e674(0x14f)],_0x528fb7=_0x25c72b['map'](_0x20d589=>new be(_0x20d589,_0x1427e7,_0x50d8b7,_0x1f5ef9));this['_cursorShapes']=_0x528fb7,this[_0x36e674(0xe0)]=_0x25c72b;}['_refreshCollabCursors'](){const _0x46546c=_0x246bb0;this[_0x46546c(0x3ae)]();let {scene:_0x5c57fb,mainComponent:_0xa89756}=this[_0x46546c(0x14f)],_0x2197a9=this[_0x46546c(0xfd)]['getSkeleton'](),_0x79f416=this[_0x46546c(0xe0)][_0x46546c(0x1cb)](_0x34e03b=>new be(_0x34e03b,_0x5c57fb,_0x2197a9,_0xa89756));this[_0x46546c(0x385)]=_0x79f416;}[_0x246bb0(0x3ae)](){const _0x35f13e=_0x246bb0;this[_0x35f13e(0x385)]['forEach'](_0x3fb39d=>_0x3fb39d['dispose']()),this['_cursorShapes']=[];}[_0x246bb0(0x34d)](){const _0x1c41f4=_0x246bb0;let _0x388bb7=[p['SetDocZoomRatioOperation']['id']];this[_0x1c41f4(0x275)](this[_0x1c41f4(0x1e4)][_0x1c41f4(0x3c1)](_0x5dbcb3=>{const _0x40b348=_0x1c41f4;_0x388bb7['includes'](_0x5dbcb3['id'])&&_0x5dbcb3[_0x40b348(0xd0)][_0x40b348(0x193)]===this['_context'][_0x40b348(0x193)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x464310=_0x246bb0;this[_0x464310(0x275)]((0x0,n['fromEventSubject'])(this[_0x464310(0x14f)][_0x464310(0x242)]['onTransformChange$'])[_0x464310(0x319)]((0x0,a['filter'])(_0x341951=>_0x341951[_0x464310(0x13b)]===m[_0x464310(0x17a)][_0x464310(0x3a4)]),(0x0,a['throttleTime'])(0x10))['subscribe'](()=>{const _0x563fd8=_0x464310;this[_0x563fd8(0xdf)]();}));}};z=w([C(0x1,(0x0,n[_0x246bb0(0x1a6)])(f[_0x246bb0(0x2e8)])),C(0x2,(0x0,n['Inject'])(I)),C(0x3,n[_0x246bb0(0x186)]),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(n['ThemeService']))],z);var xe=class extends m['Shape']{constructor(_0x1f1867,_0x52c568){const _0x33def9=_0x246bb0;super(_0x1f1867,_0x52c568),S(this,_0x33def9(0x2d5),void 0x0),S(this,_0x33def9(0x1fb),!0x1),S(this,'_range',void 0x0),S(this,'_name',''),S(this,_0x33def9(0x1ca),'top'),S(this,_0x33def9(0xd4),void 0x0),S(this,_0x33def9(0x3a0),void 0x0),S(this,_0x33def9(0x2e0),void 0x0),S(this,_0x33def9(0x356),0x4),S(this,_0x33def9(0xd8),void 0x0),S(this,'_blinkIntervalTimer',void 0x0),S(this,_0x33def9(0x24b),!0x0),S(this,_0x33def9(0x2cb),0x0),S(this,'_labelHorizontalPosition',_0x33def9(0x36a)),_0x52c568&&(this[_0x33def9(0x351)](_0x52c568),_0x52c568[_0x33def9(0x144)]&&(_0x52c568[_0x33def9(0x14a)]??this[_0x33def9(0x356)])&&this['_startBlinking'](_0x52c568[_0x33def9(0x14a)]??this[_0x33def9(0x356)])),this[_0x33def9(0x223)][_0x33def9(0x293)](()=>this[_0x33def9(0x351)]({'hovered':!0x0})),this[_0x33def9(0x172)][_0x33def9(0x293)](()=>this[_0x33def9(0x351)]({'hovered':!0x1}));}[_0x246bb0(0x305)](_0x365d49){const _0x1484cf=_0x246bb0;this[_0x1484cf(0x2cb)]=_0x365d49;}['setShapeProps'](_0x29cb77){const _0x39c8ec=_0x246bb0;this[_0x39c8ec(0x2d5)]=_0x29cb77['color']??this[_0x39c8ec(0x2d5)],this[_0x39c8ec(0x1fb)]=_0x29cb77['hovered']??this['_hovered'],this[_0x39c8ec(0x17c)]=_0x29cb77[_0x39c8ec(0x29c)]??this[_0x39c8ec(0x17c)],this[_0x39c8ec(0x2ad)]=_0x29cb77[_0x39c8ec(0x21e)]??this['_name'],this[_0x39c8ec(0x1ca)]=_0x29cb77[_0x39c8ec(0x374)]??this[_0x39c8ec(0x1ca)],this[_0x39c8ec(0xd4)]=_0x29cb77[_0x39c8ec(0x309)]??this['_backgroundColor'],this[_0x39c8ec(0x3a0)]=_0x29cb77[_0x39c8ec(0x24f)]??this[_0x39c8ec(0x3a0)],this[_0x39c8ec(0x22f)]=_0x29cb77[_0x39c8ec(0x25c)]??this['_labelHorizontalPosition'],_0x29cb77[_0x39c8ec(0x14a)]!==void 0x0&&(this['_highlightSecond']=_0x29cb77['highlightSecond']),_0x29cb77['highlight']!==void 0x0&&(this[_0x39c8ec(0x2e0)]=_0x29cb77[_0x39c8ec(0x144)]),_0x29cb77[_0x39c8ec(0xee)]!==void 0x0&&(this['_offsetY']=_0x29cb77[_0x39c8ec(0xee)]),this[_0x39c8ec(0x238)]({'width':_0x29cb77[_0x39c8ec(0x1b2)],'height':_0x29cb77[_0x39c8ec(0x128)]});}[_0x246bb0(0x2ce)](_0x1fdc45){const _0x3ceceb=_0x246bb0;let {row:_0x599ebe,column:_0x1357b0}=_0x1fdc45;if(_0x599ebe>=this['_range'][_0x3ceceb(0x2c8)]&&_0x599ebe<=this['_range']['endRow']&&_0x1357b0>=this[_0x3ceceb(0x17c)][_0x3ceceb(0x2a1)]&&_0x1357b0<=this[_0x3ceceb(0x17c)][_0x3ceceb(0x269)]){this[_0x3ceceb(0x351)]({'hovered':!0x0});return;}this[_0x3ceceb(0x351)]({'hovered':!0x1});}[_0x246bb0(0x3ba)](_0x1be7fd){const _0x54d1e9=_0x246bb0;this[_0x54d1e9(0x349)](),this['_isBlinkVisible']=!0x0,this[_0x54d1e9(0x37d)]=window[_0x54d1e9(0x1ec)](()=>{const _0x1fe271=_0x54d1e9;this[_0x1fe271(0x24b)]=!this[_0x1fe271(0x24b)],this['makeDirty'](!0x0);},0x1f4),this[_0x54d1e9(0xd8)]=window[_0x54d1e9(0x3c4)](()=>{const _0x1a81b7=_0x54d1e9;this[_0x1a81b7(0x349)](),this[_0x1a81b7(0x24b)]=!0x0,this[_0x1a81b7(0x210)](!0x0);},_0x1be7fd*0x3e8);}[_0x246bb0(0x349)](){const _0x4cc502=_0x246bb0;this[_0x4cc502(0x37d)]&&=(window['clearInterval'](this[_0x4cc502(0x37d)]),void 0x0),this[_0x4cc502(0xd8)]&&=(window[_0x4cc502(0x2f1)](this[_0x4cc502(0xd8)]),void 0x0);}[_0x246bb0(0x3b3)](_0x521287){return!0x1;}[_0x246bb0(0x20f)](){const _0x5115e7=_0x246bb0;this[_0x5115e7(0x349)](),super[_0x5115e7(0x20f)]();}['_draw'](_0x39aa98){const _0x5e5b36=_0x246bb0;let _0x49399a=this[_0x5e5b36(0x2d5)],_0x56b7e4=this[_0x5e5b36(0xd4)];if(this[_0x5e5b36(0x2e0)]&&!this[_0x5e5b36(0x24b)]&&(_0x49399a=this[_0x5e5b36(0x1b8)](this[_0x5e5b36(0x2d5)]),_0x56b7e4=this['_backgroundColor']?this['_getLighterColor'](this[_0x5e5b36(0xd4)]):void 0x0),m[_0x5e5b36(0x362)][_0x5e5b36(0x387)](_0x39aa98,{'width':this[_0x5e5b36(0x1b2)],'height':this['height'],'strokeWidth':this[_0x5e5b36(0x380)]||1.5,'stroke':_0x49399a,'evented':!0x1,'fill':_0x56b7e4}),this[_0x5e5b36(0x1fb)]||this[_0x5e5b36(0x3a0)]){_0x39aa98['save']();let _0x59eee5=this[_0x5e5b36(0x22f)]===_0x5e5b36(0x33c)?-de(_0x39aa98,this[_0x5e5b36(0x2ad)]):this[_0x5e5b36(0x1b2)];_0x39aa98[_0x5e5b36(0x32d)](0x1,0x0,0x0,0x1,_0x59eee5,(this[_0x5e5b36(0x1ca)]===_0x5e5b36(0x31b)?0x0:-0x14)+(this[_0x5e5b36(0x2cb)]??0x0)),O[_0x5e5b36(0x387)](_0x39aa98,{'text':this[_0x5e5b36(0x2ad)],'color':_0x49399a}),_0x39aa98[_0x5e5b36(0x1dd)]();}}['_getLighterColor'](_0x2b83ed){const _0x1bb546=_0x246bb0;return _0x2b83ed[_0x1bb546(0x22b)]('#')?'rgba('+Number[_0x1bb546(0x360)](_0x2b83ed[_0x1bb546(0x208)](0x1,0x3),0x10)+',\x20'+Number[_0x1bb546(0x360)](_0x2b83ed[_0x1bb546(0x208)](0x3,0x5),0x10)+',\x20'+Number[_0x1bb546(0x360)](_0x2b83ed[_0x1bb546(0x208)](0x5,0x7),0x10)+_0x1bb546(0x1bf):_0x2b83ed['startsWith']('rgba')?_0x2b83ed[_0x1bb546(0x25d)](/[\d.]+\)$/g,_0x1bb546(0x164)):_0x2b83ed[_0x1bb546(0x22b)]('rgb')?_0x2b83ed[_0x1bb546(0x25d)](_0x1bb546(0x205),_0x1bb546(0x2be))[_0x1bb546(0x25d)](')',_0x1bb546(0x1bf)):_0x2b83ed;}};let B=class extends n[_0x246bb0(0x2db)]{constructor(_0x2107f2,_0x2025d9,_0x38ef7a,_0x323069){const _0x100c3a=_0x246bb0;super(),this[_0x100c3a(0x14f)]=_0x2107f2,this[_0x100c3a(0xf8)]=_0x2025d9,this[_0x100c3a(0x218)]=_0x38ef7a,this[_0x100c3a(0x1aa)]=_0x323069,S(this,'_cursors',new Set()),S(this,_0x100c3a(0x107),null),S(this,_0x100c3a(0x3b1),null),this['_init']();}['_init'](){const _0x48bc25=_0x246bb0;this[_0x48bc25(0xf8)][_0x48bc25(0x10c)][_0x48bc25(0x319)]((0x0,a[_0x48bc25(0x119)])(this[_0x48bc25(0x22c)]),(0x0,a[_0x48bc25(0x283)])(_0x5c6ac1=>{const _0x4d0cbb=_0x48bc25;if(_0x5c6ac1){let _0x4478ae=_0x5c6ac1[_0x4d0cbb(0x278)];return(0x0,i[_0x4d0cbb(0x30e)])(this[_0x4d0cbb(0x218)][_0x4d0cbb(0x2a2)](this[_0x4d0cbb(0x14f)][_0x4d0cbb(0x193)]),this['_themeService'][_0x4d0cbb(0x112)])['pipe']((0x0,a[_0x4d0cbb(0x1cb)])(([_0x9aeb6,_0x84560])=>{const _0x2a079e=_0x4d0cbb;let _0xd8ea69=new Map();return _0x9aeb6[_0x2a079e(0x34f)]((_0x1a4eab,_0x3e49dc)=>{const _0x3bb393=_0x2a079e;if(_0x1a4eab[_0x3bb393(0x310)]===_0x4478ae){let _0x7c44e={..._0x1a4eab};_0x7c44e[_0x3bb393(0x26e)]=this[_0x3bb393(0x1aa)][_0x3bb393(0x21f)](_0x1a4eab['color']),_0xd8ea69[_0x3bb393(0x2f4)](_0x3e49dc,_0x7c44e);}}),{'skeleton':_0x5c6ac1,'cursors':_0xd8ea69};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))[_0x48bc25(0x173)](({skeleton:_0x59053f,cursors:_0x26415f})=>{const _0x2849b6=_0x48bc25;this[_0x2849b6(0x3ae)](),_0x59053f&&this[_0x2849b6(0x36f)](_0x59053f,_0x26415f);}),this['disposeWithMe'](this[_0x48bc25(0xf8)][_0x48bc25(0x10c)][_0x48bc25(0x319)]((0x0,a[_0x48bc25(0x119)])(this['dispose$']))['subscribe'](_0x2ff677=>{const _0x31ec9c=_0x48bc25;var _0x89ebc9;if(_0x2ff677==null)return;(_0x89ebc9=this[_0x31ec9c(0x3b1)])==null||_0x89ebc9['unsubscribe'](),this[_0x31ec9c(0x3b1)]=null;let {skeleton:_0x3176a7}=_0x2ff677,{scene:_0x5ee8d6}=this[_0x31ec9c(0x14f)];this[_0x31ec9c(0x3b1)]=_0x5ee8d6[_0x31ec9c(0x13e)][_0x31ec9c(0x293)]((0x0,n[_0x31ec9c(0x225)])(_0x4ff03e=>{const _0x41d73a=_0x31ec9c;var _0x8ecc4c,_0x1cae4d;let {offsetX:_0x1569c2,offsetY:_0x19bbd5}=_0x4ff03e,{x:_0x1f9dcc,y:_0x50062c}=_0x5ee8d6[_0x41d73a(0x122)](m[_0x41d73a(0xc5)][_0x41d73a(0x10e)]([_0x1569c2,_0x19bbd5])),{scaleX:_0x1940d5,scaleY:_0x56068a}=_0x5ee8d6[_0x41d73a(0xfa)](),_0x5700b4=_0x5ee8d6[_0x41d73a(0x3cf)](m[_0x41d73a(0x39e)]['VIEW_MAIN']),_0x325f08=_0x5ee8d6[_0x41d73a(0x2b8)](m[_0x41d73a(0xc5)][_0x41d73a(0x10e)]([_0x1f9dcc,_0x50062c]),_0x5700b4),_0x253b17=_0x3176a7[_0x41d73a(0x1c8)](_0x1569c2,_0x19bbd5,_0x1940d5,_0x56068a,_0x325f08);(((_0x8ecc4c=this['_lastPointer'])==null?void 0x0:_0x8ecc4c[_0x41d73a(0x198)])!==_0x253b17['column']||((_0x1cae4d=this['_lastPointer'])==null?void 0x0:_0x1cae4d[_0x41d73a(0x19a)])!==_0x253b17[_0x41d73a(0x19a)])&&this[_0x41d73a(0xe0)]['forEach'](_0x497e8d=>{const _0x1efb07=_0x41d73a;_0x497e8d[_0x1efb07(0x2ce)](_0x253b17);});},0x64));})),this[_0x48bc25(0x275)]((0x0,n['toDisposable'])(()=>{const _0xd7ff7b=_0x48bc25;var _0x57f60c;(_0x57f60c=this[_0xd7ff7b(0x3b1)])==null||_0x57f60c[_0xd7ff7b(0x366)](),this[_0xd7ff7b(0x3b1)]=null;}));}['_updateCollabCursors'](_0x1f06ee,_0x1b5c87){const _0x4cfcf9=_0x246bb0;let _0x28b54e=this[_0x4cfcf9(0xf8)][_0x4cfcf9(0x39b)]();if(!_0x28b54e)return;let _0xfe47bd=this['_getSheetObject']();if(!_0xfe47bd)return;this['_cursors']['forEach'](_0x133cbb=>{const _0x4052e3=_0x4cfcf9;_0x133cbb[_0x4052e3(0x210)]();});let {scene:_0x237559}=_0xfe47bd,_0x59779c=Se(Array[_0x4cfcf9(0x2d6)](_0x1b5c87[_0x4cfcf9(0x19e)]()))['map'](_0x1af55c=>{const _0x21685f=_0x4cfcf9;let {color:_0x537de8,range:_0x3e7b99,name:_0xae0b0e,selection:_0x349bbf,sheetID:_0x44cdff}=_0x1af55c,{startColumn:_0x1f82d9,startRow:_0xf06428,endColumn:_0x589873,endRow:_0x3cce34}=_0x3e7b99,_0x126b35=(0x0,y[_0x21685f(0x301)])(_0xf06428,_0x1f82d9,_0x237559,_0x28b54e),_0x48a59e=(0x0,y[_0x21685f(0x301)])(_0x3cce34,_0x589873,_0x237559,_0x28b54e),{columnHeaderHeightAndMarginTop:_0x5448e4}=_0x28b54e,{startX:_0x2143e5,startY:_0x289e33}=_0x126b35,{endX:_0xe59308,endY:_0x5d635e}=_0x48a59e,_0x4f2a0b=_0xe59308-_0x2143e5,_0x408d91=_0x5d635e-_0x289e33;return new xe(_0xae0b0e,{'labelPosition':_0x289e33-_0x5448e4>=0x14?_0x21685f(0x2f5):'bottom','sheetID':_0x44cdff,'range':_0x3e7b99,'color':_0x537de8,'name':_0xae0b0e,'selection':_0x349bbf,'left':_0x2143e5,'top':_0x289e33,'width':_0x4f2a0b,'height':_0x408d91,'evented':!0x1,'zIndex':0x1389});});_0x237559[_0x4cfcf9(0x27f)](_0x59779c,0x1),this[_0x4cfcf9(0xe0)]=new Set(_0x59779c);}[_0x246bb0(0x3ae)](){const _0x19616d=_0x246bb0;var _0x3d2db2;(_0x3d2db2=this[_0x19616d(0xe0)])==null||_0x3d2db2[_0x19616d(0x34f)](_0x1301bf=>_0x1301bf[_0x19616d(0x20f)]());}[_0x246bb0(0x1fe)](){const _0x48d39d=_0x246bb0;return(0x0,y['getSheetObject'])(this[_0x48d39d(0x14f)][_0x48d39d(0x35a)],this[_0x48d39d(0x14f)]);}};B=w([C(0x1,(0x0,n['Inject'])(y[_0x246bb0(0x354)])),C(0x2,(0x0,n['Inject'])(I)),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x3c5)]))],B);function Se(_0x432484){const _0x373ed3=_0x246bb0;let _0x187671=new Map();return _0x432484[_0x373ed3(0x34f)](_0x582329=>{const _0x53b452=_0x373ed3;if(_0x187671[_0x53b452(0x2eb)](_0x582329[_0x53b452(0x118)])){let _0x5e129d=_0x187671[_0x53b452(0x2e5)](_0x582329[_0x53b452(0x118)]);_0x5e129d[_0x53b452(0x21e)]+=',\x20'+_0x582329[_0x53b452(0x21e)];}else _0x187671[_0x53b452(0x2f4)](_0x582329['selection'],_0x582329);}),Array[_0x373ed3(0x2d6)](_0x187671['values']());}let V=class extends n[_0x246bb0(0x2db)]{constructor(_0x178124,_0x4083c4,_0x3e65fe){const _0x34ed92=_0x246bb0;super(),this[_0x34ed92(0x14f)]=_0x178124,this['_collabCursorController']=_0x4083c4,this[_0x34ed92(0x1aa)]=_0x3e65fe,S(this,'_cursors',new Set()),S(this,_0x34ed92(0x1e7),!0x1),S(this,'_isApplyingOverlays',!0x1),S(this,_0x34ed92(0xce),new Map()),this[_0x34ed92(0x244)]();}[_0x246bb0(0x20f)](){const _0x275f03=_0x246bb0;this[_0x275f03(0x3ae)](),super[_0x275f03(0x20f)]();}['_init'](){const _0x379b89=_0x246bb0;let _0x58ddaf=this[_0x379b89(0x14f)][_0x379b89(0x35a)]['pageManager'][_0x379b89(0x3a9)],_0x2f589a=this[_0x379b89(0x218)]['getCollabCursors$'](this[_0x379b89(0x14f)][_0x379b89(0x193)]);this[_0x379b89(0x275)]((0x0,n[_0x379b89(0x168)])((0x0,i[_0x379b89(0x30e)])([_0x2f589a,_0x58ddaf,this[_0x379b89(0x1aa)]['currentTheme$']])[_0x379b89(0x319)]((0x0,i[_0x379b89(0x119)])(this[_0x379b89(0x22c)]))[_0x379b89(0x173)](([_0x3381b4,_0x458f87])=>{const _0x5b3ed3=_0x379b89;let _0x4fad45=new Map();_0x3381b4[_0x5b3ed3(0x34f)]((_0x5d8c48,_0xa1998e)=>{const _0x3caafd=_0x5b3ed3;_0x5d8c48[_0x3caafd(0x3bc)]===_0x458f87&&_0x4fad45['set'](_0xa1998e,{..._0x5d8c48,'color':this['_themeService']['getColorFromTheme'](_0x5d8c48[_0x3caafd(0x26e)])});}),this['_latestCursors']=_0x4fad45,this[_0x5b3ed3(0x32c)]();})));let _0x1e55eb=this[_0x379b89(0x14f)][_0x379b89(0x17b)];this['disposeWithMe']((0x0,n[_0x379b89(0x168)])(_0x1e55eb[_0x379b89(0x206)][_0x379b89(0x319)]((0x0,i[_0x379b89(0x119)])(this[_0x379b89(0x22c)]))['subscribe'](()=>{const _0x4596d7=_0x379b89;this['_isApplyingOverlays']||this[_0x4596d7(0x32c)]();})));}[_0x246bb0(0x32c)](){const _0x2c6c3a=_0x246bb0;this['_renderScheduled']||(this['_renderScheduled']=!0x0,Promise[_0x2c6c3a(0x350)]()[_0x2c6c3a(0x27e)](()=>{const _0x310572=_0x2c6c3a;this[_0x310572(0x1e7)]=!0x1,this[_0x310572(0x1a0)]();}));}[_0x246bb0(0x1a0)](){const _0x5ad70c=_0x246bb0;var _0x218850;this[_0x5ad70c(0x3ae)]();let _0x515e5d=(_0x218850=this[_0x5ad70c(0x14f)][_0x5ad70c(0x35a)]['pageManager'][_0x5ad70c(0x28f)]())==null?void 0x0:_0x218850[_0x5ad70c(0xcc)]();if(!_0x515e5d)return;let _0x4e70f6=[];if(this[_0x5ad70c(0xce)][_0x5ad70c(0x34f)]((_0x22a9bf,_0x242734)=>{const _0x4f70f0=_0x5ad70c;_0x22a9bf[_0x4f70f0(0x3bc)]===_0x515e5d&&_0x22a9bf[_0x4f70f0(0x21d)][_0x4f70f0(0x34f)](_0x2601ed=>{const _0x4ec218=_0x4f70f0;let _0x204f36=(0x0,v[_0x4ec218(0x2a0)])(_0x22a9bf[_0x4ec218(0x193)],_0x22a9bf[_0x4ec218(0x3bc)],_0x2601ed),_0x1db6ab=this['_getSceneObjectByKey'](_0x204f36);if(!_0x1db6ab)return;let _0xea8a26=this[_0x4ec218(0x3c9)](_0x1db6ab);_0x4e70f6[_0x4ec218(0x111)](new pe('slide-collab-cursor-'+_0x242734+'-'+_0x2601ed,{..._0x22a9bf,'left':_0xea8a26[_0x4ec218(0x33c)],'top':_0xea8a26[_0x4ec218(0x2f5)],'width':_0xea8a26[_0x4ec218(0x1b2)],'height':_0xea8a26[_0x4ec218(0x128)],'angle':_0x1db6ab[_0x4ec218(0x10d)],'evented':!0x1,'zIndex':k}));});}),_0x4e70f6['length']===0x0){this[_0x5ad70c(0x14f)][_0x5ad70c(0x17b)][_0x5ad70c(0x210)](!0x0);return;}this[_0x5ad70c(0x36e)]=!0x0,this['_context'][_0x5ad70c(0x17b)][_0x5ad70c(0x27f)](_0x4e70f6,k),this['_isApplyingOverlays']=!0x1,this[_0x5ad70c(0xe0)]=new Set(_0x4e70f6),this[_0x5ad70c(0x14f)][_0x5ad70c(0x17b)][_0x5ad70c(0x210)](!0x0);}[_0x246bb0(0x3ae)](){const _0x43e51a=_0x246bb0;let _0x22b7e5=Array['from'](this[_0x43e51a(0xe0)]);if(_0x22b7e5[_0x43e51a(0x192)]===0x0)return;let _0x2694b4=this['_context'][_0x43e51a(0x17b)];'removeObjects'in _0x2694b4&&typeof _0x2694b4[_0x43e51a(0x358)]==_0x43e51a(0x2c7)?_0x2694b4[_0x43e51a(0x358)](_0x22b7e5):_0x22b7e5[_0x43e51a(0x34f)](_0x565395=>{const _0x4e1659=_0x43e51a;_0x4e1659(0xe3)in _0x2694b4&&typeof _0x2694b4[_0x4e1659(0xe3)]==_0x4e1659(0x2c7)?_0x2694b4[_0x4e1659(0xe3)](_0x565395):_0x565395[_0x4e1659(0x20f)]();}),this['_cursors'][_0x43e51a(0x299)](),_0x2694b4[_0x43e51a(0x210)](!0x0);}[_0x246bb0(0x3ac)](_0x46c4e1){const _0x3a32bb=_0x246bb0;var _0x3b2dfd;let _0x4b2a52=this[_0x3a32bb(0x14f)][_0x3a32bb(0x17b)];return((_0x3b2dfd=_0x4b2a52['getObjectIncludeInGroup'])==null?void 0x0:_0x3b2dfd['call'](_0x4b2a52,_0x46c4e1))??_0x4b2a52[_0x3a32bb(0x28c)](_0x46c4e1)??null;}[_0x246bb0(0x3c9)](_0x3ee831){const _0x4dbb37=_0x246bb0;var _0x3f978c;let _0x49bb4d=_0x3ee831;return((_0x3f978c=_0x49bb4d[_0x4dbb37(0x1da)])==null?void 0x0:_0x3f978c[_0x4dbb37(0x2b2)](_0x49bb4d))??{'left':_0x3ee831[_0x4dbb37(0x33c)],'top':_0x3ee831[_0x4dbb37(0x2f5)],'width':_0x3ee831['width'],'height':_0x3ee831['height']};}};V=w([C(0x1,(0x0,n[_0x246bb0(0x1a6)])(I)),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(n['ThemeService']))],V);let H=class extends n[_0x246bb0(0x13d)]{constructor(_0x83551e,_0xe4ac63,_0x3f2e49,_0x1f5dc5,_0x25ef42,_0x2a3f50){const _0x261ce4=_0x246bb0;super(),this[_0x261ce4(0xef)]=_0x83551e,this[_0x261ce4(0x1dc)]=_0xe4ac63,this[_0x261ce4(0x18e)]=_0x3f2e49,this[_0x261ce4(0x16b)]=_0x1f5dc5,this[_0x261ce4(0x1e5)]=_0x25ef42,this[_0x261ce4(0x3af)]=_0x2a3f50,this[_0x261ce4(0x359)](),this[_0x261ce4(0x2af)]();}[_0x246bb0(0x359)](){const _0x2e520d=_0x246bb0;this[_0x2e520d(0x275)](this[_0x2e520d(0xef)][_0x2e520d(0x336)](()=>{const _0x37355b=_0x2e520d;if(this[_0x37355b(0x1dc)][_0x37355b(0x3ab)]['size'])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x4cc066=_0x246bb0;this[_0x4cc066(0x275)](this['_collaborationUIEventService'][_0x4cc066(0x1a3)]['subscribe'](_0xec3aa4=>{const _0x173d79=_0x4cc066;_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x3c0)]&&this[_0x173d79(0x16b)]['show']({'type':o[_0x173d79(0x3d2)][_0x173d79(0x2c1)],'content':this[_0x173d79(0x3af)]['t'](_0x173d79(0x158))}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x3bf)]&&this[_0x173d79(0x16b)][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)][_0x173d79(0x2c1)],'content':this[_0x173d79(0x3af)]['t'](_0x173d79(0x167))}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x376)]&&this[_0x173d79(0x1e5)][_0x173d79(0x2fe)]({'title':this[_0x173d79(0x3af)]['t'](_0x173d79(0x2de)),'content':this[_0x173d79(0x3af)]['t'](_0x173d79(0x159)),'type':'error','duration':0x0}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x1c0)]&&this[_0x173d79(0x1e5)][_0x173d79(0x2fe)]({'title':this[_0x173d79(0x3af)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x173d79(0x3af)]['t'](_0x173d79(0x348)),'type':_0x173d79(0x1af),'duration':0x0}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x234)]&&this['_messageService'][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)][_0x173d79(0x2c1)],'content':this[_0x173d79(0x3af)]['t'](_0xec3aa4['data']||'')}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x371)]&&this[_0x173d79(0x16b)][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)]['Warning'],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0xec3aa4['id']===t['CollaborationUIEventId'][_0x173d79(0x12a)]&&this['_messageService'][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)][_0x173d79(0x212)],'content':this['_localeService']['t'](_0x173d79(0x1a2))}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x355)]&&this[_0x173d79(0x16b)][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)]['Error'],'content':this['_localeService']['t'](_0x173d79(0x1eb))});}));}};H=w([C(0x0,r[_0x246bb0(0x2a4)]),C(0x1,t[_0x246bb0(0x297)]),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(t['CollaborationUIEventService'])),C(0x3,r[_0x246bb0(0x1d1)]),C(0x4,r[_0x246bb0(0x1f9)]),C(0x5,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x266)]))],H);const U=(0x0,n['createIdentifier'])(_0x246bb0(0x1f3));let W=class extends n[_0x246bb0(0x2db)]{constructor(_0x50b9c8,_0x1f1df4,_0x56573e,_0x277e1e,_0x4bb0c3){const _0x704ac0=_0x246bb0;super(),this[_0x704ac0(0x15d)]=_0x50b9c8,this[_0x704ac0(0x316)]=_0x1f1df4,this[_0x704ac0(0x1e4)]=_0x56573e,this[_0x704ac0(0xf7)]=_0x277e1e,_0x4bb0c3?_0x4bb0c3[_0x704ac0(0x2bc)]()[_0x704ac0(0x27e)](()=>this[_0x704ac0(0x244)]()):(this[_0x704ac0(0x316)]['debug'](_0x704ac0(0x284),_0x704ac0(0xc8)),this[_0x704ac0(0x244)]());}async[_0x246bb0(0x244)](){const _0x58baa7=_0x246bb0;let _0x43740a=this['_urlService']['getParam'](_0x58baa7(0x35a)),_0x3d1c74=this['_urlService']['getParam'](_0x58baa7(0x13b)),_0x2f1c13=this[_0x58baa7(0x15d)][_0x58baa7(0x357)](_0x58baa7(0x31c));if(!_0x43740a||!_0x3d1c74){this[_0x58baa7(0x316)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x4b9cee=await this['_dataLoaderService']['loadUnit'](_0x43740a,Number(_0x3d1c74),_0x2f1c13);_0x4b9cee&&_0x4b9cee instanceof n[_0x58baa7(0x20a)]&&this['_setupSubUnitSync'](_0x4b9cee);}async['_setupSubUnitSync'](_0x4ba964){const _0x3654a1=_0x246bb0;await this[_0x3654a1(0x33a)](_0x4ba964),_0x4ba964['activeSheet$'][_0x3654a1(0x319)]((0x0,i[_0x3654a1(0x119)])(this[_0x3654a1(0x22c)]))['subscribe'](_0x4ac24e=>{const _0x1e3c94=_0x3654a1;_0x4ac24e&&this[_0x1e3c94(0x289)](_0x4ac24e);}),this['_urlService'][_0x3654a1(0x318)][_0x3654a1(0x319)]((0x0,i[_0x3654a1(0x119)])(this['dispose$']))[_0x3654a1(0x173)](()=>this['_updateSubUnitFromURLParams'](_0x4ba964));}[_0x246bb0(0x289)](_0x4c3c9b,_0x414ba0=!0x1){const _0x4a81b9=_0x246bb0;let _0x1af6c1=this[_0x4a81b9(0x15d)][_0x4a81b9(0x357)](_0x4a81b9(0x31c));_0x4c3c9b[_0x4a81b9(0x240)]()!==_0x1af6c1&&this['_urlService'][_0x4a81b9(0x157)](_0x4a81b9(0x31c),_0x4c3c9b[_0x4a81b9(0x240)](),_0x414ba0);}async[_0x246bb0(0x33a)](_0x4fa0b2){const _0x57aa0e=_0x246bb0;var _0x139859;let _0x565426=this[_0x57aa0e(0x15d)][_0x57aa0e(0x357)]('subunit');if(!_0x565426||!_0x4fa0b2['getSheetBySheetId'](_0x565426)){let _0x3c6f33=_0x4fa0b2[_0x57aa0e(0x39d)]()[0x0],_0x37c669=_0x4fa0b2[_0x57aa0e(0x105)](_0x3c6f33);if(!_0x37c669)return;this[_0x57aa0e(0x289)](_0x37c669,!0x0),await this[_0x57aa0e(0x1e4)][_0x57aa0e(0x136)](_[_0x57aa0e(0xda)]['id'],{'unitId':_0x4fa0b2[_0x57aa0e(0x313)](),'subUnitId':_0x3c6f33});return;}((_0x139859=_0x4fa0b2[_0x57aa0e(0x38f)]())==null?void 0x0:_0x139859['getSheetId']())!==_0x565426&&await this[_0x57aa0e(0x1e4)][_0x57aa0e(0x136)](_[_0x57aa0e(0xda)]['id'],{'unitId':_0x4fa0b2[_0x57aa0e(0x313)](),'subUnitId':_0x565426});}};W=w([C(0x0,U),C(0x1,n[_0x246bb0(0x102)]),C(0x2,n[_0x246bb0(0x186)]),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(t['DataLoaderService'])),C(0x4,(0x0,n[_0x246bb0(0x3be)])(ee[_0x246bb0(0x290)]))],W);let G=class{constructor(_0x368ed6,_0x108def){const _0x41ba40=_0x246bb0;this[_0x41ba40(0x1d7)]=_0x368ed6,this[_0x41ba40(0x365)]=_0x108def;}['transformIMECache'](_0x3580c2){const _0x4531fd=_0x246bb0;this[_0x4531fd(0xd3)](_0x3580c2),this[_0x4531fd(0x2ee)](_0x3580c2);}['transformRemoteChangeset'](_0x53a4f5){const _0x2e64bd=_0x246bb0;let {unitID:_0x5cf11a}=_0x53a4f5,{redoCache:_0x3984e2}=this[_0x2e64bd(0x365)][_0x2e64bd(0x327)](_0x5cf11a)[_0x2e64bd(0xcb)](p[_0x2e64bd(0x155)])[_0x2e64bd(0x248)]();if(_0x3984e2[_0x2e64bd(0x192)]===0x0)return _0x53a4f5;let _0x5b7678=n['Tools'][_0x2e64bd(0x3cb)](_0x53a4f5[_0x2e64bd(0x287)][0x0]);for(let _0x30c52e=0x0;_0x30c52e<_0x3984e2[_0x2e64bd(0x192)];_0x30c52e++){let _0x96cd6a={'id':_0x2e64bd(0x109),'params':{..._0x3984e2[_0x30c52e]}},_0x2b8628=this['_transformService'][_0x2e64bd(0x3c3)](_0x5b7678,_0x96cd6a,!0x1);if((0x0,u[_0x2e64bd(0x182)])(_0x2b8628))throw _0x2b8628[_0x2e64bd(0x1af)];_0x5b7678=_0x2b8628[_0x2e64bd(0xd1)];}return{...n[_0x2e64bd(0x3b0)][_0x2e64bd(0x3cb)](_0x53a4f5),'mutations':[_0x5b7678]};}[_0x246bb0(0xd3)](_0x55730f){const _0x594f54=_0x246bb0;let {unitID:_0x3b7d4a}=_0x55730f,_0x539e9f=this[_0x594f54(0x365)][_0x594f54(0x327)](_0x3b7d4a)[_0x594f54(0xcb)](p[_0x594f54(0x155)]),{undoCache:_0x2f98ee,redoCache:_0x149e0c}=_0x539e9f[_0x594f54(0x248)]();if(_0x2f98ee[_0x594f54(0x192)]===0x0||_0x149e0c[_0x594f54(0x192)]===0x0)return;let _0xbb0856=[],_0x5bf3a8=[],_0x22eb4b=n[_0x594f54(0x3b0)][_0x594f54(0x3cb)](_0x55730f[_0x594f54(0x287)][0x0]),_0x1081a8=n['Tools'][_0x594f54(0x3cb)](_0x55730f[_0x594f54(0x287)][0x0]);for(let _0x3bfe1a=_0x2f98ee[_0x594f54(0x192)]-0x1;_0x3bfe1a>=0x0;_0x3bfe1a--){let _0x3ce8b1={'id':'doc.mutation.rich-text-editing','params':{..._0x2f98ee[_0x3bfe1a]}},_0x55528b={'id':'doc.mutation.rich-text-editing','params':{..._0x149e0c[_0x3bfe1a]}},_0x2caabd=this[_0x594f54(0x1d7)][_0x594f54(0x3c3)](_0x22eb4b,_0x3ce8b1,!0x1),_0x153b7e=this[_0x594f54(0x1d7)]['transformMutation'](_0x1081a8,_0x55528b,!0x1);if((0x0,u[_0x594f54(0x182)])(_0x2caabd))throw _0x2caabd['error'];if((0x0,u[_0x594f54(0x182)])(_0x153b7e))throw _0x153b7e['error'];_0xbb0856[_0x594f54(0x364)](_0x2caabd[_0x594f54(0x2e4)]['params']),_0x5bf3a8[_0x594f54(0x364)](_0x153b7e[_0x594f54(0x2e4)][_0x594f54(0xd0)]),_0x22eb4b=_0x2caabd[_0x594f54(0xd1)],_0x1081a8=_0x153b7e[_0x594f54(0xd1)];}_0x539e9f['setUndoRedoMutationParamsCache']({'undoCache':_0xbb0856,'redoCache':_0x5bf3a8});}[_0x246bb0(0x2ee)](_0xb94a31){const _0x15d230=_0x246bb0;let {unitID:_0x22cdfe}=_0xb94a31,_0x69ef6a=this[_0x15d230(0x365)][_0x15d230(0x327)](_0x22cdfe)[_0x15d230(0xcb)](p[_0x15d230(0x155)]),_0x3c2764=_0x69ef6a[_0x15d230(0x35b)]();if(_0x3c2764==null)return;let _0x46f474=[{'id':_0x15d230(0x109),'params':{'unitId':_0xb94a31[_0x15d230(0x2a7)],'actions':null,'textRanges':[_0x3c2764]}}],_0x42e568=this[_0x15d230(0x1d7)]['transformMutationsWithChangeset'](_0xb94a31,_0x46f474);if(!(0x0,u[_0x15d230(0x38a)])(_0x42e568))throw _0x42e568[_0x15d230(0x1af)];let _0x6b0c8f=_0x42e568['m2Prime'][0x0]['params']['textRanges'];Array[_0x15d230(0x2a9)](_0x6b0c8f)&&_0x6b0c8f[_0x15d230(0x192)]&&_0x69ef6a[_0x15d230(0x228)](_0x6b0c8f[0x0]);}};G=w([C(0x0,u['ITransformService']),C(0x1,m['IRenderManagerService'])],G);let K=class{constructor(_0x143605,_0x2f56e1,_0x204551){const _0x229055=_0x246bb0;this[_0x229055(0x257)]=_0x143605,this[_0x229055(0x1d7)]=_0x2f56e1,this[_0x229055(0x25b)]=_0x204551;}['transformStateCache'](_0x23a57c){const _0x4950ff=_0x246bb0;this[_0x4950ff(0x368)](_0x23a57c);}[_0x246bb0(0x314)](_0x5afa09){const _0x1d5e6f=_0x246bb0;let {unitID:_0x17d18e}=_0x5afa09,{collaboration:_0xe96e14}=this[_0x1d5e6f(0x25b)]['getStateCache'](_0x17d18e);if(_0xe96e14['length']===0x0)return _0x5afa09;let _0x5e1633=n[_0x1d5e6f(0x3b0)][_0x1d5e6f(0x3cb)](_0x5afa09[_0x1d5e6f(0x287)][0x0]);for(let _0x22c879=0x0;_0x22c879<_0xe96e14[_0x1d5e6f(0x192)];_0x22c879++){let _0x5cc26c={'id':_0x1d5e6f(0x109),'params':{'unitId':_0xe96e14[_0x22c879][_0x1d5e6f(0x193)],..._0xe96e14[_0x22c879][_0x1d5e6f(0x16a)]}},_0x5b9313=this[_0x1d5e6f(0x1d7)][_0x1d5e6f(0x3c3)](_0x5e1633,_0x5cc26c,!0x1);if((0x0,u[_0x1d5e6f(0x182)])(_0x5b9313))throw _0x5b9313[_0x1d5e6f(0x1af)];_0x5e1633=_0x5b9313[_0x1d5e6f(0xd1)];}return{...n[_0x1d5e6f(0x3b0)][_0x1d5e6f(0x3cb)](_0x5afa09),'mutations':[_0x5e1633]};}['_transformHistoryAndStateStack'](_0x29baaa){const _0x4b6cef=_0x246bb0;let {unitID:_0x27e4f6}=_0x29baaa,{history:_0x54249e,collaboration:_0x491d62}=this[_0x4b6cef(0x25b)][_0x4b6cef(0x26c)](_0x27e4f6);if(_0x54249e[_0x4b6cef(0x192)]===0x0&&_0x491d62[_0x4b6cef(0x192)]===0x0)return;let _0x41205c=[],_0x5c574f=[],_0x3197b0=n[_0x4b6cef(0x3b0)]['deepClone'](_0x29baaa[_0x4b6cef(0x287)][0x0]),_0xf77aad=n['Tools'][_0x4b6cef(0x3cb)](_0x29baaa[_0x4b6cef(0x287)][0x0]);for(let _0x1d8c72=_0x54249e[_0x4b6cef(0x192)]-0x1;_0x1d8c72>=0x0;_0x1d8c72--){let _0x263f48={'id':_0x4b6cef(0x109),'params':{'unitId':_0x54249e[_0x1d8c72][_0x4b6cef(0x193)],..._0x54249e[_0x1d8c72]['undoState']}},_0x2e48aa={'id':_0x4b6cef(0x109),'params':{'unitId':_0x54249e[_0x1d8c72][_0x4b6cef(0x193)],..._0x54249e[_0x1d8c72][_0x4b6cef(0x16a)]}},_0x1565ba=this[_0x4b6cef(0x1d7)][_0x4b6cef(0x3c3)](_0x3197b0,_0x263f48,!0x1),_0x141a08=this[_0x4b6cef(0x1d7)][_0x4b6cef(0x3c3)](_0xf77aad,_0x2e48aa,!0x1);if((0x0,u['isTransformMutationFailure'])(_0x1565ba))throw _0x1565ba[_0x4b6cef(0x1af)];if((0x0,u[_0x4b6cef(0x182)])(_0x141a08))throw _0x141a08['error'];_0x41205c[_0x4b6cef(0x364)]({..._0x54249e[_0x1d8c72],'undoState':_0x1565ba['m2Prime'][_0x4b6cef(0xd0)],'redoState':_0x141a08[_0x4b6cef(0x2e4)][_0x4b6cef(0xd0)]}),_0x3197b0=_0x1565ba['m1Prime'],_0xf77aad=_0x141a08[_0x4b6cef(0xd1)];}_0x3197b0=n['Tools']['deepClone'](_0x29baaa['mutations'][0x0]),_0xf77aad=n[_0x4b6cef(0x3b0)][_0x4b6cef(0x3cb)](_0x29baaa[_0x4b6cef(0x287)][0x0]);for(let _0xfe8a0e=_0x491d62[_0x4b6cef(0x192)]-0x1;_0xfe8a0e>=0x0;_0xfe8a0e--){let _0x43c697={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x491d62[_0xfe8a0e][_0x4b6cef(0x193)],..._0x491d62[_0xfe8a0e][_0x4b6cef(0x176)]}},_0x4cb316={'id':_0x4b6cef(0x109),'params':{'unitId':_0x491d62[_0xfe8a0e][_0x4b6cef(0x193)],..._0x491d62[_0xfe8a0e][_0x4b6cef(0x16a)]}},_0x10d5cf=this[_0x4b6cef(0x1d7)][_0x4b6cef(0x3c3)](_0x3197b0,_0x43c697,!0x1),_0x256732=this[_0x4b6cef(0x1d7)][_0x4b6cef(0x3c3)](_0xf77aad,_0x4cb316,!0x1);if((0x0,u[_0x4b6cef(0x182)])(_0x10d5cf))throw _0x10d5cf[_0x4b6cef(0x1af)];if((0x0,u[_0x4b6cef(0x182)])(_0x256732))throw _0x256732[_0x4b6cef(0x1af)];_0x5c574f[_0x4b6cef(0x364)]({..._0x491d62[_0xfe8a0e],'undoState':_0x10d5cf['m2Prime']['params'],'redoState':_0x256732['m2Prime']['params']}),_0x3197b0=_0x10d5cf[_0x4b6cef(0xd1)],_0xf77aad=_0x256732['m1Prime'];}this[_0x4b6cef(0x25b)][_0x4b6cef(0x271)](_0x27e4f6,{'history':_0x41205c,'collaboration':_0x5c574f});}};K=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x1,u['ITransformService']),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(f['DocStateChangeManagerService']))],K);let q=class{constructor(_0x251fd3,_0x20c7c8){const _0x38fc67=_0x246bb0;this[_0x38fc67(0x257)]=_0x251fd3,this[_0x38fc67(0x1d7)]=_0x20c7c8;}[_0x246bb0(0x2e7)](_0x3d88bf){const _0x546ebf=_0x246bb0;let _0x10ed61=this[_0x546ebf(0x257)][_0x546ebf(0x2e5)](f[_0x546ebf(0x397)]),_0x122d8a=_0x10ed61['getDocRanges']()??[];if(_0x122d8a['length']===0x0)return;let _0x57b4f8=_0x3d88bf['unitID'],_0x3ae7d9=[{'id':_0x546ebf(0x109),'params':{'unitId':_0x57b4f8,'actions':null,'textRanges':_0x122d8a}}],_0xd8b120=this['_transformService']['transformMutationsWithChangeset'](_0x3d88bf,_0x3ae7d9);if(!(0x0,u['isTransformMutationsWithChangesetSuccess'])(_0xd8b120))throw _0xd8b120[_0x546ebf(0x1af)];let _0x3e0f27=_0xd8b120['m2Prime'][0x0]['params'][_0x546ebf(0x250)];Array[_0x546ebf(0x2a9)](_0x3e0f27)&&_0x3e0f27[_0x546ebf(0x192)]&&_0x10ed61[_0x546ebf(0x25f)](_0x3e0f27,{'unitId':_0x57b4f8,'subUnitId':_0x57b4f8},!0x1);}};q=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(n['Injector'])),C(0x1,u['ITransformService'])],q);let J=class extends n[_0x246bb0(0x13d)]{constructor(_0x506687,_0x3247aa,_0x522494,_0x2dc3a6,_0x3dcbd6,_0x23b875,_0x502723){const _0x154940=_0x246bb0;super(),this['_collaborationController']=_0x506687,this[_0x154940(0x32e)]=_0x3247aa,this[_0x154940(0x15b)]=_0x522494,this[_0x154940(0x1fc)]=_0x2dc3a6,this['_docSyncEditingCollabCursorService']=_0x3dcbd6,this[_0x154940(0x16b)]=_0x23b875,this[_0x154940(0x3af)]=_0x502723,S(this,_0x154940(0x3bb),new i[(_0x154940(0x2b7))](t[_0x154940(0x335)][_0x154940(0x344)])),this['_initEntityListener']();}[_0x246bb0(0x127)](){const _0x3e1130=_0x246bb0;this[_0x3e1130(0x275)](this['_collaborationController']['entityInit$']['subscribe'](_0x1d3276=>{const _0x22794c=_0x3e1130;_0x1d3276 instanceof t[_0x22794c(0x32b)]&&_0x1d3276[_0x22794c(0x2ae)]({'onTransformIME':_0x2e665a=>this['_docTransformIMECacheService'][_0x22794c(0x399)](_0x2e665a),'onTransformState':_0x8f93b9=>this[_0x22794c(0x15b)]['transformStateCache'](_0x8f93b9),'onTransformSelections':_0x3f82e3=>this['_docTransformSelectionsService'][_0x22794c(0x2e7)](_0x3f82e3),'onSyncEditingCollabCursor':_0x115478=>this[_0x22794c(0x1ed)][_0x22794c(0x32f)](_0x115478),'onTransformRemoteChangesetByIMECache':_0x2013fc=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x2013fc),'onTransformRemoteChangesetByStateCache':_0x152b2b=>this[_0x22794c(0x15b)]['transformRemoteChangeset'](_0x152b2b)});}));}};J=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x35f)])),C(0x1,(0x0,n[_0x246bb0(0x1a6)])(G)),C(0x2,(0x0,n['Inject'])(K)),C(0x3,(0x0,n['Inject'])(q)),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(M)),C(0x5,r[_0x246bb0(0x1d1)]),C(0x6,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x266)]))],J);let Y=class extends n[_0x246bb0(0x13d)]{constructor(_0x582c80,_0x2a6cd5,_0x4e0fca,_0x568f38){const _0x19a751=_0x246bb0;super(),this[_0x19a751(0x257)]=_0x582c80,this[_0x19a751(0x1ac)]=_0x2a6cd5,this[_0x19a751(0x316)]=_0x4e0fca,this[_0x19a751(0x15a)]=_0x568f38,S(this,_0x19a751(0x36d),void 0x0),this['_init']();}[_0x246bb0(0x244)](){const _0x18d247=_0x246bb0;this['_initWindowErrorListener'](),this[_0x18d247(0x28e)](),this[_0x18d247(0x379)](),this['_initUserListener']();}[_0x246bb0(0x1e1)](){const _0x179e07=_0x246bb0;this[_0x179e07(0x275)](this[_0x179e07(0x15a)][_0x179e07(0x140)][_0x179e07(0x173)](_0x588f3a=>{const _0x1f3a0a=_0x179e07;this[_0x1f3a0a(0x36d)]=_0x588f3a==null?void 0x0:_0x588f3a['memberID'];}));}[_0x246bb0(0x214)](){const _0x38db9e=_0x246bb0;let _0xf704ee=_0x43d01a=>{const _0x29f5ce=_0x55a3;var _0x3755e2;this['_uploadLog']('error',_0x29f5ce(0x166)+_0x43d01a[_0x29f5ce(0x2dc)]+'\x20at\x20'+_0x43d01a[_0x29f5ce(0xe5)]+':'+_0x43d01a['lineno']+':'+_0x43d01a[_0x29f5ce(0x178)]+'\x0a'+(((_0x3755e2=_0x43d01a[_0x29f5ce(0x1af)])==null?void 0x0:_0x3755e2[_0x29f5ce(0x23d)])||''));};window['addEventListener'](_0x38db9e(0x1af),_0xf704ee),this[_0x38db9e(0x275)](()=>{const _0x5c1049=_0x38db9e;window[_0x5c1049(0x363)](_0x5c1049(0x1af),_0xf704ee);});}['_initUnhandledRejectionListener'](){const _0x37c4a8=_0x246bb0;let _0x5ea2f7=_0x225bea=>{const _0xffe116=_0x55a3;this[_0xffe116(0x303)]('error','[Unhandled\x20Rejection]:\x20'+_0x225bea[_0xffe116(0x2c4)]);};window[_0x37c4a8(0x33f)](_0x37c4a8(0x2d8),_0x5ea2f7),this[_0x37c4a8(0x275)](()=>{const _0x360814=_0x37c4a8;window[_0x360814(0x363)](_0x360814(0x2d8),_0x5ea2f7);});}[_0x246bb0(0x379)](){const _0x269c5c=_0x246bb0;let _0x4f4d9d=this['_logService'][_0x269c5c(0x1af)]['bind'](this[_0x269c5c(0x316)]);this[_0x269c5c(0x316)][_0x269c5c(0x1af)]=(..._0x2562c9)=>{const _0x313c11=_0x269c5c;let _0x3f68f3=_0x2562c9['map'](_0x4e2f64=>_0x4e2f64 instanceof Error?_0x4e2f64['message']+'\x0a'+_0x4e2f64[_0x313c11(0x23d)]:String(_0x4e2f64))[_0x313c11(0x3b4)]('\x20');this[_0x313c11(0x303)](_0x313c11(0x1af),'[LogService\x20Error]:\x20'+_0x3f68f3),_0x4f4d9d(..._0x2562c9);},this[_0x269c5c(0x275)](()=>{const _0x16f717=_0x269c5c;this[_0x16f717(0x316)][_0x16f717(0x1af)]=_0x4f4d9d;});}['_uploadLog'](_0x458543,_0x228a2c){const _0x572127=_0x246bb0;try{let _0x3b16ac={'userId':this[_0x572127(0x36d)],'logLabel':_0x458543,'content':_0x228a2c};this[_0x572127(0x1ac)][_0x572127(0x16d)]('/universer-api/frontend/logs',{'body':_0x3b16ac})['catch'](()=>{});}catch{}}};Y=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x1,(0x0,n[_0x246bb0(0x1a6)])(h[_0x246bb0(0x1ef)])),C(0x2,n[_0x246bb0(0x102)]),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(t['CollaborationSessionService']))],Y);function Ce({state$:_0x17804b,interactionBlocked$:_0x2792bf}){const _0x1bddcf=_0x246bb0;return(0x0,l[_0x1bddcf(0xff)])(l[_0x1bddcf(0x389)],{'children':[(0x0,r[_0x1bddcf(0x3ca)])(_0x2792bf,!0x1,!0x0)&&(0x0,l[_0x1bddcf(0x30f)])(_0x1bddcf(0x392),{'data-u-comp':_0x1bddcf(0x369),'aria-hidden':!0x0,'className':_0x1bddcf(0x108)}),(0x0,l[_0x1bddcf(0x30f)])(we,{'state$':_0x17804b})]});}function we({state$:_0x1960d5}){const _0x3f51ff=_0x246bb0;let _0x17c8c1=(0x0,r[_0x3f51ff(0x3ca)])(_0x1960d5,null,!0x0);return _0x17c8c1?(0x0,l[_0x3f51ff(0xff)])(_0x3f51ff(0x392),{'data-u-comp':_0x3f51ff(0x300),'role':_0x3f51ff(0x24e),'className':_0x3f51ff(0xd5),'children':[(0x0,l['jsx'])(s[_0x3f51ff(0x1ea)],{'className':_0x3f51ff(0xc6)}),(0x0,l['jsx'])(_0x3f51ff(0x126),{'children':_0x17c8c1['content']}),(0x0,l[_0x3f51ff(0x30f)])(o[_0x3f51ff(0xc4)],{'size':_0x3f51ff(0x2bf),'variant':'primary','onClick':()=>window[_0x3f51ff(0x2b5)]['reload'](),'children':_0x17c8c1['refreshLabel']})]}):null;}const X=_0x246bb0(0x298);let Z=class extends n['Disposable']{constructor(_0x52243b,_0x5590c3,_0x200b46,_0x5ba7a8,_0x3acb75,_0x9be66b,_0xc0031d,_0x1b97c5){const _0x62da8=_0x246bb0;super(),this[_0x62da8(0x37c)]=_0x52243b,this[_0x62da8(0x16b)]=_0x5590c3,this['_localeService']=_0x200b46,this['_injector']=_0x5ba7a8,this[_0x62da8(0x377)]=_0x3acb75,this[_0x62da8(0x28a)]=_0xc0031d,this['_urlService']=_0x1b97c5,S(this,'_timeoutState$',new i[(_0x62da8(0x2b7))](null)),S(this,'_interactionBlocked$',new i[(_0x62da8(0x2b7))](!0x1)),S(this,_0x62da8(0x12e),new Set()),S(this,_0x62da8(0x241),new Map()),S(this,_0x62da8(0xd6),new Set()),S(this,_0x62da8(0x10b),new Map()),S(this,_0x62da8(0x232),void 0x0),S(this,_0x62da8(0x1cf),void 0x0),S(this,_0x62da8(0x29b),void 0x0),S(this,_0x62da8(0x39f),this[_0x62da8(0x1a5)]['asObservable']());let _0x1820d5=()=>(0x0,c[_0x62da8(0x34a)])(Ce,{'state$':this[_0x62da8(0x39f)],'interactionBlocked$':this[_0x62da8(0x304)]});this[_0x62da8(0x275)](_0x9be66b['registerComponent'](r[_0x62da8(0x265)][_0x62da8(0xf2)],()=>(0x0,r[_0x62da8(0x3ad)])(_0x1820d5,this[_0x62da8(0x257)]))),this['disposeWithMe'](this['_snapshotLoadingService'][_0x62da8(0x323)][_0x62da8(0x173)](_0x50667b=>{const _0x1517ac=_0x62da8;this[_0x1517ac(0x10b)]=_0x50667b,_0x50667b['forEach'](_0x561c1b=>{const _0x747512=_0x1517ac;this[_0x747512(0xeb)](_0x561c1b),this[_0x747512(0x2cc)](_0x561c1b);});})),this['disposeWithMe'](this['_urlService'][_0x62da8(0x318)]['subscribe'](()=>{const _0x165cd3=_0x62da8;this[_0x165cd3(0x10b)][_0x165cd3(0x34f)](_0x33eb28=>{const _0x5c23a1=_0x165cd3;this[_0x5c23a1(0xeb)](_0x33eb28),this[_0x5c23a1(0x2cc)](_0x33eb28);});}));}[_0x246bb0(0x20f)](){const _0x2b1c22=_0x246bb0;var _0x52d94b;if(this[_0x2b1c22(0x12e)][_0x2b1c22(0x34f)](_0x4966f5=>this['_messageService'][_0x2b1c22(0xe9)](_0x4966f5)),this[_0x2b1c22(0x12e)]['clear'](),this['_previewUnitId']){var _0x4d93f2;(_0x4d93f2=this[_0x2b1c22(0x29b)])==null||_0x4d93f2[_0x2b1c22(0x1b4)](this['_previewUnitId']);}this['_previewUnitId']=void 0x0,this[_0x2b1c22(0x241)][_0x2b1c22(0x34f)](({timeoutId:_0x1583fa})=>clearTimeout(_0x1583fa)),this[_0x2b1c22(0x241)][_0x2b1c22(0x299)](),(_0x52d94b=this[_0x2b1c22(0x1cf)])==null||_0x52d94b['dispose'](),this['_shortcutBlock']=void 0x0,this[_0x2b1c22(0x1a5)][_0x2b1c22(0x1b3)](),this['_interactionBlocked$'][_0x2b1c22(0x1b3)](),super['dispose']();}[_0x246bb0(0xeb)](_0xb28f05){const _0x30adaf=_0x246bb0;let _0x50afd4=''+X+_0xb28f05['unitId'];if(_0xb28f05[_0x30adaf(0x2f7)]===u['SnapshotLoadStage'][_0x30adaf(0x398)]){if(this[_0x30adaf(0x21a)](_0xb28f05[_0x30adaf(0x193)]),this[_0x30adaf(0x34c)](_0xb28f05[_0x30adaf(0x193)])&&this[_0x30adaf(0x232)]===_0xb28f05[_0x30adaf(0x193)]){this[_0x30adaf(0x16b)][_0x30adaf(0x2fe)]({'id':_0x50afd4,'type':o[_0x30adaf(0x3d2)][_0x30adaf(0x20e)],'duration':0x1/0x0,'content':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.loadingSheet')}),this[_0x30adaf(0x12e)][_0x30adaf(0x346)](_0x50afd4);return;}this[_0x30adaf(0x29e)](_0xb28f05[_0x30adaf(0x193)]),this['_messageService'][_0x30adaf(0xe9)](_0x50afd4),this[_0x30adaf(0x12e)][_0x30adaf(0x296)](_0x50afd4);return;}if(!this['_isVisibleUnit'](_0xb28f05['unitId'])){this[_0x30adaf(0x21a)](_0xb28f05[_0x30adaf(0x193)]),this[_0x30adaf(0x29e)](_0xb28f05[_0x30adaf(0x193)]),this[_0x30adaf(0x16b)][_0x30adaf(0xe9)](_0x50afd4),this[_0x30adaf(0x12e)][_0x30adaf(0x296)](_0x50afd4);return;}if(_0xb28f05[_0x30adaf(0x2f7)]===u[_0x30adaf(0x2f8)][_0x30adaf(0x1fd)]){this[_0x30adaf(0x21a)](_0xb28f05['unitId']),this[_0x30adaf(0x29e)](_0xb28f05['unitId']),this[_0x30adaf(0x16b)]['show']({'id':_0x50afd4,'type':o[_0x30adaf(0x3d2)]['Error'],'content':this[_0x30adaf(0x3af)]['t'](_0x30adaf(0x1a2))}),this[_0x30adaf(0x12e)][_0x30adaf(0x296)](_0x50afd4);return;}if(_0xb28f05[_0x30adaf(0x2f7)]!==u['SnapshotLoadStage'][_0x30adaf(0x183)]||_0xb28f05[_0x30adaf(0x1c9)]<=0xa){this[_0x30adaf(0x21a)](_0xb28f05[_0x30adaf(0x193)]),this['_messageService'][_0x30adaf(0xe9)](_0x50afd4),this['_messageIds']['delete'](_0x50afd4);return;}this['_watchBlockProgress'](_0xb28f05)||(this[_0x30adaf(0x16b)][_0x30adaf(0x2fe)]({'id':_0x50afd4,'type':o['MessageType'][_0x30adaf(0x20e)],'duration':0x1/0x0,'content':this[_0x30adaf(0x3af)]['t'](_0x30adaf(0x148))+'\x20'+_0xb28f05[_0x30adaf(0x23b)]+'/'+_0xb28f05[_0x30adaf(0x1c9)]}),this[_0x30adaf(0x12e)][_0x30adaf(0x346)](_0x50afd4));}[_0x246bb0(0x337)](_0x3a9296){const _0x1b28a0=_0x246bb0;let _0x5a599d=this[_0x1b28a0(0x241)][_0x1b28a0(0x2e5)](_0x3a9296['unitId']);if((_0x5a599d==null?void 0x0:_0x5a599d['loadedBlocks'])===_0x3a9296[_0x1b28a0(0x23b)])return _0x5a599d[_0x1b28a0(0xe1)];this[_0x1b28a0(0x21a)](_0x3a9296[_0x1b28a0(0x193)]);let _0x21703a=setTimeout(()=>{const _0x377aac=_0x1b28a0;let _0x5e3bc5=this['_blockProgressWatches'][_0x377aac(0x2e5)](_0x3a9296[_0x377aac(0x193)]);if(!_0x5e3bc5||_0x5e3bc5[_0x377aac(0x1ad)]!==_0x21703a)return;_0x5e3bc5['timedOut']=!0x0;let _0x2dc4c1=''+X+_0x3a9296[_0x377aac(0x193)];this[_0x377aac(0x16b)]['remove'](_0x2dc4c1),this['_messageIds'][_0x377aac(0x296)](_0x2dc4c1),this['_timeoutState$'][_0x377aac(0x264)]({'unitId':_0x3a9296[_0x377aac(0x193)],'content':this[_0x377aac(0x3af)]['t'](_0x377aac(0x23e),String(_0x3a9296[_0x377aac(0x23b)]),String(_0x3a9296['totalBlocks'])),'refreshLabel':this[_0x377aac(0x3af)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this['_blockProgressWatches'][_0x1b28a0(0x2f4)](_0x3a9296['unitId'],{'loadedBlocks':_0x3a9296[_0x1b28a0(0x23b)],'timedOut':!0x1,'timeoutId':_0x21703a}),!0x1;}['_clearBlockProgressWatch'](_0x3f366d){const _0x2e9255=_0x246bb0;let _0x46735f=this[_0x2e9255(0x241)][_0x2e9255(0x2e5)](_0x3f366d);_0x46735f&&(clearTimeout(_0x46735f[_0x2e9255(0x1ad)]),this['_blockProgressWatches']['delete'](_0x3f366d),this[_0x2e9255(0x29e)](_0x3f366d));}[_0x246bb0(0x29e)](_0x42c139){const _0x526ef4=_0x246bb0;var _0x3d7ca5;((_0x3d7ca5=this['_timeoutState$']['value'])==null?void 0x0:_0x3d7ca5['unitId'])===_0x42c139&&this[_0x526ef4(0x1a5)][_0x526ef4(0x264)](null);}[_0x246bb0(0x2cc)](_0x5e9a95){const _0x49cded=_0x246bb0;if(_0x5e9a95[_0x49cded(0x2f7)]===u['SnapshotLoadStage']['LOADING_SNAPSHOT']&&this[_0x49cded(0xd6)][_0x49cded(0x296)](_0x5e9a95[_0x49cded(0x193)]),!this['_isVisibleUnit'](_0x5e9a95['unitId'])){this['_hidePreview'](_0x5e9a95[_0x49cded(0x193)]);return;}if(_0x5e9a95[_0x49cded(0x2f7)]===u['SnapshotLoadStage']['ERROR']||_0x5e9a95[_0x49cded(0x1c9)]<=0xa){this[_0x49cded(0x1b7)](_0x5e9a95[_0x49cded(0x193)]);return;}if(_0x5e9a95[_0x49cded(0x2f7)]===u['SnapshotLoadStage'][_0x49cded(0x398)]){this['_handoffPreview'](_0x5e9a95[_0x49cded(0x193)]);return;}if(_0x5e9a95[_0x49cded(0x2f7)]===u[_0x49cded(0x2f8)][_0x49cded(0x183)]&&_0x5e9a95['workbookShell']&&_0x5e9a95[_0x49cded(0x321)]){let _0x3a2a3c=this[_0x49cded(0x332)]();if(!_0x3a2a3c)return;this['_previewUnitId']&&this[_0x49cded(0x232)]!==_0x5e9a95['unitId']&&this[_0x49cded(0x1b7)](this[_0x49cded(0x232)]),_0x3a2a3c[_0x49cded(0x152)](_0x5e9a95[_0x49cded(0x117)],_0x5e9a95[_0x49cded(0x321)]),this[_0x49cded(0x232)]=_0x5e9a95['unitId'],this[_0x49cded(0x382)](!0x0),_0x5e9a95[_0x49cded(0x233)]&&_0x3a2a3c['show'](_0x5e9a95[_0x49cded(0x117)],_0x5e9a95['activeSheetId'],_0x5e9a95[_0x49cded(0x2a6)]);}}[_0x246bb0(0x3b5)](_0x466109){const _0x3060ea=_0x246bb0;if(this[_0x3060ea(0x232)]!==_0x466109||this[_0x3060ea(0xd6)][_0x3060ea(0x2eb)](_0x466109))return;let _0x3757b9=this[_0x3060ea(0x29b)];_0x3757b9&&(this[_0x3060ea(0xd6)]['add'](_0x466109),_0x3757b9[_0x3060ea(0x215)](_0x466109,0x2710)[_0x3060ea(0x27e)](_0x3177dc=>{const _0x17fa8b=_0x3060ea;if(this[_0x17fa8b(0x232)]!==_0x466109)return;if(_0x3177dc){let _0x406b9e=''+X+_0x466109;this['_messageService']['remove'](_0x406b9e),this[_0x17fa8b(0x12e)][_0x17fa8b(0x296)](_0x406b9e),this[_0x17fa8b(0x232)]=void 0x0,this[_0x17fa8b(0x382)](!0x1);return;}let _0x1f9ac0=''+X+_0x466109;this[_0x17fa8b(0x16b)]['remove'](_0x1f9ac0),this[_0x17fa8b(0x12e)][_0x17fa8b(0x296)](_0x1f9ac0),this[_0x17fa8b(0x1a5)][_0x17fa8b(0x264)]({'unitId':_0x466109,'content':this[_0x17fa8b(0x3af)]['t'](_0x17fa8b(0x1a2)),'refreshLabel':this[_0x17fa8b(0x3af)]['t'](_0x17fa8b(0x2ef))});}));}['_hidePreview'](_0x5c56ca){const _0x8d3fee=_0x246bb0;var _0x4b1500;this[_0x8d3fee(0x232)]===_0x5c56ca&&((_0x4b1500=this[_0x8d3fee(0x29b)])==null||_0x4b1500['hide'](_0x5c56ca),this[_0x8d3fee(0x232)]=void 0x0,this[_0x8d3fee(0x382)](!0x1));}[_0x246bb0(0x382)](_0x2b54ac){const _0x32624e=_0x246bb0;if(_0x2b54ac!==this[_0x32624e(0x304)][_0x32624e(0x1b1)]){if(_0x2b54ac)this[_0x32624e(0x1cf)]=this[_0x32624e(0x28a)][_0x32624e(0x35c)]();else{var _0x4977b3;(_0x4977b3=this[_0x32624e(0x1cf)])==null||_0x4977b3['dispose'](),this['_shortcutBlock']=void 0x0;}this[_0x32624e(0x304)]['next'](_0x2b54ac);}}[_0x246bb0(0x34c)](_0x445b3c){const _0x1ccdac=_0x246bb0;let _0xd2e9fd=this[_0x1ccdac(0x15d)][_0x1ccdac(0x357)]('unit');return!_0xd2e9fd||_0xd2e9fd===_0x445b3c;}[_0x246bb0(0x332)](){const _0x5639eb=_0x246bb0;return this['_sheetLoadingRenderService']?this[_0x5639eb(0x29b)]:(this[_0x5639eb(0x377)][_0x5639eb(0x2e1)](n[_0x5639eb(0xd2)]['UNIVER_SHEET']),this[_0x5639eb(0x257)]['has'](y['ISheetLoadingRenderService'])&&(this['_sheetLoadingRenderService']=this[_0x5639eb(0x257)]['get'](y[_0x5639eb(0x11e)])),this[_0x5639eb(0x29b)]);}};Z=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(u[_0x246bb0(0x19c)])),C(0x1,r[_0x246bb0(0x1d1)]),C(0x2,(0x0,n['Inject'])(n[_0x246bb0(0x266)])),C(0x3,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x37f)])),C(0x5,r[_0x246bb0(0x235)]),C(0x6,r[_0x246bb0(0x34b)]),C(0x7,U)],Z);function Te(_0x96a0c1){const _0x3a7af8=_0x246bb0;var _0x487be8,_0x347adc;let _0x6e848=(_0x487be8=_0x96a0c1[_0x3a7af8(0x153)])==null?void 0x0:_0x487be8[_0x3a7af8(0x2f7)],_0x69a051=((_0x347adc=_0x96a0c1[_0x3a7af8(0x153)])==null?void 0x0:_0x347adc[_0x3a7af8(0x255)])||0x0;return _0x6e848===g['FormulaExecuteStageType'][_0x3a7af8(0x177)]&&_0x69a051>0x0;}function Ee(_0x36cced){const _0x2c790a=_0x246bb0;return _0x36cced[_0x2c790a(0x1de)]===g['FormulaExecutedStateType'][_0x2c790a(0x29f)];}let Q=class extends n[_0x246bb0(0x13d)]{constructor(_0x44451c,_0x152511,_0x22bcf7,_0x580ab1,_0x474af8,_0x13f7da,_0x3ef3a6){const _0x484bed=_0x246bb0;super(),this['_messageService']=_0x44451c,this[_0x484bed(0x1e4)]=_0x152511,this[_0x484bed(0xf3)]=_0x22bcf7,this[_0x484bed(0x1ac)]=_0x580ab1,this[_0x484bed(0x123)]=_0x474af8,this[_0x484bed(0x316)]=_0x13f7da,this[_0x484bed(0x3af)]=_0x3ef3a6,S(this,_0x484bed(0xe8),null),S(this,'_maxFormulaLimit',0x0),S(this,_0x484bed(0xd9),0x0),S(this,_0x484bed(0x199),[]),S(this,_0x484bed(0x1d9),0x0),this[_0x484bed(0x1b5)]();}[_0x246bb0(0x1b5)](){const _0x70777=_0x246bb0;this[_0x70777(0x275)](this[_0x70777(0x1e4)]['beforeCommandExecuted']((_0x133ef3,_0x521989)=>{const _0x42df81=_0x70777;if(_0x133ef3['id']!==g['SetFormulaCalculationStartMutation']['id'])return;let _0x546faa=_0x133ef3[_0x42df81(0xd0)];if(this[_0x42df81(0x231)](_0x546faa[_0x42df81(0x267)]??[])&&!this['_checkCalculationAvailable']())throw this[_0x42df81(0x143)](_0x133ef3,_0x521989),this[_0x42df81(0x1ba)](),new n[(_0x42df81(0x190))]();})),this[_0x70777(0x275)](this['_commandService'][_0x70777(0x3c1)]((_0x5d6916,_0x48cb21)=>{const _0x38436a=_0x70777;if(_0x5d6916['id']!==g[_0x38436a(0xe6)]['id'])return;let _0x5ed3ac=_0x5d6916[_0x38436a(0xd0)];if(Te(_0x5ed3ac)){let _0x2ad79a=(0x0,n[_0x38436a(0x16f)])();this[_0x38436a(0x199)][_0x38436a(0x111)](_0x2ad79a),this[_0x38436a(0x2fc)](_0x2ad79a);}else{if(Ee(_0x5ed3ac)&&this['_taskIds'][_0x38436a(0x192)]>0x0){let _0x476bcd=this[_0x38436a(0x199)][_0x38436a(0x19f)]();this[_0x38436a(0x367)](_0x476bcd);}}}));}[_0x246bb0(0x20f)](){const _0x5d01ce=_0x246bb0;super[_0x5d01ce(0x20f)](),this[_0x5d01ce(0x2d0)](),this[_0x5d01ce(0x199)]=[],this[_0x5d01ce(0xd9)]=0x0,this[_0x5d01ce(0x196)]=0x0,this[_0x5d01ce(0x1d9)]=0x0;}async[_0x246bb0(0x143)](_0x5803e4,_0x3eac3a){const _0x593db6=_0x246bb0;for(let _0x2c1d43=0x0;_0x2c1d43<0x1e;_0x2c1d43++)try{if(await this[_0x593db6(0x1f0)](),this[_0x593db6(0x1c5)]()){this[_0x593db6(0x1d4)](_0x5803e4,_0x3eac3a),this[_0x593db6(0x16b)][_0x593db6(0x2fe)]({'content':this[_0x593db6(0x3af)]['t'](_0x593db6(0x393)),'type':o[_0x593db6(0x3d2)][_0x593db6(0x2ea)]});return;}await new Promise(_0x571221=>{const _0x5e1467=_0x593db6;this[_0x5e1467(0xe8)]=window[_0x5e1467(0x3c4)](_0x571221,0x3e8);});}catch(_0x3f79ea){this[_0x593db6(0x316)][_0x593db6(0x1af)](_0x3f79ea);}this['_messageService']['show']({'content':this[_0x593db6(0x3af)]['t'](_0x593db6(0x2fb)),'type':o[_0x593db6(0x3d2)][_0x593db6(0x212)]});}[_0x246bb0(0x1d4)](_0x34c3bd,_0x2801f8){const _0x11a81f=_0x246bb0;try{this[_0x11a81f(0x1e4)][_0x11a81f(0x136)](_0x34c3bd['id'],_0x34c3bd[_0x11a81f(0xd0)],_0x2801f8);}catch(_0x246a55){this['_logService'][_0x11a81f(0x1af)](_0x246a55);}}['_setFormulaLimitStatus'](_0x4ddce5,_0x101f69){const _0x148c92=_0x246bb0;_0x101f69<this[_0x148c92(0x1d9)]||(this[_0x148c92(0x1d9)]=_0x101f69,this[_0x148c92(0x196)]=Number[_0x148c92(0x360)](_0x4ddce5[_0x148c92(0x23a)]),this[_0x148c92(0xd9)]=Number[_0x148c92(0x360)](_0x4ddce5[_0x148c92(0xdb)]));}async[_0x246bb0(0x2fc)](_0x54b3cf){const _0x1f183f=_0x246bb0;let _0x38bbd2=Date[_0x1f183f(0x1d2)]();try{var _0x146c3d,_0x39d4ea;let _0x3a9b33=((_0x146c3d=this[_0x1f183f(0xf3)][_0x1f183f(0x2da)](t[_0x1f183f(0x139)]))==null?void 0x0:_0x146c3d[_0x1f183f(0x256)])||_0x1f183f(0x100),_0x531725=(await this[_0x1f183f(0x1ac)][_0x1f183f(0x16d)](_0x3a9b33,{'body':JSON[_0x1f183f(0x146)]({'taskId':_0x54b3cf})}))['body'];if(((_0x39d4ea=_0x531725['error'])==null?void 0x0:_0x39d4ea[_0x1f183f(0x1c2)])!==b['ErrorCode']['OK'])return;this[_0x1f183f(0x145)](_0x531725['limitInfo'],_0x38bbd2);}catch(_0x3bdf3b){this['_logService'][_0x1f183f(0x1af)](_0x3bdf3b);}}async['_getFormulaLimitStatus'](_0x3ce376){const _0x470d82=_0x246bb0;let _0xd26ce8=Date[_0x470d82(0x1d2)]();try{var _0x4f0192,_0x4fd795;let _0x191d94=((_0x4f0192=this[_0x470d82(0xf3)][_0x470d82(0x2da)](t[_0x470d82(0x139)]))==null?void 0x0:_0x4f0192[_0x470d82(0x315)])||'/universer-api/license/formula/limit/status',_0x459201=_0x3ce376?_0x191d94+_0x470d82(0x12f)+encodeURIComponent(_0x3ce376):_0x191d94,_0x264288=(await this[_0x470d82(0x1ac)][_0x470d82(0x2e5)](_0x459201))[_0x470d82(0x391)];if(((_0x4fd795=_0x264288['error'])==null?void 0x0:_0x4fd795['code'])!==b['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x264288[_0x470d82(0x216)],_0xd26ce8);}catch(_0xe7c5fe){this['_logService'][_0x470d82(0x1af)](_0xe7c5fe);}}async['_releaseCalculationLimit'](_0x4984a3){const _0x2522cf=_0x246bb0;let _0x1b4dfb=Date[_0x2522cf(0x1d2)]();try{var _0x3ff1d0,_0x3c0b70;let _0xf0aa4f=((_0x3ff1d0=this[_0x2522cf(0xf3)]['getConfig'](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3ff1d0[_0x2522cf(0x2bb)])||_0x2522cf(0x1fa),_0x316fd4=(await this['_httpService'][_0x2522cf(0x16d)](_0xf0aa4f,{'body':JSON[_0x2522cf(0x146)]({'taskId':_0x4984a3})}))[_0x2522cf(0x391)];if(((_0x3c0b70=_0x316fd4[_0x2522cf(0x1af)])==null?void 0x0:_0x3c0b70[_0x2522cf(0x1c2)])!==b[_0x2522cf(0x27a)]['OK'])return;this[_0x2522cf(0x145)](_0x316fd4[_0x2522cf(0x216)],_0x1b4dfb);}catch(_0x54ffb4){this['_logService']['error'](_0x54ffb4);}}[_0x246bb0(0x1c5)](){const _0x4fbd94=_0x246bb0;return this[_0x4fbd94(0x196)]===0x0||this[_0x4fbd94(0x196)]-this[_0x4fbd94(0xd9)]>0x0;}[_0x246bb0(0x2d0)](){const _0x37ded3=_0x246bb0;this['_pollingInterval']&&=(clearTimeout(this[_0x37ded3(0xe8)]),null);}['_showGuardMessage'](){const _0x3421b8=_0x246bb0;this[_0x3421b8(0x16b)][_0x3421b8(0x2fe)]({'content':this[_0x3421b8(0x3af)]['t'](_0x3421b8(0x386)),'type':o[_0x3421b8(0x3d2)][_0x3421b8(0x20e)]});}['_hasFormulaInDirtyRanges'](_0x1fcd04){const _0x451bc9=_0x246bb0;for(let _0x5add5e of _0x1fcd04){let {unitId:_0x421afb,sheetId:_0x253dcd,range:_0x505843}=_0x5add5e,_0x2a0cd5=this[_0x451bc9(0x123)][_0x451bc9(0x2cf)](_0x421afb,n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x2a0cd5)continue;let _0x4a00b3=_0x2a0cd5[_0x451bc9(0x105)](_0x253dcd);if(!_0x4a00b3)continue;let _0x37713a=_0x4a00b3['getCellMatrix']();for(let _0x3567f7=_0x505843[_0x451bc9(0x2c8)];_0x3567f7<=_0x505843[_0x451bc9(0x1db)];_0x3567f7++)for(let _0x572bee=_0x505843['startColumn'];_0x572bee<=_0x505843[_0x451bc9(0x269)];_0x572bee++){let _0x241178=_0x37713a[_0x451bc9(0x288)](_0x3567f7,_0x572bee);if(_0x241178&&((0x0,n[_0x451bc9(0x16c)])(_0x241178['f'])||(0x0,n[_0x451bc9(0x273)])(_0x241178['si'])))return!0x0;}}return!0x1;}};Q=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(r[_0x246bb0(0x1d1)])),C(0x1,n[_0x246bb0(0x186)]),C(0x2,n[_0x246bb0(0x320)]),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(h[_0x246bb0(0x1ef)])),C(0x4,n[_0x246bb0(0x324)]),C(0x5,n[_0x246bb0(0x102)]),C(0x6,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x266)]))],Q);let De=class extends n[_0x246bb0(0x13d)]{constructor(_0x5047d2,_0x415fe7,_0x790e67){const _0x4a56ca=_0x246bb0;super(),this[_0x4a56ca(0xf3)]=_0x5047d2,this['_localStorageService']=_0x415fe7,this[_0x4a56ca(0x22d)]=_0x790e67,S(this,_0x4a56ca(0x11b),new Map()),S(this,_0x4a56ca(0x14b),new Map()),S(this,_0x4a56ca(0x3ce),!0x1);}[_0x246bb0(0x3b2)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x220892=_0x246bb0;this[_0x220892(0x3ce)]=!0x1;}get[_0x246bb0(0x3ab)](){const _0x1561db=_0x246bb0;return this[_0x1561db(0x14b)];}[_0x246bb0(0x20f)](){const _0x17c7bf=_0x246bb0;this[_0x17c7bf(0x373)]()[_0x17c7bf(0x27e)](()=>super[_0x17c7bf(0x20f)]());}async[_0x246bb0(0x39a)](_0x410b25){const _0x7ee850=_0x246bb0;return this[_0x7ee850(0x3ce)]?null:this[_0x7ee850(0x12b)][_0x7ee850(0x2b9)]((0x0,t[_0x7ee850(0x115)])(_0x410b25));}async[_0x246bb0(0x268)](_0x4ead58,_0x4135d8){const _0x193f5a=_0x246bb0;return!!this[_0x193f5a(0x12b)][_0x193f5a(0x110)]((0x0,t[_0x193f5a(0x115)])(_0x4ead58),_0x4135d8);}async[_0x246bb0(0x302)](_0x5c6e45,_0x2a2a02){const _0x517f04=_0x246bb0;let _0x506483=this[_0x517f04(0x11b)]['get'](_0x5c6e45)??await this[_0x517f04(0x12b)][_0x517f04(0x2b9)]((0x0,t['getLocalCacheKey'])(_0x5c6e45));if(!_0x506483)return;let _0x1d6247=Date['now'](),_0x26e735=new Date(_0x1d6247)[_0x517f04(0x2e2)]();await this[_0x517f04(0x12b)][_0x517f04(0x110)]((0x0,t[_0x517f04(0x115)])(_0x5c6e45)+_0x517f04(0x322)+_0x1d6247,{'reason':_0x2a2a02,'createdAt':_0x26e735,'data':_0x506483});}[_0x246bb0(0x226)](_0x19c4a9,_0x5d2c0f,_0x7749b4,_0x73d34c){const _0xdcfd05=_0x246bb0;let _0x4aa080=this[_0xdcfd05(0x22d)][_0xdcfd05(0x202)](_0x19c4a9);this[_0xdcfd05(0x11b)][_0xdcfd05(0x2f4)](_0x19c4a9,{'unitID':_0x19c4a9,'type':_0x5d2c0f,'awaitingChangeset':_0x7749b4,'mutations':_0x73d34c,'rev':_0x4aa080}),this['_saveTaskMap']['has'](_0x19c4a9)||this[_0xdcfd05(0x352)](_0x19c4a9);}[_0x246bb0(0x352)](_0x22d3d1){const _0x567560=_0x246bb0;let _0x196351=this[_0x567560(0x329)]();_0x196351===0x0?this[_0x567560(0x3b9)](_0x22d3d1):this[_0x567560(0x14b)]['set'](_0x22d3d1,window[_0x567560(0x3c4)](()=>this['_saveCache'](_0x22d3d1),_0x196351));}['_getSaveTimeout'](){const _0x4bd3dc=_0x246bb0;return this[_0x4bd3dc(0xf3)][_0x4bd3dc(0x2da)](t[_0x4bd3dc(0x132)])??t['LOCAL_CACHE_INTERVAL'];}[_0x246bb0(0x3b9)](_0x8b99db){const _0xec4691=_0x246bb0;let _0x5a71d7=this[_0xec4691(0x14b)][_0xec4691(0x2e5)](_0x8b99db);return _0x5a71d7!==void 0x0&&window[_0xec4691(0x2f1)](_0x5a71d7),this[_0xec4691(0x12b)][_0xec4691(0x110)]((0x0,t[_0xec4691(0x115)])(_0x8b99db),this[_0xec4691(0x11b)][_0xec4691(0x2e5)](_0x8b99db))['then'](()=>this[_0xec4691(0x14b)][_0xec4691(0x296)](_0x8b99db));}async[_0x246bb0(0x373)](){const _0x4c2c7b=_0x246bb0;let _0x428245=[];this[_0x4c2c7b(0x14b)]['forEach']((_0x40463b,_0x4d82b0)=>{const _0x559d6e=_0x4c2c7b;window['clearTimeout'](_0x40463b),_0x428245[_0x559d6e(0x111)](this[_0x559d6e(0x3b9)](_0x4d82b0)[_0x559d6e(0x27e)](()=>{const _0x592c6b=_0x559d6e;this[_0x592c6b(0x14b)][_0x592c6b(0x296)](_0x4d82b0);}));}),await Promise[_0x4c2c7b(0x1b0)](_0x428245);}};De=w([C(0x0,n[_0x246bb0(0x320)]),C(0x1,n['ILocalStorageService']),C(0x2,(0x0,n['Inject'])(u[_0x246bb0(0x381)]))],De);var Oe=class extends n[_0x246bb0(0x2db)]{constructor(){const _0x3a3693=_0x246bb0;super(),S(this,_0x3a3693(0x318),void 0x0),this['urlChange$']=(0x0,i[_0x3a3693(0x15e)])(window,_0x3a3693(0x21c))['pipe']((0x0,i[_0x3a3693(0x119)])(this['dispose$']),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i[_0x3a3693(0xe4)])(void 0x0));}[_0x246bb0(0x157)](_0x16de3d,_0x5b367a,_0x172a9b=!0x1){const _0x18dd64=_0x246bb0;let _0x159d01=new URL(window[_0x18dd64(0x2b5)][_0x18dd64(0x308)]);_0x159d01[_0x18dd64(0x2b3)]['set'](_0x16de3d,_0x5b367a),_0x172a9b?window[_0x18dd64(0x104)][_0x18dd64(0x259)]('','',_0x159d01[_0x18dd64(0xc3)]()):window[_0x18dd64(0x104)][_0x18dd64(0x339)]('','',_0x159d01[_0x18dd64(0xc3)]());}[_0x246bb0(0x395)](_0xf37fd5,_0x5907bd=!0x1){const _0x57e4c9=_0x246bb0;let _0x40bbc6=new URL(window[_0x57e4c9(0x2b5)]['href']);_0x40bbc6['searchParams']['delete'](_0xf37fd5),_0x5907bd?window[_0x57e4c9(0x104)][_0x57e4c9(0x259)]('','',_0x40bbc6[_0x57e4c9(0xc3)]()):window[_0x57e4c9(0x104)][_0x57e4c9(0x339)]('','',_0x40bbc6[_0x57e4c9(0xc3)]());}[_0x246bb0(0x357)](_0x15b217){const _0x38fc7e=_0x246bb0;return new URL(window[_0x38fc7e(0x2b5)][_0x38fc7e(0x308)])[_0x38fc7e(0x2b3)]['get'](_0x15b217)??void 0x0;}};let $=class extends n['Plugin']{constructor(_0x50578e=ue,_0x15356a,_0x5ba9b3,_0x2e94c2){const _0x32c45c=_0x246bb0;super(),this['_config']=_0x50578e,this[_0x32c45c(0x365)]=_0x15356a,this[_0x32c45c(0x257)]=_0x5ba9b3,this[_0x32c45c(0xf3)]=_0x2e94c2;let {..._0x292814}=(0x0,n[_0x32c45c(0x2ff)])({},ue,this[_0x32c45c(0x20c)]);this['_configService'][_0x32c45c(0x1e9)](_0x32c45c(0x200),_0x292814);}[_0x246bb0(0x3aa)](){const _0x231a42=_0x246bb0;this[_0x231a42(0x1d5)](),this[_0x231a42(0x17e)]();}[_0x246bb0(0x1ff)](){const _0x1c3c55=_0x246bb0;this[_0x1c3c55(0x20d)]();}[_0x246bb0(0x1d5)](){const _0x3faaa5=_0x246bb0;var _0x584727;let _0x449797=[[A],[Q],[U,{'useClass':Oe}],[h['ISocketService'],{'useClass':h[_0x3faaa5(0x353)]}],[t[_0x3faaa5(0x297)],{'useClass':De}],[T],[E],[H],[I],[W],[Z]];this[_0x3faaa5(0x20c)]['enableDocumentCollaborationUI']!==!0x1&&_0x449797['push']([q],[G],[K],[M],[J],[D]),this[_0x3faaa5(0x20c)]['enableFrontendLog']&&_0x449797[_0x3faaa5(0x111)]([Y]),(0x0,n['registerDependencies'])(this[_0x3faaa5(0x257)],(0x0,n[_0x3faaa5(0x209)])(_0x449797,(_0x584727=this[_0x3faaa5(0x20c)])==null?void 0x0:_0x584727[_0x3faaa5(0x390)]));}[_0x246bb0(0x20d)](){const _0x4bceef=_0x246bb0;this['_config']['enableDocumentCollaborationUI']!==!0x1&&this['disposeWithMe'](this[_0x4bceef(0x365)][_0x4bceef(0x1b9)](n['UniverInstanceType'][_0x4bceef(0x1cd)],[z])),this[_0x4bceef(0x275)](this['_renderManagerService'][_0x4bceef(0x1b9)](n[_0x4bceef(0xd2)][_0x4bceef(0x1e6)],[B])),this['disposeWithMe'](this[_0x4bceef(0x365)][_0x4bceef(0x1b9)](n[_0x4bceef(0xd2)][_0x4bceef(0x131)],[V])),this['disposeWithMe'](this[_0x4bceef(0x365)]['registerRenderModule'](n[_0x4bceef(0xd2)][_0x4bceef(0x291)],[L]));}[_0x246bb0(0x17e)](){const _0x389f30=_0x246bb0;(0x0,n[_0x389f30(0x18c)])(this[_0x389f30(0x257)],[[I],[T],[E],[H],[W],[Q],[Z]]),this[_0x389f30(0x20c)][_0x389f30(0x11a)]!==!0x1&&(0x0,n['touchDependencies'])(this[_0x389f30(0x257)],[[J],[D]]),this[_0x389f30(0x20c)]['enableFrontendLog']&&(0x0,n[_0x389f30(0x18c)])(this[_0x389f30(0x257)],[[Y]]);}};S($,'pluginName',_0x246bb0(0x282)),S($,_0x246bb0(0x292),ce),S($,_0x246bb0(0x180),le),$=w([(0x0,n[_0x246bb0(0x311)])(d[_0x246bb0(0x229)],f[_0x246bb0(0x3b8)],m[_0x246bb0(0x345)],h[_0x246bb0(0x2fa)],u[_0x246bb0(0x175)],p[_0x246bb0(0x2d1)],t[_0x246bb0(0x1b6)]),C(0x1,m['IRenderManagerService']),C(0x2,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x3,n[_0x246bb0(0x320)])],$);let ke=class extends t[_0x246bb0(0x3cc)]{constructor(_0x403f18,_0x19404c,_0x5eefe4,_0xbf0a77,_0xff6933){super(_0x403f18,_0x19404c,_0x5eefe4,_0xbf0a77,_0xff6933);}async[_0x246bb0(0x26f)](_0x4b5744){const _0x1fb85d=_0x246bb0;let _0x4013fc=await this[_0x1fb85d(0x3a1)](),_0x20405b=this[_0x1fb85d(0x295)](_0x4b5744,_0x4013fc);return this[_0x1fb85d(0x251)](_0x20405b);}[_0x246bb0(0x295)](_0x4f68aa,_0x316c56){const _0x535d65=_0x246bb0;let _0x4738d3=typeof window>'u'?new URL(_0x4f68aa):new URL(_0x4f68aa,window[_0x535d65(0x2b5)]['origin']);_0x4738d3[_0x535d65(0x2b3)]['set']('sessionTicket',_0x316c56);let _0xa9bdc1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x535d65(0x2b5)][_0x535d65(0x2e3)]);return _0xa9bdc1[_0x535d65(0x2e5)]('runId')&&_0x4738d3[_0x535d65(0x2b3)][_0x535d65(0x2f4)](_0x535d65(0x24d),_0xa9bdc1[_0x535d65(0x2e5)](_0x535d65(0x24d))),_0x4738d3[_0x535d65(0xc3)]();}async[_0x246bb0(0x3a1)](){const _0x4a19fa=_0x246bb0;var _0x37a6a4;let _0x5cbcdb=this[_0x4a19fa(0xf3)][_0x4a19fa(0x2da)](t[_0x4a19fa(0x139)]),_0x2efb77=(_0x5cbcdb==null?void 0x0:_0x5cbcdb[_0x4a19fa(0xdc)])??t[_0x4a19fa(0x2a5)];return((_0x37a6a4=(await this['_httpService'][_0x4a19fa(0x2e5)](_0x2efb77,{'headers':{'Content-Type':'application/json'}}))[_0x4a19fa(0x391)])==null?void 0x0:_0x37a6a4[_0x4a19fa(0x174)])??'';}};ke=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x1,(0x0,n['Inject'])(h[_0x246bb0(0x1ef)])),C(0x2,n[_0x246bb0(0x320)]),C(0x3,n['ILogService']),C(0x4,u[_0x246bb0(0x121)])],ke);let Ae=class extends n[_0x246bb0(0x13d)]{constructor(_0x1a1fba,_0x2526c6,_0x2298e1){const _0x4cf5b2=_0x246bb0;super(),this[_0x4cf5b2(0x188)]=_0x1a1fba,this['_httpService']=_0x2526c6,this[_0x4cf5b2(0xf3)]=_0x2298e1;}async['runOnServer'](_0x375fb5,_0x31f8d5,_0x17ba05,..._0x3d7778){const _0x3241f9=_0x246bb0;let _0x9914ce=this[_0x3241f9(0x188)][_0x3241f9(0x30d)]();if(!_0x9914ce)throw Error(_0x3241f9(0x150));let _0x50172d=(this[_0x3241f9(0xf3)][_0x3241f9(0x2da)](t[_0x3241f9(0x2f2)])??t[_0x3241f9(0x25a)])+'/'+_0x375fb5+_0x3241f9(0x2ab)+_0x31f8d5,_0x3f5537={'scriptId':_0x375fb5,'runId':new URL(window['location']['href'])[_0x3241f9(0x2b3)]['get'](_0x3241f9(0x24d))??'','function':_0x31f8d5,'unitId':_0x9914ce[_0x3241f9(0x313)](),'argsOfFunction':JSON['stringify'](_0x3d7778),'invokeId':_0x17ba05[_0x3241f9(0x169)]??'','executionId':_0x17ba05[_0x3241f9(0x249)]??''};try{let _0x528179=await this[_0x3241f9(0x1ac)][_0x3241f9(0x16d)](_0x50172d,{'body':_0x3f5537});return _0x528179[_0x3241f9(0x391)]['error']&&_0x528179[_0x3241f9(0x391)][_0x3241f9(0x1af)][_0x3241f9(0x1c2)]!==b[_0x3241f9(0x27a)]['OK']?_0x3241f9(0xe2):_0x528179[_0x3241f9(0x391)]['result'];}catch{return _0x3241f9(0xe2);}}};Ae=w([C(0x0,n['IUniverInstanceService']),C(0x1,(0x0,n[_0x246bb0(0x1a6)])(h[_0x246bb0(0x1ef)])),C(0x2,n[_0x246bb0(0x320)])],Ae);const je=0x7530,Me=_0x246bb0(0x1f8);var Ne=class extends n[_0x246bb0(0x13d)]{constructor(){const _0x25f4d7=_0x246bb0;super(),S(this,_0x25f4d7(0xfe),(0x0,n['generateRandomId'])()),S(this,_0x25f4d7(0x34e),new Set()),S(this,_0x25f4d7(0x142),new Map()),S(this,'_heartbeatTimer',null),S(this,_0x25f4d7(0x154),new Map()),S(this,_0x25f4d7(0x30c),new Map()),this[_0x25f4d7(0x244)]();}[_0x246bb0(0x20f)](){const _0xd9dad3=_0x246bb0;super['dispose'](),this[_0xd9dad3(0x154)][_0xd9dad3(0x34f)]((_0x551895,_0x13d44a)=>this['_removeClearOtherTimer'](_0x13d44a)),this[_0xd9dad3(0x279)]&&window[_0xd9dad3(0x3a2)](this[_0xd9dad3(0x279)]);}[_0x246bb0(0x184)](_0x5ba969){const _0x2823a3=_0x246bb0;return this[_0x2823a3(0x1ae)](_0x5ba969)[_0x2823a3(0x319)]((0x0,i[_0x2823a3(0x22a)])());}['editingUnit'](_0x4c0735){const _0x180b05=_0x246bb0;this[_0x180b05(0x34e)][_0x180b05(0xcf)]===0x0&&this[_0x180b05(0x2cd)](),this['_selfUnitIDs']['add'](_0x4c0735),this[_0x180b05(0xd7)]({'type':0x0,'memberID':this[_0x180b05(0xfe)],'unitIDs':[_0x4c0735],'isForwarded':!0x1});}[_0x246bb0(0x3a5)](_0x2f06ae){const _0x1f68f9=_0x246bb0;this['_selfUnitIDs'][_0x1f68f9(0x296)](_0x2f06ae),this[_0x1f68f9(0x34e)][_0x1f68f9(0xcf)]===0x0&&this['_heartbeatTimer']&&window[_0x1f68f9(0x3a2)](this[_0x1f68f9(0x279)]);}[_0x246bb0(0x244)](){const _0x3b1347=_0x246bb0;this[_0x3b1347(0x275)]((0x0,n['toDisposable'])((0x0,i[_0x3b1347(0x15e)])(window,_0x3b1347(0x133))[_0x3b1347(0x173)](_0x2f3ee5=>{const _0xb1291c=_0x3b1347;if(_0x2f3ee5[_0xb1291c(0x13f)]!==Me||!_0x2f3ee5[_0xb1291c(0x30b)])return;let _0x5f1f6c=JSON[_0xb1291c(0x1ab)](_0x2f3ee5[_0xb1291c(0x30b)]);this['_handleEvent'](_0x5f1f6c);}))),window['addEventListener']('unload',()=>this[_0x3b1347(0xd7)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x3b1347(0x34e)])}));}[_0x246bb0(0x2fd)](_0x18f972){const _0x3e34b0=_0x246bb0;switch(_0x18f972['type']){case 0x0:this[_0x3e34b0(0x137)](_0x18f972);break;case 0x1:this['_handleLeaveEvent'](_0x18f972);break;case 0x2:this[_0x3e34b0(0x114)](_0x18f972);break;}}[_0x246bb0(0x137)](_0xf94120){const _0x1896b4=_0x246bb0;let {unitIDs:_0x587987,memberID:_0x11c833,isForwarded:_0x2249a6}=_0xf94120;_0x587987['forEach'](_0x205a75=>{const _0x174545=_0x55a3;if(!_0x2249a6&&this[_0x174545(0x142)][_0x174545(0x2eb)](_0x205a75)&&this[_0x174545(0x1ae)](_0x205a75)[_0x174545(0x264)](t[_0x174545(0x252)][_0x174545(0xc9)]),!this['_unitOnClients']['has'](_0x205a75)||!this[_0x174545(0x142)]['get'](_0x205a75)[_0x174545(0x2eb)](_0x11c833)){let _0x4cb2da=this[_0x174545(0x142)][_0x174545(0x2e5)](_0x205a75)||new Set();_0x4cb2da['add'](_0x11c833),this[_0x174545(0x142)][_0x174545(0x2f4)](_0x205a75,_0x4cb2da),this[_0x174545(0x27c)](_0x11c833);}}),_0x2249a6||this[_0x1896b4(0xd7)]({'type':0x0,'memberID':this[_0x1896b4(0xfe)],'unitIDs':[...this[_0x1896b4(0x34e)]],'isForwarded':!0x0});}[_0x246bb0(0x27c)](_0x527c55){const _0x48dec9=_0x246bb0;this['_removeClearOtherTimer'](_0x527c55);let _0x261097=window[_0x48dec9(0x3c4)](()=>{const _0x221de3=_0x48dec9;this['_unitOnClients'][_0x221de3(0x34f)](_0x5e5387=>{const _0x2c2ac0=_0x221de3;_0x5e5387[_0x2c2ac0(0x296)](_0x527c55);});},je*0x2);this[_0x48dec9(0x154)][_0x48dec9(0x2f4)](_0x527c55,_0x261097);}[_0x246bb0(0xf6)](_0x11fc0){const _0x4ccbaf=_0x246bb0;if(this[_0x4ccbaf(0x154)][_0x4ccbaf(0x2eb)](_0x11fc0)){let _0x275321=this[_0x4ccbaf(0x154)][_0x4ccbaf(0x2e5)](_0x11fc0);_0x275321&&window['clearTimeout'](_0x275321),this[_0x4ccbaf(0x154)]['set'](_0x11fc0,null);}}['_handleLeaveEvent'](_0x1d52ba){const _0x4585b0=_0x246bb0;let {memberID:_0x3a94d2,unitIDs:_0x5c50c8}=_0x1d52ba;_0x5c50c8[_0x4585b0(0x34f)](_0x29717b=>{const _0xf2b3c5=_0x4585b0;var _0x35f00c;let _0x48395e=this['_unitOnClients'][_0xf2b3c5(0x2e5)](_0x29717b);_0x48395e&&(_0x48395e[_0xf2b3c5(0x296)](_0x3a94d2),(_0x35f00c=this['_ensureSubject'](_0x29717b))==null||_0x35f00c['next'](_0x48395e[_0xf2b3c5(0xcf)]===0x0?t[_0xf2b3c5(0x252)]['NO_OTHER_CLIENTS_EDITING']:t[_0xf2b3c5(0x252)][_0xf2b3c5(0xc9)]));}),this[_0x4585b0(0xf6)](_0x3a94d2);}[_0x246bb0(0x114)](_0x40b813){const _0x344477=_0x246bb0;this['_scheduleClearOtherTimer'](_0x40b813[_0x344477(0x171)]);}[_0x246bb0(0xd7)](_0xba96db){const _0x553b1a=_0x246bb0;localStorage['setItem'](Me,JSON[_0x553b1a(0x146)](_0xba96db));}['_scheduleHeartbeat'](){const _0x5f4ae6=_0x246bb0;this[_0x5f4ae6(0x279)]=window['setInterval'](()=>{const _0x46ca48=_0x5f4ae6;this[_0x46ca48(0xd7)]({'type':0x2,'memberID':this[_0x46ca48(0xfe)]});},je);}['_ensureSubject'](_0x5cd807){const _0x35bfa7=_0x246bb0;return this['_unitStatus'][_0x35bfa7(0x2eb)](_0x5cd807)||this[_0x35bfa7(0x30c)][_0x35bfa7(0x2f4)](_0x5cd807,new i[(_0x35bfa7(0x2b7))](t[_0x35bfa7(0x252)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x35bfa7(0x2e5)](_0x5cd807);}};Object[_0x246bb0(0x120)](exports,_0x246bb0(0x2a8),{'enumerable':!0x0,'get':function(){return ke;}}),Object['defineProperty'](exports,_0x246bb0(0x151),{'enumerable':!0x0,'get':function(){return T;}}),exports[_0x246bb0(0x3d1)]=U,Object[_0x246bb0(0x120)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return Ae;}}),exports['SheetCollabCursorShape']=xe,Object[_0x246bb0(0x120)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x246bb0(0x1e0)]=Ne;
1
+ const _0x1ab813=_0x8a3e;(function(_0xa3ac0f,_0x370c28){const _0x1de04f=_0x8a3e,_0x435d60=_0xa3ac0f();while(!![]){try{const _0x2ce1ff=parseInt(_0x1de04f(0x3c7))/0x1+-parseInt(_0x1de04f(0x2a0))/0x2+-parseInt(_0x1de04f(0x180))/0x3+parseInt(_0x1de04f(0x10e))/0x4+-parseInt(_0x1de04f(0x12c))/0x5+-parseInt(_0x1de04f(0x29c))/0x6+parseInt(_0x1de04f(0x2f4))/0x7;if(_0x2ce1ff===_0x370c28)break;else _0x435d60['push'](_0x435d60['shift']());}catch(_0x566714){_0x435d60['push'](_0x435d60['shift']());}}}(_0x10b6,0x91779),Object[_0x1ab813(0x23f)](exports,Symbol[_0x1ab813(0x3b0)],{'value':_0x1ab813(0x1ea)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x10d838){const _0x40d969=_0x1ab813;switch(_0x10d838){case e[_0x40d969(0x24f)]['OFFLINE']:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o['OffLineIcon'],{}),'colorClass':_0x40d969(0x3aa),'i18nKey':_0x40d969(0x3d9),'tooltipKey':_0x40d969(0x365),'clickable':!0x0,'indicator':'static'};case e[_0x40d969(0x24f)][_0x40d969(0x3b8)]:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o['OffLineIcon'],{}),'colorClass':'univer-text-orange-500','i18nKey':_0x40d969(0x1f4),'clickable':!0x1,'indicator':'static'};case e[_0x40d969(0x24f)][_0x40d969(0x24c)]:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o[_0x40d969(0x3f6)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':'spin'};case e[_0x40d969(0x24f)][_0x40d969(0x213)]:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o[_0x40d969(0x3e3)],{}),'colorClass':'univer-text-gray-400','i18nKey':_0x40d969(0x107),'clickable':!0x1,'indicator':'static'};case e['CollaborationStatus'][_0x40d969(0x242)]:case e[_0x40d969(0x24f)][_0x40d969(0x170)]:return{'icon':(0x0,c['jsx'])(o[_0x40d969(0x3f6)],{}),'colorClass':_0x40d969(0x3f1),'i18nKey':_0x40d969(0x36a),'clickable':!0x1,'indicator':_0x40d969(0x230)};case e[_0x40d969(0x24f)][_0x40d969(0x23c)]:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o['LoadingMultiIcon'],{}),'colorClass':_0x40d969(0x3f1),'i18nKey':_0x40d969(0x36a),'clickable':!0x1,'indicator':_0x40d969(0x230)};case e[_0x40d969(0x24f)][_0x40d969(0x33f)]:return{'icon':(0x0,c['jsx'])(o['OnLineIcon'],{}),'colorClass':_0x40d969(0x265),'i18nKey':_0x40d969(0x1b8),'clickable':!0x1,'indicator':'static'};}}function te(_0x434905){const _0x2004d3=_0x1ab813;let {status$:_0x43eee9}=_0x434905,_0xf7149b=(0x0,n['useObservable'])(_0x43eee9,e[_0x2004d3(0x24f)][_0x2004d3(0x213)]),_0x23d1a5=(0x0,n[_0x2004d3(0x11c)])(t[_0x2004d3(0x324)]),_0x53ac2e=(0x0,n['useDependency'])(e[_0x2004d3(0x3dd)]),_0x228040=(0x0,s[_0x2004d3(0x376)])(()=>ee(_0xf7149b),[_0xf7149b]),_0x3c1778=_0xf7149b!==e[_0x2004d3(0x24f)][_0x2004d3(0x12b)],_0x576032=_0x23d1a5['t'](_0x228040[_0x2004d3(0xf4)]),_0x27ec2a=_0x228040['tooltipKey']?_0x23d1a5['t'](_0x228040[_0x2004d3(0x3de)]):_0x576032,_0x17b041=(0x0,s[_0x2004d3(0xfe)])(()=>{const _0x4cbf47=_0x2004d3;_0x3c1778||_0x53ac2e[_0x4cbf47(0x3b2)]();},[_0x3c1778,_0x53ac2e]),_0x42d49b=(0x0,s[_0x2004d3(0xfe)])(_0x5eb2ef=>{const _0xedae86=_0x2004d3;!_0x3c1778&&(_0x5eb2ef[_0xedae86(0x13f)]===_0xedae86(0x21f)||_0x5eb2ef['key']==='\x20')&&(_0x5eb2ef[_0xedae86(0x3bf)](),_0x53ac2e['reconnect']());},[_0x3c1778,_0x53ac2e]),_0x5beb07=(0x0,c['jsx'])(_0x2004d3(0x1a5),{'className':(0x0,a['clsx'])(_0x2004d3(0x325),_0x2004d3(0x1b1),_0x228040['colorClass'],{'univer-animate-spin':_0x228040['indicator']===_0x2004d3(0x230),'univer-animate-pulse':_0x228040[_0x2004d3(0x149)]==='pulse'}),'aria-hidden':_0x2004d3(0x13b),'children':_0x228040[_0x2004d3(0x1f6)]}),_0x5ec1af=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x2004d3(0x3cb)])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x2004d3(0x33b),_0x2004d3(0x1c9),_0x2004d3(0x32d),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x228040[_0x2004d3(0x34f)],'univer-cursor-default':!_0x228040[_0x2004d3(0x34f)]}),'children':_0x5beb07});return _0x228040[_0x2004d3(0x34f)]?(0x0,c[_0x2004d3(0x1f9)])(a[_0x2004d3(0x228)],{'title':_0x27ec2a,'placement':_0x2004d3(0x14b),'children':(0x0,c['jsx'])(_0x2004d3(0x21d),{'type':_0x2004d3(0x21d),'onClick':_0x17b041,'onKeyDown':_0x42d49b,'className':(0x0,a[_0x2004d3(0x3cb)])(_0x2004d3(0x3f4),'univer-border-none\x20univer-bg-transparent',_0x2004d3(0x2cc),_0x2004d3(0x1f8)),'aria-label':_0x576032+_0x2004d3(0x294)+_0x27ec2a,'role':'status','aria-live':_0x2004d3(0x15e),'aria-atomic':_0x2004d3(0x13b),'children':_0x5ec1af})}):(0x0,c[_0x2004d3(0x1f9)])(a[_0x2004d3(0x228)],{'title':_0x27ec2a,'placement':'bottom','children':(0x0,c[_0x2004d3(0x1f9)])('div',{'className':(0x0,a['clsx'])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x2004d3(0x1dc),_0x2004d3(0x2cc)),'aria-label':_0x576032,'role':_0x2004d3(0x361),'aria-live':'polite','aria-atomic':_0x2004d3(0x13b),'children':_0x5ec1af})});}function y(_0x1cd1e6){'@babel/helpers - typeof';const _0x14cfa3=_0x1ab813;return y=typeof Symbol==_0x14cfa3(0x247)&&typeof Symbol['iterator']==_0x14cfa3(0x3cd)?function(_0x1a626d){return typeof _0x1a626d;}:function(_0x330918){const _0x4bc6c5=_0x14cfa3;return _0x330918&&typeof Symbol=='function'&&_0x330918['constructor']===Symbol&&_0x330918!==Symbol[_0x4bc6c5(0x243)]?_0x4bc6c5(0x3cd):typeof _0x330918;},y(_0x1cd1e6);}function ne(_0x1d44bf,_0x1ed4d1){const _0x8ff74f=_0x1ab813;if(y(_0x1d44bf)!=_0x8ff74f(0x313)||!_0x1d44bf)return _0x1d44bf;var _0x4a86ae=_0x1d44bf[Symbol[_0x8ff74f(0x262)]];if(_0x4a86ae!==void 0x0){var _0x5c4c7c=_0x4a86ae[_0x8ff74f(0x156)](_0x1d44bf,_0x1ed4d1||_0x8ff74f(0x160));if(y(_0x5c4c7c)!=_0x8ff74f(0x313))return _0x5c4c7c;throw TypeError(_0x8ff74f(0x12e));}return(_0x1ed4d1===_0x8ff74f(0x211)?String:Number)(_0x1d44bf);}function re(_0x1a4375){const _0x5a5241=_0x1ab813;var _0x1ee580=ne(_0x1a4375,_0x5a5241(0x211));return y(_0x1ee580)==_0x5a5241(0x3cd)?_0x1ee580:_0x1ee580+'';}function b(_0xa4b45b,_0xc8bc3b,_0xbaeb8){const _0x3626fe=_0x1ab813;return(_0xc8bc3b=re(_0xc8bc3b))in _0xa4b45b?Object[_0x3626fe(0x23f)](_0xa4b45b,_0xc8bc3b,{'value':_0xbaeb8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa4b45b[_0xc8bc3b]=_0xbaeb8,_0xa4b45b;}function x(_0x3b3a05,_0x25ec89){return function(_0x35ec03,_0x30696d){_0x25ec89(_0x35ec03,_0x30696d,_0x3b3a05);};}function S(_0x2958fc,_0x212341,_0x17235d,_0x175a54){const _0x5873eb=_0x1ab813;var _0x30c425=arguments[_0x5873eb(0x3e4)],_0x1b58bd=_0x30c425<0x3?_0x212341:_0x175a54===null?_0x175a54=Object[_0x5873eb(0x3c1)](_0x212341,_0x17235d):_0x175a54,_0x543aa1;if(typeof Reflect==_0x5873eb(0x313)&&typeof Reflect[_0x5873eb(0x198)]==_0x5873eb(0x247))_0x1b58bd=Reflect[_0x5873eb(0x198)](_0x2958fc,_0x212341,_0x17235d,_0x175a54);else{for(var _0x30b21e=_0x2958fc[_0x5873eb(0x3e4)]-0x1;_0x30b21e>=0x0;_0x30b21e--)(_0x543aa1=_0x2958fc[_0x30b21e])&&(_0x1b58bd=(_0x30c425<0x3?_0x543aa1(_0x1b58bd):_0x30c425>0x3?_0x543aa1(_0x212341,_0x17235d,_0x1b58bd):_0x543aa1(_0x212341,_0x17235d))||_0x1b58bd);}return _0x30c425>0x3&&_0x1b58bd&&Object['defineProperty'](_0x212341,_0x17235d,_0x1b58bd),_0x1b58bd;}let C=class extends t[_0x1ab813(0x29a)]{constructor(_0x5ab544,_0x2418aa,_0x15664d,_0x4b1bf3,_0x3b917e){const _0x6f6f04=_0x1ab813;super(),this[_0x6f6f04(0x37b)]=_0x5ab544,this[_0x6f6f04(0x100)]=_0x2418aa,this[_0x6f6f04(0x3eb)]=_0x15664d,this[_0x6f6f04(0x404)]=_0x4b1bf3,this[_0x6f6f04(0x336)]=_0x3b917e,b(this,_0x6f6f04(0x2b5),new r[(_0x6f6f04(0x371))](e[_0x6f6f04(0x24f)][_0x6f6f04(0x213)])),b(this,_0x6f6f04(0x3a9),new Map()),this[_0x6f6f04(0x1df)](),this[_0x6f6f04(0x1e7)](),this[_0x6f6f04(0x3da)]();}['dispose'](){const _0x578bca=_0x1ab813;this[_0x578bca(0x3a9)][_0x578bca(0x131)](_0x60a37a=>_0x60a37a['dispose']()),this[_0x578bca(0x3a9)][_0x578bca(0x123)](),this['_status$'][_0x578bca(0x1ae)](),super[_0x578bca(0x38f)]();}[_0x1ab813(0x1e7)](){const _0x4e3c93=_0x1ab813;this[_0x4e3c93(0x150)]((0x0,r['merge'])(this[_0x4e3c93(0x37b)][_0x4e3c93(0x270)],this[_0x4e3c93(0x37b)][_0x4e3c93(0x2e3)](t[_0x4e3c93(0x1a1)][_0x4e3c93(0x23e)]),this[_0x4e3c93(0x37b)][_0x4e3c93(0x2e3)](t[_0x4e3c93(0x1a1)]['UNIVER_SHEET']))[_0x4e3c93(0x32b)]((0x0,i[_0x4e3c93(0x15f)])(()=>ie(this[_0x4e3c93(0x37b)])),(0x0,i[_0x4e3c93(0x35c)])(),(0x0,r[_0x4e3c93(0x2a2)])(_0x4969b1=>_0x4969b1?this[_0x4e3c93(0x3eb)][_0x4e3c93(0x137)](_0x4969b1):(0x0,r['of'])(null)),(0x0,r[_0x4e3c93(0x2a2)])(_0x1bf23c=>_0x1bf23c?_0x1bf23c[_0x4e3c93(0x285)]:(0x0,r['of'])(e[_0x4e3c93(0x24f)][_0x4e3c93(0x213)])))[_0x4e3c93(0x37e)](_0x13c29f=>{const _0x2a51f2=_0x4e3c93;this[_0x2a51f2(0x2b5)][_0x2a51f2(0x184)](_0x13c29f);}));}[_0x1ab813(0x1df)](){const _0x373aeb=_0x1ab813;this[_0x373aeb(0x150)](this[_0x373aeb(0x404)]['registerComponent'](n[_0x373aeb(0x140)]['HEADER_MENU'],()=>(0x0,n[_0x373aeb(0x20f)])(ae({'status$':this[_0x373aeb(0x2b5)][_0x373aeb(0x3d0)]()}),this[_0x373aeb(0x100)])));}['_initPresenceStatusComponents'](){const _0x4949a1=_0x1ab813;let _0x557ecd=this[_0x4949a1(0x336)][_0x4949a1(0x219)][_0x4949a1(0x37e)](_0x56c279=>{const _0x1c421b=_0x4949a1;this[_0x1c421b(0x3f8)](_0x56c279);});this[_0x4949a1(0x150)]((0x0,t[_0x4949a1(0x2fb)])(()=>_0x557ecd['unsubscribe']()));}[_0x1ab813(0x3f8)](_0x2effd0){const _0x1f474e=_0x1ab813;let _0x373975=new Map(_0x2effd0[_0x1f474e(0x208)](_0x277035=>_0x277035[_0x1f474e(0x3ff)]!=null)[_0x1f474e(0x15f)](_0x280324=>[_0x280324[_0x1f474e(0x120)],_0x280324]));this[_0x1f474e(0x3a9)][_0x1f474e(0x131)]((_0x1bd3df,_0x3c3ac4)=>{const _0x195d76=_0x1f474e;_0x373975[_0x195d76(0x3fb)](_0x3c3ac4)||(_0x1bd3df[_0x195d76(0x38f)](),this[_0x195d76(0x3a9)][_0x195d76(0x2c2)](_0x3c3ac4));}),_0x373975[_0x1f474e(0x131)]((_0x14d171,_0xf013db)=>{const _0xe6f73=_0x1f474e;this[_0xe6f73(0x3a9)][_0xe6f73(0x3fb)](_0xf013db)||this['_registerPresenceStatusComponent'](_0x14d171);});}[_0x1ab813(0x2cd)](_0x526b29){const _0x18febc=_0x1ab813;let _0x52f631=_0x526b29[_0x18febc(0x3ff)];if(!_0x52f631)return;let _0x1eacf2=new t[(_0x18febc(0x106))](),_0x24cc59=new r['BehaviorSubject'](e[_0x18febc(0x24f)][_0x18febc(0x213)]);_0x1eacf2['add']((0x0,t['toDisposable'])(()=>_0x24cc59[_0x18febc(0x1ae)]())),_0x1eacf2[_0x18febc(0x28d)](this[_0x18febc(0x404)][_0x18febc(0x379)](_0x52f631,()=>(0x0,n[_0x18febc(0x20f)])(ae({'status$':_0x24cc59['asObservable']()}),this[_0x18febc(0x100)])));let _0x4a5ef1=this[_0x18febc(0x37b)][_0x18febc(0x2e3)](_0x526b29[_0x18febc(0x120)])[_0x18febc(0x32b)]((0x0,i[_0x18febc(0x15f)])(_0xb7de12=>(_0xb7de12==null?void 0x0:_0xb7de12['getUnitId']())??null),(0x0,i[_0x18febc(0x35c)])(),(0x0,r[_0x18febc(0x2a2)])(_0x11109e=>_0x11109e?this['_collaborationController']['getCollabEntity$'](_0x11109e):(0x0,r['of'])(null)),(0x0,r[_0x18febc(0x2a2)])(_0x579ee9=>(_0x579ee9==null?void 0x0:_0x579ee9['status$'])??(0x0,r['of'])(e[_0x18febc(0x24f)][_0x18febc(0x213)])))['subscribe'](_0x295bcf=>_0x24cc59[_0x18febc(0x184)](_0x295bcf));_0x1eacf2[_0x18febc(0x28d)]((0x0,t[_0x18febc(0x2fb)])(()=>_0x4a5ef1[_0x18febc(0x18a)]())),this[_0x18febc(0x3a9)][_0x18febc(0x204)](_0x526b29['unitType'],_0x1eacf2);}};C=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x36f)])),x(0x3,n[_0x1ab813(0x23d)]),x(0x4,(0x0,t['Inject'])(n['IUnitPresenceUIAdapterRegistry']))],C);function _0x10b6(){const _0x824d6c=['DependentOn','_assignedColors','currentSkeleton$','CollaborationUIEventId','strokeWidth','SheetsSelectionsService','Tooltip','handleIRemoveCol','imageSourceType','TEXT_RANGE_LAYER_INDEX','endOffset','SetTextSelectionsOperation','_checkCalculationAvailable','_hover','spin','_themeService','endRow','USERS_LEAVE','createElement','stageInfo','roomMembers$','throttleTime','isFinite','ErrorCode','_send','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','PENDING','IUIPartsService','UNIVER_DOC','defineProperty','START_CALCULATION','IMessageService','AWAITING','prototype','_saveTaskMap','tableSource','_updateLocalCursor','function','fillText','IDocClipboardService','_clearPolling','replace','FETCH_MISS','WebSocketService','getMember','CollaborationStatus','merge','filename','DocIMEInputManagerService','UniverCollaborationClientUIPlugin','createIdentifier','send','PERMISSION_DENIED','lineno','selection','_onCursorUpdate','_clearOtherTimers','removeParam','_render','_hovered','getSelectionInfo','subUnitId','body','urlChange$','toPrimitive','columnIndex','UniverDocsUIPlugin','univer-text-green-500','registerRenderModule','...','_getScale','DocSelectionManagerService','_disposed','kind','application/json','isTransformMutationsWithChangesetSuccess','_cursor','MoveRangeCommandId','focused$','save','_range','registerCommand','Error','getActiveSheet','mergeOverrideWithDependencies','totalFormulasToCalculate','DocumentSkeletonPageType','EffectRefRangId',':backup:','_clearTimeoutState','COMPLETE','rgba(','m1Prime','getSheetObject','black','_removeClearOtherTimer','restore','_heartbeatTimer','_getSaveTimeout','status$','_cursorInfo$','fillStyle','handleInsertRangeMoveDown','_startCalculationLimit','wsSessionTicketUrl','some','addHandlerCallback','add','clearInterval','MessageType','runRefRangeMutations','_collabCursorController','/universer-api/license/formula/limit/status','getScrollXYInfoByViewport','\x20-\x20','cursorInfo','_syncEditingCollabCursorService','_blockProgressWatches','serializeRangeWithSheet','replaceDocRanges','Disposable','location','6656922sVtrFT','UniverCollaborationClientPlugin','CanceledError','_localStorageService','452060XWAxBV','show','switchMap','update','activate','_backgroundColor','_memberID','SessionStatus','DOC_RANGE_TYPE','DeleteRangeMoveLeftCommandId','mutations','Subject','beginPath','_scheduleSaving','createInstance','handleDeleteRangeMoveLeft','_entityInit$','_getFormulaLimitStatus','setRemotePresence','_context','1.0.0-beta.1','_status$','segmentPage','_disposeEntitiesForType','red.300','timeoutId','getUnitStatus$','collaboration-client-ui.config','_maxFormulaLimit','CollaborationEvent','_initUserListener','ONLINE','getCurrentRevOfUnit','@univerjs-pro/collaboration-client-ui','delete','getCoordRelativeToViewport','_collabSessionService','getCurrentSkeleton','_blinkIntervalTimer','getLocalPresence','_handleEvent','disposeUnit','_instanceService','_labelHorizontalPosition','univer-m-0\x20univer-p-0','_registerPresenceStatusComponent','Tools','_hasFormulaInDirtyRanges','\x20at\x20','maxFormulaLimit','_pendingEntities','_refRangeService','CommandType','syncEditingCollabCursor','getFocusedUnit','collab-text-range-','InsertRangeMoveRightCommandId','_init','addEventListener','getCellIndexByOffset','memberID','_showGuardMessage','textRanges','_setFormulaLimitStatus','loadedBlocks','enableDocumentCollaborationUI','_adapterDisposables','getCurrentTypeOfUnit$','assignAColorForMemberID','_offsetY','fill','_transformPreviousActiveRange','setConfig','doc.mutation.rich-text-editing','FOOTER','_doCreateSocket','_isBlinkVisible','_getAnchorBounding','FormulaExecuteStageType','_releaseCalculationLimit','_startEntity','_cursors','href','debounce','13210694GCAxIS','handleInsertRow','DocSkeletonManagerService','resize','SnapshotLoadStage','fromEvent','collab-rect-range-','toDisposable','push','_sheetSkeletonManagerService','m2Prime','_handleCursorUpdate','canRenderSelection','columnGroupId','SetWorksheetActivateCommand','RxDisposable','getCurrentUnitOfType','isFormulaId','getTypeOfUnitDisposed$','setItem','_logService','_docSelectionManagerService','handleInsertCol','getSkeleton','_configService','_syncAdapters','findNodePositionByCharIndex','Plugin','IUniverInstanceService','currentTheme$','_registerDependencies','object','SUCCESS','cursorInfo$','highlight','_highlightSecond','shift','DeleteRangeMoveUpCommandId','SheetCollabCursorShape','getItem','getCollabCursors$','right','_createSocketURL','_httpService','reload','clearRemotePresences','sessionStatus$','collaboration-client-ui.session.will-retry','LocaleService','univer-flex\x20univer-items-center\x20univer-justify-center','getParam','source','_pointerMoveDisposable','_onRefRangeChange','_updateCollabCursors','pipe','ITransformService','dark:focus:!univer-ring-offset-gray-800','jsxs','_initWindowErrorListener','onPointerMove$','runOnServer','SUBMIT_CHANGESET_TIMEOUT','totalBlocks','/run/','localPresence$','_presenceAdapterRegistry','transformSelections','collab-text-anchor-','_initResize','_notificationService','univer-transition-all\x20univer-duration-200','UNIVER_SHEET','every','getSheetBySheetId','SYNCED','onPointerLeave$','_eventUnsubscribe','mapTo','_taskIds','replaceState','HTTPService','onCommandExecuted','hovered','find','InsertRangeMoveDownCommandId','roomMembers','reason','_applyCommand','touchDependencies','_initUnhandledRejectionListener','clickable','isActive','removeEventListener','sheetId','DesktopCollaborationStatusDisplayController','transformRemoteChangeset','unitId','[LogService\x20Error]:\x20','registerBeforeClose','Button','_updateSubUnitFromURLParams','[Window\x20Error]:\x20','_docStateChangeManagerService','distinctUntilChanged','ISocketService','rgba(255,\x20255,\x20255,\x200.01)','SetDocZoomRatioOperation','_docClipboardService','status','subscribeEvent','_initEvent','_watchBlockProgress','collaboration-client-ui.collabClient.tooltip.reconnect','_getSheetObject','getSheetId','SetFormulaCalculationStartMutation','_uploadLog','collaboration-client-ui.collabStatus.syncing','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','registerDependencies','_lastResponseTimestamp','startFormulaLimitUrl','CollaborationController','_latestStates','BehaviorSubject','_snapshotLoadingService','_handleJoinEvent','_online','Loading','useMemo','executeCommand','ICommandService','registerComponent','_docSyncEditingCollabCursorService','_univerInstanceService','_scheduleClearOtherTimer','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','subscribe','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_anchor','colno','tableId','_transformHistoryAndStateStack','labelPosition','hide','TEXT','_drawTextRange','#FFF','getOffsetConfig','requireSession','Unknown\x20user','bind','startsWith','unitID','dispose','UniverNetworkPlugin','WebBrowserSingleActiveUnitService','_checkAndWaitForCalculationPermission','limitInfo','getMemberID','_getSessionTicket','TRANSFORM_CHANGE_OBSERVABLE_TYPE','currentUsage','_handleLeaveEvent','JOIN_ROOM_FAILED','unhandledrejection','_localCacheService','_ensureSubject','Rect','collaboration-client-ui.permission.title','sheetID','width','_getLighterColor','makeDirty',',\x200.2)','DEFAULT_WS_SESSION_TICKET_URL','collaboration-client-ui.collaboration.closeRoom','override','deserializeRangeWithSheet','_highlight','_presenceStatusRegistrations','univer-text-red-500','_draw','_collaborationSessionService','_renderManagerService','DocStateChangeManagerService','isArray','toStringTag','_monkeyPatchLogService','reconnect','Inject','collaboration-client-ui.snapshotLoading.timeout','toRgbString','version','_removeCollabCursors','CONFLICT','content','onTransformChange$','pointer','FromArray','eventID','sessionTicket','preventDefault','_getMergeRange','getOwnPropertyDescriptor','runId','FormulaExecutedStateType','setUndoRedoMutationParamsCache','stack','font','389646JbCemu','collaboration-client-ui.collaboration.offline-data-not-saved','params','ERROR','clsx','refreshLabel','symbol','setInterval','timeoutState$','asObservable','fromEventSubject','column','lineTo','ranges','canRenderAnchor','RECT','setParam','_stopBlinking','collaboration-client-ui.collabStatus.offline','_initPresenceStatusComponents','startOffset','presenceKind','CollaborationSessionService','tooltipKey','onRendered','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','OTHER_CLIENTS_EDITING','_commandService','OnLineIcon','length','timedOut','getLocalCacheKey','Vector2','_startSheetCollabCursor','rgba','_bindAdapter','_collaborationController','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','getCellMatrix','_showText','parseInt','getAllUnitsForType','univer-text-blue-500','_disposeEntity','post','univer-inline-flex\x20univer-items-center\x20univer-justify-center','bold\x2013px\x20Arial,\x20sans-serif','LoadingMultiIcon','_anchorDot','_syncPresenceStatusComponents','small','_blinkTimer','has','yellow.400','_roomMembers$','_entities','statusUIPart','useObservable','SHEET_VIEWPORT_KEY','stringify','state','_uiPartsService','_setupBeforeClosingHandler','blue.400','_handleHeartbeatEvent','releaseFormulaLimitUrl','jiqing.500','getCoordByCell','_toggleOnline','collaboration-client-ui.collaboration.single-unit.warning','_session','i18nKey','_cachedData','VIEW_MAIN','catch','selections','_cursorShapes','popstate','addObjects','_localeService','setTimeout','useCallback','_initCommandInterceptor','_injector','collaboration-client-ui.formula.calculation.waiting','SetSelectionsOperation','IImageIoService','enableFrontendLog','slice','DisposableCollection','collaboration-client-ui.collabStatus.notCollab','closePath','_document','_sendLocalPresence','Rectangle','_drawRectRange','snapshot-loading-','2983536GLypTa','range','transformMutation','div','IRenderManagerService','getColor','_unitStatus','min','includes','_initialized','getAncestorScale','onStarting','_updateURLWithCurrentState','get','useDependency','join','drawWith','max','unitType','setAlpha','_shapes','clear','SnapshotLoadingService','_color','RemoveColCommandId','getUnit','RemoveRowCommandId','_dataLoaderService','arc','OFFLINE','4563110qGaVfF','ILogService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','collaboration-client-ui.permission.content','COLORS','forEach','setStateCache','registerRefRange','_colorIndex','result','entries','getCollabEntity$','takeUntil','_transformService','_startDocCollabCursor','true','saveTaskMap','collaboration-client-ui.snapshotLoading.refresh','uni.network.url-service','key','BuiltInUIPart','startRow','exhaustSavingTask','addObject','_handleHover','_unitOnClients','ColorKit','OTHER_CLIENT_EDITING','origin','indicator','_messageService','bottom','debounceTime','offsetY','highlightSecond','collabCursorState$','disposeWithMe','_docTransformStateCacheService','_onCursorDelete','transformIMECache','UniverRenderEnginePlugin','InsertColCommandId','call','getUnhiddenWorksheets','_hideTimer','error','_memberService','getUnitId','_clearBlockProgressWatch','CollaborationSocketService','polite','map','default','_revisionService','_docTransformSelectionsService','with','executionId','options','color','text','history','setShapeProps','IURLService','transformMutationsWithChangeset','IBeforeCloseService','UnitStatus','Injector','_lastPointer','AWAITING_WITH_PENDING','_pollingInterval','_adapterRegistry','engine','getRenderUnitById','code','showText','_config','_setupSubUnitSync','dispose$','UPDATE_CURSOR','_imageIoService','_registerRenderDependencies','IUnitPresenceUIAdapterRegistry','searchParams','shareInterval','536400ExlXHP','_removeRemotePresence','_textBubble','getConfig','next','toISOString','onMouseMove','Failed','_docSkeletonManagerService','_isDisposed','unsubscribe','HEADER','collaboration-client-ui.conflict.title','saveImage','_initCommandExecutedListener','OPERATION','GLOBAL','updateOfflineData','_updateMessage','stage','Shape','Success','_refreshCollabCursors','ACTIVE_UNIT_EVENT_CHANNEL','decorate','Workbook','loadUnit','createSocket','_currentUsage','clearTimeout','enableLocalCache','isTransformMutationFailure','_saveCache','UniverInstanceType','handleDeleteRangeMoveUp','_name','deepClone','span','endColumn','shareReplay','_disabled','_startBlinking','getUndoRedoMutationParamsCache','from','?taskId=','collaboration-client-ui.collabStatus.fetchMiss','complete','/universer-api/license/formula/limit/done','isInternalEditorID','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','collaboration-client-ui.conflict.content','generateRandomId','_adapter','getValue','parse','values','collaboration-client-ui.collabStatus.synced','LOCAL_CACHE_INTERVAL_KEY','collaboration-client-ui.session.connection-failed','contains','_timeoutState$','getColorFromTheme','search','unload','isFormulaString','NodePositionConvertToCursor','_collaborationUIEventService','Warning','MemberService','isEditing','now','number','setActiveRange','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','RegularPolygon','handleMoveRange','getTypeOfUnitAdded$','subunit','unit','BrowserCollaborationSocketService','_collabCursorState$','fillRule','pageIndex','ThemeService','_labelPosition','_colorAssignService','startColumn','_clearRemotePresences','pageType','ILocalCacheService','functionsExecutedState','getStateCache','univer-border-none\x20univer-bg-transparent','getFormulaLimitStatusUrl','height','_initStatusComponent','loadOfflineData','type','getDocumentSkeletonColumnPagePathInfo','then','name','measureText','onPointerEnter$','_initStatusListener','getRangePointData','size','Module','_toggleOffline','_scene','toString','redoState','IConfigService','UniverDocsPlugin','LOADING_BLOCKS','_id','pluginName','collaboration-client-ui.collabStatus.conflict','left','icon','pushState','univer-appearance-none','jsx','row','_urlService','SOCKET_FAILED_RETRY','split','collaboration-client-ui.operation.update-remote-unit-presence','init','message','_isVisibleUnit','RemoteUniscriptService','NodePositionConvertToRectRange','set','WarningIcon','_docTransformIMECacheService','moveTo','filter','focusedId','dirtyRanges','snapshot-loading-timeout','value','event$','getViewport','connectInjector','unshift','string','_messageIds','NOT_COLLAB','transformStateCache','rgb','selectedIds','primary','ISnapshotServerService','adapters$','data','newValue','_transformUndoRedoStack','button','_selfUnitIDs','Enter','remove','SOCKET_FAILED'];_0x10b6=function(){return _0x824d6c;};return _0x10b6();}function ie(_0x2b8e20){const _0x312e79=_0x1ab813;let _0x2d8fdb=_0x2b8e20[_0x312e79(0x2d6)](),_0x4d6e31=_0x2d8fdb==null?void 0x0:_0x2d8fdb[_0x312e79(0x15b)]();if(_0x4d6e31&&!(0x0,t[_0x312e79(0x1b0)])(_0x4d6e31))return _0x4d6e31;let _0x25ad92=_0x2b8e20['getCurrentUnitOfType'](t['UniverInstanceType']['UNIVER_DOC']),_0x433254=_0x25ad92==null?void 0x0:_0x25ad92['getUnitId']();if(_0x433254&&!(0x0,t[_0x312e79(0x1b0)])(_0x433254))return _0x433254;let _0x33b636=_0x2b8e20['getCurrentUnitOfType'](t[_0x312e79(0x1a1)][_0x312e79(0x33c)]);if(_0x33b636)return _0x33b636[_0x312e79(0x15b)]();let _0x141a60=_0x2b8e20[_0x312e79(0x3f0)](t[_0x312e79(0x1a1)][_0x312e79(0x23e)])[_0x312e79(0x348)](_0xa792a7=>!(0x0,t['isInternalEditorID'])(_0xa792a7[_0x312e79(0x15b)]()));return _0x141a60?_0x141a60['getUnitId']():null;}function ae(_0x5b8046){let {status$:_0xf1f7a8}=_0x5b8046;return function(){const _0x29302d=_0x8a3e;return(0x0,c[_0x29302d(0x1f9)])(te,{'status$':_0xf1f7a8});};}var oe=_0x1ab813(0x2c1),se=_0x1ab813(0x2b4);const w={'id':_0x1ab813(0x1fe),'type':t[_0x1ab813(0x2d4)][_0x1ab813(0x18f)],'handler':(_0x79701b,_0x3a8f19)=>{const _0x58782a=_0x1ab813;let _0xfd6a90=_0x79701b[_0x58782a(0x11b)](n[_0x58782a(0x17d)])['get'](_0x3a8f19[_0x58782a(0x120)]);if(!_0xfd6a90)return!0x1;switch(_0x3a8f19[_0x58782a(0x2a3)][_0x58782a(0x1e1)]){case _0x58782a(0x204):return _0xfd6a90[_0x58782a(0x2b2)](_0x3a8f19[_0x58782a(0x2a3)][_0x58782a(0x403)]),!0x0;case'remove':return _0xfd6a90['removeRemotePresence'](_0x3a8f19['update'][_0x58782a(0x355)],_0x3a8f19[_0x58782a(0x2a3)]['memberId']),!0x0;case _0x58782a(0x123):return _0xfd6a90[_0x58782a(0x321)](_0x3a8f19[_0x58782a(0x2a3)][_0x58782a(0x355)]),!0x0;default:return!0x1;}}},ce={};let T=class extends t['RxDisposable']{constructor(_0xf79dc5,_0x357703){const _0x382c7f=_0x1ab813;super(),this[_0x382c7f(0x360)]=_0xf79dc5,this[_0x382c7f(0x17b)]=_0x357703,this[_0x382c7f(0x2d9)]();}[_0x1ab813(0x2d9)](){const _0x5f3310=_0x1ab813;let _0x1dc66d=this;this[_0x5f3310(0x150)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x202a5c=>{const _0x30c804=_0x5f3310;let _0xabef15=await _0x1dc66d[_0x30c804(0x17b)][_0x30c804(0x18d)](_0x202a5c);return _0xabef15?{'source':_0xabef15[_0x30c804(0x327)],'imageSourceType':_0xabef15[_0x30c804(0x22a)]}:null;}}));}};T=S([x(0x0,f[_0x1ab813(0x249)]),x(0x1,t[_0x1ab813(0x103)])],T);const le=['purple.300',_0x1ab813(0x409),'green.600',_0x1ab813(0x2b8),_0x1ab813(0x406),_0x1ab813(0x3fc)];var E=class extends t[_0x1ab813(0x29a)]{constructor(..._0x14b801){const _0x3f4b27=_0x1ab813;super(..._0x14b801),b(this,_0x3f4b27(0x223),new Map()),b(this,_0x3f4b27(0x134),0x0);}[_0x1ab813(0x2e4)](_0x3f3913){const _0x599615=_0x1ab813;if(this[_0x599615(0x223)][_0x599615(0x3fb)](_0x3f3913))return this[_0x599615(0x223)][_0x599615(0x11b)](_0x3f3913);let _0x178068=le[this[_0x599615(0x134)]];return this[_0x599615(0x134)]=(this[_0x599615(0x134)]+0x1)%le['length'],this[_0x599615(0x223)][_0x599615(0x204)](_0x3f3913,_0x178068),_0x178068;}};function ue(_0x1bd667){let _0x5aee74='';for(let _0x36d76b of _0x1bd667){let {startOffset:_0x3da3d1,endOffset:_0x101f62,isActive:_0x1b0541,rangeType:_0x4c5fd0,segmentId:_0x4b9e57,segmentPage:_0xbaee3a}=_0x36d76b;_0x5aee74['length']&&(_0x5aee74+=','),_0x5aee74+=_0x3da3d1+':'+_0x101f62+':'+(_0x1b0541?'1':'0')+':'+_0x4c5fd0+':'+_0x4b9e57+':'+_0xbaee3a;}return _0x5aee74;}function de(_0x58f6a9){const _0x58479e=_0x1ab813;let _0x3c153c=_0x58f6a9[_0x58479e(0x1fd)](','),_0x4f1bbd=[];for(let _0x5c9095 of _0x3c153c){let [_0x5ad54e,_0x20545d,_0x327042,_0x16e882,_0x31aed9,_0x2efb61]=_0x5c9095[_0x58479e(0x1fd)](':');_0x4f1bbd['push']({'startOffset':Number(_0x5ad54e),'endOffset':Number(_0x20545d),'collapsed':_0x5ad54e===_0x20545d,'isActive':_0x327042==='1','rangeType':_0x16e882===t['DOC_RANGE_TYPE'][_0x58479e(0x386)]?t[_0x58479e(0x2a8)][_0x58479e(0x386)]:t['DOC_RANGE_TYPE'][_0x58479e(0x3d6)],'segmentId':typeof _0x31aed9==_0x58479e(0x211)?String(_0x31aed9):'','segmentPage':Number(_0x2efb61??-0x1)});}return _0x4f1bbd['some'](_0x32175a=>_0x32175a[_0x58479e(0x350)])||(_0x4f1bbd[0x0]['isActive']=!0x0),_0x4f1bbd;}var D=class extends t[_0x1ab813(0x303)]{constructor(..._0xa032a7){const _0x16e1e0=_0x1ab813;super(..._0xa032a7),b(this,_0x16e1e0(0x1d0),new r['BehaviorSubject'](null)),b(this,_0x16e1e0(0x14f),this[_0x16e1e0(0x1d0)]['asObservable']());}[_0x1ab813(0x2d5)](_0x307ff8){const _0x3673f7=_0x1ab813;let {unitID:_0x39b177,memberID:_0x164da4,textRanges:_0xfb2188}=_0x307ff8,_0x56d6f9=ue(_0xfb2188);if(_0x56d6f9==='')return;let _0xfd35c3={'unitID':_0x39b177,'memberID':_0x164da4,'selection':_0x56d6f9};this[_0x3673f7(0x1d0)][_0x3673f7(0x184)](_0xfd35c3);}};let O=class extends t[_0x1ab813(0x303)]{get[_0x1ab813(0x295)](){const _0x2c4da0=_0x1ab813;return this[_0x2c4da0(0x286)]['getValue']();}get[_0x1ab813(0x34a)](){const _0x345696=_0x1ab813;return this['_roomMembers$'][_0x345696(0x1b5)]();}constructor(_0x435912,_0x1c1ee3,_0x527669,_0x42a874,_0x16d23c,_0x5dfe5c,_0x319bc6,_0x687074,_0x201cb4){const _0x4f65ed=_0x1ab813;super(),this[_0x4f65ed(0x38e)]=_0x435912,this[_0x4f65ed(0xf3)]=_0x1c1ee3,this[_0x4f65ed(0x100)]=_0x527669,this[_0x4f65ed(0x1d5)]=_0x42a874,this[_0x4f65ed(0x15a)]=_0x16d23c,this[_0x4f65ed(0x296)]=_0x5dfe5c,this[_0x4f65ed(0x139)]=_0x319bc6,this['_univerInstanceService']=_0x687074,this['_commandService']=_0x201cb4,b(this,_0x4f65ed(0x374),!0x1),b(this,'_init',!0x1),b(this,_0x4f65ed(0x286),new r[(_0x4f65ed(0x371))](new Map())),b(this,'cursorInfo$',this[_0x4f65ed(0x286)][_0x4f65ed(0x3d0)]()),b(this,'_roomMembers$',new r[(_0x4f65ed(0x371))]([])),b(this,_0x4f65ed(0x236),this[_0x4f65ed(0x3fd)]['pipe']((0x0,r[_0x4f65ed(0x14c)])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x4f65ed(0x2f3)])(_0x51c8cd=>{const _0x562013=_0x4f65ed;let _0x249d87={'eventID':l[_0x562013(0x2bd)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x562013(0xf3)]['getMemberID'](),'selection':ue(_0x51c8cd)}};this[_0x562013(0xf3)][_0x562013(0x255)](_0x249d87,this[_0x562013(0x38e)]);},0x64));}['dispose'](){const _0x24ccda=_0x1ab813;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x24ccda(0x286)][_0x24ccda(0x1ae)](),this[_0x24ccda(0x3fd)][_0x24ccda(0x184)]([]),this[_0x24ccda(0x3fd)][_0x24ccda(0x1ae)]();}[_0x1ab813(0x1ff)](){const _0x70dfed=_0x1ab813;this['_init']||(this[_0x70dfed(0x2d9)]=!0x0,this[_0x70dfed(0xf3)][_0x70dfed(0x322)][_0x70dfed(0x32b)]((0x0,r[_0x70dfed(0x138)])(this[_0x70dfed(0x179)]))[_0x70dfed(0x37e)](_0xb728be=>{const _0x483409=_0x70dfed;_0xb728be===e[_0x483409(0x2a7)][_0x483409(0x2bf)]?this[_0x483409(0x40b)]():this['_toggleOffline']();}),this['_session']['event$']['pipe']((0x0,r[_0x70dfed(0x138)])(this[_0x70dfed(0x179)]))[_0x70dfed(0x37e)](_0x4acc8a=>{const _0x469083=_0x70dfed;let _0x321b74=_0x4acc8a[_0x469083(0x3bd)];_0x321b74===l[_0x469083(0x2bd)]['UPDATE_CURSOR']&&this[_0x469083(0x259)](_0x4acc8a),_0x321b74===l[_0x469083(0x2bd)][_0x469083(0x233)]&&this[_0x469083(0x152)](_0x4acc8a);}),this[_0x70dfed(0x150)](this[_0x70dfed(0x3e2)][_0x70dfed(0x346)](_0x393eef=>{const _0x2a1746=_0x70dfed;let _0x4aaa59=_0x393eef[_0x2a1746(0x3c9)];_0x4aaa59!=null&&this[_0x2a1746(0x374)]&&_0x393eef['id']===d[_0x2a1746(0x22d)]['id']&&_0x4aaa59[_0x2a1746(0x355)]===this[_0x2a1746(0x38e)]&&_0x4aaa59[_0x2a1746(0x1c5)]===!0x1&&_0x4aaa59['ranges'][_0x2a1746(0x3e4)]>0x0&&this[_0x2a1746(0x246)](_0x4aaa59[_0x2a1746(0x3d4)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x70dfed(0x32b)]((0x0,r['takeUntil'])(this[_0x70dfed(0x179)]))[_0x70dfed(0x37e)](_0x30f106=>{const _0x3fccab=_0x70dfed;if((_0x30f106==null?void 0x0:_0x30f106[_0x3fccab(0x38e)])!==this['unitID'])return;let _0x1bcb59={'eventID':l['CollaborationEvent'][_0x3fccab(0x17a)],'data':_0x30f106};this[_0x3fccab(0x259)](_0x1bcb59);}),this[_0x70dfed(0x150)](this['_commandService'][_0x70dfed(0x346)](_0x249365=>{const _0x18c3f7=_0x70dfed;if(_0x249365[_0x18c3f7(0x3c9)]==null)return;let _0x5eeaa0=_0x249365[_0x18c3f7(0x3c9)];if(_0x249365['id']!==d['RichTextEditingMutation']['id']||_0x5eeaa0[_0x18c3f7(0x355)]!==this['unitID'])return;let _0x4b2f7a={'id':'doc.mutation.rich-text-editing','params':_0x5eeaa0},_0x131e47=this[_0x18c3f7(0x295)];for(let [_0x3ce905,_0x5d22fc]of _0x131e47){let _0x53e5cf={'id':_0x18c3f7(0x2e9),'params':{'unitId':this[_0x18c3f7(0x38e)],'actions':null,'textRanges':_0x5d22fc[_0x18c3f7(0x3d4)]}},_0x53b2b4=this['_transformService'][_0x18c3f7(0x110)](_0x4b2f7a,_0x53e5cf,!0x1);if((0x0,l[_0x18c3f7(0x19f)])(_0x53b2b4))throw _0x53b2b4[_0x18c3f7(0x159)];_0x131e47['set'](_0x3ce905,{..._0x5d22fc,'ranges':_0x53b2b4[_0x18c3f7(0x2fe)][_0x18c3f7(0x3c9)][_0x18c3f7(0x2de)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x131e47);});})));}['_onCursorUpdate'](_0x59e4f2){const _0x3fbe64=_0x1ab813;var _0x582f62;let {memberID:_0xb089b5,selection:_0x147695}=_0x59e4f2[_0x3fbe64(0x21a)],_0x3f8e0d=de(_0x147695),_0x41ab3c=((_0x582f62=this[_0x3fbe64(0x15a)]['getMember'](this[_0x3fbe64(0x38e)],_0xb089b5))==null?void 0x0:_0x582f62['name'])??_0x3fbe64(0x38b),_0x72ce96={'color':this[_0x3fbe64(0x1d5)][_0x3fbe64(0x2e4)](_0xb089b5),'name':_0x41ab3c,'ranges':_0x3f8e0d},_0x9146f5=this[_0x3fbe64(0x295)];_0x9146f5[_0x3fbe64(0x204)](_0xb089b5,_0x72ce96),this['_cursorInfo$']['next'](_0x9146f5);}[_0x1ab813(0x152)](_0x2a86cb){const _0x2e1a76=_0x1ab813;let {memberID:_0x2d3238}=_0x2a86cb[_0x2e1a76(0x21a)],_0x5cd5bb=this[_0x2e1a76(0x295)];_0x5cd5bb['delete'](_0x2d3238),this[_0x2e1a76(0x286)][_0x2e1a76(0x184)](_0x5cd5bb);}[_0x1ab813(0x40b)](){const _0x177397=_0x1ab813;var _0x575a26;if(this[_0x177397(0x374)]=!0x0,((_0x575a26=this[_0x177397(0x37b)][_0x177397(0x2d6)]())==null?void 0x0:_0x575a26['getUnitId']())!==this['unitID'])return;let _0x539407=this[_0x177397(0x100)][_0x177397(0x11b)](d[_0x177397(0x269)])['getDocRanges']();Array[_0x177397(0x3af)](_0x539407)&&_0x539407[_0x177397(0x3e4)]>0x0&&this[_0x177397(0x246)](_0x539407);}[_0x1ab813(0x1eb)](){this['_online']=!0x1;}};O=S([x(0x2,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(E)),x(0x4,(0x0,t[_0x1ab813(0x3b3)])(e['MemberService'])),x(0x5,(0x0,t[_0x1ab813(0x3b3)])(D)),x(0x6,l[_0x1ab813(0x32c)]),x(0x7,t[_0x1ab813(0x310)]),x(0x8,t['ICommandService'])],O);const fe=()=>{let _0x44000c=[],_0x30948d=!0x1;return _0x233827=>{const _0x45ccce=_0x8a3e;_0x44000c[_0x45ccce(0x2fc)](_0x233827),_0x30948d||(_0x30948d=!0x0,setTimeout(()=>{const _0x1f2aea=_0x45ccce;_0x44000c[_0x1f2aea(0x131)](_0x4df57d=>_0x4df57d()),_0x44000c=[],_0x30948d=!0x1;}));};};let k=class extends t[_0x1ab813(0x303)]{get['cursorInfo'](){const _0x318e1b=_0x1ab813;return this[_0x318e1b(0x286)]['getValue']();}get[_0x1ab813(0x34a)](){const _0x2a2bc1=_0x1ab813;return this[_0x2a2bc1(0x3fd)][_0x2a2bc1(0x1b5)]();}constructor(_0x30f7d6,_0x21a6e1,_0x173672,_0x146d35,_0x5bb914,_0x3bc5be,_0x449658,_0x4f8370){const _0x106322=_0x1ab813;super(),this[_0x106322(0x38e)]=_0x30f7d6,this[_0x106322(0xf3)]=_0x21a6e1,this[_0x106322(0x100)]=_0x173672,this[_0x106322(0x1d5)]=_0x146d35,this[_0x106322(0x15a)]=_0x5bb914,this['_univerInstanceService']=_0x3bc5be,this[_0x106322(0x3e2)]=_0x449658,this[_0x106322(0x2d3)]=_0x4f8370,b(this,_0x106322(0x374),!0x1),b(this,'_init',!0x1),b(this,_0x106322(0x286),new r[(_0x106322(0x371))](new Map())),b(this,_0x106322(0x315),this[_0x106322(0x286)][_0x106322(0x3d0)]()),b(this,_0x106322(0x3fd),new r[(_0x106322(0x371))]([])),b(this,'roomMembers$',this[_0x106322(0x3fd)][_0x106322(0x32b)]((0x0,r[_0x106322(0x14c)])(0x12c))),b(this,_0x106322(0x246),(0x0,t[_0x106322(0x2f3)])((_0x334f47,_0x136294)=>{const _0x8780e1=_0x106322;let _0x5dbd55={'eventID':l[_0x8780e1(0x2bd)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x8780e1(0xf3)][_0x8780e1(0x394)](),'selection':(0x0,h[_0x8780e1(0x298)])(_0x334f47,_0x136294['range'])}};this[_0x8780e1(0xf3)][_0x8780e1(0x255)](_0x5dbd55,this[_0x8780e1(0x38e)]);},0x64));}[_0x1ab813(0x38f)](){const _0x555356=_0x1ab813;super[_0x555356(0x38f)](),this[_0x555356(0x286)][_0x555356(0x184)](new Map()),this[_0x555356(0x286)][_0x555356(0x1ae)](),this['_roomMembers$'][_0x555356(0x184)]([]),this[_0x555356(0x3fd)][_0x555356(0x1ae)]();}[_0x1ab813(0x1ff)](){const _0x44a562=_0x1ab813;this[_0x44a562(0x2d9)]||(this[_0x44a562(0x2d9)]=!0x0,this[_0x44a562(0xf3)][_0x44a562(0x322)][_0x44a562(0x32b)]((0x0,r['takeUntil'])(this[_0x44a562(0x179)]))[_0x44a562(0x37e)](_0x2ee4c2=>{const _0x52b9d6=_0x44a562;_0x2ee4c2===e[_0x52b9d6(0x2a7)][_0x52b9d6(0x2bf)]?this[_0x52b9d6(0x40b)]():this[_0x52b9d6(0x1eb)]();}),this[_0x44a562(0xf3)][_0x44a562(0x20d)][_0x44a562(0x32b)]((0x0,r[_0x44a562(0x138)])(this[_0x44a562(0x179)]))['subscribe'](_0x7bbc73=>{const _0x1e89d1=_0x44a562;let _0x1ada27=_0x7bbc73[_0x1e89d1(0x3bd)];_0x1ada27===l[_0x1e89d1(0x2bd)]['UPDATE_CURSOR']&&this[_0x1e89d1(0x259)](_0x7bbc73),_0x1ada27===l[_0x1e89d1(0x2bd)][_0x1e89d1(0x233)]&&this[_0x1e89d1(0x152)](_0x7bbc73);}),this[_0x44a562(0x329)](),this['disposeWithMe'](this[_0x44a562(0x3e2)][_0x44a562(0x346)](_0x5b1db2=>{const _0x1546d0=_0x44a562;if(this[_0x1546d0(0x374)]&&_0x5b1db2['id']===g[_0x1546d0(0x102)]['id']&&_0x5b1db2[_0x1546d0(0x3c9)][_0x1546d0(0x355)]===this[_0x1546d0(0x38e)]){let _0x1eb5d6=_0x5b1db2[_0x1546d0(0x3c9)];this[_0x1546d0(0x246)](_0x1eb5d6[_0x1546d0(0x25f)],_0x1eb5d6[_0x1546d0(0xf8)][0x0]);}})));}[_0x1ab813(0x259)](_0x470ee5){const _0x470544=_0x1ab813;var _0xbae592;let {memberID:_0x4f6b7f,selection:_0x5b4677}=_0x470ee5['data'],{sheetName:_0x223435,range:_0x52a78c}=(0x0,h[_0x470544(0x3a7)])(_0x5b4677),_0xfcf2d9={'name':((_0xbae592=this[_0x470544(0x15a)][_0x470544(0x24e)](this['unitID'],_0x4f6b7f))==null?void 0x0:_0xbae592['name'])??'Unknown\x20user','range':this[_0x470544(0x3c0)](_0x223435,_0x52a78c),'sheetID':_0x223435,'color':this[_0x470544(0x1d5)][_0x470544(0x2e4)](_0x4f6b7f),'selection':_0x5b4677},_0x13255c=this[_0x470544(0x295)];_0x13255c[_0x470544(0x204)](_0x4f6b7f,_0xfcf2d9),this[_0x470544(0x286)][_0x470544(0x184)](_0x13255c);}['_onCursorDelete'](_0x4aa4e0){const _0x5982e2=_0x1ab813;let {memberID:_0x2d52e4}=_0x4aa4e0['data'],_0x38bd1a=this[_0x5982e2(0x295)];_0x38bd1a['delete'](_0x2d52e4),this[_0x5982e2(0x286)][_0x5982e2(0x184)](_0x38bd1a);}['_getMergeRange'](_0x58340e,_0x439bc2){const _0x3ccee5=_0x1ab813;var _0x7ac7ff;let _0x1e9132=(_0x7ac7ff=this[_0x3ccee5(0x37b)][_0x3ccee5(0x127)](this['unitID'],t[_0x3ccee5(0x1a1)][_0x3ccee5(0x33c)]))==null||(_0x7ac7ff=_0x7ac7ff[_0x3ccee5(0x33e)](_0x58340e))==null?void 0x0:_0x7ac7ff['getMergeData']();return(_0x1e9132==null?void 0x0:_0x1e9132[_0x3ccee5(0x348)](_0x305837=>t[_0x3ccee5(0x10b)][_0x3ccee5(0x1bb)](_0x305837,_0x439bc2)))||_0x439bc2;}[_0x1ab813(0x329)](){const _0x3938b1=_0x1ab813;let _0x16f63d=new t[(_0x3938b1(0x106))](),_0x17cae7=fe(),_0x3a6f70=()=>{const _0x3a4e70=_0x3938b1;_0x16f63d[_0x3a4e70(0x38f)]();let _0x360a16=(_0x3da870,_0x1ea03a,_0x4b6009,_0x4d24f3)=>{const _0x30caf7=_0x3a4e70;let _0x45ebca=[];switch(_0x3da870['id']){case g[_0x30caf7(0x279)][_0x30caf7(0x2a9)]:_0x45ebca=(0x0,g[_0x30caf7(0x2af)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x319)]:_0x45ebca=(0x0,g[_0x30caf7(0x1a2)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x155)]:_0x45ebca=(0x0,g[_0x30caf7(0x30a)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x349)]:_0x45ebca=(0x0,g[_0x30caf7(0x288)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x2d8)]:_0x45ebca=(0x0,g['handleInsertRangeMoveRight'])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)]['InsertRowCommandId']:_0x45ebca=(0x0,g[_0x30caf7(0x2f5)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x26f)]:_0x45ebca=(0x0,g[_0x30caf7(0x1cb)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x126)]:_0x45ebca=(0x0,g[_0x30caf7(0x229)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x128)]:_0x45ebca=(0x0,g['handleIRemoveRow'])(_0x3da870,_0x4d24f3);break;}let _0x3bc864=(0x0,g[_0x30caf7(0x290)])(_0x45ebca,_0x4d24f3),_0x19d086=this[_0x30caf7(0x295)][_0x30caf7(0x11b)](_0x1ea03a);if(_0x19d086&&_0x3bc864){let _0x571202={..._0x19d086,'range':_0x3bc864};this['cursorInfo'][_0x30caf7(0x204)](_0x1ea03a,_0x571202),_0x17cae7(()=>{const _0x1bc75d=_0x30caf7;let _0x3bf5fc=this['_refRangeService'][_0x1bc75d(0x133)](_0x3bc864,_0x4a8de6=>(_0x3bf5fc['dispose'](),_0x360a16(_0x4a8de6,_0x1ea03a,_0x4b6009,_0x3bc864)));_0x16f63d[_0x1bc75d(0x28d)](_0x3bf5fc);});}return{'redos':[],'undos':[]};};this[_0x3a4e70(0x295)][_0x3a4e70(0x131)]((_0x20907c,_0x44d64c)=>{const _0x291405=_0x3a4e70;let {range:_0xfa55dd,sheetID:_0x2e7c28}=_0x20907c,_0x35bc57=this[_0x291405(0x2d3)][_0x291405(0x133)](_0xfa55dd,_0x2d752f=>(_0x35bc57[_0x291405(0x38f)](),_0x360a16(_0x2d752f,_0x44d64c,_0x2e7c28,_0xfa55dd)));_0x16f63d[_0x291405(0x28d)](_0x35bc57);});};this[_0x3938b1(0x150)]((0x0,t[_0x3938b1(0x2fb)])(this[_0x3938b1(0x286)][_0x3938b1(0x37e)](()=>{_0x3a6f70();})));}[_0x1ab813(0x40b)](){const _0x571a75=_0x1ab813;var _0x39f0c0,_0x154aea;if(this['_online']=!0x0,((_0x39f0c0=this[_0x571a75(0x37b)][_0x571a75(0x2d6)]())==null?void 0x0:_0x39f0c0[_0x571a75(0x15b)]())!==this[_0x571a75(0x38e)])return;let _0x103a36=(_0x154aea=this['_injector'][_0x571a75(0x11b)](g[_0x571a75(0x227)])['getCurrentSelections']())==null?void 0x0:_0x154aea[0x0],_0x5f27c5=this[_0x571a75(0x37b)][_0x571a75(0x304)](t[_0x571a75(0x1a1)][_0x571a75(0x33c)])[_0x571a75(0x275)]();_0x103a36&&_0x5f27c5&&this['_updateLocalCursor'](_0x5f27c5[_0x571a75(0x367)](),_0x103a36);}['_toggleOffline'](){const _0x2d739f=_0x1ab813;this[_0x2d739f(0x374)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x1ab813(0x3b3)])(t['Injector'])),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(E)),x(0x4,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x1c4)])),x(0x5,t[_0x1ab813(0x310)]),x(0x6,t[_0x1ab813(0x378)]),x(0x7,(0x0,t[_0x1ab813(0x3b3)])(g['RefRangeService']))],k);let A=class extends t[_0x1ab813(0x303)]{constructor(_0xff72ea,_0x24afbd,_0x830ada){const _0xf3cbb5=_0x1ab813;super(),this['_univerInstanceService']=_0xff72ea,this['_injector']=_0x24afbd,this[_0xf3cbb5(0x2c4)]=_0x830ada,b(this,'_entities',new Map()),b(this,_0xf3cbb5(0x2b0),new r[(_0xf3cbb5(0x2ab))]()),this[_0xf3cbb5(0x2d9)]();}[_0x1ab813(0x38f)](){const _0xe3ddf4=_0x1ab813;super[_0xe3ddf4(0x38f)](),this[_0xe3ddf4(0x2b0)][_0xe3ddf4(0x1ae)](),this[_0xe3ddf4(0x3fe)]['forEach'](_0x5be307=>_0x5be307[_0xe3ddf4(0x38f)]());}[_0x1ab813(0x31c)](_0x58642d){const _0x441990=_0x1ab813;let _0x552359=this['_entities'][_0x441990(0x11b)](_0x58642d);return _0x552359?_0x552359[_0x441990(0x315)]:this['_entityInit$']['pipe']((0x0,r[_0x441990(0x208)])(_0x19621b=>_0x19621b[_0x441990(0x38e)]===_0x58642d),(0x0,r[_0x441990(0x2a2)])(_0x1fffd0=>_0x1fffd0[_0x441990(0x315)]));}[_0x1ab813(0x2d9)](){const _0x3b0d80=_0x1ab813;this[_0x3b0d80(0x37b)][_0x3b0d80(0x1cc)](t['UniverInstanceType'][_0x3b0d80(0x33c)])[_0x3b0d80(0x32b)]((0x0,r[_0x3b0d80(0x138)])(this[_0x3b0d80(0x179)]))[_0x3b0d80(0x37e)](async _0x521128=>{const _0x31e5e5=_0x3b0d80;let _0x441b8e=_0x521128['unit'][_0x31e5e5(0x15b)](),_0x51efe4=await this[_0x31e5e5(0x3e8)](_0x441b8e);this[_0x31e5e5(0x2b0)][_0x31e5e5(0x184)](_0x51efe4),this['_entities'][_0x31e5e5(0x204)](_0x441b8e,_0x51efe4);}),this['_univerInstanceService'][_0x3b0d80(0x1cc)](t['UniverInstanceType']['UNIVER_DOC'])[_0x3b0d80(0x32b)]((0x0,r[_0x3b0d80(0x138)])(this['dispose$']))[_0x3b0d80(0x32b)]((0x0,r[_0x3b0d80(0x208)])(_0x5c2979=>!_0x5c2979[_0x3b0d80(0x1ce)][_0x3b0d80(0x15b)]()[_0x3b0d80(0x38d)]('__')))[_0x3b0d80(0x37e)](async _0x5aba47=>{const _0x16e396=_0x3b0d80;let {unit:_0xcdc4fe}=_0x5aba47,_0x59e39e=_0xcdc4fe[_0x16e396(0x15b)](),_0x5d3f8a=await this[_0x16e396(0x13a)](_0x59e39e);this[_0x16e396(0x2b0)][_0x16e396(0x184)](_0x5d3f8a),this[_0x16e396(0x3fe)][_0x16e396(0x204)](_0x59e39e,_0x5d3f8a);}),(0x0,r[_0x3b0d80(0x250)])(this[_0x3b0d80(0x37b)][_0x3b0d80(0x306)](t[_0x3b0d80(0x1a1)][_0x3b0d80(0x23e)]),this[_0x3b0d80(0x37b)]['getTypeOfUnitDisposed$'](t[_0x3b0d80(0x1a1)][_0x3b0d80(0x33c)]))[_0x3b0d80(0x32b)]((0x0,r[_0x3b0d80(0x138)])(this[_0x3b0d80(0x179)]))[_0x3b0d80(0x37e)](_0x49e0d9=>{const _0x54b2df=_0x3b0d80;let _0x1f21ad=_0x49e0d9[_0x54b2df(0x15b)](),_0x56ffd6=this[_0x54b2df(0x3fe)][_0x54b2df(0x11b)](_0x1f21ad);_0x56ffd6&&(_0x56ffd6[_0x54b2df(0x38f)](),this[_0x54b2df(0x3fe)][_0x54b2df(0x2c2)](_0x1f21ad));});}async[_0x1ab813(0x3e8)](_0x452ee9){const _0x54317c=_0x1ab813;let _0x587a94=await this[_0x54317c(0x2c4)][_0x54317c(0x38a)](_0x452ee9),_0x5e72c5=this[_0x54317c(0x100)]['createInstance'](k,_0x452ee9,_0x587a94);return _0x5e72c5['init'](),_0x5e72c5;}async[_0x1ab813(0x13a)](_0x2c5fcb){const _0xffcd07=_0x1ab813;let _0x2e633b=await this[_0xffcd07(0x2c4)][_0xffcd07(0x38a)](_0x2c5fcb),_0x2d7807=this[_0xffcd07(0x100)][_0xffcd07(0x2ae)](O,_0x2c5fcb,_0x2e633b);return _0x2d7807[_0xffcd07(0x1ff)](),_0x2d7807;}};A=S([x(0x0,t[_0x1ab813(0x310)]),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x3dd)]))],A);function j(_0x5c3bb2,_0x4e5b85){const _0x133f4f=_0x1ab813;_0x5c3bb2[_0x133f4f(0x271)](),_0x5c3bb2[_0x133f4f(0x3c6)]=_0x133f4f(0x3f5);let _0x269fea=_0x5c3bb2[_0x133f4f(0x1e5)](_0x4e5b85)[_0x133f4f(0x3a0)];return _0x5c3bb2['restore'](),Math['min'](_0x269fea+0x8,0xc8);}function pe(_0x2340c1,_0x3e7a41){const _0x408757=_0x1ab813;let {radius:_0xa0d875,width:_0x2051da,height:_0x34f8c0}=_0x3e7a41;_0xa0d875??=0x0,_0x2051da??=0x1e,_0x34f8c0??=0x1e;let _0xb4c377=0x0,_0x3a76ac=0x0,_0x119549=0x0;_0xb4c377=_0x3a76ac=_0x119549=Math[_0x408757(0x115)](_0xa0d875,_0x2051da/0x2,_0x34f8c0/0x2),_0x2340c1[_0x408757(0x2ac)](),_0x2340c1[_0x408757(0x207)](_0xb4c377,0x0),_0x2340c1[_0x408757(0x3d3)](_0x2051da-_0x3a76ac,0x0),_0x2340c1['arc'](_0x2051da-_0x3a76ac,_0x3a76ac,_0x3a76ac,Math['PI']*0x3/0x2,0x0,!0x1),_0x2340c1[_0x408757(0x3d3)](_0x2051da,_0x34f8c0-_0x119549),_0x2340c1[_0x408757(0x12a)](_0x2051da-_0x119549,_0x34f8c0-_0x119549,_0x119549,0x0,Math['PI']/0x2,!0x1),_0x2340c1[_0x408757(0x3d3)](0x0,_0x34f8c0),_0x2340c1['lineTo'](0x0,_0xb4c377),_0x2340c1[_0x408757(0x12a)](_0xb4c377,_0xb4c377,_0xb4c377,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2340c1[_0x408757(0x108)](),_0x3e7a41['fill']&&(_0x2340c1[_0x408757(0x271)](),_0x2340c1['fillStyle']=_0x3e7a41[_0x408757(0x2e6)],_0x3e7a41[_0x408757(0x1d1)]==='evenodd'?_0x2340c1['fill']('evenodd'):_0x2340c1[_0x408757(0x2e6)](),_0x2340c1['restore']());}var me=class e extends p[_0x1ab813(0x194)]{constructor(_0xb77ac6,_0x57d017){const _0x1773fe=_0x1ab813;super(_0xb77ac6,_0x57d017),b(this,_0x1773fe(0x166),void 0x0),b(this,_0x1773fe(0x167),void 0x0),this['color']=_0x57d017==null?void 0x0:_0x57d017[_0x1773fe(0x166)],this[_0x1773fe(0x167)]=_0x57d017==null?void 0x0:_0x57d017['text'];}static[_0x1ab813(0x11e)](_0x283d4f,_0x317b9c){const _0x5ca841=_0x1ab813;let {text:_0x20f1bf,color:_0xa7a022}=_0x317b9c;_0x283d4f[_0x5ca841(0x271)](),_0x283d4f['font']=_0x5ca841(0x37f);let _0x1baaa8=_0x283d4f[_0x5ca841(0x1e5)](_0x20f1bf)['width'];if(pe(_0x283d4f,{'height':0x14,'radius':0x4,'width':j(_0x283d4f,_0x20f1bf),'fill':_0xa7a022,'evented':!0x1}),_0x283d4f[_0x5ca841(0x287)]=_0x5ca841(0x388),_0x1baaa8>0xc0){let _0xf3448d='',_0x42d4f9=0x0;for(let _0x4f9f64 of _0x20f1bf){let _0x52b963=_0x283d4f['measureText'](_0x4f9f64)[_0x5ca841(0x3a0)];if(_0x42d4f9+_0x52b963<=0xc0-_0x283d4f[_0x5ca841(0x1e5)](_0x5ca841(0x267))[_0x5ca841(0x3a0)])_0xf3448d+=_0x4f9f64,_0x42d4f9+=_0x52b963;else{_0xf3448d+=_0x5ca841(0x267);break;}}_0x283d4f['fillText'](_0xf3448d,0x4,0xf);}else _0x283d4f[_0x5ca841(0x248)](_0x20f1bf,0x4,0xf);_0x283d4f[_0x5ca841(0x282)]();}['_draw'](_0x2fccc2){e['drawWith'](_0x2fccc2,this);}};const M=_0x1ab813(0x338);var N=class{constructor(_0x38aae4,_0x489e58,_0x275be1,_0x4cf7f0){const _0x431acf=_0x1ab813;this[_0x431acf(0x26e)]=_0x38aae4,this[_0x431acf(0x1ec)]=_0x489e58,this['_docSkeleton']=_0x275be1,this[_0x431acf(0x109)]=_0x4cf7f0,b(this,_0x431acf(0x122),[]),b(this,_0x431acf(0x380),null),b(this,_0x431acf(0x182),null),b(this,_0x431acf(0x3f7),null),b(this,'_hideTimer',null),b(this,'_eventUnsubscribe',null),this['_render']();}set[_0x1ab813(0x22f)](_0x4eb50f){const _0x542f61=_0x1ab813;_0x4eb50f?(this[_0x542f61(0x3f7)]&&this[_0x542f61(0x3f7)][_0x542f61(0x385)](),this[_0x542f61(0x182)]&&this[_0x542f61(0x182)][_0x542f61(0x2a1)]()):(this[_0x542f61(0x3f7)]&&this['_anchorDot'][_0x542f61(0x2a1)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x1ab813(0x38f)](){const _0xdf248b=_0x1ab813;for(let _0x41fe28 of this['_shapes'])_0x41fe28['dispose']();this[_0xdf248b(0x182)]&&this[_0xdf248b(0x182)][_0xdf248b(0x38f)](),this[_0xdf248b(0x3f7)]&&this[_0xdf248b(0x3f7)][_0xdf248b(0x38f)](),this[_0xdf248b(0x380)]&&this['_anchor'][_0xdf248b(0x38f)](),this[_0xdf248b(0x341)]&&this[_0xdf248b(0x341)]();}[_0x1ab813(0x25c)](){const _0x4e2f20=_0x1ab813;let {_docSkeleton:_0x8ed62d,_document:_0x356bf4}=this,{color:_0xbe18a4,name:_0x5362d5,ranges:_0x568906}=this[_0x4e2f20(0x26e)],_0x33b22e=_0x356bf4[_0x4e2f20(0x389)](),{docsLeft:_0x4c9f2c,docsTop:_0x7ef27d}=_0x33b22e,_0x9daa8e=new f[(_0x4e2f20(0x1c1))](_0x33b22e,_0x8ed62d);for(let {startOffset:_0x57b0b7,endOffset:_0x3cc30c,rangeType:_0x5880d3,segmentId:_0xa94b3a,segmentPage:_0x23fe89,collapsed:_0x5d3c48,isActive:_0x561580}of _0x568906){let _0x5ecb8c=_0x8ed62d['findNodePositionByCharIndex'](_0x57b0b7,!0x0,_0xa94b3a,_0x23fe89),_0x361175=_0x8ed62d[_0x4e2f20(0x30e)](_0x3cc30c,!0x0,_0xa94b3a,_0x23fe89);_0x361175??=_0x8ed62d[_0x4e2f20(0x30e)](_0x3cc30c-0x1,!0x1,_0xa94b3a,_0x23fe89);let _0x1bf2a0=he(_0x5ecb8c,_0x361175);if(_0x561580&&_0x1bf2a0[_0x4e2f20(0x3d5)]){let {contentBoxPointGroup:_0x16a52a}=_0x9daa8e[_0x4e2f20(0x1e8)](_0x361175,_0x361175);if(_0x16a52a[_0x4e2f20(0x3e4)]===0x0)continue;this['_drawAnchor'](_0xbe18a4,_0x16a52a,_0x4c9f2c,_0x7ef27d,_0x5362d5),this[_0x4e2f20(0x341)]=this[_0x4e2f20(0x144)]();}if(_0x5ecb8c&&_0x361175){if(_0x5880d3===t['DOC_RANGE_TYPE'][_0x4e2f20(0x3d6)]){let {pointGroup:_0x25ec4d}=new f[(_0x4e2f20(0x203))](_0x33b22e,_0x8ed62d)[_0x4e2f20(0x1e8)](_0x5ecb8c,_0x361175)??{};if(_0x25ec4d==null||_0x25ec4d[_0x4e2f20(0x3e4)]===0x0)continue;this[_0x4e2f20(0x10c)](_0xbe18a4,_0x25ec4d,_0x4c9f2c,_0x7ef27d);}else{if(!_0x5d3c48&&_0x1bf2a0[_0x4e2f20(0x300)]){let {borderBoxPointGroup:_0x144af8}=_0x9daa8e[_0x4e2f20(0x1e8)](_0x5ecb8c,_0x361175);if(_0x144af8[_0x4e2f20(0x3e4)]===0x0)continue;this[_0x4e2f20(0x387)](_0xbe18a4,_0x144af8,_0x4c9f2c,_0x7ef27d);}}}}}['_drawAnchor'](_0x51ba0d,_0x53da99,_0x4d374f,_0x34fcb7,_0x3ba73a){const _0x4f62ff=_0x1ab813;let {left:_0x2b407e,top:_0x1a9037,height:_0xfd78e2}=this[_0x4f62ff(0x2ed)](_0x53da99),_0x5b05e2=1.5/this['_getScale'](),_0x493253=new p[(_0x4f62ff(0x39d))](M+(0x0,t[_0x4f62ff(0x1b3)])(0x6),{'left':_0x2b407e+_0x4d374f-_0x5b05e2,'top':_0x1a9037+_0x34fcb7,'height':_0xfd78e2,'width':1.5,'fill':_0x51ba0d||(0x0,p[_0x4f62ff(0x113)])(t['COLORS'][_0x4f62ff(0x280)],0x0),'strokeWidth':_0x5b05e2,'stroke':_0x4f62ff(0x35e),'evented':!0x0});this['_anchor']=_0x493253,this[_0x4f62ff(0x1ec)][_0x4f62ff(0x143)](_0x493253,f['TEXT_RANGE_LAYER_INDEX']);let _0x371a09=new p[(_0x4f62ff(0x39d))](M+(0x0,t[_0x4f62ff(0x1b3)])(0x6),{'left':_0x2b407e+_0x4d374f-_0x5b05e2,'top':_0x1a9037+_0x34fcb7-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x51ba0d||(0x0,p[_0x4f62ff(0x113)])(t[_0x4f62ff(0x130)][_0x4f62ff(0x280)],0x0),'strokeWidth':0x0,'stroke':_0x51ba0d||(0x0,p[_0x4f62ff(0x113)])(t[_0x4f62ff(0x130)][_0x4f62ff(0x280)],0x0),'evented':!0x1});this[_0x4f62ff(0x3f7)]=_0x371a09,this[_0x4f62ff(0x1ec)][_0x4f62ff(0x143)](_0x371a09,f[_0x4f62ff(0x22b)]);let _0x1dd789=new me(M+(0x0,t[_0x4f62ff(0x1b3)])(0x6),{'left':_0x2b407e+_0x4d374f-_0x5b05e2,'top':_0x1a9037+_0x34fcb7-0x14,'text':_0x3ba73a,'color':_0x51ba0d});this['_textBubble']=_0x1dd789,this[_0x4f62ff(0x1ec)]['addObject'](_0x1dd789,f[_0x4f62ff(0x22b)]),this[_0x4f62ff(0x22f)]=!0x1;}[_0x1ab813(0x144)](){const _0x2f60d4=_0x1ab813;let _0x5bcf28=this[_0x2f60d4(0x380)][_0x2f60d4(0x1e6)]['subscribeEvent'](()=>{const _0xb98f0f=_0x2f60d4;this[_0xb98f0f(0x22f)]=!0x0;}),_0x5eb963=this[_0x2f60d4(0x380)][_0x2f60d4(0x340)]['subscribeEvent'](()=>{const _0x41030c=_0x2f60d4;this['_hideTimer']&&clearTimeout(this[_0x41030c(0x158)]),this[_0x41030c(0x158)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x537407=_0x2f60d4;_0x5bcf28[_0x537407(0x18a)](),_0x5eb963[_0x537407(0x18a)]();};}['_drawTextRange'](_0x5572f8,_0x15c0a1,_0x2371d5,_0x41ec9c){const _0x4c6c92=_0x1ab813;let _0x1be717=0.2,_0x213db7=new t[(_0x4c6c92(0x146))](_0x5572f8)['setAlpha'](_0x1be717)[_0x4c6c92(0x3b5)](),_0x56b698=new p[(_0x4c6c92(0x1ca))](_0x4c6c92(0x2d7)+(0x0,t[_0x4c6c92(0x1b3)])(0x6),{'pointsGroup':_0x15c0a1,'fill':_0x213db7||(0x0,p[_0x4c6c92(0x113)])(t[_0x4c6c92(0x130)]['black'],_0x1be717),'left':_0x2371d5,'top':_0x41ec9c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c6c92(0x122)][_0x4c6c92(0x2fc)](_0x56b698),this[_0x4c6c92(0x1ec)][_0x4c6c92(0x143)](_0x56b698,f[_0x4c6c92(0x22b)]);}[_0x1ab813(0x10c)](_0x3c37e3,_0x40c6a2,_0x4d79ba,_0x36a39a){const _0x2ea06f=_0x1ab813;let _0x551afe=0.2,_0x184f8a=new t[(_0x2ea06f(0x146))](_0x3c37e3)[_0x2ea06f(0x121)](_0x551afe)[_0x2ea06f(0x3b5)](),_0x363b89=new p[(_0x2ea06f(0x1ca))](_0x2ea06f(0x2fa)+(0x0,t[_0x2ea06f(0x1b3)])(0x6),{'pointsGroup':_0x40c6a2,'fill':_0x184f8a||(0x0,p['getColor'])(t[_0x2ea06f(0x130)][_0x2ea06f(0x280)],_0x551afe),'left':_0x4d79ba,'top':_0x36a39a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x363b89),this[_0x2ea06f(0x1ec)]['addObject'](_0x363b89,f['TEXT_RANGE_LAYER_INDEX']);}[_0x1ab813(0x2ed)](_0x2a2e75){let _0xa9f324=_0x2a2e75[0x0],_0x4776a0=_0xa9f324[0x0],_0x48948d=_0xa9f324[0x2],{x:_0x577215,y:_0x4beef1}=_0x4776a0,{x:_0x448950,y:_0x250c82}=_0x48948d;return{'left':_0x577215,'top':_0x4beef1,'width':_0x448950-_0x577215,'height':_0x250c82-_0x4beef1};}[_0x1ab813(0x268)](){const _0x54df88=_0x1ab813;let {scaleX:_0x25c116,scaleY:_0x341575}=this['_scene'][_0x54df88(0x118)]();return Math[_0x54df88(0x11f)](_0x25c116,_0x341575);}};function he(_0x214fb7,_0x304444){const _0x266adb=_0x1ab813;if(!_0x304444)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x214fb7||_0x214fb7[_0x266adb(0x1d8)]!==_0x304444[_0x266adb(0x1d8)]||(_0x214fb7[_0x266adb(0x1d8)]===p[_0x266adb(0x278)][_0x266adb(0x18b)]||_0x214fb7[_0x266adb(0x1d8)]===p[_0x266adb(0x278)][_0x266adb(0x2ea)])&&_0x214fb7[_0x266adb(0x2b6)]!==_0x304444[_0x266adb(0x2b6)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2c1af1=(0x0,p[_0x266adb(0x1e2)])(_0x214fb7),_0x5151b9=(0x0,p[_0x266adb(0x1e2)])(_0x304444);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2c1af1==null||_0x5151b9==null?_0x2c1af1==null&&_0x5151b9==null:_0x2c1af1[_0x266adb(0x1d2)]===_0x5151b9['pageIndex']&&_0x2c1af1['columnGroupId']===_0x5151b9[_0x266adb(0x301)]&&_0x2c1af1[_0x266adb(0x263)]===_0x5151b9[_0x266adb(0x263)]};}let P=class extends t[_0x1ab813(0x303)]{constructor(_0x49d205,_0x22f37a,_0x314b98,_0x275ead,_0x5ef2f7){const _0xc744de=_0x1ab813;super(),this[_0xc744de(0x2b3)]=_0x49d205,this[_0xc744de(0x188)]=_0x22f37a,this[_0xc744de(0x291)]=_0x314b98,this[_0xc744de(0x3e2)]=_0x275ead,this[_0xc744de(0x231)]=_0x5ef2f7,b(this,_0xc744de(0xf9),[]),b(this,_0xc744de(0x2f1),[]),this['_init']();}[_0x1ab813(0x2d9)](){const _0x5352a3=_0x1ab813;let _0x1e006d=this[_0x5352a3(0x2b3)][_0x5352a3(0x355)],_0x4913e=this[_0x5352a3(0x188)];this[_0x5352a3(0x150)]((0x0,r['combineLatest'])([this[_0x5352a3(0x291)][_0x5352a3(0x31c)](_0x1e006d),this[_0x5352a3(0x231)][_0x5352a3(0x311)]])[_0x5352a3(0x32b)]((0x0,i[_0x5352a3(0x15f)])(([_0x185d2a,_0x36208b])=>({'skeleton':_0x4913e['getSkeleton'](),'cursors':[..._0x185d2a[_0x5352a3(0x1b7)]()]['flatMap'](_0x4adaec=>({..._0x4adaec,'color':this['_themeService']['getColorFromTheme'](_0x4adaec[_0x5352a3(0x166)])}))})))['subscribe'](_0x1fa400=>{const _0x165a97=_0x5352a3;if(this['_removeCollabCursors'](),_0x1fa400){let {skeleton:_0x123b46,cursors:_0x320247}=_0x1fa400;this[_0x165a97(0x32a)](_0x123b46,_0x320247);}})),this[_0x5352a3(0x339)](),this[_0x5352a3(0x18e)]();}[_0x1ab813(0x32a)](_0x59ade8,_0x4c002c){const _0x5797e1=_0x1ab813;let {scene:_0x3d6aef,mainComponent:_0x3844b}=this[_0x5797e1(0x2b3)],_0x1204fe=_0x4c002c[_0x5797e1(0x15f)](_0x1e0ced=>new N(_0x1e0ced,_0x3d6aef,_0x59ade8,_0x3844b));this['_cursorShapes']=_0x1204fe,this[_0x5797e1(0x2f1)]=_0x4c002c;}[_0x1ab813(0x196)](){const _0x3ef7b0=_0x1ab813;this[_0x3ef7b0(0x3b7)]();let {scene:_0x5867a0,mainComponent:_0x308e59}=this[_0x3ef7b0(0x2b3)],_0xe46b5d=this[_0x3ef7b0(0x188)][_0x3ef7b0(0x30b)](),_0x293744=this[_0x3ef7b0(0x2f1)][_0x3ef7b0(0x15f)](_0x3fb44d=>new N(_0x3fb44d,_0x5867a0,_0xe46b5d,_0x308e59));this[_0x3ef7b0(0xf9)]=_0x293744;}['_removeCollabCursors'](){const _0x2f77f3=_0x1ab813;this[_0x2f77f3(0xf9)]['forEach'](_0x185c64=>_0x185c64['dispose']()),this[_0x2f77f3(0xf9)]=[];}[_0x1ab813(0x18e)](){const _0x433ab5=_0x1ab813;let _0x3212f0=[f[_0x433ab5(0x35f)]['id']];this[_0x433ab5(0x150)](this[_0x433ab5(0x3e2)][_0x433ab5(0x346)](_0xd269ed=>{const _0x144aaf=_0x433ab5;_0x3212f0[_0x144aaf(0x116)](_0xd269ed['id'])&&_0xd269ed[_0x144aaf(0x3c9)][_0x144aaf(0x355)]===this[_0x144aaf(0x2b3)]['unitId']&&this[_0x144aaf(0x196)]();}));}[_0x1ab813(0x339)](){const _0x338b4c=_0x1ab813;this['disposeWithMe']((0x0,t[_0x338b4c(0x3d1)])(this[_0x338b4c(0x2b3)][_0x338b4c(0x173)][_0x338b4c(0x3ba)])[_0x338b4c(0x32b)]((0x0,i['filter'])(_0x5a62ae=>_0x5a62ae['type']===p[_0x338b4c(0x396)][_0x338b4c(0x2f7)]),(0x0,i[_0x338b4c(0x237)])(0x10))[_0x338b4c(0x37e)](()=>{this['_refreshCollabCursors']();}));}};P=S([x(0x1,(0x0,t[_0x1ab813(0x3b3)])(d[_0x1ab813(0x2f6)])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(A)),x(0x3,t[_0x1ab813(0x378)]),x(0x4,(0x0,t['Inject'])(t[_0x1ab813(0x1d3)]))],P);var ge=class extends p['Shape']{constructor(_0x1f7d9a,_0x2736b8){const _0x1533cc=_0x1ab813;super(_0x1f7d9a,_0x2736b8),b(this,_0x1533cc(0x125),void 0x0),b(this,_0x1533cc(0x25d),!0x1),b(this,_0x1533cc(0x272),void 0x0),b(this,_0x1533cc(0x1a3),''),b(this,'_labelPosition','top'),b(this,'_backgroundColor',void 0x0),b(this,_0x1533cc(0x3ee),void 0x0),b(this,_0x1533cc(0x3a8),void 0x0),b(this,_0x1533cc(0x317),0x4),b(this,'_blinkTimer',void 0x0),b(this,_0x1533cc(0x2c6),void 0x0),b(this,_0x1533cc(0x2ec),!0x0),b(this,_0x1533cc(0x2e5),0x0),b(this,_0x1533cc(0x2cb),_0x1533cc(0x31d)),_0x2736b8&&(this[_0x1533cc(0x169)](_0x2736b8),_0x2736b8[_0x1533cc(0x316)]&&(_0x2736b8[_0x1533cc(0x14e)]??this[_0x1533cc(0x317)])&&this[_0x1533cc(0x1a9)](_0x2736b8['highlightSecond']??this[_0x1533cc(0x317)])),this[_0x1533cc(0x1e6)]['subscribeEvent'](()=>this[_0x1533cc(0x169)]({'hovered':!0x0})),this[_0x1533cc(0x340)]['subscribeEvent'](()=>this[_0x1533cc(0x169)]({'hovered':!0x1}));}['setOffsetY'](_0x29ff1e){this['_offsetY']=_0x29ff1e;}[_0x1ab813(0x169)](_0x3c45da){const _0x551a75=_0x1ab813;this[_0x551a75(0x125)]=_0x3c45da[_0x551a75(0x166)]??this[_0x551a75(0x125)],this[_0x551a75(0x25d)]=_0x3c45da[_0x551a75(0x347)]??this['_hovered'],this[_0x551a75(0x272)]=_0x3c45da[_0x551a75(0x10f)]??this[_0x551a75(0x272)],this['_name']=_0x3c45da[_0x551a75(0x1e4)]??this[_0x551a75(0x1a3)],this[_0x551a75(0x1d4)]=_0x3c45da[_0x551a75(0x384)]??this[_0x551a75(0x1d4)],this[_0x551a75(0x2a5)]=_0x3c45da['backgroundColor']??this['_backgroundColor'],this[_0x551a75(0x3ee)]=_0x3c45da[_0x551a75(0x176)]??this['_showText'],this[_0x551a75(0x2cb)]=_0x3c45da['labelHorizontalPosition']??this['_labelHorizontalPosition'],_0x3c45da['highlightSecond']!==void 0x0&&(this['_highlightSecond']=_0x3c45da[_0x551a75(0x14e)]),_0x3c45da[_0x551a75(0x316)]!==void 0x0&&(this[_0x551a75(0x3a8)]=_0x3c45da[_0x551a75(0x316)]),_0x3c45da[_0x551a75(0x14d)]!==void 0x0&&(this['_offsetY']=_0x3c45da[_0x551a75(0x14d)]),this['transformByState']({'width':_0x3c45da['width'],'height':_0x3c45da[_0x551a75(0x1de)]});}[_0x1ab813(0x186)](_0x399101){const _0x411c9e=_0x1ab813;let {row:_0x59b234,column:_0x8a93c7}=_0x399101;if(_0x59b234>=this[_0x411c9e(0x272)][_0x411c9e(0x141)]&&_0x59b234<=this[_0x411c9e(0x272)]['endRow']&&_0x8a93c7>=this[_0x411c9e(0x272)][_0x411c9e(0x1d6)]&&_0x8a93c7<=this[_0x411c9e(0x272)]['endColumn']){this[_0x411c9e(0x169)]({'hovered':!0x0});return;}this[_0x411c9e(0x169)]({'hovered':!0x1});}[_0x1ab813(0x1a9)](_0xafeb91){const _0x1514b6=_0x1ab813;this[_0x1514b6(0x3d8)](),this[_0x1514b6(0x2ec)]=!0x0,this[_0x1514b6(0x2c6)]=window['setInterval'](()=>{const _0x2281cb=_0x1514b6;this[_0x2281cb(0x2ec)]=!this['_isBlinkVisible'],this[_0x2281cb(0x3a2)](!0x0);},0x1f4),this[_0x1514b6(0x3fa)]=window[_0x1514b6(0xfd)](()=>{const _0x1bcef0=_0x1514b6;this[_0x1bcef0(0x3d8)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0xafeb91*0x3e8);}[_0x1ab813(0x3d8)](){const _0x302aa9=_0x1ab813;this[_0x302aa9(0x2c6)]&&=(window['clearInterval'](this[_0x302aa9(0x2c6)]),void 0x0),this['_blinkTimer']&&=(window[_0x302aa9(0x19d)](this[_0x302aa9(0x3fa)]),void 0x0);}['triggerDblclick'](_0x44dae6){return!0x1;}[_0x1ab813(0x38f)](){const _0x210e87=_0x1ab813;this[_0x210e87(0x3d8)](),super['dispose']();}[_0x1ab813(0x3ab)](_0x541d22){const _0x43ca6b=_0x1ab813;let _0x2e2b06=this['_color'],_0x2da08c=this[_0x43ca6b(0x2a5)];if(this['_highlight']&&!this[_0x43ca6b(0x2ec)]&&(_0x2e2b06=this[_0x43ca6b(0x3a1)](this[_0x43ca6b(0x125)]),_0x2da08c=this[_0x43ca6b(0x2a5)]?this[_0x43ca6b(0x3a1)](this[_0x43ca6b(0x2a5)]):void 0x0),p[_0x43ca6b(0x39d)][_0x43ca6b(0x11e)](_0x541d22,{'width':this[_0x43ca6b(0x3a0)],'height':this[_0x43ca6b(0x1de)],'strokeWidth':this[_0x43ca6b(0x226)]||1.5,'stroke':_0x2e2b06,'evented':!0x1,'fill':_0x2da08c}),this[_0x43ca6b(0x25d)]||this[_0x43ca6b(0x3ee)]){_0x541d22[_0x43ca6b(0x271)]();let _0x404c51=this['_labelHorizontalPosition']===_0x43ca6b(0x1f5)?-j(_0x541d22,this[_0x43ca6b(0x1a3)]):this['width'];_0x541d22['transform'](0x1,0x0,0x0,0x1,_0x404c51,(this[_0x43ca6b(0x1d4)]===_0x43ca6b(0x14b)?0x0:-0x14)+(this['_offsetY']??0x0)),me[_0x43ca6b(0x11e)](_0x541d22,{'text':this[_0x43ca6b(0x1a3)],'color':_0x2e2b06}),_0x541d22[_0x43ca6b(0x282)]();}}[_0x1ab813(0x3a1)](_0x1601e2){const _0x4a3385=_0x1ab813;return _0x1601e2[_0x4a3385(0x38d)]('#')?_0x4a3385(0x27d)+Number['parseInt'](_0x1601e2[_0x4a3385(0x105)](0x1,0x3),0x10)+',\x20'+Number[_0x4a3385(0x3ef)](_0x1601e2[_0x4a3385(0x105)](0x3,0x5),0x10)+',\x20'+Number[_0x4a3385(0x3ef)](_0x1601e2[_0x4a3385(0x105)](0x5,0x7),0x10)+_0x4a3385(0x3a3):_0x1601e2['startsWith'](_0x4a3385(0x3e9))?_0x1601e2[_0x4a3385(0x24b)](/[\d.]+\)$/g,'0.2)'):_0x1601e2['startsWith'](_0x4a3385(0x215))?_0x1601e2['replace'](_0x4a3385(0x215),_0x4a3385(0x3e9))[_0x4a3385(0x24b)](')',',\x200.2)'):_0x1601e2;}};let F=class extends t[_0x1ab813(0x303)]{constructor(_0x5a6aa0,_0x446e3e,_0x42068f,_0x4d27a5){const _0x19fac6=_0x1ab813;super(),this[_0x19fac6(0x2b3)]=_0x5a6aa0,this[_0x19fac6(0x2fd)]=_0x446e3e,this[_0x19fac6(0x291)]=_0x42068f,this['_themeService']=_0x4d27a5,b(this,_0x19fac6(0x2f1),new Set()),b(this,_0x19fac6(0x16f),null),b(this,_0x19fac6(0x328),null),this[_0x19fac6(0x2d9)]();}['_init'](){const _0x40af96=_0x1ab813;this[_0x40af96(0x2fd)][_0x40af96(0x224)][_0x40af96(0x32b)]((0x0,i[_0x40af96(0x138)])(this[_0x40af96(0x179)]),(0x0,i['switchMap'])(_0x555f9a=>{const _0x29747c=_0x40af96;if(_0x555f9a){let _0x3824cb=_0x555f9a[_0x29747c(0x352)];return(0x0,r['combineLatest'])(this[_0x29747c(0x291)]['getCollabCursors$'](this['_context']['unitId']),this[_0x29747c(0x231)][_0x29747c(0x311)])[_0x29747c(0x32b)]((0x0,i[_0x29747c(0x15f)])(([_0xca27ca,_0x1c84d1])=>{let _0x56e047=new Map();return _0xca27ca['forEach']((_0x5a81e2,_0x1a5649)=>{const _0x3b8202=_0x8a3e;if(_0x5a81e2[_0x3b8202(0x39f)]===_0x3824cb){let _0x32261c={..._0x5a81e2};_0x32261c[_0x3b8202(0x166)]=this[_0x3b8202(0x231)][_0x3b8202(0x1bd)](_0x5a81e2[_0x3b8202(0x166)]),_0x56e047[_0x3b8202(0x204)](_0x1a5649,_0x32261c);}}),{'skeleton':_0x555f9a,'cursors':_0x56e047};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x50ca92,cursors:_0x227f08})=>{const _0x31891a=_0x40af96;this['_removeCollabCursors'](),_0x50ca92&&this[_0x31891a(0x32a)](_0x50ca92,_0x227f08);}),this[_0x40af96(0x150)](this['_sheetSkeletonManagerService'][_0x40af96(0x224)][_0x40af96(0x32b)]((0x0,i[_0x40af96(0x138)])(this[_0x40af96(0x179)]))[_0x40af96(0x37e)](_0xabc102=>{const _0xf6be5=_0x40af96;var _0x10365c;if(_0xabc102==null)return;(_0x10365c=this['_pointerMoveDisposable'])==null||_0x10365c['unsubscribe'](),this[_0xf6be5(0x328)]=null;let {skeleton:_0x304f5a}=_0xabc102,{scene:_0x2ffab8}=this['_context'];this[_0xf6be5(0x328)]=_0x2ffab8[_0xf6be5(0x330)][_0xf6be5(0x362)]((0x0,t['debounce'])(_0x4835fd=>{const _0x504bfd=_0xf6be5;var _0x1b7ffa,_0x17d998;let {offsetX:_0x2439f6,offsetY:_0x180419}=_0x4835fd,{x:_0x300bfa,y:_0x7487f1}=_0x2ffab8[_0x504bfd(0x2c3)](p[_0x504bfd(0x3e7)][_0x504bfd(0x3bc)]([_0x2439f6,_0x180419])),{scaleX:_0x20f612,scaleY:_0x41a267}=_0x2ffab8['getAncestorScale'](),_0x135946=_0x2ffab8[_0x504bfd(0x20e)](p[_0x504bfd(0x401)][_0x504bfd(0xf6)]),_0x241f09=_0x2ffab8[_0x504bfd(0x293)](p['Vector2'][_0x504bfd(0x3bc)]([_0x300bfa,_0x7487f1]),_0x135946),_0x5cab3b=_0x304f5a[_0x504bfd(0x2db)](_0x2439f6,_0x180419,_0x20f612,_0x41a267,_0x241f09);(((_0x1b7ffa=this['_lastPointer'])==null?void 0x0:_0x1b7ffa[_0x504bfd(0x3d2)])!==_0x5cab3b[_0x504bfd(0x3d2)]||((_0x17d998=this[_0x504bfd(0x16f)])==null?void 0x0:_0x17d998[_0x504bfd(0x1fa)])!==_0x5cab3b['row'])&&this[_0x504bfd(0x2f1)]['forEach'](_0x5e1481=>{const _0x55beba=_0x504bfd;_0x5e1481[_0x55beba(0x186)](_0x5cab3b);});},0x64));})),this[_0x40af96(0x150)]((0x0,t[_0x40af96(0x2fb)])(()=>{const _0x4718c8=_0x40af96;var _0x1233e6;(_0x1233e6=this[_0x4718c8(0x328)])==null||_0x1233e6['unsubscribe'](),this[_0x4718c8(0x328)]=null;}));}['_updateCollabCursors'](_0x3ac395,_0xe51ef7){const _0x39e01c=_0x1ab813;let _0x200e1a=this[_0x39e01c(0x2fd)][_0x39e01c(0x2c5)]();if(!_0x200e1a)return;let _0x555e72=this[_0x39e01c(0x366)]();if(!_0x555e72)return;this[_0x39e01c(0x2f1)]['forEach'](_0x3bf09c=>{const _0x47b7e1=_0x39e01c;_0x3bf09c[_0x47b7e1(0x3a2)]();});let {scene:_0x319128}=_0x555e72,_0x1673f7=_e(Array['from'](_0xe51ef7[_0x39e01c(0x1b7)]()))[_0x39e01c(0x15f)](_0x3290ac=>{const _0x4fbfc7=_0x39e01c;let {color:_0x1c8483,range:_0x4e6b77,name:_0x5add13,selection:_0x43f682,sheetID:_0x1ff2ff}=_0x3290ac,{startColumn:_0xd36018,startRow:_0x48ea39,endColumn:_0x1fd14c,endRow:_0x38e287}=_0x4e6b77,_0x4d900a=(0x0,_[_0x4fbfc7(0x40a)])(_0x48ea39,_0xd36018,_0x319128,_0x200e1a),_0x2510e0=(0x0,_[_0x4fbfc7(0x40a)])(_0x38e287,_0x1fd14c,_0x319128,_0x200e1a),{columnHeaderHeightAndMarginTop:_0x16d5b4}=_0x200e1a,{startX:_0x11649e,startY:_0xb3b10c}=_0x4d900a,{endX:_0x454283,endY:_0x1a31b0}=_0x2510e0,_0x1ac2d8=_0x454283-_0x11649e,_0x2b6201=_0x1a31b0-_0xb3b10c;return new ge(_0x5add13,{'labelPosition':_0xb3b10c-_0x16d5b4>=0x14?'top':_0x4fbfc7(0x14b),'sheetID':_0x1ff2ff,'range':_0x4e6b77,'color':_0x1c8483,'name':_0x5add13,'selection':_0x43f682,'left':_0x11649e,'top':_0xb3b10c,'width':_0x1ac2d8,'height':_0x2b6201,'evented':!0x1,'zIndex':0x1389});});_0x319128[_0x39e01c(0xfb)](_0x1673f7,0x1),this['_cursors']=new Set(_0x1673f7);}['_removeCollabCursors'](){const _0x5c97d5=_0x1ab813;var _0x51ab99;(_0x51ab99=this[_0x5c97d5(0x2f1)])==null||_0x51ab99['forEach'](_0x230968=>_0x230968[_0x5c97d5(0x38f)]());}[_0x1ab813(0x366)](){const _0x435fec=_0x1ab813;return(0x0,_[_0x435fec(0x27f)])(this[_0x435fec(0x2b3)][_0x435fec(0x1ce)],this['_context']);}};F=S([x(0x1,(0x0,t['Inject'])(_['SheetSkeletonManagerService'])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(A)),x(0x3,(0x0,t['Inject'])(t[_0x1ab813(0x1d3)]))],F);function _e(_0x3eef52){const _0x1f998b=_0x1ab813;let _0x22c0f4=new Map();return _0x3eef52['forEach'](_0xc2744=>{const _0x1e8f81=_0x8a3e;if(_0x22c0f4['has'](_0xc2744[_0x1e8f81(0x258)])){let _0x3c93f1=_0x22c0f4[_0x1e8f81(0x11b)](_0xc2744['selection']);_0x3c93f1[_0x1e8f81(0x1e4)]+=',\x20'+_0xc2744['name'];}else _0x22c0f4[_0x1e8f81(0x204)](_0xc2744[_0x1e8f81(0x258)],_0xc2744);}),Array[_0x1f998b(0x1ab)](_0x22c0f4[_0x1f998b(0x1b7)]());}function I(_0x42c053){const _0x41e9ce=_0x1ab813;return typeof _0x42c053==_0x41e9ce(0x313)&&!!_0x42c053;}function ve(_0x28f92c){const _0x2c2b7e=_0x1ab813;return _0x28f92c[_0x2c2b7e(0x3bd)]===l[_0x2c2b7e(0x2bd)][_0x2c2b7e(0x17a)]&&_0x2c2b7e(0x21a)in _0x28f92c&&I(_0x28f92c[_0x2c2b7e(0x21a)])&&typeof _0x28f92c[_0x2c2b7e(0x21a)][_0x2c2b7e(0x2dc)]=='string'&&typeof _0x28f92c[_0x2c2b7e(0x21a)][_0x2c2b7e(0x258)]=='string';}function ye(_0x400fca){const _0x428d0b=_0x1ab813;return _0x400fca[_0x428d0b(0x3bd)]===l[_0x428d0b(0x2bd)][_0x428d0b(0x233)]&&_0x428d0b(0x21a)in _0x400fca&&I(_0x400fca[_0x428d0b(0x21a)])&&typeof _0x400fca[_0x428d0b(0x21a)][_0x428d0b(0x2dc)]==_0x428d0b(0x211);}function be(_0x1284f9,_0x1d8f83){const _0x10aca8=_0x1ab813;let _0x495eca;try{_0x495eca=JSON[_0x10aca8(0x1b6)](_0x1284f9);}catch{return null;}if(!I(_0x495eca)||typeof _0x495eca['kind']!=_0x10aca8(0x211)||typeof _0x495eca[_0x10aca8(0x355)]!='string'||typeof _0x495eca[_0x10aca8(0x25f)]!=_0x10aca8(0x211))return null;let _0x56b20c=typeof _0x495eca['unitType']==_0x10aca8(0x1c7)?_0x495eca['unitType']:_0x1d8f83;if(_0x56b20c==null)return null;let _0x405116=I(_0x495eca['pointer'])&&typeof _0x495eca[_0x10aca8(0x3bb)]['x']==_0x10aca8(0x1c7)&&Number[_0x10aca8(0x238)](_0x495eca['pointer']['x'])&&typeof _0x495eca['pointer']['y']==_0x10aca8(0x1c7)&&Number[_0x10aca8(0x238)](_0x495eca[_0x10aca8(0x3bb)]['y'])?{'x':_0x495eca[_0x10aca8(0x3bb)]['x'],'y':_0x495eca[_0x10aca8(0x3bb)]['y']}:null;return{'kind':_0x495eca[_0x10aca8(0x26b)],'unitType':_0x56b20c,'unitId':_0x495eca['unitId'],'subUnitId':_0x495eca[_0x10aca8(0x25f)],'selectedIds':Array[_0x10aca8(0x3af)](_0x495eca[_0x10aca8(0x216)])?_0x495eca['selectedIds'][_0x10aca8(0x208)](_0x53767d=>typeof _0x53767d=='string'):[],'focusedId':typeof _0x495eca['focusedId']==_0x10aca8(0x211)?_0x495eca[_0x10aca8(0x209)]:null,'pointer':_0x405116};}function xe(_0x2e2376,_0x256946,_0x1079e4){const _0x55b214=_0x1ab813;return{'kind':_0x256946,'unitType':_0x2e2376,'unitId':_0x1079e4[_0x55b214(0x355)],'subUnitId':_0x1079e4[_0x55b214(0x25f)],'selectedIds':Array[_0x55b214(0x1ab)](_0x1079e4['selectedIds']),'focusedId':_0x1079e4['focusedId'],'pointer':_0x1079e4['pointer']?{..._0x1079e4[_0x55b214(0x3bb)]}:null};}let L=class extends t[_0x1ab813(0x303)]{constructor(_0x2d7dd8,_0x2da4f8,_0xe4797e,_0x1cb64c,_0x5b5f95,_0x5054cc){const _0x2c2fba=_0x1ab813;super(),this['unitId']=_0x2d7dd8,this[_0x2c2fba(0xf3)]=_0x2da4f8,this[_0x2c2fba(0x1b4)]=_0xe4797e,this[_0x2c2fba(0x1d5)]=_0x1cb64c,this[_0x2c2fba(0x15a)]=_0x5b5f95,this[_0x2c2fba(0x3e2)]=_0x5054cc,b(this,_0x2c2fba(0x374),!0x1),b(this,_0x2c2fba(0x117),!0x1);}get[_0x1ab813(0x120)](){const _0x58ee38=_0x1ab813;return this['_adapter'][_0x58ee38(0x120)];}['dispose'](){const _0x5deb34=_0x1ab813;this[_0x5deb34(0x1d7)](),super['dispose']();}[_0x1ab813(0x1ff)](){const _0x5b8b1d=_0x1ab813;this[_0x5b8b1d(0x117)]||(this['_initialized']=!0x0,this['_session'][_0x5b8b1d(0x322)][_0x5b8b1d(0x32b)]((0x0,r[_0x5b8b1d(0x138)])(this[_0x5b8b1d(0x179)]))[_0x5b8b1d(0x37e)](_0x10394a=>{const _0x5350c0=_0x5b8b1d;if(_0x10394a===e['SessionStatus'][_0x5350c0(0x2bf)]){this[_0x5350c0(0x374)]=!0x0;let _0x5dc325=this[_0x5350c0(0x1b4)][_0x5350c0(0x2c7)](this[_0x5350c0(0x355)]);_0x5dc325&&this[_0x5350c0(0x10a)](_0x5dc325);return;}this['_online']=!0x1,this[_0x5350c0(0x1d7)]();}),this['_session'][_0x5b8b1d(0x20d)][_0x5b8b1d(0x32b)]((0x0,r[_0x5b8b1d(0x138)])(this[_0x5b8b1d(0x179)]))[_0x5b8b1d(0x37e)](_0x209474=>{const _0x409cb6=_0x5b8b1d;ve(_0x209474)?this[_0x409cb6(0x2ff)](_0x209474):ye(_0x209474)&&this[_0x409cb6(0x181)](_0x209474[_0x409cb6(0x21a)][_0x409cb6(0x2dc)]);}),this[_0x5b8b1d(0x1b4)][_0x5b8b1d(0x335)][_0x5b8b1d(0x32b)]((0x0,r[_0x5b8b1d(0x208)])(_0x18deb6=>this[_0x5b8b1d(0x374)]&&_0x18deb6[_0x5b8b1d(0x355)]===this[_0x5b8b1d(0x355)]),(0x0,r['throttle'])(_0x59087e=>(0x0,r['timer'])(_0x59087e[_0x5b8b1d(0x17f)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x5b8b1d(0x138)])(this[_0x5b8b1d(0x179)]))[_0x5b8b1d(0x37e)](_0x285bb3=>this[_0x5b8b1d(0x10a)](_0x285bb3)));}[_0x1ab813(0x10a)](_0x5b6140){const _0x1fb9c3=_0x1ab813;let _0x11e0df=this[_0x1fb9c3(0xf3)][_0x1fb9c3(0x394)]();if(!_0x11e0df||!this[_0x1fb9c3(0x374)])return;let _0x3f5275={'eventID':l['CollaborationEvent'][_0x1fb9c3(0x17a)],'data':{'unitID':this['unitId'],'memberID':_0x11e0df,'selection':JSON[_0x1fb9c3(0x402)](xe(this[_0x1fb9c3(0x120)],this['_adapter'][_0x1fb9c3(0x3dc)],_0x5b6140))}};this['_session'][_0x1fb9c3(0x255)](_0x3f5275,this['unitId'])[_0x1fb9c3(0xf7)](()=>void 0x0);}[_0x1ab813(0x2ff)](_0x55d184){const _0xd1332b=_0x1ab813;let {memberID:_0x2e5765,selection:_0x5d1670}=_0x55d184['data'];if(_0x2e5765===this[_0xd1332b(0xf3)][_0xd1332b(0x394)]())return;let _0x19d9f8=be(_0x5d1670,this[_0xd1332b(0x120)]);if(!_0x19d9f8||_0x19d9f8[_0xd1332b(0x26b)]!==this[_0xd1332b(0x1b4)][_0xd1332b(0x3dc)]||_0x19d9f8[_0xd1332b(0x120)]!==this[_0xd1332b(0x120)]||_0x19d9f8[_0xd1332b(0x355)]!==this[_0xd1332b(0x355)])return;let _0x587eb0=this[_0xd1332b(0x15a)][_0xd1332b(0x24e)](this['unitId'],_0x2e5765),_0x1609a4={'unitId':_0x19d9f8[_0xd1332b(0x355)],'subUnitId':_0x19d9f8['subUnitId'],'selectedIds':_0x19d9f8[_0xd1332b(0x216)],'focusedId':_0x19d9f8[_0xd1332b(0x209)],'pointer':_0x19d9f8[_0xd1332b(0x3bb)],'memberId':_0x2e5765,'color':this[_0xd1332b(0x1d5)][_0xd1332b(0x2e4)](_0x2e5765),'name':(_0x587eb0==null?void 0x0:_0x587eb0[_0xd1332b(0x1e4)])??_0x2e5765};this[_0xd1332b(0x3e2)]['executeCommand'](w['id'],{'unitType':this[_0xd1332b(0x120)],'update':{'type':_0xd1332b(0x204),'state':_0x1609a4}})[_0xd1332b(0xf7)](()=>void 0x0);}[_0x1ab813(0x181)](_0x441d83){const _0x3aab6a=_0x1ab813;this['_commandService'][_0x3aab6a(0x377)](w['id'],{'unitType':this[_0x3aab6a(0x120)],'update':{'type':_0x3aab6a(0x220),'unitId':this[_0x3aab6a(0x355)],'memberId':_0x441d83}})[_0x3aab6a(0xf7)](()=>void 0x0);}[_0x1ab813(0x1d7)](){const _0x358f2b=_0x1ab813;this['_commandService'][_0x358f2b(0x377)](w['id'],{'unitType':this[_0x358f2b(0x120)],'update':{'type':_0x358f2b(0x123),'unitId':this[_0x358f2b(0x355)]}})[_0x358f2b(0xf7)](()=>void 0x0);}};L=S([x(0x3,(0x0,t[_0x1ab813(0x3b3)])(E)),x(0x4,(0x0,t[_0x1ab813(0x3b3)])(e['MemberService'])),x(0x5,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x378)]))],L);let R=class extends t[_0x1ab813(0x303)]{constructor(_0x54f31d,_0x1cf447,_0x41fbd4,_0x79fc09){const _0x339c18=_0x1ab813;super(),this['_univerInstanceService']=_0x54f31d,this['_injector']=_0x1cf447,this[_0x339c18(0x2c4)]=_0x41fbd4,this[_0x339c18(0x172)]=_0x79fc09,b(this,_0x339c18(0x189),!0x1),b(this,_0x339c18(0x3fe),new Map()),b(this,_0x339c18(0x2d2),new Map()),b(this,_0x339c18(0x2e2),new Map()),this[_0x339c18(0x2d9)]();}[_0x1ab813(0x38f)](){const _0x7416c5=_0x1ab813;this[_0x7416c5(0x189)]=!0x0,this[_0x7416c5(0x2e2)][_0x7416c5(0x131)](_0x387433=>_0x387433[_0x7416c5(0x38f)]()),this[_0x7416c5(0x2e2)][_0x7416c5(0x123)](),this[_0x7416c5(0x3fe)][_0x7416c5(0x131)](_0x534391=>_0x534391[_0x7416c5(0x38f)]()),this[_0x7416c5(0x3fe)][_0x7416c5(0x123)](),this[_0x7416c5(0x2d2)][_0x7416c5(0x123)](),super[_0x7416c5(0x38f)]();}[_0x1ab813(0x2d9)](){const _0x2c7306=_0x1ab813;this[_0x2c7306(0x172)][_0x2c7306(0x219)]['pipe']((0x0,r['takeUntil'])(this[_0x2c7306(0x179)]))[_0x2c7306(0x37e)](_0x431b63=>this[_0x2c7306(0x30d)](_0x431b63));}[_0x1ab813(0x30d)](_0x249179){const _0x1b2a5e=_0x1ab813;let _0x444a32=new Set(_0x249179[_0x1b2a5e(0x15f)](_0x1899c8=>_0x1899c8['unitType']));this[_0x1b2a5e(0x2e2)][_0x1b2a5e(0x131)]((_0x273af8,_0x95644)=>{const _0x4b28ef=_0x1b2a5e;_0x444a32['has'](_0x95644)||(_0x273af8[_0x4b28ef(0x38f)](),this['_adapterDisposables'][_0x4b28ef(0x2c2)](_0x95644),this[_0x4b28ef(0x2b7)](_0x95644));}),_0x249179['forEach'](_0x33aef5=>{const _0x10e9d9=_0x1b2a5e;this[_0x10e9d9(0x2e2)][_0x10e9d9(0x3fb)](_0x33aef5[_0x10e9d9(0x120)])||this[_0x10e9d9(0x3ea)](_0x33aef5);});}[_0x1ab813(0x3ea)](_0x229622){const _0x42feba=_0x1ab813;let _0x34557f=new t[(_0x42feba(0x106))]();this[_0x42feba(0x2e2)][_0x42feba(0x204)](_0x229622[_0x42feba(0x120)],_0x34557f),_0x34557f[_0x42feba(0x28d)](_0x229622[_0x42feba(0x2a4)]()),this[_0x42feba(0x37b)]['getAllUnitsForType'](_0x229622[_0x42feba(0x120)])[_0x42feba(0x131)](_0x2c539d=>this[_0x42feba(0x2f0)](_0x2c539d[_0x42feba(0x15b)](),_0x229622)[_0x42feba(0xf7)](()=>void 0x0));let _0x302e37=this[_0x42feba(0x37b)]['getTypeOfUnitAdded$'](_0x229622[_0x42feba(0x120)])[_0x42feba(0x37e)](({unit:_0x20d5a2})=>this[_0x42feba(0x2f0)](_0x20d5a2[_0x42feba(0x15b)](),_0x229622)[_0x42feba(0xf7)](()=>void 0x0));_0x34557f[_0x42feba(0x28d)]((0x0,t['toDisposable'])(()=>_0x302e37[_0x42feba(0x18a)]()));let _0x577053=this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x229622[_0x42feba(0x120)])[_0x42feba(0x37e)](_0x2e7eba=>this[_0x42feba(0x3f2)](_0x2e7eba[_0x42feba(0x15b)]()));_0x34557f[_0x42feba(0x28d)]((0x0,t[_0x42feba(0x2fb)])(()=>_0x577053[_0x42feba(0x18a)]()));}async[_0x1ab813(0x2f0)](_0x5c7dac,_0x49263c){const _0x15e261=_0x1ab813;if(this[_0x15e261(0x3fe)][_0x15e261(0x3fb)](_0x5c7dac)||this[_0x15e261(0x2d2)][_0x15e261(0x3fb)](_0x5c7dac))return;let _0x531e5a={};this[_0x15e261(0x2d2)][_0x15e261(0x204)](_0x5c7dac,_0x531e5a);let _0x476398=await this[_0x15e261(0x2c4)][_0x15e261(0x38a)](_0x5c7dac)['catch'](_0x92e0d9=>{const _0x25685a=_0x15e261;throw this['_pendingEntities'][_0x25685a(0x11b)](_0x5c7dac)===_0x531e5a&&this[_0x25685a(0x2d2)][_0x25685a(0x2c2)](_0x5c7dac),_0x92e0d9;});if(this[_0x15e261(0x189)]||this[_0x15e261(0x2d2)][_0x15e261(0x11b)](_0x5c7dac)!==_0x531e5a||this[_0x15e261(0x172)]['get'](_0x49263c['unitType'])!==_0x49263c){this['_pendingEntities'][_0x15e261(0x11b)](_0x5c7dac)===_0x531e5a&&this[_0x15e261(0x2d2)]['delete'](_0x5c7dac);return;}let _0x1834ca=this[_0x15e261(0x100)]['createInstance'](L,_0x5c7dac,_0x476398,_0x49263c);_0x1834ca[_0x15e261(0x1ff)](),this[_0x15e261(0x2d2)]['delete'](_0x5c7dac),this['_entities'][_0x15e261(0x204)](_0x5c7dac,_0x1834ca);}['_disposeEntity'](_0x31313c){const _0x349e7c=_0x1ab813;this[_0x349e7c(0x2d2)][_0x349e7c(0x2c2)](_0x31313c);let _0x136cda=this[_0x349e7c(0x3fe)]['get'](_0x31313c);_0x136cda&&(_0x136cda['dispose'](),this[_0x349e7c(0x3fe)][_0x349e7c(0x2c2)](_0x31313c));}[_0x1ab813(0x2b7)](_0x5e5d50){const _0x36c787=_0x1ab813;this['_univerInstanceService']['getAllUnitsForType'](_0x5e5d50)[_0x36c787(0x131)](_0x37fe24=>this[_0x36c787(0x2d2)][_0x36c787(0x2c2)](_0x37fe24[_0x36c787(0x15b)]())),Array[_0x36c787(0x1ab)](this[_0x36c787(0x3fe)][_0x36c787(0x136)]())[_0x36c787(0x131)](([_0x443692,_0x1bd878])=>{const _0x54d6fb=_0x36c787;_0x1bd878[_0x54d6fb(0x120)]===_0x5e5d50&&this[_0x54d6fb(0x3f2)](_0x443692);});}};R=S([x(0x0,t[_0x1ab813(0x310)]),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x3dd)])),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(n[_0x1ab813(0x17d)]))],R);let z=class extends t[_0x1ab813(0x29a)]{constructor(_0x30fe5e,_0x576848,_0x2074fe,_0x4a7a0d,_0x44f74b,_0x17f903){const _0x55e195=_0x1ab813;super(),this['_beforeCloseService']=_0x30fe5e,this[_0x55e195(0x39b)]=_0x576848,this[_0x55e195(0x1c2)]=_0x2074fe,this['_messageService']=_0x4a7a0d,this[_0x55e195(0x33a)]=_0x44f74b,this[_0x55e195(0xfc)]=_0x17f903,this[_0x55e195(0x405)](),this[_0x55e195(0x363)]();}['_setupBeforeClosingHandler'](){const _0x2f924b=_0x1ab813;this[_0x2f924b(0x150)](this['_beforeCloseService'][_0x2f924b(0x357)](()=>{const _0x31dca8=_0x2f924b;if(this[_0x31dca8(0x39b)][_0x31dca8(0x13c)][_0x31dca8(0x1e9)])return this[_0x31dca8(0xfc)]['t'](_0x31dca8(0x3c8));}));}[_0x1ab813(0x363)](){const _0x2995d3=_0x1ab813;this[_0x2995d3(0x150)](this['_collaborationUIEventService'][_0x2995d3(0x20d)]['subscribe'](_0x58f1ab=>{const _0x35d103=_0x2995d3;_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x147)]&&this['_messageService'][_0x35d103(0x2a1)]({'type':a[_0x35d103(0x28f)][_0x35d103(0x1c3)],'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x40c))}),_0x58f1ab['id']===e[_0x35d103(0x225)]['CLOSE_ROOM']&&this[_0x35d103(0x14a)][_0x35d103(0x2a1)]({'type':a[_0x35d103(0x28f)][_0x35d103(0x1c3)],'content':this['_localeService']['t'](_0x35d103(0x3a5))}),_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x256)]&&this[_0x35d103(0x33a)][_0x35d103(0x2a1)]({'title':this[_0x35d103(0xfc)]['t'](_0x35d103(0x39e)),'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x12f)),'type':'error','duration':0x0}),_0x58f1ab['id']===e['CollaborationUIEventId']['CONFLICT']&&this[_0x35d103(0x33a)][_0x35d103(0x2a1)]({'title':this[_0x35d103(0xfc)]['t'](_0x35d103(0x18c)),'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x1b2)),'type':_0x35d103(0x159),'duration':0x0}),_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x399)]&&this[_0x35d103(0x14a)]['show']({'type':a[_0x35d103(0x28f)][_0x35d103(0x1c3)],'content':this[_0x35d103(0xfc)]['t'](_0x58f1ab[_0x35d103(0x21a)]||'')}),_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x1fc)]&&this[_0x35d103(0x14a)]['show']({'type':a[_0x35d103(0x28f)][_0x35d103(0x1c3)],'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x323))}),_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x221)]&&this[_0x35d103(0x14a)]['show']({'type':a[_0x35d103(0x28f)][_0x35d103(0x274)],'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x1ba))}),_0x58f1ab['id']===e['CollaborationUIEventId'][_0x35d103(0x332)]&&this[_0x35d103(0x14a)][_0x35d103(0x2a1)]({'type':a[_0x35d103(0x28f)][_0x35d103(0x274)],'content':this[_0x35d103(0xfc)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};z=S([x(0x0,n[_0x1ab813(0x16c)]),x(0x1,e[_0x1ab813(0x1d9)]),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(e['CollaborationUIEventService'])),x(0x3,n['IMessageService']),x(0x4,n['INotificationService']),x(0x5,(0x0,t['Inject'])(t[_0x1ab813(0x324)]))],z);const B=(0x0,t[_0x1ab813(0x254)])(_0x1ab813(0x13e));let V=class extends t[_0x1ab813(0x303)]{constructor(_0x339739,_0x52204c,_0x1cc255,_0x3a73df){const _0x6bab6f=_0x1ab813;super(),this[_0x6bab6f(0x1fb)]=_0x339739,this['_logService']=_0x52204c,this['_commandService']=_0x1cc255,this['_dataLoaderService']=_0x3a73df,this[_0x6bab6f(0x2d9)]()[_0x6bab6f(0xf7)](_0xed2a08=>this[_0x6bab6f(0x308)][_0x6bab6f(0x159)]('[CollaborationDataLoaderController]',_0xed2a08));}async[_0x1ab813(0x2d9)](){const _0x2654ce=_0x1ab813;let _0x5e52f4=this[_0x2654ce(0x1fb)][_0x2654ce(0x326)](_0x2654ce(0x1ce)),_0x348b8a=this[_0x2654ce(0x1fb)][_0x2654ce(0x326)](_0x2654ce(0x1e1)),_0x27bdc2=this['_urlService'][_0x2654ce(0x326)](_0x2654ce(0x1cd));if(!_0x5e52f4||!_0x348b8a){this[_0x2654ce(0x308)]['debug']('[CollaborationDataLoaderController]',_0x2654ce(0x37d));return;}let _0x2c862f=await this[_0x2654ce(0x129)][_0x2654ce(0x19a)](_0x5e52f4,Number(_0x348b8a),_0x27bdc2);this[_0x2654ce(0x26a)]||_0x2c862f&&_0x2c862f instanceof t[_0x2654ce(0x199)]&&await this['_setupSubUnitSync'](_0x2c862f);}async[_0x1ab813(0x178)](_0x40d510){const _0x20baac=_0x1ab813;await this[_0x20baac(0x359)](_0x40d510),!this[_0x20baac(0x26a)]&&(_0x40d510['activeSheet$'][_0x20baac(0x32b)]((0x0,r[_0x20baac(0x138)])(this[_0x20baac(0x179)]))['subscribe'](_0x34b6d3=>{const _0x3c765e=_0x20baac;_0x34b6d3&&this[_0x3c765e(0x11a)](_0x34b6d3);}),this[_0x20baac(0x1fb)][_0x20baac(0x261)]['pipe']((0x0,r[_0x20baac(0x138)])(this[_0x20baac(0x179)]))['subscribe'](()=>{const _0x3fdb63=_0x20baac;this['_updateSubUnitFromURLParams'](_0x40d510)[_0x3fdb63(0xf7)](_0x7da5b9=>this[_0x3fdb63(0x308)][_0x3fdb63(0x159)]('[CollaborationDataLoaderController]',_0x7da5b9));}));}['_updateURLWithCurrentState'](_0x4e8d14,_0x5269a6=!0x1){const _0x5ed79a=_0x1ab813;let _0x19e415=this[_0x5ed79a(0x1fb)][_0x5ed79a(0x326)](_0x5ed79a(0x1cd));_0x4e8d14[_0x5ed79a(0x367)]()!==_0x19e415&&this['_urlService'][_0x5ed79a(0x3d7)](_0x5ed79a(0x1cd),_0x4e8d14[_0x5ed79a(0x367)](),_0x5269a6);}async[_0x1ab813(0x359)](_0x48dee4){const _0x192865=_0x1ab813;var _0x4811c7;let _0x204cf3=this['_urlService']['getParam'](_0x192865(0x1cd));if(!_0x204cf3||!_0x48dee4[_0x192865(0x33e)](_0x204cf3)){let _0x1776d0=_0x48dee4[_0x192865(0x157)]()[0x0],_0x12ffb3=_0x48dee4[_0x192865(0x33e)](_0x1776d0);if(!_0x12ffb3||(this[_0x192865(0x11a)](_0x12ffb3,!0x0),this[_0x192865(0x26a)]))return;await this[_0x192865(0x3e2)][_0x192865(0x377)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x48dee4[_0x192865(0x15b)](),'subUnitId':_0x1776d0});return;}((_0x4811c7=_0x48dee4[_0x192865(0x275)]())==null?void 0x0:_0x4811c7[_0x192865(0x367)]())!==_0x204cf3&&await this[_0x192865(0x3e2)][_0x192865(0x377)](g[_0x192865(0x302)]['id'],{'unitId':_0x48dee4[_0x192865(0x15b)](),'subUnitId':_0x204cf3});}};V=S([x(0x0,B),x(0x1,t[_0x1ab813(0x12d)]),x(0x2,t[_0x1ab813(0x378)]),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(e['DataLoaderService']))],V);let H=class{constructor(_0x194bb0,_0x280384){const _0x4877b4=_0x1ab813;this['_transformService']=_0x194bb0,this[_0x4877b4(0x3ad)]=_0x280384;}[_0x1ab813(0x153)](_0x39b175){const _0x23eb2f=_0x1ab813;this[_0x23eb2f(0x21c)](_0x39b175),this[_0x23eb2f(0x2e7)](_0x39b175);}[_0x1ab813(0x354)](_0x1d7389){const _0x260e6a=_0x1ab813;let {unitID:_0x46ced0}=_0x1d7389,{redoCache:_0x48a943}=this['_renderManagerService'][_0x260e6a(0x174)](_0x46ced0)[_0x260e6a(0x163)](f[_0x260e6a(0x252)])[_0x260e6a(0x1aa)]();if(_0x48a943[_0x260e6a(0x3e4)]===0x0)return _0x1d7389;let _0x2c2f1a=t[_0x260e6a(0x2ce)][_0x260e6a(0x1a4)](_0x1d7389[_0x260e6a(0x2aa)][0x0]);for(let _0x326a55=0x0;_0x326a55<_0x48a943[_0x260e6a(0x3e4)];_0x326a55++){let _0x4d2d1e={'id':'doc.mutation.rich-text-editing','params':{..._0x48a943[_0x326a55]}},_0x15df1c=this[_0x260e6a(0x139)][_0x260e6a(0x110)](_0x2c2f1a,_0x4d2d1e,!0x1);if((0x0,l[_0x260e6a(0x19f)])(_0x15df1c))throw _0x15df1c[_0x260e6a(0x159)];_0x2c2f1a=_0x15df1c[_0x260e6a(0x27e)];}return{...t[_0x260e6a(0x2ce)][_0x260e6a(0x1a4)](_0x1d7389),'mutations':[_0x2c2f1a]};}[_0x1ab813(0x21c)](_0x414ca0){const _0x261d28=_0x1ab813;let {unitID:_0x32b36e}=_0x414ca0,_0x411c27=this[_0x261d28(0x3ad)][_0x261d28(0x174)](_0x32b36e)[_0x261d28(0x163)](f[_0x261d28(0x252)]),{undoCache:_0x3441d0,redoCache:_0x544bc7}=_0x411c27[_0x261d28(0x1aa)]();if(_0x3441d0['length']===0x0||_0x544bc7[_0x261d28(0x3e4)]===0x0)return;let _0x1f983f=[],_0x14d3e5=[],_0x1241e9=t['Tools']['deepClone'](_0x414ca0['mutations'][0x0]),_0x4be255=t[_0x261d28(0x2ce)]['deepClone'](_0x414ca0['mutations'][0x0]);for(let _0x15033f=_0x3441d0[_0x261d28(0x3e4)]-0x1;_0x15033f>=0x0;_0x15033f--){let _0x276813={'id':_0x261d28(0x2e9),'params':{..._0x3441d0[_0x15033f]}},_0x5e9a1e={'id':'doc.mutation.rich-text-editing','params':{..._0x544bc7[_0x15033f]}},_0x4449e7=this[_0x261d28(0x139)]['transformMutation'](_0x1241e9,_0x276813,!0x1),_0x5185e7=this[_0x261d28(0x139)]['transformMutation'](_0x4be255,_0x5e9a1e,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x4449e7))throw _0x4449e7['error'];if((0x0,l[_0x261d28(0x19f)])(_0x5185e7))throw _0x5185e7[_0x261d28(0x159)];_0x1f983f[_0x261d28(0x210)](_0x4449e7[_0x261d28(0x2fe)][_0x261d28(0x3c9)]),_0x14d3e5[_0x261d28(0x210)](_0x5185e7[_0x261d28(0x2fe)]['params']),_0x1241e9=_0x4449e7[_0x261d28(0x27e)],_0x4be255=_0x5185e7[_0x261d28(0x27e)];}_0x411c27[_0x261d28(0x3c4)]({'undoCache':_0x1f983f,'redoCache':_0x14d3e5});}[_0x1ab813(0x2e7)](_0x47e47c){const _0x3221b6=_0x1ab813;let {unitID:_0x1cedbe}=_0x47e47c,_0x3fe984=this[_0x3221b6(0x3ad)][_0x3221b6(0x174)](_0x1cedbe)[_0x3221b6(0x163)](f[_0x3221b6(0x252)]),_0x34147=_0x3fe984['getActiveRange']();if(_0x34147==null)return;let _0x34d31c=[{'id':_0x3221b6(0x2e9),'params':{'unitId':_0x47e47c[_0x3221b6(0x38e)],'actions':null,'textRanges':[_0x34147]}}],_0x3ab56b=this[_0x3221b6(0x139)]['transformMutationsWithChangeset'](_0x47e47c,_0x34d31c);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x3ab56b))throw _0x3ab56b['error'];let _0x3c47d0=_0x3ab56b['m2Prime'][0x0][_0x3221b6(0x3c9)]['textRanges'];Array['isArray'](_0x3c47d0)&&_0x3c47d0[_0x3221b6(0x3e4)]&&_0x3fe984[_0x3221b6(0x1c8)](_0x3c47d0[0x0]);}};H=S([x(0x0,l['ITransformService']),x(0x1,p[_0x1ab813(0x112)])],H);let U=class{constructor(_0x29899d,_0x18f884,_0xf5d543){const _0x4a11d9=_0x1ab813;this[_0x4a11d9(0x100)]=_0x29899d,this[_0x4a11d9(0x139)]=_0x18f884,this[_0x4a11d9(0x35b)]=_0xf5d543;}[_0x1ab813(0x214)](_0x3906c9){this['_transformHistoryAndStateStack'](_0x3906c9);}['transformRemoteChangeset'](_0x5de471){const _0x5887cb=_0x1ab813;let {unitID:_0x10611f}=_0x5de471,{collaboration:_0x4e331a}=this['_docStateChangeManagerService'][_0x5887cb(0x1db)](_0x10611f);if(_0x4e331a['length']===0x0)return _0x5de471;let _0x4714be=t['Tools'][_0x5887cb(0x1a4)](_0x5de471[_0x5887cb(0x2aa)][0x0]);for(let _0x21be82=0x0;_0x21be82<_0x4e331a[_0x5887cb(0x3e4)];_0x21be82++){let _0x4644b1={'id':_0x5887cb(0x2e9),'params':{'unitId':_0x4e331a[_0x21be82]['unitId'],..._0x4e331a[_0x21be82][_0x5887cb(0x1ee)]}},_0x15480a=this[_0x5887cb(0x139)]['transformMutation'](_0x4714be,_0x4644b1,!0x1);if((0x0,l[_0x5887cb(0x19f)])(_0x15480a))throw _0x15480a[_0x5887cb(0x159)];_0x4714be=_0x15480a[_0x5887cb(0x27e)];}return{...t[_0x5887cb(0x2ce)][_0x5887cb(0x1a4)](_0x5de471),'mutations':[_0x4714be]};}[_0x1ab813(0x383)](_0x236f6f){const _0x62b2f=_0x1ab813;let {unitID:_0xaa30e2}=_0x236f6f,{history:_0x5af77f,collaboration:_0x3de4af}=this[_0x62b2f(0x35b)][_0x62b2f(0x1db)](_0xaa30e2);if(_0x5af77f[_0x62b2f(0x3e4)]===0x0&&_0x3de4af[_0x62b2f(0x3e4)]===0x0)return;let _0x433651=[],_0x5f014f=[],_0x4cd665=t['Tools'][_0x62b2f(0x1a4)](_0x236f6f['mutations'][0x0]),_0x49978f=t[_0x62b2f(0x2ce)][_0x62b2f(0x1a4)](_0x236f6f[_0x62b2f(0x2aa)][0x0]);for(let _0x27fea2=_0x5af77f[_0x62b2f(0x3e4)]-0x1;_0x27fea2>=0x0;_0x27fea2--){let _0x281f1c={'id':_0x62b2f(0x2e9),'params':{'unitId':_0x5af77f[_0x27fea2]['unitId'],..._0x5af77f[_0x27fea2]['undoState']}},_0x3df86a={'id':_0x62b2f(0x2e9),'params':{'unitId':_0x5af77f[_0x27fea2]['unitId'],..._0x5af77f[_0x27fea2][_0x62b2f(0x1ee)]}},_0x47a7ca=this['_transformService'][_0x62b2f(0x110)](_0x4cd665,_0x281f1c,!0x1),_0x2ada2a=this['_transformService'][_0x62b2f(0x110)](_0x49978f,_0x3df86a,!0x1);if((0x0,l[_0x62b2f(0x19f)])(_0x47a7ca))throw _0x47a7ca[_0x62b2f(0x159)];if((0x0,l['isTransformMutationFailure'])(_0x2ada2a))throw _0x2ada2a[_0x62b2f(0x159)];_0x433651[_0x62b2f(0x210)]({..._0x5af77f[_0x27fea2],'undoState':_0x47a7ca['m2Prime'][_0x62b2f(0x3c9)],'redoState':_0x2ada2a[_0x62b2f(0x2fe)]['params']}),_0x4cd665=_0x47a7ca[_0x62b2f(0x27e)],_0x49978f=_0x2ada2a[_0x62b2f(0x27e)];}_0x4cd665=t[_0x62b2f(0x2ce)][_0x62b2f(0x1a4)](_0x236f6f[_0x62b2f(0x2aa)][0x0]),_0x49978f=t[_0x62b2f(0x2ce)]['deepClone'](_0x236f6f[_0x62b2f(0x2aa)][0x0]);for(let _0x49dcf0=_0x3de4af[_0x62b2f(0x3e4)]-0x1;_0x49dcf0>=0x0;_0x49dcf0--){let _0x3f2a3d={'id':_0x62b2f(0x2e9),'params':{'unitId':_0x3de4af[_0x49dcf0][_0x62b2f(0x355)],..._0x3de4af[_0x49dcf0]['undoState']}},_0x33c0e7={'id':_0x62b2f(0x2e9),'params':{'unitId':_0x3de4af[_0x49dcf0]['unitId'],..._0x3de4af[_0x49dcf0][_0x62b2f(0x1ee)]}},_0x4d5533=this['_transformService'][_0x62b2f(0x110)](_0x4cd665,_0x3f2a3d,!0x1),_0x2971f1=this[_0x62b2f(0x139)][_0x62b2f(0x110)](_0x49978f,_0x33c0e7,!0x1);if((0x0,l[_0x62b2f(0x19f)])(_0x4d5533))throw _0x4d5533['error'];if((0x0,l[_0x62b2f(0x19f)])(_0x2971f1))throw _0x2971f1['error'];_0x5f014f[_0x62b2f(0x210)]({..._0x3de4af[_0x49dcf0],'undoState':_0x4d5533[_0x62b2f(0x2fe)][_0x62b2f(0x3c9)],'redoState':_0x2971f1[_0x62b2f(0x2fe)][_0x62b2f(0x3c9)]}),_0x4cd665=_0x4d5533[_0x62b2f(0x27e)],_0x49978f=_0x2971f1[_0x62b2f(0x27e)];}this[_0x62b2f(0x35b)][_0x62b2f(0x132)](_0xaa30e2,{'history':_0x433651,'collaboration':_0x5f014f});}};U=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x1,l[_0x1ab813(0x32c)]),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(d[_0x1ab813(0x3ae)]))],U);let W=class{constructor(_0x1ac2da,_0x6f0dec){const _0x53c4f6=_0x1ab813;this['_docSelectionManagerService']=_0x1ac2da,this[_0x53c4f6(0x139)]=_0x6f0dec;}[_0x1ab813(0x337)](_0x5ed4dc){const _0x5d888e=_0x1ab813;var _0x364e3e;let _0x5e4126=this[_0x5d888e(0x309)]['getDocRanges']()??[],_0x5b397c=this['_docSelectionManagerService'][_0x5d888e(0x25e)]();if(_0x5e4126['length']===0x0)return;let _0x2aceee=_0x5ed4dc[_0x5d888e(0x38e)],_0x16ba2c=[{'id':_0x5d888e(0x2e9),'params':{'unitId':_0x2aceee,'actions':null,'textRanges':_0x5e4126}}],_0x5a948b=this[_0x5d888e(0x139)][_0x5d888e(0x16b)](_0x5ed4dc,_0x16ba2c);if(!(0x0,l[_0x5d888e(0x26d)])(_0x5a948b))throw _0x5a948b[_0x5d888e(0x159)];let _0x48d6bf=(_0x364e3e=_0x5a948b['m2Prime'][0x0])==null?void 0x0:_0x364e3e[_0x5d888e(0x3c9)],_0x3cc44b=_0x48d6bf&&typeof _0x48d6bf=='object'&&_0x5d888e(0x2de)in _0x48d6bf?_0x48d6bf[_0x5d888e(0x2de)]:null;if(!Se(_0x3cc44b))return;let _0x30df7d=_0x5ed4dc['mutations']['some'](_0x1cce41=>G(_0x1cce41['params']))?_0x3cc44b==null?void 0x0:_0x3cc44b[_0x5d888e(0x208)](_0x1f907e=>!(_0x5d888e(0x382)in _0x1f907e)):_0x3cc44b;Array[_0x5d888e(0x3af)](_0x30df7d)&&this[_0x5d888e(0x309)][_0x5d888e(0x299)](_0x30df7d,{'unitId':_0x2aceee,'subUnitId':_0x2aceee},!0x1,_0x5b397c!=null&&_0x5b397c[_0x5d888e(0x165)]?{..._0x5b397c['options'],'wholeDocument':!0x1}:void 0x0);}};W=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(d[_0x1ab813(0x269)])),x(0x1,l[_0x1ab813(0x32c)])],W);function Se(_0x2ffe0e){const _0x3fb5eb=_0x1ab813;return Array[_0x3fb5eb(0x3af)](_0x2ffe0e)&&_0x2ffe0e[_0x3fb5eb(0x33d)](_0x1ec8a0=>typeof _0x1ec8a0=='object'&&!!_0x1ec8a0&&_0x3fb5eb(0x3db)in _0x1ec8a0&&_0x3fb5eb(0x22c)in _0x1ec8a0);}function G(_0xbf0688){const _0x161d8d=_0x1ab813;return _0xbf0688===_0x161d8d(0x245)?!0x0:Array[_0x161d8d(0x3af)](_0xbf0688)?_0xbf0688[_0x161d8d(0x28b)](_0xd78b44=>G(_0xd78b44)):!_0xbf0688||typeof _0xbf0688!='object'?!0x1:Object['values'](_0xbf0688)[_0x161d8d(0x28b)](_0x4bdfc2=>G(_0x4bdfc2));}let K=class extends t[_0x1ab813(0x29a)]{constructor(_0x15fcd4,_0x5a7fae,_0x3b72aa,_0x26f282,_0x2e714b,_0x3df867,_0x1511d8){const _0x1fe33c=_0x1ab813;super(),this['_collaborationController']=_0x15fcd4,this[_0x1fe33c(0x206)]=_0x5a7fae,this[_0x1fe33c(0x151)]=_0x3b72aa,this[_0x1fe33c(0x162)]=_0x26f282,this[_0x1fe33c(0x37a)]=_0x2e714b,this[_0x1fe33c(0x14a)]=_0x3df867,this[_0x1fe33c(0xfc)]=_0x1511d8,b(this,'_status$',new r[(_0x1fe33c(0x371))](e[_0x1fe33c(0x24f)]['NOT_COLLAB'])),this['_initEntityListener']();}['_initEntityListener'](){const _0x3d9b8c=_0x1ab813;this[_0x3d9b8c(0x150)](this[_0x3d9b8c(0x3eb)]['entityInit$'][_0x3d9b8c(0x37e)](_0x2549e5=>{const _0xc2cbc9=_0x3d9b8c;_0x2549e5 instanceof e['DocCollaborationEntity']&&_0x2549e5[_0xc2cbc9(0x28c)]({'onTransformIME':_0x56a0c8=>this['_docTransformIMECacheService'][_0xc2cbc9(0x153)](_0x56a0c8),'onTransformState':_0x546512=>this['_docTransformStateCacheService']['transformStateCache'](_0x546512),'onTransformSelections':_0x36534f=>this[_0xc2cbc9(0x162)][_0xc2cbc9(0x337)](_0x36534f),'onSyncEditingCollabCursor':_0xf0721a=>this[_0xc2cbc9(0x37a)]['syncEditingCollabCursor'](_0xf0721a),'onTransformRemoteChangesetByIMECache':_0x255bf3=>this[_0xc2cbc9(0x206)][_0xc2cbc9(0x354)](_0x255bf3),'onTransformRemoteChangesetByStateCache':_0x1f0257=>this[_0xc2cbc9(0x151)][_0xc2cbc9(0x354)](_0x1f0257)});}));}};K=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x36f)])),x(0x1,(0x0,t['Inject'])(H)),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(U)),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(W)),x(0x4,(0x0,t['Inject'])(D)),x(0x5,n['IMessageService']),x(0x6,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x324)]))],K);let q=class extends t[_0x1ab813(0x29a)]{constructor(_0x4684a2,_0x39fd9c,_0x19bd9b,_0x381f31){const _0x1a3828=_0x1ab813;super(),this['_injector']=_0x4684a2,this[_0x1a3828(0x31f)]=_0x39fd9c,this[_0x1a3828(0x308)]=_0x19bd9b,this[_0x1a3828(0x3ac)]=_0x381f31,b(this,_0x1a3828(0x2a6),void 0x0),this[_0x1a3828(0x2d9)]();}[_0x1ab813(0x2d9)](){const _0x23d1c6=_0x1ab813;this['_initWindowErrorListener'](),this[_0x23d1c6(0x34e)](),this[_0x23d1c6(0x3b1)](),this[_0x23d1c6(0x2be)]();}['_initUserListener'](){const _0x34b940=_0x1ab813;this[_0x34b940(0x150)](this[_0x34b940(0x3ac)]['socket$'][_0x34b940(0x37e)](_0x1e1b65=>{const _0x3ac16d=_0x34b940;this[_0x3ac16d(0x2a6)]=_0x1e1b65==null?void 0x0:_0x1e1b65[_0x3ac16d(0x2dc)];}));}[_0x1ab813(0x32f)](){const _0x16aaa6=_0x1ab813;let _0x20daa3=_0x1aa076=>{const _0x167623=_0x8a3e;var _0x32d037;this[_0x167623(0x369)](_0x167623(0x159),_0x167623(0x35a)+_0x1aa076['message']+_0x167623(0x2d0)+_0x1aa076[_0x167623(0x251)]+':'+_0x1aa076[_0x167623(0x257)]+':'+_0x1aa076[_0x167623(0x381)]+'\x0a'+(((_0x32d037=_0x1aa076[_0x167623(0x159)])==null?void 0x0:_0x32d037[_0x167623(0x3c5)])||''));};window[_0x16aaa6(0x2da)](_0x16aaa6(0x159),_0x20daa3),this[_0x16aaa6(0x150)](()=>{const _0x25ddc7=_0x16aaa6;window['removeEventListener'](_0x25ddc7(0x159),_0x20daa3);});}[_0x1ab813(0x34e)](){const _0x55a71f=_0x1ab813;let _0x1fba92=_0x289b9e=>{const _0x15a014=_0x8a3e;this[_0x15a014(0x369)](_0x15a014(0x159),'[Unhandled\x20Rejection]:\x20'+_0x289b9e[_0x15a014(0x34b)]);};window[_0x55a71f(0x2da)](_0x55a71f(0x39a),_0x1fba92),this['disposeWithMe'](()=>{const _0x41cf63=_0x55a71f;window[_0x41cf63(0x351)]('unhandledrejection',_0x1fba92);});}['_monkeyPatchLogService'](){const _0x2fafa6=_0x1ab813;let _0x425190=this['_logService'][_0x2fafa6(0x159)][_0x2fafa6(0x38c)](this[_0x2fafa6(0x308)]);this[_0x2fafa6(0x308)][_0x2fafa6(0x159)]=(..._0x29c621)=>{const _0x1f163d=_0x2fafa6;let _0x1a5707=_0x29c621[_0x1f163d(0x15f)](_0x794333=>_0x794333 instanceof Error?_0x794333[_0x1f163d(0x200)]+'\x0a'+_0x794333['stack']:String(_0x794333))[_0x1f163d(0x11d)]('\x20');this[_0x1f163d(0x369)](_0x1f163d(0x159),_0x1f163d(0x356)+_0x1a5707),_0x425190(..._0x29c621);},this['disposeWithMe'](()=>{const _0x1a9d47=_0x2fafa6;this[_0x1a9d47(0x308)][_0x1a9d47(0x159)]=_0x425190;});}[_0x1ab813(0x369)](_0x313ed6,_0x2f035c){const _0x1a5d5c=_0x1ab813;try{let _0x304550={'userId':this[_0x1a5d5c(0x2a6)],'logLabel':_0x313ed6,'content':_0x2f035c};this['_httpService']['post']('/universer-api/frontend/logs',{'body':_0x304550})[_0x1a5d5c(0xf7)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,(0x0,t['Inject'])(m[_0x1ab813(0x345)])),x(0x2,t['ILogService']),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x3dd)]))],q);function Ce({state$:_0x472bc3}){const _0x2a6b0a=_0x1ab813;let _0x37bb74=(0x0,n[_0x2a6b0a(0x400)])(_0x472bc3,null,!0x0);return _0x37bb74?(0x0,c[_0x2a6b0a(0x32e)])(_0x2a6b0a(0x111),{'data-u-comp':_0x2a6b0a(0x20b),'role':'alert','className':_0x2a6b0a(0x3ec),'children':[(0x0,c[_0x2a6b0a(0x1f9)])(o[_0x2a6b0a(0x205)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c[_0x2a6b0a(0x1f9)])(_0x2a6b0a(0x1a5),{'children':_0x37bb74[_0x2a6b0a(0x3b9)]}),(0x0,c[_0x2a6b0a(0x1f9)])(a[_0x2a6b0a(0x358)],{'size':_0x2a6b0a(0x3f9),'variant':_0x2a6b0a(0x217),'onClick':()=>window[_0x2a6b0a(0x29b)][_0x2a6b0a(0x320)](),'children':_0x37bb74[_0x2a6b0a(0x3cc)]})]}):null;}function _0x8a3e(_0x2b4024,_0x24206c){_0x2b4024=_0x2b4024-0xf3;const _0x10b6a0=_0x10b6();let _0x8a3e17=_0x10b6a0[_0x2b4024];return _0x8a3e17;}const we=_0x1ab813(0x10d);let J=class extends t['Disposable']{constructor(_0x31823b,_0xcbe285,_0x52aa13,_0x8d61f5,_0x4c2818,_0x35725b){const _0x5b1595=_0x1ab813;super(),this[_0x5b1595(0x372)]=_0x31823b,this['_messageService']=_0xcbe285,this[_0x5b1595(0xfc)]=_0x52aa13,this['_injector']=_0x8d61f5,this[_0x5b1595(0x1fb)]=_0x35725b,b(this,_0x5b1595(0x1bc),new r['BehaviorSubject'](null)),b(this,_0x5b1595(0x212),new Set()),b(this,_0x5b1595(0x297),new Map()),b(this,_0x5b1595(0x370),new Map()),b(this,_0x5b1595(0x3cf),this[_0x5b1595(0x1bc)]['asObservable']());let _0x30eacb=()=>(0x0,s[_0x5b1595(0x234)])(Ce,{'state$':this['timeoutState$']});this[_0x5b1595(0x150)](_0x4c2818[_0x5b1595(0x379)](n[_0x5b1595(0x140)][_0x5b1595(0x190)],()=>(0x0,n[_0x5b1595(0x20f)])(_0x30eacb,this[_0x5b1595(0x100)]))),this[_0x5b1595(0x150)](this['_snapshotLoadingService']['state$'][_0x5b1595(0x37e)](_0x29e3cf=>{const _0x394013=_0x5b1595;this[_0x394013(0x370)]=_0x29e3cf,_0x29e3cf[_0x394013(0x131)](_0x2df25f=>this[_0x394013(0x192)](_0x2df25f));})),this[_0x5b1595(0x150)](this[_0x5b1595(0x1fb)][_0x5b1595(0x261)][_0x5b1595(0x37e)](()=>{const _0x1872f7=_0x5b1595;this[_0x1872f7(0x370)]['forEach'](_0x531305=>this[_0x1872f7(0x192)](_0x531305));}));}[_0x1ab813(0x38f)](){const _0x51c94c=_0x1ab813;this['_messageIds']['forEach'](_0x20043f=>this[_0x51c94c(0x14a)][_0x51c94c(0x220)](_0x20043f)),this['_messageIds'][_0x51c94c(0x123)](),this[_0x51c94c(0x297)][_0x51c94c(0x131)](({timeoutId:_0x5bbd36})=>clearTimeout(_0x5bbd36)),this[_0x51c94c(0x297)][_0x51c94c(0x123)](),this['_timeoutState$']['complete'](),super[_0x51c94c(0x38f)]();}['_updateMessage'](_0xc07d70){const _0x599dbd=_0x1ab813;let _0x4f71bf=''+we+_0xc07d70['unitId'];if(_0xc07d70[_0x599dbd(0x193)]===l['SnapshotLoadStage'][_0x599dbd(0x27c)]){this['_clearBlockProgressWatch'](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x27b)](_0xc07d70[_0x599dbd(0x355)]),this['_messageService'][_0x599dbd(0x220)](_0x4f71bf),this[_0x599dbd(0x212)][_0x599dbd(0x2c2)](_0x4f71bf);return;}if(!this[_0x599dbd(0x201)](_0xc07d70[_0x599dbd(0x355)])){this[_0x599dbd(0x15c)](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x27b)](_0xc07d70['unitId']),this[_0x599dbd(0x14a)]['remove'](_0x4f71bf),this['_messageIds'][_0x599dbd(0x2c2)](_0x4f71bf);return;}if(_0xc07d70[_0x599dbd(0x193)]===l[_0x599dbd(0x2f8)][_0x599dbd(0x3ca)]){this['_clearBlockProgressWatch'](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x27b)](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x14a)][_0x599dbd(0x2a1)]({'id':_0x4f71bf,'type':a[_0x599dbd(0x28f)][_0x599dbd(0x274)],'content':this[_0x599dbd(0xfc)]['t']('collaboration-client-ui.session.connection-failed')}),this[_0x599dbd(0x212)][_0x599dbd(0x2c2)](_0x4f71bf);return;}if(_0xc07d70[_0x599dbd(0x193)]!==l[_0x599dbd(0x2f8)][_0x599dbd(0x1f1)]||_0xc07d70[_0x599dbd(0x333)]<=0xa){this[_0x599dbd(0x15c)](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x14a)][_0x599dbd(0x220)](_0x4f71bf),this[_0x599dbd(0x212)][_0x599dbd(0x2c2)](_0x4f71bf);return;}this[_0x599dbd(0x364)](_0xc07d70)||(this['_messageService']['show']({'id':_0x4f71bf,'type':a[_0x599dbd(0x28f)][_0x599dbd(0x375)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x599dbd(0x1ad))+'\x20'+_0xc07d70['loadedBlocks']+'/'+_0xc07d70[_0x599dbd(0x333)]}),this['_messageIds'][_0x599dbd(0x28d)](_0x4f71bf));}['_watchBlockProgress'](_0x8f095a){const _0x54a008=_0x1ab813;let _0x22c363=this[_0x54a008(0x297)][_0x54a008(0x11b)](_0x8f095a[_0x54a008(0x355)]);if((_0x22c363==null?void 0x0:_0x22c363[_0x54a008(0x2e0)])===_0x8f095a['loadedBlocks'])return _0x22c363['timedOut'];this['_clearBlockProgressWatch'](_0x8f095a[_0x54a008(0x355)]);let _0x5438f6=setTimeout(()=>{const _0x47dc0c=_0x54a008;let _0x459dbe=this[_0x47dc0c(0x297)]['get'](_0x8f095a[_0x47dc0c(0x355)]);if(!_0x459dbe||_0x459dbe[_0x47dc0c(0x2b9)]!==_0x5438f6)return;_0x459dbe[_0x47dc0c(0x3e5)]=!0x0;let _0xad5f7a=''+we+_0x8f095a[_0x47dc0c(0x355)];this['_messageService'][_0x47dc0c(0x220)](_0xad5f7a),this[_0x47dc0c(0x212)][_0x47dc0c(0x2c2)](_0xad5f7a),this['_timeoutState$'][_0x47dc0c(0x184)]({'unitId':_0x8f095a[_0x47dc0c(0x355)],'content':this['_localeService']['t'](_0x47dc0c(0x3b4),String(_0x8f095a['loadedBlocks']),String(_0x8f095a[_0x47dc0c(0x333)])),'refreshLabel':this[_0x47dc0c(0xfc)]['t'](_0x47dc0c(0x13d))});},0xea60);return this['_blockProgressWatches'][_0x54a008(0x204)](_0x8f095a[_0x54a008(0x355)],{'loadedBlocks':_0x8f095a[_0x54a008(0x2e0)],'timedOut':!0x1,'timeoutId':_0x5438f6}),!0x1;}['_clearBlockProgressWatch'](_0x5d895a){const _0x1c8152=_0x1ab813;let _0x5ddeef=this[_0x1c8152(0x297)][_0x1c8152(0x11b)](_0x5d895a);_0x5ddeef&&(clearTimeout(_0x5ddeef[_0x1c8152(0x2b9)]),this[_0x1c8152(0x297)]['delete'](_0x5d895a),this[_0x1c8152(0x27b)](_0x5d895a));}[_0x1ab813(0x27b)](_0x60406){const _0x2645d8=_0x1ab813;var _0xcff41c;((_0xcff41c=this[_0x2645d8(0x1bc)][_0x2645d8(0x20c)])==null?void 0x0:_0xcff41c[_0x2645d8(0x355)])===_0x60406&&this[_0x2645d8(0x1bc)][_0x2645d8(0x184)](null);}[_0x1ab813(0x201)](_0x2f210e){const _0x5a291f=_0x1ab813;let _0x38bf8a=this[_0x5a291f(0x1fb)][_0x5a291f(0x326)](_0x5a291f(0x1ce));return!_0x38bf8a||_0x38bf8a===_0x2f210e;}};J=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(l[_0x1ab813(0x124)])),x(0x1,n[_0x1ab813(0x241)]),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x324)])),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(t['Injector'])),x(0x4,n[_0x1ab813(0x23d)]),x(0x5,B)],J);function Te(_0x3acd2e){const _0xc04c39=_0x1ab813;var _0x2181a6,_0x302ebf;let _0x2f42af=(_0x2181a6=_0x3acd2e[_0xc04c39(0x235)])==null?void 0x0:_0x2181a6[_0xc04c39(0x193)],_0x216e48=((_0x302ebf=_0x3acd2e[_0xc04c39(0x235)])==null?void 0x0:_0x302ebf[_0xc04c39(0x277)])||0x0;return _0x2f42af===h[_0xc04c39(0x2ee)][_0xc04c39(0x240)]&&_0x216e48>0x0;}function Ee(_0x38b34b){const _0x1e9724=_0x1ab813;return _0x38b34b[_0x1e9724(0x1da)]===h[_0x1e9724(0x3c3)][_0x1e9724(0x314)];}let Y=class extends t[_0x1ab813(0x29a)]{constructor(_0x5adba1,_0x5132bd,_0x2736e5,_0x250871,_0x5e411c,_0x181220,_0x514cce){const _0x1be2dd=_0x1ab813;super(),this[_0x1be2dd(0x14a)]=_0x5adba1,this[_0x1be2dd(0x3e2)]=_0x5132bd,this[_0x1be2dd(0x30c)]=_0x2736e5,this[_0x1be2dd(0x31f)]=_0x250871,this['_univerInstanceService']=_0x5e411c,this[_0x1be2dd(0x308)]=_0x181220,this[_0x1be2dd(0xfc)]=_0x514cce,b(this,'_pollingInterval',null),b(this,_0x1be2dd(0x2bc),0x0),b(this,_0x1be2dd(0x19c),0x0),b(this,_0x1be2dd(0x343),[]),b(this,_0x1be2dd(0x36d),0x0),this[_0x1be2dd(0xff)]();}['_initCommandInterceptor'](){const _0x7bf5be=_0x1ab813;this['disposeWithMe'](this['_commandService']['beforeCommandExecuted']((_0x25d20c,_0x4fb3b7)=>{const _0x53bcc2=_0x8a3e;if(_0x25d20c['id']!==h[_0x53bcc2(0x368)]['id'])return;let _0x1ef884=_0x25d20c['params'];if(this[_0x53bcc2(0x2cf)](_0x1ef884[_0x53bcc2(0x20a)]??[])&&!this[_0x53bcc2(0x22e)]())throw this[_0x53bcc2(0x392)](_0x25d20c,_0x4fb3b7),this[_0x53bcc2(0x2dd)](),new t[(_0x53bcc2(0x29e))]();})),this[_0x7bf5be(0x150)](this[_0x7bf5be(0x3e2)][_0x7bf5be(0x346)]((_0x238939,_0x4e22f9)=>{const _0x65c8a0=_0x7bf5be;if(_0x238939['id']!==h['SetFormulaCalculationNotificationMutation']['id'])return;let _0x8dd4c3=_0x238939[_0x65c8a0(0x3c9)];if(Te(_0x8dd4c3)){let _0x4f5632=(0x0,t[_0x65c8a0(0x1b3)])();this['_taskIds']['push'](_0x4f5632),this['_startCalculationLimit'](_0x4f5632);}else{if(Ee(_0x8dd4c3)&&this[_0x65c8a0(0x343)][_0x65c8a0(0x3e4)]>0x0){let _0x1fefc1=this['_taskIds'][_0x65c8a0(0x318)]();this['_releaseCalculationLimit'](_0x1fefc1);}}}));}[_0x1ab813(0x38f)](){const _0x37e311=_0x1ab813;super[_0x37e311(0x38f)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x37e311(0x19c)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x1ab813(0x392)](_0x546aa5,_0x8b5f71){const _0x413d7c=_0x1ab813;for(let _0x460594=0x0;_0x460594<0x1e;_0x460594++)try{if(await this[_0x413d7c(0x2b1)](),this[_0x413d7c(0x22e)]()){this[_0x413d7c(0x34c)](_0x546aa5,_0x8b5f71),this['_messageService']['show']({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.started'),'type':a['MessageType'][_0x413d7c(0x195)]});return;}await new Promise(_0x44b6c0=>{const _0x103815=_0x413d7c;this['_pollingInterval']=window[_0x103815(0xfd)](_0x44b6c0,0x3e8);});}catch(_0x14b5ad){this['_logService'][_0x413d7c(0x159)](_0x14b5ad);}this[_0x413d7c(0x14a)][_0x413d7c(0x2a1)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.unable'),'type':a[_0x413d7c(0x28f)][_0x413d7c(0x274)]});}[_0x1ab813(0x34c)](_0x5a8081,_0x34c6c4){const _0x5dc0a3=_0x1ab813;try{this[_0x5dc0a3(0x3e2)][_0x5dc0a3(0x377)](_0x5a8081['id'],_0x5a8081[_0x5dc0a3(0x3c9)],_0x34c6c4);}catch(_0x12144d){this[_0x5dc0a3(0x308)]['error'](_0x12144d);}}[_0x1ab813(0x2df)](_0x1c0d92,_0x143ce0){const _0x5ccb4d=_0x1ab813;_0x143ce0<this['_lastResponseTimestamp']||(this[_0x5ccb4d(0x36d)]=_0x143ce0,this[_0x5ccb4d(0x2bc)]=Number[_0x5ccb4d(0x3ef)](_0x1c0d92[_0x5ccb4d(0x2d1)]),this['_currentUsage']=Number['parseInt'](_0x1c0d92[_0x5ccb4d(0x397)]));}async[_0x1ab813(0x289)](_0x584460){const _0x2eb1b5=_0x1ab813;let _0x13c81b=Date[_0x2eb1b5(0x1c6)]();try{var _0xa57260,_0x1427d3;let _0x250019=((_0xa57260=this['_configService'][_0x2eb1b5(0x183)](e[_0x2eb1b5(0x23b)]))==null?void 0x0:_0xa57260[_0x2eb1b5(0x36e)])||'/universer-api/license/formula/limit/start',_0x280424=(await this[_0x2eb1b5(0x31f)][_0x2eb1b5(0x3f3)](_0x250019,{'body':JSON['stringify']({'taskId':_0x584460})}))['body'];if(((_0x1427d3=_0x280424[_0x2eb1b5(0x159)])==null?void 0x0:_0x1427d3[_0x2eb1b5(0x175)])!==v['ErrorCode']['OK'])return;this[_0x2eb1b5(0x2df)](_0x280424['limitInfo'],_0x13c81b);}catch(_0x315197){this[_0x2eb1b5(0x308)]['error'](_0x315197);}}async[_0x1ab813(0x2b1)](_0x4a4269){const _0x3115ef=_0x1ab813;let _0x1f9379=Date[_0x3115ef(0x1c6)]();try{var _0xab614c,_0x372a05;let _0x2aba02=((_0xab614c=this[_0x3115ef(0x30c)][_0x3115ef(0x183)](e[_0x3115ef(0x23b)]))==null?void 0x0:_0xab614c[_0x3115ef(0x1dd)])||_0x3115ef(0x292),_0x2a9112=_0x4a4269?_0x2aba02+_0x3115ef(0x1ac)+encodeURIComponent(_0x4a4269):_0x2aba02,_0x27b895=(await this[_0x3115ef(0x31f)][_0x3115ef(0x11b)](_0x2a9112))[_0x3115ef(0x260)];if(((_0x372a05=_0x27b895['error'])==null?void 0x0:_0x372a05[_0x3115ef(0x175)])!==v[_0x3115ef(0x239)]['OK'])return;this[_0x3115ef(0x2df)](_0x27b895[_0x3115ef(0x393)],_0x1f9379);}catch(_0x4d0952){this[_0x3115ef(0x308)][_0x3115ef(0x159)](_0x4d0952);}}async[_0x1ab813(0x2ef)](_0x4c6f04){const _0x16859a=_0x1ab813;let _0x43bc47=Date[_0x16859a(0x1c6)]();try{var _0x34ae60,_0x1ea3f0;let _0xb9aa1a=((_0x34ae60=this[_0x16859a(0x30c)]['getConfig'](e[_0x16859a(0x23b)]))==null?void 0x0:_0x34ae60[_0x16859a(0x408)])||_0x16859a(0x1af),_0x20b0e2=(await this['_httpService'][_0x16859a(0x3f3)](_0xb9aa1a,{'body':JSON[_0x16859a(0x402)]({'taskId':_0x4c6f04})}))[_0x16859a(0x260)];if(((_0x1ea3f0=_0x20b0e2[_0x16859a(0x159)])==null?void 0x0:_0x1ea3f0[_0x16859a(0x175)])!==v[_0x16859a(0x239)]['OK'])return;this[_0x16859a(0x2df)](_0x20b0e2[_0x16859a(0x393)],_0x43bc47);}catch(_0x18b33d){this[_0x16859a(0x308)][_0x16859a(0x159)](_0x18b33d);}}[_0x1ab813(0x22e)](){const _0xf41a50=_0x1ab813;return this[_0xf41a50(0x2bc)]===0x0||this['_maxFormulaLimit']-this[_0xf41a50(0x19c)]>0x0;}[_0x1ab813(0x24a)](){const _0x59199f=_0x1ab813;this[_0x59199f(0x171)]&&=(clearTimeout(this[_0x59199f(0x171)]),null);}[_0x1ab813(0x2dd)](){const _0x49d437=_0x1ab813;this[_0x49d437(0x14a)][_0x49d437(0x2a1)]({'content':this[_0x49d437(0xfc)]['t'](_0x49d437(0x101)),'type':a[_0x49d437(0x28f)]['Loading']});}['_hasFormulaInDirtyRanges'](_0x3a1516){const _0x54de69=_0x1ab813;for(let _0x2231e9 of _0x3a1516){let {unitId:_0x308571,sheetId:_0xeb7fe1,range:_0x472f80}=_0x2231e9,_0x5cd57b=this[_0x54de69(0x37b)][_0x54de69(0x127)](_0x308571,t[_0x54de69(0x1a1)][_0x54de69(0x33c)]);if(!_0x5cd57b)continue;let _0x1b3793=_0x5cd57b[_0x54de69(0x33e)](_0xeb7fe1);if(!_0x1b3793)continue;let _0x47406f=_0x1b3793[_0x54de69(0x3ed)]();for(let _0x188cd3=_0x472f80['startRow'];_0x188cd3<=_0x472f80[_0x54de69(0x232)];_0x188cd3++)for(let _0x1c4652=_0x472f80['startColumn'];_0x1c4652<=_0x472f80[_0x54de69(0x1a6)];_0x1c4652++){let _0x16b630=_0x47406f[_0x54de69(0x1b5)](_0x188cd3,_0x1c4652);if(_0x16b630&&((0x0,t[_0x54de69(0x1c0)])(_0x16b630['f'])||(0x0,t[_0x54de69(0x305)])(_0x16b630['si'])))return!0x0;}}return!0x1;}};Y=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(n[_0x1ab813(0x241)])),x(0x1,t['ICommandService']),x(0x2,t['IConfigService']),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(m[_0x1ab813(0x345)])),x(0x4,t[_0x1ab813(0x310)]),x(0x5,t[_0x1ab813(0x12d)]),x(0x6,(0x0,t[_0x1ab813(0x3b3)])(t['LocaleService']))],Y);let X=class extends t[_0x1ab813(0x29a)]{constructor(_0x3ecf02,_0x5d4dda,_0x3ade94){const _0x2f3c56=_0x1ab813;super(),this[_0x2f3c56(0x30c)]=_0x3ecf02,this[_0x2f3c56(0x29f)]=_0x5d4dda,this[_0x2f3c56(0x161)]=_0x3ade94,b(this,_0x2f3c56(0xf5),new Map()),b(this,_0x2f3c56(0x244),new Map()),b(this,'_disabled',!0x1);}['disableLocalCache'](){const _0x35e2ef=_0x1ab813;this[_0x35e2ef(0x1a8)]=!0x0;}[_0x1ab813(0x19e)](){const _0xfc8a3a=_0x1ab813;this[_0xfc8a3a(0x1a8)]=!0x1;}get[_0x1ab813(0x13c)](){const _0x650f7e=_0x1ab813;return this[_0x650f7e(0x244)];}[_0x1ab813(0x38f)](){const _0x2b21e5=_0x1ab813;this[_0x2b21e5(0x142)]()[_0x2b21e5(0x1e3)](()=>super[_0x2b21e5(0x38f)]());}async[_0x1ab813(0x1e0)](_0x296c58){const _0x375baf=_0x1ab813;return this[_0x375baf(0x1a8)]?null:this[_0x375baf(0x29f)][_0x375baf(0x31b)]((0x0,e[_0x375baf(0x3e6)])(_0x296c58));}async['saveOfflineData'](_0x14fe5a,_0x27760c){const _0x3f635a=_0x1ab813;return!!this[_0x3f635a(0x29f)][_0x3f635a(0x307)]((0x0,e[_0x3f635a(0x3e6)])(_0x14fe5a),_0x27760c);}async['backupOfflineData'](_0x16b374,_0x260daf){const _0x4e5a26=_0x1ab813;let _0x25ee1b=this[_0x4e5a26(0xf5)]['get'](_0x16b374)??await this[_0x4e5a26(0x29f)][_0x4e5a26(0x31b)]((0x0,e['getLocalCacheKey'])(_0x16b374));if(!_0x25ee1b)return;let _0x2a7075=Date[_0x4e5a26(0x1c6)](),_0x3b89b5=new Date(_0x2a7075)[_0x4e5a26(0x185)]();await this[_0x4e5a26(0x29f)][_0x4e5a26(0x307)]((0x0,e[_0x4e5a26(0x3e6)])(_0x16b374)+_0x4e5a26(0x27a)+_0x2a7075,{'reason':_0x260daf,'createdAt':_0x3b89b5,'data':_0x25ee1b});}[_0x1ab813(0x191)](_0x3868db,_0x481a20,_0x2141f6,_0x4f146b){const _0xc98eb8=_0x1ab813;let _0x5edcea=this['_revisionService'][_0xc98eb8(0x2c0)](_0x3868db);this['_cachedData'][_0xc98eb8(0x204)](_0x3868db,{'unitID':_0x3868db,'type':_0x481a20,'awaitingChangeset':_0x2141f6,'mutations':_0x4f146b,'rev':_0x5edcea}),this[_0xc98eb8(0x244)][_0xc98eb8(0x3fb)](_0x3868db)||this[_0xc98eb8(0x2ad)](_0x3868db);}[_0x1ab813(0x2ad)](_0x1d7562){const _0x2b324c=_0x1ab813;let _0x2a603a=this[_0x2b324c(0x284)]();_0x2a603a===0x0?this[_0x2b324c(0x1a0)](_0x1d7562):this[_0x2b324c(0x244)]['set'](_0x1d7562,window[_0x2b324c(0xfd)](()=>this[_0x2b324c(0x1a0)](_0x1d7562),_0x2a603a));}[_0x1ab813(0x284)](){const _0x3c2c6f=_0x1ab813;return this[_0x3c2c6f(0x30c)][_0x3c2c6f(0x183)](e[_0x3c2c6f(0x1b9)])??e['LOCAL_CACHE_INTERVAL'];}[_0x1ab813(0x1a0)](_0x4e01ad){const _0x404e30=_0x1ab813;let _0x4bff75=this[_0x404e30(0x244)][_0x404e30(0x11b)](_0x4e01ad);return _0x4bff75!==void 0x0&&window['clearTimeout'](_0x4bff75),this[_0x404e30(0x29f)][_0x404e30(0x307)]((0x0,e['getLocalCacheKey'])(_0x4e01ad),this['_cachedData']['get'](_0x4e01ad))[_0x404e30(0x1e3)](()=>this[_0x404e30(0x244)][_0x404e30(0x2c2)](_0x4e01ad));}async['exhaustSavingTask'](){const _0x509024=_0x1ab813;let _0x172073=[];this[_0x509024(0x244)][_0x509024(0x131)]((_0x3cd408,_0x40cace)=>{const _0x556346=_0x509024;window['clearTimeout'](_0x3cd408),_0x172073[_0x556346(0x2fc)](this[_0x556346(0x1a0)](_0x40cace)[_0x556346(0x1e3)](()=>{const _0x1b00d9=_0x556346;this['_saveTaskMap'][_0x1b00d9(0x2c2)](_0x40cace);}));}),await Promise['all'](_0x172073);}};X=S([x(0x0,t[_0x1ab813(0x1ef)]),x(0x1,t['ILocalStorageService']),x(0x2,(0x0,t['Inject'])(l['RevisionService']))],X);var De=class extends t[_0x1ab813(0x303)]{constructor(){const _0x595567=_0x1ab813;super(),b(this,'urlChange$',void 0x0),this['urlChange$']=(0x0,r[_0x595567(0x2f9)])(window,_0x595567(0xfa))[_0x595567(0x32b)]((0x0,r[_0x595567(0x138)])(this['dispose$']),(0x0,r[_0x595567(0x1a7)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x595567(0x342)])(void 0x0));}[_0x1ab813(0x3d7)](_0x5ac225,_0xbf571e,_0x5ba8eb=!0x1){const _0x52161a=_0x1ab813;let _0x1b8b1d=new URL(window[_0x52161a(0x29b)]['href']);_0x1b8b1d[_0x52161a(0x17e)]['set'](_0x5ac225,_0xbf571e),_0x5ba8eb?window[_0x52161a(0x168)][_0x52161a(0x344)]('','',_0x1b8b1d[_0x52161a(0x1ed)]()):window[_0x52161a(0x168)][_0x52161a(0x1f7)]('','',_0x1b8b1d['toString']());}[_0x1ab813(0x25b)](_0x4adcb4,_0x3804da=!0x1){const _0x200d46=_0x1ab813;let _0x56e602=new URL(window[_0x200d46(0x29b)][_0x200d46(0x2f2)]);_0x56e602[_0x200d46(0x17e)][_0x200d46(0x2c2)](_0x4adcb4),_0x3804da?window[_0x200d46(0x168)]['replaceState']('','',_0x56e602['toString']()):window[_0x200d46(0x168)][_0x200d46(0x1f7)]('','',_0x56e602[_0x200d46(0x1ed)]());}[_0x1ab813(0x326)](_0x2a8ae6){const _0x5a8c8a=_0x1ab813;return new URL(window[_0x5a8c8a(0x29b)][_0x5a8c8a(0x2f2)])[_0x5a8c8a(0x17e)][_0x5a8c8a(0x11b)](_0x2a8ae6)??void 0x0;}};let Z=class extends t[_0x1ab813(0x30f)]{constructor(_0x485748=ce,_0x57a7c9,_0xb7c24f,_0x222bb9,_0x3781ab){const _0x343891=_0x1ab813;super(),this[_0x343891(0x177)]=_0x485748,this[_0x343891(0x3ad)]=_0x57a7c9,this['_injector']=_0xb7c24f,this[_0x343891(0x30c)]=_0x222bb9,this[_0x343891(0x3e2)]=_0x3781ab;let {..._0x185218}=(0x0,t[_0x343891(0x250)])({},ce,this[_0x343891(0x177)]);this[_0x343891(0x30c)][_0x343891(0x2e8)](_0x343891(0x2bb),_0x185218);}[_0x1ab813(0x119)](){const _0x20851c=_0x1ab813;this[_0x20851c(0x312)](),this[_0x20851c(0x150)](this[_0x20851c(0x3e2)][_0x20851c(0x273)](w)),this['_initDependencies']();}[_0x1ab813(0x3df)](){const _0x39eca0=_0x1ab813;this[_0x39eca0(0x17c)]();}[_0x1ab813(0x312)](){const _0x5db941=_0x1ab813;var _0x2e5ae3;let _0x3c0429=[[E],[Y],[B,{'useClass':De}],[m[_0x5db941(0x35d)],{'useClass':m[_0x5db941(0x24d)]}],[e[_0x5db941(0x1d9)],{'useClass':X}],[C],[z],[A],[R],[V],[J]];this[_0x5db941(0x177)][_0x5db941(0x2e1)]!==!0x1&&_0x3c0429['push']([W],[H],[U],[D],[K],[T]),this[_0x5db941(0x177)][_0x5db941(0x104)]&&_0x3c0429[_0x5db941(0x2fc)]([q]),(0x0,t[_0x5db941(0x36c)])(this['_injector'],(0x0,t[_0x5db941(0x276)])(_0x3c0429,(_0x2e5ae3=this['_config'])==null?void 0x0:_0x2e5ae3[_0x5db941(0x3a6)]));}[_0x1ab813(0x17c)](){const _0xe52d1e=_0x1ab813;this[_0xe52d1e(0x177)][_0xe52d1e(0x2e1)]!==!0x1&&this[_0xe52d1e(0x150)](this[_0xe52d1e(0x3ad)][_0xe52d1e(0x266)](t[_0xe52d1e(0x1a1)][_0xe52d1e(0x23e)],[P])),this['disposeWithMe'](this[_0xe52d1e(0x3ad)][_0xe52d1e(0x266)](t[_0xe52d1e(0x1a1)][_0xe52d1e(0x33c)],[F]));}['_initDependencies'](){const _0x3054d8=_0x1ab813;(0x0,t[_0x3054d8(0x34d)])(this[_0x3054d8(0x100)],[[A],[R],[C],[z],[V],[Y],[J]]),this[_0x3054d8(0x177)][_0x3054d8(0x2e1)]!==!0x1&&(0x0,t[_0x3054d8(0x34d)])(this[_0x3054d8(0x100)],[[K],[T]]),this[_0x3054d8(0x177)][_0x3054d8(0x104)]&&(0x0,t['touchDependencies'])(this[_0x3054d8(0x100)],[[q]]);}};b(Z,_0x1ab813(0x1f3),_0x1ab813(0x36b)),b(Z,'packageName',oe),b(Z,_0x1ab813(0x3b6),se),Z=S([(0x0,t[_0x1ab813(0x222)])(u['UniverLicensePlugin'],d[_0x1ab813(0x1f0)],p[_0x1ab813(0x154)],m[_0x1ab813(0x390)],l['UniverCollaborationPlugin'],f[_0x1ab813(0x264)],e[_0x1ab813(0x29d)]),x(0x1,p[_0x1ab813(0x112)]),x(0x2,(0x0,t['Inject'])(t[_0x1ab813(0x16e)])),x(0x3,t[_0x1ab813(0x1ef)]),x(0x4,t[_0x1ab813(0x378)])],Z);let Q=class extends e[_0x1ab813(0x15d)]{constructor(_0x2bfb4c,_0x138d28,_0x2ddc26,_0x3b7d8e,_0x560845){super(_0x2bfb4c,_0x138d28,_0x2ddc26,_0x3b7d8e,_0x560845);}async[_0x1ab813(0x19b)](_0x4adc4d){const _0x13d00d=_0x1ab813;let _0x15a900=await this[_0x13d00d(0x395)](),_0x3417d5=this['_createSocketURL'](_0x4adc4d,_0x15a900);return this[_0x13d00d(0x2eb)](_0x3417d5);}[_0x1ab813(0x31e)](_0x20ad6e,_0x3a1831){const _0x21fc72=_0x1ab813;let _0x46e4d5=typeof window>'u'?new URL(_0x20ad6e):new URL(_0x20ad6e,window[_0x21fc72(0x29b)][_0x21fc72(0x148)]);_0x46e4d5[_0x21fc72(0x17e)][_0x21fc72(0x204)](_0x21fc72(0x3be),_0x3a1831);let _0x2158e2=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x21fc72(0x29b)][_0x21fc72(0x1be)]);return _0x2158e2[_0x21fc72(0x11b)]('runId')&&_0x46e4d5[_0x21fc72(0x17e)][_0x21fc72(0x204)]('runId',_0x2158e2[_0x21fc72(0x11b)]('runId')),_0x46e4d5[_0x21fc72(0x1ed)]();}async[_0x1ab813(0x395)](){const _0x54789b=_0x1ab813;var _0xf201cb;let _0x3deb42=this[_0x54789b(0x30c)]['getConfig'](e[_0x54789b(0x23b)]),_0x414ded=(_0x3deb42==null?void 0x0:_0x3deb42[_0x54789b(0x28a)])??e[_0x54789b(0x3a4)];return((_0xf201cb=(await this['_httpService'][_0x54789b(0x11b)](_0x414ded,{'headers':{'Content-Type':_0x54789b(0x26c)}}))[_0x54789b(0x260)])==null?void 0x0:_0xf201cb['ticket'])??'';}};Q=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(t['Injector'])),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(m[_0x1ab813(0x345)])),x(0x2,t['IConfigService']),x(0x3,t['ILogService']),x(0x4,l[_0x1ab813(0x218)])],Q);let $=class extends t[_0x1ab813(0x29a)]{constructor(_0x1a97eb,_0x2581b8,_0x2a7592){const _0x23ff6f=_0x1ab813;super(),this[_0x23ff6f(0x2ca)]=_0x1a97eb,this[_0x23ff6f(0x31f)]=_0x2581b8,this[_0x23ff6f(0x30c)]=_0x2a7592;}async[_0x1ab813(0x331)](_0x7359f1,_0x1ae3d5,_0x46a630,..._0x2880a5){const _0x4f18b2=_0x1ab813;let _0x393572=this[_0x4f18b2(0x2ca)][_0x4f18b2(0x2d6)]();if(!_0x393572)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x116dae=(this['_configService'][_0x4f18b2(0x183)](e['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY'])??e[_0x4f18b2(0x3e0)])+'/'+_0x7359f1+_0x4f18b2(0x334)+_0x1ae3d5,_0x46ceca={'scriptId':_0x7359f1,'runId':new URL(window['location'][_0x4f18b2(0x2f2)])[_0x4f18b2(0x17e)][_0x4f18b2(0x11b)](_0x4f18b2(0x3c2))??'','function':_0x1ae3d5,'unitId':_0x393572['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x2880a5),'invokeId':_0x46a630['invokeId']??'','executionId':_0x46a630[_0x4f18b2(0x164)]??''};try{let _0x2bc990=await this['_httpService']['post'](_0x116dae,{'body':_0x46ceca});return _0x2bc990[_0x4f18b2(0x260)][_0x4f18b2(0x159)]&&_0x2bc990[_0x4f18b2(0x260)]['error'][_0x4f18b2(0x175)]!==v[_0x4f18b2(0x239)]['OK']?_0x4f18b2(0x187):_0x2bc990['body'][_0x4f18b2(0x135)];}catch{return _0x4f18b2(0x187);}}};$=S([x(0x0,t[_0x1ab813(0x310)]),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(m['HTTPService'])),x(0x2,t['IConfigService'])],$);const Oe=0x7530,ke=_0x1ab813(0x197);var Ae=class extends t['Disposable']{constructor(){const _0x1ad573=_0x1ab813;super(),b(this,_0x1ad573(0x1f2),(0x0,t[_0x1ad573(0x1b3)])()),b(this,_0x1ad573(0x21e),new Set()),b(this,_0x1ad573(0x145),new Map()),b(this,_0x1ad573(0x283),null),b(this,_0x1ad573(0x25a),new Map()),b(this,'_unitStatus',new Map()),this[_0x1ad573(0x2d9)]();}[_0x1ab813(0x38f)](){const _0xb502c9=_0x1ab813;super[_0xb502c9(0x38f)](),this[_0xb502c9(0x25a)][_0xb502c9(0x131)]((_0x4c2a26,_0x4e73ec)=>this[_0xb502c9(0x281)](_0x4e73ec)),this['_heartbeatTimer']&&window[_0xb502c9(0x28e)](this['_heartbeatTimer']);}[_0x1ab813(0x2ba)](_0x487e33){const _0x489804=_0x1ab813;return this['_ensureSubject'](_0x487e33)[_0x489804(0x32b)]((0x0,r[_0x489804(0x35c)])());}['editingUnit'](_0x4614f9){const _0x4cb6dd=_0x1ab813;this[_0x4cb6dd(0x21e)][_0x4cb6dd(0x1e9)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4cb6dd(0x21e)][_0x4cb6dd(0x28d)](_0x4614f9),this[_0x4cb6dd(0x23a)]({'type':0x0,'memberID':this[_0x4cb6dd(0x1f2)],'unitIDs':[_0x4614f9],'isForwarded':!0x1});}[_0x1ab813(0x2c9)](_0x550e09){const _0x103194=_0x1ab813;this[_0x103194(0x21e)][_0x103194(0x2c2)](_0x550e09),this['_selfUnitIDs'][_0x103194(0x1e9)]===0x0&&this[_0x103194(0x283)]&&window[_0x103194(0x28e)](this['_heartbeatTimer']);}['_init'](){const _0x2ab5f7=_0x1ab813;this[_0x2ab5f7(0x150)]((0x0,t[_0x2ab5f7(0x2fb)])((0x0,r['fromEvent'])(window,'storage')[_0x2ab5f7(0x37e)](_0x522c6f=>{const _0x305e39=_0x2ab5f7;if(_0x522c6f[_0x305e39(0x13f)]!==ke||!_0x522c6f[_0x305e39(0x21b)])return;let _0x4783d5=JSON[_0x305e39(0x1b6)](_0x522c6f[_0x305e39(0x21b)]);this[_0x305e39(0x2c8)](_0x4783d5);}))),window[_0x2ab5f7(0x2da)](_0x2ab5f7(0x1bf),()=>this[_0x2ab5f7(0x23a)]({'type':0x1,'memberID':this[_0x2ab5f7(0x1f2)],'unitIDs':Array[_0x2ab5f7(0x1ab)](this[_0x2ab5f7(0x21e)])}));}[_0x1ab813(0x2c8)](_0x3a48d5){const _0x8cf16a=_0x1ab813;switch(_0x3a48d5['type']){case 0x0:this[_0x8cf16a(0x373)](_0x3a48d5);break;case 0x1:this[_0x8cf16a(0x398)](_0x3a48d5);break;case 0x2:this[_0x8cf16a(0x407)](_0x3a48d5);break;}}[_0x1ab813(0x373)](_0x25fc2e){const _0x435eee=_0x1ab813;let {unitIDs:_0x514149,memberID:_0x6f0f2f,isForwarded:_0x1d1206}=_0x25fc2e;_0x514149[_0x435eee(0x131)](_0x4299c2=>{const _0x3146bb=_0x435eee;if(!_0x1d1206&&this[_0x3146bb(0x145)][_0x3146bb(0x3fb)](_0x4299c2)&&this[_0x3146bb(0x39c)](_0x4299c2)[_0x3146bb(0x184)](e[_0x3146bb(0x16d)][_0x3146bb(0x3e1)]),!this[_0x3146bb(0x145)]['has'](_0x4299c2)||!this['_unitOnClients'][_0x3146bb(0x11b)](_0x4299c2)[_0x3146bb(0x3fb)](_0x6f0f2f)){let _0x4203c7=this['_unitOnClients']['get'](_0x4299c2)||new Set();_0x4203c7['add'](_0x6f0f2f),this[_0x3146bb(0x145)][_0x3146bb(0x204)](_0x4299c2,_0x4203c7),this[_0x3146bb(0x37c)](_0x6f0f2f);}}),_0x1d1206||this[_0x435eee(0x23a)]({'type':0x0,'memberID':this[_0x435eee(0x1f2)],'unitIDs':[...this[_0x435eee(0x21e)]],'isForwarded':!0x0});}[_0x1ab813(0x37c)](_0x1a378c){const _0x1e5205=_0x1ab813;this[_0x1e5205(0x281)](_0x1a378c);let _0xb0547=window[_0x1e5205(0xfd)](()=>{const _0x26e22a=_0x1e5205;this[_0x26e22a(0x145)][_0x26e22a(0x131)](_0x4baa21=>{const _0x323eac=_0x26e22a;_0x4baa21[_0x323eac(0x2c2)](_0x1a378c);});},Oe*0x2);this['_clearOtherTimers'][_0x1e5205(0x204)](_0x1a378c,_0xb0547);}['_removeClearOtherTimer'](_0x538647){const _0x303171=_0x1ab813;if(this[_0x303171(0x25a)][_0x303171(0x3fb)](_0x538647)){let _0xb1be65=this[_0x303171(0x25a)][_0x303171(0x11b)](_0x538647);_0xb1be65&&window[_0x303171(0x19d)](_0xb1be65),this[_0x303171(0x25a)][_0x303171(0x204)](_0x538647,null);}}[_0x1ab813(0x398)](_0x174838){const _0x5e09cb=_0x1ab813;let {memberID:_0xf6861,unitIDs:_0x2e1d16}=_0x174838;_0x2e1d16[_0x5e09cb(0x131)](_0xa42f31=>{const _0x1cdf96=_0x5e09cb;var _0xe11e1;let _0x5eb05a=this['_unitOnClients']['get'](_0xa42f31);_0x5eb05a&&(_0x5eb05a[_0x1cdf96(0x2c2)](_0xf6861),(_0xe11e1=this[_0x1cdf96(0x39c)](_0xa42f31))==null||_0xe11e1['next'](_0x5eb05a[_0x1cdf96(0x1e9)]===0x0?e[_0x1cdf96(0x16d)]['NO_OTHER_CLIENTS_EDITING']:e[_0x1cdf96(0x16d)][_0x1cdf96(0x3e1)]));}),this[_0x5e09cb(0x281)](_0xf6861);}[_0x1ab813(0x407)](_0x3c4c35){const _0x5e305f=_0x1ab813;this[_0x5e305f(0x37c)](_0x3c4c35[_0x5e305f(0x2dc)]);}['_send'](_0x3a3cd3){const _0x1192bb=_0x1ab813;localStorage[_0x1192bb(0x307)](ke,JSON['stringify'](_0x3a3cd3));}['_scheduleHeartbeat'](){const _0x1fb3f8=_0x1ab813;this[_0x1fb3f8(0x283)]=window[_0x1fb3f8(0x3ce)](()=>{const _0x5599c1=_0x1fb3f8;this[_0x5599c1(0x23a)]({'type':0x2,'memberID':this[_0x5599c1(0x1f2)]});},Oe);}[_0x1ab813(0x39c)](_0x5772a2){const _0x267302=_0x1ab813;return this[_0x267302(0x114)][_0x267302(0x3fb)](_0x5772a2)||this[_0x267302(0x114)][_0x267302(0x204)](_0x5772a2,new r[(_0x267302(0x371))](e[_0x267302(0x16d)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x267302(0x11b)](_0x5772a2);}};Object['defineProperty'](exports,_0x1ab813(0x1cf),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x1ab813(0x23f)](exports,_0x1ab813(0x353),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x1ab813(0x16a)]=B,Object[_0x1ab813(0x23f)](exports,_0x1ab813(0x202),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1ab813(0x31a)]=ge,Object[_0x1ab813(0x23f)](exports,_0x1ab813(0x253),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x1ab813(0x391)]=Ae;