@univerjs-pro/collaboration-client-ui 0.10.10 → 0.10.11
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/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/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/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 +7 -0
- package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +38 -0
- package/lib/types/services/formula-calculation-guard/util.d.ts +11 -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/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 +19 -19
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2b7a47=_0x4a18;(function(_0x1249b3,_0x5f5236){const _0x342b0b=_0x4a18,_0x10f052=_0x1249b3();while(!![]){try{const _0x2b76c5=-parseInt(_0x342b0b(0xf9))/0x1+-parseInt(_0x342b0b(0xfc))/0x2+-parseInt(_0x342b0b(0xfa))/0x3+parseInt(_0x342b0b(0xfe))/0x4*(-parseInt(_0x342b0b(0xf7))/0x5)+-parseInt(_0x342b0b(0xfd))/0x6+parseInt(_0x342b0b(0xf8))/0x7+parseInt(_0x342b0b(0x100))/0x8;if(_0x2b76c5===_0x5f5236)break;else _0x10f052['push'](_0x10f052['shift']());}catch(_0x2733e0){_0x10f052['push'](_0x10f052['shift']());}}}(_0x5523,0x30000));function _0x5523(){const _0x6e3070=['1717565KxHFkl','2709784rikkSh','368300YhjZub','348837qvIkHS','extend','765070cLtNXK','2229564SFRbKm','4elfuRF','_injector','11133736NnzHZz','runOnServer'];_0x5523=function(){return _0x6e3070;};return _0x5523();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');function _0x4a18(_0x30f2fa,_0x326d7d){const _0x552305=_0x5523();return _0x4a18=function(_0x4a18ff,_0x36b3ae){_0x4a18ff=_0x4a18ff-0xf6;let _0x4d89ef=_0x552305[_0x4a18ff];return _0x4d89ef;},_0x4a18(_0x30f2fa,_0x326d7d);}class c extends e['FUniver']{['runOnServer'](_0x509f32,_0x355d8b,..._0x16b209){const _0x39ea5d=_0x4a18;return this[_0x39ea5d(0xff)]['get'](t['RemoteUniscriptService'])[_0x39ea5d(0xf6)](_0x509f32,_0x355d8b,{},..._0x16b209);}}e['FUniver'][_0x2b7a47(0xfb)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x554f52=_0xd284;(function(_0x3d03b4,_0x730b49){const _0xcf0081=_0xd284,_0x5e0c40=_0x3d03b4();while(!![]){try{const _0x4e3b8f=parseInt(_0xcf0081(0x1ef))/0x1+parseInt(_0xcf0081(0x234))/0x2+-parseInt(_0xcf0081(0x1a8))/0x3+-parseInt(_0xcf0081(0x158))/0x4*(-parseInt(_0xcf0081(0x316))/0x5)+-parseInt(_0xcf0081(0x327))/0x6*(parseInt(_0xcf0081(0x282))/0x7)+parseInt(_0xcf0081(0x3b3))/0x8+-parseInt(_0xcf0081(0x165))/0x9;if(_0x4e3b8f===_0x730b49)break;else _0x5e0c40['push'](_0x5e0c40['shift']());}catch(_0x1927c1){_0x5e0c40['push'](_0x5e0c40['shift']());}}}(_0x2068,0x4aa98));var We=Object['defineProperty'],Ve=(_0x5c8d1e,_0x5ca5ad,_0x53b565)=>_0x5ca5ad in _0x5c8d1e?We(_0x5c8d1e,_0x5ca5ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53b565}):_0x5c8d1e[_0x5ca5ad]=_0x53b565,h=(_0x15986e,_0x510cf5,_0x269405)=>Ve(_0x15986e,typeof _0x510cf5!=_0x554f52(0x3c5)?_0x510cf5+'':_0x510cf5,_0x269405);Object[_0x554f52(0x182)](exports,Symbol['toStringTag'],{'value':_0x554f52(0x1b4)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x12d491=_0x554f52;return b=Object[_0x12d491(0x1e5)]||function(_0x27b659){const _0x3ad6d0=_0x12d491;for(var _0x4469b0,_0x150cc5=0x1,_0x11b301=arguments['length'];_0x150cc5<_0x11b301;_0x150cc5++){_0x4469b0=arguments[_0x150cc5];for(var _0x12675d in _0x4469b0)Object[_0x3ad6d0(0x3c0)][_0x3ad6d0(0x31d)][_0x3ad6d0(0x2f9)](_0x4469b0,_0x12675d)&&(_0x27b659[_0x12675d]=_0x4469b0[_0x12675d]);}return _0x27b659;},b[_0x12d491(0x3c2)](this,arguments);},Ke=function(_0x420459,_0x4d5717){const _0x7b201f=_0x554f52;var _0x4d00c0={};for(var _0x52afa0 in _0x420459)Object[_0x7b201f(0x3c0)][_0x7b201f(0x31d)]['call'](_0x420459,_0x52afa0)&&_0x4d5717[_0x7b201f(0x1ab)](_0x52afa0)<0x0&&(_0x4d00c0[_0x52afa0]=_0x420459[_0x52afa0]);if(_0x420459!=null&&typeof Object[_0x7b201f(0x2eb)]==_0x7b201f(0x2b3)){for(var _0x35ad98=0x0,_0x52afa0=Object[_0x7b201f(0x2eb)](_0x420459);_0x35ad98<_0x52afa0['length'];_0x35ad98++)_0x4d5717[_0x7b201f(0x1ab)](_0x52afa0[_0x35ad98])<0x0&&Object[_0x7b201f(0x3c0)][_0x7b201f(0x37e)][_0x7b201f(0x2f9)](_0x420459,_0x52afa0[_0x35ad98])&&(_0x4d00c0[_0x52afa0[_0x35ad98]]=_0x420459[_0x52afa0[_0x35ad98]]);}return _0x4d00c0;},ge=M['forwardRef'](function(_0x2078be,_0x2e758a){const _0x40890c=_0x554f52;var _0x1f15a5=_0x2078be[_0x40890c(0x1e8)],_0x2e0861=_0x2078be['id'],_0x4f19e0=_0x2078be[_0x40890c(0x240)],_0x4497a8=_0x2078be['extend'],_0x28e349=Ke(_0x2078be,[_0x40890c(0x1e8),'id',_0x40890c(0x240),_0x40890c(0x278)]),_0x4f1791=_0x40890c(0x39d)[_0x40890c(0x325)](_0x2e0861,'\x20')['concat'](_0x4f19e0||'')[_0x40890c(0x15a)](),_0x1c3357=M[_0x40890c(0x28c)]('_'['concat'](Je()));return Pe(_0x1f15a5,''[_0x40890c(0x325)](_0x2e0861),{'defIds':_0x1f15a5[_0x40890c(0x26e)],'idSuffix':_0x1c3357[_0x40890c(0x1d0)]},b({'ref':_0x2e758a,'className':_0x4f1791},_0x28e349),_0x4497a8);});function Pe(_0x2fb3c2,_0x132988,_0xfc03f3,_0xfee030,_0x253f1f){const _0x22d8bd=_0x554f52;return M[_0x22d8bd(0x154)](_0x2fb3c2[_0x22d8bd(0x307)],b(b({'key':_0x132988},qe(_0x2fb3c2,_0xfc03f3,_0x253f1f)),_0xfee030),(ze(_0x2fb3c2,_0xfc03f3)[_0x22d8bd(0x2bf)]||[])[_0x22d8bd(0x1b3)](function(_0x56d2bc,_0x1d3d80){const _0x1f82fe=_0x22d8bd;return Pe(_0x56d2bc,''[_0x1f82fe(0x325)](_0x132988,'-')[_0x1f82fe(0x325)](_0x2fb3c2['tag'],'-')['concat'](_0x1d3d80),_0xfc03f3,void 0x0,_0x253f1f);}));}function qe(_0x3df5f9,_0x5848bb,_0xfe5781){const _0x1771ed=_0x554f52;var _0x7af0dd=b({},_0x3df5f9[_0x1771ed(0x348)]);_0xfe5781!=null&&_0xfe5781['colorChannel1']&&_0x7af0dd[_0x1771ed(0x356)]===_0x1771ed(0x310)&&(_0x7af0dd[_0x1771ed(0x356)]=_0xfe5781[_0x1771ed(0x310)]),_0x3df5f9[_0x1771ed(0x307)]===_0x1771ed(0x1b6)&&_0x7af0dd['id']&&(_0x7af0dd['id']=_0x7af0dd['id']+_0x5848bb['idSuffix']),Object['entries'](_0x7af0dd)[_0x1771ed(0x190)](function(_0x356f26){const _0x5cfe72=_0x1771ed;var _0xa6a92f=_0x356f26[0x0],_0x55105a=_0x356f26[0x1];_0xa6a92f===_0x5cfe72(0x1b6)&&typeof _0x55105a==_0x5cfe72(0x200)&&(_0x7af0dd[_0xa6a92f]=_0x55105a[_0x5cfe72(0x2b4)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x5848bb[_0x5cfe72(0x35c)],')')));});var _0x592c1f=_0x5848bb[_0x1771ed(0x26e)];return!_0x592c1f||_0x592c1f[_0x1771ed(0x2ed)]===0x0||(_0x3df5f9[_0x1771ed(0x307)]===_0x1771ed(0x3a9)&&_0x7af0dd['xlink:href']&&(_0x7af0dd[_0x1771ed(0x1ee)]=_0x7af0dd[_0x1771ed(0x1ee)]+_0x5848bb[_0x1771ed(0x35c)]),Object[_0x1771ed(0x34e)](_0x7af0dd)['forEach'](function(_0x42d380){const _0x6dba64=_0x1771ed;var _0x1dc2bf=_0x42d380[0x0],_0x1d4fc2=_0x42d380[0x1];typeof _0x1d4fc2==_0x6dba64(0x200)&&(_0x7af0dd[_0x1dc2bf]=_0x1d4fc2[_0x6dba64(0x2b4)](/url\(#(.*)\)/,_0x6dba64(0x18a)[_0x6dba64(0x325)](_0x5848bb[_0x6dba64(0x35c)],')')));})),_0x7af0dd;}function ze(_0x13344b,_0x51d2f1){const _0x1e6d12=_0x554f52;var _0x5ac8f7,_0x1020ce=_0x51d2f1[_0x1e6d12(0x26e)];return!_0x1020ce||_0x1020ce['length']===0x0?_0x13344b:_0x13344b[_0x1e6d12(0x307)]===_0x1e6d12(0x229)&&(!((_0x5ac8f7=_0x13344b['children'])===null||_0x5ac8f7===void 0x0)&&_0x5ac8f7[_0x1e6d12(0x2ed)])?b(b({},_0x13344b),{'children':_0x13344b[_0x1e6d12(0x2bf)][_0x1e6d12(0x1b3)](function(_0x1f9290){const _0x168f3f=_0x1e6d12;return typeof _0x1f9290[_0x168f3f(0x348)]['id']==_0x168f3f(0x200)&&_0x1020ce&&_0x1020ce[_0x168f3f(0x1c2)](_0x1f9290[_0x168f3f(0x348)]['id'])?b(b({},_0x1f9290),{'attrs':b(b({},_0x1f9290[_0x168f3f(0x348)]),{'id':_0x1f9290['attrs']['id']+_0x51d2f1[_0x168f3f(0x35c)]})}):_0x1f9290;})}):_0x13344b;}function Je(){const _0x4403bf=_0x554f52;return Math[_0x4403bf(0x381)]()['toString'](0x24)['substring'](0x2,0x8);}ge['displayName']=_0x554f52(0x1d9);var Ze={'tag':'svg','attrs':{'xmlns':_0x554f52(0x24b),'fill':_0x554f52(0x2ad),'viewBox':_0x554f52(0x382),'width':'1em','height':_0x554f52(0x2bd)},'children':[{'tag':'g','attrs':{'clipPath':_0x554f52(0x1a9)},'children':[{'tag':'path','attrs':{'stroke':_0x554f52(0x3b7),'d':_0x554f52(0x37a),'strokeLinecap':_0x554f52(0x20d),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x554f52(0x266),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x554f52(0x36e)}}]}]}],'defIds':[_0x554f52(0x2f1)]},we=M[_0x554f52(0x2c2)](function(_0x27eb5d,_0x349e31){const _0x14b78e=_0x554f52;return M[_0x14b78e(0x154)](ge,Object[_0x14b78e(0x1e5)]({},_0x27eb5d,{'id':'off-line-icon','ref':_0x349e31,'icon':Ze}));});we[_0x554f52(0x3bb)]=_0x554f52(0x1b7);var Qe={'tag':_0x554f52(0x288),'attrs':{'xmlns':_0x554f52(0x24b),'fill':_0x554f52(0x2ad),'viewBox':_0x554f52(0x203),'width':_0x554f52(0x2bd),'height':_0x554f52(0x2bd)},'children':[{'tag':'g','attrs':{'clipPath':_0x554f52(0x3aa)},'children':[{'tag':_0x554f52(0x27e),'attrs':{'stroke':_0x554f52(0x3b7),'d':_0x554f52(0x157),'strokeLinecap':_0x554f52(0x20d),'strokeLinejoin':_0x554f52(0x20d),'strokeWidth':1.2}}]},{'tag':_0x554f52(0x229),'attrs':{},'children':[{'tag':_0x554f52(0x266),'attrs':{'id':_0x554f52(0x2d6)},'children':[{'tag':_0x554f52(0x27e),'attrs':{'fill':'white','d':_0x554f52(0x36e),'transform':_0x554f52(0x2e3)}}]}]}],'defIds':[_0x554f52(0x2d6)]},Ae=M[_0x554f52(0x2c2)](function(_0x5e773a,_0x5808cf){const _0xe042b4=_0x554f52;return M[_0xe042b4(0x154)](ge,Object['assign']({},_0x5e773a,{'id':_0xe042b4(0x175),'ref':_0x5808cf,'icon':Qe}));});Ae['displayName']=_0x554f52(0x33a);function et(_0x5cc99b){const _0x1f7302=_0x554f52;switch(_0x5cc99b){case u[_0x1f7302(0x232)][_0x1f7302(0x1e1)]:return _0x1f7302(0x1c7);case u['CollaborationStatus'][_0x1f7302(0x36b)]:return _0x1f7302(0x247);case u[_0x1f7302(0x232)][_0x1f7302(0x1c0)]:return _0x1f7302(0x161);case u[_0x1f7302(0x232)][_0x1f7302(0x1d2)]:return'collabStatus.notCollab';case u[_0x1f7302(0x232)][_0x1f7302(0x2d1)]:case u[_0x1f7302(0x232)][_0x1f7302(0x2df)]:return'collabStatus.syncing';case u[_0x1f7302(0x232)][_0x1f7302(0x24e)]:case u[_0x1f7302(0x232)][_0x1f7302(0x306)]:return _0x1f7302(0x24f);}}function tt(_0x20dfcc){const _0x26b1bb=_0x554f52,{status$:_0x135a02}=_0x20dfcc,_0x300c94=O['useObservable'](_0x135a02,u[_0x26b1bb(0x232)][_0x26b1bb(0x1d2)]),_0x35b277=O['useDependency'](a[_0x26b1bb(0x22d)]),_0x1789d6=O[_0x26b1bb(0x373)](u[_0x26b1bb(0x2a9)]),_0x175450=_0x300c94!==u['CollaborationStatus'][_0x26b1bb(0x1e1)],_0x25e573=_0x35b277['t'](et(_0x300c94)),_0x564136=_0x175450?P[_0x26b1bb(0x1e7)](Ae,{}):P[_0x26b1bb(0x1e7)](we,{}),_0x1a2e5c=M[_0x26b1bb(0x38d)](()=>{const _0x4da8b8=_0x26b1bb;_0x175450||_0x1789d6[_0x4da8b8(0x389)]();},[_0x175450,_0x1789d6]);function _0x4a24de(){const _0x55fe1b=_0x26b1bb;return P[_0x55fe1b(0x1f0)](_0x55fe1b(0x1dd),{'className':_0x55fe1b(0x2f7),'onClick':_0x1a2e5c,'children':[P['jsx']('div',{'className':D['clsx'](_0x55fe1b(0x168),{'univer-text-green-500':_0x175450,'univer-text-red-500':!_0x175450}),'children':_0x564136}),P[_0x55fe1b(0x1e7)](_0x55fe1b(0x1dd),{'className':_0x55fe1b(0x31a),'children':_0x25e573})]});}return _0x175450?_0x4a24de():P['jsx'](D[_0x26b1bb(0x2f3)],{'title':_0x35b277['t'](_0x26b1bb(0x218)),'children':_0x4a24de()});}var st=Object[_0x554f52(0x22b)],it=(_0x1da271,_0x3b91fc,_0x4f2176,_0x48b563)=>{const _0x2741b0=_0x554f52;for(var _0x14869c=_0x48b563>0x1?void 0x0:_0x48b563?st(_0x3b91fc,_0x4f2176):_0x3b91fc,_0x1adc3c=_0x1da271[_0x2741b0(0x2ed)]-0x1,_0x44963e;_0x1adc3c>=0x0;_0x1adc3c--)(_0x44963e=_0x1da271[_0x1adc3c])&&(_0x14869c=_0x44963e(_0x14869c)||_0x14869c);return _0x14869c;},V=(_0x30bdfc,_0x439b2c)=>(_0x563f43,_0x486e33)=>_0x439b2c(_0x563f43,_0x486e33,_0x30bdfc);exports[_0x554f52(0x30c)]=class extends a[_0x554f52(0x243)]{constructor(_0x252b19,_0x1fcd90,_0x1adf66,_0x401007){const _0x28a597=_0x554f52;super(),h(this,_0x28a597(0x2db),new d['BehaviorSubject'](u[_0x28a597(0x232)][_0x28a597(0x1d2)])),(this[_0x28a597(0x18e)]=_0x252b19,this[_0x28a597(0x3a4)]=_0x1fcd90,this[_0x28a597(0x22a)]=_0x1adf66,this['_uiPartsService']=_0x401007,this[_0x28a597(0x1fc)](),this['_initStatusListener']());}[_0x554f52(0x215)](){const _0x367a43=_0x554f52;this['disposeWithMe'](this['_univerInstanceService'][_0x367a43(0x19a)][_0x367a43(0x279)](d[_0x367a43(0x2ff)](()=>{const _0x32bd55=_0x367a43,_0x4e467a=this[_0x32bd55(0x18e)][_0x32bd55(0x337)]();return _0x4e467a?this[_0x32bd55(0x22a)][_0x32bd55(0x296)](_0x4e467a[_0x32bd55(0x1fd)]()):d['of'](null);}),d['switchMap'](_0x28c052=>_0x28c052?_0x28c052['status$']:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x2cf53e=>{const _0x32c97e=_0x367a43;this['_status$'][_0x32c97e(0x357)](_0x2cf53e);}));}[_0x554f52(0x1fc)](){const _0x1d8a09=_0x554f52;this[_0x1d8a09(0x292)](this[_0x1d8a09(0x1f4)][_0x1d8a09(0x3ae)](O[_0x1d8a09(0x25a)][_0x1d8a09(0x259)],()=>O[_0x1d8a09(0x159)](nt({'status$':this[_0x1d8a09(0x2db)]['asObservable']()}),this[_0x1d8a09(0x3a4)])));}},exports[_0x554f52(0x30c)]=it([V(0x0,a[_0x554f52(0x1aa)]),V(0x1,a[_0x554f52(0x1ca)](a[_0x554f52(0x1eb)])),V(0x2,a[_0x554f52(0x1ca)](u[_0x554f52(0x2a0)])),V(0x3,O[_0x554f52(0x17c)])],exports[_0x554f52(0x30c)]);function nt(_0x466a5a){const {status$:_0x2ce0fc}=_0x466a5a;return function(){const _0xf61a58=_0xd284;return P[_0xf61a58(0x1e7)](tt,{'status$':_0x2ce0fc});};}const me=a[_0x554f52(0x164)](_0x554f52(0x395));var rt=Object[_0x554f52(0x22b)],ot=(_0x282857,_0x178b2a,_0x55ff84,_0x578c56)=>{const _0x1a0621=_0x554f52;for(var _0x401b71=_0x578c56>0x1?void 0x0:_0x578c56?rt(_0x178b2a,_0x55ff84):_0x178b2a,_0xaecb75=_0x282857[_0x1a0621(0x2ed)]-0x1,_0x5a1f85;_0xaecb75>=0x0;_0xaecb75--)(_0x5a1f85=_0x282857[_0xaecb75])&&(_0x401b71=_0x5a1f85(_0x401b71)||_0x401b71);return _0x401b71;},k=(_0x4da6c2,_0x377147)=>(_0x42ec02,_0xccb2ef)=>_0x377147(_0x42ec02,_0xccb2ef,_0x4da6c2);exports['CollaborationDataLoaderController']=class extends a[_0x554f52(0x32a)]{constructor(_0x3c647e,_0x27e8a6,_0xe69072,_0x5887a2,_0x1aa235){const _0x38cb28=_0x554f52;super(),this[_0x38cb28(0x210)]=_0x3c647e,this['_logService']=_0x27e8a6,this[_0x38cb28(0x262)]=_0xe69072,this[_0x38cb28(0x33b)]=_0x5887a2,_0x1aa235?_0x1aa235==null||_0x1aa235[_0x38cb28(0x314)]()['then'](()=>this[_0x38cb28(0x256)]()):(this[_0x38cb28(0x21c)]['debug']('[CollaborationDataLoaderController]',_0x38cb28(0x289)),this[_0x38cb28(0x256)]());}async[_0x554f52(0x256)](){const _0x383cbd=_0x554f52,_0x15ff9c=this['_urlService']['getParam'](_0x383cbd(0x31e)),_0x405e51=this['_urlService'][_0x383cbd(0x330)](_0x383cbd(0x172)),_0x4eaacc=this['_urlService'][_0x383cbd(0x330)]('subunit');if(!_0x15ff9c||!_0x405e51){this[_0x383cbd(0x21c)][_0x383cbd(0x29f)](_0x383cbd(0x3b4),_0x383cbd(0x1d1));return;}const _0x4a59be=await this['_dataLoaderService'][_0x383cbd(0x17e)](_0x15ff9c,Number(_0x405e51),_0x4eaacc);_0x4a59be&&_0x4a59be instanceof a['Workbook']&&this[_0x383cbd(0x2e7)](_0x4a59be);}async['_setupSubUnitSync'](_0x599068){const _0x503ebe=_0x554f52;await this['_updateSubUnitFromURLParams'](_0x599068),_0x599068[_0x503ebe(0x2ea)][_0x503ebe(0x279)](d[_0x503ebe(0x1d7)](this[_0x503ebe(0x1cc)]))[_0x503ebe(0x377)](_0xcd232c=>{_0xcd232c&&this['_updateURLWithCurrentState'](_0xcd232c);}),this[_0x503ebe(0x210)][_0x503ebe(0x174)][_0x503ebe(0x279)](d[_0x503ebe(0x1d7)](this['dispose$']))['subscribe'](()=>this[_0x503ebe(0x380)](_0x599068));}['_updateURLWithCurrentState'](_0x1a4a0e,_0x40e5ef=!0x1){const _0x4ae7e6=_0x554f52,_0x4c58a4=this[_0x4ae7e6(0x210)][_0x4ae7e6(0x330)](_0x4ae7e6(0x152));_0x1a4a0e[_0x4ae7e6(0x2ba)]()!==_0x4c58a4&&this[_0x4ae7e6(0x210)][_0x4ae7e6(0x207)](_0x4ae7e6(0x152),_0x1a4a0e[_0x4ae7e6(0x2ba)](),_0x40e5ef);}async['_updateSubUnitFromURLParams'](_0x47c325){const _0xe9dfb1=_0x554f52;var _0x2acf46;const _0x195e52=this[_0xe9dfb1(0x210)][_0xe9dfb1(0x330)](_0xe9dfb1(0x152));if(!_0x195e52||!_0x47c325[_0xe9dfb1(0x3c6)](_0x195e52)){const _0x213692=_0x47c325['getUnhiddenWorksheets']()[0x0],_0x5bab1f=_0x47c325[_0xe9dfb1(0x3c6)](_0x213692);if(!_0x5bab1f)return;this['_updateURLWithCurrentState'](_0x5bab1f,!0x0),await this[_0xe9dfb1(0x262)][_0xe9dfb1(0x1f7)](g[_0xe9dfb1(0x26a)]['id'],{'unitId':_0x47c325[_0xe9dfb1(0x1fd)](),'subUnitId':_0x213692});return;}((_0x2acf46=_0x47c325['getActiveSheet']())==null?void 0x0:_0x2acf46[_0xe9dfb1(0x2ba)]())!==_0x195e52&&await this[_0xe9dfb1(0x262)]['executeCommand'](g[_0xe9dfb1(0x26a)]['id'],{'unitId':_0x47c325[_0xe9dfb1(0x1fd)](),'subUnitId':_0x195e52});}},exports[_0x554f52(0x156)]=ot([k(0x0,me),k(0x1,a['ILogService']),k(0x2,a[_0x554f52(0x36c)]),k(0x3,a[_0x554f52(0x1ca)](u['DataLoaderService'])),k(0x4,a[_0x554f52(0x193)](Xe[_0x554f52(0x39c)]))],exports[_0x554f52(0x156)]);var at=Object['getOwnPropertyDescriptor'],ct=(_0x1164e2,_0x252754,_0x1847e8,_0x4b8508)=>{for(var _0x2877c0=_0x4b8508>0x1?void 0x0:_0x4b8508?at(_0x252754,_0x1847e8):_0x252754,_0x41bbd2=_0x1164e2['length']-0x1,_0x35a893;_0x41bbd2>=0x0;_0x41bbd2--)(_0x35a893=_0x1164e2[_0x41bbd2])&&(_0x2877c0=_0x35a893(_0x2877c0)||_0x2877c0);return _0x2877c0;},be=(_0x2fa05d,_0x118ee3)=>(_0x52349d,_0xa2cbfd)=>_0x118ee3(_0x52349d,_0xa2cbfd,_0x2fa05d);let ue=class extends a[_0x554f52(0x32a)]{constructor(_0x1567a3,_0x324dfb){const _0x24ab91=_0x554f52;super(),this[_0x24ab91(0x26c)]=_0x1567a3,this[_0x24ab91(0x2b0)]=_0x324dfb,this[_0x24ab91(0x256)]();}[_0x554f52(0x256)](){const _0x1ad043=_0x554f52,_0x437193=this;this[_0x1ad043(0x292)](this['_docClipboardService'][_0x1ad043(0x399)]({'onBeforePasteImage':async _0x56c38d=>{const _0xf620ef=_0x1ad043,_0x2e712e=await _0x437193[_0xf620ef(0x2b0)]['saveImage'](_0x56c38d);return _0x2e712e?{'source':_0x2e712e[_0xf620ef(0x312)],'imageSourceType':_0x2e712e[_0xf620ef(0x3ac)]}:null;}}));}};ue=ct([be(0x0,E[_0x554f52(0x2d3)]),be(0x1,Ge[_0x554f52(0x17f)])],ue);const Oe=[_0x554f52(0x186),_0x554f52(0x3c1),_0x554f52(0x28a),_0x554f52(0x32f),_0x554f52(0x1c1),_0x554f52(0x3a8)];class Ce extends a[_0x554f52(0x243)]{constructor(){const _0x23e86e=_0x554f52;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x23e86e(0x1b8),0x0);}[_0x554f52(0x25d)](_0x4561f7){const _0x438921=_0x554f52;if(this[_0x438921(0x2e5)][_0x438921(0x20e)](_0x4561f7))return this[_0x438921(0x2e5)][_0x438921(0x2e8)](_0x4561f7);const _0x570569=Oe[this['_colorIndex']];return this[_0x438921(0x1b8)]=(this[_0x438921(0x1b8)]+0x1)%Oe[_0x438921(0x2ed)],this[_0x438921(0x2e5)][_0x438921(0x2a8)](_0x4561f7,_0x570569),_0x570569;}}function ye(_0x125018){const _0x171774=_0x554f52;let _0x5866eb='';for(const _0x46c568 of _0x125018){const {startOffset:_0x55ac41,endOffset:_0x25ae33,isActive:_0x3ba223,rangeType:_0x2cccd3,segmentId:_0x97aef2,segmentPage:_0x39ba28}=_0x46c568;_0x5866eb[_0x171774(0x2ed)]&&(_0x5866eb+=','),_0x5866eb+=_0x55ac41+':'+_0x25ae33+':'+(_0x3ba223?'1':'0')+':'+_0x2cccd3+':'+_0x97aef2+':'+_0x39ba28;}return _0x5866eb;}function lt(_0xad4ca){const _0xe4a5d8=_0x554f52,_0x436cba=_0xad4ca['split'](','),_0x28b5bb=[];for(const _0x5943e3 of _0x436cba){const [_0x2c14c3,_0x1663df,_0x4f341c,_0x18d8f0,_0x2bd6fb,_0x48f7d3]=_0x5943e3[_0xe4a5d8(0x212)](':');_0x28b5bb['push']({'startOffset':Number(_0x2c14c3),'endOffset':Number(_0x1663df),'collapsed':_0x2c14c3===_0x1663df,'isActive':_0x4f341c==='1','rangeType':_0x18d8f0===a[_0xe4a5d8(0x24a)][_0xe4a5d8(0x33e)]?a[_0xe4a5d8(0x24a)][_0xe4a5d8(0x33e)]:a[_0xe4a5d8(0x24a)][_0xe4a5d8(0x2c9)],'segmentId':typeof _0x2bd6fb==_0xe4a5d8(0x200)?String(_0x2bd6fb):'','segmentPage':Number(_0x48f7d3!=null?_0x48f7d3:-0x1)});}return _0x28b5bb[_0xe4a5d8(0x1a5)](_0x50f466=>_0x50f466[_0xe4a5d8(0x290)])||(_0x28b5bb[0x0][_0xe4a5d8(0x290)]=!0x0),_0x28b5bb;}function _0x2068(){const _0x187d28=['_online','MOBILE_VERIFY_CODE_MISMATCH','_getSheetObject','_uiPartsService','TOO_MANY_REQUESTS','session.collaboration-timeout','executeCommand','entityInit$','YUUMI_RATE_OVER_LIMIT','transformMutationsWithChangeset','_onRefRangeChange','_initStatusComponent','getUnitId','_hideTimer','_collabSessionService','string','save','lineTo','0\x200\x2017\x2016','LOCAL_CACHE_INTERVAL_KEY','flatMap','_onCursorUpdate','setParam','syncEditingCollabCursor','_initDependencies','_roomMembers$','redoState','CollaborationUIEventId','round','has','with','_urlService','getLocalCacheKey','split','SHEET_VIEWPORT_KEY','collab-text-range-','_initStatusListener','UPDATE_CURSOR','toString','collab-client.tooltip.reconnect','unshift','YUUMI_TABLE_NOT_FOUND_IN_UNIT','mutations','_logService','dispose','find','width','ISnapshotServerService','INTERNAL_ERROR','cursorInfo','LICENSE_IMPORT_SIZE_EXCEEDED','APPLY_DUPLICATED','setAlpha','merge','rgba(255,\x20255,\x20255,\x200.01)','SNAPSHOT_INVALID_SNAPSHOT','defs','_collaborationController','getOwnPropertyDescriptor','WebURLService','LocaleService','params','CollaborationEvent','_selfUnitIDs','getActiveRange','CollaborationStatus','delete','582344TXTDxn','startColumn','APPLY_REJECT','_memberService','triggerDblclick','getViewport','_notificationService','ITransformService','_docSyncEditingCollabCursorService','_localStorageService','_color','application/json','className','handleInsertCol','subUnitId','Disposable','closePath','clearTimeout','IConfigService','collabStatus.conflict','IRenderManagerService','addObjects','DOC_RANGE_TYPE','http://www.w3.org/2000/svg','_textBubble','_labelPosition','SYNCED','collabStatus.synced','onPointerEnter$','startsWith','LOGIN_FAILED','black','_instanceService','result','_init','_initCommandExecutedListener','debounceTime','HEADER_MENU','BuiltInUIPart','_docTransformIMECacheService','_entityInit$','assignAColorForMemberID','updateOfflineData','_transformPreviousActiveRange','contains','UNIVER_SHEET','_commandService','LOCAL_CACHE_INTERVAL','getCoordByCell','pushState','clipPath','fromEventSubject','_configService','INVITE_CODE_HAS_BEEN_UES','SetWorksheetActivateCommand','_id','_docClipboardService','_hover','defIds','onCommandExecuted','_getScale','getTypeOfUnitDisposed$','RemoveColCommandId','getOffsetConfig','search','top','RichTextEditingMutation','name','extend','pipe','YUUMI_URL_COL_OUT_OF_RANGE','SetDocZoomRatioOperation','_initResize','ThemeService','path','_createSocketURL','_getMergeRange','getVpScrollXYInfoByPosToVp','497jfyznH','_anchorDot','Plugin','onPointerMove$','_updateCollabCursors','getMergeData','svg','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','green.600','getConfig','useRef','setInterval','RevisionService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','isActive','ONLINE','disposeWithMe','_send','_transformUndoRedoStack','textRanges','getCollabEntity$','getRenderById','beginPath','_scene','getItem','_docTransformStateCacheService','Unknown\x20user','PY_RUNTIME_SCRIPT_ERROR','InsertRangeMoveRightCommandId','debug','CollaborationController','getTypeOfUnitAdded$','_registerDependencies','CONNECTOR_DATA_TOO_LARGE','transform','_handleHeartbeatEvent','collaboration.closeRoom','filter','set','CollaborationSessionService','_transformService','makeDirty','toDisposable','none','data','_updateLocalCursor','_imageIoService','key','onTransformChange$','function','replace','_setupBeforeClosingHandler','Warning','YUUMI_NO_CUBOID_FOR_QUESTION','location','MOBILE_HAS_BEEN_BOUND','getSheetId','unitId','INVITE_CODE_REQUIRED','1em','_toggleOffline','children','RefRangeService','roomMembers$','forwardRef','actions','_drawAnchor','DisposableCollection','SNAPSHOT_HAS_BEEN_REMOVED','getCurrentUnitForType','unload','RECT','min','onMouseMove','_eventUnsubscribe','m2Prime','SOCKET_FAILED','_backgroundColor','setTimeout','AWAITING','_hovered','IDocClipboardService','_drawTextRange','deserializeRangeWithSheet','on-line-icon_clip0_910_349','_clearOtherTimers','cursorInfo$','collaboration-client.offline-data-not-saved','_initEvent','_status$','unsubscribe','getUnitStatus$','labelPosition','AWAITING_WITH_PENDING','collab-text-anchor-','VIEW_MAIN','color','translate(.97)','ranges','_assignedColors','_session','_setupSubUnitSync','get','touchDependencies','activeSheet$','getOwnPropertySymbols','getMember','length','UNDEFINED','RemoteUniscriptService','session.will-retry','off-line-icon_clip0_910_343','_initEntityListener','Tooltip','measureText','UnitStatus','transformStateCache','univer-flex\x20univer-items-center','setItem','call','NO_OTHER_CLIENTS_EDITING','_collabCursorState$','fillText','bottom','range','switchMap','text','_onCursorDelete','values','getStateCache','fromEvent','roomMembers','PENDING','tag','_disabled','_messageService','serializeRangeWithSheet','PERMISSION_DENIED','DesktopCollaborationStatusDisplayController','createSocket','collaboration-client-ui.config','_sheetSkeletonManagerService','colorChannel1','transformRemoteChangeset','source','registerRefRange','whenReady','createInstance','185FPfXRw','collaboration.single-unit.warning','TEXT_RANGE_LAYER_INDEX','getActiveSheet','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','font','Vector2','hasOwnProperty','unit','UniverCollaborationClientUIPlugin','complete','LICENSE_EXPORT_SIZE_EXCEEDED','_refreshCollabCursors','UNRECOGNIZED','then','concat','push','7494nYCCzG','_config','skeleton','RxDisposable','parse','_lastPointer','USERS_LEAVE','event$','red.300','getParam','UniverInstanceType','transformIMECache','INotificationService','_scheduleSaving','UNIVER_DOC','DeleteRangeMoveLeftCommandId','getFocusedUnit','_cachedData','EffectRefRangId','OnLineIcon','_dataLoaderService','searchParams','WECHAT_HAS_BEEN_BOUND','TEXT','Subject','transformMutation','getValue','_syncEditingCollabCursorService','isTransformMutationFailure','findNodePositionByCharIndex','YUUMI_SUBSCRIPTION_NOT_FOUND','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','height','attrs','NodePositionConvertToRectRange','from','registerRenderModule','Failed','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','entries','undoState','_removeCollabCursors','_registerRenderDependencies','_scheduleClearOtherTimer','body','InsertRangeMoveDownCommandId','combineLatest','fill','next','permission.title','generateRandomId','YUUMI_CONNECTOR_URL_NOT_FOUND','_entities','idSuffix','_localCacheService','getUndoRedoMutationParamsCache','...','_unitOnClients','_context','onPointerLeave$','deepClone','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_heartbeatTimer','ILocalCacheService','column','/run/','Tools','getCurrentRevOfUnit','CONFLICT','ICommandService','getDocRanges','M0\x200H16V16H0z','_saveTaskMap','asObservable','_colorAssignService','_render','useDependency','INVALID_INVITE_CODE','throttleTime','memberID','subscribe','OTHER_CLIENTS_EDITING','_getSaveTimeout','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','_cursors','_saveCache','YUUMI_ASYNCIO_CANCELLED','propertyIsEnumerable','_collabCursorController','_updateSubUnitFromURLParams','random','0\x200\x2016\x2016','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','doc.mutation.rich-text-editing','IMessageService','RemoveRowCommandId','getCurrentSelections','href','reconnect','_getSessionTicket','Error','Rect','useCallback','_anchor','sheetID','getCellPositionByOffset','LICENSE_DISTRO_REJECTED','_handleJoinEvent','stringify','NodePositionConvertToCursor','uni.network.url-service','_docTransformSelectionsService','isTransformMutationsWithChangesetSuccess','MessageType','addClipboardHook','sessionTicket','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','IRemoteInstanceService','univerjs-icon\x20univerjs-icon-','mapTo','getRangePointData','SessionStatus','evenodd','disableLocalCache','_beforeCloseService','_injector','removeParam','row','TRANSFORM_CHANGE_OBSERVABLE_TYPE','yellow.400','use','url(#on-line-icon_clip0_910_349)','collabCursorState$','imageSourceType','collab-rect-range-','registerComponent','_collaborationUIEventService','popstate','_docSkeletonManagerService','sessionStatus$','4030920bRROuU','[CollaborationDataLoaderController]','getSkeleton','UniverCollaborationClientPlugin','currentColor','requireSession','ticket','origin','displayName','setStateCache','YUUMI_UNABLE_LOAD_URL','_localeService','_httpService','prototype','jiqing.500','apply','_unitStatus','_handleEvent','symbol','getSheetBySheetId','YUUMI_ALL_TABLES_IS_INVALID','unitID','LICENSE_MAX_UNITS_EXCEEDED','HTTPService','m1Prime','getColor','endColumn','[RemoteUniscriptService]:\x20no\x20focused\x20unit','CollaborationUIEventService','runId','subunit','currentSkeleton$','createElement','ILogService','CollaborationDataLoaderController','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','59380PAUOhQ','connectInjector','trim','getCurrent','selection','_transformHistoryAndStateStack','setShapeProps','eventID','isEditing','collabStatus.fetchMiss','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','pluginName','createIdentifier','10606068afdaSe','_drawRectRange','CHANGESET_REVISION_CONFILICT','univer-mr-2\x20univer-flex\x20univer-text-xl','_startDocCollabCursor','#FFF','_docStateChangeManagerService','_shapes','clearInterval','toRgbString','_toggleOnline','show','arc','type','addObject','urlChange$','on-line-icon','DocIMEInputManagerService','_ensureSubject','_cursor','INVITE_CODE_ALREADY_BOUND','editingUnit','handleIRemoveRow','IUIPartsService','BehaviorSubject','loadUnit','IImageIoService','transformSelections','getMemberID','defineProperty','history','EMAIL_VERIFY_CODE_MISMATCH','size','purple.300','loadOfflineData','distinctUntilChanged','WebSocketService','url(#$1','FromArray','saveOfflineData','INVALID_ARGUMENT','_univerInstanceService','fillStyle','forEach','ColorKit','moveTo','Optional','_doCreateSocket','wsSessionTicketUrl','_cursorShapes','EMAIL_HAS_BEEN_BOUND','RegularPolygon','ISocketService','focused$','YUUMI_AI_RUN_FAILED','_cursorInfo$','init','DocStateChangeManagerService','APPLY_NON_SEQUENTIAL_REVISION','engine','DocSkeletonManagerService','_themeService','_startSheetCollabCursor','mergeOverrideWithDependencies','some','_name','MemberService','804417GsWGoh','url(#off-line-icon_clip0_910_343)','IUniverInstanceService','indexOf','USER_NOT_INVITED_CODE','saveTaskMap','_handleHover','currentTheme$','exhaustSavingTask','hide','runOnServer','map','Module','_range','mask','OffLineIcon','_colorIndex','handleInsertRow','handleMoveRange','enableLocalCache','docStateChange$','_document','add','_removeClearOtherTimer','FETCH_MISS','blue.400','includes','IBeforeCloseService','COLORS','IURLService','debounce','collabStatus.offline','error','replaceState','Inject','_revisionService','dispose$','COMPLETION_FINISHED','isArray','onStarting','current','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','NOT_COLLAB','restore','OTHER_CLIENT_EDITING','subscribeEvent','NOT_FOUND','takeUntil','ENSURE_SNAPSHOT_EXECUTION','UniverIcon','setConfig','_renderManagerService','SheetCollabCursorShape','div','SOCKET_FAILED_RETRY','newValue','_getAnchorBounding','OFFLINE','APPLY_REVISION_CONFILICT','_draw','drawWith','assign','SetTextSelectionsOperation','jsx','icon','DocCollaborationEntity','BrowserCollaborationSocketService','Injector','resize','WebBrowserSingleActiveUnitService','xlink:href','496784MRCLgI','jsxs'];_0x2068=function(){return _0x187d28;};return _0x2068();}class pe extends a[_0x554f52(0x32a)]{constructor(){const _0x5e85c7=_0x554f52;super(...arguments),h(this,'_collabCursorState$',new d[(_0x5e85c7(0x17d))](null)),h(this,_0x5e85c7(0x3ab),this[_0x5e85c7(0x2fb)][_0x5e85c7(0x370)]());}[_0x554f52(0x208)](_0x688e63){const _0x321136=_0x554f52,{unitID:_0x508b92,memberID:_0x4814ac,textRanges:_0x2a4771}=_0x688e63,_0xfffadb=ye(_0x2a4771);if(_0xfffadb==='')return;const _0x545e92={'unitID':_0x508b92,'memberID':_0x4814ac,'selection':_0xfffadb};this[_0x321136(0x2fb)][_0x321136(0x357)](_0x545e92);}}var _t=Object[_0x554f52(0x22b)],ht=(_0x4dfb32,_0x37a44c,_0x2a0e78,_0xc84dbe)=>{const _0x5c5764=_0x554f52;for(var _0x3e4713=_0xc84dbe>0x1?void 0x0:_0xc84dbe?_t(_0x37a44c,_0x2a0e78):_0x37a44c,_0x4b0d91=_0x4dfb32[_0x5c5764(0x2ed)]-0x1,_0x30a5f0;_0x4b0d91>=0x0;_0x4b0d91--)(_0x30a5f0=_0x4dfb32[_0x4b0d91])&&(_0x3e4713=_0x30a5f0(_0x3e4713)||_0x3e4713);return _0x3e4713;},L=(_0x504f25,_0x3fcc80)=>(_0xd45450,_0x35681d)=>_0x3fcc80(_0xd45450,_0x35681d,_0x504f25);const ut=0x12c,dt=0x64;let de=class extends a[_0x554f52(0x32a)]{constructor(_0x43aba7,_0x229253,_0x1b3054,_0x45b8ec,_0x20a95b,_0x4d6ada,_0x8c177,_0x4cea3f,_0x3a11a8){const _0x1115fb=_0x554f52;super(),h(this,'_online',!0x1),h(this,_0x1115fb(0x256),!0x1),h(this,_0x1115fb(0x19c),new d['BehaviorSubject'](new Map())),h(this,_0x1115fb(0x2d8),this[_0x1115fb(0x19c)][_0x1115fb(0x370)]()),h(this,_0x1115fb(0x20a),new d[(_0x1115fb(0x17d))]([])),h(this,'roomMembers$',this['_roomMembers$']['pipe'](d['debounceTime'](ut))),h(this,_0x1115fb(0x2af),a[_0x1115fb(0x1c6)](_0x48b2cf=>{const _0x723c30=_0x1115fb,_0x19835b={'eventID':m[_0x723c30(0x22f)][_0x723c30(0x216)],'data':{'unitID':this[_0x723c30(0x3c8)],'memberID':this[_0x723c30(0x2e6)][_0x723c30(0x181)](),'selection':ye(_0x48b2cf)}};this[_0x723c30(0x2e6)]['send'](_0x19835b,this['unitID']);},dt)),(this['unitID']=_0x43aba7,this[_0x1115fb(0x2e6)]=_0x229253,this[_0x1115fb(0x3a4)]=_0x1b3054,this['_colorAssignService']=_0x45b8ec,this[_0x1115fb(0x237)]=_0x20a95b,this[_0x1115fb(0x342)]=_0x4d6ada,this[_0x1115fb(0x2aa)]=_0x8c177,this['_univerInstanceService']=_0x4cea3f,this[_0x1115fb(0x262)]=_0x3a11a8);}get[_0x554f52(0x222)](){const _0xbab2bf=_0x554f52;return this[_0xbab2bf(0x19c)][_0xbab2bf(0x341)]();}get[_0x554f52(0x305)](){const _0x177202=_0x554f52;return this[_0x177202(0x20a)]['getValue']();}['dispose'](){const _0x416b94=_0x554f52;super[_0x416b94(0x21d)](),this['_cursorInfo$'][_0x416b94(0x357)](new Map()),this['_cursorInfo$'][_0x416b94(0x320)](),this[_0x416b94(0x20a)]['next']([]),this[_0x416b94(0x20a)][_0x416b94(0x320)]();}[_0x554f52(0x19d)](){const _0x5dfab5=_0x554f52;this[_0x5dfab5(0x256)]||(this[_0x5dfab5(0x256)]=!0x0,this[_0x5dfab5(0x2e6)][_0x5dfab5(0x3b2)][_0x5dfab5(0x279)](d['takeUntil'](this[_0x5dfab5(0x1cc)]))['subscribe'](_0x2243db=>{const _0x196871=_0x5dfab5;_0x2243db===u[_0x196871(0x3a0)]['ONLINE']?this['_toggleOnline']():this[_0x196871(0x2be)]();}),this['_session'][_0x5dfab5(0x32e)][_0x5dfab5(0x279)](d[_0x5dfab5(0x1d7)](this[_0x5dfab5(0x1cc)]))[_0x5dfab5(0x377)](_0x5e0d9d=>{const _0x162eea=_0x5dfab5,_0x8a12fa=_0x5e0d9d[_0x162eea(0x15f)];_0x8a12fa===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x162eea(0x206)](_0x5e0d9d),_0x8a12fa===m['CollaborationEvent'][_0x162eea(0x32d)]&&this[_0x162eea(0x301)](_0x5e0d9d);}),this[_0x5dfab5(0x292)](this[_0x5dfab5(0x262)][_0x5dfab5(0x26f)](_0x255e58=>{const _0x2e4ebf=_0x5dfab5,_0x20ecfc=_0x255e58[_0x2e4ebf(0x22e)];_0x20ecfc!=null&&this[_0x2e4ebf(0x1f1)]&&_0x255e58['id']===Y[_0x2e4ebf(0x1e6)]['id']&&_0x20ecfc[_0x2e4ebf(0x2bb)]===this['unitID']&&_0x20ecfc[_0x2e4ebf(0x160)]===!0x1&&_0x20ecfc[_0x2e4ebf(0x2e4)]['length']>0x0&&this['_updateLocalCursor'](_0x20ecfc['ranges']);})),this[_0x5dfab5(0x342)][_0x5dfab5(0x3ab)][_0x5dfab5(0x279)](d[_0x5dfab5(0x1d7)](this[_0x5dfab5(0x1cc)]))['subscribe'](_0x48228d=>{const _0x3c4a3a=_0x5dfab5;if((_0x48228d==null?void 0x0:_0x48228d[_0x3c4a3a(0x3c8)])!==this[_0x3c4a3a(0x3c8)])return;const _0x3c4cbb={'eventID':m[_0x3c4a3a(0x22f)][_0x3c4a3a(0x216)],'data':_0x48228d};this[_0x3c4a3a(0x206)](_0x3c4cbb);}),this[_0x5dfab5(0x292)](this['_commandService'][_0x5dfab5(0x26f)](_0x2a96b7=>{const _0xf3e104=_0x5dfab5;if(_0x2a96b7[_0xf3e104(0x22e)]==null)return;const _0x474c52=_0x2a96b7[_0xf3e104(0x22e)];if(_0x2a96b7['id']!==Y[_0xf3e104(0x276)]['id']||_0x474c52['unitId']!==this[_0xf3e104(0x3c8)])return;const _0x34c96d={'id':_0xf3e104(0x384),'params':_0x474c52},_0x2d3866=this['cursorInfo'];for(const [_0x2ec874,_0x59eb98]of _0x2d3866){const _0x5984cf={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xf3e104(0x3c8)],'actions':null,'textRanges':_0x59eb98[_0xf3e104(0x2e4)]}},_0x5396b3=this['_transformService'][_0xf3e104(0x340)](_0x34c96d,_0x5984cf,!0x1);if(m[_0xf3e104(0x343)](_0x5396b3))throw _0x5396b3['error'];_0x2d3866['set'](_0x2ec874,{..._0x59eb98,'ranges':_0x5396b3['m2Prime'][_0xf3e104(0x22e)][_0xf3e104(0x295)]});}queueMicrotask(()=>{const _0x2ff543=_0xf3e104;this[_0x2ff543(0x19c)]['next'](_0x2d3866);});})));}['_onCursorUpdate'](_0x22233f){const _0x563398=_0x554f52;var _0x1e46d2,_0x420339;const {memberID:_0x34e387,selection:_0x2f7f3c}=_0x22233f[_0x563398(0x2ae)],_0x3f49b7=lt(_0x2f7f3c),_0x6aa385=(_0x420339=(_0x1e46d2=this[_0x563398(0x237)][_0x563398(0x2ec)](this[_0x563398(0x3c8)],_0x34e387))==null?void 0x0:_0x1e46d2[_0x563398(0x277)])!=null?_0x420339:_0x563398(0x29c),_0x9636dc={'color':this['_colorAssignService'][_0x563398(0x25d)](_0x34e387),'name':_0x6aa385,'ranges':_0x3f49b7},_0x43be08=this[_0x563398(0x222)];_0x43be08[_0x563398(0x2a8)](_0x34e387,_0x9636dc),this[_0x563398(0x19c)][_0x563398(0x357)](_0x43be08);}[_0x554f52(0x301)](_0x50000b){const _0x1d49b0=_0x554f52,{memberID:_0x5148b9}=_0x50000b[_0x1d49b0(0x2ae)],_0x5330d0=this['cursorInfo'];_0x5330d0[_0x1d49b0(0x233)](_0x5148b9),this['_cursorInfo$']['next'](_0x5330d0);}[_0x554f52(0x16f)](){const _0x3a84f1=_0x554f52;var _0x29a396;if(this[_0x3a84f1(0x1f1)]=!0x0,((_0x29a396=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x29a396[_0x3a84f1(0x1fd)]())!==this[_0x3a84f1(0x3c8)])return;const _0x2aa846=this[_0x3a84f1(0x3a4)][_0x3a84f1(0x2e8)](Y['DocSelectionManagerService'])[_0x3a84f1(0x36d)]();Array[_0x3a84f1(0x1ce)](_0x2aa846)&&_0x2aa846[_0x3a84f1(0x2ed)]>0x0&&this['_updateLocalCursor'](_0x2aa846);}['_toggleOffline'](){const _0x309176=_0x554f52;this[_0x309176(0x1f1)]=!0x1;}};de=ht([L(0x2,a[_0x554f52(0x1ca)](a[_0x554f52(0x1eb)])),L(0x3,a[_0x554f52(0x1ca)](Ce)),L(0x4,a[_0x554f52(0x1ca)](u[_0x554f52(0x1a7)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x554f52(0x23b)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x554f52(0x36c)])],de);var St=Object['getOwnPropertyDescriptor'],ft=(_0x3fd0b8,_0x3b5650,_0x57f63f,_0x2cb41c)=>{const _0x29026c=_0x554f52;for(var _0x225a63=_0x2cb41c>0x1?void 0x0:_0x2cb41c?St(_0x3b5650,_0x57f63f):_0x3b5650,_0xe273d7=_0x3fd0b8[_0x29026c(0x2ed)]-0x1,_0x4e29cf;_0xe273d7>=0x0;_0xe273d7--)(_0x4e29cf=_0x3fd0b8[_0xe273d7])&&(_0x225a63=_0x4e29cf(_0x225a63)||_0x225a63);return _0x225a63;},A=(_0x2fe733,_0x33681a)=>(_0x3066ce,_0x23cf72)=>_0x33681a(_0x3066ce,_0x23cf72,_0x2fe733);const It=0x12c,vt=0x64,gt=()=>{let _0x3d3cf3=[],_0xb31d29=!0x1;return _0x55e2f0=>{const _0x14aca0=_0xd284;_0x3d3cf3[_0x14aca0(0x326)](_0x55e2f0),_0xb31d29||(_0xb31d29=!0x0,setTimeout(()=>{const _0x402892=_0x14aca0;_0x3d3cf3[_0x402892(0x190)](_0xf1b461=>_0xf1b461()),_0x3d3cf3=[],_0xb31d29=!0x1;}));};};let Se=class extends a[_0x554f52(0x32a)]{constructor(_0x5620dd,_0x9de0f2,_0x3c4be1,_0x5f04fa,_0x344768,_0x286c2c,_0x24947a,_0x1a8863){const _0x5a11f1=_0x554f52;super(),h(this,_0x5a11f1(0x1f1),!0x1),h(this,'_init',!0x1),h(this,_0x5a11f1(0x19c),new d[(_0x5a11f1(0x17d))](new Map())),h(this,_0x5a11f1(0x2d8),this[_0x5a11f1(0x19c)][_0x5a11f1(0x370)]()),h(this,'_roomMembers$',new d[(_0x5a11f1(0x17d))]([])),h(this,_0x5a11f1(0x2c1),this[_0x5a11f1(0x20a)]['pipe'](d[_0x5a11f1(0x258)](It))),h(this,_0x5a11f1(0x2af),a[_0x5a11f1(0x1c6)]((_0x689688,_0x5d3ef4)=>{const _0x5a0309=_0x5a11f1,_0x4a637c={'eventID':m[_0x5a0309(0x22f)][_0x5a0309(0x216)],'data':{'unitID':this[_0x5a0309(0x3c8)],'memberID':this[_0x5a0309(0x2e6)][_0x5a0309(0x181)](),'selection':Ee[_0x5a0309(0x30a)](_0x689688,_0x5d3ef4[_0x5a0309(0x2fe)])}};this[_0x5a0309(0x2e6)]['send'](_0x4a637c,this[_0x5a0309(0x3c8)]);},vt)),(this[_0x5a11f1(0x3c8)]=_0x5620dd,this[_0x5a11f1(0x2e6)]=_0x9de0f2,this[_0x5a11f1(0x3a4)]=_0x3c4be1,this[_0x5a11f1(0x371)]=_0x5f04fa,this[_0x5a11f1(0x237)]=_0x344768,this[_0x5a11f1(0x18e)]=_0x286c2c,this[_0x5a11f1(0x262)]=_0x24947a,this['_refRangeService']=_0x1a8863);}get[_0x554f52(0x222)](){const _0x412dfa=_0x554f52;return this[_0x412dfa(0x19c)][_0x412dfa(0x341)]();}get[_0x554f52(0x305)](){return this['_roomMembers$']['getValue']();}[_0x554f52(0x21d)](){const _0x3ef62d=_0x554f52;super[_0x3ef62d(0x21d)](),this[_0x3ef62d(0x19c)][_0x3ef62d(0x357)](new Map()),this[_0x3ef62d(0x19c)][_0x3ef62d(0x320)](),this[_0x3ef62d(0x20a)][_0x3ef62d(0x357)]([]),this[_0x3ef62d(0x20a)][_0x3ef62d(0x320)]();}[_0x554f52(0x19d)](){const _0x432e1c=_0x554f52;this[_0x432e1c(0x256)]||(this['_init']=!0x0,this[_0x432e1c(0x2e6)][_0x432e1c(0x3b2)][_0x432e1c(0x279)](d['takeUntil'](this['dispose$']))[_0x432e1c(0x377)](_0x45b35f=>{const _0x2ea458=_0x432e1c;_0x45b35f===u[_0x2ea458(0x3a0)][_0x2ea458(0x291)]?this[_0x2ea458(0x16f)]():this[_0x2ea458(0x2be)]();}),this[_0x432e1c(0x2e6)][_0x432e1c(0x32e)][_0x432e1c(0x279)](d[_0x432e1c(0x1d7)](this['dispose$']))[_0x432e1c(0x377)](_0x8111fe=>{const _0x3e139e=_0x432e1c,_0x43be8f=_0x8111fe[_0x3e139e(0x15f)];_0x43be8f===m[_0x3e139e(0x22f)][_0x3e139e(0x216)]&&this['_onCursorUpdate'](_0x8111fe),_0x43be8f===m['CollaborationEvent'][_0x3e139e(0x32d)]&&this[_0x3e139e(0x301)](_0x8111fe);}),this['_onRefRangeChange'](),this[_0x432e1c(0x292)](this['_commandService'][_0x432e1c(0x26f)](_0x1e3b19=>{const _0x32fb9b=_0x432e1c;if(this['_online']&&_0x1e3b19['id']===g['SetSelectionsOperation']['id']&&_0x1e3b19[_0x32fb9b(0x22e)][_0x32fb9b(0x2bb)]===this[_0x32fb9b(0x3c8)]){const _0x5206a7=_0x1e3b19['params'];this[_0x32fb9b(0x2af)](_0x5206a7[_0x32fb9b(0x242)],_0x5206a7['selections'][0x0]);}})));}[_0x554f52(0x206)](_0x41f432){const _0x37230c=_0x554f52;var _0x14d69d,_0xa1fd33;const {memberID:_0x5495e7,selection:_0x2e7a39}=_0x41f432[_0x37230c(0x2ae)],{sheetName:_0x3e4744,range:_0x254276}=Ee[_0x37230c(0x2d5)](_0x2e7a39),_0x1a0cc4={'name':(_0xa1fd33=(_0x14d69d=this[_0x37230c(0x237)][_0x37230c(0x2ec)](this[_0x37230c(0x3c8)],_0x5495e7))==null?void 0x0:_0x14d69d[_0x37230c(0x277)])!=null?_0xa1fd33:_0x37230c(0x29c),'range':this[_0x37230c(0x280)](_0x3e4744,_0x254276),'sheetID':_0x3e4744,'color':this[_0x37230c(0x371)][_0x37230c(0x25d)](_0x5495e7),'selection':_0x2e7a39},_0x21f607=this[_0x37230c(0x222)];_0x21f607[_0x37230c(0x2a8)](_0x5495e7,_0x1a0cc4),this['_cursorInfo$'][_0x37230c(0x357)](_0x21f607);}['_onCursorDelete'](_0x1a8d07){const _0x1f27af=_0x554f52,{memberID:_0x29b4f8}=_0x1a8d07[_0x1f27af(0x2ae)],_0x22598d=this[_0x1f27af(0x222)];_0x22598d[_0x1f27af(0x233)](_0x29b4f8),this[_0x1f27af(0x19c)][_0x1f27af(0x357)](_0x22598d);}[_0x554f52(0x280)](_0x3e80a1,_0x138383){const _0xe5a4f5=_0x554f52;var _0x5e5ae4,_0x3a75f3;const _0x47d724=(_0x3a75f3=(_0x5e5ae4=this[_0xe5a4f5(0x18e)]['getUniverSheetInstance'](this[_0xe5a4f5(0x3c8)]))==null?void 0x0:_0x5e5ae4[_0xe5a4f5(0x3c6)](_0x3e80a1))==null?void 0x0:_0x3a75f3[_0xe5a4f5(0x287)]();return(_0x47d724==null?void 0x0:_0x47d724[_0xe5a4f5(0x21e)](_0x282274=>a['Rectangle'][_0xe5a4f5(0x260)](_0x282274,_0x138383)))||_0x138383;}[_0x554f52(0x1fb)](){const _0x5248f6=_0x554f52,_0x2638df=new a[(_0x5248f6(0x2c5))](),_0x597a9f=gt(),_0xc361da=()=>{const _0x40be34=_0x5248f6;_0x2638df[_0x40be34(0x21d)]();const _0x4a71e6=(_0x1dc284,_0x2cc683,_0x2eae1a,_0x240bfd)=>{const _0x5b9d17=_0x40be34;let _0x5b0480=[];switch(_0x1dc284['id']){case g['EffectRefRangId'][_0x5b9d17(0x336)]:{_0x5b0480=g['handleDeleteRangeMoveLeft'](_0x1dc284,_0x240bfd);break;}case g[_0x5b9d17(0x339)]['DeleteRangeMoveUpCommandId']:{_0x5b0480=g['handleDeleteRangeMoveUp'](_0x1dc284,_0x240bfd);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x5b0480=g[_0x5b9d17(0x241)](_0x1dc284,_0x240bfd);break;}case g[_0x5b9d17(0x339)][_0x5b9d17(0x354)]:{_0x5b0480=g['handleInsertRangeMoveDown'](_0x1dc284,_0x240bfd);break;}case g[_0x5b9d17(0x339)][_0x5b9d17(0x29e)]:{_0x5b0480=g['handleInsertRangeMoveRight'](_0x1dc284,_0x240bfd);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x5b0480=g[_0x5b9d17(0x1b9)](_0x1dc284,_0x240bfd);break;}case g[_0x5b9d17(0x339)]['MoveRangeCommandId']:{_0x5b0480=g[_0x5b9d17(0x1ba)](_0x1dc284,_0x240bfd);break;}case g['EffectRefRangId'][_0x5b9d17(0x272)]:{_0x5b0480=g['handleIRemoveCol'](_0x1dc284,_0x240bfd);break;}case g[_0x5b9d17(0x339)][_0x5b9d17(0x386)]:{_0x5b0480=g[_0x5b9d17(0x17b)](_0x1dc284,_0x240bfd);break;}}const _0xa4b80=g['runRefRangeMutations'](_0x5b0480,_0x240bfd),_0x203bb0=this[_0x5b9d17(0x222)][_0x5b9d17(0x2e8)](_0x2cc683);if(_0x203bb0&&_0xa4b80){const _0x8bd7d8={..._0x203bb0,'range':_0xa4b80};this['cursorInfo'][_0x5b9d17(0x2a8)](_0x2cc683,_0x8bd7d8),_0x597a9f(()=>{const _0xd9cd9d=_0x5b9d17,_0x36c38c=this['_refRangeService'][_0xd9cd9d(0x313)](_0xa4b80,_0x377e46=>(_0x36c38c[_0xd9cd9d(0x21d)](),_0x4a71e6(_0x377e46,_0x2cc683,_0x2eae1a,_0xa4b80)));_0x2638df[_0xd9cd9d(0x1be)](_0x36c38c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x40be34(0x190)]((_0x1040d6,_0x554292)=>{const _0x411b01=_0x40be34,{range:_0x54d25e,sheetID:_0x1097fb}=_0x1040d6,_0x1d0cd1=this['_refRangeService'][_0x411b01(0x313)](_0x54d25e,_0x3bdaaf=>(_0x1d0cd1['dispose'](),_0x4a71e6(_0x3bdaaf,_0x554292,_0x1097fb,_0x54d25e)));_0x2638df[_0x411b01(0x1be)](_0x1d0cd1);});};this['disposeWithMe'](a['toDisposable'](this[_0x5248f6(0x19c)][_0x5248f6(0x377)](()=>{_0xc361da();})));}[_0x554f52(0x16f)](){const _0x5176f5=_0x554f52;var _0x8edbac,_0x313353;if(this[_0x5176f5(0x1f1)]=!0x0,((_0x8edbac=this[_0x5176f5(0x18e)][_0x5176f5(0x337)]())==null?void 0x0:_0x8edbac[_0x5176f5(0x1fd)]())!==this['unitID'])return;const _0x4e1c2f=(_0x313353=this[_0x5176f5(0x3a4)][_0x5176f5(0x2e8)](g['SheetsSelectionsService'])[_0x5176f5(0x387)]())==null?void 0x0:_0x313353[0x0],_0x484654=this[_0x5176f5(0x18e)][_0x5176f5(0x2c7)](a[_0x5176f5(0x331)][_0x5176f5(0x261)])[_0x5176f5(0x319)]();_0x4e1c2f&&_0x484654&&this[_0x5176f5(0x2af)](_0x484654[_0x5176f5(0x2ba)](),_0x4e1c2f);}['_toggleOffline'](){this['_online']=!0x1;}};Se=ft([A(0x2,a['Inject'](a['Injector'])),A(0x3,a[_0x554f52(0x1ca)](Ce)),A(0x4,a['Inject'](u[_0x554f52(0x1a7)])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g[_0x554f52(0x2c0)]))],Se);var mt=Object[_0x554f52(0x22b)],Ct=(_0x1a4df5,_0x885d11,_0x5c6912,_0x1415b6)=>{for(var _0x525f23=_0x1415b6>0x1?void 0x0:_0x1415b6?mt(_0x885d11,_0x5c6912):_0x885d11,_0x445b59=_0x1a4df5['length']-0x1,_0xcd6084;_0x445b59>=0x0;_0x445b59--)(_0xcd6084=_0x1a4df5[_0x445b59])&&(_0x525f23=_0xcd6084(_0x525f23)||_0x525f23);return _0x525f23;},ie=(_0xeb6672,_0x3a45f)=>(_0x4c1f5c,_0x12909a)=>_0x3a45f(_0x4c1f5c,_0x12909a,_0xeb6672);let x=class extends a['RxDisposable']{constructor(_0x467283,_0x1cb1b6,_0xe77394){const _0x6ce446=_0x554f52;super(),h(this,'_entities',new Map()),h(this,_0x6ce446(0x25c),new d[(_0x6ce446(0x33f))]()),(this[_0x6ce446(0x18e)]=_0x467283,this[_0x6ce446(0x3a4)]=_0x1cb1b6,this[_0x6ce446(0x1ff)]=_0xe77394,this[_0x6ce446(0x256)]());}[_0x554f52(0x21d)](){const _0x50071f=_0x554f52;super[_0x50071f(0x21d)](),this['_entityInit$'][_0x50071f(0x320)](),this[_0x50071f(0x35b)][_0x50071f(0x190)](_0x3eb0ad=>_0x3eb0ad[_0x50071f(0x21d)]());}['getCollabCursors$'](_0x1a890f){const _0x25813a=_0x554f52;return this[_0x25813a(0x35b)][_0x25813a(0x20e)](_0x1a890f)?this[_0x25813a(0x35b)][_0x25813a(0x2e8)](_0x1a890f)[_0x25813a(0x2d8)]:this[_0x25813a(0x25c)][_0x25813a(0x279)](d[_0x25813a(0x2a7)](_0x2d2280=>_0x2d2280['unitID']===_0x1a890f),d[_0x25813a(0x2ff)](_0x3fb00c=>_0x3fb00c[_0x25813a(0x2d8)]));}[_0x554f52(0x256)](){const _0x2310fb=_0x554f52;this[_0x2310fb(0x18e)][_0x2310fb(0x2a1)](a[_0x2310fb(0x331)][_0x2310fb(0x261)])['pipe'](d['takeUntil'](this[_0x2310fb(0x1cc)]))[_0x2310fb(0x377)](async _0x5747df=>{const _0x3f9a25=_0x2310fb,_0x46e480=_0x5747df[_0x3f9a25(0x1fd)](),_0x1127e8=await this[_0x3f9a25(0x1a3)](_0x46e480);this['_entityInit$'][_0x3f9a25(0x357)](_0x1127e8),this[_0x3f9a25(0x35b)][_0x3f9a25(0x2a8)](_0x46e480,_0x1127e8);}),this['_univerInstanceService'][_0x2310fb(0x2a1)](a[_0x2310fb(0x331)][_0x2310fb(0x335)])[_0x2310fb(0x279)](d[_0x2310fb(0x1d7)](this['dispose$']))['pipe'](d['filter'](_0x590145=>!_0x590145['getUnitId']()[_0x2310fb(0x251)]('__')))['subscribe'](async _0x14312f=>{const _0x5d0bc9=_0x2310fb,_0x18d18c=_0x14312f['getUnitId'](),_0x59c01a=await this[_0x5d0bc9(0x169)](_0x18d18c);this[_0x5d0bc9(0x25c)][_0x5d0bc9(0x357)](_0x59c01a),this[_0x5d0bc9(0x35b)][_0x5d0bc9(0x2a8)](_0x18d18c,_0x59c01a);}),d[_0x2310fb(0x226)](this['_univerInstanceService'][_0x2310fb(0x271)](a[_0x2310fb(0x331)][_0x2310fb(0x335)]),this[_0x2310fb(0x18e)][_0x2310fb(0x271)](a[_0x2310fb(0x331)][_0x2310fb(0x261)]))[_0x2310fb(0x279)](d[_0x2310fb(0x1d7)](this[_0x2310fb(0x1cc)]))[_0x2310fb(0x377)](_0x1dd90c=>{const _0x1b7fef=_0x2310fb,_0x523e9f=_0x1dd90c[_0x1b7fef(0x1fd)](),_0x38bd67=this[_0x1b7fef(0x35b)][_0x1b7fef(0x2e8)](_0x523e9f);_0x38bd67&&(_0x38bd67[_0x1b7fef(0x21d)](),this['_entities'][_0x1b7fef(0x233)](_0x523e9f));});}async[_0x554f52(0x1a3)](_0x1dabff){const _0x1a2a54=_0x554f52,_0x4ed95f=await this['_collabSessionService'][_0x1a2a54(0x3b8)](_0x1dabff),_0x21a48d=this[_0x1a2a54(0x3a4)][_0x1a2a54(0x315)](Se,_0x1dabff,_0x4ed95f);return _0x21a48d[_0x1a2a54(0x19d)](),_0x21a48d;}async[_0x554f52(0x169)](_0x438897){const _0x282bd6=_0x554f52,_0x50a9cb=await this[_0x282bd6(0x1ff)][_0x282bd6(0x3b8)](_0x438897),_0x5d96d0=this[_0x282bd6(0x3a4)][_0x282bd6(0x315)](de,_0x438897,_0x50a9cb);return _0x5d96d0[_0x282bd6(0x19d)](),_0x5d96d0;}};x=Ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x554f52(0x1ca)](a['Injector'])),ie(0x2,a[_0x554f52(0x1ca)](u['CollaborationSessionService']))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x3a15e7,_0x44d27d){const _0x50c201=_0x554f52;let {radius:_0x436ae3,width:_0x25b844,height:_0x421ae7}=_0x44d27d;_0x436ae3=_0x436ae3!=null?_0x436ae3:0x0,_0x25b844=_0x25b844!=null?_0x25b844:0x1e,_0x421ae7=_0x421ae7!=null?_0x421ae7:0x1e;let _0x50995e=0x0,_0x331141=0x0,_0x5460f3=0x0;_0x50995e=_0x331141=_0x5460f3=Math[_0x50c201(0x2ca)](_0x436ae3,_0x25b844/0x2,_0x421ae7/0x2),_0x3a15e7[_0x50c201(0x298)](),_0x3a15e7[_0x50c201(0x192)](_0x50995e,0x0),_0x3a15e7[_0x50c201(0x202)](_0x25b844-_0x331141,0x0),_0x3a15e7['arc'](_0x25b844-_0x331141,_0x331141,_0x331141,Math['PI']*0x3/0x2,0x0,!0x1),_0x3a15e7[_0x50c201(0x202)](_0x25b844,_0x421ae7-_0x5460f3),_0x3a15e7['arc'](_0x25b844-_0x5460f3,_0x421ae7-_0x5460f3,_0x5460f3,0x0,Math['PI']/0x2,!0x1),_0x3a15e7[_0x50c201(0x202)](0x0,_0x421ae7),_0x3a15e7[_0x50c201(0x202)](0x0,_0x50995e),_0x3a15e7[_0x50c201(0x171)](_0x50995e,_0x50995e,_0x50995e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3a15e7[_0x50c201(0x244)](),_0x44d27d[_0x50c201(0x356)]&&(_0x3a15e7['save'](),_0x3a15e7[_0x50c201(0x18f)]=_0x44d27d[_0x50c201(0x356)],_0x44d27d['fillRule']===_0x50c201(0x3a1)?_0x3a15e7[_0x50c201(0x356)](_0x50c201(0x3a1)):_0x3a15e7[_0x50c201(0x356)](),_0x3a15e7[_0x50c201(0x1d3)]());}class ee extends p['Shape']{constructor(_0x2cf6fd,_0x2c60ce){const _0x571531=_0x554f52;super(_0x2cf6fd,_0x2c60ce),h(this,_0x571531(0x2e2)),h(this,_0x571531(0x300)),(this[_0x571531(0x2e2)]=_0x2c60ce==null?void 0x0:_0x2c60ce[_0x571531(0x2e2)],this[_0x571531(0x300)]=_0x2c60ce==null?void 0x0:_0x2c60ce[_0x571531(0x300)]);}static[_0x554f52(0x1e4)](_0x199ba1,_0x31f949){const _0x2f75fd=_0x554f52,{text:_0x4609f7,color:_0x163c62}=_0x31f949;_0x199ba1[_0x2f75fd(0x201)](),_0x199ba1[_0x2f75fd(0x31b)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1342e9=_0x199ba1[_0x2f75fd(0x2f4)](_0x4609f7)['width'],_0x2e501a=Math[_0x2f75fd(0x2ca)](_0x1342e9+0x2*ne,Te);Et(_0x199ba1,{'height':W,'radius':0x4,'width':_0x2e501a,'fill':_0x163c62}),_0x199ba1[_0x2f75fd(0x18f)]=_0x2f75fd(0x16a);const _0x260371=ne,_0x23bfa3=W-pt,_0x536364=Te-0x2*ne;if(_0x1342e9>_0x536364){let _0x5e10a8='',_0xfc1c79=0x0;for(const _0x52cf70 of _0x4609f7){const _0x4f6f05=_0x199ba1[_0x2f75fd(0x2f4)](_0x52cf70)[_0x2f75fd(0x21f)];if(_0xfc1c79+_0x4f6f05<=_0x536364-_0x199ba1[_0x2f75fd(0x2f4)](_0x2f75fd(0x35f))[_0x2f75fd(0x21f)])_0x5e10a8+=_0x52cf70,_0xfc1c79+=_0x4f6f05;else{_0x5e10a8+=_0x2f75fd(0x35f);break;}}_0x199ba1[_0x2f75fd(0x2fc)](_0x5e10a8,_0x260371,_0x23bfa3);}else _0x199ba1['fillText'](_0x4609f7,_0x260371,_0x23bfa3);_0x199ba1[_0x2f75fd(0x1d3)]();}['_draw'](_0x513115){ee['drawWith'](_0x513115,this);}}const re=_0x554f52(0x2e0),bt=_0x554f52(0x214),Ot=_0x554f52(0x3ad),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x554f52(0x227);class Re{constructor(_0x407597,_0x4f7098,_0x55c74d,_0x1f1e10){const _0x58f3ec=_0x554f52;h(this,_0x58f3ec(0x16c),[]),h(this,_0x58f3ec(0x38e),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,_0x58f3ec(0x2cc),null),(this[_0x58f3ec(0x178)]=_0x407597,this[_0x58f3ec(0x299)]=_0x4f7098,this['_docSkeleton']=_0x55c74d,this[_0x58f3ec(0x1bd)]=_0x1f1e10,this[_0x58f3ec(0x372)]());}set['_hover'](_0x241337){const _0x187549=_0x554f52;_0x241337?(this[_0x187549(0x283)]&&this[_0x187549(0x283)][_0x187549(0x1b1)](),this[_0x187549(0x24c)]&&this[_0x187549(0x24c)][_0x187549(0x170)]()):(this['_anchorDot']&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0x187549(0x24c)][_0x187549(0x1b1)]());}[_0x554f52(0x21d)](){const _0x4e2a14=_0x554f52;for(const _0x5b4779 of this['_shapes'])_0x5b4779[_0x4e2a14(0x21d)]();this[_0x4e2a14(0x24c)]&&this[_0x4e2a14(0x24c)][_0x4e2a14(0x21d)](),this[_0x4e2a14(0x283)]&&this[_0x4e2a14(0x283)][_0x4e2a14(0x21d)](),this['_anchor']&&this[_0x4e2a14(0x38e)][_0x4e2a14(0x21d)](),this[_0x4e2a14(0x2cc)]&&this[_0x4e2a14(0x2cc)]();}[_0x554f52(0x372)](){const _0x3f2d80=_0x554f52;var _0x486867;const {_docSkeleton:_0x2f666b,_document:_0x18d78a}=this,{color:_0xa0f9a,name:_0x45dab2,ranges:_0x44bdb9}=this[_0x3f2d80(0x178)],_0x59b372=_0x18d78a[_0x3f2d80(0x273)](),{docsLeft:_0x37fded,docsTop:_0x39e65c}=_0x59b372,_0x2e9544=new E[(_0x3f2d80(0x394))](_0x59b372,_0x2f666b);for(const {startOffset:_0x13b731,endOffset:_0x1e1a6a,rangeType:_0x266382,segmentId:_0x33c7f5,segmentPage:_0x33d6a2,collapsed:_0x43e8de,isActive:_0x15855a}of _0x44bdb9){const _0x34d6c8=_0x2f666b[_0x3f2d80(0x344)](_0x13b731,!0x0,_0x33c7f5,_0x33d6a2);let _0x474b29=_0x2f666b[_0x3f2d80(0x344)](_0x1e1a6a,!0x0,_0x33c7f5,_0x33d6a2);if(_0x474b29==null&&(_0x474b29=_0x2f666b[_0x3f2d80(0x344)](_0x1e1a6a-0x1,!0x1,_0x33c7f5,_0x33d6a2)),_0x15855a){const {contentBoxPointGroup:_0x564d7a}=_0x2e9544['getRangePointData'](_0x474b29,_0x474b29);if(_0x564d7a[_0x3f2d80(0x2ed)]===0x0)continue;this[_0x3f2d80(0x2c4)](_0xa0f9a,_0x564d7a,_0x37fded,_0x39e65c,_0x45dab2),this[_0x3f2d80(0x2cc)]=this[_0x3f2d80(0x1ae)]();}if(_0x34d6c8&&_0x474b29){if(_0x266382===a[_0x3f2d80(0x24a)][_0x3f2d80(0x2c9)]){const _0xf6760a=new E[(_0x3f2d80(0x349))](_0x59b372,_0x2f666b),{pointGroup:_0x2807c5}=(_0x486867=_0xf6760a[_0x3f2d80(0x39f)](_0x34d6c8,_0x474b29))!=null?_0x486867:{};if(_0x2807c5==null||_0x2807c5[_0x3f2d80(0x2ed)]===0x0)continue;this[_0x3f2d80(0x166)](_0xa0f9a,_0x2807c5,_0x37fded,_0x39e65c);}else{if(!_0x43e8de){const {borderBoxPointGroup:_0x597e6a}=_0x2e9544[_0x3f2d80(0x39f)](_0x34d6c8,_0x474b29);if(_0x597e6a[_0x3f2d80(0x2ed)]===0x0)continue;this['_drawTextRange'](_0xa0f9a,_0x597e6a,_0x37fded,_0x39e65c);}}}}}[_0x554f52(0x2c4)](_0x3ece88,_0x5c777f,_0x47c9ac,_0x53f937,_0x4a12fd){const _0x50bd2f=_0x554f52,_0xfb1616=this[_0x50bd2f(0x1e0)](_0x5c777f),{left:_0x215a8b,top:_0x3da0c7,height:_0x5622f0}=_0xfb1616,_0x1cb3d1=this[_0x50bd2f(0x270)](),_0x4c124e=Rt/_0x1cb3d1,_0x3b65f0=new p[(_0x50bd2f(0x38c))](re+a[_0x50bd2f(0x359)](F),{'left':_0x215a8b+_0x47c9ac-_0x4c124e,'top':_0x3da0c7+_0x53f937,'height':_0x5622f0,'width':Tt,'fill':_0x3ece88||p[_0x50bd2f(0x3cc)](a['COLORS'][_0x50bd2f(0x253)],0x0),'strokeWidth':_0x4c124e,'stroke':Dt,'evented':!0x0});this['_anchor']=_0x3b65f0,this[_0x50bd2f(0x299)][_0x50bd2f(0x173)](_0x3b65f0,E[_0x50bd2f(0x318)]);const _0x44b0fb=new p[(_0x50bd2f(0x38c))](re+a['generateRandomId'](F),{'left':_0x215a8b+_0x47c9ac-_0x4c124e,'top':_0x3da0c7+_0x53f937-oe/0x2,'height':oe,'width':oe,'fill':_0x3ece88||p[_0x50bd2f(0x3cc)](a[_0x50bd2f(0x1c4)][_0x50bd2f(0x253)],0x0),'strokeWidth':0x0,'stroke':_0x3ece88||p[_0x50bd2f(0x3cc)](a['COLORS'][_0x50bd2f(0x253)],0x0),'evented':!0x1});this[_0x50bd2f(0x283)]=_0x44b0fb,this[_0x50bd2f(0x299)][_0x50bd2f(0x173)](_0x44b0fb,E['TEXT_RANGE_LAYER_INDEX']);const _0x1a48f5=new ee(re+a['generateRandomId'](F),{'left':_0x215a8b+_0x47c9ac-_0x4c124e,'top':_0x3da0c7+_0x53f937-W,'text':_0x4a12fd,'color':_0x3ece88});this[_0x50bd2f(0x24c)]=_0x1a48f5,this[_0x50bd2f(0x299)][_0x50bd2f(0x173)](_0x1a48f5,E[_0x50bd2f(0x318)]),this[_0x50bd2f(0x26d)]=!0x1;}[_0x554f52(0x1ae)](){const _0x9065aa=_0x554f52,_0x25f418=this[_0x9065aa(0x38e)][_0x9065aa(0x250)]['subscribeEvent'](()=>{const _0x1bd86f=_0x9065aa;this[_0x1bd86f(0x26d)]=!0x0;}),_0x57854b=this[_0x9065aa(0x38e)][_0x9065aa(0x362)][_0x9065aa(0x1d5)](()=>{const _0x114924=_0x9065aa;this[_0x114924(0x1fe)]&&clearTimeout(this[_0x114924(0x1fe)]),this[_0x114924(0x1fe)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4494c7=_0x9065aa;_0x25f418[_0x4494c7(0x2dc)](),_0x57854b['unsubscribe']();};}[_0x554f52(0x2d4)](_0x544ae2,_0x56ba7c,_0x33dbce,_0x2af8e0){const _0x48b414=_0x554f52,_0x4a9bd6=new a[(_0x48b414(0x191))](_0x544ae2)[_0x48b414(0x225)](0.2)['toRgbString'](),_0x51a92b=new p['RegularPolygon'](bt+a['generateRandomId'](F),{'pointsGroup':_0x56ba7c,'fill':_0x4a9bd6||p[_0x48b414(0x3cc)](a[_0x48b414(0x1c4)][_0x48b414(0x253)],0.2),'left':_0x33dbce,'top':_0x2af8e0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x48b414(0x16c)][_0x48b414(0x326)](_0x51a92b),this[_0x48b414(0x299)][_0x48b414(0x173)](_0x51a92b,E[_0x48b414(0x318)]);}[_0x554f52(0x166)](_0xab62f6,_0x23a296,_0x279666,_0x31aa6c){const _0x49aef5=_0x554f52,_0x2d554b=new a[(_0x49aef5(0x191))](_0xab62f6)['setAlpha'](0.2)[_0x49aef5(0x16e)](),_0x39a964=new p[(_0x49aef5(0x198))](Ot+a[_0x49aef5(0x359)](F),{'pointsGroup':_0x23a296,'fill':_0x2d554b||p[_0x49aef5(0x3cc)](a[_0x49aef5(0x1c4)][_0x49aef5(0x253)],0.2),'left':_0x279666,'top':_0x31aa6c,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x49aef5(0x326)](_0x39a964),this[_0x49aef5(0x299)][_0x49aef5(0x173)](_0x39a964,E[_0x49aef5(0x318)]);}[_0x554f52(0x1e0)](_0x151d57){const _0x5e7d53=_0x151d57[0x0],_0x7e13c9=_0x5e7d53[0x0],_0x33b7fd=_0x5e7d53[0x2],{x:_0x31ef24,y:_0x525181}=_0x7e13c9,{x:_0x2607d5,y:_0x4f44bb}=_0x33b7fd;return{'left':_0x31ef24,'top':_0x525181,'width':_0x2607d5-_0x31ef24,'height':_0x4f44bb-_0x525181};}[_0x554f52(0x270)](){const _0x208587=_0x554f52,{scaleX:_0x383e6f,scaleY:_0x28e431}=this[_0x208587(0x299)]['getAncestorScale']();return Math['max'](_0x383e6f,_0x28e431);}}var Ut=Object[_0x554f52(0x22b)],Nt=(_0x5e3132,_0x24cdf9,_0x5e654b,_0x46b59c)=>{const _0x370e81=_0x554f52;for(var _0x580dd0=_0x46b59c>0x1?void 0x0:_0x46b59c?Ut(_0x24cdf9,_0x5e654b):_0x24cdf9,_0x2fb9d1=_0x5e3132[_0x370e81(0x2ed)]-0x1,_0x2db45a;_0x2fb9d1>=0x0;_0x2fb9d1--)(_0x2db45a=_0x5e3132[_0x2fb9d1])&&(_0x580dd0=_0x2db45a(_0x580dd0)||_0x580dd0);return _0x580dd0;},X=(_0x1cf4d6,_0x1ac8f1)=>(_0x30d71d,_0x298511)=>_0x1ac8f1(_0x30d71d,_0x298511,_0x1cf4d6);let fe=class extends a[_0x554f52(0x32a)]{constructor(_0x2be472,_0x198d8a,_0x9a301e,_0x156bc1,_0x1e1e35){const _0x252252=_0x554f52;super(),h(this,_0x252252(0x196),[]),h(this,_0x252252(0x37b),[]),(this['_context']=_0x2be472,this[_0x252252(0x3b1)]=_0x198d8a,this[_0x252252(0x37f)]=_0x9a301e,this[_0x252252(0x262)]=_0x156bc1,this[_0x252252(0x1a2)]=_0x1e1e35,this[_0x252252(0x256)]());}[_0x554f52(0x256)](){const _0x593e3e=_0x554f52,_0x7ebe59=this[_0x593e3e(0x361)][_0x593e3e(0x2bb)],_0x4be472=this[_0x593e3e(0x3b1)];this[_0x593e3e(0x292)](d['combineLatest']([this['_collabCursorController']['getCollabCursors$'](_0x7ebe59),this[_0x593e3e(0x1a2)][_0x593e3e(0x1af)]])['pipe']($[_0x593e3e(0x1b3)](([_0x73d02e,_0x3f0241])=>({'skeleton':_0x4be472[_0x593e3e(0x3b5)](),'cursors':[..._0x73d02e[_0x593e3e(0x302)]()][_0x593e3e(0x205)](_0x2fb1fc=>({..._0x2fb1fc,'color':this[_0x593e3e(0x1a2)]['getColorFromTheme'](_0x2fb1fc[_0x593e3e(0x2e2)])}))})))[_0x593e3e(0x377)](_0x4930e7=>{const _0x3827ff=_0x593e3e;if(this[_0x3827ff(0x350)](),_0x4930e7){const {skeleton:_0x2a7432,cursors:_0x2077e0}=_0x4930e7;this['_updateCollabCursors'](_0x2a7432,_0x2077e0);}})),this[_0x593e3e(0x27c)](),this['_initCommandExecutedListener']();}[_0x554f52(0x286)](_0x168e4c,_0x289487){const _0x24505e=_0x554f52,{scene:_0x5d0fda,mainComponent:_0x527f1c}=this[_0x24505e(0x361)],_0x44ba81=_0x289487[_0x24505e(0x1b3)](_0x100d8f=>new Re(_0x100d8f,_0x5d0fda,_0x168e4c,_0x527f1c));this[_0x24505e(0x196)]=_0x44ba81,this[_0x24505e(0x37b)]=_0x289487;}[_0x554f52(0x322)](){const _0x4e74ee=_0x554f52;this['_removeCollabCursors']();const {scene:_0x1d56e1,mainComponent:_0x8b40fb}=this[_0x4e74ee(0x361)],_0x45a4e3=this[_0x4e74ee(0x3b1)][_0x4e74ee(0x3b5)](),_0x2b5e2d=this['_cursors'][_0x4e74ee(0x1b3)](_0x52e584=>new Re(_0x52e584,_0x1d56e1,_0x45a4e3,_0x8b40fb));this['_cursorShapes']=_0x2b5e2d;}['_removeCollabCursors'](){const _0x372228=_0x554f52;this['_cursorShapes'][_0x372228(0x190)](_0xcd8845=>_0xcd8845[_0x372228(0x21d)]()),this['_cursorShapes']=[];}[_0x554f52(0x257)](){const _0x497f8b=_0x554f52,_0x2c2574=[E[_0x497f8b(0x27b)]['id']];this[_0x497f8b(0x292)](this[_0x497f8b(0x262)][_0x497f8b(0x26f)](_0x8a305b=>{const _0x42fed5=_0x497f8b;_0x2c2574[_0x42fed5(0x1c2)](_0x8a305b['id'])&&_0x8a305b[_0x42fed5(0x22e)]['unitId']===this[_0x42fed5(0x361)][_0x42fed5(0x2bb)]&&this[_0x42fed5(0x322)]();}));}[_0x554f52(0x27c)](){const _0x44977d=_0x554f52;this[_0x44977d(0x292)](a[_0x44977d(0x267)](this[_0x44977d(0x361)][_0x44977d(0x1a0)][_0x44977d(0x2b2)])[_0x44977d(0x279)]($[_0x44977d(0x2a7)](_0x520ef2=>_0x520ef2[_0x44977d(0x172)]===p[_0x44977d(0x3a7)][_0x44977d(0x1ec)]),$[_0x44977d(0x375)](0x10))[_0x44977d(0x377)](()=>{const _0x2e36e7=_0x44977d;this[_0x2e36e7(0x322)]();}));}};fe=Nt([X(0x1,a[_0x554f52(0x1ca)](Y[_0x554f52(0x1a1)])),X(0x2,a[_0x554f52(0x1ca)](x)),X(0x3,a['ICommandService']),X(0x4,a[_0x554f52(0x1ca)](a['ThemeService']))],fe);const Mt=0x1,Lt=1.5;class $e extends p['Shape']{constructor(_0x305cc2,_0x2e9810){const _0x1469f6=_0x554f52;super(_0x305cc2,_0x2e9810),h(this,_0x1469f6(0x23e)),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x1469f6(0x1a6),''),h(this,'_labelPosition',_0x1469f6(0x275)),h(this,_0x1469f6(0x2cf)),(_0x2e9810&&this['setShapeProps'](_0x2e9810),this[_0x1469f6(0x250)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1469f6(0x362)][_0x1469f6(0x1d5)](()=>this[_0x1469f6(0x15e)]({'hovered':!0x1})));}['setShapeProps'](_0x44388e){const _0xe3cc46=_0x554f52;var _0xebd0c6,_0x2feec9,_0x1730af,_0x5c7f32,_0x2a2c84,_0x5e5b30;this[_0xe3cc46(0x23e)]=(_0xebd0c6=_0x44388e['color'])!=null?_0xebd0c6:this[_0xe3cc46(0x23e)],this[_0xe3cc46(0x2d2)]=(_0x2feec9=_0x44388e['hovered'])!=null?_0x2feec9:this[_0xe3cc46(0x2d2)],this[_0xe3cc46(0x1b5)]=(_0x1730af=_0x44388e[_0xe3cc46(0x2fe)])!=null?_0x1730af:this[_0xe3cc46(0x1b5)],this[_0xe3cc46(0x1a6)]=(_0x5c7f32=_0x44388e[_0xe3cc46(0x277)])!=null?_0x5c7f32:this[_0xe3cc46(0x1a6)],this['_labelPosition']=(_0x2a2c84=_0x44388e[_0xe3cc46(0x2de)])!=null?_0x2a2c84:this['_labelPosition'],this[_0xe3cc46(0x2cf)]=(_0x5e5b30=_0x44388e['backgroundColor'])!=null?_0x5e5b30:this[_0xe3cc46(0x2cf)],this['transformByState']({'width':_0x44388e[_0xe3cc46(0x21f)],'height':_0x44388e[_0xe3cc46(0x347)]});}['onMouseMove'](_0x4fe519){const _0x28ac2c=_0x554f52,{row:_0x58d2c9,column:_0xf005e5}=_0x4fe519;if(_0x58d2c9>=this[_0x28ac2c(0x1b5)]['startRow']&&_0x58d2c9<=this['_range']['endRow']&&_0xf005e5>=this['_range'][_0x28ac2c(0x235)]&&_0xf005e5<=this[_0x28ac2c(0x1b5)][_0x28ac2c(0x3cd)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x28ac2c(0x15e)]({'hovered':!0x1});}[_0x554f52(0x238)](_0x46e1c3){return!0x1;}[_0x554f52(0x1e3)](_0x5a7177){const _0x229d13=_0x554f52;p['Rect']['drawWith'](_0x5a7177,{'width':this[_0x229d13(0x21f)],'height':this[_0x229d13(0x347)],'strokeWidth':Lt,'stroke':this[_0x229d13(0x23e)],'evented':!0x1,'fill':this[_0x229d13(0x2cf)]}),this[_0x229d13(0x2d2)]&&(_0x5a7177[_0x229d13(0x201)](),_0x5a7177[_0x229d13(0x2a4)](0x1,0x0,0x0,0x1,this[_0x229d13(0x21f)],this[_0x229d13(0x24d)]==='bottom'?0x0:-W),ee[_0x229d13(0x1e4)](_0x5a7177,{'text':this[_0x229d13(0x1a6)],'color':this[_0x229d13(0x23e)]}),_0x5a7177['restore']());}}var Pt=Object[_0x554f52(0x22b)],wt=(_0x44ec01,_0x16412c,_0xc586b5,_0x5193d4)=>{const _0x3886f8=_0x554f52;for(var _0x10e624=_0x5193d4>0x1?void 0x0:_0x5193d4?Pt(_0x16412c,_0xc586b5):_0x16412c,_0xbda114=_0x44ec01[_0x3886f8(0x2ed)]-0x1,_0x4db8a5;_0xbda114>=0x0;_0xbda114--)(_0x4db8a5=_0x44ec01[_0xbda114])&&(_0x10e624=_0x4db8a5(_0x10e624)||_0x10e624);return _0x10e624;},ae=(_0x21d127,_0x506b98)=>(_0x42337d,_0x17be69)=>_0x506b98(_0x42337d,_0x17be69,_0x21d127);const At=0x1389;let Ie=class extends a[_0x554f52(0x32a)]{constructor(_0x5bc261,_0x291aa4,_0x2d8d96,_0x21ba00){const _0x21f446=_0x554f52;super(),h(this,_0x21f446(0x37b),new Set()),h(this,_0x21f446(0x32c),null),(this[_0x21f446(0x361)]=_0x5bc261,this[_0x21f446(0x30f)]=_0x291aa4,this[_0x21f446(0x37f)]=_0x2d8d96,this[_0x21f446(0x1a2)]=_0x21ba00,this[_0x21f446(0x256)]());}[_0x554f52(0x256)](){const _0x2771ed=_0x554f52;this['_sheetSkeletonManagerService'][_0x2771ed(0x153)][_0x2771ed(0x279)]($[_0x2771ed(0x1d7)](this[_0x2771ed(0x1cc)]),$[_0x2771ed(0x2ff)](_0x10dcd5=>{const _0x10c870=_0x2771ed;if(_0x10dcd5){const _0xa0d420=_0x10dcd5['sheetId'];return d[_0x10c870(0x355)](this[_0x10c870(0x37f)]['getCollabCursors$'](this[_0x10c870(0x361)]['unitId']),this[_0x10c870(0x1a2)][_0x10c870(0x1af)])[_0x10c870(0x279)]($[_0x10c870(0x1b3)](([_0x2d72c4,_0x360155])=>{const _0x57ea5f=_0x10c870,_0xe94388=new Map();return _0x2d72c4[_0x57ea5f(0x190)]((_0x143f12,_0x254f04)=>{const _0x23cdfc=_0x57ea5f;if(_0x143f12[_0x23cdfc(0x38f)]===_0xa0d420){const _0x32547f={..._0x143f12};_0x32547f['color']=this['_themeService']['getColorFromTheme'](_0x143f12[_0x23cdfc(0x2e2)]),_0xe94388['set'](_0x254f04,_0x32547f);}}),{'skeleton':_0x10dcd5,'cursors':_0xe94388};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2771ed(0x377)](({skeleton:_0x1765ef,cursors:_0x4f5504})=>{const _0x2a697e=_0x2771ed;this[_0x2a697e(0x350)](),_0x1765ef&&this[_0x2a697e(0x286)](_0x1765ef,_0x4f5504);}),this[_0x2771ed(0x30f)][_0x2771ed(0x153)][_0x2771ed(0x377)](_0x1dcc8b=>{const _0x31dfc6=_0x2771ed;if(_0x1dcc8b==null)return;const {skeleton:_0x3d480e}=_0x1dcc8b,{scene:_0xe471e8}=this[_0x31dfc6(0x361)];_0xe471e8[_0x31dfc6(0x285)]['subscribeEvent'](a[_0x31dfc6(0x1c6)](_0x4c0cc4=>{const _0x3c8196=_0x31dfc6;var _0x50f78a,_0x23a599;const {offsetX:_0x425e7e,offsetY:_0x10213c}=_0x4c0cc4,{x:_0x276697,y:_0x15ea78}=_0xe471e8['getRelativeToViewportCoord'](p[_0x3c8196(0x31c)][_0x3c8196(0x18b)]([_0x425e7e,_0x10213c])),{scaleX:_0xde81c4,scaleY:_0xe733c0}=_0xe471e8['getAncestorScale'](),_0x8c5021=_0xe471e8[_0x3c8196(0x239)](p[_0x3c8196(0x213)][_0x3c8196(0x2e1)]),_0x24cd2b=_0xe471e8[_0x3c8196(0x281)](p[_0x3c8196(0x31c)][_0x3c8196(0x18b)]([_0x276697,_0x15ea78]),_0x8c5021),_0x1a6dc1=_0x3d480e[_0x3c8196(0x390)](_0x425e7e,_0x10213c,_0xde81c4,_0xe733c0,_0x24cd2b);((_0x50f78a=this['_lastPointer'])==null?void 0x0:_0x50f78a[_0x3c8196(0x367)])===_0x1a6dc1[_0x3c8196(0x367)]&&((_0x23a599=this[_0x3c8196(0x32c)])==null?void 0x0:_0x23a599[_0x3c8196(0x3a6)])===_0x1a6dc1[_0x3c8196(0x3a6)]||this['_cursors']['forEach'](_0x44e394=>{const _0xbdeb91=_0x3c8196;_0x44e394[_0xbdeb91(0x2cb)](_0x1a6dc1);});},0x64));});}[_0x554f52(0x286)](_0x40b7e9,_0x32aeea){const _0x13d373=_0x554f52;var _0x5ec97c;const _0x3b423a=(_0x5ec97c=this['_sheetSkeletonManagerService'][_0x13d373(0x15b)]())==null?void 0x0:_0x5ec97c[_0x13d373(0x329)];if(!_0x3b423a)return;const _0x4a381b=this[_0x13d373(0x1f3)]();if(!_0x4a381b)return;this['_cursors'][_0x13d373(0x190)](_0x4fdcf6=>{const _0xb8ebd2=_0x13d373;_0x4fdcf6[_0xb8ebd2(0x2ab)]();});const {scene:_0xb8cb0a}=_0x4a381b,_0x340d0a=yt(Array['from'](_0x32aeea[_0x13d373(0x302)]()))[_0x13d373(0x1b3)](_0x2c329b=>{const _0x5b009f=_0x13d373,{color:_0xbc5c3c,range:_0x3909e9,name:_0x24ec81,selection:_0x429a56,sheetID:_0x2bf81f}=_0x2c329b,{startColumn:_0x1e1f83,startRow:_0x208c1c,endColumn:_0x498d1e,endRow:_0x2296ee}=_0x3909e9,_0x5df87d=G[_0x5b009f(0x264)](_0x208c1c,_0x1e1f83,_0xb8cb0a,_0x3b423a),_0x2f69e6=G['getCoordByCell'](_0x2296ee,_0x498d1e,_0xb8cb0a,_0x3b423a),{columnHeaderHeightAndMarginTop:_0x5cfc39}=_0x3b423a,{startX:_0x1559ce,startY:_0x310d24}=_0x5df87d,{endX:_0x28f009,endY:_0x2eb4aa}=_0x2f69e6,_0x445c98=_0x28f009-_0x1559ce,_0x27ff24=_0x2eb4aa-_0x310d24,_0x4ab575={'labelPosition':_0x310d24-_0x5cfc39>=W?_0x5b009f(0x275):_0x5b009f(0x2fd),'sheetID':_0x2bf81f,'range':_0x3909e9,'color':_0xbc5c3c,'name':_0x24ec81,'selection':_0x429a56,'left':_0x1559ce,'top':_0x310d24,'width':_0x445c98,'height':_0x27ff24,'evented':!0x1,'zIndex':At};return new $e(_0x24ec81,_0x4ab575);});_0xb8cb0a[_0x13d373(0x249)](_0x340d0a,Mt),this[_0x13d373(0x37b)]=new Set(_0x340d0a);}[_0x554f52(0x350)](){const _0x1b2171=_0x554f52;var _0x4c45ae;(_0x4c45ae=this[_0x1b2171(0x37b)])==null||_0x4c45ae[_0x1b2171(0x190)](_0x2f2bf1=>_0x2f2bf1[_0x1b2171(0x21d)]());}[_0x554f52(0x1f3)](){const _0x58ddf7=_0x554f52;return G['getSheetObject'](this[_0x58ddf7(0x361)][_0x58ddf7(0x31e)],this[_0x58ddf7(0x361)]);}};Ie=wt([ae(0x1,a['Inject'](G['SheetSkeletonManagerService'])),ae(0x2,a[_0x554f52(0x1ca)](x)),ae(0x3,a[_0x554f52(0x1ca)](a[_0x554f52(0x27d)]))],Ie);function yt(_0x2bae05){const _0x1f40c2=_0x554f52,_0x3f6722=new Map();return _0x2bae05[_0x1f40c2(0x190)](_0x1575df=>{const _0x10e240=_0x1f40c2;if(_0x3f6722[_0x10e240(0x20e)](_0x1575df['selection'])){const _0x1a2f65=_0x3f6722[_0x10e240(0x2e8)](_0x1575df['selection']);_0x1a2f65['name']+=',\x20'+_0x1575df[_0x10e240(0x277)];}else _0x3f6722[_0x10e240(0x2a8)](_0x1575df[_0x10e240(0x15c)],_0x1575df);}),Array[_0x1f40c2(0x34a)](_0x3f6722[_0x1f40c2(0x302)]());}var $t=Object[_0x554f52(0x22b)],xt=(_0x29bea9,_0x44df94,_0x48b4cf,_0x1e2ed1)=>{const _0x294aed=_0x554f52;for(var _0x64068f=_0x1e2ed1>0x1?void 0x0:_0x1e2ed1?$t(_0x44df94,_0x48b4cf):_0x44df94,_0x49c03c=_0x29bea9[_0x294aed(0x2ed)]-0x1,_0x2df80f;_0x49c03c>=0x0;_0x49c03c--)(_0x2df80f=_0x29bea9[_0x49c03c])&&(_0x64068f=_0x2df80f(_0x64068f)||_0x64068f);return _0x64068f;},y=(_0x450ddd,_0x407132)=>(_0x3b6fd3,_0x421571)=>_0x407132(_0x3b6fd3,_0x421571,_0x450ddd);let q=class extends a['Disposable']{constructor(_0x421e11,_0x3e7486,_0x189979,_0x3ffe13,_0x1c343a,_0x172839){const _0x1a9969=_0x554f52;super(),this[_0x1a9969(0x3a3)]=_0x421e11,this[_0x1a9969(0x35d)]=_0x3e7486,this[_0x1a9969(0x3af)]=_0x189979,this['_messageService']=_0x3ffe13,this[_0x1a9969(0x23a)]=_0x1c343a,this[_0x1a9969(0x3be)]=_0x172839,this[_0x1a9969(0x2b5)](),this[_0x1a9969(0x2da)]();}['_setupBeforeClosingHandler'](){const _0x246a27=_0x554f52;this[_0x246a27(0x292)](this[_0x246a27(0x3a3)]['registerBeforeClose'](()=>{const _0x329170=_0x246a27;if(this['_localCacheService'][_0x329170(0x1ad)][_0x329170(0x185)])return this[_0x329170(0x3be)]['t'](_0x329170(0x2d9));}));}['_initEvent'](){const _0x372e84=_0x554f52;this['disposeWithMe'](this['_collaborationUIEventService'][_0x372e84(0x32e)][_0x372e84(0x377)](_0x2fe7c3=>{const _0x26d47a=_0x372e84;_0x2fe7c3['id']===u[_0x26d47a(0x20c)][_0x26d47a(0x1d4)]&&this[_0x26d47a(0x309)][_0x26d47a(0x170)]({'type':D['MessageType'][_0x26d47a(0x2b6)],'content':this[_0x26d47a(0x3be)]['t'](_0x26d47a(0x317))}),_0x2fe7c3['id']===u[_0x26d47a(0x20c)]['CLOSE_ROOM']&&this[_0x26d47a(0x309)][_0x26d47a(0x170)]({'type':D['MessageType']['Warning'],'content':this[_0x26d47a(0x3be)]['t'](_0x26d47a(0x2a6))}),_0x2fe7c3['id']===u[_0x26d47a(0x20c)][_0x26d47a(0x30b)]&&this['_notificationService']['show']({'title':this[_0x26d47a(0x3be)]['t'](_0x26d47a(0x358)),'content':this[_0x26d47a(0x3be)]['t']('permission.content'),'type':_0x26d47a(0x1c8),'duration':0x0}),_0x2fe7c3['id']===u[_0x26d47a(0x20c)][_0x26d47a(0x36b)]&&this[_0x26d47a(0x309)]['show']({'type':D[_0x26d47a(0x398)][_0x26d47a(0x38b)],'content':this[_0x26d47a(0x3be)]['t'](_0x26d47a(0x2a6))+'('+_0x2fe7c3[_0x26d47a(0x2ae)]+')'}),_0x2fe7c3['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this['_messageService'][_0x26d47a(0x170)]({'type':D[_0x26d47a(0x398)][_0x26d47a(0x2b6)],'content':this[_0x26d47a(0x3be)]['t'](_0x2fe7c3['data']||'')}),_0x2fe7c3['id']===u[_0x26d47a(0x20c)][_0x26d47a(0x1de)]&&this['_messageService']['show']({'type':D[_0x26d47a(0x398)][_0x26d47a(0x2b6)],'content':this[_0x26d47a(0x3be)]['t'](_0x26d47a(0x2f0))}),_0x2fe7c3['id']===u[_0x26d47a(0x20c)][_0x26d47a(0x2ce)]&&this['_messageService'][_0x26d47a(0x170)]({'type':D[_0x26d47a(0x398)][_0x26d47a(0x38b)],'content':this['_localeService']['t']('session.connection-failed')}),_0x2fe7c3['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x26d47a(0x309)][_0x26d47a(0x170)]({'type':D[_0x26d47a(0x398)][_0x26d47a(0x38b)],'content':this['_localeService']['t'](_0x26d47a(0x1f6))});}));}};q=xt([y(0x0,O[_0x554f52(0x1c3)]),y(0x1,u[_0x554f52(0x366)]),y(0x2,a[_0x554f52(0x1ca)](u[_0x554f52(0x150)])),y(0x3,O[_0x554f52(0x385)]),y(0x4,O[_0x554f52(0x333)]),y(0x5,a[_0x554f52(0x1ca)](a[_0x554f52(0x22d)]))],q);const Bt=_0x554f52(0x30e),De={};var jt=Object['getOwnPropertyDescriptor'],kt=(_0x4a3f24,_0x7d2c4d,_0x58058b,_0x5e72f4)=>{for(var _0x5cb5bd=_0x5e72f4>0x1?void 0x0:_0x5e72f4?jt(_0x7d2c4d,_0x58058b):_0x7d2c4d,_0x27c674=_0x4a3f24['length']-0x1,_0x5e9383;_0x27c674>=0x0;_0x27c674--)(_0x5e9383=_0x4a3f24[_0x27c674])&&(_0x5cb5bd=_0x5e9383(_0x5cb5bd)||_0x5cb5bd);return _0x5cb5bd;},Ue=(_0x34cbb3,_0x198d1d)=>(_0x2b610c,_0x32c9c5)=>_0x198d1d(_0x2b610c,_0x32c9c5,_0x34cbb3);let z=class{constructor(_0x1508b6,_0x17cb1f){const _0x34f8c0=_0x554f52;this[_0x34f8c0(0x2aa)]=_0x1508b6,this[_0x34f8c0(0x1db)]=_0x17cb1f;}[_0x554f52(0x332)](_0x3e3f9a){const _0x116761=_0x554f52;this['_transformUndoRedoStack'](_0x3e3f9a),this[_0x116761(0x25f)](_0x3e3f9a);}[_0x554f52(0x311)](_0x58653a){const _0x182e5b=_0x554f52,{unitID:_0x5b4328}=_0x58653a,_0x26a7bc=this['_renderManagerService'][_0x182e5b(0x297)](_0x5b4328)[_0x182e5b(0x20f)](E[_0x182e5b(0x176)]),{redoCache:_0x4456e7}=_0x26a7bc[_0x182e5b(0x35e)]();if(_0x4456e7['length']===0x0)return _0x58653a;let _0x13578f=a[_0x182e5b(0x369)]['deepClone'](_0x58653a[_0x182e5b(0x21b)][0x0]);for(let _0x445ec2=0x0;_0x445ec2<_0x4456e7[_0x182e5b(0x2ed)];_0x445ec2++){const _0x5b1278={'id':_0x182e5b(0x384),'params':{..._0x4456e7[_0x445ec2]}},_0xdade54=this[_0x182e5b(0x2aa)]['transformMutation'](_0x13578f,_0x5b1278,!0x1);if(m['isTransformMutationFailure'](_0xdade54))throw _0xdade54[_0x182e5b(0x1c8)];_0x13578f=_0xdade54['m1Prime'];}return{...a['Tools'][_0x182e5b(0x363)](_0x58653a),'mutations':[_0x13578f]};}[_0x554f52(0x294)](_0x1caac7){const _0x2f3ca3=_0x554f52,{unitID:_0xfa9f14}=_0x1caac7,_0x549b22=this['_renderManagerService'][_0x2f3ca3(0x297)](_0xfa9f14)[_0x2f3ca3(0x20f)](E[_0x2f3ca3(0x176)]),{undoCache:_0x4e2ca4,redoCache:_0x1ad440}=_0x549b22[_0x2f3ca3(0x35e)]();if(_0x4e2ca4[_0x2f3ca3(0x2ed)]===0x0||_0x1ad440[_0x2f3ca3(0x2ed)]===0x0)return;const _0xefe036=[],_0x33a9f9=[];let _0x5a66f0=a[_0x2f3ca3(0x369)][_0x2f3ca3(0x363)](_0x1caac7[_0x2f3ca3(0x21b)][0x0]),_0x4a0c08=a[_0x2f3ca3(0x369)][_0x2f3ca3(0x363)](_0x1caac7[_0x2f3ca3(0x21b)][0x0]);for(let _0x491451=_0x4e2ca4[_0x2f3ca3(0x2ed)]-0x1;_0x491451>=0x0;_0x491451--){const _0x344d9f={'id':_0x2f3ca3(0x384),'params':{..._0x4e2ca4[_0x491451]}},_0x3c6b5f={'id':_0x2f3ca3(0x384),'params':{..._0x1ad440[_0x491451]}},_0x42988f=this[_0x2f3ca3(0x2aa)][_0x2f3ca3(0x340)](_0x5a66f0,_0x344d9f,!0x1),_0xe0b74=this['_transformService'][_0x2f3ca3(0x340)](_0x4a0c08,_0x3c6b5f,!0x1);if(m[_0x2f3ca3(0x343)](_0x42988f))throw _0x42988f[_0x2f3ca3(0x1c8)];if(m[_0x2f3ca3(0x343)](_0xe0b74))throw _0xe0b74['error'];_0xefe036[_0x2f3ca3(0x219)](_0x42988f['m2Prime']['params']),_0x33a9f9[_0x2f3ca3(0x219)](_0xe0b74[_0x2f3ca3(0x2cd)][_0x2f3ca3(0x22e)]),_0x5a66f0=_0x42988f[_0x2f3ca3(0x3cb)],_0x4a0c08=_0xe0b74['m1Prime'];}_0x549b22['setUndoRedoMutationParamsCache']({'undoCache':_0xefe036,'redoCache':_0x33a9f9});}['_transformPreviousActiveRange'](_0x1c26e4){const _0x2a1eed=_0x554f52,{unitID:_0x2ad303}=_0x1c26e4,_0x4d0c0d=this[_0x2a1eed(0x1db)][_0x2a1eed(0x297)](_0x2ad303)[_0x2a1eed(0x20f)](E[_0x2a1eed(0x176)]),_0x421fd8=_0x4d0c0d[_0x2a1eed(0x231)]();if(_0x421fd8==null)return;const _0x8df504=[{'id':_0x2a1eed(0x384),'params':{'unitId':_0x1c26e4['unitID'],'actions':null,'textRanges':[_0x421fd8]}}],_0x877ce5=this['_transformService'][_0x2a1eed(0x1fa)](_0x1c26e4,_0x8df504);if(!m[_0x2a1eed(0x397)](_0x877ce5))throw _0x877ce5[_0x2a1eed(0x1c8)];const _0x499492=_0x877ce5[_0x2a1eed(0x2cd)][0x0]['params']['textRanges'];Array[_0x2a1eed(0x1ce)](_0x499492)&&_0x499492[_0x2a1eed(0x2ed)]&&_0x4d0c0d['setActiveRange'](_0x499492[0x0]);}};z=kt([Ue(0x0,m['ITransformService']),Ue(0x1,p[_0x554f52(0x248)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x5ed211,_0x2dd59f,_0x218ce1,_0x416703)=>{const _0x493d86=_0x554f52;for(var _0x559061=_0x416703>0x1?void 0x0:_0x416703?Ft(_0x2dd59f,_0x218ce1):_0x2dd59f,_0x455318=_0x5ed211[_0x493d86(0x2ed)]-0x1,_0x53a961;_0x455318>=0x0;_0x455318--)(_0x53a961=_0x5ed211[_0x455318])&&(_0x559061=_0x53a961(_0x559061)||_0x559061);return _0x559061;},ce=(_0x3967b7,_0x2dd09d)=>(_0x685dd9,_0x55d432)=>_0x2dd09d(_0x685dd9,_0x55d432,_0x3967b7);let J=class{constructor(_0x103823,_0x1fd378,_0x1f68b4){const _0x1cccc6=_0x554f52;this[_0x1cccc6(0x3a4)]=_0x103823,this[_0x1cccc6(0x2aa)]=_0x1fd378,this[_0x1cccc6(0x16b)]=_0x1f68b4;}[_0x554f52(0x2f6)](_0x293394){const _0x2b9824=_0x554f52;this[_0x2b9824(0x15d)](_0x293394);}[_0x554f52(0x311)](_0x1543fb){const _0x403a39=_0x554f52,{unitID:_0xcf5b1e}=_0x1543fb,{collaboration:_0x3adf7d}=this[_0x403a39(0x16b)][_0x403a39(0x303)](_0xcf5b1e);if(_0x3adf7d[_0x403a39(0x2ed)]===0x0)return _0x1543fb;let _0x3d501b=a[_0x403a39(0x369)][_0x403a39(0x363)](_0x1543fb[_0x403a39(0x21b)][0x0]);for(let _0x2e4db7=0x0;_0x2e4db7<_0x3adf7d[_0x403a39(0x2ed)];_0x2e4db7++){const _0x2d3ba8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3adf7d[_0x2e4db7][_0x403a39(0x2bb)],..._0x3adf7d[_0x2e4db7][_0x403a39(0x20b)]}},_0x3e956d=this[_0x403a39(0x2aa)]['transformMutation'](_0x3d501b,_0x2d3ba8,!0x1);if(m[_0x403a39(0x343)](_0x3e956d))throw _0x3e956d[_0x403a39(0x1c8)];_0x3d501b=_0x3e956d[_0x403a39(0x3cb)];}return{...a[_0x403a39(0x369)][_0x403a39(0x363)](_0x1543fb),'mutations':[_0x3d501b]};}[_0x554f52(0x15d)](_0x4ca31d){const _0x523694=_0x554f52,{unitID:_0x49c1f0}=_0x4ca31d,{history:_0x23c8c2,collaboration:_0x2e9948}=this['_docStateChangeManagerService']['getStateCache'](_0x49c1f0);if(_0x23c8c2[_0x523694(0x2ed)]===0x0&&_0x2e9948[_0x523694(0x2ed)]===0x0)return;const _0x47762a=[],_0x30445e=[];let _0x26ccc8=a[_0x523694(0x369)][_0x523694(0x363)](_0x4ca31d[_0x523694(0x21b)][0x0]),_0x380af5=a[_0x523694(0x369)][_0x523694(0x363)](_0x4ca31d[_0x523694(0x21b)][0x0]);for(let _0x5b468b=_0x23c8c2[_0x523694(0x2ed)]-0x1;_0x5b468b>=0x0;_0x5b468b--){const _0x322a5d={'id':_0x523694(0x384),'params':{'unitId':_0x23c8c2[_0x5b468b][_0x523694(0x2bb)],..._0x23c8c2[_0x5b468b][_0x523694(0x34f)]}},_0x16680e={'id':_0x523694(0x384),'params':{'unitId':_0x23c8c2[_0x5b468b][_0x523694(0x2bb)],..._0x23c8c2[_0x5b468b]['redoState']}},_0x1d4428=this[_0x523694(0x2aa)][_0x523694(0x340)](_0x26ccc8,_0x322a5d,!0x1),_0x4e436a=this[_0x523694(0x2aa)][_0x523694(0x340)](_0x380af5,_0x16680e,!0x1);if(m[_0x523694(0x343)](_0x1d4428))throw _0x1d4428[_0x523694(0x1c8)];if(m[_0x523694(0x343)](_0x4e436a))throw _0x4e436a[_0x523694(0x1c8)];_0x47762a[_0x523694(0x219)]({..._0x23c8c2[_0x5b468b],'undoState':_0x1d4428['m2Prime'][_0x523694(0x22e)],'redoState':_0x4e436a[_0x523694(0x2cd)][_0x523694(0x22e)]}),_0x26ccc8=_0x1d4428[_0x523694(0x3cb)],_0x380af5=_0x4e436a['m1Prime'];}_0x26ccc8=a['Tools'][_0x523694(0x363)](_0x4ca31d[_0x523694(0x21b)][0x0]),_0x380af5=a[_0x523694(0x369)][_0x523694(0x363)](_0x4ca31d[_0x523694(0x21b)][0x0]);for(let _0x9b514=_0x2e9948['length']-0x1;_0x9b514>=0x0;_0x9b514--){const _0xbd4841={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e9948[_0x9b514][_0x523694(0x2bb)],..._0x2e9948[_0x9b514]['undoState']}},_0x337409={'id':_0x523694(0x384),'params':{'unitId':_0x2e9948[_0x9b514][_0x523694(0x2bb)],..._0x2e9948[_0x9b514]['redoState']}},_0x549f6b=this[_0x523694(0x2aa)][_0x523694(0x340)](_0x26ccc8,_0xbd4841,!0x1),_0x41fe0f=this[_0x523694(0x2aa)][_0x523694(0x340)](_0x380af5,_0x337409,!0x1);if(m[_0x523694(0x343)](_0x549f6b))throw _0x549f6b[_0x523694(0x1c8)];if(m['isTransformMutationFailure'](_0x41fe0f))throw _0x41fe0f[_0x523694(0x1c8)];_0x30445e['unshift']({..._0x2e9948[_0x9b514],'undoState':_0x549f6b[_0x523694(0x2cd)]['params'],'redoState':_0x41fe0f[_0x523694(0x2cd)][_0x523694(0x22e)]}),_0x26ccc8=_0x549f6b['m1Prime'],_0x380af5=_0x41fe0f[_0x523694(0x3cb)];}this[_0x523694(0x16b)][_0x523694(0x3bc)](_0x49c1f0,{'history':_0x47762a,'collaboration':_0x30445e});}};J=Ht([ce(0x0,a['Inject'](a[_0x554f52(0x1eb)])),ce(0x1,m[_0x554f52(0x23b)]),ce(0x2,a[_0x554f52(0x1ca)](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x554f52(0x22b)],Wt=(_0x1783c0,_0x5f3e5f,_0x3f1184,_0x3a23ae)=>{const _0x214e4d=_0x554f52;for(var _0x14079f=_0x3a23ae>0x1?void 0x0:_0x3a23ae?Yt(_0x5f3e5f,_0x3f1184):_0x5f3e5f,_0x31e3f0=_0x1783c0[_0x214e4d(0x2ed)]-0x1,_0x5b1dc9;_0x31e3f0>=0x0;_0x31e3f0--)(_0x5b1dc9=_0x1783c0[_0x31e3f0])&&(_0x14079f=_0x5b1dc9(_0x14079f)||_0x14079f);return _0x14079f;},Ne=(_0x36cbcb,_0x56ef34)=>(_0x1e4d07,_0x4e4d09)=>_0x56ef34(_0x1e4d07,_0x4e4d09,_0x36cbcb);let Z=class{constructor(_0x5ed777,_0x2d109a){const _0x2c900c=_0x554f52;this[_0x2c900c(0x3a4)]=_0x5ed777,this[_0x2c900c(0x2aa)]=_0x2d109a;}[_0x554f52(0x180)](_0x4e5cec){const _0x168b3f=_0x554f52;var _0x46c588;const _0x400471=this[_0x168b3f(0x3a4)][_0x168b3f(0x2e8)](Y['DocSelectionManagerService']),_0xe1fbe2=(_0x46c588=_0x400471[_0x168b3f(0x36d)]())!=null?_0x46c588:[];if(_0xe1fbe2[_0x168b3f(0x2ed)]===0x0)return;const _0x2cd4ea=_0x4e5cec[_0x168b3f(0x3c8)],_0x3c0832=[{'id':_0x168b3f(0x384),'params':{'unitId':_0x2cd4ea,'actions':null,'textRanges':_0xe1fbe2}}],_0x548402=this['_transformService'][_0x168b3f(0x1fa)](_0x4e5cec,_0x3c0832);if(!m[_0x168b3f(0x397)](_0x548402))throw _0x548402[_0x168b3f(0x1c8)];const _0x43471c=_0x548402[_0x168b3f(0x2cd)][0x0]['params'][_0x168b3f(0x295)];Array[_0x168b3f(0x1ce)](_0x43471c)&&_0x43471c[_0x168b3f(0x2ed)]&&_0x400471['replaceDocRanges'](_0x43471c,{'unitId':_0x2cd4ea,'subUnitId':_0x2cd4ea},!0x1);}};Z=Wt([Ne(0x0,a[_0x554f52(0x1ca)](a[_0x554f52(0x1eb)])),Ne(0x1,m[_0x554f52(0x23b)])],Z);var Vt=Object[_0x554f52(0x22b)],Xt=(_0x44fa7d,_0x6d22a9,_0x1d5668,_0x3f5636)=>{for(var _0x545fd5=_0x3f5636>0x1?void 0x0:_0x3f5636?Vt(_0x6d22a9,_0x1d5668):_0x6d22a9,_0x11b0d8=_0x44fa7d['length']-0x1,_0x583048;_0x11b0d8>=0x0;_0x11b0d8--)(_0x583048=_0x44fa7d[_0x11b0d8])&&(_0x545fd5=_0x583048(_0x545fd5)||_0x545fd5);return _0x545fd5;},N=(_0x481964,_0x30fe1f)=>(_0x4c1ac3,_0xfbb6f9)=>_0x30fe1f(_0x4c1ac3,_0xfbb6f9,_0x481964);let Q=class extends a[_0x554f52(0x243)]{constructor(_0x260fef,_0x3f64e7,_0x2b9920,_0xf50c15,_0x2809ca,_0x3b1b2a,_0x265af5,_0x54c027){const _0x4a7115=_0x554f52;super(),h(this,_0x4a7115(0x2db),new d[(_0x4a7115(0x17d))](u[_0x4a7115(0x232)]['NOT_COLLAB'])),(this[_0x4a7115(0x16b)]=_0x260fef,this['_collaborationController']=_0x3f64e7,this['_docTransformIMECacheService']=_0x2b9920,this[_0x4a7115(0x29b)]=_0xf50c15,this[_0x4a7115(0x396)]=_0x2809ca,this[_0x4a7115(0x23c)]=_0x3b1b2a,this[_0x4a7115(0x309)]=_0x265af5,this[_0x4a7115(0x3be)]=_0x54c027,this[_0x4a7115(0x2f2)]());}[_0x554f52(0x2f2)](){const _0x53666e=_0x554f52;this['disposeWithMe'](this[_0x53666e(0x22a)][_0x53666e(0x1f8)]['subscribe'](_0x5d5bed=>{const _0x411d46=_0x53666e,_0x4e1377=this[_0x411d46(0x16b)][_0x411d46(0x1bc)][_0x411d46(0x377)](_0x19966e=>{const _0x479efc=_0x411d46;if(_0x19966e==null)return;const {unitId:_0x1d8aeb,redoState:_0x20c291,commandId:_0x571846}=_0x19966e;if(_0x1d8aeb!==_0x5d5bed[_0x479efc(0x3c8)])return;const _0x19588b={'id':_0x571846,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x1d8aeb,'actions':_0x20c291[_0x479efc(0x2c3)],'textRanges':null}};_0x5d5bed['onLocalMutation'](_0x19588b);});if(_0x5d5bed[_0x411d46(0x292)](_0x4e1377),_0x5d5bed instanceof u[_0x411d46(0x1e9)]){const _0x2ebf39={'onTransformIME':_0x55281f=>this[_0x411d46(0x25b)]['transformIMECache'](_0x55281f),'onTransformState':_0x1e7bc3=>this[_0x411d46(0x29b)][_0x411d46(0x2f6)](_0x1e7bc3),'onTransformSelections':_0x4a12bf=>this[_0x411d46(0x396)][_0x411d46(0x180)](_0x4a12bf),'onSyncEditingCollabCursor':_0x29de76=>this[_0x411d46(0x23c)][_0x411d46(0x208)](_0x29de76),'onTransformRemoteChangesetByIMECache':_0x1a201f=>this[_0x411d46(0x25b)][_0x411d46(0x311)](_0x1a201f),'onTransformRemoteChangesetByStateCache':_0x44c5e2=>this[_0x411d46(0x29b)][_0x411d46(0x311)](_0x44c5e2)};_0x5d5bed['addHandlerCallback'](_0x2ebf39);}}));}};Q=Xt([N(0x0,a[_0x554f52(0x1ca)](E[_0x554f52(0x19e)])),N(0x1,a[_0x554f52(0x1ca)](u[_0x554f52(0x2a0)])),N(0x2,a[_0x554f52(0x1ca)](z)),N(0x3,a[_0x554f52(0x1ca)](J)),N(0x4,a[_0x554f52(0x1ca)](Z)),N(0x5,a['Inject'](pe)),N(0x6,O[_0x554f52(0x385)]),N(0x7,a[_0x554f52(0x1ca)](a[_0x554f52(0x22d)]))],Q);function _0xd284(_0x444c08,_0x1b6334){const _0x2068e4=_0x2068();return _0xd284=function(_0xd284b9,_0x3dbd99){_0xd284b9=_0xd284b9-0x14f;let _0x3eca96=_0x2068e4[_0xd284b9];return _0x3eca96;},_0xd284(_0x444c08,_0x1b6334);}var Gt=Object[_0x554f52(0x22b)],Kt=(_0x1329c8,_0x1a914c,_0x3f22de,_0x338cd9)=>{const _0xcf611a=_0x554f52;for(var _0x37347=_0x338cd9>0x1?void 0x0:_0x338cd9?Gt(_0x1a914c,_0x3f22de):_0x1a914c,_0x8d8667=_0x1329c8[_0xcf611a(0x2ed)]-0x1,_0x1857b7;_0x8d8667>=0x0;_0x8d8667--)(_0x1857b7=_0x1329c8[_0x8d8667])&&(_0x37347=_0x1857b7(_0x37347)||_0x37347);return _0x37347;},le=(_0x2293f8,_0x2beda4)=>(_0x13110b,_0x3c9c66)=>_0x2beda4(_0x13110b,_0x3c9c66,_0x2293f8);let ve=class extends a['Disposable']{constructor(_0x5be432,_0x6c0366,_0x51e13d){const _0x5859be=_0x554f52;super(),h(this,_0x5859be(0x338),new Map()),h(this,_0x5859be(0x36f),new Map()),h(this,_0x5859be(0x308),!0x1),(this['_configService']=_0x5be432,this[_0x5859be(0x23d)]=_0x6c0366,this[_0x5859be(0x1cb)]=_0x51e13d);}[_0x554f52(0x3a2)](){const _0x2a1127=_0x554f52;this[_0x2a1127(0x308)]=!0x0;}[_0x554f52(0x1bb)](){const _0x1a33f1=_0x554f52;this[_0x1a33f1(0x308)]=!0x1;}get[_0x554f52(0x1ad)](){const _0x563d5f=_0x554f52;return this[_0x563d5f(0x36f)];}[_0x554f52(0x21d)](){const _0xcf5d38=_0x554f52;this[_0xcf5d38(0x1b0)]()[_0xcf5d38(0x324)](()=>super[_0xcf5d38(0x21d)]());}async[_0x554f52(0x187)](_0x3bf641){const _0x3b245b=_0x554f52;return this[_0x3b245b(0x308)]?null:this['_localStorageService'][_0x3b245b(0x29a)](u['getLocalCacheKey'](_0x3bf641));}async[_0x554f52(0x18c)](_0x3896c2,_0x38a99b){const _0x59144f=_0x554f52;return!!this[_0x59144f(0x23d)][_0x59144f(0x2f8)](_0x3896c2,_0x38a99b);}[_0x554f52(0x25e)](_0x33293c,_0x5ecdbb,_0x113a82,_0x23a1dc){const _0x5c689b=_0x554f52,_0x6125df=this[_0x5c689b(0x1cb)][_0x5c689b(0x36a)](_0x33293c);this[_0x5c689b(0x338)][_0x5c689b(0x2a8)](_0x33293c,{'unitID':_0x33293c,'type':_0x5ecdbb,'awaitingChangeset':_0x113a82,'mutations':_0x23a1dc,'rev':_0x6125df}),this['_saveTaskMap']['has'](_0x33293c)||this['_scheduleSaving'](_0x33293c);}[_0x554f52(0x334)](_0x394b31){const _0x2f9219=_0x554f52,_0x1787e3=this[_0x2f9219(0x379)]();_0x1787e3===0x0?this['_saveCache'](_0x394b31):this[_0x2f9219(0x36f)][_0x2f9219(0x2a8)](_0x394b31,setTimeout(()=>this[_0x2f9219(0x37c)](_0x394b31),_0x1787e3));}[_0x554f52(0x379)](){const _0x64cb0d=_0x554f52;var _0x3fe5cd;return(_0x3fe5cd=this[_0x64cb0d(0x268)]['getConfig'](u[_0x64cb0d(0x204)]))!=null?_0x3fe5cd:u[_0x64cb0d(0x263)];}[_0x554f52(0x37c)](_0x4706e2){const _0x51f6d6=_0x554f52,_0x1ce8bb=this[_0x51f6d6(0x36f)][_0x51f6d6(0x2e8)](_0x4706e2);return _0x1ce8bb!==void 0x0&&window['clearTimeout'](_0x1ce8bb),this[_0x51f6d6(0x23d)][_0x51f6d6(0x2f8)](u[_0x51f6d6(0x211)](_0x4706e2),this[_0x51f6d6(0x338)][_0x51f6d6(0x2e8)](_0x4706e2))['then'](()=>this[_0x51f6d6(0x36f)][_0x51f6d6(0x233)](_0x4706e2));}async[_0x554f52(0x1b0)](){const _0x2b2e0c=_0x554f52,_0x5a1ed1=[];this[_0x2b2e0c(0x36f)][_0x2b2e0c(0x190)]((_0x4a1ee6,_0x2012a1)=>{const _0x167a55=_0x2b2e0c;window[_0x167a55(0x245)](_0x4a1ee6),_0x5a1ed1['push'](this[_0x167a55(0x37c)](_0x2012a1)[_0x167a55(0x324)](()=>{const _0x5dbc6b=_0x167a55;this[_0x5dbc6b(0x36f)][_0x5dbc6b(0x233)](_0x2012a1);}));}),await Promise['all'](_0x5a1ed1);}};ve=Kt([le(0x0,a['IConfigService']),le(0x1,a['ILocalStorageService']),le(0x2,a[_0x554f52(0x1ca)](m[_0x554f52(0x28e)]))],ve);class xe extends a[_0x554f52(0x32a)]{constructor(){const _0x1fac0d=_0x554f52;super(),h(this,_0x1fac0d(0x174)),this[_0x1fac0d(0x174)]=d[_0x1fac0d(0x304)](window,_0x1fac0d(0x3b0))['pipe'](d[_0x1fac0d(0x1d7)](this[_0x1fac0d(0x1cc)]),d['shareReplay'](0x1),d[_0x1fac0d(0x39e)](void 0x0));}['setParam'](_0x32a9e9,_0x43004a,_0x3098c8=!0x1){const _0x21d1b7=_0x554f52,_0xd7fea5=new URL(window[_0x21d1b7(0x2b8)][_0x21d1b7(0x388)]);_0xd7fea5['searchParams']['set'](_0x32a9e9,_0x43004a),_0x3098c8?window[_0x21d1b7(0x183)]['replaceState']('','',_0xd7fea5[_0x21d1b7(0x217)]()):window[_0x21d1b7(0x183)]['pushState']('','',_0xd7fea5[_0x21d1b7(0x217)]());}[_0x554f52(0x3a5)](_0x5774a3,_0x1ed9b2=!0x1){const _0x4fa187=_0x554f52,_0x5439bb=new URL(window[_0x4fa187(0x2b8)][_0x4fa187(0x388)]);_0x5439bb[_0x4fa187(0x33c)][_0x4fa187(0x233)](_0x5774a3),_0x1ed9b2?window['history'][_0x4fa187(0x1c9)]('','',_0x5439bb[_0x4fa187(0x217)]()):window[_0x4fa187(0x183)][_0x4fa187(0x265)]('','',_0x5439bb[_0x4fa187(0x217)]());}[_0x554f52(0x330)](_0x242eee){const _0x21fd1c=_0x554f52;var _0x48ede1;return(_0x48ede1=new URL(window[_0x21fd1c(0x2b8)]['href'])['searchParams'][_0x21fd1c(0x2e8)](_0x242eee))!=null?_0x48ede1:void 0x0;}}var qt=Object[_0x554f52(0x182)],zt=Object[_0x554f52(0x22b)],Jt=(_0x21b33,_0x50489f,_0x575bdc)=>_0x50489f in _0x21b33?qt(_0x21b33,_0x50489f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x575bdc}):_0x21b33[_0x50489f]=_0x575bdc,Zt=(_0x22ee73,_0x38f380,_0x5a62ab,_0x10311f)=>{const _0x14986f=_0x554f52;for(var _0x4132d0=_0x10311f>0x1?void 0x0:_0x10311f?zt(_0x38f380,_0x5a62ab):_0x38f380,_0xe8dd22=_0x22ee73[_0x14986f(0x2ed)]-0x1,_0x4cc217;_0xe8dd22>=0x0;_0xe8dd22--)(_0x4cc217=_0x22ee73[_0xe8dd22])&&(_0x4132d0=_0x4cc217(_0x4132d0)||_0x4132d0);return _0x4132d0;},_e=(_0xe75960,_0x30f195)=>(_0x2935d3,_0xbab6b1)=>_0x30f195(_0x2935d3,_0xbab6b1,_0xe75960),Qt=(_0x22978e,_0x136e47,_0x14e85a)=>Jt(_0x22978e,_0x136e47+'',_0x14e85a);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x554f52(0x31f)]=class extends a[_0x554f52(0x284)]{constructor(_0x42f1f2=De,_0x20eb95,_0x11c592,_0x4e6cac){const _0x22cbf2=_0x554f52;super(),this[_0x22cbf2(0x328)]=_0x42f1f2,this[_0x22cbf2(0x1db)]=_0x20eb95,this['_injector']=_0x11c592,this[_0x22cbf2(0x268)]=_0x4e6cac;const {..._0x3dc1c9}=a[_0x22cbf2(0x226)]({},De,this[_0x22cbf2(0x328)]);this[_0x22cbf2(0x268)][_0x22cbf2(0x1da)](Bt,_0x3dc1c9);}[_0x554f52(0x1cf)](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x554f52(0x2a2)](){const _0xb940d7=_0x554f52;var _0x28009e;const _0x1d6de8=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0xb940d7(0x199)],{'useClass':K[_0xb940d7(0x189)]}],[u[_0xb940d7(0x366)],{'useClass':ve}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[ue],[exports[_0xb940d7(0x156)]]];a['registerDependencies'](this[_0xb940d7(0x3a4)],a[_0xb940d7(0x1a4)](_0x1d6de8,(_0x28009e=this[_0xb940d7(0x328)])==null?void 0x0:_0x28009e['override']));}[_0x554f52(0x351)](){const _0x538a1d=_0x554f52;this[_0x538a1d(0x292)](this[_0x538a1d(0x1db)][_0x538a1d(0x34b)](a[_0x538a1d(0x331)][_0x538a1d(0x335)],[fe])),this[_0x538a1d(0x292)](this[_0x538a1d(0x1db)][_0x538a1d(0x34b)](a[_0x538a1d(0x331)][_0x538a1d(0x261)],[Ie]));}[_0x554f52(0x209)](){const _0x23332d=_0x554f52;a[_0x23332d(0x2e9)](this[_0x23332d(0x3a4)],[[x],[exports[_0x23332d(0x30c)]],[Q],[q],[exports[_0x23332d(0x156)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x554f52(0x163),es),exports[_0x554f52(0x31f)]=Zt([a['DependentOn'](u[_0x554f52(0x3b6)]),_e(0x1,p[_0x554f52(0x248)]),_e(0x2,a[_0x554f52(0x1ca)](a['Injector'])),_e(0x3,a[_0x554f52(0x246)])],exports[_0x554f52(0x31f)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x381b74,_0x2fe759,_0x38529e,_0x11ff8e)=>{for(var _0x1e6c5e=_0x11ff8e>0x1?void 0x0:_0x11ff8e?ts(_0x2fe759,_0x38529e):_0x2fe759,_0x44cb47=_0x381b74['length']-0x1,_0x2dcbd1;_0x44cb47>=0x0;_0x44cb47--)(_0x2dcbd1=_0x381b74[_0x44cb47])&&(_0x1e6c5e=_0x2dcbd1(_0x1e6c5e)||_0x1e6c5e);return _0x1e6c5e;},H=(_0x299ef2,_0x6c4aeb)=>(_0x2113c7,_0x2a6e46)=>_0x6c4aeb(_0x2113c7,_0x2a6e46,_0x299ef2);exports[_0x554f52(0x1ea)]=class extends u['CollaborationSocketService']{constructor(_0xe21fa,_0x2c1a24,_0x35a8f2,_0x1da05f,_0x547fe4){super(_0xe21fa,_0x2c1a24,_0x35a8f2,_0x1da05f,_0x547fe4);}async[_0x554f52(0x30d)](_0x21a500){const _0x570c35=_0x554f52,_0xfb8344=await this[_0x570c35(0x38a)](),_0x173648=this['_createSocketURL'](_0x21a500,_0xfb8344);return this[_0x570c35(0x194)](_0x173648);}[_0x554f52(0x27f)](_0x30ffc1,_0x28dff5){const _0x32f9b9=_0x554f52,_0x201631=typeof window>'u'?new URL(_0x30ffc1):new URL(_0x30ffc1,window[_0x32f9b9(0x2b8)][_0x32f9b9(0x3ba)]);_0x201631[_0x32f9b9(0x33c)][_0x32f9b9(0x2a8)](_0x32f9b9(0x39a),_0x28dff5);const _0x266b3c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x32f9b9(0x274)]);return _0x266b3c[_0x32f9b9(0x2e8)](_0x32f9b9(0x151))&&_0x201631[_0x32f9b9(0x33c)][_0x32f9b9(0x2a8)](_0x32f9b9(0x151),_0x266b3c[_0x32f9b9(0x2e8)]('runId')),_0x201631[_0x32f9b9(0x217)]();}async[_0x554f52(0x38a)](){const _0x3e16ec=_0x554f52;var _0x3a964d,_0x5490a2,_0x23e424;const _0x273a09=this[_0x3e16ec(0x268)]['getConfig'](u[_0x3e16ec(0x383)]),_0x33697f=(_0x3a964d=_0x273a09==null?void 0x0:_0x273a09[_0x3e16ec(0x195)])!=null?_0x3a964d:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x23e424=(_0x5490a2=(await this[_0x3e16ec(0x3bf)][_0x3e16ec(0x2e8)](_0x33697f,{'headers':{'Content-Type':_0x3e16ec(0x23f)}}))[_0x3e16ec(0x353)])==null?void 0x0:_0x5490a2[_0x3e16ec(0x3b9)])!=null?_0x23e424:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x554f52(0x1ca)](a['Injector'])),H(0x1,a[_0x554f52(0x1ca)](K[_0x554f52(0x3ca)])),H(0x2,a[_0x554f52(0x246)]),H(0x3,a[_0x554f52(0x155)]),H(0x4,m[_0x554f52(0x220)])],exports[_0x554f52(0x1ea)]);var Be=(_0x1d5e92=>(_0x1d5e92[_0x1d5e92['UNDEFINED']=0x0]=_0x554f52(0x2ee),_0x1d5e92[_0x1d5e92['OK']=0x1]='OK',_0x1d5e92[_0x1d5e92[_0x554f52(0x221)]=0x2]=_0x554f52(0x221),_0x1d5e92[_0x1d5e92[_0x554f52(0x30b)]=0x3]='PERMISSION_DENIED',_0x1d5e92[_0x1d5e92[_0x554f52(0x1d6)]=0x4]=_0x554f52(0x1d6),_0x1d5e92[_0x1d5e92['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x1d5e92[_0x1d5e92['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x1d5e92[_0x1d5e92[_0x554f52(0x18d)]=0x7]='INVALID_ARGUMENT',_0x1d5e92[_0x1d5e92[_0x554f52(0x1f5)]=0x8]=_0x554f52(0x1f5),_0x1d5e92[_0x1d5e92[_0x554f52(0x1cd)]=0x9]=_0x554f52(0x1cd),_0x1d5e92[_0x1d5e92[_0x554f52(0x252)]=0xa]=_0x554f52(0x252),_0x1d5e92[_0x1d5e92['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x554f52(0x1f2),_0x1d5e92[_0x1d5e92[_0x554f52(0x39b)]=0xc]=_0x554f52(0x39b),_0x1d5e92[_0x1d5e92[_0x554f52(0x184)]=0xd]=_0x554f52(0x184),_0x1d5e92[_0x1d5e92['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x554f52(0x346),_0x1d5e92[_0x1d5e92['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x554f52(0x167),_0x1d5e92[_0x1d5e92[_0x554f52(0x228)]=0x1771]=_0x554f52(0x228),_0x1d5e92[_0x1d5e92['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x554f52(0x2c6),_0x1d5e92[_0x1d5e92['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x554f52(0x1d8),_0x1d5e92[_0x1d5e92[_0x554f52(0x236)]=0x1b59]=_0x554f52(0x236),_0x1d5e92[_0x1d5e92[_0x554f52(0x19f)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1d5e92[_0x1d5e92['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x554f52(0x1e2),_0x1d5e92[_0x1d5e92['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1d5e92[_0x1d5e92[_0x554f52(0x224)]=0x1b5d]=_0x554f52(0x224),_0x1d5e92[_0x1d5e92[_0x554f52(0x2a3)]=0x1f41]=_0x554f52(0x2a3),_0x1d5e92[_0x1d5e92[_0x554f52(0x3c9)]=0x2329]=_0x554f52(0x3c9),_0x1d5e92[_0x1d5e92[_0x554f52(0x34d)]=0x232a]=_0x554f52(0x34d),_0x1d5e92[_0x1d5e92['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x554f52(0x223),_0x1d5e92[_0x1d5e92[_0x554f52(0x321)]=0x232c]=_0x554f52(0x321),_0x1d5e92[_0x1d5e92['LICENSE_DISTRO_REJECTED']=0x232d]=_0x554f52(0x391),_0x1d5e92[_0x1d5e92[_0x554f52(0x3bd)]=0x2711]=_0x554f52(0x3bd),_0x1d5e92[_0x1d5e92[_0x554f52(0x27a)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1d5e92[_0x1d5e92[_0x554f52(0x1f9)]=0x2713]=_0x554f52(0x1f9),_0x1d5e92[_0x1d5e92[_0x554f52(0x345)]=0x2714]=_0x554f52(0x345),_0x1d5e92[_0x1d5e92[_0x554f52(0x2b7)]=0x271a]=_0x554f52(0x2b7),_0x1d5e92[_0x1d5e92[_0x554f52(0x37d)]=0x271b]=_0x554f52(0x37d),_0x1d5e92[_0x1d5e92['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x554f52(0x21a),_0x1d5e92[_0x1d5e92[_0x554f52(0x3c7)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x1d5e92[_0x1d5e92[_0x554f52(0x364)]=0x271e]=_0x554f52(0x364),_0x1d5e92[_0x1d5e92[_0x554f52(0x19b)]=0x271f]=_0x554f52(0x19b),_0x1d5e92[_0x1d5e92[_0x554f52(0x35a)]=0x2720]=_0x554f52(0x35a),_0x1d5e92[_0x1d5e92['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x554f52(0x29d),_0x1d5e92[_0x1d5e92[_0x554f52(0x269)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x1d5e92[_0x1d5e92['INVALID_INVITE_CODE']=0x2ee2]=_0x554f52(0x374),_0x1d5e92[_0x1d5e92['INVITE_CODE_REQUIRED']=0x2ee3]=_0x554f52(0x2bc),_0x1d5e92[_0x1d5e92[_0x554f52(0x1ac)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x1d5e92[_0x1d5e92[_0x554f52(0x179)]=0x2ee5]=_0x554f52(0x179),_0x1d5e92[_0x1d5e92[_0x554f52(0x33d)]=0x32c9]=_0x554f52(0x33d),_0x1d5e92[_0x1d5e92['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x554f52(0x2b9),_0x1d5e92[_0x1d5e92[_0x554f52(0x197)]=0x32cb]=_0x554f52(0x197),_0x1d5e92[_0x1d5e92[_0x554f52(0x323)]=-0x1]=_0x554f52(0x323),_0x1d5e92))(Be||{}),is=Object[_0x554f52(0x22b)],ns=(_0x160f61,_0x1378b8,_0x29695c,_0x11b9e3)=>{const _0x49d1ef=_0x554f52;for(var _0x31e2d8=_0x11b9e3>0x1?void 0x0:_0x11b9e3?is(_0x1378b8,_0x29695c):_0x1378b8,_0x2aa8ca=_0x160f61[_0x49d1ef(0x2ed)]-0x1,_0xaf1f22;_0x2aa8ca>=0x0;_0x2aa8ca--)(_0xaf1f22=_0x160f61[_0x2aa8ca])&&(_0x31e2d8=_0xaf1f22(_0x31e2d8)||_0x31e2d8);return _0x31e2d8;},he=(_0x3ea1b9,_0x51ad01)=>(_0x37dc12,_0x14cffe)=>_0x51ad01(_0x37dc12,_0x14cffe,_0x3ea1b9);exports['RemoteUniscriptService']=class extends a[_0x554f52(0x243)]{constructor(_0x493804,_0x4356f1,_0x6edd34){const _0x3554a7=_0x554f52;super(),this[_0x3554a7(0x254)]=_0x493804,this['_httpService']=_0x4356f1,this['_configService']=_0x6edd34;}async[_0x554f52(0x1b2)](_0x49199f,_0x1ca32d,_0x415dd3,..._0x39ea12){const _0x3134e0=_0x554f52;var _0xf267df,_0x1492ce,_0x3a3619,_0x54d8fe;const _0x49fc3b=this['_instanceService'][_0x3134e0(0x337)]();if(!_0x49fc3b)throw new Error(_0x3134e0(0x14f));const _0x1d6b6b=((_0xf267df=this[_0x3134e0(0x268)][_0x3134e0(0x28b)](u[_0x3134e0(0x162)]))!=null?_0xf267df:u[_0x3134e0(0x28f)])+'/'+_0x49199f+_0x3134e0(0x368)+_0x1ca32d,_0x58d9ed=new URL(window[_0x3134e0(0x2b8)][_0x3134e0(0x388)]),_0x51bb57={'scriptId':_0x49199f,'runId':(_0x1492ce=_0x58d9ed[_0x3134e0(0x33c)][_0x3134e0(0x2e8)](_0x3134e0(0x151)))!=null?_0x1492ce:'','function':_0x1ca32d,'unitId':_0x49fc3b[_0x3134e0(0x1fd)](),'argsOfFunction':JSON['stringify'](_0x39ea12),'invokeId':(_0x3a3619=_0x415dd3['invokeId'])!=null?_0x3a3619:'','executionId':(_0x54d8fe=_0x415dd3['executionId'])!=null?_0x54d8fe:''};try{const _0x44b2fc=await this[_0x3134e0(0x3bf)]['post'](_0x1d6b6b,{'body':_0x51bb57});return _0x44b2fc['body'][_0x3134e0(0x1c8)]&&_0x44b2fc[_0x3134e0(0x353)][_0x3134e0(0x1c8)]['code']!==Be['OK']?_0x3134e0(0x34c):_0x44b2fc[_0x3134e0(0x353)][_0x3134e0(0x255)];}catch{return _0x3134e0(0x34c);}}},exports[_0x554f52(0x2ef)]=ns([he(0x0,a[_0x554f52(0x1aa)]),he(0x1,a['Inject'](K[_0x554f52(0x3ca)])),he(0x2,a[_0x554f52(0x246)])],exports[_0x554f52(0x2ef)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class rs extends a['Disposable']{constructor(){const _0x76e2f=_0x554f52;super(),h(this,_0x76e2f(0x26b),a[_0x76e2f(0x359)]()),h(this,_0x76e2f(0x230),new Set()),h(this,'_unitOnClients',new Map()),h(this,'_heartbeatTimer',null),h(this,_0x76e2f(0x2d7),new Map()),h(this,_0x76e2f(0x3c3),new Map()),this[_0x76e2f(0x256)]();}['dispose'](){const _0x4ffbfb=_0x554f52;super[_0x4ffbfb(0x21d)](),this[_0x4ffbfb(0x2d7)]['forEach']((_0x2f927c,_0x487609)=>this[_0x4ffbfb(0x1bf)](_0x487609)),this[_0x4ffbfb(0x365)]&&window[_0x4ffbfb(0x16d)](this['_heartbeatTimer']);}[_0x554f52(0x2dd)](_0x1d50a5){const _0x2be52a=_0x554f52;return this[_0x2be52a(0x177)](_0x1d50a5)[_0x2be52a(0x279)](d[_0x2be52a(0x188)]());}[_0x554f52(0x17a)](_0x4bac32){const _0x531058=_0x554f52;this['_selfUnitIDs'][_0x531058(0x185)]===0x0&&this['_scheduleHeartbeat'](),this[_0x531058(0x230)][_0x531058(0x1be)](_0x4bac32),this[_0x531058(0x293)]({'type':0x0,'memberID':this[_0x531058(0x26b)],'unitIDs':[_0x4bac32],'isForwarded':!0x1});}['disposeUnit'](_0x1aff2d){const _0x150719=_0x554f52;this['_selfUnitIDs'][_0x150719(0x233)](_0x1aff2d),this[_0x150719(0x230)]['size']===0x0&&this[_0x150719(0x365)]&&window[_0x150719(0x16d)](this[_0x150719(0x365)]);}[_0x554f52(0x256)](){const _0x20b486=_0x554f52;this[_0x20b486(0x292)](a[_0x20b486(0x2ac)](d['fromEvent'](window,'storage')['subscribe'](_0x14a7f5=>{const _0x1581ab=_0x20b486;if(_0x14a7f5[_0x1581ab(0x2b1)]!==Le||!_0x14a7f5[_0x1581ab(0x1df)])return;const _0x470e00=JSON[_0x1581ab(0x32b)](_0x14a7f5['newValue']);this[_0x1581ab(0x3c4)](_0x470e00);}))),window['addEventListener'](_0x20b486(0x2c8),()=>this['_send']({'type':0x1,'memberID':this[_0x20b486(0x26b)],'unitIDs':Array[_0x20b486(0x34a)](this[_0x20b486(0x230)])}));}[_0x554f52(0x3c4)](_0x21a906){const _0x2c7e44=_0x554f52;switch(_0x21a906[_0x2c7e44(0x172)]){case 0x0:this[_0x2c7e44(0x392)](_0x21a906);break;case 0x1:this['_handleLeaveEvent'](_0x21a906);break;case 0x2:this[_0x2c7e44(0x2a5)](_0x21a906);break;}}['_handleJoinEvent'](_0x4a81bf){const _0x1d046b=_0x554f52,{unitIDs:_0x4d50e4,memberID:_0x5d6353,isForwarded:_0x5291ae}=_0x4a81bf;_0x4d50e4[_0x1d046b(0x190)](_0x59b69a=>{const _0x1c68e5=_0x1d046b;if(!_0x5291ae&&this['_unitOnClients'][_0x1c68e5(0x20e)](_0x59b69a)&&this[_0x1c68e5(0x177)](_0x59b69a)['next'](u[_0x1c68e5(0x2f5)]['OTHER_CLIENTS_EDITING']),!this[_0x1c68e5(0x360)][_0x1c68e5(0x20e)](_0x59b69a)||!this[_0x1c68e5(0x360)][_0x1c68e5(0x2e8)](_0x59b69a)[_0x1c68e5(0x20e)](_0x5d6353)){const _0x59f1a2=this[_0x1c68e5(0x360)][_0x1c68e5(0x2e8)](_0x59b69a)||new Set();_0x59f1a2[_0x1c68e5(0x1be)](_0x5d6353),this['_unitOnClients']['set'](_0x59b69a,_0x59f1a2),this[_0x1c68e5(0x352)](_0x5d6353);}}),_0x5291ae||this[_0x1d046b(0x293)]({'type':0x0,'memberID':this[_0x1d046b(0x26b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x554f52(0x352)](_0x21395f){const _0x5c3d24=_0x554f52;this[_0x5c3d24(0x1bf)](_0x21395f);const _0x5c0cb3=window[_0x5c3d24(0x2d0)](()=>{const _0x395052=_0x5c3d24;this[_0x395052(0x360)][_0x395052(0x190)](_0x4bd0b9=>{_0x4bd0b9['delete'](_0x21395f);});},Me*0x2);this[_0x5c3d24(0x2d7)][_0x5c3d24(0x2a8)](_0x21395f,_0x5c0cb3);}[_0x554f52(0x1bf)](_0x505c57){const _0x320992=_0x554f52;if(this['_clearOtherTimers'][_0x320992(0x20e)](_0x505c57)){const _0x2919bd=this[_0x320992(0x2d7)][_0x320992(0x2e8)](_0x505c57);_0x2919bd&&window[_0x320992(0x245)](_0x2919bd),this[_0x320992(0x2d7)][_0x320992(0x2a8)](_0x505c57,null);}}['_handleLeaveEvent'](_0x5c7fb1){const _0x1b1bc5=_0x554f52,{memberID:_0x32503f,unitIDs:_0x2c611e}=_0x5c7fb1;_0x2c611e[_0x1b1bc5(0x190)](_0x233fba=>{const _0x2dad38=_0x1b1bc5;var _0x318437;const _0xc40af5=this[_0x2dad38(0x360)][_0x2dad38(0x2e8)](_0x233fba);_0xc40af5&&(_0xc40af5[_0x2dad38(0x233)](_0x32503f),(_0x318437=this[_0x2dad38(0x177)](_0x233fba))==null||_0x318437[_0x2dad38(0x357)](_0xc40af5[_0x2dad38(0x185)]===0x0?u[_0x2dad38(0x2f5)][_0x2dad38(0x2fa)]:u[_0x2dad38(0x2f5)][_0x2dad38(0x378)]));}),this[_0x1b1bc5(0x1bf)](_0x32503f);}[_0x554f52(0x2a5)](_0x556750){const _0x8abc62=_0x554f52;this[_0x8abc62(0x352)](_0x556750[_0x8abc62(0x376)]);}[_0x554f52(0x293)](_0x360ef8){const _0x10a9dd=_0x554f52;localStorage[_0x10a9dd(0x2f8)](Le,JSON[_0x10a9dd(0x393)](_0x360ef8));}['_scheduleHeartbeat'](){const _0x4deb69=_0x554f52;this[_0x4deb69(0x365)]=window[_0x4deb69(0x28d)](()=>{const _0x15c4c5=_0x4deb69;this[_0x15c4c5(0x293)]({'type':0x2,'memberID':this[_0x15c4c5(0x26b)]});},Me);}[_0x554f52(0x177)](_0x5606b6){const _0x5aaa18=_0x554f52;return this[_0x5aaa18(0x3c3)][_0x5aaa18(0x20e)](_0x5606b6)||this[_0x5aaa18(0x3c3)]['set'](_0x5606b6,new d[(_0x5aaa18(0x17d))](u[_0x5aaa18(0x2f5)][_0x5aaa18(0x2fa)])),this[_0x5aaa18(0x3c3)]['get'](_0x5606b6);}}exports[_0x554f52(0x1c5)]=me,exports[_0x554f52(0x1dc)]=$e,exports[_0x554f52(0x1ed)]=rs,exports[_0x554f52(0x22c)]=xe;
|
|
1
|
+
'use strict';const _0x6c52c3=_0xc584;(function(_0x327732,_0x2f751f){const _0xcb2f1b=_0xc584,_0x2d1689=_0x327732();while(!![]){try{const _0x2e74d2=parseInt(_0xcb2f1b(0x3e0))/0x1+-parseInt(_0xcb2f1b(0x38e))/0x2+-parseInt(_0xcb2f1b(0x290))/0x3+parseInt(_0xcb2f1b(0x396))/0x4+-parseInt(_0xcb2f1b(0x3d1))/0x5+parseInt(_0xcb2f1b(0x229))/0x6+-parseInt(_0xcb2f1b(0x253))/0x7*(parseInt(_0xcb2f1b(0x1f9))/0x8);if(_0x2e74d2===_0x2f751f)break;else _0x2d1689['push'](_0x2d1689['shift']());}catch(_0x270373){_0x2d1689['push'](_0x2d1689['shift']());}}}(_0x4304,0xc31cd));var Ge=Object['defineProperty'],Xe=(_0x2b62d7,_0xfd420a,_0x28aa7d)=>_0xfd420a in _0x2b62d7?Ge(_0x2b62d7,_0xfd420a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28aa7d}):_0x2b62d7[_0xfd420a]=_0x28aa7d,_=(_0x205676,_0x3a0135,_0x40dc51)=>Xe(_0x205676,typeof _0x3a0135!=_0x6c52c3(0x3b3)?_0x3a0135+'':_0x3a0135,_0x40dc51);Object[_0x6c52c3(0x3d2)](exports,Symbol[_0x6c52c3(0x1d5)],{'value':_0x6c52c3(0x419)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=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');var O=function(){const _0xa68dd1=_0x6c52c3;return O=Object[_0xa68dd1(0x376)]||function(_0x938469){const _0x5dcc5d=_0xa68dd1;for(var _0x720c70,_0x514965=0x1,_0x28b781=arguments[_0x5dcc5d(0x1f0)];_0x514965<_0x28b781;_0x514965++){_0x720c70=arguments[_0x514965];for(var _0x5ef009 in _0x720c70)Object[_0x5dcc5d(0x418)][_0x5dcc5d(0x28f)][_0x5dcc5d(0x3c4)](_0x720c70,_0x5ef009)&&(_0x938469[_0x5ef009]=_0x720c70[_0x5ef009]);}return _0x938469;},O[_0xa68dd1(0x435)](this,arguments);},ze=function(_0x502f12,_0x5bb590){const _0x273215=_0x6c52c3;var _0x13ead3={};for(var _0x15db27 in _0x502f12)Object[_0x273215(0x418)][_0x273215(0x28f)]['call'](_0x502f12,_0x15db27)&&_0x5bb590[_0x273215(0x433)](_0x15db27)<0x0&&(_0x13ead3[_0x15db27]=_0x502f12[_0x15db27]);if(_0x502f12!=null&&typeof Object[_0x273215(0x3e2)]==_0x273215(0x3b2)){for(var _0x313c84=0x0,_0x15db27=Object[_0x273215(0x3e2)](_0x502f12);_0x313c84<_0x15db27[_0x273215(0x1f0)];_0x313c84++)_0x5bb590['indexOf'](_0x15db27[_0x313c84])<0x0&&Object[_0x273215(0x418)]['propertyIsEnumerable'][_0x273215(0x3c4)](_0x502f12,_0x15db27[_0x313c84])&&(_0x13ead3[_0x15db27[_0x313c84]]=_0x502f12[_0x15db27[_0x313c84]]);}return _0x13ead3;},pe=L[_0x6c52c3(0x232)](function(_0x31697e,_0x460e1a){const _0x80f5d7=_0x6c52c3;var _0x205fd3=_0x31697e[_0x80f5d7(0x2ee)],_0x22c656=_0x31697e['id'],_0x5b938b=_0x31697e['className'],_0x5a4861=_0x31697e[_0x80f5d7(0x37e)],_0x520907=ze(_0x31697e,[_0x80f5d7(0x2ee),'id',_0x80f5d7(0x383),_0x80f5d7(0x37e)]),_0x5cb134=_0x80f5d7(0x292)[_0x80f5d7(0x316)](_0x22c656,'\x20')[_0x80f5d7(0x316)](_0x5b938b||'')[_0x80f5d7(0x408)](),_0x43c74d=L[_0x80f5d7(0x2c2)]('_'['concat'](Qe()));return ye(_0x205fd3,''['concat'](_0x22c656),{'defIds':_0x205fd3[_0x80f5d7(0x320)],'idSuffix':_0x43c74d['current']},O({'ref':_0x460e1a,'className':_0x5cb134},_0x520907),_0x5a4861);});function ye(_0x59d600,_0x4164f4,_0x55895a,_0x37ecf3,_0x2ad7ae){const _0x383789=_0x6c52c3;return L[_0x383789(0x3ab)](_0x59d600[_0x383789(0x1c4)],O(O({'key':_0x4164f4},Je(_0x59d600,_0x55895a,_0x2ad7ae)),_0x37ecf3),(Ze(_0x59d600,_0x55895a)[_0x383789(0x269)]||[])[_0x383789(0x32a)](function(_0x5c0f94,_0x1da221){const _0x2d7f55=_0x383789;return ye(_0x5c0f94,''[_0x2d7f55(0x316)](_0x4164f4,'-')['concat'](_0x59d600[_0x2d7f55(0x1c4)],'-')[_0x2d7f55(0x316)](_0x1da221),_0x55895a,void 0x0,_0x2ad7ae);}));}function Je(_0x4061f9,_0x26ddd8,_0x308a8c){const _0x5464c6=_0x6c52c3;var _0x50d9e5=O({},_0x4061f9[_0x5464c6(0x3fc)]);_0x308a8c!=null&&_0x308a8c[_0x5464c6(0x261)]&&_0x50d9e5[_0x5464c6(0x2fb)]===_0x5464c6(0x261)&&(_0x50d9e5[_0x5464c6(0x2fb)]=_0x308a8c[_0x5464c6(0x261)]),_0x4061f9['tag']===_0x5464c6(0x31f)&&_0x50d9e5['id']&&(_0x50d9e5['id']=_0x50d9e5['id']+_0x26ddd8[_0x5464c6(0x1f2)]),Object['entries'](_0x50d9e5)[_0x5464c6(0x1b1)](function(_0x469ffa){const _0x5ea94a=_0x5464c6;var _0x29628c=_0x469ffa[0x0],_0x2e72ec=_0x469ffa[0x1];_0x29628c==='mask'&&typeof _0x2e72ec==_0x5ea94a(0x2a8)&&(_0x50d9e5[_0x29628c]=_0x2e72ec[_0x5ea94a(0x37a)](/url\(#(.*)\)/,_0x5ea94a(0x38f)['concat'](_0x26ddd8[_0x5ea94a(0x1f2)],')')));});var _0x550ac0=_0x26ddd8['defIds'];return!_0x550ac0||_0x550ac0[_0x5464c6(0x1f0)]===0x0||(_0x4061f9['tag']===_0x5464c6(0x30f)&&_0x50d9e5[_0x5464c6(0x283)]&&(_0x50d9e5[_0x5464c6(0x283)]=_0x50d9e5[_0x5464c6(0x283)]+_0x26ddd8[_0x5464c6(0x1f2)]),Object[_0x5464c6(0x2ff)](_0x50d9e5)[_0x5464c6(0x1b1)](function(_0x43634c){const _0x59960a=_0x5464c6;var _0x24cbe6=_0x43634c[0x0],_0xba7cf4=_0x43634c[0x1];typeof _0xba7cf4==_0x59960a(0x2a8)&&(_0x50d9e5[_0x24cbe6]=_0xba7cf4[_0x59960a(0x37a)](/url\(#(.*)\)/,_0x59960a(0x38f)['concat'](_0x26ddd8[_0x59960a(0x1f2)],')')));})),_0x50d9e5;}function Ze(_0x2f961f,_0x4074f1){const _0x5a56e6=_0x6c52c3;var _0x34ef36,_0x34a49f=_0x4074f1[_0x5a56e6(0x320)];return!_0x34a49f||_0x34a49f[_0x5a56e6(0x1f0)]===0x0?_0x2f961f:_0x2f961f[_0x5a56e6(0x1c4)]===_0x5a56e6(0x21e)&&(!((_0x34ef36=_0x2f961f['children'])===null||_0x34ef36===void 0x0)&&_0x34ef36[_0x5a56e6(0x1f0)])?O(O({},_0x2f961f),{'children':_0x2f961f[_0x5a56e6(0x269)][_0x5a56e6(0x32a)](function(_0x3cc663){const _0x4a6ec6=_0x5a56e6;return typeof _0x3cc663[_0x4a6ec6(0x3fc)]['id']==_0x4a6ec6(0x2a8)&&_0x34a49f&&_0x34a49f[_0x4a6ec6(0x238)](_0x3cc663[_0x4a6ec6(0x3fc)]['id'])?O(O({},_0x3cc663),{'attrs':O(O({},_0x3cc663[_0x4a6ec6(0x3fc)]),{'id':_0x3cc663[_0x4a6ec6(0x3fc)]['id']+_0x4074f1[_0x4a6ec6(0x1f2)]})}):_0x3cc663;})}):_0x2f961f;}function Qe(){const _0x28f411=_0x6c52c3;return Math[_0x28f411(0x3fb)]()['toString'](0x24)[_0x28f411(0x3ac)](0x2,0x8);}pe[_0x6c52c3(0x322)]=_0x6c52c3(0x2a7);var et={'tag':_0x6c52c3(0x432),'attrs':{'xmlns':_0x6c52c3(0x2b2),'fill':_0x6c52c3(0x3f3),'viewBox':'0\x200\x2016\x2016','width':_0x6c52c3(0x28b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x6c52c3(0x1ae)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'stroke':_0x6c52c3(0x414),'d':_0x6c52c3(0x2b3),'strokeLinecap':_0x6c52c3(0x22e),'strokeLinejoin':_0x6c52c3(0x22e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x6c52c3(0x3b6),'attrs':{'id':_0x6c52c3(0x405)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'fill':_0x6c52c3(0x3d5),'d':_0x6c52c3(0x426)}}]}]}],'defIds':[_0x6c52c3(0x405)]},xe=L[_0x6c52c3(0x232)](function(_0xb6f038,_0x35f5a2){const _0x5134f6=_0x6c52c3;return L[_0x5134f6(0x3ab)](pe,Object[_0x5134f6(0x376)]({},_0xb6f038,{'id':'off-line-icon','ref':_0x35f5a2,'icon':et}));});xe[_0x6c52c3(0x322)]=_0x6c52c3(0x30a);var tt={'tag':'svg','attrs':{'xmlns':_0x6c52c3(0x2b2),'fill':_0x6c52c3(0x3f3),'viewBox':_0x6c52c3(0x43b),'width':_0x6c52c3(0x28b),'height':_0x6c52c3(0x28b)},'children':[{'tag':'g','attrs':{'clipPath':_0x6c52c3(0x36e)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'stroke':_0x6c52c3(0x414),'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':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x6c52c3(0x3a4)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'fill':_0x6c52c3(0x3d5),'d':_0x6c52c3(0x426),'transform':'translate(.97)'}}]}]}],'defIds':[_0x6c52c3(0x3a4)]},$e=L[_0x6c52c3(0x232)](function(_0xbd6205,_0x5f495f){const _0x1fdc16=_0x6c52c3;return L[_0x1fdc16(0x3ab)](pe,Object[_0x1fdc16(0x376)]({},_0xbd6205,{'id':'on-line-icon','ref':_0x5f495f,'icon':tt}));});$e[_0x6c52c3(0x322)]=_0x6c52c3(0x34e);function st(_0x419256){const _0x37f113=_0x6c52c3;switch(_0x419256){case u[_0x37f113(0x1e6)]['OFFLINE']:return _0x37f113(0x3a6);case u[_0x37f113(0x1e6)][_0x37f113(0x1f3)]:return _0x37f113(0x369);case u[_0x37f113(0x1e6)][_0x37f113(0x2e1)]:return _0x37f113(0x24c);case u[_0x37f113(0x1e6)][_0x37f113(0x340)]:return'collabStatus.notCollab';case u[_0x37f113(0x1e6)][_0x37f113(0x1a4)]:case u[_0x37f113(0x1e6)][_0x37f113(0x273)]:return _0x37f113(0x35a);case u[_0x37f113(0x1e6)][_0x37f113(0x3c2)]:case u[_0x37f113(0x1e6)][_0x37f113(0x3f5)]:return _0x37f113(0x3d7);}}function it(_0x1f4803){const _0x1bd012=_0x6c52c3,{status$:_0x36a747}=_0x1f4803,_0x4498db=R['useObservable'](_0x36a747,u[_0x1bd012(0x1e6)][_0x1bd012(0x340)]),_0x3baf40=R['useDependency'](a[_0x1bd012(0x225)]),_0x52232d=R[_0x1bd012(0x2e0)](u[_0x1bd012(0x417)]),_0x598292=_0x4498db!==u[_0x1bd012(0x1e6)][_0x1bd012(0x415)],_0x243e70=_0x3baf40['t'](st(_0x4498db)),_0x20105e=_0x598292?P['jsx']($e,{}):P[_0x1bd012(0x1e7)](xe,{}),_0x497c3f=L['useCallback'](()=>{const _0x56bd8e=_0x1bd012;_0x598292||_0x52232d[_0x56bd8e(0x2a6)]();},[_0x598292,_0x52232d]);function _0x450772(){const _0x3996ea=_0x1bd012;return P[_0x3996ea(0x22b)](_0x3996ea(0x3e3),{'className':_0x3996ea(0x27a),'onClick':_0x497c3f,'children':[P['jsx'](_0x3996ea(0x3e3),{'className':T['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x598292,'univer-text-red-500':!_0x598292}),'children':_0x20105e}),P[_0x3996ea(0x1e7)]('div',{'className':_0x3996ea(0x2d3),'children':_0x243e70})]});}return _0x598292?_0x450772():P['jsx'](T[_0x1bd012(0x39a)],{'title':_0x3baf40['t'](_0x1bd012(0x1d1)),'children':_0x450772()});}var nt=Object[_0x6c52c3(0x2ac)],rt=(_0x36e97b,_0x537fe4,_0x1443dd,_0x24c34e)=>{const _0x34d184=_0x6c52c3;for(var _0x4b414a=_0x24c34e>0x1?void 0x0:_0x24c34e?nt(_0x537fe4,_0x1443dd):_0x537fe4,_0x132522=_0x36e97b[_0x34d184(0x1f0)]-0x1,_0x2ac1a1;_0x132522>=0x0;_0x132522--)(_0x2ac1a1=_0x36e97b[_0x132522])&&(_0x4b414a=_0x2ac1a1(_0x4b414a)||_0x4b414a);return _0x4b414a;},q=(_0x2927e1,_0x321451)=>(_0x49024a,_0x29b6ef)=>_0x321451(_0x49024a,_0x29b6ef,_0x2927e1);exports[_0x6c52c3(0x2e9)]=class extends a['Disposable']{constructor(_0x5d0e62,_0x297ccd,_0x242b48,_0x3a01fe){const _0x283dec=_0x6c52c3;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x283dec(0x1e6)][_0x283dec(0x340)])),(this['_univerInstanceService']=_0x5d0e62,this[_0x283dec(0x3a1)]=_0x297ccd,this[_0x283dec(0x1de)]=_0x242b48,this[_0x283dec(0x3a9)]=_0x3a01fe,this[_0x283dec(0x3a0)](),this[_0x283dec(0x2b8)]());}['_initStatusListener'](){const _0x47b2e2=_0x6c52c3;this[_0x47b2e2(0x392)](this[_0x47b2e2(0x3dd)][_0x47b2e2(0x1d2)][_0x47b2e2(0x1b7)](I[_0x47b2e2(0x41c)](()=>{const _0x4f0630=_0x47b2e2,_0x2203f9=this[_0x4f0630(0x3dd)][_0x4f0630(0x279)]();return _0x2203f9?this[_0x4f0630(0x1de)][_0x4f0630(0x367)](_0x2203f9['getUnitId']()):I['of'](null);}),I[_0x47b2e2(0x41c)](_0x38a9ba=>_0x38a9ba?_0x38a9ba['status$']:I['of'](u['CollaborationStatus'][_0x47b2e2(0x340)])))[_0x47b2e2(0x403)](_0x53c2ad=>{const _0xc84374=_0x47b2e2;this[_0xc84374(0x3f8)][_0xc84374(0x2c9)](_0x53c2ad);}));}[_0x6c52c3(0x3a0)](){const _0x32a85e=_0x6c52c3;this[_0x32a85e(0x392)](this['_uiPartsService']['registerComponent'](R[_0x32a85e(0x3fa)][_0x32a85e(0x1c9)],()=>R[_0x32a85e(0x1ff)](ot({'status$':this[_0x32a85e(0x3f8)]['asObservable']()}),this[_0x32a85e(0x3a1)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([q(0x0,a['IUniverInstanceService']),q(0x1,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),q(0x2,a['Inject'](u[_0x6c52c3(0x3a5)])),q(0x3,R[_0x6c52c3(0x393)])],exports[_0x6c52c3(0x2e9)]);function ot(_0x392a1b){const {status$:_0x5571a1}=_0x392a1b;return function(){return P['jsx'](it,{'status$':_0x5571a1});};}const Te=a[_0x6c52c3(0x40a)](_0x6c52c3(0x318));var at=Object[_0x6c52c3(0x2ac)],ct=(_0x468c46,_0x5027e2,_0x14e9d9,_0x5dabd3)=>{const _0x3b724d=_0x6c52c3;for(var _0x54ca7d=_0x5dabd3>0x1?void 0x0:_0x5dabd3?at(_0x5027e2,_0x14e9d9):_0x5027e2,_0x212875=_0x468c46[_0x3b724d(0x1f0)]-0x1,_0x3d52d2;_0x212875>=0x0;_0x212875--)(_0x3d52d2=_0x468c46[_0x212875])&&(_0x54ca7d=_0x3d52d2(_0x54ca7d)||_0x54ca7d);return _0x54ca7d;},Y=(_0x410c1b,_0x1e052e)=>(_0x49db1f,_0x4d33bc)=>_0x1e052e(_0x49db1f,_0x4d33bc,_0x410c1b);exports[_0x6c52c3(0x3f2)]=class extends a[_0x6c52c3(0x358)]{constructor(_0xeee457,_0x3785a8,_0x4dddbf,_0x465e1a,_0x3c0a1){const _0x386b65=_0x6c52c3;super(),this['_urlService']=_0xeee457,this[_0x386b65(0x1db)]=_0x3785a8,this['_commandService']=_0x4dddbf,this[_0x386b65(0x2a4)]=_0x465e1a,_0x3c0a1?_0x3c0a1==null||_0x3c0a1[_0x386b65(0x360)]()[_0x386b65(0x1f1)](()=>this[_0x386b65(0x39e)]()):(this['_logService'][_0x386b65(0x21a)](_0x386b65(0x180),_0x386b65(0x3f6)),this['_init']());}async[_0x6c52c3(0x39e)](){const _0x19bd14=_0x6c52c3,_0x2f9695=this['_urlService'][_0x19bd14(0x23e)]('unit'),_0x313ba1=this[_0x19bd14(0x2e3)][_0x19bd14(0x23e)](_0x19bd14(0x333)),_0x350dd2=this['_urlService']['getParam'](_0x19bd14(0x3bf));if(!_0x2f9695||!_0x313ba1){this[_0x19bd14(0x1db)]['debug'](_0x19bd14(0x180),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x24442e=await this[_0x19bd14(0x2a4)][_0x19bd14(0x35d)](_0x2f9695,Number(_0x313ba1),_0x350dd2);_0x24442e&&_0x24442e instanceof a[_0x19bd14(0x23d)]&&this[_0x19bd14(0x33e)](_0x24442e);}async[_0x6c52c3(0x33e)](_0x2d4708){const _0xe5efe2=_0x6c52c3;await this[_0xe5efe2(0x388)](_0x2d4708),_0x2d4708[_0xe5efe2(0x270)]['pipe'](I[_0xe5efe2(0x3c3)](this[_0xe5efe2(0x359)]))['subscribe'](_0x387d1d=>{_0x387d1d&&this['_updateURLWithCurrentState'](_0x387d1d);}),this[_0xe5efe2(0x2e3)]['urlChange$'][_0xe5efe2(0x1b7)](I[_0xe5efe2(0x3c3)](this['dispose$']))[_0xe5efe2(0x403)](()=>this[_0xe5efe2(0x388)](_0x2d4708));}[_0x6c52c3(0x2be)](_0x402033,_0x472f2b=!0x1){const _0x41bfcc=_0x6c52c3,_0xc272b1=this['_urlService'][_0x41bfcc(0x23e)](_0x41bfcc(0x3bf));_0x402033[_0x41bfcc(0x2c6)]()!==_0xc272b1&&this[_0x41bfcc(0x2e3)][_0x41bfcc(0x329)](_0x41bfcc(0x3bf),_0x402033['getSheetId'](),_0x472f2b);}async[_0x6c52c3(0x388)](_0x116a03){const _0x37c10b=_0x6c52c3;var _0x4781a2;const _0x2c0f9d=this['_urlService'][_0x37c10b(0x23e)](_0x37c10b(0x3bf));if(!_0x2c0f9d||!_0x116a03[_0x37c10b(0x375)](_0x2c0f9d)){const _0x5829e8=_0x116a03['getUnhiddenWorksheets']()[0x0],_0x4ae30d=_0x116a03[_0x37c10b(0x375)](_0x5829e8);if(!_0x4ae30d)return;this[_0x37c10b(0x2be)](_0x4ae30d,!0x0),await this[_0x37c10b(0x25f)][_0x37c10b(0x319)](v[_0x37c10b(0x342)]['id'],{'unitId':_0x116a03['getUnitId'](),'subUnitId':_0x5829e8});return;}((_0x4781a2=_0x116a03['getActiveSheet']())==null?void 0x0:_0x4781a2[_0x37c10b(0x2c6)]())!==_0x2c0f9d&&await this[_0x37c10b(0x25f)][_0x37c10b(0x319)](v[_0x37c10b(0x342)]['id'],{'unitId':_0x116a03[_0x37c10b(0x411)](),'subUnitId':_0x2c0f9d});}},exports[_0x6c52c3(0x3f2)]=ct([Y(0x0,Te),Y(0x1,a[_0x6c52c3(0x2ca)]),Y(0x2,a[_0x6c52c3(0x391)]),Y(0x3,a['Inject'](u['DataLoaderService'])),Y(0x4,a[_0x6c52c3(0x1b6)](Ke[_0x6c52c3(0x1e5)]))],exports['CollaborationDataLoaderController']);var lt=Object[_0x6c52c3(0x2ac)],_t=(_0x427223,_0x5c32d5,_0x4a0b88,_0x1dc2e1)=>{const _0x30f383=_0x6c52c3;for(var _0x4dde01=_0x1dc2e1>0x1?void 0x0:_0x1dc2e1?lt(_0x5c32d5,_0x4a0b88):_0x5c32d5,_0x4050ec=_0x427223[_0x30f383(0x1f0)]-0x1,_0xbfa1f4;_0x4050ec>=0x0;_0x4050ec--)(_0xbfa1f4=_0x427223[_0x4050ec])&&(_0x4dde01=_0xbfa1f4(_0x4dde01)||_0x4dde01);return _0x4dde01;},be=(_0x3bca9f,_0x404bfe)=>(_0x113f2b,_0x1ef57c)=>_0x404bfe(_0x113f2b,_0x1ef57c,_0x3bca9f);let fe=class extends a['RxDisposable']{constructor(_0x901f71,_0x2233b1){const _0x190624=_0x6c52c3;super(),this[_0x190624(0x2f2)]=_0x901f71,this[_0x190624(0x25d)]=_0x2233b1,this['_init']();}[_0x6c52c3(0x39e)](){const _0x2d67e5=_0x6c52c3,_0x13be75=this;this[_0x2d67e5(0x392)](this[_0x2d67e5(0x2f2)][_0x2d67e5(0x348)]({'onBeforePasteImage':async _0x2cf500=>{const _0xfe82bc=_0x2d67e5,_0x33ae02=await _0x13be75[_0xfe82bc(0x25d)]['saveImage'](_0x2cf500);return _0x33ae02?{'source':_0x33ae02[_0xfe82bc(0x1ad)],'imageSourceType':_0x33ae02[_0xfe82bc(0x255)]}:null;}}));}};fe=_t([be(0x0,p[_0x6c52c3(0x188)]),be(0x1,qe[_0x6c52c3(0x30d)])],fe);const De=[_0x6c52c3(0x399),_0x6c52c3(0x1bf),_0x6c52c3(0x42d),_0x6c52c3(0x307),_0x6c52c3(0x3a8),'yellow.400'];class Oe extends a[_0x6c52c3(0x413)]{constructor(){const _0x127670=_0x6c52c3;super(...arguments),_(this,_0x127670(0x345),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x7a6688){const _0x17fba7=_0x6c52c3;if(this['_assignedColors'][_0x17fba7(0x27c)](_0x7a6688))return this[_0x17fba7(0x345)][_0x17fba7(0x285)](_0x7a6688);const _0x57d2c7=De[this['_colorIndex']];return this[_0x17fba7(0x309)]=(this[_0x17fba7(0x309)]+0x1)%De[_0x17fba7(0x1f0)],this['_assignedColors'][_0x17fba7(0x33f)](_0x7a6688,_0x57d2c7),_0x57d2c7;}}function Be(_0x592639){const _0x1f32a1=_0x6c52c3;let _0x4903d1='';for(const _0x14b420 of _0x592639){const {startOffset:_0x1626d1,endOffset:_0xe17052,isActive:_0x4b4c62,rangeType:_0x4f6df7,segmentId:_0x5623b7,segmentPage:_0x5a15dd}=_0x14b420;_0x4903d1[_0x1f32a1(0x1f0)]&&(_0x4903d1+=','),_0x4903d1+=_0x1626d1+':'+_0xe17052+':'+(_0x4b4c62?'1':'0')+':'+_0x4f6df7+':'+_0x5623b7+':'+_0x5a15dd;}return _0x4903d1;}function ht(_0x265472){const _0x3dbd5b=_0x6c52c3,_0x473a65=_0x265472[_0x3dbd5b(0x382)](','),_0x2fffbb=[];for(const _0x3d18f6 of _0x473a65){const [_0x285f45,_0x4a2e35,_0x39c56f,_0x17cf9e,_0x25a077,_0x1537c4]=_0x3d18f6[_0x3dbd5b(0x382)](':');_0x2fffbb[_0x3dbd5b(0x221)]({'startOffset':Number(_0x285f45),'endOffset':Number(_0x4a2e35),'collapsed':_0x285f45===_0x4a2e35,'isActive':_0x39c56f==='1','rangeType':_0x17cf9e===a[_0x3dbd5b(0x3f9)][_0x3dbd5b(0x206)]?a[_0x3dbd5b(0x3f9)][_0x3dbd5b(0x206)]:a[_0x3dbd5b(0x3f9)][_0x3dbd5b(0x3c9)],'segmentId':typeof _0x25a077==_0x3dbd5b(0x2a8)?String(_0x25a077):'','segmentPage':Number(_0x1537c4!=null?_0x1537c4:-0x1)});}return _0x2fffbb['some'](_0x3b6797=>_0x3b6797[_0x3dbd5b(0x310)])||(_0x2fffbb[0x0][_0x3dbd5b(0x310)]=!0x0),_0x2fffbb;}class Re extends a[_0x6c52c3(0x358)]{constructor(){const _0x5236da=_0x6c52c3;super(...arguments),_(this,_0x5236da(0x2cd),new I[(_0x5236da(0x22c))](null)),_(this,_0x5236da(0x1ea),this[_0x5236da(0x2cd)][_0x5236da(0x2f3)]());}[_0x6c52c3(0x420)](_0x4bd439){const _0x1a7971=_0x6c52c3,{unitID:_0x19e8f4,memberID:_0x2fd13c,textRanges:_0x211954}=_0x4bd439,_0x27a956=Be(_0x211954);if(_0x27a956==='')return;const _0x22d1e9={'unitID':_0x19e8f4,'memberID':_0x2fd13c,'selection':_0x27a956};this[_0x1a7971(0x2cd)][_0x1a7971(0x2c9)](_0x22d1e9);}}var ut=Object[_0x6c52c3(0x2ac)],It=(_0x5abe5c,_0x837874,_0xc7ec87,_0x12deb2)=>{const _0x5945e8=_0x6c52c3;for(var _0xc26621=_0x12deb2>0x1?void 0x0:_0x12deb2?ut(_0x837874,_0xc7ec87):_0x837874,_0xb4e469=_0x5abe5c[_0x5945e8(0x1f0)]-0x1,_0x31a6a0;_0xb4e469>=0x0;_0xb4e469--)(_0x31a6a0=_0x5abe5c[_0xb4e469])&&(_0xc26621=_0x31a6a0(_0xc26621)||_0xc26621);return _0xc26621;},M=(_0x144c45,_0x5ce4cf)=>(_0x4b2138,_0x4d4b76)=>_0x5ce4cf(_0x4b2138,_0x4d4b76,_0x144c45);const dt=0x12c,St=0x64;let me=class extends a[_0x6c52c3(0x358)]{constructor(_0x5cd5cd,_0x16c39e,_0x3531d4,_0x54c7c1,_0x7ceef2,_0x51e857,_0x2e4824,_0x2174d7,_0x221c1d){const _0x5d236f=_0x6c52c3;super(),_(this,_0x5d236f(0x3cc),!0x1),_(this,_0x5d236f(0x39e),!0x1),_(this,_0x5d236f(0x428),new I[(_0x5d236f(0x22c))](new Map())),_(this,_0x5d236f(0x1cc),this['_cursorInfo$'][_0x5d236f(0x2f3)]()),_(this,_0x5d236f(0x1a2),new I['BehaviorSubject']([])),_(this,'roomMembers$',this[_0x5d236f(0x1a2)][_0x5d236f(0x1b7)](I['debounceTime'](dt))),_(this,_0x5d236f(0x3e6),a[_0x5d236f(0x3d3)](_0x2f2e63=>{const _0x3b4018=_0x5d236f,_0x4f6dbd={'eventID':g[_0x3b4018(0x3e1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x3b4018(0x2ec)],'memberID':this[_0x3b4018(0x354)][_0x3b4018(0x18a)](),'selection':Be(_0x2f2e63)}};this[_0x3b4018(0x354)][_0x3b4018(0x346)](_0x4f6dbd,this['unitID']);},St)),(this[_0x5d236f(0x2ec)]=_0x5cd5cd,this['_session']=_0x16c39e,this[_0x5d236f(0x3a1)]=_0x3531d4,this[_0x5d236f(0x2d9)]=_0x54c7c1,this['_memberService']=_0x7ceef2,this[_0x5d236f(0x3c5)]=_0x51e857,this[_0x5d236f(0x3ce)]=_0x2e4824,this[_0x5d236f(0x3dd)]=_0x2174d7,this[_0x5d236f(0x25f)]=_0x221c1d);}get[_0x6c52c3(0x2fa)](){const _0x8ce41b=_0x6c52c3;return this[_0x8ce41b(0x428)][_0x8ce41b(0x2fc)]();}get[_0x6c52c3(0x32e)](){const _0x47a61d=_0x6c52c3;return this[_0x47a61d(0x1a2)][_0x47a61d(0x2fc)]();}[_0x6c52c3(0x18d)](){const _0x4a2fdc=_0x6c52c3;super[_0x4a2fdc(0x18d)](),this[_0x4a2fdc(0x428)][_0x4a2fdc(0x2c9)](new Map()),this['_cursorInfo$'][_0x4a2fdc(0x401)](),this[_0x4a2fdc(0x1a2)][_0x4a2fdc(0x2c9)]([]),this[_0x4a2fdc(0x1a2)]['complete']();}[_0x6c52c3(0x1a3)](){const _0xeda5b=_0x6c52c3;this[_0xeda5b(0x39e)]||(this[_0xeda5b(0x39e)]=!0x0,this[_0xeda5b(0x354)]['sessionStatus$'][_0xeda5b(0x1b7)](I['takeUntil'](this[_0xeda5b(0x359)]))[_0xeda5b(0x403)](_0x16f4d3=>{const _0x23876d=_0xeda5b;_0x16f4d3===u[_0x23876d(0x3b5)]['ONLINE']?this[_0x23876d(0x3f4)]():this['_toggleOffline']();}),this['_session']['event$']['pipe'](I['takeUntil'](this['dispose$']))[_0xeda5b(0x403)](_0x544980=>{const _0x32d9c4=_0xeda5b,_0x4e093f=_0x544980[_0x32d9c4(0x21d)];_0x4e093f===g[_0x32d9c4(0x3e1)][_0x32d9c4(0x2b5)]&&this[_0x32d9c4(0x361)](_0x544980),_0x4e093f===g[_0x32d9c4(0x3e1)][_0x32d9c4(0x3ef)]&&this[_0x32d9c4(0x1a8)](_0x544980);}),this['disposeWithMe'](this['_commandService'][_0xeda5b(0x22f)](_0x4b6b22=>{const _0x19ec50=_0xeda5b,_0x1fa898=_0x4b6b22[_0x19ec50(0x2f4)];_0x1fa898!=null&&this[_0x19ec50(0x3cc)]&&_0x4b6b22['id']===V[_0x19ec50(0x3d0)]['id']&&_0x1fa898['unitId']===this[_0x19ec50(0x2ec)]&&_0x1fa898['isEditing']===!0x1&&_0x1fa898[_0x19ec50(0x1c2)][_0x19ec50(0x1f0)]>0x0&&this[_0x19ec50(0x3e6)](_0x1fa898['ranges']);})),this[_0xeda5b(0x3c5)]['collabCursorState$'][_0xeda5b(0x1b7)](I[_0xeda5b(0x3c3)](this['dispose$']))['subscribe'](_0x53273a=>{const _0x3df368=_0xeda5b;if((_0x53273a==null?void 0x0:_0x53273a[_0x3df368(0x2ec)])!==this[_0x3df368(0x2ec)])return;const _0x42d742={'eventID':g[_0x3df368(0x3e1)][_0x3df368(0x2b5)],'data':_0x53273a};this[_0x3df368(0x361)](_0x42d742);}),this[_0xeda5b(0x392)](this['_commandService'][_0xeda5b(0x22f)](_0x148664=>{const _0x248469=_0xeda5b;if(_0x148664[_0x248469(0x2f4)]==null)return;const _0x15a219=_0x148664[_0x248469(0x2f4)];if(_0x148664['id']!==V[_0x248469(0x381)]['id']||_0x15a219[_0x248469(0x2b7)]!==this[_0x248469(0x2ec)])return;const _0x4b5b35={'id':_0x248469(0x339),'params':_0x15a219},_0x1606fd=this[_0x248469(0x2fa)];for(const [_0x203237,_0x1964fd]of _0x1606fd){const _0x31c64b={'id':_0x248469(0x339),'params':{'unitId':this[_0x248469(0x2ec)],'actions':null,'textRanges':_0x1964fd[_0x248469(0x1c2)]}},_0x3f3b3f=this[_0x248469(0x3ce)][_0x248469(0x1a1)](_0x4b5b35,_0x31c64b,!0x1);if(g[_0x248469(0x294)](_0x3f3b3f))throw _0x3f3b3f[_0x248469(0x384)];_0x1606fd['set'](_0x203237,{..._0x1964fd,'ranges':_0x3f3b3f['m2Prime'][_0x248469(0x2f4)][_0x248469(0x350)]});}queueMicrotask(()=>{const _0x36468f=_0x248469;this[_0x36468f(0x428)][_0x36468f(0x2c9)](_0x1606fd);});})));}[_0x6c52c3(0x361)](_0x5d24f6){const _0x403953=_0x6c52c3;var _0x293275,_0x20bda0;const {memberID:_0x23b3ec,selection:_0xa0a730}=_0x5d24f6['data'],_0x343aed=ht(_0xa0a730),_0xe57414=(_0x20bda0=(_0x293275=this[_0x403953(0x18b)][_0x403953(0x335)](this[_0x403953(0x2ec)],_0x23b3ec))==null?void 0x0:_0x293275[_0x403953(0x402)])!=null?_0x20bda0:'Unknown\x20user',_0x29a2f5={'color':this[_0x403953(0x2d9)][_0x403953(0x230)](_0x23b3ec),'name':_0xe57414,'ranges':_0x343aed},_0x6658ec=this[_0x403953(0x2fa)];_0x6658ec[_0x403953(0x33f)](_0x23b3ec,_0x29a2f5),this[_0x403953(0x428)][_0x403953(0x2c9)](_0x6658ec);}['_onCursorDelete'](_0x58965b){const _0x1e3a12=_0x6c52c3,{memberID:_0x69e272}=_0x58965b[_0x1e3a12(0x219)],_0x1be2b6=this['cursorInfo'];_0x1be2b6[_0x1e3a12(0x41a)](_0x69e272),this[_0x1e3a12(0x428)][_0x1e3a12(0x2c9)](_0x1be2b6);}[_0x6c52c3(0x3f4)](){const _0x4a681e=_0x6c52c3;var _0x1113b6;if(this[_0x4a681e(0x3cc)]=!0x0,((_0x1113b6=this[_0x4a681e(0x3dd)][_0x4a681e(0x279)]())==null?void 0x0:_0x1113b6[_0x4a681e(0x411)]())!==this[_0x4a681e(0x2ec)])return;const _0x40fb70=this[_0x4a681e(0x3a1)][_0x4a681e(0x285)](V[_0x4a681e(0x343)])['getDocRanges']();Array[_0x4a681e(0x24b)](_0x40fb70)&&_0x40fb70['length']>0x0&&this[_0x4a681e(0x3e6)](_0x40fb70);}[_0x6c52c3(0x202)](){const _0x3376d9=_0x6c52c3;this[_0x3376d9(0x3cc)]=!0x1;}};me=It([M(0x2,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),M(0x3,a['Inject'](Oe)),M(0x4,a['Inject'](u['MemberService'])),M(0x5,a['Inject'](Re)),M(0x6,g[_0x6c52c3(0x24a)]),M(0x7,a[_0x6c52c3(0x40e)]),M(0x8,a[_0x6c52c3(0x391)])],me);var ft=Object[_0x6c52c3(0x2ac)],mt=(_0x34be9d,_0x118148,_0xb9271f,_0x1c68df)=>{for(var _0x72094e=_0x1c68df>0x1?void 0x0:_0x1c68df?ft(_0x118148,_0xb9271f):_0x118148,_0x3b4bfb=_0x34be9d['length']-0x1,_0x57864d;_0x3b4bfb>=0x0;_0x3b4bfb--)(_0x57864d=_0x34be9d[_0x3b4bfb])&&(_0x72094e=_0x57864d(_0x72094e)||_0x72094e);return _0x72094e;},y=(_0x47aa3e,_0x21fe08)=>(_0x268766,_0xfd0f9b)=>_0x21fe08(_0x268766,_0xfd0f9b,_0x47aa3e);const vt=0x12c,gt=0x64,Et=()=>{let _0x4d8378=[],_0x454b91=!0x1;return _0x4ed4b2=>{const _0x348d06=_0xc584;_0x4d8378[_0x348d06(0x221)](_0x4ed4b2),_0x454b91||(_0x454b91=!0x0,setTimeout(()=>{_0x4d8378['forEach'](_0x5d53fb=>_0x5d53fb()),_0x4d8378=[],_0x454b91=!0x1;}));};};let ve=class extends a[_0x6c52c3(0x358)]{constructor(_0x49cb13,_0x5489e7,_0x16c8c3,_0x517e82,_0x1e29af,_0x229f0a,_0x6d07fd,_0x3a15ea){const _0x402884=_0x6c52c3;super(),_(this,_0x402884(0x3cc),!0x1),_(this,_0x402884(0x39e),!0x1),_(this,_0x402884(0x428),new I[(_0x402884(0x22c))](new Map())),_(this,_0x402884(0x1cc),this['_cursorInfo$']['asObservable']()),_(this,_0x402884(0x1a2),new I[(_0x402884(0x22c))]([])),_(this,_0x402884(0x262),this[_0x402884(0x1a2)][_0x402884(0x1b7)](I['debounceTime'](vt))),_(this,_0x402884(0x3e6),a[_0x402884(0x3d3)]((_0x56e162,_0x1b06ef)=>{const _0x518812=_0x402884,_0x3f3b75={'eventID':g[_0x518812(0x3e1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x518812(0x2ec)],'memberID':this['_session'][_0x518812(0x18a)](),'selection':B[_0x518812(0x372)](_0x56e162,_0x1b06ef[_0x518812(0x404)])}};this['_session']['send'](_0x3f3b75,this[_0x518812(0x2ec)]);},gt)),(this[_0x402884(0x2ec)]=_0x49cb13,this[_0x402884(0x354)]=_0x5489e7,this[_0x402884(0x3a1)]=_0x16c8c3,this[_0x402884(0x2d9)]=_0x517e82,this[_0x402884(0x18b)]=_0x1e29af,this['_univerInstanceService']=_0x229f0a,this[_0x402884(0x25f)]=_0x6d07fd,this[_0x402884(0x228)]=_0x3a15ea);}get[_0x6c52c3(0x2fa)](){const _0x10bf4e=_0x6c52c3;return this[_0x10bf4e(0x428)][_0x10bf4e(0x2fc)]();}get['roomMembers'](){const _0x5ea693=_0x6c52c3;return this[_0x5ea693(0x1a2)][_0x5ea693(0x2fc)]();}[_0x6c52c3(0x18d)](){const _0x48a590=_0x6c52c3;super[_0x48a590(0x18d)](),this[_0x48a590(0x428)][_0x48a590(0x2c9)](new Map()),this['_cursorInfo$'][_0x48a590(0x401)](),this[_0x48a590(0x1a2)][_0x48a590(0x2c9)]([]),this[_0x48a590(0x1a2)][_0x48a590(0x401)]();}[_0x6c52c3(0x1a3)](){const _0x591134=_0x6c52c3;this[_0x591134(0x39e)]||(this['_init']=!0x0,this[_0x591134(0x354)][_0x591134(0x1cf)][_0x591134(0x1b7)](I['takeUntil'](this[_0x591134(0x359)]))[_0x591134(0x403)](_0x556eab=>{const _0x2df48f=_0x591134;_0x556eab===u[_0x2df48f(0x3b5)][_0x2df48f(0x406)]?this[_0x2df48f(0x3f4)]():this[_0x2df48f(0x202)]();}),this['_session']['event$']['pipe'](I[_0x591134(0x3c3)](this[_0x591134(0x359)]))[_0x591134(0x403)](_0xad9bbb=>{const _0x4ff613=_0x591134,_0x2bc03a=_0xad9bbb[_0x4ff613(0x21d)];_0x2bc03a===g['CollaborationEvent'][_0x4ff613(0x2b5)]&&this[_0x4ff613(0x361)](_0xad9bbb),_0x2bc03a===g[_0x4ff613(0x3e1)][_0x4ff613(0x3ef)]&&this[_0x4ff613(0x1a8)](_0xad9bbb);}),this[_0x591134(0x3d9)](),this[_0x591134(0x392)](this[_0x591134(0x25f)][_0x591134(0x22f)](_0x5653af=>{const _0x259224=_0x591134;if(this[_0x259224(0x3cc)]&&_0x5653af['id']===v[_0x259224(0x357)]['id']&&_0x5653af[_0x259224(0x2f4)]['unitId']===this[_0x259224(0x2ec)]){const _0x5b8d39=_0x5653af['params'];this[_0x259224(0x3e6)](_0x5b8d39[_0x259224(0x3ed)],_0x5b8d39[_0x259224(0x242)][0x0]);}})));}[_0x6c52c3(0x361)](_0x1f096b){const _0x58c3ea=_0x6c52c3;var _0xe18c4d,_0x11fb00;const {memberID:_0x526692,selection:_0x5a2769}=_0x1f096b['data'],{sheetName:_0x5145cd,range:_0x2eeac1}=B[_0x58c3ea(0x27d)](_0x5a2769),_0x24981a={'name':(_0x11fb00=(_0xe18c4d=this['_memberService'][_0x58c3ea(0x335)](this['unitID'],_0x526692))==null?void 0x0:_0xe18c4d['name'])!=null?_0x11fb00:'Unknown\x20user','range':this[_0x58c3ea(0x3da)](_0x5145cd,_0x2eeac1),'sheetID':_0x5145cd,'color':this[_0x58c3ea(0x2d9)]['assignAColorForMemberID'](_0x526692),'selection':_0x5a2769},_0x4bfc2e=this[_0x58c3ea(0x2fa)];_0x4bfc2e[_0x58c3ea(0x33f)](_0x526692,_0x24981a),this[_0x58c3ea(0x428)][_0x58c3ea(0x2c9)](_0x4bfc2e);}['_onCursorDelete'](_0x49435a){const _0x3399c1=_0x6c52c3,{memberID:_0x1254a5}=_0x49435a['data'],_0x4c7055=this[_0x3399c1(0x2fa)];_0x4c7055[_0x3399c1(0x41a)](_0x1254a5),this[_0x3399c1(0x428)]['next'](_0x4c7055);}[_0x6c52c3(0x3da)](_0x625402,_0x37e7cf){const _0x559775=_0x6c52c3;var _0x2ab6cd,_0xdb53c9;const _0x3cc341=(_0xdb53c9=(_0x2ab6cd=this[_0x559775(0x3dd)]['getUniverSheetInstance'](this[_0x559775(0x2ec)]))==null?void 0x0:_0x2ab6cd[_0x559775(0x375)](_0x625402))==null?void 0x0:_0xdb53c9[_0x559775(0x30b)]();return(_0x3cc341==null?void 0x0:_0x3cc341[_0x559775(0x2db)](_0x441b34=>a[_0x559775(0x3bc)][_0x559775(0x3cd)](_0x441b34,_0x37e7cf)))||_0x37e7cf;}[_0x6c52c3(0x3d9)](){const _0x291a33=_0x6c52c3,_0x33c7b7=new a[(_0x291a33(0x437))](),_0x227837=Et(),_0x22e3c2=()=>{const _0x53f63f=_0x291a33;_0x33c7b7[_0x53f63f(0x18d)]();const _0x204144=(_0xb916a7,_0x1d9dd5,_0x5e2fe2,_0x454956)=>{const _0x3ec64d=_0x53f63f;let _0x8d5ab9=[];switch(_0xb916a7['id']){case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x434)]:{_0x8d5ab9=v[_0x3ec64d(0x40c)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x3c8)]:{_0x8d5ab9=v[_0x3ec64d(0x1ca)](_0xb916a7,_0x454956);break;}case v['EffectRefRangId'][_0x3ec64d(0x3f1)]:{_0x8d5ab9=v[_0x3ec64d(0x3f0)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)]['InsertRangeMoveDownCommandId']:{_0x8d5ab9=v['handleInsertRangeMoveDown'](_0xb916a7,_0x454956);break;}case v['EffectRefRangId'][_0x3ec64d(0x3ba)]:{_0x8d5ab9=v[_0x3ec64d(0x1f4)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x36a)]:{_0x8d5ab9=v[_0x3ec64d(0x421)](_0xb916a7,_0x454956);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x8d5ab9=v[_0x3ec64d(0x3e8)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x1a6)]:{_0x8d5ab9=v[_0x3ec64d(0x311)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)]['RemoveRowCommandId']:{_0x8d5ab9=v['handleIRemoveRow'](_0xb916a7,_0x454956);break;}}const _0x16c3c4=v[_0x3ec64d(0x355)](_0x8d5ab9,_0x454956),_0x323bde=this['cursorInfo']['get'](_0x1d9dd5);if(_0x323bde&&_0x16c3c4){const _0x32cd87={..._0x323bde,'range':_0x16c3c4};this[_0x3ec64d(0x2fa)]['set'](_0x1d9dd5,_0x32cd87),_0x227837(()=>{const _0x19f8ad=_0x3ec64d,_0x4c249f=this['_refRangeService']['registerRefRange'](_0x16c3c4,_0x40e187=>(_0x4c249f[_0x19f8ad(0x18d)](),_0x204144(_0x40e187,_0x1d9dd5,_0x5e2fe2,_0x16c3c4)));_0x33c7b7['add'](_0x4c249f);});}return{'redos':[],'undos':[]};};this[_0x53f63f(0x2fa)][_0x53f63f(0x1b1)]((_0x40d1dd,_0x24f563)=>{const _0x42ed30=_0x53f63f,{range:_0x217951,sheetID:_0x47d2cd}=_0x40d1dd,_0x131d45=this[_0x42ed30(0x228)][_0x42ed30(0x239)](_0x217951,_0x1800de=>(_0x131d45['dispose'](),_0x204144(_0x1800de,_0x24f563,_0x47d2cd,_0x217951)));_0x33c7b7[_0x42ed30(0x194)](_0x131d45);});};this[_0x291a33(0x392)](a[_0x291a33(0x1aa)](this[_0x291a33(0x428)][_0x291a33(0x403)](()=>{_0x22e3c2();})));}[_0x6c52c3(0x3f4)](){const _0x34e094=_0x6c52c3;var _0x8885f1,_0x5efc13;if(this[_0x34e094(0x3cc)]=!0x0,((_0x8885f1=this['_univerInstanceService'][_0x34e094(0x279)]())==null?void 0x0:_0x8885f1[_0x34e094(0x411)]())!==this[_0x34e094(0x2ec)])return;const _0x31c659=(_0x5efc13=this[_0x34e094(0x3a1)][_0x34e094(0x285)](v[_0x34e094(0x1dd)])[_0x34e094(0x2da)]())==null?void 0x0:_0x5efc13[0x0],_0x5328d0=this[_0x34e094(0x3dd)][_0x34e094(0x363)](a[_0x34e094(0x3ec)][_0x34e094(0x24e)])['getActiveSheet']();_0x31c659&&_0x5328d0&&this[_0x34e094(0x3e6)](_0x5328d0[_0x34e094(0x2c6)](),_0x31c659);}[_0x6c52c3(0x202)](){this['_online']=!0x1;}};ve=mt([y(0x2,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),y(0x3,a[_0x6c52c3(0x1ee)](Oe)),y(0x4,a[_0x6c52c3(0x1ee)](u[_0x6c52c3(0x248)])),y(0x5,a['IUniverInstanceService']),y(0x6,a[_0x6c52c3(0x391)]),y(0x7,a[_0x6c52c3(0x1ee)](v[_0x6c52c3(0x258)]))],ve);var Ct=Object[_0x6c52c3(0x2ac)],pt=(_0x37f076,_0x576f2e,_0xff3e2,_0x36de38)=>{const _0x760a10=_0x6c52c3;for(var _0x3f32fc=_0x36de38>0x1?void 0x0:_0x36de38?Ct(_0x576f2e,_0xff3e2):_0x576f2e,_0x470c24=_0x37f076[_0x760a10(0x1f0)]-0x1,_0xa0f315;_0x470c24>=0x0;_0x470c24--)(_0xa0f315=_0x37f076[_0x470c24])&&(_0x3f32fc=_0xa0f315(_0x3f32fc)||_0x3f32fc);return _0x3f32fc;},ae=(_0x56b3e6,_0x5df91c)=>(_0x54c8ab,_0x1140ff)=>_0x5df91c(_0x54c8ab,_0x1140ff,_0x56b3e6);let F=class extends a[_0x6c52c3(0x358)]{constructor(_0x39c5bb,_0x2cb034,_0x374684){const _0x5f0c48=_0x6c52c3;super(),_(this,_0x5f0c48(0x247),new Map()),_(this,_0x5f0c48(0x2b4),new I[(_0x5f0c48(0x1c1))]()),(this[_0x5f0c48(0x3dd)]=_0x39c5bb,this[_0x5f0c48(0x3a1)]=_0x2cb034,this[_0x5f0c48(0x324)]=_0x374684,this[_0x5f0c48(0x39e)]());}[_0x6c52c3(0x18d)](){const _0x50c0ec=_0x6c52c3;super[_0x50c0ec(0x18d)](),this[_0x50c0ec(0x2b4)][_0x50c0ec(0x401)](),this[_0x50c0ec(0x247)][_0x50c0ec(0x1b1)](_0x216851=>_0x216851[_0x50c0ec(0x18d)]());}[_0x6c52c3(0x430)](_0x35d48d){const _0x3bf615=_0x6c52c3;return this['_entities'][_0x3bf615(0x27c)](_0x35d48d)?this['_entities'][_0x3bf615(0x285)](_0x35d48d)[_0x3bf615(0x1cc)]:this[_0x3bf615(0x2b4)][_0x3bf615(0x1b7)](I['filter'](_0x49ceda=>_0x49ceda['unitID']===_0x35d48d),I['switchMap'](_0x3aa61e=>_0x3aa61e[_0x3bf615(0x1cc)]));}[_0x6c52c3(0x39e)](){const _0x5ae4ca=_0x6c52c3;this[_0x5ae4ca(0x3dd)]['getTypeOfUnitAdded$'](a[_0x5ae4ca(0x3ec)]['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x5ae4ca(0x359)]))['subscribe'](async _0x18e5fd=>{const _0x12ab15=_0x5ae4ca,_0x531278=_0x18e5fd[_0x12ab15(0x411)](),_0x55fe23=await this[_0x12ab15(0x1c5)](_0x531278);this[_0x12ab15(0x2b4)][_0x12ab15(0x2c9)](_0x55fe23),this[_0x12ab15(0x247)]['set'](_0x531278,_0x55fe23);}),this[_0x5ae4ca(0x3dd)][_0x5ae4ca(0x2f7)](a[_0x5ae4ca(0x3ec)]['UNIVER_DOC'])[_0x5ae4ca(0x1b7)](I[_0x5ae4ca(0x3c3)](this[_0x5ae4ca(0x359)]))[_0x5ae4ca(0x1b7)](I['filter'](_0x42c535=>!_0x42c535['getUnitId']()[_0x5ae4ca(0x326)]('__')))[_0x5ae4ca(0x403)](async _0x158084=>{const _0x5b1d6b=_0x5ae4ca,_0x167e7c=_0x158084[_0x5b1d6b(0x411)](),_0x4c79da=await this[_0x5b1d6b(0x379)](_0x167e7c);this['_entityInit$'][_0x5b1d6b(0x2c9)](_0x4c79da),this['_entities'][_0x5b1d6b(0x33f)](_0x167e7c,_0x4c79da);}),I[_0x5ae4ca(0x3ff)](this[_0x5ae4ca(0x3dd)][_0x5ae4ca(0x28c)](a[_0x5ae4ca(0x3ec)][_0x5ae4ca(0x231)]),this['_univerInstanceService'][_0x5ae4ca(0x28c)](a[_0x5ae4ca(0x3ec)][_0x5ae4ca(0x24e)]))[_0x5ae4ca(0x1b7)](I[_0x5ae4ca(0x3c3)](this['dispose$']))[_0x5ae4ca(0x403)](_0x151d26=>{const _0x3a937b=_0x5ae4ca,_0x50004d=_0x151d26[_0x3a937b(0x411)](),_0x1a1ded=this['_entities'][_0x3a937b(0x285)](_0x50004d);_0x1a1ded&&(_0x1a1ded[_0x3a937b(0x18d)](),this[_0x3a937b(0x247)]['delete'](_0x50004d));});}async['_startSheetCollabCursor'](_0xce4da5){const _0x459788=_0x6c52c3,_0x3fa18b=await this['_collabSessionService'][_0x459788(0x43e)](_0xce4da5),_0x537c4e=this[_0x459788(0x3a1)][_0x459788(0x20b)](ve,_0xce4da5,_0x3fa18b);return _0x537c4e[_0x459788(0x1a3)](),_0x537c4e;}async[_0x6c52c3(0x379)](_0x406e95){const _0x5c1e5b=_0x6c52c3,_0x54a6c1=await this[_0x5c1e5b(0x324)][_0x5c1e5b(0x43e)](_0x406e95),_0x23eccb=this[_0x5c1e5b(0x3a1)]['createInstance'](me,_0x406e95,_0x54a6c1);return _0x23eccb[_0x5c1e5b(0x1a3)](),_0x23eccb;}};F=pt([ae(0x0,a[_0x6c52c3(0x40e)]),ae(0x1,a['Inject'](a[_0x6c52c3(0x1f7)])),ae(0x2,a[_0x6c52c3(0x1ee)](u[_0x6c52c3(0x417)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0x1b5d9f,_0x2ecf56){const _0x45ecf3=_0x6c52c3;let {radius:_0x3708a5,width:_0x82dfe0,height:_0xcff00f}=_0x2ecf56;_0x3708a5=_0x3708a5!=null?_0x3708a5:0x0,_0x82dfe0=_0x82dfe0!=null?_0x82dfe0:0x1e,_0xcff00f=_0xcff00f!=null?_0xcff00f:0x1e;let _0x3ac00b=0x0,_0x4d6b4c=0x0,_0x224f98=0x0;_0x3ac00b=_0x4d6b4c=_0x224f98=Math['min'](_0x3708a5,_0x82dfe0/0x2,_0xcff00f/0x2),_0x1b5d9f[_0x45ecf3(0x192)](),_0x1b5d9f[_0x45ecf3(0x257)](_0x3ac00b,0x0),_0x1b5d9f[_0x45ecf3(0x3e5)](_0x82dfe0-_0x4d6b4c,0x0),_0x1b5d9f[_0x45ecf3(0x3cb)](_0x82dfe0-_0x4d6b4c,_0x4d6b4c,_0x4d6b4c,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b5d9f['lineTo'](_0x82dfe0,_0xcff00f-_0x224f98),_0x1b5d9f[_0x45ecf3(0x3cb)](_0x82dfe0-_0x224f98,_0xcff00f-_0x224f98,_0x224f98,0x0,Math['PI']/0x2,!0x1),_0x1b5d9f[_0x45ecf3(0x3e5)](0x0,_0xcff00f),_0x1b5d9f['lineTo'](0x0,_0x3ac00b),_0x1b5d9f[_0x45ecf3(0x3cb)](_0x3ac00b,_0x3ac00b,_0x3ac00b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b5d9f[_0x45ecf3(0x422)](),_0x2ecf56[_0x45ecf3(0x2fb)]&&(_0x1b5d9f['save'](),_0x1b5d9f[_0x45ecf3(0x2f6)]=_0x2ecf56[_0x45ecf3(0x2fb)],_0x2ecf56[_0x45ecf3(0x2b6)]===_0x45ecf3(0x3b9)?_0x1b5d9f['fill'](_0x45ecf3(0x3b9)):_0x1b5d9f['fill'](),_0x1b5d9f[_0x45ecf3(0x39f)]());}class ne extends C[_0x6c52c3(0x265)]{constructor(_0x191a32,_0x57e2d6){const _0x17fe73=_0x6c52c3;super(_0x191a32,_0x57e2d6),_(this,_0x17fe73(0x2fe)),_(this,'text'),(this['color']=_0x57e2d6==null?void 0x0:_0x57e2d6[_0x17fe73(0x2fe)],this['text']=_0x57e2d6==null?void 0x0:_0x57e2d6[_0x17fe73(0x2d7)]);}static[_0x6c52c3(0x2c5)](_0x1842f,_0x34e02c){const _0x11f356=_0x6c52c3,{text:_0x528e5d,color:_0x1afc97}=_0x34e02c;_0x1842f[_0x11f356(0x314)](),_0x1842f['font']=_0x11f356(0x2b1);const _0x356e73=_0x1842f[_0x11f356(0x344)](_0x528e5d)[_0x11f356(0x37f)],_0x3fe5c4=Math['min'](_0x356e73+0x2*ce,Ne);Ot(_0x1842f,{'height':K,'radius':0x4,'width':_0x3fe5c4,'fill':_0x1afc97}),_0x1842f[_0x11f356(0x2f6)]=_0x11f356(0x226);const _0x4ee401=ce,_0xba8498=K-Tt,_0x38a3d6=Ne-0x2*ce;if(_0x356e73>_0x38a3d6){let _0x273222='',_0x26884d=0x0;for(const _0x22024e of _0x528e5d){const _0x3352c3=_0x1842f['measureText'](_0x22024e)['width'];if(_0x26884d+_0x3352c3<=_0x38a3d6-_0x1842f[_0x11f356(0x344)](_0x11f356(0x182))['width'])_0x273222+=_0x22024e,_0x26884d+=_0x3352c3;else{_0x273222+='...';break;}}_0x1842f[_0x11f356(0x18c)](_0x273222,_0x4ee401,_0xba8498);}else _0x1842f[_0x11f356(0x18c)](_0x528e5d,_0x4ee401,_0xba8498);_0x1842f[_0x11f356(0x39f)]();}[_0x6c52c3(0x2dc)](_0x363174){const _0x30f66e=_0x6c52c3;ne[_0x30f66e(0x2c5)](_0x363174,this);}}const le=_0x6c52c3(0x185),Rt=_0x6c52c3(0x1d9),bt=_0x6c52c3(0x334),H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0x6c52c3(0x33d);class Ue{constructor(_0x4ee993,_0x444c1b,_0x3bca80,_0x484656){const _0x2904c4=_0x6c52c3;_(this,_0x2904c4(0x268),[]),_(this,_0x2904c4(0x1ce),null),_(this,'_textBubble',null),_(this,_0x2904c4(0x20c),null),_(this,'_hideTimer',null),_(this,_0x2904c4(0x2d2),null),(this['_cursor']=_0x4ee993,this['_scene']=_0x444c1b,this['_docSkeleton']=_0x3bca80,this['_document']=_0x484656,this[_0x2904c4(0x3e7)]());}set[_0x6c52c3(0x38d)](_0x166e53){const _0x30e090=_0x6c52c3;_0x166e53?(this[_0x30e090(0x20c)]&&this[_0x30e090(0x20c)][_0x30e090(0x1ab)](),this['_textBubble']&&this[_0x30e090(0x2ae)][_0x30e090(0x1d3)]()):(this[_0x30e090(0x20c)]&&this[_0x30e090(0x20c)][_0x30e090(0x1d3)](),this[_0x30e090(0x2ae)]&&this['_textBubble'][_0x30e090(0x1ab)]());}[_0x6c52c3(0x18d)](){const _0x5c6699=_0x6c52c3;for(const _0x528d29 of this['_shapes'])_0x528d29[_0x5c6699(0x18d)]();this[_0x5c6699(0x2ae)]&&this['_textBubble'][_0x5c6699(0x18d)](),this[_0x5c6699(0x20c)]&&this[_0x5c6699(0x20c)]['dispose'](),this[_0x5c6699(0x1ce)]&&this[_0x5c6699(0x1ce)]['dispose'](),this[_0x5c6699(0x2d2)]&&this[_0x5c6699(0x2d2)]();}[_0x6c52c3(0x3e7)](){const _0xb04406=_0x6c52c3;var _0x1b501c;const {_docSkeleton:_0x4fe517,_document:_0x398696}=this,{color:_0x568f20,name:_0x11c0ad,ranges:_0x5c9f7f}=this['_cursor'],_0x30ba48=_0x398696[_0xb04406(0x35c)](),{docsLeft:_0x217f4e,docsTop:_0x368be5}=_0x30ba48,_0x4a0918=new p['NodePositionConvertToCursor'](_0x30ba48,_0x4fe517);for(const {startOffset:_0x296020,endOffset:_0x2ce6fd,rangeType:_0x57d7ae,segmentId:_0x245ad3,segmentPage:_0x4e2a81,collapsed:_0x242350,isActive:_0x441827}of _0x5c9f7f){const _0x590768=_0x4fe517[_0xb04406(0x2d5)](_0x296020,!0x0,_0x245ad3,_0x4e2a81);let _0x389c07=_0x4fe517[_0xb04406(0x2d5)](_0x2ce6fd,!0x0,_0x245ad3,_0x4e2a81);if(_0x389c07==null&&(_0x389c07=_0x4fe517[_0xb04406(0x2d5)](_0x2ce6fd-0x1,!0x1,_0x245ad3,_0x4e2a81)),_0x441827){const {contentBoxPointGroup:_0x2c7401}=_0x4a0918['getRangePointData'](_0x389c07,_0x389c07);if(_0x2c7401['length']===0x0)continue;this[_0xb04406(0x2f9)](_0x568f20,_0x2c7401,_0x217f4e,_0x368be5,_0x11c0ad),this[_0xb04406(0x2d2)]=this['_handleHover']();}if(_0x590768&&_0x389c07){if(_0x57d7ae===a[_0xb04406(0x3f9)][_0xb04406(0x3c9)]){const _0x1b05ec=new p[(_0xb04406(0x3f7))](_0x30ba48,_0x4fe517),{pointGroup:_0x32ffae}=(_0x1b501c=_0x1b05ec[_0xb04406(0x289)](_0x590768,_0x389c07))!=null?_0x1b501c:{};if(_0x32ffae==null||_0x32ffae[_0xb04406(0x1f0)]===0x0)continue;this[_0xb04406(0x184)](_0x568f20,_0x32ffae,_0x217f4e,_0x368be5);}else{if(!_0x242350){const {borderBoxPointGroup:_0x49ba19}=_0x4a0918[_0xb04406(0x289)](_0x590768,_0x389c07);if(_0x49ba19[_0xb04406(0x1f0)]===0x0)continue;this[_0xb04406(0x276)](_0x568f20,_0x49ba19,_0x217f4e,_0x368be5);}}}}}[_0x6c52c3(0x2f9)](_0x1f94c3,_0x1d105c,_0x41ec89,_0x36df61,_0x56727c){const _0x12d09e=_0x6c52c3,_0xf84657=this[_0x12d09e(0x286)](_0x1d105c),{left:_0xd07d05,top:_0x4fd14a,height:_0x353c80}=_0xf84657,_0x22a0fb=this[_0x12d09e(0x352)](),_0x53e490=Nt/_0x22a0fb,_0x329f02=new C['Rect'](le+a[_0x12d09e(0x254)](H),{'left':_0xd07d05+_0x41ec89-_0x53e490,'top':_0x4fd14a+_0x36df61,'height':_0x353c80,'width':Dt,'fill':_0x1f94c3||C['getColor'](a[_0x12d09e(0x267)]['black'],0x0),'strokeWidth':_0x53e490,'stroke':Ut,'evented':!0x0});this[_0x12d09e(0x1ce)]=_0x329f02,this[_0x12d09e(0x2d4)][_0x12d09e(0x2fd)](_0x329f02,p[_0x12d09e(0x19a)]);const _0x3dbdb4=new C['Rect'](le+a[_0x12d09e(0x254)](H),{'left':_0xd07d05+_0x41ec89-_0x53e490,'top':_0x4fd14a+_0x36df61-_e/0x2,'height':_e,'width':_e,'fill':_0x1f94c3||C[_0x12d09e(0x1ef)](a[_0x12d09e(0x267)][_0x12d09e(0x2ba)],0x0),'strokeWidth':0x0,'stroke':_0x1f94c3||C['getColor'](a['COLORS'][_0x12d09e(0x2ba)],0x0),'evented':!0x1});this[_0x12d09e(0x20c)]=_0x3dbdb4,this[_0x12d09e(0x2d4)][_0x12d09e(0x2fd)](_0x3dbdb4,p['TEXT_RANGE_LAYER_INDEX']);const _0x288260=new ne(le+a['generateRandomId'](H),{'left':_0xd07d05+_0x41ec89-_0x53e490,'top':_0x4fd14a+_0x36df61-K,'text':_0x56727c,'color':_0x1f94c3});this['_textBubble']=_0x288260,this[_0x12d09e(0x2d4)]['addObject'](_0x288260,p['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x6c52c3(0x227)](){const _0x3f9ec5=_0x6c52c3,_0x15496a=this[_0x3f9ec5(0x1ce)][_0x3f9ec5(0x2d8)]['subscribeEvent'](()=>{const _0x33cd5c=_0x3f9ec5;this[_0x33cd5c(0x38d)]=!0x0;}),_0x50c9e7=this[_0x3f9ec5(0x1ce)][_0x3f9ec5(0x24d)][_0x3f9ec5(0x34d)](()=>{const _0x4ff4cb=_0x3f9ec5;this[_0x4ff4cb(0x33a)]&&clearTimeout(this[_0x4ff4cb(0x33a)]),this['_hideTimer']=setTimeout(()=>{const _0x1c6dd9=_0x4ff4cb;this[_0x1c6dd9(0x38d)]=!0x1;},0x7d0);});return()=>{const _0x276cec=_0x3f9ec5;_0x15496a[_0x276cec(0x3a2)](),_0x50c9e7['unsubscribe']();};}[_0x6c52c3(0x276)](_0x3719f9,_0x5ea9b4,_0x4c1555,_0x5a773b){const _0x1d7fbe=_0x6c52c3,_0x1eb119=new a[(_0x1d7fbe(0x207))](_0x3719f9)[_0x1d7fbe(0x323)](0.2)[_0x1d7fbe(0x29f)](),_0x1eaa66=new C[(_0x1d7fbe(0x1a7))](Rt+a[_0x1d7fbe(0x254)](H),{'pointsGroup':_0x5ea9b4,'fill':_0x1eb119||C[_0x1d7fbe(0x1ef)](a['COLORS'][_0x1d7fbe(0x2ba)],0.2),'left':_0x4c1555,'top':_0x5a773b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1d7fbe(0x268)][_0x1d7fbe(0x221)](_0x1eaa66),this[_0x1d7fbe(0x2d4)]['addObject'](_0x1eaa66,p[_0x1d7fbe(0x19a)]);}[_0x6c52c3(0x184)](_0x289ee0,_0x2199da,_0x23eac3,_0x48fa78){const _0x485925=_0x6c52c3,_0x327529=new a[(_0x485925(0x207))](_0x289ee0)['setAlpha'](0.2)[_0x485925(0x29f)](),_0xe503fb=new C[(_0x485925(0x1a7))](bt+a[_0x485925(0x254)](H),{'pointsGroup':_0x2199da,'fill':_0x327529||C[_0x485925(0x1ef)](a['COLORS'][_0x485925(0x2ba)],0.2),'left':_0x23eac3,'top':_0x48fa78,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x485925(0x221)](_0xe503fb),this[_0x485925(0x2d4)]['addObject'](_0xe503fb,p[_0x485925(0x19a)]);}[_0x6c52c3(0x286)](_0x1832d3){const _0x39f17b=_0x1832d3[0x0],_0x1acbb5=_0x39f17b[0x0],_0x2864f7=_0x39f17b[0x2],{x:_0x13ba6f,y:_0x3f19de}=_0x1acbb5,{x:_0x160ef9,y:_0x23c226}=_0x2864f7;return{'left':_0x13ba6f,'top':_0x3f19de,'width':_0x160ef9-_0x13ba6f,'height':_0x23c226-_0x3f19de};}[_0x6c52c3(0x352)](){const _0x4e9a38=_0x6c52c3,{scaleX:_0x2b9e2d,scaleY:_0x78aae6}=this['_scene'][_0x4e9a38(0x1a5)]();return Math['max'](_0x2b9e2d,_0x78aae6);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x1ad104,_0x1587a1,_0x31d010,_0x4f660a)=>{const _0x35e775=_0x6c52c3;for(var _0x4db0af=_0x4f660a>0x1?void 0x0:_0x4f660a?Lt(_0x1587a1,_0x31d010):_0x1587a1,_0x584114=_0x1ad104[_0x35e775(0x1f0)]-0x1,_0x5aff27;_0x584114>=0x0;_0x584114--)(_0x5aff27=_0x1ad104[_0x584114])&&(_0x4db0af=_0x5aff27(_0x4db0af)||_0x4db0af);return _0x4db0af;},z=(_0xe0e6b4,_0x5acdf1)=>(_0x253eec,_0x457aa7)=>_0x5acdf1(_0x253eec,_0x457aa7,_0xe0e6b4);let ge=class extends a[_0x6c52c3(0x358)]{constructor(_0x3d440e,_0x898720,_0xc3bf3c,_0x54a6d8,_0x13f1b8){const _0xe8d4a4=_0x6c52c3;super(),_(this,'_cursorShapes',[]),_(this,_0xe8d4a4(0x43c),[]),(this['_context']=_0x3d440e,this[_0xe8d4a4(0x3b4)]=_0x898720,this[_0xe8d4a4(0x1d8)]=_0xc3bf3c,this[_0xe8d4a4(0x25f)]=_0x54a6d8,this[_0xe8d4a4(0x278)]=_0x13f1b8,this['_init']());}[_0x6c52c3(0x39e)](){const _0x380ab7=_0x6c52c3,_0xe6dde5=this[_0x380ab7(0x33c)][_0x380ab7(0x2b7)],_0x586bf9=this[_0x380ab7(0x3b4)];this['disposeWithMe'](I['combineLatest']([this[_0x380ab7(0x1d8)][_0x380ab7(0x430)](_0xe6dde5),this[_0x380ab7(0x278)][_0x380ab7(0x1f6)]])[_0x380ab7(0x1b7)]($[_0x380ab7(0x32a)](([_0x40d4b0,_0x23539e])=>({'skeleton':_0x586bf9[_0x380ab7(0x205)](),'cursors':[..._0x40d4b0['values']()]['flatMap'](_0x48ad69=>({..._0x48ad69,'color':this['_themeService'][_0x380ab7(0x25c)](_0x48ad69[_0x380ab7(0x2fe)])}))})))['subscribe'](_0x3f9245=>{const _0x5f62af=_0x380ab7;if(this['_removeCollabCursors'](),_0x3f9245){const {skeleton:_0x58a725,cursors:_0x3398b7}=_0x3f9245;this[_0x5f62af(0x2cf)](_0x58a725,_0x3398b7);}})),this[_0x380ab7(0x181)](),this[_0x380ab7(0x394)]();}[_0x6c52c3(0x2cf)](_0x366208,_0x52da26){const _0x2c0e2c=_0x6c52c3,{scene:_0x2a1c40,mainComponent:_0x5e719e}=this['_context'],_0x250c9c=_0x52da26[_0x2c0e2c(0x32a)](_0xa7f80d=>new Ue(_0xa7f80d,_0x2a1c40,_0x366208,_0x5e719e));this[_0x2c0e2c(0x385)]=_0x250c9c,this['_cursors']=_0x52da26;}[_0x6c52c3(0x241)](){const _0x21be4f=_0x6c52c3;this['_removeCollabCursors']();const {scene:_0x155cc7,mainComponent:_0x144752}=this['_context'],_0x30a2c9=this[_0x21be4f(0x3b4)][_0x21be4f(0x205)](),_0xd749f5=this[_0x21be4f(0x43c)][_0x21be4f(0x32a)](_0x5e6f87=>new Ue(_0x5e6f87,_0x155cc7,_0x30a2c9,_0x144752));this[_0x21be4f(0x385)]=_0xd749f5;}[_0x6c52c3(0x3bd)](){const _0x1004fc=_0x6c52c3;this[_0x1004fc(0x385)][_0x1004fc(0x1b1)](_0x28eca3=>_0x28eca3[_0x1004fc(0x18d)]()),this[_0x1004fc(0x385)]=[];}[_0x6c52c3(0x394)](){const _0x4244a6=_0x6c52c3,_0x5a42d7=[p[_0x4244a6(0x19c)]['id']];this['disposeWithMe'](this[_0x4244a6(0x25f)][_0x4244a6(0x22f)](_0x1dcb16=>{const _0x59b6a2=_0x4244a6;_0x5a42d7[_0x59b6a2(0x238)](_0x1dcb16['id'])&&_0x1dcb16[_0x59b6a2(0x2f4)][_0x59b6a2(0x2b7)]===this[_0x59b6a2(0x33c)][_0x59b6a2(0x2b7)]&&this['_refreshCollabCursors']();}));}[_0x6c52c3(0x181)](){const _0x57df4c=_0x6c52c3;this['disposeWithMe'](a[_0x57df4c(0x1e3)](this[_0x57df4c(0x33c)][_0x57df4c(0x3c6)][_0x57df4c(0x1a0)])[_0x57df4c(0x1b7)]($[_0x57df4c(0x280)](_0x478d0e=>_0x478d0e[_0x57df4c(0x333)]===C[_0x57df4c(0x1e9)][_0x57df4c(0x325)]),$[_0x57df4c(0x31c)](0x10))[_0x57df4c(0x403)](()=>{this['_refreshCollabCursors']();}));}};function _0x4304(){const _0x75122e=['_uiPartsService','INVALID_ARGUMENT','createElement','substring','_beforeCloseService','searchParams','stageInfo','actions','popstate','function','symbol','_docSkeletonManagerService','SessionStatus','clipPath','_clearPolling','REDEMPTION_INVALID_CODE','evenodd','InsertRangeMoveRightCommandId','LOCAL_CACHE_INTERVAL_KEY','Rectangle','_removeCollabCursors','hovered','subunit','endColumn','shareReplay','SYNCED','takeUntil','call','_syncEditingCollabCursorService','engine','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DeleteRangeMoveUpCommandId','RECT','releaseFormulaLimitUrl','arc','_online','contains','_transformService','_checkCalculationAvailable','SetTextSelectionsOperation','967200tvSkcj','defineProperty','debounce','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','white','_saveCache','collabStatus.synced','USER_NOT_INVITED_CODE','_onRefRangeChange','_getMergeRange','clearTimeout','ALREADY_EXISTS','_univerInstanceService','_removeClearOtherTimer','collaboration.single-unit.warning','1338237EaElzD','CollaborationEvent','getOwnPropertySymbols','div','INVITE_CODE_REQUIRED','lineTo','_updateLocalCursor','_render','handleMoveRange','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ILocalCacheService','sessionTicket','UniverInstanceType','subUnitId','SOCKET_FAILED_RETRY','USERS_LEAVE','handleInsertCol','InsertColCommandId','CollaborationDataLoaderController','none','_toggleOnline','PENDING','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','NodePositionConvertToRectRange','_status$','DOC_RANGE_TYPE','BuiltInUIPart','random','attrs','WECHAT_HAS_BEEN_BOUND','setTimeout','merge','totalFormulasToCalculate','complete','name','subscribe','range','off-line-icon_clip0_910_343','ONLINE','enableLocalCache','trim','saveTaskMap','createIdentifier','_heartbeatTimer','handleDeleteRangeMoveLeft','_disabled','IUniverInstanceService','_doCreateSocket','setItem','getUnitId','LICENSE_DISTRO_REJECTED','Disposable','currentColor','OFFLINE','now','CollaborationSessionService','prototype','Module','delete','removeParam','switchMap','YUUMI_RATE_OVER_LIMIT','UNAUTHENTICATED','OTHER_CLIENTS_EDITING','syncEditingCollabCursor','handleInsertRow','closePath','YUUMI_ASYNCIO_CANCELLED','replaceState','_currentUsage','M0\x200H16V16H0z','_localStorageService','_cursorInfo$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_docSyncEditingCollabCursorService','_docTransformSelectionsService','href','green.600','_name','Success','getCollabCursors$','registerRenderModule','svg','indexOf','DeleteRangeMoveLeftCommandId','apply','urlChange$','DisposableCollection','pushState','limitInfo','combineLatest','0\x200\x2017\x2016','_cursors','saveOfflineData','requireSession','[CollaborationDataLoaderController]','_initResize','...','body','_drawRectRange','collab-text-anchor-','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','START_CALCULATION','IDocClipboardService','getUndoRedoMutationParamsCache','getMemberID','_memberService','fillText','dispose','fromEvent','getActiveRange','_sheetSkeletonManagerService','addEventListener','beginPath','getConfig','add','REDEMPTION_USER_NOT_ELIGIBLE','_config','_scheduleHeartbeat','DocIMEInputManagerService','_labelPosition','TEXT_RANGE_LAYER_INDEX','FormulaExecutedStateType','SetDocZoomRatioOperation','getLocalCacheKey','APPLY_NON_SEQUENTIAL_REVISION','UnitStatus','onTransformChange$','transformMutation','_roomMembers$','init','AWAITING','getAncestorScale','RemoveColCommandId','RegularPolygon','_onCursorDelete','_getFormulaLimitStatus','toDisposable','hide','WebURLService','source','url(#off-line-icon_clip0_910_343)','YUUMI_NO_CUBOID_FOR_QUESTION','runOnServer','forEach','backgroundColor','_lastPointer','mapTo','path','Optional','pipe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_id','_backgroundColor','setInterval','top','getViewport','session.connection-failed','jiqing.500','_maxFormulaLimit','Subject','ranges','getCoordByCell','tag','_startSheetCollabCursor','AUTHORIZE_CODE_ILLEGAL','CURRENT_STATUS_CANNOT_OPERATE','IMessageService','HEADER_MENU','handleDeleteRangeMoveUp','_saveTaskMap','cursorInfo$','createSocket','_anchor','sessionStatus$','values','collab-client.tooltip.reconnect','focused$','show','getUnitStatus$','toStringTag','onMouseMove','_checkAndWaitForCalculationPermission','_collabCursorController','collab-text-range-','transformIMECache','_logService','USER_IS_ANONYMOUS','SheetsSelectionsService','_collaborationController','[RemoteUniscriptService]:\x20no\x20focused\x20unit','parse','YUUMI_ALL_TABLES_IS_INVALID','getStateCache','fromEventSubject','session.will-retry','IRemoteInstanceService','CollaborationStatus','jsx','_transformUndoRedoStack','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabCursorState$','_scheduleClearOtherTimer','_initDependencies','_configService','Inject','getColor','length','then','idSuffix','CONFLICT','handleInsertRangeMoveRight','MOBILE_HAS_BEEN_BOUND','currentTheme$','Injector','PERMISSION_DENIED','2874376UWJokw','VIEW_MAIN','ENTITLE_NEED_BILLING_ADDRESS','event$','setActiveRange','EMAIL_HAS_BEEN_BOUND','connectInjector','_taskIds','parseInt','_toggleOffline','_docTransformIMECacheService','REDEMPTION_CODE_HAS_BEEN_CREATED','getSkeleton','TEXT','ColorKit','_range','SHEET_VIEWPORT_KEY','LICENSE_IMPORT_SIZE_EXCEEDED','createInstance','_anchorDot','onStarting','_docTransformStateCacheService','m1Prime','YUUMI_TABLE_NOT_FOUND_IN_UNIT','all','DocStateChangeManagerService','currentSkeleton$','unload','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_notificationService','mergeOverrideWithDependencies','endRow','data','debug','TOO_MANY_REQUESTS','history','eventID','defs','YUUMI_CONNECTOR_URL_NOT_FOUND','m2Prime','push','Vector2','LOGIN_TOKEN_PROCESSING_FAILED','SOCKET_FAILED','LocaleService','#FFF','_handleHover','_refRangeService','4455450CcHQkE','Rect','jsxs','BehaviorSubject','search','round','onCommandExecuted','assignAColorForMemberID','UNIVER_DOC','forwardRef','CommandType','_instanceService','from','CollaborationSocketService','_clearOtherTimers','includes','registerRefRange','_renderManagerService','LOGIN_FAILED','APPLY_REJECT','Workbook','getParam','deepClone','registerDependencies','_refreshCollabCursors','selections','CHANGESET_REVISION_CONFILICT','_send','_setupBeforeClosingHandler','getCurrent','_entities','MemberService','/universer-api/license/formula/limit/status','ITransformService','isArray','collabStatus.fetchMiss','onPointerLeave$','UNIVER_SHEET','_cachedData','updateOfflineData','DocCollaborationEntity','_ensureSubject','7mJgkND','generateRandomId','imageSourceType','transformRemoteChangeset','moveTo','RefRangeService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getformulaLimitStatusUrl','invokeId','getColorFromTheme','_imageIoService','transformStateCache','_commandService','SetFormulaCalculationStartMutation','colorChannel1','roomMembers$','RemoteUniscriptService','stage','Shape','YUUMI_AI_RUN_FAILED','COLORS','_shapes','children','/universer-api/license/formula/limit/start','clearInterval','code','_httpService','IURLService','post','activeSheet$','application/json','Plugin','AWAITING_WITH_PENDING','_hovered','_lastResponseTimestamp','_drawTextRange','_startCalculationLimit','_themeService','getFocusedUnit','univer-flex\x20univer-items-center','PAYMENT_CHANNEL_NOT_SUPPORT','has','deserializeRangeWithSheet','SheetCollabCursorShape','key','filter','INVALID_INVITE_CODE','UNDEFINED','xlink:href','row','get','_getAnchorBounding','getSheetObject','_showGuardMessage','getRangePointData','mutations','1em','getTypeOfUnitDisposed$','redoState','_pollingInterval','hasOwnProperty','1372278wsDGLg','onRendered','univerjs-icon\x20univerjs-icon-','override','isTransformMutationFailure','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_color','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_localeService','WebSocketService','SNAPSHOT_INVALID_SNAPSHOT','getCurrentRevOfUnit','formula.calculation.unable','CONNECTOR_DATA_TOO_LARGE','getUnit','toRgbString','_revisionService','with','IRenderManagerService','startFormulaLimitUrl','_dataLoaderService','INTERNAL_ERROR','reconnect','UniverIcon','string','location','_initEvent','registerBeforeClose','getOwnPropertyDescriptor','ISnapshotServerService','_textBubble','storage','selection','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','http://www.w3.org/2000/svg','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','_entityInit$','UPDATE_CURSOR','fillRule','unitId','_initStatusListener','_hasFormulaInDirtyRanges','black','labelPosition','_handleEvent','MessageType','_updateURLWithCurrentState','SNAPSHOT_HAS_BEEN_REMOVED','beforeCommandExecuted','REDEMPTION_CODE_NOT_STARTED','useRef','undoState','_initCommandInterceptor','drawWith','getSheetId','HTTPService','transformSelections','next','ILogService','_getSaveTimeout','_releaseCalculationLimit','_collabCursorState$','_collaborationUIEventService','_updateCollabCursors','collaboration-client.offline-data-not-saved','session.collaboration-timeout','_eventUnsubscribe','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_scene','findNodePositionByCharIndex','ERROR_AGAIN','text','onPointerEnter$','_colorAssignService','getCurrentSelections','find','_draw','isFormulaString','LICENSE_EXPORT_SIZE_EXCEEDED','CLOSE_ROOM','useDependency','FETCH_MISS','replaceDocRanges','_urlService','bottom','UNRECOGNIZED','ENTITLE_DUP_SUBSCRIPTION','_docStateChangeManagerService','_messageService','DesktopCollaborationStatusDisplayController','MOBILE_VERIFY_CODE_MISMATCH','getCellPositionByOffset','unitID','startRow','icon','getItem','_applyCommand','_initEntityListener','_docClipboardService','asObservable','params','JOIN_ROOM_FAILED','fillStyle','getTypeOfUnitAdded$','collaboration.closeRoom','_drawAnchor','cursorInfo','fill','getValue','addObject','color','entries','permission.content','_transformHistoryAndStateStack','stringify','runId','ISocketService','USER_NOT_FOUND','CollaborationUIEventId','red.300','transform','_colorIndex','OffLineIcon','getMergeData','FormulaExecuteStageType','IImageIoService','_registerDependencies','use','isActive','handleIRemoveCol','toString','SUBMIT_CHANGESET_TIMEOUT','save','COMPLETION_FINISHED','concat','_scheduleSaving','uni.network.url-service','executeCommand','ENTITLE_CAN_NOT_BUY_LOWER_OTP','setShapeProps','throttleTime','INVITE_CODE_ALREADY_BOUND','Warning','mask','defIds','sheetId','displayName','setAlpha','_collabSessionService','resize','startsWith','YUUMI_SUBSCRIPTION_NOT_FOUND','PY_RUNTIME_SCRIPT_ERROR','setParam','map','DEFAULT_WS_SESSION_TICKET_URL','CollaborationUIEventService','setConfig','roomMembers','_setFormulaLimitStatus','touchDependencies','disableLocalCache','_getSheetObject','type','collab-rect-range-','getMember','DependentOn','onPointerMove$','NO_OTHER_CLIENTS_EDITING','doc.mutation.rich-text-editing','_hideTimer','IConfigService','_context','rgba(255,\x20255,\x20255,\x200.01)','_setupSubUnitSync','set','NOT_COLLAB','YUUMI_UNABLE_LOAD_URL','SetWorksheetActivateCommand','DocSelectionManagerService','measureText','_assignedColors','send','addObjects','addClipboardHook','LICENSE_MAX_UNITS_EXCEEDED','setStateCache','origin','/universer-api/license/formula/limit/done','subscribeEvent','OnLineIcon','ENTITLE_REPORT_LIMIT_EXCEED','textRanges','_selfUnitIDs','_getScale','Error','_session','runRefRangeMutations','REDEMPTION_CODE_FULLY_REDEEMED','SetSelectionsOperation','RxDisposable','dispose$','collabStatus.syncing','_createSocketURL','getOffsetConfig','loadUnit','Tools','skeleton','whenReady','_onCursorUpdate','UniverCollaborationClientUIPlugin','getCurrentUnitForType','size','APPLY_REVISION_CONFILICT','_transformPreviousActiveRange','getCollabEntity$','NOT_FOUND','collabStatus.conflict','InsertRowCommandId','_unitStatus','ThemeService','unshift','url(#on-line-icon_clip0_910_349)','APPLY_DUPLICATED','IBeforeCloseService','_getSessionTicket','serializeRangeWithSheet','_handleLeaveEvent','startColumn','getSheetBySheetId','assign','docStateChange$','column','_startDocCollabCursor','replace','formula.calculation.waiting','editingUnit','isTransformMutationsWithChangesetSuccess','extend','width','WebBrowserSingleActiveUnitService','RichTextEditingMutation','split','className','error','_cursorShapes','_handleHeartbeatEvent','exhaustSavingTask','_updateSubUnitFromURLParams','ENTITLE_CHAT_LIMIT_EXCEED','ENSURE_SNAPSHOT_EXECUTION','ticket','getRenderById','_hover','2034826JNhrxl','url(#$1','?taskId=','ICommandService','disposeWithMe','IUIPartsService','_initCommandExecutedListener','Failed','2983780quJyYR','newValue','getCellMatrix','purple.300','Tooltip','transformMutationsWithChangeset','_unitOnClients','wsSessionTicketUrl','_init','restore','_initStatusComponent','_injector','unsubscribe','_localCacheService','on-line-icon_clip0_910_349','CollaborationController','collabStatus.offline','EffectRefRangId','blue.400'];_0x4304=function(){return _0x75122e;};return _0x4304();}ge=Mt([z(0x1,a[_0x6c52c3(0x1ee)](V['DocSkeletonManagerService'])),z(0x2,a['Inject'](F)),z(0x3,a[_0x6c52c3(0x391)]),z(0x4,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x36c)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0x6c52c3(0x265)]{constructor(_0x402888,_0x8f2a9d){const _0x4a77a5=_0x6c52c3;super(_0x402888,_0x8f2a9d),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x4a77a5(0x208)),_(this,_0x4a77a5(0x42e),''),_(this,_0x4a77a5(0x199),_0x4a77a5(0x1bc)),_(this,_0x4a77a5(0x1ba)),(_0x8f2a9d&&this[_0x4a77a5(0x31b)](_0x8f2a9d),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x4a77a5(0x31b)]({'hovered':!0x0})),this[_0x4a77a5(0x24d)][_0x4a77a5(0x34d)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x6c52c3(0x31b)](_0x5c24bc){const _0x6368d5=_0x6c52c3;var _0x7dde4,_0x41f7cf,_0x973e3f,_0x473b65,_0x48d70d,_0x2bc745;this['_color']=(_0x7dde4=_0x5c24bc[_0x6368d5(0x2fe)])!=null?_0x7dde4:this[_0x6368d5(0x296)],this[_0x6368d5(0x274)]=(_0x41f7cf=_0x5c24bc[_0x6368d5(0x3be)])!=null?_0x41f7cf:this['_hovered'],this[_0x6368d5(0x208)]=(_0x973e3f=_0x5c24bc[_0x6368d5(0x404)])!=null?_0x973e3f:this[_0x6368d5(0x208)],this['_name']=(_0x473b65=_0x5c24bc[_0x6368d5(0x402)])!=null?_0x473b65:this[_0x6368d5(0x42e)],this[_0x6368d5(0x199)]=(_0x48d70d=_0x5c24bc[_0x6368d5(0x2bb)])!=null?_0x48d70d:this['_labelPosition'],this[_0x6368d5(0x1ba)]=(_0x2bc745=_0x5c24bc[_0x6368d5(0x1b2)])!=null?_0x2bc745:this['_backgroundColor'],this['transformByState']({'width':_0x5c24bc[_0x6368d5(0x37f)],'height':_0x5c24bc['height']});}[_0x6c52c3(0x1d6)](_0x551f5a){const _0x19e1bf=_0x6c52c3,{row:_0x4c2f2c,column:_0x2f3cc4}=_0x551f5a;if(_0x4c2f2c>=this[_0x19e1bf(0x208)][_0x19e1bf(0x2ed)]&&_0x4c2f2c<=this[_0x19e1bf(0x208)][_0x19e1bf(0x218)]&&_0x2f3cc4>=this[_0x19e1bf(0x208)][_0x19e1bf(0x374)]&&_0x2f3cc4<=this[_0x19e1bf(0x208)][_0x19e1bf(0x3c0)]){this[_0x19e1bf(0x31b)]({'hovered':!0x0});return;}this[_0x19e1bf(0x31b)]({'hovered':!0x1});}['triggerDblclick'](_0x2e2105){return!0x1;}[_0x6c52c3(0x2dc)](_0x2fab22){const _0x5cc1e7=_0x6c52c3;C[_0x5cc1e7(0x22a)][_0x5cc1e7(0x2c5)](_0x2fab22,{'width':this[_0x5cc1e7(0x37f)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x5cc1e7(0x296)],'evented':!0x1,'fill':this[_0x5cc1e7(0x1ba)]}),this['_hovered']&&(_0x2fab22['save'](),_0x2fab22[_0x5cc1e7(0x308)](0x1,0x0,0x0,0x1,this[_0x5cc1e7(0x37f)],this[_0x5cc1e7(0x199)]===_0x5cc1e7(0x2e4)?0x0:-K),ne[_0x5cc1e7(0x2c5)](_0x2fab22,{'text':this[_0x5cc1e7(0x42e)],'color':this[_0x5cc1e7(0x296)]}),_0x2fab22[_0x5cc1e7(0x39f)]());}}var wt=Object[_0x6c52c3(0x2ac)],yt=(_0x31ae63,_0xef868d,_0xf3514,_0x3689cf)=>{for(var _0x317299=_0x3689cf>0x1?void 0x0:_0x3689cf?wt(_0xef868d,_0xf3514):_0xef868d,_0x780f48=_0x31ae63['length']-0x1,_0x5d57e6;_0x780f48>=0x0;_0x780f48--)(_0x5d57e6=_0x31ae63[_0x780f48])&&(_0x317299=_0x5d57e6(_0x317299)||_0x317299);return _0x317299;},he=(_0x2f7326,_0x4d0a64)=>(_0x26092d,_0x58869c)=>_0x4d0a64(_0x26092d,_0x58869c,_0x2f7326);const xt=0x1389;let Ee=class extends a[_0x6c52c3(0x358)]{constructor(_0x40fa7a,_0x1ab5e4,_0x387ebe,_0x53e38f){const _0x15636c=_0x6c52c3;super(),_(this,_0x15636c(0x43c),new Set()),_(this,_0x15636c(0x1b3),null),(this[_0x15636c(0x33c)]=_0x40fa7a,this['_sheetSkeletonManagerService']=_0x1ab5e4,this[_0x15636c(0x1d8)]=_0x387ebe,this[_0x15636c(0x278)]=_0x53e38f,this[_0x15636c(0x39e)]());}[_0x6c52c3(0x39e)](){const _0x3390ff=_0x6c52c3;this[_0x3390ff(0x190)][_0x3390ff(0x213)]['pipe']($['takeUntil'](this['dispose$']),$[_0x3390ff(0x41c)](_0x2c8e5c=>{const _0x114ddb=_0x3390ff;if(_0x2c8e5c){const _0xf64156=_0x2c8e5c[_0x114ddb(0x321)];return I[_0x114ddb(0x43a)](this[_0x114ddb(0x1d8)]['getCollabCursors$'](this[_0x114ddb(0x33c)][_0x114ddb(0x2b7)]),this[_0x114ddb(0x278)][_0x114ddb(0x1f6)])['pipe']($[_0x114ddb(0x32a)](([_0x4c8e5f,_0x46e619])=>{const _0x2a939e=new Map();return _0x4c8e5f['forEach']((_0x217489,_0x445851)=>{const _0x589f10=_0xc584;if(_0x217489['sheetID']===_0xf64156){const _0x5eb81e={..._0x217489};_0x5eb81e[_0x589f10(0x2fe)]=this['_themeService'][_0x589f10(0x25c)](_0x217489[_0x589f10(0x2fe)]),_0x2a939e[_0x589f10(0x33f)](_0x445851,_0x5eb81e);}}),{'skeleton':_0x2c8e5c,'cursors':_0x2a939e};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x3390ff(0x403)](({skeleton:_0x1275b1,cursors:_0x3fe3ec})=>{const _0x368230=_0x3390ff;this[_0x368230(0x3bd)](),_0x1275b1&&this[_0x368230(0x2cf)](_0x1275b1,_0x3fe3ec);}),this[_0x3390ff(0x190)][_0x3390ff(0x213)]['subscribe'](_0x2ae340=>{const _0x3b4348=_0x3390ff;if(_0x2ae340==null)return;const {skeleton:_0x293f69}=_0x2ae340,{scene:_0x47b6b2}=this[_0x3b4348(0x33c)];_0x47b6b2[_0x3b4348(0x337)][_0x3b4348(0x34d)](a['debounce'](_0x585ed1=>{const _0x191dd4=_0x3b4348;var _0x5165bd,_0xdad584;const {offsetX:_0x386c94,offsetY:_0x3fac48}=_0x585ed1,{x:_0x2f13ff,y:_0x47625d}=_0x47b6b2['getRelativeToViewportCoord'](C[_0x191dd4(0x222)]['FromArray']([_0x386c94,_0x3fac48])),{scaleX:_0x986ddc,scaleY:_0xfc2971}=_0x47b6b2['getAncestorScale'](),_0x22f6c4=_0x47b6b2[_0x191dd4(0x1bd)](C[_0x191dd4(0x209)][_0x191dd4(0x1fa)]),_0x303238=_0x47b6b2['getVpScrollXYInfoByPosToVp'](C[_0x191dd4(0x222)]['FromArray']([_0x2f13ff,_0x47625d]),_0x22f6c4),_0x3c4bc3=_0x293f69[_0x191dd4(0x2eb)](_0x386c94,_0x3fac48,_0x986ddc,_0xfc2971,_0x303238);((_0x5165bd=this['_lastPointer'])==null?void 0x0:_0x5165bd['column'])===_0x3c4bc3[_0x191dd4(0x378)]&&((_0xdad584=this[_0x191dd4(0x1b3)])==null?void 0x0:_0xdad584[_0x191dd4(0x284)])===_0x3c4bc3['row']||this[_0x191dd4(0x43c)][_0x191dd4(0x1b1)](_0x321602=>{const _0x5c65d3=_0x191dd4;_0x321602[_0x5c65d3(0x1d6)](_0x3c4bc3);});},0x64));});}[_0x6c52c3(0x2cf)](_0x64e955,_0xcd0472){const _0x511ef9=_0x6c52c3;var _0x30965c;const _0xb9e2c0=(_0x30965c=this[_0x511ef9(0x190)][_0x511ef9(0x246)]())==null?void 0x0:_0x30965c[_0x511ef9(0x35f)];if(!_0xb9e2c0)return;const _0x253278=this['_getSheetObject']();if(!_0x253278)return;this['_cursors'][_0x511ef9(0x1b1)](_0x15a5dc=>{_0x15a5dc['makeDirty']();});const {scene:_0x5bad62}=_0x253278,_0x250e21=$t(Array['from'](_0xcd0472[_0x511ef9(0x1d0)]()))[_0x511ef9(0x32a)](_0x2260a8=>{const _0x4bf2c5=_0x511ef9,{color:_0x235599,range:_0x37d1c9,name:_0x204c20,selection:_0x550bac,sheetID:_0x568ea5}=_0x2260a8,{startColumn:_0x52aaa9,startRow:_0x15ab1b,endColumn:_0x4a5aad,endRow:_0x4d02d0}=_0x37d1c9,_0x178e71=J['getCoordByCell'](_0x15ab1b,_0x52aaa9,_0x5bad62,_0xb9e2c0),_0x338552=J[_0x4bf2c5(0x1c3)](_0x4d02d0,_0x4a5aad,_0x5bad62,_0xb9e2c0),{columnHeaderHeightAndMarginTop:_0x60817}=_0xb9e2c0,{startX:_0x3fc959,startY:_0x454576}=_0x178e71,{endX:_0x22fe15,endY:_0x588f13}=_0x338552,_0x51061a=_0x22fe15-_0x3fc959,_0x22b099=_0x588f13-_0x454576,_0x5e8098={'labelPosition':_0x454576-_0x60817>=K?_0x4bf2c5(0x1bc):_0x4bf2c5(0x2e4),'sheetID':_0x568ea5,'range':_0x37d1c9,'color':_0x235599,'name':_0x204c20,'selection':_0x550bac,'left':_0x3fc959,'top':_0x454576,'width':_0x51061a,'height':_0x22b099,'evented':!0x1,'zIndex':xt};return new Fe(_0x204c20,_0x5e8098);});_0x5bad62[_0x511ef9(0x347)](_0x250e21,At),this['_cursors']=new Set(_0x250e21);}[_0x6c52c3(0x3bd)](){const _0x9736d4=_0x6c52c3;var _0x1a84fb;(_0x1a84fb=this[_0x9736d4(0x43c)])==null||_0x1a84fb['forEach'](_0x1828c1=>_0x1828c1[_0x9736d4(0x18d)]());}[_0x6c52c3(0x332)](){const _0x3f11fc=_0x6c52c3;return J[_0x3f11fc(0x287)](this['_context']['unit'],this['_context']);}};Ee=yt([he(0x1,a[_0x6c52c3(0x1ee)](J['SheetSkeletonManagerService'])),he(0x2,a[_0x6c52c3(0x1ee)](F)),he(0x3,a['Inject'](a['ThemeService']))],Ee);function $t(_0x18fb12){const _0x1310e4=_0x6c52c3,_0x52e7a5=new Map();return _0x18fb12[_0x1310e4(0x1b1)](_0xa11682=>{const _0x256e6e=_0x1310e4;if(_0x52e7a5[_0x256e6e(0x27c)](_0xa11682[_0x256e6e(0x2b0)])){const _0x11f0b7=_0x52e7a5[_0x256e6e(0x285)](_0xa11682[_0x256e6e(0x2b0)]);_0x11f0b7[_0x256e6e(0x402)]+=',\x20'+_0xa11682[_0x256e6e(0x402)];}else _0x52e7a5[_0x256e6e(0x33f)](_0xa11682[_0x256e6e(0x2b0)],_0xa11682);}),Array[_0x1310e4(0x235)](_0x52e7a5[_0x1310e4(0x1d0)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x3fd02c,_0x4a94a0,_0x4db46e,_0x2588f8)=>{for(var _0x12ddef=_0x2588f8>0x1?void 0x0:_0x2588f8?Bt(_0x4a94a0,_0x4db46e):_0x4a94a0,_0x479bf7=_0x3fd02c['length']-0x1,_0x1f09f5;_0x479bf7>=0x0;_0x479bf7--)(_0x1f09f5=_0x3fd02c[_0x479bf7])&&(_0x12ddef=_0x1f09f5(_0x12ddef)||_0x12ddef);return _0x12ddef;},x=(_0x5a45dd,_0x404577)=>(_0x48f2aa,_0xe77bb)=>_0x404577(_0x48f2aa,_0xe77bb,_0x5a45dd);let Z=class extends a[_0x6c52c3(0x413)]{constructor(_0x164a8b,_0x752c3f,_0x43f678,_0x56b882,_0x492352,_0x27f12f){const _0x3b56e2=_0x6c52c3;super(),this[_0x3b56e2(0x3ad)]=_0x164a8b,this[_0x3b56e2(0x3a3)]=_0x752c3f,this['_collaborationUIEventService']=_0x43f678,this[_0x3b56e2(0x2e8)]=_0x56b882,this['_notificationService']=_0x492352,this[_0x3b56e2(0x298)]=_0x27f12f,this[_0x3b56e2(0x245)](),this['_initEvent']();}[_0x6c52c3(0x245)](){const _0x4ca441=_0x6c52c3;this[_0x4ca441(0x392)](this[_0x4ca441(0x3ad)][_0x4ca441(0x2ab)](()=>{const _0x2e51eb=_0x4ca441;if(this[_0x2e51eb(0x3a3)][_0x2e51eb(0x409)][_0x2e51eb(0x364)])return this[_0x2e51eb(0x298)]['t'](_0x2e51eb(0x2d0));}));}[_0x6c52c3(0x2aa)](){const _0x55663a=_0x6c52c3;this[_0x55663a(0x392)](this[_0x55663a(0x2ce)][_0x55663a(0x1fc)][_0x55663a(0x403)](_0x1bb921=>{const _0x3426de=_0x55663a;_0x1bb921['id']===u[_0x3426de(0x306)]['OTHER_CLIENT_EDITING']&&this[_0x3426de(0x2e8)]['show']({'type':T['MessageType'][_0x3426de(0x31e)],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x3df))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x2df)]&&this[_0x3426de(0x2e8)][_0x3426de(0x1d3)]({'type':T[_0x3426de(0x2bd)][_0x3426de(0x31e)],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x2f8))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x1f8)]&&this[_0x3426de(0x216)][_0x3426de(0x1d3)]({'title':this[_0x3426de(0x298)]['t']('permission.title'),'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x300)),'type':_0x3426de(0x384),'duration':0x0}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x1f3)]&&this[_0x3426de(0x2e8)]['show']({'type':T[_0x3426de(0x2bd)][_0x3426de(0x353)],'content':this[_0x3426de(0x298)]['t']('collaboration.closeRoom')+'('+_0x1bb921[_0x3426de(0x219)]+')'}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x2f5)]&&this[_0x3426de(0x2e8)][_0x3426de(0x1d3)]({'type':T[_0x3426de(0x2bd)]['Warning'],'content':this[_0x3426de(0x298)]['t'](_0x1bb921[_0x3426de(0x219)]||'')}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x3ee)]&&this['_messageService'][_0x3426de(0x1d3)]({'type':T['MessageType']['Warning'],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x1e4))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x224)]&&this[_0x3426de(0x2e8)][_0x3426de(0x1d3)]({'type':T[_0x3426de(0x2bd)][_0x3426de(0x353)],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x1be))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x313)]&&this['_messageService'][_0x3426de(0x1d3)]({'type':T['MessageType']['Error'],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x2d1))});}));}};Z=Ft([x(0x0,R[_0x6c52c3(0x370)]),x(0x1,u[_0x6c52c3(0x3ea)]),x(0x2,a['Inject'](u[_0x6c52c3(0x32c)])),x(0x3,R['IMessageService']),x(0x4,R['INotificationService']),x(0x5,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x225)]))],Z);const kt='collaboration-client-ui.config',Le={};var jt=Object[_0x6c52c3(0x2ac)],Yt=(_0x158eb0,_0x5a5b14,_0x58b839,_0x567468)=>{const _0x4ea4d3=_0x6c52c3;for(var _0x2d4e8c=_0x567468>0x1?void 0x0:_0x567468?jt(_0x5a5b14,_0x58b839):_0x5a5b14,_0x279930=_0x158eb0[_0x4ea4d3(0x1f0)]-0x1,_0x1e7ef9;_0x279930>=0x0;_0x279930--)(_0x1e7ef9=_0x158eb0[_0x279930])&&(_0x2d4e8c=_0x1e7ef9(_0x2d4e8c)||_0x2d4e8c);return _0x2d4e8c;},Me=(_0x2caad0,_0x19138b)=>(_0x33457d,_0x4b2e5b)=>_0x19138b(_0x33457d,_0x4b2e5b,_0x2caad0);let Q=class{constructor(_0x1a6af6,_0xcbde58){this['_transformService']=_0x1a6af6,this['_renderManagerService']=_0xcbde58;}[_0x6c52c3(0x1da)](_0x1693bd){const _0x222f67=_0x6c52c3;this[_0x222f67(0x1e8)](_0x1693bd),this['_transformPreviousActiveRange'](_0x1693bd);}['transformRemoteChangeset'](_0x45e24b){const _0x1f7ba2=_0x6c52c3,{unitID:_0x29a99b}=_0x45e24b,_0x5b80c0=this[_0x1f7ba2(0x23a)][_0x1f7ba2(0x38c)](_0x29a99b)['with'](p[_0x1f7ba2(0x198)]),{redoCache:_0x2b4731}=_0x5b80c0[_0x1f7ba2(0x189)]();if(_0x2b4731['length']===0x0)return _0x45e24b;let _0x486abd=a[_0x1f7ba2(0x35e)]['deepClone'](_0x45e24b['mutations'][0x0]);for(let _0x5b3181=0x0;_0x5b3181<_0x2b4731[_0x1f7ba2(0x1f0)];_0x5b3181++){const _0x4e4691={'id':_0x1f7ba2(0x339),'params':{..._0x2b4731[_0x5b3181]}},_0x418d05=this['_transformService']['transformMutation'](_0x486abd,_0x4e4691,!0x1);if(g[_0x1f7ba2(0x294)](_0x418d05))throw _0x418d05[_0x1f7ba2(0x384)];_0x486abd=_0x418d05[_0x1f7ba2(0x20f)];}return{...a[_0x1f7ba2(0x35e)][_0x1f7ba2(0x23f)](_0x45e24b),'mutations':[_0x486abd]};}['_transformUndoRedoStack'](_0x34b1e1){const _0x2b028f=_0x6c52c3,{unitID:_0x3d8b1d}=_0x34b1e1,_0x107dc0=this[_0x2b028f(0x23a)][_0x2b028f(0x38c)](_0x3d8b1d)[_0x2b028f(0x2a1)](p['DocIMEInputManagerService']),{undoCache:_0x329535,redoCache:_0x48f1cc}=_0x107dc0[_0x2b028f(0x189)]();if(_0x329535[_0x2b028f(0x1f0)]===0x0||_0x48f1cc[_0x2b028f(0x1f0)]===0x0)return;const _0x3cbbf2=[],_0x4d1165=[];let _0x64df99=a['Tools'][_0x2b028f(0x23f)](_0x34b1e1['mutations'][0x0]),_0x234328=a[_0x2b028f(0x35e)][_0x2b028f(0x23f)](_0x34b1e1[_0x2b028f(0x28a)][0x0]);for(let _0xfb5a40=_0x329535[_0x2b028f(0x1f0)]-0x1;_0xfb5a40>=0x0;_0xfb5a40--){const _0x1b24a1={'id':_0x2b028f(0x339),'params':{..._0x329535[_0xfb5a40]}},_0x1a22f8={'id':'doc.mutation.rich-text-editing','params':{..._0x48f1cc[_0xfb5a40]}},_0xc1a750=this['_transformService'][_0x2b028f(0x1a1)](_0x64df99,_0x1b24a1,!0x1),_0x2b840d=this[_0x2b028f(0x3ce)][_0x2b028f(0x1a1)](_0x234328,_0x1a22f8,!0x1);if(g[_0x2b028f(0x294)](_0xc1a750))throw _0xc1a750[_0x2b028f(0x384)];if(g[_0x2b028f(0x294)](_0x2b840d))throw _0x2b840d[_0x2b028f(0x384)];_0x3cbbf2[_0x2b028f(0x36d)](_0xc1a750[_0x2b028f(0x220)][_0x2b028f(0x2f4)]),_0x4d1165[_0x2b028f(0x36d)](_0x2b840d[_0x2b028f(0x220)][_0x2b028f(0x2f4)]),_0x64df99=_0xc1a750[_0x2b028f(0x20f)],_0x234328=_0x2b840d[_0x2b028f(0x20f)];}_0x107dc0['setUndoRedoMutationParamsCache']({'undoCache':_0x3cbbf2,'redoCache':_0x4d1165});}[_0x6c52c3(0x366)](_0xb00573){const _0x334c97=_0x6c52c3,{unitID:_0x52c28c}=_0xb00573,_0x251aaf=this[_0x334c97(0x23a)][_0x334c97(0x38c)](_0x52c28c)[_0x334c97(0x2a1)](p['DocIMEInputManagerService']),_0x2a6834=_0x251aaf[_0x334c97(0x18f)]();if(_0x2a6834==null)return;const _0x54aa49=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xb00573[_0x334c97(0x2ec)],'actions':null,'textRanges':[_0x2a6834]}}],_0x5dbf8c=this[_0x334c97(0x3ce)][_0x334c97(0x39b)](_0xb00573,_0x54aa49);if(!g[_0x334c97(0x37d)](_0x5dbf8c))throw _0x5dbf8c[_0x334c97(0x384)];const _0x11caf0=_0x5dbf8c[_0x334c97(0x220)][0x0][_0x334c97(0x2f4)][_0x334c97(0x350)];Array[_0x334c97(0x24b)](_0x11caf0)&&_0x11caf0[_0x334c97(0x1f0)]&&_0x251aaf[_0x334c97(0x1fd)](_0x11caf0[0x0]);}};Q=Yt([Me(0x0,g['ITransformService']),Me(0x1,C[_0x6c52c3(0x2a2)])],Q);var Ht=Object[_0x6c52c3(0x2ac)],Wt=(_0xf57b72,_0x4915c4,_0x4c8f91,_0x30eeb7)=>{const _0xe459d4=_0x6c52c3;for(var _0x4793a4=_0x30eeb7>0x1?void 0x0:_0x30eeb7?Ht(_0x4915c4,_0x4c8f91):_0x4915c4,_0x15d731=_0xf57b72[_0xe459d4(0x1f0)]-0x1,_0x42556f;_0x15d731>=0x0;_0x15d731--)(_0x42556f=_0xf57b72[_0x15d731])&&(_0x4793a4=_0x42556f(_0x4793a4)||_0x4793a4);return _0x4793a4;},ue=(_0x535e6f,_0x57e872)=>(_0x56d570,_0x3d2e4b)=>_0x57e872(_0x56d570,_0x3d2e4b,_0x535e6f);let ee=class{constructor(_0x375c6f,_0x3ff286,_0x19fe80){const _0x5206d5=_0x6c52c3;this[_0x5206d5(0x3a1)]=_0x375c6f,this[_0x5206d5(0x3ce)]=_0x3ff286,this[_0x5206d5(0x2e7)]=_0x19fe80;}[_0x6c52c3(0x25e)](_0x4fb539){const _0x2b9c58=_0x6c52c3;this[_0x2b9c58(0x301)](_0x4fb539);}[_0x6c52c3(0x256)](_0xabecff){const _0x37906f=_0x6c52c3,{unitID:_0x38a5f1}=_0xabecff,{collaboration:_0x4b5d9d}=this[_0x37906f(0x2e7)][_0x37906f(0x1e2)](_0x38a5f1);if(_0x4b5d9d[_0x37906f(0x1f0)]===0x0)return _0xabecff;let _0x18cef4=a[_0x37906f(0x35e)][_0x37906f(0x23f)](_0xabecff[_0x37906f(0x28a)][0x0]);for(let _0x4b720b=0x0;_0x4b720b<_0x4b5d9d['length'];_0x4b720b++){const _0x48e91c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b5d9d[_0x4b720b]['unitId'],..._0x4b5d9d[_0x4b720b][_0x37906f(0x28d)]}},_0xb95ec=this[_0x37906f(0x3ce)][_0x37906f(0x1a1)](_0x18cef4,_0x48e91c,!0x1);if(g[_0x37906f(0x294)](_0xb95ec))throw _0xb95ec[_0x37906f(0x384)];_0x18cef4=_0xb95ec[_0x37906f(0x20f)];}return{...a[_0x37906f(0x35e)]['deepClone'](_0xabecff),'mutations':[_0x18cef4]};}[_0x6c52c3(0x301)](_0x10d3ce){const _0x1f25ca=_0x6c52c3,{unitID:_0x2fa7e5}=_0x10d3ce,{history:_0x327579,collaboration:_0x26f9a1}=this[_0x1f25ca(0x2e7)][_0x1f25ca(0x1e2)](_0x2fa7e5);if(_0x327579[_0x1f25ca(0x1f0)]===0x0&&_0x26f9a1[_0x1f25ca(0x1f0)]===0x0)return;const _0x4e5992=[],_0x57f248=[];let _0x5ba08e=a[_0x1f25ca(0x35e)]['deepClone'](_0x10d3ce[_0x1f25ca(0x28a)][0x0]),_0x31ca5a=a[_0x1f25ca(0x35e)]['deepClone'](_0x10d3ce['mutations'][0x0]);for(let _0x65c946=_0x327579[_0x1f25ca(0x1f0)]-0x1;_0x65c946>=0x0;_0x65c946--){const _0x44088e={'id':_0x1f25ca(0x339),'params':{'unitId':_0x327579[_0x65c946]['unitId'],..._0x327579[_0x65c946][_0x1f25ca(0x2c3)]}},_0x181dd5={'id':_0x1f25ca(0x339),'params':{'unitId':_0x327579[_0x65c946]['unitId'],..._0x327579[_0x65c946]['redoState']}},_0x33100a=this['_transformService']['transformMutation'](_0x5ba08e,_0x44088e,!0x1),_0x3dbad6=this[_0x1f25ca(0x3ce)][_0x1f25ca(0x1a1)](_0x31ca5a,_0x181dd5,!0x1);if(g[_0x1f25ca(0x294)](_0x33100a))throw _0x33100a[_0x1f25ca(0x384)];if(g[_0x1f25ca(0x294)](_0x3dbad6))throw _0x3dbad6[_0x1f25ca(0x384)];_0x4e5992['unshift']({..._0x327579[_0x65c946],'undoState':_0x33100a[_0x1f25ca(0x220)][_0x1f25ca(0x2f4)],'redoState':_0x3dbad6[_0x1f25ca(0x220)][_0x1f25ca(0x2f4)]}),_0x5ba08e=_0x33100a[_0x1f25ca(0x20f)],_0x31ca5a=_0x3dbad6['m1Prime'];}_0x5ba08e=a[_0x1f25ca(0x35e)][_0x1f25ca(0x23f)](_0x10d3ce[_0x1f25ca(0x28a)][0x0]),_0x31ca5a=a['Tools'][_0x1f25ca(0x23f)](_0x10d3ce[_0x1f25ca(0x28a)][0x0]);for(let _0x31c86f=_0x26f9a1[_0x1f25ca(0x1f0)]-0x1;_0x31c86f>=0x0;_0x31c86f--){const _0x54f651={'id':_0x1f25ca(0x339),'params':{'unitId':_0x26f9a1[_0x31c86f][_0x1f25ca(0x2b7)],..._0x26f9a1[_0x31c86f][_0x1f25ca(0x2c3)]}},_0x370181={'id':_0x1f25ca(0x339),'params':{'unitId':_0x26f9a1[_0x31c86f][_0x1f25ca(0x2b7)],..._0x26f9a1[_0x31c86f]['redoState']}},_0x3740a4=this[_0x1f25ca(0x3ce)][_0x1f25ca(0x1a1)](_0x5ba08e,_0x54f651,!0x1),_0x598031=this['_transformService']['transformMutation'](_0x31ca5a,_0x370181,!0x1);if(g['isTransformMutationFailure'](_0x3740a4))throw _0x3740a4['error'];if(g[_0x1f25ca(0x294)](_0x598031))throw _0x598031[_0x1f25ca(0x384)];_0x57f248[_0x1f25ca(0x36d)]({..._0x26f9a1[_0x31c86f],'undoState':_0x3740a4[_0x1f25ca(0x220)]['params'],'redoState':_0x598031[_0x1f25ca(0x220)][_0x1f25ca(0x2f4)]}),_0x5ba08e=_0x3740a4['m1Prime'],_0x31ca5a=_0x598031[_0x1f25ca(0x20f)];}this[_0x1f25ca(0x2e7)][_0x1f25ca(0x34a)](_0x2fa7e5,{'history':_0x4e5992,'collaboration':_0x57f248});}};ee=Wt([ue(0x0,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),ue(0x1,g[_0x6c52c3(0x24a)]),ue(0x2,a[_0x6c52c3(0x1ee)](p[_0x6c52c3(0x212)]))],ee);var Vt=Object[_0x6c52c3(0x2ac)],Gt=(_0x2698f9,_0x37731b,_0x6c2220,_0x3d6349)=>{const _0x17319d=_0x6c52c3;for(var _0x1574ec=_0x3d6349>0x1?void 0x0:_0x3d6349?Vt(_0x37731b,_0x6c2220):_0x37731b,_0x5b7cd8=_0x2698f9[_0x17319d(0x1f0)]-0x1,_0x258b0c;_0x5b7cd8>=0x0;_0x5b7cd8--)(_0x258b0c=_0x2698f9[_0x5b7cd8])&&(_0x1574ec=_0x258b0c(_0x1574ec)||_0x1574ec);return _0x1574ec;},Ae=(_0x41952e,_0x32a648)=>(_0x12862c,_0x1672bb)=>_0x32a648(_0x12862c,_0x1672bb,_0x41952e);let te=class{constructor(_0x43cca1,_0x1c5713){const _0x5d8662=_0x6c52c3;this[_0x5d8662(0x3a1)]=_0x43cca1,this[_0x5d8662(0x3ce)]=_0x1c5713;}[_0x6c52c3(0x2c8)](_0x522a3f){const _0x213a76=_0x6c52c3;var _0x5e9cae;const _0x1a69b0=this[_0x213a76(0x3a1)][_0x213a76(0x285)](V[_0x213a76(0x343)]),_0x5d0a97=(_0x5e9cae=_0x1a69b0['getDocRanges']())!=null?_0x5e9cae:[];if(_0x5d0a97[_0x213a76(0x1f0)]===0x0)return;const _0x2587cd=_0x522a3f[_0x213a76(0x2ec)],_0x2371e7=[{'id':_0x213a76(0x339),'params':{'unitId':_0x2587cd,'actions':null,'textRanges':_0x5d0a97}}],_0x2fe3b5=this[_0x213a76(0x3ce)][_0x213a76(0x39b)](_0x522a3f,_0x2371e7);if(!g['isTransformMutationsWithChangesetSuccess'](_0x2fe3b5))throw _0x2fe3b5[_0x213a76(0x384)];const _0x1c145f=_0x2fe3b5['m2Prime'][0x0][_0x213a76(0x2f4)][_0x213a76(0x350)];Array[_0x213a76(0x24b)](_0x1c145f)&&_0x1c145f[_0x213a76(0x1f0)]&&_0x1a69b0[_0x213a76(0x2e2)](_0x1c145f,{'unitId':_0x2587cd,'subUnitId':_0x2587cd},!0x1);}};te=Gt([Ae(0x0,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),Ae(0x1,g[_0x6c52c3(0x24a)])],te);var Xt=Object[_0x6c52c3(0x2ac)],Kt=(_0x746e77,_0x356a4c,_0x416377,_0x5488d7)=>{for(var _0x42539b=_0x5488d7>0x1?void 0x0:_0x5488d7?Xt(_0x356a4c,_0x416377):_0x356a4c,_0x5dad7f=_0x746e77['length']-0x1,_0xcbb9f9;_0x5dad7f>=0x0;_0x5dad7f--)(_0xcbb9f9=_0x746e77[_0x5dad7f])&&(_0x42539b=_0xcbb9f9(_0x42539b)||_0x42539b);return _0x42539b;},U=(_0x5c7569,_0x4c2d1b)=>(_0x456cf3,_0x473f95)=>_0x4c2d1b(_0x456cf3,_0x473f95,_0x5c7569);let se=class extends a[_0x6c52c3(0x413)]{constructor(_0xfe1109,_0xa5f89a,_0x4051db,_0x15c749,_0x401dee,_0x23f4fb,_0x1fbbf1,_0x461759){const _0x249248=_0x6c52c3;super(),_(this,_0x249248(0x3f8),new I['BehaviorSubject'](u['CollaborationStatus'][_0x249248(0x340)])),(this[_0x249248(0x2e7)]=_0xfe1109,this[_0x249248(0x1de)]=_0xa5f89a,this[_0x249248(0x203)]=_0x4051db,this['_docTransformStateCacheService']=_0x15c749,this[_0x249248(0x42b)]=_0x401dee,this[_0x249248(0x42a)]=_0x23f4fb,this[_0x249248(0x2e8)]=_0x1fbbf1,this[_0x249248(0x298)]=_0x461759,this[_0x249248(0x2f1)]());}['_initEntityListener'](){const _0x10d337=_0x6c52c3;this[_0x10d337(0x392)](this['_collaborationController']['entityInit$'][_0x10d337(0x403)](_0x4a73fc=>{const _0x537d15=_0x10d337,_0x3999bb=this[_0x537d15(0x2e7)][_0x537d15(0x377)][_0x537d15(0x403)](_0x127274=>{const _0x532c17=_0x537d15;if(_0x127274==null)return;const {unitId:_0xcc9189,redoState:_0x53bb7f,commandId:_0x3b2691}=_0x127274;if(_0xcc9189!==_0x4a73fc['unitID'])return;const _0x366a45={'id':_0x3b2691,'type':a[_0x532c17(0x233)]['MUTATION'],'params':{'unitId':_0xcc9189,'actions':_0x53bb7f[_0x532c17(0x3b0)],'textRanges':null}};_0x4a73fc['onLocalMutation'](_0x366a45);});if(_0x4a73fc[_0x537d15(0x392)](_0x3999bb),_0x4a73fc instanceof u[_0x537d15(0x251)]){const _0x3fa583={'onTransformIME':_0x3794d9=>this[_0x537d15(0x203)][_0x537d15(0x1da)](_0x3794d9),'onTransformState':_0x7512f=>this[_0x537d15(0x20e)]['transformStateCache'](_0x7512f),'onTransformSelections':_0x569fc8=>this['_docTransformSelectionsService']['transformSelections'](_0x569fc8),'onSyncEditingCollabCursor':_0x5062aa=>this[_0x537d15(0x42a)][_0x537d15(0x420)](_0x5062aa),'onTransformRemoteChangesetByIMECache':_0x391589=>this[_0x537d15(0x203)][_0x537d15(0x256)](_0x391589),'onTransformRemoteChangesetByStateCache':_0x475ebe=>this[_0x537d15(0x20e)][_0x537d15(0x256)](_0x475ebe)};_0x4a73fc['addHandlerCallback'](_0x3fa583);}}));}};se=Kt([U(0x0,a[_0x6c52c3(0x1ee)](p[_0x6c52c3(0x212)])),U(0x1,a[_0x6c52c3(0x1ee)](u[_0x6c52c3(0x3a5)])),U(0x2,a[_0x6c52c3(0x1ee)](Q)),U(0x3,a[_0x6c52c3(0x1ee)](ee)),U(0x4,a['Inject'](te)),U(0x5,a[_0x6c52c3(0x1ee)](Re)),U(0x6,R[_0x6c52c3(0x1c8)]),U(0x7,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x225)]))],se);var G=(_0x274d12=>(_0x274d12[_0x274d12['UNDEFINED']=0x0]=_0x6c52c3(0x282),_0x274d12[_0x274d12['OK']=0x1]='OK',_0x274d12[_0x274d12['INTERNAL_ERROR']=0x2]=_0x6c52c3(0x2a5),_0x274d12[_0x274d12[_0x6c52c3(0x1f8)]=0x3]='PERMISSION_DENIED',_0x274d12[_0x274d12[_0x6c52c3(0x368)]=0x4]=_0x6c52c3(0x368),_0x274d12[_0x274d12[_0x6c52c3(0x41e)]=0x5]=_0x6c52c3(0x41e),_0x274d12[_0x274d12[_0x6c52c3(0x3dc)]=0x6]=_0x6c52c3(0x3dc),_0x274d12[_0x274d12[_0x6c52c3(0x3aa)]=0x7]=_0x6c52c3(0x3aa),_0x274d12[_0x274d12['TOO_MANY_REQUESTS']=0x8]=_0x6c52c3(0x21b),_0x274d12[_0x274d12[_0x6c52c3(0x315)]=0x9]=_0x6c52c3(0x315),_0x274d12[_0x274d12[_0x6c52c3(0x23b)]=0xa]=_0x6c52c3(0x23b),_0x274d12[_0x274d12[_0x6c52c3(0x2ea)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x274d12[_0x274d12[_0x6c52c3(0x3d4)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x274d12[_0x274d12['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x274d12[_0x274d12[_0x6c52c3(0x429)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x274d12[_0x274d12[_0x6c52c3(0x1c6)]=0xf]=_0x6c52c3(0x1c6),_0x274d12[_0x274d12[_0x6c52c3(0x223)]=0x10]=_0x6c52c3(0x223),_0x274d12[_0x274d12[_0x6c52c3(0x1c7)]=0x64]=_0x6c52c3(0x1c7),_0x274d12[_0x274d12[_0x6c52c3(0x2d6)]=0x65]=_0x6c52c3(0x2d6),_0x274d12[_0x274d12[_0x6c52c3(0x305)]=0xc9]=_0x6c52c3(0x305),_0x274d12[_0x274d12[_0x6c52c3(0x1dc)]=0xca]=_0x6c52c3(0x1dc),_0x274d12[_0x274d12[_0x6c52c3(0x243)]=0x1389]=_0x6c52c3(0x243),_0x274d12[_0x274d12['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x6c52c3(0x29a),_0x274d12[_0x274d12[_0x6c52c3(0x2bf)]=0x1772]=_0x6c52c3(0x2bf),_0x274d12[_0x274d12['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x6c52c3(0x38a),_0x274d12[_0x274d12[_0x6c52c3(0x23c)]=0x1b59]=_0x6c52c3(0x23c),_0x274d12[_0x274d12[_0x6c52c3(0x19e)]=0x1b5a]=_0x6c52c3(0x19e),_0x274d12[_0x274d12[_0x6c52c3(0x365)]=0x1b5b]=_0x6c52c3(0x365),_0x274d12[_0x274d12['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x274d12[_0x274d12[_0x6c52c3(0x36f)]=0x1b5d]=_0x6c52c3(0x36f),_0x274d12[_0x274d12[_0x6c52c3(0x29d)]=0x1f41]=_0x6c52c3(0x29d),_0x274d12[_0x274d12[_0x6c52c3(0x349)]=0x2329]=_0x6c52c3(0x349),_0x274d12[_0x274d12[_0x6c52c3(0x1b8)]=0x232a]=_0x6c52c3(0x1b8),_0x274d12[_0x274d12['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x6c52c3(0x20a),_0x274d12[_0x274d12['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x6c52c3(0x2de),_0x274d12[_0x274d12[_0x6c52c3(0x412)]=0x232d]=_0x6c52c3(0x412),_0x274d12[_0x274d12[_0x6c52c3(0x341)]=0x2711]=_0x6c52c3(0x341),_0x274d12[_0x274d12['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x274d12[_0x274d12[_0x6c52c3(0x41d)]=0x2713]=_0x6c52c3(0x41d),_0x274d12[_0x274d12[_0x6c52c3(0x327)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x274d12[_0x274d12[_0x6c52c3(0x1af)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x274d12[_0x274d12[_0x6c52c3(0x423)]=0x271b]=_0x6c52c3(0x423),_0x274d12[_0x274d12[_0x6c52c3(0x210)]=0x271c]=_0x6c52c3(0x210),_0x274d12[_0x274d12[_0x6c52c3(0x1e1)]=0x271d]=_0x6c52c3(0x1e1),_0x274d12[_0x274d12[_0x6c52c3(0x3e9)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x274d12[_0x274d12[_0x6c52c3(0x266)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x274d12[_0x274d12[_0x6c52c3(0x21f)]=0x2720]=_0x6c52c3(0x21f),_0x274d12[_0x274d12[_0x6c52c3(0x328)]=0x2af9]=_0x6c52c3(0x328),_0x274d12[_0x274d12['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x274d12[_0x274d12[_0x6c52c3(0x281)]=0x2ee2]=_0x6c52c3(0x281),_0x274d12[_0x274d12[_0x6c52c3(0x3e4)]=0x2ee3]=_0x6c52c3(0x3e4),_0x274d12[_0x274d12['USER_NOT_INVITED_CODE']=0x2ee4]=_0x6c52c3(0x3d8),_0x274d12[_0x274d12[_0x6c52c3(0x31d)]=0x2ee5]=_0x6c52c3(0x31d),_0x274d12[_0x274d12['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x6c52c3(0x3fd),_0x274d12[_0x274d12[_0x6c52c3(0x1f5)]=0x32ca]=_0x6c52c3(0x1f5),_0x274d12[_0x274d12['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x6c52c3(0x1fe),_0x274d12[_0x274d12[_0x6c52c3(0x31a)]=0x36b1]=_0x6c52c3(0x31a),_0x274d12[_0x274d12[_0x6c52c3(0x186)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x274d12[_0x274d12['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x6c52c3(0x2e6),_0x274d12[_0x274d12[_0x6c52c3(0x27b)]=0x36b4]=_0x6c52c3(0x27b),_0x274d12[_0x274d12['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x6c52c3(0x389),_0x274d12[_0x274d12[_0x6c52c3(0x34f)]=0x3716]=_0x6c52c3(0x34f),_0x274d12[_0x274d12['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x6c52c3(0x1fb),_0x274d12[_0x274d12[_0x6c52c3(0x3b8)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x274d12[_0x274d12['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x274d12[_0x274d12[_0x6c52c3(0x356)]=0x3a9b]=_0x6c52c3(0x356),_0x274d12[_0x274d12['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x6c52c3(0x2c1),_0x274d12[_0x274d12[_0x6c52c3(0x195)]=0x3a9d]=_0x6c52c3(0x195),_0x274d12[_0x274d12[_0x6c52c3(0x297)]=0x3a9e]=_0x6c52c3(0x297),_0x274d12[_0x274d12['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x6c52c3(0x204),_0x274d12[_0x274d12[_0x6c52c3(0x2e5)]=-0x1]=_0x6c52c3(0x2e5),_0x274d12))(G||{});function qt(_0x22a654){const _0x317beb=_0x6c52c3;var _0x51ad34,_0x520e74;const _0x144924=(_0x51ad34=_0x22a654[_0x317beb(0x3af)])==null?void 0x0:_0x51ad34[_0x317beb(0x264)],_0x38f361=((_0x520e74=_0x22a654['stageInfo'])==null?void 0x0:_0x520e74[_0x317beb(0x400)])||0x0;return _0x144924===B[_0x317beb(0x30c)][_0x317beb(0x187)]&&_0x38f361>0x0;}function zt(_0x518fd0){const _0x19bac6=_0x6c52c3;return _0x518fd0['functionsExecutedState']===B[_0x19bac6(0x19b)]['SUCCESS'];}var Jt=Object[_0x6c52c3(0x2ac)],Zt=(_0x22f5c1,_0x2bd6e0,_0xd87b0a,_0x59437b)=>{const _0x4225e4=_0x6c52c3;for(var _0x33c53e=_0x59437b>0x1?void 0x0:_0x59437b?Jt(_0x2bd6e0,_0xd87b0a):_0x2bd6e0,_0x11598a=_0x22f5c1[_0x4225e4(0x1f0)]-0x1,_0x4d676e;_0x11598a>=0x0;_0x11598a--)(_0x4d676e=_0x22f5c1[_0x11598a])&&(_0x33c53e=_0x4d676e(_0x33c53e)||_0x33c53e);return _0x33c53e;},A=(_0x580f33,_0x5e7cb2)=>(_0x1bd8c7,_0x37b5c3)=>_0x5e7cb2(_0x1bd8c7,_0x37b5c3,_0x580f33);const Qt=_0x6c52c3(0x249),es=_0x6c52c3(0x26a),ts=_0x6c52c3(0x34c);let ie=class extends a[_0x6c52c3(0x413)]{constructor(_0x1f4079,_0x5a16a1,_0x4e8f18,_0xccb8f2,_0x16509a,_0x5b7917,_0x2af860){const _0xf8b725=_0x6c52c3;super(),_(this,_0xf8b725(0x28e),null),_(this,_0xf8b725(0x1c0),0x0),_(this,_0xf8b725(0x425),0x0),_(this,_0xf8b725(0x200),[]),_(this,_0xf8b725(0x275),0x0),(this[_0xf8b725(0x2e8)]=_0x1f4079,this['_commandService']=_0x5a16a1,this[_0xf8b725(0x1ed)]=_0x4e8f18,this['_httpService']=_0xccb8f2,this[_0xf8b725(0x3dd)]=_0x16509a,this[_0xf8b725(0x1db)]=_0x5b7917,this['_localeService']=_0x2af860,this[_0xf8b725(0x2c4)]());}['_initCommandInterceptor'](){const _0x1e026c=_0x6c52c3;this[_0x1e026c(0x392)](this['_commandService'][_0x1e026c(0x2c0)]((_0x318094,_0x3d539e)=>{const _0x17d70a=_0x1e026c;if(_0x318094['id']!==B[_0x17d70a(0x260)]['id'])return;const _0x2a7b79=_0x318094[_0x17d70a(0x2f4)];if(!this[_0x17d70a(0x2b9)](_0x2a7b79['dirtyRanges']))return;if(!this[_0x17d70a(0x3cf)]())throw this[_0x17d70a(0x1d7)](_0x318094,_0x3d539e),this[_0x17d70a(0x288)](),new a['CanceledError']();})),this[_0x1e026c(0x392)](this['_commandService'][_0x1e026c(0x22f)]((_0x3e1528,_0x2b882b)=>{const _0x1e7c88=_0x1e026c;if(_0x3e1528['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0xd29848=_0x3e1528[_0x1e7c88(0x2f4)];if(qt(_0xd29848)){const _0x159618=a[_0x1e7c88(0x254)]();this[_0x1e7c88(0x200)]['push'](_0x159618),this[_0x1e7c88(0x277)](_0x159618);}else{if(zt(_0xd29848)&&this['_taskIds'][_0x1e7c88(0x1f0)]>0x0){const _0x13704e=this['_taskIds']['shift']();this[_0x1e7c88(0x2cc)](_0x13704e);}}}));}['dispose'](){const _0x457c7d=_0x6c52c3;super['dispose'](),this[_0x457c7d(0x3b7)](),this['_taskIds']=[],this[_0x457c7d(0x425)]=0x0,this[_0x457c7d(0x1c0)]=0x0,this[_0x457c7d(0x275)]=0x0;}async[_0x6c52c3(0x1d7)](_0x230a55,_0x2c979e){const _0x5160e0=_0x6c52c3;for(let _0x58cc38=0x0;_0x58cc38<0x1e;_0x58cc38++)try{if(await this[_0x5160e0(0x1a9)](),this[_0x5160e0(0x3cf)]()){this[_0x5160e0(0x2f0)](_0x230a55,_0x2c979e),this['_messageService']['show']({'content':this[_0x5160e0(0x298)]['t']('formula.calculation.started'),'type':T[_0x5160e0(0x2bd)][_0x5160e0(0x42f)]});return;}await new Promise(_0x4c7a1a=>{this['_pollingInterval']=window['setTimeout'](_0x4c7a1a,0x3e8);});}catch(_0x4e068d){this[_0x5160e0(0x1db)][_0x5160e0(0x384)](_0x4e068d);}this[_0x5160e0(0x2e8)][_0x5160e0(0x1d3)]({'content':this[_0x5160e0(0x298)]['t'](_0x5160e0(0x29c)),'type':T[_0x5160e0(0x2bd)]['Error']});}[_0x6c52c3(0x2f0)](_0x56dbab,_0x4bd98d){const _0x3a7842=_0x6c52c3;try{this['_commandService'][_0x3a7842(0x319)](_0x56dbab['id'],_0x56dbab[_0x3a7842(0x2f4)],_0x4bd98d);}catch(_0x4640c7){this[_0x3a7842(0x1db)][_0x3a7842(0x384)](_0x4640c7);}}['_setFormulaLimitStatus'](_0x33ef35,_0x7d7641){const _0x3227cf=_0x6c52c3;_0x7d7641<this[_0x3227cf(0x275)]||(this[_0x3227cf(0x275)]=_0x7d7641,this[_0x3227cf(0x1c0)]=Number[_0x3227cf(0x201)](_0x33ef35['maxFormulaLimit']),this[_0x3227cf(0x425)]=Number[_0x3227cf(0x201)](_0x33ef35['currentUsage']));}async[_0x6c52c3(0x277)](_0x208a16){const _0x16d2a0=_0x6c52c3;var _0x458a69,_0x24843d;const _0x3ebddd=Date['now']();try{const _0x3ad42a=((_0x458a69=this[_0x16d2a0(0x1ed)][_0x16d2a0(0x193)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x458a69[_0x16d2a0(0x2a3)])||es,_0x440c9b=(await this['_httpService'][_0x16d2a0(0x26f)](_0x3ad42a,{'body':JSON[_0x16d2a0(0x302)]({'taskId':_0x208a16})}))['body'];if(((_0x24843d=_0x440c9b[_0x16d2a0(0x384)])==null?void 0x0:_0x24843d[_0x16d2a0(0x26c)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x440c9b[_0x16d2a0(0x439)],_0x3ebddd);}catch(_0x2e9dc5){this[_0x16d2a0(0x1db)][_0x16d2a0(0x384)](_0x2e9dc5);}}async['_getFormulaLimitStatus'](_0x4ca71c){const _0xf05b57=_0x6c52c3;var _0x4559bd,_0x5b744d;const _0x19e11a=Date[_0xf05b57(0x416)]();try{const _0x505253=((_0x4559bd=this[_0xf05b57(0x1ed)]['getConfig'](u[_0xf05b57(0x295)]))==null?void 0x0:_0x4559bd[_0xf05b57(0x25a)])||Qt,_0x4c362e=_0x4ca71c?_0x505253+_0xf05b57(0x390)+encodeURIComponent(_0x4ca71c):_0x505253,_0x57b856=(await this[_0xf05b57(0x26d)][_0xf05b57(0x285)](_0x4c362e))['body'];if(((_0x5b744d=_0x57b856[_0xf05b57(0x384)])==null?void 0x0:_0x5b744d[_0xf05b57(0x26c)])!==G['OK'])return;this[_0xf05b57(0x32f)](_0x57b856[_0xf05b57(0x439)],_0x19e11a);}catch(_0x2a3cec){this[_0xf05b57(0x1db)][_0xf05b57(0x384)](_0x2a3cec);}}async[_0x6c52c3(0x2cc)](_0x301184){const _0xa13cd9=_0x6c52c3;var _0x586711,_0x154503;const _0x438a1a=Date[_0xa13cd9(0x416)]();try{const _0x51b420=((_0x586711=this[_0xa13cd9(0x1ed)][_0xa13cd9(0x193)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x586711[_0xa13cd9(0x3ca)])||ts,_0x214660=(await this[_0xa13cd9(0x26d)][_0xa13cd9(0x26f)](_0x51b420,{'body':JSON[_0xa13cd9(0x302)]({'taskId':_0x301184})}))[_0xa13cd9(0x183)];if(((_0x154503=_0x214660[_0xa13cd9(0x384)])==null?void 0x0:_0x154503[_0xa13cd9(0x26c)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x214660[_0xa13cd9(0x439)],_0x438a1a);}catch(_0xc05c02){this[_0xa13cd9(0x1db)]['error'](_0xc05c02);}}[_0x6c52c3(0x3cf)](){const _0x14759b=_0x6c52c3;return this[_0x14759b(0x1c0)]===0x0?!0x0:this[_0x14759b(0x1c0)]-this[_0x14759b(0x425)]>0x0;}[_0x6c52c3(0x3b7)](){const _0x5f27b0=_0x6c52c3;this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this[_0x5f27b0(0x28e)]=null);}[_0x6c52c3(0x288)](){const _0x3a3d08=_0x6c52c3;this[_0x3a3d08(0x2e8)][_0x3a3d08(0x1d3)]({'content':this[_0x3a3d08(0x298)]['t'](_0x3a3d08(0x37b)),'type':T['MessageType']['Loading']});}[_0x6c52c3(0x2b9)](_0x3034b5){const _0x137ff8=_0x6c52c3;for(const _0x58652c of _0x3034b5){const {unitId:_0x3c47f2,sheetId:_0x292143,range:_0x2f2222}=_0x58652c,_0x4b12c4=this[_0x137ff8(0x3dd)][_0x137ff8(0x29e)](_0x3c47f2);if(!_0x4b12c4)continue;const _0x63cf04=_0x4b12c4[_0x137ff8(0x375)](_0x292143);if(!_0x63cf04)continue;const _0x2a2854=_0x63cf04[_0x137ff8(0x398)]();for(let _0x142895=_0x2f2222['startRow'];_0x142895<=_0x2f2222['endRow'];_0x142895++)for(let _0x238627=_0x2f2222['startColumn'];_0x238627<=_0x2f2222['endColumn'];_0x238627++){const _0x26a5da=_0x2a2854['getValue'](_0x142895,_0x238627);if(_0x26a5da&&(a[_0x137ff8(0x2dd)](_0x26a5da['f'])||a['isFormulaId'](_0x26a5da['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a[_0x6c52c3(0x1ee)](R[_0x6c52c3(0x1c8)])),A(0x1,a[_0x6c52c3(0x391)]),A(0x2,a[_0x6c52c3(0x33b)]),A(0x3,a[_0x6c52c3(0x1ee)](X[_0x6c52c3(0x2c7)])),A(0x4,a[_0x6c52c3(0x40e)]),A(0x5,a[_0x6c52c3(0x2ca)]),A(0x6,a['Inject'](a[_0x6c52c3(0x225)]))],ie);var ss=Object[_0x6c52c3(0x2ac)],is=(_0x19e12b,_0x2c5dfd,_0x398084,_0x55ad91)=>{const _0xef012e=_0x6c52c3;for(var _0x51ed51=_0x55ad91>0x1?void 0x0:_0x55ad91?ss(_0x2c5dfd,_0x398084):_0x2c5dfd,_0x263241=_0x19e12b[_0xef012e(0x1f0)]-0x1,_0x565082;_0x263241>=0x0;_0x263241--)(_0x565082=_0x19e12b[_0x263241])&&(_0x51ed51=_0x565082(_0x51ed51)||_0x51ed51);return _0x51ed51;},Ie=(_0x27eb5d,_0x14b326)=>(_0xc1071,_0x54b837)=>_0x14b326(_0xc1071,_0x54b837,_0x27eb5d);let Ce=class extends a[_0x6c52c3(0x413)]{constructor(_0x34fcc9,_0x13d329,_0x38714b){const _0x37d900=_0x6c52c3;super(),_(this,_0x37d900(0x24f),new Map()),_(this,_0x37d900(0x1cb),new Map()),_(this,_0x37d900(0x40d),!0x1),(this[_0x37d900(0x1ed)]=_0x34fcc9,this['_localStorageService']=_0x13d329,this[_0x37d900(0x2a0)]=_0x38714b);}[_0x6c52c3(0x331)](){const _0xec89e2=_0x6c52c3;this[_0xec89e2(0x40d)]=!0x0;}[_0x6c52c3(0x407)](){const _0x2d0f1a=_0x6c52c3;this[_0x2d0f1a(0x40d)]=!0x1;}get['saveTaskMap'](){const _0x38d4e3=_0x6c52c3;return this[_0x38d4e3(0x1cb)];}['dispose'](){const _0x11bafc=_0x6c52c3;this[_0x11bafc(0x387)]()[_0x11bafc(0x1f1)](()=>super[_0x11bafc(0x18d)]());}async['loadOfflineData'](_0x4c6182){const _0x307475=_0x6c52c3;return this[_0x307475(0x40d)]?null:this[_0x307475(0x427)][_0x307475(0x2ef)](u[_0x307475(0x19d)](_0x4c6182));}async[_0x6c52c3(0x43d)](_0x2abc47,_0x3eeab3){const _0x1dd9b0=_0x6c52c3;return!!this[_0x1dd9b0(0x427)][_0x1dd9b0(0x410)](_0x2abc47,_0x3eeab3);}[_0x6c52c3(0x250)](_0x1cb6ac,_0x572560,_0x601769,_0x23b067){const _0x52409e=_0x6c52c3,_0x3835f3=this[_0x52409e(0x2a0)][_0x52409e(0x29b)](_0x1cb6ac);this[_0x52409e(0x24f)][_0x52409e(0x33f)](_0x1cb6ac,{'unitID':_0x1cb6ac,'type':_0x572560,'awaitingChangeset':_0x601769,'mutations':_0x23b067,'rev':_0x3835f3}),this[_0x52409e(0x1cb)][_0x52409e(0x27c)](_0x1cb6ac)||this[_0x52409e(0x317)](_0x1cb6ac);}[_0x6c52c3(0x317)](_0x12897a){const _0x2aa92c=_0x6c52c3,_0x59fc0d=this[_0x2aa92c(0x2cb)]();_0x59fc0d===0x0?this['_saveCache'](_0x12897a):this[_0x2aa92c(0x1cb)][_0x2aa92c(0x33f)](_0x12897a,setTimeout(()=>this['_saveCache'](_0x12897a),_0x59fc0d));}[_0x6c52c3(0x2cb)](){const _0xc76d2b=_0x6c52c3;var _0x53483d;return(_0x53483d=this[_0xc76d2b(0x1ed)][_0xc76d2b(0x193)](u[_0xc76d2b(0x3bb)]))!=null?_0x53483d:u['LOCAL_CACHE_INTERVAL'];}[_0x6c52c3(0x3d6)](_0x970f92){const _0x4012d8=_0x6c52c3,_0x4a1253=this['_saveTaskMap'][_0x4012d8(0x285)](_0x970f92);return _0x4a1253!==void 0x0&&window[_0x4012d8(0x3db)](_0x4a1253),this[_0x4012d8(0x427)]['setItem'](u['getLocalCacheKey'](_0x970f92),this[_0x4012d8(0x24f)][_0x4012d8(0x285)](_0x970f92))[_0x4012d8(0x1f1)](()=>this[_0x4012d8(0x1cb)]['delete'](_0x970f92));}async[_0x6c52c3(0x387)](){const _0x23ad03=_0x6c52c3,_0x45cea4=[];this[_0x23ad03(0x1cb)][_0x23ad03(0x1b1)]((_0x173e95,_0x54ff7d)=>{const _0x30093e=_0x23ad03;window[_0x30093e(0x3db)](_0x173e95),_0x45cea4['push'](this[_0x30093e(0x3d6)](_0x54ff7d)[_0x30093e(0x1f1)](()=>{const _0xdba788=_0x30093e;this[_0xdba788(0x1cb)][_0xdba788(0x41a)](_0x54ff7d);}));}),await Promise[_0x23ad03(0x211)](_0x45cea4);}};Ce=is([Ie(0x0,a[_0x6c52c3(0x33b)]),Ie(0x1,a['ILocalStorageService']),Ie(0x2,a['Inject'](g['RevisionService']))],Ce);class ke extends a['RxDisposable']{constructor(){const _0x1a5c75=_0x6c52c3;super(),_(this,'urlChange$'),this[_0x1a5c75(0x436)]=I[_0x1a5c75(0x18e)](window,_0x1a5c75(0x3b1))[_0x1a5c75(0x1b7)](I[_0x1a5c75(0x3c3)](this[_0x1a5c75(0x359)]),I[_0x1a5c75(0x3c1)](0x1),I[_0x1a5c75(0x1b4)](void 0x0));}[_0x6c52c3(0x329)](_0x2aca2c,_0x1a0b24,_0x4f4af9=!0x1){const _0x40f5b8=_0x6c52c3,_0x3ff9b6=new URL(window[_0x40f5b8(0x2a9)][_0x40f5b8(0x42c)]);_0x3ff9b6[_0x40f5b8(0x3ae)][_0x40f5b8(0x33f)](_0x2aca2c,_0x1a0b24),_0x4f4af9?window['history'][_0x40f5b8(0x424)]('','',_0x3ff9b6[_0x40f5b8(0x312)]()):window[_0x40f5b8(0x21c)][_0x40f5b8(0x438)]('','',_0x3ff9b6[_0x40f5b8(0x312)]());}[_0x6c52c3(0x41b)](_0x1f4fd0,_0x4992b8=!0x1){const _0x409e29=_0x6c52c3,_0x377385=new URL(window[_0x409e29(0x2a9)][_0x409e29(0x42c)]);_0x377385[_0x409e29(0x3ae)][_0x409e29(0x41a)](_0x1f4fd0),_0x4992b8?window[_0x409e29(0x21c)][_0x409e29(0x424)]('','',_0x377385[_0x409e29(0x312)]()):window[_0x409e29(0x21c)]['pushState']('','',_0x377385['toString']());}['getParam'](_0x43e65d){const _0x5a6200=_0x6c52c3;var _0x438d65;return(_0x438d65=new URL(window[_0x5a6200(0x2a9)][_0x5a6200(0x42c)])[_0x5a6200(0x3ae)]['get'](_0x43e65d))!=null?_0x438d65:void 0x0;}}var ns=Object[_0x6c52c3(0x3d2)],rs=Object[_0x6c52c3(0x2ac)],os=(_0x59500c,_0x8566ec,_0x25b64a)=>_0x8566ec in _0x59500c?ns(_0x59500c,_0x8566ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25b64a}):_0x59500c[_0x8566ec]=_0x25b64a,as=(_0x190525,_0x142309,_0x8f1ec8,_0x405a19)=>{const _0x589303=_0x6c52c3;for(var _0x1fdf8b=_0x405a19>0x1?void 0x0:_0x405a19?rs(_0x142309,_0x8f1ec8):_0x142309,_0x345696=_0x190525[_0x589303(0x1f0)]-0x1,_0x4e1672;_0x345696>=0x0;_0x345696--)(_0x4e1672=_0x190525[_0x345696])&&(_0x1fdf8b=_0x4e1672(_0x1fdf8b)||_0x1fdf8b);return _0x1fdf8b;},de=(_0x23d7cf,_0xd00997)=>(_0x154797,_0x32cd1f)=>_0xd00997(_0x154797,_0x32cd1f,_0x23d7cf),cs=(_0x52144e,_0x209ee3,_0x5846f2)=>os(_0x52144e,_0x209ee3+'',_0x5846f2);const ls=_0x6c52c3(0x215);function _0xc584(_0x139c97,_0x5bd1c2){const _0x430406=_0x4304();return _0xc584=function(_0xc584eb,_0x503176){_0xc584eb=_0xc584eb-0x180;let _0x5bfc2a=_0x430406[_0xc584eb];return _0x5bfc2a;},_0xc584(_0x139c97,_0x5bd1c2);}exports[_0x6c52c3(0x362)]=class extends a[_0x6c52c3(0x272)]{constructor(_0x101b85=Le,_0x543b1d,_0x3a39bd,_0x300ba7){const _0x2a24ff=_0x6c52c3;super(),this['_config']=_0x101b85,this[_0x2a24ff(0x23a)]=_0x543b1d,this[_0x2a24ff(0x3a1)]=_0x3a39bd,this[_0x2a24ff(0x1ed)]=_0x300ba7;const {..._0x1bb267}=a[_0x2a24ff(0x3ff)]({},Le,this[_0x2a24ff(0x196)]);this['_configService'][_0x2a24ff(0x32d)](kt,_0x1bb267);}[_0x6c52c3(0x20d)](){const _0x1b1461=_0x6c52c3;this[_0x1b1461(0x30e)](),this[_0x1b1461(0x1ec)]();}[_0x6c52c3(0x291)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x448bf2=_0x6c52c3;var _0x409019;const _0x1d7677=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x448bf2(0x304)],{'useClass':X[_0x448bf2(0x299)]}],[u[_0x448bf2(0x3ea)],{'useClass':Ce}],[exports[_0x448bf2(0x2e9)]],[se],[Z],[F],[fe],[exports[_0x448bf2(0x3f2)]]];a[_0x448bf2(0x240)](this[_0x448bf2(0x3a1)],a[_0x448bf2(0x217)](_0x1d7677,(_0x409019=this[_0x448bf2(0x196)])==null?void 0x0:_0x409019[_0x448bf2(0x293)]));}['_registerRenderDependencies'](){const _0x262ed7=_0x6c52c3;this[_0x262ed7(0x392)](this[_0x262ed7(0x23a)][_0x262ed7(0x431)](a[_0x262ed7(0x3ec)]['UNIVER_DOC'],[ge])),this[_0x262ed7(0x392)](this[_0x262ed7(0x23a)][_0x262ed7(0x431)](a[_0x262ed7(0x3ec)][_0x262ed7(0x24e)],[Ee]));}[_0x6c52c3(0x1ec)](){const _0x2f0087=_0x6c52c3;a[_0x2f0087(0x330)](this[_0x2f0087(0x3a1)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[se],[Z],[exports[_0x2f0087(0x3f2)]],[ie]]);}},cs(exports[_0x6c52c3(0x362)],'pluginName',ls),exports[_0x6c52c3(0x362)]=as([a[_0x6c52c3(0x336)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x6c52c3(0x2a2)]),de(0x2,a[_0x6c52c3(0x1ee)](a['Injector'])),de(0x3,a[_0x6c52c3(0x33b)])],exports[_0x6c52c3(0x362)]);var _s=Object[_0x6c52c3(0x2ac)],hs=(_0x7076b9,_0x394f9e,_0x2d080e,_0x550aa1)=>{const _0x2a095b=_0x6c52c3;for(var _0x17c61a=_0x550aa1>0x1?void 0x0:_0x550aa1?_s(_0x394f9e,_0x2d080e):_0x394f9e,_0x208a75=_0x7076b9[_0x2a095b(0x1f0)]-0x1,_0x2838fc;_0x208a75>=0x0;_0x208a75--)(_0x2838fc=_0x7076b9[_0x208a75])&&(_0x17c61a=_0x2838fc(_0x17c61a)||_0x17c61a);return _0x17c61a;},W=(_0x205240,_0x382a42)=>(_0x335316,_0x412eef)=>_0x382a42(_0x335316,_0x412eef,_0x205240);exports['BrowserCollaborationSocketService']=class extends u[_0x6c52c3(0x236)]{constructor(_0x4a6a27,_0x479aa5,_0xa5ec3c,_0x5d86a6,_0x264518){super(_0x4a6a27,_0x479aa5,_0xa5ec3c,_0x5d86a6,_0x264518);}async[_0x6c52c3(0x1cd)](_0x396109){const _0x37a6eb=_0x6c52c3,_0x44a237=await this[_0x37a6eb(0x371)](),_0x54a7ad=this[_0x37a6eb(0x35b)](_0x396109,_0x44a237);return this[_0x37a6eb(0x40f)](_0x54a7ad);}[_0x6c52c3(0x35b)](_0x784f6b,_0xc84d3d){const _0xbcf0=_0x6c52c3,_0x190664=typeof window>'u'?new URL(_0x784f6b):new URL(_0x784f6b,window['location'][_0xbcf0(0x34b)]);_0x190664['searchParams'][_0xbcf0(0x33f)](_0xbcf0(0x3eb),_0xc84d3d);const _0x2e9be7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xbcf0(0x2a9)][_0xbcf0(0x22d)]);return _0x2e9be7[_0xbcf0(0x285)]('runId')&&_0x190664[_0xbcf0(0x3ae)][_0xbcf0(0x33f)]('runId',_0x2e9be7['get'](_0xbcf0(0x303))),_0x190664['toString']();}async[_0x6c52c3(0x371)](){const _0x3eaabf=_0x6c52c3;var _0x21b908,_0x3fe932,_0x2ca14f;const _0xebda9d=this[_0x3eaabf(0x1ed)][_0x3eaabf(0x193)](u[_0x3eaabf(0x295)]),_0x5ed642=(_0x21b908=_0xebda9d==null?void 0x0:_0xebda9d[_0x3eaabf(0x39d)])!=null?_0x21b908:u[_0x3eaabf(0x32b)];return(_0x2ca14f=(_0x3fe932=(await this[_0x3eaabf(0x26d)][_0x3eaabf(0x285)](_0x5ed642,{'headers':{'Content-Type':_0x3eaabf(0x271)}}))[_0x3eaabf(0x183)])==null?void 0x0:_0x3fe932[_0x3eaabf(0x38b)])!=null?_0x2ca14f:'';}},exports['BrowserCollaborationSocketService']=hs([W(0x0,a['Inject'](a['Injector'])),W(0x1,a['Inject'](X['HTTPService'])),W(0x2,a[_0x6c52c3(0x33b)]),W(0x3,a[_0x6c52c3(0x2ca)]),W(0x4,g[_0x6c52c3(0x2ad)])],exports['BrowserCollaborationSocketService']);var us=Object['getOwnPropertyDescriptor'],Is=(_0x1fd32a,_0x7a813,_0x3c2ac3,_0x7d0ae3)=>{for(var _0x57a96d=_0x7d0ae3>0x1?void 0x0:_0x7d0ae3?us(_0x7a813,_0x3c2ac3):_0x7a813,_0xabea0b=_0x1fd32a['length']-0x1,_0x4dbb73;_0xabea0b>=0x0;_0xabea0b--)(_0x4dbb73=_0x1fd32a[_0xabea0b])&&(_0x57a96d=_0x4dbb73(_0x57a96d)||_0x57a96d);return _0x57a96d;},Se=(_0x3a893c,_0x1fc87d)=>(_0x50e189,_0x37a40a)=>_0x1fc87d(_0x50e189,_0x37a40a,_0x3a893c);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x3b17e5,_0x47d96a,_0x559678){const _0x32260e=_0x6c52c3;super(),this[_0x32260e(0x234)]=_0x3b17e5,this[_0x32260e(0x26d)]=_0x47d96a,this['_configService']=_0x559678;}async[_0x6c52c3(0x1b0)](_0x23ce8f,_0x137205,_0x3e1c89,..._0x2d942c){const _0x3cd00a=_0x6c52c3;var _0x641608,_0x323353,_0x3467ef,_0x1cf9e7;const _0x137bcc=this[_0x3cd00a(0x234)]['getFocusedUnit']();if(!_0x137bcc)throw new Error(_0x3cd00a(0x1df));const _0x381677=((_0x641608=this[_0x3cd00a(0x1ed)][_0x3cd00a(0x193)](u[_0x3cd00a(0x259)]))!=null?_0x641608:u[_0x3cd00a(0x3c7)])+'/'+_0x23ce8f+'/run/'+_0x137205,_0x49cc56=new URL(window[_0x3cd00a(0x2a9)][_0x3cd00a(0x42c)]),_0x3d7dfa={'scriptId':_0x23ce8f,'runId':(_0x323353=_0x49cc56[_0x3cd00a(0x3ae)]['get']('runId'))!=null?_0x323353:'','function':_0x137205,'unitId':_0x137bcc[_0x3cd00a(0x411)](),'argsOfFunction':JSON[_0x3cd00a(0x302)](_0x2d942c),'invokeId':(_0x3467ef=_0x3e1c89[_0x3cd00a(0x25b)])!=null?_0x3467ef:'','executionId':(_0x1cf9e7=_0x3e1c89['executionId'])!=null?_0x1cf9e7:''};try{const _0x31ada7=await this[_0x3cd00a(0x26d)][_0x3cd00a(0x26f)](_0x381677,{'body':_0x3d7dfa});return _0x31ada7[_0x3cd00a(0x183)]['error']&&_0x31ada7[_0x3cd00a(0x183)]['error'][_0x3cd00a(0x26c)]!==G['OK']?_0x3cd00a(0x395):_0x31ada7[_0x3cd00a(0x183)]['result'];}catch{return'Failed';}}},exports[_0x6c52c3(0x263)]=Is([Se(0x0,a[_0x6c52c3(0x40e)]),Se(0x1,a[_0x6c52c3(0x1ee)](X[_0x6c52c3(0x2c7)])),Se(0x2,a['IConfigService'])],exports[_0x6c52c3(0x263)]);const Pe=0x7530,we='ACTIVE_UNIT_EVENT_CHANNEL';class ds extends a[_0x6c52c3(0x413)]{constructor(){const _0xfdaea5=_0x6c52c3;super(),_(this,_0xfdaea5(0x1b9),a[_0xfdaea5(0x254)]()),_(this,_0xfdaea5(0x351),new Set()),_(this,_0xfdaea5(0x39c),new Map()),_(this,_0xfdaea5(0x40b),null),_(this,'_clearOtherTimers',new Map()),_(this,_0xfdaea5(0x36b),new Map()),this['_init']();}[_0x6c52c3(0x18d)](){const _0x471097=_0x6c52c3;super[_0x471097(0x18d)](),this[_0x471097(0x237)][_0x471097(0x1b1)]((_0xf2d503,_0x5f8ebd)=>this[_0x471097(0x3de)](_0x5f8ebd)),this['_heartbeatTimer']&&window[_0x471097(0x26b)](this[_0x471097(0x40b)]);}[_0x6c52c3(0x1d4)](_0x44ce42){const _0x3b91e2=_0x6c52c3;return this[_0x3b91e2(0x252)](_0x44ce42)[_0x3b91e2(0x1b7)](I['distinctUntilChanged']());}[_0x6c52c3(0x37c)](_0x409eb7){const _0xaa5f69=_0x6c52c3;this['_selfUnitIDs']['size']===0x0&&this[_0xaa5f69(0x197)](),this[_0xaa5f69(0x351)][_0xaa5f69(0x194)](_0x409eb7),this[_0xaa5f69(0x244)]({'type':0x0,'memberID':this[_0xaa5f69(0x1b9)],'unitIDs':[_0x409eb7],'isForwarded':!0x1});}['disposeUnit'](_0x18cf4b){const _0x189727=_0x6c52c3;this[_0x189727(0x351)][_0x189727(0x41a)](_0x18cf4b),this[_0x189727(0x351)][_0x189727(0x364)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x189727(0x40b)]);}[_0x6c52c3(0x39e)](){const _0x5e731b=_0x6c52c3;this[_0x5e731b(0x392)](a[_0x5e731b(0x1aa)](I[_0x5e731b(0x18e)](window,_0x5e731b(0x2af))['subscribe'](_0x103c8f=>{const _0x3d57a7=_0x5e731b;if(_0x103c8f[_0x3d57a7(0x27f)]!==we||!_0x103c8f[_0x3d57a7(0x397)])return;const _0x3d9be8=JSON[_0x3d57a7(0x1e0)](_0x103c8f[_0x3d57a7(0x397)]);this[_0x3d57a7(0x2bc)](_0x3d9be8);}))),window[_0x5e731b(0x191)](_0x5e731b(0x214),()=>this[_0x5e731b(0x244)]({'type':0x1,'memberID':this[_0x5e731b(0x1b9)],'unitIDs':Array[_0x5e731b(0x235)](this[_0x5e731b(0x351)])}));}['_handleEvent'](_0x4230d3){const _0x56d578=_0x6c52c3;switch(_0x4230d3[_0x56d578(0x333)]){case 0x0:this['_handleJoinEvent'](_0x4230d3);break;case 0x1:this['_handleLeaveEvent'](_0x4230d3);break;case 0x2:this[_0x56d578(0x386)](_0x4230d3);break;}}['_handleJoinEvent'](_0x175477){const _0x32690b=_0x6c52c3,{unitIDs:_0x4bf95c,memberID:_0x1561d0,isForwarded:_0xe0b738}=_0x175477;_0x4bf95c[_0x32690b(0x1b1)](_0x2bf343=>{const _0x4fbbeb=_0x32690b;if(!_0xe0b738&&this[_0x4fbbeb(0x39c)][_0x4fbbeb(0x27c)](_0x2bf343)&&this[_0x4fbbeb(0x252)](_0x2bf343)[_0x4fbbeb(0x2c9)](u[_0x4fbbeb(0x19f)][_0x4fbbeb(0x41f)]),!this[_0x4fbbeb(0x39c)]['has'](_0x2bf343)||!this[_0x4fbbeb(0x39c)][_0x4fbbeb(0x285)](_0x2bf343)[_0x4fbbeb(0x27c)](_0x1561d0)){const _0x1f7fae=this[_0x4fbbeb(0x39c)][_0x4fbbeb(0x285)](_0x2bf343)||new Set();_0x1f7fae['add'](_0x1561d0),this['_unitOnClients'][_0x4fbbeb(0x33f)](_0x2bf343,_0x1f7fae),this[_0x4fbbeb(0x1eb)](_0x1561d0);}}),_0xe0b738||this[_0x32690b(0x244)]({'type':0x0,'memberID':this[_0x32690b(0x1b9)],'unitIDs':[...this[_0x32690b(0x351)]],'isForwarded':!0x0});}[_0x6c52c3(0x1eb)](_0x2e4c03){const _0x2bbfea=_0x6c52c3;this[_0x2bbfea(0x3de)](_0x2e4c03);const _0xf125c9=window[_0x2bbfea(0x3fe)](()=>{const _0x702b6=_0x2bbfea;this[_0x702b6(0x39c)][_0x702b6(0x1b1)](_0x1f1b19=>{const _0x4059a3=_0x702b6;_0x1f1b19[_0x4059a3(0x41a)](_0x2e4c03);});},Pe*0x2);this[_0x2bbfea(0x237)][_0x2bbfea(0x33f)](_0x2e4c03,_0xf125c9);}[_0x6c52c3(0x3de)](_0x26d22a){const _0x3d5ba8=_0x6c52c3;if(this['_clearOtherTimers'][_0x3d5ba8(0x27c)](_0x26d22a)){const _0x472059=this[_0x3d5ba8(0x237)]['get'](_0x26d22a);_0x472059&&window[_0x3d5ba8(0x3db)](_0x472059),this[_0x3d5ba8(0x237)][_0x3d5ba8(0x33f)](_0x26d22a,null);}}[_0x6c52c3(0x373)](_0x1695c9){const _0x3ffae4=_0x6c52c3,{memberID:_0x39661e,unitIDs:_0x263d77}=_0x1695c9;_0x263d77[_0x3ffae4(0x1b1)](_0x34a4f9=>{const _0x485632=_0x3ffae4;var _0xd3ebf6;const _0x224bd7=this[_0x485632(0x39c)][_0x485632(0x285)](_0x34a4f9);_0x224bd7&&(_0x224bd7[_0x485632(0x41a)](_0x39661e),(_0xd3ebf6=this['_ensureSubject'](_0x34a4f9))==null||_0xd3ebf6[_0x485632(0x2c9)](_0x224bd7[_0x485632(0x364)]===0x0?u[_0x485632(0x19f)][_0x485632(0x338)]:u[_0x485632(0x19f)][_0x485632(0x41f)]));}),this[_0x3ffae4(0x3de)](_0x39661e);}[_0x6c52c3(0x386)](_0xbd81e1){const _0x58165c=_0x6c52c3;this[_0x58165c(0x1eb)](_0xbd81e1['memberID']);}[_0x6c52c3(0x244)](_0x2372fd){const _0x57af9a=_0x6c52c3;localStorage[_0x57af9a(0x410)](we,JSON[_0x57af9a(0x302)](_0x2372fd));}[_0x6c52c3(0x197)](){const _0x5bb264=_0x6c52c3;this['_heartbeatTimer']=window[_0x5bb264(0x1bb)](()=>{const _0x22f840=_0x5bb264;this[_0x22f840(0x244)]({'type':0x2,'memberID':this[_0x22f840(0x1b9)]});},Pe);}[_0x6c52c3(0x252)](_0x4c398e){const _0xf95efe=_0x6c52c3;return this['_unitStatus'][_0xf95efe(0x27c)](_0x4c398e)||this[_0xf95efe(0x36b)][_0xf95efe(0x33f)](_0x4c398e,new I['BehaviorSubject'](u['UnitStatus'][_0xf95efe(0x338)])),this[_0xf95efe(0x36b)][_0xf95efe(0x285)](_0x4c398e);}}exports[_0x6c52c3(0x26e)]=Te,exports[_0x6c52c3(0x27e)]=Fe,exports[_0x6c52c3(0x380)]=ds,exports[_0x6c52c3(0x1ac)]=ke;
|