@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506091607 → 0.8.0-nightly.202506101607
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 +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xd6d35e=_0x348c;(function(_0x4eff07,_0x39846a){const _0x11e79f=_0x348c,_0x17fb9a=_0x4eff07();while(!![]){try{const _0x202b8a=-parseInt(_0x11e79f(0xc7))/0x1*(parseInt(_0x11e79f(0xbf))/0x2)+-parseInt(_0x11e79f(0xba))/0x3+parseInt(_0x11e79f(0xc8))/0x4+parseInt(_0x11e79f(0xc4))/0x5+-parseInt(_0x11e79f(0xc3))/0x6+-parseInt(_0x11e79f(0xbb))/0x7*(-parseInt(_0x11e79f(0xc0))/0x8)+parseInt(_0x11e79f(0xc6))/0x9;if(_0x202b8a===_0x39846a)break;else _0x17fb9a['push'](_0x17fb9a['shift']());}catch(_0x3189e5){_0x17fb9a['push'](_0x17fb9a['shift']());}}}(_0x5149,0xd4395));const t=require(_0xd6d35e(0xc5)),e=require(_0xd6d35e(0xc9));function _0x5149(){const _0x2f2be3=['@univerjs/core/facade','RemoteUniscriptService','1784043HqMLKn','3962sGuXFI','_injector','extend','runOnServer','1627794XbMpRf','8248HszOoj','get','FUniver','990012JdBinH','2997975VtQJOw','@univerjs-pro/collaboration-client-ui','6091974fRfvfp','2gfOlpY','5586876uPYcor'];_0x5149=function(){return _0x2f2be3;};return _0x5149();}function _0x348c(_0x47066a,_0xa9d1ba){const _0x51495b=_0x5149();return _0x348c=function(_0x348c17,_0x54f48a){_0x348c17=_0x348c17-0xb9;let _0xadb23d=_0x51495b[_0x348c17];return _0xadb23d;},_0x348c(_0x47066a,_0xa9d1ba);}class c extends e[_0xd6d35e(0xc2)]{[_0xd6d35e(0xbe)](_0x37a7ca,_0x4d8375,..._0x7802f3){const _0x16d044=_0xd6d35e;return this[_0x16d044(0xbc)][_0x16d044(0xc1)](t[_0x16d044(0xb9)])['runOnServer'](_0x37a7ca,_0x4d8375,{},..._0x7802f3);}}e[_0xd6d35e(0xc2)][_0xd6d35e(0xbd)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x51cf5f=_0x406e;(function(_0x1c9e1f,_0xc8dae7){const _0x39dc3f=_0x406e,_0x109420=_0x1c9e1f();while(!![]){try{const _0x446d49=parseInt(_0x39dc3f(0x330))/0x1+parseInt(_0x39dc3f(0x1ac))/0x2+-parseInt(_0x39dc3f(0x2cf))/0x3*(-parseInt(_0x39dc3f(0x336))/0x4)+parseInt(_0x39dc3f(0x290))/0x5+parseInt(_0x39dc3f(0x23e))/0x6+parseInt(_0x39dc3f(0x1b3))/0x7+-parseInt(_0x39dc3f(0x33f))/0x8*(parseInt(_0x39dc3f(0x2d5))/0x9);if(_0x446d49===_0xc8dae7)break;else _0x109420['push'](_0x109420['shift']());}catch(_0x257801){_0x109420['push'](_0x109420['shift']());}}}(_0x65eb,0xf036e));var Ve=Object[_0x51cf5f(0x348)],Xe=(_0x4126a1,_0x2d1228,_0x516455)=>_0x2d1228 in _0x4126a1?Ve(_0x4126a1,_0x2d1228,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x516455}):_0x4126a1[_0x2d1228]=_0x516455,h=(_0x299af4,_0x4c1b06,_0x262882)=>Xe(_0x299af4,typeof _0x4c1b06!='symbol'?_0x4c1b06+'':_0x4c1b06,_0x262882);Object[_0x51cf5f(0x348)](exports,Symbol[_0x51cf5f(0x2e5)],{'value':_0x51cf5f(0x17d)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x51cf5f(0x24e)),p=require(_0x51cf5f(0x23a)),G=require(_0x51cf5f(0x14d)),b=require(_0x51cf5f(0x397)),Ge=require('@univerjs/drawing'),d=require('rxjs'),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x51cf5f(0x2af)),g=require(_0x51cf5f(0x137)),$=require(_0x51cf5f(0x1fe)),X=require(_0x51cf5f(0x3ae)),w=require('react/jsx-runtime'),T=require(_0x51cf5f(0x232)),D=require('@univerjs/design'),M=require(_0x51cf5f(0x320)),Ke=require(_0x51cf5f(0x166));var qe=Object[_0x51cf5f(0x377)],ze=(_0x30b602,_0x8d4aaf,_0x419f5a,_0xf1f080)=>{const _0xc6bcf0=_0x51cf5f;for(var _0x413540=_0xf1f080>0x1?void 0x0:_0xf1f080?qe(_0x8d4aaf,_0x419f5a):_0x8d4aaf,_0x1e5c0c=_0x30b602[_0xc6bcf0(0x296)]-0x1,_0x22841c;_0x1e5c0c>=0x0;_0x1e5c0c--)(_0x22841c=_0x30b602[_0x1e5c0c])&&(_0x413540=_0x22841c(_0x413540)||_0x413540);return _0x413540;},Te=(_0x334292,_0x22e618)=>(_0x4a7c37,_0x133792)=>_0x22e618(_0x4a7c37,_0x133792,_0x334292);let de=class extends a['RxDisposable']{constructor(_0x30cf4a,_0x34442e){const _0xb9415f=_0x51cf5f;super(),this[_0xb9415f(0x12b)]=_0x30cf4a,this[_0xb9415f(0x31c)]=_0x34442e,this[_0xb9415f(0x2f4)]();}[_0x51cf5f(0x2f4)](){const _0x49b6bc=_0x51cf5f,_0x268ca2=this;this[_0x49b6bc(0x1fa)](this['_docClipboardService'][_0x49b6bc(0x26a)]({'onBeforePasteImage':async _0x48c7c1=>{const _0x5b2ad2=_0x49b6bc,_0x1f28d2=await _0x268ca2[_0x5b2ad2(0x31c)][_0x5b2ad2(0x12d)](_0x48c7c1);return _0x1f28d2?{'source':_0x1f28d2[_0x5b2ad2(0x1cc)],'imageSourceType':_0x1f28d2[_0x5b2ad2(0x13d)]}:null;}}));}};de=ze([Te(0x0,b[_0x51cf5f(0x163)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=['purple.300',_0x51cf5f(0x286),_0x51cf5f(0x1b4),_0x51cf5f(0x18b),_0x51cf5f(0x1ab),_0x51cf5f(0x2ce)];class me extends a[_0x51cf5f(0x188)]{constructor(){const _0xfe8f8a=_0x51cf5f;super(...arguments),h(this,_0xfe8f8a(0x223),new Map()),h(this,_0xfe8f8a(0x1c5),0x0);}['assignAColorForMemberID'](_0x511e35){const _0x2c3cf1=_0x51cf5f;if(this['_assignedColors'][_0x2c3cf1(0x2e2)](_0x511e35))return this['_assignedColors'][_0x2c3cf1(0x214)](_0x511e35);const _0xbe41ef=Oe[this[_0x2c3cf1(0x1c5)]];return this[_0x2c3cf1(0x1c5)]=(this[_0x2c3cf1(0x1c5)]+0x1)%Oe['length'],this['_assignedColors'][_0x2c3cf1(0x2e8)](_0x511e35,_0xbe41ef),_0xbe41ef;}}function we(_0x5f0dcc){const _0x11a3b4=_0x51cf5f;let _0x413952='';for(const _0x45e0df of _0x5f0dcc){const {startOffset:_0x1c7d90,endOffset:_0x2c28ac,isActive:_0x3f1eed,rangeType:_0x266775,segmentId:_0x5bd16b,segmentPage:_0x1a9a35}=_0x45e0df;_0x413952[_0x11a3b4(0x296)]&&(_0x413952+=','),_0x413952+=_0x1c7d90+':'+_0x2c28ac+':'+(_0x3f1eed?'1':'0')+':'+_0x266775+':'+_0x5bd16b+':'+_0x1a9a35;}return _0x413952;}function Je(_0x35cb32){const _0x17eeb9=_0x51cf5f,_0x3b614d=_0x35cb32[_0x17eeb9(0x1d4)](','),_0x484746=[];for(const _0x22cd87 of _0x3b614d){const [_0x53f97e,_0x1b37bd,_0x23ab33,_0x59c969,_0x33c45c,_0x15a83b]=_0x22cd87['split'](':');_0x484746[_0x17eeb9(0x326)]({'startOffset':Number(_0x53f97e),'endOffset':Number(_0x1b37bd),'collapsed':_0x53f97e===_0x1b37bd,'isActive':_0x23ab33==='1','rangeType':_0x59c969===a[_0x17eeb9(0x2ad)]['TEXT']?a[_0x17eeb9(0x2ad)][_0x17eeb9(0x28c)]:a[_0x17eeb9(0x2ad)]['RECT'],'segmentId':typeof _0x33c45c==_0x17eeb9(0x308)?String(_0x33c45c):'','segmentPage':Number(_0x15a83b!=null?_0x15a83b:-0x1)});}return _0x484746[_0x17eeb9(0x355)](_0x57df18=>_0x57df18[_0x17eeb9(0x268)])||(_0x484746[0x0][_0x17eeb9(0x268)]=!0x0),_0x484746;}class Ce extends a[_0x51cf5f(0x298)]{constructor(){const _0x228119=_0x51cf5f;super(...arguments),h(this,_0x228119(0x13e),new d[(_0x228119(0x365))](null)),h(this,_0x228119(0x331),this[_0x228119(0x13e)][_0x228119(0x387)]());}[_0x51cf5f(0x245)](_0x4683b0){const _0x4b0b17=_0x51cf5f,{unitID:_0x397368,memberID:_0x17efeb,textRanges:_0x445064}=_0x4683b0,_0x2e8556=we(_0x445064);if(_0x2e8556==='')return;const _0x3f9762={'unitID':_0x397368,'memberID':_0x17efeb,'selection':_0x2e8556};this[_0x4b0b17(0x13e)][_0x4b0b17(0x19c)](_0x3f9762);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x357c41,_0x2ca4d0,_0x222805,_0x50f1cd)=>{const _0x51b80c=_0x51cf5f;for(var _0x53b392=_0x50f1cd>0x1?void 0x0:_0x50f1cd?Ze(_0x2ca4d0,_0x222805):_0x2ca4d0,_0x1baabb=_0x357c41[_0x51b80c(0x296)]-0x1,_0x1b46f1;_0x1baabb>=0x0;_0x1baabb--)(_0x1b46f1=_0x357c41[_0x1baabb])&&(_0x53b392=_0x1b46f1(_0x53b392)||_0x53b392);return _0x53b392;},L=(_0x51fe7e,_0x233fcf)=>(_0x4e5965,_0x4d9e65)=>_0x233fcf(_0x4e5965,_0x4d9e65,_0x51fe7e);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x5322ef,_0x207351,_0x47b0d2,_0x3f6581,_0x4897ec,_0x2d1938,_0x4d6c3f,_0x21a8ac,_0x32e3cf){const _0x2d9da4=_0x51cf5f;super(),h(this,_0x2d9da4(0x17c),!0x1),h(this,_0x2d9da4(0x2f4),!0x1),h(this,_0x2d9da4(0x1ed),new d[(_0x2d9da4(0x365))](new Map())),h(this,'cursorInfo$',this[_0x2d9da4(0x1ed)][_0x2d9da4(0x387)]()),h(this,_0x2d9da4(0x2e1),new d[(_0x2d9da4(0x365))]([])),h(this,_0x2d9da4(0x3b9),this[_0x2d9da4(0x2e1)][_0x2d9da4(0x3a7)](d[_0x2d9da4(0x238)](et))),h(this,'_updateLocalCursor',a['debounce'](_0x3e3280=>{const _0x3937e8=_0x2d9da4,_0x339488={'eventID':m[_0x3937e8(0x16b)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3937e8(0x191)][_0x3937e8(0x3aa)](),'selection':we(_0x3e3280)}};this['_session'][_0x3937e8(0x220)](_0x339488,this[_0x3937e8(0x1f4)]);},tt)),(this[_0x2d9da4(0x1f4)]=_0x5322ef,this[_0x2d9da4(0x191)]=_0x207351,this['_injector']=_0x47b0d2,this[_0x2d9da4(0x215)]=_0x3f6581,this[_0x2d9da4(0x18c)]=_0x4897ec,this[_0x2d9da4(0x247)]=_0x2d1938,this[_0x2d9da4(0x1a4)]=_0x4d6c3f,this[_0x2d9da4(0x28d)]=_0x21a8ac,this['_commandService']=_0x32e3cf);}get[_0x51cf5f(0x38c)](){const _0xae0130=_0x51cf5f;return this[_0xae0130(0x1ed)][_0xae0130(0x329)]();}get['roomMembers'](){const _0x2960d0=_0x51cf5f;return this[_0x2960d0(0x2e1)]['getValue']();}[_0x51cf5f(0x277)](){const _0x1b2e74=_0x51cf5f;super[_0x1b2e74(0x277)](),this['_cursorInfo$']['next'](new Map()),this[_0x1b2e74(0x1ed)][_0x1b2e74(0x21c)](),this['_roomMembers$'][_0x1b2e74(0x19c)]([]),this['_roomMembers$']['complete']();}[_0x51cf5f(0x22e)](){const _0x626536=_0x51cf5f;this['_init']||(this[_0x626536(0x2f4)]=!0x0,this['_session']['sessionStatus$'][_0x626536(0x3a7)](d[_0x626536(0x20d)](this['dispose$']))[_0x626536(0x254)](_0x43a3ff=>{const _0x1c8bff=_0x626536;_0x43a3ff===u[_0x1c8bff(0x23d)][_0x1c8bff(0x145)]?this[_0x1c8bff(0x26b)]():this[_0x1c8bff(0x207)]();}),this['_session']['event$'][_0x626536(0x3a7)](d['takeUntil'](this[_0x626536(0x28a)]))[_0x626536(0x254)](_0x5bd0c9=>{const _0x156d49=_0x626536,_0x58a140=_0x5bd0c9[_0x156d49(0x253)];_0x58a140===m[_0x156d49(0x16b)][_0x156d49(0x32a)]&&this[_0x156d49(0x210)](_0x5bd0c9),_0x58a140===m['CollaborationEvent'][_0x156d49(0x187)]&&this[_0x156d49(0x370)](_0x5bd0c9);}),this[_0x626536(0x1fa)](this[_0x626536(0x362)]['onCommandExecuted'](_0x45d742=>{const _0x54d7ed=_0x626536,_0x82c5e3=_0x45d742[_0x54d7ed(0x3b5)];_0x82c5e3!=null&&this['_online']&&_0x45d742['id']===Y[_0x54d7ed(0x274)]['id']&&_0x82c5e3[_0x54d7ed(0x395)]===this['unitID']&&_0x82c5e3[_0x54d7ed(0x2bd)]===!0x1&&_0x82c5e3[_0x54d7ed(0x287)][_0x54d7ed(0x296)]>0x0&&this[_0x54d7ed(0x27e)](_0x82c5e3[_0x54d7ed(0x287)]);})),this[_0x626536(0x247)][_0x626536(0x331)]['pipe'](d['takeUntil'](this[_0x626536(0x28a)]))[_0x626536(0x254)](_0x1dbb1d=>{const _0x47c427=_0x626536;if((_0x1dbb1d==null?void 0x0:_0x1dbb1d['unitID'])!==this[_0x47c427(0x1f4)])return;const _0x30d0ba={'eventID':m[_0x47c427(0x16b)]['UPDATE_CURSOR'],'data':_0x1dbb1d};this[_0x47c427(0x210)](_0x30d0ba);}),this[_0x626536(0x1fa)](this[_0x626536(0x362)][_0x626536(0x1a3)](_0x35af14=>{const _0x247e6b=_0x626536;if(_0x35af14[_0x247e6b(0x3b5)]==null)return;const _0x5897cf=_0x35af14[_0x247e6b(0x3b5)];if(_0x35af14['id']!==Y[_0x247e6b(0x26c)]['id']||_0x5897cf[_0x247e6b(0x395)]!==this[_0x247e6b(0x1f4)])return;const _0x171a41={'id':_0x247e6b(0x292),'params':_0x5897cf},_0x487d3c=this[_0x247e6b(0x38c)];for(const [_0xdca5a1,_0x38f962]of _0x487d3c){const _0x2f0a15={'id':_0x247e6b(0x292),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x38f962['ranges']}},_0x274339=this[_0x247e6b(0x1a4)][_0x247e6b(0x148)](_0x171a41,_0x2f0a15,!0x1);if(m[_0x247e6b(0x201)](_0x274339))throw _0x274339['error'];_0x487d3c[_0x247e6b(0x2e8)](_0xdca5a1,{..._0x38f962,'ranges':_0x274339[_0x247e6b(0x3af)]['params'][_0x247e6b(0x225)]});}queueMicrotask(()=>{const _0x3cc912=_0x247e6b;this[_0x3cc912(0x1ed)][_0x3cc912(0x19c)](_0x487d3c);});})));}[_0x51cf5f(0x210)](_0x1fa907){const _0x37d1ad=_0x51cf5f;var _0x2706fd,_0xdeefe7;const {memberID:_0x48eca1,selection:_0x43b91e}=_0x1fa907['data'],_0x1e276c=Je(_0x43b91e),_0x48b960=(_0xdeefe7=(_0x2706fd=this[_0x37d1ad(0x18c)][_0x37d1ad(0x282)](this[_0x37d1ad(0x1f4)],_0x48eca1))==null?void 0x0:_0x2706fd['name'])!=null?_0xdeefe7:'Unknown\x20user',_0x564f9d={'color':this[_0x37d1ad(0x215)][_0x37d1ad(0x35f)](_0x48eca1),'name':_0x48b960,'ranges':_0x1e276c},_0x19e89b=this['cursorInfo'];_0x19e89b[_0x37d1ad(0x2e8)](_0x48eca1,_0x564f9d),this['_cursorInfo$'][_0x37d1ad(0x19c)](_0x19e89b);}[_0x51cf5f(0x370)](_0x21b74a){const _0x2cf34e=_0x51cf5f,{memberID:_0x222e63}=_0x21b74a[_0x2cf34e(0x2eb)],_0x17ac89=this[_0x2cf34e(0x38c)];_0x17ac89[_0x2cf34e(0x1cb)](_0x222e63),this['_cursorInfo$'][_0x2cf34e(0x19c)](_0x17ac89);}[_0x51cf5f(0x26b)](){const _0x2ad857=_0x51cf5f;var _0x201859;if(this['_online']=!0x0,((_0x201859=this[_0x2ad857(0x28d)][_0x2ad857(0x340)]())==null?void 0x0:_0x201859[_0x2ad857(0x14f)]())!==this[_0x2ad857(0x1f4)])return;const _0x3e1960=this['_injector'][_0x2ad857(0x214)](Y['DocSelectionManagerService'])[_0x2ad857(0x1e8)]();Array[_0x2ad857(0x273)](_0x3e1960)&&_0x3e1960[_0x2ad857(0x296)]>0x0&&this[_0x2ad857(0x27e)](_0x3e1960);}[_0x51cf5f(0x207)](){const _0x3273bc=_0x51cf5f;this[_0x3273bc(0x17c)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x51cf5f(0x2be)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x267)])),L(0x5,a[_0x51cf5f(0x249)](Ce)),L(0x6,m[_0x51cf5f(0x339)]),L(0x7,a[_0x51cf5f(0x185)]),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x1fa032,_0x3cc087,_0x2048b4,_0x3c1f13)=>{const _0x1a1c70=_0x51cf5f;for(var _0x103e9a=_0x3c1f13>0x1?void 0x0:_0x3c1f13?st(_0x3cc087,_0x2048b4):_0x3cc087,_0x55e56f=_0x1fa032[_0x1a1c70(0x296)]-0x1,_0x662391;_0x55e56f>=0x0;_0x55e56f--)(_0x662391=_0x1fa032[_0x55e56f])&&(_0x103e9a=_0x662391(_0x103e9a)||_0x103e9a);return _0x103e9a;},A=(_0x749382,_0x43fcac)=>(_0x4e582f,_0x54d070)=>_0x43fcac(_0x4e582f,_0x54d070,_0x749382);const nt=0x12c,rt=0x64,ot=()=>{let _0x1efe6b=[],_0x352af6=!0x1;return _0x5a6cba=>{const _0x39c04=_0x406e;_0x1efe6b[_0x39c04(0x326)](_0x5a6cba),_0x352af6||(_0x352af6=!0x0,setTimeout(()=>{_0x1efe6b['forEach'](_0x5071a8=>_0x5071a8()),_0x1efe6b=[],_0x352af6=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x5c2ef7,_0x4020a6,_0x1fcbe0,_0x56177c,_0x1b4ebe,_0x1ee3c8,_0x2b1765,_0x190ba0){const _0x4b27ba=_0x51cf5f;super(),h(this,_0x4b27ba(0x17c),!0x1),h(this,_0x4b27ba(0x2f4),!0x1),h(this,'_cursorInfo$',new d[(_0x4b27ba(0x365))](new Map())),h(this,_0x4b27ba(0x3ac),this[_0x4b27ba(0x1ed)]['asObservable']()),h(this,_0x4b27ba(0x2e1),new d[(_0x4b27ba(0x365))]([])),h(this,_0x4b27ba(0x3b9),this['_roomMembers$'][_0x4b27ba(0x3a7)](d[_0x4b27ba(0x238)](nt))),h(this,_0x4b27ba(0x27e),a[_0x4b27ba(0x246)]((_0x481c3b,_0x3da4be)=>{const _0x9eb8b2=_0x4b27ba,_0x2e63f7={'eventID':m[_0x9eb8b2(0x16b)][_0x9eb8b2(0x32a)],'data':{'unitID':this[_0x9eb8b2(0x1f4)],'memberID':this['_session']['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x481c3b,_0x3da4be[_0x9eb8b2(0x271)])}};this['_session'][_0x9eb8b2(0x220)](_0x2e63f7,this['unitID']);},rt)),(this[_0x4b27ba(0x1f4)]=_0x5c2ef7,this[_0x4b27ba(0x191)]=_0x4020a6,this[_0x4b27ba(0x382)]=_0x1fcbe0,this[_0x4b27ba(0x215)]=_0x56177c,this[_0x4b27ba(0x18c)]=_0x1b4ebe,this['_univerInstanceService']=_0x1ee3c8,this[_0x4b27ba(0x362)]=_0x2b1765,this['_refRangeService']=_0x190ba0);}get[_0x51cf5f(0x38c)](){const _0x15c22b=_0x51cf5f;return this[_0x15c22b(0x1ed)]['getValue']();}get[_0x51cf5f(0x343)](){const _0x5e7b43=_0x51cf5f;return this['_roomMembers$'][_0x5e7b43(0x329)]();}[_0x51cf5f(0x277)](){const _0x570c6b=_0x51cf5f;super[_0x570c6b(0x277)](),this['_cursorInfo$'][_0x570c6b(0x19c)](new Map()),this[_0x570c6b(0x1ed)][_0x570c6b(0x21c)](),this['_roomMembers$'][_0x570c6b(0x19c)]([]),this[_0x570c6b(0x2e1)][_0x570c6b(0x21c)]();}[_0x51cf5f(0x22e)](){const _0x33dd0d=_0x51cf5f;this[_0x33dd0d(0x2f4)]||(this['_init']=!0x0,this['_session'][_0x33dd0d(0x354)][_0x33dd0d(0x3a7)](d[_0x33dd0d(0x20d)](this['dispose$']))[_0x33dd0d(0x254)](_0x316d0d=>{const _0x2268f1=_0x33dd0d;_0x316d0d===u['SessionStatus'][_0x2268f1(0x145)]?this['_toggleOnline']():this[_0x2268f1(0x207)]();}),this[_0x33dd0d(0x191)][_0x33dd0d(0x341)][_0x33dd0d(0x3a7)](d['takeUntil'](this[_0x33dd0d(0x28a)]))[_0x33dd0d(0x254)](_0x19aee9=>{const _0xddc0b0=_0x33dd0d,_0xc42298=_0x19aee9[_0xddc0b0(0x253)];_0xc42298===m[_0xddc0b0(0x16b)]['UPDATE_CURSOR']&&this[_0xddc0b0(0x210)](_0x19aee9),_0xc42298===m[_0xddc0b0(0x16b)][_0xddc0b0(0x187)]&&this[_0xddc0b0(0x370)](_0x19aee9);}),this['_onRefRangeChange'](),this[_0x33dd0d(0x1fa)](this['_commandService']['onCommandExecuted'](_0x54bcd5=>{const _0x2060fd=_0x33dd0d;if(this[_0x2060fd(0x17c)]&&_0x54bcd5['id']===g[_0x2060fd(0x17f)]['id']&&_0x54bcd5['params'][_0x2060fd(0x395)]===this[_0x2060fd(0x1f4)]){const _0x1dcf18=_0x54bcd5[_0x2060fd(0x3b5)];this[_0x2060fd(0x27e)](_0x1dcf18[_0x2060fd(0x32c)],_0x1dcf18[_0x2060fd(0x195)][0x0]);}})));}[_0x51cf5f(0x210)](_0x510931){const _0xfbab32=_0x51cf5f;var _0x553e9c,_0x39b48b;const {memberID:_0x5ce682,selection:_0x327146}=_0x510931['data'],{sheetName:_0xfd1b55,range:_0x1281f7}=Ee['deserializeRangeWithSheet'](_0x327146),_0x491e89={'name':(_0x39b48b=(_0x553e9c=this[_0xfbab32(0x18c)][_0xfbab32(0x282)](this[_0xfbab32(0x1f4)],_0x5ce682))==null?void 0x0:_0x553e9c[_0xfbab32(0x2e6)])!=null?_0x39b48b:_0xfbab32(0x2f1),'range':this['_getMergeRange'](_0xfd1b55,_0x1281f7),'sheetID':_0xfd1b55,'color':this[_0xfbab32(0x215)][_0xfbab32(0x35f)](_0x5ce682),'selection':_0x327146},_0x3b35ff=this[_0xfbab32(0x38c)];_0x3b35ff[_0xfbab32(0x2e8)](_0x5ce682,_0x491e89),this['_cursorInfo$'][_0xfbab32(0x19c)](_0x3b35ff);}[_0x51cf5f(0x370)](_0x42db7f){const _0x39d84b=_0x51cf5f,{memberID:_0x9a3642}=_0x42db7f[_0x39d84b(0x2eb)],_0x54d2fc=this[_0x39d84b(0x38c)];_0x54d2fc[_0x39d84b(0x1cb)](_0x9a3642),this['_cursorInfo$'][_0x39d84b(0x19c)](_0x54d2fc);}[_0x51cf5f(0x180)](_0x12121f,_0x1bb165){const _0x48aea5=_0x51cf5f;var _0x15abaf,_0xae6f81;const _0xa3a3fc=(_0xae6f81=(_0x15abaf=this[_0x48aea5(0x28d)][_0x48aea5(0x305)](this['unitID']))==null?void 0x0:_0x15abaf[_0x48aea5(0x2ec)](_0x12121f))==null?void 0x0:_0xae6f81[_0x48aea5(0x24c)]();return(_0xa3a3fc==null?void 0x0:_0xa3a3fc['find'](_0x4e1481=>a[_0x48aea5(0x173)][_0x48aea5(0x1e9)](_0x4e1481,_0x1bb165)))||_0x1bb165;}['_onRefRangeChange'](){const _0x13de0c=_0x51cf5f,_0x315432=new a[(_0x13de0c(0x193))](),_0x535d62=ot(),_0x52e055=()=>{const _0x35e45b=_0x13de0c;_0x315432['dispose']();const _0x232a12=(_0x5f090e,_0x2a9410,_0x3bccb2,_0x3eba40)=>{const _0x3b1cc3=_0x406e;let _0x54f620=[];switch(_0x5f090e['id']){case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x135)]:{_0x54f620=g[_0x3b1cc3(0x300)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x14e)]:{_0x54f620=g[_0x3b1cc3(0x359)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x1e0)]:{_0x54f620=g[_0x3b1cc3(0x168)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x208)]:{_0x54f620=g[_0x3b1cc3(0x250)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x38f)]:{_0x54f620=g['handleInsertRangeMoveRight'](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x27b)]:{_0x54f620=g[_0x3b1cc3(0x3a2)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x1d8)]:{_0x54f620=g[_0x3b1cc3(0x2de)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)]['RemoveColCommandId']:{_0x54f620=g[_0x3b1cc3(0x375)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x33e)]:{_0x54f620=g[_0x3b1cc3(0x28b)](_0x5f090e,_0x3eba40);break;}}const _0x1c8fc7=g[_0x3b1cc3(0x156)](_0x54f620,_0x3eba40),_0x395b5f=this['cursorInfo'][_0x3b1cc3(0x214)](_0x2a9410);if(_0x395b5f&&_0x1c8fc7){const _0xea599e={..._0x395b5f,'range':_0x1c8fc7};this[_0x3b1cc3(0x38c)][_0x3b1cc3(0x2e8)](_0x2a9410,_0xea599e),_0x535d62(()=>{const _0x1d8efb=_0x3b1cc3,_0x18e406=this[_0x1d8efb(0x3a3)][_0x1d8efb(0x1b6)](_0x1c8fc7,_0x533085=>(_0x18e406['dispose'](),_0x232a12(_0x533085,_0x2a9410,_0x3bccb2,_0x1c8fc7)));_0x315432['add'](_0x18e406);});}return{'redos':[],'undos':[]};};this[_0x35e45b(0x38c)]['forEach']((_0x2b670c,_0x46deb9)=>{const _0x16b4b5=_0x35e45b,{range:_0x29a154,sheetID:_0x1e6ad1}=_0x2b670c,_0x18b67d=this['_refRangeService']['registerRefRange'](_0x29a154,_0x5c8467=>(_0x18b67d[_0x16b4b5(0x277)](),_0x232a12(_0x5c8467,_0x46deb9,_0x1e6ad1,_0x29a154)));_0x315432[_0x16b4b5(0x1e2)](_0x18b67d);});};this[_0x13de0c(0x1fa)](a[_0x13de0c(0x30a)](this['_cursorInfo$'][_0x13de0c(0x254)](()=>{_0x52e055();})));}[_0x51cf5f(0x26b)](){const _0x3494c7=_0x51cf5f;var _0x4d15a6,_0x2efe53;if(this[_0x3494c7(0x17c)]=!0x0,((_0x4d15a6=this[_0x3494c7(0x28d)][_0x3494c7(0x340)]())==null?void 0x0:_0x4d15a6[_0x3494c7(0x14f)]())!==this[_0x3494c7(0x1f4)])return;const _0x3672bd=(_0x2efe53=this['_injector'][_0x3494c7(0x214)](g[_0x3494c7(0x39b)])[_0x3494c7(0x237)]())==null?void 0x0:_0x2efe53[0x0],_0x496bc9=this['_univerInstanceService'][_0x3494c7(0x2c8)](a[_0x3494c7(0x304)][_0x3494c7(0x2fd)])[_0x3494c7(0x171)]();_0x3672bd&&_0x496bc9&&this[_0x3494c7(0x27e)](_0x496bc9['getSheetId'](),_0x3672bd);}['_toggleOffline'](){const _0x419655=_0x51cf5f;this[_0x419655(0x17c)]=!0x1;}};Se=it([A(0x2,a[_0x51cf5f(0x249)](a['Injector'])),A(0x3,a[_0x51cf5f(0x249)](me)),A(0x4,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x267)])),A(0x5,a[_0x51cf5f(0x185)]),A(0x6,a[_0x51cf5f(0x36e)]),A(0x7,a[_0x51cf5f(0x249)](g[_0x51cf5f(0x384)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x1d0b39,_0x5da8be,_0x476082,_0x45587f)=>{const _0x4cc240=_0x51cf5f;for(var _0xe3d928=_0x45587f>0x1?void 0x0:_0x45587f?at(_0x5da8be,_0x476082):_0x5da8be,_0x457624=_0x1d0b39[_0x4cc240(0x296)]-0x1,_0x16ee72;_0x457624>=0x0;_0x457624--)(_0x16ee72=_0x1d0b39[_0x457624])&&(_0xe3d928=_0x16ee72(_0xe3d928)||_0xe3d928);return _0xe3d928;},ie=(_0x2f367c,_0x272923)=>(_0x2bc554,_0x56cfca)=>_0x272923(_0x2bc554,_0x56cfca,_0x2f367c);let x=class extends a[_0x51cf5f(0x298)]{constructor(_0x38b4a2,_0x199ead,_0xfad773){const _0x4008ac=_0x51cf5f;super(),h(this,_0x4008ac(0x1ca),new Map()),h(this,_0x4008ac(0x1c2),new d[(_0x4008ac(0x37e))]()),(this[_0x4008ac(0x28d)]=_0x38b4a2,this[_0x4008ac(0x382)]=_0x199ead,this[_0x4008ac(0x192)]=_0xfad773,this[_0x4008ac(0x2f4)]());}[_0x51cf5f(0x277)](){const _0xa0d7b6=_0x51cf5f;super[_0xa0d7b6(0x277)](),this[_0xa0d7b6(0x1c2)]['complete'](),this[_0xa0d7b6(0x1ca)][_0xa0d7b6(0x2ba)](_0x1603d4=>_0x1603d4['dispose']());}[_0x51cf5f(0x2a4)](_0x2fc904){const _0x3ebbbf=_0x51cf5f;return this[_0x3ebbbf(0x1ca)][_0x3ebbbf(0x2e2)](_0x2fc904)?this[_0x3ebbbf(0x1ca)][_0x3ebbbf(0x214)](_0x2fc904)['cursorInfo$']:this[_0x3ebbbf(0x1c2)]['pipe'](d[_0x3ebbbf(0x1d0)](_0x57e45d=>_0x57e45d[_0x3ebbbf(0x1f4)]===_0x2fc904),d[_0x3ebbbf(0x1d5)](_0x17b17f=>_0x17b17f['cursorInfo$']));}['_init'](){const _0x21f428=_0x51cf5f;this[_0x21f428(0x28d)][_0x21f428(0x1e1)](a[_0x21f428(0x304)][_0x21f428(0x2fd)])[_0x21f428(0x3a7)](d['takeUntil'](this['dispose$']))[_0x21f428(0x254)](async _0x29ff36=>{const _0x4b3590=_0x21f428,_0x21f92e=_0x29ff36[_0x4b3590(0x14f)](),_0x22a407=await this[_0x4b3590(0x1b2)](_0x21f92e);this[_0x4b3590(0x1c2)][_0x4b3590(0x19c)](_0x22a407),this[_0x4b3590(0x1ca)][_0x4b3590(0x2e8)](_0x21f92e,_0x22a407);}),this[_0x21f428(0x28d)][_0x21f428(0x1e1)](a[_0x21f428(0x304)][_0x21f428(0x288)])[_0x21f428(0x3a7)](d[_0x21f428(0x20d)](this['dispose$']))[_0x21f428(0x3a7)](d['filter'](_0x99cc9b=>!_0x99cc9b['getUnitId']()[_0x21f428(0x142)]('__')))[_0x21f428(0x254)](async _0x4b4ae3=>{const _0x23306=_0x21f428,_0x520eef=_0x4b4ae3['getUnitId'](),_0x3217e8=await this['_startDocCollabCursor'](_0x520eef);this['_entityInit$'][_0x23306(0x19c)](_0x3217e8),this['_entities'][_0x23306(0x2e8)](_0x520eef,_0x3217e8);}),d[_0x21f428(0x2fc)](this[_0x21f428(0x28d)][_0x21f428(0x29d)](a[_0x21f428(0x304)][_0x21f428(0x288)]),this[_0x21f428(0x28d)][_0x21f428(0x29d)](a[_0x21f428(0x304)]['UNIVER_SHEET']))[_0x21f428(0x3a7)](d[_0x21f428(0x20d)](this['dispose$']))['subscribe'](_0x3dffea=>{const _0x26fb62=_0x21f428,_0x34449a=_0x3dffea[_0x26fb62(0x14f)](),_0x2f6f4b=this[_0x26fb62(0x1ca)]['get'](_0x34449a);_0x2f6f4b&&(_0x2f6f4b[_0x26fb62(0x277)](),this['_entities'][_0x26fb62(0x1cb)](_0x34449a));});}async[_0x51cf5f(0x1b2)](_0x4f8e5b){const _0xfee5ee=_0x51cf5f,_0x565cb1=await this['_collabSessionService'][_0xfee5ee(0x2fe)](_0x4f8e5b),_0x370b73=this[_0xfee5ee(0x382)][_0xfee5ee(0x30f)](Se,_0x4f8e5b,_0x565cb1);return _0x370b73[_0xfee5ee(0x22e)](),_0x370b73;}async[_0x51cf5f(0x1eb)](_0x43339e){const _0x5683d9=_0x51cf5f,_0x1eaf9d=await this[_0x5683d9(0x192)][_0x5683d9(0x2fe)](_0x43339e),_0x223e33=this[_0x5683d9(0x382)][_0x5683d9(0x30f)](fe,_0x43339e,_0x1eaf9d);return _0x223e33['init'](),_0x223e33;}};x=ct([ie(0x0,a[_0x51cf5f(0x185)]),ie(0x1,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),ie(0x2,a['Inject'](u[_0x51cf5f(0x386)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x450f53,_0x28ddf3){const _0x25e9a3=_0x51cf5f;let {radius:_0x10bb36,width:_0x41d167,height:_0x9ea3d3}=_0x28ddf3;_0x10bb36=_0x10bb36!=null?_0x10bb36:0x0,_0x41d167=_0x41d167!=null?_0x41d167:0x1e,_0x9ea3d3=_0x9ea3d3!=null?_0x9ea3d3:0x1e;let _0x5ec22b=0x0,_0x15ab57=0x0,_0x13fb4f=0x0;_0x5ec22b=_0x15ab57=_0x13fb4f=Math[_0x25e9a3(0x217)](_0x10bb36,_0x41d167/0x2,_0x9ea3d3/0x2),_0x450f53[_0x25e9a3(0x257)](),_0x450f53[_0x25e9a3(0x31f)](_0x5ec22b,0x0),_0x450f53[_0x25e9a3(0x147)](_0x41d167-_0x15ab57,0x0),_0x450f53['arc'](_0x41d167-_0x15ab57,_0x15ab57,_0x15ab57,Math['PI']*0x3/0x2,0x0,!0x1),_0x450f53[_0x25e9a3(0x147)](_0x41d167,_0x9ea3d3-_0x13fb4f),_0x450f53[_0x25e9a3(0x202)](_0x41d167-_0x13fb4f,_0x9ea3d3-_0x13fb4f,_0x13fb4f,0x0,Math['PI']/0x2,!0x1),_0x450f53['lineTo'](0x0,_0x9ea3d3),_0x450f53[_0x25e9a3(0x147)](0x0,_0x5ec22b),_0x450f53['arc'](_0x5ec22b,_0x5ec22b,_0x5ec22b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x450f53[_0x25e9a3(0x1a1)](),_0x28ddf3[_0x25e9a3(0x2ff)]&&(_0x450f53['save'](),_0x450f53[_0x25e9a3(0x34b)]=_0x28ddf3['fill'],_0x28ddf3[_0x25e9a3(0x2bb)]==='evenodd'?_0x450f53[_0x25e9a3(0x2ff)](_0x25e9a3(0x2b7)):_0x450f53[_0x25e9a3(0x2ff)](),_0x450f53[_0x25e9a3(0x143)]());}class ee extends p[_0x51cf5f(0x189)]{constructor(_0x3ac461,_0x2699a7){const _0x1e335d=_0x51cf5f;super(_0x3ac461,_0x2699a7),h(this,_0x1e335d(0x39f)),h(this,_0x1e335d(0x36a)),(this['color']=_0x2699a7==null?void 0x0:_0x2699a7[_0x1e335d(0x39f)],this['text']=_0x2699a7==null?void 0x0:_0x2699a7[_0x1e335d(0x36a)]);}static[_0x51cf5f(0x28f)](_0x2c7975,_0x459ba9){const _0x16f6db=_0x51cf5f,{text:_0x3f0fb6,color:_0x46b91a}=_0x459ba9;_0x2c7975[_0x16f6db(0x14a)](),_0x2c7975[_0x16f6db(0x2a9)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5e704f=_0x2c7975['measureText'](_0x3f0fb6)[_0x16f6db(0x1bc)],_0x2e611f=Math[_0x16f6db(0x217)](_0x5e704f+0x2*ne,Re);_t(_0x2c7975,{'height':K,'radius':0x4,'width':_0x2e611f,'fill':_0x46b91a}),_0x2c7975[_0x16f6db(0x34b)]=_0x16f6db(0x2b0);const _0x5c6ed2=ne,_0x115ce5=K-lt,_0x542b5f=Re-0x2*ne;if(_0x5e704f>_0x542b5f){let _0x15f2fd='',_0x376e34=0x0;for(const _0x1d3f93 of _0x3f0fb6){const _0x35d8df=_0x2c7975[_0x16f6db(0x36d)](_0x1d3f93)['width'];if(_0x376e34+_0x35d8df<=_0x542b5f-_0x2c7975['measureText'](_0x16f6db(0x165))[_0x16f6db(0x1bc)])_0x15f2fd+=_0x1d3f93,_0x376e34+=_0x35d8df;else{_0x15f2fd+=_0x16f6db(0x165);break;}}_0x2c7975['fillText'](_0x15f2fd,_0x5c6ed2,_0x115ce5);}else _0x2c7975[_0x16f6db(0x252)](_0x3f0fb6,_0x5c6ed2,_0x115ce5);_0x2c7975[_0x16f6db(0x143)]();}[_0x51cf5f(0x16c)](_0x1ff4ab){const _0x2d2b2c=_0x51cf5f;ee[_0x2d2b2c(0x28f)](_0x1ff4ab,this);}}const re='collab-text-anchor-',ht=_0x51cf5f(0x381),ut=_0x51cf5f(0x345),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x51cf5f(0x18e);class De{constructor(_0x33b1f,_0x5a51ba,_0x1fe078,_0x4ab1a){const _0x4bc176=_0x51cf5f;h(this,_0x4bc176(0x2f2),[]),h(this,'_anchor',null),h(this,_0x4bc176(0x266),null),h(this,_0x4bc176(0x19f),null),h(this,'_hideTimer',null),h(this,_0x4bc176(0x172),null),(this[_0x4bc176(0x20e)]=_0x33b1f,this[_0x4bc176(0x12e)]=_0x5a51ba,this[_0x4bc176(0x25a)]=_0x1fe078,this[_0x4bc176(0x322)]=_0x4ab1a,this['_render']());}set[_0x51cf5f(0x29a)](_0x25a13f){const _0x341a9a=_0x51cf5f;_0x25a13f?(this[_0x341a9a(0x19f)]&&this[_0x341a9a(0x19f)][_0x341a9a(0x2a0)](),this['_textBubble']&&this[_0x341a9a(0x266)][_0x341a9a(0x356)]()):(this[_0x341a9a(0x19f)]&&this[_0x341a9a(0x19f)]['show'](),this['_textBubble']&&this[_0x341a9a(0x266)]['hide']());}[_0x51cf5f(0x277)](){const _0x2b8150=_0x51cf5f;for(const _0x3ec2ea of this['_shapes'])_0x3ec2ea[_0x2b8150(0x277)]();this[_0x2b8150(0x266)]&&this['_textBubble'][_0x2b8150(0x277)](),this[_0x2b8150(0x19f)]&&this[_0x2b8150(0x19f)][_0x2b8150(0x277)](),this['_anchor']&&this[_0x2b8150(0x2b6)][_0x2b8150(0x277)](),this[_0x2b8150(0x172)]&&this[_0x2b8150(0x172)]();}[_0x51cf5f(0x34d)](){const _0xa32359=_0x51cf5f;var _0x122512;const {_docSkeleton:_0x416c0b,_document:_0x20b77f}=this,{color:_0x16b05b,name:_0x53af48,ranges:_0x3e849f}=this['_cursor'],_0x133a7a=_0x20b77f[_0xa32359(0x1f3)](),{docsLeft:_0x8a3760,docsTop:_0x3b22ed}=_0x133a7a,_0x58df71=new b[(_0xa32359(0x175))](_0x133a7a,_0x416c0b);for(const {startOffset:_0x423276,endOffset:_0x19e12b,rangeType:_0xb75ea2,segmentId:_0x383456,segmentPage:_0xe526e0,collapsed:_0xc09131,isActive:_0x4ba9c7}of _0x3e849f){const _0xe27b27=_0x416c0b[_0xa32359(0x167)](_0x423276,!0x0,_0x383456,_0xe526e0);let _0x556fd8=_0x416c0b[_0xa32359(0x167)](_0x19e12b,!0x0,_0x383456,_0xe526e0);if(_0x556fd8==null&&(_0x556fd8=_0x416c0b[_0xa32359(0x167)](_0x19e12b-0x1,!0x1,_0x383456,_0xe526e0)),_0x4ba9c7){const {contentBoxPointGroup:_0x411ea3}=_0x58df71[_0xa32359(0x316)](_0x556fd8,_0x556fd8);if(_0x411ea3[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x393)](_0x16b05b,_0x411ea3,_0x8a3760,_0x3b22ed,_0x53af48),this[_0xa32359(0x172)]=this['_handleHover']();}if(_0xe27b27&&_0x556fd8){if(_0xb75ea2===a[_0xa32359(0x2ad)][_0xa32359(0x146)]){const _0x407fec=new b['NodePositionConvertToRectRange'](_0x133a7a,_0x416c0b),{pointGroup:_0x3d0b49}=(_0x122512=_0x407fec[_0xa32359(0x316)](_0xe27b27,_0x556fd8))!=null?_0x122512:{};if(_0x3d0b49==null||_0x3d0b49[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x281)](_0x16b05b,_0x3d0b49,_0x8a3760,_0x3b22ed);}else{if(!_0xc09131){const {borderBoxPointGroup:_0x4d78a7}=_0x58df71[_0xa32359(0x316)](_0xe27b27,_0x556fd8);if(_0x4d78a7[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x14b)](_0x16b05b,_0x4d78a7,_0x8a3760,_0x3b22ed);}}}}}[_0x51cf5f(0x393)](_0x58df96,_0x4bd9fa,_0x4cd7ab,_0x350458,_0x27351d){const _0x25b0d5=_0x51cf5f,_0x333da5=this[_0x25b0d5(0x3a1)](_0x4bd9fa),{left:_0x26394c,top:_0x27d377,height:_0x546360}=_0x333da5,_0x4b4814=this['_getScale'](),_0x48d969=ft/_0x4b4814,_0x474156=new p[(_0x25b0d5(0x378))](re+a['Tools'][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458,'height':_0x546360,'width':dt,'fill':_0x58df96||p[_0x25b0d5(0x200)](a['COLORS'][_0x25b0d5(0x206)],0x0),'strokeWidth':_0x48d969,'stroke':St,'evented':!0x0});this[_0x25b0d5(0x2b6)]=_0x474156,this[_0x25b0d5(0x12e)][_0x25b0d5(0x182)](_0x474156,b[_0x25b0d5(0x361)]);const _0x43c0cc=new p[(_0x25b0d5(0x378))](re+a[_0x25b0d5(0x311)][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458-oe/0x2,'height':oe,'width':oe,'fill':_0x58df96||p[_0x25b0d5(0x200)](a['COLORS'][_0x25b0d5(0x206)],0x0),'strokeWidth':0x0,'stroke':_0x58df96||p[_0x25b0d5(0x200)](a[_0x25b0d5(0x388)][_0x25b0d5(0x206)],0x0),'evented':!0x1});this[_0x25b0d5(0x19f)]=_0x43c0cc,this[_0x25b0d5(0x12e)][_0x25b0d5(0x182)](_0x43c0cc,b[_0x25b0d5(0x361)]);const _0x12656a=new ee(re+a['Tools'][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458-K,'text':_0x27351d,'color':_0x58df96});this[_0x25b0d5(0x266)]=_0x12656a,this[_0x25b0d5(0x12e)]['addObject'](_0x12656a,b['TEXT_RANGE_LAYER_INDEX']),this[_0x25b0d5(0x29a)]=!0x1;}[_0x51cf5f(0x13c)](){const _0x390c3c=_0x51cf5f,_0x52b040=this['_anchor'][_0x390c3c(0x1a9)][_0x390c3c(0x13b)](()=>{const _0x34096c=_0x390c3c;this[_0x34096c(0x29a)]=!0x0;}),_0x4b1db2=this[_0x390c3c(0x2b6)]['onPointerLeave$'][_0x390c3c(0x13b)](()=>{const _0x37c886=_0x390c3c;this[_0x37c886(0x366)]&&clearTimeout(this[_0x37c886(0x366)]),this['_hideTimer']=setTimeout(()=>{const _0x5df5f6=_0x37c886;this[_0x5df5f6(0x29a)]=!0x1;},0x7d0);});return()=>{const _0x52c314=_0x390c3c;_0x52b040[_0x52c314(0x26f)](),_0x4b1db2['unsubscribe']();};}[_0x51cf5f(0x14b)](_0x3ba318,_0x3556e1,_0x3fb631,_0xad2f45){const _0x25f10b=_0x51cf5f,_0x2f5ea3=new a['ColorKit'](_0x3ba318)[_0x25f10b(0x2e3)](0.2)[_0x25f10b(0x33c)](),_0x3babd3=new p[(_0x25f10b(0x364))](ht+a['Tools'][_0x25f10b(0x22c)](k),{'pointsGroup':_0x3556e1,'fill':_0x2f5ea3||p[_0x25f10b(0x200)](a[_0x25f10b(0x388)]['black'],0.2),'left':_0x3fb631,'top':_0xad2f45,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x25f10b(0x326)](_0x3babd3),this[_0x25f10b(0x12e)][_0x25f10b(0x182)](_0x3babd3,b[_0x25f10b(0x361)]);}[_0x51cf5f(0x281)](_0x3d212d,_0x348cc4,_0x34b073,_0x4fda1f){const _0x4906d5=_0x51cf5f,_0x28523c=new a[(_0x4906d5(0x16a))](_0x3d212d)[_0x4906d5(0x2e3)](0.2)[_0x4906d5(0x33c)](),_0x297931=new p['RegularPolygon'](ut+a[_0x4906d5(0x311)]['generateRandomId'](k),{'pointsGroup':_0x348cc4,'fill':_0x28523c||p[_0x4906d5(0x200)](a[_0x4906d5(0x388)][_0x4906d5(0x206)],0.2),'left':_0x34b073,'top':_0x4fda1f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4906d5(0x2f2)][_0x4906d5(0x326)](_0x297931),this[_0x4906d5(0x12e)][_0x4906d5(0x182)](_0x297931,b['TEXT_RANGE_LAYER_INDEX']);}[_0x51cf5f(0x3a1)](_0x374919){const _0x52345a=_0x374919[0x0],_0x58a905=_0x52345a[0x0],_0x2beab5=_0x52345a[0x2],{x:_0x1bf9f1,y:_0x233568}=_0x58a905,{x:_0xd989d1,y:_0x536238}=_0x2beab5;return{'left':_0x1bf9f1,'top':_0x233568,'width':_0xd989d1-_0x1bf9f1,'height':_0x536238-_0x233568};}[_0x51cf5f(0x37f)](){const _0x8263d9=_0x51cf5f,{scaleX:_0x21eaeb,scaleY:_0x23ce96}=this['_scene'][_0x8263d9(0x30d)]();return Math[_0x8263d9(0x317)](_0x21eaeb,_0x23ce96);}}var It=Object[_0x51cf5f(0x377)],vt=(_0x131922,_0x4389f7,_0x4d4631,_0x465c13)=>{for(var _0x35c346=_0x465c13>0x1?void 0x0:_0x465c13?It(_0x4389f7,_0x4d4631):_0x4389f7,_0x4ace7e=_0x131922['length']-0x1,_0x424291;_0x4ace7e>=0x0;_0x4ace7e--)(_0x424291=_0x131922[_0x4ace7e])&&(_0x35c346=_0x424291(_0x35c346)||_0x35c346);return _0x35c346;},W=(_0x559a00,_0x1ba0bd)=>(_0x59f03d,_0x57256e)=>_0x1ba0bd(_0x59f03d,_0x57256e,_0x559a00);let Ie=class extends a[_0x51cf5f(0x298)]{constructor(_0x15b3a5,_0x563c3e,_0x225f1c,_0xfa7b71,_0x49deac){const _0x14059f=_0x51cf5f;super(),h(this,'_cursorShapes',[]),h(this,_0x14059f(0x258),[]),(this[_0x14059f(0x318)]=_0x15b3a5,this['_docSkeletonManagerService']=_0x563c3e,this[_0x14059f(0x262)]=_0x225f1c,this['_commandService']=_0xfa7b71,this[_0x14059f(0x1ea)]=_0x49deac,this['_init']());}[_0x51cf5f(0x2f4)](){const _0x5353ba=_0x51cf5f,_0x26f32e=this[_0x5353ba(0x318)]['unitId'],_0x4f06c1=this[_0x5353ba(0x1ef)];this[_0x5353ba(0x1fa)](d[_0x5353ba(0x34e)]([this[_0x5353ba(0x262)]['getCollabCursors$'](_0x26f32e),this['_themeService']['currentTheme$']])[_0x5353ba(0x3a7)]($['map'](([_0x4c1848,_0x1cd994])=>({'skeleton':_0x4f06c1[_0x5353ba(0x23c)](),'cursors':[..._0x4c1848[_0x5353ba(0x1d3)]()][_0x5353ba(0x2a2)](_0x1ab44c=>({..._0x1ab44c,'color':this[_0x5353ba(0x1ea)][_0x5353ba(0x2c1)](_0x1ab44c[_0x5353ba(0x39f)])}))})))[_0x5353ba(0x254)](_0x5e69b2=>{const _0xe61cf6=_0x5353ba;if(this[_0xe61cf6(0x312)](),_0x5e69b2){const {skeleton:_0x312bff,cursors:_0x5e60e5}=_0x5e69b2;this[_0xe61cf6(0x1db)](_0x312bff,_0x5e60e5);}})),this[_0x5353ba(0x13a)](),this[_0x5353ba(0x2f7)]();}[_0x51cf5f(0x1db)](_0x5b1477,_0x23326b){const _0x3acc58=_0x51cf5f,{scene:_0x5155f8,mainComponent:_0x620fce}=this[_0x3acc58(0x318)],_0x508ccb=_0x23326b['map'](_0x16d0c4=>new De(_0x16d0c4,_0x5155f8,_0x5b1477,_0x620fce));this[_0x3acc58(0x38e)]=_0x508ccb,this[_0x3acc58(0x258)]=_0x23326b;}['_refreshCollabCursors'](){const _0x54f367=_0x51cf5f;this[_0x54f367(0x312)]();const {scene:_0x30422f,mainComponent:_0x51f816}=this[_0x54f367(0x318)],_0x566a92=this[_0x54f367(0x1ef)][_0x54f367(0x23c)](),_0x44f22d=this['_cursors'][_0x54f367(0x307)](_0x2ee618=>new De(_0x2ee618,_0x30422f,_0x566a92,_0x51f816));this['_cursorShapes']=_0x44f22d;}[_0x51cf5f(0x312)](){const _0x191b59=_0x51cf5f;this[_0x191b59(0x38e)][_0x191b59(0x2ba)](_0x28d0a2=>_0x28d0a2[_0x191b59(0x277)]()),this[_0x191b59(0x38e)]=[];}[_0x51cf5f(0x2f7)](){const _0x5a1dd9=_0x51cf5f,_0x2d1abe=[b['SetDocZoomRatioOperation']['id']];this[_0x5a1dd9(0x1fa)](this[_0x5a1dd9(0x362)][_0x5a1dd9(0x1a3)](_0xab7b8e=>{const _0x225865=_0x5a1dd9;_0x2d1abe[_0x225865(0x37b)](_0xab7b8e['id'])&&_0xab7b8e[_0x225865(0x3b5)]['unitId']===this[_0x225865(0x318)]['unitId']&&this[_0x225865(0x350)]();}));}[_0x51cf5f(0x13a)](){const _0x435d37=_0x51cf5f;this[_0x435d37(0x1fa)](a['fromEventSubject'](this[_0x435d37(0x318)]['engine'][_0x435d37(0x260)])[_0x435d37(0x3a7)]($[_0x435d37(0x1d0)](_0x131b56=>_0x131b56['type']===p[_0x435d37(0x2dc)][_0x435d37(0x2a6)]),$[_0x435d37(0x32d)](0x10))[_0x435d37(0x254)](()=>{const _0x6955b9=_0x435d37;this[_0x6955b9(0x350)]();}));}};Ie=vt([W(0x1,a[_0x51cf5f(0x249)](Y[_0x51cf5f(0x334)])),W(0x2,a[_0x51cf5f(0x249)](x)),W(0x3,a[_0x51cf5f(0x36e)]),W(0x4,a['Inject'](a[_0x51cf5f(0x39e)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x51cf5f(0x189)]{constructor(_0xf2aa9c,_0x2e3e21){const _0x421466=_0x51cf5f;super(_0xf2aa9c,_0x2e3e21),h(this,_0x421466(0x2c5)),h(this,'_hovered',!0x1),h(this,_0x421466(0x209)),h(this,_0x421466(0x2d2),''),h(this,_0x421466(0x265),_0x421466(0x1c9)),h(this,_0x421466(0x310)),(_0x2e3e21&&this['setShapeProps'](_0x2e3e21),this[_0x421466(0x1a9)][_0x421466(0x13b)](()=>this[_0x421466(0x3a4)]({'hovered':!0x0})),this['onPointerLeave$'][_0x421466(0x13b)](()=>this[_0x421466(0x3a4)]({'hovered':!0x1})));}[_0x51cf5f(0x3a4)](_0x3c9e0c){const _0x1b7958=_0x51cf5f;var _0x2bbb0f,_0xa86e25,_0x635c81,_0x435665,_0x2547cd,_0x340cf2;this[_0x1b7958(0x2c5)]=(_0x2bbb0f=_0x3c9e0c['color'])!=null?_0x2bbb0f:this[_0x1b7958(0x2c5)],this['_hovered']=(_0xa86e25=_0x3c9e0c[_0x1b7958(0x133)])!=null?_0xa86e25:this[_0x1b7958(0x138)],this['_range']=(_0x635c81=_0x3c9e0c['range'])!=null?_0x635c81:this[_0x1b7958(0x209)],this[_0x1b7958(0x2d2)]=(_0x435665=_0x3c9e0c[_0x1b7958(0x2e6)])!=null?_0x435665:this[_0x1b7958(0x2d2)],this['_labelPosition']=(_0x2547cd=_0x3c9e0c['labelPosition'])!=null?_0x2547cd:this[_0x1b7958(0x265)],this['_backgroundColor']=(_0x340cf2=_0x3c9e0c[_0x1b7958(0x3a9)])!=null?_0x340cf2:this[_0x1b7958(0x310)],this['transformByState']({'width':_0x3c9e0c[_0x1b7958(0x1bc)],'height':_0x3c9e0c[_0x1b7958(0x22b)]});}['onMouseMove'](_0x2cc55a){const _0x1e27fa=_0x51cf5f,{row:_0x4929cd,column:_0x4d9ca9}=_0x2cc55a;if(_0x4929cd>=this[_0x1e27fa(0x209)][_0x1e27fa(0x233)]&&_0x4929cd<=this[_0x1e27fa(0x209)][_0x1e27fa(0x1f8)]&&_0x4d9ca9>=this[_0x1e27fa(0x209)][_0x1e27fa(0x2f9)]&&_0x4d9ca9<=this[_0x1e27fa(0x209)][_0x1e27fa(0x1e3)]){this[_0x1e27fa(0x3a4)]({'hovered':!0x0});return;}this[_0x1e27fa(0x3a4)]({'hovered':!0x1});}[_0x51cf5f(0x1a0)](_0x186743){return!0x1;}['_draw'](_0x40651c){const _0x1f6685=_0x51cf5f;p['Rect'][_0x1f6685(0x28f)](_0x40651c,{'width':this[_0x1f6685(0x1bc)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x1f6685(0x2c5)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x1f6685(0x138)]&&(_0x40651c[_0x1f6685(0x14a)](),_0x40651c['transform'](0x1,0x0,0x0,0x1,this[_0x1f6685(0x1bc)],this[_0x1f6685(0x265)]===_0x1f6685(0x349)?0x0:-0x14),ee[_0x1f6685(0x28f)](_0x40651c,{'text':this[_0x1f6685(0x2d2)],'color':this[_0x1f6685(0x2c5)]}),_0x40651c[_0x1f6685(0x143)]());}}var Ct=Object[_0x51cf5f(0x377)],pt=(_0x5c1351,_0x644aad,_0x3a8bb6,_0x2a1b9f)=>{const _0x29b97b=_0x51cf5f;for(var _0x51109d=_0x2a1b9f>0x1?void 0x0:_0x2a1b9f?Ct(_0x644aad,_0x3a8bb6):_0x644aad,_0x4cd2f5=_0x5c1351[_0x29b97b(0x296)]-0x1,_0x1a6eec;_0x4cd2f5>=0x0;_0x4cd2f5--)(_0x1a6eec=_0x5c1351[_0x4cd2f5])&&(_0x51109d=_0x1a6eec(_0x51109d)||_0x51109d);return _0x51109d;},ae=(_0x13c8a6,_0x1d2e40)=>(_0x417a08,_0x4171c9)=>_0x1d2e40(_0x417a08,_0x4171c9,_0x13c8a6);const bt=0x1389;let ve=class extends a[_0x51cf5f(0x298)]{constructor(_0x11f66a,_0x2c48d9,_0x396fa2,_0x5dbf37){const _0x34f8d5=_0x51cf5f;super(),h(this,_0x34f8d5(0x258),new Set()),h(this,'_lastPointer',null),(this[_0x34f8d5(0x318)]=_0x11f66a,this[_0x34f8d5(0x1a7)]=_0x2c48d9,this[_0x34f8d5(0x262)]=_0x396fa2,this[_0x34f8d5(0x1ea)]=_0x5dbf37,this['_init']());}['_init'](){const _0x2b3fd9=_0x51cf5f;this[_0x2b3fd9(0x1a7)][_0x2b3fd9(0x184)][_0x2b3fd9(0x3a7)]($[_0x2b3fd9(0x20d)](this[_0x2b3fd9(0x28a)]),$[_0x2b3fd9(0x1d5)](_0x41e596=>{const _0x281584=_0x2b3fd9;if(_0x41e596){const _0x2d6d38=_0x41e596[_0x281584(0x256)];return d[_0x281584(0x34e)](this[_0x281584(0x262)][_0x281584(0x2a4)](this['_context'][_0x281584(0x395)]),this[_0x281584(0x1ea)][_0x281584(0x242)])['pipe']($['map'](([_0x24adbd,_0xfd6433])=>{const _0x5386ca=_0x281584,_0x45f0b5=new Map();return _0x24adbd[_0x5386ca(0x2ba)]((_0x2f4edc,_0x5f5916)=>{const _0x118db8=_0x5386ca;if(_0x2f4edc['sheetID']===_0x2d6d38){const _0x563590={..._0x2f4edc};_0x563590[_0x118db8(0x39f)]=this[_0x118db8(0x1ea)][_0x118db8(0x2c1)](_0x2f4edc[_0x118db8(0x39f)]),_0x45f0b5['set'](_0x5f5916,_0x563590);}}),{'skeleton':_0x41e596,'cursors':_0x45f0b5};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3da971,cursors:_0x35ec40})=>{this['_removeCollabCursors'](),_0x3da971&&this['_updateCollabCursors'](_0x3da971,_0x35ec40);}),this[_0x2b3fd9(0x1a7)]['currentSkeleton$'][_0x2b3fd9(0x254)](_0x211b59=>{const _0x538361=_0x2b3fd9;if(_0x211b59==null)return;const {skeleton:_0x7be27b}=_0x211b59,{scene:_0x57d936}=this[_0x538361(0x318)];_0x57d936['onPointerMove$'][_0x538361(0x13b)](a['debounce'](_0x11ee46=>{const _0x727b2d=_0x538361;var _0xb7adb8,_0x2c1538;const {offsetX:_0x417606,offsetY:_0x4b0423}=_0x11ee46,{x:_0x35dbd7,y:_0x39a85d}=_0x57d936[_0x727b2d(0x33b)](p[_0x727b2d(0x132)][_0x727b2d(0x13f)]([_0x417606,_0x4b0423])),{scaleX:_0xb3c127,scaleY:_0x3b40ff}=_0x57d936[_0x727b2d(0x30d)](),_0x53241c=_0x57d936[_0x727b2d(0x327)](p[_0x727b2d(0x21d)][_0x727b2d(0x224)]),_0x2c4467=_0x57d936['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x727b2d(0x13f)]([_0x35dbd7,_0x39a85d]),_0x53241c),_0x4ca306=_0x7be27b[_0x727b2d(0x1a2)](_0x417606,_0x4b0423,_0xb3c127,_0x3b40ff,_0x2c4467);((_0xb7adb8=this[_0x727b2d(0x357)])==null?void 0x0:_0xb7adb8[_0x727b2d(0x222)])===_0x4ca306[_0x727b2d(0x222)]&&((_0x2c1538=this[_0x727b2d(0x357)])==null?void 0x0:_0x2c1538[_0x727b2d(0x1fd)])===_0x4ca306[_0x727b2d(0x1fd)]||this[_0x727b2d(0x258)][_0x727b2d(0x2ba)](_0x316a61=>{const _0x494b60=_0x727b2d;_0x316a61[_0x494b60(0x23b)](_0x4ca306);});},0x64));});}[_0x51cf5f(0x1db)](_0x50c8b8,_0x26eb85){const _0x119c0c=_0x51cf5f;var _0x2c1af3;const _0x3957d3=(_0x2c1af3=this[_0x119c0c(0x1a7)][_0x119c0c(0x2dd)]())==null?void 0x0:_0x2c1af3[_0x119c0c(0x24d)];if(!_0x3957d3)return;const _0xfc2998=this[_0x119c0c(0x179)]();if(!_0xfc2998)return;this['_cursors'][_0x119c0c(0x2ba)](_0x52b4e6=>{const _0x241bf3=_0x119c0c;_0x52b4e6[_0x241bf3(0x21f)]();});const {scene:_0x3682a5}=_0xfc2998,_0x2873e0=Et(Array[_0x119c0c(0x1f0)](_0x26eb85[_0x119c0c(0x1d3)]()))[_0x119c0c(0x307)](_0x338dca=>{const _0x20a714=_0x119c0c,{color:_0x1e64ae,range:_0x58ec11,name:_0x53e920,selection:_0x54a107,sheetID:_0x1070d3}=_0x338dca,{startColumn:_0x1ac2a9,startRow:_0x3c173c,endColumn:_0x5b45e9,endRow:_0x31b46f}=_0x58ec11,_0x2fad32=X[_0x20a714(0x2c9)](_0x3c173c,_0x1ac2a9,_0x3682a5,_0x3957d3),_0x4fe6b0=X[_0x20a714(0x2c9)](_0x31b46f,_0x5b45e9,_0x3682a5,_0x3957d3),{columnHeaderHeightAndMarginTop:_0x267f73}=_0x3957d3,{startX:_0x416ed1,startY:_0x9539ac}=_0x2fad32,{endX:_0x125e17,endY:_0x2f6e56}=_0x4fe6b0,_0x17c97e=_0x125e17-_0x416ed1,_0x1accb0=_0x2f6e56-_0x9539ac,_0x14ae2e={'labelPosition':_0x9539ac-_0x267f73>=K?'top':_0x20a714(0x349),'sheetID':_0x1070d3,'range':_0x58ec11,'color':_0x1e64ae,'name':_0x53e920,'selection':_0x54a107,'left':_0x416ed1,'top':_0x9539ac,'width':_0x17c97e,'height':_0x1accb0,'evented':!0x1,'zIndex':bt};return new Pe(_0x53e920,_0x14ae2e);});_0x3682a5[_0x119c0c(0x1f9)](_0x2873e0,gt),this[_0x119c0c(0x258)]=new Set(_0x2873e0);}[_0x51cf5f(0x312)](){const _0x475cdc=_0x51cf5f;var _0x1e574e;(_0x1e574e=this[_0x475cdc(0x258)])==null||_0x1e574e[_0x475cdc(0x2ba)](_0x544786=>_0x544786['dispose']());}[_0x51cf5f(0x179)](){const _0x2f9db5=_0x51cf5f;return X['getSheetObject'](this[_0x2f9db5(0x318)][_0x2f9db5(0x31e)],this[_0x2f9db5(0x318)]);}};ve=pt([ae(0x1,a[_0x51cf5f(0x249)](X[_0x51cf5f(0x373)])),ae(0x2,a[_0x51cf5f(0x249)](x)),ae(0x3,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x39e)]))],ve);function Et(_0x3a87fe){const _0x40550c=_0x51cf5f,_0x515592=new Map();return _0x3a87fe[_0x40550c(0x2ba)](_0x186903=>{const _0x24ec77=_0x40550c;if(_0x515592[_0x24ec77(0x2e2)](_0x186903['selection'])){const _0x3aacc4=_0x515592[_0x24ec77(0x214)](_0x186903[_0x24ec77(0x38a)]);_0x3aacc4[_0x24ec77(0x2e6)]+=',\x20'+_0x186903[_0x24ec77(0x2e6)];}else _0x515592[_0x24ec77(0x2e8)](_0x186903[_0x24ec77(0x38a)],_0x186903);}),Array[_0x40550c(0x1f0)](_0x515592[_0x40550c(0x1d3)]());}var E=function(){const _0x10219d=_0x51cf5f;return E=Object[_0x10219d(0x181)]||function(_0x16a1e4){const _0x36c406=_0x10219d;for(var _0xac90bb,_0x1d2b03=0x1,_0x2b6e27=arguments[_0x36c406(0x296)];_0x1d2b03<_0x2b6e27;_0x1d2b03++){_0xac90bb=arguments[_0x1d2b03];for(var _0x224f7b in _0xac90bb)Object['prototype']['hasOwnProperty']['call'](_0xac90bb,_0x224f7b)&&(_0x16a1e4[_0x224f7b]=_0xac90bb[_0x224f7b]);}return _0x16a1e4;},E[_0x10219d(0x24f)](this,arguments);},Tt=function(_0x3bb10e,_0x53406d){const _0x3e21ec=_0x51cf5f;var _0x4e6384={};for(var _0x4c4f82 in _0x3bb10e)Object['prototype'][_0x3e21ec(0x28e)][_0x3e21ec(0x325)](_0x3bb10e,_0x4c4f82)&&_0x53406d[_0x3e21ec(0x36c)](_0x4c4f82)<0x0&&(_0x4e6384[_0x4c4f82]=_0x3bb10e[_0x4c4f82]);if(_0x3bb10e!=null&&typeof Object[_0x3e21ec(0x3b2)]==_0x3e21ec(0x37d)){for(var _0x4e1da7=0x0,_0x4c4f82=Object['getOwnPropertySymbols'](_0x3bb10e);_0x4e1da7<_0x4c4f82[_0x3e21ec(0x296)];_0x4e1da7++)_0x53406d[_0x3e21ec(0x36c)](_0x4c4f82[_0x4e1da7])<0x0&&Object[_0x3e21ec(0x160)][_0x3e21ec(0x1be)][_0x3e21ec(0x325)](_0x3bb10e,_0x4c4f82[_0x4e1da7])&&(_0x4e6384[_0x4c4f82[_0x4e1da7]]=_0x3bb10e[_0x4c4f82[_0x4e1da7]]);}return _0x4e6384;},pe=M[_0x51cf5f(0x3b8)](function(_0x1fc6e4,_0x8da0c3){const _0x231e47=_0x51cf5f;var _0x436ac0=_0x1fc6e4[_0x231e47(0x338)],_0x5980ce=_0x1fc6e4['id'],_0x47b912=_0x1fc6e4[_0x231e47(0x303)],_0x455995=_0x1fc6e4[_0x231e47(0x27a)],_0x162d03=Tt(_0x1fc6e4,[_0x231e47(0x338),'id',_0x231e47(0x303),'extend']),_0x16ccac=_0x231e47(0x2b9)[_0x231e47(0x1ce)](_0x5980ce,'\x20')[_0x231e47(0x1ce)](_0x47b912||'')['trim'](),_0x5c1094=M[_0x231e47(0x150)]('_'[_0x231e47(0x1ce)](Dt()));return Ae(_0x436ac0,''[_0x231e47(0x1ce)](_0x5980ce),{'defIds':_0x436ac0[_0x231e47(0x369)],'idSuffix':_0x5c1094[_0x231e47(0x2d7)]},E({'ref':_0x8da0c3,'className':_0x16ccac},_0x162d03),_0x455995);});function Ae(_0x5de706,_0x41bdbf,_0x107330,_0x632bf2,_0x25038b){const _0x2cf17c=_0x51cf5f;return M[_0x2cf17c(0x30b)](_0x5de706[_0x2cf17c(0x29f)],E(E({'key':_0x41bdbf},Ot(_0x5de706,_0x107330,_0x25038b)),_0x632bf2),(Rt(_0x5de706,_0x107330)['children']||[])[_0x2cf17c(0x307)](function(_0x3527b0,_0x477bc1){const _0x1a18bb=_0x2cf17c;return Ae(_0x3527b0,''['concat'](_0x41bdbf,'-')[_0x1a18bb(0x1ce)](_0x5de706[_0x1a18bb(0x29f)],'-')['concat'](_0x477bc1),_0x107330,void 0x0,_0x25038b);}));}function Ot(_0xe26fbe,_0x50e4fc,_0x3984e3){const _0x5476a2=_0x51cf5f;var _0x5499f4=E({},_0xe26fbe[_0x5476a2(0x32b)]);_0x3984e3!=null&&_0x3984e3['colorChannel1']&&_0x5499f4[_0x5476a2(0x2ff)]==='colorChannel1'&&(_0x5499f4[_0x5476a2(0x2ff)]=_0x3984e3[_0x5476a2(0x204)]),_0xe26fbe['tag']==='mask'&&_0x5499f4['id']&&(_0x5499f4['id']=_0x5499f4['id']+_0x50e4fc[_0x5476a2(0x20c)]),Object[_0x5476a2(0x1b0)](_0x5499f4)[_0x5476a2(0x2ba)](function(_0x1ea39a){const _0xca0e28=_0x5476a2;var _0x35b175=_0x1ea39a[0x0],_0x29dc03=_0x1ea39a[0x1];_0x35b175==='mask'&&typeof _0x29dc03==_0xca0e28(0x308)&&(_0x5499f4[_0x35b175]=_0x29dc03[_0xca0e28(0x1d9)](/url\(#(.*)\)/,_0xca0e28(0x2d4)['concat'](_0x50e4fc[_0xca0e28(0x20c)],')')));});var _0x4014cf=_0x50e4fc[_0x5476a2(0x369)];return!_0x4014cf||_0x4014cf[_0x5476a2(0x296)]===0x0||(_0xe26fbe['tag']===_0x5476a2(0x301)&&_0x5499f4['xlink:href']&&(_0x5499f4[_0x5476a2(0x251)]=_0x5499f4[_0x5476a2(0x251)]+_0x50e4fc['idSuffix']),Object[_0x5476a2(0x1b0)](_0x5499f4)[_0x5476a2(0x2ba)](function(_0x3d52f5){const _0x9cd9b1=_0x5476a2;var _0xb1b29e=_0x3d52f5[0x0],_0x2c4aaf=_0x3d52f5[0x1];typeof _0x2c4aaf==_0x9cd9b1(0x308)&&(_0x5499f4[_0xb1b29e]=_0x2c4aaf[_0x9cd9b1(0x1d9)](/url\(#(.*)\)/,_0x9cd9b1(0x2d4)[_0x9cd9b1(0x1ce)](_0x50e4fc[_0x9cd9b1(0x20c)],')')));})),_0x5499f4;}function Rt(_0x44deee,_0xfa5c2e){const _0x2f51aa=_0x51cf5f;var _0x5e0a8b,_0x11b7a4=_0xfa5c2e[_0x2f51aa(0x369)];return!_0x11b7a4||_0x11b7a4[_0x2f51aa(0x296)]===0x0?_0x44deee:_0x44deee[_0x2f51aa(0x29f)]===_0x2f51aa(0x239)&&(!((_0x5e0a8b=_0x44deee['children'])===null||_0x5e0a8b===void 0x0)&&_0x5e0a8b[_0x2f51aa(0x296)])?E(E({},_0x44deee),{'children':_0x44deee[_0x2f51aa(0x1f5)][_0x2f51aa(0x307)](function(_0x418c8b){const _0x5a2f08=_0x2f51aa;return typeof _0x418c8b[_0x5a2f08(0x32b)]['id']=='string'&&_0x11b7a4&&_0x11b7a4['includes'](_0x418c8b[_0x5a2f08(0x32b)]['id'])?E(E({},_0x418c8b),{'attrs':E(E({},_0x418c8b[_0x5a2f08(0x32b)]),{'id':_0x418c8b[_0x5a2f08(0x32b)]['id']+_0xfa5c2e['idSuffix']})}):_0x418c8b;})}):_0x44deee;}function Dt(){const _0x181869=_0x51cf5f;return Math[_0x181869(0x374)]()[_0x181869(0x2f3)](0x24)[_0x181869(0x157)](0x2,0x8);}pe[_0x51cf5f(0x1d6)]=_0x51cf5f(0x2d3);var Ut={'tag':_0x51cf5f(0x14c),'attrs':{'xmlns':_0x51cf5f(0x328),'fill':_0x51cf5f(0x39a),'viewBox':'0\x200\x2016\x2016','width':_0x51cf5f(0x313),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x51cf5f(0x2b3)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x51cf5f(0x196),'strokeLinecap':_0x51cf5f(0x177),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x51cf5f(0x239),'attrs':{},'children':[{'tag':_0x51cf5f(0x1ad),'attrs':{'id':_0x51cf5f(0x1f6)},'children':[{'tag':'path','attrs':{'fill':_0x51cf5f(0x3b1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M['forwardRef'](function(_0x1c96bf,_0x3f05ba){const _0x3b4a05=_0x51cf5f;return M['createElement'](pe,Object[_0x3b4a05(0x181)]({},_0x1c96bf,{'id':_0x3b4a05(0x243),'ref':_0x3f05ba,'icon':Ut}));});ye[_0x51cf5f(0x1d6)]=_0x51cf5f(0x389);var Nt={'tag':_0x51cf5f(0x14c),'attrs':{'xmlns':_0x51cf5f(0x328),'fill':_0x51cf5f(0x39a),'viewBox':'0\x200\x2017\x2016','width':_0x51cf5f(0x313),'height':_0x51cf5f(0x313)},'children':[{'tag':'g','attrs':{'clipPath':_0x51cf5f(0x186)},'children':[{'tag':_0x51cf5f(0x3b0),'attrs':{'stroke':_0x51cf5f(0x2c7),'d':_0x51cf5f(0x2ef),'strokeLinecap':_0x51cf5f(0x177),'strokeLinejoin':_0x51cf5f(0x177),'strokeWidth':1.2}}]},{'tag':_0x51cf5f(0x239),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51cf5f(0x32e)},'children':[{'tag':'path','attrs':{'fill':_0x51cf5f(0x3b1),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x51cf5f(0x32e)]},$e=M['forwardRef'](function(_0x43c29e,_0xe0745e){const _0x3271f5=_0x51cf5f;return M[_0x3271f5(0x30b)](pe,Object[_0x3271f5(0x181)]({},_0x43c29e,{'id':_0x3271f5(0x1fb),'ref':_0xe0745e,'icon':Nt}));});$e[_0x51cf5f(0x1d6)]=_0x51cf5f(0x36b);function Mt(_0x1385c7){const _0x33d734=_0x51cf5f;switch(_0x1385c7){case u[_0x33d734(0x198)][_0x33d734(0x3a8)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x33d734(0x244)]:return'collabStatus.conflict';case u[_0x33d734(0x198)][_0x33d734(0x29c)]:return _0x33d734(0x34a);case u[_0x33d734(0x198)][_0x33d734(0x1cf)]:return _0x33d734(0x248);case u[_0x33d734(0x198)][_0x33d734(0x30c)]:case u[_0x33d734(0x198)]['AWAITING_WITH_PENDING']:return _0x33d734(0x2cb);case u['CollaborationStatus']['SYNCED']:case u[_0x33d734(0x198)][_0x33d734(0x27c)]:return _0x33d734(0x280);}}function xe(_0x576c68){const _0x5c7bb3=_0x51cf5f,{status$:_0x494575}=_0x576c68,_0x51ad1f=T[_0x5c7bb3(0x2bf)](_0x494575,u[_0x5c7bb3(0x198)]['NOT_COLLAB']),_0x4f91d6=T['useDependency'](a[_0x5c7bb3(0x306)]),_0x3a7249=T['useDependency'](u[_0x5c7bb3(0x386)]),_0x53b73b=_0x51ad1f!==u[_0x5c7bb3(0x198)]['OFFLINE'],_0x38b954=_0x4f91d6['t'](Mt(_0x51ad1f)),_0x2c5263=_0x53b73b?w[_0x5c7bb3(0x392)]($e,{}):w['jsx'](ye,{}),_0x52cbeb=M[_0x5c7bb3(0x2ab)](()=>{_0x53b73b||_0x3a7249['reconnect']();},[_0x53b73b,_0x3a7249]);function _0x51bac8(){const _0x362335=_0x5c7bb3;return w['jsxs'](_0x362335(0x205),{'className':'univer-flex\x20univer-items-center','onClick':_0x52cbeb,'children':[w[_0x362335(0x392)](_0x362335(0x205),{'className':D['clsx'](_0x362335(0x2f5),{'univer-text-green-500':_0x53b73b,'univer-text-red-500':!_0x53b73b}),'children':_0x2c5263}),w[_0x362335(0x392)]('div',{'className':_0x362335(0x1af),'children':_0x38b954})]});}return _0x53b73b?_0x51bac8():w[_0x5c7bb3(0x392)](D[_0x5c7bb3(0x333)],{'title':_0x4f91d6['t']('collab-client.tooltip.reconnect'),'children':_0x51bac8()});}var Lt=Object[_0x51cf5f(0x377)],wt=(_0x218584,_0x4a7c5d,_0x35588e,_0x5800d6)=>{const _0x1e0e7a=_0x51cf5f;for(var _0x1e1333=_0x5800d6>0x1?void 0x0:_0x5800d6?Lt(_0x4a7c5d,_0x35588e):_0x4a7c5d,_0x328c7c=_0x218584[_0x1e0e7a(0x296)]-0x1,_0x5da06c;_0x328c7c>=0x0;_0x328c7c--)(_0x5da06c=_0x218584[_0x328c7c])&&(_0x1e1333=_0x5da06c(_0x1e1333)||_0x1e1333);return _0x1e1333;},V=(_0x222b94,_0x47e494)=>(_0x394f17,_0x467f15)=>_0x47e494(_0x394f17,_0x467f15,_0x222b94);exports[_0x51cf5f(0x1ba)]=class extends a[_0x51cf5f(0x188)]{constructor(_0x1a6b11,_0x64ac2d,_0x266334,_0x44a814){const _0xc4890f=_0x51cf5f;super(),h(this,_0xc4890f(0x1ec),new d[(_0xc4890f(0x365))](u['CollaborationStatus'][_0xc4890f(0x1cf)])),(this[_0xc4890f(0x28d)]=_0x1a6b11,this['_injector']=_0x64ac2d,this[_0xc4890f(0x3b6)]=_0x266334,this[_0xc4890f(0x263)]=_0x44a814,this[_0xc4890f(0x15b)](),this[_0xc4890f(0x1b9)]());}[_0x51cf5f(0x1b9)](){const _0x14fbf4=_0x51cf5f;this[_0x14fbf4(0x1fa)](this[_0x14fbf4(0x28d)][_0x14fbf4(0x321)][_0x14fbf4(0x3a7)](d[_0x14fbf4(0x1d5)](()=>{const _0x2f0f0d=_0x14fbf4,_0x5993ec=this['_univerInstanceService'][_0x2f0f0d(0x340)]();return _0x5993ec?this[_0x2f0f0d(0x3b6)][_0x2f0f0d(0x3ad)](_0x5993ec[_0x2f0f0d(0x14f)]()):d['of'](null);}),d['switchMap'](_0x342d49=>_0x342d49?_0x342d49[_0x14fbf4(0x234)]:d['of'](u[_0x14fbf4(0x198)][_0x14fbf4(0x1cf)])))['subscribe'](_0xe9e5b3=>{const _0x366c70=_0x14fbf4;this[_0x366c70(0x1ec)][_0x366c70(0x19c)](_0xe9e5b3);}));}[_0x51cf5f(0x15b)](){const _0x416cb6=_0x51cf5f;this[_0x416cb6(0x1fa)](this[_0x416cb6(0x263)]['registerComponent'](T[_0x416cb6(0x1a5)][_0x416cb6(0x161)],()=>T['connectInjector'](Pt({'status$':this[_0x416cb6(0x1ec)][_0x416cb6(0x387)]()}),this[_0x416cb6(0x382)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x51cf5f(0x2be)])),V(0x2,a['Inject'](u[_0x51cf5f(0x162)])),V(0x3,T[_0x51cf5f(0x3a6)])],exports[_0x51cf5f(0x1ba)]);function Pt(_0x3eda08){const {status$:_0x412cba}=_0x3eda08;return function(){const _0x2744bd=_0x406e;return w[_0x2744bd(0x392)](xe,{'status$':_0x412cba});};}var At=Object[_0x51cf5f(0x377)],yt=(_0x3b8089,_0x49e7e1,_0x42bd50,_0x4535d0)=>{const _0x22c50b=_0x51cf5f;for(var _0x27a46c=_0x4535d0>0x1?void 0x0:_0x4535d0?At(_0x49e7e1,_0x42bd50):_0x49e7e1,_0x3b80f6=_0x3b8089[_0x22c50b(0x296)]-0x1,_0x133195;_0x3b80f6>=0x0;_0x3b80f6--)(_0x133195=_0x3b8089[_0x3b80f6])&&(_0x27a46c=_0x133195(_0x27a46c)||_0x27a46c);return _0x27a46c;},y=(_0xf8c425,_0x44e5d9)=>(_0x1af55f,_0x38195b)=>_0x44e5d9(_0x1af55f,_0x38195b,_0xf8c425);let q=class extends a[_0x51cf5f(0x188)]{constructor(_0x35a31b,_0x2a4fbb,_0x54cfff,_0x199c06,_0x1d4640,_0x3edd5d){const _0x138ba3=_0x51cf5f;super(),this[_0x138ba3(0x1d1)]=_0x35a31b,this['_localCacheService']=_0x2a4fbb,this[_0x138ba3(0x21b)]=_0x54cfff,this[_0x138ba3(0x1a8)]=_0x199c06,this[_0x138ba3(0x15a)]=_0x1d4640,this[_0x138ba3(0x1e5)]=_0x3edd5d,this[_0x138ba3(0x35a)](),this[_0x138ba3(0x35e)]();}[_0x51cf5f(0x35a)](){const _0x3ab1dd=_0x51cf5f;this[_0x3ab1dd(0x1fa)](this[_0x3ab1dd(0x1d1)][_0x3ab1dd(0x391)](()=>{const _0x52952c=_0x3ab1dd;if(this['_localCacheService'][_0x52952c(0x15d)][_0x52952c(0x335)])return this[_0x52952c(0x1e5)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x41fc97=_0x51cf5f;this['disposeWithMe'](this[_0x41fc97(0x21b)][_0x41fc97(0x341)][_0x41fc97(0x254)](_0x57a416=>{const _0x5be16a=_0x41fc97;_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x276)]&&this['_messageService'][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x35c))}),_0x57a416['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t']('collaboration.closeRoom')}),_0x57a416['id']===u[_0x5be16a(0x15e)]['PERMISSION_DENIED']&&this[_0x5be16a(0x15a)]['show']({'title':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x2ae)),'content':this[_0x5be16a(0x1e5)]['t']('permission.content'),'type':_0x5be16a(0x2d9),'duration':0x0}),_0x57a416['id']===u['CollaborationUIEventId'][_0x5be16a(0x244)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x2ca)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x12c))+'('+_0x57a416[_0x5be16a(0x2eb)]+')'}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x2a8)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this['_localeService']['t'](_0x57a416[_0x5be16a(0x2eb)]||'')}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x190)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x270))}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x1e7)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)]['Error'],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x2d0))}),_0x57a416['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x2ca)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x21e))});}));}};q=yt([y(0x0,T[_0x51cf5f(0x291)]),y(0x1,u[_0x51cf5f(0x278)]),y(0x2,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x3b3)])),y(0x3,T[_0x51cf5f(0x35d)]),y(0x4,T[_0x51cf5f(0x332)]),y(0x5,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x306)]))],q);const $t=_0x51cf5f(0x213),Ue={},be=a[_0x51cf5f(0x23f)](_0x51cf5f(0x314));var xt=Object[_0x51cf5f(0x377)],jt=(_0x28b395,_0x31eded,_0x1b5de5,_0x12bbf5)=>{const _0x5c1966=_0x51cf5f;for(var _0x5e9efb=_0x12bbf5>0x1?void 0x0:_0x12bbf5?xt(_0x31eded,_0x1b5de5):_0x31eded,_0xa63a4c=_0x28b395[_0x5c1966(0x296)]-0x1,_0xc8dade;_0xa63a4c>=0x0;_0xa63a4c--)(_0xc8dade=_0x28b395[_0xa63a4c])&&(_0x5e9efb=_0xc8dade(_0x5e9efb)||_0x5e9efb);return _0x5e9efb;},H=(_0x19acc5,_0x1604e4)=>(_0x24a8fd,_0x4ed6d5)=>_0x1604e4(_0x24a8fd,_0x4ed6d5,_0x19acc5);exports['CollaborationDataLoaderController']=class extends a[_0x51cf5f(0x298)]{constructor(_0x160fbc,_0x41e3fb,_0x2a603e,_0x2e3f84,_0x184899){const _0x1eca94=_0x51cf5f;super(),this['_urlService']=_0x160fbc,this['_logService']=_0x41e3fb,this[_0x1eca94(0x362)]=_0x2a603e,this['_dataLoaderService']=_0x2e3f84,_0x184899?_0x184899==null||_0x184899['whenReady']()[_0x1eca94(0x2b1)](()=>this[_0x1eca94(0x2f4)]()):(this[_0x1eca94(0x309)][_0x1eca94(0x353)]('[CollaborationDataLoaderController]',_0x1eca94(0x390)),this[_0x1eca94(0x2f4)]());}async['_init'](){const _0x21bbf7=_0x51cf5f,_0x1346bc=this['_urlService']['getParam'](_0x21bbf7(0x31e)),_0xabe503=this['_urlService'][_0x21bbf7(0x39d)](_0x21bbf7(0x1ae)),_0x5e334c=this[_0x21bbf7(0x1aa)][_0x21bbf7(0x39d)](_0x21bbf7(0x1c7));if(!_0x1346bc||!_0xabe503){this[_0x21bbf7(0x309)][_0x21bbf7(0x353)](_0x21bbf7(0x1b7),_0x21bbf7(0x2f0));return;}const _0x16e532=await this[_0x21bbf7(0x275)][_0x21bbf7(0x236)](_0x1346bc,Number(_0xabe503),_0x5e334c);_0x16e532&&_0x16e532 instanceof a[_0x21bbf7(0x2cc)]&&this['_setupSubUnitSync'](_0x16e532);}async[_0x51cf5f(0x211)](_0x519cde){const _0x57351a=_0x51cf5f;await this[_0x57351a(0x279)](_0x519cde),_0x519cde[_0x57351a(0x12f)]['pipe'](d[_0x57351a(0x20d)](this[_0x57351a(0x28a)]))['subscribe'](_0x1313a4=>{_0x1313a4&&this['_updateURLWithCurrentState'](_0x1313a4);}),this[_0x57351a(0x1aa)][_0x57351a(0x25e)][_0x57351a(0x3a7)](d[_0x57351a(0x20d)](this[_0x57351a(0x28a)]))['subscribe'](()=>this[_0x57351a(0x279)](_0x519cde));}[_0x51cf5f(0x344)](_0x1b02ed,_0x21cf13=!0x1){const _0x2eba21=_0x51cf5f,_0x34eb94=this[_0x2eba21(0x1aa)]['getParam'](_0x2eba21(0x1c7));_0x1b02ed['getSheetId']()!==_0x34eb94&&this[_0x2eba21(0x1aa)][_0x2eba21(0x141)]('subunit',_0x1b02ed[_0x2eba21(0x399)](),_0x21cf13);}async[_0x51cf5f(0x279)](_0x2355ee){const _0x2062ae=_0x51cf5f;var _0x4fee57;const _0x128a85=this[_0x2062ae(0x1aa)]['getParam'](_0x2062ae(0x1c7));if(!_0x128a85||!_0x2355ee[_0x2062ae(0x2ec)](_0x128a85)){const _0x2cc81e=_0x2355ee['getUnhiddenWorksheets']()[0x0],_0x5d92d8=_0x2355ee[_0x2062ae(0x2ec)](_0x2cc81e);if(!_0x5d92d8)return;this[_0x2062ae(0x344)](_0x5d92d8,!0x0),await this[_0x2062ae(0x362)][_0x2062ae(0x170)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x2355ee[_0x2062ae(0x14f)](),'subUnitId':_0x2cc81e});return;}((_0x4fee57=_0x2355ee['getActiveSheet']())==null?void 0x0:_0x4fee57[_0x2062ae(0x399)]())!==_0x128a85&&await this['_commandService'][_0x2062ae(0x170)](g[_0x2062ae(0x319)]['id'],{'unitId':_0x2355ee[_0x2062ae(0x14f)](),'subUnitId':_0x128a85});}},exports[_0x51cf5f(0x363)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x51cf5f(0x36e)]),H(0x3,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x2c4)])),H(0x4,a[_0x51cf5f(0x2e4)](Ke['IRemoteInstanceService']))],exports[_0x51cf5f(0x363)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x274193,_0x1a8102,_0x425233,_0x38f088)=>{const _0x2b3de3=_0x51cf5f;for(var _0x33b0e5=_0x38f088>0x1?void 0x0:_0x38f088?Bt(_0x1a8102,_0x425233):_0x1a8102,_0x12b2e3=_0x274193[_0x2b3de3(0x296)]-0x1,_0x383b4e;_0x12b2e3>=0x0;_0x12b2e3--)(_0x383b4e=_0x274193[_0x12b2e3])&&(_0x33b0e5=_0x383b4e(_0x33b0e5)||_0x33b0e5);return _0x33b0e5;},ce=(_0x531d29,_0x50f2dc)=>(_0x5cd163,_0x1cbd7d)=>_0x50f2dc(_0x5cd163,_0x1cbd7d,_0x531d29);let z=class{constructor(_0x10a184,_0x2fa638,_0x46c52e){const _0x54acb2=_0x51cf5f;this[_0x54acb2(0x382)]=_0x10a184,this[_0x54acb2(0x1a4)]=_0x2fa638,this[_0x54acb2(0x152)]=_0x46c52e;}[_0x51cf5f(0x136)](_0xf8cd9e){const _0x30dcdf=_0x51cf5f;this[_0x30dcdf(0x2b2)](_0xf8cd9e),this['_transformPreviousActiveRange'](_0xf8cd9e);}['transformRemoteChangeset'](_0x4d20ef){const _0x1ab388=_0x51cf5f,{unitID:_0x19c757}=_0x4d20ef,_0x2cf20f=this['_renderManagerService'][_0x1ab388(0x1bd)](_0x19c757)[_0x1ab388(0x1f2)](b[_0x1ab388(0x2db)]),{redoCache:_0x30d4d5}=_0x2cf20f[_0x1ab388(0x230)]();if(_0x30d4d5[_0x1ab388(0x296)]===0x0)return _0x4d20ef;let _0x21a92f=a[_0x1ab388(0x311)][_0x1ab388(0x2f6)](_0x4d20ef[_0x1ab388(0x297)][0x0]);for(let _0x11dcdd=0x0;_0x11dcdd<_0x30d4d5[_0x1ab388(0x296)];_0x11dcdd++){const _0x5783fa={'id':_0x1ab388(0x292),'params':{..._0x30d4d5[_0x11dcdd]}},_0x1fb6ee=this[_0x1ab388(0x1a4)][_0x1ab388(0x148)](_0x21a92f,_0x5783fa,!0x1);if(m['isTransformMutationFailure'](_0x1fb6ee))throw _0x1fb6ee[_0x1ab388(0x2d9)];_0x21a92f=_0x1fb6ee[_0x1ab388(0x33a)];}return{...a[_0x1ab388(0x311)][_0x1ab388(0x2f6)](_0x4d20ef),'mutations':[_0x21a92f]};}[_0x51cf5f(0x2b2)](_0x653b72){const _0x1fc9f0=_0x51cf5f,{unitID:_0x54dba3}=_0x653b72,_0x245ff8=this[_0x1fc9f0(0x152)][_0x1fc9f0(0x1bd)](_0x54dba3)[_0x1fc9f0(0x1f2)](b[_0x1fc9f0(0x2db)]),{undoCache:_0x3a856d,redoCache:_0x2e02e1}=_0x245ff8[_0x1fc9f0(0x230)]();if(_0x3a856d[_0x1fc9f0(0x296)]===0x0||_0x2e02e1[_0x1fc9f0(0x296)]===0x0)return;const _0x354251=[],_0x14de46=[];let _0xae34c0=a[_0x1fc9f0(0x311)][_0x1fc9f0(0x2f6)](_0x653b72[_0x1fc9f0(0x297)][0x0]),_0x34d313=a[_0x1fc9f0(0x311)][_0x1fc9f0(0x2f6)](_0x653b72['mutations'][0x0]);for(let _0x29ceba=_0x3a856d[_0x1fc9f0(0x296)]-0x1;_0x29ceba>=0x0;_0x29ceba--){const _0x22b3b4={'id':_0x1fc9f0(0x292),'params':{..._0x3a856d[_0x29ceba]}},_0xaecc1a={'id':_0x1fc9f0(0x292),'params':{..._0x2e02e1[_0x29ceba]}},_0x2d3b64=this[_0x1fc9f0(0x1a4)][_0x1fc9f0(0x148)](_0xae34c0,_0x22b3b4,!0x1),_0x3e9216=this[_0x1fc9f0(0x1a4)]['transformMutation'](_0x34d313,_0xaecc1a,!0x1);if(m[_0x1fc9f0(0x201)](_0x2d3b64))throw _0x2d3b64[_0x1fc9f0(0x2d9)];if(m[_0x1fc9f0(0x201)](_0x3e9216))throw _0x3e9216['error'];_0x354251[_0x1fc9f0(0x1de)](_0x2d3b64[_0x1fc9f0(0x3af)]['params']),_0x14de46[_0x1fc9f0(0x1de)](_0x3e9216[_0x1fc9f0(0x3af)][_0x1fc9f0(0x3b5)]),_0xae34c0=_0x2d3b64['m1Prime'],_0x34d313=_0x3e9216[_0x1fc9f0(0x33a)];}_0x245ff8[_0x1fc9f0(0x3b7)]({'undoCache':_0x354251,'redoCache':_0x14de46});}[_0x51cf5f(0x218)](_0xeece57){const _0x1739ae=_0x51cf5f,{unitID:_0x57a29b}=_0xeece57,_0x5c27f7=this[_0x1739ae(0x152)][_0x1739ae(0x1bd)](_0x57a29b)['with'](b['DocIMEInputManagerService']),_0x424e1a=_0x5c27f7[_0x1739ae(0x18d)]();if(_0x424e1a==null)return;const _0x3889db=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xeece57[_0x1739ae(0x1f4)],'actions':null,'textRanges':[_0x424e1a]}}],_0x2970cc=this['_transformService'][_0x1739ae(0x169)](_0xeece57,_0x3889db);if(!m['isTransformMutationsWithChangesetSuccess'](_0x2970cc))throw _0x2970cc[_0x1739ae(0x2d9)];const _0xd3f1b0=_0x2970cc[_0x1739ae(0x3af)][0x0]['params'][_0x1739ae(0x225)];Array[_0x1739ae(0x273)](_0xd3f1b0)&&_0xd3f1b0['length']&&_0x5c27f7[_0x1739ae(0x295)](_0xd3f1b0[0x0]);}};z=kt([ce(0x0,a[_0x51cf5f(0x249)](a['Injector'])),ce(0x1,m[_0x51cf5f(0x339)]),ce(0x2,p[_0x51cf5f(0x18a)])],z);var Ht=Object[_0x51cf5f(0x377)],Ft=(_0x4cf21f,_0x4a490b,_0x4d9c82,_0x3545a3)=>{const _0x11d148=_0x51cf5f;for(var _0x12c82c=_0x3545a3>0x1?void 0x0:_0x3545a3?Ht(_0x4a490b,_0x4d9c82):_0x4a490b,_0x38ab76=_0x4cf21f[_0x11d148(0x296)]-0x1,_0xb8d997;_0x38ab76>=0x0;_0x38ab76--)(_0xb8d997=_0x4cf21f[_0x38ab76])&&(_0x12c82c=_0xb8d997(_0x12c82c)||_0x12c82c);return _0x12c82c;},le=(_0x4942c8,_0x10035c)=>(_0x4748b8,_0x245c2f)=>_0x10035c(_0x4748b8,_0x245c2f,_0x4942c8);let J=class{constructor(_0x175d44,_0x1399cd,_0x2a71f6){const _0x3d3ead=_0x51cf5f;this[_0x3d3ead(0x382)]=_0x175d44,this['_transformService']=_0x1399cd,this['_docStateChangeManagerService']=_0x2a71f6;}['transformStateCache'](_0x230137){const _0x593967=_0x51cf5f;this[_0x593967(0x1df)](_0x230137);}['transformRemoteChangeset'](_0xf0e5e0){const _0x2c39b2=_0x51cf5f,{unitID:_0x44e8c2}=_0xf0e5e0,{collaboration:_0x195c81}=this[_0x2c39b2(0x2e0)]['getStateCache'](_0x44e8c2);if(_0x195c81['length']===0x0)return _0xf0e5e0;let _0x561acf=a[_0x2c39b2(0x311)][_0x2c39b2(0x2f6)](_0xf0e5e0[_0x2c39b2(0x297)][0x0]);for(let _0x36d5ee=0x0;_0x36d5ee<_0x195c81[_0x2c39b2(0x296)];_0x36d5ee++){const _0x349646={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x195c81[_0x36d5ee]['unitId'],..._0x195c81[_0x36d5ee][_0x2c39b2(0x18f)]}},_0x3c3085=this['_transformService'][_0x2c39b2(0x148)](_0x561acf,_0x349646,!0x1);if(m['isTransformMutationFailure'](_0x3c3085))throw _0x3c3085['error'];_0x561acf=_0x3c3085[_0x2c39b2(0x33a)];}return{...a[_0x2c39b2(0x311)][_0x2c39b2(0x2f6)](_0xf0e5e0),'mutations':[_0x561acf]};}[_0x51cf5f(0x1df)](_0x44851f){const _0x16cd79=_0x51cf5f,{unitID:_0x355b1e}=_0x44851f,{history:_0x105e06,collaboration:_0xcf963e}=this[_0x16cd79(0x2e0)][_0x16cd79(0x1ee)](_0x355b1e);if(_0x105e06[_0x16cd79(0x296)]===0x0&&_0xcf963e[_0x16cd79(0x296)]===0x0)return;const _0x3e7f23=[],_0x5c5e56=[];let _0x5aea9d=a['Tools']['deepClone'](_0x44851f[_0x16cd79(0x297)][0x0]),_0x5b1536=a[_0x16cd79(0x311)][_0x16cd79(0x2f6)](_0x44851f[_0x16cd79(0x297)][0x0]);for(let _0x5d0fa6=_0x105e06[_0x16cd79(0x296)]-0x1;_0x5d0fa6>=0x0;_0x5d0fa6--){const _0x23316b={'id':_0x16cd79(0x292),'params':{'unitId':_0x105e06[_0x5d0fa6][_0x16cd79(0x395)],..._0x105e06[_0x5d0fa6][_0x16cd79(0x22a)]}},_0x49d9cf={'id':_0x16cd79(0x292),'params':{'unitId':_0x105e06[_0x5d0fa6][_0x16cd79(0x395)],..._0x105e06[_0x5d0fa6][_0x16cd79(0x18f)]}},_0x1cd216=this[_0x16cd79(0x1a4)]['transformMutation'](_0x5aea9d,_0x23316b,!0x1),_0x1e6c44=this['_transformService']['transformMutation'](_0x5b1536,_0x49d9cf,!0x1);if(m[_0x16cd79(0x201)](_0x1cd216))throw _0x1cd216['error'];if(m[_0x16cd79(0x201)](_0x1e6c44))throw _0x1e6c44[_0x16cd79(0x2d9)];_0x3e7f23['unshift']({..._0x105e06[_0x5d0fa6],'undoState':_0x1cd216['m2Prime'][_0x16cd79(0x3b5)],'redoState':_0x1e6c44[_0x16cd79(0x3af)][_0x16cd79(0x3b5)]}),_0x5aea9d=_0x1cd216[_0x16cd79(0x33a)],_0x5b1536=_0x1e6c44['m1Prime'];}_0x5aea9d=a[_0x16cd79(0x311)]['deepClone'](_0x44851f['mutations'][0x0]),_0x5b1536=a[_0x16cd79(0x311)][_0x16cd79(0x2f6)](_0x44851f[_0x16cd79(0x297)][0x0]);for(let _0x208d96=_0xcf963e[_0x16cd79(0x296)]-0x1;_0x208d96>=0x0;_0x208d96--){const _0x11b2e2={'id':_0x16cd79(0x292),'params':{'unitId':_0xcf963e[_0x208d96][_0x16cd79(0x395)],..._0xcf963e[_0x208d96][_0x16cd79(0x22a)]}},_0x4e5a28={'id':_0x16cd79(0x292),'params':{'unitId':_0xcf963e[_0x208d96][_0x16cd79(0x395)],..._0xcf963e[_0x208d96][_0x16cd79(0x18f)]}},_0xd887d3=this['_transformService'][_0x16cd79(0x148)](_0x5aea9d,_0x11b2e2,!0x1),_0x286a87=this['_transformService']['transformMutation'](_0x5b1536,_0x4e5a28,!0x1);if(m[_0x16cd79(0x201)](_0xd887d3))throw _0xd887d3[_0x16cd79(0x2d9)];if(m['isTransformMutationFailure'](_0x286a87))throw _0x286a87[_0x16cd79(0x2d9)];_0x5c5e56['unshift']({..._0xcf963e[_0x208d96],'undoState':_0xd887d3[_0x16cd79(0x3af)][_0x16cd79(0x3b5)],'redoState':_0x286a87['m2Prime'][_0x16cd79(0x3b5)]}),_0x5aea9d=_0xd887d3[_0x16cd79(0x33a)],_0x5b1536=_0x286a87[_0x16cd79(0x33a)];}this[_0x16cd79(0x2e0)]['setStateCache'](_0x355b1e,{'history':_0x3e7f23,'collaboration':_0x5c5e56});}};J=Ft([le(0x0,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),le(0x1,m[_0x51cf5f(0x339)]),le(0x2,a[_0x51cf5f(0x249)](b[_0x51cf5f(0x358)]))],J);var Yt=Object[_0x51cf5f(0x377)],Wt=(_0x53b47d,_0x400779,_0x4472a9,_0x108f07)=>{const _0x393d95=_0x51cf5f;for(var _0x3d2738=_0x108f07>0x1?void 0x0:_0x108f07?Yt(_0x400779,_0x4472a9):_0x400779,_0x2c97dd=_0x53b47d[_0x393d95(0x296)]-0x1,_0x5c3200;_0x2c97dd>=0x0;_0x2c97dd--)(_0x5c3200=_0x53b47d[_0x2c97dd])&&(_0x3d2738=_0x5c3200(_0x3d2738)||_0x3d2738);return _0x3d2738;},Ne=(_0x22c0de,_0x534d12)=>(_0x2a5aa2,_0xa7b4c5)=>_0x534d12(_0x2a5aa2,_0xa7b4c5,_0x22c0de);let Z=class{constructor(_0x44e5d3,_0x28dd30){const _0x2cf251=_0x51cf5f;this[_0x2cf251(0x382)]=_0x44e5d3,this[_0x2cf251(0x1a4)]=_0x28dd30;}[_0x51cf5f(0x153)](_0x1feea5){const _0x8bd2fd=_0x51cf5f;var _0xa5600a;const _0x4a7249=this['_injector']['get'](Y[_0x8bd2fd(0x398)]),_0x5557c3=(_0xa5600a=_0x4a7249[_0x8bd2fd(0x1e8)]())!=null?_0xa5600a:[];if(_0x5557c3[_0x8bd2fd(0x296)]===0x0)return;const _0x82df78=_0x1feea5['unitID'],_0x54fe4e=[{'id':_0x8bd2fd(0x292),'params':{'unitId':_0x82df78,'actions':null,'textRanges':_0x5557c3}}],_0x5599b1=this[_0x8bd2fd(0x1a4)][_0x8bd2fd(0x169)](_0x1feea5,_0x54fe4e);if(!m[_0x8bd2fd(0x337)](_0x5599b1))throw _0x5599b1['error'];const _0x553464=_0x5599b1[_0x8bd2fd(0x3af)][0x0][_0x8bd2fd(0x3b5)][_0x8bd2fd(0x225)];Array[_0x8bd2fd(0x273)](_0x553464)&&_0x553464[_0x8bd2fd(0x296)]&&_0x4a7249['replaceDocRanges'](_0x553464,{'unitId':_0x82df78,'subUnitId':_0x82df78},!0x1);}};Z=Wt([Ne(0x0,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0xbdc317,_0x24269d,_0x10c8bf,_0x21a855)=>{for(var _0x30d14a=_0x21a855>0x1?void 0x0:_0x21a855?Vt(_0x24269d,_0x10c8bf):_0x24269d,_0x39f72e=_0xbdc317['length']-0x1,_0xaf4323;_0x39f72e>=0x0;_0x39f72e--)(_0xaf4323=_0xbdc317[_0x39f72e])&&(_0x30d14a=_0xaf4323(_0x30d14a)||_0x30d14a);return _0x30d14a;},N=(_0x307820,_0x3c3312)=>(_0x4220f9,_0x3f7bb6)=>_0x3c3312(_0x4220f9,_0x3f7bb6,_0x307820);let Q=class extends a[_0x51cf5f(0x188)]{constructor(_0xf481c9,_0xaadec4,_0x4a8aaa,_0x584b6a,_0x1c95f8,_0x1b5d7e,_0x490475,_0x22a62c){const _0x1d6e25=_0x51cf5f;super(),h(this,'_status$',new d[(_0x1d6e25(0x365))](u[_0x1d6e25(0x198)][_0x1d6e25(0x1cf)])),(this[_0x1d6e25(0x2e0)]=_0xf481c9,this[_0x1d6e25(0x3b6)]=_0xaadec4,this[_0x1d6e25(0x15c)]=_0x4a8aaa,this[_0x1d6e25(0x131)]=_0x584b6a,this[_0x1d6e25(0x1c8)]=_0x1c95f8,this[_0x1d6e25(0x2c2)]=_0x1b5d7e,this[_0x1d6e25(0x1a8)]=_0x490475,this[_0x1d6e25(0x1e5)]=_0x22a62c,this[_0x1d6e25(0x17b)]());}['_initEntityListener'](){const _0x164de9=_0x51cf5f;this[_0x164de9(0x1fa)](this[_0x164de9(0x3b6)][_0x164de9(0x183)][_0x164de9(0x254)](_0x1a0744=>{const _0x122ac0=_0x164de9,_0x3552fc=this[_0x122ac0(0x2e0)][_0x122ac0(0x174)][_0x122ac0(0x254)](_0x4236a6=>{const _0x2f9918=_0x122ac0;if(_0x4236a6==null)return;const {unitId:_0x1c956f,redoState:_0x4c0799,commandId:_0xa4d9a6}=_0x4236a6;if(_0x1c956f!==_0x1a0744[_0x2f9918(0x1f4)])return;const _0x2a9c5e={'id':_0xa4d9a6,'type':a[_0x2f9918(0x199)]['MUTATION'],'params':{'unitId':_0x1c956f,'actions':_0x4c0799[_0x2f9918(0x324)],'textRanges':null}};_0x1a0744[_0x2f9918(0x34f)](_0x2a9c5e);});if(_0x1a0744[_0x122ac0(0x1fa)](_0x3552fc),_0x1a0744 instanceof u[_0x122ac0(0x219)]){const _0xccae07={'onTransformIME':_0x35b660=>this[_0x122ac0(0x15c)]['transformIMECache'](_0x35b660),'onTransformState':_0x13c2bc=>this[_0x122ac0(0x131)][_0x122ac0(0x2a1)](_0x13c2bc),'onTransformSelections':_0xa4c6fe=>this[_0x122ac0(0x1c8)]['transformSelections'](_0xa4c6fe),'onSyncEditingCollabCursor':_0x45bf98=>this[_0x122ac0(0x2c2)][_0x122ac0(0x245)](_0x45bf98),'onTransformRemoteChangesetByIMECache':_0x4829fe=>this[_0x122ac0(0x15c)][_0x122ac0(0x17e)](_0x4829fe),'onTransformRemoteChangesetByStateCache':_0x29b833=>this['_docTransformStateCacheService'][_0x122ac0(0x17e)](_0x29b833)};_0x1a0744[_0x122ac0(0x2da)](_0xccae07);}}));}};Q=Xt([N(0x0,a[_0x51cf5f(0x249)](b[_0x51cf5f(0x358)])),N(0x1,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x162)])),N(0x2,a[_0x51cf5f(0x249)](z)),N(0x3,a[_0x51cf5f(0x249)](J)),N(0x4,a[_0x51cf5f(0x249)](Z)),N(0x5,a[_0x51cf5f(0x249)](Ce)),N(0x6,T['IMessageService']),N(0x7,a['Inject'](a[_0x51cf5f(0x306)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x5b6e62,_0x3651c1,_0x3c611e,_0x397a5b)=>{const _0x2980d8=_0x51cf5f;for(var _0x1038d5=_0x397a5b>0x1?void 0x0:_0x397a5b?Gt(_0x3651c1,_0x3c611e):_0x3651c1,_0x10af21=_0x5b6e62[_0x2980d8(0x296)]-0x1,_0x2c7dce;_0x10af21>=0x0;_0x10af21--)(_0x2c7dce=_0x5b6e62[_0x10af21])&&(_0x1038d5=_0x2c7dce(_0x1038d5)||_0x1038d5);return _0x1038d5;},_e=(_0x2900c6,_0x19991e)=>(_0x574079,_0x2307aa)=>_0x19991e(_0x574079,_0x2307aa,_0x2900c6);let ge=class extends a[_0x51cf5f(0x188)]{constructor(_0x26d355,_0x51d2f7,_0x79c7bb){const _0x993b81=_0x51cf5f;super(),h(this,_0x993b81(0x130),new Map()),h(this,_0x993b81(0x2d6),new Map()),h(this,_0x993b81(0x385),!0x1),(this['_configService']=_0x26d355,this[_0x993b81(0x15f)]=_0x51d2f7,this[_0x993b81(0x372)]=_0x79c7bb);}[_0x51cf5f(0x302)](){this['_disabled']=!0x0;}[_0x51cf5f(0x158)](){const _0x1554d0=_0x51cf5f;this[_0x1554d0(0x385)]=!0x1;}get[_0x51cf5f(0x15d)](){const _0x1a878e=_0x51cf5f;return this[_0x1a878e(0x2d6)];}[_0x51cf5f(0x277)](){const _0x4404b7=_0x51cf5f;this[_0x4404b7(0x25c)]()[_0x4404b7(0x2b1)](()=>super[_0x4404b7(0x277)]());}async[_0x51cf5f(0x2c0)](_0x9f2725){const _0x2f46b1=_0x51cf5f;return this[_0x2f46b1(0x385)]?null:this[_0x2f46b1(0x15f)][_0x2f46b1(0x255)](u['getLocalCacheKey'](_0x9f2725));}async[_0x51cf5f(0x17a)](_0x2d9b59,_0x5ed866){const _0x31878b=_0x51cf5f;return!!this[_0x31878b(0x15f)][_0x31878b(0x1d7)](_0x2d9b59,_0x5ed866);}[_0x51cf5f(0x289)](_0x4ad92e,_0x5deed4,_0x577d67,_0x46155c){const _0x54f39a=_0x51cf5f,_0xcf8af1=this[_0x54f39a(0x372)][_0x54f39a(0x351)](_0x4ad92e);this[_0x54f39a(0x130)][_0x54f39a(0x2e8)](_0x4ad92e,{'unitID':_0x4ad92e,'type':_0x5deed4,'awaitingChangeset':_0x577d67,'mutations':_0x46155c,'rev':_0xcf8af1}),this[_0x54f39a(0x2d6)]['has'](_0x4ad92e)||this[_0x54f39a(0x26e)](_0x4ad92e);}[_0x51cf5f(0x26e)](_0x875c86){const _0x2af2c5=_0x51cf5f,_0x46f274=this[_0x2af2c5(0x264)]();_0x46f274===0x0?this['_saveCache'](_0x875c86):this[_0x2af2c5(0x2d6)][_0x2af2c5(0x2e8)](_0x875c86,setTimeout(()=>this[_0x2af2c5(0x35b)](_0x875c86),_0x46f274));}[_0x51cf5f(0x264)](){const _0x4c0eb5=_0x51cf5f;var _0x38867b;return(_0x38867b=this[_0x4c0eb5(0x178)][_0x4c0eb5(0x2aa)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x38867b:u[_0x4c0eb5(0x20f)];}[_0x51cf5f(0x35b)](_0x50b774){const _0x140850=_0x51cf5f,_0x2a6e6d=this[_0x140850(0x2d6)][_0x140850(0x214)](_0x50b774);return _0x2a6e6d!==void 0x0&&window[_0x140850(0x259)](_0x2a6e6d),this[_0x140850(0x15f)][_0x140850(0x1d7)](u[_0x140850(0x1b1)](_0x50b774),this[_0x140850(0x130)][_0x140850(0x214)](_0x50b774))[_0x140850(0x2b1)](()=>this[_0x140850(0x2d6)][_0x140850(0x1cb)](_0x50b774));}async[_0x51cf5f(0x25c)](){const _0x101c8d=_0x51cf5f,_0x21312a=[];this[_0x101c8d(0x2d6)][_0x101c8d(0x2ba)]((_0x48a2d6,_0x9801bf)=>{const _0x357eae=_0x101c8d;window[_0x357eae(0x259)](_0x48a2d6),_0x21312a['push'](this['_saveCache'](_0x9801bf)['then'](()=>{const _0x5dfd97=_0x357eae;this[_0x5dfd97(0x2d6)]['delete'](_0x9801bf);}));}),await Promise[_0x101c8d(0x19b)](_0x21312a);}};ge=Kt([_e(0x0,a[_0x51cf5f(0x293)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m[_0x51cf5f(0x284)]))],ge);function _0x406e(_0x221920,_0x3f57bd){const _0x65eb63=_0x65eb();return _0x406e=function(_0x406e5f,_0x2eb395){_0x406e5f=_0x406e5f-0x12b;let _0x83b5b3=_0x65eb63[_0x406e5f];return _0x83b5b3;},_0x406e(_0x221920,_0x3f57bd);}class je extends a[_0x51cf5f(0x298)]{constructor(){const _0x36b5a6=_0x51cf5f;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x36b5a6(0x29e)](window,_0x36b5a6(0x360))['pipe'](d['takeUntil'](this[_0x36b5a6(0x28a)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}['setParam'](_0x1c607f,_0x4336ac,_0x337b7c=!0x1){const _0x2532c6=_0x51cf5f,_0x4521d9=new URL(window['location'][_0x2532c6(0x1e4)]);_0x4521d9[_0x2532c6(0x3a5)][_0x2532c6(0x2e8)](_0x1c607f,_0x4336ac),_0x337b7c?window[_0x2532c6(0x19a)][_0x2532c6(0x227)]('','',_0x4521d9[_0x2532c6(0x2f3)]()):window[_0x2532c6(0x19a)][_0x2532c6(0x1c3)]('','',_0x4521d9['toString']());}[_0x51cf5f(0x22f)](_0x41af90,_0x4207c3=!0x1){const _0x2a2485=_0x51cf5f,_0x4ba64b=new URL(window[_0x2a2485(0x396)][_0x2a2485(0x1e4)]);_0x4ba64b[_0x2a2485(0x3a5)][_0x2a2485(0x1cb)](_0x41af90),_0x4207c3?window[_0x2a2485(0x19a)][_0x2a2485(0x227)]('','',_0x4ba64b[_0x2a2485(0x2f3)]()):window[_0x2a2485(0x19a)][_0x2a2485(0x1c3)]('','',_0x4ba64b[_0x2a2485(0x2f3)]());}['getParam'](_0x2ab996){const _0x5dca9b=_0x51cf5f;var _0x29e4b5;return(_0x29e4b5=new URL(window[_0x5dca9b(0x396)][_0x5dca9b(0x1e4)])[_0x5dca9b(0x3a5)][_0x5dca9b(0x214)](_0x2ab996))!=null?_0x29e4b5:void 0x0;}}var qt=Object[_0x51cf5f(0x348)],zt=Object[_0x51cf5f(0x377)],Jt=(_0x4e0cfa,_0xbbc363,_0x346b8d)=>_0xbbc363 in _0x4e0cfa?qt(_0x4e0cfa,_0xbbc363,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x346b8d}):_0x4e0cfa[_0xbbc363]=_0x346b8d,Zt=(_0xd07a1a,_0x39c204,_0x5037c5,_0x199d60)=>{const _0x358147=_0x51cf5f;for(var _0x1f8f2b=_0x199d60>0x1?void 0x0:_0x199d60?zt(_0x39c204,_0x5037c5):_0x39c204,_0x45022b=_0xd07a1a[_0x358147(0x296)]-0x1,_0x2b964e;_0x45022b>=0x0;_0x45022b--)(_0x2b964e=_0xd07a1a[_0x45022b])&&(_0x1f8f2b=_0x2b964e(_0x1f8f2b)||_0x1f8f2b);return _0x1f8f2b;},he=(_0x4bc2cd,_0x2944e1)=>(_0x439054,_0x381bee)=>_0x2944e1(_0x439054,_0x381bee,_0x4bc2cd),Qt=(_0x3fe019,_0x58b63c,_0xdf855d)=>Jt(_0x3fe019,_0x58b63c+'',_0xdf855d);const es=_0x51cf5f(0x380);exports[_0x51cf5f(0x3ab)]=class extends a[_0x51cf5f(0x342)]{constructor(_0x5d8cd5=Ue,_0x3bb1cd,_0x15493c,_0x2bff52){const _0x520eca=_0x51cf5f;super(),this[_0x520eca(0x31b)]=_0x5d8cd5,this[_0x520eca(0x152)]=_0x3bb1cd,this[_0x520eca(0x382)]=_0x15493c,this[_0x520eca(0x178)]=_0x2bff52;const {..._0x4c8988}=a[_0x520eca(0x2fc)]({},Ue,this['_config']);this[_0x520eca(0x178)][_0x520eca(0x368)]($t,_0x4c8988);}[_0x51cf5f(0x140)](){const _0x443ada=_0x51cf5f;this[_0x443ada(0x3b4)](),this[_0x443ada(0x31d)]();}[_0x51cf5f(0x383)](){const _0x12c672=_0x51cf5f;this[_0x12c672(0x29b)]();}[_0x51cf5f(0x3b4)](){const _0x213265=_0x51cf5f;var _0x5b09d6;const _0x147389=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x213265(0x25d)],{'useClass':G['WebSocketService']}],[u[_0x213265(0x278)],{'useClass':ge}],[exports[_0x213265(0x1ba)]],[Q],[q],[x],[de],[exports[_0x213265(0x363)]]];a['registerDependencies'](this['_injector'],a['mergeOverrideWithDependencies'](_0x147389,(_0x5b09d6=this['_config'])==null?void 0x0:_0x5b09d6[_0x213265(0x352)]));}[_0x51cf5f(0x29b)](){const _0x17e949=_0x51cf5f;this[_0x17e949(0x1fa)](this[_0x17e949(0x152)][_0x17e949(0x1c1)](a[_0x17e949(0x304)][_0x17e949(0x288)],[Ie])),this[_0x17e949(0x1fa)](this[_0x17e949(0x152)][_0x17e949(0x1c1)](a['UniverInstanceType'][_0x17e949(0x2fd)],[ve]));}[_0x51cf5f(0x31d)](){const _0x1fb496=_0x51cf5f;a['touchDependencies'](this['_injector'],[[x],[exports[_0x1fb496(0x1ba)]],[Q],[q],[exports[_0x1fb496(0x363)]]]);}},Qt(exports[_0x51cf5f(0x3ab)],_0x51cf5f(0x347),es),exports[_0x51cf5f(0x3ab)]=Zt([a[_0x51cf5f(0x25b)](u[_0x51cf5f(0x37a)]),he(0x1,p[_0x51cf5f(0x18a)]),he(0x2,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),he(0x3,a[_0x51cf5f(0x293)])],exports[_0x51cf5f(0x3ab)]);var ts=Object[_0x51cf5f(0x377)],ss=(_0x1f09c2,_0x283bd3,_0x3fdab8,_0x3cf6e0)=>{const _0x25890d=_0x51cf5f;for(var _0x17cdbe=_0x3cf6e0>0x1?void 0x0:_0x3cf6e0?ts(_0x283bd3,_0x3fdab8):_0x283bd3,_0x118236=_0x1f09c2[_0x25890d(0x296)]-0x1,_0x22eaab;_0x118236>=0x0;_0x118236--)(_0x22eaab=_0x1f09c2[_0x118236])&&(_0x17cdbe=_0x22eaab(_0x17cdbe)||_0x17cdbe);return _0x17cdbe;},F=(_0x118eff,_0x421fb4)=>(_0x4cbb99,_0x4666a6)=>_0x421fb4(_0x4cbb99,_0x4666a6,_0x118eff);exports[_0x51cf5f(0x37c)]=class extends u[_0x51cf5f(0x371)]{constructor(_0x2389c4,_0x5cc06d,_0x5c53b6,_0x4e9a23,_0x16c97c){super(_0x2389c4,_0x5cc06d,_0x5c53b6,_0x4e9a23,_0x16c97c);}async[_0x51cf5f(0x39c)](_0x331e58){const _0x2ae202=_0x51cf5f,_0x339389=await this['_getSessionTicket'](),_0x4218af=this[_0x2ae202(0x24a)](_0x331e58,_0x339389);return this['_doCreateSocket'](_0x4218af);}['_createSocketURL'](_0x228f82,_0xdc83c8){const _0x1308dc=_0x51cf5f,_0x29f161=typeof window>'u'?new URL(_0x228f82):new URL(_0x228f82,window[_0x1308dc(0x396)]['origin']);_0x29f161[_0x1308dc(0x3a5)][_0x1308dc(0x2e8)](_0x1308dc(0x22d),_0xdc83c8);const _0x35492f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1308dc(0x285)]);return _0x35492f[_0x1308dc(0x214)](_0x1308dc(0x20b))&&_0x29f161[_0x1308dc(0x3a5)]['set'](_0x1308dc(0x20b),_0x35492f[_0x1308dc(0x214)](_0x1308dc(0x20b))),_0x29f161['toString']();}async[_0x51cf5f(0x367)](){const _0x534bc9=_0x51cf5f;var _0x36e699,_0x5cbba8,_0x1abed6;const _0x10dd2e=this['_configService'][_0x534bc9(0x2aa)](u[_0x534bc9(0x1ff)]),_0x11ce10=(_0x36e699=_0x10dd2e==null?void 0x0:_0x10dd2e[_0x534bc9(0x203)])!=null?_0x36e699:u[_0x534bc9(0x1f7)];return(_0x1abed6=(_0x5cbba8=(await this[_0x534bc9(0x2cd)][_0x534bc9(0x214)](_0x11ce10,{'headers':{'Content-Type':'application/json'}}))[_0x534bc9(0x226)])==null?void 0x0:_0x5cbba8[_0x534bc9(0x26d)])!=null?_0x1abed6:'';}},exports[_0x51cf5f(0x37c)]=ss([F(0x0,a['Inject'](a[_0x51cf5f(0x2be)])),F(0x1,a[_0x51cf5f(0x249)](G[_0x51cf5f(0x20a)])),F(0x2,a['IConfigService']),F(0x3,a[_0x51cf5f(0x1b5)]),F(0x4,m[_0x51cf5f(0x16f)])],exports[_0x51cf5f(0x37c)]);const Me=0x7530,Le=_0x51cf5f(0x376);function _0x65eb(){const _0x44a4ce=['sessionTicket','init','removeParam','getUndoRedoMutationParamsCache','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/ui','startRow','status$','ENSURE_SNAPSHOT_EXECUTION','loadUnit','getCurrentSelections','debounceTime','defs','@univerjs/engine-render','onMouseMove','getSkeleton','SessionStatus','6549462UlDfvX','createIdentifier','_selfUnitIDs','RemoteUniscriptService','currentTheme$','off-line-icon','CONFLICT','syncEditingCollabCursor','debounce','_syncEditingCollabCursorService','collabStatus.notCollab','Inject','_createSocketURL','YUUMI_UNABLE_LOAD_URL','getMergeData','skeleton','@univerjs/core','apply','handleInsertRangeMoveDown','xlink:href','fillText','eventID','subscribe','getItem','sheetId','beginPath','_cursors','clearTimeout','_docSkeleton','DependentOn','exhaustSavingTask','ISocketService','urlChange$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','onTransformChange$','executionId','_collabCursorController','_uiPartsService','_getSaveTimeout','_labelPosition','_textBubble','MemberService','isActive','NO_OTHER_CLIENTS_EDITING','addClipboardHook','_toggleOnline','RichTextEditingMutation','ticket','_scheduleSaving','unsubscribe','session.will-retry','range','/run/','isArray','SetTextSelectionsOperation','_dataLoaderService','OTHER_CLIENT_EDITING','dispose','ILocalCacheService','_updateSubUnitFromURLParams','extend','InsertRowCommandId','PENDING','LICENSE_EXPORT_SIZE_EXCEEDED','_updateLocalCursor','getUnitStatus$','collabStatus.synced','_drawRectRange','getMember','APPLY_REJECT','RevisionService','search','jiqing.500','ranges','UNIVER_DOC','updateOfflineData','dispose$','handleIRemoveRow','TEXT','_univerInstanceService','hasOwnProperty','drawWith','7108465qBnXOl','IBeforeCloseService','doc.mutation.rich-text-editing','IConfigService','memberID','setActiveRange','length','mutations','RxDisposable','_handleLeaveEvent','_hover','_registerRenderDependencies','FETCH_MISS','getTypeOfUnitDisposed$','fromEvent','tag','hide','transformStateCache','flatMap','INVITE_CODE_HAS_BEEN_UES','getCollabCursors$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','resize','_heartbeatTimer','JOIN_ROOM_FAILED','font','getConfig','useCallback','COMPLETION_FINISHED','DOC_RANGE_TYPE','permission.title','@univerjs/engine-formula','#FFF','then','_transformUndoRedoStack','url(#off-line-icon_clip0_910_343)','_handleHeartbeatEvent','stringify','_anchor','evenodd','YUUMI_URL_COL_OUT_OF_RANGE','univerjs-icon\x20univerjs-icon-','forEach','fillRule','_instanceService','isEditing','Injector','useObservable','loadOfflineData','getColorFromTheme','_docSyncEditingCollabCursorService','_unitOnClients','DataLoaderService','_color','PERMISSION_DENIED','currentColor','getCurrentUnitForType','getCoordByCell','Error','collabStatus.syncing','Workbook','_httpService','yellow.400','48rciBxH','session.connection-failed','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_name','UniverIcon','url(#$1','46809aRMcDU','_saveTaskMap','current','YUUMI_NO_CUBOID_FOR_QUESTION','error','addHandlerCallback','DocIMEInputManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getCurrent','handleMoveRange','LICENSE_IMPORT_SIZE_EXCEEDED','_docStateChangeManagerService','_roomMembers$','has','setAlpha','Optional','toStringTag','name','UNRECOGNIZED','set','invokeId','LICENSE_MAX_UNITS_EXCEEDED','data','getSheetBySheetId','UNDEFINED','LOGIN_FAILED','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','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Unknown\x20user','_shapes','toString','_init','univer-flex\x20univer-mr-2\x20univer-text-xl','deepClone','_initCommandExecutedListener','CollaborationStatusDisplay','startColumn','UnitStatus','Failed','merge','UNIVER_SHEET','requireSession','fill','handleDeleteRangeMoveLeft','use','disableLocalCache','className','UniverInstanceType','getUniverSheetInstance','LocaleService','map','string','_logService','toDisposable','createElement','AWAITING','getAncestorScale','_id','createInstance','_backgroundColor','Tools','_removeCollabCursors','1em','uni.network.url-service','WebURLService','getRangePointData','max','_context','SetWorksheetActivateCommand','_handleEvent','_config','_imageIoService','_initDependencies','unit','moveTo','react','focused$','_document','WECHAT_HAS_BEEN_BOUND','actions','call','push','getViewport','http://www.w3.org/2000/svg','getValue','UPDATE_CURSOR','attrs','subUnitId','throttleTime','on-line-icon_clip0_910_349','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','853580OCntKE','collabCursorState$','INotificationService','Tooltip','DocSkeletonManagerService','size','38604KmCgXd','isTransformMutationsWithChangesetSuccess','icon','ITransformService','m1Prime','getRelativeToViewportCoord','toRgbString','WebBrowserSingleActiveUnitService','RemoveRowCommandId','5048MlEKwv','getFocusedUnit','event$','Plugin','roomMembers','_updateURLWithCurrentState','collab-rect-range-','INVITE_CODE_REQUIRED','pluginName','defineProperty','bottom','collabStatus.fetchMiss','fillStyle','OTHER_CLIENTS_EDITING','_render','combineLatest','onLocalMutation','_refreshCollabCursors','getCurrentRevOfUnit','override','debug','sessionStatus$','some','show','_lastPointer','DocStateChangeManagerService','handleDeleteRangeMoveUp','_setupBeforeClosingHandler','_saveCache','collaboration.single-unit.warning','IMessageService','_initEvent','assignAColorForMemberID','popstate','TEXT_RANGE_LAYER_INDEX','_commandService','CollaborationDataLoaderController','RegularPolygon','BehaviorSubject','_hideTimer','_getSessionTicket','setConfig','defIds','text','OnLineIcon','indexOf','measureText','ICommandService','INTERNAL_ERROR','_onCursorDelete','CollaborationSocketService','_revisionService','SheetSkeletonManagerService','random','handleIRemoveCol','ACTIVE_UNIT_EVENT_CHANNEL','getOwnPropertyDescriptor','Rect','UNAUTHENTICATED','UniverCollaborationClientPlugin','includes','BrowserCollaborationSocketService','function','Subject','_getScale','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collab-text-range-','_injector','onRendered','RefRangeService','_disabled','CollaborationSessionService','asObservable','COLORS','OffLineIcon','selection','_removeClearOtherTimer','cursorInfo','INVITE_CODE_ALREADY_BOUND','_cursorShapes','InsertRangeMoveRightCommandId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','registerBeforeClose','jsx','_drawAnchor','APPLY_REVISION_CONFILICT','unitId','location','@univerjs/docs-ui','DocSelectionManagerService','getSheetId','none','SheetsSelectionsService','createSocket','getParam','ThemeService','color','_scheduleHeartbeat','_getAnchorBounding','handleInsertRow','_refRangeService','setShapeProps','searchParams','IUIPartsService','pipe','OFFLINE','backgroundColor','getMemberID','UniverCollaborationClientUIPlugin','cursorInfo$','getCollabEntity$','@univerjs/sheets-ui','m2Prime','path','white','getOwnPropertySymbols','CollaborationUIEventService','_registerDependencies','params','_collaborationController','setUndoRedoMutationParamsCache','forwardRef','roomMembers$','_docClipboardService','collaboration.closeRoom','saveImage','_scene','activeSheet$','_cachedData','_docTransformStateCacheService','Vector2','hovered','clearInterval','DeleteRangeMoveLeftCommandId','transformIMECache','@univerjs/sheets','_hovered','USER_NOT_INVITED_CODE','_initResize','subscribeEvent','_handleHover','imageSourceType','_collabCursorState$','FromArray','onStarting','setParam','startsWith','restore','MOBILE_HAS_BEEN_BOUND','ONLINE','RECT','lineTo','transformMutation','distinctUntilChanged','save','_drawTextRange','svg','@univerjs/network','DeleteRangeMoveUpCommandId','getUnitId','useRef','MessageType','_renderManagerService','transformSelections','_ensureSubject','CHANGESET_REVISION_CONFILICT','runRefRangeMutations','substring','enableLocalCache','ALREADY_EXISTS','_notificationService','_initStatusComponent','_docTransformIMECacheService','saveTaskMap','CollaborationUIEventId','_localStorageService','prototype','HEADER_MENU','CollaborationController','IDocClipboardService','setInterval','...','@univerjs/rpc','findNodePositionByCharIndex','handleInsertCol','transformMutationsWithChangeset','ColorKit','CollaborationEvent','_draw','EffectRefRangId','code','ISnapshotServerService','executeCommand','getActiveSheet','_eventUnsubscribe','Rectangle','docStateChange$','NodePositionConvertToCursor','YUUMI_TABLE_NOT_FOUND_IN_UNIT','round','_configService','_getSheetObject','saveOfflineData','_initEntityListener','_online','Module','transformRemoteChangeset','SetSelectionsOperation','_getMergeRange','assign','addObject','entityInit$','currentSkeleton$','IUniverInstanceService','url(#on-line-icon_clip0_910_349)','USERS_LEAVE','Disposable','Shape','IRenderManagerService','red.300','_memberService','getActiveRange','rgba(255,\x20255,\x20255,\x200.01)','redoState','SOCKET_FAILED_RETRY','_session','_collabSessionService','DisposableCollection','YUUMI_RATE_OVER_LIMIT','selections','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','setTimeout','CollaborationStatus','CommandType','history','all','next','YUUMI_SUBSCRIPTION_NOT_FOUND','disposeUnit','_anchorDot','triggerDblclick','closePath','getCellPositionByOffset','onCommandExecuted','_transformService','BuiltInUIPart','Warning','_sheetSkeletonManagerService','_messageService','onPointerEnter$','_urlService','blue.400','1106232CGxHrH','clipPath','type','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entries','getLocalCacheKey','_startSheetCollabCursor','1339569gAGyoy','green.600','ILogService','registerRefRange','[CollaborationDataLoaderController]','newValue','_initStatusListener','DesktopCollaborationStatusDisplayController','EMAIL_HAS_BEEN_BOUND','width','getRenderById','propertyIsEnumerable','INVALID_INVITE_CODE','_handleJoinEvent','registerRenderModule','_entityInit$','pushState','_scheduleClearOtherTimer','_colorIndex','YUUMI_ALL_TABLES_IS_INVALID','subunit','_docTransformSelectionsService','top','_entities','delete','source','NOT_FOUND','concat','NOT_COLLAB','filter','_beforeCloseService','_send','values','split','switchMap','displayName','setItem','MoveRangeCommandId','replace','_clearOtherTimers','_updateCollabCursors','YUUMI_AI_RUN_FAILED','storage','unshift','_transformHistoryAndStateStack','InsertColCommandId','getTypeOfUnitAdded$','add','endColumn','href','_localeService','APPLY_DUPLICATED','SOCKET_FAILED','getDocRanges','contains','_themeService','_startDocCollabCursor','_status$','_cursorInfo$','getStateCache','_docSkeletonManagerService','from','SNAPSHOT_INVALID_SNAPSHOT','with','getOffsetConfig','unitID','children','off-line-icon_clip0_910_343','DEFAULT_WS_SESSION_TICKET_URL','endRow','addObjects','disposeWithMe','on-line-icon','CONNECTOR_DATA_TOO_LARGE','row','rxjs/operators','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getColor','isTransformMutationFailure','arc','wsSessionTicketUrl','colorChannel1','div','black','_toggleOffline','InsertRangeMoveDownCommandId','_range','HTTPService','runId','idSuffix','takeUntil','_cursor','LOCAL_CACHE_INTERVAL','_onCursorUpdate','_setupSubUnitSync','TOO_MANY_REQUESTS','collaboration-client-ui.config','get','_colorAssignService','INVALID_ARGUMENT','min','_transformPreviousActiveRange','DocCollaborationEntity','post','_collaborationUIEventService','complete','SHEET_VIEWPORT_KEY','session.collaboration-timeout','makeDirty','send','unload','column','_assignedColors','VIEW_MAIN','textRanges','body','replaceState','_unitStatus','APPLY_NON_SEQUENTIAL_REVISION','undoState','height','generateRandomId'];_0x65eb=function(){return _0x44a4ce;};return _0x65eb();}class is extends a[_0x51cf5f(0x188)]{constructor(){const _0x18b3ee=_0x51cf5f;super(),h(this,_0x18b3ee(0x30e),a['generateRandomId']()),h(this,_0x18b3ee(0x240),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x18b3ee(0x2a7),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x18b3ee(0x2f4)]();}[_0x51cf5f(0x277)](){const _0x15802c=_0x51cf5f;super['dispose'](),this[_0x15802c(0x1da)][_0x15802c(0x2ba)]((_0x1ac13c,_0xb70df1)=>this[_0x15802c(0x38b)](_0xb70df1)),this[_0x15802c(0x2a7)]&&window['clearInterval'](this[_0x15802c(0x2a7)]);}[_0x51cf5f(0x27f)](_0x48d2ee){const _0x53de53=_0x51cf5f;return this[_0x53de53(0x154)](_0x48d2ee)[_0x53de53(0x3a7)](d[_0x53de53(0x149)]());}['editingUnit'](_0x45f6c9){const _0x391cbe=_0x51cf5f;this[_0x391cbe(0x240)][_0x391cbe(0x335)]===0x0&&this[_0x391cbe(0x3a0)](),this['_selfUnitIDs'][_0x391cbe(0x1e2)](_0x45f6c9),this[_0x391cbe(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x45f6c9],'isForwarded':!0x1});}[_0x51cf5f(0x19e)](_0xd2b7ef){const _0x4c6b89=_0x51cf5f;this['_selfUnitIDs'][_0x4c6b89(0x1cb)](_0xd2b7ef),this[_0x4c6b89(0x240)][_0x4c6b89(0x335)]===0x0&&this[_0x4c6b89(0x2a7)]&&window[_0x4c6b89(0x134)](this[_0x4c6b89(0x2a7)]);}[_0x51cf5f(0x2f4)](){const _0x2c7e57=_0x51cf5f;this[_0x2c7e57(0x1fa)](a['toDisposable'](d['fromEvent'](window,_0x2c7e57(0x1dd))[_0x2c7e57(0x254)](_0x4ee341=>{const _0x188140=_0x2c7e57;if(_0x4ee341['key']!==Le||!_0x4ee341['newValue'])return;const _0x5bbba2=JSON['parse'](_0x4ee341[_0x188140(0x1b8)]);this[_0x188140(0x31a)](_0x5bbba2);}))),window['addEventListener'](_0x2c7e57(0x221),()=>this[_0x2c7e57(0x1d2)]({'type':0x1,'memberID':this[_0x2c7e57(0x30e)],'unitIDs':Array[_0x2c7e57(0x1f0)](this['_selfUnitIDs'])}));}[_0x51cf5f(0x31a)](_0x5cb10f){const _0x53eee2=_0x51cf5f;switch(_0x5cb10f['type']){case 0x0:this[_0x53eee2(0x1c0)](_0x5cb10f);break;case 0x1:this['_handleLeaveEvent'](_0x5cb10f);break;case 0x2:this[_0x53eee2(0x2b4)](_0x5cb10f);break;}}[_0x51cf5f(0x1c0)](_0x2f18a7){const _0x5ab6d3=_0x51cf5f,{unitIDs:_0x461230,memberID:_0x4a83a1,isForwarded:_0x3d2341}=_0x2f18a7;_0x461230[_0x5ab6d3(0x2ba)](_0x4047db=>{const _0x19a7f8=_0x5ab6d3;if(!_0x3d2341&&this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e2)](_0x4047db)&&this[_0x19a7f8(0x154)](_0x4047db)[_0x19a7f8(0x19c)](u[_0x19a7f8(0x2fa)][_0x19a7f8(0x34c)]),!this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e2)](_0x4047db)||!this[_0x19a7f8(0x2c3)][_0x19a7f8(0x214)](_0x4047db)[_0x19a7f8(0x2e2)](_0x4a83a1)){const _0x51fe6e=this['_unitOnClients']['get'](_0x4047db)||new Set();_0x51fe6e[_0x19a7f8(0x1e2)](_0x4a83a1),this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e8)](_0x4047db,_0x51fe6e),this[_0x19a7f8(0x1c4)](_0x4a83a1);}}),_0x3d2341||this[_0x5ab6d3(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5ab6d3(0x240)]],'isForwarded':!0x0});}[_0x51cf5f(0x1c4)](_0x3d735c){const _0x18fa86=_0x51cf5f;this[_0x18fa86(0x38b)](_0x3d735c);const _0x343266=window[_0x18fa86(0x197)](()=>{const _0x5397af=_0x18fa86;this[_0x5397af(0x2c3)][_0x5397af(0x2ba)](_0x304bcf=>{const _0x68fac3=_0x5397af;_0x304bcf[_0x68fac3(0x1cb)](_0x3d735c);});},Me*0x2);this['_clearOtherTimers'][_0x18fa86(0x2e8)](_0x3d735c,_0x343266);}[_0x51cf5f(0x38b)](_0x5c369b){const _0x18978c=_0x51cf5f;if(this[_0x18978c(0x1da)][_0x18978c(0x2e2)](_0x5c369b)){const _0x38d323=this[_0x18978c(0x1da)]['get'](_0x5c369b);_0x38d323&&window[_0x18978c(0x259)](_0x38d323),this[_0x18978c(0x1da)][_0x18978c(0x2e8)](_0x5c369b,null);}}[_0x51cf5f(0x299)](_0x151fea){const _0x5023e5=_0x51cf5f,{memberID:_0x4d562a,unitIDs:_0x26928b}=_0x151fea;_0x26928b[_0x5023e5(0x2ba)](_0x255fda=>{const _0x3af136=_0x5023e5;var _0x198475;const _0x32a91a=this[_0x3af136(0x2c3)][_0x3af136(0x214)](_0x255fda);_0x32a91a&&(_0x32a91a[_0x3af136(0x1cb)](_0x4d562a),(_0x198475=this[_0x3af136(0x154)](_0x255fda))==null||_0x198475[_0x3af136(0x19c)](_0x32a91a['size']===0x0?u[_0x3af136(0x2fa)][_0x3af136(0x269)]:u[_0x3af136(0x2fa)][_0x3af136(0x34c)]));}),this[_0x5023e5(0x38b)](_0x4d562a);}[_0x51cf5f(0x2b4)](_0x33abd0){const _0xc43a89=_0x51cf5f;this['_scheduleClearOtherTimer'](_0x33abd0[_0xc43a89(0x294)]);}['_send'](_0x3be96e){const _0x102112=_0x51cf5f;localStorage[_0x102112(0x1d7)](Le,JSON[_0x102112(0x2b5)](_0x3be96e));}[_0x51cf5f(0x3a0)](){const _0x198ab0=_0x51cf5f;this[_0x198ab0(0x2a7)]=window[_0x198ab0(0x164)](()=>{const _0x2ce30e=_0x198ab0;this[_0x2ce30e(0x1d2)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x478062){const _0x4cb1a2=_0x51cf5f;return this['_unitStatus']['has'](_0x478062)||this[_0x4cb1a2(0x228)][_0x4cb1a2(0x2e8)](_0x478062,new d['BehaviorSubject'](u[_0x4cb1a2(0x2fa)][_0x4cb1a2(0x269)])),this[_0x4cb1a2(0x228)][_0x4cb1a2(0x214)](_0x478062);}}var Be=(_0x1f5a85=>(_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2ed)]=0x0]=_0x51cf5f(0x2ed),_0x1f5a85[_0x1f5a85['OK']=0x1]='OK',_0x1f5a85[_0x1f5a85['INTERNAL_ERROR']=0x2]=_0x51cf5f(0x36f),_0x1f5a85[_0x1f5a85['PERMISSION_DENIED']=0x3]=_0x51cf5f(0x2c6),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1cd)]=0x4]='NOT_FOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x379)]=0x5]=_0x51cf5f(0x379),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x159)]=0x6]=_0x51cf5f(0x159),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x216)]=0x7]=_0x51cf5f(0x216),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x212)]=0x8]=_0x51cf5f(0x212),_0x1f5a85[_0x1f5a85['COMPLETION_FINISHED']=0x9]=_0x51cf5f(0x2ac),_0x1f5a85[_0x1f5a85['LOGIN_FAILED']=0xa]=_0x51cf5f(0x2ee),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x155)]=0x1389]=_0x51cf5f(0x155),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1f1)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x231)]=0x1772]=_0x51cf5f(0x231),_0x1f5a85[_0x1f5a85['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x51cf5f(0x235),_0x1f5a85[_0x1f5a85['APPLY_REJECT']=0x1b59]=_0x51cf5f(0x283),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x229)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x394)]=0x1b5b]=_0x51cf5f(0x394),_0x1f5a85[_0x1f5a85['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1e6)]=0x1b5d]=_0x51cf5f(0x1e6),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1fc)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2ea)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1f5a85[_0x1f5a85['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x51cf5f(0x2d1),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2df)]=0x232b]=_0x51cf5f(0x2df),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x27d)]=0x232c]=_0x51cf5f(0x27d),_0x1f5a85[_0x1f5a85['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x24b)]=0x2711]=_0x51cf5f(0x24b),_0x1f5a85[_0x1f5a85['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x51cf5f(0x2b8),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x194)]=0x2713]=_0x51cf5f(0x194),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x19d)]=0x2714]=_0x51cf5f(0x19d),_0x1f5a85[_0x1f5a85['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x51cf5f(0x2d8),_0x1f5a85[_0x1f5a85['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1f5a85[_0x1f5a85['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x51cf5f(0x176),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1c6)]=0x271d]=_0x51cf5f(0x1c6),_0x1f5a85[_0x1f5a85['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x51cf5f(0x32f),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1dc)]=0x271f]=_0x51cf5f(0x1dc),_0x1f5a85[_0x1f5a85['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2a3)]=0x2ee1]=_0x51cf5f(0x2a3),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1bf)]=0x2ee2]=_0x51cf5f(0x1bf),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x346)]=0x2ee3]=_0x51cf5f(0x346),_0x1f5a85[_0x1f5a85['USER_NOT_INVITED_CODE']=0x2ee4]=_0x51cf5f(0x139),_0x1f5a85[_0x1f5a85['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x51cf5f(0x38d),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x323)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x144)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1bb)]=0x32cb]=_0x51cf5f(0x1bb),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2e7)]=-0x1]=_0x51cf5f(0x2e7),_0x1f5a85))(Be||{}),ns=Object[_0x51cf5f(0x377)],rs=(_0xb0af4f,_0x11dd70,_0x5c315a,_0x52f3b8)=>{for(var _0x23af05=_0x52f3b8>0x1?void 0x0:_0x52f3b8?ns(_0x11dd70,_0x5c315a):_0x11dd70,_0x1a9b51=_0xb0af4f['length']-0x1,_0x2ce73e;_0x1a9b51>=0x0;_0x1a9b51--)(_0x2ce73e=_0xb0af4f[_0x1a9b51])&&(_0x23af05=_0x2ce73e(_0x23af05)||_0x23af05);return _0x23af05;},ue=(_0x5e37eb,_0x732b01)=>(_0x41e585,_0x10490f)=>_0x732b01(_0x41e585,_0x10490f,_0x5e37eb);exports['RemoteUniscriptService']=class extends a[_0x51cf5f(0x188)]{constructor(_0x5e22e9,_0x30c350,_0x2a71db){const _0x146c20=_0x51cf5f;super(),this[_0x146c20(0x2bc)]=_0x5e22e9,this[_0x146c20(0x2cd)]=_0x30c350,this[_0x146c20(0x178)]=_0x2a71db;}async['runOnServer'](_0x359a60,_0x2738b9,_0x2bed64,..._0x20a722){const _0x3ce64d=_0x51cf5f;var _0x51aa08,_0x2bae18,_0xb8a74b,_0x3ceab7;const _0x8a1507=this[_0x3ce64d(0x2bc)][_0x3ce64d(0x340)]();if(!_0x8a1507)throw new Error(_0x3ce64d(0x25f));const _0x289b86=((_0x51aa08=this[_0x3ce64d(0x178)][_0x3ce64d(0x2aa)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x51aa08:u[_0x3ce64d(0x2a5)])+'/'+_0x359a60+_0x3ce64d(0x272)+_0x2738b9,_0x461b42=new URL(window[_0x3ce64d(0x396)][_0x3ce64d(0x1e4)]),_0x4774fc={'scriptId':_0x359a60,'runId':(_0x2bae18=_0x461b42[_0x3ce64d(0x3a5)][_0x3ce64d(0x214)]('runId'))!=null?_0x2bae18:'','function':_0x2738b9,'unitId':_0x8a1507[_0x3ce64d(0x14f)](),'argsOfFunction':JSON['stringify'](_0x20a722),'invokeId':(_0xb8a74b=_0x2bed64[_0x3ce64d(0x2e9)])!=null?_0xb8a74b:'','executionId':(_0x3ceab7=_0x2bed64[_0x3ce64d(0x261)])!=null?_0x3ceab7:''};try{const _0xf3322e=await this[_0x3ce64d(0x2cd)][_0x3ce64d(0x21a)](_0x289b86,{'body':_0x4774fc});return _0xf3322e['body'][_0x3ce64d(0x2d9)]&&_0xf3322e[_0x3ce64d(0x226)][_0x3ce64d(0x2d9)][_0x3ce64d(0x16e)]!==Be['OK']?_0x3ce64d(0x2fb):_0xf3322e[_0x3ce64d(0x226)]['result'];}catch{return _0x3ce64d(0x2fb);}}},exports[_0x51cf5f(0x241)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x51cf5f(0x249)](G['HTTPService'])),ue(0x2,a[_0x51cf5f(0x293)])],exports['RemoteUniscriptService']),exports[_0x51cf5f(0x2f8)]=xe,exports['IURLService']=be,exports['SheetCollabCursorShape']=Pe,exports[_0x51cf5f(0x33d)]=is,exports[_0x51cf5f(0x315)]=je;
|
|
1
|
+
'use strict';const _0x434e7f=_0x245a;(function(_0x5d2d11,_0x442cbf){const _0x2f4f0f=_0x245a,_0xc2d1bf=_0x5d2d11();while(!![]){try{const _0x54333d=-parseInt(_0x2f4f0f(0x1d8))/0x1*(-parseInt(_0x2f4f0f(0x105))/0x2)+-parseInt(_0x2f4f0f(0x195))/0x3*(-parseInt(_0x2f4f0f(0x259))/0x4)+-parseInt(_0x2f4f0f(0x17c))/0x5*(parseInt(_0x2f4f0f(0x162))/0x6)+parseInt(_0x2f4f0f(0x1a8))/0x7+parseInt(_0x2f4f0f(0x239))/0x8*(parseInt(_0x2f4f0f(0x308))/0x9)+-parseInt(_0x2f4f0f(0x288))/0xa*(-parseInt(_0x2f4f0f(0x1ac))/0xb)+-parseInt(_0x2f4f0f(0xda))/0xc;if(_0x54333d===_0x442cbf)break;else _0xc2d1bf['push'](_0xc2d1bf['shift']());}catch(_0x47f109){_0xc2d1bf['push'](_0xc2d1bf['shift']());}}}(_0x3399,0x697cd));var Ve=Object[_0x434e7f(0x2da)],Xe=(_0x15989b,_0xfc44cb,_0x593918)=>_0xfc44cb in _0x15989b?Ve(_0x15989b,_0xfc44cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x593918}):_0x15989b[_0xfc44cb]=_0x593918,h=(_0x2ff5ae,_0x846fb6,_0x346607)=>Xe(_0x2ff5ae,typeof _0x846fb6!=_0x434e7f(0x22f)?_0x846fb6+'':_0x846fb6,_0x346607);Object[_0x434e7f(0x2da)](exports,Symbol['toStringTag'],{'value':_0x434e7f(0x1ad)});function _0x245a(_0x2b1829,_0x217eeb){const _0x339914=_0x3399();return _0x245a=function(_0x245a55,_0xf7e9b7){_0x245a55=_0x245a55-0x8b;let _0x8caf39=_0x339914[_0x245a55];return _0x8caf39;},_0x245a(_0x2b1829,_0x217eeb);}const u=require(_0x434e7f(0x1cc)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require(_0x434e7f(0x194)),b=require(_0x434e7f(0x219)),Ge=require(_0x434e7f(0x210)),d=require('rxjs'),Y=require('@univerjs/docs'),m=require(_0x434e7f(0x242)),Ee=require(_0x434e7f(0x2fb)),g=require(_0x434e7f(0x182)),$=require(_0x434e7f(0x1d7)),X=require(_0x434e7f(0x286)),w=require('react/jsx-runtime'),T=require('@univerjs/ui'),D=require('@univerjs/design'),M=require(_0x434e7f(0xfd)),Ke=require(_0x434e7f(0x28e));var qe=Object[_0x434e7f(0x23b)],ze=(_0x2e3f54,_0x471714,_0x51568e,_0x1461e0)=>{const _0x547ade=_0x434e7f;for(var _0x153bfd=_0x1461e0>0x1?void 0x0:_0x1461e0?qe(_0x471714,_0x51568e):_0x471714,_0x361887=_0x2e3f54[_0x547ade(0x2e5)]-0x1,_0x20edca;_0x361887>=0x0;_0x361887--)(_0x20edca=_0x2e3f54[_0x361887])&&(_0x153bfd=_0x20edca(_0x153bfd)||_0x153bfd);return _0x153bfd;},Te=(_0x3bae8a,_0x26e579)=>(_0x4c58b1,_0x279844)=>_0x26e579(_0x4c58b1,_0x279844,_0x3bae8a);let de=class extends a[_0x434e7f(0x273)]{constructor(_0x2e826c,_0x58161b){const _0x495382=_0x434e7f;super(),this[_0x495382(0xf5)]=_0x2e826c,this['_imageIoService']=_0x58161b,this[_0x495382(0x196)]();}[_0x434e7f(0x196)](){const _0x2bf458=_0x434e7f,_0x1a2f40=this;this[_0x2bf458(0x1af)](this['_docClipboardService'][_0x2bf458(0x2a4)]({'onBeforePasteImage':async _0x38a4bf=>{const _0x5f0824=_0x2bf458,_0xc8b75=await _0x1a2f40[_0x5f0824(0x25c)]['saveImage'](_0x38a4bf);return _0xc8b75?{'source':_0xc8b75[_0x5f0824(0x238)],'imageSourceType':_0xc8b75[_0x5f0824(0x204)]}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge[_0x434e7f(0x128)])],de);const Oe=[_0x434e7f(0x215),_0x434e7f(0x15c),_0x434e7f(0x28a),_0x434e7f(0x2ce),_0x434e7f(0x234),'yellow.400'];class me extends a[_0x434e7f(0x19b)]{constructor(){const _0x41e586=_0x434e7f;super(...arguments),h(this,_0x41e586(0x246),new Map()),h(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x237144){const _0x2d266a=_0x434e7f;if(this[_0x2d266a(0x246)][_0x2d266a(0x1c4)](_0x237144))return this['_assignedColors']['get'](_0x237144);const _0x413d12=Oe[this[_0x2d266a(0x1b3)]];return this['_colorIndex']=(this[_0x2d266a(0x1b3)]+0x1)%Oe[_0x2d266a(0x2e5)],this[_0x2d266a(0x246)][_0x2d266a(0x306)](_0x237144,_0x413d12),_0x413d12;}}function we(_0x58cc3f){const _0x234863=_0x434e7f;let _0x5d6b48='';for(const _0x557ffb of _0x58cc3f){const {startOffset:_0x2a3112,endOffset:_0x41357d,isActive:_0x54e73b,rangeType:_0x5e5626,segmentId:_0x373e54,segmentPage:_0x170a85}=_0x557ffb;_0x5d6b48[_0x234863(0x2e5)]&&(_0x5d6b48+=','),_0x5d6b48+=_0x2a3112+':'+_0x41357d+':'+(_0x54e73b?'1':'0')+':'+_0x5e5626+':'+_0x373e54+':'+_0x170a85;}return _0x5d6b48;}function Je(_0x358f8c){const _0x4b0339=_0x434e7f,_0x1c851d=_0x358f8c['split'](','),_0xcb3132=[];for(const _0x4bd9cd of _0x1c851d){const [_0x44eb19,_0x5e40f9,_0xe42807,_0x5336ef,_0x2a560e,_0x3fdf7b]=_0x4bd9cd[_0x4b0339(0xfe)](':');_0xcb3132['push']({'startOffset':Number(_0x44eb19),'endOffset':Number(_0x5e40f9),'collapsed':_0x44eb19===_0x5e40f9,'isActive':_0xe42807==='1','rangeType':_0x5336ef===a[_0x4b0339(0x1c5)][_0x4b0339(0x267)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x4b0339(0x1c5)][_0x4b0339(0x209)],'segmentId':typeof _0x2a560e=='string'?String(_0x2a560e):'','segmentPage':Number(_0x3fdf7b!=null?_0x3fdf7b:-0x1)});}return _0xcb3132[_0x4b0339(0x2af)](_0x12c617=>_0x12c617[_0x4b0339(0x269)])||(_0xcb3132[0x0][_0x4b0339(0x269)]=!0x0),_0xcb3132;}class Ce extends a[_0x434e7f(0x273)]{constructor(){const _0x3b25a3=_0x434e7f;super(...arguments),h(this,'_collabCursorState$',new d[(_0x3b25a3(0x2fa))](null)),h(this,_0x3b25a3(0x1f9),this[_0x3b25a3(0xb8)][_0x3b25a3(0x1b1)]());}['syncEditingCollabCursor'](_0xaa6381){const _0xa9109e=_0x434e7f,{unitID:_0x359a68,memberID:_0x478e43,textRanges:_0x429a18}=_0xaa6381,_0x28249e=we(_0x429a18);if(_0x28249e==='')return;const _0x2f91eb={'unitID':_0x359a68,'memberID':_0x478e43,'selection':_0x28249e};this[_0xa9109e(0xb8)]['next'](_0x2f91eb);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0xf67a8d,_0x3c5fe5,_0x48878e,_0x50f4de)=>{const _0x160e03=_0x434e7f;for(var _0x443b85=_0x50f4de>0x1?void 0x0:_0x50f4de?Ze(_0x3c5fe5,_0x48878e):_0x3c5fe5,_0x155e72=_0xf67a8d[_0x160e03(0x2e5)]-0x1,_0x546ea1;_0x155e72>=0x0;_0x155e72--)(_0x546ea1=_0xf67a8d[_0x155e72])&&(_0x443b85=_0x546ea1(_0x443b85)||_0x443b85);return _0x443b85;},L=(_0x358ae0,_0x1ba9c3)=>(_0x36cb03,_0x114a89)=>_0x1ba9c3(_0x36cb03,_0x114a89,_0x358ae0);const et=0x12c,tt=0x64;let fe=class extends a[_0x434e7f(0x273)]{constructor(_0x3ab471,_0x188c19,_0x9a419,_0x57bed5,_0x53a62d,_0x1b033e,_0x4a36b8,_0x1613c0,_0x5b41ef){const _0x11992c=_0x434e7f;super(),h(this,_0x11992c(0x2d6),!0x1),h(this,_0x11992c(0x196),!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,_0x11992c(0x98),this[_0x11992c(0x104)][_0x11992c(0x1b1)]()),h(this,_0x11992c(0x218),new d['BehaviorSubject']([])),h(this,_0x11992c(0xc8),this[_0x11992c(0x218)]['pipe'](d[_0x11992c(0x10e)](et))),h(this,'_updateLocalCursor',a[_0x11992c(0xa4)](_0x42c7a6=>{const _0x1c576c=_0x11992c,_0x261b87={'eventID':m[_0x1c576c(0x309)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1c576c(0x95)],'memberID':this[_0x1c576c(0x193)][_0x1c576c(0xd5)](),'selection':we(_0x42c7a6)}};this[_0x1c576c(0x193)]['send'](_0x261b87,this[_0x1c576c(0x95)]);},tt)),(this[_0x11992c(0x95)]=_0x3ab471,this[_0x11992c(0x193)]=_0x188c19,this[_0x11992c(0xe3)]=_0x9a419,this[_0x11992c(0x250)]=_0x57bed5,this['_memberService']=_0x53a62d,this[_0x11992c(0x277)]=_0x1b033e,this[_0x11992c(0x17e)]=_0x4a36b8,this[_0x11992c(0xdc)]=_0x1613c0,this['_commandService']=_0x5b41ef);}get[_0x434e7f(0x280)](){const _0x27dc6c=_0x434e7f;return this[_0x27dc6c(0x104)]['getValue']();}get['roomMembers'](){const _0x2d3b7d=_0x434e7f;return this[_0x2d3b7d(0x218)][_0x2d3b7d(0x266)]();}[_0x434e7f(0xea)](){const _0x5798bb=_0x434e7f;super[_0x5798bb(0xea)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x5798bb(0x218)][_0x5798bb(0x1f0)]([]),this[_0x5798bb(0x218)][_0x5798bb(0x124)]();}[_0x434e7f(0x304)](){const _0x5d4b69=_0x434e7f;this[_0x5d4b69(0x196)]||(this[_0x5d4b69(0x196)]=!0x0,this[_0x5d4b69(0x193)][_0x5d4b69(0x1e5)][_0x5d4b69(0x15e)](d[_0x5d4b69(0xcc)](this[_0x5d4b69(0xab)]))[_0x5d4b69(0x11c)](_0x2025b5=>{const _0x28f019=_0x5d4b69;_0x2025b5===u['SessionStatus'][_0x28f019(0x1dc)]?this[_0x28f019(0xd0)]():this[_0x28f019(0x187)]();}),this['_session'][_0x5d4b69(0x18f)][_0x5d4b69(0x15e)](d[_0x5d4b69(0xcc)](this[_0x5d4b69(0xab)]))[_0x5d4b69(0x11c)](_0x3f0b90=>{const _0x3025a3=_0x5d4b69,_0x4804b5=_0x3f0b90['eventID'];_0x4804b5===m[_0x3025a3(0x309)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3f0b90),_0x4804b5===m[_0x3025a3(0x309)][_0x3025a3(0x2a3)]&&this[_0x3025a3(0x165)](_0x3f0b90);}),this[_0x5d4b69(0x1af)](this[_0x5d4b69(0x1da)][_0x5d4b69(0x2d8)](_0x19fe1f=>{const _0x12238a=_0x5d4b69,_0x22421e=_0x19fe1f[_0x12238a(0x184)];_0x22421e!=null&&this[_0x12238a(0x2d6)]&&_0x19fe1f['id']===Y[_0x12238a(0x2c8)]['id']&&_0x22421e[_0x12238a(0xf0)]===this[_0x12238a(0x95)]&&_0x22421e[_0x12238a(0x23e)]===!0x1&&_0x22421e[_0x12238a(0x9f)][_0x12238a(0x2e5)]>0x0&&this[_0x12238a(0x164)](_0x22421e[_0x12238a(0x9f)]);})),this['_syncEditingCollabCursorService'][_0x5d4b69(0x1f9)][_0x5d4b69(0x15e)](d['takeUntil'](this[_0x5d4b69(0xab)]))[_0x5d4b69(0x11c)](_0x520aca=>{const _0x5ba0d3=_0x5d4b69;if((_0x520aca==null?void 0x0:_0x520aca[_0x5ba0d3(0x95)])!==this[_0x5ba0d3(0x95)])return;const _0x452aa3={'eventID':m['CollaborationEvent'][_0x5ba0d3(0x1bd)],'data':_0x520aca};this[_0x5ba0d3(0x233)](_0x452aa3);}),this[_0x5d4b69(0x1af)](this[_0x5d4b69(0x1da)][_0x5d4b69(0x2d8)](_0x13b5d4=>{const _0x406d03=_0x5d4b69;if(_0x13b5d4[_0x406d03(0x184)]==null)return;const _0x92d7e8=_0x13b5d4[_0x406d03(0x184)];if(_0x13b5d4['id']!==Y[_0x406d03(0x22d)]['id']||_0x92d7e8[_0x406d03(0xf0)]!==this[_0x406d03(0x95)])return;const _0x1e5a4c={'id':'doc.mutation.rich-text-editing','params':_0x92d7e8},_0x26d0bc=this[_0x406d03(0x280)];for(const [_0xf80f2b,_0x21e347]of _0x26d0bc){const _0x4d2239={'id':_0x406d03(0x1c9),'params':{'unitId':this[_0x406d03(0x95)],'actions':null,'textRanges':_0x21e347[_0x406d03(0x9f)]}},_0x68012=this['_transformService']['transformMutation'](_0x1e5a4c,_0x4d2239,!0x1);if(m[_0x406d03(0x248)](_0x68012))throw _0x68012['error'];_0x26d0bc['set'](_0xf80f2b,{..._0x21e347,'ranges':_0x68012[_0x406d03(0x102)][_0x406d03(0x184)][_0x406d03(0x22e)]});}queueMicrotask(()=>{const _0x5277e3=_0x406d03;this[_0x5277e3(0x104)][_0x5277e3(0x1f0)](_0x26d0bc);});})));}[_0x434e7f(0x233)](_0x26dc6c){const _0x2aa84f=_0x434e7f;var _0x4802bf,_0x33c53e;const {memberID:_0x5f0327,selection:_0x1b87f5}=_0x26dc6c[_0x2aa84f(0x30f)],_0x55f11c=Je(_0x1b87f5),_0x3e1079=(_0x33c53e=(_0x4802bf=this['_memberService']['getMember'](this['unitID'],_0x5f0327))==null?void 0x0:_0x4802bf[_0x2aa84f(0x2e8)])!=null?_0x33c53e:_0x2aa84f(0x229),_0x1220e2={'color':this[_0x2aa84f(0x250)]['assignAColorForMemberID'](_0x5f0327),'name':_0x3e1079,'ranges':_0x55f11c},_0x1f792f=this['cursorInfo'];_0x1f792f[_0x2aa84f(0x306)](_0x5f0327,_0x1220e2),this['_cursorInfo$']['next'](_0x1f792f);}[_0x434e7f(0x165)](_0x3a446c){const _0x858489=_0x434e7f,{memberID:_0x744290}=_0x3a446c[_0x858489(0x30f)],_0x34701b=this[_0x858489(0x280)];_0x34701b[_0x858489(0x2bc)](_0x744290),this[_0x858489(0x104)][_0x858489(0x1f0)](_0x34701b);}[_0x434e7f(0xd0)](){const _0x38d43b=_0x434e7f;var _0x4a3a08;if(this[_0x38d43b(0x2d6)]=!0x0,((_0x4a3a08=this[_0x38d43b(0xdc)][_0x38d43b(0xc5)]())==null?void 0x0:_0x4a3a08[_0x38d43b(0x170)]())!==this['unitID'])return;const _0x4110d0=this['_injector'][_0x38d43b(0x18a)](Y[_0x38d43b(0xa3)])[_0x38d43b(0x265)]();Array[_0x38d43b(0x12c)](_0x4110d0)&&_0x4110d0[_0x38d43b(0x2e5)]>0x0&&this['_updateLocalCursor'](_0x4110d0);}[_0x434e7f(0x187)](){const _0x44e429=_0x434e7f;this[_0x44e429(0x2d6)]=!0x1;}};fe=Qe([L(0x2,a[_0x434e7f(0x2b6)](a['Injector'])),L(0x3,a[_0x434e7f(0x2b6)](me)),L(0x4,a[_0x434e7f(0x2b6)](u[_0x434e7f(0x9c)])),L(0x5,a[_0x434e7f(0x2b6)](Ce)),L(0x6,m[_0x434e7f(0x231)]),L(0x7,a[_0x434e7f(0x90)]),L(0x8,a[_0x434e7f(0x283)])],fe);var st=Object[_0x434e7f(0x23b)],it=(_0x5f4ffc,_0x59d6e7,_0x2db685,_0x2e9c26)=>{for(var _0x598746=_0x2e9c26>0x1?void 0x0:_0x2e9c26?st(_0x59d6e7,_0x2db685):_0x59d6e7,_0x1b7c8d=_0x5f4ffc['length']-0x1,_0x58d454;_0x1b7c8d>=0x0;_0x1b7c8d--)(_0x58d454=_0x5f4ffc[_0x1b7c8d])&&(_0x598746=_0x58d454(_0x598746)||_0x598746);return _0x598746;},A=(_0x1a7d06,_0x52edae)=>(_0x5bcec3,_0x56f5e4)=>_0x52edae(_0x5bcec3,_0x56f5e4,_0x1a7d06);const nt=0x12c,rt=0x64,ot=()=>{let _0x167edf=[],_0x328894=!0x1;return _0x14d0dc=>{const _0xb9e31=_0x245a;_0x167edf[_0xb9e31(0xe7)](_0x14d0dc),_0x328894||(_0x328894=!0x0,setTimeout(()=>{const _0x14ee4d=_0xb9e31;_0x167edf[_0x14ee4d(0x1fc)](_0x163677=>_0x163677()),_0x167edf=[],_0x328894=!0x1;}));};};let Se=class extends a[_0x434e7f(0x273)]{constructor(_0x25dac3,_0x4cf778,_0x44da2f,_0x2356bf,_0x39f793,_0x43c5d9,_0x13c2f8,_0x1649db){const _0x578710=_0x434e7f;super(),h(this,_0x578710(0x2d6),!0x1),h(this,_0x578710(0x196),!0x1),h(this,_0x578710(0x104),new d['BehaviorSubject'](new Map())),h(this,_0x578710(0x98),this[_0x578710(0x104)][_0x578710(0x1b1)]()),h(this,_0x578710(0x218),new d[(_0x578710(0x2fa))]([])),h(this,_0x578710(0xc8),this[_0x578710(0x218)][_0x578710(0x15e)](d[_0x578710(0x10e)](nt))),h(this,_0x578710(0x164),a['debounce']((_0x2a080e,_0x497876)=>{const _0x4cc88d=_0x578710,_0x22dc89={'eventID':m[_0x4cc88d(0x309)][_0x4cc88d(0x1bd)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x2a080e,_0x497876[_0x4cc88d(0x249)])}};this['_session']['send'](_0x22dc89,this['unitID']);},rt)),(this[_0x578710(0x95)]=_0x25dac3,this[_0x578710(0x193)]=_0x4cf778,this[_0x578710(0xe3)]=_0x44da2f,this['_colorAssignService']=_0x2356bf,this[_0x578710(0x21b)]=_0x39f793,this['_univerInstanceService']=_0x43c5d9,this[_0x578710(0x1da)]=_0x13c2f8,this[_0x578710(0x14e)]=_0x1649db);}get[_0x434e7f(0x280)](){const _0x1f0476=_0x434e7f;return this[_0x1f0476(0x104)][_0x1f0476(0x266)]();}get[_0x434e7f(0x307)](){const _0x4781fd=_0x434e7f;return this[_0x4781fd(0x218)]['getValue']();}['dispose'](){const _0x5dd133=_0x434e7f;super['dispose'](),this[_0x5dd133(0x104)][_0x5dd133(0x1f0)](new Map()),this[_0x5dd133(0x104)][_0x5dd133(0x124)](),this['_roomMembers$'][_0x5dd133(0x1f0)]([]),this[_0x5dd133(0x218)][_0x5dd133(0x124)]();}[_0x434e7f(0x304)](){const _0x20a7d6=_0x434e7f;this[_0x20a7d6(0x196)]||(this[_0x20a7d6(0x196)]=!0x0,this[_0x20a7d6(0x193)]['sessionStatus$'][_0x20a7d6(0x15e)](d[_0x20a7d6(0xcc)](this[_0x20a7d6(0xab)]))[_0x20a7d6(0x11c)](_0x1a2e2d=>{const _0x57bd2b=_0x20a7d6;_0x1a2e2d===u[_0x57bd2b(0x14a)][_0x57bd2b(0x1dc)]?this['_toggleOnline']():this[_0x57bd2b(0x187)]();}),this[_0x20a7d6(0x193)][_0x20a7d6(0x18f)][_0x20a7d6(0x15e)](d['takeUntil'](this[_0x20a7d6(0xab)]))[_0x20a7d6(0x11c)](_0x1d3b3e=>{const _0x2df968=_0x20a7d6,_0x55391a=_0x1d3b3e['eventID'];_0x55391a===m[_0x2df968(0x309)][_0x2df968(0x1bd)]&&this[_0x2df968(0x233)](_0x1d3b3e),_0x55391a===m[_0x2df968(0x309)]['USERS_LEAVE']&&this[_0x2df968(0x165)](_0x1d3b3e);}),this['_onRefRangeChange'](),this[_0x20a7d6(0x1af)](this['_commandService']['onCommandExecuted'](_0x3cfa9d=>{const _0x3ce0cb=_0x20a7d6;if(this[_0x3ce0cb(0x2d6)]&&_0x3cfa9d['id']===g[_0x3ce0cb(0x199)]['id']&&_0x3cfa9d['params'][_0x3ce0cb(0xf0)]===this[_0x3ce0cb(0x95)]){const _0x1ce49b=_0x3cfa9d['params'];this['_updateLocalCursor'](_0x1ce49b[_0x3ce0cb(0x23c)],_0x1ce49b[_0x3ce0cb(0x1f1)][0x0]);}})));}['_onCursorUpdate'](_0x2e151f){const _0x2650bf=_0x434e7f;var _0x5ea06a,_0x5b1e74;const {memberID:_0xdaaafb,selection:_0x2e0862}=_0x2e151f[_0x2650bf(0x30f)],{sheetName:_0x2a8237,range:_0x84a3be}=Ee[_0x2650bf(0x29b)](_0x2e0862),_0x50d6b7={'name':(_0x5b1e74=(_0x5ea06a=this[_0x2650bf(0x21b)][_0x2650bf(0x272)](this[_0x2650bf(0x95)],_0xdaaafb))==null?void 0x0:_0x5ea06a[_0x2650bf(0x2e8)])!=null?_0x5b1e74:_0x2650bf(0x229),'range':this[_0x2650bf(0x154)](_0x2a8237,_0x84a3be),'sheetID':_0x2a8237,'color':this[_0x2650bf(0x250)][_0x2650bf(0x1d0)](_0xdaaafb),'selection':_0x2e0862},_0x52a529=this['cursorInfo'];_0x52a529[_0x2650bf(0x306)](_0xdaaafb,_0x50d6b7),this[_0x2650bf(0x104)][_0x2650bf(0x1f0)](_0x52a529);}[_0x434e7f(0x165)](_0x42d144){const _0x7c8527=_0x434e7f,{memberID:_0x48bb9c}=_0x42d144[_0x7c8527(0x30f)],_0x4ecfb5=this[_0x7c8527(0x280)];_0x4ecfb5[_0x7c8527(0x2bc)](_0x48bb9c),this[_0x7c8527(0x104)][_0x7c8527(0x1f0)](_0x4ecfb5);}[_0x434e7f(0x154)](_0x11fa8b,_0x402ea8){const _0x2771ea=_0x434e7f;var _0x3aa82c,_0x26a1fd;const _0x82d44c=(_0x26a1fd=(_0x3aa82c=this[_0x2771ea(0xdc)][_0x2771ea(0x163)](this[_0x2771ea(0x95)]))==null?void 0x0:_0x3aa82c[_0x2771ea(0x11b)](_0x11fa8b))==null?void 0x0:_0x26a1fd[_0x2771ea(0x25d)]();return(_0x82d44c==null?void 0x0:_0x82d44c[_0x2771ea(0xb9)](_0x2fdf82=>a[_0x2771ea(0x1db)][_0x2771ea(0x2ac)](_0x2fdf82,_0x402ea8)))||_0x402ea8;}[_0x434e7f(0xad)](){const _0x5afd9b=_0x434e7f,_0x439cfc=new a[(_0x5afd9b(0x1c3))](),_0x335161=ot(),_0x40fe3f=()=>{const _0x2f0d36=_0x5afd9b;_0x439cfc[_0x2f0d36(0xea)]();const _0x5396fb=(_0x102c0e,_0x2595f0,_0x4bdd26,_0x25e9da)=>{const _0x16548d=_0x2f0d36;let _0x414229=[];switch(_0x102c0e['id']){case g['EffectRefRangId'][_0x16548d(0x115)]:{_0x414229=g['handleDeleteRangeMoveLeft'](_0x102c0e,_0x25e9da);break;}case g['EffectRefRangId'][_0x16548d(0x2d0)]:{_0x414229=g[_0x16548d(0x119)](_0x102c0e,_0x25e9da);break;}case g[_0x16548d(0x141)][_0x16548d(0x30e)]:{_0x414229=g['handleInsertCol'](_0x102c0e,_0x25e9da);break;}case g['EffectRefRangId'][_0x16548d(0x1ce)]:{_0x414229=g[_0x16548d(0x8d)](_0x102c0e,_0x25e9da);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x414229=g[_0x16548d(0x2ad)](_0x102c0e,_0x25e9da);break;}case g[_0x16548d(0x141)][_0x16548d(0x1e6)]:{_0x414229=g['handleInsertRow'](_0x102c0e,_0x25e9da);break;}case g[_0x16548d(0x141)][_0x16548d(0x2ed)]:{_0x414229=g['handleMoveRange'](_0x102c0e,_0x25e9da);break;}case g[_0x16548d(0x141)][_0x16548d(0x279)]:{_0x414229=g['handleIRemoveCol'](_0x102c0e,_0x25e9da);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x414229=g[_0x16548d(0xa5)](_0x102c0e,_0x25e9da);break;}}const _0x563a12=g[_0x16548d(0x1ae)](_0x414229,_0x25e9da),_0x3852d4=this[_0x16548d(0x280)][_0x16548d(0x18a)](_0x2595f0);if(_0x3852d4&&_0x563a12){const _0x521e93={..._0x3852d4,'range':_0x563a12};this[_0x16548d(0x280)][_0x16548d(0x306)](_0x2595f0,_0x521e93),_0x335161(()=>{const _0x2a2d02=_0x16548d,_0x2a1b7b=this['_refRangeService'][_0x2a2d02(0x9e)](_0x563a12,_0x563a0b=>(_0x2a1b7b[_0x2a2d02(0xea)](),_0x5396fb(_0x563a0b,_0x2595f0,_0x4bdd26,_0x563a12)));_0x439cfc['add'](_0x2a1b7b);});}return{'redos':[],'undos':[]};};this[_0x2f0d36(0x280)]['forEach']((_0x1462e8,_0x183ff6)=>{const _0x55468a=_0x2f0d36,{range:_0x98eb1d,sheetID:_0x5104ef}=_0x1462e8,_0x476160=this[_0x55468a(0x14e)]['registerRefRange'](_0x98eb1d,_0x4c68de=>(_0x476160[_0x55468a(0xea)](),_0x5396fb(_0x4c68de,_0x183ff6,_0x5104ef,_0x98eb1d)));_0x439cfc['add'](_0x476160);});};this['disposeWithMe'](a[_0x5afd9b(0x227)](this[_0x5afd9b(0x104)][_0x5afd9b(0x11c)](()=>{_0x40fe3f();})));}[_0x434e7f(0xd0)](){const _0x4eb03c=_0x434e7f;var _0x3ddf9e,_0x6666b0;if(this[_0x4eb03c(0x2d6)]=!0x0,((_0x3ddf9e=this[_0x4eb03c(0xdc)][_0x4eb03c(0xc5)]())==null?void 0x0:_0x3ddf9e[_0x4eb03c(0x170)]())!==this[_0x4eb03c(0x95)])return;const _0x504766=(_0x6666b0=this['_injector'][_0x4eb03c(0x18a)](g[_0x4eb03c(0x169)])[_0x4eb03c(0xf7)]())==null?void 0x0:_0x6666b0[0x0],_0x478495=this[_0x4eb03c(0xdc)][_0x4eb03c(0x15f)](a[_0x4eb03c(0x245)]['UNIVER_SHEET'])[_0x4eb03c(0xc7)]();_0x504766&&_0x478495&&this['_updateLocalCursor'](_0x478495['getSheetId'](),_0x504766);}[_0x434e7f(0x187)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x434e7f(0x2b6)](a[_0x434e7f(0x117)])),A(0x3,a[_0x434e7f(0x2b6)](me)),A(0x4,a[_0x434e7f(0x2b6)](u[_0x434e7f(0x9c)])),A(0x5,a[_0x434e7f(0x90)]),A(0x6,a[_0x434e7f(0x283)]),A(0x7,a[_0x434e7f(0x2b6)](g[_0x434e7f(0x281)]))],Se);var at=Object[_0x434e7f(0x23b)],ct=(_0x8aa974,_0x151b67,_0x31e68c,_0x2dd7af)=>{for(var _0x5f4667=_0x2dd7af>0x1?void 0x0:_0x2dd7af?at(_0x151b67,_0x31e68c):_0x151b67,_0x9218b7=_0x8aa974['length']-0x1,_0x7bbdb;_0x9218b7>=0x0;_0x9218b7--)(_0x7bbdb=_0x8aa974[_0x9218b7])&&(_0x5f4667=_0x7bbdb(_0x5f4667)||_0x5f4667);return _0x5f4667;},ie=(_0xe35cd,_0x3e7180)=>(_0xc86cbd,_0x2be860)=>_0x3e7180(_0xc86cbd,_0x2be860,_0xe35cd);let x=class extends a[_0x434e7f(0x273)]{constructor(_0x170d64,_0x1b5646,_0x2659e0){const _0x40b096=_0x434e7f;super(),h(this,_0x40b096(0x2e0),new Map()),h(this,_0x40b096(0x305),new d['Subject']()),(this[_0x40b096(0xdc)]=_0x170d64,this[_0x40b096(0xe3)]=_0x1b5646,this[_0x40b096(0x2f5)]=_0x2659e0,this['_init']());}['dispose'](){const _0x188543=_0x434e7f;super['dispose'](),this['_entityInit$'][_0x188543(0x124)](),this['_entities'][_0x188543(0x1fc)](_0x1ab97a=>_0x1ab97a[_0x188543(0xea)]());}[_0x434e7f(0x16c)](_0x4777d6){const _0x5b9058=_0x434e7f;return this['_entities'][_0x5b9058(0x1c4)](_0x4777d6)?this['_entities'][_0x5b9058(0x18a)](_0x4777d6)[_0x5b9058(0x98)]:this[_0x5b9058(0x305)][_0x5b9058(0x15e)](d[_0x5b9058(0xbc)](_0x13a165=>_0x13a165[_0x5b9058(0x95)]===_0x4777d6),d[_0x5b9058(0x2cd)](_0x57fdf2=>_0x57fdf2[_0x5b9058(0x98)]));}[_0x434e7f(0x196)](){const _0xa8a2ea=_0x434e7f;this[_0xa8a2ea(0xdc)][_0xa8a2ea(0x251)](a[_0xa8a2ea(0x245)]['UNIVER_SHEET'])[_0xa8a2ea(0x15e)](d[_0xa8a2ea(0xcc)](this[_0xa8a2ea(0xab)]))[_0xa8a2ea(0x11c)](async _0xeb1e53=>{const _0x18abf1=_0xa8a2ea,_0x13d4a2=_0xeb1e53[_0x18abf1(0x170)](),_0x1a1aae=await this[_0x18abf1(0x16a)](_0x13d4a2);this[_0x18abf1(0x305)][_0x18abf1(0x1f0)](_0x1a1aae),this[_0x18abf1(0x2e0)]['set'](_0x13d4a2,_0x1a1aae);}),this[_0xa8a2ea(0xdc)][_0xa8a2ea(0x251)](a[_0xa8a2ea(0x245)][_0xa8a2ea(0xa2)])['pipe'](d[_0xa8a2ea(0xcc)](this[_0xa8a2ea(0xab)]))[_0xa8a2ea(0x15e)](d['filter'](_0x5a86b2=>!_0x5a86b2[_0xa8a2ea(0x170)]()[_0xa8a2ea(0xbf)]('__')))['subscribe'](async _0x983386=>{const _0x22f73c=_0xa8a2ea,_0x122ff6=_0x983386[_0x22f73c(0x170)](),_0x53c1cc=await this[_0x22f73c(0x282)](_0x122ff6);this['_entityInit$'][_0x22f73c(0x1f0)](_0x53c1cc),this[_0x22f73c(0x2e0)]['set'](_0x122ff6,_0x53c1cc);}),d['merge'](this[_0xa8a2ea(0xdc)][_0xa8a2ea(0x2d3)](a[_0xa8a2ea(0x245)][_0xa8a2ea(0xa2)]),this[_0xa8a2ea(0xdc)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0xa8a2ea(0xc3)]))['pipe'](d[_0xa8a2ea(0xcc)](this[_0xa8a2ea(0xab)]))[_0xa8a2ea(0x11c)](_0x27af0d=>{const _0x3648ca=_0xa8a2ea,_0x731f8c=_0x27af0d['getUnitId'](),_0x5bee9f=this[_0x3648ca(0x2e0)][_0x3648ca(0x18a)](_0x731f8c);_0x5bee9f&&(_0x5bee9f[_0x3648ca(0xea)](),this[_0x3648ca(0x2e0)][_0x3648ca(0x2bc)](_0x731f8c));});}async[_0x434e7f(0x16a)](_0x4ff40d){const _0x4f5c3a=_0x434e7f,_0xddf08f=await this[_0x4f5c3a(0x2f5)][_0x4f5c3a(0x256)](_0x4ff40d),_0x35aa66=this[_0x4f5c3a(0xe3)][_0x4f5c3a(0x278)](Se,_0x4ff40d,_0xddf08f);return _0x35aa66['init'](),_0x35aa66;}async['_startDocCollabCursor'](_0x211e04){const _0x1af8d3=_0x434e7f,_0x4cff2c=await this['_collabSessionService'][_0x1af8d3(0x256)](_0x211e04),_0x2c610a=this[_0x1af8d3(0xe3)][_0x1af8d3(0x278)](fe,_0x211e04,_0x4cff2c);return _0x2c610a[_0x1af8d3(0x304)](),_0x2c610a;}};x=ct([ie(0x0,a[_0x434e7f(0x90)]),ie(0x1,a[_0x434e7f(0x2b6)](a[_0x434e7f(0x117)])),ie(0x2,a[_0x434e7f(0x2b6)](u[_0x434e7f(0x1ca)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x45cf80,_0x2410a3){const _0x141cd7=_0x434e7f;let {radius:_0x2e3956,width:_0x5ccbd4,height:_0x3ab93f}=_0x2410a3;_0x2e3956=_0x2e3956!=null?_0x2e3956:0x0,_0x5ccbd4=_0x5ccbd4!=null?_0x5ccbd4:0x1e,_0x3ab93f=_0x3ab93f!=null?_0x3ab93f:0x1e;let _0x3dae41=0x0,_0x517fd5=0x0,_0x5ed7fe=0x0;_0x3dae41=_0x517fd5=_0x5ed7fe=Math[_0x141cd7(0x22c)](_0x2e3956,_0x5ccbd4/0x2,_0x3ab93f/0x2),_0x45cf80['beginPath'](),_0x45cf80[_0x141cd7(0x161)](_0x3dae41,0x0),_0x45cf80[_0x141cd7(0x223)](_0x5ccbd4-_0x517fd5,0x0),_0x45cf80[_0x141cd7(0x23a)](_0x5ccbd4-_0x517fd5,_0x517fd5,_0x517fd5,Math['PI']*0x3/0x2,0x0,!0x1),_0x45cf80[_0x141cd7(0x223)](_0x5ccbd4,_0x3ab93f-_0x5ed7fe),_0x45cf80[_0x141cd7(0x23a)](_0x5ccbd4-_0x5ed7fe,_0x3ab93f-_0x5ed7fe,_0x5ed7fe,0x0,Math['PI']/0x2,!0x1),_0x45cf80[_0x141cd7(0x223)](0x0,_0x3ab93f),_0x45cf80[_0x141cd7(0x223)](0x0,_0x3dae41),_0x45cf80['arc'](_0x3dae41,_0x3dae41,_0x3dae41,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45cf80['closePath'](),_0x2410a3[_0x141cd7(0x8e)]&&(_0x45cf80['save'](),_0x45cf80['fillStyle']=_0x2410a3['fill'],_0x2410a3[_0x141cd7(0x1d9)]==='evenodd'?_0x45cf80['fill'](_0x141cd7(0x111)):_0x45cf80[_0x141cd7(0x8e)](),_0x45cf80[_0x141cd7(0x91)]());}class ee extends p[_0x434e7f(0x1a1)]{constructor(_0x32da47,_0x76b1ac){const _0x45ab00=_0x434e7f;super(_0x32da47,_0x76b1ac),h(this,_0x45ab00(0x167)),h(this,_0x45ab00(0x183)),(this[_0x45ab00(0x167)]=_0x76b1ac==null?void 0x0:_0x76b1ac['color'],this[_0x45ab00(0x183)]=_0x76b1ac==null?void 0x0:_0x76b1ac[_0x45ab00(0x183)]);}static['drawWith'](_0x320810,_0x8ea9b7){const _0x4e012f=_0x434e7f,{text:_0x246dc5,color:_0x3f9a95}=_0x8ea9b7;_0x320810['save'](),_0x320810['font']=_0x4e012f(0xcf);const _0x19c3dd=_0x320810[_0x4e012f(0x2c5)](_0x246dc5)['width'],_0xf1fd7f=Math[_0x4e012f(0x22c)](_0x19c3dd+0x2*ne,Re);_t(_0x320810,{'height':K,'radius':0x4,'width':_0xf1fd7f,'fill':_0x3f9a95}),_0x320810[_0x4e012f(0x127)]=_0x4e012f(0x1c8);const _0x4b45d5=ne,_0xf2529=K-lt,_0x258b8f=Re-0x2*ne;if(_0x19c3dd>_0x258b8f){let _0xb9447b='',_0x4c684a=0x0;for(const _0xdca79 of _0x246dc5){const _0x2387bd=_0x320810[_0x4e012f(0x2c5)](_0xdca79)[_0x4e012f(0x1c0)];if(_0x4c684a+_0x2387bd<=_0x258b8f-_0x320810[_0x4e012f(0x2c5)]('...')[_0x4e012f(0x1c0)])_0xb9447b+=_0xdca79,_0x4c684a+=_0x2387bd;else{_0xb9447b+='...';break;}}_0x320810[_0x4e012f(0x197)](_0xb9447b,_0x4b45d5,_0xf2529);}else _0x320810['fillText'](_0x246dc5,_0x4b45d5,_0xf2529);_0x320810['restore']();}[_0x434e7f(0x1a0)](_0x4d54fe){const _0xf34e05=_0x434e7f;ee[_0xf34e05(0x224)](_0x4d54fe,this);}}const re=_0x434e7f(0x1f3),ht=_0x434e7f(0x294),ut=_0x434e7f(0x263),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x434e7f(0x16e);class De{constructor(_0xc3095e,_0x4e0d51,_0x256d11,_0x53b459){const _0x4afc8d=_0x434e7f;h(this,'_shapes',[]),h(this,_0x4afc8d(0x19d),null),h(this,_0x4afc8d(0xe4),null),h(this,'_anchorDot',null),h(this,_0x4afc8d(0x1ea),null),h(this,_0x4afc8d(0xa0),null),(this[_0x4afc8d(0xf8)]=_0xc3095e,this['_scene']=_0x4e0d51,this[_0x4afc8d(0x24c)]=_0x256d11,this[_0x4afc8d(0x2f1)]=_0x53b459,this[_0x4afc8d(0x103)]());}set[_0x434e7f(0x150)](_0x27f76e){const _0x177526=_0x434e7f;_0x27f76e?(this[_0x177526(0x20b)]&&this['_anchorDot'][_0x177526(0x1ba)](),this[_0x177526(0xe4)]&&this['_textBubble']['show']()):(this['_anchorDot']&&this['_anchorDot'][_0x177526(0x2c9)](),this[_0x177526(0xe4)]&&this['_textBubble'][_0x177526(0x1ba)]());}[_0x434e7f(0xea)](){const _0x103811=_0x434e7f;for(const _0x22d22f of this['_shapes'])_0x22d22f[_0x103811(0xea)]();this[_0x103811(0xe4)]&&this[_0x103811(0xe4)][_0x103811(0xea)](),this[_0x103811(0x20b)]&&this[_0x103811(0x20b)][_0x103811(0xea)](),this[_0x103811(0x19d)]&&this[_0x103811(0x19d)][_0x103811(0xea)](),this['_eventUnsubscribe']&&this[_0x103811(0xa0)]();}[_0x434e7f(0x103)](){const _0x3db3a0=_0x434e7f;var _0x109000;const {_docSkeleton:_0x4434fa,_document:_0x16e73f}=this,{color:_0x4d27f6,name:_0x4bec69,ranges:_0x343715}=this[_0x3db3a0(0xf8)],_0x10eb34=_0x16e73f[_0x3db3a0(0x299)](),{docsLeft:_0x16ff53,docsTop:_0x334e72}=_0x10eb34,_0x3d0088=new b[(_0x3db3a0(0x24e))](_0x10eb34,_0x4434fa);for(const {startOffset:_0x438bd3,endOffset:_0x3e90cf,rangeType:_0x2d7181,segmentId:_0x4060c3,segmentPage:_0x135514,collapsed:_0x1d2f11,isActive:_0x21edd4}of _0x343715){const _0x40e472=_0x4434fa[_0x3db3a0(0x221)](_0x438bd3,!0x0,_0x4060c3,_0x135514);let _0x3b1bfb=_0x4434fa[_0x3db3a0(0x221)](_0x3e90cf,!0x0,_0x4060c3,_0x135514);if(_0x3b1bfb==null&&(_0x3b1bfb=_0x4434fa[_0x3db3a0(0x221)](_0x3e90cf-0x1,!0x1,_0x4060c3,_0x135514)),_0x21edd4){const {contentBoxPointGroup:_0x499fb8}=_0x3d0088[_0x3db3a0(0xd2)](_0x3b1bfb,_0x3b1bfb);if(_0x499fb8[_0x3db3a0(0x2e5)]===0x0)continue;this['_drawAnchor'](_0x4d27f6,_0x499fb8,_0x16ff53,_0x334e72,_0x4bec69),this[_0x3db3a0(0xa0)]=this[_0x3db3a0(0x1c1)]();}if(_0x40e472&&_0x3b1bfb){if(_0x2d7181===a['DOC_RANGE_TYPE'][_0x3db3a0(0x209)]){const _0x2c194c=new b[(_0x3db3a0(0xb6))](_0x10eb34,_0x4434fa),{pointGroup:_0x2a84be}=(_0x109000=_0x2c194c[_0x3db3a0(0xd2)](_0x40e472,_0x3b1bfb))!=null?_0x109000:{};if(_0x2a84be==null||_0x2a84be[_0x3db3a0(0x2e5)]===0x0)continue;this[_0x3db3a0(0x114)](_0x4d27f6,_0x2a84be,_0x16ff53,_0x334e72);}else{if(!_0x1d2f11){const {borderBoxPointGroup:_0x179ab6}=_0x3d0088[_0x3db3a0(0xd2)](_0x40e472,_0x3b1bfb);if(_0x179ab6[_0x3db3a0(0x2e5)]===0x0)continue;this[_0x3db3a0(0xc4)](_0x4d27f6,_0x179ab6,_0x16ff53,_0x334e72);}}}}}[_0x434e7f(0x29e)](_0xa7cabe,_0x157f2a,_0x13ecb0,_0x4b4a06,_0x4a11f7){const _0x1f94e1=_0x434e7f,_0x2a0e45=this['_getAnchorBounding'](_0x157f2a),{left:_0x351c38,top:_0x209643,height:_0xa988fe}=_0x2a0e45,_0x1bf114=this[_0x1f94e1(0x21c)](),_0x4f741e=ft/_0x1bf114,_0x22fe86=new p[(_0x1f94e1(0x205))](re+a[_0x1f94e1(0x2d9)][_0x1f94e1(0x140)](k),{'left':_0x351c38+_0x13ecb0-_0x4f741e,'top':_0x209643+_0x4b4a06,'height':_0xa988fe,'width':dt,'fill':_0xa7cabe||p[_0x1f94e1(0x29f)](a[_0x1f94e1(0x2d4)][_0x1f94e1(0x21d)],0x0),'strokeWidth':_0x4f741e,'stroke':St,'evented':!0x0});this[_0x1f94e1(0x19d)]=_0x22fe86,this[_0x1f94e1(0x2b3)][_0x1f94e1(0x11f)](_0x22fe86,b['TEXT_RANGE_LAYER_INDEX']);const _0x5387e7=new p[(_0x1f94e1(0x205))](re+a[_0x1f94e1(0x2d9)][_0x1f94e1(0x140)](k),{'left':_0x351c38+_0x13ecb0-_0x4f741e,'top':_0x209643+_0x4b4a06-oe/0x2,'height':oe,'width':oe,'fill':_0xa7cabe||p['getColor'](a[_0x1f94e1(0x2d4)][_0x1f94e1(0x21d)],0x0),'strokeWidth':0x0,'stroke':_0xa7cabe||p[_0x1f94e1(0x29f)](a[_0x1f94e1(0x2d4)][_0x1f94e1(0x21d)],0x0),'evented':!0x1});this[_0x1f94e1(0x20b)]=_0x5387e7,this[_0x1f94e1(0x2b3)][_0x1f94e1(0x11f)](_0x5387e7,b['TEXT_RANGE_LAYER_INDEX']);const _0x30a125=new ee(re+a['Tools']['generateRandomId'](k),{'left':_0x351c38+_0x13ecb0-_0x4f741e,'top':_0x209643+_0x4b4a06-K,'text':_0x4a11f7,'color':_0xa7cabe});this[_0x1f94e1(0xe4)]=_0x30a125,this[_0x1f94e1(0x2b3)][_0x1f94e1(0x11f)](_0x30a125,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x434e7f(0x1c1)](){const _0x3c455f=_0x434e7f,_0x55eac3=this[_0x3c455f(0x19d)]['onPointerEnter$'][_0x3c455f(0x1bf)](()=>{this['_hover']=!0x0;}),_0x571984=this[_0x3c455f(0x19d)][_0x3c455f(0x200)][_0x3c455f(0x1bf)](()=>{const _0x240cc7=_0x3c455f;this[_0x240cc7(0x1ea)]&&clearTimeout(this[_0x240cc7(0x1ea)]),this['_hideTimer']=setTimeout(()=>{const _0xec1d7f=_0x240cc7;this[_0xec1d7f(0x150)]=!0x1;},0x7d0);});return()=>{const _0x2101e6=_0x3c455f;_0x55eac3[_0x2101e6(0x13c)](),_0x571984[_0x2101e6(0x13c)]();};}[_0x434e7f(0xc4)](_0x4320c5,_0x14fc77,_0x1aca2c,_0x5af031){const _0x37cfe2=_0x434e7f,_0x547cbd=new a[(_0x37cfe2(0x2b5))](_0x4320c5)[_0x37cfe2(0x2aa)](0.2)[_0x37cfe2(0xaa)](),_0x34c8f9=new p[(_0x37cfe2(0x1bc))](ht+a[_0x37cfe2(0x2d9)]['generateRandomId'](k),{'pointsGroup':_0x14fc77,'fill':_0x547cbd||p[_0x37cfe2(0x29f)](a[_0x37cfe2(0x2d4)][_0x37cfe2(0x21d)],0.2),'left':_0x1aca2c,'top':_0x5af031,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x34c8f9),this[_0x37cfe2(0x2b3)]['addObject'](_0x34c8f9,b[_0x37cfe2(0x157)]);}[_0x434e7f(0x114)](_0x3edd67,_0x16c3c1,_0x59078f,_0x31ebc4){const _0x203551=_0x434e7f,_0x122209=new a['ColorKit'](_0x3edd67)[_0x203551(0x2aa)](0.2)[_0x203551(0xaa)](),_0x3596d5=new p['RegularPolygon'](ut+a['Tools'][_0x203551(0x140)](k),{'pointsGroup':_0x16c3c1,'fill':_0x122209||p['getColor'](a[_0x203551(0x2d4)]['black'],0.2),'left':_0x59078f,'top':_0x31ebc4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x203551(0x22a)]['push'](_0x3596d5),this[_0x203551(0x2b3)][_0x203551(0x11f)](_0x3596d5,b[_0x203551(0x157)]);}[_0x434e7f(0x8c)](_0x223c28){const _0x1d55e1=_0x223c28[0x0],_0x2fe902=_0x1d55e1[0x0],_0x1fdfd0=_0x1d55e1[0x2],{x:_0x49c336,y:_0x588651}=_0x2fe902,{x:_0x3b438e,y:_0x29554a}=_0x1fdfd0;return{'left':_0x49c336,'top':_0x588651,'width':_0x3b438e-_0x49c336,'height':_0x29554a-_0x588651};}[_0x434e7f(0x21c)](){const _0x5c6e06=_0x434e7f,{scaleX:_0x1b4700,scaleY:_0x18644d}=this[_0x5c6e06(0x2b3)]['getAncestorScale']();return Math[_0x5c6e06(0x2f7)](_0x1b4700,_0x18644d);}}var It=Object[_0x434e7f(0x23b)],vt=(_0x1ff880,_0x3d4d10,_0x5924e0,_0x3b032d)=>{const _0x23548e=_0x434e7f;for(var _0x296647=_0x3b032d>0x1?void 0x0:_0x3b032d?It(_0x3d4d10,_0x5924e0):_0x3d4d10,_0x2a5836=_0x1ff880[_0x23548e(0x2e5)]-0x1,_0x5edfc3;_0x2a5836>=0x0;_0x2a5836--)(_0x5edfc3=_0x1ff880[_0x2a5836])&&(_0x296647=_0x5edfc3(_0x296647)||_0x296647);return _0x296647;},W=(_0x5b9d9e,_0x1c4587)=>(_0x3e1405,_0x2198ba)=>_0x1c4587(_0x3e1405,_0x2198ba,_0x5b9d9e);let Ie=class extends a['RxDisposable']{constructor(_0x2d9690,_0x24ad7c,_0x40cafd,_0xac6b8e,_0x5f0afb){const _0x153d93=_0x434e7f;super(),h(this,_0x153d93(0xac),[]),h(this,_0x153d93(0x310),[]),(this[_0x153d93(0x28b)]=_0x2d9690,this[_0x153d93(0xbe)]=_0x24ad7c,this['_collabCursorController']=_0x40cafd,this[_0x153d93(0x1da)]=_0xac6b8e,this['_themeService']=_0x5f0afb,this[_0x153d93(0x196)]());}[_0x434e7f(0x196)](){const _0x4b241c=_0x434e7f,_0x1892a6=this[_0x4b241c(0x28b)]['unitId'],_0x195bc9=this[_0x4b241c(0xbe)];this['disposeWithMe'](d[_0x4b241c(0x100)]([this[_0x4b241c(0xf3)][_0x4b241c(0x16c)](_0x1892a6),this[_0x4b241c(0x300)]['currentTheme$']])[_0x4b241c(0x15e)]($[_0x4b241c(0x2b7)](([_0x446bcf,_0x418b8f])=>({'skeleton':_0x195bc9[_0x4b241c(0x19c)](),'cursors':[..._0x446bcf[_0x4b241c(0x10b)]()][_0x4b241c(0x26e)](_0x58e7f2=>({..._0x58e7f2,'color':this[_0x4b241c(0x300)]['getColorFromTheme'](_0x58e7f2['color'])}))})))['subscribe'](_0x3b521f=>{const _0x4b645b=_0x4b241c;if(this[_0x4b645b(0xd8)](),_0x3b521f){const {skeleton:_0x3d3021,cursors:_0x56c4a3}=_0x3b521f;this[_0x4b645b(0x2be)](_0x3d3021,_0x56c4a3);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x434e7f(0x2be)](_0x6a7cdf,_0x12659e){const _0x5680e9=_0x434e7f,{scene:_0x180a51,mainComponent:_0x58f43c}=this[_0x5680e9(0x28b)],_0x43e31a=_0x12659e[_0x5680e9(0x2b7)](_0x2269ad=>new De(_0x2269ad,_0x180a51,_0x6a7cdf,_0x58f43c));this[_0x5680e9(0xac)]=_0x43e31a,this[_0x5680e9(0x310)]=_0x12659e;}[_0x434e7f(0xf2)](){const _0x5d99de=_0x434e7f;this[_0x5d99de(0xd8)]();const {scene:_0x5da948,mainComponent:_0x4898fd}=this[_0x5d99de(0x28b)],_0x57bba5=this[_0x5d99de(0xbe)]['getSkeleton'](),_0x3f551d=this[_0x5d99de(0x310)][_0x5d99de(0x2b7)](_0x4777f6=>new De(_0x4777f6,_0x5da948,_0x57bba5,_0x4898fd));this[_0x5d99de(0xac)]=_0x3f551d;}[_0x434e7f(0xd8)](){const _0x42adaf=_0x434e7f;this[_0x42adaf(0xac)][_0x42adaf(0x1fc)](_0xf48d8b=>_0xf48d8b['dispose']()),this[_0x42adaf(0xac)]=[];}['_initCommandExecutedListener'](){const _0x4e4f61=_0x434e7f,_0x2e5362=[b[_0x4e4f61(0x146)]['id']];this[_0x4e4f61(0x1af)](this[_0x4e4f61(0x1da)][_0x4e4f61(0x2d8)](_0x1e567b=>{const _0x39a989=_0x4e4f61;_0x2e5362[_0x39a989(0x206)](_0x1e567b['id'])&&_0x1e567b['params']['unitId']===this[_0x39a989(0x28b)][_0x39a989(0xf0)]&&this[_0x39a989(0xf2)]();}));}[_0x434e7f(0xe6)](){const _0x5ea303=_0x434e7f;this['disposeWithMe'](a[_0x5ea303(0x232)](this[_0x5ea303(0x28b)][_0x5ea303(0xf4)][_0x5ea303(0x190)])[_0x5ea303(0x15e)]($[_0x5ea303(0xbc)](_0x4f1cf5=>_0x4f1cf5['type']===p[_0x5ea303(0x270)]['resize']),$[_0x5ea303(0x130)](0x10))[_0x5ea303(0x11c)](()=>{const _0x86cb63=_0x5ea303;this[_0x86cb63(0xf2)]();}));}};Ie=vt([W(0x1,a[_0x434e7f(0x2b6)](Y[_0x434e7f(0x2e9)])),W(0x2,a[_0x434e7f(0x2b6)](x)),W(0x3,a[_0x434e7f(0x283)]),W(0x4,a[_0x434e7f(0x2b6)](a[_0x434e7f(0xec)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x434e7f(0x1a1)]{constructor(_0x445ea3,_0x186bab){const _0x148bdd=_0x434e7f;super(_0x445ea3,_0x186bab),h(this,_0x148bdd(0x258)),h(this,_0x148bdd(0x152),!0x1),h(this,_0x148bdd(0x1f5)),h(this,_0x148bdd(0xb1),''),h(this,_0x148bdd(0x2f3),'top'),h(this,_0x148bdd(0xaf)),(_0x186bab&&this['setShapeProps'](_0x186bab),this[_0x148bdd(0xa1)][_0x148bdd(0x1bf)](()=>this[_0x148bdd(0x2a9)]({'hovered':!0x0})),this[_0x148bdd(0x200)][_0x148bdd(0x1bf)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x434e7f(0x2a9)](_0x1e8493){const _0x227f99=_0x434e7f;var _0x1154db,_0x5e1030,_0x591f6f,_0x28b19a,_0x5b8af5,_0x4f863f;this[_0x227f99(0x258)]=(_0x1154db=_0x1e8493['color'])!=null?_0x1154db:this[_0x227f99(0x258)],this[_0x227f99(0x152)]=(_0x5e1030=_0x1e8493['hovered'])!=null?_0x5e1030:this[_0x227f99(0x152)],this[_0x227f99(0x1f5)]=(_0x591f6f=_0x1e8493[_0x227f99(0x249)])!=null?_0x591f6f:this[_0x227f99(0x1f5)],this['_name']=(_0x28b19a=_0x1e8493[_0x227f99(0x2e8)])!=null?_0x28b19a:this['_name'],this[_0x227f99(0x2f3)]=(_0x5b8af5=_0x1e8493['labelPosition'])!=null?_0x5b8af5:this[_0x227f99(0x2f3)],this[_0x227f99(0xaf)]=(_0x4f863f=_0x1e8493[_0x227f99(0x2ee)])!=null?_0x4f863f:this[_0x227f99(0xaf)],this[_0x227f99(0x11a)]({'width':_0x1e8493[_0x227f99(0x1c0)],'height':_0x1e8493['height']});}[_0x434e7f(0x25e)](_0x97ef4){const _0x21993b=_0x434e7f,{row:_0x49a74b,column:_0xc806fa}=_0x97ef4;if(_0x49a74b>=this[_0x21993b(0x1f5)][_0x21993b(0x2d2)]&&_0x49a74b<=this[_0x21993b(0x1f5)][_0x21993b(0x247)]&&_0xc806fa>=this[_0x21993b(0x1f5)][_0x21993b(0x1e4)]&&_0xc806fa<=this[_0x21993b(0x1f5)][_0x21993b(0xd3)]){this[_0x21993b(0x2a9)]({'hovered':!0x0});return;}this[_0x21993b(0x2a9)]({'hovered':!0x1});}['triggerDblclick'](_0x5a8cff){return!0x1;}[_0x434e7f(0x1a0)](_0x1c7941){const _0x3b27e8=_0x434e7f;p['Rect']['drawWith'](_0x1c7941,{'width':this[_0x3b27e8(0x1c0)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x3b27e8(0x258)],'evented':!0x1,'fill':this[_0x3b27e8(0xaf)]}),this['_hovered']&&(_0x1c7941['save'](),_0x1c7941[_0x3b27e8(0x1cb)](0x1,0x0,0x0,0x1,this['width'],this[_0x3b27e8(0x2f3)]===_0x3b27e8(0x235)?0x0:-0x14),ee[_0x3b27e8(0x224)](_0x1c7941,{'text':this[_0x3b27e8(0xb1)],'color':this[_0x3b27e8(0x258)]}),_0x1c7941[_0x3b27e8(0x91)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x13ed9,_0xb4a41,_0x4f0e5,_0x83c318)=>{const _0xac14b0=_0x434e7f;for(var _0x30b0bd=_0x83c318>0x1?void 0x0:_0x83c318?Ct(_0xb4a41,_0x4f0e5):_0xb4a41,_0x43d960=_0x13ed9[_0xac14b0(0x2e5)]-0x1,_0x57f614;_0x43d960>=0x0;_0x43d960--)(_0x57f614=_0x13ed9[_0x43d960])&&(_0x30b0bd=_0x57f614(_0x30b0bd)||_0x30b0bd);return _0x30b0bd;},ae=(_0x568b2a,_0x418a01)=>(_0x5a28d8,_0x11385a)=>_0x418a01(_0x5a28d8,_0x11385a,_0x568b2a);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x46b263,_0x309c01,_0x1a3d10,_0x5334b8){const _0x7e9cb4=_0x434e7f;super(),h(this,_0x7e9cb4(0x310),new Set()),h(this,_0x7e9cb4(0xe0),null),(this['_context']=_0x46b263,this[_0x7e9cb4(0x20e)]=_0x309c01,this[_0x7e9cb4(0xf3)]=_0x1a3d10,this[_0x7e9cb4(0x300)]=_0x5334b8,this['_init']());}['_init'](){const _0x2c2760=_0x434e7f;this['_sheetSkeletonManagerService'][_0x2c2760(0x1ee)]['pipe']($[_0x2c2760(0xcc)](this[_0x2c2760(0xab)]),$['switchMap'](_0x5515a4=>{const _0x8ecfd8=_0x2c2760;if(_0x5515a4){const _0x5739dc=_0x5515a4[_0x8ecfd8(0x29a)];return d['combineLatest'](this['_collabCursorController'][_0x8ecfd8(0x16c)](this['_context'][_0x8ecfd8(0xf0)]),this[_0x8ecfd8(0x300)][_0x8ecfd8(0xe9)])['pipe']($[_0x8ecfd8(0x2b7)](([_0x5da8ab,_0x14bcc5])=>{const _0x5d737c=_0x8ecfd8,_0x45f316=new Map();return _0x5da8ab[_0x5d737c(0x1fc)]((_0x100a8f,_0x5c4f85)=>{const _0x55a160=_0x5d737c;if(_0x100a8f[_0x55a160(0x255)]===_0x5739dc){const _0x1c921d={..._0x100a8f};_0x1c921d[_0x55a160(0x167)]=this[_0x55a160(0x300)]['getColorFromTheme'](_0x100a8f[_0x55a160(0x167)]),_0x45f316[_0x55a160(0x306)](_0x5c4f85,_0x1c921d);}}),{'skeleton':_0x5515a4,'cursors':_0x45f316};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2c2760(0x11c)](({skeleton:_0x365407,cursors:_0x4792d7})=>{const _0x3fee8a=_0x2c2760;this[_0x3fee8a(0xd8)](),_0x365407&&this['_updateCollabCursors'](_0x365407,_0x4792d7);}),this[_0x2c2760(0x20e)][_0x2c2760(0x1ee)][_0x2c2760(0x11c)](_0x55dcd3=>{const _0x99816a=_0x2c2760;if(_0x55dcd3==null)return;const {skeleton:_0x497916}=_0x55dcd3,{scene:_0x298381}=this['_context'];_0x298381[_0x99816a(0xd4)][_0x99816a(0x1bf)](a[_0x99816a(0xa4)](_0x335029=>{const _0x2356a7=_0x99816a;var _0x290cb8,_0x208a4c;const {offsetX:_0x41c9eb,offsetY:_0x5a0cc4}=_0x335029,{x:_0x2d55c8,y:_0x2b356d}=_0x298381[_0x2356a7(0x26b)](p['Vector2']['FromArray']([_0x41c9eb,_0x5a0cc4])),{scaleX:_0x2d0d41,scaleY:_0x1bb5c0}=_0x298381[_0x2356a7(0x15d)](),_0xcc8b21=_0x298381[_0x2356a7(0x214)](p[_0x2356a7(0xf6)]['VIEW_MAIN']),_0x237236=_0x298381[_0x2356a7(0x149)](p[_0x2356a7(0x2c2)][_0x2356a7(0xef)]([_0x2d55c8,_0x2b356d]),_0xcc8b21),_0xa95f08=_0x497916['getCellPositionByOffset'](_0x41c9eb,_0x5a0cc4,_0x2d0d41,_0x1bb5c0,_0x237236);((_0x290cb8=this[_0x2356a7(0xe0)])==null?void 0x0:_0x290cb8[_0x2356a7(0x26a)])===_0xa95f08['column']&&((_0x208a4c=this['_lastPointer'])==null?void 0x0:_0x208a4c[_0x2356a7(0x1b2)])===_0xa95f08[_0x2356a7(0x1b2)]||this['_cursors'][_0x2356a7(0x1fc)](_0x213309=>{const _0x385084=_0x2356a7;_0x213309[_0x385084(0x25e)](_0xa95f08);});},0x64));});}[_0x434e7f(0x2be)](_0x4a16a2,_0x438b86){const _0x4fb862=_0x434e7f;var _0x2b2bda;const _0x19d62e=(_0x2b2bda=this[_0x4fb862(0x20e)][_0x4fb862(0x101)]())==null?void 0x0:_0x2b2bda[_0x4fb862(0xca)];if(!_0x19d62e)return;const _0x55389c=this[_0x4fb862(0x106)]();if(!_0x55389c)return;this['_cursors'][_0x4fb862(0x1fc)](_0x1560a6=>{const _0x5875c1=_0x4fb862;_0x1560a6[_0x5875c1(0x1bb)]();});const {scene:_0x26f804}=_0x55389c,_0x3f60b9=Et(Array[_0x4fb862(0x9d)](_0x438b86[_0x4fb862(0x10b)]()))[_0x4fb862(0x2b7)](_0x23206f=>{const _0x4c1ae=_0x4fb862,{color:_0x313ea7,range:_0x305f8a,name:_0x4530c7,selection:_0x524e5a,sheetID:_0x49fcf5}=_0x23206f,{startColumn:_0x32611e,startRow:_0x561b0c,endColumn:_0x3ca015,endRow:_0xda7d42}=_0x305f8a,_0x42b62a=X[_0x4c1ae(0x110)](_0x561b0c,_0x32611e,_0x26f804,_0x19d62e),_0x35c32f=X[_0x4c1ae(0x110)](_0xda7d42,_0x3ca015,_0x26f804,_0x19d62e),{columnHeaderHeightAndMarginTop:_0x38c67e}=_0x19d62e,{startX:_0x3c8cb8,startY:_0x40cb3c}=_0x42b62a,{endX:_0x401bf1,endY:_0x51b245}=_0x35c32f,_0x4fa65c=_0x401bf1-_0x3c8cb8,_0x46525a=_0x51b245-_0x40cb3c,_0x2f856e={'labelPosition':_0x40cb3c-_0x38c67e>=K?_0x4c1ae(0x10d):_0x4c1ae(0x235),'sheetID':_0x49fcf5,'range':_0x305f8a,'color':_0x313ea7,'name':_0x4530c7,'selection':_0x524e5a,'left':_0x3c8cb8,'top':_0x40cb3c,'width':_0x4fa65c,'height':_0x46525a,'evented':!0x1,'zIndex':bt};return new Pe(_0x4530c7,_0x2f856e);});_0x26f804[_0x4fb862(0xc0)](_0x3f60b9,gt),this[_0x4fb862(0x310)]=new Set(_0x3f60b9);}['_removeCollabCursors'](){const _0x44b4dc=_0x434e7f;var _0x21ee80;(_0x21ee80=this[_0x44b4dc(0x310)])==null||_0x21ee80[_0x44b4dc(0x1fc)](_0xe4ec39=>_0xe4ec39[_0x44b4dc(0xea)]());}[_0x434e7f(0x106)](){const _0x533309=_0x434e7f;return X[_0x533309(0xc2)](this[_0x533309(0x28b)][_0x533309(0x2b1)],this[_0x533309(0x28b)]);}};ve=pt([ae(0x1,a['Inject'](X[_0x434e7f(0xcd)])),ae(0x2,a[_0x434e7f(0x2b6)](x)),ae(0x3,a[_0x434e7f(0x2b6)](a['ThemeService']))],ve);function Et(_0xb8ca){const _0x4a9cec=_0x434e7f,_0xf54e0d=new Map();return _0xb8ca[_0x4a9cec(0x1fc)](_0x31c834=>{const _0x24c898=_0x4a9cec;if(_0xf54e0d['has'](_0x31c834['selection'])){const _0x46846f=_0xf54e0d[_0x24c898(0x18a)](_0x31c834[_0x24c898(0x171)]);_0x46846f[_0x24c898(0x2e8)]+=',\x20'+_0x31c834[_0x24c898(0x2e8)];}else _0xf54e0d[_0x24c898(0x306)](_0x31c834[_0x24c898(0x171)],_0x31c834);}),Array[_0x4a9cec(0x9d)](_0xf54e0d[_0x4a9cec(0x10b)]());}var E=function(){const _0x3d32a8=_0x434e7f;return E=Object['assign']||function(_0x5d61c0){const _0x195ff3=_0x245a;for(var _0x3d061f,_0xddb2e3=0x1,_0x3ba67f=arguments[_0x195ff3(0x2e5)];_0xddb2e3<_0x3ba67f;_0xddb2e3++){_0x3d061f=arguments[_0xddb2e3];for(var _0x21144e in _0x3d061f)Object[_0x195ff3(0x27b)]['hasOwnProperty']['call'](_0x3d061f,_0x21144e)&&(_0x5d61c0[_0x21144e]=_0x3d061f[_0x21144e]);}return _0x5d61c0;},E[_0x3d32a8(0x228)](this,arguments);},Tt=function(_0x1e5d0c,_0x388164){const _0x67d2d7=_0x434e7f;var _0x1d4621={};for(var _0x34b4f2 in _0x1e5d0c)Object[_0x67d2d7(0x27b)]['hasOwnProperty']['call'](_0x1e5d0c,_0x34b4f2)&&_0x388164['indexOf'](_0x34b4f2)<0x0&&(_0x1d4621[_0x34b4f2]=_0x1e5d0c[_0x34b4f2]);if(_0x1e5d0c!=null&&typeof Object['getOwnPropertySymbols']==_0x67d2d7(0x2b9)){for(var _0x5b129f=0x0,_0x34b4f2=Object[_0x67d2d7(0x1a7)](_0x1e5d0c);_0x5b129f<_0x34b4f2['length'];_0x5b129f++)_0x388164['indexOf'](_0x34b4f2[_0x5b129f])<0x0&&Object[_0x67d2d7(0x27b)][_0x67d2d7(0x285)]['call'](_0x1e5d0c,_0x34b4f2[_0x5b129f])&&(_0x1d4621[_0x34b4f2[_0x5b129f]]=_0x1e5d0c[_0x34b4f2[_0x5b129f]]);}return _0x1d4621;},pe=M[_0x434e7f(0x22b)](function(_0x45603f,_0x79b4dc){const _0x5ba063=_0x434e7f;var _0x1e5ae9=_0x45603f[_0x5ba063(0x287)],_0x2d76b0=_0x45603f['id'],_0x18fded=_0x45603f[_0x5ba063(0x27c)],_0xc8b17e=_0x45603f[_0x5ba063(0x2c3)],_0x2bbbf9=Tt(_0x45603f,[_0x5ba063(0x287),'id',_0x5ba063(0x27c),_0x5ba063(0x2c3)]),_0x5d1281=_0x5ba063(0x2a1)[_0x5ba063(0x1e7)](_0x2d76b0,'\x20')[_0x5ba063(0x1e7)](_0x18fded||'')[_0x5ba063(0x293)](),_0x408829=M['useRef']('_'[_0x5ba063(0x1e7)](Dt()));return Ae(_0x1e5ae9,''[_0x5ba063(0x1e7)](_0x2d76b0),{'defIds':_0x1e5ae9[_0x5ba063(0x1a6)],'idSuffix':_0x408829['current']},E({'ref':_0x79b4dc,'className':_0x5d1281},_0x2bbbf9),_0xc8b17e);});function Ae(_0x4326b0,_0x299894,_0x13cb8d,_0x3b4430,_0x4a2757){const _0x138ac8=_0x434e7f;return M[_0x138ac8(0x2d7)](_0x4326b0[_0x138ac8(0x312)],E(E({'key':_0x299894},Ot(_0x4326b0,_0x13cb8d,_0x4a2757)),_0x3b4430),(Rt(_0x4326b0,_0x13cb8d)['children']||[])['map'](function(_0x4e4349,_0x446f2b){const _0x5a4390=_0x138ac8;return Ae(_0x4e4349,''[_0x5a4390(0x1e7)](_0x299894,'-')['concat'](_0x4326b0[_0x5a4390(0x312)],'-')[_0x5a4390(0x1e7)](_0x446f2b),_0x13cb8d,void 0x0,_0x4a2757);}));}function Ot(_0x4469bc,_0x7e83c6,_0x2a8cc6){const _0x3bcb9f=_0x434e7f;var _0x3a8a86=E({},_0x4469bc[_0x3bcb9f(0x1d2)]);_0x2a8cc6!=null&&_0x2a8cc6['colorChannel1']&&_0x3a8a86[_0x3bcb9f(0x8e)]===_0x3bcb9f(0x211)&&(_0x3a8a86[_0x3bcb9f(0x8e)]=_0x2a8cc6['colorChannel1']),_0x4469bc[_0x3bcb9f(0x312)]==='mask'&&_0x3a8a86['id']&&(_0x3a8a86['id']=_0x3a8a86['id']+_0x7e83c6[_0x3bcb9f(0x2b2)]),Object[_0x3bcb9f(0x188)](_0x3a8a86)['forEach'](function(_0x532509){const _0x4b2297=_0x3bcb9f;var _0x51f09d=_0x532509[0x0],_0x5c4834=_0x532509[0x1];_0x51f09d==='mask'&&typeof _0x5c4834==_0x4b2297(0x1b0)&&(_0x3a8a86[_0x51f09d]=_0x5c4834[_0x4b2297(0x276)](/url\(#(.*)\)/,_0x4b2297(0x2dc)[_0x4b2297(0x1e7)](_0x7e83c6['idSuffix'],')')));});var _0x465fe4=_0x7e83c6[_0x3bcb9f(0x1a6)];return!_0x465fe4||_0x465fe4[_0x3bcb9f(0x2e5)]===0x0||(_0x4469bc[_0x3bcb9f(0x312)]===_0x3bcb9f(0x2e4)&&_0x3a8a86[_0x3bcb9f(0x116)]&&(_0x3a8a86[_0x3bcb9f(0x116)]=_0x3a8a86[_0x3bcb9f(0x116)]+_0x7e83c6[_0x3bcb9f(0x2b2)]),Object['entries'](_0x3a8a86)[_0x3bcb9f(0x1fc)](function(_0x21fcde){const _0x1e8cb7=_0x3bcb9f;var _0x365172=_0x21fcde[0x0],_0x5bcfcb=_0x21fcde[0x1];typeof _0x5bcfcb==_0x1e8cb7(0x1b0)&&(_0x3a8a86[_0x365172]=_0x5bcfcb[_0x1e8cb7(0x276)](/url\(#(.*)\)/,_0x1e8cb7(0x2dc)[_0x1e8cb7(0x1e7)](_0x7e83c6[_0x1e8cb7(0x2b2)],')')));})),_0x3a8a86;}function Rt(_0x1c4d18,_0x263b06){const _0x2b10e6=_0x434e7f;var _0x4c348e,_0x13ee37=_0x263b06['defIds'];return!_0x13ee37||_0x13ee37[_0x2b10e6(0x2e5)]===0x0?_0x1c4d18:_0x1c4d18[_0x2b10e6(0x312)]==='defs'&&(!((_0x4c348e=_0x1c4d18[_0x2b10e6(0x24b)])===null||_0x4c348e===void 0x0)&&_0x4c348e[_0x2b10e6(0x2e5)])?E(E({},_0x1c4d18),{'children':_0x1c4d18['children']['map'](function(_0x59b088){const _0x2c9bd4=_0x2b10e6;return typeof _0x59b088['attrs']['id']==_0x2c9bd4(0x1b0)&&_0x13ee37&&_0x13ee37['includes'](_0x59b088[_0x2c9bd4(0x1d2)]['id'])?E(E({},_0x59b088),{'attrs':E(E({},_0x59b088[_0x2c9bd4(0x1d2)]),{'id':_0x59b088[_0x2c9bd4(0x1d2)]['id']+_0x263b06[_0x2c9bd4(0x2b2)]})}):_0x59b088;})}):_0x1c4d18;}function Dt(){const _0x3bfa23=_0x434e7f;return Math[_0x3bfa23(0x123)]()[_0x3bfa23(0x2a2)](0x24)[_0x3bfa23(0xe1)](0x2,0x8);}pe[_0x434e7f(0xc9)]=_0x434e7f(0x252);var Ut={'tag':'svg','attrs':{'xmlns':_0x434e7f(0xd6),'fill':_0x434e7f(0x2f4),'viewBox':_0x434e7f(0x2dd),'width':_0x434e7f(0x12d),'height':_0x434e7f(0x12d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x434e7f(0x2ab),'attrs':{'stroke':_0x434e7f(0x109),'d':_0x434e7f(0x11d),'strokeLinecap':_0x434e7f(0x2df),'strokeLinejoin':_0x434e7f(0x2df),'strokeWidth':1.2}}]},{'tag':_0x434e7f(0x14b),'attrs':{},'children':[{'tag':_0x434e7f(0x9a),'attrs':{'id':_0x434e7f(0x296)},'children':[{'tag':_0x434e7f(0x2ab),'attrs':{'fill':_0x434e7f(0x315),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x434e7f(0x296)]},ye=M[_0x434e7f(0x22b)](function(_0x1108c8,_0x5a9687){const _0x31d421=_0x434e7f;return M[_0x31d421(0x2d7)](pe,Object[_0x31d421(0x2ef)]({},_0x1108c8,{'id':_0x31d421(0x1d6),'ref':_0x5a9687,'icon':Ut}));});ye[_0x434e7f(0xc9)]=_0x434e7f(0xbd);var Nt={'tag':'svg','attrs':{'xmlns':_0x434e7f(0xd6),'fill':_0x434e7f(0x2f4),'viewBox':_0x434e7f(0xc1),'width':_0x434e7f(0x12d),'height':_0x434e7f(0x12d)},'children':[{'tag':'g','attrs':{'clipPath':_0x434e7f(0x2c6)},'children':[{'tag':'path','attrs':{'stroke':_0x434e7f(0x109),'d':_0x434e7f(0xb0),'strokeLinecap':_0x434e7f(0x2df),'strokeLinejoin':_0x434e7f(0x2df),'strokeWidth':1.2}}]},{'tag':_0x434e7f(0x14b),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x434e7f(0x16b)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x434e7f(0xbb)}}]}]}],'defIds':[_0x434e7f(0x16b)]},$e=M[_0x434e7f(0x22b)](function(_0x484cc8,_0x3aea22){const _0x60e933=_0x434e7f;return M[_0x60e933(0x2d7)](pe,Object[_0x60e933(0x2ef)]({},_0x484cc8,{'id':_0x60e933(0x2ff),'ref':_0x3aea22,'icon':Nt}));});$e[_0x434e7f(0xc9)]=_0x434e7f(0x2e2);function Mt(_0x1b7225){const _0x171268=_0x434e7f;switch(_0x1b7225){case u[_0x171268(0x93)][_0x171268(0x1e3)]:return _0x171268(0x121);case u[_0x171268(0x93)][_0x171268(0x2a7)]:return _0x171268(0x2bf);case u['CollaborationStatus']['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x171268(0x93)][_0x171268(0x225)]:return _0x171268(0x2f8);case u['CollaborationStatus'][_0x171268(0x2a5)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x171268(0x93)][_0x171268(0x1ef)]:case u[_0x171268(0x93)]['PENDING']:return'collabStatus.synced';}}function xe(_0x16e0ce){const _0x572559=_0x434e7f,{status$:_0x14217d}=_0x16e0ce,_0x1a2512=T['useObservable'](_0x14217d,u['CollaborationStatus']['NOT_COLLAB']),_0x2d81b4=T['useDependency'](a[_0x572559(0xd1)]),_0x5286e0=T['useDependency'](u['CollaborationSessionService']),_0x156a49=_0x1a2512!==u['CollaborationStatus'][_0x572559(0x1e3)],_0x2a79ce=_0x2d81b4['t'](Mt(_0x1a2512)),_0x16934e=_0x156a49?w[_0x572559(0x314)]($e,{}):w[_0x572559(0x314)](ye,{}),_0x345abd=M[_0x572559(0x1e1)](()=>{const _0x4c3d4a=_0x572559;_0x156a49||_0x5286e0[_0x4c3d4a(0x1b7)]();},[_0x156a49,_0x5286e0]);function _0x3277a1(){const _0x5485c8=_0x572559;return w[_0x5485c8(0x1b8)](_0x5485c8(0x1c6),{'className':'univer-flex\x20univer-items-center','onClick':_0x345abd,'children':[w[_0x5485c8(0x314)](_0x5485c8(0x1c6),{'className':D['clsx'](_0x5485c8(0x27f),{'univer-text-green-500':_0x156a49,'univer-text-red-500':!_0x156a49}),'children':_0x16934e}),w[_0x5485c8(0x314)](_0x5485c8(0x1c6),{'className':_0x5485c8(0x160),'children':_0x2a79ce})]});}return _0x156a49?_0x3277a1():w[_0x572559(0x314)](D[_0x572559(0x290)],{'title':_0x2d81b4['t'](_0x572559(0x132)),'children':_0x3277a1()});}var Lt=Object[_0x434e7f(0x23b)],wt=(_0x2318c2,_0x519033,_0x18ff48,_0x29b669)=>{for(var _0x59eaef=_0x29b669>0x1?void 0x0:_0x29b669?Lt(_0x519033,_0x18ff48):_0x519033,_0x8cbc95=_0x2318c2['length']-0x1,_0x4f535a;_0x8cbc95>=0x0;_0x8cbc95--)(_0x4f535a=_0x2318c2[_0x8cbc95])&&(_0x59eaef=_0x4f535a(_0x59eaef)||_0x59eaef);return _0x59eaef;},V=(_0x464356,_0x1b7f4b)=>(_0x159f9a,_0x44ba76)=>_0x1b7f4b(_0x159f9a,_0x44ba76,_0x464356);exports[_0x434e7f(0x260)]=class extends a[_0x434e7f(0x19b)]{constructor(_0x2b9178,_0x4a862b,_0x1f49ae,_0x5b44a8){const _0x4f2cbb=_0x434e7f;super(),h(this,_0x4f2cbb(0x20f),new d['BehaviorSubject'](u[_0x4f2cbb(0x93)][_0x4f2cbb(0x225)])),(this[_0x4f2cbb(0xdc)]=_0x2b9178,this[_0x4f2cbb(0xe3)]=_0x4a862b,this[_0x4f2cbb(0x27a)]=_0x1f49ae,this[_0x4f2cbb(0x271)]=_0x5b44a8,this[_0x4f2cbb(0x186)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x26aba7=_0x434e7f;this[_0x26aba7(0x1af)](this[_0x26aba7(0xdc)][_0x26aba7(0x25a)][_0x26aba7(0x15e)](d[_0x26aba7(0x2cd)](()=>{const _0x13ad2c=_0x26aba7,_0x3908a9=this['_univerInstanceService']['getFocusedUnit']();return _0x3908a9?this[_0x13ad2c(0x27a)][_0x13ad2c(0x175)](_0x3908a9[_0x13ad2c(0x170)]()):d['of'](null);}),d[_0x26aba7(0x2cd)](_0x2f5a09=>_0x2f5a09?_0x2f5a09[_0x26aba7(0x2de)]:d['of'](u[_0x26aba7(0x93)][_0x26aba7(0x225)])))[_0x26aba7(0x11c)](_0x5319de=>{const _0x67b3fe=_0x26aba7;this['_status$'][_0x67b3fe(0x1f0)](_0x5319de);}));}[_0x434e7f(0x186)](){const _0x276713=_0x434e7f;this['disposeWithMe'](this[_0x276713(0x271)][_0x276713(0x236)](T['BuiltInUIPart']['HEADER_MENU'],()=>T[_0x276713(0x1e2)](Pt({'status$':this[_0x276713(0x20f)][_0x276713(0x1b1)]()}),this[_0x276713(0xe3)])));}},exports[_0x434e7f(0x260)]=wt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x434e7f(0x2b6)](a[_0x434e7f(0x117)])),V(0x2,a[_0x434e7f(0x2b6)](u[_0x434e7f(0x17f)])),V(0x3,T[_0x434e7f(0x264)])],exports[_0x434e7f(0x260)]);function Pt(_0x53fa4b){const {status$:_0xc728b0}=_0x53fa4b;return function(){const _0x2b0c2b=_0x245a;return w[_0x2b0c2b(0x314)](xe,{'status$':_0xc728b0});};}var At=Object[_0x434e7f(0x23b)],yt=(_0x2e550d,_0x22f4f4,_0x5c1b66,_0xb5cb4e)=>{const _0x35acaf=_0x434e7f;for(var _0xea327b=_0xb5cb4e>0x1?void 0x0:_0xb5cb4e?At(_0x22f4f4,_0x5c1b66):_0x22f4f4,_0x1dbc65=_0x2e550d[_0x35acaf(0x2e5)]-0x1,_0x1dd3a1;_0x1dbc65>=0x0;_0x1dbc65--)(_0x1dd3a1=_0x2e550d[_0x1dbc65])&&(_0xea327b=_0x1dd3a1(_0xea327b)||_0xea327b);return _0xea327b;},y=(_0x86c3ca,_0x37787b)=>(_0x57ef8b,_0x1b18c7)=>_0x37787b(_0x57ef8b,_0x1b18c7,_0x86c3ca);let q=class extends a[_0x434e7f(0x19b)]{constructor(_0x4aed53,_0x4fa28e,_0x24fdb7,_0x259762,_0x439cdf,_0x4c4da9){const _0x28c593=_0x434e7f;super(),this['_beforeCloseService']=_0x4aed53,this[_0x28c593(0x21a)]=_0x4fa28e,this[_0x28c593(0x25b)]=_0x24fdb7,this[_0x28c593(0x133)]=_0x259762,this['_notificationService']=_0x439cdf,this[_0x28c593(0x147)]=_0x4c4da9,this[_0x28c593(0x2fd)](),this[_0x28c593(0x26c)]();}[_0x434e7f(0x2fd)](){const _0x425c5d=_0x434e7f;this['disposeWithMe'](this['_beforeCloseService'][_0x425c5d(0x12a)](()=>{const _0x19c35a=_0x425c5d;if(this[_0x19c35a(0x21a)]['saveTaskMap'][_0x19c35a(0x208)])return this[_0x19c35a(0x147)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x434e7f(0x26c)](){const _0x25a832=_0x434e7f;this[_0x25a832(0x1af)](this[_0x25a832(0x25b)][_0x25a832(0x18f)][_0x25a832(0x11c)](_0x390ea9=>{const _0x22e403=_0x25a832;_0x390ea9['id']===u['CollaborationUIEventId'][_0x22e403(0x284)]&&this[_0x22e403(0x133)][_0x22e403(0x2c9)]({'type':D['MessageType']['Warning'],'content':this[_0x22e403(0x147)]['t'](_0x22e403(0x212))}),_0x390ea9['id']===u[_0x22e403(0x180)][_0x22e403(0x158)]&&this[_0x22e403(0x133)][_0x22e403(0x2c9)]({'type':D['MessageType'][_0x22e403(0x1a4)],'content':this[_0x22e403(0x147)]['t'](_0x22e403(0x1d5))}),_0x390ea9['id']===u[_0x22e403(0x180)][_0x22e403(0x2c7)]&&this[_0x22e403(0x156)][_0x22e403(0x2c9)]({'title':this[_0x22e403(0x147)]['t']('permission.title'),'content':this['_localeService']['t'](_0x22e403(0x142)),'type':'error','duration':0x0}),_0x390ea9['id']===u[_0x22e403(0x180)]['CONFLICT']&&this['_messageService'][_0x22e403(0x2c9)]({'type':D[_0x22e403(0x30d)]['Error'],'content':this[_0x22e403(0x147)]['t']('collaboration.closeRoom')+'('+_0x390ea9[_0x22e403(0x30f)]+')'}),_0x390ea9['id']===u[_0x22e403(0x180)][_0x22e403(0x1a2)]&&this[_0x22e403(0x133)][_0x22e403(0x2c9)]({'type':D[_0x22e403(0x30d)][_0x22e403(0x1a4)],'content':this[_0x22e403(0x147)]['t'](_0x390ea9[_0x22e403(0x30f)]||'')}),_0x390ea9['id']===u[_0x22e403(0x180)][_0x22e403(0x254)]&&this[_0x22e403(0x133)][_0x22e403(0x2c9)]({'type':D[_0x22e403(0x30d)][_0x22e403(0x1a4)],'content':this[_0x22e403(0x147)]['t'](_0x22e403(0x2eb))}),_0x390ea9['id']===u[_0x22e403(0x180)][_0x22e403(0xa9)]&&this[_0x22e403(0x133)][_0x22e403(0x2c9)]({'type':D[_0x22e403(0x30d)][_0x22e403(0x20c)],'content':this[_0x22e403(0x147)]['t'](_0x22e403(0x177))}),_0x390ea9['id']===u[_0x22e403(0x180)][_0x22e403(0x1d1)]&&this[_0x22e403(0x133)]['show']({'type':D['MessageType'][_0x22e403(0x20c)],'content':this[_0x22e403(0x147)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0x434e7f(0x19e)]),y(0x1,u[_0x434e7f(0x172)]),y(0x2,a['Inject'](u[_0x434e7f(0xc6)])),y(0x3,T[_0x434e7f(0x13a)]),y(0x4,T[_0x434e7f(0x2e1)]),y(0x5,a[_0x434e7f(0x2b6)](a[_0x434e7f(0xd1)]))],q);const $t=_0x434e7f(0xce),Ue={},be=a[_0x434e7f(0x289)](_0x434e7f(0xdb));var xt=Object[_0x434e7f(0x23b)],jt=(_0x414706,_0x5eea71,_0x483955,_0x178b61)=>{const _0x101d4c=_0x434e7f;for(var _0x5ace98=_0x178b61>0x1?void 0x0:_0x178b61?xt(_0x5eea71,_0x483955):_0x5eea71,_0x16b1ab=_0x414706[_0x101d4c(0x2e5)]-0x1,_0x20d584;_0x16b1ab>=0x0;_0x16b1ab--)(_0x20d584=_0x414706[_0x16b1ab])&&(_0x5ace98=_0x20d584(_0x5ace98)||_0x5ace98);return _0x5ace98;},H=(_0x5e657b,_0x80fbd1)=>(_0x17c098,_0x111a5)=>_0x80fbd1(_0x17c098,_0x111a5,_0x5e657b);exports[_0x434e7f(0xa7)]=class extends a[_0x434e7f(0x273)]{constructor(_0x28470a,_0x122b00,_0x26485e,_0x520d10,_0x1a5bbe){const _0x2b3057=_0x434e7f;super(),this[_0x2b3057(0x9b)]=_0x28470a,this[_0x2b3057(0x28c)]=_0x122b00,this['_commandService']=_0x26485e,this[_0x2b3057(0x29d)]=_0x520d10,_0x1a5bbe?_0x1a5bbe==null||_0x1a5bbe[_0x2b3057(0x179)]()['then'](()=>this[_0x2b3057(0x196)]()):(this[_0x2b3057(0x28c)][_0x2b3057(0x1ed)](_0x2b3057(0x13b),_0x2b3057(0x1d3)),this[_0x2b3057(0x196)]());}async[_0x434e7f(0x196)](){const _0x1c9fbd=_0x434e7f,_0x1bc9d4=this['_urlService']['getParam'](_0x1c9fbd(0x2b1)),_0x573b76=this[_0x1c9fbd(0x9b)]['getParam'](_0x1c9fbd(0x203)),_0x95d242=this['_urlService'][_0x1c9fbd(0x2f0)](_0x1c9fbd(0x1fb));if(!_0x1bc9d4||!_0x573b76){this[_0x1c9fbd(0x28c)]['debug'](_0x1c9fbd(0x13b),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4bf146=await this[_0x1c9fbd(0x29d)][_0x1c9fbd(0x8f)](_0x1bc9d4,Number(_0x573b76),_0x95d242);_0x4bf146&&_0x4bf146 instanceof a['Workbook']&&this[_0x1c9fbd(0x20d)](_0x4bf146);}async['_setupSubUnitSync'](_0x3b9f29){const _0x3a14a0=_0x434e7f;await this[_0x3a14a0(0x1e0)](_0x3b9f29),_0x3b9f29[_0x3a14a0(0x17d)]['pipe'](d[_0x3a14a0(0xcc)](this['dispose$']))[_0x3a14a0(0x11c)](_0x465ceb=>{const _0x4a1135=_0x3a14a0;_0x465ceb&&this[_0x4a1135(0x2a6)](_0x465ceb);}),this['_urlService']['urlChange$'][_0x3a14a0(0x15e)](d[_0x3a14a0(0xcc)](this[_0x3a14a0(0xab)]))[_0x3a14a0(0x11c)](()=>this[_0x3a14a0(0x1e0)](_0x3b9f29));}[_0x434e7f(0x2a6)](_0x308129,_0x1f0a6b=!0x1){const _0xbc5ed7=_0x434e7f,_0x5d8aeb=this[_0xbc5ed7(0x9b)]['getParam'](_0xbc5ed7(0x1fb));_0x308129['getSheetId']()!==_0x5d8aeb&&this[_0xbc5ed7(0x9b)]['setParam'](_0xbc5ed7(0x1fb),_0x308129[_0xbc5ed7(0xb3)](),_0x1f0a6b);}async[_0x434e7f(0x1e0)](_0x3e149f){const _0x45a0f4=_0x434e7f;var _0x40ab3a;const _0x157f0d=this['_urlService'][_0x45a0f4(0x2f0)](_0x45a0f4(0x1fb));if(!_0x157f0d||!_0x3e149f[_0x45a0f4(0x11b)](_0x157f0d)){const _0xa55c67=_0x3e149f['getUnhiddenWorksheets']()[0x0],_0x3837c4=_0x3e149f[_0x45a0f4(0x11b)](_0xa55c67);if(!_0x3837c4)return;this[_0x45a0f4(0x2a6)](_0x3837c4,!0x0),await this[_0x45a0f4(0x1da)][_0x45a0f4(0x10c)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x3e149f[_0x45a0f4(0x170)](),'subUnitId':_0xa55c67});return;}((_0x40ab3a=_0x3e149f[_0x45a0f4(0xc7)]())==null?void 0x0:_0x40ab3a[_0x45a0f4(0xb3)]())!==_0x157f0d&&await this[_0x45a0f4(0x1da)][_0x45a0f4(0x10c)](g[_0x45a0f4(0xeb)]['id'],{'unitId':_0x3e149f[_0x45a0f4(0x170)](),'subUnitId':_0x157f0d});}},exports[_0x434e7f(0xa7)]=jt([H(0x0,be),H(0x1,a[_0x434e7f(0x2b0)]),H(0x2,a[_0x434e7f(0x283)]),H(0x3,a['Inject'](u[_0x434e7f(0x2b8)])),H(0x4,a[_0x434e7f(0xb7)](Ke[_0x434e7f(0x2ec)]))],exports[_0x434e7f(0xa7)]);var Bt=Object[_0x434e7f(0x23b)],kt=(_0x48b65c,_0xe41807,_0x28081c,_0x482d1d)=>{const _0x25f2f4=_0x434e7f;for(var _0x19ce2b=_0x482d1d>0x1?void 0x0:_0x482d1d?Bt(_0xe41807,_0x28081c):_0xe41807,_0x2cf653=_0x48b65c[_0x25f2f4(0x2e5)]-0x1,_0x5833c6;_0x2cf653>=0x0;_0x2cf653--)(_0x5833c6=_0x48b65c[_0x2cf653])&&(_0x19ce2b=_0x5833c6(_0x19ce2b)||_0x19ce2b);return _0x19ce2b;},ce=(_0x4daf83,_0x100da4)=>(_0x506658,_0x26b732)=>_0x100da4(_0x506658,_0x26b732,_0x4daf83);let z=class{constructor(_0x5248e6,_0x40f534,_0x9ee5b7){this['_injector']=_0x5248e6,this['_transformService']=_0x40f534,this['_renderManagerService']=_0x9ee5b7;}[_0x434e7f(0xed)](_0x298978){const _0x19a8a6=_0x434e7f;this[_0x19a8a6(0x143)](_0x298978),this['_transformPreviousActiveRange'](_0x298978);}[_0x434e7f(0x151)](_0x13071c){const _0x24e498=_0x434e7f,{unitID:_0x11d89b}=_0x13071c,_0xefadd0=this['_renderManagerService']['getRenderById'](_0x11d89b)[_0x24e498(0xdf)](b[_0x24e498(0x99)]),{redoCache:_0x150a79}=_0xefadd0[_0x24e498(0x1f8)]();if(_0x150a79[_0x24e498(0x2e5)]===0x0)return _0x13071c;let _0x2bf980=a[_0x24e498(0x2d9)][_0x24e498(0xff)](_0x13071c[_0x24e498(0x25f)][0x0]);for(let _0x479e57=0x0;_0x479e57<_0x150a79['length'];_0x479e57++){const _0x2d223e={'id':'doc.mutation.rich-text-editing','params':{..._0x150a79[_0x479e57]}},_0x3c2dff=this['_transformService']['transformMutation'](_0x2bf980,_0x2d223e,!0x1);if(m['isTransformMutationFailure'](_0x3c2dff))throw _0x3c2dff[_0x24e498(0x2fe)];_0x2bf980=_0x3c2dff[_0x24e498(0x30a)];}return{...a[_0x24e498(0x2d9)][_0x24e498(0xff)](_0x13071c),'mutations':[_0x2bf980]};}[_0x434e7f(0x143)](_0x57828d){const _0x5b4cfa=_0x434e7f,{unitID:_0x539830}=_0x57828d,_0x17653f=this[_0x5b4cfa(0x136)][_0x5b4cfa(0x26f)](_0x539830)[_0x5b4cfa(0xdf)](b[_0x5b4cfa(0x99)]),{undoCache:_0x238f19,redoCache:_0xecaf7e}=_0x17653f[_0x5b4cfa(0x1f8)]();if(_0x238f19[_0x5b4cfa(0x2e5)]===0x0||_0xecaf7e[_0x5b4cfa(0x2e5)]===0x0)return;const _0x1d616e=[],_0x53c568=[];let _0x3f5865=a['Tools'][_0x5b4cfa(0xff)](_0x57828d['mutations'][0x0]),_0x398f51=a[_0x5b4cfa(0x2d9)][_0x5b4cfa(0xff)](_0x57828d['mutations'][0x0]);for(let _0x5b972f=_0x238f19[_0x5b4cfa(0x2e5)]-0x1;_0x5b972f>=0x0;_0x5b972f--){const _0x35e22a={'id':_0x5b4cfa(0x1c9),'params':{..._0x238f19[_0x5b972f]}},_0x415801={'id':_0x5b4cfa(0x1c9),'params':{..._0xecaf7e[_0x5b972f]}},_0x4eef1c=this['_transformService']['transformMutation'](_0x3f5865,_0x35e22a,!0x1),_0x3a9949=this['_transformService'][_0x5b4cfa(0x244)](_0x398f51,_0x415801,!0x1);if(m[_0x5b4cfa(0x248)](_0x4eef1c))throw _0x4eef1c[_0x5b4cfa(0x2fe)];if(m[_0x5b4cfa(0x248)](_0x3a9949))throw _0x3a9949['error'];_0x1d616e['unshift'](_0x4eef1c[_0x5b4cfa(0x102)]['params']),_0x53c568[_0x5b4cfa(0x12e)](_0x3a9949['m2Prime']['params']),_0x3f5865=_0x4eef1c['m1Prime'],_0x398f51=_0x3a9949['m1Prime'];}_0x17653f[_0x5b4cfa(0x1fd)]({'undoCache':_0x1d616e,'redoCache':_0x53c568});}[_0x434e7f(0x313)](_0x28231b){const _0x289693=_0x434e7f,{unitID:_0x42aa0c}=_0x28231b,_0xc06607=this[_0x289693(0x136)][_0x289693(0x26f)](_0x42aa0c)[_0x289693(0xdf)](b[_0x289693(0x99)]),_0x5ef33f=_0xc06607['getActiveRange']();if(_0x5ef33f==null)return;const _0x25dfeb=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28231b['unitID'],'actions':null,'textRanges':[_0x5ef33f]}}],_0x4c80d3=this[_0x289693(0x17e)]['transformMutationsWithChangeset'](_0x28231b,_0x25dfeb);if(!m[_0x289693(0x1b6)](_0x4c80d3))throw _0x4c80d3['error'];const _0x3ddd65=_0x4c80d3['m2Prime'][0x0][_0x289693(0x184)]['textRanges'];Array[_0x289693(0x12c)](_0x3ddd65)&&_0x3ddd65['length']&&_0xc06607['setActiveRange'](_0x3ddd65[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x434e7f(0x117)])),ce(0x1,m[_0x434e7f(0x231)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object[_0x434e7f(0x23b)],Ft=(_0xc8a141,_0x5ddcc5,_0x5d236a,_0x438451)=>{const _0x7f382b=_0x434e7f;for(var _0x52c2af=_0x438451>0x1?void 0x0:_0x438451?Ht(_0x5ddcc5,_0x5d236a):_0x5ddcc5,_0x4ea7be=_0xc8a141[_0x7f382b(0x2e5)]-0x1,_0x3325b0;_0x4ea7be>=0x0;_0x4ea7be--)(_0x3325b0=_0xc8a141[_0x4ea7be])&&(_0x52c2af=_0x3325b0(_0x52c2af)||_0x52c2af);return _0x52c2af;},le=(_0x584de4,_0x1f9c68)=>(_0x321a56,_0xc4c1e)=>_0x1f9c68(_0x321a56,_0xc4c1e,_0x584de4);let J=class{constructor(_0x5ae519,_0x1eb5ae,_0xcb6869){const _0x4807a4=_0x434e7f;this['_injector']=_0x5ae519,this[_0x4807a4(0x17e)]=_0x1eb5ae,this[_0x4807a4(0x13f)]=_0xcb6869;}[_0x434e7f(0x19a)](_0x14ef6c){this['_transformHistoryAndStateStack'](_0x14ef6c);}['transformRemoteChangeset'](_0x52e068){const _0x52d804=_0x434e7f,{unitID:_0x32d807}=_0x52e068,{collaboration:_0x40aba8}=this['_docStateChangeManagerService'][_0x52d804(0x159)](_0x32d807);if(_0x40aba8[_0x52d804(0x2e5)]===0x0)return _0x52e068;let _0x310a25=a[_0x52d804(0x2d9)][_0x52d804(0xff)](_0x52e068[_0x52d804(0x25f)][0x0]);for(let _0xf77133=0x0;_0xf77133<_0x40aba8['length'];_0xf77133++){const _0x3832a1={'id':_0x52d804(0x1c9),'params':{'unitId':_0x40aba8[_0xf77133]['unitId'],..._0x40aba8[_0xf77133]['redoState']}},_0x3a9240=this[_0x52d804(0x17e)][_0x52d804(0x244)](_0x310a25,_0x3832a1,!0x1);if(m[_0x52d804(0x248)](_0x3a9240))throw _0x3a9240[_0x52d804(0x2fe)];_0x310a25=_0x3a9240[_0x52d804(0x30a)];}return{...a[_0x52d804(0x2d9)][_0x52d804(0xff)](_0x52e068),'mutations':[_0x310a25]};}[_0x434e7f(0x148)](_0x7b1175){const _0x5b9abb=_0x434e7f,{unitID:_0x55ec28}=_0x7b1175,{history:_0x26d939,collaboration:_0x51d3c1}=this[_0x5b9abb(0x13f)][_0x5b9abb(0x159)](_0x55ec28);if(_0x26d939['length']===0x0&&_0x51d3c1[_0x5b9abb(0x2e5)]===0x0)return;const _0x1c4d96=[],_0xdd61cf=[];let _0x1720f5=a[_0x5b9abb(0x2d9)]['deepClone'](_0x7b1175[_0x5b9abb(0x25f)][0x0]),_0x4e9521=a[_0x5b9abb(0x2d9)]['deepClone'](_0x7b1175[_0x5b9abb(0x25f)][0x0]);for(let _0x42e7f2=_0x26d939['length']-0x1;_0x42e7f2>=0x0;_0x42e7f2--){const _0x213b71={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26d939[_0x42e7f2][_0x5b9abb(0xf0)],..._0x26d939[_0x42e7f2][_0x5b9abb(0x2bd)]}},_0x10ec03={'id':_0x5b9abb(0x1c9),'params':{'unitId':_0x26d939[_0x42e7f2][_0x5b9abb(0xf0)],..._0x26d939[_0x42e7f2][_0x5b9abb(0x135)]}},_0x5cbec4=this[_0x5b9abb(0x17e)][_0x5b9abb(0x244)](_0x1720f5,_0x213b71,!0x1),_0x3ec9ea=this[_0x5b9abb(0x17e)][_0x5b9abb(0x244)](_0x4e9521,_0x10ec03,!0x1);if(m[_0x5b9abb(0x248)](_0x5cbec4))throw _0x5cbec4['error'];if(m[_0x5b9abb(0x248)](_0x3ec9ea))throw _0x3ec9ea[_0x5b9abb(0x2fe)];_0x1c4d96[_0x5b9abb(0x12e)]({..._0x26d939[_0x42e7f2],'undoState':_0x5cbec4[_0x5b9abb(0x102)][_0x5b9abb(0x184)],'redoState':_0x3ec9ea[_0x5b9abb(0x102)]['params']}),_0x1720f5=_0x5cbec4[_0x5b9abb(0x30a)],_0x4e9521=_0x3ec9ea[_0x5b9abb(0x30a)];}_0x1720f5=a['Tools'][_0x5b9abb(0xff)](_0x7b1175[_0x5b9abb(0x25f)][0x0]),_0x4e9521=a[_0x5b9abb(0x2d9)][_0x5b9abb(0xff)](_0x7b1175[_0x5b9abb(0x25f)][0x0]);for(let _0xdca13b=_0x51d3c1['length']-0x1;_0xdca13b>=0x0;_0xdca13b--){const _0x520f0f={'id':_0x5b9abb(0x1c9),'params':{'unitId':_0x51d3c1[_0xdca13b][_0x5b9abb(0xf0)],..._0x51d3c1[_0xdca13b]['undoState']}},_0x31d8a2={'id':_0x5b9abb(0x1c9),'params':{'unitId':_0x51d3c1[_0xdca13b][_0x5b9abb(0xf0)],..._0x51d3c1[_0xdca13b][_0x5b9abb(0x135)]}},_0x453cff=this[_0x5b9abb(0x17e)][_0x5b9abb(0x244)](_0x1720f5,_0x520f0f,!0x1),_0x4d949a=this[_0x5b9abb(0x17e)][_0x5b9abb(0x244)](_0x4e9521,_0x31d8a2,!0x1);if(m['isTransformMutationFailure'](_0x453cff))throw _0x453cff['error'];if(m[_0x5b9abb(0x248)](_0x4d949a))throw _0x4d949a[_0x5b9abb(0x2fe)];_0xdd61cf[_0x5b9abb(0x12e)]({..._0x51d3c1[_0xdca13b],'undoState':_0x453cff['m2Prime'][_0x5b9abb(0x184)],'redoState':_0x4d949a[_0x5b9abb(0x102)][_0x5b9abb(0x184)]}),_0x1720f5=_0x453cff[_0x5b9abb(0x30a)],_0x4e9521=_0x4d949a[_0x5b9abb(0x30a)];}this['_docStateChangeManagerService'][_0x5b9abb(0x2cb)](_0x55ec28,{'history':_0x1c4d96,'collaboration':_0xdd61cf});}};J=Ft([le(0x0,a[_0x434e7f(0x2b6)](a[_0x434e7f(0x117)])),le(0x1,m[_0x434e7f(0x231)]),le(0x2,a[_0x434e7f(0x2b6)](b[_0x434e7f(0x15a)]))],J);function _0x3399(){const _0x5553a6=['fillStyle','IImageIoService','INTERNAL_ERROR','registerBeforeClose','LOCAL_CACHE_INTERVAL','isArray','1em','unshift','APPLY_REJECT','throttleTime','memberID','collab-client.tooltip.reconnect','_messageService','APPLY_PERMISSION_DENIED','redoState','_renderManagerService','YUUMI_UNABLE_LOAD_URL','UNRECOGNIZED','ENSURE_SNAPSHOT_EXECUTION','IMessageService','[CollaborationDataLoaderController]','unsubscribe','updateOfflineData','_instanceService','_docStateChangeManagerService','generateRandomId','EffectRefRangId','permission.content','_transformUndoRedoStack','_unitOnClients','enableLocalCache','SetDocZoomRatioOperation','_localeService','_transformHistoryAndStateStack','getVpScrollXYInfoByPosToVp','SessionStatus','defs','_registerDependencies','NO_OTHER_CLIENTS_EDITING','_refRangeService','_revisionService','_hover','transformRemoteChangeset','_hovered','WebSocketService','_getMergeRange','shareReplay','_notificationService','TEXT_RANGE_LAYER_INDEX','CLOSE_ROOM','getStateCache','DocStateChangeManagerService','COMPLETION_FINISHED','jiqing.500','getAncestorScale','pipe','getCurrentUnitForType','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','moveTo','386358kZnzvx','getUniverSheetInstance','_updateLocalCursor','_onCursorDelete','_send','color','INVALID_INVITE_CODE','SheetsSelectionsService','_startSheetCollabCursor','on-line-icon_clip0_910_349','getCollabCursors$','urlChange$','rgba(255,\x20255,\x20255,\x200.01)','onStarting','getUnitId','selection','ILocalCacheService','YUUMI_RATE_OVER_LIMIT','then','getCollabEntity$','_getSaveTimeout','session.connection-failed','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','whenReady','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_clearOtherTimers','45bRAHmV','activeSheet$','_transformService','CollaborationController','CollaborationUIEventId','UNAUTHENTICATED','@univerjs/sheets','text','params','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_initStatusComponent','_toggleOffline','entries','_registerRenderDependencies','get','setItem','_scheduleClearOtherTimer','YUUMI_TABLE_NOT_FOUND_IN_UNIT','setParam','event$','onTransformChange$','createSocket','_doCreateSocket','_session','@univerjs/network','144WUUMts','_init','fillText','LICENSE_IMPORT_SIZE_EXCEEDED','SetSelectionsOperation','transformStateCache','Disposable','getSkeleton','_anchor','IBeforeCloseService','syncEditingCollabCursor','_draw','Shape','JOIN_ROOM_FAILED','INVITE_CODE_REQUIRED','Warning','_removeClearOtherTimer','defIds','getOwnPropertySymbols','5678561rSoXMS','ACTIVE_UNIT_EVENT_CHANNEL','getCurrentRevOfUnit','UNDEFINED','77FbWpMC','Module','runRefRangeMutations','disposeWithMe','string','asObservable','row','_colorIndex','_selfUnitIDs','INVITE_CODE_ALREADY_BOUND','isTransformMutationsWithChangesetSuccess','reconnect','jsxs','stringify','hide','makeDirty','RegularPolygon','UPDATE_CURSOR','href','subscribeEvent','width','_handleHover','Plugin','DisposableCollection','has','DOC_RANGE_TYPE','div','OTHER_CLIENTS_EDITING','#FFF','doc.mutation.rich-text-editing','CollaborationSessionService','transform','@univerjs-pro/collaboration-client','LICENSE_MAX_UNITS_EXCEEDED','InsertRangeMoveDownCommandId','runId','assignAColorForMemberID','SUBMIT_CHANGESET_TIMEOUT','attrs','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','WebBrowserSingleActiveUnitService','collaboration.closeRoom','off-line-icon','rxjs/operators','23sUscfQ','fillRule','_commandService','Rectangle','ONLINE','CONNECTOR_DATA_TOO_LARGE','_scheduleSaving','_disabled','_updateSubUnitFromURLParams','useCallback','connectInjector','OFFLINE','startColumn','sessionStatus$','InsertRowCommandId','concat','UnitStatus','replaceState','_hideTimer','ISnapshotServerService','setTimeout','debug','currentSkeleton$','SYNCED','next','selections','history','collab-text-anchor-','ALREADY_EXISTS','_range','INVALID_ARGUMENT','override','getUndoRedoMutationParamsCache','collabCursorState$','_cachedData','subunit','forEach','setUndoRedoMutationParamsCache','_getSessionTicket','LICENSE_DISTRO_REJECTED','onPointerLeave$','body','origin','type','imageSourceType','Rect','includes','CommandType','size','RECT','addEventListener','_anchorDot','Error','_setupSubUnitSync','_sheetSkeletonManagerService','_status$','@univerjs/drawing','colorChannel1','collaboration.single-unit.warning','clearInterval','getViewport','purple.300','code','replaceDocRanges','_roomMembers$','@univerjs/docs-ui','_localCacheService','_memberService','_getScale','black','APPLY_REVISION_CONFILICT','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','search','findNodePositionByCharIndex','_handleJoinEvent','lineTo','drawWith','NOT_COLLAB','setInterval','toDisposable','apply','Unknown\x20user','_shapes','forwardRef','min','RichTextEditingMutation','textRanges','symbol','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ITransformService','fromEventSubject','_onCursorUpdate','blue.400','bottom','registerComponent','setConfig','source','16jUpnwO','arc','getOwnPropertyDescriptor','subUnitId','NOT_FOUND','isEditing','_handleLeaveEvent','YUUMI_NO_CUBOID_FOR_QUESTION','YUUMI_ALL_TABLES_IS_INVALID','@univerjs-pro/collaboration','saveOfflineData','transformMutation','UniverInstanceType','_assignedColors','endRow','isTransformMutationFailure','range','APPLY_NON_SEQUENTIAL_REVISION','children','_docSkeleton','storage','NodePositionConvertToCursor','add','_colorAssignService','getTypeOfUnitAdded$','UniverIcon','getConfig','SOCKET_FAILED_RETRY','sheetID','requireSession','YUUMI_ASYNCIO_CANCELLED','_color','2140OFPNsz','focused$','_collaborationUIEventService','_imageIoService','getMergeData','onMouseMove','mutations','DesktopCollaborationStatusDisplayController','_docTransformSelectionsService','_scheduleHeartbeat','collab-rect-range-','IUIPartsService','getDocRanges','getValue','TEXT','DEFAULT_WS_SESSION_TICKET_URL','isActive','column','getRelativeToViewportCoord','_initEvent','_saveCache','flatMap','getRenderById','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_uiPartsService','getMember','RxDisposable','_saveTaskMap','_docTransformIMECacheService','replace','_syncEditingCollabCursorService','createInstance','RemoveColCommandId','_collaborationController','prototype','className','_docSyncEditingCollabCursorService','MOBILE_HAS_BEEN_BOUND','univer-flex\x20univer-mr-2\x20univer-text-xl','cursorInfo','RefRangeService','_startDocCollabCursor','ICommandService','OTHER_CLIENT_EDITING','propertyIsEnumerable','@univerjs/sheets-ui','icon','365840BbKwBJ','createIdentifier','green.600','_context','_logService','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/rpc','pushState','Tooltip','result','Failed','trim','collab-text-range-','RevisionService','off-line-icon_clip0_910_343','IConfigService','SheetCollabCursorShape','getOffsetConfig','sheetId','deserializeRangeWithSheet','YUUMI_URL_COL_OUT_OF_RANGE','_dataLoaderService','_drawAnchor','getColor','_docTransformStateCacheService','univerjs-icon\x20univerjs-icon-','toString','USERS_LEAVE','addClipboardHook','AWAITING','_updateURLWithCurrentState','CONFLICT','getLocalCacheKey','setShapeProps','setAlpha','path','contains','handleInsertRangeMoveRight','runOnServer','some','ILogService','unit','idSuffix','_scene','searchParams','ColorKit','Inject','map','DataLoaderService','function','_handleHeartbeatEvent','_config','delete','undoState','_updateCollabCursors','collabStatus.conflict','_ensureSubject','_createSocketURL','Vector2','extend','UniverCollaborationClientUIPlugin','measureText','url(#on-line-icon_clip0_910_349)','PERMISSION_DENIED','SetTextSelectionsOperation','show','CollaborationSocketService','setStateCache','disposeUnit','switchMap','red.300','_httpService','DeleteRangeMoveUpCommandId','CollaborationStatusDisplay','startRow','getTypeOfUnitDisposed$','COLORS','mergeOverrideWithDependencies','_online','createElement','onCommandExecuted','Tools','defineProperty','SNAPSHOT_INVALID_SNAPSHOT','url(#$1','0\x200\x2016\x2016','status$','round','_entities','INotificationService','OnLineIcon','pluginName','use','length','getItem','editingUnit','name','DocSkeletonManagerService','_heartbeatTimer','session.will-retry','IRemoteInstanceService','MoveRangeCommandId','backgroundColor','assign','getParam','_document','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_labelPosition','none','_collabSessionService','ticket','max','collabStatus.notCollab','application/json','BehaviorSubject','@univerjs/engine-formula','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_setupBeforeClosingHandler','error','on-line-icon','_themeService','WECHAT_HAS_BEEN_BOUND','_initEntityListener','BrowserCollaborationSocketService','init','_entityInit$','set','roomMembers','3410802ewbxOg','CollaborationEvent','m1Prime','UniverCollaborationClientPlugin','touchDependencies','MessageType','InsertColCommandId','data','_cursors','onRendered','tag','_transformPreviousActiveRange','jsx','white','transformMutationsWithChangeset','_getAnchorBounding','handleInsertRangeMoveDown','fill','loadUnit','IUniverInstanceService','restore','_initDependencies','CollaborationStatus','IURLService','unitID','unload','location','cursorInfo$','DocIMEInputManagerService','clipPath','_urlService','MemberService','from','registerRefRange','ranges','_eventUnsubscribe','onPointerEnter$','UNIVER_DOC','DocSelectionManagerService','debounce','handleIRemoveRow','parse','CollaborationDataLoaderController','DependentOn','SOCKET_FAILED','toRgbString','dispose$','_cursorShapes','_onRefRangeChange','registerDependencies','_backgroundColor','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','_name','removeParam','getSheetId','newValue','distinctUntilChanged','NodePositionConvertToRectRange','Optional','_collabCursorState$','find','WebURLService','translate(.97)','filter','OffLineIcon','_docSkeletonManagerService','startsWith','addObjects','0\x200\x2017\x2016','getSheetObject','UNIVER_SHEET','_drawTextRange','getFocusedUnit','CollaborationUIEventService','getActiveSheet','roomMembers$','displayName','skeleton','_id','takeUntil','SheetSkeletonManagerService','collaboration-client-ui.config','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_toggleOnline','LocaleService','getRangePointData','endColumn','onPointerMove$','getMemberID','http://www.w3.org/2000/svg','entityInit$','_removeCollabCursors','PY_RUNTIME_SCRIPT_ERROR','14276856zuMkla','uni.network.url-service','_univerInstanceService','_localStorageService','_configService','with','_lastPointer','substring','mapTo','_injector','_textBubble','fromEvent','_initResize','push','all','currentTheme$','dispose','SetWorksheetActivateCommand','ThemeService','transformIMECache','transformSelections','FromArray','unitId','IRenderManagerService','_refreshCollabCursors','_collabCursorController','engine','_docClipboardService','SHEET_VIEWPORT_KEY','getCurrentSelections','_cursor','LOGIN_FAILED','LICENSE_EXPORT_SIZE_EXCEEDED','clearTimeout','_handleEvent','react','split','deepClone','combineLatest','getCurrent','m2Prime','_render','_cursorInfo$','30470CqWXZm','_getSheetObject','YUUMI_SUBSCRIPTION_NOT_FOUND','RemoteUniscriptService','currentColor','TOO_MANY_REQUESTS','values','executeCommand','top','debounceTime','exhaustSavingTask','getCoordByCell','evenodd','MUTATION','merge','_drawRectRange','DeleteRangeMoveLeftCommandId','xlink:href','Injector','sessionTicket','handleDeleteRangeMoveUp','transformByState','getSheetBySheetId','subscribe','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','YUUMI_AI_RUN_FAILED','addObject','LOCAL_CACHE_INTERVAL_KEY','collabStatus.offline','EMAIL_HAS_BEEN_BOUND','random','complete','APPLY_DUPLICATED','_unitStatus'];_0x3399=function(){return _0x5553a6;};return _0x3399();}var Yt=Object[_0x434e7f(0x23b)],Wt=(_0x4fc26e,_0x510141,_0x52770a,_0x228793)=>{const _0xe5f7db=_0x434e7f;for(var _0x582948=_0x228793>0x1?void 0x0:_0x228793?Yt(_0x510141,_0x52770a):_0x510141,_0x23beef=_0x4fc26e[_0xe5f7db(0x2e5)]-0x1,_0xae4374;_0x23beef>=0x0;_0x23beef--)(_0xae4374=_0x4fc26e[_0x23beef])&&(_0x582948=_0xae4374(_0x582948)||_0x582948);return _0x582948;},Ne=(_0x290394,_0x2ff03c)=>(_0xf4e4e1,_0x505ec9)=>_0x2ff03c(_0xf4e4e1,_0x505ec9,_0x290394);let Z=class{constructor(_0x4897f5,_0x44394c){const _0x5416a3=_0x434e7f;this[_0x5416a3(0xe3)]=_0x4897f5,this[_0x5416a3(0x17e)]=_0x44394c;}['transformSelections'](_0x1ba60b){const _0x42b2f2=_0x434e7f;var _0x21173e;const _0x596bcc=this[_0x42b2f2(0xe3)]['get'](Y[_0x42b2f2(0xa3)]),_0x17c9e8=(_0x21173e=_0x596bcc[_0x42b2f2(0x265)]())!=null?_0x21173e:[];if(_0x17c9e8[_0x42b2f2(0x2e5)]===0x0)return;const _0x5a2e8f=_0x1ba60b['unitID'],_0x5547b6=[{'id':_0x42b2f2(0x1c9),'params':{'unitId':_0x5a2e8f,'actions':null,'textRanges':_0x17c9e8}}],_0x34f7c6=this[_0x42b2f2(0x17e)][_0x42b2f2(0x8b)](_0x1ba60b,_0x5547b6);if(!m[_0x42b2f2(0x1b6)](_0x34f7c6))throw _0x34f7c6[_0x42b2f2(0x2fe)];const _0x276fde=_0x34f7c6[_0x42b2f2(0x102)][0x0][_0x42b2f2(0x184)][_0x42b2f2(0x22e)];Array[_0x42b2f2(0x12c)](_0x276fde)&&_0x276fde[_0x42b2f2(0x2e5)]&&_0x596bcc[_0x42b2f2(0x217)](_0x276fde,{'unitId':_0x5a2e8f,'subUnitId':_0x5a2e8f},!0x1);}};Z=Wt([Ne(0x0,a[_0x434e7f(0x2b6)](a[_0x434e7f(0x117)])),Ne(0x1,m[_0x434e7f(0x231)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x539847,_0x106117,_0x33142e,_0x5c3b6b)=>{const _0xec27aa=_0x434e7f;for(var _0x58362a=_0x5c3b6b>0x1?void 0x0:_0x5c3b6b?Vt(_0x106117,_0x33142e):_0x106117,_0x235bf9=_0x539847[_0xec27aa(0x2e5)]-0x1,_0x168fd0;_0x235bf9>=0x0;_0x235bf9--)(_0x168fd0=_0x539847[_0x235bf9])&&(_0x58362a=_0x168fd0(_0x58362a)||_0x58362a);return _0x58362a;},N=(_0x2a7be4,_0x2fe657)=>(_0x36b43b,_0x3b2d7e)=>_0x2fe657(_0x36b43b,_0x3b2d7e,_0x2a7be4);let Q=class extends a[_0x434e7f(0x19b)]{constructor(_0x5c0822,_0x54d9d4,_0x4b399,_0x3efe49,_0x340c73,_0xc144e5,_0x1463f8,_0x3ce00c){const _0x4a0170=_0x434e7f;super(),h(this,_0x4a0170(0x20f),new d[(_0x4a0170(0x2fa))](u['CollaborationStatus'][_0x4a0170(0x225)])),(this[_0x4a0170(0x13f)]=_0x5c0822,this[_0x4a0170(0x27a)]=_0x54d9d4,this[_0x4a0170(0x275)]=_0x4b399,this[_0x4a0170(0x2a0)]=_0x3efe49,this[_0x4a0170(0x261)]=_0x340c73,this[_0x4a0170(0x27d)]=_0xc144e5,this['_messageService']=_0x1463f8,this['_localeService']=_0x3ce00c,this['_initEntityListener']());}[_0x434e7f(0x302)](){const _0xefeb24=_0x434e7f;this['disposeWithMe'](this[_0xefeb24(0x27a)][_0xefeb24(0xd7)][_0xefeb24(0x11c)](_0x47bc14=>{const _0x93f2d2=_0xefeb24,_0x4e8069=this[_0x93f2d2(0x13f)]['docStateChange$']['subscribe'](_0x292d2d=>{const _0x4173f6=_0x93f2d2;if(_0x292d2d==null)return;const {unitId:_0x22a0fb,redoState:_0x30c4d0,commandId:_0x1ae140}=_0x292d2d;if(_0x22a0fb!==_0x47bc14[_0x4173f6(0x95)])return;const _0x27b972={'id':_0x1ae140,'type':a[_0x4173f6(0x207)][_0x4173f6(0x112)],'params':{'unitId':_0x22a0fb,'actions':_0x30c4d0['actions'],'textRanges':null}};_0x47bc14['onLocalMutation'](_0x27b972);});if(_0x47bc14[_0x93f2d2(0x1af)](_0x4e8069),_0x47bc14 instanceof u['DocCollaborationEntity']){const _0x49554f={'onTransformIME':_0x48ee0d=>this['_docTransformIMECacheService'][_0x93f2d2(0xed)](_0x48ee0d),'onTransformState':_0x8697a8=>this[_0x93f2d2(0x2a0)][_0x93f2d2(0x19a)](_0x8697a8),'onTransformSelections':_0x18f607=>this['_docTransformSelectionsService'][_0x93f2d2(0xee)](_0x18f607),'onSyncEditingCollabCursor':_0x140f99=>this[_0x93f2d2(0x27d)][_0x93f2d2(0x19f)](_0x140f99),'onTransformRemoteChangesetByIMECache':_0x5f170d=>this['_docTransformIMECacheService'][_0x93f2d2(0x151)](_0x5f170d),'onTransformRemoteChangesetByStateCache':_0xbd4062=>this[_0x93f2d2(0x2a0)][_0x93f2d2(0x151)](_0xbd4062)};_0x47bc14['addHandlerCallback'](_0x49554f);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x434e7f(0x15a)])),N(0x1,a[_0x434e7f(0x2b6)](u['CollaborationController'])),N(0x2,a[_0x434e7f(0x2b6)](z)),N(0x3,a[_0x434e7f(0x2b6)](J)),N(0x4,a[_0x434e7f(0x2b6)](Z)),N(0x5,a[_0x434e7f(0x2b6)](Ce)),N(0x6,T[_0x434e7f(0x13a)]),N(0x7,a[_0x434e7f(0x2b6)](a[_0x434e7f(0xd1)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x1afbb7,_0x43b721,_0x3f6ea7,_0x382487)=>{const _0x57db07=_0x434e7f;for(var _0x3afc3b=_0x382487>0x1?void 0x0:_0x382487?Gt(_0x43b721,_0x3f6ea7):_0x43b721,_0x57b3d2=_0x1afbb7[_0x57db07(0x2e5)]-0x1,_0x1b5f48;_0x57b3d2>=0x0;_0x57b3d2--)(_0x1b5f48=_0x1afbb7[_0x57b3d2])&&(_0x3afc3b=_0x1b5f48(_0x3afc3b)||_0x3afc3b);return _0x3afc3b;},_e=(_0xda01ad,_0x550f93)=>(_0x5f573b,_0x207807)=>_0x550f93(_0x5f573b,_0x207807,_0xda01ad);let ge=class extends a[_0x434e7f(0x19b)]{constructor(_0x5f2def,_0x28b731,_0xc6336b){const _0x171f97=_0x434e7f;super(),h(this,_0x171f97(0x1fa),new Map()),h(this,_0x171f97(0x274),new Map()),h(this,_0x171f97(0x1df),!0x1),(this['_configService']=_0x5f2def,this['_localStorageService']=_0x28b731,this[_0x171f97(0x14f)]=_0xc6336b);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x434e7f(0x145)](){const _0x32ddf0=_0x434e7f;this[_0x32ddf0(0x1df)]=!0x1;}get['saveTaskMap'](){const _0x41e48b=_0x434e7f;return this[_0x41e48b(0x274)];}[_0x434e7f(0xea)](){const _0x27a094=_0x434e7f;this[_0x27a094(0x10f)]()[_0x27a094(0x174)](()=>super[_0x27a094(0xea)]());}async['loadOfflineData'](_0x1ebd7b){const _0x269242=_0x434e7f;return this['_disabled']?null:this[_0x269242(0xdd)][_0x269242(0x2e6)](u[_0x269242(0x2a8)](_0x1ebd7b));}async[_0x434e7f(0x243)](_0x303959,_0x488f01){const _0x5f07be=_0x434e7f;return!!this['_localStorageService'][_0x5f07be(0x18b)](_0x303959,_0x488f01);}[_0x434e7f(0x13d)](_0x3d4d06,_0x3793dc,_0x259575,_0x36308f){const _0x295768=_0x434e7f,_0x2f473f=this['_revisionService'][_0x295768(0x1aa)](_0x3d4d06);this['_cachedData'][_0x295768(0x306)](_0x3d4d06,{'unitID':_0x3d4d06,'type':_0x3793dc,'awaitingChangeset':_0x259575,'mutations':_0x36308f,'rev':_0x2f473f}),this[_0x295768(0x274)][_0x295768(0x1c4)](_0x3d4d06)||this[_0x295768(0x1de)](_0x3d4d06);}[_0x434e7f(0x1de)](_0x15d2ea){const _0x4fe4d7=_0x434e7f,_0x4c2d27=this[_0x4fe4d7(0x176)]();_0x4c2d27===0x0?this[_0x4fe4d7(0x26d)](_0x15d2ea):this['_saveTaskMap']['set'](_0x15d2ea,setTimeout(()=>this['_saveCache'](_0x15d2ea),_0x4c2d27));}[_0x434e7f(0x176)](){const _0x4a2dbe=_0x434e7f;var _0x2692eb;return(_0x2692eb=this[_0x4a2dbe(0xde)][_0x4a2dbe(0x253)](u[_0x4a2dbe(0x120)]))!=null?_0x2692eb:u[_0x4a2dbe(0x12b)];}[_0x434e7f(0x26d)](_0x3c2a78){const _0x1426e6=_0x434e7f,_0x44a7fa=this[_0x1426e6(0x274)]['get'](_0x3c2a78);return _0x44a7fa!==void 0x0&&window[_0x1426e6(0xfb)](_0x44a7fa),this[_0x1426e6(0xdd)]['setItem'](u[_0x1426e6(0x2a8)](_0x3c2a78),this['_cachedData']['get'](_0x3c2a78))['then'](()=>this[_0x1426e6(0x274)]['delete'](_0x3c2a78));}async['exhaustSavingTask'](){const _0xe9e4b9=_0x434e7f,_0x172094=[];this[_0xe9e4b9(0x274)][_0xe9e4b9(0x1fc)]((_0x1c8563,_0x482e5d)=>{const _0x538c4d=_0xe9e4b9;window[_0x538c4d(0xfb)](_0x1c8563),_0x172094[_0x538c4d(0xe7)](this['_saveCache'](_0x482e5d)['then'](()=>{const _0x5aff2c=_0x538c4d;this[_0x5aff2c(0x274)][_0x5aff2c(0x2bc)](_0x482e5d);}));}),await Promise[_0xe9e4b9(0xe8)](_0x172094);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x434e7f(0x2b6)](m[_0x434e7f(0x295)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x4c76a9=_0x434e7f;super(),h(this,_0x4c76a9(0x16d)),this[_0x4c76a9(0x16d)]=d[_0x4c76a9(0xe5)](window,'popstate')[_0x4c76a9(0x15e)](d[_0x4c76a9(0xcc)](this['dispose$']),d[_0x4c76a9(0x155)](0x1),d[_0x4c76a9(0xe2)](void 0x0));}[_0x434e7f(0x18e)](_0x39f796,_0x1ea3d0,_0xe86917=!0x1){const _0x191680=_0x434e7f,_0x71f33c=new URL(window[_0x191680(0x97)][_0x191680(0x1be)]);_0x71f33c['searchParams'][_0x191680(0x306)](_0x39f796,_0x1ea3d0),_0xe86917?window[_0x191680(0x1f2)][_0x191680(0x1e9)]('','',_0x71f33c[_0x191680(0x2a2)]()):window[_0x191680(0x1f2)][_0x191680(0x28f)]('','',_0x71f33c[_0x191680(0x2a2)]());}[_0x434e7f(0xb2)](_0x5df3c1,_0x16bd57=!0x1){const _0xf1cbc8=_0x434e7f,_0x2462b3=new URL(window[_0xf1cbc8(0x97)][_0xf1cbc8(0x1be)]);_0x2462b3[_0xf1cbc8(0x2b4)][_0xf1cbc8(0x2bc)](_0x5df3c1),_0x16bd57?window[_0xf1cbc8(0x1f2)][_0xf1cbc8(0x1e9)]('','',_0x2462b3[_0xf1cbc8(0x2a2)]()):window['history'][_0xf1cbc8(0x28f)]('','',_0x2462b3[_0xf1cbc8(0x2a2)]());}['getParam'](_0x22d17f){const _0x41d42b=_0x434e7f;var _0x5ba5e6;return(_0x5ba5e6=new URL(window[_0x41d42b(0x97)][_0x41d42b(0x1be)])['searchParams'][_0x41d42b(0x18a)](_0x22d17f))!=null?_0x5ba5e6:void 0x0;}}var qt=Object[_0x434e7f(0x2da)],zt=Object[_0x434e7f(0x23b)],Jt=(_0x487d61,_0x342850,_0xfe330e)=>_0x342850 in _0x487d61?qt(_0x487d61,_0x342850,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfe330e}):_0x487d61[_0x342850]=_0xfe330e,Zt=(_0x198b9a,_0x33e4b5,_0x234a93,_0x4b8bb2)=>{const _0x21a9a3=_0x434e7f;for(var _0x47550e=_0x4b8bb2>0x1?void 0x0:_0x4b8bb2?zt(_0x33e4b5,_0x234a93):_0x33e4b5,_0x35c106=_0x198b9a[_0x21a9a3(0x2e5)]-0x1,_0x5609f1;_0x35c106>=0x0;_0x35c106--)(_0x5609f1=_0x198b9a[_0x35c106])&&(_0x47550e=_0x5609f1(_0x47550e)||_0x47550e);return _0x47550e;},he=(_0x39afb6,_0x33e72f)=>(_0x18e44f,_0x2b234a)=>_0x33e72f(_0x18e44f,_0x2b234a,_0x39afb6),Qt=(_0xb14048,_0x209dbd,_0x3b1fdd)=>Jt(_0xb14048,_0x209dbd+'',_0x3b1fdd);const es=_0x434e7f(0x21f);exports[_0x434e7f(0x2c4)]=class extends a[_0x434e7f(0x1c2)]{constructor(_0x469622=Ue,_0x340ebd,_0x146fc7,_0x9a9507){const _0x2d7df6=_0x434e7f;super(),this[_0x2d7df6(0x2bb)]=_0x469622,this[_0x2d7df6(0x136)]=_0x340ebd,this[_0x2d7df6(0xe3)]=_0x146fc7,this[_0x2d7df6(0xde)]=_0x9a9507;const {..._0x177b8e}=a[_0x2d7df6(0x113)]({},Ue,this[_0x2d7df6(0x2bb)]);this['_configService'][_0x2d7df6(0x237)]($t,_0x177b8e);}[_0x434e7f(0x16f)](){const _0x86ec97=_0x434e7f;this[_0x86ec97(0x14c)](),this[_0x86ec97(0x92)]();}[_0x434e7f(0x311)](){this['_registerRenderDependencies']();}[_0x434e7f(0x14c)](){const _0x24644d=_0x434e7f;var _0x4d001c;const _0x1222ad=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x24644d(0x153)]}],[u[_0x24644d(0x172)],{'useClass':ge}],[exports[_0x24644d(0x260)]],[Q],[q],[x],[de],[exports[_0x24644d(0xa7)]]];a[_0x24644d(0xae)](this[_0x24644d(0xe3)],a[_0x24644d(0x2d5)](_0x1222ad,(_0x4d001c=this['_config'])==null?void 0x0:_0x4d001c[_0x24644d(0x1f7)]));}[_0x434e7f(0x189)](){const _0x55f022=_0x434e7f;this['disposeWithMe'](this[_0x55f022(0x136)]['registerRenderModule'](a[_0x55f022(0x245)]['UNIVER_DOC'],[Ie])),this[_0x55f022(0x1af)](this[_0x55f022(0x136)]['registerRenderModule'](a[_0x55f022(0x245)][_0x55f022(0xc3)],[ve]));}[_0x434e7f(0x92)](){const _0x5e68d0=_0x434e7f;a[_0x5e68d0(0x30c)](this[_0x5e68d0(0xe3)],[[x],[exports[_0x5e68d0(0x260)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x434e7f(0x2c4)],_0x434e7f(0x2e3),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x434e7f(0xa8)](u[_0x434e7f(0x30b)]),he(0x1,p[_0x434e7f(0xf1)]),he(0x2,a['Inject'](a['Injector'])),he(0x3,a[_0x434e7f(0x297)])],exports[_0x434e7f(0x2c4)]);var ts=Object[_0x434e7f(0x23b)],ss=(_0xb17d47,_0x176a71,_0x4a836e,_0x3995de)=>{const _0x50c139=_0x434e7f;for(var _0x298929=_0x3995de>0x1?void 0x0:_0x3995de?ts(_0x176a71,_0x4a836e):_0x176a71,_0x5d9c5e=_0xb17d47[_0x50c139(0x2e5)]-0x1,_0x2aed43;_0x5d9c5e>=0x0;_0x5d9c5e--)(_0x2aed43=_0xb17d47[_0x5d9c5e])&&(_0x298929=_0x2aed43(_0x298929)||_0x298929);return _0x298929;},F=(_0x1ca09c,_0xd6223e)=>(_0x4831e8,_0x22fd48)=>_0xd6223e(_0x4831e8,_0x22fd48,_0x1ca09c);exports[_0x434e7f(0x303)]=class extends u[_0x434e7f(0x2ca)]{constructor(_0x106e12,_0x10abcb,_0xbb2116,_0x39f64c,_0x164b1b){super(_0x106e12,_0x10abcb,_0xbb2116,_0x39f64c,_0x164b1b);}async[_0x434e7f(0x191)](_0x5880b2){const _0x46bbc9=_0x434e7f,_0x113004=await this['_getSessionTicket'](),_0x3f0094=this[_0x46bbc9(0x2c1)](_0x5880b2,_0x113004);return this[_0x46bbc9(0x192)](_0x3f0094);}[_0x434e7f(0x2c1)](_0x140ac6,_0x4d9391){const _0x2cd253=_0x434e7f,_0x58beac=typeof window>'u'?new URL(_0x140ac6):new URL(_0x140ac6,window[_0x2cd253(0x97)][_0x2cd253(0x202)]);_0x58beac['searchParams'][_0x2cd253(0x306)](_0x2cd253(0x118),_0x4d9391);const _0x27bae9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2cd253(0x220)]);return _0x27bae9[_0x2cd253(0x18a)](_0x2cd253(0x1cf))&&_0x58beac[_0x2cd253(0x2b4)][_0x2cd253(0x306)]('runId',_0x27bae9[_0x2cd253(0x18a)](_0x2cd253(0x1cf))),_0x58beac[_0x2cd253(0x2a2)]();}async[_0x434e7f(0x1fe)](){const _0x3a9c7e=_0x434e7f;var _0x424ddd,_0x17ae75,_0x186de0;const _0x2e9dbf=this[_0x3a9c7e(0xde)][_0x3a9c7e(0x253)](u[_0x3a9c7e(0x178)]),_0x248cb4=(_0x424ddd=_0x2e9dbf==null?void 0x0:_0x2e9dbf['wsSessionTicketUrl'])!=null?_0x424ddd:u[_0x3a9c7e(0x268)];return(_0x186de0=(_0x17ae75=(await this[_0x3a9c7e(0x2cf)]['get'](_0x248cb4,{'headers':{'Content-Type':_0x3a9c7e(0x2f9)}}))[_0x3a9c7e(0x201)])==null?void 0x0:_0x17ae75[_0x3a9c7e(0x2f6)])!=null?_0x186de0:'';}},exports[_0x434e7f(0x303)]=ss([F(0x0,a[_0x434e7f(0x2b6)](a[_0x434e7f(0x117)])),F(0x1,a['Inject'](G['HTTPService'])),F(0x2,a[_0x434e7f(0x297)]),F(0x3,a[_0x434e7f(0x2b0)]),F(0x4,m[_0x434e7f(0x1eb)])],exports[_0x434e7f(0x303)]);const Me=0x7530,Le=_0x434e7f(0x1a9);class is extends a[_0x434e7f(0x19b)]{constructor(){const _0x408602=_0x434e7f;super(),h(this,_0x408602(0xcb),a['generateRandomId']()),h(this,_0x408602(0x1b4),new Set()),h(this,'_unitOnClients',new Map()),h(this,'_heartbeatTimer',null),h(this,_0x408602(0x17b),new Map()),h(this,_0x408602(0x126),new Map()),this['_init']();}[_0x434e7f(0xea)](){const _0x302ad3=_0x434e7f;super[_0x302ad3(0xea)](),this[_0x302ad3(0x17b)][_0x302ad3(0x1fc)]((_0x284572,_0x249090)=>this[_0x302ad3(0x1a5)](_0x249090)),this[_0x302ad3(0x2ea)]&&window[_0x302ad3(0x213)](this[_0x302ad3(0x2ea)]);}['getUnitStatus$'](_0x58177b){const _0x50320c=_0x434e7f;return this[_0x50320c(0x2c0)](_0x58177b)[_0x50320c(0x15e)](d[_0x50320c(0xb5)]());}[_0x434e7f(0x2e7)](_0x36f79b){const _0x3202e7=_0x434e7f;this['_selfUnitIDs'][_0x3202e7(0x208)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3202e7(0x1b4)]['add'](_0x36f79b),this[_0x3202e7(0x166)]({'type':0x0,'memberID':this[_0x3202e7(0xcb)],'unitIDs':[_0x36f79b],'isForwarded':!0x1});}[_0x434e7f(0x2cc)](_0x5bde60){const _0x5e3b01=_0x434e7f;this['_selfUnitIDs'][_0x5e3b01(0x2bc)](_0x5bde60),this[_0x5e3b01(0x1b4)][_0x5e3b01(0x208)]===0x0&&this[_0x5e3b01(0x2ea)]&&window[_0x5e3b01(0x213)](this[_0x5e3b01(0x2ea)]);}['_init'](){const _0x49b745=_0x434e7f;this[_0x49b745(0x1af)](a['toDisposable'](d['fromEvent'](window,_0x49b745(0x24d))[_0x49b745(0x11c)](_0x4e72a4=>{const _0x1f6907=_0x49b745;if(_0x4e72a4['key']!==Le||!_0x4e72a4[_0x1f6907(0xb4)])return;const _0x3c4815=JSON[_0x1f6907(0xa6)](_0x4e72a4[_0x1f6907(0xb4)]);this['_handleEvent'](_0x3c4815);}))),window[_0x49b745(0x20a)](_0x49b745(0x96),()=>this[_0x49b745(0x166)]({'type':0x1,'memberID':this[_0x49b745(0xcb)],'unitIDs':Array[_0x49b745(0x9d)](this['_selfUnitIDs'])}));}[_0x434e7f(0xfc)](_0xfe0106){const _0x2428c3=_0x434e7f;switch(_0xfe0106[_0x2428c3(0x203)]){case 0x0:this['_handleJoinEvent'](_0xfe0106);break;case 0x1:this[_0x2428c3(0x23f)](_0xfe0106);break;case 0x2:this['_handleHeartbeatEvent'](_0xfe0106);break;}}[_0x434e7f(0x222)](_0x1a4ae1){const _0x5654eb=_0x434e7f,{unitIDs:_0x602d41,memberID:_0x32af13,isForwarded:_0x553bb3}=_0x1a4ae1;_0x602d41[_0x5654eb(0x1fc)](_0x4498fd=>{const _0x5e74a9=_0x5654eb;if(!_0x553bb3&&this['_unitOnClients'][_0x5e74a9(0x1c4)](_0x4498fd)&&this['_ensureSubject'](_0x4498fd)['next'](u[_0x5e74a9(0x1e8)][_0x5e74a9(0x1c7)]),!this[_0x5e74a9(0x144)][_0x5e74a9(0x1c4)](_0x4498fd)||!this[_0x5e74a9(0x144)]['get'](_0x4498fd)[_0x5e74a9(0x1c4)](_0x32af13)){const _0x1ae8bb=this[_0x5e74a9(0x144)]['get'](_0x4498fd)||new Set();_0x1ae8bb[_0x5e74a9(0x24f)](_0x32af13),this[_0x5e74a9(0x144)][_0x5e74a9(0x306)](_0x4498fd,_0x1ae8bb),this[_0x5e74a9(0x18c)](_0x32af13);}}),_0x553bb3||this[_0x5654eb(0x166)]({'type':0x0,'memberID':this[_0x5654eb(0xcb)],'unitIDs':[...this[_0x5654eb(0x1b4)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x43a0f2){const _0x35e108=_0x434e7f;this[_0x35e108(0x1a5)](_0x43a0f2);const _0x3ce65d=window[_0x35e108(0x1ec)](()=>{const _0x29bb48=_0x35e108;this[_0x29bb48(0x144)][_0x29bb48(0x1fc)](_0xacb78c=>{const _0x281bfb=_0x29bb48;_0xacb78c[_0x281bfb(0x2bc)](_0x43a0f2);});},Me*0x2);this[_0x35e108(0x17b)]['set'](_0x43a0f2,_0x3ce65d);}['_removeClearOtherTimer'](_0xf4fe81){const _0x3fb06a=_0x434e7f;if(this[_0x3fb06a(0x17b)][_0x3fb06a(0x1c4)](_0xf4fe81)){const _0x88fa52=this[_0x3fb06a(0x17b)]['get'](_0xf4fe81);_0x88fa52&&window[_0x3fb06a(0xfb)](_0x88fa52),this[_0x3fb06a(0x17b)][_0x3fb06a(0x306)](_0xf4fe81,null);}}[_0x434e7f(0x23f)](_0x251ef9){const _0x1a6035=_0x434e7f,{memberID:_0x55a534,unitIDs:_0x474568}=_0x251ef9;_0x474568['forEach'](_0x720fc3=>{const _0xe9c2a3=_0x245a;var _0x1f447d;const _0x578d7e=this['_unitOnClients'][_0xe9c2a3(0x18a)](_0x720fc3);_0x578d7e&&(_0x578d7e[_0xe9c2a3(0x2bc)](_0x55a534),(_0x1f447d=this[_0xe9c2a3(0x2c0)](_0x720fc3))==null||_0x1f447d['next'](_0x578d7e['size']===0x0?u[_0xe9c2a3(0x1e8)][_0xe9c2a3(0x14d)]:u[_0xe9c2a3(0x1e8)][_0xe9c2a3(0x1c7)]));}),this[_0x1a6035(0x1a5)](_0x55a534);}[_0x434e7f(0x2ba)](_0x20f393){const _0x56756d=_0x434e7f;this[_0x56756d(0x18c)](_0x20f393[_0x56756d(0x131)]);}[_0x434e7f(0x166)](_0x47e98a){const _0x20dbcd=_0x434e7f;localStorage[_0x20dbcd(0x18b)](Le,JSON[_0x20dbcd(0x1b9)](_0x47e98a));}[_0x434e7f(0x262)](){const _0xa3cbd8=_0x434e7f;this[_0xa3cbd8(0x2ea)]=window[_0xa3cbd8(0x226)](()=>{const _0x54bc45=_0xa3cbd8;this[_0x54bc45(0x166)]({'type':0x2,'memberID':this['_id']});},Me);}[_0x434e7f(0x2c0)](_0x490569){const _0x39bfa9=_0x434e7f;return this[_0x39bfa9(0x126)]['has'](_0x490569)||this['_unitStatus'][_0x39bfa9(0x306)](_0x490569,new d[(_0x39bfa9(0x2fa))](u[_0x39bfa9(0x1e8)][_0x39bfa9(0x14d)])),this[_0x39bfa9(0x126)][_0x39bfa9(0x18a)](_0x490569);}}var Be=(_0x2494ac=>(_0x2494ac[_0x2494ac[_0x434e7f(0x1ab)]=0x0]=_0x434e7f(0x1ab),_0x2494ac[_0x2494ac['OK']=0x1]='OK',_0x2494ac[_0x2494ac[_0x434e7f(0x129)]=0x2]=_0x434e7f(0x129),_0x2494ac[_0x2494ac['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x2494ac[_0x2494ac[_0x434e7f(0x23d)]=0x4]=_0x434e7f(0x23d),_0x2494ac[_0x2494ac['UNAUTHENTICATED']=0x5]=_0x434e7f(0x181),_0x2494ac[_0x2494ac[_0x434e7f(0x1f4)]=0x6]=_0x434e7f(0x1f4),_0x2494ac[_0x2494ac[_0x434e7f(0x1f6)]=0x7]='INVALID_ARGUMENT',_0x2494ac[_0x2494ac[_0x434e7f(0x10a)]=0x8]=_0x434e7f(0x10a),_0x2494ac[_0x2494ac[_0x434e7f(0x15b)]=0x9]='COMPLETION_FINISHED',_0x2494ac[_0x2494ac[_0x434e7f(0xf9)]=0xa]=_0x434e7f(0xf9),_0x2494ac[_0x2494ac['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2494ac[_0x2494ac[_0x434e7f(0x2db)]=0x1771]=_0x434e7f(0x2db),_0x2494ac[_0x2494ac[_0x434e7f(0x28d)]=0x1772]=_0x434e7f(0x28d),_0x2494ac[_0x2494ac[_0x434e7f(0x139)]=0x1773]=_0x434e7f(0x139),_0x2494ac[_0x2494ac[_0x434e7f(0x12f)]=0x1b59]=_0x434e7f(0x12f),_0x2494ac[_0x2494ac[_0x434e7f(0x24a)]=0x1b5a]=_0x434e7f(0x24a),_0x2494ac[_0x2494ac[_0x434e7f(0x21e)]=0x1b5b]=_0x434e7f(0x21e),_0x2494ac[_0x2494ac[_0x434e7f(0x134)]=0x1b5c]=_0x434e7f(0x134),_0x2494ac[_0x2494ac['APPLY_DUPLICATED']=0x1b5d]=_0x434e7f(0x125),_0x2494ac[_0x2494ac[_0x434e7f(0x1dd)]=0x1f41]=_0x434e7f(0x1dd),_0x2494ac[_0x2494ac[_0x434e7f(0x1cd)]=0x2329]=_0x434e7f(0x1cd),_0x2494ac[_0x2494ac['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x434e7f(0x2fc),_0x2494ac[_0x2494ac[_0x434e7f(0x198)]=0x232b]=_0x434e7f(0x198),_0x2494ac[_0x2494ac[_0x434e7f(0xfa)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2494ac[_0x2494ac[_0x434e7f(0x1ff)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x2494ac[_0x2494ac[_0x434e7f(0x137)]=0x2711]=_0x434e7f(0x137),_0x2494ac[_0x2494ac[_0x434e7f(0x29c)]=0x2712]=_0x434e7f(0x29c),_0x2494ac[_0x2494ac[_0x434e7f(0x173)]=0x2713]=_0x434e7f(0x173),_0x2494ac[_0x2494ac[_0x434e7f(0x107)]=0x2714]=_0x434e7f(0x107),_0x2494ac[_0x2494ac['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x434e7f(0x240),_0x2494ac[_0x2494ac[_0x434e7f(0x257)]=0x271b]=_0x434e7f(0x257),_0x2494ac[_0x2494ac[_0x434e7f(0x18d)]=0x271c]=_0x434e7f(0x18d),_0x2494ac[_0x2494ac[_0x434e7f(0x241)]=0x271d]=_0x434e7f(0x241),_0x2494ac[_0x2494ac[_0x434e7f(0x230)]=0x271e]=_0x434e7f(0x230),_0x2494ac[_0x2494ac[_0x434e7f(0x11e)]=0x271f]=_0x434e7f(0x11e),_0x2494ac[_0x2494ac[_0x434e7f(0xd9)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2494ac[_0x2494ac['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2494ac[_0x2494ac['INVALID_INVITE_CODE']=0x2ee2]=_0x434e7f(0x168),_0x2494ac[_0x2494ac[_0x434e7f(0x1a3)]=0x2ee3]=_0x434e7f(0x1a3),_0x2494ac[_0x2494ac['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x2494ac[_0x2494ac['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x434e7f(0x1b5),_0x2494ac[_0x2494ac[_0x434e7f(0x301)]=0x32c9]=_0x434e7f(0x301),_0x2494ac[_0x2494ac[_0x434e7f(0x27e)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2494ac[_0x2494ac[_0x434e7f(0x122)]=0x32cb]=_0x434e7f(0x122),_0x2494ac[_0x2494ac[_0x434e7f(0x138)]=-0x1]=_0x434e7f(0x138),_0x2494ac))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x4a91ac,_0x47d66b,_0xcbfec2,_0x3f2d7a)=>{const _0x4951e6=_0x434e7f;for(var _0x2e3153=_0x3f2d7a>0x1?void 0x0:_0x3f2d7a?ns(_0x47d66b,_0xcbfec2):_0x47d66b,_0x469480=_0x4a91ac[_0x4951e6(0x2e5)]-0x1,_0x4fe54a;_0x469480>=0x0;_0x469480--)(_0x4fe54a=_0x4a91ac[_0x469480])&&(_0x2e3153=_0x4fe54a(_0x2e3153)||_0x2e3153);return _0x2e3153;},ue=(_0x2a3b83,_0x3df19d)=>(_0x48d399,_0x51fbde)=>_0x3df19d(_0x48d399,_0x51fbde,_0x2a3b83);exports[_0x434e7f(0x108)]=class extends a[_0x434e7f(0x19b)]{constructor(_0x127ab3,_0x55d497,_0x30f250){const _0x158d0c=_0x434e7f;super(),this['_instanceService']=_0x127ab3,this[_0x158d0c(0x2cf)]=_0x55d497,this[_0x158d0c(0xde)]=_0x30f250;}async[_0x434e7f(0x2ae)](_0x409856,_0x351db4,_0x5608b8,..._0xd1bda1){const _0x10be04=_0x434e7f;var _0x57fd5f,_0x3cb4ad,_0x5695e8,_0x2f3d89;const _0x392470=this[_0x10be04(0x13e)]['getFocusedUnit']();if(!_0x392470)throw new Error(_0x10be04(0x185));const _0x4fa224=((_0x57fd5f=this['_configService'][_0x10be04(0x253)](u[_0x10be04(0x17a)]))!=null?_0x57fd5f:u[_0x10be04(0x2f2)])+'/'+_0x409856+'/run/'+_0x351db4,_0x192e82=new URL(window['location'][_0x10be04(0x1be)]),_0x56d9d9={'scriptId':_0x409856,'runId':(_0x3cb4ad=_0x192e82['searchParams']['get'](_0x10be04(0x1cf)))!=null?_0x3cb4ad:'','function':_0x351db4,'unitId':_0x392470[_0x10be04(0x170)](),'argsOfFunction':JSON[_0x10be04(0x1b9)](_0xd1bda1),'invokeId':(_0x5695e8=_0x5608b8['invokeId'])!=null?_0x5695e8:'','executionId':(_0x2f3d89=_0x5608b8['executionId'])!=null?_0x2f3d89:''};try{const _0x30fd62=await this[_0x10be04(0x2cf)]['post'](_0x4fa224,{'body':_0x56d9d9});return _0x30fd62[_0x10be04(0x201)][_0x10be04(0x2fe)]&&_0x30fd62[_0x10be04(0x201)][_0x10be04(0x2fe)][_0x10be04(0x216)]!==Be['OK']?_0x10be04(0x292):_0x30fd62['body'][_0x10be04(0x291)];}catch{return _0x10be04(0x292);}}},exports[_0x434e7f(0x108)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G['HTTPService'])),ue(0x2,a[_0x434e7f(0x297)])],exports['RemoteUniscriptService']),exports[_0x434e7f(0x2d1)]=xe,exports[_0x434e7f(0x94)]=be,exports[_0x434e7f(0x298)]=Pe,exports[_0x434e7f(0x1d4)]=is,exports[_0x434e7f(0xba)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5f738a=_0x2ee9;(function(_0x4504d4,_0xeb760a){const _0x4842ed=_0x2ee9,_0x1871e0=_0x4504d4();while(!![]){try{const _0x250068=-parseInt(_0x4842ed(0x1a3))/0x1+parseInt(_0x4842ed(0x1a5))/0x2*(-parseInt(_0x4842ed(0x199))/0x3)+-parseInt(_0x4842ed(0x195))/0x4*(-parseInt(_0x4842ed(0x19f))/0x5)+parseInt(_0x4842ed(0x1a4))/0x6*(-parseInt(_0x4842ed(0x1a0))/0x7)+-parseInt(_0x4842ed(0x1a2))/0x8+parseInt(_0x4842ed(0x198))/0x9+-parseInt(_0x4842ed(0x19e))/0xa*(-parseInt(_0x4842ed(0x1a1))/0xb);if(_0x250068===_0xeb760a)break;else _0x1871e0['push'](_0x1871e0['shift']());}catch(_0x30f185){_0x1871e0['push'](_0x1871e0['shift']());}}}(_0x50cc,0xcc15f));function _0x2ee9(_0xa6920,_0x200283){const _0x50cc7d=_0x50cc();return _0x2ee9=function(_0x2ee91e,_0x5c78f5){_0x2ee91e=_0x2ee91e-0x18d;let _0x22b3d6=_0x50cc7d[_0x2ee91e];return _0x22b3d6;},_0x2ee9(_0xa6920,_0x200283);}const e={'collab-client':{'tooltip':{'reconnect':_0x5f738a(0x193)}},'collabStatus':{'fetchMiss':_0x5f738a(0x18f),'conflict':_0x5f738a(0x19d),'notCollab':'Local\x20file','synced':_0x5f738a(0x19b),'syncing':_0x5f738a(0x18e),'offline':_0x5f738a(0x197)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x5f738a(0x191),'room-full':_0x5f738a(0x194),'collaboration-timeout':_0x5f738a(0x190)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x5f738a(0x192)},'permission':{'title':_0x5f738a(0x19c),'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':_0x5f738a(0x196)},'closeRoom':_0x5f738a(0x18d)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x50cc(){const _0x1aaea1=['Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Syncing...','Syncing\x20server\x20data...','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','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.','Click\x20to\x20Reconnect','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','16tXFwzg','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','2048958mszfVj','3fvsXQB','exports','Synced','Authentication\x20Error','Edit\x20conflicts','11734070vMrXfb','886230qjilLP','70opFytc','22peBcgx','5571064MXXSCf','1053240hvreYQ','10080IMAcNP','1362204XmutyT'];_0x50cc=function(){return _0x1aaea1;};return _0x50cc();}module[_0x5f738a(0x19a)]=e;
|