@univerjs-pro/collaboration-client-ui 0.12.3 → 0.12.4-experimental.20251210-8d33c6e
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/locale/en-US.d.ts +1 -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 +18 -18
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4c4685=_0x1c17;(function(_0x1050a7,_0x4201e3){const _0x24a91b=_0x1c17,_0x12e674=_0x1050a7();while(!![]){try{const _0x3c22c9=parseInt(_0x24a91b(0x3d1))/0x1*(parseInt(_0x24a91b(0x3fa))/0x2)+-parseInt(_0x24a91b(0x1a8))/0x3*(-parseInt(_0x24a91b(0x23f))/0x4)+-parseInt(_0x24a91b(0x27d))/0x5*(parseInt(_0x24a91b(0x235))/0x6)+parseInt(_0x24a91b(0x404))/0x7+-parseInt(_0x24a91b(0x257))/0x8*(parseInt(_0x24a91b(0x369))/0x9)+parseInt(_0x24a91b(0x27e))/0xa+-parseInt(_0x24a91b(0x1a6))/0xb*(parseInt(_0x24a91b(0x2a2))/0xc);if(_0x3c22c9===_0x4201e3)break;else _0x12e674['push'](_0x12e674['shift']());}catch(_0x5f33d3){_0x12e674['push'](_0x12e674['shift']());}}}(_0x392f,0x84764));var Xe=Object[_0x4c4685(0x1f3)],Ke=(_0xa4edc9,_0x25c41c,_0x5ef9c5)=>_0x25c41c in _0xa4edc9?Xe(_0xa4edc9,_0x25c41c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ef9c5}):_0xa4edc9[_0x25c41c]=_0x5ef9c5,_=(_0x2fde65,_0x49602e,_0x2511b6)=>Ke(_0x2fde65,typeof _0x49602e!=_0x4c4685(0x1ad)?_0x49602e+'':_0x49602e,_0x2511b6);Object[_0x4c4685(0x1f3)](exports,Symbol[_0x4c4685(0x214)],{'value':_0x4c4685(0x2c4)});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:_0x30dec1,..._0x22af3a}){const _0x3262ed=_0x4c4685,{icon:_0x53a361,id:_0x11f80d,className:_0x5ee08a,extend:_0x17f146,..._0xf06b4f}=_0x22af3a,_0x47dcdc=(_0x3262ed(0x34b)+_0x11f80d+'\x20'+(_0x5ee08a||''))[_0x3262ed(0x375)](),_0x2df801=A['useRef']('_'+Qe());return $e(_0x53a361,''+_0x11f80d,{'defIds':_0x53a361[_0x3262ed(0x413)],'idSuffix':_0x2df801[_0x3262ed(0x3d4)]},{'ref':_0x30dec1,'className':_0x47dcdc,..._0xf06b4f},_0x17f146);}function $e(_0x46a1d6,_0x132bb1,_0x3138e4,_0x2c7542,_0x5d0c8c){const _0xf65714=_0x4c4685;return A[_0xf65714(0x1d1)](_0x46a1d6[_0xf65714(0x3cc)],{'key':_0x132bb1,...Je(_0x46a1d6,_0x3138e4,_0x5d0c8c),..._0x2c7542},(Ze(_0x46a1d6,_0x3138e4)[_0xf65714(0x2c3)]||[])['map']((_0x5b6d9a,_0xec6570)=>$e(_0x5b6d9a,_0x132bb1+'-'+_0x46a1d6[_0xf65714(0x3cc)]+'-'+_0xec6570,_0x3138e4,void 0x0,_0x5d0c8c)));}function Je(_0x8a7df4,_0x53aefe,_0x41a827){const _0x33dd11=_0x4c4685,_0x5c9026={..._0x8a7df4[_0x33dd11(0x200)]};_0x41a827!=null&&_0x41a827['colorChannel1']&&_0x5c9026['fill']===_0x33dd11(0x22e)&&(_0x5c9026['fill']=_0x41a827[_0x33dd11(0x22e)]),_0x8a7df4['tag']===_0x33dd11(0x2f4)&&_0x5c9026['id']&&(_0x5c9026['id']=_0x5c9026['id']+_0x53aefe['idSuffix']),Object[_0x33dd11(0x231)](_0x5c9026)[_0x33dd11(0x258)](([_0xf90380,_0x251b7e])=>{const _0x4f8568=_0x33dd11;_0xf90380===_0x4f8568(0x2f4)&&typeof _0x251b7e==_0x4f8568(0x30b)&&(_0x5c9026[_0xf90380]=_0x251b7e['replace'](/url\(#(.*)\)/,_0x4f8568(0x29e)+_0x53aefe['idSuffix']+')'));});const {defIds:_0x3a76fe}=_0x53aefe;return!_0x3a76fe||_0x3a76fe[_0x33dd11(0x393)]===0x0||(_0x8a7df4[_0x33dd11(0x3cc)]==='use'&&_0x5c9026[_0x33dd11(0x246)]&&(_0x5c9026[_0x33dd11(0x246)]=_0x5c9026[_0x33dd11(0x246)]+_0x53aefe[_0x33dd11(0x3c4)]),Object['entries'](_0x5c9026)['forEach'](([_0x4489e1,_0x4aa347])=>{const _0x47d1a1=_0x33dd11;typeof _0x4aa347=='string'&&(_0x5c9026[_0x4489e1]=_0x4aa347[_0x47d1a1(0x3f8)](/url\(#(.*)\)/,_0x47d1a1(0x29e)+_0x53aefe['idSuffix']+')'));})),_0x5c9026;}function Ze(_0x1ef044,_0x2677ea){const _0x2eb629=_0x4c4685;var _0x21cd08;const {defIds:_0x2c72a1}=_0x2677ea;return!_0x2c72a1||_0x2c72a1[_0x2eb629(0x393)]===0x0?_0x1ef044:_0x1ef044[_0x2eb629(0x3cc)]===_0x2eb629(0x3e7)&&((_0x21cd08=_0x1ef044[_0x2eb629(0x2c3)])!=null&&_0x21cd08[_0x2eb629(0x393)])?{..._0x1ef044,'children':_0x1ef044[_0x2eb629(0x2c3)][_0x2eb629(0x36a)](_0x29c5d5=>typeof _0x29c5d5[_0x2eb629(0x200)]['id']=='string'&&_0x2c72a1&&_0x2c72a1[_0x2eb629(0x34c)](_0x29c5d5[_0x2eb629(0x200)]['id'])?{..._0x29c5d5,'attrs':{..._0x29c5d5[_0x2eb629(0x200)],'id':_0x29c5d5[_0x2eb629(0x200)]['id']+_0x2677ea[_0x2eb629(0x3c4)]}}:_0x29c5d5)}:_0x1ef044;}function Qe(){const _0x3bc14e=_0x4c4685;return Math['random']()[_0x3bc14e(0x173)](0x24)[_0x3bc14e(0x429)](0x2,0x8);}Te[_0x4c4685(0x209)]=_0x4c4685(0x283);const et={'tag':_0x4c4685(0x337),'attrs':{'xmlns':_0x4c4685(0x1e6),'fill':_0x4c4685(0x41c),'viewBox':_0x4c4685(0x376),'width':_0x4c4685(0x3c7),'height':_0x4c4685(0x3c7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'stroke':_0x4c4685(0x1ff),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4c4685(0x3d8),'strokeLinejoin':_0x4c4685(0x3d8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'fill':_0x4c4685(0x3eb),'d':_0x4c4685(0x317)}}]}]}],'defIds':[_0x4c4685(0x342)]},xe=A['forwardRef'](function(_0x2e674f,_0x486c6e){const _0x5c4c29=_0x4c4685;return A[_0x5c4c29(0x1d1)](Te,Object[_0x5c4c29(0x2e0)]({},_0x2e674f,{'id':'off-line-icon','ref':_0x486c6e,'icon':et}));});xe['displayName']=_0x4c4685(0x426);const tt={'tag':_0x4c4685(0x337),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c4685(0x41c),'viewBox':_0x4c4685(0x33e),'width':_0x4c4685(0x3c7),'height':_0x4c4685(0x3c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c4685(0x3b5)},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'stroke':_0x4c4685(0x1ff),'d':_0x4c4685(0x2f8),'strokeLinecap':_0x4c4685(0x3d8),'strokeLinejoin':_0x4c4685(0x3d8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4c4685(0x386),'attrs':{'id':_0x4c4685(0x25d)},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'fill':_0x4c4685(0x3eb),'d':_0x4c4685(0x317),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4c4685(0x25d)]},Be=A[_0x4c4685(0x261)](function(_0x5655f3,_0x3cd5d0){const _0x459190=_0x4c4685;return A[_0x459190(0x1d1)](Te,Object[_0x459190(0x2e0)]({},_0x5655f3,{'id':_0x459190(0x22a),'ref':_0x3cd5d0,'icon':tt}));});Be[_0x4c4685(0x209)]=_0x4c4685(0x198);function st(_0x34751f){const _0x1032ac=_0x4c4685;switch(_0x34751f){case u['CollaborationStatus'][_0x1032ac(0x30a)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x1032ac(0x38f)]:return _0x1032ac(0x2ed);case u['CollaborationStatus'][_0x1032ac(0x219)]:return _0x1032ac(0x37e);case u[_0x1032ac(0x27f)][_0x1032ac(0x1d5)]:return _0x1032ac(0x19c);case u[_0x1032ac(0x27f)]['AWAITING']:case u[_0x1032ac(0x27f)][_0x1032ac(0x2d0)]:return _0x1032ac(0x2a0);case u[_0x1032ac(0x27f)]['SYNCED']:case u[_0x1032ac(0x27f)][_0x1032ac(0x359)]:return _0x1032ac(0x30f);}}function it(_0x22aca9){const _0x4e2b06=_0x4c4685,{status$:_0x47d4f0}=_0x22aca9,_0x9afe17=O[_0x4e2b06(0x221)](_0x47d4f0,u[_0x4e2b06(0x27f)][_0x4e2b06(0x1d5)]),_0x2c23a5=O[_0x4e2b06(0x183)](a[_0x4e2b06(0x394)]),_0x50c49d=O[_0x4e2b06(0x183)](u[_0x4e2b06(0x35f)]),_0x5b1638=_0x9afe17!==u['CollaborationStatus']['OFFLINE'],_0x45469b=_0x2c23a5['t'](st(_0x9afe17)),_0x2f5a27=_0x5b1638?M[_0x4e2b06(0x296)](Be,{}):M[_0x4e2b06(0x296)](xe,{}),_0x3a8722=A[_0x4e2b06(0x31f)](()=>{const _0x26b2a1=_0x4e2b06;_0x5b1638||_0x50c49d[_0x26b2a1(0x31d)]();},[_0x5b1638,_0x50c49d]);function _0x3d36e0(){const _0x44eb59=_0x4e2b06;return M[_0x44eb59(0x23e)](_0x44eb59(0x3f6),{'className':_0x44eb59(0x1e0),'onClick':_0x3a8722,'children':[M[_0x44eb59(0x296)]('div',{'className':T[_0x44eb59(0x1f9)](_0x44eb59(0x270),{'univer-text-green-500':_0x5b1638,'univer-text-red-500':!_0x5b1638}),'children':_0x2f5a27}),M[_0x44eb59(0x296)](_0x44eb59(0x3f6),{'className':_0x44eb59(0x38a),'children':_0x45469b})]});}return _0x5b1638?_0x3d36e0():M[_0x4e2b06(0x296)](T[_0x4e2b06(0x39c)],{'title':_0x2c23a5['t'](_0x4e2b06(0x3f5)),'children':_0x3d36e0()});}var nt=Object[_0x4c4685(0x1b0)],rt=(_0x3f9460,_0x46d2e9,_0x3ac6b3,_0x260998)=>{const _0x2f8428=_0x4c4685;for(var _0x3cd047=_0x260998>0x1?void 0x0:_0x260998?nt(_0x46d2e9,_0x3ac6b3):_0x46d2e9,_0x296e22=_0x3f9460[_0x2f8428(0x393)]-0x1,_0x441ce9;_0x296e22>=0x0;_0x296e22--)(_0x441ce9=_0x3f9460[_0x296e22])&&(_0x3cd047=_0x441ce9(_0x3cd047)||_0x3cd047);return _0x3cd047;},K=(_0x4c4f6a,_0x3ceb73)=>(_0xa23399,_0x5068be)=>_0x3ceb73(_0xa23399,_0x5068be,_0x4c4f6a);exports[_0x4c4685(0x340)]=class extends a['Disposable']{constructor(_0x34a69a,_0x43882b,_0x2b70e0,_0x356444){const _0xecd485=_0x4c4685;super(),_(this,_0xecd485(0x384),new I[(_0xecd485(0x37d))](u[_0xecd485(0x27f)][_0xecd485(0x1d5)])),(this[_0xecd485(0x175)]=_0x34a69a,this['_injector']=_0x43882b,this['_collaborationController']=_0x2b70e0,this[_0xecd485(0x34e)]=_0x356444,this['_initStatusComponent'](),this[_0xecd485(0x313)]());}[_0x4c4685(0x313)](){const _0x552858=_0x4c4685;this[_0x552858(0x1c2)](this[_0x552858(0x175)][_0x552858(0x2b3)][_0x552858(0x249)](I[_0x552858(0x225)](()=>{const _0xc701b3=_0x552858,_0x246c10=this[_0xc701b3(0x175)][_0xc701b3(0x2e6)]();return _0x246c10?this[_0xc701b3(0x362)]['getCollabEntity$'](_0x246c10[_0xc701b3(0x1ca)]()):I['of'](null);}),I[_0x552858(0x225)](_0x424cf5=>_0x424cf5?_0x424cf5['status$']:I['of'](u[_0x552858(0x27f)][_0x552858(0x1d5)])))['subscribe'](_0x38c236=>{const _0x5952b2=_0x552858;this['_status$'][_0x5952b2(0x215)](_0x38c236);}));}[_0x4c4685(0x336)](){const _0x21403d=_0x4c4685;this[_0x21403d(0x1c2)](this['_uiPartsService'][_0x21403d(0x37b)](O[_0x21403d(0x2b4)][_0x21403d(0x1db)],()=>O[_0x21403d(0x213)](ot({'status$':this[_0x21403d(0x384)][_0x21403d(0x3d0)]()}),this[_0x21403d(0x28a)])));}},exports[_0x4c4685(0x340)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),K(0x2,a[_0x4c4685(0x414)](u[_0x4c4685(0x1f2)])),K(0x3,O[_0x4c4685(0x230)])],exports[_0x4c4685(0x340)]);function ot(_0x4287eb){const {status$:_0x4297f1}=_0x4287eb;return function(){const _0x31ff1f=_0x1c17;return M[_0x31ff1f(0x296)](it,{'status$':_0x4297f1});};}const Oe=a[_0x4c4685(0x276)]('uni.network.url-service');var at=Object[_0x4c4685(0x1b0)],ct=(_0x16fb93,_0x65d475,_0x3e8bdd,_0x208a83)=>{const _0x2766a5=_0x4c4685;for(var _0x466214=_0x208a83>0x1?void 0x0:_0x208a83?at(_0x65d475,_0x3e8bdd):_0x65d475,_0x55dfd0=_0x16fb93[_0x2766a5(0x393)]-0x1,_0x19df76;_0x55dfd0>=0x0;_0x55dfd0--)(_0x19df76=_0x16fb93[_0x55dfd0])&&(_0x466214=_0x19df76(_0x466214)||_0x466214);return _0x466214;},Y=(_0x4aa573,_0x1ed546)=>(_0x315e30,_0x179963)=>_0x1ed546(_0x315e30,_0x179963,_0x4aa573);exports[_0x4c4685(0x1ec)]=class extends a[_0x4c4685(0x303)]{constructor(_0x1d9ae8,_0x504ce5,_0xe15e0,_0x4dd06e,_0x54dbde){const _0x1b3dde=_0x4c4685;super(),this[_0x1b3dde(0x347)]=_0x1d9ae8,this[_0x1b3dde(0x228)]=_0x504ce5,this['_commandService']=_0xe15e0,this[_0x1b3dde(0x24f)]=_0x4dd06e,_0x54dbde?_0x54dbde==null||_0x54dbde[_0x1b3dde(0x3b9)]()[_0x1b3dde(0x382)](()=>this[_0x1b3dde(0x16e)]()):(this['_logService']['debug'](_0x1b3dde(0x354),_0x1b3dde(0x2b5)),this[_0x1b3dde(0x16e)]());}async[_0x4c4685(0x16e)](){const _0x5ef6bb=_0x4c4685,_0x3ba6f3=this[_0x5ef6bb(0x347)][_0x5ef6bb(0x42b)](_0x5ef6bb(0x2ad)),_0x4672c0=this['_urlService'][_0x5ef6bb(0x42b)]('type'),_0x2e5fd1=this[_0x5ef6bb(0x347)][_0x5ef6bb(0x42b)]('subunit');if(!_0x3ba6f3||!_0x4672c0){this[_0x5ef6bb(0x228)][_0x5ef6bb(0x2a7)](_0x5ef6bb(0x354),_0x5ef6bb(0x35b));return;}const _0x1486fe=await this['_dataLoaderService'][_0x5ef6bb(0x1fd)](_0x3ba6f3,Number(_0x4672c0),_0x2e5fd1);_0x1486fe&&_0x1486fe instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x1486fe);}async[_0x4c4685(0x267)](_0x79950c){const _0x540de1=_0x4c4685;await this['_updateSubUnitFromURLParams'](_0x79950c),_0x79950c[_0x540de1(0x360)][_0x540de1(0x249)](I[_0x540de1(0x206)](this['dispose$']))[_0x540de1(0x2e5)](_0x20f653=>{const _0x53a153=_0x540de1;_0x20f653&&this[_0x53a153(0x40b)](_0x20f653);}),this[_0x540de1(0x347)][_0x540de1(0x30d)][_0x540de1(0x249)](I[_0x540de1(0x206)](this[_0x540de1(0x374)]))['subscribe'](()=>this[_0x540de1(0x38c)](_0x79950c));}[_0x4c4685(0x40b)](_0x450f98,_0xc2bef9=!0x1){const _0x1453bd=_0x4c4685,_0x530f98=this['_urlService'][_0x1453bd(0x42b)](_0x1453bd(0x1cb));_0x450f98[_0x1453bd(0x1a9)]()!==_0x530f98&&this[_0x1453bd(0x347)][_0x1453bd(0x1b3)](_0x1453bd(0x1cb),_0x450f98['getSheetId'](),_0xc2bef9);}async['_updateSubUnitFromURLParams'](_0x4421d){const _0x2819b8=_0x4c4685;var _0x32a786;const _0x502f1a=this[_0x2819b8(0x347)][_0x2819b8(0x42b)]('subunit');if(!_0x502f1a||!_0x4421d[_0x2819b8(0x226)](_0x502f1a)){const _0x5ace54=_0x4421d['getUnhiddenWorksheets']()[0x0],_0x5ed48d=_0x4421d[_0x2819b8(0x226)](_0x5ace54);if(!_0x5ed48d)return;this[_0x2819b8(0x40b)](_0x5ed48d,!0x0),await this['_commandService'][_0x2819b8(0x18b)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4421d[_0x2819b8(0x1ca)](),'subUnitId':_0x5ace54});return;}((_0x32a786=_0x4421d['getActiveSheet']())==null?void 0x0:_0x32a786[_0x2819b8(0x1a9)]())!==_0x502f1a&&await this['_commandService']['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4421d[_0x2819b8(0x1ca)](),'subUnitId':_0x502f1a});}},exports[_0x4c4685(0x1ec)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4c4685(0x259)]),Y(0x2,a[_0x4c4685(0x3c5)]),Y(0x3,a['Inject'](u[_0x4c4685(0x3d2)])),Y(0x4,a[_0x4c4685(0x326)](qe[_0x4c4685(0x207)]))],exports[_0x4c4685(0x1ec)]);var lt=Object[_0x4c4685(0x1b0)],_t=(_0x1c22d6,_0x1f7474,_0xd67b35,_0x36d377)=>{const _0x53f2b0=_0x4c4685;for(var _0x1bdc9b=_0x36d377>0x1?void 0x0:_0x36d377?lt(_0x1f7474,_0xd67b35):_0x1f7474,_0x109fbd=_0x1c22d6[_0x53f2b0(0x393)]-0x1,_0x1959fa;_0x109fbd>=0x0;_0x109fbd--)(_0x1959fa=_0x1c22d6[_0x109fbd])&&(_0x1bdc9b=_0x1959fa(_0x1bdc9b)||_0x1bdc9b);return _0x1bdc9b;},De=(_0x2a2465,_0x527c1f)=>(_0x12c7aa,_0x58f4d7)=>_0x527c1f(_0x12c7aa,_0x58f4d7,_0x2a2465);let me=class extends a[_0x4c4685(0x303)]{constructor(_0x1dce7e,_0x2b7bf6){const _0x57cba8=_0x4c4685;super(),this[_0x57cba8(0x40c)]=_0x1dce7e,this[_0x57cba8(0x31c)]=_0x2b7bf6,this[_0x57cba8(0x16e)]();}[_0x4c4685(0x16e)](){const _0x49ef6f=_0x4c4685,_0x41725=this;this[_0x49ef6f(0x1c2)](this[_0x49ef6f(0x40c)][_0x49ef6f(0x3ab)]({'onBeforePasteImage':async _0x2dc4dd=>{const _0x38132a=_0x49ef6f,_0x584e67=await _0x41725[_0x38132a(0x31c)][_0x38132a(0x178)](_0x2dc4dd);return _0x584e67?{'source':_0x584e67['source'],'imageSourceType':_0x584e67[_0x38132a(0x2ba)]}:null;}}));}};me=_t([De(0x0,p[_0x4c4685(0x26f)]),De(0x1,ze[_0x4c4685(0x3aa)])],me);const Ne=[_0x4c4685(0x363),_0x4c4685(0x28e),'green.600',_0x4c4685(0x1b5),_0x4c4685(0x39e),_0x4c4685(0x1e1)];class Re extends a[_0x4c4685(0x25e)]{constructor(){const _0x3a7def=_0x4c4685;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x3a7def(0x31a),0x0);}[_0x4c4685(0x21d)](_0x27e2f0){const _0x230b10=_0x4c4685;if(this[_0x230b10(0x23c)][_0x230b10(0x39b)](_0x27e2f0))return this[_0x230b10(0x23c)][_0x230b10(0x418)](_0x27e2f0);const _0x178ddf=Ne[this[_0x230b10(0x31a)]];return this[_0x230b10(0x31a)]=(this['_colorIndex']+0x1)%Ne[_0x230b10(0x393)],this[_0x230b10(0x23c)][_0x230b10(0x1d4)](_0x27e2f0,_0x178ddf),_0x178ddf;}}function Fe(_0x103de2){const _0x2db1a8=_0x4c4685;let _0x1f78de='';for(const _0x14426d of _0x103de2){const {startOffset:_0x1e485f,endOffset:_0x4abcf5,isActive:_0x301300,rangeType:_0x1d40a2,segmentId:_0x1ab3c4,segmentPage:_0x4f1f11}=_0x14426d;_0x1f78de[_0x2db1a8(0x393)]&&(_0x1f78de+=','),_0x1f78de+=_0x1e485f+':'+_0x4abcf5+':'+(_0x301300?'1':'0')+':'+_0x1d40a2+':'+_0x1ab3c4+':'+_0x4f1f11;}return _0x1f78de;}function ht(_0x4a3bc4){const _0x143983=_0x4c4685,_0x198ead=_0x4a3bc4[_0x143983(0x32d)](','),_0x1ea64b=[];for(const _0x7e6ce0 of _0x198ead){const [_0x347cc8,_0x2fba98,_0x406b68,_0x496dcb,_0x15e0a2,_0x100c97]=_0x7e6ce0['split'](':');_0x1ea64b[_0x143983(0x2cc)]({'startOffset':Number(_0x347cc8),'endOffset':Number(_0x2fba98),'collapsed':_0x347cc8===_0x2fba98,'isActive':_0x406b68==='1','rangeType':_0x496dcb===a['DOC_RANGE_TYPE'][_0x143983(0x1d8)]?a['DOC_RANGE_TYPE'][_0x143983(0x1d8)]:a[_0x143983(0x38d)]['RECT'],'segmentId':typeof _0x15e0a2==_0x143983(0x30b)?String(_0x15e0a2):'','segmentPage':Number(_0x100c97!=null?_0x100c97:-0x1)});}return _0x1ea64b[_0x143983(0x3ff)](_0x4b0154=>_0x4b0154[_0x143983(0x3de)])||(_0x1ea64b[0x0][_0x143983(0x3de)]=!0x0),_0x1ea64b;}class be extends a[_0x4c4685(0x303)]{constructor(){const _0x4e6111=_0x4c4685;super(...arguments),_(this,_0x4e6111(0x344),new I[(_0x4e6111(0x37d))](null)),_(this,_0x4e6111(0x3bf),this[_0x4e6111(0x344)][_0x4e6111(0x3d0)]());}[_0x4c4685(0x1b7)](_0x17de45){const _0x5df2f1=_0x4c4685,{unitID:_0x4a2e23,memberID:_0x472eb4,textRanges:_0x161eb8}=_0x17de45,_0x4ffc95=Fe(_0x161eb8);if(_0x4ffc95==='')return;const _0x1db795={'unitID':_0x4a2e23,'memberID':_0x472eb4,'selection':_0x4ffc95};this[_0x5df2f1(0x344)]['next'](_0x1db795);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x55c343,_0x19e5a8,_0x3a9060,_0x2b49e5)=>{for(var _0x48c2c2=_0x2b49e5>0x1?void 0x0:_0x2b49e5?ut(_0x19e5a8,_0x3a9060):_0x19e5a8,_0x379ebd=_0x55c343['length']-0x1,_0x1103f0;_0x379ebd>=0x0;_0x379ebd--)(_0x1103f0=_0x55c343[_0x379ebd])&&(_0x48c2c2=_0x1103f0(_0x48c2c2)||_0x48c2c2);return _0x48c2c2;},U=(_0x5aa6c4,_0x301fc3)=>(_0x3fb83a,_0x53add2)=>_0x301fc3(_0x3fb83a,_0x53add2,_0x5aa6c4);const dt=0x12c,St=0x64;let ve=class extends a[_0x4c4685(0x303)]{constructor(_0x1b57f0,_0x17a2cc,_0xad4e61,_0x2da9c5,_0x78b4a0,_0x1275da,_0x747fa0,_0xbc2919,_0x3bd5c2){const _0x4242bf=_0x4c4685;super(),_(this,_0x4242bf(0x2a5),!0x1),_(this,_0x4242bf(0x16e),!0x1),_(this,_0x4242bf(0x1fa),new I['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x4242bf(0x1fa)][_0x4242bf(0x3d0)]()),_(this,_0x4242bf(0x3e0),new I[(_0x4242bf(0x37d))]([])),_(this,'roomMembers$',this[_0x4242bf(0x3e0)][_0x4242bf(0x249)](I[_0x4242bf(0x2b8)](dt))),_(this,'_updateLocalCursor',a[_0x4242bf(0x3d9)](_0xeaef88=>{const _0x20cb1b=_0x4242bf,_0x6a1632={'eventID':g[_0x20cb1b(0x319)][_0x20cb1b(0x390)],'data':{'unitID':this[_0x20cb1b(0x179)],'memberID':this[_0x20cb1b(0x1d2)]['getMemberID'](),'selection':Fe(_0xeaef88)}};this[_0x20cb1b(0x1d2)][_0x20cb1b(0x39d)](_0x6a1632,this[_0x20cb1b(0x179)]);},St)),(this[_0x4242bf(0x179)]=_0x1b57f0,this[_0x4242bf(0x1d2)]=_0x17a2cc,this[_0x4242bf(0x28a)]=_0xad4e61,this[_0x4242bf(0x1b6)]=_0x2da9c5,this[_0x4242bf(0x403)]=_0x78b4a0,this[_0x4242bf(0x381)]=_0x1275da,this[_0x4242bf(0x2f6)]=_0x747fa0,this['_univerInstanceService']=_0xbc2919,this[_0x4242bf(0x25a)]=_0x3bd5c2);}get[_0x4c4685(0x297)](){const _0x10f0d0=_0x4c4685;return this[_0x10f0d0(0x1fa)][_0x10f0d0(0x2f1)]();}get[_0x4c4685(0x341)](){const _0xe54ff2=_0x4c4685;return this[_0xe54ff2(0x3e0)][_0xe54ff2(0x2f1)]();}[_0x4c4685(0x3d3)](){const _0x5712e8=_0x4c4685;super['dispose'](),this['_cursorInfo$'][_0x5712e8(0x215)](new Map()),this['_cursorInfo$']['complete'](),this[_0x5712e8(0x3e0)][_0x5712e8(0x215)]([]),this['_roomMembers$'][_0x5712e8(0x27b)]();}['init'](){const _0x5e7853=_0x4c4685;this['_init']||(this[_0x5e7853(0x16e)]=!0x0,this[_0x5e7853(0x1d2)][_0x5e7853(0x332)][_0x5e7853(0x249)](I[_0x5e7853(0x206)](this[_0x5e7853(0x374)]))[_0x5e7853(0x2e5)](_0x3731fa=>{const _0xcf8a32=_0x5e7853;_0x3731fa===u[_0xcf8a32(0x2cf)][_0xcf8a32(0x1ef)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x5e7853(0x1d2)][_0x5e7853(0x2dd)][_0x5e7853(0x249)](I['takeUntil'](this[_0x5e7853(0x374)]))['subscribe'](_0x1989aa=>{const _0x257870=_0x5e7853,_0xd4b5aa=_0x1989aa['eventID'];_0xd4b5aa===g[_0x257870(0x319)][_0x257870(0x390)]&&this[_0x257870(0x24b)](_0x1989aa),_0xd4b5aa===g[_0x257870(0x319)]['USERS_LEAVE']&&this[_0x257870(0x34d)](_0x1989aa);}),this[_0x5e7853(0x1c2)](this[_0x5e7853(0x25a)][_0x5e7853(0x17a)](_0x3e9489=>{const _0x44e2d7=_0x5e7853,_0x3b8127=_0x3e9489[_0x44e2d7(0x18a)];_0x3b8127!=null&&this[_0x44e2d7(0x2a5)]&&_0x3e9489['id']===V['SetTextSelectionsOperation']['id']&&_0x3b8127[_0x44e2d7(0x1a1)]===this[_0x44e2d7(0x179)]&&_0x3b8127['isEditing']===!0x1&&_0x3b8127[_0x44e2d7(0x1df)][_0x44e2d7(0x393)]>0x0&&this['_updateLocalCursor'](_0x3b8127[_0x44e2d7(0x1df)]);})),this[_0x5e7853(0x381)][_0x5e7853(0x3bf)][_0x5e7853(0x249)](I[_0x5e7853(0x206)](this[_0x5e7853(0x374)]))['subscribe'](_0x46f691=>{const _0x232013=_0x5e7853;if((_0x46f691==null?void 0x0:_0x46f691[_0x232013(0x179)])!==this[_0x232013(0x179)])return;const _0xf67cc={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x46f691};this[_0x232013(0x24b)](_0xf67cc);}),this[_0x5e7853(0x1c2)](this[_0x5e7853(0x25a)]['onCommandExecuted'](_0x32f516=>{const _0x57dc7e=_0x5e7853;if(_0x32f516[_0x57dc7e(0x18a)]==null)return;const _0x373edd=_0x32f516[_0x57dc7e(0x18a)];if(_0x32f516['id']!==V[_0x57dc7e(0x2fb)]['id']||_0x373edd['unitId']!==this[_0x57dc7e(0x179)])return;const _0x3c8a1a={'id':_0x57dc7e(0x3b3),'params':_0x373edd},_0x4dc5a9=this[_0x57dc7e(0x297)];for(const [_0x227916,_0x34b384]of _0x4dc5a9){const _0xccf91f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x57dc7e(0x179)],'actions':null,'textRanges':_0x34b384['ranges']}},_0x4d002d=this[_0x57dc7e(0x2f6)][_0x57dc7e(0x42f)](_0x3c8a1a,_0xccf91f,!0x1);if(g[_0x57dc7e(0x2c0)](_0x4d002d))throw _0x4d002d[_0x57dc7e(0x2c2)];_0x4dc5a9['set'](_0x227916,{..._0x34b384,'ranges':_0x4d002d[_0x57dc7e(0x411)][_0x57dc7e(0x18a)][_0x57dc7e(0x220)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x4dc5a9);});})));}[_0x4c4685(0x24b)](_0x2b3318){const _0x8023d0=_0x4c4685;var _0x5e1b4d,_0x1309a9;const {memberID:_0x2c8450,selection:_0x38fa1b}=_0x2b3318[_0x8023d0(0x339)],_0x567ca1=ht(_0x38fa1b),_0x200858=(_0x1309a9=(_0x5e1b4d=this['_memberService'][_0x8023d0(0x2bc)](this[_0x8023d0(0x179)],_0x2c8450))==null?void 0x0:_0x5e1b4d[_0x8023d0(0x2c8)])!=null?_0x1309a9:'Unknown\x20user',_0x4fa293={'color':this[_0x8023d0(0x1b6)]['assignAColorForMemberID'](_0x2c8450),'name':_0x200858,'ranges':_0x567ca1},_0x3dca90=this[_0x8023d0(0x297)];_0x3dca90['set'](_0x2c8450,_0x4fa293),this[_0x8023d0(0x1fa)][_0x8023d0(0x215)](_0x3dca90);}[_0x4c4685(0x34d)](_0x37cd76){const _0x2a1f06=_0x4c4685,{memberID:_0x2df331}=_0x37cd76[_0x2a1f06(0x339)],_0x213988=this['cursorInfo'];_0x213988[_0x2a1f06(0x1be)](_0x2df331),this[_0x2a1f06(0x1fa)][_0x2a1f06(0x215)](_0x213988);}[_0x4c4685(0x1ee)](){const _0x2ce5c1=_0x4c4685;var _0x542f91;if(this[_0x2ce5c1(0x2a5)]=!0x0,((_0x542f91=this[_0x2ce5c1(0x175)][_0x2ce5c1(0x2e6)]())==null?void 0x0:_0x542f91[_0x2ce5c1(0x1ca)]())!==this[_0x2ce5c1(0x179)])return;const _0x179ff8=this[_0x2ce5c1(0x28a)][_0x2ce5c1(0x418)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x2ce5c1(0x2bf)](_0x179ff8)&&_0x179ff8[_0x2ce5c1(0x393)]>0x0&&this[_0x2ce5c1(0x19b)](_0x179ff8);}[_0x4c4685(0x329)](){const _0x15c2f2=_0x4c4685;this[_0x15c2f2(0x2a5)]=!0x1;}};ve=It([U(0x2,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),U(0x3,a[_0x4c4685(0x414)](Re)),U(0x4,a[_0x4c4685(0x414)](u[_0x4c4685(0x2e4)])),U(0x5,a[_0x4c4685(0x414)](be)),U(0x6,g[_0x4c4685(0x279)]),U(0x7,a[_0x4c4685(0x19d)]),U(0x8,a[_0x4c4685(0x3c5)])],ve);function _0x1c17(_0x202f99,_0x4d8bc4){const _0x392f0e=_0x392f();return _0x1c17=function(_0x1c1723,_0x559fc1){_0x1c1723=_0x1c1723-0x16c;let _0x4329d6=_0x392f0e[_0x1c1723];return _0x4329d6;},_0x1c17(_0x202f99,_0x4d8bc4);}var ft=Object[_0x4c4685(0x1b0)],mt=(_0x43f72e,_0x59622a,_0x70278,_0x51b49f)=>{const _0x54ea5c=_0x4c4685;for(var _0x27dbd6=_0x51b49f>0x1?void 0x0:_0x51b49f?ft(_0x59622a,_0x70278):_0x59622a,_0x4fc14d=_0x43f72e[_0x54ea5c(0x393)]-0x1,_0x3203b2;_0x4fc14d>=0x0;_0x4fc14d--)(_0x3203b2=_0x43f72e[_0x4fc14d])&&(_0x27dbd6=_0x3203b2(_0x27dbd6)||_0x27dbd6);return _0x27dbd6;},w=(_0x2b2a9e,_0x4aaff0)=>(_0x56c7d9,_0x5ac920)=>_0x4aaff0(_0x56c7d9,_0x5ac920,_0x2b2a9e);const vt=0x12c,gt=0x64,Et=()=>{let _0x327b39=[],_0x5cae23=!0x1;return _0x3cd75d=>{_0x327b39['push'](_0x3cd75d),_0x5cae23||(_0x5cae23=!0x0,setTimeout(()=>{const _0x54f6b1=_0x1c17;_0x327b39[_0x54f6b1(0x258)](_0x3612aa=>_0x3612aa()),_0x327b39=[],_0x5cae23=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x244741,_0x13b9b4,_0x5c59db,_0x2c15bb,_0x1d7afa,_0x102d0e,_0xd4349b,_0x278806){const _0x1c9b9a=_0x4c4685;super(),_(this,_0x1c9b9a(0x2a5),!0x1),_(this,'_init',!0x1),_(this,_0x1c9b9a(0x1fa),new I[(_0x1c9b9a(0x37d))](new Map())),_(this,_0x1c9b9a(0x2aa),this[_0x1c9b9a(0x1fa)]['asObservable']()),_(this,_0x1c9b9a(0x3e0),new I[(_0x1c9b9a(0x37d))]([])),_(this,_0x1c9b9a(0x3ec),this[_0x1c9b9a(0x3e0)][_0x1c9b9a(0x249)](I[_0x1c9b9a(0x2b8)](vt))),_(this,_0x1c9b9a(0x19b),a[_0x1c9b9a(0x3d9)]((_0x53c6fb,_0x1dac1b)=>{const _0x3a34d7=_0x1c9b9a,_0x2d24cc={'eventID':g[_0x3a34d7(0x319)][_0x3a34d7(0x390)],'data':{'unitID':this[_0x3a34d7(0x179)],'memberID':this[_0x3a34d7(0x1d2)][_0x3a34d7(0x41f)](),'selection':B['serializeRangeWithSheet'](_0x53c6fb,_0x1dac1b[_0x3a34d7(0x20b)])}};this['_session'][_0x3a34d7(0x39d)](_0x2d24cc,this[_0x3a34d7(0x179)]);},gt)),(this[_0x1c9b9a(0x179)]=_0x244741,this['_session']=_0x13b9b4,this[_0x1c9b9a(0x28a)]=_0x5c59db,this[_0x1c9b9a(0x1b6)]=_0x2c15bb,this[_0x1c9b9a(0x403)]=_0x1d7afa,this[_0x1c9b9a(0x175)]=_0x102d0e,this[_0x1c9b9a(0x25a)]=_0xd4349b,this[_0x1c9b9a(0x17d)]=_0x278806);}get[_0x4c4685(0x297)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5d017c=_0x4c4685;return this[_0x5d017c(0x3e0)][_0x5d017c(0x2f1)]();}['dispose'](){const _0x497d0d=_0x4c4685;super[_0x497d0d(0x3d3)](),this[_0x497d0d(0x1fa)][_0x497d0d(0x215)](new Map()),this[_0x497d0d(0x1fa)][_0x497d0d(0x27b)](),this[_0x497d0d(0x3e0)]['next']([]),this[_0x497d0d(0x3e0)][_0x497d0d(0x27b)]();}[_0x4c4685(0x2f7)](){const _0x151de9=_0x4c4685;this['_init']||(this['_init']=!0x0,this[_0x151de9(0x1d2)][_0x151de9(0x332)]['pipe'](I[_0x151de9(0x206)](this[_0x151de9(0x374)]))['subscribe'](_0x461757=>{const _0x3219fd=_0x151de9;_0x461757===u[_0x3219fd(0x2cf)][_0x3219fd(0x1ef)]?this[_0x3219fd(0x1ee)]():this[_0x3219fd(0x329)]();}),this['_session'][_0x151de9(0x2dd)][_0x151de9(0x249)](I['takeUntil'](this[_0x151de9(0x374)]))[_0x151de9(0x2e5)](_0x380670=>{const _0x377bfa=_0x151de9,_0x46f7ff=_0x380670[_0x377bfa(0x2c6)];_0x46f7ff===g[_0x377bfa(0x319)][_0x377bfa(0x390)]&&this[_0x377bfa(0x24b)](_0x380670),_0x46f7ff===g[_0x377bfa(0x319)][_0x377bfa(0x33a)]&&this[_0x377bfa(0x34d)](_0x380670);}),this['_onRefRangeChange'](),this[_0x151de9(0x1c2)](this[_0x151de9(0x25a)][_0x151de9(0x17a)](_0x12953e=>{const _0x5bb3ef=_0x151de9;if(this[_0x5bb3ef(0x2a5)]&&_0x12953e['id']===v[_0x5bb3ef(0x2fc)]['id']&&_0x12953e['params']['unitId']===this[_0x5bb3ef(0x179)]){const _0x4734de=_0x12953e[_0x5bb3ef(0x18a)];this['_updateLocalCursor'](_0x4734de[_0x5bb3ef(0x2d1)],_0x4734de[_0x5bb3ef(0x2b2)][0x0]);}})));}['_onCursorUpdate'](_0x2cfc1d){const _0x5c4b24=_0x4c4685;var _0x18c12a,_0x4e4dc1;const {memberID:_0xf24bdf,selection:_0x521700}=_0x2cfc1d['data'],{sheetName:_0x538689,range:_0x2a3612}=B['deserializeRangeWithSheet'](_0x521700),_0x3399a1={'name':(_0x4e4dc1=(_0x18c12a=this[_0x5c4b24(0x403)][_0x5c4b24(0x2bc)](this['unitID'],_0xf24bdf))==null?void 0x0:_0x18c12a[_0x5c4b24(0x2c8)])!=null?_0x4e4dc1:'Unknown\x20user','range':this[_0x5c4b24(0x24a)](_0x538689,_0x2a3612),'sheetID':_0x538689,'color':this['_colorAssignService']['assignAColorForMemberID'](_0xf24bdf),'selection':_0x521700},_0x226ac8=this[_0x5c4b24(0x297)];_0x226ac8['set'](_0xf24bdf,_0x3399a1),this['_cursorInfo$'][_0x5c4b24(0x215)](_0x226ac8);}[_0x4c4685(0x34d)](_0x21f87e){const _0x4d5fd3=_0x4c4685,{memberID:_0x2163cb}=_0x21f87e[_0x4d5fd3(0x339)],_0x2c8870=this['cursorInfo'];_0x2c8870['delete'](_0x2163cb),this[_0x4d5fd3(0x1fa)][_0x4d5fd3(0x215)](_0x2c8870);}[_0x4c4685(0x24a)](_0x420652,_0x50668e){const _0x5317f4=_0x4c4685;var _0x52cf91,_0x4866f4;const _0x34eaca=(_0x4866f4=(_0x52cf91=this[_0x5317f4(0x175)][_0x5317f4(0x3e8)](this['unitID']))==null?void 0x0:_0x52cf91['getSheetBySheetId'](_0x420652))==null?void 0x0:_0x4866f4[_0x5317f4(0x17f)]();return(_0x34eaca==null?void 0x0:_0x34eaca[_0x5317f4(0x211)](_0x22d904=>a[_0x5317f4(0x19e)]['contains'](_0x22d904,_0x50668e)))||_0x50668e;}['_onRefRangeChange'](){const _0x41b44f=_0x4c4685,_0x5290b6=new a[(_0x41b44f(0x3a2))](),_0x118907=Et(),_0x11c68a=()=>{const _0x1e047f=_0x41b44f;_0x5290b6[_0x1e047f(0x3d3)]();const _0x21cd48=(_0x278d3b,_0x21a103,_0x2329a5,_0x20237c)=>{const _0x3c6671=_0x1e047f;let _0x570bf4=[];switch(_0x278d3b['id']){case v['EffectRefRangId'][_0x3c6671(0x316)]:{_0x570bf4=v[_0x3c6671(0x192)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)]['DeleteRangeMoveUpCommandId']:{_0x570bf4=v[_0x3c6671(0x2b1)](_0x278d3b,_0x20237c);break;}case v['EffectRefRangId'][_0x3c6671(0x2eb)]:{_0x570bf4=v[_0x3c6671(0x1f6)](_0x278d3b,_0x20237c);break;}case v['EffectRefRangId'][_0x3c6671(0x42c)]:{_0x570bf4=v[_0x3c6671(0x424)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)]['InsertRangeMoveRightCommandId']:{_0x570bf4=v[_0x3c6671(0x262)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)][_0x3c6671(0x1fc)]:{_0x570bf4=v[_0x3c6671(0x20d)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)][_0x3c6671(0x3af)]:{_0x570bf4=v['handleMoveRange'](_0x278d3b,_0x20237c);break;}case v['EffectRefRangId'][_0x3c6671(0x3b2)]:{_0x570bf4=v[_0x3c6671(0x33b)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)][_0x3c6671(0x402)]:{_0x570bf4=v['handleIRemoveRow'](_0x278d3b,_0x20237c);break;}}const _0x5cfdce=v[_0x3c6671(0x23d)](_0x570bf4,_0x20237c),_0x343505=this['cursorInfo'][_0x3c6671(0x418)](_0x21a103);if(_0x343505&&_0x5cfdce){const _0x2e1188={..._0x343505,'range':_0x5cfdce};this[_0x3c6671(0x297)][_0x3c6671(0x1d4)](_0x21a103,_0x2e1188),_0x118907(()=>{const _0x548dc7=_0x3c6671,_0x3c124c=this[_0x548dc7(0x17d)][_0x548dc7(0x320)](_0x5cfdce,_0x2f3192=>(_0x3c124c[_0x548dc7(0x3d3)](),_0x21cd48(_0x2f3192,_0x21a103,_0x2329a5,_0x5cfdce)));_0x5290b6[_0x548dc7(0x1c9)](_0x3c124c);});}return{'redos':[],'undos':[]};};this[_0x1e047f(0x297)][_0x1e047f(0x258)]((_0x180d57,_0x29aca8)=>{const _0x59bc1c=_0x1e047f,{range:_0x4ef2b0,sheetID:_0x22d96b}=_0x180d57,_0x568273=this[_0x59bc1c(0x17d)]['registerRefRange'](_0x4ef2b0,_0x22cc89=>(_0x568273[_0x59bc1c(0x3d3)](),_0x21cd48(_0x22cc89,_0x29aca8,_0x22d96b,_0x4ef2b0)));_0x5290b6[_0x59bc1c(0x1c9)](_0x568273);});};this['disposeWithMe'](a[_0x41b44f(0x356)](this[_0x41b44f(0x1fa)][_0x41b44f(0x2e5)](()=>{_0x11c68a();})));}[_0x4c4685(0x1ee)](){const _0x2bfbdb=_0x4c4685;var _0x5e0d16,_0x2d7c94;if(this['_online']=!0x0,((_0x5e0d16=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x5e0d16['getUnitId']())!==this[_0x2bfbdb(0x179)])return;const _0x5c097f=(_0x2d7c94=this[_0x2bfbdb(0x28a)][_0x2bfbdb(0x418)](v[_0x2bfbdb(0x302)])[_0x2bfbdb(0x2ca)]())==null?void 0x0:_0x2d7c94[0x0],_0x2d9ad1=this[_0x2bfbdb(0x175)]['getCurrentUnitForType'](a[_0x2bfbdb(0x323)][_0x2bfbdb(0x2a6)])[_0x2bfbdb(0x2ae)]();_0x5c097f&&_0x2d9ad1&&this[_0x2bfbdb(0x19b)](_0x2d9ad1[_0x2bfbdb(0x1a9)](),_0x5c097f);}[_0x4c4685(0x329)](){const _0x26177d=_0x4c4685;this[_0x26177d(0x2a5)]=!0x1;}};ge=mt([w(0x2,a[_0x4c4685(0x414)](a['Injector'])),w(0x3,a[_0x4c4685(0x414)](Re)),w(0x4,a[_0x4c4685(0x414)](u[_0x4c4685(0x2e4)])),w(0x5,a[_0x4c4685(0x19d)]),w(0x6,a[_0x4c4685(0x3c5)]),w(0x7,a[_0x4c4685(0x414)](v[_0x4c4685(0x3e9)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x1b0fc3,_0x5b2272,_0x18b41e,_0x3b8e93)=>{for(var _0x2581b5=_0x3b8e93>0x1?void 0x0:_0x3b8e93?Ct(_0x5b2272,_0x18b41e):_0x5b2272,_0xeb87b1=_0x1b0fc3['length']-0x1,_0x5190ec;_0xeb87b1>=0x0;_0xeb87b1--)(_0x5190ec=_0x1b0fc3[_0xeb87b1])&&(_0x2581b5=_0x5190ec(_0x2581b5)||_0x2581b5);return _0x2581b5;},ce=(_0x4df2c9,_0x29be0e)=>(_0x12da03,_0x200e67)=>_0x29be0e(_0x12da03,_0x200e67,_0x4df2c9);let F=class extends a[_0x4c4685(0x303)]{constructor(_0x3f47e6,_0xfd5737,_0x3c0b7d){const _0x172f62=_0x4c4685;super(),_(this,_0x172f62(0x274),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x172f62(0x175)]=_0x3f47e6,this[_0x172f62(0x28a)]=_0xfd5737,this[_0x172f62(0x289)]=_0x3c0b7d,this[_0x172f62(0x16e)]());}[_0x4c4685(0x3d3)](){const _0x2c8553=_0x4c4685;super[_0x2c8553(0x3d3)](),this['_entityInit$']['complete'](),this[_0x2c8553(0x274)][_0x2c8553(0x258)](_0x148de0=>_0x148de0['dispose']());}[_0x4c4685(0x16c)](_0x7a59ab){const _0x4f548d=_0x4c4685;return this[_0x4f548d(0x274)]['has'](_0x7a59ab)?this[_0x4f548d(0x274)][_0x4f548d(0x418)](_0x7a59ab)[_0x4f548d(0x2aa)]:this[_0x4f548d(0x2d6)][_0x4f548d(0x249)](I[_0x4f548d(0x190)](_0x1694a3=>_0x1694a3[_0x4f548d(0x179)]===_0x7a59ab),I[_0x4f548d(0x225)](_0x2d8b4f=>_0x2d8b4f[_0x4f548d(0x2aa)]));}[_0x4c4685(0x16e)](){const _0x2e8bfa=_0x4c4685;this[_0x2e8bfa(0x175)][_0x2e8bfa(0x41b)](a[_0x2e8bfa(0x323)][_0x2e8bfa(0x2a6)])[_0x2e8bfa(0x249)](I['takeUntil'](this[_0x2e8bfa(0x374)]))[_0x2e8bfa(0x2e5)](async _0x349494=>{const _0x494c53=_0x2e8bfa,_0x10c7d8=_0x349494[_0x494c53(0x1ca)](),_0x5479f5=await this[_0x494c53(0x366)](_0x10c7d8);this[_0x494c53(0x2d6)][_0x494c53(0x215)](_0x5479f5),this[_0x494c53(0x274)][_0x494c53(0x1d4)](_0x10c7d8,_0x5479f5);}),this[_0x2e8bfa(0x175)][_0x2e8bfa(0x41b)](a[_0x2e8bfa(0x323)][_0x2e8bfa(0x227)])['pipe'](I[_0x2e8bfa(0x206)](this[_0x2e8bfa(0x374)]))['pipe'](I[_0x2e8bfa(0x190)](_0x57225a=>!_0x57225a['getUnitId']()[_0x2e8bfa(0x365)]('__')))[_0x2e8bfa(0x2e5)](async _0x51ba14=>{const _0x3fa97d=_0x2e8bfa,_0x1b2289=_0x51ba14[_0x3fa97d(0x1ca)](),_0x1aec34=await this['_startDocCollabCursor'](_0x1b2289);this[_0x3fa97d(0x2d6)][_0x3fa97d(0x215)](_0x1aec34),this[_0x3fa97d(0x274)][_0x3fa97d(0x1d4)](_0x1b2289,_0x1aec34);}),I[_0x2e8bfa(0x2d3)](this[_0x2e8bfa(0x175)][_0x2e8bfa(0x333)](a['UniverInstanceType'][_0x2e8bfa(0x227)]),this[_0x2e8bfa(0x175)][_0x2e8bfa(0x333)](a[_0x2e8bfa(0x323)][_0x2e8bfa(0x2a6)]))[_0x2e8bfa(0x249)](I['takeUntil'](this['dispose$']))['subscribe'](_0x48a370=>{const _0x2b04bf=_0x2e8bfa,_0x1bbe3e=_0x48a370[_0x2b04bf(0x1ca)](),_0x2d0723=this['_entities'][_0x2b04bf(0x418)](_0x1bbe3e);_0x2d0723&&(_0x2d0723['dispose'](),this['_entities'][_0x2b04bf(0x1be)](_0x1bbe3e));});}async[_0x4c4685(0x366)](_0x503c58){const _0x3abaea=_0x4c4685,_0x2a9e44=await this[_0x3abaea(0x289)]['requireSession'](_0x503c58),_0x55aef1=this['_injector'][_0x3abaea(0x2d5)](ge,_0x503c58,_0x2a9e44);return _0x55aef1['init'](),_0x55aef1;}async['_startDocCollabCursor'](_0x57563e){const _0x3e6660=_0x4c4685,_0x1c53ba=await this['_collabSessionService'][_0x3e6660(0x21f)](_0x57563e),_0x2c0a4b=this[_0x3e6660(0x28a)]['createInstance'](ve,_0x57563e,_0x1c53ba);return _0x2c0a4b['init'](),_0x2c0a4b;}};F=pt([ce(0x0,a[_0x4c4685(0x19d)]),ce(0x1,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),ce(0x2,a[_0x4c4685(0x414)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x20ee22,_0x4cf533){const _0x1594de=_0x4c4685;let {radius:_0x127a4a,width:_0xaeedbf,height:_0x1b8e4d}=_0x4cf533;_0x127a4a=_0x127a4a!=null?_0x127a4a:0x0,_0xaeedbf=_0xaeedbf!=null?_0xaeedbf:0x1e,_0x1b8e4d=_0x1b8e4d!=null?_0x1b8e4d:0x1e;let _0x31c4e8=0x0,_0x668f7b=0x0,_0x31b20c=0x0;_0x31c4e8=_0x668f7b=_0x31b20c=Math[_0x1594de(0x2f9)](_0x127a4a,_0xaeedbf/0x2,_0x1b8e4d/0x2),_0x20ee22[_0x1594de(0x3b8)](),_0x20ee22['moveTo'](_0x31c4e8,0x0),_0x20ee22[_0x1594de(0x286)](_0xaeedbf-_0x668f7b,0x0),_0x20ee22['arc'](_0xaeedbf-_0x668f7b,_0x668f7b,_0x668f7b,Math['PI']*0x3/0x2,0x0,!0x1),_0x20ee22['lineTo'](_0xaeedbf,_0x1b8e4d-_0x31b20c),_0x20ee22['arc'](_0xaeedbf-_0x31b20c,_0x1b8e4d-_0x31b20c,_0x31b20c,0x0,Math['PI']/0x2,!0x1),_0x20ee22[_0x1594de(0x286)](0x0,_0x1b8e4d),_0x20ee22[_0x1594de(0x286)](0x0,_0x31c4e8),_0x20ee22['arc'](_0x31c4e8,_0x31c4e8,_0x31c4e8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x20ee22[_0x1594de(0x1a5)](),_0x4cf533[_0x1594de(0x194)]&&(_0x20ee22['save'](),_0x20ee22['fillStyle']=_0x4cf533[_0x1594de(0x194)],_0x4cf533[_0x1594de(0x1ab)]===_0x1594de(0x324)?_0x20ee22[_0x1594de(0x194)]('evenodd'):_0x20ee22[_0x1594de(0x194)](),_0x20ee22[_0x1594de(0x17e)]());}class re extends C[_0x4c4685(0x3cd)]{constructor(_0x69d8f0,_0x2b7073){const _0x20792e=_0x4c4685;super(_0x69d8f0,_0x2b7073),_(this,_0x20792e(0x240)),_(this,'text'),(this[_0x20792e(0x240)]=_0x2b7073==null?void 0x0:_0x2b7073[_0x20792e(0x240)],this[_0x20792e(0x222)]=_0x2b7073==null?void 0x0:_0x2b7073[_0x20792e(0x222)]);}static[_0x4c4685(0x40f)](_0x1f7d12,_0xd19539){const _0x45d7b0=_0x4c4685,{text:_0x1ff86b,color:_0x2cefce}=_0xd19539;_0x1f7d12[_0x45d7b0(0x3c6)](),_0x1f7d12[_0x45d7b0(0x1d7)]=_0x45d7b0(0x3ea);const _0x47540f=_0x1f7d12[_0x45d7b0(0x3be)](_0x1ff86b)[_0x45d7b0(0x217)],_0x2fb17f=Math[_0x45d7b0(0x2f9)](_0x47540f+0x2*le,Ue);Ot(_0x1f7d12,{'height':X,'radius':0x4,'width':_0x2fb17f,'fill':_0x2cefce}),_0x1f7d12[_0x45d7b0(0x392)]=_0x45d7b0(0x16f);const _0x28c122=le,_0x306ccc=X-Tt,_0x1cb767=Ue-0x2*le;if(_0x47540f>_0x1cb767){let _0x5bdbfa='',_0x4c299a=0x0;for(const _0x13ddcd of _0x1ff86b){const _0x4dc036=_0x1f7d12[_0x45d7b0(0x3be)](_0x13ddcd)[_0x45d7b0(0x217)];if(_0x4c299a+_0x4dc036<=_0x1cb767-_0x1f7d12[_0x45d7b0(0x3be)](_0x45d7b0(0x29c))['width'])_0x5bdbfa+=_0x13ddcd,_0x4c299a+=_0x4dc036;else{_0x5bdbfa+=_0x45d7b0(0x29c);break;}}_0x1f7d12[_0x45d7b0(0x2d7)](_0x5bdbfa,_0x28c122,_0x306ccc);}else _0x1f7d12[_0x45d7b0(0x2d7)](_0x1ff86b,_0x28c122,_0x306ccc);_0x1f7d12['restore']();}[_0x4c4685(0x229)](_0x4534c4){const _0x55c468=_0x4c4685;re[_0x55c468(0x40f)](_0x4534c4,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x54bc93,_0x32f7b8,_0x49a407,_0x55e971){const _0x52cca2=_0x4c4685;_(this,_0x52cca2(0x3ac),[]),_(this,'_anchor',null),_(this,_0x52cca2(0x3e2),null),_(this,_0x52cca2(0x3a4),null),_(this,_0x52cca2(0x21b),null),_(this,_0x52cca2(0x3a7),null),(this[_0x52cca2(0x3cb)]=_0x54bc93,this[_0x52cca2(0x32f)]=_0x32f7b8,this['_docSkeleton']=_0x49a407,this[_0x52cca2(0x377)]=_0x55e971,this[_0x52cca2(0x299)]());}set['_hover'](_0x91936a){const _0xbbde22=_0x4c4685;_0x91936a?(this['_anchorDot']&&this[_0xbbde22(0x3a4)][_0xbbde22(0x406)](),this[_0xbbde22(0x3e2)]&&this['_textBubble'][_0xbbde22(0x22b)]()):(this[_0xbbde22(0x3a4)]&&this[_0xbbde22(0x3a4)][_0xbbde22(0x22b)](),this['_textBubble']&&this[_0xbbde22(0x3e2)]['hide']());}[_0x4c4685(0x3d3)](){const _0x24b4a1=_0x4c4685;for(const _0x9ff930 of this[_0x24b4a1(0x3ac)])_0x9ff930['dispose']();this[_0x24b4a1(0x3e2)]&&this[_0x24b4a1(0x3e2)][_0x24b4a1(0x3d3)](),this[_0x24b4a1(0x3a4)]&&this['_anchorDot'][_0x24b4a1(0x3d3)](),this[_0x24b4a1(0x38e)]&&this[_0x24b4a1(0x38e)]['dispose'](),this[_0x24b4a1(0x3a7)]&&this[_0x24b4a1(0x3a7)]();}[_0x4c4685(0x299)](){const _0x47da9b=_0x4c4685;var _0x3bfcfa;const {_docSkeleton:_0x2885a1,_document:_0x12f12a}=this,{color:_0x4e2f29,name:_0x4ab08a,ranges:_0x4f216e}=this[_0x47da9b(0x3cb)],_0x5adfe1=_0x12f12a[_0x47da9b(0x195)](),{docsLeft:_0x3b6ba5,docsTop:_0x51f8bd}=_0x5adfe1,_0x1faa35=new p[(_0x47da9b(0x3cf))](_0x5adfe1,_0x2885a1);for(const {startOffset:_0x3b8bd4,endOffset:_0x455ad4,rangeType:_0x3762e2,segmentId:_0x360ed3,segmentPage:_0x574798,collapsed:_0x155652,isActive:_0x1e2060}of _0x4f216e){const _0x6dabde=_0x2885a1[_0x47da9b(0x1ce)](_0x3b8bd4,!0x0,_0x360ed3,_0x574798);let _0x4c56b6=_0x2885a1['findNodePositionByCharIndex'](_0x455ad4,!0x0,_0x360ed3,_0x574798);if(_0x4c56b6==null&&(_0x4c56b6=_0x2885a1[_0x47da9b(0x1ce)](_0x455ad4-0x1,!0x1,_0x360ed3,_0x574798)),_0x1e2060){const {contentBoxPointGroup:_0x27b974}=_0x1faa35['getRangePointData'](_0x4c56b6,_0x4c56b6);if(_0x27b974[_0x47da9b(0x393)]===0x0)continue;this[_0x47da9b(0x1e2)](_0x4e2f29,_0x27b974,_0x3b6ba5,_0x51f8bd,_0x4ab08a),this[_0x47da9b(0x3a7)]=this['_handleHover']();}if(_0x6dabde&&_0x4c56b6){if(_0x3762e2===a[_0x47da9b(0x38d)][_0x47da9b(0x391)]){const _0x2dc92c=new p['NodePositionConvertToRectRange'](_0x5adfe1,_0x2885a1),{pointGroup:_0x2a0617}=(_0x3bfcfa=_0x2dc92c[_0x47da9b(0x36e)](_0x6dabde,_0x4c56b6))!=null?_0x3bfcfa:{};if(_0x2a0617==null||_0x2a0617[_0x47da9b(0x393)]===0x0)continue;this[_0x47da9b(0x405)](_0x4e2f29,_0x2a0617,_0x3b6ba5,_0x51f8bd);}else{if(!_0x155652){const {borderBoxPointGroup:_0x3a0d13}=_0x1faa35['getRangePointData'](_0x6dabde,_0x4c56b6);if(_0x3a0d13[_0x47da9b(0x393)]===0x0)continue;this[_0x47da9b(0x20e)](_0x4e2f29,_0x3a0d13,_0x3b6ba5,_0x51f8bd);}}}}}[_0x4c4685(0x1e2)](_0x2cb1ed,_0x4a479e,_0x131ebd,_0x1c7c8d,_0x7a0618){const _0x99e054=_0x4c4685,_0x517f21=this[_0x99e054(0x16d)](_0x4a479e),{left:_0x5af54c,top:_0x1f0184,height:_0x12c63a}=_0x517f21,_0x44550e=this[_0x99e054(0x348)](),_0x875220=Nt/_0x44550e,_0xe8958c=new C[(_0x99e054(0x242))](_e+a[_0x99e054(0x331)](H),{'left':_0x5af54c+_0x131ebd-_0x875220,'top':_0x1f0184+_0x1c7c8d,'height':_0x12c63a,'width':Dt,'fill':_0x2cb1ed||C[_0x99e054(0x428)](a['COLORS'][_0x99e054(0x1f4)],0x0),'strokeWidth':_0x875220,'stroke':Ut,'evented':!0x0});this[_0x99e054(0x38e)]=_0xe8958c,this['_scene'][_0x99e054(0x3a6)](_0xe8958c,p[_0x99e054(0x1b1)]);const _0x2e637f=new C['Rect'](_e+a[_0x99e054(0x331)](H),{'left':_0x5af54c+_0x131ebd-_0x875220,'top':_0x1f0184+_0x1c7c8d-he/0x2,'height':he,'width':he,'fill':_0x2cb1ed||C[_0x99e054(0x428)](a[_0x99e054(0x3ed)][_0x99e054(0x1f4)],0x0),'strokeWidth':0x0,'stroke':_0x2cb1ed||C[_0x99e054(0x428)](a[_0x99e054(0x3ed)]['black'],0x0),'evented':!0x1});this[_0x99e054(0x3a4)]=_0x2e637f,this[_0x99e054(0x32f)]['addObject'](_0x2e637f,p['TEXT_RANGE_LAYER_INDEX']);const _0x10d2fd=new re(_e+a['generateRandomId'](H),{'left':_0x5af54c+_0x131ebd-_0x875220,'top':_0x1f0184+_0x1c7c8d-X,'text':_0x7a0618,'color':_0x2cb1ed});this[_0x99e054(0x3e2)]=_0x10d2fd,this[_0x99e054(0x32f)][_0x99e054(0x3a6)](_0x10d2fd,p[_0x99e054(0x1b1)]),this['_hover']=!0x1;}[_0x4c4685(0x1dd)](){const _0x345a1d=_0x4c4685,_0x479046=this[_0x345a1d(0x38e)][_0x345a1d(0x1d3)][_0x345a1d(0x3a5)](()=>{const _0x124167=_0x345a1d;this[_0x124167(0x310)]=!0x0;}),_0x4ec05b=this[_0x345a1d(0x38e)][_0x345a1d(0x293)][_0x345a1d(0x3a5)](()=>{const _0x58cb41=_0x345a1d;this[_0x58cb41(0x21b)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x58263c=_0x58cb41;this[_0x58263c(0x310)]=!0x1;},0x7d0);});return()=>{const _0xe45b21=_0x345a1d;_0x479046[_0xe45b21(0x1c7)](),_0x4ec05b[_0xe45b21(0x1c7)]();};}[_0x4c4685(0x20e)](_0x56fa60,_0xdb75e6,_0x26a953,_0x5dd604){const _0x9bb654=_0x4c4685,_0x5d0a5e=new a['ColorKit'](_0x56fa60)['setAlpha'](0.2)[_0x9bb654(0x349)](),_0x1f5dd4=new C['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0xdb75e6,'fill':_0x5d0a5e||C[_0x9bb654(0x428)](a[_0x9bb654(0x3ed)]['black'],0.2),'left':_0x26a953,'top':_0x5dd604,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1f5dd4),this['_scene'][_0x9bb654(0x3a6)](_0x1f5dd4,p[_0x9bb654(0x1b1)]);}[_0x4c4685(0x405)](_0xcc002b,_0x3eb25a,_0x51f29f,_0x5f2211){const _0x26ffb7=_0x4c4685,_0x33a559=new a[(_0x26ffb7(0x2c9))](_0xcc002b)[_0x26ffb7(0x3ce)](0.2)['toRgbString'](),_0x342792=new C[(_0x26ffb7(0x282))](bt+a[_0x26ffb7(0x331)](H),{'pointsGroup':_0x3eb25a,'fill':_0x33a559||C[_0x26ffb7(0x428)](a[_0x26ffb7(0x3ed)][_0x26ffb7(0x1f4)],0.2),'left':_0x51f29f,'top':_0x5f2211,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26ffb7(0x3ac)][_0x26ffb7(0x2cc)](_0x342792),this[_0x26ffb7(0x32f)][_0x26ffb7(0x3a6)](_0x342792,p['TEXT_RANGE_LAYER_INDEX']);}[_0x4c4685(0x16d)](_0x155c15){const _0x87ad99=_0x155c15[0x0],_0x314b90=_0x87ad99[0x0],_0x7a96a0=_0x87ad99[0x2],{x:_0x3fd276,y:_0x37488f}=_0x314b90,{x:_0x313b33,y:_0xcadaa8}=_0x7a96a0;return{'left':_0x3fd276,'top':_0x37488f,'width':_0x313b33-_0x3fd276,'height':_0xcadaa8-_0x37488f};}[_0x4c4685(0x348)](){const _0x45ed4b=_0x4c4685,{scaleX:_0x2b148b,scaleY:_0x32ca50}=this['_scene']['getAncestorScale']();return Math[_0x45ed4b(0x26c)](_0x2b148b,_0x32ca50);}}var Lt=Object[_0x4c4685(0x1b0)],Mt=(_0x46ee2b,_0x3f064a,_0x505cbc,_0x319534)=>{const _0x4232d4=_0x4c4685;for(var _0x1b6f1a=_0x319534>0x1?void 0x0:_0x319534?Lt(_0x3f064a,_0x505cbc):_0x3f064a,_0x12dba7=_0x46ee2b[_0x4232d4(0x393)]-0x1,_0x4dd60b;_0x12dba7>=0x0;_0x12dba7--)(_0x4dd60b=_0x46ee2b[_0x12dba7])&&(_0x1b6f1a=_0x4dd60b(_0x1b6f1a)||_0x1b6f1a);return _0x1b6f1a;},q=(_0x18efbb,_0xe107d1)=>(_0x38ef95,_0x232a8a)=>_0xe107d1(_0x38ef95,_0x232a8a,_0x18efbb);let Ee=class extends a[_0x4c4685(0x303)]{constructor(_0x2469e5,_0x2d072a,_0x572da0,_0x323a26,_0x7133f2){const _0x1952ff=_0x4c4685;super(),_(this,_0x1952ff(0x311),[]),_(this,'_cursors',[]),(this[_0x1952ff(0x288)]=_0x2469e5,this[_0x1952ff(0x3f1)]=_0x2d072a,this[_0x1952ff(0x3ad)]=_0x572da0,this['_commandService']=_0x323a26,this[_0x1952ff(0x2db)]=_0x7133f2,this[_0x1952ff(0x16e)]());}['_init'](){const _0x44fbe9=_0x4c4685,_0x1f8719=this[_0x44fbe9(0x288)][_0x44fbe9(0x1a1)],_0x11a6f0=this['_docSkeletonManagerService'];this[_0x44fbe9(0x1c2)](I['combineLatest']([this[_0x44fbe9(0x3ad)][_0x44fbe9(0x16c)](_0x1f8719),this[_0x44fbe9(0x2db)][_0x44fbe9(0x28d)]])[_0x44fbe9(0x249)]($[_0x44fbe9(0x36a)](([_0x2accaa,_0x16f86b])=>({'skeleton':_0x11a6f0[_0x44fbe9(0x2df)](),'cursors':[..._0x2accaa[_0x44fbe9(0x335)]()][_0x44fbe9(0x36d)](_0x31185e=>({..._0x31185e,'color':this[_0x44fbe9(0x2db)][_0x44fbe9(0x40a)](_0x31185e[_0x44fbe9(0x240)])}))})))[_0x44fbe9(0x2e5)](_0x488b52=>{const _0xbd6fbb=_0x44fbe9;if(this[_0xbd6fbb(0x415)](),_0x488b52){const {skeleton:_0x4cfd28,cursors:_0x12ee21}=_0x488b52;this['_updateCollabCursors'](_0x4cfd28,_0x12ee21);}})),this[_0x44fbe9(0x264)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x263e4c,_0x52ec7c){const _0x273894=_0x4c4685,{scene:_0x4824dd,mainComponent:_0xd43a01}=this[_0x273894(0x288)],_0x4466f7=_0x52ec7c[_0x273894(0x36a)](_0x1caf00=>new Le(_0x1caf00,_0x4824dd,_0x263e4c,_0xd43a01));this[_0x273894(0x311)]=_0x4466f7,this[_0x273894(0x2ab)]=_0x52ec7c;}[_0x4c4685(0x181)](){const _0x5ced05=_0x4c4685;this[_0x5ced05(0x415)]();const {scene:_0x463007,mainComponent:_0x50263e}=this[_0x5ced05(0x288)],_0x3d3f8a=this[_0x5ced05(0x3f1)][_0x5ced05(0x2df)](),_0xb75985=this[_0x5ced05(0x2ab)]['map'](_0x562ebc=>new Le(_0x562ebc,_0x463007,_0x3d3f8a,_0x50263e));this[_0x5ced05(0x311)]=_0xb75985;}[_0x4c4685(0x415)](){const _0x1b73e2=_0x4c4685;this['_cursorShapes'][_0x1b73e2(0x258)](_0x3d9798=>_0x3d9798['dispose']()),this['_cursorShapes']=[];}[_0x4c4685(0x1d6)](){const _0x2d8941=_0x4c4685,_0x12915d=[p[_0x2d8941(0x37c)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x316a50=>{const _0x5a3cef=_0x2d8941;_0x12915d['includes'](_0x316a50['id'])&&_0x316a50[_0x5a3cef(0x18a)][_0x5a3cef(0x1a1)]===this[_0x5a3cef(0x288)][_0x5a3cef(0x1a1)]&&this[_0x5a3cef(0x181)]();}));}[_0x4c4685(0x264)](){const _0x25a756=_0x4c4685;this[_0x25a756(0x1c2)](a['fromEventSubject'](this['_context'][_0x25a756(0x1e4)][_0x25a756(0x427)])[_0x25a756(0x249)]($['filter'](_0x509a11=>_0x509a11[_0x25a756(0x180)]===C[_0x25a756(0x3e1)][_0x25a756(0x2d9)]),$['throttleTime'](0x10))[_0x25a756(0x2e5)](()=>{const _0x34e27d=_0x25a756;this[_0x34e27d(0x181)]();}));}};Ee=Mt([q(0x1,a[_0x4c4685(0x414)](V[_0x4c4685(0x380)])),q(0x2,a[_0x4c4685(0x414)](F)),q(0x3,a[_0x4c4685(0x3c5)]),q(0x4,a[_0x4c4685(0x414)](a[_0x4c4685(0x422)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4c4685(0x3cd)]{constructor(_0x1029ff,_0x1748c4){const _0x4bb5fa=_0x4c4685;super(_0x1029ff,_0x1748c4),_(this,_0x4bb5fa(0x256)),_(this,_0x4bb5fa(0x2d2),!0x1),_(this,'_range'),_(this,_0x4bb5fa(0x234),''),_(this,_0x4bb5fa(0x23a),'top'),_(this,_0x4bb5fa(0x3f0)),(_0x1748c4&&this[_0x4bb5fa(0x352)](_0x1748c4),this[_0x4bb5fa(0x1d3)][_0x4bb5fa(0x3a5)](()=>this[_0x4bb5fa(0x352)]({'hovered':!0x0})),this[_0x4bb5fa(0x293)][_0x4bb5fa(0x3a5)](()=>this[_0x4bb5fa(0x352)]({'hovered':!0x1})));}[_0x4c4685(0x352)](_0x2828cf){const _0xe1874=_0x4c4685;var _0x4caacf,_0x435b7b,_0x4562bb,_0x4c74f5,_0x25ba5d,_0x4801f4;this[_0xe1874(0x256)]=(_0x4caacf=_0x2828cf['color'])!=null?_0x4caacf:this[_0xe1874(0x256)],this['_hovered']=(_0x435b7b=_0x2828cf['hovered'])!=null?_0x435b7b:this[_0xe1874(0x2d2)],this[_0xe1874(0x2e3)]=(_0x4562bb=_0x2828cf['range'])!=null?_0x4562bb:this[_0xe1874(0x2e3)],this[_0xe1874(0x234)]=(_0x4c74f5=_0x2828cf[_0xe1874(0x2c8)])!=null?_0x4c74f5:this[_0xe1874(0x234)],this[_0xe1874(0x23a)]=(_0x25ba5d=_0x2828cf[_0xe1874(0x3b6)])!=null?_0x25ba5d:this[_0xe1874(0x23a)],this[_0xe1874(0x3f0)]=(_0x4801f4=_0x2828cf[_0xe1874(0x3b4)])!=null?_0x4801f4:this[_0xe1874(0x3f0)],this[_0xe1874(0x170)]({'width':_0x2828cf['width'],'height':_0x2828cf[_0xe1874(0x24d)]});}[_0x4c4685(0x298)](_0x176d55){const _0x3e469f=_0x4c4685,{row:_0x326fcd,column:_0x29607a}=_0x176d55;if(_0x326fcd>=this[_0x3e469f(0x2e3)][_0x3e469f(0x1f1)]&&_0x326fcd<=this[_0x3e469f(0x2e3)][_0x3e469f(0x315)]&&_0x29607a>=this[_0x3e469f(0x2e3)][_0x3e469f(0x253)]&&_0x29607a<=this[_0x3e469f(0x2e3)][_0x3e469f(0x345)]){this[_0x3e469f(0x352)]({'hovered':!0x0});return;}this[_0x3e469f(0x352)]({'hovered':!0x1});}[_0x4c4685(0x33d)](_0x3ca065){return!0x1;}[_0x4c4685(0x229)](_0x574ac8){const _0x2cb406=_0x4c4685;C[_0x2cb406(0x242)]['drawWith'](_0x574ac8,{'width':this['width'],'height':this[_0x2cb406(0x24d)],'strokeWidth':Pt,'stroke':this[_0x2cb406(0x256)],'evented':!0x1,'fill':this[_0x2cb406(0x3f0)]}),this['_hovered']&&(_0x574ac8[_0x2cb406(0x3c6)](),_0x574ac8['transform'](0x1,0x0,0x0,0x1,this[_0x2cb406(0x217)],this[_0x2cb406(0x23a)]===_0x2cb406(0x39f)?0x0:-X),re[_0x2cb406(0x40f)](_0x574ac8,{'text':this[_0x2cb406(0x234)],'color':this[_0x2cb406(0x256)]}),_0x574ac8['restore']());}}var wt=Object[_0x4c4685(0x1b0)],yt=(_0x25f305,_0x16625b,_0x8eba49,_0x328d0e)=>{const _0x5de6b7=_0x4c4685;for(var _0x5e2de7=_0x328d0e>0x1?void 0x0:_0x328d0e?wt(_0x16625b,_0x8eba49):_0x16625b,_0x49a9eb=_0x25f305[_0x5de6b7(0x393)]-0x1,_0x1fd9fb;_0x49a9eb>=0x0;_0x49a9eb--)(_0x1fd9fb=_0x25f305[_0x49a9eb])&&(_0x5e2de7=_0x1fd9fb(_0x5e2de7)||_0x5e2de7);return _0x5e2de7;},ue=(_0x23d3ef,_0x54a2cd)=>(_0x54a94c,_0x43743d)=>_0x54a2cd(_0x54a94c,_0x43743d,_0x23d3ef);const $t=0x1389;let Ce=class extends a[_0x4c4685(0x303)]{constructor(_0x252cc6,_0x516e89,_0x3bd50b,_0x28c05f){const _0x416674=_0x4c4685;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this[_0x416674(0x288)]=_0x252cc6,this[_0x416674(0x17b)]=_0x516e89,this[_0x416674(0x3ad)]=_0x3bd50b,this[_0x416674(0x2db)]=_0x28c05f,this['_init']());}[_0x4c4685(0x16e)](){const _0x4c6cbc=_0x4c4685;this[_0x4c6cbc(0x17b)]['currentSkeleton$'][_0x4c6cbc(0x249)]($[_0x4c6cbc(0x206)](this['dispose$']),$['switchMap'](_0xe2b4f1=>{const _0x172142=_0x4c6cbc;if(_0xe2b4f1){const _0x326dd6=_0xe2b4f1[_0x172142(0x266)];return I[_0x172142(0x1fb)](this[_0x172142(0x3ad)][_0x172142(0x16c)](this[_0x172142(0x288)]['unitId']),this[_0x172142(0x2db)]['currentTheme$'])[_0x172142(0x249)]($[_0x172142(0x36a)](([_0x3283f3,_0x5ea659])=>{const _0x3ae483=_0x172142,_0x1f86ff=new Map();return _0x3283f3[_0x3ae483(0x258)]((_0x462df8,_0x2e0e43)=>{const _0x4437db=_0x3ae483;if(_0x462df8['sheetID']===_0x326dd6){const _0xc24d={..._0x462df8};_0xc24d[_0x4437db(0x240)]=this[_0x4437db(0x2db)][_0x4437db(0x40a)](_0x462df8[_0x4437db(0x240)]),_0x1f86ff[_0x4437db(0x1d4)](_0x2e0e43,_0xc24d);}}),{'skeleton':_0xe2b4f1,'cursors':_0x1f86ff};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x4c6cbc(0x2e5)](({skeleton:_0x29d58d,cursors:_0x3c1a80})=>{const _0x30b61b=_0x4c6cbc;this[_0x30b61b(0x415)](),_0x29d58d&&this['_updateCollabCursors'](_0x29d58d,_0x3c1a80);}),this[_0x4c6cbc(0x17b)][_0x4c6cbc(0x2c5)]['subscribe'](_0x271524=>{const _0x543541=_0x4c6cbc;if(_0x271524==null)return;const {skeleton:_0x3caaac}=_0x271524,{scene:_0x14ea54}=this[_0x543541(0x288)];_0x14ea54[_0x543541(0x3bb)]['subscribeEvent'](a[_0x543541(0x3d9)](_0x235f62=>{const _0x5c2417=_0x543541;var _0x39ab5a,_0x5e0365;const {offsetX:_0x320059,offsetY:_0x43a826}=_0x235f62,{x:_0x37c4fc,y:_0x1a007f}=_0x14ea54[_0x5c2417(0x35c)](C['Vector2'][_0x5c2417(0x3e6)]([_0x320059,_0x43a826])),{scaleX:_0x3daf86,scaleY:_0x1c900c}=_0x14ea54[_0x5c2417(0x408)](),_0xd20d53=_0x14ea54[_0x5c2417(0x2a8)](C[_0x5c2417(0x396)][_0x5c2417(0x32b)]),_0x3b4baf=_0x14ea54[_0x5c2417(0x22d)](C['Vector2'][_0x5c2417(0x3e6)]([_0x37c4fc,_0x1a007f]),_0xd20d53),_0x19d7d2=_0x3caaac['getCellPositionByOffset'](_0x320059,_0x43a826,_0x3daf86,_0x1c900c,_0x3b4baf);((_0x39ab5a=this[_0x5c2417(0x312)])==null?void 0x0:_0x39ab5a[_0x5c2417(0x41d)])===_0x19d7d2['column']&&((_0x5e0365=this[_0x5c2417(0x312)])==null?void 0x0:_0x5e0365[_0x5c2417(0x236)])===_0x19d7d2[_0x5c2417(0x236)]||this[_0x5c2417(0x2ab)][_0x5c2417(0x258)](_0x2c1f50=>{const _0x4ff316=_0x5c2417;_0x2c1f50[_0x4ff316(0x298)](_0x19d7d2);});},0x64));});}[_0x4c4685(0x35e)](_0x2c1ed2,_0x5c7e49){const _0x5428bc=_0x4c4685;var _0x4deaf6;const _0x54ca78=(_0x4deaf6=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x4deaf6[_0x5428bc(0x255)];if(!_0x54ca78)return;const _0x2f17ab=this[_0x5428bc(0x1bb)]();if(!_0x2f17ab)return;this[_0x5428bc(0x2ab)]['forEach'](_0x2ca5f0=>{const _0x22084a=_0x5428bc;_0x2ca5f0[_0x22084a(0x32c)]();});const {scene:_0x42b529}=_0x2f17ab,_0x51f528=xt(Array[_0x5428bc(0x2f2)](_0x5c7e49[_0x5428bc(0x335)]()))[_0x5428bc(0x36a)](_0x369ac1=>{const _0x5c441e=_0x5428bc,{color:_0x1e8963,range:_0x2c44aa,name:_0xf74140,selection:_0x3a547a,sheetID:_0x1745d6}=_0x369ac1,{startColumn:_0x15c87e,startRow:_0x5516c7,endColumn:_0x33c7cf,endRow:_0x52e185}=_0x2c44aa,_0x1e2f6b=J[_0x5c441e(0x2be)](_0x5516c7,_0x15c87e,_0x42b529,_0x54ca78),_0x13776c=J[_0x5c441e(0x2be)](_0x52e185,_0x33c7cf,_0x42b529,_0x54ca78),{columnHeaderHeightAndMarginTop:_0x346c78}=_0x54ca78,{startX:_0x3459da,startY:_0x1f96a2}=_0x1e2f6b,{endX:_0x25847a,endY:_0x41f59b}=_0x13776c,_0x40555d=_0x25847a-_0x3459da,_0x1a133b=_0x41f59b-_0x1f96a2,_0x1fd42b={'labelPosition':_0x1f96a2-_0x346c78>=X?'top':_0x5c441e(0x39f),'sheetID':_0x1745d6,'range':_0x2c44aa,'color':_0x1e8963,'name':_0xf74140,'selection':_0x3a547a,'left':_0x3459da,'top':_0x1f96a2,'width':_0x40555d,'height':_0x1a133b,'evented':!0x1,'zIndex':$t};return new je(_0xf74140,_0x1fd42b);});_0x42b529['addObjects'](_0x51f528,At),this[_0x5428bc(0x2ab)]=new Set(_0x51f528);}[_0x4c4685(0x415)](){const _0x46c7c7=_0x4c4685;var _0x1e6863;(_0x1e6863=this[_0x46c7c7(0x2ab)])==null||_0x1e6863[_0x46c7c7(0x258)](_0x469aff=>_0x469aff[_0x46c7c7(0x3d3)]());}[_0x4c4685(0x1bb)](){const _0x11382d=_0x4c4685;return J[_0x11382d(0x22c)](this['_context'][_0x11382d(0x2ad)],this[_0x11382d(0x288)]);}};Ce=yt([ue(0x1,a['Inject'](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x4c4685(0x414)](F)),ue(0x3,a[_0x4c4685(0x414)](a[_0x4c4685(0x422)]))],Ce);function xt(_0x990ef8){const _0x3e2205=_0x4c4685,_0x38f4ca=new Map();return _0x990ef8[_0x3e2205(0x258)](_0x73036c=>{const _0x2c7a48=_0x3e2205;if(_0x38f4ca[_0x2c7a48(0x39b)](_0x73036c[_0x2c7a48(0x208)])){const _0x5663c3=_0x38f4ca['get'](_0x73036c[_0x2c7a48(0x208)]);_0x5663c3[_0x2c7a48(0x2c8)]+=',\x20'+_0x73036c[_0x2c7a48(0x2c8)];}else _0x38f4ca['set'](_0x73036c[_0x2c7a48(0x208)],_0x73036c);}),Array[_0x3e2205(0x2f2)](_0x38f4ca[_0x3e2205(0x335)]());}var Bt=Object[_0x4c4685(0x1b0)],Ft=(_0x188c7e,_0x49eda4,_0x346b0c,_0x5357d2)=>{const _0x2d1fcf=_0x4c4685;for(var _0x137b31=_0x5357d2>0x1?void 0x0:_0x5357d2?Bt(_0x49eda4,_0x346b0c):_0x49eda4,_0x302979=_0x188c7e[_0x2d1fcf(0x393)]-0x1,_0x556528;_0x302979>=0x0;_0x302979--)(_0x556528=_0x188c7e[_0x302979])&&(_0x137b31=_0x556528(_0x137b31)||_0x137b31);return _0x137b31;},y=(_0x3ddf31,_0x4c1a62)=>(_0x35683d,_0x374c4f)=>_0x4c1a62(_0x35683d,_0x374c4f,_0x3ddf31);function _0x392f(){const _0xf7fbb1=['_initStatusComponent','svg','_taskIds','data','USERS_LEAVE','handleIRemoveCol','_hasFormulaInDirtyRanges','triggerDblclick','0\x200\x2017\x2016','REDEMPTION_USER_NOT_ELIGIBLE','DesktopCollaborationStatusDisplayController','roomMembers','off-line-icon_clip0_910_343','_transformUndoRedoStack','_collabCursorState$','endColumn','YUUMI_CONNECTOR_URL_NOT_FOUND','_urlService','_getScale','toRgbString','popstate','univerjs-icon\x20univerjs-icon-','includes','_onCursorDelete','_uiPartsService','_messageService','setConfig','currentUsage','setShapeProps','_clearOtherTimers','[CollaborationDataLoaderController]','transformRemoteChangeset','toDisposable','_ensureSubject','IURLService','PENDING','_unitOnClients','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getRelativeToViewportCoord','SetFormulaCalculationNotificationMutation','_updateCollabCursors','CollaborationSessionService','activeSheet$','APPLY_REJECT','_collaborationController','purple.300','unshift','startsWith','_startSheetCollabCursor','_cachedData','CHANGESET_REVISION_CONFILICT','189261lOdiUw','map','WECHAT_HAS_BEEN_BOUND','CLOSE_ROOM','flatMap','getRangePointData','YUUMI_ASYNCIO_CANCELLED','registerBeforeClose','_scheduleHeartbeat','updateOfflineData','enableLocalCache','dispose$','trim','0\x200\x2016\x2016','_document','_httpService','loadOfflineData','ENTITLE_INSUFFICIENT_QUOTA','registerComponent','SetDocZoomRatioOperation','BehaviorSubject','collabStatus.fetchMiss','_registerDependencies','DocSkeletonManagerService','_syncEditingCollabCursorService','then','lineno','_status$','_docTransformIMECacheService','clipPath','filename','USER_NOT_INVITED_CODE','touchDependencies','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','YUUMI_SUBSCRIPTION_NOT_FOUND','_updateSubUnitFromURLParams','DOC_RANGE_TYPE','_anchor','CONFLICT','UPDATE_CURSOR','RECT','fillStyle','length','LocaleService','YUUMI_NO_CUBOID_FOR_QUESTION','SHEET_VIEWPORT_KEY','_disabled','YUUMI_URL_COL_OUT_OF_RANGE','UNAUTHENTICATED','onStarting','has','Tooltip','send','blue.400','bottom','totalFormulasToCalculate','EMAIL_VERIFY_CODE_MISMATCH','DisposableCollection','YUUMI_AI_RUN_FAILED','_anchorDot','subscribeEvent','addObject','_eventUnsubscribe','ENTITLE_DUP_SUBSCRIPTION','_checkCalculationAvailable','IImageIoService','addClipboardHook','_shapes','_collabCursorController','Tools','MoveRangeCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','WebSocketService','RemoveColCommandId','doc.mutation.rich-text-editing','backgroundColor','url(#on-line-icon_clip0_910_349)','labelPosition','_send','beginPath','whenReady','ACTIVE_UNIT_EVENT_CHANNEL','onPointerMove$','_currentUsage','saveOfflineData','measureText','collabCursorState$','undoState','_collaborationUIEventService','session.connection-failed','REDEMPTION_CODE_FULLY_REDEEMED','idSuffix','ICommandService','save','1em','pushState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','stage','_cursor','tag','Shape','setAlpha','NodePositionConvertToCursor','asObservable','3MYvDGu','DataLoaderService','dispose','current','dirtyRanges','deepClone','BrowserCollaborationSocketService','round','debounce','isTransformMutationsWithChangesetSuccess','START_CALCULATION','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ALREADY_EXISTS','isActive','_transformPreviousActiveRange','_roomMembers$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_textBubble','/universer-api/license/formula/limit/done','FormulaExecutedStateType','invokeId','FromArray','defs','getUniverSheetInstance','RefRangeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','white','roomMembers$','COLORS','join','result','_backgroundColor','_docSkeletonManagerService','ENTITLE_REPORT_LIMIT_EXCEED','SetFormulaCalculationStartMutation','Loading','collab-client.tooltip.reconnect','div','location','replace','shareReplay','78266eeyTjC','runId','AUTHORIZE_CODE_ILLEGAL','setUndoRedoMutationParamsCache','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','some','stringify','_docSyncEditingCollabCursorService','RemoveRowCommandId','_memberService','2405375llODjl','_drawRectRange','hide','DATA_SOURCE_TOO_LARGE','getAncestorScale','_scheduleSaving','getColorFromTheme','_updateURLWithCurrentState','_docClipboardService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','UniverCollaborationClientUIPlugin','drawWith','_configService','m2Prime','override','defIds','Inject','_removeCollabCursors','_renderManagerService','Warning','get','_selfUnitIDs','_localStorageService','getTypeOfUnitAdded$','none','column','SUBMIT_CHANGESET_TIMEOUT','getMemberID','registerRenderModule','DEFAULT_WS_SESSION_TICKET_URL','ThemeService','getDocRanges','handleInsertRangeMoveDown','ENTITLE_CHAT_LIMIT_EXCEED','OffLineIcon','onTransformChange$','getColor','substring','body','getParam','InsertRangeMoveDownCommandId','YUUMI_UNABLE_LOAD_URL','FormulaExecuteStageType','transformMutation','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getCollabCursors$','_getAnchorBounding','_init','#FFF','transformByState','INVITE_CODE_HAS_BEEN_UES','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','toString','SOCKET_FAILED_RETRY','_univerInstanceService','SNAPSHOT_INVALID_SNAPSHOT','unhandledrejection','saveImage','unitID','onCommandExecuted','_sheetSkeletonManagerService','PAYMENT_CHANNEL_NOT_SUPPORT','_refRangeService','restore','getMergeData','type','_refreshCollabCursors','entityInit$','useDependency','getConfig','_doCreateSocket','INVITE_CODE_REQUIRED','CollaborationUIEventId','saveTaskMap','history','params','executeCommand','redoState','parseInt','_localeService','NO_OTHER_CLIENTS_EDITING','filter','transformIMECache','handleDeleteRangeMoveLeft','_handleHeartbeatEvent','fill','getOffsetConfig','Failed','sessionTicket','OnLineIcon','startFormulaLimitUrl','ENSURE_SNAPSHOT_EXECUTION','_updateLocalCursor','collabStatus.notCollab','IUniverInstanceService','Rectangle','docStateChange$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','unitId','_removeClearOtherTimer','session.collaboration-timeout','[LogService\x20Error]:\x20','closePath','96371lYlCSw','href','339255nEISXB','getSheetId','_getSaveTimeout','fillRule','now','symbol','pluginName','ENTITLE_NEED_BILLING_ADDRESS','getOwnPropertyDescriptor','TEXT_RANGE_LAYER_INDEX','session.will-retry','setParam','_applyCommand','red.300','_colorAssignService','syncEditingCollabCursor','PY_RUNTIME_SCRIPT_ERROR','with','formula.calculation.unable','_getSheetObject','_heartbeatTimer','[Window\x20Error]:\x20','delete','UniverCollaborationClientPlugin','removeEventListener','NOT_FOUND','disposeWithMe','UNDEFINED','setItem','WebURLService','IConfigService','unsubscribe','LICENSE_DISTRO_REJECTED','add','getUnitId','subunit','collaboration.single-unit.warning','application/json','findNodePositionByCharIndex','getUnit','YUUMI_RATE_OVER_LIMIT','createElement','_session','onPointerEnter$','set','NOT_COLLAB','_initCommandExecutedListener','font','TEXT','_saveTaskMap','getRenderById','HEADER_MENU','MOBILE_VERIFY_CODE_MISMATCH','_handleHover','_lastResponseTimestamp','ranges','univer-flex\x20univer-items-center','yellow.400','_drawAnchor','memberID','engine','exhaustSavingTask','http://www.w3.org/2000/svg','stageInfo','_scheduleClearOtherTimer','executionId','IMessageService','_setupBeforeClosingHandler','CollaborationDataLoaderController','MOBILE_HAS_BEEN_BOUND','_toggleOnline','ONLINE','REDEMPTION_INVALID_CODE','startRow','CollaborationController','defineProperty','black','_pollingInterval','handleInsertCol','APPLY_NON_SEQUENTIAL_REVISION','_docTransformStateCacheService','clsx','_cursorInfo$','combineLatest','InsertRowCommandId','loadUnit','searchParams','currentColor','attrs','size','catch','message','MessageType','storage','takeUntil','IRemoteInstanceService','selection','displayName','APPLY_PERMISSION_DENIED','range','transformStateCache','handleInsertRow','_drawTextRange','clearTimeout','HTTPService','find','formula.calculation.started','connectInjector','toStringTag','next','collaboration.closeRoom','width','INVITE_CODE_ALREADY_BOUND','FETCH_MISS','WebBrowserSingleActiveUnitService','_hideTimer','mutations','assignAColorForMemberID','_config','requireSession','textRanges','useObservable','text','setActiveRange','INTERNAL_ERROR','switchMap','getSheetBySheetId','UNIVER_DOC','_logService','_draw','on-line-icon','show','getSheetObject','getVpScrollXYInfoByPosToVp','colorChannel1','getLocalCacheKey','IUIPartsService','entries','unload','OTHER_CLIENTS_EDITING','_name','6DGScoQ','row','mergeOverrideWithDependencies','APPLY_REVISION_CONFILICT','_docTransformSelectionsService','_labelPosition','_initUserListener','_assignedColors','runRefRangeMutations','jsxs','20gLLuCi','color','Error','Rect','replaceState','_clearPolling','_createSocketURL','xlink:href','_beforeCloseService','_initEvent','pipe','_getMergeRange','_onCursorUpdate','addEventListener','height','_uploadLog','_dataLoaderService','_instanceService','YUUMI_ALL_TABLES_IS_INVALID','[RemoteUniscriptService]:\x20no\x20focused\x20unit','startColumn','INVALID_ARGUMENT','skeleton','_color','248PutQtk','forEach','ILogService','_commandService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','SNAPSHOT_HAS_BEEN_REMOVED','on-line-icon_clip0_910_349','Disposable','_getSessionTicket','_getFormulaLimitStatus','forwardRef','handleInsertRangeMoveRight','LICENSE_IMPORT_SIZE_EXCEEDED','_initResize','permission.content','sheetId','_setupSubUnitSync','DocIMEInputManagerService','origin','permission.title','DocStateChangeManagerService','max','registerDependencies','getCurrentRevOfUnit','IDocClipboardService','univer-mr-2\x20univer-flex\x20univer-text-xl','editingUnit','PERMISSION_DENIED','SheetCollabCursorShape','_entities','_initUnhandledRejectionListener','createIdentifier','getActiveRange','Injector','ITransformService','CURRENT_STATUS_CANNOT_OPERATE','complete','_docStateChangeManagerService','743165FTpJom','7459360gdALWG','CollaborationStatus','/universer-api/frontend/logs','transformMutationsWithChangeset','RegularPolygon','UniverIcon','_initWindowErrorListener','newValue','lineTo','m1Prime','_context','_collabSessionService','_injector','_localCacheService','APPLY_DUPLICATED','currentTheme$','jiqing.500','_initCommandInterceptor','getUnitStatus$','/universer-api/license/formula/limit/start','EMAIL_HAS_BEEN_BOUND','onPointerLeave$','JOIN_ROOM_FAILED','UnitStatus','jsx','cursorInfo','onMouseMove','_render','LICENSE_MAX_UNITS_EXCEEDED','_showGuardMessage','...','collaboration-client.offline-data-not-saved','url(#$1','LICENSE_EXPORT_SIZE_EXCEEDED','collabStatus.syncing','RevisionService','588GaooRa','_revisionService','isFormulaId','_online','UNIVER_SHEET','debug','getViewport','ERROR_AGAIN','cursorInfo$','_cursors','_setFormulaLimitStatus','unit','getActiveSheet','USER_IS_ANONYMOUS','_initDependencies','handleDeleteRangeMoveUp','selections','focused$','BuiltInUIPart','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_notificationService','EffectRefRangId','debounceTime','isFormulaString','imageSourceType','CommandType','getMember','RemoteUniscriptService','getCoordByCell','isArray','isTransformMutationFailure','path','error','children','Module','currentSkeleton$','eventID','_checkAndWaitForCalculationPermission','name','ColorKit','getCurrentSelections','\x20at\x20','push','SOCKET_FAILED','_saveCache','SessionStatus','AWAITING_WITH_PENDING','subUnitId','_hovered','merge','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','createInstance','_entityInit$','fillText','setStateCache','resize','_maxFormulaLimit','_themeService','ILocalCacheService','event$','_registerRenderDependencies','getSkeleton','assign','_memberID','_handleEvent','_range','MemberService','subscribe','getFocusedUnit','stack','onLocalMutation','getItem','LOGIN_TOKEN_PROCESSING_FAILED','InsertColCommandId','DependentOn','collabStatus.conflict','REDEMPTION_CODE_NOT_STARTED','createSocket','UNRECOGNIZED','getValue','from','_transformHistoryAndStateStack','mask','runOnServer','_transformService','init','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','min','_unitStatus','RichTextEditingMutation','SetSelectionsOperation','USER_NOT_FOUND','setTimeout','colno','post','MUTATION','SheetsSelectionsService','RxDisposable','DocSelectionManagerService','limitInfo','_monkeyPatchLogService','wsSessionTicketUrl','_handleJoinEvent','CanceledError','OFFLINE','string','TOO_MANY_REQUESTS','urlChange$','OTHER_CLIENT_EDITING','collabStatus.synced','_hover','_cursorShapes','_lastPointer','_initStatusListener','releaseFormulaLimitUrl','endRow','DeleteRangeMoveLeftCommandId','M0\x200H16V16H0z','_startCalculationLimit','CollaborationEvent','_colorIndex','_id','_imageIoService','reconnect','code','useCallback','registerRefRange','LOGIN_FAILED','getCellMatrix','UniverInstanceType','evenodd','disposeUnit','Optional','shift','COMPLETION_FINISHED','_toggleOffline','IRenderManagerService','VIEW_MAIN','makeDirty','split','ILocalStorageService','_scene','?taskId=','generateRandomId','sessionStatus$','getTypeOfUnitDisposed$','CONNECTOR_DATA_TOO_LARGE','values'];_0x392f=function(){return _0xf7fbb1;};return _0x392f();}let Z=class extends a['Disposable']{constructor(_0x437a74,_0x8e68ec,_0x7d7056,_0x5159d3,_0x2e9397,_0x1526b2){const _0x160571=_0x4c4685;super(),this[_0x160571(0x247)]=_0x437a74,this[_0x160571(0x28b)]=_0x8e68ec,this[_0x160571(0x3c1)]=_0x7d7056,this[_0x160571(0x34f)]=_0x5159d3,this[_0x160571(0x2b6)]=_0x2e9397,this['_localeService']=_0x1526b2,this[_0x160571(0x1eb)](),this[_0x160571(0x248)]();}[_0x4c4685(0x1eb)](){const _0x44c47e=_0x4c4685;this[_0x44c47e(0x1c2)](this['_beforeCloseService'][_0x44c47e(0x370)](()=>{const _0x5a7411=_0x44c47e;if(this[_0x5a7411(0x28b)][_0x5a7411(0x188)][_0x5a7411(0x201)])return this[_0x5a7411(0x18e)]['t'](_0x5a7411(0x29d));}));}['_initEvent'](){const _0x51cfb9=_0x4c4685;this[_0x51cfb9(0x1c2)](this[_0x51cfb9(0x3c1)][_0x51cfb9(0x2dd)][_0x51cfb9(0x2e5)](_0x1420f4=>{const _0x8a5f1a=_0x51cfb9;_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x30e)]&&this[_0x8a5f1a(0x34f)][_0x8a5f1a(0x22b)]({'type':T[_0x8a5f1a(0x204)][_0x8a5f1a(0x417)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x1cc))}),_0x1420f4['id']===u['CollaborationUIEventId'][_0x8a5f1a(0x36c)]&&this['_messageService'][_0x8a5f1a(0x22b)]({'type':T['MessageType'][_0x8a5f1a(0x417)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x216))}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x272)]&&this['_notificationService']['show']({'title':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x26a)),'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x265)),'type':_0x8a5f1a(0x2c2),'duration':0x0}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x38f)]&&this[_0x8a5f1a(0x34f)][_0x8a5f1a(0x22b)]({'type':T['MessageType'][_0x8a5f1a(0x241)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x216))+'('+_0x1420f4['data']+')'}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x294)]&&this['_messageService'][_0x8a5f1a(0x22b)]({'type':T[_0x8a5f1a(0x204)][_0x8a5f1a(0x417)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x1420f4['data']||'')}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x174)]&&this[_0x8a5f1a(0x34f)][_0x8a5f1a(0x22b)]({'type':T['MessageType']['Warning'],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x1b2))}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x2cd)]&&this[_0x8a5f1a(0x34f)]['show']({'type':T['MessageType'][_0x8a5f1a(0x241)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x3c2))}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x41e)]&&this['_messageService'][_0x8a5f1a(0x22b)]({'type':T[_0x8a5f1a(0x204)][_0x8a5f1a(0x241)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x1a3))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x4c4685(0x2dc)]),y(0x2,a[_0x4c4685(0x414)](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x4c4685(0x414)](a['LocaleService']))],Z);var jt=Object[_0x4c4685(0x1b0)],kt=(_0x34a69f,_0x334105,_0x28d2d7,_0x5d28ed)=>{const _0x3077ae=_0x4c4685;for(var _0x283cea=_0x5d28ed>0x1?void 0x0:_0x5d28ed?jt(_0x334105,_0x28d2d7):_0x334105,_0x413029=_0x34a69f[_0x3077ae(0x393)]-0x1,_0x3e2c46;_0x413029>=0x0;_0x413029--)(_0x3e2c46=_0x34a69f[_0x413029])&&(_0x283cea=_0x3e2c46(_0x283cea)||_0x283cea);return _0x283cea;},z=(_0x550353,_0x5ad412)=>(_0x2f9ca7,_0x1c2ad0)=>_0x5ad412(_0x2f9ca7,_0x1c2ad0,_0x550353);let Q=class extends a[_0x4c4685(0x25e)]{constructor(_0x54706f,_0xc18274,_0x1bba59,_0x354d7a){const _0x49007f=_0x4c4685;super(),_(this,_0x49007f(0x2e1)),(this[_0x49007f(0x28a)]=_0x54706f,this[_0x49007f(0x378)]=_0xc18274,this['_logService']=_0x1bba59,this['_collaborationSessionService']=_0x354d7a,this[_0x49007f(0x16e)]());}[_0x4c4685(0x16e)](){const _0x3f0af5=_0x4c4685;this[_0x3f0af5(0x284)](),this[_0x3f0af5(0x275)](),this[_0x3f0af5(0x306)](),this[_0x3f0af5(0x23b)]();}[_0x4c4685(0x23b)](){const _0x4822f1=_0x4c4685;this['disposeWithMe'](this['_collaborationSessionService']['socket$'][_0x4822f1(0x2e5)](_0x4b7448=>{const _0x4c31be=_0x4822f1;this[_0x4c31be(0x2e1)]=_0x4b7448==null?void 0x0:_0x4b7448[_0x4c31be(0x1e3)];}));}['_initWindowErrorListener'](){const _0x141928=_0x4c4685,_0x2d3303=_0x82716b=>{const _0x44fb6a=_0x1c17;var _0x2421c0;this[_0x44fb6a(0x24e)](_0x44fb6a(0x2c2),_0x44fb6a(0x1bd)+_0x82716b[_0x44fb6a(0x203)]+_0x44fb6a(0x2cb)+_0x82716b[_0x44fb6a(0x387)]+':'+_0x82716b[_0x44fb6a(0x383)]+':'+_0x82716b[_0x44fb6a(0x2ff)]+'\x0a'+(((_0x2421c0=_0x82716b[_0x44fb6a(0x2c2)])==null?void 0x0:_0x2421c0[_0x44fb6a(0x2e7)])||''));};window[_0x141928(0x24c)](_0x141928(0x2c2),_0x2d3303),this[_0x141928(0x1c2)](()=>{const _0x7253b7=_0x141928;window[_0x7253b7(0x1c0)](_0x7253b7(0x2c2),_0x2d3303);});}[_0x4c4685(0x275)](){const _0xbb7d0c=_0x4c4685,_0x526dfa=_0x745564=>{const _0x45d7b2=_0x1c17;this['_uploadLog'](_0x45d7b2(0x2c2),'[Unhandled\x20Rejection]:\x20'+_0x745564['reason']);};window[_0xbb7d0c(0x24c)]('unhandledrejection',_0x526dfa),this['disposeWithMe'](()=>{const _0x5ba9ca=_0xbb7d0c;window['removeEventListener'](_0x5ba9ca(0x177),_0x526dfa);});}[_0x4c4685(0x306)](){const _0x7e2bac=_0x4c4685,_0x495662=this[_0x7e2bac(0x228)][_0x7e2bac(0x2c2)]['bind'](this[_0x7e2bac(0x228)]);this[_0x7e2bac(0x228)][_0x7e2bac(0x2c2)]=(..._0x5c63ed)=>{const _0xb71aa9=_0x7e2bac,_0x4a4faf=_0x5c63ed[_0xb71aa9(0x36a)](_0x1a3b5a=>_0x1a3b5a instanceof Error?_0x1a3b5a[_0xb71aa9(0x203)]+'\x0a'+_0x1a3b5a['stack']:String(_0x1a3b5a))[_0xb71aa9(0x3ee)]('\x20');this[_0xb71aa9(0x24e)](_0xb71aa9(0x2c2),_0xb71aa9(0x1a4)+_0x4a4faf),_0x495662(..._0x5c63ed);},this[_0x7e2bac(0x1c2)](()=>{const _0x2fbc04=_0x7e2bac;this[_0x2fbc04(0x228)][_0x2fbc04(0x2c2)]=_0x495662;});}['_uploadLog'](_0x44fac8,_0x2056cb){const _0x442559=_0x4c4685;try{const _0x2b53ed={'userId':this['_memberID'],'logLabel':_0x44fac8,'content':_0x2056cb};this['_httpService'][_0x442559(0x300)](_0x442559(0x280),{'body':_0x2b53ed})[_0x442559(0x202)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x4c4685(0x278)])),z(0x1,a[_0x4c4685(0x414)](x[_0x4c4685(0x210)])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u[_0x4c4685(0x35f)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x4c4685(0x1b0)],Wt=(_0x3a48dc,_0x2733fe,_0x269583,_0x3a7dce)=>{const _0x26c15d=_0x4c4685;for(var _0x10baf7=_0x3a7dce>0x1?void 0x0:_0x3a7dce?Ht(_0x2733fe,_0x269583):_0x2733fe,_0xff3bcd=_0x3a48dc[_0x26c15d(0x393)]-0x1,_0x92d108;_0xff3bcd>=0x0;_0xff3bcd--)(_0x92d108=_0x3a48dc[_0xff3bcd])&&(_0x10baf7=_0x92d108(_0x10baf7)||_0x10baf7);return _0x10baf7;},Ae=(_0x1adee0,_0x4cf90d)=>(_0x74760c,_0x36bf2f)=>_0x4cf90d(_0x74760c,_0x36bf2f,_0x1adee0);let ee=class{constructor(_0x19961e,_0x145061){const _0x326589=_0x4c4685;this[_0x326589(0x2f6)]=_0x19961e,this[_0x326589(0x416)]=_0x145061;}[_0x4c4685(0x191)](_0x3551b0){const _0x107c9b=_0x4c4685;this[_0x107c9b(0x343)](_0x3551b0),this[_0x107c9b(0x3df)](_0x3551b0);}[_0x4c4685(0x355)](_0x3d5c84){const _0x35d86d=_0x4c4685,{unitID:_0x59f981}=_0x3d5c84,_0xfc7717=this[_0x35d86d(0x416)][_0x35d86d(0x1da)](_0x59f981)['with'](p[_0x35d86d(0x268)]),{redoCache:_0x5293c8}=_0xfc7717['getUndoRedoMutationParamsCache']();if(_0x5293c8[_0x35d86d(0x393)]===0x0)return _0x3d5c84;let _0x172a5a=a[_0x35d86d(0x3ae)]['deepClone'](_0x3d5c84[_0x35d86d(0x21c)][0x0]);for(let _0x33c478=0x0;_0x33c478<_0x5293c8[_0x35d86d(0x393)];_0x33c478++){const _0xfe962b={'id':_0x35d86d(0x3b3),'params':{..._0x5293c8[_0x33c478]}},_0x56ec62=this[_0x35d86d(0x2f6)][_0x35d86d(0x42f)](_0x172a5a,_0xfe962b,!0x1);if(g[_0x35d86d(0x2c0)](_0x56ec62))throw _0x56ec62['error'];_0x172a5a=_0x56ec62['m1Prime'];}return{...a[_0x35d86d(0x3ae)][_0x35d86d(0x3d6)](_0x3d5c84),'mutations':[_0x172a5a]};}[_0x4c4685(0x343)](_0x51b561){const _0x1d0acc=_0x4c4685,{unitID:_0x3920a5}=_0x51b561,_0x1bae3d=this[_0x1d0acc(0x416)][_0x1d0acc(0x1da)](_0x3920a5)[_0x1d0acc(0x1b9)](p[_0x1d0acc(0x268)]),{undoCache:_0x4b7da8,redoCache:_0x4c5970}=_0x1bae3d['getUndoRedoMutationParamsCache']();if(_0x4b7da8[_0x1d0acc(0x393)]===0x0||_0x4c5970[_0x1d0acc(0x393)]===0x0)return;const _0x3644a6=[],_0x411a5e=[];let _0x122be3=a[_0x1d0acc(0x3ae)]['deepClone'](_0x51b561[_0x1d0acc(0x21c)][0x0]),_0x8d22d0=a['Tools'][_0x1d0acc(0x3d6)](_0x51b561[_0x1d0acc(0x21c)][0x0]);for(let _0x292601=_0x4b7da8[_0x1d0acc(0x393)]-0x1;_0x292601>=0x0;_0x292601--){const _0x4c0651={'id':_0x1d0acc(0x3b3),'params':{..._0x4b7da8[_0x292601]}},_0x153b62={'id':_0x1d0acc(0x3b3),'params':{..._0x4c5970[_0x292601]}},_0x4e4d12=this['_transformService']['transformMutation'](_0x122be3,_0x4c0651,!0x1),_0x1cc7da=this[_0x1d0acc(0x2f6)][_0x1d0acc(0x42f)](_0x8d22d0,_0x153b62,!0x1);if(g[_0x1d0acc(0x2c0)](_0x4e4d12))throw _0x4e4d12[_0x1d0acc(0x2c2)];if(g['isTransformMutationFailure'](_0x1cc7da))throw _0x1cc7da[_0x1d0acc(0x2c2)];_0x3644a6[_0x1d0acc(0x364)](_0x4e4d12[_0x1d0acc(0x411)][_0x1d0acc(0x18a)]),_0x411a5e[_0x1d0acc(0x364)](_0x1cc7da[_0x1d0acc(0x411)]['params']),_0x122be3=_0x4e4d12[_0x1d0acc(0x287)],_0x8d22d0=_0x1cc7da['m1Prime'];}_0x1bae3d[_0x1d0acc(0x3fd)]({'undoCache':_0x3644a6,'redoCache':_0x411a5e});}[_0x4c4685(0x3df)](_0x585aa5){const _0x1faab9=_0x4c4685,{unitID:_0x15cde8}=_0x585aa5,_0x5c4a9b=this[_0x1faab9(0x416)][_0x1faab9(0x1da)](_0x15cde8)[_0x1faab9(0x1b9)](p['DocIMEInputManagerService']),_0x3caa90=_0x5c4a9b[_0x1faab9(0x277)]();if(_0x3caa90==null)return;const _0x58c383=[{'id':_0x1faab9(0x3b3),'params':{'unitId':_0x585aa5[_0x1faab9(0x179)],'actions':null,'textRanges':[_0x3caa90]}}],_0x244255=this['_transformService'][_0x1faab9(0x281)](_0x585aa5,_0x58c383);if(!g[_0x1faab9(0x3da)](_0x244255))throw _0x244255[_0x1faab9(0x2c2)];const _0x33a05c=_0x244255[_0x1faab9(0x411)][0x0][_0x1faab9(0x18a)][_0x1faab9(0x220)];Array[_0x1faab9(0x2bf)](_0x33a05c)&&_0x33a05c[_0x1faab9(0x393)]&&_0x5c4a9b[_0x1faab9(0x223)](_0x33a05c[0x0]);}};ee=Wt([Ae(0x0,g[_0x4c4685(0x279)]),Ae(0x1,C[_0x4c4685(0x32a)])],ee);var Vt=Object[_0x4c4685(0x1b0)],Gt=(_0x3900ae,_0x312431,_0x5a417a,_0x4e337d)=>{const _0x344c44=_0x4c4685;for(var _0xacb919=_0x4e337d>0x1?void 0x0:_0x4e337d?Vt(_0x312431,_0x5a417a):_0x312431,_0x2dfe9f=_0x3900ae[_0x344c44(0x393)]-0x1,_0x45a471;_0x2dfe9f>=0x0;_0x2dfe9f--)(_0x45a471=_0x3900ae[_0x2dfe9f])&&(_0xacb919=_0x45a471(_0xacb919)||_0xacb919);return _0xacb919;},Ie=(_0x41c2b5,_0xef05d1)=>(_0x5b1d67,_0x3bfd23)=>_0xef05d1(_0x5b1d67,_0x3bfd23,_0x41c2b5);let te=class{constructor(_0x3fcd65,_0x24028f,_0xb0e614){const _0x65976f=_0x4c4685;this[_0x65976f(0x28a)]=_0x3fcd65,this['_transformService']=_0x24028f,this['_docStateChangeManagerService']=_0xb0e614;}[_0x4c4685(0x20c)](_0x352248){const _0xfe326=_0x4c4685;this[_0xfe326(0x2f3)](_0x352248);}[_0x4c4685(0x355)](_0x92f78){const _0x560b1c=_0x4c4685,{unitID:_0x17bdac}=_0x92f78,{collaboration:_0x403af7}=this[_0x560b1c(0x27c)]['getStateCache'](_0x17bdac);if(_0x403af7['length']===0x0)return _0x92f78;let _0x74723=a['Tools'][_0x560b1c(0x3d6)](_0x92f78['mutations'][0x0]);for(let _0x3fad5=0x0;_0x3fad5<_0x403af7[_0x560b1c(0x393)];_0x3fad5++){const _0x92a7f8={'id':_0x560b1c(0x3b3),'params':{'unitId':_0x403af7[_0x3fad5]['unitId'],..._0x403af7[_0x3fad5][_0x560b1c(0x18c)]}},_0x17a6ca=this[_0x560b1c(0x2f6)]['transformMutation'](_0x74723,_0x92a7f8,!0x1);if(g[_0x560b1c(0x2c0)](_0x17a6ca))throw _0x17a6ca['error'];_0x74723=_0x17a6ca[_0x560b1c(0x287)];}return{...a['Tools'][_0x560b1c(0x3d6)](_0x92f78),'mutations':[_0x74723]};}[_0x4c4685(0x2f3)](_0x1d6e72){const _0x50fed2=_0x4c4685,{unitID:_0x2fb507}=_0x1d6e72,{history:_0x34973b,collaboration:_0xd16b7b}=this[_0x50fed2(0x27c)]['getStateCache'](_0x2fb507);if(_0x34973b['length']===0x0&&_0xd16b7b[_0x50fed2(0x393)]===0x0)return;const _0x26961c=[],_0x1cfd89=[];let _0x9d38ce=a[_0x50fed2(0x3ae)][_0x50fed2(0x3d6)](_0x1d6e72[_0x50fed2(0x21c)][0x0]),_0x3ef2c6=a[_0x50fed2(0x3ae)][_0x50fed2(0x3d6)](_0x1d6e72[_0x50fed2(0x21c)][0x0]);for(let _0x4226e0=_0x34973b[_0x50fed2(0x393)]-0x1;_0x4226e0>=0x0;_0x4226e0--){const _0x205e06={'id':_0x50fed2(0x3b3),'params':{'unitId':_0x34973b[_0x4226e0][_0x50fed2(0x1a1)],..._0x34973b[_0x4226e0][_0x50fed2(0x3c0)]}},_0x3220c0={'id':_0x50fed2(0x3b3),'params':{'unitId':_0x34973b[_0x4226e0]['unitId'],..._0x34973b[_0x4226e0][_0x50fed2(0x18c)]}},_0x3fd758=this[_0x50fed2(0x2f6)][_0x50fed2(0x42f)](_0x9d38ce,_0x205e06,!0x1),_0x203cac=this['_transformService']['transformMutation'](_0x3ef2c6,_0x3220c0,!0x1);if(g[_0x50fed2(0x2c0)](_0x3fd758))throw _0x3fd758[_0x50fed2(0x2c2)];if(g[_0x50fed2(0x2c0)](_0x203cac))throw _0x203cac['error'];_0x26961c[_0x50fed2(0x364)]({..._0x34973b[_0x4226e0],'undoState':_0x3fd758['m2Prime']['params'],'redoState':_0x203cac[_0x50fed2(0x411)][_0x50fed2(0x18a)]}),_0x9d38ce=_0x3fd758[_0x50fed2(0x287)],_0x3ef2c6=_0x203cac[_0x50fed2(0x287)];}_0x9d38ce=a[_0x50fed2(0x3ae)]['deepClone'](_0x1d6e72[_0x50fed2(0x21c)][0x0]),_0x3ef2c6=a[_0x50fed2(0x3ae)]['deepClone'](_0x1d6e72[_0x50fed2(0x21c)][0x0]);for(let _0x59c98a=_0xd16b7b['length']-0x1;_0x59c98a>=0x0;_0x59c98a--){const _0xbfeab9={'id':_0x50fed2(0x3b3),'params':{'unitId':_0xd16b7b[_0x59c98a]['unitId'],..._0xd16b7b[_0x59c98a][_0x50fed2(0x3c0)]}},_0x57274f={'id':_0x50fed2(0x3b3),'params':{'unitId':_0xd16b7b[_0x59c98a][_0x50fed2(0x1a1)],..._0xd16b7b[_0x59c98a][_0x50fed2(0x18c)]}},_0x49f7e0=this[_0x50fed2(0x2f6)][_0x50fed2(0x42f)](_0x9d38ce,_0xbfeab9,!0x1),_0x2c3ab1=this[_0x50fed2(0x2f6)][_0x50fed2(0x42f)](_0x3ef2c6,_0x57274f,!0x1);if(g[_0x50fed2(0x2c0)](_0x49f7e0))throw _0x49f7e0['error'];if(g[_0x50fed2(0x2c0)](_0x2c3ab1))throw _0x2c3ab1[_0x50fed2(0x2c2)];_0x1cfd89[_0x50fed2(0x364)]({..._0xd16b7b[_0x59c98a],'undoState':_0x49f7e0[_0x50fed2(0x411)]['params'],'redoState':_0x2c3ab1[_0x50fed2(0x411)]['params']}),_0x9d38ce=_0x49f7e0[_0x50fed2(0x287)],_0x3ef2c6=_0x2c3ab1[_0x50fed2(0x287)];}this[_0x50fed2(0x27c)][_0x50fed2(0x2d8)](_0x2fb507,{'history':_0x26961c,'collaboration':_0x1cfd89});}};te=Gt([Ie(0x0,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),Ie(0x1,g[_0x4c4685(0x279)]),Ie(0x2,a[_0x4c4685(0x414)](p[_0x4c4685(0x26b)]))],te);var Xt=Object[_0x4c4685(0x1b0)],Kt=(_0x3550cf,_0x444c41,_0x5a5dea,_0x465e2a)=>{const _0x3a254f=_0x4c4685;for(var _0x35edbc=_0x465e2a>0x1?void 0x0:_0x465e2a?Xt(_0x444c41,_0x5a5dea):_0x444c41,_0x4afa58=_0x3550cf[_0x3a254f(0x393)]-0x1,_0x37eed9;_0x4afa58>=0x0;_0x4afa58--)(_0x37eed9=_0x3550cf[_0x4afa58])&&(_0x35edbc=_0x37eed9(_0x35edbc)||_0x35edbc);return _0x35edbc;},Pe=(_0x392316,_0x2b5e19)=>(_0x496312,_0x144e1d)=>_0x2b5e19(_0x496312,_0x144e1d,_0x392316);let se=class{constructor(_0x54006f,_0x193a66){const _0x257308=_0x4c4685;this[_0x257308(0x28a)]=_0x54006f,this[_0x257308(0x2f6)]=_0x193a66;}['transformSelections'](_0x4c5b4c){const _0x595ad4=_0x4c4685;var _0x51cef1;const _0x5aa7ad=this[_0x595ad4(0x28a)]['get'](V[_0x595ad4(0x304)]),_0x59ec6c=(_0x51cef1=_0x5aa7ad[_0x595ad4(0x423)]())!=null?_0x51cef1:[];if(_0x59ec6c[_0x595ad4(0x393)]===0x0)return;const _0x4b9aca=_0x4c5b4c[_0x595ad4(0x179)],_0xfaa9e9=[{'id':_0x595ad4(0x3b3),'params':{'unitId':_0x4b9aca,'actions':null,'textRanges':_0x59ec6c}}],_0x30cbcd=this[_0x595ad4(0x2f6)][_0x595ad4(0x281)](_0x4c5b4c,_0xfaa9e9);if(!g[_0x595ad4(0x3da)](_0x30cbcd))throw _0x30cbcd[_0x595ad4(0x2c2)];const _0x42469b=_0x30cbcd[_0x595ad4(0x411)][0x0]['params'][_0x595ad4(0x220)];Array[_0x595ad4(0x2bf)](_0x42469b)&&_0x42469b[_0x595ad4(0x393)]&&_0x5aa7ad['replaceDocRanges'](_0x42469b,{'unitId':_0x4b9aca,'subUnitId':_0x4b9aca},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x4c4685(0x278)])),Pe(0x1,g[_0x4c4685(0x279)])],se);var qt=Object[_0x4c4685(0x1b0)],zt=(_0x35d0ea,_0x1c5d3c,_0x99175f,_0xc11653)=>{const _0x2ea0ae=_0x4c4685;for(var _0x285878=_0xc11653>0x1?void 0x0:_0xc11653?qt(_0x1c5d3c,_0x99175f):_0x1c5d3c,_0x413b01=_0x35d0ea[_0x2ea0ae(0x393)]-0x1,_0x48d31c;_0x413b01>=0x0;_0x413b01--)(_0x48d31c=_0x35d0ea[_0x413b01])&&(_0x285878=_0x48d31c(_0x285878)||_0x285878);return _0x285878;},N=(_0x41f033,_0x279de5)=>(_0x116c45,_0x255bbf)=>_0x279de5(_0x116c45,_0x255bbf,_0x41f033);let ie=class extends a[_0x4c4685(0x25e)]{constructor(_0x88715e,_0x4e60d7,_0x38741c,_0x26319a,_0x3bf44f,_0x3f9a3b,_0x231cf3,_0x521fed){const _0x1181b6=_0x4c4685;super(),_(this,'_status$',new I[(_0x1181b6(0x37d))](u[_0x1181b6(0x27f)]['NOT_COLLAB'])),(this[_0x1181b6(0x27c)]=_0x88715e,this[_0x1181b6(0x362)]=_0x4e60d7,this[_0x1181b6(0x385)]=_0x38741c,this[_0x1181b6(0x1f8)]=_0x26319a,this['_docTransformSelectionsService']=_0x3bf44f,this['_docSyncEditingCollabCursorService']=_0x3f9a3b,this['_messageService']=_0x231cf3,this['_localeService']=_0x521fed,this['_initEntityListener']());}['_initEntityListener'](){const _0x493359=_0x4c4685;this[_0x493359(0x1c2)](this[_0x493359(0x362)][_0x493359(0x182)][_0x493359(0x2e5)](_0x29b14f=>{const _0x37fa86=_0x493359,_0x2c9be4=this[_0x37fa86(0x27c)][_0x37fa86(0x19f)][_0x37fa86(0x2e5)](_0x541272=>{const _0x30751d=_0x37fa86;if(_0x541272==null)return;const {unitId:_0x43c335,redoState:_0x22e31d,commandId:_0x39d57a}=_0x541272;if(_0x43c335!==_0x29b14f[_0x30751d(0x179)])return;const _0x5737f4={'id':_0x39d57a,'type':a[_0x30751d(0x2bb)][_0x30751d(0x301)],'params':{'unitId':_0x43c335,'actions':_0x22e31d['actions'],'textRanges':null}};_0x29b14f[_0x30751d(0x2e8)](_0x5737f4);});if(_0x29b14f[_0x37fa86(0x1c2)](_0x2c9be4),_0x29b14f instanceof u['DocCollaborationEntity']){const _0x16555e={'onTransformIME':_0x1c7f4c=>this['_docTransformIMECacheService']['transformIMECache'](_0x1c7f4c),'onTransformState':_0x5e4ce4=>this[_0x37fa86(0x1f8)][_0x37fa86(0x20c)](_0x5e4ce4),'onTransformSelections':_0x3b4ee1=>this[_0x37fa86(0x239)]['transformSelections'](_0x3b4ee1),'onSyncEditingCollabCursor':_0x290485=>this[_0x37fa86(0x401)][_0x37fa86(0x1b7)](_0x290485),'onTransformRemoteChangesetByIMECache':_0x6bff8b=>this[_0x37fa86(0x385)]['transformRemoteChangeset'](_0x6bff8b),'onTransformRemoteChangesetByStateCache':_0xc6eb1a=>this[_0x37fa86(0x1f8)][_0x37fa86(0x355)](_0xc6eb1a)};_0x29b14f['addHandlerCallback'](_0x16555e);}}));}};ie=zt([N(0x0,a[_0x4c4685(0x414)](p[_0x4c4685(0x26b)])),N(0x1,a[_0x4c4685(0x414)](u[_0x4c4685(0x1f2)])),N(0x2,a[_0x4c4685(0x414)](ee)),N(0x3,a[_0x4c4685(0x414)](te)),N(0x4,a['Inject'](se)),N(0x5,a[_0x4c4685(0x414)](be)),N(0x6,O[_0x4c4685(0x1ea)]),N(0x7,a[_0x4c4685(0x414)](a[_0x4c4685(0x394)]))],ie);var G=(_0x3ebc51=>(_0x3ebc51[_0x3ebc51[_0x4c4685(0x1c3)]=0x0]='UNDEFINED',_0x3ebc51[_0x3ebc51['OK']=0x1]='OK',_0x3ebc51[_0x3ebc51['INTERNAL_ERROR']=0x2]=_0x4c4685(0x224),_0x3ebc51[_0x3ebc51[_0x4c4685(0x272)]=0x3]=_0x4c4685(0x272),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1c1)]=0x4]=_0x4c4685(0x1c1),_0x3ebc51[_0x3ebc51[_0x4c4685(0x399)]=0x5]=_0x4c4685(0x399),_0x3ebc51[_0x3ebc51['ALREADY_EXISTS']=0x6]=_0x4c4685(0x3dd),_0x3ebc51[_0x3ebc51['INVALID_ARGUMENT']=0x7]=_0x4c4685(0x254),_0x3ebc51[_0x3ebc51[_0x4c4685(0x30c)]=0x8]=_0x4c4685(0x30c),_0x3ebc51[_0x3ebc51[_0x4c4685(0x328)]=0x9]=_0x4c4685(0x328),_0x3ebc51[_0x3ebc51[_0x4c4685(0x321)]=0xa]=_0x4c4685(0x321),_0x3ebc51[_0x3ebc51['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x4c4685(0x1dc),_0x3ebc51[_0x3ebc51[_0x4c4685(0x430)]=0xc]=_0x4c4685(0x430),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3a1)]=0xd]=_0x4c4685(0x3a1),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3dc)]=0xe]=_0x4c4685(0x3dc),_0x3ebc51[_0x3ebc51['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x4c4685(0x3fc),_0x3ebc51[_0x3ebc51['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x4c4685(0x2ea),_0x3ebc51[_0x3ebc51['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x4c4685(0x27a),_0x3ebc51[_0x3ebc51['ERROR_AGAIN']=0x65]=_0x4c4685(0x2a9),_0x3ebc51[_0x3ebc51[_0x4c4685(0x2fd)]=0xc9]=_0x4c4685(0x2fd),_0x3ebc51[_0x3ebc51[_0x4c4685(0x2af)]=0xca]='USER_IS_ANONYMOUS',_0x3ebc51[_0x3ebc51[_0x4c4685(0x368)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3ebc51[_0x3ebc51[_0x4c4685(0x176)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3ebc51[_0x3ebc51['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4c4685(0x25c),_0x3ebc51[_0x3ebc51['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x4c4685(0x19a),_0x3ebc51[_0x3ebc51['APPLY_REJECT']=0x1b59]=_0x4c4685(0x361),_0x3ebc51[_0x3ebc51['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4c4685(0x1f7),_0x3ebc51[_0x3ebc51[_0x4c4685(0x238)]=0x1b5b]=_0x4c4685(0x238),_0x3ebc51[_0x3ebc51[_0x4c4685(0x20a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3ebc51[_0x3ebc51['APPLY_DUPLICATED']=0x1b5d]=_0x4c4685(0x28c),_0x3ebc51[_0x3ebc51[_0x4c4685(0x334)]=0x1f41]=_0x4c4685(0x334),_0x3ebc51[_0x3ebc51[_0x4c4685(0x29a)]=0x2329]=_0x4c4685(0x29a),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3c9)]=0x232a]=_0x4c4685(0x3c9),_0x3ebc51[_0x3ebc51[_0x4c4685(0x263)]=0x232b]=_0x4c4685(0x263),_0x3ebc51[_0x3ebc51[_0x4c4685(0x29f)]=0x232c]=_0x4c4685(0x29f),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1c8)]=0x232d]=_0x4c4685(0x1c8),_0x3ebc51[_0x3ebc51[_0x4c4685(0x42d)]=0x2711]=_0x4c4685(0x42d),_0x3ebc51[_0x3ebc51[_0x4c4685(0x398)]=0x2712]=_0x4c4685(0x398),_0x3ebc51[_0x3ebc51['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4c4685(0x1d0),_0x3ebc51[_0x3ebc51[_0x4c4685(0x38b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3ebc51[_0x3ebc51[_0x4c4685(0x395)]=0x271a]=_0x4c4685(0x395),_0x3ebc51[_0x3ebc51[_0x4c4685(0x36f)]=0x271b]=_0x4c4685(0x36f),_0x3ebc51[_0x3ebc51['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3ebc51[_0x3ebc51[_0x4c4685(0x251)]=0x271d]=_0x4c4685(0x251),_0x3ebc51[_0x3ebc51[_0x4c4685(0x25b)]=0x271e]=_0x4c4685(0x25b),_0x3ebc51[_0x3ebc51['YUUMI_AI_RUN_FAILED']=0x271f]=_0x4c4685(0x3a3),_0x3ebc51[_0x3ebc51['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4c4685(0x346),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1b8)]=0x2af9]=_0x4c4685(0x1b8),_0x3ebc51[_0x3ebc51['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x4c4685(0x171),_0x3ebc51[_0x3ebc51['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x3ebc51[_0x3ebc51['INVITE_CODE_REQUIRED']=0x2ee3]=_0x4c4685(0x186),_0x3ebc51[_0x3ebc51[_0x4c4685(0x388)]=0x2ee4]=_0x4c4685(0x388),_0x3ebc51[_0x3ebc51['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x4c4685(0x218),_0x3ebc51[_0x3ebc51[_0x4c4685(0x36b)]=0x32c9]=_0x4c4685(0x36b),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1ed)]=0x32ca]=_0x4c4685(0x1ed),_0x3ebc51[_0x3ebc51[_0x4c4685(0x292)]=0x32cb]=_0x4c4685(0x292),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1a0)]=0x36b1]=_0x4c4685(0x1a0),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3fe)]=0x36b2]=_0x4c4685(0x3fe),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3a8)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x3ebc51[_0x3ebc51[_0x4c4685(0x17c)]=0x36b4]=_0x4c4685(0x17c),_0x3ebc51[_0x3ebc51[_0x4c4685(0x425)]=0x3715]=_0x4c4685(0x425),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3f2)]=0x3716]=_0x4c4685(0x3f2),_0x3ebc51[_0x3ebc51[_0x4c4685(0x37a)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x3ebc51[_0x3ebc51[_0x4c4685(0x1af)]=0x37dd]=_0x4c4685(0x1af),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1f0)]=0x3a99]=_0x4c4685(0x1f0),_0x3ebc51[_0x3ebc51['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x3ebc51[_0x3ebc51[_0x4c4685(0x3c3)]=0x3a9b]=_0x4c4685(0x3c3),_0x3ebc51[_0x3ebc51['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x4c4685(0x2ee),_0x3ebc51[_0x3ebc51[_0x4c4685(0x33f)]=0x3a9d]=_0x4c4685(0x33f),_0x3ebc51[_0x3ebc51[_0x4c4685(0x40d)]=0x3a9e]=_0x4c4685(0x40d),_0x3ebc51[_0x3ebc51['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x3ebc51[_0x3ebc51[_0x4c4685(0x407)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x3ebc51[_0x3ebc51['UNRECOGNIZED']=-0x1]=_0x4c4685(0x2f0),_0x3ebc51))(G||{});function Jt(_0x13c5b9){const _0x357038=_0x4c4685;var _0x443b19,_0x340705;const _0x57fa38=(_0x443b19=_0x13c5b9[_0x357038(0x1e7)])==null?void 0x0:_0x443b19[_0x357038(0x3ca)],_0x296294=((_0x340705=_0x13c5b9['stageInfo'])==null?void 0x0:_0x340705[_0x357038(0x3a0)])||0x0;return _0x57fa38===B[_0x357038(0x42e)][_0x357038(0x3db)]&&_0x296294>0x0;}function Zt(_0x51a0a8){const _0x3fdfa5=_0x4c4685;return _0x51a0a8['functionsExecutedState']===B[_0x3fdfa5(0x3e4)]['SUCCESS'];}var Qt=Object[_0x4c4685(0x1b0)],es=(_0x4954e3,_0x630055,_0xbcc942,_0x3ae3a1)=>{const _0x3f7a01=_0x4c4685;for(var _0x3fbcde=_0x3ae3a1>0x1?void 0x0:_0x3ae3a1?Qt(_0x630055,_0xbcc942):_0x630055,_0x308289=_0x4954e3[_0x3f7a01(0x393)]-0x1,_0x56e58e;_0x308289>=0x0;_0x308289--)(_0x56e58e=_0x4954e3[_0x308289])&&(_0x3fbcde=_0x56e58e(_0x3fbcde)||_0x3fbcde);return _0x3fbcde;},L=(_0x357d94,_0x2a41cc)=>(_0x354998,_0xfa5f5d)=>_0x2a41cc(_0x354998,_0xfa5f5d,_0x357d94);const ts='/universer-api/license/formula/limit/status',ss=_0x4c4685(0x291),is=_0x4c4685(0x3e3);let ne=class extends a[_0x4c4685(0x25e)]{constructor(_0x32f097,_0x8830d1,_0x342266,_0x14268b,_0x49c1a8,_0x98431b,_0x3ae846){const _0x34a75a=_0x4c4685;super(),_(this,_0x34a75a(0x1f5),null),_(this,_0x34a75a(0x2da),0x0),_(this,_0x34a75a(0x3bc),0x0),_(this,'_taskIds',[]),_(this,_0x34a75a(0x1de),0x0),(this[_0x34a75a(0x34f)]=_0x32f097,this[_0x34a75a(0x25a)]=_0x8830d1,this[_0x34a75a(0x410)]=_0x342266,this[_0x34a75a(0x378)]=_0x14268b,this[_0x34a75a(0x175)]=_0x49c1a8,this[_0x34a75a(0x228)]=_0x98431b,this[_0x34a75a(0x18e)]=_0x3ae846,this[_0x34a75a(0x28f)]());}['_initCommandInterceptor'](){const _0x4dc0b8=_0x4c4685;this['disposeWithMe'](this[_0x4dc0b8(0x25a)]['beforeCommandExecuted']((_0x8f5048,_0x3aacf8)=>{const _0x476173=_0x4dc0b8;var _0x298323;if(_0x8f5048['id']!==B[_0x476173(0x3f3)]['id'])return;const _0x3c4d89=_0x8f5048[_0x476173(0x18a)];if(!this[_0x476173(0x33c)]((_0x298323=_0x3c4d89[_0x476173(0x3d5)])!=null?_0x298323:[]))return;if(!this[_0x476173(0x3a9)]())throw this[_0x476173(0x2c7)](_0x8f5048,_0x3aacf8),this[_0x476173(0x29b)](),new a[(_0x476173(0x309))]();})),this[_0x4dc0b8(0x1c2)](this[_0x4dc0b8(0x25a)]['onCommandExecuted']((_0x1b620f,_0x157e16)=>{const _0x1590a7=_0x4dc0b8;if(_0x1b620f['id']!==B[_0x1590a7(0x35d)]['id'])return;const _0x1215cf=_0x1b620f[_0x1590a7(0x18a)];if(Jt(_0x1215cf)){const _0x1a7add=a['generateRandomId']();this[_0x1590a7(0x338)][_0x1590a7(0x2cc)](_0x1a7add),this[_0x1590a7(0x318)](_0x1a7add);}else{if(Zt(_0x1215cf)&&this[_0x1590a7(0x338)][_0x1590a7(0x393)]>0x0){const _0x7d2308=this['_taskIds'][_0x1590a7(0x327)]();this['_releaseCalculationLimit'](_0x7d2308);}}}));}['dispose'](){const _0x3b9d41=_0x4c4685;super[_0x3b9d41(0x3d3)](),this[_0x3b9d41(0x244)](),this['_taskIds']=[],this[_0x3b9d41(0x3bc)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x4c4685(0x2c7)](_0x1fa218,_0xfa889f){const _0x5a9d54=_0x4c4685;for(let _0x3e2354=0x0;_0x3e2354<0x1e;_0x3e2354++)try{if(await this[_0x5a9d54(0x260)](),this[_0x5a9d54(0x3a9)]()){this[_0x5a9d54(0x1b4)](_0x1fa218,_0xfa889f),this[_0x5a9d54(0x34f)][_0x5a9d54(0x22b)]({'content':this[_0x5a9d54(0x18e)]['t'](_0x5a9d54(0x212)),'type':T['MessageType']['Success']});return;}await new Promise(_0x1584b4=>{const _0x12213c=_0x5a9d54;this['_pollingInterval']=window[_0x12213c(0x2fe)](_0x1584b4,0x3e8);});}catch(_0x89674){this[_0x5a9d54(0x228)][_0x5a9d54(0x2c2)](_0x89674);}this['_messageService']['show']({'content':this[_0x5a9d54(0x18e)]['t'](_0x5a9d54(0x1ba)),'type':T[_0x5a9d54(0x204)][_0x5a9d54(0x241)]});}[_0x4c4685(0x1b4)](_0x1b6009,_0x5a2d17){const _0x47e45a=_0x4c4685;try{this['_commandService'][_0x47e45a(0x18b)](_0x1b6009['id'],_0x1b6009['params'],_0x5a2d17);}catch(_0x885c23){this[_0x47e45a(0x228)][_0x47e45a(0x2c2)](_0x885c23);}}[_0x4c4685(0x2ac)](_0x23ce11,_0xe32def){const _0x157972=_0x4c4685;_0xe32def<this[_0x157972(0x1de)]||(this['_lastResponseTimestamp']=_0xe32def,this['_maxFormulaLimit']=Number[_0x157972(0x18d)](_0x23ce11['maxFormulaLimit']),this[_0x157972(0x3bc)]=Number['parseInt'](_0x23ce11[_0x157972(0x351)]));}async[_0x4c4685(0x318)](_0x6abdd1){const _0x408131=_0x4c4685;var _0x1e305f,_0x17d78a;const _0x1643f2=Date['now']();try{const _0x5ebf44=((_0x1e305f=this[_0x408131(0x410)][_0x408131(0x184)](u[_0x408131(0x3b0)]))==null?void 0x0:_0x1e305f[_0x408131(0x199)])||ss,_0x1c5961=(await this[_0x408131(0x378)][_0x408131(0x300)](_0x5ebf44,{'body':JSON['stringify']({'taskId':_0x6abdd1})}))[_0x408131(0x42a)];if(((_0x17d78a=_0x1c5961['error'])==null?void 0x0:_0x17d78a[_0x408131(0x31e)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x1c5961[_0x408131(0x305)],_0x1643f2);}catch(_0x5e3079){this[_0x408131(0x228)][_0x408131(0x2c2)](_0x5e3079);}}async[_0x4c4685(0x260)](_0x3c7203){const _0xd31e9e=_0x4c4685;var _0x1c1768,_0x166504;const _0x40a2aa=Date['now']();try{const _0x201791=((_0x1c1768=this['_configService'][_0xd31e9e(0x184)](u[_0xd31e9e(0x3b0)]))==null?void 0x0:_0x1c1768['getformulaLimitStatusUrl'])||ts,_0x143e0a=_0x3c7203?_0x201791+_0xd31e9e(0x330)+encodeURIComponent(_0x3c7203):_0x201791,_0x206cef=(await this['_httpService'][_0xd31e9e(0x418)](_0x143e0a))['body'];if(((_0x166504=_0x206cef[_0xd31e9e(0x2c2)])==null?void 0x0:_0x166504[_0xd31e9e(0x31e)])!==G['OK'])return;this[_0xd31e9e(0x2ac)](_0x206cef[_0xd31e9e(0x305)],_0x40a2aa);}catch(_0x2dd34e){this[_0xd31e9e(0x228)][_0xd31e9e(0x2c2)](_0x2dd34e);}}async['_releaseCalculationLimit'](_0x44a819){const _0x157d42=_0x4c4685;var _0x1980fd,_0x16f2e0;const _0x19e039=Date[_0x157d42(0x1ac)]();try{const _0x5ec7ff=((_0x1980fd=this[_0x157d42(0x410)][_0x157d42(0x184)](u[_0x157d42(0x3b0)]))==null?void 0x0:_0x1980fd[_0x157d42(0x314)])||is,_0x24812f=(await this[_0x157d42(0x378)][_0x157d42(0x300)](_0x5ec7ff,{'body':JSON[_0x157d42(0x400)]({'taskId':_0x44a819})}))[_0x157d42(0x42a)];if(((_0x16f2e0=_0x24812f['error'])==null?void 0x0:_0x16f2e0[_0x157d42(0x31e)])!==G['OK'])return;this[_0x157d42(0x2ac)](_0x24812f[_0x157d42(0x305)],_0x19e039);}catch(_0x21607a){this[_0x157d42(0x228)][_0x157d42(0x2c2)](_0x21607a);}}[_0x4c4685(0x3a9)](){const _0x2e354d=_0x4c4685;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x2e354d(0x3bc)]>0x0;}[_0x4c4685(0x244)](){const _0x2b1822=_0x4c4685;this['_pollingInterval']&&(clearTimeout(this[_0x2b1822(0x1f5)]),this[_0x2b1822(0x1f5)]=null);}[_0x4c4685(0x29b)](){const _0x313c3d=_0x4c4685;this[_0x313c3d(0x34f)]['show']({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T[_0x313c3d(0x204)][_0x313c3d(0x3f4)]});}[_0x4c4685(0x33c)](_0x4971bf){const _0x219306=_0x4c4685;for(const _0x3d46d1 of _0x4971bf){const {unitId:_0x33bdc9,sheetId:_0x386390,range:_0x4d87df}=_0x3d46d1,_0x43b4e8=this['_univerInstanceService'][_0x219306(0x1cf)](_0x33bdc9);if(!_0x43b4e8)continue;const _0x176333=_0x43b4e8['getSheetBySheetId'](_0x386390);if(!_0x176333)continue;const _0x194f32=_0x176333[_0x219306(0x322)]();for(let _0x445071=_0x4d87df[_0x219306(0x1f1)];_0x445071<=_0x4d87df[_0x219306(0x315)];_0x445071++)for(let _0x1c5edf=_0x4d87df[_0x219306(0x253)];_0x1c5edf<=_0x4d87df[_0x219306(0x345)];_0x1c5edf++){const _0x26bd01=_0x194f32[_0x219306(0x2f1)](_0x445071,_0x1c5edf);if(_0x26bd01&&(a[_0x219306(0x2b9)](_0x26bd01['f'])||a[_0x219306(0x2a4)](_0x26bd01['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4c4685(0x414)](O[_0x4c4685(0x1ea)])),L(0x1,a['ICommandService']),L(0x2,a[_0x4c4685(0x1c6)]),L(0x3,a[_0x4c4685(0x414)](x['HTTPService'])),L(0x4,a[_0x4c4685(0x19d)]),L(0x5,a[_0x4c4685(0x259)]),L(0x6,a[_0x4c4685(0x414)](a[_0x4c4685(0x394)]))],ne);var ns=Object[_0x4c4685(0x1b0)],rs=(_0x594aac,_0x1d52c0,_0x3905df,_0x55aaf8)=>{const _0x545b74=_0x4c4685;for(var _0x3b0ef7=_0x55aaf8>0x1?void 0x0:_0x55aaf8?ns(_0x1d52c0,_0x3905df):_0x1d52c0,_0x4e877b=_0x594aac[_0x545b74(0x393)]-0x1,_0x58cb26;_0x4e877b>=0x0;_0x4e877b--)(_0x58cb26=_0x594aac[_0x4e877b])&&(_0x3b0ef7=_0x58cb26(_0x3b0ef7)||_0x3b0ef7);return _0x3b0ef7;},de=(_0x1ec492,_0x4634c2)=>(_0x3565c7,_0x22affe)=>_0x4634c2(_0x3565c7,_0x22affe,_0x1ec492);let pe=class extends a[_0x4c4685(0x25e)]{constructor(_0x36c9ef,_0x27a80c,_0x37e3fb){const _0x3af825=_0x4c4685;super(),_(this,'_cachedData',new Map()),_(this,_0x3af825(0x1d9),new Map()),_(this,'_disabled',!0x1),(this[_0x3af825(0x410)]=_0x36c9ef,this[_0x3af825(0x41a)]=_0x27a80c,this['_revisionService']=_0x37e3fb);}['disableLocalCache'](){const _0x5a9530=_0x4c4685;this[_0x5a9530(0x397)]=!0x0;}[_0x4c4685(0x373)](){this['_disabled']=!0x1;}get[_0x4c4685(0x188)](){const _0x51184a=_0x4c4685;return this[_0x51184a(0x1d9)];}[_0x4c4685(0x3d3)](){const _0x4202dd=_0x4c4685;this[_0x4202dd(0x1e5)]()[_0x4202dd(0x382)](()=>super[_0x4202dd(0x3d3)]());}async[_0x4c4685(0x379)](_0x43f3bb){const _0x50cd05=_0x4c4685;return this[_0x50cd05(0x397)]?null:this[_0x50cd05(0x41a)][_0x50cd05(0x2e9)](u[_0x50cd05(0x22f)](_0x43f3bb));}async[_0x4c4685(0x3bd)](_0x32c048,_0x586860){const _0x44fde9=_0x4c4685;return!!this[_0x44fde9(0x41a)]['setItem'](_0x32c048,_0x586860);}[_0x4c4685(0x372)](_0x1fcefe,_0x3d49ec,_0x4414e1,_0x3b3a32){const _0x32ac6e=_0x4c4685,_0x20804a=this[_0x32ac6e(0x2a3)][_0x32ac6e(0x26e)](_0x1fcefe);this['_cachedData'][_0x32ac6e(0x1d4)](_0x1fcefe,{'unitID':_0x1fcefe,'type':_0x3d49ec,'awaitingChangeset':_0x4414e1,'mutations':_0x3b3a32,'rev':_0x20804a}),this['_saveTaskMap'][_0x32ac6e(0x39b)](_0x1fcefe)||this[_0x32ac6e(0x409)](_0x1fcefe);}[_0x4c4685(0x409)](_0x2c0c39){const _0x5a89b8=_0x4c4685,_0xf0c260=this[_0x5a89b8(0x1aa)]();_0xf0c260===0x0?this['_saveCache'](_0x2c0c39):this[_0x5a89b8(0x1d9)][_0x5a89b8(0x1d4)](_0x2c0c39,setTimeout(()=>this['_saveCache'](_0x2c0c39),_0xf0c260));}['_getSaveTimeout'](){const _0x47f840=_0x4c4685;var _0x3e7b4c;return(_0x3e7b4c=this['_configService'][_0x47f840(0x184)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x3e7b4c:u['LOCAL_CACHE_INTERVAL'];}[_0x4c4685(0x2ce)](_0x124423){const _0x868585=_0x4c4685,_0x188980=this[_0x868585(0x1d9)]['get'](_0x124423);return _0x188980!==void 0x0&&window[_0x868585(0x20f)](_0x188980),this[_0x868585(0x41a)]['setItem'](u[_0x868585(0x22f)](_0x124423),this[_0x868585(0x367)]['get'](_0x124423))[_0x868585(0x382)](()=>this[_0x868585(0x1d9)][_0x868585(0x1be)](_0x124423));}async['exhaustSavingTask'](){const _0x4793c4=_0x4c4685,_0x1b3c51=[];this[_0x4793c4(0x1d9)][_0x4793c4(0x258)]((_0x45d30a,_0xae4c68)=>{const _0x1d6b6a=_0x4793c4;window[_0x1d6b6a(0x20f)](_0x45d30a),_0x1b3c51['push'](this[_0x1d6b6a(0x2ce)](_0xae4c68)[_0x1d6b6a(0x382)](()=>{const _0x580f13=_0x1d6b6a;this[_0x580f13(0x1d9)][_0x580f13(0x1be)](_0xae4c68);}));}),await Promise['all'](_0x1b3c51);}};pe=rs([de(0x0,a[_0x4c4685(0x1c6)]),de(0x1,a[_0x4c4685(0x32e)]),de(0x2,a[_0x4c4685(0x414)](g[_0x4c4685(0x2a1)]))],pe);class ke extends a['RxDisposable']{constructor(){const _0x577e48=_0x4c4685;super(),_(this,_0x577e48(0x30d)),this[_0x577e48(0x30d)]=I['fromEvent'](window,_0x577e48(0x34a))[_0x577e48(0x249)](I['takeUntil'](this[_0x577e48(0x374)]),I[_0x577e48(0x3f9)](0x1),I['mapTo'](void 0x0));}['setParam'](_0x4b7d35,_0x8d7936,_0x381267=!0x1){const _0x4f65b2=_0x4c4685,_0x423cfd=new URL(window[_0x4f65b2(0x3f7)][_0x4f65b2(0x1a7)]);_0x423cfd[_0x4f65b2(0x1fe)][_0x4f65b2(0x1d4)](_0x4b7d35,_0x8d7936),_0x381267?window[_0x4f65b2(0x189)][_0x4f65b2(0x243)]('','',_0x423cfd[_0x4f65b2(0x173)]()):window['history'][_0x4f65b2(0x3c8)]('','',_0x423cfd[_0x4f65b2(0x173)]());}['removeParam'](_0x3d4f64,_0x134029=!0x1){const _0x597ff5=_0x4c4685,_0x440cc2=new URL(window[_0x597ff5(0x3f7)]['href']);_0x440cc2[_0x597ff5(0x1fe)][_0x597ff5(0x1be)](_0x3d4f64),_0x134029?window['history'][_0x597ff5(0x243)]('','',_0x440cc2[_0x597ff5(0x173)]()):window['history'][_0x597ff5(0x3c8)]('','',_0x440cc2[_0x597ff5(0x173)]());}[_0x4c4685(0x42b)](_0x1e1136){const _0x19c6c9=_0x4c4685;var _0x4f84e0;return(_0x4f84e0=new URL(window['location'][_0x19c6c9(0x1a7)])[_0x19c6c9(0x1fe)][_0x19c6c9(0x418)](_0x1e1136))!=null?_0x4f84e0:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x4c4685(0x1b0)],cs=(_0x2a5d1f,_0x42fd8e,_0x4943db)=>_0x42fd8e in _0x2a5d1f?os(_0x2a5d1f,_0x42fd8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4943db}):_0x2a5d1f[_0x42fd8e]=_0x4943db,ls=(_0x286e42,_0x3f9d56,_0x39a43f,_0x381625)=>{const _0x33da02=_0x4c4685;for(var _0xb60e87=_0x381625>0x1?void 0x0:_0x381625?as(_0x3f9d56,_0x39a43f):_0x3f9d56,_0x37805d=_0x286e42[_0x33da02(0x393)]-0x1,_0x13534e;_0x37805d>=0x0;_0x37805d--)(_0x13534e=_0x286e42[_0x37805d])&&(_0xb60e87=_0x13534e(_0xb60e87)||_0xb60e87);return _0xb60e87;},Se=(_0x2ede0b,_0x396e47)=>(_0x3a5f57,_0x5bec7f)=>_0x396e47(_0x3a5f57,_0x5bec7f,_0x2ede0b),_s=(_0x3225a9,_0x3a995e,_0x1fd040)=>cs(_0x3225a9,_0x3a995e+'',_0x1fd040);const hs=_0x4c4685(0x172);exports[_0x4c4685(0x40e)]=class extends a['Plugin']{constructor(_0x20ad9a=Me,_0x3e5f8d,_0x3b8a62,_0x16493b){const _0x2f3174=_0x4c4685;super(),this[_0x2f3174(0x21e)]=_0x20ad9a,this[_0x2f3174(0x416)]=_0x3e5f8d,this[_0x2f3174(0x28a)]=_0x3b8a62,this['_configService']=_0x16493b;const {..._0x57801a}=a[_0x2f3174(0x2d3)]({},Me,this[_0x2f3174(0x21e)]);this[_0x2f3174(0x410)][_0x2f3174(0x350)](Yt,_0x57801a);}[_0x4c4685(0x39a)](){const _0x36ce3d=_0x4c4685;this[_0x36ce3d(0x37f)](),this[_0x36ce3d(0x2b0)]();}['onRendered'](){const _0xc003b3=_0x4c4685;this[_0xc003b3(0x2de)]();}[_0x4c4685(0x37f)](){const _0x29b859=_0x4c4685;var _0x518178;const _0x4a897e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x29b859(0x3b1)]}],[u[_0x29b859(0x2dc)],{'useClass':pe}],[exports[_0x29b859(0x340)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this['_config']['enableFrontendLog']&&_0x4a897e['push']([Q]),a[_0x29b859(0x26d)](this[_0x29b859(0x28a)],a[_0x29b859(0x237)](_0x4a897e,(_0x518178=this[_0x29b859(0x21e)])==null?void 0x0:_0x518178[_0x29b859(0x412)]));}['_registerRenderDependencies'](){const _0x1b8063=_0x4c4685;this[_0x1b8063(0x1c2)](this[_0x1b8063(0x416)][_0x1b8063(0x420)](a[_0x1b8063(0x323)]['UNIVER_DOC'],[Ee])),this[_0x1b8063(0x1c2)](this[_0x1b8063(0x416)][_0x1b8063(0x420)](a[_0x1b8063(0x323)][_0x1b8063(0x2a6)],[Ce]));}[_0x4c4685(0x2b0)](){const _0x1f78a0=_0x4c4685;a[_0x1f78a0(0x389)](this['_injector'],[[F],[exports[_0x1f78a0(0x340)]],[ie],[Z],[exports[_0x1f78a0(0x1ec)]],[ne]]),this['_config']['enableFrontendLog']&&a[_0x1f78a0(0x389)](this['_injector'],[[Q]]);}},_s(exports[_0x4c4685(0x40e)],_0x4c4685(0x1ae),hs),exports[_0x4c4685(0x40e)]=ls([a[_0x4c4685(0x2ec)](u[_0x4c4685(0x1bf)]),Se(0x1,C[_0x4c4685(0x32a)]),Se(0x2,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),Se(0x3,a[_0x4c4685(0x1c6)])],exports[_0x4c4685(0x40e)]);var us=Object[_0x4c4685(0x1b0)],Is=(_0x5787dd,_0x2d1f1a,_0x5c7bd2,_0x19b80a)=>{const _0x4c3e6c=_0x4c4685;for(var _0x1da02a=_0x19b80a>0x1?void 0x0:_0x19b80a?us(_0x2d1f1a,_0x5c7bd2):_0x2d1f1a,_0x1d1d3c=_0x5787dd[_0x4c3e6c(0x393)]-0x1,_0xae99ba;_0x1d1d3c>=0x0;_0x1d1d3c--)(_0xae99ba=_0x5787dd[_0x1d1d3c])&&(_0x1da02a=_0xae99ba(_0x1da02a)||_0x1da02a);return _0x1da02a;},W=(_0x473b0a,_0x498512)=>(_0x4075d3,_0x2ef55b)=>_0x498512(_0x4075d3,_0x2ef55b,_0x473b0a);exports[_0x4c4685(0x3d7)]=class extends u['CollaborationSocketService']{constructor(_0x3dfd0c,_0x31c4b1,_0x2c35fc,_0x4f9509,_0x32355f){super(_0x3dfd0c,_0x31c4b1,_0x2c35fc,_0x4f9509,_0x32355f);}async[_0x4c4685(0x2ef)](_0x35b542){const _0x25b000=_0x4c4685,_0x1b0270=await this[_0x25b000(0x25f)](),_0x501217=this[_0x25b000(0x245)](_0x35b542,_0x1b0270);return this[_0x25b000(0x185)](_0x501217);}[_0x4c4685(0x245)](_0x563783,_0x546699){const _0x29f942=_0x4c4685,_0x1cae02=typeof window>'u'?new URL(_0x563783):new URL(_0x563783,window['location'][_0x29f942(0x269)]);_0x1cae02[_0x29f942(0x1fe)][_0x29f942(0x1d4)](_0x29f942(0x197),_0x546699);const _0x162c2f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x29f942(0x3f7)]['search']);return _0x162c2f[_0x29f942(0x418)]('runId')&&_0x1cae02[_0x29f942(0x1fe)][_0x29f942(0x1d4)](_0x29f942(0x3fb),_0x162c2f[_0x29f942(0x418)](_0x29f942(0x3fb))),_0x1cae02[_0x29f942(0x173)]();}async[_0x4c4685(0x25f)](){const _0x48b537=_0x4c4685;var _0x216087,_0x5a93ec,_0x27af6a;const _0x144930=this[_0x48b537(0x410)][_0x48b537(0x184)](u[_0x48b537(0x3b0)]),_0x5069e3=(_0x216087=_0x144930==null?void 0x0:_0x144930[_0x48b537(0x307)])!=null?_0x216087:u[_0x48b537(0x421)];return(_0x27af6a=(_0x5a93ec=(await this[_0x48b537(0x378)][_0x48b537(0x418)](_0x5069e3,{'headers':{'Content-Type':_0x48b537(0x1cd)}}))['body'])==null?void 0x0:_0x5a93ec['ticket'])!=null?_0x27af6a:'';}},exports[_0x4c4685(0x3d7)]=Is([W(0x0,a[_0x4c4685(0x414)](a['Injector'])),W(0x1,a[_0x4c4685(0x414)](x['HTTPService'])),W(0x2,a[_0x4c4685(0x1c6)]),W(0x3,a[_0x4c4685(0x259)]),W(0x4,g['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);var ds=Object[_0x4c4685(0x1b0)],Ss=(_0x4ca050,_0x600c7e,_0x4eb890,_0x5bda1f)=>{for(var _0x252486=_0x5bda1f>0x1?void 0x0:_0x5bda1f?ds(_0x600c7e,_0x4eb890):_0x600c7e,_0x589710=_0x4ca050['length']-0x1,_0x31b892;_0x589710>=0x0;_0x589710--)(_0x31b892=_0x4ca050[_0x589710])&&(_0x252486=_0x31b892(_0x252486)||_0x252486);return _0x252486;},fe=(_0x10236b,_0xe76a13)=>(_0xa5e19a,_0x30e39d)=>_0xe76a13(_0xa5e19a,_0x30e39d,_0x10236b);exports[_0x4c4685(0x2bd)]=class extends a['Disposable']{constructor(_0x44aee5,_0x40d448,_0x254842){const _0x2eff4b=_0x4c4685;super(),this[_0x2eff4b(0x250)]=_0x44aee5,this['_httpService']=_0x40d448,this[_0x2eff4b(0x410)]=_0x254842;}async[_0x4c4685(0x2f5)](_0x1ffe67,_0x58943d,_0x201270,..._0x218439){const _0x3dc466=_0x4c4685;var _0x51a21c,_0xef59f9,_0x2deba0,_0x27224a;const _0x5e9cea=this[_0x3dc466(0x250)][_0x3dc466(0x2e6)]();if(!_0x5e9cea)throw new Error(_0x3dc466(0x252));const _0x17593f=((_0x51a21c=this[_0x3dc466(0x410)][_0x3dc466(0x184)](u[_0x3dc466(0x2d4)]))!=null?_0x51a21c:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1ffe67+'/run/'+_0x58943d,_0x454303=new URL(window['location']['href']),_0x24fe35={'scriptId':_0x1ffe67,'runId':(_0xef59f9=_0x454303[_0x3dc466(0x1fe)][_0x3dc466(0x418)]('runId'))!=null?_0xef59f9:'','function':_0x58943d,'unitId':_0x5e9cea[_0x3dc466(0x1ca)](),'argsOfFunction':JSON['stringify'](_0x218439),'invokeId':(_0x2deba0=_0x201270[_0x3dc466(0x3e5)])!=null?_0x2deba0:'','executionId':(_0x27224a=_0x201270[_0x3dc466(0x1e9)])!=null?_0x27224a:''};try{const _0x6415b5=await this['_httpService'][_0x3dc466(0x300)](_0x17593f,{'body':_0x24fe35});return _0x6415b5[_0x3dc466(0x42a)][_0x3dc466(0x2c2)]&&_0x6415b5[_0x3dc466(0x42a)][_0x3dc466(0x2c2)][_0x3dc466(0x31e)]!==G['OK']?_0x3dc466(0x196):_0x6415b5[_0x3dc466(0x42a)][_0x3dc466(0x3ef)];}catch{return _0x3dc466(0x196);}}},exports[_0x4c4685(0x2bd)]=Ss([fe(0x0,a['IUniverInstanceService']),fe(0x1,a[_0x4c4685(0x414)](x[_0x4c4685(0x210)])),fe(0x2,a[_0x4c4685(0x1c6)])],exports[_0x4c4685(0x2bd)]);const we=0x7530,ye=_0x4c4685(0x3ba);class fs extends a[_0x4c4685(0x25e)]{constructor(){const _0x59b96f=_0x4c4685;super(),_(this,'_id',a[_0x59b96f(0x331)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x59b96f(0x35a),new Map()),_(this,_0x59b96f(0x1bc),null),_(this,_0x59b96f(0x353),new Map()),_(this,_0x59b96f(0x2fa),new Map()),this['_init']();}[_0x4c4685(0x3d3)](){const _0x1c9fdb=_0x4c4685;super['dispose'](),this[_0x1c9fdb(0x353)]['forEach']((_0x43dae4,_0x46cff5)=>this[_0x1c9fdb(0x1a2)](_0x46cff5)),this[_0x1c9fdb(0x1bc)]&&window['clearInterval'](this[_0x1c9fdb(0x1bc)]);}[_0x4c4685(0x290)](_0x4c32f9){const _0x299410=_0x4c4685;return this['_ensureSubject'](_0x4c32f9)[_0x299410(0x249)](I['distinctUntilChanged']());}[_0x4c4685(0x271)](_0x120bcb){const _0xc26a50=_0x4c4685;this['_selfUnitIDs']['size']===0x0&&this[_0xc26a50(0x371)](),this[_0xc26a50(0x419)]['add'](_0x120bcb),this[_0xc26a50(0x3b7)]({'type':0x0,'memberID':this[_0xc26a50(0x31b)],'unitIDs':[_0x120bcb],'isForwarded':!0x1});}[_0x4c4685(0x325)](_0x18ca02){const _0x2b82c2=_0x4c4685;this[_0x2b82c2(0x419)][_0x2b82c2(0x1be)](_0x18ca02),this[_0x2b82c2(0x419)][_0x2b82c2(0x201)]===0x0&&this[_0x2b82c2(0x1bc)]&&window['clearInterval'](this[_0x2b82c2(0x1bc)]);}['_init'](){const _0x21c9c6=_0x4c4685;this[_0x21c9c6(0x1c2)](a[_0x21c9c6(0x356)](I['fromEvent'](window,_0x21c9c6(0x205))[_0x21c9c6(0x2e5)](_0x24b647=>{const _0x357254=_0x21c9c6;if(_0x24b647['key']!==ye||!_0x24b647[_0x357254(0x285)])return;const _0x5a4420=JSON['parse'](_0x24b647[_0x357254(0x285)]);this[_0x357254(0x2e2)](_0x5a4420);}))),window[_0x21c9c6(0x24c)](_0x21c9c6(0x232),()=>this[_0x21c9c6(0x3b7)]({'type':0x1,'memberID':this[_0x21c9c6(0x31b)],'unitIDs':Array[_0x21c9c6(0x2f2)](this['_selfUnitIDs'])}));}[_0x4c4685(0x2e2)](_0x42c1cc){const _0x31a736=_0x4c4685;switch(_0x42c1cc[_0x31a736(0x180)]){case 0x0:this[_0x31a736(0x308)](_0x42c1cc);break;case 0x1:this['_handleLeaveEvent'](_0x42c1cc);break;case 0x2:this[_0x31a736(0x193)](_0x42c1cc);break;}}[_0x4c4685(0x308)](_0x5b52f7){const _0x4e36c7=_0x4c4685,{unitIDs:_0x2b9155,memberID:_0x354e7b,isForwarded:_0x3e5fae}=_0x5b52f7;_0x2b9155[_0x4e36c7(0x258)](_0x56d129=>{const _0x2c2235=_0x4e36c7;if(!_0x3e5fae&&this[_0x2c2235(0x35a)][_0x2c2235(0x39b)](_0x56d129)&&this[_0x2c2235(0x357)](_0x56d129)[_0x2c2235(0x215)](u[_0x2c2235(0x295)][_0x2c2235(0x233)]),!this[_0x2c2235(0x35a)][_0x2c2235(0x39b)](_0x56d129)||!this['_unitOnClients'][_0x2c2235(0x418)](_0x56d129)[_0x2c2235(0x39b)](_0x354e7b)){const _0x5472b7=this[_0x2c2235(0x35a)]['get'](_0x56d129)||new Set();_0x5472b7[_0x2c2235(0x1c9)](_0x354e7b),this[_0x2c2235(0x35a)][_0x2c2235(0x1d4)](_0x56d129,_0x5472b7),this[_0x2c2235(0x1e8)](_0x354e7b);}}),_0x3e5fae||this[_0x4e36c7(0x3b7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4c4685(0x1e8)](_0x318ca1){const _0x1f997b=_0x4c4685;this[_0x1f997b(0x1a2)](_0x318ca1);const _0x150e83=window[_0x1f997b(0x2fe)](()=>{const _0x2eeb56=_0x1f997b;this[_0x2eeb56(0x35a)][_0x2eeb56(0x258)](_0x204777=>{_0x204777['delete'](_0x318ca1);});},we*0x2);this[_0x1f997b(0x353)][_0x1f997b(0x1d4)](_0x318ca1,_0x150e83);}[_0x4c4685(0x1a2)](_0x259210){const _0x410923=_0x4c4685;if(this[_0x410923(0x353)][_0x410923(0x39b)](_0x259210)){const _0x52f4d0=this[_0x410923(0x353)][_0x410923(0x418)](_0x259210);_0x52f4d0&&window['clearTimeout'](_0x52f4d0),this[_0x410923(0x353)][_0x410923(0x1d4)](_0x259210,null);}}['_handleLeaveEvent'](_0x437d38){const _0x4cd720=_0x4c4685,{memberID:_0x4e68c3,unitIDs:_0x39cf1f}=_0x437d38;_0x39cf1f[_0x4cd720(0x258)](_0xe7cbca=>{const _0x1342ff=_0x4cd720;var _0x3d2f16;const _0x175af3=this['_unitOnClients']['get'](_0xe7cbca);_0x175af3&&(_0x175af3[_0x1342ff(0x1be)](_0x4e68c3),(_0x3d2f16=this['_ensureSubject'](_0xe7cbca))==null||_0x3d2f16[_0x1342ff(0x215)](_0x175af3['size']===0x0?u['UnitStatus'][_0x1342ff(0x18f)]:u[_0x1342ff(0x295)][_0x1342ff(0x233)]));}),this[_0x4cd720(0x1a2)](_0x4e68c3);}['_handleHeartbeatEvent'](_0x233f87){this['_scheduleClearOtherTimer'](_0x233f87['memberID']);}[_0x4c4685(0x3b7)](_0x4e3c25){const _0x5a945d=_0x4c4685;localStorage[_0x5a945d(0x1c4)](ye,JSON['stringify'](_0x4e3c25));}[_0x4c4685(0x371)](){const _0xfe4f1a=_0x4c4685;this[_0xfe4f1a(0x1bc)]=window['setInterval'](()=>{const _0x537f21=_0xfe4f1a;this[_0x537f21(0x3b7)]({'type':0x2,'memberID':this[_0x537f21(0x31b)]});},we);}[_0x4c4685(0x357)](_0x3bfe58){const _0xa709c1=_0x4c4685;return this[_0xa709c1(0x2fa)][_0xa709c1(0x39b)](_0x3bfe58)||this[_0xa709c1(0x2fa)][_0xa709c1(0x1d4)](_0x3bfe58,new I[(_0xa709c1(0x37d))](u[_0xa709c1(0x295)][_0xa709c1(0x18f)])),this[_0xa709c1(0x2fa)]['get'](_0x3bfe58);}}exports[_0x4c4685(0x358)]=Oe,exports[_0x4c4685(0x273)]=je,exports[_0x4c4685(0x21a)]=fs,exports[_0x4c4685(0x1c5)]=ke;
|
|
1
|
+
'use strict';const _0x4ce73f=_0x1472;(function(_0x55ec9a,_0x4e4bb1){const _0x4e95c7=_0x1472,_0x2fe77a=_0x55ec9a();while(!![]){try{const _0x33359b=-parseInt(_0x4e95c7(0x176))/0x1*(parseInt(_0x4e95c7(0x1a8))/0x2)+-parseInt(_0x4e95c7(0x226))/0x3*(-parseInt(_0x4e95c7(0x3c1))/0x4)+-parseInt(_0x4e95c7(0x2d3))/0x5*(-parseInt(_0x4e95c7(0x3da))/0x6)+-parseInt(_0x4e95c7(0x40b))/0x7*(-parseInt(_0x4e95c7(0x3be))/0x8)+parseInt(_0x4e95c7(0x159))/0x9+parseInt(_0x4e95c7(0x2f1))/0xa+-parseInt(_0x4e95c7(0x3b6))/0xb;if(_0x33359b===_0x4e4bb1)break;else _0x2fe77a['push'](_0x2fe77a['shift']());}catch(_0x1e7f1b){_0x2fe77a['push'](_0x2fe77a['shift']());}}}(_0x2998,0x808a8));var Xe=Object[_0x4ce73f(0x282)],Ke=(_0x350013,_0x3ce67c,_0x51d024)=>_0x3ce67c in _0x350013?Xe(_0x350013,_0x3ce67c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51d024}):_0x350013[_0x3ce67c]=_0x51d024,_=(_0x2ed5e7,_0x401990,_0x3e7ed7)=>Ke(_0x2ed5e7,typeof _0x401990!=_0x4ce73f(0x3fe)?_0x401990+'':_0x401990,_0x3e7ed7);Object[_0x4ce73f(0x282)](exports,Symbol['toStringTag'],{'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'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=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 pe({ref:_0x3cef29,..._0x6539d}){const _0x19a755=_0x4ce73f,{icon:_0x5b1c12,id:_0x4c01e6,className:_0x2c4c6b,extend:_0x5c3b29,..._0x3c0e6d}=_0x6539d,_0x47585b=(_0x19a755(0x166)+_0x4c01e6+'\x20'+(_0x2c4c6b||''))[_0x19a755(0x31e)](),_0x5f5c9b=A[_0x19a755(0x332)]('_'+Qe());return $e(_0x5b1c12,''+_0x4c01e6,{'defIds':_0x5b1c12['defIds'],'idSuffix':_0x5f5c9b[_0x19a755(0x2ed)]},{'ref':_0x3cef29,'className':_0x47585b,..._0x3c0e6d},_0x5c3b29);}function $e(_0x3f5a60,_0x1faab0,_0x2122b9,_0x28eb7f,_0x139b7c){const _0xae0ad4=_0x4ce73f;return A[_0xae0ad4(0x376)](_0x3f5a60[_0xae0ad4(0x181)],{'key':_0x1faab0,...Je(_0x3f5a60,_0x2122b9,_0x139b7c),..._0x28eb7f},(Ze(_0x3f5a60,_0x2122b9)[_0xae0ad4(0x40a)]||[])[_0xae0ad4(0x156)]((_0x120b83,_0x4ba7e8)=>$e(_0x120b83,_0x1faab0+'-'+_0x3f5a60[_0xae0ad4(0x181)]+'-'+_0x4ba7e8,_0x2122b9,void 0x0,_0x139b7c)));}function Je(_0x436c75,_0x22d10f,_0x1b4c70){const _0x176458=_0x4ce73f,_0x58eabb={..._0x436c75[_0x176458(0x224)]};_0x1b4c70!=null&&_0x1b4c70[_0x176458(0x22d)]&&_0x58eabb['fill']==='colorChannel1'&&(_0x58eabb[_0x176458(0x2d8)]=_0x1b4c70[_0x176458(0x22d)]),_0x436c75[_0x176458(0x181)]===_0x176458(0x2a0)&&_0x58eabb['id']&&(_0x58eabb['id']=_0x58eabb['id']+_0x22d10f[_0x176458(0x321)]),Object['entries'](_0x58eabb)['forEach'](([_0x398382,_0x10caae])=>{const _0x8e07f9=_0x176458;_0x398382===_0x8e07f9(0x2a0)&&typeof _0x10caae=='string'&&(_0x58eabb[_0x398382]=_0x10caae[_0x8e07f9(0x3e3)](/url\(#(.*)\)/,'url(#$1'+_0x22d10f[_0x8e07f9(0x321)]+')'));});const {defIds:_0x2efea3}=_0x22d10f;return!_0x2efea3||_0x2efea3[_0x176458(0x1a7)]===0x0||(_0x436c75[_0x176458(0x181)]==='use'&&_0x58eabb[_0x176458(0x1d9)]&&(_0x58eabb[_0x176458(0x1d9)]=_0x58eabb[_0x176458(0x1d9)]+_0x22d10f['idSuffix']),Object[_0x176458(0x396)](_0x58eabb)[_0x176458(0x18f)](([_0x3c2d3b,_0xb3c352])=>{const _0x42d475=_0x176458;typeof _0xb3c352==_0x42d475(0x2a9)&&(_0x58eabb[_0x3c2d3b]=_0xb3c352[_0x42d475(0x3e3)](/url\(#(.*)\)/,'url(#$1'+_0x22d10f[_0x42d475(0x321)]+')'));})),_0x58eabb;}function Ze(_0x177c1a,_0x5e9045){const _0x2616a3=_0x4ce73f;var _0x50f7d5;const {defIds:_0x35ae10}=_0x5e9045;return!_0x35ae10||_0x35ae10[_0x2616a3(0x1a7)]===0x0?_0x177c1a:_0x177c1a[_0x2616a3(0x181)]===_0x2616a3(0x244)&&((_0x50f7d5=_0x177c1a[_0x2616a3(0x40a)])!=null&&_0x50f7d5[_0x2616a3(0x1a7)])?{..._0x177c1a,'children':_0x177c1a['children']['map'](_0x349d87=>typeof _0x349d87[_0x2616a3(0x224)]['id']==_0x2616a3(0x2a9)&&_0x35ae10&&_0x35ae10[_0x2616a3(0x418)](_0x349d87[_0x2616a3(0x224)]['id'])?{..._0x349d87,'attrs':{..._0x349d87[_0x2616a3(0x224)],'id':_0x349d87[_0x2616a3(0x224)]['id']+_0x5e9045[_0x2616a3(0x321)]}}:_0x349d87)}:_0x177c1a;}function Qe(){const _0x396008=_0x4ce73f;return Math[_0x396008(0x390)]()[_0x396008(0x231)](0x24)[_0x396008(0x18b)](0x2,0x8);}pe[_0x4ce73f(0x194)]=_0x4ce73f(0x242);const et={'tag':'svg','attrs':{'xmlns':_0x4ce73f(0x31c),'fill':_0x4ce73f(0x257),'viewBox':_0x4ce73f(0x2b4),'width':_0x4ce73f(0x243),'height':_0x4ce73f(0x243)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4ce73f(0x203),'attrs':{'stroke':_0x4ce73f(0x218),'d':_0x4ce73f(0x3f5),'strokeLinecap':_0x4ce73f(0x270),'strokeLinejoin':_0x4ce73f(0x270),'strokeWidth':1.2}}]},{'tag':_0x4ce73f(0x244),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x4ce73f(0x37a)}}]}]}],'defIds':[_0x4ce73f(0x343)]},xe=A[_0x4ce73f(0x3df)](function(_0x35cb06,_0x12e557){const _0x5f5521=_0x4ce73f;return A[_0x5f5521(0x376)](pe,Object[_0x5f5521(0x331)]({},_0x35cb06,{'id':_0x5f5521(0x1e4),'ref':_0x12e557,'icon':et}));});xe[_0x4ce73f(0x194)]=_0x4ce73f(0x2f3);const tt={'tag':_0x4ce73f(0x1e3),'attrs':{'xmlns':_0x4ce73f(0x31c),'fill':_0x4ce73f(0x257),'viewBox':'0\x200\x2017\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4ce73f(0x3fc)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x4ce73f(0x270),'strokeWidth':1.2}}]},{'tag':_0x4ce73f(0x244),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4ce73f(0x2a7)},'children':[{'tag':_0x4ce73f(0x203),'attrs':{'fill':_0x4ce73f(0x414),'d':_0x4ce73f(0x37a),'transform':_0x4ce73f(0x232)}}]}]}],'defIds':[_0x4ce73f(0x2a7)]},Be=A['forwardRef'](function(_0xa5589,_0x175782){const _0x5e3294=_0x4ce73f;return A['createElement'](pe,Object['assign']({},_0xa5589,{'id':_0x5e3294(0x36e),'ref':_0x175782,'icon':tt}));});Be['displayName']=_0x4ce73f(0x3c5);function st(_0x5d39ab){const _0x4bcfcf=_0x4ce73f;switch(_0x5d39ab){case u['CollaborationStatus'][_0x4bcfcf(0x1f7)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x4bcfcf(0x228)]:return _0x4bcfcf(0x327);case u[_0x4bcfcf(0x2f9)][_0x4bcfcf(0x1d6)]:return _0x4bcfcf(0x41f);case u[_0x4bcfcf(0x2f9)][_0x4bcfcf(0x1d1)]:return'collabStatus.notCollab';case u[_0x4bcfcf(0x2f9)][_0x4bcfcf(0x3d9)]:case u[_0x4bcfcf(0x2f9)][_0x4bcfcf(0x41d)]:return _0x4bcfcf(0x2ae);case u['CollaborationStatus'][_0x4bcfcf(0x404)]:case u[_0x4bcfcf(0x2f9)]['PENDING']:return _0x4bcfcf(0x3d5);}}function it(_0x2d4309){const _0x55b235=_0x4ce73f,{status$:_0x5eff89}=_0x2d4309,_0x5dabb1=O[_0x55b235(0x1e9)](_0x5eff89,u['CollaborationStatus'][_0x55b235(0x1d1)]),_0x35e691=O[_0x55b235(0x25f)](a[_0x55b235(0x3ac)]),_0xdd2349=O[_0x55b235(0x25f)](u['CollaborationSessionService']),_0xda1be3=_0x5dabb1!==u[_0x55b235(0x2f9)][_0x55b235(0x1f7)],_0x262bb0=_0x35e691['t'](st(_0x5dabb1)),_0x1492d5=_0xda1be3?M[_0x55b235(0x346)](Be,{}):M[_0x55b235(0x346)](xe,{}),_0x49cb3f=A[_0x55b235(0x1ba)](()=>{const _0x196137=_0x55b235;_0xda1be3||_0xdd2349[_0x196137(0x21c)]();},[_0xda1be3,_0xdd2349]);function _0x3aa7a2(){const _0x25792d=_0x55b235;return M[_0x25792d(0x306)](_0x25792d(0x238),{'className':'univer-flex\x20univer-items-center','onClick':_0x49cb3f,'children':[M[_0x25792d(0x346)](_0x25792d(0x238),{'className':p[_0x25792d(0x22f)](_0x25792d(0x379),{'univer-text-green-500':_0xda1be3,'univer-text-red-500':!_0xda1be3}),'children':_0x1492d5}),M[_0x25792d(0x346)](_0x25792d(0x238),{'className':_0x25792d(0x2b0),'children':_0x262bb0})]});}return _0xda1be3?_0x3aa7a2():M['jsx'](p[_0x55b235(0x3c0)],{'title':_0x35e691['t'](_0x55b235(0x393)),'children':_0x3aa7a2()});}var nt=Object[_0x4ce73f(0x3c3)],rt=(_0x12ae0e,_0x412c79,_0xaf6e3c,_0x486ae4)=>{for(var _0x798a1d=_0x486ae4>0x1?void 0x0:_0x486ae4?nt(_0x412c79,_0xaf6e3c):_0x412c79,_0x58b2c8=_0x12ae0e['length']-0x1,_0x34534f;_0x58b2c8>=0x0;_0x58b2c8--)(_0x34534f=_0x12ae0e[_0x58b2c8])&&(_0x798a1d=_0x34534f(_0x798a1d)||_0x798a1d);return _0x798a1d;},K=(_0x41551e,_0x2255f4)=>(_0x586b04,_0x4dbb66)=>_0x2255f4(_0x586b04,_0x4dbb66,_0x41551e);exports[_0x4ce73f(0x283)]=class extends a[_0x4ce73f(0x3b9)]{constructor(_0x310731,_0x351662,_0x30381a,_0x2b5109){const _0x407557=_0x4ce73f;super(),_(this,_0x407557(0x407),new I[(_0x407557(0x373))](u['CollaborationStatus'][_0x407557(0x1d1)])),(this[_0x407557(0x1c3)]=_0x310731,this[_0x407557(0x274)]=_0x351662,this[_0x407557(0x3f1)]=_0x30381a,this[_0x407557(0x34a)]=_0x2b5109,this[_0x407557(0x213)](),this[_0x407557(0x2ee)]());}['_initStatusListener'](){const _0x1e1b22=_0x4ce73f;this[_0x1e1b22(0x381)](this[_0x1e1b22(0x1c3)][_0x1e1b22(0x2cb)][_0x1e1b22(0x211)](I[_0x1e1b22(0x3e8)](()=>{const _0x11ded0=_0x1e1b22,_0x2a70a0=this[_0x11ded0(0x1c3)][_0x11ded0(0x177)]();return _0x2a70a0?this[_0x11ded0(0x3f1)][_0x11ded0(0x1c8)](_0x2a70a0[_0x11ded0(0x207)]()):I['of'](null);}),I[_0x1e1b22(0x3e8)](_0x334d6e=>_0x334d6e?_0x334d6e['status$']:I['of'](u['CollaborationStatus'][_0x1e1b22(0x1d1)])))[_0x1e1b22(0x17d)](_0x4884da=>{const _0x31a8e3=_0x1e1b22;this[_0x31a8e3(0x407)][_0x31a8e3(0x38b)](_0x4884da);}));}[_0x4ce73f(0x213)](){const _0x4c899a=_0x4ce73f;this[_0x4c899a(0x381)](this['_uiPartsService'][_0x4c899a(0x3d8)](O[_0x4c899a(0x2a1)][_0x4c899a(0x2ea)],()=>O[_0x4c899a(0x340)](ot({'status$':this[_0x4c899a(0x407)][_0x4c899a(0x172)]()}),this[_0x4c899a(0x274)])));}},exports[_0x4ce73f(0x283)]=rt([K(0x0,a[_0x4ce73f(0x2c6)]),K(0x1,a[_0x4ce73f(0x1ef)](a[_0x4ce73f(0x16c)])),K(0x2,a[_0x4ce73f(0x1ef)](u[_0x4ce73f(0x37e)])),K(0x3,O['IUIPartsService'])],exports[_0x4ce73f(0x283)]);function ot(_0x2e7b17){const {status$:_0x157e2b}=_0x2e7b17;return function(){return M['jsx'](it,{'status$':_0x157e2b});};}const Oe=a[_0x4ce73f(0x2c5)]('uni.network.url-service');var at=Object[_0x4ce73f(0x3c3)],ct=(_0x2e49c1,_0x5da929,_0x366a7a,_0x2ada3d)=>{const _0x4c0042=_0x4ce73f;for(var _0x180cdd=_0x2ada3d>0x1?void 0x0:_0x2ada3d?at(_0x5da929,_0x366a7a):_0x5da929,_0x4304e9=_0x2e49c1[_0x4c0042(0x1a7)]-0x1,_0x30653c;_0x4304e9>=0x0;_0x4304e9--)(_0x30653c=_0x2e49c1[_0x4304e9])&&(_0x180cdd=_0x30653c(_0x180cdd)||_0x180cdd);return _0x180cdd;},Y=(_0x1524ba,_0xea7d42)=>(_0x55a6b6,_0x266e6c)=>_0xea7d42(_0x55a6b6,_0x266e6c,_0x1524ba);exports[_0x4ce73f(0x322)]=class extends a[_0x4ce73f(0x3b2)]{constructor(_0x260062,_0x3502f7,_0x29ea38,_0x16b03d,_0x5ac03d){const _0x2ada47=_0x4ce73f;super(),this[_0x2ada47(0x3b1)]=_0x260062,this[_0x2ada47(0x2e8)]=_0x3502f7,this[_0x2ada47(0x3f3)]=_0x29ea38,this[_0x2ada47(0x2e2)]=_0x16b03d,_0x5ac03d?_0x5ac03d==null||_0x5ac03d[_0x2ada47(0x3ff)]()[_0x2ada47(0x397)](()=>this['_init']()):(this['_logService'][_0x2ada47(0x28c)](_0x2ada47(0x388),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2ada47(0x3dd)]());}async['_init'](){const _0x10c6c6=_0x4ce73f,_0x58906=this[_0x10c6c6(0x3b1)]['getParam'](_0x10c6c6(0x3a0)),_0x59f1aa=this[_0x10c6c6(0x3b1)][_0x10c6c6(0x3f7)](_0x10c6c6(0x25d)),_0x9ab66b=this[_0x10c6c6(0x3b1)][_0x10c6c6(0x3f7)]('subunit');if(!_0x58906||!_0x59f1aa){this['_logService']['debug'](_0x10c6c6(0x388),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x2244d7=await this[_0x10c6c6(0x2e2)][_0x10c6c6(0x2ba)](_0x58906,Number(_0x59f1aa),_0x9ab66b);_0x2244d7&&_0x2244d7 instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x2244d7);}async[_0x4ce73f(0x39f)](_0x3a3a73){const _0x877917=_0x4ce73f;await this[_0x877917(0x2e0)](_0x3a3a73),_0x3a3a73[_0x877917(0x31d)][_0x877917(0x211)](I[_0x877917(0x15f)](this[_0x877917(0x202)]))[_0x877917(0x17d)](_0x44badf=>{const _0x2b4b08=_0x877917;_0x44badf&&this[_0x2b4b08(0x1d3)](_0x44badf);}),this['_urlService'][_0x877917(0x2ca)][_0x877917(0x211)](I[_0x877917(0x15f)](this['dispose$']))['subscribe'](()=>this[_0x877917(0x2e0)](_0x3a3a73));}[_0x4ce73f(0x1d3)](_0x1147e1,_0xaffe64=!0x1){const _0x41ced2=_0x4ce73f,_0x5f2c45=this[_0x41ced2(0x3b1)][_0x41ced2(0x3f7)](_0x41ced2(0x248));_0x1147e1[_0x41ced2(0x1a2)]()!==_0x5f2c45&&this[_0x41ced2(0x3b1)][_0x41ced2(0x169)](_0x41ced2(0x248),_0x1147e1['getSheetId'](),_0xaffe64);}async[_0x4ce73f(0x2e0)](_0x32c01e){const _0x2778e4=_0x4ce73f;var _0xb6381b;const _0x522463=this[_0x2778e4(0x3b1)][_0x2778e4(0x3f7)](_0x2778e4(0x248));if(!_0x522463||!_0x32c01e[_0x2778e4(0x1a1)](_0x522463)){const _0x201f3a=_0x32c01e[_0x2778e4(0x372)]()[0x0],_0x2de8e3=_0x32c01e[_0x2778e4(0x1a1)](_0x201f3a);if(!_0x2de8e3)return;this['_updateURLWithCurrentState'](_0x2de8e3,!0x0),await this[_0x2778e4(0x3f3)][_0x2778e4(0x1e0)](v[_0x2778e4(0x24d)]['id'],{'unitId':_0x32c01e[_0x2778e4(0x207)](),'subUnitId':_0x201f3a});return;}((_0xb6381b=_0x32c01e['getActiveSheet']())==null?void 0x0:_0xb6381b[_0x2778e4(0x1a2)]())!==_0x522463&&await this[_0x2778e4(0x3f3)][_0x2778e4(0x1e0)](v[_0x2778e4(0x24d)]['id'],{'unitId':_0x32c01e[_0x2778e4(0x207)](),'subUnitId':_0x522463});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x4ce73f(0x14f)]),Y(0x3,a['Inject'](u[_0x4ce73f(0x1b3)])),Y(0x4,a[_0x4ce73f(0x3bf)](qe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x5a6157,_0x49059e,_0x419f63,_0x38565c)=>{const _0x5b6e38=_0x4ce73f;for(var _0x3de089=_0x38565c>0x1?void 0x0:_0x38565c?lt(_0x49059e,_0x419f63):_0x49059e,_0x550690=_0x5a6157[_0x5b6e38(0x1a7)]-0x1,_0x35c32a;_0x550690>=0x0;_0x550690--)(_0x35c32a=_0x5a6157[_0x550690])&&(_0x3de089=_0x35c32a(_0x3de089)||_0x3de089);return _0x3de089;},De=(_0x44ef89,_0x2e517c)=>(_0x33a5ee,_0x23234b)=>_0x2e517c(_0x33a5ee,_0x23234b,_0x44ef89);let me=class extends a[_0x4ce73f(0x3b2)]{constructor(_0x5296dd,_0x3c4207){const _0x3cc494=_0x4ce73f;super(),this[_0x3cc494(0x167)]=_0x5296dd,this[_0x3cc494(0x2bc)]=_0x3c4207,this[_0x3cc494(0x3dd)]();}[_0x4ce73f(0x3dd)](){const _0x43c5c5=_0x4ce73f,_0x2722b0=this;this[_0x43c5c5(0x381)](this[_0x43c5c5(0x167)]['addClipboardHook']({'onBeforePasteImage':async _0x3557f9=>{const _0x3176e5=_0x43c5c5,_0xa479b2=await _0x2722b0[_0x3176e5(0x2bc)][_0x3176e5(0x3fa)](_0x3557f9);return _0xa479b2?{'source':_0xa479b2[_0x3176e5(0x1c4)],'imageSourceType':_0xa479b2['imageSourceType']}:null;}}));}};me=_t([De(0x0,T[_0x4ce73f(0x1e1)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x4ce73f(0x301),_0x4ce73f(0x405),_0x4ce73f(0x362),_0x4ce73f(0x32c),_0x4ce73f(0x37d),'yellow.400'];class Re extends a[_0x4ce73f(0x3b9)]{constructor(){const _0x58a830=_0x4ce73f;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x58a830(0x17f),0x0);}['assignAColorForMemberID'](_0x5c859c){const _0x43fb20=_0x4ce73f;if(this['_assignedColors'][_0x43fb20(0x1ae)](_0x5c859c))return this[_0x43fb20(0x320)]['get'](_0x5c859c);const _0x3bfe5c=Ne[this[_0x43fb20(0x17f)]];return this[_0x43fb20(0x17f)]=(this['_colorIndex']+0x1)%Ne[_0x43fb20(0x1a7)],this[_0x43fb20(0x320)][_0x43fb20(0x1d7)](_0x5c859c,_0x3bfe5c),_0x3bfe5c;}}function Fe(_0x250443){const _0x1da83d=_0x4ce73f;let _0x3429be='';for(const _0x393fc0 of _0x250443){const {startOffset:_0x421236,endOffset:_0xd73af8,isActive:_0x1715d0,rangeType:_0xd0ef5c,segmentId:_0x486538,segmentPage:_0x1f201c}=_0x393fc0;_0x3429be[_0x1da83d(0x1a7)]&&(_0x3429be+=','),_0x3429be+=_0x421236+':'+_0xd73af8+':'+(_0x1715d0?'1':'0')+':'+_0xd0ef5c+':'+_0x486538+':'+_0x1f201c;}return _0x3429be;}function ht(_0x120f34){const _0xb90a3a=_0x4ce73f,_0x1e6334=_0x120f34[_0xb90a3a(0x1e5)](','),_0x3535ef=[];for(const _0x266649 of _0x1e6334){const [_0x4e2306,_0xf22ce2,_0x4c04d6,_0x4e66a9,_0x2cbafa,_0xa3f058]=_0x266649[_0xb90a3a(0x1e5)](':');_0x3535ef['push']({'startOffset':Number(_0x4e2306),'endOffset':Number(_0xf22ce2),'collapsed':_0x4e2306===_0xf22ce2,'isActive':_0x4c04d6==='1','rangeType':_0x4e66a9===a[_0xb90a3a(0x3a5)][_0xb90a3a(0x3db)]?a[_0xb90a3a(0x3a5)][_0xb90a3a(0x3db)]:a[_0xb90a3a(0x3a5)]['RECT'],'segmentId':typeof _0x2cbafa=='string'?String(_0x2cbafa):'','segmentPage':Number(_0xa3f058!=null?_0xa3f058:-0x1)});}return _0x3535ef[_0xb90a3a(0x326)](_0x5d478c=>_0x5d478c[_0xb90a3a(0x303)])||(_0x3535ef[0x0][_0xb90a3a(0x303)]=!0x0),_0x3535ef;}class be extends a[_0x4ce73f(0x3b2)]{constructor(){const _0x4b55de=_0x4ce73f;super(...arguments),_(this,_0x4b55de(0x32e),new I[(_0x4b55de(0x373))](null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x4b55de(0x172)]());}[_0x4ce73f(0x19f)](_0x17118e){const _0x3f9fcb=_0x4ce73f,{unitID:_0x1dbcb2,memberID:_0x35e487,textRanges:_0x4e6c76}=_0x17118e,_0x2af564=Fe(_0x4e6c76);if(_0x2af564==='')return;const _0x211738={'unitID':_0x1dbcb2,'memberID':_0x35e487,'selection':_0x2af564};this[_0x3f9fcb(0x32e)][_0x3f9fcb(0x38b)](_0x211738);}}var ut=Object[_0x4ce73f(0x3c3)],It=(_0x5de96d,_0x450605,_0x244a4c,_0x4d8b39)=>{const _0x50683c=_0x4ce73f;for(var _0x5852e9=_0x4d8b39>0x1?void 0x0:_0x4d8b39?ut(_0x450605,_0x244a4c):_0x450605,_0x25e831=_0x5de96d[_0x50683c(0x1a7)]-0x1,_0x223fac;_0x25e831>=0x0;_0x25e831--)(_0x223fac=_0x5de96d[_0x25e831])&&(_0x5852e9=_0x223fac(_0x5852e9)||_0x5852e9);return _0x5852e9;},U=(_0x4b4736,_0x1ad08b)=>(_0x9ed1e1,_0x3483a7)=>_0x1ad08b(_0x9ed1e1,_0x3483a7,_0x4b4736);const St=0x12c,dt=0x64;let ve=class extends a[_0x4ce73f(0x3b2)]{constructor(_0x5b3489,_0x333c93,_0x344278,_0x548098,_0x214a3c,_0x49884c,_0x239957,_0x3228c4,_0x5775f2){const _0x370a71=_0x4ce73f;super(),_(this,_0x370a71(0x24f),!0x1),_(this,_0x370a71(0x3dd),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x370a71(0x2aa),this[_0x370a71(0x350)]['asObservable']()),_(this,_0x370a71(0x27d),new I['BehaviorSubject']([])),_(this,_0x370a71(0x2da),this[_0x370a71(0x27d)][_0x370a71(0x211)](I['debounceTime'](St))),_(this,_0x370a71(0x235),a[_0x370a71(0x3d2)](_0x4f774c=>{const _0x3cf433=_0x370a71,_0x1565e7={'eventID':g[_0x3cf433(0x300)][_0x3cf433(0x287)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Fe(_0x4f774c)}};this[_0x3cf433(0x2de)][_0x3cf433(0x26e)](_0x1565e7,this[_0x3cf433(0x2b3)]);},dt)),(this[_0x370a71(0x2b3)]=_0x5b3489,this[_0x370a71(0x2de)]=_0x333c93,this[_0x370a71(0x274)]=_0x344278,this[_0x370a71(0x2c8)]=_0x548098,this[_0x370a71(0x330)]=_0x214a3c,this[_0x370a71(0x2b8)]=_0x49884c,this[_0x370a71(0x400)]=_0x239957,this['_univerInstanceService']=_0x3228c4,this[_0x370a71(0x3f3)]=_0x5775f2);}get['cursorInfo'](){const _0x24fc2c=_0x4ce73f;return this[_0x24fc2c(0x350)]['getValue']();}get[_0x4ce73f(0x1f8)](){const _0x4d8f78=_0x4ce73f;return this[_0x4d8f78(0x27d)][_0x4d8f78(0x36c)]();}[_0x4ce73f(0x23e)](){const _0x57558b=_0x4ce73f;super[_0x57558b(0x23e)](),this[_0x57558b(0x350)]['next'](new Map()),this[_0x57558b(0x350)][_0x57558b(0x3a3)](),this[_0x57558b(0x27d)][_0x57558b(0x38b)]([]),this[_0x57558b(0x27d)]['complete']();}['init'](){const _0x457e71=_0x4ce73f;this[_0x457e71(0x3dd)]||(this[_0x457e71(0x3dd)]=!0x0,this['_session'][_0x457e71(0x199)]['pipe'](I[_0x457e71(0x15f)](this['dispose$']))[_0x457e71(0x17d)](_0x16a7af=>{const _0x2c466c=_0x457e71;_0x16a7af===u['SessionStatus'][_0x2c466c(0x264)]?this[_0x2c466c(0x253)]():this[_0x2c466c(0x361)]();}),this[_0x457e71(0x2de)][_0x457e71(0x3e0)][_0x457e71(0x211)](I[_0x457e71(0x15f)](this[_0x457e71(0x202)]))[_0x457e71(0x17d)](_0x2ebb0a=>{const _0x5f1b3a=_0x457e71,_0x1f88f5=_0x2ebb0a['eventID'];_0x1f88f5===g[_0x5f1b3a(0x300)][_0x5f1b3a(0x287)]&&this[_0x5f1b3a(0x40e)](_0x2ebb0a),_0x1f88f5===g['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x2ebb0a);}),this[_0x457e71(0x381)](this['_commandService']['onCommandExecuted'](_0x3138c1=>{const _0x2b931e=_0x457e71,_0x85a4cf=_0x3138c1['params'];_0x85a4cf!=null&&this[_0x2b931e(0x24f)]&&_0x3138c1['id']===V[_0x2b931e(0x234)]['id']&&_0x85a4cf[_0x2b931e(0x1a9)]===this[_0x2b931e(0x2b3)]&&_0x85a4cf[_0x2b931e(0x3b4)]===!0x1&&_0x85a4cf['ranges'][_0x2b931e(0x1a7)]>0x0&&this[_0x2b931e(0x235)](_0x85a4cf['ranges']);})),this[_0x457e71(0x2b8)][_0x457e71(0x205)][_0x457e71(0x211)](I['takeUntil'](this[_0x457e71(0x202)]))['subscribe'](_0x4ef714=>{const _0x11d297=_0x457e71;if((_0x4ef714==null?void 0x0:_0x4ef714[_0x11d297(0x2b3)])!==this['unitID'])return;const _0x3701a3={'eventID':g[_0x11d297(0x300)]['UPDATE_CURSOR'],'data':_0x4ef714};this['_onCursorUpdate'](_0x3701a3);}),this['disposeWithMe'](this[_0x457e71(0x3f3)][_0x457e71(0x183)](_0xcb682f=>{const _0x61961e=_0x457e71;if(_0xcb682f[_0x61961e(0x223)]==null)return;const _0x1b8ed4=_0xcb682f[_0x61961e(0x223)];if(_0xcb682f['id']!==V[_0x61961e(0x1fa)]['id']||_0x1b8ed4[_0x61961e(0x1a9)]!==this[_0x61961e(0x2b3)])return;const _0x5ad78b={'id':'doc.mutation.rich-text-editing','params':_0x1b8ed4},_0x38576f=this[_0x61961e(0x2c7)];for(const [_0x25b547,_0x342fae]of _0x38576f){const _0x274cbe={'id':_0x61961e(0x1a0),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x342fae[_0x61961e(0x314)]}},_0x40f62e=this[_0x61961e(0x400)][_0x61961e(0x325)](_0x5ad78b,_0x274cbe,!0x1);if(g['isTransformMutationFailure'](_0x40f62e))throw _0x40f62e[_0x61961e(0x38a)];_0x38576f[_0x61961e(0x1d7)](_0x25b547,{..._0x342fae,'ranges':_0x40f62e['m2Prime'][_0x61961e(0x223)][_0x61961e(0x394)]});}queueMicrotask(()=>{const _0x4c13b3=_0x61961e;this[_0x4c13b3(0x350)][_0x4c13b3(0x38b)](_0x38576f);});})));}[_0x4ce73f(0x40e)](_0xbcb4b6){const _0x197c11=_0x4ce73f;var _0x433392,_0x56ea57;const {memberID:_0x35ec1d,selection:_0x27598b}=_0xbcb4b6[_0x197c11(0x1f1)],_0x57ce4f=ht(_0x27598b),_0x3157e3=(_0x56ea57=(_0x433392=this['_memberService'][_0x197c11(0x39a)](this[_0x197c11(0x2b3)],_0x35ec1d))==null?void 0x0:_0x433392['name'])!=null?_0x56ea57:_0x197c11(0x312),_0x1a802e={'color':this['_colorAssignService'][_0x197c11(0x25b)](_0x35ec1d),'name':_0x3157e3,'ranges':_0x57ce4f},_0x5d09a7=this[_0x197c11(0x2c7)];_0x5d09a7[_0x197c11(0x1d7)](_0x35ec1d,_0x1a802e),this[_0x197c11(0x350)][_0x197c11(0x38b)](_0x5d09a7);}[_0x4ce73f(0x21e)](_0x5eeca5){const _0x4289b7=_0x4ce73f,{memberID:_0x1ae184}=_0x5eeca5['data'],_0xfcf21e=this[_0x4289b7(0x2c7)];_0xfcf21e['delete'](_0x1ae184),this[_0x4289b7(0x350)][_0x4289b7(0x38b)](_0xfcf21e);}[_0x4ce73f(0x253)](){const _0x190991=_0x4ce73f;var _0x4cbd5c;if(this[_0x190991(0x24f)]=!0x0,((_0x4cbd5c=this[_0x190991(0x1c3)][_0x190991(0x177)]())==null?void 0x0:_0x4cbd5c[_0x190991(0x207)]())!==this[_0x190991(0x2b3)])return;const _0x544d05=this[_0x190991(0x274)][_0x190991(0x3fd)](V[_0x190991(0x2e4)])[_0x190991(0x23a)]();Array[_0x190991(0x351)](_0x544d05)&&_0x544d05['length']>0x0&&this[_0x190991(0x235)](_0x544d05);}['_toggleOffline'](){const _0x410ba5=_0x4ce73f;this[_0x410ba5(0x24f)]=!0x1;}};ve=It([U(0x2,a[_0x4ce73f(0x1ef)](a[_0x4ce73f(0x16c)])),U(0x3,a[_0x4ce73f(0x1ef)](Re)),U(0x4,a['Inject'](u['MemberService'])),U(0x5,a[_0x4ce73f(0x1ef)](be)),U(0x6,g[_0x4ce73f(0x3c4)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x4ce73f(0x14f)])],ve);var ft=Object[_0x4ce73f(0x3c3)],mt=(_0x296eb7,_0x4bb31b,_0x2f467d,_0x1e5136)=>{const _0x31d551=_0x4ce73f;for(var _0x35aaa2=_0x1e5136>0x1?void 0x0:_0x1e5136?ft(_0x4bb31b,_0x2f467d):_0x4bb31b,_0x29f44c=_0x296eb7[_0x31d551(0x1a7)]-0x1,_0x1394a1;_0x29f44c>=0x0;_0x29f44c--)(_0x1394a1=_0x296eb7[_0x29f44c])&&(_0x35aaa2=_0x1394a1(_0x35aaa2)||_0x35aaa2);return _0x35aaa2;},w=(_0x4c512d,_0xe68287)=>(_0x13afdd,_0x369162)=>_0xe68287(_0x13afdd,_0x369162,_0x4c512d);const vt=0x12c,gt=0x64,Et=()=>{let _0x319006=[],_0x2cdc11=!0x1;return _0x6d4e60=>{const _0x343d78=_0x1472;_0x319006[_0x343d78(0x2dd)](_0x6d4e60),_0x2cdc11||(_0x2cdc11=!0x0,setTimeout(()=>{const _0x2a7a0c=_0x343d78;_0x319006[_0x2a7a0c(0x18f)](_0x393103=>_0x393103()),_0x319006=[],_0x2cdc11=!0x1;}));};};let ge=class extends a[_0x4ce73f(0x3b2)]{constructor(_0x1f318f,_0x25a7dd,_0x1941b1,_0x15790c,_0x3ad7f4,_0x38e5f3,_0x51aca8,_0x5619d8){const _0x2b793c=_0x4ce73f;super(),_(this,_0x2b793c(0x24f),!0x1),_(this,_0x2b793c(0x3dd),!0x1),_(this,'_cursorInfo$',new I[(_0x2b793c(0x373))](new Map())),_(this,_0x2b793c(0x2aa),this[_0x2b793c(0x350)][_0x2b793c(0x172)]()),_(this,_0x2b793c(0x27d),new I[(_0x2b793c(0x373))]([])),_(this,_0x2b793c(0x2da),this['_roomMembers$'][_0x2b793c(0x211)](I['debounceTime'](vt))),_(this,_0x2b793c(0x235),a['debounce']((_0x4d95e8,_0x5efd4e)=>{const _0x2f6bae=_0x2b793c,_0x372a3d={'eventID':g['CollaborationEvent'][_0x2f6bae(0x287)],'data':{'unitID':this[_0x2f6bae(0x2b3)],'memberID':this['_session'][_0x2f6bae(0x2c0)](),'selection':B[_0x2f6bae(0x2a5)](_0x4d95e8,_0x5efd4e[_0x2f6bae(0x1be)])}};this['_session'][_0x2f6bae(0x26e)](_0x372a3d,this['unitID']);},gt)),(this[_0x2b793c(0x2b3)]=_0x1f318f,this[_0x2b793c(0x2de)]=_0x25a7dd,this['_injector']=_0x1941b1,this['_colorAssignService']=_0x15790c,this[_0x2b793c(0x330)]=_0x3ad7f4,this[_0x2b793c(0x1c3)]=_0x38e5f3,this['_commandService']=_0x51aca8,this[_0x2b793c(0x190)]=_0x5619d8);}get[_0x4ce73f(0x2c7)](){const _0x3b845b=_0x4ce73f;return this[_0x3b845b(0x350)][_0x3b845b(0x36c)]();}get[_0x4ce73f(0x1f8)](){const _0x240419=_0x4ce73f;return this[_0x240419(0x27d)][_0x240419(0x36c)]();}[_0x4ce73f(0x23e)](){const _0x179701=_0x4ce73f;super[_0x179701(0x23e)](),this[_0x179701(0x350)][_0x179701(0x38b)](new Map()),this['_cursorInfo$'][_0x179701(0x3a3)](),this['_roomMembers$'][_0x179701(0x38b)]([]),this[_0x179701(0x27d)][_0x179701(0x3a3)]();}[_0x4ce73f(0x30a)](){const _0x5cad33=_0x4ce73f;this[_0x5cad33(0x3dd)]||(this[_0x5cad33(0x3dd)]=!0x0,this[_0x5cad33(0x2de)][_0x5cad33(0x199)]['pipe'](I[_0x5cad33(0x15f)](this[_0x5cad33(0x202)]))[_0x5cad33(0x17d)](_0x4da6f1=>{const _0x209602=_0x5cad33;_0x4da6f1===u[_0x209602(0x289)][_0x209602(0x264)]?this[_0x209602(0x253)]():this['_toggleOffline']();}),this['_session'][_0x5cad33(0x3e0)]['pipe'](I[_0x5cad33(0x15f)](this[_0x5cad33(0x202)]))[_0x5cad33(0x17d)](_0x2ac946=>{const _0x14a2f0=_0x5cad33,_0x5d81da=_0x2ac946[_0x14a2f0(0x2df)];_0x5d81da===g[_0x14a2f0(0x300)][_0x14a2f0(0x287)]&&this[_0x14a2f0(0x40e)](_0x2ac946),_0x5d81da===g[_0x14a2f0(0x300)][_0x14a2f0(0x413)]&&this[_0x14a2f0(0x21e)](_0x2ac946);}),this[_0x5cad33(0x184)](),this[_0x5cad33(0x381)](this['_commandService'][_0x5cad33(0x183)](_0x54f000=>{const _0x7be770=_0x5cad33;if(this['_online']&&_0x54f000['id']===v[_0x7be770(0x323)]['id']&&_0x54f000[_0x7be770(0x223)][_0x7be770(0x1a9)]===this[_0x7be770(0x2b3)]){const _0x58b56a=_0x54f000[_0x7be770(0x223)];this[_0x7be770(0x235)](_0x58b56a[_0x7be770(0x2ad)],_0x58b56a[_0x7be770(0x2ef)][0x0]);}})));}['_onCursorUpdate'](_0x276260){const _0x529769=_0x4ce73f;var _0x263c81,_0x3d7eb1;const {memberID:_0x11ffbf,selection:_0x74ac9}=_0x276260[_0x529769(0x1f1)],{sheetName:_0x53769c,range:_0x33fe94}=B[_0x529769(0x35e)](_0x74ac9),_0x56a03d={'name':(_0x3d7eb1=(_0x263c81=this[_0x529769(0x330)]['getMember'](this[_0x529769(0x2b3)],_0x11ffbf))==null?void 0x0:_0x263c81['name'])!=null?_0x3d7eb1:_0x529769(0x312),'range':this[_0x529769(0x2dc)](_0x53769c,_0x33fe94),'sheetID':_0x53769c,'color':this['_colorAssignService'][_0x529769(0x25b)](_0x11ffbf),'selection':_0x74ac9},_0x16571b=this['cursorInfo'];_0x16571b['set'](_0x11ffbf,_0x56a03d),this[_0x529769(0x350)][_0x529769(0x38b)](_0x16571b);}['_onCursorDelete'](_0x50d399){const _0x2e3d75=_0x4ce73f,{memberID:_0x529d77}=_0x50d399['data'],_0x4c870c=this['cursorInfo'];_0x4c870c[_0x2e3d75(0x382)](_0x529d77),this[_0x2e3d75(0x350)][_0x2e3d75(0x38b)](_0x4c870c);}[_0x4ce73f(0x2dc)](_0x5cf377,_0x1e647a){const _0x1dbcc6=_0x4ce73f;var _0x3095a5,_0x3ac972;const _0x41fce3=(_0x3ac972=(_0x3095a5=this[_0x1dbcc6(0x1c3)][_0x1dbcc6(0x3ec)](this[_0x1dbcc6(0x2b3)]))==null?void 0x0:_0x3095a5[_0x1dbcc6(0x1a1)](_0x5cf377))==null?void 0x0:_0x3ac972[_0x1dbcc6(0x23c)]();return(_0x41fce3==null?void 0x0:_0x41fce3[_0x1dbcc6(0x152)](_0x4d0b6b=>a[_0x1dbcc6(0x359)][_0x1dbcc6(0x2fc)](_0x4d0b6b,_0x1e647a)))||_0x1e647a;}[_0x4ce73f(0x184)](){const _0x519c84=_0x4ce73f,_0x5e35a9=new a[(_0x519c84(0x185))](),_0x2ceb76=Et(),_0x4d50aa=()=>{const _0x4af22d=_0x519c84;_0x5e35a9['dispose']();const _0x251738=(_0x47ff6b,_0x187547,_0x24ece7,_0x321042)=>{const _0x32ef49=_0x1472;let _0x1ced33=[];switch(_0x47ff6b['id']){case v[_0x32ef49(0x310)][_0x32ef49(0x403)]:{_0x1ced33=v['handleDeleteRangeMoveLeft'](_0x47ff6b,_0x321042);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x1ced33=v[_0x32ef49(0x1cd)](_0x47ff6b,_0x321042);break;}case v['EffectRefRangId'][_0x32ef49(0x1aa)]:{_0x1ced33=v[_0x32ef49(0x32d)](_0x47ff6b,_0x321042);break;}case v[_0x32ef49(0x310)][_0x32ef49(0x377)]:{_0x1ced33=v[_0x32ef49(0x1f0)](_0x47ff6b,_0x321042);break;}case v['EffectRefRangId'][_0x32ef49(0x38d)]:{_0x1ced33=v['handleInsertRangeMoveRight'](_0x47ff6b,_0x321042);break;}case v[_0x32ef49(0x310)]['InsertRowCommandId']:{_0x1ced33=v[_0x32ef49(0x2b6)](_0x47ff6b,_0x321042);break;}case v[_0x32ef49(0x310)][_0x32ef49(0x296)]:{_0x1ced33=v[_0x32ef49(0x2eb)](_0x47ff6b,_0x321042);break;}case v[_0x32ef49(0x310)]['RemoveColCommandId']:{_0x1ced33=v[_0x32ef49(0x318)](_0x47ff6b,_0x321042);break;}case v['EffectRefRangId'][_0x32ef49(0x2bf)]:{_0x1ced33=v[_0x32ef49(0x3f2)](_0x47ff6b,_0x321042);break;}}const _0x351a02=v[_0x32ef49(0x380)](_0x1ced33,_0x321042),_0x160c5b=this['cursorInfo'][_0x32ef49(0x3fd)](_0x187547);if(_0x160c5b&&_0x351a02){const _0x9223a0={..._0x160c5b,'range':_0x351a02};this[_0x32ef49(0x2c7)]['set'](_0x187547,_0x9223a0),_0x2ceb76(()=>{const _0x496f8d=_0x32ef49,_0x274eeb=this[_0x496f8d(0x190)][_0x496f8d(0x401)](_0x351a02,_0x266cbc=>(_0x274eeb[_0x496f8d(0x23e)](),_0x251738(_0x266cbc,_0x187547,_0x24ece7,_0x351a02)));_0x5e35a9[_0x496f8d(0x25e)](_0x274eeb);});}return{'redos':[],'undos':[]};};this[_0x4af22d(0x2c7)]['forEach']((_0x223bee,_0xded4ee)=>{const _0x21955b=_0x4af22d,{range:_0x59f264,sheetID:_0x3dbcfe}=_0x223bee,_0x298baf=this[_0x21955b(0x190)][_0x21955b(0x401)](_0x59f264,_0x57cfce=>(_0x298baf[_0x21955b(0x23e)](),_0x251738(_0x57cfce,_0xded4ee,_0x3dbcfe,_0x59f264)));_0x5e35a9[_0x21955b(0x25e)](_0x298baf);});};this[_0x519c84(0x381)](a[_0x519c84(0x2b2)](this[_0x519c84(0x350)]['subscribe'](()=>{_0x4d50aa();})));}[_0x4ce73f(0x253)](){const _0x449acc=_0x4ce73f;var _0x1b5735,_0xfe8ca2;if(this[_0x449acc(0x24f)]=!0x0,((_0x1b5735=this[_0x449acc(0x1c3)][_0x449acc(0x177)]())==null?void 0x0:_0x1b5735['getUnitId']())!==this['unitID'])return;const _0x3c53ac=(_0xfe8ca2=this[_0x449acc(0x274)][_0x449acc(0x3fd)](v['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0xfe8ca2[0x0],_0x599577=this[_0x449acc(0x1c3)][_0x449acc(0x378)](a[_0x449acc(0x33f)][_0x449acc(0x250)])['getActiveSheet']();_0x3c53ac&&_0x599577&&this[_0x449acc(0x235)](_0x599577[_0x449acc(0x1a2)](),_0x3c53ac);}[_0x4ce73f(0x361)](){const _0x74b444=_0x4ce73f;this[_0x74b444(0x24f)]=!0x1;}};function _0x1472(_0xef8ec4,_0x123ade){_0xef8ec4=_0xef8ec4-0x14a;const _0x299877=_0x2998();let _0x147299=_0x299877[_0xef8ec4];return _0x147299;}ge=mt([w(0x2,a['Inject'](a[_0x4ce73f(0x16c)])),w(0x3,a[_0x4ce73f(0x1ef)](Re)),w(0x4,a['Inject'](u[_0x4ce73f(0x29f)])),w(0x5,a[_0x4ce73f(0x2c6)]),w(0x6,a['ICommandService']),w(0x7,a[_0x4ce73f(0x1ef)](v[_0x4ce73f(0x155)]))],ge);var Ct=Object[_0x4ce73f(0x3c3)],Tt=(_0x311c9a,_0x3e395b,_0x20f90c,_0x3cd605)=>{for(var _0x162b20=_0x3cd605>0x1?void 0x0:_0x3cd605?Ct(_0x3e395b,_0x20f90c):_0x3e395b,_0x4f1314=_0x311c9a['length']-0x1,_0x1dab78;_0x4f1314>=0x0;_0x4f1314--)(_0x1dab78=_0x311c9a[_0x4f1314])&&(_0x162b20=_0x1dab78(_0x162b20)||_0x162b20);return _0x162b20;},ce=(_0x2be729,_0x250a27)=>(_0x2a44d5,_0x575f6d)=>_0x250a27(_0x2a44d5,_0x575f6d,_0x2be729);let F=class extends a[_0x4ce73f(0x3b2)]{constructor(_0x142f3e,_0xb5b7b1,_0x2d751f){const _0xc0a5b6=_0x4ce73f;super(),_(this,_0xc0a5b6(0x262),new Map()),_(this,_0xc0a5b6(0x1dc),new I[(_0xc0a5b6(0x1cb))]()),(this[_0xc0a5b6(0x1c3)]=_0x142f3e,this[_0xc0a5b6(0x274)]=_0xb5b7b1,this[_0xc0a5b6(0x1c0)]=_0x2d751f,this[_0xc0a5b6(0x3dd)]());}[_0x4ce73f(0x23e)](){const _0x4e7456=_0x4ce73f;super[_0x4e7456(0x23e)](),this[_0x4e7456(0x1dc)]['complete'](),this[_0x4e7456(0x262)][_0x4e7456(0x18f)](_0x1fb274=>_0x1fb274['dispose']());}[_0x4ce73f(0x370)](_0x1aa8e0){const _0x256535=_0x4ce73f;return this['_entities'][_0x256535(0x1ae)](_0x1aa8e0)?this[_0x256535(0x262)][_0x256535(0x3fd)](_0x1aa8e0)[_0x256535(0x2aa)]:this[_0x256535(0x1dc)][_0x256535(0x211)](I[_0x256535(0x399)](_0x43cb8f=>_0x43cb8f[_0x256535(0x2b3)]===_0x1aa8e0),I[_0x256535(0x3e8)](_0x294cdc=>_0x294cdc[_0x256535(0x2aa)]));}[_0x4ce73f(0x3dd)](){const _0x2e3849=_0x4ce73f;this[_0x2e3849(0x1c3)][_0x2e3849(0x1fc)](a[_0x2e3849(0x33f)]['UNIVER_SHEET'])[_0x2e3849(0x211)](I[_0x2e3849(0x15f)](this[_0x2e3849(0x202)]))[_0x2e3849(0x17d)](async _0x86a65f=>{const _0xdb0bc3=_0x2e3849,_0x5552fa=_0x86a65f[_0xdb0bc3(0x207)](),_0x33d193=await this[_0xdb0bc3(0x3a9)](_0x5552fa);this[_0xdb0bc3(0x1dc)]['next'](_0x33d193),this[_0xdb0bc3(0x262)][_0xdb0bc3(0x1d7)](_0x5552fa,_0x33d193);}),this[_0x2e3849(0x1c3)][_0x2e3849(0x1fc)](a[_0x2e3849(0x33f)][_0x2e3849(0x1c2)])[_0x2e3849(0x211)](I[_0x2e3849(0x15f)](this[_0x2e3849(0x202)]))[_0x2e3849(0x211)](I[_0x2e3849(0x399)](_0x268d86=>!_0x268d86[_0x2e3849(0x207)]()[_0x2e3849(0x2f6)]('__')))[_0x2e3849(0x17d)](async _0xb52a0=>{const _0x556e65=_0x2e3849,_0x4dc984=_0xb52a0['getUnitId'](),_0x38d607=await this[_0x556e65(0x344)](_0x4dc984);this[_0x556e65(0x1dc)][_0x556e65(0x38b)](_0x38d607),this['_entities'][_0x556e65(0x1d7)](_0x4dc984,_0x38d607);}),I['merge'](this[_0x2e3849(0x1c3)][_0x2e3849(0x402)](a[_0x2e3849(0x33f)][_0x2e3849(0x1c2)]),this[_0x2e3849(0x1c3)][_0x2e3849(0x402)](a[_0x2e3849(0x33f)][_0x2e3849(0x250)]))[_0x2e3849(0x211)](I['takeUntil'](this[_0x2e3849(0x202)]))[_0x2e3849(0x17d)](_0xfb5efb=>{const _0x54ddb3=_0x2e3849,_0x5928a8=_0xfb5efb['getUnitId'](),_0x238f44=this[_0x54ddb3(0x262)]['get'](_0x5928a8);_0x238f44&&(_0x238f44[_0x54ddb3(0x23e)](),this[_0x54ddb3(0x262)]['delete'](_0x5928a8));});}async[_0x4ce73f(0x3a9)](_0x3faa7b){const _0x483c31=_0x4ce73f,_0x364ddb=await this[_0x483c31(0x1c0)][_0x483c31(0x162)](_0x3faa7b),_0x1d1c86=this['_injector']['createInstance'](ge,_0x3faa7b,_0x364ddb);return _0x1d1c86[_0x483c31(0x30a)](),_0x1d1c86;}async[_0x4ce73f(0x344)](_0x5940dc){const _0x1d909=_0x4ce73f,_0x56bd2e=await this['_collabSessionService'][_0x1d909(0x162)](_0x5940dc),_0x5b807a=this[_0x1d909(0x274)][_0x1d909(0x329)](ve,_0x5940dc,_0x56bd2e);return _0x5b807a['init'](),_0x5b807a;}};F=Tt([ce(0x0,a[_0x4ce73f(0x2c6)]),ce(0x1,a['Inject'](a[_0x4ce73f(0x16c)])),ce(0x2,a['Inject'](u[_0x4ce73f(0x292)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0xdc13e9,_0x5560ec){const _0x29fd16=_0x4ce73f;let {radius:_0x31a4df,width:_0x4c76ed,height:_0x4855d3}=_0x5560ec;_0x31a4df=_0x31a4df!=null?_0x31a4df:0x0,_0x4c76ed=_0x4c76ed!=null?_0x4c76ed:0x1e,_0x4855d3=_0x4855d3!=null?_0x4855d3:0x1e;let _0x25d778=0x0,_0x23f9ca=0x0,_0x25d70a=0x0;_0x25d778=_0x23f9ca=_0x25d70a=Math['min'](_0x31a4df,_0x4c76ed/0x2,_0x4855d3/0x2),_0xdc13e9[_0x29fd16(0x198)](),_0xdc13e9[_0x29fd16(0x299)](_0x25d778,0x0),_0xdc13e9[_0x29fd16(0x3ab)](_0x4c76ed-_0x23f9ca,0x0),_0xdc13e9['arc'](_0x4c76ed-_0x23f9ca,_0x23f9ca,_0x23f9ca,Math['PI']*0x3/0x2,0x0,!0x1),_0xdc13e9[_0x29fd16(0x3ab)](_0x4c76ed,_0x4855d3-_0x25d70a),_0xdc13e9[_0x29fd16(0x30b)](_0x4c76ed-_0x25d70a,_0x4855d3-_0x25d70a,_0x25d70a,0x0,Math['PI']/0x2,!0x1),_0xdc13e9[_0x29fd16(0x3ab)](0x0,_0x4855d3),_0xdc13e9[_0x29fd16(0x3ab)](0x0,_0x25d778),_0xdc13e9[_0x29fd16(0x30b)](_0x25d778,_0x25d778,_0x25d778,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xdc13e9['closePath'](),_0x5560ec[_0x29fd16(0x2d8)]&&(_0xdc13e9[_0x29fd16(0x348)](),_0xdc13e9[_0x29fd16(0x175)]=_0x5560ec[_0x29fd16(0x2d8)],_0x5560ec['fillRule']===_0x29fd16(0x279)?_0xdc13e9[_0x29fd16(0x2d8)]('evenodd'):_0xdc13e9[_0x29fd16(0x2d8)](),_0xdc13e9['restore']());}class re extends C[_0x4ce73f(0x22a)]{constructor(_0x111fc7,_0x211ff3){const _0x17c007=_0x4ce73f;super(_0x111fc7,_0x211ff3),_(this,'color'),_(this,_0x17c007(0x178)),(this['color']=_0x211ff3==null?void 0x0:_0x211ff3[_0x17c007(0x2cd)],this['text']=_0x211ff3==null?void 0x0:_0x211ff3[_0x17c007(0x178)]);}static[_0x4ce73f(0x2e5)](_0x597396,_0x4811f5){const _0x58dabc=_0x4ce73f,{text:_0xa71032,color:_0x1db2ec}=_0x4811f5;_0x597396[_0x58dabc(0x348)](),_0x597396[_0x58dabc(0x398)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xff48e9=_0x597396[_0x58dabc(0x293)](_0xa71032)['width'],_0x386a0d=Math[_0x58dabc(0x3d7)](_0xff48e9+0x2*le,Ue);Ot(_0x597396,{'height':X,'radius':0x4,'width':_0x386a0d,'fill':_0x1db2ec}),_0x597396[_0x58dabc(0x175)]=_0x58dabc(0x31b);const _0x3fbc39=le,_0x4ba147=X-pt,_0x362557=Ue-0x2*le;if(_0xff48e9>_0x362557){let _0x57341b='',_0x324059=0x0;for(const _0x133278 of _0xa71032){const _0x5bc730=_0x597396[_0x58dabc(0x293)](_0x133278)[_0x58dabc(0x1e2)];if(_0x324059+_0x5bc730<=_0x362557-_0x597396['measureText'](_0x58dabc(0x341))[_0x58dabc(0x1e2)])_0x57341b+=_0x133278,_0x324059+=_0x5bc730;else{_0x57341b+='...';break;}}_0x597396['fillText'](_0x57341b,_0x3fbc39,_0x4ba147);}else _0x597396[_0x58dabc(0x1ff)](_0xa71032,_0x3fbc39,_0x4ba147);_0x597396[_0x58dabc(0x35a)]();}['_draw'](_0x183d28){re['drawWith'](_0x183d28,this);}}const _e='collab-text-anchor-',Rt=_0x4ce73f(0x1f4),bt=_0x4ce73f(0x392),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x55e6fd,_0x3f7cac,_0x2193ff,_0x33cb5e){const _0x4bdde2=_0x4ce73f;_(this,_0x4bdde2(0x2f2),[]),_(this,_0x4bdde2(0x3bc),null),_(this,_0x4bdde2(0x27f),null),_(this,_0x4bdde2(0x2a8),null),_(this,_0x4bdde2(0x1b1),null),_(this,_0x4bdde2(0x3b7),null),(this[_0x4bdde2(0x1da)]=_0x55e6fd,this[_0x4bdde2(0x284)]=_0x3f7cac,this[_0x4bdde2(0x249)]=_0x2193ff,this[_0x4bdde2(0x1b9)]=_0x33cb5e,this[_0x4bdde2(0x259)]());}set['_hover'](_0x337742){const _0x36a5fc=_0x4ce73f;_0x337742?(this[_0x36a5fc(0x2a8)]&&this['_anchorDot'][_0x36a5fc(0x34f)](),this[_0x36a5fc(0x27f)]&&this[_0x36a5fc(0x27f)][_0x36a5fc(0x188)]()):(this['_anchorDot']&&this[_0x36a5fc(0x2a8)][_0x36a5fc(0x188)](),this[_0x36a5fc(0x27f)]&&this[_0x36a5fc(0x27f)]['hide']());}[_0x4ce73f(0x23e)](){const _0x4ce461=_0x4ce73f;for(const _0x5009c9 of this[_0x4ce461(0x2f2)])_0x5009c9['dispose']();this[_0x4ce461(0x27f)]&&this[_0x4ce461(0x27f)][_0x4ce461(0x23e)](),this[_0x4ce461(0x2a8)]&&this[_0x4ce461(0x2a8)][_0x4ce461(0x23e)](),this['_anchor']&&this[_0x4ce461(0x3bc)][_0x4ce461(0x23e)](),this[_0x4ce461(0x3b7)]&&this['_eventUnsubscribe']();}[_0x4ce73f(0x259)](){const _0x4ce891=_0x4ce73f;var _0x4e50e0;const {_docSkeleton:_0x1910cc,_document:_0x4694e1}=this,{color:_0x244467,name:_0x104ef1,ranges:_0x113f6b}=this[_0x4ce891(0x1da)],_0x5942cd=_0x4694e1['getOffsetConfig'](),{docsLeft:_0xbf3680,docsTop:_0x165771}=_0x5942cd,_0x1db0d0=new T[(_0x4ce891(0x3f4))](_0x5942cd,_0x1910cc);for(const {startOffset:_0x1401a9,endOffset:_0x446e86,rangeType:_0x19ac8a,segmentId:_0x3ee0e7,segmentPage:_0x1d1f37,collapsed:_0x1939e2,isActive:_0x1f951e}of _0x113f6b){const _0x4d01bc=_0x1910cc[_0x4ce891(0x229)](_0x1401a9,!0x0,_0x3ee0e7,_0x1d1f37);let _0x3001ae=_0x1910cc[_0x4ce891(0x229)](_0x446e86,!0x0,_0x3ee0e7,_0x1d1f37);if(_0x3001ae==null&&(_0x3001ae=_0x1910cc[_0x4ce891(0x229)](_0x446e86-0x1,!0x1,_0x3ee0e7,_0x1d1f37)),_0x1f951e){const {contentBoxPointGroup:_0x2be637}=_0x1db0d0[_0x4ce891(0x18c)](_0x3001ae,_0x3001ae);if(_0x2be637[_0x4ce891(0x1a7)]===0x0)continue;this[_0x4ce891(0x241)](_0x244467,_0x2be637,_0xbf3680,_0x165771,_0x104ef1),this[_0x4ce891(0x3b7)]=this[_0x4ce891(0x14b)]();}if(_0x4d01bc&&_0x3001ae){if(_0x19ac8a===a[_0x4ce891(0x3a5)]['RECT']){const _0x5ca35a=new T[(_0x4ce891(0x3cc))](_0x5942cd,_0x1910cc),{pointGroup:_0x9084c8}=(_0x4e50e0=_0x5ca35a['getRangePointData'](_0x4d01bc,_0x3001ae))!=null?_0x4e50e0:{};if(_0x9084c8==null||_0x9084c8[_0x4ce891(0x1a7)]===0x0)continue;this[_0x4ce891(0x317)](_0x244467,_0x9084c8,_0xbf3680,_0x165771);}else{if(!_0x1939e2){const {borderBoxPointGroup:_0x2a84a8}=_0x1db0d0[_0x4ce891(0x18c)](_0x4d01bc,_0x3001ae);if(_0x2a84a8[_0x4ce891(0x1a7)]===0x0)continue;this[_0x4ce891(0x1c9)](_0x244467,_0x2a84a8,_0xbf3680,_0x165771);}}}}}[_0x4ce73f(0x241)](_0x9e3439,_0x317b2b,_0x152d48,_0x540e7c,_0x521348){const _0x34c3ed=_0x4ce73f,_0x45c758=this[_0x34c3ed(0x19e)](_0x317b2b),{left:_0x480405,top:_0x6038af,height:_0xbffb22}=_0x45c758,_0x2e4f46=this['_getScale'](),_0x4af38d=Nt/_0x2e4f46,_0x30b7eb=new C[(_0x34c3ed(0x192))](_e+a[_0x34c3ed(0x221)](H),{'left':_0x480405+_0x152d48-_0x4af38d,'top':_0x6038af+_0x540e7c,'height':_0xbffb22,'width':Dt,'fill':_0x9e3439||C[_0x34c3ed(0x389)](a[_0x34c3ed(0x2e7)]['black'],0x0),'strokeWidth':_0x4af38d,'stroke':Ut,'evented':!0x0});this[_0x34c3ed(0x3bc)]=_0x30b7eb,this[_0x34c3ed(0x284)][_0x34c3ed(0x1f5)](_0x30b7eb,T['TEXT_RANGE_LAYER_INDEX']);const _0x3eaf25=new C[(_0x34c3ed(0x192))](_e+a[_0x34c3ed(0x221)](H),{'left':_0x480405+_0x152d48-_0x4af38d,'top':_0x6038af+_0x540e7c-he/0x2,'height':he,'width':he,'fill':_0x9e3439||C[_0x34c3ed(0x389)](a[_0x34c3ed(0x2e7)][_0x34c3ed(0x32a)],0x0),'strokeWidth':0x0,'stroke':_0x9e3439||C[_0x34c3ed(0x389)](a['COLORS'][_0x34c3ed(0x32a)],0x0),'evented':!0x1});this[_0x34c3ed(0x2a8)]=_0x3eaf25,this[_0x34c3ed(0x284)][_0x34c3ed(0x1f5)](_0x3eaf25,T[_0x34c3ed(0x3bb)]);const _0x5b0562=new re(_e+a[_0x34c3ed(0x221)](H),{'left':_0x480405+_0x152d48-_0x4af38d,'top':_0x6038af+_0x540e7c-X,'text':_0x521348,'color':_0x9e3439});this[_0x34c3ed(0x27f)]=_0x5b0562,this['_scene'][_0x34c3ed(0x1f5)](_0x5b0562,T[_0x34c3ed(0x3bb)]),this[_0x34c3ed(0x2d0)]=!0x1;}['_handleHover'](){const _0x2a9011=_0x4ce73f,_0x3062bf=this['_anchor'][_0x2a9011(0x387)][_0x2a9011(0x295)](()=>{const _0x19cdd7=_0x2a9011;this[_0x19cdd7(0x2d0)]=!0x0;}),_0x534f68=this[_0x2a9011(0x3bc)][_0x2a9011(0x19b)][_0x2a9011(0x295)](()=>{const _0x26bf50=_0x2a9011;this[_0x26bf50(0x1b1)]&&clearTimeout(this[_0x26bf50(0x1b1)]),this[_0x26bf50(0x1b1)]=setTimeout(()=>{const _0x1450e9=_0x26bf50;this[_0x1450e9(0x2d0)]=!0x1;},0x7d0);});return()=>{const _0x4fff3e=_0x2a9011;_0x3062bf[_0x4fff3e(0x1b7)](),_0x534f68[_0x4fff3e(0x1b7)]();};}[_0x4ce73f(0x1c9)](_0x2d2cbf,_0x363f11,_0x131e21,_0x4b588c){const _0x4fce9b=_0x4ce73f,_0x18090d=new a['ColorKit'](_0x2d2cbf)[_0x4fce9b(0x2d9)](0.2)[_0x4fce9b(0x16e)](),_0x2e840c=new C['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0x363f11,'fill':_0x18090d||C['getColor'](a[_0x4fce9b(0x2e7)][_0x4fce9b(0x32a)],0.2),'left':_0x131e21,'top':_0x4b588c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4fce9b(0x2f2)][_0x4fce9b(0x2dd)](_0x2e840c),this[_0x4fce9b(0x284)]['addObject'](_0x2e840c,T[_0x4fce9b(0x3bb)]);}[_0x4ce73f(0x317)](_0x173b0f,_0x100fa7,_0x1fe5ce,_0x36a8c6){const _0x3f8b6d=_0x4ce73f,_0x275cbf=new a['ColorKit'](_0x173b0f)[_0x3f8b6d(0x2d9)](0.2)[_0x3f8b6d(0x16e)](),_0x2a90f5=new C[(_0x3f8b6d(0x16f))](bt+a[_0x3f8b6d(0x221)](H),{'pointsGroup':_0x100fa7,'fill':_0x275cbf||C[_0x3f8b6d(0x389)](a[_0x3f8b6d(0x2e7)][_0x3f8b6d(0x32a)],0.2),'left':_0x1fe5ce,'top':_0x36a8c6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f8b6d(0x2f2)]['push'](_0x2a90f5),this[_0x3f8b6d(0x284)][_0x3f8b6d(0x1f5)](_0x2a90f5,T[_0x3f8b6d(0x3bb)]);}[_0x4ce73f(0x19e)](_0x1dec08){const _0x231991=_0x1dec08[0x0],_0x5a413c=_0x231991[0x0],_0x2bdadc=_0x231991[0x2],{x:_0x57729a,y:_0x4e3672}=_0x5a413c,{x:_0x846947,y:_0x4fcf4d}=_0x2bdadc;return{'left':_0x57729a,'top':_0x4e3672,'width':_0x846947-_0x57729a,'height':_0x4fcf4d-_0x4e3672};}[_0x4ce73f(0x35b)](){const _0x2d6ce2=_0x4ce73f,{scaleX:_0x3067dd,scaleY:_0x2826f8}=this[_0x2d6ce2(0x284)][_0x2d6ce2(0x2ab)]();return Math[_0x2d6ce2(0x14a)](_0x3067dd,_0x2826f8);}}var Lt=Object[_0x4ce73f(0x3c3)],Mt=(_0x5bfc40,_0x134446,_0x3c5238,_0x13dfab)=>{for(var _0x2e44cd=_0x13dfab>0x1?void 0x0:_0x13dfab?Lt(_0x134446,_0x3c5238):_0x134446,_0x8fd920=_0x5bfc40['length']-0x1,_0x149073;_0x8fd920>=0x0;_0x8fd920--)(_0x149073=_0x5bfc40[_0x8fd920])&&(_0x2e44cd=_0x149073(_0x2e44cd)||_0x2e44cd);return _0x2e44cd;},q=(_0x3dbbb6,_0x4bc5ca)=>(_0x1e5c32,_0x39170a)=>_0x4bc5ca(_0x1e5c32,_0x39170a,_0x3dbbb6);let Ee=class extends a[_0x4ce73f(0x3b2)]{constructor(_0x55475a,_0x374499,_0x3656a0,_0x7412c5,_0x5776ca){const _0xa665a9=_0x4ce73f;super(),_(this,_0xa665a9(0x1f2),[]),_(this,_0xa665a9(0x161),[]),(this[_0xa665a9(0x406)]=_0x55475a,this[_0xa665a9(0x2f8)]=_0x374499,this[_0xa665a9(0x417)]=_0x3656a0,this[_0xa665a9(0x3f3)]=_0x7412c5,this[_0xa665a9(0x216)]=_0x5776ca,this[_0xa665a9(0x3dd)]());}[_0x4ce73f(0x3dd)](){const _0x20076a=_0x4ce73f,_0x16586a=this[_0x20076a(0x406)][_0x20076a(0x1a9)],_0x40f9e2=this[_0x20076a(0x2f8)];this[_0x20076a(0x381)](I[_0x20076a(0x31f)]([this[_0x20076a(0x417)][_0x20076a(0x370)](_0x16586a),this['_themeService'][_0x20076a(0x34b)]])[_0x20076a(0x211)]($[_0x20076a(0x156)](([_0x25f795,_0x11fd10])=>({'skeleton':_0x40f9e2[_0x20076a(0x163)](),'cursors':[..._0x25f795['values']()][_0x20076a(0x358)](_0x54ae80=>({..._0x54ae80,'color':this['_themeService'][_0x20076a(0x236)](_0x54ae80[_0x20076a(0x2cd)])}))})))[_0x20076a(0x17d)](_0x336c8a=>{const _0x3bc7ca=_0x20076a;if(this['_removeCollabCursors'](),_0x336c8a){const {skeleton:_0x3894c7,cursors:_0x5eadf0}=_0x336c8a;this[_0x3bc7ca(0x3ba)](_0x3894c7,_0x5eadf0);}})),this[_0x20076a(0x2b1)](),this['_initCommandExecutedListener']();}[_0x4ce73f(0x3ba)](_0x5f4df7,_0x215165){const _0x3022ad=_0x4ce73f,{scene:_0x3f862a,mainComponent:_0x4b01eb}=this[_0x3022ad(0x406)],_0x29fffc=_0x215165[_0x3022ad(0x156)](_0x179fea=>new Le(_0x179fea,_0x3f862a,_0x5f4df7,_0x4b01eb));this[_0x3022ad(0x1f2)]=_0x29fffc,this[_0x3022ad(0x161)]=_0x215165;}[_0x4ce73f(0x245)](){const _0x527115=_0x4ce73f;this['_removeCollabCursors']();const {scene:_0x2a8091,mainComponent:_0x44e641}=this[_0x527115(0x406)],_0x586af0=this['_docSkeletonManagerService']['getSkeleton'](),_0x4c54fe=this[_0x527115(0x161)]['map'](_0xa79538=>new Le(_0xa79538,_0x2a8091,_0x586af0,_0x44e641));this['_cursorShapes']=_0x4c54fe;}[_0x4ce73f(0x383)](){const _0x27d3c8=_0x4ce73f;this[_0x27d3c8(0x1f2)][_0x27d3c8(0x18f)](_0x16359f=>_0x16359f['dispose']()),this['_cursorShapes']=[];}[_0x4ce73f(0x17c)](){const _0x4bae91=_0x4ce73f,_0x12d0c3=[T['SetDocZoomRatioOperation']['id']];this[_0x4bae91(0x381)](this['_commandService'][_0x4bae91(0x183)](_0x1a4963=>{const _0x27ba93=_0x4bae91;_0x12d0c3[_0x27ba93(0x418)](_0x1a4963['id'])&&_0x1a4963[_0x27ba93(0x223)][_0x27ba93(0x1a9)]===this[_0x27ba93(0x406)][_0x27ba93(0x1a9)]&&this['_refreshCollabCursors']();}));}[_0x4ce73f(0x2b1)](){const _0x32ee01=_0x4ce73f;this[_0x32ee01(0x381)](a[_0x32ee01(0x18a)](this[_0x32ee01(0x406)][_0x32ee01(0x410)][_0x32ee01(0x209)])[_0x32ee01(0x211)]($[_0x32ee01(0x399)](_0x11b881=>_0x11b881[_0x32ee01(0x25d)]===C[_0x32ee01(0x1db)][_0x32ee01(0x3b3)]),$['throttleTime'](0x10))[_0x32ee01(0x17d)](()=>{const _0x1124db=_0x32ee01;this[_0x1124db(0x245)]();}));}};Ee=Mt([q(0x1,a[_0x4ce73f(0x1ef)](V['DocSkeletonManagerService'])),q(0x2,a[_0x4ce73f(0x1ef)](F)),q(0x3,a[_0x4ce73f(0x14f)]),q(0x4,a[_0x4ce73f(0x1ef)](a[_0x4ce73f(0x2ce)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4ce73f(0x22a)]{constructor(_0x5345ef,_0x4abb44){const _0xf76599=_0x4ce73f;super(_0x5345ef,_0x4abb44),_(this,_0xf76599(0x179)),_(this,_0xf76599(0x26f),!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0xf76599(0x28a),'top'),_(this,_0xf76599(0x386)),(_0x4abb44&&this[_0xf76599(0x30f)](_0x4abb44),this[_0xf76599(0x387)][_0xf76599(0x295)](()=>this[_0xf76599(0x30f)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0xf76599(0x30f)]({'hovered':!0x1})));}[_0x4ce73f(0x30f)](_0x182a81){const _0x3f9b0e=_0x4ce73f;var _0x975180,_0x1751fe,_0x256df9,_0x2b648a,_0x552836,_0x7a1ac5;this[_0x3f9b0e(0x179)]=(_0x975180=_0x182a81['color'])!=null?_0x975180:this[_0x3f9b0e(0x179)],this[_0x3f9b0e(0x26f)]=(_0x1751fe=_0x182a81[_0x3f9b0e(0x16d)])!=null?_0x1751fe:this[_0x3f9b0e(0x26f)],this[_0x3f9b0e(0x1fe)]=(_0x256df9=_0x182a81[_0x3f9b0e(0x1be)])!=null?_0x256df9:this[_0x3f9b0e(0x1fe)],this['_name']=(_0x2b648a=_0x182a81[_0x3f9b0e(0x3f8)])!=null?_0x2b648a:this[_0x3f9b0e(0x408)],this[_0x3f9b0e(0x28a)]=(_0x552836=_0x182a81['labelPosition'])!=null?_0x552836:this[_0x3f9b0e(0x28a)],this[_0x3f9b0e(0x386)]=(_0x7a1ac5=_0x182a81[_0x3f9b0e(0x1b2)])!=null?_0x7a1ac5:this[_0x3f9b0e(0x386)],this[_0x3f9b0e(0x2ff)]({'width':_0x182a81[_0x3f9b0e(0x1e2)],'height':_0x182a81[_0x3f9b0e(0x1ac)]});}[_0x4ce73f(0x1cc)](_0x23203f){const _0x424fdf=_0x4ce73f,{row:_0x53754b,column:_0x226635}=_0x23203f;if(_0x53754b>=this[_0x424fdf(0x1fe)][_0x424fdf(0x227)]&&_0x53754b<=this[_0x424fdf(0x1fe)]['endRow']&&_0x226635>=this[_0x424fdf(0x1fe)]['startColumn']&&_0x226635<=this[_0x424fdf(0x1fe)][_0x424fdf(0x219)]){this[_0x424fdf(0x30f)]({'hovered':!0x0});return;}this[_0x424fdf(0x30f)]({'hovered':!0x1});}[_0x4ce73f(0x30e)](_0x2ac7ab){return!0x1;}[_0x4ce73f(0x2af)](_0x428748){const _0x4ba43f=_0x4ce73f;C[_0x4ba43f(0x192)][_0x4ba43f(0x2e5)](_0x428748,{'width':this['width'],'height':this[_0x4ba43f(0x1ac)],'strokeWidth':Pt,'stroke':this[_0x4ba43f(0x179)],'evented':!0x1,'fill':this[_0x4ba43f(0x386)]}),this[_0x4ba43f(0x26f)]&&(_0x428748[_0x4ba43f(0x348)](),_0x428748[_0x4ba43f(0x268)](0x1,0x0,0x0,0x1,this[_0x4ba43f(0x1e2)],this['_labelPosition']===_0x4ba43f(0x2be)?0x0:-X),re[_0x4ba43f(0x2e5)](_0x428748,{'text':this[_0x4ba43f(0x408)],'color':this[_0x4ba43f(0x179)]}),_0x428748[_0x4ba43f(0x35a)]());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0xaea9fd,_0x24483c,_0x2ab222,_0x4d33ca)=>{for(var _0x16d5e8=_0x4d33ca>0x1?void 0x0:_0x4d33ca?wt(_0x24483c,_0x2ab222):_0x24483c,_0x557c0b=_0xaea9fd['length']-0x1,_0x45fceb;_0x557c0b>=0x0;_0x557c0b--)(_0x45fceb=_0xaea9fd[_0x557c0b])&&(_0x16d5e8=_0x45fceb(_0x16d5e8)||_0x16d5e8);return _0x16d5e8;},ue=(_0xfe68ee,_0x5fa07b)=>(_0x5e562d,_0x571c01)=>_0x5fa07b(_0x5e562d,_0x571c01,_0xfe68ee);const $t=0x1389;let Ce=class extends a[_0x4ce73f(0x3b2)]{constructor(_0x53a88f,_0x1b4f25,_0xe4dbb9,_0x5acfc1){const _0x50b525=_0x4ce73f;super(),_(this,'_cursors',new Set()),_(this,_0x50b525(0x40f),null),(this[_0x50b525(0x406)]=_0x53a88f,this[_0x50b525(0x308)]=_0x1b4f25,this[_0x50b525(0x417)]=_0xe4dbb9,this[_0x50b525(0x216)]=_0x5acfc1,this['_init']());}['_init'](){const _0x23e290=_0x4ce73f;this[_0x23e290(0x308)][_0x23e290(0x222)][_0x23e290(0x211)]($[_0x23e290(0x15f)](this[_0x23e290(0x202)]),$[_0x23e290(0x3e8)](_0x188100=>{const _0x46710c=_0x23e290;if(_0x188100){const _0x5d589a=_0x188100[_0x46710c(0x252)];return I[_0x46710c(0x31f)](this[_0x46710c(0x417)][_0x46710c(0x370)](this[_0x46710c(0x406)][_0x46710c(0x1a9)]),this[_0x46710c(0x216)][_0x46710c(0x34b)])['pipe']($['map'](([_0x2fd7ae,_0xcdfa56])=>{const _0x2a1632=_0x46710c,_0x24619b=new Map();return _0x2fd7ae[_0x2a1632(0x18f)]((_0x1b9c9c,_0xb07cad)=>{const _0x1a4d9b=_0x2a1632;if(_0x1b9c9c[_0x1a4d9b(0x165)]===_0x5d589a){const _0x3b8572={..._0x1b9c9c};_0x3b8572[_0x1a4d9b(0x2cd)]=this[_0x1a4d9b(0x216)][_0x1a4d9b(0x236)](_0x1b9c9c[_0x1a4d9b(0x2cd)]),_0x24619b[_0x1a4d9b(0x1d7)](_0xb07cad,_0x3b8572);}}),{'skeleton':_0x188100,'cursors':_0x24619b};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x23e290(0x17d)](({skeleton:_0x1b686b,cursors:_0x5587da})=>{const _0x1cfbe9=_0x23e290;this[_0x1cfbe9(0x383)](),_0x1b686b&&this[_0x1cfbe9(0x3ba)](_0x1b686b,_0x5587da);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x23e290(0x17d)](_0x581002=>{const _0x3411d0=_0x23e290;if(_0x581002==null)return;const {skeleton:_0x2d9620}=_0x581002,{scene:_0x5f5473}=this[_0x3411d0(0x406)];_0x5f5473[_0x3411d0(0x150)][_0x3411d0(0x295)](a[_0x3411d0(0x3d2)](_0x4167ef=>{const _0x3e970e=_0x3411d0;var _0x91ffa6,_0x4356fc;const {offsetX:_0x4f06e0,offsetY:_0x328175}=_0x4167ef,{x:_0x1d6309,y:_0x1d5ff5}=_0x5f5473[_0x3e970e(0x273)](C['Vector2'][_0x3e970e(0x1ad)]([_0x4f06e0,_0x328175])),{scaleX:_0x4b6373,scaleY:_0x30d4e7}=_0x5f5473['getAncestorScale'](),_0x3eb3c1=_0x5f5473[_0x3e970e(0x416)](C['SHEET_VIEWPORT_KEY'][_0x3e970e(0x285)]),_0x8ed9ee=_0x5f5473[_0x3e970e(0x239)](C[_0x3e970e(0x208)][_0x3e970e(0x1ad)]([_0x1d6309,_0x1d5ff5]),_0x3eb3c1),_0x308e83=_0x2d9620['getCellPositionByOffset'](_0x4f06e0,_0x328175,_0x4b6373,_0x30d4e7,_0x8ed9ee);((_0x91ffa6=this['_lastPointer'])==null?void 0x0:_0x91ffa6[_0x3e970e(0x304)])===_0x308e83[_0x3e970e(0x304)]&&((_0x4356fc=this[_0x3e970e(0x40f)])==null?void 0x0:_0x4356fc[_0x3e970e(0x335)])===_0x308e83[_0x3e970e(0x335)]||this[_0x3e970e(0x161)]['forEach'](_0xd1686c=>{const _0x19976b=_0x3e970e;_0xd1686c[_0x19976b(0x1cc)](_0x308e83);});},0x64));});}['_updateCollabCursors'](_0x405d1a,_0x227c53){const _0x2aab41=_0x4ce73f;var _0x27a627;const _0xdd4a30=(_0x27a627=this[_0x2aab41(0x308)][_0x2aab41(0x15b)]())==null?void 0x0:_0x27a627[_0x2aab41(0x3cb)];if(!_0xdd4a30)return;const _0x24a61a=this[_0x2aab41(0x15a)]();if(!_0x24a61a)return;this[_0x2aab41(0x161)][_0x2aab41(0x18f)](_0x4d0ab2=>{const _0x4722fc=_0x2aab41;_0x4d0ab2[_0x4722fc(0x1ed)]();});const {scene:_0x23aa88}=_0x24a61a,_0x310e3a=xt(Array[_0x2aab41(0x2d7)](_0x227c53[_0x2aab41(0x182)]()))[_0x2aab41(0x156)](_0x5277f6=>{const _0x1b5874=_0x2aab41,{color:_0x8e3079,range:_0x12c012,name:_0x3b9d83,selection:_0x5f0f4f,sheetID:_0x1344b0}=_0x5277f6,{startColumn:_0xde6e48,startRow:_0x122945,endColumn:_0x558d6e,endRow:_0x46ca42}=_0x12c012,_0x5228f6=J[_0x1b5874(0x151)](_0x122945,_0xde6e48,_0x23aa88,_0xdd4a30),_0x55dc1e=J['getCoordByCell'](_0x46ca42,_0x558d6e,_0x23aa88,_0xdd4a30),{columnHeaderHeightAndMarginTop:_0x29ec05}=_0xdd4a30,{startX:_0x524715,startY:_0x27b7c5}=_0x5228f6,{endX:_0x24dc6d,endY:_0x343dfd}=_0x55dc1e,_0x45af91=_0x24dc6d-_0x524715,_0x9fece7=_0x343dfd-_0x27b7c5,_0x10d0ab={'labelPosition':_0x27b7c5-_0x29ec05>=X?'top':'bottom','sheetID':_0x1344b0,'range':_0x12c012,'color':_0x8e3079,'name':_0x3b9d83,'selection':_0x5f0f4f,'left':_0x524715,'top':_0x27b7c5,'width':_0x45af91,'height':_0x9fece7,'evented':!0x1,'zIndex':$t};return new je(_0x3b9d83,_0x10d0ab);});_0x23aa88['addObjects'](_0x310e3a,At),this[_0x2aab41(0x161)]=new Set(_0x310e3a);}[_0x4ce73f(0x383)](){const _0x159175=_0x4ce73f;var _0x3ef854;(_0x3ef854=this['_cursors'])==null||_0x3ef854[_0x159175(0x18f)](_0x2a7c67=>_0x2a7c67[_0x159175(0x23e)]());}[_0x4ce73f(0x15a)](){const _0x3c347a=_0x4ce73f;return J[_0x3c347a(0x3b8)](this[_0x3c347a(0x406)]['unit'],this[_0x3c347a(0x406)]);}};Ce=yt([ue(0x1,a[_0x4ce73f(0x1ef)](J[_0x4ce73f(0x168)])),ue(0x2,a[_0x4ce73f(0x1ef)](F)),ue(0x3,a['Inject'](a[_0x4ce73f(0x2ce)]))],Ce);function xt(_0x2d3c05){const _0x2c024e=_0x4ce73f,_0x394f4d=new Map();return _0x2d3c05[_0x2c024e(0x18f)](_0x2e1393=>{const _0x40cdef=_0x2c024e;if(_0x394f4d['has'](_0x2e1393[_0x40cdef(0x191)])){const _0x52df07=_0x394f4d[_0x40cdef(0x3fd)](_0x2e1393[_0x40cdef(0x191)]);_0x52df07[_0x40cdef(0x3f8)]+=',\x20'+_0x2e1393[_0x40cdef(0x3f8)];}else _0x394f4d[_0x40cdef(0x1d7)](_0x2e1393[_0x40cdef(0x191)],_0x2e1393);}),Array[_0x2c024e(0x2d7)](_0x394f4d[_0x2c024e(0x182)]());}var Bt=Object[_0x4ce73f(0x3c3)],Ft=(_0x37d017,_0x488102,_0x57d708,_0x316595)=>{const _0xe7a44b=_0x4ce73f;for(var _0x23187a=_0x316595>0x1?void 0x0:_0x316595?Bt(_0x488102,_0x57d708):_0x488102,_0x4c3a66=_0x37d017[_0xe7a44b(0x1a7)]-0x1,_0x15e14b;_0x4c3a66>=0x0;_0x4c3a66--)(_0x15e14b=_0x37d017[_0x4c3a66])&&(_0x23187a=_0x15e14b(_0x23187a)||_0x23187a);return _0x23187a;},y=(_0x4d0d4d,_0x4bbf36)=>(_0x1f36cc,_0x572bc6)=>_0x4bbf36(_0x1f36cc,_0x572bc6,_0x4d0d4d);let Z=class extends a[_0x4ce73f(0x3b9)]{constructor(_0x22488e,_0x4e1e12,_0x17ff84,_0x4b797f,_0xdd5f20,_0x42c449){const _0x1696dd=_0x4ce73f;super(),this[_0x1696dd(0x3dc)]=_0x22488e,this[_0x1696dd(0x1ca)]=_0x4e1e12,this[_0x1696dd(0x3e5)]=_0x17ff84,this[_0x1696dd(0x18e)]=_0x4b797f,this['_notificationService']=_0xdd5f20,this[_0x1696dd(0x254)]=_0x42c449,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4ce73f(0x15e)](){const _0x17ad21=_0x4ce73f;this[_0x17ad21(0x381)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x343e1e=_0x17ad21;if(this[_0x343e1e(0x1ca)][_0x343e1e(0x27e)][_0x343e1e(0x3c9)])return this['_localeService']['t'](_0x343e1e(0x1eb));}));}[_0x4ce73f(0x36d)](){const _0x3cd60a=_0x4ce73f;this[_0x3cd60a(0x381)](this['_collaborationUIEventService'][_0x3cd60a(0x3e0)][_0x3cd60a(0x17d)](_0x3f81b6=>{const _0x2e72f9=_0x3cd60a;_0x3f81b6['id']===u[_0x2e72f9(0x20b)][_0x2e72f9(0x2f4)]&&this[_0x2e72f9(0x18e)][_0x2e72f9(0x188)]({'type':p[_0x2e72f9(0x21b)][_0x2e72f9(0x349)],'content':this[_0x2e72f9(0x254)]['t'](_0x2e72f9(0x157))}),_0x3f81b6['id']===u['CollaborationUIEventId'][_0x2e72f9(0x2f0)]&&this[_0x2e72f9(0x18e)][_0x2e72f9(0x188)]({'type':p['MessageType'][_0x2e72f9(0x349)],'content':this['_localeService']['t'](_0x2e72f9(0x363))}),_0x3f81b6['id']===u['CollaborationUIEventId'][_0x2e72f9(0x1d0)]&&this['_notificationService'][_0x2e72f9(0x188)]({'title':this[_0x2e72f9(0x254)]['t'](_0x2e72f9(0x32f)),'content':this[_0x2e72f9(0x254)]['t'](_0x2e72f9(0x200)),'type':_0x2e72f9(0x38a),'duration':0x0}),_0x3f81b6['id']===u[_0x2e72f9(0x20b)][_0x2e72f9(0x228)]&&this['_messageService'][_0x2e72f9(0x188)]({'type':p[_0x2e72f9(0x21b)][_0x2e72f9(0x2a6)],'content':this[_0x2e72f9(0x254)]['t'](_0x2e72f9(0x363))+'('+_0x3f81b6[_0x2e72f9(0x1f1)]+')'}),_0x3f81b6['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x2e72f9(0x18e)][_0x2e72f9(0x188)]({'type':p[_0x2e72f9(0x21b)][_0x2e72f9(0x349)],'content':this[_0x2e72f9(0x254)]['t'](_0x3f81b6[_0x2e72f9(0x1f1)]||'')}),_0x3f81b6['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x2e72f9(0x18e)][_0x2e72f9(0x188)]({'type':p[_0x2e72f9(0x21b)]['Warning'],'content':this[_0x2e72f9(0x254)]['t'](_0x2e72f9(0x1bb))}),_0x3f81b6['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x2e72f9(0x188)]({'type':p['MessageType'][_0x2e72f9(0x2a6)],'content':this[_0x2e72f9(0x254)]['t'](_0x2e72f9(0x1ea))}),_0x3f81b6['id']===u[_0x2e72f9(0x20b)][_0x2e72f9(0x29c)]&&this['_messageService'][_0x2e72f9(0x188)]({'type':p['MessageType']['Error'],'content':this[_0x2e72f9(0x254)]['t'](_0x2e72f9(0x237))});}));}};Z=Ft([y(0x0,O[_0x4ce73f(0x353)]),y(0x1,u[_0x4ce73f(0x28b)]),y(0x2,a['Inject'](u[_0x4ce73f(0x261)])),y(0x3,O[_0x4ce73f(0x230)]),y(0x4,O[_0x4ce73f(0x20c)]),y(0x5,a[_0x4ce73f(0x1ef)](a[_0x4ce73f(0x3ac)]))],Z);var jt=Object[_0x4ce73f(0x3c3)],kt=(_0x27b13c,_0x123293,_0x257bca,_0x5ce9c2)=>{const _0xe68a0d=_0x4ce73f;for(var _0x5ea55a=_0x5ce9c2>0x1?void 0x0:_0x5ce9c2?jt(_0x123293,_0x257bca):_0x123293,_0x2ec962=_0x27b13c[_0xe68a0d(0x1a7)]-0x1,_0x3625f5;_0x2ec962>=0x0;_0x2ec962--)(_0x3625f5=_0x27b13c[_0x2ec962])&&(_0x5ea55a=_0x3625f5(_0x5ea55a)||_0x5ea55a);return _0x5ea55a;},z=(_0x1df07e,_0x3460d7)=>(_0x4e8f45,_0x4ca54f)=>_0x3460d7(_0x4e8f45,_0x4ca54f,_0x1df07e);let Q=class extends a[_0x4ce73f(0x3b9)]{constructor(_0x10f55b,_0x1e092f,_0x2ee1a2,_0x3118b5){const _0x2cd67f=_0x4ce73f;super(),_(this,_0x2cd67f(0x31a)),(this[_0x2cd67f(0x274)]=_0x10f55b,this[_0x2cd67f(0x3d6)]=_0x1e092f,this[_0x2cd67f(0x2e8)]=_0x2ee1a2,this[_0x2cd67f(0x328)]=_0x3118b5,this['_init']());}['_init'](){const _0x330bd2=_0x4ce73f;this['_initWindowErrorListener'](),this[_0x330bd2(0x2a3)](),this['_monkeyPatchLogService'](),this[_0x330bd2(0x186)]();}[_0x4ce73f(0x186)](){const _0xb0249=_0x4ce73f;this[_0xb0249(0x381)](this[_0xb0249(0x328)][_0xb0249(0x28d)]['subscribe'](_0x176296=>{const _0x15345c=_0xb0249;this['_memberID']=_0x176296==null?void 0x0:_0x176296[_0x15345c(0x29a)];}));}[_0x4ce73f(0x3f0)](){const _0x4ed5fc=_0x4ce73f,_0x174b53=_0x338f33=>{const _0x529fe6=_0x1472;var _0xcdcdfa;this['_uploadLog']('error',_0x529fe6(0x2c9)+_0x338f33[_0x529fe6(0x29e)]+_0x529fe6(0x1dd)+_0x338f33[_0x529fe6(0x214)]+':'+_0x338f33[_0x529fe6(0x1b5)]+':'+_0x338f33[_0x529fe6(0x3cf)]+'\x0a'+(((_0xcdcdfa=_0x338f33[_0x529fe6(0x38a)])==null?void 0x0:_0xcdcdfa['stack'])||''));};window[_0x4ed5fc(0x217)](_0x4ed5fc(0x38a),_0x174b53),this[_0x4ed5fc(0x381)](()=>{const _0x5d67aa=_0x4ed5fc;window['removeEventListener'](_0x5d67aa(0x38a),_0x174b53);});}[_0x4ce73f(0x2a3)](){const _0x3f97b4=_0x4ce73f,_0x1fa686=_0x5888c7=>{const _0x17747=_0x1472;this[_0x17747(0x1bc)](_0x17747(0x38a),_0x17747(0x14c)+_0x5888c7[_0x17747(0x25c)]);};window[_0x3f97b4(0x217)](_0x3f97b4(0x22c),_0x1fa686),this['disposeWithMe'](()=>{const _0x140ff0=_0x3f97b4;window[_0x140ff0(0x265)](_0x140ff0(0x22c),_0x1fa686);});}[_0x4ce73f(0x338)](){const _0x4b86c0=_0x4ce73f,_0x25b54f=this['_logService'][_0x4b86c0(0x38a)]['bind'](this['_logService']);this[_0x4b86c0(0x2e8)]['error']=(..._0x397cc2)=>{const _0x1598b2=_0x4b86c0,_0x266d7a=_0x397cc2[_0x1598b2(0x156)](_0x214309=>_0x214309 instanceof Error?_0x214309[_0x1598b2(0x29e)]+'\x0a'+_0x214309[_0x1598b2(0x39c)]:String(_0x214309))['join']('\x20');this[_0x1598b2(0x1bc)](_0x1598b2(0x38a),'[LogService\x20Error]:\x20'+_0x266d7a),_0x25b54f(..._0x397cc2);},this['disposeWithMe'](()=>{const _0x81986=_0x4b86c0;this[_0x81986(0x2e8)][_0x81986(0x38a)]=_0x25b54f;});}[_0x4ce73f(0x1bc)](_0x22b875,_0x2e0d01){const _0x49e072=_0x4ce73f;try{const _0x473f9f={'userId':this[_0x49e072(0x31a)],'logLabel':_0x22b875,'content':_0x2e0d01};this['_httpService'][_0x49e072(0x15d)]('/universer-api/frontend/logs',{'body':_0x473f9f})['catch'](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4ce73f(0x1ef)](a[_0x4ce73f(0x16c)])),z(0x1,a[_0x4ce73f(0x1ef)](x[_0x4ce73f(0x39b)])),z(0x2,a[_0x4ce73f(0x409)]),z(0x3,a[_0x4ce73f(0x1ef)](u['CollaborationSessionService']))],Q);function _0x2998(){const _0x2fa3b0=['setConfig','handleInsertRow','popstate','_syncEditingCollabCursorService','IConfigService','loadUnit','_scheduleHeartbeat','_imageIoService','YUUMI_SUBSCRIPTION_NOT_FOUND','bottom','RemoveRowCommandId','getMemberID','_getSaveTimeout','COMPLETION_FINISHED','_getSessionTicket','OTHER_CLIENTS_EDITING','createIdentifier','IUniverInstanceService','cursorInfo','_colorAssignService','[Window\x20Error]:\x20','urlChange$','focused$','onStarting','color','ThemeService','isTransformMutationFailure','_hover','stage','disposeUnit','3470djFmlo','totalFormulasToCalculate','_registerDependencies','clearTimeout','from','fill','setAlpha','roomMembers$','stageInfo','_getMergeRange','push','_session','eventID','_updateSubUnitFromURLParams','_localStorageService','_dataLoaderService','isTransformMutationsWithChangesetSuccess','DocSelectionManagerService','drawWith','_initEntityListener','COLORS','_logService','functionsExecutedState','HEADER_MENU','handleMoveRange','override','current','_initStatusListener','selections','CLOSE_ROOM','3667600hhLrat','_shapes','OffLineIcon','OTHER_CLIENT_EDITING','transformMutationsWithChangeset','startsWith','_scheduleSaving','_docSkeletonManagerService','CollaborationStatus','CHANGESET_REVISION_CONFILICT','_transformUndoRedoStack','contains','APPLY_NON_SEQUENTIAL_REVISION','endRow','transformByState','CollaborationEvent','purple.300','shareReplay','isActive','column','_initDependencies','jsxs','pushState','_sheetSkeletonManagerService','ISocketService','init','arc','IRenderManagerService','history','triggerDblclick','setShapeProps','EffectRefRangId','_getFormulaLimitStatus','Unknown\x20user','parse','ranges','SetFormulaCalculationStartMutation','CanceledError','_drawRectRange','handleIRemoveCol','_handleHeartbeatEvent','_memberID','#FFF','http://www.w3.org/2000/svg','activeSheet$','trim','combineLatest','_assignedColors','idSuffix','CollaborationDataLoaderController','SetSelectionsOperation','EMAIL_HAS_BEEN_BOUND','transformMutation','some','collabStatus.conflict','_collaborationSessionService','createInstance','black','Plugin','red.300','handleInsertCol','_collabCursorState$','permission.title','_memberService','assign','useRef','_taskIds','replaceState','row','location','REDEMPTION_CODE_FULLY_REDEEMED','_monkeyPatchLogService','DocStateChangeManagerService','_clearOtherTimers','DependentOn','RemoteUniscriptService','_heartbeatTimer','now','UniverInstanceType','connectInjector','...','REDEMPTION_INVALID_CODE','off-line-icon_clip0_910_343','_startDocCollabCursor','isFormulaString','jsx','/run/','save','Warning','_uiPartsService','currentTheme$','FormulaExecutedStateType','fromEvent','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','hide','_cursorInfo$','isArray','ENTITLE_DUP_SUBSCRIPTION','IBeforeCloseService','YUUMI_AI_RUN_FAILED','REDEMPTION_USER_NOT_ELIGIBLE','createSocket','_docStateChangeManagerService','flatMap','Rectangle','restore','_getScale','transformRemoteChangeset','_handleLeaveEvent','deserializeRangeWithSheet','ENTITLE_INVALID_COUPON_CODE','_clearPolling','_toggleOffline','green.600','collaboration.closeRoom','ENTITLE_REPORT_LIMIT_EXCEED','stringify','_maxFormulaLimit','setStateCache','LOCAL_CACHE_INTERVAL','ALREADY_EXISTS','mapTo','_saveTaskMap','getValue','_initEvent','on-line-icon','_hasFormulaInDirtyRanges','getCollabCursors$','SetFormulaCalculationNotificationMutation','getUnhiddenWorksheets','BehaviorSubject','ISnapshotServerService','parseInt','createElement','InsertRangeMoveDownCommandId','getCurrentUnitForType','univer-mr-2\x20univer-flex\x20univer-text-xl','M0\x200H16V16H0z','INVITE_CODE_HAS_BEEN_UES','touchDependencies','blue.400','CollaborationController','CollaborationSocketService','runRefRangeMutations','disposeWithMe','delete','_removeCollabCursors','_applyCommand','_showGuardMessage','_backgroundColor','onPointerEnter$','[CollaborationDataLoaderController]','getColor','error','next','getUndoRedoMutationParamsCache','InsertRangeMoveRightCommandId','transformStateCache','all','random','YUUMI_NO_CUBOID_FOR_QUESTION','collab-rect-range-','collab-client.tooltip.reconnect','textRanges','_unitOnClients','entries','then','font','filter','getMember','HTTPService','stack','_checkCalculationAvailable','getItem','_setupSubUnitSync','unit','searchParams','storage','complete','_send','DOC_RANGE_TYPE','disableLocalCache','result','START_CALCULATION','_startSheetCollabCursor','ILocalStorageService','lineTo','LocaleService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_MAX_UNITS_EXCEEDED','_urlService','RxDisposable','resize','isEditing','YUUMI_ALL_TABLES_IS_INVALID','32061359pzwmBY','_eventUnsubscribe','getSheetObject','Disposable','_updateCollabCursors','TEXT_RANGE_LAYER_INDEX','_anchor','setInterval','3430024hoSTwc','Optional','Tooltip','2876RxbUcR','registerRenderModule','getOwnPropertyDescriptor','ITransformService','OnLineIcon','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','ENTITLE_NEED_BILLING_ADDRESS','INVITE_CODE_REQUIRED','size','LOCAL_CACHE_INTERVAL_KEY','skeleton','NodePositionConvertToRectRange','onRendered','_docTransformIMECacheService','colno','unshift','href','debounce','APPLY_DUPLICATED','setActiveRange','collabStatus.synced','_httpService','min','registerComponent','AWAITING','7986PEueHm','TEXT','_beforeCloseService','_init','redoState','forwardRef','event$','ENTITLE_COUPON_EXPIRED','_startCalculationLimit','replace','INVALID_ARGUMENT','_collaborationUIEventService','key','INTERNAL_ERROR','switchMap','getActiveRange','executionId','INVALID_INVITE_CODE','getUniverSheetInstance','runOnServer','RevisionService','_cachedData','_initWindowErrorListener','_collaborationController','handleIRemoveRow','_commandService','NodePositionConvertToCursor','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','setUndoRedoMutationParamsCache','getParam','name','_docTransformStateCacheService','saveImage','_transformHistoryAndStateStack','url(#on-line-icon_clip0_910_349)','get','symbol','whenReady','_transformService','registerRefRange','getTypeOfUnitDisposed$','DeleteRangeMoveLeftCommandId','SYNCED','jiqing.500','_context','_status$','_name','ILogService','children','14qWjShz','_docSyncEditingCollabCursorService','formula.calculation.started','_onCursorUpdate','_lastPointer','engine','DEFAULT_WS_SESSION_TICKET_URL','updateOfflineData','USERS_LEAVE','white','NOT_FOUND','getViewport','_collabCursorController','includes','_lastResponseTimestamp','ENTITLE_COUPON_USED_UP','SNAPSHOT_INVALID_SNAPSHOT','WECHAT_HAS_BEEN_BOUND','AWAITING_WITH_PENDING','YUUMI_ASYNCIO_CANCELLED','collabStatus.fetchMiss','Tools','max','_handleHover','[Unhandled\x20Rejection]:\x20','releaseFormulaLimitUrl','SheetCollabCursorShape','ICommandService','onPointerMove$','getCoordByCell','find','_config','mergeOverrideWithDependencies','RefRangeService','map','collaboration.single-unit.warning','_transformPreviousActiveRange','9108774syvKkg','_getSheetObject','getCurrent','CommandType','post','_setupBeforeClosingHandler','takeUntil','INVITE_CODE_ALREADY_BOUND','_cursors','requireSession','getSkeleton','REDEMPTION_CODE_HAS_BEEN_CREATED','sheetID','univerjs-icon\x20univerjs-icon-','_docClipboardService','SheetSkeletonManagerService','setParam','LOGIN_TOKEN_PROCESSING_FAILED','getUnit','Injector','hovered','toRgbString','RegularPolygon','with','MOBILE_HAS_BEEN_BOUND','asObservable','limitInfo','USER_NOT_FOUND','fillStyle','1286RmLuXy','getFocusedUnit','text','_color','removeParam','_configService','_initCommandExecutedListener','subscribe','pluginName','_colorIndex','setItem','tag','values','onCommandExecuted','_onRefRangeChange','DisposableCollection','_initUserListener','APPLY_REVISION_CONFILICT','show','_ensureSubject','fromEventSubject','substring','getRangePointData','_scheduleClearOtherTimer','_messageService','forEach','_refRangeService','selection','Rect','distinctUntilChanged','displayName','UNAUTHENTICATED','AUTHORIZE_CODE_ILLEGAL','CONNECTOR_DATA_TOO_LARGE','beginPath','sessionStatus$','_currentUsage','onPointerLeave$','ACTIVE_UNIT_EVENT_CHANNEL','transformSelections','_getAnchorBounding','syncEditingCollabCursor','doc.mutation.rich-text-editing','getSheetBySheetId','getSheetId','PAYMENT_CHANNEL_NOT_SUPPORT','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','IURLService','beforeCommandExecuted','length','170THGdLt','unitId','InsertColCommandId','YUUMI_UNABLE_LOAD_URL','height','FromArray','has','LICENSE_DISTRO_REJECTED','origin','_hideTimer','backgroundColor','DataLoaderService','_handleJoinEvent','lineno','_selfUnitIDs','unsubscribe','_createSocketURL','_document','useCallback','session.will-retry','_uploadLog','USER_IS_ANONYMOUS','range','enableFrontendLog','_collabSessionService','getCurrentRevOfUnit','UNIVER_DOC','_univerInstanceService','source','_checkAndWaitForCalculationPermission','YUUMI_RATE_OVER_LIMIT','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getCollabEntity$','_drawTextRange','_localCacheService','Subject','onMouseMove','handleDeleteRangeMoveUp','ERROR_AGAIN','_saveCache','PERMISSION_DENIED','NOT_COLLAB','ENSURE_SNAPSHOT_EXECUTION','_updateURLWithCurrentState','_disabled','collaboration-client-ui.config','FETCH_MISS','set','_doCreateSocket','xlink:href','_cursor','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_entityInit$','\x20at\x20','replaceDocRanges','m1Prime','executeCommand','IDocClipboardService','width','svg','off-line-icon','split','WebSocketService','formula.calculation.unable','startColumn','useObservable','session.connection-failed','collaboration.offline-data-not-saved','getStateCache','makeDirty','_initCommandInterceptor','Inject','handleInsertRangeMoveDown','data','_cursorShapes','getformulaLimitStatusUrl','collab-text-range-','addObject','_releaseCalculationLimit','OFFLINE','roomMembers','DocIMEInputManagerService','RichTextEditingMutation','search','getTypeOfUnitAdded$','_handleEvent','_range','fillText','permission.content','MUTATION','dispose$','path','ENTITLE_USE_COUPON_NOT_1ST_TRADE','collabCursorState$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getUnitId','Vector2','onTransformChange$','newValue','CollaborationUIEventId','INotificationService','currentUsage','exhaustSavingTask','_instanceService','NO_OTHER_CLIENTS_EDITING','pipe','shift','_initStatusComponent','filename','code','_themeService','addEventListener','currentColor','endColumn','wsSessionTicketUrl','MessageType','reconnect','UniverCollaborationClientUIPlugin','_onCursorDelete','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','sessionTicket','generateRandomId','currentSkeleton$','params','attrs','_renderManagerService','1629MZtpfb','startRow','CONFLICT','findNodePositionByCharIndex','Shape','mutations','unhandledrejection','colorChannel1','ENTITLE_CHAT_LIMIT_EXCEED','clsx','IMessageService','toString','translate(.97)','clearInterval','SetTextSelectionsOperation','_updateLocalCursor','getColorFromTheme','session.collaboration-timeout','div','getVpScrollXYInfoByPosToVp','getDocRanges','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getMergeData','getConfig','dispose','_unitStatus','m2Prime','_drawAnchor','UniverIcon','1em','defs','_refreshCollabCursors','Failed','_id','subunit','_docSkeleton','body','YUUMI_URL_COL_OUT_OF_RANGE','YUUMI_CONNECTOR_URL_NOT_FOUND','SetWorksheetActivateCommand','REDEMPTION_CODE_NOT_STARTED','_online','UNIVER_SHEET','DATA_SOURCE_TOO_LARGE','sheetId','_toggleOnline','_localeService','WebURLService','getRenderById','none','entityInit$','_render','setTimeout','assignAColorForMemberID','reason','type','add','useDependency','REDEMPTION_CODE_INACTIVE','CollaborationUIEventService','_entities','APPLY_PERMISSION_DENIED','ONLINE','removeEventListener','TOO_MANY_REQUESTS','Success','transform','_removeClearOtherTimer','docStateChange$','SUCCESS','merge','UnitStatus','send','_hovered','round','Loading','MOBILE_VERIFY_CODE_MISMATCH','getRelativeToViewportCoord','_injector','LICENSE_IMPORT_SIZE_EXCEEDED','registerDependencies','EMAIL_VERIFY_CODE_MISMATCH','ENTITLE_INSUFFICIENT_QUOTA','evenodd','deepClone','_registerRenderDependencies','_revisionService','_roomMembers$','saveTaskMap','_textBubble','LICENSE_EXPORT_SIZE_EXCEEDED','BrowserCollaborationSocketService','defineProperty','DesktopCollaborationStatusDisplayController','_scene','VIEW_MAIN','CURRENT_STATUS_CANNOT_OPERATE','UPDATE_CURSOR','LOGIN_FAILED','SessionStatus','_labelPosition','ILocalCacheService','debug','socket$','_setFormulaLimitStatus','enableLocalCache','_pollingInterval','PY_RUNTIME_SCRIPT_ERROR','CollaborationSessionService','measureText','actions','subscribeEvent','MoveRangeCommandId','dirtyRanges','runId','moveTo','memberID','_docTransformSelectionsService','SUBMIT_CHANGESET_TIMEOUT','undoState','message','MemberService','mask','BuiltInUIPart','USER_NOT_INVITED_CODE','_initUnhandledRejectionListener','UNDEFINED','serializeRangeWithSheet','Error','on-line-icon_clip0_910_349','_anchorDot','string','cursorInfo$','getAncestorScale','UNRECOGNIZED','subUnitId','collabStatus.syncing','_draw','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_initResize','toDisposable','unitID','0\x200\x2016\x2016'];_0x2998=function(){return _0x2fa3b0;};return _0x2998();}const Yt=_0x4ce73f(0x1d5),Me={};var Ht=Object[_0x4ce73f(0x3c3)],Wt=(_0x359c49,_0x331d81,_0x2520f1,_0x413436)=>{const _0xae04fb=_0x4ce73f;for(var _0x55e838=_0x413436>0x1?void 0x0:_0x413436?Ht(_0x331d81,_0x2520f1):_0x331d81,_0x3110e4=_0x359c49[_0xae04fb(0x1a7)]-0x1,_0x4addf7;_0x3110e4>=0x0;_0x3110e4--)(_0x4addf7=_0x359c49[_0x3110e4])&&(_0x55e838=_0x4addf7(_0x55e838)||_0x55e838);return _0x55e838;},Ae=(_0x463ebd,_0x3d985d)=>(_0x22a721,_0x502008)=>_0x3d985d(_0x22a721,_0x502008,_0x463ebd);let ee=class{constructor(_0x9212f1,_0x236664){const _0x32ba3f=_0x4ce73f;this[_0x32ba3f(0x400)]=_0x9212f1,this[_0x32ba3f(0x225)]=_0x236664;}['transformIMECache'](_0x444c90){const _0x2471c5=_0x4ce73f;this[_0x2471c5(0x2fb)](_0x444c90),this[_0x2471c5(0x158)](_0x444c90);}[_0x4ce73f(0x35c)](_0x2e8dd6){const _0x13100f=_0x4ce73f,{unitID:_0x3f4fe8}=_0x2e8dd6,_0xc36147=this[_0x13100f(0x225)][_0x13100f(0x256)](_0x3f4fe8)['with'](T['DocIMEInputManagerService']),{redoCache:_0x40b6c5}=_0xc36147[_0x13100f(0x38c)]();if(_0x40b6c5['length']===0x0)return _0x2e8dd6;let _0x3f87a4=a[_0x13100f(0x420)][_0x13100f(0x27a)](_0x2e8dd6[_0x13100f(0x22b)][0x0]);for(let _0x108b4f=0x0;_0x108b4f<_0x40b6c5[_0x13100f(0x1a7)];_0x108b4f++){const _0x535472={'id':_0x13100f(0x1a0),'params':{..._0x40b6c5[_0x108b4f]}},_0x4c0710=this[_0x13100f(0x400)][_0x13100f(0x325)](_0x3f87a4,_0x535472,!0x1);if(g[_0x13100f(0x2cf)](_0x4c0710))throw _0x4c0710[_0x13100f(0x38a)];_0x3f87a4=_0x4c0710['m1Prime'];}return{...a[_0x13100f(0x420)][_0x13100f(0x27a)](_0x2e8dd6),'mutations':[_0x3f87a4]};}[_0x4ce73f(0x2fb)](_0x4633fd){const _0x3946e5=_0x4ce73f,{unitID:_0x229d2e}=_0x4633fd,_0x5353ec=this[_0x3946e5(0x225)][_0x3946e5(0x256)](_0x229d2e)[_0x3946e5(0x170)](T['DocIMEInputManagerService']),{undoCache:_0x12f4b5,redoCache:_0x36585a}=_0x5353ec[_0x3946e5(0x38c)]();if(_0x12f4b5[_0x3946e5(0x1a7)]===0x0||_0x36585a['length']===0x0)return;const _0x589bf0=[],_0xb42cc1=[];let _0x4f791e=a[_0x3946e5(0x420)][_0x3946e5(0x27a)](_0x4633fd['mutations'][0x0]),_0x3c3eee=a[_0x3946e5(0x420)][_0x3946e5(0x27a)](_0x4633fd['mutations'][0x0]);for(let _0x5d2f46=_0x12f4b5[_0x3946e5(0x1a7)]-0x1;_0x5d2f46>=0x0;_0x5d2f46--){const _0x342c4a={'id':_0x3946e5(0x1a0),'params':{..._0x12f4b5[_0x5d2f46]}},_0x457e25={'id':_0x3946e5(0x1a0),'params':{..._0x36585a[_0x5d2f46]}},_0x57a308=this[_0x3946e5(0x400)][_0x3946e5(0x325)](_0x4f791e,_0x342c4a,!0x1),_0x2dc91b=this[_0x3946e5(0x400)][_0x3946e5(0x325)](_0x3c3eee,_0x457e25,!0x1);if(g[_0x3946e5(0x2cf)](_0x57a308))throw _0x57a308[_0x3946e5(0x38a)];if(g[_0x3946e5(0x2cf)](_0x2dc91b))throw _0x2dc91b[_0x3946e5(0x38a)];_0x589bf0[_0x3946e5(0x3d0)](_0x57a308['m2Prime'][_0x3946e5(0x223)]),_0xb42cc1[_0x3946e5(0x3d0)](_0x2dc91b[_0x3946e5(0x240)]['params']),_0x4f791e=_0x57a308['m1Prime'],_0x3c3eee=_0x2dc91b[_0x3946e5(0x1df)];}_0x5353ec[_0x3946e5(0x3f6)]({'undoCache':_0x589bf0,'redoCache':_0xb42cc1});}[_0x4ce73f(0x158)](_0x2fa7a2){const _0x3b860c=_0x4ce73f,{unitID:_0x3ed8b5}=_0x2fa7a2,_0x29d5b9=this[_0x3b860c(0x225)]['getRenderById'](_0x3ed8b5)['with'](T[_0x3b860c(0x1f9)]),_0x4150c9=_0x29d5b9[_0x3b860c(0x3e9)]();if(_0x4150c9==null)return;const _0xa20438=[{'id':_0x3b860c(0x1a0),'params':{'unitId':_0x2fa7a2[_0x3b860c(0x2b3)],'actions':null,'textRanges':[_0x4150c9]}}],_0x23d274=this[_0x3b860c(0x400)][_0x3b860c(0x2f5)](_0x2fa7a2,_0xa20438);if(!g['isTransformMutationsWithChangesetSuccess'](_0x23d274))throw _0x23d274[_0x3b860c(0x38a)];const _0x51ba41=_0x23d274[_0x3b860c(0x240)][0x0][_0x3b860c(0x223)][_0x3b860c(0x394)];Array[_0x3b860c(0x351)](_0x51ba41)&&_0x51ba41[_0x3b860c(0x1a7)]&&_0x29d5b9[_0x3b860c(0x3d4)](_0x51ba41[0x0]);}};ee=Wt([Ae(0x0,g[_0x4ce73f(0x3c4)]),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x4ce73f(0x3c3)],Gt=(_0x4ca82e,_0x58e43b,_0x5e1870,_0x2fea3f)=>{for(var _0x2dde44=_0x2fea3f>0x1?void 0x0:_0x2fea3f?Vt(_0x58e43b,_0x5e1870):_0x58e43b,_0x2bc12c=_0x4ca82e['length']-0x1,_0x125b62;_0x2bc12c>=0x0;_0x2bc12c--)(_0x125b62=_0x4ca82e[_0x2bc12c])&&(_0x2dde44=_0x125b62(_0x2dde44)||_0x2dde44);return _0x2dde44;},Ie=(_0x1900fc,_0x3a7823)=>(_0x2b2d9e,_0xcc0bbd)=>_0x3a7823(_0x2b2d9e,_0xcc0bbd,_0x1900fc);let te=class{constructor(_0x4dabbc,_0x53027d,_0x51d19f){const _0x34e817=_0x4ce73f;this[_0x34e817(0x274)]=_0x4dabbc,this['_transformService']=_0x53027d,this['_docStateChangeManagerService']=_0x51d19f;}[_0x4ce73f(0x38e)](_0x452709){const _0x3d6818=_0x4ce73f;this[_0x3d6818(0x3fb)](_0x452709);}[_0x4ce73f(0x35c)](_0x34ae04){const _0x801f87=_0x4ce73f,{unitID:_0xd51368}=_0x34ae04,{collaboration:_0x325db5}=this[_0x801f87(0x357)][_0x801f87(0x1ec)](_0xd51368);if(_0x325db5[_0x801f87(0x1a7)]===0x0)return _0x34ae04;let _0x5a36ee=a[_0x801f87(0x420)][_0x801f87(0x27a)](_0x34ae04[_0x801f87(0x22b)][0x0]);for(let _0x5c616b=0x0;_0x5c616b<_0x325db5[_0x801f87(0x1a7)];_0x5c616b++){const _0x12df21={'id':_0x801f87(0x1a0),'params':{'unitId':_0x325db5[_0x5c616b][_0x801f87(0x1a9)],..._0x325db5[_0x5c616b][_0x801f87(0x3de)]}},_0x3bb533=this[_0x801f87(0x400)]['transformMutation'](_0x5a36ee,_0x12df21,!0x1);if(g[_0x801f87(0x2cf)](_0x3bb533))throw _0x3bb533[_0x801f87(0x38a)];_0x5a36ee=_0x3bb533[_0x801f87(0x1df)];}return{...a[_0x801f87(0x420)]['deepClone'](_0x34ae04),'mutations':[_0x5a36ee]};}[_0x4ce73f(0x3fb)](_0x18cd24){const _0xa1768=_0x4ce73f,{unitID:_0x1b9fa6}=_0x18cd24,{history:_0xb8899b,collaboration:_0x3a633f}=this[_0xa1768(0x357)][_0xa1768(0x1ec)](_0x1b9fa6);if(_0xb8899b[_0xa1768(0x1a7)]===0x0&&_0x3a633f[_0xa1768(0x1a7)]===0x0)return;const _0x615d09=[],_0x2aad3e=[];let _0x1da90=a[_0xa1768(0x420)][_0xa1768(0x27a)](_0x18cd24[_0xa1768(0x22b)][0x0]),_0x40458e=a[_0xa1768(0x420)][_0xa1768(0x27a)](_0x18cd24[_0xa1768(0x22b)][0x0]);for(let _0x33d37d=_0xb8899b[_0xa1768(0x1a7)]-0x1;_0x33d37d>=0x0;_0x33d37d--){const _0x12f7eb={'id':_0xa1768(0x1a0),'params':{'unitId':_0xb8899b[_0x33d37d][_0xa1768(0x1a9)],..._0xb8899b[_0x33d37d][_0xa1768(0x29d)]}},_0x8c1802={'id':_0xa1768(0x1a0),'params':{'unitId':_0xb8899b[_0x33d37d][_0xa1768(0x1a9)],..._0xb8899b[_0x33d37d][_0xa1768(0x3de)]}},_0x15956a=this[_0xa1768(0x400)]['transformMutation'](_0x1da90,_0x12f7eb,!0x1),_0x40a946=this[_0xa1768(0x400)]['transformMutation'](_0x40458e,_0x8c1802,!0x1);if(g[_0xa1768(0x2cf)](_0x15956a))throw _0x15956a[_0xa1768(0x38a)];if(g[_0xa1768(0x2cf)](_0x40a946))throw _0x40a946['error'];_0x615d09[_0xa1768(0x3d0)]({..._0xb8899b[_0x33d37d],'undoState':_0x15956a[_0xa1768(0x240)][_0xa1768(0x223)],'redoState':_0x40a946['m2Prime'][_0xa1768(0x223)]}),_0x1da90=_0x15956a[_0xa1768(0x1df)],_0x40458e=_0x40a946[_0xa1768(0x1df)];}_0x1da90=a[_0xa1768(0x420)][_0xa1768(0x27a)](_0x18cd24[_0xa1768(0x22b)][0x0]),_0x40458e=a['Tools'][_0xa1768(0x27a)](_0x18cd24[_0xa1768(0x22b)][0x0]);for(let _0x45bdb2=_0x3a633f[_0xa1768(0x1a7)]-0x1;_0x45bdb2>=0x0;_0x45bdb2--){const _0xac526b={'id':_0xa1768(0x1a0),'params':{'unitId':_0x3a633f[_0x45bdb2][_0xa1768(0x1a9)],..._0x3a633f[_0x45bdb2][_0xa1768(0x29d)]}},_0x4ed11c={'id':_0xa1768(0x1a0),'params':{'unitId':_0x3a633f[_0x45bdb2][_0xa1768(0x1a9)],..._0x3a633f[_0x45bdb2][_0xa1768(0x3de)]}},_0x5ebb22=this[_0xa1768(0x400)]['transformMutation'](_0x1da90,_0xac526b,!0x1),_0x1c12d8=this[_0xa1768(0x400)][_0xa1768(0x325)](_0x40458e,_0x4ed11c,!0x1);if(g[_0xa1768(0x2cf)](_0x5ebb22))throw _0x5ebb22['error'];if(g[_0xa1768(0x2cf)](_0x1c12d8))throw _0x1c12d8[_0xa1768(0x38a)];_0x2aad3e[_0xa1768(0x3d0)]({..._0x3a633f[_0x45bdb2],'undoState':_0x5ebb22[_0xa1768(0x240)][_0xa1768(0x223)],'redoState':_0x1c12d8['m2Prime'][_0xa1768(0x223)]}),_0x1da90=_0x5ebb22[_0xa1768(0x1df)],_0x40458e=_0x1c12d8['m1Prime'];}this[_0xa1768(0x357)][_0xa1768(0x367)](_0x1b9fa6,{'history':_0x615d09,'collaboration':_0x2aad3e});}};te=Gt([Ie(0x0,a['Inject'](a['Injector'])),Ie(0x1,g[_0x4ce73f(0x3c4)]),Ie(0x2,a['Inject'](T['DocStateChangeManagerService']))],te);var Xt=Object[_0x4ce73f(0x3c3)],Kt=(_0x243189,_0x347874,_0x2359ba,_0x260f7d)=>{const _0x3212ef=_0x4ce73f;for(var _0x185f9f=_0x260f7d>0x1?void 0x0:_0x260f7d?Xt(_0x347874,_0x2359ba):_0x347874,_0x101e8c=_0x243189[_0x3212ef(0x1a7)]-0x1,_0x259362;_0x101e8c>=0x0;_0x101e8c--)(_0x259362=_0x243189[_0x101e8c])&&(_0x185f9f=_0x259362(_0x185f9f)||_0x185f9f);return _0x185f9f;},Pe=(_0x674e02,_0x59cfe3)=>(_0x16f2c8,_0xaf344f)=>_0x59cfe3(_0x16f2c8,_0xaf344f,_0x674e02);let se=class{constructor(_0x3372bc,_0x331a90){const _0x25993=_0x4ce73f;this[_0x25993(0x274)]=_0x3372bc,this[_0x25993(0x400)]=_0x331a90;}['transformSelections'](_0x9110ec){const _0x3e0ee1=_0x4ce73f;var _0x348fdc;const _0x5d73f3=this['_injector']['get'](V[_0x3e0ee1(0x2e4)]),_0x3af2ce=(_0x348fdc=_0x5d73f3[_0x3e0ee1(0x23a)]())!=null?_0x348fdc:[];if(_0x3af2ce[_0x3e0ee1(0x1a7)]===0x0)return;const _0x335f20=_0x9110ec[_0x3e0ee1(0x2b3)],_0x43918a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x335f20,'actions':null,'textRanges':_0x3af2ce}}],_0x4f3a25=this['_transformService'][_0x3e0ee1(0x2f5)](_0x9110ec,_0x43918a);if(!g[_0x3e0ee1(0x2e3)](_0x4f3a25))throw _0x4f3a25[_0x3e0ee1(0x38a)];const _0x39bc83=_0x4f3a25[_0x3e0ee1(0x240)][0x0]['params'][_0x3e0ee1(0x394)];Array['isArray'](_0x39bc83)&&_0x39bc83[_0x3e0ee1(0x1a7)]&&_0x5d73f3[_0x3e0ee1(0x1de)](_0x39bc83,{'unitId':_0x335f20,'subUnitId':_0x335f20},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x4ce73f(0x16c)])),Pe(0x1,g[_0x4ce73f(0x3c4)])],se);var qt=Object[_0x4ce73f(0x3c3)],zt=(_0x428f38,_0x5bbcca,_0x5ce6f1,_0xccdf6d)=>{const _0x1cac11=_0x4ce73f;for(var _0x24e235=_0xccdf6d>0x1?void 0x0:_0xccdf6d?qt(_0x5bbcca,_0x5ce6f1):_0x5bbcca,_0x399d6e=_0x428f38[_0x1cac11(0x1a7)]-0x1,_0x3d787f;_0x399d6e>=0x0;_0x399d6e--)(_0x3d787f=_0x428f38[_0x399d6e])&&(_0x24e235=_0x3d787f(_0x24e235)||_0x24e235);return _0x24e235;},N=(_0x339f8d,_0x4628a1)=>(_0x20608c,_0x47dcc0)=>_0x4628a1(_0x20608c,_0x47dcc0,_0x339f8d);let ie=class extends a[_0x4ce73f(0x3b9)]{constructor(_0x5c1fd4,_0x2e228c,_0x4996bd,_0x278843,_0x6cc9d3,_0x43b2fd,_0x255672,_0x129613){const _0x51a650=_0x4ce73f;super(),_(this,_0x51a650(0x407),new I[(_0x51a650(0x373))](u['CollaborationStatus'][_0x51a650(0x1d1)])),(this['_docStateChangeManagerService']=_0x5c1fd4,this[_0x51a650(0x3f1)]=_0x2e228c,this[_0x51a650(0x3ce)]=_0x4996bd,this['_docTransformStateCacheService']=_0x278843,this['_docTransformSelectionsService']=_0x6cc9d3,this[_0x51a650(0x40c)]=_0x43b2fd,this[_0x51a650(0x18e)]=_0x255672,this[_0x51a650(0x254)]=_0x129613,this[_0x51a650(0x2e6)]());}[_0x4ce73f(0x2e6)](){const _0x5d79f0=_0x4ce73f;this[_0x5d79f0(0x381)](this[_0x5d79f0(0x3f1)][_0x5d79f0(0x258)][_0x5d79f0(0x17d)](_0x1dc123=>{const _0x13d706=_0x5d79f0,_0x524bd1=this['_docStateChangeManagerService'][_0x13d706(0x26a)][_0x13d706(0x17d)](_0x49732c=>{const _0x3d7585=_0x13d706;if(_0x49732c==null)return;const {unitId:_0x48aaef,redoState:_0xe520cc,commandId:_0x12f56f}=_0x49732c;if(_0x48aaef!==_0x1dc123[_0x3d7585(0x2b3)])return;const _0x20fef8={'id':_0x12f56f,'type':a[_0x3d7585(0x15c)][_0x3d7585(0x201)],'params':{'unitId':_0x48aaef,'actions':_0xe520cc[_0x3d7585(0x294)],'textRanges':null}};_0x1dc123['onLocalMutation'](_0x20fef8);});if(_0x1dc123['disposeWithMe'](_0x524bd1),_0x1dc123 instanceof u['DocCollaborationEntity']){const _0x2e3dfc={'onTransformIME':_0x27191e=>this[_0x13d706(0x3ce)]['transformIMECache'](_0x27191e),'onTransformState':_0x21397b=>this[_0x13d706(0x3f9)][_0x13d706(0x38e)](_0x21397b),'onTransformSelections':_0x102b47=>this[_0x13d706(0x29b)][_0x13d706(0x19d)](_0x102b47),'onSyncEditingCollabCursor':_0x187bfa=>this[_0x13d706(0x40c)][_0x13d706(0x19f)](_0x187bfa),'onTransformRemoteChangesetByIMECache':_0x1bb22a=>this[_0x13d706(0x3ce)]['transformRemoteChangeset'](_0x1bb22a),'onTransformRemoteChangesetByStateCache':_0x475cf4=>this[_0x13d706(0x3f9)][_0x13d706(0x35c)](_0x475cf4)};_0x1dc123['addHandlerCallback'](_0x2e3dfc);}}));}};ie=zt([N(0x0,a[_0x4ce73f(0x1ef)](T[_0x4ce73f(0x339)])),N(0x1,a[_0x4ce73f(0x1ef)](u[_0x4ce73f(0x37e)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x4ce73f(0x1ef)](te)),N(0x4,a['Inject'](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x4ce73f(0x230)]),N(0x7,a['Inject'](a[_0x4ce73f(0x3ac)]))],ie);var G=(_0x392f7e=>(_0x392f7e[_0x392f7e[_0x4ce73f(0x2a4)]=0x0]=_0x4ce73f(0x2a4),_0x392f7e[_0x392f7e['OK']=0x1]='OK',_0x392f7e[_0x392f7e[_0x4ce73f(0x3e7)]=0x2]=_0x4ce73f(0x3e7),_0x392f7e[_0x392f7e[_0x4ce73f(0x1d0)]=0x3]=_0x4ce73f(0x1d0),_0x392f7e[_0x392f7e[_0x4ce73f(0x415)]=0x4]=_0x4ce73f(0x415),_0x392f7e[_0x392f7e[_0x4ce73f(0x195)]=0x5]='UNAUTHENTICATED',_0x392f7e[_0x392f7e[_0x4ce73f(0x369)]=0x6]='ALREADY_EXISTS',_0x392f7e[_0x392f7e[_0x4ce73f(0x3e4)]=0x7]=_0x4ce73f(0x3e4),_0x392f7e[_0x392f7e[_0x4ce73f(0x266)]=0x8]=_0x4ce73f(0x266),_0x392f7e[_0x392f7e[_0x4ce73f(0x2c2)]=0x9]=_0x4ce73f(0x2c2),_0x392f7e[_0x392f7e[_0x4ce73f(0x288)]=0xa]=_0x4ce73f(0x288),_0x392f7e[_0x392f7e[_0x4ce73f(0x272)]=0xb]=_0x4ce73f(0x272),_0x392f7e[_0x392f7e['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x4ce73f(0x34e),_0x392f7e[_0x392f7e[_0x4ce73f(0x277)]=0xd]=_0x4ce73f(0x277),_0x392f7e[_0x392f7e['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x392f7e[_0x392f7e[_0x4ce73f(0x196)]=0xf]=_0x4ce73f(0x196),_0x392f7e[_0x392f7e[_0x4ce73f(0x16a)]=0x10]=_0x4ce73f(0x16a),_0x392f7e[_0x392f7e['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x4ce73f(0x286),_0x392f7e[_0x392f7e[_0x4ce73f(0x1ce)]=0x65]='ERROR_AGAIN',_0x392f7e[_0x392f7e[_0x4ce73f(0x174)]=0xc9]=_0x4ce73f(0x174),_0x392f7e[_0x392f7e[_0x4ce73f(0x1bd)]=0xca]='USER_IS_ANONYMOUS',_0x392f7e[_0x392f7e[_0x4ce73f(0x2fa)]=0x1389]=_0x4ce73f(0x2fa),_0x392f7e[_0x392f7e[_0x4ce73f(0x41b)]=0x1771]=_0x4ce73f(0x41b),_0x392f7e[_0x392f7e[_0x4ce73f(0x3af)]=0x1772]=_0x4ce73f(0x3af),_0x392f7e[_0x392f7e[_0x4ce73f(0x1d2)]=0x1773]=_0x4ce73f(0x1d2),_0x392f7e[_0x392f7e['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x392f7e[_0x392f7e[_0x4ce73f(0x2fd)]=0x1b5a]=_0x4ce73f(0x2fd),_0x392f7e[_0x392f7e[_0x4ce73f(0x187)]=0x1b5b]=_0x4ce73f(0x187),_0x392f7e[_0x392f7e[_0x4ce73f(0x263)]=0x1b5c]=_0x4ce73f(0x263),_0x392f7e[_0x392f7e[_0x4ce73f(0x3d3)]=0x1b5d]=_0x4ce73f(0x3d3),_0x392f7e[_0x392f7e[_0x4ce73f(0x197)]=0x1f41]=_0x4ce73f(0x197),_0x392f7e[_0x392f7e[_0x4ce73f(0x3b0)]=0x2329]=_0x4ce73f(0x3b0),_0x392f7e[_0x392f7e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x4ce73f(0x3ae),_0x392f7e[_0x392f7e[_0x4ce73f(0x275)]=0x232b]=_0x4ce73f(0x275),_0x392f7e[_0x392f7e[_0x4ce73f(0x280)]=0x232c]=_0x4ce73f(0x280),_0x392f7e[_0x392f7e[_0x4ce73f(0x1af)]=0x232d]=_0x4ce73f(0x1af),_0x392f7e[_0x392f7e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4ce73f(0x1ab),_0x392f7e[_0x392f7e[_0x4ce73f(0x24b)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x392f7e[_0x392f7e[_0x4ce73f(0x1c6)]=0x2713]=_0x4ce73f(0x1c6),_0x392f7e[_0x392f7e[_0x4ce73f(0x2bd)]=0x2714]=_0x4ce73f(0x2bd),_0x392f7e[_0x392f7e[_0x4ce73f(0x391)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x392f7e[_0x392f7e[_0x4ce73f(0x41e)]=0x271b]=_0x4ce73f(0x41e),_0x392f7e[_0x392f7e['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x4ce73f(0x23b),_0x392f7e[_0x392f7e[_0x4ce73f(0x3b5)]=0x271d]=_0x4ce73f(0x3b5),_0x392f7e[_0x392f7e['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x4ce73f(0x21f),_0x392f7e[_0x392f7e[_0x4ce73f(0x354)]=0x271f]=_0x4ce73f(0x354),_0x392f7e[_0x392f7e[_0x4ce73f(0x24c)]=0x2720]=_0x4ce73f(0x24c),_0x392f7e[_0x392f7e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4ce73f(0x291),_0x392f7e[_0x392f7e[_0x4ce73f(0x37b)]=0x2ee1]=_0x4ce73f(0x37b),_0x392f7e[_0x392f7e['INVALID_INVITE_CODE']=0x2ee2]=_0x4ce73f(0x3eb),_0x392f7e[_0x392f7e[_0x4ce73f(0x3c8)]=0x2ee3]=_0x4ce73f(0x3c8),_0x392f7e[_0x392f7e['USER_NOT_INVITED_CODE']=0x2ee4]=_0x4ce73f(0x2a2),_0x392f7e[_0x392f7e[_0x4ce73f(0x160)]=0x2ee5]=_0x4ce73f(0x160),_0x392f7e[_0x392f7e[_0x4ce73f(0x41c)]=0x32c9]=_0x4ce73f(0x41c),_0x392f7e[_0x392f7e[_0x4ce73f(0x171)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x392f7e[_0x392f7e['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4ce73f(0x324),_0x392f7e[_0x392f7e['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x4ce73f(0x3ad),_0x392f7e[_0x392f7e[_0x4ce73f(0x3c6)]=0x36b2]=_0x4ce73f(0x3c6),_0x392f7e[_0x392f7e[_0x4ce73f(0x352)]=0x36b3]=_0x4ce73f(0x352),_0x392f7e[_0x392f7e[_0x4ce73f(0x1a3)]=0x36b4]=_0x4ce73f(0x1a3),_0x392f7e[_0x392f7e['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x4ce73f(0x35f),_0x392f7e[_0x392f7e[_0x4ce73f(0x3e1)]=0x36b6]=_0x4ce73f(0x3e1),_0x392f7e[_0x392f7e[_0x4ce73f(0x41a)]=0x36b7]=_0x4ce73f(0x41a),_0x392f7e[_0x392f7e[_0x4ce73f(0x204)]=0x36b8]=_0x4ce73f(0x204),_0x392f7e[_0x392f7e[_0x4ce73f(0x22e)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x392f7e[_0x392f7e['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x4ce73f(0x364),_0x392f7e[_0x392f7e[_0x4ce73f(0x278)]=0x3717]=_0x4ce73f(0x278),_0x392f7e[_0x392f7e['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x4ce73f(0x3c7),_0x392f7e[_0x392f7e['REDEMPTION_INVALID_CODE']=0x3a99]=_0x4ce73f(0x342),_0x392f7e[_0x392f7e['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x4ce73f(0x260),_0x392f7e[_0x392f7e[_0x4ce73f(0x337)]=0x3a9b]=_0x4ce73f(0x337),_0x392f7e[_0x392f7e[_0x4ce73f(0x24e)]=0x3a9c]=_0x4ce73f(0x24e),_0x392f7e[_0x392f7e['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x4ce73f(0x355),_0x392f7e[_0x392f7e['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x392f7e[_0x392f7e[_0x4ce73f(0x164)]=0x3a9f]=_0x4ce73f(0x164),_0x392f7e[_0x392f7e[_0x4ce73f(0x251)]=0x3e81]=_0x4ce73f(0x251),_0x392f7e[_0x392f7e[_0x4ce73f(0x2ac)]=-0x1]=_0x4ce73f(0x2ac),_0x392f7e))(G||{});function Jt(_0x2830c1){const _0x37db56=_0x4ce73f;var _0x5bbc21,_0x59fb9f;const _0x2758d1=(_0x5bbc21=_0x2830c1[_0x37db56(0x2db)])==null?void 0x0:_0x5bbc21[_0x37db56(0x2d1)],_0x2cbc04=((_0x59fb9f=_0x2830c1[_0x37db56(0x2db)])==null?void 0x0:_0x59fb9f[_0x37db56(0x2d4)])||0x0;return _0x2758d1===B['FormulaExecuteStageType'][_0x37db56(0x3a8)]&&_0x2cbc04>0x0;}function Zt(_0x123cc7){const _0xf68c86=_0x4ce73f;return _0x123cc7[_0xf68c86(0x2e9)]===B[_0xf68c86(0x34c)][_0xf68c86(0x26b)];}var Qt=Object[_0x4ce73f(0x3c3)],es=(_0x192cc3,_0x416412,_0x2840d2,_0x5335a0)=>{const _0x50e0ca=_0x4ce73f;for(var _0x3a066e=_0x5335a0>0x1?void 0x0:_0x5335a0?Qt(_0x416412,_0x2840d2):_0x416412,_0x117b10=_0x192cc3[_0x50e0ca(0x1a7)]-0x1,_0x5281db;_0x117b10>=0x0;_0x117b10--)(_0x5281db=_0x192cc3[_0x117b10])&&(_0x3a066e=_0x5281db(_0x3a066e)||_0x3a066e);return _0x3a066e;},L=(_0x5a6b65,_0x369a6f)=>(_0x4fe590,_0x5a192a)=>_0x369a6f(_0x4fe590,_0x5a192a,_0x5a6b65);const ts='/universer-api/license/formula/limit/status',ss='/universer-api/license/formula/limit/start',is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x4ce73f(0x3b9)]{constructor(_0x58a6fb,_0x533ab6,_0x383509,_0x201fca,_0x2c06f0,_0x33aef0,_0x8682ac){const _0x20b55a=_0x4ce73f;super(),_(this,_0x20b55a(0x290),null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0x20b55a(0x333),[]),_(this,_0x20b55a(0x419),0x0),(this[_0x20b55a(0x18e)]=_0x58a6fb,this['_commandService']=_0x533ab6,this[_0x20b55a(0x17b)]=_0x383509,this[_0x20b55a(0x3d6)]=_0x201fca,this[_0x20b55a(0x1c3)]=_0x2c06f0,this['_logService']=_0x33aef0,this[_0x20b55a(0x254)]=_0x8682ac,this[_0x20b55a(0x1ee)]());}['_initCommandInterceptor'](){const _0x4acb44=_0x4ce73f;this[_0x4acb44(0x381)](this[_0x4acb44(0x3f3)][_0x4acb44(0x1a6)]((_0x3cc727,_0x17a89f)=>{const _0x44e5a8=_0x4acb44;var _0x7ebcaf;if(_0x3cc727['id']!==B[_0x44e5a8(0x315)]['id'])return;const _0x438e67=_0x3cc727[_0x44e5a8(0x223)];if(!this[_0x44e5a8(0x36f)]((_0x7ebcaf=_0x438e67[_0x44e5a8(0x297)])!=null?_0x7ebcaf:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x44e5a8(0x1c5)](_0x3cc727,_0x17a89f),this['_showGuardMessage'](),new a[(_0x44e5a8(0x316))]();})),this[_0x4acb44(0x381)](this[_0x4acb44(0x3f3)][_0x4acb44(0x183)]((_0x1a3f05,_0x25e3c7)=>{const _0x2587e2=_0x4acb44;if(_0x1a3f05['id']!==B[_0x2587e2(0x371)]['id'])return;const _0x320d3e=_0x1a3f05[_0x2587e2(0x223)];if(Jt(_0x320d3e)){const _0x2c4e98=a[_0x2587e2(0x221)]();this[_0x2587e2(0x333)][_0x2587e2(0x2dd)](_0x2c4e98),this[_0x2587e2(0x3e2)](_0x2c4e98);}else{if(Zt(_0x320d3e)&&this[_0x2587e2(0x333)][_0x2587e2(0x1a7)]>0x0){const _0x3568ca=this['_taskIds'][_0x2587e2(0x212)]();this[_0x2587e2(0x1f6)](_0x3568ca);}}}));}['dispose'](){const _0x3be500=_0x4ce73f;super[_0x3be500(0x23e)](),this[_0x3be500(0x360)](),this[_0x3be500(0x333)]=[],this[_0x3be500(0x19a)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x3be500(0x419)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x416ee2,_0x273603){const _0x249ddc=_0x4ce73f;for(let _0x27d9d1=0x0;_0x27d9d1<0x1e;_0x27d9d1++)try{if(await this[_0x249ddc(0x311)](),this[_0x249ddc(0x39d)]()){this[_0x249ddc(0x384)](_0x416ee2,_0x273603),this[_0x249ddc(0x18e)]['show']({'content':this[_0x249ddc(0x254)]['t'](_0x249ddc(0x40d)),'type':p[_0x249ddc(0x21b)][_0x249ddc(0x267)]});return;}await new Promise(_0xad60dd=>{const _0x33b2d4=_0x249ddc;this[_0x33b2d4(0x290)]=window['setTimeout'](_0xad60dd,0x3e8);});}catch(_0x16b363){this['_logService']['error'](_0x16b363);}this[_0x249ddc(0x18e)][_0x249ddc(0x188)]({'content':this[_0x249ddc(0x254)]['t'](_0x249ddc(0x1e7)),'type':p['MessageType'][_0x249ddc(0x2a6)]});}[_0x4ce73f(0x384)](_0x42e2c3,_0x1c283e){const _0x1323a3=_0x4ce73f;try{this[_0x1323a3(0x3f3)]['executeCommand'](_0x42e2c3['id'],_0x42e2c3[_0x1323a3(0x223)],_0x1c283e);}catch(_0x1909d8){this['_logService'][_0x1323a3(0x38a)](_0x1909d8);}}['_setFormulaLimitStatus'](_0x4a8023,_0x46dd5e){const _0x9369c5=_0x4ce73f;_0x46dd5e<this[_0x9369c5(0x419)]||(this['_lastResponseTimestamp']=_0x46dd5e,this[_0x9369c5(0x366)]=Number['parseInt'](_0x4a8023['maxFormulaLimit']),this['_currentUsage']=Number[_0x9369c5(0x375)](_0x4a8023[_0x9369c5(0x20d)]));}async[_0x4ce73f(0x3e2)](_0x2f2414){const _0x4068bb=_0x4ce73f;var _0x308c5b,_0x5f4ede;const _0x45acf5=Date[_0x4068bb(0x33e)]();try{const _0x64c421=((_0x308c5b=this[_0x4068bb(0x17b)][_0x4068bb(0x23d)](u[_0x4068bb(0x1c7)]))==null?void 0x0:_0x308c5b['startFormulaLimitUrl'])||ss,_0x29310c=(await this[_0x4068bb(0x3d6)][_0x4068bb(0x15d)](_0x64c421,{'body':JSON[_0x4068bb(0x365)]({'taskId':_0x2f2414})}))[_0x4068bb(0x24a)];if(((_0x5f4ede=_0x29310c[_0x4068bb(0x38a)])==null?void 0x0:_0x5f4ede['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x29310c[_0x4068bb(0x173)],_0x45acf5);}catch(_0x75db97){this[_0x4068bb(0x2e8)][_0x4068bb(0x38a)](_0x75db97);}}async[_0x4ce73f(0x311)](_0x47f9c0){const _0x2eb4b2=_0x4ce73f;var _0x7f5e9,_0x514c17;const _0x2835dd=Date['now']();try{const _0x1f3c24=((_0x7f5e9=this['_configService'][_0x2eb4b2(0x23d)](u[_0x2eb4b2(0x1c7)]))==null?void 0x0:_0x7f5e9[_0x2eb4b2(0x1f3)])||ts,_0x548ff0=_0x47f9c0?_0x1f3c24+'?taskId='+encodeURIComponent(_0x47f9c0):_0x1f3c24,_0x15de19=(await this['_httpService'][_0x2eb4b2(0x3fd)](_0x548ff0))['body'];if(((_0x514c17=_0x15de19['error'])==null?void 0x0:_0x514c17[_0x2eb4b2(0x215)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x15de19[_0x2eb4b2(0x173)],_0x2835dd);}catch(_0x393adb){this[_0x2eb4b2(0x2e8)][_0x2eb4b2(0x38a)](_0x393adb);}}async['_releaseCalculationLimit'](_0x12df29){const _0x4574d4=_0x4ce73f;var _0x296cf1,_0x299ed3;const _0x4b32da=Date[_0x4574d4(0x33e)]();try{const _0x54df42=((_0x296cf1=this[_0x4574d4(0x17b)][_0x4574d4(0x23d)](u[_0x4574d4(0x1c7)]))==null?void 0x0:_0x296cf1[_0x4574d4(0x14d)])||is,_0x4b5f4a=(await this['_httpService'][_0x4574d4(0x15d)](_0x54df42,{'body':JSON[_0x4574d4(0x365)]({'taskId':_0x12df29})}))[_0x4574d4(0x24a)];if(((_0x299ed3=_0x4b5f4a['error'])==null?void 0x0:_0x299ed3['code'])!==G['OK'])return;this[_0x4574d4(0x28e)](_0x4b5f4a[_0x4574d4(0x173)],_0x4b32da);}catch(_0x21d47d){this[_0x4574d4(0x2e8)][_0x4574d4(0x38a)](_0x21d47d);}}[_0x4ce73f(0x39d)](){const _0x41a26f=_0x4ce73f;return this[_0x41a26f(0x366)]===0x0?!0x0:this[_0x41a26f(0x366)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x352759=_0x4ce73f;this[_0x352759(0x290)]&&(clearTimeout(this['_pollingInterval']),this[_0x352759(0x290)]=null);}[_0x4ce73f(0x385)](){const _0x15c084=_0x4ce73f;this[_0x15c084(0x18e)][_0x15c084(0x188)]({'content':this[_0x15c084(0x254)]['t']('formula.calculation.waiting'),'type':p[_0x15c084(0x21b)][_0x15c084(0x271)]});}[_0x4ce73f(0x36f)](_0x322847){const _0x3ed92e=_0x4ce73f;for(const _0x426a57 of _0x322847){const {unitId:_0x221ac0,sheetId:_0x27bf69,range:_0x3e5397}=_0x426a57,_0xeb3e2e=this[_0x3ed92e(0x1c3)][_0x3ed92e(0x16b)](_0x221ac0);if(!_0xeb3e2e)continue;const _0x222fb2=_0xeb3e2e[_0x3ed92e(0x1a1)](_0x27bf69);if(!_0x222fb2)continue;const _0x53aefb=_0x222fb2['getCellMatrix']();for(let _0x4cecb1=_0x3e5397['startRow'];_0x4cecb1<=_0x3e5397[_0x3ed92e(0x2fe)];_0x4cecb1++)for(let _0x447889=_0x3e5397[_0x3ed92e(0x1e8)];_0x447889<=_0x3e5397[_0x3ed92e(0x219)];_0x447889++){const _0x289449=_0x53aefb['getValue'](_0x4cecb1,_0x447889);if(_0x289449&&(a[_0x3ed92e(0x345)](_0x289449['f'])||a['isFormulaId'](_0x289449['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4ce73f(0x1ef)](O[_0x4ce73f(0x230)])),L(0x1,a['ICommandService']),L(0x2,a[_0x4ce73f(0x2b9)]),L(0x3,a[_0x4ce73f(0x1ef)](x[_0x4ce73f(0x39b)])),L(0x4,a[_0x4ce73f(0x2c6)]),L(0x5,a[_0x4ce73f(0x409)]),L(0x6,a[_0x4ce73f(0x1ef)](a[_0x4ce73f(0x3ac)]))],ne);var ns=Object[_0x4ce73f(0x3c3)],rs=(_0x1239c0,_0x4b9739,_0x3e6bf8,_0xe28b47)=>{const _0x43ef73=_0x4ce73f;for(var _0x5e65eb=_0xe28b47>0x1?void 0x0:_0xe28b47?ns(_0x4b9739,_0x3e6bf8):_0x4b9739,_0x1ebf6e=_0x1239c0[_0x43ef73(0x1a7)]-0x1,_0x1b8e50;_0x1ebf6e>=0x0;_0x1ebf6e--)(_0x1b8e50=_0x1239c0[_0x1ebf6e])&&(_0x5e65eb=_0x1b8e50(_0x5e65eb)||_0x5e65eb);return _0x5e65eb;},Se=(_0x41f649,_0x18ec72)=>(_0x2f07aa,_0x3cdb52)=>_0x18ec72(_0x2f07aa,_0x3cdb52,_0x41f649);let Te=class extends a[_0x4ce73f(0x3b9)]{constructor(_0x1f4fa0,_0x48195b,_0x244e36){const _0x53e351=_0x4ce73f;super(),_(this,_0x53e351(0x3ef),new Map()),_(this,_0x53e351(0x36b),new Map()),_(this,_0x53e351(0x1d4),!0x1),(this['_configService']=_0x1f4fa0,this[_0x53e351(0x2e1)]=_0x48195b,this[_0x53e351(0x27c)]=_0x244e36);}[_0x4ce73f(0x3a6)](){const _0x3f1004=_0x4ce73f;this[_0x3f1004(0x1d4)]=!0x0;}[_0x4ce73f(0x28f)](){const _0x6d8254=_0x4ce73f;this[_0x6d8254(0x1d4)]=!0x1;}get[_0x4ce73f(0x27e)](){return this['_saveTaskMap'];}[_0x4ce73f(0x23e)](){const _0x12a96f=_0x4ce73f;this[_0x12a96f(0x20e)]()[_0x12a96f(0x397)](()=>super[_0x12a96f(0x23e)]());}async['loadOfflineData'](_0x464d1d){const _0x574a64=_0x4ce73f;return this[_0x574a64(0x1d4)]?null:this[_0x574a64(0x2e1)][_0x574a64(0x39e)](u['getLocalCacheKey'](_0x464d1d));}async['saveOfflineData'](_0x1aa33d,_0x52aa98){const _0x20f629=_0x4ce73f;return!!this[_0x20f629(0x2e1)][_0x20f629(0x180)](_0x1aa33d,_0x52aa98);}[_0x4ce73f(0x412)](_0x15db96,_0x3753ca,_0x1c363f,_0x2190ae){const _0x4485f6=_0x4ce73f,_0x245e50=this[_0x4485f6(0x27c)][_0x4485f6(0x1c1)](_0x15db96);this[_0x4485f6(0x3ef)][_0x4485f6(0x1d7)](_0x15db96,{'unitID':_0x15db96,'type':_0x3753ca,'awaitingChangeset':_0x1c363f,'mutations':_0x2190ae,'rev':_0x245e50}),this[_0x4485f6(0x36b)][_0x4485f6(0x1ae)](_0x15db96)||this[_0x4485f6(0x2f7)](_0x15db96);}[_0x4ce73f(0x2f7)](_0x272c39){const _0x5412b2=_0x4ce73f,_0x48d31e=this[_0x5412b2(0x2c1)]();_0x48d31e===0x0?this[_0x5412b2(0x1cf)](_0x272c39):this['_saveTaskMap']['set'](_0x272c39,setTimeout(()=>this['_saveCache'](_0x272c39),_0x48d31e));}[_0x4ce73f(0x2c1)](){const _0x402138=_0x4ce73f;var _0x36495d;return(_0x36495d=this[_0x402138(0x17b)][_0x402138(0x23d)](u[_0x402138(0x3ca)]))!=null?_0x36495d:u[_0x402138(0x368)];}[_0x4ce73f(0x1cf)](_0x3df903){const _0x38b191=_0x4ce73f,_0x640832=this[_0x38b191(0x36b)][_0x38b191(0x3fd)](_0x3df903);return _0x640832!==void 0x0&&window[_0x38b191(0x2d6)](_0x640832),this[_0x38b191(0x2e1)]['setItem'](u['getLocalCacheKey'](_0x3df903),this[_0x38b191(0x3ef)][_0x38b191(0x3fd)](_0x3df903))[_0x38b191(0x397)](()=>this['_saveTaskMap'][_0x38b191(0x382)](_0x3df903));}async[_0x4ce73f(0x20e)](){const _0xa1774a=_0x4ce73f,_0x45a8e3=[];this[_0xa1774a(0x36b)][_0xa1774a(0x18f)]((_0x41e557,_0x30728f)=>{const _0x3cdb83=_0xa1774a;window[_0x3cdb83(0x2d6)](_0x41e557),_0x45a8e3[_0x3cdb83(0x2dd)](this[_0x3cdb83(0x1cf)](_0x30728f)['then'](()=>{const _0x2af6b4=_0x3cdb83;this[_0x2af6b4(0x36b)][_0x2af6b4(0x382)](_0x30728f);}));}),await Promise[_0xa1774a(0x38f)](_0x45a8e3);}};Te=rs([Se(0x0,a[_0x4ce73f(0x2b9)]),Se(0x1,a[_0x4ce73f(0x3aa)]),Se(0x2,a[_0x4ce73f(0x1ef)](g[_0x4ce73f(0x3ee)]))],Te);class ke extends a[_0x4ce73f(0x3b2)]{constructor(){const _0x20b0fb=_0x4ce73f;super(),_(this,_0x20b0fb(0x2ca)),this[_0x20b0fb(0x2ca)]=I[_0x20b0fb(0x34d)](window,_0x20b0fb(0x2b7))[_0x20b0fb(0x211)](I[_0x20b0fb(0x15f)](this[_0x20b0fb(0x202)]),I[_0x20b0fb(0x302)](0x1),I[_0x20b0fb(0x36a)](void 0x0));}[_0x4ce73f(0x169)](_0x523a6b,_0x145284,_0x30c7b7=!0x1){const _0x45e683=_0x4ce73f,_0x1b3fac=new URL(window['location'][_0x45e683(0x3d1)]);_0x1b3fac[_0x45e683(0x3a1)][_0x45e683(0x1d7)](_0x523a6b,_0x145284),_0x30c7b7?window[_0x45e683(0x30d)][_0x45e683(0x334)]('','',_0x1b3fac['toString']()):window[_0x45e683(0x30d)][_0x45e683(0x307)]('','',_0x1b3fac['toString']());}[_0x4ce73f(0x17a)](_0x333c31,_0x292fdf=!0x1){const _0x5f1907=_0x4ce73f,_0x40d511=new URL(window['location'][_0x5f1907(0x3d1)]);_0x40d511[_0x5f1907(0x3a1)][_0x5f1907(0x382)](_0x333c31),_0x292fdf?window[_0x5f1907(0x30d)][_0x5f1907(0x334)]('','',_0x40d511[_0x5f1907(0x231)]()):window[_0x5f1907(0x30d)]['pushState']('','',_0x40d511[_0x5f1907(0x231)]());}[_0x4ce73f(0x3f7)](_0x43ff2a){const _0x4cddd2=_0x4ce73f;var _0x2ccc45;return(_0x2ccc45=new URL(window['location'][_0x4cddd2(0x3d1)])[_0x4cddd2(0x3a1)][_0x4cddd2(0x3fd)](_0x43ff2a))!=null?_0x2ccc45:void 0x0;}}var os=Object['defineProperty'],as=Object['getOwnPropertyDescriptor'],cs=(_0x39199a,_0x4743fb,_0x246a62)=>_0x4743fb in _0x39199a?os(_0x39199a,_0x4743fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x246a62}):_0x39199a[_0x4743fb]=_0x246a62,ls=(_0x462e84,_0x58f4bd,_0x3ee7cf,_0x2798fa)=>{for(var _0x960b2=_0x2798fa>0x1?void 0x0:_0x2798fa?as(_0x58f4bd,_0x3ee7cf):_0x58f4bd,_0x4d6375=_0x462e84['length']-0x1,_0x515db5;_0x4d6375>=0x0;_0x4d6375--)(_0x515db5=_0x462e84[_0x4d6375])&&(_0x960b2=_0x515db5(_0x960b2)||_0x960b2);return _0x960b2;},de=(_0xb8e9b3,_0x8afab2)=>(_0x25d129,_0x3ad895)=>_0x8afab2(_0x25d129,_0x3ad895,_0xb8e9b3),_s=(_0x3acd3f,_0x336af7,_0x257621)=>cs(_0x3acd3f,_0x336af7+'',_0x257621);const hs=_0x4ce73f(0x1a4);exports[_0x4ce73f(0x21d)]=class extends a[_0x4ce73f(0x32b)]{constructor(_0xea31c3=Me,_0xfc1975,_0x547674,_0x440b11){const _0x59a29c=_0x4ce73f;super(),this[_0x59a29c(0x153)]=_0xea31c3,this[_0x59a29c(0x225)]=_0xfc1975,this[_0x59a29c(0x274)]=_0x547674,this[_0x59a29c(0x17b)]=_0x440b11;const {..._0xb42fc4}=a[_0x59a29c(0x26c)]({},Me,this['_config']);this[_0x59a29c(0x17b)][_0x59a29c(0x2b5)](Yt,_0xb42fc4);}[_0x4ce73f(0x2cc)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x4ce73f(0x3cd)](){const _0x5e358e=_0x4ce73f;this[_0x5e358e(0x27b)]();}[_0x4ce73f(0x2d5)](){const _0x50d97d=_0x4ce73f;var _0xb29e26;const _0x2014a0=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x50d97d(0x309)],{'useClass':x[_0x50d97d(0x1e6)]}],[u[_0x50d97d(0x28b)],{'useClass':Te}],[exports[_0x50d97d(0x283)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this['_config'][_0x50d97d(0x1bf)]&&_0x2014a0['push']([Q]),a[_0x50d97d(0x276)](this[_0x50d97d(0x274)],a[_0x50d97d(0x154)](_0x2014a0,(_0xb29e26=this['_config'])==null?void 0x0:_0xb29e26[_0x50d97d(0x2ec)]));}[_0x4ce73f(0x27b)](){const _0x4968de=_0x4ce73f;this[_0x4968de(0x381)](this['_renderManagerService']['registerRenderModule'](a[_0x4968de(0x33f)][_0x4968de(0x1c2)],[Ee])),this[_0x4968de(0x381)](this[_0x4968de(0x225)][_0x4968de(0x3c2)](a[_0x4968de(0x33f)][_0x4968de(0x250)],[Ce]));}[_0x4ce73f(0x305)](){const _0xa7d5f3=_0x4ce73f;a['touchDependencies'](this[_0xa7d5f3(0x274)],[[F],[exports[_0xa7d5f3(0x283)]],[ie],[Z],[exports[_0xa7d5f3(0x322)]],[ne]]),this['_config'][_0xa7d5f3(0x1bf)]&&a[_0xa7d5f3(0x37c)](this[_0xa7d5f3(0x274)],[[Q]]);}},_s(exports[_0x4ce73f(0x21d)],_0x4ce73f(0x17e),hs),exports[_0x4ce73f(0x21d)]=ls([a[_0x4ce73f(0x33b)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x4ce73f(0x30c)]),de(0x2,a[_0x4ce73f(0x1ef)](a[_0x4ce73f(0x16c)])),de(0x3,a[_0x4ce73f(0x2b9)])],exports[_0x4ce73f(0x21d)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x34a896,_0x1a4083,_0x40768b,_0x354255)=>{const _0x56a809=_0x4ce73f;for(var _0x4b9092=_0x354255>0x1?void 0x0:_0x354255?us(_0x1a4083,_0x40768b):_0x1a4083,_0x1acb7c=_0x34a896[_0x56a809(0x1a7)]-0x1,_0x1fb0c6;_0x1acb7c>=0x0;_0x1acb7c--)(_0x1fb0c6=_0x34a896[_0x1acb7c])&&(_0x4b9092=_0x1fb0c6(_0x4b9092)||_0x4b9092);return _0x4b9092;},W=(_0x512d82,_0x380894)=>(_0x21a69c,_0x25648c)=>_0x380894(_0x21a69c,_0x25648c,_0x512d82);exports[_0x4ce73f(0x281)]=class extends u[_0x4ce73f(0x37f)]{constructor(_0x69a839,_0x24a797,_0x3c37a7,_0x1e9a4e,_0x2928f8){super(_0x69a839,_0x24a797,_0x3c37a7,_0x1e9a4e,_0x2928f8);}async[_0x4ce73f(0x356)](_0xb410e9){const _0x1deb87=_0x4ce73f,_0x454f2a=await this[_0x1deb87(0x2c3)](),_0x310b93=this[_0x1deb87(0x1b8)](_0xb410e9,_0x454f2a);return this[_0x1deb87(0x1d8)](_0x310b93);}[_0x4ce73f(0x1b8)](_0x5b95a1,_0x3cd626){const _0x5ec74a=_0x4ce73f,_0x270675=typeof window>'u'?new URL(_0x5b95a1):new URL(_0x5b95a1,window[_0x5ec74a(0x336)][_0x5ec74a(0x1b0)]);_0x270675[_0x5ec74a(0x3a1)][_0x5ec74a(0x1d7)](_0x5ec74a(0x220),_0x3cd626);const _0x17ba29=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5ec74a(0x336)][_0x5ec74a(0x1fb)]);return _0x17ba29[_0x5ec74a(0x3fd)]('runId')&&_0x270675[_0x5ec74a(0x3a1)][_0x5ec74a(0x1d7)](_0x5ec74a(0x298),_0x17ba29[_0x5ec74a(0x3fd)](_0x5ec74a(0x298))),_0x270675[_0x5ec74a(0x231)]();}async[_0x4ce73f(0x2c3)](){const _0x4595ce=_0x4ce73f;var _0x34e64f,_0x21d1cb,_0xa863c5;const _0x1a74fd=this[_0x4595ce(0x17b)][_0x4595ce(0x23d)](u[_0x4595ce(0x1c7)]),_0xb3d262=(_0x34e64f=_0x1a74fd==null?void 0x0:_0x1a74fd[_0x4595ce(0x21a)])!=null?_0x34e64f:u[_0x4595ce(0x411)];return(_0xa863c5=(_0x21d1cb=(await this['_httpService']['get'](_0xb3d262,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x21d1cb['ticket'])!=null?_0xa863c5:'';}},exports[_0x4ce73f(0x281)]=Is([W(0x0,a[_0x4ce73f(0x1ef)](a[_0x4ce73f(0x16c)])),W(0x1,a[_0x4ce73f(0x1ef)](x[_0x4ce73f(0x39b)])),W(0x2,a[_0x4ce73f(0x2b9)]),W(0x3,a['ILogService']),W(0x4,g[_0x4ce73f(0x374)])],exports[_0x4ce73f(0x281)]);var Ss=Object[_0x4ce73f(0x3c3)],ds=(_0x5b418c,_0x17cae4,_0x16bdbf,_0x1f4526)=>{const _0x42ef20=_0x4ce73f;for(var _0x3d1934=_0x1f4526>0x1?void 0x0:_0x1f4526?Ss(_0x17cae4,_0x16bdbf):_0x17cae4,_0x257276=_0x5b418c[_0x42ef20(0x1a7)]-0x1,_0x23aadd;_0x257276>=0x0;_0x257276--)(_0x23aadd=_0x5b418c[_0x257276])&&(_0x3d1934=_0x23aadd(_0x3d1934)||_0x3d1934);return _0x3d1934;},fe=(_0x475413,_0x24d9e5)=>(_0x4ab612,_0x2f0541)=>_0x24d9e5(_0x4ab612,_0x2f0541,_0x475413);exports[_0x4ce73f(0x33c)]=class extends a['Disposable']{constructor(_0x18206f,_0x334dbc,_0x172fc9){const _0x4f599e=_0x4ce73f;super(),this[_0x4f599e(0x20f)]=_0x18206f,this['_httpService']=_0x334dbc,this['_configService']=_0x172fc9;}async[_0x4ce73f(0x3ed)](_0x1b375d,_0x34cb64,_0x5141fe,..._0xaeac42){const _0x16fa41=_0x4ce73f;var _0xe29e42,_0x3a8a18,_0x47713d,_0x4ce3b3;const _0x583a39=this[_0x16fa41(0x20f)][_0x16fa41(0x177)]();if(!_0x583a39)throw new Error(_0x16fa41(0x206));const _0x2611a9=((_0xe29e42=this['_configService'][_0x16fa41(0x23d)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0xe29e42:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1b375d+_0x16fa41(0x347)+_0x34cb64,_0x29aa31=new URL(window[_0x16fa41(0x336)]['href']),_0x27c5f0={'scriptId':_0x1b375d,'runId':(_0x3a8a18=_0x29aa31[_0x16fa41(0x3a1)][_0x16fa41(0x3fd)](_0x16fa41(0x298)))!=null?_0x3a8a18:'','function':_0x34cb64,'unitId':_0x583a39[_0x16fa41(0x207)](),'argsOfFunction':JSON[_0x16fa41(0x365)](_0xaeac42),'invokeId':(_0x47713d=_0x5141fe['invokeId'])!=null?_0x47713d:'','executionId':(_0x4ce3b3=_0x5141fe[_0x16fa41(0x3ea)])!=null?_0x4ce3b3:''};try{const _0x434e91=await this[_0x16fa41(0x3d6)][_0x16fa41(0x15d)](_0x2611a9,{'body':_0x27c5f0});return _0x434e91[_0x16fa41(0x24a)][_0x16fa41(0x38a)]&&_0x434e91[_0x16fa41(0x24a)]['error'][_0x16fa41(0x215)]!==G['OK']?_0x16fa41(0x246):_0x434e91[_0x16fa41(0x24a)][_0x16fa41(0x3a7)];}catch{return _0x16fa41(0x246);}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x4ce73f(0x2c6)]),fe(0x1,a[_0x4ce73f(0x1ef)](x['HTTPService'])),fe(0x2,a[_0x4ce73f(0x2b9)])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0x4ce73f(0x19c);class fs extends a['Disposable']{constructor(){const _0x299a36=_0x4ce73f;super(),_(this,_0x299a36(0x247),a['generateRandomId']()),_(this,_0x299a36(0x1b6),new Set()),_(this,_0x299a36(0x395),new Map()),_(this,_0x299a36(0x33d),null),_(this,_0x299a36(0x33a),new Map()),_(this,_0x299a36(0x23f),new Map()),this[_0x299a36(0x3dd)]();}['dispose'](){const _0x167a79=_0x4ce73f;super[_0x167a79(0x23e)](),this[_0x167a79(0x33a)][_0x167a79(0x18f)]((_0x4a19ad,_0x5c55bc)=>this['_removeClearOtherTimer'](_0x5c55bc)),this['_heartbeatTimer']&&window[_0x167a79(0x233)](this[_0x167a79(0x33d)]);}['getUnitStatus$'](_0x57c7d0){const _0x36f7fb=_0x4ce73f;return this[_0x36f7fb(0x189)](_0x57c7d0)[_0x36f7fb(0x211)](I[_0x36f7fb(0x193)]());}['editingUnit'](_0x5d1019){const _0x2e138a=_0x4ce73f;this[_0x2e138a(0x1b6)][_0x2e138a(0x3c9)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2e138a(0x1b6)]['add'](_0x5d1019),this[_0x2e138a(0x3a4)]({'type':0x0,'memberID':this[_0x2e138a(0x247)],'unitIDs':[_0x5d1019],'isForwarded':!0x1});}[_0x4ce73f(0x2d2)](_0x1a7a2b){const _0x30ee02=_0x4ce73f;this['_selfUnitIDs']['delete'](_0x1a7a2b),this[_0x30ee02(0x1b6)][_0x30ee02(0x3c9)]===0x0&&this[_0x30ee02(0x33d)]&&window['clearInterval'](this[_0x30ee02(0x33d)]);}[_0x4ce73f(0x3dd)](){const _0x5ad4d4=_0x4ce73f;this[_0x5ad4d4(0x381)](a[_0x5ad4d4(0x2b2)](I[_0x5ad4d4(0x34d)](window,_0x5ad4d4(0x3a2))[_0x5ad4d4(0x17d)](_0x2ffb41=>{const _0x32a519=_0x5ad4d4;if(_0x2ffb41[_0x32a519(0x3e6)]!==ye||!_0x2ffb41['newValue'])return;const _0x336bb7=JSON[_0x32a519(0x313)](_0x2ffb41[_0x32a519(0x20a)]);this['_handleEvent'](_0x336bb7);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x5ad4d4(0x247)],'unitIDs':Array['from'](this[_0x5ad4d4(0x1b6)])}));}[_0x4ce73f(0x1fd)](_0x25de3f){const _0x40be26=_0x4ce73f;switch(_0x25de3f[_0x40be26(0x25d)]){case 0x0:this[_0x40be26(0x1b4)](_0x25de3f);break;case 0x1:this['_handleLeaveEvent'](_0x25de3f);break;case 0x2:this['_handleHeartbeatEvent'](_0x25de3f);break;}}['_handleJoinEvent'](_0x2ed4e1){const _0x189c9f=_0x4ce73f,{unitIDs:_0x4cc1e1,memberID:_0x10eebf,isForwarded:_0x28cc1b}=_0x2ed4e1;_0x4cc1e1[_0x189c9f(0x18f)](_0x354b5b=>{const _0x194bdc=_0x189c9f;if(!_0x28cc1b&&this[_0x194bdc(0x395)]['has'](_0x354b5b)&&this['_ensureSubject'](_0x354b5b)[_0x194bdc(0x38b)](u[_0x194bdc(0x26d)][_0x194bdc(0x2c4)]),!this[_0x194bdc(0x395)][_0x194bdc(0x1ae)](_0x354b5b)||!this[_0x194bdc(0x395)]['get'](_0x354b5b)[_0x194bdc(0x1ae)](_0x10eebf)){const _0x5de80d=this[_0x194bdc(0x395)][_0x194bdc(0x3fd)](_0x354b5b)||new Set();_0x5de80d[_0x194bdc(0x25e)](_0x10eebf),this[_0x194bdc(0x395)][_0x194bdc(0x1d7)](_0x354b5b,_0x5de80d),this[_0x194bdc(0x18d)](_0x10eebf);}}),_0x28cc1b||this[_0x189c9f(0x3a4)]({'type':0x0,'memberID':this[_0x189c9f(0x247)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4ce73f(0x18d)](_0x1ff6c0){const _0x1da520=_0x4ce73f;this['_removeClearOtherTimer'](_0x1ff6c0);const _0x2f9e68=window[_0x1da520(0x25a)](()=>{const _0x146568=_0x1da520;this[_0x146568(0x395)][_0x146568(0x18f)](_0x20df81=>{const _0xf57130=_0x146568;_0x20df81[_0xf57130(0x382)](_0x1ff6c0);});},we*0x2);this[_0x1da520(0x33a)][_0x1da520(0x1d7)](_0x1ff6c0,_0x2f9e68);}['_removeClearOtherTimer'](_0x55699e){const _0xdfd542=_0x4ce73f;if(this[_0xdfd542(0x33a)][_0xdfd542(0x1ae)](_0x55699e)){const _0x325af7=this[_0xdfd542(0x33a)]['get'](_0x55699e);_0x325af7&&window[_0xdfd542(0x2d6)](_0x325af7),this[_0xdfd542(0x33a)]['set'](_0x55699e,null);}}[_0x4ce73f(0x35d)](_0x76a363){const _0x357749=_0x4ce73f,{memberID:_0x15945f,unitIDs:_0x50f5b8}=_0x76a363;_0x50f5b8[_0x357749(0x18f)](_0x40c9b5=>{const _0x28d1eb=_0x357749;var _0xaecb49;const _0x2bd687=this[_0x28d1eb(0x395)][_0x28d1eb(0x3fd)](_0x40c9b5);_0x2bd687&&(_0x2bd687['delete'](_0x15945f),(_0xaecb49=this[_0x28d1eb(0x189)](_0x40c9b5))==null||_0xaecb49[_0x28d1eb(0x38b)](_0x2bd687[_0x28d1eb(0x3c9)]===0x0?u[_0x28d1eb(0x26d)]['NO_OTHER_CLIENTS_EDITING']:u[_0x28d1eb(0x26d)][_0x28d1eb(0x2c4)]));}),this[_0x357749(0x269)](_0x15945f);}[_0x4ce73f(0x319)](_0x51dcec){const _0x1a891f=_0x4ce73f;this[_0x1a891f(0x18d)](_0x51dcec[_0x1a891f(0x29a)]);}[_0x4ce73f(0x3a4)](_0x3d53eb){const _0x3f9740=_0x4ce73f;localStorage[_0x3f9740(0x180)](ye,JSON[_0x3f9740(0x365)](_0x3d53eb));}[_0x4ce73f(0x2bb)](){const _0x5ee458=_0x4ce73f;this[_0x5ee458(0x33d)]=window[_0x5ee458(0x3bd)](()=>{const _0x532223=_0x5ee458;this[_0x532223(0x3a4)]({'type':0x2,'memberID':this['_id']});},we);}['_ensureSubject'](_0x5190ae){const _0x108299=_0x4ce73f;return this['_unitStatus']['has'](_0x5190ae)||this[_0x108299(0x23f)]['set'](_0x5190ae,new I[(_0x108299(0x373))](u[_0x108299(0x26d)][_0x108299(0x210)])),this[_0x108299(0x23f)][_0x108299(0x3fd)](_0x5190ae);}}exports[_0x4ce73f(0x1a5)]=Oe,exports[_0x4ce73f(0x14e)]=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x4ce73f(0x255)]=ke;
|