@univerjs-pro/collaboration-client-ui 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.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/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.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/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.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/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.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/types/controllers/config.schema.d.ts +5 -0
- package/lib/types/controllers/frontend-log/frontend-log.controller.d.ts +17 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2dd085=_0x3d42;(function(_0x4d18bb,_0x27ee59){const _0x3ce725=_0x3d42,_0x5a67c5=_0x4d18bb();while(!![]){try{const _0x429f36=-parseInt(_0x3ce725(0x355))/0x1+-parseInt(_0x3ce725(0x255))/0x2+-parseInt(_0x3ce725(0x289))/0x3+parseInt(_0x3ce725(0x406))/0x4+-parseInt(_0x3ce725(0x40b))/0x5+-parseInt(_0x3ce725(0x3ad))/0x6+parseInt(_0x3ce725(0x334))/0x7*(parseInt(_0x3ce725(0x356))/0x8);if(_0x429f36===_0x27ee59)break;else _0x5a67c5['push'](_0x5a67c5['shift']());}catch(_0x5e96f3){_0x5a67c5['push'](_0x5a67c5['shift']());}}}(_0x3083,0x1ec08));var Ve=Object[_0x2dd085(0x3b1)],Ge=(_0x4a07fe,_0x36122a,_0x110488)=>_0x36122a in _0x4a07fe?Ve(_0x4a07fe,_0x36122a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x110488}):_0x4a07fe[_0x36122a]=_0x110488,_=(_0x526e85,_0x2516a0,_0x24c3ca)=>Ge(_0x526e85,typeof _0x2516a0!=_0x2dd085(0x1e1)?_0x2516a0+'':_0x2516a0,_0x24c3ca);Object[_0x2dd085(0x3b1)](exports,Symbol['toStringTag'],{'value':_0x2dd085(0x232)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),T=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x55d5bb,..._0x1f4acc}){const _0xe83d97=_0x2dd085,{icon:_0x326d31,id:_0x4fac2b,className:_0x42fcc3,extend:_0x23fcc7,..._0x474f16}=_0x1f4acc,_0x423242=(_0xe83d97(0x3ae)+_0x4fac2b+'\x20'+(_0x42fcc3||''))[_0xe83d97(0x329)](),_0x4935f0=A[_0xe83d97(0x1a7)]('_'+Je());return we(_0x326d31,''+_0x4fac2b,{'defIds':_0x326d31[_0xe83d97(0x2ce)],'idSuffix':_0x4935f0['current']},{'ref':_0x55d5bb,'className':_0x423242,..._0x474f16},_0x23fcc7);}function we(_0x22d1f1,_0x260985,_0xc5a363,_0x44f055,_0x15e318){const _0x233058=_0x2dd085;return A[_0x233058(0x24c)](_0x22d1f1['tag'],{'key':_0x260985,...qe(_0x22d1f1,_0xc5a363,_0x15e318),..._0x44f055},(ze(_0x22d1f1,_0xc5a363)[_0x233058(0x212)]||[])[_0x233058(0x2c0)]((_0x2c10da,_0x2a4c96)=>we(_0x2c10da,_0x260985+'-'+_0x22d1f1[_0x233058(0x3f9)]+'-'+_0x2a4c96,_0xc5a363,void 0x0,_0x15e318)));}function qe(_0x570e89,_0xbe2820,_0x2751ef){const _0x599f97=_0x2dd085,_0x5d9d64={..._0x570e89[_0x599f97(0x3f2)]};_0x2751ef!=null&&_0x2751ef['colorChannel1']&&_0x5d9d64[_0x599f97(0x421)]===_0x599f97(0x27a)&&(_0x5d9d64[_0x599f97(0x421)]=_0x2751ef['colorChannel1']),_0x570e89[_0x599f97(0x3f9)]===_0x599f97(0x296)&&_0x5d9d64['id']&&(_0x5d9d64['id']=_0x5d9d64['id']+_0xbe2820[_0x599f97(0x3da)]),Object[_0x599f97(0x341)](_0x5d9d64)[_0x599f97(0x3d6)](([_0xee9fce,_0x49df4a])=>{const _0x454b63=_0x599f97;_0xee9fce===_0x454b63(0x296)&&typeof _0x49df4a==_0x454b63(0x3ec)&&(_0x5d9d64[_0xee9fce]=_0x49df4a[_0x454b63(0x3d8)](/url\(#(.*)\)/,_0x454b63(0x35f)+_0xbe2820[_0x454b63(0x3da)]+')'));});const {defIds:_0x25a37b}=_0xbe2820;return!_0x25a37b||_0x25a37b['length']===0x0||(_0x570e89['tag']==='use'&&_0x5d9d64['xlink:href']&&(_0x5d9d64[_0x599f97(0x1da)]=_0x5d9d64['xlink:href']+_0xbe2820[_0x599f97(0x3da)]),Object['entries'](_0x5d9d64)[_0x599f97(0x3d6)](([_0x384de0,_0x1ebbd0])=>{const _0x354e89=_0x599f97;typeof _0x1ebbd0==_0x354e89(0x3ec)&&(_0x5d9d64[_0x384de0]=_0x1ebbd0[_0x354e89(0x3d8)](/url\(#(.*)\)/,_0x354e89(0x35f)+_0xbe2820['idSuffix']+')'));})),_0x5d9d64;}function _0x3d42(_0x4b9e98,_0x15c97d){const _0x308322=_0x3083();return _0x3d42=function(_0x3d42b9,_0x5043cc){_0x3d42b9=_0x3d42b9-0x192;let _0x44c8fa=_0x308322[_0x3d42b9];return _0x44c8fa;},_0x3d42(_0x4b9e98,_0x15c97d);}function ze(_0x10cd37,_0x3e4128){const _0x56dd87=_0x2dd085;var _0x3eda72;const {defIds:_0x170e3b}=_0x3e4128;return!_0x170e3b||_0x170e3b[_0x56dd87(0x37e)]===0x0?_0x10cd37:_0x10cd37[_0x56dd87(0x3f9)]===_0x56dd87(0x29a)&&((_0x3eda72=_0x10cd37[_0x56dd87(0x212)])!=null&&_0x3eda72[_0x56dd87(0x37e)])?{..._0x10cd37,'children':_0x10cd37['children'][_0x56dd87(0x2c0)](_0x5868f9=>typeof _0x5868f9['attrs']['id']==_0x56dd87(0x3ec)&&_0x170e3b&&_0x170e3b[_0x56dd87(0x3c2)](_0x5868f9[_0x56dd87(0x3f2)]['id'])?{..._0x5868f9,'attrs':{..._0x5868f9[_0x56dd87(0x3f2)],'id':_0x5868f9['attrs']['id']+_0x3e4128[_0x56dd87(0x3da)]}}:_0x5868f9)}:_0x10cd37;}function Je(){const _0x4e12d4=_0x2dd085;return Math['random']()['toString'](0x24)[_0x4e12d4(0x1cc)](0x2,0x8);}Ce[_0x2dd085(0x43e)]='UniverIcon';const Ze={'tag':_0x2dd085(0x313),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2dd085(0x2b3),'viewBox':'0\x200\x2016\x2016','width':_0x2dd085(0x304),'height':_0x2dd085(0x304)},'children':[{'tag':'g','attrs':{'clipPath':_0x2dd085(0x1f1)},'children':[{'tag':_0x2dd085(0x3d9),'attrs':{'stroke':_0x2dd085(0x2d5),'d':_0x2dd085(0x39f),'strokeLinecap':_0x2dd085(0x1a2),'strokeLinejoin':_0x2dd085(0x1a2),'strokeWidth':1.2}}]},{'tag':_0x2dd085(0x29a),'attrs':{},'children':[{'tag':_0x2dd085(0x1ab),'attrs':{'id':_0x2dd085(0x3ab)},'children':[{'tag':_0x2dd085(0x3d9),'attrs':{'fill':_0x2dd085(0x1b5),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2dd085(0x3ab)]},ye=A[_0x2dd085(0x3f6)](function(_0x4b68e1,_0x2c851d){const _0x583cc1=_0x2dd085;return A[_0x583cc1(0x24c)](Ce,Object['assign']({},_0x4b68e1,{'id':_0x583cc1(0x3cd),'ref':_0x2c851d,'icon':Ze}));});ye['displayName']=_0x2dd085(0x1de);const Qe={'tag':_0x2dd085(0x313),'attrs':{'xmlns':_0x2dd085(0x40a),'fill':_0x2dd085(0x2b3),'viewBox':_0x2dd085(0x229),'width':_0x2dd085(0x304),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x2dd085(0x2d5),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x2dd085(0x1a2),'strokeLinejoin':_0x2dd085(0x1a2),'strokeWidth':1.2}}]},{'tag':_0x2dd085(0x29a),'attrs':{},'children':[{'tag':_0x2dd085(0x1ab),'attrs':{'id':_0x2dd085(0x2af)},'children':[{'tag':_0x2dd085(0x3d9),'attrs':{'fill':_0x2dd085(0x1b5),'d':_0x2dd085(0x3c1),'transform':_0x2dd085(0x330)}}]}]}],'defIds':[_0x2dd085(0x2af)]},$e=A[_0x2dd085(0x3f6)](function(_0x26fe0c,_0xccd26e){const _0x450e33=_0x2dd085;return A[_0x450e33(0x24c)](Ce,Object[_0x450e33(0x389)]({},_0x26fe0c,{'id':_0x450e33(0x279),'ref':_0xccd26e,'icon':Qe}));});$e[_0x2dd085(0x43e)]='OnLineIcon';function et(_0x283880){const _0x4cc55b=_0x2dd085;switch(_0x283880){case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x36a)]:return _0x4cc55b(0x411);case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x25f)]:return'collabStatus.conflict';case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x1f6)]:return'collabStatus.fetchMiss';case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x19f)]:return _0x4cc55b(0x1e8);case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x3bf)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x4cc55b(0x2fe);case u[_0x4cc55b(0x3f8)][_0x4cc55b(0x36c)]:case u[_0x4cc55b(0x3f8)]['PENDING']:return'collabStatus.synced';}}function tt(_0x2cba83){const _0x24e65e=_0x2dd085,{status$:_0x3b7c62}=_0x2cba83,_0x2af2c1=O[_0x24e65e(0x32f)](_0x3b7c62,u[_0x24e65e(0x3f8)][_0x24e65e(0x19f)]),_0x3406b9=O[_0x24e65e(0x22a)](a[_0x24e65e(0x388)]),_0x306236=O[_0x24e65e(0x22a)](u[_0x24e65e(0x395)]),_0x52a2a4=_0x2af2c1!==u['CollaborationStatus'][_0x24e65e(0x36a)],_0x1580c7=_0x3406b9['t'](et(_0x2af2c1)),_0x374bbd=_0x52a2a4?M[_0x24e65e(0x420)]($e,{}):M[_0x24e65e(0x420)](ye,{}),_0x461fdd=A['useCallback'](()=>{const _0x15c25e=_0x24e65e;_0x52a2a4||_0x306236[_0x15c25e(0x32b)]();},[_0x52a2a4,_0x306236]);function _0x56d4cc(){const _0x4f4e1c=_0x24e65e;return M['jsxs'](_0x4f4e1c(0x2d6),{'className':_0x4f4e1c(0x336),'onClick':_0x461fdd,'children':[M[_0x4f4e1c(0x420)](_0x4f4e1c(0x2d6),{'className':p[_0x4f4e1c(0x2ec)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x52a2a4,'univer-text-red-500':!_0x52a2a4}),'children':_0x374bbd}),M[_0x4f4e1c(0x420)](_0x4f4e1c(0x2d6),{'className':_0x4f4e1c(0x1e3),'children':_0x1580c7})]});}return _0x52a2a4?_0x56d4cc():M[_0x24e65e(0x420)](p[_0x24e65e(0x387)],{'title':_0x3406b9['t'](_0x24e65e(0x38e)),'children':_0x56d4cc()});}var st=Object[_0x2dd085(0x251)],it=(_0x2408ca,_0x411b08,_0x4fd7aa,_0x3af11a)=>{const _0x560fa1=_0x2dd085;for(var _0x359816=_0x3af11a>0x1?void 0x0:_0x3af11a?st(_0x411b08,_0x4fd7aa):_0x411b08,_0x1f01db=_0x2408ca[_0x560fa1(0x37e)]-0x1,_0x480f78;_0x1f01db>=0x0;_0x1f01db--)(_0x480f78=_0x2408ca[_0x1f01db])&&(_0x359816=_0x480f78(_0x359816)||_0x359816);return _0x359816;},K=(_0x2b5926,_0x2df599)=>(_0x210104,_0x2d85d8)=>_0x2df599(_0x210104,_0x2d85d8,_0x2b5926);exports[_0x2dd085(0x333)]=class extends a[_0x2dd085(0x41f)]{constructor(_0x214d8a,_0x36006c,_0x371819,_0x3b38a2){const _0x344c5a=_0x2dd085;super(),_(this,_0x344c5a(0x36b),new I[(_0x344c5a(0x21a))](u[_0x344c5a(0x3f8)][_0x344c5a(0x19f)])),(this[_0x344c5a(0x1b7)]=_0x214d8a,this[_0x344c5a(0x196)]=_0x36006c,this[_0x344c5a(0x240)]=_0x371819,this['_uiPartsService']=_0x3b38a2,this[_0x344c5a(0x3d5)](),this[_0x344c5a(0x20b)]());}[_0x2dd085(0x20b)](){const _0x268901=_0x2dd085;this[_0x268901(0x34a)](this[_0x268901(0x1b7)]['focused$'][_0x268901(0x3c3)](I[_0x268901(0x38b)](()=>{const _0x44ba29=_0x268901,_0x1e3070=this[_0x44ba29(0x1b7)][_0x44ba29(0x215)]();return _0x1e3070?this[_0x44ba29(0x240)]['getCollabEntity$'](_0x1e3070[_0x44ba29(0x343)]()):I['of'](null);}),I['switchMap'](_0x1b0286=>_0x1b0286?_0x1b0286[_0x268901(0x3fb)]:I['of'](u[_0x268901(0x3f8)][_0x268901(0x19f)])))[_0x268901(0x2f1)](_0x21838e=>{const _0x3b448b=_0x268901;this[_0x3b448b(0x36b)][_0x3b448b(0x1ea)](_0x21838e);}));}[_0x2dd085(0x3d5)](){const _0x6553a6=_0x2dd085;this[_0x6553a6(0x34a)](this['_uiPartsService']['registerComponent'](O['BuiltInUIPart']['HEADER_MENU'],()=>O[_0x6553a6(0x2bc)](nt({'status$':this['_status$'][_0x6553a6(0x433)]()}),this[_0x6553a6(0x196)])));}},exports[_0x2dd085(0x333)]=it([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x2dd085(0x287)](a[_0x2dd085(0x297)])),K(0x2,a[_0x2dd085(0x287)](u['CollaborationController'])),K(0x3,O[_0x2dd085(0x1f4)])],exports[_0x2dd085(0x333)]);function nt(_0x1e6bd9){const {status$:_0x459dbb}=_0x1e6bd9;return function(){const _0x51e92e=_0x3d42;return M[_0x51e92e(0x420)](tt,{'status$':_0x459dbb});};}const Te=a[_0x2dd085(0x381)](_0x2dd085(0x34e));var rt=Object['getOwnPropertyDescriptor'],ot=(_0x60de5,_0x1a5ac5,_0x506f37,_0x4f4670)=>{const _0x3ec232=_0x2dd085;for(var _0x298edd=_0x4f4670>0x1?void 0x0:_0x4f4670?rt(_0x1a5ac5,_0x506f37):_0x1a5ac5,_0xfcde6b=_0x60de5[_0x3ec232(0x37e)]-0x1,_0x12f051;_0xfcde6b>=0x0;_0xfcde6b--)(_0x12f051=_0x60de5[_0xfcde6b])&&(_0x298edd=_0x12f051(_0x298edd)||_0x298edd);return _0x298edd;},j=(_0x4e679c,_0x1dadb8)=>(_0x31c133,_0x4f1d8d)=>_0x1dadb8(_0x31c133,_0x4f1d8d,_0x4e679c);exports[_0x2dd085(0x2b7)]=class extends a[_0x2dd085(0x221)]{constructor(_0x3c2472,_0x4a3c88,_0xd45972,_0x460bb0,_0x5153d8){const _0x493ee9=_0x2dd085;super(),this[_0x493ee9(0x238)]=_0x3c2472,this['_logService']=_0x4a3c88,this[_0x493ee9(0x274)]=_0xd45972,this[_0x493ee9(0x30c)]=_0x460bb0,_0x5153d8?_0x5153d8==null||_0x5153d8['whenReady']()[_0x493ee9(0x36d)](()=>this[_0x493ee9(0x34b)]()):(this[_0x493ee9(0x31e)]['debug'](_0x493ee9(0x3a1),_0x493ee9(0x370)),this[_0x493ee9(0x34b)]());}async[_0x2dd085(0x34b)](){const _0x221051=_0x2dd085,_0x43265a=this['_urlService'][_0x221051(0x2cf)](_0x221051(0x258)),_0x1b2f4e=this['_urlService']['getParam'](_0x221051(0x2d1)),_0x5e729c=this[_0x221051(0x238)][_0x221051(0x2cf)]('subunit');if(!_0x43265a||!_0x1b2f4e){this[_0x221051(0x31e)]['debug'](_0x221051(0x3a1),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x23a832=await this[_0x221051(0x30c)][_0x221051(0x422)](_0x43265a,Number(_0x1b2f4e),_0x5e729c);_0x23a832&&_0x23a832 instanceof a[_0x221051(0x261)]&&this[_0x221051(0x3b5)](_0x23a832);}async['_setupSubUnitSync'](_0x5d97e1){const _0x1ba3d2=_0x2dd085;await this[_0x1ba3d2(0x23c)](_0x5d97e1),_0x5d97e1[_0x1ba3d2(0x1ef)]['pipe'](I[_0x1ba3d2(0x1af)](this[_0x1ba3d2(0x29d)]))[_0x1ba3d2(0x2f1)](_0x4d9b44=>{_0x4d9b44&&this['_updateURLWithCurrentState'](_0x4d9b44);}),this[_0x1ba3d2(0x238)][_0x1ba3d2(0x222)]['pipe'](I[_0x1ba3d2(0x1af)](this[_0x1ba3d2(0x29d)]))[_0x1ba3d2(0x2f1)](()=>this[_0x1ba3d2(0x23c)](_0x5d97e1));}[_0x2dd085(0x3ba)](_0x2b5c88,_0x5d2e48=!0x1){const _0x5eb465=_0x2dd085,_0x47a5a1=this[_0x5eb465(0x238)][_0x5eb465(0x2cf)](_0x5eb465(0x371));_0x2b5c88['getSheetId']()!==_0x47a5a1&&this[_0x5eb465(0x238)][_0x5eb465(0x292)](_0x5eb465(0x371),_0x2b5c88[_0x5eb465(0x29f)](),_0x5d2e48);}async['_updateSubUnitFromURLParams'](_0x2fd32c){const _0x2059b4=_0x2dd085;var _0x5367d0;const _0x563e83=this['_urlService']['getParam'](_0x2059b4(0x371));if(!_0x563e83||!_0x2fd32c[_0x2059b4(0x417)](_0x563e83)){const _0x73e20c=_0x2fd32c['getUnhiddenWorksheets']()[0x0],_0x1f8d3e=_0x2fd32c['getSheetBySheetId'](_0x73e20c);if(!_0x1f8d3e)return;this[_0x2059b4(0x3ba)](_0x1f8d3e,!0x0),await this[_0x2059b4(0x274)]['executeCommand'](g[_0x2059b4(0x42f)]['id'],{'unitId':_0x2fd32c[_0x2059b4(0x343)](),'subUnitId':_0x73e20c});return;}((_0x5367d0=_0x2fd32c[_0x2059b4(0x362)]())==null?void 0x0:_0x5367d0['getSheetId']())!==_0x563e83&&await this[_0x2059b4(0x274)][_0x2059b4(0x32e)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x2fd32c[_0x2059b4(0x343)](),'subUnitId':_0x563e83});}},exports[_0x2dd085(0x2b7)]=ot([j(0x0,Te),j(0x1,a[_0x2dd085(0x19a)]),j(0x2,a[_0x2dd085(0x425)]),j(0x3,a[_0x2dd085(0x287)](u['DataLoaderService'])),j(0x4,a[_0x2dd085(0x402)](Xe[_0x2dd085(0x1e6)]))],exports[_0x2dd085(0x2b7)]);var at=Object['getOwnPropertyDescriptor'],ct=(_0x5bf6c9,_0x42b807,_0x160919,_0x28075e)=>{const _0x4e1b39=_0x2dd085;for(var _0x214a1c=_0x28075e>0x1?void 0x0:_0x28075e?at(_0x42b807,_0x160919):_0x42b807,_0x21292d=_0x5bf6c9[_0x4e1b39(0x37e)]-0x1,_0x14db62;_0x21292d>=0x0;_0x21292d--)(_0x14db62=_0x5bf6c9[_0x21292d])&&(_0x214a1c=_0x14db62(_0x214a1c)||_0x214a1c);return _0x214a1c;},Re=(_0x4d5de5,_0x1de776)=>(_0x30829f,_0x16ab7c)=>_0x1de776(_0x30829f,_0x16ab7c,_0x4d5de5);let de=class extends a[_0x2dd085(0x221)]{constructor(_0x3bf2d7,_0x555cdf){const _0x43b1bb=_0x2dd085;super(),this[_0x43b1bb(0x323)]=_0x3bf2d7,this[_0x43b1bb(0x1b3)]=_0x555cdf,this[_0x43b1bb(0x34b)]();}['_init'](){const _0x215bbb=_0x2dd085,_0x5a425f=this;this[_0x215bbb(0x34a)](this[_0x215bbb(0x323)][_0x215bbb(0x2d7)]({'onBeforePasteImage':async _0x189808=>{const _0x1172d1=_0x215bbb,_0x1714e9=await _0x5a425f[_0x1172d1(0x1b3)][_0x1172d1(0x2ee)](_0x189808);return _0x1714e9?{'source':_0x1714e9[_0x1172d1(0x308)],'imageSourceType':_0x1714e9['imageSourceType']}:null;}}));}};de=ct([Re(0x0,T[_0x2dd085(0x31c)]),Re(0x1,Ke[_0x2dd085(0x1f3)])],de);const be=['purple.300',_0x2dd085(0x1bb),_0x2dd085(0x2fd),_0x2dd085(0x270),'blue.400',_0x2dd085(0x272)];class pe extends a[_0x2dd085(0x41f)]{constructor(){const _0x2d1434=_0x2dd085;super(...arguments),_(this,_0x2d1434(0x2ac),new Map()),_(this,_0x2d1434(0x28a),0x0);}[_0x2dd085(0x1e7)](_0x45b3aa){const _0x1c84c3=_0x2dd085;if(this[_0x1c84c3(0x2ac)][_0x1c84c3(0x3c7)](_0x45b3aa))return this['_assignedColors']['get'](_0x45b3aa);const _0x30ac3f=be[this[_0x1c84c3(0x28a)]];return this[_0x1c84c3(0x28a)]=(this[_0x1c84c3(0x28a)]+0x1)%be['length'],this[_0x1c84c3(0x2ac)][_0x1c84c3(0x262)](_0x45b3aa,_0x30ac3f),_0x30ac3f;}}function xe(_0x17eafb){const _0x5f37d2=_0x2dd085;let _0x322ba1='';for(const _0x1477ee of _0x17eafb){const {startOffset:_0x2e32d8,endOffset:_0x3dc181,isActive:_0x4fdca9,rangeType:_0xfccdea,segmentId:_0x512a2d,segmentPage:_0x14b848}=_0x1477ee;_0x322ba1[_0x5f37d2(0x37e)]&&(_0x322ba1+=','),_0x322ba1+=_0x2e32d8+':'+_0x3dc181+':'+(_0x4fdca9?'1':'0')+':'+_0xfccdea+':'+_0x512a2d+':'+_0x14b848;}return _0x322ba1;}function lt(_0x1111a3){const _0x13f3e3=_0x2dd085,_0xe27b95=_0x1111a3['split'](','),_0x6def58=[];for(const _0x10b69e of _0xe27b95){const [_0x563170,_0x2b3a13,_0x24d984,_0x554b96,_0x5712a9,_0x1999d6]=_0x10b69e[_0x13f3e3(0x399)](':');_0x6def58['push']({'startOffset':Number(_0x563170),'endOffset':Number(_0x2b3a13),'collapsed':_0x563170===_0x2b3a13,'isActive':_0x24d984==='1','rangeType':_0x554b96===a[_0x13f3e3(0x38f)]['TEXT']?a[_0x13f3e3(0x38f)][_0x13f3e3(0x3c6)]:a[_0x13f3e3(0x38f)][_0x13f3e3(0x219)],'segmentId':typeof _0x5712a9==_0x13f3e3(0x3ec)?String(_0x5712a9):'','segmentPage':Number(_0x1999d6!=null?_0x1999d6:-0x1)});}return _0x6def58['some'](_0x5764aa=>_0x5764aa[_0x13f3e3(0x408)])||(_0x6def58[0x0][_0x13f3e3(0x408)]=!0x0),_0x6def58;}class Oe extends a[_0x2dd085(0x221)]{constructor(){super(...arguments),_(this,'_collabCursorState$',new I['BehaviorSubject'](null)),_(this,'collabCursorState$',this['_collabCursorState$']['asObservable']());}[_0x2dd085(0x23e)](_0x275be4){const _0x1513d1=_0x2dd085,{unitID:_0x1cfbcd,memberID:_0x482dd4,textRanges:_0x1819ef}=_0x275be4,_0x15e95b=xe(_0x1819ef);if(_0x15e95b==='')return;const _0x50ccb4={'unitID':_0x1cfbcd,'memberID':_0x482dd4,'selection':_0x15e95b};this[_0x1513d1(0x37d)][_0x1513d1(0x1ea)](_0x50ccb4);}}var _t=Object[_0x2dd085(0x251)],ht=(_0x535fe,_0x35cbff,_0x31f5e3,_0x2a889e)=>{const _0x441585=_0x2dd085;for(var _0x269c6d=_0x2a889e>0x1?void 0x0:_0x2a889e?_t(_0x35cbff,_0x31f5e3):_0x35cbff,_0x40329b=_0x535fe[_0x441585(0x37e)]-0x1,_0x56e145;_0x40329b>=0x0;_0x40329b--)(_0x56e145=_0x535fe[_0x40329b])&&(_0x269c6d=_0x56e145(_0x269c6d)||_0x269c6d);return _0x269c6d;},U=(_0x4c9c6a,_0x44da04)=>(_0xaec59a,_0x43236)=>_0x44da04(_0xaec59a,_0x43236,_0x4c9c6a);const ut=0x12c,It=0x64;let fe=class extends a[_0x2dd085(0x221)]{constructor(_0x49dd96,_0x23f165,_0x16f53a,_0x44c9f4,_0x1b4901,_0x38d1f1,_0x32396a,_0x45b20b,_0x4d6fee){const _0x37fba8=_0x2dd085;super(),_(this,_0x37fba8(0x276),!0x1),_(this,_0x37fba8(0x34b),!0x1),_(this,_0x37fba8(0x291),new I[(_0x37fba8(0x21a))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_(this,_0x37fba8(0x1a9),new I[(_0x37fba8(0x21a))]([])),_(this,'roomMembers$',this[_0x37fba8(0x1a9)][_0x37fba8(0x3c3)](I[_0x37fba8(0x1bd)](ut))),_(this,'_updateLocalCursor',a[_0x37fba8(0x2fa)](_0x5a5191=>{const _0x10833a=_0x37fba8,_0x374555={'eventID':v['CollaborationEvent'][_0x10833a(0x25d)],'data':{'unitID':this[_0x10833a(0x1b8)],'memberID':this[_0x10833a(0x2c7)][_0x10833a(0x368)](),'selection':xe(_0x5a5191)}};this[_0x10833a(0x2c7)][_0x10833a(0x2a3)](_0x374555,this[_0x10833a(0x1b8)]);},It)),(this['unitID']=_0x49dd96,this[_0x37fba8(0x2c7)]=_0x23f165,this[_0x37fba8(0x196)]=_0x16f53a,this[_0x37fba8(0x1a0)]=_0x44c9f4,this[_0x37fba8(0x2e7)]=_0x1b4901,this[_0x37fba8(0x436)]=_0x38d1f1,this['_transformService']=_0x32396a,this[_0x37fba8(0x1b7)]=_0x45b20b,this[_0x37fba8(0x274)]=_0x4d6fee);}get[_0x2dd085(0x216)](){const _0x45c55e=_0x2dd085;return this[_0x45c55e(0x291)][_0x45c55e(0x33a)]();}get[_0x2dd085(0x314)](){const _0x8f6d42=_0x2dd085;return this[_0x8f6d42(0x1a9)][_0x8f6d42(0x33a)]();}[_0x2dd085(0x20f)](){const _0x1f8e22=_0x2dd085;super[_0x1f8e22(0x20f)](),this[_0x1f8e22(0x291)][_0x1f8e22(0x1ea)](new Map()),this['_cursorInfo$'][_0x1f8e22(0x412)](),this[_0x1f8e22(0x1a9)]['next']([]),this[_0x1f8e22(0x1a9)][_0x1f8e22(0x412)]();}[_0x2dd085(0x331)](){const _0x5a16c8=_0x2dd085;this[_0x5a16c8(0x34b)]||(this[_0x5a16c8(0x34b)]=!0x0,this['_session'][_0x5a16c8(0x3a0)][_0x5a16c8(0x3c3)](I['takeUntil'](this['dispose$']))['subscribe'](_0x456dc6=>{const _0x59ac2f=_0x5a16c8;_0x456dc6===u['SessionStatus'][_0x59ac2f(0x1f2)]?this['_toggleOnline']():this[_0x59ac2f(0x237)]();}),this[_0x5a16c8(0x2c7)][_0x5a16c8(0x375)][_0x5a16c8(0x3c3)](I[_0x5a16c8(0x1af)](this[_0x5a16c8(0x29d)]))[_0x5a16c8(0x2f1)](_0x3e1310=>{const _0x1a191d=_0x5a16c8,_0x1a9b0b=_0x3e1310[_0x1a191d(0x2d4)];_0x1a9b0b===v[_0x1a191d(0x3bc)][_0x1a191d(0x25d)]&&this[_0x1a191d(0x265)](_0x3e1310),_0x1a9b0b===v[_0x1a191d(0x3bc)][_0x1a191d(0x34d)]&&this[_0x1a191d(0x2e3)](_0x3e1310);}),this[_0x5a16c8(0x34a)](this[_0x5a16c8(0x274)][_0x5a16c8(0x2dc)](_0xe5fb48=>{const _0x24cd68=_0x5a16c8,_0x3d286f=_0xe5fb48[_0x24cd68(0x1e2)];_0x3d286f!=null&&this[_0x24cd68(0x276)]&&_0xe5fb48['id']===W[_0x24cd68(0x21e)]['id']&&_0x3d286f[_0x24cd68(0x1b1)]===this[_0x24cd68(0x1b8)]&&_0x3d286f['isEditing']===!0x1&&_0x3d286f[_0x24cd68(0x3e3)][_0x24cd68(0x37e)]>0x0&&this[_0x24cd68(0x2bd)](_0x3d286f[_0x24cd68(0x3e3)]);})),this[_0x5a16c8(0x436)][_0x5a16c8(0x2ea)]['pipe'](I[_0x5a16c8(0x1af)](this[_0x5a16c8(0x29d)]))[_0x5a16c8(0x2f1)](_0x21f635=>{const _0x22d0ce=_0x5a16c8;if((_0x21f635==null?void 0x0:_0x21f635[_0x22d0ce(0x1b8)])!==this[_0x22d0ce(0x1b8)])return;const _0x2e4434={'eventID':v[_0x22d0ce(0x3bc)][_0x22d0ce(0x25d)],'data':_0x21f635};this[_0x22d0ce(0x265)](_0x2e4434);}),this[_0x5a16c8(0x34a)](this[_0x5a16c8(0x274)][_0x5a16c8(0x2dc)](_0x1c3b17=>{const _0x36245c=_0x5a16c8;if(_0x1c3b17['params']==null)return;const _0xe4fcb5=_0x1c3b17[_0x36245c(0x1e2)];if(_0x1c3b17['id']!==W[_0x36245c(0x3db)]['id']||_0xe4fcb5[_0x36245c(0x1b1)]!==this[_0x36245c(0x1b8)])return;const _0x370e63={'id':_0x36245c(0x1d0),'params':_0xe4fcb5},_0x1d5023=this[_0x36245c(0x216)];for(const [_0x294db2,_0x539dac]of _0x1d5023){const _0x17bc62={'id':_0x36245c(0x1d0),'params':{'unitId':this[_0x36245c(0x1b8)],'actions':null,'textRanges':_0x539dac[_0x36245c(0x3e3)]}},_0x1eb22d=this['_transformService'][_0x36245c(0x320)](_0x370e63,_0x17bc62,!0x1);if(v[_0x36245c(0x24f)](_0x1eb22d))throw _0x1eb22d['error'];_0x1d5023['set'](_0x294db2,{..._0x539dac,'ranges':_0x1eb22d[_0x36245c(0x27e)][_0x36245c(0x1e2)][_0x36245c(0x2ad)]});}queueMicrotask(()=>{const _0x3255e8=_0x36245c;this[_0x3255e8(0x291)][_0x3255e8(0x1ea)](_0x1d5023);});})));}[_0x2dd085(0x265)](_0x232018){const _0x49becb=_0x2dd085;var _0x76faa1,_0xf37a15;const {memberID:_0x37616d,selection:_0x13ec4a}=_0x232018[_0x49becb(0x332)],_0x13a494=lt(_0x13ec4a),_0x173bec=(_0xf37a15=(_0x76faa1=this['_memberService']['getMember'](this[_0x49becb(0x1b8)],_0x37616d))==null?void 0x0:_0x76faa1[_0x49becb(0x31f)])!=null?_0xf37a15:_0x49becb(0x2f0),_0x33b1ab={'color':this[_0x49becb(0x1a0)]['assignAColorForMemberID'](_0x37616d),'name':_0x173bec,'ranges':_0x13a494},_0x397b9c=this[_0x49becb(0x216)];_0x397b9c['set'](_0x37616d,_0x33b1ab),this[_0x49becb(0x291)][_0x49becb(0x1ea)](_0x397b9c);}[_0x2dd085(0x2e3)](_0x2017d4){const _0xd2c708=_0x2dd085,{memberID:_0x84a595}=_0x2017d4[_0xd2c708(0x332)],_0x19de49=this[_0xd2c708(0x216)];_0x19de49[_0xd2c708(0x35c)](_0x84a595),this['_cursorInfo$']['next'](_0x19de49);}[_0x2dd085(0x30b)](){const _0x290760=_0x2dd085;var _0x26645e;if(this[_0x290760(0x276)]=!0x0,((_0x26645e=this[_0x290760(0x1b7)][_0x290760(0x215)]())==null?void 0x0:_0x26645e['getUnitId']())!==this[_0x290760(0x1b8)])return;const _0x255180=this['_injector'][_0x290760(0x1d6)](W[_0x290760(0x202)])[_0x290760(0x3c8)]();Array[_0x290760(0x2d8)](_0x255180)&&_0x255180[_0x290760(0x37e)]>0x0&&this[_0x290760(0x2bd)](_0x255180);}[_0x2dd085(0x237)](){const _0x1eaeac=_0x2dd085;this[_0x1eaeac(0x276)]=!0x1;}};fe=ht([U(0x2,a['Inject'](a['Injector'])),U(0x3,a['Inject'](pe)),U(0x4,a[_0x2dd085(0x287)](u[_0x2dd085(0x31b)])),U(0x5,a[_0x2dd085(0x287)](Oe)),U(0x6,v[_0x2dd085(0x268)]),U(0x7,a[_0x2dd085(0x23a)]),U(0x8,a['ICommandService'])],fe);var St=Object[_0x2dd085(0x251)],dt=(_0x2a5112,_0x23ad92,_0x1d554f,_0x3c71c5)=>{const _0x3f7712=_0x2dd085;for(var _0x484c28=_0x3c71c5>0x1?void 0x0:_0x3c71c5?St(_0x23ad92,_0x1d554f):_0x23ad92,_0x40b6a8=_0x2a5112[_0x3f7712(0x37e)]-0x1,_0x1d2bca;_0x40b6a8>=0x0;_0x40b6a8--)(_0x1d2bca=_0x2a5112[_0x40b6a8])&&(_0x484c28=_0x1d2bca(_0x484c28)||_0x484c28);return _0x484c28;},w=(_0x3c36f8,_0xd882fb)=>(_0x102b20,_0x3e7958)=>_0xd882fb(_0x102b20,_0x3e7958,_0x3c36f8);const ft=0x12c,mt=0x64,gt=()=>{let _0x50d659=[],_0x451ef4=!0x1;return _0x5c4eef=>{const _0x2c5478=_0x3d42;_0x50d659[_0x2c5478(0x3f7)](_0x5c4eef),_0x451ef4||(_0x451ef4=!0x0,setTimeout(()=>{const _0x2e30e3=_0x2c5478;_0x50d659[_0x2e30e3(0x3d6)](_0xd3f6ea=>_0xd3f6ea()),_0x50d659=[],_0x451ef4=!0x1;}));};};let me=class extends a[_0x2dd085(0x221)]{constructor(_0x1f4453,_0x43598d,_0x5c16e3,_0x58aba2,_0x1caf80,_0x4483a4,_0x304e6c,_0x1b8867){const _0x2b252d=_0x2dd085;super(),_(this,_0x2b252d(0x276),!0x1),_(this,_0x2b252d(0x34b),!0x1),_(this,_0x2b252d(0x291),new I[(_0x2b252d(0x21a))](new Map())),_(this,_0x2b252d(0x3cb),this[_0x2b252d(0x291)][_0x2b252d(0x433)]()),_(this,_0x2b252d(0x1a9),new I[(_0x2b252d(0x21a))]([])),_(this,_0x2b252d(0x250),this[_0x2b252d(0x1a9)][_0x2b252d(0x3c3)](I[_0x2b252d(0x1bd)](ft))),_(this,_0x2b252d(0x2bd),a[_0x2b252d(0x2fa)]((_0x511181,_0x357fef)=>{const _0x1ee5ba=_0x2b252d,_0x1014bd={'eventID':v[_0x1ee5ba(0x3bc)][_0x1ee5ba(0x25d)],'data':{'unitID':this[_0x1ee5ba(0x1b8)],'memberID':this[_0x1ee5ba(0x2c7)][_0x1ee5ba(0x368)](),'selection':x[_0x1ee5ba(0x428)](_0x511181,_0x357fef[_0x1ee5ba(0x3e8)])}};this[_0x1ee5ba(0x2c7)][_0x1ee5ba(0x2a3)](_0x1014bd,this[_0x1ee5ba(0x1b8)]);},mt)),(this[_0x2b252d(0x1b8)]=_0x1f4453,this[_0x2b252d(0x2c7)]=_0x43598d,this[_0x2b252d(0x196)]=_0x5c16e3,this[_0x2b252d(0x1a0)]=_0x58aba2,this[_0x2b252d(0x2e7)]=_0x1caf80,this['_univerInstanceService']=_0x4483a4,this['_commandService']=_0x304e6c,this[_0x2b252d(0x247)]=_0x1b8867);}get[_0x2dd085(0x216)](){const _0x247a6f=_0x2dd085;return this[_0x247a6f(0x291)][_0x247a6f(0x33a)]();}get[_0x2dd085(0x314)](){const _0x131994=_0x2dd085;return this[_0x131994(0x1a9)][_0x131994(0x33a)]();}[_0x2dd085(0x20f)](){const _0x39b61c=_0x2dd085;super[_0x39b61c(0x20f)](),this['_cursorInfo$']['next'](new Map()),this[_0x39b61c(0x291)][_0x39b61c(0x412)](),this[_0x39b61c(0x1a9)]['next']([]),this[_0x39b61c(0x1a9)][_0x39b61c(0x412)]();}[_0x2dd085(0x331)](){const _0x6133bb=_0x2dd085;this['_init']||(this[_0x6133bb(0x34b)]=!0x0,this[_0x6133bb(0x2c7)][_0x6133bb(0x3a0)][_0x6133bb(0x3c3)](I[_0x6133bb(0x1af)](this[_0x6133bb(0x29d)]))[_0x6133bb(0x2f1)](_0x1f999a=>{const _0x42bbf5=_0x6133bb;_0x1f999a===u['SessionStatus']['ONLINE']?this[_0x42bbf5(0x30b)]():this[_0x42bbf5(0x237)]();}),this[_0x6133bb(0x2c7)][_0x6133bb(0x375)][_0x6133bb(0x3c3)](I[_0x6133bb(0x1af)](this['dispose$']))[_0x6133bb(0x2f1)](_0x419c2c=>{const _0x1f813a=_0x6133bb,_0x97bf97=_0x419c2c['eventID'];_0x97bf97===v[_0x1f813a(0x3bc)][_0x1f813a(0x25d)]&&this[_0x1f813a(0x265)](_0x419c2c),_0x97bf97===v[_0x1f813a(0x3bc)]['USERS_LEAVE']&&this[_0x1f813a(0x2e3)](_0x419c2c);}),this[_0x6133bb(0x31a)](),this[_0x6133bb(0x34a)](this[_0x6133bb(0x274)][_0x6133bb(0x2dc)](_0x5b665e=>{const _0x101ee1=_0x6133bb;if(this[_0x101ee1(0x276)]&&_0x5b665e['id']===g[_0x101ee1(0x1fa)]['id']&&_0x5b665e[_0x101ee1(0x1e2)]['unitId']===this[_0x101ee1(0x1b8)]){const _0x49bf75=_0x5b665e['params'];this['_updateLocalCursor'](_0x49bf75[_0x101ee1(0x38c)],_0x49bf75['selections'][0x0]);}})));}[_0x2dd085(0x265)](_0x3786a6){const _0x20834c=_0x2dd085;var _0x545bcd,_0x5c5bd9;const {memberID:_0x29fcf4,selection:_0x132b96}=_0x3786a6[_0x20834c(0x332)],{sheetName:_0x44c822,range:_0x2c3fbe}=x['deserializeRangeWithSheet'](_0x132b96),_0x57cad7={'name':(_0x5c5bd9=(_0x545bcd=this[_0x20834c(0x2e7)][_0x20834c(0x43b)](this[_0x20834c(0x1b8)],_0x29fcf4))==null?void 0x0:_0x545bcd[_0x20834c(0x31f)])!=null?_0x5c5bd9:'Unknown\x20user','range':this[_0x20834c(0x2e6)](_0x44c822,_0x2c3fbe),'sheetID':_0x44c822,'color':this[_0x20834c(0x1a0)]['assignAColorForMemberID'](_0x29fcf4),'selection':_0x132b96},_0x40c44f=this[_0x20834c(0x216)];_0x40c44f[_0x20834c(0x262)](_0x29fcf4,_0x57cad7),this[_0x20834c(0x291)]['next'](_0x40c44f);}[_0x2dd085(0x2e3)](_0x17e1b6){const _0x52eb7b=_0x2dd085,{memberID:_0x1d8edc}=_0x17e1b6[_0x52eb7b(0x332)],_0xdd4547=this['cursorInfo'];_0xdd4547['delete'](_0x1d8edc),this[_0x52eb7b(0x291)][_0x52eb7b(0x1ea)](_0xdd4547);}[_0x2dd085(0x2e6)](_0x44fe23,_0x5d6015){const _0x2a3b33=_0x2dd085;var _0x43e7d9,_0x57d287;const _0x472940=(_0x57d287=(_0x43e7d9=this[_0x2a3b33(0x1b7)][_0x2a3b33(0x23b)](this['unitID']))==null?void 0x0:_0x43e7d9['getSheetBySheetId'](_0x44fe23))==null?void 0x0:_0x57d287[_0x2a3b33(0x259)]();return(_0x472940==null?void 0x0:_0x472940[_0x2a3b33(0x241)](_0x4d6ce2=>a[_0x2a3b33(0x3e0)]['contains'](_0x4d6ce2,_0x5d6015)))||_0x5d6015;}[_0x2dd085(0x31a)](){const _0x1d0e6b=_0x2dd085,_0x5b956a=new a['DisposableCollection'](),_0x5c6af7=gt(),_0xaf0d78=()=>{const _0x3038f3=_0x3d42;_0x5b956a[_0x3038f3(0x20f)]();const _0x45c623=(_0x2abc85,_0x4748fc,_0xd155f2,_0x1af59f)=>{const _0x540787=_0x3038f3;let _0x4c9944=[];switch(_0x2abc85['id']){case g[_0x540787(0x2c2)][_0x540787(0x434)]:{_0x4c9944=g[_0x540787(0x38d)](_0x2abc85,_0x1af59f);break;}case g[_0x540787(0x2c2)][_0x540787(0x21f)]:{_0x4c9944=g[_0x540787(0x396)](_0x2abc85,_0x1af59f);break;}case g['EffectRefRangId'][_0x540787(0x214)]:{_0x4c9944=g[_0x540787(0x2b5)](_0x2abc85,_0x1af59f);break;}case g[_0x540787(0x2c2)][_0x540787(0x3e5)]:{_0x4c9944=g[_0x540787(0x235)](_0x2abc85,_0x1af59f);break;}case g['EffectRefRangId'][_0x540787(0x41a)]:{_0x4c9944=g['handleInsertRangeMoveRight'](_0x2abc85,_0x1af59f);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x4c9944=g[_0x540787(0x372)](_0x2abc85,_0x1af59f);break;}case g[_0x540787(0x2c2)]['MoveRangeCommandId']:{_0x4c9944=g[_0x540787(0x21c)](_0x2abc85,_0x1af59f);break;}case g[_0x540787(0x2c2)]['RemoveColCommandId']:{_0x4c9944=g[_0x540787(0x35e)](_0x2abc85,_0x1af59f);break;}case g['EffectRefRangId'][_0x540787(0x340)]:{_0x4c9944=g['handleIRemoveRow'](_0x2abc85,_0x1af59f);break;}}const _0x2e5dec=g[_0x540787(0x2bb)](_0x4c9944,_0x1af59f),_0x4800f=this[_0x540787(0x216)][_0x540787(0x1d6)](_0x4748fc);if(_0x4800f&&_0x2e5dec){const _0x585769={..._0x4800f,'range':_0x2e5dec};this[_0x540787(0x216)][_0x540787(0x262)](_0x4748fc,_0x585769),_0x5c6af7(()=>{const _0x4bcf5d=_0x540787,_0x1f10d4=this[_0x4bcf5d(0x247)]['registerRefRange'](_0x2e5dec,_0x2cf851=>(_0x1f10d4[_0x4bcf5d(0x20f)](),_0x45c623(_0x2cf851,_0x4748fc,_0xd155f2,_0x2e5dec)));_0x5b956a[_0x4bcf5d(0x30e)](_0x1f10d4);});}return{'redos':[],'undos':[]};};this[_0x3038f3(0x216)][_0x3038f3(0x3d6)]((_0x54c823,_0x5c48b6)=>{const _0x2a4edd=_0x3038f3,{range:_0x2f14e9,sheetID:_0x44e030}=_0x54c823,_0x6ffe9c=this[_0x2a4edd(0x247)][_0x2a4edd(0x366)](_0x2f14e9,_0x5d8832=>(_0x6ffe9c[_0x2a4edd(0x20f)](),_0x45c623(_0x5d8832,_0x5c48b6,_0x44e030,_0x2f14e9)));_0x5b956a['add'](_0x6ffe9c);});};this['disposeWithMe'](a['toDisposable'](this[_0x1d0e6b(0x291)]['subscribe'](()=>{_0xaf0d78();})));}[_0x2dd085(0x30b)](){const _0x558556=_0x2dd085;var _0x29056a,_0x52812c;if(this[_0x558556(0x276)]=!0x0,((_0x29056a=this[_0x558556(0x1b7)][_0x558556(0x215)]())==null?void 0x0:_0x29056a[_0x558556(0x343)]())!==this[_0x558556(0x1b8)])return;const _0x343f0f=(_0x52812c=this[_0x558556(0x196)][_0x558556(0x1d6)](g[_0x558556(0x1d5)])[_0x558556(0x38a)]())==null?void 0x0:_0x52812c[0x0],_0x23937d=this['_univerInstanceService'][_0x558556(0x384)](a[_0x558556(0x29c)][_0x558556(0x3cf)])[_0x558556(0x362)]();_0x343f0f&&_0x23937d&&this[_0x558556(0x2bd)](_0x23937d[_0x558556(0x29f)](),_0x343f0f);}[_0x2dd085(0x237)](){this['_online']=!0x1;}};me=dt([w(0x2,a['Inject'](a[_0x2dd085(0x297)])),w(0x3,a[_0x2dd085(0x287)](pe)),w(0x4,a['Inject'](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2dd085(0x425)]),w(0x7,a['Inject'](g[_0x2dd085(0x3cc)]))],me);var vt=Object[_0x2dd085(0x251)],Et=(_0x2085d0,_0x27ccd2,_0x4f85b9,_0x1bfc92)=>{for(var _0x571e4f=_0x1bfc92>0x1?void 0x0:_0x1bfc92?vt(_0x27ccd2,_0x4f85b9):_0x27ccd2,_0x304407=_0x2085d0['length']-0x1,_0x1555bc;_0x304407>=0x0;_0x304407--)(_0x1555bc=_0x2085d0[_0x304407])&&(_0x571e4f=_0x1555bc(_0x571e4f)||_0x571e4f);return _0x571e4f;},oe=(_0x56599b,_0x47f3ef)=>(_0x27fb71,_0x2cbecb)=>_0x47f3ef(_0x27fb71,_0x2cbecb,_0x56599b);let B=class extends a['RxDisposable']{constructor(_0x3e482f,_0x3d4831,_0x1610f7){const _0x513f7a=_0x2dd085;super(),_(this,_0x513f7a(0x439),new Map()),_(this,_0x513f7a(0x218),new I[(_0x513f7a(0x1f7))]()),(this[_0x513f7a(0x1b7)]=_0x3e482f,this[_0x513f7a(0x196)]=_0x3d4831,this[_0x513f7a(0x41c)]=_0x1610f7,this[_0x513f7a(0x34b)]());}[_0x2dd085(0x20f)](){const _0x10d5be=_0x2dd085;super[_0x10d5be(0x20f)](),this['_entityInit$'][_0x10d5be(0x412)](),this[_0x10d5be(0x439)][_0x10d5be(0x3d6)](_0x3a0595=>_0x3a0595[_0x10d5be(0x20f)]());}['getCollabCursors$'](_0x476fc4){const _0x5ccc76=_0x2dd085;return this['_entities'][_0x5ccc76(0x3c7)](_0x476fc4)?this[_0x5ccc76(0x439)][_0x5ccc76(0x1d6)](_0x476fc4)[_0x5ccc76(0x3cb)]:this[_0x5ccc76(0x218)][_0x5ccc76(0x3c3)](I[_0x5ccc76(0x2a6)](_0x13937c=>_0x13937c[_0x5ccc76(0x1b8)]===_0x476fc4),I['switchMap'](_0x47b4f6=>_0x47b4f6[_0x5ccc76(0x3cb)]));}['_init'](){const _0x38c819=_0x2dd085;this[_0x38c819(0x1b7)][_0x38c819(0x194)](a[_0x38c819(0x29c)][_0x38c819(0x3cf)])[_0x38c819(0x3c3)](I[_0x38c819(0x1af)](this[_0x38c819(0x29d)]))[_0x38c819(0x2f1)](async _0x4f30df=>{const _0x2f6bcb=_0x38c819,_0x1452bc=_0x4f30df[_0x2f6bcb(0x343)](),_0x254f9d=await this['_startSheetCollabCursor'](_0x1452bc);this[_0x2f6bcb(0x218)]['next'](_0x254f9d),this[_0x2f6bcb(0x439)][_0x2f6bcb(0x262)](_0x1452bc,_0x254f9d);}),this[_0x38c819(0x1b7)][_0x38c819(0x194)](a[_0x38c819(0x29c)][_0x38c819(0x312)])[_0x38c819(0x3c3)](I['takeUntil'](this[_0x38c819(0x29d)]))[_0x38c819(0x3c3)](I[_0x38c819(0x2a6)](_0x2f2876=>!_0x2f2876[_0x38c819(0x343)]()['startsWith']('__')))[_0x38c819(0x2f1)](async _0x42e441=>{const _0x803214=_0x38c819,_0x32308f=_0x42e441[_0x803214(0x343)](),_0x311cda=await this['_startDocCollabCursor'](_0x32308f);this[_0x803214(0x218)]['next'](_0x311cda),this[_0x803214(0x439)]['set'](_0x32308f,_0x311cda);}),I['merge'](this[_0x38c819(0x1b7)][_0x38c819(0x2cd)](a[_0x38c819(0x29c)][_0x38c819(0x312)]),this[_0x38c819(0x1b7)][_0x38c819(0x2cd)](a[_0x38c819(0x29c)][_0x38c819(0x3cf)]))[_0x38c819(0x3c3)](I[_0x38c819(0x1af)](this[_0x38c819(0x29d)]))['subscribe'](_0x36f6b2=>{const _0x47539f=_0x38c819,_0x51855c=_0x36f6b2[_0x47539f(0x343)](),_0x332bea=this[_0x47539f(0x439)][_0x47539f(0x1d6)](_0x51855c);_0x332bea&&(_0x332bea[_0x47539f(0x20f)](),this[_0x47539f(0x439)][_0x47539f(0x35c)](_0x51855c));});}async['_startSheetCollabCursor'](_0x2453d6){const _0x3f11fe=_0x2dd085,_0x394cc3=await this[_0x3f11fe(0x41c)]['requireSession'](_0x2453d6),_0x1a498c=this[_0x3f11fe(0x196)][_0x3f11fe(0x3a9)](me,_0x2453d6,_0x394cc3);return _0x1a498c[_0x3f11fe(0x331)](),_0x1a498c;}async[_0x2dd085(0x28e)](_0x3210c5){const _0x588eb0=_0x2dd085,_0x3aecf6=await this['_collabSessionService'][_0x588eb0(0x2b2)](_0x3210c5),_0x138997=this[_0x588eb0(0x196)]['createInstance'](fe,_0x3210c5,_0x3aecf6);return _0x138997[_0x588eb0(0x331)](),_0x138997;}};B=Et([oe(0x0,a['IUniverInstanceService']),oe(0x1,a['Inject'](a[_0x2dd085(0x297)])),oe(0x2,a[_0x2dd085(0x287)](u['CollaborationSessionService']))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function Tt(_0xd1050b,_0x33a4e0){const _0x51c277=_0x2dd085;let {radius:_0x43a744,width:_0x5aeedf,height:_0x42db10}=_0x33a4e0;_0x43a744=_0x43a744!=null?_0x43a744:0x0,_0x5aeedf=_0x5aeedf!=null?_0x5aeedf:0x1e,_0x42db10=_0x42db10!=null?_0x42db10:0x1e;let _0x279c40=0x0,_0x2b3756=0x0,_0x35bd69=0x0;_0x279c40=_0x2b3756=_0x35bd69=Math['min'](_0x43a744,_0x5aeedf/0x2,_0x42db10/0x2),_0xd1050b['beginPath'](),_0xd1050b[_0x51c277(0x24e)](_0x279c40,0x0),_0xd1050b[_0x51c277(0x283)](_0x5aeedf-_0x2b3756,0x0),_0xd1050b[_0x51c277(0x1be)](_0x5aeedf-_0x2b3756,_0x2b3756,_0x2b3756,Math['PI']*0x3/0x2,0x0,!0x1),_0xd1050b['lineTo'](_0x5aeedf,_0x42db10-_0x35bd69),_0xd1050b[_0x51c277(0x1be)](_0x5aeedf-_0x35bd69,_0x42db10-_0x35bd69,_0x35bd69,0x0,Math['PI']/0x2,!0x1),_0xd1050b[_0x51c277(0x283)](0x0,_0x42db10),_0xd1050b[_0x51c277(0x283)](0x0,_0x279c40),_0xd1050b[_0x51c277(0x1be)](_0x279c40,_0x279c40,_0x279c40,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xd1050b[_0x51c277(0x42e)](),_0x33a4e0[_0x51c277(0x421)]&&(_0xd1050b[_0x51c277(0x301)](),_0xd1050b[_0x51c277(0x349)]=_0x33a4e0['fill'],_0x33a4e0[_0x51c277(0x2bf)]===_0x51c277(0x2b1)?_0xd1050b['fill'](_0x51c277(0x2b1)):_0xd1050b[_0x51c277(0x421)](),_0xd1050b[_0x51c277(0x2da)]());}class ie extends C['Shape']{constructor(_0x7089d3,_0x2e0ee7){const _0x179e80=_0x2dd085;super(_0x7089d3,_0x2e0ee7),_(this,_0x179e80(0x19d)),_(this,_0x179e80(0x33d)),(this[_0x179e80(0x19d)]=_0x2e0ee7==null?void 0x0:_0x2e0ee7[_0x179e80(0x19d)],this[_0x179e80(0x33d)]=_0x2e0ee7==null?void 0x0:_0x2e0ee7[_0x179e80(0x33d)]);}static['drawWith'](_0x35c956,_0x321343){const _0x3bc2c7=_0x2dd085,{text:_0x2a79ec,color:_0x3ab2da}=_0x321343;_0x35c956['save'](),_0x35c956[_0x3bc2c7(0x2f5)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x398a8d=_0x35c956[_0x3bc2c7(0x1e4)](_0x2a79ec)[_0x3bc2c7(0x1cd)],_0x387c1c=Math[_0x3bc2c7(0x3a2)](_0x398a8d+0x2*ae,De);Tt(_0x35c956,{'height':X,'radius':0x4,'width':_0x387c1c,'fill':_0x3ab2da}),_0x35c956[_0x3bc2c7(0x349)]='#FFF';const _0x3ec190=ae,_0x3b7d49=X-Ct,_0x4670f3=De-0x2*ae;if(_0x398a8d>_0x4670f3){let _0x43d775='',_0x28c987=0x0;for(const _0x3d87ac of _0x2a79ec){const _0x23987c=_0x35c956[_0x3bc2c7(0x1e4)](_0x3d87ac)['width'];if(_0x28c987+_0x23987c<=_0x4670f3-_0x35c956['measureText'](_0x3bc2c7(0x3f0))[_0x3bc2c7(0x1cd)])_0x43d775+=_0x3d87ac,_0x28c987+=_0x23987c;else{_0x43d775+=_0x3bc2c7(0x3f0);break;}}_0x35c956[_0x3bc2c7(0x254)](_0x43d775,_0x3ec190,_0x3b7d49);}else _0x35c956['fillText'](_0x2a79ec,_0x3ec190,_0x3b7d49);_0x35c956[_0x3bc2c7(0x2da)]();}['_draw'](_0x5c17e9){const _0x192320=_0x2dd085;ie[_0x192320(0x205)](_0x5c17e9,this);}}const ce=_0x2dd085(0x3d1),pt=_0x2dd085(0x358),Ot=_0x2dd085(0x31d),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x2dd085(0x2ca);class Ne{constructor(_0x36aefe,_0x5bbb3e,_0x30ab7c,_0x444f8c){const _0x3e1ffd=_0x2dd085;_(this,_0x3e1ffd(0x3c9),[]),_(this,_0x3e1ffd(0x20d),null),_(this,_0x3e1ffd(0x256),null),_(this,_0x3e1ffd(0x298),null),_(this,_0x3e1ffd(0x1a4),null),_(this,_0x3e1ffd(0x2d2),null),(this[_0x3e1ffd(0x1e0)]=_0x36aefe,this[_0x3e1ffd(0x1d4)]=_0x5bbb3e,this[_0x3e1ffd(0x41b)]=_0x30ab7c,this[_0x3e1ffd(0x374)]=_0x444f8c,this['_render']());}set[_0x2dd085(0x249)](_0x28430e){const _0x3f555c=_0x2dd085;_0x28430e?(this[_0x3f555c(0x298)]&&this[_0x3f555c(0x298)]['hide'](),this[_0x3f555c(0x256)]&&this[_0x3f555c(0x256)]['show']()):(this['_anchorDot']&&this['_anchorDot'][_0x3f555c(0x3e9)](),this[_0x3f555c(0x256)]&&this[_0x3f555c(0x256)][_0x3f555c(0x28d)]());}['dispose'](){const _0x469b2d=_0x2dd085;for(const _0x58b49d of this[_0x469b2d(0x3c9)])_0x58b49d['dispose']();this[_0x469b2d(0x256)]&&this[_0x469b2d(0x256)]['dispose'](),this['_anchorDot']&&this[_0x469b2d(0x298)]['dispose'](),this[_0x469b2d(0x20d)]&&this['_anchor']['dispose'](),this[_0x469b2d(0x2d2)]&&this['_eventUnsubscribe']();}[_0x2dd085(0x234)](){const _0x1a3374=_0x2dd085;var _0x11c4a1;const {_docSkeleton:_0x2b8ac5,_document:_0x16951f}=this,{color:_0x247317,name:_0x4e9e54,ranges:_0x11ea84}=this[_0x1a3374(0x1e0)],_0x4a9aaa=_0x16951f[_0x1a3374(0x302)](),{docsLeft:_0x4cdc2f,docsTop:_0x1f90ef}=_0x4a9aaa,_0x585a2e=new T[(_0x1a3374(0x239))](_0x4a9aaa,_0x2b8ac5);for(const {startOffset:_0x41d594,endOffset:_0x1e8399,rangeType:_0x15f2b9,segmentId:_0x581454,segmentPage:_0x3fe7e1,collapsed:_0x11cf6b,isActive:_0x59cea4}of _0x11ea84){const _0x3e4867=_0x2b8ac5[_0x1a3374(0x40c)](_0x41d594,!0x0,_0x581454,_0x3fe7e1);let _0xc91586=_0x2b8ac5['findNodePositionByCharIndex'](_0x1e8399,!0x0,_0x581454,_0x3fe7e1);if(_0xc91586==null&&(_0xc91586=_0x2b8ac5[_0x1a3374(0x40c)](_0x1e8399-0x1,!0x1,_0x581454,_0x3fe7e1)),_0x59cea4){const {contentBoxPointGroup:_0x3dafb5}=_0x585a2e[_0x1a3374(0x3b9)](_0xc91586,_0xc91586);if(_0x3dafb5[_0x1a3374(0x37e)]===0x0)continue;this[_0x1a3374(0x200)](_0x247317,_0x3dafb5,_0x4cdc2f,_0x1f90ef,_0x4e9e54),this[_0x1a3374(0x2d2)]=this['_handleHover']();}if(_0x3e4867&&_0xc91586){if(_0x15f2b9===a['DOC_RANGE_TYPE'][_0x1a3374(0x219)]){const _0x3f41bd=new T[(_0x1a3374(0x380))](_0x4a9aaa,_0x2b8ac5),{pointGroup:_0x5c1812}=(_0x11c4a1=_0x3f41bd[_0x1a3374(0x3b9)](_0x3e4867,_0xc91586))!=null?_0x11c4a1:{};if(_0x5c1812==null||_0x5c1812[_0x1a3374(0x37e)]===0x0)continue;this['_drawRectRange'](_0x247317,_0x5c1812,_0x4cdc2f,_0x1f90ef);}else{if(!_0x11cf6b){const {borderBoxPointGroup:_0xa39916}=_0x585a2e[_0x1a3374(0x3b9)](_0x3e4867,_0xc91586);if(_0xa39916[_0x1a3374(0x37e)]===0x0)continue;this[_0x1a3374(0x1c9)](_0x247317,_0xa39916,_0x4cdc2f,_0x1f90ef);}}}}}['_drawAnchor'](_0x346d78,_0x41bc70,_0x2dc2fa,_0x108017,_0x5daed5){const _0x50eb4c=_0x2dd085,_0x18e91e=this['_getAnchorBounding'](_0x41bc70),{left:_0x364fb6,top:_0x136b26,height:_0x374552}=_0x18e91e,_0x53a341=this[_0x50eb4c(0x37c)](),_0x191b56=bt/_0x53a341,_0x4a1588=new C[(_0x50eb4c(0x338))](ce+a[_0x50eb4c(0x414)](Y),{'left':_0x364fb6+_0x2dc2fa-_0x191b56,'top':_0x136b26+_0x108017,'height':_0x374552,'width':Rt,'fill':_0x346d78||C[_0x50eb4c(0x3a8)](a[_0x50eb4c(0x424)][_0x50eb4c(0x309)],0x0),'strokeWidth':_0x191b56,'stroke':Dt,'evented':!0x0});this['_anchor']=_0x4a1588,this[_0x50eb4c(0x1d4)]['addObject'](_0x4a1588,T[_0x50eb4c(0x1ad)]);const _0x5f1419=new C[(_0x50eb4c(0x338))](ce+a[_0x50eb4c(0x414)](Y),{'left':_0x364fb6+_0x2dc2fa-_0x191b56,'top':_0x136b26+_0x108017-le/0x2,'height':le,'width':le,'fill':_0x346d78||C[_0x50eb4c(0x3a8)](a[_0x50eb4c(0x424)][_0x50eb4c(0x309)],0x0),'strokeWidth':0x0,'stroke':_0x346d78||C[_0x50eb4c(0x3a8)](a[_0x50eb4c(0x424)]['black'],0x0),'evented':!0x1});this[_0x50eb4c(0x298)]=_0x5f1419,this['_scene'][_0x50eb4c(0x1e9)](_0x5f1419,T[_0x50eb4c(0x1ad)]);const _0x17c4df=new ie(ce+a[_0x50eb4c(0x414)](Y),{'left':_0x364fb6+_0x2dc2fa-_0x191b56,'top':_0x136b26+_0x108017-X,'text':_0x5daed5,'color':_0x346d78});this['_textBubble']=_0x17c4df,this[_0x50eb4c(0x1d4)]['addObject'](_0x17c4df,T[_0x50eb4c(0x1ad)]),this['_hover']=!0x1;}[_0x2dd085(0x1ed)](){const _0xd08840=_0x2dd085,_0xf8c0d0=this[_0xd08840(0x20d)][_0xd08840(0x1c0)]['subscribeEvent'](()=>{const _0x12f54f=_0xd08840;this[_0x12f54f(0x249)]=!0x0;}),_0x40ab48=this[_0xd08840(0x20d)][_0xd08840(0x1d7)][_0xd08840(0x2ae)](()=>{const _0x393240=_0xd08840;this[_0x393240(0x1a4)]&&clearTimeout(this['_hideTimer']),this[_0x393240(0x1a4)]=setTimeout(()=>{const _0xdec7ae=_0x393240;this[_0xdec7ae(0x249)]=!0x1;},0x7d0);});return()=>{const _0x1e78ec=_0xd08840;_0xf8c0d0[_0x1e78ec(0x24a)](),_0x40ab48[_0x1e78ec(0x24a)]();};}['_drawTextRange'](_0x2e15b0,_0x4b78c0,_0x2149f5,_0x76b8a6){const _0x5e9e26=_0x2dd085,_0xda409a=new a[(_0x5e9e26(0x294))](_0x2e15b0)[_0x5e9e26(0x1c4)](0.2)['toRgbString'](),_0x433ac0=new C[(_0x5e9e26(0x26e))](pt+a[_0x5e9e26(0x414)](Y),{'pointsGroup':_0x4b78c0,'fill':_0xda409a||C[_0x5e9e26(0x3a8)](a[_0x5e9e26(0x424)][_0x5e9e26(0x309)],0.2),'left':_0x2149f5,'top':_0x76b8a6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5e9e26(0x3c9)][_0x5e9e26(0x3f7)](_0x433ac0),this[_0x5e9e26(0x1d4)][_0x5e9e26(0x1e9)](_0x433ac0,T[_0x5e9e26(0x1ad)]);}[_0x2dd085(0x1bc)](_0x4a5df6,_0xbf0df6,_0x36dfd9,_0x40d07c){const _0xc11fe0=_0x2dd085,_0x2a0c6c=new a[(_0xc11fe0(0x294))](_0x4a5df6)[_0xc11fe0(0x1c4)](0.2)[_0xc11fe0(0x33c)](),_0x12627d=new C['RegularPolygon'](Ot+a[_0xc11fe0(0x414)](Y),{'pointsGroup':_0xbf0df6,'fill':_0x2a0c6c||C['getColor'](a[_0xc11fe0(0x424)][_0xc11fe0(0x309)],0.2),'left':_0x36dfd9,'top':_0x40d07c,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x12627d),this[_0xc11fe0(0x1d4)][_0xc11fe0(0x1e9)](_0x12627d,T['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x28784c){const _0x2d1501=_0x28784c[0x0],_0x180c76=_0x2d1501[0x0],_0x14cd70=_0x2d1501[0x2],{x:_0x5eb010,y:_0x113765}=_0x180c76,{x:_0x3de0f2,y:_0x4afe34}=_0x14cd70;return{'left':_0x5eb010,'top':_0x113765,'width':_0x3de0f2-_0x5eb010,'height':_0x4afe34-_0x113765};}[_0x2dd085(0x37c)](){const _0x2c1b31=_0x2dd085,{scaleX:_0x452249,scaleY:_0x4524db}=this[_0x2c1b31(0x1d4)]['getAncestorScale']();return Math[_0x2c1b31(0x2b0)](_0x452249,_0x4524db);}}var Nt=Object[_0x2dd085(0x251)],Ut=(_0x91f7b7,_0x4f107d,_0x31be50,_0x21f7f4)=>{for(var _0x2bb3d4=_0x21f7f4>0x1?void 0x0:_0x21f7f4?Nt(_0x4f107d,_0x31be50):_0x4f107d,_0x482bed=_0x91f7b7['length']-0x1,_0x1a25fc;_0x482bed>=0x0;_0x482bed--)(_0x1a25fc=_0x91f7b7[_0x482bed])&&(_0x2bb3d4=_0x1a25fc(_0x2bb3d4)||_0x2bb3d4);return _0x2bb3d4;},q=(_0x49ff4d,_0x57e354)=>(_0x499d58,_0x413a64)=>_0x57e354(_0x499d58,_0x413a64,_0x49ff4d);let ge=class extends a[_0x2dd085(0x221)]{constructor(_0x437aff,_0x200325,_0x38228c,_0x4a7f30,_0x52712e){const _0x2ab210=_0x2dd085;super(),_(this,_0x2ab210(0x20e),[]),_(this,_0x2ab210(0x26b),[]),(this[_0x2ab210(0x3f1)]=_0x437aff,this[_0x2ab210(0x25b)]=_0x200325,this[_0x2ab210(0x20a)]=_0x38228c,this[_0x2ab210(0x274)]=_0x4a7f30,this['_themeService']=_0x52712e,this[_0x2ab210(0x34b)]());}[_0x2dd085(0x34b)](){const _0x20d2ab=_0x2dd085,_0x5d2ead=this[_0x20d2ab(0x3f1)][_0x20d2ab(0x1b1)],_0x48ac74=this['_docSkeletonManagerService'];this[_0x20d2ab(0x34a)](I[_0x20d2ab(0x263)]([this[_0x20d2ab(0x20a)][_0x20d2ab(0x252)](_0x5d2ead),this['_themeService'][_0x20d2ab(0x3fa)]])[_0x20d2ab(0x3c3)]($['map'](([_0x29c700,_0x19544d])=>({'skeleton':_0x48ac74[_0x20d2ab(0x2e5)](),'cursors':[..._0x29c700[_0x20d2ab(0x383)]()]['flatMap'](_0xdb393d=>({..._0xdb393d,'color':this[_0x20d2ab(0x39e)]['getColorFromTheme'](_0xdb393d['color'])}))})))[_0x20d2ab(0x2f1)](_0x3ea4b3=>{const _0x442f4d=_0x20d2ab;if(this[_0x442f4d(0x382)](),_0x3ea4b3){const {skeleton:_0x2d1a2a,cursors:_0x1b76d9}=_0x3ea4b3;this[_0x442f4d(0x392)](_0x2d1a2a,_0x1b76d9);}})),this[_0x20d2ab(0x246)](),this[_0x20d2ab(0x1f5)]();}[_0x2dd085(0x392)](_0x262008,_0x3c33fb){const _0x11cf08=_0x2dd085,{scene:_0x63f082,mainComponent:_0x191410}=this[_0x11cf08(0x3f1)],_0x448aa2=_0x3c33fb[_0x11cf08(0x2c0)](_0x1ac4db=>new Ne(_0x1ac4db,_0x63f082,_0x262008,_0x191410));this['_cursorShapes']=_0x448aa2,this['_cursors']=_0x3c33fb;}[_0x2dd085(0x305)](){const _0x1f691e=_0x2dd085;this['_removeCollabCursors']();const {scene:_0x2c120b,mainComponent:_0x2a6b65}=this[_0x1f691e(0x3f1)],_0x11af8a=this[_0x1f691e(0x25b)][_0x1f691e(0x2e5)](),_0x5761ed=this[_0x1f691e(0x26b)]['map'](_0x5c27a7=>new Ne(_0x5c27a7,_0x2c120b,_0x11af8a,_0x2a6b65));this['_cursorShapes']=_0x5761ed;}[_0x2dd085(0x382)](){const _0xfcab9b=_0x2dd085;this[_0xfcab9b(0x20e)][_0xfcab9b(0x3d6)](_0x3bcb88=>_0x3bcb88[_0xfcab9b(0x20f)]()),this[_0xfcab9b(0x20e)]=[];}[_0x2dd085(0x1f5)](){const _0x130a53=_0x2dd085,_0x5f231d=[T[_0x130a53(0x40e)]['id']];this['disposeWithMe'](this['_commandService'][_0x130a53(0x2dc)](_0x46623d=>{const _0x27efad=_0x130a53;_0x5f231d[_0x27efad(0x3c2)](_0x46623d['id'])&&_0x46623d[_0x27efad(0x1e2)][_0x27efad(0x1b1)]===this[_0x27efad(0x3f1)][_0x27efad(0x1b1)]&&this[_0x27efad(0x305)]();}));}['_initResize'](){const _0x30124d=_0x2dd085;this['disposeWithMe'](a['fromEventSubject'](this[_0x30124d(0x3f1)][_0x30124d(0x42b)][_0x30124d(0x394)])['pipe']($[_0x30124d(0x2a6)](_0x4fa02b=>_0x4fa02b[_0x30124d(0x2d1)]===C[_0x30124d(0x195)][_0x30124d(0x2f4)]),$['throttleTime'](0x10))[_0x30124d(0x2f1)](()=>{const _0x5b810d=_0x30124d;this[_0x5b810d(0x305)]();}));}};ge=Ut([q(0x1,a['Inject'](W[_0x2dd085(0x300)])),q(0x2,a[_0x2dd085(0x287)](B)),q(0x3,a['ICommandService']),q(0x4,a[_0x2dd085(0x287)](a[_0x2dd085(0x28c)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C['Shape']{constructor(_0x44c563,_0x5a16aa){const _0x205c89=_0x2dd085;super(_0x44c563,_0x5a16aa),_(this,_0x205c89(0x197)),_(this,_0x205c89(0x405),!0x1),_(this,_0x205c89(0x3df)),_(this,_0x205c89(0x327),''),_(this,'_labelPosition',_0x205c89(0x273)),_(this,_0x205c89(0x2db)),(_0x5a16aa&&this['setShapeProps'](_0x5a16aa),this[_0x205c89(0x1c0)]['subscribeEvent'](()=>this[_0x205c89(0x35d)]({'hovered':!0x0})),this['onPointerLeave$'][_0x205c89(0x2ae)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2dd085(0x35d)](_0x44ce83){const _0x190ebe=_0x2dd085;var _0x2598a8,_0x123482,_0x34fffa,_0x460659,_0x5284e5,_0x58a06c;this[_0x190ebe(0x197)]=(_0x2598a8=_0x44ce83[_0x190ebe(0x19d)])!=null?_0x2598a8:this[_0x190ebe(0x197)],this[_0x190ebe(0x405)]=(_0x123482=_0x44ce83[_0x190ebe(0x2f3)])!=null?_0x123482:this[_0x190ebe(0x405)],this[_0x190ebe(0x3df)]=(_0x34fffa=_0x44ce83[_0x190ebe(0x3e8)])!=null?_0x34fffa:this[_0x190ebe(0x3df)],this[_0x190ebe(0x327)]=(_0x460659=_0x44ce83[_0x190ebe(0x31f)])!=null?_0x460659:this[_0x190ebe(0x327)],this[_0x190ebe(0x198)]=(_0x5284e5=_0x44ce83[_0x190ebe(0x303)])!=null?_0x5284e5:this[_0x190ebe(0x198)],this[_0x190ebe(0x2db)]=(_0x58a06c=_0x44ce83[_0x190ebe(0x1cb)])!=null?_0x58a06c:this['_backgroundColor'],this[_0x190ebe(0x1a5)]({'width':_0x44ce83['width'],'height':_0x44ce83['height']});}[_0x2dd085(0x3d0)](_0x38906d){const _0x26e3c9=_0x2dd085,{row:_0x5bfb8f,column:_0x3ad126}=_0x38906d;if(_0x5bfb8f>=this['_range'][_0x26e3c9(0x1ec)]&&_0x5bfb8f<=this[_0x26e3c9(0x3df)][_0x26e3c9(0x37f)]&&_0x3ad126>=this[_0x26e3c9(0x3df)][_0x26e3c9(0x23d)]&&_0x3ad126<=this['_range']['endColumn']){this[_0x26e3c9(0x35d)]({'hovered':!0x0});return;}this[_0x26e3c9(0x35d)]({'hovered':!0x1});}['triggerDblclick'](_0x1ee459){return!0x1;}[_0x2dd085(0x2f6)](_0x1a08df){const _0x18e978=_0x2dd085;C[_0x18e978(0x338)][_0x18e978(0x205)](_0x1a08df,{'width':this[_0x18e978(0x1cd)],'height':this[_0x18e978(0x3b2)],'strokeWidth':Mt,'stroke':this[_0x18e978(0x197)],'evented':!0x1,'fill':this[_0x18e978(0x2db)]}),this[_0x18e978(0x405)]&&(_0x1a08df[_0x18e978(0x301)](),_0x1a08df['transform'](0x1,0x0,0x0,0x1,this[_0x18e978(0x1cd)],this[_0x18e978(0x198)]==='bottom'?0x0:-X),ie[_0x18e978(0x205)](_0x1a08df,{'text':this[_0x18e978(0x327)],'color':this['_color']}),_0x1a08df[_0x18e978(0x2da)]());}}var At=Object[_0x2dd085(0x251)],Pt=(_0x1c22a7,_0x110cb1,_0x56e436,_0x2ec545)=>{const _0x5aa79a=_0x2dd085;for(var _0x2c1ea4=_0x2ec545>0x1?void 0x0:_0x2ec545?At(_0x110cb1,_0x56e436):_0x110cb1,_0x2909d5=_0x1c22a7[_0x5aa79a(0x37e)]-0x1,_0x1f3c6a;_0x2909d5>=0x0;_0x2909d5--)(_0x1f3c6a=_0x1c22a7[_0x2909d5])&&(_0x2c1ea4=_0x1f3c6a(_0x2c1ea4)||_0x2c1ea4);return _0x2c1ea4;},_e=(_0x45c276,_0x4465e0)=>(_0x55d0ac,_0x29fae7)=>_0x4465e0(_0x55d0ac,_0x29fae7,_0x45c276);const wt=0x1389;let ve=class extends a[_0x2dd085(0x221)]{constructor(_0x3e7c12,_0x3ad054,_0x30ef29,_0x1de3a8){const _0xa094de=_0x2dd085;super(),_(this,_0xa094de(0x26b),new Set()),_(this,_0xa094de(0x2c8),null),(this[_0xa094de(0x3f1)]=_0x3e7c12,this[_0xa094de(0x1dc)]=_0x3ad054,this[_0xa094de(0x20a)]=_0x30ef29,this[_0xa094de(0x39e)]=_0x1de3a8,this[_0xa094de(0x34b)]());}[_0x2dd085(0x34b)](){const _0x122271=_0x2dd085;this[_0x122271(0x1dc)][_0x122271(0x201)][_0x122271(0x3c3)]($[_0x122271(0x1af)](this[_0x122271(0x29d)]),$['switchMap'](_0xcddd0=>{const _0x1e61f8=_0x122271;if(_0xcddd0){const _0x11115c=_0xcddd0[_0x1e61f8(0x25a)];return I['combineLatest'](this['_collabCursorController'][_0x1e61f8(0x252)](this[_0x1e61f8(0x3f1)][_0x1e61f8(0x1b1)]),this['_themeService'][_0x1e61f8(0x3fa)])['pipe']($[_0x1e61f8(0x2c0)](([_0x41e12f,_0x944caf])=>{const _0x418e51=_0x1e61f8,_0xc3e0d7=new Map();return _0x41e12f[_0x418e51(0x3d6)]((_0x5751e6,_0x4a80ac)=>{const _0x1b78d1=_0x418e51;if(_0x5751e6[_0x1b78d1(0x26d)]===_0x11115c){const _0x179be6={..._0x5751e6};_0x179be6['color']=this[_0x1b78d1(0x39e)]['getColorFromTheme'](_0x5751e6[_0x1b78d1(0x19d)]),_0xc3e0d7['set'](_0x4a80ac,_0x179be6);}}),{'skeleton':_0xcddd0,'cursors':_0xc3e0d7};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x122271(0x2f1)](({skeleton:_0x55dedd,cursors:_0x560831})=>{const _0x1e2bd9=_0x122271;this[_0x1e2bd9(0x382)](),_0x55dedd&&this[_0x1e2bd9(0x392)](_0x55dedd,_0x560831);}),this[_0x122271(0x1dc)][_0x122271(0x201)][_0x122271(0x2f1)](_0x3b09d3=>{const _0x43e10a=_0x122271;if(_0x3b09d3==null)return;const {skeleton:_0x40e2c0}=_0x3b09d3,{scene:_0xf12a3e}=this['_context'];_0xf12a3e[_0x43e10a(0x26f)][_0x43e10a(0x2ae)](a['debounce'](_0x53ad14=>{const _0x77b7af=_0x43e10a;var _0xb485d0,_0x14c4b5;const {offsetX:_0x3608d2,offsetY:_0x4ae748}=_0x53ad14,{x:_0xdc5f4b,y:_0x26911b}=_0xf12a3e[_0x77b7af(0x319)](C[_0x77b7af(0x400)][_0x77b7af(0x429)]([_0x3608d2,_0x4ae748])),{scaleX:_0x412853,scaleY:_0x3f8ff3}=_0xf12a3e[_0x77b7af(0x1ee)](),_0x4038a7=_0xf12a3e[_0x77b7af(0x253)](C[_0x77b7af(0x42d)][_0x77b7af(0x2c4)]),_0x115042=_0xf12a3e[_0x77b7af(0x1ac)](C[_0x77b7af(0x400)][_0x77b7af(0x429)]([_0xdc5f4b,_0x26911b]),_0x4038a7),_0x289851=_0x40e2c0[_0x77b7af(0x295)](_0x3608d2,_0x4ae748,_0x412853,_0x3f8ff3,_0x115042);((_0xb485d0=this[_0x77b7af(0x2c8)])==null?void 0x0:_0xb485d0[_0x77b7af(0x311)])===_0x289851[_0x77b7af(0x311)]&&((_0x14c4b5=this['_lastPointer'])==null?void 0x0:_0x14c4b5['row'])===_0x289851[_0x77b7af(0x43d)]||this['_cursors'][_0x77b7af(0x3d6)](_0x56644d=>{const _0x1b815e=_0x77b7af;_0x56644d[_0x1b815e(0x3d0)](_0x289851);});},0x64));});}[_0x2dd085(0x392)](_0x18bcd4,_0x4d8891){const _0x31b012=_0x2dd085;var _0x2393b6;const _0x4cb7a8=(_0x2393b6=this[_0x31b012(0x1dc)]['getCurrent']())==null?void 0x0:_0x2393b6[_0x31b012(0x243)];if(!_0x4cb7a8)return;const _0x1c06a2=this[_0x31b012(0x3ea)]();if(!_0x1c06a2)return;this['_cursors']['forEach'](_0x33743e=>{const _0x382fe3=_0x31b012;_0x33743e[_0x382fe3(0x342)]();});const {scene:_0x5413ac}=_0x1c06a2,_0x5d6e88=yt(Array['from'](_0x4d8891[_0x31b012(0x383)]()))[_0x31b012(0x2c0)](_0x1279a4=>{const _0xf1ef07=_0x31b012,{color:_0x44809e,range:_0x419036,name:_0x79ecd4,selection:_0x3827e1,sheetID:_0x23cbbd}=_0x1279a4,{startColumn:_0x4f5481,startRow:_0x5b5903,endColumn:_0x384c6a,endRow:_0x284abc}=_0x419036,_0x32ef39=z[_0xf1ef07(0x403)](_0x5b5903,_0x4f5481,_0x5413ac,_0x4cb7a8),_0xd490f7=z['getCoordByCell'](_0x284abc,_0x384c6a,_0x5413ac,_0x4cb7a8),{columnHeaderHeightAndMarginTop:_0x4ca36f}=_0x4cb7a8,{startX:_0x1ba674,startY:_0x320329}=_0x32ef39,{endX:_0x1ed138,endY:_0x47272e}=_0xd490f7,_0x2e13f9=_0x1ed138-_0x1ba674,_0x3a4c62=_0x47272e-_0x320329,_0x5289b5={'labelPosition':_0x320329-_0x4ca36f>=X?_0xf1ef07(0x273):'bottom','sheetID':_0x23cbbd,'range':_0x419036,'color':_0x44809e,'name':_0x79ecd4,'selection':_0x3827e1,'left':_0x1ba674,'top':_0x320329,'width':_0x2e13f9,'height':_0x3a4c62,'evented':!0x1,'zIndex':wt};return new Be(_0x79ecd4,_0x5289b5);});_0x5413ac['addObjects'](_0x5d6e88,Lt),this[_0x31b012(0x26b)]=new Set(_0x5d6e88);}[_0x2dd085(0x382)](){const _0x3ebdae=_0x2dd085;var _0x3d9ab1;(_0x3d9ab1=this[_0x3ebdae(0x26b)])==null||_0x3d9ab1[_0x3ebdae(0x3d6)](_0x4b55d5=>_0x4b55d5[_0x3ebdae(0x20f)]());}[_0x2dd085(0x3ea)](){const _0x3e9c13=_0x2dd085;return z['getSheetObject'](this[_0x3e9c13(0x3f1)][_0x3e9c13(0x258)],this[_0x3e9c13(0x3f1)]);}};ve=Pt([_e(0x1,a['Inject'](z[_0x2dd085(0x285)])),_e(0x2,a[_0x2dd085(0x287)](B)),_e(0x3,a[_0x2dd085(0x287)](a['ThemeService']))],ve);function yt(_0x3c311f){const _0x31d36f=_0x2dd085,_0x25a60e=new Map();return _0x3c311f[_0x31d36f(0x3d6)](_0x60fc0e=>{const _0x4c69c0=_0x31d36f;if(_0x25a60e['has'](_0x60fc0e[_0x4c69c0(0x1b6)])){const _0x2200f9=_0x25a60e[_0x4c69c0(0x1d6)](_0x60fc0e[_0x4c69c0(0x1b6)]);_0x2200f9[_0x4c69c0(0x31f)]+=',\x20'+_0x60fc0e[_0x4c69c0(0x31f)];}else _0x25a60e[_0x4c69c0(0x262)](_0x60fc0e[_0x4c69c0(0x1b6)],_0x60fc0e);}),Array['from'](_0x25a60e['values']());}var $t=Object['getOwnPropertyDescriptor'],xt=(_0x287195,_0x1ae2a5,_0x14ae5c,_0x2bd4f3)=>{for(var _0x580dac=_0x2bd4f3>0x1?void 0x0:_0x2bd4f3?$t(_0x1ae2a5,_0x14ae5c):_0x1ae2a5,_0x339d95=_0x287195['length']-0x1,_0x114dcd;_0x339d95>=0x0;_0x339d95--)(_0x114dcd=_0x287195[_0x339d95])&&(_0x580dac=_0x114dcd(_0x580dac)||_0x580dac);return _0x580dac;},y=(_0x42c4c7,_0x2f9786)=>(_0x25827e,_0x4548b4)=>_0x2f9786(_0x25827e,_0x4548b4,_0x42c4c7);let J=class extends a[_0x2dd085(0x41f)]{constructor(_0x5d80f2,_0x53d8b1,_0xcdc3da,_0x139d14,_0xd6e0a7,_0x35033){const _0x29b76d=_0x2dd085;super(),this[_0x29b76d(0x290)]=_0x5d80f2,this['_localCacheService']=_0x53d8b1,this[_0x29b76d(0x22c)]=_0xcdc3da,this[_0x29b76d(0x2b8)]=_0x139d14,this['_notificationService']=_0xd6e0a7,this[_0x29b76d(0x427)]=_0x35033,this[_0x29b76d(0x40f)](),this[_0x29b76d(0x3a4)]();}[_0x2dd085(0x40f)](){const _0x3e40ec=_0x2dd085;this['disposeWithMe'](this[_0x3e40ec(0x290)][_0x3e40ec(0x39a)](()=>{const _0x1a5519=_0x3e40ec;if(this[_0x1a5519(0x2a5)]['saveTaskMap'][_0x1a5519(0x1bf)])return this[_0x1a5519(0x427)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x2dd085(0x3a4)](){const _0x333013=_0x2dd085;this[_0x333013(0x34a)](this['_collaborationUIEventService'][_0x333013(0x375)][_0x333013(0x2f1)](_0x4e11c1=>{const _0x3cd47a=_0x333013;_0x4e11c1['id']===u[_0x3cd47a(0x2a0)][_0x3cd47a(0x1b2)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p['MessageType']['Warning'],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x4e11c1['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)][_0x3cd47a(0x281)],'content':this[_0x3cd47a(0x427)]['t']('collaboration.closeRoom')}),_0x4e11c1['id']===u[_0x3cd47a(0x2a0)]['PERMISSION_DENIED']&&this[_0x3cd47a(0x397)][_0x3cd47a(0x3e9)]({'title':this[_0x3cd47a(0x427)]['t'](_0x3cd47a(0x21b)),'content':this[_0x3cd47a(0x427)]['t'](_0x3cd47a(0x1d1)),'type':_0x3cd47a(0x409),'duration':0x0}),_0x4e11c1['id']===u['CollaborationUIEventId'][_0x3cd47a(0x25f)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)]['Error'],'content':this[_0x3cd47a(0x427)]['t']('collaboration.closeRoom')+'('+_0x4e11c1[_0x3cd47a(0x332)]+')'}),_0x4e11c1['id']===u['CollaborationUIEventId'][_0x3cd47a(0x2be)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)][_0x3cd47a(0x281)],'content':this[_0x3cd47a(0x427)]['t'](_0x4e11c1['data']||'')}),_0x4e11c1['id']===u['CollaborationUIEventId'][_0x3cd47a(0x39d)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)][_0x3cd47a(0x281)],'content':this['_localeService']['t'](_0x3cd47a(0x29b))}),_0x4e11c1['id']===u[_0x3cd47a(0x2a0)][_0x3cd47a(0x3ef)]&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p['MessageType'][_0x3cd47a(0x2ff)],'content':this[_0x3cd47a(0x427)]['t'](_0x3cd47a(0x404))}),_0x4e11c1['id']===u[_0x3cd47a(0x2a0)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x3cd47a(0x2b8)][_0x3cd47a(0x3e9)]({'type':p[_0x3cd47a(0x391)][_0x3cd47a(0x2ff)],'content':this[_0x3cd47a(0x427)]['t']('session.collaboration-timeout')});}));}};J=xt([y(0x0,O[_0x2dd085(0x3ca)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x2dd085(0x287)](u[_0x2dd085(0x208)])),y(0x3,O[_0x2dd085(0x264)]),y(0x4,O[_0x2dd085(0x282)]),y(0x5,a[_0x2dd085(0x287)](a[_0x2dd085(0x388)]))],J);const Bt=_0x2dd085(0x3f3),Ue={};var Ft=Object['getOwnPropertyDescriptor'],kt=(_0x1f60f5,_0x11fa26,_0x3f4e2a,_0x5efa3d)=>{const _0x8c0c64=_0x2dd085;for(var _0x5110f1=_0x5efa3d>0x1?void 0x0:_0x5efa3d?Ft(_0x11fa26,_0x3f4e2a):_0x11fa26,_0x9bada2=_0x1f60f5[_0x8c0c64(0x37e)]-0x1,_0x40c577;_0x9bada2>=0x0;_0x9bada2--)(_0x40c577=_0x1f60f5[_0x9bada2])&&(_0x5110f1=_0x40c577(_0x5110f1)||_0x5110f1);return _0x5110f1;},Le=(_0x78b0c0,_0x711cdf)=>(_0x4f184c,_0x2003df)=>_0x711cdf(_0x4f184c,_0x2003df,_0x78b0c0);let Z=class{constructor(_0x3a8220,_0x357284){const _0x224181=_0x2dd085;this['_transformService']=_0x3a8220,this[_0x224181(0x36f)]=_0x357284;}[_0x2dd085(0x1fd)](_0x5506a2){const _0x2a7229=_0x2dd085;this[_0x2a7229(0x286)](_0x5506a2),this[_0x2a7229(0x306)](_0x5506a2);}[_0x2dd085(0x25c)](_0x617324){const _0x4f9d2c=_0x2dd085,{unitID:_0x1ae052}=_0x617324,_0xa7e45f=this[_0x4f9d2c(0x36f)]['getRenderById'](_0x1ae052)[_0x4f9d2c(0x1e5)](T['DocIMEInputManagerService']),{redoCache:_0x2b8031}=_0xa7e45f[_0x4f9d2c(0x1a8)]();if(_0x2b8031[_0x4f9d2c(0x37e)]===0x0)return _0x617324;let _0x3859d6=a[_0x4f9d2c(0x3de)][_0x4f9d2c(0x1c1)](_0x617324[_0x4f9d2c(0x278)][0x0]);for(let _0x447ca6=0x0;_0x447ca6<_0x2b8031[_0x4f9d2c(0x37e)];_0x447ca6++){const _0x5b3430={'id':'doc.mutation.rich-text-editing','params':{..._0x2b8031[_0x447ca6]}},_0x56b959=this['_transformService']['transformMutation'](_0x3859d6,_0x5b3430,!0x1);if(v[_0x4f9d2c(0x24f)](_0x56b959))throw _0x56b959[_0x4f9d2c(0x409)];_0x3859d6=_0x56b959['m1Prime'];}return{...a[_0x4f9d2c(0x3de)][_0x4f9d2c(0x1c1)](_0x617324),'mutations':[_0x3859d6]};}[_0x2dd085(0x286)](_0x1dbaba){const _0x46bf1d=_0x2dd085,{unitID:_0x2cdcf5}=_0x1dbaba,_0x365bb4=this[_0x46bf1d(0x36f)][_0x46bf1d(0x22f)](_0x2cdcf5)[_0x46bf1d(0x1e5)](T[_0x46bf1d(0x2e1)]),{undoCache:_0xfce326,redoCache:_0x635494}=_0x365bb4['getUndoRedoMutationParamsCache']();if(_0xfce326[_0x46bf1d(0x37e)]===0x0||_0x635494[_0x46bf1d(0x37e)]===0x0)return;const _0x2cd082=[],_0x4264b9=[];let _0x2fac8b=a[_0x46bf1d(0x3de)]['deepClone'](_0x1dbaba[_0x46bf1d(0x278)][0x0]),_0x2e0231=a[_0x46bf1d(0x3de)][_0x46bf1d(0x1c1)](_0x1dbaba[_0x46bf1d(0x278)][0x0]);for(let _0x1ed7ea=_0xfce326['length']-0x1;_0x1ed7ea>=0x0;_0x1ed7ea--){const _0x2b3ea5={'id':_0x46bf1d(0x1d0),'params':{..._0xfce326[_0x1ed7ea]}},_0xfd5d92={'id':'doc.mutation.rich-text-editing','params':{..._0x635494[_0x1ed7ea]}},_0x339c11=this[_0x46bf1d(0x3fe)][_0x46bf1d(0x320)](_0x2fac8b,_0x2b3ea5,!0x1),_0x435099=this[_0x46bf1d(0x3fe)][_0x46bf1d(0x320)](_0x2e0231,_0xfd5d92,!0x1);if(v[_0x46bf1d(0x24f)](_0x339c11))throw _0x339c11[_0x46bf1d(0x409)];if(v[_0x46bf1d(0x24f)](_0x435099))throw _0x435099[_0x46bf1d(0x409)];_0x2cd082[_0x46bf1d(0x3b0)](_0x339c11[_0x46bf1d(0x27e)][_0x46bf1d(0x1e2)]),_0x4264b9[_0x46bf1d(0x3b0)](_0x435099['m2Prime'][_0x46bf1d(0x1e2)]),_0x2fac8b=_0x339c11[_0x46bf1d(0x242)],_0x2e0231=_0x435099[_0x46bf1d(0x242)];}_0x365bb4[_0x46bf1d(0x2cc)]({'undoCache':_0x2cd082,'redoCache':_0x4264b9});}[_0x2dd085(0x306)](_0x32fc50){const _0x41dd35=_0x2dd085,{unitID:_0x136205}=_0x32fc50,_0x3e2b06=this[_0x41dd35(0x36f)]['getRenderById'](_0x136205)[_0x41dd35(0x1e5)](T[_0x41dd35(0x2e1)]),_0x4d820e=_0x3e2b06[_0x41dd35(0x2c1)]();if(_0x4d820e==null)return;const _0x129c60=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x32fc50[_0x41dd35(0x1b8)],'actions':null,'textRanges':[_0x4d820e]}}],_0x2aa2bb=this['_transformService'][_0x41dd35(0x407)](_0x32fc50,_0x129c60);if(!v['isTransformMutationsWithChangesetSuccess'](_0x2aa2bb))throw _0x2aa2bb['error'];const _0x3d272c=_0x2aa2bb['m2Prime'][0x0][_0x41dd35(0x1e2)]['textRanges'];Array[_0x41dd35(0x2d8)](_0x3d272c)&&_0x3d272c['length']&&_0x3e2b06['setActiveRange'](_0x3d272c[0x0]);}};Z=kt([Le(0x0,v['ITransformService']),Le(0x1,C['IRenderManagerService'])],Z);var jt=Object[_0x2dd085(0x251)],Yt=(_0xecdd7,_0x40207c,_0x24b7c5,_0x4f0d93)=>{const _0x12ef50=_0x2dd085;for(var _0x56b857=_0x4f0d93>0x1?void 0x0:_0x4f0d93?jt(_0x40207c,_0x24b7c5):_0x40207c,_0x1b2b6f=_0xecdd7[_0x12ef50(0x37e)]-0x1,_0x4ba242;_0x1b2b6f>=0x0;_0x1b2b6f--)(_0x4ba242=_0xecdd7[_0x1b2b6f])&&(_0x56b857=_0x4ba242(_0x56b857)||_0x56b857);return _0x56b857;},he=(_0x1f4f65,_0x15a7da)=>(_0x20add3,_0x4ff444)=>_0x15a7da(_0x20add3,_0x4ff444,_0x1f4f65);let Q=class{constructor(_0x20e15e,_0x37e8d1,_0x1b7214){const _0x355cc3=_0x2dd085;this['_injector']=_0x20e15e,this[_0x355cc3(0x3fe)]=_0x37e8d1,this[_0x355cc3(0x3e7)]=_0x1b7214;}[_0x2dd085(0x360)](_0x3db909){const _0x9b1512=_0x2dd085;this[_0x9b1512(0x227)](_0x3db909);}['transformRemoteChangeset'](_0x481a7c){const _0x322114=_0x2dd085,{unitID:_0x29a4b7}=_0x481a7c,{collaboration:_0x244f14}=this['_docStateChangeManagerService'][_0x322114(0x345)](_0x29a4b7);if(_0x244f14[_0x322114(0x37e)]===0x0)return _0x481a7c;let _0x1507af=a[_0x322114(0x3de)][_0x322114(0x1c1)](_0x481a7c[_0x322114(0x278)][0x0]);for(let _0x42ff26=0x0;_0x42ff26<_0x244f14[_0x322114(0x37e)];_0x42ff26++){const _0xe34485={'id':_0x322114(0x1d0),'params':{'unitId':_0x244f14[_0x42ff26]['unitId'],..._0x244f14[_0x42ff26][_0x322114(0x1a3)]}},_0x288402=this[_0x322114(0x3fe)][_0x322114(0x320)](_0x1507af,_0xe34485,!0x1);if(v[_0x322114(0x24f)](_0x288402))throw _0x288402[_0x322114(0x409)];_0x1507af=_0x288402[_0x322114(0x242)];}return{...a['Tools'][_0x322114(0x1c1)](_0x481a7c),'mutations':[_0x1507af]};}['_transformHistoryAndStateStack'](_0xbd5297){const _0x3d31a8=_0x2dd085,{unitID:_0xa6f4c7}=_0xbd5297,{history:_0x417143,collaboration:_0x3c471d}=this[_0x3d31a8(0x3e7)][_0x3d31a8(0x345)](_0xa6f4c7);if(_0x417143[_0x3d31a8(0x37e)]===0x0&&_0x3c471d[_0x3d31a8(0x37e)]===0x0)return;const _0x40b3f1=[],_0x582269=[];let _0x49d75e=a[_0x3d31a8(0x3de)][_0x3d31a8(0x1c1)](_0xbd5297[_0x3d31a8(0x278)][0x0]),_0x1fb9d0=a['Tools'][_0x3d31a8(0x1c1)](_0xbd5297[_0x3d31a8(0x278)][0x0]);for(let _0x508804=_0x417143[_0x3d31a8(0x37e)]-0x1;_0x508804>=0x0;_0x508804--){const _0x205954={'id':_0x3d31a8(0x1d0),'params':{'unitId':_0x417143[_0x508804]['unitId'],..._0x417143[_0x508804]['undoState']}},_0x5a8603={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x417143[_0x508804][_0x3d31a8(0x1b1)],..._0x417143[_0x508804]['redoState']}},_0x486093=this[_0x3d31a8(0x3fe)][_0x3d31a8(0x320)](_0x49d75e,_0x205954,!0x1),_0x41fdc4=this[_0x3d31a8(0x3fe)]['transformMutation'](_0x1fb9d0,_0x5a8603,!0x1);if(v[_0x3d31a8(0x24f)](_0x486093))throw _0x486093[_0x3d31a8(0x409)];if(v['isTransformMutationFailure'](_0x41fdc4))throw _0x41fdc4['error'];_0x40b3f1[_0x3d31a8(0x3b0)]({..._0x417143[_0x508804],'undoState':_0x486093[_0x3d31a8(0x27e)][_0x3d31a8(0x1e2)],'redoState':_0x41fdc4[_0x3d31a8(0x27e)][_0x3d31a8(0x1e2)]}),_0x49d75e=_0x486093[_0x3d31a8(0x242)],_0x1fb9d0=_0x41fdc4[_0x3d31a8(0x242)];}_0x49d75e=a['Tools'][_0x3d31a8(0x1c1)](_0xbd5297[_0x3d31a8(0x278)][0x0]),_0x1fb9d0=a[_0x3d31a8(0x3de)][_0x3d31a8(0x1c1)](_0xbd5297[_0x3d31a8(0x278)][0x0]);for(let _0x54717e=_0x3c471d[_0x3d31a8(0x37e)]-0x1;_0x54717e>=0x0;_0x54717e--){const _0x1b95a7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3c471d[_0x54717e][_0x3d31a8(0x1b1)],..._0x3c471d[_0x54717e][_0x3d31a8(0x3ac)]}},_0x361d8e={'id':_0x3d31a8(0x1d0),'params':{'unitId':_0x3c471d[_0x54717e]['unitId'],..._0x3c471d[_0x54717e][_0x3d31a8(0x1a3)]}},_0x435b2f=this[_0x3d31a8(0x3fe)]['transformMutation'](_0x49d75e,_0x1b95a7,!0x1),_0x1e4b40=this['_transformService'][_0x3d31a8(0x320)](_0x1fb9d0,_0x361d8e,!0x1);if(v[_0x3d31a8(0x24f)](_0x435b2f))throw _0x435b2f['error'];if(v[_0x3d31a8(0x24f)](_0x1e4b40))throw _0x1e4b40[_0x3d31a8(0x409)];_0x582269[_0x3d31a8(0x3b0)]({..._0x3c471d[_0x54717e],'undoState':_0x435b2f[_0x3d31a8(0x27e)][_0x3d31a8(0x1e2)],'redoState':_0x1e4b40['m2Prime'][_0x3d31a8(0x1e2)]}),_0x49d75e=_0x435b2f[_0x3d31a8(0x242)],_0x1fb9d0=_0x1e4b40[_0x3d31a8(0x242)];}this[_0x3d31a8(0x3e7)][_0x3d31a8(0x41d)](_0xa6f4c7,{'history':_0x40b3f1,'collaboration':_0x582269});}};Q=Yt([he(0x0,a[_0x2dd085(0x287)](a['Injector'])),he(0x1,v[_0x2dd085(0x268)]),he(0x2,a[_0x2dd085(0x287)](T[_0x2dd085(0x348)]))],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x5e1075,_0x39fc25,_0x35b058,_0x1fca00)=>{const _0x1e76a7=_0x2dd085;for(var _0x446969=_0x1fca00>0x1?void 0x0:_0x1fca00?Ht(_0x39fc25,_0x35b058):_0x39fc25,_0x3222e4=_0x5e1075[_0x1e76a7(0x37e)]-0x1,_0x125783;_0x3222e4>=0x0;_0x3222e4--)(_0x125783=_0x5e1075[_0x3222e4])&&(_0x446969=_0x125783(_0x446969)||_0x446969);return _0x446969;},Me=(_0x36f081,_0x88c4dd)=>(_0x392a66,_0x90d42f)=>_0x88c4dd(_0x392a66,_0x90d42f,_0x36f081);let ee=class{constructor(_0x4ca4ec,_0x3d0687){const _0x3042fb=_0x2dd085;this[_0x3042fb(0x196)]=_0x4ca4ec,this[_0x3042fb(0x3fe)]=_0x3d0687;}[_0x2dd085(0x1b0)](_0x17aec7){const _0x1c8090=_0x2dd085;var _0x1e6bd3;const _0x4b6ece=this[_0x1c8090(0x196)][_0x1c8090(0x1d6)](W[_0x1c8090(0x202)]),_0x54d284=(_0x1e6bd3=_0x4b6ece[_0x1c8090(0x3c8)]())!=null?_0x1e6bd3:[];if(_0x54d284[_0x1c8090(0x37e)]===0x0)return;const _0x1f917f=_0x17aec7[_0x1c8090(0x1b8)],_0x58ef47=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1f917f,'actions':null,'textRanges':_0x54d284}}],_0x665a1f=this[_0x1c8090(0x3fe)][_0x1c8090(0x407)](_0x17aec7,_0x58ef47);if(!v[_0x1c8090(0x30d)](_0x665a1f))throw _0x665a1f[_0x1c8090(0x409)];const _0x535b69=_0x665a1f[_0x1c8090(0x27e)][0x0][_0x1c8090(0x1e2)][_0x1c8090(0x2ad)];Array[_0x1c8090(0x2d8)](_0x535b69)&&_0x535b69['length']&&_0x4b6ece[_0x1c8090(0x3eb)](_0x535b69,{'unitId':_0x1f917f,'subUnitId':_0x1f917f},!0x1);}};ee=Wt([Me(0x0,a[_0x2dd085(0x287)](a[_0x2dd085(0x297)])),Me(0x1,v['ITransformService'])],ee);var Vt=Object[_0x2dd085(0x251)],Gt=(_0x81727,_0x635694,_0x4a3a32,_0x1159e8)=>{for(var _0x6e7e0d=_0x1159e8>0x1?void 0x0:_0x1159e8?Vt(_0x635694,_0x4a3a32):_0x635694,_0x8c0b60=_0x81727['length']-0x1,_0x3229da;_0x8c0b60>=0x0;_0x8c0b60--)(_0x3229da=_0x81727[_0x8c0b60])&&(_0x6e7e0d=_0x3229da(_0x6e7e0d)||_0x6e7e0d);return _0x6e7e0d;},N=(_0xeef8e0,_0x594ae4)=>(_0x50b75b,_0x157301)=>_0x594ae4(_0x50b75b,_0x157301,_0xeef8e0);let te=class extends a['Disposable']{constructor(_0x4f1169,_0x18cf75,_0x183120,_0x5529b1,_0x89ff19,_0x56315c,_0x602118,_0x3e9452){const _0x5b598c=_0x2dd085;super(),_(this,_0x5b598c(0x36b),new I[(_0x5b598c(0x21a))](u[_0x5b598c(0x3f8)][_0x5b598c(0x19f)])),(this['_docStateChangeManagerService']=_0x4f1169,this[_0x5b598c(0x240)]=_0x18cf75,this['_docTransformIMECacheService']=_0x183120,this[_0x5b598c(0x2d9)]=_0x5529b1,this[_0x5b598c(0x2aa)]=_0x89ff19,this['_docSyncEditingCollabCursorService']=_0x56315c,this[_0x5b598c(0x2b8)]=_0x602118,this[_0x5b598c(0x427)]=_0x3e9452,this[_0x5b598c(0x2e4)]());}[_0x2dd085(0x2e4)](){const _0x1bdce0=_0x2dd085;this['disposeWithMe'](this[_0x1bdce0(0x240)][_0x1bdce0(0x418)]['subscribe'](_0x2b6153=>{const _0x73d7d3=_0x1bdce0,_0x3d470b=this[_0x73d7d3(0x3e7)]['docStateChange$'][_0x73d7d3(0x2f1)](_0x1de607=>{const _0xf612cc=_0x73d7d3;if(_0x1de607==null)return;const {unitId:_0xcb0b7b,redoState:_0x371f4b,commandId:_0x637993}=_0x1de607;if(_0xcb0b7b!==_0x2b6153[_0xf612cc(0x1b8)])return;const _0x10613b={'id':_0x637993,'type':a[_0xf612cc(0x344)][_0xf612cc(0x325)],'params':{'unitId':_0xcb0b7b,'actions':_0x371f4b[_0xf612cc(0x26a)],'textRanges':null}};_0x2b6153['onLocalMutation'](_0x10613b);});if(_0x2b6153[_0x73d7d3(0x34a)](_0x3d470b),_0x2b6153 instanceof u['DocCollaborationEntity']){const _0xe9a692={'onTransformIME':_0x396dd3=>this[_0x73d7d3(0x30a)][_0x73d7d3(0x1fd)](_0x396dd3),'onTransformState':_0x392f75=>this[_0x73d7d3(0x2d9)][_0x73d7d3(0x360)](_0x392f75),'onTransformSelections':_0x52245b=>this['_docTransformSelectionsService'][_0x73d7d3(0x1b0)](_0x52245b),'onSyncEditingCollabCursor':_0x4b416d=>this[_0x73d7d3(0x1c2)][_0x73d7d3(0x23e)](_0x4b416d),'onTransformRemoteChangesetByIMECache':_0x4f28a5=>this[_0x73d7d3(0x30a)][_0x73d7d3(0x25c)](_0x4f28a5),'onTransformRemoteChangesetByStateCache':_0x58ca1a=>this['_docTransformStateCacheService'][_0x73d7d3(0x25c)](_0x58ca1a)};_0x2b6153[_0x73d7d3(0x1b9)](_0xe9a692);}}));}};te=Gt([N(0x0,a[_0x2dd085(0x287)](T['DocStateChangeManagerService'])),N(0x1,a[_0x2dd085(0x287)](u['CollaborationController'])),N(0x2,a[_0x2dd085(0x287)](Z)),N(0x3,a['Inject'](Q)),N(0x4,a[_0x2dd085(0x287)](ee)),N(0x5,a[_0x2dd085(0x287)](Oe)),N(0x6,O[_0x2dd085(0x264)]),N(0x7,a[_0x2dd085(0x287)](a[_0x2dd085(0x388)]))],te);function _0x3083(){const _0x588f79=['cursorInfo$','RefRangeService','off-line-icon','unload','UNIVER_SHEET','onMouseMove','collab-text-anchor-','formula.calculation.started','runOnServer','_currentUsage','_initStatusComponent','forEach','storage','replace','path','idSuffix','RichTextEditingMutation','SetFormulaCalculationStartMutation','_showGuardMessage','Tools','_range','Rectangle','enableLocalCache','_applyCommand','ranges','invokeId','InsertRangeMoveDownCommandId','INVALID_INVITE_CODE','_docStateChangeManagerService','range','show','_getSheetObject','replaceDocRanges','string','UNAUTHENTICATED','executionId','SOCKET_FAILED','...','_context','attrs','collaboration-client-ui.config','APPLY_DUPLICATED','LOGIN_FAILED','forwardRef','push','CollaborationStatus','tag','currentTheme$','status$','APPLY_REVISION_CONFILICT','YUUMI_RATE_OVER_LIMIT','_transformService','ERROR_AGAIN','Vector2','WebURLService','Optional','getCoordByCell','session.connection-failed','_hovered','532348tshTWZ','transformMutationsWithChangeset','isActive','error','http://www.w3.org/2000/svg','713705uWhvGp','findNodePositionByCharIndex','?taskId=','SetDocZoomRatioOperation','_setupBeforeClosingHandler','APPLY_NON_SEQUENTIAL_REVISION','collabStatus.offline','complete','EMAIL_HAS_BEEN_BOUND','generateRandomId','REDEMPTION_USER_REDEEM_TIMES_EXCEED','isFormulaString','getSheetBySheetId','entityInit$','code','InsertRangeMoveRightCommandId','_docSkeleton','_collabSessionService','setStateCache','editingUnit','Disposable','jsx','fill','loadUnit','ENSURE_SNAPSHOT_EXECUTION','COLORS','ICommandService','body','_localeService','serializeRangeWithSheet','FromArray','_getSessionTicket','engine','CONNECTOR_DATA_TOO_LARGE','SHEET_VIEWPORT_KEY','closePath','SetWorksheetActivateCommand','YUUMI_TABLE_NOT_FOUND_IN_UNIT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','asObservable','DeleteRangeMoveLeftCommandId','SNAPSHOT_HAS_BEEN_REMOVED','_syncEditingCollabCursorService','setInterval','override','_entities','USER_NOT_INVITED_CODE','getMember','ALREADY_EXISTS','row','displayName','history','MOBILE_HAS_BEEN_BOUND','getTypeOfUnitAdded$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_injector','_color','_labelPosition','startFormulaLimitUrl','ILogService','_hasFormulaInDirtyRanges','REDEMPTION_USER_NOT_ELIGIBLE','color','_ensureSubject','NOT_COLLAB','_colorAssignService','_taskIds','round','redoState','_hideTimer','transformByState','_registerRenderDependencies','useRef','getUndoRedoMutationParamsCache','_roomMembers$','UnitStatus','clipPath','getVpScrollXYInfoByPosToVp','TEXT_RANGE_LAYER_INDEX','disableLocalCache','takeUntil','transformSelections','unitId','OTHER_CLIENT_EDITING','_imageIoService','onStarting','white','selection','_univerInstanceService','unitID','addHandlerCallback','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','jiqing.500','_drawRectRange','debounceTime','arc','size','onPointerEnter$','deepClone','_docSyncEditingCollabCursorService','_handleLeaveEvent','setAlpha','_disabled','_pollingInterval','ticket','INTERNAL_ERROR','_drawTextRange','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','backgroundColor','substring','width','INVITE_CODE_REQUIRED','getformulaLimitStatusUrl','doc.mutation.rich-text-editing','permission.content','registerRenderModule','from','_scene','SheetsSelectionsService','get','onPointerLeave$','YUUMI_CONNECTOR_URL_NOT_FOUND','LOCAL_CACHE_INTERVAL','xlink:href','shift','_sheetSkeletonManagerService','REDEMPTION_CODE_INACTIVE','OffLineIcon','_cachedData','_cursor','symbol','params','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','measureText','with','IRemoteInstanceService','assignAColorForMemberID','collabStatus.notCollab','addObject','next','_initCommandInterceptor','startRow','_handleHover','getAncestorScale','activeSheet$','WECHAT_HAS_BEEN_BOUND','url(#off-line-icon_clip0_910_343)','ONLINE','IImageIoService','IUIPartsService','_initCommandExecutedListener','FETCH_MISS','Subject','UNDEFINED','result','SetSelectionsOperation','toDisposable','onRendered','transformIMECache','PY_RUNTIME_SCRIPT_ERROR','_unitOnClients','_drawAnchor','currentSkeleton$','DocSelectionManagerService','ENTITLE_REPORT_LIMIT_EXCEED','_scheduleClearOtherTimer','drawWith','search','_scheduleHeartbeat','CollaborationUIEventService','USER_NOT_FOUND','_collabCursorController','_initStatusListener','_saveCache','_anchor','_cursorShapes','dispose','formula.calculation.waiting','HTTPService','children','saveTaskMap','InsertColCommandId','getFocusedUnit','cursorInfo','ILocalStorageService','_entityInit$','RECT','BehaviorSubject','permission.title','handleMoveRange','_revisionService','SetTextSelectionsOperation','DeleteRangeMoveUpCommandId','YUUMI_SUBSCRIPTION_NOT_FOUND','RxDisposable','urlChange$','/universer-api/license/formula/limit/status','href','_maxFormulaLimit','_removeClearOtherTimer','_transformHistoryAndStateStack','ENTITLE_INSUFFICIENT_QUOTA','0\x200\x2017\x2016','useDependency','replaceState','_collaborationUIEventService','pushState','newValue','getRenderById','MOBILE_VERIFY_CODE_MISMATCH','IRenderManagerService','Module','_config','_render','handleInsertRangeMoveDown','stage','_toggleOffline','_urlService','NodePositionConvertToCursor','IUniverInstanceService','getUniverSheetInstance','_updateSubUnitFromURLParams','startColumn','syncEditingCollabCursor','SheetCollabCursorShape','_collaborationController','find','m1Prime','skeleton','sessionTicket','formula.calculation.unable','_initResize','_refRangeService','ENTITLE_CHAT_LIMIT_EXCEED','_hover','unsubscribe','ILocalCacheService','createElement','clearInterval','moveTo','isTransformMutationFailure','roomMembers$','getOwnPropertyDescriptor','getCollabCursors$','getViewport','fillText','158062cMfmko','_textBubble','getCellMatrix','unit','getMergeData','sheetId','_docSkeletonManagerService','transformRemoteChangeset','UPDATE_CURSOR','INVITE_CODE_HAS_BEEN_UES','CONFLICT','setItem','Workbook','set','combineLatest','IMessageService','_onCursorUpdate','SNAPSHOT_INVALID_SNAPSHOT','DATA_SOURCE_TOO_LARGE','ITransformService','_id','actions','_cursors','wsSessionTicketUrl','sheetID','RegularPolygon','onPointerMove$','red.300','pluginName','yellow.400','top','_commandService','getUnit','_online','_unitStatus','mutations','on-line-icon','colorChannel1','runId','_getSaveTimeout','getConfig','m2Prime','ENTITLE_NEED_BILLING_ADDRESS','ISnapshotServerService','Warning','INotificationService','lineTo','maxFormulaLimit','SheetSkeletonManagerService','_transformUndoRedoStack','Inject','setConfig','387630eZIwIZ','_colorIndex','LOCAL_CACHE_INTERVAL_KEY','ThemeService','hide','_startDocCollabCursor','LICENSE_EXPORT_SIZE_EXCEEDED','_beforeCloseService','_cursorInfo$','setParam','YUUMI_ASYNCIO_CANCELLED','ColorKit','getCellPositionByOffset','mask','Injector','_anchorDot','_clearPolling','defs','session.will-retry','UniverInstanceType','dispose$','NO_OTHER_CLIENTS_EDITING','getSheetId','CollaborationUIEventId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','touchDependencies','send','TOO_MANY_REQUESTS','_localCacheService','filter','RemoteUniscriptService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_releaseCalculationLimit','_docTransformSelectionsService','_httpService','_assignedColors','textRanges','subscribeEvent','on-line-icon_clip0_910_349','max','evenodd','requireSession','none','EMAIL_VERIFY_CODE_MISMATCH','handleInsertCol','SUCCESS','CollaborationDataLoaderController','_messageService','_initDependencies','limitInfo','runRefRangeMutations','connectInjector','_updateLocalCursor','JOIN_ROOM_FAILED','fillRule','map','getActiveRange','EffectRefRangId','removeParam','VIEW_MAIN','CHANGESET_REVISION_CONFILICT','_clearOtherTimers','_session','_lastPointer','REDEMPTION_CODE_NOT_STARTED','rgba(255,\x20255,\x20255,\x200.01)','_checkCalculationAvailable','setUndoRedoMutationParamsCache','getTypeOfUnitDisposed$','defIds','getParam','LICENSE_DISTRO_REJECTED','type','_eventUnsubscribe','INVALID_ARGUMENT','eventID','currentColor','div','addClipboardHook','isArray','_docTransformStateCacheService','restore','_backgroundColor','onCommandExecuted','DependentOn','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','NOT_FOUND','saveOfflineData','DocIMEInputManagerService','_getFormulaLimitStatus','_onCursorDelete','_initEntityListener','getSkeleton','_getMergeRange','_memberService','YUUMI_UNABLE_LOAD_URL','mergeOverrideWithDependencies','collabCursorState$','COMPLETION_FINISHED','clsx','_scheduleSaving','saveImage','YUUMI_URL_COL_OUT_OF_RANGE','Unknown\x20user','subscribe','REDEMPTION_INVALID_CODE','hovered','resize','font','_draw','UniverCollaborationClientUIPlugin','YUUMI_ALL_TABLES_IS_INVALID','IURLService','debounce','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_createSocketURL','green.600','collabStatus.syncing','Error','DocSkeletonManagerService','save','getOffsetConfig','labelPosition','1em','_refreshCollabCursors','_transformPreviousActiveRange','ACTIVE_UNIT_EVENT_CHANNEL','source','black','_docTransformIMECacheService','_toggleOnline','_dataLoaderService','isTransformMutationsWithChangesetSuccess','add','APPLY_REJECT','shareReplay','column','UNIVER_DOC','svg','roomMembers','_localStorageService','popstate','IConfigService','Success','getRelativeToViewportCoord','_onRefRangeChange','MemberService','IDocClipboardService','collab-rect-range-','_logService','name','transformMutation','_handleHeartbeatEvent','_startCalculationLimit','_docClipboardService','OTHER_CLIENTS_EDITING','MUTATION','AUTHORIZE_CODE_ILLEGAL','_name','_instanceService','trim','now','reconnect','_handleJoinEvent','_handleEvent','executeCommand','useObservable','translate(.97)','init','data','DesktopCollaborationStatusDisplayController','70wDXTxm','_send','univer-flex\x20univer-items-center','fromEvent','Rect','registerDependencies','getValue','/universer-api/license/formula/limit/done','toRgbString','text','_selfUnitIDs','ENTITLE_DUP_SUBSCRIPTION','RemoveRowCommandId','entries','makeDirty','getUnitId','CommandType','getStateCache','_saveTaskMap','post','DocStateChangeManagerService','fillStyle','disposeWithMe','_init','SetFormulaCalculationNotificationMutation','USERS_LEAVE','uni.network.url-service','CanceledError','_heartbeatTimer','CollaborationSocketService','LICENSE_IMPORT_SIZE_EXCEEDED','CURRENT_STATUS_CANNOT_OPERATE','WebSocketService','57878utiMPr','396272mgkyaT','REDEMPTION_CODE_FULLY_REDEEMED','collab-text-range-','parseInt','location','UNRECOGNIZED','delete','setShapeProps','handleIRemoveCol','url(#$1','transformStateCache','distinctUntilChanged','getActiveSheet','LOGIN_TOKEN_PROCESSING_FAILED','loadOfflineData','REDEMPTION_CODE_HAS_BEEN_CREATED','registerRefRange','getLocalCacheKey','getMemberID','mapTo','OFFLINE','_status$','SYNCED','then','BrowserCollaborationSocketService','_renderManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','subunit','handleInsertRow','PERMISSION_DENIED','_document','event$','DEFAULT_WS_SESSION_TICKET_URL','APPLY_PERMISSION_DENIED','searchParams','YUUMI_AI_RUN_FAILED','_doCreateSocket','USER_IS_ANONYMOUS','_getScale','_collabCursorState$','length','endRow','NodePositionConvertToRectRange','createIdentifier','_removeCollabCursors','values','getCurrentUnitForType','stringify','releaseFormulaLimitUrl','Tooltip','LocaleService','assign','getCurrentSelections','switchMap','subUnitId','handleDeleteRangeMoveLeft','collab-client.tooltip.reconnect','DOC_RANGE_TYPE','_configService','MessageType','_updateCollabCursors','setTimeout','onTransformChange$','CollaborationSessionService','handleDeleteRangeMoveUp','_notificationService','_checkAndWaitForCalculationPermission','split','registerBeforeClose','updateOfflineData','PAYMENT_CHANNEL_NOT_SUPPORT','SOCKET_FAILED_RETRY','_themeService','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','sessionStatus$','[CollaborationDataLoaderController]','min','parse','_initEvent','FormulaExecuteStageType','addEventListener','toString','getColor','createInstance','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','off-line-icon_clip0_910_343','undoState','561642wyehIz','univerjs-icon\x20univerjs-icon-','beforeCommandExecuted','unshift','defineProperty','height','/run/','START_CALCULATION','_setupSubUnitSync','Plugin','getUnitStatus$','_lastResponseTimestamp','getRangePointData','_updateURLWithCurrentState','totalFormulasToCalculate','CollaborationEvent','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','WebBrowserSingleActiveUnitService','AWAITING','merge','M0\x200H16V16H0z','includes','pipe','_setFormulaLimitStatus','clearTimeout','TEXT','has','getDocRanges','_shapes','IBeforeCloseService'];_0x3083=function(){return _0x588f79;};return _0x3083();}var V=(_0x68502c=>(_0x68502c[_0x68502c[_0x2dd085(0x1f8)]=0x0]='UNDEFINED',_0x68502c[_0x68502c['OK']=0x1]='OK',_0x68502c[_0x68502c[_0x2dd085(0x1c8)]=0x2]=_0x2dd085(0x1c8),_0x68502c[_0x68502c[_0x2dd085(0x373)]=0x3]=_0x2dd085(0x373),_0x68502c[_0x68502c[_0x2dd085(0x2df)]=0x4]=_0x2dd085(0x2df),_0x68502c[_0x68502c[_0x2dd085(0x3ed)]=0x5]=_0x2dd085(0x3ed),_0x68502c[_0x68502c[_0x2dd085(0x43c)]=0x6]=_0x2dd085(0x43c),_0x68502c[_0x68502c['INVALID_ARGUMENT']=0x7]=_0x2dd085(0x2d3),_0x68502c[_0x68502c['TOO_MANY_REQUESTS']=0x8]=_0x2dd085(0x2a4),_0x68502c[_0x68502c[_0x2dd085(0x2eb)]=0x9]='COMPLETION_FINISHED',_0x68502c[_0x68502c[_0x2dd085(0x3f5)]=0xa]=_0x2dd085(0x3f5),_0x68502c[_0x68502c[_0x2dd085(0x230)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x68502c[_0x68502c[_0x2dd085(0x3bd)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x68502c[_0x68502c[_0x2dd085(0x2b4)]=0xd]=_0x2dd085(0x2b4),_0x68502c[_0x68502c['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x2dd085(0x2a1),_0x68502c[_0x68502c['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x2dd085(0x326),_0x68502c[_0x68502c['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x2dd085(0x363),_0x68502c[_0x68502c['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x2dd085(0x353),_0x68502c[_0x68502c[_0x2dd085(0x3ff)]=0x65]='ERROR_AGAIN',_0x68502c[_0x68502c[_0x2dd085(0x209)]=0xc9]=_0x2dd085(0x209),_0x68502c[_0x68502c[_0x2dd085(0x37b)]=0xca]=_0x2dd085(0x37b),_0x68502c[_0x68502c[_0x2dd085(0x2c5)]=0x1389]=_0x2dd085(0x2c5),_0x68502c[_0x68502c[_0x2dd085(0x266)]=0x1771]=_0x2dd085(0x266),_0x68502c[_0x68502c[_0x2dd085(0x435)]=0x1772]=_0x2dd085(0x435),_0x68502c[_0x68502c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2dd085(0x423),_0x68502c[_0x68502c['APPLY_REJECT']=0x1b59]=_0x2dd085(0x30f),_0x68502c[_0x68502c[_0x2dd085(0x410)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x68502c[_0x68502c[_0x2dd085(0x3fc)]=0x1b5b]=_0x2dd085(0x3fc),_0x68502c[_0x68502c[_0x2dd085(0x377)]=0x1b5c]=_0x2dd085(0x377),_0x68502c[_0x68502c[_0x2dd085(0x3f4)]=0x1b5d]=_0x2dd085(0x3f4),_0x68502c[_0x68502c[_0x2dd085(0x42c)]=0x1f41]=_0x2dd085(0x42c),_0x68502c[_0x68502c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x68502c[_0x68502c[_0x2dd085(0x431)]=0x232a]=_0x2dd085(0x431),_0x68502c[_0x68502c[_0x2dd085(0x352)]=0x232b]=_0x2dd085(0x352),_0x68502c[_0x68502c[_0x2dd085(0x28f)]=0x232c]=_0x2dd085(0x28f),_0x68502c[_0x68502c[_0x2dd085(0x2d0)]=0x232d]=_0x2dd085(0x2d0),_0x68502c[_0x68502c[_0x2dd085(0x2e8)]=0x2711]=_0x2dd085(0x2e8),_0x68502c[_0x68502c[_0x2dd085(0x2ef)]=0x2712]=_0x2dd085(0x2ef),_0x68502c[_0x68502c[_0x2dd085(0x3fd)]=0x2713]=_0x2dd085(0x3fd),_0x68502c[_0x68502c[_0x2dd085(0x220)]=0x2714]=_0x2dd085(0x220),_0x68502c[_0x68502c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x68502c[_0x68502c[_0x2dd085(0x293)]=0x271b]=_0x2dd085(0x293),_0x68502c[_0x68502c[_0x2dd085(0x430)]=0x271c]=_0x2dd085(0x430),_0x68502c[_0x68502c[_0x2dd085(0x2f8)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x68502c[_0x68502c['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2dd085(0x1ba),_0x68502c[_0x68502c[_0x2dd085(0x379)]=0x271f]=_0x2dd085(0x379),_0x68502c[_0x68502c[_0x2dd085(0x1d8)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x68502c[_0x68502c[_0x2dd085(0x1fe)]=0x2af9]=_0x2dd085(0x1fe),_0x68502c[_0x68502c[_0x2dd085(0x25e)]=0x2ee1]=_0x2dd085(0x25e),_0x68502c[_0x68502c[_0x2dd085(0x3e6)]=0x2ee2]='INVALID_INVITE_CODE',_0x68502c[_0x68502c[_0x2dd085(0x1ce)]=0x2ee3]=_0x2dd085(0x1ce),_0x68502c[_0x68502c[_0x2dd085(0x43a)]=0x2ee4]=_0x2dd085(0x43a),_0x68502c[_0x68502c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x68502c[_0x68502c[_0x2dd085(0x1f0)]=0x32c9]=_0x2dd085(0x1f0),_0x68502c[_0x68502c[_0x2dd085(0x193)]=0x32ca]=_0x2dd085(0x193),_0x68502c[_0x68502c[_0x2dd085(0x413)]=0x32cb]=_0x2dd085(0x413),_0x68502c[_0x68502c[_0x2dd085(0x2fb)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x68502c[_0x68502c['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x68502c[_0x68502c[_0x2dd085(0x33f)]=0x36b3]=_0x2dd085(0x33f),_0x68502c[_0x68502c[_0x2dd085(0x39c)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x68502c[_0x68502c[_0x2dd085(0x248)]=0x3715]=_0x2dd085(0x248),_0x68502c[_0x68502c[_0x2dd085(0x203)]=0x3716]=_0x2dd085(0x203),_0x68502c[_0x68502c[_0x2dd085(0x228)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x68502c[_0x68502c[_0x2dd085(0x27f)]=0x37dd]=_0x2dd085(0x27f),_0x68502c[_0x68502c[_0x2dd085(0x2f2)]=0x3a99]=_0x2dd085(0x2f2),_0x68502c[_0x68502c['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x2dd085(0x1dd),_0x68502c[_0x68502c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x2dd085(0x357),_0x68502c[_0x68502c[_0x2dd085(0x2c9)]=0x3a9c]=_0x2dd085(0x2c9),_0x68502c[_0x68502c[_0x2dd085(0x19c)]=0x3a9d]=_0x2dd085(0x19c),_0x68502c[_0x68502c['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x2dd085(0x415),_0x68502c[_0x68502c['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x2dd085(0x365),_0x68502c[_0x68502c['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x2dd085(0x267),_0x68502c[_0x68502c[_0x2dd085(0x35b)]=-0x1]='UNRECOGNIZED',_0x68502c))(V||{});function Xt(_0x3fed80){const _0x413a2f=_0x2dd085;var _0x127703,_0x29bfc5;const _0x1d78b8=(_0x127703=_0x3fed80['stageInfo'])==null?void 0x0:_0x127703[_0x413a2f(0x236)],_0x4ac632=((_0x29bfc5=_0x3fed80['stageInfo'])==null?void 0x0:_0x29bfc5[_0x413a2f(0x3bb)])||0x0;return _0x1d78b8===x[_0x413a2f(0x3a5)][_0x413a2f(0x3b4)]&&_0x4ac632>0x0;}function Kt(_0x3d268f){const _0x26b4c1=_0x2dd085;return _0x3d268f['functionsExecutedState']===x['FormulaExecutedStateType'][_0x26b4c1(0x2b6)];}var qt=Object[_0x2dd085(0x251)],zt=(_0x407a38,_0x2406fd,_0x319d2b,_0xd8ebf7)=>{const _0x2393dd=_0x2dd085;for(var _0x5a5790=_0xd8ebf7>0x1?void 0x0:_0xd8ebf7?qt(_0x2406fd,_0x319d2b):_0x2406fd,_0x4edcd5=_0x407a38[_0x2393dd(0x37e)]-0x1,_0x588f8b;_0x4edcd5>=0x0;_0x4edcd5--)(_0x588f8b=_0x407a38[_0x4edcd5])&&(_0x5a5790=_0x588f8b(_0x5a5790)||_0x5a5790);return _0x5a5790;},L=(_0x278d92,_0x6bd16e)=>(_0x9bd178,_0x29c903)=>_0x6bd16e(_0x9bd178,_0x29c903,_0x278d92);const Jt=_0x2dd085(0x223),Zt='/universer-api/license/formula/limit/start',Qt=_0x2dd085(0x33b);let se=class extends a[_0x2dd085(0x41f)]{constructor(_0x41e539,_0x4416ef,_0x15ec56,_0x2ab4de,_0x4d79de,_0x4e4182,_0x26bf4c){const _0xb6fc3c=_0x2dd085;super(),_(this,_0xb6fc3c(0x1c6),null),_(this,_0xb6fc3c(0x225),0x0),_(this,'_currentUsage',0x0),_(this,_0xb6fc3c(0x1a1),[]),_(this,_0xb6fc3c(0x3b8),0x0),(this[_0xb6fc3c(0x2b8)]=_0x41e539,this['_commandService']=_0x4416ef,this[_0xb6fc3c(0x390)]=_0x15ec56,this[_0xb6fc3c(0x2ab)]=_0x2ab4de,this[_0xb6fc3c(0x1b7)]=_0x4d79de,this['_logService']=_0x4e4182,this[_0xb6fc3c(0x427)]=_0x26bf4c,this['_initCommandInterceptor']());}[_0x2dd085(0x1eb)](){const _0x49dda2=_0x2dd085;this[_0x49dda2(0x34a)](this[_0x49dda2(0x274)][_0x49dda2(0x3af)]((_0x4866d0,_0x11c4a3)=>{const _0x19487c=_0x49dda2;var _0x1e7365;if(_0x4866d0['id']!==x[_0x19487c(0x3dc)]['id'])return;const _0x4a3d73=_0x4866d0[_0x19487c(0x1e2)];if(!this[_0x19487c(0x19b)]((_0x1e7365=_0x4a3d73['dirtyRanges'])!=null?_0x1e7365:[]))return;if(!this[_0x19487c(0x2cb)]())throw this['_checkAndWaitForCalculationPermission'](_0x4866d0,_0x11c4a3),this[_0x19487c(0x3dd)](),new a[(_0x19487c(0x34f))]();})),this['disposeWithMe'](this[_0x49dda2(0x274)][_0x49dda2(0x2dc)]((_0x1d70ad,_0x3e3b8d)=>{const _0x3787f6=_0x49dda2;if(_0x1d70ad['id']!==x[_0x3787f6(0x34c)]['id'])return;const _0x5b5ff9=_0x1d70ad[_0x3787f6(0x1e2)];if(Xt(_0x5b5ff9)){const _0x4a0b40=a[_0x3787f6(0x414)]();this[_0x3787f6(0x1a1)][_0x3787f6(0x3f7)](_0x4a0b40),this[_0x3787f6(0x322)](_0x4a0b40);}else{if(Kt(_0x5b5ff9)&&this['_taskIds'][_0x3787f6(0x37e)]>0x0){const _0x442c65=this[_0x3787f6(0x1a1)][_0x3787f6(0x1db)]();this[_0x3787f6(0x2a9)](_0x442c65);}}}));}[_0x2dd085(0x20f)](){const _0x99a743=_0x2dd085;super['dispose'](),this[_0x99a743(0x299)](),this[_0x99a743(0x1a1)]=[],this[_0x99a743(0x3d4)]=0x0,this[_0x99a743(0x225)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x2dd085(0x398)](_0x486f77,_0x4ec6c2){const _0x178863=_0x2dd085;for(let _0x43472e=0x0;_0x43472e<0x1e;_0x43472e++)try{if(await this[_0x178863(0x2e2)](),this[_0x178863(0x2cb)]()){this[_0x178863(0x3e2)](_0x486f77,_0x4ec6c2),this[_0x178863(0x2b8)][_0x178863(0x3e9)]({'content':this[_0x178863(0x427)]['t'](_0x178863(0x3d2)),'type':p['MessageType'][_0x178863(0x318)]});return;}await new Promise(_0x4166f1=>{const _0x1d0f17=_0x178863;this['_pollingInterval']=window[_0x1d0f17(0x393)](_0x4166f1,0x3e8);});}catch(_0x3855b0){this[_0x178863(0x31e)][_0x178863(0x409)](_0x3855b0);}this[_0x178863(0x2b8)][_0x178863(0x3e9)]({'content':this['_localeService']['t'](_0x178863(0x245)),'type':p[_0x178863(0x391)][_0x178863(0x2ff)]});}['_applyCommand'](_0x549a90,_0x4b7060){const _0x528e1e=_0x2dd085;try{this[_0x528e1e(0x274)][_0x528e1e(0x32e)](_0x549a90['id'],_0x549a90['params'],_0x4b7060);}catch(_0x4e1256){this[_0x528e1e(0x31e)]['error'](_0x4e1256);}}[_0x2dd085(0x3c4)](_0x3dde91,_0x398a92){const _0x5564dd=_0x2dd085;_0x398a92<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x398a92,this[_0x5564dd(0x225)]=Number['parseInt'](_0x3dde91[_0x5564dd(0x284)]),this[_0x5564dd(0x3d4)]=Number[_0x5564dd(0x359)](_0x3dde91['currentUsage']));}async[_0x2dd085(0x322)](_0x1d6f48){const _0x6d0ea2=_0x2dd085;var _0xd3a75b,_0x2e1ed3;const _0x586610=Date['now']();try{const _0x565d6e=((_0xd3a75b=this[_0x6d0ea2(0x390)][_0x6d0ea2(0x27d)](u[_0x6d0ea2(0x3aa)]))==null?void 0x0:_0xd3a75b[_0x6d0ea2(0x199)])||Zt,_0x1f0ccb=(await this[_0x6d0ea2(0x2ab)][_0x6d0ea2(0x347)](_0x565d6e,{'body':JSON[_0x6d0ea2(0x385)]({'taskId':_0x1d6f48})}))[_0x6d0ea2(0x426)];if(((_0x2e1ed3=_0x1f0ccb[_0x6d0ea2(0x409)])==null?void 0x0:_0x2e1ed3[_0x6d0ea2(0x419)])!==V['OK'])return;this[_0x6d0ea2(0x3c4)](_0x1f0ccb[_0x6d0ea2(0x2ba)],_0x586610);}catch(_0x560345){this[_0x6d0ea2(0x31e)][_0x6d0ea2(0x409)](_0x560345);}}async[_0x2dd085(0x2e2)](_0x12fdec){const _0x256722=_0x2dd085;var _0xefaff6,_0x3c6154;const _0x38da6f=Date[_0x256722(0x32a)]();try{const _0x15ece1=((_0xefaff6=this[_0x256722(0x390)][_0x256722(0x27d)](u[_0x256722(0x3aa)]))==null?void 0x0:_0xefaff6[_0x256722(0x1cf)])||Jt,_0x6246a9=_0x12fdec?_0x15ece1+_0x256722(0x40d)+encodeURIComponent(_0x12fdec):_0x15ece1,_0x33d409=(await this['_httpService'][_0x256722(0x1d6)](_0x6246a9))[_0x256722(0x426)];if(((_0x3c6154=_0x33d409[_0x256722(0x409)])==null?void 0x0:_0x3c6154['code'])!==V['OK'])return;this[_0x256722(0x3c4)](_0x33d409[_0x256722(0x2ba)],_0x38da6f);}catch(_0x5c6754){this[_0x256722(0x31e)][_0x256722(0x409)](_0x5c6754);}}async['_releaseCalculationLimit'](_0x5e9621){const _0x2e04aa=_0x2dd085;var _0x170562,_0xf81732;const _0x134f04=Date['now']();try{const _0x2fc1c5=((_0x170562=this[_0x2e04aa(0x390)]['getConfig'](u[_0x2e04aa(0x3aa)]))==null?void 0x0:_0x170562[_0x2e04aa(0x386)])||Qt,_0x40f9c1=(await this[_0x2e04aa(0x2ab)][_0x2e04aa(0x347)](_0x2fc1c5,{'body':JSON[_0x2e04aa(0x385)]({'taskId':_0x5e9621})}))[_0x2e04aa(0x426)];if(((_0xf81732=_0x40f9c1['error'])==null?void 0x0:_0xf81732['code'])!==V['OK'])return;this[_0x2e04aa(0x3c4)](_0x40f9c1[_0x2e04aa(0x2ba)],_0x134f04);}catch(_0x42fecd){this['_logService'][_0x2e04aa(0x409)](_0x42fecd);}}[_0x2dd085(0x2cb)](){const _0x5d4495=_0x2dd085;return this[_0x5d4495(0x225)]===0x0?!0x0:this[_0x5d4495(0x225)]-this[_0x5d4495(0x3d4)]>0x0;}[_0x2dd085(0x299)](){const _0x1234ac=_0x2dd085;this[_0x1234ac(0x1c6)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x2dd085(0x3dd)](){const _0x5d0295=_0x2dd085;this[_0x5d0295(0x2b8)][_0x5d0295(0x3e9)]({'content':this[_0x5d0295(0x427)]['t'](_0x5d0295(0x210)),'type':p['MessageType']['Loading']});}[_0x2dd085(0x19b)](_0x510639){const _0x3aa0b4=_0x2dd085;for(const _0x481ed9 of _0x510639){const {unitId:_0x4e86db,sheetId:_0x55a565,range:_0x6cc34}=_0x481ed9,_0x472a29=this[_0x3aa0b4(0x1b7)][_0x3aa0b4(0x275)](_0x4e86db);if(!_0x472a29)continue;const _0x11d5da=_0x472a29['getSheetBySheetId'](_0x55a565);if(!_0x11d5da)continue;const _0x121651=_0x11d5da[_0x3aa0b4(0x257)]();for(let _0x180a6b=_0x6cc34[_0x3aa0b4(0x1ec)];_0x180a6b<=_0x6cc34[_0x3aa0b4(0x37f)];_0x180a6b++)for(let _0xbff3a2=_0x6cc34[_0x3aa0b4(0x23d)];_0xbff3a2<=_0x6cc34['endColumn'];_0xbff3a2++){const _0x104bf5=_0x121651[_0x3aa0b4(0x33a)](_0x180a6b,_0xbff3a2);if(_0x104bf5&&(a[_0x3aa0b4(0x416)](_0x104bf5['f'])||a['isFormulaId'](_0x104bf5['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0x2dd085(0x287)](O[_0x2dd085(0x264)])),L(0x1,a[_0x2dd085(0x425)]),L(0x2,a[_0x2dd085(0x317)]),L(0x3,a['Inject'](G[_0x2dd085(0x211)])),L(0x4,a[_0x2dd085(0x23a)]),L(0x5,a[_0x2dd085(0x19a)]),L(0x6,a[_0x2dd085(0x287)](a[_0x2dd085(0x388)]))],se);var es=Object[_0x2dd085(0x251)],ts=(_0x56ba18,_0x55b7fd,_0x28997d,_0x2ef7c2)=>{const _0x44ebc0=_0x2dd085;for(var _0x36bcbd=_0x2ef7c2>0x1?void 0x0:_0x2ef7c2?es(_0x55b7fd,_0x28997d):_0x55b7fd,_0x3eae39=_0x56ba18[_0x44ebc0(0x37e)]-0x1,_0x1e9876;_0x3eae39>=0x0;_0x3eae39--)(_0x1e9876=_0x56ba18[_0x3eae39])&&(_0x36bcbd=_0x1e9876(_0x36bcbd)||_0x36bcbd);return _0x36bcbd;},ue=(_0x1464ef,_0x45b40f)=>(_0x3a72c8,_0x50d940)=>_0x45b40f(_0x3a72c8,_0x50d940,_0x1464ef);let Ee=class extends a[_0x2dd085(0x41f)]{constructor(_0x1d8cfa,_0x52de0e,_0x4d0258){const _0x3708ff=_0x2dd085;super(),_(this,'_cachedData',new Map()),_(this,_0x3708ff(0x346),new Map()),_(this,_0x3708ff(0x1c5),!0x1),(this['_configService']=_0x1d8cfa,this['_localStorageService']=_0x52de0e,this[_0x3708ff(0x21d)]=_0x4d0258);}[_0x2dd085(0x1ae)](){const _0x640f50=_0x2dd085;this[_0x640f50(0x1c5)]=!0x0;}[_0x2dd085(0x3e1)](){const _0x39f407=_0x2dd085;this[_0x39f407(0x1c5)]=!0x1;}get[_0x2dd085(0x213)](){const _0x2e7ec0=_0x2dd085;return this[_0x2e7ec0(0x346)];}[_0x2dd085(0x20f)](){const _0x4a2827=_0x2dd085;this['exhaustSavingTask']()[_0x4a2827(0x36d)](()=>super[_0x4a2827(0x20f)]());}async[_0x2dd085(0x364)](_0x5c82d0){const _0x1ae0f8=_0x2dd085;return this[_0x1ae0f8(0x1c5)]?null:this[_0x1ae0f8(0x315)]['getItem'](u['getLocalCacheKey'](_0x5c82d0));}async[_0x2dd085(0x2e0)](_0x487601,_0x5e6a25){const _0x39c9b5=_0x2dd085;return!!this[_0x39c9b5(0x315)]['setItem'](_0x487601,_0x5e6a25);}[_0x2dd085(0x39b)](_0x247e9a,_0x55ed48,_0x42b297,_0x4f78c9){const _0xd6c55a=_0x2dd085,_0x3a6355=this[_0xd6c55a(0x21d)]['getCurrentRevOfUnit'](_0x247e9a);this[_0xd6c55a(0x1df)][_0xd6c55a(0x262)](_0x247e9a,{'unitID':_0x247e9a,'type':_0x55ed48,'awaitingChangeset':_0x42b297,'mutations':_0x4f78c9,'rev':_0x3a6355}),this[_0xd6c55a(0x346)]['has'](_0x247e9a)||this[_0xd6c55a(0x2ed)](_0x247e9a);}[_0x2dd085(0x2ed)](_0x6cecc8){const _0x2bdc13=_0x2dd085,_0x20715f=this[_0x2bdc13(0x27c)]();_0x20715f===0x0?this['_saveCache'](_0x6cecc8):this[_0x2bdc13(0x346)][_0x2bdc13(0x262)](_0x6cecc8,setTimeout(()=>this['_saveCache'](_0x6cecc8),_0x20715f));}[_0x2dd085(0x27c)](){const _0x4da72f=_0x2dd085;var _0x471535;return(_0x471535=this[_0x4da72f(0x390)][_0x4da72f(0x27d)](u[_0x4da72f(0x28b)]))!=null?_0x471535:u[_0x4da72f(0x1d9)];}[_0x2dd085(0x20c)](_0x35ecab){const _0x3603ca=_0x2dd085,_0x3e3504=this[_0x3603ca(0x346)][_0x3603ca(0x1d6)](_0x35ecab);return _0x3e3504!==void 0x0&&window[_0x3603ca(0x3c5)](_0x3e3504),this[_0x3603ca(0x315)][_0x3603ca(0x260)](u[_0x3603ca(0x367)](_0x35ecab),this['_cachedData'][_0x3603ca(0x1d6)](_0x35ecab))[_0x3603ca(0x36d)](()=>this['_saveTaskMap'][_0x3603ca(0x35c)](_0x35ecab));}async['exhaustSavingTask'](){const _0x50eee6=_0x2dd085,_0x49cf6c=[];this[_0x50eee6(0x346)]['forEach']((_0xa737ff,_0x5472d2)=>{const _0x5d0ebe=_0x50eee6;window[_0x5d0ebe(0x3c5)](_0xa737ff),_0x49cf6c[_0x5d0ebe(0x3f7)](this[_0x5d0ebe(0x20c)](_0x5472d2)[_0x5d0ebe(0x36d)](()=>{const _0x59cc82=_0x5d0ebe;this[_0x59cc82(0x346)][_0x59cc82(0x35c)](_0x5472d2);}));}),await Promise['all'](_0x49cf6c);}};Ee=ts([ue(0x0,a['IConfigService']),ue(0x1,a[_0x2dd085(0x217)]),ue(0x2,a[_0x2dd085(0x287)](v['RevisionService']))],Ee);class Fe extends a[_0x2dd085(0x221)]{constructor(){const _0x2714ff=_0x2dd085;super(),_(this,_0x2714ff(0x222)),this[_0x2714ff(0x222)]=I[_0x2714ff(0x337)](window,_0x2714ff(0x316))[_0x2714ff(0x3c3)](I['takeUntil'](this[_0x2714ff(0x29d)]),I[_0x2714ff(0x310)](0x1),I[_0x2714ff(0x369)](void 0x0));}[_0x2dd085(0x292)](_0x71f4b7,_0x24e398,_0x28ae7f=!0x1){const _0x59c7f9=_0x2dd085,_0x1642e0=new URL(window[_0x59c7f9(0x35a)][_0x59c7f9(0x224)]);_0x1642e0[_0x59c7f9(0x378)][_0x59c7f9(0x262)](_0x71f4b7,_0x24e398),_0x28ae7f?window['history'][_0x59c7f9(0x22b)]('','',_0x1642e0['toString']()):window[_0x59c7f9(0x192)][_0x59c7f9(0x22d)]('','',_0x1642e0[_0x59c7f9(0x3a7)]());}[_0x2dd085(0x2c3)](_0x5a832e,_0x197957=!0x1){const _0x13715c=_0x2dd085,_0x4eca3f=new URL(window['location'][_0x13715c(0x224)]);_0x4eca3f[_0x13715c(0x378)][_0x13715c(0x35c)](_0x5a832e),_0x197957?window[_0x13715c(0x192)][_0x13715c(0x22b)]('','',_0x4eca3f['toString']()):window[_0x13715c(0x192)][_0x13715c(0x22d)]('','',_0x4eca3f[_0x13715c(0x3a7)]());}[_0x2dd085(0x2cf)](_0x47c9e3){const _0x35b4ea=_0x2dd085;var _0x134a7a;return(_0x134a7a=new URL(window[_0x35b4ea(0x35a)][_0x35b4ea(0x224)])[_0x35b4ea(0x378)][_0x35b4ea(0x1d6)](_0x47c9e3))!=null?_0x134a7a:void 0x0;}}var ss=Object[_0x2dd085(0x3b1)],is=Object['getOwnPropertyDescriptor'],ns=(_0x1e2233,_0x521d0e,_0x4a80cc)=>_0x521d0e in _0x1e2233?ss(_0x1e2233,_0x521d0e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a80cc}):_0x1e2233[_0x521d0e]=_0x4a80cc,rs=(_0x365964,_0x57f730,_0x2b8738,_0x304b85)=>{for(var _0x132c17=_0x304b85>0x1?void 0x0:_0x304b85?is(_0x57f730,_0x2b8738):_0x57f730,_0x225247=_0x365964['length']-0x1,_0x2248bb;_0x225247>=0x0;_0x225247--)(_0x2248bb=_0x365964[_0x225247])&&(_0x132c17=_0x2248bb(_0x132c17)||_0x132c17);return _0x132c17;},Ie=(_0x390ff0,_0x1448cf)=>(_0xd43d2a,_0x2be097)=>_0x1448cf(_0xd43d2a,_0x2be097,_0x390ff0),os=(_0x26c05e,_0x2bc53b,_0x202abe)=>ns(_0x26c05e,_0x2bc53b+'',_0x202abe);const as=_0x2dd085(0x432);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x2dd085(0x3b6)]{constructor(_0x2c2e61=Ue,_0x3985a9,_0x36009e,_0x595f84){const _0x37c1dc=_0x2dd085;super(),this[_0x37c1dc(0x233)]=_0x2c2e61,this[_0x37c1dc(0x36f)]=_0x3985a9,this[_0x37c1dc(0x196)]=_0x36009e,this['_configService']=_0x595f84;const {..._0x2f9822}=a[_0x37c1dc(0x3c0)]({},Ue,this[_0x37c1dc(0x233)]);this['_configService'][_0x37c1dc(0x288)](Bt,_0x2f9822);}[_0x2dd085(0x1b4)](){const _0xd08e2=_0x2dd085;this['_registerDependencies'](),this[_0xd08e2(0x2b9)]();}[_0x2dd085(0x1fc)](){const _0x5cc965=_0x2dd085;this[_0x5cc965(0x1a6)]();}['_registerDependencies'](){const _0x536639=_0x2dd085;var _0x21aad2;const _0x1160ce=[[pe],[se],[ee],[Z],[Q],[Oe],[Te,{'useClass':Fe}],[G['ISocketService'],{'useClass':G[_0x536639(0x354)]}],[u[_0x536639(0x24b)],{'useClass':Ee}],[exports[_0x536639(0x333)]],[te],[J],[B],[de],[exports['CollaborationDataLoaderController']]];a[_0x536639(0x339)](this[_0x536639(0x196)],a[_0x536639(0x2e9)](_0x1160ce,(_0x21aad2=this[_0x536639(0x233)])==null?void 0x0:_0x21aad2[_0x536639(0x438)]));}['_registerRenderDependencies'](){const _0x493420=_0x2dd085;this[_0x493420(0x34a)](this[_0x493420(0x36f)][_0x493420(0x1d2)](a[_0x493420(0x29c)][_0x493420(0x312)],[ge])),this['disposeWithMe'](this[_0x493420(0x36f)][_0x493420(0x1d2)](a[_0x493420(0x29c)][_0x493420(0x3cf)],[ve]));}['_initDependencies'](){const _0x2d97db=_0x2dd085;a[_0x2d97db(0x2a2)](this['_injector'],[[B],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[exports['CollaborationDataLoaderController']],[se]]);}},os(exports[_0x2dd085(0x2f7)],_0x2dd085(0x271),as),exports[_0x2dd085(0x2f7)]=rs([a[_0x2dd085(0x2dd)](u['UniverCollaborationClientPlugin']),Ie(0x1,C[_0x2dd085(0x231)]),Ie(0x2,a[_0x2dd085(0x287)](a[_0x2dd085(0x297)])),Ie(0x3,a[_0x2dd085(0x317)])],exports['UniverCollaborationClientUIPlugin']);var cs=Object[_0x2dd085(0x251)],ls=(_0x14fd2f,_0x38cdda,_0x33f582,_0x5435ca)=>{const _0x15f4e7=_0x2dd085;for(var _0x210f2e=_0x5435ca>0x1?void 0x0:_0x5435ca?cs(_0x38cdda,_0x33f582):_0x38cdda,_0x5cf883=_0x14fd2f[_0x15f4e7(0x37e)]-0x1,_0x20fbc8;_0x5cf883>=0x0;_0x5cf883--)(_0x20fbc8=_0x14fd2f[_0x5cf883])&&(_0x210f2e=_0x20fbc8(_0x210f2e)||_0x210f2e);return _0x210f2e;},H=(_0x109414,_0x22f971)=>(_0xacd231,_0xa48b01)=>_0x22f971(_0xacd231,_0xa48b01,_0x109414);exports[_0x2dd085(0x36e)]=class extends u[_0x2dd085(0x351)]{constructor(_0x2b3960,_0x11343a,_0x1a373c,_0x135cfd,_0x1912ae){super(_0x2b3960,_0x11343a,_0x1a373c,_0x135cfd,_0x1912ae);}async['createSocket'](_0x24e081){const _0x3a08fc=_0x2dd085,_0x26696a=await this[_0x3a08fc(0x42a)](),_0xcf6802=this[_0x3a08fc(0x2fc)](_0x24e081,_0x26696a);return this[_0x3a08fc(0x37a)](_0xcf6802);}[_0x2dd085(0x2fc)](_0x835ea3,_0x4e9a2e){const _0x334864=_0x2dd085,_0x301ab5=typeof window>'u'?new URL(_0x835ea3):new URL(_0x835ea3,window[_0x334864(0x35a)]['origin']);_0x301ab5['searchParams'][_0x334864(0x262)](_0x334864(0x244),_0x4e9a2e);const _0x4f8d81=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x334864(0x35a)][_0x334864(0x206)]);return _0x4f8d81['get'](_0x334864(0x27b))&&_0x301ab5[_0x334864(0x378)][_0x334864(0x262)](_0x334864(0x27b),_0x4f8d81['get'](_0x334864(0x27b))),_0x301ab5[_0x334864(0x3a7)]();}async[_0x2dd085(0x42a)](){const _0xd39dda=_0x2dd085;var _0x78a9d6,_0x1c6ace,_0xf2ef1d;const _0x10adb9=this[_0xd39dda(0x390)]['getConfig'](u[_0xd39dda(0x3aa)]),_0x390961=(_0x78a9d6=_0x10adb9==null?void 0x0:_0x10adb9[_0xd39dda(0x26c)])!=null?_0x78a9d6:u[_0xd39dda(0x376)];return(_0xf2ef1d=(_0x1c6ace=(await this[_0xd39dda(0x2ab)][_0xd39dda(0x1d6)](_0x390961,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x1c6ace[_0xd39dda(0x1c7)])!=null?_0xf2ef1d:'';}},exports[_0x2dd085(0x36e)]=ls([H(0x0,a[_0x2dd085(0x287)](a['Injector'])),H(0x1,a[_0x2dd085(0x287)](G[_0x2dd085(0x211)])),H(0x2,a['IConfigService']),H(0x3,a[_0x2dd085(0x19a)]),H(0x4,v[_0x2dd085(0x280)])],exports[_0x2dd085(0x36e)]);var _s=Object[_0x2dd085(0x251)],hs=(_0x3cd048,_0x1f4da5,_0x48a82a,_0x25fe86)=>{const _0x30b2cf=_0x2dd085;for(var _0x507ef0=_0x25fe86>0x1?void 0x0:_0x25fe86?_s(_0x1f4da5,_0x48a82a):_0x1f4da5,_0x565685=_0x3cd048[_0x30b2cf(0x37e)]-0x1,_0x25d96b;_0x565685>=0x0;_0x565685--)(_0x25d96b=_0x3cd048[_0x565685])&&(_0x507ef0=_0x25d96b(_0x507ef0)||_0x507ef0);return _0x507ef0;},Se=(_0x53f164,_0x5348b8)=>(_0x34454d,_0x35714a)=>_0x5348b8(_0x34454d,_0x35714a,_0x53f164);exports[_0x2dd085(0x2a7)]=class extends a[_0x2dd085(0x41f)]{constructor(_0x371d4d,_0x110989,_0x301c7e){const _0x16bdfe=_0x2dd085;super(),this[_0x16bdfe(0x328)]=_0x371d4d,this[_0x16bdfe(0x2ab)]=_0x110989,this[_0x16bdfe(0x390)]=_0x301c7e;}async[_0x2dd085(0x3d3)](_0x4ea711,_0x4e6185,_0xc4a5a0,..._0x148cdc){const _0x1de423=_0x2dd085;var _0x508617,_0x5666e0,_0x3d2c0f,_0x460508;const _0x39e5dd=this['_instanceService'][_0x1de423(0x215)]();if(!_0x39e5dd)throw new Error(_0x1de423(0x2a8));const _0x54946c=((_0x508617=this[_0x1de423(0x390)][_0x1de423(0x27d)](u[_0x1de423(0x1ca)]))!=null?_0x508617:u[_0x1de423(0x2de)])+'/'+_0x4ea711+_0x1de423(0x3b3)+_0x4e6185,_0x40a167=new URL(window[_0x1de423(0x35a)][_0x1de423(0x224)]),_0x4033e4={'scriptId':_0x4ea711,'runId':(_0x5666e0=_0x40a167[_0x1de423(0x378)][_0x1de423(0x1d6)]('runId'))!=null?_0x5666e0:'','function':_0x4e6185,'unitId':_0x39e5dd[_0x1de423(0x343)](),'argsOfFunction':JSON[_0x1de423(0x385)](_0x148cdc),'invokeId':(_0x3d2c0f=_0xc4a5a0[_0x1de423(0x3e4)])!=null?_0x3d2c0f:'','executionId':(_0x460508=_0xc4a5a0[_0x1de423(0x3ee)])!=null?_0x460508:''};try{const _0xc8a1e1=await this[_0x1de423(0x2ab)][_0x1de423(0x347)](_0x54946c,{'body':_0x4033e4});return _0xc8a1e1['body']['error']&&_0xc8a1e1[_0x1de423(0x426)][_0x1de423(0x409)][_0x1de423(0x419)]!==V['OK']?'Failed':_0xc8a1e1[_0x1de423(0x426)][_0x1de423(0x1f9)];}catch{return'Failed';}}},exports[_0x2dd085(0x2a7)]=hs([Se(0x0,a['IUniverInstanceService']),Se(0x1,a[_0x2dd085(0x287)](G[_0x2dd085(0x211)])),Se(0x2,a[_0x2dd085(0x317)])],exports[_0x2dd085(0x2a7)]);const Ae=0x7530,Pe=_0x2dd085(0x307);class us extends a[_0x2dd085(0x41f)]{constructor(){const _0x5762bd=_0x2dd085;super(),_(this,_0x5762bd(0x269),a[_0x5762bd(0x414)]()),_(this,_0x5762bd(0x33e),new Set()),_(this,_0x5762bd(0x1ff),new Map()),_(this,_0x5762bd(0x350),null),_(this,_0x5762bd(0x2c6),new Map()),_(this,_0x5762bd(0x277),new Map()),this['_init']();}[_0x2dd085(0x20f)](){const _0x343bd0=_0x2dd085;super[_0x343bd0(0x20f)](),this[_0x343bd0(0x2c6)][_0x343bd0(0x3d6)]((_0x2d927e,_0x56b7e1)=>this['_removeClearOtherTimer'](_0x56b7e1)),this['_heartbeatTimer']&&window[_0x343bd0(0x24d)](this[_0x343bd0(0x350)]);}[_0x2dd085(0x3b7)](_0xb17895){const _0x2f30b7=_0x2dd085;return this[_0x2f30b7(0x19e)](_0xb17895)[_0x2f30b7(0x3c3)](I[_0x2f30b7(0x361)]());}[_0x2dd085(0x41e)](_0x59aac6){const _0x371d8c=_0x2dd085;this[_0x371d8c(0x33e)]['size']===0x0&&this[_0x371d8c(0x207)](),this[_0x371d8c(0x33e)][_0x371d8c(0x30e)](_0x59aac6),this[_0x371d8c(0x335)]({'type':0x0,'memberID':this[_0x371d8c(0x269)],'unitIDs':[_0x59aac6],'isForwarded':!0x1});}['disposeUnit'](_0xacf0f0){const _0x3dc550=_0x2dd085;this['_selfUnitIDs']['delete'](_0xacf0f0),this[_0x3dc550(0x33e)][_0x3dc550(0x1bf)]===0x0&&this[_0x3dc550(0x350)]&&window[_0x3dc550(0x24d)](this[_0x3dc550(0x350)]);}[_0x2dd085(0x34b)](){const _0x1a6145=_0x2dd085;this[_0x1a6145(0x34a)](a[_0x1a6145(0x1fb)](I['fromEvent'](window,_0x1a6145(0x3d7))['subscribe'](_0x2d514b=>{const _0x3bc27f=_0x1a6145;if(_0x2d514b['key']!==Pe||!_0x2d514b[_0x3bc27f(0x22e)])return;const _0x5302ea=JSON[_0x3bc27f(0x3a3)](_0x2d514b[_0x3bc27f(0x22e)]);this[_0x3bc27f(0x32d)](_0x5302ea);}))),window[_0x1a6145(0x3a6)](_0x1a6145(0x3ce),()=>this[_0x1a6145(0x335)]({'type':0x1,'memberID':this[_0x1a6145(0x269)],'unitIDs':Array[_0x1a6145(0x1d3)](this[_0x1a6145(0x33e)])}));}[_0x2dd085(0x32d)](_0x469428){const _0x5e7752=_0x2dd085;switch(_0x469428['type']){case 0x0:this[_0x5e7752(0x32c)](_0x469428);break;case 0x1:this['_handleLeaveEvent'](_0x469428);break;case 0x2:this[_0x5e7752(0x321)](_0x469428);break;}}[_0x2dd085(0x32c)](_0x4548d7){const _0x4146b1=_0x2dd085,{unitIDs:_0x5c017c,memberID:_0x1e4083,isForwarded:_0x43871f}=_0x4548d7;_0x5c017c['forEach'](_0x1f7989=>{const _0x14f96d=_0x3d42;if(!_0x43871f&&this[_0x14f96d(0x1ff)]['has'](_0x1f7989)&&this['_ensureSubject'](_0x1f7989)[_0x14f96d(0x1ea)](u[_0x14f96d(0x1aa)][_0x14f96d(0x324)]),!this[_0x14f96d(0x1ff)]['has'](_0x1f7989)||!this[_0x14f96d(0x1ff)]['get'](_0x1f7989)[_0x14f96d(0x3c7)](_0x1e4083)){const _0x5789d8=this[_0x14f96d(0x1ff)][_0x14f96d(0x1d6)](_0x1f7989)||new Set();_0x5789d8[_0x14f96d(0x30e)](_0x1e4083),this[_0x14f96d(0x1ff)]['set'](_0x1f7989,_0x5789d8),this[_0x14f96d(0x204)](_0x1e4083);}}),_0x43871f||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4146b1(0x33e)]],'isForwarded':!0x0});}[_0x2dd085(0x204)](_0x42e472){const _0x1d93f1=_0x2dd085;this[_0x1d93f1(0x226)](_0x42e472);const _0x1baf8a=window[_0x1d93f1(0x393)](()=>{const _0x1a7222=_0x1d93f1;this[_0x1a7222(0x1ff)][_0x1a7222(0x3d6)](_0x4a2665=>{const _0x56e378=_0x1a7222;_0x4a2665[_0x56e378(0x35c)](_0x42e472);});},Ae*0x2);this[_0x1d93f1(0x2c6)]['set'](_0x42e472,_0x1baf8a);}[_0x2dd085(0x226)](_0x1451ca){const _0x6bf08f=_0x2dd085;if(this[_0x6bf08f(0x2c6)][_0x6bf08f(0x3c7)](_0x1451ca)){const _0x12fa17=this[_0x6bf08f(0x2c6)][_0x6bf08f(0x1d6)](_0x1451ca);_0x12fa17&&window[_0x6bf08f(0x3c5)](_0x12fa17),this[_0x6bf08f(0x2c6)][_0x6bf08f(0x262)](_0x1451ca,null);}}[_0x2dd085(0x1c3)](_0x4ac2ed){const _0x480f11=_0x2dd085,{memberID:_0x2bfcda,unitIDs:_0x11eb44}=_0x4ac2ed;_0x11eb44[_0x480f11(0x3d6)](_0x1c3051=>{const _0x4bef01=_0x480f11;var _0x107870;const _0x170898=this[_0x4bef01(0x1ff)][_0x4bef01(0x1d6)](_0x1c3051);_0x170898&&(_0x170898['delete'](_0x2bfcda),(_0x107870=this['_ensureSubject'](_0x1c3051))==null||_0x107870[_0x4bef01(0x1ea)](_0x170898['size']===0x0?u[_0x4bef01(0x1aa)][_0x4bef01(0x29e)]:u[_0x4bef01(0x1aa)][_0x4bef01(0x324)]));}),this[_0x480f11(0x226)](_0x2bfcda);}[_0x2dd085(0x321)](_0x1fcdd5){const _0x5da487=_0x2dd085;this[_0x5da487(0x204)](_0x1fcdd5['memberID']);}[_0x2dd085(0x335)](_0x4112d0){const _0x2f8b26=_0x2dd085;localStorage['setItem'](Pe,JSON[_0x2f8b26(0x385)](_0x4112d0));}[_0x2dd085(0x207)](){const _0xd58598=_0x2dd085;this[_0xd58598(0x350)]=window[_0xd58598(0x437)](()=>{const _0x1a4a3e=_0xd58598;this[_0x1a4a3e(0x335)]({'type':0x2,'memberID':this[_0x1a4a3e(0x269)]});},Ae);}[_0x2dd085(0x19e)](_0x3fd0da){const _0x50c891=_0x2dd085;return this[_0x50c891(0x277)][_0x50c891(0x3c7)](_0x3fd0da)||this[_0x50c891(0x277)][_0x50c891(0x262)](_0x3fd0da,new I[(_0x50c891(0x21a))](u[_0x50c891(0x1aa)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x50c891(0x277)][_0x50c891(0x1d6)](_0x3fd0da);}}exports[_0x2dd085(0x2f9)]=Te,exports[_0x2dd085(0x23f)]=Be,exports[_0x2dd085(0x3be)]=us,exports[_0x2dd085(0x401)]=Fe;
|
|
1
|
+
'use strict';const _0x4885bf=_0x30e5;(function(_0x3fc461,_0xda0c53){const _0x24e182=_0x30e5,_0x41cc5f=_0x3fc461();while(!![]){try{const _0x4a2458=parseInt(_0x24e182(0x330))/0x1+-parseInt(_0x24e182(0x289))/0x2*(-parseInt(_0x24e182(0x246))/0x3)+-parseInt(_0x24e182(0xd7))/0x4*(-parseInt(_0x24e182(0x11e))/0x5)+parseInt(_0x24e182(0x1bd))/0x6+-parseInt(_0x24e182(0x123))/0x7+parseInt(_0x24e182(0x2d5))/0x8+-parseInt(_0x24e182(0x118))/0x9;if(_0x4a2458===_0xda0c53)break;else _0x41cc5f['push'](_0x41cc5f['shift']());}catch(_0x110fec){_0x41cc5f['push'](_0x41cc5f['shift']());}}}(_0x7782,0xe349b));var Xe=Object[_0x4885bf(0x1a3)],Ke=(_0x3543cf,_0xe4abd1,_0x5c82ad)=>_0xe4abd1 in _0x3543cf?Xe(_0x3543cf,_0xe4abd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c82ad}):_0x3543cf[_0xe4abd1]=_0x5c82ad,_=(_0x1553ce,_0x125197,_0x3b8170)=>Ke(_0x1553ce,typeof _0x125197!=_0x4885bf(0x1f1)?_0x125197+'':_0x125197,_0x3b8170);Object['defineProperty'](exports,Symbol[_0x4885bf(0x2f3)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x189620,..._0x555e44}){const _0x3ef5f6=_0x4885bf,{icon:_0xc017b9,id:_0x5889c7,className:_0x15169e,extend:_0x5e8ef3,..._0x5a2bff}=_0x555e44,_0x5efc5f=(_0x3ef5f6(0xd0)+_0x5889c7+'\x20'+(_0x15169e||''))['trim'](),_0x4429dd=A[_0x3ef5f6(0x273)]('_'+Qe());return $e(_0xc017b9,''+_0x5889c7,{'defIds':_0xc017b9[_0x3ef5f6(0x13a)],'idSuffix':_0x4429dd[_0x3ef5f6(0x20f)]},{'ref':_0x189620,'className':_0x5efc5f,..._0x5a2bff},_0x5e8ef3);}function $e(_0x4f770a,_0x5eabde,_0x10e99c,_0x49bf6d,_0xdb0303){const _0xb26ad=_0x4885bf;return A['createElement'](_0x4f770a[_0xb26ad(0xfc)],{'key':_0x5eabde,...Je(_0x4f770a,_0x10e99c,_0xdb0303),..._0x49bf6d},(Ze(_0x4f770a,_0x10e99c)['children']||[])['map']((_0x47cff7,_0x1ff66e)=>$e(_0x47cff7,_0x5eabde+'-'+_0x4f770a[_0xb26ad(0xfc)]+'-'+_0x1ff66e,_0x10e99c,void 0x0,_0xdb0303)));}function Je(_0x510a6a,_0x8e9360,_0x2902f6){const _0x2deec2=_0x4885bf,_0x109d00={..._0x510a6a[_0x2deec2(0x323)]};_0x2902f6!=null&&_0x2902f6[_0x2deec2(0x362)]&&_0x109d00[_0x2deec2(0x15b)]===_0x2deec2(0x362)&&(_0x109d00[_0x2deec2(0x15b)]=_0x2902f6['colorChannel1']),_0x510a6a['tag']===_0x2deec2(0x1f5)&&_0x109d00['id']&&(_0x109d00['id']=_0x109d00['id']+_0x8e9360[_0x2deec2(0x1a6)]),Object[_0x2deec2(0x2cf)](_0x109d00)[_0x2deec2(0x28d)](([_0x49105d,_0xd14ecc])=>{const _0x4c1591=_0x2deec2;_0x49105d===_0x4c1591(0x1f5)&&typeof _0xd14ecc==_0x4c1591(0xdf)&&(_0x109d00[_0x49105d]=_0xd14ecc[_0x4c1591(0x15c)](/url\(#(.*)\)/,_0x4c1591(0x2eb)+_0x8e9360['idSuffix']+')'));});const {defIds:_0x2442bf}=_0x8e9360;return!_0x2442bf||_0x2442bf[_0x2deec2(0x12a)]===0x0||(_0x510a6a[_0x2deec2(0xfc)]===_0x2deec2(0x2c2)&&_0x109d00[_0x2deec2(0xd3)]&&(_0x109d00[_0x2deec2(0xd3)]=_0x109d00[_0x2deec2(0xd3)]+_0x8e9360['idSuffix']),Object[_0x2deec2(0x2cf)](_0x109d00)[_0x2deec2(0x28d)](([_0x75caea,_0x441cda])=>{const _0x553765=_0x2deec2;typeof _0x441cda==_0x553765(0xdf)&&(_0x109d00[_0x75caea]=_0x441cda[_0x553765(0x15c)](/url\(#(.*)\)/,_0x553765(0x2eb)+_0x8e9360[_0x553765(0x1a6)]+')'));})),_0x109d00;}function Ze(_0x3a4179,_0x22aeeb){const _0xaec302=_0x4885bf;var _0x215a26;const {defIds:_0x315598}=_0x22aeeb;return!_0x315598||_0x315598['length']===0x0?_0x3a4179:_0x3a4179[_0xaec302(0xfc)]===_0xaec302(0x325)&&((_0x215a26=_0x3a4179[_0xaec302(0x2ae)])!=null&&_0x215a26[_0xaec302(0x12a)])?{..._0x3a4179,'children':_0x3a4179[_0xaec302(0x2ae)][_0xaec302(0x2d7)](_0x296bb4=>typeof _0x296bb4[_0xaec302(0x323)]['id']==_0xaec302(0xdf)&&_0x315598&&_0x315598[_0xaec302(0x26b)](_0x296bb4[_0xaec302(0x323)]['id'])?{..._0x296bb4,'attrs':{..._0x296bb4[_0xaec302(0x323)],'id':_0x296bb4[_0xaec302(0x323)]['id']+_0x22aeeb[_0xaec302(0x1a6)]}}:_0x296bb4)}:_0x3a4179;}function Qe(){const _0x8999a=_0x4885bf;return Math['random']()['toString'](0x24)[_0x8999a(0x301)](0x2,0x8);}Te[_0x4885bf(0x1b9)]=_0x4885bf(0x19b);const et={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4885bf(0x95),'viewBox':_0x4885bf(0x217),'width':_0x4885bf(0xe8),'height':_0x4885bf(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':_0x4885bf(0x265)},'children':[{'tag':_0x4885bf(0x230),'attrs':{'stroke':_0x4885bf(0x182),'d':_0x4885bf(0x121),'strokeLinecap':_0x4885bf(0x2b5),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4885bf(0x325),'attrs':{},'children':[{'tag':_0x4885bf(0x34a),'attrs':{'id':_0x4885bf(0x238)},'children':[{'tag':'path','attrs':{'fill':_0x4885bf(0xf9),'d':_0x4885bf(0x2f4)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x4885bf(0x14e)](function(_0x1817ed,_0x570def){const _0x5dd070=_0x4885bf;return A['createElement'](Te,Object['assign']({},_0x1817ed,{'id':_0x5dd070(0x1b4),'ref':_0x570def,'icon':et}));});xe[_0x4885bf(0x1b9)]='OffLineIcon';const tt={'tag':_0x4885bf(0x19e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4885bf(0x35d),'width':_0x4885bf(0xe8),'height':_0x4885bf(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':_0x4885bf(0x2da)},'children':[{'tag':_0x4885bf(0x230),'attrs':{'stroke':_0x4885bf(0x182),'d':_0x4885bf(0x33f),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4885bf(0x325),'attrs':{},'children':[{'tag':_0x4885bf(0x34a),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x4885bf(0xf9),'d':_0x4885bf(0x2f4),'transform':_0x4885bf(0x1d3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A['forwardRef'](function(_0x36b1aa,_0x55dc12){const _0x39e107=_0x4885bf;return A[_0x39e107(0x28f)](Te,Object[_0x39e107(0x2fd)]({},_0x36b1aa,{'id':_0x39e107(0x2e1),'ref':_0x55dc12,'icon':tt}));});Be['displayName']=_0x4885bf(0xae);function st(_0x2278c7){const _0xe96a31=_0x4885bf;switch(_0x2278c7){case u[_0xe96a31(0x30d)][_0xe96a31(0x14b)]:return _0xe96a31(0x169);case u[_0xe96a31(0x30d)][_0xe96a31(0x2f5)]:return'collabStatus.conflict';case u[_0xe96a31(0x30d)][_0xe96a31(0x26c)]:return _0xe96a31(0x1e3);case u[_0xe96a31(0x30d)][_0xe96a31(0x333)]:return _0xe96a31(0xb5);case u[_0xe96a31(0x30d)][_0xe96a31(0x1bb)]:case u['CollaborationStatus'][_0xe96a31(0x150)]:return _0xe96a31(0x348);case u[_0xe96a31(0x30d)][_0xe96a31(0x11c)]:case u[_0xe96a31(0x30d)][_0xe96a31(0x256)]:return _0xe96a31(0x350);}}function it(_0x5c4e0a){const _0x13cabb=_0x4885bf,{status$:_0x13ad74}=_0x5c4e0a,_0x41482f=O[_0x13cabb(0x164)](_0x13ad74,u[_0x13cabb(0x30d)][_0x13cabb(0x333)]),_0x1d9131=O['useDependency'](a['LocaleService']),_0x42b504=O['useDependency'](u[_0x13cabb(0x307)]),_0x4a7a58=_0x41482f!==u['CollaborationStatus']['OFFLINE'],_0x2f54b1=_0x1d9131['t'](st(_0x41482f)),_0x37d8d6=_0x4a7a58?M['jsx'](Be,{}):M[_0x13cabb(0x1c0)](xe,{}),_0x37a081=A['useCallback'](()=>{const _0x50643f=_0x13cabb;_0x4a7a58||_0x42b504[_0x50643f(0x2f2)]();},[_0x4a7a58,_0x42b504]);function _0x100f61(){const _0x23b7ab=_0x13cabb;return M['jsxs'](_0x23b7ab(0x1b3),{'className':_0x23b7ab(0x22b),'onClick':_0x37a081,'children':[M[_0x23b7ab(0x1c0)](_0x23b7ab(0x1b3),{'className':T['clsx'](_0x23b7ab(0x2e0),{'univer-text-green-500':_0x4a7a58,'univer-text-red-500':!_0x4a7a58}),'children':_0x37d8d6}),M['jsx'](_0x23b7ab(0x1b3),{'className':_0x23b7ab(0x125),'children':_0x2f54b1})]});}return _0x4a7a58?_0x100f61():M['jsx'](T['Tooltip'],{'title':_0x1d9131['t'](_0x13cabb(0x14a)),'children':_0x100f61()});}var nt=Object[_0x4885bf(0xee)],rt=(_0x32e89f,_0x44c546,_0x5db335,_0x1247e7)=>{const _0x18970d=_0x4885bf;for(var _0x2480fa=_0x1247e7>0x1?void 0x0:_0x1247e7?nt(_0x44c546,_0x5db335):_0x44c546,_0x18d3e1=_0x32e89f[_0x18970d(0x12a)]-0x1,_0x56a540;_0x18d3e1>=0x0;_0x18d3e1--)(_0x56a540=_0x32e89f[_0x18d3e1])&&(_0x2480fa=_0x56a540(_0x2480fa)||_0x2480fa);return _0x2480fa;},K=(_0x1c4470,_0x2f0304)=>(_0x549941,_0x390658)=>_0x2f0304(_0x549941,_0x390658,_0x1c4470);exports[_0x4885bf(0x197)]=class extends a['Disposable']{constructor(_0x5be5a7,_0xc4a4a1,_0x385483,_0x12912e){const _0x28db3e=_0x4885bf;super(),_(this,_0x28db3e(0x14d),new I[(_0x28db3e(0x2cb))](u[_0x28db3e(0x30d)][_0x28db3e(0x333)])),(this[_0x28db3e(0x189)]=_0x5be5a7,this['_injector']=_0xc4a4a1,this['_collaborationController']=_0x385483,this['_uiPartsService']=_0x12912e,this[_0x28db3e(0x252)](),this[_0x28db3e(0x1d0)]());}['_initStatusListener'](){const _0x242cad=_0x4885bf;this['disposeWithMe'](this[_0x242cad(0x189)][_0x242cad(0x9b)][_0x242cad(0x153)](I[_0x242cad(0xea)](()=>{const _0x211b8c=_0x242cad,_0x15d9b5=this[_0x211b8c(0x189)][_0x211b8c(0x277)]();return _0x15d9b5?this['_collaborationController']['getCollabEntity$'](_0x15d9b5[_0x211b8c(0x2fb)]()):I['of'](null);}),I[_0x242cad(0xea)](_0x364133=>_0x364133?_0x364133['status$']:I['of'](u[_0x242cad(0x30d)][_0x242cad(0x333)])))['subscribe'](_0x4b9420=>{const _0x77785c=_0x242cad;this[_0x77785c(0x14d)]['next'](_0x4b9420);}));}[_0x4885bf(0x252)](){const _0x5a9755=_0x4885bf;this[_0x5a9755(0x354)](this[_0x5a9755(0x284)][_0x5a9755(0x34d)](O[_0x5a9755(0x2d9)][_0x5a9755(0x320)],()=>O['connectInjector'](ot({'status$':this[_0x5a9755(0x14d)][_0x5a9755(0x251)]()}),this[_0x5a9755(0x17e)])));}},exports[_0x4885bf(0x197)]=rt([K(0x0,a[_0x4885bf(0x2b8)]),K(0x1,a['Inject'](a[_0x4885bf(0x199)])),K(0x2,a[_0x4885bf(0xe0)](u[_0x4885bf(0x357)])),K(0x3,O[_0x4885bf(0xa8)])],exports[_0x4885bf(0x197)]);function ot(_0x3c1a3c){const {status$:_0x286375}=_0x3c1a3c;return function(){const _0x3925c1=_0x30e5;return M[_0x3925c1(0x1c0)](it,{'status$':_0x286375});};}const Oe=a[_0x4885bf(0xaa)](_0x4885bf(0x2ee));var at=Object['getOwnPropertyDescriptor'],ct=(_0x43f067,_0x1d1f40,_0x1a35ed,_0x245719)=>{for(var _0x2757fa=_0x245719>0x1?void 0x0:_0x245719?at(_0x1d1f40,_0x1a35ed):_0x1d1f40,_0x4d5e8d=_0x43f067['length']-0x1,_0x423ae1;_0x4d5e8d>=0x0;_0x4d5e8d--)(_0x423ae1=_0x43f067[_0x4d5e8d])&&(_0x2757fa=_0x423ae1(_0x2757fa)||_0x2757fa);return _0x2757fa;},Y=(_0x26bd51,_0x4891dc)=>(_0x539137,_0x32d04a)=>_0x4891dc(_0x539137,_0x32d04a,_0x26bd51);exports[_0x4885bf(0x161)]=class extends a[_0x4885bf(0x1aa)]{constructor(_0x31d480,_0x4c54a2,_0x191646,_0x435d17,_0x4cadc3){const _0x3c8926=_0x4885bf;super(),this[_0x3c8926(0x316)]=_0x31d480,this[_0x3c8926(0x1ed)]=_0x4c54a2,this[_0x3c8926(0x26a)]=_0x191646,this[_0x3c8926(0x14c)]=_0x435d17,_0x4cadc3?_0x4cadc3==null||_0x4cadc3[_0x3c8926(0x30e)]()[_0x3c8926(0x180)](()=>this['_init']()):(this[_0x3c8926(0x1ed)]['debug'](_0x3c8926(0x2c8),_0x3c8926(0x1c5)),this['_init']());}async[_0x4885bf(0x2a5)](){const _0x322354=_0x4885bf,_0x298bcb=this['_urlService'][_0x322354(0x313)](_0x322354(0x27c)),_0x56ed4e=this[_0x322354(0x316)][_0x322354(0x313)](_0x322354(0x360)),_0xf3c22e=this[_0x322354(0x316)][_0x322354(0x313)]('subunit');if(!_0x298bcb||!_0x56ed4e){this['_logService'][_0x322354(0x2e9)](_0x322354(0x2c8),_0x322354(0x321));return;}const _0x3f0086=await this[_0x322354(0x14c)][_0x322354(0x319)](_0x298bcb,Number(_0x56ed4e),_0xf3c22e);_0x3f0086&&_0x3f0086 instanceof a['Workbook']&&this[_0x322354(0x250)](_0x3f0086);}async[_0x4885bf(0x250)](_0x236a5c){const _0x20860f=_0x4885bf;await this[_0x20860f(0xc9)](_0x236a5c),_0x236a5c[_0x20860f(0x339)][_0x20860f(0x153)](I['takeUntil'](this[_0x20860f(0x30f)]))['subscribe'](_0x17183d=>{const _0x3dacb7=_0x20860f;_0x17183d&&this[_0x3dacb7(0x1f9)](_0x17183d);}),this[_0x20860f(0x316)][_0x20860f(0xd8)][_0x20860f(0x153)](I['takeUntil'](this[_0x20860f(0x30f)]))[_0x20860f(0x22c)](()=>this['_updateSubUnitFromURLParams'](_0x236a5c));}[_0x4885bf(0x1f9)](_0x41c713,_0x5d8947=!0x1){const _0xc1629a=_0x4885bf,_0x285617=this[_0xc1629a(0x316)][_0xc1629a(0x313)](_0xc1629a(0x111));_0x41c713['getSheetId']()!==_0x285617&&this[_0xc1629a(0x316)][_0xc1629a(0x185)](_0xc1629a(0x111),_0x41c713[_0xc1629a(0xb9)](),_0x5d8947);}async[_0x4885bf(0xc9)](_0x4ea57f){const _0x1deebe=_0x4885bf;var _0x18326b;const _0x1a6a03=this[_0x1deebe(0x316)][_0x1deebe(0x313)](_0x1deebe(0x111));if(!_0x1a6a03||!_0x4ea57f[_0x1deebe(0x2e2)](_0x1a6a03)){const _0x25981b=_0x4ea57f[_0x1deebe(0x21e)]()[0x0],_0x284694=_0x4ea57f[_0x1deebe(0x2e2)](_0x25981b);if(!_0x284694)return;this[_0x1deebe(0x1f9)](_0x284694,!0x0),await this[_0x1deebe(0x26a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ea57f[_0x1deebe(0x2fb)](),'subUnitId':_0x25981b});return;}((_0x18326b=_0x4ea57f[_0x1deebe(0x30c)]())==null?void 0x0:_0x18326b[_0x1deebe(0xb9)]())!==_0x1a6a03&&await this[_0x1deebe(0x26a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ea57f['getUnitId'](),'subUnitId':_0x1a6a03});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x4885bf(0x15f)]),Y(0x2,a[_0x4885bf(0x2a2)]),Y(0x3,a[_0x4885bf(0xe0)](u[_0x4885bf(0x2db)])),Y(0x4,a['Optional'](qe[_0x4885bf(0x2d4)]))],exports[_0x4885bf(0x161)]);var lt=Object[_0x4885bf(0xee)],_t=(_0x32b53c,_0x49fe27,_0x557a1d,_0x4a7c84)=>{const _0x390edb=_0x4885bf;for(var _0x5b33d2=_0x4a7c84>0x1?void 0x0:_0x4a7c84?lt(_0x49fe27,_0x557a1d):_0x49fe27,_0x354f38=_0x32b53c[_0x390edb(0x12a)]-0x1,_0x584914;_0x354f38>=0x0;_0x354f38--)(_0x584914=_0x32b53c[_0x354f38])&&(_0x5b33d2=_0x584914(_0x5b33d2)||_0x5b33d2);return _0x5b33d2;},De=(_0x295639,_0x17ebe2)=>(_0x22970,_0x39b62e)=>_0x17ebe2(_0x22970,_0x39b62e,_0x295639);let me=class extends a[_0x4885bf(0x1aa)]{constructor(_0x47335a,_0x2e6847){const _0x858b1=_0x4885bf;super(),this[_0x858b1(0xd4)]=_0x47335a,this[_0x858b1(0x1e8)]=_0x2e6847,this[_0x858b1(0x2a5)]();}[_0x4885bf(0x2a5)](){const _0x237d97=_0x4885bf,_0x7e433=this;this['disposeWithMe'](this[_0x237d97(0xd4)][_0x237d97(0x184)]({'onBeforePasteImage':async _0x5b21c2=>{const _0x53a2ad=_0x237d97,_0x122d71=await _0x7e433[_0x53a2ad(0x1e8)][_0x53a2ad(0x317)](_0x5b21c2);return _0x122d71?{'source':_0x122d71[_0x53a2ad(0x2aa)],'imageSourceType':_0x122d71[_0x53a2ad(0x2ce)]}:null;}}));}};me=_t([De(0x0,p[_0x4885bf(0x209)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x4885bf(0x2c9),_0x4885bf(0xc6),_0x4885bf(0x2f6),'red.300',_0x4885bf(0xdd),'yellow.400'];class Re extends a[_0x4885bf(0x1b2)]{constructor(){const _0x5a741f=_0x4885bf;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x5a741f(0xa6),0x0);}['assignAColorForMemberID'](_0x5eee88){const _0x24ae50=_0x4885bf;if(this[_0x24ae50(0x228)][_0x24ae50(0x11b)](_0x5eee88))return this[_0x24ae50(0x228)][_0x24ae50(0x1b8)](_0x5eee88);const _0x2a4996=Ne[this[_0x24ae50(0xa6)]];return this[_0x24ae50(0xa6)]=(this[_0x24ae50(0xa6)]+0x1)%Ne['length'],this[_0x24ae50(0x228)][_0x24ae50(0x219)](_0x5eee88,_0x2a4996),_0x2a4996;}}function Fe(_0x3e0214){const _0x3b75cf=_0x4885bf;let _0x4b1c35='';for(const _0x44f2fc of _0x3e0214){const {startOffset:_0x2fa18b,endOffset:_0x58ba1f,isActive:_0x221d38,rangeType:_0x5a5954,segmentId:_0x3babf5,segmentPage:_0x2cbc3a}=_0x44f2fc;_0x4b1c35[_0x3b75cf(0x12a)]&&(_0x4b1c35+=','),_0x4b1c35+=_0x2fa18b+':'+_0x58ba1f+':'+(_0x221d38?'1':'0')+':'+_0x5a5954+':'+_0x3babf5+':'+_0x2cbc3a;}return _0x4b1c35;}function ht(_0xb0d81b){const _0x318cad=_0x4885bf,_0x226e93=_0xb0d81b[_0x318cad(0x1ce)](','),_0x255518=[];for(const _0x2dc7d6 of _0x226e93){const [_0x460a20,_0x3248aa,_0x3925eb,_0x32b16b,_0x2b8f1c,_0x4775dc]=_0x2dc7d6[_0x318cad(0x1ce)](':');_0x255518['push']({'startOffset':Number(_0x460a20),'endOffset':Number(_0x3248aa),'collapsed':_0x460a20===_0x3248aa,'isActive':_0x3925eb==='1','rangeType':_0x32b16b===a[_0x318cad(0x1f7)][_0x318cad(0x1a8)]?a['DOC_RANGE_TYPE'][_0x318cad(0x1a8)]:a[_0x318cad(0x1f7)][_0x318cad(0x2ea)],'segmentId':typeof _0x2b8f1c==_0x318cad(0xdf)?String(_0x2b8f1c):'','segmentPage':Number(_0x4775dc!=null?_0x4775dc:-0x1)});}return _0x255518[_0x318cad(0xff)](_0x487531=>_0x487531[_0x318cad(0x18c)])||(_0x255518[0x0][_0x318cad(0x18c)]=!0x0),_0x255518;}class be extends a['RxDisposable']{constructor(){const _0x5bfd7d=_0x4885bf;super(...arguments),_(this,_0x5bfd7d(0x297),new I[(_0x5bfd7d(0x2cb))](null)),_(this,'collabCursorState$',this[_0x5bfd7d(0x297)][_0x5bfd7d(0x251)]());}[_0x4885bf(0x285)](_0x4359ad){const _0xee5cde=_0x4885bf,{unitID:_0x76c7d2,memberID:_0x3e89f9,textRanges:_0x5dabe1}=_0x4359ad,_0x554a5d=Fe(_0x5dabe1);if(_0x554a5d==='')return;const _0x4b95ab={'unitID':_0x76c7d2,'memberID':_0x3e89f9,'selection':_0x554a5d};this['_collabCursorState$'][_0xee5cde(0x1a7)](_0x4b95ab);}}var ut=Object[_0x4885bf(0xee)],It=(_0x4be61d,_0x476a7a,_0x3ab041,_0x408726)=>{const _0x18c33f=_0x4885bf;for(var _0x1c752d=_0x408726>0x1?void 0x0:_0x408726?ut(_0x476a7a,_0x3ab041):_0x476a7a,_0x74dcb0=_0x4be61d[_0x18c33f(0x12a)]-0x1,_0x53c38c;_0x74dcb0>=0x0;_0x74dcb0--)(_0x53c38c=_0x4be61d[_0x74dcb0])&&(_0x1c752d=_0x53c38c(_0x1c752d)||_0x1c752d);return _0x1c752d;},U=(_0x484418,_0x763a2c)=>(_0xdc31f5,_0x3d8dd6)=>_0x763a2c(_0xdc31f5,_0x3d8dd6,_0x484418);const dt=0x12c,St=0x64;let ve=class extends a[_0x4885bf(0x1aa)]{constructor(_0x502a0d,_0x3535b3,_0x497379,_0x1bdedf,_0x4d3373,_0xb0f3ec,_0xd2d55e,_0x5c4880,_0x4f3796){const _0x47d485=_0x4885bf;super(),_(this,_0x47d485(0xb8),!0x1),_(this,_0x47d485(0x2a5),!0x1),_(this,'_cursorInfo$',new I[(_0x47d485(0x2cb))](new Map())),_(this,_0x47d485(0x35c),this[_0x47d485(0x1f3)]['asObservable']()),_(this,_0x47d485(0x34f),new I['BehaviorSubject']([])),_(this,_0x47d485(0x10f),this[_0x47d485(0x34f)][_0x47d485(0x153)](I[_0x47d485(0x1cd)](dt))),_(this,_0x47d485(0x2df),a[_0x47d485(0xf6)](_0x5e80a2=>{const _0x580aa0=_0x47d485,_0x1b6899={'eventID':g[_0x580aa0(0x2b2)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x580aa0(0x143)],'memberID':this[_0x580aa0(0x2a3)][_0x580aa0(0x35f)](),'selection':Fe(_0x5e80a2)}};this[_0x580aa0(0x2a3)]['send'](_0x1b6899,this[_0x580aa0(0x143)]);},St)),(this[_0x47d485(0x143)]=_0x502a0d,this[_0x47d485(0x2a3)]=_0x3535b3,this[_0x47d485(0x17e)]=_0x497379,this[_0x47d485(0x335)]=_0x1bdedf,this[_0x47d485(0x290)]=_0x4d3373,this[_0x47d485(0x21c)]=_0xb0f3ec,this[_0x47d485(0x148)]=_0xd2d55e,this[_0x47d485(0x189)]=_0x5c4880,this[_0x47d485(0x26a)]=_0x4f3796);}get[_0x4885bf(0x31d)](){return this['_cursorInfo$']['getValue']();}get[_0x4885bf(0x98)](){const _0x23f26e=_0x4885bf;return this[_0x23f26e(0x34f)][_0x23f26e(0x1cf)]();}[_0x4885bf(0xcf)](){const _0x19f638=_0x4885bf;super[_0x19f638(0xcf)](),this[_0x19f638(0x1f3)][_0x19f638(0x1a7)](new Map()),this[_0x19f638(0x1f3)]['complete'](),this[_0x19f638(0x34f)][_0x19f638(0x1a7)]([]),this[_0x19f638(0x34f)]['complete']();}['init'](){const _0x2289d2=_0x4885bf;this['_init']||(this[_0x2289d2(0x2a5)]=!0x0,this['_session'][_0x2289d2(0x2e8)][_0x2289d2(0x153)](I[_0x2289d2(0x268)](this['dispose$']))[_0x2289d2(0x22c)](_0x1473c4=>{const _0x3a5a4c=_0x2289d2;_0x1473c4===u[_0x3a5a4c(0x10d)][_0x3a5a4c(0x269)]?this[_0x3a5a4c(0x29e)]():this[_0x3a5a4c(0x27d)]();}),this[_0x2289d2(0x2a3)]['event$'][_0x2289d2(0x153)](I['takeUntil'](this[_0x2289d2(0x30f)]))[_0x2289d2(0x22c)](_0x146a11=>{const _0x17bddc=_0x2289d2,_0x1021b6=_0x146a11[_0x17bddc(0x183)];_0x1021b6===g['CollaborationEvent'][_0x17bddc(0x2c4)]&&this[_0x17bddc(0x188)](_0x146a11),_0x1021b6===g[_0x17bddc(0x2b2)]['USERS_LEAVE']&&this[_0x17bddc(0x8e)](_0x146a11);}),this[_0x2289d2(0x354)](this[_0x2289d2(0x26a)]['onCommandExecuted'](_0x289571=>{const _0x157c55=_0x2289d2,_0x15ecd0=_0x289571['params'];_0x15ecd0!=null&&this[_0x157c55(0xb8)]&&_0x289571['id']===V[_0x157c55(0x220)]['id']&&_0x15ecd0['unitId']===this['unitID']&&_0x15ecd0[_0x157c55(0x33e)]===!0x1&&_0x15ecd0[_0x157c55(0x128)]['length']>0x0&&this[_0x157c55(0x2df)](_0x15ecd0[_0x157c55(0x128)]);})),this['_syncEditingCollabCursorService'][_0x2289d2(0x21d)][_0x2289d2(0x153)](I[_0x2289d2(0x268)](this[_0x2289d2(0x30f)]))[_0x2289d2(0x22c)](_0x51f816=>{const _0x20f0a6=_0x2289d2;if((_0x51f816==null?void 0x0:_0x51f816[_0x20f0a6(0x143)])!==this[_0x20f0a6(0x143)])return;const _0x50ddd2={'eventID':g[_0x20f0a6(0x2b2)][_0x20f0a6(0x2c4)],'data':_0x51f816};this[_0x20f0a6(0x188)](_0x50ddd2);}),this[_0x2289d2(0x354)](this[_0x2289d2(0x26a)][_0x2289d2(0x258)](_0xb75277=>{const _0x582089=_0x2289d2;if(_0xb75277[_0x582089(0x215)]==null)return;const _0x316ef0=_0xb75277[_0x582089(0x215)];if(_0xb75277['id']!==V[_0x582089(0x1f4)]['id']||_0x316ef0[_0x582089(0x276)]!==this[_0x582089(0x143)])return;const _0x1a3afc={'id':'doc.mutation.rich-text-editing','params':_0x316ef0},_0x519c72=this[_0x582089(0x31d)];for(const [_0x3b89f2,_0x284bd7]of _0x519c72){const _0x47034c={'id':_0x582089(0x2d0),'params':{'unitId':this[_0x582089(0x143)],'actions':null,'textRanges':_0x284bd7[_0x582089(0x128)]}},_0x51495d=this[_0x582089(0x148)][_0x582089(0x293)](_0x1a3afc,_0x47034c,!0x1);if(g[_0x582089(0x2b6)](_0x51495d))throw _0x51495d[_0x582089(0x1d5)];_0x519c72[_0x582089(0x219)](_0x3b89f2,{..._0x284bd7,'ranges':_0x51495d[_0x582089(0x2c5)][_0x582089(0x215)][_0x582089(0x122)]});}queueMicrotask(()=>{const _0x4ad8ac=_0x582089;this[_0x4ad8ac(0x1f3)][_0x4ad8ac(0x1a7)](_0x519c72);});})));}[_0x4885bf(0x188)](_0x4d272b){const _0x4751e6=_0x4885bf;var _0x3f2cba,_0x52dd52;const {memberID:_0x42097d,selection:_0x237162}=_0x4d272b[_0x4751e6(0x259)],_0xa691ab=ht(_0x237162),_0x5cf50c=(_0x52dd52=(_0x3f2cba=this[_0x4751e6(0x290)][_0x4751e6(0x300)](this[_0x4751e6(0x143)],_0x42097d))==null?void 0x0:_0x3f2cba['name'])!=null?_0x52dd52:_0x4751e6(0xe5),_0x5a4752={'color':this['_colorAssignService'][_0x4751e6(0x31f)](_0x42097d),'name':_0x5cf50c,'ranges':_0xa691ab},_0x22aa7c=this[_0x4751e6(0x31d)];_0x22aa7c[_0x4751e6(0x219)](_0x42097d,_0x5a4752),this['_cursorInfo$'][_0x4751e6(0x1a7)](_0x22aa7c);}['_onCursorDelete'](_0x448b45){const _0x3fb7ef=_0x4885bf,{memberID:_0x38a2cd}=_0x448b45[_0x3fb7ef(0x259)],_0x2710c3=this[_0x3fb7ef(0x31d)];_0x2710c3[_0x3fb7ef(0x2a1)](_0x38a2cd),this[_0x3fb7ef(0x1f3)][_0x3fb7ef(0x1a7)](_0x2710c3);}[_0x4885bf(0x29e)](){const _0x1404d0=_0x4885bf;var _0x4218d1;if(this['_online']=!0x0,((_0x4218d1=this[_0x1404d0(0x189)][_0x1404d0(0x277)]())==null?void 0x0:_0x4218d1['getUnitId']())!==this[_0x1404d0(0x143)])return;const _0x174633=this['_injector'][_0x1404d0(0x1b8)](V[_0x1404d0(0xe6)])[_0x1404d0(0x263)]();Array[_0x1404d0(0x2cd)](_0x174633)&&_0x174633[_0x1404d0(0x12a)]>0x0&&this['_updateLocalCursor'](_0x174633);}[_0x4885bf(0x27d)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),U(0x3,a[_0x4885bf(0xe0)](Re)),U(0x4,a[_0x4885bf(0xe0)](u[_0x4885bf(0x235)])),U(0x5,a[_0x4885bf(0xe0)](be)),U(0x6,g[_0x4885bf(0x29a)]),U(0x7,a[_0x4885bf(0x2b8)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x4885bf(0xee)],mt=(_0x543ea2,_0xed488b,_0x42ea64,_0x35c8f8)=>{const _0x2dbdfe=_0x4885bf;for(var _0x195f42=_0x35c8f8>0x1?void 0x0:_0x35c8f8?ft(_0xed488b,_0x42ea64):_0xed488b,_0x15cfb4=_0x543ea2[_0x2dbdfe(0x12a)]-0x1,_0x2dbb07;_0x15cfb4>=0x0;_0x15cfb4--)(_0x2dbb07=_0x543ea2[_0x15cfb4])&&(_0x195f42=_0x2dbb07(_0x195f42)||_0x195f42);return _0x195f42;},w=(_0x31a2cb,_0x51e04e)=>(_0x28944e,_0x15cdec)=>_0x51e04e(_0x28944e,_0x15cdec,_0x31a2cb);const vt=0x12c,gt=0x64,Et=()=>{let _0xeb0beb=[],_0x551418=!0x1;return _0x5ef5b7=>{_0xeb0beb['push'](_0x5ef5b7),_0x551418||(_0x551418=!0x0,setTimeout(()=>{const _0xcf7b86=_0x30e5;_0xeb0beb[_0xcf7b86(0x28d)](_0x497c74=>_0x497c74()),_0xeb0beb=[],_0x551418=!0x1;}));};};let ge=class extends a[_0x4885bf(0x1aa)]{constructor(_0x5553a6,_0x12833b,_0x3a108e,_0x33436d,_0x4d6599,_0xc0387b,_0x1ffc48,_0x4d262d){const _0x18a3c1=_0x4885bf;super(),_(this,'_online',!0x1),_(this,_0x18a3c1(0x2a5),!0x1),_(this,_0x18a3c1(0x1f3),new I[(_0x18a3c1(0x2cb))](new Map())),_(this,_0x18a3c1(0x35c),this[_0x18a3c1(0x1f3)]['asObservable']()),_(this,'_roomMembers$',new I[(_0x18a3c1(0x2cb))]([])),_(this,_0x18a3c1(0x10f),this[_0x18a3c1(0x34f)][_0x18a3c1(0x153)](I[_0x18a3c1(0x1cd)](vt))),_(this,_0x18a3c1(0x2df),a[_0x18a3c1(0xf6)]((_0x44a399,_0xa0324e)=>{const _0x5bd71f=_0x18a3c1,_0x1eaac5={'eventID':g[_0x5bd71f(0x2b2)][_0x5bd71f(0x2c4)],'data':{'unitID':this[_0x5bd71f(0x143)],'memberID':this[_0x5bd71f(0x2a3)][_0x5bd71f(0x35f)](),'selection':B[_0x5bd71f(0x2fc)](_0x44a399,_0xa0324e[_0x5bd71f(0xbb)])}};this[_0x5bd71f(0x2a3)]['send'](_0x1eaac5,this['unitID']);},gt)),(this['unitID']=_0x5553a6,this['_session']=_0x12833b,this[_0x18a3c1(0x17e)]=_0x3a108e,this['_colorAssignService']=_0x33436d,this[_0x18a3c1(0x290)]=_0x4d6599,this[_0x18a3c1(0x189)]=_0xc0387b,this[_0x18a3c1(0x26a)]=_0x1ffc48,this[_0x18a3c1(0x2c1)]=_0x4d262d);}get[_0x4885bf(0x31d)](){const _0x124014=_0x4885bf;return this[_0x124014(0x1f3)][_0x124014(0x1cf)]();}get[_0x4885bf(0x98)](){const _0x67a5f0=_0x4885bf;return this['_roomMembers$'][_0x67a5f0(0x1cf)]();}[_0x4885bf(0xcf)](){const _0x175f30=_0x4885bf;super[_0x175f30(0xcf)](),this['_cursorInfo$'][_0x175f30(0x1a7)](new Map()),this[_0x175f30(0x1f3)][_0x175f30(0x90)](),this[_0x175f30(0x34f)]['next']([]),this[_0x175f30(0x34f)]['complete']();}['init'](){const _0x4f399c=_0x4885bf;this[_0x4f399c(0x2a5)]||(this[_0x4f399c(0x2a5)]=!0x0,this[_0x4f399c(0x2a3)][_0x4f399c(0x2e8)][_0x4f399c(0x153)](I['takeUntil'](this[_0x4f399c(0x30f)]))[_0x4f399c(0x22c)](_0x581cb3=>{const _0x2420ba=_0x4f399c;_0x581cb3===u['SessionStatus'][_0x2420ba(0x269)]?this[_0x2420ba(0x29e)]():this['_toggleOffline']();}),this['_session'][_0x4f399c(0x31c)][_0x4f399c(0x153)](I[_0x4f399c(0x268)](this['dispose$']))[_0x4f399c(0x22c)](_0x4996d0=>{const _0x1dce65=_0x4f399c,_0x201269=_0x4996d0['eventID'];_0x201269===g[_0x1dce65(0x2b2)][_0x1dce65(0x2c4)]&&this[_0x1dce65(0x188)](_0x4996d0),_0x201269===g[_0x1dce65(0x2b2)]['USERS_LEAVE']&&this[_0x1dce65(0x8e)](_0x4996d0);}),this[_0x4f399c(0x2ac)](),this['disposeWithMe'](this[_0x4f399c(0x26a)][_0x4f399c(0x258)](_0x3dcc0f=>{const _0x5b2dbd=_0x4f399c;if(this[_0x5b2dbd(0xb8)]&&_0x3dcc0f['id']===v[_0x5b2dbd(0xde)]['id']&&_0x3dcc0f['params'][_0x5b2dbd(0x276)]===this['unitID']){const _0x51e406=_0x3dcc0f[_0x5b2dbd(0x215)];this[_0x5b2dbd(0x2df)](_0x51e406[_0x5b2dbd(0x2ba)],_0x51e406[_0x5b2dbd(0x1df)][0x0]);}})));}['_onCursorUpdate'](_0x16b680){const _0x25a8f9=_0x4885bf;var _0x365ed9,_0x27f4a1;const {memberID:_0x3aeec0,selection:_0x1ede50}=_0x16b680['data'],{sheetName:_0x5b9d73,range:_0x3a9d12}=B[_0x25a8f9(0xeb)](_0x1ede50),_0x31c49d={'name':(_0x27f4a1=(_0x365ed9=this['_memberService']['getMember'](this[_0x25a8f9(0x143)],_0x3aeec0))==null?void 0x0:_0x365ed9[_0x25a8f9(0x30b)])!=null?_0x27f4a1:_0x25a8f9(0xe5),'range':this[_0x25a8f9(0x2dd)](_0x5b9d73,_0x3a9d12),'sheetID':_0x5b9d73,'color':this[_0x25a8f9(0x335)]['assignAColorForMemberID'](_0x3aeec0),'selection':_0x1ede50},_0x56b952=this['cursorInfo'];_0x56b952['set'](_0x3aeec0,_0x31c49d),this[_0x25a8f9(0x1f3)][_0x25a8f9(0x1a7)](_0x56b952);}[_0x4885bf(0x8e)](_0x3cb290){const _0x15d6a0=_0x4885bf,{memberID:_0x67041c}=_0x3cb290['data'],_0x318ddd=this[_0x15d6a0(0x31d)];_0x318ddd[_0x15d6a0(0x2a1)](_0x67041c),this[_0x15d6a0(0x1f3)][_0x15d6a0(0x1a7)](_0x318ddd);}['_getMergeRange'](_0x36edcc,_0x20aa62){const _0x1a333b=_0x4885bf;var _0x276b5d,_0x1bbf44;const _0x54854d=(_0x1bbf44=(_0x276b5d=this['_univerInstanceService'][_0x1a333b(0x18e)](this['unitID']))==null?void 0x0:_0x276b5d[_0x1a333b(0x2e2)](_0x36edcc))==null?void 0x0:_0x1bbf44[_0x1a333b(0x27e)]();return(_0x54854d==null?void 0x0:_0x54854d[_0x1a333b(0x23a)](_0x518983=>a['Rectangle'][_0x1a333b(0x210)](_0x518983,_0x20aa62)))||_0x20aa62;}['_onRefRangeChange'](){const _0x5ddeb9=_0x4885bf,_0x495932=new a[(_0x5ddeb9(0x25b))](),_0xdf1eaa=Et(),_0x15fe4e=()=>{const _0x49321d=_0x5ddeb9;_0x495932['dispose']();const _0x37829=(_0x4c6e5b,_0xfe7fe2,_0x5bce6a,_0x528433)=>{const _0xa0bfc0=_0x30e5;let _0x1caaf1=[];switch(_0x4c6e5b['id']){case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x308)]:{_0x1caaf1=v[_0xa0bfc0(0x129)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)]['DeleteRangeMoveUpCommandId']:{_0x1caaf1=v[_0xa0bfc0(0xe4)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId'][_0xa0bfc0(0x35e)]:{_0x1caaf1=v[_0xa0bfc0(0x105)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x1fa)]:{_0x1caaf1=v[_0xa0bfc0(0x32e)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x29d)]:{_0x1caaf1=v[_0xa0bfc0(0x212)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId'][_0xa0bfc0(0x271)]:{_0x1caaf1=v['handleInsertRow'](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0xcd)]:{_0x1caaf1=v[_0xa0bfc0(0x229)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x166)]:{_0x1caaf1=v[_0xa0bfc0(0x155)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId']['RemoveRowCommandId']:{_0x1caaf1=v[_0xa0bfc0(0x25a)](_0x4c6e5b,_0x528433);break;}}const _0x47e827=v['runRefRangeMutations'](_0x1caaf1,_0x528433),_0x29a6bd=this[_0xa0bfc0(0x31d)]['get'](_0xfe7fe2);if(_0x29a6bd&&_0x47e827){const _0x3f4ffa={..._0x29a6bd,'range':_0x47e827};this[_0xa0bfc0(0x31d)][_0xa0bfc0(0x219)](_0xfe7fe2,_0x3f4ffa),_0xdf1eaa(()=>{const _0x2e61bc=_0xa0bfc0,_0x414a39=this[_0x2e61bc(0x2c1)]['registerRefRange'](_0x47e827,_0x5d3ce1=>(_0x414a39[_0x2e61bc(0xcf)](),_0x37829(_0x5d3ce1,_0xfe7fe2,_0x5bce6a,_0x47e827)));_0x495932[_0x2e61bc(0xf1)](_0x414a39);});}return{'redos':[],'undos':[]};};this[_0x49321d(0x31d)][_0x49321d(0x28d)]((_0x44ab7e,_0x4288e7)=>{const _0x47ffc2=_0x49321d,{range:_0x2baf5f,sheetID:_0x29fd2d}=_0x44ab7e,_0x4180f9=this['_refRangeService'][_0x47ffc2(0x12e)](_0x2baf5f,_0x51ef80=>(_0x4180f9[_0x47ffc2(0xcf)](),_0x37829(_0x51ef80,_0x4288e7,_0x29fd2d,_0x2baf5f)));_0x495932['add'](_0x4180f9);});};this[_0x5ddeb9(0x354)](a['toDisposable'](this[_0x5ddeb9(0x1f3)][_0x5ddeb9(0x22c)](()=>{_0x15fe4e();})));}[_0x4885bf(0x29e)](){const _0x4aff92=_0x4885bf;var _0x3df352,_0x352584;if(this[_0x4aff92(0xb8)]=!0x0,((_0x3df352=this[_0x4aff92(0x189)][_0x4aff92(0x277)]())==null?void 0x0:_0x3df352[_0x4aff92(0x2fb)]())!==this[_0x4aff92(0x143)])return;const _0x5f4745=(_0x352584=this['_injector'][_0x4aff92(0x1b8)](v[_0x4aff92(0xce)])['getCurrentSelections']())==null?void 0x0:_0x352584[0x0],_0x46c605=this['_univerInstanceService'][_0x4aff92(0x1fb)](a[_0x4aff92(0x311)][_0x4aff92(0x28c)])['getActiveSheet']();_0x5f4745&&_0x46c605&&this['_updateLocalCursor'](_0x46c605[_0x4aff92(0xb9)](),_0x5f4745);}[_0x4885bf(0x27d)](){const _0x4fd1e1=_0x4885bf;this[_0x4fd1e1(0xb8)]=!0x1;}};ge=mt([w(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),w(0x3,a[_0x4885bf(0xe0)](Re)),w(0x4,a[_0x4885bf(0xe0)](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x4885bf(0x2a2)]),w(0x7,a['Inject'](v[_0x4885bf(0x174)]))],ge);var Ct=Object[_0x4885bf(0xee)],pt=(_0x3ee7d5,_0x291204,_0x316a1c,_0x3a67d6)=>{const _0x412231=_0x4885bf;for(var _0x4c0584=_0x3a67d6>0x1?void 0x0:_0x3a67d6?Ct(_0x291204,_0x316a1c):_0x291204,_0x7969a0=_0x3ee7d5[_0x412231(0x12a)]-0x1,_0x41c397;_0x7969a0>=0x0;_0x7969a0--)(_0x41c397=_0x3ee7d5[_0x7969a0])&&(_0x4c0584=_0x41c397(_0x4c0584)||_0x4c0584);return _0x4c0584;},ce=(_0x3d0aa7,_0x261e55)=>(_0xd92991,_0x3aaf74)=>_0x261e55(_0xd92991,_0x3aaf74,_0x3d0aa7);let F=class extends a[_0x4885bf(0x1aa)]{constructor(_0x545a34,_0x587e98,_0x1dd3b2){const _0x3bb335=_0x4885bf;super(),_(this,_0x3bb335(0x23f),new Map()),_(this,_0x3bb335(0x239),new I[(_0x3bb335(0x207))]()),(this[_0x3bb335(0x189)]=_0x545a34,this[_0x3bb335(0x17e)]=_0x587e98,this[_0x3bb335(0x32a)]=_0x1dd3b2,this[_0x3bb335(0x2a5)]());}[_0x4885bf(0xcf)](){const _0x1fab47=_0x4885bf;super[_0x1fab47(0xcf)](),this[_0x1fab47(0x239)][_0x1fab47(0x90)](),this['_entities']['forEach'](_0x1f15d9=>_0x1f15d9[_0x1fab47(0xcf)]());}[_0x4885bf(0x232)](_0x22d36c){const _0x14e53c=_0x4885bf;return this[_0x14e53c(0x23f)][_0x14e53c(0x11b)](_0x22d36c)?this[_0x14e53c(0x23f)][_0x14e53c(0x1b8)](_0x22d36c)[_0x14e53c(0x35c)]:this['_entityInit$']['pipe'](I[_0x14e53c(0x1db)](_0x393208=>_0x393208[_0x14e53c(0x143)]===_0x22d36c),I[_0x14e53c(0xea)](_0x1b2659=>_0x1b2659[_0x14e53c(0x35c)]));}['_init'](){const _0x1199fd=_0x4885bf;this['_univerInstanceService'][_0x1199fd(0x33d)](a['UniverInstanceType'][_0x1199fd(0x28c)])[_0x1199fd(0x153)](I[_0x1199fd(0x268)](this['dispose$']))[_0x1199fd(0x22c)](async _0x54ec1f=>{const _0x191484=_0x1199fd,_0x4bae04=_0x54ec1f[_0x191484(0x2fb)](),_0x26be81=await this['_startSheetCollabCursor'](_0x4bae04);this[_0x191484(0x239)][_0x191484(0x1a7)](_0x26be81),this['_entities']['set'](_0x4bae04,_0x26be81);}),this['_univerInstanceService'][_0x1199fd(0x33d)](a[_0x1199fd(0x311)][_0x1199fd(0xf4)])[_0x1199fd(0x153)](I[_0x1199fd(0x268)](this[_0x1199fd(0x30f)]))[_0x1199fd(0x153)](I['filter'](_0x5e8573=>!_0x5e8573[_0x1199fd(0x2fb)]()[_0x1199fd(0x191)]('__')))[_0x1199fd(0x22c)](async _0x2ef073=>{const _0x20f7f9=_0x1199fd,_0x568f54=_0x2ef073[_0x20f7f9(0x2fb)](),_0x4430ca=await this['_startDocCollabCursor'](_0x568f54);this[_0x20f7f9(0x239)][_0x20f7f9(0x1a7)](_0x4430ca),this['_entities'][_0x20f7f9(0x219)](_0x568f54,_0x4430ca);}),I[_0x1199fd(0x1cb)](this[_0x1199fd(0x189)][_0x1199fd(0x13e)](a[_0x1199fd(0x311)][_0x1199fd(0xf4)]),this[_0x1199fd(0x189)][_0x1199fd(0x13e)](a[_0x1199fd(0x311)][_0x1199fd(0x28c)]))[_0x1199fd(0x153)](I['takeUntil'](this[_0x1199fd(0x30f)]))[_0x1199fd(0x22c)](_0x3cc000=>{const _0x31b871=_0x1199fd,_0x5827f4=_0x3cc000['getUnitId'](),_0xa8acf7=this[_0x31b871(0x23f)][_0x31b871(0x1b8)](_0x5827f4);_0xa8acf7&&(_0xa8acf7[_0x31b871(0xcf)](),this['_entities'][_0x31b871(0x2a1)](_0x5827f4));});}async[_0x4885bf(0x101)](_0x2252b7){const _0x1a55a8=_0x4885bf,_0x4f7c34=await this[_0x1a55a8(0x32a)][_0x1a55a8(0x16a)](_0x2252b7),_0x4e17be=this[_0x1a55a8(0x17e)][_0x1a55a8(0x144)](ge,_0x2252b7,_0x4f7c34);return _0x4e17be['init'](),_0x4e17be;}async[_0x4885bf(0x104)](_0x38531c){const _0x7396ce=_0x4885bf,_0x28c1b9=await this[_0x7396ce(0x32a)][_0x7396ce(0x16a)](_0x38531c),_0x42b1a5=this['_injector']['createInstance'](ve,_0x38531c,_0x28c1b9);return _0x42b1a5[_0x7396ce(0x288)](),_0x42b1a5;}};function _0x7782(){const _0x41cc85=['LICENSE_DISTRO_REJECTED','_getScale','/run/','_taskIds','_getSessionTicket','transformSelections','_range','_initUnhandledRejectionListener','RevisionService','_releaseCalculationLimit','Subject','pluginName','IDocClipboardService','Vector2','stageInfo','text','NodePositionConvertToCursor','ENTITLE_INSUFFICIENT_QUOTA','current','contains','JOIN_ROOM_FAILED','handleInsertRangeMoveRight','onPointerEnter$','_updateCollabCursors','params','arc','0\x200\x2016\x2016','_transformHistoryAndStateStack','set','lineTo','lineno','_syncEditingCollabCursorService','collabCursorState$','getUnhiddenWorksheets','TRANSFORM_CHANGE_OBSERVABLE_TYPE','SetTextSelectionsOperation','NodePositionConvertToRectRange','combineLatest','catch','_cachedData','LOGIN_FAILED','code','getformulaLimitStatusUrl','_assignedColors','handleMoveRange','YUUMI_RATE_OVER_LIMIT','univer-flex\x20univer-items-center','subscribe','_collaborationUIEventService','evenodd','stack','path','REDEMPTION_CODE_HAS_BEEN_CREATED','getCollabCursors$','setStateCache','YUUMI_URL_COL_OUT_OF_RANGE','MemberService','onStarting','_initCommandInterceptor','off-line-icon_clip0_910_343','_entityInit$','find','href','collaboration-client-ui.config','resize','ENTITLE_DUP_SUBSCRIPTION','_entities','getRangePointData','WebBrowserSingleActiveUnitService','limitInfo','search','DocStateChangeManagerService','WECHAT_HAS_BEEN_BOUND','110949luqNvG','_eventUnsubscribe','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_currentUsage','stage','_docStateChangeManagerService','actions','REDEMPTION_USER_NOT_ELIGIBLE','YUUMI_UNABLE_LOAD_URL','_initWindowErrorListener','_setupSubUnitSync','asObservable','_initStatusComponent','UNAUTHENTICATED','_removeCollabCursors','IMessageService','PENDING','Shape','onCommandExecuted','data','handleIRemoveRow','DisposableCollection','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','measureText','endRow','ticket','_textBubble','startRow','PAYMENT_CHANNEL_NOT_SUPPORT','getDocRanges','_ensureSubject','url(#off-line-icon_clip0_910_343)','OTHER_CLIENTS_EDITING','SOCKET_FAILED_RETRY','takeUntil','ONLINE','_commandService','includes','FETCH_MISS','_name','body','currentUsage','font','InsertRowCommandId','ENTITLE_CHAT_LIMIT_EXCEED','useRef','_draw','replaceDocRanges','unitId','getFocusedUnit','SNAPSHOT_HAS_BEEN_REMOVED','_pollingInterval','_docTransformStateCacheService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unit','_toggleOffline','getMergeData','unsubscribe','YUUMI_CONNECTOR_URL_NOT_FOUND','ILocalCacheService','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_uiPartsService','syncEditingCollabCursor','_initResize','UniverCollaborationClientPlugin','init','88MLGKEX','_document','Rect','UNIVER_SHEET','forEach','_memberID','createElement','_memberService','ALREADY_EXISTS','MUTATION','transformMutation','socket$','clearInterval','_initEvent','_collabCursorState$','AUTHORIZE_CODE_ILLEGAL','_saveTaskMap','ITransformService','black','addEventListener','InsertRangeMoveRightCommandId','_toggleOnline','_config','toString','delete','ICommandService','_session','_scheduleHeartbeat','_init','_handleLeaveEvent','endColumn','removeEventListener','getSkeleton','source','RegularPolygon','_onRefRangeChange','height','children','_monkeyPatchLogService','unhandledrejection','addObject','CollaborationEvent','USER_NOT_INVITED_CODE','Plugin','round','isTransformMutationFailure','REDEMPTION_USER_REDEEM_TIMES_EXCEED','IUniverInstanceService','ThemeService','subUnitId','_getSheetObject','SetFormulaCalculationNotificationMutation','popstate','LICENSE_IMPORT_SIZE_EXCEEDED','redoState','totalFormulasToCalculate','_refRangeService','use','registerDependencies','UPDATE_CURSOR','m2Prime','distinctUntilChanged','getConfig','[CollaborationDataLoaderController]','purple.300','shareReplay','BehaviorSubject','clearTimeout','isArray','imageSourceType','entries','doc.mutation.rich-text-editing','labelPosition','_initDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','IRemoteInstanceService','2816744BWWTHH','transformRemoteChangeset','map','EMAIL_VERIFY_CODE_MISMATCH','BuiltInUIPart','url(#on-line-icon_clip0_910_349)','DataLoaderService','SHEET_VIEWPORT_KEY','_getMergeRange','_transformPreviousActiveRange','_updateLocalCursor','univer-mr-2\x20univer-flex\x20univer-text-xl','on-line-icon','getSheetBySheetId','_lastPointer','Loading','_configService','_docTransformSelectionsService','_cursorShapes','sessionStatus$','debug','RECT','url(#$1','_hideTimer','findNodePositionByCharIndex','uni.network.url-service','size','generateRandomId','toRgbString','reconnect','toStringTag','M0\x200H16V16H0z','CONFLICT','green.600','setTimeout','SUCCESS','DATA_SOURCE_TOO_LARGE','collaboration.single-unit.warning','getUnitId','serializeRangeWithSheet','assign','REDEMPTION_CODE_NOT_STARTED','FormulaExecutedStateType','getMember','substring','_context','getCurrentRevOfUnit','column','collab-text-range-','executeCommand','CollaborationSessionService','DeleteRangeMoveLeftCommandId','NOT_FOUND','_scheduleSaving','name','getActiveSheet','CollaborationStatus','whenReady','dispose$','selection','UniverInstanceType','_showGuardMessage','getParam','UNDEFINED','_docTransformIMECacheService','_urlService','saveImage','registerBeforeClose','loadUnit','_checkCalculationAvailable','_cursors','event$','cursorInfo','_docSkeletonManagerService','assignAColorForMemberID','HEADER_MENU','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','invokeId','attrs','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','defs','ISocketService','_sheetSkeletonManagerService','getAncestorScale','CHANGESET_REVISION_CONFILICT','_collabSessionService','\x20at\x20','onLocalMutation','_lastResponseTimestamp','handleInsertRangeMoveDown','_handleEvent','824316oXaSxF','color','_cursor','NOT_COLLAB','APPLY_NON_SEQUENTIAL_REVISION','_colorAssignService','_themeService','_applyCommand','getUnitStatus$','activeSheet$','push','APPLY_DUPLICATED','INVALID_ARGUMENT','getTypeOfUnitAdded$','isEditing','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','saveOfflineData','_startCalculationLimit','_renderManagerService','RemoteUniscriptService','getLocalCacheKey','_shapes','REDEMPTION_CODE_INACTIVE','/universer-api/frontend/logs','collabStatus.syncing','getUndoRedoMutationParamsCache','clipPath','CollaborationUIEventService','addObjects','registerComponent','parseInt','_roomMembers$','collabStatus.synced','replaceState','UNRECOGNIZED','_uploadLog','disposeWithMe','WebURLService','functionsExecutedState','CollaborationController','HTTPService','_initUserListener','_hasFormulaInDirtyRanges','restore','cursorInfo$','0\x200\x2017\x2016','InsertColCommandId','getMemberID','type','getUnit','colorChannel1','_onCursorDelete','INVALID_INVITE_CODE','complete','USER_IS_ANONYMOUS','_render','CONNECTOR_DATA_TOO_LARGE','parse','none','throttleTime','registerRenderModule','roomMembers','UniverCollaborationClientUIPlugin','MOBILE_HAS_BEEN_BOUND','focused$','Warning','getRelativeToViewportCoord','LICENSE_EXPORT_SIZE_EXCEEDED','show','_docSkeleton','_revisionService','newValue','onPointerLeave$','SOCKET_FAILED','REDEMPTION_CODE_FULLY_REDEEMED','_colorIndex','_removeClearOtherTimer','IUIPartsService','min','createIdentifier','PERMISSION_DENIED','USER_NOT_FOUND','_getAnchorBounding','OnLineIcon','top','getCellPositionByOffset','key','DocIMEInputManagerService','entityInit$','getCurrent','collabStatus.notCollab','setAlpha','reason','_online','getSheetId','_backgroundColor','range','getActiveRange','ACTIVE_UNIT_EVENT_CHANNEL','_anchor','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Failed','_beforeCloseService','_setupBeforeClosingHandler','#FFF','backgroundColor','_scene','jiqing.500','wsSessionTicketUrl','rgba(255,\x20255,\x20255,\x200.01)','_updateSubUnitFromURLParams','START_CALCULATION','LocaleService','CURRENT_STATUS_CANNOT_OPERATE','MoveRangeCommandId','SheetsSelectionsService','dispose','univerjs-icon\x20univerjs-icon-','_selfUnitIDs','COLORS','xlink:href','_docClipboardService','_unitStatus','_anchorDot','74996FXoKtl','urlChange$','_initCommandExecutedListener','subscribeEvent','message','_color','blue.400','SetSelectionsOperation','string','Inject','pushState','history','Tools','handleDeleteRangeMoveUp','Unknown\x20user','DocSelectionManagerService','_unitOnClients','1em','TEXT_RANGE_LAYER_INDEX','switchMap','deserializeRangeWithSheet','all','startFormulaLimitUrl','getOwnPropertyDescriptor','APPLY_REJECT','_localCacheService','add','origin','sheetID','UNIVER_DOC','collab-rect-range-','debounce','Error','INTERNAL_ERROR','white','APPLY_REVISION_CONFILICT','_maxFormulaLimit','tag','ENTITLE_CAN_NOT_BUY_LOWER_OTP','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','some','_handleHeartbeatEvent','_startSheetCollabCursor','application/json','collaboration.closeRoom','_startDocCollabCursor','handleInsertCol','IURLService','session.collaboration-timeout','LOCAL_CACHE_INTERVAL_KEY','getColor','CanceledError','formula.calculation.started','transformStateCache','SessionStatus','getItem','roomMembers$','mutations','subunit','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INVITE_CODE_HAS_BEEN_UES','SheetCollabCursorShape','now','fillText','isTransformMutationsWithChangesetSuccess','41983623AFvQts','_setFormulaLimitStatus','[Unhandled\x20Rejection]:\x20','has','SYNCED','_handleJoinEvent','380wIFfuI','ENTITLE_REPORT_LIMIT_EXCEED','getVpScrollXYInfoByPosToVp','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','textRanges','2974559aVElHo','session.will-retry','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_hovered','_checkAndWaitForCalculationPermission','ranges','handleDeleteRangeMoveLeft','length','filename','INotificationService','_collabCursorController','registerRefRange','closePath','YUUMI_NO_CUBOID_FOR_QUESTION','ENSURE_SNAPSHOT_EXECUTION','width','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_notificationService','fillRule','_collaborationController','_drawRectRange','disableLocalCache','_heartbeatTimer','defIds','createSocket','result','colno','getTypeOfUnitDisposed$','enableLocalCache','EffectRefRangId','CollaborationUIEventId','_registerRenderDependencies','unitID','createInstance','_clearPolling','join','DocSkeletonManagerService','_transformService','deepClone','collab-client.tooltip.reconnect','OFFLINE','_dataLoaderService','_status$','forwardRef','bind','AWAITING_WITH_PENDING','DEFAULT_WS_SESSION_TICKET_URL','exhaustSavingTask','pipe','INVITE_CODE_REQUIRED','handleIRemoveCol','SetFormulaCalculationStartMutation','BrowserCollaborationSocketService','ERROR_AGAIN','_refreshCollabCursors','executionId','fill','replace','_disabled','from','ILogService','fillStyle','CollaborationDataLoaderController','/universer-api/license/formula/limit/start','setActiveRange','useObservable','/universer-api/license/formula/limit/status','RemoveColCommandId','max','IBeforeCloseService','collabStatus.offline','requireSession','m1Prime','_transformUndoRedoStack','NO_OTHER_CLIENTS_EDITING','_scheduleClearOtherTimer','currentSkeleton$','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','runId','[LogService\x20Error]:\x20','drawWith','RefRangeService','SUBMIT_CHANGESET_TIMEOUT','SNAPSHOT_INVALID_SNAPSHOT','beginPath','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleHover','currentTheme$','startColumn','post','_saveCache','_injector','searchParams','then','getStateCache','currentColor','eventID','addClipboardHook','setParam','DependentOn','memberID','_onCursorUpdate','_univerInstanceService','FormulaExecuteStageType','getSheetObject','isActive','beforeCommandExecuted','getUniverSheetInstance','unshift','_docSyncEditingCollabCursorService','startsWith','stringify','location','values','_httpService','_localStorageService','DesktopCollaborationStatusDisplayController','_drawTextRange','Injector','_messageService','UniverIcon','_initEntityListener','UnitStatus','svg','with','removeParam','_id','_getSaveTimeout','defineProperty','IRenderManagerService','getCoordByCell','idSuffix','next','TEXT','maxFormulaLimit','RxDisposable','CollaborationSocketService','_localeService','APPLY_PERMISSION_DENIED','_send','getOffsetConfig','setItem','row','Disposable','div','off-line-icon','_getFormulaLimitStatus','YUUMI_AI_RUN_FAILED','_labelPosition','get','displayName','LOGIN_TOKEN_PROCESSING_FAILED','AWAITING','docStateChange$','10753020aSyWLD','onMouseMove','ColorKit','jsx','_clearOtherTimers','TOO_MANY_REQUESTS','setShapeProps','getRenderById','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','hovered','getColorFromTheme','isFormulaString','disposeUnit','SetDocZoomRatioOperation','merge','_registerDependencies','debounceTime','split','getValue','_initStatusListener','REDEMPTION_INVALID_CODE','engine','translate(.97)','skeleton','error','YUUMI_ASYNCIO_CANCELLED','bottom','MessageType','save','_drawAnchor','filter','undoState','override','enableFrontendLog','selections','transformByState','_hover','loadOfflineData','collabStatus.fetchMiss','fromEventSubject','fromEvent','/universer-api/license/formula/limit/done','editingUnit','_imageIoService','ENTITLE_NEED_BILLING_ADDRESS','_createSocketURL','dirtyRanges','onRendered','_logService','EMAIL_HAS_BEEN_BOUND','session.connection-failed','mapTo','symbol','IConfigService','_cursorInfo$','RichTextEditingMutation','mask','...','DOC_RANGE_TYPE','transformMutationsWithChangeset','_updateURLWithCurrentState','InsertRangeMoveDownCommandId','getCurrentUnitForType','OTHER_CLIENT_EDITING'];_0x7782=function(){return _0x41cc85;};return _0x7782();}F=pt([ce(0x0,a[_0x4885bf(0x2b8)]),ce(0x1,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),ce(0x2,a['Inject'](u[_0x4885bf(0x307)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x27355b,_0x35b216){const _0x3773f8=_0x4885bf;let {radius:_0x20860b,width:_0xd7a10d,height:_0x524d39}=_0x35b216;_0x20860b=_0x20860b!=null?_0x20860b:0x0,_0xd7a10d=_0xd7a10d!=null?_0xd7a10d:0x1e,_0x524d39=_0x524d39!=null?_0x524d39:0x1e;let _0x5193c7=0x0,_0x1a96c4=0x0,_0x5fd8a1=0x0;_0x5193c7=_0x1a96c4=_0x5fd8a1=Math[_0x3773f8(0xa9)](_0x20860b,_0xd7a10d/0x2,_0x524d39/0x2),_0x27355b[_0x3773f8(0x177)](),_0x27355b['moveTo'](_0x5193c7,0x0),_0x27355b[_0x3773f8(0x21a)](_0xd7a10d-_0x1a96c4,0x0),_0x27355b[_0x3773f8(0x216)](_0xd7a10d-_0x1a96c4,_0x1a96c4,_0x1a96c4,Math['PI']*0x3/0x2,0x0,!0x1),_0x27355b[_0x3773f8(0x21a)](_0xd7a10d,_0x524d39-_0x5fd8a1),_0x27355b['arc'](_0xd7a10d-_0x5fd8a1,_0x524d39-_0x5fd8a1,_0x5fd8a1,0x0,Math['PI']/0x2,!0x1),_0x27355b['lineTo'](0x0,_0x524d39),_0x27355b['lineTo'](0x0,_0x5193c7),_0x27355b[_0x3773f8(0x216)](_0x5193c7,_0x5193c7,_0x5193c7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x27355b[_0x3773f8(0x12f)](),_0x35b216[_0x3773f8(0x15b)]&&(_0x27355b[_0x3773f8(0x1d9)](),_0x27355b[_0x3773f8(0x160)]=_0x35b216[_0x3773f8(0x15b)],_0x35b216[_0x3773f8(0x135)]===_0x3773f8(0x22e)?_0x27355b[_0x3773f8(0x15b)](_0x3773f8(0x22e)):_0x27355b[_0x3773f8(0x15b)](),_0x27355b['restore']());}class re extends C[_0x4885bf(0x257)]{constructor(_0x57f920,_0x115368){const _0x558165=_0x4885bf;super(_0x57f920,_0x115368),_(this,'color'),_(this,_0x558165(0x20c)),(this[_0x558165(0x331)]=_0x115368==null?void 0x0:_0x115368[_0x558165(0x331)],this['text']=_0x115368==null?void 0x0:_0x115368[_0x558165(0x20c)]);}static['drawWith'](_0x2aa97e,_0x131c48){const _0x1fbe93=_0x4885bf,{text:_0x272fad,color:_0x1afdb6}=_0x131c48;_0x2aa97e[_0x1fbe93(0x1d9)](),_0x2aa97e[_0x1fbe93(0x270)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x32c5d6=_0x2aa97e[_0x1fbe93(0x25d)](_0x272fad)['width'],_0x3e6ffc=Math[_0x1fbe93(0xa9)](_0x32c5d6+0x2*le,Ue);Ot(_0x2aa97e,{'height':X,'radius':0x4,'width':_0x3e6ffc,'fill':_0x1afdb6}),_0x2aa97e[_0x1fbe93(0x160)]=_0x1fbe93(0xc3);const _0x55adb2=le,_0x3bb0a3=X-Tt,_0x40291d=Ue-0x2*le;if(_0x32c5d6>_0x40291d){let _0x128a43='',_0x22a269=0x0;for(const _0x3eabe5 of _0x272fad){const _0xe9751b=_0x2aa97e[_0x1fbe93(0x25d)](_0x3eabe5)[_0x1fbe93(0x132)];if(_0x22a269+_0xe9751b<=_0x40291d-_0x2aa97e[_0x1fbe93(0x25d)](_0x1fbe93(0x1f6))[_0x1fbe93(0x132)])_0x128a43+=_0x3eabe5,_0x22a269+=_0xe9751b;else{_0x128a43+=_0x1fbe93(0x1f6);break;}}_0x2aa97e[_0x1fbe93(0x116)](_0x128a43,_0x55adb2,_0x3bb0a3);}else _0x2aa97e['fillText'](_0x272fad,_0x55adb2,_0x3bb0a3);_0x2aa97e[_0x1fbe93(0x35b)]();}[_0x4885bf(0x274)](_0xf4f1d7){const _0x5aa5f1=_0x4885bf;re[_0x5aa5f1(0x173)](_0xf4f1d7,this);}}const _e='collab-text-anchor-',Rt=_0x4885bf(0x305),bt=_0x4885bf(0xf5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4885bf(0xc8);class Le{constructor(_0x229d11,_0x5d03c4,_0x2e5f93,_0x27d07f){const _0x34fef1=_0x4885bf;_(this,'_shapes',[]),_(this,_0x34fef1(0xbe),null),_(this,_0x34fef1(0x260),null),_(this,'_anchorDot',null),_(this,_0x34fef1(0x2ec),null),_(this,_0x34fef1(0x247),null),(this[_0x34fef1(0x332)]=_0x229d11,this[_0x34fef1(0xc5)]=_0x5d03c4,this[_0x34fef1(0xa0)]=_0x2e5f93,this[_0x34fef1(0x28a)]=_0x27d07f,this[_0x34fef1(0x92)]());}set[_0x4885bf(0x1e1)](_0x341e68){const _0x41e0b8=_0x4885bf;_0x341e68?(this[_0x41e0b8(0xd6)]&&this[_0x41e0b8(0xd6)]['hide'](),this[_0x41e0b8(0x260)]&&this[_0x41e0b8(0x260)][_0x41e0b8(0x9f)]()):(this['_anchorDot']&&this['_anchorDot'][_0x41e0b8(0x9f)](),this['_textBubble']&&this[_0x41e0b8(0x260)]['hide']());}[_0x4885bf(0xcf)](){const _0x192eaa=_0x4885bf;for(const _0x5085c1 of this['_shapes'])_0x5085c1[_0x192eaa(0xcf)]();this['_textBubble']&&this[_0x192eaa(0x260)][_0x192eaa(0xcf)](),this['_anchorDot']&&this['_anchorDot'][_0x192eaa(0xcf)](),this[_0x192eaa(0xbe)]&&this[_0x192eaa(0xbe)][_0x192eaa(0xcf)](),this[_0x192eaa(0x247)]&&this[_0x192eaa(0x247)]();}[_0x4885bf(0x92)](){const _0x26bb59=_0x4885bf;var _0x42282d;const {_docSkeleton:_0x3c87d5,_document:_0x2686e4}=this,{color:_0x22881d,name:_0x121260,ranges:_0x315594}=this[_0x26bb59(0x332)],_0x297239=_0x2686e4[_0x26bb59(0x1af)](),{docsLeft:_0xf908d,docsTop:_0x22c484}=_0x297239,_0x32d1cd=new p[(_0x26bb59(0x20d))](_0x297239,_0x3c87d5);for(const {startOffset:_0x2c5c5d,endOffset:_0x28417f,rangeType:_0x58f548,segmentId:_0x124a5c,segmentPage:_0x2d7d0f,collapsed:_0x2127cd,isActive:_0x2a670a}of _0x315594){const _0x5265f6=_0x3c87d5['findNodePositionByCharIndex'](_0x2c5c5d,!0x0,_0x124a5c,_0x2d7d0f);let _0x13f2fe=_0x3c87d5[_0x26bb59(0x2ed)](_0x28417f,!0x0,_0x124a5c,_0x2d7d0f);if(_0x13f2fe==null&&(_0x13f2fe=_0x3c87d5[_0x26bb59(0x2ed)](_0x28417f-0x1,!0x1,_0x124a5c,_0x2d7d0f)),_0x2a670a){const {contentBoxPointGroup:_0x37e876}=_0x32d1cd[_0x26bb59(0x240)](_0x13f2fe,_0x13f2fe);if(_0x37e876[_0x26bb59(0x12a)]===0x0)continue;this[_0x26bb59(0x1da)](_0x22881d,_0x37e876,_0xf908d,_0x22c484,_0x121260),this[_0x26bb59(0x247)]=this[_0x26bb59(0x179)]();}if(_0x5265f6&&_0x13f2fe){if(_0x58f548===a['DOC_RANGE_TYPE'][_0x26bb59(0x2ea)]){const _0x4e844c=new p[(_0x26bb59(0x221))](_0x297239,_0x3c87d5),{pointGroup:_0x274cad}=(_0x42282d=_0x4e844c[_0x26bb59(0x240)](_0x5265f6,_0x13f2fe))!=null?_0x42282d:{};if(_0x274cad==null||_0x274cad['length']===0x0)continue;this['_drawRectRange'](_0x22881d,_0x274cad,_0xf908d,_0x22c484);}else{if(!_0x2127cd){const {borderBoxPointGroup:_0xa574d3}=_0x32d1cd[_0x26bb59(0x240)](_0x5265f6,_0x13f2fe);if(_0xa574d3[_0x26bb59(0x12a)]===0x0)continue;this[_0x26bb59(0x198)](_0x22881d,_0xa574d3,_0xf908d,_0x22c484);}}}}}[_0x4885bf(0x1da)](_0x5c9c67,_0x16ee81,_0x3f260f,_0x4aa023,_0x3b18dd){const _0x5a74cd=_0x4885bf,_0x52dbc8=this[_0x5a74cd(0xad)](_0x16ee81),{left:_0x4436b5,top:_0x5c295a,height:_0x1f7e4a}=_0x52dbc8,_0x41a59b=this[_0x5a74cd(0x1fe)](),_0x28f708=Nt/_0x41a59b,_0x13e6f1=new C[(_0x5a74cd(0x28b))](_e+a[_0x5a74cd(0x2f0)](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023,'height':_0x1f7e4a,'width':Dt,'fill':_0x5c9c67||C[_0x5a74cd(0x109)](a[_0x5a74cd(0xd2)][_0x5a74cd(0x29b)],0x0),'strokeWidth':_0x28f708,'stroke':Ut,'evented':!0x0});this[_0x5a74cd(0xbe)]=_0x13e6f1,this[_0x5a74cd(0xc5)][_0x5a74cd(0x2b1)](_0x13e6f1,p[_0x5a74cd(0xe9)]);const _0x1520a0=new C[(_0x5a74cd(0x28b))](_e+a['generateRandomId'](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023-he/0x2,'height':he,'width':he,'fill':_0x5c9c67||C['getColor'](a[_0x5a74cd(0xd2)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5c9c67||C[_0x5a74cd(0x109)](a['COLORS'][_0x5a74cd(0x29b)],0x0),'evented':!0x1});this[_0x5a74cd(0xd6)]=_0x1520a0,this[_0x5a74cd(0xc5)]['addObject'](_0x1520a0,p[_0x5a74cd(0xe9)]);const _0x256d15=new re(_e+a[_0x5a74cd(0x2f0)](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023-X,'text':_0x3b18dd,'color':_0x5c9c67});this[_0x5a74cd(0x260)]=_0x256d15,this[_0x5a74cd(0xc5)][_0x5a74cd(0x2b1)](_0x256d15,p[_0x5a74cd(0xe9)]),this[_0x5a74cd(0x1e1)]=!0x1;}[_0x4885bf(0x179)](){const _0x50c41d=_0x4885bf,_0x589d1e=this['_anchor'][_0x50c41d(0x213)][_0x50c41d(0xda)](()=>{const _0x4e9bdd=_0x50c41d;this[_0x4e9bdd(0x1e1)]=!0x0;}),_0x272825=this['_anchor'][_0x50c41d(0xa3)][_0x50c41d(0xda)](()=>{const _0x1a1d16=_0x50c41d;this[_0x1a1d16(0x2ec)]&&clearTimeout(this['_hideTimer']),this[_0x1a1d16(0x2ec)]=setTimeout(()=>{const _0xe8c776=_0x1a1d16;this[_0xe8c776(0x1e1)]=!0x1;},0x7d0);});return()=>{const _0x1b938c=_0x50c41d;_0x589d1e[_0x1b938c(0x27f)](),_0x272825[_0x1b938c(0x27f)]();};}[_0x4885bf(0x198)](_0xa0540,_0x9d10fe,_0x520cab,_0x1cbd26){const _0x15c36d=_0x4885bf,_0x32a4ed=new a[(_0x15c36d(0x1bf))](_0xa0540)[_0x15c36d(0xb6)](0.2)[_0x15c36d(0x2f1)](),_0x413588=new C[(_0x15c36d(0x2ab))](Rt+a[_0x15c36d(0x2f0)](H),{'pointsGroup':_0x9d10fe,'fill':_0x32a4ed||C[_0x15c36d(0x109)](a[_0x15c36d(0xd2)][_0x15c36d(0x29b)],0.2),'left':_0x520cab,'top':_0x1cbd26,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15c36d(0x345)]['push'](_0x413588),this[_0x15c36d(0xc5)]['addObject'](_0x413588,p['TEXT_RANGE_LAYER_INDEX']);}[_0x4885bf(0x137)](_0x2a7b5d,_0x563cf2,_0x1f9ec4,_0x5d950a){const _0x1fc037=_0x4885bf,_0x11f728=new a[(_0x1fc037(0x1bf))](_0x2a7b5d)['setAlpha'](0.2)[_0x1fc037(0x2f1)](),_0x25532b=new C['RegularPolygon'](bt+a[_0x1fc037(0x2f0)](H),{'pointsGroup':_0x563cf2,'fill':_0x11f728||C[_0x1fc037(0x109)](a['COLORS'][_0x1fc037(0x29b)],0.2),'left':_0x1f9ec4,'top':_0x5d950a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1fc037(0x33a)](_0x25532b),this['_scene'][_0x1fc037(0x2b1)](_0x25532b,p[_0x1fc037(0xe9)]);}[_0x4885bf(0xad)](_0x469f92){const _0x4b8cbf=_0x469f92[0x0],_0x555fe6=_0x4b8cbf[0x0],_0x12669d=_0x4b8cbf[0x2],{x:_0xb4cb24,y:_0x47f795}=_0x555fe6,{x:_0x135894,y:_0x1635cb}=_0x12669d;return{'left':_0xb4cb24,'top':_0x47f795,'width':_0x135894-_0xb4cb24,'height':_0x1635cb-_0x47f795};}['_getScale'](){const _0xa3cd24=_0x4885bf,{scaleX:_0x3a2a3e,scaleY:_0x579335}=this[_0xa3cd24(0xc5)][_0xa3cd24(0x328)]();return Math[_0xa3cd24(0x167)](_0x3a2a3e,_0x579335);}}var Lt=Object[_0x4885bf(0xee)],Mt=(_0x2c268b,_0x5303dc,_0x4169ae,_0x47c554)=>{const _0x328503=_0x4885bf;for(var _0x211839=_0x47c554>0x1?void 0x0:_0x47c554?Lt(_0x5303dc,_0x4169ae):_0x5303dc,_0x565326=_0x2c268b[_0x328503(0x12a)]-0x1,_0x214e08;_0x565326>=0x0;_0x565326--)(_0x214e08=_0x2c268b[_0x565326])&&(_0x211839=_0x214e08(_0x211839)||_0x211839);return _0x211839;},q=(_0x22823c,_0x12abfa)=>(_0x5bd6d3,_0x11f832)=>_0x12abfa(_0x5bd6d3,_0x11f832,_0x22823c);let Ee=class extends a[_0x4885bf(0x1aa)]{constructor(_0x15e321,_0x4516df,_0x5e39de,_0x554514,_0x1ce664){const _0x262ca1=_0x4885bf;super(),_(this,'_cursorShapes',[]),_(this,_0x262ca1(0x31b),[]),(this[_0x262ca1(0x302)]=_0x15e321,this[_0x262ca1(0x31e)]=_0x4516df,this[_0x262ca1(0x12d)]=_0x5e39de,this['_commandService']=_0x554514,this[_0x262ca1(0x336)]=_0x1ce664,this[_0x262ca1(0x2a5)]());}[_0x4885bf(0x2a5)](){const _0x3614d0=_0x4885bf,_0x588e26=this[_0x3614d0(0x302)][_0x3614d0(0x276)],_0x1efded=this[_0x3614d0(0x31e)];this[_0x3614d0(0x354)](I[_0x3614d0(0x222)]([this[_0x3614d0(0x12d)][_0x3614d0(0x232)](_0x588e26),this[_0x3614d0(0x336)][_0x3614d0(0x17a)]])[_0x3614d0(0x153)]($[_0x3614d0(0x2d7)](([_0x7abc8b,_0x541ade])=>({'skeleton':_0x1efded[_0x3614d0(0x2a9)](),'cursors':[..._0x7abc8b[_0x3614d0(0x194)]()]['flatMap'](_0xa2bf39=>({..._0xa2bf39,'color':this[_0x3614d0(0x336)][_0x3614d0(0x1c7)](_0xa2bf39[_0x3614d0(0x331)])}))})))[_0x3614d0(0x22c)](_0xbf3028=>{const _0x2b0fd3=_0x3614d0;if(this[_0x2b0fd3(0x254)](),_0xbf3028){const {skeleton:_0x1b092a,cursors:_0x32dde2}=_0xbf3028;this[_0x2b0fd3(0x214)](_0x1b092a,_0x32dde2);}})),this[_0x3614d0(0x286)](),this[_0x3614d0(0xd9)]();}[_0x4885bf(0x214)](_0x26e487,_0x26a54d){const _0x11197e=_0x4885bf,{scene:_0x406a99,mainComponent:_0x19b373}=this[_0x11197e(0x302)],_0x201b20=_0x26a54d[_0x11197e(0x2d7)](_0x5f4db5=>new Le(_0x5f4db5,_0x406a99,_0x26e487,_0x19b373));this[_0x11197e(0x2e7)]=_0x201b20,this[_0x11197e(0x31b)]=_0x26a54d;}[_0x4885bf(0x159)](){const _0x153396=_0x4885bf;this[_0x153396(0x254)]();const {scene:_0x59ae6d,mainComponent:_0x148c39}=this[_0x153396(0x302)],_0x4d68a8=this[_0x153396(0x31e)][_0x153396(0x2a9)](),_0x7e49f4=this[_0x153396(0x31b)][_0x153396(0x2d7)](_0x59c1b4=>new Le(_0x59c1b4,_0x59ae6d,_0x4d68a8,_0x148c39));this[_0x153396(0x2e7)]=_0x7e49f4;}[_0x4885bf(0x254)](){const _0x395671=_0x4885bf;this[_0x395671(0x2e7)][_0x395671(0x28d)](_0x2b4877=>_0x2b4877[_0x395671(0xcf)]()),this[_0x395671(0x2e7)]=[];}[_0x4885bf(0xd9)](){const _0x4c9a1e=_0x4885bf,_0x1ddeea=[p[_0x4c9a1e(0x1ca)]['id']];this[_0x4c9a1e(0x354)](this[_0x4c9a1e(0x26a)][_0x4c9a1e(0x258)](_0x1f8579=>{const _0x52b3f9=_0x4c9a1e;_0x1ddeea[_0x52b3f9(0x26b)](_0x1f8579['id'])&&_0x1f8579['params'][_0x52b3f9(0x276)]===this[_0x52b3f9(0x302)]['unitId']&&this[_0x52b3f9(0x159)]();}));}[_0x4885bf(0x286)](){const _0x2d883b=_0x4885bf;this[_0x2d883b(0x354)](a[_0x2d883b(0x1e4)](this[_0x2d883b(0x302)][_0x2d883b(0x1d2)]['onTransformChange$'])[_0x2d883b(0x153)]($['filter'](_0x4fceaf=>_0x4fceaf['type']===C[_0x2d883b(0x21f)][_0x2d883b(0x23d)]),$[_0x2d883b(0x96)](0x10))['subscribe'](()=>{const _0x18f09f=_0x2d883b;this[_0x18f09f(0x159)]();}));}};Ee=Mt([q(0x1,a[_0x4885bf(0xe0)](V[_0x4885bf(0x147)])),q(0x2,a['Inject'](F)),q(0x3,a[_0x4885bf(0x2a2)]),q(0x4,a[_0x4885bf(0xe0)](a[_0x4885bf(0x2b9)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4885bf(0x257)]{constructor(_0x15b957,_0x4458b8){const _0x1659c5=_0x4885bf;super(_0x15b957,_0x4458b8),_(this,_0x1659c5(0xdc)),_(this,_0x1659c5(0x126),!0x1),_(this,_0x1659c5(0x203)),_(this,_0x1659c5(0x26d),''),_(this,_0x1659c5(0x1b7),_0x1659c5(0xaf)),_(this,_0x1659c5(0xba)),(_0x4458b8&&this[_0x1659c5(0x1c3)](_0x4458b8),this[_0x1659c5(0x213)][_0x1659c5(0xda)](()=>this[_0x1659c5(0x1c3)]({'hovered':!0x0})),this[_0x1659c5(0xa3)][_0x1659c5(0xda)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4885bf(0x1c3)](_0x426870){const _0x58f34b=_0x4885bf;var _0x3b21dd,_0x2cd4b8,_0xc6fb43,_0x41f1ce,_0xfb5951,_0x75ac33;this[_0x58f34b(0xdc)]=(_0x3b21dd=_0x426870[_0x58f34b(0x331)])!=null?_0x3b21dd:this[_0x58f34b(0xdc)],this[_0x58f34b(0x126)]=(_0x2cd4b8=_0x426870[_0x58f34b(0x1c6)])!=null?_0x2cd4b8:this[_0x58f34b(0x126)],this[_0x58f34b(0x203)]=(_0xc6fb43=_0x426870['range'])!=null?_0xc6fb43:this[_0x58f34b(0x203)],this[_0x58f34b(0x26d)]=(_0x41f1ce=_0x426870[_0x58f34b(0x30b)])!=null?_0x41f1ce:this[_0x58f34b(0x26d)],this[_0x58f34b(0x1b7)]=(_0xfb5951=_0x426870[_0x58f34b(0x2d1)])!=null?_0xfb5951:this[_0x58f34b(0x1b7)],this[_0x58f34b(0xba)]=(_0x75ac33=_0x426870[_0x58f34b(0xc4)])!=null?_0x75ac33:this[_0x58f34b(0xba)],this[_0x58f34b(0x1e0)]({'width':_0x426870[_0x58f34b(0x132)],'height':_0x426870[_0x58f34b(0x2ad)]});}['onMouseMove'](_0x5e773b){const _0x1febe9=_0x4885bf,{row:_0x44e591,column:_0x31e7e6}=_0x5e773b;if(_0x44e591>=this[_0x1febe9(0x203)]['startRow']&&_0x44e591<=this[_0x1febe9(0x203)][_0x1febe9(0x25e)]&&_0x31e7e6>=this['_range'][_0x1febe9(0x17b)]&&_0x31e7e6<=this[_0x1febe9(0x203)][_0x1febe9(0x2a7)]){this[_0x1febe9(0x1c3)]({'hovered':!0x0});return;}this[_0x1febe9(0x1c3)]({'hovered':!0x1});}['triggerDblclick'](_0x4c06b4){return!0x1;}[_0x4885bf(0x274)](_0xae37e9){const _0x12138c=_0x4885bf;C[_0x12138c(0x28b)]['drawWith'](_0xae37e9,{'width':this[_0x12138c(0x132)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x12138c(0xdc)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x12138c(0x126)]&&(_0xae37e9[_0x12138c(0x1d9)](),_0xae37e9['transform'](0x1,0x0,0x0,0x1,this[_0x12138c(0x132)],this[_0x12138c(0x1b7)]===_0x12138c(0x1d7)?0x0:-X),re[_0x12138c(0x173)](_0xae37e9,{'text':this[_0x12138c(0x26d)],'color':this[_0x12138c(0xdc)]}),_0xae37e9[_0x12138c(0x35b)]());}}var wt=Object[_0x4885bf(0xee)],yt=(_0x21de19,_0x1f8ecc,_0x122ae3,_0x11456a)=>{const _0x54d335=_0x4885bf;for(var _0x244630=_0x11456a>0x1?void 0x0:_0x11456a?wt(_0x1f8ecc,_0x122ae3):_0x1f8ecc,_0x238890=_0x21de19[_0x54d335(0x12a)]-0x1,_0x4ec455;_0x238890>=0x0;_0x238890--)(_0x4ec455=_0x21de19[_0x238890])&&(_0x244630=_0x4ec455(_0x244630)||_0x244630);return _0x244630;},ue=(_0x8e9d25,_0x21e8d0)=>(_0x6db396,_0x15d778)=>_0x21e8d0(_0x6db396,_0x15d778,_0x8e9d25);const $t=0x1389;let Ce=class extends a[_0x4885bf(0x1aa)]{constructor(_0x127c2f,_0x335159,_0x537926,_0x4de698){const _0x5f0507=_0x4885bf;super(),_(this,_0x5f0507(0x31b),new Set()),_(this,_0x5f0507(0x2e3),null),(this[_0x5f0507(0x302)]=_0x127c2f,this[_0x5f0507(0x327)]=_0x335159,this[_0x5f0507(0x12d)]=_0x537926,this[_0x5f0507(0x336)]=_0x4de698,this[_0x5f0507(0x2a5)]());}['_init'](){const _0x459be0=_0x4885bf;this[_0x459be0(0x327)][_0x459be0(0x16f)][_0x459be0(0x153)]($[_0x459be0(0x268)](this[_0x459be0(0x30f)]),$[_0x459be0(0xea)](_0xf62b16=>{const _0x51b9bf=_0x459be0;if(_0xf62b16){const _0x1c8a44=_0xf62b16['sheetId'];return I[_0x51b9bf(0x222)](this[_0x51b9bf(0x12d)][_0x51b9bf(0x232)](this['_context'][_0x51b9bf(0x276)]),this[_0x51b9bf(0x336)]['currentTheme$'])['pipe']($[_0x51b9bf(0x2d7)](([_0x1dea43,_0x2dfa99])=>{const _0x392840=new Map();return _0x1dea43['forEach']((_0x4c4e28,_0x767a86)=>{const _0x548aec=_0x30e5;if(_0x4c4e28[_0x548aec(0xf3)]===_0x1c8a44){const _0x4a6010={..._0x4c4e28};_0x4a6010['color']=this[_0x548aec(0x336)][_0x548aec(0x1c7)](_0x4c4e28[_0x548aec(0x331)]),_0x392840[_0x548aec(0x219)](_0x767a86,_0x4a6010);}}),{'skeleton':_0xf62b16,'cursors':_0x392840};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5079ac,cursors:_0x1e8ac2})=>{const _0x10600a=_0x459be0;this['_removeCollabCursors'](),_0x5079ac&&this[_0x10600a(0x214)](_0x5079ac,_0x1e8ac2);}),this[_0x459be0(0x327)][_0x459be0(0x16f)]['subscribe'](_0x41f0c4=>{const _0x51c058=_0x459be0;if(_0x41f0c4==null)return;const {skeleton:_0x3560e8}=_0x41f0c4,{scene:_0x13975b}=this[_0x51c058(0x302)];_0x13975b['onPointerMove$']['subscribeEvent'](a[_0x51c058(0xf6)](_0x1935a8=>{const _0x1d3efe=_0x51c058;var _0x5a105a,_0x208914;const {offsetX:_0x5f467d,offsetY:_0x458165}=_0x1935a8,{x:_0x219656,y:_0x420aba}=_0x13975b[_0x1d3efe(0x9d)](C[_0x1d3efe(0x20a)]['FromArray']([_0x5f467d,_0x458165])),{scaleX:_0x3f9cd8,scaleY:_0x17a834}=_0x13975b[_0x1d3efe(0x328)](),_0x343934=_0x13975b['getViewport'](C[_0x1d3efe(0x2dc)]['VIEW_MAIN']),_0x120588=_0x13975b[_0x1d3efe(0x120)](C[_0x1d3efe(0x20a)]['FromArray']([_0x219656,_0x420aba]),_0x343934),_0x7e3ae1=_0x3560e8[_0x1d3efe(0xb0)](_0x5f467d,_0x458165,_0x3f9cd8,_0x17a834,_0x120588);((_0x5a105a=this[_0x1d3efe(0x2e3)])==null?void 0x0:_0x5a105a[_0x1d3efe(0x304)])===_0x7e3ae1['column']&&((_0x208914=this[_0x1d3efe(0x2e3)])==null?void 0x0:_0x208914[_0x1d3efe(0x1b1)])===_0x7e3ae1[_0x1d3efe(0x1b1)]||this[_0x1d3efe(0x31b)][_0x1d3efe(0x28d)](_0x4ae97=>{const _0x42b17b=_0x1d3efe;_0x4ae97[_0x42b17b(0x1be)](_0x7e3ae1);});},0x64));});}[_0x4885bf(0x214)](_0x11425b,_0x380f85){const _0x5e6446=_0x4885bf;var _0x4bc2bc;const _0xae843a=(_0x4bc2bc=this[_0x5e6446(0x327)][_0x5e6446(0xb4)]())==null?void 0x0:_0x4bc2bc[_0x5e6446(0x1d4)];if(!_0xae843a)return;const _0x344803=this[_0x5e6446(0x2bb)]();if(!_0x344803)return;this[_0x5e6446(0x31b)][_0x5e6446(0x28d)](_0x1f5c05=>{_0x1f5c05['makeDirty']();});const {scene:_0xf211e7}=_0x344803,_0x522b27=xt(Array['from'](_0x380f85[_0x5e6446(0x194)]()))[_0x5e6446(0x2d7)](_0x5f00b0=>{const _0x5b8088=_0x5e6446,{color:_0x42f83a,range:_0x1738cc,name:_0x2c8f47,selection:_0x137cef,sheetID:_0x35e01a}=_0x5f00b0,{startColumn:_0x1fcb37,startRow:_0x22febe,endColumn:_0x4e486b,endRow:_0x41d552}=_0x1738cc,_0x1690d0=J[_0x5b8088(0x1a5)](_0x22febe,_0x1fcb37,_0xf211e7,_0xae843a),_0x3ced20=J[_0x5b8088(0x1a5)](_0x41d552,_0x4e486b,_0xf211e7,_0xae843a),{columnHeaderHeightAndMarginTop:_0x4d1990}=_0xae843a,{startX:_0x226d38,startY:_0x4c6604}=_0x1690d0,{endX:_0x175e65,endY:_0x3e15dc}=_0x3ced20,_0x25bfd9=_0x175e65-_0x226d38,_0x283fcd=_0x3e15dc-_0x4c6604,_0x3a9279={'labelPosition':_0x4c6604-_0x4d1990>=X?'top':_0x5b8088(0x1d7),'sheetID':_0x35e01a,'range':_0x1738cc,'color':_0x42f83a,'name':_0x2c8f47,'selection':_0x137cef,'left':_0x226d38,'top':_0x4c6604,'width':_0x25bfd9,'height':_0x283fcd,'evented':!0x1,'zIndex':$t};return new je(_0x2c8f47,_0x3a9279);});_0xf211e7[_0x5e6446(0x34c)](_0x522b27,At),this[_0x5e6446(0x31b)]=new Set(_0x522b27);}[_0x4885bf(0x254)](){const _0x3175dc=_0x4885bf;var _0x5c520f;(_0x5c520f=this[_0x3175dc(0x31b)])==null||_0x5c520f[_0x3175dc(0x28d)](_0x400486=>_0x400486['dispose']());}[_0x4885bf(0x2bb)](){const _0x36d1f9=_0x4885bf;return J[_0x36d1f9(0x18b)](this['_context']['unit'],this[_0x36d1f9(0x302)]);}};Ce=yt([ue(0x1,a[_0x4885bf(0xe0)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x4885bf(0xe0)](F)),ue(0x3,a[_0x4885bf(0xe0)](a[_0x4885bf(0x2b9)]))],Ce);function xt(_0x5bb7b5){const _0x54bf5c=_0x4885bf,_0x5b392d=new Map();return _0x5bb7b5['forEach'](_0x2cf05b=>{const _0x19cbaf=_0x30e5;if(_0x5b392d[_0x19cbaf(0x11b)](_0x2cf05b['selection'])){const _0x1c4b23=_0x5b392d[_0x19cbaf(0x1b8)](_0x2cf05b[_0x19cbaf(0x310)]);_0x1c4b23[_0x19cbaf(0x30b)]+=',\x20'+_0x2cf05b['name'];}else _0x5b392d[_0x19cbaf(0x219)](_0x2cf05b[_0x19cbaf(0x310)],_0x2cf05b);}),Array[_0x54bf5c(0x15e)](_0x5b392d[_0x54bf5c(0x194)]());}var Bt=Object[_0x4885bf(0xee)],Ft=(_0x45c182,_0x2c70ff,_0x5cbe98,_0xa1628e)=>{const _0x2253eb=_0x4885bf;for(var _0x21f192=_0xa1628e>0x1?void 0x0:_0xa1628e?Bt(_0x2c70ff,_0x5cbe98):_0x2c70ff,_0x424b3d=_0x45c182[_0x2253eb(0x12a)]-0x1,_0x1bf42d;_0x424b3d>=0x0;_0x424b3d--)(_0x1bf42d=_0x45c182[_0x424b3d])&&(_0x21f192=_0x1bf42d(_0x21f192)||_0x21f192);return _0x21f192;},y=(_0x4bfdcf,_0x3c9146)=>(_0x18ae6d,_0x524895)=>_0x3c9146(_0x18ae6d,_0x524895,_0x4bfdcf);let Z=class extends a['Disposable']{constructor(_0x5cc113,_0x1c1bb1,_0x5da883,_0x199eb4,_0x4e1522,_0x210ab5){const _0x3e07b2=_0x4885bf;super(),this[_0x3e07b2(0xc1)]=_0x5cc113,this[_0x3e07b2(0xf0)]=_0x1c1bb1,this[_0x3e07b2(0x22d)]=_0x5da883,this['_messageService']=_0x199eb4,this[_0x3e07b2(0x134)]=_0x4e1522,this['_localeService']=_0x210ab5,this['_setupBeforeClosingHandler'](),this[_0x3e07b2(0x296)]();}[_0x4885bf(0xc2)](){const _0x265e2f=_0x4885bf;this[_0x265e2f(0x354)](this['_beforeCloseService'][_0x265e2f(0x318)](()=>{const _0x3716b1=_0x265e2f;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x3716b1(0x1ac)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x4885bf(0x296)](){const _0x5c26fa=_0x4885bf;this[_0x5c26fa(0x354)](this[_0x5c26fa(0x22d)][_0x5c26fa(0x31c)][_0x5c26fa(0x22c)](_0x8cb3b4=>{const _0x1396b1=_0x5c26fa;_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x1fc)]&&this[_0x1396b1(0x19a)]['show']({'type':T[_0x1396b1(0x1d8)]['Warning'],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x2fa))}),_0x8cb3b4['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x103))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0xab)]&&this[_0x1396b1(0x134)][_0x1396b1(0x9f)]({'title':this[_0x1396b1(0x1ac)]['t']('permission.title'),'content':this[_0x1396b1(0x1ac)]['t']('permission.content'),'type':_0x1396b1(0x1d5),'duration':0x0}),_0x8cb3b4['id']===u['CollaborationUIEventId'][_0x1396b1(0x2f5)]&&this['_messageService'][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0xf7)],'content':this['_localeService']['t'](_0x1396b1(0x103))+'('+_0x8cb3b4['data']+')'}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x211)]&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T['MessageType'][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x8cb3b4['data']||'')}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x267)]&&this['_messageService']['show']({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x124))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0xa4)]&&this['_messageService'][_0x1396b1(0x9f)]({'type':T['MessageType'][_0x1396b1(0xf7)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x1ef))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x175)]&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0xf7)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x107))});}));}};function _0x30e5(_0x15d732,_0x132a4d){const _0x77824c=_0x7782();return _0x30e5=function(_0x30e529,_0x446923){_0x30e529=_0x30e529-0x8e;let _0x692666=_0x77824c[_0x30e529];return _0x692666;},_0x30e5(_0x15d732,_0x132a4d);}Z=Ft([y(0x0,O[_0x4885bf(0x168)]),y(0x1,u[_0x4885bf(0x281)]),y(0x2,a[_0x4885bf(0xe0)](u[_0x4885bf(0x34b)])),y(0x3,O[_0x4885bf(0x255)]),y(0x4,O[_0x4885bf(0x12c)]),y(0x5,a[_0x4885bf(0xe0)](a[_0x4885bf(0xcb)]))],Z);var jt=Object[_0x4885bf(0xee)],kt=(_0x5b00ff,_0x846123,_0x9a1993,_0x26e088)=>{const _0x52b99d=_0x4885bf;for(var _0x31600f=_0x26e088>0x1?void 0x0:_0x26e088?jt(_0x846123,_0x9a1993):_0x846123,_0x18dd42=_0x5b00ff[_0x52b99d(0x12a)]-0x1,_0x4d8ec1;_0x18dd42>=0x0;_0x18dd42--)(_0x4d8ec1=_0x5b00ff[_0x18dd42])&&(_0x31600f=_0x4d8ec1(_0x31600f)||_0x31600f);return _0x31600f;},z=(_0x528c83,_0x4f92aa)=>(_0x20ba6a,_0xc8dd71)=>_0x4f92aa(_0x20ba6a,_0xc8dd71,_0x528c83);let Q=class extends a['Disposable']{constructor(_0x3587b0,_0x3f9d39,_0x23f212,_0x5916b8){const _0x89991f=_0x4885bf;super(),_(this,_0x89991f(0x28e)),(this[_0x89991f(0x17e)]=_0x3587b0,this[_0x89991f(0x195)]=_0x3f9d39,this['_logService']=_0x23f212,this['_collaborationSessionService']=_0x5916b8,this[_0x89991f(0x2a5)]());}[_0x4885bf(0x2a5)](){const _0x3d744d=_0x4885bf;this[_0x3d744d(0x24f)](),this[_0x3d744d(0x204)](),this[_0x3d744d(0x2af)](),this['_initUserListener']();}[_0x4885bf(0x359)](){const _0x2daa03=_0x4885bf;this[_0x2daa03(0x354)](this['_collaborationSessionService'][_0x2daa03(0x294)][_0x2daa03(0x22c)](_0x45e5f1=>{const _0x5eca73=_0x2daa03;this[_0x5eca73(0x28e)]=_0x45e5f1==null?void 0x0:_0x45e5f1[_0x5eca73(0x187)];}));}[_0x4885bf(0x24f)](){const _0x2e5769=_0x4885bf,_0xfa2439=_0x20b589=>{const _0x10da87=_0x30e5;var _0x4069c8;this[_0x10da87(0x353)]('error','[Window\x20Error]:\x20'+_0x20b589['message']+_0x10da87(0x32b)+_0x20b589[_0x10da87(0x12b)]+':'+_0x20b589[_0x10da87(0x21b)]+':'+_0x20b589[_0x10da87(0x13d)]+'\x0a'+(((_0x4069c8=_0x20b589[_0x10da87(0x1d5)])==null?void 0x0:_0x4069c8[_0x10da87(0x22f)])||''));};window['addEventListener'](_0x2e5769(0x1d5),_0xfa2439),this[_0x2e5769(0x354)](()=>{const _0x5d13b7=_0x2e5769;window[_0x5d13b7(0x2a8)](_0x5d13b7(0x1d5),_0xfa2439);});}[_0x4885bf(0x204)](){const _0x59bb0e=_0x4885bf,_0x4cc34a=_0x194d2f=>{const _0x130b52=_0x30e5;this[_0x130b52(0x353)]('error',_0x130b52(0x11a)+_0x194d2f[_0x130b52(0xb7)]);};window[_0x59bb0e(0x29c)]('unhandledrejection',_0x4cc34a),this[_0x59bb0e(0x354)](()=>{const _0x334a4c=_0x59bb0e;window[_0x334a4c(0x2a8)](_0x334a4c(0x2b0),_0x4cc34a);});}[_0x4885bf(0x2af)](){const _0x445ad7=_0x4885bf,_0x5e7d4f=this[_0x445ad7(0x1ed)]['error'][_0x445ad7(0x14f)](this['_logService']);this['_logService']['error']=(..._0x3ab552)=>{const _0x337094=_0x445ad7,_0x502f20=_0x3ab552[_0x337094(0x2d7)](_0x5e0ea8=>_0x5e0ea8 instanceof Error?_0x5e0ea8[_0x337094(0xdb)]+'\x0a'+_0x5e0ea8[_0x337094(0x22f)]:String(_0x5e0ea8))[_0x337094(0x146)]('\x20');this['_uploadLog'](_0x337094(0x1d5),_0x337094(0x172)+_0x502f20),_0x5e7d4f(..._0x3ab552);},this['disposeWithMe'](()=>{const _0x75a5ce=_0x445ad7;this[_0x75a5ce(0x1ed)]['error']=_0x5e7d4f;});}[_0x4885bf(0x353)](_0x26d1f5,_0x1b0131){const _0xaa9a85=_0x4885bf;try{const _0x391c9f={'userId':this['_memberID'],'logLabel':_0x26d1f5,'content':_0x1b0131};this['_httpService'][_0xaa9a85(0x17c)](_0xaa9a85(0x347),{'body':_0x391c9f})[_0xaa9a85(0x223)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),z(0x1,a[_0x4885bf(0xe0)](x[_0x4885bf(0x358)])),z(0x2,a['ILogService']),z(0x3,a[_0x4885bf(0xe0)](u[_0x4885bf(0x307)]))],Q);const Yt=_0x4885bf(0x23c),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x20fbf5,_0x214c11,_0x2c2b98,_0x34bf3c)=>{const _0x2264ec=_0x4885bf;for(var _0x590db9=_0x34bf3c>0x1?void 0x0:_0x34bf3c?Ht(_0x214c11,_0x2c2b98):_0x214c11,_0x152c14=_0x20fbf5[_0x2264ec(0x12a)]-0x1,_0xcf2a9;_0x152c14>=0x0;_0x152c14--)(_0xcf2a9=_0x20fbf5[_0x152c14])&&(_0x590db9=_0xcf2a9(_0x590db9)||_0x590db9);return _0x590db9;},Ae=(_0x7be90d,_0x2f394f)=>(_0x390bb3,_0x29cfa4)=>_0x2f394f(_0x390bb3,_0x29cfa4,_0x7be90d);let ee=class{constructor(_0xfb6b4e,_0x22d3ca){const _0x52ad87=_0x4885bf;this[_0x52ad87(0x148)]=_0xfb6b4e,this[_0x52ad87(0x342)]=_0x22d3ca;}['transformIMECache'](_0x40401b){const _0x4b78ec=_0x4885bf;this['_transformUndoRedoStack'](_0x40401b),this[_0x4b78ec(0x2de)](_0x40401b);}[_0x4885bf(0x2d6)](_0x89e1aa){const _0x4a769c=_0x4885bf,{unitID:_0x100e67}=_0x89e1aa,_0x1ed4ab=this[_0x4a769c(0x342)]['getRenderById'](_0x100e67)['with'](p[_0x4a769c(0xb2)]),{redoCache:_0x33e993}=_0x1ed4ab['getUndoRedoMutationParamsCache']();if(_0x33e993[_0x4a769c(0x12a)]===0x0)return _0x89e1aa;let _0x505d01=a['Tools'][_0x4a769c(0x149)](_0x89e1aa[_0x4a769c(0x110)][0x0]);for(let _0x1fc781=0x0;_0x1fc781<_0x33e993[_0x4a769c(0x12a)];_0x1fc781++){const _0x4c9dde={'id':_0x4a769c(0x2d0),'params':{..._0x33e993[_0x1fc781]}},_0x171cbd=this[_0x4a769c(0x148)]['transformMutation'](_0x505d01,_0x4c9dde,!0x1);if(g[_0x4a769c(0x2b6)](_0x171cbd))throw _0x171cbd[_0x4a769c(0x1d5)];_0x505d01=_0x171cbd[_0x4a769c(0x16b)];}return{...a[_0x4a769c(0xe3)]['deepClone'](_0x89e1aa),'mutations':[_0x505d01]};}[_0x4885bf(0x16c)](_0x132a6b){const _0x13227c=_0x4885bf,{unitID:_0x5566e3}=_0x132a6b,_0x144cb0=this['_renderManagerService'][_0x13227c(0x1c4)](_0x5566e3)[_0x13227c(0x19f)](p[_0x13227c(0xb2)]),{undoCache:_0x1c843e,redoCache:_0x5cd801}=_0x144cb0[_0x13227c(0x349)]();if(_0x1c843e[_0x13227c(0x12a)]===0x0||_0x5cd801[_0x13227c(0x12a)]===0x0)return;const _0x2dda96=[],_0x1be4e9=[];let _0x46b575=a['Tools'][_0x13227c(0x149)](_0x132a6b['mutations'][0x0]),_0xcff5ce=a[_0x13227c(0xe3)][_0x13227c(0x149)](_0x132a6b[_0x13227c(0x110)][0x0]);for(let _0x44cef7=_0x1c843e[_0x13227c(0x12a)]-0x1;_0x44cef7>=0x0;_0x44cef7--){const _0x5c7b3d={'id':'doc.mutation.rich-text-editing','params':{..._0x1c843e[_0x44cef7]}},_0xf89245={'id':'doc.mutation.rich-text-editing','params':{..._0x5cd801[_0x44cef7]}},_0x1134f0=this[_0x13227c(0x148)][_0x13227c(0x293)](_0x46b575,_0x5c7b3d,!0x1),_0x2282b0=this[_0x13227c(0x148)]['transformMutation'](_0xcff5ce,_0xf89245,!0x1);if(g[_0x13227c(0x2b6)](_0x1134f0))throw _0x1134f0['error'];if(g[_0x13227c(0x2b6)](_0x2282b0))throw _0x2282b0[_0x13227c(0x1d5)];_0x2dda96[_0x13227c(0x18f)](_0x1134f0[_0x13227c(0x2c5)][_0x13227c(0x215)]),_0x1be4e9[_0x13227c(0x18f)](_0x2282b0[_0x13227c(0x2c5)][_0x13227c(0x215)]),_0x46b575=_0x1134f0[_0x13227c(0x16b)],_0xcff5ce=_0x2282b0[_0x13227c(0x16b)];}_0x144cb0['setUndoRedoMutationParamsCache']({'undoCache':_0x2dda96,'redoCache':_0x1be4e9});}[_0x4885bf(0x2de)](_0x1e99cc){const _0x265279=_0x4885bf,{unitID:_0x5cbe50}=_0x1e99cc,_0x470b2e=this[_0x265279(0x342)][_0x265279(0x1c4)](_0x5cbe50)['with'](p[_0x265279(0xb2)]),_0x2deb81=_0x470b2e[_0x265279(0xbc)]();if(_0x2deb81==null)return;const _0x37a406=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e99cc[_0x265279(0x143)],'actions':null,'textRanges':[_0x2deb81]}}],_0x4b3b62=this[_0x265279(0x148)][_0x265279(0x1f8)](_0x1e99cc,_0x37a406);if(!g[_0x265279(0x117)](_0x4b3b62))throw _0x4b3b62[_0x265279(0x1d5)];const _0x99c3e6=_0x4b3b62[_0x265279(0x2c5)][0x0]['params'][_0x265279(0x122)];Array[_0x265279(0x2cd)](_0x99c3e6)&&_0x99c3e6[_0x265279(0x12a)]&&_0x470b2e[_0x265279(0x163)](_0x99c3e6[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x4885bf(0xee)],Gt=(_0x21ce5b,_0x543a1b,_0x3c9d57,_0x4a3244)=>{const _0x479f3b=_0x4885bf;for(var _0x5a01db=_0x4a3244>0x1?void 0x0:_0x4a3244?Vt(_0x543a1b,_0x3c9d57):_0x543a1b,_0x677d8c=_0x21ce5b[_0x479f3b(0x12a)]-0x1,_0x453ebc;_0x677d8c>=0x0;_0x677d8c--)(_0x453ebc=_0x21ce5b[_0x677d8c])&&(_0x5a01db=_0x453ebc(_0x5a01db)||_0x5a01db);return _0x5a01db;},Ie=(_0x5c4d1d,_0xbefc05)=>(_0x103719,_0x1212a2)=>_0xbefc05(_0x103719,_0x1212a2,_0x5c4d1d);let te=class{constructor(_0x18ea12,_0x394b16,_0x35d377){const _0xe6f19=_0x4885bf;this[_0xe6f19(0x17e)]=_0x18ea12,this['_transformService']=_0x394b16,this[_0xe6f19(0x24b)]=_0x35d377;}[_0x4885bf(0x10c)](_0x3eb7ac){const _0x245bdb=_0x4885bf;this[_0x245bdb(0x218)](_0x3eb7ac);}[_0x4885bf(0x2d6)](_0x48721e){const _0x5c210a=_0x4885bf,{unitID:_0x30f9ee}=_0x48721e,{collaboration:_0x6195f4}=this[_0x5c210a(0x24b)][_0x5c210a(0x181)](_0x30f9ee);if(_0x6195f4[_0x5c210a(0x12a)]===0x0)return _0x48721e;let _0xe0d423=a[_0x5c210a(0xe3)][_0x5c210a(0x149)](_0x48721e[_0x5c210a(0x110)][0x0]);for(let _0x2691b8=0x0;_0x2691b8<_0x6195f4['length'];_0x2691b8++){const _0x57fbc6={'id':_0x5c210a(0x2d0),'params':{'unitId':_0x6195f4[_0x2691b8][_0x5c210a(0x276)],..._0x6195f4[_0x2691b8][_0x5c210a(0x2bf)]}},_0x6071c6=this[_0x5c210a(0x148)][_0x5c210a(0x293)](_0xe0d423,_0x57fbc6,!0x1);if(g['isTransformMutationFailure'](_0x6071c6))throw _0x6071c6[_0x5c210a(0x1d5)];_0xe0d423=_0x6071c6[_0x5c210a(0x16b)];}return{...a[_0x5c210a(0xe3)]['deepClone'](_0x48721e),'mutations':[_0xe0d423]};}[_0x4885bf(0x218)](_0x2e1401){const _0x35afc0=_0x4885bf,{unitID:_0x1aee32}=_0x2e1401,{history:_0x485f00,collaboration:_0x57d5df}=this[_0x35afc0(0x24b)][_0x35afc0(0x181)](_0x1aee32);if(_0x485f00['length']===0x0&&_0x57d5df['length']===0x0)return;const _0x567774=[],_0x1af50b=[];let _0xf9bcf8=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]),_0x256ad1=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]);for(let _0x1477a2=_0x485f00[_0x35afc0(0x12a)]-0x1;_0x1477a2>=0x0;_0x1477a2--){const _0x23094b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x485f00[_0x1477a2][_0x35afc0(0x276)],..._0x485f00[_0x1477a2][_0x35afc0(0x1dc)]}},_0x45531a={'id':_0x35afc0(0x2d0),'params':{'unitId':_0x485f00[_0x1477a2][_0x35afc0(0x276)],..._0x485f00[_0x1477a2]['redoState']}},_0x26023c=this['_transformService'][_0x35afc0(0x293)](_0xf9bcf8,_0x23094b,!0x1),_0x26af69=this[_0x35afc0(0x148)]['transformMutation'](_0x256ad1,_0x45531a,!0x1);if(g['isTransformMutationFailure'](_0x26023c))throw _0x26023c[_0x35afc0(0x1d5)];if(g[_0x35afc0(0x2b6)](_0x26af69))throw _0x26af69['error'];_0x567774[_0x35afc0(0x18f)]({..._0x485f00[_0x1477a2],'undoState':_0x26023c[_0x35afc0(0x2c5)][_0x35afc0(0x215)],'redoState':_0x26af69[_0x35afc0(0x2c5)]['params']}),_0xf9bcf8=_0x26023c['m1Prime'],_0x256ad1=_0x26af69[_0x35afc0(0x16b)];}_0xf9bcf8=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]),_0x256ad1=a[_0x35afc0(0xe3)]['deepClone'](_0x2e1401[_0x35afc0(0x110)][0x0]);for(let _0x37130e=_0x57d5df[_0x35afc0(0x12a)]-0x1;_0x37130e>=0x0;_0x37130e--){const _0x1a70e3={'id':_0x35afc0(0x2d0),'params':{'unitId':_0x57d5df[_0x37130e]['unitId'],..._0x57d5df[_0x37130e][_0x35afc0(0x1dc)]}},_0x3f5789={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57d5df[_0x37130e][_0x35afc0(0x276)],..._0x57d5df[_0x37130e]['redoState']}},_0x25f400=this[_0x35afc0(0x148)][_0x35afc0(0x293)](_0xf9bcf8,_0x1a70e3,!0x1),_0x1be746=this['_transformService'][_0x35afc0(0x293)](_0x256ad1,_0x3f5789,!0x1);if(g[_0x35afc0(0x2b6)](_0x25f400))throw _0x25f400[_0x35afc0(0x1d5)];if(g[_0x35afc0(0x2b6)](_0x1be746))throw _0x1be746['error'];_0x1af50b[_0x35afc0(0x18f)]({..._0x57d5df[_0x37130e],'undoState':_0x25f400['m2Prime'][_0x35afc0(0x215)],'redoState':_0x1be746[_0x35afc0(0x2c5)][_0x35afc0(0x215)]}),_0xf9bcf8=_0x25f400[_0x35afc0(0x16b)],_0x256ad1=_0x1be746[_0x35afc0(0x16b)];}this[_0x35afc0(0x24b)][_0x35afc0(0x233)](_0x1aee32,{'history':_0x567774,'collaboration':_0x1af50b});}};te=Gt([Ie(0x0,a['Inject'](a[_0x4885bf(0x199)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x4885bf(0xe0)](p[_0x4885bf(0x244)]))],te);var Xt=Object[_0x4885bf(0xee)],Kt=(_0x45a734,_0x1b0554,_0x3ff6c9,_0x5981ef)=>{const _0x172a03=_0x4885bf;for(var _0x486065=_0x5981ef>0x1?void 0x0:_0x5981ef?Xt(_0x1b0554,_0x3ff6c9):_0x1b0554,_0x27c4d1=_0x45a734[_0x172a03(0x12a)]-0x1,_0x149925;_0x27c4d1>=0x0;_0x27c4d1--)(_0x149925=_0x45a734[_0x27c4d1])&&(_0x486065=_0x149925(_0x486065)||_0x486065);return _0x486065;},Pe=(_0x145db4,_0x55698a)=>(_0x26c816,_0x368a58)=>_0x55698a(_0x26c816,_0x368a58,_0x145db4);let se=class{constructor(_0x43d244,_0x6cbeb){const _0x2834b0=_0x4885bf;this[_0x2834b0(0x17e)]=_0x43d244,this[_0x2834b0(0x148)]=_0x6cbeb;}[_0x4885bf(0x202)](_0xb59212){const _0x56f5ca=_0x4885bf;var _0x220248;const _0x7ee17a=this[_0x56f5ca(0x17e)][_0x56f5ca(0x1b8)](V[_0x56f5ca(0xe6)]),_0x513a68=(_0x220248=_0x7ee17a[_0x56f5ca(0x263)]())!=null?_0x220248:[];if(_0x513a68[_0x56f5ca(0x12a)]===0x0)return;const _0x5b8d62=_0xb59212[_0x56f5ca(0x143)],_0x39b64c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5b8d62,'actions':null,'textRanges':_0x513a68}}],_0x59fee2=this[_0x56f5ca(0x148)][_0x56f5ca(0x1f8)](_0xb59212,_0x39b64c);if(!g['isTransformMutationsWithChangesetSuccess'](_0x59fee2))throw _0x59fee2[_0x56f5ca(0x1d5)];const _0x54b3f2=_0x59fee2[_0x56f5ca(0x2c5)][0x0][_0x56f5ca(0x215)][_0x56f5ca(0x122)];Array[_0x56f5ca(0x2cd)](_0x54b3f2)&&_0x54b3f2[_0x56f5ca(0x12a)]&&_0x7ee17a[_0x56f5ca(0x275)](_0x54b3f2,{'unitId':_0x5b8d62,'subUnitId':_0x5b8d62},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x4885bf(0x199)])),Pe(0x1,g[_0x4885bf(0x29a)])],se);var qt=Object[_0x4885bf(0xee)],zt=(_0x4bd1e2,_0x41b40c,_0x14db13,_0xae68d6)=>{const _0x405299=_0x4885bf;for(var _0x11fdfb=_0xae68d6>0x1?void 0x0:_0xae68d6?qt(_0x41b40c,_0x14db13):_0x41b40c,_0x5162cf=_0x4bd1e2[_0x405299(0x12a)]-0x1,_0x50ad8d;_0x5162cf>=0x0;_0x5162cf--)(_0x50ad8d=_0x4bd1e2[_0x5162cf])&&(_0x11fdfb=_0x50ad8d(_0x11fdfb)||_0x11fdfb);return _0x11fdfb;},N=(_0xe471ae,_0x4c5f01)=>(_0x2d4a00,_0x1260c4)=>_0x4c5f01(_0x2d4a00,_0x1260c4,_0xe471ae);let ie=class extends a['Disposable']{constructor(_0x5c8103,_0x24092b,_0x220d8a,_0x448a24,_0x52dafe,_0xae90e4,_0x28c7a4,_0x4c3389){const _0x2199ba=_0x4885bf;super(),_(this,_0x2199ba(0x14d),new I['BehaviorSubject'](u[_0x2199ba(0x30d)][_0x2199ba(0x333)])),(this[_0x2199ba(0x24b)]=_0x5c8103,this[_0x2199ba(0x136)]=_0x24092b,this['_docTransformIMECacheService']=_0x220d8a,this[_0x2199ba(0x27a)]=_0x448a24,this['_docTransformSelectionsService']=_0x52dafe,this[_0x2199ba(0x190)]=_0xae90e4,this[_0x2199ba(0x19a)]=_0x28c7a4,this[_0x2199ba(0x1ac)]=_0x4c3389,this[_0x2199ba(0x19c)]());}[_0x4885bf(0x19c)](){const _0x135742=_0x4885bf;this[_0x135742(0x354)](this[_0x135742(0x136)][_0x135742(0xb3)][_0x135742(0x22c)](_0x24db24=>{const _0x5aecc4=_0x135742,_0x468f68=this[_0x5aecc4(0x24b)][_0x5aecc4(0x1bc)][_0x5aecc4(0x22c)](_0x3c78de=>{const _0x293bde=_0x5aecc4;if(_0x3c78de==null)return;const {unitId:_0x4a706f,redoState:_0x3e7f67,commandId:_0x54e81a}=_0x3c78de;if(_0x4a706f!==_0x24db24['unitID'])return;const _0x5b9b58={'id':_0x54e81a,'type':a['CommandType'][_0x293bde(0x292)],'params':{'unitId':_0x4a706f,'actions':_0x3e7f67[_0x293bde(0x24c)],'textRanges':null}};_0x24db24[_0x293bde(0x32c)](_0x5b9b58);});if(_0x24db24['disposeWithMe'](_0x468f68),_0x24db24 instanceof u['DocCollaborationEntity']){const _0x5c2a61={'onTransformIME':_0x36b0f5=>this[_0x5aecc4(0x315)]['transformIMECache'](_0x36b0f5),'onTransformState':_0x52b611=>this['_docTransformStateCacheService'][_0x5aecc4(0x10c)](_0x52b611),'onTransformSelections':_0x26aa09=>this[_0x5aecc4(0x2e6)][_0x5aecc4(0x202)](_0x26aa09),'onSyncEditingCollabCursor':_0x2cfd77=>this[_0x5aecc4(0x190)][_0x5aecc4(0x285)](_0x2cfd77),'onTransformRemoteChangesetByIMECache':_0x1f9a40=>this['_docTransformIMECacheService'][_0x5aecc4(0x2d6)](_0x1f9a40),'onTransformRemoteChangesetByStateCache':_0x2d4051=>this[_0x5aecc4(0x27a)][_0x5aecc4(0x2d6)](_0x2d4051)};_0x24db24['addHandlerCallback'](_0x5c2a61);}}));}};ie=zt([N(0x0,a['Inject'](p[_0x4885bf(0x244)])),N(0x1,a[_0x4885bf(0xe0)](u[_0x4885bf(0x357)])),N(0x2,a[_0x4885bf(0xe0)](ee)),N(0x3,a[_0x4885bf(0xe0)](te)),N(0x4,a[_0x4885bf(0xe0)](se)),N(0x5,a['Inject'](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x4885bf(0xe0)](a[_0x4885bf(0xcb)]))],ie);var G=(_0x12104e=>(_0x12104e[_0x12104e[_0x4885bf(0x314)]=0x0]=_0x4885bf(0x314),_0x12104e[_0x12104e['OK']=0x1]='OK',_0x12104e[_0x12104e[_0x4885bf(0xf8)]=0x2]=_0x4885bf(0xf8),_0x12104e[_0x12104e[_0x4885bf(0xab)]=0x3]=_0x4885bf(0xab),_0x12104e[_0x12104e[_0x4885bf(0x309)]=0x4]=_0x4885bf(0x309),_0x12104e[_0x12104e[_0x4885bf(0x253)]=0x5]=_0x4885bf(0x253),_0x12104e[_0x12104e[_0x4885bf(0x291)]=0x6]=_0x4885bf(0x291),_0x12104e[_0x12104e['INVALID_ARGUMENT']=0x7]=_0x4885bf(0x33c),_0x12104e[_0x12104e[_0x4885bf(0x1c2)]=0x8]='TOO_MANY_REQUESTS',_0x12104e[_0x12104e['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x12104e[_0x12104e[_0x4885bf(0x225)]=0xa]=_0x4885bf(0x225),_0x12104e[_0x12104e['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x12104e[_0x12104e['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x4885bf(0x178),_0x12104e[_0x12104e[_0x4885bf(0x2d8)]=0xd]=_0x4885bf(0x2d8),_0x12104e[_0x12104e[_0x4885bf(0xfe)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x12104e[_0x12104e[_0x4885bf(0x298)]=0xf]=_0x4885bf(0x298),_0x12104e[_0x12104e[_0x4885bf(0x1ba)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x12104e[_0x12104e[_0x4885bf(0xcc)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x12104e[_0x12104e['ERROR_AGAIN']=0x65]=_0x4885bf(0x158),_0x12104e[_0x12104e[_0x4885bf(0xac)]=0xc9]=_0x4885bf(0xac),_0x12104e[_0x12104e[_0x4885bf(0x91)]=0xca]='USER_IS_ANONYMOUS',_0x12104e[_0x12104e[_0x4885bf(0x329)]=0x1389]=_0x4885bf(0x329),_0x12104e[_0x12104e[_0x4885bf(0x176)]=0x1771]=_0x4885bf(0x176),_0x12104e[_0x12104e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4885bf(0x278),_0x12104e[_0x12104e[_0x4885bf(0x131)]=0x1773]=_0x4885bf(0x131),_0x12104e[_0x12104e['APPLY_REJECT']=0x1b59]=_0x4885bf(0xef),_0x12104e[_0x12104e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4885bf(0x334),_0x12104e[_0x12104e[_0x4885bf(0xfa)]=0x1b5b]=_0x4885bf(0xfa),_0x12104e[_0x12104e[_0x4885bf(0x1ad)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x12104e[_0x12104e[_0x4885bf(0x33b)]=0x1b5d]='APPLY_DUPLICATED',_0x12104e[_0x12104e[_0x4885bf(0x93)]=0x1f41]=_0x4885bf(0x93),_0x12104e[_0x12104e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x12104e[_0x12104e[_0x4885bf(0x25c)]=0x232a]=_0x4885bf(0x25c),_0x12104e[_0x12104e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4885bf(0x2be),_0x12104e[_0x12104e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4885bf(0x9e),_0x12104e[_0x12104e[_0x4885bf(0x1fd)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x12104e[_0x12104e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4885bf(0x24e),_0x12104e[_0x12104e[_0x4885bf(0x234)]=0x2712]=_0x4885bf(0x234),_0x12104e[_0x12104e[_0x4885bf(0x22a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x12104e[_0x12104e[_0x4885bf(0x2d3)]=0x2714]=_0x4885bf(0x2d3),_0x12104e[_0x12104e[_0x4885bf(0x130)]=0x271a]=_0x4885bf(0x130),_0x12104e[_0x12104e[_0x4885bf(0x1d6)]=0x271b]=_0x4885bf(0x1d6),_0x12104e[_0x12104e[_0x4885bf(0x248)]=0x271c]=_0x4885bf(0x248),_0x12104e[_0x12104e['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4885bf(0x282),_0x12104e[_0x12104e[_0x4885bf(0xbf)]=0x271e]=_0x4885bf(0xbf),_0x12104e[_0x12104e[_0x4885bf(0x1b6)]=0x271f]=_0x4885bf(0x1b6),_0x12104e[_0x12104e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4885bf(0x280),_0x12104e[_0x12104e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x12104e[_0x12104e[_0x4885bf(0x113)]=0x2ee1]=_0x4885bf(0x113),_0x12104e[_0x12104e[_0x4885bf(0x8f)]=0x2ee2]=_0x4885bf(0x8f),_0x12104e[_0x12104e[_0x4885bf(0x154)]=0x2ee3]=_0x4885bf(0x154),_0x12104e[_0x12104e[_0x4885bf(0x2b3)]=0x2ee4]=_0x4885bf(0x2b3),_0x12104e[_0x12104e['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x12104e[_0x12104e[_0x4885bf(0x245)]=0x32c9]=_0x4885bf(0x245),_0x12104e[_0x12104e[_0x4885bf(0x9a)]=0x32ca]=_0x4885bf(0x9a),_0x12104e[_0x12104e[_0x4885bf(0x1ee)]=0x32cb]=_0x4885bf(0x1ee),_0x12104e[_0x12104e['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x4885bf(0xfd),_0x12104e[_0x12104e[_0x4885bf(0x170)]=0x36b2]=_0x4885bf(0x170),_0x12104e[_0x12104e[_0x4885bf(0x23e)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x12104e[_0x12104e['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x4885bf(0x262),_0x12104e[_0x12104e[_0x4885bf(0x272)]=0x3715]=_0x4885bf(0x272),_0x12104e[_0x12104e[_0x4885bf(0x11f)]=0x3716]=_0x4885bf(0x11f),_0x12104e[_0x12104e[_0x4885bf(0x20e)]=0x3717]=_0x4885bf(0x20e),_0x12104e[_0x12104e[_0x4885bf(0x1e9)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x12104e[_0x12104e['REDEMPTION_INVALID_CODE']=0x3a99]=_0x4885bf(0x1d1),_0x12104e[_0x12104e['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x4885bf(0x346),_0x12104e[_0x12104e[_0x4885bf(0xa5)]=0x3a9b]=_0x4885bf(0xa5),_0x12104e[_0x12104e['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x4885bf(0x2fe),_0x12104e[_0x12104e[_0x4885bf(0x24d)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x12104e[_0x12104e[_0x4885bf(0x2b7)]=0x3a9e]=_0x4885bf(0x2b7),_0x12104e[_0x12104e[_0x4885bf(0x231)]=0x3a9f]=_0x4885bf(0x231),_0x12104e[_0x12104e[_0x4885bf(0x2f9)]=0x3e81]=_0x4885bf(0x2f9),_0x12104e[_0x12104e[_0x4885bf(0x352)]=-0x1]=_0x4885bf(0x352),_0x12104e))(G||{});function Jt(_0x59a988){const _0x587a7a=_0x4885bf;var _0xeca54c,_0x18009d;const _0x3a9040=(_0xeca54c=_0x59a988[_0x587a7a(0x20b)])==null?void 0x0:_0xeca54c[_0x587a7a(0x24a)],_0x375b93=((_0x18009d=_0x59a988[_0x587a7a(0x20b)])==null?void 0x0:_0x18009d[_0x587a7a(0x2c0)])||0x0;return _0x3a9040===B[_0x587a7a(0x18a)][_0x587a7a(0xca)]&&_0x375b93>0x0;}function Zt(_0x591010){const _0x2e38eb=_0x4885bf;return _0x591010[_0x2e38eb(0x356)]===B[_0x2e38eb(0x2ff)][_0x2e38eb(0x2f8)];}var Qt=Object[_0x4885bf(0xee)],es=(_0x40e0ac,_0x317692,_0x35023b,_0x50a8c2)=>{for(var _0x2e937e=_0x50a8c2>0x1?void 0x0:_0x50a8c2?Qt(_0x317692,_0x35023b):_0x317692,_0xab1f23=_0x40e0ac['length']-0x1,_0x2329c0;_0xab1f23>=0x0;_0xab1f23--)(_0x2329c0=_0x40e0ac[_0xab1f23])&&(_0x2e937e=_0x2329c0(_0x2e937e)||_0x2e937e);return _0x2e937e;},L=(_0x5221bc,_0x5676a1)=>(_0x52cc13,_0x5b4a12)=>_0x5676a1(_0x52cc13,_0x5b4a12,_0x5221bc);const ts=_0x4885bf(0x165),ss=_0x4885bf(0x162),is=_0x4885bf(0x1e6);let ne=class extends a[_0x4885bf(0x1b2)]{constructor(_0x410271,_0x409da3,_0x33b8b2,_0x47f0b5,_0x210489,_0x5193ec,_0xbec6c6){const _0x12ee15=_0x4885bf;super(),_(this,_0x12ee15(0x279),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x12ee15(0x249),0x0),_(this,_0x12ee15(0x200),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x12ee15(0x19a)]=_0x410271,this['_commandService']=_0x409da3,this['_configService']=_0x33b8b2,this[_0x12ee15(0x195)]=_0x47f0b5,this['_univerInstanceService']=_0x210489,this[_0x12ee15(0x1ed)]=_0x5193ec,this['_localeService']=_0xbec6c6,this[_0x12ee15(0x237)]());}[_0x4885bf(0x237)](){const _0x5e7823=_0x4885bf;this[_0x5e7823(0x354)](this[_0x5e7823(0x26a)][_0x5e7823(0x18d)]((_0x51e24a,_0x12bd61)=>{const _0x22ff3b=_0x5e7823;var _0x12410a;if(_0x51e24a['id']!==B[_0x22ff3b(0x156)]['id'])return;const _0x2c260c=_0x51e24a[_0x22ff3b(0x215)];if(!this['_hasFormulaInDirtyRanges']((_0x12410a=_0x2c260c[_0x22ff3b(0x1eb)])!=null?_0x12410a:[]))return;if(!this[_0x22ff3b(0x31a)]())throw this[_0x22ff3b(0x127)](_0x51e24a,_0x12bd61),this[_0x22ff3b(0x312)](),new a[(_0x22ff3b(0x10a))]();})),this[_0x5e7823(0x354)](this[_0x5e7823(0x26a)]['onCommandExecuted']((_0x4289b7,_0x53510a)=>{const _0x27e012=_0x5e7823;if(_0x4289b7['id']!==B[_0x27e012(0x2bc)]['id'])return;const _0x7367bd=_0x4289b7[_0x27e012(0x215)];if(Jt(_0x7367bd)){const _0x48a5e2=a[_0x27e012(0x2f0)]();this[_0x27e012(0x200)][_0x27e012(0x33a)](_0x48a5e2),this[_0x27e012(0x341)](_0x48a5e2);}else{if(Zt(_0x7367bd)&&this[_0x27e012(0x200)][_0x27e012(0x12a)]>0x0){const _0x12af93=this['_taskIds']['shift']();this[_0x27e012(0x206)](_0x12af93);}}}));}[_0x4885bf(0xcf)](){const _0x422101=_0x4885bf;super[_0x422101(0xcf)](),this[_0x422101(0x145)](),this[_0x422101(0x200)]=[],this[_0x422101(0x249)]=0x0,this[_0x422101(0xfb)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x318813,_0x6f08e4){const _0x524a62=_0x4885bf;for(let _0x3f4fb7=0x0;_0x3f4fb7<0x1e;_0x3f4fb7++)try{if(await this['_getFormulaLimitStatus'](),this[_0x524a62(0x31a)]()){this[_0x524a62(0x337)](_0x318813,_0x6f08e4),this[_0x524a62(0x19a)]['show']({'content':this[_0x524a62(0x1ac)]['t'](_0x524a62(0x10b)),'type':T[_0x524a62(0x1d8)]['Success']});return;}await new Promise(_0x10804a=>{const _0x318dc8=_0x524a62;this[_0x318dc8(0x279)]=window[_0x318dc8(0x2f7)](_0x10804a,0x3e8);});}catch(_0x5d24a0){this[_0x524a62(0x1ed)]['error'](_0x5d24a0);}this[_0x524a62(0x19a)]['show']({'content':this[_0x524a62(0x1ac)]['t']('formula.calculation.unable'),'type':T[_0x524a62(0x1d8)][_0x524a62(0xf7)]});}[_0x4885bf(0x337)](_0xd1a25c,_0x3887d3){const _0x385f1d=_0x4885bf;try{this[_0x385f1d(0x26a)][_0x385f1d(0x306)](_0xd1a25c['id'],_0xd1a25c[_0x385f1d(0x215)],_0x3887d3);}catch(_0x1af75a){this['_logService'][_0x385f1d(0x1d5)](_0x1af75a);}}[_0x4885bf(0x119)](_0x174927,_0x28d817){const _0x4a6529=_0x4885bf;_0x28d817<this[_0x4a6529(0x32d)]||(this[_0x4a6529(0x32d)]=_0x28d817,this[_0x4a6529(0xfb)]=Number[_0x4a6529(0x34e)](_0x174927[_0x4a6529(0x1a9)]),this['_currentUsage']=Number[_0x4a6529(0x34e)](_0x174927[_0x4a6529(0x26f)]));}async['_startCalculationLimit'](_0x17f0d3){const _0x3be1c0=_0x4885bf;var _0x22bd09,_0x3396e5;const _0xd72d08=Date[_0x3be1c0(0x115)]();try{const _0x201ed5=((_0x22bd09=this['_configService'][_0x3be1c0(0x2c7)](u[_0x3be1c0(0x324)]))==null?void 0x0:_0x22bd09[_0x3be1c0(0xed)])||ss,_0x1e5594=(await this['_httpService'][_0x3be1c0(0x17c)](_0x201ed5,{'body':JSON[_0x3be1c0(0x192)]({'taskId':_0x17f0d3})}))[_0x3be1c0(0x26e)];if(((_0x3396e5=_0x1e5594[_0x3be1c0(0x1d5)])==null?void 0x0:_0x3396e5[_0x3be1c0(0x226)])!==G['OK'])return;this[_0x3be1c0(0x119)](_0x1e5594[_0x3be1c0(0x242)],_0xd72d08);}catch(_0x69a948){this[_0x3be1c0(0x1ed)][_0x3be1c0(0x1d5)](_0x69a948);}}async[_0x4885bf(0x1b5)](_0x3b4fdd){const _0x128a72=_0x4885bf;var _0x4c1010,_0x170384;const _0x5018ac=Date[_0x128a72(0x115)]();try{const _0x9dcd3b=((_0x4c1010=this[_0x128a72(0x2e5)][_0x128a72(0x2c7)](u[_0x128a72(0x324)]))==null?void 0x0:_0x4c1010[_0x128a72(0x227)])||ts,_0x30d94a=_0x3b4fdd?_0x9dcd3b+'?taskId='+encodeURIComponent(_0x3b4fdd):_0x9dcd3b,_0x5c5cc3=(await this[_0x128a72(0x195)][_0x128a72(0x1b8)](_0x30d94a))['body'];if(((_0x170384=_0x5c5cc3[_0x128a72(0x1d5)])==null?void 0x0:_0x170384[_0x128a72(0x226)])!==G['OK'])return;this[_0x128a72(0x119)](_0x5c5cc3[_0x128a72(0x242)],_0x5018ac);}catch(_0x3890d2){this[_0x128a72(0x1ed)][_0x128a72(0x1d5)](_0x3890d2);}}async['_releaseCalculationLimit'](_0x3a255f){const _0x26b3f0=_0x4885bf;var _0x2d0845,_0x243206;const _0x43c54d=Date[_0x26b3f0(0x115)]();try{const _0x277af3=((_0x2d0845=this['_configService'][_0x26b3f0(0x2c7)](u[_0x26b3f0(0x324)]))==null?void 0x0:_0x2d0845['releaseFormulaLimitUrl'])||is,_0x6f935b=(await this['_httpService'][_0x26b3f0(0x17c)](_0x277af3,{'body':JSON[_0x26b3f0(0x192)]({'taskId':_0x3a255f})}))[_0x26b3f0(0x26e)];if(((_0x243206=_0x6f935b[_0x26b3f0(0x1d5)])==null?void 0x0:_0x243206[_0x26b3f0(0x226)])!==G['OK'])return;this[_0x26b3f0(0x119)](_0x6f935b[_0x26b3f0(0x242)],_0x43c54d);}catch(_0x453e85){this[_0x26b3f0(0x1ed)][_0x26b3f0(0x1d5)](_0x453e85);}}['_checkCalculationAvailable'](){const _0x518a35=_0x4885bf;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x518a35(0xfb)]-this['_currentUsage']>0x0;}[_0x4885bf(0x145)](){const _0x4b9856=_0x4885bf;this[_0x4b9856(0x279)]&&(clearTimeout(this[_0x4b9856(0x279)]),this[_0x4b9856(0x279)]=null);}[_0x4885bf(0x312)](){const _0x4d8ad5=_0x4885bf;this[_0x4d8ad5(0x19a)][_0x4d8ad5(0x9f)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T['MessageType'][_0x4d8ad5(0x2e4)]});}[_0x4885bf(0x35a)](_0x2a5a10){const _0x2a9317=_0x4885bf;for(const _0x4d3f81 of _0x2a5a10){const {unitId:_0x5117b9,sheetId:_0x6819f4,range:_0x2596aa}=_0x4d3f81,_0x1bf162=this['_univerInstanceService'][_0x2a9317(0x361)](_0x5117b9);if(!_0x1bf162)continue;const _0x2f59b2=_0x1bf162[_0x2a9317(0x2e2)](_0x6819f4);if(!_0x2f59b2)continue;const _0x5e4fc9=_0x2f59b2['getCellMatrix']();for(let _0x3d9a7c=_0x2596aa[_0x2a9317(0x261)];_0x3d9a7c<=_0x2596aa['endRow'];_0x3d9a7c++)for(let _0x5798c2=_0x2596aa[_0x2a9317(0x17b)];_0x5798c2<=_0x2596aa[_0x2a9317(0x2a7)];_0x5798c2++){const _0x492a7c=_0x5e4fc9[_0x2a9317(0x1cf)](_0x3d9a7c,_0x5798c2);if(_0x492a7c&&(a[_0x2a9317(0x1c8)](_0x492a7c['f'])||a['isFormulaId'](_0x492a7c['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4885bf(0xe0)](O[_0x4885bf(0x255)])),L(0x1,a[_0x4885bf(0x2a2)]),L(0x2,a[_0x4885bf(0x1f2)]),L(0x3,a[_0x4885bf(0xe0)](x[_0x4885bf(0x358)])),L(0x4,a[_0x4885bf(0x2b8)]),L(0x5,a[_0x4885bf(0x15f)]),L(0x6,a[_0x4885bf(0xe0)](a['LocaleService']))],ne);var ns=Object[_0x4885bf(0xee)],rs=(_0x41833a,_0x11a070,_0xfce2c3,_0x3cdf3d)=>{const _0x36ce85=_0x4885bf;for(var _0x1c49f2=_0x3cdf3d>0x1?void 0x0:_0x3cdf3d?ns(_0x11a070,_0xfce2c3):_0x11a070,_0x16650e=_0x41833a[_0x36ce85(0x12a)]-0x1,_0x2aa722;_0x16650e>=0x0;_0x16650e--)(_0x2aa722=_0x41833a[_0x16650e])&&(_0x1c49f2=_0x2aa722(_0x1c49f2)||_0x1c49f2);return _0x1c49f2;},de=(_0x30fa77,_0x2137c9)=>(_0x2e548c,_0x7ee117)=>_0x2137c9(_0x2e548c,_0x7ee117,_0x30fa77);let pe=class extends a[_0x4885bf(0x1b2)]{constructor(_0x74df3a,_0x2f9593,_0x55d2cb){const _0x22b5f4=_0x4885bf;super(),_(this,_0x22b5f4(0x224),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x22b5f4(0x2e5)]=_0x74df3a,this[_0x22b5f4(0x196)]=_0x2f9593,this[_0x22b5f4(0xa1)]=_0x55d2cb);}[_0x4885bf(0x138)](){this['_disabled']=!0x0;}[_0x4885bf(0x13f)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x5d8dee=_0x4885bf;return this[_0x5d8dee(0x299)];}[_0x4885bf(0xcf)](){const _0x383c3e=_0x4885bf;this[_0x383c3e(0x152)]()[_0x383c3e(0x180)](()=>super[_0x383c3e(0xcf)]());}async[_0x4885bf(0x1e2)](_0x2a1f45){const _0x4350eb=_0x4885bf;return this[_0x4350eb(0x15d)]?null:this['_localStorageService'][_0x4350eb(0x10e)](u[_0x4350eb(0x344)](_0x2a1f45));}async[_0x4885bf(0x340)](_0x51dcfe,_0x5bedd3){const _0x5ba1a5=_0x4885bf;return!!this[_0x5ba1a5(0x196)][_0x5ba1a5(0x1b0)](_0x51dcfe,_0x5bedd3);}['updateOfflineData'](_0x2db197,_0x4d0f06,_0xe5b814,_0x116057){const _0x3fc0a2=_0x4885bf,_0x40ddc4=this[_0x3fc0a2(0xa1)][_0x3fc0a2(0x303)](_0x2db197);this[_0x3fc0a2(0x224)][_0x3fc0a2(0x219)](_0x2db197,{'unitID':_0x2db197,'type':_0x4d0f06,'awaitingChangeset':_0xe5b814,'mutations':_0x116057,'rev':_0x40ddc4}),this[_0x3fc0a2(0x299)][_0x3fc0a2(0x11b)](_0x2db197)||this[_0x3fc0a2(0x30a)](_0x2db197);}[_0x4885bf(0x30a)](_0x19d8e6){const _0x13e57f=_0x4885bf,_0x591634=this[_0x13e57f(0x1a2)]();_0x591634===0x0?this['_saveCache'](_0x19d8e6):this['_saveTaskMap'][_0x13e57f(0x219)](_0x19d8e6,setTimeout(()=>this[_0x13e57f(0x17d)](_0x19d8e6),_0x591634));}['_getSaveTimeout'](){const _0x168a02=_0x4885bf;var _0x40cd6b;return(_0x40cd6b=this[_0x168a02(0x2e5)]['getConfig'](u[_0x168a02(0x108)]))!=null?_0x40cd6b:u['LOCAL_CACHE_INTERVAL'];}[_0x4885bf(0x17d)](_0x12f76c){const _0xf8c1a1=_0x4885bf,_0x151e1d=this['_saveTaskMap'][_0xf8c1a1(0x1b8)](_0x12f76c);return _0x151e1d!==void 0x0&&window[_0xf8c1a1(0x2cc)](_0x151e1d),this['_localStorageService']['setItem'](u['getLocalCacheKey'](_0x12f76c),this[_0xf8c1a1(0x224)][_0xf8c1a1(0x1b8)](_0x12f76c))[_0xf8c1a1(0x180)](()=>this[_0xf8c1a1(0x299)]['delete'](_0x12f76c));}async[_0x4885bf(0x152)](){const _0x38a20b=_0x4885bf,_0x4c3e94=[];this[_0x38a20b(0x299)][_0x38a20b(0x28d)]((_0x3153e6,_0x1f5364)=>{const _0x13d381=_0x38a20b;window['clearTimeout'](_0x3153e6),_0x4c3e94[_0x13d381(0x33a)](this[_0x13d381(0x17d)](_0x1f5364)[_0x13d381(0x180)](()=>{const _0x1163c7=_0x13d381;this[_0x1163c7(0x299)][_0x1163c7(0x2a1)](_0x1f5364);}));}),await Promise[_0x38a20b(0xec)](_0x4c3e94);}};pe=rs([de(0x0,a['IConfigService']),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x4885bf(0xe0)](g[_0x4885bf(0x205)]))],pe);class ke extends a[_0x4885bf(0x1aa)]{constructor(){const _0x99e350=_0x4885bf;super(),_(this,'urlChange$'),this[_0x99e350(0xd8)]=I['fromEvent'](window,_0x99e350(0x2bd))[_0x99e350(0x153)](I[_0x99e350(0x268)](this['dispose$']),I[_0x99e350(0x2ca)](0x1),I[_0x99e350(0x1f0)](void 0x0));}[_0x4885bf(0x185)](_0xa6d63e,_0x3dd023,_0x7a6405=!0x1){const _0x2580a5=_0x4885bf,_0x434541=new URL(window[_0x2580a5(0x193)]['href']);_0x434541[_0x2580a5(0x17f)][_0x2580a5(0x219)](_0xa6d63e,_0x3dd023),_0x7a6405?window['history']['replaceState']('','',_0x434541[_0x2580a5(0x2a0)]()):window[_0x2580a5(0xe2)][_0x2580a5(0xe1)]('','',_0x434541[_0x2580a5(0x2a0)]());}[_0x4885bf(0x1a0)](_0x5e9398,_0x581764=!0x1){const _0x4c5b65=_0x4885bf,_0x4d1dea=new URL(window['location'][_0x4c5b65(0x23b)]);_0x4d1dea[_0x4c5b65(0x17f)][_0x4c5b65(0x2a1)](_0x5e9398),_0x581764?window[_0x4c5b65(0xe2)][_0x4c5b65(0x351)]('','',_0x4d1dea[_0x4c5b65(0x2a0)]()):window[_0x4c5b65(0xe2)][_0x4c5b65(0xe1)]('','',_0x4d1dea['toString']());}['getParam'](_0x1afde7){const _0x987a12=_0x4885bf;var _0x4f2299;return(_0x4f2299=new URL(window[_0x987a12(0x193)][_0x987a12(0x23b)])[_0x987a12(0x17f)][_0x987a12(0x1b8)](_0x1afde7))!=null?_0x4f2299:void 0x0;}}var os=Object[_0x4885bf(0x1a3)],as=Object[_0x4885bf(0xee)],cs=(_0xd3348e,_0x63a818,_0x4fe204)=>_0x63a818 in _0xd3348e?os(_0xd3348e,_0x63a818,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fe204}):_0xd3348e[_0x63a818]=_0x4fe204,ls=(_0x552987,_0x7007b4,_0x32aaf1,_0x182126)=>{const _0xf0f613=_0x4885bf;for(var _0x45d7cd=_0x182126>0x1?void 0x0:_0x182126?as(_0x7007b4,_0x32aaf1):_0x7007b4,_0x4210c9=_0x552987[_0xf0f613(0x12a)]-0x1,_0x137da4;_0x4210c9>=0x0;_0x4210c9--)(_0x137da4=_0x552987[_0x4210c9])&&(_0x45d7cd=_0x137da4(_0x45d7cd)||_0x45d7cd);return _0x45d7cd;},Se=(_0x5357aa,_0x44ecd0)=>(_0x2db922,_0x3e26c6)=>_0x44ecd0(_0x2db922,_0x3e26c6,_0x5357aa),_s=(_0x16d1de,_0x38ef1e,_0x4928c9)=>cs(_0x16d1de,_0x38ef1e+'',_0x4928c9);const hs=_0x4885bf(0x283);exports[_0x4885bf(0x99)]=class extends a[_0x4885bf(0x2b4)]{constructor(_0x4e55d8=Me,_0xbbde2,_0x392b53,_0xa3252e){const _0x3a4297=_0x4885bf;super(),this['_config']=_0x4e55d8,this[_0x3a4297(0x342)]=_0xbbde2,this[_0x3a4297(0x17e)]=_0x392b53,this[_0x3a4297(0x2e5)]=_0xa3252e;const {..._0xf72047}=a['merge']({},Me,this[_0x3a4297(0x29f)]);this[_0x3a4297(0x2e5)]['setConfig'](Yt,_0xf72047);}[_0x4885bf(0x236)](){const _0x363f87=_0x4885bf;this['_registerDependencies'](),this[_0x363f87(0x2d2)]();}[_0x4885bf(0x1ec)](){const _0xc2f44=_0x4885bf;this[_0xc2f44(0x142)]();}[_0x4885bf(0x1cc)](){const _0x3b8262=_0x4885bf;var _0x105445;const _0x4755b5=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x3b8262(0x326)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':pe}],[exports[_0x3b8262(0x197)]],[ie],[Z],[F],[me],[exports[_0x3b8262(0x161)]]];this['_config'][_0x3b8262(0x1de)]&&_0x4755b5[_0x3b8262(0x33a)]([Q]),a[_0x3b8262(0x2c3)](this[_0x3b8262(0x17e)],a['mergeOverrideWithDependencies'](_0x4755b5,(_0x105445=this[_0x3b8262(0x29f)])==null?void 0x0:_0x105445[_0x3b8262(0x1dd)]));}[_0x4885bf(0x142)](){const _0x2465a8=_0x4885bf;this[_0x2465a8(0x354)](this[_0x2465a8(0x342)]['registerRenderModule'](a[_0x2465a8(0x311)]['UNIVER_DOC'],[Ee])),this[_0x2465a8(0x354)](this[_0x2465a8(0x342)][_0x2465a8(0x97)](a['UniverInstanceType'][_0x2465a8(0x28c)],[Ce]));}[_0x4885bf(0x2d2)](){const _0x1930b2=_0x4885bf;a['touchDependencies'](this[_0x1930b2(0x17e)],[[F],[exports[_0x1930b2(0x197)]],[ie],[Z],[exports[_0x1930b2(0x161)]],[ne]]),this['_config'][_0x1930b2(0x1de)]&&a['touchDependencies'](this['_injector'],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x4885bf(0x208),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x4885bf(0x186)](u[_0x4885bf(0x287)]),Se(0x1,C[_0x4885bf(0x1a4)]),Se(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),Se(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x4885bf(0xee)],Is=(_0x273a17,_0x257e2c,_0x2889d7,_0x305b5d)=>{const _0x41bd53=_0x4885bf;for(var _0x3ab5f4=_0x305b5d>0x1?void 0x0:_0x305b5d?us(_0x257e2c,_0x2889d7):_0x257e2c,_0x2958aa=_0x273a17[_0x41bd53(0x12a)]-0x1,_0x239cf6;_0x2958aa>=0x0;_0x2958aa--)(_0x239cf6=_0x273a17[_0x2958aa])&&(_0x3ab5f4=_0x239cf6(_0x3ab5f4)||_0x3ab5f4);return _0x3ab5f4;},W=(_0x530bfb,_0x23d69f)=>(_0xab5ae2,_0x1feed4)=>_0x23d69f(_0xab5ae2,_0x1feed4,_0x530bfb);exports[_0x4885bf(0x157)]=class extends u[_0x4885bf(0x1ab)]{constructor(_0x12716a,_0x36ea8e,_0x12c40a,_0x4d9064,_0x374c9a){super(_0x12716a,_0x36ea8e,_0x12c40a,_0x4d9064,_0x374c9a);}async[_0x4885bf(0x13b)](_0x4d174b){const _0x4b4147=_0x4885bf,_0x4d6a63=await this[_0x4b4147(0x201)](),_0x43860f=this[_0x4b4147(0x1ea)](_0x4d174b,_0x4d6a63);return this['_doCreateSocket'](_0x43860f);}[_0x4885bf(0x1ea)](_0x3fb81e,_0xf0f27d){const _0x4c116c=_0x4885bf,_0x508559=typeof window>'u'?new URL(_0x3fb81e):new URL(_0x3fb81e,window['location'][_0x4c116c(0xf2)]);_0x508559['searchParams'][_0x4c116c(0x219)]('sessionTicket',_0xf0f27d);const _0x3ee56d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4c116c(0x193)][_0x4c116c(0x243)]);return _0x3ee56d[_0x4c116c(0x1b8)](_0x4c116c(0x171))&&_0x508559[_0x4c116c(0x17f)][_0x4c116c(0x219)](_0x4c116c(0x171),_0x3ee56d[_0x4c116c(0x1b8)](_0x4c116c(0x171))),_0x508559[_0x4c116c(0x2a0)]();}async[_0x4885bf(0x201)](){const _0xf85f=_0x4885bf;var _0x18f849,_0x3e9bc2,_0x102102;const _0x5c93ba=this[_0xf85f(0x2e5)][_0xf85f(0x2c7)](u[_0xf85f(0x324)]),_0x4f05b3=(_0x18f849=_0x5c93ba==null?void 0x0:_0x5c93ba[_0xf85f(0xc7)])!=null?_0x18f849:u[_0xf85f(0x151)];return(_0x102102=(_0x3e9bc2=(await this[_0xf85f(0x195)][_0xf85f(0x1b8)](_0x4f05b3,{'headers':{'Content-Type':_0xf85f(0x102)}}))['body'])==null?void 0x0:_0x3e9bc2[_0xf85f(0x25f)])!=null?_0x102102:'';}},exports[_0x4885bf(0x157)]=Is([W(0x0,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),W(0x1,a['Inject'](x['HTTPService'])),W(0x2,a[_0x4885bf(0x1f2)]),W(0x3,a[_0x4885bf(0x15f)]),W(0x4,g['ISnapshotServerService'])],exports[_0x4885bf(0x157)]);var ds=Object[_0x4885bf(0xee)],Ss=(_0xeb4680,_0x220c80,_0x5431e7,_0xc98825)=>{const _0x17dda0=_0x4885bf;for(var _0x22d254=_0xc98825>0x1?void 0x0:_0xc98825?ds(_0x220c80,_0x5431e7):_0x220c80,_0x5449e9=_0xeb4680[_0x17dda0(0x12a)]-0x1,_0x16fb42;_0x5449e9>=0x0;_0x5449e9--)(_0x16fb42=_0xeb4680[_0x5449e9])&&(_0x22d254=_0x16fb42(_0x22d254)||_0x22d254);return _0x22d254;},fe=(_0x317971,_0x2e0681)=>(_0x51cbc6,_0x3b2504)=>_0x2e0681(_0x51cbc6,_0x3b2504,_0x317971);exports[_0x4885bf(0x343)]=class extends a['Disposable']{constructor(_0x23e02a,_0x31bd5e,_0x2e3d9b){const _0x12db6b=_0x4885bf;super(),this['_instanceService']=_0x23e02a,this['_httpService']=_0x31bd5e,this[_0x12db6b(0x2e5)]=_0x2e3d9b;}async['runOnServer'](_0x4e1bef,_0x56aec8,_0x5e9199,..._0x3d853d){const _0x310a43=_0x4885bf;var _0x1a4ae0,_0x39d8d3,_0x5db95f,_0xffd0f4;const _0x3e2a4a=this['_instanceService'][_0x310a43(0x277)]();if(!_0x3e2a4a)throw new Error(_0x310a43(0x27b));const _0x241cb1=((_0x1a4ae0=this['_configService'][_0x310a43(0x2c7)](u[_0x310a43(0x133)]))!=null?_0x1a4ae0:u[_0x310a43(0x112)])+'/'+_0x4e1bef+_0x310a43(0x1ff)+_0x56aec8,_0xcfc94c=new URL(window[_0x310a43(0x193)][_0x310a43(0x23b)]),_0x21eaf7={'scriptId':_0x4e1bef,'runId':(_0x39d8d3=_0xcfc94c[_0x310a43(0x17f)][_0x310a43(0x1b8)](_0x310a43(0x171)))!=null?_0x39d8d3:'','function':_0x56aec8,'unitId':_0x3e2a4a['getUnitId'](),'argsOfFunction':JSON[_0x310a43(0x192)](_0x3d853d),'invokeId':(_0x5db95f=_0x5e9199[_0x310a43(0x322)])!=null?_0x5db95f:'','executionId':(_0xffd0f4=_0x5e9199[_0x310a43(0x15a)])!=null?_0xffd0f4:''};try{const _0xbf3658=await this[_0x310a43(0x195)]['post'](_0x241cb1,{'body':_0x21eaf7});return _0xbf3658[_0x310a43(0x26e)][_0x310a43(0x1d5)]&&_0xbf3658['body']['error'][_0x310a43(0x226)]!==G['OK']?_0x310a43(0xc0):_0xbf3658[_0x310a43(0x26e)][_0x310a43(0x13c)];}catch{return _0x310a43(0xc0);}}},exports[_0x4885bf(0x343)]=Ss([fe(0x0,a[_0x4885bf(0x2b8)]),fe(0x1,a[_0x4885bf(0xe0)](x['HTTPService'])),fe(0x2,a[_0x4885bf(0x1f2)])],exports[_0x4885bf(0x343)]);const we=0x7530,ye=_0x4885bf(0xbd);class fs extends a['Disposable']{constructor(){const _0x12b11d=_0x4885bf;super(),_(this,_0x12b11d(0x1a1),a[_0x12b11d(0x2f0)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x12b11d(0xe7),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x12b11d(0x1c1),new Map()),_(this,_0x12b11d(0xd5),new Map()),this[_0x12b11d(0x2a5)]();}[_0x4885bf(0xcf)](){const _0x2e2f37=_0x4885bf;super[_0x2e2f37(0xcf)](),this[_0x2e2f37(0x1c1)][_0x2e2f37(0x28d)]((_0x56de1b,_0xf54403)=>this['_removeClearOtherTimer'](_0xf54403)),this[_0x2e2f37(0x139)]&&window[_0x2e2f37(0x295)](this[_0x2e2f37(0x139)]);}[_0x4885bf(0x338)](_0x333b94){const _0x2f1f84=_0x4885bf;return this[_0x2f1f84(0x264)](_0x333b94)[_0x2f1f84(0x153)](I[_0x2f1f84(0x2c6)]());}[_0x4885bf(0x1e7)](_0x37e580){const _0x2c7bc4=_0x4885bf;this[_0x2c7bc4(0xd1)]['size']===0x0&&this[_0x2c7bc4(0x2a4)](),this[_0x2c7bc4(0xd1)][_0x2c7bc4(0xf1)](_0x37e580),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x37e580],'isForwarded':!0x1});}[_0x4885bf(0x1c9)](_0x79e8c9){const _0x11a83f=_0x4885bf;this[_0x11a83f(0xd1)][_0x11a83f(0x2a1)](_0x79e8c9),this[_0x11a83f(0xd1)][_0x11a83f(0x2ef)]===0x0&&this[_0x11a83f(0x139)]&&window[_0x11a83f(0x295)](this['_heartbeatTimer']);}['_init'](){const _0x55e67b=_0x4885bf;this[_0x55e67b(0x354)](a['toDisposable'](I[_0x55e67b(0x1e5)](window,'storage')[_0x55e67b(0x22c)](_0x573f79=>{const _0x5c34e6=_0x55e67b;if(_0x573f79[_0x5c34e6(0xb1)]!==ye||!_0x573f79[_0x5c34e6(0xa2)])return;const _0x1a5a99=JSON[_0x5c34e6(0x94)](_0x573f79['newValue']);this[_0x5c34e6(0x32f)](_0x1a5a99);}))),window[_0x55e67b(0x29c)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x55e67b(0xd1)])}));}[_0x4885bf(0x32f)](_0x372f6b){const _0xce6df8=_0x4885bf;switch(_0x372f6b[_0xce6df8(0x360)]){case 0x0:this[_0xce6df8(0x11d)](_0x372f6b);break;case 0x1:this[_0xce6df8(0x2a6)](_0x372f6b);break;case 0x2:this[_0xce6df8(0x100)](_0x372f6b);break;}}[_0x4885bf(0x11d)](_0x340af4){const _0x36489c=_0x4885bf,{unitIDs:_0x4a8a1a,memberID:_0x12c92b,isForwarded:_0x48b00d}=_0x340af4;_0x4a8a1a['forEach'](_0xc6758d=>{const _0x3799b0=_0x30e5;if(!_0x48b00d&&this['_unitOnClients']['has'](_0xc6758d)&&this[_0x3799b0(0x264)](_0xc6758d)[_0x3799b0(0x1a7)](u[_0x3799b0(0x19d)][_0x3799b0(0x266)]),!this[_0x3799b0(0xe7)][_0x3799b0(0x11b)](_0xc6758d)||!this['_unitOnClients'][_0x3799b0(0x1b8)](_0xc6758d)['has'](_0x12c92b)){const _0x310695=this[_0x3799b0(0xe7)]['get'](_0xc6758d)||new Set();_0x310695[_0x3799b0(0xf1)](_0x12c92b),this[_0x3799b0(0xe7)]['set'](_0xc6758d,_0x310695),this[_0x3799b0(0x16e)](_0x12c92b);}}),_0x48b00d||this[_0x36489c(0x1ae)]({'type':0x0,'memberID':this[_0x36489c(0x1a1)],'unitIDs':[...this[_0x36489c(0xd1)]],'isForwarded':!0x0});}[_0x4885bf(0x16e)](_0x56181a){const _0x364d20=_0x4885bf;this[_0x364d20(0xa7)](_0x56181a);const _0xcd73ad=window['setTimeout'](()=>{const _0x2944da=_0x364d20;this[_0x2944da(0xe7)][_0x2944da(0x28d)](_0x5d83da=>{_0x5d83da['delete'](_0x56181a);});},we*0x2);this[_0x364d20(0x1c1)][_0x364d20(0x219)](_0x56181a,_0xcd73ad);}[_0x4885bf(0xa7)](_0x444405){const _0x2ae62a=_0x4885bf;if(this[_0x2ae62a(0x1c1)]['has'](_0x444405)){const _0x401f05=this[_0x2ae62a(0x1c1)][_0x2ae62a(0x1b8)](_0x444405);_0x401f05&&window[_0x2ae62a(0x2cc)](_0x401f05),this['_clearOtherTimers'][_0x2ae62a(0x219)](_0x444405,null);}}['_handleLeaveEvent'](_0x4b5d86){const _0xedcd54=_0x4885bf,{memberID:_0x3878db,unitIDs:_0x51525b}=_0x4b5d86;_0x51525b[_0xedcd54(0x28d)](_0x2fbc00=>{const _0x1c8dc7=_0xedcd54;var _0x440aad;const _0x40072d=this[_0x1c8dc7(0xe7)][_0x1c8dc7(0x1b8)](_0x2fbc00);_0x40072d&&(_0x40072d[_0x1c8dc7(0x2a1)](_0x3878db),(_0x440aad=this[_0x1c8dc7(0x264)](_0x2fbc00))==null||_0x440aad[_0x1c8dc7(0x1a7)](_0x40072d[_0x1c8dc7(0x2ef)]===0x0?u['UnitStatus'][_0x1c8dc7(0x16d)]:u[_0x1c8dc7(0x19d)][_0x1c8dc7(0x266)]));}),this[_0xedcd54(0xa7)](_0x3878db);}[_0x4885bf(0x100)](_0x5089ab){const _0x125471=_0x4885bf;this[_0x125471(0x16e)](_0x5089ab[_0x125471(0x187)]);}[_0x4885bf(0x1ae)](_0x485851){const _0x3d6991=_0x4885bf;localStorage[_0x3d6991(0x1b0)](ye,JSON[_0x3d6991(0x192)](_0x485851));}[_0x4885bf(0x2a4)](){const _0x1888e2=_0x4885bf;this[_0x1888e2(0x139)]=window['setInterval'](()=>{const _0x42e6fe=_0x1888e2;this['_send']({'type':0x2,'memberID':this[_0x42e6fe(0x1a1)]});},we);}['_ensureSubject'](_0x38d8ce){const _0xce93e7=_0x4885bf;return this[_0xce93e7(0xd5)][_0xce93e7(0x11b)](_0x38d8ce)||this[_0xce93e7(0xd5)][_0xce93e7(0x219)](_0x38d8ce,new I['BehaviorSubject'](u[_0xce93e7(0x19d)][_0xce93e7(0x16d)])),this[_0xce93e7(0xd5)]['get'](_0x38d8ce);}}exports[_0x4885bf(0x106)]=Oe,exports[_0x4885bf(0x114)]=je,exports[_0x4885bf(0x241)]=fs,exports[_0x4885bf(0x355)]=ke;
|