@univerjs-pro/collaboration-client-ui 0.9.2-nightly.202507151607 → 0.9.2-nightly.202507171607

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 (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +16 -16
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xff7c4b=_0x1e17;(function(_0x1366fc,_0x365b97){const _0x3647ac=_0x1e17,_0x3b5014=_0x1366fc();while(!![]){try{const _0x59a381=-parseInt(_0x3647ac(0x10e))/0x1+-parseInt(_0x3647ac(0x112))/0x2*(-parseInt(_0x3647ac(0x10c))/0x3)+parseInt(_0x3647ac(0x10b))/0x4*(parseInt(_0x3647ac(0x119))/0x5)+parseInt(_0x3647ac(0x114))/0x6+parseInt(_0x3647ac(0x110))/0x7*(parseInt(_0x3647ac(0x116))/0x8)+-parseInt(_0x3647ac(0x115))/0x9*(parseInt(_0x3647ac(0x113))/0xa)+-parseInt(_0x3647ac(0x10a))/0xb*(parseInt(_0x3647ac(0x10d))/0xc);if(_0x59a381===_0x365b97)break;else _0x3b5014['push'](_0x3b5014['shift']());}catch(_0x3b4d7d){_0x3b5014['push'](_0x3b5014['shift']());}}}(_0x3f33,0x78981));function _0x1e17(_0x351d6e,_0x557ddc){const _0x3f336e=_0x3f33();return _0x1e17=function(_0x1e17a9,_0x258445){_0x1e17a9=_0x1e17a9-0x10a;let _0x1ec0a4=_0x3f336e[_0x1e17a9];return _0x1ec0a4;},_0x1e17(_0x351d6e,_0x557ddc);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');function _0x3f33(){const _0x11b6c6=['30PRCLJM','5173320MBqIDf','1724418gxMDcx','8yryKpc','get','runOnServer','5xFpbQd','_injector','16161299VpbyPo','3574628OJBtWb','15qrelVb','12XTvntO','353444gYvrPB','FUniver','4591510kPnmrt','extend','191842llnafL'];_0x3f33=function(){return _0x11b6c6;};return _0x3f33();}class c extends e[_0xff7c4b(0x10f)]{['runOnServer'](_0x592532,_0x24fa15,..._0x4d80d6){const _0xe28613=_0xff7c4b;return this[_0xe28613(0x11a)][_0xe28613(0x117)](t['RemoteUniscriptService'])[_0xe28613(0x118)](_0x592532,_0x24fa15,{},..._0x4d80d6);}}e['FUniver'][_0xff7c4b(0x111)](c);
1
+ 'use strict';function _0xff86(){const _0x1de2a2=['11sQsybr','2882488JsjhFH','1544440USPLsg','FUniver','177430YXQbUK','8051976wqxIPz','extend','10gBhTyO','2ETHhLH','344FajGMh','339YAvGLo','6PsfPjC','102620FdGRDt','get','runOnServer','3799881lLzEUx'];_0xff86=function(){return _0x1de2a2;};return _0xff86();}const _0x1d4a74=_0x2dcb;(function(_0xfaf92b,_0x240aa0){const _0x2aaf5e=_0x2dcb,_0x5b78d6=_0xfaf92b();while(!![]){try{const _0x4b9adc=-parseInt(_0x2aaf5e(0x182))/0x1*(parseInt(_0x2aaf5e(0x176))/0x2)+parseInt(_0x2aaf5e(0x184))/0x3*(parseInt(_0x2aaf5e(0x183))/0x4)+-parseInt(_0x2aaf5e(0x17e))/0x5+parseInt(_0x2aaf5e(0x185))/0x6*(parseInt(_0x2aaf5e(0x17b))/0x7)+parseInt(_0x2aaf5e(0x17c))/0x8+parseInt(_0x2aaf5e(0x179))/0x9*(parseInt(_0x2aaf5e(0x181))/0xa)+parseInt(_0x2aaf5e(0x17a))/0xb*(-parseInt(_0x2aaf5e(0x17f))/0xc);if(_0x4b9adc===_0x240aa0)break;else _0x5b78d6['push'](_0x5b78d6['shift']());}catch(_0x11d709){_0x5b78d6['push'](_0x5b78d6['shift']());}}}(_0xff86,0x3794e));function _0x2dcb(_0x5d3c4e,_0x623aa0){const _0xff86a=_0xff86();return _0x2dcb=function(_0x2dcbcd,_0x1562e3){_0x2dcbcd=_0x2dcbcd-0x176;let _0x3d5b72=_0xff86a[_0x2dcbcd];return _0x3d5b72;},_0x2dcb(_0x5d3c4e,_0x623aa0);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x1d4a74(0x178)](_0x59d746,_0x3adc0e,..._0x5f1087){const _0x5ce568=_0x1d4a74;return this['_injector'][_0x5ce568(0x177)](t['RemoteUniscriptService'])[_0x5ce568(0x178)](_0x59d746,_0x3adc0e,{},..._0x5f1087);}}e[_0x1d4a74(0x17d)][_0x1d4a74(0x180)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3da993=_0x3cf9;(function(_0x49d392,_0xce231b){const _0x411f37=_0x3cf9,_0x1df741=_0x49d392();while(!![]){try{const _0x3712a3=parseInt(_0x411f37(0x322))/0x1+parseInt(_0x411f37(0x2a7))/0x2*(parseInt(_0x411f37(0x177))/0x3)+-parseInt(_0x411f37(0x2ae))/0x4*(-parseInt(_0x411f37(0x1bc))/0x5)+-parseInt(_0x411f37(0x1d3))/0x6+parseInt(_0x411f37(0x254))/0x7*(parseInt(_0x411f37(0x126))/0x8)+-parseInt(_0x411f37(0x183))/0x9*(parseInt(_0x411f37(0x37f))/0xa)+-parseInt(_0x411f37(0x150))/0xb;if(_0x3712a3===_0xce231b)break;else _0x1df741['push'](_0x1df741['shift']());}catch(_0x3a7890){_0x1df741['push'](_0x1df741['shift']());}}}(_0x5bb2,0x5735e));var Ve=Object[_0x3da993(0x387)],Xe=(_0x45f3e7,_0x3f105b,_0x4da860)=>_0x3f105b in _0x45f3e7?Ve(_0x45f3e7,_0x3f105b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4da860}):_0x45f3e7[_0x3f105b]=_0x4da860,h=(_0x28ec9a,_0x7a8d0a,_0x12ef5e)=>Xe(_0x28ec9a,typeof _0x7a8d0a!='symbol'?_0x7a8d0a+'':_0x7a8d0a,_0x12ef5e);Object[_0x3da993(0x387)](exports,Symbol[_0x3da993(0x1aa)],{'value':_0x3da993(0x36e)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x6d957d,_0x356081,_0x49776b,_0x354ba4)=>{const _0x28c9b1=_0x3da993;for(var _0x1a29d2=_0x354ba4>0x1?void 0x0:_0x354ba4?qe(_0x356081,_0x49776b):_0x356081,_0x25af59=_0x6d957d[_0x28c9b1(0x23d)]-0x1,_0x15f2ac;_0x25af59>=0x0;_0x25af59--)(_0x15f2ac=_0x6d957d[_0x25af59])&&(_0x1a29d2=_0x15f2ac(_0x1a29d2)||_0x1a29d2);return _0x1a29d2;},Oe=(_0x321f57,_0x5e8b48)=>(_0x32a99d,_0x23eabb)=>_0x5e8b48(_0x32a99d,_0x23eabb,_0x321f57);let de=class extends a[_0x3da993(0x1b0)]{constructor(_0x584952,_0xfcad49){const _0x1fd0a1=_0x3da993;super(),this['_docClipboardService']=_0x584952,this[_0x1fd0a1(0x263)]=_0xfcad49,this[_0x1fd0a1(0x306)]();}[_0x3da993(0x306)](){const _0x4e37b5=_0x3da993,_0x39f669=this;this[_0x4e37b5(0x250)](this[_0x4e37b5(0x1bd)][_0x4e37b5(0x21b)]({'onBeforePasteImage':async _0x1d9345=>{const _0x1edc22=_0x4e37b5,_0x11e984=await _0x39f669[_0x1edc22(0x263)][_0x1edc22(0x237)](_0x1d9345);return _0x11e984?{'source':_0x11e984[_0x1edc22(0x1ec)],'imageSourceType':_0x11e984[_0x1edc22(0x14a)]}:null;}}));}};de=ze([Oe(0x0,E['IDocClipboardService']),Oe(0x1,Ge[_0x3da993(0x1a4)])],de);const Te=['purple.300',_0x3da993(0x274),_0x3da993(0x1f7),_0x3da993(0x28b),_0x3da993(0x313),_0x3da993(0x2a6)];class me extends a['Disposable']{constructor(){const _0x4137b0=_0x3da993;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x4137b0(0x208),0x0);}[_0x3da993(0x33e)](_0x591c8b){const _0xf05e4a=_0x3da993;if(this[_0xf05e4a(0x12b)]['has'](_0x591c8b))return this[_0xf05e4a(0x12b)][_0xf05e4a(0x1e1)](_0x591c8b);const _0x3e787b=Te[this['_colorIndex']];return this[_0xf05e4a(0x208)]=(this[_0xf05e4a(0x208)]+0x1)%Te[_0xf05e4a(0x23d)],this[_0xf05e4a(0x12b)][_0xf05e4a(0x1c8)](_0x591c8b,_0x3e787b),_0x3e787b;}}function Pe(_0x24b393){const _0x18a1e0=_0x3da993;let _0x301971='';for(const _0x888e61 of _0x24b393){const {startOffset:_0x37d136,endOffset:_0x2d1217,isActive:_0x260d1d,rangeType:_0x3e747b,segmentId:_0xa2c89c,segmentPage:_0x3d8e21}=_0x888e61;_0x301971[_0x18a1e0(0x23d)]&&(_0x301971+=','),_0x301971+=_0x37d136+':'+_0x2d1217+':'+(_0x260d1d?'1':'0')+':'+_0x3e747b+':'+_0xa2c89c+':'+_0x3d8e21;}return _0x301971;}function Je(_0x530e73){const _0x121570=_0x3da993,_0x5bf75a=_0x530e73[_0x121570(0x2c9)](','),_0x454c9e=[];for(const _0x5dfaca of _0x5bf75a){const [_0x1494d7,_0x59fe35,_0x5b8515,_0x44e307,_0x121cbe,_0x3ea4f4]=_0x5dfaca[_0x121570(0x2c9)](':');_0x454c9e['push']({'startOffset':Number(_0x1494d7),'endOffset':Number(_0x59fe35),'collapsed':_0x1494d7===_0x59fe35,'isActive':_0x5b8515==='1','rangeType':_0x44e307===a[_0x121570(0x15c)]['TEXT']?a[_0x121570(0x15c)][_0x121570(0x22c)]:a[_0x121570(0x15c)]['RECT'],'segmentId':typeof _0x121cbe==_0x121570(0x18f)?String(_0x121cbe):'','segmentPage':Number(_0x3ea4f4!=null?_0x3ea4f4:-0x1)});}return _0x454c9e[_0x121570(0x2d5)](_0xaa6056=>_0xaa6056[_0x121570(0x179)])||(_0x454c9e[0x0][_0x121570(0x179)]=!0x0),_0x454c9e;}class Ce extends a[_0x3da993(0x1b0)]{constructor(){const _0x58aa99=_0x3da993;super(...arguments),h(this,_0x58aa99(0x207),new d[(_0x58aa99(0x267))](null)),h(this,_0x58aa99(0x2d0),this['_collabCursorState$']['asObservable']());}[_0x3da993(0x2a0)](_0x4b10f0){const _0x245efb=_0x3da993,{unitID:_0x425490,memberID:_0x367f5b,textRanges:_0x55cb4a}=_0x4b10f0,_0x31904a=Pe(_0x55cb4a);if(_0x31904a==='')return;const _0x20cdc9={'unitID':_0x425490,'memberID':_0x367f5b,'selection':_0x31904a};this[_0x245efb(0x207)][_0x245efb(0x1dd)](_0x20cdc9);}}var Ze=Object[_0x3da993(0x1a0)],Qe=(_0x33a069,_0x3260c5,_0x310502,_0x186f51)=>{const _0x6e92bc=_0x3da993;for(var _0x49bd0b=_0x186f51>0x1?void 0x0:_0x186f51?Ze(_0x3260c5,_0x310502):_0x3260c5,_0x18fd06=_0x33a069[_0x6e92bc(0x23d)]-0x1,_0x4e7c6a;_0x18fd06>=0x0;_0x18fd06--)(_0x4e7c6a=_0x33a069[_0x18fd06])&&(_0x49bd0b=_0x4e7c6a(_0x49bd0b)||_0x49bd0b);return _0x49bd0b;},L=(_0x4e106b,_0xc0fdfe)=>(_0x26dbbe,_0x3ae799)=>_0xc0fdfe(_0x26dbbe,_0x3ae799,_0x4e106b);const et=0x12c,tt=0x64;let Ie=class extends a['RxDisposable']{constructor(_0x4c1674,_0x9c9685,_0x26eace,_0x1563c5,_0x19890d,_0x576c0d,_0x525104,_0x149aab,_0x195cf3){const _0x31544f=_0x3da993;super(),h(this,_0x31544f(0x181),!0x1),h(this,_0x31544f(0x306),!0x1),h(this,_0x31544f(0x1f1),new d[(_0x31544f(0x267))](new Map())),h(this,_0x31544f(0x35c),this[_0x31544f(0x1f1)]['asObservable']()),h(this,_0x31544f(0x211),new d['BehaviorSubject']([])),h(this,_0x31544f(0x1ac),this[_0x31544f(0x211)]['pipe'](d[_0x31544f(0x353)](et))),h(this,_0x31544f(0x29e),a[_0x31544f(0x153)](_0x17be83=>{const _0xdf9ceb=_0x31544f,_0x30e056={'eventID':m[_0xdf9ceb(0x384)][_0xdf9ceb(0x2c4)],'data':{'unitID':this[_0xdf9ceb(0x36a)],'memberID':this[_0xdf9ceb(0x2ca)][_0xdf9ceb(0x2d2)](),'selection':Pe(_0x17be83)}};this['_session']['send'](_0x30e056,this[_0xdf9ceb(0x36a)]);},tt)),(this[_0x31544f(0x36a)]=_0x4c1674,this['_session']=_0x9c9685,this[_0x31544f(0x1ea)]=_0x26eace,this[_0x31544f(0x37b)]=_0x1563c5,this[_0x31544f(0x2ba)]=_0x19890d,this['_syncEditingCollabCursorService']=_0x576c0d,this[_0x31544f(0x23e)]=_0x525104,this[_0x31544f(0x366)]=_0x149aab,this[_0x31544f(0x2b5)]=_0x195cf3);}get['cursorInfo'](){const _0x8278a=_0x3da993;return this[_0x8278a(0x1f1)]['getValue']();}get[_0x3da993(0x2a1)](){const _0x579187=_0x3da993;return this[_0x579187(0x211)][_0x579187(0x301)]();}['dispose'](){const _0x56e8da=_0x3da993;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x56e8da(0x1f1)][_0x56e8da(0x281)](),this[_0x56e8da(0x211)][_0x56e8da(0x1dd)]([]),this[_0x56e8da(0x211)][_0x56e8da(0x281)]();}['init'](){const _0x24247e=_0x3da993;this['_init']||(this[_0x24247e(0x306)]=!0x0,this['_session'][_0x24247e(0x139)]['pipe'](d[_0x24247e(0x32e)](this['dispose$']))[_0x24247e(0x1be)](_0x4acb39=>{const _0x57fe98=_0x24247e;_0x4acb39===u[_0x57fe98(0x1e2)]['ONLINE']?this[_0x57fe98(0x212)]():this['_toggleOffline']();}),this[_0x24247e(0x2ca)][_0x24247e(0x370)]['pipe'](d[_0x24247e(0x32e)](this[_0x24247e(0x21a)]))[_0x24247e(0x1be)](_0x565311=>{const _0x34b56e=_0x24247e,_0x170306=_0x565311[_0x34b56e(0x1a5)];_0x170306===m[_0x34b56e(0x384)]['UPDATE_CURSOR']&&this[_0x34b56e(0x340)](_0x565311),_0x170306===m[_0x34b56e(0x384)][_0x34b56e(0x293)]&&this[_0x34b56e(0x201)](_0x565311);}),this['disposeWithMe'](this[_0x24247e(0x2b5)][_0x24247e(0x192)](_0x405415=>{const _0x41896e=_0x24247e,_0x457e60=_0x405415[_0x41896e(0x35a)];_0x457e60!=null&&this['_online']&&_0x405415['id']===Y['SetTextSelectionsOperation']['id']&&_0x457e60[_0x41896e(0x372)]===this['unitID']&&_0x457e60[_0x41896e(0x2e0)]===!0x1&&_0x457e60['ranges'][_0x41896e(0x23d)]>0x0&&this[_0x41896e(0x29e)](_0x457e60[_0x41896e(0x1cd)]);})),this[_0x24247e(0x214)]['collabCursorState$'][_0x24247e(0x386)](d['takeUntil'](this[_0x24247e(0x21a)]))['subscribe'](_0x1958b2=>{const _0x2b0497=_0x24247e;if((_0x1958b2==null?void 0x0:_0x1958b2[_0x2b0497(0x36a)])!==this[_0x2b0497(0x36a)])return;const _0x2d7a75={'eventID':m[_0x2b0497(0x384)][_0x2b0497(0x2c4)],'data':_0x1958b2};this[_0x2b0497(0x340)](_0x2d7a75);}),this[_0x24247e(0x250)](this['_commandService'][_0x24247e(0x192)](_0x41590c=>{const _0x4074d5=_0x24247e;if(_0x41590c[_0x4074d5(0x35a)]==null)return;const _0x2f5266=_0x41590c[_0x4074d5(0x35a)];if(_0x41590c['id']!==Y[_0x4074d5(0x2ab)]['id']||_0x2f5266['unitId']!==this[_0x4074d5(0x36a)])return;const _0x3faaf6={'id':_0x4074d5(0x1ba),'params':_0x2f5266},_0x3cd6fb=this[_0x4074d5(0x1d0)];for(const [_0x133394,_0x38e440]of _0x3cd6fb){const _0x52cc2b={'id':_0x4074d5(0x1ba),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x38e440[_0x4074d5(0x1cd)]}},_0x4f6650=this[_0x4074d5(0x23e)][_0x4074d5(0x14b)](_0x3faaf6,_0x52cc2b,!0x1);if(m[_0x4074d5(0x1c6)](_0x4f6650))throw _0x4f6650['error'];_0x3cd6fb[_0x4074d5(0x1c8)](_0x133394,{..._0x38e440,'ranges':_0x4f6650[_0x4074d5(0x364)]['params'][_0x4074d5(0x373)]});}queueMicrotask(()=>{const _0x952549=_0x4074d5;this['_cursorInfo$'][_0x952549(0x1dd)](_0x3cd6fb);});})));}[_0x3da993(0x340)](_0x1b3c07){const _0x1fa9fa=_0x3da993;var _0xc82af7,_0x398c2a;const {memberID:_0x103e43,selection:_0x269702}=_0x1b3c07[_0x1fa9fa(0x260)],_0x22fa8d=Je(_0x269702),_0x538e36=(_0x398c2a=(_0xc82af7=this[_0x1fa9fa(0x2ba)][_0x1fa9fa(0x379)](this[_0x1fa9fa(0x36a)],_0x103e43))==null?void 0x0:_0xc82af7['name'])!=null?_0x398c2a:'Unknown\x20user',_0x4ef391={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x103e43),'name':_0x538e36,'ranges':_0x22fa8d},_0x40ad2b=this['cursorInfo'];_0x40ad2b[_0x1fa9fa(0x1c8)](_0x103e43,_0x4ef391),this['_cursorInfo$']['next'](_0x40ad2b);}[_0x3da993(0x201)](_0x5bc3f6){const _0x22e2e0=_0x3da993,{memberID:_0x529ea6}=_0x5bc3f6['data'],_0xa69385=this[_0x22e2e0(0x1d0)];_0xa69385[_0x22e2e0(0x2c2)](_0x529ea6),this[_0x22e2e0(0x1f1)][_0x22e2e0(0x1dd)](_0xa69385);}[_0x3da993(0x212)](){const _0x538754=_0x3da993;var _0x3484e5;if(this[_0x538754(0x181)]=!0x0,((_0x3484e5=this[_0x538754(0x366)][_0x538754(0x145)]())==null?void 0x0:_0x3484e5['getUnitId']())!==this['unitID'])return;const _0x329d28=this[_0x538754(0x1ea)][_0x538754(0x1e1)](Y['DocSelectionManagerService'])[_0x538754(0x33f)]();Array[_0x538754(0x34c)](_0x329d28)&&_0x329d28[_0x538754(0x23d)]>0x0&&this['_updateLocalCursor'](_0x329d28);}[_0x3da993(0x22e)](){const _0x45fabe=_0x3da993;this[_0x45fabe(0x181)]=!0x1;}};Ie=Qe([L(0x2,a[_0x3da993(0x329)](a['Injector'])),L(0x3,a[_0x3da993(0x329)](me)),L(0x4,a[_0x3da993(0x329)](u[_0x3da993(0x2e3)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x3da993(0x119)]),L(0x7,a[_0x3da993(0x32d)]),L(0x8,a[_0x3da993(0x394)])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0x3baa06,_0x2d6a0a,_0x13be05,_0x4135fc)=>{const _0x41e9e0=_0x3da993;for(var _0x269f43=_0x4135fc>0x1?void 0x0:_0x4135fc?st(_0x2d6a0a,_0x13be05):_0x2d6a0a,_0x453de5=_0x3baa06[_0x41e9e0(0x23d)]-0x1,_0x582347;_0x453de5>=0x0;_0x453de5--)(_0x582347=_0x3baa06[_0x453de5])&&(_0x269f43=_0x582347(_0x269f43)||_0x269f43);return _0x269f43;},A=(_0x7edfad,_0x39d685)=>(_0x354a9f,_0x57b568)=>_0x39d685(_0x354a9f,_0x57b568,_0x7edfad);const nt=0x12c,rt=0x64,ot=()=>{let _0x329782=[],_0x2511b0=!0x1;return _0x251fdb=>{const _0x5eeb52=_0x3cf9;_0x329782[_0x5eeb52(0x27e)](_0x251fdb),_0x2511b0||(_0x2511b0=!0x0,setTimeout(()=>{const _0x7b555b=_0x5eeb52;_0x329782[_0x7b555b(0x34b)](_0x66dbda=>_0x66dbda()),_0x329782=[],_0x2511b0=!0x1;}));};};let Se=class extends a[_0x3da993(0x1b0)]{constructor(_0x1f303a,_0x13e71d,_0x464419,_0x27e440,_0x29c86c,_0x4de021,_0x1c24c6,_0xb65b33){const _0x158ef6=_0x3da993;super(),h(this,_0x158ef6(0x181),!0x1),h(this,_0x158ef6(0x306),!0x1),h(this,_0x158ef6(0x1f1),new d[(_0x158ef6(0x267))](new Map())),h(this,_0x158ef6(0x35c),this['_cursorInfo$']['asObservable']()),h(this,'_roomMembers$',new d[(_0x158ef6(0x267))]([])),h(this,_0x158ef6(0x1ac),this[_0x158ef6(0x211)][_0x158ef6(0x386)](d[_0x158ef6(0x353)](nt))),h(this,_0x158ef6(0x29e),a['debounce']((_0x2f3c07,_0x159499)=>{const _0x5549d5=_0x158ef6,_0x32e0df={'eventID':m[_0x5549d5(0x384)][_0x5549d5(0x2c4)],'data':{'unitID':this['unitID'],'memberID':this[_0x5549d5(0x2ca)][_0x5549d5(0x2d2)](),'selection':be['serializeRangeWithSheet'](_0x2f3c07,_0x159499[_0x5549d5(0x282)])}};this[_0x5549d5(0x2ca)][_0x5549d5(0x28c)](_0x32e0df,this[_0x5549d5(0x36a)]);},rt)),(this[_0x158ef6(0x36a)]=_0x1f303a,this[_0x158ef6(0x2ca)]=_0x13e71d,this['_injector']=_0x464419,this[_0x158ef6(0x37b)]=_0x27e440,this['_memberService']=_0x29c86c,this[_0x158ef6(0x366)]=_0x4de021,this[_0x158ef6(0x2b5)]=_0x1c24c6,this[_0x158ef6(0x24e)]=_0xb65b33);}get[_0x3da993(0x1d0)](){const _0x319a97=_0x3da993;return this[_0x319a97(0x1f1)][_0x319a97(0x301)]();}get['roomMembers'](){const _0x28ed91=_0x3da993;return this[_0x28ed91(0x211)][_0x28ed91(0x301)]();}[_0x3da993(0x261)](){const _0x4ffe3a=_0x3da993;super[_0x4ffe3a(0x261)](),this[_0x4ffe3a(0x1f1)][_0x4ffe3a(0x1dd)](new Map()),this[_0x4ffe3a(0x1f1)]['complete'](),this[_0x4ffe3a(0x211)][_0x4ffe3a(0x1dd)]([]),this[_0x4ffe3a(0x211)][_0x4ffe3a(0x281)]();}[_0x3da993(0x28f)](){const _0x3c3869=_0x3da993;this[_0x3c3869(0x306)]||(this[_0x3c3869(0x306)]=!0x0,this[_0x3c3869(0x2ca)]['sessionStatus$'][_0x3c3869(0x386)](d[_0x3c3869(0x32e)](this[_0x3c3869(0x21a)]))[_0x3c3869(0x1be)](_0x89bf4f=>{const _0x157715=_0x3c3869;_0x89bf4f===u[_0x157715(0x1e2)][_0x157715(0x295)]?this[_0x157715(0x212)]():this[_0x157715(0x22e)]();}),this[_0x3c3869(0x2ca)][_0x3c3869(0x370)][_0x3c3869(0x386)](d[_0x3c3869(0x32e)](this['dispose$']))[_0x3c3869(0x1be)](_0x218e97=>{const _0x492e39=_0x3c3869,_0x49c7c7=_0x218e97[_0x492e39(0x1a5)];_0x49c7c7===m[_0x492e39(0x384)]['UPDATE_CURSOR']&&this[_0x492e39(0x340)](_0x218e97),_0x49c7c7===m[_0x492e39(0x384)][_0x492e39(0x293)]&&this[_0x492e39(0x201)](_0x218e97);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x3c3869(0x2b5)][_0x3c3869(0x192)](_0x4e5e3a=>{const _0x2da321=_0x3c3869;if(this['_online']&&_0x4e5e3a['id']===g['SetSelectionsOperation']['id']&&_0x4e5e3a[_0x2da321(0x35a)][_0x2da321(0x372)]===this[_0x2da321(0x36a)]){const _0x162d32=_0x4e5e3a[_0x2da321(0x35a)];this[_0x2da321(0x29e)](_0x162d32[_0x2da321(0x114)],_0x162d32[_0x2da321(0x167)][0x0]);}})));}[_0x3da993(0x340)](_0x2b0bdc){const _0x50dae6=_0x3da993;var _0x2d2dd0,_0xef2358;const {memberID:_0xe3b898,selection:_0x4aef16}=_0x2b0bdc[_0x50dae6(0x260)],{sheetName:_0x33e1c6,range:_0x532cb4}=be['deserializeRangeWithSheet'](_0x4aef16),_0x43b19d={'name':(_0xef2358=(_0x2d2dd0=this[_0x50dae6(0x2ba)][_0x50dae6(0x379)](this[_0x50dae6(0x36a)],_0xe3b898))==null?void 0x0:_0x2d2dd0[_0x50dae6(0x283)])!=null?_0xef2358:_0x50dae6(0x2b2),'range':this[_0x50dae6(0x1e8)](_0x33e1c6,_0x532cb4),'sheetID':_0x33e1c6,'color':this[_0x50dae6(0x37b)][_0x50dae6(0x33e)](_0xe3b898),'selection':_0x4aef16},_0x25097a=this[_0x50dae6(0x1d0)];_0x25097a[_0x50dae6(0x1c8)](_0xe3b898,_0x43b19d),this[_0x50dae6(0x1f1)][_0x50dae6(0x1dd)](_0x25097a);}[_0x3da993(0x201)](_0x127ec1){const _0x63b107=_0x3da993,{memberID:_0x38ce7c}=_0x127ec1[_0x63b107(0x260)],_0x567164=this['cursorInfo'];_0x567164[_0x63b107(0x2c2)](_0x38ce7c),this['_cursorInfo$'][_0x63b107(0x1dd)](_0x567164);}[_0x3da993(0x1e8)](_0x3d71c2,_0x4ba8ae){const _0x4ce776=_0x3da993;var _0x24252d,_0x1d6ba4;const _0x5b4064=(_0x1d6ba4=(_0x24252d=this[_0x4ce776(0x366)][_0x4ce776(0x388)](this[_0x4ce776(0x36a)]))==null?void 0x0:_0x24252d[_0x4ce776(0x2d7)](_0x3d71c2))==null?void 0x0:_0x1d6ba4[_0x4ce776(0x1d8)]();return(_0x5b4064==null?void 0x0:_0x5b4064['find'](_0x5682ec=>a[_0x4ce776(0x1c4)]['contains'](_0x5682ec,_0x4ba8ae)))||_0x4ba8ae;}[_0x3da993(0x33d)](){const _0x41b42e=_0x3da993,_0x12f7e7=new a[(_0x41b42e(0x18d))](),_0xee57ca=ot(),_0x1f7050=()=>{const _0x2fcbc8=_0x41b42e;_0x12f7e7[_0x2fcbc8(0x261)]();const _0x6b3d66=(_0x4f8678,_0xe8193e,_0x6c61b5,_0x3948b0)=>{const _0xd0b5ff=_0x2fcbc8;let _0xd5858d=[];switch(_0x4f8678['id']){case g[_0xd0b5ff(0x1bf)][_0xd0b5ff(0x164)]:{_0xd5858d=g[_0xd0b5ff(0x395)](_0x4f8678,_0x3948b0);break;}case g[_0xd0b5ff(0x1bf)][_0xd0b5ff(0x113)]:{_0xd5858d=g[_0xd0b5ff(0x191)](_0x4f8678,_0x3948b0);break;}case g[_0xd0b5ff(0x1bf)][_0xd0b5ff(0x1ae)]:{_0xd5858d=g['handleInsertCol'](_0x4f8678,_0x3948b0);break;}case g['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0xd5858d=g[_0xd0b5ff(0x1e6)](_0x4f8678,_0x3948b0);break;}case g[_0xd0b5ff(0x1bf)][_0xd0b5ff(0x1b7)]:{_0xd5858d=g[_0xd0b5ff(0x12d)](_0x4f8678,_0x3948b0);break;}case g[_0xd0b5ff(0x1bf)][_0xd0b5ff(0x200)]:{_0xd5858d=g[_0xd0b5ff(0x351)](_0x4f8678,_0x3948b0);break;}case g[_0xd0b5ff(0x1bf)][_0xd0b5ff(0x39c)]:{_0xd5858d=g['handleMoveRange'](_0x4f8678,_0x3948b0);break;}case g[_0xd0b5ff(0x1bf)][_0xd0b5ff(0x381)]:{_0xd5858d=g[_0xd0b5ff(0x35e)](_0x4f8678,_0x3948b0);break;}case g[_0xd0b5ff(0x1bf)][_0xd0b5ff(0x235)]:{_0xd5858d=g[_0xd0b5ff(0x19a)](_0x4f8678,_0x3948b0);break;}}const _0x47b2cb=g['runRefRangeMutations'](_0xd5858d,_0x3948b0),_0x363c1e=this[_0xd0b5ff(0x1d0)][_0xd0b5ff(0x1e1)](_0xe8193e);if(_0x363c1e&&_0x47b2cb){const _0x52e03c={..._0x363c1e,'range':_0x47b2cb};this[_0xd0b5ff(0x1d0)][_0xd0b5ff(0x1c8)](_0xe8193e,_0x52e03c),_0xee57ca(()=>{const _0x4d2664=_0xd0b5ff,_0xbb05a0=this[_0x4d2664(0x24e)][_0x4d2664(0x13a)](_0x47b2cb,_0x4c7e38=>(_0xbb05a0[_0x4d2664(0x261)](),_0x6b3d66(_0x4c7e38,_0xe8193e,_0x6c61b5,_0x47b2cb)));_0x12f7e7['add'](_0xbb05a0);});}return{'redos':[],'undos':[]};};this[_0x2fcbc8(0x1d0)][_0x2fcbc8(0x34b)]((_0x4db874,_0x3ada6b)=>{const _0x25c6d0=_0x2fcbc8,{range:_0x194241,sheetID:_0x7f8437}=_0x4db874,_0x303ae2=this[_0x25c6d0(0x24e)][_0x25c6d0(0x13a)](_0x194241,_0x2c0835=>(_0x303ae2['dispose'](),_0x6b3d66(_0x2c0835,_0x3ada6b,_0x7f8437,_0x194241)));_0x12f7e7['add'](_0x303ae2);});};this['disposeWithMe'](a[_0x41b42e(0x204)](this[_0x41b42e(0x1f1)][_0x41b42e(0x1be)](()=>{_0x1f7050();})));}[_0x3da993(0x212)](){const _0x4f8183=_0x3da993;var _0x5dcfd8,_0x3f68c0;if(this[_0x4f8183(0x181)]=!0x0,((_0x5dcfd8=this[_0x4f8183(0x366)]['getFocusedUnit']())==null?void 0x0:_0x5dcfd8[_0x4f8183(0x2b1)]())!==this[_0x4f8183(0x36a)])return;const _0x385d23=(_0x3f68c0=this[_0x4f8183(0x1ea)][_0x4f8183(0x1e1)](g[_0x4f8183(0x234)])['getCurrentSelections']())==null?void 0x0:_0x3f68c0[0x0],_0x13a5a8=this['_univerInstanceService'][_0x4f8183(0x1d1)](a['UniverInstanceType'][_0x4f8183(0x2e9)])['getActiveSheet']();_0x385d23&&_0x13a5a8&&this[_0x4f8183(0x29e)](_0x13a5a8['getSheetId'](),_0x385d23);}[_0x3da993(0x22e)](){const _0x22f22d=_0x3da993;this[_0x22f22d(0x181)]=!0x1;}};Se=it([A(0x2,a[_0x3da993(0x329)](a['Injector'])),A(0x3,a[_0x3da993(0x329)](me)),A(0x4,a[_0x3da993(0x329)](u[_0x3da993(0x2e3)])),A(0x5,a[_0x3da993(0x32d)]),A(0x6,a[_0x3da993(0x394)]),A(0x7,a[_0x3da993(0x329)](g[_0x3da993(0x2e7)]))],Se);var at=Object[_0x3da993(0x1a0)],ct=(_0x522e6a,_0x477246,_0x138bb1,_0xcc2cf1)=>{for(var _0x5ec2b7=_0xcc2cf1>0x1?void 0x0:_0xcc2cf1?at(_0x477246,_0x138bb1):_0x477246,_0x59d6f7=_0x522e6a['length']-0x1,_0x474159;_0x59d6f7>=0x0;_0x59d6f7--)(_0x474159=_0x522e6a[_0x59d6f7])&&(_0x5ec2b7=_0x474159(_0x5ec2b7)||_0x5ec2b7);return _0x5ec2b7;},ie=(_0xab9ff0,_0x110992)=>(_0x5a4197,_0x541e81)=>_0x110992(_0x5a4197,_0x541e81,_0xab9ff0);let x=class extends a[_0x3da993(0x1b0)]{constructor(_0x4b1ae7,_0x4db026,_0x304a7f){const _0x141ddb=_0x3da993;super(),h(this,_0x141ddb(0x363),new Map()),h(this,_0x141ddb(0x162),new d[(_0x141ddb(0x30a))]()),(this[_0x141ddb(0x366)]=_0x4b1ae7,this['_injector']=_0x4db026,this[_0x141ddb(0x13c)]=_0x304a7f,this[_0x141ddb(0x306)]());}[_0x3da993(0x261)](){const _0x5f0056=_0x3da993;super['dispose'](),this[_0x5f0056(0x162)][_0x5f0056(0x281)](),this['_entities'][_0x5f0056(0x34b)](_0x53413f=>_0x53413f[_0x5f0056(0x261)]());}[_0x3da993(0x362)](_0x5512e){const _0x5757d6=_0x3da993;return this[_0x5757d6(0x363)]['has'](_0x5512e)?this['_entities'][_0x5757d6(0x1e1)](_0x5512e)['cursorInfo$']:this[_0x5757d6(0x162)][_0x5757d6(0x386)](d[_0x5757d6(0x259)](_0x2f7f46=>_0x2f7f46[_0x5757d6(0x36a)]===_0x5512e),d[_0x5757d6(0x31f)](_0x3052c2=>_0x3052c2[_0x5757d6(0x35c)]));}[_0x3da993(0x306)](){const _0x55faf3=_0x3da993;this[_0x55faf3(0x366)]['getTypeOfUnitAdded$'](a[_0x55faf3(0x144)][_0x55faf3(0x2e9)])['pipe'](d[_0x55faf3(0x32e)](this[_0x55faf3(0x21a)]))[_0x55faf3(0x1be)](async _0x37df25=>{const _0x1c02ca=_0x55faf3,_0x540954=_0x37df25[_0x1c02ca(0x2b1)](),_0x109c15=await this[_0x1c02ca(0x1f5)](_0x540954);this[_0x1c02ca(0x162)]['next'](_0x109c15),this[_0x1c02ca(0x363)][_0x1c02ca(0x1c8)](_0x540954,_0x109c15);}),this[_0x55faf3(0x366)][_0x55faf3(0x2cd)](a[_0x55faf3(0x144)][_0x55faf3(0x11a)])[_0x55faf3(0x386)](d[_0x55faf3(0x32e)](this['dispose$']))[_0x55faf3(0x386)](d[_0x55faf3(0x259)](_0x5b0805=>!_0x5b0805['getUnitId']()[_0x55faf3(0x17b)]('__')))[_0x55faf3(0x1be)](async _0x185a9c=>{const _0x2d2ba2=_0x55faf3,_0x543008=_0x185a9c[_0x2d2ba2(0x2b1)](),_0x164f6d=await this[_0x2d2ba2(0x26d)](_0x543008);this[_0x2d2ba2(0x162)][_0x2d2ba2(0x1dd)](_0x164f6d),this['_entities'][_0x2d2ba2(0x1c8)](_0x543008,_0x164f6d);}),d[_0x55faf3(0x1c0)](this[_0x55faf3(0x366)][_0x55faf3(0x2b6)](a[_0x55faf3(0x144)]['UNIVER_DOC']),this[_0x55faf3(0x366)][_0x55faf3(0x2b6)](a[_0x55faf3(0x144)][_0x55faf3(0x2e9)]))[_0x55faf3(0x386)](d['takeUntil'](this[_0x55faf3(0x21a)]))[_0x55faf3(0x1be)](_0x247065=>{const _0x10860e=_0x55faf3,_0x351e14=_0x247065[_0x10860e(0x2b1)](),_0x197bdc=this[_0x10860e(0x363)][_0x10860e(0x1e1)](_0x351e14);_0x197bdc&&(_0x197bdc[_0x10860e(0x261)](),this[_0x10860e(0x363)][_0x10860e(0x2c2)](_0x351e14));});}async[_0x3da993(0x1f5)](_0x5408cc){const _0x58bea7=_0x3da993,_0x5e0914=await this[_0x58bea7(0x13c)]['requireSession'](_0x5408cc),_0x961ce7=this['_injector'][_0x58bea7(0x247)](Se,_0x5408cc,_0x5e0914);return _0x961ce7[_0x58bea7(0x28f)](),_0x961ce7;}async[_0x3da993(0x26d)](_0x2c0838){const _0x20004d=_0x3da993,_0x2c2036=await this[_0x20004d(0x13c)][_0x20004d(0x34d)](_0x2c0838),_0x722f26=this[_0x20004d(0x1ea)][_0x20004d(0x247)](Ie,_0x2c0838,_0x2c2036);return _0x722f26[_0x20004d(0x28f)](),_0x722f26;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x3da993(0x329)](a[_0x3da993(0x2cc)])),ie(0x2,a[_0x3da993(0x329)](u[_0x3da993(0x1f8)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x484ceb,_0x3f2514){const _0x13abc6=_0x3da993;let {radius:_0x49be4d,width:_0x435bd2,height:_0xa6f43}=_0x3f2514;_0x49be4d=_0x49be4d!=null?_0x49be4d:0x0,_0x435bd2=_0x435bd2!=null?_0x435bd2:0x1e,_0xa6f43=_0xa6f43!=null?_0xa6f43:0x1e;let _0x291179=0x0,_0x4c7b4d=0x0,_0x177ba7=0x0;_0x291179=_0x4c7b4d=_0x177ba7=Math['min'](_0x49be4d,_0x435bd2/0x2,_0xa6f43/0x2),_0x484ceb['beginPath'](),_0x484ceb[_0x13abc6(0x37e)](_0x291179,0x0),_0x484ceb[_0x13abc6(0x36d)](_0x435bd2-_0x4c7b4d,0x0),_0x484ceb[_0x13abc6(0x13b)](_0x435bd2-_0x4c7b4d,_0x4c7b4d,_0x4c7b4d,Math['PI']*0x3/0x2,0x0,!0x1),_0x484ceb[_0x13abc6(0x36d)](_0x435bd2,_0xa6f43-_0x177ba7),_0x484ceb[_0x13abc6(0x13b)](_0x435bd2-_0x177ba7,_0xa6f43-_0x177ba7,_0x177ba7,0x0,Math['PI']/0x2,!0x1),_0x484ceb['lineTo'](0x0,_0xa6f43),_0x484ceb['lineTo'](0x0,_0x291179),_0x484ceb[_0x13abc6(0x13b)](_0x291179,_0x291179,_0x291179,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x484ceb[_0x13abc6(0x35d)](),_0x3f2514[_0x13abc6(0x25a)]&&(_0x484ceb[_0x13abc6(0x115)](),_0x484ceb['fillStyle']=_0x3f2514['fill'],_0x3f2514[_0x13abc6(0x38e)]==='evenodd'?_0x484ceb[_0x13abc6(0x25a)](_0x13abc6(0x382)):_0x484ceb[_0x13abc6(0x25a)](),_0x484ceb[_0x13abc6(0x19c)]());}class ee extends p['Shape']{constructor(_0x30677a,_0x4d239c){const _0x270e01=_0x3da993;super(_0x30677a,_0x4d239c),h(this,_0x270e01(0x2ac)),h(this,_0x270e01(0x246)),(this['color']=_0x4d239c==null?void 0x0:_0x4d239c['color'],this['text']=_0x4d239c==null?void 0x0:_0x4d239c[_0x270e01(0x246)]);}static[_0x3da993(0x2bb)](_0x137ac3,_0x15d278){const _0xf6bc71=_0x3da993,{text:_0x577571,color:_0x5e1cc5}=_0x15d278;_0x137ac3['save'](),_0x137ac3['font']=_0xf6bc71(0x188);const _0x2509e3=_0x137ac3[_0xf6bc71(0x217)](_0x577571)[_0xf6bc71(0x38c)],_0x9eb26=Math[_0xf6bc71(0x15e)](_0x2509e3+0x2*ne,Re);_t(_0x137ac3,{'height':K,'radius':0x4,'width':_0x9eb26,'fill':_0x5e1cc5}),_0x137ac3[_0xf6bc71(0x348)]=_0xf6bc71(0x252);const _0x39b3fa=ne,_0x1bde1f=K-lt,_0x558f08=Re-0x2*ne;if(_0x2509e3>_0x558f08){let _0x52e75c='',_0x513eed=0x0;for(const _0x470448 of _0x577571){const _0x50a161=_0x137ac3[_0xf6bc71(0x217)](_0x470448)[_0xf6bc71(0x38c)];if(_0x513eed+_0x50a161<=_0x558f08-_0x137ac3['measureText']('...')[_0xf6bc71(0x38c)])_0x52e75c+=_0x470448,_0x513eed+=_0x50a161;else{_0x52e75c+=_0xf6bc71(0x1a3);break;}}_0x137ac3[_0xf6bc71(0x245)](_0x52e75c,_0x39b3fa,_0x1bde1f);}else _0x137ac3[_0xf6bc71(0x245)](_0x577571,_0x39b3fa,_0x1bde1f);_0x137ac3[_0xf6bc71(0x19c)]();}[_0x3da993(0x2af)](_0x25b6f6){const _0x1bf24d=_0x3da993;ee[_0x1bf24d(0x2bb)](_0x25b6f6,this);}}const re=_0x3da993(0x276),ht=_0x3da993(0x12c),ut=_0x3da993(0x141),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x3da993(0x389);class De{constructor(_0x50a356,_0xb45ad3,_0x23515e,_0x800da6){const _0x257454=_0x3da993;h(this,_0x257454(0x1fd),[]),h(this,_0x257454(0x2f1),null),h(this,_0x257454(0x385),null),h(this,_0x257454(0x1ef),null),h(this,_0x257454(0x16d),null),h(this,_0x257454(0x16b),null),(this['_cursor']=_0x50a356,this[_0x257454(0x130)]=_0xb45ad3,this['_docSkeleton']=_0x23515e,this[_0x257454(0x2fb)]=_0x800da6,this['_render']());}set[_0x3da993(0x21c)](_0x2acb7d){const _0x3f6566=_0x3da993;_0x2acb7d?(this[_0x3f6566(0x1ef)]&&this['_anchorDot']['hide'](),this['_textBubble']&&this['_textBubble'][_0x3f6566(0x190)]()):(this[_0x3f6566(0x1ef)]&&this[_0x3f6566(0x1ef)][_0x3f6566(0x190)](),this['_textBubble']&&this[_0x3f6566(0x385)][_0x3f6566(0x2e8)]());}[_0x3da993(0x261)](){const _0x798125=_0x3da993;for(const _0x47c9e0 of this['_shapes'])_0x47c9e0[_0x798125(0x261)]();this[_0x798125(0x385)]&&this[_0x798125(0x385)][_0x798125(0x261)](),this['_anchorDot']&&this[_0x798125(0x1ef)][_0x798125(0x261)](),this[_0x798125(0x2f1)]&&this[_0x798125(0x2f1)][_0x798125(0x261)](),this[_0x798125(0x16b)]&&this[_0x798125(0x16b)]();}[_0x3da993(0x2dd)](){const _0x14a1e9=_0x3da993;var _0x1401dc;const {_docSkeleton:_0x2bdf37,_document:_0x290fbe}=this,{color:_0x82a986,name:_0x17c125,ranges:_0x4be814}=this['_cursor'],_0x323494=_0x290fbe[_0x14a1e9(0x391)](),{docsLeft:_0x517c22,docsTop:_0xfd386}=_0x323494,_0x5de39e=new E['NodePositionConvertToCursor'](_0x323494,_0x2bdf37);for(const {startOffset:_0x21b14a,endOffset:_0x4995fb,rangeType:_0x351544,segmentId:_0xfa3368,segmentPage:_0x597190,collapsed:_0x20d5ab,isActive:_0x58feff}of _0x4be814){const _0xaf037a=_0x2bdf37['findNodePositionByCharIndex'](_0x21b14a,!0x0,_0xfa3368,_0x597190);let _0x318f1e=_0x2bdf37[_0x14a1e9(0x166)](_0x4995fb,!0x0,_0xfa3368,_0x597190);if(_0x318f1e==null&&(_0x318f1e=_0x2bdf37['findNodePositionByCharIndex'](_0x4995fb-0x1,!0x1,_0xfa3368,_0x597190)),_0x58feff){const {contentBoxPointGroup:_0xafc153}=_0x5de39e[_0x14a1e9(0x25e)](_0x318f1e,_0x318f1e);if(_0xafc153[_0x14a1e9(0x23d)]===0x0)continue;this[_0x14a1e9(0x15d)](_0x82a986,_0xafc153,_0x517c22,_0xfd386,_0x17c125),this[_0x14a1e9(0x16b)]=this[_0x14a1e9(0x202)]();}if(_0xaf037a&&_0x318f1e){if(_0x351544===a['DOC_RANGE_TYPE'][_0x14a1e9(0x24a)]){const _0x411cff=new E[(_0x14a1e9(0x27f))](_0x323494,_0x2bdf37),{pointGroup:_0x3f65f0}=(_0x1401dc=_0x411cff['getRangePointData'](_0xaf037a,_0x318f1e))!=null?_0x1401dc:{};if(_0x3f65f0==null||_0x3f65f0[_0x14a1e9(0x23d)]===0x0)continue;this[_0x14a1e9(0x2ea)](_0x82a986,_0x3f65f0,_0x517c22,_0xfd386);}else{if(!_0x20d5ab){const {borderBoxPointGroup:_0x4a1c06}=_0x5de39e[_0x14a1e9(0x25e)](_0xaf037a,_0x318f1e);if(_0x4a1c06[_0x14a1e9(0x23d)]===0x0)continue;this[_0x14a1e9(0x244)](_0x82a986,_0x4a1c06,_0x517c22,_0xfd386);}}}}}[_0x3da993(0x15d)](_0x8ded7a,_0x31e280,_0x839feb,_0x3ba249,_0x2d2a4c){const _0x38c78e=_0x3da993,_0xd502d2=this[_0x38c78e(0x297)](_0x31e280),{left:_0x11a1f1,top:_0x9ec573,height:_0x1a78ec}=_0xd502d2,_0x3a4c81=this[_0x38c78e(0x1cf)](),_0x4b90ca=It/_0x3a4c81,_0x2ddc7b=new p[(_0x38c78e(0x2a5))](re+a[_0x38c78e(0x2c6)]['generateRandomId'](k),{'left':_0x11a1f1+_0x839feb-_0x4b90ca,'top':_0x9ec573+_0x3ba249,'height':_0x1a78ec,'width':dt,'fill':_0x8ded7a||p[_0x38c78e(0x318)](a[_0x38c78e(0x227)]['black'],0x0),'strokeWidth':_0x4b90ca,'stroke':St,'evented':!0x0});this[_0x38c78e(0x2f1)]=_0x2ddc7b,this['_scene'][_0x38c78e(0x18e)](_0x2ddc7b,E[_0x38c78e(0x243)]);const _0x4de760=new p[(_0x38c78e(0x2a5))](re+a['Tools']['generateRandomId'](k),{'left':_0x11a1f1+_0x839feb-_0x4b90ca,'top':_0x9ec573+_0x3ba249-oe/0x2,'height':oe,'width':oe,'fill':_0x8ded7a||p[_0x38c78e(0x318)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x8ded7a||p[_0x38c78e(0x318)](a[_0x38c78e(0x227)]['black'],0x0),'evented':!0x1});this[_0x38c78e(0x1ef)]=_0x4de760,this[_0x38c78e(0x130)][_0x38c78e(0x18e)](_0x4de760,E[_0x38c78e(0x243)]);const _0x3f40e5=new ee(re+a[_0x38c78e(0x2c6)][_0x38c78e(0x121)](k),{'left':_0x11a1f1+_0x839feb-_0x4b90ca,'top':_0x9ec573+_0x3ba249-K,'text':_0x2d2a4c,'color':_0x8ded7a});this['_textBubble']=_0x3f40e5,this[_0x38c78e(0x130)][_0x38c78e(0x18e)](_0x3f40e5,E[_0x38c78e(0x243)]),this[_0x38c78e(0x21c)]=!0x1;}[_0x3da993(0x202)](){const _0xfa9c96=_0x3da993,_0x498179=this['_anchor'][_0xfa9c96(0x1ad)][_0xfa9c96(0x315)](()=>{const _0x2918e8=_0xfa9c96;this[_0x2918e8(0x21c)]=!0x0;}),_0x488848=this['_anchor'][_0xfa9c96(0x2bc)][_0xfa9c96(0x315)](()=>{const _0x29e1e2=_0xfa9c96;this[_0x29e1e2(0x16d)]&&clearTimeout(this[_0x29e1e2(0x16d)]),this[_0x29e1e2(0x16d)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x454131=_0xfa9c96;_0x498179[_0x454131(0x117)](),_0x488848['unsubscribe']();};}[_0x3da993(0x244)](_0x4834cc,_0x520532,_0x59a39f,_0x2926d6){const _0xe1cc9a=_0x3da993,_0x3d55fd=new a['ColorKit'](_0x4834cc)[_0xe1cc9a(0x2ed)](0.2)[_0xe1cc9a(0x2be)](),_0x2cb895=new p[(_0xe1cc9a(0x356))](ht+a[_0xe1cc9a(0x2c6)][_0xe1cc9a(0x121)](k),{'pointsGroup':_0x520532,'fill':_0x3d55fd||p[_0xe1cc9a(0x318)](a['COLORS'][_0xe1cc9a(0x2f2)],0.2),'left':_0x59a39f,'top':_0x2926d6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe1cc9a(0x1fd)][_0xe1cc9a(0x27e)](_0x2cb895),this[_0xe1cc9a(0x130)][_0xe1cc9a(0x18e)](_0x2cb895,E[_0xe1cc9a(0x243)]);}[_0x3da993(0x2ea)](_0x4992ff,_0x317a25,_0x4619c7,_0x120ff8){const _0x520626=_0x3da993,_0x101270=new a[(_0x520626(0x2f3))](_0x4992ff)['setAlpha'](0.2)[_0x520626(0x2be)](),_0x398a0c=new p['RegularPolygon'](ut+a['Tools'][_0x520626(0x121)](k),{'pointsGroup':_0x317a25,'fill':_0x101270||p['getColor'](a[_0x520626(0x227)][_0x520626(0x2f2)],0.2),'left':_0x4619c7,'top':_0x120ff8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x398a0c),this[_0x520626(0x130)]['addObject'](_0x398a0c,E[_0x520626(0x243)]);}[_0x3da993(0x297)](_0x3b45ee){const _0xaff9f4=_0x3b45ee[0x0],_0x51433c=_0xaff9f4[0x0],_0x4543f7=_0xaff9f4[0x2],{x:_0x12f4e7,y:_0x38043e}=_0x51433c,{x:_0x16c6d2,y:_0x3fe87b}=_0x4543f7;return{'left':_0x12f4e7,'top':_0x38043e,'width':_0x16c6d2-_0x12f4e7,'height':_0x3fe87b-_0x38043e};}['_getScale'](){const _0x18bcb6=_0x3da993,{scaleX:_0xa50ca4,scaleY:_0x1b8a11}=this[_0x18bcb6(0x130)][_0x18bcb6(0x193)]();return Math[_0x18bcb6(0x17f)](_0xa50ca4,_0x1b8a11);}}var ft=Object[_0x3da993(0x1a0)],vt=(_0x89055d,_0x55f0dd,_0xf0c75d,_0x2a351b)=>{for(var _0x5ab5de=_0x2a351b>0x1?void 0x0:_0x2a351b?ft(_0x55f0dd,_0xf0c75d):_0x55f0dd,_0x16fe8f=_0x89055d['length']-0x1,_0x9fddd9;_0x16fe8f>=0x0;_0x16fe8f--)(_0x9fddd9=_0x89055d[_0x16fe8f])&&(_0x5ab5de=_0x9fddd9(_0x5ab5de)||_0x5ab5de);return _0x5ab5de;},W=(_0x28fdf7,_0x49b096)=>(_0x38f824,_0x5b4d4b)=>_0x49b096(_0x38f824,_0x5b4d4b,_0x28fdf7);let fe=class extends a['RxDisposable']{constructor(_0x598e9c,_0x2b4793,_0x59e8f5,_0x4baa6f,_0x2dcd23){const _0x5cf98b=_0x3da993;super(),h(this,_0x5cf98b(0x187),[]),h(this,_0x5cf98b(0x359),[]),(this['_context']=_0x598e9c,this[_0x5cf98b(0x1af)]=_0x2b4793,this['_collabCursorController']=_0x59e8f5,this[_0x5cf98b(0x2b5)]=_0x4baa6f,this[_0x5cf98b(0x26b)]=_0x2dcd23,this[_0x5cf98b(0x306)]());}[_0x3da993(0x306)](){const _0x229044=_0x3da993,_0x39af0a=this[_0x229044(0x2b4)]['unitId'],_0x3bd19d=this[_0x229044(0x1af)];this[_0x229044(0x250)](d[_0x229044(0x328)]([this['_collabCursorController'][_0x229044(0x362)](_0x39af0a),this['_themeService'][_0x229044(0x251)]])[_0x229044(0x386)]($[_0x229044(0x255)](([_0x944690,_0x3f2edc])=>({'skeleton':_0x3bd19d[_0x229044(0x35f)](),'cursors':[..._0x944690['values']()][_0x229044(0x1f0)](_0x10b558=>({..._0x10b558,'color':this[_0x229044(0x26b)][_0x229044(0x36c)](_0x10b558['color'])}))})))[_0x229044(0x1be)](_0x5c403d=>{const _0x2e9c08=_0x229044;if(this[_0x2e9c08(0x369)](),_0x5c403d){const {skeleton:_0x2ecff4,cursors:_0x293834}=_0x5c403d;this[_0x2e9c08(0x25b)](_0x2ecff4,_0x293834);}})),this[_0x229044(0x16c)](),this[_0x229044(0x1ca)]();}['_updateCollabCursors'](_0x489577,_0x191c2f){const _0x5f44ca=_0x3da993,{scene:_0x1cfc2b,mainComponent:_0x80e3a0}=this[_0x5f44ca(0x2b4)],_0x1ca919=_0x191c2f[_0x5f44ca(0x255)](_0x5462fd=>new De(_0x5462fd,_0x1cfc2b,_0x489577,_0x80e3a0));this[_0x5f44ca(0x187)]=_0x1ca919,this[_0x5f44ca(0x359)]=_0x191c2f;}['_refreshCollabCursors'](){const _0x250eed=_0x3da993;this[_0x250eed(0x369)]();const {scene:_0x1c507b,mainComponent:_0x5ad96c}=this['_context'],_0x5f7332=this[_0x250eed(0x1af)]['getSkeleton'](),_0x3c5a02=this[_0x250eed(0x359)]['map'](_0x56427c=>new De(_0x56427c,_0x1c507b,_0x5f7332,_0x5ad96c));this[_0x250eed(0x187)]=_0x3c5a02;}[_0x3da993(0x369)](){const _0x2ab45d=_0x3da993;this['_cursorShapes'][_0x2ab45d(0x34b)](_0x26f60a=>_0x26f60a[_0x2ab45d(0x261)]()),this['_cursorShapes']=[];}[_0x3da993(0x1ca)](){const _0xee0554=_0x3da993,_0x5d1cc6=[E[_0xee0554(0x325)]['id']];this[_0xee0554(0x250)](this[_0xee0554(0x2b5)][_0xee0554(0x192)](_0x3deaa5=>{const _0x7b62f9=_0xee0554;_0x5d1cc6[_0x7b62f9(0x17e)](_0x3deaa5['id'])&&_0x3deaa5['params']['unitId']===this['_context'][_0x7b62f9(0x372)]&&this[_0x7b62f9(0x132)]();}));}[_0x3da993(0x16c)](){const _0xdfb229=_0x3da993;this['disposeWithMe'](a[_0xdfb229(0x291)](this[_0xdfb229(0x2b4)][_0xdfb229(0x37d)][_0xdfb229(0x1c3)])[_0xdfb229(0x386)]($[_0xdfb229(0x259)](_0x4fdaa0=>_0x4fdaa0[_0xdfb229(0x1cb)]===p[_0xdfb229(0x14c)]['resize']),$['throttleTime'](0x10))['subscribe'](()=>{const _0x25ce36=_0xdfb229;this[_0x25ce36(0x132)]();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x3da993(0x1a9)])),W(0x2,a[_0x3da993(0x329)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x3da993(0x329)](a[_0x3da993(0x376)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x1c14ad,_0x427e47){const _0x2476a3=_0x3da993;super(_0x1c14ad,_0x427e47),h(this,'_color'),h(this,_0x2476a3(0x32f),!0x1),h(this,_0x2476a3(0x2d1)),h(this,_0x2476a3(0x2db),''),h(this,'_labelPosition',_0x2476a3(0x31e)),h(this,_0x2476a3(0x1d5)),(_0x427e47&&this[_0x2476a3(0x2a9)](_0x427e47),this[_0x2476a3(0x1ad)][_0x2476a3(0x315)](()=>this[_0x2476a3(0x2a9)]({'hovered':!0x0})),this[_0x2476a3(0x2bc)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3da993(0x2a9)](_0x32dfc9){const _0x6100c6=_0x3da993;var _0x5ad088,_0x140846,_0x23bad9,_0x311867,_0x29ed86,_0x5ad190;this[_0x6100c6(0x27d)]=(_0x5ad088=_0x32dfc9[_0x6100c6(0x2ac)])!=null?_0x5ad088:this['_color'],this[_0x6100c6(0x32f)]=(_0x140846=_0x32dfc9[_0x6100c6(0x30d)])!=null?_0x140846:this[_0x6100c6(0x32f)],this[_0x6100c6(0x2d1)]=(_0x23bad9=_0x32dfc9[_0x6100c6(0x282)])!=null?_0x23bad9:this[_0x6100c6(0x2d1)],this[_0x6100c6(0x2db)]=(_0x311867=_0x32dfc9['name'])!=null?_0x311867:this['_name'],this[_0x6100c6(0x25c)]=(_0x29ed86=_0x32dfc9[_0x6100c6(0x165)])!=null?_0x29ed86:this[_0x6100c6(0x25c)],this[_0x6100c6(0x1d5)]=(_0x5ad190=_0x32dfc9['backgroundColor'])!=null?_0x5ad190:this[_0x6100c6(0x1d5)],this[_0x6100c6(0x13d)]({'width':_0x32dfc9[_0x6100c6(0x38c)],'height':_0x32dfc9[_0x6100c6(0x241)]});}[_0x3da993(0x361)](_0x2d6476){const _0x48f5e0=_0x3da993,{row:_0x9a62d6,column:_0x339722}=_0x2d6476;if(_0x9a62d6>=this['_range'][_0x48f5e0(0x2a8)]&&_0x9a62d6<=this[_0x48f5e0(0x2d1)][_0x48f5e0(0x232)]&&_0x339722>=this['_range'][_0x48f5e0(0x326)]&&_0x339722<=this[_0x48f5e0(0x2d1)][_0x48f5e0(0x18b)]){this[_0x48f5e0(0x2a9)]({'hovered':!0x0});return;}this[_0x48f5e0(0x2a9)]({'hovered':!0x1});}[_0x3da993(0x367)](_0x344c83){return!0x1;}[_0x3da993(0x2af)](_0x2cf1b2){const _0x56b61d=_0x3da993;p['Rect']['drawWith'](_0x2cf1b2,{'width':this[_0x56b61d(0x38c)],'height':this[_0x56b61d(0x241)],'strokeWidth':mt,'stroke':this[_0x56b61d(0x27d)],'evented':!0x1,'fill':this[_0x56b61d(0x1d5)]}),this['_hovered']&&(_0x2cf1b2[_0x56b61d(0x115)](),_0x2cf1b2[_0x56b61d(0x20d)](0x1,0x0,0x0,0x1,this[_0x56b61d(0x38c)],this[_0x56b61d(0x25c)]===_0x56b61d(0x1c2)?0x0:-0x14),ee['drawWith'](_0x2cf1b2,{'text':this[_0x56b61d(0x2db)],'color':this['_color']}),_0x2cf1b2[_0x56b61d(0x19c)]());}}var Ct=Object[_0x3da993(0x1a0)],pt=(_0x28b6d7,_0xdc71ec,_0x9c9fe3,_0x548b5d)=>{for(var _0x44e2d2=_0x548b5d>0x1?void 0x0:_0x548b5d?Ct(_0xdc71ec,_0x9c9fe3):_0xdc71ec,_0x27b38e=_0x28b6d7['length']-0x1,_0x3eda92;_0x27b38e>=0x0;_0x27b38e--)(_0x3eda92=_0x28b6d7[_0x27b38e])&&(_0x44e2d2=_0x3eda92(_0x44e2d2)||_0x44e2d2);return _0x44e2d2;},ae=(_0x574683,_0x146823)=>(_0x70b3ee,_0xc0a264)=>_0x146823(_0x70b3ee,_0xc0a264,_0x574683);const Et=0x1389;let ve=class extends a[_0x3da993(0x1b0)]{constructor(_0x24edb3,_0x35dce4,_0x5c14f0,_0x59fc69){const _0x4ec911=_0x3da993;super(),h(this,_0x4ec911(0x359),new Set()),h(this,_0x4ec911(0x22b),null),(this['_context']=_0x24edb3,this['_sheetSkeletonManagerService']=_0x35dce4,this[_0x4ec911(0x2d6)]=_0x5c14f0,this['_themeService']=_0x59fc69,this['_init']());}['_init'](){const _0x55d8a6=_0x3da993;this[_0x55d8a6(0x2c3)][_0x55d8a6(0x226)][_0x55d8a6(0x386)]($[_0x55d8a6(0x32e)](this[_0x55d8a6(0x21a)]),$[_0x55d8a6(0x31f)](_0xdac81f=>{const _0x158c60=_0x55d8a6;if(_0xdac81f){const _0x1cad85=_0xdac81f[_0x158c60(0x219)];return d[_0x158c60(0x328)](this[_0x158c60(0x2d6)][_0x158c60(0x362)](this['_context']['unitId']),this[_0x158c60(0x26b)][_0x158c60(0x251)])[_0x158c60(0x386)]($[_0x158c60(0x255)](([_0x2bd840,_0x21c3c1])=>{const _0x5bc6c3=_0x158c60,_0x4112d9=new Map();return _0x2bd840[_0x5bc6c3(0x34b)]((_0x47fc77,_0x3f6f15)=>{const _0x3ad491=_0x5bc6c3;if(_0x47fc77[_0x3ad491(0x286)]===_0x1cad85){const _0x595fee={..._0x47fc77};_0x595fee['color']=this[_0x3ad491(0x26b)][_0x3ad491(0x36c)](_0x47fc77[_0x3ad491(0x2ac)]),_0x4112d9[_0x3ad491(0x1c8)](_0x3f6f15,_0x595fee);}}),{'skeleton':_0xdac81f,'cursors':_0x4112d9};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x55d8a6(0x1be)](({skeleton:_0xb03bea,cursors:_0x32b41d})=>{const _0x1dd668=_0x55d8a6;this[_0x1dd668(0x369)](),_0xb03bea&&this[_0x1dd668(0x25b)](_0xb03bea,_0x32b41d);}),this[_0x55d8a6(0x2c3)][_0x55d8a6(0x226)]['subscribe'](_0x551048=>{const _0x46c90a=_0x55d8a6;if(_0x551048==null)return;const {skeleton:_0x59ac75}=_0x551048,{scene:_0x1360c9}=this[_0x46c90a(0x2b4)];_0x1360c9['onPointerMove$'][_0x46c90a(0x315)](a[_0x46c90a(0x153)](_0x105c04=>{const _0x25f569=_0x46c90a;var _0xa03b37,_0x5add4c;const {offsetX:_0x3bd789,offsetY:_0x423ea5}=_0x105c04,{x:_0x18d53b,y:_0x948236}=_0x1360c9['getRelativeToViewportCoord'](p[_0x25f569(0x2ad)]['FromArray']([_0x3bd789,_0x423ea5])),{scaleX:_0x3d2656,scaleY:_0x27cca6}=_0x1360c9[_0x25f569(0x193)](),_0x3281d8=_0x1360c9[_0x25f569(0x290)](p[_0x25f569(0x148)]['VIEW_MAIN']),_0x55b38a=_0x1360c9['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x25f569(0x310)]([_0x18d53b,_0x948236]),_0x3281d8),_0x1a4b01=_0x59ac75[_0x25f569(0x185)](_0x3bd789,_0x423ea5,_0x3d2656,_0x27cca6,_0x55b38a);((_0xa03b37=this[_0x25f569(0x22b)])==null?void 0x0:_0xa03b37[_0x25f569(0x168)])===_0x1a4b01[_0x25f569(0x168)]&&((_0x5add4c=this['_lastPointer'])==null?void 0x0:_0x5add4c[_0x25f569(0x2e4)])===_0x1a4b01[_0x25f569(0x2e4)]||this['_cursors']['forEach'](_0x1bb6bd=>{_0x1bb6bd['onMouseMove'](_0x1a4b01);});},0x64));});}[_0x3da993(0x25b)](_0x500949,_0x427dc5){const _0x4eb690=_0x3da993;var _0x1edec9;const _0x4b24a8=(_0x1edec9=this[_0x4eb690(0x2c3)]['getCurrent']())==null?void 0x0:_0x1edec9[_0x4eb690(0x280)];if(!_0x4b24a8)return;const _0x3c8d79=this[_0x4eb690(0x346)]();if(!_0x3c8d79)return;this[_0x4eb690(0x359)][_0x4eb690(0x34b)](_0x20fff1=>{_0x20fff1['makeDirty']();});const {scene:_0x12e717}=_0x3c8d79,_0x46cd96=bt(Array[_0x4eb690(0x2b0)](_0x427dc5[_0x4eb690(0x2c7)]()))['map'](_0x52fa08=>{const _0x892b5f=_0x4eb690,{color:_0x2e2c2e,range:_0x36f246,name:_0x44214f,selection:_0xa9eb94,sheetID:_0x5de46a}=_0x52fa08,{startColumn:_0x4ba024,startRow:_0x55e599,endColumn:_0x22e3b0,endRow:_0x4b5220}=_0x36f246,_0x616640=X[_0x892b5f(0x1e9)](_0x55e599,_0x4ba024,_0x12e717,_0x4b24a8),_0x45824e=X['getCoordByCell'](_0x4b5220,_0x22e3b0,_0x12e717,_0x4b24a8),{columnHeaderHeightAndMarginTop:_0x20e48c}=_0x4b24a8,{startX:_0x42b9c8,startY:_0x42e436}=_0x616640,{endX:_0x310a2b,endY:_0xf352c8}=_0x45824e,_0x54c409=_0x310a2b-_0x42b9c8,_0x37d2f7=_0xf352c8-_0x42e436,_0x309e8e={'labelPosition':_0x42e436-_0x20e48c>=K?_0x892b5f(0x31e):_0x892b5f(0x1c2),'sheetID':_0x5de46a,'range':_0x36f246,'color':_0x2e2c2e,'name':_0x44214f,'selection':_0xa9eb94,'left':_0x42b9c8,'top':_0x42e436,'width':_0x54c409,'height':_0x37d2f7,'evented':!0x1,'zIndex':Et};return new we(_0x44214f,_0x309e8e);});_0x12e717[_0x4eb690(0x24b)](_0x46cd96,gt),this[_0x4eb690(0x359)]=new Set(_0x46cd96);}[_0x3da993(0x369)](){const _0x12c995=_0x3da993;var _0x3376eb;(_0x3376eb=this['_cursors'])==null||_0x3376eb[_0x12c995(0x34b)](_0x3f9c9a=>_0x3f9c9a['dispose']());}[_0x3da993(0x346)](){const _0x39c0be=_0x3da993;return X[_0x39c0be(0x24d)](this[_0x39c0be(0x2b4)][_0x39c0be(0x1d4)],this[_0x39c0be(0x2b4)]);}};ve=pt([ae(0x1,a[_0x3da993(0x329)](X[_0x3da993(0x284)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x3da993(0x329)](a['ThemeService']))],ve);function bt(_0x54233c){const _0x1602af=_0x3da993,_0xfdcf7f=new Map();return _0x54233c[_0x1602af(0x34b)](_0x7ef6c1=>{const _0x1e00b8=_0x1602af;if(_0xfdcf7f[_0x1e00b8(0x151)](_0x7ef6c1[_0x1e00b8(0x1c7)])){const _0x407f29=_0xfdcf7f[_0x1e00b8(0x1e1)](_0x7ef6c1[_0x1e00b8(0x1c7)]);_0x407f29[_0x1e00b8(0x283)]+=',\x20'+_0x7ef6c1[_0x1e00b8(0x283)];}else _0xfdcf7f['set'](_0x7ef6c1['selection'],_0x7ef6c1);}),Array[_0x1602af(0x2b0)](_0xfdcf7f[_0x1602af(0x2c7)]());}var b=function(){return b=Object['assign']||function(_0x26ea56){const _0x390945=_0x3cf9;for(var _0x517cc5,_0x506aeb=0x1,_0xe9ba45=arguments[_0x390945(0x23d)];_0x506aeb<_0xe9ba45;_0x506aeb++){_0x517cc5=arguments[_0x506aeb];for(var _0x3b0f1e in _0x517cc5)Object[_0x390945(0x289)]['hasOwnProperty']['call'](_0x517cc5,_0x3b0f1e)&&(_0x26ea56[_0x3b0f1e]=_0x517cc5[_0x3b0f1e]);}return _0x26ea56;},b['apply'](this,arguments);},Ot=function(_0x4d7f70,_0x40b4d7){const _0x301726=_0x3da993;var _0x35e508={};for(var _0x482688 in _0x4d7f70)Object['prototype'][_0x301726(0x131)][_0x301726(0x125)](_0x4d7f70,_0x482688)&&_0x40b4d7[_0x301726(0x330)](_0x482688)<0x0&&(_0x35e508[_0x482688]=_0x4d7f70[_0x482688]);if(_0x4d7f70!=null&&typeof Object[_0x301726(0x2da)]==_0x301726(0x2c1)){for(var _0x29711b=0x0,_0x482688=Object[_0x301726(0x2da)](_0x4d7f70);_0x29711b<_0x482688[_0x301726(0x23d)];_0x29711b++)_0x40b4d7[_0x301726(0x330)](_0x482688[_0x29711b])<0x0&&Object['prototype'][_0x301726(0x18a)][_0x301726(0x125)](_0x4d7f70,_0x482688[_0x29711b])&&(_0x35e508[_0x482688[_0x29711b]]=_0x4d7f70[_0x482688[_0x29711b]]);}return _0x35e508;},pe=M[_0x3da993(0x142)](function(_0x514f47,_0x5c1c31){const _0x482c9d=_0x3da993;var _0x31413b=_0x514f47[_0x482c9d(0x303)],_0x502a13=_0x514f47['id'],_0x12feed=_0x514f47['className'],_0x17692d=_0x514f47[_0x482c9d(0x1fa)],_0x1d8deb=Ot(_0x514f47,[_0x482c9d(0x303),'id',_0x482c9d(0x170),_0x482c9d(0x1fa)]),_0x408b8c=_0x482c9d(0x195)[_0x482c9d(0x196)](_0x502a13,'\x20')[_0x482c9d(0x196)](_0x12feed||'')['trim'](),_0x492aec=M[_0x482c9d(0x14e)]('_'[_0x482c9d(0x196)](Dt()));return Ae(_0x31413b,''['concat'](_0x502a13),{'defIds':_0x31413b[_0x482c9d(0x305)],'idSuffix':_0x492aec[_0x482c9d(0x296)]},b({'ref':_0x5c1c31,'className':_0x408b8c},_0x1d8deb),_0x17692d);});function Ae(_0x502b33,_0x2ccb43,_0xde2a23,_0x2cd164,_0x4c2170){const _0x5587c4=_0x3da993;return M[_0x5587c4(0x186)](_0x502b33[_0x5587c4(0x1ff)],b(b({'key':_0x2ccb43},Tt(_0x502b33,_0xde2a23,_0x4c2170)),_0x2cd164),(Rt(_0x502b33,_0xde2a23)[_0x5587c4(0x35b)]||[])[_0x5587c4(0x255)](function(_0x344b20,_0x412b2f){const _0x48eb25=_0x5587c4;return Ae(_0x344b20,''[_0x48eb25(0x196)](_0x2ccb43,'-')['concat'](_0x502b33[_0x48eb25(0x1ff)],'-')[_0x48eb25(0x196)](_0x412b2f),_0xde2a23,void 0x0,_0x4c2170);}));}function Tt(_0x4e103d,_0x313544,_0x18cf17){const _0x54226f=_0x3da993;var _0x4055f2=b({},_0x4e103d[_0x54226f(0x336)]);_0x18cf17!=null&&_0x18cf17['colorChannel1']&&_0x4055f2[_0x54226f(0x25a)]==='colorChannel1'&&(_0x4055f2[_0x54226f(0x25a)]=_0x18cf17['colorChannel1']),_0x4e103d[_0x54226f(0x1ff)]===_0x54226f(0x345)&&_0x4055f2['id']&&(_0x4055f2['id']=_0x4055f2['id']+_0x313544[_0x54226f(0x157)]),Object['entries'](_0x4055f2)['forEach'](function(_0x59018a){const _0xb719c0=_0x54226f;var _0x493686=_0x59018a[0x0],_0x186b97=_0x59018a[0x1];_0x493686===_0xb719c0(0x345)&&typeof _0x186b97=='string'&&(_0x4055f2[_0x493686]=_0x186b97[_0xb719c0(0x22a)](/url\(#(.*)\)/,_0xb719c0(0x34e)['concat'](_0x313544['idSuffix'],')')));});var _0x34261d=_0x313544[_0x54226f(0x305)];return!_0x34261d||_0x34261d[_0x54226f(0x23d)]===0x0||(_0x4e103d[_0x54226f(0x1ff)]===_0x54226f(0x138)&&_0x4055f2['xlink:href']&&(_0x4055f2[_0x54226f(0x294)]=_0x4055f2[_0x54226f(0x294)]+_0x313544[_0x54226f(0x157)]),Object[_0x54226f(0x258)](_0x4055f2)[_0x54226f(0x34b)](function(_0x99ee98){const _0x1e99fa=_0x54226f;var _0x3f8247=_0x99ee98[0x0],_0x5096b9=_0x99ee98[0x1];typeof _0x5096b9==_0x1e99fa(0x18f)&&(_0x4055f2[_0x3f8247]=_0x5096b9['replace'](/url\(#(.*)\)/,_0x1e99fa(0x34e)[_0x1e99fa(0x196)](_0x313544['idSuffix'],')')));})),_0x4055f2;}function Rt(_0x4c9f80,_0x13c05f){const _0x3fe6f7=_0x3da993;var _0x4a7c31,_0x54d368=_0x13c05f[_0x3fe6f7(0x305)];return!_0x54d368||_0x54d368[_0x3fe6f7(0x23d)]===0x0?_0x4c9f80:_0x4c9f80[_0x3fe6f7(0x1ff)]==='defs'&&(!((_0x4a7c31=_0x4c9f80[_0x3fe6f7(0x35b)])===null||_0x4a7c31===void 0x0)&&_0x4a7c31['length'])?b(b({},_0x4c9f80),{'children':_0x4c9f80[_0x3fe6f7(0x35b)]['map'](function(_0x8345f2){const _0x500b80=_0x3fe6f7;return typeof _0x8345f2[_0x500b80(0x336)]['id']==_0x500b80(0x18f)&&_0x54d368&&_0x54d368[_0x500b80(0x17e)](_0x8345f2[_0x500b80(0x336)]['id'])?b(b({},_0x8345f2),{'attrs':b(b({},_0x8345f2[_0x500b80(0x336)]),{'id':_0x8345f2[_0x500b80(0x336)]['id']+_0x13c05f[_0x500b80(0x157)]})}):_0x8345f2;})}):_0x4c9f80;}function Dt(){const _0x414fa6=_0x3da993;return Math[_0x414fa6(0x199)]()[_0x414fa6(0x1f3)](0x24)[_0x414fa6(0x27c)](0x2,0x8);}pe[_0x3da993(0x268)]=_0x3da993(0x1ce);var Ut={'tag':_0x3da993(0x2d8),'attrs':{'xmlns':_0x3da993(0x111),'fill':_0x3da993(0x262),'viewBox':_0x3da993(0x1d9),'width':_0x3da993(0x1a2),'height':_0x3da993(0x1a2)},'children':[{'tag':'g','attrs':{'clipPath':_0x3da993(0x2d4)},'children':[{'tag':_0x3da993(0x242),'attrs':{'stroke':_0x3da993(0x302),'d':_0x3da993(0x285),'strokeLinecap':_0x3da993(0x2e6),'strokeLinejoin':_0x3da993(0x2e6),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3da993(0x2e5)},'children':[{'tag':_0x3da993(0x242),'attrs':{'fill':_0x3da993(0x2a3),'d':_0x3da993(0x233)}}]}]}],'defIds':[_0x3da993(0x2e5)]},ye=M[_0x3da993(0x142)](function(_0x4500e7,_0x53898d){const _0x2b21df=_0x3da993;return M[_0x2b21df(0x186)](pe,Object['assign']({},_0x4500e7,{'id':_0x2b21df(0x264),'ref':_0x53898d,'icon':Ut}));});ye[_0x3da993(0x268)]='OffLineIcon';var Nt={'tag':_0x3da993(0x2d8),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3da993(0x16e),'width':'1em','height':_0x3da993(0x1a2)},'children':[{'tag':'g','attrs':{'clipPath':_0x3da993(0x17a)},'children':[{'tag':'path','attrs':{'stroke':_0x3da993(0x302),'d':_0x3da993(0x24f),'strokeLinecap':_0x3da993(0x2e6),'strokeLinejoin':_0x3da993(0x2e6),'strokeWidth':1.2}}]},{'tag':_0x3da993(0x33b),'attrs':{},'children':[{'tag':_0x3da993(0x2f4),'attrs':{'id':_0x3da993(0x338)},'children':[{'tag':'path','attrs':{'fill':_0x3da993(0x2a3),'d':_0x3da993(0x233),'transform':_0x3da993(0x160)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x3da993(0x142)](function(_0x28a076,_0x228c39){const _0x1232c5=_0x3da993;return M['createElement'](pe,Object[_0x1232c5(0x122)]({},_0x28a076,{'id':'on-line-icon','ref':_0x228c39,'icon':Nt}));});function _0x3cf9(_0x5db58c,_0x1f9bac){const _0x5bb2bc=_0x5bb2();return _0x3cf9=function(_0x3cf94f,_0xb5697c){_0x3cf94f=_0x3cf94f-0x111;let _0x48ac95=_0x5bb2bc[_0x3cf94f];return _0x48ac95;},_0x3cf9(_0x5db58c,_0x1f9bac);}$e[_0x3da993(0x268)]=_0x3da993(0x331);function Mt(_0xbca3b9){const _0x1ded24=_0x3da993;switch(_0xbca3b9){case u[_0x1ded24(0x178)][_0x1ded24(0x21d)]:return _0x1ded24(0x355);case u['CollaborationStatus'][_0x1ded24(0x22d)]:return _0x1ded24(0x1f6);case u[_0x1ded24(0x178)][_0x1ded24(0x31c)]:return _0x1ded24(0x2f6);case u[_0x1ded24(0x178)][_0x1ded24(0x159)]:return _0x1ded24(0x155);case u[_0x1ded24(0x178)]['AWAITING']:case u[_0x1ded24(0x178)][_0x1ded24(0x238)]:return _0x1ded24(0x339);case u['CollaborationStatus'][_0x1ded24(0x2fd)]:case u['CollaborationStatus']['PENDING']:return _0x1ded24(0x221);}}function xe(_0x2347d1){const _0xf60b66=_0x3da993,{status$:_0x6d663a}=_0x2347d1,_0x306a7a=O[_0xf60b66(0x392)](_0x6d663a,u[_0xf60b66(0x178)][_0xf60b66(0x159)]),_0xe0541=O[_0xf60b66(0x32c)](a[_0xf60b66(0x2c0)]),_0x9fe231=O[_0xf60b66(0x32c)](u[_0xf60b66(0x1f8)]),_0x67ab72=_0x306a7a!==u[_0xf60b66(0x178)]['OFFLINE'],_0x2affec=_0xe0541['t'](Mt(_0x306a7a)),_0x123ad5=_0x67ab72?P['jsx']($e,{}):P[_0xf60b66(0x147)](ye,{}),_0x1b797a=M[_0xf60b66(0x383)](()=>{const _0x4b5ce1=_0xf60b66;_0x67ab72||_0x9fe231[_0x4b5ce1(0x324)]();},[_0x67ab72,_0x9fe231]);function _0x3ec02d(){const _0x22a78d=_0xf60b66;return P[_0x22a78d(0x393)](_0x22a78d(0x2cb),{'className':_0x22a78d(0x288),'onClick':_0x1b797a,'children':[P[_0x22a78d(0x147)](_0x22a78d(0x2cb),{'className':D['clsx'](_0x22a78d(0x352),{'univer-text-green-500':_0x67ab72,'univer-text-red-500':!_0x67ab72}),'children':_0x123ad5}),P['jsx'](_0x22a78d(0x2cb),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2affec})]});}return _0x67ab72?_0x3ec02d():P[_0xf60b66(0x147)](D[_0xf60b66(0x319)],{'title':_0xe0541['t'](_0xf60b66(0x1b2)),'children':_0x3ec02d()});}var Lt=Object[_0x3da993(0x1a0)],Pt=(_0x17355f,_0x47f767,_0x2565d6,_0x5a8e6a)=>{for(var _0x3b898f=_0x5a8e6a>0x1?void 0x0:_0x5a8e6a?Lt(_0x47f767,_0x2565d6):_0x47f767,_0x30f05b=_0x17355f['length']-0x1,_0x578d26;_0x30f05b>=0x0;_0x30f05b--)(_0x578d26=_0x17355f[_0x30f05b])&&(_0x3b898f=_0x578d26(_0x3b898f)||_0x3b898f);return _0x3b898f;},V=(_0x35458f,_0x4b9e3a)=>(_0x182dd1,_0x4594da)=>_0x4b9e3a(_0x182dd1,_0x4594da,_0x35458f);exports[_0x3da993(0x15f)]=class extends a[_0x3da993(0x230)]{constructor(_0x398dda,_0x29f8e2,_0x4f6982,_0xd0afe0){const _0x3d0f2a=_0x3da993;super(),h(this,_0x3d0f2a(0x327),new d['BehaviorSubject'](u[_0x3d0f2a(0x178)][_0x3d0f2a(0x159)])),(this[_0x3d0f2a(0x366)]=_0x398dda,this[_0x3d0f2a(0x1ea)]=_0x29f8e2,this[_0x3d0f2a(0x11c)]=_0x4f6982,this[_0x3d0f2a(0x375)]=_0xd0afe0,this[_0x3d0f2a(0x357)](),this[_0x3d0f2a(0x304)]());}[_0x3da993(0x304)](){const _0x132524=_0x3da993;this['disposeWithMe'](this[_0x132524(0x366)][_0x132524(0x19e)]['pipe'](d[_0x132524(0x31f)](()=>{const _0x299ee5=_0x132524,_0x67d15a=this['_univerInstanceService'][_0x299ee5(0x145)]();return _0x67d15a?this[_0x299ee5(0x11c)]['getCollabEntity$'](_0x67d15a[_0x299ee5(0x2b1)]()):d['of'](null);}),d['switchMap'](_0x106f21=>_0x106f21?_0x106f21['status$']:d['of'](u[_0x132524(0x178)][_0x132524(0x159)])))[_0x132524(0x1be)](_0x44eb59=>{const _0x17d3d2=_0x132524;this[_0x17d3d2(0x327)]['next'](_0x44eb59);}));}[_0x3da993(0x357)](){const _0x10ab44=_0x3da993;this[_0x10ab44(0x250)](this[_0x10ab44(0x375)][_0x10ab44(0x22f)](O[_0x10ab44(0x1f9)]['HEADER_MENU'],()=>O[_0x10ab44(0x16a)](wt({'status$':this[_0x10ab44(0x327)][_0x10ab44(0x15a)]()}),this[_0x10ab44(0x1ea)])));}},exports[_0x3da993(0x15f)]=Pt([V(0x0,a[_0x3da993(0x32d)]),V(0x1,a['Inject'](a[_0x3da993(0x2cc)])),V(0x2,a[_0x3da993(0x329)](u[_0x3da993(0x1ed)])),V(0x3,O[_0x3da993(0x224)])],exports['DesktopCollaborationStatusDisplayController']);function wt(_0x1a4be6){const {status$:_0x2f004d}=_0x1a4be6;return function(){const _0x2201a1=_0x3cf9;return P[_0x2201a1(0x147)](xe,{'status$':_0x2f004d});};}var At=Object[_0x3da993(0x1a0)],yt=(_0x11f946,_0xbb3f89,_0x109353,_0x4d4b15)=>{for(var _0x4f58da=_0x4d4b15>0x1?void 0x0:_0x4d4b15?At(_0xbb3f89,_0x109353):_0xbb3f89,_0x19f8a4=_0x11f946['length']-0x1,_0x469d36;_0x19f8a4>=0x0;_0x19f8a4--)(_0x469d36=_0x11f946[_0x19f8a4])&&(_0x4f58da=_0x469d36(_0x4f58da)||_0x4f58da);return _0x4f58da;},y=(_0x2417c9,_0x5286c5)=>(_0x17ffa9,_0x34bec8)=>_0x5286c5(_0x17ffa9,_0x34bec8,_0x2417c9);let q=class extends a[_0x3da993(0x230)]{constructor(_0x7ca26a,_0x80e423,_0x3507ba,_0x4b2398,_0x922604,_0x498c79){const _0x2e3f19=_0x3da993;super(),this[_0x2e3f19(0x321)]=_0x7ca26a,this[_0x2e3f19(0x309)]=_0x80e423,this[_0x2e3f19(0x16f)]=_0x3507ba,this['_messageService']=_0x4b2398,this[_0x2e3f19(0x257)]=_0x922604,this[_0x2e3f19(0x377)]=_0x498c79,this['_setupBeforeClosingHandler'](),this[_0x2e3f19(0x1d7)]();}[_0x3da993(0x2b8)](){const _0x9a76df=_0x3da993;this[_0x9a76df(0x250)](this[_0x9a76df(0x321)][_0x9a76df(0x13e)](()=>{const _0x5e25e6=_0x9a76df;if(this[_0x5e25e6(0x309)][_0x5e25e6(0x180)]['size'])return this[_0x5e25e6(0x377)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x3da993(0x1d7)](){const _0x545f44=_0x3da993;this[_0x545f44(0x250)](this[_0x545f44(0x16f)][_0x545f44(0x370)][_0x545f44(0x1be)](_0x494d60=>{const _0x20353c=_0x545f44;_0x494d60['id']===u[_0x20353c(0x29c)][_0x20353c(0x1de)]&&this[_0x20353c(0x189)][_0x20353c(0x190)]({'type':D[_0x20353c(0x124)][_0x20353c(0x198)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x494d60['id']===u[_0x20353c(0x29c)][_0x20353c(0x287)]&&this['_messageService'][_0x20353c(0x190)]({'type':D['MessageType'][_0x20353c(0x198)],'content':this['_localeService']['t'](_0x20353c(0x300))}),_0x494d60['id']===u[_0x20353c(0x29c)]['PERMISSION_DENIED']&&this[_0x20353c(0x257)][_0x20353c(0x190)]({'title':this[_0x20353c(0x377)]['t'](_0x20353c(0x31b)),'content':this['_localeService']['t'](_0x20353c(0x37c)),'type':_0x20353c(0x390),'duration':0x0}),_0x494d60['id']===u[_0x20353c(0x29c)][_0x20353c(0x22d)]&&this['_messageService'][_0x20353c(0x190)]({'type':D[_0x20353c(0x124)]['Error'],'content':this['_localeService']['t'](_0x20353c(0x300))+'('+_0x494d60[_0x20353c(0x260)]+')'}),_0x494d60['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x20353c(0x189)][_0x20353c(0x190)]({'type':D[_0x20353c(0x124)][_0x20353c(0x198)],'content':this[_0x20353c(0x377)]['t'](_0x494d60['data']||'')}),_0x494d60['id']===u[_0x20353c(0x29c)][_0x20353c(0x27b)]&&this['_messageService'][_0x20353c(0x190)]({'type':D['MessageType']['Warning'],'content':this[_0x20353c(0x377)]['t'](_0x20353c(0x378))}),_0x494d60['id']===u[_0x20353c(0x29c)]['SOCKET_FAILED']&&this[_0x20353c(0x189)]['show']({'type':D[_0x20353c(0x124)][_0x20353c(0x210)],'content':this[_0x20353c(0x377)]['t'](_0x20353c(0x2eb))}),_0x494d60['id']===u[_0x20353c(0x29c)][_0x20353c(0x312)]&&this[_0x20353c(0x189)][_0x20353c(0x190)]({'type':D[_0x20353c(0x124)][_0x20353c(0x210)],'content':this[_0x20353c(0x377)]['t'](_0x20353c(0x30e))});}));}};function _0x5bb2(){const _0x2b5e52=['0\x200\x2016\x2016','_httpService','executionId','transformRemoteChangeset','next','OTHER_CLIENT_EDITING','ISocketService','unshift','get','SessionStatus','LICENSE_DISTRO_REJECTED','_renderManagerService','exhaustSavingTask','handleInsertRangeMoveDown','mergeOverrideWithDependencies','_getMergeRange','getCoordByCell','_injector','urlChange$','source','CollaborationController','_getSessionTicket','_anchorDot','flatMap','_cursorInfo$','_saveCache','toString','_scheduleSaving','_startSheetCollabCursor','collabStatus.conflict','green.600','CollaborationSessionService','BuiltInUIPart','extend','setItem','setParam','_shapes','IMessageService','tag','InsertRowCommandId','_onCursorDelete','_handleHover','Failed','toDisposable','_send','unload','_collabCursorState$','_colorIndex','DocStateChangeManagerService','_urlService','getCurrentRevOfUnit','with','transform','_dataLoaderService','getItem','Error','_roomMembers$','_toggleOnline','loadOfflineData','_syncEditingCollabCursorService','getParam','UniverCollaborationClientUIPlugin','measureText','whenReady','sheetId','dispose$','addClipboardHook','_hover','OFFLINE','_initEntityListener','SheetCollabCursorShape','_transformUndoRedoStack','collabStatus.synced','clearTimeout','location','IUIPartsService','YUUMI_URL_COL_OUT_OF_RANGE','currentSkeleton$','COLORS','getStateCache','Optional','replace','_lastPointer','TEXT','CONFLICT','_toggleOffline','registerComponent','Disposable','_scheduleHeartbeat','endRow','M0\x200H16V16H0z','SheetsSelectionsService','RemoveRowCommandId','ISnapshotServerService','saveImage','AWAITING_WITH_PENDING','TOO_MANY_REQUESTS','loadUnit','parse','href','length','_transformService','_setupSubUnitSync','YUUMI_RATE_OVER_LIMIT','height','path','TEXT_RANGE_LAYER_INDEX','_drawTextRange','fillText','text','createInstance','INTERNAL_ERROR','_handleHeartbeatEvent','RECT','addObjects','IURLService','getSheetObject','_refRangeService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','disposeWithMe','currentTheme$','#FFF','BrowserCollaborationSocketService','1204cpZsWn','map','touchDependencies','_notificationService','entries','filter','fill','_updateCollabCursors','_labelPosition','_cachedData','getRangePointData','getActiveRange','data','dispose','none','_imageIoService','off-line-icon','DependentOn','INVITE_CODE_HAS_BEEN_UES','BehaviorSubject','displayName','add','USER_NOT_INVITED_CODE','_themeService','registerRenderModule','_startDocCollabCursor','ILogService','_unitOnClients','PY_RUNTIME_SCRIPT_ERROR','getUnitStatus$','mutations','_scheduleClearOtherTimer','jiqing.500','_heartbeatTimer','collab-text-anchor-','INVALID_ARGUMENT','UnitStatus','actions','CONNECTOR_DATA_TOO_LARGE','SOCKET_FAILED_RETRY','substring','_color','push','NodePositionConvertToRectRange','skeleton','complete','range','name','SheetSkeletonManagerService','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','sheetID','CLOSE_ROOM','univer-flex\x20univer-items-center','prototype','pushState','red.300','send','ticket','createIdentifier','init','getViewport','fromEventSubject','storage','USERS_LEAVE','xlink:href','ONLINE','current','_getAnchorBounding','UNDEFINED','setTimeout','MOBILE_HAS_BEEN_BOUND','addHandlerCallback','CollaborationUIEventId','getLocalCacheKey','_updateLocalCursor','IRemoteInstanceService','syncEditingCollabCursor','roomMembers','_updateSubUnitFromURLParams','white','MOBILE_VERIFY_CODE_MISMATCH','Rect','yellow.400','2wcZnCL','startRow','setShapeProps','YUUMI_SUBSCRIPTION_NOT_FOUND','RichTextEditingMutation','color','Vector2','2673752zGFGHe','_draw','from','getUnitId','Unknown\x20user','ALREADY_EXISTS','_context','_commandService','getTypeOfUnitDisposed$','isTransformMutationsWithChangesetSuccess','_setupBeforeClosingHandler','addEventListener','_memberService','drawWith','onPointerLeave$','_id','toRgbString','_config','LocaleService','function','delete','_sheetSkeletonManagerService','UPDATE_CURSOR','_saveTaskMap','Tools','values','key','split','_session','div','Injector','getTypeOfUnitAdded$','_revisionService','getActiveSheet','collabCursorState$','_range','getMemberID','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','url(#off-line-icon_clip0_910_343)','some','_collabCursorController','getSheetBySheetId','svg','IRenderManagerService','getOwnPropertySymbols','_name','_handleJoinEvent','_render','getRenderById','saveOfflineData','isEditing','YUUMI_AI_RUN_FAILED','_docTransformStateCacheService','MemberService','row','off-line-icon_clip0_910_343','round','RefRangeService','hide','UNIVER_SHEET','_drawRectRange','session.connection-failed','DataLoaderService','setAlpha','ILocalCacheService','setInterval','RemoteUniscriptService','_anchor','black','ColorKit','clipPath','LICENSE_EXPORT_SIZE_EXCEEDED','collabStatus.fetchMiss','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_registerDependencies','NO_OTHER_CLIENTS_EDITING','_instanceService','_document','_docTransformIMECacheService','SYNCED','UNAUTHENTICATED','_handleLeaveEvent','collaboration.closeRoom','getValue','currentColor','icon','_initStatusListener','defIds','_init','UniverCollaborationClientPlugin','ILocalStorageService','_localCacheService','Subject','distinctUntilChanged','CollaborationSocketService','hovered','session.collaboration-timeout','onStarting','FromArray','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','SUBMIT_CHANGESET_TIMEOUT','blue.400','transformMutationsWithChangeset','subscribeEvent','_docTransformSelectionsService','_unitStatus','getColor','Tooltip','EMAIL_HAS_BEEN_BOUND','permission.title','FETCH_MISS','CollaborationUIEventService','top','switchMap','transformIMECache','_beforeCloseService','601468oZqktr','HTTPService','reconnect','SetDocZoomRatioOperation','startColumn','_status$','combineLatest','Inject','DocSelectionManagerService','disableLocalCache','useDependency','IUniverInstanceService','takeUntil','_hovered','indexOf','OnLineIcon','searchParams','CHANGESET_REVISION_CONFILICT','APPLY_NON_SEQUENTIAL_REVISION','docStateChange$','attrs','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','on-line-icon_clip0_910_349','collabStatus.syncing','wsSessionTicketUrl','defs','history','_onRefRangeChange','assignAColorForMemberID','getDocRanges','_onCursorUpdate','_ensureSubject','INVALID_INVITE_CODE','NOT_FOUND','LOGIN_FAILED','mask','_getSheetObject','_transformPreviousActiveRange','fillStyle','getUnhiddenWorksheets','updateOfflineData','forEach','isArray','requireSession','url(#$1','INVITE_CODE_ALREADY_BOUND','post','handleInsertRow','univer-mr-2\x20univer-flex\x20univer-text-xl','debounceTime','YUUMI_ASYNCIO_CANCELLED','collabStatus.offline','RegularPolygon','_initStatusComponent','mapTo','_cursors','params','children','cursorInfo$','closePath','handleIRemoveCol','getSkeleton','deepClone','onMouseMove','getCollabCursors$','_entities','m2Prime','APPLY_DUPLICATED','_univerInstanceService','triggerDblclick','transformStateCache','_removeCollabCursors','unitID','m1Prime','getColorFromTheme','lineTo','Module','newValue','event$','setActiveRange','unitId','textRanges','search','_uiPartsService','ThemeService','_localeService','session.will-retry','getMember','debug','_colorAssignService','permission.content','engine','moveTo','16010IJDuuR','entityInit$','RemoveColCommandId','evenodd','useCallback','CollaborationEvent','_textBubble','pipe','defineProperty','getUniverSheetInstance','rgba(255,\x20255,\x20255,\x200.01)','IConfigService','ENSURE_SNAPSHOT_EXECUTION','width','/run/','fillRule','executeCommand','error','getOffsetConfig','useObservable','jsxs','ICommandService','handleDeleteRangeMoveLeft','[RemoteUniscriptService]:\x20no\x20focused\x20unit','LOCAL_CACHE_INTERVAL_KEY','runId','COMPLETION_FINISHED','_logService','subunit','MoveRangeCommandId','SetWorksheetActivateCommand','http://www.w3.org/2000/svg','LICENSE_MAX_UNITS_EXCEEDED','DeleteRangeMoveUpCommandId','subUnitId','save','getUndoRedoMutationParamsCache','unsubscribe','_localStorageService','ITransformService','UNIVER_DOC','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collaborationController','clearInterval','UNRECOGNIZED','_removeClearOtherTimer','registerDependencies','generateRandomId','assign','getConfig','MessageType','call','19232GcYdok','_clearOtherTimers','fromEvent','OTHER_CLIENTS_EDITING','LICENSE_IMPORT_SIZE_EXCEEDED','_assignedColors','collab-text-range-','handleInsertRangeMoveRight','ACTIVE_UNIT_EVENT_CHANNEL','IBeforeCloseService','_scene','hasOwnProperty','_refreshCollabCursors','DocIMEInputManagerService','WECHAT_HAS_BEEN_BOUND','code','INVITE_CODE_REQUIRED','shareReplay','use','sessionStatus$','registerRefRange','arc','_collabSessionService','transformByState','registerBeforeClose','transformSelections','_handleEvent','collab-rect-range-','forwardRef','replaceState','UniverInstanceType','getFocusedUnit','all','jsx','SHEET_VIEWPORT_KEY','_initDependencies','imageSourceType','transformMutation','TRANSFORM_CHANGE_OBSERVABLE_TYPE','redoState','useRef','Workbook','10608070GqOyey','has','MUTATION','debounce','setUndoRedoMutationParamsCache','collabStatus.notCollab','CollaborationStatusDisplay','idSuffix','YUUMI_TABLE_NOT_FOUND_IN_UNIT','NOT_COLLAB','asObservable','then','DOC_RANGE_TYPE','_drawAnchor','min','DesktopCollaborationStatusDisplayController','translate(.97)','CommandType','_entityInit$','SNAPSHOT_INVALID_SNAPSHOT','DeleteRangeMoveLeftCommandId','labelPosition','findNodePositionByCharIndex','selections','column','_disabled','connectInjector','_eventUnsubscribe','_initResize','_hideTimer','0\x200\x2017\x2016','_collaborationUIEventService','className','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','invokeId','APPLY_REVISION_CONFILICT','undoState','DocCollaborationEntity','_updateURLWithCurrentState','393213vPNXGL','CollaborationStatus','isActive','url(#on-line-icon_clip0_910_349)','startsWith','_docStateChangeManagerService','CollaborationDataLoaderController','includes','max','saveTaskMap','_online','WebSocketService','603hWeuBN','_registerRenderDependencies','getCellPositionByOffset','createElement','_cursorShapes','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_messageService','propertyIsEnumerable','endColumn','EMAIL_VERIFY_CODE_MISMATCH','DisposableCollection','addObject','string','show','handleDeleteRangeMoveUp','onCommandExecuted','getAncestorScale','YUUMI_CONNECTOR_URL_NOT_FOUND','univerjs-icon\x20univerjs-icon-','concat','onLocalMutation','Warning','random','handleIRemoveRow','YUUMI_ALL_TABLES_IS_INVALID','restore','body','focused$','SNAPSHOT_HAS_BEEN_REMOVED','getOwnPropertyDescriptor','_transformHistoryAndStateStack','1em','...','IImageIoService','eventID','onRendered','pluginName','YUUMI_UNABLE_LOAD_URL','DocSkeletonManagerService','toStringTag','memberID','roomMembers$','onPointerEnter$','InsertColCommandId','_docSkeletonManagerService','RxDisposable','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','collab-client.tooltip.reconnect','DEFAULT_WS_SESSION_TICKET_URL','stringify','override','_getSaveTimeout','InsertRangeMoveRightCommandId','_selfUnitIDs','YUUMI_NO_CUBOID_FOR_QUESTION','doc.mutation.rich-text-editing','[CollaborationDataLoaderController]','5LkIYlu','_docClipboardService','subscribe','EffectRefRangId','merge','_docSyncEditingCollabCursorService','bottom','onTransformChange$','Rectangle','APPLY_REJECT','isTransformMutationFailure','selection','set','getSheetId','_initCommandExecutedListener','type','_configService','ranges','UniverIcon','_getScale','cursorInfo','getCurrentUnitForType','size','2313684TEoLVZ','unit','_backgroundColor','_createSocketURL','_initEvent','getMergeData'];_0x5bb2=function(){return _0x2b5e52;};return _0x5bb2();}q=yt([y(0x0,O[_0x3da993(0x12f)]),y(0x1,u[_0x3da993(0x2ee)]),y(0x2,a[_0x3da993(0x329)](u[_0x3da993(0x31d)])),y(0x3,O[_0x3da993(0x1fe)]),y(0x4,O['INotificationService']),y(0x5,a[_0x3da993(0x329)](a[_0x3da993(0x2c0)]))],q);const $t='collaboration-client-ui.config',Ue={},Ee=a[_0x3da993(0x28e)]('uni.network.url-service');var xt=Object[_0x3da993(0x1a0)],Bt=(_0xf22ba0,_0x16cb00,_0xb3e898,_0xf6cea0)=>{const _0x502083=_0x3da993;for(var _0x31eb64=_0xf6cea0>0x1?void 0x0:_0xf6cea0?xt(_0x16cb00,_0xb3e898):_0x16cb00,_0x3d5f73=_0xf22ba0[_0x502083(0x23d)]-0x1,_0x2c6a6d;_0x3d5f73>=0x0;_0x3d5f73--)(_0x2c6a6d=_0xf22ba0[_0x3d5f73])&&(_0x31eb64=_0x2c6a6d(_0x31eb64)||_0x31eb64);return _0x31eb64;},F=(_0x5c88b0,_0x2ec896)=>(_0x517bd1,_0x4e3945)=>_0x2ec896(_0x517bd1,_0x4e3945,_0x5c88b0);exports[_0x3da993(0x17d)]=class extends a[_0x3da993(0x1b0)]{constructor(_0x4f2438,_0x106336,_0x3c0d5a,_0x544a34,_0x326f40){const _0x4797f8=_0x3da993;super(),this['_urlService']=_0x4f2438,this[_0x4797f8(0x39a)]=_0x106336,this['_commandService']=_0x3c0d5a,this['_dataLoaderService']=_0x544a34,_0x326f40?_0x326f40==null||_0x326f40[_0x4797f8(0x218)]()['then'](()=>this['_init']()):(this['_logService'][_0x4797f8(0x37a)](_0x4797f8(0x1bb),_0x4797f8(0x2f7)),this[_0x4797f8(0x306)]());}async[_0x3da993(0x306)](){const _0xf5efac=_0x3da993,_0x2253e8=this[_0xf5efac(0x20a)]['getParam']('unit'),_0x47b3ab=this[_0xf5efac(0x20a)][_0xf5efac(0x215)](_0xf5efac(0x1cb)),_0x42727c=this[_0xf5efac(0x20a)][_0xf5efac(0x215)](_0xf5efac(0x39b));if(!_0x2253e8||!_0x47b3ab){this[_0xf5efac(0x39a)][_0xf5efac(0x37a)](_0xf5efac(0x1bb),_0xf5efac(0x11b));return;}const _0x74e406=await this[_0xf5efac(0x20e)][_0xf5efac(0x23a)](_0x2253e8,Number(_0x47b3ab),_0x42727c);_0x74e406&&_0x74e406 instanceof a[_0xf5efac(0x14f)]&&this[_0xf5efac(0x23f)](_0x74e406);}async[_0x3da993(0x23f)](_0x1ccd65){const _0x582201=_0x3da993;await this[_0x582201(0x2a2)](_0x1ccd65),_0x1ccd65['activeSheet$']['pipe'](d['takeUntil'](this[_0x582201(0x21a)]))[_0x582201(0x1be)](_0x2bd818=>{const _0xe95460=_0x582201;_0x2bd818&&this[_0xe95460(0x176)](_0x2bd818);}),this[_0x582201(0x20a)]['urlChange$'][_0x582201(0x386)](d['takeUntil'](this[_0x582201(0x21a)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x1ccd65));}[_0x3da993(0x176)](_0x17f092,_0x5c4871=!0x1){const _0x3b2c5b=_0x3da993,_0x4c39e9=this[_0x3b2c5b(0x20a)][_0x3b2c5b(0x215)](_0x3b2c5b(0x39b));_0x17f092[_0x3b2c5b(0x1c9)]()!==_0x4c39e9&&this[_0x3b2c5b(0x20a)][_0x3b2c5b(0x1fc)](_0x3b2c5b(0x39b),_0x17f092[_0x3b2c5b(0x1c9)](),_0x5c4871);}async['_updateSubUnitFromURLParams'](_0xcb4db6){const _0x5cafe9=_0x3da993;var _0x1e3956;const _0x5cc07c=this[_0x5cafe9(0x20a)][_0x5cafe9(0x215)]('subunit');if(!_0x5cc07c||!_0xcb4db6[_0x5cafe9(0x2d7)](_0x5cc07c)){const _0x3e3d87=_0xcb4db6[_0x5cafe9(0x349)]()[0x0],_0x7c4014=_0xcb4db6[_0x5cafe9(0x2d7)](_0x3e3d87);if(!_0x7c4014)return;this[_0x5cafe9(0x176)](_0x7c4014,!0x0),await this[_0x5cafe9(0x2b5)][_0x5cafe9(0x38f)](g[_0x5cafe9(0x39d)]['id'],{'unitId':_0xcb4db6['getUnitId'](),'subUnitId':_0x3e3d87});return;}((_0x1e3956=_0xcb4db6[_0x5cafe9(0x2cf)]())==null?void 0x0:_0x1e3956['getSheetId']())!==_0x5cc07c&&await this['_commandService'][_0x5cafe9(0x38f)](g[_0x5cafe9(0x39d)]['id'],{'unitId':_0xcb4db6['getUnitId'](),'subUnitId':_0x5cc07c});}},exports[_0x3da993(0x17d)]=Bt([F(0x0,Ee),F(0x1,a[_0x3da993(0x26e)]),F(0x2,a[_0x3da993(0x394)]),F(0x3,a[_0x3da993(0x329)](u[_0x3da993(0x2ec)])),F(0x4,a[_0x3da993(0x229)](Ke[_0x3da993(0x29f)]))],exports[_0x3da993(0x17d)]);var jt=Object[_0x3da993(0x1a0)],kt=(_0x2c92af,_0x4e0372,_0x58fee2,_0x3bea21)=>{for(var _0x42da60=_0x3bea21>0x1?void 0x0:_0x3bea21?jt(_0x4e0372,_0x58fee2):_0x4e0372,_0x1d5730=_0x2c92af['length']-0x1,_0x32edf1;_0x1d5730>=0x0;_0x1d5730--)(_0x32edf1=_0x2c92af[_0x1d5730])&&(_0x42da60=_0x32edf1(_0x42da60)||_0x42da60);return _0x42da60;},ce=(_0x5dfd31,_0xe7e8d)=>(_0x501e2f,_0x5bd184)=>_0xe7e8d(_0x501e2f,_0x5bd184,_0x5dfd31);let z=class{constructor(_0x5c46c1,_0x2c0097,_0x41c5c4){const _0x5f2873=_0x3da993;this[_0x5f2873(0x1ea)]=_0x5c46c1,this[_0x5f2873(0x23e)]=_0x2c0097,this[_0x5f2873(0x1e4)]=_0x41c5c4;}[_0x3da993(0x320)](_0x3660ea){const _0x3c3434=_0x3da993;this['_transformUndoRedoStack'](_0x3660ea),this[_0x3c3434(0x347)](_0x3660ea);}[_0x3da993(0x1dc)](_0x7654cb){const _0x3526fe=_0x3da993,{unitID:_0x55a0ee}=_0x7654cb,_0x3eb316=this[_0x3526fe(0x1e4)][_0x3526fe(0x2de)](_0x55a0ee)[_0x3526fe(0x20c)](E[_0x3526fe(0x133)]),{redoCache:_0x2078b8}=_0x3eb316[_0x3526fe(0x116)]();if(_0x2078b8[_0x3526fe(0x23d)]===0x0)return _0x7654cb;let _0x3579e3=a[_0x3526fe(0x2c6)]['deepClone'](_0x7654cb[_0x3526fe(0x272)][0x0]);for(let _0x36e346=0x0;_0x36e346<_0x2078b8[_0x3526fe(0x23d)];_0x36e346++){const _0x29eaab={'id':_0x3526fe(0x1ba),'params':{..._0x2078b8[_0x36e346]}},_0x388aae=this['_transformService']['transformMutation'](_0x3579e3,_0x29eaab,!0x1);if(m[_0x3526fe(0x1c6)](_0x388aae))throw _0x388aae[_0x3526fe(0x390)];_0x3579e3=_0x388aae[_0x3526fe(0x36b)];}return{...a[_0x3526fe(0x2c6)][_0x3526fe(0x360)](_0x7654cb),'mutations':[_0x3579e3]};}[_0x3da993(0x220)](_0x1b2cdf){const _0xc3166b=_0x3da993,{unitID:_0x3320ad}=_0x1b2cdf,_0x3c1009=this[_0xc3166b(0x1e4)][_0xc3166b(0x2de)](_0x3320ad)[_0xc3166b(0x20c)](E[_0xc3166b(0x133)]),{undoCache:_0x1a2d44,redoCache:_0x34f1ab}=_0x3c1009[_0xc3166b(0x116)]();if(_0x1a2d44[_0xc3166b(0x23d)]===0x0||_0x34f1ab[_0xc3166b(0x23d)]===0x0)return;const _0x2df702=[],_0xefe6b9=[];let _0x3cf706=a[_0xc3166b(0x2c6)][_0xc3166b(0x360)](_0x1b2cdf[_0xc3166b(0x272)][0x0]),_0x5f288d=a[_0xc3166b(0x2c6)][_0xc3166b(0x360)](_0x1b2cdf['mutations'][0x0]);for(let _0x4784af=_0x1a2d44[_0xc3166b(0x23d)]-0x1;_0x4784af>=0x0;_0x4784af--){const _0x1c8b4c={'id':_0xc3166b(0x1ba),'params':{..._0x1a2d44[_0x4784af]}},_0x2f7a1e={'id':_0xc3166b(0x1ba),'params':{..._0x34f1ab[_0x4784af]}},_0x4636fb=this[_0xc3166b(0x23e)][_0xc3166b(0x14b)](_0x3cf706,_0x1c8b4c,!0x1),_0x48fc49=this[_0xc3166b(0x23e)][_0xc3166b(0x14b)](_0x5f288d,_0x2f7a1e,!0x1);if(m[_0xc3166b(0x1c6)](_0x4636fb))throw _0x4636fb[_0xc3166b(0x390)];if(m[_0xc3166b(0x1c6)](_0x48fc49))throw _0x48fc49[_0xc3166b(0x390)];_0x2df702[_0xc3166b(0x1e0)](_0x4636fb['m2Prime'][_0xc3166b(0x35a)]),_0xefe6b9[_0xc3166b(0x1e0)](_0x48fc49['m2Prime'][_0xc3166b(0x35a)]),_0x3cf706=_0x4636fb['m1Prime'],_0x5f288d=_0x48fc49[_0xc3166b(0x36b)];}_0x3c1009[_0xc3166b(0x154)]({'undoCache':_0x2df702,'redoCache':_0xefe6b9});}[_0x3da993(0x347)](_0x1ddc29){const _0x1bc7e3=_0x3da993,{unitID:_0x3af659}=_0x1ddc29,_0x566b0b=this[_0x1bc7e3(0x1e4)][_0x1bc7e3(0x2de)](_0x3af659)[_0x1bc7e3(0x20c)](E[_0x1bc7e3(0x133)]),_0x3c4be8=_0x566b0b[_0x1bc7e3(0x25f)]();if(_0x3c4be8==null)return;const _0x2e654b=[{'id':_0x1bc7e3(0x1ba),'params':{'unitId':_0x1ddc29[_0x1bc7e3(0x36a)],'actions':null,'textRanges':[_0x3c4be8]}}],_0x102927=this[_0x1bc7e3(0x23e)][_0x1bc7e3(0x314)](_0x1ddc29,_0x2e654b);if(!m[_0x1bc7e3(0x2b7)](_0x102927))throw _0x102927[_0x1bc7e3(0x390)];const _0x3590c5=_0x102927[_0x1bc7e3(0x364)][0x0][_0x1bc7e3(0x35a)]['textRanges'];Array['isArray'](_0x3590c5)&&_0x3590c5[_0x1bc7e3(0x23d)]&&_0x566b0b[_0x1bc7e3(0x371)](_0x3590c5[0x0]);}};z=kt([ce(0x0,a[_0x3da993(0x329)](a[_0x3da993(0x2cc)])),ce(0x1,m[_0x3da993(0x119)]),ce(0x2,p[_0x3da993(0x2d9)])],z);var Ft=Object[_0x3da993(0x1a0)],Ht=(_0x1a2b87,_0x3d48a5,_0x2d48d7,_0x53dc6a)=>{const _0x35c2e3=_0x3da993;for(var _0x29fcdc=_0x53dc6a>0x1?void 0x0:_0x53dc6a?Ft(_0x3d48a5,_0x2d48d7):_0x3d48a5,_0x4fed91=_0x1a2b87[_0x35c2e3(0x23d)]-0x1,_0x119548;_0x4fed91>=0x0;_0x4fed91--)(_0x119548=_0x1a2b87[_0x4fed91])&&(_0x29fcdc=_0x119548(_0x29fcdc)||_0x29fcdc);return _0x29fcdc;},le=(_0x4ff8bb,_0x14e42a)=>(_0x5d33bb,_0x251477)=>_0x14e42a(_0x5d33bb,_0x251477,_0x4ff8bb);let J=class{constructor(_0x4552b4,_0x119e35,_0x84389d){const _0x551b70=_0x3da993;this[_0x551b70(0x1ea)]=_0x4552b4,this[_0x551b70(0x23e)]=_0x119e35,this[_0x551b70(0x17c)]=_0x84389d;}[_0x3da993(0x368)](_0x48e00c){const _0x2a88bd=_0x3da993;this[_0x2a88bd(0x1a1)](_0x48e00c);}[_0x3da993(0x1dc)](_0x562f35){const _0x3ec768=_0x3da993,{unitID:_0x3aaf17}=_0x562f35,{collaboration:_0x5e1ad9}=this[_0x3ec768(0x17c)][_0x3ec768(0x228)](_0x3aaf17);if(_0x5e1ad9['length']===0x0)return _0x562f35;let _0x13282c=a[_0x3ec768(0x2c6)][_0x3ec768(0x360)](_0x562f35[_0x3ec768(0x272)][0x0]);for(let _0x11852a=0x0;_0x11852a<_0x5e1ad9['length'];_0x11852a++){const _0x59e8b5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5e1ad9[_0x11852a][_0x3ec768(0x372)],..._0x5e1ad9[_0x11852a][_0x3ec768(0x14d)]}},_0x57273a=this[_0x3ec768(0x23e)][_0x3ec768(0x14b)](_0x13282c,_0x59e8b5,!0x1);if(m[_0x3ec768(0x1c6)](_0x57273a))throw _0x57273a[_0x3ec768(0x390)];_0x13282c=_0x57273a[_0x3ec768(0x36b)];}return{...a[_0x3ec768(0x2c6)][_0x3ec768(0x360)](_0x562f35),'mutations':[_0x13282c]};}[_0x3da993(0x1a1)](_0x496283){const _0xb91d51=_0x3da993,{unitID:_0x58cfae}=_0x496283,{history:_0x36f9a4,collaboration:_0x4e8913}=this[_0xb91d51(0x17c)][_0xb91d51(0x228)](_0x58cfae);if(_0x36f9a4['length']===0x0&&_0x4e8913['length']===0x0)return;const _0x3c61fd=[],_0x32c241=[];let _0x8000b9=a[_0xb91d51(0x2c6)][_0xb91d51(0x360)](_0x496283[_0xb91d51(0x272)][0x0]),_0x191eb6=a['Tools'][_0xb91d51(0x360)](_0x496283[_0xb91d51(0x272)][0x0]);for(let _0xf8ec85=_0x36f9a4[_0xb91d51(0x23d)]-0x1;_0xf8ec85>=0x0;_0xf8ec85--){const _0x15fbe4={'id':_0xb91d51(0x1ba),'params':{'unitId':_0x36f9a4[_0xf8ec85]['unitId'],..._0x36f9a4[_0xf8ec85]['undoState']}},_0x58fc74={'id':_0xb91d51(0x1ba),'params':{'unitId':_0x36f9a4[_0xf8ec85][_0xb91d51(0x372)],..._0x36f9a4[_0xf8ec85][_0xb91d51(0x14d)]}},_0x7ffaf0=this['_transformService']['transformMutation'](_0x8000b9,_0x15fbe4,!0x1),_0x9019bc=this['_transformService'][_0xb91d51(0x14b)](_0x191eb6,_0x58fc74,!0x1);if(m[_0xb91d51(0x1c6)](_0x7ffaf0))throw _0x7ffaf0[_0xb91d51(0x390)];if(m[_0xb91d51(0x1c6)](_0x9019bc))throw _0x9019bc[_0xb91d51(0x390)];_0x3c61fd['unshift']({..._0x36f9a4[_0xf8ec85],'undoState':_0x7ffaf0[_0xb91d51(0x364)][_0xb91d51(0x35a)],'redoState':_0x9019bc[_0xb91d51(0x364)]['params']}),_0x8000b9=_0x7ffaf0[_0xb91d51(0x36b)],_0x191eb6=_0x9019bc['m1Prime'];}_0x8000b9=a[_0xb91d51(0x2c6)]['deepClone'](_0x496283[_0xb91d51(0x272)][0x0]),_0x191eb6=a['Tools'][_0xb91d51(0x360)](_0x496283[_0xb91d51(0x272)][0x0]);for(let _0x292082=_0x4e8913[_0xb91d51(0x23d)]-0x1;_0x292082>=0x0;_0x292082--){const _0x1bfd77={'id':_0xb91d51(0x1ba),'params':{'unitId':_0x4e8913[_0x292082][_0xb91d51(0x372)],..._0x4e8913[_0x292082][_0xb91d51(0x174)]}},_0xca476a={'id':_0xb91d51(0x1ba),'params':{'unitId':_0x4e8913[_0x292082][_0xb91d51(0x372)],..._0x4e8913[_0x292082][_0xb91d51(0x14d)]}},_0x106f1b=this[_0xb91d51(0x23e)]['transformMutation'](_0x8000b9,_0x1bfd77,!0x1),_0x2b30b2=this[_0xb91d51(0x23e)][_0xb91d51(0x14b)](_0x191eb6,_0xca476a,!0x1);if(m[_0xb91d51(0x1c6)](_0x106f1b))throw _0x106f1b[_0xb91d51(0x390)];if(m['isTransformMutationFailure'](_0x2b30b2))throw _0x2b30b2['error'];_0x32c241[_0xb91d51(0x1e0)]({..._0x4e8913[_0x292082],'undoState':_0x106f1b['m2Prime'][_0xb91d51(0x35a)],'redoState':_0x2b30b2[_0xb91d51(0x364)][_0xb91d51(0x35a)]}),_0x8000b9=_0x106f1b[_0xb91d51(0x36b)],_0x191eb6=_0x2b30b2['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x58cfae,{'history':_0x3c61fd,'collaboration':_0x32c241});}};J=Ht([le(0x0,a['Inject'](a[_0x3da993(0x2cc)])),le(0x1,m[_0x3da993(0x119)]),le(0x2,a[_0x3da993(0x329)](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x3da993(0x1a0)],Wt=(_0x506bee,_0x572e53,_0x235f9f,_0x10f49c)=>{for(var _0xacafa5=_0x10f49c>0x1?void 0x0:_0x10f49c?Yt(_0x572e53,_0x235f9f):_0x572e53,_0x2fff72=_0x506bee['length']-0x1,_0x31ab05;_0x2fff72>=0x0;_0x2fff72--)(_0x31ab05=_0x506bee[_0x2fff72])&&(_0xacafa5=_0x31ab05(_0xacafa5)||_0xacafa5);return _0xacafa5;},Ne=(_0x541dab,_0x235f1d)=>(_0xaf8465,_0x1bff0a)=>_0x235f1d(_0xaf8465,_0x1bff0a,_0x541dab);let Z=class{constructor(_0x228fde,_0x495e3d){const _0x4c3db6=_0x3da993;this[_0x4c3db6(0x1ea)]=_0x228fde,this[_0x4c3db6(0x23e)]=_0x495e3d;}[_0x3da993(0x13f)](_0x11b208){const _0x56f1a0=_0x3da993;var _0x238e40;const _0x295985=this[_0x56f1a0(0x1ea)][_0x56f1a0(0x1e1)](Y[_0x56f1a0(0x32a)]),_0x20c43b=(_0x238e40=_0x295985[_0x56f1a0(0x33f)]())!=null?_0x238e40:[];if(_0x20c43b[_0x56f1a0(0x23d)]===0x0)return;const _0x29abe1=_0x11b208[_0x56f1a0(0x36a)],_0x3b576c=[{'id':_0x56f1a0(0x1ba),'params':{'unitId':_0x29abe1,'actions':null,'textRanges':_0x20c43b}}],_0x5cd4d2=this[_0x56f1a0(0x23e)][_0x56f1a0(0x314)](_0x11b208,_0x3b576c);if(!m['isTransformMutationsWithChangesetSuccess'](_0x5cd4d2))throw _0x5cd4d2['error'];const _0x4dba4e=_0x5cd4d2[_0x56f1a0(0x364)][0x0][_0x56f1a0(0x35a)][_0x56f1a0(0x373)];Array[_0x56f1a0(0x34c)](_0x4dba4e)&&_0x4dba4e[_0x56f1a0(0x23d)]&&_0x295985['replaceDocRanges'](_0x4dba4e,{'unitId':_0x29abe1,'subUnitId':_0x29abe1},!0x1);}};Z=Wt([Ne(0x0,a[_0x3da993(0x329)](a[_0x3da993(0x2cc)])),Ne(0x1,m[_0x3da993(0x119)])],Z);var Vt=Object[_0x3da993(0x1a0)],Xt=(_0x32b498,_0x2230c8,_0x26d6ee,_0x1106aa)=>{const _0x311667=_0x3da993;for(var _0x15bf6e=_0x1106aa>0x1?void 0x0:_0x1106aa?Vt(_0x2230c8,_0x26d6ee):_0x2230c8,_0x1447e2=_0x32b498[_0x311667(0x23d)]-0x1,_0x1e00b9;_0x1447e2>=0x0;_0x1447e2--)(_0x1e00b9=_0x32b498[_0x1447e2])&&(_0x15bf6e=_0x1e00b9(_0x15bf6e)||_0x15bf6e);return _0x15bf6e;},N=(_0x56839b,_0x1a32e9)=>(_0x25e4f4,_0x3b53a8)=>_0x1a32e9(_0x25e4f4,_0x3b53a8,_0x56839b);let Q=class extends a['Disposable']{constructor(_0x330a86,_0x2ac214,_0x2f6235,_0x3dbafe,_0x1f4c64,_0x15304c,_0x3dd8b0,_0x35cc7f){const _0x3ca1aa=_0x3da993;super(),h(this,_0x3ca1aa(0x327),new d['BehaviorSubject'](u['CollaborationStatus'][_0x3ca1aa(0x159)])),(this[_0x3ca1aa(0x17c)]=_0x330a86,this['_collaborationController']=_0x2ac214,this[_0x3ca1aa(0x2fc)]=_0x2f6235,this[_0x3ca1aa(0x2e2)]=_0x3dbafe,this[_0x3ca1aa(0x316)]=_0x1f4c64,this[_0x3ca1aa(0x1c1)]=_0x15304c,this[_0x3ca1aa(0x189)]=_0x3dd8b0,this[_0x3ca1aa(0x377)]=_0x35cc7f,this[_0x3ca1aa(0x21e)]());}['_initEntityListener'](){const _0x1ccb58=_0x3da993;this[_0x1ccb58(0x250)](this[_0x1ccb58(0x11c)][_0x1ccb58(0x380)]['subscribe'](_0x1977ae=>{const _0x470faf=_0x1ccb58,_0x165ee1=this[_0x470faf(0x17c)][_0x470faf(0x335)][_0x470faf(0x1be)](_0x384d74=>{const _0x43f222=_0x470faf;if(_0x384d74==null)return;const {unitId:_0x4f42f5,redoState:_0x49f13b,commandId:_0x2d5e56}=_0x384d74;if(_0x4f42f5!==_0x1977ae[_0x43f222(0x36a)])return;const _0x495973={'id':_0x2d5e56,'type':a[_0x43f222(0x161)][_0x43f222(0x152)],'params':{'unitId':_0x4f42f5,'actions':_0x49f13b[_0x43f222(0x279)],'textRanges':null}};_0x1977ae[_0x43f222(0x197)](_0x495973);});if(_0x1977ae[_0x470faf(0x250)](_0x165ee1),_0x1977ae instanceof u[_0x470faf(0x175)]){const _0x5c486b={'onTransformIME':_0x17afe5=>this[_0x470faf(0x2fc)]['transformIMECache'](_0x17afe5),'onTransformState':_0x5651b2=>this[_0x470faf(0x2e2)]['transformStateCache'](_0x5651b2),'onTransformSelections':_0x3d8642=>this['_docTransformSelectionsService']['transformSelections'](_0x3d8642),'onSyncEditingCollabCursor':_0x1297c0=>this['_docSyncEditingCollabCursorService'][_0x470faf(0x2a0)](_0x1297c0),'onTransformRemoteChangesetByIMECache':_0x3f177f=>this[_0x470faf(0x2fc)][_0x470faf(0x1dc)](_0x3f177f),'onTransformRemoteChangesetByStateCache':_0x54e785=>this[_0x470faf(0x2e2)][_0x470faf(0x1dc)](_0x54e785)};_0x1977ae[_0x470faf(0x29b)](_0x5c486b);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x3da993(0x209)])),N(0x1,a[_0x3da993(0x329)](u[_0x3da993(0x1ed)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x3da993(0x329)](J)),N(0x4,a[_0x3da993(0x329)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O[_0x3da993(0x1fe)]),N(0x7,a['Inject'](a[_0x3da993(0x2c0)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x4fb2c3,_0x4e51ad,_0x2cc7bd,_0x591632)=>{const _0x5de1d8=_0x3da993;for(var _0x31e602=_0x591632>0x1?void 0x0:_0x591632?Gt(_0x4e51ad,_0x2cc7bd):_0x4e51ad,_0x12dbab=_0x4fb2c3[_0x5de1d8(0x23d)]-0x1,_0x514392;_0x12dbab>=0x0;_0x12dbab--)(_0x514392=_0x4fb2c3[_0x12dbab])&&(_0x31e602=_0x514392(_0x31e602)||_0x31e602);return _0x31e602;},_e=(_0x415003,_0x4f1861)=>(_0x4b4862,_0xc9930f)=>_0x4f1861(_0x4b4862,_0xc9930f,_0x415003);let ge=class extends a[_0x3da993(0x230)]{constructor(_0x32c9bc,_0x416eac,_0x52a49f){const _0x4667cb=_0x3da993;super(),h(this,'_cachedData',new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x4667cb(0x169),!0x1),(this[_0x4667cb(0x1cc)]=_0x32c9bc,this[_0x4667cb(0x118)]=_0x416eac,this['_revisionService']=_0x52a49f);}[_0x3da993(0x32b)](){const _0x36f62c=_0x3da993;this[_0x36f62c(0x169)]=!0x0;}['enableLocalCache'](){const _0x439acc=_0x3da993;this[_0x439acc(0x169)]=!0x1;}get[_0x3da993(0x180)](){const _0x3580af=_0x3da993;return this[_0x3580af(0x2c5)];}[_0x3da993(0x261)](){const _0x237ecf=_0x3da993;this['exhaustSavingTask']()[_0x237ecf(0x15b)](()=>super[_0x237ecf(0x261)]());}async[_0x3da993(0x213)](_0x4b836e){const _0x59bc89=_0x3da993;return this[_0x59bc89(0x169)]?null:this['_localStorageService'][_0x59bc89(0x20f)](u[_0x59bc89(0x29d)](_0x4b836e));}async[_0x3da993(0x2df)](_0x3fbeaf,_0x16b00c){const _0x2d8b87=_0x3da993;return!!this[_0x2d8b87(0x118)][_0x2d8b87(0x1fb)](_0x3fbeaf,_0x16b00c);}[_0x3da993(0x34a)](_0x396b15,_0x5edb41,_0x2d6d80,_0xb67f1){const _0x3bf0c9=_0x3da993,_0x23d36d=this[_0x3bf0c9(0x2ce)][_0x3bf0c9(0x20b)](_0x396b15);this[_0x3bf0c9(0x25d)][_0x3bf0c9(0x1c8)](_0x396b15,{'unitID':_0x396b15,'type':_0x5edb41,'awaitingChangeset':_0x2d6d80,'mutations':_0xb67f1,'rev':_0x23d36d}),this[_0x3bf0c9(0x2c5)][_0x3bf0c9(0x151)](_0x396b15)||this[_0x3bf0c9(0x1f4)](_0x396b15);}[_0x3da993(0x1f4)](_0x5ad9c1){const _0x196361=_0x3da993,_0x4a563d=this['_getSaveTimeout']();_0x4a563d===0x0?this['_saveCache'](_0x5ad9c1):this['_saveTaskMap']['set'](_0x5ad9c1,setTimeout(()=>this[_0x196361(0x1f2)](_0x5ad9c1),_0x4a563d));}[_0x3da993(0x1b6)](){const _0x264563=_0x3da993;var _0x3ef66c;return(_0x3ef66c=this['_configService'][_0x264563(0x123)](u[_0x264563(0x397)]))!=null?_0x3ef66c:u['LOCAL_CACHE_INTERVAL'];}[_0x3da993(0x1f2)](_0x58bd48){const _0x43573b=_0x3da993,_0x1831bf=this[_0x43573b(0x2c5)][_0x43573b(0x1e1)](_0x58bd48);return _0x1831bf!==void 0x0&&window[_0x43573b(0x222)](_0x1831bf),this[_0x43573b(0x118)][_0x43573b(0x1fb)](u[_0x43573b(0x29d)](_0x58bd48),this['_cachedData'][_0x43573b(0x1e1)](_0x58bd48))[_0x43573b(0x15b)](()=>this['_saveTaskMap'][_0x43573b(0x2c2)](_0x58bd48));}async[_0x3da993(0x1e5)](){const _0x295453=_0x3da993,_0x335a62=[];this['_saveTaskMap'][_0x295453(0x34b)]((_0x529476,_0x59f46c)=>{const _0x581372=_0x295453;window[_0x581372(0x222)](_0x529476),_0x335a62['push'](this[_0x581372(0x1f2)](_0x59f46c)[_0x581372(0x15b)](()=>{const _0x1763b0=_0x581372;this[_0x1763b0(0x2c5)][_0x1763b0(0x2c2)](_0x59f46c);}));}),await Promise[_0x295453(0x146)](_0x335a62);}};ge=Kt([_e(0x0,a[_0x3da993(0x38a)]),_e(0x1,a[_0x3da993(0x308)]),_e(0x2,a[_0x3da993(0x329)](m['RevisionService']))],ge);class Be extends a['RxDisposable']{constructor(){const _0x3f0017=_0x3da993;super(),h(this,_0x3f0017(0x1eb)),this[_0x3f0017(0x1eb)]=d[_0x3f0017(0x128)](window,'popstate')[_0x3f0017(0x386)](d['takeUntil'](this[_0x3f0017(0x21a)]),d[_0x3f0017(0x137)](0x1),d[_0x3f0017(0x358)](void 0x0));}[_0x3da993(0x1fc)](_0x55cf9e,_0x4f4b55,_0x4a968b=!0x1){const _0x4c41e8=_0x3da993,_0x9e30f8=new URL(window['location']['href']);_0x9e30f8[_0x4c41e8(0x332)][_0x4c41e8(0x1c8)](_0x55cf9e,_0x4f4b55),_0x4a968b?window[_0x4c41e8(0x33c)][_0x4c41e8(0x143)]('','',_0x9e30f8['toString']()):window[_0x4c41e8(0x33c)][_0x4c41e8(0x28a)]('','',_0x9e30f8[_0x4c41e8(0x1f3)]());}['removeParam'](_0x393607,_0x310d8b=!0x1){const _0x18aa15=_0x3da993,_0x418f23=new URL(window['location'][_0x18aa15(0x23c)]);_0x418f23[_0x18aa15(0x332)][_0x18aa15(0x2c2)](_0x393607),_0x310d8b?window[_0x18aa15(0x33c)]['replaceState']('','',_0x418f23[_0x18aa15(0x1f3)]()):window[_0x18aa15(0x33c)][_0x18aa15(0x28a)]('','',_0x418f23[_0x18aa15(0x1f3)]());}[_0x3da993(0x215)](_0x22ccee){const _0x5339e6=_0x3da993;var _0x5e0212;return(_0x5e0212=new URL(window['location'][_0x5339e6(0x23c)])[_0x5339e6(0x332)]['get'](_0x22ccee))!=null?_0x5e0212:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x3da993(0x1a0)],Jt=(_0x5d9f21,_0x28b146,_0x64afe4)=>_0x28b146 in _0x5d9f21?qt(_0x5d9f21,_0x28b146,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x64afe4}):_0x5d9f21[_0x28b146]=_0x64afe4,Zt=(_0x57bd1e,_0x507f0a,_0x1f0d37,_0x491d17)=>{const _0x5be5ef=_0x3da993;for(var _0x19ecb9=_0x491d17>0x1?void 0x0:_0x491d17?zt(_0x507f0a,_0x1f0d37):_0x507f0a,_0x239db5=_0x57bd1e[_0x5be5ef(0x23d)]-0x1,_0x255ab3;_0x239db5>=0x0;_0x239db5--)(_0x255ab3=_0x57bd1e[_0x239db5])&&(_0x19ecb9=_0x255ab3(_0x19ecb9)||_0x19ecb9);return _0x19ecb9;},he=(_0x22ec02,_0x68e8fa)=>(_0xbe439d,_0x29588c)=>_0x68e8fa(_0xbe439d,_0x29588c,_0x22ec02),Qt=(_0x44a2ff,_0xe62cb,_0xe13b28)=>Jt(_0x44a2ff,_0xe62cb+'',_0xe13b28);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x3da993(0x216)]=class extends a['Plugin']{constructor(_0x3ef07d=Ue,_0x3c8e35,_0xa1cb1c,_0x3148a2){const _0x289bc1=_0x3da993;super(),this['_config']=_0x3ef07d,this[_0x289bc1(0x1e4)]=_0x3c8e35,this[_0x289bc1(0x1ea)]=_0xa1cb1c,this[_0x289bc1(0x1cc)]=_0x3148a2;const {..._0x585405}=a[_0x289bc1(0x1c0)]({},Ue,this[_0x289bc1(0x2bf)]);this[_0x289bc1(0x1cc)]['setConfig']($t,_0x585405);}[_0x3da993(0x30f)](){const _0x2002e9=_0x3da993;this[_0x2002e9(0x2f8)](),this[_0x2002e9(0x149)]();}[_0x3da993(0x1a6)](){const _0x2f2877=_0x3da993;this[_0x2f2877(0x184)]();}[_0x3da993(0x2f8)](){const _0x2b1bbf=_0x3da993;var _0x376a74;const _0x59bc85=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x2b1bbf(0x1df)],{'useClass':G[_0x2b1bbf(0x182)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x2b1bbf(0x15f)]],[Q],[q],[x],[de],[exports[_0x2b1bbf(0x17d)]]];a[_0x2b1bbf(0x120)](this[_0x2b1bbf(0x1ea)],a[_0x2b1bbf(0x1e7)](_0x59bc85,(_0x376a74=this[_0x2b1bbf(0x2bf)])==null?void 0x0:_0x376a74[_0x2b1bbf(0x1b5)]));}[_0x3da993(0x184)](){const _0x532fff=_0x3da993;this[_0x532fff(0x250)](this[_0x532fff(0x1e4)][_0x532fff(0x26c)](a[_0x532fff(0x144)][_0x532fff(0x11a)],[fe])),this[_0x532fff(0x250)](this[_0x532fff(0x1e4)][_0x532fff(0x26c)](a['UniverInstanceType'][_0x532fff(0x2e9)],[ve]));}[_0x3da993(0x149)](){const _0x312a8d=_0x3da993;a[_0x312a8d(0x256)](this[_0x312a8d(0x1ea)],[[x],[exports[_0x312a8d(0x15f)]],[Q],[q],[exports[_0x312a8d(0x17d)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x3da993(0x1a7),es),exports[_0x3da993(0x216)]=Zt([a[_0x3da993(0x265)](u[_0x3da993(0x307)]),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x3da993(0x329)](a[_0x3da993(0x2cc)])),he(0x3,a[_0x3da993(0x38a)])],exports[_0x3da993(0x216)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x112cee,_0x3ef64f,_0x141b6a,_0x221c0d)=>{const _0x3c72d4=_0x3da993;for(var _0x1875c2=_0x221c0d>0x1?void 0x0:_0x221c0d?ts(_0x3ef64f,_0x141b6a):_0x3ef64f,_0xb763c3=_0x112cee[_0x3c72d4(0x23d)]-0x1,_0x54e4ea;_0xb763c3>=0x0;_0xb763c3--)(_0x54e4ea=_0x112cee[_0xb763c3])&&(_0x1875c2=_0x54e4ea(_0x1875c2)||_0x1875c2);return _0x1875c2;},H=(_0x39cb74,_0x5e77c8)=>(_0x50c709,_0x14ab9f)=>_0x5e77c8(_0x50c709,_0x14ab9f,_0x39cb74);exports[_0x3da993(0x253)]=class extends u[_0x3da993(0x30c)]{constructor(_0x5c4baf,_0x21fe7e,_0x3bff08,_0x2b6df6,_0x29efc2){super(_0x5c4baf,_0x21fe7e,_0x3bff08,_0x2b6df6,_0x29efc2);}async['createSocket'](_0x18193d){const _0x3e2ba4=_0x3da993,_0x422822=await this[_0x3e2ba4(0x1ee)](),_0xbf16b1=this[_0x3e2ba4(0x1d6)](_0x18193d,_0x422822);return this['_doCreateSocket'](_0xbf16b1);}[_0x3da993(0x1d6)](_0x2b1e23,_0x29a5c5){const _0x602340=_0x3da993,_0x46c7b9=typeof window>'u'?new URL(_0x2b1e23):new URL(_0x2b1e23,window['location']['origin']);_0x46c7b9[_0x602340(0x332)][_0x602340(0x1c8)]('sessionTicket',_0x29a5c5);const _0x20ad19=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x602340(0x223)][_0x602340(0x374)]);return _0x20ad19['get']('runId')&&_0x46c7b9['searchParams']['set'](_0x602340(0x398),_0x20ad19['get'](_0x602340(0x398))),_0x46c7b9[_0x602340(0x1f3)]();}async['_getSessionTicket'](){const _0x515914=_0x3da993;var _0x5778c9,_0x152b11,_0x4214c6;const _0x4d34be=this[_0x515914(0x1cc)][_0x515914(0x123)](u[_0x515914(0x311)]),_0x29802f=(_0x5778c9=_0x4d34be==null?void 0x0:_0x4d34be[_0x515914(0x33a)])!=null?_0x5778c9:u[_0x515914(0x1b3)];return(_0x4214c6=(_0x152b11=(await this[_0x515914(0x1da)][_0x515914(0x1e1)](_0x29802f,{'headers':{'Content-Type':'application/json'}}))[_0x515914(0x19d)])==null?void 0x0:_0x152b11[_0x515914(0x28d)])!=null?_0x4214c6:'';}},exports[_0x3da993(0x253)]=ss([H(0x0,a[_0x3da993(0x329)](a[_0x3da993(0x2cc)])),H(0x1,a[_0x3da993(0x329)](G['HTTPService'])),H(0x2,a[_0x3da993(0x38a)]),H(0x3,a[_0x3da993(0x26e)]),H(0x4,m[_0x3da993(0x236)])],exports[_0x3da993(0x253)]);const Me=0x7530,Le=_0x3da993(0x12e);class is extends a[_0x3da993(0x230)]{constructor(){const _0x15c791=_0x3da993;super(),h(this,_0x15c791(0x2bd),a[_0x15c791(0x121)]()),h(this,_0x15c791(0x1b8),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x15c791(0x275),null),h(this,_0x15c791(0x127),new Map()),h(this,_0x15c791(0x317),new Map()),this[_0x15c791(0x306)]();}[_0x3da993(0x261)](){const _0x59c97e=_0x3da993;super[_0x59c97e(0x261)](),this[_0x59c97e(0x127)]['forEach']((_0xcd027b,_0x3bee2b)=>this['_removeClearOtherTimer'](_0x3bee2b)),this[_0x59c97e(0x275)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x3da993(0x271)](_0x2dae97){const _0x34ec32=_0x3da993;return this['_ensureSubject'](_0x2dae97)[_0x34ec32(0x386)](d[_0x34ec32(0x30b)]());}['editingUnit'](_0x15582a){const _0x14d447=_0x3da993;this['_selfUnitIDs'][_0x14d447(0x1d2)]===0x0&&this[_0x14d447(0x231)](),this[_0x14d447(0x1b8)][_0x14d447(0x269)](_0x15582a),this[_0x14d447(0x205)]({'type':0x0,'memberID':this[_0x14d447(0x2bd)],'unitIDs':[_0x15582a],'isForwarded':!0x1});}['disposeUnit'](_0x4950ab){const _0x92cb97=_0x3da993;this[_0x92cb97(0x1b8)]['delete'](_0x4950ab),this['_selfUnitIDs'][_0x92cb97(0x1d2)]===0x0&&this[_0x92cb97(0x275)]&&window[_0x92cb97(0x11d)](this['_heartbeatTimer']);}[_0x3da993(0x306)](){const _0xf12f60=_0x3da993;this[_0xf12f60(0x250)](a['toDisposable'](d[_0xf12f60(0x128)](window,_0xf12f60(0x292))[_0xf12f60(0x1be)](_0xbaaed4=>{const _0x5e771d=_0xf12f60;if(_0xbaaed4[_0x5e771d(0x2c8)]!==Le||!_0xbaaed4[_0x5e771d(0x36f)])return;const _0x10e2c0=JSON[_0x5e771d(0x23b)](_0xbaaed4['newValue']);this[_0x5e771d(0x140)](_0x10e2c0);}))),window[_0xf12f60(0x2b9)](_0xf12f60(0x206),()=>this['_send']({'type':0x1,'memberID':this[_0xf12f60(0x2bd)],'unitIDs':Array[_0xf12f60(0x2b0)](this[_0xf12f60(0x1b8)])}));}[_0x3da993(0x140)](_0x4093bc){const _0x24208a=_0x3da993;switch(_0x4093bc[_0x24208a(0x1cb)]){case 0x0:this[_0x24208a(0x2dc)](_0x4093bc);break;case 0x1:this[_0x24208a(0x2ff)](_0x4093bc);break;case 0x2:this['_handleHeartbeatEvent'](_0x4093bc);break;}}[_0x3da993(0x2dc)](_0x4ab48a){const _0x561293=_0x3da993,{unitIDs:_0x444668,memberID:_0x1e55a5,isForwarded:_0x9e5649}=_0x4ab48a;_0x444668[_0x561293(0x34b)](_0x34e31c=>{const _0x1eb0e8=_0x561293;if(!_0x9e5649&&this['_unitOnClients'][_0x1eb0e8(0x151)](_0x34e31c)&&this[_0x1eb0e8(0x341)](_0x34e31c)[_0x1eb0e8(0x1dd)](u[_0x1eb0e8(0x278)][_0x1eb0e8(0x129)]),!this['_unitOnClients'][_0x1eb0e8(0x151)](_0x34e31c)||!this[_0x1eb0e8(0x26f)][_0x1eb0e8(0x1e1)](_0x34e31c)[_0x1eb0e8(0x151)](_0x1e55a5)){const _0x29b223=this[_0x1eb0e8(0x26f)][_0x1eb0e8(0x1e1)](_0x34e31c)||new Set();_0x29b223[_0x1eb0e8(0x269)](_0x1e55a5),this[_0x1eb0e8(0x26f)][_0x1eb0e8(0x1c8)](_0x34e31c,_0x29b223),this[_0x1eb0e8(0x273)](_0x1e55a5);}}),_0x9e5649||this['_send']({'type':0x0,'memberID':this[_0x561293(0x2bd)],'unitIDs':[...this[_0x561293(0x1b8)]],'isForwarded':!0x0});}[_0x3da993(0x273)](_0x130d05){const _0x34c340=_0x3da993;this[_0x34c340(0x11f)](_0x130d05);const _0x34a28f=window[_0x34c340(0x299)](()=>{const _0x2fe6d9=_0x34c340;this[_0x2fe6d9(0x26f)]['forEach'](_0x1f6f9e=>{const _0x2804bc=_0x2fe6d9;_0x1f6f9e[_0x2804bc(0x2c2)](_0x130d05);});},Me*0x2);this[_0x34c340(0x127)][_0x34c340(0x1c8)](_0x130d05,_0x34a28f);}[_0x3da993(0x11f)](_0xc93541){const _0x2cdd85=_0x3da993;if(this[_0x2cdd85(0x127)][_0x2cdd85(0x151)](_0xc93541)){const _0x1fe17f=this[_0x2cdd85(0x127)][_0x2cdd85(0x1e1)](_0xc93541);_0x1fe17f&&window[_0x2cdd85(0x222)](_0x1fe17f),this['_clearOtherTimers']['set'](_0xc93541,null);}}[_0x3da993(0x2ff)](_0x3dea64){const _0x428527=_0x3da993,{memberID:_0x2c2111,unitIDs:_0x308a17}=_0x3dea64;_0x308a17[_0x428527(0x34b)](_0xb5961e=>{const _0x3480ea=_0x428527;var _0x3d9290;const _0x1ee20b=this['_unitOnClients']['get'](_0xb5961e);_0x1ee20b&&(_0x1ee20b[_0x3480ea(0x2c2)](_0x2c2111),(_0x3d9290=this['_ensureSubject'](_0xb5961e))==null||_0x3d9290['next'](_0x1ee20b['size']===0x0?u[_0x3480ea(0x278)][_0x3480ea(0x2f9)]:u['UnitStatus'][_0x3480ea(0x129)]));}),this[_0x428527(0x11f)](_0x2c2111);}[_0x3da993(0x249)](_0x2027bc){const _0x22ba75=_0x3da993;this['_scheduleClearOtherTimer'](_0x2027bc[_0x22ba75(0x1ab)]);}['_send'](_0x549a70){const _0x541910=_0x3da993;localStorage[_0x541910(0x1fb)](Le,JSON['stringify'](_0x549a70));}['_scheduleHeartbeat'](){const _0x461698=_0x3da993;this[_0x461698(0x275)]=window[_0x461698(0x2ef)](()=>{const _0xab2947=_0x461698;this[_0xab2947(0x205)]({'type':0x2,'memberID':this[_0xab2947(0x2bd)]});},Me);}[_0x3da993(0x341)](_0xe94625){const _0x1bc852=_0x3da993;return this[_0x1bc852(0x317)]['has'](_0xe94625)||this[_0x1bc852(0x317)]['set'](_0xe94625,new d[(_0x1bc852(0x267))](u[_0x1bc852(0x278)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x1bc852(0x1e1)](_0xe94625);}}var je=(_0x482d60=>(_0x482d60[_0x482d60['UNDEFINED']=0x0]=_0x3da993(0x298),_0x482d60[_0x482d60['OK']=0x1]='OK',_0x482d60[_0x482d60[_0x3da993(0x248)]=0x2]=_0x3da993(0x248),_0x482d60[_0x482d60['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x482d60[_0x482d60[_0x3da993(0x343)]=0x4]='NOT_FOUND',_0x482d60[_0x482d60[_0x3da993(0x2fe)]=0x5]='UNAUTHENTICATED',_0x482d60[_0x482d60[_0x3da993(0x2b3)]=0x6]=_0x3da993(0x2b3),_0x482d60[_0x482d60[_0x3da993(0x277)]=0x7]=_0x3da993(0x277),_0x482d60[_0x482d60[_0x3da993(0x239)]=0x8]=_0x3da993(0x239),_0x482d60[_0x482d60[_0x3da993(0x399)]=0x9]=_0x3da993(0x399),_0x482d60[_0x482d60[_0x3da993(0x344)]=0xa]=_0x3da993(0x344),_0x482d60[_0x482d60['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x3da993(0x2a4),_0x482d60[_0x482d60[_0x3da993(0x337)]=0xc]=_0x3da993(0x337),_0x482d60[_0x482d60['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x3da993(0x18c),_0x482d60[_0x482d60[_0x3da993(0x2d3)]=0xe]=_0x3da993(0x2d3),_0x482d60[_0x482d60['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3da993(0x333),_0x482d60[_0x482d60[_0x3da993(0x163)]=0x1771]=_0x3da993(0x163),_0x482d60[_0x482d60[_0x3da993(0x19f)]=0x1772]=_0x3da993(0x19f),_0x482d60[_0x482d60['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x3da993(0x38b),_0x482d60[_0x482d60[_0x3da993(0x1c5)]=0x1b59]=_0x3da993(0x1c5),_0x482d60[_0x482d60[_0x3da993(0x334)]=0x1b5a]=_0x3da993(0x334),_0x482d60[_0x482d60[_0x3da993(0x173)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x482d60[_0x482d60['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x482d60[_0x482d60[_0x3da993(0x365)]=0x1b5d]=_0x3da993(0x365),_0x482d60[_0x482d60[_0x3da993(0x27a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x482d60[_0x482d60[_0x3da993(0x112)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x482d60[_0x482d60[_0x3da993(0x171)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x482d60[_0x482d60[_0x3da993(0x12a)]=0x232b]=_0x3da993(0x12a),_0x482d60[_0x482d60[_0x3da993(0x2f5)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x482d60[_0x482d60[_0x3da993(0x1e3)]=0x232d]=_0x3da993(0x1e3),_0x482d60[_0x482d60['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x3da993(0x1a8),_0x482d60[_0x482d60[_0x3da993(0x225)]=0x2712]=_0x3da993(0x225),_0x482d60[_0x482d60[_0x3da993(0x240)]=0x2713]=_0x3da993(0x240),_0x482d60[_0x482d60[_0x3da993(0x2aa)]=0x2714]=_0x3da993(0x2aa),_0x482d60[_0x482d60[_0x3da993(0x1b9)]=0x271a]=_0x3da993(0x1b9),_0x482d60[_0x482d60[_0x3da993(0x354)]=0x271b]=_0x3da993(0x354),_0x482d60[_0x482d60['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x3da993(0x158),_0x482d60[_0x482d60[_0x3da993(0x19b)]=0x271d]=_0x3da993(0x19b),_0x482d60[_0x482d60['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x482d60[_0x482d60[_0x3da993(0x2e1)]=0x271f]=_0x3da993(0x2e1),_0x482d60[_0x482d60[_0x3da993(0x194)]=0x2720]=_0x3da993(0x194),_0x482d60[_0x482d60[_0x3da993(0x270)]=0x2af9]=_0x3da993(0x270),_0x482d60[_0x482d60[_0x3da993(0x266)]=0x2ee1]=_0x3da993(0x266),_0x482d60[_0x482d60[_0x3da993(0x342)]=0x2ee2]=_0x3da993(0x342),_0x482d60[_0x482d60[_0x3da993(0x136)]=0x2ee3]=_0x3da993(0x136),_0x482d60[_0x482d60['USER_NOT_INVITED_CODE']=0x2ee4]=_0x3da993(0x26a),_0x482d60[_0x482d60[_0x3da993(0x34f)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x482d60[_0x482d60[_0x3da993(0x134)]=0x32c9]=_0x3da993(0x134),_0x482d60[_0x482d60[_0x3da993(0x29a)]=0x32ca]=_0x3da993(0x29a),_0x482d60[_0x482d60[_0x3da993(0x31a)]=0x32cb]=_0x3da993(0x31a),_0x482d60[_0x482d60[_0x3da993(0x11e)]=-0x1]='UNRECOGNIZED',_0x482d60))(je||{}),ns=Object[_0x3da993(0x1a0)],rs=(_0x508c43,_0x46f40a,_0x230150,_0x712e22)=>{const _0x57615d=_0x3da993;for(var _0x195381=_0x712e22>0x1?void 0x0:_0x712e22?ns(_0x46f40a,_0x230150):_0x46f40a,_0x5ef616=_0x508c43[_0x57615d(0x23d)]-0x1,_0x58d525;_0x5ef616>=0x0;_0x5ef616--)(_0x58d525=_0x508c43[_0x5ef616])&&(_0x195381=_0x58d525(_0x195381)||_0x195381);return _0x195381;},ue=(_0x2d3b4f,_0x3a5af3)=>(_0x5210be,_0x1d3c98)=>_0x3a5af3(_0x5210be,_0x1d3c98,_0x2d3b4f);exports[_0x3da993(0x2f0)]=class extends a[_0x3da993(0x230)]{constructor(_0x2e241f,_0x3fd718,_0x2662b3){const _0x3891c5=_0x3da993;super(),this[_0x3891c5(0x2fa)]=_0x2e241f,this[_0x3891c5(0x1da)]=_0x3fd718,this[_0x3891c5(0x1cc)]=_0x2662b3;}async['runOnServer'](_0xb309ef,_0x302590,_0x27f5ff,..._0x56bc86){const _0x58f4a2=_0x3da993;var _0x1044eb,_0x2a6be2,_0x5cbba2,_0x1c52a6;const _0x29e893=this[_0x58f4a2(0x2fa)][_0x58f4a2(0x145)]();if(!_0x29e893)throw new Error(_0x58f4a2(0x396));const _0x4c3fb4=((_0x1044eb=this[_0x58f4a2(0x1cc)][_0x58f4a2(0x123)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x1044eb:u[_0x58f4a2(0x1b1)])+'/'+_0xb309ef+_0x58f4a2(0x38d)+_0x302590,_0x11297e=new URL(window[_0x58f4a2(0x223)]['href']),_0x25c1eb={'scriptId':_0xb309ef,'runId':(_0x2a6be2=_0x11297e[_0x58f4a2(0x332)][_0x58f4a2(0x1e1)]('runId'))!=null?_0x2a6be2:'','function':_0x302590,'unitId':_0x29e893['getUnitId'](),'argsOfFunction':JSON[_0x58f4a2(0x1b4)](_0x56bc86),'invokeId':(_0x5cbba2=_0x27f5ff[_0x58f4a2(0x172)])!=null?_0x5cbba2:'','executionId':(_0x1c52a6=_0x27f5ff[_0x58f4a2(0x1db)])!=null?_0x1c52a6:''};try{const _0x253e6a=await this['_httpService'][_0x58f4a2(0x350)](_0x4c3fb4,{'body':_0x25c1eb});return _0x253e6a[_0x58f4a2(0x19d)][_0x58f4a2(0x390)]&&_0x253e6a[_0x58f4a2(0x19d)][_0x58f4a2(0x390)][_0x58f4a2(0x135)]!==je['OK']?_0x58f4a2(0x203):_0x253e6a[_0x58f4a2(0x19d)]['result'];}catch{return'Failed';}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G[_0x3da993(0x323)])),ue(0x2,a[_0x3da993(0x38a)])],exports[_0x3da993(0x2f0)]),exports[_0x3da993(0x156)]=xe,exports[_0x3da993(0x24c)]=Ee,exports[_0x3da993(0x21f)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=Be;
1
+ 'use strict';const _0x13cd8a=_0x5703;(function(_0x53432a,_0x52e8a5){const _0x35713d=_0x5703,_0x3123a8=_0x53432a();while(!![]){try{const _0x4ac394=parseInt(_0x35713d(0x380))/0x1*(parseInt(_0x35713d(0x391))/0x2)+parseInt(_0x35713d(0x376))/0x3*(parseInt(_0x35713d(0x3e1))/0x4)+-parseInt(_0x35713d(0x346))/0x5+parseInt(_0x35713d(0x2f9))/0x6+-parseInt(_0x35713d(0x278))/0x7+-parseInt(_0x35713d(0x390))/0x8*(parseInt(_0x35713d(0x2d6))/0x9)+parseInt(_0x35713d(0x3ef))/0xa*(parseInt(_0x35713d(0x3dc))/0xb);if(_0x4ac394===_0x52e8a5)break;else _0x3123a8['push'](_0x3123a8['shift']());}catch(_0x39bfa9){_0x3123a8['push'](_0x3123a8['shift']());}}}(_0x1e89,0x7b612));var Ve=Object[_0x13cd8a(0x247)],Xe=(_0x158669,_0x266a36,_0x1e9787)=>_0x266a36 in _0x158669?Ve(_0x158669,_0x266a36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e9787}):_0x158669[_0x266a36]=_0x1e9787,h=(_0x337979,_0x249f31,_0x149758)=>Xe(_0x337979,typeof _0x249f31!=_0x13cd8a(0x27e)?_0x249f31+'':_0x249f31,_0x149758);Object[_0x13cd8a(0x247)](exports,Symbol['toStringTag'],{'value':'Module'});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x13cd8a(0x2a3)],ze=(_0x46d877,_0xcc6d5c,_0x354327,_0x9d0311)=>{const _0x466372=_0x13cd8a;for(var _0x41aaf4=_0x9d0311>0x1?void 0x0:_0x9d0311?qe(_0xcc6d5c,_0x354327):_0xcc6d5c,_0x298358=_0x46d877[_0x466372(0x29a)]-0x1,_0xf2b267;_0x298358>=0x0;_0x298358--)(_0xf2b267=_0x46d877[_0x298358])&&(_0x41aaf4=_0xf2b267(_0x41aaf4)||_0x41aaf4);return _0x41aaf4;},Oe=(_0x268554,_0x71758b)=>(_0x425e3b,_0x5516aa)=>_0x71758b(_0x425e3b,_0x5516aa,_0x268554);let de=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x4f8ae5,_0x46015f){const _0x4035e1=_0x13cd8a;super(),this[_0x4035e1(0x360)]=_0x4f8ae5,this[_0x4035e1(0x330)]=_0x46015f,this[_0x4035e1(0x3e0)]();}['_init'](){const _0x28c838=_0x13cd8a,_0x34a7e6=this;this[_0x28c838(0x22b)](this[_0x28c838(0x360)][_0x28c838(0x29b)]({'onBeforePasteImage':async _0x9edb1d=>{const _0x263f8b=_0x28c838,_0x5f3dec=await _0x34a7e6[_0x263f8b(0x330)][_0x263f8b(0x222)](_0x9edb1d);return _0x5f3dec?{'source':_0x5f3dec[_0x263f8b(0x1ff)],'imageSourceType':_0x5f3dec[_0x263f8b(0x3f8)]}:null;}}));}};de=ze([Oe(0x0,E[_0x13cd8a(0x23d)]),Oe(0x1,Ge[_0x13cd8a(0x1e8)])],de);function _0x5703(_0x4fdd2c,_0x475a04){const _0x1e89b8=_0x1e89();return _0x5703=function(_0x5703a6,_0x3a2764){_0x5703a6=_0x5703a6-0x1c1;let _0x35844a=_0x1e89b8[_0x5703a6];return _0x35844a;},_0x5703(_0x4fdd2c,_0x475a04);}const Te=[_0x13cd8a(0x2af),_0x13cd8a(0x3ab),_0x13cd8a(0x311),_0x13cd8a(0x2f3),_0x13cd8a(0x2cc),_0x13cd8a(0x39a)];class me extends a[_0x13cd8a(0x2fe)]{constructor(){const _0x5d3e7e=_0x13cd8a;super(...arguments),h(this,_0x5d3e7e(0x2b3),new Map()),h(this,'_colorIndex',0x0);}[_0x13cd8a(0x3e2)](_0x1a3acc){const _0x54350a=_0x13cd8a;if(this[_0x54350a(0x2b3)][_0x54350a(0x315)](_0x1a3acc))return this[_0x54350a(0x2b3)][_0x54350a(0x384)](_0x1a3acc);const _0x4a6e37=Te[this[_0x54350a(0x2c8)]];return this[_0x54350a(0x2c8)]=(this[_0x54350a(0x2c8)]+0x1)%Te['length'],this[_0x54350a(0x2b3)][_0x54350a(0x2f1)](_0x1a3acc,_0x4a6e37),_0x4a6e37;}}function Pe(_0x231430){const _0x24cddc=_0x13cd8a;let _0x32c8fd='';for(const _0x468223 of _0x231430){const {startOffset:_0x100b01,endOffset:_0x4a9b19,isActive:_0x5a211d,rangeType:_0x157089,segmentId:_0x9d139f,segmentPage:_0x365aa4}=_0x468223;_0x32c8fd[_0x24cddc(0x29a)]&&(_0x32c8fd+=','),_0x32c8fd+=_0x100b01+':'+_0x4a9b19+':'+(_0x5a211d?'1':'0')+':'+_0x157089+':'+_0x9d139f+':'+_0x365aa4;}return _0x32c8fd;}function Je(_0x476ef5){const _0x200507=_0x13cd8a,_0xb857f9=_0x476ef5[_0x200507(0x30c)](','),_0x22bd14=[];for(const _0x88ce71 of _0xb857f9){const [_0x209e38,_0x1e8c90,_0x5336e7,_0xa9b60f,_0x390ab1,_0x4f647e]=_0x88ce71[_0x200507(0x30c)](':');_0x22bd14['push']({'startOffset':Number(_0x209e38),'endOffset':Number(_0x1e8c90),'collapsed':_0x209e38===_0x1e8c90,'isActive':_0x5336e7==='1','rangeType':_0xa9b60f===a[_0x200507(0x1c1)]['TEXT']?a[_0x200507(0x1c1)][_0x200507(0x305)]:a[_0x200507(0x1c1)][_0x200507(0x317)],'segmentId':typeof _0x390ab1==_0x200507(0x43f)?String(_0x390ab1):'','segmentPage':Number(_0x4f647e!=null?_0x4f647e:-0x1)});}return _0x22bd14[_0x200507(0x1c3)](_0x12bb1e=>_0x12bb1e[_0x200507(0x3fc)])||(_0x22bd14[0x0]['isActive']=!0x0),_0x22bd14;}class Ce extends a[_0x13cd8a(0x2b1)]{constructor(){const _0x221017=_0x13cd8a;super(...arguments),h(this,_0x221017(0x363),new d[(_0x221017(0x2ab))](null)),h(this,_0x221017(0x3d7),this[_0x221017(0x363)][_0x221017(0x2d3)]());}[_0x13cd8a(0x2e3)](_0x2502bb){const _0x3c1d19=_0x13cd8a,{unitID:_0xa79ed,memberID:_0x3c0c85,textRanges:_0x25ac22}=_0x2502bb,_0x4de8cf=Pe(_0x25ac22);if(_0x4de8cf==='')return;const _0x5c4fbb={'unitID':_0xa79ed,'memberID':_0x3c0c85,'selection':_0x4de8cf};this[_0x3c1d19(0x363)][_0x3c1d19(0x331)](_0x5c4fbb);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x128308,_0x43901c,_0x5da02d,_0x5f05ff)=>{const _0x10232a=_0x13cd8a;for(var _0xde43e8=_0x5f05ff>0x1?void 0x0:_0x5f05ff?Ze(_0x43901c,_0x5da02d):_0x43901c,_0x2bd46a=_0x128308[_0x10232a(0x29a)]-0x1,_0x50177a;_0x2bd46a>=0x0;_0x2bd46a--)(_0x50177a=_0x128308[_0x2bd46a])&&(_0xde43e8=_0x50177a(_0xde43e8)||_0xde43e8);return _0xde43e8;},L=(_0x252969,_0x53bad5)=>(_0xec6606,_0x16a5ad)=>_0x53bad5(_0xec6606,_0x16a5ad,_0x252969);const et=0x12c,tt=0x64;let Ie=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x5779c9,_0x509ae1,_0x4b532b,_0x43774d,_0x40576e,_0x5c8150,_0x33af25,_0x41882e,_0xe944b8){const _0x2a8e1b=_0x13cd8a;super(),h(this,_0x2a8e1b(0x350),!0x1),h(this,'_init',!0x1),h(this,_0x2a8e1b(0x1f3),new d[(_0x2a8e1b(0x2ab))](new Map())),h(this,'cursorInfo$',this[_0x2a8e1b(0x1f3)]['asObservable']()),h(this,_0x2a8e1b(0x235),new d[(_0x2a8e1b(0x2ab))]([])),h(this,_0x2a8e1b(0x297),this[_0x2a8e1b(0x235)][_0x2a8e1b(0x329)](d[_0x2a8e1b(0x1c5)](et))),h(this,_0x2a8e1b(0x3f3),a[_0x2a8e1b(0x22a)](_0x822ccd=>{const _0x49b7f8=_0x2a8e1b,_0x2c31ff={'eventID':m[_0x49b7f8(0x254)][_0x49b7f8(0x2cd)],'data':{'unitID':this['unitID'],'memberID':this[_0x49b7f8(0x3a0)][_0x49b7f8(0x261)](),'selection':Pe(_0x822ccd)}};this['_session'][_0x49b7f8(0x421)](_0x2c31ff,this[_0x49b7f8(0x268)]);},tt)),(this[_0x2a8e1b(0x268)]=_0x5779c9,this['_session']=_0x509ae1,this[_0x2a8e1b(0x253)]=_0x4b532b,this[_0x2a8e1b(0x24b)]=_0x43774d,this['_memberService']=_0x40576e,this[_0x2a8e1b(0x382)]=_0x5c8150,this[_0x2a8e1b(0x36e)]=_0x33af25,this[_0x2a8e1b(0x2c3)]=_0x41882e,this['_commandService']=_0xe944b8);}get['cursorInfo'](){const _0x54c8fa=_0x13cd8a;return this[_0x54c8fa(0x1f3)][_0x54c8fa(0x383)]();}get[_0x13cd8a(0x324)](){const _0x82cb31=_0x13cd8a;return this[_0x82cb31(0x235)]['getValue']();}['dispose'](){const _0x254bc8=_0x13cd8a;super[_0x254bc8(0x41d)](),this['_cursorInfo$'][_0x254bc8(0x331)](new Map()),this[_0x254bc8(0x1f3)][_0x254bc8(0x377)](),this[_0x254bc8(0x235)][_0x254bc8(0x331)]([]),this[_0x254bc8(0x235)][_0x254bc8(0x377)]();}[_0x13cd8a(0x2e9)](){const _0x380352=_0x13cd8a;this['_init']||(this[_0x380352(0x3e0)]=!0x0,this['_session']['sessionStatus$'][_0x380352(0x329)](d[_0x380352(0x30a)](this['dispose$']))['subscribe'](_0x11f02d=>{const _0x32a9ca=_0x380352;_0x11f02d===u[_0x32a9ca(0x3db)][_0x32a9ca(0x430)]?this[_0x32a9ca(0x3a1)]():this[_0x32a9ca(0x21e)]();}),this[_0x380352(0x3a0)][_0x380352(0x358)][_0x380352(0x329)](d[_0x380352(0x30a)](this[_0x380352(0x1dd)]))['subscribe'](_0xfa42a1=>{const _0x46ed45=_0x380352,_0x1fdde0=_0xfa42a1['eventID'];_0x1fdde0===m[_0x46ed45(0x254)]['UPDATE_CURSOR']&&this[_0x46ed45(0x262)](_0xfa42a1),_0x1fdde0===m[_0x46ed45(0x254)][_0x46ed45(0x20b)]&&this[_0x46ed45(0x1c8)](_0xfa42a1);}),this[_0x380352(0x22b)](this[_0x380352(0x39e)]['onCommandExecuted'](_0x1c4c9d=>{const _0x959724=_0x380352,_0x3d8006=_0x1c4c9d[_0x959724(0x357)];_0x3d8006!=null&&this['_online']&&_0x1c4c9d['id']===Y[_0x959724(0x20f)]['id']&&_0x3d8006['unitId']===this['unitID']&&_0x3d8006[_0x959724(0x2ca)]===!0x1&&_0x3d8006[_0x959724(0x432)][_0x959724(0x29a)]>0x0&&this[_0x959724(0x3f3)](_0x3d8006['ranges']);})),this[_0x380352(0x382)][_0x380352(0x3d7)]['pipe'](d['takeUntil'](this['dispose$']))['subscribe'](_0x145e34=>{const _0x50ce75=_0x380352;if((_0x145e34==null?void 0x0:_0x145e34[_0x50ce75(0x268)])!==this[_0x50ce75(0x268)])return;const _0x49ef15={'eventID':m[_0x50ce75(0x254)]['UPDATE_CURSOR'],'data':_0x145e34};this[_0x50ce75(0x262)](_0x49ef15);}),this[_0x380352(0x22b)](this[_0x380352(0x39e)][_0x380352(0x1fd)](_0x432189=>{const _0x110e7d=_0x380352;if(_0x432189[_0x110e7d(0x357)]==null)return;const _0xe90723=_0x432189[_0x110e7d(0x357)];if(_0x432189['id']!==Y[_0x110e7d(0x1e1)]['id']||_0xe90723[_0x110e7d(0x41f)]!==this[_0x110e7d(0x268)])return;const _0x590434={'id':_0x110e7d(0x2c1),'params':_0xe90723},_0x308ec6=this[_0x110e7d(0x433)];for(const [_0x54fadd,_0x2384e9]of _0x308ec6){const _0x5c9d47={'id':_0x110e7d(0x2c1),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2384e9[_0x110e7d(0x432)]}},_0x1c6466=this[_0x110e7d(0x36e)][_0x110e7d(0x25f)](_0x590434,_0x5c9d47,!0x1);if(m[_0x110e7d(0x38d)](_0x1c6466))throw _0x1c6466['error'];_0x308ec6[_0x110e7d(0x2f1)](_0x54fadd,{..._0x2384e9,'ranges':_0x1c6466[_0x110e7d(0x37b)][_0x110e7d(0x357)][_0x110e7d(0x38c)]});}queueMicrotask(()=>{const _0x3df58f=_0x110e7d;this[_0x3df58f(0x1f3)][_0x3df58f(0x331)](_0x308ec6);});})));}[_0x13cd8a(0x262)](_0x31aa7c){const _0x3222d2=_0x13cd8a;var _0x409779,_0x4dba9e;const {memberID:_0x563c29,selection:_0x5c7077}=_0x31aa7c['data'],_0x49e28f=Je(_0x5c7077),_0x31663e=(_0x4dba9e=(_0x409779=this[_0x3222d2(0x3cb)][_0x3222d2(0x24d)](this['unitID'],_0x563c29))==null?void 0x0:_0x409779[_0x3222d2(0x257)])!=null?_0x4dba9e:_0x3222d2(0x211),_0x547545={'color':this[_0x3222d2(0x24b)][_0x3222d2(0x3e2)](_0x563c29),'name':_0x31663e,'ranges':_0x49e28f},_0x5bff39=this[_0x3222d2(0x433)];_0x5bff39[_0x3222d2(0x2f1)](_0x563c29,_0x547545),this[_0x3222d2(0x1f3)][_0x3222d2(0x331)](_0x5bff39);}[_0x13cd8a(0x1c8)](_0x2426a2){const _0x3c1f9d=_0x13cd8a,{memberID:_0x8a8d77}=_0x2426a2[_0x3c1f9d(0x2ac)],_0x43d7d8=this[_0x3c1f9d(0x433)];_0x43d7d8[_0x3c1f9d(0x2a4)](_0x8a8d77),this['_cursorInfo$'][_0x3c1f9d(0x331)](_0x43d7d8);}[_0x13cd8a(0x3a1)](){const _0x3bac63=_0x13cd8a;var _0x3516c2;if(this['_online']=!0x0,((_0x3516c2=this[_0x3bac63(0x2c3)][_0x3bac63(0x3b6)]())==null?void 0x0:_0x3516c2[_0x3bac63(0x313)]())!==this[_0x3bac63(0x268)])return;const _0x530d05=this[_0x3bac63(0x253)][_0x3bac63(0x384)](Y[_0x3bac63(0x33a)])[_0x3bac63(0x408)]();Array['isArray'](_0x530d05)&&_0x530d05[_0x3bac63(0x29a)]>0x0&&this[_0x3bac63(0x3f3)](_0x530d05);}[_0x13cd8a(0x21e)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x13cd8a(0x248)](u['MemberService'])),L(0x5,a[_0x13cd8a(0x248)](Ce)),L(0x6,m[_0x13cd8a(0x225)]),L(0x7,a[_0x13cd8a(0x362)]),L(0x8,a[_0x13cd8a(0x209)])],Ie);var st=Object[_0x13cd8a(0x2a3)],it=(_0x3b29f7,_0x2715ae,_0x6a77bc,_0x201645)=>{for(var _0x2216a1=_0x201645>0x1?void 0x0:_0x201645?st(_0x2715ae,_0x6a77bc):_0x2715ae,_0x33c36f=_0x3b29f7['length']-0x1,_0x4e990b;_0x33c36f>=0x0;_0x33c36f--)(_0x4e990b=_0x3b29f7[_0x33c36f])&&(_0x2216a1=_0x4e990b(_0x2216a1)||_0x2216a1);return _0x2216a1;},A=(_0x4ee119,_0x26ac76)=>(_0x5dbb76,_0x464ba5)=>_0x26ac76(_0x5dbb76,_0x464ba5,_0x4ee119);const nt=0x12c,rt=0x64,ot=()=>{let _0x3d2d0b=[],_0x3ee8aa=!0x1;return _0x4fa24d=>{const _0x4aaf82=_0x5703;_0x3d2d0b[_0x4aaf82(0x28f)](_0x4fa24d),_0x3ee8aa||(_0x3ee8aa=!0x0,setTimeout(()=>{const _0x396f66=_0x4aaf82;_0x3d2d0b[_0x396f66(0x3e3)](_0x796615=>_0x796615()),_0x3d2d0b=[],_0x3ee8aa=!0x1;}));};};let Se=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x117b8c,_0x432d86,_0x1de3a6,_0x1eff53,_0x3296e2,_0x48d2ad,_0x5697db,_0xfe2c2f){const _0x512d3d=_0x13cd8a;super(),h(this,'_online',!0x1),h(this,_0x512d3d(0x3e0),!0x1),h(this,_0x512d3d(0x1f3),new d[(_0x512d3d(0x2ab))](new Map())),h(this,'cursorInfo$',this[_0x512d3d(0x1f3)][_0x512d3d(0x2d3)]()),h(this,_0x512d3d(0x235),new d[(_0x512d3d(0x2ab))]([])),h(this,_0x512d3d(0x297),this[_0x512d3d(0x235)][_0x512d3d(0x329)](d[_0x512d3d(0x1c5)](nt))),h(this,_0x512d3d(0x3f3),a[_0x512d3d(0x22a)]((_0x56779d,_0x4e87d9)=>{const _0x3ac935=_0x512d3d,_0x920e31={'eventID':m[_0x3ac935(0x254)][_0x3ac935(0x2cd)],'data':{'unitID':this[_0x3ac935(0x268)],'memberID':this[_0x3ac935(0x3a0)][_0x3ac935(0x261)](),'selection':be[_0x3ac935(0x3a7)](_0x56779d,_0x4e87d9['range'])}};this['_session'][_0x3ac935(0x421)](_0x920e31,this['unitID']);},rt)),(this[_0x512d3d(0x268)]=_0x117b8c,this[_0x512d3d(0x3a0)]=_0x432d86,this[_0x512d3d(0x253)]=_0x1de3a6,this[_0x512d3d(0x24b)]=_0x1eff53,this[_0x512d3d(0x3cb)]=_0x3296e2,this[_0x512d3d(0x2c3)]=_0x48d2ad,this[_0x512d3d(0x39e)]=_0x5697db,this[_0x512d3d(0x2c0)]=_0xfe2c2f);}get[_0x13cd8a(0x433)](){const _0x863f30=_0x13cd8a;return this[_0x863f30(0x1f3)]['getValue']();}get[_0x13cd8a(0x324)](){const _0x14617c=_0x13cd8a;return this['_roomMembers$'][_0x14617c(0x383)]();}[_0x13cd8a(0x41d)](){const _0x429f3b=_0x13cd8a;super[_0x429f3b(0x41d)](),this[_0x429f3b(0x1f3)][_0x429f3b(0x331)](new Map()),this[_0x429f3b(0x1f3)][_0x429f3b(0x377)](),this[_0x429f3b(0x235)][_0x429f3b(0x331)]([]),this[_0x429f3b(0x235)]['complete']();}[_0x13cd8a(0x2e9)](){const _0x288fa1=_0x13cd8a;this['_init']||(this[_0x288fa1(0x3e0)]=!0x0,this['_session'][_0x288fa1(0x42a)]['pipe'](d[_0x288fa1(0x30a)](this[_0x288fa1(0x1dd)]))[_0x288fa1(0x29f)](_0x1abc87=>{const _0x1fc9bd=_0x288fa1;_0x1abc87===u[_0x1fc9bd(0x3db)][_0x1fc9bd(0x430)]?this[_0x1fc9bd(0x3a1)]():this[_0x1fc9bd(0x21e)]();}),this[_0x288fa1(0x3a0)][_0x288fa1(0x358)]['pipe'](d[_0x288fa1(0x30a)](this[_0x288fa1(0x1dd)]))[_0x288fa1(0x29f)](_0x55e5d0=>{const _0x59ac68=_0x288fa1,_0x4925f1=_0x55e5d0[_0x59ac68(0x2bc)];_0x4925f1===m[_0x59ac68(0x254)][_0x59ac68(0x2cd)]&&this[_0x59ac68(0x262)](_0x55e5d0),_0x4925f1===m[_0x59ac68(0x254)][_0x59ac68(0x20b)]&&this[_0x59ac68(0x1c8)](_0x55e5d0);}),this[_0x288fa1(0x27d)](),this[_0x288fa1(0x22b)](this[_0x288fa1(0x39e)][_0x288fa1(0x1fd)](_0x1d38f7=>{const _0x2ac2d3=_0x288fa1;if(this[_0x2ac2d3(0x350)]&&_0x1d38f7['id']===g[_0x2ac2d3(0x218)]['id']&&_0x1d38f7['params'][_0x2ac2d3(0x41f)]===this[_0x2ac2d3(0x268)]){const _0x542613=_0x1d38f7[_0x2ac2d3(0x357)];this[_0x2ac2d3(0x3f3)](_0x542613[_0x2ac2d3(0x407)],_0x542613[_0x2ac2d3(0x2c4)][0x0]);}})));}[_0x13cd8a(0x262)](_0x2237e2){const _0x58bd92=_0x13cd8a;var _0x5e979a,_0x311e82;const {memberID:_0x520506,selection:_0x1838eb}=_0x2237e2['data'],{sheetName:_0x530529,range:_0x55e2e3}=be[_0x58bd92(0x1cf)](_0x1838eb),_0x205a13={'name':(_0x311e82=(_0x5e979a=this['_memberService'][_0x58bd92(0x24d)](this['unitID'],_0x520506))==null?void 0x0:_0x5e979a[_0x58bd92(0x257)])!=null?_0x311e82:_0x58bd92(0x211),'range':this[_0x58bd92(0x31b)](_0x530529,_0x55e2e3),'sheetID':_0x530529,'color':this[_0x58bd92(0x24b)][_0x58bd92(0x3e2)](_0x520506),'selection':_0x1838eb},_0x2f6b81=this[_0x58bd92(0x433)];_0x2f6b81[_0x58bd92(0x2f1)](_0x520506,_0x205a13),this[_0x58bd92(0x1f3)][_0x58bd92(0x331)](_0x2f6b81);}[_0x13cd8a(0x1c8)](_0x260259){const _0x1ee923=_0x13cd8a,{memberID:_0x2b02dd}=_0x260259[_0x1ee923(0x2ac)],_0x41923c=this['cursorInfo'];_0x41923c[_0x1ee923(0x2a4)](_0x2b02dd),this[_0x1ee923(0x1f3)][_0x1ee923(0x331)](_0x41923c);}[_0x13cd8a(0x31b)](_0x9de096,_0x3c91ff){const _0x121994=_0x13cd8a;var _0xcd7311,_0x292642;const _0x4e03f0=(_0x292642=(_0xcd7311=this[_0x121994(0x2c3)][_0x121994(0x3b8)](this[_0x121994(0x268)]))==null?void 0x0:_0xcd7311[_0x121994(0x399)](_0x9de096))==null?void 0x0:_0x292642[_0x121994(0x263)]();return(_0x4e03f0==null?void 0x0:_0x4e03f0[_0x121994(0x23f)](_0x2eed7c=>a[_0x121994(0x343)][_0x121994(0x43d)](_0x2eed7c,_0x3c91ff)))||_0x3c91ff;}[_0x13cd8a(0x27d)](){const _0x36051b=_0x13cd8a,_0x138140=new a[(_0x36051b(0x31e))](),_0x73d3bb=ot(),_0xf689dd=()=>{const _0x2e393c=_0x36051b;_0x138140[_0x2e393c(0x41d)]();const _0x253f06=(_0x1de073,_0x4ad296,_0x23c20a,_0x4e0140)=>{const _0x5b3e46=_0x2e393c;let _0x44302c=[];switch(_0x1de073['id']){case g[_0x5b3e46(0x32d)][_0x5b3e46(0x25d)]:{_0x44302c=g[_0x5b3e46(0x31d)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)]['DeleteRangeMoveUpCommandId']:{_0x44302c=g[_0x5b3e46(0x371)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)][_0x5b3e46(0x242)]:{_0x44302c=g['handleInsertCol'](_0x1de073,_0x4e0140);break;}case g['EffectRefRangId'][_0x5b3e46(0x3ee)]:{_0x44302c=g[_0x5b3e46(0x403)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)][_0x5b3e46(0x273)]:{_0x44302c=g[_0x5b3e46(0x26b)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)][_0x5b3e46(0x3a3)]:{_0x44302c=g[_0x5b3e46(0x213)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)][_0x5b3e46(0x24f)]:{_0x44302c=g[_0x5b3e46(0x2f2)](_0x1de073,_0x4e0140);break;}case g[_0x5b3e46(0x32d)]['RemoveColCommandId']:{_0x44302c=g[_0x5b3e46(0x2b5)](_0x1de073,_0x4e0140);break;}case g['EffectRefRangId'][_0x5b3e46(0x312)]:{_0x44302c=g[_0x5b3e46(0x420)](_0x1de073,_0x4e0140);break;}}const _0x26d5b0=g['runRefRangeMutations'](_0x44302c,_0x4e0140),_0x89609f=this[_0x5b3e46(0x433)][_0x5b3e46(0x384)](_0x4ad296);if(_0x89609f&&_0x26d5b0){const _0x39a38f={..._0x89609f,'range':_0x26d5b0};this[_0x5b3e46(0x433)][_0x5b3e46(0x2f1)](_0x4ad296,_0x39a38f),_0x73d3bb(()=>{const _0xe56fce=_0x5b3e46,_0x462b18=this['_refRangeService'][_0xe56fce(0x241)](_0x26d5b0,_0x52637f=>(_0x462b18['dispose'](),_0x253f06(_0x52637f,_0x4ad296,_0x23c20a,_0x26d5b0)));_0x138140[_0xe56fce(0x2a1)](_0x462b18);});}return{'redos':[],'undos':[]};};this[_0x2e393c(0x433)][_0x2e393c(0x3e3)]((_0x1b7c5f,_0x2fcf78)=>{const _0x4d85a3=_0x2e393c,{range:_0x2182a5,sheetID:_0x57d155}=_0x1b7c5f,_0x2afefe=this[_0x4d85a3(0x2c0)]['registerRefRange'](_0x2182a5,_0x30b114=>(_0x2afefe[_0x4d85a3(0x41d)](),_0x253f06(_0x30b114,_0x2fcf78,_0x57d155,_0x2182a5)));_0x138140['add'](_0x2afefe);});};this['disposeWithMe'](a[_0x36051b(0x2e4)](this[_0x36051b(0x1f3)]['subscribe'](()=>{_0xf689dd();})));}[_0x13cd8a(0x3a1)](){const _0x2365e4=_0x13cd8a;var _0x5bdb34,_0x72cb8d;if(this[_0x2365e4(0x350)]=!0x0,((_0x5bdb34=this['_univerInstanceService'][_0x2365e4(0x3b6)]())==null?void 0x0:_0x5bdb34[_0x2365e4(0x313)]())!==this[_0x2365e4(0x268)])return;const _0x520f83=(_0x72cb8d=this[_0x2365e4(0x253)][_0x2365e4(0x384)](g[_0x2365e4(0x2ba)])['getCurrentSelections']())==null?void 0x0:_0x72cb8d[0x0],_0x4942b0=this['_univerInstanceService'][_0x2365e4(0x1dc)](a[_0x2365e4(0x1d5)][_0x2365e4(0x3e7)])[_0x2365e4(0x3dd)]();_0x520f83&&_0x4942b0&&this[_0x2365e4(0x3f3)](_0x4942b0['getSheetId'](),_0x520f83);}[_0x13cd8a(0x21e)](){const _0x2fc4d6=_0x13cd8a;this[_0x2fc4d6(0x350)]=!0x1;}};Se=it([A(0x2,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x13cd8a(0x248)](u[_0x13cd8a(0x258)])),A(0x5,a[_0x13cd8a(0x362)]),A(0x6,a['ICommandService']),A(0x7,a[_0x13cd8a(0x248)](g['RefRangeService']))],Se);var at=Object[_0x13cd8a(0x2a3)],ct=(_0x23a698,_0x448acd,_0x4d04be,_0xe127b3)=>{const _0x3b5b1b=_0x13cd8a;for(var _0x2e7672=_0xe127b3>0x1?void 0x0:_0xe127b3?at(_0x448acd,_0x4d04be):_0x448acd,_0x2a64e3=_0x23a698[_0x3b5b1b(0x29a)]-0x1,_0x3ba0d7;_0x2a64e3>=0x0;_0x2a64e3--)(_0x3ba0d7=_0x23a698[_0x2a64e3])&&(_0x2e7672=_0x3ba0d7(_0x2e7672)||_0x2e7672);return _0x2e7672;},ie=(_0x2d681a,_0x415b20)=>(_0x4b85df,_0x40526b)=>_0x415b20(_0x4b85df,_0x40526b,_0x2d681a);let x=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x469908,_0x7c728a,_0x5103c6){const _0x42a7fb=_0x13cd8a;super(),h(this,_0x42a7fb(0x2a2),new Map()),h(this,'_entityInit$',new d['Subject']()),(this[_0x42a7fb(0x2c3)]=_0x469908,this[_0x42a7fb(0x253)]=_0x7c728a,this[_0x42a7fb(0x212)]=_0x5103c6,this[_0x42a7fb(0x3e0)]());}[_0x13cd8a(0x41d)](){const _0x5c6e60=_0x13cd8a;super[_0x5c6e60(0x41d)](),this[_0x5c6e60(0x434)]['complete'](),this['_entities'][_0x5c6e60(0x3e3)](_0x145568=>_0x145568[_0x5c6e60(0x41d)]());}[_0x13cd8a(0x3ca)](_0x5668ea){const _0xc83c27=_0x13cd8a;return this[_0xc83c27(0x2a2)]['has'](_0x5668ea)?this['_entities']['get'](_0x5668ea)['cursorInfo$']:this['_entityInit$'][_0xc83c27(0x329)](d['filter'](_0x1c07b0=>_0x1c07b0[_0xc83c27(0x268)]===_0x5668ea),d[_0xc83c27(0x366)](_0x4041b7=>_0x4041b7[_0xc83c27(0x2ae)]));}[_0x13cd8a(0x3e0)](){const _0x563846=_0x13cd8a;this[_0x563846(0x2c3)]['getTypeOfUnitAdded$'](a[_0x563846(0x1d5)][_0x563846(0x3e7)])[_0x563846(0x329)](d[_0x563846(0x30a)](this[_0x563846(0x1dd)]))[_0x563846(0x29f)](async _0x28c8ca=>{const _0x429382=_0x563846,_0x4c4be4=_0x28c8ca[_0x429382(0x313)](),_0x158d83=await this[_0x429382(0x2e8)](_0x4c4be4);this[_0x429382(0x434)]['next'](_0x158d83),this[_0x429382(0x2a2)][_0x429382(0x2f1)](_0x4c4be4,_0x158d83);}),this[_0x563846(0x2c3)][_0x563846(0x337)](a[_0x563846(0x1d5)][_0x563846(0x3b2)])[_0x563846(0x329)](d[_0x563846(0x30a)](this[_0x563846(0x1dd)]))['pipe'](d[_0x563846(0x1f0)](_0x2eb7b6=>!_0x2eb7b6[_0x563846(0x313)]()[_0x563846(0x2cb)]('__')))['subscribe'](async _0x5006fe=>{const _0x2ff06d=_0x563846,_0x3e3b92=_0x5006fe[_0x2ff06d(0x313)](),_0x2b853d=await this[_0x2ff06d(0x1c6)](_0x3e3b92);this[_0x2ff06d(0x434)][_0x2ff06d(0x331)](_0x2b853d),this[_0x2ff06d(0x2a2)][_0x2ff06d(0x2f1)](_0x3e3b92,_0x2b853d);}),d[_0x563846(0x3c3)](this[_0x563846(0x2c3)][_0x563846(0x3ad)](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0x563846(0x3ad)](a['UniverInstanceType'][_0x563846(0x3e7)]))[_0x563846(0x329)](d[_0x563846(0x30a)](this[_0x563846(0x1dd)]))[_0x563846(0x29f)](_0x5f75a6=>{const _0x5441d7=_0x563846,_0x445ef4=_0x5f75a6['getUnitId'](),_0x52fe61=this['_entities']['get'](_0x445ef4);_0x52fe61&&(_0x52fe61['dispose'](),this[_0x5441d7(0x2a2)][_0x5441d7(0x2a4)](_0x445ef4));});}async[_0x13cd8a(0x2e8)](_0x417582){const _0x5d75f1=_0x13cd8a,_0x8b1ad0=await this[_0x5d75f1(0x212)][_0x5d75f1(0x26e)](_0x417582),_0x48af73=this[_0x5d75f1(0x253)][_0x5d75f1(0x397)](Se,_0x417582,_0x8b1ad0);return _0x48af73['init'](),_0x48af73;}async[_0x13cd8a(0x1c6)](_0x543b1e){const _0x5f1493=_0x13cd8a,_0xb3d9a0=await this['_collabSessionService'][_0x5f1493(0x26e)](_0x543b1e),_0x4828e3=this[_0x5f1493(0x253)][_0x5f1493(0x397)](Ie,_0x543b1e,_0xb3d9a0);return _0x4828e3[_0x5f1493(0x2e9)](),_0x4828e3;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x13cd8a(0x248)](a['Injector'])),ie(0x2,a['Inject'](u[_0x13cd8a(0x38a)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1a8711,_0x2a76c3){const _0x3217cd=_0x13cd8a;let {radius:_0x95af55,width:_0x4ffb9d,height:_0x10e06a}=_0x2a76c3;_0x95af55=_0x95af55!=null?_0x95af55:0x0,_0x4ffb9d=_0x4ffb9d!=null?_0x4ffb9d:0x1e,_0x10e06a=_0x10e06a!=null?_0x10e06a:0x1e;let _0x303c11=0x0,_0x50ee0f=0x0,_0x3f6a34=0x0;_0x303c11=_0x50ee0f=_0x3f6a34=Math[_0x3217cd(0x373)](_0x95af55,_0x4ffb9d/0x2,_0x10e06a/0x2),_0x1a8711['beginPath'](),_0x1a8711[_0x3217cd(0x214)](_0x303c11,0x0),_0x1a8711[_0x3217cd(0x3b5)](_0x4ffb9d-_0x50ee0f,0x0),_0x1a8711[_0x3217cd(0x41e)](_0x4ffb9d-_0x50ee0f,_0x50ee0f,_0x50ee0f,Math['PI']*0x3/0x2,0x0,!0x1),_0x1a8711[_0x3217cd(0x3b5)](_0x4ffb9d,_0x10e06a-_0x3f6a34),_0x1a8711[_0x3217cd(0x41e)](_0x4ffb9d-_0x3f6a34,_0x10e06a-_0x3f6a34,_0x3f6a34,0x0,Math['PI']/0x2,!0x1),_0x1a8711[_0x3217cd(0x3b5)](0x0,_0x10e06a),_0x1a8711[_0x3217cd(0x3b5)](0x0,_0x303c11),_0x1a8711[_0x3217cd(0x41e)](_0x303c11,_0x303c11,_0x303c11,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1a8711[_0x3217cd(0x2d9)](),_0x2a76c3[_0x3217cd(0x3a6)]&&(_0x1a8711[_0x3217cd(0x26f)](),_0x1a8711[_0x3217cd(0x340)]=_0x2a76c3['fill'],_0x2a76c3[_0x3217cd(0x306)]===_0x3217cd(0x3b0)?_0x1a8711[_0x3217cd(0x3a6)](_0x3217cd(0x3b0)):_0x1a8711[_0x3217cd(0x3a6)](),_0x1a8711['restore']());}class ee extends p[_0x13cd8a(0x318)]{constructor(_0x1f333c,_0x406477){const _0x433df1=_0x13cd8a;super(_0x1f333c,_0x406477),h(this,_0x433df1(0x3b3)),h(this,_0x433df1(0x27c)),(this[_0x433df1(0x3b3)]=_0x406477==null?void 0x0:_0x406477['color'],this[_0x433df1(0x27c)]=_0x406477==null?void 0x0:_0x406477[_0x433df1(0x27c)]);}static['drawWith'](_0x11a37b,_0x1ec96b){const _0x461592=_0x13cd8a,{text:_0x496142,color:_0x44a077}=_0x1ec96b;_0x11a37b[_0x461592(0x26f)](),_0x11a37b[_0x461592(0x3d8)]=_0x461592(0x415);const _0x4c4fc1=_0x11a37b[_0x461592(0x3c8)](_0x496142)['width'],_0x4efdd1=Math[_0x461592(0x373)](_0x4c4fc1+0x2*ne,Re);_t(_0x11a37b,{'height':K,'radius':0x4,'width':_0x4efdd1,'fill':_0x44a077}),_0x11a37b[_0x461592(0x340)]=_0x461592(0x252);const _0x5c248b=ne,_0x39062e=K-lt,_0x1cc60b=Re-0x2*ne;if(_0x4c4fc1>_0x1cc60b){let _0x85b990='',_0x52a12c=0x0;for(const _0x2ec91d of _0x496142){const _0x29f43c=_0x11a37b['measureText'](_0x2ec91d)[_0x461592(0x1ce)];if(_0x52a12c+_0x29f43c<=_0x1cc60b-_0x11a37b['measureText'](_0x461592(0x412))[_0x461592(0x1ce)])_0x85b990+=_0x2ec91d,_0x52a12c+=_0x29f43c;else{_0x85b990+=_0x461592(0x412);break;}}_0x11a37b[_0x461592(0x336)](_0x85b990,_0x5c248b,_0x39062e);}else _0x11a37b[_0x461592(0x336)](_0x496142,_0x5c248b,_0x39062e);_0x11a37b[_0x461592(0x40e)]();}[_0x13cd8a(0x401)](_0x48cecc){const _0x1f3195=_0x13cd8a;ee[_0x1f3195(0x388)](_0x48cecc,this);}}const re='collab-text-anchor-',ht=_0x13cd8a(0x3af),ut=_0x13cd8a(0x327),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x13cd8a(0x381);class De{constructor(_0x586df5,_0x4ae226,_0x372b53,_0x46ca7b){const _0x504af7=_0x13cd8a;h(this,_0x504af7(0x243),[]),h(this,'_anchor',null),h(this,_0x504af7(0x368),null),h(this,_0x504af7(0x290),null),h(this,_0x504af7(0x302),null),h(this,_0x504af7(0x272),null),(this[_0x504af7(0x326)]=_0x586df5,this[_0x504af7(0x2e6)]=_0x4ae226,this[_0x504af7(0x2ff)]=_0x372b53,this['_document']=_0x46ca7b,this[_0x504af7(0x1ed)]());}set['_hover'](_0x5d0a5c){const _0x33d0cd=_0x13cd8a;_0x5d0a5c?(this[_0x33d0cd(0x290)]&&this[_0x33d0cd(0x290)]['hide'](),this[_0x33d0cd(0x368)]&&this[_0x33d0cd(0x368)][_0x33d0cd(0x299)]()):(this[_0x33d0cd(0x290)]&&this[_0x33d0cd(0x290)][_0x33d0cd(0x299)](),this['_textBubble']&&this['_textBubble'][_0x33d0cd(0x3d3)]());}['dispose'](){const _0x29f406=_0x13cd8a;for(const _0x34e572 of this[_0x29f406(0x243)])_0x34e572[_0x29f406(0x41d)]();this[_0x29f406(0x368)]&&this[_0x29f406(0x368)][_0x29f406(0x41d)](),this[_0x29f406(0x290)]&&this['_anchorDot'][_0x29f406(0x41d)](),this[_0x29f406(0x416)]&&this[_0x29f406(0x416)][_0x29f406(0x41d)](),this[_0x29f406(0x272)]&&this['_eventUnsubscribe']();}['_render'](){const _0x183864=_0x13cd8a;var _0x4406ba;const {_docSkeleton:_0x4c4d99,_document:_0x5d2eac}=this,{color:_0xef89ba,name:_0x49b33d,ranges:_0xd4677c}=this['_cursor'],_0x41dc1c=_0x5d2eac[_0x183864(0x204)](),{docsLeft:_0x1716e3,docsTop:_0xc814f8}=_0x41dc1c,_0x752de2=new E[(_0x183864(0x246))](_0x41dc1c,_0x4c4d99);for(const {startOffset:_0x42f23a,endOffset:_0x1d50ba,rangeType:_0x59cbb8,segmentId:_0x48b634,segmentPage:_0x545403,collapsed:_0x21390f,isActive:_0x32fe50}of _0xd4677c){const _0x49e0b0=_0x4c4d99[_0x183864(0x304)](_0x42f23a,!0x0,_0x48b634,_0x545403);let _0x4517e1=_0x4c4d99[_0x183864(0x304)](_0x1d50ba,!0x0,_0x48b634,_0x545403);if(_0x4517e1==null&&(_0x4517e1=_0x4c4d99[_0x183864(0x304)](_0x1d50ba-0x1,!0x1,_0x48b634,_0x545403)),_0x32fe50){const {contentBoxPointGroup:_0x3e023a}=_0x752de2['getRangePointData'](_0x4517e1,_0x4517e1);if(_0x3e023a[_0x183864(0x29a)]===0x0)continue;this[_0x183864(0x370)](_0xef89ba,_0x3e023a,_0x1716e3,_0xc814f8,_0x49b33d),this[_0x183864(0x272)]=this[_0x183864(0x265)]();}if(_0x49e0b0&&_0x4517e1){if(_0x59cbb8===a[_0x183864(0x1c1)][_0x183864(0x317)]){const _0x525c39=new E['NodePositionConvertToRectRange'](_0x41dc1c,_0x4c4d99),{pointGroup:_0x4cb56f}=(_0x4406ba=_0x525c39[_0x183864(0x355)](_0x49e0b0,_0x4517e1))!=null?_0x4406ba:{};if(_0x4cb56f==null||_0x4cb56f[_0x183864(0x29a)]===0x0)continue;this[_0x183864(0x293)](_0xef89ba,_0x4cb56f,_0x1716e3,_0xc814f8);}else{if(!_0x21390f){const {borderBoxPointGroup:_0x460017}=_0x752de2[_0x183864(0x355)](_0x49e0b0,_0x4517e1);if(_0x460017[_0x183864(0x29a)]===0x0)continue;this['_drawTextRange'](_0xef89ba,_0x460017,_0x1716e3,_0xc814f8);}}}}}[_0x13cd8a(0x370)](_0x2c85a8,_0x340645,_0x53ee40,_0x4ebc4a,_0x422c9e){const _0x186dab=_0x13cd8a,_0x55ab44=this['_getAnchorBounding'](_0x340645),{left:_0x59d3b6,top:_0x25b53c,height:_0x422039}=_0x55ab44,_0x2e96fb=this[_0x186dab(0x445)](),_0xb1b4f9=It/_0x2e96fb,_0x1b02da=new p[(_0x186dab(0x392))](re+a['generateRandomId'](k),{'left':_0x59d3b6+_0x53ee40-_0xb1b4f9,'top':_0x25b53c+_0x4ebc4a,'height':_0x422039,'width':dt,'fill':_0x2c85a8||p[_0x186dab(0x276)](a[_0x186dab(0x3a5)][_0x186dab(0x32a)],0x0),'strokeWidth':_0xb1b4f9,'stroke':St,'evented':!0x0});this[_0x186dab(0x416)]=_0x1b02da,this[_0x186dab(0x2e6)][_0x186dab(0x2f7)](_0x1b02da,E[_0x186dab(0x285)]);const _0x1dc4d3=new p[(_0x186dab(0x392))](re+a[_0x186dab(0x28d)](k),{'left':_0x59d3b6+_0x53ee40-_0xb1b4f9,'top':_0x25b53c+_0x4ebc4a-oe/0x2,'height':oe,'width':oe,'fill':_0x2c85a8||p[_0x186dab(0x276)](a[_0x186dab(0x3a5)][_0x186dab(0x32a)],0x0),'strokeWidth':0x0,'stroke':_0x2c85a8||p[_0x186dab(0x276)](a[_0x186dab(0x3a5)]['black'],0x0),'evented':!0x1});this[_0x186dab(0x290)]=_0x1dc4d3,this['_scene'][_0x186dab(0x2f7)](_0x1dc4d3,E[_0x186dab(0x285)]);const _0x1b8572=new ee(re+a[_0x186dab(0x28d)](k),{'left':_0x59d3b6+_0x53ee40-_0xb1b4f9,'top':_0x25b53c+_0x4ebc4a-K,'text':_0x422c9e,'color':_0x2c85a8});this['_textBubble']=_0x1b8572,this[_0x186dab(0x2e6)]['addObject'](_0x1b8572,E[_0x186dab(0x285)]),this['_hover']=!0x1;}['_handleHover'](){const _0x5c5cdd=_0x13cd8a,_0x11562b=this['_anchor'][_0x5c5cdd(0x1c2)][_0x5c5cdd(0x2fb)](()=>{const _0x22a325=_0x5c5cdd;this[_0x22a325(0x1f5)]=!0x0;}),_0x241f21=this['_anchor'][_0x5c5cdd(0x1e5)]['subscribeEvent'](()=>{const _0x1d93d9=_0x5c5cdd;this[_0x1d93d9(0x302)]&&clearTimeout(this[_0x1d93d9(0x302)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1173d8=_0x5c5cdd;_0x11562b[_0x1173d8(0x203)](),_0x241f21[_0x1173d8(0x203)]();};}[_0x13cd8a(0x2d7)](_0xf89c62,_0x5d3b9a,_0x1f1fc9,_0x3b886a){const _0x318772=_0x13cd8a,_0x2a7fe7=new a[(_0x318772(0x3cf))](_0xf89c62)[_0x318772(0x35d)](0.2)[_0x318772(0x1de)](),_0x52dd34=new p[(_0x318772(0x36a))](ht+a['generateRandomId'](k),{'pointsGroup':_0x5d3b9a,'fill':_0x2a7fe7||p['getColor'](a[_0x318772(0x3a5)][_0x318772(0x32a)],0.2),'left':_0x1f1fc9,'top':_0x3b886a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x318772(0x243)][_0x318772(0x28f)](_0x52dd34),this[_0x318772(0x2e6)][_0x318772(0x2f7)](_0x52dd34,E[_0x318772(0x285)]);}[_0x13cd8a(0x293)](_0x4d211e,_0x4424a9,_0x471fc5,_0x30f079){const _0x1796ce=_0x13cd8a,_0xf94d18=new a[(_0x1796ce(0x3cf))](_0x4d211e)[_0x1796ce(0x35d)](0.2)['toRgbString'](),_0x18fe1e=new p[(_0x1796ce(0x36a))](ut+a['generateRandomId'](k),{'pointsGroup':_0x4424a9,'fill':_0xf94d18||p['getColor'](a[_0x1796ce(0x3a5)][_0x1796ce(0x32a)],0.2),'left':_0x471fc5,'top':_0x30f079,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1796ce(0x243)][_0x1796ce(0x28f)](_0x18fe1e),this[_0x1796ce(0x2e6)][_0x1796ce(0x2f7)](_0x18fe1e,E[_0x1796ce(0x285)]);}[_0x13cd8a(0x345)](_0x4f6625){const _0x417f09=_0x4f6625[0x0],_0xfac6fd=_0x417f09[0x0],_0x4154c1=_0x417f09[0x2],{x:_0x38494f,y:_0x6cac7f}=_0xfac6fd,{x:_0x10fe9d,y:_0x3414e4}=_0x4154c1;return{'left':_0x38494f,'top':_0x6cac7f,'width':_0x10fe9d-_0x38494f,'height':_0x3414e4-_0x6cac7f};}[_0x13cd8a(0x445)](){const _0x1b1f8f=_0x13cd8a,{scaleX:_0x1d5fbc,scaleY:_0x101eee}=this[_0x1b1f8f(0x2e6)][_0x1b1f8f(0x35e)]();return Math[_0x1b1f8f(0x2dc)](_0x1d5fbc,_0x101eee);}}var ft=Object[_0x13cd8a(0x2a3)],vt=(_0x3504b3,_0x28b03b,_0xaed25,_0x15dcc3)=>{const _0x56b431=_0x13cd8a;for(var _0x23e194=_0x15dcc3>0x1?void 0x0:_0x15dcc3?ft(_0x28b03b,_0xaed25):_0x28b03b,_0xe22e=_0x3504b3[_0x56b431(0x29a)]-0x1,_0x1385b3;_0xe22e>=0x0;_0xe22e--)(_0x1385b3=_0x3504b3[_0xe22e])&&(_0x23e194=_0x1385b3(_0x23e194)||_0x23e194);return _0x23e194;},W=(_0x58cfc9,_0x15edce)=>(_0x3710e1,_0x50ff0d)=>_0x15edce(_0x3710e1,_0x50ff0d,_0x58cfc9);let fe=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x4b6f4c,_0xb82b99,_0x1f16bc,_0x26fb8b,_0x20b951){const _0x1b0d3d=_0x13cd8a;super(),h(this,_0x1b0d3d(0x3b7),[]),h(this,'_cursors',[]),(this[_0x1b0d3d(0x3f1)]=_0x4b6f4c,this[_0x1b0d3d(0x2a5)]=_0xb82b99,this[_0x1b0d3d(0x31c)]=_0x1f16bc,this['_commandService']=_0x26fb8b,this['_themeService']=_0x20b951,this['_init']());}[_0x13cd8a(0x3e0)](){const _0x3765e2=_0x13cd8a,_0x4ff66c=this['_context'][_0x3765e2(0x41f)],_0xc7aedb=this[_0x3765e2(0x2a5)];this['disposeWithMe'](d[_0x3765e2(0x436)]([this[_0x3765e2(0x31c)][_0x3765e2(0x3ca)](_0x4ff66c),this[_0x3765e2(0x34f)][_0x3765e2(0x1d0)]])['pipe']($['map'](([_0x1c2ac9,_0x470343])=>({'skeleton':_0xc7aedb['getSkeleton'](),'cursors':[..._0x1c2ac9['values']()][_0x3765e2(0x2df)](_0x54ffce=>({..._0x54ffce,'color':this[_0x3765e2(0x34f)][_0x3765e2(0x30f)](_0x54ffce[_0x3765e2(0x3b3)])}))})))['subscribe'](_0x4996e7=>{const _0x344a65=_0x3765e2;if(this[_0x344a65(0x34c)](),_0x4996e7){const {skeleton:_0x2bc250,cursors:_0x15d6e1}=_0x4996e7;this[_0x344a65(0x249)](_0x2bc250,_0x15d6e1);}})),this[_0x3765e2(0x279)](),this[_0x3765e2(0x1df)]();}[_0x13cd8a(0x249)](_0x290006,_0x3cd69f){const _0xc7bc25=_0x13cd8a,{scene:_0x1d6534,mainComponent:_0x2a94a9}=this[_0xc7bc25(0x3f1)],_0xba43a0=_0x3cd69f[_0xc7bc25(0x3aa)](_0x4e2beb=>new De(_0x4e2beb,_0x1d6534,_0x290006,_0x2a94a9));this[_0xc7bc25(0x3b7)]=_0xba43a0,this[_0xc7bc25(0x444)]=_0x3cd69f;}[_0x13cd8a(0x339)](){const _0x47c031=_0x13cd8a;this[_0x47c031(0x34c)]();const {scene:_0x5178e9,mainComponent:_0x9335ef}=this[_0x47c031(0x3f1)],_0x45eeba=this[_0x47c031(0x2a5)][_0x47c031(0x409)](),_0x58f0d4=this[_0x47c031(0x444)][_0x47c031(0x3aa)](_0x1f49bb=>new De(_0x1f49bb,_0x5178e9,_0x45eeba,_0x9335ef));this[_0x47c031(0x3b7)]=_0x58f0d4;}[_0x13cd8a(0x34c)](){const _0x11342d=_0x13cd8a;this[_0x11342d(0x3b7)]['forEach'](_0x38749f=>_0x38749f['dispose']()),this[_0x11342d(0x3b7)]=[];}[_0x13cd8a(0x1df)](){const _0x29a398=_0x13cd8a,_0x519500=[E['SetDocZoomRatioOperation']['id']];this[_0x29a398(0x22b)](this[_0x29a398(0x39e)]['onCommandExecuted'](_0x4fc5c5=>{const _0x385aa7=_0x29a398;_0x519500[_0x385aa7(0x36f)](_0x4fc5c5['id'])&&_0x4fc5c5[_0x385aa7(0x357)][_0x385aa7(0x41f)]===this[_0x385aa7(0x3f1)][_0x385aa7(0x41f)]&&this[_0x385aa7(0x339)]();}));}[_0x13cd8a(0x279)](){const _0x21de1d=_0x13cd8a;this['disposeWithMe'](a[_0x21de1d(0x26c)](this[_0x21de1d(0x3f1)][_0x21de1d(0x25c)][_0x21de1d(0x35c)])[_0x21de1d(0x329)]($[_0x21de1d(0x1f0)](_0x43128f=>_0x43128f[_0x21de1d(0x1f2)]===p[_0x21de1d(0x3bc)]['resize']),$[_0x21de1d(0x43a)](0x10))[_0x21de1d(0x29f)](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a[_0x13cd8a(0x248)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x13cd8a(0x248)](x)),W(0x3,a[_0x13cd8a(0x209)]),W(0x4,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x284)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x3ad8d7,_0x448b65){const _0x420f74=_0x13cd8a;super(_0x3ad8d7,_0x448b65),h(this,_0x420f74(0x25a)),h(this,_0x420f74(0x400),!0x1),h(this,_0x420f74(0x3f7)),h(this,_0x420f74(0x215),''),h(this,_0x420f74(0x32e),'top'),h(this,_0x420f74(0x424)),(_0x448b65&&this['setShapeProps'](_0x448b65),this[_0x420f74(0x1c2)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x420f74(0x2fb)](()=>this[_0x420f74(0x34b)]({'hovered':!0x1})));}[_0x13cd8a(0x34b)](_0x58d2d5){const _0x4c9ef8=_0x13cd8a;var _0x370179,_0x49f9f8,_0x243dd9,_0x22d7e,_0xc4552d,_0x2840e4;this[_0x4c9ef8(0x25a)]=(_0x370179=_0x58d2d5['color'])!=null?_0x370179:this['_color'],this['_hovered']=(_0x49f9f8=_0x58d2d5[_0x4c9ef8(0x21c)])!=null?_0x49f9f8:this[_0x4c9ef8(0x400)],this[_0x4c9ef8(0x3f7)]=(_0x243dd9=_0x58d2d5['range'])!=null?_0x243dd9:this[_0x4c9ef8(0x3f7)],this['_name']=(_0x22d7e=_0x58d2d5[_0x4c9ef8(0x257)])!=null?_0x22d7e:this[_0x4c9ef8(0x215)],this[_0x4c9ef8(0x32e)]=(_0xc4552d=_0x58d2d5[_0x4c9ef8(0x3f9)])!=null?_0xc4552d:this[_0x4c9ef8(0x32e)],this['_backgroundColor']=(_0x2840e4=_0x58d2d5['backgroundColor'])!=null?_0x2840e4:this[_0x4c9ef8(0x424)],this[_0x4c9ef8(0x295)]({'width':_0x58d2d5['width'],'height':_0x58d2d5[_0x4c9ef8(0x2e7)]});}[_0x13cd8a(0x43e)](_0x18513c){const _0x3914da=_0x13cd8a,{row:_0x222658,column:_0x6c495f}=_0x18513c;if(_0x222658>=this[_0x3914da(0x3f7)][_0x3914da(0x220)]&&_0x222658<=this[_0x3914da(0x3f7)][_0x3914da(0x342)]&&_0x6c495f>=this[_0x3914da(0x3f7)][_0x3914da(0x3cc)]&&_0x6c495f<=this[_0x3914da(0x3f7)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3914da(0x34b)]({'hovered':!0x1});}[_0x13cd8a(0x28e)](_0x22de9a){return!0x1;}[_0x13cd8a(0x401)](_0x3940d0){const _0x19a1df=_0x13cd8a;p['Rect'][_0x19a1df(0x388)](_0x3940d0,{'width':this[_0x19a1df(0x1ce)],'height':this[_0x19a1df(0x2e7)],'strokeWidth':mt,'stroke':this[_0x19a1df(0x25a)],'evented':!0x1,'fill':this[_0x19a1df(0x424)]}),this[_0x19a1df(0x400)]&&(_0x3940d0[_0x19a1df(0x26f)](),_0x3940d0[_0x19a1df(0x234)](0x1,0x0,0x0,0x1,this[_0x19a1df(0x1ce)],this[_0x19a1df(0x32e)]===_0x19a1df(0x3f4)?0x0:-0x14),ee[_0x19a1df(0x388)](_0x3940d0,{'text':this['_name'],'color':this[_0x19a1df(0x25a)]}),_0x3940d0[_0x19a1df(0x40e)]());}}var Ct=Object[_0x13cd8a(0x2a3)],pt=(_0xb96bf2,_0x1df8d7,_0xd1ca28,_0x148002)=>{for(var _0x346eca=_0x148002>0x1?void 0x0:_0x148002?Ct(_0x1df8d7,_0xd1ca28):_0x1df8d7,_0x3ded4d=_0xb96bf2['length']-0x1,_0x5ddd4f;_0x3ded4d>=0x0;_0x3ded4d--)(_0x5ddd4f=_0xb96bf2[_0x3ded4d])&&(_0x346eca=_0x5ddd4f(_0x346eca)||_0x346eca);return _0x346eca;},ae=(_0x13d131,_0x3472e)=>(_0x43d73c,_0x4eac13)=>_0x3472e(_0x43d73c,_0x4eac13,_0x13d131);const Et=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x398bab,_0x24012a,_0x448af4,_0xf3bb6c){const _0x984d67=_0x13cd8a;super(),h(this,_0x984d67(0x444),new Set()),h(this,_0x984d67(0x3e8),null),(this[_0x984d67(0x3f1)]=_0x398bab,this[_0x984d67(0x2b4)]=_0x24012a,this[_0x984d67(0x31c)]=_0x448af4,this[_0x984d67(0x34f)]=_0xf3bb6c,this[_0x984d67(0x3e0)]());}['_init'](){const _0x2df059=_0x13cd8a;this['_sheetSkeletonManagerService'][_0x2df059(0x217)]['pipe']($[_0x2df059(0x30a)](this[_0x2df059(0x1dd)]),$[_0x2df059(0x366)](_0x133795=>{const _0x18f1b4=_0x2df059;if(_0x133795){const _0x324d46=_0x133795[_0x18f1b4(0x32c)];return d[_0x18f1b4(0x436)](this[_0x18f1b4(0x31c)][_0x18f1b4(0x3ca)](this['_context'][_0x18f1b4(0x41f)]),this[_0x18f1b4(0x34f)][_0x18f1b4(0x1d0)])[_0x18f1b4(0x329)]($[_0x18f1b4(0x3aa)](([_0x31fbdc,_0x57e120])=>{const _0x392f81=_0x18f1b4,_0x390c2c=new Map();return _0x31fbdc[_0x392f81(0x3e3)]((_0xd2a99,_0x253ec5)=>{const _0x1035b9=_0x392f81;if(_0xd2a99[_0x1035b9(0x2ed)]===_0x324d46){const _0x47edbb={..._0xd2a99};_0x47edbb[_0x1035b9(0x3b3)]=this[_0x1035b9(0x34f)][_0x1035b9(0x30f)](_0xd2a99[_0x1035b9(0x3b3)]),_0x390c2c[_0x1035b9(0x2f1)](_0x253ec5,_0x47edbb);}}),{'skeleton':_0x133795,'cursors':_0x390c2c};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2df059(0x29f)](({skeleton:_0x66e05b,cursors:_0x279e2d})=>{const _0x525d4f=_0x2df059;this['_removeCollabCursors'](),_0x66e05b&&this[_0x525d4f(0x249)](_0x66e05b,_0x279e2d);}),this[_0x2df059(0x2b4)][_0x2df059(0x217)][_0x2df059(0x29f)](_0xa9ae87=>{const _0x5a4b2c=_0x2df059;if(_0xa9ae87==null)return;const {skeleton:_0x573706}=_0xa9ae87,{scene:_0x1c7eab}=this[_0x5a4b2c(0x3f1)];_0x1c7eab[_0x5a4b2c(0x39d)][_0x5a4b2c(0x2fb)](a[_0x5a4b2c(0x22a)](_0x442efa=>{const _0xc92bab=_0x5a4b2c;var _0x33e322,_0x4dc7f2;const {offsetX:_0xa1feff,offsetY:_0x4609bf}=_0x442efa,{x:_0x3ef684,y:_0x1d560a}=_0x1c7eab[_0xc92bab(0x39c)](p[_0xc92bab(0x387)][_0xc92bab(0x2a8)]([_0xa1feff,_0x4609bf])),{scaleX:_0x51dd42,scaleY:_0x1928d3}=_0x1c7eab['getAncestorScale'](),_0x2c297f=_0x1c7eab[_0xc92bab(0x394)](p[_0xc92bab(0x200)][_0xc92bab(0x303)]),_0x29d8a1=_0x1c7eab[_0xc92bab(0x2e1)](p[_0xc92bab(0x387)][_0xc92bab(0x2a8)]([_0x3ef684,_0x1d560a]),_0x2c297f),_0x23215e=_0x573706[_0xc92bab(0x42d)](_0xa1feff,_0x4609bf,_0x51dd42,_0x1928d3,_0x29d8a1);((_0x33e322=this[_0xc92bab(0x3e8)])==null?void 0x0:_0x33e322[_0xc92bab(0x367)])===_0x23215e[_0xc92bab(0x367)]&&((_0x4dc7f2=this['_lastPointer'])==null?void 0x0:_0x4dc7f2[_0xc92bab(0x277)])===_0x23215e[_0xc92bab(0x277)]||this['_cursors'][_0xc92bab(0x3e3)](_0x2411f2=>{_0x2411f2['onMouseMove'](_0x23215e);});},0x64));});}[_0x13cd8a(0x249)](_0x54f437,_0x94c53e){const _0xe1b1c3=_0x13cd8a;var _0x500baf;const _0x476ca2=(_0x500baf=this[_0xe1b1c3(0x2b4)][_0xe1b1c3(0x2d8)]())==null?void 0x0:_0x500baf[_0xe1b1c3(0x414)];if(!_0x476ca2)return;const _0x3639b2=this[_0xe1b1c3(0x3fb)]();if(!_0x3639b2)return;this[_0xe1b1c3(0x444)][_0xe1b1c3(0x3e3)](_0x1963cf=>{const _0x5077ec=_0xe1b1c3;_0x1963cf[_0x5077ec(0x281)]();});const {scene:_0x428b19}=_0x3639b2,_0x188c0d=bt(Array[_0xe1b1c3(0x354)](_0x94c53e[_0xe1b1c3(0x275)]()))[_0xe1b1c3(0x3aa)](_0x1db7a5=>{const _0x21b3bc=_0xe1b1c3,{color:_0x3b765b,range:_0x55471d,name:_0x158172,selection:_0x4b48b0,sheetID:_0x4c8bec}=_0x1db7a5,{startColumn:_0x2a9a7e,startRow:_0x54f2ec,endColumn:_0x4f4497,endRow:_0x17fb5a}=_0x55471d,_0x48045f=X[_0x21b3bc(0x3d6)](_0x54f2ec,_0x2a9a7e,_0x428b19,_0x476ca2),_0x2fe09e=X['getCoordByCell'](_0x17fb5a,_0x4f4497,_0x428b19,_0x476ca2),{columnHeaderHeightAndMarginTop:_0x14bce5}=_0x476ca2,{startX:_0x1004c5,startY:_0x5afcc2}=_0x48045f,{endX:_0x228a14,endY:_0x1d6515}=_0x2fe09e,_0x2a7142=_0x228a14-_0x1004c5,_0x1049a9=_0x1d6515-_0x5afcc2,_0x34bd32={'labelPosition':_0x5afcc2-_0x14bce5>=K?_0x21b3bc(0x2e5):_0x21b3bc(0x3f4),'sheetID':_0x4c8bec,'range':_0x55471d,'color':_0x3b765b,'name':_0x158172,'selection':_0x4b48b0,'left':_0x1004c5,'top':_0x5afcc2,'width':_0x2a7142,'height':_0x1049a9,'evented':!0x1,'zIndex':Et};return new we(_0x158172,_0x34bd32);});_0x428b19['addObjects'](_0x188c0d,gt),this[_0xe1b1c3(0x444)]=new Set(_0x188c0d);}[_0x13cd8a(0x34c)](){const _0x4ebed0=_0x13cd8a;var _0x5cdad6;(_0x5cdad6=this['_cursors'])==null||_0x5cdad6[_0x4ebed0(0x3e3)](_0x4329ed=>_0x4329ed[_0x4ebed0(0x41d)]());}[_0x13cd8a(0x3fb)](){const _0x3e6439=_0x13cd8a;return X[_0x3e6439(0x3e9)](this[_0x3e6439(0x3f1)][_0x3e6439(0x2ee)],this[_0x3e6439(0x3f1)]);}};ve=pt([ae(0x1,a[_0x13cd8a(0x248)](X[_0x13cd8a(0x42c)])),ae(0x2,a[_0x13cd8a(0x248)](x)),ae(0x3,a[_0x13cd8a(0x248)](a['ThemeService']))],ve);function _0x1e89(){const _0x593219=['_docSkeleton','/run/','_setupBeforeClosingHandler','_hideTimer','VIEW_MAIN','findNodePositionByCharIndex','TEXT','fillRule','OTHER_CLIENT_EDITING','0\x200\x2016\x2016','DocCollaborationEntity','takeUntil','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','split','collabStatus.conflict','_id','getColorFromTheme','url(#off-line-icon_clip0_910_343)','green.600','RemoveRowCommandId','getUnitId','_httpService','has','with','RECT','Shape','_configService','INTERNAL_ERROR','_getMergeRange','_collabCursorController','handleDeleteRangeMoveLeft','DisposableCollection','getItem','attrs','DocIMEInputManagerService','_updateSubUnitFromURLParams','YUUMI_NO_CUBOID_FOR_QUESTION','roomMembers','error','_cursor','collab-rect-range-','transformIMECache','pipe','black','Plugin','sheetId','EffectRefRangId','_labelPosition','createIdentifier','_imageIoService','next','useCallback','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','displayName','_clearOtherTimers','fillText','getTypeOfUnitAdded$','setItem','_refreshCollabCursors','DocSelectionManagerService','distinctUntilChanged','HTTPService','_getSaveTimeout','_handleHeartbeatEvent','setInterval','fillStyle','onStarting','endRow','Rectangle','_localStorageService','_getAnchorBounding','4738575osRpAc','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','urlChange$','current','[RemoteUniscriptService]:\x20no\x20focused\x20unit','setShapeProps','_removeCollabCursors','function','getOwnPropertySymbols','_themeService','_online','deepClone','location','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','from','getRangePointData','YUUMI_ASYNCIO_CANCELLED','params','event$','collab-client.tooltip.reconnect','UniverCollaborationClientPlugin','1em','onTransformChange$','setAlpha','getAncestorScale','wsSessionTicketUrl','_docClipboardService','unshift','IUniverInstanceService','_collabCursorState$','UNRECOGNIZED','_selfUnitIDs','switchMap','column','_textBubble','_localCacheService','RegularPolygon','_collaborationController','_initEvent','JOIN_ROOM_FAILED','_transformService','includes','_drawAnchor','handleDeleteRangeMoveUp','getRenderById','min','_urlService','jsxs','28917NSUFGP','complete','WebSocketService','_updateURLWithCurrentState','_initEntityListener','m2Prime','INVITE_CODE_ALREADY_BOUND','clearInterval','call','className','23apyIgI','rgba(255,\x20255,\x20255,\x200.01)','_syncEditingCollabCursorService','getValue','get','COMPLETION_FINISHED','IConfigService','Vector2','drawWith','all','CollaborationSessionService','_initDependencies','textRanges','isTransformMutationFailure','registerBeforeClose','history','610104KndISU','46790HuWxiB','Rect','NOT_COLLAB','getViewport','_docStateChangeManagerService','_status$','createInstance','_saveTaskMap','getSheetBySheetId','yellow.400','_renderManagerService','getRelativeToViewportCoord','onPointerMove$','_commandService','MessageType','_session','_toggleOnline','_unitStatus','InsertRowCommandId','_initStatusComponent','COLORS','fill','serializeRangeWithSheet','stringify','defs','map','jiqing.500','result','getTypeOfUnitDisposed$','application/json','collab-text-range-','evenodd','_localeService','UNIVER_DOC','color','FETCH_MISS','lineTo','getFocusedUnit','_cursorShapes','getUniverSheetInstance','AWAITING_WITH_PENDING','status$','ISnapshotServerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','entityInit$','CLOSE_ROOM','IRenderManagerService','SetWorksheetActivateCommand','saveTaskMap','getActiveRange','merge','fromEvent','defIds','IUIPartsService','extend','measureText','onRendered','getCollabCursors$','_memberService','startColumn','exhaustSavingTask','transformStateCache','ColorKit','random','YUUMI_UNABLE_LOAD_URL','SNAPSHOT_HAS_BEEN_REMOVED','hide','DependentOn','SNAPSHOT_INVALID_SNAPSHOT','getCoordByCell','collabCursorState$','font','getSheetId','reconnect','SessionStatus','115379rOlzOc','getActiveSheet','Workbook','transformRemoteChangeset','_init','132qhspwz','assignAColorForMemberID','forEach','xlink:href','_messageService','ENSURE_SNAPSHOT_EXECUTION','UNIVER_SHEET','_lastPointer','getSheetObject','CollaborationUIEventId','_revisionService','collabStatus.offline','unload','InsertRangeMoveDownCommandId','260KscSgM','then','_context','clsx','_updateLocalCursor','bottom','collabStatus.notCollab','mutations','_range','imageSourceType','labelPosition','CollaborationStatus','_getSheetObject','isActive','createElement','parse','_dataLoaderService','_hovered','_draw','toString','handleInsertRangeMoveDown','getConfig','editingUnit','apply','subUnitId','getDocRanges','getSkeleton','newValue','PY_RUNTIME_SCRIPT_ERROR','registerComponent','connectInjector','restore','_ensureSubject','YUUMI_RATE_OVER_LIMIT','IRemoteInstanceService','...','path','skeleton','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_anchor','M0\x200H16V16H0z','ILocalCacheService','_unitOnClients','DocStateChangeManagerService','_registerDependencies','url(#on-line-icon_clip0_910_349)','dispose','arc','unitId','handleIRemoveRow','send','enableLocalCache','clearTimeout','_backgroundColor','tag','UNDEFINED','SheetCollabCursorShape','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INVALID_ARGUMENT','sessionStatus$','CollaborationSocketService','SheetSkeletonManagerService','getCellPositionByOffset','size','subunit','ONLINE','Failed','ranges','cursorInfo','_entityInit$','round','combineLatest','_docTransformStateCacheService','BrowserCollaborationSocketService','DesktopCollaborationStatusDisplayController','throttleTime','SYNCED','uni.network.url-service','contains','onMouseMove','string','YUUMI_AI_RUN_FAILED','setStateCache','_send','OffLineIcon','_cursors','_getScale','registerRenderModule','DOC_RANGE_TYPE','onPointerEnter$','some','_transformPreviousActiveRange','debounceTime','_startDocCollabCursor','updateOfflineData','_onCursorDelete','transformMutationsWithChangeset','YUUMI_URL_COL_OUT_OF_RANGE','SUBMIT_CHANGESET_TIMEOUT','useDependency','runId','width','deserializeRangeWithSheet','currentTheme$','WebBrowserSingleActiveUnitService','_saveCache','selection','_handleEvent','UniverInstanceType','body','LICENSE_DISTRO_REJECTED','collabStatus.synced','_heartbeatTimer','Tooltip','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getCurrentUnitForType','dispose$','toRgbString','_initCommandExecutedListener','Error','RichTextEditingMutation','popstate','LOCAL_CACHE_INTERVAL','APPLY_REVISION_CONFILICT','onPointerLeave$','saveOfflineData','focused$','IImageIoService','getUnhiddenWorksheets','isArray','PENDING','_instanceService','_render','replace','OTHER_CLIENTS_EDITING','filter','transformSelections','type','_cursorInfo$','m1Prime','_hover','IMessageService','href','touchDependencies','_logService','ACTIVE_UNIT_EVENT_CHANNEL','EMAIL_HAS_BEEN_BOUND','YUUMI_CONNECTOR_URL_NOT_FOUND','onCommandExecuted','undoState','source','SHEET_VIEWPORT_KEY','currentColor','Optional','unsubscribe','getOffsetConfig','OnLineIcon','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','collaboration.single-unit.warning','_transformHistoryAndStateStack','ICommandService','_doCreateSocket','USERS_LEAVE','entries','disposeUnit','YUUMI_ALL_TABLES_IS_INVALID','SetTextSelectionsOperation','indexOf','Unknown\x20user','_collabSessionService','handleInsertRow','moveTo','_name','_disabled','currentSkeleton$','SetSelectionsOperation','concat','CONFLICT','useObservable','hovered','useRef','_toggleOffline','none','startRow','pushState','saveImage','LOGIN_FAILED','_config','ITransformService','ISocketService','_removeClearOtherTimer','TOO_MANY_REQUESTS','mergeOverrideWithDependencies','debounce','disposeWithMe','getLocalCacheKey','CollaborationStatusDisplay','jsx','_collaborationUIEventService','EMAIL_VERIFY_CODE_MISMATCH','debug','_docTransformIMECacheService','mask','transform','_roomMembers$','sessionTicket','_setupSubUnitSync','PERMISSION_DENIED','univer-mr-2\x20univer-flex\x20univer-text-xl','getStateCache','APPLY_PERMISSION_DENIED','http://www.w3.org/2000/svg','IDocClipboardService','_transformUndoRedoStack','find','Tools','registerRefRange','InsertColCommandId','_shapes','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','forwardRef','NodePositionConvertToCursor','defineProperty','Inject','_updateCollabCursors','UnitStatus','_colorAssignService','HEADER_MENU','getMember','LocaleService','MoveRangeCommandId','collaboration.closeRoom','APPLY_DUPLICATED','#FFF','_injector','CollaborationEvent','off-line-icon_clip0_910_343','setTimeout','name','MemberService','RevisionService','_color','origin','engine','DeleteRangeMoveLeftCommandId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','transformMutation','Injector','getMemberID','_onCursorUpdate','getMergeData','NOT_FOUND','_handleHover','getCurrentRevOfUnit','_cachedData','unitID','LOCAL_CACHE_INTERVAL_KEY','setParam','handleInsertRangeMoveRight','fromEventSubject','_notificationService','requireSession','save','CollaborationDataLoaderController','svg','_eventUnsubscribe','InsertRangeMoveRightCommandId','OFFLINE','values','getColor','row','1043448bKRKjE','_initResize','idSuffix','use','text','_onRefRangeChange','symbol','setActiveRange','white','makeDirty','hasOwnProperty','YUUMI_SUBSCRIPTION_NOT_FOUND','ThemeService','TEXT_RANGE_LAYER_INDEX','getUnitStatus$','LICENSE_IMPORT_SIZE_EXCEEDED','getCollabEntity$','translate(.97)','_scheduleClearOtherTimer','CollaborationController','getParam','generateRandomId','triggerDblclick','push','_anchorDot','assign','children','_drawRectRange','icon','transformByState','getUndoRedoMutationParamsCache','roomMembers$','collaboration-client-ui.config','show','length','addClipboardHook','_docTransformSelectionsService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_scheduleSaving','subscribe','_handleJoinEvent','add','_entities','getOwnPropertyDescriptor','delete','_docSkeletonManagerService','MOBILE_VERIFY_CODE_MISMATCH','USER_NOT_INVITED_CODE','FromArray','[CollaborationDataLoaderController]','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','BehaviorSubject','data','prototype','cursorInfo$','purple.300','div','RxDisposable','post','_assignedColors','_sheetSkeletonManagerService','handleIRemoveCol','loadOfflineData','IURLService','univerjs-icon\x20univerjs-icon-','Warning','SheetsSelectionsService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','eventID','INVITE_CODE_REQUIRED','session.collaboration-timeout','RemoteUniscriptService','_refRangeService','doc.mutation.rich-text-editing','collaboration-client.offline-data-not-saved','_univerInstanceService','selections','addEventListener','searchParams','_handleLeaveEvent','_colorIndex','CHANGESET_REVISION_CONFILICT','isEditing','startsWith','blue.400','UPDATE_CURSOR','APPLY_NON_SEQUENTIAL_REVISION','UniverCollaborationClientUIPlugin','_initStatusListener','SOCKET_FAILED','substring','asObservable','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','redoState','27SVZSge','_drawTextRange','getCurrent','closePath','code','CommandType','max','ALREADY_EXISTS','MUTATION','flatMap','runOnServer','getVpScrollXYInfoByPosToVp','_docSyncEditingCollabCursorService','syncEditingCollabCursor','toDisposable','top','_scene','height','_startSheetCollabCursor','init','colorChannel1','_registerRenderDependencies','INVITE_CODE_HAS_BEEN_UES','sheetID','unit','propertyIsEnumerable','disableLocalCache','set','handleMoveRange','red.300','INVALID_INVITE_CODE','DataLoaderService','key','addObject','0\x200\x2017\x2016','4212264pFEHyv','executeCommand','subscribeEvent','ILogService','ILocalStorageService','Disposable'];_0x1e89=function(){return _0x593219;};return _0x1e89();}function bt(_0x2bd0f5){const _0x508220=_0x13cd8a,_0x2e8706=new Map();return _0x2bd0f5[_0x508220(0x3e3)](_0x173604=>{const _0x33c037=_0x508220;if(_0x2e8706[_0x33c037(0x315)](_0x173604[_0x33c037(0x1d3)])){const _0x3b797d=_0x2e8706[_0x33c037(0x384)](_0x173604[_0x33c037(0x1d3)]);_0x3b797d[_0x33c037(0x257)]+=',\x20'+_0x173604[_0x33c037(0x257)];}else _0x2e8706[_0x33c037(0x2f1)](_0x173604[_0x33c037(0x1d3)],_0x173604);}),Array[_0x508220(0x354)](_0x2e8706[_0x508220(0x275)]());}var b=function(){const _0x297454=_0x13cd8a;return b=Object[_0x297454(0x291)]||function(_0x3f681b){const _0x7275b3=_0x297454;for(var _0x504d8d,_0x2b2618=0x1,_0x4ff373=arguments[_0x7275b3(0x29a)];_0x2b2618<_0x4ff373;_0x2b2618++){_0x504d8d=arguments[_0x2b2618];for(var _0x42d38c in _0x504d8d)Object[_0x7275b3(0x2ad)]['hasOwnProperty']['call'](_0x504d8d,_0x42d38c)&&(_0x3f681b[_0x42d38c]=_0x504d8d[_0x42d38c]);}return _0x3f681b;},b[_0x297454(0x406)](this,arguments);},Ot=function(_0x487452,_0xe031b1){const _0x10aac7=_0x13cd8a;var _0x46f4b3={};for(var _0x419ea9 in _0x487452)Object[_0x10aac7(0x2ad)][_0x10aac7(0x282)]['call'](_0x487452,_0x419ea9)&&_0xe031b1[_0x10aac7(0x210)](_0x419ea9)<0x0&&(_0x46f4b3[_0x419ea9]=_0x487452[_0x419ea9]);if(_0x487452!=null&&typeof Object[_0x10aac7(0x34e)]==_0x10aac7(0x34d)){for(var _0x2de625=0x0,_0x419ea9=Object[_0x10aac7(0x34e)](_0x487452);_0x2de625<_0x419ea9[_0x10aac7(0x29a)];_0x2de625++)_0xe031b1[_0x10aac7(0x210)](_0x419ea9[_0x2de625])<0x0&&Object['prototype'][_0x10aac7(0x2ef)][_0x10aac7(0x37e)](_0x487452,_0x419ea9[_0x2de625])&&(_0x46f4b3[_0x419ea9[_0x2de625]]=_0x487452[_0x419ea9[_0x2de625]]);}return _0x46f4b3;},pe=M[_0x13cd8a(0x245)](function(_0x422eb3,_0x4468db){const _0x45e393=_0x13cd8a;var _0x58553a=_0x422eb3[_0x45e393(0x294)],_0x34c61e=_0x422eb3['id'],_0xf3bdf0=_0x422eb3[_0x45e393(0x37f)],_0x386345=_0x422eb3[_0x45e393(0x3c7)],_0x523d1d=Ot(_0x422eb3,[_0x45e393(0x294),'id',_0x45e393(0x37f),'extend']),_0x4a3db6=_0x45e393(0x2b8)[_0x45e393(0x219)](_0x34c61e,'\x20')['concat'](_0xf3bdf0||'')['trim'](),_0x595cad=M[_0x45e393(0x21d)]('_'[_0x45e393(0x219)](Dt()));return Ae(_0x58553a,''['concat'](_0x34c61e),{'defIds':_0x58553a[_0x45e393(0x3c5)],'idSuffix':_0x595cad[_0x45e393(0x349)]},b({'ref':_0x4468db,'className':_0x4a3db6},_0x523d1d),_0x386345);});function Ae(_0x303147,_0x18228d,_0x198d49,_0x235625,_0x55dea5){const _0x27b43a=_0x13cd8a;return M[_0x27b43a(0x3fd)](_0x303147[_0x27b43a(0x425)],b(b({'key':_0x18228d},Tt(_0x303147,_0x198d49,_0x55dea5)),_0x235625),(Rt(_0x303147,_0x198d49)[_0x27b43a(0x292)]||[])[_0x27b43a(0x3aa)](function(_0xdb2123,_0x3686a6){const _0x1a4b26=_0x27b43a;return Ae(_0xdb2123,''[_0x1a4b26(0x219)](_0x18228d,'-')[_0x1a4b26(0x219)](_0x303147[_0x1a4b26(0x425)],'-')[_0x1a4b26(0x219)](_0x3686a6),_0x198d49,void 0x0,_0x55dea5);}));}function Tt(_0x5e877e,_0xc39e95,_0x2a0c4e){const _0x1ce48b=_0x13cd8a;var _0x38d75a=b({},_0x5e877e['attrs']);_0x2a0c4e!=null&&_0x2a0c4e['colorChannel1']&&_0x38d75a[_0x1ce48b(0x3a6)]===_0x1ce48b(0x2ea)&&(_0x38d75a[_0x1ce48b(0x3a6)]=_0x2a0c4e[_0x1ce48b(0x2ea)]),_0x5e877e[_0x1ce48b(0x425)]===_0x1ce48b(0x233)&&_0x38d75a['id']&&(_0x38d75a['id']=_0x38d75a['id']+_0xc39e95[_0x1ce48b(0x27a)]),Object[_0x1ce48b(0x20c)](_0x38d75a)['forEach'](function(_0x38f72f){const _0x387337=_0x1ce48b;var _0x13ed65=_0x38f72f[0x0],_0x2afd4b=_0x38f72f[0x1];_0x13ed65===_0x387337(0x233)&&typeof _0x2afd4b=='string'&&(_0x38d75a[_0x13ed65]=_0x2afd4b[_0x387337(0x1ee)](/url\(#(.*)\)/,'url(#$1'['concat'](_0xc39e95[_0x387337(0x27a)],')')));});var _0x45d61e=_0xc39e95[_0x1ce48b(0x3c5)];return!_0x45d61e||_0x45d61e['length']===0x0||(_0x5e877e[_0x1ce48b(0x425)]===_0x1ce48b(0x27b)&&_0x38d75a[_0x1ce48b(0x3e4)]&&(_0x38d75a[_0x1ce48b(0x3e4)]=_0x38d75a['xlink:href']+_0xc39e95[_0x1ce48b(0x27a)]),Object[_0x1ce48b(0x20c)](_0x38d75a)[_0x1ce48b(0x3e3)](function(_0x3ae11e){const _0x4740ec=_0x1ce48b;var _0x4c4dd6=_0x3ae11e[0x0],_0x1c4403=_0x3ae11e[0x1];typeof _0x1c4403==_0x4740ec(0x43f)&&(_0x38d75a[_0x4c4dd6]=_0x1c4403['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4740ec(0x219)](_0xc39e95[_0x4740ec(0x27a)],')')));})),_0x38d75a;}function Rt(_0x555443,_0x9f1ecf){const _0xa4d0b5=_0x13cd8a;var _0x2b4d2,_0x481a8d=_0x9f1ecf[_0xa4d0b5(0x3c5)];return!_0x481a8d||_0x481a8d[_0xa4d0b5(0x29a)]===0x0?_0x555443:_0x555443[_0xa4d0b5(0x425)]===_0xa4d0b5(0x3a9)&&(!((_0x2b4d2=_0x555443[_0xa4d0b5(0x292)])===null||_0x2b4d2===void 0x0)&&_0x2b4d2['length'])?b(b({},_0x555443),{'children':_0x555443[_0xa4d0b5(0x292)]['map'](function(_0x539fe9){const _0x2d2065=_0xa4d0b5;return typeof _0x539fe9['attrs']['id']==_0x2d2065(0x43f)&&_0x481a8d&&_0x481a8d[_0x2d2065(0x36f)](_0x539fe9[_0x2d2065(0x320)]['id'])?b(b({},_0x539fe9),{'attrs':b(b({},_0x539fe9['attrs']),{'id':_0x539fe9[_0x2d2065(0x320)]['id']+_0x9f1ecf[_0x2d2065(0x27a)]})}):_0x539fe9;})}):_0x555443;}function Dt(){const _0x1417de=_0x13cd8a;return Math[_0x1417de(0x3d0)]()['toString'](0x24)[_0x1417de(0x2d2)](0x2,0x8);}pe[_0x13cd8a(0x334)]='UniverIcon';var Ut={'tag':_0x13cd8a(0x271),'attrs':{'xmlns':_0x13cd8a(0x23c),'fill':'none','viewBox':_0x13cd8a(0x308),'width':_0x13cd8a(0x35b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x13cd8a(0x310)},'children':[{'tag':'path','attrs':{'stroke':_0x13cd8a(0x201),'d':_0x13cd8a(0x206),'strokeLinecap':_0x13cd8a(0x435),'strokeLinejoin':_0x13cd8a(0x435),'strokeWidth':1.2}}]},{'tag':_0x13cd8a(0x3a9),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x13cd8a(0x255)},'children':[{'tag':_0x13cd8a(0x413),'attrs':{'fill':_0x13cd8a(0x280),'d':_0x13cd8a(0x417)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M[_0x13cd8a(0x245)](function(_0x6bed69,_0x46e32d){const _0x5c078d=_0x13cd8a;return M[_0x5c078d(0x3fd)](pe,Object[_0x5c078d(0x291)]({},_0x6bed69,{'id':'off-line-icon','ref':_0x46e32d,'icon':Ut}));});ye[_0x13cd8a(0x334)]=_0x13cd8a(0x443);var Nt={'tag':_0x13cd8a(0x271),'attrs':{'xmlns':_0x13cd8a(0x23c),'fill':_0x13cd8a(0x21f),'viewBox':_0x13cd8a(0x2f8),'width':_0x13cd8a(0x35b),'height':_0x13cd8a(0x35b)},'children':[{'tag':'g','attrs':{'clipPath':_0x13cd8a(0x41c)},'children':[{'tag':_0x13cd8a(0x413),'attrs':{'stroke':_0x13cd8a(0x201),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x13cd8a(0x435),'strokeLinejoin':_0x13cd8a(0x435),'strokeWidth':1.2}}]},{'tag':_0x13cd8a(0x3a9),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x13cd8a(0x280),'d':_0x13cd8a(0x417),'transform':_0x13cd8a(0x289)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x13cd8a(0x245)](function(_0x452bc2,_0x4f76d9){const _0x48ef38=_0x13cd8a;return M['createElement'](pe,Object[_0x48ef38(0x291)]({},_0x452bc2,{'id':'on-line-icon','ref':_0x4f76d9,'icon':Nt}));});$e[_0x13cd8a(0x334)]=_0x13cd8a(0x205);function Mt(_0x521a18){const _0x50e3e7=_0x13cd8a;switch(_0x521a18){case u[_0x50e3e7(0x3fa)]['OFFLINE']:return _0x50e3e7(0x3ec);case u['CollaborationStatus'][_0x50e3e7(0x21a)]:return _0x50e3e7(0x30d);case u[_0x50e3e7(0x3fa)][_0x50e3e7(0x3b4)]:return'collabStatus.fetchMiss';case u[_0x50e3e7(0x3fa)][_0x50e3e7(0x393)]:return _0x50e3e7(0x3f5);case u[_0x50e3e7(0x3fa)]['AWAITING']:case u[_0x50e3e7(0x3fa)][_0x50e3e7(0x3b9)]:return'collabStatus.syncing';case u[_0x50e3e7(0x3fa)][_0x50e3e7(0x43b)]:case u['CollaborationStatus'][_0x50e3e7(0x1eb)]:return _0x50e3e7(0x1d8);}}function xe(_0x551200){const _0x4e4397=_0x13cd8a,{status$:_0x551450}=_0x551200,_0x33ca77=O[_0x4e4397(0x21b)](_0x551450,u[_0x4e4397(0x3fa)]['NOT_COLLAB']),_0x10bd21=O[_0x4e4397(0x1cc)](a[_0x4e4397(0x24e)]),_0x16698f=O[_0x4e4397(0x1cc)](u[_0x4e4397(0x38a)]),_0x2961a3=_0x33ca77!==u[_0x4e4397(0x3fa)][_0x4e4397(0x274)],_0x3f4521=_0x10bd21['t'](Mt(_0x33ca77)),_0x3b6032=_0x2961a3?P[_0x4e4397(0x22e)]($e,{}):P[_0x4e4397(0x22e)](ye,{}),_0x6a277a=M[_0x4e4397(0x332)](()=>{const _0x27ce8e=_0x4e4397;_0x2961a3||_0x16698f[_0x27ce8e(0x3da)]();},[_0x2961a3,_0x16698f]);function _0x58597c(){const _0x4827b4=_0x4e4397;return P[_0x4827b4(0x375)](_0x4827b4(0x2b0),{'className':'univer-flex\x20univer-items-center','onClick':_0x6a277a,'children':[P[_0x4827b4(0x22e)](_0x4827b4(0x2b0),{'className':D[_0x4827b4(0x3f2)](_0x4827b4(0x239),{'univer-text-green-500':_0x2961a3,'univer-text-red-500':!_0x2961a3}),'children':_0x3b6032}),P[_0x4827b4(0x22e)](_0x4827b4(0x2b0),{'className':_0x4827b4(0x30b),'children':_0x3f4521})]});}return _0x2961a3?_0x58597c():P[_0x4e4397(0x22e)](D[_0x4e4397(0x1da)],{'title':_0x10bd21['t'](_0x4e4397(0x359)),'children':_0x58597c()});}var Lt=Object[_0x13cd8a(0x2a3)],Pt=(_0x108eea,_0x12a437,_0x249219,_0x11439f)=>{for(var _0x5eb55d=_0x11439f>0x1?void 0x0:_0x11439f?Lt(_0x12a437,_0x249219):_0x12a437,_0x73dce7=_0x108eea['length']-0x1,_0x252bd6;_0x73dce7>=0x0;_0x73dce7--)(_0x252bd6=_0x108eea[_0x73dce7])&&(_0x5eb55d=_0x252bd6(_0x5eb55d)||_0x5eb55d);return _0x5eb55d;},V=(_0x2ea1ac,_0x295011)=>(_0x1c862b,_0x3ecbdb)=>_0x295011(_0x1c862b,_0x3ecbdb,_0x2ea1ac);exports[_0x13cd8a(0x439)]=class extends a[_0x13cd8a(0x2fe)]{constructor(_0x11987e,_0x469866,_0x2c1432,_0x45d244){const _0x707202=_0x13cd8a;super(),h(this,_0x707202(0x396),new d['BehaviorSubject'](u[_0x707202(0x3fa)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x11987e,this[_0x707202(0x253)]=_0x469866,this[_0x707202(0x36b)]=_0x2c1432,this['_uiPartsService']=_0x45d244,this[_0x707202(0x3a4)](),this[_0x707202(0x2d0)]());}[_0x13cd8a(0x2d0)](){const _0x3ff481=_0x13cd8a;this[_0x3ff481(0x22b)](this[_0x3ff481(0x2c3)][_0x3ff481(0x1e7)]['pipe'](d[_0x3ff481(0x366)](()=>{const _0x4de7a1=_0x3ff481,_0x45a5e0=this[_0x4de7a1(0x2c3)][_0x4de7a1(0x3b6)]();return _0x45a5e0?this[_0x4de7a1(0x36b)][_0x4de7a1(0x288)](_0x45a5e0[_0x4de7a1(0x313)]()):d['of'](null);}),d[_0x3ff481(0x366)](_0x2ad225=>_0x2ad225?_0x2ad225[_0x3ff481(0x3ba)]:d['of'](u[_0x3ff481(0x3fa)][_0x3ff481(0x393)])))['subscribe'](_0x35ea4d=>{const _0x2df123=_0x3ff481;this[_0x2df123(0x396)]['next'](_0x35ea4d);}));}[_0x13cd8a(0x3a4)](){const _0x3b8218=_0x13cd8a;this[_0x3b8218(0x22b)](this['_uiPartsService'][_0x3b8218(0x40c)](O['BuiltInUIPart'][_0x3b8218(0x24c)],()=>O[_0x3b8218(0x40d)](wt({'status$':this[_0x3b8218(0x396)][_0x3b8218(0x2d3)]()}),this[_0x3b8218(0x253)])));}},exports[_0x13cd8a(0x439)]=Pt([V(0x0,a[_0x13cd8a(0x362)]),V(0x1,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),V(0x2,a[_0x13cd8a(0x248)](u[_0x13cd8a(0x28b)])),V(0x3,O[_0x13cd8a(0x3c6)])],exports[_0x13cd8a(0x439)]);function wt(_0x3e86e2){const {status$:_0x327782}=_0x3e86e2;return function(){const _0x555b1c=_0x5703;return P[_0x555b1c(0x22e)](xe,{'status$':_0x327782});};}var At=Object[_0x13cd8a(0x2a3)],yt=(_0x4ee31d,_0x5466fa,_0x5eb5ee,_0x419af3)=>{const _0x4f91d4=_0x13cd8a;for(var _0x32b188=_0x419af3>0x1?void 0x0:_0x419af3?At(_0x5466fa,_0x5eb5ee):_0x5466fa,_0x1b97a9=_0x4ee31d[_0x4f91d4(0x29a)]-0x1,_0xf30623;_0x1b97a9>=0x0;_0x1b97a9--)(_0xf30623=_0x4ee31d[_0x1b97a9])&&(_0x32b188=_0xf30623(_0x32b188)||_0x32b188);return _0x32b188;},y=(_0x1e623c,_0x50f924)=>(_0x33fb65,_0xe55447)=>_0x50f924(_0x33fb65,_0xe55447,_0x1e623c);let q=class extends a[_0x13cd8a(0x2fe)]{constructor(_0x23a2ab,_0x573743,_0x174930,_0x1539a7,_0x15c689,_0x5a7ffd){const _0x107e7c=_0x13cd8a;super(),this['_beforeCloseService']=_0x23a2ab,this['_localCacheService']=_0x573743,this[_0x107e7c(0x22f)]=_0x174930,this[_0x107e7c(0x3e5)]=_0x1539a7,this[_0x107e7c(0x26d)]=_0x15c689,this[_0x107e7c(0x3b1)]=_0x5a7ffd,this[_0x107e7c(0x301)](),this[_0x107e7c(0x36c)]();}[_0x13cd8a(0x301)](){const _0x48c733=_0x13cd8a;this[_0x48c733(0x22b)](this['_beforeCloseService'][_0x48c733(0x38e)](()=>{const _0x34ed67=_0x48c733;if(this[_0x34ed67(0x369)][_0x34ed67(0x3c1)][_0x34ed67(0x42e)])return this[_0x34ed67(0x3b1)]['t'](_0x34ed67(0x2c2));}));}[_0x13cd8a(0x36c)](){const _0x35a7cd=_0x13cd8a;this[_0x35a7cd(0x22b)](this[_0x35a7cd(0x22f)][_0x35a7cd(0x358)][_0x35a7cd(0x29f)](_0x37bc41=>{const _0x5f04c5=_0x35a7cd;_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x307)]&&this['_messageService'][_0x5f04c5(0x299)]({'type':D[_0x5f04c5(0x39f)][_0x5f04c5(0x2b9)],'content':this[_0x5f04c5(0x3b1)]['t'](_0x5f04c5(0x207))}),_0x37bc41['id']===u['CollaborationUIEventId'][_0x5f04c5(0x3be)]&&this[_0x5f04c5(0x3e5)]['show']({'type':D[_0x5f04c5(0x39f)][_0x5f04c5(0x2b9)],'content':this['_localeService']['t'](_0x5f04c5(0x250))}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x238)]&&this['_notificationService'][_0x5f04c5(0x299)]({'title':this[_0x5f04c5(0x3b1)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':_0x5f04c5(0x325),'duration':0x0}),_0x37bc41['id']===u['CollaborationUIEventId'][_0x5f04c5(0x21a)]&&this[_0x5f04c5(0x3e5)][_0x5f04c5(0x299)]({'type':D['MessageType'][_0x5f04c5(0x1e0)],'content':this[_0x5f04c5(0x3b1)]['t']('collaboration.closeRoom')+'('+_0x37bc41[_0x5f04c5(0x2ac)]+')'}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x36d)]&&this[_0x5f04c5(0x3e5)][_0x5f04c5(0x299)]({'type':D[_0x5f04c5(0x39f)][_0x5f04c5(0x2b9)],'content':this['_localeService']['t'](_0x37bc41[_0x5f04c5(0x2ac)]||'')}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x5f04c5(0x299)]({'type':D['MessageType'][_0x5f04c5(0x2b9)],'content':this[_0x5f04c5(0x3b1)]['t']('session.will-retry')}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x2d1)]&&this['_messageService']['show']({'type':D[_0x5f04c5(0x39f)][_0x5f04c5(0x1e0)],'content':this['_localeService']['t']('session.connection-failed')}),_0x37bc41['id']===u[_0x5f04c5(0x3ea)][_0x5f04c5(0x1cb)]&&this[_0x5f04c5(0x3e5)][_0x5f04c5(0x299)]({'type':D['MessageType']['Error'],'content':this[_0x5f04c5(0x3b1)]['t'](_0x5f04c5(0x2be))});}));}};q=yt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x13cd8a(0x418)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x13cd8a(0x1f6)]),y(0x4,O['INotificationService']),y(0x5,a[_0x13cd8a(0x248)](a['LocaleService']))],q);const $t=_0x13cd8a(0x298),Ue={},Ee=a[_0x13cd8a(0x32f)](_0x13cd8a(0x43c));var xt=Object[_0x13cd8a(0x2a3)],Bt=(_0x19427d,_0x4c72dd,_0x337fa6,_0x210ab9)=>{for(var _0x64df45=_0x210ab9>0x1?void 0x0:_0x210ab9?xt(_0x4c72dd,_0x337fa6):_0x4c72dd,_0x31bae6=_0x19427d['length']-0x1,_0x5056ab;_0x31bae6>=0x0;_0x31bae6--)(_0x5056ab=_0x19427d[_0x31bae6])&&(_0x64df45=_0x5056ab(_0x64df45)||_0x64df45);return _0x64df45;},F=(_0x3cbee9,_0x302611)=>(_0x3c9c2d,_0x406028)=>_0x302611(_0x3c9c2d,_0x406028,_0x3cbee9);exports['CollaborationDataLoaderController']=class extends a[_0x13cd8a(0x2b1)]{constructor(_0x32d879,_0x5ec646,_0x406504,_0x769440,_0x13a94d){const _0x1a2417=_0x13cd8a;super(),this['_urlService']=_0x32d879,this['_logService']=_0x5ec646,this[_0x1a2417(0x39e)]=_0x406504,this['_dataLoaderService']=_0x769440,_0x13a94d?_0x13a94d==null||_0x13a94d['whenReady']()[_0x1a2417(0x3f0)](()=>this[_0x1a2417(0x3e0)]()):(this[_0x1a2417(0x1f9)][_0x1a2417(0x231)](_0x1a2417(0x2a9),_0x1a2417(0x244)),this[_0x1a2417(0x3e0)]());}async['_init'](){const _0x55fadc=_0x13cd8a,_0x2b059b=this[_0x55fadc(0x374)][_0x55fadc(0x28c)](_0x55fadc(0x2ee)),_0xb83804=this[_0x55fadc(0x374)][_0x55fadc(0x28c)](_0x55fadc(0x1f2)),_0x26b20d=this[_0x55fadc(0x374)][_0x55fadc(0x28c)]('subunit');if(!_0x2b059b||!_0xb83804){this[_0x55fadc(0x1f9)][_0x55fadc(0x231)](_0x55fadc(0x2a9),_0x55fadc(0x2bb));return;}const _0x3965d1=await this[_0x55fadc(0x3ff)]['loadUnit'](_0x2b059b,Number(_0xb83804),_0x26b20d);_0x3965d1&&_0x3965d1 instanceof a[_0x55fadc(0x3de)]&&this[_0x55fadc(0x237)](_0x3965d1);}async[_0x13cd8a(0x237)](_0x33be70){const _0x2f5506=_0x13cd8a;await this['_updateSubUnitFromURLParams'](_0x33be70),_0x33be70['activeSheet$']['pipe'](d[_0x2f5506(0x30a)](this[_0x2f5506(0x1dd)]))[_0x2f5506(0x29f)](_0x17252a=>{const _0x5a17b5=_0x2f5506;_0x17252a&&this[_0x5a17b5(0x379)](_0x17252a);}),this[_0x2f5506(0x374)][_0x2f5506(0x348)][_0x2f5506(0x329)](d['takeUntil'](this['dispose$']))[_0x2f5506(0x29f)](()=>this[_0x2f5506(0x322)](_0x33be70));}[_0x13cd8a(0x379)](_0x523cde,_0x4f26e=!0x1){const _0x487f75=_0x13cd8a,_0x33a63a=this[_0x487f75(0x374)][_0x487f75(0x28c)]('subunit');_0x523cde[_0x487f75(0x3d9)]()!==_0x33a63a&&this[_0x487f75(0x374)][_0x487f75(0x26a)](_0x487f75(0x42f),_0x523cde[_0x487f75(0x3d9)](),_0x4f26e);}async[_0x13cd8a(0x322)](_0x4274ba){const _0x1a2c36=_0x13cd8a;var _0xdc05eb;const _0x320542=this[_0x1a2c36(0x374)]['getParam'](_0x1a2c36(0x42f));if(!_0x320542||!_0x4274ba['getSheetBySheetId'](_0x320542)){const _0xda7918=_0x4274ba[_0x1a2c36(0x1e9)]()[0x0],_0x261599=_0x4274ba['getSheetBySheetId'](_0xda7918);if(!_0x261599)return;this[_0x1a2c36(0x379)](_0x261599,!0x0),await this[_0x1a2c36(0x39e)][_0x1a2c36(0x2fa)](g[_0x1a2c36(0x3c0)]['id'],{'unitId':_0x4274ba[_0x1a2c36(0x313)](),'subUnitId':_0xda7918});return;}((_0xdc05eb=_0x4274ba[_0x1a2c36(0x3dd)]())==null?void 0x0:_0xdc05eb[_0x1a2c36(0x3d9)]())!==_0x320542&&await this[_0x1a2c36(0x39e)][_0x1a2c36(0x2fa)](g[_0x1a2c36(0x3c0)]['id'],{'unitId':_0x4274ba[_0x1a2c36(0x313)](),'subUnitId':_0x320542});}},exports[_0x13cd8a(0x270)]=Bt([F(0x0,Ee),F(0x1,a[_0x13cd8a(0x2fc)]),F(0x2,a[_0x13cd8a(0x209)]),F(0x3,a[_0x13cd8a(0x248)](u[_0x13cd8a(0x2f5)])),F(0x4,a[_0x13cd8a(0x202)](Ke[_0x13cd8a(0x411)]))],exports[_0x13cd8a(0x270)]);var jt=Object[_0x13cd8a(0x2a3)],kt=(_0x408a85,_0x14fd25,_0x2840c0,_0x136054)=>{const _0x4e65e8=_0x13cd8a;for(var _0x143530=_0x136054>0x1?void 0x0:_0x136054?jt(_0x14fd25,_0x2840c0):_0x14fd25,_0x142fba=_0x408a85[_0x4e65e8(0x29a)]-0x1,_0x74c622;_0x142fba>=0x0;_0x142fba--)(_0x74c622=_0x408a85[_0x142fba])&&(_0x143530=_0x74c622(_0x143530)||_0x143530);return _0x143530;},ce=(_0x32062b,_0x2ddb3b)=>(_0x3beeb6,_0xa5f3d8)=>_0x2ddb3b(_0x3beeb6,_0xa5f3d8,_0x32062b);let z=class{constructor(_0x1da623,_0x59d363,_0xdb5dff){const _0x130909=_0x13cd8a;this['_injector']=_0x1da623,this[_0x130909(0x36e)]=_0x59d363,this[_0x130909(0x39b)]=_0xdb5dff;}[_0x13cd8a(0x328)](_0x58ee12){const _0x4b65fc=_0x13cd8a;this[_0x4b65fc(0x23e)](_0x58ee12),this[_0x4b65fc(0x1c4)](_0x58ee12);}[_0x13cd8a(0x3df)](_0x4bd6d8){const _0x13fa71=_0x13cd8a,{unitID:_0x41414d}=_0x4bd6d8,_0x4f1b25=this[_0x13fa71(0x39b)][_0x13fa71(0x372)](_0x41414d)[_0x13fa71(0x316)](E[_0x13fa71(0x321)]),{redoCache:_0x1f2387}=_0x4f1b25['getUndoRedoMutationParamsCache']();if(_0x1f2387['length']===0x0)return _0x4bd6d8;let _0x419392=a[_0x13fa71(0x240)][_0x13fa71(0x351)](_0x4bd6d8[_0x13fa71(0x3f6)][0x0]);for(let _0x4bba38=0x0;_0x4bba38<_0x1f2387[_0x13fa71(0x29a)];_0x4bba38++){const _0x168b91={'id':_0x13fa71(0x2c1),'params':{..._0x1f2387[_0x4bba38]}},_0xff1d33=this[_0x13fa71(0x36e)][_0x13fa71(0x25f)](_0x419392,_0x168b91,!0x1);if(m[_0x13fa71(0x38d)](_0xff1d33))throw _0xff1d33[_0x13fa71(0x325)];_0x419392=_0xff1d33[_0x13fa71(0x1f4)];}return{...a['Tools']['deepClone'](_0x4bd6d8),'mutations':[_0x419392]};}[_0x13cd8a(0x23e)](_0x575339){const _0x382692=_0x13cd8a,{unitID:_0x259fb7}=_0x575339,_0x7e9654=this[_0x382692(0x39b)]['getRenderById'](_0x259fb7)[_0x382692(0x316)](E[_0x382692(0x321)]),{undoCache:_0x1708e2,redoCache:_0x3e88f9}=_0x7e9654[_0x382692(0x296)]();if(_0x1708e2[_0x382692(0x29a)]===0x0||_0x3e88f9[_0x382692(0x29a)]===0x0)return;const _0x5c1a82=[],_0x179f0f=[];let _0x43833a=a[_0x382692(0x240)][_0x382692(0x351)](_0x575339['mutations'][0x0]),_0x47739c=a[_0x382692(0x240)]['deepClone'](_0x575339[_0x382692(0x3f6)][0x0]);for(let _0x5ec825=_0x1708e2[_0x382692(0x29a)]-0x1;_0x5ec825>=0x0;_0x5ec825--){const _0x2381fd={'id':_0x382692(0x2c1),'params':{..._0x1708e2[_0x5ec825]}},_0x5c19c2={'id':_0x382692(0x2c1),'params':{..._0x3e88f9[_0x5ec825]}},_0x507e01=this[_0x382692(0x36e)]['transformMutation'](_0x43833a,_0x2381fd,!0x1),_0x29fa67=this[_0x382692(0x36e)][_0x382692(0x25f)](_0x47739c,_0x5c19c2,!0x1);if(m[_0x382692(0x38d)](_0x507e01))throw _0x507e01['error'];if(m[_0x382692(0x38d)](_0x29fa67))throw _0x29fa67[_0x382692(0x325)];_0x5c1a82[_0x382692(0x361)](_0x507e01[_0x382692(0x37b)][_0x382692(0x357)]),_0x179f0f[_0x382692(0x361)](_0x29fa67['m2Prime']['params']),_0x43833a=_0x507e01['m1Prime'],_0x47739c=_0x29fa67[_0x382692(0x1f4)];}_0x7e9654['setUndoRedoMutationParamsCache']({'undoCache':_0x5c1a82,'redoCache':_0x179f0f});}['_transformPreviousActiveRange'](_0x54431a){const _0x43102f=_0x13cd8a,{unitID:_0x15ecbc}=_0x54431a,_0x4eb4f4=this[_0x43102f(0x39b)][_0x43102f(0x372)](_0x15ecbc)[_0x43102f(0x316)](E[_0x43102f(0x321)]),_0x330e15=_0x4eb4f4[_0x43102f(0x3c2)]();if(_0x330e15==null)return;const _0x3911a9=[{'id':_0x43102f(0x2c1),'params':{'unitId':_0x54431a['unitID'],'actions':null,'textRanges':[_0x330e15]}}],_0x17c208=this[_0x43102f(0x36e)][_0x43102f(0x1c9)](_0x54431a,_0x3911a9);if(!m['isTransformMutationsWithChangesetSuccess'](_0x17c208))throw _0x17c208[_0x43102f(0x325)];const _0x3fd3fe=_0x17c208[_0x43102f(0x37b)][0x0][_0x43102f(0x357)][_0x43102f(0x38c)];Array['isArray'](_0x3fd3fe)&&_0x3fd3fe['length']&&_0x4eb4f4[_0x43102f(0x27f)](_0x3fd3fe[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x13cd8a(0x260)])),ce(0x1,m[_0x13cd8a(0x225)]),ce(0x2,p[_0x13cd8a(0x3bf)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x5ce6ee,_0x5e10be,_0x4b67c6,_0x2794b2)=>{for(var _0x4924cf=_0x2794b2>0x1?void 0x0:_0x2794b2?Ft(_0x5e10be,_0x4b67c6):_0x5e10be,_0x200619=_0x5ce6ee['length']-0x1,_0x3f3b5e;_0x200619>=0x0;_0x200619--)(_0x3f3b5e=_0x5ce6ee[_0x200619])&&(_0x4924cf=_0x3f3b5e(_0x4924cf)||_0x4924cf);return _0x4924cf;},le=(_0x391827,_0x1ba707)=>(_0x47232d,_0x16fee7)=>_0x1ba707(_0x47232d,_0x16fee7,_0x391827);let J=class{constructor(_0x2f1866,_0x2ea25d,_0x4d372f){const _0x9c3e27=_0x13cd8a;this['_injector']=_0x2f1866,this['_transformService']=_0x2ea25d,this[_0x9c3e27(0x395)]=_0x4d372f;}[_0x13cd8a(0x3ce)](_0x3a033e){this['_transformHistoryAndStateStack'](_0x3a033e);}[_0x13cd8a(0x3df)](_0x4056c3){const _0x228424=_0x13cd8a,{unitID:_0x40255f}=_0x4056c3,{collaboration:_0x449bfb}=this['_docStateChangeManagerService'][_0x228424(0x23a)](_0x40255f);if(_0x449bfb[_0x228424(0x29a)]===0x0)return _0x4056c3;let _0x11a6a3=a[_0x228424(0x240)][_0x228424(0x351)](_0x4056c3[_0x228424(0x3f6)][0x0]);for(let _0x5cea79=0x0;_0x5cea79<_0x449bfb['length'];_0x5cea79++){const _0x173698={'id':_0x228424(0x2c1),'params':{'unitId':_0x449bfb[_0x5cea79][_0x228424(0x41f)],..._0x449bfb[_0x5cea79][_0x228424(0x2d5)]}},_0x17fcee=this[_0x228424(0x36e)][_0x228424(0x25f)](_0x11a6a3,_0x173698,!0x1);if(m['isTransformMutationFailure'](_0x17fcee))throw _0x17fcee['error'];_0x11a6a3=_0x17fcee[_0x228424(0x1f4)];}return{...a[_0x228424(0x240)][_0x228424(0x351)](_0x4056c3),'mutations':[_0x11a6a3]};}[_0x13cd8a(0x208)](_0x4bcd2f){const _0x5b4cbb=_0x13cd8a,{unitID:_0xb72c59}=_0x4bcd2f,{history:_0x1d944b,collaboration:_0x41447a}=this[_0x5b4cbb(0x395)][_0x5b4cbb(0x23a)](_0xb72c59);if(_0x1d944b[_0x5b4cbb(0x29a)]===0x0&&_0x41447a[_0x5b4cbb(0x29a)]===0x0)return;const _0x1fd644=[],_0xd00ff8=[];let _0x1b52c0=a[_0x5b4cbb(0x240)][_0x5b4cbb(0x351)](_0x4bcd2f[_0x5b4cbb(0x3f6)][0x0]),_0x308512=a[_0x5b4cbb(0x240)][_0x5b4cbb(0x351)](_0x4bcd2f[_0x5b4cbb(0x3f6)][0x0]);for(let _0x579cfc=_0x1d944b[_0x5b4cbb(0x29a)]-0x1;_0x579cfc>=0x0;_0x579cfc--){const _0x528884={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d944b[_0x579cfc]['unitId'],..._0x1d944b[_0x579cfc][_0x5b4cbb(0x1fe)]}},_0x4975b8={'id':_0x5b4cbb(0x2c1),'params':{'unitId':_0x1d944b[_0x579cfc][_0x5b4cbb(0x41f)],..._0x1d944b[_0x579cfc]['redoState']}},_0x39f58a=this[_0x5b4cbb(0x36e)][_0x5b4cbb(0x25f)](_0x1b52c0,_0x528884,!0x1),_0x20d19a=this[_0x5b4cbb(0x36e)][_0x5b4cbb(0x25f)](_0x308512,_0x4975b8,!0x1);if(m[_0x5b4cbb(0x38d)](_0x39f58a))throw _0x39f58a[_0x5b4cbb(0x325)];if(m[_0x5b4cbb(0x38d)](_0x20d19a))throw _0x20d19a[_0x5b4cbb(0x325)];_0x1fd644[_0x5b4cbb(0x361)]({..._0x1d944b[_0x579cfc],'undoState':_0x39f58a[_0x5b4cbb(0x37b)]['params'],'redoState':_0x20d19a[_0x5b4cbb(0x37b)][_0x5b4cbb(0x357)]}),_0x1b52c0=_0x39f58a['m1Prime'],_0x308512=_0x20d19a['m1Prime'];}_0x1b52c0=a['Tools']['deepClone'](_0x4bcd2f[_0x5b4cbb(0x3f6)][0x0]),_0x308512=a[_0x5b4cbb(0x240)]['deepClone'](_0x4bcd2f[_0x5b4cbb(0x3f6)][0x0]);for(let _0xe56022=_0x41447a[_0x5b4cbb(0x29a)]-0x1;_0xe56022>=0x0;_0xe56022--){const _0x35382a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41447a[_0xe56022][_0x5b4cbb(0x41f)],..._0x41447a[_0xe56022]['undoState']}},_0xacde92={'id':_0x5b4cbb(0x2c1),'params':{'unitId':_0x41447a[_0xe56022][_0x5b4cbb(0x41f)],..._0x41447a[_0xe56022][_0x5b4cbb(0x2d5)]}},_0x219823=this[_0x5b4cbb(0x36e)][_0x5b4cbb(0x25f)](_0x1b52c0,_0x35382a,!0x1),_0x28006e=this[_0x5b4cbb(0x36e)][_0x5b4cbb(0x25f)](_0x308512,_0xacde92,!0x1);if(m[_0x5b4cbb(0x38d)](_0x219823))throw _0x219823['error'];if(m[_0x5b4cbb(0x38d)](_0x28006e))throw _0x28006e['error'];_0xd00ff8['unshift']({..._0x41447a[_0xe56022],'undoState':_0x219823[_0x5b4cbb(0x37b)][_0x5b4cbb(0x357)],'redoState':_0x28006e[_0x5b4cbb(0x37b)][_0x5b4cbb(0x357)]}),_0x1b52c0=_0x219823[_0x5b4cbb(0x1f4)],_0x308512=_0x28006e[_0x5b4cbb(0x1f4)];}this['_docStateChangeManagerService'][_0x5b4cbb(0x441)](_0xb72c59,{'history':_0x1fd644,'collaboration':_0xd00ff8});}};J=Ht([le(0x0,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),le(0x1,m[_0x13cd8a(0x225)]),le(0x2,a[_0x13cd8a(0x248)](E[_0x13cd8a(0x41a)]))],J);var Yt=Object[_0x13cd8a(0x2a3)],Wt=(_0x59ecbb,_0x5411da,_0x460cf6,_0x28d287)=>{for(var _0x2ec545=_0x28d287>0x1?void 0x0:_0x28d287?Yt(_0x5411da,_0x460cf6):_0x5411da,_0x309e15=_0x59ecbb['length']-0x1,_0x8d65f2;_0x309e15>=0x0;_0x309e15--)(_0x8d65f2=_0x59ecbb[_0x309e15])&&(_0x2ec545=_0x8d65f2(_0x2ec545)||_0x2ec545);return _0x2ec545;},Ne=(_0x21e4cc,_0x2618af)=>(_0xf6e39f,_0x441d6e)=>_0x2618af(_0xf6e39f,_0x441d6e,_0x21e4cc);let Z=class{constructor(_0x43b54c,_0x4caf3e){const _0x312c94=_0x13cd8a;this[_0x312c94(0x253)]=_0x43b54c,this[_0x312c94(0x36e)]=_0x4caf3e;}[_0x13cd8a(0x1f1)](_0x46aa15){const _0x617a51=_0x13cd8a;var _0xcdc797;const _0x331947=this['_injector'][_0x617a51(0x384)](Y[_0x617a51(0x33a)]),_0x198a11=(_0xcdc797=_0x331947[_0x617a51(0x408)]())!=null?_0xcdc797:[];if(_0x198a11[_0x617a51(0x29a)]===0x0)return;const _0x26e681=_0x46aa15[_0x617a51(0x268)],_0x1728b8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26e681,'actions':null,'textRanges':_0x198a11}}],_0x19decb=this['_transformService']['transformMutationsWithChangeset'](_0x46aa15,_0x1728b8);if(!m['isTransformMutationsWithChangesetSuccess'](_0x19decb))throw _0x19decb['error'];const _0x2ef611=_0x19decb['m2Prime'][0x0]['params'][_0x617a51(0x38c)];Array[_0x617a51(0x1ea)](_0x2ef611)&&_0x2ef611[_0x617a51(0x29a)]&&_0x331947['replaceDocRanges'](_0x2ef611,{'unitId':_0x26e681,'subUnitId':_0x26e681},!0x1);}};Z=Wt([Ne(0x0,a[_0x13cd8a(0x248)](a[_0x13cd8a(0x260)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x13cd8a(0x2a3)],Xt=(_0x3b705c,_0x53fc1b,_0x23d4d1,_0x1ffa89)=>{const _0x3b328f=_0x13cd8a;for(var _0xd0b27a=_0x1ffa89>0x1?void 0x0:_0x1ffa89?Vt(_0x53fc1b,_0x23d4d1):_0x53fc1b,_0x66cce7=_0x3b705c[_0x3b328f(0x29a)]-0x1,_0x395b0b;_0x66cce7>=0x0;_0x66cce7--)(_0x395b0b=_0x3b705c[_0x66cce7])&&(_0xd0b27a=_0x395b0b(_0xd0b27a)||_0xd0b27a);return _0xd0b27a;},N=(_0x50ca0a,_0x354335)=>(_0x3ce064,_0x126176)=>_0x354335(_0x3ce064,_0x126176,_0x50ca0a);let Q=class extends a[_0x13cd8a(0x2fe)]{constructor(_0x149175,_0xe88aed,_0x28b27b,_0x530b03,_0x3cfbba,_0x5e5832,_0x3013cf,_0x277466){const _0x233d38=_0x13cd8a;super(),h(this,_0x233d38(0x396),new d[(_0x233d38(0x2ab))](u[_0x233d38(0x3fa)]['NOT_COLLAB'])),(this[_0x233d38(0x395)]=_0x149175,this[_0x233d38(0x36b)]=_0xe88aed,this[_0x233d38(0x232)]=_0x28b27b,this['_docTransformStateCacheService']=_0x530b03,this['_docTransformSelectionsService']=_0x3cfbba,this[_0x233d38(0x2e2)]=_0x5e5832,this[_0x233d38(0x3e5)]=_0x3013cf,this[_0x233d38(0x3b1)]=_0x277466,this[_0x233d38(0x37a)]());}[_0x13cd8a(0x37a)](){const _0x270258=_0x13cd8a;this[_0x270258(0x22b)](this['_collaborationController'][_0x270258(0x3bd)][_0x270258(0x29f)](_0x2a08c0=>{const _0x20cf7b=_0x270258,_0x505164=this['_docStateChangeManagerService']['docStateChange$'][_0x20cf7b(0x29f)](_0x252719=>{const _0x4ae562=_0x20cf7b;if(_0x252719==null)return;const {unitId:_0x42d75a,redoState:_0x7c4229,commandId:_0x37d5c9}=_0x252719;if(_0x42d75a!==_0x2a08c0['unitID'])return;const _0x5cb12b={'id':_0x37d5c9,'type':a[_0x4ae562(0x2db)][_0x4ae562(0x2de)],'params':{'unitId':_0x42d75a,'actions':_0x7c4229['actions'],'textRanges':null}};_0x2a08c0['onLocalMutation'](_0x5cb12b);});if(_0x2a08c0[_0x20cf7b(0x22b)](_0x505164),_0x2a08c0 instanceof u[_0x20cf7b(0x309)]){const _0x1517aa={'onTransformIME':_0x1e4f81=>this[_0x20cf7b(0x232)][_0x20cf7b(0x328)](_0x1e4f81),'onTransformState':_0x1d9d5e=>this[_0x20cf7b(0x437)][_0x20cf7b(0x3ce)](_0x1d9d5e),'onTransformSelections':_0x235cd4=>this[_0x20cf7b(0x29c)][_0x20cf7b(0x1f1)](_0x235cd4),'onSyncEditingCollabCursor':_0x472895=>this['_docSyncEditingCollabCursorService'][_0x20cf7b(0x2e3)](_0x472895),'onTransformRemoteChangesetByIMECache':_0x51ce1e=>this[_0x20cf7b(0x232)][_0x20cf7b(0x3df)](_0x51ce1e),'onTransformRemoteChangesetByStateCache':_0x4458b7=>this[_0x20cf7b(0x437)][_0x20cf7b(0x3df)](_0x4458b7)};_0x2a08c0['addHandlerCallback'](_0x1517aa);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x13cd8a(0x41a)])),N(0x1,a[_0x13cd8a(0x248)](u[_0x13cd8a(0x28b)])),N(0x2,a[_0x13cd8a(0x248)](z)),N(0x3,a[_0x13cd8a(0x248)](J)),N(0x4,a[_0x13cd8a(0x248)](Z)),N(0x5,a[_0x13cd8a(0x248)](Ce)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x13cd8a(0x24e)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x4e6337,_0x49f317,_0x414d21,_0x170b32)=>{const _0x3865ad=_0x13cd8a;for(var _0x3dfe76=_0x170b32>0x1?void 0x0:_0x170b32?Gt(_0x49f317,_0x414d21):_0x49f317,_0x4fff9f=_0x4e6337[_0x3865ad(0x29a)]-0x1,_0x25854c;_0x4fff9f>=0x0;_0x4fff9f--)(_0x25854c=_0x4e6337[_0x4fff9f])&&(_0x3dfe76=_0x25854c(_0x3dfe76)||_0x3dfe76);return _0x3dfe76;},_e=(_0xfb2212,_0x24db73)=>(_0x3a3bb2,_0x53a9f3)=>_0x24db73(_0x3a3bb2,_0x53a9f3,_0xfb2212);let ge=class extends a['Disposable']{constructor(_0x13a195,_0x24353a,_0xa53396){const _0xa73c22=_0x13cd8a;super(),h(this,_0xa73c22(0x267),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0xa73c22(0x216),!0x1),(this['_configService']=_0x13a195,this[_0xa73c22(0x344)]=_0x24353a,this['_revisionService']=_0xa53396);}[_0x13cd8a(0x2f0)](){this['_disabled']=!0x0;}[_0x13cd8a(0x422)](){const _0xfe5bc6=_0x13cd8a;this[_0xfe5bc6(0x216)]=!0x1;}get[_0x13cd8a(0x3c1)](){const _0x1b84b0=_0x13cd8a;return this[_0x1b84b0(0x398)];}[_0x13cd8a(0x41d)](){const _0x42aebb=_0x13cd8a;this[_0x42aebb(0x3cd)]()[_0x42aebb(0x3f0)](()=>super[_0x42aebb(0x41d)]());}async[_0x13cd8a(0x2b6)](_0x1430bd){const _0x4a61d0=_0x13cd8a;return this['_disabled']?null:this['_localStorageService'][_0x4a61d0(0x31f)](u['getLocalCacheKey'](_0x1430bd));}async[_0x13cd8a(0x1e6)](_0x351c1e,_0x240fd5){const _0x2f9f36=_0x13cd8a;return!!this[_0x2f9f36(0x344)]['setItem'](_0x351c1e,_0x240fd5);}[_0x13cd8a(0x1c7)](_0x385a95,_0x56c8ab,_0x52219f,_0x4363c5){const _0x2224f=_0x13cd8a,_0x48784a=this[_0x2224f(0x3eb)][_0x2224f(0x266)](_0x385a95);this[_0x2224f(0x267)]['set'](_0x385a95,{'unitID':_0x385a95,'type':_0x56c8ab,'awaitingChangeset':_0x52219f,'mutations':_0x4363c5,'rev':_0x48784a}),this[_0x2224f(0x398)][_0x2224f(0x315)](_0x385a95)||this['_scheduleSaving'](_0x385a95);}[_0x13cd8a(0x29e)](_0x538f1c){const _0x3fa774=_0x13cd8a,_0x3b1d28=this[_0x3fa774(0x33d)]();_0x3b1d28===0x0?this[_0x3fa774(0x1d2)](_0x538f1c):this['_saveTaskMap'][_0x3fa774(0x2f1)](_0x538f1c,setTimeout(()=>this[_0x3fa774(0x1d2)](_0x538f1c),_0x3b1d28));}[_0x13cd8a(0x33d)](){const _0x2fef3c=_0x13cd8a;var _0x53c004;return(_0x53c004=this['_configService'][_0x2fef3c(0x404)](u[_0x2fef3c(0x269)]))!=null?_0x53c004:u[_0x2fef3c(0x1e3)];}[_0x13cd8a(0x1d2)](_0x3e7efc){const _0x322c72=_0x13cd8a,_0x1f325a=this[_0x322c72(0x398)][_0x322c72(0x384)](_0x3e7efc);return _0x1f325a!==void 0x0&&window[_0x322c72(0x423)](_0x1f325a),this[_0x322c72(0x344)][_0x322c72(0x338)](u[_0x322c72(0x22c)](_0x3e7efc),this[_0x322c72(0x267)][_0x322c72(0x384)](_0x3e7efc))['then'](()=>this[_0x322c72(0x398)][_0x322c72(0x2a4)](_0x3e7efc));}async[_0x13cd8a(0x3cd)](){const _0x2a6187=_0x13cd8a,_0x1a8ff6=[];this[_0x2a6187(0x398)]['forEach']((_0x8e9219,_0x3cc0f2)=>{const _0x495a31=_0x2a6187;window[_0x495a31(0x423)](_0x8e9219),_0x1a8ff6[_0x495a31(0x28f)](this[_0x495a31(0x1d2)](_0x3cc0f2)[_0x495a31(0x3f0)](()=>{const _0x1902a3=_0x495a31;this[_0x1902a3(0x398)]['delete'](_0x3cc0f2);}));}),await Promise[_0x2a6187(0x389)](_0x1a8ff6);}};ge=Kt([_e(0x0,a[_0x13cd8a(0x386)]),_e(0x1,a[_0x13cd8a(0x2fd)]),_e(0x2,a[_0x13cd8a(0x248)](m[_0x13cd8a(0x259)]))],ge);class Be extends a[_0x13cd8a(0x2b1)]{constructor(){const _0x5eafdb=_0x13cd8a;super(),h(this,_0x5eafdb(0x348)),this[_0x5eafdb(0x348)]=d[_0x5eafdb(0x3c4)](window,_0x5eafdb(0x1e2))[_0x5eafdb(0x329)](d['takeUntil'](this[_0x5eafdb(0x1dd)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}[_0x13cd8a(0x26a)](_0x474bee,_0x19f881,_0x1dc083=!0x1){const _0x297f31=_0x13cd8a,_0x10bed2=new URL(window[_0x297f31(0x352)][_0x297f31(0x1f7)]);_0x10bed2['searchParams'][_0x297f31(0x2f1)](_0x474bee,_0x19f881),_0x1dc083?window[_0x297f31(0x38f)]['replaceState']('','',_0x10bed2[_0x297f31(0x402)]()):window[_0x297f31(0x38f)][_0x297f31(0x221)]('','',_0x10bed2[_0x297f31(0x402)]());}['removeParam'](_0x171cc3,_0x5dd33a=!0x1){const _0x339363=_0x13cd8a,_0x2213c1=new URL(window[_0x339363(0x352)][_0x339363(0x1f7)]);_0x2213c1['searchParams'][_0x339363(0x2a4)](_0x171cc3),_0x5dd33a?window[_0x339363(0x38f)]['replaceState']('','',_0x2213c1[_0x339363(0x402)]()):window[_0x339363(0x38f)][_0x339363(0x221)]('','',_0x2213c1['toString']());}[_0x13cd8a(0x28c)](_0x10061b){const _0x2cb0b3=_0x13cd8a;var _0x39f076;return(_0x39f076=new URL(window[_0x2cb0b3(0x352)][_0x2cb0b3(0x1f7)])[_0x2cb0b3(0x2c6)][_0x2cb0b3(0x384)](_0x10061b))!=null?_0x39f076:void 0x0;}}var qt=Object[_0x13cd8a(0x247)],zt=Object[_0x13cd8a(0x2a3)],Jt=(_0x51bd3,_0x1c1d89,_0x4636a9)=>_0x1c1d89 in _0x51bd3?qt(_0x51bd3,_0x1c1d89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4636a9}):_0x51bd3[_0x1c1d89]=_0x4636a9,Zt=(_0x4548b3,_0x48aae2,_0x5ed5de,_0x145054)=>{for(var _0x1b2612=_0x145054>0x1?void 0x0:_0x145054?zt(_0x48aae2,_0x5ed5de):_0x48aae2,_0x5c649f=_0x4548b3['length']-0x1,_0x5dca99;_0x5c649f>=0x0;_0x5c649f--)(_0x5dca99=_0x4548b3[_0x5c649f])&&(_0x1b2612=_0x5dca99(_0x1b2612)||_0x1b2612);return _0x1b2612;},he=(_0x7dd935,_0x125510)=>(_0x5669ad,_0x39f7df)=>_0x125510(_0x5669ad,_0x39f7df,_0x7dd935),Qt=(_0x476876,_0x1caf48,_0x29b1b4)=>Jt(_0x476876,_0x1caf48+'',_0x29b1b4);const es=_0x13cd8a(0x347);exports[_0x13cd8a(0x2cf)]=class extends a[_0x13cd8a(0x32b)]{constructor(_0x207ad1=Ue,_0x1c188e,_0x5ede6f,_0x1c966a){const _0x59b7b9=_0x13cd8a;super(),this[_0x59b7b9(0x224)]=_0x207ad1,this[_0x59b7b9(0x39b)]=_0x1c188e,this['_injector']=_0x5ede6f,this[_0x59b7b9(0x319)]=_0x1c966a;const {..._0x4d29d8}=a['merge']({},Ue,this['_config']);this[_0x59b7b9(0x319)]['setConfig']($t,_0x4d29d8);}[_0x13cd8a(0x341)](){const _0x49495c=_0x13cd8a;this['_registerDependencies'](),this[_0x49495c(0x38b)]();}[_0x13cd8a(0x3c9)](){const _0x1dfa1c=_0x13cd8a;this[_0x1dfa1c(0x2eb)]();}[_0x13cd8a(0x41b)](){const _0x509daa=_0x13cd8a;var _0x3eae63;const _0x51a212=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x509daa(0x226)],{'useClass':G[_0x509daa(0x378)]}],[u[_0x509daa(0x418)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x509daa(0x270)]]];a['registerDependencies'](this[_0x509daa(0x253)],a[_0x509daa(0x229)](_0x51a212,(_0x3eae63=this['_config'])==null?void 0x0:_0x3eae63['override']));}[_0x13cd8a(0x2eb)](){const _0x42e5ff=_0x13cd8a;this[_0x42e5ff(0x22b)](this[_0x42e5ff(0x39b)][_0x42e5ff(0x446)](a['UniverInstanceType']['UNIVER_DOC'],[fe])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x42e5ff(0x1d5)][_0x42e5ff(0x3e7)],[ve]));}[_0x13cd8a(0x38b)](){const _0x57759a=_0x13cd8a;a[_0x57759a(0x1f8)](this[_0x57759a(0x253)],[[x],[exports[_0x57759a(0x439)]],[Q],[q],[exports[_0x57759a(0x270)]]]);}},Qt(exports[_0x13cd8a(0x2cf)],'pluginName',es),exports[_0x13cd8a(0x2cf)]=Zt([a[_0x13cd8a(0x3d4)](u[_0x13cd8a(0x35a)]),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x13cd8a(0x248)](a['Injector'])),he(0x3,a[_0x13cd8a(0x386)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x13cd8a(0x2a3)],ss=(_0x44a413,_0x586e31,_0x3a11b5,_0x3c9233)=>{const _0x50bbad=_0x13cd8a;for(var _0x20bb2b=_0x3c9233>0x1?void 0x0:_0x3c9233?ts(_0x586e31,_0x3a11b5):_0x586e31,_0x43005e=_0x44a413[_0x50bbad(0x29a)]-0x1,_0x526c6d;_0x43005e>=0x0;_0x43005e--)(_0x526c6d=_0x44a413[_0x43005e])&&(_0x20bb2b=_0x526c6d(_0x20bb2b)||_0x20bb2b);return _0x20bb2b;},H=(_0x1b72bf,_0x2c7d5d)=>(_0x3836fa,_0x36dfc2)=>_0x2c7d5d(_0x3836fa,_0x36dfc2,_0x1b72bf);exports[_0x13cd8a(0x438)]=class extends u[_0x13cd8a(0x42b)]{constructor(_0x3c5fc4,_0x4fda28,_0x16d5b8,_0x295b3e,_0x51c9e9){super(_0x3c5fc4,_0x4fda28,_0x16d5b8,_0x295b3e,_0x51c9e9);}async['createSocket'](_0x82cb92){const _0x3d68a7=_0x13cd8a,_0x1e1f8a=await this['_getSessionTicket'](),_0x539abd=this['_createSocketURL'](_0x82cb92,_0x1e1f8a);return this[_0x3d68a7(0x20a)](_0x539abd);}['_createSocketURL'](_0x22ec33,_0x499217){const _0x3d9927=_0x13cd8a,_0x35a4f0=typeof window>'u'?new URL(_0x22ec33):new URL(_0x22ec33,window['location'][_0x3d9927(0x25b)]);_0x35a4f0['searchParams'][_0x3d9927(0x2f1)](_0x3d9927(0x236),_0x499217);const _0xe33d78=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3d9927(0x352)]['search']);return _0xe33d78[_0x3d9927(0x384)](_0x3d9927(0x1cd))&&_0x35a4f0[_0x3d9927(0x2c6)]['set']('runId',_0xe33d78['get'](_0x3d9927(0x1cd))),_0x35a4f0[_0x3d9927(0x402)]();}async['_getSessionTicket'](){const _0x2425ac=_0x13cd8a;var _0x359edc,_0x70653e,_0x12d4dc;const _0x4f17af=this[_0x2425ac(0x319)][_0x2425ac(0x404)](u[_0x2425ac(0x333)]),_0x4a8170=(_0x359edc=_0x4f17af==null?void 0x0:_0x4f17af[_0x2425ac(0x35f)])!=null?_0x359edc:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x12d4dc=(_0x70653e=(await this['_httpService'][_0x2425ac(0x384)](_0x4a8170,{'headers':{'Content-Type':_0x2425ac(0x3ae)}}))[_0x2425ac(0x1d6)])==null?void 0x0:_0x70653e['ticket'])!=null?_0x12d4dc:'';}},exports[_0x13cd8a(0x438)]=ss([H(0x0,a['Inject'](a['Injector'])),H(0x1,a[_0x13cd8a(0x248)](G['HTTPService'])),H(0x2,a[_0x13cd8a(0x386)]),H(0x3,a[_0x13cd8a(0x2fc)]),H(0x4,m[_0x13cd8a(0x3bb)])],exports[_0x13cd8a(0x438)]);const Me=0x7530,Le=_0x13cd8a(0x1fa);class is extends a[_0x13cd8a(0x2fe)]{constructor(){const _0x424fad=_0x13cd8a;super(),h(this,'_id',a['generateRandomId']()),h(this,'_selfUnitIDs',new Set()),h(this,_0x424fad(0x419),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x424fad(0x335),new Map()),h(this,_0x424fad(0x3a2),new Map()),this[_0x424fad(0x3e0)]();}[_0x13cd8a(0x41d)](){const _0x25c551=_0x13cd8a;super['dispose'](),this[_0x25c551(0x335)][_0x25c551(0x3e3)]((_0x1bba91,_0x560200)=>this[_0x25c551(0x227)](_0x560200)),this[_0x25c551(0x1d9)]&&window[_0x25c551(0x37d)](this[_0x25c551(0x1d9)]);}[_0x13cd8a(0x286)](_0x3780ac){const _0xbfd7a3=_0x13cd8a;return this[_0xbfd7a3(0x40f)](_0x3780ac)[_0xbfd7a3(0x329)](d[_0xbfd7a3(0x33b)]());}[_0x13cd8a(0x405)](_0x37f538){const _0xa62823=_0x13cd8a;this[_0xa62823(0x365)][_0xa62823(0x42e)]===0x0&&this['_scheduleHeartbeat'](),this[_0xa62823(0x365)][_0xa62823(0x2a1)](_0x37f538),this[_0xa62823(0x442)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x37f538],'isForwarded':!0x1});}[_0x13cd8a(0x20d)](_0xe32017){const _0x18677d=_0x13cd8a;this['_selfUnitIDs'][_0x18677d(0x2a4)](_0xe32017),this[_0x18677d(0x365)][_0x18677d(0x42e)]===0x0&&this[_0x18677d(0x1d9)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x1a6bf0=_0x13cd8a;this[_0x1a6bf0(0x22b)](a[_0x1a6bf0(0x2e4)](d[_0x1a6bf0(0x3c4)](window,'storage')['subscribe'](_0x1c1b32=>{const _0x127b6f=_0x1a6bf0;if(_0x1c1b32[_0x127b6f(0x2f6)]!==Le||!_0x1c1b32['newValue'])return;const _0x5a3bf7=JSON[_0x127b6f(0x3fe)](_0x1c1b32[_0x127b6f(0x40a)]);this[_0x127b6f(0x1d4)](_0x5a3bf7);}))),window[_0x1a6bf0(0x2c5)](_0x1a6bf0(0x3ed),()=>this[_0x1a6bf0(0x442)]({'type':0x1,'memberID':this[_0x1a6bf0(0x30e)],'unitIDs':Array['from'](this[_0x1a6bf0(0x365)])}));}['_handleEvent'](_0x5e8d51){const _0x3398a0=_0x13cd8a;switch(_0x5e8d51[_0x3398a0(0x1f2)]){case 0x0:this[_0x3398a0(0x2a0)](_0x5e8d51);break;case 0x1:this[_0x3398a0(0x2c7)](_0x5e8d51);break;case 0x2:this[_0x3398a0(0x33e)](_0x5e8d51);break;}}['_handleJoinEvent'](_0x3eefae){const _0x30fd74=_0x13cd8a,{unitIDs:_0x77d8dc,memberID:_0x14c9ad,isForwarded:_0x4cdf78}=_0x3eefae;_0x77d8dc['forEach'](_0x5c9b57=>{const _0x3aa5bf=_0x5703;if(!_0x4cdf78&&this['_unitOnClients'][_0x3aa5bf(0x315)](_0x5c9b57)&&this['_ensureSubject'](_0x5c9b57)[_0x3aa5bf(0x331)](u[_0x3aa5bf(0x24a)]['OTHER_CLIENTS_EDITING']),!this[_0x3aa5bf(0x419)][_0x3aa5bf(0x315)](_0x5c9b57)||!this[_0x3aa5bf(0x419)][_0x3aa5bf(0x384)](_0x5c9b57)['has'](_0x14c9ad)){const _0x48c8f7=this[_0x3aa5bf(0x419)][_0x3aa5bf(0x384)](_0x5c9b57)||new Set();_0x48c8f7[_0x3aa5bf(0x2a1)](_0x14c9ad),this['_unitOnClients']['set'](_0x5c9b57,_0x48c8f7),this['_scheduleClearOtherTimer'](_0x14c9ad);}}),_0x4cdf78||this[_0x30fd74(0x442)]({'type':0x0,'memberID':this[_0x30fd74(0x30e)],'unitIDs':[...this[_0x30fd74(0x365)]],'isForwarded':!0x0});}[_0x13cd8a(0x28a)](_0x31429b){const _0x240c69=_0x13cd8a;this['_removeClearOtherTimer'](_0x31429b);const _0x4989c4=window[_0x240c69(0x256)](()=>{const _0x1e84ed=_0x240c69;this[_0x1e84ed(0x419)]['forEach'](_0x620a7=>{const _0x1eba30=_0x1e84ed;_0x620a7[_0x1eba30(0x2a4)](_0x31429b);});},Me*0x2);this[_0x240c69(0x335)][_0x240c69(0x2f1)](_0x31429b,_0x4989c4);}[_0x13cd8a(0x227)](_0x1d5653){const _0x3921b1=_0x13cd8a;if(this[_0x3921b1(0x335)][_0x3921b1(0x315)](_0x1d5653)){const _0x5c64e3=this[_0x3921b1(0x335)][_0x3921b1(0x384)](_0x1d5653);_0x5c64e3&&window[_0x3921b1(0x423)](_0x5c64e3),this['_clearOtherTimers'][_0x3921b1(0x2f1)](_0x1d5653,null);}}[_0x13cd8a(0x2c7)](_0x2188d4){const _0x3652d7=_0x13cd8a,{memberID:_0xd8fc9,unitIDs:_0x234b26}=_0x2188d4;_0x234b26[_0x3652d7(0x3e3)](_0x211efa=>{const _0x39de81=_0x3652d7;var _0x15fd5f;const _0x49cfeb=this['_unitOnClients'][_0x39de81(0x384)](_0x211efa);_0x49cfeb&&(_0x49cfeb[_0x39de81(0x2a4)](_0xd8fc9),(_0x15fd5f=this[_0x39de81(0x40f)](_0x211efa))==null||_0x15fd5f[_0x39de81(0x331)](_0x49cfeb[_0x39de81(0x42e)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x39de81(0x24a)][_0x39de81(0x1ef)]));}),this[_0x3652d7(0x227)](_0xd8fc9);}[_0x13cd8a(0x33e)](_0x554b01){const _0x40e8d6=_0x13cd8a;this[_0x40e8d6(0x28a)](_0x554b01['memberID']);}[_0x13cd8a(0x442)](_0x331ee3){const _0x56f32b=_0x13cd8a;localStorage[_0x56f32b(0x338)](Le,JSON[_0x56f32b(0x3a8)](_0x331ee3));}['_scheduleHeartbeat'](){const _0x201db=_0x13cd8a;this[_0x201db(0x1d9)]=window[_0x201db(0x33f)](()=>{const _0x5bd7c3=_0x201db;this['_send']({'type':0x2,'memberID':this[_0x5bd7c3(0x30e)]});},Me);}['_ensureSubject'](_0x1aa6ff){const _0xff73eb=_0x13cd8a;return this['_unitStatus'][_0xff73eb(0x315)](_0x1aa6ff)||this[_0xff73eb(0x3a2)][_0xff73eb(0x2f1)](_0x1aa6ff,new d[(_0xff73eb(0x2ab))](u['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0xff73eb(0x384)](_0x1aa6ff);}}var je=(_0x149fce=>(_0x149fce[_0x149fce[_0x13cd8a(0x426)]=0x0]='UNDEFINED',_0x149fce[_0x149fce['OK']=0x1]='OK',_0x149fce[_0x149fce[_0x13cd8a(0x31a)]=0x2]='INTERNAL_ERROR',_0x149fce[_0x149fce[_0x13cd8a(0x238)]=0x3]='PERMISSION_DENIED',_0x149fce[_0x149fce[_0x13cd8a(0x264)]=0x4]='NOT_FOUND',_0x149fce[_0x149fce['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x149fce[_0x149fce['ALREADY_EXISTS']=0x6]=_0x13cd8a(0x2dd),_0x149fce[_0x149fce[_0x13cd8a(0x429)]=0x7]='INVALID_ARGUMENT',_0x149fce[_0x149fce[_0x13cd8a(0x228)]=0x8]=_0x13cd8a(0x228),_0x149fce[_0x149fce['COMPLETION_FINISHED']=0x9]=_0x13cd8a(0x385),_0x149fce[_0x149fce[_0x13cd8a(0x223)]=0xa]=_0x13cd8a(0x223),_0x149fce[_0x149fce[_0x13cd8a(0x2a6)]=0xb]=_0x13cd8a(0x2a6),_0x149fce[_0x149fce['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x13cd8a(0x353),_0x149fce[_0x149fce[_0x13cd8a(0x230)]=0xd]=_0x13cd8a(0x230),_0x149fce[_0x149fce[_0x13cd8a(0x25e)]=0xe]=_0x13cd8a(0x25e),_0x149fce[_0x149fce[_0x13cd8a(0x2c9)]=0x1389]=_0x13cd8a(0x2c9),_0x149fce[_0x149fce[_0x13cd8a(0x3d5)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x149fce[_0x149fce[_0x13cd8a(0x3d2)]=0x1772]=_0x13cd8a(0x3d2),_0x149fce[_0x149fce[_0x13cd8a(0x3e6)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x149fce[_0x149fce['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x149fce[_0x149fce[_0x13cd8a(0x2ce)]=0x1b5a]=_0x13cd8a(0x2ce),_0x149fce[_0x149fce['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x13cd8a(0x1e4),_0x149fce[_0x149fce[_0x13cd8a(0x23b)]=0x1b5c]=_0x13cd8a(0x23b),_0x149fce[_0x149fce[_0x13cd8a(0x251)]=0x1b5d]=_0x13cd8a(0x251),_0x149fce[_0x149fce['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x149fce[_0x149fce['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x149fce[_0x149fce[_0x13cd8a(0x2d4)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x149fce[_0x149fce['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x13cd8a(0x287),_0x149fce[_0x149fce['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x149fce[_0x149fce[_0x13cd8a(0x1d7)]=0x232d]=_0x13cd8a(0x1d7),_0x149fce[_0x149fce[_0x13cd8a(0x3d1)]=0x2711]=_0x13cd8a(0x3d1),_0x149fce[_0x149fce['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x13cd8a(0x1ca),_0x149fce[_0x149fce[_0x13cd8a(0x410)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x149fce[_0x149fce[_0x13cd8a(0x283)]=0x2714]=_0x13cd8a(0x283),_0x149fce[_0x149fce['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x13cd8a(0x323),_0x149fce[_0x149fce[_0x13cd8a(0x356)]=0x271b]=_0x13cd8a(0x356),_0x149fce[_0x149fce[_0x13cd8a(0x29d)]=0x271c]=_0x13cd8a(0x29d),_0x149fce[_0x149fce['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x13cd8a(0x20e),_0x149fce[_0x149fce['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x13cd8a(0x2aa),_0x149fce[_0x149fce[_0x13cd8a(0x440)]=0x271f]=_0x13cd8a(0x440),_0x149fce[_0x149fce[_0x13cd8a(0x1fc)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x149fce[_0x149fce[_0x13cd8a(0x40b)]=0x2af9]=_0x13cd8a(0x40b),_0x149fce[_0x149fce[_0x13cd8a(0x2ec)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x149fce[_0x149fce[_0x13cd8a(0x2f4)]=0x2ee2]=_0x13cd8a(0x2f4),_0x149fce[_0x149fce['INVITE_CODE_REQUIRED']=0x2ee3]=_0x13cd8a(0x2bd),_0x149fce[_0x149fce[_0x13cd8a(0x2a7)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x149fce[_0x149fce[_0x13cd8a(0x37c)]=0x2ee5]=_0x13cd8a(0x37c),_0x149fce[_0x149fce['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x149fce[_0x149fce['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x149fce[_0x149fce[_0x13cd8a(0x1fb)]=0x32cb]=_0x13cd8a(0x1fb),_0x149fce[_0x149fce[_0x13cd8a(0x364)]=-0x1]='UNRECOGNIZED',_0x149fce))(je||{}),ns=Object[_0x13cd8a(0x2a3)],rs=(_0xf61b3c,_0x55c201,_0x19f677,_0x2c7dbc)=>{const _0x151ac7=_0x13cd8a;for(var _0x4c42be=_0x2c7dbc>0x1?void 0x0:_0x2c7dbc?ns(_0x55c201,_0x19f677):_0x55c201,_0x5e8c39=_0xf61b3c[_0x151ac7(0x29a)]-0x1,_0x5e24c4;_0x5e8c39>=0x0;_0x5e8c39--)(_0x5e24c4=_0xf61b3c[_0x5e8c39])&&(_0x4c42be=_0x5e24c4(_0x4c42be)||_0x4c42be);return _0x4c42be;},ue=(_0xd6bd6c,_0x3fe910)=>(_0x412072,_0x19e483)=>_0x3fe910(_0x412072,_0x19e483,_0xd6bd6c);exports['RemoteUniscriptService']=class extends a[_0x13cd8a(0x2fe)]{constructor(_0x47d0b8,_0x10d619,_0x4f287e){const _0x3a2777=_0x13cd8a;super(),this[_0x3a2777(0x1ec)]=_0x47d0b8,this[_0x3a2777(0x314)]=_0x10d619,this[_0x3a2777(0x319)]=_0x4f287e;}async[_0x13cd8a(0x2e0)](_0x40bd8b,_0x10784a,_0x339474,..._0x1cec87){const _0x2062db=_0x13cd8a;var _0xc8af66,_0x3db1a0,_0x56b72b,_0x21fb2f;const _0x57e0d6=this[_0x2062db(0x1ec)]['getFocusedUnit']();if(!_0x57e0d6)throw new Error(_0x2062db(0x34a));const _0x1d4b51=((_0xc8af66=this['_configService']['getConfig'](u[_0x2062db(0x1db)]))!=null?_0xc8af66:u[_0x2062db(0x428)])+'/'+_0x40bd8b+_0x2062db(0x300)+_0x10784a,_0x224ac2=new URL(window[_0x2062db(0x352)][_0x2062db(0x1f7)]),_0x52e516={'scriptId':_0x40bd8b,'runId':(_0x3db1a0=_0x224ac2[_0x2062db(0x2c6)][_0x2062db(0x384)](_0x2062db(0x1cd)))!=null?_0x3db1a0:'','function':_0x10784a,'unitId':_0x57e0d6['getUnitId'](),'argsOfFunction':JSON[_0x2062db(0x3a8)](_0x1cec87),'invokeId':(_0x56b72b=_0x339474['invokeId'])!=null?_0x56b72b:'','executionId':(_0x21fb2f=_0x339474['executionId'])!=null?_0x21fb2f:''};try{const _0x3a9717=await this[_0x2062db(0x314)][_0x2062db(0x2b2)](_0x1d4b51,{'body':_0x52e516});return _0x3a9717[_0x2062db(0x1d6)][_0x2062db(0x325)]&&_0x3a9717['body'][_0x2062db(0x325)][_0x2062db(0x2da)]!==je['OK']?_0x2062db(0x431):_0x3a9717[_0x2062db(0x1d6)][_0x2062db(0x3ac)];}catch{return'Failed';}}},exports[_0x13cd8a(0x2bf)]=rs([ue(0x0,a[_0x13cd8a(0x362)]),ue(0x1,a[_0x13cd8a(0x248)](G[_0x13cd8a(0x33c)])),ue(0x2,a[_0x13cd8a(0x386)])],exports['RemoteUniscriptService']),exports[_0x13cd8a(0x22d)]=xe,exports[_0x13cd8a(0x2b7)]=Ee,exports[_0x13cd8a(0x427)]=we,exports[_0x13cd8a(0x1d1)]=is,exports['WebURLService']=Be;