@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505211607 → 0.7.0-nightly.202505221607
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x706148=_0x5f02;function _0x5f02(_0x59e0e8,_0x2dacdd){const _0x51e9f1=_0x51e9();return _0x5f02=function(_0x5f0254,_0xfcfaf5){_0x5f0254=_0x5f0254-0x19c;let _0x471bde=_0x51e9f1[_0x5f0254];return _0x471bde;},_0x5f02(_0x59e0e8,_0x2dacdd);}(function(_0x340058,_0x529c5c){const _0x2bb376=_0x5f02,_0x236d3b=_0x340058();while(!![]){try{const _0x188da9=-parseInt(_0x2bb376(0x1a0))/0x1+parseInt(_0x2bb376(0x19f))/0x2+-parseInt(_0x2bb376(0x1aa))/0x3*(-parseInt(_0x2bb376(0x1a6))/0x4)+parseInt(_0x2bb376(0x19d))/0x5+parseInt(_0x2bb376(0x1a3))/0x6+-parseInt(_0x2bb376(0x1a4))/0x7*(-parseInt(_0x2bb376(0x1a7))/0x8)+-parseInt(_0x2bb376(0x1a9))/0x9;if(_0x188da9===_0x529c5c)break;else _0x236d3b['push'](_0x236d3b['shift']());}catch(_0x1d2924){_0x236d3b['push'](_0x236d3b['shift']());}}}(_0x51e9,0xa61fc));const t=require(_0x706148(0x19c)),e=require('@univerjs/core/facade');class c extends e[_0x706148(0x1a8)]{[_0x706148(0x1a5)](_0x49abe6,_0x336e1b,..._0x105361){const _0xe27764=_0x706148;return this['_injector'][_0xe27764(0x1a2)](t[_0xe27764(0x19e)])[_0xe27764(0x1a5)](_0x49abe6,_0x336e1b,{},..._0x105361);}}function _0x51e9(){const _0xb9beab=['6539855bjjoCv','runOnServer','977684oCPowS','8vyqCXs','FUniver','28691739gsbZRh','15BQnQRR','@univerjs-pro/collaboration-client-ui','174255qsVsod','RemoteUniscriptService','1818534xJXnHy','542898XUOxgS','extend','get','7864950soeHoN'];_0x51e9=function(){return _0xb9beab;};return _0x51e9();}e[_0x706148(0x1a8)][_0x706148(0x1a1)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xbd72b5=_0x4dae;(function(_0x18bc9d,_0x1aff82){const _0x3a4475=_0x4dae,_0x901ec2=_0x18bc9d();while(!![]){try{const _0x38f962=-parseInt(_0x3a4475(0x246))/0x1+parseInt(_0x3a4475(0x341))/0x2+parseInt(_0x3a4475(0x387))/0x3*(parseInt(_0x3a4475(0x2be))/0x4)+parseInt(_0x3a4475(0x3ba))/0x5*(parseInt(_0x3a4475(0x21b))/0x6)+parseInt(_0x3a4475(0x302))/0x7+parseInt(_0x3a4475(0x349))/0x8*(parseInt(_0x3a4475(0x3d2))/0x9)+parseInt(_0x3a4475(0x334))/0xa*(-parseInt(_0x3a4475(0x19e))/0xb);if(_0x38f962===_0x1aff82)break;else _0x901ec2['push'](_0x901ec2['shift']());}catch(_0x36bf3b){_0x901ec2['push'](_0x901ec2['shift']());}}}(_0x3f5d,0xbc6bb));var Ve=Object[_0xbd72b5(0x377)],Xe=(_0x42c5a7,_0x2dd4f6,_0x296cc3)=>_0x2dd4f6 in _0x42c5a7?Ve(_0x42c5a7,_0x2dd4f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x296cc3}):_0x42c5a7[_0x2dd4f6]=_0x296cc3,h=(_0x40c544,_0x3a363e,_0x4857f4)=>Xe(_0x40c544,typeof _0x3a363e!=_0xbd72b5(0x24d)?_0x3a363e+'':_0x3a363e,_0x4857f4);Object['defineProperty'](exports,Symbol[_0xbd72b5(0x322)],{'value':_0xbd72b5(0x2ca)});const u=require(_0xbd72b5(0x1a0)),a=require(_0xbd72b5(0x1b5)),p=require(_0xbd72b5(0x331)),G=require('@univerjs/network'),b=require('@univerjs/docs-ui'),Ge=require(_0xbd72b5(0x3f3)),d=require(_0xbd72b5(0x1e8)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0xbd72b5(0x18e)),g=require('@univerjs/sheets'),$=require(_0xbd72b5(0x332)),X=require(_0xbd72b5(0x339)),P=require(_0xbd72b5(0x2aa)),T=require(_0xbd72b5(0x3ce)),D=require('@univerjs/design'),M=require(_0xbd72b5(0x1d4)),Ke=require('@univerjs/rpc');var qe=Object[_0xbd72b5(0x402)],ze=(_0x24c695,_0x17f63d,_0x2863f0,_0x23da91)=>{const _0x4f47ce=_0xbd72b5;for(var _0x51e3d2=_0x23da91>0x1?void 0x0:_0x23da91?qe(_0x17f63d,_0x2863f0):_0x17f63d,_0x502dde=_0x24c695[_0x4f47ce(0x1cf)]-0x1,_0xda8d79;_0x502dde>=0x0;_0x502dde--)(_0xda8d79=_0x24c695[_0x502dde])&&(_0x51e3d2=_0xda8d79(_0x51e3d2)||_0x51e3d2);return _0x51e3d2;},Te=(_0xc58053,_0x158940)=>(_0x51f059,_0x32d019)=>_0x158940(_0x51f059,_0x32d019,_0xc58053);let de=class extends a[_0xbd72b5(0x283)]{constructor(_0x13f3e4,_0x1fbda3){const _0xe60bd3=_0xbd72b5;super(),this[_0xe60bd3(0x2e4)]=_0x13f3e4,this[_0xe60bd3(0x2fa)]=_0x1fbda3,this[_0xe60bd3(0x1c9)]();}[_0xbd72b5(0x1c9)](){const _0x4e0f1d=_0xbd72b5,_0x48ecab=this;this['disposeWithMe'](this['_docClipboardService'][_0x4e0f1d(0x1c4)]({'onBeforePasteImage':async _0x45d53c=>{const _0x452be0=_0x4e0f1d,_0x47b1a6=await _0x48ecab['_imageIoService'][_0x452be0(0x3c0)](_0x45d53c);return _0x47b1a6?{'source':_0x47b1a6[_0x452be0(0x30e)],'imageSourceType':_0x47b1a6[_0x452be0(0x36f)]}:null;}}));}};de=ze([Te(0x0,b[_0xbd72b5(0x1e6)]),Te(0x1,Ge[_0xbd72b5(0x204)])],de);const Oe=[_0xbd72b5(0x333),_0xbd72b5(0x29f),_0xbd72b5(0x2ea),'red.300',_0xbd72b5(0x303),_0xbd72b5(0x1e7)];class me extends a[_0xbd72b5(0x1b7)]{constructor(){const _0x454ca7=_0xbd72b5;super(...arguments),h(this,_0x454ca7(0x2c5),new Map()),h(this,'_colorIndex',0x0);}[_0xbd72b5(0x35c)](_0x171714){const _0x1fe4d5=_0xbd72b5;if(this[_0x1fe4d5(0x2c5)][_0x1fe4d5(0x3c8)](_0x171714))return this['_assignedColors'][_0x1fe4d5(0x206)](_0x171714);const _0x55dad1=Oe[this[_0x1fe4d5(0x2e7)]];return this[_0x1fe4d5(0x2e7)]=(this['_colorIndex']+0x1)%Oe[_0x1fe4d5(0x1cf)],this[_0x1fe4d5(0x2c5)]['set'](_0x171714,_0x55dad1),_0x55dad1;}}function Pe(_0x31e71a){let _0x52ca4a='';for(const _0x206064 of _0x31e71a){const {startOffset:_0x4225ee,endOffset:_0x28440e,isActive:_0x54c586,rangeType:_0xeeb01b,segmentId:_0x172d60,segmentPage:_0x8463e7}=_0x206064;_0x52ca4a['length']&&(_0x52ca4a+=','),_0x52ca4a+=_0x4225ee+':'+_0x28440e+':'+(_0x54c586?'1':'0')+':'+_0xeeb01b+':'+_0x172d60+':'+_0x8463e7;}return _0x52ca4a;}function Je(_0x5aa4ca){const _0x5b611d=_0xbd72b5,_0x318107=_0x5aa4ca[_0x5b611d(0x27d)](','),_0x29470a=[];for(const _0x172ab1 of _0x318107){const [_0x3b331c,_0x5b0801,_0x4174b4,_0x4c9f3b,_0x3861a0,_0x5010af]=_0x172ab1[_0x5b611d(0x27d)](':');_0x29470a[_0x5b611d(0x2f7)]({'startOffset':Number(_0x3b331c),'endOffset':Number(_0x5b0801),'collapsed':_0x3b331c===_0x5b0801,'isActive':_0x4174b4==='1','rangeType':_0x4c9f3b===a['DOC_RANGE_TYPE']['TEXT']?a[_0x5b611d(0x2dc)][_0x5b611d(0x1cd)]:a[_0x5b611d(0x2dc)]['RECT'],'segmentId':typeof _0x3861a0==_0x5b611d(0x2ce)?String(_0x3861a0):'','segmentPage':Number(_0x5010af!=null?_0x5010af:-0x1)});}return _0x29470a[_0x5b611d(0x1eb)](_0x3141b4=>_0x3141b4[_0x5b611d(0x18f)])||(_0x29470a[0x0]['isActive']=!0x0),_0x29470a;}class Ce extends a[_0xbd72b5(0x283)]{constructor(){const _0x2ca08b=_0xbd72b5;super(...arguments),h(this,_0x2ca08b(0x3b6),new d[(_0x2ca08b(0x257))](null)),h(this,_0x2ca08b(0x38c),this[_0x2ca08b(0x3b6)][_0x2ca08b(0x30a)]());}[_0xbd72b5(0x33c)](_0x2b9770){const _0x162ca0=_0xbd72b5,{unitID:_0x30de81,memberID:_0x42dd11,textRanges:_0x5bc4f8}=_0x2b9770,_0x251247=Pe(_0x5bc4f8);if(_0x251247==='')return;const _0x101004={'unitID':_0x30de81,'memberID':_0x42dd11,'selection':_0x251247};this[_0x162ca0(0x3b6)]['next'](_0x101004);}}var Ze=Object[_0xbd72b5(0x402)],Qe=(_0x9384d2,_0x124d6f,_0x153d28,_0x32708e)=>{const _0x6a2d94=_0xbd72b5;for(var _0x40ed06=_0x32708e>0x1?void 0x0:_0x32708e?Ze(_0x124d6f,_0x153d28):_0x124d6f,_0x4388c3=_0x9384d2[_0x6a2d94(0x1cf)]-0x1,_0x4d42c9;_0x4388c3>=0x0;_0x4388c3--)(_0x4d42c9=_0x9384d2[_0x4388c3])&&(_0x40ed06=_0x4d42c9(_0x40ed06)||_0x40ed06);return _0x40ed06;},L=(_0x1d9bd8,_0x33a386)=>(_0x286cef,_0x410771)=>_0x33a386(_0x286cef,_0x410771,_0x1d9bd8);const et=0x12c,tt=0x64;let fe=class extends a[_0xbd72b5(0x283)]{constructor(_0x515242,_0x36f661,_0x5c21da,_0x74a8cb,_0x458ecc,_0x31e070,_0x4b2e5d,_0x3b6a55,_0x217f02){const _0x1cde42=_0xbd72b5;super(),h(this,_0x1cde42(0x269),!0x1),h(this,_0x1cde42(0x1c9),!0x1),h(this,_0x1cde42(0x238),new d[(_0x1cde42(0x257))](new Map())),h(this,_0x1cde42(0x267),this[_0x1cde42(0x238)][_0x1cde42(0x30a)]()),h(this,'_roomMembers$',new d[(_0x1cde42(0x257))]([])),h(this,'roomMembers$',this[_0x1cde42(0x2fc)]['pipe'](d['debounceTime'](et))),h(this,_0x1cde42(0x32a),a[_0x1cde42(0x33a)](_0x297a3c=>{const _0x36eeea=_0x1cde42,_0x2d0224={'eventID':m['CollaborationEvent'][_0x36eeea(0x254)],'data':{'unitID':this[_0x36eeea(0x22b)],'memberID':this[_0x36eeea(0x3ee)][_0x36eeea(0x3be)](),'selection':Pe(_0x297a3c)}};this[_0x36eeea(0x3ee)][_0x36eeea(0x21c)](_0x2d0224,this[_0x36eeea(0x22b)]);},tt)),(this[_0x1cde42(0x22b)]=_0x515242,this[_0x1cde42(0x3ee)]=_0x36f661,this[_0x1cde42(0x207)]=_0x5c21da,this[_0x1cde42(0x188)]=_0x74a8cb,this['_memberService']=_0x458ecc,this[_0x1cde42(0x3aa)]=_0x31e070,this[_0x1cde42(0x203)]=_0x4b2e5d,this['_univerInstanceService']=_0x3b6a55,this['_commandService']=_0x217f02);}get[_0xbd72b5(0x3a1)](){const _0x3d3344=_0xbd72b5;return this[_0x3d3344(0x238)]['getValue']();}get[_0xbd72b5(0x1a3)](){const _0x4c0d8a=_0xbd72b5;return this[_0x4c0d8a(0x2fc)][_0x4c0d8a(0x3c2)]();}['dispose'](){const _0x3bfbdf=_0xbd72b5;super[_0x3bfbdf(0x32e)](),this[_0x3bfbdf(0x238)]['next'](new Map()),this['_cursorInfo$'][_0x3bfbdf(0x2d8)](),this['_roomMembers$'][_0x3bfbdf(0x2ad)]([]),this[_0x3bfbdf(0x2fc)]['complete']();}[_0xbd72b5(0x3c1)](){const _0x20cf32=_0xbd72b5;this[_0x20cf32(0x1c9)]||(this[_0x20cf32(0x1c9)]=!0x0,this[_0x20cf32(0x3ee)][_0x20cf32(0x3d4)][_0x20cf32(0x1db)](d['takeUntil'](this[_0x20cf32(0x1a2)]))[_0x20cf32(0x1fc)](_0x339431=>{const _0x2fb5c0=_0x20cf32;_0x339431===u[_0x2fb5c0(0x19d)]['ONLINE']?this[_0x2fb5c0(0x294)]():this[_0x2fb5c0(0x21f)]();}),this['_session'][_0x20cf32(0x3cf)][_0x20cf32(0x1db)](d[_0x20cf32(0x310)](this[_0x20cf32(0x1a2)]))[_0x20cf32(0x1fc)](_0x3a74e0=>{const _0x2f4821=_0x20cf32,_0x27f829=_0x3a74e0[_0x2f4821(0x2d7)];_0x27f829===m['CollaborationEvent'][_0x2f4821(0x254)]&&this[_0x2f4821(0x34a)](_0x3a74e0),_0x27f829===m[_0x2f4821(0x297)][_0x2f4821(0x380)]&&this['_onCursorDelete'](_0x3a74e0);}),this[_0x20cf32(0x323)](this[_0x20cf32(0x29d)][_0x20cf32(0x3eb)](_0x419892=>{const _0x52c721=_0x20cf32,_0x5508c2=_0x419892['params'];_0x5508c2!=null&&this[_0x52c721(0x269)]&&_0x419892['id']===Y[_0x52c721(0x20c)]['id']&&_0x5508c2[_0x52c721(0x1f4)]===this[_0x52c721(0x22b)]&&_0x5508c2['isEditing']===!0x1&&_0x5508c2['ranges'][_0x52c721(0x1cf)]>0x0&&this[_0x52c721(0x32a)](_0x5508c2[_0x52c721(0x25e)]);})),this['_syncEditingCollabCursorService'][_0x20cf32(0x38c)]['pipe'](d[_0x20cf32(0x310)](this[_0x20cf32(0x1a2)]))['subscribe'](_0x53a743=>{const _0x435589=_0x20cf32;if((_0x53a743==null?void 0x0:_0x53a743[_0x435589(0x22b)])!==this[_0x435589(0x22b)])return;const _0x451943={'eventID':m[_0x435589(0x297)][_0x435589(0x254)],'data':_0x53a743};this[_0x435589(0x34a)](_0x451943);}),this[_0x20cf32(0x323)](this['_commandService'][_0x20cf32(0x3eb)](_0x15b758=>{const _0x50db49=_0x20cf32;if(_0x15b758[_0x50db49(0x2ed)]==null)return;const _0x2ac60e=_0x15b758['params'];if(_0x15b758['id']!==Y[_0x50db49(0x1cc)]['id']||_0x2ac60e[_0x50db49(0x1f4)]!==this[_0x50db49(0x22b)])return;const _0x2180eb={'id':_0x50db49(0x227),'params':_0x2ac60e},_0x2ed814=this[_0x50db49(0x3a1)];for(const [_0x30b101,_0x2e1059]of _0x2ed814){const _0x31311f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x50db49(0x22b)],'actions':null,'textRanges':_0x2e1059[_0x50db49(0x25e)]}},_0x4c740e=this[_0x50db49(0x203)][_0x50db49(0x28a)](_0x2180eb,_0x31311f,!0x1);if(m[_0x50db49(0x28f)](_0x4c740e))throw _0x4c740e[_0x50db49(0x3ca)];_0x2ed814[_0x50db49(0x3c7)](_0x30b101,{..._0x2e1059,'ranges':_0x4c740e[_0x50db49(0x30f)][_0x50db49(0x2ed)]['textRanges']});}queueMicrotask(()=>{const _0x9e345a=_0x50db49;this['_cursorInfo$'][_0x9e345a(0x2ad)](_0x2ed814);});})));}[_0xbd72b5(0x34a)](_0x4af71b){const _0x5854a2=_0xbd72b5;var _0x243555,_0x693176;const {memberID:_0x1ba471,selection:_0x126689}=_0x4af71b['data'],_0x3d2198=Je(_0x126689),_0x2ccff4=(_0x693176=(_0x243555=this[_0x5854a2(0x24b)]['getMember'](this[_0x5854a2(0x22b)],_0x1ba471))==null?void 0x0:_0x243555[_0x5854a2(0x1dd)])!=null?_0x693176:_0x5854a2(0x2d2),_0x363982={'color':this['_colorAssignService'][_0x5854a2(0x35c)](_0x1ba471),'name':_0x2ccff4,'ranges':_0x3d2198},_0x5040e6=this[_0x5854a2(0x3a1)];_0x5040e6['set'](_0x1ba471,_0x363982),this[_0x5854a2(0x238)]['next'](_0x5040e6);}[_0xbd72b5(0x37f)](_0x5b1909){const _0x329284=_0xbd72b5,{memberID:_0x161bd1}=_0x5b1909[_0x329284(0x2b9)],_0x485d14=this[_0x329284(0x3a1)];_0x485d14[_0x329284(0x200)](_0x161bd1),this['_cursorInfo$'][_0x329284(0x2ad)](_0x485d14);}[_0xbd72b5(0x294)](){const _0x57854f=_0xbd72b5;var _0x80ff50;if(this[_0x57854f(0x269)]=!0x0,((_0x80ff50=this[_0x57854f(0x224)]['getFocusedUnit']())==null?void 0x0:_0x80ff50['getUnitId']())!==this['unitID'])return;const _0xf4c643=this[_0x57854f(0x207)][_0x57854f(0x206)](Y[_0x57854f(0x389)])[_0x57854f(0x2a7)]();Array[_0x57854f(0x1b6)](_0xf4c643)&&_0xf4c643[_0x57854f(0x1cf)]>0x0&&this[_0x57854f(0x32a)](_0xf4c643);}['_toggleOffline'](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),L(0x3,a[_0xbd72b5(0x1d6)](me)),L(0x4,a['Inject'](u[_0xbd72b5(0x241)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0xbd72b5(0x25b)]),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x5c7056,_0x3091d5,_0x4a0267,_0x1b76af)=>{const _0x2f1887=_0xbd72b5;for(var _0x5cbb2a=_0x1b76af>0x1?void 0x0:_0x1b76af?st(_0x3091d5,_0x4a0267):_0x3091d5,_0x19d3f6=_0x5c7056[_0x2f1887(0x1cf)]-0x1,_0x41b874;_0x19d3f6>=0x0;_0x19d3f6--)(_0x41b874=_0x5c7056[_0x19d3f6])&&(_0x5cbb2a=_0x41b874(_0x5cbb2a)||_0x5cbb2a);return _0x5cbb2a;},w=(_0x4bafed,_0x476636)=>(_0x3b7883,_0x5cb66e)=>_0x476636(_0x3b7883,_0x5cb66e,_0x4bafed);const nt=0x12c,rt=0x64,ot=()=>{let _0x27a2d0=[],_0x435914=!0x1;return _0x15d072=>{const _0x50e2df=_0x4dae;_0x27a2d0[_0x50e2df(0x2f7)](_0x15d072),_0x435914||(_0x435914=!0x0,setTimeout(()=>{const _0x3b93b2=_0x50e2df;_0x27a2d0[_0x3b93b2(0x276)](_0x43af1e=>_0x43af1e()),_0x27a2d0=[],_0x435914=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x4d4597,_0x411861,_0x4ce397,_0x1bafc0,_0x1c93a6,_0x1e4b9b,_0x3744a8,_0x53be26){const _0x5e5388=_0xbd72b5;super(),h(this,_0x5e5388(0x269),!0x1),h(this,_0x5e5388(0x1c9),!0x1),h(this,_0x5e5388(0x238),new d[(_0x5e5388(0x257))](new Map())),h(this,_0x5e5388(0x267),this[_0x5e5388(0x238)][_0x5e5388(0x30a)]()),h(this,_0x5e5388(0x2fc),new d[(_0x5e5388(0x257))]([])),h(this,_0x5e5388(0x17f),this[_0x5e5388(0x2fc)][_0x5e5388(0x1db)](d[_0x5e5388(0x3d6)](nt))),h(this,_0x5e5388(0x32a),a['debounce']((_0x83a580,_0x312eec)=>{const _0x2a89fd=_0x5e5388,_0x5bd785={'eventID':m[_0x2a89fd(0x297)][_0x2a89fd(0x254)],'data':{'unitID':this[_0x2a89fd(0x22b)],'memberID':this[_0x2a89fd(0x3ee)][_0x2a89fd(0x3be)](),'selection':Ee[_0x2a89fd(0x1b2)](_0x83a580,_0x312eec[_0x2a89fd(0x2c6)])}};this[_0x2a89fd(0x3ee)]['send'](_0x5bd785,this[_0x2a89fd(0x22b)]);},rt)),(this[_0x5e5388(0x22b)]=_0x4d4597,this[_0x5e5388(0x3ee)]=_0x411861,this[_0x5e5388(0x207)]=_0x4ce397,this[_0x5e5388(0x188)]=_0x1bafc0,this[_0x5e5388(0x24b)]=_0x1c93a6,this[_0x5e5388(0x224)]=_0x1e4b9b,this[_0x5e5388(0x29d)]=_0x3744a8,this[_0x5e5388(0x232)]=_0x53be26);}get[_0xbd72b5(0x3a1)](){const _0x2f8984=_0xbd72b5;return this[_0x2f8984(0x238)][_0x2f8984(0x3c2)]();}get[_0xbd72b5(0x1a3)](){const _0x5a500b=_0xbd72b5;return this[_0x5a500b(0x2fc)][_0x5a500b(0x3c2)]();}['dispose'](){const _0x3390ed=_0xbd72b5;super[_0x3390ed(0x32e)](),this[_0x3390ed(0x238)][_0x3390ed(0x2ad)](new Map()),this[_0x3390ed(0x238)]['complete'](),this['_roomMembers$'][_0x3390ed(0x2ad)]([]),this[_0x3390ed(0x2fc)]['complete']();}[_0xbd72b5(0x3c1)](){const _0x432249=_0xbd72b5;this[_0x432249(0x1c9)]||(this[_0x432249(0x1c9)]=!0x0,this[_0x432249(0x3ee)][_0x432249(0x3d4)][_0x432249(0x1db)](d['takeUntil'](this[_0x432249(0x1a2)]))['subscribe'](_0x3697a3=>{const _0x2ff088=_0x432249;_0x3697a3===u['SessionStatus'][_0x2ff088(0x19a)]?this[_0x2ff088(0x294)]():this['_toggleOffline']();}),this['_session']['event$'][_0x432249(0x1db)](d[_0x432249(0x310)](this['dispose$']))['subscribe'](_0x388eb7=>{const _0x58c674=_0x432249,_0x2ac031=_0x388eb7[_0x58c674(0x2d7)];_0x2ac031===m[_0x58c674(0x297)][_0x58c674(0x254)]&&this[_0x58c674(0x34a)](_0x388eb7),_0x2ac031===m[_0x58c674(0x297)][_0x58c674(0x380)]&&this[_0x58c674(0x37f)](_0x388eb7);}),this[_0x432249(0x256)](),this[_0x432249(0x323)](this['_commandService']['onCommandExecuted'](_0x44679a=>{const _0x20c6a0=_0x432249;if(this['_online']&&_0x44679a['id']===g[_0x20c6a0(0x318)]['id']&&_0x44679a[_0x20c6a0(0x2ed)]['unitId']===this[_0x20c6a0(0x22b)]){const _0xb52787=_0x44679a[_0x20c6a0(0x2ed)];this[_0x20c6a0(0x32a)](_0xb52787[_0x20c6a0(0x225)],_0xb52787['selections'][0x0]);}})));}['_onCursorUpdate'](_0x18a7d7){const _0x277638=_0xbd72b5;var _0xd9a50d,_0xa27240;const {memberID:_0x7dcf17,selection:_0x4c11c7}=_0x18a7d7[_0x277638(0x2b9)],{sheetName:_0x1e0aa9,range:_0x5dc5ae}=Ee[_0x277638(0x31d)](_0x4c11c7),_0x388847={'name':(_0xa27240=(_0xd9a50d=this[_0x277638(0x24b)][_0x277638(0x2eb)](this[_0x277638(0x22b)],_0x7dcf17))==null?void 0x0:_0xd9a50d[_0x277638(0x1dd)])!=null?_0xa27240:_0x277638(0x2d2),'range':this['_getMergeRange'](_0x1e0aa9,_0x5dc5ae),'sheetID':_0x1e0aa9,'color':this[_0x277638(0x188)][_0x277638(0x35c)](_0x7dcf17),'selection':_0x4c11c7},_0x5f08a0=this[_0x277638(0x3a1)];_0x5f08a0[_0x277638(0x3c7)](_0x7dcf17,_0x388847),this[_0x277638(0x238)][_0x277638(0x2ad)](_0x5f08a0);}['_onCursorDelete'](_0x865328){const _0x37367b=_0xbd72b5,{memberID:_0x3423ae}=_0x865328['data'],_0x446822=this[_0x37367b(0x3a1)];_0x446822[_0x37367b(0x200)](_0x3423ae),this['_cursorInfo$'][_0x37367b(0x2ad)](_0x446822);}[_0xbd72b5(0x3bd)](_0x1330b4,_0x556b21){const _0x4343da=_0xbd72b5;var _0x3c0b2e,_0x389740;const _0x2daf98=(_0x389740=(_0x3c0b2e=this[_0x4343da(0x224)][_0x4343da(0x36a)](this['unitID']))==null?void 0x0:_0x3c0b2e[_0x4343da(0x306)](_0x1330b4))==null?void 0x0:_0x389740[_0x4343da(0x296)]();return(_0x2daf98==null?void 0x0:_0x2daf98['find'](_0x4a9244=>a['Rectangle'][_0x4343da(0x3cb)](_0x4a9244,_0x556b21)))||_0x556b21;}[_0xbd72b5(0x256)](){const _0x37e45d=_0xbd72b5,_0x4edfdd=new a[(_0x37e45d(0x23a))](),_0x5f531d=ot(),_0x20db2e=()=>{const _0x22a954=_0x37e45d;_0x4edfdd[_0x22a954(0x32e)]();const _0x34f26e=(_0x73a65,_0x3f8f93,_0x236275,_0x50358c)=>{const _0x55b3ad=_0x22a954;let _0x599ccb=[];switch(_0x73a65['id']){case g['EffectRefRangId'][_0x55b3ad(0x35d)]:{_0x599ccb=g['handleDeleteRangeMoveLeft'](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)][_0x55b3ad(0x340)]:{_0x599ccb=g[_0x55b3ad(0x38e)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)][_0x55b3ad(0x21e)]:{_0x599ccb=g[_0x55b3ad(0x1f1)](_0x73a65,_0x50358c);break;}case g['EffectRefRangId'][_0x55b3ad(0x1e0)]:{_0x599ccb=g[_0x55b3ad(0x383)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)]['InsertRangeMoveRightCommandId']:{_0x599ccb=g[_0x55b3ad(0x1a6)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)]['InsertRowCommandId']:{_0x599ccb=g[_0x55b3ad(0x179)](_0x73a65,_0x50358c);break;}case g['EffectRefRangId'][_0x55b3ad(0x2f3)]:{_0x599ccb=g[_0x55b3ad(0x1d3)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)][_0x55b3ad(0x228)]:{_0x599ccb=g[_0x55b3ad(0x24e)](_0x73a65,_0x50358c);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x599ccb=g[_0x55b3ad(0x270)](_0x73a65,_0x50358c);break;}}const _0x228fd8=g[_0x55b3ad(0x23b)](_0x599ccb,_0x50358c),_0x587bd0=this[_0x55b3ad(0x3a1)][_0x55b3ad(0x206)](_0x3f8f93);if(_0x587bd0&&_0x228fd8){const _0x86e8a1={..._0x587bd0,'range':_0x228fd8};this['cursorInfo']['set'](_0x3f8f93,_0x86e8a1),_0x5f531d(()=>{const _0x4ef0ce=_0x55b3ad,_0x1b19c7=this[_0x4ef0ce(0x232)][_0x4ef0ce(0x18a)](_0x228fd8,_0x52a56a=>(_0x1b19c7['dispose'](),_0x34f26e(_0x52a56a,_0x3f8f93,_0x236275,_0x228fd8)));_0x4edfdd[_0x4ef0ce(0x1e5)](_0x1b19c7);});}return{'redos':[],'undos':[]};};this[_0x22a954(0x3a1)]['forEach']((_0x3ed5a8,_0x582f46)=>{const _0x48f4ff=_0x22a954,{range:_0x1015c7,sheetID:_0x5b0fde}=_0x3ed5a8,_0x35b844=this[_0x48f4ff(0x232)][_0x48f4ff(0x18a)](_0x1015c7,_0x1b561e=>(_0x35b844['dispose'](),_0x34f26e(_0x1b561e,_0x582f46,_0x5b0fde,_0x1015c7)));_0x4edfdd['add'](_0x35b844);});};this[_0x37e45d(0x323)](a[_0x37e45d(0x385)](this[_0x37e45d(0x238)]['subscribe'](()=>{_0x20db2e();})));}[_0xbd72b5(0x294)](){const _0x4e223b=_0xbd72b5;var _0x5f0ad9,_0x47e939;if(this[_0x4e223b(0x269)]=!0x0,((_0x5f0ad9=this[_0x4e223b(0x224)][_0x4e223b(0x397)]())==null?void 0x0:_0x5f0ad9[_0x4e223b(0x1e1)]())!==this[_0x4e223b(0x22b)])return;const _0x29e2a4=(_0x47e939=this['_injector'][_0x4e223b(0x206)](g[_0x4e223b(0x372)])[_0x4e223b(0x1ac)]())==null?void 0x0:_0x47e939[0x0],_0x27090e=this[_0x4e223b(0x224)][_0x4e223b(0x35a)](a['UniverInstanceType'][_0x4e223b(0x2c2)])['getActiveSheet']();_0x29e2a4&&_0x27090e&&this[_0x4e223b(0x32a)](_0x27090e[_0x4e223b(0x31e)](),_0x29e2a4);}[_0xbd72b5(0x21f)](){const _0x201fae=_0xbd72b5;this[_0x201fae(0x269)]=!0x1;}};Se=it([w(0x2,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),w(0x3,a[_0xbd72b5(0x1d6)](me)),w(0x4,a['Inject'](u['MemberService'])),w(0x5,a[_0xbd72b5(0x3e7)]),w(0x6,a[_0xbd72b5(0x3ea)]),w(0x7,a[_0xbd72b5(0x1d6)](g['RefRangeService']))],Se);var at=Object[_0xbd72b5(0x402)],ct=(_0x3fe832,_0x3980a4,_0x4a34a4,_0x466f8f)=>{const _0xc23e09=_0xbd72b5;for(var _0x2e7671=_0x466f8f>0x1?void 0x0:_0x466f8f?at(_0x3980a4,_0x4a34a4):_0x3980a4,_0x445039=_0x3fe832[_0xc23e09(0x1cf)]-0x1,_0x22be5c;_0x445039>=0x0;_0x445039--)(_0x22be5c=_0x3fe832[_0x445039])&&(_0x2e7671=_0x22be5c(_0x2e7671)||_0x2e7671);return _0x2e7671;},ie=(_0x5a80e6,_0x4873c7)=>(_0x24a97b,_0x271541)=>_0x4873c7(_0x24a97b,_0x271541,_0x5a80e6);function _0x4dae(_0x179816,_0x4c72b6){const _0x3f5db0=_0x3f5d();return _0x4dae=function(_0x4dae14,_0x5909dd){_0x4dae14=_0x4dae14-0x175;let _0x2abaec=_0x3f5db0[_0x4dae14];return _0x2abaec;},_0x4dae(_0x179816,_0x4c72b6);}let x=class extends a[_0xbd72b5(0x283)]{constructor(_0x36d9d6,_0x2afa9f,_0x6bc408){const _0x730ca6=_0xbd72b5;super(),h(this,_0x730ca6(0x330),new Map()),h(this,_0x730ca6(0x3fe),new d[(_0x730ca6(0x342))]()),(this[_0x730ca6(0x224)]=_0x36d9d6,this[_0x730ca6(0x207)]=_0x2afa9f,this[_0x730ca6(0x248)]=_0x6bc408,this[_0x730ca6(0x1c9)]());}[_0xbd72b5(0x32e)](){const _0x6bc764=_0xbd72b5;super[_0x6bc764(0x32e)](),this[_0x6bc764(0x3fe)][_0x6bc764(0x2d8)](),this[_0x6bc764(0x330)][_0x6bc764(0x276)](_0x51bb35=>_0x51bb35[_0x6bc764(0x32e)]());}[_0xbd72b5(0x24f)](_0x94794b){const _0x3753fd=_0xbd72b5;return this[_0x3753fd(0x330)][_0x3753fd(0x3c8)](_0x94794b)?this[_0x3753fd(0x330)][_0x3753fd(0x206)](_0x94794b)[_0x3753fd(0x267)]:this['_entityInit$'][_0x3753fd(0x1db)](d[_0x3753fd(0x1d2)](_0x12a57e=>_0x12a57e[_0x3753fd(0x22b)]===_0x94794b),d['switchMap'](_0x2c4a12=>_0x2c4a12[_0x3753fd(0x267)]));}[_0xbd72b5(0x1c9)](){const _0x2c49c9=_0xbd72b5;this[_0x2c49c9(0x224)][_0x2c49c9(0x365)](a[_0x2c49c9(0x216)]['UNIVER_SHEET'])[_0x2c49c9(0x1db)](d[_0x2c49c9(0x310)](this[_0x2c49c9(0x1a2)]))[_0x2c49c9(0x1fc)](async _0x3da504=>{const _0x2ea3c6=_0x2c49c9,_0x58026a=_0x3da504[_0x2ea3c6(0x1e1)](),_0x1ad8ff=await this[_0x2ea3c6(0x231)](_0x58026a);this['_entityInit$'][_0x2ea3c6(0x2ad)](_0x1ad8ff),this[_0x2ea3c6(0x330)][_0x2ea3c6(0x3c7)](_0x58026a,_0x1ad8ff);}),this['_univerInstanceService'][_0x2c49c9(0x365)](a[_0x2c49c9(0x216)]['UNIVER_DOC'])['pipe'](d['takeUntil'](this[_0x2c49c9(0x1a2)]))[_0x2c49c9(0x1db)](d[_0x2c49c9(0x1d2)](_0x36cf9b=>!_0x36cf9b[_0x2c49c9(0x1e1)]()['startsWith']('__')))[_0x2c49c9(0x1fc)](async _0x586db4=>{const _0x442529=_0x2c49c9,_0x1373d5=_0x586db4['getUnitId'](),_0x26ca10=await this[_0x442529(0x300)](_0x1373d5);this[_0x442529(0x3fe)][_0x442529(0x2ad)](_0x26ca10),this['_entities'][_0x442529(0x3c7)](_0x1373d5,_0x26ca10);}),d[_0x2c49c9(0x1bc)](this[_0x2c49c9(0x224)][_0x2c49c9(0x30c)](a['UniverInstanceType'][_0x2c49c9(0x211)]),this[_0x2c49c9(0x224)][_0x2c49c9(0x30c)](a['UniverInstanceType'][_0x2c49c9(0x2c2)]))[_0x2c49c9(0x1db)](d[_0x2c49c9(0x310)](this[_0x2c49c9(0x1a2)]))[_0x2c49c9(0x1fc)](_0x2e984f=>{const _0x26a163=_0x2c49c9,_0x6d1dd8=_0x2e984f[_0x26a163(0x1e1)](),_0x20edff=this['_entities'][_0x26a163(0x206)](_0x6d1dd8);_0x20edff&&(_0x20edff['dispose'](),this[_0x26a163(0x330)]['delete'](_0x6d1dd8));});}async[_0xbd72b5(0x231)](_0x1b3863){const _0x280fc7=_0xbd72b5,_0x32dad6=await this[_0x280fc7(0x248)][_0x280fc7(0x2f5)](_0x1b3863),_0x351a78=this['_injector'][_0x280fc7(0x2d3)](Se,_0x1b3863,_0x32dad6);return _0x351a78[_0x280fc7(0x3c1)](),_0x351a78;}async[_0xbd72b5(0x300)](_0x1b297f){const _0x20d794=_0xbd72b5,_0x580fde=await this['_collabSessionService']['requireSession'](_0x1b297f),_0x2af670=this['_injector'][_0x20d794(0x2d3)](fe,_0x1b297f,_0x580fde);return _0x2af670[_0x20d794(0x3c1)](),_0x2af670;}};x=ct([ie(0x0,a[_0xbd72b5(0x3e7)]),ie(0x1,a['Inject'](a[_0xbd72b5(0x338)])),ie(0x2,a['Inject'](u[_0xbd72b5(0x307)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x59b500,_0x503636){const _0xc5c964=_0xbd72b5;let {radius:_0x1a5ba2,width:_0x3edd45,height:_0x3f9989}=_0x503636;_0x1a5ba2=_0x1a5ba2!=null?_0x1a5ba2:0x0,_0x3edd45=_0x3edd45!=null?_0x3edd45:0x1e,_0x3f9989=_0x3f9989!=null?_0x3f9989:0x1e;let _0x1aa05c=0x0,_0x5222ac=0x0,_0x204d04=0x0;_0x1aa05c=_0x5222ac=_0x204d04=Math[_0xc5c964(0x2d4)](_0x1a5ba2,_0x3edd45/0x2,_0x3f9989/0x2),_0x59b500['beginPath'](),_0x59b500['moveTo'](_0x1aa05c,0x0),_0x59b500[_0xc5c964(0x27f)](_0x3edd45-_0x5222ac,0x0),_0x59b500[_0xc5c964(0x193)](_0x3edd45-_0x5222ac,_0x5222ac,_0x5222ac,Math['PI']*0x3/0x2,0x0,!0x1),_0x59b500[_0xc5c964(0x27f)](_0x3edd45,_0x3f9989-_0x204d04),_0x59b500[_0xc5c964(0x193)](_0x3edd45-_0x204d04,_0x3f9989-_0x204d04,_0x204d04,0x0,Math['PI']/0x2,!0x1),_0x59b500[_0xc5c964(0x27f)](0x0,_0x3f9989),_0x59b500[_0xc5c964(0x27f)](0x0,_0x1aa05c),_0x59b500[_0xc5c964(0x193)](_0x1aa05c,_0x1aa05c,_0x1aa05c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x59b500['closePath'](),_0x503636['fill']&&(_0x59b500[_0xc5c964(0x400)](),_0x59b500[_0xc5c964(0x346)]=_0x503636[_0xc5c964(0x403)],_0x503636[_0xc5c964(0x20a)]===_0xc5c964(0x326)?_0x59b500[_0xc5c964(0x403)](_0xc5c964(0x326)):_0x59b500[_0xc5c964(0x403)](),_0x59b500['restore']());}class ee extends p[_0xbd72b5(0x3fb)]{constructor(_0x564dc5,_0x3e475a){const _0x259655=_0xbd72b5;super(_0x564dc5,_0x3e475a),h(this,_0x259655(0x329)),h(this,_0x259655(0x363)),(this[_0x259655(0x329)]=_0x3e475a==null?void 0x0:_0x3e475a[_0x259655(0x329)],this[_0x259655(0x363)]=_0x3e475a==null?void 0x0:_0x3e475a['text']);}static[_0xbd72b5(0x31b)](_0x148dea,_0x4982bf){const _0x21ea22=_0xbd72b5,{text:_0x1aa6fc,color:_0x16c853}=_0x4982bf;_0x148dea[_0x21ea22(0x400)](),_0x148dea['font']=_0x21ea22(0x2d6);const _0x3cabca=_0x148dea['measureText'](_0x1aa6fc)[_0x21ea22(0x2d9)],_0x50e772=Math[_0x21ea22(0x2d4)](_0x3cabca+0x2*ne,Re);_t(_0x148dea,{'height':K,'radius':0x4,'width':_0x50e772,'fill':_0x16c853}),_0x148dea[_0x21ea22(0x346)]=_0x21ea22(0x26b);const _0x44989b=ne,_0x1797f4=K-lt,_0x5a9ede=Re-0x2*ne;if(_0x3cabca>_0x5a9ede){let _0x216d3d='',_0x30b8b0=0x0;for(const _0x38df26 of _0x1aa6fc){const _0xa0a15b=_0x148dea[_0x21ea22(0x316)](_0x38df26)[_0x21ea22(0x2d9)];if(_0x30b8b0+_0xa0a15b<=_0x5a9ede-_0x148dea[_0x21ea22(0x316)](_0x21ea22(0x39d))[_0x21ea22(0x2d9)])_0x216d3d+=_0x38df26,_0x30b8b0+=_0xa0a15b;else{_0x216d3d+=_0x21ea22(0x39d);break;}}_0x148dea[_0x21ea22(0x3ab)](_0x216d3d,_0x44989b,_0x1797f4);}else _0x148dea[_0x21ea22(0x3ab)](_0x1aa6fc,_0x44989b,_0x1797f4);_0x148dea[_0x21ea22(0x355)]();}[_0xbd72b5(0x1a4)](_0x301572){const _0x54c667=_0xbd72b5;ee[_0x54c667(0x31b)](_0x301572,this);}}const re=_0xbd72b5(0x35f),ht='collab-text-range-',ut=_0xbd72b5(0x192),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0xbd72b5(0x28d);class De{constructor(_0x39c466,_0x4927c4,_0x1ef832,_0x549467){const _0x2c8969=_0xbd72b5;h(this,'_shapes',[]),h(this,_0x2c8969(0x3e9),null),h(this,_0x2c8969(0x2ac),null),h(this,_0x2c8969(0x2b6),null),h(this,'_hideTimer',null),h(this,_0x2c8969(0x33e),null),(this[_0x2c8969(0x1b8)]=_0x39c466,this[_0x2c8969(0x28e)]=_0x4927c4,this[_0x2c8969(0x2c1)]=_0x1ef832,this[_0x2c8969(0x240)]=_0x549467,this['_render']());}set['_hover'](_0x57daaf){const _0x43b803=_0xbd72b5;_0x57daaf?(this[_0x43b803(0x2b6)]&&this['_anchorDot'][_0x43b803(0x25f)](),this[_0x43b803(0x2ac)]&&this[_0x43b803(0x2ac)][_0x43b803(0x17b)]()):(this[_0x43b803(0x2b6)]&&this[_0x43b803(0x2b6)][_0x43b803(0x17b)](),this[_0x43b803(0x2ac)]&&this[_0x43b803(0x2ac)]['hide']());}[_0xbd72b5(0x32e)](){const _0xf421c9=_0xbd72b5;for(const _0x29f160 of this[_0xf421c9(0x236)])_0x29f160['dispose']();this[_0xf421c9(0x2ac)]&&this['_textBubble'][_0xf421c9(0x32e)](),this[_0xf421c9(0x2b6)]&&this[_0xf421c9(0x2b6)][_0xf421c9(0x32e)](),this[_0xf421c9(0x3e9)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0xf421c9(0x33e)]();}['_render'](){const _0x4c5c9a=_0xbd72b5;var _0x5c16c0;const {_docSkeleton:_0x5dd94d,_document:_0x72ae8f}=this,{color:_0x15f65a,name:_0x1f1aad,ranges:_0x57b2fe}=this['_cursor'],_0x614598=_0x72ae8f[_0x4c5c9a(0x26a)](),{docsLeft:_0x49c75a,docsTop:_0x3285bd}=_0x614598,_0x1497ef=new b['NodePositionConvertToCursor'](_0x614598,_0x5dd94d);for(const {startOffset:_0x14930b,endOffset:_0x34d1a2,rangeType:_0x412881,segmentId:_0x541321,segmentPage:_0x105c86,collapsed:_0x3ae9d6,isActive:_0x564ce5}of _0x57b2fe){const _0x3e532f=_0x5dd94d[_0x4c5c9a(0x26c)](_0x14930b,!0x0,_0x541321,_0x105c86);let _0x30a5be=_0x5dd94d[_0x4c5c9a(0x26c)](_0x34d1a2,!0x0,_0x541321,_0x105c86);if(_0x30a5be==null&&(_0x30a5be=_0x5dd94d['findNodePositionByCharIndex'](_0x34d1a2-0x1,!0x1,_0x541321,_0x105c86)),_0x564ce5){const {contentBoxPointGroup:_0x5bb515}=_0x1497ef[_0x4c5c9a(0x275)](_0x30a5be,_0x30a5be);if(_0x5bb515[_0x4c5c9a(0x1cf)]===0x0)continue;this['_drawAnchor'](_0x15f65a,_0x5bb515,_0x49c75a,_0x3285bd,_0x1f1aad),this[_0x4c5c9a(0x33e)]=this['_handleHover']();}if(_0x3e532f&&_0x30a5be){if(_0x412881===a[_0x4c5c9a(0x2dc)][_0x4c5c9a(0x37a)]){const _0x17228d=new b['NodePositionConvertToRectRange'](_0x614598,_0x5dd94d),{pointGroup:_0x4de92c}=(_0x5c16c0=_0x17228d['getRangePointData'](_0x3e532f,_0x30a5be))!=null?_0x5c16c0:{};if(_0x4de92c==null||_0x4de92c['length']===0x0)continue;this[_0x4c5c9a(0x265)](_0x15f65a,_0x4de92c,_0x49c75a,_0x3285bd);}else{if(!_0x3ae9d6){const {borderBoxPointGroup:_0xe4b42}=_0x1497ef[_0x4c5c9a(0x275)](_0x3e532f,_0x30a5be);if(_0xe4b42[_0x4c5c9a(0x1cf)]===0x0)continue;this['_drawTextRange'](_0x15f65a,_0xe4b42,_0x49c75a,_0x3285bd);}}}}}[_0xbd72b5(0x3e3)](_0x259d60,_0x4c984b,_0x440d67,_0x68464,_0x2365fe){const _0x4cf9f5=_0xbd72b5,_0x6f334c=this[_0x4cf9f5(0x2b3)](_0x4c984b),{left:_0x1c8915,top:_0x135ca6,height:_0x3a7723}=_0x6f334c,_0x3d9e0b=this['_getScale'](),_0x35fa00=ft/_0x3d9e0b,_0x13a059=new p['Rect'](re+a[_0x4cf9f5(0x32f)]['generateRandomId'](k),{'left':_0x1c8915+_0x440d67-_0x35fa00,'top':_0x135ca6+_0x68464,'height':_0x3a7723,'width':dt,'fill':_0x259d60||p[_0x4cf9f5(0x3d8)](a[_0x4cf9f5(0x182)]['black'],0x0),'strokeWidth':_0x35fa00,'stroke':St,'evented':!0x0});this[_0x4cf9f5(0x3e9)]=_0x13a059,this[_0x4cf9f5(0x28e)]['addObject'](_0x13a059,b[_0x4cf9f5(0x2a3)]);const _0x568ba2=new p['Rect'](re+a[_0x4cf9f5(0x32f)][_0x4cf9f5(0x1da)](k),{'left':_0x1c8915+_0x440d67-_0x35fa00,'top':_0x135ca6+_0x68464-oe/0x2,'height':oe,'width':oe,'fill':_0x259d60||p[_0x4cf9f5(0x3d8)](a[_0x4cf9f5(0x182)][_0x4cf9f5(0x2a6)],0x0),'strokeWidth':0x0,'stroke':_0x259d60||p[_0x4cf9f5(0x3d8)](a[_0x4cf9f5(0x182)][_0x4cf9f5(0x2a6)],0x0),'evented':!0x1});this[_0x4cf9f5(0x2b6)]=_0x568ba2,this[_0x4cf9f5(0x28e)][_0x4cf9f5(0x1c0)](_0x568ba2,b['TEXT_RANGE_LAYER_INDEX']);const _0x25bb2c=new ee(re+a['Tools'][_0x4cf9f5(0x1da)](k),{'left':_0x1c8915+_0x440d67-_0x35fa00,'top':_0x135ca6+_0x68464-K,'text':_0x2365fe,'color':_0x259d60});this[_0x4cf9f5(0x2ac)]=_0x25bb2c,this[_0x4cf9f5(0x28e)][_0x4cf9f5(0x1c0)](_0x25bb2c,b[_0x4cf9f5(0x2a3)]),this[_0x4cf9f5(0x281)]=!0x1;}[_0xbd72b5(0x2b8)](){const _0x2f18e9=_0xbd72b5,_0x56421b=this[_0x2f18e9(0x3e9)][_0x2f18e9(0x1f6)][_0x2f18e9(0x209)](()=>{const _0x1ea219=_0x2f18e9;this[_0x1ea219(0x281)]=!0x0;}),_0x27154c=this['_anchor'][_0x2f18e9(0x327)][_0x2f18e9(0x209)](()=>{const _0x56d794=_0x2f18e9;this[_0x56d794(0x201)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x99b3a2=_0x56d794;this[_0x99b3a2(0x281)]=!0x1;},0x7d0);});return()=>{const _0x3d8790=_0x2f18e9;_0x56421b[_0x3d8790(0x2c7)](),_0x27154c['unsubscribe']();};}[_0xbd72b5(0x1c1)](_0x4e07fb,_0x337da1,_0x4dff74,_0xf0f613){const _0x807e8e=_0xbd72b5,_0x4cec70=new a['ColorKit'](_0x4e07fb)['setAlpha'](0.2)[_0x807e8e(0x32b)](),_0x41cf9c=new p[(_0x807e8e(0x39b))](ht+a[_0x807e8e(0x32f)]['generateRandomId'](k),{'pointsGroup':_0x337da1,'fill':_0x4cec70||p['getColor'](a['COLORS'][_0x807e8e(0x2a6)],0.2),'left':_0x4dff74,'top':_0xf0f613,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x807e8e(0x236)]['push'](_0x41cf9c),this[_0x807e8e(0x28e)]['addObject'](_0x41cf9c,b[_0x807e8e(0x2a3)]);}[_0xbd72b5(0x265)](_0x5a1e29,_0x423e8d,_0x30e6b3,_0x2b17f9){const _0x117dba=_0xbd72b5,_0x39f893=new a[(_0x117dba(0x2b7))](_0x5a1e29)[_0x117dba(0x23d)](0.2)[_0x117dba(0x32b)](),_0xa8338e=new p[(_0x117dba(0x39b))](ut+a['Tools'][_0x117dba(0x1da)](k),{'pointsGroup':_0x423e8d,'fill':_0x39f893||p['getColor'](a[_0x117dba(0x182)][_0x117dba(0x2a6)],0.2),'left':_0x30e6b3,'top':_0x2b17f9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x117dba(0x236)]['push'](_0xa8338e),this[_0x117dba(0x28e)][_0x117dba(0x1c0)](_0xa8338e,b['TEXT_RANGE_LAYER_INDEX']);}[_0xbd72b5(0x2b3)](_0x2a3589){const _0x35c0b5=_0x2a3589[0x0],_0xe72882=_0x35c0b5[0x0],_0x19601c=_0x35c0b5[0x2],{x:_0x50c374,y:_0x120d1f}=_0xe72882,{x:_0x2916f9,y:_0x51a108}=_0x19601c;return{'left':_0x50c374,'top':_0x120d1f,'width':_0x2916f9-_0x50c374,'height':_0x51a108-_0x120d1f};}[_0xbd72b5(0x390)](){const _0x467b6c=_0xbd72b5,{scaleX:_0x5a9c7f,scaleY:_0x2433a0}=this[_0x467b6c(0x28e)][_0x467b6c(0x325)]();return Math[_0x467b6c(0x3a8)](_0x5a9c7f,_0x2433a0);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x347d00,_0x38b7da,_0x38e1ec,_0x4b89e9)=>{for(var _0x5b520f=_0x4b89e9>0x1?void 0x0:_0x4b89e9?It(_0x38b7da,_0x38e1ec):_0x38b7da,_0x5cd882=_0x347d00['length']-0x1,_0x505eb7;_0x5cd882>=0x0;_0x5cd882--)(_0x505eb7=_0x347d00[_0x5cd882])&&(_0x5b520f=_0x505eb7(_0x5b520f)||_0x5b520f);return _0x5b520f;},W=(_0x24d37f,_0x27c669)=>(_0x42ed43,_0x396faf)=>_0x27c669(_0x42ed43,_0x396faf,_0x24d37f);let Ie=class extends a[_0xbd72b5(0x283)]{constructor(_0x33bcb2,_0x597998,_0x39f72c,_0x4d4084,_0x58048b){const _0x4d192a=_0xbd72b5;super(),h(this,_0x4d192a(0x37b),[]),h(this,'_cursors',[]),(this[_0x4d192a(0x33b)]=_0x33bcb2,this[_0x4d192a(0x36e)]=_0x597998,this[_0x4d192a(0x17a)]=_0x39f72c,this[_0x4d192a(0x29d)]=_0x4d4084,this[_0x4d192a(0x398)]=_0x58048b,this[_0x4d192a(0x1c9)]());}[_0xbd72b5(0x1c9)](){const _0x3e798a=_0xbd72b5,_0x2f6d90=this[_0x3e798a(0x33b)][_0x3e798a(0x1f4)],_0x460e0c=this[_0x3e798a(0x36e)];this[_0x3e798a(0x323)](d[_0x3e798a(0x3f7)]([this['_collabCursorController']['getCollabCursors$'](_0x2f6d90),this[_0x3e798a(0x398)][_0x3e798a(0x3cc)]])[_0x3e798a(0x1db)]($[_0x3e798a(0x1de)](([_0xb65bad,_0x30b542])=>({'skeleton':_0x460e0c[_0x3e798a(0x19c)](),'cursors':[..._0xb65bad[_0x3e798a(0x2b1)]()][_0x3e798a(0x31f)](_0x55a3b0=>({..._0x55a3b0,'color':this['_themeService']['getColorFromTheme'](_0x55a3b0['color'])}))})))['subscribe'](_0x7b3369=>{const _0x59a960=_0x3e798a;if(this[_0x59a960(0x37c)](),_0x7b3369){const {skeleton:_0x29e8fb,cursors:_0x163891}=_0x7b3369;this[_0x59a960(0x3fc)](_0x29e8fb,_0x163891);}})),this[_0x3e798a(0x2c8)](),this['_initCommandExecutedListener']();}[_0xbd72b5(0x3fc)](_0x207d1b,_0x4dd06b){const _0x227c86=_0xbd72b5,{scene:_0x3f765a,mainComponent:_0x384c23}=this[_0x227c86(0x33b)],_0x3bfe6c=_0x4dd06b[_0x227c86(0x1de)](_0x36308c=>new De(_0x36308c,_0x3f765a,_0x207d1b,_0x384c23));this[_0x227c86(0x37b)]=_0x3bfe6c,this[_0x227c86(0x382)]=_0x4dd06b;}['_refreshCollabCursors'](){const _0x4912fb=_0xbd72b5;this['_removeCollabCursors']();const {scene:_0x2922fb,mainComponent:_0x45036a}=this['_context'],_0x76cf4c=this['_docSkeletonManagerService']['getSkeleton'](),_0x2f2201=this[_0x4912fb(0x382)]['map'](_0x1d4930=>new De(_0x1d4930,_0x2922fb,_0x76cf4c,_0x45036a));this[_0x4912fb(0x37b)]=_0x2f2201;}[_0xbd72b5(0x37c)](){const _0x1742f7=_0xbd72b5;this['_cursorShapes'][_0x1742f7(0x276)](_0x20d0c1=>_0x20d0c1[_0x1742f7(0x32e)]()),this[_0x1742f7(0x37b)]=[];}[_0xbd72b5(0x18d)](){const _0xae3eb5=_0xbd72b5,_0x274ae9=[b[_0xae3eb5(0x20e)]['id']];this[_0xae3eb5(0x323)](this[_0xae3eb5(0x29d)][_0xae3eb5(0x3eb)](_0x28b873=>{const _0x447884=_0xae3eb5;_0x274ae9[_0x447884(0x214)](_0x28b873['id'])&&_0x28b873['params'][_0x447884(0x1f4)]===this['_context'][_0x447884(0x1f4)]&&this['_refreshCollabCursors']();}));}[_0xbd72b5(0x2c8)](){const _0x3b7f4a=_0xbd72b5;this[_0x3b7f4a(0x323)](a[_0x3b7f4a(0x278)](this[_0x3b7f4a(0x33b)][_0x3b7f4a(0x366)][_0x3b7f4a(0x395)])[_0x3b7f4a(0x1db)]($['filter'](_0x238e0b=>_0x238e0b[_0x3b7f4a(0x1fa)]===p[_0x3b7f4a(0x251)][_0x3b7f4a(0x2f0)]),$[_0x3b7f4a(0x375)](0x10))[_0x3b7f4a(0x1fc)](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([W(0x1,a[_0xbd72b5(0x1d6)](Y[_0xbd72b5(0x1f3)])),W(0x2,a[_0xbd72b5(0x1d6)](x)),W(0x3,a[_0xbd72b5(0x3ea)]),W(0x4,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x1e9)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0xbd72b5(0x3fb)]{constructor(_0x1e4110,_0x11aeeb){const _0x10e73d=_0xbd72b5;super(_0x1e4110,_0x11aeeb),h(this,_0x10e73d(0x1c3)),h(this,_0x10e73d(0x191),!0x1),h(this,_0x10e73d(0x28b)),h(this,_0x10e73d(0x358),''),h(this,'_labelPosition',_0x10e73d(0x39c)),h(this,_0x10e73d(0x3a7)),(_0x11aeeb&&this['setShapeProps'](_0x11aeeb),this[_0x10e73d(0x1f6)]['subscribeEvent'](()=>this[_0x10e73d(0x3ff)]({'hovered':!0x0})),this[_0x10e73d(0x327)][_0x10e73d(0x209)](()=>this[_0x10e73d(0x3ff)]({'hovered':!0x1})));}[_0xbd72b5(0x3ff)](_0x4ceca2){const _0x54c72f=_0xbd72b5;var _0x3ca022,_0x87badb,_0x380f53,_0x20df35,_0x3101de,_0x1d364a;this['_color']=(_0x3ca022=_0x4ceca2[_0x54c72f(0x329)])!=null?_0x3ca022:this['_color'],this['_hovered']=(_0x87badb=_0x4ceca2[_0x54c72f(0x2d1)])!=null?_0x87badb:this['_hovered'],this[_0x54c72f(0x28b)]=(_0x380f53=_0x4ceca2[_0x54c72f(0x2c6)])!=null?_0x380f53:this['_range'],this[_0x54c72f(0x358)]=(_0x20df35=_0x4ceca2['name'])!=null?_0x20df35:this[_0x54c72f(0x358)],this[_0x54c72f(0x2e2)]=(_0x3101de=_0x4ceca2['labelPosition'])!=null?_0x3101de:this['_labelPosition'],this['_backgroundColor']=(_0x1d364a=_0x4ceca2[_0x54c72f(0x202)])!=null?_0x1d364a:this[_0x54c72f(0x3a7)],this[_0x54c72f(0x3e6)]({'width':_0x4ceca2['width'],'height':_0x4ceca2[_0x54c72f(0x27e)]});}['onMouseMove'](_0x5e4837){const _0xfa5324=_0xbd72b5,{row:_0x59ca00,column:_0x2a9957}=_0x5e4837;if(_0x59ca00>=this['_range']['startRow']&&_0x59ca00<=this[_0xfa5324(0x28b)]['endRow']&&_0x2a9957>=this[_0xfa5324(0x28b)]['startColumn']&&_0x2a9957<=this['_range']['endColumn']){this[_0xfa5324(0x3ff)]({'hovered':!0x0});return;}this[_0xfa5324(0x3ff)]({'hovered':!0x1});}[_0xbd72b5(0x3b2)](_0x597719){return!0x1;}[_0xbd72b5(0x1a4)](_0x51497d){const _0x221ae9=_0xbd72b5;p[_0x221ae9(0x354)][_0x221ae9(0x31b)](_0x51497d,{'width':this[_0x221ae9(0x2d9)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x221ae9(0x1c3)],'evented':!0x1,'fill':this[_0x221ae9(0x3a7)]}),this[_0x221ae9(0x191)]&&(_0x51497d[_0x221ae9(0x400)](),_0x51497d[_0x221ae9(0x291)](0x1,0x0,0x0,0x1,this['width'],this[_0x221ae9(0x2e2)]==='bottom'?0x0:-0x14),ee[_0x221ae9(0x31b)](_0x51497d,{'text':this[_0x221ae9(0x358)],'color':this[_0x221ae9(0x1c3)]}),_0x51497d[_0x221ae9(0x355)]());}}var Ct=Object[_0xbd72b5(0x402)],pt=(_0x38ece9,_0x3a4a6b,_0x526db5,_0x1b858f)=>{for(var _0x24baee=_0x1b858f>0x1?void 0x0:_0x1b858f?Ct(_0x3a4a6b,_0x526db5):_0x3a4a6b,_0x385ad2=_0x38ece9['length']-0x1,_0x521acb;_0x385ad2>=0x0;_0x385ad2--)(_0x521acb=_0x38ece9[_0x385ad2])&&(_0x24baee=_0x521acb(_0x24baee)||_0x24baee);return _0x24baee;},ae=(_0x3cf39f,_0x14fa7c)=>(_0x221b65,_0x5b074b)=>_0x14fa7c(_0x221b65,_0x5b074b,_0x3cf39f);const bt=0x1389;let ve=class extends a[_0xbd72b5(0x283)]{constructor(_0x43e2d6,_0x2d355,_0x15eccb,_0x4520ed){const _0x2ed856=_0xbd72b5;super(),h(this,'_cursors',new Set()),h(this,_0x2ed856(0x35e),null),(this[_0x2ed856(0x33b)]=_0x43e2d6,this[_0x2ed856(0x3d5)]=_0x2d355,this['_collabCursorController']=_0x15eccb,this[_0x2ed856(0x398)]=_0x4520ed,this[_0x2ed856(0x1c9)]());}[_0xbd72b5(0x1c9)](){const _0x2cf5ed=_0xbd72b5;this[_0x2cf5ed(0x3d5)][_0x2cf5ed(0x22c)][_0x2cf5ed(0x1db)]($['takeUntil'](this[_0x2cf5ed(0x1a2)]),$[_0x2cf5ed(0x353)](_0x4e14cf=>{const _0x2a2ca3=_0x2cf5ed;if(_0x4e14cf){const _0x3f5d3f=_0x4e14cf['sheetId'];return d['combineLatest'](this[_0x2a2ca3(0x17a)][_0x2a2ca3(0x24f)](this[_0x2a2ca3(0x33b)][_0x2a2ca3(0x1f4)]),this[_0x2a2ca3(0x398)][_0x2a2ca3(0x3cc)])['pipe']($['map'](([_0x2a1ccc,_0x39438c])=>{const _0x42db08=_0x2a2ca3,_0x6df853=new Map();return _0x2a1ccc[_0x42db08(0x276)]((_0x51d086,_0x2658df)=>{const _0x2bc2d9=_0x42db08;if(_0x51d086[_0x2bc2d9(0x2a4)]===_0x3f5d3f){const _0x2d5a36={..._0x51d086};_0x2d5a36[_0x2bc2d9(0x329)]=this[_0x2bc2d9(0x398)][_0x2bc2d9(0x2db)](_0x51d086[_0x2bc2d9(0x329)]),_0x6df853['set'](_0x2658df,_0x2d5a36);}}),{'skeleton':_0x4e14cf,'cursors':_0x6df853};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2cf5ed(0x1fc)](({skeleton:_0x2c25e5,cursors:_0x3f3ac5})=>{const _0x274334=_0x2cf5ed;this['_removeCollabCursors'](),_0x2c25e5&&this[_0x274334(0x3fc)](_0x2c25e5,_0x3f3ac5);}),this['_sheetSkeletonManagerService'][_0x2cf5ed(0x22c)]['subscribe'](_0x20a22f=>{const _0x43f3b0=_0x2cf5ed;if(_0x20a22f==null)return;const {skeleton:_0x236c77}=_0x20a22f,{scene:_0x4318e9}=this[_0x43f3b0(0x33b)];_0x4318e9[_0x43f3b0(0x180)][_0x43f3b0(0x209)](a[_0x43f3b0(0x33a)](_0x351cf4=>{const _0x234319=_0x43f3b0;var _0x5191eb,_0x4c5980;const {offsetX:_0x5093b9,offsetY:_0x773ff3}=_0x351cf4,{x:_0x335430,y:_0x3175b6}=_0x4318e9[_0x234319(0x288)](p['Vector2'][_0x234319(0x3b9)]([_0x5093b9,_0x773ff3])),{scaleX:_0x205d3b,scaleY:_0x46596f}=_0x4318e9[_0x234319(0x325)](),_0x1c3677=_0x4318e9[_0x234319(0x1e4)](p[_0x234319(0x3db)][_0x234319(0x26e)]),_0x58d4f8=_0x4318e9['getVpScrollXYInfoByPosToVp'](p[_0x234319(0x17c)][_0x234319(0x3b9)]([_0x335430,_0x3175b6]),_0x1c3677),_0x39c605=_0x236c77['getCellPositionByOffset'](_0x5093b9,_0x773ff3,_0x205d3b,_0x46596f,_0x58d4f8);((_0x5191eb=this[_0x234319(0x35e)])==null?void 0x0:_0x5191eb['column'])===_0x39c605[_0x234319(0x264)]&&((_0x4c5980=this[_0x234319(0x35e)])==null?void 0x0:_0x4c5980[_0x234319(0x210)])===_0x39c605[_0x234319(0x210)]||this['_cursors']['forEach'](_0x246333=>{const _0x5998ba=_0x234319;_0x246333[_0x5998ba(0x194)](_0x39c605);});},0x64));});}[_0xbd72b5(0x3fc)](_0x52dc60,_0x501c20){const _0x341313=_0xbd72b5;var _0x6c3aa9;const _0x2c175c=(_0x6c3aa9=this[_0x341313(0x3d5)][_0x341313(0x36d)]())==null?void 0x0:_0x6c3aa9['skeleton'];if(!_0x2c175c)return;const _0x5ce95c=this[_0x341313(0x274)]();if(!_0x5ce95c)return;this[_0x341313(0x382)]['forEach'](_0x22c12c=>{const _0x3c44f9=_0x341313;_0x22c12c[_0x3c44f9(0x286)]();});const {scene:_0x2005b1}=_0x5ce95c,_0x203419=Et(Array[_0x341313(0x20b)](_0x501c20[_0x341313(0x2b1)]()))[_0x341313(0x1de)](_0x47a532=>{const _0x23c22e=_0x341313,{color:_0xf3e76f,range:_0x9f7d1b,name:_0x2ffe95,selection:_0x38ae94,sheetID:_0x29b868}=_0x47a532,{startColumn:_0x5bf495,startRow:_0x419750,endColumn:_0xc7110b,endRow:_0x70b226}=_0x9f7d1b,_0x714fe1=X['getCoordByCell'](_0x419750,_0x5bf495,_0x2005b1,_0x2c175c),_0x4c133a=X[_0x23c22e(0x1d0)](_0x70b226,_0xc7110b,_0x2005b1,_0x2c175c),{columnHeaderHeightAndMarginTop:_0x42e855}=_0x2c175c,{startX:_0x366635,startY:_0xa4460e}=_0x714fe1,{endX:_0x2a217a,endY:_0x513788}=_0x4c133a,_0x1ee8f9=_0x2a217a-_0x366635,_0x1579d5=_0x513788-_0xa4460e,_0x3cebdc={'labelPosition':_0xa4460e-_0x42e855>=K?_0x23c22e(0x39c):_0x23c22e(0x1ce),'sheetID':_0x29b868,'range':_0x9f7d1b,'color':_0xf3e76f,'name':_0x2ffe95,'selection':_0x38ae94,'left':_0x366635,'top':_0xa4460e,'width':_0x1ee8f9,'height':_0x1579d5,'evented':!0x1,'zIndex':bt};return new Ae(_0x2ffe95,_0x3cebdc);});_0x2005b1[_0x341313(0x2cb)](_0x203419,gt),this[_0x341313(0x382)]=new Set(_0x203419);}[_0xbd72b5(0x37c)](){const _0x461b9e=_0xbd72b5;var _0x303b7a;(_0x303b7a=this['_cursors'])==null||_0x303b7a[_0x461b9e(0x276)](_0x468b31=>_0x468b31[_0x461b9e(0x32e)]());}[_0xbd72b5(0x274)](){const _0x200256=_0xbd72b5;return X['getSheetObject'](this[_0x200256(0x33b)][_0x200256(0x292)],this[_0x200256(0x33b)]);}};ve=pt([ae(0x1,a[_0xbd72b5(0x1d6)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x1e9)]))],ve);function Et(_0x18902e){const _0x3d2b33=_0xbd72b5,_0x5df69a=new Map();return _0x18902e[_0x3d2b33(0x276)](_0x4b3af3=>{const _0x3e65c8=_0x3d2b33;if(_0x5df69a[_0x3e65c8(0x3c8)](_0x4b3af3['selection'])){const _0x212e95=_0x5df69a[_0x3e65c8(0x206)](_0x4b3af3[_0x3e65c8(0x391)]);_0x212e95[_0x3e65c8(0x1dd)]+=',\x20'+_0x4b3af3[_0x3e65c8(0x1dd)];}else _0x5df69a['set'](_0x4b3af3[_0x3e65c8(0x391)],_0x4b3af3);}),Array[_0x3d2b33(0x20b)](_0x5df69a[_0x3d2b33(0x2b1)]());}var E=function(){const _0x120a18=_0xbd72b5;return E=Object['assign']||function(_0x434c81){const _0x231345=_0x4dae;for(var _0x340861,_0x5a9f68=0x1,_0x5b7a4a=arguments[_0x231345(0x1cf)];_0x5a9f68<_0x5b7a4a;_0x5a9f68++){_0x340861=arguments[_0x5a9f68];for(var _0x4f05fd in _0x340861)Object['prototype'][_0x231345(0x2e9)]['call'](_0x340861,_0x4f05fd)&&(_0x434c81[_0x4f05fd]=_0x340861[_0x4f05fd]);}return _0x434c81;},E[_0x120a18(0x1d5)](this,arguments);},Tt=function(_0x573f4d,_0x33c2dc){const _0xf5082d=_0xbd72b5;var _0x1b3f1e={};for(var _0x4c1196 in _0x573f4d)Object[_0xf5082d(0x1b0)][_0xf5082d(0x2e9)][_0xf5082d(0x392)](_0x573f4d,_0x4c1196)&&_0x33c2dc[_0xf5082d(0x1c8)](_0x4c1196)<0x0&&(_0x1b3f1e[_0x4c1196]=_0x573f4d[_0x4c1196]);if(_0x573f4d!=null&&typeof Object[_0xf5082d(0x1ed)]==_0xf5082d(0x272)){for(var _0x4f86e9=0x0,_0x4c1196=Object[_0xf5082d(0x1ed)](_0x573f4d);_0x4f86e9<_0x4c1196[_0xf5082d(0x1cf)];_0x4f86e9++)_0x33c2dc[_0xf5082d(0x1c8)](_0x4c1196[_0x4f86e9])<0x0&&Object[_0xf5082d(0x1b0)][_0xf5082d(0x19b)]['call'](_0x573f4d,_0x4c1196[_0x4f86e9])&&(_0x1b3f1e[_0x4c1196[_0x4f86e9]]=_0x573f4d[_0x4c1196[_0x4f86e9]]);}return _0x1b3f1e;},pe=M['forwardRef'](function(_0x212ef7,_0x4c7b1c){const _0x5459bb=_0xbd72b5;var _0x209ca8=_0x212ef7[_0x5459bb(0x34e)],_0x556c98=_0x212ef7['id'],_0x27b6f7=_0x212ef7[_0x5459bb(0x2ba)],_0x31e485=_0x212ef7['extend'],_0x36444e=Tt(_0x212ef7,[_0x5459bb(0x34e),'id','className',_0x5459bb(0x20f)]),_0x3f23ad=_0x5459bb(0x3d7)[_0x5459bb(0x394)](_0x556c98,'\x20')[_0x5459bb(0x394)](_0x27b6f7||'')[_0x5459bb(0x379)](),_0x2381dd=M['useRef']('_'[_0x5459bb(0x394)](Dt()));return we(_0x209ca8,''[_0x5459bb(0x394)](_0x556c98),{'defIds':_0x209ca8['defIds'],'idSuffix':_0x2381dd[_0x5459bb(0x266)]},E({'ref':_0x4c7b1c,'className':_0x3f23ad},_0x36444e),_0x31e485);});function we(_0x26c4a7,_0xf7b250,_0x172c45,_0x4b991e,_0x2520ca){const _0x14d71f=_0xbd72b5;return M[_0x14d71f(0x208)](_0x26c4a7['tag'],E(E({'key':_0xf7b250},Ot(_0x26c4a7,_0x172c45,_0x2520ca)),_0x4b991e),(Rt(_0x26c4a7,_0x172c45)[_0x14d71f(0x313)]||[])[_0x14d71f(0x1de)](function(_0x146967,_0x4589be){const _0x40871e=_0x14d71f;return we(_0x146967,''[_0x40871e(0x394)](_0xf7b250,'-')[_0x40871e(0x394)](_0x26c4a7[_0x40871e(0x3e2)],'-')[_0x40871e(0x394)](_0x4589be),_0x172c45,void 0x0,_0x2520ca);}));}function Ot(_0x3d4a1a,_0x5b12d1,_0x2ad590){const _0x31c82b=_0xbd72b5;var _0xca343=E({},_0x3d4a1a[_0x31c82b(0x356)]);_0x2ad590!=null&&_0x2ad590[_0x31c82b(0x1d8)]&&_0xca343['fill']===_0x31c82b(0x1d8)&&(_0xca343[_0x31c82b(0x403)]=_0x2ad590[_0x31c82b(0x1d8)]),_0x3d4a1a[_0x31c82b(0x3e2)]===_0x31c82b(0x2dd)&&_0xca343['id']&&(_0xca343['id']=_0xca343['id']+_0x5b12d1['idSuffix']),Object[_0x31c82b(0x2bd)](_0xca343)[_0x31c82b(0x276)](function(_0x418125){const _0x1cc1ab=_0x31c82b;var _0x296683=_0x418125[0x0],_0x571be8=_0x418125[0x1];_0x296683===_0x1cc1ab(0x2dd)&&typeof _0x571be8==_0x1cc1ab(0x2ce)&&(_0xca343[_0x296683]=_0x571be8[_0x1cc1ab(0x3b4)](/url\(#(.*)\)/,'url(#$1'[_0x1cc1ab(0x394)](_0x5b12d1[_0x1cc1ab(0x3a3)],')')));});var _0x431888=_0x5b12d1[_0x31c82b(0x260)];return!_0x431888||_0x431888[_0x31c82b(0x1cf)]===0x0||(_0x3d4a1a[_0x31c82b(0x3e2)]===_0x31c82b(0x187)&&_0xca343[_0x31c82b(0x22d)]&&(_0xca343[_0x31c82b(0x22d)]=_0xca343[_0x31c82b(0x22d)]+_0x5b12d1[_0x31c82b(0x3a3)]),Object[_0x31c82b(0x2bd)](_0xca343)[_0x31c82b(0x276)](function(_0xe83910){const _0x2586e1=_0x31c82b;var _0x235a80=_0xe83910[0x0],_0x25b2d6=_0xe83910[0x1];typeof _0x25b2d6=='string'&&(_0xca343[_0x235a80]=_0x25b2d6[_0x2586e1(0x3b4)](/url\(#(.*)\)/,_0x2586e1(0x301)[_0x2586e1(0x394)](_0x5b12d1[_0x2586e1(0x3a3)],')')));})),_0xca343;}function Rt(_0x42b042,_0x10ac38){const _0x653a2d=_0xbd72b5;var _0x2cc150,_0x23b65d=_0x10ac38[_0x653a2d(0x260)];return!_0x23b65d||_0x23b65d[_0x653a2d(0x1cf)]===0x0?_0x42b042:_0x42b042[_0x653a2d(0x3e2)]===_0x653a2d(0x176)&&(!((_0x2cc150=_0x42b042['children'])===null||_0x2cc150===void 0x0)&&_0x2cc150[_0x653a2d(0x1cf)])?E(E({},_0x42b042),{'children':_0x42b042[_0x653a2d(0x313)]['map'](function(_0x4dca02){const _0x512d4f=_0x653a2d;return typeof _0x4dca02[_0x512d4f(0x356)]['id']==_0x512d4f(0x2ce)&&_0x23b65d&&_0x23b65d[_0x512d4f(0x1c8)](_0x4dca02[_0x512d4f(0x356)]['id'])>-0x1?E(E({},_0x4dca02),{'attrs':E(E({},_0x4dca02[_0x512d4f(0x356)]),{'id':_0x4dca02[_0x512d4f(0x356)]['id']+_0x10ac38['idSuffix']})}):_0x4dca02;})}):_0x42b042;}function Dt(){const _0x5275f9=_0xbd72b5;return Math[_0x5275f9(0x3ad)]()[_0x5275f9(0x352)](0x24)[_0x5275f9(0x249)](0x2,0x8);}pe[_0xbd72b5(0x17d)]=_0xbd72b5(0x374);var Ut={'tag':_0xbd72b5(0x262),'attrs':{'fill':_0xbd72b5(0x215),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0xbd72b5(0x197)},'children':[{'tag':'g','attrs':{'clipPath':_0xbd72b5(0x1b4)},'children':[{'tag':_0xbd72b5(0x337),'attrs':{'stroke':_0xbd72b5(0x295),'d':_0xbd72b5(0x3cd),'strokeLinecap':_0xbd72b5(0x27c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xbd72b5(0x176),'attrs':{},'children':[{'tag':_0xbd72b5(0x1e3),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0xbd72b5(0x337),'attrs':{'fill':'#fff','d':_0xbd72b5(0x3c6)}}]}]}],'defIds':[_0xbd72b5(0x321)]},ye=M[_0xbd72b5(0x31a)](function(_0x37738a,_0x14f08d){const _0x5691d2=_0xbd72b5;return M[_0x5691d2(0x208)](pe,Object[_0x5691d2(0x2ff)]({},_0x37738a,{'id':'off-line-single','ref':_0x14f08d,'icon':Ut}));});ye[_0xbd72b5(0x17d)]='OffLineSingle';var Nt={'tag':_0xbd72b5(0x262),'attrs':{'fill':_0xbd72b5(0x215),'viewBox':_0xbd72b5(0x2ee),'width':_0xbd72b5(0x197),'height':_0xbd72b5(0x197)},'children':[{'tag':'g','attrs':{'clipPath':_0xbd72b5(0x37e)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','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':_0xbd72b5(0x27c),'strokeLinejoin':_0xbd72b5(0x27c),'strokeWidth':1.2}}]},{'tag':_0xbd72b5(0x176),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xbd72b5(0x21d)},'children':[{'tag':_0xbd72b5(0x337),'attrs':{'fill':_0xbd72b5(0x3b7),'d':_0xbd72b5(0x3c6),'transform':_0xbd72b5(0x328)}}]}]}],'defIds':[_0xbd72b5(0x21d)]},$e=M[_0xbd72b5(0x31a)](function(_0x35dce7,_0x18d6ff){const _0x4c7e64=_0xbd72b5;return M[_0x4c7e64(0x208)](pe,Object[_0x4c7e64(0x2ff)]({},_0x35dce7,{'id':_0x4c7e64(0x250),'ref':_0x18d6ff,'icon':Nt}));});$e['displayName']=_0xbd72b5(0x3f8);function Mt(_0x304872){const _0x17f7f7=_0xbd72b5;switch(_0x304872){case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x3dd)]:return _0x17f7f7(0x2b5);case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x25a)]:return'collabStatus.conflict';case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x243)]:return _0x17f7f7(0x378);case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x184)]:return _0x17f7f7(0x199);case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x234)]:case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x3da)]:return'collabStatus.syncing';case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x38f)]:case u[_0x17f7f7(0x1a1)]['PENDING']:return _0x17f7f7(0x32c);}}function xe(_0x57aae4){const _0x2d1701=_0xbd72b5,{status$:_0x15b058}=_0x57aae4,_0x4690b0=T[_0x2d1701(0x1ff)](_0x15b058,u[_0x2d1701(0x1a1)]['NOT_COLLAB']),_0x58a989=T['useDependency'](a['LocaleService']),_0x181feb=T['useDependency'](u[_0x2d1701(0x307)]),_0x98b7e1=_0x4690b0!==u[_0x2d1701(0x1a1)][_0x2d1701(0x3dd)],_0x2a3f5b=_0x58a989['t'](Mt(_0x4690b0)),_0x74fb7a=_0x98b7e1?P[_0x2d1701(0x388)]($e,{}):P[_0x2d1701(0x388)](ye,{}),_0x56ce1e=M[_0x2d1701(0x31c)](()=>{const _0x5836b4=_0x2d1701;_0x98b7e1||_0x181feb[_0x5836b4(0x2a1)]();},[_0x98b7e1,_0x181feb]);function _0x154f04(){const _0x1646a4=_0x2d1701;return P[_0x1646a4(0x189)](_0x1646a4(0x2c3),{'className':_0x1646a4(0x23e),'onClick':_0x56ce1e,'children':[P[_0x1646a4(0x388)](_0x1646a4(0x2c3),{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x98b7e1,'univer-text-red-500':!_0x98b7e1}),'children':_0x74fb7a}),P[_0x1646a4(0x388)](_0x1646a4(0x2c3),{'className':_0x1646a4(0x384),'children':_0x2a3f5b})]});}return _0x98b7e1?_0x154f04():P[_0x2d1701(0x388)](D['Tooltip'],{'title':_0x58a989['t'](_0x2d1701(0x242)),'children':_0x154f04()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x28ccbf,_0x465938,_0x166a57,_0x13f29d)=>{for(var _0xad1b0d=_0x13f29d>0x1?void 0x0:_0x13f29d?Lt(_0x465938,_0x166a57):_0x465938,_0x1c85f3=_0x28ccbf['length']-0x1,_0x2b61d9;_0x1c85f3>=0x0;_0x1c85f3--)(_0x2b61d9=_0x28ccbf[_0x1c85f3])&&(_0xad1b0d=_0x2b61d9(_0xad1b0d)||_0xad1b0d);return _0xad1b0d;},V=(_0x353d6e,_0x489411)=>(_0x59baa8,_0x5655fa)=>_0x489411(_0x59baa8,_0x5655fa,_0x353d6e);exports[_0xbd72b5(0x3fa)]=class extends a[_0xbd72b5(0x1b7)]{constructor(_0x5b6274,_0x31cc5d,_0x1bdaa9,_0x3b5a57){const _0x6f7e03=_0xbd72b5;super(),h(this,_0x6f7e03(0x3bc),new d['BehaviorSubject'](u[_0x6f7e03(0x1a1)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x5b6274,this[_0x6f7e03(0x207)]=_0x31cc5d,this['_collaborationController']=_0x1bdaa9,this['_uiPartsService']=_0x3b5a57,this[_0x6f7e03(0x23f)](),this[_0x6f7e03(0x3c4)]());}[_0xbd72b5(0x3c4)](){const _0x11a000=_0xbd72b5;this[_0x11a000(0x323)](this[_0x11a000(0x224)][_0x11a000(0x218)]['pipe'](d[_0x11a000(0x353)](()=>{const _0xbf1857=_0x11a000,_0x28b51c=this[_0xbf1857(0x224)][_0xbf1857(0x397)]();return _0x28b51c?this['_collaborationController'][_0xbf1857(0x2e6)](_0x28b51c[_0xbf1857(0x1e1)]()):d['of'](null);}),d['switchMap'](_0x63fce0=>_0x63fce0?_0x63fce0['status$']:d['of'](u['CollaborationStatus'][_0x11a000(0x184)])))['subscribe'](_0x3a2ff9=>{const _0x482852=_0x11a000;this['_status$'][_0x482852(0x2ad)](_0x3a2ff9);}));}[_0xbd72b5(0x23f)](){const _0x17e0c1=_0xbd72b5;this[_0x17e0c1(0x323)](this[_0x17e0c1(0x1ba)][_0x17e0c1(0x3b8)](T[_0x17e0c1(0x22e)][_0x17e0c1(0x23c)],()=>T['connectInjector'](At({'status$':this[_0x17e0c1(0x3bc)][_0x17e0c1(0x30a)]()}),this[_0x17e0c1(0x207)])));}},exports[_0xbd72b5(0x3fa)]=Pt([V(0x0,a[_0xbd72b5(0x3e7)]),V(0x1,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),V(0x2,a[_0xbd72b5(0x1d6)](u[_0xbd72b5(0x335)])),V(0x3,T['IUIPartsService'])],exports[_0xbd72b5(0x3fa)]);function At(_0x25835d){const {status$:_0x41d9d2}=_0x25835d;return function(){const _0x3ed237=_0x4dae;return P[_0x3ed237(0x388)](xe,{'status$':_0x41d9d2});};}var wt=Object[_0xbd72b5(0x402)],yt=(_0x3919bd,_0x108394,_0x18ceff,_0x5404c3)=>{for(var _0x1d3689=_0x5404c3>0x1?void 0x0:_0x5404c3?wt(_0x108394,_0x18ceff):_0x108394,_0x2fd311=_0x3919bd['length']-0x1,_0x1cd51d;_0x2fd311>=0x0;_0x2fd311--)(_0x1cd51d=_0x3919bd[_0x2fd311])&&(_0x1d3689=_0x1cd51d(_0x1d3689)||_0x1d3689);return _0x1d3689;},y=(_0x2d9898,_0x282748)=>(_0x2ed767,_0x54dd88)=>_0x282748(_0x2ed767,_0x54dd88,_0x2d9898);let q=class extends a['Disposable']{constructor(_0x96815d,_0x15132f,_0x4c46fa,_0x56a7ea,_0x5d7663,_0x14abfc){const _0x317ddc=_0xbd72b5;super(),this[_0x317ddc(0x282)]=_0x96815d,this['_localCacheService']=_0x15132f,this[_0x317ddc(0x344)]=_0x4c46fa,this[_0x317ddc(0x1b9)]=_0x56a7ea,this[_0x317ddc(0x1cb)]=_0x5d7663,this[_0x317ddc(0x3bf)]=_0x14abfc,this[_0x317ddc(0x293)](),this[_0x317ddc(0x28c)]();}[_0xbd72b5(0x293)](){const _0x2a9201=_0xbd72b5;this[_0x2a9201(0x323)](this[_0x2a9201(0x282)][_0x2a9201(0x362)](()=>{const _0x44d3c6=_0x2a9201;if(this[_0x44d3c6(0x2e1)][_0x44d3c6(0x289)][_0x44d3c6(0x2c9)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0xbd72b5(0x28c)](){const _0xdafa9a=_0xbd72b5;this[_0xdafa9a(0x323)](this[_0xdafa9a(0x344)][_0xdafa9a(0x3cf)]['subscribe'](_0x39ee0d=>{const _0x1348b1=_0xdafa9a;_0x39ee0d['id']===u[_0x1348b1(0x36c)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x1348b1(0x17b)]({'type':D['MessageType'][_0x1348b1(0x3df)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x39ee0d['id']===u[_0x1348b1(0x36c)][_0x1348b1(0x319)]&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x1348b1(0x25d))}),_0x39ee0d['id']===u[_0x1348b1(0x36c)]['PERMISSION_DENIED']&&this[_0x1348b1(0x1cb)][_0x1348b1(0x17b)]({'title':this['_localeService']['t'](_0x1348b1(0x35b)),'content':this['_localeService']['t'](_0x1348b1(0x261)),'type':_0x1348b1(0x3ca),'duration':0x0}),_0x39ee0d['id']===u[_0x1348b1(0x36c)][_0x1348b1(0x25a)]&&this['_messageService']['show']({'type':D[_0x1348b1(0x3c9)][_0x1348b1(0x3d3)],'content':this[_0x1348b1(0x3bf)]['t'](_0x1348b1(0x25d))+'('+_0x39ee0d[_0x1348b1(0x2b9)]+')'}),_0x39ee0d['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x1348b1(0x1b9)]['show']({'type':D[_0x1348b1(0x3c9)]['Warning'],'content':this[_0x1348b1(0x3bf)]['t'](_0x39ee0d[_0x1348b1(0x2b9)]||'')}),_0x39ee0d['id']===u['CollaborationUIEventId'][_0x1348b1(0x1ab)]&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x1348b1(0x1f9))}),_0x39ee0d['id']===u[_0x1348b1(0x36c)][_0x1348b1(0x393)]&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D[_0x1348b1(0x3c9)][_0x1348b1(0x3d3)],'content':this[_0x1348b1(0x3bf)]['t'](_0x1348b1(0x38d))}),_0x39ee0d['id']===u[_0x1348b1(0x36c)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D[_0x1348b1(0x3c9)][_0x1348b1(0x3d3)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0xbd72b5(0x376)]),y(0x1,u[_0xbd72b5(0x22f)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,T[_0xbd72b5(0x2f8)]),y(0x4,T[_0xbd72b5(0x1fd)]),y(0x5,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x226)]))],q);const $t=_0xbd72b5(0x369),Ue={},be=a[_0xbd72b5(0x386)](_0xbd72b5(0x1fe));function _0x3f5d(){const _0xf06ba5=['_configService','_cursorInfo$','_updateURLWithCurrentState','DisposableCollection','runRefRangeMutations','HEADER_MENU','setAlpha','univer-flex\x20univer-items-center','_initStatusComponent','_document','MemberService','collab-client.tooltip.reconnect','FETCH_MISS','ILocalStorageService','setConfig','186613qUvmoJ','_scheduleClearOtherTimer','_collabSessionService','substring','IConfigService','_memberService','href','symbol','handleIRemoveCol','getCollabCursors$','on-line-single','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getItem','DocIMEInputManagerService','UPDATE_CURSOR','DocCollaborationEntity','_onRefRangeChange','BehaviorSubject','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','WebBrowserSingleActiveUnitService','CONFLICT','ITransformService','_updateSubUnitFromURLParams','collaboration.closeRoom','ranges','hide','defIds','permission.content','svg','undoState','column','_drawRectRange','current','cursorInfo$','ALREADY_EXISTS','_online','getOffsetConfig','#FFF','findNodePositionByCharIndex','textRanges','VIEW_MAIN','search','handleIRemoveRow','with','function','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_getSheetObject','getRangePointData','forEach','OTHER_CLIENTS_EDITING','fromEventSubject','USER_NOT_INVITED_CODE','setActiveRange','_saveCache','round','split','height','lineTo','disableLocalCache','_hover','_beforeCloseService','RxDisposable','getUnhiddenWorksheets','exhaustSavingTask','makeDirty','registerRenderModule','getRelativeToViewportCoord','saveTaskMap','transformMutation','_range','_initEvent','rgba(255,\x20255,\x20255,\x200.01)','_scene','isTransformMutationFailure','post','transform','unit','_setupBeforeClosingHandler','_toggleOnline','currentColor','getMergeData','CollaborationEvent','origin','_revisionService','shareReplay','CommandType','INVITE_CODE_REQUIRED','_commandService','_logService','jiqing.500','LOGIN_FAILED','reconnect','APPLY_DUPLICATED','TEXT_RANGE_LAYER_INDEX','sheetID','storage','black','getDocRanges','RevisionService','[CollaborationDataLoaderController]','react/jsx-runtime','editingUnit','_textBubble','next','_cachedData','getCurrentRevOfUnit','APPLY_REVISION_CONFILICT','values','_localStorageService','_getAnchorBounding','distinctUntilChanged','collabStatus.offline','_anchorDot','ColorKit','_handleHover','data','className','executeCommand','pushState','entries','12zONZsl','RemoteUniscriptService','_docStateChangeManagerService','_docSkeleton','UNIVER_SHEET','div','setItem','_assignedColors','range','unsubscribe','_initResize','size','Module','addObjects','actions','CollaborationDataLoaderController','string','wsSessionTicketUrl','transformMutationsWithChangeset','hovered','Unknown\x20user','createInstance','min','loadUnit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','eventID','complete','width','body','getColorFromTheme','DOC_RANGE_TYPE','mask','saveOfflineData','_docTransformIMECacheService','debug','_localCacheService','_labelPosition','getParam','_docClipboardService','key','getCollabEntity$','_colorIndex','activeSheet$','hasOwnProperty','green.600','getMember','invokeId','params','0\x200\x2017\x2016','_initDependencies','resize','unshift','setUndoRedoMutationParamsCache','MoveRangeCommandId','_initEntityListener','requireSession','getLocalCacheKey','push','IMessageService','getActiveRange','_imageIoService','YUUMI_AI_RUN_FAILED','_roomMembers$','clearTimeout','newValue','assign','_startDocCollabCursor','url(#$1','8784391DPTmZW','blue.400','EffectRefRangId','LOCAL_CACHE_INTERVAL','getSheetBySheetId','CollaborationSessionService','CHANGESET_REVISION_CONFILICT','INTERNAL_ERROR','asObservable','EMAIL_HAS_BEEN_BOUND','getTypeOfUnitDisposed$','SNAPSHOT_INVALID_SNAPSHOT','source','m2Prime','takeUntil','getConfig','YUUMI_ALL_TABLES_IS_INVALID','children','WECHAT_HAS_BEEN_BOUND','DEFAULT_WS_SESSION_TICKET_URL','measureText','setInterval','SetSelectionsOperation','CLOSE_ROOM','forwardRef','drawWith','useCallback','deserializeRangeWithSheet','getSheetId','flatMap','_heartbeatTimer','off-line-single_clip0_910_343','toStringTag','disposeWithMe','history','getAncestorScale','evenodd','onPointerLeave$','translate(.97)','color','_updateLocalCursor','toRgbString','collabStatus.synced','onLocalMutation','dispose','Tools','_entities','@univerjs/engine-render','rxjs/operators','purple.300','543870FJravT','CollaborationController','UNRECOGNIZED','path','Injector','@univerjs/sheets-ui','debounce','_context','syncEditingCollabCursor','getUnitStatus$','_eventUnsubscribe','sessionTicket','DeleteRangeMoveUpCommandId','1317316VYvsRJ','Subject','LICENSE_EXPORT_SIZE_EXCEEDED','_collaborationUIEventService','addHandlerCallback','fillStyle','unload','IRemoteInstanceService','10768336NLuDEs','_onCursorUpdate','searchParams','then','HTTPService','icon','_disabled','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_urlService','toString','switchMap','Rect','restore','attrs','setTimeout','_name','_docTransformStateCacheService','getCurrentUnitForType','permission.title','assignAColorForMemberID','DeleteRangeMoveLeftCommandId','_lastPointer','collab-text-anchor-','ILogService','_docSyncEditingCollabCursorService','registerBeforeClose','text','UNAUTHENTICATED','getTypeOfUnitAdded$','engine','_getSaveTimeout','YUUMI_RATE_OVER_LIMIT','collaboration-client-ui.config','getUniverSheetInstance','_collaborationController','CollaborationUIEventId','getCurrent','_docSkeletonManagerService','imageSourceType','parse','Optional','SheetsSelectionsService','_doCreateSocket','UniverIcon','throttleTime','IBeforeCloseService','defineProperty','collabStatus.fetchMiss','trim','RECT','_cursorShapes','_removeCollabCursors','ISnapshotServerService','url(#on-line-single_clip0_910_349)','_onCursorDelete','USERS_LEAVE','subunit','_cursors','handleInsertRangeMoveDown','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','toDisposable','createIdentifier','576579akDiPY','jsx','DocSelectionManagerService','YUUMI_URL_COL_OUT_OF_RANGE','UnitStatus','collabCursorState$','session.connection-failed','handleDeleteRangeMoveUp','SYNCED','_getScale','selection','call','SOCKET_FAILED','concat','onTransformChange$','ticket','getFocusedUnit','_themeService','_transformUndoRedoStack','_handleEvent','RegularPolygon','top','...','_transformHistoryAndStateStack','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','onStarting','cursorInfo','mergeOverrideWithDependencies','idSuffix','NO_OTHER_CLIENTS_EDITING','getStateCache','_httpService','_backgroundColor','max','_id','_syncEditingCollabCursorService','fillText','_unitOnClients','random','_scheduleSaving','_registerDependencies','_instanceService','redoState','triggerDblclick','Failed','replace','LICENSE_DISTRO_REJECTED','_collabCursorState$','#fff','registerComponent','FromArray','115rVZuEQ','transformStateCache','_status$','_getMergeRange','getMemberID','_localeService','saveImage','init','getValue','NOT_FOUND','_initStatusListener','SheetCollabCursorShape','M0\x200H16V16H0z','set','has','MessageType','error','contains','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','@univerjs/ui','event$','getRenderById','CollaborationSocketService','9bBErXg','Error','sessionStatus$','_sheetSkeletonManagerService','debounceTime','univerjs-icon\x20univerjs-icon-','getColor','ISocketService','AWAITING_WITH_PENDING','SHEET_VIEWPORT_KEY','INVITE_CODE_HAS_BEEN_UES','OFFLINE','INVALID_ARGUMENT','Warning','clearInterval','transformIMECache','tag','_drawAnchor','executionId','_registerRenderDependencies','transformByState','IUniverInstanceService','PY_RUNTIME_SCRIPT_ERROR','_anchor','ICommandService','onCommandExecuted','docStateChange$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_session','ACTIVE_UNIT_EVENT_CHANNEL','_send','urlChange$','pluginName','@univerjs/drawing','LICENSE_IMPORT_SIZE_EXCEEDED','APPLY_NON_SEQUENTIAL_REVISION','CONNECTOR_DATA_TOO_LARGE','combineLatest','OnLineSingle','COMPLETION_FINISHED','DesktopCollaborationStatusDisplayController','Shape','_updateCollabCursors','_dataLoaderService','_entityInit$','setShapeProps','save','DependentOn','getOwnPropertyDescriptor','fill','m1Prime','defs','replaceState','UNDEFINED','handleInsertRow','_collabCursorController','show','Vector2','displayName','_handleLeaveEvent','roomMembers$','onPointerMove$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COLORS','runId','NOT_COLLAB','registerDependencies','_unitStatus','use','_colorAssignService','jsxs','registerRefRange','ENSURE_SNAPSHOT_EXECUTION','enableLocalCache','_initCommandExecutedListener','@univerjs/engine-formula','isActive','setStateCache','_hovered','collab-rect-range-','arc','onMouseMove','disposeUnit','_createSocketURL','1em','INVITE_CODE_ALREADY_BOUND','collabStatus.notCollab','ONLINE','propertyIsEnumerable','getSkeleton','SessionStatus','693OIpxgt','IRenderManagerService','@univerjs-pro/collaboration-client','CollaborationStatus','dispose$','roomMembers','_draw','_selfUnitIDs','handleInsertRangeMoveRight','createSocket','_transformPreviousActiveRange','_ensureSubject','YUUMI_ASYNCIO_CANCELLED','SOCKET_FAILED_RETRY','getCurrentSelections','_removeClearOtherTimer','SNAPSHOT_HAS_BEEN_REMOVED','deepClone','prototype','mutations','serializeRangeWithSheet','YUUMI_NO_CUBOID_FOR_QUESTION','url(#off-line-single_clip0_910_343)','@univerjs/core','isArray','Disposable','_cursor','_messageService','_uiPartsService','TOO_MANY_REQUESTS','merge','PERMISSION_DENIED','_config','location','addObject','_drawTextRange','YUUMI_UNABLE_LOAD_URL','_color','addClipboardHook','_handleHeartbeatEvent','Workbook','transformRemoteChangeset','indexOf','_init','fromEvent','_notificationService','RichTextEditingMutation','TEXT','bottom','length','getCoordByCell','INVALID_INVITE_CODE','filter','handleMoveRange','react','apply','Inject','APPLY_REJECT','colorChannel1','MOBILE_HAS_BEEN_BOUND','generateRandomId','pipe','_getSessionTicket','name','map','addEventListener','InsertRangeMoveDownCommandId','getUnitId','transformSelections','clipPath','getViewport','add','IDocClipboardService','yellow.400','rxjs','ThemeService','UniverCollaborationClientUIPlugin','some','getUndoRedoMutationParamsCache','getOwnPropertySymbols','_clearOtherTimers','popstate','_setupSubUnitSync','handleInsertCol','APPLY_PERMISSION_DENIED','DocSkeletonManagerService','unitId','_saveTaskMap','onPointerEnter$','isTransformMutationsWithChangesetSuccess','_docTransformSelectionsService','session.will-retry','type','BrowserCollaborationSocketService','subscribe','INotificationService','uni.network.url-service','useObservable','delete','_hideTimer','backgroundColor','_transformService','IImageIoService','all','get','_injector','createElement','subscribeEvent','fillRule','from','SetTextSelectionsOperation','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SetDocZoomRatioOperation','extend','row','UNIVER_DOC','/run/','onRendered','includes','none','UniverInstanceType','code','focused$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_renderManagerService','143106WrSsvZ','send','on-line-single_clip0_910_349','InsertColCommandId','_toggleOffline','setParam','IURLService','touchDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','_univerInstanceService','subUnitId','LocaleService','doc.mutation.rich-text-editing','RemoveColCommandId','DataLoaderService','stringify','unitID','currentSkeleton$','xlink:href','BuiltInUIPart','ILocalCacheService','_scheduleHeartbeat','_startSheetCollabCursor','_refRangeService','_handleJoinEvent','AWAITING','getActiveSheet','_shapes'];_0x3f5d=function(){return _0xf06ba5;};return _0x3f5d();}var xt=Object[_0xbd72b5(0x402)],jt=(_0x277767,_0x4d342a,_0x20c90b,_0x1b50fa)=>{const _0x3942e1=_0xbd72b5;for(var _0x253cea=_0x1b50fa>0x1?void 0x0:_0x1b50fa?xt(_0x4d342a,_0x20c90b):_0x4d342a,_0x3543b5=_0x277767[_0x3942e1(0x1cf)]-0x1,_0x3db2d2;_0x3543b5>=0x0;_0x3543b5--)(_0x3db2d2=_0x277767[_0x3543b5])&&(_0x253cea=_0x3db2d2(_0x253cea)||_0x253cea);return _0x253cea;},H=(_0x170dd3,_0x457358)=>(_0x3641cd,_0x235d2e)=>_0x457358(_0x3641cd,_0x235d2e,_0x170dd3);exports['CollaborationDataLoaderController']=class extends a[_0xbd72b5(0x283)]{constructor(_0x543940,_0x561f71,_0xd1575c,_0x15621f,_0x50534d){const _0x38ff08=_0xbd72b5;super(),this[_0x38ff08(0x351)]=_0x543940,this[_0x38ff08(0x29e)]=_0x561f71,this['_commandService']=_0xd1575c,this[_0x38ff08(0x3fd)]=_0x15621f,_0x50534d?_0x50534d==null||_0x50534d['whenReady']()[_0x38ff08(0x34c)](()=>this['_init']()):(this[_0x38ff08(0x29e)]['debug'](_0x38ff08(0x2a9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0xbd72b5(0x1c9)](){const _0x342a06=_0xbd72b5,_0x13e363=this['_urlService'][_0x342a06(0x2e3)]('unit'),_0x4c6037=this[_0x342a06(0x351)][_0x342a06(0x2e3)](_0x342a06(0x1fa)),_0x5161d3=this[_0x342a06(0x351)][_0x342a06(0x2e3)](_0x342a06(0x381));if(!_0x13e363||!_0x4c6037){this[_0x342a06(0x29e)][_0x342a06(0x2e0)](_0x342a06(0x2a9),_0x342a06(0x181));return;}const _0x5ca0a5=await this['_dataLoaderService'][_0x342a06(0x2d5)](_0x13e363,Number(_0x4c6037),_0x5161d3);_0x5ca0a5&&_0x5ca0a5 instanceof a[_0x342a06(0x1c6)]&&this[_0x342a06(0x1f0)](_0x5ca0a5);}async[_0xbd72b5(0x1f0)](_0x2de546){const _0x3f0e13=_0xbd72b5;await this['_updateSubUnitFromURLParams'](_0x2de546),_0x2de546[_0x3f0e13(0x2e8)][_0x3f0e13(0x1db)](d[_0x3f0e13(0x310)](this[_0x3f0e13(0x1a2)]))[_0x3f0e13(0x1fc)](_0x1a602e=>{const _0x22dffa=_0x3f0e13;_0x1a602e&&this[_0x22dffa(0x239)](_0x1a602e);}),this[_0x3f0e13(0x351)][_0x3f0e13(0x3f1)][_0x3f0e13(0x1db)](d[_0x3f0e13(0x310)](this[_0x3f0e13(0x1a2)]))['subscribe'](()=>this[_0x3f0e13(0x25c)](_0x2de546));}['_updateURLWithCurrentState'](_0x2b109b,_0x6685c4=!0x1){const _0x2977eb=_0xbd72b5,_0x5a4d97=this['_urlService'][_0x2977eb(0x2e3)]('subunit');_0x2b109b[_0x2977eb(0x31e)]()!==_0x5a4d97&&this[_0x2977eb(0x351)][_0x2977eb(0x220)](_0x2977eb(0x381),_0x2b109b['getSheetId'](),_0x6685c4);}async['_updateSubUnitFromURLParams'](_0xd16c70){const _0x3f07a0=_0xbd72b5;var _0x2db716;const _0x5bb7a1=this[_0x3f07a0(0x351)][_0x3f07a0(0x2e3)](_0x3f07a0(0x381));if(!_0x5bb7a1||!_0xd16c70[_0x3f07a0(0x306)](_0x5bb7a1)){const _0x314f1e=_0xd16c70[_0x3f07a0(0x284)]()[0x0],_0x49a235=_0xd16c70[_0x3f07a0(0x306)](_0x314f1e);if(!_0x49a235)return;this[_0x3f07a0(0x239)](_0x49a235,!0x0),await this[_0x3f07a0(0x29d)][_0x3f07a0(0x2bb)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0xd16c70['getUnitId'](),'subUnitId':_0x314f1e});return;}((_0x2db716=_0xd16c70[_0x3f07a0(0x235)]())==null?void 0x0:_0x2db716[_0x3f07a0(0x31e)]())!==_0x5bb7a1&&await this['_commandService'][_0x3f07a0(0x2bb)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0xd16c70[_0x3f07a0(0x1e1)](),'subUnitId':_0x5bb7a1});}},exports[_0xbd72b5(0x2cd)]=jt([H(0x0,be),H(0x1,a[_0xbd72b5(0x360)]),H(0x2,a[_0xbd72b5(0x3ea)]),H(0x3,a[_0xbd72b5(0x1d6)](u[_0xbd72b5(0x229)])),H(0x4,a[_0xbd72b5(0x371)](Ke[_0xbd72b5(0x348)]))],exports[_0xbd72b5(0x2cd)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x4cede9,_0x3f3c89,_0x701cc0,_0x4dfab1)=>{for(var _0x56485b=_0x4dfab1>0x1?void 0x0:_0x4dfab1?Bt(_0x3f3c89,_0x701cc0):_0x3f3c89,_0x2e509c=_0x4cede9['length']-0x1,_0x3d0480;_0x2e509c>=0x0;_0x2e509c--)(_0x3d0480=_0x4cede9[_0x2e509c])&&(_0x56485b=_0x3d0480(_0x56485b)||_0x56485b);return _0x56485b;},ce=(_0x966325,_0x31a0df)=>(_0x24a56f,_0x495272)=>_0x31a0df(_0x24a56f,_0x495272,_0x966325);let z=class{constructor(_0x5d7fa7,_0x217f9d,_0x21b08d){const _0x4dc4ae=_0xbd72b5;this[_0x4dc4ae(0x207)]=_0x5d7fa7,this[_0x4dc4ae(0x203)]=_0x217f9d,this[_0x4dc4ae(0x21a)]=_0x21b08d;}['transformIMECache'](_0x50cc6b){const _0x424e78=_0xbd72b5;this[_0x424e78(0x399)](_0x50cc6b),this[_0x424e78(0x1a8)](_0x50cc6b);}[_0xbd72b5(0x1c7)](_0x40b648){const _0x525ba0=_0xbd72b5,{unitID:_0x45caa9}=_0x40b648,_0x53b2c7=this['_renderManagerService'][_0x525ba0(0x3d0)](_0x45caa9)[_0x525ba0(0x271)](b[_0x525ba0(0x253)]),{redoCache:_0x2667f9}=_0x53b2c7[_0x525ba0(0x1ec)]();if(_0x2667f9['length']===0x0)return _0x40b648;let _0x214be3=a[_0x525ba0(0x32f)][_0x525ba0(0x1af)](_0x40b648['mutations'][0x0]);for(let _0x19922a=0x0;_0x19922a<_0x2667f9[_0x525ba0(0x1cf)];_0x19922a++){const _0x26f0a6={'id':'doc.mutation.rich-text-editing','params':{..._0x2667f9[_0x19922a]}},_0x53db24=this['_transformService'][_0x525ba0(0x28a)](_0x214be3,_0x26f0a6,!0x1);if(m['isTransformMutationFailure'](_0x53db24))throw _0x53db24['error'];_0x214be3=_0x53db24['m1Prime'];}return{...a[_0x525ba0(0x32f)][_0x525ba0(0x1af)](_0x40b648),'mutations':[_0x214be3]};}[_0xbd72b5(0x399)](_0x3828c7){const _0x573043=_0xbd72b5,{unitID:_0x33ca92}=_0x3828c7,_0x3c7934=this['_renderManagerService'][_0x573043(0x3d0)](_0x33ca92)[_0x573043(0x271)](b[_0x573043(0x253)]),{undoCache:_0x1bf235,redoCache:_0x5ce001}=_0x3c7934[_0x573043(0x1ec)]();if(_0x1bf235[_0x573043(0x1cf)]===0x0||_0x5ce001['length']===0x0)return;const _0x2fce16=[],_0x1cfb64=[];let _0x127a05=a[_0x573043(0x32f)][_0x573043(0x1af)](_0x3828c7[_0x573043(0x1b1)][0x0]),_0x41dfa5=a[_0x573043(0x32f)]['deepClone'](_0x3828c7[_0x573043(0x1b1)][0x0]);for(let _0x327cf5=_0x1bf235['length']-0x1;_0x327cf5>=0x0;_0x327cf5--){const _0x3cc870={'id':_0x573043(0x227),'params':{..._0x1bf235[_0x327cf5]}},_0x845769={'id':_0x573043(0x227),'params':{..._0x5ce001[_0x327cf5]}},_0x3d12d0=this['_transformService'][_0x573043(0x28a)](_0x127a05,_0x3cc870,!0x1),_0x459665=this[_0x573043(0x203)][_0x573043(0x28a)](_0x41dfa5,_0x845769,!0x1);if(m[_0x573043(0x28f)](_0x3d12d0))throw _0x3d12d0[_0x573043(0x3ca)];if(m[_0x573043(0x28f)](_0x459665))throw _0x459665[_0x573043(0x3ca)];_0x2fce16[_0x573043(0x2f1)](_0x3d12d0[_0x573043(0x30f)][_0x573043(0x2ed)]),_0x1cfb64[_0x573043(0x2f1)](_0x459665[_0x573043(0x30f)][_0x573043(0x2ed)]),_0x127a05=_0x3d12d0[_0x573043(0x175)],_0x41dfa5=_0x459665[_0x573043(0x175)];}_0x3c7934[_0x573043(0x2f2)]({'undoCache':_0x2fce16,'redoCache':_0x1cfb64});}[_0xbd72b5(0x1a8)](_0x74b6ff){const _0x433a9e=_0xbd72b5,{unitID:_0x53bc25}=_0x74b6ff,_0x159679=this[_0x433a9e(0x21a)][_0x433a9e(0x3d0)](_0x53bc25)[_0x433a9e(0x271)](b[_0x433a9e(0x253)]),_0x301487=_0x159679[_0x433a9e(0x2f9)]();if(_0x301487==null)return;const _0x457c46=[{'id':_0x433a9e(0x227),'params':{'unitId':_0x74b6ff[_0x433a9e(0x22b)],'actions':null,'textRanges':[_0x301487]}}],_0x619a86=this[_0x433a9e(0x203)][_0x433a9e(0x2d0)](_0x74b6ff,_0x457c46);if(!m[_0x433a9e(0x1f7)](_0x619a86))throw _0x619a86[_0x433a9e(0x3ca)];const _0x2d8a96=_0x619a86['m2Prime'][0x0][_0x433a9e(0x2ed)][_0x433a9e(0x26d)];Array[_0x433a9e(0x1b6)](_0x2d8a96)&&_0x2d8a96[_0x433a9e(0x1cf)]&&_0x159679[_0x433a9e(0x27a)](_0x2d8a96[0x0]);}};z=kt([ce(0x0,a['Inject'](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p[_0xbd72b5(0x19f)])],z);var Ht=Object[_0xbd72b5(0x402)],Ft=(_0x1b4d1b,_0x441637,_0xebdf75,_0x366ad6)=>{for(var _0x2cc7d4=_0x366ad6>0x1?void 0x0:_0x366ad6?Ht(_0x441637,_0xebdf75):_0x441637,_0x2a4a73=_0x1b4d1b['length']-0x1,_0xd60df2;_0x2a4a73>=0x0;_0x2a4a73--)(_0xd60df2=_0x1b4d1b[_0x2a4a73])&&(_0x2cc7d4=_0xd60df2(_0x2cc7d4)||_0x2cc7d4);return _0x2cc7d4;},le=(_0x5cb184,_0x18279d)=>(_0x279fa7,_0x1bc23e)=>_0x18279d(_0x279fa7,_0x1bc23e,_0x5cb184);let J=class{constructor(_0x2708df,_0x85f291,_0x27f79f){this['_injector']=_0x2708df,this['_transformService']=_0x85f291,this['_docStateChangeManagerService']=_0x27f79f;}['transformStateCache'](_0x223a46){const _0x49612d=_0xbd72b5;this[_0x49612d(0x39e)](_0x223a46);}['transformRemoteChangeset'](_0x5892ac){const _0xf7caaf=_0xbd72b5,{unitID:_0x102b64}=_0x5892ac,{collaboration:_0x3b543e}=this[_0xf7caaf(0x2c0)][_0xf7caaf(0x3a5)](_0x102b64);if(_0x3b543e[_0xf7caaf(0x1cf)]===0x0)return _0x5892ac;let _0x2dd367=a[_0xf7caaf(0x32f)][_0xf7caaf(0x1af)](_0x5892ac[_0xf7caaf(0x1b1)][0x0]);for(let _0x5c205c=0x0;_0x5c205c<_0x3b543e['length'];_0x5c205c++){const _0x536441={'id':_0xf7caaf(0x227),'params':{'unitId':_0x3b543e[_0x5c205c][_0xf7caaf(0x1f4)],..._0x3b543e[_0x5c205c][_0xf7caaf(0x3b1)]}},_0x1b629c=this[_0xf7caaf(0x203)][_0xf7caaf(0x28a)](_0x2dd367,_0x536441,!0x1);if(m[_0xf7caaf(0x28f)](_0x1b629c))throw _0x1b629c[_0xf7caaf(0x3ca)];_0x2dd367=_0x1b629c[_0xf7caaf(0x175)];}return{...a[_0xf7caaf(0x32f)][_0xf7caaf(0x1af)](_0x5892ac),'mutations':[_0x2dd367]};}[_0xbd72b5(0x39e)](_0x55bf27){const _0x2a51ab=_0xbd72b5,{unitID:_0xd10394}=_0x55bf27,{history:_0x511a7e,collaboration:_0x51cb16}=this[_0x2a51ab(0x2c0)][_0x2a51ab(0x3a5)](_0xd10394);if(_0x511a7e[_0x2a51ab(0x1cf)]===0x0&&_0x51cb16[_0x2a51ab(0x1cf)]===0x0)return;const _0x178798=[],_0x264e0a=[];let _0x5a797d=a[_0x2a51ab(0x32f)][_0x2a51ab(0x1af)](_0x55bf27['mutations'][0x0]),_0x5d8d45=a['Tools'][_0x2a51ab(0x1af)](_0x55bf27[_0x2a51ab(0x1b1)][0x0]);for(let _0x5a8d8e=_0x511a7e[_0x2a51ab(0x1cf)]-0x1;_0x5a8d8e>=0x0;_0x5a8d8e--){const _0x1b8f00={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x511a7e[_0x5a8d8e][_0x2a51ab(0x1f4)],..._0x511a7e[_0x5a8d8e][_0x2a51ab(0x263)]}},_0x2faa6a={'id':_0x2a51ab(0x227),'params':{'unitId':_0x511a7e[_0x5a8d8e][_0x2a51ab(0x1f4)],..._0x511a7e[_0x5a8d8e]['redoState']}},_0x188930=this['_transformService']['transformMutation'](_0x5a797d,_0x1b8f00,!0x1),_0xb7ab01=this[_0x2a51ab(0x203)][_0x2a51ab(0x28a)](_0x5d8d45,_0x2faa6a,!0x1);if(m[_0x2a51ab(0x28f)](_0x188930))throw _0x188930['error'];if(m[_0x2a51ab(0x28f)](_0xb7ab01))throw _0xb7ab01[_0x2a51ab(0x3ca)];_0x178798[_0x2a51ab(0x2f1)]({..._0x511a7e[_0x5a8d8e],'undoState':_0x188930[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)],'redoState':_0xb7ab01[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)]}),_0x5a797d=_0x188930['m1Prime'],_0x5d8d45=_0xb7ab01['m1Prime'];}_0x5a797d=a[_0x2a51ab(0x32f)][_0x2a51ab(0x1af)](_0x55bf27[_0x2a51ab(0x1b1)][0x0]),_0x5d8d45=a[_0x2a51ab(0x32f)][_0x2a51ab(0x1af)](_0x55bf27[_0x2a51ab(0x1b1)][0x0]);for(let _0x177aaa=_0x51cb16[_0x2a51ab(0x1cf)]-0x1;_0x177aaa>=0x0;_0x177aaa--){const _0x2c9a7a={'id':_0x2a51ab(0x227),'params':{'unitId':_0x51cb16[_0x177aaa][_0x2a51ab(0x1f4)],..._0x51cb16[_0x177aaa][_0x2a51ab(0x263)]}},_0x1df7a2={'id':_0x2a51ab(0x227),'params':{'unitId':_0x51cb16[_0x177aaa][_0x2a51ab(0x1f4)],..._0x51cb16[_0x177aaa][_0x2a51ab(0x3b1)]}},_0x3eb97b=this[_0x2a51ab(0x203)][_0x2a51ab(0x28a)](_0x5a797d,_0x2c9a7a,!0x1),_0x4297f2=this[_0x2a51ab(0x203)][_0x2a51ab(0x28a)](_0x5d8d45,_0x1df7a2,!0x1);if(m['isTransformMutationFailure'](_0x3eb97b))throw _0x3eb97b['error'];if(m[_0x2a51ab(0x28f)](_0x4297f2))throw _0x4297f2[_0x2a51ab(0x3ca)];_0x264e0a[_0x2a51ab(0x2f1)]({..._0x51cb16[_0x177aaa],'undoState':_0x3eb97b[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)],'redoState':_0x4297f2[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)]}),_0x5a797d=_0x3eb97b[_0x2a51ab(0x175)],_0x5d8d45=_0x4297f2[_0x2a51ab(0x175)];}this[_0x2a51ab(0x2c0)][_0x2a51ab(0x190)](_0xd10394,{'history':_0x178798,'collaboration':_0x264e0a});}};J=Ft([le(0x0,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),le(0x1,m[_0xbd72b5(0x25b)]),le(0x2,a['Inject'](b['DocStateChangeManagerService']))],J);var Yt=Object[_0xbd72b5(0x402)],Wt=(_0x19c848,_0x15e0ba,_0x27ecd8,_0x23c443)=>{const _0xc74cfb=_0xbd72b5;for(var _0x2f8f4b=_0x23c443>0x1?void 0x0:_0x23c443?Yt(_0x15e0ba,_0x27ecd8):_0x15e0ba,_0x217a24=_0x19c848[_0xc74cfb(0x1cf)]-0x1,_0x32a888;_0x217a24>=0x0;_0x217a24--)(_0x32a888=_0x19c848[_0x217a24])&&(_0x2f8f4b=_0x32a888(_0x2f8f4b)||_0x2f8f4b);return _0x2f8f4b;},Ne=(_0x541678,_0x4ee379)=>(_0xb8f157,_0x287c83)=>_0x4ee379(_0xb8f157,_0x287c83,_0x541678);let Z=class{constructor(_0x1b8d21,_0x2fe4db){const _0x5a5fc0=_0xbd72b5;this[_0x5a5fc0(0x207)]=_0x1b8d21,this[_0x5a5fc0(0x203)]=_0x2fe4db;}[_0xbd72b5(0x1e2)](_0x57ae16){const _0x2e722c=_0xbd72b5;var _0x188fae;const _0x1d5cfe=this[_0x2e722c(0x207)][_0x2e722c(0x206)](Y['DocSelectionManagerService']),_0x419fcc=(_0x188fae=_0x1d5cfe[_0x2e722c(0x2a7)]())!=null?_0x188fae:[];if(_0x419fcc['length']===0x0)return;const _0x2adc9f=_0x57ae16[_0x2e722c(0x22b)],_0x4f6e3e=[{'id':_0x2e722c(0x227),'params':{'unitId':_0x2adc9f,'actions':null,'textRanges':_0x419fcc}}],_0x5e6c6a=this[_0x2e722c(0x203)][_0x2e722c(0x2d0)](_0x57ae16,_0x4f6e3e);if(!m[_0x2e722c(0x1f7)](_0x5e6c6a))throw _0x5e6c6a[_0x2e722c(0x3ca)];const _0x599ef5=_0x5e6c6a[_0x2e722c(0x30f)][0x0]['params'][_0x2e722c(0x26d)];Array[_0x2e722c(0x1b6)](_0x599ef5)&&_0x599ef5[_0x2e722c(0x1cf)]&&_0x1d5cfe['replaceDocRanges'](_0x599ef5,{'unitId':_0x2adc9f,'subUnitId':_0x2adc9f},!0x1);}};Z=Wt([Ne(0x0,a[_0xbd72b5(0x1d6)](a['Injector'])),Ne(0x1,m[_0xbd72b5(0x25b)])],Z);var Vt=Object[_0xbd72b5(0x402)],Xt=(_0x5eb753,_0x2940be,_0x1017b4,_0x4c85cd)=>{const _0x21c348=_0xbd72b5;for(var _0x104de7=_0x4c85cd>0x1?void 0x0:_0x4c85cd?Vt(_0x2940be,_0x1017b4):_0x2940be,_0x3bb95f=_0x5eb753[_0x21c348(0x1cf)]-0x1,_0x4665c4;_0x3bb95f>=0x0;_0x3bb95f--)(_0x4665c4=_0x5eb753[_0x3bb95f])&&(_0x104de7=_0x4665c4(_0x104de7)||_0x104de7);return _0x104de7;},N=(_0x5eb51b,_0x51dec3)=>(_0x3c99b6,_0x399e4f)=>_0x51dec3(_0x3c99b6,_0x399e4f,_0x5eb51b);let Q=class extends a[_0xbd72b5(0x1b7)]{constructor(_0x38168e,_0x56135c,_0x48132f,_0xf7e644,_0x1e6d86,_0x5663cc,_0x38fafc,_0x564baf){const _0x4ecbd6=_0xbd72b5;super(),h(this,_0x4ecbd6(0x3bc),new d[(_0x4ecbd6(0x257))](u[_0x4ecbd6(0x1a1)][_0x4ecbd6(0x184)])),(this[_0x4ecbd6(0x2c0)]=_0x38168e,this[_0x4ecbd6(0x36b)]=_0x56135c,this['_docTransformIMECacheService']=_0x48132f,this[_0x4ecbd6(0x359)]=_0xf7e644,this[_0x4ecbd6(0x1f8)]=_0x1e6d86,this[_0x4ecbd6(0x361)]=_0x5663cc,this[_0x4ecbd6(0x1b9)]=_0x38fafc,this['_localeService']=_0x564baf,this[_0x4ecbd6(0x2f4)]());}[_0xbd72b5(0x2f4)](){const _0x2db305=_0xbd72b5;this[_0x2db305(0x323)](this['_collaborationController']['entityInit$'][_0x2db305(0x1fc)](_0x1c8e61=>{const _0x48d907=_0x2db305,_0x44ba48=this[_0x48d907(0x2c0)][_0x48d907(0x3ec)][_0x48d907(0x1fc)](_0x373833=>{const _0x192821=_0x48d907;if(_0x373833==null)return;const {unitId:_0x56d7b6,redoState:_0x316ea2,commandId:_0x48ca45}=_0x373833;if(_0x56d7b6!==_0x1c8e61[_0x192821(0x22b)])return;const _0x51fa29={'id':_0x48ca45,'type':a[_0x192821(0x29b)]['MUTATION'],'params':{'unitId':_0x56d7b6,'actions':_0x316ea2[_0x192821(0x2cc)],'textRanges':null}};_0x1c8e61[_0x192821(0x32d)](_0x51fa29);});if(_0x1c8e61[_0x48d907(0x323)](_0x44ba48),_0x1c8e61 instanceof u[_0x48d907(0x255)]){const _0xc80ea={'onTransformIME':_0x1dbe80=>this[_0x48d907(0x2df)][_0x48d907(0x3e1)](_0x1dbe80),'onTransformState':_0xb85cf5=>this['_docTransformStateCacheService'][_0x48d907(0x3bb)](_0xb85cf5),'onTransformSelections':_0x2792c9=>this[_0x48d907(0x1f8)][_0x48d907(0x1e2)](_0x2792c9),'onSyncEditingCollabCursor':_0xf81c27=>this[_0x48d907(0x361)][_0x48d907(0x33c)](_0xf81c27),'onTransformRemoteChangesetByIMECache':_0x5c309a=>this[_0x48d907(0x2df)][_0x48d907(0x1c7)](_0x5c309a),'onTransformRemoteChangesetByStateCache':_0x22fc2d=>this[_0x48d907(0x359)][_0x48d907(0x1c7)](_0x22fc2d)};_0x1c8e61[_0x48d907(0x345)](_0xc80ea);}}));}};Q=Xt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0xbd72b5(0x1d6)](u[_0xbd72b5(0x335)])),N(0x2,a[_0xbd72b5(0x1d6)](z)),N(0x3,a[_0xbd72b5(0x1d6)](J)),N(0x4,a[_0xbd72b5(0x1d6)](Z)),N(0x5,a[_0xbd72b5(0x1d6)](Ce)),N(0x6,T[_0xbd72b5(0x2f8)]),N(0x7,a[_0xbd72b5(0x1d6)](a['LocaleService']))],Q);var Gt=Object[_0xbd72b5(0x402)],Kt=(_0x7a538a,_0x2bcff4,_0x4b7e40,_0x3fa0bd)=>{const _0x2212aa=_0xbd72b5;for(var _0x10dea4=_0x3fa0bd>0x1?void 0x0:_0x3fa0bd?Gt(_0x2bcff4,_0x4b7e40):_0x2bcff4,_0x531e97=_0x7a538a[_0x2212aa(0x1cf)]-0x1,_0x4a8d9c;_0x531e97>=0x0;_0x531e97--)(_0x4a8d9c=_0x7a538a[_0x531e97])&&(_0x10dea4=_0x4a8d9c(_0x10dea4)||_0x10dea4);return _0x10dea4;},_e=(_0x4fbdcc,_0x3b6906)=>(_0x5257b4,_0x290b57)=>_0x3b6906(_0x5257b4,_0x290b57,_0x4fbdcc);let ge=class extends a[_0xbd72b5(0x1b7)]{constructor(_0xe83aa0,_0x2b1106,_0x10bee7){const _0x2c6251=_0xbd72b5;super(),h(this,_0x2c6251(0x2ae),new Map()),h(this,_0x2c6251(0x1f5),new Map()),h(this,_0x2c6251(0x34f),!0x1),(this[_0x2c6251(0x237)]=_0xe83aa0,this[_0x2c6251(0x2b2)]=_0x2b1106,this[_0x2c6251(0x299)]=_0x10bee7);}[_0xbd72b5(0x280)](){this['_disabled']=!0x0;}[_0xbd72b5(0x18c)](){const _0x249c00=_0xbd72b5;this[_0x249c00(0x34f)]=!0x1;}get[_0xbd72b5(0x289)](){const _0x2561a6=_0xbd72b5;return this[_0x2561a6(0x1f5)];}[_0xbd72b5(0x32e)](){const _0x1692ab=_0xbd72b5;this[_0x1692ab(0x285)]()[_0x1692ab(0x34c)](()=>super[_0x1692ab(0x32e)]());}async['loadOfflineData'](_0x1a52ba){const _0x59706b=_0xbd72b5;return this['_disabled']?null:this['_localStorageService'][_0x59706b(0x252)](u['getLocalCacheKey'](_0x1a52ba));}async[_0xbd72b5(0x2de)](_0x3d33a8,_0x37e29e){const _0x1265e2=_0xbd72b5;return!!this[_0x1265e2(0x2b2)][_0x1265e2(0x2c4)](_0x3d33a8,_0x37e29e);}['updateOfflineData'](_0x5617f6,_0x4474a9,_0x2b3bb1,_0x1038ad){const _0x17755=_0xbd72b5,_0x5b3925=this[_0x17755(0x299)][_0x17755(0x2af)](_0x5617f6);this['_cachedData']['set'](_0x5617f6,{'unitID':_0x5617f6,'type':_0x4474a9,'awaitingChangeset':_0x2b3bb1,'mutations':_0x1038ad,'rev':_0x5b3925}),this[_0x17755(0x1f5)][_0x17755(0x3c8)](_0x5617f6)||this[_0x17755(0x3ae)](_0x5617f6);}[_0xbd72b5(0x3ae)](_0x59dd54){const _0x42b137=_0xbd72b5,_0x4a56db=this[_0x42b137(0x367)]();_0x4a56db===0x0?this[_0x42b137(0x27b)](_0x59dd54):this[_0x42b137(0x1f5)][_0x42b137(0x3c7)](_0x59dd54,setTimeout(()=>this['_saveCache'](_0x59dd54),_0x4a56db));}[_0xbd72b5(0x367)](){const _0x471b14=_0xbd72b5;var _0x271cf3;return(_0x271cf3=this[_0x471b14(0x237)][_0x471b14(0x311)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x271cf3:u[_0x471b14(0x305)];}[_0xbd72b5(0x27b)](_0x368234){const _0x504a71=_0xbd72b5,_0x1b566f=this['_saveTaskMap'][_0x504a71(0x206)](_0x368234);return _0x1b566f!==void 0x0&&window[_0x504a71(0x2fd)](_0x1b566f),this['_localStorageService'][_0x504a71(0x2c4)](u[_0x504a71(0x2f6)](_0x368234),this[_0x504a71(0x2ae)][_0x504a71(0x206)](_0x368234))['then'](()=>this[_0x504a71(0x1f5)][_0x504a71(0x200)](_0x368234));}async['exhaustSavingTask'](){const _0x1a6107=_0xbd72b5,_0x2383d3=[];this['_saveTaskMap'][_0x1a6107(0x276)]((_0x542afc,_0xd591f8)=>{const _0x5d6f0d=_0x1a6107;window[_0x5d6f0d(0x2fd)](_0x542afc),_0x2383d3['push'](this[_0x5d6f0d(0x27b)](_0xd591f8)[_0x5d6f0d(0x34c)](()=>{const _0x20fc08=_0x5d6f0d;this[_0x20fc08(0x1f5)][_0x20fc08(0x200)](_0xd591f8);}));}),await Promise[_0x1a6107(0x205)](_0x2383d3);}};ge=Kt([_e(0x0,a[_0xbd72b5(0x24a)]),_e(0x1,a[_0xbd72b5(0x244)]),_e(0x2,a[_0xbd72b5(0x1d6)](m[_0xbd72b5(0x2a8)]))],ge);class je extends a[_0xbd72b5(0x283)]{constructor(){const _0x946aba=_0xbd72b5;super(),h(this,'urlChange$'),this[_0x946aba(0x3f1)]=d[_0x946aba(0x1ca)](window,_0x946aba(0x1ef))[_0x946aba(0x1db)](d['takeUntil'](this[_0x946aba(0x1a2)]),d[_0x946aba(0x29a)](0x1),d['mapTo'](void 0x0));}[_0xbd72b5(0x220)](_0x511a5a,_0x3f2c50,_0x14fe0c=!0x1){const _0x484f23=_0xbd72b5,_0x260c51=new URL(window[_0x484f23(0x1bf)][_0x484f23(0x24c)]);_0x260c51[_0x484f23(0x34b)][_0x484f23(0x3c7)](_0x511a5a,_0x3f2c50),_0x14fe0c?window[_0x484f23(0x324)][_0x484f23(0x177)]('','',_0x260c51[_0x484f23(0x352)]()):window[_0x484f23(0x324)]['pushState']('','',_0x260c51[_0x484f23(0x352)]());}['removeParam'](_0x1ec3c9,_0x3dc0e1=!0x1){const _0x3f7cf9=_0xbd72b5,_0x2ee746=new URL(window['location'][_0x3f7cf9(0x24c)]);_0x2ee746[_0x3f7cf9(0x34b)]['delete'](_0x1ec3c9),_0x3dc0e1?window['history']['replaceState']('','',_0x2ee746['toString']()):window[_0x3f7cf9(0x324)][_0x3f7cf9(0x2bc)]('','',_0x2ee746[_0x3f7cf9(0x352)]());}[_0xbd72b5(0x2e3)](_0x3cd16b){const _0x90f177=_0xbd72b5;var _0x224e6a;return(_0x224e6a=new URL(window[_0x90f177(0x1bf)][_0x90f177(0x24c)])[_0x90f177(0x34b)][_0x90f177(0x206)](_0x3cd16b))!=null?_0x224e6a:void 0x0;}}var qt=Object[_0xbd72b5(0x377)],zt=Object[_0xbd72b5(0x402)],Jt=(_0x1eacb3,_0x465d40,_0x46bc55)=>_0x465d40 in _0x1eacb3?qt(_0x1eacb3,_0x465d40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46bc55}):_0x1eacb3[_0x465d40]=_0x46bc55,Zt=(_0x57ea66,_0x11cec1,_0x4c5b97,_0x3cd338)=>{const _0x3ecd49=_0xbd72b5;for(var _0xadbdd7=_0x3cd338>0x1?void 0x0:_0x3cd338?zt(_0x11cec1,_0x4c5b97):_0x11cec1,_0x58190b=_0x57ea66[_0x3ecd49(0x1cf)]-0x1,_0x5a2619;_0x58190b>=0x0;_0x58190b--)(_0x5a2619=_0x57ea66[_0x58190b])&&(_0xadbdd7=_0x5a2619(_0xadbdd7)||_0xadbdd7);return _0xadbdd7;},he=(_0x389464,_0x5941f7)=>(_0x3732f8,_0x2a992a)=>_0x5941f7(_0x3732f8,_0x2a992a,_0x389464),Qt=(_0x35d276,_0x10a76d,_0x34277d)=>Jt(_0x35d276,_0x10a76d+'',_0x34277d);const es=_0xbd72b5(0x3ed);exports[_0xbd72b5(0x1ea)]=class extends a['Plugin']{constructor(_0xd9e77e=Ue,_0xfababc,_0x241917,_0x3ac03b){const _0x300f11=_0xbd72b5;super(),this['_config']=_0xd9e77e,this[_0x300f11(0x21a)]=_0xfababc,this[_0x300f11(0x207)]=_0x241917,this[_0x300f11(0x237)]=_0x3ac03b;const {..._0x122023}=a[_0x300f11(0x1bc)]({},Ue,this[_0x300f11(0x1be)]);this[_0x300f11(0x237)][_0x300f11(0x245)]($t,_0x122023);}[_0xbd72b5(0x3a0)](){const _0x194bc8=_0xbd72b5;this['_registerDependencies'](),this[_0x194bc8(0x2ef)]();}[_0xbd72b5(0x213)](){const _0x5c1d30=_0xbd72b5;this[_0x5c1d30(0x3e5)]();}[_0xbd72b5(0x3af)](){const _0x150a48=_0xbd72b5;var _0x2ea5e7;const _0x5955ab=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x150a48(0x3d9)],{'useClass':G['WebSocketService']}],[u[_0x150a48(0x22f)],{'useClass':ge}],[exports[_0x150a48(0x3fa)]],[Q],[q],[x],[de],[exports[_0x150a48(0x2cd)]]];a[_0x150a48(0x185)](this[_0x150a48(0x207)],a[_0x150a48(0x3a2)](_0x5955ab,(_0x2ea5e7=this[_0x150a48(0x1be)])==null?void 0x0:_0x2ea5e7['override']));}['_registerRenderDependencies'](){const _0x2e3fff=_0xbd72b5;this[_0x2e3fff(0x323)](this['_renderManagerService']['registerRenderModule'](a[_0x2e3fff(0x216)][_0x2e3fff(0x211)],[Ie])),this['disposeWithMe'](this['_renderManagerService'][_0x2e3fff(0x287)](a[_0x2e3fff(0x216)][_0x2e3fff(0x2c2)],[ve]));}[_0xbd72b5(0x2ef)](){const _0x1a2da7=_0xbd72b5;a[_0x1a2da7(0x222)](this[_0x1a2da7(0x207)],[[x],[exports[_0x1a2da7(0x3fa)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0xbd72b5(0x3f2),es),exports[_0xbd72b5(0x1ea)]=Zt([a[_0xbd72b5(0x401)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0xbd72b5(0x19f)]),he(0x2,a['Inject'](a[_0xbd72b5(0x338)])),he(0x3,a[_0xbd72b5(0x24a)])],exports[_0xbd72b5(0x1ea)]);var ts=Object[_0xbd72b5(0x402)],ss=(_0x2dc904,_0x5c55a4,_0xfccadc,_0x16a8b9)=>{for(var _0x4c3b0e=_0x16a8b9>0x1?void 0x0:_0x16a8b9?ts(_0x5c55a4,_0xfccadc):_0x5c55a4,_0x5eaa62=_0x2dc904['length']-0x1,_0x3a6c52;_0x5eaa62>=0x0;_0x5eaa62--)(_0x3a6c52=_0x2dc904[_0x5eaa62])&&(_0x4c3b0e=_0x3a6c52(_0x4c3b0e)||_0x4c3b0e);return _0x4c3b0e;},F=(_0xf07b8,_0x1bdc46)=>(_0x23398,_0x5ad8ad)=>_0x1bdc46(_0x23398,_0x5ad8ad,_0xf07b8);exports[_0xbd72b5(0x1fb)]=class extends u[_0xbd72b5(0x3d1)]{constructor(_0x15418f,_0x458c49,_0x1285d3,_0x57d5e4,_0x4085d1){super(_0x15418f,_0x458c49,_0x1285d3,_0x57d5e4,_0x4085d1);}async[_0xbd72b5(0x1a7)](_0x24420c){const _0x5ad31c=_0xbd72b5,_0x528022=await this[_0x5ad31c(0x1dc)](),_0xff0f64=this[_0x5ad31c(0x196)](_0x24420c,_0x528022);return this[_0x5ad31c(0x373)](_0xff0f64);}[_0xbd72b5(0x196)](_0x226b37,_0x42f5b5){const _0x2e606a=_0xbd72b5,_0x13af81=typeof window>'u'?new URL(_0x226b37):new URL(_0x226b37,window[_0x2e606a(0x1bf)][_0x2e606a(0x298)]);_0x13af81['searchParams'][_0x2e606a(0x3c7)](_0x2e606a(0x33f),_0x42f5b5);const _0x50b3d0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2e606a(0x1bf)][_0x2e606a(0x26f)]);return _0x50b3d0[_0x2e606a(0x206)](_0x2e606a(0x183))&&_0x13af81[_0x2e606a(0x34b)][_0x2e606a(0x3c7)](_0x2e606a(0x183),_0x50b3d0[_0x2e606a(0x206)](_0x2e606a(0x183))),_0x13af81[_0x2e606a(0x352)]();}async[_0xbd72b5(0x1dc)](){const _0x4655ed=_0xbd72b5;var _0x250379,_0xe13ce6,_0x271aba;const _0x5cdb6c=this['_configService'][_0x4655ed(0x311)](u[_0x4655ed(0x39f)]),_0x16d704=(_0x250379=_0x5cdb6c==null?void 0x0:_0x5cdb6c[_0x4655ed(0x2cf)])!=null?_0x250379:u[_0x4655ed(0x315)];return(_0x271aba=(_0xe13ce6=(await this[_0x4655ed(0x3a6)]['get'](_0x16d704,{'headers':{'Content-Type':'application/json'}}))[_0x4655ed(0x2da)])==null?void 0x0:_0xe13ce6[_0x4655ed(0x396)])!=null?_0x271aba:'';}},exports[_0xbd72b5(0x1fb)]=ss([F(0x0,a[_0xbd72b5(0x1d6)](a['Injector'])),F(0x1,a['Inject'](G[_0xbd72b5(0x34d)])),F(0x2,a['IConfigService']),F(0x3,a[_0xbd72b5(0x360)]),F(0x4,m[_0xbd72b5(0x37d)])],exports[_0xbd72b5(0x1fb)]);const Me=0x7530,Le=_0xbd72b5(0x3ef);class is extends a[_0xbd72b5(0x1b7)]{constructor(){const _0x1c8777=_0xbd72b5;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x1c8777(0x1a5),new Set()),h(this,_0x1c8777(0x3ac),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x1c8777(0x1c9)]();}[_0xbd72b5(0x32e)](){const _0x501cae=_0xbd72b5;super[_0x501cae(0x32e)](),this[_0x501cae(0x1ee)]['forEach']((_0x116fe5,_0x471c26)=>this[_0x501cae(0x1ad)](_0x471c26)),this[_0x501cae(0x320)]&&window[_0x501cae(0x3e0)](this[_0x501cae(0x320)]);}[_0xbd72b5(0x33d)](_0x2df41b){const _0x5eeffc=_0xbd72b5;return this[_0x5eeffc(0x1a9)](_0x2df41b)[_0x5eeffc(0x1db)](d[_0x5eeffc(0x2b4)]());}[_0xbd72b5(0x2ab)](_0x495b73){const _0x40889d=_0xbd72b5;this['_selfUnitIDs'][_0x40889d(0x2c9)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x40889d(0x1e5)](_0x495b73),this[_0x40889d(0x3f0)]({'type':0x0,'memberID':this[_0x40889d(0x3a9)],'unitIDs':[_0x495b73],'isForwarded':!0x1});}[_0xbd72b5(0x195)](_0x396c2d){const _0x3c23ab=_0xbd72b5;this[_0x3c23ab(0x1a5)][_0x3c23ab(0x200)](_0x396c2d),this[_0x3c23ab(0x1a5)]['size']===0x0&&this[_0x3c23ab(0x320)]&&window[_0x3c23ab(0x3e0)](this[_0x3c23ab(0x320)]);}[_0xbd72b5(0x1c9)](){const _0x1db6d5=_0xbd72b5;this[_0x1db6d5(0x323)](a[_0x1db6d5(0x385)](d[_0x1db6d5(0x1ca)](window,_0x1db6d5(0x2a5))['subscribe'](_0x587f0a=>{const _0x24fa2f=_0x1db6d5;if(_0x587f0a[_0x24fa2f(0x2e5)]!==Le||!_0x587f0a[_0x24fa2f(0x2fe)])return;const _0x15f3c4=JSON[_0x24fa2f(0x370)](_0x587f0a[_0x24fa2f(0x2fe)]);this[_0x24fa2f(0x39a)](_0x15f3c4);}))),window[_0x1db6d5(0x1df)](_0x1db6d5(0x347),()=>this[_0x1db6d5(0x3f0)]({'type':0x1,'memberID':this[_0x1db6d5(0x3a9)],'unitIDs':Array[_0x1db6d5(0x20b)](this['_selfUnitIDs'])}));}[_0xbd72b5(0x39a)](_0x27c61d){const _0x5cca73=_0xbd72b5;switch(_0x27c61d[_0x5cca73(0x1fa)]){case 0x0:this['_handleJoinEvent'](_0x27c61d);break;case 0x1:this[_0x5cca73(0x17e)](_0x27c61d);break;case 0x2:this[_0x5cca73(0x1c5)](_0x27c61d);break;}}[_0xbd72b5(0x233)](_0x1aa12e){const _0x34f88f=_0xbd72b5,{unitIDs:_0x48e43c,memberID:_0x3417bb,isForwarded:_0x52f28d}=_0x1aa12e;_0x48e43c['forEach'](_0x13d791=>{const _0x365810=_0x4dae;if(!_0x52f28d&&this['_unitOnClients'][_0x365810(0x3c8)](_0x13d791)&&this['_ensureSubject'](_0x13d791)[_0x365810(0x2ad)](u[_0x365810(0x38b)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x365810(0x3c8)](_0x13d791)||!this[_0x365810(0x3ac)][_0x365810(0x206)](_0x13d791)['has'](_0x3417bb)){const _0x43ae69=this[_0x365810(0x3ac)][_0x365810(0x206)](_0x13d791)||new Set();_0x43ae69[_0x365810(0x1e5)](_0x3417bb),this['_unitOnClients']['set'](_0x13d791,_0x43ae69),this[_0x365810(0x247)](_0x3417bb);}}),_0x52f28d||this['_send']({'type':0x0,'memberID':this[_0x34f88f(0x3a9)],'unitIDs':[...this[_0x34f88f(0x1a5)]],'isForwarded':!0x0});}[_0xbd72b5(0x247)](_0x3874af){const _0x3e96e4=_0xbd72b5;this[_0x3e96e4(0x1ad)](_0x3874af);const _0x4a11de=window[_0x3e96e4(0x357)](()=>{const _0x39fd2d=_0x3e96e4;this[_0x39fd2d(0x3ac)][_0x39fd2d(0x276)](_0x5a362d=>{const _0x57d154=_0x39fd2d;_0x5a362d[_0x57d154(0x200)](_0x3874af);});},Me*0x2);this[_0x3e96e4(0x1ee)]['set'](_0x3874af,_0x4a11de);}[_0xbd72b5(0x1ad)](_0x167b82){const _0x4ecfff=_0xbd72b5;if(this['_clearOtherTimers'][_0x4ecfff(0x3c8)](_0x167b82)){const _0x232803=this[_0x4ecfff(0x1ee)][_0x4ecfff(0x206)](_0x167b82);_0x232803&&window['clearTimeout'](_0x232803),this[_0x4ecfff(0x1ee)][_0x4ecfff(0x3c7)](_0x167b82,null);}}[_0xbd72b5(0x17e)](_0x13d506){const _0x1b243c=_0xbd72b5,{memberID:_0x588969,unitIDs:_0x1f4620}=_0x13d506;_0x1f4620[_0x1b243c(0x276)](_0x6b0de9=>{const _0x284813=_0x1b243c;var _0x5f3d3a;const _0x4a0d49=this[_0x284813(0x3ac)][_0x284813(0x206)](_0x6b0de9);_0x4a0d49&&(_0x4a0d49[_0x284813(0x200)](_0x588969),(_0x5f3d3a=this[_0x284813(0x1a9)](_0x6b0de9))==null||_0x5f3d3a[_0x284813(0x2ad)](_0x4a0d49[_0x284813(0x2c9)]===0x0?u[_0x284813(0x38b)][_0x284813(0x3a4)]:u[_0x284813(0x38b)][_0x284813(0x277)]));}),this[_0x1b243c(0x1ad)](_0x588969);}['_handleHeartbeatEvent'](_0x3a91ae){const _0x37ae13=_0xbd72b5;this[_0x37ae13(0x247)](_0x3a91ae['memberID']);}[_0xbd72b5(0x3f0)](_0x3577db){localStorage['setItem'](Le,JSON['stringify'](_0x3577db));}[_0xbd72b5(0x230)](){const _0x45b0b6=_0xbd72b5;this[_0x45b0b6(0x320)]=window[_0x45b0b6(0x317)](()=>{const _0x4c6a4a=_0x45b0b6;this[_0x4c6a4a(0x3f0)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x473c73){const _0x430cda=_0xbd72b5;return this[_0x430cda(0x186)][_0x430cda(0x3c8)](_0x473c73)||this[_0x430cda(0x186)][_0x430cda(0x3c7)](_0x473c73,new d[(_0x430cda(0x257))](u['UnitStatus'][_0x430cda(0x3a4)])),this[_0x430cda(0x186)][_0x430cda(0x206)](_0x473c73);}}var Be=(_0x387b03=>(_0x387b03[_0x387b03['UNDEFINED']=0x0]=_0xbd72b5(0x178),_0x387b03[_0x387b03['OK']=0x1]='OK',_0x387b03[_0x387b03['INTERNAL_ERROR']=0x2]=_0xbd72b5(0x309),_0x387b03[_0x387b03[_0xbd72b5(0x1bd)]=0x3]='PERMISSION_DENIED',_0x387b03[_0x387b03[_0xbd72b5(0x3c3)]=0x4]=_0xbd72b5(0x3c3),_0x387b03[_0x387b03[_0xbd72b5(0x364)]=0x5]=_0xbd72b5(0x364),_0x387b03[_0x387b03[_0xbd72b5(0x268)]=0x6]=_0xbd72b5(0x268),_0x387b03[_0x387b03[_0xbd72b5(0x3de)]=0x7]=_0xbd72b5(0x3de),_0x387b03[_0x387b03[_0xbd72b5(0x1bb)]=0x8]=_0xbd72b5(0x1bb),_0x387b03[_0x387b03[_0xbd72b5(0x3f9)]=0x9]='COMPLETION_FINISHED',_0x387b03[_0x387b03[_0xbd72b5(0x2a0)]=0xa]=_0xbd72b5(0x2a0),_0x387b03[_0x387b03[_0xbd72b5(0x308)]=0x1389]=_0xbd72b5(0x308),_0x387b03[_0x387b03['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0xbd72b5(0x30d),_0x387b03[_0x387b03[_0xbd72b5(0x1ae)]=0x1772]=_0xbd72b5(0x1ae),_0x387b03[_0x387b03[_0xbd72b5(0x18b)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x387b03[_0x387b03[_0xbd72b5(0x1d7)]=0x1b59]=_0xbd72b5(0x1d7),_0x387b03[_0x387b03[_0xbd72b5(0x3f5)]=0x1b5a]=_0xbd72b5(0x3f5),_0x387b03[_0x387b03['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xbd72b5(0x2b0),_0x387b03[_0x387b03[_0xbd72b5(0x1f2)]=0x1b5c]=_0xbd72b5(0x1f2),_0x387b03[_0x387b03[_0xbd72b5(0x2a2)]=0x1b5d]='APPLY_DUPLICATED',_0x387b03[_0x387b03[_0xbd72b5(0x3f6)]=0x1f41]=_0xbd72b5(0x3f6),_0x387b03[_0x387b03['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x387b03[_0x387b03[_0xbd72b5(0x350)]=0x232a]=_0xbd72b5(0x350),_0x387b03[_0x387b03[_0xbd72b5(0x3f4)]=0x232b]=_0xbd72b5(0x3f4),_0x387b03[_0x387b03[_0xbd72b5(0x343)]=0x232c]=_0xbd72b5(0x343),_0x387b03[_0x387b03[_0xbd72b5(0x3b5)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x387b03[_0x387b03[_0xbd72b5(0x1c2)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x387b03[_0x387b03[_0xbd72b5(0x38a)]=0x2712]=_0xbd72b5(0x38a),_0x387b03[_0x387b03[_0xbd72b5(0x368)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x387b03[_0x387b03[_0xbd72b5(0x223)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x387b03[_0x387b03[_0xbd72b5(0x1b3)]=0x271a]=_0xbd72b5(0x1b3),_0x387b03[_0x387b03[_0xbd72b5(0x1aa)]=0x271b]=_0xbd72b5(0x1aa),_0x387b03[_0x387b03[_0xbd72b5(0x20d)]=0x271c]=_0xbd72b5(0x20d),_0x387b03[_0x387b03[_0xbd72b5(0x312)]=0x271d]=_0xbd72b5(0x312),_0x387b03[_0x387b03[_0xbd72b5(0x258)]=0x271e]=_0xbd72b5(0x258),_0x387b03[_0x387b03[_0xbd72b5(0x2fb)]=0x271f]=_0xbd72b5(0x2fb),_0x387b03[_0x387b03[_0xbd72b5(0x3e8)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x387b03[_0x387b03['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0xbd72b5(0x3dc),_0x387b03[_0x387b03['INVALID_INVITE_CODE']=0x2ee2]=_0xbd72b5(0x1d1),_0x387b03[_0x387b03[_0xbd72b5(0x29c)]=0x2ee3]=_0xbd72b5(0x29c),_0x387b03[_0x387b03[_0xbd72b5(0x279)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x387b03[_0x387b03[_0xbd72b5(0x198)]=0x2ee5]=_0xbd72b5(0x198),_0x387b03[_0x387b03[_0xbd72b5(0x314)]=0x32c9]=_0xbd72b5(0x314),_0x387b03[_0x387b03['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0xbd72b5(0x1d9),_0x387b03[_0x387b03[_0xbd72b5(0x30b)]=0x32cb]=_0xbd72b5(0x30b),_0x387b03[_0x387b03[_0xbd72b5(0x336)]=-0x1]=_0xbd72b5(0x336),_0x387b03))(Be||{}),ns=Object[_0xbd72b5(0x402)],rs=(_0x1859b3,_0xc6139b,_0x22b538,_0x485a05)=>{for(var _0x3ab659=_0x485a05>0x1?void 0x0:_0x485a05?ns(_0xc6139b,_0x22b538):_0xc6139b,_0x20fd55=_0x1859b3['length']-0x1,_0x64700d;_0x20fd55>=0x0;_0x20fd55--)(_0x64700d=_0x1859b3[_0x20fd55])&&(_0x3ab659=_0x64700d(_0x3ab659)||_0x3ab659);return _0x3ab659;},ue=(_0x1c03b2,_0x39602d)=>(_0x3de408,_0x1ae202)=>_0x39602d(_0x3de408,_0x1ae202,_0x1c03b2);exports[_0xbd72b5(0x2bf)]=class extends a[_0xbd72b5(0x1b7)]{constructor(_0x5f047b,_0x1ef4f6,_0x575877){const _0x101138=_0xbd72b5;super(),this[_0x101138(0x3b0)]=_0x5f047b,this[_0x101138(0x3a6)]=_0x1ef4f6,this[_0x101138(0x237)]=_0x575877;}async['runOnServer'](_0x3c1929,_0x541540,_0x1616b3,..._0x2dad51){const _0x44ac50=_0xbd72b5;var _0x34e2cc,_0x12775d,_0x2ae172,_0x2151ed;const _0x4e7751=this['_instanceService']['getFocusedUnit']();if(!_0x4e7751)throw new Error(_0x44ac50(0x273));const _0x15e64a=((_0x34e2cc=this['_configService'][_0x44ac50(0x311)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x34e2cc:u[_0x44ac50(0x219)])+'/'+_0x3c1929+_0x44ac50(0x212)+_0x541540,_0x304bf8=new URL(window[_0x44ac50(0x1bf)][_0x44ac50(0x24c)]),_0x58a2e3={'scriptId':_0x3c1929,'runId':(_0x12775d=_0x304bf8[_0x44ac50(0x34b)][_0x44ac50(0x206)]('runId'))!=null?_0x12775d:'','function':_0x541540,'unitId':_0x4e7751[_0x44ac50(0x1e1)](),'argsOfFunction':JSON[_0x44ac50(0x22a)](_0x2dad51),'invokeId':(_0x2ae172=_0x1616b3[_0x44ac50(0x2ec)])!=null?_0x2ae172:'','executionId':(_0x2151ed=_0x1616b3[_0x44ac50(0x3e4)])!=null?_0x2151ed:''};try{const _0x3f02e0=await this['_httpService'][_0x44ac50(0x290)](_0x15e64a,{'body':_0x58a2e3});return _0x3f02e0[_0x44ac50(0x2da)]['error']&&_0x3f02e0[_0x44ac50(0x2da)][_0x44ac50(0x3ca)][_0x44ac50(0x217)]!==Be['OK']?_0x44ac50(0x3b3):_0x3f02e0[_0x44ac50(0x2da)]['result'];}catch{return _0x44ac50(0x3b3);}}},exports[_0xbd72b5(0x2bf)]=rs([ue(0x0,a[_0xbd72b5(0x3e7)]),ue(0x1,a['Inject'](G[_0xbd72b5(0x34d)])),ue(0x2,a[_0xbd72b5(0x24a)])],exports[_0xbd72b5(0x2bf)]),exports['CollaborationStatusDisplay']=xe,exports[_0xbd72b5(0x221)]=be,exports[_0xbd72b5(0x3c5)]=Ae,exports[_0xbd72b5(0x259)]=is,exports['WebURLService']=je;
|
|
1
|
+
'use strict';const _0x417150=_0x40a8;(function(_0x1a3c49,_0x158b43){const _0x5aee22=_0x40a8,_0x4ec982=_0x1a3c49();while(!![]){try{const _0x589ef0=parseInt(_0x5aee22(0x1dc))/0x1+parseInt(_0x5aee22(0x21e))/0x2+-parseInt(_0x5aee22(0x1de))/0x3*(parseInt(_0x5aee22(0x31d))/0x4)+-parseInt(_0x5aee22(0x21c))/0x5*(parseInt(_0x5aee22(0x2e9))/0x6)+-parseInt(_0x5aee22(0x387))/0x7+parseInt(_0x5aee22(0x31c))/0x8+-parseInt(_0x5aee22(0x13a))/0x9*(-parseInt(_0x5aee22(0x2ff))/0xa);if(_0x589ef0===_0x158b43)break;else _0x4ec982['push'](_0x4ec982['shift']());}catch(_0x18dd40){_0x4ec982['push'](_0x4ec982['shift']());}}}(_0x9edb,0x22d81));var Ve=Object['defineProperty'],Xe=(_0x306c67,_0x552378,_0x2cacfd)=>_0x552378 in _0x306c67?Ve(_0x306c67,_0x552378,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cacfd}):_0x306c67[_0x552378]=_0x2cacfd,h=(_0x296448,_0xb9a345,_0x275d05)=>Xe(_0x296448,typeof _0xb9a345!=_0x417150(0x16a)?_0xb9a345+'':_0xb9a345,_0x275d05);Object[_0x417150(0x24f)](exports,Symbol[_0x417150(0x217)],{'value':_0x417150(0x2a0)});const u=require(_0x417150(0x314)),a=require(_0x417150(0x238)),p=require(_0x417150(0x3a6)),G=require(_0x417150(0x18f)),b=require(_0x417150(0x322)),Ge=require('@univerjs/drawing'),d=require(_0x417150(0x13e)),Y=require('@univerjs/docs'),m=require(_0x417150(0x1e5)),Ee=require(_0x417150(0x28d)),g=require(_0x417150(0x1d0)),$=require('rxjs/operators'),X=require(_0x417150(0x2b9)),P=require('react/jsx-runtime'),T=require(_0x417150(0x251)),D=require(_0x417150(0x2fe)),M=require(_0x417150(0x1f9)),Ke=require(_0x417150(0x31a));var qe=Object[_0x417150(0x1fb)],ze=(_0x4d19ba,_0x2774ff,_0x2b94b5,_0x2db864)=>{for(var _0x2b79a6=_0x2db864>0x1?void 0x0:_0x2db864?qe(_0x2774ff,_0x2b94b5):_0x2774ff,_0x58ec22=_0x4d19ba['length']-0x1,_0x2acb03;_0x58ec22>=0x0;_0x58ec22--)(_0x2acb03=_0x4d19ba[_0x58ec22])&&(_0x2b79a6=_0x2acb03(_0x2b79a6)||_0x2b79a6);return _0x2b79a6;},Te=(_0x12fe14,_0x2e8d44)=>(_0x4e2738,_0x5a2d6f)=>_0x2e8d44(_0x4e2738,_0x5a2d6f,_0x12fe14);let de=class extends a[_0x417150(0x1c7)]{constructor(_0x2a7943,_0x113223){const _0x483ffd=_0x417150;super(),this[_0x483ffd(0x2c9)]=_0x2a7943,this[_0x483ffd(0x16e)]=_0x113223,this[_0x483ffd(0x363)]();}[_0x417150(0x363)](){const _0x53b05a=_0x417150,_0x333fb5=this;this[_0x53b05a(0x1ca)](this[_0x53b05a(0x2c9)][_0x53b05a(0x2d9)]({'onBeforePasteImage':async _0x513bf2=>{const _0x2c4e3d=_0x53b05a,_0x1a5a28=await _0x333fb5[_0x2c4e3d(0x16e)][_0x2c4e3d(0x167)](_0x513bf2);return _0x1a5a28?{'source':_0x1a5a28[_0x2c4e3d(0x29f)],'imageSourceType':_0x1a5a28[_0x2c4e3d(0x15d)]}:null;}}));}};de=ze([Te(0x0,b[_0x417150(0x2d7)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x417150(0x26b),_0x417150(0x325),_0x417150(0x2f2),'red.300','blue.400',_0x417150(0x3a4)];class me extends a[_0x417150(0x196)]{constructor(){const _0x5c5467=_0x417150;super(...arguments),h(this,_0x5c5467(0x198),new Map()),h(this,_0x5c5467(0x1f1),0x0);}[_0x417150(0x180)](_0x3a566b){const _0xa36f8=_0x417150;if(this['_assignedColors']['has'](_0x3a566b))return this['_assignedColors']['get'](_0x3a566b);const _0x70de21=Oe[this[_0xa36f8(0x1f1)]];return this[_0xa36f8(0x1f1)]=(this['_colorIndex']+0x1)%Oe[_0xa36f8(0x25d)],this[_0xa36f8(0x198)]['set'](_0x3a566b,_0x70de21),_0x70de21;}}function Pe(_0x2c5b97){let _0x4e7c30='';for(const _0x44302d of _0x2c5b97){const {startOffset:_0x890c01,endOffset:_0x1eb81e,isActive:_0x3cace5,rangeType:_0x620943,segmentId:_0x3dc8a8,segmentPage:_0x39dafb}=_0x44302d;_0x4e7c30['length']&&(_0x4e7c30+=','),_0x4e7c30+=_0x890c01+':'+_0x1eb81e+':'+(_0x3cace5?'1':'0')+':'+_0x620943+':'+_0x3dc8a8+':'+_0x39dafb;}return _0x4e7c30;}function Je(_0xa08f55){const _0x155b65=_0x417150,_0x3700f9=_0xa08f55['split'](','),_0x496c63=[];for(const _0x76f5e0 of _0x3700f9){const [_0x67b793,_0x1ded03,_0x191701,_0x5ebc61,_0xeb82eb,_0x4eb988]=_0x76f5e0[_0x155b65(0x339)](':');_0x496c63[_0x155b65(0x278)]({'startOffset':Number(_0x67b793),'endOffset':Number(_0x1ded03),'collapsed':_0x67b793===_0x1ded03,'isActive':_0x191701==='1','rangeType':_0x5ebc61===a['DOC_RANGE_TYPE'][_0x155b65(0x347)]?a[_0x155b65(0x24a)][_0x155b65(0x347)]:a[_0x155b65(0x24a)][_0x155b65(0x32a)],'segmentId':typeof _0xeb82eb==_0x155b65(0x1a9)?String(_0xeb82eb):'','segmentPage':Number(_0x4eb988!=null?_0x4eb988:-0x1)});}return _0x496c63[_0x155b65(0x279)](_0xc210a=>_0xc210a[_0x155b65(0x1a5)])||(_0x496c63[0x0]['isActive']=!0x0),_0x496c63;}class Ce extends a['RxDisposable']{constructor(){const _0x535933=_0x417150;super(...arguments),h(this,_0x535933(0x36d),new d['BehaviorSubject'](null)),h(this,_0x535933(0x133),this[_0x535933(0x36d)][_0x535933(0x28e)]());}[_0x417150(0x1d2)](_0x1bc0ae){const _0x2eb60a=_0x417150,{unitID:_0x4b82bb,memberID:_0xb53a7b,textRanges:_0xdc4259}=_0x1bc0ae,_0x41353c=Pe(_0xdc4259);if(_0x41353c==='')return;const _0x51e397={'unitID':_0x4b82bb,'memberID':_0xb53a7b,'selection':_0x41353c};this[_0x2eb60a(0x36d)][_0x2eb60a(0x19c)](_0x51e397);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x45f76b,_0x5b649c,_0x589de5,_0x54c330)=>{for(var _0xae5128=_0x54c330>0x1?void 0x0:_0x54c330?Ze(_0x5b649c,_0x589de5):_0x5b649c,_0x1cb6e9=_0x45f76b['length']-0x1,_0x3466d9;_0x1cb6e9>=0x0;_0x1cb6e9--)(_0x3466d9=_0x45f76b[_0x1cb6e9])&&(_0xae5128=_0x3466d9(_0xae5128)||_0xae5128);return _0xae5128;},L=(_0x5d0a5c,_0x26fb26)=>(_0x524f9a,_0x279b61)=>_0x26fb26(_0x524f9a,_0x279b61,_0x5d0a5c);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x206542,_0x4b5d6e,_0x35cebe,_0x35a07b,_0x47814c,_0x44183c,_0x3c22b2,_0x31d57a,_0x5cd304){const _0x136da0=_0x417150;super(),h(this,'_online',!0x1),h(this,_0x136da0(0x363),!0x1),h(this,_0x136da0(0x27d),new d['BehaviorSubject'](new Map())),h(this,_0x136da0(0x1a0),this['_cursorInfo$'][_0x136da0(0x28e)]()),h(this,_0x136da0(0x24d),new d[(_0x136da0(0x2af))]([])),h(this,_0x136da0(0x2ac),this[_0x136da0(0x24d)]['pipe'](d[_0x136da0(0x188)](et))),h(this,_0x136da0(0x2d2),a[_0x136da0(0x1c0)](_0x4aa476=>{const _0x306d90=_0x136da0,_0x181797={'eventID':m[_0x306d90(0x274)][_0x306d90(0x34a)],'data':{'unitID':this[_0x306d90(0x241)],'memberID':this['_session'][_0x306d90(0x126)](),'selection':Pe(_0x4aa476)}};this[_0x306d90(0x207)]['send'](_0x181797,this[_0x306d90(0x241)]);},tt)),(this['unitID']=_0x206542,this[_0x136da0(0x207)]=_0x4b5d6e,this[_0x136da0(0x22f)]=_0x35cebe,this[_0x136da0(0x31f)]=_0x35a07b,this['_memberService']=_0x47814c,this[_0x136da0(0x1c6)]=_0x44183c,this[_0x136da0(0x1cf)]=_0x3c22b2,this['_univerInstanceService']=_0x31d57a,this['_commandService']=_0x5cd304);}get[_0x417150(0x2f6)](){return this['_cursorInfo$']['getValue']();}get[_0x417150(0x1ea)](){const _0x3a87eb=_0x417150;return this[_0x3a87eb(0x24d)][_0x3a87eb(0x184)]();}[_0x417150(0x2f5)](){const _0x1e9a13=_0x417150;super[_0x1e9a13(0x2f5)](),this['_cursorInfo$'][_0x1e9a13(0x19c)](new Map()),this[_0x1e9a13(0x27d)][_0x1e9a13(0x1a6)](),this[_0x1e9a13(0x24d)][_0x1e9a13(0x19c)]([]),this['_roomMembers$'][_0x1e9a13(0x1a6)]();}[_0x417150(0x19f)](){const _0x21b02e=_0x417150;this['_init']||(this[_0x21b02e(0x363)]=!0x0,this[_0x21b02e(0x207)][_0x21b02e(0x175)][_0x21b02e(0x2cf)](d[_0x21b02e(0x1c5)](this[_0x21b02e(0x1ba)]))[_0x21b02e(0x28a)](_0x539a13=>{const _0x3a855b=_0x21b02e;_0x539a13===u[_0x3a855b(0x19b)][_0x3a855b(0x24b)]?this['_toggleOnline']():this[_0x3a855b(0x211)]();}),this[_0x21b02e(0x207)][_0x21b02e(0x374)][_0x21b02e(0x2cf)](d[_0x21b02e(0x1c5)](this[_0x21b02e(0x1ba)]))[_0x21b02e(0x28a)](_0x34e306=>{const _0x1417c4=_0x21b02e,_0x2352cc=_0x34e306[_0x1417c4(0x2da)];_0x2352cc===m[_0x1417c4(0x274)][_0x1417c4(0x34a)]&&this[_0x1417c4(0x31e)](_0x34e306),_0x2352cc===m[_0x1417c4(0x274)][_0x1417c4(0x2f4)]&&this[_0x1417c4(0x260)](_0x34e306);}),this['disposeWithMe'](this[_0x21b02e(0x365)][_0x21b02e(0x125)](_0x31c20b=>{const _0x7ad780=_0x21b02e,_0x33591d=_0x31c20b[_0x7ad780(0x36f)];_0x33591d!=null&&this[_0x7ad780(0x141)]&&_0x31c20b['id']===Y[_0x7ad780(0x29e)]['id']&&_0x33591d[_0x7ad780(0x136)]===this[_0x7ad780(0x241)]&&_0x33591d['isEditing']===!0x1&&_0x33591d[_0x7ad780(0x22a)]['length']>0x0&&this[_0x7ad780(0x2d2)](_0x33591d[_0x7ad780(0x22a)]);})),this[_0x21b02e(0x1c6)][_0x21b02e(0x133)][_0x21b02e(0x2cf)](d[_0x21b02e(0x1c5)](this[_0x21b02e(0x1ba)]))[_0x21b02e(0x28a)](_0x4bab11=>{const _0x3267be=_0x21b02e;if((_0x4bab11==null?void 0x0:_0x4bab11[_0x3267be(0x241)])!==this[_0x3267be(0x241)])return;const _0xa9420e={'eventID':m[_0x3267be(0x274)][_0x3267be(0x34a)],'data':_0x4bab11};this[_0x3267be(0x31e)](_0xa9420e);}),this[_0x21b02e(0x1ca)](this[_0x21b02e(0x365)][_0x21b02e(0x125)](_0x19688a=>{const _0x5d7c1e=_0x21b02e;if(_0x19688a[_0x5d7c1e(0x36f)]==null)return;const _0xdc87a0=_0x19688a[_0x5d7c1e(0x36f)];if(_0x19688a['id']!==Y[_0x5d7c1e(0x25e)]['id']||_0xdc87a0[_0x5d7c1e(0x136)]!==this[_0x5d7c1e(0x241)])return;const _0x543682={'id':'doc.mutation.rich-text-editing','params':_0xdc87a0},_0x4f2bab=this[_0x5d7c1e(0x2f6)];for(const [_0xed2b3,_0x1d2a3e]of _0x4f2bab){const _0x1e96b3={'id':_0x5d7c1e(0x123),'params':{'unitId':this[_0x5d7c1e(0x241)],'actions':null,'textRanges':_0x1d2a3e[_0x5d7c1e(0x22a)]}},_0x3da1f8=this[_0x5d7c1e(0x1cf)][_0x5d7c1e(0x2b4)](_0x543682,_0x1e96b3,!0x1);if(m[_0x5d7c1e(0x39b)](_0x3da1f8))throw _0x3da1f8[_0x5d7c1e(0x277)];_0x4f2bab[_0x5d7c1e(0x21f)](_0xed2b3,{..._0x1d2a3e,'ranges':_0x3da1f8[_0x5d7c1e(0x223)][_0x5d7c1e(0x36f)][_0x5d7c1e(0x1fe)]});}queueMicrotask(()=>{const _0x3cac08=_0x5d7c1e;this[_0x3cac08(0x27d)][_0x3cac08(0x19c)](_0x4f2bab);});})));}[_0x417150(0x31e)](_0x2c3842){const _0xd1203a=_0x417150;var _0x67e573,_0x162999;const {memberID:_0x4b771b,selection:_0x18e8dc}=_0x2c3842[_0xd1203a(0x32f)],_0x4cdb06=Je(_0x18e8dc),_0xf0cff1=(_0x162999=(_0x67e573=this[_0xd1203a(0x18d)][_0xd1203a(0x284)](this[_0xd1203a(0x241)],_0x4b771b))==null?void 0x0:_0x67e573[_0xd1203a(0x14a)])!=null?_0x162999:_0xd1203a(0x252),_0xff1a15={'color':this[_0xd1203a(0x31f)][_0xd1203a(0x180)](_0x4b771b),'name':_0xf0cff1,'ranges':_0x4cdb06},_0x3c465f=this[_0xd1203a(0x2f6)];_0x3c465f[_0xd1203a(0x21f)](_0x4b771b,_0xff1a15),this[_0xd1203a(0x27d)][_0xd1203a(0x19c)](_0x3c465f);}[_0x417150(0x260)](_0x52e693){const _0x3c4ccd=_0x417150,{memberID:_0x28b14c}=_0x52e693[_0x3c4ccd(0x32f)],_0x5b1236=this['cursorInfo'];_0x5b1236[_0x3c4ccd(0x1c9)](_0x28b14c),this[_0x3c4ccd(0x27d)]['next'](_0x5b1236);}[_0x417150(0x35a)](){const _0x1ff437=_0x417150;var _0x523eec;if(this['_online']=!0x0,((_0x523eec=this['_univerInstanceService'][_0x1ff437(0x226)]())==null?void 0x0:_0x523eec[_0x1ff437(0x189)]())!==this['unitID'])return;const _0x42cafb=this[_0x1ff437(0x22f)][_0x1ff437(0x359)](Y['DocSelectionManagerService'])[_0x1ff437(0x150)]();Array[_0x1ff437(0x2c4)](_0x42cafb)&&_0x42cafb[_0x1ff437(0x25d)]>0x0&&this['_updateLocalCursor'](_0x42cafb);}[_0x417150(0x211)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x417150(0x254)](a['Injector'])),L(0x3,a[_0x417150(0x254)](me)),L(0x4,a[_0x417150(0x254)](u[_0x417150(0x399)])),L(0x5,a[_0x417150(0x254)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x417150(0x360)]),L(0x8,a[_0x417150(0x1b9)])],fe);var st=Object[_0x417150(0x1fb)],it=(_0x46d344,_0x57e305,_0x15d474,_0x595bc2)=>{const _0x198894=_0x417150;for(var _0x49cb4c=_0x595bc2>0x1?void 0x0:_0x595bc2?st(_0x57e305,_0x15d474):_0x57e305,_0xc03f7e=_0x46d344[_0x198894(0x25d)]-0x1,_0xfb0aa7;_0xc03f7e>=0x0;_0xc03f7e--)(_0xfb0aa7=_0x46d344[_0xc03f7e])&&(_0x49cb4c=_0xfb0aa7(_0x49cb4c)||_0x49cb4c);return _0x49cb4c;},w=(_0x4ca205,_0x296551)=>(_0x4c48f3,_0x49fda0)=>_0x296551(_0x4c48f3,_0x49fda0,_0x4ca205);const nt=0x12c,rt=0x64,ot=()=>{let _0x3591c0=[],_0x566651=!0x1;return _0x1415c8=>{_0x3591c0['push'](_0x1415c8),_0x566651||(_0x566651=!0x0,setTimeout(()=>{const _0x10ed9f=_0x40a8;_0x3591c0[_0x10ed9f(0x195)](_0x4feb91=>_0x4feb91()),_0x3591c0=[],_0x566651=!0x1;}));};};let Se=class extends a[_0x417150(0x1c7)]{constructor(_0x5f3092,_0x3e762a,_0x14a8c0,_0x2ddd6b,_0x47df15,_0x9cd685,_0x145503,_0x2b9714){const _0x120d05=_0x417150;super(),h(this,_0x120d05(0x141),!0x1),h(this,_0x120d05(0x363),!0x1),h(this,_0x120d05(0x27d),new d[(_0x120d05(0x2af))](new Map())),h(this,_0x120d05(0x1a0),this[_0x120d05(0x27d)][_0x120d05(0x28e)]()),h(this,_0x120d05(0x24d),new d['BehaviorSubject']([])),h(this,_0x120d05(0x2ac),this[_0x120d05(0x24d)][_0x120d05(0x2cf)](d[_0x120d05(0x188)](nt))),h(this,_0x120d05(0x2d2),a[_0x120d05(0x1c0)]((_0x33a64c,_0x229eb9)=>{const _0x572bd2=_0x120d05,_0x1137c8={'eventID':m['CollaborationEvent'][_0x572bd2(0x34a)],'data':{'unitID':this[_0x572bd2(0x241)],'memberID':this[_0x572bd2(0x207)][_0x572bd2(0x126)](),'selection':Ee[_0x572bd2(0x299)](_0x33a64c,_0x229eb9['range'])}};this[_0x572bd2(0x207)][_0x572bd2(0x35e)](_0x1137c8,this[_0x572bd2(0x241)]);},rt)),(this[_0x120d05(0x241)]=_0x5f3092,this[_0x120d05(0x207)]=_0x3e762a,this[_0x120d05(0x22f)]=_0x14a8c0,this[_0x120d05(0x31f)]=_0x2ddd6b,this['_memberService']=_0x47df15,this['_univerInstanceService']=_0x9cd685,this[_0x120d05(0x365)]=_0x145503,this['_refRangeService']=_0x2b9714);}get['cursorInfo'](){const _0x2a2e7e=_0x417150;return this['_cursorInfo$'][_0x2a2e7e(0x184)]();}get[_0x417150(0x1ea)](){const _0x16d52d=_0x417150;return this[_0x16d52d(0x24d)][_0x16d52d(0x184)]();}['dispose'](){const _0x3a14f8=_0x417150;super[_0x3a14f8(0x2f5)](),this[_0x3a14f8(0x27d)][_0x3a14f8(0x19c)](new Map()),this['_cursorInfo$'][_0x3a14f8(0x1a6)](),this[_0x3a14f8(0x24d)][_0x3a14f8(0x19c)]([]),this[_0x3a14f8(0x24d)][_0x3a14f8(0x1a6)]();}[_0x417150(0x19f)](){const _0x250cb9=_0x417150;this[_0x250cb9(0x363)]||(this[_0x250cb9(0x363)]=!0x0,this[_0x250cb9(0x207)]['sessionStatus$']['pipe'](d[_0x250cb9(0x1c5)](this[_0x250cb9(0x1ba)]))[_0x250cb9(0x28a)](_0x24adca=>{const _0x989751=_0x250cb9;_0x24adca===u['SessionStatus'][_0x989751(0x24b)]?this['_toggleOnline']():this[_0x989751(0x211)]();}),this[_0x250cb9(0x207)][_0x250cb9(0x374)][_0x250cb9(0x2cf)](d[_0x250cb9(0x1c5)](this[_0x250cb9(0x1ba)]))[_0x250cb9(0x28a)](_0x259502=>{const _0x22129f=_0x250cb9,_0x47acae=_0x259502[_0x22129f(0x2da)];_0x47acae===m['CollaborationEvent'][_0x22129f(0x34a)]&&this[_0x22129f(0x31e)](_0x259502),_0x47acae===m[_0x22129f(0x274)][_0x22129f(0x2f4)]&&this[_0x22129f(0x260)](_0x259502);}),this[_0x250cb9(0x37d)](),this[_0x250cb9(0x1ca)](this['_commandService']['onCommandExecuted'](_0xee7d35=>{const _0x5d54f2=_0x250cb9;if(this[_0x5d54f2(0x141)]&&_0xee7d35['id']===g[_0x5d54f2(0x12b)]['id']&&_0xee7d35['params'][_0x5d54f2(0x136)]===this[_0x5d54f2(0x241)]){const _0x5c5125=_0xee7d35[_0x5d54f2(0x36f)];this['_updateLocalCursor'](_0x5c5125[_0x5d54f2(0x2ba)],_0x5c5125[_0x5d54f2(0x22e)][0x0]);}})));}['_onCursorUpdate'](_0x4be16c){const _0x5ec005=_0x417150;var _0x27fbf0,_0x1e36e8;const {memberID:_0x2b82ca,selection:_0x3d6c52}=_0x4be16c[_0x5ec005(0x32f)],{sheetName:_0x2a38d1,range:_0x1bb0de}=Ee[_0x5ec005(0x395)](_0x3d6c52),_0x160b27={'name':(_0x1e36e8=(_0x27fbf0=this[_0x5ec005(0x18d)]['getMember'](this['unitID'],_0x2b82ca))==null?void 0x0:_0x27fbf0[_0x5ec005(0x14a)])!=null?_0x1e36e8:_0x5ec005(0x252),'range':this[_0x5ec005(0x335)](_0x2a38d1,_0x1bb0de),'sheetID':_0x2a38d1,'color':this[_0x5ec005(0x31f)][_0x5ec005(0x180)](_0x2b82ca),'selection':_0x3d6c52},_0x556cbc=this[_0x5ec005(0x2f6)];_0x556cbc[_0x5ec005(0x21f)](_0x2b82ca,_0x160b27),this[_0x5ec005(0x27d)][_0x5ec005(0x19c)](_0x556cbc);}[_0x417150(0x260)](_0x531201){const _0x13e529=_0x417150,{memberID:_0xd23ba}=_0x531201[_0x13e529(0x32f)],_0xd6cda4=this[_0x13e529(0x2f6)];_0xd6cda4[_0x13e529(0x1c9)](_0xd23ba),this['_cursorInfo$']['next'](_0xd6cda4);}[_0x417150(0x335)](_0x3e2c3a,_0x371739){const _0x2445a9=_0x417150;var _0x2f96b5,_0x41c133;const _0x349cbf=(_0x41c133=(_0x2f96b5=this[_0x2445a9(0x28c)][_0x2445a9(0x229)](this['unitID']))==null?void 0x0:_0x2f96b5[_0x2445a9(0x2ec)](_0x3e2c3a))==null?void 0x0:_0x41c133['getMergeData']();return(_0x349cbf==null?void 0x0:_0x349cbf[_0x2445a9(0x3a5)](_0x367af1=>a[_0x2445a9(0x12c)][_0x2445a9(0x166)](_0x367af1,_0x371739)))||_0x371739;}[_0x417150(0x37d)](){const _0x4a152f=_0x417150,_0x1526ad=new a[(_0x4a152f(0x186))](),_0x170b29=ot(),_0x47ad4b=()=>{const _0x455cd0=_0x4a152f;_0x1526ad[_0x455cd0(0x2f5)]();const _0x104d6f=(_0x50bdbc,_0x3f2862,_0x260dc8,_0x4434a9)=>{const _0x48a19=_0x455cd0;let _0x3fe3c8=[];switch(_0x50bdbc['id']){case g[_0x48a19(0x2e7)]['DeleteRangeMoveLeftCommandId']:{_0x3fe3c8=g[_0x48a19(0x1ab)](_0x50bdbc,_0x4434a9);break;}case g[_0x48a19(0x2e7)]['DeleteRangeMoveUpCommandId']:{_0x3fe3c8=g['handleDeleteRangeMoveUp'](_0x50bdbc,_0x4434a9);break;}case g[_0x48a19(0x2e7)]['InsertColCommandId']:{_0x3fe3c8=g[_0x48a19(0x17d)](_0x50bdbc,_0x4434a9);break;}case g[_0x48a19(0x2e7)][_0x48a19(0x1e4)]:{_0x3fe3c8=g[_0x48a19(0x146)](_0x50bdbc,_0x4434a9);break;}case g[_0x48a19(0x2e7)]['InsertRangeMoveRightCommandId']:{_0x3fe3c8=g['handleInsertRangeMoveRight'](_0x50bdbc,_0x4434a9);break;}case g[_0x48a19(0x2e7)][_0x48a19(0x29a)]:{_0x3fe3c8=g[_0x48a19(0x348)](_0x50bdbc,_0x4434a9);break;}case g[_0x48a19(0x2e7)][_0x48a19(0x159)]:{_0x3fe3c8=g[_0x48a19(0x215)](_0x50bdbc,_0x4434a9);break;}case g['EffectRefRangId'][_0x48a19(0x15e)]:{_0x3fe3c8=g[_0x48a19(0x173)](_0x50bdbc,_0x4434a9);break;}case g[_0x48a19(0x2e7)][_0x48a19(0x1be)]:{_0x3fe3c8=g[_0x48a19(0x333)](_0x50bdbc,_0x4434a9);break;}}const _0x2bae54=g[_0x48a19(0x29d)](_0x3fe3c8,_0x4434a9),_0x580c3d=this['cursorInfo'][_0x48a19(0x359)](_0x3f2862);if(_0x580c3d&&_0x2bae54){const _0x398af1={..._0x580c3d,'range':_0x2bae54};this[_0x48a19(0x2f6)][_0x48a19(0x21f)](_0x3f2862,_0x398af1),_0x170b29(()=>{const _0xe6ed99=_0x48a19,_0x11f838=this[_0xe6ed99(0x139)][_0xe6ed99(0x1c2)](_0x2bae54,_0x46228b=>(_0x11f838[_0xe6ed99(0x2f5)](),_0x104d6f(_0x46228b,_0x3f2862,_0x260dc8,_0x2bae54)));_0x1526ad[_0xe6ed99(0x1ae)](_0x11f838);});}return{'redos':[],'undos':[]};};this[_0x455cd0(0x2f6)][_0x455cd0(0x195)]((_0x380278,_0x41c643)=>{const _0x1b3e3c=_0x455cd0,{range:_0x1c091f,sheetID:_0x2c6ea9}=_0x380278,_0x38ccf2=this[_0x1b3e3c(0x139)][_0x1b3e3c(0x1c2)](_0x1c091f,_0x47f04c=>(_0x38ccf2[_0x1b3e3c(0x2f5)](),_0x104d6f(_0x47f04c,_0x41c643,_0x2c6ea9,_0x1c091f)));_0x1526ad[_0x1b3e3c(0x1ae)](_0x38ccf2);});};this[_0x4a152f(0x1ca)](a[_0x4a152f(0x34b)](this['_cursorInfo$'][_0x4a152f(0x28a)](()=>{_0x47ad4b();})));}[_0x417150(0x35a)](){const _0x4b9dea=_0x417150;var _0x51cdd,_0x4ac695;if(this[_0x4b9dea(0x141)]=!0x0,((_0x51cdd=this[_0x4b9dea(0x28c)]['getFocusedUnit']())==null?void 0x0:_0x51cdd[_0x4b9dea(0x189)]())!==this[_0x4b9dea(0x241)])return;const _0xe6d2ae=(_0x4ac695=this[_0x4b9dea(0x22f)][_0x4b9dea(0x359)](g['SheetsSelectionsService'])[_0x4b9dea(0x393)]())==null?void 0x0:_0x4ac695[0x0],_0x14cb8c=this[_0x4b9dea(0x28c)][_0x4b9dea(0x138)](a[_0x4b9dea(0x316)][_0x4b9dea(0x2fa)])[_0x4b9dea(0x234)]();_0xe6d2ae&&_0x14cb8c&&this[_0x4b9dea(0x2d2)](_0x14cb8c[_0x4b9dea(0x33a)](),_0xe6d2ae);}['_toggleOffline'](){const _0x12ceb3=_0x417150;this[_0x12ceb3(0x141)]=!0x1;}};Se=it([w(0x2,a[_0x417150(0x254)](a[_0x417150(0x135)])),w(0x3,a['Inject'](me)),w(0x4,a[_0x417150(0x254)](u[_0x417150(0x399)])),w(0x5,a[_0x417150(0x360)]),w(0x6,a[_0x417150(0x1b9)]),w(0x7,a[_0x417150(0x254)](g[_0x417150(0x2f3)]))],Se);var at=Object[_0x417150(0x1fb)],ct=(_0x2f3828,_0xa4d19d,_0xb2ac29,_0x10203b)=>{const _0x4704c6=_0x417150;for(var _0x4d3234=_0x10203b>0x1?void 0x0:_0x10203b?at(_0xa4d19d,_0xb2ac29):_0xa4d19d,_0x530f7f=_0x2f3828[_0x4704c6(0x25d)]-0x1,_0x9f03e0;_0x530f7f>=0x0;_0x530f7f--)(_0x9f03e0=_0x2f3828[_0x530f7f])&&(_0x4d3234=_0x9f03e0(_0x4d3234)||_0x4d3234);return _0x4d3234;},ie=(_0x2a1dbe,_0x238b7d)=>(_0xace225,_0x5405c6)=>_0x238b7d(_0xace225,_0x5405c6,_0x2a1dbe);let x=class extends a[_0x417150(0x1c7)]{constructor(_0x14726d,_0x31338c,_0x149eb0){const _0xbb079d=_0x417150;super(),h(this,_0xbb079d(0x345),new Map()),h(this,'_entityInit$',new d[(_0xbb079d(0x26d))]()),(this['_univerInstanceService']=_0x14726d,this[_0xbb079d(0x22f)]=_0x31338c,this[_0xbb079d(0x15b)]=_0x149eb0,this['_init']());}[_0x417150(0x2f5)](){const _0x4bf822=_0x417150;super['dispose'](),this['_entityInit$'][_0x4bf822(0x1a6)](),this[_0x4bf822(0x345)][_0x4bf822(0x195)](_0x2a4da1=>_0x2a4da1['dispose']());}[_0x417150(0x2c6)](_0x6d32e8){const _0x589189=_0x417150;return this['_entities']['has'](_0x6d32e8)?this[_0x589189(0x345)][_0x589189(0x359)](_0x6d32e8)[_0x589189(0x1a0)]:this[_0x589189(0x2e0)][_0x589189(0x2cf)](d[_0x589189(0x1f2)](_0x2da6e0=>_0x2da6e0[_0x589189(0x241)]===_0x6d32e8),d[_0x589189(0x143)](_0x4131ea=>_0x4131ea[_0x589189(0x1a0)]));}['_init'](){const _0x23dce5=_0x417150;this['_univerInstanceService'][_0x23dce5(0x131)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x23dce5(0x2cf)](d['takeUntil'](this[_0x23dce5(0x1ba)]))[_0x23dce5(0x28a)](async _0x4c9bc2=>{const _0x395b92=_0x23dce5,_0x3b29aa=_0x4c9bc2[_0x395b92(0x189)](),_0x4c3eaf=await this[_0x395b92(0x22c)](_0x3b29aa);this[_0x395b92(0x2e0)][_0x395b92(0x19c)](_0x4c3eaf),this[_0x395b92(0x345)][_0x395b92(0x21f)](_0x3b29aa,_0x4c3eaf);}),this[_0x23dce5(0x28c)][_0x23dce5(0x131)](a[_0x23dce5(0x316)]['UNIVER_DOC'])[_0x23dce5(0x2cf)](d[_0x23dce5(0x1c5)](this[_0x23dce5(0x1ba)]))[_0x23dce5(0x2cf)](d[_0x23dce5(0x1f2)](_0x134faf=>!_0x134faf[_0x23dce5(0x189)]()[_0x23dce5(0x269)]('__')))[_0x23dce5(0x28a)](async _0x561034=>{const _0x42ccba=_0x23dce5,_0x420823=_0x561034['getUnitId'](),_0x2794ed=await this[_0x42ccba(0x32d)](_0x420823);this['_entityInit$'][_0x42ccba(0x19c)](_0x2794ed),this[_0x42ccba(0x345)]['set'](_0x420823,_0x2794ed);}),d[_0x23dce5(0x368)](this[_0x23dce5(0x28c)][_0x23dce5(0x25a)](a[_0x23dce5(0x316)][_0x23dce5(0x1db)]),this['_univerInstanceService'][_0x23dce5(0x25a)](a[_0x23dce5(0x316)][_0x23dce5(0x2fa)]))[_0x23dce5(0x2cf)](d[_0x23dce5(0x1c5)](this[_0x23dce5(0x1ba)]))[_0x23dce5(0x28a)](_0x217287=>{const _0x5af862=_0x23dce5,_0x294ecb=_0x217287[_0x5af862(0x189)](),_0x44efc4=this['_entities'][_0x5af862(0x359)](_0x294ecb);_0x44efc4&&(_0x44efc4[_0x5af862(0x2f5)](),this[_0x5af862(0x345)][_0x5af862(0x1c9)](_0x294ecb));});}async[_0x417150(0x22c)](_0x4baadf){const _0x11fdfd=_0x417150,_0x48d1a4=await this[_0x11fdfd(0x15b)][_0x11fdfd(0x199)](_0x4baadf),_0xaf7156=this[_0x11fdfd(0x22f)]['createInstance'](Se,_0x4baadf,_0x48d1a4);return _0xaf7156[_0x11fdfd(0x19f)](),_0xaf7156;}async[_0x417150(0x32d)](_0x304b92){const _0x67696e=_0x417150,_0xafcb55=await this['_collabSessionService'][_0x67696e(0x199)](_0x304b92),_0x2cfae6=this['_injector'][_0x67696e(0x37f)](fe,_0x304b92,_0xafcb55);return _0x2cfae6[_0x67696e(0x19f)](),_0x2cfae6;}};x=ct([ie(0x0,a[_0x417150(0x360)]),ie(0x1,a[_0x417150(0x254)](a[_0x417150(0x135)])),ie(0x2,a[_0x417150(0x254)](u[_0x417150(0x30e)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x494563,_0x1b727f){const _0x4bf683=_0x417150;let {radius:_0x16b20c,width:_0x9df843,height:_0xdfe216}=_0x1b727f;_0x16b20c=_0x16b20c!=null?_0x16b20c:0x0,_0x9df843=_0x9df843!=null?_0x9df843:0x1e,_0xdfe216=_0xdfe216!=null?_0xdfe216:0x1e;let _0x3334f9=0x0,_0x5f993a=0x0,_0x272331=0x0;_0x3334f9=_0x5f993a=_0x272331=Math[_0x4bf683(0x13b)](_0x16b20c,_0x9df843/0x2,_0xdfe216/0x2),_0x494563[_0x4bf683(0x243)](),_0x494563[_0x4bf683(0x17f)](_0x3334f9,0x0),_0x494563['lineTo'](_0x9df843-_0x5f993a,0x0),_0x494563[_0x4bf683(0x31b)](_0x9df843-_0x5f993a,_0x5f993a,_0x5f993a,Math['PI']*0x3/0x2,0x0,!0x1),_0x494563['lineTo'](_0x9df843,_0xdfe216-_0x272331),_0x494563['arc'](_0x9df843-_0x272331,_0xdfe216-_0x272331,_0x272331,0x0,Math['PI']/0x2,!0x1),_0x494563[_0x4bf683(0x2c8)](0x0,_0xdfe216),_0x494563[_0x4bf683(0x2c8)](0x0,_0x3334f9),_0x494563[_0x4bf683(0x31b)](_0x3334f9,_0x3334f9,_0x3334f9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x494563['closePath'](),_0x1b727f[_0x4bf683(0x1e0)]&&(_0x494563['save'](),_0x494563['fillStyle']=_0x1b727f[_0x4bf683(0x1e0)],_0x1b727f[_0x4bf683(0x1b5)]===_0x4bf683(0x19d)?_0x494563[_0x4bf683(0x1e0)]('evenodd'):_0x494563[_0x4bf683(0x1e0)](),_0x494563['restore']());}class ee extends p[_0x417150(0x330)]{constructor(_0x57a18a,_0x442b24){const _0x2b7083=_0x417150;super(_0x57a18a,_0x442b24),h(this,_0x2b7083(0x206)),h(this,'text'),(this[_0x2b7083(0x206)]=_0x442b24==null?void 0x0:_0x442b24[_0x2b7083(0x206)],this[_0x2b7083(0x290)]=_0x442b24==null?void 0x0:_0x442b24['text']);}static['drawWith'](_0xc616e3,_0x265936){const _0x3186b6=_0x417150,{text:_0xee532,color:_0x5b58d7}=_0x265936;_0xc616e3[_0x3186b6(0x23e)](),_0xc616e3[_0x3186b6(0x1c3)]=_0x3186b6(0x391);const _0x5ef732=_0xc616e3[_0x3186b6(0x22b)](_0xee532)[_0x3186b6(0x23f)],_0x33cffa=Math[_0x3186b6(0x13b)](_0x5ef732+0x2*ne,Re);_t(_0xc616e3,{'height':K,'radius':0x4,'width':_0x33cffa,'fill':_0x5b58d7}),_0xc616e3[_0x3186b6(0x1fc)]=_0x3186b6(0x227);const _0x160996=ne,_0x5cdb23=K-lt,_0x5e1286=Re-0x2*ne;if(_0x5ef732>_0x5e1286){let _0x4a59ec='',_0x4ca470=0x0;for(const _0xe2e234 of _0xee532){const _0x566e71=_0xc616e3[_0x3186b6(0x22b)](_0xe2e234)[_0x3186b6(0x23f)];if(_0x4ca470+_0x566e71<=_0x5e1286-_0xc616e3[_0x3186b6(0x22b)](_0x3186b6(0x214))[_0x3186b6(0x23f)])_0x4a59ec+=_0xe2e234,_0x4ca470+=_0x566e71;else{_0x4a59ec+='...';break;}}_0xc616e3[_0x3186b6(0x343)](_0x4a59ec,_0x160996,_0x5cdb23);}else _0xc616e3['fillText'](_0xee532,_0x160996,_0x5cdb23);_0xc616e3[_0x3186b6(0x20f)]();}['_draw'](_0x94f1){const _0x38e78b=_0x417150;ee[_0x38e78b(0x140)](_0x94f1,this);}}const re='collab-text-anchor-',ht=_0x417150(0x308),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x417150(0x134);class De{constructor(_0x3fec46,_0x519080,_0xeec4db,_0x14ce5f){const _0x96e49f=_0x417150;h(this,_0x96e49f(0x1d8),[]),h(this,'_anchor',null),h(this,_0x96e49f(0x309),null),h(this,_0x96e49f(0x371),null),h(this,_0x96e49f(0x129),null),h(this,_0x96e49f(0x155),null),(this[_0x96e49f(0x310)]=_0x3fec46,this[_0x96e49f(0x2fc)]=_0x519080,this[_0x96e49f(0x286)]=_0xeec4db,this[_0x96e49f(0x2aa)]=_0x14ce5f,this['_render']());}set[_0x417150(0x204)](_0x4b1dd3){const _0xb57db7=_0x417150;_0x4b1dd3?(this[_0xb57db7(0x371)]&&this['_anchorDot']['hide'](),this[_0xb57db7(0x309)]&&this['_textBubble'][_0xb57db7(0x120)]()):(this[_0xb57db7(0x371)]&&this[_0xb57db7(0x371)]['show'](),this['_textBubble']&&this[_0xb57db7(0x309)][_0xb57db7(0x2de)]());}['dispose'](){const _0x10a37c=_0x417150;for(const _0x5ec7c9 of this[_0x10a37c(0x1d8)])_0x5ec7c9[_0x10a37c(0x2f5)]();this[_0x10a37c(0x309)]&&this[_0x10a37c(0x309)][_0x10a37c(0x2f5)](),this['_anchorDot']&&this[_0x10a37c(0x371)][_0x10a37c(0x2f5)](),this[_0x10a37c(0x1ed)]&&this[_0x10a37c(0x1ed)][_0x10a37c(0x2f5)](),this[_0x10a37c(0x155)]&&this['_eventUnsubscribe']();}['_render'](){const _0x35d195=_0x417150;var _0x52eba5;const {_docSkeleton:_0x3b94d3,_document:_0x4ca6ba}=this,{color:_0x58698a,name:_0x31d5a1,ranges:_0x1ad2f3}=this[_0x35d195(0x310)],_0x1e1e10=_0x4ca6ba[_0x35d195(0x16c)](),{docsLeft:_0x15465e,docsTop:_0x11ffb7}=_0x1e1e10,_0x4e49e4=new b['NodePositionConvertToCursor'](_0x1e1e10,_0x3b94d3);for(const {startOffset:_0x2f55b5,endOffset:_0x5787ca,rangeType:_0x4b967c,segmentId:_0x5a4998,segmentPage:_0x4c12a2,collapsed:_0x1fc705,isActive:_0x626d17}of _0x1ad2f3){const _0x11ebd1=_0x3b94d3['findNodePositionByCharIndex'](_0x2f55b5,!0x0,_0x5a4998,_0x4c12a2);let _0x5d0d07=_0x3b94d3['findNodePositionByCharIndex'](_0x5787ca,!0x0,_0x5a4998,_0x4c12a2);if(_0x5d0d07==null&&(_0x5d0d07=_0x3b94d3[_0x35d195(0x1eb)](_0x5787ca-0x1,!0x1,_0x5a4998,_0x4c12a2)),_0x626d17){const {contentBoxPointGroup:_0x5821b8}=_0x4e49e4[_0x35d195(0x24c)](_0x5d0d07,_0x5d0d07);if(_0x5821b8[_0x35d195(0x25d)]===0x0)continue;this[_0x35d195(0x17e)](_0x58698a,_0x5821b8,_0x15465e,_0x11ffb7,_0x31d5a1),this[_0x35d195(0x155)]=this[_0x35d195(0x148)]();}if(_0x11ebd1&&_0x5d0d07){if(_0x4b967c===a['DOC_RANGE_TYPE'][_0x35d195(0x32a)]){const _0x9cd227=new b[(_0x35d195(0x185))](_0x1e1e10,_0x3b94d3),{pointGroup:_0x2bf9ce}=(_0x52eba5=_0x9cd227[_0x35d195(0x24c)](_0x11ebd1,_0x5d0d07))!=null?_0x52eba5:{};if(_0x2bf9ce==null||_0x2bf9ce[_0x35d195(0x25d)]===0x0)continue;this['_drawRectRange'](_0x58698a,_0x2bf9ce,_0x15465e,_0x11ffb7);}else{if(!_0x1fc705){const {borderBoxPointGroup:_0x4307a8}=_0x4e49e4[_0x35d195(0x24c)](_0x11ebd1,_0x5d0d07);if(_0x4307a8[_0x35d195(0x25d)]===0x0)continue;this['_drawTextRange'](_0x58698a,_0x4307a8,_0x15465e,_0x11ffb7);}}}}}[_0x417150(0x17e)](_0x61d1c8,_0x311e83,_0x1ff9ba,_0x13eedb,_0x21aec6){const _0xd8b5fa=_0x417150,_0x7e6e57=this[_0xd8b5fa(0x289)](_0x311e83),{left:_0x43abf0,top:_0x4727ed,height:_0x232e6b}=_0x7e6e57,_0x3c9929=this['_getScale'](),_0x57fe6a=ft/_0x3c9929,_0x4bba8f=new p['Rect'](re+a[_0xd8b5fa(0x370)]['generateRandomId'](k),{'left':_0x43abf0+_0x1ff9ba-_0x57fe6a,'top':_0x4727ed+_0x13eedb,'height':_0x232e6b,'width':dt,'fill':_0x61d1c8||p[_0xd8b5fa(0x364)](a[_0xd8b5fa(0x3a1)][_0xd8b5fa(0x293)],0x0),'strokeWidth':_0x57fe6a,'stroke':St,'evented':!0x0});this['_anchor']=_0x4bba8f,this['_scene'][_0xd8b5fa(0x23d)](_0x4bba8f,b[_0xd8b5fa(0x351)]);const _0x507030=new p['Rect'](re+a[_0xd8b5fa(0x370)][_0xd8b5fa(0x381)](k),{'left':_0x43abf0+_0x1ff9ba-_0x57fe6a,'top':_0x4727ed+_0x13eedb-oe/0x2,'height':oe,'width':oe,'fill':_0x61d1c8||p[_0xd8b5fa(0x364)](a[_0xd8b5fa(0x3a1)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x61d1c8||p[_0xd8b5fa(0x364)](a[_0xd8b5fa(0x3a1)][_0xd8b5fa(0x293)],0x0),'evented':!0x1});this[_0xd8b5fa(0x371)]=_0x507030,this[_0xd8b5fa(0x2fc)][_0xd8b5fa(0x23d)](_0x507030,b[_0xd8b5fa(0x351)]);const _0x5374ea=new ee(re+a['Tools'][_0xd8b5fa(0x381)](k),{'left':_0x43abf0+_0x1ff9ba-_0x57fe6a,'top':_0x4727ed+_0x13eedb-K,'text':_0x21aec6,'color':_0x61d1c8});this[_0xd8b5fa(0x309)]=_0x5374ea,this[_0xd8b5fa(0x2fc)][_0xd8b5fa(0x23d)](_0x5374ea,b[_0xd8b5fa(0x351)]),this[_0xd8b5fa(0x204)]=!0x1;}[_0x417150(0x148)](){const _0x263455=_0x417150,_0x4736e2=this[_0x263455(0x1ed)][_0x263455(0x273)][_0x263455(0x3a0)](()=>{const _0x262a9f=_0x263455;this[_0x262a9f(0x204)]=!0x0;}),_0x1f0cd9=this['_anchor']['onPointerLeave$'][_0x263455(0x3a0)](()=>{const _0x469e35=_0x263455;this[_0x469e35(0x129)]&&clearTimeout(this['_hideTimer']),this[_0x469e35(0x129)]=setTimeout(()=>{const _0x78ddbc=_0x469e35;this[_0x78ddbc(0x204)]=!0x1;},0x7d0);});return()=>{const _0x5d1a92=_0x263455;_0x4736e2['unsubscribe'](),_0x1f0cd9[_0x5d1a92(0x2c0)]();};}[_0x417150(0x2bb)](_0x2d1451,_0x447997,_0x120adf,_0xb2e71f){const _0x5e10c2=_0x417150,_0x376ecf=new a[(_0x5e10c2(0x246))](_0x2d1451)['setAlpha'](0.2)[_0x5e10c2(0x200)](),_0x49cda2=new p['RegularPolygon'](ht+a[_0x5e10c2(0x370)]['generateRandomId'](k),{'pointsGroup':_0x447997,'fill':_0x376ecf||p[_0x5e10c2(0x364)](a['COLORS'][_0x5e10c2(0x293)],0.2),'left':_0x120adf,'top':_0xb2e71f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5e10c2(0x1d8)]['push'](_0x49cda2),this[_0x5e10c2(0x2fc)][_0x5e10c2(0x23d)](_0x49cda2,b[_0x5e10c2(0x351)]);}['_drawRectRange'](_0x431b65,_0x2b0435,_0x34f021,_0x5ec3b5){const _0xd42221=_0x417150,_0xef3fea=new a[(_0xd42221(0x246))](_0x431b65)[_0xd42221(0x14f)](0.2)[_0xd42221(0x200)](),_0x30577f=new p[(_0xd42221(0x2f9))](ut+a['Tools'][_0xd42221(0x381)](k),{'pointsGroup':_0x2b0435,'fill':_0xef3fea||p['getColor'](a[_0xd42221(0x3a1)]['black'],0.2),'left':_0x34f021,'top':_0x5ec3b5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xd42221(0x1d8)][_0xd42221(0x278)](_0x30577f),this[_0xd42221(0x2fc)][_0xd42221(0x23d)](_0x30577f,b['TEXT_RANGE_LAYER_INDEX']);}[_0x417150(0x289)](_0x5d79e4){const _0x317682=_0x5d79e4[0x0],_0x3053bd=_0x317682[0x0],_0x5eb37d=_0x317682[0x2],{x:_0x421507,y:_0x2a1bdf}=_0x3053bd,{x:_0x5a6306,y:_0x19c650}=_0x5eb37d;return{'left':_0x421507,'top':_0x2a1bdf,'width':_0x5a6306-_0x421507,'height':_0x19c650-_0x2a1bdf};}[_0x417150(0x338)](){const _0x2a50ee=_0x417150,{scaleX:_0x54de97,scaleY:_0x258e14}=this[_0x2a50ee(0x2fc)][_0x2a50ee(0x172)]();return Math[_0x2a50ee(0x24e)](_0x54de97,_0x258e14);}}var It=Object[_0x417150(0x1fb)],vt=(_0x2ce528,_0x293cc3,_0x47ad33,_0x4cc447)=>{const _0x36d3e9=_0x417150;for(var _0x1663ad=_0x4cc447>0x1?void 0x0:_0x4cc447?It(_0x293cc3,_0x47ad33):_0x293cc3,_0x2a5d80=_0x2ce528[_0x36d3e9(0x25d)]-0x1,_0x3d7fec;_0x2a5d80>=0x0;_0x2a5d80--)(_0x3d7fec=_0x2ce528[_0x2a5d80])&&(_0x1663ad=_0x3d7fec(_0x1663ad)||_0x1663ad);return _0x1663ad;},W=(_0x5e0f3d,_0x4ccff8)=>(_0x5bed56,_0x46f229)=>_0x4ccff8(_0x5bed56,_0x46f229,_0x5e0f3d);let Ie=class extends a[_0x417150(0x1c7)]{constructor(_0x105205,_0x14ce50,_0x3fff9d,_0x4d8584,_0x256043){const _0xc134db=_0x417150;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this['_context']=_0x105205,this['_docSkeletonManagerService']=_0x14ce50,this['_collabCursorController']=_0x3fff9d,this[_0xc134db(0x365)]=_0x4d8584,this[_0xc134db(0x2d8)]=_0x256043,this['_init']());}['_init'](){const _0x18da1f=_0x417150,_0xbb7326=this[_0x18da1f(0x2fb)][_0x18da1f(0x136)],_0x13aa7d=this[_0x18da1f(0x244)];this[_0x18da1f(0x1ca)](d[_0x18da1f(0x2bc)]([this[_0x18da1f(0x357)][_0x18da1f(0x2c6)](_0xbb7326),this['_themeService'][_0x18da1f(0x2dd)]])[_0x18da1f(0x2cf)]($[_0x18da1f(0x203)](([_0x7dec64,_0x523e5a])=>({'skeleton':_0x13aa7d[_0x18da1f(0x38c)](),'cursors':[..._0x7dec64[_0x18da1f(0x2d6)]()][_0x18da1f(0x231)](_0x3560bd=>({..._0x3560bd,'color':this['_themeService'][_0x18da1f(0x17b)](_0x3560bd[_0x18da1f(0x206)])}))})))[_0x18da1f(0x28a)](_0x1674c6=>{const _0x445986=_0x18da1f;if(this[_0x445986(0x27a)](),_0x1674c6){const {skeleton:_0x21752d,cursors:_0x16aec9}=_0x1674c6;this[_0x445986(0x266)](_0x21752d,_0x16aec9);}})),this['_initResize'](),this[_0x18da1f(0x22d)]();}[_0x417150(0x266)](_0x9f21cd,_0x23344d){const _0x59a6e7=_0x417150,{scene:_0x26c8ed,mainComponent:_0x304f41}=this[_0x59a6e7(0x2fb)],_0x3cc094=_0x23344d[_0x59a6e7(0x203)](_0x5a17ce=>new De(_0x5a17ce,_0x26c8ed,_0x9f21cd,_0x304f41));this['_cursorShapes']=_0x3cc094,this[_0x59a6e7(0x313)]=_0x23344d;}[_0x417150(0x33e)](){const _0x17c651=_0x417150;this['_removeCollabCursors']();const {scene:_0x4bc5c2,mainComponent:_0x39bc3b}=this['_context'],_0x244f75=this['_docSkeletonManagerService'][_0x17c651(0x38c)](),_0x24f520=this[_0x17c651(0x313)]['map'](_0x5ec22b=>new De(_0x5ec22b,_0x4bc5c2,_0x244f75,_0x39bc3b));this['_cursorShapes']=_0x24f520;}[_0x417150(0x27a)](){const _0x1eb395=_0x417150;this[_0x1eb395(0x16d)][_0x1eb395(0x195)](_0x2c1797=>_0x2c1797['dispose']()),this[_0x1eb395(0x16d)]=[];}['_initCommandExecutedListener'](){const _0x589d72=_0x417150,_0x4c1cc0=[b[_0x589d72(0x1f3)]['id']];this[_0x589d72(0x1ca)](this[_0x589d72(0x365)][_0x589d72(0x125)](_0xa993ea=>{const _0x4027cb=_0x589d72;_0x4c1cc0[_0x4027cb(0x2ee)](_0xa993ea['id'])&&_0xa993ea[_0x4027cb(0x36f)][_0x4027cb(0x136)]===this[_0x4027cb(0x2fb)][_0x4027cb(0x136)]&&this[_0x4027cb(0x33e)]();}));}[_0x417150(0x2bf)](){const _0x312e48=_0x417150;this[_0x312e48(0x1ca)](a['fromEventSubject'](this[_0x312e48(0x2fb)][_0x312e48(0x28b)]['onTransformChange$'])['pipe']($[_0x312e48(0x1f2)](_0x3572d3=>_0x3572d3[_0x312e48(0x121)]===p[_0x312e48(0x128)][_0x312e48(0x15c)]),$[_0x312e48(0x307)](0x10))['subscribe'](()=>{const _0x1d39ce=_0x312e48;this[_0x1d39ce(0x33e)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x417150(0x174)])),W(0x2,a[_0x417150(0x254)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x417150(0x254)](a[_0x417150(0x14e)]))],Ie);function _0x9edb(){const _0x7e2739=['ILogService','_entities','defIds','TEXT','handleInsertRow','collabStatus.fetchMiss','UPDATE_CURSOR','toDisposable','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','concat','_initStatusListener','translate(.97)','setActiveRange','TEXT_RANGE_LAYER_INDEX','className','APPLY_REJECT','ISocketService','triggerDblclick','transformStateCache','_collabCursorController','skeleton','get','_toggleOnline','onLocalMutation','_updateSubUnitFromURLParams','_name','send','IMessageService','IUniverInstanceService','collaboration.closeRoom','colorChannel1','_init','getColor','_commandService','trim','labelPosition','merge','YUUMI_UNABLE_LOAD_URL','none','_getSaveTimeout','UnitStatus','_collabCursorState$','session.collaboration-timeout','params','Tools','_anchorDot','history','USER_NOT_INVITED_CODE','event$','_id','fromEvent','function','getVpScrollXYInfoByPosToVp','_logService','_config','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CollaborationStatus','_onRefRangeChange','UniverCollaborationClientUIPlugin','createInstance','WebURLService','generateRandomId','getConfig','_handleLeaveEvent','off-line-single','collabStatus.syncing','bottom','1028552awosql','exhaustSavingTask','INTERNAL_ERROR','YUUMI_RATE_OVER_LIMIT','INVITE_CODE_HAS_BEEN_UES','getSkeleton','_scheduleSaving','_cachedData','forwardRef','ACTIVE_UNIT_EVENT_CHANNEL','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','APPLY_REVISION_CONFILICT','getCurrentSelections','getStateCache','deserializeRangeWithSheet','runOnServer','ILocalStorageService','HTTPService','MemberService','removeParam','isTransformMutationFailure','setParam','size','permission.title','MessageType','subscribeEvent','COLORS','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','executeCommand','yellow.400','find','@univerjs/engine-render','_docTransformStateCacheService','Warning','jsx','_backgroundColor','getRelativeToViewportCoord','CONFLICT','collaboration.single-unit.warning','AWAITING','show','type','DataLoaderService','doc.mutation.rich-text-editing','unit','onCommandExecuted','getMemberID','activeSheet$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_hideTimer','_revisionService','SetSelectionsOperation','Rectangle','PENDING','collabStatus.synced','YUUMI_TABLE_NOT_FOUND_IN_UNIT','mutations','getTypeOfUnitAdded$','#fff','collabCursorState$','rgba(255,\x20255,\x20255,\x200.01)','Injector','unitId','_dataLoaderService','getCurrentUnitForType','_refRangeService','1428813wyjOBu','min','1em','Plugin','rxjs','current','drawWith','_online','mask','switchMap','YUUMI_AI_RUN_FAILED','transformMutationsWithChangeset','handleInsertRangeMoveDown','transformByState','_handleHover','_docSyncEditingCollabCursorService','name','_messageService','collaboration-client.offline-data-not-saved','use','ThemeService','setAlpha','getDocRanges','icon','CLOSE_ROOM','toString','post','_eventUnsubscribe','idSuffix','getCoordByCell','_unitStatus','MoveRangeCommandId','0\x200\x2016\x2016','_collabSessionService','resize','imageSourceType','RemoveColCommandId','DocIMEInputManagerService','MOBILE_HAS_BEEN_BOUND','loadOfflineData','div','INVITE_CODE_ALREADY_BOUND','replaceState','JOIN_ROOM_FAILED','contains','saveImage','HEADER_MENU','invokeId','symbol','sheetId','getOffsetConfig','_cursorShapes','_imageIoService','VIEW_MAIN','disposeUnit','transformSelections','getAncestorScale','handleIRemoveCol','DocSkeletonManagerService','sessionStatus$','univer-flex\x20univer-mr-2\x20univer-text-xl','_configService','_localStorageService','RemoteUniscriptService','getRenderById','getColorFromTheme','_labelPosition','handleInsertCol','_drawAnchor','moveTo','assignAColorForMemberID','YUUMI_ALL_TABLES_IS_INVALID','PY_RUNTIME_SCRIPT_ERROR','WECHAT_HAS_BEEN_BOUND','getValue','NodePositionConvertToRectRange','DisposableCollection','range','debounceTime','getUnitId','memberID','CommandType','svg','_memberService','setUndoRedoMutationParamsCache','@univerjs/network','registerDependencies','stringify','unload','tag','COMPLETION_FINISHED','forEach','Disposable','propertyIsEnumerable','_assignedColors','requireSession','selection','SessionStatus','next','evenodd','NO_OTHER_CLIENTS_EDITING','init','cursorInfo$','collabStatus.offline','updateOfflineData','reconnect','_createSocketURL','isActive','complete','off-line-single_clip0_910_343','xlink:href','string','location','handleDeleteRangeMoveLeft','M0\x200H16V16H0z','transform','add','CHANGESET_REVISION_CONFILICT','registerRenderModule','_removeClearOtherTimer','setTimeout','_scheduleClearOtherTimer','UNRECOGNIZED','fillRule','LOGIN_FAILED','assign','_notificationService','ICommandService','dispose$','BuiltInUIPart','addEventListener','SHEET_VIEWPORT_KEY','RemoveRowCommandId','YUUMI_URL_COL_OUT_OF_RANGE','debounce','round','registerRefRange','font','_urlService','takeUntil','_syncEditingCollabCursorService','RxDisposable','loadUnit','delete','disposeWithMe','_transformUndoRedoStack','connectInjector','all','APPLY_DUPLICATED','_transformService','@univerjs/sheets','ILocalCacheService','syncEditingCollabCursor','currentColor','SetWorksheetActivateCommand','SheetSkeletonManagerService','APPLY_NON_SEQUENTIAL_REVISION','BrowserCollaborationSocketService','_shapes','_renderManagerService','setShapeProps','UNIVER_DOC','269579tclHjQ','LICENSE_IMPORT_SIZE_EXCEEDED','12lXzeof','_docTransformIMECacheService','fill','INVALID_INVITE_CODE','body','INVITE_CODE_REQUIRED','InsertRangeMoveDownCommandId','@univerjs-pro/collaboration','key','row','_localeService','INVALID_ARGUMENT','roomMembers','findNodePositionByCharIndex','height','_anchor','whenReady','editingUnit','subunit','_colorIndex','filter','SetDocZoomRatioOperation','LICENSE_EXPORT_SIZE_EXCEEDED','SheetCollabCursorShape','redoState','ISnapshotServerService','INotificationService','react','getOwnPropertySymbols','getOwnPropertyDescriptor','fillStyle','FromArray','textRanges','IConfigService','toRgbString','IRenderManagerService','WebBrowserSingleActiveUnitService','map','_hover','[CollaborationDataLoaderController]','color','_session','registerBeforeClose','from','SNAPSHOT_INVALID_SNAPSHOT','getSheetObject','useObservable','_initEntityListener','top','restore','call','_toggleOffline','WebSocketService','SNAPSHOT_HAS_BEEN_REMOVED','...','handleMoveRange','onStarting','toStringTag','_status$','UniverIcon','attrs','DocStateChangeManagerService','1195rRVbmf','application/json','116206TSjFlk','set','executionId','SOCKET_FAILED','url(#off-line-single_clip0_910_343)','m2Prime','_docTransformSelectionsService','disableLocalCache','getFocusedUnit','#FFF','path','getUniverSheetInstance','ranges','measureText','_startSheetCollabCursor','_initCommandExecutedListener','selections','_injector','hovered','flatMap','transformIMECache','createSocket','getActiveSheet','IURLService','ITransformService','currentSkeleton$','@univerjs/core','_disabled','clearTimeout','YUUMI_NO_CUBOID_FOR_QUESTION','clearInterval','addObject','save','width','_handleHeartbeatEvent','unitID','_setupBeforeClosingHandler','beginPath','_docSkeletonManagerService','prototype','ColorKit','result','Tooltip','_docStateChangeManagerService','DOC_RANGE_TYPE','ONLINE','getRangePointData','_roomMembers$','max','defineProperty','DesktopCollaborationStatusDisplayController','@univerjs/ui','Unknown\x20user','PERMISSION_DENIED','Inject','CollaborationController','_initEvent','DependentOn','actions','UNAUTHENTICATED','getTypeOfUnitDisposed$','registerComponent','_saveCache','length','RichTextEditingMutation','_color','_onCursorDelete','getParam','Vector2','_updateURLWithCurrentState','Rect','_unitOnClients','_updateCollabCursors','useRef','_collaborationController','startsWith','CollaborationUIEventId','purple.300','OTHER_CLIENTS_EDITING','Subject','onPointerMove$','collabStatus.conflict','_doCreateSocket','Error','addHandlerCallback','onPointerEnter$','CollaborationEvent','onRendered','collaboration-client-ui.config','error','push','some','_removeCollabCursors','indexOf','searchParams','_cursorInfo$','_heartbeatTimer','addObjects','focused$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','search','_getSessionTicket','getMember','setItem','_docSkeleton','on-line-single_clip0_910_349','parse','_getAnchorBounding','subscribe','engine','_univerInstanceService','@univerjs/engine-formula','asObservable','createElement','text','CollaborationSocketService','storage','black','transformRemoteChangeset','_collaborationUIEventService','useCallback','_beforeCloseService','isTransformMutationsWithChangesetSuccess','serializeRangeWithSheet','InsertRowCommandId','apply','DocSelectionManagerService','runRefRangeMutations','SetTextSelectionsOperation','source','Module','YUUMI_ASYNCIO_CANCELLED','_clearOtherTimers','mergeOverrideWithDependencies','_initStatusComponent','url(#$1','IRemoteInstanceService','getUnhiddenWorksheets','setConfig','override','_document','CollaborationDataLoaderController','roomMembers$','_httpService','clsx','BehaviorSubject','/run/','pluginName','OffLineSingle','_getSheetObject','transformMutation','defs','Workbook','ENSURE_SNAPSHOT_EXECUTION','RevisionService','@univerjs/sheets-ui','subUnitId','_drawTextRange','combineLatest','_selfUnitIDs','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_initResize','unsubscribe','then','displayName','_instanceService','isArray','_draw','getCollabCursors$','_uiPartsService','lineTo','_docClipboardService','replaceDocRanges','deepClone','_sheetSkeletonManagerService','runId','_registerRenderDependencies','pipe','SYNCED','hasOwnProperty','_updateLocalCursor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_registerDependencies','sheetID','values','IDocClipboardService','_themeService','addClipboardHook','eventID','url(#on-line-single_clip0_910_349)','MUTATION','currentTheme$','hide','docStateChange$','_entityInit$','NOT_FOUND','_handleJoinEvent','collabStatus.notCollab','m1Prime','_scheduleHeartbeat','unshift','EffectRefRangId','ticket','6738JEJaTQ','TOO_MANY_REQUESTS','substring','getSheetBySheetId','collab-client.tooltip.reconnect','includes','LICENSE_MAX_UNITS_EXCEEDED','urlChange$','getCurrentRevOfUnit','green.600','RefRangeService','USERS_LEAVE','dispose','cursorInfo','getLocalCacheKey','FETCH_MISS','RegularPolygon','UNIVER_SHEET','_context','_scene','random','@univerjs/design','30zbkElY','with','UNDEFINED','href','_ensureSubject','_send','_setupSubUnitSync','popstate','throttleTime','collab-text-range-','_textBubble','_range','CONNECTOR_DATA_TOO_LARGE','onMouseMove','OTHER_CLIENT_EDITING','CollaborationSessionService','debug','_cursor','replace','_localCacheService','_cursors','@univerjs-pro/collaboration-client','useDependency','UniverInstanceType','_transformHistoryAndStateStack','CollaborationStatusDisplay','_saveTaskMap','@univerjs/rpc','arc','109160iBPEcM','259544kffEwK','_onCursorUpdate','_colorAssignService','IUIPartsService','NOT_COLLAB','@univerjs/docs-ui','OFFLINE','createIdentifier','jiqing.500','origin','LocaleService','has','getCurrent','RECT','getCollabEntity$','getCellPositionByOffset','_startDocCollabCursor','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','data','Shape','entries','LICENSE_DISTRO_REJECTED','handleIRemoveRow','sessionTicket','_getMergeRange','_hovered','clipPath','_getScale','split','getSheetId','endColumn','saveTaskMap','on-line-single','_refreshCollabCursors','_lastPointer','startRow','children','makeDirty','fillText'];_0x9edb=function(){return _0x7e2739;};return _0x9edb();}const gt=0x1,mt=1.5;class Ae extends p[_0x417150(0x330)]{constructor(_0x136033,_0x21987c){const _0xab3033=_0x417150;super(_0x136033,_0x21987c),h(this,_0xab3033(0x25f)),h(this,'_hovered',!0x1),h(this,_0xab3033(0x30a)),h(this,_0xab3033(0x35d),''),h(this,_0xab3033(0x17c),'top'),h(this,_0xab3033(0x11b)),(_0x21987c&&this[_0xab3033(0x1da)](_0x21987c),this[_0xab3033(0x273)][_0xab3033(0x3a0)](()=>this[_0xab3033(0x1da)]({'hovered':!0x0})),this['onPointerLeave$'][_0xab3033(0x3a0)](()=>this[_0xab3033(0x1da)]({'hovered':!0x1})));}[_0x417150(0x1da)](_0x373831){const _0x17ffdb=_0x417150;var _0x4c3fc4,_0x3b72b3,_0x24070b,_0x51fa5d,_0x1e73e5,_0x141053;this[_0x17ffdb(0x25f)]=(_0x4c3fc4=_0x373831['color'])!=null?_0x4c3fc4:this[_0x17ffdb(0x25f)],this[_0x17ffdb(0x336)]=(_0x3b72b3=_0x373831[_0x17ffdb(0x230)])!=null?_0x3b72b3:this['_hovered'],this[_0x17ffdb(0x30a)]=(_0x24070b=_0x373831[_0x17ffdb(0x187)])!=null?_0x24070b:this[_0x17ffdb(0x30a)],this[_0x17ffdb(0x35d)]=(_0x51fa5d=_0x373831[_0x17ffdb(0x14a)])!=null?_0x51fa5d:this[_0x17ffdb(0x35d)],this[_0x17ffdb(0x17c)]=(_0x1e73e5=_0x373831[_0x17ffdb(0x367)])!=null?_0x1e73e5:this[_0x17ffdb(0x17c)],this[_0x17ffdb(0x11b)]=(_0x141053=_0x373831['backgroundColor'])!=null?_0x141053:this['_backgroundColor'],this[_0x17ffdb(0x147)]({'width':_0x373831[_0x17ffdb(0x23f)],'height':_0x373831[_0x17ffdb(0x1ec)]});}[_0x417150(0x30c)](_0x2dc42f){const _0x4f278f=_0x417150,{row:_0x1449d8,column:_0x593df0}=_0x2dc42f;if(_0x1449d8>=this[_0x4f278f(0x30a)][_0x4f278f(0x340)]&&_0x1449d8<=this[_0x4f278f(0x30a)]['endRow']&&_0x593df0>=this[_0x4f278f(0x30a)]['startColumn']&&_0x593df0<=this[_0x4f278f(0x30a)][_0x4f278f(0x33b)]){this[_0x4f278f(0x1da)]({'hovered':!0x0});return;}this[_0x4f278f(0x1da)]({'hovered':!0x1});}[_0x417150(0x355)](_0x3c28de){return!0x1;}[_0x417150(0x2c5)](_0x3010b2){const _0xb09af2=_0x417150;p[_0xb09af2(0x264)]['drawWith'](_0x3010b2,{'width':this[_0xb09af2(0x23f)],'height':this[_0xb09af2(0x1ec)],'strokeWidth':mt,'stroke':this[_0xb09af2(0x25f)],'evented':!0x1,'fill':this[_0xb09af2(0x11b)]}),this[_0xb09af2(0x336)]&&(_0x3010b2[_0xb09af2(0x23e)](),_0x3010b2[_0xb09af2(0x1ad)](0x1,0x0,0x0,0x1,this['width'],this[_0xb09af2(0x17c)]==='bottom'?0x0:-0x14),ee[_0xb09af2(0x140)](_0x3010b2,{'text':this['_name'],'color':this['_color']}),_0x3010b2['restore']());}}var Ct=Object[_0x417150(0x1fb)],pt=(_0x4bf75b,_0x2ddef2,_0x5507ec,_0x1784ca)=>{const _0x3708d3=_0x417150;for(var _0x1d45d3=_0x1784ca>0x1?void 0x0:_0x1784ca?Ct(_0x2ddef2,_0x5507ec):_0x2ddef2,_0x44b05e=_0x4bf75b[_0x3708d3(0x25d)]-0x1,_0x248b5a;_0x44b05e>=0x0;_0x44b05e--)(_0x248b5a=_0x4bf75b[_0x44b05e])&&(_0x1d45d3=_0x248b5a(_0x1d45d3)||_0x1d45d3);return _0x1d45d3;},ae=(_0xb9444e,_0x500494)=>(_0x2487f5,_0x11d0c5)=>_0x500494(_0x2487f5,_0x11d0c5,_0xb9444e);const bt=0x1389;let ve=class extends a[_0x417150(0x1c7)]{constructor(_0x3ea8ba,_0x3510c7,_0x4797d4,_0x9bc13e){const _0x52399d=_0x417150;super(),h(this,_0x52399d(0x313),new Set()),h(this,_0x52399d(0x33f),null),(this[_0x52399d(0x2fb)]=_0x3ea8ba,this[_0x52399d(0x2cc)]=_0x3510c7,this['_collabCursorController']=_0x4797d4,this[_0x52399d(0x2d8)]=_0x9bc13e,this[_0x52399d(0x363)]());}[_0x417150(0x363)](){const _0x289254=_0x417150;this['_sheetSkeletonManagerService'][_0x289254(0x237)][_0x289254(0x2cf)]($[_0x289254(0x1c5)](this[_0x289254(0x1ba)]),$[_0x289254(0x143)](_0x3b4e25=>{const _0x22b5c0=_0x289254;if(_0x3b4e25){const _0x3589e8=_0x3b4e25[_0x22b5c0(0x16b)];return d[_0x22b5c0(0x2bc)](this[_0x22b5c0(0x357)]['getCollabCursors$'](this['_context'][_0x22b5c0(0x136)]),this['_themeService'][_0x22b5c0(0x2dd)])[_0x22b5c0(0x2cf)]($[_0x22b5c0(0x203)](([_0x13c1a5,_0xe009a4])=>{const _0xaa8de5=_0x22b5c0,_0xbc8672=new Map();return _0x13c1a5[_0xaa8de5(0x195)]((_0x568e57,_0x3d78a5)=>{const _0x36fa41=_0xaa8de5;if(_0x568e57[_0x36fa41(0x2d5)]===_0x3589e8){const _0x972770={..._0x568e57};_0x972770[_0x36fa41(0x206)]=this['_themeService'][_0x36fa41(0x17b)](_0x568e57[_0x36fa41(0x206)]),_0xbc8672[_0x36fa41(0x21f)](_0x3d78a5,_0x972770);}}),{'skeleton':_0x3b4e25,'cursors':_0xbc8672};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x289254(0x28a)](({skeleton:_0x545c99,cursors:_0xf99a4c})=>{const _0x5e4002=_0x289254;this[_0x5e4002(0x27a)](),_0x545c99&&this[_0x5e4002(0x266)](_0x545c99,_0xf99a4c);}),this[_0x289254(0x2cc)][_0x289254(0x237)][_0x289254(0x28a)](_0x3e7e8e=>{const _0xd1ab36=_0x289254;if(_0x3e7e8e==null)return;const {skeleton:_0x32a1b4}=_0x3e7e8e,{scene:_0x2b02e1}=this[_0xd1ab36(0x2fb)];_0x2b02e1[_0xd1ab36(0x26e)][_0xd1ab36(0x3a0)](a[_0xd1ab36(0x1c0)](_0x80311f=>{const _0x19464e=_0xd1ab36;var _0xb5059f,_0x8d894b;const {offsetX:_0x7db5e7,offsetY:_0x332a57}=_0x80311f,{x:_0x592f32,y:_0x27593b}=_0x2b02e1[_0x19464e(0x11c)](p['Vector2'][_0x19464e(0x1fd)]([_0x7db5e7,_0x332a57])),{scaleX:_0x599081,scaleY:_0x38f3b9}=_0x2b02e1[_0x19464e(0x172)](),_0x35f35a=_0x2b02e1['getViewport'](p[_0x19464e(0x1bd)][_0x19464e(0x16f)]),_0x27d896=_0x2b02e1[_0x19464e(0x378)](p[_0x19464e(0x262)][_0x19464e(0x1fd)]([_0x592f32,_0x27593b]),_0x35f35a),_0x7d6bac=_0x32a1b4[_0x19464e(0x32c)](_0x7db5e7,_0x332a57,_0x599081,_0x38f3b9,_0x27d896);((_0xb5059f=this[_0x19464e(0x33f)])==null?void 0x0:_0xb5059f['column'])===_0x7d6bac['column']&&((_0x8d894b=this[_0x19464e(0x33f)])==null?void 0x0:_0x8d894b[_0x19464e(0x1e7)])===_0x7d6bac[_0x19464e(0x1e7)]||this['_cursors'][_0x19464e(0x195)](_0x4dcb82=>{const _0x4be8d6=_0x19464e;_0x4dcb82[_0x4be8d6(0x30c)](_0x7d6bac);});},0x64));});}['_updateCollabCursors'](_0x32acde,_0x4d8a0e){const _0x3c9329=_0x417150;var _0x24449f;const _0xc91883=(_0x24449f=this[_0x3c9329(0x2cc)][_0x3c9329(0x329)]())==null?void 0x0:_0x24449f[_0x3c9329(0x358)];if(!_0xc91883)return;const _0x55a869=this['_getSheetObject']();if(!_0x55a869)return;this[_0x3c9329(0x313)][_0x3c9329(0x195)](_0x4a82e9=>{const _0xe417b9=_0x3c9329;_0x4a82e9[_0xe417b9(0x342)]();});const {scene:_0x45e3c7}=_0x55a869,_0x354a4c=Et(Array[_0x3c9329(0x209)](_0x4d8a0e[_0x3c9329(0x2d6)]()))[_0x3c9329(0x203)](_0x4394e3=>{const _0xc63a5e=_0x3c9329,{color:_0x52075d,range:_0x3af948,name:_0x2ad2c5,selection:_0x50a359,sheetID:_0x404cb4}=_0x4394e3,{startColumn:_0x3b5d4c,startRow:_0x11cd73,endColumn:_0x279392,endRow:_0x31b662}=_0x3af948,_0x209d51=X[_0xc63a5e(0x157)](_0x11cd73,_0x3b5d4c,_0x45e3c7,_0xc91883),_0x507756=X['getCoordByCell'](_0x31b662,_0x279392,_0x45e3c7,_0xc91883),{columnHeaderHeightAndMarginTop:_0x329b46}=_0xc91883,{startX:_0x51a647,startY:_0x5c473a}=_0x209d51,{endX:_0x2d4d54,endY:_0x57b176}=_0x507756,_0x52c266=_0x2d4d54-_0x51a647,_0x1a2adb=_0x57b176-_0x5c473a,_0x259b9c={'labelPosition':_0x5c473a-_0x329b46>=K?_0xc63a5e(0x20e):_0xc63a5e(0x386),'sheetID':_0x404cb4,'range':_0x3af948,'color':_0x52075d,'name':_0x2ad2c5,'selection':_0x50a359,'left':_0x51a647,'top':_0x5c473a,'width':_0x52c266,'height':_0x1a2adb,'evented':!0x1,'zIndex':bt};return new Ae(_0x2ad2c5,_0x259b9c);});_0x45e3c7[_0x3c9329(0x27f)](_0x354a4c,gt),this[_0x3c9329(0x313)]=new Set(_0x354a4c);}[_0x417150(0x27a)](){const _0x1bab07=_0x417150;var _0x2098d3;(_0x2098d3=this[_0x1bab07(0x313)])==null||_0x2098d3[_0x1bab07(0x195)](_0x4f4231=>_0x4f4231[_0x1bab07(0x2f5)]());}[_0x417150(0x2b3)](){const _0xe5de75=_0x417150;return X[_0xe5de75(0x20b)](this[_0xe5de75(0x2fb)][_0xe5de75(0x124)],this[_0xe5de75(0x2fb)]);}};ve=pt([ae(0x1,a[_0x417150(0x254)](X[_0x417150(0x1d5)])),ae(0x2,a[_0x417150(0x254)](x)),ae(0x3,a[_0x417150(0x254)](a[_0x417150(0x14e)]))],ve);function Et(_0x4b9a71){const _0x245e6d=_0x417150,_0x4b767f=new Map();return _0x4b9a71['forEach'](_0x676070=>{const _0x304e02=_0x40a8;if(_0x4b767f[_0x304e02(0x328)](_0x676070['selection'])){const _0x55c763=_0x4b767f[_0x304e02(0x359)](_0x676070[_0x304e02(0x19a)]);_0x55c763[_0x304e02(0x14a)]+=',\x20'+_0x676070[_0x304e02(0x14a)];}else _0x4b767f[_0x304e02(0x21f)](_0x676070[_0x304e02(0x19a)],_0x676070);}),Array[_0x245e6d(0x209)](_0x4b767f[_0x245e6d(0x2d6)]());}var E=function(){const _0x1b6b9c=_0x417150;return E=Object[_0x1b6b9c(0x1b7)]||function(_0x2123d0){const _0x4e8f0e=_0x1b6b9c;for(var _0x25832f,_0x35623e=0x1,_0x2df3fc=arguments[_0x4e8f0e(0x25d)];_0x35623e<_0x2df3fc;_0x35623e++){_0x25832f=arguments[_0x35623e];for(var _0x381e02 in _0x25832f)Object[_0x4e8f0e(0x245)][_0x4e8f0e(0x2d1)][_0x4e8f0e(0x210)](_0x25832f,_0x381e02)&&(_0x2123d0[_0x381e02]=_0x25832f[_0x381e02]);}return _0x2123d0;},E[_0x1b6b9c(0x29b)](this,arguments);},Tt=function(_0x431832,_0xc5c4ac){const _0x4c5452=_0x417150;var _0x1921dd={};for(var _0x405ce7 in _0x431832)Object['prototype'][_0x4c5452(0x2d1)][_0x4c5452(0x210)](_0x431832,_0x405ce7)&&_0xc5c4ac[_0x4c5452(0x27b)](_0x405ce7)<0x0&&(_0x1921dd[_0x405ce7]=_0x431832[_0x405ce7]);if(_0x431832!=null&&typeof Object[_0x4c5452(0x1fa)]==_0x4c5452(0x377)){for(var _0x36c129=0x0,_0x405ce7=Object[_0x4c5452(0x1fa)](_0x431832);_0x36c129<_0x405ce7['length'];_0x36c129++)_0xc5c4ac[_0x4c5452(0x27b)](_0x405ce7[_0x36c129])<0x0&&Object[_0x4c5452(0x245)][_0x4c5452(0x197)][_0x4c5452(0x210)](_0x431832,_0x405ce7[_0x36c129])&&(_0x1921dd[_0x405ce7[_0x36c129]]=_0x431832[_0x405ce7[_0x36c129]]);}return _0x1921dd;},pe=M[_0x417150(0x38f)](function(_0x4984e4,_0xcdae18){const _0x3dd679=_0x417150;var _0xaca499=_0x4984e4[_0x3dd679(0x151)],_0xd456ee=_0x4984e4['id'],_0x54f681=_0x4984e4[_0x3dd679(0x352)],_0x48c986=_0x4984e4['extend'],_0x339e39=Tt(_0x4984e4,['icon','id',_0x3dd679(0x352),'extend']),_0x3db404='univerjs-icon\x20univerjs-icon-'['concat'](_0xd456ee,'\x20')[_0x3dd679(0x34d)](_0x54f681||'')[_0x3dd679(0x366)](),_0x39d5e0=M[_0x3dd679(0x267)]('_'['concat'](Dt()));return we(_0xaca499,''[_0x3dd679(0x34d)](_0xd456ee),{'defIds':_0xaca499['defIds'],'idSuffix':_0x39d5e0[_0x3dd679(0x13f)]},E({'ref':_0xcdae18,'className':_0x3db404},_0x339e39),_0x48c986);});function we(_0x2fa9af,_0x5c888b,_0xcbebb1,_0x1ae49e,_0xc8f929){const _0x20b1e5=_0x417150;return M[_0x20b1e5(0x28f)](_0x2fa9af[_0x20b1e5(0x193)],E(E({'key':_0x5c888b},Ot(_0x2fa9af,_0xcbebb1,_0xc8f929)),_0x1ae49e),(Rt(_0x2fa9af,_0xcbebb1)['children']||[])[_0x20b1e5(0x203)](function(_0x19d402,_0x450d37){return we(_0x19d402,''['concat'](_0x5c888b,'-')['concat'](_0x2fa9af['tag'],'-')['concat'](_0x450d37),_0xcbebb1,void 0x0,_0xc8f929);}));}function Ot(_0x554611,_0x31d0fa,_0x4484b3){const _0x322726=_0x417150;var _0x20fccd=E({},_0x554611[_0x322726(0x21a)]);_0x4484b3!=null&&_0x4484b3[_0x322726(0x362)]&&_0x20fccd[_0x322726(0x1e0)]==='colorChannel1'&&(_0x20fccd[_0x322726(0x1e0)]=_0x4484b3[_0x322726(0x362)]),_0x554611[_0x322726(0x193)]===_0x322726(0x142)&&_0x20fccd['id']&&(_0x20fccd['id']=_0x20fccd['id']+_0x31d0fa['idSuffix']),Object[_0x322726(0x331)](_0x20fccd)[_0x322726(0x195)](function(_0x10b76d){const _0x2812e0=_0x322726;var _0x11f6f2=_0x10b76d[0x0],_0x4c7730=_0x10b76d[0x1];_0x11f6f2===_0x2812e0(0x142)&&typeof _0x4c7730==_0x2812e0(0x1a9)&&(_0x20fccd[_0x11f6f2]=_0x4c7730[_0x2812e0(0x311)](/url\(#(.*)\)/,_0x2812e0(0x2a5)[_0x2812e0(0x34d)](_0x31d0fa[_0x2812e0(0x156)],')')));});var _0xc63705=_0x31d0fa[_0x322726(0x346)];return!_0xc63705||_0xc63705['length']===0x0||(_0x554611[_0x322726(0x193)]===_0x322726(0x14d)&&_0x20fccd[_0x322726(0x1a8)]&&(_0x20fccd[_0x322726(0x1a8)]=_0x20fccd[_0x322726(0x1a8)]+_0x31d0fa[_0x322726(0x156)]),Object[_0x322726(0x331)](_0x20fccd)['forEach'](function(_0x4e1d08){const _0x3af591=_0x322726;var _0x10ba28=_0x4e1d08[0x0],_0x1e106e=_0x4e1d08[0x1];typeof _0x1e106e=='string'&&(_0x20fccd[_0x10ba28]=_0x1e106e[_0x3af591(0x311)](/url\(#(.*)\)/,_0x3af591(0x2a5)[_0x3af591(0x34d)](_0x31d0fa[_0x3af591(0x156)],')')));})),_0x20fccd;}function Rt(_0x1ec5bd,_0x400e3c){const _0x1d0732=_0x417150;var _0x28aa76,_0x2b42c7=_0x400e3c['defIds'];return!_0x2b42c7||_0x2b42c7[_0x1d0732(0x25d)]===0x0?_0x1ec5bd:_0x1ec5bd[_0x1d0732(0x193)]===_0x1d0732(0x2b5)&&(!((_0x28aa76=_0x1ec5bd[_0x1d0732(0x341)])===null||_0x28aa76===void 0x0)&&_0x28aa76[_0x1d0732(0x25d)])?E(E({},_0x1ec5bd),{'children':_0x1ec5bd[_0x1d0732(0x341)][_0x1d0732(0x203)](function(_0x3f258e){const _0x3ef5ab=_0x1d0732;return typeof _0x3f258e[_0x3ef5ab(0x21a)]['id']==_0x3ef5ab(0x1a9)&&_0x2b42c7&&_0x2b42c7[_0x3ef5ab(0x27b)](_0x3f258e[_0x3ef5ab(0x21a)]['id'])>-0x1?E(E({},_0x3f258e),{'attrs':E(E({},_0x3f258e[_0x3ef5ab(0x21a)]),{'id':_0x3f258e[_0x3ef5ab(0x21a)]['id']+_0x400e3c[_0x3ef5ab(0x156)]})}):_0x3f258e;})}):_0x1ec5bd;}function Dt(){const _0x1162b7=_0x417150;return Math[_0x1162b7(0x2fd)]()[_0x1162b7(0x153)](0x24)[_0x1162b7(0x2eb)](0x2,0x8);}pe[_0x417150(0x2c2)]=_0x417150(0x219);var Ut={'tag':_0x417150(0x18c),'attrs':{'fill':_0x417150(0x36a),'viewBox':_0x417150(0x15a),'width':_0x417150(0x13c),'height':_0x417150(0x13c)},'children':[{'tag':'g','attrs':{'clipPath':_0x417150(0x222)},'children':[{'tag':_0x417150(0x228),'attrs':{'stroke':_0x417150(0x1d3),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x417150(0x1c1),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x417150(0x337),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x417150(0x1a7)]},ye=M[_0x417150(0x38f)](function(_0x49af1b,_0x80fac8){const _0x1edbbc=_0x417150;return M['createElement'](pe,Object[_0x1edbbc(0x1b7)]({},_0x49af1b,{'id':_0x1edbbc(0x384),'ref':_0x80fac8,'icon':Ut}));});ye[_0x417150(0x2c2)]=_0x417150(0x2b2);var Nt={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x417150(0x13c)},'children':[{'tag':'g','attrs':{'clipPath':_0x417150(0x2db)},'children':[{'tag':_0x417150(0x228),'attrs':{'stroke':'currentColor','d':_0x417150(0x34c),'strokeLinecap':_0x417150(0x1c1),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x417150(0x2b5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x417150(0x287)},'children':[{'tag':'path','attrs':{'fill':_0x417150(0x132),'d':_0x417150(0x1ac),'transform':_0x417150(0x34f)}}]}]}],'defIds':[_0x417150(0x287)]},$e=M[_0x417150(0x38f)](function(_0x500e61,_0x37659f){const _0x24b996=_0x417150;return M[_0x24b996(0x28f)](pe,Object['assign']({},_0x500e61,{'id':_0x24b996(0x33d),'ref':_0x37659f,'icon':Nt}));});$e['displayName']='OnLineSingle';function Mt(_0x2e50d0){const _0x197265=_0x417150;switch(_0x2e50d0){case u[_0x197265(0x37c)]['OFFLINE']:return _0x197265(0x1a1);case u['CollaborationStatus'][_0x197265(0x11d)]:return _0x197265(0x26f);case u['CollaborationStatus'][_0x197265(0x2f8)]:return _0x197265(0x349);case u[_0x197265(0x37c)][_0x197265(0x321)]:return _0x197265(0x2e3);case u[_0x197265(0x37c)][_0x197265(0x11f)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x197265(0x385);case u['CollaborationStatus'][_0x197265(0x2d0)]:case u['CollaborationStatus'][_0x197265(0x12d)]:return _0x197265(0x12e);}}function xe(_0x110623){const _0x238c8c=_0x417150,{status$:_0x1aaa5b}=_0x110623,_0x3a7804=T[_0x238c8c(0x20c)](_0x1aaa5b,u[_0x238c8c(0x37c)]['NOT_COLLAB']),_0x5b9d63=T['useDependency'](a[_0x238c8c(0x327)]),_0x260c15=T[_0x238c8c(0x315)](u[_0x238c8c(0x30e)]),_0x1b9104=_0x3a7804!==u[_0x238c8c(0x37c)][_0x238c8c(0x323)],_0x346cbb=_0x5b9d63['t'](Mt(_0x3a7804)),_0x49ba6d=_0x1b9104?P['jsx']($e,{}):P[_0x238c8c(0x11a)](ye,{}),_0x25316b=M[_0x238c8c(0x296)](()=>{const _0x18f145=_0x238c8c;_0x1b9104||_0x260c15[_0x18f145(0x1a3)]();},[_0x1b9104,_0x260c15]);function _0x2470c2(){const _0x910640=_0x238c8c;return P['jsxs'](_0x910640(0x162),{'className':'univer-flex\x20univer-items-center','onClick':_0x25316b,'children':[P[_0x910640(0x11a)]('div',{'className':D[_0x910640(0x2ae)](_0x910640(0x176),{'univer-text-green-500':_0x1b9104,'univer-text-red-500':!_0x1b9104}),'children':_0x49ba6d}),P[_0x910640(0x11a)](_0x910640(0x162),{'className':_0x910640(0x281),'children':_0x346cbb})]});}return _0x1b9104?_0x2470c2():P[_0x238c8c(0x11a)](D[_0x238c8c(0x248)],{'title':_0x5b9d63['t'](_0x238c8c(0x2ed)),'children':_0x2470c2()});}var Lt=Object[_0x417150(0x1fb)],Pt=(_0x209ccf,_0x15f396,_0x98327,_0x717f59)=>{const _0x462ac6=_0x417150;for(var _0x2ce507=_0x717f59>0x1?void 0x0:_0x717f59?Lt(_0x15f396,_0x98327):_0x15f396,_0x212919=_0x209ccf[_0x462ac6(0x25d)]-0x1,_0x4995a8;_0x212919>=0x0;_0x212919--)(_0x4995a8=_0x209ccf[_0x212919])&&(_0x2ce507=_0x4995a8(_0x2ce507)||_0x2ce507);return _0x2ce507;},V=(_0x406d21,_0x254bdb)=>(_0x148145,_0x49968f)=>_0x254bdb(_0x148145,_0x49968f,_0x406d21);exports[_0x417150(0x250)]=class extends a[_0x417150(0x196)]{constructor(_0x2a8dac,_0x22fdd3,_0x4cbe8e,_0x2b6164){const _0x4ec48d=_0x417150;super(),h(this,'_status$',new d[(_0x4ec48d(0x2af))](u['CollaborationStatus']['NOT_COLLAB'])),(this['_univerInstanceService']=_0x2a8dac,this['_injector']=_0x22fdd3,this['_collaborationController']=_0x4cbe8e,this['_uiPartsService']=_0x2b6164,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x417150(0x34e)](){const _0x55f6e1=_0x417150;this[_0x55f6e1(0x1ca)](this[_0x55f6e1(0x28c)][_0x55f6e1(0x280)][_0x55f6e1(0x2cf)](d[_0x55f6e1(0x143)](()=>{const _0x17e4f0=_0x55f6e1,_0x48a2a3=this['_univerInstanceService'][_0x17e4f0(0x226)]();return _0x48a2a3?this[_0x17e4f0(0x268)][_0x17e4f0(0x32b)](_0x48a2a3[_0x17e4f0(0x189)]()):d['of'](null);}),d[_0x55f6e1(0x143)](_0x4e3fb2=>_0x4e3fb2?_0x4e3fb2['status$']:d['of'](u['CollaborationStatus'][_0x55f6e1(0x321)])))[_0x55f6e1(0x28a)](_0x1cc043=>{const _0x3d32ac=_0x55f6e1;this[_0x3d32ac(0x218)]['next'](_0x1cc043);}));}[_0x417150(0x2a4)](){const _0x14a13a=_0x417150;this[_0x14a13a(0x1ca)](this[_0x14a13a(0x2c7)][_0x14a13a(0x25b)](T[_0x14a13a(0x1bb)][_0x14a13a(0x168)],()=>T[_0x14a13a(0x1cc)](At({'status$':this['_status$']['asObservable']()}),this['_injector'])));}},exports[_0x417150(0x250)]=Pt([V(0x0,a[_0x417150(0x360)]),V(0x1,a[_0x417150(0x254)](a[_0x417150(0x135)])),V(0x2,a[_0x417150(0x254)](u['CollaborationController'])),V(0x3,T[_0x417150(0x320)])],exports[_0x417150(0x250)]);function At(_0x34570e){const {status$:_0x304fcb}=_0x34570e;return function(){const _0x29f0a6=_0x40a8;return P[_0x29f0a6(0x11a)](xe,{'status$':_0x304fcb});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x109bfc,_0x4f696a,_0xbefc7d,_0x390e4c)=>{const _0x5dc5d3=_0x417150;for(var _0x33cc5c=_0x390e4c>0x1?void 0x0:_0x390e4c?wt(_0x4f696a,_0xbefc7d):_0x4f696a,_0x1f8366=_0x109bfc[_0x5dc5d3(0x25d)]-0x1,_0x192048;_0x1f8366>=0x0;_0x1f8366--)(_0x192048=_0x109bfc[_0x1f8366])&&(_0x33cc5c=_0x192048(_0x33cc5c)||_0x33cc5c);return _0x33cc5c;},y=(_0x2ce1be,_0x741d5b)=>(_0x3b61c8,_0x771482)=>_0x741d5b(_0x3b61c8,_0x771482,_0x2ce1be);let q=class extends a[_0x417150(0x196)]{constructor(_0x413f23,_0x47eb8b,_0x298c11,_0x3e5c2a,_0x43d269,_0x1417a4){const _0xcd62d7=_0x417150;super(),this[_0xcd62d7(0x297)]=_0x413f23,this[_0xcd62d7(0x312)]=_0x47eb8b,this[_0xcd62d7(0x295)]=_0x298c11,this['_messageService']=_0x3e5c2a,this[_0xcd62d7(0x1b8)]=_0x43d269,this['_localeService']=_0x1417a4,this[_0xcd62d7(0x242)](),this[_0xcd62d7(0x256)]();}[_0x417150(0x242)](){const _0x5e6875=_0x417150;this[_0x5e6875(0x1ca)](this[_0x5e6875(0x297)][_0x5e6875(0x208)](()=>{const _0x58572b=_0x5e6875;if(this[_0x58572b(0x312)][_0x58572b(0x33c)][_0x58572b(0x39d)])return this[_0x58572b(0x1e8)]['t'](_0x58572b(0x14c));}));}['_initEvent'](){const _0x564192=_0x417150;this[_0x564192(0x1ca)](this['_collaborationUIEventService'][_0x564192(0x374)][_0x564192(0x28a)](_0x33fe40=>{const _0x6b7273=_0x564192;_0x33fe40['id']===u[_0x6b7273(0x26a)][_0x6b7273(0x30d)]&&this[_0x6b7273(0x14b)][_0x6b7273(0x120)]({'type':D[_0x6b7273(0x39f)][_0x6b7273(0x3a8)],'content':this[_0x6b7273(0x1e8)]['t'](_0x6b7273(0x11e))}),_0x33fe40['id']===u[_0x6b7273(0x26a)][_0x6b7273(0x152)]&&this[_0x6b7273(0x14b)][_0x6b7273(0x120)]({'type':D[_0x6b7273(0x39f)][_0x6b7273(0x3a8)],'content':this['_localeService']['t'](_0x6b7273(0x361))}),_0x33fe40['id']===u['CollaborationUIEventId'][_0x6b7273(0x253)]&&this[_0x6b7273(0x1b8)][_0x6b7273(0x120)]({'title':this[_0x6b7273(0x1e8)]['t'](_0x6b7273(0x39e)),'content':this[_0x6b7273(0x1e8)]['t']('permission.content'),'type':_0x6b7273(0x277),'duration':0x0}),_0x33fe40['id']===u['CollaborationUIEventId'][_0x6b7273(0x11d)]&&this['_messageService'][_0x6b7273(0x120)]({'type':D[_0x6b7273(0x39f)][_0x6b7273(0x271)],'content':this[_0x6b7273(0x1e8)]['t'](_0x6b7273(0x361))+'('+_0x33fe40[_0x6b7273(0x32f)]+')'}),_0x33fe40['id']===u[_0x6b7273(0x26a)][_0x6b7273(0x165)]&&this[_0x6b7273(0x14b)][_0x6b7273(0x120)]({'type':D[_0x6b7273(0x39f)][_0x6b7273(0x3a8)],'content':this['_localeService']['t'](_0x33fe40[_0x6b7273(0x32f)]||'')}),_0x33fe40['id']===u[_0x6b7273(0x26a)]['SOCKET_FAILED_RETRY']&&this[_0x6b7273(0x14b)]['show']({'type':D['MessageType']['Warning'],'content':this[_0x6b7273(0x1e8)]['t']('session.will-retry')}),_0x33fe40['id']===u[_0x6b7273(0x26a)][_0x6b7273(0x221)]&&this[_0x6b7273(0x14b)][_0x6b7273(0x120)]({'type':D[_0x6b7273(0x39f)][_0x6b7273(0x271)],'content':this['_localeService']['t']('session.connection-failed')}),_0x33fe40['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x6b7273(0x14b)][_0x6b7273(0x120)]({'type':D[_0x6b7273(0x39f)][_0x6b7273(0x271)],'content':this['_localeService']['t'](_0x6b7273(0x36e))});}));}};q=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x417150(0x1d1)]),y(0x2,a[_0x417150(0x254)](u['CollaborationUIEventService'])),y(0x3,T[_0x417150(0x35f)]),y(0x4,T[_0x417150(0x1f8)]),y(0x5,a[_0x417150(0x254)](a[_0x417150(0x327)]))],q);const $t=_0x417150(0x276),Ue={},be=a[_0x417150(0x324)]('uni.network.url-service');var xt=Object[_0x417150(0x1fb)],jt=(_0x109643,_0x4697fd,_0x376481,_0x5140af)=>{const _0x398858=_0x417150;for(var _0x5490ef=_0x5140af>0x1?void 0x0:_0x5140af?xt(_0x4697fd,_0x376481):_0x4697fd,_0x11e463=_0x109643[_0x398858(0x25d)]-0x1,_0xca77e0;_0x11e463>=0x0;_0x11e463--)(_0xca77e0=_0x109643[_0x11e463])&&(_0x5490ef=_0xca77e0(_0x5490ef)||_0x5490ef);return _0x5490ef;},H=(_0x595221,_0x5525b1)=>(_0x36cb98,_0x25a791)=>_0x5525b1(_0x36cb98,_0x25a791,_0x595221);exports['CollaborationDataLoaderController']=class extends a[_0x417150(0x1c7)]{constructor(_0x4163fc,_0x540e5c,_0x4dcb3c,_0x153ea2,_0xd98745){const _0x2ee601=_0x417150;super(),this['_urlService']=_0x4163fc,this[_0x2ee601(0x379)]=_0x540e5c,this[_0x2ee601(0x365)]=_0x4dcb3c,this[_0x2ee601(0x137)]=_0x153ea2,_0xd98745?_0xd98745==null||_0xd98745[_0x2ee601(0x1ee)]()[_0x2ee601(0x2c1)](()=>this[_0x2ee601(0x363)]()):(this[_0x2ee601(0x379)][_0x2ee601(0x30f)](_0x2ee601(0x205),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2ee601(0x363)]());}async[_0x417150(0x363)](){const _0x7cbf21=_0x417150,_0x4b4a2c=this[_0x7cbf21(0x1c4)][_0x7cbf21(0x261)](_0x7cbf21(0x124)),_0x58897c=this[_0x7cbf21(0x1c4)][_0x7cbf21(0x261)](_0x7cbf21(0x121)),_0x18bfe1=this[_0x7cbf21(0x1c4)][_0x7cbf21(0x261)]('subunit');if(!_0x4b4a2c||!_0x58897c){this[_0x7cbf21(0x379)][_0x7cbf21(0x30f)](_0x7cbf21(0x205),_0x7cbf21(0x3a2));return;}const _0xb4c688=await this[_0x7cbf21(0x137)][_0x7cbf21(0x1c8)](_0x4b4a2c,Number(_0x58897c),_0x18bfe1);_0xb4c688&&_0xb4c688 instanceof a[_0x7cbf21(0x2b6)]&&this['_setupSubUnitSync'](_0xb4c688);}async[_0x417150(0x305)](_0x20282e){const _0x1ccf64=_0x417150;await this[_0x1ccf64(0x35c)](_0x20282e),_0x20282e[_0x1ccf64(0x127)][_0x1ccf64(0x2cf)](d['takeUntil'](this[_0x1ccf64(0x1ba)]))['subscribe'](_0x3a384b=>{const _0x21e3ad=_0x1ccf64;_0x3a384b&&this[_0x21e3ad(0x263)](_0x3a384b);}),this[_0x1ccf64(0x1c4)][_0x1ccf64(0x2f0)][_0x1ccf64(0x2cf)](d['takeUntil'](this[_0x1ccf64(0x1ba)]))['subscribe'](()=>this[_0x1ccf64(0x35c)](_0x20282e));}[_0x417150(0x263)](_0xf96b2f,_0x19c80a=!0x1){const _0x475cd9=_0x417150,_0x3f362e=this[_0x475cd9(0x1c4)]['getParam']('subunit');_0xf96b2f[_0x475cd9(0x33a)]()!==_0x3f362e&&this['_urlService'][_0x475cd9(0x39c)](_0x475cd9(0x1f0),_0xf96b2f['getSheetId'](),_0x19c80a);}async[_0x417150(0x35c)](_0x571fbd){const _0x4a4d06=_0x417150;var _0x50538c;const _0x39e525=this[_0x4a4d06(0x1c4)]['getParam'](_0x4a4d06(0x1f0));if(!_0x39e525||!_0x571fbd[_0x4a4d06(0x2ec)](_0x39e525)){const _0x1e028a=_0x571fbd[_0x4a4d06(0x2a7)]()[0x0],_0x3ffd1b=_0x571fbd[_0x4a4d06(0x2ec)](_0x1e028a);if(!_0x3ffd1b)return;this[_0x4a4d06(0x263)](_0x3ffd1b,!0x0),await this[_0x4a4d06(0x365)]['executeCommand'](g[_0x4a4d06(0x1d4)]['id'],{'unitId':_0x571fbd[_0x4a4d06(0x189)](),'subUnitId':_0x1e028a});return;}((_0x50538c=_0x571fbd[_0x4a4d06(0x234)]())==null?void 0x0:_0x50538c[_0x4a4d06(0x33a)]())!==_0x39e525&&await this[_0x4a4d06(0x365)][_0x4a4d06(0x3a3)](g[_0x4a4d06(0x1d4)]['id'],{'unitId':_0x571fbd[_0x4a4d06(0x189)](),'subUnitId':_0x39e525});}},exports[_0x417150(0x2ab)]=jt([H(0x0,be),H(0x1,a[_0x417150(0x344)]),H(0x2,a[_0x417150(0x1b9)]),H(0x3,a[_0x417150(0x254)](u[_0x417150(0x122)])),H(0x4,a['Optional'](Ke[_0x417150(0x2a6)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x417150(0x1fb)],kt=(_0x542d4b,_0x4b5048,_0x36b4ba,_0x3409ef)=>{for(var _0x7a5307=_0x3409ef>0x1?void 0x0:_0x3409ef?Bt(_0x4b5048,_0x36b4ba):_0x4b5048,_0x25b84e=_0x542d4b['length']-0x1,_0x7f5429;_0x25b84e>=0x0;_0x25b84e--)(_0x7f5429=_0x542d4b[_0x25b84e])&&(_0x7a5307=_0x7f5429(_0x7a5307)||_0x7a5307);return _0x7a5307;},ce=(_0x1b2264,_0xba984e)=>(_0x1e53a5,_0x4aa0fe)=>_0xba984e(_0x1e53a5,_0x4aa0fe,_0x1b2264);let z=class{constructor(_0x564113,_0x57e140,_0x59f1c7){this['_injector']=_0x564113,this['_transformService']=_0x57e140,this['_renderManagerService']=_0x59f1c7;}['transformIMECache'](_0x55a3fa){const _0x2e63ca=_0x417150;this[_0x2e63ca(0x1cb)](_0x55a3fa),this['_transformPreviousActiveRange'](_0x55a3fa);}[_0x417150(0x294)](_0x32788d){const _0x553c30=_0x417150,{unitID:_0x4b0ceb}=_0x32788d,_0x3f2ca1=this['_renderManagerService'][_0x553c30(0x17a)](_0x4b0ceb)[_0x553c30(0x300)](b['DocIMEInputManagerService']),{redoCache:_0x33a2cd}=_0x3f2ca1['getUndoRedoMutationParamsCache']();if(_0x33a2cd[_0x553c30(0x25d)]===0x0)return _0x32788d;let _0x5c6ea0=a[_0x553c30(0x370)]['deepClone'](_0x32788d[_0x553c30(0x130)][0x0]);for(let _0x141cad=0x0;_0x141cad<_0x33a2cd['length'];_0x141cad++){const _0x3f21fd={'id':_0x553c30(0x123),'params':{..._0x33a2cd[_0x141cad]}},_0x9f6ce1=this[_0x553c30(0x1cf)]['transformMutation'](_0x5c6ea0,_0x3f21fd,!0x1);if(m['isTransformMutationFailure'](_0x9f6ce1))throw _0x9f6ce1['error'];_0x5c6ea0=_0x9f6ce1['m1Prime'];}return{...a[_0x553c30(0x370)][_0x553c30(0x2cb)](_0x32788d),'mutations':[_0x5c6ea0]};}[_0x417150(0x1cb)](_0x59ee1a){const _0x555d85=_0x417150,{unitID:_0x327b54}=_0x59ee1a,_0x3460f0=this[_0x555d85(0x1d9)][_0x555d85(0x17a)](_0x327b54)[_0x555d85(0x300)](b[_0x555d85(0x15f)]),{undoCache:_0x647fd1,redoCache:_0xed820c}=_0x3460f0['getUndoRedoMutationParamsCache']();if(_0x647fd1[_0x555d85(0x25d)]===0x0||_0xed820c[_0x555d85(0x25d)]===0x0)return;const _0x5879fc=[],_0x941721=[];let _0x14f5a2=a[_0x555d85(0x370)][_0x555d85(0x2cb)](_0x59ee1a['mutations'][0x0]),_0x508dc2=a[_0x555d85(0x370)]['deepClone'](_0x59ee1a[_0x555d85(0x130)][0x0]);for(let _0x26cd73=_0x647fd1['length']-0x1;_0x26cd73>=0x0;_0x26cd73--){const _0x1f41a1={'id':'doc.mutation.rich-text-editing','params':{..._0x647fd1[_0x26cd73]}},_0x591f99={'id':_0x555d85(0x123),'params':{..._0xed820c[_0x26cd73]}},_0x328fcc=this[_0x555d85(0x1cf)][_0x555d85(0x2b4)](_0x14f5a2,_0x1f41a1,!0x1),_0x425543=this[_0x555d85(0x1cf)][_0x555d85(0x2b4)](_0x508dc2,_0x591f99,!0x1);if(m[_0x555d85(0x39b)](_0x328fcc))throw _0x328fcc[_0x555d85(0x277)];if(m[_0x555d85(0x39b)](_0x425543))throw _0x425543['error'];_0x5879fc[_0x555d85(0x2e6)](_0x328fcc[_0x555d85(0x223)]['params']),_0x941721[_0x555d85(0x2e6)](_0x425543['m2Prime'][_0x555d85(0x36f)]),_0x14f5a2=_0x328fcc[_0x555d85(0x2e4)],_0x508dc2=_0x425543[_0x555d85(0x2e4)];}_0x3460f0[_0x555d85(0x18e)]({'undoCache':_0x5879fc,'redoCache':_0x941721});}['_transformPreviousActiveRange'](_0x582219){const _0x273389=_0x417150,{unitID:_0x501986}=_0x582219,_0x2aea52=this[_0x273389(0x1d9)][_0x273389(0x17a)](_0x501986)[_0x273389(0x300)](b['DocIMEInputManagerService']),_0x25ed2d=_0x2aea52['getActiveRange']();if(_0x25ed2d==null)return;const _0x1b04f0=[{'id':_0x273389(0x123),'params':{'unitId':_0x582219[_0x273389(0x241)],'actions':null,'textRanges':[_0x25ed2d]}}],_0x5ba56e=this[_0x273389(0x1cf)][_0x273389(0x145)](_0x582219,_0x1b04f0);if(!m[_0x273389(0x298)](_0x5ba56e))throw _0x5ba56e[_0x273389(0x277)];const _0x46decc=_0x5ba56e[_0x273389(0x223)][0x0][_0x273389(0x36f)][_0x273389(0x1fe)];Array[_0x273389(0x2c4)](_0x46decc)&&_0x46decc[_0x273389(0x25d)]&&_0x2aea52[_0x273389(0x350)](_0x46decc[0x0]);}};z=kt([ce(0x0,a['Inject'](a['Injector'])),ce(0x1,m[_0x417150(0x236)]),ce(0x2,p[_0x417150(0x201)])],z);var Ht=Object[_0x417150(0x1fb)],Ft=(_0x2f9069,_0x5af74d,_0x32039e,_0x3967dc)=>{const _0x46d6e1=_0x417150;for(var _0x30105=_0x3967dc>0x1?void 0x0:_0x3967dc?Ht(_0x5af74d,_0x32039e):_0x5af74d,_0x4b767a=_0x2f9069[_0x46d6e1(0x25d)]-0x1,_0x3ab399;_0x4b767a>=0x0;_0x4b767a--)(_0x3ab399=_0x2f9069[_0x4b767a])&&(_0x30105=_0x3ab399(_0x30105)||_0x30105);return _0x30105;},le=(_0x17901c,_0x723e40)=>(_0x1b2488,_0x58acd8)=>_0x723e40(_0x1b2488,_0x58acd8,_0x17901c);let J=class{constructor(_0x37d304,_0x44d5c4,_0x4f0e14){const _0x4b58b2=_0x417150;this[_0x4b58b2(0x22f)]=_0x37d304,this[_0x4b58b2(0x1cf)]=_0x44d5c4,this[_0x4b58b2(0x249)]=_0x4f0e14;}[_0x417150(0x356)](_0x267b0e){const _0x7c7c4=_0x417150;this[_0x7c7c4(0x317)](_0x267b0e);}[_0x417150(0x294)](_0x29a1a1){const _0x13e494=_0x417150,{unitID:_0x269bfe}=_0x29a1a1,{collaboration:_0xa0ee43}=this[_0x13e494(0x249)]['getStateCache'](_0x269bfe);if(_0xa0ee43[_0x13e494(0x25d)]===0x0)return _0x29a1a1;let _0x1eed16=a[_0x13e494(0x370)]['deepClone'](_0x29a1a1['mutations'][0x0]);for(let _0x2dc6fc=0x0;_0x2dc6fc<_0xa0ee43['length'];_0x2dc6fc++){const _0x71bc29={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xa0ee43[_0x2dc6fc]['unitId'],..._0xa0ee43[_0x2dc6fc][_0x13e494(0x1f6)]}},_0x52e129=this['_transformService'][_0x13e494(0x2b4)](_0x1eed16,_0x71bc29,!0x1);if(m['isTransformMutationFailure'](_0x52e129))throw _0x52e129[_0x13e494(0x277)];_0x1eed16=_0x52e129[_0x13e494(0x2e4)];}return{...a[_0x13e494(0x370)][_0x13e494(0x2cb)](_0x29a1a1),'mutations':[_0x1eed16]};}[_0x417150(0x317)](_0x598933){const _0x3f3814=_0x417150,{unitID:_0x35e1b1}=_0x598933,{history:_0x2afc0c,collaboration:_0x3c7a3c}=this[_0x3f3814(0x249)][_0x3f3814(0x394)](_0x35e1b1);if(_0x2afc0c[_0x3f3814(0x25d)]===0x0&&_0x3c7a3c[_0x3f3814(0x25d)]===0x0)return;const _0x431391=[],_0x280e51=[];let _0x42d96e=a['Tools'][_0x3f3814(0x2cb)](_0x598933[_0x3f3814(0x130)][0x0]),_0x3f081d=a[_0x3f3814(0x370)][_0x3f3814(0x2cb)](_0x598933[_0x3f3814(0x130)][0x0]);for(let _0x27b4be=_0x2afc0c[_0x3f3814(0x25d)]-0x1;_0x27b4be>=0x0;_0x27b4be--){const _0x2d12eb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2afc0c[_0x27b4be][_0x3f3814(0x136)],..._0x2afc0c[_0x27b4be]['undoState']}},_0x594d98={'id':_0x3f3814(0x123),'params':{'unitId':_0x2afc0c[_0x27b4be][_0x3f3814(0x136)],..._0x2afc0c[_0x27b4be][_0x3f3814(0x1f6)]}},_0x3c1d6c=this[_0x3f3814(0x1cf)][_0x3f3814(0x2b4)](_0x42d96e,_0x2d12eb,!0x1),_0xc42d5b=this[_0x3f3814(0x1cf)]['transformMutation'](_0x3f081d,_0x594d98,!0x1);if(m['isTransformMutationFailure'](_0x3c1d6c))throw _0x3c1d6c[_0x3f3814(0x277)];if(m['isTransformMutationFailure'](_0xc42d5b))throw _0xc42d5b[_0x3f3814(0x277)];_0x431391['unshift']({..._0x2afc0c[_0x27b4be],'undoState':_0x3c1d6c[_0x3f3814(0x223)][_0x3f3814(0x36f)],'redoState':_0xc42d5b[_0x3f3814(0x223)][_0x3f3814(0x36f)]}),_0x42d96e=_0x3c1d6c[_0x3f3814(0x2e4)],_0x3f081d=_0xc42d5b['m1Prime'];}_0x42d96e=a[_0x3f3814(0x370)][_0x3f3814(0x2cb)](_0x598933[_0x3f3814(0x130)][0x0]),_0x3f081d=a['Tools'][_0x3f3814(0x2cb)](_0x598933['mutations'][0x0]);for(let _0x55b1be=_0x3c7a3c[_0x3f3814(0x25d)]-0x1;_0x55b1be>=0x0;_0x55b1be--){const _0x52e0e0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3c7a3c[_0x55b1be][_0x3f3814(0x136)],..._0x3c7a3c[_0x55b1be]['undoState']}},_0x2daa16={'id':_0x3f3814(0x123),'params':{'unitId':_0x3c7a3c[_0x55b1be][_0x3f3814(0x136)],..._0x3c7a3c[_0x55b1be][_0x3f3814(0x1f6)]}},_0x7649f2=this[_0x3f3814(0x1cf)][_0x3f3814(0x2b4)](_0x42d96e,_0x52e0e0,!0x1),_0x2f398d=this[_0x3f3814(0x1cf)][_0x3f3814(0x2b4)](_0x3f081d,_0x2daa16,!0x1);if(m[_0x3f3814(0x39b)](_0x7649f2))throw _0x7649f2['error'];if(m[_0x3f3814(0x39b)](_0x2f398d))throw _0x2f398d[_0x3f3814(0x277)];_0x280e51[_0x3f3814(0x2e6)]({..._0x3c7a3c[_0x55b1be],'undoState':_0x7649f2[_0x3f3814(0x223)][_0x3f3814(0x36f)],'redoState':_0x2f398d['m2Prime']['params']}),_0x42d96e=_0x7649f2[_0x3f3814(0x2e4)],_0x3f081d=_0x2f398d['m1Prime'];}this[_0x3f3814(0x249)]['setStateCache'](_0x35e1b1,{'history':_0x431391,'collaboration':_0x280e51});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x417150(0x236)]),le(0x2,a[_0x417150(0x254)](b[_0x417150(0x21b)]))],J);var Yt=Object[_0x417150(0x1fb)],Wt=(_0x4b1fce,_0x2a7a06,_0xf0ad80,_0x2edd35)=>{for(var _0x1910fa=_0x2edd35>0x1?void 0x0:_0x2edd35?Yt(_0x2a7a06,_0xf0ad80):_0x2a7a06,_0xc21eee=_0x4b1fce['length']-0x1,_0x41fa84;_0xc21eee>=0x0;_0xc21eee--)(_0x41fa84=_0x4b1fce[_0xc21eee])&&(_0x1910fa=_0x41fa84(_0x1910fa)||_0x1910fa);return _0x1910fa;},Ne=(_0x904ba5,_0x23761f)=>(_0x253d62,_0x2d9a0e)=>_0x23761f(_0x253d62,_0x2d9a0e,_0x904ba5);let Z=class{constructor(_0x55fcf3,_0x291a6a){const _0x3d0eeb=_0x417150;this['_injector']=_0x55fcf3,this[_0x3d0eeb(0x1cf)]=_0x291a6a;}[_0x417150(0x171)](_0x546d6){const _0x42b328=_0x417150;var _0x5e0b7c;const _0x205962=this[_0x42b328(0x22f)][_0x42b328(0x359)](Y[_0x42b328(0x29c)]),_0x308689=(_0x5e0b7c=_0x205962[_0x42b328(0x150)]())!=null?_0x5e0b7c:[];if(_0x308689['length']===0x0)return;const _0x325887=_0x546d6[_0x42b328(0x241)],_0x28bc8a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x325887,'actions':null,'textRanges':_0x308689}}],_0x95aacf=this[_0x42b328(0x1cf)][_0x42b328(0x145)](_0x546d6,_0x28bc8a);if(!m[_0x42b328(0x298)](_0x95aacf))throw _0x95aacf[_0x42b328(0x277)];const _0x541bd6=_0x95aacf[_0x42b328(0x223)][0x0][_0x42b328(0x36f)][_0x42b328(0x1fe)];Array[_0x42b328(0x2c4)](_0x541bd6)&&_0x541bd6['length']&&_0x205962[_0x42b328(0x2ca)](_0x541bd6,{'unitId':_0x325887,'subUnitId':_0x325887},!0x1);}};Z=Wt([Ne(0x0,a[_0x417150(0x254)](a['Injector'])),Ne(0x1,m[_0x417150(0x236)])],Z);var Vt=Object[_0x417150(0x1fb)],Xt=(_0x5e6a44,_0x498b2c,_0x46d9c9,_0x460c29)=>{const _0x1181f0=_0x417150;for(var _0x28bd94=_0x460c29>0x1?void 0x0:_0x460c29?Vt(_0x498b2c,_0x46d9c9):_0x498b2c,_0x471940=_0x5e6a44[_0x1181f0(0x25d)]-0x1,_0x451ba4;_0x471940>=0x0;_0x471940--)(_0x451ba4=_0x5e6a44[_0x471940])&&(_0x28bd94=_0x451ba4(_0x28bd94)||_0x28bd94);return _0x28bd94;},N=(_0x1c7e5b,_0x2a1d5d)=>(_0x27ac5d,_0x254615)=>_0x2a1d5d(_0x27ac5d,_0x254615,_0x1c7e5b);function _0x40a8(_0x4ded3b,_0x1087f0){const _0x9edb47=_0x9edb();return _0x40a8=function(_0x40a8e5,_0x4b08f0){_0x40a8e5=_0x40a8e5-0x11a;let _0x58ff27=_0x9edb47[_0x40a8e5];return _0x58ff27;},_0x40a8(_0x4ded3b,_0x1087f0);}let Q=class extends a[_0x417150(0x196)]{constructor(_0x1010bc,_0x53bd46,_0x5e2912,_0x15ad26,_0x48553a,_0x1b8a14,_0x284bf0,_0x489a5d){const _0x4ff6c6=_0x417150;super(),h(this,_0x4ff6c6(0x218),new d[(_0x4ff6c6(0x2af))](u[_0x4ff6c6(0x37c)]['NOT_COLLAB'])),(this[_0x4ff6c6(0x249)]=_0x1010bc,this[_0x4ff6c6(0x268)]=_0x53bd46,this[_0x4ff6c6(0x1df)]=_0x5e2912,this[_0x4ff6c6(0x3a7)]=_0x15ad26,this[_0x4ff6c6(0x224)]=_0x48553a,this['_docSyncEditingCollabCursorService']=_0x1b8a14,this[_0x4ff6c6(0x14b)]=_0x284bf0,this[_0x4ff6c6(0x1e8)]=_0x489a5d,this['_initEntityListener']());}[_0x417150(0x20d)](){const _0x2f5bcd=_0x417150;this['disposeWithMe'](this[_0x2f5bcd(0x268)]['entityInit$'][_0x2f5bcd(0x28a)](_0x33e020=>{const _0x2dbf15=_0x2f5bcd,_0x45c8be=this[_0x2dbf15(0x249)][_0x2dbf15(0x2df)][_0x2dbf15(0x28a)](_0x595ce6=>{const _0x1a5987=_0x2dbf15;if(_0x595ce6==null)return;const {unitId:_0xfdf30b,redoState:_0x683622,commandId:_0x3abdc9}=_0x595ce6;if(_0xfdf30b!==_0x33e020['unitID'])return;const _0x502fca={'id':_0x3abdc9,'type':a[_0x1a5987(0x18b)][_0x1a5987(0x2dc)],'params':{'unitId':_0xfdf30b,'actions':_0x683622[_0x1a5987(0x258)],'textRanges':null}};_0x33e020[_0x1a5987(0x35b)](_0x502fca);});if(_0x33e020[_0x2dbf15(0x1ca)](_0x45c8be),_0x33e020 instanceof u['DocCollaborationEntity']){const _0x324521={'onTransformIME':_0x178acb=>this[_0x2dbf15(0x1df)][_0x2dbf15(0x232)](_0x178acb),'onTransformState':_0x31c3a9=>this['_docTransformStateCacheService']['transformStateCache'](_0x31c3a9),'onTransformSelections':_0x1ce4a0=>this[_0x2dbf15(0x224)][_0x2dbf15(0x171)](_0x1ce4a0),'onSyncEditingCollabCursor':_0x448932=>this[_0x2dbf15(0x149)][_0x2dbf15(0x1d2)](_0x448932),'onTransformRemoteChangesetByIMECache':_0x510875=>this[_0x2dbf15(0x1df)][_0x2dbf15(0x294)](_0x510875),'onTransformRemoteChangesetByStateCache':_0xbda9b7=>this[_0x2dbf15(0x3a7)]['transformRemoteChangeset'](_0xbda9b7)};_0x33e020[_0x2dbf15(0x272)](_0x324521);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x417150(0x21b)])),N(0x1,a['Inject'](u[_0x417150(0x255)])),N(0x2,a[_0x417150(0x254)](z)),N(0x3,a['Inject'](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x417150(0x254)](Ce)),N(0x6,T[_0x417150(0x35f)]),N(0x7,a['Inject'](a[_0x417150(0x327)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x1a84da,_0x22c518,_0x1c10a4,_0x43a93f)=>{const _0x172c74=_0x417150;for(var _0x3e7a91=_0x43a93f>0x1?void 0x0:_0x43a93f?Gt(_0x22c518,_0x1c10a4):_0x22c518,_0x30324e=_0x1a84da[_0x172c74(0x25d)]-0x1,_0x3c67ce;_0x30324e>=0x0;_0x30324e--)(_0x3c67ce=_0x1a84da[_0x30324e])&&(_0x3e7a91=_0x3c67ce(_0x3e7a91)||_0x3e7a91);return _0x3e7a91;},_e=(_0x191a40,_0x48e140)=>(_0x498f85,_0x1561bc)=>_0x48e140(_0x498f85,_0x1561bc,_0x191a40);let ge=class extends a[_0x417150(0x196)]{constructor(_0x3b9be4,_0x5d612f,_0x3f84f7){const _0x53da6a=_0x417150;super(),h(this,_0x53da6a(0x38e),new Map()),h(this,_0x53da6a(0x319),new Map()),h(this,_0x53da6a(0x239),!0x1),(this[_0x53da6a(0x177)]=_0x3b9be4,this[_0x53da6a(0x178)]=_0x5d612f,this[_0x53da6a(0x12a)]=_0x3f84f7);}[_0x417150(0x225)](){const _0x1335d4=_0x417150;this[_0x1335d4(0x239)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x417150(0x33c)](){return this['_saveTaskMap'];}[_0x417150(0x2f5)](){const _0x3d761c=_0x417150;this[_0x3d761c(0x388)]()[_0x3d761c(0x2c1)](()=>super[_0x3d761c(0x2f5)]());}async[_0x417150(0x161)](_0x254cf8){const _0x268896=_0x417150;return this[_0x268896(0x239)]?null:this[_0x268896(0x178)]['getItem'](u[_0x268896(0x2f7)](_0x254cf8));}async['saveOfflineData'](_0x365f29,_0x3535fd){const _0x36fc05=_0x417150;return!!this[_0x36fc05(0x178)][_0x36fc05(0x285)](_0x365f29,_0x3535fd);}[_0x417150(0x1a2)](_0x5810b4,_0xb0dbb8,_0x8138b7,_0xadc332){const _0x5ceeef=_0x417150,_0x139fa8=this['_revisionService'][_0x5ceeef(0x2f1)](_0x5810b4);this[_0x5ceeef(0x38e)][_0x5ceeef(0x21f)](_0x5810b4,{'unitID':_0x5810b4,'type':_0xb0dbb8,'awaitingChangeset':_0x8138b7,'mutations':_0xadc332,'rev':_0x139fa8}),this['_saveTaskMap'][_0x5ceeef(0x328)](_0x5810b4)||this[_0x5ceeef(0x38d)](_0x5810b4);}[_0x417150(0x38d)](_0x2636fd){const _0x1e0d9c=_0x417150,_0x7f3eef=this[_0x1e0d9c(0x36b)]();_0x7f3eef===0x0?this[_0x1e0d9c(0x25c)](_0x2636fd):this[_0x1e0d9c(0x319)][_0x1e0d9c(0x21f)](_0x2636fd,setTimeout(()=>this[_0x1e0d9c(0x25c)](_0x2636fd),_0x7f3eef));}[_0x417150(0x36b)](){const _0x22b56a=_0x417150;var _0x117752;return(_0x117752=this['_configService'][_0x22b56a(0x382)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x117752:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x2691bb){const _0x1c2fdf=_0x417150,_0x5a9acb=this[_0x1c2fdf(0x319)][_0x1c2fdf(0x359)](_0x2691bb);return _0x5a9acb!==void 0x0&&window['clearTimeout'](_0x5a9acb),this[_0x1c2fdf(0x178)]['setItem'](u['getLocalCacheKey'](_0x2691bb),this['_cachedData'][_0x1c2fdf(0x359)](_0x2691bb))[_0x1c2fdf(0x2c1)](()=>this[_0x1c2fdf(0x319)][_0x1c2fdf(0x1c9)](_0x2691bb));}async[_0x417150(0x388)](){const _0x491370=_0x417150,_0xbe5dce=[];this[_0x491370(0x319)][_0x491370(0x195)]((_0x2a3863,_0x5471d2)=>{const _0x3861b5=_0x491370;window[_0x3861b5(0x23a)](_0x2a3863),_0xbe5dce[_0x3861b5(0x278)](this[_0x3861b5(0x25c)](_0x5471d2)[_0x3861b5(0x2c1)](()=>{const _0x47f140=_0x3861b5;this[_0x47f140(0x319)][_0x47f140(0x1c9)](_0x5471d2);}));}),await Promise[_0x491370(0x1cd)](_0xbe5dce);}};ge=Kt([_e(0x0,a[_0x417150(0x1ff)]),_e(0x1,a[_0x417150(0x397)]),_e(0x2,a['Inject'](m[_0x417150(0x2b8)]))],ge);class je extends a[_0x417150(0x1c7)]{constructor(){const _0x12d9b5=_0x417150;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x12d9b5(0x376)](window,_0x12d9b5(0x306))[_0x12d9b5(0x2cf)](d[_0x12d9b5(0x1c5)](this[_0x12d9b5(0x1ba)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}[_0x417150(0x39c)](_0x285f76,_0x2ba8fd,_0x3f579d=!0x1){const _0x370b41=_0x417150,_0x461564=new URL(window['location'][_0x370b41(0x302)]);_0x461564[_0x370b41(0x27c)][_0x370b41(0x21f)](_0x285f76,_0x2ba8fd),_0x3f579d?window['history'][_0x370b41(0x164)]('','',_0x461564[_0x370b41(0x153)]()):window[_0x370b41(0x372)]['pushState']('','',_0x461564[_0x370b41(0x153)]());}[_0x417150(0x39a)](_0x464f7b,_0x2d2ff0=!0x1){const _0x3b0299=_0x417150,_0x3b272f=new URL(window[_0x3b0299(0x1aa)][_0x3b0299(0x302)]);_0x3b272f[_0x3b0299(0x27c)][_0x3b0299(0x1c9)](_0x464f7b),_0x2d2ff0?window[_0x3b0299(0x372)][_0x3b0299(0x164)]('','',_0x3b272f[_0x3b0299(0x153)]()):window[_0x3b0299(0x372)]['pushState']('','',_0x3b272f[_0x3b0299(0x153)]());}['getParam'](_0x3d96c0){const _0x3abcfa=_0x417150;var _0x110771;return(_0x110771=new URL(window[_0x3abcfa(0x1aa)]['href'])['searchParams'][_0x3abcfa(0x359)](_0x3d96c0))!=null?_0x110771:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x417150(0x1fb)],Jt=(_0x29a1e1,_0x2c9f98,_0x16da8d)=>_0x2c9f98 in _0x29a1e1?qt(_0x29a1e1,_0x2c9f98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16da8d}):_0x29a1e1[_0x2c9f98]=_0x16da8d,Zt=(_0x38f753,_0x3d3f7e,_0x9d6e37,_0x39ad91)=>{for(var _0x5685b6=_0x39ad91>0x1?void 0x0:_0x39ad91?zt(_0x3d3f7e,_0x9d6e37):_0x3d3f7e,_0x4d5390=_0x38f753['length']-0x1,_0x3ef600;_0x4d5390>=0x0;_0x4d5390--)(_0x3ef600=_0x38f753[_0x4d5390])&&(_0x5685b6=_0x3ef600(_0x5685b6)||_0x5685b6);return _0x5685b6;},he=(_0x4e690f,_0x5db1e1)=>(_0x2bb89e,_0x29235f)=>_0x5db1e1(_0x2bb89e,_0x29235f,_0x4e690f),Qt=(_0x185bad,_0x45ab42,_0x524e42)=>Jt(_0x185bad,_0x45ab42+'',_0x524e42);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x417150(0x13d)]{constructor(_0x989460=Ue,_0x1eaaf5,_0x2e6f00,_0x2bc5fd){const _0x5506e5=_0x417150;super(),this[_0x5506e5(0x37a)]=_0x989460,this[_0x5506e5(0x1d9)]=_0x1eaaf5,this[_0x5506e5(0x22f)]=_0x2e6f00,this['_configService']=_0x2bc5fd;const {..._0x387712}=a[_0x5506e5(0x368)]({},Ue,this[_0x5506e5(0x37a)]);this[_0x5506e5(0x177)][_0x5506e5(0x2a8)]($t,_0x387712);}[_0x417150(0x216)](){const _0x474f55=_0x417150;this[_0x474f55(0x2d4)](),this['_initDependencies']();}[_0x417150(0x275)](){this['_registerRenderDependencies']();}[_0x417150(0x2d4)](){const _0x1b2448=_0x417150;var _0x71fc13;const _0xa5dcec=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x1b2448(0x354)],{'useClass':G[_0x1b2448(0x212)]}],[u[_0x1b2448(0x1d1)],{'useClass':ge}],[exports[_0x1b2448(0x250)]],[Q],[q],[x],[de],[exports[_0x1b2448(0x2ab)]]];a[_0x1b2448(0x190)](this['_injector'],a[_0x1b2448(0x2a3)](_0xa5dcec,(_0x71fc13=this['_config'])==null?void 0x0:_0x71fc13[_0x1b2448(0x2a9)]));}[_0x417150(0x2ce)](){const _0x1bf996=_0x417150;this[_0x1bf996(0x1ca)](this[_0x1bf996(0x1d9)]['registerRenderModule'](a[_0x1bf996(0x316)][_0x1bf996(0x1db)],[Ie])),this[_0x1bf996(0x1ca)](this[_0x1bf996(0x1d9)][_0x1bf996(0x1b0)](a[_0x1bf996(0x316)][_0x1bf996(0x2fa)],[ve]));}['_initDependencies'](){const _0x3bee71=_0x417150;a['touchDependencies'](this[_0x3bee71(0x22f)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x417150(0x37e)],_0x417150(0x2b1),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x417150(0x257)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x417150(0x201)]),he(0x2,a[_0x417150(0x254)](a[_0x417150(0x135)])),he(0x3,a['IConfigService'])],exports[_0x417150(0x37e)]);var ts=Object[_0x417150(0x1fb)],ss=(_0x48b8e3,_0x818dbe,_0x2b9e6b,_0x491615)=>{const _0x14cfc4=_0x417150;for(var _0x5691cd=_0x491615>0x1?void 0x0:_0x491615?ts(_0x818dbe,_0x2b9e6b):_0x818dbe,_0xf04b2b=_0x48b8e3[_0x14cfc4(0x25d)]-0x1,_0x501e22;_0xf04b2b>=0x0;_0xf04b2b--)(_0x501e22=_0x48b8e3[_0xf04b2b])&&(_0x5691cd=_0x501e22(_0x5691cd)||_0x5691cd);return _0x5691cd;},F=(_0xd439df,_0x4764ad)=>(_0x18cf1a,_0x3fc03f)=>_0x4764ad(_0x18cf1a,_0x3fc03f,_0xd439df);exports[_0x417150(0x1d7)]=class extends u[_0x417150(0x291)]{constructor(_0x1008c1,_0x48e8ac,_0x1b58fb,_0x260faa,_0x12c313){super(_0x1008c1,_0x48e8ac,_0x1b58fb,_0x260faa,_0x12c313);}async[_0x417150(0x233)](_0x22a6d9){const _0x23aed6=_0x417150,_0x7e5b77=await this[_0x23aed6(0x283)](),_0x21994b=this['_createSocketURL'](_0x22a6d9,_0x7e5b77);return this[_0x23aed6(0x270)](_0x21994b);}[_0x417150(0x1a4)](_0x10fc2c,_0xb2bc97){const _0x1304ac=_0x417150,_0x367f9c=typeof window>'u'?new URL(_0x10fc2c):new URL(_0x10fc2c,window['location'][_0x1304ac(0x326)]);_0x367f9c['searchParams']['set'](_0x1304ac(0x334),_0xb2bc97);const _0x457e95=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1304ac(0x1aa)][_0x1304ac(0x282)]);return _0x457e95[_0x1304ac(0x359)](_0x1304ac(0x2cd))&&_0x367f9c[_0x1304ac(0x27c)][_0x1304ac(0x21f)](_0x1304ac(0x2cd),_0x457e95[_0x1304ac(0x359)](_0x1304ac(0x2cd))),_0x367f9c[_0x1304ac(0x153)]();}async[_0x417150(0x283)](){const _0x4d4424=_0x417150;var _0x1b0e73,_0x1bda7e,_0x1194d7;const _0xe38530=this[_0x4d4424(0x177)][_0x4d4424(0x382)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x3d1aa4=(_0x1b0e73=_0xe38530==null?void 0x0:_0xe38530['wsSessionTicketUrl'])!=null?_0x1b0e73:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x1194d7=(_0x1bda7e=(await this[_0x4d4424(0x2ad)][_0x4d4424(0x359)](_0x3d1aa4,{'headers':{'Content-Type':_0x4d4424(0x21d)}}))[_0x4d4424(0x1e2)])==null?void 0x0:_0x1bda7e[_0x4d4424(0x2e8)])!=null?_0x1194d7:'';}},exports[_0x417150(0x1d7)]=ss([F(0x0,a[_0x417150(0x254)](a[_0x417150(0x135)])),F(0x1,a['Inject'](G[_0x417150(0x398)])),F(0x2,a['IConfigService']),F(0x3,a[_0x417150(0x344)]),F(0x4,m[_0x417150(0x1f7)])],exports[_0x417150(0x1d7)]);const Me=0x7530,Le=_0x417150(0x390);class is extends a[_0x417150(0x196)]{constructor(){const _0x54ebf4=_0x417150;super(),h(this,'_id',a[_0x54ebf4(0x381)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x54ebf4(0x265),new Map()),h(this,_0x54ebf4(0x27e),null),h(this,_0x54ebf4(0x2a2),new Map()),h(this,'_unitStatus',new Map()),this['_init']();}[_0x417150(0x2f5)](){const _0x31c122=_0x417150;super[_0x31c122(0x2f5)](),this[_0x31c122(0x2a2)][_0x31c122(0x195)]((_0x4717bd,_0x3b0e72)=>this['_removeClearOtherTimer'](_0x3b0e72)),this[_0x31c122(0x27e)]&&window[_0x31c122(0x23c)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x3ab857){const _0x3c343c=_0x417150;return this[_0x3c343c(0x303)](_0x3ab857)[_0x3c343c(0x2cf)](d['distinctUntilChanged']());}[_0x417150(0x1ef)](_0x28f6c3){const _0x4b1c28=_0x417150;this[_0x4b1c28(0x2bd)][_0x4b1c28(0x39d)]===0x0&&this[_0x4b1c28(0x2e5)](),this[_0x4b1c28(0x2bd)][_0x4b1c28(0x1ae)](_0x28f6c3),this[_0x4b1c28(0x304)]({'type':0x0,'memberID':this[_0x4b1c28(0x375)],'unitIDs':[_0x28f6c3],'isForwarded':!0x1});}[_0x417150(0x170)](_0x568caf){const _0x21cc4b=_0x417150;this[_0x21cc4b(0x2bd)]['delete'](_0x568caf),this[_0x21cc4b(0x2bd)][_0x21cc4b(0x39d)]===0x0&&this[_0x21cc4b(0x27e)]&&window['clearInterval'](this[_0x21cc4b(0x27e)]);}[_0x417150(0x363)](){const _0x1db312=_0x417150;this[_0x1db312(0x1ca)](a[_0x1db312(0x34b)](d[_0x1db312(0x376)](window,_0x1db312(0x292))['subscribe'](_0x317428=>{const _0x202a32=_0x1db312;if(_0x317428[_0x202a32(0x1e6)]!==Le||!_0x317428['newValue'])return;const _0x25b7c0=JSON[_0x202a32(0x288)](_0x317428['newValue']);this['_handleEvent'](_0x25b7c0);}))),window[_0x1db312(0x1bc)](_0x1db312(0x192),()=>this['_send']({'type':0x1,'memberID':this[_0x1db312(0x375)],'unitIDs':Array[_0x1db312(0x209)](this[_0x1db312(0x2bd)])}));}['_handleEvent'](_0x3ab980){const _0x17400d=_0x417150;switch(_0x3ab980[_0x17400d(0x121)]){case 0x0:this[_0x17400d(0x2e2)](_0x3ab980);break;case 0x1:this[_0x17400d(0x383)](_0x3ab980);break;case 0x2:this[_0x17400d(0x240)](_0x3ab980);break;}}[_0x417150(0x2e2)](_0x93d1b7){const _0x505b2d=_0x417150,{unitIDs:_0x928a97,memberID:_0x49e139,isForwarded:_0x58a66d}=_0x93d1b7;_0x928a97[_0x505b2d(0x195)](_0x702d44=>{const _0x4adfce=_0x505b2d;if(!_0x58a66d&&this[_0x4adfce(0x265)][_0x4adfce(0x328)](_0x702d44)&&this[_0x4adfce(0x303)](_0x702d44)[_0x4adfce(0x19c)](u[_0x4adfce(0x36c)]['OTHER_CLIENTS_EDITING']),!this[_0x4adfce(0x265)][_0x4adfce(0x328)](_0x702d44)||!this[_0x4adfce(0x265)][_0x4adfce(0x359)](_0x702d44)['has'](_0x49e139)){const _0x4dbc79=this[_0x4adfce(0x265)][_0x4adfce(0x359)](_0x702d44)||new Set();_0x4dbc79[_0x4adfce(0x1ae)](_0x49e139),this[_0x4adfce(0x265)][_0x4adfce(0x21f)](_0x702d44,_0x4dbc79),this['_scheduleClearOtherTimer'](_0x49e139);}}),_0x58a66d||this[_0x505b2d(0x304)]({'type':0x0,'memberID':this[_0x505b2d(0x375)],'unitIDs':[...this[_0x505b2d(0x2bd)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x1b550d){const _0x53faf6=_0x417150;this['_removeClearOtherTimer'](_0x1b550d);const _0x28d1b7=window[_0x53faf6(0x1b2)](()=>{const _0x199e65=_0x53faf6;this[_0x199e65(0x265)][_0x199e65(0x195)](_0x4e007e=>{const _0x43d597=_0x199e65;_0x4e007e[_0x43d597(0x1c9)](_0x1b550d);});},Me*0x2);this[_0x53faf6(0x2a2)][_0x53faf6(0x21f)](_0x1b550d,_0x28d1b7);}[_0x417150(0x1b1)](_0x5e0917){const _0x22fe7c=_0x417150;if(this[_0x22fe7c(0x2a2)][_0x22fe7c(0x328)](_0x5e0917)){const _0x4a079b=this[_0x22fe7c(0x2a2)]['get'](_0x5e0917);_0x4a079b&&window[_0x22fe7c(0x23a)](_0x4a079b),this[_0x22fe7c(0x2a2)][_0x22fe7c(0x21f)](_0x5e0917,null);}}[_0x417150(0x383)](_0x115fe8){const _0x2e75ad=_0x417150,{memberID:_0x4dc6ed,unitIDs:_0x8c3e82}=_0x115fe8;_0x8c3e82[_0x2e75ad(0x195)](_0x3e9d8a=>{const _0x3a6e93=_0x2e75ad;var _0x56fdba;const _0xef01da=this[_0x3a6e93(0x265)]['get'](_0x3e9d8a);_0xef01da&&(_0xef01da['delete'](_0x4dc6ed),(_0x56fdba=this[_0x3a6e93(0x303)](_0x3e9d8a))==null||_0x56fdba[_0x3a6e93(0x19c)](_0xef01da[_0x3a6e93(0x39d)]===0x0?u[_0x3a6e93(0x36c)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x3a6e93(0x26c)]));}),this[_0x2e75ad(0x1b1)](_0x4dc6ed);}['_handleHeartbeatEvent'](_0x3a04a9){const _0x6424ba=_0x417150;this[_0x6424ba(0x1b3)](_0x3a04a9[_0x6424ba(0x18a)]);}['_send'](_0x4b3c28){const _0x53d8f7=_0x417150;localStorage[_0x53d8f7(0x285)](Le,JSON[_0x53d8f7(0x191)](_0x4b3c28));}['_scheduleHeartbeat'](){const _0x527213=_0x417150;this[_0x527213(0x27e)]=window['setInterval'](()=>{const _0x449451=_0x527213;this[_0x449451(0x304)]({'type':0x2,'memberID':this[_0x449451(0x375)]});},Me);}[_0x417150(0x303)](_0x28cec5){const _0x395bcd=_0x417150;return this[_0x395bcd(0x158)][_0x395bcd(0x328)](_0x28cec5)||this['_unitStatus']['set'](_0x28cec5,new d[(_0x395bcd(0x2af))](u['UnitStatus'][_0x395bcd(0x19e)])),this[_0x395bcd(0x158)]['get'](_0x28cec5);}}var Be=(_0x4a8388=>(_0x4a8388[_0x4a8388[_0x417150(0x301)]=0x0]=_0x417150(0x301),_0x4a8388[_0x4a8388['OK']=0x1]='OK',_0x4a8388[_0x4a8388['INTERNAL_ERROR']=0x2]=_0x417150(0x389),_0x4a8388[_0x4a8388['PERMISSION_DENIED']=0x3]=_0x417150(0x253),_0x4a8388[_0x4a8388[_0x417150(0x2e1)]=0x4]=_0x417150(0x2e1),_0x4a8388[_0x4a8388['UNAUTHENTICATED']=0x5]=_0x417150(0x259),_0x4a8388[_0x4a8388['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x4a8388[_0x4a8388['INVALID_ARGUMENT']=0x7]=_0x417150(0x1e9),_0x4a8388[_0x4a8388[_0x417150(0x2ea)]=0x8]=_0x417150(0x2ea),_0x4a8388[_0x4a8388['COMPLETION_FINISHED']=0x9]=_0x417150(0x194),_0x4a8388[_0x4a8388[_0x417150(0x1b6)]=0xa]='LOGIN_FAILED',_0x4a8388[_0x4a8388['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x417150(0x1af),_0x4a8388[_0x4a8388[_0x417150(0x20a)]=0x1771]=_0x417150(0x20a),_0x4a8388[_0x4a8388[_0x417150(0x213)]=0x1772]=_0x417150(0x213),_0x4a8388[_0x4a8388[_0x417150(0x2b7)]=0x1773]=_0x417150(0x2b7),_0x4a8388[_0x4a8388[_0x417150(0x353)]=0x1b59]=_0x417150(0x353),_0x4a8388[_0x4a8388[_0x417150(0x1d6)]=0x1b5a]=_0x417150(0x1d6),_0x4a8388[_0x4a8388['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x417150(0x392),_0x4a8388[_0x4a8388['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4a8388[_0x4a8388[_0x417150(0x1ce)]=0x1b5d]=_0x417150(0x1ce),_0x4a8388[_0x4a8388[_0x417150(0x30b)]=0x1f41]=_0x417150(0x30b),_0x4a8388[_0x4a8388[_0x417150(0x2ef)]=0x2329]=_0x417150(0x2ef),_0x4a8388[_0x4a8388[_0x417150(0x2d3)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4a8388[_0x4a8388[_0x417150(0x1dd)]=0x232b]=_0x417150(0x1dd),_0x4a8388[_0x4a8388[_0x417150(0x1f4)]=0x232c]=_0x417150(0x1f4),_0x4a8388[_0x4a8388['LICENSE_DISTRO_REJECTED']=0x232d]=_0x417150(0x332),_0x4a8388[_0x4a8388[_0x417150(0x369)]=0x2711]=_0x417150(0x369),_0x4a8388[_0x4a8388['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x417150(0x1bf),_0x4a8388[_0x4a8388[_0x417150(0x38a)]=0x2713]=_0x417150(0x38a),_0x4a8388[_0x4a8388['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4a8388[_0x4a8388[_0x417150(0x23b)]=0x271a]=_0x417150(0x23b),_0x4a8388[_0x4a8388[_0x417150(0x2a1)]=0x271b]=_0x417150(0x2a1),_0x4a8388[_0x4a8388[_0x417150(0x12f)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x4a8388[_0x4a8388[_0x417150(0x181)]=0x271d]=_0x417150(0x181),_0x4a8388[_0x4a8388['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x4a8388[_0x4a8388[_0x417150(0x144)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x4a8388[_0x4a8388[_0x417150(0x182)]=0x2af9]=_0x417150(0x182),_0x4a8388[_0x4a8388[_0x417150(0x38b)]=0x2ee1]=_0x417150(0x38b),_0x4a8388[_0x4a8388['INVALID_INVITE_CODE']=0x2ee2]=_0x417150(0x1e1),_0x4a8388[_0x4a8388[_0x417150(0x1e3)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4a8388[_0x4a8388[_0x417150(0x373)]=0x2ee4]=_0x417150(0x373),_0x4a8388[_0x4a8388[_0x417150(0x163)]=0x2ee5]=_0x417150(0x163),_0x4a8388[_0x4a8388[_0x417150(0x183)]=0x32c9]=_0x417150(0x183),_0x4a8388[_0x4a8388[_0x417150(0x160)]=0x32ca]=_0x417150(0x160),_0x4a8388[_0x4a8388['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x4a8388[_0x4a8388[_0x417150(0x1b4)]=-0x1]='UNRECOGNIZED',_0x4a8388))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x313c20,_0x55f5c8,_0x55c885,_0x11e3f6)=>{for(var _0x36a095=_0x11e3f6>0x1?void 0x0:_0x11e3f6?ns(_0x55f5c8,_0x55c885):_0x55f5c8,_0x47a550=_0x313c20['length']-0x1,_0x7cb2b7;_0x47a550>=0x0;_0x47a550--)(_0x7cb2b7=_0x313c20[_0x47a550])&&(_0x36a095=_0x7cb2b7(_0x36a095)||_0x36a095);return _0x36a095;},ue=(_0x2a1ae8,_0x40617a)=>(_0x3065ea,_0x3660d9)=>_0x40617a(_0x3065ea,_0x3660d9,_0x2a1ae8);exports[_0x417150(0x179)]=class extends a['Disposable']{constructor(_0x3bea5f,_0x2fd3f8,_0x54f985){const _0x262969=_0x417150;super(),this[_0x262969(0x2c3)]=_0x3bea5f,this[_0x262969(0x2ad)]=_0x2fd3f8,this[_0x262969(0x177)]=_0x54f985;}async[_0x417150(0x396)](_0x430485,_0x401bb1,_0x42cd3d,..._0x3ee451){const _0x417c53=_0x417150;var _0x142cf6,_0x4fcff9,_0x5c5b20,_0x5554cc;const _0x4d7b69=this[_0x417c53(0x2c3)][_0x417c53(0x226)]();if(!_0x4d7b69)throw new Error(_0x417c53(0x2be));const _0x24626b=((_0x142cf6=this['_configService']['getConfig'](u[_0x417c53(0x37b)]))!=null?_0x142cf6:u[_0x417c53(0x32e)])+'/'+_0x430485+_0x417c53(0x2b0)+_0x401bb1,_0x2a7fc1=new URL(window[_0x417c53(0x1aa)]['href']),_0x446a16={'scriptId':_0x430485,'runId':(_0x4fcff9=_0x2a7fc1[_0x417c53(0x27c)][_0x417c53(0x359)](_0x417c53(0x2cd)))!=null?_0x4fcff9:'','function':_0x401bb1,'unitId':_0x4d7b69[_0x417c53(0x189)](),'argsOfFunction':JSON[_0x417c53(0x191)](_0x3ee451),'invokeId':(_0x5c5b20=_0x42cd3d[_0x417c53(0x169)])!=null?_0x5c5b20:'','executionId':(_0x5554cc=_0x42cd3d[_0x417c53(0x220)])!=null?_0x5554cc:''};try{const _0x3d7744=await this[_0x417c53(0x2ad)][_0x417c53(0x154)](_0x24626b,{'body':_0x446a16});return _0x3d7744[_0x417c53(0x1e2)][_0x417c53(0x277)]&&_0x3d7744[_0x417c53(0x1e2)][_0x417c53(0x277)]['code']!==Be['OK']?'Failed':_0x3d7744['body'][_0x417c53(0x247)];}catch{return'Failed';}}},exports[_0x417150(0x179)]=rs([ue(0x0,a[_0x417150(0x360)]),ue(0x1,a[_0x417150(0x254)](G['HTTPService'])),ue(0x2,a[_0x417150(0x1ff)])],exports['RemoteUniscriptService']),exports[_0x417150(0x318)]=xe,exports[_0x417150(0x235)]=be,exports[_0x417150(0x1f5)]=Ae,exports[_0x417150(0x202)]=is,exports[_0x417150(0x380)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x325028=_0x32fc;(function(_0x220f6d,_0x5d7f48){const _0x2198c7=_0x32fc,_0x491ba1=_0x220f6d();while(!![]){try{const _0x1c6ad5=-parseInt(_0x2198c7(0x180))/0x1*(-parseInt(_0x2198c7(0x18d))/0x2)+parseInt(_0x2198c7(0x182))/0x3*(parseInt(_0x2198c7(0x18c))/0x4)+parseInt(_0x2198c7(0x17c))/0x5*(parseInt(_0x2198c7(0x17d))/0x6)+parseInt(_0x2198c7(0x17b))/0x7+-parseInt(_0x2198c7(0x17f))/0x8+-parseInt(_0x2198c7(0x188))/0x9*(-parseInt(_0x2198c7(0x18a))/0xa)+-parseInt(_0x2198c7(0x181))/0xb;if(_0x1c6ad5===_0x5d7f48)break;else _0x491ba1['push'](_0x491ba1['shift']());}catch(_0x295756){_0x491ba1['push'](_0x491ba1['shift']());}}}(_0x567f,0xef03f));const e={'collab-client':{'tooltip':{'reconnect':_0x325028(0x17a)}},'collabStatus':{'fetchMiss':_0x325028(0x17e),'conflict':_0x325028(0x183),'notCollab':_0x325028(0x189),'synced':_0x325028(0x18f),'syncing':_0x325028(0x187),'offline':_0x325028(0x179)},'session':{'connection-failed':_0x325028(0x18b),'will-retry':_0x325028(0x185),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x325028(0x186)},'conflict':{'title':'Collaboration\x20Conflict','content':'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.'},'permission':{'title':'Authentication\x20Error','content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x325028(0x18e)},'closeRoom':_0x325028(0x184)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x32fc(_0x1b60ef,_0x272028){const _0x567fa8=_0x567f();return _0x32fc=function(_0x32fc06,_0x2bf9cb){_0x32fc06=_0x32fc06-0x179;let _0xd3dd20=_0x567fa8[_0x32fc06];return _0xd3dd20;},_0x32fc(_0x1b60ef,_0x272028);}module['exports']=e;function _0x567f(){const _0x1b0341=['47139VozkwB','28816447wfIjSr','84YyRWhv','Edit\x20conflicts','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Syncing...','9jUijUc','Local\x20file','11545250NCTFcf','Connection\x20failed,\x20please\x20check\x20your\x20network.','248656UXpqDv','2tnjIPn','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Synced','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Click\x20to\x20Reconnect','10357935lmmtNH','25ALzZbm','640272kqONQV','Syncing\x20server\x20data...','10854696unZATr'];_0x567f=function(){return _0x1b0341;};return _0x567f();}
|