@univerjs-pro/collaboration-client-ui 0.6.6 → 0.6.7

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.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x53356a=_0x2710;(function(_0x3e0015,_0x508c8c){const _0xa93c00=_0x2710,_0x218b78=_0x3e0015();while(!![]){try{const _0x2f3d5f=parseInt(_0xa93c00(0x96))/0x1*(-parseInt(_0xa93c00(0x97))/0x2)+parseInt(_0xa93c00(0x9c))/0x3*(-parseInt(_0xa93c00(0x9b))/0x4)+-parseInt(_0xa93c00(0x9a))/0x5+-parseInt(_0xa93c00(0x8d))/0x6*(-parseInt(_0xa93c00(0x98))/0x7)+parseInt(_0xa93c00(0x95))/0x8+parseInt(_0xa93c00(0x8e))/0x9+parseInt(_0xa93c00(0x99))/0xa;if(_0x2f3d5f===_0x508c8c)break;else _0x218b78['push'](_0x218b78['shift']());}catch(_0x171ac6){_0x218b78['push'](_0x218b78['shift']());}}}(_0x1567,0x6c645));function _0x1567(){const _0x4c089e=['extend','runOnServer','RemoteUniscriptService','@univerjs-pro/collaboration-client-ui','@univerjs/core/facade','858936sAZAod','80147eePFlR','12dZmzeh','7ATIjrf','12738390YMXmBq','2680330lEHEib','40472VMLmQY','72xIXtlv','480306rWCdDE','2182464EwMuDE','FUniver'];_0x1567=function(){return _0x4c089e;};return _0x1567();}function _0x2710(_0x167140,_0x1c39ef){const _0x1567d5=_0x1567();return _0x2710=function(_0x27109c,_0x36188c){_0x27109c=_0x27109c-0x8d;let _0x43e537=_0x1567d5[_0x27109c];return _0x43e537;},_0x2710(_0x167140,_0x1c39ef);}const t=require(_0x53356a(0x93)),e=require(_0x53356a(0x94));class c extends e[_0x53356a(0x8f)]{[_0x53356a(0x91)](_0x386acb,_0x546976,..._0x38ba13){const _0x15cac8=_0x53356a;return this['_injector']['get'](t[_0x15cac8(0x92)])['runOnServer'](_0x386acb,_0x546976,{},..._0x38ba13);}}e[_0x53356a(0x8f)][_0x53356a(0x90)](c);
1
+ 'use strict';const _0x4d9e3b=_0x3c81;(function(_0x311b51,_0x1d52a2){const _0x439df4=_0x3c81,_0x2d4172=_0x311b51();while(!![]){try{const _0x4e293c=-parseInt(_0x439df4(0x110))/0x1*(-parseInt(_0x439df4(0x10e))/0x2)+parseInt(_0x439df4(0x10c))/0x3+-parseInt(_0x439df4(0x10d))/0x4+parseInt(_0x439df4(0x106))/0x5*(parseInt(_0x439df4(0x107))/0x6)+parseInt(_0x439df4(0x103))/0x7*(parseInt(_0x439df4(0x104))/0x8)+parseInt(_0x439df4(0x105))/0x9+parseInt(_0x439df4(0x10a))/0xa*(-parseInt(_0x439df4(0x108))/0xb);if(_0x4e293c===_0x1d52a2)break;else _0x2d4172['push'](_0x2d4172['shift']());}catch(_0x54409e){_0x2d4172['push'](_0x2d4172['shift']());}}}(_0x20bb,0xdef7c));const t=require(_0x4d9e3b(0x10f)),e=require('@univerjs/core/facade');function _0x20bb(){const _0x44116a=['170eJciOR','RemoteUniscriptService','236535SBdNIu','4439604IYXWjN','2rEDsVU','@univerjs-pro/collaboration-client-ui','719633QjhAEG','extend','FUniver','_injector','7FfVhKi','12270168dZNsXN','3044907HBjwGF','507945GgAiQx','36SwwcHm','813307jafzmP','runOnServer'];_0x20bb=function(){return _0x44116a;};return _0x20bb();}function _0x3c81(_0x1ec876,_0x2c8eb9){const _0x20bb5b=_0x20bb();return _0x3c81=function(_0x3c817d,_0x5dcf74){_0x3c817d=_0x3c817d-0x102;let _0x3a69ee=_0x20bb5b[_0x3c817d];return _0x3a69ee;},_0x3c81(_0x1ec876,_0x2c8eb9);}class c extends e[_0x4d9e3b(0x112)]{[_0x4d9e3b(0x109)](_0x569bd5,_0x487310,..._0x3dc02a){const _0x29b7c9=_0x4d9e3b;return this[_0x29b7c9(0x102)]['get'](t[_0x29b7c9(0x10b)])[_0x29b7c9(0x109)](_0x569bd5,_0x487310,{},..._0x3dc02a);}}e['FUniver'][_0x4d9e3b(0x111)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5a0327=_0x396e;(function(_0xc9dc09,_0xdb8109){const _0x25444d=_0x396e,_0x5b8a1e=_0xc9dc09();while(!![]){try{const _0x14c45a=-parseInt(_0x25444d(0x3d9))/0x1+-parseInt(_0x25444d(0x270))/0x2*(-parseInt(_0x25444d(0x1fb))/0x3)+-parseInt(_0x25444d(0x26c))/0x4*(parseInt(_0x25444d(0x373))/0x5)+parseInt(_0x25444d(0x31a))/0x6*(parseInt(_0x25444d(0x3f7))/0x7)+parseInt(_0x25444d(0x1f4))/0x8+parseInt(_0x25444d(0x218))/0x9+-parseInt(_0x25444d(0x2a8))/0xa;if(_0x14c45a===_0xdb8109)break;else _0x5b8a1e['push'](_0x5b8a1e['shift']());}catch(_0x3f7c6d){_0x5b8a1e['push'](_0x5b8a1e['shift']());}}}(_0x4a86,0x7e8c9));var Ve=Object[_0x5a0327(0x2af)],Ge=(_0x54ce62,_0xb0efa9,_0x3b3818)=>_0xb0efa9 in _0x54ce62?Ve(_0x54ce62,_0xb0efa9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b3818}):_0x54ce62[_0xb0efa9]=_0x3b3818,h=(_0x3370c2,_0x5a14de,_0x2129c3)=>Ge(_0x3370c2,typeof _0x5a14de!='symbol'?_0x5a14de+'':_0x5a14de,_0x2129c3);Object[_0x5a0327(0x2af)](exports,Symbol[_0x5a0327(0x38d)],{'value':_0x5a0327(0x306)});const u=require(_0x5a0327(0x1d9)),a=require(_0x5a0327(0x411)),p=require('@univerjs/engine-render'),q=require('@univerjs/network'),b=require(_0x5a0327(0x2b1)),qe=require('@univerjs/drawing'),d=require(_0x5a0327(0x324)),Y=require(_0x5a0327(0x278)),m=require(_0x5a0327(0x247)),Te=require(_0x5a0327(0x3fc)),I=require(_0x5a0327(0x395)),$=require(_0x5a0327(0x36f)),G=require(_0x5a0327(0x2b4)),w=require(_0x5a0327(0x2e5)),R=require('@univerjs/ui'),T=require(_0x5a0327(0x262)),P=require(_0x5a0327(0x36d)),Ke=require(_0x5a0327(0x206));var ze=Object[_0x5a0327(0x3e2)],Je=(_0x3a76c5,_0x2ab50f,_0xfae870,_0x399590)=>{const _0x4fc966=_0x5a0327;for(var _0x41b7d7=_0x399590>0x1?void 0x0:_0x399590?ze(_0x2ab50f,_0xfae870):_0x2ab50f,_0x173c3e=_0x3a76c5[_0x4fc966(0x2c6)]-0x1,_0x5c016c;_0x173c3e>=0x0;_0x173c3e--)(_0x5c016c=_0x3a76c5[_0x173c3e])&&(_0x41b7d7=_0x5c016c(_0x41b7d7)||_0x41b7d7);return _0x41b7d7;},Re=(_0x12daee,_0x8371ef)=>(_0x1df37b,_0x543973)=>_0x8371ef(_0x1df37b,_0x543973,_0x12daee);let fe=class extends a[_0x5a0327(0x313)]{constructor(_0x5ac68c,_0x16a3b1){const _0xc5213a=_0x5a0327;super(),this[_0xc5213a(0x2b7)]=_0x5ac68c,this[_0xc5213a(0x26a)]=_0x16a3b1,this[_0xc5213a(0x428)]();}[_0x5a0327(0x428)](){const _0x4316b5=_0x5a0327,_0x3ac08c=this;this[_0x4316b5(0x27a)](this[_0x4316b5(0x2b7)][_0x4316b5(0x437)]({'onBeforePasteImage':async _0x46e521=>{const _0x15d4a9=_0x4316b5,_0x56fe59=await _0x3ac08c['_imageIoService'][_0x15d4a9(0x39f)](_0x46e521);return _0x56fe59?{'source':_0x56fe59[_0x15d4a9(0x35b)],'imageSourceType':_0x56fe59[_0x15d4a9(0x3bc)]}:null;}}));}};fe=Je([Re(0x0,b[_0x5a0327(0x354)]),Re(0x1,qe[_0x5a0327(0x1c4)])],fe);const Oe=[_0x5a0327(0x2f9),_0x5a0327(0x2ff),_0x5a0327(0x2b5),_0x5a0327(0x2f5),_0x5a0327(0x208),_0x5a0327(0x330)];class Ce extends a['Disposable']{constructor(){const _0x27d95e=_0x5a0327;super(...arguments),h(this,_0x27d95e(0x418),new Map()),h(this,_0x27d95e(0x24c),0x0);}[_0x5a0327(0x21f)](_0x505909){const _0x3c7e45=_0x5a0327;if(this[_0x3c7e45(0x418)][_0x3c7e45(0x203)](_0x505909))return this[_0x3c7e45(0x418)][_0x3c7e45(0x210)](_0x505909);const _0x175d5c=Oe[this[_0x3c7e45(0x24c)]];return this[_0x3c7e45(0x24c)]=(this['_colorIndex']+0x1)%Oe['length'],this[_0x3c7e45(0x418)]['set'](_0x505909,_0x175d5c),_0x175d5c;}}function Le(_0x3a94c5){const _0x17aa4c=_0x5a0327;let _0x2ab526='';for(const _0x191980 of _0x3a94c5){const {startOffset:_0x18cccb,endOffset:_0x3da9d9,isActive:_0xcec8cd,rangeType:_0x46e8aa,segmentId:_0x3e359f,segmentPage:_0x3013ec}=_0x191980;_0x2ab526[_0x17aa4c(0x2c6)]&&(_0x2ab526+=','),_0x2ab526+=_0x18cccb+':'+_0x3da9d9+':'+(_0xcec8cd?'1':'0')+':'+_0x46e8aa+':'+_0x3e359f+':'+_0x3013ec;}return _0x2ab526;}function Ze(_0x26aefb){const _0x197ac4=_0x5a0327,_0x378e8d=_0x26aefb[_0x197ac4(0x2a3)](','),_0x2d2d78=[];for(const _0x5450d6 of _0x378e8d){const [_0x1443e2,_0xd097d3,_0x216840,_0x2d2c82,_0x5b988e,_0xe58f93]=_0x5450d6[_0x197ac4(0x2a3)](':');_0x2d2d78[_0x197ac4(0x225)]({'startOffset':Number(_0x1443e2),'endOffset':Number(_0xd097d3),'collapsed':_0x1443e2===_0xd097d3,'isActive':_0x216840==='1','rangeType':_0x2d2c82===a[_0x197ac4(0x37f)][_0x197ac4(0x344)]?a[_0x197ac4(0x37f)][_0x197ac4(0x344)]:a[_0x197ac4(0x37f)][_0x197ac4(0x36c)],'segmentId':typeof _0x5b988e==_0x197ac4(0x2ae)?String(_0x5b988e):'','segmentPage':Number(_0xe58f93!=null?_0xe58f93:-0x1)});}return _0x2d2d78[_0x197ac4(0x1d3)](_0x12f4f4=>_0x12f4f4[_0x197ac4(0x1ff)])||(_0x2d2d78[0x0][_0x197ac4(0x1ff)]=!0x0),_0x2d2d78;}class pe extends a[_0x5a0327(0x313)]{constructor(){const _0x46346d=_0x5a0327;super(...arguments),h(this,_0x46346d(0x429),new d[(_0x46346d(0x368))](null)),h(this,_0x46346d(0x211),this[_0x46346d(0x429)][_0x46346d(0x334)]());}[_0x5a0327(0x1d6)](_0x5b63dc){const _0x3c75d3=_0x5a0327,{unitID:_0x4d2fb3,memberID:_0x5a2901,textRanges:_0x532103}=_0x5b63dc,_0x489c7f=Le(_0x532103);if(_0x489c7f==='')return;const _0x13e077={'unitID':_0x4d2fb3,'memberID':_0x5a2901,'selection':_0x489c7f};this['_collabCursorState$'][_0x3c75d3(0x430)](_0x13e077);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0xc56394,_0x26fe1a,_0x1f94f5,_0x1e758c)=>{const _0x149cc3=_0x5a0327;for(var _0x389064=_0x1e758c>0x1?void 0x0:_0x1e758c?Qe(_0x26fe1a,_0x1f94f5):_0x26fe1a,_0x213cfb=_0xc56394[_0x149cc3(0x2c6)]-0x1,_0x24a21a;_0x213cfb>=0x0;_0x213cfb--)(_0x24a21a=_0xc56394[_0x213cfb])&&(_0x389064=_0x24a21a(_0x389064)||_0x389064);return _0x389064;},N=(_0x2e3c74,_0x4d85d3)=>(_0x413052,_0x1928d9)=>_0x4d85d3(_0x413052,_0x1928d9,_0x2e3c74);const tt=0x12c,st=0x64;let Se=class extends a[_0x5a0327(0x313)]{constructor(_0x41ca03,_0x1a88f2,_0x1eccd8,_0x3ca785,_0x4f2e54,_0x52f0ee,_0x2fa980,_0x2c1c73,_0x35eb48){const _0x11d8ec=_0x5a0327;super(),h(this,_0x11d8ec(0x3e4),!0x1),h(this,_0x11d8ec(0x428),!0x1),h(this,_0x11d8ec(0x277),new d[(_0x11d8ec(0x368))](new Map())),h(this,_0x11d8ec(0x290),this[_0x11d8ec(0x277)][_0x11d8ec(0x334)]()),h(this,'_roomMembers$',new d[(_0x11d8ec(0x368))]([])),h(this,_0x11d8ec(0x3d1),this[_0x11d8ec(0x209)][_0x11d8ec(0x2f0)](d[_0x11d8ec(0x415)](tt))),h(this,_0x11d8ec(0x29f),a[_0x11d8ec(0x27d)](_0x2c2f09=>{const _0xadb911=_0x11d8ec,_0x2d4d78={'eventID':m['CollaborationEvent'][_0xadb911(0x3d6)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0xadb911(0x3ed)](),'selection':Le(_0x2c2f09)}};this['_session']['send'](_0x2d4d78,this[_0xadb911(0x342)]);},st)),(this[_0x11d8ec(0x342)]=_0x41ca03,this['_session']=_0x1a88f2,this[_0x11d8ec(0x42b)]=_0x1eccd8,this[_0x11d8ec(0x335)]=_0x3ca785,this['_memberService']=_0x4f2e54,this[_0x11d8ec(0x1df)]=_0x52f0ee,this[_0x11d8ec(0x1d4)]=_0x2fa980,this[_0x11d8ec(0x2b6)]=_0x2c1c73,this['_commandService']=_0x35eb48);}get['cursorInfo'](){const _0xf89a83=_0x5a0327;return this[_0xf89a83(0x277)][_0xf89a83(0x33f)]();}get[_0x5a0327(0x28d)](){const _0x2ec58b=_0x5a0327;return this[_0x2ec58b(0x209)]['getValue']();}[_0x5a0327(0x380)](){const _0x1663f5=_0x5a0327;super[_0x1663f5(0x380)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x1663f5(0x3eb)](),this[_0x1663f5(0x209)][_0x1663f5(0x430)]([]),this[_0x1663f5(0x209)][_0x1663f5(0x3eb)]();}[_0x5a0327(0x34c)](){const _0x46e00e=_0x5a0327;this['_init']||(this[_0x46e00e(0x428)]=!0x0,this['_session'][_0x46e00e(0x438)][_0x46e00e(0x2f0)](d[_0x46e00e(0x1e6)](this['dispose$']))[_0x46e00e(0x293)](_0x5b4e5a=>{const _0x1ffa24=_0x46e00e;_0x5b4e5a===u[_0x1ffa24(0x266)]['ONLINE']?this[_0x1ffa24(0x362)]():this[_0x1ffa24(0x2c8)]();}),this['_session'][_0x46e00e(0x35c)][_0x46e00e(0x2f0)](d['takeUntil'](this[_0x46e00e(0x2a9)]))[_0x46e00e(0x293)](_0x1f2e79=>{const _0x21b9aa=_0x46e00e,_0x3c5877=_0x1f2e79['eventID'];_0x3c5877===m[_0x21b9aa(0x3b7)][_0x21b9aa(0x3d6)]&&this[_0x21b9aa(0x242)](_0x1f2e79),_0x3c5877===m[_0x21b9aa(0x3b7)][_0x21b9aa(0x2f6)]&&this[_0x21b9aa(0x251)](_0x1f2e79);}),this[_0x46e00e(0x27a)](this[_0x46e00e(0x33d)][_0x46e00e(0x441)](_0x46d04f=>{const _0x139610=_0x46e00e,_0x1a57a6=_0x46d04f[_0x139610(0x22a)];_0x1a57a6!=null&&this[_0x139610(0x3e4)]&&_0x46d04f['id']===Y[_0x139610(0x34d)]['id']&&_0x1a57a6['unitId']===this[_0x139610(0x342)]&&_0x1a57a6[_0x139610(0x336)]===!0x1&&_0x1a57a6[_0x139610(0x29e)][_0x139610(0x2c6)]>0x0&&this[_0x139610(0x29f)](_0x1a57a6[_0x139610(0x29e)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x46e00e(0x2f0)](d[_0x46e00e(0x1e6)](this[_0x46e00e(0x2a9)]))[_0x46e00e(0x293)](_0x1a243f=>{const _0x31298c=_0x46e00e;if((_0x1a243f==null?void 0x0:_0x1a243f['unitID'])!==this[_0x31298c(0x342)])return;const _0x32a927={'eventID':m[_0x31298c(0x3b7)][_0x31298c(0x3d6)],'data':_0x1a243f};this[_0x31298c(0x242)](_0x32a927);}),this[_0x46e00e(0x27a)](this[_0x46e00e(0x33d)][_0x46e00e(0x441)](_0x439cd4=>{const _0x2f8a59=_0x46e00e;if(_0x439cd4[_0x2f8a59(0x22a)]==null)return;const _0x25efdb=_0x439cd4[_0x2f8a59(0x22a)];if(_0x439cd4['id']!==Y[_0x2f8a59(0x257)]['id']||_0x25efdb[_0x2f8a59(0x2ac)]!==this['unitID'])return;const _0x207b60={'id':'doc.mutation.rich-text-editing','params':_0x25efdb},_0x2009bf=this['cursorInfo'];for(const [_0x22a999,_0x87ea6f]of _0x2009bf){const _0xd989e7={'id':_0x2f8a59(0x35d),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x87ea6f[_0x2f8a59(0x29e)]}},_0x3518da=this[_0x2f8a59(0x1d4)][_0x2f8a59(0x1c3)](_0x207b60,_0xd989e7,!0x1);if(m[_0x2f8a59(0x284)](_0x3518da))throw _0x3518da[_0x2f8a59(0x39d)];_0x2009bf[_0x2f8a59(0x421)](_0x22a999,{..._0x87ea6f,'ranges':_0x3518da['m2Prime'][_0x2f8a59(0x22a)][_0x2f8a59(0x402)]});}queueMicrotask(()=>{const _0x2cf7dc=_0x2f8a59;this[_0x2cf7dc(0x277)][_0x2cf7dc(0x430)](_0x2009bf);});})));}[_0x5a0327(0x242)](_0x5366ab){const _0x424a63=_0x5a0327;var _0x5521cf,_0x355d82;const {memberID:_0x3aa1cd,selection:_0x55b6ff}=_0x5366ab[_0x424a63(0x412)],_0x7ae357=Ze(_0x55b6ff),_0x12d7ce=(_0x355d82=(_0x5521cf=this[_0x424a63(0x3b5)][_0x424a63(0x325)](this[_0x424a63(0x342)],_0x3aa1cd))==null?void 0x0:_0x5521cf[_0x424a63(0x238)])!=null?_0x355d82:_0x424a63(0x40b),_0x4c6ba0={'color':this[_0x424a63(0x335)][_0x424a63(0x21f)](_0x3aa1cd),'name':_0x12d7ce,'ranges':_0x7ae357},_0x231313=this[_0x424a63(0x294)];_0x231313[_0x424a63(0x421)](_0x3aa1cd,_0x4c6ba0),this[_0x424a63(0x277)][_0x424a63(0x430)](_0x231313);}[_0x5a0327(0x251)](_0x43a220){const _0xf49417=_0x5a0327,{memberID:_0x4d8b96}=_0x43a220['data'],_0x2c626a=this[_0xf49417(0x294)];_0x2c626a[_0xf49417(0x3c3)](_0x4d8b96),this[_0xf49417(0x277)]['next'](_0x2c626a);}['_toggleOnline'](){const _0x19ed70=_0x5a0327;var _0x48b582;if(this[_0x19ed70(0x3e4)]=!0x0,((_0x48b582=this[_0x19ed70(0x2b6)]['getFocusedUnit']())==null?void 0x0:_0x48b582[_0x19ed70(0x36a)]())!==this[_0x19ed70(0x342)])return;const _0x31f4dc=this['_injector']['get'](Y[_0x19ed70(0x305)])['getDocRanges']();Array['isArray'](_0x31f4dc)&&_0x31f4dc['length']>0x0&&this['_updateLocalCursor'](_0x31f4dc);}[_0x5a0327(0x2c8)](){const _0x17768a=_0x5a0327;this[_0x17768a(0x3e4)]=!0x1;}};Se=et([N(0x2,a['Inject'](a['Injector'])),N(0x3,a[_0x5a0327(0x43e)](Ce)),N(0x4,a[_0x5a0327(0x43e)](u['MemberService'])),N(0x5,a[_0x5a0327(0x43e)](pe)),N(0x6,m['ITransformService']),N(0x7,a['IUniverInstanceService']),N(0x8,a[_0x5a0327(0x3d3)])],Se);var nt=Object[_0x5a0327(0x3e2)],it=(_0x34f804,_0x31517e,_0xf03773,_0x37f1df)=>{const _0x28440e=_0x5a0327;for(var _0x4d5cff=_0x37f1df>0x1?void 0x0:_0x37f1df?nt(_0x31517e,_0xf03773):_0x31517e,_0x342968=_0x34f804[_0x28440e(0x2c6)]-0x1,_0x50edf9;_0x342968>=0x0;_0x342968--)(_0x50edf9=_0x34f804[_0x342968])&&(_0x4d5cff=_0x50edf9(_0x4d5cff)||_0x4d5cff);return _0x4d5cff;},y=(_0x11ba0b,_0x4c85ed)=>(_0x40424b,_0x2d47e9)=>_0x4c85ed(_0x40424b,_0x2d47e9,_0x11ba0b);const rt=0x12c,ot=0x64,at=()=>{let _0x10724c=[],_0x4ef93d=!0x1;return _0x2d730a=>{const _0xf1e2ac=_0x396e;_0x10724c[_0xf1e2ac(0x225)](_0x2d730a),_0x4ef93d||(_0x4ef93d=!0x0,setTimeout(()=>{const _0x566405=_0xf1e2ac;_0x10724c[_0x566405(0x22d)](_0x3546fd=>_0x3546fd()),_0x10724c=[],_0x4ef93d=!0x1;}));};};let ve=class extends a[_0x5a0327(0x313)]{constructor(_0x3b15a3,_0x34b633,_0x411c98,_0x28b7f1,_0x1e1c1c,_0x45bce4,_0x2cfd6c,_0x50b143){const _0x517bb5=_0x5a0327;super(),h(this,_0x517bb5(0x3e4),!0x1),h(this,_0x517bb5(0x428),!0x1),h(this,_0x517bb5(0x277),new d['BehaviorSubject'](new Map())),h(this,_0x517bb5(0x290),this['_cursorInfo$'][_0x517bb5(0x334)]()),h(this,_0x517bb5(0x209),new d[(_0x517bb5(0x368))]([])),h(this,_0x517bb5(0x3d1),this[_0x517bb5(0x209)][_0x517bb5(0x2f0)](d[_0x517bb5(0x415)](rt))),h(this,_0x517bb5(0x29f),a[_0x517bb5(0x27d)]((_0x32a65b,_0x36e716)=>{const _0x34c214=_0x517bb5,_0x2e5f93={'eventID':m[_0x34c214(0x3b7)][_0x34c214(0x3d6)],'data':{'unitID':this[_0x34c214(0x342)],'memberID':this[_0x34c214(0x3e8)][_0x34c214(0x3ed)](),'selection':Te['serializeRangeWithSheet'](_0x32a65b,_0x36e716[_0x34c214(0x21b)])}};this['_session']['send'](_0x2e5f93,this['unitID']);},ot)),(this[_0x517bb5(0x342)]=_0x3b15a3,this[_0x517bb5(0x3e8)]=_0x34b633,this[_0x517bb5(0x42b)]=_0x411c98,this[_0x517bb5(0x335)]=_0x28b7f1,this['_memberService']=_0x1e1c1c,this['_univerInstanceService']=_0x45bce4,this['_commandService']=_0x2cfd6c,this[_0x517bb5(0x1eb)]=_0x50b143);}get[_0x5a0327(0x294)](){const _0x1f44a2=_0x5a0327;return this[_0x1f44a2(0x277)]['getValue']();}get['roomMembers'](){const _0x2d7938=_0x5a0327;return this[_0x2d7938(0x209)][_0x2d7938(0x33f)]();}[_0x5a0327(0x380)](){const _0x3f497c=_0x5a0327;super[_0x3f497c(0x380)](),this[_0x3f497c(0x277)][_0x3f497c(0x430)](new Map()),this[_0x3f497c(0x277)][_0x3f497c(0x3eb)](),this[_0x3f497c(0x209)][_0x3f497c(0x430)]([]),this['_roomMembers$'][_0x3f497c(0x3eb)]();}['init'](){const _0x448fc6=_0x5a0327;this[_0x448fc6(0x428)]||(this[_0x448fc6(0x428)]=!0x0,this[_0x448fc6(0x3e8)][_0x448fc6(0x438)][_0x448fc6(0x2f0)](d[_0x448fc6(0x1e6)](this['dispose$']))[_0x448fc6(0x293)](_0x2857cb=>{const _0x3dc9d6=_0x448fc6;_0x2857cb===u[_0x3dc9d6(0x266)][_0x3dc9d6(0x3c5)]?this[_0x3dc9d6(0x362)]():this[_0x3dc9d6(0x2c8)]();}),this[_0x448fc6(0x3e8)][_0x448fc6(0x35c)]['pipe'](d[_0x448fc6(0x1e6)](this[_0x448fc6(0x2a9)]))[_0x448fc6(0x293)](_0x150904=>{const _0x238b9b=_0x448fc6,_0x5e9631=_0x150904[_0x238b9b(0x3fa)];_0x5e9631===m['CollaborationEvent'][_0x238b9b(0x3d6)]&&this[_0x238b9b(0x242)](_0x150904),_0x5e9631===m[_0x238b9b(0x3b7)][_0x238b9b(0x2f6)]&&this['_onCursorDelete'](_0x150904);}),this[_0x448fc6(0x26f)](),this[_0x448fc6(0x27a)](this[_0x448fc6(0x33d)]['onCommandExecuted'](_0x769065=>{const _0xd45a80=_0x448fc6;if(this['_online']&&_0x769065['id']===I[_0xd45a80(0x409)]['id']&&_0x769065[_0xd45a80(0x22a)][_0xd45a80(0x2ac)]===this[_0xd45a80(0x342)]){const _0x1ebf69=_0x769065[_0xd45a80(0x22a)];this[_0xd45a80(0x29f)](_0x1ebf69[_0xd45a80(0x394)],_0x1ebf69[_0xd45a80(0x310)][0x0]);}})));}[_0x5a0327(0x242)](_0x393226){const _0xcb734=_0x5a0327;var _0x28d506,_0x752713;const {memberID:_0x504fb0,selection:_0x4cbdcf}=_0x393226[_0xcb734(0x412)],{sheetName:_0x1ecc1a,range:_0x41f87e}=Te[_0xcb734(0x1f5)](_0x4cbdcf),_0x16f7a={'name':(_0x752713=(_0x28d506=this[_0xcb734(0x3b5)][_0xcb734(0x325)](this[_0xcb734(0x342)],_0x504fb0))==null?void 0x0:_0x28d506[_0xcb734(0x238)])!=null?_0x752713:'Unknown\x20user','range':this['_getMergeRange'](_0x1ecc1a,_0x41f87e),'sheetID':_0x1ecc1a,'color':this[_0xcb734(0x335)][_0xcb734(0x21f)](_0x504fb0),'selection':_0x4cbdcf},_0x5b552d=this[_0xcb734(0x294)];_0x5b552d[_0xcb734(0x421)](_0x504fb0,_0x16f7a),this[_0xcb734(0x277)][_0xcb734(0x430)](_0x5b552d);}[_0x5a0327(0x251)](_0x4b9ab5){const _0x42dfcf=_0x5a0327,{memberID:_0x333236}=_0x4b9ab5[_0x42dfcf(0x412)],_0xfdbdfc=this[_0x42dfcf(0x294)];_0xfdbdfc[_0x42dfcf(0x3c3)](_0x333236),this['_cursorInfo$'][_0x42dfcf(0x430)](_0xfdbdfc);}[_0x5a0327(0x3cc)](_0x5a7c74,_0x49f004){const _0xf8db39=_0x5a0327;var _0x35c9eb,_0x29d78a;const _0x4b82b8=(_0x29d78a=(_0x35c9eb=this[_0xf8db39(0x2b6)][_0xf8db39(0x38e)](this[_0xf8db39(0x342)]))==null?void 0x0:_0x35c9eb[_0xf8db39(0x2a1)](_0x5a7c74))==null?void 0x0:_0x29d78a[_0xf8db39(0x426)]();return(_0x4b82b8==null?void 0x0:_0x4b82b8[_0xf8db39(0x254)](_0x423155=>a[_0xf8db39(0x2a0)][_0xf8db39(0x2bc)](_0x423155,_0x49f004)))||_0x49f004;}[_0x5a0327(0x26f)](){const _0x3abb75=_0x5a0327,_0x236ae2=new a[(_0x3abb75(0x3b3))](),_0x465e96=at(),_0x336960=()=>{const _0x545fa6=_0x3abb75;_0x236ae2['dispose']();const _0x152b14=(_0x2325a0,_0x57c962,_0x23b93f,_0xf000d5)=>{const _0x383d77=_0x396e;let _0x3ffd48=[];switch(_0x2325a0['id']){case I[_0x383d77(0x416)][_0x383d77(0x28c)]:{_0x3ffd48=I['handleDeleteRangeMoveLeft'](_0x2325a0,_0xf000d5);break;}case I[_0x383d77(0x416)][_0x383d77(0x2c0)]:{_0x3ffd48=I[_0x383d77(0x1cf)](_0x2325a0,_0xf000d5);break;}case I[_0x383d77(0x416)][_0x383d77(0x219)]:{_0x3ffd48=I['handleInsertCol'](_0x2325a0,_0xf000d5);break;}case I[_0x383d77(0x416)][_0x383d77(0x40f)]:{_0x3ffd48=I[_0x383d77(0x252)](_0x2325a0,_0xf000d5);break;}case I[_0x383d77(0x416)][_0x383d77(0x424)]:{_0x3ffd48=I[_0x383d77(0x366)](_0x2325a0,_0xf000d5);break;}case I[_0x383d77(0x416)]['InsertRowCommandId']:{_0x3ffd48=I[_0x383d77(0x3a0)](_0x2325a0,_0xf000d5);break;}case I[_0x383d77(0x416)][_0x383d77(0x38c)]:{_0x3ffd48=I[_0x383d77(0x221)](_0x2325a0,_0xf000d5);break;}case I[_0x383d77(0x416)][_0x383d77(0x31f)]:{_0x3ffd48=I[_0x383d77(0x359)](_0x2325a0,_0xf000d5);break;}case I[_0x383d77(0x416)]['RemoveRowCommandId']:{_0x3ffd48=I['handleIRemoveRow'](_0x2325a0,_0xf000d5);break;}}const _0x547f91=I[_0x383d77(0x1d7)](_0x3ffd48,_0xf000d5),_0x5f3894=this[_0x383d77(0x294)][_0x383d77(0x210)](_0x57c962);if(_0x5f3894&&_0x547f91){const _0x5c51f4={..._0x5f3894,'range':_0x547f91};this[_0x383d77(0x294)][_0x383d77(0x421)](_0x57c962,_0x5c51f4),_0x465e96(()=>{const _0x2b75a4=_0x383d77,_0x563d7a=this['_refRangeService'][_0x2b75a4(0x3ba)](_0x547f91,_0x23d2ae=>(_0x563d7a[_0x2b75a4(0x380)](),_0x152b14(_0x23d2ae,_0x57c962,_0x23b93f,_0x547f91)));_0x236ae2[_0x2b75a4(0x40c)](_0x563d7a);});}return{'redos':[],'undos':[]};};this[_0x545fa6(0x294)][_0x545fa6(0x22d)]((_0xa7c15,_0x3d5926)=>{const _0x262251=_0x545fa6,{range:_0x402660,sheetID:_0x2a148a}=_0xa7c15,_0x58f19d=this[_0x262251(0x1eb)]['registerRefRange'](_0x402660,_0x25373d=>(_0x58f19d[_0x262251(0x380)](),_0x152b14(_0x25373d,_0x3d5926,_0x2a148a,_0x402660)));_0x236ae2[_0x262251(0x40c)](_0x58f19d);});};this[_0x3abb75(0x27a)](a[_0x3abb75(0x2ba)](this['_cursorInfo$']['subscribe'](()=>{_0x336960();})));}[_0x5a0327(0x362)](){const _0x21709d=_0x5a0327;var _0x49c1fb,_0xfabc9e;if(this['_online']=!0x0,((_0x49c1fb=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x49c1fb[_0x21709d(0x36a)]())!==this[_0x21709d(0x342)])return;const _0x2e8aac=(_0xfabc9e=this['_injector']['get'](I['SheetsSelectionsService'])[_0x21709d(0x1c7)]())==null?void 0x0:_0xfabc9e[0x0],_0x58d846=this[_0x21709d(0x2b6)]['getCurrentUnitForType'](a[_0x21709d(0x204)][_0x21709d(0x352)])[_0x21709d(0x2d5)]();_0x2e8aac&&_0x58d846&&this[_0x21709d(0x29f)](_0x58d846[_0x21709d(0x1c9)](),_0x2e8aac);}[_0x5a0327(0x2c8)](){const _0x3bc060=_0x5a0327;this[_0x3bc060(0x3e4)]=!0x1;}};ve=it([y(0x2,a[_0x5a0327(0x43e)](a[_0x5a0327(0x1c0)])),y(0x3,a[_0x5a0327(0x43e)](Ce)),y(0x4,a[_0x5a0327(0x43e)](u[_0x5a0327(0x345)])),y(0x5,a[_0x5a0327(0x377)]),y(0x6,a[_0x5a0327(0x3d3)]),y(0x7,a[_0x5a0327(0x43e)](I['RefRangeService']))],ve);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x35d094,_0xd1b6cb,_0xa9bb8b,_0x108d9d)=>{for(var _0xd1e669=_0x108d9d>0x1?void 0x0:_0x108d9d?ct(_0xd1b6cb,_0xa9bb8b):_0xd1b6cb,_0xe083d0=_0x35d094['length']-0x1,_0x15a613;_0xe083d0>=0x0;_0xe083d0--)(_0x15a613=_0x35d094[_0xe083d0])&&(_0xd1e669=_0x15a613(_0xd1e669)||_0xd1e669);return _0xd1e669;},ie=(_0x33a63b,_0xf12be6)=>(_0x3e369a,_0x4bffc1)=>_0xf12be6(_0x3e369a,_0x4bffc1,_0x33a63b);let x=class extends a[_0x5a0327(0x313)]{constructor(_0x3c1707,_0x134adf,_0x18c94d){const _0x59cb0c=_0x5a0327;super(),h(this,_0x59cb0c(0x2ed),new Map()),h(this,_0x59cb0c(0x2ee),new d[(_0x59cb0c(0x400))]()),(this[_0x59cb0c(0x2b6)]=_0x3c1707,this[_0x59cb0c(0x42b)]=_0x134adf,this[_0x59cb0c(0x42c)]=_0x18c94d,this[_0x59cb0c(0x428)]());}[_0x5a0327(0x380)](){const _0x3c529b=_0x5a0327;super['dispose'](),this[_0x3c529b(0x2ee)][_0x3c529b(0x3eb)](),this[_0x3c529b(0x2ed)][_0x3c529b(0x22d)](_0x5a67ab=>_0x5a67ab[_0x3c529b(0x380)]());}[_0x5a0327(0x420)](_0x47588c){const _0x262197=_0x5a0327;return this[_0x262197(0x2ed)][_0x262197(0x203)](_0x47588c)?this['_entities'][_0x262197(0x210)](_0x47588c)[_0x262197(0x290)]:this[_0x262197(0x2ee)][_0x262197(0x2f0)](d['filter'](_0x2a2bfb=>_0x2a2bfb[_0x262197(0x342)]===_0x47588c),d[_0x262197(0x343)](_0x2f8ed6=>_0x2f8ed6[_0x262197(0x290)]));}['_init'](){const _0x3cf3c7=_0x5a0327;this[_0x3cf3c7(0x2b6)][_0x3cf3c7(0x2d1)](a[_0x3cf3c7(0x204)][_0x3cf3c7(0x352)])['pipe'](d[_0x3cf3c7(0x1e6)](this[_0x3cf3c7(0x2a9)]))[_0x3cf3c7(0x293)](async _0x198de7=>{const _0x1749bb=_0x3cf3c7,_0x41a243=_0x198de7[_0x1749bb(0x36a)](),_0x64f86=await this[_0x1749bb(0x37a)](_0x41a243);this[_0x1749bb(0x2ee)]['next'](_0x64f86),this[_0x1749bb(0x2ed)][_0x1749bb(0x421)](_0x41a243,_0x64f86);}),this[_0x3cf3c7(0x2b6)][_0x3cf3c7(0x2d1)](a[_0x3cf3c7(0x204)][_0x3cf3c7(0x26b)])['pipe'](d['takeUntil'](this[_0x3cf3c7(0x2a9)]))['pipe'](d['filter'](_0x3d9b2a=>!_0x3d9b2a[_0x3cf3c7(0x36a)]()[_0x3cf3c7(0x39a)]('__')))[_0x3cf3c7(0x293)](async _0x3a3647=>{const _0x5e3056=_0x3cf3c7,_0x3d2724=_0x3a3647[_0x5e3056(0x36a)](),_0x4f3c57=await this[_0x5e3056(0x32f)](_0x3d2724);this[_0x5e3056(0x2ee)][_0x5e3056(0x430)](_0x4f3c57),this[_0x5e3056(0x2ed)][_0x5e3056(0x421)](_0x3d2724,_0x4f3c57);}),d['merge'](this[_0x3cf3c7(0x2b6)]['getTypeOfUnitDisposed$'](a[_0x3cf3c7(0x204)]['UNIVER_DOC']),this[_0x3cf3c7(0x2b6)][_0x3cf3c7(0x240)](a[_0x3cf3c7(0x204)][_0x3cf3c7(0x352)]))[_0x3cf3c7(0x2f0)](d[_0x3cf3c7(0x1e6)](this[_0x3cf3c7(0x2a9)]))[_0x3cf3c7(0x293)](_0x50a8c9=>{const _0x28eeed=_0x3cf3c7,_0x38466a=_0x50a8c9[_0x28eeed(0x36a)](),_0x3229a0=this[_0x28eeed(0x2ed)][_0x28eeed(0x210)](_0x38466a);_0x3229a0&&(_0x3229a0['dispose'](),this[_0x28eeed(0x2ed)][_0x28eeed(0x3c3)](_0x38466a));});}async['_startSheetCollabCursor'](_0x4fe203){const _0x16750b=_0x5a0327,_0x1763cc=await this[_0x16750b(0x42c)][_0x16750b(0x2fc)](_0x4fe203),_0x34f482=this[_0x16750b(0x42b)]['createInstance'](ve,_0x4fe203,_0x1763cc);return _0x34f482[_0x16750b(0x34c)](),_0x34f482;}async[_0x5a0327(0x32f)](_0x41c332){const _0x5be83e=_0x5a0327,_0x3aab8b=await this[_0x5be83e(0x42c)][_0x5be83e(0x2fc)](_0x41c332),_0x269fa7=this[_0x5be83e(0x42b)][_0x5be83e(0x3c4)](Se,_0x41c332,_0x3aab8b);return _0x269fa7[_0x5be83e(0x34c)](),_0x269fa7;}};x=lt([ie(0x0,a[_0x5a0327(0x377)]),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x5a0327(0x43e)](u[_0x5a0327(0x32d)]))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _0x4a86(){const _0x5dc708=['createElement','_startSheetCollabCursor','collaboration.single-unit.warning','RegularPolygon','hasOwnProperty','runId','DOC_RANGE_TYPE','dispose','Disposable','YUUMI_URL_COL_OUT_OF_RANGE','getCurrentRevOfUnit','prototype','arc','_getSheetObject','onStarting','_getAnchorBounding','_initEntityListener','_transformUndoRedoStack','_initStatusComponent','MoveRangeCommandId','toStringTag','getUniverSheetInstance','OTHER_CLIENT_EDITING','throttleTime','Tools','hide','_backgroundColor','subUnitId','@univerjs/sheets','_cursors','univer-offline','on-line-single','DesktopCollaborationStatusDisplayController','startsWith','ALREADY_EXISTS','_httpService','error','...','saveImage','handleInsertRow','xlink:href','0\x200\x2016\x2016','redoState','SOCKET_FAILED_RETRY','application/json','defs','ThemeService','_transformHistoryAndStateStack','loadOfflineData','unit','transformIMECache','key','toRgbString','ILocalStorageService','focused$','OnLineSingle','NodePositionConvertToCursor','YUUMI_RATE_OVER_LIMIT','DisposableCollection','LICENSE_IMPORT_SIZE_EXCEEDED','_memberService','Workbook','CollaborationEvent','_removeCollabCursors','PY_RUNTIME_SCRIPT_ERROR','registerRefRange','_textBubble','imageSourceType','IBeforeCloseService','_handleHover','LICENSE_DISTRO_REJECTED','_collaborationUIEventService','startRow','getStateCache','delete','createInstance','ONLINE','_transformPreviousActiveRange','attrs','map','height','getSkeleton','_send','_getMergeRange','COLORS','column','defIds','OTHER_CLIENTS_EDITING','roomMembers$','engine','ICommandService','beginPath','ITransformService','UPDATE_CURSOR','_config','ACTIVE_UNIT_EVENT_CHANNEL','490384kjHQbh','_anchorDot','searchParams','_registerDependencies','_disabled','CHANGESET_REVISION_CONFILICT','getCoordByCell','IUIPartsService','getSheetObject','getOwnPropertyDescriptor','removeParam','_online','transformMutationsWithChangeset','entityInit$','sheetID','_session','mergeOverrideWithDependencies','width','complete','_handleJoinEvent','getMemberID','Shape','UnitStatus','_logService','editingUnit','concat','assign','_updateURLWithCurrentState','addEventListener','enableLocalCache','486836PBxMXq','TRANSFORM_CHANGE_OBSERVABLE_TYPE','executeCommand','eventID','entries','@univerjs/engine-formula','getUnhiddenWorksheets','CollaborationDataLoaderController','ticket','Subject','_unitOnClients','textRanges','_initEvent','_configService','colorChannel1','off-line-single','restore','lineTo','SetSelectionsOperation','JOIN_ROOM_FAILED','Unknown\x20user','add','IMessageService','collab-client.tooltip.reconnect','InsertRangeMoveDownCommandId','getColor','@univerjs/core','data','onlineStatusIcon','off-line-single_clip0_910_343','debounceTime','EffectRefRangId','PERMISSION_DENIED','_assignedColors','tag','RemoteUniscriptService','override','NOT_FOUND','NOT_COLLAB','forwardRef','url(#off-line-single_clip0_910_343)','getCollabCursors$','set','#FFF','with','InsertRangeMoveRightCommandId','collaboration.closeRoom','getMergeData','location','_init','_collabCursorState$','_handleHeartbeatEvent','_injector','_collabSessionService','_saveCache','_hovered','IConfigService','next','show','UNRECOGNIZED','replaceState','use','font','univer-flex\x20univer-items-center','addClipboardHook','sessionStatus$','collabStatus.syncing','SHEET_VIEWPORT_KEY','sheetId','_instanceService','uni.network.url-service','Inject','Error','triggerDblclick','onCommandExecuted','includes','_docTransformSelectionsService','saveOfflineData','unshift','popstate','YUUMI_UNABLE_LOAD_URL','Injector','actions','_getSessionTicket','transformMutation','IImageIoService','getCurrent','OFFLINE','getCurrentSelections','_color','getSheetId','getParam','INotificationService','BuiltInUIPart','setAlpha','getActiveRange','handleDeleteRangeMoveUp','_urlService','currentTheme$','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','some','_transformService','subscribeEvent','syncEditingCollabCursor','runRefRangeMutations','IRemoteInstanceService','@univerjs-pro/collaboration-client','_handleEvent','idSuffix','startColumn','[RemoteUniscriptService]:\x20no\x20focused\x20unit','path','_syncEditingCollabCursorService','_beforeCloseService','ISocketService','top','_document','univerjs-icon\x20univerjs-icon-','getConfig','takeUntil','fromEventSubject','pluginName','getRenderById','_shapes','_refRangeService','DocCollaborationEntity','getCollabEntity$','_eventUnsubscribe','div','_cursor','save','trim','disposeUnit','5486144FGMmme','deserializeRangeWithSheet','_draw','_updateSubUnitFromURLParams','_heartbeatTimer','_cachedData','_sheetSkeletonManagerService','3gpoLYQ','transformStateCache','onPointerEnter$','LICENSE_EXPORT_SIZE_EXCEEDED','isActive','_scene','CollaborationUIEventId','indexOf','has','UniverInstanceType','Failed','@univerjs/rpc','SYNCED','blue400','_roomMembers$','body','getUnitStatus$','getAncestorScale','APPLY_NON_SEQUENTIAL_REVISION','SOCKET_FAILED','BrowserCollaborationSocketService','get','collabCursorState$','LOCAL_CACHE_INTERVAL_KEY','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','filter','collab-text-range-','#fff','_removeClearOtherTimer','1359459tdoFQY','InsertColCommandId','CollaborationController','range','fillRule','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_registerRenderDependencies','assignAColorForMemberID','_getSaveTimeout','handleMoveRange','_labelPosition','size','INTERNAL_ERROR','push','_ensureSubject','CollaborationStatus','url(#$1','getUndoRedoMutationParamsCache','params','SheetSkeletonManagerService','_status$','forEach','_drawAnchor','APPLY_REJECT','replace','CollaborationStatusDisplay','_drawTextRange','CONNECTOR_DATA_TOO_LARGE','min','LocaleService','updateOfflineData','ISnapshotServerService','name','_handleLeaveEvent','call','SNAPSHOT_INVALID_SNAPSHOT','combineLatest','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','DependentOn','transformByState','getTypeOfUnitDisposed$','UNAUTHENTICATED','_onCursorUpdate','collaboration-client-ui.config','propertyIsEnumerable','makeDirty','code','@univerjs-pro/collaboration','UniverCollaborationClientUIPlugin','children','jsx','_selfUnitIDs','_colorIndex','session.will-retry','isTransformMutationsWithChangesetSuccess','FETCH_MISS','RevisionService','_onCursorDelete','handleInsertRangeMoveDown','runOnServer','find','session.collaboration-timeout','executionId','RichTextEditingMutation','NO_OTHER_CLIENTS_EDITING','onPointerMove$','_drawRectRange','CommandType','setItem','FromArray','HTTPService','clearTimeout','rgba(255,\x20255,\x20255,\x200.01)','_context','@univerjs/design','getRangePointData','flatMap','_localeService','SessionStatus','CollaborationUIEventService','generateRandomId','Tooltip','_imageIoService','UNIVER_DOC','609944TmdCcO','_setupBeforeClosingHandler','_clearOtherTimers','_onRefRangeChange','1894710iDWulg','mutations','transform','_updateCollabCursors','SetWorksheetActivateCommand','_themeService','_name','_cursorInfo$','@univerjs/docs','fillStyle','disposeWithMe','endColumn','clearInterval','debounce','currentSkeleton$','useRef','memberID','_localCacheService','_initCommandExecutedListener','deepClone','isTransformMutationFailure','_initStatusListener','_doCreateSocket','from','_collabCursorController','_render','_lastPointer','labelPosition','DeleteRangeMoveLeftCommandId','roomMembers','url(#on-line-single_clip0_910_349)','_scheduleClearOtherTimer','cursorInfo$','backgroundColor','distinctUntilChanged','subscribe','cursorInfo','setStateCache','fill','AWAITING_WITH_PENDING','subunit','setParam','setActiveRange','_setupSubUnitSync','DocIMEInputManagerService','registerComponent','ranges','_updateLocalCursor','Rectangle','getSheetBySheetId','collabStatus.offline','split','whenReady','currentColor','_docTransformStateCacheService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','3875350plRUnK','dispose$','stringify','collabStatus.notCollab','unitId','onlineStatus','string','defineProperty','univer-online','@univerjs/docs-ui','m1Prime','setConfig','@univerjs/sheets-ui','verdancy600','_univerInstanceService','_docClipboardService','online','UniverIcon','toDisposable','color','contains','clsx','search','useCallback','DeleteRangeMoveUpCommandId','reconnect','getItem','m2Prime','WebBrowserSingleActiveUnitService','drawWith','length','addObjects','_toggleOffline','Warning','IURLService','SetDocZoomRatioOperation','random','newValue','ILogService','history','parse','getTypeOfUnitAdded$','createIdentifier','hovered','row','getActiveSheet','_scheduleHeartbeat','registerBeforeClose','MessageType','function','apply','addObject','TEXT_RANGE_LAYER_INDEX','_collaborationController','docStateChange$','CLOSE_ROOM','displayName','svg','selection','type','MUTATION','react/jsx-runtime','_docSyncEditingCollabCursorService','findNodePositionByCharIndex','DocSkeletonManagerService','replaceDocRanges','getFocusedUnit','setUndoRedoMutationParamsCache','ColorKit','_entities','_entityInit$','UNDEFINED','pipe','text','_anchor','_hover','_docStateChangeManagerService','red300','USERS_LEAVE','onMouseMove','0\x200\x2017\x2016','purple300','_notificationService','collab-text-anchor-','requireSession','Rect','skeleton','jiqing500','_scheduleSaving','_getScale','evenodd','fillText','_localStorageService','DocSelectionManagerService','Module','createSocket','values','round','_refreshCollabCursors','all','post','mapTo','transformSelections','exhaustSavingTask','selections','endRow','_range','RxDisposable','APPLY_REVISION_CONFILICT','onTransformChange$','WebURLService','resize','collabStatus.synced','black','6rvMkuu','_saveTaskMap','none','urlChange$','collabStatus.conflict','RemoveColCommandId','pushState','fromEvent','NodePositionConvertToRectRange','result','rxjs','getMember','SNAPSHOT_HAS_BEEN_REMOVED','APPLY_DUPLICATED','LICENSE_MAX_UNITS_EXCEEDED','INVALID_ARGUMENT','then','_revisionService','_unitStatus','CollaborationSessionService','wsSessionTicketUrl','_startDocCollabCursor','gold400','_cursorShapes','Optional','useDependency','asObservable','_colorAssignService','isEditing','Vector2','_initResize','sessionTicket','1em','toString','closePath','_commandService','saveTaskMap','getValue','connectInjector','setInterval','unitID','switchMap','TEXT','MemberService','on-line-single_clip0_910_349','getCellPositionByOffset','icon','setTimeout','collabStatus.fetchMiss','bottom','init','SetTextSelectionsOperation','UniverCollaborationClientPlugin','onlineStatusTitle','unsubscribe','_messageService','UNIVER_SHEET','[CollaborationDataLoaderController]','IDocClipboardService','_renderManagerService','_docTransformIMECacheService','getDocRanges','transformRemoteChangeset','handleIRemoveCol','registerRenderModule','source','event$','doc.mutation.rich-text-editing','AWAITING','setShapeProps','jsxs','onPointerLeave$','_toggleOnline','univer-online-status-title','className','measureText','handleInsertRangeMoveRight','_hideTimer','BehaviorSubject','mask','getUnitId','undoState','RECT','react','CONFLICT','rxjs/operators','_id','getLocalCacheKey','_dataLoaderService','15lwODWb','onLocalMutation','ENSURE_SNAPSHOT_EXECUTION','_docSkeletonManagerService','IUniverInstanceService','href'];_0x4a86=function(){return _0x5dc708;};return _0x4a86();}function _t(_0x2596bb,_0x31d00c){const _0x34ee97=_0x5a0327;let {radius:_0x21e15a,width:_0x120d2c,height:_0x507593}=_0x31d00c;_0x21e15a=_0x21e15a!=null?_0x21e15a:0x0,_0x120d2c=_0x120d2c!=null?_0x120d2c:0x1e,_0x507593=_0x507593!=null?_0x507593:0x1e;let _0x4b0d8c=0x0,_0x143f87=0x0,_0x5513ae=0x0;_0x4b0d8c=_0x143f87=_0x5513ae=Math['min'](_0x21e15a,_0x120d2c/0x2,_0x507593/0x2),_0x2596bb[_0x34ee97(0x3d4)](),_0x2596bb['moveTo'](_0x4b0d8c,0x0),_0x2596bb[_0x34ee97(0x408)](_0x120d2c-_0x143f87,0x0),_0x2596bb[_0x34ee97(0x385)](_0x120d2c-_0x143f87,_0x143f87,_0x143f87,Math['PI']*0x3/0x2,0x0,!0x1),_0x2596bb['lineTo'](_0x120d2c,_0x507593-_0x5513ae),_0x2596bb[_0x34ee97(0x385)](_0x120d2c-_0x5513ae,_0x507593-_0x5513ae,_0x5513ae,0x0,Math['PI']/0x2,!0x1),_0x2596bb[_0x34ee97(0x408)](0x0,_0x507593),_0x2596bb['lineTo'](0x0,_0x4b0d8c),_0x2596bb[_0x34ee97(0x385)](_0x4b0d8c,_0x4b0d8c,_0x4b0d8c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2596bb[_0x34ee97(0x33c)](),_0x31d00c[_0x34ee97(0x296)]&&(_0x2596bb['save'](),_0x2596bb['fillStyle']=_0x31d00c[_0x34ee97(0x296)],_0x31d00c[_0x34ee97(0x21c)]===_0x34ee97(0x302)?_0x2596bb[_0x34ee97(0x296)](_0x34ee97(0x302)):_0x2596bb[_0x34ee97(0x296)](),_0x2596bb[_0x34ee97(0x407)]());}class te extends p[_0x5a0327(0x3ee)]{constructor(_0x22f4b8,_0x3a8283){const _0x14bcb8=_0x5a0327;super(_0x22f4b8,_0x3a8283),h(this,_0x14bcb8(0x2bb)),h(this,_0x14bcb8(0x2f1)),(this[_0x14bcb8(0x2bb)]=_0x3a8283==null?void 0x0:_0x3a8283['color'],this[_0x14bcb8(0x2f1)]=_0x3a8283==null?void 0x0:_0x3a8283[_0x14bcb8(0x2f1)]);}static['drawWith'](_0xdd590b,_0x155bd2){const _0x4c7204=_0x5a0327,{text:_0x582736,color:_0x449178}=_0x155bd2;_0xdd590b[_0x4c7204(0x1f1)](),_0xdd590b[_0x4c7204(0x435)]=_0x4c7204(0x213);const _0x163c4c=_0xdd590b[_0x4c7204(0x365)](_0x582736)['width'],_0x19af73=Math[_0x4c7204(0x234)](_0x163c4c+0x2*re,De);_t(_0xdd590b,{'height':K,'radius':0x4,'width':_0x19af73,'fill':_0x449178}),_0xdd590b[_0x4c7204(0x279)]=_0x4c7204(0x422);const _0x55c281=re,_0x63471c=K-ht,_0x36ee5a=De-0x2*re;if(_0x163c4c>_0x36ee5a){let _0x32a075='',_0x4c3d2d=0x0;for(const _0x396882 of _0x582736){const _0x57f807=_0xdd590b[_0x4c7204(0x365)](_0x396882)['width'];if(_0x4c3d2d+_0x57f807<=_0x36ee5a-_0xdd590b['measureText'](_0x4c7204(0x39e))[_0x4c7204(0x3ea)])_0x32a075+=_0x396882,_0x4c3d2d+=_0x57f807;else{_0x32a075+=_0x4c7204(0x39e);break;}}_0xdd590b[_0x4c7204(0x303)](_0x32a075,_0x55c281,_0x63471c);}else _0xdd590b['fillText'](_0x582736,_0x55c281,_0x63471c);_0xdd590b[_0x4c7204(0x407)]();}['_draw'](_0x199f32){const _0x313e3e=_0x5a0327;te[_0x313e3e(0x2c5)](_0x199f32,this);}}const oe=_0x5a0327(0x2fb),ut=_0x5a0327(0x215),dt='collab-rect-range-',B=0x6,ft=1.5,ae=0x4,St=1.5,vt=_0x5a0327(0x260);class Ue{constructor(_0x8e2ad0,_0x37fef3,_0x1d862f,_0x3e2f19){const _0xa55d04=_0x5a0327;h(this,_0xa55d04(0x1ea),[]),h(this,_0xa55d04(0x2f2),null),h(this,_0xa55d04(0x3bb),null),h(this,_0xa55d04(0x3da),null),h(this,'_hideTimer',null),h(this,_0xa55d04(0x1ee),null),(this[_0xa55d04(0x1f0)]=_0x8e2ad0,this[_0xa55d04(0x200)]=_0x37fef3,this['_docSkeleton']=_0x1d862f,this[_0xa55d04(0x1e3)]=_0x3e2f19,this[_0xa55d04(0x289)]());}set['_hover'](_0x327ee2){const _0x5c9001=_0x5a0327;_0x327ee2?(this['_anchorDot']&&this['_anchorDot'][_0x5c9001(0x392)](),this[_0x5c9001(0x3bb)]&&this[_0x5c9001(0x3bb)][_0x5c9001(0x431)]()):(this[_0x5c9001(0x3da)]&&this[_0x5c9001(0x3da)][_0x5c9001(0x431)](),this[_0x5c9001(0x3bb)]&&this[_0x5c9001(0x3bb)][_0x5c9001(0x392)]());}['dispose'](){const _0xc25b9a=_0x5a0327;for(const _0x516351 of this[_0xc25b9a(0x1ea)])_0x516351[_0xc25b9a(0x380)]();this['_textBubble']&&this[_0xc25b9a(0x3bb)][_0xc25b9a(0x380)](),this[_0xc25b9a(0x3da)]&&this[_0xc25b9a(0x3da)][_0xc25b9a(0x380)](),this[_0xc25b9a(0x2f2)]&&this[_0xc25b9a(0x2f2)][_0xc25b9a(0x380)](),this[_0xc25b9a(0x1ee)]&&this['_eventUnsubscribe']();}['_render'](){const _0x3758be=_0x5a0327;var _0x4b6085;const {_docSkeleton:_0xd6a994,_document:_0x4414cd}=this,{color:_0x2c73d6,name:_0x5d7592,ranges:_0x2581e3}=this[_0x3758be(0x1f0)],_0x25ab27=_0x4414cd['getOffsetConfig'](),{docsLeft:_0x399557,docsTop:_0x148bbc}=_0x25ab27,_0x5c85b1=new b[(_0x3758be(0x3b1))](_0x25ab27,_0xd6a994);for(const {startOffset:_0x4aabf9,endOffset:_0x557ab1,rangeType:_0x44a38f,segmentId:_0x2db248,segmentPage:_0x3e7ea9,collapsed:_0x1df29c,isActive:_0x18efee}of _0x2581e3){const _0x253c01=_0xd6a994[_0x3758be(0x2e7)](_0x4aabf9,!0x0,_0x2db248,_0x3e7ea9);let _0x2c491a=_0xd6a994[_0x3758be(0x2e7)](_0x557ab1,!0x0,_0x2db248,_0x3e7ea9);if(_0x2c491a==null&&(_0x2c491a=_0xd6a994[_0x3758be(0x2e7)](_0x557ab1-0x1,!0x1,_0x2db248,_0x3e7ea9)),_0x18efee){const {contentBoxPointGroup:_0x509b01}=_0x5c85b1['getRangePointData'](_0x2c491a,_0x2c491a);if(_0x509b01[_0x3758be(0x2c6)]===0x0)continue;this[_0x3758be(0x22e)](_0x2c73d6,_0x509b01,_0x399557,_0x148bbc,_0x5d7592),this['_eventUnsubscribe']=this[_0x3758be(0x3be)]();}if(_0x253c01&&_0x2c491a){if(_0x44a38f===a[_0x3758be(0x37f)][_0x3758be(0x36c)]){const _0x121fb0=new b[(_0x3758be(0x322))](_0x25ab27,_0xd6a994),{pointGroup:_0x2443b2}=(_0x4b6085=_0x121fb0[_0x3758be(0x263)](_0x253c01,_0x2c491a))!=null?_0x4b6085:{};if(_0x2443b2==null||_0x2443b2['length']===0x0)continue;this[_0x3758be(0x25a)](_0x2c73d6,_0x2443b2,_0x399557,_0x148bbc);}else{if(!_0x1df29c){const {borderBoxPointGroup:_0x31464d}=_0x5c85b1[_0x3758be(0x263)](_0x253c01,_0x2c491a);if(_0x31464d[_0x3758be(0x2c6)]===0x0)continue;this['_drawTextRange'](_0x2c73d6,_0x31464d,_0x399557,_0x148bbc);}}}}}[_0x5a0327(0x22e)](_0x18aa7f,_0x18397a,_0xecf96a,_0x237144,_0x358464){const _0x1b5b4f=_0x5a0327,_0x3d9fd4=this[_0x1b5b4f(0x388)](_0x18397a),{left:_0x308e10,top:_0x57f3a7,height:_0x28143e}=_0x3d9fd4,_0x5c3398=this[_0x1b5b4f(0x301)](),_0x3544e5=St/_0x5c3398,_0x54e02b=new p['Rect'](oe+a[_0x1b5b4f(0x391)][_0x1b5b4f(0x268)](B),{'left':_0x308e10+_0xecf96a-_0x3544e5,'top':_0x57f3a7+_0x237144,'height':_0x28143e,'width':ft,'fill':_0x18aa7f||p['getColor'](a[_0x1b5b4f(0x3cd)][_0x1b5b4f(0x319)],0x0),'strokeWidth':_0x3544e5,'stroke':vt,'evented':!0x0});this[_0x1b5b4f(0x2f2)]=_0x54e02b,this[_0x1b5b4f(0x200)][_0x1b5b4f(0x2db)](_0x54e02b,b[_0x1b5b4f(0x2dc)]);const _0x4ad9fe=new p[(_0x1b5b4f(0x2fd))](oe+a[_0x1b5b4f(0x391)][_0x1b5b4f(0x268)](B),{'left':_0x308e10+_0xecf96a-_0x3544e5,'top':_0x57f3a7+_0x237144-ae/0x2,'height':ae,'width':ae,'fill':_0x18aa7f||p[_0x1b5b4f(0x410)](a[_0x1b5b4f(0x3cd)][_0x1b5b4f(0x319)],0x0),'strokeWidth':0x0,'stroke':_0x18aa7f||p[_0x1b5b4f(0x410)](a[_0x1b5b4f(0x3cd)][_0x1b5b4f(0x319)],0x0),'evented':!0x1});this['_anchorDot']=_0x4ad9fe,this['_scene'][_0x1b5b4f(0x2db)](_0x4ad9fe,b[_0x1b5b4f(0x2dc)]);const _0x38a836=new te(oe+a[_0x1b5b4f(0x391)]['generateRandomId'](B),{'left':_0x308e10+_0xecf96a-_0x3544e5,'top':_0x57f3a7+_0x237144-K,'text':_0x358464,'color':_0x18aa7f});this['_textBubble']=_0x38a836,this['_scene'][_0x1b5b4f(0x2db)](_0x38a836,b[_0x1b5b4f(0x2dc)]),this[_0x1b5b4f(0x2f3)]=!0x1;}[_0x5a0327(0x3be)](){const _0x202bc8=_0x5a0327,_0x450939=this[_0x202bc8(0x2f2)][_0x202bc8(0x1fd)][_0x202bc8(0x1d5)](()=>{const _0x98cede=_0x202bc8;this[_0x98cede(0x2f3)]=!0x0;}),_0x2ce291=this[_0x202bc8(0x2f2)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x49a482=_0x202bc8;this[_0x49a482(0x367)]&&clearTimeout(this[_0x49a482(0x367)]),this[_0x49a482(0x367)]=setTimeout(()=>{const _0x45c054=_0x49a482;this[_0x45c054(0x2f3)]=!0x1;},0x7d0);});return()=>{const _0x47486d=_0x202bc8;_0x450939[_0x47486d(0x350)](),_0x2ce291[_0x47486d(0x350)]();};}[_0x5a0327(0x232)](_0x1b9feb,_0x54b05d,_0x456940,_0x449942){const _0x3d6041=_0x5a0327,_0xec323b=new a[(_0x3d6041(0x2ec))](_0x1b9feb)[_0x3d6041(0x1cd)](0.2)[_0x3d6041(0x3ad)](),_0x335b37=new p['RegularPolygon'](ut+a[_0x3d6041(0x391)][_0x3d6041(0x268)](B),{'pointsGroup':_0x54b05d,'fill':_0xec323b||p[_0x3d6041(0x410)](a[_0x3d6041(0x3cd)][_0x3d6041(0x319)],0.2),'left':_0x456940,'top':_0x449942,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3d6041(0x1ea)][_0x3d6041(0x225)](_0x335b37),this[_0x3d6041(0x200)][_0x3d6041(0x2db)](_0x335b37,b[_0x3d6041(0x2dc)]);}['_drawRectRange'](_0x55c27f,_0x1d42a5,_0x1a4c23,_0x530840){const _0x3842af=_0x5a0327,_0xec7ae3=new a[(_0x3842af(0x2ec))](_0x55c27f)[_0x3842af(0x1cd)](0.2)[_0x3842af(0x3ad)](),_0x1bd26f=new p[(_0x3842af(0x37c))](dt+a['Tools'][_0x3842af(0x268)](B),{'pointsGroup':_0x1d42a5,'fill':_0xec7ae3||p[_0x3842af(0x410)](a[_0x3842af(0x3cd)]['black'],0.2),'left':_0x1a4c23,'top':_0x530840,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3842af(0x1ea)][_0x3842af(0x225)](_0x1bd26f),this[_0x3842af(0x200)]['addObject'](_0x1bd26f,b[_0x3842af(0x2dc)]);}[_0x5a0327(0x388)](_0x197677){const _0x583069=_0x197677[0x0],_0x3cca08=_0x583069[0x0],_0xc5c84c=_0x583069[0x2],{x:_0x37b86c,y:_0x5aca76}=_0x3cca08,{x:_0x701ed4,y:_0x1c18c0}=_0xc5c84c;return{'left':_0x37b86c,'top':_0x5aca76,'width':_0x701ed4-_0x37b86c,'height':_0x1c18c0-_0x5aca76};}[_0x5a0327(0x301)](){const _0x59c46d=_0x5a0327,{scaleX:_0x3325ec,scaleY:_0x51d50f}=this[_0x59c46d(0x200)][_0x59c46d(0x20c)]();return Math['max'](_0x3325ec,_0x51d50f);}}var gt=Object[_0x5a0327(0x3e2)],It=(_0x149abf,_0x3c5dbf,_0x4da8ab,_0x17ca4c)=>{for(var _0x43c0db=_0x17ca4c>0x1?void 0x0:_0x17ca4c?gt(_0x3c5dbf,_0x4da8ab):_0x3c5dbf,_0x4455b0=_0x149abf['length']-0x1,_0x16ae48;_0x4455b0>=0x0;_0x4455b0--)(_0x16ae48=_0x149abf[_0x4455b0])&&(_0x43c0db=_0x16ae48(_0x43c0db)||_0x43c0db);return _0x43c0db;},X=(_0x14f821,_0xecc713)=>(_0x14f876,_0x64cfea)=>_0xecc713(_0x14f876,_0x64cfea,_0x14f821);let ge=class extends a[_0x5a0327(0x313)]{constructor(_0x3528fe,_0xba11c3,_0xe64b34,_0x42ad69,_0x5aac51){const _0xda8043=_0x5a0327;super(),h(this,_0xda8043(0x331),[]),h(this,_0xda8043(0x396),[]),(this[_0xda8043(0x261)]=_0x3528fe,this[_0xda8043(0x376)]=_0xba11c3,this[_0xda8043(0x288)]=_0xe64b34,this['_commandService']=_0x42ad69,this[_0xda8043(0x275)]=_0x5aac51,this[_0xda8043(0x428)]());}[_0x5a0327(0x428)](){const _0x17eb6f=_0x5a0327,_0x431270=this[_0x17eb6f(0x261)][_0x17eb6f(0x2ac)],_0xe29428=this[_0x17eb6f(0x376)];this['disposeWithMe'](d[_0x17eb6f(0x23c)]([this[_0x17eb6f(0x288)]['getCollabCursors$'](_0x431270),this[_0x17eb6f(0x275)][_0x17eb6f(0x1d1)]])[_0x17eb6f(0x2f0)]($[_0x17eb6f(0x3c8)](([_0x47bf31,_0x319cd0])=>({'skeleton':_0xe29428['getSkeleton'](),'cursors':[..._0x47bf31['values']()][_0x17eb6f(0x264)](_0xdabca0=>({..._0xdabca0,'color':_0x319cd0[_0xdabca0[_0x17eb6f(0x2bb)]]}))})))['subscribe'](_0x1c6ed5=>{const _0x27ab3a=_0x17eb6f;if(this['_removeCollabCursors'](),_0x1c6ed5){const {skeleton:_0x328cb1,cursors:_0x3b71a6}=_0x1c6ed5;this[_0x27ab3a(0x273)](_0x328cb1,_0x3b71a6);}})),this[_0x17eb6f(0x338)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x447a5a,_0x165bec){const _0x85672f=_0x5a0327,{scene:_0x26de08,mainComponent:_0x2e68bc}=this['_context'],_0x526ea6=_0x165bec[_0x85672f(0x3c8)](_0x4b5f30=>new Ue(_0x4b5f30,_0x26de08,_0x447a5a,_0x2e68bc));this[_0x85672f(0x331)]=_0x526ea6,this[_0x85672f(0x396)]=_0x165bec;}[_0x5a0327(0x30a)](){const _0x1b58a0=_0x5a0327;this[_0x1b58a0(0x3b8)]();const {scene:_0x2d589f,mainComponent:_0x4b9b09}=this[_0x1b58a0(0x261)],_0xceb0ac=this['_docSkeletonManagerService'][_0x1b58a0(0x3ca)](),_0x60f4e7=this[_0x1b58a0(0x396)][_0x1b58a0(0x3c8)](_0x224515=>new Ue(_0x224515,_0x2d589f,_0xceb0ac,_0x4b9b09));this[_0x1b58a0(0x331)]=_0x60f4e7;}['_removeCollabCursors'](){const _0x3e8dd3=_0x5a0327;this[_0x3e8dd3(0x331)][_0x3e8dd3(0x22d)](_0x22ea68=>_0x22ea68[_0x3e8dd3(0x380)]()),this['_cursorShapes']=[];}[_0x5a0327(0x282)](){const _0x56748f=_0x5a0327,_0x42ca13=[b[_0x56748f(0x2cb)]['id']];this[_0x56748f(0x27a)](this[_0x56748f(0x33d)][_0x56748f(0x441)](_0x1d3462=>{const _0x159c64=_0x56748f;_0x42ca13[_0x159c64(0x1ba)](_0x1d3462['id'])&&_0x1d3462[_0x159c64(0x22a)][_0x159c64(0x2ac)]===this['_context'][_0x159c64(0x2ac)]&&this[_0x159c64(0x30a)]();}));}[_0x5a0327(0x338)](){const _0xce2366=_0x5a0327;this[_0xce2366(0x27a)](a[_0xce2366(0x1e7)](this[_0xce2366(0x261)][_0xce2366(0x3d2)][_0xce2366(0x315)])['pipe']($[_0xce2366(0x214)](_0x53a9aa=>_0x53a9aa[_0xce2366(0x2e3)]===p[_0xce2366(0x3f8)][_0xce2366(0x317)]),$[_0xce2366(0x390)](0x10))['subscribe'](()=>{const _0x1bc639=_0xce2366;this[_0x1bc639(0x30a)]();}));}};ge=It([X(0x1,a[_0x5a0327(0x43e)](Y[_0x5a0327(0x2e8)])),X(0x2,a[_0x5a0327(0x43e)](x)),X(0x3,a[_0x5a0327(0x3d3)]),X(0x4,a[_0x5a0327(0x43e)](a[_0x5a0327(0x3a7)]))],ge);const mt=0x1,Ct=1.5;class ye extends p[_0x5a0327(0x3ee)]{constructor(_0x88bf32,_0x4267d3){const _0xca7f8c=_0x5a0327;super(_0x88bf32,_0x4267d3),h(this,_0xca7f8c(0x1c8)),h(this,_0xca7f8c(0x42e),!0x1),h(this,_0xca7f8c(0x312)),h(this,_0xca7f8c(0x276),''),h(this,_0xca7f8c(0x222),_0xca7f8c(0x1e2)),h(this,_0xca7f8c(0x393)),(_0x4267d3&&this[_0xca7f8c(0x35f)](_0x4267d3),this['onPointerEnter$'][_0xca7f8c(0x1d5)](()=>this[_0xca7f8c(0x35f)]({'hovered':!0x0})),this[_0xca7f8c(0x361)][_0xca7f8c(0x1d5)](()=>this[_0xca7f8c(0x35f)]({'hovered':!0x1})));}['setShapeProps'](_0x2e1c58){const _0x273b82=_0x5a0327;var _0xbd4f8d,_0x3358e8,_0x1103e3,_0xf7af2f,_0x263947,_0x279a11;this['_color']=(_0xbd4f8d=_0x2e1c58[_0x273b82(0x2bb)])!=null?_0xbd4f8d:this[_0x273b82(0x1c8)],this[_0x273b82(0x42e)]=(_0x3358e8=_0x2e1c58[_0x273b82(0x2d3)])!=null?_0x3358e8:this['_hovered'],this[_0x273b82(0x312)]=(_0x1103e3=_0x2e1c58[_0x273b82(0x21b)])!=null?_0x1103e3:this[_0x273b82(0x312)],this[_0x273b82(0x276)]=(_0xf7af2f=_0x2e1c58[_0x273b82(0x238)])!=null?_0xf7af2f:this[_0x273b82(0x276)],this[_0x273b82(0x222)]=(_0x263947=_0x2e1c58[_0x273b82(0x28b)])!=null?_0x263947:this[_0x273b82(0x222)],this[_0x273b82(0x393)]=(_0x279a11=_0x2e1c58[_0x273b82(0x291)])!=null?_0x279a11:this['_backgroundColor'],this[_0x273b82(0x23f)]({'width':_0x2e1c58[_0x273b82(0x3ea)],'height':_0x2e1c58[_0x273b82(0x3c9)]});}[_0x5a0327(0x2f7)](_0x1efc29){const _0x5174ff=_0x5a0327,{row:_0x1aae52,column:_0x493941}=_0x1efc29;if(_0x1aae52>=this['_range'][_0x5174ff(0x3c1)]&&_0x1aae52<=this['_range'][_0x5174ff(0x311)]&&_0x493941>=this['_range'][_0x5174ff(0x1dc)]&&_0x493941<=this[_0x5174ff(0x312)][_0x5174ff(0x27b)]){this[_0x5174ff(0x35f)]({'hovered':!0x0});return;}this[_0x5174ff(0x35f)]({'hovered':!0x1});}[_0x5a0327(0x440)](_0x1a803d){return!0x1;}[_0x5a0327(0x1f6)](_0x3a0b47){const _0xe3ac14=_0x5a0327;p['Rect'][_0xe3ac14(0x2c5)](_0x3a0b47,{'width':this[_0xe3ac14(0x3ea)],'height':this[_0xe3ac14(0x3c9)],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xe3ac14(0x393)]}),this[_0xe3ac14(0x42e)]&&(_0x3a0b47['save'](),_0x3a0b47[_0xe3ac14(0x272)](0x1,0x0,0x0,0x1,this[_0xe3ac14(0x3ea)],this[_0xe3ac14(0x222)]===_0xe3ac14(0x34b)?0x0:-0x14),te[_0xe3ac14(0x2c5)](_0x3a0b47,{'text':this[_0xe3ac14(0x276)],'color':this[_0xe3ac14(0x1c8)]}),_0x3a0b47['restore']());}}var pt=Object[_0x5a0327(0x3e2)],bt=(_0x516747,_0x110b55,_0x2e06f2,_0x2c54d7)=>{const _0x148713=_0x5a0327;for(var _0x3a6ba4=_0x2c54d7>0x1?void 0x0:_0x2c54d7?pt(_0x110b55,_0x2e06f2):_0x110b55,_0x2173f2=_0x516747[_0x148713(0x2c6)]-0x1,_0x12c92a;_0x2173f2>=0x0;_0x2173f2--)(_0x12c92a=_0x516747[_0x2173f2])&&(_0x3a6ba4=_0x12c92a(_0x3a6ba4)||_0x3a6ba4);return _0x3a6ba4;},ce=(_0x2fb265,_0x3abbee)=>(_0x50d1d7,_0xf58771)=>_0x3abbee(_0x50d1d7,_0xf58771,_0x2fb265);const Et=0x1389;let Ie=class extends a[_0x5a0327(0x313)]{constructor(_0x5a0c34,_0x35ddf1,_0xb7766a,_0x41dfe8){const _0x3ecb20=_0x5a0327;super(),h(this,_0x3ecb20(0x396),new Set()),h(this,_0x3ecb20(0x28a),null),(this['_context']=_0x5a0c34,this['_sheetSkeletonManagerService']=_0x35ddf1,this[_0x3ecb20(0x288)]=_0xb7766a,this[_0x3ecb20(0x275)]=_0x41dfe8,this[_0x3ecb20(0x428)]());}[_0x5a0327(0x428)](){const _0x4fd3a6=_0x5a0327;this[_0x4fd3a6(0x1fa)]['currentSkeleton$']['pipe']($[_0x4fd3a6(0x1e6)](this[_0x4fd3a6(0x2a9)]),$[_0x4fd3a6(0x343)](_0x37eaa7=>{const _0x4e33d8=_0x4fd3a6;if(_0x37eaa7){const _0x395acb=_0x37eaa7[_0x4e33d8(0x43b)];return d[_0x4e33d8(0x23c)](this[_0x4e33d8(0x288)][_0x4e33d8(0x420)](this['_context'][_0x4e33d8(0x2ac)]),this[_0x4e33d8(0x275)][_0x4e33d8(0x1d1)])[_0x4e33d8(0x2f0)]($[_0x4e33d8(0x3c8)](([_0x1e5957,_0x2326f5])=>{const _0x478007=_0x4e33d8,_0x5d8941=new Map();return _0x1e5957[_0x478007(0x22d)]((_0x361d1e,_0x29c7c)=>{const _0x2ca4e7=_0x478007;if(_0x361d1e[_0x2ca4e7(0x3e7)]===_0x395acb){const _0x356763={..._0x361d1e};_0x356763[_0x2ca4e7(0x2bb)]=_0x2326f5[_0x361d1e[_0x2ca4e7(0x2bb)]],_0x5d8941[_0x2ca4e7(0x421)](_0x29c7c,_0x356763);}}),{'skeleton':_0x37eaa7,'cursors':_0x5d8941};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4fd3a6(0x293)](({skeleton:_0x426dd8,cursors:_0x266f28})=>{const _0x2f8a8f=_0x4fd3a6;this[_0x2f8a8f(0x3b8)](),_0x426dd8&&this['_updateCollabCursors'](_0x426dd8,_0x266f28);}),this[_0x4fd3a6(0x1fa)][_0x4fd3a6(0x27e)][_0x4fd3a6(0x293)](_0x222b0c=>{const _0x1009dc=_0x4fd3a6;if(_0x222b0c==null)return;const {skeleton:_0x4fdb46}=_0x222b0c,{scene:_0x2d622b}=this[_0x1009dc(0x261)];_0x2d622b[_0x1009dc(0x259)]['subscribeEvent'](a[_0x1009dc(0x27d)](_0x47e063=>{const _0x5e61f7=_0x1009dc;var _0x18ccf0,_0x224378;const {offsetX:_0x42c3bc,offsetY:_0x51cec9}=_0x47e063,{x:_0x133a0b,y:_0x5e0ca6}=_0x2d622b['getRelativeToViewportCoord'](p['Vector2']['FromArray']([_0x42c3bc,_0x51cec9])),{scaleX:_0xa41ebf,scaleY:_0x2d9fb3}=_0x2d622b['getAncestorScale'](),_0x533e65=_0x2d622b['getViewport'](p[_0x5e61f7(0x43a)]['VIEW_MAIN']),_0x27e1ef=_0x2d622b['getVpScrollXYInfoByPosToVp'](p[_0x5e61f7(0x337)][_0x5e61f7(0x25d)]([_0x133a0b,_0x5e0ca6]),_0x533e65),_0x125ec1=_0x4fdb46[_0x5e61f7(0x347)](_0x42c3bc,_0x51cec9,_0xa41ebf,_0x2d9fb3,_0x27e1ef);((_0x18ccf0=this[_0x5e61f7(0x28a)])==null?void 0x0:_0x18ccf0[_0x5e61f7(0x3ce)])===_0x125ec1[_0x5e61f7(0x3ce)]&&((_0x224378=this[_0x5e61f7(0x28a)])==null?void 0x0:_0x224378[_0x5e61f7(0x2d4)])===_0x125ec1[_0x5e61f7(0x2d4)]||this[_0x5e61f7(0x396)][_0x5e61f7(0x22d)](_0x4e4d87=>{const _0x165e21=_0x5e61f7;_0x4e4d87[_0x165e21(0x2f7)](_0x125ec1);});},0x64));});}[_0x5a0327(0x273)](_0x47b5f3,_0x558f65){const _0x5de29f=_0x5a0327;var _0x1ae16d;const _0x23289a=(_0x1ae16d=this[_0x5de29f(0x1fa)][_0x5de29f(0x1c5)]())==null?void 0x0:_0x1ae16d[_0x5de29f(0x2fe)];if(!_0x23289a)return;const _0x22f5c8=this[_0x5de29f(0x386)]();if(!_0x22f5c8)return;this['_cursors']['forEach'](_0x3914cf=>{const _0x1c007c=_0x5de29f;_0x3914cf[_0x1c007c(0x245)]();});const {scene:_0x2b768c}=_0x22f5c8,_0x24510e=Tt(Array[_0x5de29f(0x287)](_0x558f65[_0x5de29f(0x308)]()))[_0x5de29f(0x3c8)](_0x130a70=>{const _0x7e5a3a=_0x5de29f,{color:_0x5531ee,range:_0x364cdf,name:_0x3c4015,selection:_0x2cedf3,sheetID:_0x49c12b}=_0x130a70,{startColumn:_0x237cfe,startRow:_0x3695e9,endColumn:_0x311d3e,endRow:_0x2884e}=_0x364cdf,_0xa54f23=G[_0x7e5a3a(0x3df)](_0x3695e9,_0x237cfe,_0x2b768c,_0x23289a),_0x4f84e8=G['getCoordByCell'](_0x2884e,_0x311d3e,_0x2b768c,_0x23289a),{columnHeaderHeightAndMarginTop:_0x220ca7}=_0x23289a,{startX:_0x579845,startY:_0x4e73f4}=_0xa54f23,{endX:_0x2fd0e4,endY:_0xf78a55}=_0x4f84e8,_0x10facb=_0x2fd0e4-_0x579845,_0x705f5=_0xf78a55-_0x4e73f4,_0x23560a={'labelPosition':_0x4e73f4-_0x220ca7>=K?'top':'bottom','sheetID':_0x49c12b,'range':_0x364cdf,'color':_0x5531ee,'name':_0x3c4015,'selection':_0x2cedf3,'left':_0x579845,'top':_0x4e73f4,'width':_0x10facb,'height':_0x705f5,'evented':!0x1,'zIndex':Et};return new ye(_0x3c4015,_0x23560a);});_0x2b768c[_0x5de29f(0x2c7)](_0x24510e,mt),this[_0x5de29f(0x396)]=new Set(_0x24510e);}[_0x5a0327(0x3b8)](){const _0x128d2a=_0x5a0327;var _0xc9d635;(_0xc9d635=this['_cursors'])==null||_0xc9d635[_0x128d2a(0x22d)](_0x68bb15=>_0x68bb15['dispose']());}[_0x5a0327(0x386)](){const _0x186400=_0x5a0327;return G[_0x186400(0x3e1)](this[_0x186400(0x261)][_0x186400(0x3aa)],this[_0x186400(0x261)]);}};Ie=bt([ce(0x1,a[_0x5a0327(0x43e)](G[_0x5a0327(0x22b)])),ce(0x2,a[_0x5a0327(0x43e)](x)),ce(0x3,a['Inject'](a['ThemeService']))],Ie);function Tt(_0x4062df){const _0x4df865=_0x5a0327,_0x454ca3=new Map();return _0x4062df[_0x4df865(0x22d)](_0x4e006f=>{const _0x294443=_0x4df865;if(_0x454ca3[_0x294443(0x203)](_0x4e006f[_0x294443(0x2e2)])){const _0x3a6849=_0x454ca3[_0x294443(0x210)](_0x4e006f[_0x294443(0x2e2)]);_0x3a6849['name']+=',\x20'+_0x4e006f[_0x294443(0x238)];}else _0x454ca3[_0x294443(0x421)](_0x4e006f[_0x294443(0x2e2)],_0x4e006f);}),Array[_0x4df865(0x287)](_0x454ca3[_0x4df865(0x308)]());}var E=function(){const _0x43dff6=_0x5a0327;return E=Object[_0x43dff6(0x3f3)]||function(_0x2cf9e0){const _0x42e172=_0x43dff6;for(var _0x25c167,_0x1b20e1=0x1,_0x1a15e8=arguments[_0x42e172(0x2c6)];_0x1b20e1<_0x1a15e8;_0x1b20e1++){_0x25c167=arguments[_0x1b20e1];for(var _0x7ce249 in _0x25c167)Object[_0x42e172(0x384)][_0x42e172(0x37d)][_0x42e172(0x23a)](_0x25c167,_0x7ce249)&&(_0x2cf9e0[_0x7ce249]=_0x25c167[_0x7ce249]);}return _0x2cf9e0;},E[_0x43dff6(0x2da)](this,arguments);},Rt=function(_0x46c89d,_0x4f62dc){const _0xab9b4f=_0x5a0327;var _0x2e09a5={};for(var _0x58da8a in _0x46c89d)Object[_0xab9b4f(0x384)][_0xab9b4f(0x37d)][_0xab9b4f(0x23a)](_0x46c89d,_0x58da8a)&&_0x4f62dc[_0xab9b4f(0x202)](_0x58da8a)<0x0&&(_0x2e09a5[_0x58da8a]=_0x46c89d[_0x58da8a]);if(_0x46c89d!=null&&typeof Object['getOwnPropertySymbols']==_0xab9b4f(0x2d9)){for(var _0x3652e7=0x0,_0x58da8a=Object['getOwnPropertySymbols'](_0x46c89d);_0x3652e7<_0x58da8a[_0xab9b4f(0x2c6)];_0x3652e7++)_0x4f62dc[_0xab9b4f(0x202)](_0x58da8a[_0x3652e7])<0x0&&Object['prototype'][_0xab9b4f(0x244)][_0xab9b4f(0x23a)](_0x46c89d,_0x58da8a[_0x3652e7])&&(_0x2e09a5[_0x58da8a[_0x3652e7]]=_0x46c89d[_0x58da8a[_0x3652e7]]);}return _0x2e09a5;},be=P[_0x5a0327(0x41e)](function(_0x32e716,_0x2aa10d){const _0x2bd89f=_0x5a0327;var _0x54f38e=_0x32e716['icon'],_0x25c6ed=_0x32e716['id'],_0x374edc=_0x32e716[_0x2bd89f(0x364)],_0x309f19=_0x32e716['extend'],_0x32283d=Rt(_0x32e716,[_0x2bd89f(0x348),'id',_0x2bd89f(0x364),'extend']),_0x4cea96=_0x2bd89f(0x1e4)[_0x2bd89f(0x3f2)](_0x25c6ed,'\x20')[_0x2bd89f(0x3f2)](_0x374edc||'')[_0x2bd89f(0x1f2)](),_0x1d3bcf=P[_0x2bd89f(0x27f)]('_'[_0x2bd89f(0x3f2)](Ut()));return Ae(_0x54f38e,''[_0x2bd89f(0x3f2)](_0x25c6ed),{'defIds':_0x54f38e[_0x2bd89f(0x3cf)],'idSuffix':_0x1d3bcf['current']},E({'ref':_0x2aa10d,'className':_0x4cea96},_0x32283d),_0x309f19);});function Ae(_0x250c05,_0x224b8f,_0xc6f671,_0x3c5d5e,_0x1714c2){const _0x45475e=_0x5a0327;return P[_0x45475e(0x379)](_0x250c05[_0x45475e(0x419)],E(E({'key':_0x224b8f},Ot(_0x250c05,_0xc6f671,_0x1714c2)),_0x3c5d5e),(Dt(_0x250c05,_0xc6f671)[_0x45475e(0x249)]||[])[_0x45475e(0x3c8)](function(_0x557af3,_0x558e33){const _0x395c42=_0x45475e;return Ae(_0x557af3,''[_0x395c42(0x3f2)](_0x224b8f,'-')[_0x395c42(0x3f2)](_0x250c05[_0x395c42(0x419)],'-')[_0x395c42(0x3f2)](_0x558e33),_0xc6f671,void 0x0,_0x1714c2);}));}function Ot(_0x1a035b,_0x356e32,_0x52ad4d){const _0x5a190e=_0x5a0327;var _0x3daa1e=E({},_0x1a035b[_0x5a190e(0x3c7)]);_0x52ad4d!=null&&_0x52ad4d[_0x5a190e(0x405)]&&_0x3daa1e[_0x5a190e(0x296)]===_0x5a190e(0x405)&&(_0x3daa1e[_0x5a190e(0x296)]=_0x52ad4d['colorChannel1']),_0x1a035b[_0x5a190e(0x419)]===_0x5a190e(0x369)&&_0x3daa1e['id']&&(_0x3daa1e['id']=_0x3daa1e['id']+_0x356e32[_0x5a190e(0x1db)]),Object[_0x5a190e(0x3fb)](_0x3daa1e)[_0x5a190e(0x22d)](function(_0x172c05){const _0x9121d9=_0x5a190e;var _0x575a98=_0x172c05[0x0],_0x980832=_0x172c05[0x1];_0x575a98==='mask'&&typeof _0x980832==_0x9121d9(0x2ae)&&(_0x3daa1e[_0x575a98]=_0x980832[_0x9121d9(0x230)](/url\(#(.*)\)/,_0x9121d9(0x228)['concat'](_0x356e32[_0x9121d9(0x1db)],')')));});var _0x319532=_0x356e32[_0x5a190e(0x3cf)];return!_0x319532||_0x319532[_0x5a190e(0x2c6)]===0x0||(_0x1a035b[_0x5a190e(0x419)]===_0x5a190e(0x434)&&_0x3daa1e[_0x5a190e(0x3a1)]&&(_0x3daa1e[_0x5a190e(0x3a1)]=_0x3daa1e[_0x5a190e(0x3a1)]+_0x356e32[_0x5a190e(0x1db)]),Object['entries'](_0x3daa1e)['forEach'](function(_0x2809c9){const _0x1a3746=_0x5a190e;var _0x405cdb=_0x2809c9[0x0],_0x39bd2e=_0x2809c9[0x1];typeof _0x39bd2e==_0x1a3746(0x2ae)&&(_0x3daa1e[_0x405cdb]=_0x39bd2e[_0x1a3746(0x230)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x356e32['idSuffix'],')')));})),_0x3daa1e;}function Dt(_0x14ebf1,_0x172475){const _0xe1865a=_0x5a0327;var _0x277abb,_0x2229c6=_0x172475[_0xe1865a(0x3cf)];return!_0x2229c6||_0x2229c6['length']===0x0?_0x14ebf1:_0x14ebf1[_0xe1865a(0x419)]===_0xe1865a(0x3a6)&&(!((_0x277abb=_0x14ebf1[_0xe1865a(0x249)])===null||_0x277abb===void 0x0)&&_0x277abb[_0xe1865a(0x2c6)])?E(E({},_0x14ebf1),{'children':_0x14ebf1[_0xe1865a(0x249)]['map'](function(_0x531b52){const _0x354620=_0xe1865a;return typeof _0x531b52[_0x354620(0x3c7)]['id']=='string'&&_0x2229c6&&_0x2229c6['indexOf'](_0x531b52['attrs']['id'])>-0x1?E(E({},_0x531b52),{'attrs':E(E({},_0x531b52['attrs']),{'id':_0x531b52['attrs']['id']+_0x172475[_0x354620(0x1db)]})}):_0x531b52;})}):_0x14ebf1;}function Ut(){const _0x53ebc2=_0x5a0327;return Math[_0x53ebc2(0x2cc)]()['toString'](0x24)['substring'](0x2,0x8);}be['displayName']=_0x5a0327(0x2b9);var Mt={'tag':_0x5a0327(0x2e1),'attrs':{'fill':_0x5a0327(0x31c),'viewBox':_0x5a0327(0x3a2),'width':'1em','height':_0x5a0327(0x33a)},'children':[{'tag':'g','attrs':{'clipPath':_0x5a0327(0x41f)},'children':[{'tag':_0x5a0327(0x1de),'attrs':{'stroke':_0x5a0327(0x2a5),'d':_0x5a0327(0x1d2),'strokeLinecap':_0x5a0327(0x309),'strokeLinejoin':_0x5a0327(0x309),'strokeWidth':1.2}}]},{'tag':_0x5a0327(0x3a6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5a0327(0x414)},'children':[{'tag':_0x5a0327(0x1de),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5a0327(0x414)]},$e=P[_0x5a0327(0x41e)](function(_0x5d4242,_0x4d06a8){const _0x4de387=_0x5a0327;return P[_0x4de387(0x379)](be,Object[_0x4de387(0x3f3)]({},_0x5d4242,{'id':_0x4de387(0x406),'ref':_0x4d06a8,'icon':Mt}));});$e[_0x5a0327(0x2e0)]='OffLineSingle';var Pt={'tag':_0x5a0327(0x2e1),'attrs':{'fill':'none','viewBox':_0x5a0327(0x2f8),'width':_0x5a0327(0x33a),'height':_0x5a0327(0x33a)},'children':[{'tag':'g','attrs':{'clipPath':_0x5a0327(0x28e)},'children':[{'tag':_0x5a0327(0x1de),'attrs':{'stroke':_0x5a0327(0x2a5),'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':_0x5a0327(0x309),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5a0327(0x3a6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5a0327(0x346)},'children':[{'tag':_0x5a0327(0x1de),'attrs':{'fill':_0x5a0327(0x216),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x5a0327(0x346)]},xe=P['forwardRef'](function(_0x449495,_0x5211d4){const _0x2b12fa=_0x5a0327;return P[_0x2b12fa(0x379)](be,Object[_0x2b12fa(0x3f3)]({},_0x449495,{'id':_0x2b12fa(0x398),'ref':_0x5211d4,'icon':Pt}));});xe[_0x5a0327(0x2e0)]=_0x5a0327(0x3b0);const Nt='univer-online-status-icon',wt=_0x5a0327(0x363),Lt='univer-online-status',yt=_0x5a0327(0x2b0),At=_0x5a0327(0x397),H={'onlineStatusIcon':Nt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':yt,'offline':At};function $t(_0x36b41d){const _0x3fa626=_0x5a0327;switch(_0x36b41d){case u[_0x3fa626(0x227)][_0x3fa626(0x1c6)]:return _0x3fa626(0x2a2);case u[_0x3fa626(0x227)][_0x3fa626(0x36e)]:return _0x3fa626(0x31e);case u[_0x3fa626(0x227)][_0x3fa626(0x24f)]:return _0x3fa626(0x34a);case u[_0x3fa626(0x227)][_0x3fa626(0x41d)]:return _0x3fa626(0x2ab);case u['CollaborationStatus'][_0x3fa626(0x35e)]:case u['CollaborationStatus'][_0x3fa626(0x297)]:return _0x3fa626(0x439);case u[_0x3fa626(0x227)][_0x3fa626(0x207)]:case u['CollaborationStatus']['PENDING']:return _0x3fa626(0x318);}}function je(_0x4cb5ec){const _0x5d16d3=_0x5a0327,{status$:_0x21780b}=_0x4cb5ec,_0x55a7f9=R['useObservable'](_0x21780b,u['CollaborationStatus'][_0x5d16d3(0x41d)]),_0x14b294=R[_0x5d16d3(0x333)](a[_0x5d16d3(0x235)]),_0x2182cc=R[_0x5d16d3(0x333)](u['CollaborationSessionService']),_0x337dce=_0x55a7f9!==u['CollaborationStatus'][_0x5d16d3(0x1c6)],_0x245b3e=_0x14b294['t']($t(_0x55a7f9)),_0x4e892e=T['clsx'](H[_0x5d16d3(0x2ad)],{[H[_0x5d16d3(0x2b8)]]:_0x337dce,[H['offline']]:!_0x337dce}),_0x1080ee=_0x337dce?w[_0x5d16d3(0x24a)](xe,{}):w[_0x5d16d3(0x24a)]($e,{}),_0x160c75=P[_0x5d16d3(0x2bf)](()=>{const _0x4100fc=_0x5d16d3;_0x337dce||_0x2182cc[_0x4100fc(0x2c1)]();},[_0x337dce,_0x2182cc]);function _0x103816(){const _0x132608=_0x5d16d3;return w[_0x132608(0x360)](_0x132608(0x1ef),{'className':T[_0x132608(0x2bd)](_0x4e892e,_0x132608(0x436)),'onClick':_0x160c75,'children':[w[_0x132608(0x24a)](_0x132608(0x1ef),{'className':H[_0x132608(0x413)],'children':_0x1080ee}),w[_0x132608(0x24a)](_0x132608(0x1ef),{'className':H[_0x132608(0x34f)],'children':_0x245b3e})]});}return _0x337dce?_0x103816():w[_0x5d16d3(0x24a)](T[_0x5d16d3(0x269)],{'title':_0x14b294['t'](_0x5d16d3(0x40e)),'children':_0x103816()});}var xt=Object[_0x5a0327(0x3e2)],jt=(_0x25a53e,_0x4c91db,_0x291895,_0x1d74ce)=>{const _0x1f8619=_0x5a0327;for(var _0x4a4cce=_0x1d74ce>0x1?void 0x0:_0x1d74ce?xt(_0x4c91db,_0x291895):_0x4c91db,_0x18cd42=_0x25a53e[_0x1f8619(0x2c6)]-0x1,_0x55b9ed;_0x18cd42>=0x0;_0x18cd42--)(_0x55b9ed=_0x25a53e[_0x18cd42])&&(_0x4a4cce=_0x55b9ed(_0x4a4cce)||_0x4a4cce);return _0x4a4cce;},V=(_0x424f15,_0x3d8243)=>(_0x25a7cc,_0x3bbf3a)=>_0x3d8243(_0x25a7cc,_0x3bbf3a,_0x424f15);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x5a0327(0x381)]{constructor(_0x10cea7,_0x5beb24,_0x3864e9,_0xfe72ac){const _0x3a9c8c=_0x5a0327;super(),h(this,_0x3a9c8c(0x22c),new d['BehaviorSubject'](u[_0x3a9c8c(0x227)][_0x3a9c8c(0x41d)])),(this[_0x3a9c8c(0x2b6)]=_0x10cea7,this[_0x3a9c8c(0x42b)]=_0x5beb24,this['_collaborationController']=_0x3864e9,this['_uiPartsService']=_0xfe72ac,this[_0x3a9c8c(0x38b)](),this[_0x3a9c8c(0x285)]());}['_initStatusListener'](){const _0x3a82c2=_0x5a0327;this['disposeWithMe'](this[_0x3a82c2(0x2b6)][_0x3a82c2(0x3af)][_0x3a82c2(0x2f0)](d['switchMap'](()=>{const _0x524365=_0x3a82c2,_0x4e56a4=this[_0x524365(0x2b6)][_0x524365(0x2ea)]();return _0x4e56a4?this['_collaborationController'][_0x524365(0x1ed)](_0x4e56a4[_0x524365(0x36a)]()):d['of'](null);}),d[_0x3a82c2(0x343)](_0x2ec363=>_0x2ec363?_0x2ec363['status$']:d['of'](u[_0x3a82c2(0x227)][_0x3a82c2(0x41d)])))[_0x3a82c2(0x293)](_0x4b87de=>{const _0x103055=_0x3a82c2;this[_0x103055(0x22c)][_0x103055(0x430)](_0x4b87de);}));}['_initStatusComponent'](){const _0xee2f29=_0x5a0327;this[_0xee2f29(0x27a)](this['_uiPartsService'][_0xee2f29(0x29d)](R[_0xee2f29(0x1cc)]['HEADER_MENU'],()=>R[_0xee2f29(0x340)](kt({'status$':this['_status$'][_0xee2f29(0x334)]()}),this[_0xee2f29(0x42b)])));}},exports[_0x5a0327(0x399)]=jt([V(0x0,a[_0x5a0327(0x377)]),V(0x1,a[_0x5a0327(0x43e)](a[_0x5a0327(0x1c0)])),V(0x2,a[_0x5a0327(0x43e)](u[_0x5a0327(0x21a)])),V(0x3,R[_0x5a0327(0x3e0)])],exports[_0x5a0327(0x399)]);function kt(_0x5c775a){const {status$:_0x243314}=_0x5c775a;return function(){const _0x1aeef4=_0x396e;return w[_0x1aeef4(0x24a)](je,{'status$':_0x243314});};}var Bt=Object[_0x5a0327(0x3e2)],Ht=(_0x40fbd5,_0x263e77,_0x287019,_0x24a169)=>{for(var _0x13a411=_0x24a169>0x1?void 0x0:_0x24a169?Bt(_0x263e77,_0x287019):_0x263e77,_0x3c3126=_0x40fbd5['length']-0x1,_0x57a3b4;_0x3c3126>=0x0;_0x3c3126--)(_0x57a3b4=_0x40fbd5[_0x3c3126])&&(_0x13a411=_0x57a3b4(_0x13a411)||_0x13a411);return _0x13a411;},A=(_0x27d10e,_0x14f6fb)=>(_0x16e754,_0x315fc6)=>_0x14f6fb(_0x16e754,_0x315fc6,_0x27d10e);let z=class extends a['Disposable']{constructor(_0x54a60b,_0x500588,_0x45629d,_0x5b694f,_0x13541a,_0xef2b00){const _0x148be1=_0x5a0327;super(),this[_0x148be1(0x1e0)]=_0x54a60b,this[_0x148be1(0x281)]=_0x500588,this[_0x148be1(0x3c0)]=_0x45629d,this[_0x148be1(0x351)]=_0x5b694f,this['_notificationService']=_0x13541a,this[_0x148be1(0x265)]=_0xef2b00,this[_0x148be1(0x26d)](),this[_0x148be1(0x403)]();}[_0x5a0327(0x26d)](){const _0x296faf=_0x5a0327;this['disposeWithMe'](this['_beforeCloseService'][_0x296faf(0x2d7)](()=>{const _0xb5b3c0=_0x296faf;if(this[_0xb5b3c0(0x281)][_0xb5b3c0(0x33e)][_0xb5b3c0(0x223)])return this[_0xb5b3c0(0x265)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x5a0327(0x403)](){const _0x10b6a1=_0x5a0327;this[_0x10b6a1(0x27a)](this['_collaborationUIEventService'][_0x10b6a1(0x35c)]['subscribe'](_0x1cc2f3=>{const _0x2aa34d=_0x10b6a1;_0x1cc2f3['id']===u[_0x2aa34d(0x201)][_0x2aa34d(0x38f)]&&this[_0x2aa34d(0x351)][_0x2aa34d(0x431)]({'type':T['MessageType'][_0x2aa34d(0x2c9)],'content':this[_0x2aa34d(0x265)]['t'](_0x2aa34d(0x37b))}),_0x1cc2f3['id']===u['CollaborationUIEventId'][_0x2aa34d(0x2df)]&&this[_0x2aa34d(0x351)][_0x2aa34d(0x431)]({'type':T[_0x2aa34d(0x2d8)][_0x2aa34d(0x2c9)],'content':this[_0x2aa34d(0x265)]['t']('collaboration.closeRoom')}),_0x1cc2f3['id']===u['CollaborationUIEventId'][_0x2aa34d(0x417)]&&this[_0x2aa34d(0x2fa)][_0x2aa34d(0x431)]({'title':this[_0x2aa34d(0x265)]['t']('permission.title'),'content':this[_0x2aa34d(0x265)]['t']('permission.content'),'type':'error','duration':0x0}),_0x1cc2f3['id']===u['CollaborationUIEventId'][_0x2aa34d(0x36e)]&&this['_messageService']['show']({'type':T[_0x2aa34d(0x2d8)][_0x2aa34d(0x43f)],'content':this[_0x2aa34d(0x265)]['t'](_0x2aa34d(0x425))+'('+_0x1cc2f3['data']+')'}),_0x1cc2f3['id']===u[_0x2aa34d(0x201)][_0x2aa34d(0x40a)]&&this[_0x2aa34d(0x351)][_0x2aa34d(0x431)]({'type':T[_0x2aa34d(0x2d8)]['Warning'],'content':this['_localeService']['t'](_0x1cc2f3['data']||'')}),_0x1cc2f3['id']===u[_0x2aa34d(0x201)][_0x2aa34d(0x3a4)]&&this[_0x2aa34d(0x351)]['show']({'type':T[_0x2aa34d(0x2d8)][_0x2aa34d(0x2c9)],'content':this['_localeService']['t'](_0x2aa34d(0x24d))}),_0x1cc2f3['id']===u[_0x2aa34d(0x201)][_0x2aa34d(0x20e)]&&this[_0x2aa34d(0x351)]['show']({'type':T[_0x2aa34d(0x2d8)][_0x2aa34d(0x43f)],'content':this[_0x2aa34d(0x265)]['t']('session.connection-failed')}),_0x1cc2f3['id']===u[_0x2aa34d(0x201)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x2aa34d(0x351)]['show']({'type':T['MessageType'][_0x2aa34d(0x43f)],'content':this[_0x2aa34d(0x265)]['t'](_0x2aa34d(0x255))});}));}};z=Ht([A(0x0,R[_0x5a0327(0x3bd)]),A(0x1,u['ILocalCacheService']),A(0x2,a[_0x5a0327(0x43e)](u[_0x5a0327(0x267)])),A(0x3,R['IMessageService']),A(0x4,R[_0x5a0327(0x1cb)]),A(0x5,a[_0x5a0327(0x43e)](a['LocaleService']))],z);const Wt=_0x5a0327(0x243),Me={},Ee=a[_0x5a0327(0x2d2)](_0x5a0327(0x43d));var Ft=Object[_0x5a0327(0x3e2)],Yt=(_0x3465d8,_0x17ceb0,_0x90e2b0,_0x59496c)=>{const _0x2aea2b=_0x5a0327;for(var _0xd3271=_0x59496c>0x1?void 0x0:_0x59496c?Ft(_0x17ceb0,_0x90e2b0):_0x17ceb0,_0x1af617=_0x3465d8[_0x2aea2b(0x2c6)]-0x1,_0x190dac;_0x1af617>=0x0;_0x1af617--)(_0x190dac=_0x3465d8[_0x1af617])&&(_0xd3271=_0x190dac(_0xd3271)||_0xd3271);return _0xd3271;},W=(_0x1da36e,_0x2529c6)=>(_0x3ed0bb,_0x4e9b77)=>_0x2529c6(_0x3ed0bb,_0x4e9b77,_0x1da36e);exports[_0x5a0327(0x3fe)]=class extends a[_0x5a0327(0x313)]{constructor(_0x42443d,_0x381d54,_0x1589f4,_0x57bdbd,_0x5301ab){const _0x18cc17=_0x5a0327;super(),this[_0x18cc17(0x1d0)]=_0x42443d,this[_0x18cc17(0x3f0)]=_0x381d54,this['_commandService']=_0x1589f4,this[_0x18cc17(0x372)]=_0x57bdbd,_0x5301ab?_0x5301ab==null||_0x5301ab[_0x18cc17(0x2a4)]()[_0x18cc17(0x32a)](()=>this[_0x18cc17(0x428)]()):(this['_logService']['debug'](_0x18cc17(0x353),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x18cc17(0x428)]());}async['_init'](){const _0x240bb9=_0x5a0327,_0xb01cea=this['_urlService'][_0x240bb9(0x1ca)]('unit'),_0x453bdd=this['_urlService'][_0x240bb9(0x1ca)]('type'),_0x174808=this[_0x240bb9(0x1d0)]['getParam'](_0x240bb9(0x298));if(!_0xb01cea||!_0x453bdd){this[_0x240bb9(0x3f0)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x42f1a=await this['_dataLoaderService']['loadUnit'](_0xb01cea,Number(_0x453bdd),_0x174808);_0x42f1a&&_0x42f1a instanceof a[_0x240bb9(0x3b6)]&&this[_0x240bb9(0x29b)](_0x42f1a);}async['_setupSubUnitSync'](_0x19d9e1){const _0x22da75=_0x5a0327;await this['_updateSubUnitFromURLParams'](_0x19d9e1),_0x19d9e1['activeSheet$'][_0x22da75(0x2f0)](d[_0x22da75(0x1e6)](this[_0x22da75(0x2a9)]))[_0x22da75(0x293)](_0x3dd37b=>{const _0x189c86=_0x22da75;_0x3dd37b&&this[_0x189c86(0x3f4)](_0x3dd37b);}),this[_0x22da75(0x1d0)][_0x22da75(0x31d)]['pipe'](d[_0x22da75(0x1e6)](this[_0x22da75(0x2a9)]))[_0x22da75(0x293)](()=>this[_0x22da75(0x1f7)](_0x19d9e1));}[_0x5a0327(0x3f4)](_0x5e222d,_0x419c51=!0x1){const _0x420daf=_0x5a0327,_0x211656=this[_0x420daf(0x1d0)][_0x420daf(0x1ca)](_0x420daf(0x298));_0x5e222d[_0x420daf(0x1c9)]()!==_0x211656&&this[_0x420daf(0x1d0)][_0x420daf(0x299)]('subunit',_0x5e222d['getSheetId'](),_0x419c51);}async['_updateSubUnitFromURLParams'](_0x3d1a42){const _0x1cf582=_0x5a0327;var _0x577272;const _0x58060a=this[_0x1cf582(0x1d0)][_0x1cf582(0x1ca)]('subunit');if(!_0x58060a||!_0x3d1a42[_0x1cf582(0x2a1)](_0x58060a)){const _0x31c856=_0x3d1a42[_0x1cf582(0x3fd)]()[0x0],_0x366548=_0x3d1a42[_0x1cf582(0x2a1)](_0x31c856);if(!_0x366548)return;this[_0x1cf582(0x3f4)](_0x366548,!0x0),await this[_0x1cf582(0x33d)][_0x1cf582(0x3f9)](I[_0x1cf582(0x274)]['id'],{'unitId':_0x3d1a42[_0x1cf582(0x36a)](),'subUnitId':_0x31c856});return;}((_0x577272=_0x3d1a42[_0x1cf582(0x2d5)]())==null?void 0x0:_0x577272['getSheetId']())!==_0x58060a&&await this['_commandService'][_0x1cf582(0x3f9)](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x3d1a42[_0x1cf582(0x36a)](),'subUnitId':_0x58060a});}},exports[_0x5a0327(0x3fe)]=Yt([W(0x0,Ee),W(0x1,a[_0x5a0327(0x2ce)]),W(0x2,a[_0x5a0327(0x3d3)]),W(0x3,a[_0x5a0327(0x43e)](u['DataLoaderService'])),W(0x4,a[_0x5a0327(0x332)](Ke[_0x5a0327(0x1d8)]))],exports['CollaborationDataLoaderController']);var Xt=Object['getOwnPropertyDescriptor'],Vt=(_0x4790d0,_0x32bf0a,_0x3eccaa,_0x352668)=>{const _0x9f9b4b=_0x5a0327;for(var _0x2a6056=_0x352668>0x1?void 0x0:_0x352668?Xt(_0x32bf0a,_0x3eccaa):_0x32bf0a,_0x3da5d9=_0x4790d0[_0x9f9b4b(0x2c6)]-0x1,_0x5ca494;_0x3da5d9>=0x0;_0x3da5d9--)(_0x5ca494=_0x4790d0[_0x3da5d9])&&(_0x2a6056=_0x5ca494(_0x2a6056)||_0x2a6056);return _0x2a6056;},le=(_0x45a16e,_0x2ab781)=>(_0x199975,_0x245dbf)=>_0x2ab781(_0x199975,_0x245dbf,_0x45a16e);let J=class{constructor(_0x5a6313,_0x120365,_0x1a9174){const _0x59a223=_0x5a0327;this[_0x59a223(0x42b)]=_0x5a6313,this[_0x59a223(0x1d4)]=_0x120365,this[_0x59a223(0x355)]=_0x1a9174;}[_0x5a0327(0x3ab)](_0x525ae4){const _0xaef388=_0x5a0327;this[_0xaef388(0x38a)](_0x525ae4),this[_0xaef388(0x3c6)](_0x525ae4);}[_0x5a0327(0x358)](_0x607c8b){const _0x52282f=_0x5a0327,{unitID:_0x2b7f76}=_0x607c8b,_0x594abc=this['_renderManagerService'][_0x52282f(0x1e9)](_0x2b7f76)[_0x52282f(0x423)](b[_0x52282f(0x29c)]),{redoCache:_0x4d16ea}=_0x594abc['getUndoRedoMutationParamsCache']();if(_0x4d16ea['length']===0x0)return _0x607c8b;let _0x2bc59f=a['Tools'][_0x52282f(0x283)](_0x607c8b[_0x52282f(0x271)][0x0]);for(let _0x2e9532=0x0;_0x2e9532<_0x4d16ea['length'];_0x2e9532++){const _0x484070={'id':_0x52282f(0x35d),'params':{..._0x4d16ea[_0x2e9532]}},_0x325e61=this[_0x52282f(0x1d4)]['transformMutation'](_0x2bc59f,_0x484070,!0x1);if(m[_0x52282f(0x284)](_0x325e61))throw _0x325e61[_0x52282f(0x39d)];_0x2bc59f=_0x325e61[_0x52282f(0x2b2)];}return{...a[_0x52282f(0x391)][_0x52282f(0x283)](_0x607c8b),'mutations':[_0x2bc59f]};}[_0x5a0327(0x38a)](_0x2669a6){const _0x14f2c6=_0x5a0327,{unitID:_0x1e3565}=_0x2669a6,_0x12d195=this[_0x14f2c6(0x355)]['getRenderById'](_0x1e3565)[_0x14f2c6(0x423)](b['DocIMEInputManagerService']),{undoCache:_0x151464,redoCache:_0x4d1f97}=_0x12d195[_0x14f2c6(0x229)]();if(_0x151464[_0x14f2c6(0x2c6)]===0x0||_0x4d1f97[_0x14f2c6(0x2c6)]===0x0)return;const _0x4ea90f=[],_0x2494da=[];let _0x5e52eb=a[_0x14f2c6(0x391)][_0x14f2c6(0x283)](_0x2669a6[_0x14f2c6(0x271)][0x0]),_0x565b87=a[_0x14f2c6(0x391)][_0x14f2c6(0x283)](_0x2669a6[_0x14f2c6(0x271)][0x0]);for(let _0x11ccec=_0x151464[_0x14f2c6(0x2c6)]-0x1;_0x11ccec>=0x0;_0x11ccec--){const _0xa67b9b={'id':_0x14f2c6(0x35d),'params':{..._0x151464[_0x11ccec]}},_0x508563={'id':_0x14f2c6(0x35d),'params':{..._0x4d1f97[_0x11ccec]}},_0x25c0d9=this[_0x14f2c6(0x1d4)][_0x14f2c6(0x1c3)](_0x5e52eb,_0xa67b9b,!0x1),_0x215601=this[_0x14f2c6(0x1d4)][_0x14f2c6(0x1c3)](_0x565b87,_0x508563,!0x1);if(m[_0x14f2c6(0x284)](_0x25c0d9))throw _0x25c0d9[_0x14f2c6(0x39d)];if(m['isTransformMutationFailure'](_0x215601))throw _0x215601[_0x14f2c6(0x39d)];_0x4ea90f[_0x14f2c6(0x1bd)](_0x25c0d9[_0x14f2c6(0x2c3)][_0x14f2c6(0x22a)]),_0x2494da['unshift'](_0x215601['m2Prime']['params']),_0x5e52eb=_0x25c0d9[_0x14f2c6(0x2b2)],_0x565b87=_0x215601[_0x14f2c6(0x2b2)];}_0x12d195[_0x14f2c6(0x2eb)]({'undoCache':_0x4ea90f,'redoCache':_0x2494da});}[_0x5a0327(0x3c6)](_0x31c2d2){const _0x15be20=_0x5a0327,{unitID:_0x220ddf}=_0x31c2d2,_0xeec1e4=this[_0x15be20(0x355)]['getRenderById'](_0x220ddf)[_0x15be20(0x423)](b[_0x15be20(0x29c)]),_0x54cce7=_0xeec1e4[_0x15be20(0x1ce)]();if(_0x54cce7==null)return;const _0x527788=[{'id':_0x15be20(0x35d),'params':{'unitId':_0x31c2d2[_0x15be20(0x342)],'actions':null,'textRanges':[_0x54cce7]}}],_0xe56ee=this[_0x15be20(0x1d4)][_0x15be20(0x3e5)](_0x31c2d2,_0x527788);if(!m[_0x15be20(0x24e)](_0xe56ee))throw _0xe56ee[_0x15be20(0x39d)];const _0x3ec7b0=_0xe56ee[_0x15be20(0x2c3)][0x0][_0x15be20(0x22a)]['textRanges'];Array['isArray'](_0x3ec7b0)&&_0x3ec7b0[_0x15be20(0x2c6)]&&_0xeec1e4[_0x15be20(0x29a)](_0x3ec7b0[0x0]);}};J=Vt([le(0x0,a[_0x5a0327(0x43e)](a[_0x5a0327(0x1c0)])),le(0x1,m[_0x5a0327(0x3d5)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object[_0x5a0327(0x3e2)],qt=(_0x1042ac,_0x4676a6,_0x3e19d1,_0x59307c)=>{const _0x237369=_0x5a0327;for(var _0x41b056=_0x59307c>0x1?void 0x0:_0x59307c?Gt(_0x4676a6,_0x3e19d1):_0x4676a6,_0x58b7e5=_0x1042ac[_0x237369(0x2c6)]-0x1,_0x1714ff;_0x58b7e5>=0x0;_0x58b7e5--)(_0x1714ff=_0x1042ac[_0x58b7e5])&&(_0x41b056=_0x1714ff(_0x41b056)||_0x41b056);return _0x41b056;},he=(_0x238b02,_0x58402b)=>(_0xf3b92c,_0x5b8749)=>_0x58402b(_0xf3b92c,_0x5b8749,_0x238b02);function _0x396e(_0x566d36,_0xcc55e4){const _0x4a8654=_0x4a86();return _0x396e=function(_0x396e3b,_0x3cb6e6){_0x396e3b=_0x396e3b-0x1ba;let _0x33807a=_0x4a8654[_0x396e3b];return _0x33807a;},_0x396e(_0x566d36,_0xcc55e4);}let Z=class{constructor(_0x4b112f,_0x726600,_0x9fdc0b){const _0x51aa2a=_0x5a0327;this[_0x51aa2a(0x42b)]=_0x4b112f,this[_0x51aa2a(0x1d4)]=_0x726600,this[_0x51aa2a(0x2f4)]=_0x9fdc0b;}[_0x5a0327(0x1fc)](_0x2dfc2c){const _0x14eef2=_0x5a0327;this[_0x14eef2(0x3a8)](_0x2dfc2c);}[_0x5a0327(0x358)](_0x2a21b3){const _0x1a184d=_0x5a0327,{unitID:_0x1a6b9e}=_0x2a21b3,{collaboration:_0xc6128f}=this['_docStateChangeManagerService'][_0x1a184d(0x3c2)](_0x1a6b9e);if(_0xc6128f[_0x1a184d(0x2c6)]===0x0)return _0x2a21b3;let _0x43eeeb=a[_0x1a184d(0x391)]['deepClone'](_0x2a21b3['mutations'][0x0]);for(let _0x45772c=0x0;_0x45772c<_0xc6128f[_0x1a184d(0x2c6)];_0x45772c++){const _0x3ddc6d={'id':_0x1a184d(0x35d),'params':{'unitId':_0xc6128f[_0x45772c][_0x1a184d(0x2ac)],..._0xc6128f[_0x45772c]['redoState']}},_0x345e94=this[_0x1a184d(0x1d4)][_0x1a184d(0x1c3)](_0x43eeeb,_0x3ddc6d,!0x1);if(m[_0x1a184d(0x284)](_0x345e94))throw _0x345e94[_0x1a184d(0x39d)];_0x43eeeb=_0x345e94[_0x1a184d(0x2b2)];}return{...a[_0x1a184d(0x391)]['deepClone'](_0x2a21b3),'mutations':[_0x43eeeb]};}['_transformHistoryAndStateStack'](_0x462c34){const _0xf93977=_0x5a0327,{unitID:_0x46c3ca}=_0x462c34,{history:_0x3c5691,collaboration:_0x41cd26}=this[_0xf93977(0x2f4)][_0xf93977(0x3c2)](_0x46c3ca);if(_0x3c5691[_0xf93977(0x2c6)]===0x0&&_0x41cd26['length']===0x0)return;const _0x41a8d3=[],_0x28be2b=[];let _0x108035=a[_0xf93977(0x391)]['deepClone'](_0x462c34[_0xf93977(0x271)][0x0]),_0xd54f57=a[_0xf93977(0x391)]['deepClone'](_0x462c34[_0xf93977(0x271)][0x0]);for(let _0x2f13cb=_0x3c5691[_0xf93977(0x2c6)]-0x1;_0x2f13cb>=0x0;_0x2f13cb--){const _0x40a766={'id':_0xf93977(0x35d),'params':{'unitId':_0x3c5691[_0x2f13cb][_0xf93977(0x2ac)],..._0x3c5691[_0x2f13cb][_0xf93977(0x36b)]}},_0x173ba5={'id':_0xf93977(0x35d),'params':{'unitId':_0x3c5691[_0x2f13cb][_0xf93977(0x2ac)],..._0x3c5691[_0x2f13cb][_0xf93977(0x3a3)]}},_0xe21f7c=this['_transformService'][_0xf93977(0x1c3)](_0x108035,_0x40a766,!0x1),_0x2da379=this[_0xf93977(0x1d4)][_0xf93977(0x1c3)](_0xd54f57,_0x173ba5,!0x1);if(m['isTransformMutationFailure'](_0xe21f7c))throw _0xe21f7c[_0xf93977(0x39d)];if(m['isTransformMutationFailure'](_0x2da379))throw _0x2da379[_0xf93977(0x39d)];_0x41a8d3[_0xf93977(0x1bd)]({..._0x3c5691[_0x2f13cb],'undoState':_0xe21f7c[_0xf93977(0x2c3)][_0xf93977(0x22a)],'redoState':_0x2da379[_0xf93977(0x2c3)][_0xf93977(0x22a)]}),_0x108035=_0xe21f7c['m1Prime'],_0xd54f57=_0x2da379[_0xf93977(0x2b2)];}_0x108035=a[_0xf93977(0x391)][_0xf93977(0x283)](_0x462c34[_0xf93977(0x271)][0x0]),_0xd54f57=a['Tools'][_0xf93977(0x283)](_0x462c34[_0xf93977(0x271)][0x0]);for(let _0x1af5e5=_0x41cd26['length']-0x1;_0x1af5e5>=0x0;_0x1af5e5--){const _0xbf711={'id':_0xf93977(0x35d),'params':{'unitId':_0x41cd26[_0x1af5e5][_0xf93977(0x2ac)],..._0x41cd26[_0x1af5e5]['undoState']}},_0x723e3c={'id':_0xf93977(0x35d),'params':{'unitId':_0x41cd26[_0x1af5e5]['unitId'],..._0x41cd26[_0x1af5e5][_0xf93977(0x3a3)]}},_0x1961a3=this[_0xf93977(0x1d4)][_0xf93977(0x1c3)](_0x108035,_0xbf711,!0x1),_0x56945f=this[_0xf93977(0x1d4)][_0xf93977(0x1c3)](_0xd54f57,_0x723e3c,!0x1);if(m[_0xf93977(0x284)](_0x1961a3))throw _0x1961a3[_0xf93977(0x39d)];if(m['isTransformMutationFailure'](_0x56945f))throw _0x56945f[_0xf93977(0x39d)];_0x28be2b['unshift']({..._0x41cd26[_0x1af5e5],'undoState':_0x1961a3[_0xf93977(0x2c3)]['params'],'redoState':_0x56945f[_0xf93977(0x2c3)][_0xf93977(0x22a)]}),_0x108035=_0x1961a3[_0xf93977(0x2b2)],_0xd54f57=_0x56945f[_0xf93977(0x2b2)];}this[_0xf93977(0x2f4)][_0xf93977(0x295)](_0x46c3ca,{'history':_0x41a8d3,'collaboration':_0x28be2b});}};Z=qt([he(0x0,a[_0x5a0327(0x43e)](a['Injector'])),he(0x1,m[_0x5a0327(0x3d5)]),he(0x2,a[_0x5a0327(0x43e)](b['DocStateChangeManagerService']))],Z);var Kt=Object['getOwnPropertyDescriptor'],zt=(_0x123df5,_0x261e22,_0x224d24,_0x3efe6d)=>{const _0x55cbc7=_0x5a0327;for(var _0x5b45a6=_0x3efe6d>0x1?void 0x0:_0x3efe6d?Kt(_0x261e22,_0x224d24):_0x261e22,_0x2fbc98=_0x123df5[_0x55cbc7(0x2c6)]-0x1,_0x5dea6a;_0x2fbc98>=0x0;_0x2fbc98--)(_0x5dea6a=_0x123df5[_0x2fbc98])&&(_0x5b45a6=_0x5dea6a(_0x5b45a6)||_0x5b45a6);return _0x5b45a6;},Pe=(_0x1e1370,_0x539742)=>(_0x3bc535,_0x1d147a)=>_0x539742(_0x3bc535,_0x1d147a,_0x1e1370);let Q=class{constructor(_0x172bf6,_0x33f834){const _0x40a10c=_0x5a0327;this[_0x40a10c(0x42b)]=_0x172bf6,this['_transformService']=_0x33f834;}[_0x5a0327(0x30e)](_0x9e7e59){const _0x247110=_0x5a0327;var _0x2c8c8f;const _0x2693f6=this[_0x247110(0x42b)][_0x247110(0x210)](Y['DocSelectionManagerService']),_0x22a9a7=(_0x2c8c8f=_0x2693f6[_0x247110(0x357)]())!=null?_0x2c8c8f:[];if(_0x22a9a7[_0x247110(0x2c6)]===0x0)return;const _0x50a6cf=_0x9e7e59[_0x247110(0x342)],_0x1badab=[{'id':_0x247110(0x35d),'params':{'unitId':_0x50a6cf,'actions':null,'textRanges':_0x22a9a7}}],_0x2e84ee=this[_0x247110(0x1d4)][_0x247110(0x3e5)](_0x9e7e59,_0x1badab);if(!m[_0x247110(0x24e)](_0x2e84ee))throw _0x2e84ee[_0x247110(0x39d)];const _0x389866=_0x2e84ee[_0x247110(0x2c3)][0x0][_0x247110(0x22a)][_0x247110(0x402)];Array['isArray'](_0x389866)&&_0x389866['length']&&_0x2693f6[_0x247110(0x2e9)](_0x389866,{'unitId':_0x50a6cf,'subUnitId':_0x50a6cf},!0x1);}};Q=zt([Pe(0x0,a[_0x5a0327(0x43e)](a[_0x5a0327(0x1c0)])),Pe(0x1,m[_0x5a0327(0x3d5)])],Q);var Jt=Object[_0x5a0327(0x3e2)],Zt=(_0x1774a,_0x293337,_0x42e711,_0x4c1b77)=>{const _0x54ad26=_0x5a0327;for(var _0x1fe61a=_0x4c1b77>0x1?void 0x0:_0x4c1b77?Jt(_0x293337,_0x42e711):_0x293337,_0x5155d1=_0x1774a[_0x54ad26(0x2c6)]-0x1,_0x12baa7;_0x5155d1>=0x0;_0x5155d1--)(_0x12baa7=_0x1774a[_0x5155d1])&&(_0x1fe61a=_0x12baa7(_0x1fe61a)||_0x1fe61a);return _0x1fe61a;},M=(_0x453010,_0x1abceb)=>(_0x33b1b1,_0x4971c5)=>_0x1abceb(_0x33b1b1,_0x4971c5,_0x453010);let ee=class extends a[_0x5a0327(0x381)]{constructor(_0xe42526,_0x33782c,_0x406bd1,_0x3b295d,_0x166655,_0x50be62,_0x1acb13,_0x121970){const _0x45279f=_0x5a0327;super(),h(this,_0x45279f(0x22c),new d[(_0x45279f(0x368))](u[_0x45279f(0x227)][_0x45279f(0x41d)])),(this[_0x45279f(0x2f4)]=_0xe42526,this[_0x45279f(0x2dd)]=_0x33782c,this[_0x45279f(0x356)]=_0x406bd1,this[_0x45279f(0x2a6)]=_0x3b295d,this[_0x45279f(0x1bb)]=_0x166655,this[_0x45279f(0x2e6)]=_0x50be62,this['_messageService']=_0x1acb13,this[_0x45279f(0x265)]=_0x121970,this[_0x45279f(0x389)]());}['_initEntityListener'](){const _0x1ca84c=_0x5a0327;this[_0x1ca84c(0x27a)](this['_collaborationController'][_0x1ca84c(0x3e6)][_0x1ca84c(0x293)](_0x1a44d2=>{const _0x21ea75=_0x1ca84c,_0x17123d=this[_0x21ea75(0x2f4)][_0x21ea75(0x2de)][_0x21ea75(0x293)](_0x3bf5f5=>{const _0x347f59=_0x21ea75;if(_0x3bf5f5==null)return;const {unitId:_0x26e0d2,redoState:_0x191d84,commandId:_0x33d033}=_0x3bf5f5;if(_0x26e0d2!==_0x1a44d2[_0x347f59(0x342)])return;const _0x4d80c3={'id':_0x33d033,'type':a[_0x347f59(0x25b)][_0x347f59(0x2e4)],'params':{'unitId':_0x26e0d2,'actions':_0x191d84[_0x347f59(0x1c1)],'textRanges':null}};_0x1a44d2[_0x347f59(0x374)](_0x4d80c3);});if(_0x1a44d2[_0x21ea75(0x27a)](_0x17123d),_0x1a44d2 instanceof u[_0x21ea75(0x1ec)]){const _0x35f6e5={'onTransformIME':_0x2c1456=>this[_0x21ea75(0x356)][_0x21ea75(0x3ab)](_0x2c1456),'onTransformState':_0x45dedf=>this['_docTransformStateCacheService'][_0x21ea75(0x1fc)](_0x45dedf),'onTransformSelections':_0x457a12=>this[_0x21ea75(0x1bb)][_0x21ea75(0x30e)](_0x457a12),'onSyncEditingCollabCursor':_0x40424a=>this['_docSyncEditingCollabCursorService'][_0x21ea75(0x1d6)](_0x40424a),'onTransformRemoteChangesetByIMECache':_0x50a66f=>this['_docTransformIMECacheService'][_0x21ea75(0x358)](_0x50a66f),'onTransformRemoteChangesetByStateCache':_0x52bfd0=>this[_0x21ea75(0x2a6)][_0x21ea75(0x358)](_0x52bfd0)};_0x1a44d2['addHandlerCallback'](_0x35f6e5);}}));}};ee=Zt([M(0x0,a[_0x5a0327(0x43e)](b['DocStateChangeManagerService'])),M(0x1,a[_0x5a0327(0x43e)](u[_0x5a0327(0x21a)])),M(0x2,a[_0x5a0327(0x43e)](J)),M(0x3,a['Inject'](Z)),M(0x4,a['Inject'](Q)),M(0x5,a['Inject'](pe)),M(0x6,R[_0x5a0327(0x40d)]),M(0x7,a['Inject'](a[_0x5a0327(0x235)]))],ee);var Qt=Object[_0x5a0327(0x3e2)],es=(_0x59a004,_0x2aa709,_0x540826,_0x3f6ed0)=>{const _0x5c805f=_0x5a0327;for(var _0x5c4858=_0x3f6ed0>0x1?void 0x0:_0x3f6ed0?Qt(_0x2aa709,_0x540826):_0x2aa709,_0x128738=_0x59a004[_0x5c805f(0x2c6)]-0x1,_0x1585f0;_0x128738>=0x0;_0x128738--)(_0x1585f0=_0x59a004[_0x128738])&&(_0x5c4858=_0x1585f0(_0x5c4858)||_0x5c4858);return _0x5c4858;},_e=(_0x48ec77,_0x3ddbf7)=>(_0x319398,_0x1b61cb)=>_0x3ddbf7(_0x319398,_0x1b61cb,_0x48ec77);let me=class extends a['Disposable']{constructor(_0x47ecb5,_0x3a21c5,_0x58cedd){const _0x1cf6a1=_0x5a0327;super(),h(this,_0x1cf6a1(0x1f9),new Map()),h(this,_0x1cf6a1(0x31b),new Map()),h(this,_0x1cf6a1(0x3dd),!0x1),(this[_0x1cf6a1(0x404)]=_0x47ecb5,this['_localStorageService']=_0x3a21c5,this[_0x1cf6a1(0x32b)]=_0x58cedd);}['disableLocalCache'](){const _0x3d18fa=_0x5a0327;this[_0x3d18fa(0x3dd)]=!0x0;}[_0x5a0327(0x3f6)](){const _0x2b0c47=_0x5a0327;this[_0x2b0c47(0x3dd)]=!0x1;}get['saveTaskMap'](){const _0x5d2dfc=_0x5a0327;return this[_0x5d2dfc(0x31b)];}[_0x5a0327(0x380)](){const _0x15a168=_0x5a0327;this[_0x15a168(0x30f)]()[_0x15a168(0x32a)](()=>super[_0x15a168(0x380)]());}async[_0x5a0327(0x3a9)](_0x3f0f66){const _0x1a88e8=_0x5a0327;return this['_disabled']?null:this[_0x1a88e8(0x304)][_0x1a88e8(0x2c2)](u[_0x1a88e8(0x371)](_0x3f0f66));}async[_0x5a0327(0x1bc)](_0x580e71,_0x1135b6){const _0x53d43c=_0x5a0327;return!!this[_0x53d43c(0x304)]['setItem'](_0x580e71,_0x1135b6);}[_0x5a0327(0x236)](_0x26a286,_0x29c68f,_0x4980c3,_0x1f64da){const _0x566f92=_0x5a0327,_0x4b5933=this[_0x566f92(0x32b)][_0x566f92(0x383)](_0x26a286);this['_cachedData'][_0x566f92(0x421)](_0x26a286,{'unitID':_0x26a286,'type':_0x29c68f,'awaitingChangeset':_0x4980c3,'mutations':_0x1f64da,'rev':_0x4b5933}),this['_saveTaskMap'][_0x566f92(0x203)](_0x26a286)||this[_0x566f92(0x300)](_0x26a286);}[_0x5a0327(0x300)](_0x445814){const _0x20aed4=_0x5a0327,_0x308a0c=this['_getSaveTimeout']();_0x308a0c===0x0?this['_saveCache'](_0x445814):this[_0x20aed4(0x31b)][_0x20aed4(0x421)](_0x445814,setTimeout(()=>this[_0x20aed4(0x42d)](_0x445814),_0x308a0c));}[_0x5a0327(0x220)](){const _0x126f1d=_0x5a0327;var _0x5cd1bc;return(_0x5cd1bc=this[_0x126f1d(0x404)][_0x126f1d(0x1e5)](u[_0x126f1d(0x212)]))!=null?_0x5cd1bc:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x33adfe){const _0xbaf95e=_0x5a0327,_0x5bdf50=this['_saveTaskMap'][_0xbaf95e(0x210)](_0x33adfe);return _0x5bdf50!==void 0x0&&window['clearTimeout'](_0x5bdf50),this[_0xbaf95e(0x304)][_0xbaf95e(0x25c)](u['getLocalCacheKey'](_0x33adfe),this['_cachedData'][_0xbaf95e(0x210)](_0x33adfe))[_0xbaf95e(0x32a)](()=>this['_saveTaskMap'][_0xbaf95e(0x3c3)](_0x33adfe));}async['exhaustSavingTask'](){const _0xa20aff=_0x5a0327,_0x357ebf=[];this[_0xa20aff(0x31b)]['forEach']((_0x4b888e,_0xdd836)=>{const _0x9efd5b=_0xa20aff;window[_0x9efd5b(0x25f)](_0x4b888e),_0x357ebf[_0x9efd5b(0x225)](this[_0x9efd5b(0x42d)](_0xdd836)[_0x9efd5b(0x32a)](()=>{const _0x32bdd4=_0x9efd5b;this[_0x32bdd4(0x31b)][_0x32bdd4(0x3c3)](_0xdd836);}));}),await Promise[_0xa20aff(0x30b)](_0x357ebf);}};me=es([_e(0x0,a[_0x5a0327(0x42f)]),_e(0x1,a[_0x5a0327(0x3ae)]),_e(0x2,a[_0x5a0327(0x43e)](m[_0x5a0327(0x250)]))],me);class ke extends a[_0x5a0327(0x313)]{constructor(){const _0x580a00=_0x5a0327;super(),h(this,_0x580a00(0x31d)),this[_0x580a00(0x31d)]=d[_0x580a00(0x321)](window,_0x580a00(0x1be))[_0x580a00(0x2f0)](d[_0x580a00(0x1e6)](this[_0x580a00(0x2a9)]),d['shareReplay'](0x1),d[_0x580a00(0x30d)](void 0x0));}[_0x5a0327(0x299)](_0x4662e1,_0x2c35bb,_0x5b1c8f=!0x1){const _0x75e23c=_0x5a0327,_0x3b9189=new URL(window[_0x75e23c(0x427)][_0x75e23c(0x378)]);_0x3b9189[_0x75e23c(0x3db)][_0x75e23c(0x421)](_0x4662e1,_0x2c35bb),_0x5b1c8f?window[_0x75e23c(0x2cf)][_0x75e23c(0x433)]('','',_0x3b9189['toString']()):window['history']['pushState']('','',_0x3b9189[_0x75e23c(0x33b)]());}[_0x5a0327(0x3e3)](_0x148774,_0x546321=!0x1){const _0x5e55e4=_0x5a0327,_0xbf47b7=new URL(window[_0x5e55e4(0x427)][_0x5e55e4(0x378)]);_0xbf47b7[_0x5e55e4(0x3db)][_0x5e55e4(0x3c3)](_0x148774),_0x546321?window[_0x5e55e4(0x2cf)][_0x5e55e4(0x433)]('','',_0xbf47b7['toString']()):window[_0x5e55e4(0x2cf)][_0x5e55e4(0x320)]('','',_0xbf47b7[_0x5e55e4(0x33b)]());}['getParam'](_0x567f56){const _0x9d0b68=_0x5a0327;var _0x41cb31;return(_0x41cb31=new URL(window[_0x9d0b68(0x427)]['href'])['searchParams']['get'](_0x567f56))!=null?_0x41cb31:void 0x0;}}var ts=Object[_0x5a0327(0x2af)],ss=Object[_0x5a0327(0x3e2)],ns=(_0x594ae2,_0x3148ca,_0xea49d9)=>_0x3148ca in _0x594ae2?ts(_0x594ae2,_0x3148ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xea49d9}):_0x594ae2[_0x3148ca]=_0xea49d9,is=(_0x28a47c,_0x22d50a,_0x59a310,_0x2b44af)=>{const _0xff2a96=_0x5a0327;for(var _0x151b66=_0x2b44af>0x1?void 0x0:_0x2b44af?ss(_0x22d50a,_0x59a310):_0x22d50a,_0x372394=_0x28a47c[_0xff2a96(0x2c6)]-0x1,_0x13df0f;_0x372394>=0x0;_0x372394--)(_0x13df0f=_0x28a47c[_0x372394])&&(_0x151b66=_0x13df0f(_0x151b66)||_0x151b66);return _0x151b66;},ue=(_0x88362,_0xae7dd9)=>(_0x501cd1,_0x42e8ff)=>_0xae7dd9(_0x501cd1,_0x42e8ff,_0x88362),rs=(_0x502078,_0x3c5da9,_0x5d53f8)=>ns(_0x502078,_0x3c5da9+'',_0x5d53f8);const os=_0x5a0327(0x23d);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x2b6032=Me,_0x2f9ec0,_0x504bc7,_0x6c4225){const _0x4db4ba=_0x5a0327;super(),this[_0x4db4ba(0x3d7)]=_0x2b6032,this[_0x4db4ba(0x355)]=_0x2f9ec0,this['_injector']=_0x504bc7,this[_0x4db4ba(0x404)]=_0x6c4225;const {..._0x4dde90}=a['merge']({},Me,this[_0x4db4ba(0x3d7)]);this[_0x4db4ba(0x404)][_0x4db4ba(0x2b3)](Wt,_0x4dde90);}[_0x5a0327(0x387)](){const _0x25ec72=_0x5a0327;this[_0x25ec72(0x3dc)](),this['_initDependencies']();}['onRendered'](){const _0x490f30=_0x5a0327;this[_0x490f30(0x21e)]();}[_0x5a0327(0x3dc)](){const _0x3ed4e5=_0x5a0327;var _0x5ac89f;const _0x215b02=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x3ed4e5(0x1e1)],{'useClass':q['WebSocketService']}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x3ed4e5(0x399)]],[ee],[z],[x],[fe],[exports[_0x3ed4e5(0x3fe)]]];a['registerDependencies'](this[_0x3ed4e5(0x42b)],a[_0x3ed4e5(0x3e9)](_0x215b02,(_0x5ac89f=this[_0x3ed4e5(0x3d7)])==null?void 0x0:_0x5ac89f[_0x3ed4e5(0x41b)]));}[_0x5a0327(0x21e)](){const _0xdd67aa=_0x5a0327;this[_0xdd67aa(0x27a)](this[_0xdd67aa(0x355)][_0xdd67aa(0x35a)](a[_0xdd67aa(0x204)]['UNIVER_DOC'],[ge])),this[_0xdd67aa(0x27a)](this[_0xdd67aa(0x355)]['registerRenderModule'](a[_0xdd67aa(0x204)][_0xdd67aa(0x352)],[Ie]));}['_initDependencies'](){const _0x3afcce=_0x5a0327;a['touchDependencies'](this[_0x3afcce(0x42b)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x3afcce(0x3fe)]]]);}},rs(exports[_0x5a0327(0x248)],_0x5a0327(0x1e8),os),exports[_0x5a0327(0x248)]=is([a[_0x5a0327(0x23e)](u[_0x5a0327(0x34e)]),ue(0x1,p['IRenderManagerService']),ue(0x2,a[_0x5a0327(0x43e)](a['Injector'])),ue(0x3,a[_0x5a0327(0x42f)])],exports[_0x5a0327(0x248)]);var as=Object[_0x5a0327(0x3e2)],cs=(_0x4039e9,_0x25bc41,_0x104e7b,_0x53692c)=>{const _0x17e3b1=_0x5a0327;for(var _0x5f33dd=_0x53692c>0x1?void 0x0:_0x53692c?as(_0x25bc41,_0x104e7b):_0x25bc41,_0x3fdc3c=_0x4039e9[_0x17e3b1(0x2c6)]-0x1,_0x2fe67b;_0x3fdc3c>=0x0;_0x3fdc3c--)(_0x2fe67b=_0x4039e9[_0x3fdc3c])&&(_0x5f33dd=_0x2fe67b(_0x5f33dd)||_0x5f33dd);return _0x5f33dd;},F=(_0x1f9616,_0x5ac833)=>(_0x324ad0,_0x44ba77)=>_0x5ac833(_0x324ad0,_0x44ba77,_0x1f9616);exports[_0x5a0327(0x20f)]=class extends u['CollaborationSocketService']{constructor(_0xf761d6,_0x313399,_0x2612f1,_0x51c905,_0x551713){super(_0xf761d6,_0x313399,_0x2612f1,_0x51c905,_0x551713);}async[_0x5a0327(0x307)](_0x1a0158){const _0x224e97=_0x5a0327,_0x4ec11d=await this['_getSessionTicket'](),_0x2e2145=this['_createSocketURL'](_0x1a0158,_0x4ec11d);return this[_0x224e97(0x286)](_0x2e2145);}['_createSocketURL'](_0x431c47,_0x1de090){const _0x40a5fc=_0x5a0327,_0x15031c=typeof window>'u'?new URL(_0x431c47):new URL(_0x431c47,window[_0x40a5fc(0x427)]['origin']);_0x15031c['searchParams']['set'](_0x40a5fc(0x339),_0x1de090);const _0x48668b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x40a5fc(0x427)][_0x40a5fc(0x2be)]);return _0x48668b[_0x40a5fc(0x210)](_0x40a5fc(0x37e))&&_0x15031c[_0x40a5fc(0x3db)][_0x40a5fc(0x421)](_0x40a5fc(0x37e),_0x48668b[_0x40a5fc(0x210)](_0x40a5fc(0x37e))),_0x15031c[_0x40a5fc(0x33b)]();}async[_0x5a0327(0x1c2)](){const _0x126c51=_0x5a0327;var _0x2368a7,_0x2f8a08,_0x2afce5;const _0xe5dc31=this[_0x126c51(0x404)][_0x126c51(0x1e5)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x510540=(_0x2368a7=_0xe5dc31==null?void 0x0:_0xe5dc31[_0x126c51(0x32e)])!=null?_0x2368a7:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x2afce5=(_0x2f8a08=(await this[_0x126c51(0x39c)][_0x126c51(0x210)](_0x510540,{'headers':{'Content-Type':_0x126c51(0x3a5)}}))[_0x126c51(0x20a)])==null?void 0x0:_0x2f8a08[_0x126c51(0x3ff)])!=null?_0x2afce5:'';}},exports[_0x5a0327(0x20f)]=cs([F(0x0,a[_0x5a0327(0x43e)](a[_0x5a0327(0x1c0)])),F(0x1,a[_0x5a0327(0x43e)](q['HTTPService'])),F(0x2,a['IConfigService']),F(0x3,a[_0x5a0327(0x2ce)]),F(0x4,m[_0x5a0327(0x237)])],exports[_0x5a0327(0x20f)]);const Ne=0x7530,we=_0x5a0327(0x3d8);class ls extends a[_0x5a0327(0x381)]{constructor(){const _0x221282=_0x5a0327;super(),h(this,_0x221282(0x370),a[_0x221282(0x268)]()),h(this,_0x221282(0x24b),new Set()),h(this,_0x221282(0x401),new Map()),h(this,_0x221282(0x1f8),null),h(this,_0x221282(0x26e),new Map()),h(this,_0x221282(0x32c),new Map()),this[_0x221282(0x428)]();}[_0x5a0327(0x380)](){const _0xc1b240=_0x5a0327;super['dispose'](),this[_0xc1b240(0x26e)]['forEach']((_0x7d5036,_0x363017)=>this[_0xc1b240(0x217)](_0x363017)),this[_0xc1b240(0x1f8)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x5a0327(0x20b)](_0x3f3a88){const _0x3ab09e=_0x5a0327;return this['_ensureSubject'](_0x3f3a88)['pipe'](d[_0x3ab09e(0x292)]());}[_0x5a0327(0x3f1)](_0x417389){const _0x3410cf=_0x5a0327;this['_selfUnitIDs']['size']===0x0&&this[_0x3410cf(0x2d6)](),this[_0x3410cf(0x24b)]['add'](_0x417389),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x417389],'isForwarded':!0x1});}[_0x5a0327(0x1f3)](_0x1da983){const _0x4063b7=_0x5a0327;this['_selfUnitIDs']['delete'](_0x1da983),this['_selfUnitIDs'][_0x4063b7(0x223)]===0x0&&this[_0x4063b7(0x1f8)]&&window[_0x4063b7(0x27c)](this[_0x4063b7(0x1f8)]);}[_0x5a0327(0x428)](){const _0x1fe5a3=_0x5a0327;this[_0x1fe5a3(0x27a)](a[_0x1fe5a3(0x2ba)](d[_0x1fe5a3(0x321)](window,'storage')[_0x1fe5a3(0x293)](_0x21a977=>{const _0xf7b5d7=_0x1fe5a3;if(_0x21a977[_0xf7b5d7(0x3ac)]!==we||!_0x21a977[_0xf7b5d7(0x2cd)])return;const _0x70895=JSON[_0xf7b5d7(0x2d0)](_0x21a977[_0xf7b5d7(0x2cd)]);this['_handleEvent'](_0x70895);}))),window[_0x1fe5a3(0x3f5)]('unload',()=>this[_0x1fe5a3(0x3cb)]({'type':0x1,'memberID':this[_0x1fe5a3(0x370)],'unitIDs':Array[_0x1fe5a3(0x287)](this[_0x1fe5a3(0x24b)])}));}[_0x5a0327(0x1da)](_0x390ebc){const _0x42d2ff=_0x5a0327;switch(_0x390ebc['type']){case 0x0:this[_0x42d2ff(0x3ec)](_0x390ebc);break;case 0x1:this[_0x42d2ff(0x239)](_0x390ebc);break;case 0x2:this[_0x42d2ff(0x42a)](_0x390ebc);break;}}[_0x5a0327(0x3ec)](_0x270738){const _0x224ee4=_0x5a0327,{unitIDs:_0x3d6c85,memberID:_0x4b8949,isForwarded:_0x17cbd8}=_0x270738;_0x3d6c85[_0x224ee4(0x22d)](_0x3bb869=>{const _0x50ce17=_0x224ee4;if(!_0x17cbd8&&this[_0x50ce17(0x401)][_0x50ce17(0x203)](_0x3bb869)&&this[_0x50ce17(0x226)](_0x3bb869)[_0x50ce17(0x430)](u[_0x50ce17(0x3ef)]['OTHER_CLIENTS_EDITING']),!this[_0x50ce17(0x401)][_0x50ce17(0x203)](_0x3bb869)||!this[_0x50ce17(0x401)][_0x50ce17(0x210)](_0x3bb869)['has'](_0x4b8949)){const _0x241fbd=this[_0x50ce17(0x401)][_0x50ce17(0x210)](_0x3bb869)||new Set();_0x241fbd['add'](_0x4b8949),this[_0x50ce17(0x401)][_0x50ce17(0x421)](_0x3bb869,_0x241fbd),this[_0x50ce17(0x28f)](_0x4b8949);}}),_0x17cbd8||this[_0x224ee4(0x3cb)]({'type':0x0,'memberID':this[_0x224ee4(0x370)],'unitIDs':[...this[_0x224ee4(0x24b)]],'isForwarded':!0x0});}[_0x5a0327(0x28f)](_0x5ee68c){const _0x5bf1f2=_0x5a0327;this[_0x5bf1f2(0x217)](_0x5ee68c);const _0x4e8aae=window[_0x5bf1f2(0x349)](()=>{const _0x38dca6=_0x5bf1f2;this[_0x38dca6(0x401)][_0x38dca6(0x22d)](_0x486c39=>{_0x486c39['delete'](_0x5ee68c);});},Ne*0x2);this[_0x5bf1f2(0x26e)]['set'](_0x5ee68c,_0x4e8aae);}[_0x5a0327(0x217)](_0x2a6805){const _0x1381a1=_0x5a0327;if(this['_clearOtherTimers'][_0x1381a1(0x203)](_0x2a6805)){const _0x29b57c=this[_0x1381a1(0x26e)][_0x1381a1(0x210)](_0x2a6805);_0x29b57c&&window['clearTimeout'](_0x29b57c),this[_0x1381a1(0x26e)][_0x1381a1(0x421)](_0x2a6805,null);}}[_0x5a0327(0x239)](_0x3d5178){const _0x48ac69=_0x5a0327,{memberID:_0x51bc80,unitIDs:_0x9e0bfa}=_0x3d5178;_0x9e0bfa[_0x48ac69(0x22d)](_0x1e1a93=>{const _0x1cb2fd=_0x48ac69;var _0x19d31a;const _0x33b65f=this[_0x1cb2fd(0x401)][_0x1cb2fd(0x210)](_0x1e1a93);_0x33b65f&&(_0x33b65f[_0x1cb2fd(0x3c3)](_0x51bc80),(_0x19d31a=this[_0x1cb2fd(0x226)](_0x1e1a93))==null||_0x19d31a[_0x1cb2fd(0x430)](_0x33b65f[_0x1cb2fd(0x223)]===0x0?u[_0x1cb2fd(0x3ef)][_0x1cb2fd(0x258)]:u[_0x1cb2fd(0x3ef)][_0x1cb2fd(0x3d0)]));}),this[_0x48ac69(0x217)](_0x51bc80);}[_0x5a0327(0x42a)](_0x1178e5){const _0x3e7188=_0x5a0327;this[_0x3e7188(0x28f)](_0x1178e5[_0x3e7188(0x280)]);}[_0x5a0327(0x3cb)](_0x3f6558){const _0x481612=_0x5a0327;localStorage[_0x481612(0x25c)](we,JSON[_0x481612(0x2aa)](_0x3f6558));}['_scheduleHeartbeat'](){const _0x9778aa=_0x5a0327;this[_0x9778aa(0x1f8)]=window[_0x9778aa(0x341)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Ne);}['_ensureSubject'](_0x5b38ac){const _0x487ef5=_0x5a0327;return this[_0x487ef5(0x32c)][_0x487ef5(0x203)](_0x5b38ac)||this[_0x487ef5(0x32c)][_0x487ef5(0x421)](_0x5b38ac,new d[(_0x487ef5(0x368))](u[_0x487ef5(0x3ef)][_0x487ef5(0x258)])),this[_0x487ef5(0x32c)][_0x487ef5(0x210)](_0x5b38ac);}}var Be=(_0x217aa0=>(_0x217aa0[_0x217aa0[_0x5a0327(0x2ef)]=0x0]=_0x5a0327(0x2ef),_0x217aa0[_0x217aa0['OK']=0x1]='OK',_0x217aa0[_0x217aa0[_0x5a0327(0x224)]=0x2]=_0x5a0327(0x224),_0x217aa0[_0x217aa0[_0x5a0327(0x417)]=0x3]=_0x5a0327(0x417),_0x217aa0[_0x217aa0[_0x5a0327(0x41c)]=0x4]=_0x5a0327(0x41c),_0x217aa0[_0x217aa0[_0x5a0327(0x241)]=0x5]=_0x5a0327(0x241),_0x217aa0[_0x217aa0[_0x5a0327(0x39b)]=0x6]=_0x5a0327(0x39b),_0x217aa0[_0x217aa0['INVALID_ARGUMENT']=0x7]=_0x5a0327(0x329),_0x217aa0[_0x217aa0['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x217aa0[_0x217aa0['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x217aa0[_0x217aa0[_0x5a0327(0x3de)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x217aa0[_0x217aa0[_0x5a0327(0x23b)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x217aa0[_0x217aa0[_0x5a0327(0x326)]=0x1772]=_0x5a0327(0x326),_0x217aa0[_0x217aa0[_0x5a0327(0x375)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x217aa0[_0x217aa0[_0x5a0327(0x22f)]=0x1b59]=_0x5a0327(0x22f),_0x217aa0[_0x217aa0['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5a0327(0x20d),_0x217aa0[_0x217aa0[_0x5a0327(0x314)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x217aa0[_0x217aa0['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x217aa0[_0x217aa0[_0x5a0327(0x327)]=0x1b5d]=_0x5a0327(0x327),_0x217aa0[_0x217aa0[_0x5a0327(0x233)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x217aa0[_0x217aa0[_0x5a0327(0x328)]=0x2329]=_0x5a0327(0x328),_0x217aa0[_0x217aa0[_0x5a0327(0x2a7)]=0x232a]=_0x5a0327(0x2a7),_0x217aa0[_0x217aa0[_0x5a0327(0x3b4)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x217aa0[_0x217aa0[_0x5a0327(0x1fe)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x217aa0[_0x217aa0[_0x5a0327(0x3bf)]=0x232d]=_0x5a0327(0x3bf),_0x217aa0[_0x217aa0[_0x5a0327(0x1bf)]=0x2711]=_0x5a0327(0x1bf),_0x217aa0[_0x217aa0[_0x5a0327(0x382)]=0x2712]=_0x5a0327(0x382),_0x217aa0[_0x217aa0[_0x5a0327(0x3b2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x217aa0[_0x217aa0['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x217aa0[_0x217aa0[_0x5a0327(0x3b9)]=0x2af9]=_0x5a0327(0x3b9),_0x217aa0[_0x217aa0[_0x5a0327(0x432)]=-0x1]=_0x5a0327(0x432),_0x217aa0))(Be||{}),hs=Object[_0x5a0327(0x3e2)],_s=(_0x5e1e2e,_0x359a1d,_0x445801,_0x3f336d)=>{const _0x57bf79=_0x5a0327;for(var _0xab3918=_0x3f336d>0x1?void 0x0:_0x3f336d?hs(_0x359a1d,_0x445801):_0x359a1d,_0x4f738d=_0x5e1e2e[_0x57bf79(0x2c6)]-0x1,_0x256c75;_0x4f738d>=0x0;_0x4f738d--)(_0x256c75=_0x5e1e2e[_0x4f738d])&&(_0xab3918=_0x256c75(_0xab3918)||_0xab3918);return _0xab3918;},de=(_0x5a58b7,_0x2cb567)=>(_0x13b264,_0x3aa760)=>_0x2cb567(_0x13b264,_0x3aa760,_0x5a58b7);exports[_0x5a0327(0x41a)]=class extends a[_0x5a0327(0x381)]{constructor(_0x3e093d,_0x25fe86,_0x2471df){const _0x19f777=_0x5a0327;super(),this[_0x19f777(0x43c)]=_0x3e093d,this[_0x19f777(0x39c)]=_0x25fe86,this['_configService']=_0x2471df;}async[_0x5a0327(0x253)](_0x51b15b,_0x573561,_0x5eaa50,..._0x299349){const _0x22902f=_0x5a0327;var _0x24de8a,_0x3056bf,_0xe6bd17,_0x1f37d2;const _0xe88e0c=this['_instanceService'][_0x22902f(0x2ea)]();if(!_0xe88e0c)throw new Error(_0x22902f(0x1dd));const _0x26b020=((_0x24de8a=this[_0x22902f(0x404)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x24de8a:u[_0x22902f(0x21d)])+'/'+_0x51b15b+'/run/'+_0x573561,_0x10d939=new URL(window[_0x22902f(0x427)][_0x22902f(0x378)]),_0x153757={'scriptId':_0x51b15b,'runId':(_0x3056bf=_0x10d939[_0x22902f(0x3db)][_0x22902f(0x210)](_0x22902f(0x37e)))!=null?_0x3056bf:'','function':_0x573561,'unitId':_0xe88e0c[_0x22902f(0x36a)](),'argsOfFunction':JSON[_0x22902f(0x2aa)](_0x299349),'invokeId':(_0xe6bd17=_0x5eaa50['invokeId'])!=null?_0xe6bd17:'','executionId':(_0x1f37d2=_0x5eaa50[_0x22902f(0x256)])!=null?_0x1f37d2:''};try{const _0x1b3aa5=await this[_0x22902f(0x39c)][_0x22902f(0x30c)](_0x26b020,{'body':_0x153757});return _0x1b3aa5[_0x22902f(0x20a)][_0x22902f(0x39d)]&&_0x1b3aa5[_0x22902f(0x20a)]['error'][_0x22902f(0x246)]!==Be['OK']?_0x22902f(0x205):_0x1b3aa5['body'][_0x22902f(0x323)];}catch{return'Failed';}}},exports[_0x5a0327(0x41a)]=_s([de(0x0,a[_0x5a0327(0x377)]),de(0x1,a[_0x5a0327(0x43e)](q[_0x5a0327(0x25e)])),de(0x2,a['IConfigService'])],exports[_0x5a0327(0x41a)]),exports[_0x5a0327(0x231)]=je,exports[_0x5a0327(0x2ca)]=Ee,exports['SheetCollabCursorShape']=ye,exports[_0x5a0327(0x2c4)]=ls,exports[_0x5a0327(0x316)]=ke;
1
+ 'use strict';const _0x1cc422=_0x1c04;(function(_0x34aeb9,_0x129c59){const _0xd1a31f=_0x1c04,_0x42cd5c=_0x34aeb9();while(!![]){try{const _0x3267ab=parseInt(_0xd1a31f(0x16d))/0x1*(-parseInt(_0xd1a31f(0xec))/0x2)+parseInt(_0xd1a31f(0x146))/0x3+-parseInt(_0xd1a31f(0x200))/0x4*(parseInt(_0xd1a31f(0x233))/0x5)+-parseInt(_0xd1a31f(0x20f))/0x6+-parseInt(_0xd1a31f(0x11b))/0x7+-parseInt(_0xd1a31f(0x377))/0x8*(-parseInt(_0xd1a31f(0x115))/0x9)+parseInt(_0xd1a31f(0x17d))/0xa;if(_0x3267ab===_0x129c59)break;else _0x42cd5c['push'](_0x42cd5c['shift']());}catch(_0x2a749){_0x42cd5c['push'](_0x42cd5c['shift']());}}}(_0x2eb0,0xe810a));var Xe=Object[_0x1cc422(0x2da)],Ge=(_0x4961fd,_0x3ff728,_0xd59f7f)=>_0x3ff728 in _0x4961fd?Xe(_0x4961fd,_0x3ff728,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd59f7f}):_0x4961fd[_0x3ff728]=_0xd59f7f,h=(_0x4ab2c4,_0x30cd02,_0x282f91)=>Ge(_0x4ab2c4,typeof _0x30cd02!=_0x1cc422(0x33b)?_0x30cd02+'':_0x30cd02,_0x282f91);Object[_0x1cc422(0x2da)](exports,Symbol[_0x1cc422(0x316)],{'value':_0x1cc422(0x225)});const u=require(_0x1cc422(0x24b)),a=require(_0x1cc422(0x2b7)),p=require('@univerjs/engine-render'),q=require(_0x1cc422(0x307)),b=require(_0x1cc422(0x2cd)),qe=require(_0x1cc422(0x17c)),d=require(_0x1cc422(0x2b9)),Y=require(_0x1cc422(0x22c)),m=require('@univerjs-pro/collaboration'),Te=require(_0x1cc422(0x14a)),g=require(_0x1cc422(0x29d)),$=require(_0x1cc422(0x2bc)),G=require(_0x1cc422(0x245)),w=require('react/jsx-runtime'),R=require(_0x1cc422(0x246)),T=require(_0x1cc422(0x331)),M=require(_0x1cc422(0x30b)),Ke=require('@univerjs/rpc');var ze=Object[_0x1cc422(0x1fc)],Je=(_0x1ca011,_0x31a186,_0x5aac07,_0x251859)=>{const _0x5e2872=_0x1cc422;for(var _0x3c15f8=_0x251859>0x1?void 0x0:_0x251859?ze(_0x31a186,_0x5aac07):_0x31a186,_0x4c6191=_0x1ca011[_0x5e2872(0x357)]-0x1,_0x4d8444;_0x4c6191>=0x0;_0x4c6191--)(_0x4d8444=_0x1ca011[_0x4c6191])&&(_0x3c15f8=_0x4d8444(_0x3c15f8)||_0x3c15f8);return _0x3c15f8;},Re=(_0x58690e,_0x4fb91b)=>(_0x2c6e0a,_0x261b24)=>_0x4fb91b(_0x2c6e0a,_0x261b24,_0x58690e);let fe=class extends a[_0x1cc422(0x2c3)]{constructor(_0x2c85da,_0x331d5e){const _0x26b435=_0x1cc422;super(),this[_0x26b435(0x222)]=_0x2c85da,this[_0x26b435(0x32c)]=_0x331d5e,this[_0x26b435(0x28c)]();}[_0x1cc422(0x28c)](){const _0x3b8eb1=_0x1cc422,_0x204a1b=this;this['disposeWithMe'](this[_0x3b8eb1(0x222)][_0x3b8eb1(0x324)]({'onBeforePasteImage':async _0x190484=>{const _0x52aa6d=_0x3b8eb1,_0x430434=await _0x204a1b['_imageIoService'][_0x52aa6d(0x290)](_0x190484);return _0x430434?{'source':_0x430434['source'],'imageSourceType':_0x430434[_0x52aa6d(0x17a)]}:null;}}));}};fe=Je([Re(0x0,b['IDocClipboardService']),Re(0x1,qe[_0x1cc422(0x21e)])],fe);const Oe=[_0x1cc422(0x110),_0x1cc422(0x1d1),_0x1cc422(0x1e2),_0x1cc422(0x1e6),'blue400',_0x1cc422(0x361)];class Ce extends a[_0x1cc422(0x34e)]{constructor(){const _0x50079c=_0x1cc422;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x50079c(0x220),0x0);}[_0x1cc422(0x354)](_0x18977f){const _0x53e745=_0x1cc422;if(this[_0x53e745(0x265)][_0x53e745(0x139)](_0x18977f))return this[_0x53e745(0x265)][_0x53e745(0x12a)](_0x18977f);const _0x413120=Oe[this['_colorIndex']];return this['_colorIndex']=(this[_0x53e745(0x220)]+0x1)%Oe['length'],this[_0x53e745(0x265)][_0x53e745(0x2ab)](_0x18977f,_0x413120),_0x413120;}}function Le(_0x5a28b5){let _0x296f9d='';for(const _0x5407ca of _0x5a28b5){const {startOffset:_0x3a756a,endOffset:_0x1678cb,isActive:_0x387246,rangeType:_0x43777a,segmentId:_0x1b3cbd,segmentPage:_0x368207}=_0x5407ca;_0x296f9d['length']&&(_0x296f9d+=','),_0x296f9d+=_0x3a756a+':'+_0x1678cb+':'+(_0x387246?'1':'0')+':'+_0x43777a+':'+_0x1b3cbd+':'+_0x368207;}return _0x296f9d;}function Ze(_0x1f7c53){const _0x51589d=_0x1cc422,_0xb2625=_0x1f7c53['split'](','),_0x2b11b7=[];for(const _0x101cc2 of _0xb2625){const [_0x349d78,_0x13c0c2,_0x7ac9,_0x45096d,_0x34eb70,_0x15545f]=_0x101cc2['split'](':');_0x2b11b7[_0x51589d(0x2ff)]({'startOffset':Number(_0x349d78),'endOffset':Number(_0x13c0c2),'collapsed':_0x349d78===_0x13c0c2,'isActive':_0x7ac9==='1','rangeType':_0x45096d===a[_0x51589d(0x223)][_0x51589d(0x2af)]?a[_0x51589d(0x223)][_0x51589d(0x2af)]:a[_0x51589d(0x223)][_0x51589d(0x28d)],'segmentId':typeof _0x34eb70==_0x51589d(0x28a)?String(_0x34eb70):'','segmentPage':Number(_0x15545f!=null?_0x15545f:-0x1)});}return _0x2b11b7[_0x51589d(0x165)](_0xb5e58b=>_0xb5e58b[_0x51589d(0x1df)])||(_0x2b11b7[0x0][_0x51589d(0x1df)]=!0x0),_0x2b11b7;}class pe extends a[_0x1cc422(0x2c3)]{constructor(){const _0x49e435=_0x1cc422;super(...arguments),h(this,_0x49e435(0x2a0),new d['BehaviorSubject'](null)),h(this,'collabCursorState$',this[_0x49e435(0x2a0)][_0x49e435(0x132)]());}[_0x1cc422(0x267)](_0x225254){const _0x29f619=_0x1cc422,{unitID:_0x74817b,memberID:_0x59a66e,textRanges:_0x1f27b5}=_0x225254,_0x282d89=Le(_0x1f27b5);if(_0x282d89==='')return;const _0xbeb4bf={'unitID':_0x74817b,'memberID':_0x59a66e,'selection':_0x282d89};this[_0x29f619(0x2a0)][_0x29f619(0x364)](_0xbeb4bf);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0xb6fc3e,_0x5079e9,_0x10d91d,_0x1e378d)=>{for(var _0x11a1e2=_0x1e378d>0x1?void 0x0:_0x1e378d?Qe(_0x5079e9,_0x10d91d):_0x5079e9,_0x130a2b=_0xb6fc3e['length']-0x1,_0xb9d267;_0x130a2b>=0x0;_0x130a2b--)(_0xb9d267=_0xb6fc3e[_0x130a2b])&&(_0x11a1e2=_0xb9d267(_0x11a1e2)||_0x11a1e2);return _0x11a1e2;},P=(_0x5da1c4,_0x23d8cb)=>(_0x3a7ae1,_0x2a611a)=>_0x23d8cb(_0x3a7ae1,_0x2a611a,_0x5da1c4);const tt=0x12c,st=0x64;let Se=class extends a[_0x1cc422(0x2c3)]{constructor(_0x220fd5,_0x12c079,_0x3c9b8f,_0x51ff23,_0x30d9b7,_0x13b61f,_0x264378,_0x54e3ef,_0x30c2ff){const _0x1b05a5=_0x1cc422;super(),h(this,_0x1b05a5(0x18e),!0x1),h(this,_0x1b05a5(0x28c),!0x1),h(this,_0x1b05a5(0x2f3),new d['BehaviorSubject'](new Map())),h(this,_0x1b05a5(0x292),this[_0x1b05a5(0x2f3)][_0x1b05a5(0x132)]()),h(this,'_roomMembers$',new d[(_0x1b05a5(0xf0))]([])),h(this,_0x1b05a5(0x372),this['_roomMembers$'][_0x1b05a5(0x1f0)](d['debounceTime'](tt))),h(this,'_updateLocalCursor',a[_0x1b05a5(0x2de)](_0x419932=>{const _0x150500=_0x1b05a5,_0x406892={'eventID':m['CollaborationEvent'][_0x150500(0x2fc)],'data':{'unitID':this[_0x150500(0x215)],'memberID':this[_0x150500(0x206)][_0x150500(0x1d5)](),'selection':Le(_0x419932)}};this['_session'][_0x150500(0x2f6)](_0x406892,this[_0x150500(0x215)]);},st)),(this[_0x1b05a5(0x215)]=_0x220fd5,this[_0x1b05a5(0x206)]=_0x12c079,this[_0x1b05a5(0x154)]=_0x3c9b8f,this['_colorAssignService']=_0x51ff23,this[_0x1b05a5(0x312)]=_0x30d9b7,this[_0x1b05a5(0x31e)]=_0x13b61f,this[_0x1b05a5(0x2f0)]=_0x264378,this[_0x1b05a5(0x10e)]=_0x54e3ef,this[_0x1b05a5(0x113)]=_0x30c2ff);}get['cursorInfo'](){const _0x47768c=_0x1cc422;return this[_0x47768c(0x2f3)][_0x47768c(0x2e9)]();}get['roomMembers'](){const _0x4070cf=_0x1cc422;return this[_0x4070cf(0x29c)]['getValue']();}[_0x1cc422(0x119)](){const _0x4b6566=_0x1cc422;super[_0x4b6566(0x119)](),this[_0x4b6566(0x2f3)][_0x4b6566(0x364)](new Map()),this[_0x4b6566(0x2f3)][_0x4b6566(0x342)](),this[_0x4b6566(0x29c)][_0x4b6566(0x364)]([]),this[_0x4b6566(0x29c)][_0x4b6566(0x342)]();}['init'](){const _0xde3c49=_0x1cc422;this[_0xde3c49(0x28c)]||(this[_0xde3c49(0x28c)]=!0x0,this[_0xde3c49(0x206)][_0xde3c49(0x353)][_0xde3c49(0x1f0)](d[_0xde3c49(0xf8)](this[_0xde3c49(0x129)]))['subscribe'](_0x5236af=>{const _0xa87d3d=_0xde3c49;_0x5236af===u[_0xa87d3d(0x11a)][_0xa87d3d(0x272)]?this[_0xa87d3d(0x179)]():this[_0xa87d3d(0x15f)]();}),this[_0xde3c49(0x206)]['event$']['pipe'](d[_0xde3c49(0xf8)](this[_0xde3c49(0x129)]))[_0xde3c49(0x24c)](_0x16a135=>{const _0x4d9bc3=_0xde3c49,_0x97c50=_0x16a135[_0x4d9bc3(0x1d2)];_0x97c50===m[_0x4d9bc3(0x359)]['UPDATE_CURSOR']&&this[_0x4d9bc3(0x23c)](_0x16a135),_0x97c50===m['CollaborationEvent'][_0x4d9bc3(0x14e)]&&this[_0x4d9bc3(0x12f)](_0x16a135);}),this['disposeWithMe'](this[_0xde3c49(0x113)][_0xde3c49(0x350)](_0x132f6a=>{const _0x13188e=_0xde3c49,_0x1a87aa=_0x132f6a[_0x13188e(0x133)];_0x1a87aa!=null&&this[_0x13188e(0x18e)]&&_0x132f6a['id']===Y['SetTextSelectionsOperation']['id']&&_0x1a87aa[_0x13188e(0x243)]===this[_0x13188e(0x215)]&&_0x1a87aa[_0x13188e(0x12c)]===!0x1&&_0x1a87aa[_0x13188e(0x248)]['length']>0x0&&this[_0x13188e(0x141)](_0x1a87aa['ranges']);})),this[_0xde3c49(0x31e)][_0xde3c49(0x2c9)][_0xde3c49(0x1f0)](d['takeUntil'](this['dispose$']))[_0xde3c49(0x24c)](_0x113223=>{const _0x27272d=_0xde3c49;if((_0x113223==null?void 0x0:_0x113223[_0x27272d(0x215)])!==this[_0x27272d(0x215)])return;const _0x4abb10={'eventID':m[_0x27272d(0x359)][_0x27272d(0x2fc)],'data':_0x113223};this[_0x27272d(0x23c)](_0x4abb10);}),this[_0xde3c49(0x149)](this[_0xde3c49(0x113)][_0xde3c49(0x350)](_0x3dd6a4=>{const _0x53c68f=_0xde3c49;if(_0x3dd6a4[_0x53c68f(0x133)]==null)return;const _0x28b2e9=_0x3dd6a4[_0x53c68f(0x133)];if(_0x3dd6a4['id']!==Y['RichTextEditingMutation']['id']||_0x28b2e9['unitId']!==this[_0x53c68f(0x215)])return;const _0x13fed8={'id':'doc.mutation.rich-text-editing','params':_0x28b2e9},_0x4ddd5b=this[_0x53c68f(0x29a)];for(const [_0x17107f,_0x374b83]of _0x4ddd5b){const _0x2b4c7b={'id':_0x53c68f(0x32b),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x374b83[_0x53c68f(0x248)]}},_0x219881=this['_transformService'][_0x53c68f(0x124)](_0x13fed8,_0x2b4c7b,!0x1);if(m[_0x53c68f(0x1f8)](_0x219881))throw _0x219881[_0x53c68f(0x1c0)];_0x4ddd5b['set'](_0x17107f,{..._0x374b83,'ranges':_0x219881[_0x53c68f(0x343)][_0x53c68f(0x133)][_0x53c68f(0x194)]});}queueMicrotask(()=>{const _0x5f4ca6=_0x53c68f;this[_0x5f4ca6(0x2f3)]['next'](_0x4ddd5b);});})));}[_0x1cc422(0x23c)](_0x4b49f0){const _0x2d6c1b=_0x1cc422;var _0xad6878,_0x58b8c5;const {memberID:_0x54432e,selection:_0x45849c}=_0x4b49f0[_0x2d6c1b(0x2cb)],_0x22f6ec=Ze(_0x45849c),_0x16eaa1=(_0x58b8c5=(_0xad6878=this[_0x2d6c1b(0x312)]['getMember'](this['unitID'],_0x54432e))==null?void 0x0:_0xad6878[_0x2d6c1b(0x1fb)])!=null?_0x58b8c5:_0x2d6c1b(0x338),_0xeb39fc={'color':this[_0x2d6c1b(0x27e)]['assignAColorForMemberID'](_0x54432e),'name':_0x16eaa1,'ranges':_0x22f6ec},_0x39f49e=this[_0x2d6c1b(0x29a)];_0x39f49e[_0x2d6c1b(0x2ab)](_0x54432e,_0xeb39fc),this[_0x2d6c1b(0x2f3)][_0x2d6c1b(0x364)](_0x39f49e);}[_0x1cc422(0x12f)](_0x4a5dfe){const _0x484fc1=_0x1cc422,{memberID:_0x44ba30}=_0x4a5dfe['data'],_0x1ae75a=this['cursorInfo'];_0x1ae75a['delete'](_0x44ba30),this[_0x484fc1(0x2f3)]['next'](_0x1ae75a);}[_0x1cc422(0x179)](){const _0x34e52a=_0x1cc422;var _0x55e5c0;if(this[_0x34e52a(0x18e)]=!0x0,((_0x55e5c0=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x55e5c0[_0x34e52a(0x111)]())!==this[_0x34e52a(0x215)])return;const _0x4970bb=this[_0x34e52a(0x154)][_0x34e52a(0x12a)](Y['DocSelectionManagerService'])[_0x34e52a(0x136)]();Array[_0x34e52a(0x2fb)](_0x4970bb)&&_0x4970bb['length']>0x0&&this[_0x34e52a(0x141)](_0x4970bb);}[_0x1cc422(0x15f)](){this['_online']=!0x1;}};Se=et([P(0x2,a['Inject'](a['Injector'])),P(0x3,a[_0x1cc422(0x1f4)](Ce)),P(0x4,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x2a7)])),P(0x5,a[_0x1cc422(0x1f4)](pe)),P(0x6,m['ITransformService']),P(0x7,a[_0x1cc422(0x195)]),P(0x8,a['ICommandService'])],Se);var nt=Object[_0x1cc422(0x1fc)],it=(_0x26a30d,_0x4cefc2,_0x2c882b,_0x61be99)=>{for(var _0x376344=_0x61be99>0x1?void 0x0:_0x61be99?nt(_0x4cefc2,_0x2c882b):_0x4cefc2,_0x5bb59b=_0x26a30d['length']-0x1,_0x5b2019;_0x5bb59b>=0x0;_0x5bb59b--)(_0x5b2019=_0x26a30d[_0x5bb59b])&&(_0x376344=_0x5b2019(_0x376344)||_0x376344);return _0x376344;},A=(_0x13c028,_0x18e4c3)=>(_0x264cf7,_0x151a70)=>_0x18e4c3(_0x264cf7,_0x151a70,_0x13c028);const rt=0x12c,ot=0x64,at=()=>{let _0x399fde=[],_0x505019=!0x1;return _0x596a5b=>{const _0x59d9ba=_0x1c04;_0x399fde[_0x59d9ba(0x2ff)](_0x596a5b),_0x505019||(_0x505019=!0x0,setTimeout(()=>{const _0x1c6c43=_0x59d9ba;_0x399fde[_0x1c6c43(0x298)](_0x3fe130=>_0x3fe130()),_0x399fde=[],_0x505019=!0x1;}));};};let Ie=class extends a[_0x1cc422(0x2c3)]{constructor(_0x512261,_0x42ad14,_0x3944af,_0x38cac5,_0x5546fa,_0x3631c0,_0xd9fc9c,_0x45e7a4){const _0xb193b1=_0x1cc422;super(),h(this,_0xb193b1(0x18e),!0x1),h(this,_0xb193b1(0x28c),!0x1),h(this,_0xb193b1(0x2f3),new d[(_0xb193b1(0xf0))](new Map())),h(this,_0xb193b1(0x292),this['_cursorInfo$'][_0xb193b1(0x132)]()),h(this,_0xb193b1(0x29c),new d[(_0xb193b1(0xf0))]([])),h(this,_0xb193b1(0x372),this[_0xb193b1(0x29c)][_0xb193b1(0x1f0)](d['debounceTime'](rt))),h(this,'_updateLocalCursor',a[_0xb193b1(0x2de)]((_0x599448,_0x1443d4)=>{const _0xbd7cda=_0xb193b1,_0x9410e3={'eventID':m[_0xbd7cda(0x359)][_0xbd7cda(0x2fc)],'data':{'unitID':this[_0xbd7cda(0x215)],'memberID':this['_session'][_0xbd7cda(0x1d5)](),'selection':Te[_0xbd7cda(0x306)](_0x599448,_0x1443d4[_0xbd7cda(0x186)])}};this[_0xbd7cda(0x206)]['send'](_0x9410e3,this[_0xbd7cda(0x215)]);},ot)),(this[_0xb193b1(0x215)]=_0x512261,this['_session']=_0x42ad14,this[_0xb193b1(0x154)]=_0x3944af,this[_0xb193b1(0x27e)]=_0x38cac5,this[_0xb193b1(0x312)]=_0x5546fa,this['_univerInstanceService']=_0x3631c0,this[_0xb193b1(0x113)]=_0xd9fc9c,this[_0xb193b1(0x1fd)]=_0x45e7a4);}get[_0x1cc422(0x29a)](){const _0x296588=_0x1cc422;return this[_0x296588(0x2f3)][_0x296588(0x2e9)]();}get[_0x1cc422(0x2e5)](){const _0x3b8cb0=_0x1cc422;return this[_0x3b8cb0(0x29c)][_0x3b8cb0(0x2e9)]();}['dispose'](){const _0x4d77f5=_0x1cc422;super[_0x4d77f5(0x119)](),this[_0x4d77f5(0x2f3)][_0x4d77f5(0x364)](new Map()),this[_0x4d77f5(0x2f3)][_0x4d77f5(0x342)](),this[_0x4d77f5(0x29c)]['next']([]),this[_0x4d77f5(0x29c)]['complete']();}['init'](){const _0x3e01b8=_0x1cc422;this[_0x3e01b8(0x28c)]||(this[_0x3e01b8(0x28c)]=!0x0,this[_0x3e01b8(0x206)][_0x3e01b8(0x353)][_0x3e01b8(0x1f0)](d[_0x3e01b8(0xf8)](this[_0x3e01b8(0x129)]))[_0x3e01b8(0x24c)](_0x91111b=>{const _0x3fabf2=_0x3e01b8;_0x91111b===u[_0x3fabf2(0x11a)]['ONLINE']?this[_0x3fabf2(0x179)]():this['_toggleOffline']();}),this[_0x3e01b8(0x206)][_0x3e01b8(0x198)][_0x3e01b8(0x1f0)](d['takeUntil'](this['dispose$']))[_0x3e01b8(0x24c)](_0x5495f1=>{const _0xc7db17=_0x3e01b8,_0x551342=_0x5495f1['eventID'];_0x551342===m[_0xc7db17(0x359)][_0xc7db17(0x2fc)]&&this[_0xc7db17(0x23c)](_0x5495f1),_0x551342===m[_0xc7db17(0x359)]['USERS_LEAVE']&&this[_0xc7db17(0x12f)](_0x5495f1);}),this[_0x3e01b8(0x23a)](),this[_0x3e01b8(0x149)](this[_0x3e01b8(0x113)][_0x3e01b8(0x350)](_0x18231c=>{const _0x17985e=_0x3e01b8;if(this[_0x17985e(0x18e)]&&_0x18231c['id']===g[_0x17985e(0x271)]['id']&&_0x18231c[_0x17985e(0x133)][_0x17985e(0x243)]===this[_0x17985e(0x215)]){const _0xdd6440=_0x18231c[_0x17985e(0x133)];this[_0x17985e(0x141)](_0xdd6440[_0x17985e(0x315)],_0xdd6440[_0x17985e(0x329)][0x0]);}})));}[_0x1cc422(0x23c)](_0x2d461a){const _0x4e7b35=_0x1cc422;var _0x1116fe,_0x3c06c1;const {memberID:_0x5338e7,selection:_0x401fab}=_0x2d461a[_0x4e7b35(0x2cb)],{sheetName:_0xaf0fb,range:_0x37a753}=Te[_0x4e7b35(0x15e)](_0x401fab),_0x1bcbfe={'name':(_0x3c06c1=(_0x1116fe=this[_0x4e7b35(0x312)][_0x4e7b35(0x114)](this[_0x4e7b35(0x215)],_0x5338e7))==null?void 0x0:_0x1116fe[_0x4e7b35(0x1fb)])!=null?_0x3c06c1:_0x4e7b35(0x338),'range':this[_0x4e7b35(0x1cd)](_0xaf0fb,_0x37a753),'sheetID':_0xaf0fb,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5338e7),'selection':_0x401fab},_0x4ce111=this[_0x4e7b35(0x29a)];_0x4ce111[_0x4e7b35(0x2ab)](_0x5338e7,_0x1bcbfe),this['_cursorInfo$'][_0x4e7b35(0x364)](_0x4ce111);}[_0x1cc422(0x12f)](_0x5d8287){const _0x18523f=_0x1cc422,{memberID:_0x392568}=_0x5d8287['data'],_0x5c1a4e=this['cursorInfo'];_0x5c1a4e[_0x18523f(0x23e)](_0x392568),this['_cursorInfo$']['next'](_0x5c1a4e);}[_0x1cc422(0x1cd)](_0x262d7d,_0xaa0755){const _0x4266df=_0x1cc422;var _0x56585b,_0x1e659a;const _0x4f1d58=(_0x1e659a=(_0x56585b=this[_0x4266df(0x10e)]['getUniverSheetInstance'](this[_0x4266df(0x215)]))==null?void 0x0:_0x56585b[_0x4266df(0x24f)](_0x262d7d))==null?void 0x0:_0x1e659a[_0x4266df(0x317)]();return(_0x4f1d58==null?void 0x0:_0x4f1d58[_0x4266df(0x323)](_0x190b6d=>a[_0x4266df(0x31b)]['contains'](_0x190b6d,_0xaa0755)))||_0xaa0755;}['_onRefRangeChange'](){const _0x9375b0=_0x1cc422,_0x9a413f=new a['DisposableCollection'](),_0x3088ef=at(),_0x3736a4=()=>{const _0x2e30cd=_0x1c04;_0x9a413f[_0x2e30cd(0x119)]();const _0x39566b=(_0x3a6dca,_0x2699cf,_0x1e9055,_0x3f7352)=>{const _0x462e0e=_0x2e30cd;let _0x169bdb=[];switch(_0x3a6dca['id']){case g[_0x462e0e(0x21d)][_0x462e0e(0x335)]:{_0x169bdb=g[_0x462e0e(0x229)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)]['DeleteRangeMoveUpCommandId']:{_0x169bdb=g['handleDeleteRangeMoveUp'](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x117)]:{_0x169bdb=g[_0x462e0e(0x21c)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x2a6)]:{_0x169bdb=g['handleInsertRangeMoveDown'](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x128)]:{_0x169bdb=g[_0x462e0e(0x360)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x1fe)]:{_0x169bdb=g[_0x462e0e(0x20a)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)]['MoveRangeCommandId']:{_0x169bdb=g[_0x462e0e(0x29f)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x1da)]:{_0x169bdb=g[_0x462e0e(0x219)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x363)]:{_0x169bdb=g[_0x462e0e(0x1ba)](_0x3a6dca,_0x3f7352);break;}}const _0x7efd7=g[_0x462e0e(0x378)](_0x169bdb,_0x3f7352),_0x497f26=this[_0x462e0e(0x29a)][_0x462e0e(0x12a)](_0x2699cf);if(_0x497f26&&_0x7efd7){const _0x36fda7={..._0x497f26,'range':_0x7efd7};this[_0x462e0e(0x29a)][_0x462e0e(0x2ab)](_0x2699cf,_0x36fda7),_0x3088ef(()=>{const _0x22f5d9=_0x462e0e,_0x843e03=this[_0x22f5d9(0x1fd)][_0x22f5d9(0x36b)](_0x7efd7,_0x41f875=>(_0x843e03['dispose'](),_0x39566b(_0x41f875,_0x2699cf,_0x1e9055,_0x7efd7)));_0x9a413f[_0x22f5d9(0x1af)](_0x843e03);});}return{'redos':[],'undos':[]};};this[_0x2e30cd(0x29a)][_0x2e30cd(0x298)]((_0x21d916,_0x51da0c)=>{const _0x4d7af1=_0x2e30cd,{range:_0x1b2de4,sheetID:_0x4bd9ce}=_0x21d916,_0x26c113=this[_0x4d7af1(0x1fd)]['registerRefRange'](_0x1b2de4,_0x3b6735=>(_0x26c113[_0x4d7af1(0x119)](),_0x39566b(_0x3b6735,_0x51da0c,_0x4bd9ce,_0x1b2de4)));_0x9a413f[_0x4d7af1(0x1af)](_0x26c113);});};this[_0x9375b0(0x149)](a['toDisposable'](this[_0x9375b0(0x2f3)][_0x9375b0(0x24c)](()=>{_0x3736a4();})));}[_0x1cc422(0x179)](){const _0x7a3fd5=_0x1cc422;var _0x108871,_0x1a2c5e;if(this[_0x7a3fd5(0x18e)]=!0x0,((_0x108871=this[_0x7a3fd5(0x10e)][_0x7a3fd5(0x308)]())==null?void 0x0:_0x108871[_0x7a3fd5(0x111)]())!==this[_0x7a3fd5(0x215)])return;const _0x30928d=(_0x1a2c5e=this[_0x7a3fd5(0x154)][_0x7a3fd5(0x12a)](g[_0x7a3fd5(0x319)])[_0x7a3fd5(0x320)]())==null?void 0x0:_0x1a2c5e[0x0],_0x34875c=this['_univerInstanceService'][_0x7a3fd5(0x15c)](a[_0x7a3fd5(0x340)][_0x7a3fd5(0xfc)])['getActiveSheet']();_0x30928d&&_0x34875c&&this[_0x7a3fd5(0x141)](_0x34875c[_0x7a3fd5(0x2ec)](),_0x30928d);}[_0x1cc422(0x15f)](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),A(0x3,a[_0x1cc422(0x1f4)](Ce)),A(0x4,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x2a7)])),A(0x5,a[_0x1cc422(0x195)]),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g[_0x1cc422(0x162)]))],Ie);var ct=Object[_0x1cc422(0x1fc)],lt=(_0x13f4bf,_0x13e1c6,_0x5aba1d,_0x4ecef4)=>{const _0x233d63=_0x1cc422;for(var _0x382f2d=_0x4ecef4>0x1?void 0x0:_0x4ecef4?ct(_0x13e1c6,_0x5aba1d):_0x13e1c6,_0x562d0a=_0x13f4bf[_0x233d63(0x357)]-0x1,_0x1c6d54;_0x562d0a>=0x0;_0x562d0a--)(_0x1c6d54=_0x13f4bf[_0x562d0a])&&(_0x382f2d=_0x1c6d54(_0x382f2d)||_0x382f2d);return _0x382f2d;},ie=(_0x773fa6,_0x643115)=>(_0x14cc05,_0x2f315c)=>_0x643115(_0x14cc05,_0x2f315c,_0x773fa6);let x=class extends a[_0x1cc422(0x2c3)]{constructor(_0x375f1d,_0x430180,_0x196f5c){const _0x10b11a=_0x1cc422;super(),h(this,_0x10b11a(0x2b5),new Map()),h(this,_0x10b11a(0x371),new d[(_0x10b11a(0x16f))]()),(this['_univerInstanceService']=_0x375f1d,this['_injector']=_0x430180,this['_collabSessionService']=_0x196f5c,this['_init']());}[_0x1cc422(0x119)](){const _0x1e716d=_0x1cc422;super[_0x1e716d(0x119)](),this[_0x1e716d(0x371)][_0x1e716d(0x342)](),this[_0x1e716d(0x2b5)][_0x1e716d(0x298)](_0x64fb77=>_0x64fb77[_0x1e716d(0x119)]());}[_0x1cc422(0x104)](_0x36c599){const _0x3d056a=_0x1cc422;return this[_0x3d056a(0x2b5)][_0x3d056a(0x139)](_0x36c599)?this[_0x3d056a(0x2b5)]['get'](_0x36c599)[_0x3d056a(0x292)]:this[_0x3d056a(0x371)][_0x3d056a(0x1f0)](d['filter'](_0x1cf7ba=>_0x1cf7ba[_0x3d056a(0x215)]===_0x36c599),d[_0x3d056a(0x217)](_0x18afc0=>_0x18afc0[_0x3d056a(0x292)]));}[_0x1cc422(0x28c)](){const _0x149e89=_0x1cc422;this[_0x149e89(0x10e)][_0x149e89(0x2d0)](a[_0x149e89(0x340)][_0x149e89(0xfc)])[_0x149e89(0x1f0)](d['takeUntil'](this[_0x149e89(0x129)]))[_0x149e89(0x24c)](async _0x3515b9=>{const _0x1ebcc8=_0x149e89,_0x3b05fb=_0x3515b9['getUnitId'](),_0x36076f=await this[_0x1ebcc8(0x1e0)](_0x3b05fb);this[_0x1ebcc8(0x371)][_0x1ebcc8(0x364)](_0x36076f),this[_0x1ebcc8(0x2b5)]['set'](_0x3b05fb,_0x36076f);}),this[_0x149e89(0x10e)][_0x149e89(0x2d0)](a[_0x149e89(0x340)][_0x149e89(0x193)])[_0x149e89(0x1f0)](d[_0x149e89(0xf8)](this[_0x149e89(0x129)]))['pipe'](d['filter'](_0xcdd11=>!_0xcdd11[_0x149e89(0x111)]()[_0x149e89(0x351)]('__')))[_0x149e89(0x24c)](async _0x4a561e=>{const _0x5f05ac=_0x149e89,_0x599563=_0x4a561e[_0x5f05ac(0x111)](),_0x3b456f=await this[_0x5f05ac(0x2c5)](_0x599563);this[_0x5f05ac(0x371)]['next'](_0x3b456f),this['_entities']['set'](_0x599563,_0x3b456f);}),d[_0x149e89(0x10f)](this[_0x149e89(0x10e)][_0x149e89(0x251)](a['UniverInstanceType'][_0x149e89(0x193)]),this[_0x149e89(0x10e)][_0x149e89(0x251)](a[_0x149e89(0x340)][_0x149e89(0xfc)]))['pipe'](d[_0x149e89(0xf8)](this['dispose$']))[_0x149e89(0x24c)](_0x12c1aa=>{const _0x22f067=_0x149e89,_0xaa074a=_0x12c1aa[_0x22f067(0x111)](),_0x5185be=this['_entities'][_0x22f067(0x12a)](_0xaa074a);_0x5185be&&(_0x5185be['dispose'](),this[_0x22f067(0x2b5)][_0x22f067(0x23e)](_0xaa074a));});}async[_0x1cc422(0x1e0)](_0x335d84){const _0x20949e=_0x1cc422,_0x5f4aba=await this[_0x20949e(0x1ae)][_0x20949e(0x144)](_0x335d84),_0x33b72c=this[_0x20949e(0x154)]['createInstance'](Ie,_0x335d84,_0x5f4aba);return _0x33b72c['init'](),_0x33b72c;}async['_startDocCollabCursor'](_0x46da35){const _0x69dc47=_0x1cc422,_0xf7a6ac=await this['_collabSessionService'][_0x69dc47(0x144)](_0x46da35),_0x12b47f=this['_injector'][_0x69dc47(0x214)](Se,_0x46da35,_0xf7a6ac);return _0x12b47f['init'](),_0x12b47f;}};x=lt([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x1cc422(0x1f4)](a['Injector'])),ie(0x2,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x208)]))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x2f415e,_0x39c6ce){const _0x4212a2=_0x1cc422;let {radius:_0x31ab0d,width:_0x8cb01e,height:_0x16c703}=_0x39c6ce;_0x31ab0d=_0x31ab0d!=null?_0x31ab0d:0x0,_0x8cb01e=_0x8cb01e!=null?_0x8cb01e:0x1e,_0x16c703=_0x16c703!=null?_0x16c703:0x1e;let _0x5abef2=0x0,_0x13ee54=0x0,_0x4df1b6=0x0;_0x5abef2=_0x13ee54=_0x4df1b6=Math[_0x4212a2(0x237)](_0x31ab0d,_0x8cb01e/0x2,_0x16c703/0x2),_0x2f415e[_0x4212a2(0x337)](),_0x2f415e[_0x4212a2(0x22a)](_0x5abef2,0x0),_0x2f415e[_0x4212a2(0x234)](_0x8cb01e-_0x13ee54,0x0),_0x2f415e['arc'](_0x8cb01e-_0x13ee54,_0x13ee54,_0x13ee54,Math['PI']*0x3/0x2,0x0,!0x1),_0x2f415e['lineTo'](_0x8cb01e,_0x16c703-_0x4df1b6),_0x2f415e['arc'](_0x8cb01e-_0x4df1b6,_0x16c703-_0x4df1b6,_0x4df1b6,0x0,Math['PI']/0x2,!0x1),_0x2f415e['lineTo'](0x0,_0x16c703),_0x2f415e['lineTo'](0x0,_0x5abef2),_0x2f415e['arc'](_0x5abef2,_0x5abef2,_0x5abef2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2f415e[_0x4212a2(0x1b0)](),_0x39c6ce[_0x4212a2(0x12e)]&&(_0x2f415e[_0x4212a2(0x31d)](),_0x2f415e[_0x4212a2(0x36c)]=_0x39c6ce[_0x4212a2(0x12e)],_0x39c6ce[_0x4212a2(0xea)]===_0x4212a2(0x263)?_0x2f415e[_0x4212a2(0x12e)](_0x4212a2(0x263)):_0x2f415e[_0x4212a2(0x12e)](),_0x2f415e[_0x4212a2(0x23f)]());}class te extends p['Shape']{constructor(_0x92d8dd,_0x55f420){const _0x52971f=_0x1cc422;super(_0x92d8dd,_0x55f420),h(this,_0x52971f(0x120)),h(this,'text'),(this['color']=_0x55f420==null?void 0x0:_0x55f420[_0x52971f(0x120)],this[_0x52971f(0x210)]=_0x55f420==null?void 0x0:_0x55f420[_0x52971f(0x210)]);}static[_0x1cc422(0x2ca)](_0x4a1a56,_0x2fb973){const _0x1d7915=_0x1cc422,{text:_0x17061e,color:_0x4913f7}=_0x2fb973;_0x4a1a56[_0x1d7915(0x31d)](),_0x4a1a56[_0x1d7915(0x16c)]=_0x1d7915(0x1b5);const _0x202614=_0x4a1a56[_0x1d7915(0x2d3)](_0x17061e)[_0x1d7915(0x282)],_0x5690cd=Math['min'](_0x202614+0x2*re,De);_t(_0x4a1a56,{'height':K,'radius':0x4,'width':_0x5690cd,'fill':_0x4913f7}),_0x4a1a56[_0x1d7915(0x36c)]=_0x1d7915(0x218);const _0x5a6181=re,_0x1f83f8=K-ht,_0xd01ff6=De-0x2*re;if(_0x202614>_0xd01ff6){let _0x4a0577='',_0x36caf2=0x0;for(const _0x558072 of _0x17061e){const _0x209533=_0x4a1a56[_0x1d7915(0x2d3)](_0x558072)[_0x1d7915(0x282)];if(_0x36caf2+_0x209533<=_0xd01ff6-_0x4a1a56[_0x1d7915(0x2d3)](_0x1d7915(0x2c6))['width'])_0x4a0577+=_0x558072,_0x36caf2+=_0x209533;else{_0x4a0577+=_0x1d7915(0x2c6);break;}}_0x4a1a56['fillText'](_0x4a0577,_0x5a6181,_0x1f83f8);}else _0x4a1a56[_0x1d7915(0x205)](_0x17061e,_0x5a6181,_0x1f83f8);_0x4a1a56['restore']();}[_0x1cc422(0x311)](_0x15be4f){const _0x2f2f5c=_0x1cc422;te[_0x2f2f5c(0x2ca)](_0x15be4f,this);}}const oe=_0x1cc422(0x24e),ut='collab-text-range-',dt=_0x1cc422(0x15a),B=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x1cc422(0x293);class Ue{constructor(_0x38a97b,_0x42af97,_0x5f3091,_0x175d73){const _0x2e2613=_0x1cc422;h(this,_0x2e2613(0x22b),[]),h(this,_0x2e2613(0x1d4),null),h(this,_0x2e2613(0x281),null),h(this,_0x2e2613(0x169),null),h(this,_0x2e2613(0x157),null),h(this,'_eventUnsubscribe',null),(this[_0x2e2613(0x348)]=_0x38a97b,this[_0x2e2613(0x286)]=_0x42af97,this[_0x2e2613(0x1c1)]=_0x5f3091,this[_0x2e2613(0x1bb)]=_0x175d73,this[_0x2e2613(0x1dd)]());}set[_0x1cc422(0x283)](_0x9a0462){const _0x412de2=_0x1cc422;_0x9a0462?(this[_0x412de2(0x169)]&&this['_anchorDot'][_0x412de2(0x2c8)](),this[_0x412de2(0x281)]&&this[_0x412de2(0x281)]['show']()):(this[_0x412de2(0x169)]&&this[_0x412de2(0x169)][_0x412de2(0x30a)](),this[_0x412de2(0x281)]&&this[_0x412de2(0x281)][_0x412de2(0x2c8)]());}[_0x1cc422(0x119)](){const _0x242831=_0x1cc422;for(const _0x3d4b67 of this['_shapes'])_0x3d4b67[_0x242831(0x119)]();this[_0x242831(0x281)]&&this[_0x242831(0x281)][_0x242831(0x119)](),this[_0x242831(0x169)]&&this[_0x242831(0x169)]['dispose'](),this[_0x242831(0x1d4)]&&this[_0x242831(0x1d4)][_0x242831(0x119)](),this[_0x242831(0x102)]&&this[_0x242831(0x102)]();}[_0x1cc422(0x1dd)](){const _0x5520a8=_0x1cc422;var _0x5d7c6a;const {_docSkeleton:_0x45bdb6,_document:_0x234a0d}=this,{color:_0x36fbad,name:_0x28e63e,ranges:_0x5491ba}=this['_cursor'],_0x39de0f=_0x234a0d[_0x5520a8(0x35c)](),{docsLeft:_0x4f65ef,docsTop:_0x587508}=_0x39de0f,_0x24a893=new b[(_0x5520a8(0x142))](_0x39de0f,_0x45bdb6);for(const {startOffset:_0x101f96,endOffset:_0x3f400a,rangeType:_0x3fb9a6,segmentId:_0x227b96,segmentPage:_0x1b2b87,collapsed:_0x3a4799,isActive:_0x34801d}of _0x5491ba){const _0x1f176a=_0x45bdb6[_0x5520a8(0x346)](_0x101f96,!0x0,_0x227b96,_0x1b2b87);let _0x156106=_0x45bdb6[_0x5520a8(0x346)](_0x3f400a,!0x0,_0x227b96,_0x1b2b87);if(_0x156106==null&&(_0x156106=_0x45bdb6[_0x5520a8(0x346)](_0x3f400a-0x1,!0x1,_0x227b96,_0x1b2b87)),_0x34801d){const {contentBoxPointGroup:_0x1434ed}=_0x24a893['getRangePointData'](_0x156106,_0x156106);if(_0x1434ed[_0x5520a8(0x357)]===0x0)continue;this[_0x5520a8(0x345)](_0x36fbad,_0x1434ed,_0x4f65ef,_0x587508,_0x28e63e),this[_0x5520a8(0x102)]=this['_handleHover']();}if(_0x1f176a&&_0x156106){if(_0x3fb9a6===a[_0x5520a8(0x223)]['RECT']){const _0xe61b92=new b['NodePositionConvertToRectRange'](_0x39de0f,_0x45bdb6),{pointGroup:_0x17bb8c}=(_0x5d7c6a=_0xe61b92[_0x5520a8(0x10d)](_0x1f176a,_0x156106))!=null?_0x5d7c6a:{};if(_0x17bb8c==null||_0x17bb8c[_0x5520a8(0x357)]===0x0)continue;this[_0x5520a8(0x1d8)](_0x36fbad,_0x17bb8c,_0x4f65ef,_0x587508);}else{if(!_0x3a4799){const {borderBoxPointGroup:_0x35441c}=_0x24a893[_0x5520a8(0x10d)](_0x1f176a,_0x156106);if(_0x35441c[_0x5520a8(0x357)]===0x0)continue;this[_0x5520a8(0x28b)](_0x36fbad,_0x35441c,_0x4f65ef,_0x587508);}}}}}[_0x1cc422(0x345)](_0x37bb4e,_0x3fd03f,_0x29e169,_0x40ce2f,_0x24baf4){const _0x492bcf=_0x1cc422,_0x16dadb=this['_getAnchorBounding'](_0x3fd03f),{left:_0x293ae6,top:_0x8ae54a,height:_0x46b5f5}=_0x16dadb,_0x189898=this['_getScale'](),_0x33e7ce=St/_0x189898,_0x22318c=new p[(_0x492bcf(0x368))](oe+a[_0x492bcf(0x299)][_0x492bcf(0x26b)](B),{'left':_0x293ae6+_0x29e169-_0x33e7ce,'top':_0x8ae54a+_0x40ce2f,'height':_0x46b5f5,'width':ft,'fill':_0x37bb4e||p[_0x492bcf(0x239)](a[_0x492bcf(0x2a2)][_0x492bcf(0x19e)],0x0),'strokeWidth':_0x33e7ce,'stroke':It,'evented':!0x0});this['_anchor']=_0x22318c,this[_0x492bcf(0x286)][_0x492bcf(0x1aa)](_0x22318c,b[_0x492bcf(0x1ca)]);const _0x135b46=new p[(_0x492bcf(0x368))](oe+a['Tools'][_0x492bcf(0x26b)](B),{'left':_0x293ae6+_0x29e169-_0x33e7ce,'top':_0x8ae54a+_0x40ce2f-ae/0x2,'height':ae,'width':ae,'fill':_0x37bb4e||p[_0x492bcf(0x239)](a[_0x492bcf(0x2a2)][_0x492bcf(0x19e)],0x0),'strokeWidth':0x0,'stroke':_0x37bb4e||p[_0x492bcf(0x239)](a[_0x492bcf(0x2a2)][_0x492bcf(0x19e)],0x0),'evented':!0x1});this[_0x492bcf(0x169)]=_0x135b46,this[_0x492bcf(0x286)][_0x492bcf(0x1aa)](_0x135b46,b['TEXT_RANGE_LAYER_INDEX']);const _0x36c52b=new te(oe+a[_0x492bcf(0x299)]['generateRandomId'](B),{'left':_0x293ae6+_0x29e169-_0x33e7ce,'top':_0x8ae54a+_0x40ce2f-K,'text':_0x24baf4,'color':_0x37bb4e});this[_0x492bcf(0x281)]=_0x36c52b,this[_0x492bcf(0x286)]['addObject'](_0x36c52b,b[_0x492bcf(0x1ca)]),this[_0x492bcf(0x283)]=!0x1;}[_0x1cc422(0x314)](){const _0x3bbfd1=_0x1cc422,_0x45c185=this[_0x3bbfd1(0x1d4)][_0x3bbfd1(0x358)][_0x3bbfd1(0x11c)](()=>{const _0x32c1f1=_0x3bbfd1;this[_0x32c1f1(0x283)]=!0x0;}),_0xfd3f7d=this[_0x3bbfd1(0x1d4)][_0x3bbfd1(0x203)]['subscribeEvent'](()=>{const _0x41940c=_0x3bbfd1;this[_0x41940c(0x157)]&&clearTimeout(this[_0x41940c(0x157)]),this[_0x41940c(0x157)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x284112=_0x3bbfd1;_0x45c185[_0x284112(0x130)](),_0xfd3f7d['unsubscribe']();};}[_0x1cc422(0x28b)](_0x250fbe,_0x1f2de5,_0x50af30,_0x44599e){const _0x384076=_0x1cc422,_0x117240=new a[(_0x384076(0x2f9))](_0x250fbe)['setAlpha'](0.2)[_0x384076(0xf5)](),_0x2609fb=new p[(_0x384076(0x2e1))](ut+a[_0x384076(0x299)][_0x384076(0x26b)](B),{'pointsGroup':_0x1f2de5,'fill':_0x117240||p[_0x384076(0x239)](a[_0x384076(0x2a2)][_0x384076(0x19e)],0.2),'left':_0x50af30,'top':_0x44599e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x384076(0x22b)]['push'](_0x2609fb),this['_scene'][_0x384076(0x1aa)](_0x2609fb,b[_0x384076(0x1ca)]);}[_0x1cc422(0x1d8)](_0xf3854d,_0x5b2581,_0x1a169e,_0x14abee){const _0x5263f2=_0x1cc422,_0x3c3361=new a[(_0x5263f2(0x2f9))](_0xf3854d)[_0x5263f2(0x22d)](0.2)[_0x5263f2(0xf5)](),_0x57cdb2=new p['RegularPolygon'](dt+a['Tools'][_0x5263f2(0x26b)](B),{'pointsGroup':_0x5b2581,'fill':_0x3c3361||p[_0x5263f2(0x239)](a['COLORS'][_0x5263f2(0x19e)],0.2),'left':_0x1a169e,'top':_0x14abee,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5263f2(0x22b)][_0x5263f2(0x2ff)](_0x57cdb2),this['_scene'][_0x5263f2(0x1aa)](_0x57cdb2,b['TEXT_RANGE_LAYER_INDEX']);}[_0x1cc422(0xf6)](_0xf2d30e){const _0x8a0748=_0xf2d30e[0x0],_0x3fef4e=_0x8a0748[0x0],_0x4e8f00=_0x8a0748[0x2],{x:_0x4afd4f,y:_0x2d246f}=_0x3fef4e,{x:_0x2c6863,y:_0x27fe79}=_0x4e8f00;return{'left':_0x4afd4f,'top':_0x2d246f,'width':_0x2c6863-_0x4afd4f,'height':_0x27fe79-_0x2d246f};}[_0x1cc422(0x17f)](){const _0x126ba0=_0x1cc422,{scaleX:_0x130240,scaleY:_0x859e62}=this['_scene'][_0x126ba0(0x1ed)]();return Math[_0x126ba0(0x1e5)](_0x130240,_0x859e62);}}var vt=Object[_0x1cc422(0x1fc)],gt=(_0x3f6c1e,_0x1d2952,_0x14effd,_0x5eeadc)=>{const _0x1af037=_0x1cc422;for(var _0x1c2a18=_0x5eeadc>0x1?void 0x0:_0x5eeadc?vt(_0x1d2952,_0x14effd):_0x1d2952,_0x546088=_0x3f6c1e[_0x1af037(0x357)]-0x1,_0x52003e;_0x546088>=0x0;_0x546088--)(_0x52003e=_0x3f6c1e[_0x546088])&&(_0x1c2a18=_0x52003e(_0x1c2a18)||_0x1c2a18);return _0x1c2a18;},V=(_0x210ed9,_0x171411)=>(_0x27853d,_0x30f966)=>_0x171411(_0x27853d,_0x30f966,_0x210ed9);let ve=class extends a['RxDisposable']{constructor(_0x48baca,_0x9ed6ef,_0x5c0c9c,_0x1bba8c,_0x3d7723){const _0x1cbd86=_0x1cc422;super(),h(this,'_cursorShapes',[]),h(this,_0x1cbd86(0x33e),[]),(this[_0x1cbd86(0x1d9)]=_0x48baca,this[_0x1cbd86(0x313)]=_0x9ed6ef,this[_0x1cbd86(0x297)]=_0x5c0c9c,this[_0x1cbd86(0x113)]=_0x1bba8c,this[_0x1cbd86(0x236)]=_0x3d7723,this[_0x1cbd86(0x28c)]());}[_0x1cc422(0x28c)](){const _0x4c1e5d=_0x1cc422,_0x262bc8=this['_context'][_0x4c1e5d(0x243)],_0x480ba8=this['_docSkeletonManagerService'];this[_0x4c1e5d(0x149)](d[_0x4c1e5d(0x1d7)]([this[_0x4c1e5d(0x297)][_0x4c1e5d(0x104)](_0x262bc8),this[_0x4c1e5d(0x236)][_0x4c1e5d(0x1eb)]])['pipe']($[_0x4c1e5d(0x2ba)](([_0x47d4fb,_0x20b8e3])=>({'skeleton':_0x480ba8[_0x4c1e5d(0x159)](),'cursors':[..._0x47d4fb[_0x4c1e5d(0x2bd)]()][_0x4c1e5d(0x2b3)](_0x22bf45=>({..._0x22bf45,'color':_0x20b8e3[_0x22bf45[_0x4c1e5d(0x120)]]}))})))[_0x4c1e5d(0x24c)](_0x1f9fb6=>{const _0x169e36=_0x4c1e5d;if(this[_0x169e36(0x309)](),_0x1f9fb6){const {skeleton:_0x341339,cursors:_0xef252f}=_0x1f9fb6;this[_0x169e36(0x2d4)](_0x341339,_0xef252f);}})),this['_initResize'](),this[_0x4c1e5d(0xee)]();}[_0x1cc422(0x2d4)](_0x489887,_0x41ad0e){const _0xf4b016=_0x1cc422,{scene:_0x2f7285,mainComponent:_0x33a932}=this[_0xf4b016(0x1d9)],_0x26e8ce=_0x41ad0e[_0xf4b016(0x2ba)](_0x25eadf=>new Ue(_0x25eadf,_0x2f7285,_0x489887,_0x33a932));this[_0xf4b016(0x118)]=_0x26e8ce,this[_0xf4b016(0x33e)]=_0x41ad0e;}[_0x1cc422(0x1c8)](){const _0x5119e3=_0x1cc422;this[_0x5119e3(0x309)]();const {scene:_0x58d7c8,mainComponent:_0xff8231}=this[_0x5119e3(0x1d9)],_0x5e02b0=this['_docSkeletonManagerService'][_0x5119e3(0x159)](),_0x368ae7=this['_cursors'][_0x5119e3(0x2ba)](_0x316976=>new Ue(_0x316976,_0x58d7c8,_0x5e02b0,_0xff8231));this[_0x5119e3(0x118)]=_0x368ae7;}[_0x1cc422(0x309)](){this['_cursorShapes']['forEach'](_0x5cf8bb=>_0x5cf8bb['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x43b530=_0x1cc422,_0x153ef9=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x43b530(0x350)](_0x51e6a5=>{const _0x39f4d1=_0x43b530;_0x153ef9['includes'](_0x51e6a5['id'])&&_0x51e6a5[_0x39f4d1(0x133)]['unitId']===this[_0x39f4d1(0x1d9)][_0x39f4d1(0x243)]&&this[_0x39f4d1(0x1c8)]();}));}['_initResize'](){const _0x1e4dec=_0x1cc422;this[_0x1e4dec(0x149)](a[_0x1e4dec(0x30e)](this[_0x1e4dec(0x1d9)][_0x1e4dec(0x14c)][_0x1e4dec(0x34f)])[_0x1e4dec(0x1f0)]($[_0x1e4dec(0x365)](_0x1076b9=>_0x1076b9['type']===p[_0x1e4dec(0x249)][_0x1e4dec(0xf1)]),$[_0x1e4dec(0x33a)](0x10))[_0x1e4dec(0x24c)](()=>{const _0x5a8faf=_0x1e4dec;this[_0x5a8faf(0x1c8)]();}));}};ve=gt([V(0x1,a[_0x1cc422(0x1f4)](Y[_0x1cc422(0x14b)])),V(0x2,a[_0x1cc422(0x1f4)](x)),V(0x3,a['ICommandService']),V(0x4,a['Inject'](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x1cc422(0x27a)]{constructor(_0x4adbdb,_0x2cfcd9){const _0x5566f5=_0x1cc422;super(_0x4adbdb,_0x2cfcd9),h(this,_0x5566f5(0x1a6)),h(this,'_hovered',!0x1),h(this,_0x5566f5(0x326)),h(this,_0x5566f5(0x296),''),h(this,_0x5566f5(0x1ac),_0x5566f5(0x13c)),h(this,_0x5566f5(0x150)),(_0x2cfcd9&&this['setShapeProps'](_0x2cfcd9),this['onPointerEnter$'][_0x5566f5(0x11c)](()=>this[_0x5566f5(0x112)]({'hovered':!0x0})),this[_0x5566f5(0x203)][_0x5566f5(0x11c)](()=>this[_0x5566f5(0x112)]({'hovered':!0x1})));}[_0x1cc422(0x112)](_0x1310bb){const _0x510267=_0x1cc422;var _0x6d7aa9,_0x1bd7fe,_0x3c011a,_0x41aa23,_0x1ab401,_0x16efc9;this['_color']=(_0x6d7aa9=_0x1310bb[_0x510267(0x120)])!=null?_0x6d7aa9:this[_0x510267(0x1a6)],this[_0x510267(0x107)]=(_0x1bd7fe=_0x1310bb[_0x510267(0x334)])!=null?_0x1bd7fe:this[_0x510267(0x107)],this['_range']=(_0x3c011a=_0x1310bb[_0x510267(0x186)])!=null?_0x3c011a:this[_0x510267(0x326)],this[_0x510267(0x296)]=(_0x41aa23=_0x1310bb[_0x510267(0x1fb)])!=null?_0x41aa23:this[_0x510267(0x296)],this[_0x510267(0x1ac)]=(_0x1ab401=_0x1310bb[_0x510267(0x16e)])!=null?_0x1ab401:this['_labelPosition'],this['_backgroundColor']=(_0x16efc9=_0x1310bb[_0x510267(0x185)])!=null?_0x16efc9:this[_0x510267(0x150)],this[_0x510267(0x2c0)]({'width':_0x1310bb[_0x510267(0x282)],'height':_0x1310bb['height']});}[_0x1cc422(0x1f7)](_0x37d174){const _0xdcdba8=_0x1cc422,{row:_0x590656,column:_0x1e7449}=_0x37d174;if(_0x590656>=this['_range'][_0xdcdba8(0x100)]&&_0x590656<=this[_0xdcdba8(0x326)][_0xdcdba8(0x262)]&&_0x1e7449>=this[_0xdcdba8(0x326)]['startColumn']&&_0x1e7449<=this['_range'][_0xdcdba8(0x1a7)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0xdcdba8(0x112)]({'hovered':!0x1});}[_0x1cc422(0x2dc)](_0x21f12f){return!0x1;}['_draw'](_0x17c8fc){const _0x4469ef=_0x1cc422;p[_0x4469ef(0x368)]['drawWith'](_0x17c8fc,{'width':this[_0x4469ef(0x282)],'height':this['height'],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4469ef(0x150)]}),this['_hovered']&&(_0x17c8fc[_0x4469ef(0x31d)](),_0x17c8fc[_0x4469ef(0x275)](0x1,0x0,0x0,0x1,this[_0x4469ef(0x282)],this[_0x4469ef(0x1ac)]==='bottom'?0x0:-0x14),te['drawWith'](_0x17c8fc,{'text':this[_0x4469ef(0x296)],'color':this[_0x4469ef(0x1a6)]}),_0x17c8fc[_0x4469ef(0x23f)]());}}var pt=Object[_0x1cc422(0x1fc)],bt=(_0x3bf16d,_0x1c862f,_0x3ac838,_0x2bdc26)=>{const _0x4a68cf=_0x1cc422;for(var _0xc69bf6=_0x2bdc26>0x1?void 0x0:_0x2bdc26?pt(_0x1c862f,_0x3ac838):_0x1c862f,_0x5c326c=_0x3bf16d[_0x4a68cf(0x357)]-0x1,_0x5d8c52;_0x5c326c>=0x0;_0x5c326c--)(_0x5d8c52=_0x3bf16d[_0x5c326c])&&(_0xc69bf6=_0x5d8c52(_0xc69bf6)||_0xc69bf6);return _0xc69bf6;},ce=(_0x1ca099,_0x1bb4ad)=>(_0x34557b,_0x14f33e)=>_0x1bb4ad(_0x34557b,_0x14f33e,_0x1ca099);const Et=0x1389;let ge=class extends a[_0x1cc422(0x2c3)]{constructor(_0x4656f5,_0x1ae05c,_0x43d963,_0x4c986e){const _0x295a5c=_0x1cc422;super(),h(this,_0x295a5c(0x33e),new Set()),h(this,_0x295a5c(0x35a),null),(this['_context']=_0x4656f5,this[_0x295a5c(0x301)]=_0x1ae05c,this[_0x295a5c(0x297)]=_0x43d963,this['_themeService']=_0x4c986e,this[_0x295a5c(0x28c)]());}[_0x1cc422(0x28c)](){const _0x939550=_0x1cc422;this[_0x939550(0x301)]['currentSkeleton$'][_0x939550(0x1f0)]($[_0x939550(0xf8)](this[_0x939550(0x129)]),$['switchMap'](_0x384b1c=>{const _0x4f4ec1=_0x939550;if(_0x384b1c){const _0x37ec8e=_0x384b1c[_0x4f4ec1(0x2b8)];return d['combineLatest'](this[_0x4f4ec1(0x297)]['getCollabCursors$'](this['_context'][_0x4f4ec1(0x243)]),this[_0x4f4ec1(0x236)][_0x4f4ec1(0x1eb)])['pipe']($[_0x4f4ec1(0x2ba)](([_0x4f72fd,_0x2579d0])=>{const _0xea0d5=_0x4f4ec1,_0x2583a6=new Map();return _0x4f72fd[_0xea0d5(0x298)]((_0x2ef260,_0x380ab6)=>{const _0x487007=_0xea0d5;if(_0x2ef260[_0x487007(0xfa)]===_0x37ec8e){const _0x2e9853={..._0x2ef260};_0x2e9853['color']=_0x2579d0[_0x2ef260['color']],_0x2583a6['set'](_0x380ab6,_0x2e9853);}}),{'skeleton':_0x384b1c,'cursors':_0x2583a6};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1273ef,cursors:_0x6fd41d})=>{const _0x12d9e1=_0x939550;this[_0x12d9e1(0x309)](),_0x1273ef&&this['_updateCollabCursors'](_0x1273ef,_0x6fd41d);}),this[_0x939550(0x301)][_0x939550(0x108)][_0x939550(0x24c)](_0x9cb05f=>{const _0x403385=_0x939550;if(_0x9cb05f==null)return;const {skeleton:_0x26a442}=_0x9cb05f,{scene:_0x1f98ca}=this['_context'];_0x1f98ca[_0x403385(0x269)][_0x403385(0x11c)](a[_0x403385(0x2de)](_0x20bd26=>{const _0x3d2f0e=_0x403385;var _0x537bba,_0x182956;const {offsetX:_0x1dac2e,offsetY:_0x346c4d}=_0x20bd26,{x:_0x807f99,y:_0x33d5a1}=_0x1f98ca['getRelativeToViewportCoord'](p[_0x3d2f0e(0x181)]['FromArray']([_0x1dac2e,_0x346c4d])),{scaleX:_0x521b2c,scaleY:_0x2ee754}=_0x1f98ca[_0x3d2f0e(0x1ed)](),_0x3f2163=_0x1f98ca[_0x3d2f0e(0x122)](p[_0x3d2f0e(0x373)][_0x3d2f0e(0x1b9)]),_0x29ae97=_0x1f98ca[_0x3d2f0e(0x30c)](p['Vector2'][_0x3d2f0e(0x30f)]([_0x807f99,_0x33d5a1]),_0x3f2163),_0xa134f4=_0x26a442[_0x3d2f0e(0x126)](_0x1dac2e,_0x346c4d,_0x521b2c,_0x2ee754,_0x29ae97);((_0x537bba=this[_0x3d2f0e(0x35a)])==null?void 0x0:_0x537bba[_0x3d2f0e(0x28f)])===_0xa134f4['column']&&((_0x182956=this['_lastPointer'])==null?void 0x0:_0x182956['row'])===_0xa134f4['row']||this[_0x3d2f0e(0x33e)]['forEach'](_0x3ce5cc=>{const _0x1c2bde=_0x3d2f0e;_0x3ce5cc[_0x1c2bde(0x1f7)](_0xa134f4);});},0x64));});}[_0x1cc422(0x2d4)](_0x3468ef,_0x323cc7){const _0x40d1bc=_0x1cc422;var _0x106369;const _0x17062e=(_0x106369=this[_0x40d1bc(0x301)][_0x40d1bc(0x1cb)]())==null?void 0x0:_0x106369[_0x40d1bc(0x156)];if(!_0x17062e)return;const _0xf11fc7=this[_0x40d1bc(0x189)]();if(!_0xf11fc7)return;this[_0x40d1bc(0x33e)][_0x40d1bc(0x298)](_0x38d3fd=>{const _0x1eb059=_0x40d1bc;_0x38d3fd[_0x1eb059(0x244)]();});const {scene:_0xd47ce0}=_0xf11fc7,_0x5988ea=Tt(Array[_0x40d1bc(0xfd)](_0x323cc7[_0x40d1bc(0x2bd)]()))[_0x40d1bc(0x2ba)](_0x5a0d5a=>{const _0x234b52=_0x40d1bc,{color:_0x3cced8,range:_0x3cc91d,name:_0x58a1de,selection:_0xf9fcc1,sheetID:_0x1e774c}=_0x5a0d5a,{startColumn:_0x491095,startRow:_0x234ebc,endColumn:_0x17994f,endRow:_0x1c4530}=_0x3cc91d,_0x5cbedc=G[_0x234b52(0x192)](_0x234ebc,_0x491095,_0xd47ce0,_0x17062e),_0x201368=G[_0x234b52(0x192)](_0x1c4530,_0x17994f,_0xd47ce0,_0x17062e),{columnHeaderHeightAndMarginTop:_0x26976f}=_0x17062e,{startX:_0x33a094,startY:_0x1a067d}=_0x5cbedc,{endX:_0x23293b,endY:_0x143f37}=_0x201368,_0x4b2bbf=_0x23293b-_0x33a094,_0x5d54d3=_0x143f37-_0x1a067d,_0x2a44e8={'labelPosition':_0x1a067d-_0x26976f>=K?_0x234b52(0x13c):_0x234b52(0x14d),'sheetID':_0x1e774c,'range':_0x3cc91d,'color':_0x3cced8,'name':_0x58a1de,'selection':_0xf9fcc1,'left':_0x33a094,'top':_0x1a067d,'width':_0x4b2bbf,'height':_0x5d54d3,'evented':!0x1,'zIndex':Et};return new Ae(_0x58a1de,_0x2a44e8);});_0xd47ce0[_0x40d1bc(0x1a0)](_0x5988ea,mt),this['_cursors']=new Set(_0x5988ea);}[_0x1cc422(0x309)](){const _0xcad5d7=_0x1cc422;var _0x298f9f;(_0x298f9f=this[_0xcad5d7(0x33e)])==null||_0x298f9f[_0xcad5d7(0x298)](_0x2462e4=>_0x2462e4[_0xcad5d7(0x119)]());}[_0x1cc422(0x189)](){const _0x19726a=_0x1cc422;return G['getSheetObject'](this[_0x19726a(0x1d9)]['unit'],this['_context']);}};ge=bt([ce(0x1,a[_0x1cc422(0x1f4)](G['SheetSkeletonManagerService'])),ce(0x2,a[_0x1cc422(0x1f4)](x)),ce(0x3,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x167)]))],ge);function Tt(_0x5a85c7){const _0x38f849=_0x1cc422,_0x2b3d1e=new Map();return _0x5a85c7['forEach'](_0x37ea24=>{const _0x55806b=_0x1c04;if(_0x2b3d1e['has'](_0x37ea24['selection'])){const _0x43dbe4=_0x2b3d1e[_0x55806b(0x12a)](_0x37ea24['selection']);_0x43dbe4[_0x55806b(0x1fb)]+=',\x20'+_0x37ea24[_0x55806b(0x1fb)];}else _0x2b3d1e[_0x55806b(0x2ab)](_0x37ea24[_0x55806b(0x36d)],_0x37ea24);}),Array[_0x38f849(0xfd)](_0x2b3d1e[_0x38f849(0x2bd)]());}var E=function(){const _0x2dee9d=_0x1cc422;return E=Object[_0x2dee9d(0x1ef)]||function(_0x498530){const _0x5ce842=_0x2dee9d;for(var _0x2a2920,_0x2f56f5=0x1,_0x51abf3=arguments['length'];_0x2f56f5<_0x51abf3;_0x2f56f5++){_0x2a2920=arguments[_0x2f56f5];for(var _0x4e36bc in _0x2a2920)Object[_0x5ce842(0x2f7)][_0x5ce842(0x180)][_0x5ce842(0x26c)](_0x2a2920,_0x4e36bc)&&(_0x498530[_0x4e36bc]=_0x2a2920[_0x4e36bc]);}return _0x498530;},E[_0x2dee9d(0x2a4)](this,arguments);},Rt=function(_0x551b58,_0x559428){const _0x288b0e=_0x1cc422;var _0x2815e5={};for(var _0x3f8e12 in _0x551b58)Object['prototype'][_0x288b0e(0x180)][_0x288b0e(0x26c)](_0x551b58,_0x3f8e12)&&_0x559428['indexOf'](_0x3f8e12)<0x0&&(_0x2815e5[_0x3f8e12]=_0x551b58[_0x3f8e12]);if(_0x551b58!=null&&typeof Object[_0x288b0e(0x1ee)]==_0x288b0e(0x2c2)){for(var _0x22520d=0x0,_0x3f8e12=Object[_0x288b0e(0x1ee)](_0x551b58);_0x22520d<_0x3f8e12[_0x288b0e(0x357)];_0x22520d++)_0x559428[_0x288b0e(0x123)](_0x3f8e12[_0x22520d])<0x0&&Object[_0x288b0e(0x2f7)][_0x288b0e(0x330)][_0x288b0e(0x26c)](_0x551b58,_0x3f8e12[_0x22520d])&&(_0x2815e5[_0x3f8e12[_0x22520d]]=_0x551b58[_0x3f8e12[_0x22520d]]);}return _0x2815e5;},be=M['forwardRef'](function(_0x19db2b,_0x463f79){const _0x111817=_0x1cc422;var _0x37f69d=_0x19db2b[_0x111817(0x137)],_0x3de06d=_0x19db2b['id'],_0x4e6bc9=_0x19db2b[_0x111817(0x1cf)],_0x4f1c8=_0x19db2b['extend'],_0xeb7f12=Rt(_0x19db2b,['icon','id',_0x111817(0x1cf),_0x111817(0x278)]),_0x2b4e1c=_0x111817(0x140)[_0x111817(0x33f)](_0x3de06d,'\x20')[_0x111817(0x33f)](_0x4e6bc9||'')[_0x111817(0x32f)](),_0x14c90e=M[_0x111817(0x116)]('_'[_0x111817(0x33f)](Ut()));return ye(_0x37f69d,''[_0x111817(0x33f)](_0x3de06d),{'defIds':_0x37f69d[_0x111817(0x257)],'idSuffix':_0x14c90e[_0x111817(0x258)]},E({'ref':_0x463f79,'className':_0x2b4e1c},_0xeb7f12),_0x4f1c8);});function ye(_0x22be1c,_0x524812,_0x14a93b,_0x504c6a,_0x237e88){const _0x442913=_0x1cc422;return M[_0x442913(0x1db)](_0x22be1c[_0x442913(0x336)],E(E({'key':_0x524812},Ot(_0x22be1c,_0x14a93b,_0x237e88)),_0x504c6a),(Dt(_0x22be1c,_0x14a93b)[_0x442913(0x11d)]||[])[_0x442913(0x2ba)](function(_0x213230,_0x355dff){const _0x51db9a=_0x442913;return ye(_0x213230,''[_0x51db9a(0x33f)](_0x524812,'-')[_0x51db9a(0x33f)](_0x22be1c[_0x51db9a(0x336)],'-')[_0x51db9a(0x33f)](_0x355dff),_0x14a93b,void 0x0,_0x237e88);}));}function Ot(_0x7762bf,_0x15b8fc,_0x13bb66){const _0x411c6b=_0x1cc422;var _0x26f205=E({},_0x7762bf['attrs']);_0x13bb66!=null&&_0x13bb66[_0x411c6b(0x2df)]&&_0x26f205[_0x411c6b(0x12e)]===_0x411c6b(0x2df)&&(_0x26f205[_0x411c6b(0x12e)]=_0x13bb66['colorChannel1']),_0x7762bf[_0x411c6b(0x336)]==='mask'&&_0x26f205['id']&&(_0x26f205['id']=_0x26f205['id']+_0x15b8fc['idSuffix']),Object[_0x411c6b(0x276)](_0x26f205)[_0x411c6b(0x298)](function(_0x422d06){const _0xe147e8=_0x411c6b;var _0x2ef3f1=_0x422d06[0x0],_0x5046ca=_0x422d06[0x1];_0x2ef3f1===_0xe147e8(0x2fd)&&typeof _0x5046ca==_0xe147e8(0x28a)&&(_0x26f205[_0x2ef3f1]=_0x5046ca['replace'](/url\(#(.*)\)/,'url(#$1'[_0xe147e8(0x33f)](_0x15b8fc[_0xe147e8(0x109)],')')));});var _0x461cad=_0x15b8fc[_0x411c6b(0x257)];return!_0x461cad||_0x461cad['length']===0x0||(_0x7762bf[_0x411c6b(0x336)]===_0x411c6b(0x216)&&_0x26f205[_0x411c6b(0x2bb)]&&(_0x26f205[_0x411c6b(0x2bb)]=_0x26f205[_0x411c6b(0x2bb)]+_0x15b8fc[_0x411c6b(0x109)]),Object[_0x411c6b(0x276)](_0x26f205)['forEach'](function(_0x47669d){const _0xe2d105=_0x411c6b;var _0x297740=_0x47669d[0x0],_0x13c119=_0x47669d[0x1];typeof _0x13c119=='string'&&(_0x26f205[_0x297740]=_0x13c119[_0xe2d105(0x2e4)](/url\(#(.*)\)/,_0xe2d105(0x145)[_0xe2d105(0x33f)](_0x15b8fc[_0xe2d105(0x109)],')')));})),_0x26f205;}function Dt(_0x40bc48,_0xeb5808){const _0x4408ec=_0x1cc422;var _0x488c5a,_0x4f610c=_0xeb5808[_0x4408ec(0x257)];return!_0x4f610c||_0x4f610c[_0x4408ec(0x357)]===0x0?_0x40bc48:_0x40bc48[_0x4408ec(0x336)]===_0x4408ec(0x20c)&&(!((_0x488c5a=_0x40bc48[_0x4408ec(0x11d)])===null||_0x488c5a===void 0x0)&&_0x488c5a[_0x4408ec(0x357)])?E(E({},_0x40bc48),{'children':_0x40bc48[_0x4408ec(0x11d)][_0x4408ec(0x2ba)](function(_0x2a8c2a){const _0x1882f9=_0x4408ec;return typeof _0x2a8c2a[_0x1882f9(0xf9)]['id']=='string'&&_0x4f610c&&_0x4f610c[_0x1882f9(0x123)](_0x2a8c2a['attrs']['id'])>-0x1?E(E({},_0x2a8c2a),{'attrs':E(E({},_0x2a8c2a['attrs']),{'id':_0x2a8c2a[_0x1882f9(0xf9)]['id']+_0xeb5808['idSuffix']})}):_0x2a8c2a;})}):_0x40bc48;}function Ut(){const _0x12e49b=_0x1cc422;return Math[_0x12e49b(0x172)]()[_0x12e49b(0x362)](0x24)[_0x12e49b(0x176)](0x2,0x8);}be[_0x1cc422(0x153)]=_0x1cc422(0xed);var Nt={'tag':'svg','attrs':{'fill':_0x1cc422(0x26d),'viewBox':_0x1cc422(0x333),'width':_0x1cc422(0x26f),'height':_0x1cc422(0x26f)},'children':[{'tag':'g','attrs':{'clipPath':_0x1cc422(0x1b2)},'children':[{'tag':_0x1cc422(0x294),'attrs':{'stroke':_0x1cc422(0x35b),'d':_0x1cc422(0x2eb),'strokeLinecap':'round','strokeLinejoin':_0x1cc422(0x1e9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1cc422(0x284),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x1cc422(0x294),'attrs':{'fill':_0x1cc422(0x1cc),'d':_0x1cc422(0x250)}}]}]}],'defIds':[_0x1cc422(0x173)]},$e=M[_0x1cc422(0x158)](function(_0x1294a9,_0x385cb1){const _0x11ecaf=_0x1cc422;return M[_0x11ecaf(0x1db)](be,Object['assign']({},_0x1294a9,{'id':_0x11ecaf(0x332),'ref':_0x385cb1,'icon':Nt}));});function _0x1c04(_0xf911c5,_0x56788c){const _0x2eb0a1=_0x2eb0();return _0x1c04=function(_0x1c0422,_0x3a2545){_0x1c0422=_0x1c0422-0xea;let _0x4c085e=_0x2eb0a1[_0x1c0422];return _0x4c085e;},_0x1c04(_0xf911c5,_0x56788c);}$e[_0x1cc422(0x153)]=_0x1cc422(0x19b);var Mt={'tag':_0x1cc422(0x209),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x1cc422(0x26f),'height':_0x1cc422(0x26f)},'children':[{'tag':'g','attrs':{'clipPath':_0x1cc422(0x1a5)},'children':[{'tag':_0x1cc422(0x294),'attrs':{'stroke':_0x1cc422(0x35b),'d':_0x1cc422(0xeb),'strokeLinecap':_0x1cc422(0x1e9),'strokeLinejoin':_0x1cc422(0x1e9),'strokeWidth':1.2}}]},{'tag':_0x1cc422(0x20c),'attrs':{},'children':[{'tag':_0x1cc422(0x284),'attrs':{'id':_0x1cc422(0x235)},'children':[{'tag':'path','attrs':{'fill':_0x1cc422(0x1cc),'d':_0x1cc422(0x250),'transform':_0x1cc422(0x310)}}]}]}],'defIds':[_0x1cc422(0x235)]},xe=M[_0x1cc422(0x158)](function(_0x31e53e,_0x55d96a){const _0x4b91e5=_0x1cc422;return M[_0x4b91e5(0x1db)](be,Object[_0x4b91e5(0x1ef)]({},_0x31e53e,{'id':_0x4b91e5(0x376),'ref':_0x55d96a,'icon':Mt}));});xe[_0x1cc422(0x153)]=_0x1cc422(0x289);const Pt=_0x1cc422(0x352),wt=_0x1cc422(0x106),Lt=_0x1cc422(0x212),At=_0x1cc422(0x32e),yt=_0x1cc422(0x17e),H={'onlineStatusIcon':Pt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':At,'offline':yt};function $t(_0x3a24a1){const _0x366d58=_0x1cc422;switch(_0x3a24a1){case u[_0x366d58(0x25c)][_0x366d58(0x2e7)]:return _0x366d58(0x2cf);case u[_0x366d58(0x25c)][_0x366d58(0x1ea)]:return _0x366d58(0x32a);case u[_0x366d58(0x25c)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x366d58(0x355)]:return _0x366d58(0x27b);case u[_0x366d58(0x25c)][_0x366d58(0x103)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x366d58(0x25c)][_0x366d58(0x27c)]:case u[_0x366d58(0x25c)][_0x366d58(0x1c7)]:return _0x366d58(0x260);}}function _0x2eb0(){const _0x9c032=['subscribe','CollaborationStatusDisplay','collab-text-anchor-','getSheetBySheetId','M0\x200H16V16H0z','getTypeOfUnitDisposed$','disposeUnit','with','NO_OTHER_CLIENTS_EDITING','getUndoRedoMutationParamsCache','mergeOverrideWithDependencies','defIds','current','CollaborationUIEventId','_beforeCloseService','collaboration-client-ui.config','CollaborationStatus','IConfigService','updateOfflineData','DesktopCollaborationStatusDisplayController','collabStatus.synced','_saveTaskMap','endRow','evenodd','SUBMIT_CHANGESET_TIMEOUT','_assignedColors','_getSessionTicket','syncEditingCollabCursor','setConfig','onPointerMove$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','generateRandomId','call','none','CollaborationUIEventService','1em','UNRECOGNIZED','SetSelectionsOperation','ONLINE','_instanceService','_collaborationUIEventService','transform','entries','offline','extend','SOCKET_FAILED_RETRY','Shape','collabStatus.notCollab','SYNCED','_cachedData','_colorAssignService','ISocketService','_configService','_textBubble','width','_hover','clipPath','JOIN_ROOM_FAILED','_scene','deepClone','HEADER_MENU','OnLineSingle','string','_drawTextRange','_init','RECT','div','column','saveImage','fromEvent','cursorInfo$','rgba(255,\x20255,\x20255,\x200.01)','path','_unitOnClients','_name','_collabCursorController','forEach','Tools','cursorInfo','_saveCache','_roomMembers$','@univerjs/sheets','addEventListener','handleMoveRange','_collabCursorState$','_renderManagerService','COLORS','CHANGESET_REVISION_CONFILICT','apply','DocSelectionManagerService','InsertRangeMoveDownCommandId','MemberService','_scheduleSaving','transformMutationsWithChangeset','all','set','clearInterval','location','transformRemoteChangeset','TEXT','getStateCache','m1Prime','_removeClearOtherTimer','flatMap','BrowserCollaborationSocketService','_entities','LOCAL_CACHE_INTERVAL_KEY','@univerjs/core','sheetId','rxjs','map','xlink:href','rxjs/operators','values','YUUMI_RATE_OVER_LIMIT','loadOfflineData','transformByState','registerRenderModule','function','RxDisposable','unshift','_startDocCollabCursor','...','exhaustSavingTask','hide','collabCursorState$','drawWith','data','getCurrentRevOfUnit','@univerjs/docs-ui','INVITE_CODE_REQUIRED','collabStatus.offline','getTypeOfUnitAdded$','SetWorksheetActivateCommand','onlineStatusIcon','measureText','_updateCollabCursors','setUndoRedoMutationParamsCache','href','onStarting','transformSelections','permission.title','defineProperty','getItem','triggerDblclick','registerBeforeClose','debounce','colorChannel1','wsSessionTicketUrl','RegularPolygon','replaceDocRanges','saveTaskMap','replace','roomMembers','_notificationService','OFFLINE','_registerDependencies','getValue','connectInjector','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','getSheetId','reconnect','redoState','_heartbeatTimer','_transformService','_setupSubUnitSync','_transformPreviousActiveRange','_cursorInfo$','_initStatusListener','OTHER_CLIENT_EDITING','send','prototype','ticket','ColorKit','IRenderManagerService','isArray','UPDATE_CURSOR','mask','origin','push','RevisionService','_sheetSkeletonManagerService','_initEntityListener','Error','_dataLoaderService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','serializeRangeWithSheet','@univerjs/network','getFocusedUnit','_removeCollabCursors','show','react','getVpScrollXYInfoByPosToVp','UNAUTHENTICATED','fromEventSubject','FromArray','translate(.97)','_draw','_memberService','_docSkeletonManagerService','_handleHover','subUnitId','toStringTag','getMergeData','actions','SheetsSelectionsService','DocStateChangeManagerService','Rectangle','LICENSE_IMPORT_SIZE_EXCEEDED','save','_syncEditingCollabCursorService','OTHER_CLIENTS_EDITING','getCurrentSelections','_docStateChangeManagerService','INTERNAL_ERROR','find','addClipboardHook','shareReplay','_range','DependentOn','loadUnit','selections','collabStatus.conflict','doc.mutation.rich-text-editing','_imageIoService','ACTIVE_UNIT_EVENT_CHANNEL','univer-online','trim','propertyIsEnumerable','@univerjs/design','off-line-single','0\x200\x2016\x2016','hovered','DeleteRangeMoveLeftCommandId','tag','beginPath','Unknown\x20user','getUnitStatus$','throttleTime','symbol','INVITE_CODE_HAS_BEEN_UES','_messageService','_cursors','concat','UniverInstanceType','jsx','complete','m2Prime','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_drawAnchor','findNodePositionByCharIndex','NOT_FOUND','_cursor','parse','registerComponent','body','_initDependencies','useObservable','Disposable','onTransformChange$','onCommandExecuted','startsWith','univer-online-status-icon','sessionStatus$','assignAColorForMemberID','NOT_COLLAB','/run/','length','onPointerEnter$','CollaborationEvent','_lastPointer','currentColor','getOffsetConfig','getRenderById','transformStateCache','debug','handleInsertRangeMoveRight','gold400','toString','RemoveRowCommandId','next','filter','entityInit$','LICENSE_EXPORT_SIZE_EXCEEDED','Rect','_handleLeaveEvent','UniverCollaborationClientUIPlugin','registerRefRange','fillStyle','selection','_selfUnitIDs','_initStatusComponent','WebBrowserSingleActiveUnitService','_entityInit$','roomMembers$','SHEET_VIEWPORT_KEY','createIdentifier','permission.content','on-line-single','4424JFYIGH','runRefRangeMutations','fillRule','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','2KUwNEc','UniverIcon','_initCommandExecutedListener','getCollabEntity$','BehaviorSubject','resize','Warning','_disabled','invokeId','toRgbString','_getAnchorBounding','runId','takeUntil','attrs','sheetID','LICENSE_DISTRO_REJECTED','UNIVER_SHEET','from','toDisposable','pushState','startRow','post','_eventUnsubscribe','AWAITING','getCollabCursors$','_docTransformSelectionsService','univer-online-status-title','_hovered','currentSkeleton$','idSuffix','saveOfflineData','INVALID_INVITE_CODE','_updateSubUnitFromURLParams','getRangePointData','_univerInstanceService','merge','purple300','getUnitId','setShapeProps','_commandService','getMember','28989yeFZcf','useRef','InsertColCommandId','_cursorShapes','dispose','SessionStatus','4230198XChtMB','subscribeEvent','children','Optional','YUUMI_SUBSCRIPTION_NOT_FOUND','color','SNAPSHOT_INVALID_SNAPSHOT','getViewport','indexOf','transformMutation','Injector','getCellPositionByOffset','undoState','InsertRangeMoveRightCommandId','dispose$','get','ITransformService','isEditing','_ensureSubject','fill','_onCursorDelete','unsubscribe','transformIMECache','asObservable','params','sessionTicket','CONNECTOR_DATA_TOO_LARGE','getDocRanges','icon','YUUMI_URL_COL_OUT_OF_RANGE','has','_getSaveTimeout','TOO_MANY_REQUESTS','top','USER_NOT_INVITED_CODE','SNAPSHOT_HAS_BEEN_REMOVED','_logService','univerjs-icon\x20univerjs-icon-','_updateLocalCursor','NodePositionConvertToCursor','INVITE_CODE_ALREADY_BOUND','requireSession','url(#$1','3192012czhnaB','_unitStatus','_initEvent','disposeWithMe','@univerjs/engine-formula','DocSkeletonManagerService','engine','bottom','USERS_LEAVE','onRendered','_backgroundColor','setItem','MUTATION','displayName','_injector','collaboration.single-unit.warning','skeleton','_hideTimer','forwardRef','getSkeleton','collab-rect-range-','clearTimeout','getCurrentUnitForType','ENSURE_SNAPSHOT_EXECUTION','deserializeRangeWithSheet','_toggleOffline','_revisionService','mapTo','RefRangeService','_id','subunit','some','_httpService','ThemeService','CollaborationDataLoaderController','_anchorDot','APPLY_DUPLICATED','_handleEvent','font','1345238InkLSJ','labelPosition','Subject','useDependency','getParam','random','off-line-single_clip0_910_343','session.will-retry','_scheduleClearOtherTimer','substring','_setupBeforeClosingHandler','onlineStatusTitle','_toggleOnline','imageSourceType','LocaleService','@univerjs/drawing','15301650hEAjSK','univer-offline','_getScale','hasOwnProperty','Vector2','clsx','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','replaceState','backgroundColor','range','size','code','_getSheetObject','popstate','_collaborationController','unit','LICENSE_MAX_UNITS_EXCEEDED','_online','_urlService','INotificationService','ILogService','getCoordByCell','UNIVER_DOC','textRanges','IUniverInstanceService','_doCreateSocket','UnitStatus','event$','removeParam','_createSocketURL','OffLineSingle','DEFAULT_WS_SESSION_TICKET_URL','whenReady','black','override','addObjects','isTransformMutationsWithChangesetSuccess','enableLocalCache','getConfig','_updateURLWithCurrentState','url(#on-line-single_clip0_910_349)','_color','endColumn','_localeService','IRemoteInstanceService','addObject','mutations','_labelPosition','HTTPService','_collabSessionService','add','closePath','APPLY_NON_SEQUENTIAL_REVISION','url(#off-line-single_clip0_910_343)','_clearOtherTimers','searchParams','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','memberID','_localCacheService','executeCommand','VIEW_MAIN','handleIRemoveRow','_document','editingUnit','DocIMEInputManagerService','COMPLETION_FINISHED','[CollaborationDataLoaderController]','error','_docSkeleton','_docTransformIMECacheService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ICommandService','stringify','onLocalMutation','PENDING','_refreshCollabCursors','Plugin','TEXT_RANGE_LAYER_INDEX','getCurrent','#fff','_getMergeRange','disableLocalCache','className','ALREADY_EXISTS','jiqing500','eventID','LOCAL_CACHE_INTERVAL','_anchor','getMemberID','history','combineLatest','_drawRectRange','_context','RemoveColCommandId','createElement','useCallback','_render','setParam','isActive','_startSheetCollabCursor','YUUMI_UNABLE_LOAD_URL','verdancy600','CollaborationSocketService','PERMISSION_DENIED','max','red300','INVALID_ARGUMENT','DocCollaborationEntity','round','CONFLICT','currentTheme$','type','getAncestorScale','getOwnPropertySymbols','assign','pipe','UNDEFINED','_localStorageService','_uiPartsService','Inject','unload','ISnapshotServerService','onMouseMove','isTransformMutationFailure','LOGIN_FAILED','setActiveRange','name','getOwnPropertyDescriptor','_refRangeService','InsertRowCommandId','RemoteUniscriptService','516196DpXJHo','setTimeout','getActiveRange','onPointerLeave$','PY_RUNTIME_SCRIPT_ERROR','fillText','_session','focused$','CollaborationSessionService','svg','handleInsertRow','[RemoteUniscriptService]:\x20no\x20focused\x20unit','defs','_docSyncEditingCollabCursorService','_docTransformStateCacheService','8077458KbLxVt','text','Failed','univer-online-status','_registerRenderDependencies','createInstance','unitID','use','switchMap','#FFF','handleIRemoveCol','collab-client.tooltip.reconnect','MessageType','handleInsertCol','EffectRefRangId','IImageIoService','APPLY_PERMISSION_DENIED','_colorIndex','urlChange$','_docClipboardService','DOC_RANGE_TYPE','online','Module','collaboration.closeRoom','APPLY_REVISION_CONFILICT','Tooltip','handleDeleteRangeMoveLeft','moveTo','_shapes','@univerjs/docs','setAlpha','_transformUndoRedoStack','_scheduleHeartbeat','collaboration-client.offline-data-not-saved','_send','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','5IVDFff','lineTo','on-line-single_clip0_910_349','_themeService','min','_transformHistoryAndStateStack','getColor','_onRefRangeChange','_config','_onCursorUpdate','Workbook','delete','restore','then','WebSocketService','_status$','unitId','makeDirty','@univerjs/sheets-ui','@univerjs/ui','UniverCollaborationClientPlugin','ranges','TRANSFORM_CHANGE_OBSERVABLE_TYPE','CollaborationController','@univerjs-pro/collaboration-client'];_0x2eb0=function(){return _0x9c032;};return _0x2eb0();}function je(_0x2fc866){const _0x2faa0e=_0x1cc422,{status$:_0x405e61}=_0x2fc866,_0x596d63=R[_0x2faa0e(0x34d)](_0x405e61,u['CollaborationStatus'][_0x2faa0e(0x355)]),_0x3559aa=R[_0x2faa0e(0x170)](a[_0x2faa0e(0x17b)]),_0x34cb93=R['useDependency'](u[_0x2faa0e(0x208)]),_0x1e8332=_0x596d63!==u[_0x2faa0e(0x25c)][_0x2faa0e(0x2e7)],_0x390773=_0x3559aa['t']($t(_0x596d63)),_0x26a82f=T[_0x2faa0e(0x182)](H['onlineStatus'],{[H[_0x2faa0e(0x224)]]:_0x1e8332,[H[_0x2faa0e(0x277)]]:!_0x1e8332}),_0x18e8bc=_0x1e8332?w[_0x2faa0e(0x341)](xe,{}):w[_0x2faa0e(0x341)]($e,{}),_0x3e9039=M[_0x2faa0e(0x1dc)](()=>{const _0x443e58=_0x2faa0e;_0x1e8332||_0x34cb93[_0x443e58(0x2ed)]();},[_0x1e8332,_0x34cb93]);function _0x14a5d3(){const _0x235cb9=_0x2faa0e;return w['jsxs']('div',{'className':T['clsx'](_0x26a82f,'univer-flex\x20univer-items-center'),'onClick':_0x3e9039,'children':[w[_0x235cb9(0x341)](_0x235cb9(0x28e),{'className':H[_0x235cb9(0x2d2)],'children':_0x18e8bc}),w['jsx'](_0x235cb9(0x28e),{'className':H[_0x235cb9(0x178)],'children':_0x390773})]});}return _0x1e8332?_0x14a5d3():w[_0x2faa0e(0x341)](T[_0x2faa0e(0x228)],{'title':_0x3559aa['t'](_0x2faa0e(0x21a)),'children':_0x14a5d3()});}var xt=Object[_0x1cc422(0x1fc)],jt=(_0x57f8cf,_0x260027,_0x3f7bf0,_0x3b65c9)=>{const _0x263426=_0x1cc422;for(var _0x127ebb=_0x3b65c9>0x1?void 0x0:_0x3b65c9?xt(_0x260027,_0x3f7bf0):_0x260027,_0x3020f7=_0x57f8cf[_0x263426(0x357)]-0x1,_0x254b8b;_0x3020f7>=0x0;_0x3020f7--)(_0x254b8b=_0x57f8cf[_0x3020f7])&&(_0x127ebb=_0x254b8b(_0x127ebb)||_0x127ebb);return _0x127ebb;},X=(_0x24c2c1,_0x4bfc25)=>(_0x487077,_0x1d9edc)=>_0x4bfc25(_0x487077,_0x1d9edc,_0x24c2c1);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x3839b6,_0x430f85,_0x3385eb,_0xffe012){const _0x4c6664=_0x1cc422;super(),h(this,_0x4c6664(0x242),new d['BehaviorSubject'](u[_0x4c6664(0x25c)][_0x4c6664(0x355)])),(this[_0x4c6664(0x10e)]=_0x3839b6,this['_injector']=_0x430f85,this['_collaborationController']=_0x3385eb,this[_0x4c6664(0x1f3)]=_0xffe012,this[_0x4c6664(0x36f)](),this[_0x4c6664(0x2f4)]());}[_0x1cc422(0x2f4)](){const _0x514897=_0x1cc422;this['disposeWithMe'](this[_0x514897(0x10e)][_0x514897(0x207)][_0x514897(0x1f0)](d['switchMap'](()=>{const _0x3b4d7d=_0x514897,_0x2fd873=this[_0x3b4d7d(0x10e)][_0x3b4d7d(0x308)]();return _0x2fd873?this[_0x3b4d7d(0x18b)][_0x3b4d7d(0xef)](_0x2fd873[_0x3b4d7d(0x111)]()):d['of'](null);}),d['switchMap'](_0x322fe2=>_0x322fe2?_0x322fe2['status$']:d['of'](u[_0x514897(0x25c)][_0x514897(0x355)])))[_0x514897(0x24c)](_0x237337=>{const _0x1c0123=_0x514897;this[_0x1c0123(0x242)]['next'](_0x237337);}));}[_0x1cc422(0x36f)](){const _0x12a6ee=_0x1cc422;this[_0x12a6ee(0x149)](this[_0x12a6ee(0x1f3)][_0x12a6ee(0x34a)](R['BuiltInUIPart'][_0x12a6ee(0x288)],()=>R[_0x12a6ee(0x2ea)](kt({'status$':this[_0x12a6ee(0x242)][_0x12a6ee(0x132)]()}),this[_0x12a6ee(0x154)])));}},exports[_0x1cc422(0x25f)]=jt([X(0x0,a[_0x1cc422(0x195)]),X(0x1,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),X(0x2,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x24a)])),X(0x3,R['IUIPartsService'])],exports[_0x1cc422(0x25f)]);function kt(_0x44440a){const {status$:_0x5c9f98}=_0x44440a;return function(){const _0x3d243f=_0x1c04;return w[_0x3d243f(0x341)](je,{'status$':_0x5c9f98});};}var Bt=Object[_0x1cc422(0x1fc)],Ht=(_0x1da175,_0x3962f3,_0x408cfc,_0x4930b9)=>{for(var _0x1ec17f=_0x4930b9>0x1?void 0x0:_0x4930b9?Bt(_0x3962f3,_0x408cfc):_0x3962f3,_0x352d95=_0x1da175['length']-0x1,_0xcc4c01;_0x352d95>=0x0;_0x352d95--)(_0xcc4c01=_0x1da175[_0x352d95])&&(_0x1ec17f=_0xcc4c01(_0x1ec17f)||_0x1ec17f);return _0x1ec17f;},y=(_0x38ad43,_0x409bcc)=>(_0x4541e0,_0x1a9e4b)=>_0x409bcc(_0x4541e0,_0x1a9e4b,_0x38ad43);let z=class extends a[_0x1cc422(0x34e)]{constructor(_0x5899ca,_0x433cc5,_0x252456,_0x2ec98e,_0x19067a,_0x40e595){const _0x25d52c=_0x1cc422;super(),this[_0x25d52c(0x25a)]=_0x5899ca,this[_0x25d52c(0x1b7)]=_0x433cc5,this['_collaborationUIEventService']=_0x252456,this[_0x25d52c(0x33d)]=_0x2ec98e,this['_notificationService']=_0x19067a,this[_0x25d52c(0x1a8)]=_0x40e595,this[_0x25d52c(0x177)](),this[_0x25d52c(0x148)]();}[_0x1cc422(0x177)](){const _0x345d47=_0x1cc422;this[_0x345d47(0x149)](this[_0x345d47(0x25a)][_0x345d47(0x2dd)](()=>{const _0x5b242f=_0x345d47;if(this['_localCacheService'][_0x5b242f(0x2e3)][_0x5b242f(0x187)])return this[_0x5b242f(0x1a8)]['t'](_0x5b242f(0x230));}));}['_initEvent'](){const _0x112e55=_0x1cc422;this[_0x112e55(0x149)](this[_0x112e55(0x274)][_0x112e55(0x198)][_0x112e55(0x24c)](_0x1af92f=>{const _0x20c601=_0x112e55;_0x1af92f['id']===u[_0x20c601(0x259)][_0x20c601(0x2f5)]&&this['_messageService'][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0xf2)],'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x155))}),_0x1af92f['id']===u[_0x20c601(0x259)]['CLOSE_ROOM']&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0xf2)],'content':this[_0x20c601(0x1a8)]['t']('collaboration.closeRoom')}),_0x1af92f['id']===u[_0x20c601(0x259)][_0x20c601(0x1e4)]&&this[_0x20c601(0x2e6)][_0x20c601(0x30a)]({'title':this['_localeService']['t'](_0x20c601(0x2d9)),'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x375)),'type':_0x20c601(0x1c0),'duration':0x0}),_0x1af92f['id']===u['CollaborationUIEventId'][_0x20c601(0x1ea)]&&this[_0x20c601(0x33d)]['show']({'type':T[_0x20c601(0x21b)][_0x20c601(0x303)],'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x226))+'('+_0x1af92f[_0x20c601(0x2cb)]+')'}),_0x1af92f['id']===u['CollaborationUIEventId'][_0x20c601(0x285)]&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)]['Warning'],'content':this[_0x20c601(0x1a8)]['t'](_0x1af92f[_0x20c601(0x2cb)]||'')}),_0x1af92f['id']===u[_0x20c601(0x259)][_0x20c601(0x279)]&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)]['Warning'],'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x174))}),_0x1af92f['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0x303)],'content':this[_0x20c601(0x1a8)]['t']('session.connection-failed')}),_0x1af92f['id']===u['CollaborationUIEventId'][_0x20c601(0x264)]&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0x303)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};z=Ht([y(0x0,R['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x1cc422(0x26e)])),y(0x3,R['IMessageService']),y(0x4,R[_0x1cc422(0x190)]),y(0x5,a[_0x1cc422(0x1f4)](a['LocaleService']))],z);const Ft=_0x1cc422(0x25b),Ne={},Ee=a[_0x1cc422(0x374)]('uni.network.url-service');var Wt=Object['getOwnPropertyDescriptor'],Yt=(_0x3767cc,_0x23b2f5,_0x284ac7,_0x106e8f)=>{const _0x114dcc=_0x1cc422;for(var _0x57bc73=_0x106e8f>0x1?void 0x0:_0x106e8f?Wt(_0x23b2f5,_0x284ac7):_0x23b2f5,_0x2ecfc7=_0x3767cc[_0x114dcc(0x357)]-0x1,_0x4559e9;_0x2ecfc7>=0x0;_0x2ecfc7--)(_0x4559e9=_0x3767cc[_0x2ecfc7])&&(_0x57bc73=_0x4559e9(_0x57bc73)||_0x57bc73);return _0x57bc73;},F=(_0x452a08,_0x4d714b)=>(_0x6e89d7,_0x5c32ff)=>_0x4d714b(_0x6e89d7,_0x5c32ff,_0x452a08);exports[_0x1cc422(0x168)]=class extends a['RxDisposable']{constructor(_0x4ebb38,_0x4c2011,_0x792519,_0x1d4bf9,_0x38ea0d){const _0x20d6fb=_0x1cc422;super(),this[_0x20d6fb(0x18f)]=_0x4ebb38,this[_0x20d6fb(0x13f)]=_0x4c2011,this[_0x20d6fb(0x113)]=_0x792519,this[_0x20d6fb(0x304)]=_0x1d4bf9,_0x38ea0d?_0x38ea0d==null||_0x38ea0d[_0x20d6fb(0x19d)]()[_0x20d6fb(0x240)](()=>this[_0x20d6fb(0x28c)]()):(this[_0x20d6fb(0x13f)][_0x20d6fb(0x35f)](_0x20d6fb(0x1bf),_0x20d6fb(0x232)),this[_0x20d6fb(0x28c)]());}async[_0x1cc422(0x28c)](){const _0xae1dd5=_0x1cc422,_0xd7faf4=this[_0xae1dd5(0x18f)][_0xae1dd5(0x171)](_0xae1dd5(0x18c)),_0x5f1ff8=this[_0xae1dd5(0x18f)][_0xae1dd5(0x171)](_0xae1dd5(0x1ec)),_0x526303=this[_0xae1dd5(0x18f)][_0xae1dd5(0x171)](_0xae1dd5(0x164));if(!_0xd7faf4||!_0x5f1ff8){this[_0xae1dd5(0x13f)][_0xae1dd5(0x35f)](_0xae1dd5(0x1bf),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x37a5d4=await this[_0xae1dd5(0x304)][_0xae1dd5(0x328)](_0xd7faf4,Number(_0x5f1ff8),_0x526303);_0x37a5d4&&_0x37a5d4 instanceof a[_0xae1dd5(0x23d)]&&this[_0xae1dd5(0x2f1)](_0x37a5d4);}async['_setupSubUnitSync'](_0x2314f5){const _0x2bdfbd=_0x1cc422;await this[_0x2bdfbd(0x10c)](_0x2314f5),_0x2314f5['activeSheet$'][_0x2bdfbd(0x1f0)](d['takeUntil'](this[_0x2bdfbd(0x129)]))[_0x2bdfbd(0x24c)](_0x18286a=>{const _0x37a1fb=_0x2bdfbd;_0x18286a&&this[_0x37a1fb(0x1a4)](_0x18286a);}),this[_0x2bdfbd(0x18f)][_0x2bdfbd(0x221)][_0x2bdfbd(0x1f0)](d[_0x2bdfbd(0xf8)](this[_0x2bdfbd(0x129)]))['subscribe'](()=>this[_0x2bdfbd(0x10c)](_0x2314f5));}[_0x1cc422(0x1a4)](_0x4ffe85,_0x5e1926=!0x1){const _0x3d2037=_0x1cc422,_0x3da421=this['_urlService']['getParam'](_0x3d2037(0x164));_0x4ffe85[_0x3d2037(0x2ec)]()!==_0x3da421&&this[_0x3d2037(0x18f)][_0x3d2037(0x1de)](_0x3d2037(0x164),_0x4ffe85[_0x3d2037(0x2ec)](),_0x5e1926);}async[_0x1cc422(0x10c)](_0x1320ed){const _0x434aad=_0x1cc422;var _0x4240e9;const _0x56b434=this[_0x434aad(0x18f)][_0x434aad(0x171)](_0x434aad(0x164));if(!_0x56b434||!_0x1320ed[_0x434aad(0x24f)](_0x56b434)){const _0x7c528c=_0x1320ed['getUnhiddenWorksheets']()[0x0],_0x46b6df=_0x1320ed[_0x434aad(0x24f)](_0x7c528c);if(!_0x46b6df)return;this['_updateURLWithCurrentState'](_0x46b6df,!0x0),await this[_0x434aad(0x113)][_0x434aad(0x1b8)](g[_0x434aad(0x2d1)]['id'],{'unitId':_0x1320ed[_0x434aad(0x111)](),'subUnitId':_0x7c528c});return;}((_0x4240e9=_0x1320ed['getActiveSheet']())==null?void 0x0:_0x4240e9[_0x434aad(0x2ec)]())!==_0x56b434&&await this[_0x434aad(0x113)][_0x434aad(0x1b8)](g[_0x434aad(0x2d1)]['id'],{'unitId':_0x1320ed[_0x434aad(0x111)](),'subUnitId':_0x56b434});}},exports[_0x1cc422(0x168)]=Yt([F(0x0,Ee),F(0x1,a[_0x1cc422(0x191)]),F(0x2,a[_0x1cc422(0x1c4)]),F(0x3,a[_0x1cc422(0x1f4)](u['DataLoaderService'])),F(0x4,a[_0x1cc422(0x11e)](Ke[_0x1cc422(0x1a9)]))],exports[_0x1cc422(0x168)]);var Vt=Object[_0x1cc422(0x1fc)],Xt=(_0x5f213b,_0x1e28e0,_0x17bab8,_0x331952)=>{const _0x356f18=_0x1cc422;for(var _0x48a7da=_0x331952>0x1?void 0x0:_0x331952?Vt(_0x1e28e0,_0x17bab8):_0x1e28e0,_0x16dfd1=_0x5f213b[_0x356f18(0x357)]-0x1,_0x32f60d;_0x16dfd1>=0x0;_0x16dfd1--)(_0x32f60d=_0x5f213b[_0x16dfd1])&&(_0x48a7da=_0x32f60d(_0x48a7da)||_0x48a7da);return _0x48a7da;},le=(_0x2262da,_0x480588)=>(_0x5125f1,_0x30fced)=>_0x480588(_0x5125f1,_0x30fced,_0x2262da);let J=class{constructor(_0x3926eb,_0x12751d,_0x86f809){const _0x3278b3=_0x1cc422;this[_0x3278b3(0x154)]=_0x3926eb,this['_transformService']=_0x12751d,this[_0x3278b3(0x2a1)]=_0x86f809;}[_0x1cc422(0x131)](_0x4b76f3){const _0x50994c=_0x1cc422;this[_0x50994c(0x22e)](_0x4b76f3),this[_0x50994c(0x2f2)](_0x4b76f3);}[_0x1cc422(0x2ae)](_0x414a5c){const _0x144e8c=_0x1cc422,{unitID:_0xf9170b}=_0x414a5c,_0x33fc78=this['_renderManagerService'][_0x144e8c(0x35d)](_0xf9170b)[_0x144e8c(0x253)](b[_0x144e8c(0x1bd)]),{redoCache:_0x3765c6}=_0x33fc78[_0x144e8c(0x255)]();if(_0x3765c6[_0x144e8c(0x357)]===0x0)return _0x414a5c;let _0x407b0d=a['Tools'][_0x144e8c(0x287)](_0x414a5c['mutations'][0x0]);for(let _0x4b4059=0x0;_0x4b4059<_0x3765c6[_0x144e8c(0x357)];_0x4b4059++){const _0x2d8236={'id':_0x144e8c(0x32b),'params':{..._0x3765c6[_0x4b4059]}},_0x5eb4b9=this['_transformService']['transformMutation'](_0x407b0d,_0x2d8236,!0x1);if(m[_0x144e8c(0x1f8)](_0x5eb4b9))throw _0x5eb4b9[_0x144e8c(0x1c0)];_0x407b0d=_0x5eb4b9[_0x144e8c(0x2b1)];}return{...a[_0x144e8c(0x299)][_0x144e8c(0x287)](_0x414a5c),'mutations':[_0x407b0d]};}[_0x1cc422(0x22e)](_0x48e595){const _0x2b3f8b=_0x1cc422,{unitID:_0x412f5f}=_0x48e595,_0x406a20=this[_0x2b3f8b(0x2a1)][_0x2b3f8b(0x35d)](_0x412f5f)[_0x2b3f8b(0x253)](b[_0x2b3f8b(0x1bd)]),{undoCache:_0x4d8c59,redoCache:_0x4d7caf}=_0x406a20[_0x2b3f8b(0x255)]();if(_0x4d8c59[_0x2b3f8b(0x357)]===0x0||_0x4d7caf[_0x2b3f8b(0x357)]===0x0)return;const _0x400da4=[],_0x19f71f=[];let _0x5ec1bc=a[_0x2b3f8b(0x299)][_0x2b3f8b(0x287)](_0x48e595[_0x2b3f8b(0x1ab)][0x0]),_0x399480=a[_0x2b3f8b(0x299)][_0x2b3f8b(0x287)](_0x48e595[_0x2b3f8b(0x1ab)][0x0]);for(let _0x369544=_0x4d8c59['length']-0x1;_0x369544>=0x0;_0x369544--){const _0x2c0343={'id':_0x2b3f8b(0x32b),'params':{..._0x4d8c59[_0x369544]}},_0x216a67={'id':_0x2b3f8b(0x32b),'params':{..._0x4d7caf[_0x369544]}},_0x3de154=this['_transformService'][_0x2b3f8b(0x124)](_0x5ec1bc,_0x2c0343,!0x1),_0x58edcd=this['_transformService']['transformMutation'](_0x399480,_0x216a67,!0x1);if(m[_0x2b3f8b(0x1f8)](_0x3de154))throw _0x3de154[_0x2b3f8b(0x1c0)];if(m[_0x2b3f8b(0x1f8)](_0x58edcd))throw _0x58edcd[_0x2b3f8b(0x1c0)];_0x400da4[_0x2b3f8b(0x2c4)](_0x3de154[_0x2b3f8b(0x343)][_0x2b3f8b(0x133)]),_0x19f71f['unshift'](_0x58edcd[_0x2b3f8b(0x343)]['params']),_0x5ec1bc=_0x3de154[_0x2b3f8b(0x2b1)],_0x399480=_0x58edcd['m1Prime'];}_0x406a20[_0x2b3f8b(0x2d5)]({'undoCache':_0x400da4,'redoCache':_0x19f71f});}[_0x1cc422(0x2f2)](_0x18f911){const _0x5a6b3b=_0x1cc422,{unitID:_0x3ce2e3}=_0x18f911,_0x30fa58=this[_0x5a6b3b(0x2a1)][_0x5a6b3b(0x35d)](_0x3ce2e3)[_0x5a6b3b(0x253)](b[_0x5a6b3b(0x1bd)]),_0x351891=_0x30fa58[_0x5a6b3b(0x202)]();if(_0x351891==null)return;const _0x490dfd=[{'id':_0x5a6b3b(0x32b),'params':{'unitId':_0x18f911[_0x5a6b3b(0x215)],'actions':null,'textRanges':[_0x351891]}}],_0x4933d4=this[_0x5a6b3b(0x2f0)][_0x5a6b3b(0x2a9)](_0x18f911,_0x490dfd);if(!m[_0x5a6b3b(0x1a1)](_0x4933d4))throw _0x4933d4[_0x5a6b3b(0x1c0)];const _0x1ba44d=_0x4933d4[_0x5a6b3b(0x343)][0x0]['params'][_0x5a6b3b(0x194)];Array[_0x5a6b3b(0x2fb)](_0x1ba44d)&&_0x1ba44d[_0x5a6b3b(0x357)]&&_0x30fa58[_0x5a6b3b(0x1fa)](_0x1ba44d[0x0]);}};J=Xt([le(0x0,a[_0x1cc422(0x1f4)](a['Injector'])),le(0x1,m[_0x1cc422(0x12b)]),le(0x2,p[_0x1cc422(0x2fa)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x2fc5f9,_0x19ffb,_0x5fc439,_0x4585de)=>{for(var _0x3656db=_0x4585de>0x1?void 0x0:_0x4585de?Gt(_0x19ffb,_0x5fc439):_0x19ffb,_0x58b2e7=_0x2fc5f9['length']-0x1,_0x52d36c;_0x58b2e7>=0x0;_0x58b2e7--)(_0x52d36c=_0x2fc5f9[_0x58b2e7])&&(_0x3656db=_0x52d36c(_0x3656db)||_0x3656db);return _0x3656db;},he=(_0x3c1ead,_0x4fa3fc)=>(_0x444a05,_0x4fa1ff)=>_0x4fa3fc(_0x444a05,_0x4fa1ff,_0x3c1ead);let Z=class{constructor(_0x15d898,_0x3f077a,_0x25d969){const _0x2df5c9=_0x1cc422;this[_0x2df5c9(0x154)]=_0x15d898,this[_0x2df5c9(0x2f0)]=_0x3f077a,this[_0x2df5c9(0x321)]=_0x25d969;}[_0x1cc422(0x35e)](_0x1931b0){const _0x2481aa=_0x1cc422;this[_0x2481aa(0x238)](_0x1931b0);}['transformRemoteChangeset'](_0x1be17b){const _0x29a6d7=_0x1cc422,{unitID:_0x463777}=_0x1be17b,{collaboration:_0x306655}=this[_0x29a6d7(0x321)][_0x29a6d7(0x2b0)](_0x463777);if(_0x306655[_0x29a6d7(0x357)]===0x0)return _0x1be17b;let _0x519f9d=a[_0x29a6d7(0x299)][_0x29a6d7(0x287)](_0x1be17b['mutations'][0x0]);for(let _0xe95bb6=0x0;_0xe95bb6<_0x306655['length'];_0xe95bb6++){const _0x58cc75={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x306655[_0xe95bb6][_0x29a6d7(0x243)],..._0x306655[_0xe95bb6]['redoState']}},_0x1f9b33=this[_0x29a6d7(0x2f0)]['transformMutation'](_0x519f9d,_0x58cc75,!0x1);if(m[_0x29a6d7(0x1f8)](_0x1f9b33))throw _0x1f9b33['error'];_0x519f9d=_0x1f9b33['m1Prime'];}return{...a[_0x29a6d7(0x299)][_0x29a6d7(0x287)](_0x1be17b),'mutations':[_0x519f9d]};}[_0x1cc422(0x238)](_0x1b10ac){const _0xc60b0b=_0x1cc422,{unitID:_0x5703f0}=_0x1b10ac,{history:_0x54b8a6,collaboration:_0x49c531}=this[_0xc60b0b(0x321)][_0xc60b0b(0x2b0)](_0x5703f0);if(_0x54b8a6[_0xc60b0b(0x357)]===0x0&&_0x49c531['length']===0x0)return;const _0x3acbcd=[],_0x105414=[];let _0x16a92=a[_0xc60b0b(0x299)][_0xc60b0b(0x287)](_0x1b10ac['mutations'][0x0]),_0x221614=a['Tools'][_0xc60b0b(0x287)](_0x1b10ac['mutations'][0x0]);for(let _0x384828=_0x54b8a6[_0xc60b0b(0x357)]-0x1;_0x384828>=0x0;_0x384828--){const _0x9528cd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x54b8a6[_0x384828][_0xc60b0b(0x243)],..._0x54b8a6[_0x384828][_0xc60b0b(0x127)]}},_0x774158={'id':_0xc60b0b(0x32b),'params':{'unitId':_0x54b8a6[_0x384828][_0xc60b0b(0x243)],..._0x54b8a6[_0x384828]['redoState']}},_0x45eff5=this[_0xc60b0b(0x2f0)][_0xc60b0b(0x124)](_0x16a92,_0x9528cd,!0x1),_0x18ff61=this[_0xc60b0b(0x2f0)][_0xc60b0b(0x124)](_0x221614,_0x774158,!0x1);if(m['isTransformMutationFailure'](_0x45eff5))throw _0x45eff5[_0xc60b0b(0x1c0)];if(m['isTransformMutationFailure'](_0x18ff61))throw _0x18ff61['error'];_0x3acbcd[_0xc60b0b(0x2c4)]({..._0x54b8a6[_0x384828],'undoState':_0x45eff5[_0xc60b0b(0x343)][_0xc60b0b(0x133)],'redoState':_0x18ff61['m2Prime'][_0xc60b0b(0x133)]}),_0x16a92=_0x45eff5[_0xc60b0b(0x2b1)],_0x221614=_0x18ff61[_0xc60b0b(0x2b1)];}_0x16a92=a[_0xc60b0b(0x299)]['deepClone'](_0x1b10ac[_0xc60b0b(0x1ab)][0x0]),_0x221614=a[_0xc60b0b(0x299)]['deepClone'](_0x1b10ac[_0xc60b0b(0x1ab)][0x0]);for(let _0x1a1b83=_0x49c531['length']-0x1;_0x1a1b83>=0x0;_0x1a1b83--){const _0x4f0d88={'id':_0xc60b0b(0x32b),'params':{'unitId':_0x49c531[_0x1a1b83][_0xc60b0b(0x243)],..._0x49c531[_0x1a1b83][_0xc60b0b(0x127)]}},_0xe3574a={'id':_0xc60b0b(0x32b),'params':{'unitId':_0x49c531[_0x1a1b83]['unitId'],..._0x49c531[_0x1a1b83][_0xc60b0b(0x2ee)]}},_0x14da24=this[_0xc60b0b(0x2f0)]['transformMutation'](_0x16a92,_0x4f0d88,!0x1),_0x45407b=this[_0xc60b0b(0x2f0)][_0xc60b0b(0x124)](_0x221614,_0xe3574a,!0x1);if(m[_0xc60b0b(0x1f8)](_0x14da24))throw _0x14da24['error'];if(m[_0xc60b0b(0x1f8)](_0x45407b))throw _0x45407b['error'];_0x105414[_0xc60b0b(0x2c4)]({..._0x49c531[_0x1a1b83],'undoState':_0x14da24[_0xc60b0b(0x343)]['params'],'redoState':_0x45407b[_0xc60b0b(0x343)][_0xc60b0b(0x133)]}),_0x16a92=_0x14da24[_0xc60b0b(0x2b1)],_0x221614=_0x45407b['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x5703f0,{'history':_0x3acbcd,'collaboration':_0x105414});}};Z=qt([he(0x0,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),he(0x1,m[_0x1cc422(0x12b)]),he(0x2,a[_0x1cc422(0x1f4)](b[_0x1cc422(0x31a)]))],Z);var Kt=Object[_0x1cc422(0x1fc)],zt=(_0x40423a,_0x324126,_0x3e8b5b,_0x3798cc)=>{const _0x3f976d=_0x1cc422;for(var _0x1fe51c=_0x3798cc>0x1?void 0x0:_0x3798cc?Kt(_0x324126,_0x3e8b5b):_0x324126,_0x4fd738=_0x40423a[_0x3f976d(0x357)]-0x1,_0x57a0b8;_0x4fd738>=0x0;_0x4fd738--)(_0x57a0b8=_0x40423a[_0x4fd738])&&(_0x1fe51c=_0x57a0b8(_0x1fe51c)||_0x1fe51c);return _0x1fe51c;},Me=(_0x30be56,_0xfc0d5c)=>(_0x2cc41b,_0x48681b)=>_0xfc0d5c(_0x2cc41b,_0x48681b,_0x30be56);let Q=class{constructor(_0x57943f,_0x36614b){const _0x5564eb=_0x1cc422;this[_0x5564eb(0x154)]=_0x57943f,this['_transformService']=_0x36614b;}[_0x1cc422(0x2d8)](_0x3a9c1a){const _0x2de946=_0x1cc422;var _0x2abdf7;const _0x13803b=this['_injector'][_0x2de946(0x12a)](Y[_0x2de946(0x2a5)]),_0x597f4d=(_0x2abdf7=_0x13803b[_0x2de946(0x136)]())!=null?_0x2abdf7:[];if(_0x597f4d[_0x2de946(0x357)]===0x0)return;const _0x2891be=_0x3a9c1a['unitID'],_0x462e4f=[{'id':_0x2de946(0x32b),'params':{'unitId':_0x2891be,'actions':null,'textRanges':_0x597f4d}}],_0x2e81fb=this[_0x2de946(0x2f0)][_0x2de946(0x2a9)](_0x3a9c1a,_0x462e4f);if(!m[_0x2de946(0x1a1)](_0x2e81fb))throw _0x2e81fb[_0x2de946(0x1c0)];const _0xd87eef=_0x2e81fb[_0x2de946(0x343)][0x0]['params'][_0x2de946(0x194)];Array[_0x2de946(0x2fb)](_0xd87eef)&&_0xd87eef['length']&&_0x13803b[_0x2de946(0x2e2)](_0xd87eef,{'unitId':_0x2891be,'subUnitId':_0x2891be},!0x1);}};Q=zt([Me(0x0,a[_0x1cc422(0x1f4)](a['Injector'])),Me(0x1,m[_0x1cc422(0x12b)])],Q);var Jt=Object[_0x1cc422(0x1fc)],Zt=(_0x5c771c,_0x4d3cfb,_0x9f5cd4,_0x2a78ec)=>{for(var _0xbda011=_0x2a78ec>0x1?void 0x0:_0x2a78ec?Jt(_0x4d3cfb,_0x9f5cd4):_0x4d3cfb,_0x1dfe28=_0x5c771c['length']-0x1,_0x1b8cf5;_0x1dfe28>=0x0;_0x1dfe28--)(_0x1b8cf5=_0x5c771c[_0x1dfe28])&&(_0xbda011=_0x1b8cf5(_0xbda011)||_0xbda011);return _0xbda011;},N=(_0x1441c3,_0x4dcc5f)=>(_0x19a442,_0x4af443)=>_0x4dcc5f(_0x19a442,_0x4af443,_0x1441c3);let ee=class extends a['Disposable']{constructor(_0x87e8d8,_0x41b979,_0x39fe8e,_0x34b7a0,_0x5aeeb6,_0x27e460,_0x1342fe,_0x5cce22){const _0x3f29c8=_0x1cc422;super(),h(this,'_status$',new d[(_0x3f29c8(0xf0))](u[_0x3f29c8(0x25c)][_0x3f29c8(0x355)])),(this[_0x3f29c8(0x321)]=_0x87e8d8,this[_0x3f29c8(0x18b)]=_0x41b979,this[_0x3f29c8(0x1c2)]=_0x39fe8e,this[_0x3f29c8(0x20e)]=_0x34b7a0,this[_0x3f29c8(0x105)]=_0x5aeeb6,this[_0x3f29c8(0x20d)]=_0x27e460,this[_0x3f29c8(0x33d)]=_0x1342fe,this[_0x3f29c8(0x1a8)]=_0x5cce22,this['_initEntityListener']());}[_0x1cc422(0x302)](){const _0x22b903=_0x1cc422;this[_0x22b903(0x149)](this[_0x22b903(0x18b)][_0x22b903(0x366)][_0x22b903(0x24c)](_0x4366e6=>{const _0x2ef849=_0x22b903,_0x5b3670=this['_docStateChangeManagerService']['docStateChange$'][_0x2ef849(0x24c)](_0x5cbe4a=>{const _0x23f0c9=_0x2ef849;if(_0x5cbe4a==null)return;const {unitId:_0x239b63,redoState:_0x6577cb,commandId:_0x22706a}=_0x5cbe4a;if(_0x239b63!==_0x4366e6['unitID'])return;const _0x241ac6={'id':_0x22706a,'type':a['CommandType'][_0x23f0c9(0x152)],'params':{'unitId':_0x239b63,'actions':_0x6577cb[_0x23f0c9(0x318)],'textRanges':null}};_0x4366e6[_0x23f0c9(0x1c6)](_0x241ac6);});if(_0x4366e6['disposeWithMe'](_0x5b3670),_0x4366e6 instanceof u[_0x2ef849(0x1e8)]){const _0x4777af={'onTransformIME':_0x29ce67=>this[_0x2ef849(0x1c2)]['transformIMECache'](_0x29ce67),'onTransformState':_0x565f56=>this[_0x2ef849(0x20e)]['transformStateCache'](_0x565f56),'onTransformSelections':_0x355411=>this['_docTransformSelectionsService'][_0x2ef849(0x2d8)](_0x355411),'onSyncEditingCollabCursor':_0x5449a1=>this[_0x2ef849(0x20d)][_0x2ef849(0x267)](_0x5449a1),'onTransformRemoteChangesetByIMECache':_0x25a2db=>this[_0x2ef849(0x1c2)][_0x2ef849(0x2ae)](_0x25a2db),'onTransformRemoteChangesetByStateCache':_0xb00df6=>this[_0x2ef849(0x20e)]['transformRemoteChangeset'](_0xb00df6)};_0x4366e6['addHandlerCallback'](_0x4777af);}}));}};ee=Zt([N(0x0,a[_0x1cc422(0x1f4)](b[_0x1cc422(0x31a)])),N(0x1,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x24a)])),N(0x2,a[_0x1cc422(0x1f4)](J)),N(0x3,a[_0x1cc422(0x1f4)](Z)),N(0x4,a[_0x1cc422(0x1f4)](Q)),N(0x5,a[_0x1cc422(0x1f4)](pe)),N(0x6,R['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x19deec,_0x2d2910,_0x5e581a,_0x551ced)=>{const _0x4b1ef9=_0x1cc422;for(var _0x180e48=_0x551ced>0x1?void 0x0:_0x551ced?Qt(_0x2d2910,_0x5e581a):_0x2d2910,_0x35a3fb=_0x19deec[_0x4b1ef9(0x357)]-0x1,_0x1769a3;_0x35a3fb>=0x0;_0x35a3fb--)(_0x1769a3=_0x19deec[_0x35a3fb])&&(_0x180e48=_0x1769a3(_0x180e48)||_0x180e48);return _0x180e48;},_e=(_0x1ac87d,_0x504087)=>(_0x367301,_0x590c72)=>_0x504087(_0x367301,_0x590c72,_0x1ac87d);let me=class extends a[_0x1cc422(0x34e)]{constructor(_0x49f7e1,_0x54f20a,_0x4a4728){const _0x504046=_0x1cc422;super(),h(this,'_cachedData',new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x504046(0xf3),!0x1),(this[_0x504046(0x280)]=_0x49f7e1,this[_0x504046(0x1f2)]=_0x54f20a,this[_0x504046(0x160)]=_0x4a4728);}[_0x1cc422(0x1ce)](){const _0x2730dd=_0x1cc422;this[_0x2730dd(0xf3)]=!0x0;}[_0x1cc422(0x1a2)](){const _0x38f825=_0x1cc422;this[_0x38f825(0xf3)]=!0x1;}get[_0x1cc422(0x2e3)](){const _0x4a4e7c=_0x1cc422;return this[_0x4a4e7c(0x261)];}[_0x1cc422(0x119)](){const _0x3e03f0=_0x1cc422;this[_0x3e03f0(0x2c7)]()[_0x3e03f0(0x240)](()=>super[_0x3e03f0(0x119)]());}async[_0x1cc422(0x2bf)](_0x2a2eec){const _0x35bc33=_0x1cc422;return this['_disabled']?null:this[_0x35bc33(0x1f2)][_0x35bc33(0x2db)](u['getLocalCacheKey'](_0x2a2eec));}async[_0x1cc422(0x10a)](_0x22e995,_0xc96ef9){const _0x32b6c4=_0x1cc422;return!!this['_localStorageService'][_0x32b6c4(0x151)](_0x22e995,_0xc96ef9);}[_0x1cc422(0x25e)](_0x1d9aba,_0x28c8f8,_0x3ca48b,_0x33e3d2){const _0x59a5cb=_0x1cc422,_0x28176c=this['_revisionService'][_0x59a5cb(0x2cc)](_0x1d9aba);this[_0x59a5cb(0x27d)][_0x59a5cb(0x2ab)](_0x1d9aba,{'unitID':_0x1d9aba,'type':_0x28c8f8,'awaitingChangeset':_0x3ca48b,'mutations':_0x33e3d2,'rev':_0x28176c}),this[_0x59a5cb(0x261)]['has'](_0x1d9aba)||this['_scheduleSaving'](_0x1d9aba);}[_0x1cc422(0x2a8)](_0x522b08){const _0x4374d9=_0x1cc422,_0x16d272=this[_0x4374d9(0x13a)]();_0x16d272===0x0?this[_0x4374d9(0x29b)](_0x522b08):this['_saveTaskMap'][_0x4374d9(0x2ab)](_0x522b08,setTimeout(()=>this['_saveCache'](_0x522b08),_0x16d272));}[_0x1cc422(0x13a)](){const _0x35e979=_0x1cc422;var _0x2cf898;return(_0x2cf898=this['_configService'][_0x35e979(0x1a3)](u[_0x35e979(0x2b6)]))!=null?_0x2cf898:u[_0x35e979(0x1d3)];}[_0x1cc422(0x29b)](_0xa6052f){const _0xaab40b=_0x1cc422,_0x92af5f=this[_0xaab40b(0x261)][_0xaab40b(0x12a)](_0xa6052f);return _0x92af5f!==void 0x0&&window[_0xaab40b(0x15b)](_0x92af5f),this[_0xaab40b(0x1f2)][_0xaab40b(0x151)](u['getLocalCacheKey'](_0xa6052f),this[_0xaab40b(0x27d)]['get'](_0xa6052f))[_0xaab40b(0x240)](()=>this[_0xaab40b(0x261)][_0xaab40b(0x23e)](_0xa6052f));}async[_0x1cc422(0x2c7)](){const _0x2380b7=_0x1cc422,_0x567cfd=[];this[_0x2380b7(0x261)]['forEach']((_0x48b708,_0x5d0b52)=>{const _0x3892c6=_0x2380b7;window[_0x3892c6(0x15b)](_0x48b708),_0x567cfd['push'](this[_0x3892c6(0x29b)](_0x5d0b52)[_0x3892c6(0x240)](()=>{const _0x12668b=_0x3892c6;this[_0x12668b(0x261)][_0x12668b(0x23e)](_0x5d0b52);}));}),await Promise[_0x2380b7(0x2aa)](_0x567cfd);}};me=es([_e(0x0,a['IConfigService']),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x1cc422(0x1f4)](m[_0x1cc422(0x300)]))],me);class ke extends a['RxDisposable']{constructor(){const _0x22a04e=_0x1cc422;super(),h(this,_0x22a04e(0x221)),this['urlChange$']=d[_0x22a04e(0x291)](window,_0x22a04e(0x18a))[_0x22a04e(0x1f0)](d[_0x22a04e(0xf8)](this[_0x22a04e(0x129)]),d[_0x22a04e(0x325)](0x1),d[_0x22a04e(0x161)](void 0x0));}[_0x1cc422(0x1de)](_0x1f0d21,_0x4f208a,_0x3f4d81=!0x1){const _0x4e6763=_0x1cc422,_0x3aa3cd=new URL(window[_0x4e6763(0x2ad)][_0x4e6763(0x2d6)]);_0x3aa3cd[_0x4e6763(0x1b4)]['set'](_0x1f0d21,_0x4f208a),_0x3f4d81?window['history']['replaceState']('','',_0x3aa3cd['toString']()):window[_0x4e6763(0x1d6)][_0x4e6763(0xff)]('','',_0x3aa3cd[_0x4e6763(0x362)]());}[_0x1cc422(0x199)](_0x4679cf,_0x4b2121=!0x1){const _0x5da0f3=_0x1cc422,_0x15e64f=new URL(window[_0x5da0f3(0x2ad)][_0x5da0f3(0x2d6)]);_0x15e64f[_0x5da0f3(0x1b4)][_0x5da0f3(0x23e)](_0x4679cf),_0x4b2121?window[_0x5da0f3(0x1d6)][_0x5da0f3(0x184)]('','',_0x15e64f[_0x5da0f3(0x362)]()):window[_0x5da0f3(0x1d6)][_0x5da0f3(0xff)]('','',_0x15e64f[_0x5da0f3(0x362)]());}[_0x1cc422(0x171)](_0x2914b3){const _0x2e15eb=_0x1cc422;var _0x379ed8;return(_0x379ed8=new URL(window[_0x2e15eb(0x2ad)][_0x2e15eb(0x2d6)])[_0x2e15eb(0x1b4)][_0x2e15eb(0x12a)](_0x2914b3))!=null?_0x379ed8:void 0x0;}}var ts=Object[_0x1cc422(0x2da)],ss=Object[_0x1cc422(0x1fc)],ns=(_0x207f98,_0x55c98f,_0x12664a)=>_0x55c98f in _0x207f98?ts(_0x207f98,_0x55c98f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12664a}):_0x207f98[_0x55c98f]=_0x12664a,is=(_0x4f2308,_0x4d86e2,_0x247d24,_0x16e7a6)=>{const _0x58c148=_0x1cc422;for(var _0x24e516=_0x16e7a6>0x1?void 0x0:_0x16e7a6?ss(_0x4d86e2,_0x247d24):_0x4d86e2,_0x3d6fcc=_0x4f2308[_0x58c148(0x357)]-0x1,_0x3cb9b8;_0x3d6fcc>=0x0;_0x3d6fcc--)(_0x3cb9b8=_0x4f2308[_0x3d6fcc])&&(_0x24e516=_0x3cb9b8(_0x24e516)||_0x24e516);return _0x24e516;},ue=(_0x511a24,_0x47b15b)=>(_0xbb3208,_0x286b9f)=>_0x47b15b(_0xbb3208,_0x286b9f,_0x511a24),rs=(_0x34435b,_0x42489c,_0x505e0c)=>ns(_0x34435b,_0x42489c+'',_0x505e0c);const os=_0x1cc422(0x1c3);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x1cc422(0x1c9)]{constructor(_0x312b3b=Ne,_0x686535,_0x316966,_0x1c92c0){const _0x1c2507=_0x1cc422;super(),this[_0x1c2507(0x23b)]=_0x312b3b,this['_renderManagerService']=_0x686535,this[_0x1c2507(0x154)]=_0x316966,this[_0x1c2507(0x280)]=_0x1c92c0;const {..._0x5eb6d8}=a[_0x1c2507(0x10f)]({},Ne,this['_config']);this['_configService'][_0x1c2507(0x268)](Ft,_0x5eb6d8);}[_0x1cc422(0x2d7)](){const _0x37ae10=_0x1cc422;this['_registerDependencies'](),this[_0x37ae10(0x34c)]();}[_0x1cc422(0x14f)](){const _0x47f20f=_0x1cc422;this[_0x47f20f(0x213)]();}[_0x1cc422(0x2e8)](){const _0x35bb18=_0x1cc422;var _0x29b5e6;const _0x33a531=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x35bb18(0x27f)],{'useClass':q[_0x35bb18(0x241)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x35bb18(0x25f)]],[ee],[z],[x],[fe],[exports[_0x35bb18(0x168)]]];a['registerDependencies'](this[_0x35bb18(0x154)],a[_0x35bb18(0x256)](_0x33a531,(_0x29b5e6=this[_0x35bb18(0x23b)])==null?void 0x0:_0x29b5e6[_0x35bb18(0x19f)]));}[_0x1cc422(0x213)](){const _0xd718dd=_0x1cc422;this['disposeWithMe'](this[_0xd718dd(0x2a1)]['registerRenderModule'](a[_0xd718dd(0x340)][_0xd718dd(0x193)],[ve])),this[_0xd718dd(0x149)](this[_0xd718dd(0x2a1)][_0xd718dd(0x2c1)](a[_0xd718dd(0x340)][_0xd718dd(0xfc)],[ge]));}[_0x1cc422(0x34c)](){const _0x2751bb=_0x1cc422;a['touchDependencies'](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x2751bb(0x168)]]]);}},rs(exports[_0x1cc422(0x36a)],'pluginName',os),exports[_0x1cc422(0x36a)]=is([a[_0x1cc422(0x327)](u[_0x1cc422(0x247)]),ue(0x1,p[_0x1cc422(0x2fa)]),ue(0x2,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),ue(0x3,a[_0x1cc422(0x25d)])],exports['UniverCollaborationClientUIPlugin']);var as=Object[_0x1cc422(0x1fc)],cs=(_0x1007b4,_0x47ece6,_0x5d7075,_0x430586)=>{const _0x322ea2=_0x1cc422;for(var _0x324d69=_0x430586>0x1?void 0x0:_0x430586?as(_0x47ece6,_0x5d7075):_0x47ece6,_0x527145=_0x1007b4[_0x322ea2(0x357)]-0x1,_0x3e6b91;_0x527145>=0x0;_0x527145--)(_0x3e6b91=_0x1007b4[_0x527145])&&(_0x324d69=_0x3e6b91(_0x324d69)||_0x324d69);return _0x324d69;},W=(_0x5a2e15,_0x2bfa2f)=>(_0x682426,_0x1071bc)=>_0x2bfa2f(_0x682426,_0x1071bc,_0x5a2e15);exports[_0x1cc422(0x2b4)]=class extends u[_0x1cc422(0x1e3)]{constructor(_0x47ef71,_0x374825,_0xade049,_0x25f8de,_0x23f394){super(_0x47ef71,_0x374825,_0xade049,_0x25f8de,_0x23f394);}async['createSocket'](_0x57fce7){const _0x1ecf1c=_0x1cc422,_0x17c8f0=await this[_0x1ecf1c(0x266)](),_0x428f3a=this[_0x1ecf1c(0x19a)](_0x57fce7,_0x17c8f0);return this[_0x1ecf1c(0x196)](_0x428f3a);}[_0x1cc422(0x19a)](_0x45065f,_0x47a34e){const _0x22117f=_0x1cc422,_0x22797f=typeof window>'u'?new URL(_0x45065f):new URL(_0x45065f,window[_0x22117f(0x2ad)][_0x22117f(0x2fe)]);_0x22797f[_0x22117f(0x1b4)][_0x22117f(0x2ab)](_0x22117f(0x134),_0x47a34e);const _0x49b09e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x22117f(0x2ad)]['search']);return _0x49b09e[_0x22117f(0x12a)](_0x22117f(0xf7))&&_0x22797f[_0x22117f(0x1b4)][_0x22117f(0x2ab)](_0x22117f(0xf7),_0x49b09e[_0x22117f(0x12a)](_0x22117f(0xf7))),_0x22797f[_0x22117f(0x362)]();}async[_0x1cc422(0x266)](){const _0x502983=_0x1cc422;var _0x2886a8,_0x283b13,_0x4bd1ae;const _0x123f10=this[_0x502983(0x280)][_0x502983(0x1a3)](u[_0x502983(0x305)]),_0x3ddb7b=(_0x2886a8=_0x123f10==null?void 0x0:_0x123f10[_0x502983(0x2e0)])!=null?_0x2886a8:u[_0x502983(0x19c)];return(_0x4bd1ae=(_0x283b13=(await this[_0x502983(0x166)][_0x502983(0x12a)](_0x3ddb7b,{'headers':{'Content-Type':'application/json'}}))[_0x502983(0x34b)])==null?void 0x0:_0x283b13[_0x502983(0x2f8)])!=null?_0x4bd1ae:'';}},exports[_0x1cc422(0x2b4)]=cs([W(0x0,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),W(0x1,a[_0x1cc422(0x1f4)](q[_0x1cc422(0x1ad)])),W(0x2,a[_0x1cc422(0x25d)]),W(0x3,a[_0x1cc422(0x191)]),W(0x4,m[_0x1cc422(0x1f6)])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,we=_0x1cc422(0x32d);class ls extends a[_0x1cc422(0x34e)]{constructor(){const _0x5671fb=_0x1cc422;super(),h(this,_0x5671fb(0x163),a[_0x5671fb(0x26b)]()),h(this,_0x5671fb(0x36e),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x5671fb(0x2ef),null),h(this,_0x5671fb(0x1b3),new Map()),h(this,_0x5671fb(0x147),new Map()),this[_0x5671fb(0x28c)]();}[_0x1cc422(0x119)](){const _0x3baf39=_0x1cc422;super[_0x3baf39(0x119)](),this[_0x3baf39(0x1b3)]['forEach']((_0x5f165a,_0x254081)=>this['_removeClearOtherTimer'](_0x254081)),this['_heartbeatTimer']&&window[_0x3baf39(0x2ac)](this[_0x3baf39(0x2ef)]);}[_0x1cc422(0x339)](_0x2a1daf){const _0x349946=_0x1cc422;return this[_0x349946(0x12d)](_0x2a1daf)[_0x349946(0x1f0)](d['distinctUntilChanged']());}[_0x1cc422(0x1bc)](_0x5523ff){const _0x4485c7=_0x1cc422;this[_0x4485c7(0x36e)][_0x4485c7(0x187)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4485c7(0x36e)][_0x4485c7(0x1af)](_0x5523ff),this['_send']({'type':0x0,'memberID':this[_0x4485c7(0x163)],'unitIDs':[_0x5523ff],'isForwarded':!0x1});}[_0x1cc422(0x252)](_0x5bde7e){const _0x593739=_0x1cc422;this[_0x593739(0x36e)][_0x593739(0x23e)](_0x5bde7e),this[_0x593739(0x36e)][_0x593739(0x187)]===0x0&&this[_0x593739(0x2ef)]&&window[_0x593739(0x2ac)](this[_0x593739(0x2ef)]);}[_0x1cc422(0x28c)](){const _0x593d04=_0x1cc422;this[_0x593d04(0x149)](a[_0x593d04(0xfe)](d[_0x593d04(0x291)](window,'storage')['subscribe'](_0x1a8d65=>{const _0x7a2a40=_0x593d04;if(_0x1a8d65['key']!==we||!_0x1a8d65['newValue'])return;const _0x4b480f=JSON[_0x7a2a40(0x349)](_0x1a8d65['newValue']);this[_0x7a2a40(0x16b)](_0x4b480f);}))),window[_0x593d04(0x29e)](_0x593d04(0x1f5),()=>this[_0x593d04(0x231)]({'type':0x1,'memberID':this[_0x593d04(0x163)],'unitIDs':Array[_0x593d04(0xfd)](this['_selfUnitIDs'])}));}[_0x1cc422(0x16b)](_0x48fe85){switch(_0x48fe85['type']){case 0x0:this['_handleJoinEvent'](_0x48fe85);break;case 0x1:this['_handleLeaveEvent'](_0x48fe85);break;case 0x2:this['_handleHeartbeatEvent'](_0x48fe85);break;}}['_handleJoinEvent'](_0xfb854d){const _0x492ff1=_0x1cc422,{unitIDs:_0x219caf,memberID:_0x1c69c3,isForwarded:_0xcc4ef7}=_0xfb854d;_0x219caf['forEach'](_0x5ec41a=>{const _0x34a246=_0x1c04;if(!_0xcc4ef7&&this[_0x34a246(0x295)][_0x34a246(0x139)](_0x5ec41a)&&this['_ensureSubject'](_0x5ec41a)['next'](u[_0x34a246(0x197)][_0x34a246(0x31f)]),!this[_0x34a246(0x295)][_0x34a246(0x139)](_0x5ec41a)||!this[_0x34a246(0x295)][_0x34a246(0x12a)](_0x5ec41a)[_0x34a246(0x139)](_0x1c69c3)){const _0x461684=this[_0x34a246(0x295)]['get'](_0x5ec41a)||new Set();_0x461684[_0x34a246(0x1af)](_0x1c69c3),this[_0x34a246(0x295)][_0x34a246(0x2ab)](_0x5ec41a,_0x461684),this[_0x34a246(0x175)](_0x1c69c3);}}),_0xcc4ef7||this[_0x492ff1(0x231)]({'type':0x0,'memberID':this[_0x492ff1(0x163)],'unitIDs':[...this[_0x492ff1(0x36e)]],'isForwarded':!0x0});}[_0x1cc422(0x175)](_0x4f3e9e){const _0x22376f=_0x1cc422;this[_0x22376f(0x2b2)](_0x4f3e9e);const _0xe92f64=window[_0x22376f(0x201)](()=>{const _0x5a50ed=_0x22376f;this[_0x5a50ed(0x295)]['forEach'](_0x7b0a25=>{const _0xe1893f=_0x5a50ed;_0x7b0a25[_0xe1893f(0x23e)](_0x4f3e9e);});},Pe*0x2);this[_0x22376f(0x1b3)][_0x22376f(0x2ab)](_0x4f3e9e,_0xe92f64);}[_0x1cc422(0x2b2)](_0xef4f45){const _0x4509d3=_0x1cc422;if(this[_0x4509d3(0x1b3)][_0x4509d3(0x139)](_0xef4f45)){const _0x263bef=this[_0x4509d3(0x1b3)]['get'](_0xef4f45);_0x263bef&&window['clearTimeout'](_0x263bef),this['_clearOtherTimers'][_0x4509d3(0x2ab)](_0xef4f45,null);}}[_0x1cc422(0x369)](_0x45f09c){const _0x246499=_0x1cc422,{memberID:_0x280cdc,unitIDs:_0x2b81d1}=_0x45f09c;_0x2b81d1[_0x246499(0x298)](_0x21e69e=>{const _0x22ccd3=_0x246499;var _0x402890;const _0x518102=this[_0x22ccd3(0x295)][_0x22ccd3(0x12a)](_0x21e69e);_0x518102&&(_0x518102[_0x22ccd3(0x23e)](_0x280cdc),(_0x402890=this[_0x22ccd3(0x12d)](_0x21e69e))==null||_0x402890['next'](_0x518102[_0x22ccd3(0x187)]===0x0?u[_0x22ccd3(0x197)][_0x22ccd3(0x254)]:u[_0x22ccd3(0x197)][_0x22ccd3(0x31f)]));}),this[_0x246499(0x2b2)](_0x280cdc);}['_handleHeartbeatEvent'](_0x51efa8){const _0x2d3ef1=_0x1cc422;this['_scheduleClearOtherTimer'](_0x51efa8[_0x2d3ef1(0x1b6)]);}[_0x1cc422(0x231)](_0x3d1b38){const _0x2d1543=_0x1cc422;localStorage[_0x2d1543(0x151)](we,JSON[_0x2d1543(0x1c5)](_0x3d1b38));}[_0x1cc422(0x22f)](){const _0xaf010=_0x1cc422;this[_0xaf010(0x2ef)]=window['setInterval'](()=>{const _0x31a23f=_0xaf010;this['_send']({'type':0x2,'memberID':this[_0x31a23f(0x163)]});},Pe);}[_0x1cc422(0x12d)](_0x12ea15){const _0x41ef9e=_0x1cc422;return this[_0x41ef9e(0x147)][_0x41ef9e(0x139)](_0x12ea15)||this[_0x41ef9e(0x147)][_0x41ef9e(0x2ab)](_0x12ea15,new d['BehaviorSubject'](u[_0x41ef9e(0x197)][_0x41ef9e(0x254)])),this[_0x41ef9e(0x147)][_0x41ef9e(0x12a)](_0x12ea15);}}var Be=(_0x4b88ab=>(_0x4b88ab[_0x4b88ab[_0x1cc422(0x1f1)]=0x0]=_0x1cc422(0x1f1),_0x4b88ab[_0x4b88ab['OK']=0x1]='OK',_0x4b88ab[_0x4b88ab['INTERNAL_ERROR']=0x2]=_0x1cc422(0x322),_0x4b88ab[_0x4b88ab['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x4b88ab[_0x4b88ab['NOT_FOUND']=0x4]=_0x1cc422(0x347),_0x4b88ab[_0x4b88ab[_0x1cc422(0x30d)]=0x5]=_0x1cc422(0x30d),_0x4b88ab[_0x4b88ab['ALREADY_EXISTS']=0x6]=_0x1cc422(0x1d0),_0x4b88ab[_0x4b88ab[_0x1cc422(0x1e7)]=0x7]=_0x1cc422(0x1e7),_0x4b88ab[_0x4b88ab[_0x1cc422(0x13b)]=0x8]=_0x1cc422(0x13b),_0x4b88ab[_0x4b88ab['COMPLETION_FINISHED']=0x9]=_0x1cc422(0x1be),_0x4b88ab[_0x4b88ab['LOGIN_FAILED']=0xa]=_0x1cc422(0x1f9),_0x4b88ab[_0x4b88ab[_0x1cc422(0x2a3)]=0x1389]=_0x1cc422(0x2a3),_0x4b88ab[_0x4b88ab[_0x1cc422(0x121)]=0x1771]=_0x1cc422(0x121),_0x4b88ab[_0x4b88ab['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x1cc422(0x13e),_0x4b88ab[_0x4b88ab[_0x1cc422(0x15d)]=0x1773]=_0x1cc422(0x15d),_0x4b88ab[_0x4b88ab['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4b88ab[_0x4b88ab['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1cc422(0x1b1),_0x4b88ab[_0x4b88ab[_0x1cc422(0x227)]=0x1b5b]=_0x1cc422(0x227),_0x4b88ab[_0x4b88ab[_0x1cc422(0x21f)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4b88ab[_0x4b88ab[_0x1cc422(0x16a)]=0x1b5d]='APPLY_DUPLICATED',_0x4b88ab[_0x4b88ab[_0x1cc422(0x135)]=0x1f41]=_0x1cc422(0x135),_0x4b88ab[_0x4b88ab[_0x1cc422(0x18d)]=0x2329]=_0x1cc422(0x18d),_0x4b88ab[_0x4b88ab[_0x1cc422(0x26a)]=0x232a]=_0x1cc422(0x26a),_0x4b88ab[_0x4b88ab[_0x1cc422(0x31c)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4b88ab[_0x4b88ab['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x1cc422(0x367),_0x4b88ab[_0x4b88ab['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1cc422(0xfb),_0x4b88ab[_0x4b88ab[_0x1cc422(0x1e1)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4b88ab[_0x4b88ab['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x1cc422(0x138),_0x4b88ab[_0x4b88ab[_0x1cc422(0x2be)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4b88ab[_0x4b88ab[_0x1cc422(0x11f)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4b88ab[_0x4b88ab['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x1cc422(0x204),_0x4b88ab[_0x4b88ab['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x1cc422(0x33c),_0x4b88ab[_0x4b88ab[_0x1cc422(0x10b)]=0x2ee2]=_0x1cc422(0x10b),_0x4b88ab[_0x4b88ab[_0x1cc422(0x2ce)]=0x2ee3]=_0x1cc422(0x2ce),_0x4b88ab[_0x4b88ab[_0x1cc422(0x13d)]=0x2ee4]=_0x1cc422(0x13d),_0x4b88ab[_0x4b88ab[_0x1cc422(0x143)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4b88ab[_0x4b88ab[_0x1cc422(0x270)]=-0x1]=_0x1cc422(0x270),_0x4b88ab))(Be||{}),hs=Object[_0x1cc422(0x1fc)],_s=(_0xacda9b,_0x282d4a,_0x1cd0fa,_0x200f7e)=>{const _0x349002=_0x1cc422;for(var _0x1fea65=_0x200f7e>0x1?void 0x0:_0x200f7e?hs(_0x282d4a,_0x1cd0fa):_0x282d4a,_0x3f28d3=_0xacda9b[_0x349002(0x357)]-0x1,_0x34c5f4;_0x3f28d3>=0x0;_0x3f28d3--)(_0x34c5f4=_0xacda9b[_0x3f28d3])&&(_0x1fea65=_0x34c5f4(_0x1fea65)||_0x1fea65);return _0x1fea65;},de=(_0x1b9f9f,_0x2b5805)=>(_0x5b906b,_0x427ff3)=>_0x2b5805(_0x5b906b,_0x427ff3,_0x1b9f9f);exports[_0x1cc422(0x1ff)]=class extends a[_0x1cc422(0x34e)]{constructor(_0x3500ef,_0x42ca8b,_0x56383b){const _0x5460b0=_0x1cc422;super(),this[_0x5460b0(0x273)]=_0x3500ef,this[_0x5460b0(0x166)]=_0x42ca8b,this['_configService']=_0x56383b;}async['runOnServer'](_0x2cb343,_0x344c60,_0x5eeb19,..._0x28d2cf){const _0x493de8=_0x1cc422;var _0x23aa95,_0x1c6de2,_0x339f5b,_0x414c6f;const _0x358185=this['_instanceService']['getFocusedUnit']();if(!_0x358185)throw new Error(_0x493de8(0x20b));const _0x42270e=((_0x23aa95=this[_0x493de8(0x280)]['getConfig'](u[_0x493de8(0x344)]))!=null?_0x23aa95:u[_0x493de8(0x183)])+'/'+_0x2cb343+_0x493de8(0x356)+_0x344c60,_0x9241ba=new URL(window[_0x493de8(0x2ad)]['href']),_0x48fa4f={'scriptId':_0x2cb343,'runId':(_0x1c6de2=_0x9241ba[_0x493de8(0x1b4)][_0x493de8(0x12a)]('runId'))!=null?_0x1c6de2:'','function':_0x344c60,'unitId':_0x358185['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x28d2cf),'invokeId':(_0x339f5b=_0x5eeb19[_0x493de8(0xf4)])!=null?_0x339f5b:'','executionId':(_0x414c6f=_0x5eeb19['executionId'])!=null?_0x414c6f:''};try{const _0x3bee85=await this[_0x493de8(0x166)][_0x493de8(0x101)](_0x42270e,{'body':_0x48fa4f});return _0x3bee85[_0x493de8(0x34b)]['error']&&_0x3bee85[_0x493de8(0x34b)][_0x493de8(0x1c0)][_0x493de8(0x188)]!==Be['OK']?_0x493de8(0x211):_0x3bee85[_0x493de8(0x34b)]['result'];}catch{return'Failed';}}},exports[_0x1cc422(0x1ff)]=_s([de(0x0,a[_0x1cc422(0x195)]),de(0x1,a['Inject'](q['HTTPService'])),de(0x2,a[_0x1cc422(0x25d)])],exports['RemoteUniscriptService']),exports[_0x1cc422(0x24d)]=je,exports['IURLService']=Ee,exports['SheetCollabCursorShape']=Ae,exports[_0x1cc422(0x370)]=ls,exports['WebURLService']=ke;
@@ -1 +1 @@
1
- 'use strict';function _0x322c(_0x373b8d,_0x2ca33c){const _0x38ce93=_0x38ce();return _0x322c=function(_0x322cfe,_0x4d5983){_0x322cfe=_0x322cfe-0x90;let _0x1242c7=_0x38ce93[_0x322cfe];return _0x1242c7;},_0x322c(_0x373b8d,_0x2ca33c);}function _0x38ce(){const _0xc570d4=['Collaboration\x20Conflict','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Authentication\x20Error','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','20079BrbLGr','Local\x20file','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','102530JPXCAe','4tVwzvA','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','286lVHxBi','8111222popwLL','683193jEUBSN','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Synced','Edit\x20conflicts','1489060SmJhRl','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','4381075boUrMx','Connection\x20failed,\x20please\x20check\x20your\x20network.','Syncing\x20server\x20data...','16WeVqxC','6105618UOTEpQ','3208XKBpfP'];_0x38ce=function(){return _0xc570d4;};return _0x38ce();}const _0x3b6476=_0x322c;(function(_0x2f7241,_0x3a3789){const _0x382d88=_0x322c,_0x272194=_0x2f7241();while(!![]){try{const _0xdc8db3=parseInt(_0x382d88(0xa6))/0x1*(-parseInt(_0x382d88(0x96))/0x2)+-parseInt(_0x382d88(0x9d))/0x3+-parseInt(_0x382d88(0x97))/0x4*(-parseInt(_0x382d88(0xa3))/0x5)+-parseInt(_0x382d88(0xa7))/0x6+-parseInt(_0x382d88(0x9c))/0x7+parseInt(_0x382d88(0xa8))/0x8*(-parseInt(_0x382d88(0x92))/0x9)+-parseInt(_0x382d88(0xa1))/0xa*(-parseInt(_0x382d88(0x9b))/0xb);if(_0xdc8db3===_0x3a3789)break;else _0x272194['push'](_0x272194['shift']());}catch(_0x594266){_0x272194['push'](_0x272194['shift']());}}}(_0x38ce,0x99854));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x3b6476(0xa5),'conflict':_0x3b6476(0xa0),'notCollab':_0x3b6476(0x93),'synced':_0x3b6476(0x9f),'syncing':'Syncing...','offline':_0x3b6476(0x98)},'session':{'connection-failed':_0x3b6476(0xa4),'will-retry':_0x3b6476(0xa2),'room-full':_0x3b6476(0x9a),'collaboration-timeout':_0x3b6476(0xaa)},'conflict':{'title':_0x3b6476(0xa9),'content':_0x3b6476(0x95)},'permission':{'title':_0x3b6476(0x90),'content':_0x3b6476(0x9e)},'collaboration':{'single-unit':{'warning':_0x3b6476(0x94)},'closeRoom':_0x3b6476(0x99)},'auth':{'needGotoLoginAlert':_0x3b6476(0x91)}};module['exports']=e;
1
+ 'use strict';function _0x1749(_0x5bebbb,_0x89a53b){const _0x16bb56=_0x16bb();return _0x1749=function(_0x17490d,_0x44b93b){_0x17490d=_0x17490d-0x7b;let _0x309229=_0x16bb56[_0x17490d];return _0x309229;},_0x1749(_0x5bebbb,_0x89a53b);}const _0x4778c7=_0x1749;(function(_0x44c2c3,_0x5e1856){const _0x35853e=_0x1749,_0x3db0d5=_0x44c2c3();while(!![]){try{const _0x218ea2=-parseInt(_0x35853e(0x7b))/0x1*(-parseInt(_0x35853e(0x81))/0x2)+parseInt(_0x35853e(0x88))/0x3*(-parseInt(_0x35853e(0x8e))/0x4)+parseInt(_0x35853e(0x8d))/0x5*(-parseInt(_0x35853e(0x96))/0x6)+-parseInt(_0x35853e(0x91))/0x7+-parseInt(_0x35853e(0x86))/0x8+-parseInt(_0x35853e(0x8c))/0x9*(-parseInt(_0x35853e(0x92))/0xa)+parseInt(_0x35853e(0x7e))/0xb;if(_0x218ea2===_0x5e1856)break;else _0x3db0d5['push'](_0x3db0d5['shift']());}catch(_0x3afde3){_0x3db0d5['push'](_0x3db0d5['shift']());}}}(_0x16bb,0x2d7db));function _0x16bb(){const _0x389ef6=['Click\x20to\x20Reconnect','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1483200nchHTx','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','3WILXGI','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20Conflict','exports','9ZtwPnm','740735GuxTYd','360420JTLjjS','Local\x20file','Edit\x20conflicts','1465842tGRtfS','1676330WaFsTH','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Connection\x20failed,\x20please\x20check\x20your\x20network.','6gcYFgd','10iZBPFG','Authentication\x20Error','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','4746236NXlMjc','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Synced','44056VAKzsy','Syncing\x20server\x20data...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'];_0x16bb=function(){return _0x389ef6;};return _0x16bb();}const e={'collab-client':{'tooltip':{'reconnect':_0x4778c7(0x84)}},'collabStatus':{'fetchMiss':_0x4778c7(0x82),'conflict':_0x4778c7(0x90),'notCollab':_0x4778c7(0x8f),'synced':_0x4778c7(0x80),'syncing':'Syncing...','offline':_0x4778c7(0x85)},'session':{'connection-failed':_0x4778c7(0x95),'will-retry':_0x4778c7(0x7d),'room-full':_0x4778c7(0x7f),'collaboration-timeout':_0x4778c7(0x93)},'conflict':{'title':_0x4778c7(0x8a),'content':_0x4778c7(0x89)},'permission':{'title':_0x4778c7(0x7c),'content':_0x4778c7(0x94)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x4778c7(0x83)},'auth':{'needGotoLoginAlert':_0x4778c7(0x87)}};module[_0x4778c7(0x8b)]=e;