@univerjs-pro/collaboration-client-ui 0.25.1 → 1.0.0-alpha.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 (99) 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 +6 -6
  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/{controllers/config.schema.d.ts → config/config.d.ts} +8 -0
  66. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +3 -2
  67. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +34 -0
  68. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +21 -0
  69. package/lib/types/controllers/entity-ui/collaboration-entity-ui.controller.d.ts +1 -3
  70. package/lib/types/index.d.ts +3 -2
  71. package/lib/types/locale/types.d.ts +3 -0
  72. package/lib/types/models/cursor.d.ts +23 -0
  73. package/lib/types/plugin.d.ts +1 -1
  74. package/lib/types/services/local-cache/web-local-cache.service.d.ts +1 -0
  75. package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +1 -1
  76. package/lib/types/views/components/CollabStatus.d.ts +1 -1
  77. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +15 -0
  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 +23 -21
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1f5139=_0x4fbb;(function(_0x3cf7b2,_0x1a2f5d){const _0x554b97=_0x4fbb,_0x43b404=_0x3cf7b2();while(!![]){try{const _0x48a0b5=-parseInt(_0x554b97(0x269))/0x1*(-parseInt(_0x554b97(0x36e))/0x2)+parseInt(_0x554b97(0x363))/0x3+parseInt(_0x554b97(0x3e6))/0x4*(parseInt(_0x554b97(0x2b7))/0x5)+parseInt(_0x554b97(0x377))/0x6*(parseInt(_0x554b97(0x3d5))/0x7)+parseInt(_0x554b97(0x347))/0x8+-parseInt(_0x554b97(0x1e1))/0x9+-parseInt(_0x554b97(0x2fd))/0xa;if(_0x48a0b5===_0x1a2f5d)break;else _0x43b404['push'](_0x43b404['shift']());}catch(_0xf7ddae){_0x43b404['push'](_0x43b404['shift']());}}}(_0x36ac,0xb1556),Object['defineProperty'](exports,Symbol[_0x1f5139(0x2c0)],{'value':_0x1f5139(0x411)}));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/rpc'),u=require('@univerjs/sheets'),d=require('@univerjs/engine-render'),f=require('@univerjs/network'),p=require('@univerjs/docs-ui'),m=require('@univerjs/drawing'),h=require('@univerjs-pro/collaboration'),g=require('@univerjs/docs'),_=require('@univerjs/engine-formula'),v=require('@univerjs/sheets-ui'),y=require('@univerjs/protocol');function b(_0x2ccc67){const _0x27196f=_0x1f5139;switch(_0x2ccc67){case e[_0x27196f(0x1f3)][_0x27196f(0x392)]:return{'icon':(0x0,c[_0x27196f(0x1c6)])(o[_0x27196f(0x3b8)],{}),'colorClass':_0x27196f(0x26c),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x27196f(0x215),'clickable':!0x0,'indicator':_0x27196f(0x453)};case e['CollaborationStatus'][_0x27196f(0x3ef)]:return{'icon':(0x0,c[_0x27196f(0x1c6)])(o[_0x27196f(0x3b8)],{}),'colorClass':_0x27196f(0x2dc),'i18nKey':_0x27196f(0x414),'clickable':!0x1,'indicator':_0x27196f(0x453)};case e['CollaborationStatus'][_0x27196f(0x42e)]:return{'icon':(0x0,c['jsx'])(o[_0x27196f(0x247)],{}),'colorClass':_0x27196f(0x3ac),'i18nKey':_0x27196f(0x3dd),'clickable':!0x1,'indicator':'spin'};case e[_0x27196f(0x1f3)][_0x27196f(0x30d)]:return{'icon':(0x0,c[_0x27196f(0x1c6)])(o[_0x27196f(0x21f)],{}),'colorClass':'univer-text-gray-400','i18nKey':_0x27196f(0x26b),'clickable':!0x1,'indicator':_0x27196f(0x453)};case e[_0x27196f(0x1f3)][_0x27196f(0x2a6)]:case e[_0x27196f(0x1f3)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,c['jsx'])(o[_0x27196f(0x247)],{}),'colorClass':_0x27196f(0x3ac),'i18nKey':_0x27196f(0x217),'clickable':!0x1,'indicator':'spin'};case e[_0x27196f(0x1f3)][_0x27196f(0x43d)]:return{'icon':(0x0,c['jsx'])(o[_0x27196f(0x247)],{}),'colorClass':_0x27196f(0x3ac),'i18nKey':_0x27196f(0x217),'clickable':!0x1,'indicator':_0x27196f(0x2e5)};case e[_0x27196f(0x1f3)]['SYNCED']:return{'icon':(0x0,c[_0x27196f(0x1c6)])(o['OnLineIcon'],{}),'colorClass':_0x27196f(0x2f5),'i18nKey':_0x27196f(0x451),'clickable':!0x1,'indicator':'static'};}}function x(_0x489942){const _0x28879f=_0x1f5139;let {status$:_0x4b2cf4}=_0x489942,_0x1c13d2=(0x0,n[_0x28879f(0x3b0)])(_0x4b2cf4,e['CollaborationStatus'][_0x28879f(0x30d)]),_0x5f107a=(0x0,n[_0x28879f(0x2b9)])(t[_0x28879f(0x329)]),_0x332060=(0x0,n[_0x28879f(0x2b9)])(e[_0x28879f(0x398)]),_0x3bb8ee=(0x0,s[_0x28879f(0x3b4)])(()=>b(_0x1c13d2),[_0x1c13d2]),_0x4ac5e9=_0x1c13d2!==e['CollaborationStatus']['OFFLINE'],_0x3e79d8=_0x5f107a['t'](_0x3bb8ee[_0x28879f(0x2c8)]),_0x2b2e7e=_0x3bb8ee[_0x28879f(0x1eb)]?_0x5f107a['t'](_0x3bb8ee[_0x28879f(0x1eb)]):_0x3e79d8,_0x2de791=(0x0,s['useCallback'])(()=>{const _0x52e450=_0x28879f;_0x4ac5e9||_0x332060[_0x52e450(0x35c)]();},[_0x4ac5e9,_0x332060]),_0x2ffc20=(0x0,s['useCallback'])(_0x4b0303=>{const _0x3c82d0=_0x28879f;!_0x4ac5e9&&(_0x4b0303[_0x3c82d0(0x319)]===_0x3c82d0(0x3af)||_0x4b0303[_0x3c82d0(0x319)]==='\x20')&&(_0x4b0303[_0x3c82d0(0x34c)](),_0x332060[_0x3c82d0(0x35c)]());},[_0x4ac5e9,_0x332060]),_0x3d9cc0=(0x0,c['jsx'])('span',{'className':(0x0,a['clsx'])(_0x28879f(0x2aa),_0x28879f(0x382),_0x3bb8ee[_0x28879f(0x300)],{'univer-animate-spin':_0x3bb8ee[_0x28879f(0x3b6)]===_0x28879f(0x2e5),'univer-animate-pulse':_0x3bb8ee[_0x28879f(0x3b6)]===_0x28879f(0x32a)}),'aria-hidden':'true','children':_0x3bb8ee[_0x28879f(0x21a)]}),_0x478ca5=(0x0,c[_0x28879f(0x1c6)])(_0x28879f(0x345),{'className':(0x0,a[_0x28879f(0x232)])(_0x28879f(0x2aa),_0x28879f(0x270),_0x28879f(0x274),_0x28879f(0x367),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x3bb8ee[_0x28879f(0x2a3)],'univer-cursor-default':!_0x3bb8ee['clickable']}),'children':_0x3d9cc0});return _0x3bb8ee[_0x28879f(0x2a3)]?(0x0,c[_0x28879f(0x1c6)])(a[_0x28879f(0x24e)],{'title':_0x2b2e7e,'placement':'bottom','children':(0x0,c['jsx'])('button',{'type':_0x28879f(0x3c4),'onClick':_0x2de791,'onKeyDown':_0x2ffc20,'className':(0x0,a['clsx'])(_0x28879f(0x1fa),_0x28879f(0x44a),_0x28879f(0x209),_0x28879f(0x221)),'aria-label':_0x3e79d8+_0x28879f(0x278)+_0x2b2e7e,'role':_0x28879f(0x202),'aria-live':'polite','aria-atomic':_0x28879f(0x3fb),'children':_0x478ca5})}):(0x0,c['jsx'])(a[_0x28879f(0x24e)],{'title':_0x2b2e7e,'placement':_0x28879f(0x3a0),'children':(0x0,c[_0x28879f(0x1c6)])(_0x28879f(0x1c9),{'className':(0x0,a[_0x28879f(0x232)])(_0x28879f(0x1fa),'univer-border-none\x20univer-bg-transparent',_0x28879f(0x209)),'aria-label':_0x3e79d8,'role':'status','aria-live':_0x28879f(0x3ba),'aria-atomic':_0x28879f(0x3fb),'children':_0x478ca5})});}function S(_0x519d43){'@babel/helpers - typeof';const _0x35746b=_0x1f5139;return S=typeof Symbol==_0x35746b(0x2f4)&&typeof Symbol[_0x35746b(0x2a4)]=='symbol'?function(_0x24326c){return typeof _0x24326c;}:function(_0x429631){const _0x589b37=_0x35746b;return _0x429631&&typeof Symbol==_0x589b37(0x2f4)&&_0x429631[_0x589b37(0x23a)]===Symbol&&_0x429631!==Symbol['prototype']?_0x589b37(0x2da):typeof _0x429631;},S(_0x519d43);}function ee(_0x5b907c,_0x305468){const _0x31c7d7=_0x1f5139;if(S(_0x5b907c)!='object'||!_0x5b907c)return _0x5b907c;var _0x2439a5=_0x5b907c[Symbol['toPrimitive']];if(_0x2439a5!==void 0x0){var _0x451b22=_0x2439a5['call'](_0x5b907c,_0x305468||_0x31c7d7(0x381));if(S(_0x451b22)!=_0x31c7d7(0x2d3))return _0x451b22;throw TypeError(_0x31c7d7(0x2fe));}return(_0x305468===_0x31c7d7(0x2a9)?String:Number)(_0x5b907c);}function te(_0x4b72f6){const _0x1d34f7=_0x1f5139;var _0x32200b=ee(_0x4b72f6,_0x1d34f7(0x2a9));return S(_0x32200b)==_0x1d34f7(0x2da)?_0x32200b:_0x32200b+'';}function C(_0x22d207,_0x362a7d,_0x215638){const _0x23e120=_0x1f5139;return(_0x362a7d=te(_0x362a7d))in _0x22d207?Object[_0x23e120(0x2e4)](_0x22d207,_0x362a7d,{'value':_0x215638,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22d207[_0x362a7d]=_0x215638,_0x22d207;}function w(_0x535a86,_0x5370fc){return function(_0x359bcc,_0x2f84a1){_0x5370fc(_0x359bcc,_0x2f84a1,_0x535a86);};}function T(_0x49f07d,_0x1249ff,_0x465a94,_0x3fbe86){const _0x3f323a=_0x1f5139;var _0x27eb66=arguments[_0x3f323a(0x280)],_0x4ce482=_0x27eb66<0x3?_0x1249ff:_0x3fbe86===null?_0x3fbe86=Object['getOwnPropertyDescriptor'](_0x1249ff,_0x465a94):_0x3fbe86,_0x4b876e;if(typeof Reflect==_0x3f323a(0x2d3)&&typeof Reflect[_0x3f323a(0x42c)]==_0x3f323a(0x2f4))_0x4ce482=Reflect[_0x3f323a(0x42c)](_0x49f07d,_0x1249ff,_0x465a94,_0x3fbe86);else{for(var _0x3c41a6=_0x49f07d['length']-0x1;_0x3c41a6>=0x0;_0x3c41a6--)(_0x4b876e=_0x49f07d[_0x3c41a6])&&(_0x4ce482=(_0x27eb66<0x3?_0x4b876e(_0x4ce482):_0x27eb66>0x3?_0x4b876e(_0x1249ff,_0x465a94,_0x4ce482):_0x4b876e(_0x1249ff,_0x465a94))||_0x4ce482);}return _0x27eb66>0x3&&_0x4ce482&&Object[_0x3f323a(0x2e4)](_0x1249ff,_0x465a94,_0x4ce482),_0x4ce482;}let E=class extends t['Disposable']{constructor(_0x32631d,_0x2b1aa6,_0x49d855,_0x32a33b){const _0x43865f=_0x1f5139;super(),this[_0x43865f(0x1ec)]=_0x32631d,this[_0x43865f(0x20f)]=_0x2b1aa6,this[_0x43865f(0x298)]=_0x49d855,this['_uiPartsService']=_0x32a33b,C(this,'_status$',new r['BehaviorSubject'](e['CollaborationStatus'][_0x43865f(0x30d)])),this[_0x43865f(0x26e)](),this[_0x43865f(0x240)]();}['_initStatusListener'](){const _0x309e17=_0x1f5139;this[_0x309e17(0x3b1)]((0x0,r[_0x309e17(0x2bb)])(this[_0x309e17(0x1ec)][_0x309e17(0x374)],this[_0x309e17(0x1ec)]['getCurrentTypeOfUnit$'](t[_0x309e17(0x21d)][_0x309e17(0x1e5)]),this['_univerInstanceService'][_0x309e17(0x28f)](t['UniverInstanceType'][_0x309e17(0x396)]))[_0x309e17(0x25f)]((0x0,i[_0x309e17(0x448)])(()=>ne(this[_0x309e17(0x1ec)])),(0x0,i[_0x309e17(0x364)])(),(0x0,r['switchMap'])(_0x56e61b=>_0x56e61b?this[_0x309e17(0x298)]['getCollabEntity$'](_0x56e61b):(0x0,r['of'])(null)),(0x0,r[_0x309e17(0x2d6)])(_0x349266=>_0x349266?_0x349266[_0x309e17(0x2f8)]:(0x0,r['of'])(e['CollaborationStatus'][_0x309e17(0x30d)])))[_0x309e17(0x43e)](_0x2b0fee=>{const _0x54cfcb=_0x309e17;this[_0x54cfcb(0x395)][_0x54cfcb(0x41b)](_0x2b0fee);}));}[_0x1f5139(0x26e)](){const _0x4913fd=_0x1f5139;this[_0x4913fd(0x3b1)](this[_0x4913fd(0x39c)][_0x4913fd(0x2f0)](n[_0x4913fd(0x26f)][_0x4913fd(0x2c4)],()=>(0x0,n[_0x4913fd(0x445)])(re({'status$':this[_0x4913fd(0x395)]['asObservable']()}),this[_0x4913fd(0x20f)])));}};E=T([w(0x0,t['IUniverInstanceService']),w(0x1,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x40e)])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(e['CollaborationController'])),w(0x3,n[_0x1f5139(0x2cd)])],E);function ne(_0xe412f9){const _0x470b38=_0x1f5139;let _0x32bf2a=_0xe412f9[_0x470b38(0x412)](),_0x442f68=_0x32bf2a==null?void 0x0:_0x32bf2a['getUnitId']();if(_0x442f68&&!(0x0,t['isInternalEditorID'])(_0x442f68))return _0x442f68;let _0x9c704=_0xe412f9[_0x470b38(0x2be)](t[_0x470b38(0x21d)]['UNIVER_DOC']),_0xb1167=_0x9c704==null?void 0x0:_0x9c704['getUnitId']();if(_0xb1167&&!(0x0,t[_0x470b38(0x332)])(_0xb1167))return _0xb1167;let _0x5ddb07=_0xe412f9[_0x470b38(0x2be)](t[_0x470b38(0x21d)][_0x470b38(0x396)]);if(_0x5ddb07)return _0x5ddb07[_0x470b38(0x3e2)]();let _0x352e03=_0xe412f9['getAllUnitsForType'](t[_0x470b38(0x21d)][_0x470b38(0x1e5)])[_0x470b38(0x423)](_0x119000=>!(0x0,t[_0x470b38(0x332)])(_0x119000['getUnitId']()));return _0x352e03?_0x352e03[_0x470b38(0x3e2)]():null;}function re(_0x5c100a){let {status$:_0x52ba6f}=_0x5c100a;return function(){const _0x591d69=_0x4fbb;return(0x0,c[_0x591d69(0x1c6)])(x,{'status$':_0x52ba6f});};}const D=(0x0,t['createIdentifier'])(_0x1f5139(0x3c8));let O=class extends t[_0x1f5139(0x2b4)]{constructor(_0x276796,_0x4b5d91,_0x153d44,_0x150793,_0x24f59e){const _0x2a5c49=_0x1f5139;super(),this[_0x2a5c49(0x3bb)]=_0x276796,this[_0x2a5c49(0x29b)]=_0x4b5d91,this[_0x2a5c49(0x41f)]=_0x153d44,this[_0x2a5c49(0x321)]=_0x150793,_0x24f59e?_0x24f59e==null||_0x24f59e[_0x2a5c49(0x294)]()['then'](()=>this['_init']()):(this[_0x2a5c49(0x29b)][_0x2a5c49(0x250)](_0x2a5c49(0x3b3),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2a5c49(0x1e3)]());}async[_0x1f5139(0x1e3)](){const _0x528783=_0x1f5139;let _0x1c6da9=this[_0x528783(0x3bb)]['getParam'](_0x528783(0x203)),_0x104975=this['_urlService'][_0x528783(0x3b9)](_0x528783(0x2a0)),_0x31d071=this[_0x528783(0x3bb)][_0x528783(0x3b9)](_0x528783(0x40c));if(!_0x1c6da9||!_0x104975){this[_0x528783(0x29b)][_0x528783(0x250)](_0x528783(0x3b3),_0x528783(0x326));return;}let _0x4018db=await this[_0x528783(0x321)][_0x528783(0x335)](_0x1c6da9,Number(_0x104975),_0x31d071);_0x4018db&&_0x4018db instanceof t[_0x528783(0x2cb)]&&this[_0x528783(0x465)](_0x4018db);}async[_0x1f5139(0x465)](_0x5f2ee2){const _0x44cf97=_0x1f5139;await this[_0x44cf97(0x337)](_0x5f2ee2),_0x5f2ee2[_0x44cf97(0x1df)][_0x44cf97(0x25f)]((0x0,r['takeUntil'])(this[_0x44cf97(0x1cb)]))[_0x44cf97(0x43e)](_0x68d9fc=>{const _0x38c42a=_0x44cf97;_0x68d9fc&&this[_0x38c42a(0x348)](_0x68d9fc);}),this[_0x44cf97(0x3bb)][_0x44cf97(0x407)][_0x44cf97(0x25f)]((0x0,r['takeUntil'])(this['dispose$']))[_0x44cf97(0x43e)](()=>this[_0x44cf97(0x337)](_0x5f2ee2));}[_0x1f5139(0x348)](_0x254988,_0x1cf73d=!0x1){const _0x495902=_0x1f5139;let _0x24cdd8=this[_0x495902(0x3bb)]['getParam'](_0x495902(0x40c));_0x254988[_0x495902(0x24d)]()!==_0x24cdd8&&this[_0x495902(0x3bb)]['setParam'](_0x495902(0x40c),_0x254988['getSheetId'](),_0x1cf73d);}async[_0x1f5139(0x337)](_0x4ddd24){const _0x145c78=_0x1f5139;var _0x51f083;let _0x282935=this[_0x145c78(0x3bb)][_0x145c78(0x3b9)]('subunit');if(!_0x282935||!_0x4ddd24[_0x145c78(0x1c7)](_0x282935)){let _0x32fa6a=_0x4ddd24[_0x145c78(0x3a3)]()[0x0],_0x4d1016=_0x4ddd24[_0x145c78(0x1c7)](_0x32fa6a);if(!_0x4d1016)return;this['_updateURLWithCurrentState'](_0x4d1016,!0x0),await this[_0x145c78(0x41f)]['executeCommand'](u[_0x145c78(0x430)]['id'],{'unitId':_0x4ddd24[_0x145c78(0x3e2)](),'subUnitId':_0x32fa6a});return;}((_0x51f083=_0x4ddd24[_0x145c78(0x2f6)]())==null?void 0x0:_0x51f083[_0x145c78(0x24d)]())!==_0x282935&&await this[_0x145c78(0x41f)]['executeCommand'](u['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ddd24[_0x145c78(0x3e2)](),'subUnitId':_0x282935});}};function _0x36ac(){const _0x32c60e=['_collaborationController','getFormulaLimitStatusUrl','TEXT_RANGE_LAYER_INDEX','_logService','InsertColCommandId','WebSocketService','getCoordByCell','setTimeout','type','FromArray','_imageIoService','clickable','iterator','handleInsertRangeMoveRight','AWAITING','collab-text-anchor-','_createSocketURL','string','univer-flex\x20univer-items-center\x20univer-justify-center','backgroundColor','getCollabCursors$','all','collab-text-range-','addEventListener','contains','CollaborationDataLoaderController','_initEntityListener','functionsExecutedState','RxDisposable','CollaborationEvent','BehaviorSubject','5tatkiH','_refreshCollabCursors','useDependency','replaceDocRanges','merge','_getMergeRange','values','getCurrentUnitOfType','_drawRectRange','toStringTag','green.600','isEditing','isFormulaString','HEADER_MENU','add','fillStyle','_httpService','i18nKey','executeCommand','_docTransformStateCacheService','Workbook','getMember','IUIPartsService','version','_selfUnitIDs','IBeforeCloseService','deserializeRangeWithSheet','_getLighterColor','object','_notificationService','source','switchMap','getDocRanges','_collaborationUIEventService','getSkeleton','symbol','_configService','univer-text-orange-500','parse','unhandledrejection','setItem','enableFrontendLog','saveTaskMap','reason','complete','defineProperty','spin','_docSkeletonManagerService','getCellPositionByOffset','SessionStatus','rgb','_hasFormulaInDirtyRanges','Subject','startsWith','InsertRangeMoveDownCommandId','UPDATE_CURSOR','IImageIoService','registerComponent','endRow','HTTPService','fromEventSubject','function','univer-text-green-500','getActiveSheet','_textBubble','status$','USERS_LEAVE','_startCalculationLimit','packageName','beforeCommandExecuted','27996920FvDNJC','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getUnitStatus$','colorClass','_localCacheService','onPointerEnter$','startColumn','post','actions','size','_initUserListener','replaceState','_drawTextRange','_handleEvent','onTransformChange$','_applyCommand','NOT_COLLAB','[Unhandled\x20Rejection]:\x20','href','currentTheme$','_checkCalculationAvailable','color','parseInt','stage','setParam','_labelPosition','triggerDblclick','ILocalCacheService','key','debounce','pushState','offsetY','_backgroundColor','ranges','getViewport','currentUsage','_dataLoaderService','_updateLocalCursor','_beforeCloseService','_syncEditingCollabCursorService','textRanges','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','getRangePointData','LocaleService','pulse','getVpScrollXYInfoByPosToVp','IMessageService','maxFormulaLimit','transformStateCache','debounceTime','handleMoveRange','application/json','isInternalEditorID','_hovered','then','loadUnit','DisposableCollection','_updateSubUnitFromURLParams','row','rgba(','_entityInit$','InsertRangeMoveRightCommandId','Optional','updateOfflineData','_entities','unshift','getOffsetConfig','origin','getCurrentSelections','runId','MemberService','span','_getSessionTicket','7989056mvKtgi','_updateURLWithCurrentState','RegularPolygon','getActiveRange','fillText','preventDefault','getMergeData','DependentOn','delete','JOIN_ROOM_FAILED','filename','_disabled','getColorFromTheme','bind','cursorInfo$','_highlightSecond','mergeOverrideWithDependencies','EffectRefRangId','_collaborationSessionService','some','range','reconnect','ticket','SheetsSelectionsService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','executionId','ONLINE','_offsetY','2851464UNFcCg','distinctUntilChanged','Warning','from','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','yellow.400','RemoteUniscriptService','saveOfflineData','_scheduleSaving','_colorIndex','sheetId','2bjefqy','collaboration-client-ui.permission.content','selection','/universer-api/license/formula/limit/status','memberID','[Window\x20Error]:\x20','focused$','isTransformMutationsWithChangesetSuccess','replace','798UXOYRu','InsertRowCommandId','generateRandomId','_roomMembers$','Loading','set','_isBlinkVisible','_online','highlight','_themeService','default','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','shareReplay','_transformUndoRedoStack','cursorInfo','collaboration-client-ui.permission.title','MoveRangeCommandId','getMemberID','_renderManagerService','_transformService','searchParams','SetFormulaCalculationNotificationMutation','drawWith','_registerRenderDependencies','registerRefRange','_render','_uploadLog','OFFLINE','Rectangle','restore','_status$','UNIVER_SHEET','_lastPointer','CollaborationSessionService','_initEvent','_blinkTimer','throttleTime','_uiPartsService','getSheetObject','runRefRangeMutations','getValue','bottom','SetTextSelectionsOperation','_transformPreviousActiveRange','getUnhiddenWorksheets','fill','_transformHistoryAndStateStack','handleInsertRow','CollaborationSocketService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','entityInit$','_draw','addObject','univer-text-blue-500','collaboration-client-ui.formula.calculation.unable','ILocalStorageService','Enter','useObservable','disposeWithMe','setShapeProps','[CollaborationDataLoaderController]','useMemo','RemoveRowCommandId','indicator','_taskIds','OffLineIcon','getParam','polite','_urlService','_messageService','top','_cachedData','_showGuardMessage','Failed','roomMembers$','_docStateChangeManagerService','mapTo','button','stringify','Shape','#FFF','uni.network.url-service','Inject','RECT','0.2)','stageInfo','location','handleIRemoveCol','saveImage','currentSkeleton$','loadOfflineData','_saveTaskMap','TRANSFORM_CHANGE_OBSERVABLE_TYPE','engine','51079WVEOTx','ICommandService','handleInsertCol','max','\x20at\x20','_color','DocIMEInputManagerService','wsSessionTicketUrl','collaboration-client-ui.collabStatus.fetchMiss','labelPosition','_setupBeforeClosingHandler','_sheetSkeletonManagerService','docStateChange$','getUnitId','UniverCollaborationClientPlugin','toRgbString','font','2606048Lkeluy','setConfig','jiqing.500','doc.mutation.rich-text-editing','syncEditingCollabCursor','newValue','UniverCollaborationClientUIPlugin','transformByState','exhaustSavingTask','CONFLICT','_monkeyPatchLogService','startFormulaLimitUrl','measureText','endColumn','makeDirty','_clearOtherTimers','ISocketService','hide','invokeId','Rect','assignAColorForMemberID','true','lineno','SOCKET_FAILED','RemoveColCommandId','text','disposeUnit','getTypeOfUnitDisposed$','transformMutation','onLocalMutation','push','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','handleDeleteRangeMoveLeft','urlChange$','disableLocalCache','_getAnchorBounding','_cursorInfo$','isActive','subunit','_cursor','Injector','addHandlerCallback','_localStorageService','Module','getFocusedUnit','transformIMECache','collaboration-client-ui.collabStatus.conflict','LOCAL_CACHE_INTERVAL','_docClipboardService','min','Error','_saveCache','START_CALCULATION','next','limitInfo','_getSheetObject','TEXT','_commandService','_onRefRangeChange','sessionStatus$','colno','find','shift','override','_initCommandInterceptor','CollaborationController','_docTransformSelectionsService','addClipboardHook','has','_toggleOffline','decorate','_anchor','FETCH_MISS','_startSheetCollabCursor','SetWorksheetActivateCommand',',\x200.2)','_initCommandExecutedListener','0.25.1','removeEventListener','column','isTransformMutationFailure','DocStateChangeManagerService','_maxFormulaLimit','transform','_showText','clearInterval','dirtyRanges','PENDING','subscribe','_pollingInterval','Vector2','_drawAnchor','RevisionService','clearTimeout','_getFormulaLimitStatus','connectInjector','WebBrowserSingleActiveUnitService','socket$','map','get','univer-border-none\x20univer-bg-transparent','resize','_revisionService','touchDependencies','removeParam','_highlight','ISnapshotServerService','collaboration-client-ui.collabStatus.synced','ITransformService','static','NO_OTHER_CLIENTS_EDITING','WebURLService','getCellMatrix','_name','_lastResponseTimestamp','IUniverInstanceService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','evenodd','getUnit','SheetSkeletonManagerService','Plugin','_unitStatus','_cursors','ErrorCode','send','IConfigService','findNodePositionByCharIndex','_setupSubUnitSync','/universer-api/license/formula/limit/done','Tools','MessageType','Disposable','_refRangeService','jsx','getSheetBySheetId','SetDocZoomRatioOperation','div','getStateCache','dispose$','error','search','_unitOnClients','_collabSessionService','_id','unitID','_onCursorDelete','_handleHeartbeatEvent','_removeClearOtherTimer','registerBeforeClose','_config','with','...','now','takeUntil','SheetCollabCursorShape','code','_handleLeaveEvent','PERMISSION_DENIED','activeSheet$','showText','11552364VsoAGL','setUndoRedoMutationParamsCache','_init','MUTATION','UNIVER_DOC','_hover','DOC_RANGE_TYPE','_pointerMoveDisposable','requireSession','_registerDependencies','tooltipKey','_univerInstanceService','init','OTHER_CLIENTS_EDITING','_stopBlinking','_removeCollabCursors','unsubscribe','ILogService','CollaborationStatus','_clearPolling','createSocket','_colorAssignService','onMouseMove','rgba','RefRangeService','univer-inline-flex\x20univer-items-center\x20univer-justify-center','getUndoRedoMutationParamsCache','slice','getLocalCacheKey','SetFormulaCalculationStartMutation','unitId','serializeRangeWithSheet','_startDocCollabCursor','status','unit','VIEW_MAIN','black','totalFormulasToCalculate','body','ColorKit','univer-m-0\x20univer-p-0','m1Prime','getItem','undoState','CollaborationUIEventId','_checkAndWaitForCalculationPermission','_injector','closePath','getRenderById','highlightSecond','_heartbeatTimer','subscribeEvent','collaboration-client-ui.collabClient.tooltip.reconnect','filter','collaboration-client-ui.collabStatus.syncing','createInstance','isFormulaId','icon','_scheduleHeartbeat','_scene','UniverInstanceType','_collabCursorState$','OnLineIcon','runOnServer','univer-appearance-none','_doCreateSocket','redoState','includes','_instanceService','toDisposable','_scheduleClearOtherTimer','_releaseCalculationLimit','_initWindowErrorListener','startRow','history','_startBlinking','onPointerLeave$','getConfig','onPointerMove$','FormulaExecutedStateType','UnitStatus','clsx','setInterval','getColor','_docSkeleton','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','purple.300','_localeService','params','constructor','BrowserCollaborationSocketService','getAncestorScale','asObservable','_onCursorUpdate','_toggleOnline','_initStatusListener','lineTo','toString','NodePositionConvertToCursor','_eventUnsubscribe','ThemeService','split','LoadingMultiIcon','Unknown\x20user','_anchorDot','m2Prime','combineLatest','_context','getSheetId','Tooltip','_setFormulaLimitStatus','debug','onCommandExecuted','_session','save','_ensureSubject','imageSourceType','forEach','handleInsertRangeMoveDown','deepClone','storage','message','_blinkIntervalTimer','transformSelections','join','collaboration-client-ui.collaboration.closeRoom','pipe','_send','transformRemoteChangeset','getTypeOfUnitAdded$','enableLocalCache','_initUnhandledRejectionListener','_updateCollabCursors','_collabCursorController','arc','INotificationService','1238513wokiHJ','stack','collaboration-client-ui.collabStatus.notCollab','univer-text-red-500','SHEET_VIEWPORT_KEY','_initStatusComponent','BuiltInUIPart','univer-h-8\x20univer-w-8\x20univer-rounded-lg','collab-rect-range-','blue.400','hovered','univer-transition-all\x20univer-duration-200','releaseFormulaLimitUrl','selections','Success','\x20-\x20','_handleHover','show','_memberService','height','fillRule','mutations','COLORS','length','_getSaveTimeout','_docTransformIMECacheService','_memberID','setAlpha','width','_range','isArray','dispose','_currentUsage','_initResize','_shapes','_hideTimer','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','registerDependencies','getCurrentTypeOfUnit$','unload','fromEvent','data','DeleteRangeMoveLeftCommandId','whenReady','IRenderManagerService','_cursorShapes','_assignedColors'];_0x36ac=function(){return _0x32c60e;};return _0x36ac();}O=T([w(0x0,D),w(0x1,t[_0x1f5139(0x1f2)]),w(0x2,t[_0x1f5139(0x3d6)]),w(0x3,(0x0,t[_0x1f5139(0x3c9)])(e['DataLoaderService'])),w(0x4,(0x0,t[_0x1f5139(0x33c)])(l['IRemoteInstanceService']))],O);var ie='@univerjs-pro/collaboration-client-ui',ae=_0x1f5139(0x433);let k=class extends t['RxDisposable']{constructor(_0x5268c5,_0x495837){const _0x330597=_0x1f5139;super(),this['_docClipboardService']=_0x5268c5,this[_0x330597(0x2a2)]=_0x495837,this[_0x330597(0x1e3)]();}[_0x1f5139(0x1e3)](){const _0x54c099=_0x1f5139;let _0x27db72=this;this[_0x54c099(0x3b1)](this[_0x54c099(0x416)][_0x54c099(0x429)]({'onBeforePasteImage':async _0x1e6e71=>{const _0x49aa7a=_0x54c099;let _0x36d1eb=await _0x27db72[_0x49aa7a(0x2a2)][_0x49aa7a(0x3cf)](_0x1e6e71);return _0x36d1eb?{'source':_0x36d1eb[_0x49aa7a(0x2d5)],'imageSourceType':_0x36d1eb[_0x49aa7a(0x255)]}:null;}}));}};k=T([w(0x0,p['IDocClipboardService']),w(0x1,m[_0x1f5139(0x2ef)])],k);const A=[_0x1f5139(0x237),_0x1f5139(0x3e8),_0x1f5139(0x2c1),'red.300',_0x1f5139(0x272),_0x1f5139(0x368)];var j=class extends t['Disposable']{constructor(..._0x246654){const _0x18477f=_0x1f5139;super(..._0x246654),C(this,_0x18477f(0x297),new Map()),C(this,_0x18477f(0x36c),0x0);}[_0x1f5139(0x3fa)](_0x2a0df2){const _0x2addf2=_0x1f5139;if(this['_assignedColors'][_0x2addf2(0x42a)](_0x2a0df2))return this[_0x2addf2(0x297)][_0x2addf2(0x449)](_0x2a0df2);let _0x882483=A[this[_0x2addf2(0x36c)]];return this[_0x2addf2(0x36c)]=(this[_0x2addf2(0x36c)]+0x1)%A[_0x2addf2(0x280)],this[_0x2addf2(0x297)][_0x2addf2(0x37c)](_0x2a0df2,_0x882483),_0x882483;}};function M(_0x7bb1f8){const _0x5f22e0=_0x1f5139;let _0x1feba3='';for(let _0x31ed82 of _0x7bb1f8){let {startOffset:_0x5e00c0,endOffset:_0x4e6686,isActive:_0x5461af,rangeType:_0x391cdd,segmentId:_0x21d33b,segmentPage:_0x18cbd0}=_0x31ed82;_0x1feba3[_0x5f22e0(0x280)]&&(_0x1feba3+=','),_0x1feba3+=_0x5e00c0+':'+_0x4e6686+':'+(_0x5461af?'1':'0')+':'+_0x391cdd+':'+_0x21d33b+':'+_0x18cbd0;}return _0x1feba3;}function oe(_0x3beedb){const _0x474823=_0x1f5139;let _0x1180cd=_0x3beedb[_0x474823(0x246)](','),_0x19bbda=[];for(let _0x44173e of _0x1180cd){let [_0x4fad94,_0x3c051c,_0x598e9d,_0x5ee25a,_0x21b369,_0x41315b]=_0x44173e['split'](':');_0x19bbda['push']({'startOffset':Number(_0x4fad94),'endOffset':Number(_0x3c051c),'collapsed':_0x4fad94===_0x3c051c,'isActive':_0x598e9d==='1','rangeType':_0x5ee25a===t[_0x474823(0x1e7)][_0x474823(0x41e)]?t[_0x474823(0x1e7)][_0x474823(0x41e)]:t[_0x474823(0x1e7)]['RECT'],'segmentId':typeof _0x21b369=='string'?String(_0x21b369):'','segmentPage':Number(_0x41315b==null?-0x1:_0x41315b)});}return _0x19bbda[_0x474823(0x35a)](_0x2bf93e=>_0x2bf93e[_0x474823(0x40b)])||(_0x19bbda[0x0]['isActive']=!0x0),_0x19bbda;}var N=class extends t[_0x1f5139(0x2b4)]{constructor(..._0x4d3344){const _0x5cce91=_0x1f5139;super(..._0x4d3344),C(this,'_collabCursorState$',new r[(_0x5cce91(0x2b6))](null)),C(this,'collabCursorState$',this[_0x5cce91(0x21e)][_0x5cce91(0x23d)]());}[_0x1f5139(0x3ea)](_0x352a99){const _0x299eee=_0x1f5139;let {unitID:_0x6e5a5e,memberID:_0x39760a,textRanges:_0x1b6da5}=_0x352a99,_0x36491a=M(_0x1b6da5);if(_0x36491a==='')return;let _0x3de11c={'unitID':_0x6e5a5e,'memberID':_0x39760a,'selection':_0x36491a};this[_0x299eee(0x21e)][_0x299eee(0x41b)](_0x3de11c);}};let P=class extends t[_0x1f5139(0x2b4)]{get['cursorInfo'](){const _0x31dca2=_0x1f5139;return this[_0x31dca2(0x40a)][_0x31dca2(0x39f)]();}get['roomMembers'](){const _0x1bff9b=_0x1f5139;return this['_roomMembers$'][_0x1bff9b(0x39f)]();}constructor(_0x4a4d59,_0x97b7e5,_0x478c67,_0x5cfd4a,_0x1a58e6,_0x473f99,_0x1e710f,_0x5f36bd,_0x530a4c){const _0x37f2e0=_0x1f5139;super(),this['unitID']=_0x4a4d59,this[_0x37f2e0(0x252)]=_0x97b7e5,this[_0x37f2e0(0x20f)]=_0x478c67,this[_0x37f2e0(0x1f6)]=_0x5cfd4a,this['_memberService']=_0x1a58e6,this[_0x37f2e0(0x324)]=_0x473f99,this[_0x37f2e0(0x38a)]=_0x1e710f,this[_0x37f2e0(0x1ec)]=_0x5f36bd,this[_0x37f2e0(0x41f)]=_0x530a4c,C(this,_0x37f2e0(0x37e),!0x1),C(this,_0x37f2e0(0x1e3),!0x1),C(this,'_cursorInfo$',new r['BehaviorSubject'](new Map())),C(this,'cursorInfo$',this[_0x37f2e0(0x40a)][_0x37f2e0(0x23d)]()),C(this,_0x37f2e0(0x37a),new r[(_0x37f2e0(0x2b6))]([])),C(this,_0x37f2e0(0x3c1),this['_roomMembers$'][_0x37f2e0(0x25f)]((0x0,r[_0x37f2e0(0x32f)])(0x12c))),C(this,'_updateLocalCursor',(0x0,t[_0x37f2e0(0x31a)])(_0x2d6419=>{const _0x51abb1=_0x37f2e0;let _0x527f7b={'eventID':h[_0x51abb1(0x2b5)][_0x51abb1(0x2ee)],'data':{'unitID':this[_0x51abb1(0x1d1)],'memberID':this[_0x51abb1(0x252)][_0x51abb1(0x388)](),'selection':M(_0x2d6419)}};this[_0x51abb1(0x252)][_0x51abb1(0x462)](_0x527f7b,this[_0x51abb1(0x1d1)]);},0x64));}[_0x1f5139(0x288)](){const _0x54505b=_0x1f5139;super[_0x54505b(0x288)](),this[_0x54505b(0x40a)][_0x54505b(0x41b)](new Map()),this[_0x54505b(0x40a)][_0x54505b(0x2e3)](),this[_0x54505b(0x37a)][_0x54505b(0x41b)]([]),this[_0x54505b(0x37a)][_0x54505b(0x2e3)]();}['init'](){const _0x55b2b7=_0x1f5139;this[_0x55b2b7(0x1e3)]||(this['_init']=!0x0,this[_0x55b2b7(0x252)]['sessionStatus$'][_0x55b2b7(0x25f)]((0x0,r[_0x55b2b7(0x1da)])(this[_0x55b2b7(0x1cb)]))[_0x55b2b7(0x43e)](_0x461cbc=>{const _0xf20570=_0x55b2b7;_0x461cbc===e[_0xf20570(0x2e8)]['ONLINE']?this[_0xf20570(0x23f)]():this[_0xf20570(0x42b)]();}),this['_session']['event$'][_0x55b2b7(0x25f)]((0x0,r[_0x55b2b7(0x1da)])(this['dispose$']))[_0x55b2b7(0x43e)](_0x2bd2bf=>{const _0x8f4fa3=_0x55b2b7;let _0x4248a4=_0x2bd2bf['eventID'];_0x4248a4===h[_0x8f4fa3(0x2b5)][_0x8f4fa3(0x2ee)]&&this[_0x8f4fa3(0x23e)](_0x2bd2bf),_0x4248a4===h[_0x8f4fa3(0x2b5)][_0x8f4fa3(0x2f9)]&&this['_onCursorDelete'](_0x2bd2bf);}),this[_0x55b2b7(0x3b1)](this[_0x55b2b7(0x41f)][_0x55b2b7(0x251)](_0x265556=>{const _0x553dee=_0x55b2b7;let _0x1704a9=_0x265556['params'];_0x1704a9!=null&&this['_online']&&_0x265556['id']===g[_0x553dee(0x3a1)]['id']&&_0x1704a9[_0x553dee(0x1ff)]===this[_0x553dee(0x1d1)]&&_0x1704a9[_0x553dee(0x2c2)]===!0x1&&_0x1704a9[_0x553dee(0x31e)][_0x553dee(0x280)]>0x0&&this['_updateLocalCursor'](_0x1704a9[_0x553dee(0x31e)]);})),this[_0x55b2b7(0x324)]['collabCursorState$'][_0x55b2b7(0x25f)]((0x0,r[_0x55b2b7(0x1da)])(this[_0x55b2b7(0x1cb)]))[_0x55b2b7(0x43e)](_0xea0d48=>{const _0x368666=_0x55b2b7;if((_0xea0d48==null?void 0x0:_0xea0d48[_0x368666(0x1d1)])!==this[_0x368666(0x1d1)])return;let _0x1adb0d={'eventID':h[_0x368666(0x2b5)][_0x368666(0x2ee)],'data':_0xea0d48};this[_0x368666(0x23e)](_0x1adb0d);}),this[_0x55b2b7(0x3b1)](this[_0x55b2b7(0x41f)][_0x55b2b7(0x251)](_0x57e3ea=>{const _0x40b10e=_0x55b2b7;if(_0x57e3ea[_0x40b10e(0x239)]==null)return;let _0x229471=_0x57e3ea[_0x40b10e(0x239)];if(_0x57e3ea['id']!==g['RichTextEditingMutation']['id']||_0x229471[_0x40b10e(0x1ff)]!==this['unitID'])return;let _0x3fa1b3={'id':'doc.mutation.rich-text-editing','params':_0x229471},_0x317ec2=this['cursorInfo'];for(let [_0x3a6b71,_0x4ca35d]of _0x317ec2){let _0x24e591={'id':_0x40b10e(0x3e9),'params':{'unitId':this[_0x40b10e(0x1d1)],'actions':null,'textRanges':_0x4ca35d[_0x40b10e(0x31e)]}},_0x15df7a=this['_transformService']['transformMutation'](_0x3fa1b3,_0x24e591,!0x1);if((0x0,h[_0x40b10e(0x436)])(_0x15df7a))throw _0x15df7a['error'];_0x317ec2[_0x40b10e(0x37c)](_0x3a6b71,{..._0x4ca35d,'ranges':_0x15df7a[_0x40b10e(0x24a)][_0x40b10e(0x239)][_0x40b10e(0x325)]});}queueMicrotask(()=>{const _0x1aa60a=_0x40b10e;this[_0x1aa60a(0x40a)][_0x1aa60a(0x41b)](_0x317ec2);});})));}['_onCursorUpdate'](_0x6e316e){const _0x2cbdab=_0x1f5139;var _0x50bf1c,_0x57514a;let {memberID:_0x565e76,selection:_0x29960f}=_0x6e316e[_0x2cbdab(0x292)],_0x1ad800=oe(_0x29960f),_0x4f5ee8=(_0x50bf1c=(_0x57514a=this[_0x2cbdab(0x27b)][_0x2cbdab(0x2cc)](this[_0x2cbdab(0x1d1)],_0x565e76))==null?void 0x0:_0x57514a[_0x2cbdab(0x327)])==null?'Unknown\x20user':_0x50bf1c,_0x40ce70={'color':this[_0x2cbdab(0x1f6)][_0x2cbdab(0x3fa)](_0x565e76),'name':_0x4f5ee8,'ranges':_0x1ad800},_0xfd679e=this[_0x2cbdab(0x385)];_0xfd679e['set'](_0x565e76,_0x40ce70),this[_0x2cbdab(0x40a)][_0x2cbdab(0x41b)](_0xfd679e);}['_onCursorDelete'](_0x4d6286){const _0x34e123=_0x1f5139;let {memberID:_0x43ec9a}=_0x4d6286[_0x34e123(0x292)],_0x542890=this[_0x34e123(0x385)];_0x542890['delete'](_0x43ec9a),this['_cursorInfo$']['next'](_0x542890);}['_toggleOnline'](){const _0x11f1aa=_0x1f5139;var _0x40497a;if(this['_online']=!0x0,((_0x40497a=this[_0x11f1aa(0x1ec)][_0x11f1aa(0x412)]())==null?void 0x0:_0x40497a[_0x11f1aa(0x3e2)]())!==this[_0x11f1aa(0x1d1)])return;let _0x137c5e=this[_0x11f1aa(0x20f)]['get'](g['DocSelectionManagerService'])[_0x11f1aa(0x2d7)]();Array[_0x11f1aa(0x287)](_0x137c5e)&&_0x137c5e[_0x11f1aa(0x280)]>0x0&&this[_0x11f1aa(0x322)](_0x137c5e);}[_0x1f5139(0x42b)](){const _0x3b0243=_0x1f5139;this[_0x3b0243(0x37e)]=!0x1;}};P=T([w(0x2,(0x0,t['Inject'])(t['Injector'])),w(0x3,(0x0,t['Inject'])(j)),w(0x4,(0x0,t['Inject'])(e[_0x1f5139(0x344)])),w(0x5,(0x0,t[_0x1f5139(0x3c9)])(N)),w(0x6,h['ITransformService']),w(0x7,t['IUniverInstanceService']),w(0x8,t[_0x1f5139(0x3d6)])],P);const se=()=>{let _0x436bb6=[],_0x365ba8=!0x1;return _0x535e20=>{const _0x1827ff=_0x4fbb;_0x436bb6[_0x1827ff(0x404)](_0x535e20),_0x365ba8||(_0x365ba8=!0x0,setTimeout(()=>{const _0x42e852=_0x1827ff;_0x436bb6[_0x42e852(0x256)](_0x2c79a0=>_0x2c79a0()),_0x436bb6=[],_0x365ba8=!0x1;}));};};let F=class extends t[_0x1f5139(0x2b4)]{get['cursorInfo'](){const _0x256c23=_0x1f5139;return this[_0x256c23(0x40a)][_0x256c23(0x39f)]();}get['roomMembers'](){const _0x3d4992=_0x1f5139;return this[_0x3d4992(0x37a)][_0x3d4992(0x39f)]();}constructor(_0x910206,_0x5ebde9,_0x36c1c0,_0x4d76d0,_0x5c46be,_0x2f527b,_0x12e1a5,_0x59a034){const _0xda654f=_0x1f5139;super(),this['unitID']=_0x910206,this['_session']=_0x5ebde9,this[_0xda654f(0x20f)]=_0x36c1c0,this[_0xda654f(0x1f6)]=_0x4d76d0,this[_0xda654f(0x27b)]=_0x5c46be,this['_univerInstanceService']=_0x2f527b,this[_0xda654f(0x41f)]=_0x12e1a5,this[_0xda654f(0x1c5)]=_0x59a034,C(this,_0xda654f(0x37e),!0x1),C(this,_0xda654f(0x1e3),!0x1),C(this,_0xda654f(0x40a),new r[(_0xda654f(0x2b6))](new Map())),C(this,_0xda654f(0x355),this[_0xda654f(0x40a)][_0xda654f(0x23d)]()),C(this,_0xda654f(0x37a),new r[(_0xda654f(0x2b6))]([])),C(this,_0xda654f(0x3c1),this['_roomMembers$']['pipe']((0x0,r[_0xda654f(0x32f)])(0x12c))),C(this,'_updateLocalCursor',(0x0,t['debounce'])((_0xb1dd57,_0x46fe69)=>{const _0x12145d=_0xda654f;let _0x7f3c67={'eventID':h[_0x12145d(0x2b5)][_0x12145d(0x2ee)],'data':{'unitID':this[_0x12145d(0x1d1)],'memberID':this['_session'][_0x12145d(0x388)](),'selection':(0x0,_[_0x12145d(0x200)])(_0xb1dd57,_0x46fe69[_0x12145d(0x35b)])}};this[_0x12145d(0x252)][_0x12145d(0x462)](_0x7f3c67,this[_0x12145d(0x1d1)]);},0x64));}[_0x1f5139(0x288)](){const _0x557746=_0x1f5139;super[_0x557746(0x288)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$']['next']([]),this[_0x557746(0x37a)]['complete']();}[_0x1f5139(0x1ed)](){const _0x4bf7ec=_0x1f5139;this[_0x4bf7ec(0x1e3)]||(this[_0x4bf7ec(0x1e3)]=!0x0,this[_0x4bf7ec(0x252)][_0x4bf7ec(0x421)]['pipe']((0x0,r['takeUntil'])(this[_0x4bf7ec(0x1cb)]))[_0x4bf7ec(0x43e)](_0x2028ea=>{const _0x4ec550=_0x4bf7ec;_0x2028ea===e[_0x4ec550(0x2e8)][_0x4ec550(0x361)]?this[_0x4ec550(0x23f)]():this[_0x4ec550(0x42b)]();}),this[_0x4bf7ec(0x252)]['event$'][_0x4bf7ec(0x25f)]((0x0,r[_0x4bf7ec(0x1da)])(this[_0x4bf7ec(0x1cb)]))[_0x4bf7ec(0x43e)](_0x4d6ee2=>{const _0x21300=_0x4bf7ec;let _0x23fd57=_0x4d6ee2['eventID'];_0x23fd57===h['CollaborationEvent'][_0x21300(0x2ee)]&&this[_0x21300(0x23e)](_0x4d6ee2),_0x23fd57===h['CollaborationEvent'][_0x21300(0x2f9)]&&this['_onCursorDelete'](_0x4d6ee2);}),this[_0x4bf7ec(0x420)](),this[_0x4bf7ec(0x3b1)](this['_commandService'][_0x4bf7ec(0x251)](_0x50c9f8=>{const _0x53548c=_0x4bf7ec;if(this[_0x53548c(0x37e)]&&_0x50c9f8['id']===u['SetSelectionsOperation']['id']&&_0x50c9f8['params']['unitId']===this['unitID']){let _0x163a87=_0x50c9f8[_0x53548c(0x239)];this[_0x53548c(0x322)](_0x163a87['subUnitId'],_0x163a87[_0x53548c(0x276)][0x0]);}})));}[_0x1f5139(0x23e)](_0x415872){const _0x1cc905=_0x1f5139;var _0x1fba26,_0x13dc9d;let {memberID:_0x34097a,selection:_0x2f14e2}=_0x415872[_0x1cc905(0x292)],{sheetName:_0x4fdf91,range:_0x520011}=(0x0,_[_0x1cc905(0x2d1)])(_0x2f14e2),_0xd95153={'name':(_0x1fba26=(_0x13dc9d=this['_memberService'][_0x1cc905(0x2cc)](this[_0x1cc905(0x1d1)],_0x34097a))==null?void 0x0:_0x13dc9d[_0x1cc905(0x327)])==null?_0x1cc905(0x248):_0x1fba26,'range':this[_0x1cc905(0x2bc)](_0x4fdf91,_0x520011),'sheetID':_0x4fdf91,'color':this['_colorAssignService'][_0x1cc905(0x3fa)](_0x34097a),'selection':_0x2f14e2},_0x4b1d8a=this[_0x1cc905(0x385)];_0x4b1d8a[_0x1cc905(0x37c)](_0x34097a,_0xd95153),this['_cursorInfo$']['next'](_0x4b1d8a);}[_0x1f5139(0x1d2)](_0x54e390){const _0x20ef4f=_0x1f5139;let {memberID:_0x1804f3}=_0x54e390[_0x20ef4f(0x292)],_0x5d4012=this[_0x20ef4f(0x385)];_0x5d4012[_0x20ef4f(0x34f)](_0x1804f3),this[_0x20ef4f(0x40a)][_0x20ef4f(0x41b)](_0x5d4012);}[_0x1f5139(0x2bc)](_0x2afa19,_0x635a31){const _0xdd4266=_0x1f5139;var _0x440667;let _0x45ecfa=(_0x440667=this['_univerInstanceService']['getUniverSheetInstance'](this[_0xdd4266(0x1d1)]))==null||(_0x440667=_0x440667[_0xdd4266(0x1c7)](_0x2afa19))==null?void 0x0:_0x440667[_0xdd4266(0x34d)]();return(_0x45ecfa==null?void 0x0:_0x45ecfa[_0xdd4266(0x423)](_0x2ee82f=>t[_0xdd4266(0x393)][_0xdd4266(0x2b0)](_0x2ee82f,_0x635a31)))||_0x635a31;}[_0x1f5139(0x420)](){const _0x2636dd=_0x1f5139;let _0x1f9d40=new t[(_0x2636dd(0x336))](),_0x170182=se(),_0x39156b=()=>{const _0x4e3e41=_0x2636dd;_0x1f9d40[_0x4e3e41(0x288)]();let _0x33400d=(_0xe4efeb,_0x9105f8,_0x29f72c,_0x23cb26)=>{const _0x3912d5=_0x4e3e41;let _0x2e80a1=[];switch(_0xe4efeb['id']){case u['EffectRefRangId'][_0x3912d5(0x293)]:_0x2e80a1=(0x0,u[_0x3912d5(0x406)])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)]['DeleteRangeMoveUpCommandId']:_0x2e80a1=(0x0,u['handleDeleteRangeMoveUp'])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)][_0x3912d5(0x29c)]:_0x2e80a1=(0x0,u[_0x3912d5(0x3d7)])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)][_0x3912d5(0x2ed)]:_0x2e80a1=(0x0,u[_0x3912d5(0x257)])(_0xe4efeb,_0x23cb26);break;case u['EffectRefRangId'][_0x3912d5(0x33b)]:_0x2e80a1=(0x0,u[_0x3912d5(0x2a5)])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)][_0x3912d5(0x378)]:_0x2e80a1=(0x0,u[_0x3912d5(0x3a6)])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)][_0x3912d5(0x387)]:_0x2e80a1=(0x0,u[_0x3912d5(0x330)])(_0xe4efeb,_0x23cb26);break;case u['EffectRefRangId'][_0x3912d5(0x3fe)]:_0x2e80a1=(0x0,u[_0x3912d5(0x3ce)])(_0xe4efeb,_0x23cb26);break;case u['EffectRefRangId'][_0x3912d5(0x3b5)]:_0x2e80a1=(0x0,u['handleIRemoveRow'])(_0xe4efeb,_0x23cb26);break;}let _0x5a5cc3=(0x0,u[_0x3912d5(0x39e)])(_0x2e80a1,_0x23cb26),_0x12bfe2=this[_0x3912d5(0x385)][_0x3912d5(0x449)](_0x9105f8);if(_0x12bfe2&&_0x5a5cc3){let _0x496235={..._0x12bfe2,'range':_0x5a5cc3};this[_0x3912d5(0x385)]['set'](_0x9105f8,_0x496235),_0x170182(()=>{const _0x520ef6=_0x3912d5;let _0x558531=this[_0x520ef6(0x1c5)][_0x520ef6(0x38f)](_0x5a5cc3,_0xc0f5a4=>(_0x558531[_0x520ef6(0x288)](),_0x33400d(_0xc0f5a4,_0x9105f8,_0x29f72c,_0x5a5cc3)));_0x1f9d40['add'](_0x558531);});}return{'redos':[],'undos':[]};};this[_0x4e3e41(0x385)][_0x4e3e41(0x256)]((_0xae0fba,_0x3c1210)=>{const _0x4380c3=_0x4e3e41;let {range:_0x1c2db1,sheetID:_0x34f24b}=_0xae0fba,_0x260f2c=this[_0x4380c3(0x1c5)][_0x4380c3(0x38f)](_0x1c2db1,_0x4dd485=>(_0x260f2c[_0x4380c3(0x288)](),_0x33400d(_0x4dd485,_0x3c1210,_0x34f24b,_0x1c2db1)));_0x1f9d40[_0x4380c3(0x2c5)](_0x260f2c);});};this['disposeWithMe']((0x0,t[_0x2636dd(0x226)])(this[_0x2636dd(0x40a)][_0x2636dd(0x43e)](()=>{_0x39156b();})));}['_toggleOnline'](){const _0x3e3d42=_0x1f5139;var _0x229d10,_0x3fadac;if(this[_0x3e3d42(0x37e)]=!0x0,((_0x229d10=this['_univerInstanceService'][_0x3e3d42(0x412)]())==null?void 0x0:_0x229d10[_0x3e3d42(0x3e2)]())!==this[_0x3e3d42(0x1d1)])return;let _0x257a1c=(_0x3fadac=this[_0x3e3d42(0x20f)][_0x3e3d42(0x449)](u[_0x3e3d42(0x35e)])[_0x3e3d42(0x342)]())==null?void 0x0:_0x3fadac[0x0],_0x40f42c=this[_0x3e3d42(0x1ec)][_0x3e3d42(0x2be)](t[_0x3e3d42(0x21d)][_0x3e3d42(0x396)])[_0x3e3d42(0x2f6)]();_0x257a1c&&_0x40f42c&&this[_0x3e3d42(0x322)](_0x40f42c[_0x3e3d42(0x24d)](),_0x257a1c);}['_toggleOffline'](){const _0x571dce=_0x1f5139;this[_0x571dce(0x37e)]=!0x1;}};F=T([w(0x2,(0x0,t['Inject'])(t[_0x1f5139(0x40e)])),w(0x3,(0x0,t[_0x1f5139(0x3c9)])(j)),w(0x4,(0x0,t[_0x1f5139(0x3c9)])(e[_0x1f5139(0x344)])),w(0x5,t[_0x1f5139(0x459)]),w(0x6,t[_0x1f5139(0x3d6)]),w(0x7,(0x0,t[_0x1f5139(0x3c9)])(u[_0x1f5139(0x1f9)]))],F);let I=class extends t[_0x1f5139(0x2b4)]{constructor(_0x2e4c0f,_0x1492c8,_0x10d051){const _0x4db2ce=_0x1f5139;super(),this[_0x4db2ce(0x1ec)]=_0x2e4c0f,this[_0x4db2ce(0x20f)]=_0x1492c8,this[_0x4db2ce(0x1cf)]=_0x10d051,C(this,_0x4db2ce(0x33e),new Map()),C(this,_0x4db2ce(0x33a),new r[(_0x4db2ce(0x2eb))]()),this[_0x4db2ce(0x1e3)]();}[_0x1f5139(0x288)](){const _0x536da6=_0x1f5139;super['dispose'](),this[_0x536da6(0x33a)][_0x536da6(0x2e3)](),this['_entities'][_0x536da6(0x256)](_0x408138=>_0x408138[_0x536da6(0x288)]());}[_0x1f5139(0x2ac)](_0x5b92e1){const _0x58c1fd=_0x1f5139;return this['_entities'][_0x58c1fd(0x42a)](_0x5b92e1)?this[_0x58c1fd(0x33e)][_0x58c1fd(0x449)](_0x5b92e1)['cursorInfo$']:this['_entityInit$'][_0x58c1fd(0x25f)]((0x0,r[_0x58c1fd(0x216)])(_0x10ade0=>_0x10ade0['unitID']===_0x5b92e1),(0x0,r[_0x58c1fd(0x2d6)])(_0x434a57=>_0x434a57[_0x58c1fd(0x355)]));}[_0x1f5139(0x1e3)](){const _0x1996ec=_0x1f5139;this[_0x1996ec(0x1ec)][_0x1996ec(0x262)](t['UniverInstanceType'][_0x1996ec(0x396)])['pipe']((0x0,r['takeUntil'])(this[_0x1996ec(0x1cb)]))[_0x1996ec(0x43e)](async _0x445a3a=>{const _0x50c5d6=_0x1996ec;let _0x208551=_0x445a3a[_0x50c5d6(0x203)][_0x50c5d6(0x3e2)](),_0x258792=await this[_0x50c5d6(0x42f)](_0x208551);this[_0x50c5d6(0x33a)][_0x50c5d6(0x41b)](_0x258792),this[_0x50c5d6(0x33e)][_0x50c5d6(0x37c)](_0x208551,_0x258792);}),this[_0x1996ec(0x1ec)][_0x1996ec(0x262)](t[_0x1996ec(0x21d)][_0x1996ec(0x1e5)])[_0x1996ec(0x25f)]((0x0,r[_0x1996ec(0x1da)])(this[_0x1996ec(0x1cb)]))[_0x1996ec(0x25f)]((0x0,r[_0x1996ec(0x216)])(_0x1cb7a3=>!_0x1cb7a3[_0x1996ec(0x203)]['getUnitId']()[_0x1996ec(0x2ec)]('__')))[_0x1996ec(0x43e)](async _0x1f7c0f=>{const _0x5b6ee2=_0x1996ec;let {unit:_0xc7e75f}=_0x1f7c0f,_0x4d1d93=_0xc7e75f[_0x5b6ee2(0x3e2)](),_0x4e10ab=await this[_0x5b6ee2(0x201)](_0x4d1d93);this[_0x5b6ee2(0x33a)][_0x5b6ee2(0x41b)](_0x4e10ab),this[_0x5b6ee2(0x33e)][_0x5b6ee2(0x37c)](_0x4d1d93,_0x4e10ab);}),(0x0,r[_0x1996ec(0x2bb)])(this[_0x1996ec(0x1ec)]['getTypeOfUnitDisposed$'](t[_0x1996ec(0x21d)][_0x1996ec(0x1e5)]),this['_univerInstanceService'][_0x1996ec(0x401)](t[_0x1996ec(0x21d)][_0x1996ec(0x396)]))['pipe']((0x0,r[_0x1996ec(0x1da)])(this[_0x1996ec(0x1cb)]))[_0x1996ec(0x43e)](_0x290cb8=>{const _0x48010d=_0x1996ec;let _0x43b271=_0x290cb8[_0x48010d(0x3e2)](),_0x4a018b=this[_0x48010d(0x33e)][_0x48010d(0x449)](_0x43b271);_0x4a018b&&(_0x4a018b[_0x48010d(0x288)](),this[_0x48010d(0x33e)][_0x48010d(0x34f)](_0x43b271));});}async[_0x1f5139(0x42f)](_0x1dd56e){const _0x365e1d=_0x1f5139;let _0x161dc6=await this[_0x365e1d(0x1cf)][_0x365e1d(0x1e9)](_0x1dd56e),_0x428a9a=this['_injector'][_0x365e1d(0x218)](F,_0x1dd56e,_0x161dc6);return _0x428a9a[_0x365e1d(0x1ed)](),_0x428a9a;}async['_startDocCollabCursor'](_0x84237b){const _0x371476=_0x1f5139;let _0x49226b=await this['_collabSessionService'][_0x371476(0x1e9)](_0x84237b),_0x31a857=this['_injector'][_0x371476(0x218)](P,_0x84237b,_0x49226b);return _0x31a857['init'](),_0x31a857;}};I=T([w(0x0,t[_0x1f5139(0x459)]),w(0x1,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x40e)])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(e[_0x1f5139(0x398)]))],I);function ce(_0x2bfeab,_0x48bd13){const _0x2d03cf=_0x1f5139;var _0x7646fc,_0x3784da,_0x4d39e4;let {radius:_0x35774a,width:_0x43a330,height:_0x20892c}=_0x48bd13;_0x35774a=(_0x7646fc=_0x35774a)==null?0x0:_0x7646fc,_0x43a330=(_0x3784da=_0x43a330)==null?0x1e:_0x3784da,_0x20892c=(_0x4d39e4=_0x20892c)==null?0x1e:_0x4d39e4;let _0x498870=0x0,_0x5e02b4=0x0,_0xfb2682=0x0;_0x498870=_0x5e02b4=_0xfb2682=Math[_0x2d03cf(0x417)](_0x35774a,_0x43a330/0x2,_0x20892c/0x2),_0x2bfeab['beginPath'](),_0x2bfeab['moveTo'](_0x498870,0x0),_0x2bfeab['lineTo'](_0x43a330-_0x5e02b4,0x0),_0x2bfeab['arc'](_0x43a330-_0x5e02b4,_0x5e02b4,_0x5e02b4,Math['PI']*0x3/0x2,0x0,!0x1),_0x2bfeab['lineTo'](_0x43a330,_0x20892c-_0xfb2682),_0x2bfeab[_0x2d03cf(0x267)](_0x43a330-_0xfb2682,_0x20892c-_0xfb2682,_0xfb2682,0x0,Math['PI']/0x2,!0x1),_0x2bfeab[_0x2d03cf(0x241)](0x0,_0x20892c),_0x2bfeab[_0x2d03cf(0x241)](0x0,_0x498870),_0x2bfeab[_0x2d03cf(0x267)](_0x498870,_0x498870,_0x498870,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2bfeab[_0x2d03cf(0x210)](),_0x48bd13['fill']&&(_0x2bfeab[_0x2d03cf(0x253)](),_0x2bfeab[_0x2d03cf(0x2c6)]=_0x48bd13[_0x2d03cf(0x3a4)],_0x48bd13[_0x2d03cf(0x27d)]===_0x2d03cf(0x45b)?_0x2bfeab[_0x2d03cf(0x3a4)](_0x2d03cf(0x45b)):_0x2bfeab['fill'](),_0x2bfeab[_0x2d03cf(0x394)]());}var le=class e extends d[_0x1f5139(0x3c6)]{constructor(_0x37f8ee,_0x3fad84){const _0x319341=_0x1f5139;super(_0x37f8ee,_0x3fad84),C(this,_0x319341(0x312),void 0x0),C(this,_0x319341(0x3ff),void 0x0),this[_0x319341(0x312)]=_0x3fad84==null?void 0x0:_0x3fad84['color'],this[_0x319341(0x3ff)]=_0x3fad84==null?void 0x0:_0x3fad84[_0x319341(0x3ff)];}static['drawWith'](_0x29e8b7,_0x4e3868){const _0x108ae3=_0x1f5139;let {text:_0x5a200b,color:_0x36dec5}=_0x4e3868;_0x29e8b7[_0x108ae3(0x253)](),_0x29e8b7[_0x108ae3(0x3e5)]=_0x108ae3(0x28d);let _0x1ae987=_0x29e8b7[_0x108ae3(0x3f2)](_0x5a200b)['width'];if(ce(_0x29e8b7,{'height':0x14,'radius':0x4,'width':Math[_0x108ae3(0x417)](_0x1ae987+0x8,0xc8),'fill':_0x36dec5,'evented':!0x1}),_0x29e8b7[_0x108ae3(0x2c6)]=_0x108ae3(0x3c7),_0x1ae987>0xc0){let _0x4d7c29='',_0x5b5108=0x0;for(let _0x541252 of _0x5a200b){let _0x46e000=_0x29e8b7['measureText'](_0x541252)[_0x108ae3(0x285)];if(_0x5b5108+_0x46e000<=0xc0-_0x29e8b7['measureText'](_0x108ae3(0x1d8))[_0x108ae3(0x285)])_0x4d7c29+=_0x541252,_0x5b5108+=_0x46e000;else{_0x4d7c29+=_0x108ae3(0x1d8);break;}}_0x29e8b7[_0x108ae3(0x34b)](_0x4d7c29,0x4,0xf);}else _0x29e8b7[_0x108ae3(0x34b)](_0x5a200b,0x4,0xf);_0x29e8b7['restore']();}[_0x1f5139(0x3aa)](_0x5c1861){e['drawWith'](_0x5c1861,this);}};const L=_0x1f5139(0x2a7);var ue=class{constructor(_0x4929ab,_0x3acf73,_0x126271,_0x56dd06){const _0x3645bd=_0x1f5139;this[_0x3645bd(0x40d)]=_0x4929ab,this[_0x3645bd(0x21c)]=_0x3acf73,this[_0x3645bd(0x235)]=_0x126271,this['_document']=_0x56dd06,C(this,_0x3645bd(0x28b),[]),C(this,_0x3645bd(0x42d),null),C(this,_0x3645bd(0x2f7),null),C(this,_0x3645bd(0x249),null),C(this,_0x3645bd(0x28c),null),C(this,_0x3645bd(0x244),null),this[_0x3645bd(0x390)]();}set[_0x1f5139(0x1e6)](_0x356db6){const _0x1675d1=_0x1f5139;_0x356db6?(this[_0x1675d1(0x249)]&&this[_0x1675d1(0x249)][_0x1675d1(0x3f7)](),this[_0x1675d1(0x2f7)]&&this['_textBubble'][_0x1675d1(0x27a)]()):(this[_0x1675d1(0x249)]&&this[_0x1675d1(0x249)][_0x1675d1(0x27a)](),this[_0x1675d1(0x2f7)]&&this[_0x1675d1(0x2f7)]['hide']());}['dispose'](){const _0x12e47a=_0x1f5139;for(let _0x629c3b of this['_shapes'])_0x629c3b['dispose']();this[_0x12e47a(0x2f7)]&&this['_textBubble'][_0x12e47a(0x288)](),this[_0x12e47a(0x249)]&&this[_0x12e47a(0x249)][_0x12e47a(0x288)](),this[_0x12e47a(0x42d)]&&this[_0x12e47a(0x42d)][_0x12e47a(0x288)](),this[_0x12e47a(0x244)]&&this['_eventUnsubscribe']();}[_0x1f5139(0x390)](){const _0x22b79f=_0x1f5139;let {_docSkeleton:_0x1c2ebb,_document:_0x1a4974}=this,{color:_0x1a25b4,name:_0x2cdda2,ranges:_0x3023d6}=this['_cursor'],_0x387443=_0x1a4974[_0x22b79f(0x340)](),{docsLeft:_0x365509,docsTop:_0xff4c8a}=_0x387443,_0x2ca8e7=new p[(_0x22b79f(0x243))](_0x387443,_0x1c2ebb);for(let {startOffset:_0x5353bd,endOffset:_0x64737d,rangeType:_0x283a9a,segmentId:_0xea35f9,segmentPage:_0x5f449d,collapsed:_0x132dde,isActive:_0xe41145}of _0x3023d6){let _0x4d37b3=_0x1c2ebb['findNodePositionByCharIndex'](_0x5353bd,!0x0,_0xea35f9,_0x5f449d),_0x28d236=_0x1c2ebb[_0x22b79f(0x464)](_0x64737d,!0x0,_0xea35f9,_0x5f449d);if(_0x28d236==null&&(_0x28d236=_0x1c2ebb[_0x22b79f(0x464)](_0x64737d-0x1,!0x1,_0xea35f9,_0x5f449d)),_0xe41145){let {contentBoxPointGroup:_0x56bb1a}=_0x2ca8e7[_0x22b79f(0x328)](_0x28d236,_0x28d236);if(_0x56bb1a[_0x22b79f(0x280)]===0x0)continue;this[_0x22b79f(0x441)](_0x1a25b4,_0x56bb1a,_0x365509,_0xff4c8a,_0x2cdda2),this[_0x22b79f(0x244)]=this[_0x22b79f(0x279)]();}if(_0x4d37b3&&_0x28d236){if(_0x283a9a===t['DOC_RANGE_TYPE'][_0x22b79f(0x3ca)]){var _0xd8d29;let {pointGroup:_0x1f5c49}=(_0xd8d29=new p['NodePositionConvertToRectRange'](_0x387443,_0x1c2ebb)[_0x22b79f(0x328)](_0x4d37b3,_0x28d236))==null?{}:_0xd8d29;if(_0x1f5c49==null||_0x1f5c49[_0x22b79f(0x280)]===0x0)continue;this[_0x22b79f(0x2bf)](_0x1a25b4,_0x1f5c49,_0x365509,_0xff4c8a);}else{if(!_0x132dde){let {borderBoxPointGroup:_0x52c02b}=_0x2ca8e7[_0x22b79f(0x328)](_0x4d37b3,_0x28d236);if(_0x52c02b[_0x22b79f(0x280)]===0x0)continue;this[_0x22b79f(0x309)](_0x1a25b4,_0x52c02b,_0x365509,_0xff4c8a);}}}}}[_0x1f5139(0x441)](_0x276034,_0x164515,_0x13b1ae,_0x50f1ce,_0x2db254){const _0x2e0a84=_0x1f5139;let {left:_0x36da27,top:_0x7f2f8b,height:_0x311819}=this['_getAnchorBounding'](_0x164515),_0x5f3291=1.5/this['_getScale'](),_0x395218=new d[(_0x2e0a84(0x3f9))](L+(0x0,t[_0x2e0a84(0x379)])(0x6),{'left':_0x36da27+_0x13b1ae-_0x5f3291,'top':_0x7f2f8b+_0x50f1ce,'height':_0x311819,'width':1.5,'fill':_0x276034||(0x0,d['getColor'])(t[_0x2e0a84(0x27f)][_0x2e0a84(0x205)],0x0),'strokeWidth':_0x5f3291,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x2e0a84(0x42d)]=_0x395218,this['_scene']['addObject'](_0x395218,p[_0x2e0a84(0x29a)]);let _0x2869f4=new d[(_0x2e0a84(0x3f9))](L+(0x0,t[_0x2e0a84(0x379)])(0x6),{'left':_0x36da27+_0x13b1ae-_0x5f3291,'top':_0x7f2f8b+_0x50f1ce-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x276034||(0x0,d[_0x2e0a84(0x234)])(t[_0x2e0a84(0x27f)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x276034||(0x0,d[_0x2e0a84(0x234)])(t[_0x2e0a84(0x27f)]['black'],0x0),'evented':!0x1});this[_0x2e0a84(0x249)]=_0x2869f4,this[_0x2e0a84(0x21c)][_0x2e0a84(0x3ab)](_0x2869f4,p['TEXT_RANGE_LAYER_INDEX']);let _0x34dd18=new le(L+(0x0,t[_0x2e0a84(0x379)])(0x6),{'left':_0x36da27+_0x13b1ae-_0x5f3291,'top':_0x7f2f8b+_0x50f1ce-0x14,'text':_0x2db254,'color':_0x276034});this['_textBubble']=_0x34dd18,this['_scene']['addObject'](_0x34dd18,p['TEXT_RANGE_LAYER_INDEX']),this[_0x2e0a84(0x1e6)]=!0x1;}[_0x1f5139(0x279)](){const _0x29e68e=_0x1f5139;let _0x2e2e60=this[_0x29e68e(0x42d)][_0x29e68e(0x302)][_0x29e68e(0x214)](()=>{const _0x16d854=_0x29e68e;this[_0x16d854(0x1e6)]=!0x0;}),_0x5eb9b7=this['_anchor'][_0x29e68e(0x22d)][_0x29e68e(0x214)](()=>{const _0x1afbd4=_0x29e68e;this[_0x1afbd4(0x28c)]&&clearTimeout(this[_0x1afbd4(0x28c)]),this[_0x1afbd4(0x28c)]=setTimeout(()=>{const _0x3c68d6=_0x1afbd4;this[_0x3c68d6(0x1e6)]=!0x1;},0x7d0);});return()=>{const _0xfb4e13=_0x29e68e;_0x2e2e60[_0xfb4e13(0x1f1)](),_0x5eb9b7[_0xfb4e13(0x1f1)]();};}[_0x1f5139(0x309)](_0x465d85,_0x3649d0,_0x278654,_0x2d2271){const _0x4a4f1d=_0x1f5139;let _0x361f21=0.2,_0x42a394=new t['ColorKit'](_0x465d85)[_0x4a4f1d(0x284)](_0x361f21)[_0x4a4f1d(0x3e4)](),_0x319bf4=new d['RegularPolygon'](_0x4a4f1d(0x2ae)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x3649d0,'fill':_0x42a394||(0x0,d[_0x4a4f1d(0x234)])(t[_0x4a4f1d(0x27f)][_0x4a4f1d(0x205)],_0x361f21),'left':_0x278654,'top':_0x2d2271,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a4f1d(0x28b)]['push'](_0x319bf4),this[_0x4a4f1d(0x21c)]['addObject'](_0x319bf4,p[_0x4a4f1d(0x29a)]);}['_drawRectRange'](_0x4e3bb7,_0x1bd152,_0xd2b972,_0x25a155){const _0x5f1cde=_0x1f5139;let _0x332907=0.2,_0x1051c4=new t[(_0x5f1cde(0x208))](_0x4e3bb7)['setAlpha'](_0x332907)[_0x5f1cde(0x3e4)](),_0x57c3d4=new d[(_0x5f1cde(0x349))](_0x5f1cde(0x271)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x1bd152,'fill':_0x1051c4||(0x0,d[_0x5f1cde(0x234)])(t['COLORS'][_0x5f1cde(0x205)],_0x332907),'left':_0xd2b972,'top':_0x25a155,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f1cde(0x28b)][_0x5f1cde(0x404)](_0x57c3d4),this[_0x5f1cde(0x21c)]['addObject'](_0x57c3d4,p[_0x5f1cde(0x29a)]);}[_0x1f5139(0x409)](_0x47c27d){let _0xa5e588=_0x47c27d[0x0],_0x26624e=_0xa5e588[0x0],_0x125339=_0xa5e588[0x2],{x:_0x1b5e38,y:_0xc1b2c5}=_0x26624e,{x:_0x1b47e9,y:_0x145103}=_0x125339;return{'left':_0x1b5e38,'top':_0xc1b2c5,'width':_0x1b47e9-_0x1b5e38,'height':_0x145103-_0xc1b2c5};}['_getScale'](){const _0x5a2051=_0x1f5139;let {scaleX:_0x1281f7,scaleY:_0x2f31e9}=this[_0x5a2051(0x21c)][_0x5a2051(0x23c)]();return Math[_0x5a2051(0x3d8)](_0x1281f7,_0x2f31e9);}};let R=class extends t[_0x1f5139(0x2b4)]{constructor(_0x1b7ef6,_0x1b1738,_0x7ade31,_0x40ac82,_0x5936b0){const _0x131e51=_0x1f5139;super(),this[_0x131e51(0x24c)]=_0x1b7ef6,this[_0x131e51(0x2e6)]=_0x1b1738,this[_0x131e51(0x266)]=_0x7ade31,this[_0x131e51(0x41f)]=_0x40ac82,this[_0x131e51(0x380)]=_0x5936b0,C(this,_0x131e51(0x296),[]),C(this,_0x131e51(0x460),[]),this[_0x131e51(0x1e3)]();}[_0x1f5139(0x1e3)](){const _0x31678a=_0x1f5139;let _0x107b1e=this['_context'][_0x31678a(0x1ff)],_0x2fc24b=this[_0x31678a(0x2e6)];this[_0x31678a(0x3b1)]((0x0,r[_0x31678a(0x24b)])([this[_0x31678a(0x266)][_0x31678a(0x2ac)](_0x107b1e),this[_0x31678a(0x380)]['currentTheme$']])[_0x31678a(0x25f)]((0x0,i[_0x31678a(0x448)])(([_0x3b267b,_0x2905e7])=>({'skeleton':_0x2fc24b[_0x31678a(0x2d9)](),'cursors':[..._0x3b267b[_0x31678a(0x2bd)]()]['flatMap'](_0x52c25c=>({..._0x52c25c,'color':this['_themeService']['getColorFromTheme'](_0x52c25c['color'])}))})))[_0x31678a(0x43e)](_0x137138=>{if(this['_removeCollabCursors'](),_0x137138){let {skeleton:_0x1ffadb,cursors:_0x1848ca}=_0x137138;this['_updateCollabCursors'](_0x1ffadb,_0x1848ca);}})),this[_0x31678a(0x28a)](),this[_0x31678a(0x432)]();}['_updateCollabCursors'](_0x329d93,_0xa245ff){const _0x3524cb=_0x1f5139;let {scene:_0x2bc691,mainComponent:_0x572186}=this[_0x3524cb(0x24c)],_0x591853=_0xa245ff[_0x3524cb(0x448)](_0x57c89a=>new ue(_0x57c89a,_0x2bc691,_0x329d93,_0x572186));this[_0x3524cb(0x296)]=_0x591853,this[_0x3524cb(0x460)]=_0xa245ff;}[_0x1f5139(0x2b8)](){const _0x112c66=_0x1f5139;this[_0x112c66(0x1f0)]();let {scene:_0x5459ef,mainComponent:_0x87ddcf}=this[_0x112c66(0x24c)],_0x45ae48=this[_0x112c66(0x2e6)]['getSkeleton'](),_0x1a92a2=this[_0x112c66(0x460)][_0x112c66(0x448)](_0x59e1e1=>new ue(_0x59e1e1,_0x5459ef,_0x45ae48,_0x87ddcf));this[_0x112c66(0x296)]=_0x1a92a2;}['_removeCollabCursors'](){const _0x47bb9c=_0x1f5139;this['_cursorShapes'][_0x47bb9c(0x256)](_0x2f8607=>_0x2f8607[_0x47bb9c(0x288)]()),this[_0x47bb9c(0x296)]=[];}[_0x1f5139(0x432)](){const _0x2b6d28=_0x1f5139;let _0x208d7a=[p[_0x2b6d28(0x1c8)]['id']];this['disposeWithMe'](this[_0x2b6d28(0x41f)]['onCommandExecuted'](_0x2fe81b=>{const _0x1483f7=_0x2b6d28;_0x208d7a[_0x1483f7(0x224)](_0x2fe81b['id'])&&_0x2fe81b[_0x1483f7(0x239)][_0x1483f7(0x1ff)]===this[_0x1483f7(0x24c)][_0x1483f7(0x1ff)]&&this[_0x1483f7(0x2b8)]();}));}[_0x1f5139(0x28a)](){const _0x353545=_0x1f5139;this[_0x353545(0x3b1)]((0x0,t[_0x353545(0x2f3)])(this[_0x353545(0x24c)][_0x353545(0x3d4)][_0x353545(0x30b)])[_0x353545(0x25f)]((0x0,i[_0x353545(0x216)])(_0x39a209=>_0x39a209[_0x353545(0x2a0)]===d[_0x353545(0x3d3)][_0x353545(0x44b)]),(0x0,i[_0x353545(0x39b)])(0x10))[_0x353545(0x43e)](()=>{const _0x264721=_0x353545;this[_0x264721(0x2b8)]();}));}};R=T([w(0x1,(0x0,t[_0x1f5139(0x3c9)])(g['DocSkeletonManagerService'])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(I)),w(0x3,t['ICommandService']),w(0x4,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x245)]))],R);var z=class extends d[_0x1f5139(0x3c6)]{constructor(_0x2f4e19,_0x5de87c){const _0x18c0a7=_0x1f5139;if(super(_0x2f4e19,_0x5de87c),C(this,_0x18c0a7(0x3da),void 0x0),C(this,_0x18c0a7(0x333),!0x1),C(this,_0x18c0a7(0x286),void 0x0),C(this,_0x18c0a7(0x457),''),C(this,_0x18c0a7(0x316),_0x18c0a7(0x3bd)),C(this,'_backgroundColor',void 0x0),C(this,_0x18c0a7(0x43a),void 0x0),C(this,_0x18c0a7(0x44f),void 0x0),C(this,_0x18c0a7(0x356),0x4),C(this,_0x18c0a7(0x39a),void 0x0),C(this,'_blinkIntervalTimer',void 0x0),C(this,_0x18c0a7(0x37d),!0x0),C(this,_0x18c0a7(0x362),0x0),_0x5de87c){var _0x1825b1;if(this[_0x18c0a7(0x3b2)](_0x5de87c),_0x5de87c[_0x18c0a7(0x37f)]&&((_0x1825b1=_0x5de87c['highlightSecond'])==null?this[_0x18c0a7(0x356)]:_0x1825b1)){var _0x3c9003;this['_startBlinking']((_0x3c9003=_0x5de87c[_0x18c0a7(0x212)])==null?this['_highlightSecond']:_0x3c9003);}}this['onPointerEnter$'][_0x18c0a7(0x214)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x18c0a7(0x22d)][_0x18c0a7(0x214)](()=>this[_0x18c0a7(0x3b2)]({'hovered':!0x1}));}['setOffsetY'](_0x30ff87){const _0x57cf1c=_0x1f5139;this[_0x57cf1c(0x362)]=_0x30ff87;}[_0x1f5139(0x3b2)](_0x12b0ea){const _0x58c2b2=_0x1f5139;var _0xaff497,_0x23971d,_0x5adbb2,_0x505987,_0x39d607,_0x1b45e0,_0x560322;this[_0x58c2b2(0x3da)]=(_0xaff497=_0x12b0ea[_0x58c2b2(0x312)])==null?this[_0x58c2b2(0x3da)]:_0xaff497,this[_0x58c2b2(0x333)]=(_0x23971d=_0x12b0ea[_0x58c2b2(0x273)])==null?this[_0x58c2b2(0x333)]:_0x23971d,this[_0x58c2b2(0x286)]=(_0x5adbb2=_0x12b0ea[_0x58c2b2(0x35b)])==null?this[_0x58c2b2(0x286)]:_0x5adbb2,this[_0x58c2b2(0x457)]=(_0x505987=_0x12b0ea[_0x58c2b2(0x327)])==null?this[_0x58c2b2(0x457)]:_0x505987,this[_0x58c2b2(0x316)]=(_0x39d607=_0x12b0ea[_0x58c2b2(0x3de)])==null?this[_0x58c2b2(0x316)]:_0x39d607,this[_0x58c2b2(0x31d)]=(_0x1b45e0=_0x12b0ea[_0x58c2b2(0x2ab)])==null?this[_0x58c2b2(0x31d)]:_0x1b45e0,this['_showText']=(_0x560322=_0x12b0ea[_0x58c2b2(0x1e0)])==null?this['_showText']:_0x560322,_0x12b0ea[_0x58c2b2(0x212)]!==void 0x0&&(this[_0x58c2b2(0x356)]=_0x12b0ea[_0x58c2b2(0x212)]),_0x12b0ea['highlight']!==void 0x0&&(this[_0x58c2b2(0x44f)]=_0x12b0ea[_0x58c2b2(0x37f)]),_0x12b0ea[_0x58c2b2(0x31c)]!==void 0x0&&(this[_0x58c2b2(0x362)]=_0x12b0ea[_0x58c2b2(0x31c)]),this[_0x58c2b2(0x3ed)]({'width':_0x12b0ea[_0x58c2b2(0x285)],'height':_0x12b0ea[_0x58c2b2(0x27c)]});}[_0x1f5139(0x1f7)](_0x464cf3){const _0x2998e2=_0x1f5139;let {row:_0x2caaef,column:_0x3e5df0}=_0x464cf3;if(_0x2caaef>=this[_0x2998e2(0x286)][_0x2998e2(0x22a)]&&_0x2caaef<=this['_range']['endRow']&&_0x3e5df0>=this['_range'][_0x2998e2(0x303)]&&_0x3e5df0<=this['_range']['endColumn']){this[_0x2998e2(0x3b2)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x1f5139(0x22c)](_0x3e74c6){const _0x555d05=_0x1f5139;this[_0x555d05(0x1ef)](),this[_0x555d05(0x37d)]=!0x0,this[_0x555d05(0x25b)]=window[_0x555d05(0x233)](()=>{const _0x4ff479=_0x555d05;this[_0x4ff479(0x37d)]=!this['_isBlinkVisible'],this[_0x4ff479(0x3f4)](!0x0);},0x1f4),this[_0x555d05(0x39a)]=window[_0x555d05(0x29f)](()=>{const _0x26e819=_0x555d05;this[_0x26e819(0x1ef)](),this[_0x26e819(0x37d)]=!0x0,this[_0x26e819(0x3f4)](!0x0);},_0x3e74c6*0x3e8);}['_stopBlinking'](){const _0x48364e=_0x1f5139;this['_blinkIntervalTimer']&&(window['clearInterval'](this[_0x48364e(0x25b)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window[_0x48364e(0x443)](this['_blinkTimer']),this[_0x48364e(0x39a)]=void 0x0);}[_0x1f5139(0x317)](_0x24b17e){return!0x1;}['dispose'](){const _0x12ce75=_0x1f5139;this[_0x12ce75(0x1ef)](),super['dispose']();}[_0x1f5139(0x3aa)](_0x51315c){const _0x47fa1b=_0x1f5139;let _0x309a8b=this['_color'],_0x51d42f=this[_0x47fa1b(0x31d)];if(this[_0x47fa1b(0x44f)]&&!this['_isBlinkVisible']&&(_0x309a8b=this[_0x47fa1b(0x2d2)](this[_0x47fa1b(0x3da)]),_0x51d42f=this['_backgroundColor']?this[_0x47fa1b(0x2d2)](this[_0x47fa1b(0x31d)]):void 0x0),d[_0x47fa1b(0x3f9)][_0x47fa1b(0x38d)](_0x51315c,{'width':this['width'],'height':this[_0x47fa1b(0x27c)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x309a8b,'evented':!0x1,'fill':_0x51d42f}),this['_hovered']||this[_0x47fa1b(0x43a)]){var _0x56f7be;_0x51315c[_0x47fa1b(0x253)](),_0x51315c[_0x47fa1b(0x439)](0x1,0x0,0x0,0x1,this[_0x47fa1b(0x285)],(this[_0x47fa1b(0x316)]===_0x47fa1b(0x3a0)?0x0:-0x14)+((_0x56f7be=this[_0x47fa1b(0x362)])==null?0x0:_0x56f7be)),le['drawWith'](_0x51315c,{'text':this[_0x47fa1b(0x457)],'color':_0x309a8b}),_0x51315c['restore']();}}[_0x1f5139(0x2d2)](_0x2682bd){const _0x46e724=_0x1f5139;return _0x2682bd[_0x46e724(0x2ec)]('#')?_0x46e724(0x339)+Number[_0x46e724(0x313)](_0x2682bd['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x46e724(0x313)](_0x2682bd['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x46e724(0x313)](_0x2682bd[_0x46e724(0x1fc)](0x5,0x7),0x10)+_0x46e724(0x431):_0x2682bd[_0x46e724(0x2ec)](_0x46e724(0x1f8))?_0x2682bd[_0x46e724(0x376)](/[\d.]+\)$/g,_0x46e724(0x3cb)):_0x2682bd[_0x46e724(0x2ec)](_0x46e724(0x2e9))?_0x2682bd[_0x46e724(0x376)](_0x46e724(0x2e9),_0x46e724(0x1f8))[_0x46e724(0x376)](')',',\x200.2)'):_0x2682bd;}};let B=class extends t[_0x1f5139(0x2b4)]{constructor(_0x2af76a,_0x2c145c,_0x10552d,_0x4c13f0){const _0x4e6f8a=_0x1f5139;super(),this[_0x4e6f8a(0x24c)]=_0x2af76a,this['_sheetSkeletonManagerService']=_0x2c145c,this[_0x4e6f8a(0x266)]=_0x10552d,this['_themeService']=_0x4c13f0,C(this,_0x4e6f8a(0x460),new Set()),C(this,'_lastPointer',null),C(this,_0x4e6f8a(0x1e8),null),this[_0x4e6f8a(0x1e3)]();}['_init'](){const _0x55412f=_0x1f5139;this[_0x55412f(0x3e0)][_0x55412f(0x3d0)][_0x55412f(0x25f)]((0x0,i['takeUntil'])(this[_0x55412f(0x1cb)]),(0x0,i[_0x55412f(0x2d6)])(_0x42ee54=>{const _0x4bdd03=_0x55412f;if(_0x42ee54){let _0x62ab19=_0x42ee54[_0x4bdd03(0x36d)];return(0x0,r[_0x4bdd03(0x24b)])(this[_0x4bdd03(0x266)][_0x4bdd03(0x2ac)](this['_context'][_0x4bdd03(0x1ff)]),this[_0x4bdd03(0x380)][_0x4bdd03(0x310)])['pipe']((0x0,i[_0x4bdd03(0x448)])(([_0x594b87,_0x518c27])=>{let _0x267caa=new Map();return _0x594b87['forEach']((_0x57fbd8,_0x4dda33)=>{const _0x10a6f2=_0x4fbb;if(_0x57fbd8['sheetID']===_0x62ab19){let _0x786371={..._0x57fbd8};_0x786371[_0x10a6f2(0x312)]=this[_0x10a6f2(0x380)][_0x10a6f2(0x353)](_0x57fbd8[_0x10a6f2(0x312)]),_0x267caa[_0x10a6f2(0x37c)](_0x4dda33,_0x786371);}}),{'skeleton':_0x42ee54,'cursors':_0x267caa};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x55412f(0x43e)](({skeleton:_0x41e078,cursors:_0x437a78})=>{const _0x49f5ab=_0x55412f;this[_0x49f5ab(0x1f0)](),_0x41e078&&this[_0x49f5ab(0x265)](_0x41e078,_0x437a78);}),this[_0x55412f(0x3b1)](this[_0x55412f(0x3e0)]['currentSkeleton$'][_0x55412f(0x25f)]((0x0,i['takeUntil'])(this[_0x55412f(0x1cb)]))[_0x55412f(0x43e)](_0x1057ac=>{const _0x3cf14a=_0x55412f;var _0x53b2b5;if(_0x1057ac==null)return;(_0x53b2b5=this[_0x3cf14a(0x1e8)])==null||_0x53b2b5[_0x3cf14a(0x1f1)](),this['_pointerMoveDisposable']=null;let {skeleton:_0x381497}=_0x1057ac,{scene:_0x29d674}=this[_0x3cf14a(0x24c)];this[_0x3cf14a(0x1e8)]=_0x29d674[_0x3cf14a(0x22f)][_0x3cf14a(0x214)]((0x0,t['debounce'])(_0x2bb7fe=>{const _0x4ecf3c=_0x3cf14a;var _0x4f6397,_0x524dbb;let {offsetX:_0x9643ea,offsetY:_0x488ae3}=_0x2bb7fe,{x:_0x855860,y:_0xb98fa0}=_0x29d674['getRelativeToViewportCoord'](d['Vector2'][_0x4ecf3c(0x2a1)]([_0x9643ea,_0x488ae3])),{scaleX:_0x99bea3,scaleY:_0x3eea57}=_0x29d674['getAncestorScale'](),_0x485faa=_0x29d674[_0x4ecf3c(0x31f)](d[_0x4ecf3c(0x26d)][_0x4ecf3c(0x204)]),_0x5893c0=_0x29d674[_0x4ecf3c(0x32b)](d[_0x4ecf3c(0x440)][_0x4ecf3c(0x2a1)]([_0x855860,_0xb98fa0]),_0x485faa),_0x4ed99a=_0x381497[_0x4ecf3c(0x2e7)](_0x9643ea,_0x488ae3,_0x99bea3,_0x3eea57,_0x5893c0);((_0x4f6397=this[_0x4ecf3c(0x397)])==null?void 0x0:_0x4f6397[_0x4ecf3c(0x435)])===_0x4ed99a[_0x4ecf3c(0x435)]&&((_0x524dbb=this['_lastPointer'])==null?void 0x0:_0x524dbb[_0x4ecf3c(0x338)])===_0x4ed99a[_0x4ecf3c(0x338)]||this[_0x4ecf3c(0x460)][_0x4ecf3c(0x256)](_0xfebe56=>{const _0x379b56=_0x4ecf3c;_0xfebe56[_0x379b56(0x1f7)](_0x4ed99a);});},0x64));})),this[_0x55412f(0x3b1)]((0x0,t[_0x55412f(0x226)])(()=>{const _0x3abb58=_0x55412f;var _0x1f6547;(_0x1f6547=this[_0x3abb58(0x1e8)])==null||_0x1f6547[_0x3abb58(0x1f1)](),this['_pointerMoveDisposable']=null;}));}[_0x1f5139(0x265)](_0x44698c,_0x59cd25){const _0x407ef5=_0x1f5139;let _0x337ce3=this[_0x407ef5(0x3e0)]['getCurrentSkeleton']();if(!_0x337ce3)return;let _0xd0bcd9=this[_0x407ef5(0x41d)]();if(!_0xd0bcd9)return;this['_cursors'][_0x407ef5(0x256)](_0x453b64=>{const _0x55541c=_0x407ef5;_0x453b64[_0x55541c(0x3f4)]();});let {scene:_0x3414f6}=_0xd0bcd9,_0x41466a=de(Array[_0x407ef5(0x366)](_0x59cd25[_0x407ef5(0x2bd)]()))[_0x407ef5(0x448)](_0x293cec=>{const _0x585ae0=_0x407ef5;let {color:_0x4385d5,range:_0x58ddec,name:_0x461bd2,selection:_0x4741f8,sheetID:_0x3a19cb}=_0x293cec,{startColumn:_0x3b71c5,startRow:_0x346803,endColumn:_0x29df21,endRow:_0x5e9f2e}=_0x58ddec,_0xf94b62=(0x0,v[_0x585ae0(0x29e)])(_0x346803,_0x3b71c5,_0x3414f6,_0x337ce3),_0x3d6082=(0x0,v['getCoordByCell'])(_0x5e9f2e,_0x29df21,_0x3414f6,_0x337ce3),{columnHeaderHeightAndMarginTop:_0x56c50c}=_0x337ce3,{startX:_0x5b0356,startY:_0x2cd1e9}=_0xf94b62,{endX:_0x5cf1e5,endY:_0x43fd26}=_0x3d6082,_0x563595=_0x5cf1e5-_0x5b0356,_0x5d3b69=_0x43fd26-_0x2cd1e9;return new z(_0x461bd2,{'labelPosition':_0x2cd1e9-_0x56c50c>=0x14?_0x585ae0(0x3bd):_0x585ae0(0x3a0),'sheetID':_0x3a19cb,'range':_0x58ddec,'color':_0x4385d5,'name':_0x461bd2,'selection':_0x4741f8,'left':_0x5b0356,'top':_0x2cd1e9,'width':_0x563595,'height':_0x5d3b69,'evented':!0x1,'zIndex':0x1389});});_0x3414f6['addObjects'](_0x41466a,0x1),this[_0x407ef5(0x460)]=new Set(_0x41466a);}[_0x1f5139(0x1f0)](){const _0x5b3f9c=_0x1f5139;var _0x2bec34;(_0x2bec34=this['_cursors'])==null||_0x2bec34[_0x5b3f9c(0x256)](_0x25f2de=>_0x25f2de[_0x5b3f9c(0x288)]());}[_0x1f5139(0x41d)](){const _0x5978dd=_0x1f5139;return(0x0,v[_0x5978dd(0x39d)])(this[_0x5978dd(0x24c)][_0x5978dd(0x203)],this['_context']);}};B=T([w(0x1,(0x0,t[_0x1f5139(0x3c9)])(v[_0x1f5139(0x45d)])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(I)),w(0x3,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x245)]))],B);function de(_0x19acd9){const _0x749ad7=_0x1f5139;let _0x3d507c=new Map();return _0x19acd9['forEach'](_0x4e39c5=>{const _0x4ad6c7=_0x4fbb;if(_0x3d507c[_0x4ad6c7(0x42a)](_0x4e39c5[_0x4ad6c7(0x370)])){let _0x33f985=_0x3d507c[_0x4ad6c7(0x449)](_0x4e39c5[_0x4ad6c7(0x370)]);_0x33f985['name']+=',\x20'+_0x4e39c5[_0x4ad6c7(0x327)];}else _0x3d507c['set'](_0x4e39c5[_0x4ad6c7(0x370)],_0x4e39c5);}),Array[_0x749ad7(0x366)](_0x3d507c['values']());}let V=class extends t[_0x1f5139(0x1c4)]{constructor(_0x50e281,_0x5bc9c5,_0x3bb320,_0x292601,_0x5d45d0,_0x196036){const _0x395b1b=_0x1f5139;super(),this[_0x395b1b(0x323)]=_0x50e281,this['_localCacheService']=_0x5bc9c5,this[_0x395b1b(0x2d8)]=_0x3bb320,this[_0x395b1b(0x3bc)]=_0x292601,this[_0x395b1b(0x2d4)]=_0x5d45d0,this[_0x395b1b(0x238)]=_0x196036,this[_0x395b1b(0x3df)](),this[_0x395b1b(0x399)]();}[_0x1f5139(0x3df)](){const _0x4c0adb=_0x1f5139;this[_0x4c0adb(0x3b1)](this[_0x4c0adb(0x323)][_0x4c0adb(0x1d5)](()=>{const _0x4bba67=_0x4c0adb;if(this[_0x4bba67(0x301)][_0x4bba67(0x2e1)][_0x4bba67(0x306)])return this[_0x4bba67(0x238)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x1f5139(0x399)](){const _0x49e11e=_0x1f5139;this[_0x49e11e(0x3b1)](this[_0x49e11e(0x2d8)]['event$']['subscribe'](_0x1d6d09=>{const _0x187ae1=_0x49e11e;_0x1d6d09['id']===e[_0x187ae1(0x20d)]['OTHER_CLIENT_EDITING']&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a['MessageType'][_0x187ae1(0x365)],'content':this[_0x187ae1(0x238)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x1d6d09['id']===e['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)]['Warning'],'content':this[_0x187ae1(0x238)]['t'](_0x187ae1(0x25e))}),_0x1d6d09['id']===e[_0x187ae1(0x20d)][_0x187ae1(0x1de)]&&this[_0x187ae1(0x2d4)][_0x187ae1(0x27a)]({'title':this['_localeService']['t'](_0x187ae1(0x386)),'content':this[_0x187ae1(0x238)]['t'](_0x187ae1(0x36f)),'type':_0x187ae1(0x1cc),'duration':0x0}),_0x1d6d09['id']===e[_0x187ae1(0x20d)][_0x187ae1(0x3ef)]&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)][_0x187ae1(0x418)],'content':this[_0x187ae1(0x238)]['t'](_0x187ae1(0x25e))+'('+_0x1d6d09[_0x187ae1(0x292)]+')'}),_0x1d6d09['id']===e[_0x187ae1(0x20d)][_0x187ae1(0x350)]&&this['_messageService'][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)][_0x187ae1(0x365)],'content':this[_0x187ae1(0x238)]['t'](_0x1d6d09[_0x187ae1(0x292)]||'')}),_0x1d6d09['id']===e[_0x187ae1(0x20d)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)][_0x187ae1(0x365)],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0x1d6d09['id']===e[_0x187ae1(0x20d)][_0x187ae1(0x3fd)]&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)]['Error'],'content':this['_localeService']['t']('collaboration-client-ui.session.connection-failed')}),_0x1d6d09['id']===e['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a['MessageType'][_0x187ae1(0x418)],'content':this[_0x187ae1(0x238)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};V=T([w(0x0,n[_0x1f5139(0x2d0)]),w(0x1,e[_0x1f5139(0x318)]),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(e['CollaborationUIEventService'])),w(0x3,n[_0x1f5139(0x32c)]),w(0x4,n[_0x1f5139(0x268)]),w(0x5,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x329)]))],V);const H={};let U=class{constructor(_0x448bb3,_0x57030e){const _0x143aab=_0x1f5139;this[_0x143aab(0x38a)]=_0x448bb3,this[_0x143aab(0x389)]=_0x57030e;}['transformIMECache'](_0x5a8c3d){const _0x3e3860=_0x1f5139;this[_0x3e3860(0x384)](_0x5a8c3d),this[_0x3e3860(0x3a2)](_0x5a8c3d);}[_0x1f5139(0x261)](_0x380862){const _0x468676=_0x1f5139;let {unitID:_0x2f798a}=_0x380862,{redoCache:_0x2dce41}=this[_0x468676(0x389)][_0x468676(0x211)](_0x2f798a)[_0x468676(0x1d7)](p[_0x468676(0x3db)])['getUndoRedoMutationParamsCache']();if(_0x2dce41[_0x468676(0x280)]===0x0)return _0x380862;let _0x3881ae=t[_0x468676(0x467)][_0x468676(0x258)](_0x380862[_0x468676(0x27e)][0x0]);for(let _0x2d8873=0x0;_0x2d8873<_0x2dce41['length'];_0x2d8873++){let _0x310cc2={'id':_0x468676(0x3e9),'params':{..._0x2dce41[_0x2d8873]}},_0x4b402e=this[_0x468676(0x38a)][_0x468676(0x402)](_0x3881ae,_0x310cc2,!0x1);if((0x0,h[_0x468676(0x436)])(_0x4b402e))throw _0x4b402e['error'];_0x3881ae=_0x4b402e[_0x468676(0x20a)];}return{...t[_0x468676(0x467)][_0x468676(0x258)](_0x380862),'mutations':[_0x3881ae]};}[_0x1f5139(0x384)](_0x41ebb8){const _0x35907f=_0x1f5139;let {unitID:_0x53d984}=_0x41ebb8,_0x2175bc=this[_0x35907f(0x389)][_0x35907f(0x211)](_0x53d984)['with'](p[_0x35907f(0x3db)]),{undoCache:_0xcc9f40,redoCache:_0x2f65d5}=_0x2175bc[_0x35907f(0x1fb)]();if(_0xcc9f40[_0x35907f(0x280)]===0x0||_0x2f65d5[_0x35907f(0x280)]===0x0)return;let _0x305caf=[],_0x57ec69=[],_0xf2cd5f=t[_0x35907f(0x467)][_0x35907f(0x258)](_0x41ebb8[_0x35907f(0x27e)][0x0]),_0x1352a2=t['Tools'][_0x35907f(0x258)](_0x41ebb8[_0x35907f(0x27e)][0x0]);for(let _0x15d88d=_0xcc9f40[_0x35907f(0x280)]-0x1;_0x15d88d>=0x0;_0x15d88d--){let _0x384b49={'id':'doc.mutation.rich-text-editing','params':{..._0xcc9f40[_0x15d88d]}},_0x477193={'id':'doc.mutation.rich-text-editing','params':{..._0x2f65d5[_0x15d88d]}},_0x408681=this['_transformService']['transformMutation'](_0xf2cd5f,_0x384b49,!0x1),_0xd6fd87=this[_0x35907f(0x38a)]['transformMutation'](_0x1352a2,_0x477193,!0x1);if((0x0,h[_0x35907f(0x436)])(_0x408681))throw _0x408681['error'];if((0x0,h['isTransformMutationFailure'])(_0xd6fd87))throw _0xd6fd87['error'];_0x305caf[_0x35907f(0x33f)](_0x408681[_0x35907f(0x24a)]['params']),_0x57ec69[_0x35907f(0x33f)](_0xd6fd87[_0x35907f(0x24a)][_0x35907f(0x239)]),_0xf2cd5f=_0x408681[_0x35907f(0x20a)],_0x1352a2=_0xd6fd87[_0x35907f(0x20a)];}_0x2175bc[_0x35907f(0x1e2)]({'undoCache':_0x305caf,'redoCache':_0x57ec69});}[_0x1f5139(0x3a2)](_0x31a1d6){const _0x4cedd3=_0x1f5139;let {unitID:_0x25a7c4}=_0x31a1d6,_0x17345=this[_0x4cedd3(0x389)][_0x4cedd3(0x211)](_0x25a7c4)['with'](p['DocIMEInputManagerService']),_0x4cab52=_0x17345[_0x4cedd3(0x34a)]();if(_0x4cab52==null)return;let _0x999ecc=[{'id':_0x4cedd3(0x3e9),'params':{'unitId':_0x31a1d6[_0x4cedd3(0x1d1)],'actions':null,'textRanges':[_0x4cab52]}}],_0x15e222=this[_0x4cedd3(0x38a)]['transformMutationsWithChangeset'](_0x31a1d6,_0x999ecc);if(!(0x0,h[_0x4cedd3(0x375)])(_0x15e222))throw _0x15e222['error'];let _0x24cdf0=_0x15e222[_0x4cedd3(0x24a)][0x0][_0x4cedd3(0x239)][_0x4cedd3(0x325)];Array['isArray'](_0x24cdf0)&&_0x24cdf0[_0x4cedd3(0x280)]&&_0x17345['setActiveRange'](_0x24cdf0[0x0]);}};U=T([w(0x0,h['ITransformService']),w(0x1,d[_0x1f5139(0x295)])],U);let W=class{constructor(_0x54490c,_0xf71577,_0x4b3f01){const _0xbc5539=_0x1f5139;this[_0xbc5539(0x20f)]=_0x54490c,this[_0xbc5539(0x38a)]=_0xf71577,this[_0xbc5539(0x3c2)]=_0x4b3f01;}['transformStateCache'](_0x568645){const _0x5996f0=_0x1f5139;this[_0x5996f0(0x3a5)](_0x568645);}[_0x1f5139(0x261)](_0x1fdac7){const _0x26c851=_0x1f5139;let {unitID:_0x403fbb}=_0x1fdac7,{collaboration:_0x3ae0cc}=this[_0x26c851(0x3c2)]['getStateCache'](_0x403fbb);if(_0x3ae0cc[_0x26c851(0x280)]===0x0)return _0x1fdac7;let _0x1068e8=t['Tools'][_0x26c851(0x258)](_0x1fdac7[_0x26c851(0x27e)][0x0]);for(let _0x1ee35a=0x0;_0x1ee35a<_0x3ae0cc[_0x26c851(0x280)];_0x1ee35a++){let _0x13f9b8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ae0cc[_0x1ee35a][_0x26c851(0x1ff)],..._0x3ae0cc[_0x1ee35a]['redoState']}},_0x38224c=this[_0x26c851(0x38a)][_0x26c851(0x402)](_0x1068e8,_0x13f9b8,!0x1);if((0x0,h[_0x26c851(0x436)])(_0x38224c))throw _0x38224c[_0x26c851(0x1cc)];_0x1068e8=_0x38224c[_0x26c851(0x20a)];}return{...t[_0x26c851(0x467)]['deepClone'](_0x1fdac7),'mutations':[_0x1068e8]};}[_0x1f5139(0x3a5)](_0x41afba){const _0x1021ff=_0x1f5139;let {unitID:_0x46f9e3}=_0x41afba,{history:_0x147ff8,collaboration:_0x3847b8}=this[_0x1021ff(0x3c2)][_0x1021ff(0x1ca)](_0x46f9e3);if(_0x147ff8[_0x1021ff(0x280)]===0x0&&_0x3847b8['length']===0x0)return;let _0x5834e9=[],_0x3fa89b=[],_0x34e81c=t['Tools'][_0x1021ff(0x258)](_0x41afba[_0x1021ff(0x27e)][0x0]),_0x24edbf=t[_0x1021ff(0x467)]['deepClone'](_0x41afba[_0x1021ff(0x27e)][0x0]);for(let _0x140d2b=_0x147ff8[_0x1021ff(0x280)]-0x1;_0x140d2b>=0x0;_0x140d2b--){let _0x34894d={'id':_0x1021ff(0x3e9),'params':{'unitId':_0x147ff8[_0x140d2b][_0x1021ff(0x1ff)],..._0x147ff8[_0x140d2b][_0x1021ff(0x20c)]}},_0x50fa3c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x147ff8[_0x140d2b]['unitId'],..._0x147ff8[_0x140d2b]['redoState']}},_0x37f88c=this[_0x1021ff(0x38a)][_0x1021ff(0x402)](_0x34e81c,_0x34894d,!0x1),_0xf3f0c2=this[_0x1021ff(0x38a)][_0x1021ff(0x402)](_0x24edbf,_0x50fa3c,!0x1);if((0x0,h[_0x1021ff(0x436)])(_0x37f88c))throw _0x37f88c[_0x1021ff(0x1cc)];if((0x0,h['isTransformMutationFailure'])(_0xf3f0c2))throw _0xf3f0c2['error'];_0x5834e9[_0x1021ff(0x33f)]({..._0x147ff8[_0x140d2b],'undoState':_0x37f88c[_0x1021ff(0x24a)][_0x1021ff(0x239)],'redoState':_0xf3f0c2['m2Prime']['params']}),_0x34e81c=_0x37f88c[_0x1021ff(0x20a)],_0x24edbf=_0xf3f0c2['m1Prime'];}_0x34e81c=t[_0x1021ff(0x467)]['deepClone'](_0x41afba[_0x1021ff(0x27e)][0x0]),_0x24edbf=t[_0x1021ff(0x467)][_0x1021ff(0x258)](_0x41afba[_0x1021ff(0x27e)][0x0]);for(let _0x33efbe=_0x3847b8[_0x1021ff(0x280)]-0x1;_0x33efbe>=0x0;_0x33efbe--){let _0x20f9e1={'id':_0x1021ff(0x3e9),'params':{'unitId':_0x3847b8[_0x33efbe]['unitId'],..._0x3847b8[_0x33efbe][_0x1021ff(0x20c)]}},_0x3c8295={'id':_0x1021ff(0x3e9),'params':{'unitId':_0x3847b8[_0x33efbe][_0x1021ff(0x1ff)],..._0x3847b8[_0x33efbe][_0x1021ff(0x223)]}},_0x58f035=this[_0x1021ff(0x38a)][_0x1021ff(0x402)](_0x34e81c,_0x20f9e1,!0x1),_0x218662=this[_0x1021ff(0x38a)]['transformMutation'](_0x24edbf,_0x3c8295,!0x1);if((0x0,h[_0x1021ff(0x436)])(_0x58f035))throw _0x58f035[_0x1021ff(0x1cc)];if((0x0,h[_0x1021ff(0x436)])(_0x218662))throw _0x218662['error'];_0x3fa89b[_0x1021ff(0x33f)]({..._0x3847b8[_0x33efbe],'undoState':_0x58f035[_0x1021ff(0x24a)]['params'],'redoState':_0x218662[_0x1021ff(0x24a)][_0x1021ff(0x239)]}),_0x34e81c=_0x58f035[_0x1021ff(0x20a)],_0x24edbf=_0x218662[_0x1021ff(0x20a)];}this[_0x1021ff(0x3c2)]['setStateCache'](_0x46f9e3,{'history':_0x5834e9,'collaboration':_0x3fa89b});}};W=T([w(0x0,(0x0,t['Inject'])(t['Injector'])),w(0x1,h[_0x1f5139(0x452)]),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(p[_0x1f5139(0x437)]))],W);let G=class{constructor(_0x3794b9,_0x6ea5ac){const _0xd558e5=_0x1f5139;this[_0xd558e5(0x20f)]=_0x3794b9,this[_0xd558e5(0x38a)]=_0x6ea5ac;}[_0x1f5139(0x25c)](_0x3a0dee){const _0x151477=_0x1f5139;var _0x1b973a;let _0x702dac=this[_0x151477(0x20f)][_0x151477(0x449)](g['DocSelectionManagerService']),_0x2174d5=(_0x1b973a=_0x702dac[_0x151477(0x2d7)]())==null?[]:_0x1b973a;if(_0x2174d5['length']===0x0)return;let _0x2e5178=_0x3a0dee[_0x151477(0x1d1)],_0x1f2e15=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e5178,'actions':null,'textRanges':_0x2174d5}}],_0x4cc100=this[_0x151477(0x38a)]['transformMutationsWithChangeset'](_0x3a0dee,_0x1f2e15);if(!(0x0,h[_0x151477(0x375)])(_0x4cc100))throw _0x4cc100[_0x151477(0x1cc)];let _0x4b8453=_0x4cc100[_0x151477(0x24a)][0x0][_0x151477(0x239)][_0x151477(0x325)];Array[_0x151477(0x287)](_0x4b8453)&&_0x4b8453[_0x151477(0x280)]&&_0x702dac[_0x151477(0x2ba)](_0x4b8453,{'unitId':_0x2e5178,'subUnitId':_0x2e5178},!0x1);}};G=T([w(0x0,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x40e)])),w(0x1,h['ITransformService'])],G);let K=class extends t['Disposable']{constructor(_0x43c7b5,_0x328864,_0x3d6bda,_0x101d86,_0x5317b2,_0x2b5bae,_0x29a834,_0x2d9431){const _0x5cae3c=_0x1f5139;super(),this[_0x5cae3c(0x3c2)]=_0x43c7b5,this[_0x5cae3c(0x298)]=_0x328864,this[_0x5cae3c(0x282)]=_0x3d6bda,this[_0x5cae3c(0x2ca)]=_0x101d86,this[_0x5cae3c(0x428)]=_0x5317b2,this['_docSyncEditingCollabCursorService']=_0x2b5bae,this[_0x5cae3c(0x3bc)]=_0x29a834,this[_0x5cae3c(0x238)]=_0x2d9431,C(this,_0x5cae3c(0x395),new r[(_0x5cae3c(0x2b6))](e['CollaborationStatus'][_0x5cae3c(0x30d)])),this[_0x5cae3c(0x2b2)]();}[_0x1f5139(0x2b2)](){const _0x29e19a=_0x1f5139;this['disposeWithMe'](this[_0x29e19a(0x298)][_0x29e19a(0x3a9)][_0x29e19a(0x43e)](_0xc6fe74=>{const _0x18c012=_0x29e19a;let _0x32fa47=this['_docStateChangeManagerService'][_0x18c012(0x3e1)][_0x18c012(0x43e)](_0x3e9cc2=>{const _0x4cd6c6=_0x18c012;if(_0x3e9cc2==null)return;let {unitId:_0x26ed2c,redoState:_0x594b70,commandId:_0x255244}=_0x3e9cc2;if(_0x26ed2c!==_0xc6fe74[_0x4cd6c6(0x1d1)])return;let _0x86b3b3={'id':_0x255244,'type':t['CommandType'][_0x4cd6c6(0x1e4)],'params':{'unitId':_0x26ed2c,'actions':_0x594b70[_0x4cd6c6(0x305)],'textRanges':null}};_0xc6fe74[_0x4cd6c6(0x403)](_0x86b3b3);});_0xc6fe74[_0x18c012(0x3b1)](_0x32fa47),_0xc6fe74 instanceof e['DocCollaborationEntity']&&_0xc6fe74[_0x18c012(0x40f)]({'onTransformIME':_0x2318d3=>this[_0x18c012(0x282)][_0x18c012(0x413)](_0x2318d3),'onTransformState':_0x1322d9=>this[_0x18c012(0x2ca)][_0x18c012(0x32e)](_0x1322d9),'onTransformSelections':_0x57f09b=>this[_0x18c012(0x428)][_0x18c012(0x25c)](_0x57f09b),'onSyncEditingCollabCursor':_0x3a8ae=>this['_docSyncEditingCollabCursorService'][_0x18c012(0x3ea)](_0x3a8ae),'onTransformRemoteChangesetByIMECache':_0x1c705b=>this[_0x18c012(0x282)][_0x18c012(0x261)](_0x1c705b),'onTransformRemoteChangesetByStateCache':_0x5ad8c1=>this['_docTransformStateCacheService'][_0x18c012(0x261)](_0x5ad8c1)});}));}};K=T([w(0x0,(0x0,t[_0x1f5139(0x3c9)])(p[_0x1f5139(0x437)])),w(0x1,(0x0,t['Inject'])(e[_0x1f5139(0x427)])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(U)),w(0x3,(0x0,t['Inject'])(W)),w(0x4,(0x0,t[_0x1f5139(0x3c9)])(G)),w(0x5,(0x0,t[_0x1f5139(0x3c9)])(N)),w(0x6,n['IMessageService']),w(0x7,(0x0,t['Inject'])(t[_0x1f5139(0x329)]))],K);let q=class extends t[_0x1f5139(0x1c4)]{constructor(_0x3ac209,_0x46a66f,_0x365393,_0x243014){const _0x1f42f5=_0x1f5139;super(),this[_0x1f42f5(0x20f)]=_0x3ac209,this[_0x1f42f5(0x2c7)]=_0x46a66f,this[_0x1f42f5(0x29b)]=_0x365393,this[_0x1f42f5(0x359)]=_0x243014,C(this,_0x1f42f5(0x283),void 0x0),this['_init']();}[_0x1f5139(0x1e3)](){const _0x16b37f=_0x1f5139;this[_0x16b37f(0x229)](),this[_0x16b37f(0x264)](),this['_monkeyPatchLogService'](),this[_0x16b37f(0x307)]();}['_initUserListener'](){const _0xe2b89a=_0x1f5139;this['disposeWithMe'](this[_0xe2b89a(0x359)][_0xe2b89a(0x447)]['subscribe'](_0x580568=>{const _0x4669a4=_0xe2b89a;this[_0x4669a4(0x283)]=_0x580568==null?void 0x0:_0x580568[_0x4669a4(0x372)];}));}['_initWindowErrorListener'](){const _0x369205=_0x1f5139;let _0x514d32=_0x5f08b8=>{const _0x49a31e=_0x4fbb;var _0x4bd671;this['_uploadLog'](_0x49a31e(0x1cc),_0x49a31e(0x373)+_0x5f08b8[_0x49a31e(0x25a)]+_0x49a31e(0x3d9)+_0x5f08b8[_0x49a31e(0x351)]+':'+_0x5f08b8[_0x49a31e(0x3fc)]+':'+_0x5f08b8[_0x49a31e(0x422)]+'\x0a'+(((_0x4bd671=_0x5f08b8[_0x49a31e(0x1cc)])==null?void 0x0:_0x4bd671[_0x49a31e(0x26a)])||''));};window[_0x369205(0x2af)](_0x369205(0x1cc),_0x514d32),this[_0x369205(0x3b1)](()=>{const _0x56ca9b=_0x369205;window['removeEventListener'](_0x56ca9b(0x1cc),_0x514d32);});}[_0x1f5139(0x264)](){const _0x3c6f08=_0x1f5139;let _0x2dc115=_0x5919c4=>{const _0x12f423=_0x4fbb;this['_uploadLog'](_0x12f423(0x1cc),_0x12f423(0x30e)+_0x5919c4[_0x12f423(0x2e2)]);};window['addEventListener'](_0x3c6f08(0x2de),_0x2dc115),this[_0x3c6f08(0x3b1)](()=>{const _0x555f06=_0x3c6f08;window[_0x555f06(0x434)]('unhandledrejection',_0x2dc115);});}[_0x1f5139(0x3f0)](){const _0x302904=_0x1f5139;let _0x1a6d8c=this['_logService'][_0x302904(0x1cc)][_0x302904(0x354)](this[_0x302904(0x29b)]);this['_logService'][_0x302904(0x1cc)]=(..._0x447457)=>{const _0x523684=_0x302904;let _0x3e5ff3=_0x447457[_0x523684(0x448)](_0x5ba698=>_0x5ba698 instanceof Error?_0x5ba698[_0x523684(0x25a)]+'\x0a'+_0x5ba698[_0x523684(0x26a)]:String(_0x5ba698))[_0x523684(0x25d)]('\x20');this[_0x523684(0x391)](_0x523684(0x1cc),'[LogService\x20Error]:\x20'+_0x3e5ff3),_0x1a6d8c(..._0x447457);},this[_0x302904(0x3b1)](()=>{const _0x3de711=_0x302904;this['_logService'][_0x3de711(0x1cc)]=_0x1a6d8c;});}[_0x1f5139(0x391)](_0xc8e013,_0x103507){const _0x29d033=_0x1f5139;try{let _0x59646c={'userId':this['_memberID'],'logLabel':_0xc8e013,'content':_0x103507};this[_0x29d033(0x2c7)][_0x29d033(0x304)]('/universer-api/frontend/logs',{'body':_0x59646c})['catch'](()=>{});}catch{}}};q=T([w(0x0,(0x0,t['Inject'])(t[_0x1f5139(0x40e)])),w(0x1,(0x0,t[_0x1f5139(0x3c9)])(f[_0x1f5139(0x2f2)])),w(0x2,t[_0x1f5139(0x1f2)]),w(0x3,(0x0,t[_0x1f5139(0x3c9)])(e['CollaborationSessionService']))],q);function fe(_0x3ab0a9){const _0x2ec126=_0x1f5139;var _0x4f1374,_0x10ead3;let _0x5527ab=(_0x4f1374=_0x3ab0a9[_0x2ec126(0x3cc)])==null?void 0x0:_0x4f1374[_0x2ec126(0x314)],_0x5c3f47=((_0x10ead3=_0x3ab0a9[_0x2ec126(0x3cc)])==null?void 0x0:_0x10ead3[_0x2ec126(0x206)])||0x0;return _0x5527ab===_['FormulaExecuteStageType'][_0x2ec126(0x41a)]&&_0x5c3f47>0x0;}function pe(_0x98918f){const _0x220549=_0x1f5139;return _0x98918f[_0x220549(0x2b3)]===_[_0x220549(0x230)]['SUCCESS'];}let J=class extends t['Disposable']{constructor(_0x7927bd,_0x5d17bf,_0x37353,_0x392575,_0x3298a2,_0x2976c2,_0x13f122){const _0x1d24cf=_0x1f5139;super(),this['_messageService']=_0x7927bd,this[_0x1d24cf(0x41f)]=_0x5d17bf,this['_configService']=_0x37353,this[_0x1d24cf(0x2c7)]=_0x392575,this[_0x1d24cf(0x1ec)]=_0x3298a2,this[_0x1d24cf(0x29b)]=_0x2976c2,this['_localeService']=_0x13f122,C(this,_0x1d24cf(0x43f),null),C(this,_0x1d24cf(0x438),0x0),C(this,_0x1d24cf(0x289),0x0),C(this,_0x1d24cf(0x3b7),[]),C(this,_0x1d24cf(0x458),0x0),this[_0x1d24cf(0x426)]();}[_0x1f5139(0x426)](){const _0x3b8e00=_0x1f5139;this['disposeWithMe'](this[_0x3b8e00(0x41f)][_0x3b8e00(0x2fc)]((_0x2c6fd5,_0x184ac2)=>{const _0x206e6f=_0x3b8e00;var _0x2b894f;if(_0x2c6fd5['id']!==_[_0x206e6f(0x1fe)]['id'])return;let _0x5b2417=_0x2c6fd5[_0x206e6f(0x239)];if(this[_0x206e6f(0x2ea)]((_0x2b894f=_0x5b2417[_0x206e6f(0x43c)])==null?[]:_0x2b894f)&&!this[_0x206e6f(0x311)]())throw this[_0x206e6f(0x20e)](_0x2c6fd5,_0x184ac2),this[_0x206e6f(0x3bf)](),new t['CanceledError']();})),this[_0x3b8e00(0x3b1)](this[_0x3b8e00(0x41f)][_0x3b8e00(0x251)]((_0x3b39ce,_0x489dca)=>{const _0x675da2=_0x3b8e00;if(_0x3b39ce['id']!==_[_0x675da2(0x38c)]['id'])return;let _0xb0f9e4=_0x3b39ce['params'];if(fe(_0xb0f9e4)){let _0xc2dbfa=(0x0,t[_0x675da2(0x379)])();this[_0x675da2(0x3b7)]['push'](_0xc2dbfa),this['_startCalculationLimit'](_0xc2dbfa);}else{if(pe(_0xb0f9e4)&&this['_taskIds'][_0x675da2(0x280)]>0x0){let _0x31bba1=this[_0x675da2(0x3b7)][_0x675da2(0x424)]();this[_0x675da2(0x228)](_0x31bba1);}}}));}[_0x1f5139(0x288)](){const _0x160714=_0x1f5139;super[_0x160714(0x288)](),this['_clearPolling'](),this[_0x160714(0x3b7)]=[],this['_currentUsage']=0x0,this[_0x160714(0x438)]=0x0,this[_0x160714(0x458)]=0x0;}async[_0x1f5139(0x20e)](_0x113e67,_0x7f8ec0){const _0x4f5fa8=_0x1f5139;for(let _0x3ca2bd=0x0;_0x3ca2bd<0x1e;_0x3ca2bd++)try{if(await this[_0x4f5fa8(0x444)](),this[_0x4f5fa8(0x311)]()){this[_0x4f5fa8(0x30c)](_0x113e67,_0x7f8ec0),this['_messageService'][_0x4f5fa8(0x27a)]({'content':this[_0x4f5fa8(0x238)]['t']('collaboration-client-ui.formula.calculation.started'),'type':a[_0x4f5fa8(0x468)][_0x4f5fa8(0x277)]});return;}await new Promise(_0x2bfbb4=>{const _0x1009c9=_0x4f5fa8;this[_0x1009c9(0x43f)]=window[_0x1009c9(0x29f)](_0x2bfbb4,0x3e8);});}catch(_0x670a2a){this[_0x4f5fa8(0x29b)]['error'](_0x670a2a);}this[_0x4f5fa8(0x3bc)][_0x4f5fa8(0x27a)]({'content':this[_0x4f5fa8(0x238)]['t'](_0x4f5fa8(0x3ad)),'type':a['MessageType'][_0x4f5fa8(0x418)]});}[_0x1f5139(0x30c)](_0xad2d57,_0x3d2db8){const _0x43f6f8=_0x1f5139;try{this[_0x43f6f8(0x41f)][_0x43f6f8(0x2c9)](_0xad2d57['id'],_0xad2d57[_0x43f6f8(0x239)],_0x3d2db8);}catch(_0x4ff7f3){this[_0x43f6f8(0x29b)][_0x43f6f8(0x1cc)](_0x4ff7f3);}}[_0x1f5139(0x24f)](_0x15508a,_0x8548b5){const _0x26e5a4=_0x1f5139;_0x8548b5<this[_0x26e5a4(0x458)]||(this[_0x26e5a4(0x458)]=_0x8548b5,this[_0x26e5a4(0x438)]=Number['parseInt'](_0x15508a[_0x26e5a4(0x32d)]),this[_0x26e5a4(0x289)]=Number[_0x26e5a4(0x313)](_0x15508a[_0x26e5a4(0x320)]));}async[_0x1f5139(0x2fa)](_0x323cff){const _0x59220c=_0x1f5139;let _0x2b5c0d=Date['now']();try{var _0x3522fe,_0x2c9c45;let _0x4e3442=((_0x3522fe=this['_configService'][_0x59220c(0x22e)](e[_0x59220c(0x405)]))==null?void 0x0:_0x3522fe[_0x59220c(0x3f1)])||'/universer-api/license/formula/limit/start',_0x42d8d6=(await this['_httpService'][_0x59220c(0x304)](_0x4e3442,{'body':JSON[_0x59220c(0x3c5)]({'taskId':_0x323cff})}))['body'];if(((_0x2c9c45=_0x42d8d6[_0x59220c(0x1cc)])==null?void 0x0:_0x2c9c45[_0x59220c(0x1dc)])!==y[_0x59220c(0x461)]['OK'])return;this[_0x59220c(0x24f)](_0x42d8d6[_0x59220c(0x41c)],_0x2b5c0d);}catch(_0x2101fc){this['_logService'][_0x59220c(0x1cc)](_0x2101fc);}}async[_0x1f5139(0x444)](_0x1c70f8){const _0x80f3a6=_0x1f5139;let _0x6e6aa0=Date[_0x80f3a6(0x1d9)]();try{var _0x1b8623,_0x96a657;let _0x55f327=((_0x1b8623=this[_0x80f3a6(0x2db)]['getConfig'](e[_0x80f3a6(0x405)]))==null?void 0x0:_0x1b8623[_0x80f3a6(0x299)])||_0x80f3a6(0x371),_0x1e41f6=_0x1c70f8?_0x55f327+'?taskId='+encodeURIComponent(_0x1c70f8):_0x55f327,_0x280a1e=(await this['_httpService'][_0x80f3a6(0x449)](_0x1e41f6))['body'];if(((_0x96a657=_0x280a1e[_0x80f3a6(0x1cc)])==null?void 0x0:_0x96a657[_0x80f3a6(0x1dc)])!==y['ErrorCode']['OK'])return;this[_0x80f3a6(0x24f)](_0x280a1e[_0x80f3a6(0x41c)],_0x6e6aa0);}catch(_0x18070f){this[_0x80f3a6(0x29b)][_0x80f3a6(0x1cc)](_0x18070f);}}async[_0x1f5139(0x228)](_0x1bee41){const _0x49ecb2=_0x1f5139;let _0x578c73=Date[_0x49ecb2(0x1d9)]();try{var _0x3d6400,_0x528064;let _0x3847ed=((_0x3d6400=this[_0x49ecb2(0x2db)][_0x49ecb2(0x22e)](e[_0x49ecb2(0x405)]))==null?void 0x0:_0x3d6400[_0x49ecb2(0x275)])||_0x49ecb2(0x466),_0x661693=(await this[_0x49ecb2(0x2c7)]['post'](_0x3847ed,{'body':JSON[_0x49ecb2(0x3c5)]({'taskId':_0x1bee41})}))['body'];if(((_0x528064=_0x661693['error'])==null?void 0x0:_0x528064[_0x49ecb2(0x1dc)])!==y[_0x49ecb2(0x461)]['OK'])return;this['_setFormulaLimitStatus'](_0x661693[_0x49ecb2(0x41c)],_0x578c73);}catch(_0x3fb711){this[_0x49ecb2(0x29b)][_0x49ecb2(0x1cc)](_0x3fb711);}}['_checkCalculationAvailable'](){const _0x418f31=_0x1f5139;return this[_0x418f31(0x438)]===0x0?!0x0:this[_0x418f31(0x438)]-this['_currentUsage']>0x0;}[_0x1f5139(0x1f4)](){const _0x46e2af=_0x1f5139;this['_pollingInterval']&&(clearTimeout(this[_0x46e2af(0x43f)]),this[_0x46e2af(0x43f)]=null);}[_0x1f5139(0x3bf)](){const _0x51830b=_0x1f5139;this[_0x51830b(0x3bc)][_0x51830b(0x27a)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.waiting'),'type':a['MessageType'][_0x51830b(0x37b)]});}[_0x1f5139(0x2ea)](_0x1c403b){const _0x5b63e5=_0x1f5139;for(let _0x353926 of _0x1c403b){let {unitId:_0x5206fa,sheetId:_0x31961b,range:_0x550844}=_0x353926,_0x41a7ee=this[_0x5b63e5(0x1ec)][_0x5b63e5(0x45c)](_0x5206fa);if(!_0x41a7ee)continue;let _0x46cac6=_0x41a7ee[_0x5b63e5(0x1c7)](_0x31961b);if(!_0x46cac6)continue;let _0x35359f=_0x46cac6[_0x5b63e5(0x456)]();for(let _0x35ae09=_0x550844[_0x5b63e5(0x22a)];_0x35ae09<=_0x550844[_0x5b63e5(0x2f1)];_0x35ae09++)for(let _0x9de836=_0x550844['startColumn'];_0x9de836<=_0x550844[_0x5b63e5(0x3f3)];_0x9de836++){let _0x546e70=_0x35359f['getValue'](_0x35ae09,_0x9de836);if(_0x546e70&&((0x0,t[_0x5b63e5(0x2c3)])(_0x546e70['f'])||(0x0,t[_0x5b63e5(0x219)])(_0x546e70['si'])))return!0x0;}}return!0x1;}};J=T([w(0x0,(0x0,t['Inject'])(n['IMessageService'])),w(0x1,t[_0x1f5139(0x3d6)]),w(0x2,t[_0x1f5139(0x463)]),w(0x3,(0x0,t['Inject'])(f[_0x1f5139(0x2f2)])),w(0x4,t[_0x1f5139(0x459)]),w(0x5,t['ILogService']),w(0x6,(0x0,t['Inject'])(t[_0x1f5139(0x329)]))],J);function _0x4fbb(_0x16da9a,_0x348107){_0x16da9a=_0x16da9a-0x1c4;const _0x36ac51=_0x36ac();let _0x4fbbc1=_0x36ac51[_0x16da9a];return _0x4fbbc1;}let Y=class extends t[_0x1f5139(0x1c4)]{constructor(_0x250afc,_0x2f0a0a,_0x5afbe3){const _0x2d5464=_0x1f5139;super(),this[_0x2d5464(0x2db)]=_0x250afc,this[_0x2d5464(0x410)]=_0x2f0a0a,this[_0x2d5464(0x44c)]=_0x5afbe3,C(this,_0x2d5464(0x3be),new Map()),C(this,_0x2d5464(0x3d2),new Map()),C(this,_0x2d5464(0x352),!0x1);}[_0x1f5139(0x408)](){const _0xb486b5=_0x1f5139;this[_0xb486b5(0x352)]=!0x0;}[_0x1f5139(0x263)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x1359af=_0x1f5139;return this[_0x1359af(0x3d2)];}[_0x1f5139(0x288)](){const _0x47625c=_0x1f5139;this[_0x47625c(0x3ee)]()[_0x47625c(0x334)](()=>super[_0x47625c(0x288)]());}async[_0x1f5139(0x3d1)](_0x17ce27){const _0x54a00b=_0x1f5139;return this[_0x54a00b(0x352)]?null:this['_localStorageService'][_0x54a00b(0x20b)]((0x0,e[_0x54a00b(0x1fd)])(_0x17ce27));}async[_0x1f5139(0x36a)](_0x1499f4,_0x27b358){const _0x26aa32=_0x1f5139;return!!this[_0x26aa32(0x410)]['setItem'](_0x1499f4,_0x27b358);}[_0x1f5139(0x33d)](_0x55a154,_0xe5667b,_0x408dd6,_0x484dcd){const _0x12b52b=_0x1f5139;let _0x462a1f=this[_0x12b52b(0x44c)]['getCurrentRevOfUnit'](_0x55a154);this[_0x12b52b(0x3be)]['set'](_0x55a154,{'unitID':_0x55a154,'type':_0xe5667b,'awaitingChangeset':_0x408dd6,'mutations':_0x484dcd,'rev':_0x462a1f}),this[_0x12b52b(0x3d2)][_0x12b52b(0x42a)](_0x55a154)||this['_scheduleSaving'](_0x55a154);}[_0x1f5139(0x36b)](_0x1cc304){const _0x1c7411=_0x1f5139;let _0x2e49d1=this[_0x1c7411(0x281)]();_0x2e49d1===0x0?this[_0x1c7411(0x419)](_0x1cc304):this[_0x1c7411(0x3d2)]['set'](_0x1cc304,setTimeout(()=>this[_0x1c7411(0x419)](_0x1cc304),_0x2e49d1));}[_0x1f5139(0x281)](){const _0x146eaf=_0x1f5139;var _0x4868fd;return(_0x4868fd=this[_0x146eaf(0x2db)][_0x146eaf(0x22e)](e['LOCAL_CACHE_INTERVAL_KEY']))==null?e[_0x146eaf(0x415)]:_0x4868fd;}[_0x1f5139(0x419)](_0x4e7a95){const _0x1cd000=_0x1f5139;let _0x12ff69=this[_0x1cd000(0x3d2)]['get'](_0x4e7a95);return _0x12ff69!==void 0x0&&window[_0x1cd000(0x443)](_0x12ff69),this[_0x1cd000(0x410)][_0x1cd000(0x2df)]((0x0,e[_0x1cd000(0x1fd)])(_0x4e7a95),this[_0x1cd000(0x3be)][_0x1cd000(0x449)](_0x4e7a95))['then'](()=>this[_0x1cd000(0x3d2)][_0x1cd000(0x34f)](_0x4e7a95));}async['exhaustSavingTask'](){const _0x4555d9=_0x1f5139;let _0x3a4679=[];this[_0x4555d9(0x3d2)][_0x4555d9(0x256)]((_0x155dbc,_0x41f210)=>{const _0x334832=_0x4555d9;window[_0x334832(0x443)](_0x155dbc),_0x3a4679[_0x334832(0x404)](this[_0x334832(0x419)](_0x41f210)[_0x334832(0x334)](()=>{const _0x1c3b65=_0x334832;this[_0x1c3b65(0x3d2)][_0x1c3b65(0x34f)](_0x41f210);}));}),await Promise[_0x4555d9(0x2ad)](_0x3a4679);}};Y=T([w(0x0,t[_0x1f5139(0x463)]),w(0x1,t[_0x1f5139(0x3ae)]),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(h[_0x1f5139(0x442)]))],Y);var X=class extends t[_0x1f5139(0x2b4)]{constructor(){const _0x48856b=_0x1f5139;super(),C(this,_0x48856b(0x407),void 0x0),this[_0x48856b(0x407)]=(0x0,r[_0x48856b(0x291)])(window,'popstate')[_0x48856b(0x25f)]((0x0,r['takeUntil'])(this[_0x48856b(0x1cb)]),(0x0,r[_0x48856b(0x383)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x48856b(0x3c3)])(void 0x0));}[_0x1f5139(0x315)](_0x503407,_0x27a9e3,_0x1da16e=!0x1){const _0x1d25c8=_0x1f5139;let _0x4b5f72=new URL(window[_0x1d25c8(0x3cd)][_0x1d25c8(0x30f)]);_0x4b5f72['searchParams'][_0x1d25c8(0x37c)](_0x503407,_0x27a9e3),_0x1da16e?window[_0x1d25c8(0x22b)]['replaceState']('','',_0x4b5f72[_0x1d25c8(0x242)]()):window[_0x1d25c8(0x22b)][_0x1d25c8(0x31b)]('','',_0x4b5f72[_0x1d25c8(0x242)]());}[_0x1f5139(0x44e)](_0x4b3793,_0x1a332e=!0x1){const _0x5a6eac=_0x1f5139;let _0x222fd5=new URL(window[_0x5a6eac(0x3cd)][_0x5a6eac(0x30f)]);_0x222fd5[_0x5a6eac(0x38b)][_0x5a6eac(0x34f)](_0x4b3793),_0x1a332e?window[_0x5a6eac(0x22b)][_0x5a6eac(0x308)]('','',_0x222fd5[_0x5a6eac(0x242)]()):window[_0x5a6eac(0x22b)][_0x5a6eac(0x31b)]('','',_0x222fd5['toString']());}[_0x1f5139(0x3b9)](_0x1f1b34){const _0x4ee32b=_0x1f5139;var _0x18cdc6;return(_0x18cdc6=new URL(window[_0x4ee32b(0x3cd)][_0x4ee32b(0x30f)])['searchParams'][_0x4ee32b(0x449)](_0x1f1b34))==null?void 0x0:_0x18cdc6;}};let Z=class extends t[_0x1f5139(0x45e)]{constructor(_0xd13e51=H,_0x5a854a,_0x15b031,_0x14f1d3){const _0x419c77=_0x1f5139;super(),this[_0x419c77(0x1d6)]=_0xd13e51,this[_0x419c77(0x389)]=_0x5a854a,this[_0x419c77(0x20f)]=_0x15b031,this[_0x419c77(0x2db)]=_0x14f1d3;let {..._0x1fdf07}=(0x0,t[_0x419c77(0x2bb)])({},H,this[_0x419c77(0x1d6)]);this[_0x419c77(0x2db)][_0x419c77(0x3e7)]('collaboration-client-ui.config',_0x1fdf07);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){const _0x2ef901=_0x1f5139;this[_0x2ef901(0x38e)]();}[_0x1f5139(0x1ea)](){const _0x2db357=_0x1f5139;var _0x28560b;let _0x199e7a=[[j],[J],[G],[U],[W],[N],[D,{'useClass':X}],[f[_0x2db357(0x3f6)],{'useClass':f[_0x2db357(0x29d)]}],[e['ILocalCacheService'],{'useClass':Y}],[E],[K],[V],[I],[k],[O]];this[_0x2db357(0x1d6)][_0x2db357(0x2e0)]&&_0x199e7a[_0x2db357(0x404)]([q]),(0x0,t[_0x2db357(0x28e)])(this[_0x2db357(0x20f)],(0x0,t[_0x2db357(0x357)])(_0x199e7a,(_0x28560b=this[_0x2db357(0x1d6)])==null?void 0x0:_0x28560b[_0x2db357(0x425)]));}[_0x1f5139(0x38e)](){const _0x222009=_0x1f5139;this[_0x222009(0x3b1)](this['_renderManagerService']['registerRenderModule'](t[_0x222009(0x21d)][_0x222009(0x1e5)],[R])),this['disposeWithMe'](this[_0x222009(0x389)]['registerRenderModule'](t['UniverInstanceType'][_0x222009(0x396)],[B]));}['_initDependencies'](){const _0x44f26a=_0x1f5139;(0x0,t[_0x44f26a(0x44d)])(this['_injector'],[[I],[E],[K],[V],[O],[J],[k]]),this[_0x44f26a(0x1d6)][_0x44f26a(0x2e0)]&&(0x0,t[_0x44f26a(0x44d)])(this[_0x44f26a(0x20f)],[[q]]);}};C(Z,'pluginName',_0x1f5139(0x3a8)),C(Z,_0x1f5139(0x2fb),ie),C(Z,_0x1f5139(0x2ce),ae),Z=T([(0x0,t[_0x1f5139(0x34e)])(e[_0x1f5139(0x3e3)]),w(0x1,d[_0x1f5139(0x295)]),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x40e)])),w(0x3,t[_0x1f5139(0x463)])],Z);let Q=class extends e[_0x1f5139(0x3a7)]{constructor(_0x2397c5,_0x13fbbc,_0x36bd15,_0xdc6c4f,_0x5c9a4b){super(_0x2397c5,_0x13fbbc,_0x36bd15,_0xdc6c4f,_0x5c9a4b);}async[_0x1f5139(0x1f5)](_0x209c2b){const _0x5bcfb6=_0x1f5139;let _0x30bd96=await this[_0x5bcfb6(0x346)](),_0x231a97=this['_createSocketURL'](_0x209c2b,_0x30bd96);return this[_0x5bcfb6(0x222)](_0x231a97);}[_0x1f5139(0x2a8)](_0x129e3d,_0x5a83a8){const _0x2663f8=_0x1f5139;let _0x277b09=typeof window>'u'?new URL(_0x129e3d):new URL(_0x129e3d,window[_0x2663f8(0x3cd)][_0x2663f8(0x341)]);_0x277b09[_0x2663f8(0x38b)][_0x2663f8(0x37c)]('sessionTicket',_0x5a83a8);let _0x14054f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2663f8(0x1cd)]);return _0x14054f[_0x2663f8(0x449)](_0x2663f8(0x343))&&_0x277b09[_0x2663f8(0x38b)][_0x2663f8(0x37c)](_0x2663f8(0x343),_0x14054f[_0x2663f8(0x449)](_0x2663f8(0x343))),_0x277b09[_0x2663f8(0x242)]();}async[_0x1f5139(0x346)](){const _0x1ded78=_0x1f5139;var _0x3315ab,_0x226436,_0xd50d0b;let _0x455906=this[_0x1ded78(0x2db)][_0x1ded78(0x22e)](e[_0x1ded78(0x405)]),_0x33ca43=(_0x3315ab=_0x455906==null?void 0x0:_0x455906[_0x1ded78(0x3dc)])==null?e['DEFAULT_WS_SESSION_TICKET_URL']:_0x3315ab;return(_0x226436=(_0xd50d0b=(await this[_0x1ded78(0x2c7)][_0x1ded78(0x449)](_0x33ca43,{'headers':{'Content-Type':_0x1ded78(0x331)}}))[_0x1ded78(0x207)])==null?void 0x0:_0xd50d0b[_0x1ded78(0x35d)])==null?'':_0x226436;}};Q=T([w(0x0,(0x0,t[_0x1f5139(0x3c9)])(t['Injector'])),w(0x1,(0x0,t['Inject'])(f[_0x1f5139(0x2f2)])),w(0x2,t[_0x1f5139(0x463)]),w(0x3,t[_0x1f5139(0x1f2)]),w(0x4,h[_0x1f5139(0x450)])],Q);let $=class extends t['Disposable']{constructor(_0x4c03f3,_0x37c740,_0x2f7572){const _0x52047b=_0x1f5139;super(),this['_instanceService']=_0x4c03f3,this[_0x52047b(0x2c7)]=_0x37c740,this[_0x52047b(0x2db)]=_0x2f7572;}async[_0x1f5139(0x220)](_0x343e83,_0x1e4832,_0xe31355,..._0x4e15ca){const _0x5132b4=_0x1f5139;var _0x5ad11b,_0x34ced6,_0x264c1a,_0x44247a;let _0x471dc6=this[_0x5132b4(0x225)][_0x5132b4(0x412)]();if(!_0x471dc6)throw Error(_0x5132b4(0x35f));let _0x674e9e=((_0x5ad11b=this['_configService']['getConfig'](e[_0x5132b4(0x45a)]))==null?e[_0x5132b4(0x236)]:_0x5ad11b)+'/'+_0x343e83+'/run/'+_0x1e4832,_0x2170cb={'scriptId':_0x343e83,'runId':(_0x34ced6=new URL(window[_0x5132b4(0x3cd)]['href'])[_0x5132b4(0x38b)][_0x5132b4(0x449)]('runId'))==null?'':_0x34ced6,'function':_0x1e4832,'unitId':_0x471dc6[_0x5132b4(0x3e2)](),'argsOfFunction':JSON[_0x5132b4(0x3c5)](_0x4e15ca),'invokeId':(_0x264c1a=_0xe31355[_0x5132b4(0x3f8)])==null?'':_0x264c1a,'executionId':(_0x44247a=_0xe31355[_0x5132b4(0x360)])==null?'':_0x44247a};try{let _0x4154c2=await this[_0x5132b4(0x2c7)]['post'](_0x674e9e,{'body':_0x2170cb});return _0x4154c2[_0x5132b4(0x207)][_0x5132b4(0x1cc)]&&_0x4154c2[_0x5132b4(0x207)][_0x5132b4(0x1cc)][_0x5132b4(0x1dc)]!==y[_0x5132b4(0x461)]['OK']?_0x5132b4(0x3c0):_0x4154c2[_0x5132b4(0x207)]['result'];}catch{return _0x5132b4(0x3c0);}}};$=T([w(0x0,t[_0x1f5139(0x459)]),w(0x1,(0x0,t['Inject'])(f[_0x1f5139(0x2f2)])),w(0x2,t[_0x1f5139(0x463)])],$);const me=0x7530,he='ACTIVE_UNIT_EVENT_CHANNEL';var ge=class extends t[_0x1f5139(0x1c4)]{constructor(){const _0x403f99=_0x1f5139;super(),C(this,_0x403f99(0x1d0),(0x0,t[_0x403f99(0x379)])()),C(this,_0x403f99(0x2cf),new Set()),C(this,'_unitOnClients',new Map()),C(this,_0x403f99(0x213),null),C(this,'_clearOtherTimers',new Map()),C(this,_0x403f99(0x45f),new Map()),this[_0x403f99(0x1e3)]();}[_0x1f5139(0x288)](){const _0x1ce5a1=_0x1f5139;super[_0x1ce5a1(0x288)](),this[_0x1ce5a1(0x3f5)]['forEach']((_0x71b8e0,_0x148618)=>this['_removeClearOtherTimer'](_0x148618)),this[_0x1ce5a1(0x213)]&&window[_0x1ce5a1(0x43b)](this['_heartbeatTimer']);}[_0x1f5139(0x2ff)](_0x459bcf){const _0x30e78f=_0x1f5139;return this[_0x30e78f(0x254)](_0x459bcf)[_0x30e78f(0x25f)]((0x0,r['distinctUntilChanged'])());}['editingUnit'](_0xa32659){const _0x2d1881=_0x1f5139;this[_0x2d1881(0x2cf)][_0x2d1881(0x306)]===0x0&&this[_0x2d1881(0x21b)](),this[_0x2d1881(0x2cf)][_0x2d1881(0x2c5)](_0xa32659),this[_0x2d1881(0x260)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xa32659],'isForwarded':!0x1});}[_0x1f5139(0x400)](_0x2d7f68){const _0x56fbd7=_0x1f5139;this[_0x56fbd7(0x2cf)][_0x56fbd7(0x34f)](_0x2d7f68),this[_0x56fbd7(0x2cf)][_0x56fbd7(0x306)]===0x0&&this[_0x56fbd7(0x213)]&&window[_0x56fbd7(0x43b)](this[_0x56fbd7(0x213)]);}[_0x1f5139(0x1e3)](){const _0x3be8c5=_0x1f5139;this[_0x3be8c5(0x3b1)]((0x0,t[_0x3be8c5(0x226)])((0x0,r['fromEvent'])(window,_0x3be8c5(0x259))['subscribe'](_0x1083bd=>{const _0x5567f0=_0x3be8c5;if(_0x1083bd['key']!==he||!_0x1083bd[_0x5567f0(0x3eb)])return;let _0x1b067f=JSON[_0x5567f0(0x2dd)](_0x1083bd[_0x5567f0(0x3eb)]);this[_0x5567f0(0x30a)](_0x1b067f);}))),window['addEventListener'](_0x3be8c5(0x290),()=>this[_0x3be8c5(0x260)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x3be8c5(0x366)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x1e08aa){switch(_0x1e08aa['type']){case 0x0:this['_handleJoinEvent'](_0x1e08aa);break;case 0x1:this['_handleLeaveEvent'](_0x1e08aa);break;case 0x2:this['_handleHeartbeatEvent'](_0x1e08aa);break;}}['_handleJoinEvent'](_0x4ca69b){const _0x8f31e8=_0x1f5139;let {unitIDs:_0x2d2d82,memberID:_0xffe337,isForwarded:_0x57c8ba}=_0x4ca69b;_0x2d2d82['forEach'](_0x39e220=>{const _0x1b933c=_0x4fbb;if(!_0x57c8ba&&this[_0x1b933c(0x1ce)][_0x1b933c(0x42a)](_0x39e220)&&this[_0x1b933c(0x254)](_0x39e220)['next'](e['UnitStatus'][_0x1b933c(0x1ee)]),!this[_0x1b933c(0x1ce)]['has'](_0x39e220)||!this[_0x1b933c(0x1ce)][_0x1b933c(0x449)](_0x39e220)[_0x1b933c(0x42a)](_0xffe337)){let _0x407d5f=this[_0x1b933c(0x1ce)][_0x1b933c(0x449)](_0x39e220)||new Set();_0x407d5f[_0x1b933c(0x2c5)](_0xffe337),this['_unitOnClients']['set'](_0x39e220,_0x407d5f),this[_0x1b933c(0x227)](_0xffe337);}}),_0x57c8ba||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x8f31e8(0x2cf)]],'isForwarded':!0x0});}[_0x1f5139(0x227)](_0x4a2df6){const _0x2e1129=_0x1f5139;this['_removeClearOtherTimer'](_0x4a2df6);let _0x300f1a=window[_0x2e1129(0x29f)](()=>{const _0x4d1e4e=_0x2e1129;this[_0x4d1e4e(0x1ce)][_0x4d1e4e(0x256)](_0x2e024b=>{_0x2e024b['delete'](_0x4a2df6);});},me*0x2);this['_clearOtherTimers']['set'](_0x4a2df6,_0x300f1a);}[_0x1f5139(0x1d4)](_0x1b8c72){const _0x1ea860=_0x1f5139;if(this[_0x1ea860(0x3f5)][_0x1ea860(0x42a)](_0x1b8c72)){let _0x3a974b=this['_clearOtherTimers'][_0x1ea860(0x449)](_0x1b8c72);_0x3a974b&&window[_0x1ea860(0x443)](_0x3a974b),this['_clearOtherTimers']['set'](_0x1b8c72,null);}}[_0x1f5139(0x1dd)](_0x86ce57){const _0x3af241=_0x1f5139;let {memberID:_0x41c34e,unitIDs:_0x248818}=_0x86ce57;_0x248818[_0x3af241(0x256)](_0x212f43=>{const _0x3171f5=_0x3af241;var _0x3fe9f1;let _0x215f3e=this['_unitOnClients'][_0x3171f5(0x449)](_0x212f43);_0x215f3e&&(_0x215f3e['delete'](_0x41c34e),(_0x3fe9f1=this['_ensureSubject'](_0x212f43))==null||_0x3fe9f1['next'](_0x215f3e[_0x3171f5(0x306)]===0x0?e[_0x3171f5(0x231)]['NO_OTHER_CLIENTS_EDITING']:e[_0x3171f5(0x231)][_0x3171f5(0x1ee)]));}),this[_0x3af241(0x1d4)](_0x41c34e);}[_0x1f5139(0x1d3)](_0x870bae){const _0x413ab4=_0x1f5139;this[_0x413ab4(0x227)](_0x870bae[_0x413ab4(0x372)]);}[_0x1f5139(0x260)](_0x59001b){const _0x4ffa57=_0x1f5139;localStorage[_0x4ffa57(0x2df)](he,JSON[_0x4ffa57(0x3c5)](_0x59001b));}[_0x1f5139(0x21b)](){const _0xbaca28=_0x1f5139;this['_heartbeatTimer']=window[_0xbaca28(0x233)](()=>{const _0xd7bae0=_0xbaca28;this[_0xd7bae0(0x260)]({'type':0x2,'memberID':this[_0xd7bae0(0x1d0)]});},me);}[_0x1f5139(0x254)](_0x1c527a){const _0x286044=_0x1f5139;return this[_0x286044(0x45f)]['has'](_0x1c527a)||this['_unitStatus']['set'](_0x1c527a,new r['BehaviorSubject'](e['UnitStatus'][_0x286044(0x454)])),this[_0x286044(0x45f)][_0x286044(0x449)](_0x1c527a);}};Object['defineProperty'](exports,_0x1f5139(0x23b),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x1f5139(0x2e4)](exports,_0x1f5139(0x2b1),{'enumerable':!0x0,'get':function(){return O;}}),Object[_0x1f5139(0x2e4)](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!0x0,'get':function(){return E;}}),exports['IURLService']=D,Object[_0x1f5139(0x2e4)](exports,_0x1f5139(0x369),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1f5139(0x1db)]=z,Object['defineProperty'](exports,_0x1f5139(0x3ec),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x1f5139(0x446)]=ge,exports[_0x1f5139(0x455)]=X;
1
+ const _0x3f925b=_0x43e1;(function(_0x159b1b,_0x141dc3){const _0x338cea=_0x43e1,_0x3b77b4=_0x159b1b();while(!![]){try{const _0x1800cb=-parseInt(_0x338cea(0xff))/0x1*(-parseInt(_0x338cea(0x2e8))/0x2)+-parseInt(_0x338cea(0x1b7))/0x3+-parseInt(_0x338cea(0x1fd))/0x4+parseInt(_0x338cea(0xbe))/0x5*(-parseInt(_0x338cea(0x242))/0x6)+-parseInt(_0x338cea(0xb3))/0x7*(-parseInt(_0x338cea(0x284))/0x8)+parseInt(_0x338cea(0x119))/0x9*(parseInt(_0x338cea(0x275))/0xa)+parseInt(_0x338cea(0x30a))/0xb;if(_0x1800cb===_0x141dc3)break;else _0x3b77b4['push'](_0x3b77b4['shift']());}catch(_0x263414){_0x3b77b4['push'](_0x3b77b4['shift']());}}}(_0x1ffb,0xdc1e7),Object['defineProperty'](exports,Symbol[_0x3f925b(0x1c6)],{'value':'Module'}));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/rpc'),u=require('@univerjs/sheets'),d=require('@univerjs/engine-render'),f=require('@univerjs/network'),p=require('@univerjs/docs-ui'),m=require('@univerjs/drawing'),h=require('@univerjs-pro/collaboration'),g=require('@univerjs/docs'),_=require('@univerjs/engine-formula'),v=require('@univerjs-pro/slides-ui'),y=require('@univerjs/sheets-ui'),b=require('@univerjs/protocol');function ee(_0x1cb8c5){const _0x11c562=_0x3f925b;switch(_0x1cb8c5){case e[_0x11c562(0xfb)][_0x11c562(0x33d)]:return{'icon':(0x0,c['jsx'])(o['OffLineIcon'],{}),'colorClass':_0x11c562(0x221),'i18nKey':_0x11c562(0xd9),'tooltipKey':_0x11c562(0x23f),'clickable':!0x0,'indicator':_0x11c562(0x205)};case e[_0x11c562(0xfb)]['CONFLICT']:return{'icon':(0x0,c[_0x11c562(0x142)])(o['OffLineIcon'],{}),'colorClass':_0x11c562(0xfe),'i18nKey':_0x11c562(0x326),'clickable':!0x1,'indicator':_0x11c562(0x205)};case e[_0x11c562(0xfb)]['FETCH_MISS']:return{'icon':(0x0,c[_0x11c562(0x142)])(o[_0x11c562(0xa0)],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x11c562(0x174),'clickable':!0x1,'indicator':_0x11c562(0x2c4)};case e[_0x11c562(0xfb)][_0x11c562(0x12b)]:return{'icon':(0x0,c['jsx'])(o[_0x11c562(0x12a)],{}),'colorClass':_0x11c562(0x1e6),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x11c562(0x205)};case e['CollaborationStatus'][_0x11c562(0x164)]:case e[_0x11c562(0xfb)][_0x11c562(0x17a)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':_0x11c562(0x259),'i18nKey':_0x11c562(0x185),'clickable':!0x1,'indicator':'spin'};case e['CollaborationStatus'][_0x11c562(0x33b)]:return{'icon':(0x0,c[_0x11c562(0x142)])(o[_0x11c562(0xa0)],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x11c562(0x185),'clickable':!0x1,'indicator':_0x11c562(0x2c4)};case e[_0x11c562(0xfb)][_0x11c562(0x118)]:return{'icon':(0x0,c[_0x11c562(0x142)])(o[_0x11c562(0x12a)],{}),'colorClass':_0x11c562(0xf0),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x11c562(0x205)};}}function te(_0x34b550){const _0x4a0e6d=_0x3f925b;let {status$:_0x4cfb8d}=_0x34b550,_0xc21116=(0x0,n['useObservable'])(_0x4cfb8d,e[_0x4a0e6d(0xfb)]['NOT_COLLAB']),_0x144710=(0x0,n[_0x4a0e6d(0x1dc)])(t[_0x4a0e6d(0x115)]),_0x441ffc=(0x0,n[_0x4a0e6d(0x1dc)])(e[_0x4a0e6d(0x2a6)]),_0x6c380f=(0x0,s['useMemo'])(()=>ee(_0xc21116),[_0xc21116]),_0x4ae88c=_0xc21116!==e[_0x4a0e6d(0xfb)][_0x4a0e6d(0x33d)],_0x2539d2=_0x144710['t'](_0x6c380f[_0x4a0e6d(0xd2)]),_0x23c22b=_0x6c380f[_0x4a0e6d(0x22f)]?_0x144710['t'](_0x6c380f[_0x4a0e6d(0x22f)]):_0x2539d2,_0x466e60=(0x0,s['useCallback'])(()=>{_0x4ae88c||_0x441ffc['reconnect']();},[_0x4ae88c,_0x441ffc]),_0x3385ff=(0x0,s[_0x4a0e6d(0xc8)])(_0x4e3754=>{const _0x569200=_0x4a0e6d;!_0x4ae88c&&(_0x4e3754[_0x569200(0x263)]===_0x569200(0xa5)||_0x4e3754['key']==='\x20')&&(_0x4e3754[_0x569200(0x314)](),_0x441ffc['reconnect']());},[_0x4ae88c,_0x441ffc]),_0x4ce41b=(0x0,c[_0x4a0e6d(0x142)])('span',{'className':(0x0,a['clsx'])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x4a0e6d(0x25c),_0x6c380f['colorClass'],{'univer-animate-spin':_0x6c380f[_0x4a0e6d(0x2e0)]===_0x4a0e6d(0x2c4),'univer-animate-pulse':_0x6c380f['indicator']===_0x4a0e6d(0x333)}),'aria-hidden':_0x4a0e6d(0x316),'children':_0x6c380f[_0x4a0e6d(0x30d)]}),_0x2ae28a=(0x0,c[_0x4a0e6d(0x142)])(_0x4a0e6d(0x168),{'className':(0x0,a[_0x4a0e6d(0x29b)])(_0x4a0e6d(0xb6),_0x4a0e6d(0x2d0),_0x4a0e6d(0x110),_0x4a0e6d(0x17b),_0x4a0e6d(0x15e),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x6c380f[_0x4a0e6d(0x291)],'univer-cursor-default':!_0x6c380f[_0x4a0e6d(0x291)]}),'children':_0x4ce41b});return _0x6c380f[_0x4a0e6d(0x291)]?(0x0,c[_0x4a0e6d(0x142)])(a[_0x4a0e6d(0x25a)],{'title':_0x23c22b,'placement':'bottom','children':(0x0,c[_0x4a0e6d(0x142)])(_0x4a0e6d(0x2f1),{'type':_0x4a0e6d(0x2f1),'onClick':_0x466e60,'onKeyDown':_0x3385ff,'className':(0x0,a[_0x4a0e6d(0x29b)])(_0x4a0e6d(0xe6),_0x4a0e6d(0x2fd),_0x4a0e6d(0x212),_0x4a0e6d(0x226)),'aria-label':_0x2539d2+_0x4a0e6d(0x1f2)+_0x23c22b,'role':'status','aria-live':'polite','aria-atomic':'true','children':_0x2ae28a})}):(0x0,c['jsx'])(a[_0x4a0e6d(0x25a)],{'title':_0x23c22b,'placement':_0x4a0e6d(0x24b),'children':(0x0,c[_0x4a0e6d(0x142)])(_0x4a0e6d(0x2f6),{'className':(0x0,a[_0x4a0e6d(0x29b)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x4a0e6d(0x2fd),_0x4a0e6d(0x212)),'aria-label':_0x2539d2,'role':_0x4a0e6d(0x31c),'aria-live':_0x4a0e6d(0x2b5),'aria-atomic':_0x4a0e6d(0x316),'children':_0x2ae28a})});}function x(_0x1b9b10){'@babel/helpers - typeof';const _0x303dc3=_0x3f925b;return x=typeof Symbol==_0x303dc3(0x11d)&&typeof Symbol[_0x303dc3(0x17f)]=='symbol'?function(_0x21c7a7){return typeof _0x21c7a7;}:function(_0x3da93b){const _0x8e6f29=_0x303dc3;return _0x3da93b&&typeof Symbol==_0x8e6f29(0x11d)&&_0x3da93b[_0x8e6f29(0x1a2)]===Symbol&&_0x3da93b!==Symbol[_0x8e6f29(0x1c0)]?'symbol':typeof _0x3da93b;},x(_0x1b9b10);}function ne(_0x5a68f0,_0x154023){const _0x529e25=_0x3f925b;if(x(_0x5a68f0)!=_0x529e25(0x1dd)||!_0x5a68f0)return _0x5a68f0;var _0x4ee763=_0x5a68f0[Symbol[_0x529e25(0x188)]];if(_0x4ee763!==void 0x0){var _0x28b517=_0x4ee763['call'](_0x5a68f0,_0x154023||'default');if(x(_0x28b517)!='object')return _0x28b517;throw TypeError(_0x529e25(0x198));}return(_0x154023===_0x529e25(0xcc)?String:Number)(_0x5a68f0);}function re(_0x3b3b37){const _0xbca79d=_0x3f925b;var _0x2fa56c=ne(_0x3b3b37,_0xbca79d(0xcc));return x(_0x2fa56c)==_0xbca79d(0x266)?_0x2fa56c:_0x2fa56c+'';}function S(_0x5f3488,_0x36089f,_0x4ff4a6){const _0xf63c8=_0x3f925b;return(_0x36089f=re(_0x36089f))in _0x5f3488?Object[_0xf63c8(0xc1)](_0x5f3488,_0x36089f,{'value':_0x4ff4a6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f3488[_0x36089f]=_0x4ff4a6,_0x5f3488;}function C(_0x237802,_0x26fdff){return function(_0x57e330,_0x4cfde6){_0x26fdff(_0x57e330,_0x4cfde6,_0x237802);};}function w(_0x26a1c4,_0x3df899,_0x54f031,_0x1af9a7){const _0x52fadc=_0x3f925b;var _0x12a6b0=arguments['length'],_0x153ffb=_0x12a6b0<0x3?_0x3df899:_0x1af9a7===null?_0x1af9a7=Object['getOwnPropertyDescriptor'](_0x3df899,_0x54f031):_0x1af9a7,_0x19dae3;if(typeof Reflect==_0x52fadc(0x1dd)&&typeof Reflect['decorate']==_0x52fadc(0x11d))_0x153ffb=Reflect['decorate'](_0x26a1c4,_0x3df899,_0x54f031,_0x1af9a7);else{for(var _0x2b9da6=_0x26a1c4[_0x52fadc(0x165)]-0x1;_0x2b9da6>=0x0;_0x2b9da6--)(_0x19dae3=_0x26a1c4[_0x2b9da6])&&(_0x153ffb=(_0x12a6b0<0x3?_0x19dae3(_0x153ffb):_0x12a6b0>0x3?_0x19dae3(_0x3df899,_0x54f031,_0x153ffb):_0x19dae3(_0x3df899,_0x54f031))||_0x153ffb);}return _0x12a6b0>0x3&&_0x153ffb&&Object[_0x52fadc(0xc1)](_0x3df899,_0x54f031,_0x153ffb),_0x153ffb;}let T=class extends t['Disposable']{constructor(_0x596665,_0x9b0951,_0x39b02c,_0x462b6b){const _0x33f056=_0x3f925b;super(),this[_0x33f056(0xd4)]=_0x596665,this['_injector']=_0x9b0951,this[_0x33f056(0x1db)]=_0x39b02c,this[_0x33f056(0x2ce)]=_0x462b6b,S(this,_0x33f056(0x329),new r['BehaviorSubject'](e[_0x33f056(0xfb)]['NOT_COLLAB'])),this[_0x33f056(0x336)](),this[_0x33f056(0x2dd)]();}[_0x3f925b(0x2dd)](){const _0x3e7e2c=_0x3f925b;this[_0x3e7e2c(0x1da)]((0x0,r[_0x3e7e2c(0x114)])(this[_0x3e7e2c(0xd4)][_0x3e7e2c(0xc2)],this[_0x3e7e2c(0xd4)]['getCurrentTypeOfUnit$'](t[_0x3e7e2c(0x244)]['UNIVER_DOC']),this[_0x3e7e2c(0xd4)][_0x3e7e2c(0xe1)](t[_0x3e7e2c(0x244)][_0x3e7e2c(0x173)]))[_0x3e7e2c(0xa2)]((0x0,i['map'])(()=>ie(this[_0x3e7e2c(0xd4)])),(0x0,i[_0x3e7e2c(0xa7)])(),(0x0,r['switchMap'])(_0x23a05c=>_0x23a05c?this[_0x3e7e2c(0x1db)][_0x3e7e2c(0x2d8)](_0x23a05c):(0x0,r['of'])(null)),(0x0,r[_0x3e7e2c(0x1d6)])(_0x3ea016=>_0x3ea016?_0x3ea016[_0x3e7e2c(0x341)]:(0x0,r['of'])(e[_0x3e7e2c(0xfb)][_0x3e7e2c(0x12b)])))['subscribe'](_0x49f8ab=>{const _0x104a25=_0x3e7e2c;this['_status$'][_0x104a25(0x2f7)](_0x49f8ab);}));}[_0x3f925b(0x336)](){const _0x283b28=_0x3f925b;this['disposeWithMe'](this['_uiPartsService'][_0x283b28(0x2a1)](n[_0x283b28(0x1c1)][_0x283b28(0x246)],()=>(0x0,n[_0x283b28(0x339)])(ae({'status$':this[_0x283b28(0x329)][_0x283b28(0x1a0)]()}),this['_injector'])));}};T=w([C(0x0,t[_0x3f925b(0x345)]),C(0x1,(0x0,t['Inject'])(t[_0x3f925b(0xcb)])),C(0x2,(0x0,t[_0x3f925b(0x2de)])(e['CollaborationController'])),C(0x3,n[_0x3f925b(0x293)])],T);function ie(_0x50d56d){const _0x272362=_0x3f925b;let _0x84dce2=_0x50d56d['getFocusedUnit'](),_0x1e4ae5=_0x84dce2==null?void 0x0:_0x84dce2[_0x272362(0x12e)]();if(_0x1e4ae5&&!(0x0,t[_0x272362(0x207)])(_0x1e4ae5))return _0x1e4ae5;let _0x260a7f=_0x50d56d['getCurrentUnitOfType'](t[_0x272362(0x244)]['UNIVER_DOC']),_0x2219df=_0x260a7f==null?void 0x0:_0x260a7f[_0x272362(0x12e)]();if(_0x2219df&&!(0x0,t[_0x272362(0x207)])(_0x2219df))return _0x2219df;let _0x8f368b=_0x50d56d[_0x272362(0x1cf)](t[_0x272362(0x244)][_0x272362(0x173)]);if(_0x8f368b)return _0x8f368b[_0x272362(0x12e)]();let _0x1715b6=_0x50d56d[_0x272362(0x121)](t[_0x272362(0x244)][_0x272362(0x1ad)])[_0x272362(0x16b)](_0x36c908=>!(0x0,t[_0x272362(0x207)])(_0x36c908['getUnitId']()));return _0x1715b6?_0x1715b6['getUnitId']():null;}function ae(_0xb5bbe2){let {status$:_0x111729}=_0xb5bbe2;return function(){const _0x383b45=_0x43e1;return(0x0,c[_0x383b45(0x142)])(te,{'status$':_0x111729});};}const E=(0x0,t[_0x3f925b(0x245)])(_0x3f925b(0x2ea));let D=class extends t[_0x3f925b(0x33e)]{constructor(_0x1dd40e,_0x110888,_0x4b8482,_0x2ade0c,_0x4437b7){const _0x233ab5=_0x3f925b;super(),this[_0x233ab5(0xcf)]=_0x1dd40e,this['_logService']=_0x110888,this['_commandService']=_0x4b8482,this[_0x233ab5(0xf5)]=_0x2ade0c,_0x4437b7?_0x4437b7==null||_0x4437b7['whenReady']()['then'](()=>this['_init']()):(this['_logService'][_0x233ab5(0xec)](_0x233ab5(0x1a9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x233ab5(0x237)]());}async[_0x3f925b(0x237)](){const _0x2ae0fb=_0x3f925b;let _0xd17958=this[_0x2ae0fb(0xcf)][_0x2ae0fb(0x34f)](_0x2ae0fb(0x254)),_0x79df89=this[_0x2ae0fb(0xcf)][_0x2ae0fb(0x34f)](_0x2ae0fb(0x2b7)),_0x50acf7=this[_0x2ae0fb(0xcf)][_0x2ae0fb(0x34f)](_0x2ae0fb(0x120));if(!_0xd17958||!_0x79df89){this[_0x2ae0fb(0x32a)][_0x2ae0fb(0xec)](_0x2ae0fb(0x1a9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1bf2dc=await this['_dataLoaderService'][_0x2ae0fb(0x18d)](_0xd17958,Number(_0x79df89),_0x50acf7);_0x1bf2dc&&_0x1bf2dc instanceof t[_0x2ae0fb(0x10c)]&&this[_0x2ae0fb(0x140)](_0x1bf2dc);}async[_0x3f925b(0x140)](_0x4b2b9a){const _0x8da850=_0x3f925b;await this[_0x8da850(0x2ca)](_0x4b2b9a),_0x4b2b9a[_0x8da850(0x352)][_0x8da850(0xa2)]((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](_0x4f8de7=>{_0x4f8de7&&this['_updateURLWithCurrentState'](_0x4f8de7);}),this[_0x8da850(0xcf)][_0x8da850(0x29e)][_0x8da850(0xa2)]((0x0,r[_0x8da850(0xfd)])(this[_0x8da850(0x2d2)]))[_0x8da850(0x191)](()=>this[_0x8da850(0x2ca)](_0x4b2b9a));}[_0x3f925b(0x34d)](_0x5aebc2,_0x28540b=!0x1){const _0x255312=_0x3f925b;let _0x30724d=this[_0x255312(0xcf)][_0x255312(0x34f)]('subunit');_0x5aebc2[_0x255312(0x1df)]()!==_0x30724d&&this[_0x255312(0xcf)][_0x255312(0x2af)](_0x255312(0x120),_0x5aebc2['getSheetId'](),_0x28540b);}async[_0x3f925b(0x2ca)](_0x277ef7){const _0x1d59b0=_0x3f925b;var _0x4c4eb8;let _0x4eefbc=this[_0x1d59b0(0xcf)][_0x1d59b0(0x34f)](_0x1d59b0(0x120));if(!_0x4eefbc||!_0x277ef7['getSheetBySheetId'](_0x4eefbc)){let _0x4c3ebb=_0x277ef7[_0x1d59b0(0x2eb)]()[0x0],_0x44a204=_0x277ef7[_0x1d59b0(0xde)](_0x4c3ebb);if(!_0x44a204)return;this[_0x1d59b0(0x34d)](_0x44a204,!0x0),await this[_0x1d59b0(0x217)][_0x1d59b0(0xc3)](u['SetWorksheetActivateCommand']['id'],{'unitId':_0x277ef7[_0x1d59b0(0x12e)](),'subUnitId':_0x4c3ebb});return;}((_0x4c4eb8=_0x277ef7['getActiveSheet']())==null?void 0x0:_0x4c4eb8[_0x1d59b0(0x1df)]())!==_0x4eefbc&&await this['_commandService'][_0x1d59b0(0xc3)](u['SetWorksheetActivateCommand']['id'],{'unitId':_0x277ef7[_0x1d59b0(0x12e)](),'subUnitId':_0x4eefbc});}};D=w([C(0x0,E),C(0x1,t['ILogService']),C(0x2,t[_0x3f925b(0x1ea)]),C(0x3,(0x0,t['Inject'])(e[_0x3f925b(0x1a5)])),C(0x4,(0x0,t[_0x3f925b(0x1f5)])(l['IRemoteInstanceService']))],D);var oe=_0x3f925b(0x1cd),se=_0x3f925b(0x15a);const ce={};function _0x43e1(_0x462fb7,_0x4559c2){_0x462fb7=_0x462fb7-0x9a;const _0x1ffbf0=_0x1ffb();let _0x43e1a0=_0x1ffbf0[_0x462fb7];return _0x43e1a0;}let O=class extends t[_0x3f925b(0x33e)]{constructor(_0x32def5,_0xc98e62){const _0x58759b=_0x3f925b;super(),this[_0x58759b(0xef)]=_0x32def5,this[_0x58759b(0x1e9)]=_0xc98e62,this[_0x58759b(0x237)]();}[_0x3f925b(0x237)](){const _0x5d0945=_0x3f925b;let _0x469c25=this;this['disposeWithMe'](this['_docClipboardService'][_0x5d0945(0x278)]({'onBeforePasteImage':async _0x20c611=>{const _0x27caf9=_0x5d0945;let _0x1c45c7=await _0x469c25['_imageIoService']['saveImage'](_0x20c611);return _0x1c45c7?{'source':_0x1c45c7[_0x27caf9(0x11b)],'imageSourceType':_0x1c45c7[_0x27caf9(0x190)]}:null;}}));}};O=w([C(0x0,p['IDocClipboardService']),C(0x1,m['IImageIoService'])],O);const le=[_0x3f925b(0x1c8),'jiqing.500',_0x3f925b(0x29a),_0x3f925b(0xe8),_0x3f925b(0x1bf),_0x3f925b(0x2c5)];var k=class extends t[_0x3f925b(0x318)]{constructor(..._0x6fef3c){const _0x4907c3=_0x3f925b;super(..._0x6fef3c),S(this,_0x4907c3(0x102),new Map()),S(this,_0x4907c3(0x16a),0x0);}[_0x3f925b(0x1b6)](_0x3b02f6){const _0x374500=_0x3f925b;if(this[_0x374500(0x102)][_0x374500(0x355)](_0x3b02f6))return this[_0x374500(0x102)]['get'](_0x3b02f6);let _0x477f3a=le[this[_0x374500(0x16a)]];return this[_0x374500(0x16a)]=(this[_0x374500(0x16a)]+0x1)%le[_0x374500(0x165)],this[_0x374500(0x102)][_0x374500(0x128)](_0x3b02f6,_0x477f3a),_0x477f3a;}};function ue(_0x1da869){const _0x4111c9=_0x3f925b;let _0x4e6adc='';for(let _0x1b4002 of _0x1da869){let {startOffset:_0x2d5520,endOffset:_0x308d28,isActive:_0x1f8189,rangeType:_0x225695,segmentId:_0x36c12a,segmentPage:_0xd05ba5}=_0x1b4002;_0x4e6adc[_0x4111c9(0x165)]&&(_0x4e6adc+=','),_0x4e6adc+=_0x2d5520+':'+_0x308d28+':'+(_0x1f8189?'1':'0')+':'+_0x225695+':'+_0x36c12a+':'+_0xd05ba5;}return _0x4e6adc;}function de(_0x2faace){const _0x540e8f=_0x3f925b;let _0x565077=_0x2faace[_0x540e8f(0x2e6)](','),_0xbc31cf=[];for(let _0x3a526c of _0x565077){let [_0x2f2d07,_0x32b8a0,_0x352291,_0x252378,_0x454381,_0x5cf1d7]=_0x3a526c[_0x540e8f(0x2e6)](':');_0xbc31cf['push']({'startOffset':Number(_0x2f2d07),'endOffset':Number(_0x32b8a0),'collapsed':_0x2f2d07===_0x32b8a0,'isActive':_0x352291==='1','rangeType':_0x252378===t[_0x540e8f(0x2ab)][_0x540e8f(0x34e)]?t[_0x540e8f(0x2ab)][_0x540e8f(0x34e)]:t['DOC_RANGE_TYPE'][_0x540e8f(0x224)],'segmentId':typeof _0x454381==_0x540e8f(0xcc)?String(_0x454381):'','segmentPage':Number(_0x5cf1d7==null?-0x1:_0x5cf1d7)});}return _0xbc31cf[_0x540e8f(0xb9)](_0x5a4fba=>_0x5a4fba['isActive'])||(_0xbc31cf[0x0][_0x540e8f(0x2b9)]=!0x0),_0xbc31cf;}var A=class extends t['RxDisposable']{constructor(..._0xf0380c){const _0x58a7a4=_0x3f925b;super(..._0xf0380c),S(this,_0x58a7a4(0x359),new r[(_0x58a7a4(0x14a))](null)),S(this,_0x58a7a4(0x296),this[_0x58a7a4(0x359)][_0x58a7a4(0x1a0)]());}[_0x3f925b(0xe9)](_0x5c7827){const _0x138834=_0x3f925b;let {unitID:_0x1ad08a,memberID:_0x13c9df,textRanges:_0x40fec2}=_0x5c7827,_0x4408d2=ue(_0x40fec2);if(_0x4408d2==='')return;let _0x2a93cd={'unitID':_0x1ad08a,'memberID':_0x13c9df,'selection':_0x4408d2};this['_collabCursorState$'][_0x138834(0x2f7)](_0x2a93cd);}};let j=class extends t[_0x3f925b(0x33e)]{get[_0x3f925b(0x124)](){const _0x3bd6f1=_0x3f925b;return this[_0x3bd6f1(0xcd)][_0x3bd6f1(0xc5)]();}get[_0x3f925b(0x332)](){const _0x4fac5c=_0x3f925b;return this[_0x4fac5c(0x23b)][_0x4fac5c(0xc5)]();}constructor(_0x8deb06,_0x5df718,_0x1cace8,_0x3955d5,_0x1f8557,_0x17cde9,_0x4e7e29,_0x268858,_0x3cb2a1){const _0x3dc3f9=_0x3f925b;super(),this[_0x3dc3f9(0x17d)]=_0x8deb06,this[_0x3dc3f9(0x243)]=_0x5df718,this[_0x3dc3f9(0x1fc)]=_0x1cace8,this[_0x3dc3f9(0xe2)]=_0x3955d5,this['_memberService']=_0x1f8557,this[_0x3dc3f9(0x25e)]=_0x17cde9,this['_transformService']=_0x4e7e29,this[_0x3dc3f9(0xd4)]=_0x268858,this[_0x3dc3f9(0x217)]=_0x3cb2a1,S(this,'_online',!0x1),S(this,_0x3dc3f9(0x237),!0x1),S(this,_0x3dc3f9(0xcd),new r['BehaviorSubject'](new Map())),S(this,'cursorInfo$',this[_0x3dc3f9(0xcd)][_0x3dc3f9(0x1a0)]()),S(this,'_roomMembers$',new r[(_0x3dc3f9(0x14a))]([])),S(this,_0x3dc3f9(0x169),this['_roomMembers$']['pipe']((0x0,r[_0x3dc3f9(0x2b6)])(0x12c))),S(this,'_updateLocalCursor',(0x0,t[_0x3dc3f9(0x264)])(_0x4cc6ae=>{const _0x153048=_0x3dc3f9;let _0x3603aa={'eventID':h[_0x153048(0x2cb)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x153048(0x17d)],'memberID':this[_0x153048(0x243)][_0x153048(0x32f)](),'selection':ue(_0x4cc6ae)}};this[_0x153048(0x243)][_0x153048(0x1cc)](_0x3603aa,this[_0x153048(0x17d)]);},0x64));}[_0x3f925b(0x171)](){const _0x5575a3=_0x3f925b;super['dispose'](),this[_0x5575a3(0xcd)]['next'](new Map()),this[_0x5575a3(0xcd)][_0x5575a3(0x20d)](),this[_0x5575a3(0x23b)][_0x5575a3(0x2f7)]([]),this[_0x5575a3(0x23b)][_0x5575a3(0x20d)]();}[_0x3f925b(0x20b)](){const _0x384d4e=_0x3f925b;this[_0x384d4e(0x237)]||(this[_0x384d4e(0x237)]=!0x0,this[_0x384d4e(0x243)][_0x384d4e(0x21a)][_0x384d4e(0xa2)]((0x0,r[_0x384d4e(0xfd)])(this[_0x384d4e(0x2d2)]))[_0x384d4e(0x191)](_0x2631f6=>{const _0x3dd638=_0x384d4e;_0x2631f6===e['SessionStatus'][_0x3dd638(0xd5)]?this[_0x3dd638(0xea)]():this[_0x3dd638(0x310)]();}),this[_0x384d4e(0x243)][_0x384d4e(0x2c9)][_0x384d4e(0xa2)]((0x0,r['takeUntil'])(this[_0x384d4e(0x2d2)]))[_0x384d4e(0x191)](_0x7aca59=>{const _0x213b02=_0x384d4e;let _0xdeecd6=_0x7aca59[_0x213b02(0x2da)];_0xdeecd6===h['CollaborationEvent'][_0x213b02(0x186)]&&this[_0x213b02(0x11e)](_0x7aca59),_0xdeecd6===h[_0x213b02(0x2cb)]['USERS_LEAVE']&&this[_0x213b02(0x14c)](_0x7aca59);}),this[_0x384d4e(0x1da)](this['_commandService'][_0x384d4e(0x30e)](_0x20c0a4=>{const _0x502f14=_0x384d4e;let _0x31b299=_0x20c0a4[_0x502f14(0x33a)];_0x31b299!=null&&this[_0x502f14(0x265)]&&_0x20c0a4['id']===g[_0x502f14(0x2ff)]['id']&&_0x31b299[_0x502f14(0x16f)]===this[_0x502f14(0x17d)]&&_0x31b299['isEditing']===!0x1&&_0x31b299['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x31b299['ranges']);})),this[_0x384d4e(0x25e)]['collabCursorState$'][_0x384d4e(0xa2)]((0x0,r['takeUntil'])(this[_0x384d4e(0x2d2)]))['subscribe'](_0x4aa0bb=>{const _0x55a035=_0x384d4e;if((_0x4aa0bb==null?void 0x0:_0x4aa0bb[_0x55a035(0x17d)])!==this[_0x55a035(0x17d)])return;let _0x2ee483={'eventID':h[_0x55a035(0x2cb)][_0x55a035(0x186)],'data':_0x4aa0bb};this[_0x55a035(0x11e)](_0x2ee483);}),this[_0x384d4e(0x1da)](this['_commandService']['onCommandExecuted'](_0x40c3b0=>{const _0x5815e0=_0x384d4e;if(_0x40c3b0[_0x5815e0(0x33a)]==null)return;let _0x17dfd4=_0x40c3b0[_0x5815e0(0x33a)];if(_0x40c3b0['id']!==g[_0x5815e0(0x1b5)]['id']||_0x17dfd4[_0x5815e0(0x16f)]!==this[_0x5815e0(0x17d)])return;let _0x48fc21={'id':'doc.mutation.rich-text-editing','params':_0x17dfd4},_0x428e8e=this[_0x5815e0(0x124)];for(let [_0x2444c3,_0x43400f]of _0x428e8e){let _0x3fd3b2={'id':_0x5815e0(0x10f),'params':{'unitId':this[_0x5815e0(0x17d)],'actions':null,'textRanges':_0x43400f[_0x5815e0(0x12d)]}},_0x5e5d65=this[_0x5815e0(0x26e)][_0x5815e0(0x155)](_0x48fc21,_0x3fd3b2,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x5e5d65))throw _0x5e5d65['error'];_0x428e8e[_0x5815e0(0x128)](_0x2444c3,{..._0x43400f,'ranges':_0x5e5d65[_0x5815e0(0x1cb)][_0x5815e0(0x33a)][_0x5815e0(0x25b)]});}queueMicrotask(()=>{const _0x3942cb=_0x5815e0;this[_0x3942cb(0xcd)][_0x3942cb(0x2f7)](_0x428e8e);});})));}[_0x3f925b(0x11e)](_0x298e3d){const _0x48f3bd=_0x3f925b;var _0x3db99,_0x26f190;let {memberID:_0x43ad59,selection:_0x2bdfce}=_0x298e3d[_0x48f3bd(0x125)],_0x4cdab6=de(_0x2bdfce),_0x5bda5b=(_0x3db99=(_0x26f190=this[_0x48f3bd(0x1b3)]['getMember'](this[_0x48f3bd(0x17d)],_0x43ad59))==null?void 0x0:_0x26f190['name'])==null?_0x48f3bd(0x18a):_0x3db99,_0x285a1f={'color':this[_0x48f3bd(0xe2)][_0x48f3bd(0x1b6)](_0x43ad59),'name':_0x5bda5b,'ranges':_0x4cdab6},_0x17ca41=this[_0x48f3bd(0x124)];_0x17ca41[_0x48f3bd(0x128)](_0x43ad59,_0x285a1f),this['_cursorInfo$'][_0x48f3bd(0x2f7)](_0x17ca41);}[_0x3f925b(0x14c)](_0x78bf73){const _0x3cc229=_0x3f925b;let {memberID:_0x206cd1}=_0x78bf73[_0x3cc229(0x125)],_0x5c05fc=this['cursorInfo'];_0x5c05fc[_0x3cc229(0x19d)](_0x206cd1),this[_0x3cc229(0xcd)][_0x3cc229(0x2f7)](_0x5c05fc);}[_0x3f925b(0xea)](){const _0x30ebc5=_0x3f925b;var _0x1ae714;if(this[_0x30ebc5(0x265)]=!0x0,((_0x1ae714=this[_0x30ebc5(0xd4)][_0x30ebc5(0x234)]())==null?void 0x0:_0x1ae714[_0x30ebc5(0x12e)]())!==this[_0x30ebc5(0x17d)])return;let _0x34446a=this[_0x30ebc5(0x1fc)][_0x30ebc5(0x116)](g[_0x30ebc5(0x1f1)])[_0x30ebc5(0xb8)]();Array[_0x30ebc5(0x328)](_0x34446a)&&_0x34446a['length']>0x0&&this[_0x30ebc5(0x184)](_0x34446a);}[_0x3f925b(0x310)](){const _0x132994=_0x3f925b;this[_0x132994(0x265)]=!0x1;}};j=w([C(0x2,(0x0,t[_0x3f925b(0x2de)])(t[_0x3f925b(0xcb)])),C(0x3,(0x0,t[_0x3f925b(0x2de)])(k)),C(0x4,(0x0,t['Inject'])(e['MemberService'])),C(0x5,(0x0,t[_0x3f925b(0x2de)])(A)),C(0x6,h[_0x3f925b(0x1ee)]),C(0x7,t[_0x3f925b(0x345)]),C(0x8,t[_0x3f925b(0x1ea)])],j);const fe=()=>{let _0x1e5cb7=[],_0x1bf0e7=!0x1;return _0x3666f6=>{const _0x27ff4a=_0x43e1;_0x1e5cb7[_0x27ff4a(0x267)](_0x3666f6),_0x1bf0e7||(_0x1bf0e7=!0x0,setTimeout(()=>{_0x1e5cb7['forEach'](_0x5abc1a=>_0x5abc1a()),_0x1e5cb7=[],_0x1bf0e7=!0x1;}));};};let M=class extends t[_0x3f925b(0x33e)]{get[_0x3f925b(0x124)](){const _0x10f77e=_0x3f925b;return this[_0x10f77e(0xcd)]['getValue']();}get[_0x3f925b(0x332)](){const _0x3e6b4c=_0x3f925b;return this['_roomMembers$'][_0x3e6b4c(0xc5)]();}constructor(_0x25fdb6,_0x463f0a,_0x19e4a3,_0xcb99f1,_0xe8938f,_0x1335ee,_0x1cfd99,_0x14f104){const _0x34a2ea=_0x3f925b;super(),this[_0x34a2ea(0x17d)]=_0x25fdb6,this['_session']=_0x463f0a,this[_0x34a2ea(0x1fc)]=_0x19e4a3,this[_0x34a2ea(0xe2)]=_0xcb99f1,this[_0x34a2ea(0x1b3)]=_0xe8938f,this[_0x34a2ea(0xd4)]=_0x1335ee,this[_0x34a2ea(0x217)]=_0x1cfd99,this[_0x34a2ea(0x1ca)]=_0x14f104,S(this,'_online',!0x1),S(this,_0x34a2ea(0x237),!0x1),S(this,'_cursorInfo$',new r[(_0x34a2ea(0x14a))](new Map())),S(this,_0x34a2ea(0x270),this['_cursorInfo$'][_0x34a2ea(0x1a0)]()),S(this,_0x34a2ea(0x23b),new r[(_0x34a2ea(0x14a))]([])),S(this,_0x34a2ea(0x169),this[_0x34a2ea(0x23b)][_0x34a2ea(0xa2)]((0x0,r[_0x34a2ea(0x2b6)])(0x12c))),S(this,_0x34a2ea(0x184),(0x0,t['debounce'])((_0x56d764,_0x2ba0b2)=>{const _0x7bd6af=_0x34a2ea;let _0x10e04a={'eventID':h[_0x7bd6af(0x2cb)][_0x7bd6af(0x186)],'data':{'unitID':this[_0x7bd6af(0x17d)],'memberID':this[_0x7bd6af(0x243)][_0x7bd6af(0x32f)](),'selection':(0x0,_[_0x7bd6af(0x347)])(_0x56d764,_0x2ba0b2[_0x7bd6af(0x232)])}};this['_session'][_0x7bd6af(0x1cc)](_0x10e04a,this[_0x7bd6af(0x17d)]);},0x64));}['dispose'](){const _0x42a954=_0x3f925b;super[_0x42a954(0x171)](),this[_0x42a954(0xcd)]['next'](new Map()),this[_0x42a954(0xcd)][_0x42a954(0x20d)](),this[_0x42a954(0x23b)][_0x42a954(0x2f7)]([]),this[_0x42a954(0x23b)][_0x42a954(0x20d)]();}[_0x3f925b(0x20b)](){const _0x3057e3=_0x3f925b;this[_0x3057e3(0x237)]||(this[_0x3057e3(0x237)]=!0x0,this[_0x3057e3(0x243)]['sessionStatus$']['pipe']((0x0,r['takeUntil'])(this[_0x3057e3(0x2d2)]))[_0x3057e3(0x191)](_0x5a70d9=>{const _0x3efc40=_0x3057e3;_0x5a70d9===e['SessionStatus'][_0x3efc40(0xd5)]?this[_0x3efc40(0xea)]():this['_toggleOffline']();}),this[_0x3057e3(0x243)]['event$'][_0x3057e3(0xa2)]((0x0,r[_0x3057e3(0xfd)])(this[_0x3057e3(0x2d2)]))['subscribe'](_0x3ff765=>{const _0x37e834=_0x3057e3;let _0x58e4fb=_0x3ff765['eventID'];_0x58e4fb===h[_0x37e834(0x2cb)][_0x37e834(0x186)]&&this[_0x37e834(0x11e)](_0x3ff765),_0x58e4fb===h['CollaborationEvent'][_0x37e834(0x1d4)]&&this[_0x37e834(0x14c)](_0x3ff765);}),this[_0x3057e3(0x227)](),this['disposeWithMe'](this['_commandService'][_0x3057e3(0x30e)](_0x2a797b=>{const _0x378ad7=_0x3057e3;if(this['_online']&&_0x2a797b['id']===u[_0x378ad7(0x1b9)]['id']&&_0x2a797b[_0x378ad7(0x33a)][_0x378ad7(0x16f)]===this[_0x378ad7(0x17d)]){let _0x9dc38f=_0x2a797b['params'];this[_0x378ad7(0x184)](_0x9dc38f['subUnitId'],_0x9dc38f[_0x378ad7(0x2e5)][0x0]);}})));}[_0x3f925b(0x11e)](_0x5638d3){const _0x37328c=_0x3f925b;var _0x23173a,_0x59f4df;let {memberID:_0x74987,selection:_0xe84bd2}=_0x5638d3[_0x37328c(0x125)],{sheetName:_0x136063,range:_0x168f4c}=(0x0,_[_0x37328c(0x213)])(_0xe84bd2),_0x8a24d3={'name':(_0x23173a=(_0x59f4df=this[_0x37328c(0x1b3)][_0x37328c(0x31a)](this[_0x37328c(0x17d)],_0x74987))==null?void 0x0:_0x59f4df[_0x37328c(0xdf)])==null?'Unknown\x20user':_0x23173a,'range':this[_0x37328c(0x139)](_0x136063,_0x168f4c),'sheetID':_0x136063,'color':this[_0x37328c(0xe2)][_0x37328c(0x1b6)](_0x74987),'selection':_0xe84bd2},_0x2e7986=this[_0x37328c(0x124)];_0x2e7986['set'](_0x74987,_0x8a24d3),this['_cursorInfo$'][_0x37328c(0x2f7)](_0x2e7986);}[_0x3f925b(0x14c)](_0x1ca5fd){const _0x30afad=_0x3f925b;let {memberID:_0x1cdd78}=_0x1ca5fd[_0x30afad(0x125)],_0x95d67b=this[_0x30afad(0x124)];_0x95d67b[_0x30afad(0x19d)](_0x1cdd78),this[_0x30afad(0xcd)][_0x30afad(0x2f7)](_0x95d67b);}[_0x3f925b(0x139)](_0x313db7,_0x1c229b){const _0x32176a=_0x3f925b;var _0x125775;let _0x29e71e=(_0x125775=this[_0x32176a(0xd4)][_0x32176a(0x13b)](this['unitID']))==null||(_0x125775=_0x125775[_0x32176a(0xde)](_0x313db7))==null?void 0x0:_0x125775[_0x32176a(0x32d)]();return(_0x29e71e==null?void 0x0:_0x29e71e[_0x32176a(0x16b)](_0x4b15c5=>t[_0x32176a(0x2a9)][_0x32176a(0x18f)](_0x4b15c5,_0x1c229b)))||_0x1c229b;}[_0x3f925b(0x227)](){const _0x3b0b09=_0x3f925b;let _0x4ef6ca=new t[(_0x3b0b09(0x14d))](),_0x47f6d7=fe(),_0x2b655e=()=>{const _0x582f79=_0x3b0b09;_0x4ef6ca[_0x582f79(0x171)]();let _0x41f365=(_0x3cdcd4,_0x116041,_0x1877e3,_0xb31845)=>{const _0x1c4dd1=_0x582f79;let _0xc24695=[];switch(_0x3cdcd4['id']){case u['EffectRefRangId'][_0x1c4dd1(0x308)]:_0xc24695=(0x0,u[_0x1c4dd1(0x19f)])(_0x3cdcd4,_0xb31845);break;case u[_0x1c4dd1(0x126)][_0x1c4dd1(0x21b)]:_0xc24695=(0x0,u[_0x1c4dd1(0x151)])(_0x3cdcd4,_0xb31845);break;case u['EffectRefRangId'][_0x1c4dd1(0x2d7)]:_0xc24695=(0x0,u['handleInsertCol'])(_0x3cdcd4,_0xb31845);break;case u[_0x1c4dd1(0x126)][_0x1c4dd1(0x144)]:_0xc24695=(0x0,u['handleInsertRangeMoveDown'])(_0x3cdcd4,_0xb31845);break;case u[_0x1c4dd1(0x126)][_0x1c4dd1(0xce)]:_0xc24695=(0x0,u[_0x1c4dd1(0x303)])(_0x3cdcd4,_0xb31845);break;case u[_0x1c4dd1(0x126)][_0x1c4dd1(0x337)]:_0xc24695=(0x0,u[_0x1c4dd1(0x27d)])(_0x3cdcd4,_0xb31845);break;case u['EffectRefRangId'][_0x1c4dd1(0x9d)]:_0xc24695=(0x0,u[_0x1c4dd1(0x35c)])(_0x3cdcd4,_0xb31845);break;case u[_0x1c4dd1(0x126)][_0x1c4dd1(0x201)]:_0xc24695=(0x0,u[_0x1c4dd1(0x307)])(_0x3cdcd4,_0xb31845);break;case u[_0x1c4dd1(0x126)][_0x1c4dd1(0x236)]:_0xc24695=(0x0,u['handleIRemoveRow'])(_0x3cdcd4,_0xb31845);break;}let _0x3a7968=(0x0,u['runRefRangeMutations'])(_0xc24695,_0xb31845),_0x3697f1=this['cursorInfo']['get'](_0x116041);if(_0x3697f1&&_0x3a7968){let _0x387022={..._0x3697f1,'range':_0x3a7968};this['cursorInfo'][_0x1c4dd1(0x128)](_0x116041,_0x387022),_0x47f6d7(()=>{const _0x4d7173=_0x1c4dd1;let _0x67684e=this[_0x4d7173(0x1ca)][_0x4d7173(0xc9)](_0x3a7968,_0x191ce3=>(_0x67684e[_0x4d7173(0x171)](),_0x41f365(_0x191ce3,_0x116041,_0x1877e3,_0x3a7968)));_0x4ef6ca[_0x4d7173(0x2b1)](_0x67684e);});}return{'redos':[],'undos':[]};};this[_0x582f79(0x124)]['forEach']((_0xabbe7d,_0x3c33bd)=>{const _0x482268=_0x582f79;let {range:_0x3fdcee,sheetID:_0x1b8831}=_0xabbe7d,_0x1a46b3=this[_0x482268(0x1ca)]['registerRefRange'](_0x3fdcee,_0x34fd31=>(_0x1a46b3[_0x482268(0x171)](),_0x41f365(_0x34fd31,_0x3c33bd,_0x1b8831,_0x3fdcee)));_0x4ef6ca[_0x482268(0x2b1)](_0x1a46b3);});};this[_0x3b0b09(0x1da)]((0x0,t[_0x3b0b09(0x209)])(this[_0x3b0b09(0xcd)][_0x3b0b09(0x191)](()=>{_0x2b655e();})));}[_0x3f925b(0xea)](){const _0xbc8d2c=_0x3f925b;var _0x4a98fe,_0xd671a3;if(this[_0xbc8d2c(0x265)]=!0x0,((_0x4a98fe=this[_0xbc8d2c(0xd4)][_0xbc8d2c(0x234)]())==null?void 0x0:_0x4a98fe[_0xbc8d2c(0x12e)]())!==this[_0xbc8d2c(0x17d)])return;let _0x509793=(_0xd671a3=this[_0xbc8d2c(0x1fc)]['get'](u[_0xbc8d2c(0x233)])['getCurrentSelections']())==null?void 0x0:_0xd671a3[0x0],_0x9ff6ca=this[_0xbc8d2c(0xd4)][_0xbc8d2c(0x1cf)](t[_0xbc8d2c(0x244)][_0xbc8d2c(0x173)])['getActiveSheet']();_0x509793&&_0x9ff6ca&&this[_0xbc8d2c(0x184)](_0x9ff6ca[_0xbc8d2c(0x1df)](),_0x509793);}['_toggleOffline'](){this['_online']=!0x1;}};M=w([C(0x2,(0x0,t[_0x3f925b(0x2de)])(t[_0x3f925b(0xcb)])),C(0x3,(0x0,t[_0x3f925b(0x2de)])(k)),C(0x4,(0x0,t[_0x3f925b(0x2de)])(e[_0x3f925b(0x10e)])),C(0x5,t[_0x3f925b(0x345)]),C(0x6,t[_0x3f925b(0x1ea)]),C(0x7,(0x0,t[_0x3f925b(0x2de)])(u[_0x3f925b(0x22e)]))],M);function pe(_0x3eb6a1){const _0x9010be=_0x3f925b;let _0x3c465c;try{_0x3c465c=JSON[_0x9010be(0x241)](_0x3eb6a1);}catch{return null;}if(typeof _0x3c465c!=_0x9010be(0x1dd)||!_0x3c465c)return null;let _0x43ec9f=_0x3c465c;if(_0x43ec9f[_0x9010be(0x187)]!==_0x9010be(0x279)||typeof _0x43ec9f[_0x9010be(0x16f)]!=_0x9010be(0xcc)||typeof _0x43ec9f['subUnitId']!=_0x9010be(0xcc))return null;let _0x510a20=Array[_0x9010be(0x328)](_0x43ec9f[_0x9010be(0x331)])?_0x43ec9f['selectedIds'][_0x9010be(0x107)](_0x172c4e=>typeof _0x172c4e=='string'):[],_0x88c565=typeof _0x43ec9f['focusedId']==_0x9010be(0xcc)?_0x43ec9f[_0x9010be(0x309)]:null;return{'kind':'slide-element-selection','unitId':_0x43ec9f[_0x9010be(0x16f)],'subUnitId':_0x43ec9f[_0x9010be(0x170)],'selectedIds':_0x510a20,'focusedId':_0x88c565};}let N=class extends t['RxDisposable']{get['cursorInfo'](){const _0x3c6dc8=_0x3f925b;return this[_0x3c6dc8(0xcd)][_0x3c6dc8(0xc5)]();}get[_0x3f925b(0x332)](){const _0x4518a6=_0x3f925b;return this['_roomMembers$'][_0x4518a6(0xc5)]();}constructor(_0x52b814,_0x373eaa,_0xac354d,_0x3609d5,_0x32be64){const _0x422c7e=_0x3f925b;super(),this[_0x422c7e(0x17d)]=_0x52b814,this[_0x422c7e(0x243)]=_0x373eaa,this[_0x422c7e(0xe2)]=_0xac354d,this[_0x422c7e(0x1b3)]=_0x3609d5,this[_0x422c7e(0x103)]=_0x32be64,S(this,_0x422c7e(0x265),!0x1),S(this,_0x422c7e(0x237),!0x1),S(this,'_cursorInfo$',new r[(_0x422c7e(0x14a))](new Map())),S(this,_0x422c7e(0x270),this[_0x422c7e(0xcd)][_0x422c7e(0x1a0)]()),S(this,_0x422c7e(0x23b),new r[(_0x422c7e(0x14a))]([])),S(this,_0x422c7e(0x169),this[_0x422c7e(0x23b)][_0x422c7e(0xa2)]((0x0,r['debounceTime'])(0x12c))),S(this,_0x422c7e(0x184),(0x0,t[_0x422c7e(0x264)])(_0x2f584a=>{const _0x5dc139=_0x422c7e;let _0xb6e6de=_0x2f584a['context'];if(!_0xb6e6de||_0xb6e6de[_0x5dc139(0x16f)]!==this[_0x5dc139(0x17d)])return;let _0x2950f3={'kind':_0x5dc139(0x279),'unitId':_0xb6e6de[_0x5dc139(0x16f)],'subUnitId':_0xb6e6de[_0x5dc139(0x170)],'selectedIds':_0x2f584a[_0x5dc139(0x331)][_0x5dc139(0x107)](_0x40de66=>typeof _0x40de66==_0x5dc139(0xcc)),'focusedId':_0x2f584a[_0x5dc139(0x309)]},_0x142cf7={'eventID':h[_0x5dc139(0x2cb)][_0x5dc139(0x186)],'data':{'unitID':this[_0x5dc139(0x17d)],'memberID':this[_0x5dc139(0x243)]['getMemberID'](),'selection':JSON[_0x5dc139(0x177)](_0x2950f3)}};this[_0x5dc139(0x243)]['send'](_0x142cf7,this[_0x5dc139(0x17d)]);},0x64));}[_0x3f925b(0x171)](){const _0x56faa3=_0x3f925b;super['dispose'](),this[_0x56faa3(0xcd)][_0x56faa3(0x2f7)](new Map()),this['_cursorInfo$'][_0x56faa3(0x20d)](),this['_roomMembers$'][_0x56faa3(0x2f7)]([]),this[_0x56faa3(0x23b)][_0x56faa3(0x20d)]();}['init'](){const _0x3af42c=_0x3f925b;this[_0x3af42c(0x237)]||(this['_init']=!0x0,this[_0x3af42c(0x243)]['sessionStatus$']['pipe']((0x0,r[_0x3af42c(0xfd)])(this[_0x3af42c(0x2d2)]))[_0x3af42c(0x191)](_0x569e75=>{const _0x1900df=_0x3af42c;_0x569e75===e[_0x1900df(0x34a)]['ONLINE']?this['_toggleOnline']():this[_0x1900df(0x310)]();}),this[_0x3af42c(0x243)][_0x3af42c(0x2c9)][_0x3af42c(0xa2)]((0x0,r[_0x3af42c(0xfd)])(this[_0x3af42c(0x2d2)]))['subscribe'](_0x5d9456=>{const _0x5884e=_0x3af42c;let _0x415341=_0x5d9456[_0x5884e(0x2da)];_0x415341===h['CollaborationEvent'][_0x5884e(0x186)]&&this[_0x5884e(0x11e)](_0x5d9456),_0x415341===h[_0x5884e(0x2cb)][_0x5884e(0x1d4)]&&this['_onCursorDelete'](_0x5d9456);}),this[_0x3af42c(0x103)][_0x3af42c(0xb5)][_0x3af42c(0xa2)]((0x0,r[_0x3af42c(0xfd)])(this[_0x3af42c(0x2d2)]))['subscribe'](_0x1361ad=>{const _0x47f5ca=_0x3af42c;this[_0x47f5ca(0x265)]&&this[_0x47f5ca(0x184)](_0x1361ad);}));}['_onCursorUpdate'](_0x34d1a7){const _0x4e970e=_0x3f925b;var _0x245884,_0x3d67a8,_0x27cc7c,_0x54b5c9;let {memberID:_0xd7d582,selection:_0x4d073e}=_0x34d1a7['data'];if(_0xd7d582===((_0x245884=(_0x3d67a8=this[_0x4e970e(0x243)])[_0x4e970e(0x32f)])==null?void 0x0:_0x245884['call'](_0x3d67a8)))return;let _0x37fa79=pe(_0x4d073e);if(!_0x37fa79||_0x37fa79[_0x4e970e(0x16f)]!==this['unitID'])return;let _0x1439f3=(_0x27cc7c=(_0x54b5c9=this['_memberService'][_0x4e970e(0x31a)](this[_0x4e970e(0x17d)],_0xd7d582))==null?void 0x0:_0x54b5c9[_0x4e970e(0xdf)])==null?_0x4e970e(0x18a):_0x27cc7c,_0x55d7ba={'color':this['_colorAssignService'][_0x4e970e(0x1b6)](_0xd7d582),'name':_0x1439f3,'unitId':_0x37fa79[_0x4e970e(0x16f)],'subUnitId':_0x37fa79['subUnitId'],'selectedIds':_0x37fa79['selectedIds'],'focusedId':_0x37fa79[_0x4e970e(0x309)],'selection':_0x4d073e},_0x776402=new Map(this[_0x4e970e(0x124)]);_0x776402[_0x4e970e(0x128)](_0xd7d582,_0x55d7ba),this['_cursorInfo$'][_0x4e970e(0x2f7)](_0x776402);}[_0x3f925b(0x14c)](_0x33c7ec){const _0x4c18ca=_0x3f925b;let {memberID:_0x50542a}=_0x33c7ec[_0x4c18ca(0x125)],_0x4c5ca3=new Map(this[_0x4c18ca(0x124)]);_0x4c5ca3['delete'](_0x50542a),this['_cursorInfo$'][_0x4c18ca(0x2f7)](_0x4c5ca3);}['_toggleOnline'](){const _0x118189=_0x3f925b;this['_online']=!0x0,this[_0x118189(0x184)](this['_slideDrawingStateService'][_0x118189(0x2e2)]());}[_0x3f925b(0x310)](){this['_online']=!0x1;}};N=w([C(0x2,(0x0,t[_0x3f925b(0x2de)])(k)),C(0x3,(0x0,t['Inject'])(e[_0x3f925b(0x10e)])),C(0x4,(0x0,t[_0x3f925b(0x2de)])(v['ISlideDrawingStateService']))],N);let P=class extends t[_0x3f925b(0x33e)]{constructor(_0x589788,_0x13ff4c,_0x168d9f){const _0x132cff=_0x3f925b;super(),this[_0x132cff(0xd4)]=_0x589788,this[_0x132cff(0x1fc)]=_0x13ff4c,this[_0x132cff(0x29f)]=_0x168d9f,S(this,_0x132cff(0x2aa),new Map()),S(this,'_entityInit$',new r['Subject']()),this[_0x132cff(0x237)]();}[_0x3f925b(0x171)](){const _0x10f56e=_0x3f925b;super['dispose'](),this[_0x10f56e(0x2c6)][_0x10f56e(0x20d)](),this[_0x10f56e(0x2aa)][_0x10f56e(0xbd)](_0x3bd00c=>_0x3bd00c[_0x10f56e(0x171)]());}[_0x3f925b(0x27f)](_0x119f2f){const _0x2cd978=_0x3f925b;return this[_0x2cd978(0x2aa)][_0x2cd978(0x355)](_0x119f2f)?this[_0x2cd978(0x2aa)][_0x2cd978(0x116)](_0x119f2f)[_0x2cd978(0x270)]:this[_0x2cd978(0x2c6)]['pipe']((0x0,r[_0x2cd978(0x107)])(_0x456856=>_0x456856[_0x2cd978(0x17d)]===_0x119f2f),(0x0,r[_0x2cd978(0x1d6)])(_0x5f3f86=>_0x5f3f86[_0x2cd978(0x270)]));}[_0x3f925b(0x237)](){const _0x36172b=_0x3f925b;this['_univerInstanceService'][_0x36172b(0x35e)](t['UniverInstanceType'][_0x36172b(0x173)])[_0x36172b(0xa2)]((0x0,r[_0x36172b(0xfd)])(this['dispose$']))['subscribe'](async _0x27ed87=>{const _0x5857f5=_0x36172b;let _0x17e6f0=_0x27ed87['unit'][_0x5857f5(0x12e)](),_0x2f646d=await this[_0x5857f5(0x22c)](_0x17e6f0);this[_0x5857f5(0x2c6)][_0x5857f5(0x2f7)](_0x2f646d),this[_0x5857f5(0x2aa)][_0x5857f5(0x128)](_0x17e6f0,_0x2f646d);}),this[_0x36172b(0xd4)][_0x36172b(0x35e)](t[_0x36172b(0x244)][_0x36172b(0x1ad)])['pipe']((0x0,r['takeUntil'])(this[_0x36172b(0x2d2)]))[_0x36172b(0xa2)]((0x0,r['filter'])(_0x1411d6=>!_0x1411d6[_0x36172b(0x254)][_0x36172b(0x12e)]()['startsWith']('__')))[_0x36172b(0x191)](async _0x3ccb8b=>{const _0x3c9b6a=_0x36172b;let {unit:_0x52d6b4}=_0x3ccb8b,_0x303f45=_0x52d6b4[_0x3c9b6a(0x12e)](),_0x7937a6=await this['_startDocCollabCursor'](_0x303f45);this[_0x3c9b6a(0x2c6)][_0x3c9b6a(0x2f7)](_0x7937a6),this[_0x3c9b6a(0x2aa)][_0x3c9b6a(0x128)](_0x303f45,_0x7937a6);}),this[_0x36172b(0xd4)]['getTypeOfUnitAdded$'](t['UniverInstanceType']['UNIVER_SLIDE'])['pipe']((0x0,r[_0x36172b(0xfd)])(this['dispose$']))['subscribe'](async _0x3cbf8e=>{const _0x41819b=_0x36172b;let _0x6ddb4=_0x3cbf8e['unit']['getUnitId'](),_0x56a809=await this[_0x41819b(0x344)](_0x6ddb4);this['_entityInit$'][_0x41819b(0x2f7)](_0x56a809),this[_0x41819b(0x2aa)][_0x41819b(0x128)](_0x6ddb4,_0x56a809);}),(0x0,r['merge'])(this['_univerInstanceService'][_0x36172b(0x181)](t[_0x36172b(0x244)][_0x36172b(0x1ad)]),this[_0x36172b(0xd4)][_0x36172b(0x181)](t['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x36172b(0x244)][_0x36172b(0xaa)]))[_0x36172b(0xa2)]((0x0,r['takeUntil'])(this[_0x36172b(0x2d2)]))[_0x36172b(0x191)](_0x5651d9=>{const _0x5d7f4e=_0x36172b;let _0x779f75=_0x5651d9[_0x5d7f4e(0x12e)](),_0x4253d8=this['_entities'][_0x5d7f4e(0x116)](_0x779f75);_0x4253d8&&(_0x4253d8[_0x5d7f4e(0x171)](),this[_0x5d7f4e(0x2aa)]['delete'](_0x779f75));});}async[_0x3f925b(0x22c)](_0x233516){const _0x528b6f=_0x3f925b;let _0x30a70a=await this[_0x528b6f(0x29f)][_0x528b6f(0xc4)](_0x233516),_0x1b5e0e=this[_0x528b6f(0x1fc)][_0x528b6f(0x229)](M,_0x233516,_0x30a70a);return _0x1b5e0e[_0x528b6f(0x20b)](),_0x1b5e0e;}async[_0x3f925b(0x283)](_0x55e046){const _0x26d023=_0x3f925b;let _0x3bf34a=await this[_0x26d023(0x29f)]['requireSession'](_0x55e046),_0x469130=this[_0x26d023(0x1fc)][_0x26d023(0x229)](j,_0x55e046,_0x3bf34a);return _0x469130[_0x26d023(0x20b)](),_0x469130;}async[_0x3f925b(0x344)](_0x443ccb){const _0x258b61=_0x3f925b;let _0xb07a73=await this[_0x258b61(0x29f)]['requireSession'](_0x443ccb),_0x2838b8=this[_0x258b61(0x1fc)][_0x258b61(0x229)](N,_0x443ccb,_0xb07a73);return _0x2838b8[_0x258b61(0x20b)](),_0x2838b8;}};P=w([C(0x0,t['IUniverInstanceService']),C(0x1,(0x0,t[_0x3f925b(0x2de)])(t['Injector'])),C(0x2,(0x0,t[_0x3f925b(0x2de)])(e[_0x3f925b(0x2a6)]))],P);function me(_0x5cef9b,_0x58226a){const _0x2e0754=_0x3f925b;var _0x4cbf38,_0x14eff0,_0x13b262;let {radius:_0x309f58,width:_0x5a4e06,height:_0x35643b}=_0x58226a;_0x309f58=(_0x4cbf38=_0x309f58)==null?0x0:_0x4cbf38,_0x5a4e06=(_0x14eff0=_0x5a4e06)==null?0x1e:_0x14eff0,_0x35643b=(_0x13b262=_0x35643b)==null?0x1e:_0x13b262;let _0x3fc6ca=0x0,_0x518c66=0x0,_0x2b8bad=0x0;_0x3fc6ca=_0x518c66=_0x2b8bad=Math[_0x2e0754(0x2d9)](_0x309f58,_0x5a4e06/0x2,_0x35643b/0x2),_0x5cef9b[_0x2e0754(0x2c0)](),_0x5cef9b[_0x2e0754(0x281)](_0x3fc6ca,0x0),_0x5cef9b['lineTo'](_0x5a4e06-_0x518c66,0x0),_0x5cef9b[_0x2e0754(0xa9)](_0x5a4e06-_0x518c66,_0x518c66,_0x518c66,Math['PI']*0x3/0x2,0x0,!0x1),_0x5cef9b['lineTo'](_0x5a4e06,_0x35643b-_0x2b8bad),_0x5cef9b[_0x2e0754(0xa9)](_0x5a4e06-_0x2b8bad,_0x35643b-_0x2b8bad,_0x2b8bad,0x0,Math['PI']/0x2,!0x1),_0x5cef9b[_0x2e0754(0x2b2)](0x0,_0x35643b),_0x5cef9b[_0x2e0754(0x2b2)](0x0,_0x3fc6ca),_0x5cef9b['arc'](_0x3fc6ca,_0x3fc6ca,_0x3fc6ca,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5cef9b['closePath'](),_0x58226a['fill']&&(_0x5cef9b['save'](),_0x5cef9b[_0x2e0754(0xae)]=_0x58226a[_0x2e0754(0x14b)],_0x58226a[_0x2e0754(0x273)]==='evenodd'?_0x5cef9b[_0x2e0754(0x14b)]('evenodd'):_0x5cef9b[_0x2e0754(0x14b)](),_0x5cef9b[_0x2e0754(0x27b)]());}var F=class e extends d[_0x3f925b(0x1af)]{constructor(_0x4ea0a8,_0x5b94f8){const _0x542664=_0x3f925b;super(_0x4ea0a8,_0x5b94f8),S(this,_0x542664(0x17c),void 0x0),S(this,_0x542664(0xb2),void 0x0),this[_0x542664(0x17c)]=_0x5b94f8==null?void 0x0:_0x5b94f8[_0x542664(0x17c)],this[_0x542664(0xb2)]=_0x5b94f8==null?void 0x0:_0x5b94f8[_0x542664(0xb2)];}static[_0x3f925b(0x28b)](_0xb6878d,_0x36fca3){const _0x5c623a=_0x3f925b;let {text:_0x1da7f5,color:_0x359bca}=_0x36fca3;_0xb6878d[_0x5c623a(0x34c)](),_0xb6878d['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x213b00=_0xb6878d[_0x5c623a(0x23d)](_0x1da7f5)[_0x5c623a(0x154)];if(me(_0xb6878d,{'height':0x14,'radius':0x4,'width':Math[_0x5c623a(0x2d9)](_0x213b00+0x8,0xc8),'fill':_0x359bca,'evented':!0x1}),_0xb6878d['fillStyle']='#FFF',_0x213b00>0xc0){let _0x316a4f='',_0x10223e=0x0;for(let _0x579774 of _0x1da7f5){let _0x2868de=_0xb6878d[_0x5c623a(0x23d)](_0x579774)[_0x5c623a(0x154)];if(_0x10223e+_0x2868de<=0xc0-_0xb6878d['measureText'](_0x5c623a(0x189))[_0x5c623a(0x154)])_0x316a4f+=_0x579774,_0x10223e+=_0x2868de;else{_0x316a4f+=_0x5c623a(0x189);break;}}_0xb6878d[_0x5c623a(0x30c)](_0x316a4f,0x4,0xf);}else _0xb6878d[_0x5c623a(0x30c)](_0x1da7f5,0x4,0xf);_0xb6878d[_0x5c623a(0x27b)]();}['_draw'](_0x254fce){const _0x5151b7=_0x3f925b;e[_0x5151b7(0x28b)](_0x254fce,this);}};const I='collab-text-anchor-';var L=class{constructor(_0x34420c,_0x3138f7,_0x16f3b8,_0xa969ac){const _0x3f1e72=_0x3f925b;this[_0x3f1e72(0x2d3)]=_0x34420c,this['_scene']=_0x3138f7,this[_0x3f1e72(0x1a6)]=_0x16f3b8,this[_0x3f1e72(0x27e)]=_0xa969ac,S(this,_0x3f1e72(0x137),[]),S(this,'_anchor',null),S(this,_0x3f1e72(0x11a),null),S(this,_0x3f1e72(0x18b),null),S(this,_0x3f1e72(0x1e4),null),S(this,_0x3f1e72(0x300),null),this[_0x3f1e72(0x179)]();}set[_0x3f925b(0x321)](_0x142565){const _0x52fd8b=_0x3f925b;_0x142565?(this[_0x52fd8b(0x18b)]&&this[_0x52fd8b(0x18b)][_0x52fd8b(0x141)](),this[_0x52fd8b(0x11a)]&&this['_textBubble']['show']()):(this[_0x52fd8b(0x18b)]&&this[_0x52fd8b(0x18b)][_0x52fd8b(0x9f)](),this[_0x52fd8b(0x11a)]&&this[_0x52fd8b(0x11a)][_0x52fd8b(0x141)]());}['dispose'](){const _0x7542b=_0x3f925b;for(let _0x212ed5 of this[_0x7542b(0x137)])_0x212ed5[_0x7542b(0x171)]();this['_textBubble']&&this[_0x7542b(0x11a)][_0x7542b(0x171)](),this[_0x7542b(0x18b)]&&this['_anchorDot'][_0x7542b(0x171)](),this['_anchor']&&this[_0x7542b(0x1e5)][_0x7542b(0x171)](),this[_0x7542b(0x300)]&&this[_0x7542b(0x300)]();}[_0x3f925b(0x179)](){const _0x438045=_0x3f925b;let {_docSkeleton:_0x344bc0,_document:_0x4ad445}=this,{color:_0x184186,name:_0x57c1c4,ranges:_0x4d8bf7}=this[_0x438045(0x2d3)],_0x3b5f1c=_0x4ad445[_0x438045(0x2bb)](),{docsLeft:_0x5915a8,docsTop:_0x4fffa0}=_0x3b5f1c,_0x209151=new p[(_0x438045(0x315))](_0x3b5f1c,_0x344bc0);for(let {startOffset:_0x4777d0,endOffset:_0x487a36,rangeType:_0x5bcb3c,segmentId:_0x4ed4e6,segmentPage:_0x431e95,collapsed:_0x161830,isActive:_0x40be3e}of _0x4d8bf7){let _0x2b8b25=_0x344bc0['findNodePositionByCharIndex'](_0x4777d0,!0x0,_0x4ed4e6,_0x431e95),_0x427af9=_0x344bc0[_0x438045(0x298)](_0x487a36,!0x0,_0x4ed4e6,_0x431e95);if(_0x427af9==null&&(_0x427af9=_0x344bc0['findNodePositionByCharIndex'](_0x487a36-0x1,!0x1,_0x4ed4e6,_0x431e95)),_0x40be3e){let {contentBoxPointGroup:_0x170958}=_0x209151[_0x438045(0x1b0)](_0x427af9,_0x427af9);if(_0x170958[_0x438045(0x165)]===0x0)continue;this[_0x438045(0x1d0)](_0x184186,_0x170958,_0x5915a8,_0x4fffa0,_0x57c1c4),this['_eventUnsubscribe']=this[_0x438045(0x289)]();}if(_0x2b8b25&&_0x427af9){if(_0x5bcb3c===t[_0x438045(0x2ab)][_0x438045(0x224)]){var _0x586bb9;let {pointGroup:_0x13e08b}=(_0x586bb9=new p['NodePositionConvertToRectRange'](_0x3b5f1c,_0x344bc0)['getRangePointData'](_0x2b8b25,_0x427af9))==null?{}:_0x586bb9;if(_0x13e08b==null||_0x13e08b['length']===0x0)continue;this[_0x438045(0x255)](_0x184186,_0x13e08b,_0x5915a8,_0x4fffa0);}else{if(!_0x161830){let {borderBoxPointGroup:_0x2d3bc8}=_0x209151[_0x438045(0x1b0)](_0x2b8b25,_0x427af9);if(_0x2d3bc8[_0x438045(0x165)]===0x0)continue;this[_0x438045(0x2ad)](_0x184186,_0x2d3bc8,_0x5915a8,_0x4fffa0);}}}}}['_drawAnchor'](_0x5e1db5,_0x470b03,_0x3227b9,_0x2bbf48,_0x1c09d3){const _0xb9a206=_0x3f925b;let {left:_0x40a20e,top:_0x4de4d2,height:_0x3767e1}=this[_0xb9a206(0x312)](_0x470b03),_0x1761d1=1.5/this[_0xb9a206(0x2a0)](),_0x58de99=new d[(_0xb9a206(0x2ec))](I+(0x0,t[_0xb9a206(0x1fa)])(0x6),{'left':_0x40a20e+_0x3227b9-_0x1761d1,'top':_0x4de4d2+_0x2bbf48,'height':_0x3767e1,'width':1.5,'fill':_0x5e1db5||(0x0,d[_0xb9a206(0x1bb)])(t['COLORS'][_0xb9a206(0x182)],0x0),'strokeWidth':_0x1761d1,'stroke':_0xb9a206(0x2bd),'evented':!0x0});this[_0xb9a206(0x1e5)]=_0x58de99,this[_0xb9a206(0x2e4)]['addObject'](_0x58de99,p[_0xb9a206(0x2fa)]);let _0x1a8507=new d[(_0xb9a206(0x2ec))](I+(0x0,t[_0xb9a206(0x1fa)])(0x6),{'left':_0x40a20e+_0x3227b9-_0x1761d1,'top':_0x4de4d2+_0x2bbf48-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x5e1db5||(0x0,d['getColor'])(t['COLORS'][_0xb9a206(0x182)],0x0),'strokeWidth':0x0,'stroke':_0x5e1db5||(0x0,d['getColor'])(t['COLORS'][_0xb9a206(0x182)],0x0),'evented':!0x1});this[_0xb9a206(0x18b)]=_0x1a8507,this[_0xb9a206(0x2e4)]['addObject'](_0x1a8507,p[_0xb9a206(0x2fa)]);let _0x8b4d7=new F(I+(0x0,t[_0xb9a206(0x1fa)])(0x6),{'left':_0x40a20e+_0x3227b9-_0x1761d1,'top':_0x4de4d2+_0x2bbf48-0x14,'text':_0x1c09d3,'color':_0x5e1db5});this[_0xb9a206(0x11a)]=_0x8b4d7,this[_0xb9a206(0x2e4)][_0xb9a206(0x2f9)](_0x8b4d7,p['TEXT_RANGE_LAYER_INDEX']),this[_0xb9a206(0x321)]=!0x1;}[_0x3f925b(0x289)](){const _0x47afe2=_0x3f925b;let _0xcc81ee=this[_0x47afe2(0x1e5)]['onPointerEnter$'][_0x47afe2(0x1e2)](()=>{this['_hover']=!0x0;}),_0x11b6ea=this[_0x47afe2(0x1e5)][_0x47afe2(0x16e)]['subscribeEvent'](()=>{const _0x59242b=_0x47afe2;this['_hideTimer']&&clearTimeout(this[_0x59242b(0x1e4)]),this[_0x59242b(0x1e4)]=setTimeout(()=>{const _0x2709c4=_0x59242b;this[_0x2709c4(0x321)]=!0x1;},0x7d0);});return()=>{_0xcc81ee['unsubscribe'](),_0x11b6ea['unsubscribe']();};}[_0x3f925b(0x2ad)](_0x2e1eec,_0x27e22d,_0x2b7897,_0xd445d0){const _0x498acc=_0x3f925b;let _0x376e72=0.2,_0x49b0ac=new t[(_0x498acc(0x1d3))](_0x2e1eec)[_0x498acc(0x274)](_0x376e72)[_0x498acc(0x33c)](),_0x3841d7=new d[(_0x498acc(0x30f))](_0x498acc(0x1ef)+(0x0,t[_0x498acc(0x1fa)])(0x6),{'pointsGroup':_0x27e22d,'fill':_0x49b0ac||(0x0,d[_0x498acc(0x1bb)])(t[_0x498acc(0x13e)]['black'],_0x376e72),'left':_0x2b7897,'top':_0xd445d0,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x498acc(0x267)](_0x3841d7),this[_0x498acc(0x2e4)][_0x498acc(0x2f9)](_0x3841d7,p[_0x498acc(0x2fa)]);}[_0x3f925b(0x255)](_0x1590fb,_0x4cfcb6,_0x3566ea,_0x20b2a4){const _0x42c3bc=_0x3f925b;let _0x1073ca=0.2,_0x5e1ad1=new t[(_0x42c3bc(0x1d3))](_0x1590fb)[_0x42c3bc(0x274)](_0x1073ca)[_0x42c3bc(0x33c)](),_0x6a467d=new d[(_0x42c3bc(0x30f))](_0x42c3bc(0x2fb)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x4cfcb6,'fill':_0x5e1ad1||(0x0,d[_0x42c3bc(0x1bb)])(t[_0x42c3bc(0x13e)][_0x42c3bc(0x182)],_0x1073ca),'left':_0x3566ea,'top':_0x20b2a4,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x6a467d),this['_scene'][_0x42c3bc(0x2f9)](_0x6a467d,p[_0x42c3bc(0x2fa)]);}[_0x3f925b(0x312)](_0x5d7876){let _0x1e5bf4=_0x5d7876[0x0],_0x49a58e=_0x1e5bf4[0x0],_0x1dedf9=_0x1e5bf4[0x2],{x:_0x57c7bd,y:_0x224576}=_0x49a58e,{x:_0x6c406e,y:_0x11abad}=_0x1dedf9;return{'left':_0x57c7bd,'top':_0x224576,'width':_0x6c406e-_0x57c7bd,'height':_0x11abad-_0x224576};}[_0x3f925b(0x2a0)](){const _0x595eca=_0x3f925b;let {scaleX:_0x4bdf5c,scaleY:_0x324340}=this[_0x595eca(0x2e4)]['getAncestorScale']();return Math[_0x595eca(0x252)](_0x4bdf5c,_0x324340);}};let R=class extends t[_0x3f925b(0x33e)]{constructor(_0x6d33e2,_0x1e65f2,_0x516976,_0x10001c,_0x1a3b77){const _0x13fc5e=_0x3f925b;super(),this['_context']=_0x6d33e2,this[_0x13fc5e(0x25d)]=_0x1e65f2,this[_0x13fc5e(0xdb)]=_0x516976,this[_0x13fc5e(0x217)]=_0x10001c,this[_0x13fc5e(0x129)]=_0x1a3b77,S(this,_0x13fc5e(0x235),[]),S(this,_0x13fc5e(0xe0),[]),this['_init']();}[_0x3f925b(0x237)](){const _0x272f3c=_0x3f925b;let _0x27775f=this[_0x272f3c(0x194)][_0x272f3c(0x16f)],_0x2de73e=this['_docSkeletonManagerService'];this[_0x272f3c(0x1da)]((0x0,r[_0x272f3c(0x2df)])([this[_0x272f3c(0xdb)][_0x272f3c(0x27f)](_0x27775f),this[_0x272f3c(0x129)][_0x272f3c(0x1ab)]])['pipe']((0x0,i['map'])(([_0x379dd0,_0x3293e1])=>({'skeleton':_0x2de73e[_0x272f3c(0x238)](),'cursors':[..._0x379dd0['values']()][_0x272f3c(0x2a8)](_0x54458e=>({..._0x54458e,'color':this['_themeService'][_0x272f3c(0x13f)](_0x54458e['color'])}))})))[_0x272f3c(0x191)](_0x16be65=>{const _0x14569a=_0x272f3c;if(this[_0x14569a(0x349)](),_0x16be65){let {skeleton:_0x2a63f3,cursors:_0x2acdc1}=_0x16be65;this[_0x14569a(0x258)](_0x2a63f3,_0x2acdc1);}})),this[_0x272f3c(0xf9)](),this[_0x272f3c(0xd7)]();}[_0x3f925b(0x258)](_0x18208d,_0x189687){const _0x3bbc29=_0x3f925b;let {scene:_0x4913b3,mainComponent:_0x3227cf}=this['_context'],_0x4fe378=_0x189687[_0x3bbc29(0x33f)](_0x2f8d72=>new L(_0x2f8d72,_0x4913b3,_0x18208d,_0x3227cf));this[_0x3bbc29(0x235)]=_0x4fe378,this[_0x3bbc29(0xe0)]=_0x189687;}['_refreshCollabCursors'](){const _0x17ce13=_0x3f925b;this[_0x17ce13(0x349)]();let {scene:_0x1b0477,mainComponent:_0x3858f5}=this[_0x17ce13(0x194)],_0x15de6d=this[_0x17ce13(0x25d)][_0x17ce13(0x238)](),_0x30119d=this[_0x17ce13(0xe0)][_0x17ce13(0x33f)](_0x30d21c=>new L(_0x30d21c,_0x1b0477,_0x15de6d,_0x3858f5));this[_0x17ce13(0x235)]=_0x30119d;}['_removeCollabCursors'](){const _0x2e3133=_0x3f925b;this[_0x2e3133(0x235)]['forEach'](_0x173c3c=>_0x173c3c['dispose']()),this[_0x2e3133(0x235)]=[];}[_0x3f925b(0xd7)](){const _0x218db0=_0x3f925b;let _0x52d835=[p[_0x218db0(0xf8)]['id']];this[_0x218db0(0x1da)](this[_0x218db0(0x217)]['onCommandExecuted'](_0x533211=>{const _0x473a15=_0x218db0;_0x52d835[_0x473a15(0x146)](_0x533211['id'])&&_0x533211['params']['unitId']===this[_0x473a15(0x194)]['unitId']&&this[_0x473a15(0x32b)]();}));}[_0x3f925b(0xf9)](){const _0x5a3578=_0x3f925b;this[_0x5a3578(0x1da)]((0x0,t[_0x5a3578(0x12c)])(this[_0x5a3578(0x194)][_0x5a3578(0x230)]['onTransformChange$'])[_0x5a3578(0xa2)]((0x0,i[_0x5a3578(0x107)])(_0x164751=>_0x164751[_0x5a3578(0x2b7)]===d[_0x5a3578(0x19c)][_0x5a3578(0x26f)]),(0x0,i[_0x5a3578(0x26a)])(0x10))[_0x5a3578(0x191)](()=>{this['_refreshCollabCursors']();}));}};R=w([C(0x1,(0x0,t[_0x3f925b(0x2de)])(g['DocSkeletonManagerService'])),C(0x2,(0x0,t[_0x3f925b(0x2de)])(P)),C(0x3,t[_0x3f925b(0x1ea)]),C(0x4,(0x0,t[_0x3f925b(0x2de)])(t[_0x3f925b(0x2a7)]))],R);var z=class extends d[_0x3f925b(0x1af)]{constructor(_0x2cf5b6,_0x1fa407){const _0x2296b7=_0x3f925b;if(super(_0x2cf5b6,_0x1fa407),S(this,_0x2296b7(0x348),void 0x0),S(this,_0x2296b7(0x223),!0x1),S(this,_0x2296b7(0x24c),void 0x0),S(this,_0x2296b7(0x1b8),''),S(this,_0x2296b7(0x240),'top'),S(this,_0x2296b7(0x21f),void 0x0),S(this,'_showText',void 0x0),S(this,_0x2296b7(0x204),void 0x0),S(this,'_highlightSecond',0x4),S(this,'_blinkTimer',void 0x0),S(this,_0x2296b7(0x112),void 0x0),S(this,_0x2296b7(0x31b),!0x0),S(this,_0x2296b7(0x324),0x0),_0x1fa407){var _0x18af2b;if(this[_0x2296b7(0x280)](_0x1fa407),_0x1fa407[_0x2296b7(0x356)]&&((_0x18af2b=_0x1fa407[_0x2296b7(0x1c5)])==null?this[_0x2296b7(0xbf)]:_0x18af2b)){var _0x40aea7;this['_startBlinking']((_0x40aea7=_0x1fa407[_0x2296b7(0x1c5)])==null?this[_0x2296b7(0xbf)]:_0x40aea7);}}this[_0x2296b7(0x161)]['subscribeEvent'](()=>this[_0x2296b7(0x280)]({'hovered':!0x0})),this['onPointerLeave$'][_0x2296b7(0x1e2)](()=>this[_0x2296b7(0x280)]({'hovered':!0x1}));}[_0x3f925b(0x1aa)](_0x5d72f8){const _0x109c66=_0x3f925b;this[_0x109c66(0x324)]=_0x5d72f8;}[_0x3f925b(0x280)](_0x2bb21c){const _0xf9213b=_0x3f925b;var _0x38fbac,_0x420955,_0x456181,_0x47e8d9,_0x315a55,_0x5cdae1,_0x259bd6;this[_0xf9213b(0x348)]=(_0x38fbac=_0x2bb21c['color'])==null?this[_0xf9213b(0x348)]:_0x38fbac,this[_0xf9213b(0x223)]=(_0x420955=_0x2bb21c['hovered'])==null?this[_0xf9213b(0x223)]:_0x420955,this[_0xf9213b(0x24c)]=(_0x456181=_0x2bb21c[_0xf9213b(0x232)])==null?this['_range']:_0x456181,this[_0xf9213b(0x1b8)]=(_0x47e8d9=_0x2bb21c[_0xf9213b(0xdf)])==null?this[_0xf9213b(0x1b8)]:_0x47e8d9,this[_0xf9213b(0x240)]=(_0x315a55=_0x2bb21c[_0xf9213b(0x13d)])==null?this['_labelPosition']:_0x315a55,this['_backgroundColor']=(_0x5cdae1=_0x2bb21c[_0xf9213b(0x30b)])==null?this[_0xf9213b(0x21f)]:_0x5cdae1,this['_showText']=(_0x259bd6=_0x2bb21c[_0xf9213b(0x1e3)])==null?this[_0xf9213b(0x211)]:_0x259bd6,_0x2bb21c[_0xf9213b(0x1c5)]!==void 0x0&&(this[_0xf9213b(0xbf)]=_0x2bb21c['highlightSecond']),_0x2bb21c[_0xf9213b(0x356)]!==void 0x0&&(this[_0xf9213b(0x204)]=_0x2bb21c[_0xf9213b(0x356)]),_0x2bb21c[_0xf9213b(0x257)]!==void 0x0&&(this['_offsetY']=_0x2bb21c['offsetY']),this[_0xf9213b(0x1a1)]({'width':_0x2bb21c[_0xf9213b(0x154)],'height':_0x2bb21c[_0xf9213b(0xd6)]});}[_0x3f925b(0x172)](_0x10e599){const _0x4921c0=_0x3f925b;let {row:_0x59870e,column:_0x377fb7}=_0x10e599;if(_0x59870e>=this['_range'][_0x4921c0(0x2dc)]&&_0x59870e<=this[_0x4921c0(0x24c)][_0x4921c0(0x215)]&&_0x377fb7>=this[_0x4921c0(0x24c)][_0x4921c0(0x2ef)]&&_0x377fb7<=this[_0x4921c0(0x24c)][_0x4921c0(0x159)]){this[_0x4921c0(0x280)]({'hovered':!0x0});return;}this[_0x4921c0(0x280)]({'hovered':!0x1});}[_0x3f925b(0x138)](_0x5b32ee){const _0x4f93db=_0x3f925b;this['_stopBlinking'](),this[_0x4f93db(0x31b)]=!0x0,this[_0x4f93db(0x112)]=window[_0x4f93db(0xac)](()=>{const _0x31e3df=_0x4f93db;this['_isBlinkVisible']=!this[_0x31e3df(0x31b)],this[_0x31e3df(0x342)](!0x0);},0x1f4),this[_0x4f93db(0xb7)]=window[_0x4f93db(0x9c)](()=>{const _0x14c0b3=_0x4f93db;this[_0x14c0b3(0x1e0)](),this[_0x14c0b3(0x31b)]=!0x0,this[_0x14c0b3(0x342)](!0x0);},_0x5b32ee*0x3e8);}['_stopBlinking'](){const _0x3df57f=_0x3f925b;this[_0x3df57f(0x112)]&&(window[_0x3df57f(0x15d)](this['_blinkIntervalTimer']),this[_0x3df57f(0x112)]=void 0x0),this[_0x3df57f(0xb7)]&&(window[_0x3df57f(0x14f)](this['_blinkTimer']),this[_0x3df57f(0xb7)]=void 0x0);}[_0x3f925b(0x2fc)](_0x4cbdc6){return!0x1;}[_0x3f925b(0x171)](){const _0x1572ad=_0x3f925b;this[_0x1572ad(0x1e0)](),super['dispose']();}[_0x3f925b(0x113)](_0x9032af){const _0xe3ebf9=_0x3f925b;let _0x25363c=this[_0xe3ebf9(0x348)],_0x4e0d06=this[_0xe3ebf9(0x21f)];if(this[_0xe3ebf9(0x204)]&&!this[_0xe3ebf9(0x31b)]&&(_0x25363c=this[_0xe3ebf9(0x1f7)](this['_color']),_0x4e0d06=this['_backgroundColor']?this[_0xe3ebf9(0x1f7)](this[_0xe3ebf9(0x21f)]):void 0x0),d[_0xe3ebf9(0x2ec)][_0xe3ebf9(0x28b)](_0x9032af,{'width':this[_0xe3ebf9(0x154)],'height':this['height'],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x25363c,'evented':!0x1,'fill':_0x4e0d06}),this[_0xe3ebf9(0x223)]||this[_0xe3ebf9(0x211)]){var _0x5cdf8f;_0x9032af[_0xe3ebf9(0x34c)](),_0x9032af[_0xe3ebf9(0x1ed)](0x1,0x0,0x0,0x1,this[_0xe3ebf9(0x154)],(this[_0xe3ebf9(0x240)]==='bottom'?0x0:-0x14)+((_0x5cdf8f=this[_0xe3ebf9(0x324)])==null?0x0:_0x5cdf8f)),F[_0xe3ebf9(0x28b)](_0x9032af,{'text':this[_0xe3ebf9(0x1b8)],'color':_0x25363c}),_0x9032af['restore']();}}[_0x3f925b(0x1f7)](_0x25ab0b){const _0xec9140=_0x3f925b;return _0x25ab0b[_0xec9140(0x1d9)]('#')?'rgba('+Number[_0xec9140(0xab)](_0x25ab0b[_0xec9140(0xb4)](0x1,0x3),0x10)+',\x20'+Number[_0xec9140(0xab)](_0x25ab0b[_0xec9140(0xb4)](0x3,0x5),0x10)+',\x20'+Number[_0xec9140(0xab)](_0x25ab0b['slice'](0x5,0x7),0x10)+_0xec9140(0x2a4):_0x25ab0b[_0xec9140(0x1d9)]('rgba')?_0x25ab0b[_0xec9140(0x32e)](/[\d.]+\)$/g,'0.2)'):_0x25ab0b[_0xec9140(0x1d9)](_0xec9140(0x228))?_0x25ab0b['replace'](_0xec9140(0x228),_0xec9140(0x2be))[_0xec9140(0x32e)](')',',\x200.2)'):_0x25ab0b;}};let B=class extends t[_0x3f925b(0x33e)]{constructor(_0x1eb675,_0x31c4de,_0x1e1857,_0x131890){const _0x57270b=_0x3f925b;super(),this[_0x57270b(0x194)]=_0x1eb675,this['_sheetSkeletonManagerService']=_0x31c4de,this[_0x57270b(0xdb)]=_0x1e1857,this[_0x57270b(0x129)]=_0x131890,S(this,_0x57270b(0xe0),new Set()),S(this,_0x57270b(0x2ac),null),S(this,'_pointerMoveDisposable',null),this[_0x57270b(0x237)]();}['_init'](){const _0x4f78d1=_0x3f925b;this[_0x4f78d1(0x105)][_0x4f78d1(0x299)][_0x4f78d1(0xa2)]((0x0,i[_0x4f78d1(0xfd)])(this[_0x4f78d1(0x2d2)]),(0x0,i[_0x4f78d1(0x1d6)])(_0x53b0ed=>{const _0x3f6cc0=_0x4f78d1;if(_0x53b0ed){let _0x111a32=_0x53b0ed[_0x3f6cc0(0x353)];return(0x0,r['combineLatest'])(this[_0x3f6cc0(0xdb)]['getCollabCursors$'](this[_0x3f6cc0(0x194)]['unitId']),this[_0x3f6cc0(0x129)][_0x3f6cc0(0x1ab)])[_0x3f6cc0(0xa2)]((0x0,i['map'])(([_0x1aae3f,_0x1db02e])=>{const _0x7b648b=_0x3f6cc0;let _0x285dee=new Map();return _0x1aae3f[_0x7b648b(0xbd)]((_0x217c81,_0x4c986c)=>{const _0x5500ff=_0x7b648b;if(_0x217c81[_0x5500ff(0x277)]===_0x111a32){let _0x58723c={..._0x217c81};_0x58723c['color']=this[_0x5500ff(0x129)]['getColorFromTheme'](_0x217c81[_0x5500ff(0x17c)]),_0x285dee[_0x5500ff(0x128)](_0x4c986c,_0x58723c);}}),{'skeleton':_0x53b0ed,'cursors':_0x285dee};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x4f78d1(0x191)](({skeleton:_0x130665,cursors:_0x15fe98})=>{const _0x2b6972=_0x4f78d1;this[_0x2b6972(0x349)](),_0x130665&&this[_0x2b6972(0x258)](_0x130665,_0x15fe98);}),this[_0x4f78d1(0x1da)](this[_0x4f78d1(0x105)][_0x4f78d1(0x299)][_0x4f78d1(0xa2)]((0x0,i[_0x4f78d1(0xfd)])(this[_0x4f78d1(0x2d2)]))[_0x4f78d1(0x191)](_0x30b666=>{const _0x5be7cf=_0x4f78d1;var _0x4a1d09;if(_0x30b666==null)return;(_0x4a1d09=this[_0x5be7cf(0xdc)])==null||_0x4a1d09[_0x5be7cf(0xb1)](),this[_0x5be7cf(0xdc)]=null;let {skeleton:_0x1ee13e}=_0x30b666,{scene:_0x50dc4b}=this[_0x5be7cf(0x194)];this[_0x5be7cf(0xdc)]=_0x50dc4b[_0x5be7cf(0x320)]['subscribeEvent']((0x0,t[_0x5be7cf(0x264)])(_0x279022=>{const _0x501fbc=_0x5be7cf;var _0x479184,_0x51e764;let {offsetX:_0x55f8ec,offsetY:_0x2740d1}=_0x279022,{x:_0x1a4545,y:_0x4c1bf5}=_0x50dc4b['getRelativeToViewportCoord'](d[_0x501fbc(0x239)][_0x501fbc(0x287)]([_0x55f8ec,_0x2740d1])),{scaleX:_0x18d4c0,scaleY:_0xac26fe}=_0x50dc4b[_0x501fbc(0x219)](),_0x10f8ca=_0x50dc4b[_0x501fbc(0x157)](d[_0x501fbc(0x282)][_0x501fbc(0x2d1)]),_0x37796f=_0x50dc4b[_0x501fbc(0x147)](d['Vector2'][_0x501fbc(0x287)]([_0x1a4545,_0x4c1bf5]),_0x10f8ca),_0xc53bbc=_0x1ee13e['getCellPositionByOffset'](_0x55f8ec,_0x2740d1,_0x18d4c0,_0xac26fe,_0x37796f);((_0x479184=this['_lastPointer'])==null?void 0x0:_0x479184[_0x501fbc(0x2b0)])===_0xc53bbc['column']&&((_0x51e764=this['_lastPointer'])==null?void 0x0:_0x51e764[_0x501fbc(0x23c)])===_0xc53bbc[_0x501fbc(0x23c)]||this[_0x501fbc(0xe0)]['forEach'](_0x31d510=>{const _0x59fb0d=_0x501fbc;_0x31d510[_0x59fb0d(0x172)](_0xc53bbc);});},0x64));})),this[_0x4f78d1(0x1da)]((0x0,t[_0x4f78d1(0x209)])(()=>{const _0x189d46=_0x4f78d1;var _0x2244ac;(_0x2244ac=this[_0x189d46(0xdc)])==null||_0x2244ac[_0x189d46(0xb1)](),this[_0x189d46(0xdc)]=null;}));}[_0x3f925b(0x258)](_0x109856,_0x3ecb1e){const _0x9d18e3=_0x3f925b;let _0xb8303c=this['_sheetSkeletonManagerService'][_0x9d18e3(0x261)]();if(!_0xb8303c)return;let _0x5790cd=this['_getSheetObject']();if(!_0x5790cd)return;this[_0x9d18e3(0xe0)]['forEach'](_0x141be1=>{const _0x50f452=_0x9d18e3;_0x141be1[_0x50f452(0x342)]();});let {scene:_0x4ded42}=_0x5790cd,_0x5fcfee=he(Array[_0x9d18e3(0x1a3)](_0x3ecb1e[_0x9d18e3(0xe7)]()))[_0x9d18e3(0x33f)](_0x109fe9=>{const _0x2eabca=_0x9d18e3;let {color:_0x408298,range:_0x25aafa,name:_0x3b118f,selection:_0x259f03,sheetID:_0x528e8b}=_0x109fe9,{startColumn:_0x148a6b,startRow:_0x15d172,endColumn:_0x4d2ca1,endRow:_0xba66cd}=_0x25aafa,_0x4e28af=(0x0,y[_0x2eabca(0x350)])(_0x15d172,_0x148a6b,_0x4ded42,_0xb8303c),_0xb5d2c=(0x0,y['getCoordByCell'])(_0xba66cd,_0x4d2ca1,_0x4ded42,_0xb8303c),{columnHeaderHeightAndMarginTop:_0x1abe78}=_0xb8303c,{startX:_0x458688,startY:_0x169802}=_0x4e28af,{endX:_0x56cf73,endY:_0x4555b9}=_0xb5d2c,_0x2e7b67=_0x56cf73-_0x458688,_0x2b6da7=_0x4555b9-_0x169802;return new z(_0x3b118f,{'labelPosition':_0x169802-_0x1abe78>=0x14?_0x2eabca(0x260):_0x2eabca(0x24b),'sheetID':_0x528e8b,'range':_0x25aafa,'color':_0x408298,'name':_0x3b118f,'selection':_0x259f03,'left':_0x458688,'top':_0x169802,'width':_0x2e7b67,'height':_0x2b6da7,'evented':!0x1,'zIndex':0x1389});});_0x4ded42[_0x9d18e3(0x214)](_0x5fcfee,0x1),this[_0x9d18e3(0xe0)]=new Set(_0x5fcfee);}[_0x3f925b(0x349)](){const _0xbc5d0e=_0x3f925b;var _0x5135cf;(_0x5135cf=this[_0xbc5d0e(0xe0)])==null||_0x5135cf[_0xbc5d0e(0xbd)](_0x1feaa7=>_0x1feaa7['dispose']());}[_0x3f925b(0x1e8)](){const _0x32a4a8=_0x3f925b;return(0x0,y[_0x32a4a8(0xda)])(this[_0x32a4a8(0x194)][_0x32a4a8(0x254)],this[_0x32a4a8(0x194)]);}};B=w([C(0x1,(0x0,t[_0x3f925b(0x2de)])(y[_0x3f925b(0xf1)])),C(0x2,(0x0,t[_0x3f925b(0x2de)])(P)),C(0x3,(0x0,t['Inject'])(t[_0x3f925b(0x2a7)]))],B);function he(_0x52e5b5){const _0x1d619f=_0x3f925b;let _0x4cdca1=new Map();return _0x52e5b5['forEach'](_0x45eb1c=>{const _0x4bfb1c=_0x43e1;if(_0x4cdca1[_0x4bfb1c(0x355)](_0x45eb1c[_0x4bfb1c(0x1d7)])){let _0x496233=_0x4cdca1[_0x4bfb1c(0x116)](_0x45eb1c[_0x4bfb1c(0x1d7)]);_0x496233[_0x4bfb1c(0xdf)]+=',\x20'+_0x45eb1c[_0x4bfb1c(0xdf)];}else _0x4cdca1[_0x4bfb1c(0x128)](_0x45eb1c[_0x4bfb1c(0x1d7)],_0x45eb1c);}),Array[_0x1d619f(0x1a3)](_0x4cdca1[_0x1d619f(0xe7)]());}const ge=0x138a;var _e=class extends d[_0x3f925b(0x1af)]{constructor(_0x48d7cd,_0x3ee1cc){const _0x725409=_0x3f925b;super(_0x48d7cd,{..._0x3ee1cc,'evented':!0x1}),S(this,_0x725409(0x348),'#4f46e5'),S(this,_0x725409(0x1b8),''),S(this,_0x725409(0x211),!0x0),_0x3ee1cc&&this[_0x725409(0x280)](_0x3ee1cc);}['setShapeProps'](_0x46e0f4){const _0xf65b5f=_0x3f925b;var _0x194bfe,_0x36ae32,_0x535f9c,_0xf85d43,_0x496124,_0x36a1d8,_0xf469d8,_0x208e15;this[_0xf65b5f(0x348)]=(_0x194bfe=_0x46e0f4[_0xf65b5f(0x17c)])==null?this[_0xf65b5f(0x348)]:_0x194bfe,this[_0xf65b5f(0x1b8)]=(_0x36ae32=_0x46e0f4[_0xf65b5f(0xdf)])==null?this['_name']:_0x36ae32,this[_0xf65b5f(0x211)]=(_0x535f9c=_0x46e0f4[_0xf65b5f(0x1e3)])==null?this[_0xf65b5f(0x211)]:_0x535f9c,this['evented']=!0x1,this[_0xf65b5f(0x1a1)]({'left':(_0xf85d43=_0x46e0f4[_0xf65b5f(0x19b)])==null?this[_0xf65b5f(0x19b)]:_0xf85d43,'top':(_0x496124=_0x46e0f4['top'])==null?this[_0xf65b5f(0x260)]:_0x496124,'width':(_0x36a1d8=_0x46e0f4[_0xf65b5f(0x154)])==null?this['width']:_0x36a1d8,'height':(_0xf469d8=_0x46e0f4[_0xf65b5f(0xd6)])==null?this[_0xf65b5f(0xd6)]:_0xf469d8,'angle':(_0x208e15=_0x46e0f4['angle'])==null?this[_0xf65b5f(0x20c)]:_0x208e15});}[_0x3f925b(0x113)](_0x520744){const _0x253073=_0x3f925b;_0x520744[_0x253073(0x34c)](),_0x520744[_0x253073(0x1c2)]=this[_0x253073(0x348)],_0x520744[_0x253073(0x1ae)]=this[_0x253073(0x27c)]||1.5,_0x520744['setLineDash']([0x6,0x4]),_0x520744[_0x253073(0x271)](0x0,0x0,this[_0x253073(0x154)],this['height']),_0x520744[_0x253073(0x27b)](),this[_0x253073(0x211)]&&(_0x520744[_0x253073(0x34c)](),_0x520744['transform'](0x1,0x0,0x0,0x1,this[_0x253073(0x154)],-0x14),F[_0x253073(0x28b)](_0x520744,{'text':this[_0x253073(0x1b8)],'color':this[_0x253073(0x348)]}),_0x520744['restore']());}};function _0x1ffb(){const _0x183331=['_selfUnitIDs','_startCalculationLimit','INotificationService','_transformService','resize','cursorInfo$','strokeRect','_saveTaskMap','fillRule','setAlpha','50acFzGX','_messageService','sheetID','addClipboardHook','slide-element-selection','_localeService','restore','strokeWidth','handleInsertRow','_document','getCollabCursors$','setShapeProps','moveTo','SHEET_VIEWPORT_KEY','_startDocCollabCursor','8706120whkchQ','getRenderById','_localCacheService','FromArray','fromEvent','_handleHover','\x20at\x20','drawWith','ACTIVE_UNIT_EVENT_CHANNEL','_docTransformSelectionsService','_docSyncEditingCollabCursorService','isTransformMutationsWithChangesetSuccess','/universer-api/frontend/logs','clickable','undoState','IUIPartsService','DocIMEInputManagerService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','collabCursorState$','error','findNodePositionByCharIndex','currentSkeleton$','green.600','clsx','_unitOnClients','ISnapshotServerService','urlChange$','_collabSessionService','_getScale','registerComponent','/universer-api/license/formula/limit/start','_initDependencies',',\x200.2)','_localStorageService','CollaborationSessionService','ThemeService','flatMap','Rectangle','_entities','DOC_RANGE_TYPE','_lastPointer','_drawTextRange','addEventListener','setParam','column','add','lineTo','getRealBound','JOIN_ROOM_FAILED','polite','debounceTime','type','bind','isActive','FormulaExecutedStateType','getOffsetConfig','_initEntityListener','rgba(255,\x20255,\x20255,\x200.01)','rgba','_notificationService','beginPath','_currentUsage','editingUnit','unshift','spin','yellow.400','_entityInit$','IBeforeCloseService','_scheduleClearOtherTimer','event$','_updateSubUnitFromURLParams','CollaborationEvent','CanceledError','transformMutationsWithChangeset','_uiPartsService','IConfigService','univer-h-8\x20univer-w-8\x20univer-rounded-lg','VIEW_MAIN','dispose$','_cursor','removeObjects','collaboration-client-ui.conflict.title','Success','InsertColCommandId','getCollabEntity$','min','eventID','_docTransformIMECacheService','startRow','_initStatusListener','Inject','combineLatest','indicator','WebBrowserSingleActiveUnitService','getSnapshot','_revisionService','_scene','selections','split','result','244iJcQsx','_createSocketURL','uni.network.url-service','getUnhiddenWorksheets','Rect','href','_configService','startColumn','collaboration-client-ui.session.will-retry','button','pageManager','_heartbeatTimer','code','_id','div','next','HTTPService','addObject','TEXT_RANGE_LAYER_INDEX','collab-rect-range-','triggerDblclick','univer-border-none\x20univer-bg-transparent','popstate','SetTextSelectionsOperation','_eventUnsubscribe','_registerDependencies','enableFrontendLog','handleInsertRangeMoveRight','colno','OTHER_CLIENTS_EDITING','_beforeCloseService','handleIRemoveCol','DeleteRangeMoveLeftCommandId','focusedId','12486353hYKera','backgroundColor','fillText','icon','onCommandExecuted','RegularPolygon','_toggleOffline','now','_getAnchorBounding','_lastResponseTimestamp','preventDefault','NodePositionConvertToCursor','true','CollaborationUIEventService','Disposable','/run/','getMember','_isBlinkVisible','status','_instanceService','socket$','_clearOtherTimers','onPointerMove$','_hover','PERMISSION_DENIED','setConfig','_offsetY','SheetCollabCursorShape','collaboration-client-ui.collabStatus.conflict','size','isArray','_status$','_logService','_refreshCollabCursors','_renderManagerService','getMergeData','replace','getMemberID','WebSocketService','selectedIds','roomMembers','pulse','version','pushState','_initStatusComponent','InsertRowCommandId','_disabled','connectInjector','params','PENDING','toRgbString','OFFLINE','RxDisposable','map','getItem','status$','makeDirty','post','_startSlideCollabCursor','IUniverInstanceService','_setupBeforeClosingHandler','serializeRangeWithSheet','_color','_removeCollabCursors','SessionStatus','functionsExecutedState','save','_updateURLWithCurrentState','TEXT','getParam','getCoordByCell','then','activeSheet$','sheetId','getStateCache','has','highlight','replaceState','newValue','_collabCursorState$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getActiveSlide','handleMoveRange','collaboration-client-ui.session.collaboration-timeout','getTypeOfUnitAdded$','RevisionService','collaboration-client-ui.formula.calculation.started','override','_checkAndWaitForCalculationPermission','stack','setTimeout','MoveRangeCommandId','ISocketService','show','LoadingMultiIcon','IRenderManagerService','pipe','_initUserListener','DocCollaborationEntity','Enter','mutations','distinctUntilChanged','_handleJoinEvent','arc','UNIVER_SLIDE','parseInt','setInterval','START_CALCULATION','fillStyle','_send','SOCKET_FAILED_RETRY','unsubscribe','text','7JXJTTh','slice','state$','univer-flex\x20univer-items-center\x20univer-justify-center','_blinkTimer','getDocRanges','some','isFormulaId','saveOfflineData','location','forEach','1365hEDcwj','_highlightSecond','disableLocalCache','defineProperty','focused$','executeCommand','requireSession','getValue','/universer-api/license/formula/limit/done','_config','useCallback','registerRefRange','Warning','Injector','string','_cursorInfo$','InsertRangeMoveRightCommandId','_urlService','_maxFormulaLimit','mapTo','i18nKey','unload','_univerInstanceService','ONLINE','height','_initCommandExecutedListener','runOnServer','collaboration-client-ui.collabStatus.offline','getSheetObject','_collabCursorController','_pointerMoveDisposable','origin','getSheetBySheetId','name','_cursors','getCurrentTypeOfUnit$','_colorAssignService','ErrorCode','toString','toISOString','univer-inline-flex\x20univer-items-center\x20univer-justify-center','values','red.300','syncEditingCollabCursor','_toggleOnline','message','debug','stageInfo','enableDocumentCollaborationUI','_docClipboardService','univer-text-green-500','SheetSkeletonManagerService','beforeCommandExecuted','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_handleEvent','_dataLoaderService','executionId','MessageType','SetDocZoomRatioOperation','_initResize','_scheduleSaving','CollaborationStatus','_getObjectBounds','takeUntil','univer-text-orange-500','3056dMSDnf','_showGuardMessage','Loading','_assignedColors','_slideDrawingStateService','DependentOn','_sheetSkeletonManagerService','totalFormulasToCalculate','filter','transformRemoteChangeset','transformIMECache','_applyCommand','CollaborationDataLoaderController','Workbook','?taskId=','MemberService','doc.mutation.rich-text-editing','univer-transition-all\x20univer-duration-200','runId','_blinkIntervalTimer','_draw','merge','LocaleService','get','_getFormulaLimitStatus','SYNCED','2020203RvNVxJ','_textBubble','source','SUBMIT_CHANGESET_TIMEOUT','function','_onCursorUpdate','buildDrawingOKey','subunit','getAllUnitsForType','_pollingInterval','getLocalCacheKey','cursorInfo','data','EffectRefRangId','transformSelections','set','_themeService','OnLineIcon','NOT_COLLAB','fromEventSubject','ranges','getUnitId','_scheduleHeartbeat','all','createSocket','_latestCursors','getUndoRedoMutationParamsCache','registerBeforeClose','_collaborationSessionService','[Window\x20Error]:\x20','_shapes','_startBlinking','_getMergeRange','stage','getUniverSheetInstance','WebURLService','labelPosition','COLORS','getColorFromTheme','_setupSubUnitSync','hide','jsx','resolve','InsertRangeMoveDownCommandId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','includes','getVpScrollXYInfoByPosToVp','entityInit$','m1Prime','BehaviorSubject','fill','_onCursorDelete','DisposableCollection','saveTaskMap','clearTimeout','onRendered','handleDeleteRangeMoveUp','_handleHeartbeatEvent','maxFormulaLimit','width','transformMutation','_saveCache','getViewport','registerDependencies','endColumn','1.0.0-alpha.1','_renderScheduled','addHandlerCallback','clearInterval','dark:focus:!univer-ring-offset-gray-800','_monkeyPatchLogService','_releaseCalculationLimit','onPointerEnter$','removeParam','/universer-api/license/formula/limit/status','AWAITING','length','_docStateChangeManagerService','_setFormulaLimitStatus','span','roomMembers$','_colorIndex','find','getCurrentRevOfUnit','_checkCalculationAvailable','onPointerLeave$','unitId','subUnitId','dispose','onMouseMove','UNIVER_SHEET','collaboration-client-ui.collabStatus.fetchMiss','Failed','mergeOverrideWithDependencies','stringify','scene','_render','AWAITING_WITH_PENDING','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','color','unitID','removeEventListener','iterator','_initEvent','getTypeOfUnitDisposed$','black','ILogService','_updateLocalCursor','collaboration-client-ui.collabStatus.syncing','UPDATE_CURSOR','kind','toPrimitive','...','Unknown\x20user','_anchorDot','body','loadUnit','_initWindowErrorListener','contains','imageSourceType','subscribe','replaceDocRanges','[Unhandled\x20Rejection]:\x20','_context','_transformPreviousActiveRange','memberID','storage','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_unitStatus','getConfig','left','TRANSFORM_CHANGE_OBSERVABLE_TYPE','delete','currentUsage','handleDeleteRangeMoveLeft','asObservable','transformByState','constructor','from','CLOSE_ROOM','DataLoaderService','_docSkeleton','searchParams','_initCommandInterceptor','[CollaborationDataLoaderController]','setOffsetY','currentTheme$','_registerRenderDependencies','UNIVER_DOC','lineWidth','Shape','getRangePointData','touchDependencies','deepClone','_memberService','removeObject','RichTextEditingMutation','assignAColorForMemberID','3291369TAniHw','_name','SetSelectionsOperation','limitInfo','getColor','collaboration-client-ui.session.connection-failed','_ensureSubject','_removeClearOtherTimer','blue.400','prototype','BuiltInUIPart','strokeStyle','_cachedData','lineno','highlightSecond','toStringTag','[LogService\x20Error]:\x20','purple.300','shift','_refRangeService','m2Prime','send','@univerjs-pro/collaboration-client-ui','_docTransformStateCacheService','getCurrentUnitOfType','_drawAnchor','_isApplyingOverlays','SUCCESS','ColorKit','USERS_LEAVE','CollaborationController','switchMap','selection','setItem','startsWith','disposeWithMe','_collaborationController','useDependency','object','getObject','getSheetId','_stopBlinking','addObject$','subscribeEvent','showText','_hideTimer','_anchor','univer-text-gray-400','SOCKET_FAILED','_getSheetObject','_imageIoService','ICommandService','IURLService','call','transform','ITransformService','collab-text-range-','_doCreateSocket','DocSelectionManagerService','\x20-\x20','OTHER_CLIENT_EDITING','packageName','Optional','_taskIds','_getLighterColor','application/json','_httpService','generateRandomId','_getSceneObjectByKey','_injector','625416hCxZvV','_uploadLog','collaboration-client-ui.permission.content','enableLocalCache','RemoveColCommandId','_handleLeaveEvent','onStarting','_highlight','static','CollaborationUIEventId','isInternalEditorID','reason','toDisposable','_transformUndoRedoStack','init','angle','complete','updateOfflineData','exhaustSavingTask','_getSessionTicket','_showText','univer-m-0\x20univer-p-0','deserializeRangeWithSheet','addObjects','endRow','_scheduleRender','_commandService','Tools','getAncestorScale','sessionStatus$','DeleteRangeMoveUpCommandId','SetFormulaCalculationNotificationMutation','history','Error','_backgroundColor','CONFLICT','univer-text-red-500','transformStateCache','_hovered','RECT','startFormulaLimitUrl','univer-appearance-none','_onRefRangeChange','rgb','createInstance','search','backupOfflineData','_startSheetCollabCursor','redoState','RefRangeService','tooltipKey','engine','with','range','SheetsSelectionsService','getFocusedUnit','_cursorShapes','RemoveRowCommandId','_init','getSkeleton','Vector2','collaboration-client-ui.formula.calculation.unable','_roomMembers$','row','measureText','UnitStatus','collaboration-client-ui.collabClient.tooltip.reconnect','_labelPosition','parse','34362ubDYza','_session','UniverInstanceType','createIdentifier','HEADER_MENU','IMessageService','disposeUnit','_getSaveTimeout','BrowserCollaborationSocketService','bottom','_range','_hasFormulaInDirtyRanges','LOCAL_CACHE_INTERVAL','isTransformMutationFailure','_transformHistoryAndStateStack','releaseFormulaLimitUrl','max','registerRenderModule','unit','_drawRectRange','DocStateChangeManagerService','offsetY','_updateCollabCursors','univer-text-blue-500','Tooltip','textRanges','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_docSkeletonManagerService','_syncEditingCollabCursorService','_clearPolling','top','getCurrentSkeleton','_memberID','key','debounce','_online','symbol','push','collaboration-client-ui.config','getFormulaLimitStatusUrl','throttleTime'];_0x1ffb=function(){return _0x183331;};return _0x1ffb();}let V=class extends t[_0x3f925b(0x33e)]{constructor(_0x30a243,_0x5a7058,_0x4ef9a3){const _0x4cc875=_0x3f925b;super(),this[_0x4cc875(0x194)]=_0x30a243,this[_0x4cc875(0xdb)]=_0x5a7058,this[_0x4cc875(0x129)]=_0x4ef9a3,S(this,'_cursors',new Set()),S(this,_0x4cc875(0x15b),!0x1),S(this,'_isApplyingOverlays',!0x1),S(this,'_latestCursors',new Map()),this[_0x4cc875(0x237)]();}[_0x3f925b(0x171)](){const _0x1b6ad6=_0x3f925b;this[_0x1b6ad6(0x349)](),super[_0x1b6ad6(0x171)]();}['_init'](){const _0x5eb0be=_0x3f925b;let _0x6ce5e2=this[_0x5eb0be(0x194)][_0x5eb0be(0x254)][_0x5eb0be(0x2f2)]['activeSlideId$'],_0x37c331=this['_collabCursorController']['getCollabCursors$'](this[_0x5eb0be(0x194)]['unitId']);this['disposeWithMe']((0x0,t[_0x5eb0be(0x209)])((0x0,r[_0x5eb0be(0x2df)])([_0x37c331,_0x6ce5e2,this['_themeService'][_0x5eb0be(0x1ab)]])[_0x5eb0be(0xa2)]((0x0,r[_0x5eb0be(0xfd)])(this['dispose$']))[_0x5eb0be(0x191)](([_0x3be7a2,_0x5f24c0])=>{const _0x28eb18=_0x5eb0be;let _0x51c8f3=new Map();_0x3be7a2[_0x28eb18(0xbd)]((_0x526c20,_0x21b7dd)=>{const _0x43d067=_0x28eb18;_0x526c20['subUnitId']===_0x5f24c0&&_0x51c8f3[_0x43d067(0x128)](_0x21b7dd,{..._0x526c20,'color':this['_themeService'][_0x43d067(0x13f)](_0x526c20['color'])});}),this[_0x28eb18(0x132)]=_0x51c8f3,this[_0x28eb18(0x216)]();})));let _0x5b0230=this['_context'][_0x5eb0be(0x178)];this[_0x5eb0be(0x1da)]((0x0,t[_0x5eb0be(0x209)])(_0x5b0230[_0x5eb0be(0x1e1)][_0x5eb0be(0xa2)]((0x0,r['takeUntil'])(this[_0x5eb0be(0x2d2)]))['subscribe'](()=>{const _0x1d8615=_0x5eb0be;this[_0x1d8615(0x1d1)]||this[_0x1d8615(0x216)]();})));}[_0x3f925b(0x216)](){const _0x48b208=_0x3f925b;this[_0x48b208(0x15b)]||(this[_0x48b208(0x15b)]=!0x0,Promise[_0x48b208(0x143)]()['then'](()=>{const _0x408e9d=_0x48b208;this['_renderScheduled']=!0x1,this[_0x408e9d(0x179)]();}));}['_render'](){const _0x394185=_0x3f925b;var _0x5d61b5;this[_0x394185(0x349)]();let _0x33a360=(_0x5d61b5=this[_0x394185(0x194)][_0x394185(0x254)][_0x394185(0x2f2)][_0x394185(0x35b)]())==null?void 0x0:_0x5d61b5['getId']();if(!_0x33a360)return;let _0x252e13=[];if(this[_0x394185(0x132)][_0x394185(0xbd)]((_0x58424b,_0x451165)=>{const _0x584fce=_0x394185;_0x58424b[_0x584fce(0x170)]===_0x33a360&&_0x58424b[_0x584fce(0x331)][_0x584fce(0xbd)](_0x11062a=>{const _0x1f88f8=_0x584fce;let _0xe8a4b4=(0x0,v[_0x1f88f8(0x11f)])(_0x58424b['unitId'],_0x58424b[_0x1f88f8(0x170)],_0x11062a),_0x431aab=this[_0x1f88f8(0x1fb)](_0xe8a4b4);if(!_0x431aab)return;let _0x514c3f=this[_0x1f88f8(0xfc)](_0x431aab);_0x252e13['push'](new _e('slide-collab-cursor-'+_0x451165+'-'+_0x11062a,{..._0x58424b,'left':_0x514c3f[_0x1f88f8(0x19b)],'top':_0x514c3f[_0x1f88f8(0x260)],'width':_0x514c3f[_0x1f88f8(0x154)],'height':_0x514c3f['height'],'angle':_0x431aab['angle'],'evented':!0x1,'zIndex':ge}));});}),_0x252e13[_0x394185(0x165)]===0x0){this[_0x394185(0x194)][_0x394185(0x178)][_0x394185(0x342)](!0x0);return;}this['_isApplyingOverlays']=!0x0,this[_0x394185(0x194)][_0x394185(0x178)][_0x394185(0x214)](_0x252e13,ge),this[_0x394185(0x1d1)]=!0x1,this[_0x394185(0xe0)]=new Set(_0x252e13),this[_0x394185(0x194)][_0x394185(0x178)][_0x394185(0x342)](!0x0);}[_0x3f925b(0x349)](){const _0x3ac85c=_0x3f925b;let _0x1170e5=Array[_0x3ac85c(0x1a3)](this[_0x3ac85c(0xe0)]);if(_0x1170e5[_0x3ac85c(0x165)]===0x0)return;let _0x29d6ff=this[_0x3ac85c(0x194)][_0x3ac85c(0x178)];_0x3ac85c(0x2d4)in _0x29d6ff&&typeof _0x29d6ff[_0x3ac85c(0x2d4)]=='function'?_0x29d6ff['removeObjects'](_0x1170e5):_0x1170e5['forEach'](_0x35641e=>{const _0x3054e3=_0x3ac85c;_0x3054e3(0x1b4)in _0x29d6ff&&typeof _0x29d6ff['removeObject']==_0x3054e3(0x11d)?_0x29d6ff[_0x3054e3(0x1b4)](_0x35641e):_0x35641e[_0x3054e3(0x171)]();}),this[_0x3ac85c(0xe0)]['clear'](),_0x29d6ff['makeDirty'](!0x0);}['_getSceneObjectByKey'](_0x12d31c){const _0x47bdb9=_0x3f925b;var _0x24905a,_0x3a0df3,_0x3da97c;let _0x8ef2ec=this['_context'][_0x47bdb9(0x178)];return(_0x24905a=(_0x3a0df3=(_0x3da97c=_0x8ef2ec['getObjectIncludeInGroup'])==null?void 0x0:_0x3da97c[_0x47bdb9(0x1ec)](_0x8ef2ec,_0x12d31c))==null?_0x8ef2ec[_0x47bdb9(0x1de)](_0x12d31c):_0x3a0df3)==null?null:_0x24905a;}[_0x3f925b(0xfc)](_0x346b00){const _0x4a8e17=_0x3f925b;var _0x44dd77,_0x53a3ae;let _0x5f5c74=_0x346b00;return(_0x44dd77=(_0x53a3ae=_0x5f5c74[_0x4a8e17(0x2b3)])==null?void 0x0:_0x53a3ae[_0x4a8e17(0x1ec)](_0x5f5c74))==null?{'left':_0x346b00['left'],'top':_0x346b00['top'],'width':_0x346b00[_0x4a8e17(0x154)],'height':_0x346b00[_0x4a8e17(0xd6)]}:_0x44dd77;}};V=w([C(0x1,(0x0,t[_0x3f925b(0x2de)])(P)),C(0x2,(0x0,t[_0x3f925b(0x2de)])(t[_0x3f925b(0x2a7)]))],V);let H=class extends t[_0x3f925b(0x318)]{constructor(_0x3b5b95,_0xaa07f8,_0x5d631e,_0x2284fd,_0x63b67f,_0x1a0bd3){const _0x3e8ed4=_0x3f925b;super(),this[_0x3e8ed4(0x306)]=_0x3b5b95,this['_localCacheService']=_0xaa07f8,this['_collaborationUIEventService']=_0x5d631e,this['_messageService']=_0x2284fd,this[_0x3e8ed4(0x2bf)]=_0x63b67f,this[_0x3e8ed4(0x27a)]=_0x1a0bd3,this[_0x3e8ed4(0x346)](),this[_0x3e8ed4(0x180)]();}[_0x3f925b(0x346)](){const _0x114833=_0x3f925b;this['disposeWithMe'](this[_0x114833(0x306)][_0x114833(0x134)](()=>{const _0x26f2bb=_0x114833;if(this[_0x26f2bb(0x286)][_0x26f2bb(0x14e)][_0x26f2bb(0x327)])return this[_0x26f2bb(0x27a)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x16f309=_0x3f925b;this[_0x16f309(0x1da)](this['_collaborationUIEventService'][_0x16f309(0x2c9)][_0x16f309(0x191)](_0x16d118=>{const _0x5b1212=_0x16f309;_0x16d118['id']===e[_0x5b1212(0x206)][_0x5b1212(0x1f3)]&&this['_messageService'][_0x5b1212(0x9f)]({'type':a[_0x5b1212(0xf7)][_0x5b1212(0xca)],'content':this[_0x5b1212(0x27a)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x16d118['id']===e[_0x5b1212(0x206)][_0x5b1212(0x1a4)]&&this['_messageService'][_0x5b1212(0x9f)]({'type':a[_0x5b1212(0xf7)][_0x5b1212(0xca)],'content':this[_0x5b1212(0x27a)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x16d118['id']===e[_0x5b1212(0x206)][_0x5b1212(0x322)]&&this['_notificationService'][_0x5b1212(0x9f)]({'title':this[_0x5b1212(0x27a)]['t']('collaboration-client-ui.permission.title'),'content':this['_localeService']['t'](_0x5b1212(0x1ff)),'type':_0x5b1212(0x297),'duration':0x0}),_0x16d118['id']===e[_0x5b1212(0x206)][_0x5b1212(0x220)]&&this[_0x5b1212(0x2bf)][_0x5b1212(0x9f)]({'title':this[_0x5b1212(0x27a)]['t'](_0x5b1212(0x2d5)),'content':this[_0x5b1212(0x27a)]['t']('collaboration-client-ui.conflict.content'),'type':_0x5b1212(0x297),'duration':0x0}),_0x16d118['id']===e[_0x5b1212(0x206)][_0x5b1212(0x2b4)]&&this[_0x5b1212(0x276)]['show']({'type':a[_0x5b1212(0xf7)]['Warning'],'content':this[_0x5b1212(0x27a)]['t'](_0x16d118[_0x5b1212(0x125)]||'')}),_0x16d118['id']===e[_0x5b1212(0x206)][_0x5b1212(0xb0)]&&this['_messageService'][_0x5b1212(0x9f)]({'type':a['MessageType'][_0x5b1212(0xca)],'content':this[_0x5b1212(0x27a)]['t'](_0x5b1212(0x2f0))}),_0x16d118['id']===e[_0x5b1212(0x206)][_0x5b1212(0x1e7)]&&this[_0x5b1212(0x276)][_0x5b1212(0x9f)]({'type':a['MessageType'][_0x5b1212(0x21e)],'content':this[_0x5b1212(0x27a)]['t'](_0x5b1212(0x1bc))}),_0x16d118['id']===e['CollaborationUIEventId'][_0x5b1212(0x11c)]&&this[_0x5b1212(0x276)][_0x5b1212(0x9f)]({'type':a['MessageType']['Error'],'content':this[_0x5b1212(0x27a)]['t'](_0x5b1212(0x35d))});}));}};H=w([C(0x0,n[_0x3f925b(0x2c7)]),C(0x1,e['ILocalCacheService']),C(0x2,(0x0,t[_0x3f925b(0x2de)])(e[_0x3f925b(0x317)])),C(0x3,n[_0x3f925b(0x247)]),C(0x4,n[_0x3f925b(0x26d)]),C(0x5,(0x0,t[_0x3f925b(0x2de)])(t[_0x3f925b(0x115)]))],H);let U=class{constructor(_0x3f39ed,_0x1e31ad){const _0x52cedf=_0x3f925b;this['_transformService']=_0x3f39ed,this[_0x52cedf(0x32c)]=_0x1e31ad;}[_0x3f925b(0x109)](_0x3ae00d){const _0x50f6b2=_0x3f925b;this[_0x50f6b2(0x20a)](_0x3ae00d),this[_0x50f6b2(0x195)](_0x3ae00d);}[_0x3f925b(0x108)](_0x2a4750){const _0xd44cf=_0x3f925b;let {unitID:_0x237722}=_0x2a4750,{redoCache:_0x4e683d}=this[_0xd44cf(0x32c)][_0xd44cf(0x285)](_0x237722)[_0xd44cf(0x231)](p[_0xd44cf(0x294)])[_0xd44cf(0x133)]();if(_0x4e683d['length']===0x0)return _0x2a4750;let _0x280a26=t[_0xd44cf(0x218)][_0xd44cf(0x1b2)](_0x2a4750[_0xd44cf(0xa6)][0x0]);for(let _0x57998c=0x0;_0x57998c<_0x4e683d[_0xd44cf(0x165)];_0x57998c++){let _0x59c25d={'id':'doc.mutation.rich-text-editing','params':{..._0x4e683d[_0x57998c]}},_0x2151da=this[_0xd44cf(0x26e)][_0xd44cf(0x155)](_0x280a26,_0x59c25d,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x2151da))throw _0x2151da[_0xd44cf(0x297)];_0x280a26=_0x2151da[_0xd44cf(0x149)];}return{...t[_0xd44cf(0x218)]['deepClone'](_0x2a4750),'mutations':[_0x280a26]};}[_0x3f925b(0x20a)](_0x255fbf){const _0x23c24c=_0x3f925b;let {unitID:_0xb69dbf}=_0x255fbf,_0x307278=this[_0x23c24c(0x32c)][_0x23c24c(0x285)](_0xb69dbf)[_0x23c24c(0x231)](p[_0x23c24c(0x294)]),{undoCache:_0x20f0db,redoCache:_0x47d476}=_0x307278['getUndoRedoMutationParamsCache']();if(_0x20f0db[_0x23c24c(0x165)]===0x0||_0x47d476[_0x23c24c(0x165)]===0x0)return;let _0x1a4f34=[],_0x25b419=[],_0x52c276=t['Tools'][_0x23c24c(0x1b2)](_0x255fbf[_0x23c24c(0xa6)][0x0]),_0x3b10d4=t[_0x23c24c(0x218)][_0x23c24c(0x1b2)](_0x255fbf['mutations'][0x0]);for(let _0xd54b6e=_0x20f0db['length']-0x1;_0xd54b6e>=0x0;_0xd54b6e--){let _0x3a7142={'id':_0x23c24c(0x10f),'params':{..._0x20f0db[_0xd54b6e]}},_0x2bd070={'id':'doc.mutation.rich-text-editing','params':{..._0x47d476[_0xd54b6e]}},_0x19c863=this[_0x23c24c(0x26e)]['transformMutation'](_0x52c276,_0x3a7142,!0x1),_0x5d295a=this[_0x23c24c(0x26e)]['transformMutation'](_0x3b10d4,_0x2bd070,!0x1);if((0x0,h[_0x23c24c(0x24f)])(_0x19c863))throw _0x19c863[_0x23c24c(0x297)];if((0x0,h[_0x23c24c(0x24f)])(_0x5d295a))throw _0x5d295a[_0x23c24c(0x297)];_0x1a4f34['unshift'](_0x19c863[_0x23c24c(0x1cb)][_0x23c24c(0x33a)]),_0x25b419['unshift'](_0x5d295a[_0x23c24c(0x1cb)][_0x23c24c(0x33a)]),_0x52c276=_0x19c863[_0x23c24c(0x149)],_0x3b10d4=_0x5d295a[_0x23c24c(0x149)];}_0x307278['setUndoRedoMutationParamsCache']({'undoCache':_0x1a4f34,'redoCache':_0x25b419});}['_transformPreviousActiveRange'](_0x5d7200){const _0xbf7d32=_0x3f925b;let {unitID:_0x5e458f}=_0x5d7200,_0x5dcdda=this[_0xbf7d32(0x32c)][_0xbf7d32(0x285)](_0x5e458f)['with'](p[_0xbf7d32(0x294)]),_0x281be4=_0x5dcdda['getActiveRange']();if(_0x281be4==null)return;let _0x3fe244=[{'id':_0xbf7d32(0x10f),'params':{'unitId':_0x5d7200['unitID'],'actions':null,'textRanges':[_0x281be4]}}],_0x285e2e=this[_0xbf7d32(0x26e)][_0xbf7d32(0x2cd)](_0x5d7200,_0x3fe244);if(!(0x0,h[_0xbf7d32(0x28f)])(_0x285e2e))throw _0x285e2e['error'];let _0x3def42=_0x285e2e['m2Prime'][0x0][_0xbf7d32(0x33a)][_0xbf7d32(0x25b)];Array[_0xbf7d32(0x328)](_0x3def42)&&_0x3def42[_0xbf7d32(0x165)]&&_0x5dcdda['setActiveRange'](_0x3def42[0x0]);}};U=w([C(0x0,h[_0x3f925b(0x1ee)]),C(0x1,d['IRenderManagerService'])],U);let W=class{constructor(_0xef90ab,_0x5338a7,_0x492b75){const _0x58c401=_0x3f925b;this[_0x58c401(0x1fc)]=_0xef90ab,this['_transformService']=_0x5338a7,this[_0x58c401(0x166)]=_0x492b75;}[_0x3f925b(0x222)](_0x3aedf4){const _0x46fe37=_0x3f925b;this[_0x46fe37(0x250)](_0x3aedf4);}[_0x3f925b(0x108)](_0x14bad4){const _0x117cf1=_0x3f925b;let {unitID:_0x201b18}=_0x14bad4,{collaboration:_0x2e9b07}=this['_docStateChangeManagerService'][_0x117cf1(0x354)](_0x201b18);if(_0x2e9b07[_0x117cf1(0x165)]===0x0)return _0x14bad4;let _0x1ce254=t[_0x117cf1(0x218)][_0x117cf1(0x1b2)](_0x14bad4[_0x117cf1(0xa6)][0x0]);for(let _0x4a34e7=0x0;_0x4a34e7<_0x2e9b07[_0x117cf1(0x165)];_0x4a34e7++){let _0x579f51={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e9b07[_0x4a34e7][_0x117cf1(0x16f)],..._0x2e9b07[_0x4a34e7][_0x117cf1(0x22d)]}},_0x263c21=this[_0x117cf1(0x26e)][_0x117cf1(0x155)](_0x1ce254,_0x579f51,!0x1);if((0x0,h[_0x117cf1(0x24f)])(_0x263c21))throw _0x263c21[_0x117cf1(0x297)];_0x1ce254=_0x263c21[_0x117cf1(0x149)];}return{...t['Tools'][_0x117cf1(0x1b2)](_0x14bad4),'mutations':[_0x1ce254]};}[_0x3f925b(0x250)](_0x2a5071){const _0xc08d67=_0x3f925b;let {unitID:_0x35cac9}=_0x2a5071,{history:_0x35b7eb,collaboration:_0x252ceb}=this[_0xc08d67(0x166)][_0xc08d67(0x354)](_0x35cac9);if(_0x35b7eb[_0xc08d67(0x165)]===0x0&&_0x252ceb['length']===0x0)return;let _0x158007=[],_0x45391d=[],_0x115fc2=t[_0xc08d67(0x218)][_0xc08d67(0x1b2)](_0x2a5071[_0xc08d67(0xa6)][0x0]),_0xcb865b=t['Tools'][_0xc08d67(0x1b2)](_0x2a5071[_0xc08d67(0xa6)][0x0]);for(let _0x27c1f8=_0x35b7eb[_0xc08d67(0x165)]-0x1;_0x27c1f8>=0x0;_0x27c1f8--){let _0x3757fb={'id':_0xc08d67(0x10f),'params':{'unitId':_0x35b7eb[_0x27c1f8][_0xc08d67(0x16f)],..._0x35b7eb[_0x27c1f8][_0xc08d67(0x292)]}},_0x2e61cd={'id':_0xc08d67(0x10f),'params':{'unitId':_0x35b7eb[_0x27c1f8][_0xc08d67(0x16f)],..._0x35b7eb[_0x27c1f8][_0xc08d67(0x22d)]}},_0x287a22=this[_0xc08d67(0x26e)]['transformMutation'](_0x115fc2,_0x3757fb,!0x1),_0x174378=this['_transformService']['transformMutation'](_0xcb865b,_0x2e61cd,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x287a22))throw _0x287a22[_0xc08d67(0x297)];if((0x0,h[_0xc08d67(0x24f)])(_0x174378))throw _0x174378['error'];_0x158007[_0xc08d67(0x2c3)]({..._0x35b7eb[_0x27c1f8],'undoState':_0x287a22[_0xc08d67(0x1cb)][_0xc08d67(0x33a)],'redoState':_0x174378[_0xc08d67(0x1cb)][_0xc08d67(0x33a)]}),_0x115fc2=_0x287a22[_0xc08d67(0x149)],_0xcb865b=_0x174378[_0xc08d67(0x149)];}_0x115fc2=t[_0xc08d67(0x218)][_0xc08d67(0x1b2)](_0x2a5071[_0xc08d67(0xa6)][0x0]),_0xcb865b=t[_0xc08d67(0x218)][_0xc08d67(0x1b2)](_0x2a5071[_0xc08d67(0xa6)][0x0]);for(let _0x49fcf0=_0x252ceb[_0xc08d67(0x165)]-0x1;_0x49fcf0>=0x0;_0x49fcf0--){let _0x350d09={'id':_0xc08d67(0x10f),'params':{'unitId':_0x252ceb[_0x49fcf0]['unitId'],..._0x252ceb[_0x49fcf0][_0xc08d67(0x292)]}},_0x3474c2={'id':_0xc08d67(0x10f),'params':{'unitId':_0x252ceb[_0x49fcf0][_0xc08d67(0x16f)],..._0x252ceb[_0x49fcf0][_0xc08d67(0x22d)]}},_0x3c0755=this[_0xc08d67(0x26e)][_0xc08d67(0x155)](_0x115fc2,_0x350d09,!0x1),_0x2f2215=this['_transformService'][_0xc08d67(0x155)](_0xcb865b,_0x3474c2,!0x1);if((0x0,h[_0xc08d67(0x24f)])(_0x3c0755))throw _0x3c0755[_0xc08d67(0x297)];if((0x0,h['isTransformMutationFailure'])(_0x2f2215))throw _0x2f2215[_0xc08d67(0x297)];_0x45391d[_0xc08d67(0x2c3)]({..._0x252ceb[_0x49fcf0],'undoState':_0x3c0755[_0xc08d67(0x1cb)][_0xc08d67(0x33a)],'redoState':_0x2f2215[_0xc08d67(0x1cb)]['params']}),_0x115fc2=_0x3c0755[_0xc08d67(0x149)],_0xcb865b=_0x2f2215[_0xc08d67(0x149)];}this['_docStateChangeManagerService']['setStateCache'](_0x35cac9,{'history':_0x158007,'collaboration':_0x45391d});}};W=w([C(0x0,(0x0,t[_0x3f925b(0x2de)])(t['Injector'])),C(0x1,h[_0x3f925b(0x1ee)]),C(0x2,(0x0,t[_0x3f925b(0x2de)])(g[_0x3f925b(0x256)]))],W);let G=class{constructor(_0x3ab8d4,_0x57eb92){this['_injector']=_0x3ab8d4,this['_transformService']=_0x57eb92;}['transformSelections'](_0x39e7f0){const _0x20bd75=_0x3f925b;var _0x724c2d;let _0x1ddc03=this[_0x20bd75(0x1fc)][_0x20bd75(0x116)](g[_0x20bd75(0x1f1)]),_0x389f46=(_0x724c2d=_0x1ddc03['getDocRanges']())==null?[]:_0x724c2d;if(_0x389f46[_0x20bd75(0x165)]===0x0)return;let _0x4144a9=_0x39e7f0[_0x20bd75(0x17d)],_0x3a0dc3=[{'id':_0x20bd75(0x10f),'params':{'unitId':_0x4144a9,'actions':null,'textRanges':_0x389f46}}],_0x1e9bcb=this[_0x20bd75(0x26e)][_0x20bd75(0x2cd)](_0x39e7f0,_0x3a0dc3);if(!(0x0,h[_0x20bd75(0x28f)])(_0x1e9bcb))throw _0x1e9bcb[_0x20bd75(0x297)];let _0x5adf90=_0x1e9bcb[_0x20bd75(0x1cb)][0x0][_0x20bd75(0x33a)][_0x20bd75(0x25b)];Array[_0x20bd75(0x328)](_0x5adf90)&&_0x5adf90[_0x20bd75(0x165)]&&_0x1ddc03[_0x20bd75(0x192)](_0x5adf90,{'unitId':_0x4144a9,'subUnitId':_0x4144a9},!0x1);}};G=w([C(0x0,(0x0,t[_0x3f925b(0x2de)])(t[_0x3f925b(0xcb)])),C(0x1,h[_0x3f925b(0x1ee)])],G);let K=class extends t[_0x3f925b(0x318)]{constructor(_0x47960b,_0x1795f4,_0x2a1d36,_0x42765d,_0x5d309d,_0x214649,_0x2b1e15){const _0x5eee40=_0x3f925b;super(),this['_collaborationController']=_0x47960b,this[_0x5eee40(0x2db)]=_0x1795f4,this[_0x5eee40(0x1ce)]=_0x2a1d36,this[_0x5eee40(0x28d)]=_0x42765d,this[_0x5eee40(0x28e)]=_0x5d309d,this[_0x5eee40(0x276)]=_0x214649,this[_0x5eee40(0x27a)]=_0x2b1e15,S(this,_0x5eee40(0x329),new r[(_0x5eee40(0x14a))](e[_0x5eee40(0xfb)]['NOT_COLLAB'])),this[_0x5eee40(0x2bc)]();}[_0x3f925b(0x2bc)](){const _0x154815=_0x3f925b;this[_0x154815(0x1da)](this[_0x154815(0x1db)][_0x154815(0x148)][_0x154815(0x191)](_0x42d267=>{const _0x39e79c=_0x154815;_0x42d267 instanceof e[_0x39e79c(0xa4)]&&_0x42d267[_0x39e79c(0x15c)]({'onTransformIME':_0x49dacb=>this['_docTransformIMECacheService'][_0x39e79c(0x109)](_0x49dacb),'onTransformState':_0x3314de=>this[_0x39e79c(0x1ce)][_0x39e79c(0x222)](_0x3314de),'onTransformSelections':_0x373c31=>this[_0x39e79c(0x28d)][_0x39e79c(0x127)](_0x373c31),'onSyncEditingCollabCursor':_0xe964eb=>this['_docSyncEditingCollabCursorService'][_0x39e79c(0xe9)](_0xe964eb),'onTransformRemoteChangesetByIMECache':_0x15feff=>this[_0x39e79c(0x2db)][_0x39e79c(0x108)](_0x15feff),'onTransformRemoteChangesetByStateCache':_0x314270=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x314270)});}));}};K=w([C(0x0,(0x0,t['Inject'])(e[_0x3f925b(0x1d5)])),C(0x1,(0x0,t[_0x3f925b(0x2de)])(U)),C(0x2,(0x0,t[_0x3f925b(0x2de)])(W)),C(0x3,(0x0,t[_0x3f925b(0x2de)])(G)),C(0x4,(0x0,t[_0x3f925b(0x2de)])(A)),C(0x5,n['IMessageService']),C(0x6,(0x0,t[_0x3f925b(0x2de)])(t[_0x3f925b(0x115)]))],K);let q=class extends t['Disposable']{constructor(_0x173261,_0x32ddaf,_0x1cdde7,_0x1e6c3f){const _0x164e61=_0x3f925b;super(),this[_0x164e61(0x1fc)]=_0x173261,this['_httpService']=_0x32ddaf,this['_logService']=_0x1cdde7,this[_0x164e61(0x135)]=_0x1e6c3f,S(this,_0x164e61(0x262),void 0x0),this[_0x164e61(0x237)]();}[_0x3f925b(0x237)](){const _0x475fe5=_0x3f925b;this[_0x475fe5(0x18e)](),this['_initUnhandledRejectionListener'](),this[_0x475fe5(0x15f)](),this[_0x475fe5(0xa3)]();}['_initUserListener'](){const _0x14d465=_0x3f925b;this[_0x14d465(0x1da)](this[_0x14d465(0x135)][_0x14d465(0x31e)][_0x14d465(0x191)](_0x1423f2=>{const _0x180ef0=_0x14d465;this[_0x180ef0(0x262)]=_0x1423f2==null?void 0x0:_0x1423f2[_0x180ef0(0x196)];}));}[_0x3f925b(0x18e)](){const _0x32a801=_0x3f925b;let _0x6b41ef=_0x36261d=>{const _0x28210b=_0x43e1;var _0x31f6e4;this[_0x28210b(0x1fe)]('error',_0x28210b(0x136)+_0x36261d[_0x28210b(0xeb)]+_0x28210b(0x28a)+_0x36261d['filename']+':'+_0x36261d[_0x28210b(0x1c4)]+':'+_0x36261d[_0x28210b(0x304)]+'\x0a'+(((_0x31f6e4=_0x36261d[_0x28210b(0x297)])==null?void 0x0:_0x31f6e4[_0x28210b(0x9b)])||''));};window[_0x32a801(0x2ae)](_0x32a801(0x297),_0x6b41ef),this[_0x32a801(0x1da)](()=>{const _0x3d6593=_0x32a801;window[_0x3d6593(0x17e)](_0x3d6593(0x297),_0x6b41ef);});}['_initUnhandledRejectionListener'](){const _0x4c5050=_0x3f925b;let _0x9bcbb4=_0x35adbf=>{const _0x59b2b9=_0x43e1;this['_uploadLog']('error',_0x59b2b9(0x193)+_0x35adbf[_0x59b2b9(0x208)]);};window[_0x4c5050(0x2ae)]('unhandledrejection',_0x9bcbb4),this[_0x4c5050(0x1da)](()=>{window['removeEventListener']('unhandledrejection',_0x9bcbb4);});}['_monkeyPatchLogService'](){const _0x1b2c9b=_0x3f925b;let _0x2a3e15=this['_logService'][_0x1b2c9b(0x297)][_0x1b2c9b(0x2b8)](this[_0x1b2c9b(0x32a)]);this[_0x1b2c9b(0x32a)]['error']=(..._0x3ae026)=>{const _0x1868a9=_0x1b2c9b;let _0x18c8cf=_0x3ae026[_0x1868a9(0x33f)](_0xbd9ddf=>_0xbd9ddf instanceof Error?_0xbd9ddf[_0x1868a9(0xeb)]+'\x0a'+_0xbd9ddf[_0x1868a9(0x9b)]:String(_0xbd9ddf))['join']('\x20');this[_0x1868a9(0x1fe)](_0x1868a9(0x297),_0x1868a9(0x1c7)+_0x18c8cf),_0x2a3e15(..._0x3ae026);},this[_0x1b2c9b(0x1da)](()=>{const _0x375d01=_0x1b2c9b;this[_0x375d01(0x32a)][_0x375d01(0x297)]=_0x2a3e15;});}[_0x3f925b(0x1fe)](_0x2ae047,_0x26d560){const _0x3d281b=_0x3f925b;try{let _0x1f23b7={'userId':this[_0x3d281b(0x262)],'logLabel':_0x2ae047,'content':_0x26d560};this[_0x3d281b(0x1f9)][_0x3d281b(0x343)](_0x3d281b(0x290),{'body':_0x1f23b7})['catch'](()=>{});}catch{}}};q=w([C(0x0,(0x0,t[_0x3f925b(0x2de)])(t['Injector'])),C(0x1,(0x0,t[_0x3f925b(0x2de)])(f['HTTPService'])),C(0x2,t[_0x3f925b(0x183)]),C(0x3,(0x0,t[_0x3f925b(0x2de)])(e[_0x3f925b(0x2a6)]))],q);function ve(_0x21de95){const _0x3185cd=_0x3f925b;var _0x55999b,_0x5ab7eb;let _0x3f2322=(_0x55999b=_0x21de95[_0x3185cd(0xed)])==null?void 0x0:_0x55999b[_0x3185cd(0x13a)],_0x34a45c=((_0x5ab7eb=_0x21de95[_0x3185cd(0xed)])==null?void 0x0:_0x5ab7eb[_0x3185cd(0x106)])||0x0;return _0x3f2322===_['FormulaExecuteStageType'][_0x3185cd(0xad)]&&_0x34a45c>0x0;}function ye(_0x4e0db9){const _0x4fccda=_0x3f925b;return _0x4e0db9[_0x4fccda(0x34b)]===_[_0x4fccda(0x2ba)][_0x4fccda(0x1d2)];}let J=class extends t[_0x3f925b(0x318)]{constructor(_0x325563,_0xc7bccf,_0x4bc11b,_0x31e39f,_0xef5f7c,_0xb9253e,_0x5aae6e){const _0x167b76=_0x3f925b;super(),this[_0x167b76(0x276)]=_0x325563,this[_0x167b76(0x217)]=_0xc7bccf,this['_configService']=_0x4bc11b,this[_0x167b76(0x1f9)]=_0x31e39f,this['_univerInstanceService']=_0xef5f7c,this[_0x167b76(0x32a)]=_0xb9253e,this[_0x167b76(0x27a)]=_0x5aae6e,S(this,_0x167b76(0x122),null),S(this,_0x167b76(0xd0),0x0),S(this,_0x167b76(0x2c1),0x0),S(this,_0x167b76(0x1f6),[]),S(this,_0x167b76(0x313),0x0),this['_initCommandInterceptor']();}[_0x3f925b(0x1a8)](){const _0x283187=_0x3f925b;this[_0x283187(0x1da)](this['_commandService'][_0x283187(0xf2)]((_0x496007,_0xa64b)=>{const _0x260f1f=_0x283187;var _0x167d64;if(_0x496007['id']!==_['SetFormulaCalculationStartMutation']['id'])return;let _0x1c2de0=_0x496007['params'];if(this[_0x260f1f(0x24d)]((_0x167d64=_0x1c2de0['dirtyRanges'])==null?[]:_0x167d64)&&!this[_0x260f1f(0x16d)]())throw this[_0x260f1f(0x9a)](_0x496007,_0xa64b),this[_0x260f1f(0x100)](),new t[(_0x260f1f(0x2cc))]();})),this[_0x283187(0x1da)](this[_0x283187(0x217)][_0x283187(0x30e)]((_0x3cbf05,_0x56ad2c)=>{const _0x4a852a=_0x283187;if(_0x3cbf05['id']!==_[_0x4a852a(0x21c)]['id'])return;let _0x3e4397=_0x3cbf05['params'];if(ve(_0x3e4397)){let _0x5bc5a0=(0x0,t[_0x4a852a(0x1fa)])();this['_taskIds'][_0x4a852a(0x267)](_0x5bc5a0),this[_0x4a852a(0x26c)](_0x5bc5a0);}else{if(ye(_0x3e4397)&&this['_taskIds'][_0x4a852a(0x165)]>0x0){let _0x1c9e79=this['_taskIds'][_0x4a852a(0x1c9)]();this[_0x4a852a(0x160)](_0x1c9e79);}}}));}[_0x3f925b(0x171)](){const _0x17c299=_0x3f925b;super[_0x17c299(0x171)](),this[_0x17c299(0x25f)](),this[_0x17c299(0x1f6)]=[],this[_0x17c299(0x2c1)]=0x0,this[_0x17c299(0xd0)]=0x0,this[_0x17c299(0x313)]=0x0;}async[_0x3f925b(0x9a)](_0x45dec2,_0x57db1b){const _0x15661f=_0x3f925b;for(let _0x8d05a6=0x0;_0x8d05a6<0x1e;_0x8d05a6++)try{if(await this[_0x15661f(0x117)](),this[_0x15661f(0x16d)]()){this[_0x15661f(0x10a)](_0x45dec2,_0x57db1b),this[_0x15661f(0x276)][_0x15661f(0x9f)]({'content':this['_localeService']['t'](_0x15661f(0x360)),'type':a['MessageType'][_0x15661f(0x2d6)]});return;}await new Promise(_0x35f057=>{const _0x704340=_0x15661f;this[_0x704340(0x122)]=window[_0x704340(0x9c)](_0x35f057,0x3e8);});}catch(_0x36a92f){this[_0x15661f(0x32a)]['error'](_0x36a92f);}this[_0x15661f(0x276)][_0x15661f(0x9f)]({'content':this[_0x15661f(0x27a)]['t'](_0x15661f(0x23a)),'type':a['MessageType'][_0x15661f(0x21e)]});}['_applyCommand'](_0x55b3ec,_0x385e7e){const _0x35525e=_0x3f925b;try{this['_commandService'][_0x35525e(0xc3)](_0x55b3ec['id'],_0x55b3ec['params'],_0x385e7e);}catch(_0xa4c765){this['_logService'][_0x35525e(0x297)](_0xa4c765);}}['_setFormulaLimitStatus'](_0x2c8b20,_0x222925){const _0xd545e1=_0x3f925b;_0x222925<this[_0xd545e1(0x313)]||(this[_0xd545e1(0x313)]=_0x222925,this[_0xd545e1(0xd0)]=Number[_0xd545e1(0xab)](_0x2c8b20[_0xd545e1(0x153)]),this[_0xd545e1(0x2c1)]=Number['parseInt'](_0x2c8b20[_0xd545e1(0x19e)]));}async[_0x3f925b(0x26c)](_0x3bdafb){const _0x2a97a1=_0x3f925b;let _0x12f813=Date['now']();try{var _0x38da30,_0x393a0a;let _0x4da3dd=((_0x38da30=this['_configService'][_0x2a97a1(0x19a)](e[_0x2a97a1(0x35a)]))==null?void 0x0:_0x38da30[_0x2a97a1(0x225)])||_0x2a97a1(0x2a2),_0x37323c=(await this[_0x2a97a1(0x1f9)][_0x2a97a1(0x343)](_0x4da3dd,{'body':JSON[_0x2a97a1(0x177)]({'taskId':_0x3bdafb})}))[_0x2a97a1(0x18c)];if(((_0x393a0a=_0x37323c[_0x2a97a1(0x297)])==null?void 0x0:_0x393a0a['code'])!==b[_0x2a97a1(0xe3)]['OK'])return;this[_0x2a97a1(0x167)](_0x37323c[_0x2a97a1(0x1ba)],_0x12f813);}catch(_0x5402b6){this[_0x2a97a1(0x32a)][_0x2a97a1(0x297)](_0x5402b6);}}async['_getFormulaLimitStatus'](_0x4cc622){const _0x3229d6=_0x3f925b;let _0x368e5c=Date[_0x3229d6(0x311)]();try{var _0x1f6bf2,_0x3997b9;let _0x3d9dfa=((_0x1f6bf2=this['_configService']['getConfig'](e[_0x3229d6(0x35a)]))==null?void 0x0:_0x1f6bf2[_0x3229d6(0x269)])||_0x3229d6(0x163),_0x3937b3=_0x4cc622?_0x3d9dfa+_0x3229d6(0x10d)+encodeURIComponent(_0x4cc622):_0x3d9dfa,_0x4c13c9=(await this[_0x3229d6(0x1f9)][_0x3229d6(0x116)](_0x3937b3))['body'];if(((_0x3997b9=_0x4c13c9[_0x3229d6(0x297)])==null?void 0x0:_0x3997b9['code'])!==b[_0x3229d6(0xe3)]['OK'])return;this[_0x3229d6(0x167)](_0x4c13c9[_0x3229d6(0x1ba)],_0x368e5c);}catch(_0x3c4fd6){this['_logService'][_0x3229d6(0x297)](_0x3c4fd6);}}async['_releaseCalculationLimit'](_0x5f09a0){const _0x4c9a26=_0x3f925b;let _0x29e57c=Date[_0x4c9a26(0x311)]();try{var _0x29ef89,_0x1320f3;let _0x909c8=((_0x29ef89=this[_0x4c9a26(0x2ee)][_0x4c9a26(0x19a)](e[_0x4c9a26(0x35a)]))==null?void 0x0:_0x29ef89[_0x4c9a26(0x251)])||_0x4c9a26(0xc6),_0x2da0c0=(await this[_0x4c9a26(0x1f9)][_0x4c9a26(0x343)](_0x909c8,{'body':JSON[_0x4c9a26(0x177)]({'taskId':_0x5f09a0})}))[_0x4c9a26(0x18c)];if(((_0x1320f3=_0x2da0c0['error'])==null?void 0x0:_0x1320f3[_0x4c9a26(0x2f4)])!==b[_0x4c9a26(0xe3)]['OK'])return;this['_setFormulaLimitStatus'](_0x2da0c0[_0x4c9a26(0x1ba)],_0x29e57c);}catch(_0x180108){this[_0x4c9a26(0x32a)][_0x4c9a26(0x297)](_0x180108);}}[_0x3f925b(0x16d)](){const _0x290941=_0x3f925b;return this[_0x290941(0xd0)]===0x0?!0x0:this[_0x290941(0xd0)]-this[_0x290941(0x2c1)]>0x0;}[_0x3f925b(0x25f)](){const _0x7bc0e5=_0x3f925b;this[_0x7bc0e5(0x122)]&&(clearTimeout(this['_pollingInterval']),this[_0x7bc0e5(0x122)]=null);}[_0x3f925b(0x100)](){const _0x1be094=_0x3f925b;this['_messageService'][_0x1be094(0x9f)]({'content':this[_0x1be094(0x27a)]['t']('collaboration-client-ui.formula.calculation.waiting'),'type':a[_0x1be094(0xf7)][_0x1be094(0x101)]});}[_0x3f925b(0x24d)](_0x1abd39){const _0x612bab=_0x3f925b;for(let _0x5bbca5 of _0x1abd39){let {unitId:_0x4c7005,sheetId:_0x25b269,range:_0x51cdb1}=_0x5bbca5,_0x383046=this[_0x612bab(0xd4)]['getUnit'](_0x4c7005);if(!_0x383046)continue;let _0x5b8b0a=_0x383046[_0x612bab(0xde)](_0x25b269);if(!_0x5b8b0a)continue;let _0x283765=_0x5b8b0a['getCellMatrix']();for(let _0x4f9d86=_0x51cdb1[_0x612bab(0x2dc)];_0x4f9d86<=_0x51cdb1[_0x612bab(0x215)];_0x4f9d86++)for(let _0xea4c43=_0x51cdb1[_0x612bab(0x2ef)];_0xea4c43<=_0x51cdb1['endColumn'];_0xea4c43++){let _0x537ba6=_0x283765[_0x612bab(0xc5)](_0x4f9d86,_0xea4c43);if(_0x537ba6&&((0x0,t['isFormulaString'])(_0x537ba6['f'])||(0x0,t[_0x612bab(0xba)])(_0x537ba6['si'])))return!0x0;}}return!0x1;}};J=w([C(0x0,(0x0,t[_0x3f925b(0x2de)])(n[_0x3f925b(0x247)])),C(0x1,t[_0x3f925b(0x1ea)]),C(0x2,t[_0x3f925b(0x2cf)]),C(0x3,(0x0,t['Inject'])(f[_0x3f925b(0x2f8)])),C(0x4,t['IUniverInstanceService']),C(0x5,t[_0x3f925b(0x183)]),C(0x6,(0x0,t[_0x3f925b(0x2de)])(t['LocaleService']))],J);let Y=class extends t[_0x3f925b(0x318)]{constructor(_0x1d8d0e,_0x4af9a6,_0x1b45e5){const _0x267aa1=_0x3f925b;super(),this[_0x267aa1(0x2ee)]=_0x1d8d0e,this[_0x267aa1(0x2a5)]=_0x4af9a6,this[_0x267aa1(0x2e3)]=_0x1b45e5,S(this,_0x267aa1(0x1c3),new Map()),S(this,_0x267aa1(0x272),new Map()),S(this,_0x267aa1(0x338),!0x1);}[_0x3f925b(0xc0)](){const _0x367df6=_0x3f925b;this[_0x367df6(0x338)]=!0x0;}[_0x3f925b(0x200)](){const _0x2c8ab7=_0x3f925b;this[_0x2c8ab7(0x338)]=!0x1;}get[_0x3f925b(0x14e)](){const _0x1624cb=_0x3f925b;return this[_0x1624cb(0x272)];}[_0x3f925b(0x171)](){const _0x47bb93=_0x3f925b;this[_0x47bb93(0x20f)]()[_0x47bb93(0x351)](()=>super['dispose']());}async['loadOfflineData'](_0x1094c0){const _0x584881=_0x3f925b;return this[_0x584881(0x338)]?null:this[_0x584881(0x2a5)][_0x584881(0x340)]((0x0,e[_0x584881(0x123)])(_0x1094c0));}async[_0x3f925b(0xbb)](_0x4043fa,_0x271196){const _0x65c7f2=_0x3f925b;return!!this[_0x65c7f2(0x2a5)]['setItem']((0x0,e['getLocalCacheKey'])(_0x4043fa),_0x271196);}async[_0x3f925b(0x22b)](_0x3020af,_0x22c269){const _0x390ba6=_0x3f925b;var _0x26eb12;let _0x55aaae=(_0x26eb12=this[_0x390ba6(0x1c3)]['get'](_0x3020af))==null?await this['_localStorageService']['getItem']((0x0,e[_0x390ba6(0x123)])(_0x3020af)):_0x26eb12;if(!_0x55aaae)return;let _0x3d1d8c=Date['now'](),_0x2881cc=new Date(_0x3d1d8c)[_0x390ba6(0xe5)]();await this[_0x390ba6(0x2a5)]['setItem']((0x0,e[_0x390ba6(0x123)])(_0x3020af)+':backup:'+_0x3d1d8c,{'reason':_0x22c269,'createdAt':_0x2881cc,'data':_0x55aaae});}[_0x3f925b(0x20e)](_0x2f7361,_0x38cb62,_0xd4a11c,_0x1e046d){const _0xec0a55=_0x3f925b;let _0x401d65=this[_0xec0a55(0x2e3)][_0xec0a55(0x16c)](_0x2f7361);this[_0xec0a55(0x1c3)]['set'](_0x2f7361,{'unitID':_0x2f7361,'type':_0x38cb62,'awaitingChangeset':_0xd4a11c,'mutations':_0x1e046d,'rev':_0x401d65}),this[_0xec0a55(0x272)][_0xec0a55(0x355)](_0x2f7361)||this[_0xec0a55(0xfa)](_0x2f7361);}[_0x3f925b(0xfa)](_0x36e168){const _0x1ee2e5=_0x3f925b;let _0x2d8ee1=this[_0x1ee2e5(0x249)]();_0x2d8ee1===0x0?this['_saveCache'](_0x36e168):this[_0x1ee2e5(0x272)][_0x1ee2e5(0x128)](_0x36e168,setTimeout(()=>this[_0x1ee2e5(0x156)](_0x36e168),_0x2d8ee1));}[_0x3f925b(0x249)](){const _0x1ec2d6=_0x3f925b;var _0x7f63d3;return(_0x7f63d3=this['_configService'][_0x1ec2d6(0x19a)](e['LOCAL_CACHE_INTERVAL_KEY']))==null?e[_0x1ec2d6(0x24e)]:_0x7f63d3;}['_saveCache'](_0x548f30){const _0x50370e=_0x3f925b;let _0x1177c4=this[_0x50370e(0x272)][_0x50370e(0x116)](_0x548f30);return _0x1177c4!==void 0x0&&window[_0x50370e(0x14f)](_0x1177c4),this[_0x50370e(0x2a5)]['setItem']((0x0,e[_0x50370e(0x123)])(_0x548f30),this[_0x50370e(0x1c3)][_0x50370e(0x116)](_0x548f30))[_0x50370e(0x351)](()=>this[_0x50370e(0x272)][_0x50370e(0x19d)](_0x548f30));}async[_0x3f925b(0x20f)](){const _0x717a1e=_0x3f925b;let _0x4e9dfa=[];this[_0x717a1e(0x272)][_0x717a1e(0xbd)]((_0x457a31,_0x2ec7fc)=>{const _0x37a138=_0x717a1e;window[_0x37a138(0x14f)](_0x457a31),_0x4e9dfa['push'](this[_0x37a138(0x156)](_0x2ec7fc)[_0x37a138(0x351)](()=>{const _0x570ea4=_0x37a138;this[_0x570ea4(0x272)][_0x570ea4(0x19d)](_0x2ec7fc);}));}),await Promise[_0x717a1e(0x130)](_0x4e9dfa);}};Y=w([C(0x0,t[_0x3f925b(0x2cf)]),C(0x1,t['ILocalStorageService']),C(0x2,(0x0,t[_0x3f925b(0x2de)])(h[_0x3f925b(0x35f)]))],Y);var X=class extends t[_0x3f925b(0x33e)]{constructor(){const _0x3e38a5=_0x3f925b;super(),S(this,_0x3e38a5(0x29e),void 0x0),this[_0x3e38a5(0x29e)]=(0x0,r[_0x3e38a5(0x288)])(window,_0x3e38a5(0x2fe))[_0x3e38a5(0xa2)]((0x0,r[_0x3e38a5(0xfd)])(this[_0x3e38a5(0x2d2)]),(0x0,r['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x3e38a5(0xd1)])(void 0x0));}[_0x3f925b(0x2af)](_0x4ad2b8,_0x489b6d,_0x1c7143=!0x1){const _0x849762=_0x3f925b;let _0x2ec342=new URL(window[_0x849762(0xbc)][_0x849762(0x2ed)]);_0x2ec342['searchParams'][_0x849762(0x128)](_0x4ad2b8,_0x489b6d),_0x1c7143?window[_0x849762(0x21d)][_0x849762(0x357)]('','',_0x2ec342[_0x849762(0xe4)]()):window[_0x849762(0x21d)][_0x849762(0x335)]('','',_0x2ec342[_0x849762(0xe4)]());}[_0x3f925b(0x162)](_0xc836e3,_0x392ff5=!0x1){const _0x494fe=_0x3f925b;let _0x592b50=new URL(window[_0x494fe(0xbc)][_0x494fe(0x2ed)]);_0x592b50[_0x494fe(0x1a7)]['delete'](_0xc836e3),_0x392ff5?window[_0x494fe(0x21d)][_0x494fe(0x357)]('','',_0x592b50[_0x494fe(0xe4)]()):window['history'][_0x494fe(0x335)]('','',_0x592b50[_0x494fe(0xe4)]());}[_0x3f925b(0x34f)](_0x3351b9){const _0x4e0ca1=_0x3f925b;var _0x3855df;return(_0x3855df=new URL(window['location'][_0x4e0ca1(0x2ed)])['searchParams'][_0x4e0ca1(0x116)](_0x3351b9))==null?void 0x0:_0x3855df;}};let Z=class extends t['Plugin']{constructor(_0x57fe4a=ce,_0x5c8b46,_0x3e4519,_0x174c21){const _0x30f557=_0x3f925b;super(),this[_0x30f557(0xc7)]=_0x57fe4a,this['_renderManagerService']=_0x5c8b46,this[_0x30f557(0x1fc)]=_0x3e4519,this['_configService']=_0x174c21;let {..._0x8818a3}=(0x0,t[_0x30f557(0x114)])({},ce,this[_0x30f557(0xc7)]);this[_0x30f557(0x2ee)][_0x30f557(0x323)](_0x30f557(0x268),_0x8818a3);}[_0x3f925b(0x203)](){const _0x48b2a0=_0x3f925b;this['_registerDependencies'](),this[_0x48b2a0(0x2a3)]();}[_0x3f925b(0x150)](){const _0x183460=_0x3f925b;this[_0x183460(0x1ac)]();}[_0x3f925b(0x301)](){const _0x29859a=_0x3f925b;var _0x2b45f7;let _0x517eac=[[k],[J],[E,{'useClass':X}],[f[_0x29859a(0x9e)],{'useClass':f[_0x29859a(0x330)]}],[e['ILocalCacheService'],{'useClass':Y}],[T],[H],[P],[D]];this[_0x29859a(0xc7)][_0x29859a(0xee)]!==!0x1&&_0x517eac[_0x29859a(0x267)]([G],[U],[W],[A],[K],[O]),this['_config'][_0x29859a(0x302)]&&_0x517eac['push']([q]),(0x0,t[_0x29859a(0x158)])(this[_0x29859a(0x1fc)],(0x0,t[_0x29859a(0x176)])(_0x517eac,(_0x2b45f7=this['_config'])==null?void 0x0:_0x2b45f7[_0x29859a(0x361)]));}['_registerRenderDependencies'](){const _0x3e17e9=_0x3f925b;this['_config'][_0x3e17e9(0xee)]!==!0x1&&this[_0x3e17e9(0x1da)](this['_renderManagerService'][_0x3e17e9(0x253)](t[_0x3e17e9(0x244)][_0x3e17e9(0x1ad)],[R])),this['disposeWithMe'](this[_0x3e17e9(0x32c)][_0x3e17e9(0x253)](t[_0x3e17e9(0x244)][_0x3e17e9(0x173)],[B])),this[_0x3e17e9(0x1da)](this['_renderManagerService'][_0x3e17e9(0x253)](t[_0x3e17e9(0x244)][_0x3e17e9(0xaa)],[V]));}[_0x3f925b(0x2a3)](){const _0xf68321=_0x3f925b;(0x0,t[_0xf68321(0x1b1)])(this['_injector'],[[P],[T],[H],[D],[J]]),this[_0xf68321(0xc7)][_0xf68321(0xee)]!==!0x1&&(0x0,t[_0xf68321(0x1b1)])(this[_0xf68321(0x1fc)],[[K],[O]]),this[_0xf68321(0xc7)][_0xf68321(0x302)]&&(0x0,t['touchDependencies'])(this[_0xf68321(0x1fc)],[[q]]);}};S(Z,'pluginName',_0x3f925b(0x145)),S(Z,_0x3f925b(0x1f4),oe),S(Z,_0x3f925b(0x334),se),Z=w([(0x0,t[_0x3f925b(0x104)])(e['UniverCollaborationClientPlugin']),C(0x1,d[_0x3f925b(0xa1)]),C(0x2,(0x0,t[_0x3f925b(0x2de)])(t[_0x3f925b(0xcb)])),C(0x3,t[_0x3f925b(0x2cf)])],Z);let Q=class extends e['CollaborationSocketService']{constructor(_0x2d7460,_0x2600a5,_0x52d789,_0x11f2f1,_0x54059f){super(_0x2d7460,_0x2600a5,_0x52d789,_0x11f2f1,_0x54059f);}async[_0x3f925b(0x131)](_0x3b0ef0){const _0x7180ff=_0x3f925b;let _0xd8adda=await this[_0x7180ff(0x210)](),_0x18f707=this[_0x7180ff(0x2e9)](_0x3b0ef0,_0xd8adda);return this[_0x7180ff(0x1f0)](_0x18f707);}['_createSocketURL'](_0x28bf8a,_0x3aa93b){const _0x72f12f=_0x3f925b;let _0x2782b9=typeof window>'u'?new URL(_0x28bf8a):new URL(_0x28bf8a,window[_0x72f12f(0xbc)][_0x72f12f(0xdd)]);_0x2782b9[_0x72f12f(0x1a7)][_0x72f12f(0x128)]('sessionTicket',_0x3aa93b);let _0xdd0eef=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x72f12f(0xbc)][_0x72f12f(0x22a)]);return _0xdd0eef[_0x72f12f(0x116)](_0x72f12f(0x111))&&_0x2782b9[_0x72f12f(0x1a7)][_0x72f12f(0x128)](_0x72f12f(0x111),_0xdd0eef[_0x72f12f(0x116)](_0x72f12f(0x111))),_0x2782b9[_0x72f12f(0xe4)]();}async[_0x3f925b(0x210)](){const _0x7fbe31=_0x3f925b;var _0x4ebe3e,_0x12378c,_0x3a901c;let _0x5123ac=this[_0x7fbe31(0x2ee)][_0x7fbe31(0x19a)](e[_0x7fbe31(0x35a)]),_0x1ea815=(_0x4ebe3e=_0x5123ac==null?void 0x0:_0x5123ac['wsSessionTicketUrl'])==null?e['DEFAULT_WS_SESSION_TICKET_URL']:_0x4ebe3e;return(_0x12378c=(_0x3a901c=(await this[_0x7fbe31(0x1f9)][_0x7fbe31(0x116)](_0x1ea815,{'headers':{'Content-Type':_0x7fbe31(0x1f8)}}))[_0x7fbe31(0x18c)])==null?void 0x0:_0x3a901c['ticket'])==null?'':_0x12378c;}};Q=w([C(0x0,(0x0,t[_0x3f925b(0x2de)])(t[_0x3f925b(0xcb)])),C(0x1,(0x0,t[_0x3f925b(0x2de)])(f['HTTPService'])),C(0x2,t[_0x3f925b(0x2cf)]),C(0x3,t[_0x3f925b(0x183)]),C(0x4,h[_0x3f925b(0x29d)])],Q);let $=class extends t[_0x3f925b(0x318)]{constructor(_0x5c2cdd,_0x394e3f,_0x579ce7){const _0x246fe5=_0x3f925b;super(),this[_0x246fe5(0x31d)]=_0x5c2cdd,this[_0x246fe5(0x1f9)]=_0x394e3f,this[_0x246fe5(0x2ee)]=_0x579ce7;}async[_0x3f925b(0xd8)](_0x49523f,_0x5a2f4c,_0x575bd7,..._0x36c3b2){const _0x2541d2=_0x3f925b;var _0x29ad06,_0x4cf935,_0x128dec,_0x4d5f38;let _0x197c24=this[_0x2541d2(0x31d)]['getFocusedUnit']();if(!_0x197c24)throw Error(_0x2541d2(0x295));let _0x4a6d85=((_0x29ad06=this[_0x2541d2(0x2ee)][_0x2541d2(0x19a)](e[_0x2541d2(0xf3)]))==null?e['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']:_0x29ad06)+'/'+_0x49523f+_0x2541d2(0x319)+_0x5a2f4c,_0x2df95b={'scriptId':_0x49523f,'runId':(_0x4cf935=new URL(window['location']['href'])[_0x2541d2(0x1a7)][_0x2541d2(0x116)](_0x2541d2(0x111)))==null?'':_0x4cf935,'function':_0x5a2f4c,'unitId':_0x197c24[_0x2541d2(0x12e)](),'argsOfFunction':JSON['stringify'](_0x36c3b2),'invokeId':(_0x128dec=_0x575bd7['invokeId'])==null?'':_0x128dec,'executionId':(_0x4d5f38=_0x575bd7[_0x2541d2(0xf6)])==null?'':_0x4d5f38};try{let _0x5c77d4=await this[_0x2541d2(0x1f9)][_0x2541d2(0x343)](_0x4a6d85,{'body':_0x2df95b});return _0x5c77d4['body']['error']&&_0x5c77d4[_0x2541d2(0x18c)]['error']['code']!==b[_0x2541d2(0xe3)]['OK']?'Failed':_0x5c77d4['body'][_0x2541d2(0x2e7)];}catch{return _0x2541d2(0x175);}}};$=w([C(0x0,t[_0x3f925b(0x345)]),C(0x1,(0x0,t[_0x3f925b(0x2de)])(f[_0x3f925b(0x2f8)])),C(0x2,t[_0x3f925b(0x2cf)])],$);const be=0x7530,xe=_0x3f925b(0x28c);var Se=class extends t[_0x3f925b(0x318)]{constructor(){const _0x2be1d4=_0x3f925b;super(),S(this,_0x2be1d4(0x2f5),(0x0,t[_0x2be1d4(0x1fa)])()),S(this,_0x2be1d4(0x26b),new Set()),S(this,_0x2be1d4(0x29c),new Map()),S(this,_0x2be1d4(0x2f3),null),S(this,_0x2be1d4(0x31f),new Map()),S(this,'_unitStatus',new Map()),this['_init']();}[_0x3f925b(0x171)](){const _0x1df979=_0x3f925b;super[_0x1df979(0x171)](),this['_clearOtherTimers'][_0x1df979(0xbd)]((_0x6dd48b,_0x48300f)=>this[_0x1df979(0x1be)](_0x48300f)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x1df979(0x2f3)]);}['getUnitStatus$'](_0x88b922){const _0x3a76a9=_0x3f925b;return this['_ensureSubject'](_0x88b922)[_0x3a76a9(0xa2)]((0x0,r['distinctUntilChanged'])());}[_0x3f925b(0x2c2)](_0x57b02e){const _0xffe16d=_0x3f925b;this['_selfUnitIDs']['size']===0x0&&this[_0xffe16d(0x12f)](),this[_0xffe16d(0x26b)][_0xffe16d(0x2b1)](_0x57b02e),this[_0xffe16d(0xaf)]({'type':0x0,'memberID':this[_0xffe16d(0x2f5)],'unitIDs':[_0x57b02e],'isForwarded':!0x1});}[_0x3f925b(0x248)](_0x2a5989){const _0x1ff346=_0x3f925b;this[_0x1ff346(0x26b)][_0x1ff346(0x19d)](_0x2a5989),this[_0x1ff346(0x26b)][_0x1ff346(0x327)]===0x0&&this[_0x1ff346(0x2f3)]&&window[_0x1ff346(0x15d)](this[_0x1ff346(0x2f3)]);}[_0x3f925b(0x237)](){const _0x55e45f=_0x3f925b;this[_0x55e45f(0x1da)]((0x0,t['toDisposable'])((0x0,r[_0x55e45f(0x288)])(window,_0x55e45f(0x197))[_0x55e45f(0x191)](_0x236b2a=>{const _0x12e20f=_0x55e45f;if(_0x236b2a['key']!==xe||!_0x236b2a[_0x12e20f(0x358)])return;let _0x4b29d4=JSON[_0x12e20f(0x241)](_0x236b2a[_0x12e20f(0x358)]);this[_0x12e20f(0xf4)](_0x4b29d4);}))),window[_0x55e45f(0x2ae)](_0x55e45f(0xd3),()=>this[_0x55e45f(0xaf)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x55e45f(0x26b)])}));}[_0x3f925b(0xf4)](_0x1f32b7){const _0x540d02=_0x3f925b;switch(_0x1f32b7[_0x540d02(0x2b7)]){case 0x0:this[_0x540d02(0xa8)](_0x1f32b7);break;case 0x1:this['_handleLeaveEvent'](_0x1f32b7);break;case 0x2:this[_0x540d02(0x152)](_0x1f32b7);break;}}[_0x3f925b(0xa8)](_0x3679c3){const _0x4e02f4=_0x3f925b;let {unitIDs:_0x3e7596,memberID:_0x4264a7,isForwarded:_0x202c1d}=_0x3679c3;_0x3e7596[_0x4e02f4(0xbd)](_0x49d090=>{const _0x5c8806=_0x4e02f4;if(!_0x202c1d&&this[_0x5c8806(0x29c)][_0x5c8806(0x355)](_0x49d090)&&this[_0x5c8806(0x1bd)](_0x49d090)[_0x5c8806(0x2f7)](e['UnitStatus'][_0x5c8806(0x305)]),!this[_0x5c8806(0x29c)][_0x5c8806(0x355)](_0x49d090)||!this['_unitOnClients']['get'](_0x49d090)[_0x5c8806(0x355)](_0x4264a7)){let _0x324539=this[_0x5c8806(0x29c)][_0x5c8806(0x116)](_0x49d090)||new Set();_0x324539[_0x5c8806(0x2b1)](_0x4264a7),this[_0x5c8806(0x29c)][_0x5c8806(0x128)](_0x49d090,_0x324539),this[_0x5c8806(0x2c8)](_0x4264a7);}}),_0x202c1d||this[_0x4e02f4(0xaf)]({'type':0x0,'memberID':this[_0x4e02f4(0x2f5)],'unitIDs':[...this[_0x4e02f4(0x26b)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x44c283){const _0x369b5a=_0x3f925b;this[_0x369b5a(0x1be)](_0x44c283);let _0x509c41=window[_0x369b5a(0x9c)](()=>{const _0x4824f2=_0x369b5a;this['_unitOnClients'][_0x4824f2(0xbd)](_0x79c400=>{_0x79c400['delete'](_0x44c283);});},be*0x2);this[_0x369b5a(0x31f)]['set'](_0x44c283,_0x509c41);}[_0x3f925b(0x1be)](_0x3ef4e1){const _0x12747b=_0x3f925b;if(this[_0x12747b(0x31f)][_0x12747b(0x355)](_0x3ef4e1)){let _0x57acb9=this[_0x12747b(0x31f)][_0x12747b(0x116)](_0x3ef4e1);_0x57acb9&&window[_0x12747b(0x14f)](_0x57acb9),this[_0x12747b(0x31f)][_0x12747b(0x128)](_0x3ef4e1,null);}}[_0x3f925b(0x202)](_0x35355a){const _0x1a2ced=_0x3f925b;let {memberID:_0x2beb26,unitIDs:_0x20bddc}=_0x35355a;_0x20bddc['forEach'](_0x225ade=>{const _0x458834=_0x43e1;var _0x4578fc;let _0x22101b=this[_0x458834(0x29c)][_0x458834(0x116)](_0x225ade);_0x22101b&&(_0x22101b[_0x458834(0x19d)](_0x2beb26),(_0x4578fc=this[_0x458834(0x1bd)](_0x225ade))==null||_0x4578fc['next'](_0x22101b[_0x458834(0x327)]===0x0?e[_0x458834(0x23e)]['NO_OTHER_CLIENTS_EDITING']:e[_0x458834(0x23e)][_0x458834(0x305)]));}),this[_0x1a2ced(0x1be)](_0x2beb26);}[_0x3f925b(0x152)](_0x230e0f){const _0x52f822=_0x3f925b;this[_0x52f822(0x2c8)](_0x230e0f[_0x52f822(0x196)]);}[_0x3f925b(0xaf)](_0x574ec5){const _0x2872fa=_0x3f925b;localStorage[_0x2872fa(0x1d8)](xe,JSON[_0x2872fa(0x177)](_0x574ec5));}[_0x3f925b(0x12f)](){const _0x5802f2=_0x3f925b;this[_0x5802f2(0x2f3)]=window['setInterval'](()=>{const _0x19163f=_0x5802f2;this[_0x19163f(0xaf)]({'type':0x2,'memberID':this[_0x19163f(0x2f5)]});},be);}[_0x3f925b(0x1bd)](_0x57a9e7){const _0xd1e299=_0x3f925b;return this['_unitStatus']['has'](_0x57a9e7)||this[_0xd1e299(0x199)][_0xd1e299(0x128)](_0x57a9e7,new r['BehaviorSubject'](e[_0xd1e299(0x23e)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0xd1e299(0x116)](_0x57a9e7);}};Object[_0x3f925b(0xc1)](exports,_0x3f925b(0x24a),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x3f925b(0xc1)](exports,_0x3f925b(0x10b),{'enumerable':!0x0,'get':function(){return D;}}),Object['defineProperty'](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!0x0,'get':function(){return T;}}),exports[_0x3f925b(0x1eb)]=E,Object['defineProperty'](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3f925b(0x325)]=z,Object[_0x3f925b(0xc1)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x3f925b(0x2e1)]=Se,exports[_0x3f925b(0x13c)]=X;