@univerjs-pro/collaboration-client-ui 0.6.7 → 0.6.9-nightly.202504021607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -0
- package/lib/index.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +18 -18
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x150eae=_0x5a81;(function(_0x31655f,_0x27b266){const _0x1226a8=_0x5a81,_0xaee75f=_0x31655f();while(!![]){try{const _0x4521ff=-parseInt(_0x1226a8(0x11a))/0x1+parseInt(_0x1226a8(0x111))/0x2+-parseInt(_0x1226a8(0x112))/0x3+parseInt(_0x1226a8(0x119))/0x4+parseInt(_0x1226a8(0x115))/0x5+parseInt(_0x1226a8(0x113))/0x6*(-parseInt(_0x1226a8(0x118))/0x7)+-parseInt(_0x1226a8(0x10e))/0x8;if(_0x4521ff===_0x27b266)break;else _0xaee75f['push'](_0xaee75f['shift']());}catch(_0x44f130){_0xaee75f['push'](_0xaee75f['shift']());}}}(_0x221c,0x97758));function _0x5a81(_0xb296bf,_0x57284a){const _0x221c0f=_0x221c();return _0x5a81=function(_0x5a8168,_0x5f7061){_0x5a8168=_0x5a8168-0x10e;let _0x3676a9=_0x221c0f[_0x5a8168];return _0x3676a9;},_0x5a81(_0xb296bf,_0x57284a);}function _0x221c(){const _0x76ee8d=['4089370OapxjY','@univerjs-pro/collaboration-client-ui','_injector','7NdbKhI','1568852rDrhRD','358583cgdwCL','3291544FcaygF','FUniver','runOnServer','2350108JDVIkQ','1578432GaUtLi','2811570ChSeGs','get'];_0x221c=function(){return _0x76ee8d;};return _0x221c();}const t=require(_0x150eae(0x116)),e=require('@univerjs/core/facade');class c extends e[_0x150eae(0x10f)]{[_0x150eae(0x110)](_0x1db67d,_0x44861a,..._0x3747f1){const _0x34b18b=_0x150eae;return this[_0x34b18b(0x117)][_0x34b18b(0x114)](t['RemoteUniscriptService'])[_0x34b18b(0x110)](_0x1db67d,_0x44861a,{},..._0x3747f1);}}e[_0x150eae(0x10f)]['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x1cc422=_0x1c04;(function(_0x34aeb9,_0x129c59){const _0xd1a31f=_0x1c04,_0x42cd5c=_0x34aeb9();while(!![]){try{const _0x3267ab=parseInt(_0xd1a31f(0x16d))/0x1*(-parseInt(_0xd1a31f(0xec))/0x2)+parseInt(_0xd1a31f(0x146))/0x3+-parseInt(_0xd1a31f(0x200))/0x4*(parseInt(_0xd1a31f(0x233))/0x5)+-parseInt(_0xd1a31f(0x20f))/0x6+-parseInt(_0xd1a31f(0x11b))/0x7+-parseInt(_0xd1a31f(0x377))/0x8*(-parseInt(_0xd1a31f(0x115))/0x9)+parseInt(_0xd1a31f(0x17d))/0xa;if(_0x3267ab===_0x129c59)break;else _0x42cd5c['push'](_0x42cd5c['shift']());}catch(_0x2a749){_0x42cd5c['push'](_0x42cd5c['shift']());}}}(_0x2eb0,0xe810a));var Xe=Object[_0x1cc422(0x2da)],Ge=(_0x4961fd,_0x3ff728,_0xd59f7f)=>_0x3ff728 in _0x4961fd?Xe(_0x4961fd,_0x3ff728,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd59f7f}):_0x4961fd[_0x3ff728]=_0xd59f7f,h=(_0x4ab2c4,_0x30cd02,_0x282f91)=>Ge(_0x4ab2c4,typeof _0x30cd02!=_0x1cc422(0x33b)?_0x30cd02+'':_0x30cd02,_0x282f91);Object[_0x1cc422(0x2da)](exports,Symbol[_0x1cc422(0x316)],{'value':_0x1cc422(0x225)});const u=require(_0x1cc422(0x24b)),a=require(_0x1cc422(0x2b7)),p=require('@univerjs/engine-render'),q=require(_0x1cc422(0x307)),b=require(_0x1cc422(0x2cd)),qe=require(_0x1cc422(0x17c)),d=require(_0x1cc422(0x2b9)),Y=require(_0x1cc422(0x22c)),m=require('@univerjs-pro/collaboration'),Te=require(_0x1cc422(0x14a)),g=require(_0x1cc422(0x29d)),$=require(_0x1cc422(0x2bc)),G=require(_0x1cc422(0x245)),w=require('react/jsx-runtime'),R=require(_0x1cc422(0x246)),T=require(_0x1cc422(0x331)),M=require(_0x1cc422(0x30b)),Ke=require('@univerjs/rpc');var ze=Object[_0x1cc422(0x1fc)],Je=(_0x1ca011,_0x31a186,_0x5aac07,_0x251859)=>{const _0x5e2872=_0x1cc422;for(var _0x3c15f8=_0x251859>0x1?void 0x0:_0x251859?ze(_0x31a186,_0x5aac07):_0x31a186,_0x4c6191=_0x1ca011[_0x5e2872(0x357)]-0x1,_0x4d8444;_0x4c6191>=0x0;_0x4c6191--)(_0x4d8444=_0x1ca011[_0x4c6191])&&(_0x3c15f8=_0x4d8444(_0x3c15f8)||_0x3c15f8);return _0x3c15f8;},Re=(_0x58690e,_0x4fb91b)=>(_0x2c6e0a,_0x261b24)=>_0x4fb91b(_0x2c6e0a,_0x261b24,_0x58690e);let fe=class extends a[_0x1cc422(0x2c3)]{constructor(_0x2c85da,_0x331d5e){const _0x26b435=_0x1cc422;super(),this[_0x26b435(0x222)]=_0x2c85da,this[_0x26b435(0x32c)]=_0x331d5e,this[_0x26b435(0x28c)]();}[_0x1cc422(0x28c)](){const _0x3b8eb1=_0x1cc422,_0x204a1b=this;this['disposeWithMe'](this[_0x3b8eb1(0x222)][_0x3b8eb1(0x324)]({'onBeforePasteImage':async _0x190484=>{const _0x52aa6d=_0x3b8eb1,_0x430434=await _0x204a1b['_imageIoService'][_0x52aa6d(0x290)](_0x190484);return _0x430434?{'source':_0x430434['source'],'imageSourceType':_0x430434[_0x52aa6d(0x17a)]}:null;}}));}};fe=Je([Re(0x0,b['IDocClipboardService']),Re(0x1,qe[_0x1cc422(0x21e)])],fe);const Oe=[_0x1cc422(0x110),_0x1cc422(0x1d1),_0x1cc422(0x1e2),_0x1cc422(0x1e6),'blue400',_0x1cc422(0x361)];class Ce extends a[_0x1cc422(0x34e)]{constructor(){const _0x50079c=_0x1cc422;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x50079c(0x220),0x0);}[_0x1cc422(0x354)](_0x18977f){const _0x53e745=_0x1cc422;if(this[_0x53e745(0x265)][_0x53e745(0x139)](_0x18977f))return this[_0x53e745(0x265)][_0x53e745(0x12a)](_0x18977f);const _0x413120=Oe[this['_colorIndex']];return this['_colorIndex']=(this[_0x53e745(0x220)]+0x1)%Oe['length'],this[_0x53e745(0x265)][_0x53e745(0x2ab)](_0x18977f,_0x413120),_0x413120;}}function Le(_0x5a28b5){let _0x296f9d='';for(const _0x5407ca of _0x5a28b5){const {startOffset:_0x3a756a,endOffset:_0x1678cb,isActive:_0x387246,rangeType:_0x43777a,segmentId:_0x1b3cbd,segmentPage:_0x368207}=_0x5407ca;_0x296f9d['length']&&(_0x296f9d+=','),_0x296f9d+=_0x3a756a+':'+_0x1678cb+':'+(_0x387246?'1':'0')+':'+_0x43777a+':'+_0x1b3cbd+':'+_0x368207;}return _0x296f9d;}function Ze(_0x1f7c53){const _0x51589d=_0x1cc422,_0xb2625=_0x1f7c53['split'](','),_0x2b11b7=[];for(const _0x101cc2 of _0xb2625){const [_0x349d78,_0x13c0c2,_0x7ac9,_0x45096d,_0x34eb70,_0x15545f]=_0x101cc2['split'](':');_0x2b11b7[_0x51589d(0x2ff)]({'startOffset':Number(_0x349d78),'endOffset':Number(_0x13c0c2),'collapsed':_0x349d78===_0x13c0c2,'isActive':_0x7ac9==='1','rangeType':_0x45096d===a[_0x51589d(0x223)][_0x51589d(0x2af)]?a[_0x51589d(0x223)][_0x51589d(0x2af)]:a[_0x51589d(0x223)][_0x51589d(0x28d)],'segmentId':typeof _0x34eb70==_0x51589d(0x28a)?String(_0x34eb70):'','segmentPage':Number(_0x15545f!=null?_0x15545f:-0x1)});}return _0x2b11b7[_0x51589d(0x165)](_0xb5e58b=>_0xb5e58b[_0x51589d(0x1df)])||(_0x2b11b7[0x0][_0x51589d(0x1df)]=!0x0),_0x2b11b7;}class pe extends a[_0x1cc422(0x2c3)]{constructor(){const _0x49e435=_0x1cc422;super(...arguments),h(this,_0x49e435(0x2a0),new d['BehaviorSubject'](null)),h(this,'collabCursorState$',this[_0x49e435(0x2a0)][_0x49e435(0x132)]());}[_0x1cc422(0x267)](_0x225254){const _0x29f619=_0x1cc422,{unitID:_0x74817b,memberID:_0x59a66e,textRanges:_0x1f27b5}=_0x225254,_0x282d89=Le(_0x1f27b5);if(_0x282d89==='')return;const _0xbeb4bf={'unitID':_0x74817b,'memberID':_0x59a66e,'selection':_0x282d89};this[_0x29f619(0x2a0)][_0x29f619(0x364)](_0xbeb4bf);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0xb6fc3e,_0x5079e9,_0x10d91d,_0x1e378d)=>{for(var _0x11a1e2=_0x1e378d>0x1?void 0x0:_0x1e378d?Qe(_0x5079e9,_0x10d91d):_0x5079e9,_0x130a2b=_0xb6fc3e['length']-0x1,_0xb9d267;_0x130a2b>=0x0;_0x130a2b--)(_0xb9d267=_0xb6fc3e[_0x130a2b])&&(_0x11a1e2=_0xb9d267(_0x11a1e2)||_0x11a1e2);return _0x11a1e2;},P=(_0x5da1c4,_0x23d8cb)=>(_0x3a7ae1,_0x2a611a)=>_0x23d8cb(_0x3a7ae1,_0x2a611a,_0x5da1c4);const tt=0x12c,st=0x64;let Se=class extends a[_0x1cc422(0x2c3)]{constructor(_0x220fd5,_0x12c079,_0x3c9b8f,_0x51ff23,_0x30d9b7,_0x13b61f,_0x264378,_0x54e3ef,_0x30c2ff){const _0x1b05a5=_0x1cc422;super(),h(this,_0x1b05a5(0x18e),!0x1),h(this,_0x1b05a5(0x28c),!0x1),h(this,_0x1b05a5(0x2f3),new d['BehaviorSubject'](new Map())),h(this,_0x1b05a5(0x292),this[_0x1b05a5(0x2f3)][_0x1b05a5(0x132)]()),h(this,'_roomMembers$',new d[(_0x1b05a5(0xf0))]([])),h(this,_0x1b05a5(0x372),this['_roomMembers$'][_0x1b05a5(0x1f0)](d['debounceTime'](tt))),h(this,'_updateLocalCursor',a[_0x1b05a5(0x2de)](_0x419932=>{const _0x150500=_0x1b05a5,_0x406892={'eventID':m['CollaborationEvent'][_0x150500(0x2fc)],'data':{'unitID':this[_0x150500(0x215)],'memberID':this[_0x150500(0x206)][_0x150500(0x1d5)](),'selection':Le(_0x419932)}};this['_session'][_0x150500(0x2f6)](_0x406892,this[_0x150500(0x215)]);},st)),(this[_0x1b05a5(0x215)]=_0x220fd5,this[_0x1b05a5(0x206)]=_0x12c079,this[_0x1b05a5(0x154)]=_0x3c9b8f,this['_colorAssignService']=_0x51ff23,this[_0x1b05a5(0x312)]=_0x30d9b7,this[_0x1b05a5(0x31e)]=_0x13b61f,this[_0x1b05a5(0x2f0)]=_0x264378,this[_0x1b05a5(0x10e)]=_0x54e3ef,this[_0x1b05a5(0x113)]=_0x30c2ff);}get['cursorInfo'](){const _0x47768c=_0x1cc422;return this[_0x47768c(0x2f3)][_0x47768c(0x2e9)]();}get['roomMembers'](){const _0x4070cf=_0x1cc422;return this[_0x4070cf(0x29c)]['getValue']();}[_0x1cc422(0x119)](){const _0x4b6566=_0x1cc422;super[_0x4b6566(0x119)](),this[_0x4b6566(0x2f3)][_0x4b6566(0x364)](new Map()),this[_0x4b6566(0x2f3)][_0x4b6566(0x342)](),this[_0x4b6566(0x29c)][_0x4b6566(0x364)]([]),this[_0x4b6566(0x29c)][_0x4b6566(0x342)]();}['init'](){const _0xde3c49=_0x1cc422;this[_0xde3c49(0x28c)]||(this[_0xde3c49(0x28c)]=!0x0,this[_0xde3c49(0x206)][_0xde3c49(0x353)][_0xde3c49(0x1f0)](d[_0xde3c49(0xf8)](this[_0xde3c49(0x129)]))['subscribe'](_0x5236af=>{const _0xa87d3d=_0xde3c49;_0x5236af===u[_0xa87d3d(0x11a)][_0xa87d3d(0x272)]?this[_0xa87d3d(0x179)]():this[_0xa87d3d(0x15f)]();}),this[_0xde3c49(0x206)]['event$']['pipe'](d[_0xde3c49(0xf8)](this[_0xde3c49(0x129)]))[_0xde3c49(0x24c)](_0x16a135=>{const _0x4d9bc3=_0xde3c49,_0x97c50=_0x16a135[_0x4d9bc3(0x1d2)];_0x97c50===m[_0x4d9bc3(0x359)]['UPDATE_CURSOR']&&this[_0x4d9bc3(0x23c)](_0x16a135),_0x97c50===m['CollaborationEvent'][_0x4d9bc3(0x14e)]&&this[_0x4d9bc3(0x12f)](_0x16a135);}),this['disposeWithMe'](this[_0xde3c49(0x113)][_0xde3c49(0x350)](_0x132f6a=>{const _0x13188e=_0xde3c49,_0x1a87aa=_0x132f6a[_0x13188e(0x133)];_0x1a87aa!=null&&this[_0x13188e(0x18e)]&&_0x132f6a['id']===Y['SetTextSelectionsOperation']['id']&&_0x1a87aa[_0x13188e(0x243)]===this[_0x13188e(0x215)]&&_0x1a87aa[_0x13188e(0x12c)]===!0x1&&_0x1a87aa[_0x13188e(0x248)]['length']>0x0&&this[_0x13188e(0x141)](_0x1a87aa['ranges']);})),this[_0xde3c49(0x31e)][_0xde3c49(0x2c9)][_0xde3c49(0x1f0)](d['takeUntil'](this['dispose$']))[_0xde3c49(0x24c)](_0x113223=>{const _0x27272d=_0xde3c49;if((_0x113223==null?void 0x0:_0x113223[_0x27272d(0x215)])!==this[_0x27272d(0x215)])return;const _0x4abb10={'eventID':m[_0x27272d(0x359)][_0x27272d(0x2fc)],'data':_0x113223};this[_0x27272d(0x23c)](_0x4abb10);}),this[_0xde3c49(0x149)](this[_0xde3c49(0x113)][_0xde3c49(0x350)](_0x3dd6a4=>{const _0x53c68f=_0xde3c49;if(_0x3dd6a4[_0x53c68f(0x133)]==null)return;const _0x28b2e9=_0x3dd6a4[_0x53c68f(0x133)];if(_0x3dd6a4['id']!==Y['RichTextEditingMutation']['id']||_0x28b2e9['unitId']!==this[_0x53c68f(0x215)])return;const _0x13fed8={'id':'doc.mutation.rich-text-editing','params':_0x28b2e9},_0x4ddd5b=this[_0x53c68f(0x29a)];for(const [_0x17107f,_0x374b83]of _0x4ddd5b){const _0x2b4c7b={'id':_0x53c68f(0x32b),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x374b83[_0x53c68f(0x248)]}},_0x219881=this['_transformService'][_0x53c68f(0x124)](_0x13fed8,_0x2b4c7b,!0x1);if(m[_0x53c68f(0x1f8)](_0x219881))throw _0x219881[_0x53c68f(0x1c0)];_0x4ddd5b['set'](_0x17107f,{..._0x374b83,'ranges':_0x219881[_0x53c68f(0x343)][_0x53c68f(0x133)][_0x53c68f(0x194)]});}queueMicrotask(()=>{const _0x5f4ca6=_0x53c68f;this[_0x5f4ca6(0x2f3)]['next'](_0x4ddd5b);});})));}[_0x1cc422(0x23c)](_0x4b49f0){const _0x2d6c1b=_0x1cc422;var _0xad6878,_0x58b8c5;const {memberID:_0x54432e,selection:_0x45849c}=_0x4b49f0[_0x2d6c1b(0x2cb)],_0x22f6ec=Ze(_0x45849c),_0x16eaa1=(_0x58b8c5=(_0xad6878=this[_0x2d6c1b(0x312)]['getMember'](this['unitID'],_0x54432e))==null?void 0x0:_0xad6878[_0x2d6c1b(0x1fb)])!=null?_0x58b8c5:_0x2d6c1b(0x338),_0xeb39fc={'color':this[_0x2d6c1b(0x27e)]['assignAColorForMemberID'](_0x54432e),'name':_0x16eaa1,'ranges':_0x22f6ec},_0x39f49e=this[_0x2d6c1b(0x29a)];_0x39f49e[_0x2d6c1b(0x2ab)](_0x54432e,_0xeb39fc),this[_0x2d6c1b(0x2f3)][_0x2d6c1b(0x364)](_0x39f49e);}[_0x1cc422(0x12f)](_0x4a5dfe){const _0x484fc1=_0x1cc422,{memberID:_0x44ba30}=_0x4a5dfe['data'],_0x1ae75a=this['cursorInfo'];_0x1ae75a['delete'](_0x44ba30),this[_0x484fc1(0x2f3)]['next'](_0x1ae75a);}[_0x1cc422(0x179)](){const _0x34e52a=_0x1cc422;var _0x55e5c0;if(this[_0x34e52a(0x18e)]=!0x0,((_0x55e5c0=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x55e5c0[_0x34e52a(0x111)]())!==this[_0x34e52a(0x215)])return;const _0x4970bb=this[_0x34e52a(0x154)][_0x34e52a(0x12a)](Y['DocSelectionManagerService'])[_0x34e52a(0x136)]();Array[_0x34e52a(0x2fb)](_0x4970bb)&&_0x4970bb['length']>0x0&&this[_0x34e52a(0x141)](_0x4970bb);}[_0x1cc422(0x15f)](){this['_online']=!0x1;}};Se=et([P(0x2,a['Inject'](a['Injector'])),P(0x3,a[_0x1cc422(0x1f4)](Ce)),P(0x4,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x2a7)])),P(0x5,a[_0x1cc422(0x1f4)](pe)),P(0x6,m['ITransformService']),P(0x7,a[_0x1cc422(0x195)]),P(0x8,a['ICommandService'])],Se);var nt=Object[_0x1cc422(0x1fc)],it=(_0x26a30d,_0x4cefc2,_0x2c882b,_0x61be99)=>{for(var _0x376344=_0x61be99>0x1?void 0x0:_0x61be99?nt(_0x4cefc2,_0x2c882b):_0x4cefc2,_0x5bb59b=_0x26a30d['length']-0x1,_0x5b2019;_0x5bb59b>=0x0;_0x5bb59b--)(_0x5b2019=_0x26a30d[_0x5bb59b])&&(_0x376344=_0x5b2019(_0x376344)||_0x376344);return _0x376344;},A=(_0x13c028,_0x18e4c3)=>(_0x264cf7,_0x151a70)=>_0x18e4c3(_0x264cf7,_0x151a70,_0x13c028);const rt=0x12c,ot=0x64,at=()=>{let _0x399fde=[],_0x505019=!0x1;return _0x596a5b=>{const _0x59d9ba=_0x1c04;_0x399fde[_0x59d9ba(0x2ff)](_0x596a5b),_0x505019||(_0x505019=!0x0,setTimeout(()=>{const _0x1c6c43=_0x59d9ba;_0x399fde[_0x1c6c43(0x298)](_0x3fe130=>_0x3fe130()),_0x399fde=[],_0x505019=!0x1;}));};};let Ie=class extends a[_0x1cc422(0x2c3)]{constructor(_0x512261,_0x42ad14,_0x3944af,_0x38cac5,_0x5546fa,_0x3631c0,_0xd9fc9c,_0x45e7a4){const _0xb193b1=_0x1cc422;super(),h(this,_0xb193b1(0x18e),!0x1),h(this,_0xb193b1(0x28c),!0x1),h(this,_0xb193b1(0x2f3),new d[(_0xb193b1(0xf0))](new Map())),h(this,_0xb193b1(0x292),this['_cursorInfo$'][_0xb193b1(0x132)]()),h(this,_0xb193b1(0x29c),new d[(_0xb193b1(0xf0))]([])),h(this,_0xb193b1(0x372),this[_0xb193b1(0x29c)][_0xb193b1(0x1f0)](d['debounceTime'](rt))),h(this,'_updateLocalCursor',a[_0xb193b1(0x2de)]((_0x599448,_0x1443d4)=>{const _0xbd7cda=_0xb193b1,_0x9410e3={'eventID':m[_0xbd7cda(0x359)][_0xbd7cda(0x2fc)],'data':{'unitID':this[_0xbd7cda(0x215)],'memberID':this['_session'][_0xbd7cda(0x1d5)](),'selection':Te[_0xbd7cda(0x306)](_0x599448,_0x1443d4[_0xbd7cda(0x186)])}};this[_0xbd7cda(0x206)]['send'](_0x9410e3,this[_0xbd7cda(0x215)]);},ot)),(this[_0xb193b1(0x215)]=_0x512261,this['_session']=_0x42ad14,this[_0xb193b1(0x154)]=_0x3944af,this[_0xb193b1(0x27e)]=_0x38cac5,this[_0xb193b1(0x312)]=_0x5546fa,this['_univerInstanceService']=_0x3631c0,this[_0xb193b1(0x113)]=_0xd9fc9c,this[_0xb193b1(0x1fd)]=_0x45e7a4);}get[_0x1cc422(0x29a)](){const _0x296588=_0x1cc422;return this[_0x296588(0x2f3)][_0x296588(0x2e9)]();}get[_0x1cc422(0x2e5)](){const _0x3b8cb0=_0x1cc422;return this[_0x3b8cb0(0x29c)][_0x3b8cb0(0x2e9)]();}['dispose'](){const _0x4d77f5=_0x1cc422;super[_0x4d77f5(0x119)](),this[_0x4d77f5(0x2f3)][_0x4d77f5(0x364)](new Map()),this[_0x4d77f5(0x2f3)][_0x4d77f5(0x342)](),this[_0x4d77f5(0x29c)]['next']([]),this[_0x4d77f5(0x29c)]['complete']();}['init'](){const _0x3e01b8=_0x1cc422;this[_0x3e01b8(0x28c)]||(this[_0x3e01b8(0x28c)]=!0x0,this[_0x3e01b8(0x206)][_0x3e01b8(0x353)][_0x3e01b8(0x1f0)](d[_0x3e01b8(0xf8)](this[_0x3e01b8(0x129)]))[_0x3e01b8(0x24c)](_0x91111b=>{const _0x3fabf2=_0x3e01b8;_0x91111b===u[_0x3fabf2(0x11a)]['ONLINE']?this[_0x3fabf2(0x179)]():this['_toggleOffline']();}),this[_0x3e01b8(0x206)][_0x3e01b8(0x198)][_0x3e01b8(0x1f0)](d['takeUntil'](this['dispose$']))[_0x3e01b8(0x24c)](_0x5495f1=>{const _0xc7db17=_0x3e01b8,_0x551342=_0x5495f1['eventID'];_0x551342===m[_0xc7db17(0x359)][_0xc7db17(0x2fc)]&&this[_0xc7db17(0x23c)](_0x5495f1),_0x551342===m[_0xc7db17(0x359)]['USERS_LEAVE']&&this[_0xc7db17(0x12f)](_0x5495f1);}),this[_0x3e01b8(0x23a)](),this[_0x3e01b8(0x149)](this[_0x3e01b8(0x113)][_0x3e01b8(0x350)](_0x18231c=>{const _0x17985e=_0x3e01b8;if(this[_0x17985e(0x18e)]&&_0x18231c['id']===g[_0x17985e(0x271)]['id']&&_0x18231c[_0x17985e(0x133)][_0x17985e(0x243)]===this[_0x17985e(0x215)]){const _0xdd6440=_0x18231c[_0x17985e(0x133)];this[_0x17985e(0x141)](_0xdd6440[_0x17985e(0x315)],_0xdd6440[_0x17985e(0x329)][0x0]);}})));}[_0x1cc422(0x23c)](_0x2d461a){const _0x4e7b35=_0x1cc422;var _0x1116fe,_0x3c06c1;const {memberID:_0x5338e7,selection:_0x401fab}=_0x2d461a[_0x4e7b35(0x2cb)],{sheetName:_0xaf0fb,range:_0x37a753}=Te[_0x4e7b35(0x15e)](_0x401fab),_0x1bcbfe={'name':(_0x3c06c1=(_0x1116fe=this[_0x4e7b35(0x312)][_0x4e7b35(0x114)](this[_0x4e7b35(0x215)],_0x5338e7))==null?void 0x0:_0x1116fe[_0x4e7b35(0x1fb)])!=null?_0x3c06c1:_0x4e7b35(0x338),'range':this[_0x4e7b35(0x1cd)](_0xaf0fb,_0x37a753),'sheetID':_0xaf0fb,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5338e7),'selection':_0x401fab},_0x4ce111=this[_0x4e7b35(0x29a)];_0x4ce111[_0x4e7b35(0x2ab)](_0x5338e7,_0x1bcbfe),this['_cursorInfo$'][_0x4e7b35(0x364)](_0x4ce111);}[_0x1cc422(0x12f)](_0x5d8287){const _0x18523f=_0x1cc422,{memberID:_0x392568}=_0x5d8287['data'],_0x5c1a4e=this['cursorInfo'];_0x5c1a4e[_0x18523f(0x23e)](_0x392568),this['_cursorInfo$']['next'](_0x5c1a4e);}[_0x1cc422(0x1cd)](_0x262d7d,_0xaa0755){const _0x4266df=_0x1cc422;var _0x56585b,_0x1e659a;const _0x4f1d58=(_0x1e659a=(_0x56585b=this[_0x4266df(0x10e)]['getUniverSheetInstance'](this[_0x4266df(0x215)]))==null?void 0x0:_0x56585b[_0x4266df(0x24f)](_0x262d7d))==null?void 0x0:_0x1e659a[_0x4266df(0x317)]();return(_0x4f1d58==null?void 0x0:_0x4f1d58[_0x4266df(0x323)](_0x190b6d=>a[_0x4266df(0x31b)]['contains'](_0x190b6d,_0xaa0755)))||_0xaa0755;}['_onRefRangeChange'](){const _0x9375b0=_0x1cc422,_0x9a413f=new a['DisposableCollection'](),_0x3088ef=at(),_0x3736a4=()=>{const _0x2e30cd=_0x1c04;_0x9a413f[_0x2e30cd(0x119)]();const _0x39566b=(_0x3a6dca,_0x2699cf,_0x1e9055,_0x3f7352)=>{const _0x462e0e=_0x2e30cd;let _0x169bdb=[];switch(_0x3a6dca['id']){case g[_0x462e0e(0x21d)][_0x462e0e(0x335)]:{_0x169bdb=g[_0x462e0e(0x229)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)]['DeleteRangeMoveUpCommandId']:{_0x169bdb=g['handleDeleteRangeMoveUp'](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x117)]:{_0x169bdb=g[_0x462e0e(0x21c)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x2a6)]:{_0x169bdb=g['handleInsertRangeMoveDown'](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x128)]:{_0x169bdb=g[_0x462e0e(0x360)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x1fe)]:{_0x169bdb=g[_0x462e0e(0x20a)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)]['MoveRangeCommandId']:{_0x169bdb=g[_0x462e0e(0x29f)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x1da)]:{_0x169bdb=g[_0x462e0e(0x219)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x363)]:{_0x169bdb=g[_0x462e0e(0x1ba)](_0x3a6dca,_0x3f7352);break;}}const _0x7efd7=g[_0x462e0e(0x378)](_0x169bdb,_0x3f7352),_0x497f26=this[_0x462e0e(0x29a)][_0x462e0e(0x12a)](_0x2699cf);if(_0x497f26&&_0x7efd7){const _0x36fda7={..._0x497f26,'range':_0x7efd7};this[_0x462e0e(0x29a)][_0x462e0e(0x2ab)](_0x2699cf,_0x36fda7),_0x3088ef(()=>{const _0x22f5d9=_0x462e0e,_0x843e03=this[_0x22f5d9(0x1fd)][_0x22f5d9(0x36b)](_0x7efd7,_0x41f875=>(_0x843e03['dispose'](),_0x39566b(_0x41f875,_0x2699cf,_0x1e9055,_0x7efd7)));_0x9a413f[_0x22f5d9(0x1af)](_0x843e03);});}return{'redos':[],'undos':[]};};this[_0x2e30cd(0x29a)][_0x2e30cd(0x298)]((_0x21d916,_0x51da0c)=>{const _0x4d7af1=_0x2e30cd,{range:_0x1b2de4,sheetID:_0x4bd9ce}=_0x21d916,_0x26c113=this[_0x4d7af1(0x1fd)]['registerRefRange'](_0x1b2de4,_0x3b6735=>(_0x26c113[_0x4d7af1(0x119)](),_0x39566b(_0x3b6735,_0x51da0c,_0x4bd9ce,_0x1b2de4)));_0x9a413f[_0x4d7af1(0x1af)](_0x26c113);});};this[_0x9375b0(0x149)](a['toDisposable'](this[_0x9375b0(0x2f3)][_0x9375b0(0x24c)](()=>{_0x3736a4();})));}[_0x1cc422(0x179)](){const _0x7a3fd5=_0x1cc422;var _0x108871,_0x1a2c5e;if(this[_0x7a3fd5(0x18e)]=!0x0,((_0x108871=this[_0x7a3fd5(0x10e)][_0x7a3fd5(0x308)]())==null?void 0x0:_0x108871[_0x7a3fd5(0x111)]())!==this[_0x7a3fd5(0x215)])return;const _0x30928d=(_0x1a2c5e=this[_0x7a3fd5(0x154)][_0x7a3fd5(0x12a)](g[_0x7a3fd5(0x319)])[_0x7a3fd5(0x320)]())==null?void 0x0:_0x1a2c5e[0x0],_0x34875c=this['_univerInstanceService'][_0x7a3fd5(0x15c)](a[_0x7a3fd5(0x340)][_0x7a3fd5(0xfc)])['getActiveSheet']();_0x30928d&&_0x34875c&&this[_0x7a3fd5(0x141)](_0x34875c[_0x7a3fd5(0x2ec)](),_0x30928d);}[_0x1cc422(0x15f)](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),A(0x3,a[_0x1cc422(0x1f4)](Ce)),A(0x4,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x2a7)])),A(0x5,a[_0x1cc422(0x195)]),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g[_0x1cc422(0x162)]))],Ie);var ct=Object[_0x1cc422(0x1fc)],lt=(_0x13f4bf,_0x13e1c6,_0x5aba1d,_0x4ecef4)=>{const _0x233d63=_0x1cc422;for(var _0x382f2d=_0x4ecef4>0x1?void 0x0:_0x4ecef4?ct(_0x13e1c6,_0x5aba1d):_0x13e1c6,_0x562d0a=_0x13f4bf[_0x233d63(0x357)]-0x1,_0x1c6d54;_0x562d0a>=0x0;_0x562d0a--)(_0x1c6d54=_0x13f4bf[_0x562d0a])&&(_0x382f2d=_0x1c6d54(_0x382f2d)||_0x382f2d);return _0x382f2d;},ie=(_0x773fa6,_0x643115)=>(_0x14cc05,_0x2f315c)=>_0x643115(_0x14cc05,_0x2f315c,_0x773fa6);let x=class extends a[_0x1cc422(0x2c3)]{constructor(_0x375f1d,_0x430180,_0x196f5c){const _0x10b11a=_0x1cc422;super(),h(this,_0x10b11a(0x2b5),new Map()),h(this,_0x10b11a(0x371),new d[(_0x10b11a(0x16f))]()),(this['_univerInstanceService']=_0x375f1d,this['_injector']=_0x430180,this['_collabSessionService']=_0x196f5c,this['_init']());}[_0x1cc422(0x119)](){const _0x1e716d=_0x1cc422;super[_0x1e716d(0x119)](),this[_0x1e716d(0x371)][_0x1e716d(0x342)](),this[_0x1e716d(0x2b5)][_0x1e716d(0x298)](_0x64fb77=>_0x64fb77[_0x1e716d(0x119)]());}[_0x1cc422(0x104)](_0x36c599){const _0x3d056a=_0x1cc422;return this[_0x3d056a(0x2b5)][_0x3d056a(0x139)](_0x36c599)?this[_0x3d056a(0x2b5)]['get'](_0x36c599)[_0x3d056a(0x292)]:this[_0x3d056a(0x371)][_0x3d056a(0x1f0)](d['filter'](_0x1cf7ba=>_0x1cf7ba[_0x3d056a(0x215)]===_0x36c599),d[_0x3d056a(0x217)](_0x18afc0=>_0x18afc0[_0x3d056a(0x292)]));}[_0x1cc422(0x28c)](){const _0x149e89=_0x1cc422;this[_0x149e89(0x10e)][_0x149e89(0x2d0)](a[_0x149e89(0x340)][_0x149e89(0xfc)])[_0x149e89(0x1f0)](d['takeUntil'](this[_0x149e89(0x129)]))[_0x149e89(0x24c)](async _0x3515b9=>{const _0x1ebcc8=_0x149e89,_0x3b05fb=_0x3515b9['getUnitId'](),_0x36076f=await this[_0x1ebcc8(0x1e0)](_0x3b05fb);this[_0x1ebcc8(0x371)][_0x1ebcc8(0x364)](_0x36076f),this[_0x1ebcc8(0x2b5)]['set'](_0x3b05fb,_0x36076f);}),this[_0x149e89(0x10e)][_0x149e89(0x2d0)](a[_0x149e89(0x340)][_0x149e89(0x193)])[_0x149e89(0x1f0)](d[_0x149e89(0xf8)](this[_0x149e89(0x129)]))['pipe'](d['filter'](_0xcdd11=>!_0xcdd11[_0x149e89(0x111)]()[_0x149e89(0x351)]('__')))[_0x149e89(0x24c)](async _0x4a561e=>{const _0x5f05ac=_0x149e89,_0x599563=_0x4a561e[_0x5f05ac(0x111)](),_0x3b456f=await this[_0x5f05ac(0x2c5)](_0x599563);this[_0x5f05ac(0x371)]['next'](_0x3b456f),this['_entities']['set'](_0x599563,_0x3b456f);}),d[_0x149e89(0x10f)](this[_0x149e89(0x10e)][_0x149e89(0x251)](a['UniverInstanceType'][_0x149e89(0x193)]),this[_0x149e89(0x10e)][_0x149e89(0x251)](a[_0x149e89(0x340)][_0x149e89(0xfc)]))['pipe'](d[_0x149e89(0xf8)](this['dispose$']))[_0x149e89(0x24c)](_0x12c1aa=>{const _0x22f067=_0x149e89,_0xaa074a=_0x12c1aa[_0x22f067(0x111)](),_0x5185be=this['_entities'][_0x22f067(0x12a)](_0xaa074a);_0x5185be&&(_0x5185be['dispose'](),this[_0x22f067(0x2b5)][_0x22f067(0x23e)](_0xaa074a));});}async[_0x1cc422(0x1e0)](_0x335d84){const _0x20949e=_0x1cc422,_0x5f4aba=await this[_0x20949e(0x1ae)][_0x20949e(0x144)](_0x335d84),_0x33b72c=this[_0x20949e(0x154)]['createInstance'](Ie,_0x335d84,_0x5f4aba);return _0x33b72c['init'](),_0x33b72c;}async['_startDocCollabCursor'](_0x46da35){const _0x69dc47=_0x1cc422,_0xf7a6ac=await this['_collabSessionService'][_0x69dc47(0x144)](_0x46da35),_0x12b47f=this['_injector'][_0x69dc47(0x214)](Se,_0x46da35,_0xf7a6ac);return _0x12b47f['init'](),_0x12b47f;}};x=lt([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x1cc422(0x1f4)](a['Injector'])),ie(0x2,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x208)]))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x2f415e,_0x39c6ce){const _0x4212a2=_0x1cc422;let {radius:_0x31ab0d,width:_0x8cb01e,height:_0x16c703}=_0x39c6ce;_0x31ab0d=_0x31ab0d!=null?_0x31ab0d:0x0,_0x8cb01e=_0x8cb01e!=null?_0x8cb01e:0x1e,_0x16c703=_0x16c703!=null?_0x16c703:0x1e;let _0x5abef2=0x0,_0x13ee54=0x0,_0x4df1b6=0x0;_0x5abef2=_0x13ee54=_0x4df1b6=Math[_0x4212a2(0x237)](_0x31ab0d,_0x8cb01e/0x2,_0x16c703/0x2),_0x2f415e[_0x4212a2(0x337)](),_0x2f415e[_0x4212a2(0x22a)](_0x5abef2,0x0),_0x2f415e[_0x4212a2(0x234)](_0x8cb01e-_0x13ee54,0x0),_0x2f415e['arc'](_0x8cb01e-_0x13ee54,_0x13ee54,_0x13ee54,Math['PI']*0x3/0x2,0x0,!0x1),_0x2f415e['lineTo'](_0x8cb01e,_0x16c703-_0x4df1b6),_0x2f415e['arc'](_0x8cb01e-_0x4df1b6,_0x16c703-_0x4df1b6,_0x4df1b6,0x0,Math['PI']/0x2,!0x1),_0x2f415e['lineTo'](0x0,_0x16c703),_0x2f415e['lineTo'](0x0,_0x5abef2),_0x2f415e['arc'](_0x5abef2,_0x5abef2,_0x5abef2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2f415e[_0x4212a2(0x1b0)](),_0x39c6ce[_0x4212a2(0x12e)]&&(_0x2f415e[_0x4212a2(0x31d)](),_0x2f415e[_0x4212a2(0x36c)]=_0x39c6ce[_0x4212a2(0x12e)],_0x39c6ce[_0x4212a2(0xea)]===_0x4212a2(0x263)?_0x2f415e[_0x4212a2(0x12e)](_0x4212a2(0x263)):_0x2f415e[_0x4212a2(0x12e)](),_0x2f415e[_0x4212a2(0x23f)]());}class te extends p['Shape']{constructor(_0x92d8dd,_0x55f420){const _0x52971f=_0x1cc422;super(_0x92d8dd,_0x55f420),h(this,_0x52971f(0x120)),h(this,'text'),(this['color']=_0x55f420==null?void 0x0:_0x55f420[_0x52971f(0x120)],this[_0x52971f(0x210)]=_0x55f420==null?void 0x0:_0x55f420[_0x52971f(0x210)]);}static[_0x1cc422(0x2ca)](_0x4a1a56,_0x2fb973){const _0x1d7915=_0x1cc422,{text:_0x17061e,color:_0x4913f7}=_0x2fb973;_0x4a1a56[_0x1d7915(0x31d)](),_0x4a1a56[_0x1d7915(0x16c)]=_0x1d7915(0x1b5);const _0x202614=_0x4a1a56[_0x1d7915(0x2d3)](_0x17061e)[_0x1d7915(0x282)],_0x5690cd=Math['min'](_0x202614+0x2*re,De);_t(_0x4a1a56,{'height':K,'radius':0x4,'width':_0x5690cd,'fill':_0x4913f7}),_0x4a1a56[_0x1d7915(0x36c)]=_0x1d7915(0x218);const _0x5a6181=re,_0x1f83f8=K-ht,_0xd01ff6=De-0x2*re;if(_0x202614>_0xd01ff6){let _0x4a0577='',_0x36caf2=0x0;for(const _0x558072 of _0x17061e){const _0x209533=_0x4a1a56[_0x1d7915(0x2d3)](_0x558072)[_0x1d7915(0x282)];if(_0x36caf2+_0x209533<=_0xd01ff6-_0x4a1a56[_0x1d7915(0x2d3)](_0x1d7915(0x2c6))['width'])_0x4a0577+=_0x558072,_0x36caf2+=_0x209533;else{_0x4a0577+=_0x1d7915(0x2c6);break;}}_0x4a1a56['fillText'](_0x4a0577,_0x5a6181,_0x1f83f8);}else _0x4a1a56[_0x1d7915(0x205)](_0x17061e,_0x5a6181,_0x1f83f8);_0x4a1a56['restore']();}[_0x1cc422(0x311)](_0x15be4f){const _0x2f2f5c=_0x1cc422;te[_0x2f2f5c(0x2ca)](_0x15be4f,this);}}const oe=_0x1cc422(0x24e),ut='collab-text-range-',dt=_0x1cc422(0x15a),B=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x1cc422(0x293);class Ue{constructor(_0x38a97b,_0x42af97,_0x5f3091,_0x175d73){const _0x2e2613=_0x1cc422;h(this,_0x2e2613(0x22b),[]),h(this,_0x2e2613(0x1d4),null),h(this,_0x2e2613(0x281),null),h(this,_0x2e2613(0x169),null),h(this,_0x2e2613(0x157),null),h(this,'_eventUnsubscribe',null),(this[_0x2e2613(0x348)]=_0x38a97b,this[_0x2e2613(0x286)]=_0x42af97,this[_0x2e2613(0x1c1)]=_0x5f3091,this[_0x2e2613(0x1bb)]=_0x175d73,this[_0x2e2613(0x1dd)]());}set[_0x1cc422(0x283)](_0x9a0462){const _0x412de2=_0x1cc422;_0x9a0462?(this[_0x412de2(0x169)]&&this['_anchorDot'][_0x412de2(0x2c8)](),this[_0x412de2(0x281)]&&this[_0x412de2(0x281)]['show']()):(this[_0x412de2(0x169)]&&this[_0x412de2(0x169)][_0x412de2(0x30a)](),this[_0x412de2(0x281)]&&this[_0x412de2(0x281)][_0x412de2(0x2c8)]());}[_0x1cc422(0x119)](){const _0x242831=_0x1cc422;for(const _0x3d4b67 of this['_shapes'])_0x3d4b67[_0x242831(0x119)]();this[_0x242831(0x281)]&&this[_0x242831(0x281)][_0x242831(0x119)](),this[_0x242831(0x169)]&&this[_0x242831(0x169)]['dispose'](),this[_0x242831(0x1d4)]&&this[_0x242831(0x1d4)][_0x242831(0x119)](),this[_0x242831(0x102)]&&this[_0x242831(0x102)]();}[_0x1cc422(0x1dd)](){const _0x5520a8=_0x1cc422;var _0x5d7c6a;const {_docSkeleton:_0x45bdb6,_document:_0x234a0d}=this,{color:_0x36fbad,name:_0x28e63e,ranges:_0x5491ba}=this['_cursor'],_0x39de0f=_0x234a0d[_0x5520a8(0x35c)](),{docsLeft:_0x4f65ef,docsTop:_0x587508}=_0x39de0f,_0x24a893=new b[(_0x5520a8(0x142))](_0x39de0f,_0x45bdb6);for(const {startOffset:_0x101f96,endOffset:_0x3f400a,rangeType:_0x3fb9a6,segmentId:_0x227b96,segmentPage:_0x1b2b87,collapsed:_0x3a4799,isActive:_0x34801d}of _0x5491ba){const _0x1f176a=_0x45bdb6[_0x5520a8(0x346)](_0x101f96,!0x0,_0x227b96,_0x1b2b87);let _0x156106=_0x45bdb6[_0x5520a8(0x346)](_0x3f400a,!0x0,_0x227b96,_0x1b2b87);if(_0x156106==null&&(_0x156106=_0x45bdb6[_0x5520a8(0x346)](_0x3f400a-0x1,!0x1,_0x227b96,_0x1b2b87)),_0x34801d){const {contentBoxPointGroup:_0x1434ed}=_0x24a893['getRangePointData'](_0x156106,_0x156106);if(_0x1434ed[_0x5520a8(0x357)]===0x0)continue;this[_0x5520a8(0x345)](_0x36fbad,_0x1434ed,_0x4f65ef,_0x587508,_0x28e63e),this[_0x5520a8(0x102)]=this['_handleHover']();}if(_0x1f176a&&_0x156106){if(_0x3fb9a6===a[_0x5520a8(0x223)]['RECT']){const _0xe61b92=new b['NodePositionConvertToRectRange'](_0x39de0f,_0x45bdb6),{pointGroup:_0x17bb8c}=(_0x5d7c6a=_0xe61b92[_0x5520a8(0x10d)](_0x1f176a,_0x156106))!=null?_0x5d7c6a:{};if(_0x17bb8c==null||_0x17bb8c[_0x5520a8(0x357)]===0x0)continue;this[_0x5520a8(0x1d8)](_0x36fbad,_0x17bb8c,_0x4f65ef,_0x587508);}else{if(!_0x3a4799){const {borderBoxPointGroup:_0x35441c}=_0x24a893[_0x5520a8(0x10d)](_0x1f176a,_0x156106);if(_0x35441c[_0x5520a8(0x357)]===0x0)continue;this[_0x5520a8(0x28b)](_0x36fbad,_0x35441c,_0x4f65ef,_0x587508);}}}}}[_0x1cc422(0x345)](_0x37bb4e,_0x3fd03f,_0x29e169,_0x40ce2f,_0x24baf4){const _0x492bcf=_0x1cc422,_0x16dadb=this['_getAnchorBounding'](_0x3fd03f),{left:_0x293ae6,top:_0x8ae54a,height:_0x46b5f5}=_0x16dadb,_0x189898=this['_getScale'](),_0x33e7ce=St/_0x189898,_0x22318c=new p[(_0x492bcf(0x368))](oe+a[_0x492bcf(0x299)][_0x492bcf(0x26b)](B),{'left':_0x293ae6+_0x29e169-_0x33e7ce,'top':_0x8ae54a+_0x40ce2f,'height':_0x46b5f5,'width':ft,'fill':_0x37bb4e||p[_0x492bcf(0x239)](a[_0x492bcf(0x2a2)][_0x492bcf(0x19e)],0x0),'strokeWidth':_0x33e7ce,'stroke':It,'evented':!0x0});this['_anchor']=_0x22318c,this[_0x492bcf(0x286)][_0x492bcf(0x1aa)](_0x22318c,b[_0x492bcf(0x1ca)]);const _0x135b46=new p[(_0x492bcf(0x368))](oe+a['Tools'][_0x492bcf(0x26b)](B),{'left':_0x293ae6+_0x29e169-_0x33e7ce,'top':_0x8ae54a+_0x40ce2f-ae/0x2,'height':ae,'width':ae,'fill':_0x37bb4e||p[_0x492bcf(0x239)](a[_0x492bcf(0x2a2)][_0x492bcf(0x19e)],0x0),'strokeWidth':0x0,'stroke':_0x37bb4e||p[_0x492bcf(0x239)](a[_0x492bcf(0x2a2)][_0x492bcf(0x19e)],0x0),'evented':!0x1});this[_0x492bcf(0x169)]=_0x135b46,this[_0x492bcf(0x286)][_0x492bcf(0x1aa)](_0x135b46,b['TEXT_RANGE_LAYER_INDEX']);const _0x36c52b=new te(oe+a[_0x492bcf(0x299)]['generateRandomId'](B),{'left':_0x293ae6+_0x29e169-_0x33e7ce,'top':_0x8ae54a+_0x40ce2f-K,'text':_0x24baf4,'color':_0x37bb4e});this[_0x492bcf(0x281)]=_0x36c52b,this[_0x492bcf(0x286)]['addObject'](_0x36c52b,b[_0x492bcf(0x1ca)]),this[_0x492bcf(0x283)]=!0x1;}[_0x1cc422(0x314)](){const _0x3bbfd1=_0x1cc422,_0x45c185=this[_0x3bbfd1(0x1d4)][_0x3bbfd1(0x358)][_0x3bbfd1(0x11c)](()=>{const _0x32c1f1=_0x3bbfd1;this[_0x32c1f1(0x283)]=!0x0;}),_0xfd3f7d=this[_0x3bbfd1(0x1d4)][_0x3bbfd1(0x203)]['subscribeEvent'](()=>{const _0x41940c=_0x3bbfd1;this[_0x41940c(0x157)]&&clearTimeout(this[_0x41940c(0x157)]),this[_0x41940c(0x157)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x284112=_0x3bbfd1;_0x45c185[_0x284112(0x130)](),_0xfd3f7d['unsubscribe']();};}[_0x1cc422(0x28b)](_0x250fbe,_0x1f2de5,_0x50af30,_0x44599e){const _0x384076=_0x1cc422,_0x117240=new a[(_0x384076(0x2f9))](_0x250fbe)['setAlpha'](0.2)[_0x384076(0xf5)](),_0x2609fb=new p[(_0x384076(0x2e1))](ut+a[_0x384076(0x299)][_0x384076(0x26b)](B),{'pointsGroup':_0x1f2de5,'fill':_0x117240||p[_0x384076(0x239)](a[_0x384076(0x2a2)][_0x384076(0x19e)],0.2),'left':_0x50af30,'top':_0x44599e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x384076(0x22b)]['push'](_0x2609fb),this['_scene'][_0x384076(0x1aa)](_0x2609fb,b[_0x384076(0x1ca)]);}[_0x1cc422(0x1d8)](_0xf3854d,_0x5b2581,_0x1a169e,_0x14abee){const _0x5263f2=_0x1cc422,_0x3c3361=new a[(_0x5263f2(0x2f9))](_0xf3854d)[_0x5263f2(0x22d)](0.2)[_0x5263f2(0xf5)](),_0x57cdb2=new p['RegularPolygon'](dt+a['Tools'][_0x5263f2(0x26b)](B),{'pointsGroup':_0x5b2581,'fill':_0x3c3361||p[_0x5263f2(0x239)](a['COLORS'][_0x5263f2(0x19e)],0.2),'left':_0x1a169e,'top':_0x14abee,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5263f2(0x22b)][_0x5263f2(0x2ff)](_0x57cdb2),this['_scene'][_0x5263f2(0x1aa)](_0x57cdb2,b['TEXT_RANGE_LAYER_INDEX']);}[_0x1cc422(0xf6)](_0xf2d30e){const _0x8a0748=_0xf2d30e[0x0],_0x3fef4e=_0x8a0748[0x0],_0x4e8f00=_0x8a0748[0x2],{x:_0x4afd4f,y:_0x2d246f}=_0x3fef4e,{x:_0x2c6863,y:_0x27fe79}=_0x4e8f00;return{'left':_0x4afd4f,'top':_0x2d246f,'width':_0x2c6863-_0x4afd4f,'height':_0x27fe79-_0x2d246f};}[_0x1cc422(0x17f)](){const _0x126ba0=_0x1cc422,{scaleX:_0x130240,scaleY:_0x859e62}=this['_scene'][_0x126ba0(0x1ed)]();return Math[_0x126ba0(0x1e5)](_0x130240,_0x859e62);}}var vt=Object[_0x1cc422(0x1fc)],gt=(_0x3f6c1e,_0x1d2952,_0x14effd,_0x5eeadc)=>{const _0x1af037=_0x1cc422;for(var _0x1c2a18=_0x5eeadc>0x1?void 0x0:_0x5eeadc?vt(_0x1d2952,_0x14effd):_0x1d2952,_0x546088=_0x3f6c1e[_0x1af037(0x357)]-0x1,_0x52003e;_0x546088>=0x0;_0x546088--)(_0x52003e=_0x3f6c1e[_0x546088])&&(_0x1c2a18=_0x52003e(_0x1c2a18)||_0x1c2a18);return _0x1c2a18;},V=(_0x210ed9,_0x171411)=>(_0x27853d,_0x30f966)=>_0x171411(_0x27853d,_0x30f966,_0x210ed9);let ve=class extends a['RxDisposable']{constructor(_0x48baca,_0x9ed6ef,_0x5c0c9c,_0x1bba8c,_0x3d7723){const _0x1cbd86=_0x1cc422;super(),h(this,'_cursorShapes',[]),h(this,_0x1cbd86(0x33e),[]),(this[_0x1cbd86(0x1d9)]=_0x48baca,this[_0x1cbd86(0x313)]=_0x9ed6ef,this[_0x1cbd86(0x297)]=_0x5c0c9c,this[_0x1cbd86(0x113)]=_0x1bba8c,this[_0x1cbd86(0x236)]=_0x3d7723,this[_0x1cbd86(0x28c)]());}[_0x1cc422(0x28c)](){const _0x4c1e5d=_0x1cc422,_0x262bc8=this['_context'][_0x4c1e5d(0x243)],_0x480ba8=this['_docSkeletonManagerService'];this[_0x4c1e5d(0x149)](d[_0x4c1e5d(0x1d7)]([this[_0x4c1e5d(0x297)][_0x4c1e5d(0x104)](_0x262bc8),this[_0x4c1e5d(0x236)][_0x4c1e5d(0x1eb)]])['pipe']($[_0x4c1e5d(0x2ba)](([_0x47d4fb,_0x20b8e3])=>({'skeleton':_0x480ba8[_0x4c1e5d(0x159)](),'cursors':[..._0x47d4fb[_0x4c1e5d(0x2bd)]()][_0x4c1e5d(0x2b3)](_0x22bf45=>({..._0x22bf45,'color':_0x20b8e3[_0x22bf45[_0x4c1e5d(0x120)]]}))})))[_0x4c1e5d(0x24c)](_0x1f9fb6=>{const _0x169e36=_0x4c1e5d;if(this[_0x169e36(0x309)](),_0x1f9fb6){const {skeleton:_0x341339,cursors:_0xef252f}=_0x1f9fb6;this[_0x169e36(0x2d4)](_0x341339,_0xef252f);}})),this['_initResize'](),this[_0x4c1e5d(0xee)]();}[_0x1cc422(0x2d4)](_0x489887,_0x41ad0e){const _0xf4b016=_0x1cc422,{scene:_0x2f7285,mainComponent:_0x33a932}=this[_0xf4b016(0x1d9)],_0x26e8ce=_0x41ad0e[_0xf4b016(0x2ba)](_0x25eadf=>new Ue(_0x25eadf,_0x2f7285,_0x489887,_0x33a932));this[_0xf4b016(0x118)]=_0x26e8ce,this[_0xf4b016(0x33e)]=_0x41ad0e;}[_0x1cc422(0x1c8)](){const _0x5119e3=_0x1cc422;this[_0x5119e3(0x309)]();const {scene:_0x58d7c8,mainComponent:_0xff8231}=this[_0x5119e3(0x1d9)],_0x5e02b0=this['_docSkeletonManagerService'][_0x5119e3(0x159)](),_0x368ae7=this['_cursors'][_0x5119e3(0x2ba)](_0x316976=>new Ue(_0x316976,_0x58d7c8,_0x5e02b0,_0xff8231));this[_0x5119e3(0x118)]=_0x368ae7;}[_0x1cc422(0x309)](){this['_cursorShapes']['forEach'](_0x5cf8bb=>_0x5cf8bb['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x43b530=_0x1cc422,_0x153ef9=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x43b530(0x350)](_0x51e6a5=>{const _0x39f4d1=_0x43b530;_0x153ef9['includes'](_0x51e6a5['id'])&&_0x51e6a5[_0x39f4d1(0x133)]['unitId']===this[_0x39f4d1(0x1d9)][_0x39f4d1(0x243)]&&this[_0x39f4d1(0x1c8)]();}));}['_initResize'](){const _0x1e4dec=_0x1cc422;this[_0x1e4dec(0x149)](a[_0x1e4dec(0x30e)](this[_0x1e4dec(0x1d9)][_0x1e4dec(0x14c)][_0x1e4dec(0x34f)])[_0x1e4dec(0x1f0)]($[_0x1e4dec(0x365)](_0x1076b9=>_0x1076b9['type']===p[_0x1e4dec(0x249)][_0x1e4dec(0xf1)]),$[_0x1e4dec(0x33a)](0x10))[_0x1e4dec(0x24c)](()=>{const _0x5a8faf=_0x1e4dec;this[_0x5a8faf(0x1c8)]();}));}};ve=gt([V(0x1,a[_0x1cc422(0x1f4)](Y[_0x1cc422(0x14b)])),V(0x2,a[_0x1cc422(0x1f4)](x)),V(0x3,a['ICommandService']),V(0x4,a['Inject'](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x1cc422(0x27a)]{constructor(_0x4adbdb,_0x2cfcd9){const _0x5566f5=_0x1cc422;super(_0x4adbdb,_0x2cfcd9),h(this,_0x5566f5(0x1a6)),h(this,'_hovered',!0x1),h(this,_0x5566f5(0x326)),h(this,_0x5566f5(0x296),''),h(this,_0x5566f5(0x1ac),_0x5566f5(0x13c)),h(this,_0x5566f5(0x150)),(_0x2cfcd9&&this['setShapeProps'](_0x2cfcd9),this['onPointerEnter$'][_0x5566f5(0x11c)](()=>this[_0x5566f5(0x112)]({'hovered':!0x0})),this[_0x5566f5(0x203)][_0x5566f5(0x11c)](()=>this[_0x5566f5(0x112)]({'hovered':!0x1})));}[_0x1cc422(0x112)](_0x1310bb){const _0x510267=_0x1cc422;var _0x6d7aa9,_0x1bd7fe,_0x3c011a,_0x41aa23,_0x1ab401,_0x16efc9;this['_color']=(_0x6d7aa9=_0x1310bb[_0x510267(0x120)])!=null?_0x6d7aa9:this[_0x510267(0x1a6)],this[_0x510267(0x107)]=(_0x1bd7fe=_0x1310bb[_0x510267(0x334)])!=null?_0x1bd7fe:this[_0x510267(0x107)],this['_range']=(_0x3c011a=_0x1310bb[_0x510267(0x186)])!=null?_0x3c011a:this[_0x510267(0x326)],this[_0x510267(0x296)]=(_0x41aa23=_0x1310bb[_0x510267(0x1fb)])!=null?_0x41aa23:this[_0x510267(0x296)],this[_0x510267(0x1ac)]=(_0x1ab401=_0x1310bb[_0x510267(0x16e)])!=null?_0x1ab401:this['_labelPosition'],this['_backgroundColor']=(_0x16efc9=_0x1310bb[_0x510267(0x185)])!=null?_0x16efc9:this[_0x510267(0x150)],this[_0x510267(0x2c0)]({'width':_0x1310bb[_0x510267(0x282)],'height':_0x1310bb['height']});}[_0x1cc422(0x1f7)](_0x37d174){const _0xdcdba8=_0x1cc422,{row:_0x590656,column:_0x1e7449}=_0x37d174;if(_0x590656>=this['_range'][_0xdcdba8(0x100)]&&_0x590656<=this[_0xdcdba8(0x326)][_0xdcdba8(0x262)]&&_0x1e7449>=this[_0xdcdba8(0x326)]['startColumn']&&_0x1e7449<=this['_range'][_0xdcdba8(0x1a7)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0xdcdba8(0x112)]({'hovered':!0x1});}[_0x1cc422(0x2dc)](_0x21f12f){return!0x1;}['_draw'](_0x17c8fc){const _0x4469ef=_0x1cc422;p[_0x4469ef(0x368)]['drawWith'](_0x17c8fc,{'width':this[_0x4469ef(0x282)],'height':this['height'],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4469ef(0x150)]}),this['_hovered']&&(_0x17c8fc[_0x4469ef(0x31d)](),_0x17c8fc[_0x4469ef(0x275)](0x1,0x0,0x0,0x1,this[_0x4469ef(0x282)],this[_0x4469ef(0x1ac)]==='bottom'?0x0:-0x14),te['drawWith'](_0x17c8fc,{'text':this[_0x4469ef(0x296)],'color':this[_0x4469ef(0x1a6)]}),_0x17c8fc[_0x4469ef(0x23f)]());}}var pt=Object[_0x1cc422(0x1fc)],bt=(_0x3bf16d,_0x1c862f,_0x3ac838,_0x2bdc26)=>{const _0x4a68cf=_0x1cc422;for(var _0xc69bf6=_0x2bdc26>0x1?void 0x0:_0x2bdc26?pt(_0x1c862f,_0x3ac838):_0x1c862f,_0x5c326c=_0x3bf16d[_0x4a68cf(0x357)]-0x1,_0x5d8c52;_0x5c326c>=0x0;_0x5c326c--)(_0x5d8c52=_0x3bf16d[_0x5c326c])&&(_0xc69bf6=_0x5d8c52(_0xc69bf6)||_0xc69bf6);return _0xc69bf6;},ce=(_0x1ca099,_0x1bb4ad)=>(_0x34557b,_0x14f33e)=>_0x1bb4ad(_0x34557b,_0x14f33e,_0x1ca099);const Et=0x1389;let ge=class extends a[_0x1cc422(0x2c3)]{constructor(_0x4656f5,_0x1ae05c,_0x43d963,_0x4c986e){const _0x295a5c=_0x1cc422;super(),h(this,_0x295a5c(0x33e),new Set()),h(this,_0x295a5c(0x35a),null),(this['_context']=_0x4656f5,this[_0x295a5c(0x301)]=_0x1ae05c,this[_0x295a5c(0x297)]=_0x43d963,this['_themeService']=_0x4c986e,this[_0x295a5c(0x28c)]());}[_0x1cc422(0x28c)](){const _0x939550=_0x1cc422;this[_0x939550(0x301)]['currentSkeleton$'][_0x939550(0x1f0)]($[_0x939550(0xf8)](this[_0x939550(0x129)]),$['switchMap'](_0x384b1c=>{const _0x4f4ec1=_0x939550;if(_0x384b1c){const _0x37ec8e=_0x384b1c[_0x4f4ec1(0x2b8)];return d['combineLatest'](this[_0x4f4ec1(0x297)]['getCollabCursors$'](this['_context'][_0x4f4ec1(0x243)]),this[_0x4f4ec1(0x236)][_0x4f4ec1(0x1eb)])['pipe']($[_0x4f4ec1(0x2ba)](([_0x4f72fd,_0x2579d0])=>{const _0xea0d5=_0x4f4ec1,_0x2583a6=new Map();return _0x4f72fd[_0xea0d5(0x298)]((_0x2ef260,_0x380ab6)=>{const _0x487007=_0xea0d5;if(_0x2ef260[_0x487007(0xfa)]===_0x37ec8e){const _0x2e9853={..._0x2ef260};_0x2e9853['color']=_0x2579d0[_0x2ef260['color']],_0x2583a6['set'](_0x380ab6,_0x2e9853);}}),{'skeleton':_0x384b1c,'cursors':_0x2583a6};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1273ef,cursors:_0x6fd41d})=>{const _0x12d9e1=_0x939550;this[_0x12d9e1(0x309)](),_0x1273ef&&this['_updateCollabCursors'](_0x1273ef,_0x6fd41d);}),this[_0x939550(0x301)][_0x939550(0x108)][_0x939550(0x24c)](_0x9cb05f=>{const _0x403385=_0x939550;if(_0x9cb05f==null)return;const {skeleton:_0x26a442}=_0x9cb05f,{scene:_0x1f98ca}=this['_context'];_0x1f98ca[_0x403385(0x269)][_0x403385(0x11c)](a[_0x403385(0x2de)](_0x20bd26=>{const _0x3d2f0e=_0x403385;var _0x537bba,_0x182956;const {offsetX:_0x1dac2e,offsetY:_0x346c4d}=_0x20bd26,{x:_0x807f99,y:_0x33d5a1}=_0x1f98ca['getRelativeToViewportCoord'](p[_0x3d2f0e(0x181)]['FromArray']([_0x1dac2e,_0x346c4d])),{scaleX:_0x521b2c,scaleY:_0x2ee754}=_0x1f98ca[_0x3d2f0e(0x1ed)](),_0x3f2163=_0x1f98ca[_0x3d2f0e(0x122)](p[_0x3d2f0e(0x373)][_0x3d2f0e(0x1b9)]),_0x29ae97=_0x1f98ca[_0x3d2f0e(0x30c)](p['Vector2'][_0x3d2f0e(0x30f)]([_0x807f99,_0x33d5a1]),_0x3f2163),_0xa134f4=_0x26a442[_0x3d2f0e(0x126)](_0x1dac2e,_0x346c4d,_0x521b2c,_0x2ee754,_0x29ae97);((_0x537bba=this[_0x3d2f0e(0x35a)])==null?void 0x0:_0x537bba[_0x3d2f0e(0x28f)])===_0xa134f4['column']&&((_0x182956=this['_lastPointer'])==null?void 0x0:_0x182956['row'])===_0xa134f4['row']||this[_0x3d2f0e(0x33e)]['forEach'](_0x3ce5cc=>{const _0x1c2bde=_0x3d2f0e;_0x3ce5cc[_0x1c2bde(0x1f7)](_0xa134f4);});},0x64));});}[_0x1cc422(0x2d4)](_0x3468ef,_0x323cc7){const _0x40d1bc=_0x1cc422;var _0x106369;const _0x17062e=(_0x106369=this[_0x40d1bc(0x301)][_0x40d1bc(0x1cb)]())==null?void 0x0:_0x106369[_0x40d1bc(0x156)];if(!_0x17062e)return;const _0xf11fc7=this[_0x40d1bc(0x189)]();if(!_0xf11fc7)return;this[_0x40d1bc(0x33e)][_0x40d1bc(0x298)](_0x38d3fd=>{const _0x1eb059=_0x40d1bc;_0x38d3fd[_0x1eb059(0x244)]();});const {scene:_0xd47ce0}=_0xf11fc7,_0x5988ea=Tt(Array[_0x40d1bc(0xfd)](_0x323cc7[_0x40d1bc(0x2bd)]()))[_0x40d1bc(0x2ba)](_0x5a0d5a=>{const _0x234b52=_0x40d1bc,{color:_0x3cced8,range:_0x3cc91d,name:_0x58a1de,selection:_0xf9fcc1,sheetID:_0x1e774c}=_0x5a0d5a,{startColumn:_0x491095,startRow:_0x234ebc,endColumn:_0x17994f,endRow:_0x1c4530}=_0x3cc91d,_0x5cbedc=G[_0x234b52(0x192)](_0x234ebc,_0x491095,_0xd47ce0,_0x17062e),_0x201368=G[_0x234b52(0x192)](_0x1c4530,_0x17994f,_0xd47ce0,_0x17062e),{columnHeaderHeightAndMarginTop:_0x26976f}=_0x17062e,{startX:_0x33a094,startY:_0x1a067d}=_0x5cbedc,{endX:_0x23293b,endY:_0x143f37}=_0x201368,_0x4b2bbf=_0x23293b-_0x33a094,_0x5d54d3=_0x143f37-_0x1a067d,_0x2a44e8={'labelPosition':_0x1a067d-_0x26976f>=K?_0x234b52(0x13c):_0x234b52(0x14d),'sheetID':_0x1e774c,'range':_0x3cc91d,'color':_0x3cced8,'name':_0x58a1de,'selection':_0xf9fcc1,'left':_0x33a094,'top':_0x1a067d,'width':_0x4b2bbf,'height':_0x5d54d3,'evented':!0x1,'zIndex':Et};return new Ae(_0x58a1de,_0x2a44e8);});_0xd47ce0[_0x40d1bc(0x1a0)](_0x5988ea,mt),this['_cursors']=new Set(_0x5988ea);}[_0x1cc422(0x309)](){const _0xcad5d7=_0x1cc422;var _0x298f9f;(_0x298f9f=this[_0xcad5d7(0x33e)])==null||_0x298f9f[_0xcad5d7(0x298)](_0x2462e4=>_0x2462e4[_0xcad5d7(0x119)]());}[_0x1cc422(0x189)](){const _0x19726a=_0x1cc422;return G['getSheetObject'](this[_0x19726a(0x1d9)]['unit'],this['_context']);}};ge=bt([ce(0x1,a[_0x1cc422(0x1f4)](G['SheetSkeletonManagerService'])),ce(0x2,a[_0x1cc422(0x1f4)](x)),ce(0x3,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x167)]))],ge);function Tt(_0x5a85c7){const _0x38f849=_0x1cc422,_0x2b3d1e=new Map();return _0x5a85c7['forEach'](_0x37ea24=>{const _0x55806b=_0x1c04;if(_0x2b3d1e['has'](_0x37ea24['selection'])){const _0x43dbe4=_0x2b3d1e[_0x55806b(0x12a)](_0x37ea24['selection']);_0x43dbe4[_0x55806b(0x1fb)]+=',\x20'+_0x37ea24[_0x55806b(0x1fb)];}else _0x2b3d1e[_0x55806b(0x2ab)](_0x37ea24[_0x55806b(0x36d)],_0x37ea24);}),Array[_0x38f849(0xfd)](_0x2b3d1e[_0x38f849(0x2bd)]());}var E=function(){const _0x2dee9d=_0x1cc422;return E=Object[_0x2dee9d(0x1ef)]||function(_0x498530){const _0x5ce842=_0x2dee9d;for(var _0x2a2920,_0x2f56f5=0x1,_0x51abf3=arguments['length'];_0x2f56f5<_0x51abf3;_0x2f56f5++){_0x2a2920=arguments[_0x2f56f5];for(var _0x4e36bc in _0x2a2920)Object[_0x5ce842(0x2f7)][_0x5ce842(0x180)][_0x5ce842(0x26c)](_0x2a2920,_0x4e36bc)&&(_0x498530[_0x4e36bc]=_0x2a2920[_0x4e36bc]);}return _0x498530;},E[_0x2dee9d(0x2a4)](this,arguments);},Rt=function(_0x551b58,_0x559428){const _0x288b0e=_0x1cc422;var _0x2815e5={};for(var _0x3f8e12 in _0x551b58)Object['prototype'][_0x288b0e(0x180)][_0x288b0e(0x26c)](_0x551b58,_0x3f8e12)&&_0x559428['indexOf'](_0x3f8e12)<0x0&&(_0x2815e5[_0x3f8e12]=_0x551b58[_0x3f8e12]);if(_0x551b58!=null&&typeof Object[_0x288b0e(0x1ee)]==_0x288b0e(0x2c2)){for(var _0x22520d=0x0,_0x3f8e12=Object[_0x288b0e(0x1ee)](_0x551b58);_0x22520d<_0x3f8e12[_0x288b0e(0x357)];_0x22520d++)_0x559428[_0x288b0e(0x123)](_0x3f8e12[_0x22520d])<0x0&&Object[_0x288b0e(0x2f7)][_0x288b0e(0x330)][_0x288b0e(0x26c)](_0x551b58,_0x3f8e12[_0x22520d])&&(_0x2815e5[_0x3f8e12[_0x22520d]]=_0x551b58[_0x3f8e12[_0x22520d]]);}return _0x2815e5;},be=M['forwardRef'](function(_0x19db2b,_0x463f79){const _0x111817=_0x1cc422;var _0x37f69d=_0x19db2b[_0x111817(0x137)],_0x3de06d=_0x19db2b['id'],_0x4e6bc9=_0x19db2b[_0x111817(0x1cf)],_0x4f1c8=_0x19db2b['extend'],_0xeb7f12=Rt(_0x19db2b,['icon','id',_0x111817(0x1cf),_0x111817(0x278)]),_0x2b4e1c=_0x111817(0x140)[_0x111817(0x33f)](_0x3de06d,'\x20')[_0x111817(0x33f)](_0x4e6bc9||'')[_0x111817(0x32f)](),_0x14c90e=M[_0x111817(0x116)]('_'[_0x111817(0x33f)](Ut()));return ye(_0x37f69d,''[_0x111817(0x33f)](_0x3de06d),{'defIds':_0x37f69d[_0x111817(0x257)],'idSuffix':_0x14c90e[_0x111817(0x258)]},E({'ref':_0x463f79,'className':_0x2b4e1c},_0xeb7f12),_0x4f1c8);});function ye(_0x22be1c,_0x524812,_0x14a93b,_0x504c6a,_0x237e88){const _0x442913=_0x1cc422;return M[_0x442913(0x1db)](_0x22be1c[_0x442913(0x336)],E(E({'key':_0x524812},Ot(_0x22be1c,_0x14a93b,_0x237e88)),_0x504c6a),(Dt(_0x22be1c,_0x14a93b)[_0x442913(0x11d)]||[])[_0x442913(0x2ba)](function(_0x213230,_0x355dff){const _0x51db9a=_0x442913;return ye(_0x213230,''[_0x51db9a(0x33f)](_0x524812,'-')[_0x51db9a(0x33f)](_0x22be1c[_0x51db9a(0x336)],'-')[_0x51db9a(0x33f)](_0x355dff),_0x14a93b,void 0x0,_0x237e88);}));}function Ot(_0x7762bf,_0x15b8fc,_0x13bb66){const _0x411c6b=_0x1cc422;var _0x26f205=E({},_0x7762bf['attrs']);_0x13bb66!=null&&_0x13bb66[_0x411c6b(0x2df)]&&_0x26f205[_0x411c6b(0x12e)]===_0x411c6b(0x2df)&&(_0x26f205[_0x411c6b(0x12e)]=_0x13bb66['colorChannel1']),_0x7762bf[_0x411c6b(0x336)]==='mask'&&_0x26f205['id']&&(_0x26f205['id']=_0x26f205['id']+_0x15b8fc['idSuffix']),Object[_0x411c6b(0x276)](_0x26f205)[_0x411c6b(0x298)](function(_0x422d06){const _0xe147e8=_0x411c6b;var _0x2ef3f1=_0x422d06[0x0],_0x5046ca=_0x422d06[0x1];_0x2ef3f1===_0xe147e8(0x2fd)&&typeof _0x5046ca==_0xe147e8(0x28a)&&(_0x26f205[_0x2ef3f1]=_0x5046ca['replace'](/url\(#(.*)\)/,'url(#$1'[_0xe147e8(0x33f)](_0x15b8fc[_0xe147e8(0x109)],')')));});var _0x461cad=_0x15b8fc[_0x411c6b(0x257)];return!_0x461cad||_0x461cad['length']===0x0||(_0x7762bf[_0x411c6b(0x336)]===_0x411c6b(0x216)&&_0x26f205[_0x411c6b(0x2bb)]&&(_0x26f205[_0x411c6b(0x2bb)]=_0x26f205[_0x411c6b(0x2bb)]+_0x15b8fc[_0x411c6b(0x109)]),Object[_0x411c6b(0x276)](_0x26f205)['forEach'](function(_0x47669d){const _0xe2d105=_0x411c6b;var _0x297740=_0x47669d[0x0],_0x13c119=_0x47669d[0x1];typeof _0x13c119=='string'&&(_0x26f205[_0x297740]=_0x13c119[_0xe2d105(0x2e4)](/url\(#(.*)\)/,_0xe2d105(0x145)[_0xe2d105(0x33f)](_0x15b8fc[_0xe2d105(0x109)],')')));})),_0x26f205;}function Dt(_0x40bc48,_0xeb5808){const _0x4408ec=_0x1cc422;var _0x488c5a,_0x4f610c=_0xeb5808[_0x4408ec(0x257)];return!_0x4f610c||_0x4f610c[_0x4408ec(0x357)]===0x0?_0x40bc48:_0x40bc48[_0x4408ec(0x336)]===_0x4408ec(0x20c)&&(!((_0x488c5a=_0x40bc48[_0x4408ec(0x11d)])===null||_0x488c5a===void 0x0)&&_0x488c5a[_0x4408ec(0x357)])?E(E({},_0x40bc48),{'children':_0x40bc48[_0x4408ec(0x11d)][_0x4408ec(0x2ba)](function(_0x2a8c2a){const _0x1882f9=_0x4408ec;return typeof _0x2a8c2a[_0x1882f9(0xf9)]['id']=='string'&&_0x4f610c&&_0x4f610c[_0x1882f9(0x123)](_0x2a8c2a['attrs']['id'])>-0x1?E(E({},_0x2a8c2a),{'attrs':E(E({},_0x2a8c2a['attrs']),{'id':_0x2a8c2a[_0x1882f9(0xf9)]['id']+_0xeb5808['idSuffix']})}):_0x2a8c2a;})}):_0x40bc48;}function Ut(){const _0x12e49b=_0x1cc422;return Math[_0x12e49b(0x172)]()[_0x12e49b(0x362)](0x24)[_0x12e49b(0x176)](0x2,0x8);}be[_0x1cc422(0x153)]=_0x1cc422(0xed);var Nt={'tag':'svg','attrs':{'fill':_0x1cc422(0x26d),'viewBox':_0x1cc422(0x333),'width':_0x1cc422(0x26f),'height':_0x1cc422(0x26f)},'children':[{'tag':'g','attrs':{'clipPath':_0x1cc422(0x1b2)},'children':[{'tag':_0x1cc422(0x294),'attrs':{'stroke':_0x1cc422(0x35b),'d':_0x1cc422(0x2eb),'strokeLinecap':'round','strokeLinejoin':_0x1cc422(0x1e9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1cc422(0x284),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x1cc422(0x294),'attrs':{'fill':_0x1cc422(0x1cc),'d':_0x1cc422(0x250)}}]}]}],'defIds':[_0x1cc422(0x173)]},$e=M[_0x1cc422(0x158)](function(_0x1294a9,_0x385cb1){const _0x11ecaf=_0x1cc422;return M[_0x11ecaf(0x1db)](be,Object['assign']({},_0x1294a9,{'id':_0x11ecaf(0x332),'ref':_0x385cb1,'icon':Nt}));});function _0x1c04(_0xf911c5,_0x56788c){const _0x2eb0a1=_0x2eb0();return _0x1c04=function(_0x1c0422,_0x3a2545){_0x1c0422=_0x1c0422-0xea;let _0x4c085e=_0x2eb0a1[_0x1c0422];return _0x4c085e;},_0x1c04(_0xf911c5,_0x56788c);}$e[_0x1cc422(0x153)]=_0x1cc422(0x19b);var Mt={'tag':_0x1cc422(0x209),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x1cc422(0x26f),'height':_0x1cc422(0x26f)},'children':[{'tag':'g','attrs':{'clipPath':_0x1cc422(0x1a5)},'children':[{'tag':_0x1cc422(0x294),'attrs':{'stroke':_0x1cc422(0x35b),'d':_0x1cc422(0xeb),'strokeLinecap':_0x1cc422(0x1e9),'strokeLinejoin':_0x1cc422(0x1e9),'strokeWidth':1.2}}]},{'tag':_0x1cc422(0x20c),'attrs':{},'children':[{'tag':_0x1cc422(0x284),'attrs':{'id':_0x1cc422(0x235)},'children':[{'tag':'path','attrs':{'fill':_0x1cc422(0x1cc),'d':_0x1cc422(0x250),'transform':_0x1cc422(0x310)}}]}]}],'defIds':[_0x1cc422(0x235)]},xe=M[_0x1cc422(0x158)](function(_0x31e53e,_0x55d96a){const _0x4b91e5=_0x1cc422;return M[_0x4b91e5(0x1db)](be,Object[_0x4b91e5(0x1ef)]({},_0x31e53e,{'id':_0x4b91e5(0x376),'ref':_0x55d96a,'icon':Mt}));});xe[_0x1cc422(0x153)]=_0x1cc422(0x289);const Pt=_0x1cc422(0x352),wt=_0x1cc422(0x106),Lt=_0x1cc422(0x212),At=_0x1cc422(0x32e),yt=_0x1cc422(0x17e),H={'onlineStatusIcon':Pt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':At,'offline':yt};function $t(_0x3a24a1){const _0x366d58=_0x1cc422;switch(_0x3a24a1){case u[_0x366d58(0x25c)][_0x366d58(0x2e7)]:return _0x366d58(0x2cf);case u[_0x366d58(0x25c)][_0x366d58(0x1ea)]:return _0x366d58(0x32a);case u[_0x366d58(0x25c)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x366d58(0x355)]:return _0x366d58(0x27b);case u[_0x366d58(0x25c)][_0x366d58(0x103)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x366d58(0x25c)][_0x366d58(0x27c)]:case u[_0x366d58(0x25c)][_0x366d58(0x1c7)]:return _0x366d58(0x260);}}function _0x2eb0(){const _0x9c032=['subscribe','CollaborationStatusDisplay','collab-text-anchor-','getSheetBySheetId','M0\x200H16V16H0z','getTypeOfUnitDisposed$','disposeUnit','with','NO_OTHER_CLIENTS_EDITING','getUndoRedoMutationParamsCache','mergeOverrideWithDependencies','defIds','current','CollaborationUIEventId','_beforeCloseService','collaboration-client-ui.config','CollaborationStatus','IConfigService','updateOfflineData','DesktopCollaborationStatusDisplayController','collabStatus.synced','_saveTaskMap','endRow','evenodd','SUBMIT_CHANGESET_TIMEOUT','_assignedColors','_getSessionTicket','syncEditingCollabCursor','setConfig','onPointerMove$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','generateRandomId','call','none','CollaborationUIEventService','1em','UNRECOGNIZED','SetSelectionsOperation','ONLINE','_instanceService','_collaborationUIEventService','transform','entries','offline','extend','SOCKET_FAILED_RETRY','Shape','collabStatus.notCollab','SYNCED','_cachedData','_colorAssignService','ISocketService','_configService','_textBubble','width','_hover','clipPath','JOIN_ROOM_FAILED','_scene','deepClone','HEADER_MENU','OnLineSingle','string','_drawTextRange','_init','RECT','div','column','saveImage','fromEvent','cursorInfo$','rgba(255,\x20255,\x20255,\x200.01)','path','_unitOnClients','_name','_collabCursorController','forEach','Tools','cursorInfo','_saveCache','_roomMembers$','@univerjs/sheets','addEventListener','handleMoveRange','_collabCursorState$','_renderManagerService','COLORS','CHANGESET_REVISION_CONFILICT','apply','DocSelectionManagerService','InsertRangeMoveDownCommandId','MemberService','_scheduleSaving','transformMutationsWithChangeset','all','set','clearInterval','location','transformRemoteChangeset','TEXT','getStateCache','m1Prime','_removeClearOtherTimer','flatMap','BrowserCollaborationSocketService','_entities','LOCAL_CACHE_INTERVAL_KEY','@univerjs/core','sheetId','rxjs','map','xlink:href','rxjs/operators','values','YUUMI_RATE_OVER_LIMIT','loadOfflineData','transformByState','registerRenderModule','function','RxDisposable','unshift','_startDocCollabCursor','...','exhaustSavingTask','hide','collabCursorState$','drawWith','data','getCurrentRevOfUnit','@univerjs/docs-ui','INVITE_CODE_REQUIRED','collabStatus.offline','getTypeOfUnitAdded$','SetWorksheetActivateCommand','onlineStatusIcon','measureText','_updateCollabCursors','setUndoRedoMutationParamsCache','href','onStarting','transformSelections','permission.title','defineProperty','getItem','triggerDblclick','registerBeforeClose','debounce','colorChannel1','wsSessionTicketUrl','RegularPolygon','replaceDocRanges','saveTaskMap','replace','roomMembers','_notificationService','OFFLINE','_registerDependencies','getValue','connectInjector','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','getSheetId','reconnect','redoState','_heartbeatTimer','_transformService','_setupSubUnitSync','_transformPreviousActiveRange','_cursorInfo$','_initStatusListener','OTHER_CLIENT_EDITING','send','prototype','ticket','ColorKit','IRenderManagerService','isArray','UPDATE_CURSOR','mask','origin','push','RevisionService','_sheetSkeletonManagerService','_initEntityListener','Error','_dataLoaderService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','serializeRangeWithSheet','@univerjs/network','getFocusedUnit','_removeCollabCursors','show','react','getVpScrollXYInfoByPosToVp','UNAUTHENTICATED','fromEventSubject','FromArray','translate(.97)','_draw','_memberService','_docSkeletonManagerService','_handleHover','subUnitId','toStringTag','getMergeData','actions','SheetsSelectionsService','DocStateChangeManagerService','Rectangle','LICENSE_IMPORT_SIZE_EXCEEDED','save','_syncEditingCollabCursorService','OTHER_CLIENTS_EDITING','getCurrentSelections','_docStateChangeManagerService','INTERNAL_ERROR','find','addClipboardHook','shareReplay','_range','DependentOn','loadUnit','selections','collabStatus.conflict','doc.mutation.rich-text-editing','_imageIoService','ACTIVE_UNIT_EVENT_CHANNEL','univer-online','trim','propertyIsEnumerable','@univerjs/design','off-line-single','0\x200\x2016\x2016','hovered','DeleteRangeMoveLeftCommandId','tag','beginPath','Unknown\x20user','getUnitStatus$','throttleTime','symbol','INVITE_CODE_HAS_BEEN_UES','_messageService','_cursors','concat','UniverInstanceType','jsx','complete','m2Prime','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_drawAnchor','findNodePositionByCharIndex','NOT_FOUND','_cursor','parse','registerComponent','body','_initDependencies','useObservable','Disposable','onTransformChange$','onCommandExecuted','startsWith','univer-online-status-icon','sessionStatus$','assignAColorForMemberID','NOT_COLLAB','/run/','length','onPointerEnter$','CollaborationEvent','_lastPointer','currentColor','getOffsetConfig','getRenderById','transformStateCache','debug','handleInsertRangeMoveRight','gold400','toString','RemoveRowCommandId','next','filter','entityInit$','LICENSE_EXPORT_SIZE_EXCEEDED','Rect','_handleLeaveEvent','UniverCollaborationClientUIPlugin','registerRefRange','fillStyle','selection','_selfUnitIDs','_initStatusComponent','WebBrowserSingleActiveUnitService','_entityInit$','roomMembers$','SHEET_VIEWPORT_KEY','createIdentifier','permission.content','on-line-single','4424JFYIGH','runRefRangeMutations','fillRule','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','2KUwNEc','UniverIcon','_initCommandExecutedListener','getCollabEntity$','BehaviorSubject','resize','Warning','_disabled','invokeId','toRgbString','_getAnchorBounding','runId','takeUntil','attrs','sheetID','LICENSE_DISTRO_REJECTED','UNIVER_SHEET','from','toDisposable','pushState','startRow','post','_eventUnsubscribe','AWAITING','getCollabCursors$','_docTransformSelectionsService','univer-online-status-title','_hovered','currentSkeleton$','idSuffix','saveOfflineData','INVALID_INVITE_CODE','_updateSubUnitFromURLParams','getRangePointData','_univerInstanceService','merge','purple300','getUnitId','setShapeProps','_commandService','getMember','28989yeFZcf','useRef','InsertColCommandId','_cursorShapes','dispose','SessionStatus','4230198XChtMB','subscribeEvent','children','Optional','YUUMI_SUBSCRIPTION_NOT_FOUND','color','SNAPSHOT_INVALID_SNAPSHOT','getViewport','indexOf','transformMutation','Injector','getCellPositionByOffset','undoState','InsertRangeMoveRightCommandId','dispose$','get','ITransformService','isEditing','_ensureSubject','fill','_onCursorDelete','unsubscribe','transformIMECache','asObservable','params','sessionTicket','CONNECTOR_DATA_TOO_LARGE','getDocRanges','icon','YUUMI_URL_COL_OUT_OF_RANGE','has','_getSaveTimeout','TOO_MANY_REQUESTS','top','USER_NOT_INVITED_CODE','SNAPSHOT_HAS_BEEN_REMOVED','_logService','univerjs-icon\x20univerjs-icon-','_updateLocalCursor','NodePositionConvertToCursor','INVITE_CODE_ALREADY_BOUND','requireSession','url(#$1','3192012czhnaB','_unitStatus','_initEvent','disposeWithMe','@univerjs/engine-formula','DocSkeletonManagerService','engine','bottom','USERS_LEAVE','onRendered','_backgroundColor','setItem','MUTATION','displayName','_injector','collaboration.single-unit.warning','skeleton','_hideTimer','forwardRef','getSkeleton','collab-rect-range-','clearTimeout','getCurrentUnitForType','ENSURE_SNAPSHOT_EXECUTION','deserializeRangeWithSheet','_toggleOffline','_revisionService','mapTo','RefRangeService','_id','subunit','some','_httpService','ThemeService','CollaborationDataLoaderController','_anchorDot','APPLY_DUPLICATED','_handleEvent','font','1345238InkLSJ','labelPosition','Subject','useDependency','getParam','random','off-line-single_clip0_910_343','session.will-retry','_scheduleClearOtherTimer','substring','_setupBeforeClosingHandler','onlineStatusTitle','_toggleOnline','imageSourceType','LocaleService','@univerjs/drawing','15301650hEAjSK','univer-offline','_getScale','hasOwnProperty','Vector2','clsx','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','replaceState','backgroundColor','range','size','code','_getSheetObject','popstate','_collaborationController','unit','LICENSE_MAX_UNITS_EXCEEDED','_online','_urlService','INotificationService','ILogService','getCoordByCell','UNIVER_DOC','textRanges','IUniverInstanceService','_doCreateSocket','UnitStatus','event$','removeParam','_createSocketURL','OffLineSingle','DEFAULT_WS_SESSION_TICKET_URL','whenReady','black','override','addObjects','isTransformMutationsWithChangesetSuccess','enableLocalCache','getConfig','_updateURLWithCurrentState','url(#on-line-single_clip0_910_349)','_color','endColumn','_localeService','IRemoteInstanceService','addObject','mutations','_labelPosition','HTTPService','_collabSessionService','add','closePath','APPLY_NON_SEQUENTIAL_REVISION','url(#off-line-single_clip0_910_343)','_clearOtherTimers','searchParams','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','memberID','_localCacheService','executeCommand','VIEW_MAIN','handleIRemoveRow','_document','editingUnit','DocIMEInputManagerService','COMPLETION_FINISHED','[CollaborationDataLoaderController]','error','_docSkeleton','_docTransformIMECacheService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ICommandService','stringify','onLocalMutation','PENDING','_refreshCollabCursors','Plugin','TEXT_RANGE_LAYER_INDEX','getCurrent','#fff','_getMergeRange','disableLocalCache','className','ALREADY_EXISTS','jiqing500','eventID','LOCAL_CACHE_INTERVAL','_anchor','getMemberID','history','combineLatest','_drawRectRange','_context','RemoveColCommandId','createElement','useCallback','_render','setParam','isActive','_startSheetCollabCursor','YUUMI_UNABLE_LOAD_URL','verdancy600','CollaborationSocketService','PERMISSION_DENIED','max','red300','INVALID_ARGUMENT','DocCollaborationEntity','round','CONFLICT','currentTheme$','type','getAncestorScale','getOwnPropertySymbols','assign','pipe','UNDEFINED','_localStorageService','_uiPartsService','Inject','unload','ISnapshotServerService','onMouseMove','isTransformMutationFailure','LOGIN_FAILED','setActiveRange','name','getOwnPropertyDescriptor','_refRangeService','InsertRowCommandId','RemoteUniscriptService','516196DpXJHo','setTimeout','getActiveRange','onPointerLeave$','PY_RUNTIME_SCRIPT_ERROR','fillText','_session','focused$','CollaborationSessionService','svg','handleInsertRow','[RemoteUniscriptService]:\x20no\x20focused\x20unit','defs','_docSyncEditingCollabCursorService','_docTransformStateCacheService','8077458KbLxVt','text','Failed','univer-online-status','_registerRenderDependencies','createInstance','unitID','use','switchMap','#FFF','handleIRemoveCol','collab-client.tooltip.reconnect','MessageType','handleInsertCol','EffectRefRangId','IImageIoService','APPLY_PERMISSION_DENIED','_colorIndex','urlChange$','_docClipboardService','DOC_RANGE_TYPE','online','Module','collaboration.closeRoom','APPLY_REVISION_CONFILICT','Tooltip','handleDeleteRangeMoveLeft','moveTo','_shapes','@univerjs/docs','setAlpha','_transformUndoRedoStack','_scheduleHeartbeat','collaboration-client.offline-data-not-saved','_send','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','5IVDFff','lineTo','on-line-single_clip0_910_349','_themeService','min','_transformHistoryAndStateStack','getColor','_onRefRangeChange','_config','_onCursorUpdate','Workbook','delete','restore','then','WebSocketService','_status$','unitId','makeDirty','@univerjs/sheets-ui','@univerjs/ui','UniverCollaborationClientPlugin','ranges','TRANSFORM_CHANGE_OBSERVABLE_TYPE','CollaborationController','@univerjs-pro/collaboration-client'];_0x2eb0=function(){return _0x9c032;};return _0x2eb0();}function je(_0x2fc866){const _0x2faa0e=_0x1cc422,{status$:_0x405e61}=_0x2fc866,_0x596d63=R[_0x2faa0e(0x34d)](_0x405e61,u['CollaborationStatus'][_0x2faa0e(0x355)]),_0x3559aa=R[_0x2faa0e(0x170)](a[_0x2faa0e(0x17b)]),_0x34cb93=R['useDependency'](u[_0x2faa0e(0x208)]),_0x1e8332=_0x596d63!==u[_0x2faa0e(0x25c)][_0x2faa0e(0x2e7)],_0x390773=_0x3559aa['t']($t(_0x596d63)),_0x26a82f=T[_0x2faa0e(0x182)](H['onlineStatus'],{[H[_0x2faa0e(0x224)]]:_0x1e8332,[H[_0x2faa0e(0x277)]]:!_0x1e8332}),_0x18e8bc=_0x1e8332?w[_0x2faa0e(0x341)](xe,{}):w[_0x2faa0e(0x341)]($e,{}),_0x3e9039=M[_0x2faa0e(0x1dc)](()=>{const _0x443e58=_0x2faa0e;_0x1e8332||_0x34cb93[_0x443e58(0x2ed)]();},[_0x1e8332,_0x34cb93]);function _0x14a5d3(){const _0x235cb9=_0x2faa0e;return w['jsxs']('div',{'className':T['clsx'](_0x26a82f,'univer-flex\x20univer-items-center'),'onClick':_0x3e9039,'children':[w[_0x235cb9(0x341)](_0x235cb9(0x28e),{'className':H[_0x235cb9(0x2d2)],'children':_0x18e8bc}),w['jsx'](_0x235cb9(0x28e),{'className':H[_0x235cb9(0x178)],'children':_0x390773})]});}return _0x1e8332?_0x14a5d3():w[_0x2faa0e(0x341)](T[_0x2faa0e(0x228)],{'title':_0x3559aa['t'](_0x2faa0e(0x21a)),'children':_0x14a5d3()});}var xt=Object[_0x1cc422(0x1fc)],jt=(_0x57f8cf,_0x260027,_0x3f7bf0,_0x3b65c9)=>{const _0x263426=_0x1cc422;for(var _0x127ebb=_0x3b65c9>0x1?void 0x0:_0x3b65c9?xt(_0x260027,_0x3f7bf0):_0x260027,_0x3020f7=_0x57f8cf[_0x263426(0x357)]-0x1,_0x254b8b;_0x3020f7>=0x0;_0x3020f7--)(_0x254b8b=_0x57f8cf[_0x3020f7])&&(_0x127ebb=_0x254b8b(_0x127ebb)||_0x127ebb);return _0x127ebb;},X=(_0x24c2c1,_0x4bfc25)=>(_0x487077,_0x1d9edc)=>_0x4bfc25(_0x487077,_0x1d9edc,_0x24c2c1);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x3839b6,_0x430f85,_0x3385eb,_0xffe012){const _0x4c6664=_0x1cc422;super(),h(this,_0x4c6664(0x242),new d['BehaviorSubject'](u[_0x4c6664(0x25c)][_0x4c6664(0x355)])),(this[_0x4c6664(0x10e)]=_0x3839b6,this['_injector']=_0x430f85,this['_collaborationController']=_0x3385eb,this[_0x4c6664(0x1f3)]=_0xffe012,this[_0x4c6664(0x36f)](),this[_0x4c6664(0x2f4)]());}[_0x1cc422(0x2f4)](){const _0x514897=_0x1cc422;this['disposeWithMe'](this[_0x514897(0x10e)][_0x514897(0x207)][_0x514897(0x1f0)](d['switchMap'](()=>{const _0x3b4d7d=_0x514897,_0x2fd873=this[_0x3b4d7d(0x10e)][_0x3b4d7d(0x308)]();return _0x2fd873?this[_0x3b4d7d(0x18b)][_0x3b4d7d(0xef)](_0x2fd873[_0x3b4d7d(0x111)]()):d['of'](null);}),d['switchMap'](_0x322fe2=>_0x322fe2?_0x322fe2['status$']:d['of'](u[_0x514897(0x25c)][_0x514897(0x355)])))[_0x514897(0x24c)](_0x237337=>{const _0x1c0123=_0x514897;this[_0x1c0123(0x242)]['next'](_0x237337);}));}[_0x1cc422(0x36f)](){const _0x12a6ee=_0x1cc422;this[_0x12a6ee(0x149)](this[_0x12a6ee(0x1f3)][_0x12a6ee(0x34a)](R['BuiltInUIPart'][_0x12a6ee(0x288)],()=>R[_0x12a6ee(0x2ea)](kt({'status$':this[_0x12a6ee(0x242)][_0x12a6ee(0x132)]()}),this[_0x12a6ee(0x154)])));}},exports[_0x1cc422(0x25f)]=jt([X(0x0,a[_0x1cc422(0x195)]),X(0x1,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),X(0x2,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x24a)])),X(0x3,R['IUIPartsService'])],exports[_0x1cc422(0x25f)]);function kt(_0x44440a){const {status$:_0x5c9f98}=_0x44440a;return function(){const _0x3d243f=_0x1c04;return w[_0x3d243f(0x341)](je,{'status$':_0x5c9f98});};}var Bt=Object[_0x1cc422(0x1fc)],Ht=(_0x1da175,_0x3962f3,_0x408cfc,_0x4930b9)=>{for(var _0x1ec17f=_0x4930b9>0x1?void 0x0:_0x4930b9?Bt(_0x3962f3,_0x408cfc):_0x3962f3,_0x352d95=_0x1da175['length']-0x1,_0xcc4c01;_0x352d95>=0x0;_0x352d95--)(_0xcc4c01=_0x1da175[_0x352d95])&&(_0x1ec17f=_0xcc4c01(_0x1ec17f)||_0x1ec17f);return _0x1ec17f;},y=(_0x38ad43,_0x409bcc)=>(_0x4541e0,_0x1a9e4b)=>_0x409bcc(_0x4541e0,_0x1a9e4b,_0x38ad43);let z=class extends a[_0x1cc422(0x34e)]{constructor(_0x5899ca,_0x433cc5,_0x252456,_0x2ec98e,_0x19067a,_0x40e595){const _0x25d52c=_0x1cc422;super(),this[_0x25d52c(0x25a)]=_0x5899ca,this[_0x25d52c(0x1b7)]=_0x433cc5,this['_collaborationUIEventService']=_0x252456,this[_0x25d52c(0x33d)]=_0x2ec98e,this['_notificationService']=_0x19067a,this[_0x25d52c(0x1a8)]=_0x40e595,this[_0x25d52c(0x177)](),this[_0x25d52c(0x148)]();}[_0x1cc422(0x177)](){const _0x345d47=_0x1cc422;this[_0x345d47(0x149)](this[_0x345d47(0x25a)][_0x345d47(0x2dd)](()=>{const _0x5b242f=_0x345d47;if(this['_localCacheService'][_0x5b242f(0x2e3)][_0x5b242f(0x187)])return this[_0x5b242f(0x1a8)]['t'](_0x5b242f(0x230));}));}['_initEvent'](){const _0x112e55=_0x1cc422;this[_0x112e55(0x149)](this[_0x112e55(0x274)][_0x112e55(0x198)][_0x112e55(0x24c)](_0x1af92f=>{const _0x20c601=_0x112e55;_0x1af92f['id']===u[_0x20c601(0x259)][_0x20c601(0x2f5)]&&this['_messageService'][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0xf2)],'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x155))}),_0x1af92f['id']===u[_0x20c601(0x259)]['CLOSE_ROOM']&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0xf2)],'content':this[_0x20c601(0x1a8)]['t']('collaboration.closeRoom')}),_0x1af92f['id']===u[_0x20c601(0x259)][_0x20c601(0x1e4)]&&this[_0x20c601(0x2e6)][_0x20c601(0x30a)]({'title':this['_localeService']['t'](_0x20c601(0x2d9)),'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x375)),'type':_0x20c601(0x1c0),'duration':0x0}),_0x1af92f['id']===u['CollaborationUIEventId'][_0x20c601(0x1ea)]&&this[_0x20c601(0x33d)]['show']({'type':T[_0x20c601(0x21b)][_0x20c601(0x303)],'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x226))+'('+_0x1af92f[_0x20c601(0x2cb)]+')'}),_0x1af92f['id']===u['CollaborationUIEventId'][_0x20c601(0x285)]&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)]['Warning'],'content':this[_0x20c601(0x1a8)]['t'](_0x1af92f[_0x20c601(0x2cb)]||'')}),_0x1af92f['id']===u[_0x20c601(0x259)][_0x20c601(0x279)]&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)]['Warning'],'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x174))}),_0x1af92f['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0x303)],'content':this[_0x20c601(0x1a8)]['t']('session.connection-failed')}),_0x1af92f['id']===u['CollaborationUIEventId'][_0x20c601(0x264)]&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0x303)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};z=Ht([y(0x0,R['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x1cc422(0x26e)])),y(0x3,R['IMessageService']),y(0x4,R[_0x1cc422(0x190)]),y(0x5,a[_0x1cc422(0x1f4)](a['LocaleService']))],z);const Ft=_0x1cc422(0x25b),Ne={},Ee=a[_0x1cc422(0x374)]('uni.network.url-service');var Wt=Object['getOwnPropertyDescriptor'],Yt=(_0x3767cc,_0x23b2f5,_0x284ac7,_0x106e8f)=>{const _0x114dcc=_0x1cc422;for(var _0x57bc73=_0x106e8f>0x1?void 0x0:_0x106e8f?Wt(_0x23b2f5,_0x284ac7):_0x23b2f5,_0x2ecfc7=_0x3767cc[_0x114dcc(0x357)]-0x1,_0x4559e9;_0x2ecfc7>=0x0;_0x2ecfc7--)(_0x4559e9=_0x3767cc[_0x2ecfc7])&&(_0x57bc73=_0x4559e9(_0x57bc73)||_0x57bc73);return _0x57bc73;},F=(_0x452a08,_0x4d714b)=>(_0x6e89d7,_0x5c32ff)=>_0x4d714b(_0x6e89d7,_0x5c32ff,_0x452a08);exports[_0x1cc422(0x168)]=class extends a['RxDisposable']{constructor(_0x4ebb38,_0x4c2011,_0x792519,_0x1d4bf9,_0x38ea0d){const _0x20d6fb=_0x1cc422;super(),this[_0x20d6fb(0x18f)]=_0x4ebb38,this[_0x20d6fb(0x13f)]=_0x4c2011,this[_0x20d6fb(0x113)]=_0x792519,this[_0x20d6fb(0x304)]=_0x1d4bf9,_0x38ea0d?_0x38ea0d==null||_0x38ea0d[_0x20d6fb(0x19d)]()[_0x20d6fb(0x240)](()=>this[_0x20d6fb(0x28c)]()):(this[_0x20d6fb(0x13f)][_0x20d6fb(0x35f)](_0x20d6fb(0x1bf),_0x20d6fb(0x232)),this[_0x20d6fb(0x28c)]());}async[_0x1cc422(0x28c)](){const _0xae1dd5=_0x1cc422,_0xd7faf4=this[_0xae1dd5(0x18f)][_0xae1dd5(0x171)](_0xae1dd5(0x18c)),_0x5f1ff8=this[_0xae1dd5(0x18f)][_0xae1dd5(0x171)](_0xae1dd5(0x1ec)),_0x526303=this[_0xae1dd5(0x18f)][_0xae1dd5(0x171)](_0xae1dd5(0x164));if(!_0xd7faf4||!_0x5f1ff8){this[_0xae1dd5(0x13f)][_0xae1dd5(0x35f)](_0xae1dd5(0x1bf),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x37a5d4=await this[_0xae1dd5(0x304)][_0xae1dd5(0x328)](_0xd7faf4,Number(_0x5f1ff8),_0x526303);_0x37a5d4&&_0x37a5d4 instanceof a[_0xae1dd5(0x23d)]&&this[_0xae1dd5(0x2f1)](_0x37a5d4);}async['_setupSubUnitSync'](_0x2314f5){const _0x2bdfbd=_0x1cc422;await this[_0x2bdfbd(0x10c)](_0x2314f5),_0x2314f5['activeSheet$'][_0x2bdfbd(0x1f0)](d['takeUntil'](this[_0x2bdfbd(0x129)]))[_0x2bdfbd(0x24c)](_0x18286a=>{const _0x37a1fb=_0x2bdfbd;_0x18286a&&this[_0x37a1fb(0x1a4)](_0x18286a);}),this[_0x2bdfbd(0x18f)][_0x2bdfbd(0x221)][_0x2bdfbd(0x1f0)](d[_0x2bdfbd(0xf8)](this[_0x2bdfbd(0x129)]))['subscribe'](()=>this[_0x2bdfbd(0x10c)](_0x2314f5));}[_0x1cc422(0x1a4)](_0x4ffe85,_0x5e1926=!0x1){const _0x3d2037=_0x1cc422,_0x3da421=this['_urlService']['getParam'](_0x3d2037(0x164));_0x4ffe85[_0x3d2037(0x2ec)]()!==_0x3da421&&this[_0x3d2037(0x18f)][_0x3d2037(0x1de)](_0x3d2037(0x164),_0x4ffe85[_0x3d2037(0x2ec)](),_0x5e1926);}async[_0x1cc422(0x10c)](_0x1320ed){const _0x434aad=_0x1cc422;var _0x4240e9;const _0x56b434=this[_0x434aad(0x18f)][_0x434aad(0x171)](_0x434aad(0x164));if(!_0x56b434||!_0x1320ed[_0x434aad(0x24f)](_0x56b434)){const _0x7c528c=_0x1320ed['getUnhiddenWorksheets']()[0x0],_0x46b6df=_0x1320ed[_0x434aad(0x24f)](_0x7c528c);if(!_0x46b6df)return;this['_updateURLWithCurrentState'](_0x46b6df,!0x0),await this[_0x434aad(0x113)][_0x434aad(0x1b8)](g[_0x434aad(0x2d1)]['id'],{'unitId':_0x1320ed[_0x434aad(0x111)](),'subUnitId':_0x7c528c});return;}((_0x4240e9=_0x1320ed['getActiveSheet']())==null?void 0x0:_0x4240e9[_0x434aad(0x2ec)]())!==_0x56b434&&await this[_0x434aad(0x113)][_0x434aad(0x1b8)](g[_0x434aad(0x2d1)]['id'],{'unitId':_0x1320ed[_0x434aad(0x111)](),'subUnitId':_0x56b434});}},exports[_0x1cc422(0x168)]=Yt([F(0x0,Ee),F(0x1,a[_0x1cc422(0x191)]),F(0x2,a[_0x1cc422(0x1c4)]),F(0x3,a[_0x1cc422(0x1f4)](u['DataLoaderService'])),F(0x4,a[_0x1cc422(0x11e)](Ke[_0x1cc422(0x1a9)]))],exports[_0x1cc422(0x168)]);var Vt=Object[_0x1cc422(0x1fc)],Xt=(_0x5f213b,_0x1e28e0,_0x17bab8,_0x331952)=>{const _0x356f18=_0x1cc422;for(var _0x48a7da=_0x331952>0x1?void 0x0:_0x331952?Vt(_0x1e28e0,_0x17bab8):_0x1e28e0,_0x16dfd1=_0x5f213b[_0x356f18(0x357)]-0x1,_0x32f60d;_0x16dfd1>=0x0;_0x16dfd1--)(_0x32f60d=_0x5f213b[_0x16dfd1])&&(_0x48a7da=_0x32f60d(_0x48a7da)||_0x48a7da);return _0x48a7da;},le=(_0x2262da,_0x480588)=>(_0x5125f1,_0x30fced)=>_0x480588(_0x5125f1,_0x30fced,_0x2262da);let J=class{constructor(_0x3926eb,_0x12751d,_0x86f809){const _0x3278b3=_0x1cc422;this[_0x3278b3(0x154)]=_0x3926eb,this['_transformService']=_0x12751d,this[_0x3278b3(0x2a1)]=_0x86f809;}[_0x1cc422(0x131)](_0x4b76f3){const _0x50994c=_0x1cc422;this[_0x50994c(0x22e)](_0x4b76f3),this[_0x50994c(0x2f2)](_0x4b76f3);}[_0x1cc422(0x2ae)](_0x414a5c){const _0x144e8c=_0x1cc422,{unitID:_0xf9170b}=_0x414a5c,_0x33fc78=this['_renderManagerService'][_0x144e8c(0x35d)](_0xf9170b)[_0x144e8c(0x253)](b[_0x144e8c(0x1bd)]),{redoCache:_0x3765c6}=_0x33fc78[_0x144e8c(0x255)]();if(_0x3765c6[_0x144e8c(0x357)]===0x0)return _0x414a5c;let _0x407b0d=a['Tools'][_0x144e8c(0x287)](_0x414a5c['mutations'][0x0]);for(let _0x4b4059=0x0;_0x4b4059<_0x3765c6[_0x144e8c(0x357)];_0x4b4059++){const _0x2d8236={'id':_0x144e8c(0x32b),'params':{..._0x3765c6[_0x4b4059]}},_0x5eb4b9=this['_transformService']['transformMutation'](_0x407b0d,_0x2d8236,!0x1);if(m[_0x144e8c(0x1f8)](_0x5eb4b9))throw _0x5eb4b9[_0x144e8c(0x1c0)];_0x407b0d=_0x5eb4b9[_0x144e8c(0x2b1)];}return{...a[_0x144e8c(0x299)][_0x144e8c(0x287)](_0x414a5c),'mutations':[_0x407b0d]};}[_0x1cc422(0x22e)](_0x48e595){const _0x2b3f8b=_0x1cc422,{unitID:_0x412f5f}=_0x48e595,_0x406a20=this[_0x2b3f8b(0x2a1)][_0x2b3f8b(0x35d)](_0x412f5f)[_0x2b3f8b(0x253)](b[_0x2b3f8b(0x1bd)]),{undoCache:_0x4d8c59,redoCache:_0x4d7caf}=_0x406a20[_0x2b3f8b(0x255)]();if(_0x4d8c59[_0x2b3f8b(0x357)]===0x0||_0x4d7caf[_0x2b3f8b(0x357)]===0x0)return;const _0x400da4=[],_0x19f71f=[];let _0x5ec1bc=a[_0x2b3f8b(0x299)][_0x2b3f8b(0x287)](_0x48e595[_0x2b3f8b(0x1ab)][0x0]),_0x399480=a[_0x2b3f8b(0x299)][_0x2b3f8b(0x287)](_0x48e595[_0x2b3f8b(0x1ab)][0x0]);for(let _0x369544=_0x4d8c59['length']-0x1;_0x369544>=0x0;_0x369544--){const _0x2c0343={'id':_0x2b3f8b(0x32b),'params':{..._0x4d8c59[_0x369544]}},_0x216a67={'id':_0x2b3f8b(0x32b),'params':{..._0x4d7caf[_0x369544]}},_0x3de154=this['_transformService'][_0x2b3f8b(0x124)](_0x5ec1bc,_0x2c0343,!0x1),_0x58edcd=this['_transformService']['transformMutation'](_0x399480,_0x216a67,!0x1);if(m[_0x2b3f8b(0x1f8)](_0x3de154))throw _0x3de154[_0x2b3f8b(0x1c0)];if(m[_0x2b3f8b(0x1f8)](_0x58edcd))throw _0x58edcd[_0x2b3f8b(0x1c0)];_0x400da4[_0x2b3f8b(0x2c4)](_0x3de154[_0x2b3f8b(0x343)][_0x2b3f8b(0x133)]),_0x19f71f['unshift'](_0x58edcd[_0x2b3f8b(0x343)]['params']),_0x5ec1bc=_0x3de154[_0x2b3f8b(0x2b1)],_0x399480=_0x58edcd['m1Prime'];}_0x406a20[_0x2b3f8b(0x2d5)]({'undoCache':_0x400da4,'redoCache':_0x19f71f});}[_0x1cc422(0x2f2)](_0x18f911){const _0x5a6b3b=_0x1cc422,{unitID:_0x3ce2e3}=_0x18f911,_0x30fa58=this[_0x5a6b3b(0x2a1)][_0x5a6b3b(0x35d)](_0x3ce2e3)[_0x5a6b3b(0x253)](b[_0x5a6b3b(0x1bd)]),_0x351891=_0x30fa58[_0x5a6b3b(0x202)]();if(_0x351891==null)return;const _0x490dfd=[{'id':_0x5a6b3b(0x32b),'params':{'unitId':_0x18f911[_0x5a6b3b(0x215)],'actions':null,'textRanges':[_0x351891]}}],_0x4933d4=this[_0x5a6b3b(0x2f0)][_0x5a6b3b(0x2a9)](_0x18f911,_0x490dfd);if(!m[_0x5a6b3b(0x1a1)](_0x4933d4))throw _0x4933d4[_0x5a6b3b(0x1c0)];const _0x1ba44d=_0x4933d4[_0x5a6b3b(0x343)][0x0]['params'][_0x5a6b3b(0x194)];Array[_0x5a6b3b(0x2fb)](_0x1ba44d)&&_0x1ba44d[_0x5a6b3b(0x357)]&&_0x30fa58[_0x5a6b3b(0x1fa)](_0x1ba44d[0x0]);}};J=Xt([le(0x0,a[_0x1cc422(0x1f4)](a['Injector'])),le(0x1,m[_0x1cc422(0x12b)]),le(0x2,p[_0x1cc422(0x2fa)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x2fc5f9,_0x19ffb,_0x5fc439,_0x4585de)=>{for(var _0x3656db=_0x4585de>0x1?void 0x0:_0x4585de?Gt(_0x19ffb,_0x5fc439):_0x19ffb,_0x58b2e7=_0x2fc5f9['length']-0x1,_0x52d36c;_0x58b2e7>=0x0;_0x58b2e7--)(_0x52d36c=_0x2fc5f9[_0x58b2e7])&&(_0x3656db=_0x52d36c(_0x3656db)||_0x3656db);return _0x3656db;},he=(_0x3c1ead,_0x4fa3fc)=>(_0x444a05,_0x4fa1ff)=>_0x4fa3fc(_0x444a05,_0x4fa1ff,_0x3c1ead);let Z=class{constructor(_0x15d898,_0x3f077a,_0x25d969){const _0x2df5c9=_0x1cc422;this[_0x2df5c9(0x154)]=_0x15d898,this[_0x2df5c9(0x2f0)]=_0x3f077a,this[_0x2df5c9(0x321)]=_0x25d969;}[_0x1cc422(0x35e)](_0x1931b0){const _0x2481aa=_0x1cc422;this[_0x2481aa(0x238)](_0x1931b0);}['transformRemoteChangeset'](_0x1be17b){const _0x29a6d7=_0x1cc422,{unitID:_0x463777}=_0x1be17b,{collaboration:_0x306655}=this[_0x29a6d7(0x321)][_0x29a6d7(0x2b0)](_0x463777);if(_0x306655[_0x29a6d7(0x357)]===0x0)return _0x1be17b;let _0x519f9d=a[_0x29a6d7(0x299)][_0x29a6d7(0x287)](_0x1be17b['mutations'][0x0]);for(let _0xe95bb6=0x0;_0xe95bb6<_0x306655['length'];_0xe95bb6++){const _0x58cc75={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x306655[_0xe95bb6][_0x29a6d7(0x243)],..._0x306655[_0xe95bb6]['redoState']}},_0x1f9b33=this[_0x29a6d7(0x2f0)]['transformMutation'](_0x519f9d,_0x58cc75,!0x1);if(m[_0x29a6d7(0x1f8)](_0x1f9b33))throw _0x1f9b33['error'];_0x519f9d=_0x1f9b33['m1Prime'];}return{...a[_0x29a6d7(0x299)][_0x29a6d7(0x287)](_0x1be17b),'mutations':[_0x519f9d]};}[_0x1cc422(0x238)](_0x1b10ac){const _0xc60b0b=_0x1cc422,{unitID:_0x5703f0}=_0x1b10ac,{history:_0x54b8a6,collaboration:_0x49c531}=this[_0xc60b0b(0x321)][_0xc60b0b(0x2b0)](_0x5703f0);if(_0x54b8a6[_0xc60b0b(0x357)]===0x0&&_0x49c531['length']===0x0)return;const _0x3acbcd=[],_0x105414=[];let _0x16a92=a[_0xc60b0b(0x299)][_0xc60b0b(0x287)](_0x1b10ac['mutations'][0x0]),_0x221614=a['Tools'][_0xc60b0b(0x287)](_0x1b10ac['mutations'][0x0]);for(let _0x384828=_0x54b8a6[_0xc60b0b(0x357)]-0x1;_0x384828>=0x0;_0x384828--){const _0x9528cd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x54b8a6[_0x384828][_0xc60b0b(0x243)],..._0x54b8a6[_0x384828][_0xc60b0b(0x127)]}},_0x774158={'id':_0xc60b0b(0x32b),'params':{'unitId':_0x54b8a6[_0x384828][_0xc60b0b(0x243)],..._0x54b8a6[_0x384828]['redoState']}},_0x45eff5=this[_0xc60b0b(0x2f0)][_0xc60b0b(0x124)](_0x16a92,_0x9528cd,!0x1),_0x18ff61=this[_0xc60b0b(0x2f0)][_0xc60b0b(0x124)](_0x221614,_0x774158,!0x1);if(m['isTransformMutationFailure'](_0x45eff5))throw _0x45eff5[_0xc60b0b(0x1c0)];if(m['isTransformMutationFailure'](_0x18ff61))throw _0x18ff61['error'];_0x3acbcd[_0xc60b0b(0x2c4)]({..._0x54b8a6[_0x384828],'undoState':_0x45eff5[_0xc60b0b(0x343)][_0xc60b0b(0x133)],'redoState':_0x18ff61['m2Prime'][_0xc60b0b(0x133)]}),_0x16a92=_0x45eff5[_0xc60b0b(0x2b1)],_0x221614=_0x18ff61[_0xc60b0b(0x2b1)];}_0x16a92=a[_0xc60b0b(0x299)]['deepClone'](_0x1b10ac[_0xc60b0b(0x1ab)][0x0]),_0x221614=a[_0xc60b0b(0x299)]['deepClone'](_0x1b10ac[_0xc60b0b(0x1ab)][0x0]);for(let _0x1a1b83=_0x49c531['length']-0x1;_0x1a1b83>=0x0;_0x1a1b83--){const _0x4f0d88={'id':_0xc60b0b(0x32b),'params':{'unitId':_0x49c531[_0x1a1b83][_0xc60b0b(0x243)],..._0x49c531[_0x1a1b83][_0xc60b0b(0x127)]}},_0xe3574a={'id':_0xc60b0b(0x32b),'params':{'unitId':_0x49c531[_0x1a1b83]['unitId'],..._0x49c531[_0x1a1b83][_0xc60b0b(0x2ee)]}},_0x14da24=this[_0xc60b0b(0x2f0)]['transformMutation'](_0x16a92,_0x4f0d88,!0x1),_0x45407b=this[_0xc60b0b(0x2f0)][_0xc60b0b(0x124)](_0x221614,_0xe3574a,!0x1);if(m[_0xc60b0b(0x1f8)](_0x14da24))throw _0x14da24['error'];if(m[_0xc60b0b(0x1f8)](_0x45407b))throw _0x45407b['error'];_0x105414[_0xc60b0b(0x2c4)]({..._0x49c531[_0x1a1b83],'undoState':_0x14da24[_0xc60b0b(0x343)]['params'],'redoState':_0x45407b[_0xc60b0b(0x343)][_0xc60b0b(0x133)]}),_0x16a92=_0x14da24[_0xc60b0b(0x2b1)],_0x221614=_0x45407b['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x5703f0,{'history':_0x3acbcd,'collaboration':_0x105414});}};Z=qt([he(0x0,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),he(0x1,m[_0x1cc422(0x12b)]),he(0x2,a[_0x1cc422(0x1f4)](b[_0x1cc422(0x31a)]))],Z);var Kt=Object[_0x1cc422(0x1fc)],zt=(_0x40423a,_0x324126,_0x3e8b5b,_0x3798cc)=>{const _0x3f976d=_0x1cc422;for(var _0x1fe51c=_0x3798cc>0x1?void 0x0:_0x3798cc?Kt(_0x324126,_0x3e8b5b):_0x324126,_0x4fd738=_0x40423a[_0x3f976d(0x357)]-0x1,_0x57a0b8;_0x4fd738>=0x0;_0x4fd738--)(_0x57a0b8=_0x40423a[_0x4fd738])&&(_0x1fe51c=_0x57a0b8(_0x1fe51c)||_0x1fe51c);return _0x1fe51c;},Me=(_0x30be56,_0xfc0d5c)=>(_0x2cc41b,_0x48681b)=>_0xfc0d5c(_0x2cc41b,_0x48681b,_0x30be56);let Q=class{constructor(_0x57943f,_0x36614b){const _0x5564eb=_0x1cc422;this[_0x5564eb(0x154)]=_0x57943f,this['_transformService']=_0x36614b;}[_0x1cc422(0x2d8)](_0x3a9c1a){const _0x2de946=_0x1cc422;var _0x2abdf7;const _0x13803b=this['_injector'][_0x2de946(0x12a)](Y[_0x2de946(0x2a5)]),_0x597f4d=(_0x2abdf7=_0x13803b[_0x2de946(0x136)]())!=null?_0x2abdf7:[];if(_0x597f4d[_0x2de946(0x357)]===0x0)return;const _0x2891be=_0x3a9c1a['unitID'],_0x462e4f=[{'id':_0x2de946(0x32b),'params':{'unitId':_0x2891be,'actions':null,'textRanges':_0x597f4d}}],_0x2e81fb=this[_0x2de946(0x2f0)][_0x2de946(0x2a9)](_0x3a9c1a,_0x462e4f);if(!m[_0x2de946(0x1a1)](_0x2e81fb))throw _0x2e81fb[_0x2de946(0x1c0)];const _0xd87eef=_0x2e81fb[_0x2de946(0x343)][0x0]['params'][_0x2de946(0x194)];Array[_0x2de946(0x2fb)](_0xd87eef)&&_0xd87eef['length']&&_0x13803b[_0x2de946(0x2e2)](_0xd87eef,{'unitId':_0x2891be,'subUnitId':_0x2891be},!0x1);}};Q=zt([Me(0x0,a[_0x1cc422(0x1f4)](a['Injector'])),Me(0x1,m[_0x1cc422(0x12b)])],Q);var Jt=Object[_0x1cc422(0x1fc)],Zt=(_0x5c771c,_0x4d3cfb,_0x9f5cd4,_0x2a78ec)=>{for(var _0xbda011=_0x2a78ec>0x1?void 0x0:_0x2a78ec?Jt(_0x4d3cfb,_0x9f5cd4):_0x4d3cfb,_0x1dfe28=_0x5c771c['length']-0x1,_0x1b8cf5;_0x1dfe28>=0x0;_0x1dfe28--)(_0x1b8cf5=_0x5c771c[_0x1dfe28])&&(_0xbda011=_0x1b8cf5(_0xbda011)||_0xbda011);return _0xbda011;},N=(_0x1441c3,_0x4dcc5f)=>(_0x19a442,_0x4af443)=>_0x4dcc5f(_0x19a442,_0x4af443,_0x1441c3);let ee=class extends a['Disposable']{constructor(_0x87e8d8,_0x41b979,_0x39fe8e,_0x34b7a0,_0x5aeeb6,_0x27e460,_0x1342fe,_0x5cce22){const _0x3f29c8=_0x1cc422;super(),h(this,'_status$',new d[(_0x3f29c8(0xf0))](u[_0x3f29c8(0x25c)][_0x3f29c8(0x355)])),(this[_0x3f29c8(0x321)]=_0x87e8d8,this[_0x3f29c8(0x18b)]=_0x41b979,this[_0x3f29c8(0x1c2)]=_0x39fe8e,this[_0x3f29c8(0x20e)]=_0x34b7a0,this[_0x3f29c8(0x105)]=_0x5aeeb6,this[_0x3f29c8(0x20d)]=_0x27e460,this[_0x3f29c8(0x33d)]=_0x1342fe,this[_0x3f29c8(0x1a8)]=_0x5cce22,this['_initEntityListener']());}[_0x1cc422(0x302)](){const _0x22b903=_0x1cc422;this[_0x22b903(0x149)](this[_0x22b903(0x18b)][_0x22b903(0x366)][_0x22b903(0x24c)](_0x4366e6=>{const _0x2ef849=_0x22b903,_0x5b3670=this['_docStateChangeManagerService']['docStateChange$'][_0x2ef849(0x24c)](_0x5cbe4a=>{const _0x23f0c9=_0x2ef849;if(_0x5cbe4a==null)return;const {unitId:_0x239b63,redoState:_0x6577cb,commandId:_0x22706a}=_0x5cbe4a;if(_0x239b63!==_0x4366e6['unitID'])return;const _0x241ac6={'id':_0x22706a,'type':a['CommandType'][_0x23f0c9(0x152)],'params':{'unitId':_0x239b63,'actions':_0x6577cb[_0x23f0c9(0x318)],'textRanges':null}};_0x4366e6[_0x23f0c9(0x1c6)](_0x241ac6);});if(_0x4366e6['disposeWithMe'](_0x5b3670),_0x4366e6 instanceof u[_0x2ef849(0x1e8)]){const _0x4777af={'onTransformIME':_0x29ce67=>this[_0x2ef849(0x1c2)]['transformIMECache'](_0x29ce67),'onTransformState':_0x565f56=>this[_0x2ef849(0x20e)]['transformStateCache'](_0x565f56),'onTransformSelections':_0x355411=>this['_docTransformSelectionsService'][_0x2ef849(0x2d8)](_0x355411),'onSyncEditingCollabCursor':_0x5449a1=>this[_0x2ef849(0x20d)][_0x2ef849(0x267)](_0x5449a1),'onTransformRemoteChangesetByIMECache':_0x25a2db=>this[_0x2ef849(0x1c2)][_0x2ef849(0x2ae)](_0x25a2db),'onTransformRemoteChangesetByStateCache':_0xb00df6=>this[_0x2ef849(0x20e)]['transformRemoteChangeset'](_0xb00df6)};_0x4366e6['addHandlerCallback'](_0x4777af);}}));}};ee=Zt([N(0x0,a[_0x1cc422(0x1f4)](b[_0x1cc422(0x31a)])),N(0x1,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x24a)])),N(0x2,a[_0x1cc422(0x1f4)](J)),N(0x3,a[_0x1cc422(0x1f4)](Z)),N(0x4,a[_0x1cc422(0x1f4)](Q)),N(0x5,a[_0x1cc422(0x1f4)](pe)),N(0x6,R['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x19deec,_0x2d2910,_0x5e581a,_0x551ced)=>{const _0x4b1ef9=_0x1cc422;for(var _0x180e48=_0x551ced>0x1?void 0x0:_0x551ced?Qt(_0x2d2910,_0x5e581a):_0x2d2910,_0x35a3fb=_0x19deec[_0x4b1ef9(0x357)]-0x1,_0x1769a3;_0x35a3fb>=0x0;_0x35a3fb--)(_0x1769a3=_0x19deec[_0x35a3fb])&&(_0x180e48=_0x1769a3(_0x180e48)||_0x180e48);return _0x180e48;},_e=(_0x1ac87d,_0x504087)=>(_0x367301,_0x590c72)=>_0x504087(_0x367301,_0x590c72,_0x1ac87d);let me=class extends a[_0x1cc422(0x34e)]{constructor(_0x49f7e1,_0x54f20a,_0x4a4728){const _0x504046=_0x1cc422;super(),h(this,'_cachedData',new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x504046(0xf3),!0x1),(this[_0x504046(0x280)]=_0x49f7e1,this[_0x504046(0x1f2)]=_0x54f20a,this[_0x504046(0x160)]=_0x4a4728);}[_0x1cc422(0x1ce)](){const _0x2730dd=_0x1cc422;this[_0x2730dd(0xf3)]=!0x0;}[_0x1cc422(0x1a2)](){const _0x38f825=_0x1cc422;this[_0x38f825(0xf3)]=!0x1;}get[_0x1cc422(0x2e3)](){const _0x4a4e7c=_0x1cc422;return this[_0x4a4e7c(0x261)];}[_0x1cc422(0x119)](){const _0x3e03f0=_0x1cc422;this[_0x3e03f0(0x2c7)]()[_0x3e03f0(0x240)](()=>super[_0x3e03f0(0x119)]());}async[_0x1cc422(0x2bf)](_0x2a2eec){const _0x35bc33=_0x1cc422;return this['_disabled']?null:this[_0x35bc33(0x1f2)][_0x35bc33(0x2db)](u['getLocalCacheKey'](_0x2a2eec));}async[_0x1cc422(0x10a)](_0x22e995,_0xc96ef9){const _0x32b6c4=_0x1cc422;return!!this['_localStorageService'][_0x32b6c4(0x151)](_0x22e995,_0xc96ef9);}[_0x1cc422(0x25e)](_0x1d9aba,_0x28c8f8,_0x3ca48b,_0x33e3d2){const _0x59a5cb=_0x1cc422,_0x28176c=this['_revisionService'][_0x59a5cb(0x2cc)](_0x1d9aba);this[_0x59a5cb(0x27d)][_0x59a5cb(0x2ab)](_0x1d9aba,{'unitID':_0x1d9aba,'type':_0x28c8f8,'awaitingChangeset':_0x3ca48b,'mutations':_0x33e3d2,'rev':_0x28176c}),this[_0x59a5cb(0x261)]['has'](_0x1d9aba)||this['_scheduleSaving'](_0x1d9aba);}[_0x1cc422(0x2a8)](_0x522b08){const _0x4374d9=_0x1cc422,_0x16d272=this[_0x4374d9(0x13a)]();_0x16d272===0x0?this[_0x4374d9(0x29b)](_0x522b08):this['_saveTaskMap'][_0x4374d9(0x2ab)](_0x522b08,setTimeout(()=>this['_saveCache'](_0x522b08),_0x16d272));}[_0x1cc422(0x13a)](){const _0x35e979=_0x1cc422;var _0x2cf898;return(_0x2cf898=this['_configService'][_0x35e979(0x1a3)](u[_0x35e979(0x2b6)]))!=null?_0x2cf898:u[_0x35e979(0x1d3)];}[_0x1cc422(0x29b)](_0xa6052f){const _0xaab40b=_0x1cc422,_0x92af5f=this[_0xaab40b(0x261)][_0xaab40b(0x12a)](_0xa6052f);return _0x92af5f!==void 0x0&&window[_0xaab40b(0x15b)](_0x92af5f),this[_0xaab40b(0x1f2)][_0xaab40b(0x151)](u['getLocalCacheKey'](_0xa6052f),this[_0xaab40b(0x27d)]['get'](_0xa6052f))[_0xaab40b(0x240)](()=>this[_0xaab40b(0x261)][_0xaab40b(0x23e)](_0xa6052f));}async[_0x1cc422(0x2c7)](){const _0x2380b7=_0x1cc422,_0x567cfd=[];this[_0x2380b7(0x261)]['forEach']((_0x48b708,_0x5d0b52)=>{const _0x3892c6=_0x2380b7;window[_0x3892c6(0x15b)](_0x48b708),_0x567cfd['push'](this[_0x3892c6(0x29b)](_0x5d0b52)[_0x3892c6(0x240)](()=>{const _0x12668b=_0x3892c6;this[_0x12668b(0x261)][_0x12668b(0x23e)](_0x5d0b52);}));}),await Promise[_0x2380b7(0x2aa)](_0x567cfd);}};me=es([_e(0x0,a['IConfigService']),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x1cc422(0x1f4)](m[_0x1cc422(0x300)]))],me);class ke extends a['RxDisposable']{constructor(){const _0x22a04e=_0x1cc422;super(),h(this,_0x22a04e(0x221)),this['urlChange$']=d[_0x22a04e(0x291)](window,_0x22a04e(0x18a))[_0x22a04e(0x1f0)](d[_0x22a04e(0xf8)](this[_0x22a04e(0x129)]),d[_0x22a04e(0x325)](0x1),d[_0x22a04e(0x161)](void 0x0));}[_0x1cc422(0x1de)](_0x1f0d21,_0x4f208a,_0x3f4d81=!0x1){const _0x4e6763=_0x1cc422,_0x3aa3cd=new URL(window[_0x4e6763(0x2ad)][_0x4e6763(0x2d6)]);_0x3aa3cd[_0x4e6763(0x1b4)]['set'](_0x1f0d21,_0x4f208a),_0x3f4d81?window['history']['replaceState']('','',_0x3aa3cd['toString']()):window[_0x4e6763(0x1d6)][_0x4e6763(0xff)]('','',_0x3aa3cd[_0x4e6763(0x362)]());}[_0x1cc422(0x199)](_0x4679cf,_0x4b2121=!0x1){const _0x5da0f3=_0x1cc422,_0x15e64f=new URL(window[_0x5da0f3(0x2ad)][_0x5da0f3(0x2d6)]);_0x15e64f[_0x5da0f3(0x1b4)][_0x5da0f3(0x23e)](_0x4679cf),_0x4b2121?window[_0x5da0f3(0x1d6)][_0x5da0f3(0x184)]('','',_0x15e64f[_0x5da0f3(0x362)]()):window[_0x5da0f3(0x1d6)][_0x5da0f3(0xff)]('','',_0x15e64f[_0x5da0f3(0x362)]());}[_0x1cc422(0x171)](_0x2914b3){const _0x2e15eb=_0x1cc422;var _0x379ed8;return(_0x379ed8=new URL(window[_0x2e15eb(0x2ad)][_0x2e15eb(0x2d6)])[_0x2e15eb(0x1b4)][_0x2e15eb(0x12a)](_0x2914b3))!=null?_0x379ed8:void 0x0;}}var ts=Object[_0x1cc422(0x2da)],ss=Object[_0x1cc422(0x1fc)],ns=(_0x207f98,_0x55c98f,_0x12664a)=>_0x55c98f in _0x207f98?ts(_0x207f98,_0x55c98f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12664a}):_0x207f98[_0x55c98f]=_0x12664a,is=(_0x4f2308,_0x4d86e2,_0x247d24,_0x16e7a6)=>{const _0x58c148=_0x1cc422;for(var _0x24e516=_0x16e7a6>0x1?void 0x0:_0x16e7a6?ss(_0x4d86e2,_0x247d24):_0x4d86e2,_0x3d6fcc=_0x4f2308[_0x58c148(0x357)]-0x1,_0x3cb9b8;_0x3d6fcc>=0x0;_0x3d6fcc--)(_0x3cb9b8=_0x4f2308[_0x3d6fcc])&&(_0x24e516=_0x3cb9b8(_0x24e516)||_0x24e516);return _0x24e516;},ue=(_0x511a24,_0x47b15b)=>(_0xbb3208,_0x286b9f)=>_0x47b15b(_0xbb3208,_0x286b9f,_0x511a24),rs=(_0x34435b,_0x42489c,_0x505e0c)=>ns(_0x34435b,_0x42489c+'',_0x505e0c);const os=_0x1cc422(0x1c3);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x1cc422(0x1c9)]{constructor(_0x312b3b=Ne,_0x686535,_0x316966,_0x1c92c0){const _0x1c2507=_0x1cc422;super(),this[_0x1c2507(0x23b)]=_0x312b3b,this['_renderManagerService']=_0x686535,this[_0x1c2507(0x154)]=_0x316966,this[_0x1c2507(0x280)]=_0x1c92c0;const {..._0x5eb6d8}=a[_0x1c2507(0x10f)]({},Ne,this['_config']);this['_configService'][_0x1c2507(0x268)](Ft,_0x5eb6d8);}[_0x1cc422(0x2d7)](){const _0x37ae10=_0x1cc422;this['_registerDependencies'](),this[_0x37ae10(0x34c)]();}[_0x1cc422(0x14f)](){const _0x47f20f=_0x1cc422;this[_0x47f20f(0x213)]();}[_0x1cc422(0x2e8)](){const _0x35bb18=_0x1cc422;var _0x29b5e6;const _0x33a531=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x35bb18(0x27f)],{'useClass':q[_0x35bb18(0x241)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x35bb18(0x25f)]],[ee],[z],[x],[fe],[exports[_0x35bb18(0x168)]]];a['registerDependencies'](this[_0x35bb18(0x154)],a[_0x35bb18(0x256)](_0x33a531,(_0x29b5e6=this[_0x35bb18(0x23b)])==null?void 0x0:_0x29b5e6[_0x35bb18(0x19f)]));}[_0x1cc422(0x213)](){const _0xd718dd=_0x1cc422;this['disposeWithMe'](this[_0xd718dd(0x2a1)]['registerRenderModule'](a[_0xd718dd(0x340)][_0xd718dd(0x193)],[ve])),this[_0xd718dd(0x149)](this[_0xd718dd(0x2a1)][_0xd718dd(0x2c1)](a[_0xd718dd(0x340)][_0xd718dd(0xfc)],[ge]));}[_0x1cc422(0x34c)](){const _0x2751bb=_0x1cc422;a['touchDependencies'](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x2751bb(0x168)]]]);}},rs(exports[_0x1cc422(0x36a)],'pluginName',os),exports[_0x1cc422(0x36a)]=is([a[_0x1cc422(0x327)](u[_0x1cc422(0x247)]),ue(0x1,p[_0x1cc422(0x2fa)]),ue(0x2,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),ue(0x3,a[_0x1cc422(0x25d)])],exports['UniverCollaborationClientUIPlugin']);var as=Object[_0x1cc422(0x1fc)],cs=(_0x1007b4,_0x47ece6,_0x5d7075,_0x430586)=>{const _0x322ea2=_0x1cc422;for(var _0x324d69=_0x430586>0x1?void 0x0:_0x430586?as(_0x47ece6,_0x5d7075):_0x47ece6,_0x527145=_0x1007b4[_0x322ea2(0x357)]-0x1,_0x3e6b91;_0x527145>=0x0;_0x527145--)(_0x3e6b91=_0x1007b4[_0x527145])&&(_0x324d69=_0x3e6b91(_0x324d69)||_0x324d69);return _0x324d69;},W=(_0x5a2e15,_0x2bfa2f)=>(_0x682426,_0x1071bc)=>_0x2bfa2f(_0x682426,_0x1071bc,_0x5a2e15);exports[_0x1cc422(0x2b4)]=class extends u[_0x1cc422(0x1e3)]{constructor(_0x47ef71,_0x374825,_0xade049,_0x25f8de,_0x23f394){super(_0x47ef71,_0x374825,_0xade049,_0x25f8de,_0x23f394);}async['createSocket'](_0x57fce7){const _0x1ecf1c=_0x1cc422,_0x17c8f0=await this[_0x1ecf1c(0x266)](),_0x428f3a=this[_0x1ecf1c(0x19a)](_0x57fce7,_0x17c8f0);return this[_0x1ecf1c(0x196)](_0x428f3a);}[_0x1cc422(0x19a)](_0x45065f,_0x47a34e){const _0x22117f=_0x1cc422,_0x22797f=typeof window>'u'?new URL(_0x45065f):new URL(_0x45065f,window[_0x22117f(0x2ad)][_0x22117f(0x2fe)]);_0x22797f[_0x22117f(0x1b4)][_0x22117f(0x2ab)](_0x22117f(0x134),_0x47a34e);const _0x49b09e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x22117f(0x2ad)]['search']);return _0x49b09e[_0x22117f(0x12a)](_0x22117f(0xf7))&&_0x22797f[_0x22117f(0x1b4)][_0x22117f(0x2ab)](_0x22117f(0xf7),_0x49b09e[_0x22117f(0x12a)](_0x22117f(0xf7))),_0x22797f[_0x22117f(0x362)]();}async[_0x1cc422(0x266)](){const _0x502983=_0x1cc422;var _0x2886a8,_0x283b13,_0x4bd1ae;const _0x123f10=this[_0x502983(0x280)][_0x502983(0x1a3)](u[_0x502983(0x305)]),_0x3ddb7b=(_0x2886a8=_0x123f10==null?void 0x0:_0x123f10[_0x502983(0x2e0)])!=null?_0x2886a8:u[_0x502983(0x19c)];return(_0x4bd1ae=(_0x283b13=(await this[_0x502983(0x166)][_0x502983(0x12a)](_0x3ddb7b,{'headers':{'Content-Type':'application/json'}}))[_0x502983(0x34b)])==null?void 0x0:_0x283b13[_0x502983(0x2f8)])!=null?_0x4bd1ae:'';}},exports[_0x1cc422(0x2b4)]=cs([W(0x0,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),W(0x1,a[_0x1cc422(0x1f4)](q[_0x1cc422(0x1ad)])),W(0x2,a[_0x1cc422(0x25d)]),W(0x3,a[_0x1cc422(0x191)]),W(0x4,m[_0x1cc422(0x1f6)])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,we=_0x1cc422(0x32d);class ls extends a[_0x1cc422(0x34e)]{constructor(){const _0x5671fb=_0x1cc422;super(),h(this,_0x5671fb(0x163),a[_0x5671fb(0x26b)]()),h(this,_0x5671fb(0x36e),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x5671fb(0x2ef),null),h(this,_0x5671fb(0x1b3),new Map()),h(this,_0x5671fb(0x147),new Map()),this[_0x5671fb(0x28c)]();}[_0x1cc422(0x119)](){const _0x3baf39=_0x1cc422;super[_0x3baf39(0x119)](),this[_0x3baf39(0x1b3)]['forEach']((_0x5f165a,_0x254081)=>this['_removeClearOtherTimer'](_0x254081)),this['_heartbeatTimer']&&window[_0x3baf39(0x2ac)](this[_0x3baf39(0x2ef)]);}[_0x1cc422(0x339)](_0x2a1daf){const _0x349946=_0x1cc422;return this[_0x349946(0x12d)](_0x2a1daf)[_0x349946(0x1f0)](d['distinctUntilChanged']());}[_0x1cc422(0x1bc)](_0x5523ff){const _0x4485c7=_0x1cc422;this[_0x4485c7(0x36e)][_0x4485c7(0x187)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4485c7(0x36e)][_0x4485c7(0x1af)](_0x5523ff),this['_send']({'type':0x0,'memberID':this[_0x4485c7(0x163)],'unitIDs':[_0x5523ff],'isForwarded':!0x1});}[_0x1cc422(0x252)](_0x5bde7e){const _0x593739=_0x1cc422;this[_0x593739(0x36e)][_0x593739(0x23e)](_0x5bde7e),this[_0x593739(0x36e)][_0x593739(0x187)]===0x0&&this[_0x593739(0x2ef)]&&window[_0x593739(0x2ac)](this[_0x593739(0x2ef)]);}[_0x1cc422(0x28c)](){const _0x593d04=_0x1cc422;this[_0x593d04(0x149)](a[_0x593d04(0xfe)](d[_0x593d04(0x291)](window,'storage')['subscribe'](_0x1a8d65=>{const _0x7a2a40=_0x593d04;if(_0x1a8d65['key']!==we||!_0x1a8d65['newValue'])return;const _0x4b480f=JSON[_0x7a2a40(0x349)](_0x1a8d65['newValue']);this[_0x7a2a40(0x16b)](_0x4b480f);}))),window[_0x593d04(0x29e)](_0x593d04(0x1f5),()=>this[_0x593d04(0x231)]({'type':0x1,'memberID':this[_0x593d04(0x163)],'unitIDs':Array[_0x593d04(0xfd)](this['_selfUnitIDs'])}));}[_0x1cc422(0x16b)](_0x48fe85){switch(_0x48fe85['type']){case 0x0:this['_handleJoinEvent'](_0x48fe85);break;case 0x1:this['_handleLeaveEvent'](_0x48fe85);break;case 0x2:this['_handleHeartbeatEvent'](_0x48fe85);break;}}['_handleJoinEvent'](_0xfb854d){const _0x492ff1=_0x1cc422,{unitIDs:_0x219caf,memberID:_0x1c69c3,isForwarded:_0xcc4ef7}=_0xfb854d;_0x219caf['forEach'](_0x5ec41a=>{const _0x34a246=_0x1c04;if(!_0xcc4ef7&&this[_0x34a246(0x295)][_0x34a246(0x139)](_0x5ec41a)&&this['_ensureSubject'](_0x5ec41a)['next'](u[_0x34a246(0x197)][_0x34a246(0x31f)]),!this[_0x34a246(0x295)][_0x34a246(0x139)](_0x5ec41a)||!this[_0x34a246(0x295)][_0x34a246(0x12a)](_0x5ec41a)[_0x34a246(0x139)](_0x1c69c3)){const _0x461684=this[_0x34a246(0x295)]['get'](_0x5ec41a)||new Set();_0x461684[_0x34a246(0x1af)](_0x1c69c3),this[_0x34a246(0x295)][_0x34a246(0x2ab)](_0x5ec41a,_0x461684),this[_0x34a246(0x175)](_0x1c69c3);}}),_0xcc4ef7||this[_0x492ff1(0x231)]({'type':0x0,'memberID':this[_0x492ff1(0x163)],'unitIDs':[...this[_0x492ff1(0x36e)]],'isForwarded':!0x0});}[_0x1cc422(0x175)](_0x4f3e9e){const _0x22376f=_0x1cc422;this[_0x22376f(0x2b2)](_0x4f3e9e);const _0xe92f64=window[_0x22376f(0x201)](()=>{const _0x5a50ed=_0x22376f;this[_0x5a50ed(0x295)]['forEach'](_0x7b0a25=>{const _0xe1893f=_0x5a50ed;_0x7b0a25[_0xe1893f(0x23e)](_0x4f3e9e);});},Pe*0x2);this[_0x22376f(0x1b3)][_0x22376f(0x2ab)](_0x4f3e9e,_0xe92f64);}[_0x1cc422(0x2b2)](_0xef4f45){const _0x4509d3=_0x1cc422;if(this[_0x4509d3(0x1b3)][_0x4509d3(0x139)](_0xef4f45)){const _0x263bef=this[_0x4509d3(0x1b3)]['get'](_0xef4f45);_0x263bef&&window['clearTimeout'](_0x263bef),this['_clearOtherTimers'][_0x4509d3(0x2ab)](_0xef4f45,null);}}[_0x1cc422(0x369)](_0x45f09c){const _0x246499=_0x1cc422,{memberID:_0x280cdc,unitIDs:_0x2b81d1}=_0x45f09c;_0x2b81d1[_0x246499(0x298)](_0x21e69e=>{const _0x22ccd3=_0x246499;var _0x402890;const _0x518102=this[_0x22ccd3(0x295)][_0x22ccd3(0x12a)](_0x21e69e);_0x518102&&(_0x518102[_0x22ccd3(0x23e)](_0x280cdc),(_0x402890=this[_0x22ccd3(0x12d)](_0x21e69e))==null||_0x402890['next'](_0x518102[_0x22ccd3(0x187)]===0x0?u[_0x22ccd3(0x197)][_0x22ccd3(0x254)]:u[_0x22ccd3(0x197)][_0x22ccd3(0x31f)]));}),this[_0x246499(0x2b2)](_0x280cdc);}['_handleHeartbeatEvent'](_0x51efa8){const _0x2d3ef1=_0x1cc422;this['_scheduleClearOtherTimer'](_0x51efa8[_0x2d3ef1(0x1b6)]);}[_0x1cc422(0x231)](_0x3d1b38){const _0x2d1543=_0x1cc422;localStorage[_0x2d1543(0x151)](we,JSON[_0x2d1543(0x1c5)](_0x3d1b38));}[_0x1cc422(0x22f)](){const _0xaf010=_0x1cc422;this[_0xaf010(0x2ef)]=window['setInterval'](()=>{const _0x31a23f=_0xaf010;this['_send']({'type':0x2,'memberID':this[_0x31a23f(0x163)]});},Pe);}[_0x1cc422(0x12d)](_0x12ea15){const _0x41ef9e=_0x1cc422;return this[_0x41ef9e(0x147)][_0x41ef9e(0x139)](_0x12ea15)||this[_0x41ef9e(0x147)][_0x41ef9e(0x2ab)](_0x12ea15,new d['BehaviorSubject'](u[_0x41ef9e(0x197)][_0x41ef9e(0x254)])),this[_0x41ef9e(0x147)][_0x41ef9e(0x12a)](_0x12ea15);}}var Be=(_0x4b88ab=>(_0x4b88ab[_0x4b88ab[_0x1cc422(0x1f1)]=0x0]=_0x1cc422(0x1f1),_0x4b88ab[_0x4b88ab['OK']=0x1]='OK',_0x4b88ab[_0x4b88ab['INTERNAL_ERROR']=0x2]=_0x1cc422(0x322),_0x4b88ab[_0x4b88ab['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x4b88ab[_0x4b88ab['NOT_FOUND']=0x4]=_0x1cc422(0x347),_0x4b88ab[_0x4b88ab[_0x1cc422(0x30d)]=0x5]=_0x1cc422(0x30d),_0x4b88ab[_0x4b88ab['ALREADY_EXISTS']=0x6]=_0x1cc422(0x1d0),_0x4b88ab[_0x4b88ab[_0x1cc422(0x1e7)]=0x7]=_0x1cc422(0x1e7),_0x4b88ab[_0x4b88ab[_0x1cc422(0x13b)]=0x8]=_0x1cc422(0x13b),_0x4b88ab[_0x4b88ab['COMPLETION_FINISHED']=0x9]=_0x1cc422(0x1be),_0x4b88ab[_0x4b88ab['LOGIN_FAILED']=0xa]=_0x1cc422(0x1f9),_0x4b88ab[_0x4b88ab[_0x1cc422(0x2a3)]=0x1389]=_0x1cc422(0x2a3),_0x4b88ab[_0x4b88ab[_0x1cc422(0x121)]=0x1771]=_0x1cc422(0x121),_0x4b88ab[_0x4b88ab['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x1cc422(0x13e),_0x4b88ab[_0x4b88ab[_0x1cc422(0x15d)]=0x1773]=_0x1cc422(0x15d),_0x4b88ab[_0x4b88ab['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4b88ab[_0x4b88ab['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1cc422(0x1b1),_0x4b88ab[_0x4b88ab[_0x1cc422(0x227)]=0x1b5b]=_0x1cc422(0x227),_0x4b88ab[_0x4b88ab[_0x1cc422(0x21f)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4b88ab[_0x4b88ab[_0x1cc422(0x16a)]=0x1b5d]='APPLY_DUPLICATED',_0x4b88ab[_0x4b88ab[_0x1cc422(0x135)]=0x1f41]=_0x1cc422(0x135),_0x4b88ab[_0x4b88ab[_0x1cc422(0x18d)]=0x2329]=_0x1cc422(0x18d),_0x4b88ab[_0x4b88ab[_0x1cc422(0x26a)]=0x232a]=_0x1cc422(0x26a),_0x4b88ab[_0x4b88ab[_0x1cc422(0x31c)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4b88ab[_0x4b88ab['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x1cc422(0x367),_0x4b88ab[_0x4b88ab['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1cc422(0xfb),_0x4b88ab[_0x4b88ab[_0x1cc422(0x1e1)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4b88ab[_0x4b88ab['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x1cc422(0x138),_0x4b88ab[_0x4b88ab[_0x1cc422(0x2be)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4b88ab[_0x4b88ab[_0x1cc422(0x11f)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4b88ab[_0x4b88ab['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x1cc422(0x204),_0x4b88ab[_0x4b88ab['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x1cc422(0x33c),_0x4b88ab[_0x4b88ab[_0x1cc422(0x10b)]=0x2ee2]=_0x1cc422(0x10b),_0x4b88ab[_0x4b88ab[_0x1cc422(0x2ce)]=0x2ee3]=_0x1cc422(0x2ce),_0x4b88ab[_0x4b88ab[_0x1cc422(0x13d)]=0x2ee4]=_0x1cc422(0x13d),_0x4b88ab[_0x4b88ab[_0x1cc422(0x143)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4b88ab[_0x4b88ab[_0x1cc422(0x270)]=-0x1]=_0x1cc422(0x270),_0x4b88ab))(Be||{}),hs=Object[_0x1cc422(0x1fc)],_s=(_0xacda9b,_0x282d4a,_0x1cd0fa,_0x200f7e)=>{const _0x349002=_0x1cc422;for(var _0x1fea65=_0x200f7e>0x1?void 0x0:_0x200f7e?hs(_0x282d4a,_0x1cd0fa):_0x282d4a,_0x3f28d3=_0xacda9b[_0x349002(0x357)]-0x1,_0x34c5f4;_0x3f28d3>=0x0;_0x3f28d3--)(_0x34c5f4=_0xacda9b[_0x3f28d3])&&(_0x1fea65=_0x34c5f4(_0x1fea65)||_0x1fea65);return _0x1fea65;},de=(_0x1b9f9f,_0x2b5805)=>(_0x5b906b,_0x427ff3)=>_0x2b5805(_0x5b906b,_0x427ff3,_0x1b9f9f);exports[_0x1cc422(0x1ff)]=class extends a[_0x1cc422(0x34e)]{constructor(_0x3500ef,_0x42ca8b,_0x56383b){const _0x5460b0=_0x1cc422;super(),this[_0x5460b0(0x273)]=_0x3500ef,this[_0x5460b0(0x166)]=_0x42ca8b,this['_configService']=_0x56383b;}async['runOnServer'](_0x2cb343,_0x344c60,_0x5eeb19,..._0x28d2cf){const _0x493de8=_0x1cc422;var _0x23aa95,_0x1c6de2,_0x339f5b,_0x414c6f;const _0x358185=this['_instanceService']['getFocusedUnit']();if(!_0x358185)throw new Error(_0x493de8(0x20b));const _0x42270e=((_0x23aa95=this[_0x493de8(0x280)]['getConfig'](u[_0x493de8(0x344)]))!=null?_0x23aa95:u[_0x493de8(0x183)])+'/'+_0x2cb343+_0x493de8(0x356)+_0x344c60,_0x9241ba=new URL(window[_0x493de8(0x2ad)]['href']),_0x48fa4f={'scriptId':_0x2cb343,'runId':(_0x1c6de2=_0x9241ba[_0x493de8(0x1b4)][_0x493de8(0x12a)]('runId'))!=null?_0x1c6de2:'','function':_0x344c60,'unitId':_0x358185['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x28d2cf),'invokeId':(_0x339f5b=_0x5eeb19[_0x493de8(0xf4)])!=null?_0x339f5b:'','executionId':(_0x414c6f=_0x5eeb19['executionId'])!=null?_0x414c6f:''};try{const _0x3bee85=await this[_0x493de8(0x166)][_0x493de8(0x101)](_0x42270e,{'body':_0x48fa4f});return _0x3bee85[_0x493de8(0x34b)]['error']&&_0x3bee85[_0x493de8(0x34b)][_0x493de8(0x1c0)][_0x493de8(0x188)]!==Be['OK']?_0x493de8(0x211):_0x3bee85[_0x493de8(0x34b)]['result'];}catch{return'Failed';}}},exports[_0x1cc422(0x1ff)]=_s([de(0x0,a[_0x1cc422(0x195)]),de(0x1,a['Inject'](q['HTTPService'])),de(0x2,a[_0x1cc422(0x25d)])],exports['RemoteUniscriptService']),exports[_0x1cc422(0x24d)]=je,exports['IURLService']=Ee,exports['SheetCollabCursorShape']=Ae,exports[_0x1cc422(0x370)]=ls,exports['WebURLService']=ke;
|
|
1
|
+
'use strict';const _0x451cb2=_0x2767;(function(_0x26b84,_0x2f6a9c){const _0x2fd65e=_0x2767,_0x10cf74=_0x26b84();while(!![]){try{const _0x30a41b=parseInt(_0x2fd65e(0x14a))/0x1*(-parseInt(_0x2fd65e(0x29d))/0x2)+parseInt(_0x2fd65e(0x158))/0x3*(parseInt(_0x2fd65e(0x30c))/0x4)+parseInt(_0x2fd65e(0x321))/0x5*(parseInt(_0x2fd65e(0x16d))/0x6)+parseInt(_0x2fd65e(0x15d))/0x7+parseInt(_0x2fd65e(0x227))/0x8+-parseInt(_0x2fd65e(0x2ae))/0x9+parseInt(_0x2fd65e(0xfa))/0xa*(-parseInt(_0x2fd65e(0x17b))/0xb);if(_0x30a41b===_0x2f6a9c)break;else _0x10cf74['push'](_0x10cf74['shift']());}catch(_0x59aa03){_0x10cf74['push'](_0x10cf74['shift']());}}}(_0x3a1b,0x60b9c));var Xe=Object[_0x451cb2(0x1ad)],Ge=(_0xb3c78f,_0x238d8e,_0x1c3b3c)=>_0x238d8e in _0xb3c78f?Xe(_0xb3c78f,_0x238d8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c3b3c}):_0xb3c78f[_0x238d8e]=_0x1c3b3c,h=(_0x1e5ea2,_0x12ddc4,_0x17c576)=>Ge(_0x1e5ea2,typeof _0x12ddc4!=_0x451cb2(0x2d6)?_0x12ddc4+'':_0x12ddc4,_0x17c576);Object['defineProperty'](exports,Symbol[_0x451cb2(0x2b0)],{'value':_0x451cb2(0x1bd)});const u=require(_0x451cb2(0x1ab)),a=require(_0x451cb2(0x18e)),p=require(_0x451cb2(0x1d5)),q=require(_0x451cb2(0x306)),b=require(_0x451cb2(0x187)),qe=require(_0x451cb2(0x15c)),d=require(_0x451cb2(0x2c1)),Y=require('@univerjs/docs'),m=require(_0x451cb2(0x2ed)),Te=require('@univerjs/engine-formula'),g=require(_0x451cb2(0x16e)),$=require('rxjs/operators'),G=require(_0x451cb2(0xaa)),w=require('react/jsx-runtime'),R=require(_0x451cb2(0xb8)),T=require(_0x451cb2(0x299)),M=require('react'),Ke=require(_0x451cb2(0x28d));var ze=Object[_0x451cb2(0x14b)],Je=(_0x3daca2,_0x5f224a,_0x54e6fd,_0x5b2c05)=>{const _0xa4295e=_0x451cb2;for(var _0x40915a=_0x5b2c05>0x1?void 0x0:_0x5b2c05?ze(_0x5f224a,_0x54e6fd):_0x5f224a,_0x31c2dc=_0x3daca2[_0xa4295e(0x2f6)]-0x1,_0x4c13d6;_0x31c2dc>=0x0;_0x31c2dc--)(_0x4c13d6=_0x3daca2[_0x31c2dc])&&(_0x40915a=_0x4c13d6(_0x40915a)||_0x40915a);return _0x40915a;},Re=(_0x2e7687,_0x422642)=>(_0x33dd6b,_0x4b3cef)=>_0x422642(_0x33dd6b,_0x4b3cef,_0x2e7687);let fe=class extends a['RxDisposable']{constructor(_0x1fcda3,_0x4377d3){const _0x40d01b=_0x451cb2;super(),this['_docClipboardService']=_0x1fcda3,this['_imageIoService']=_0x4377d3,this[_0x40d01b(0x140)]();}[_0x451cb2(0x140)](){const _0x3e4bf8=_0x451cb2,_0x1d3c20=this;this[_0x3e4bf8(0x155)](this[_0x3e4bf8(0x1d6)][_0x3e4bf8(0x276)]({'onBeforePasteImage':async _0x258cb2=>{const _0x28849d=_0x3e4bf8,_0x558b74=await _0x1d3c20[_0x28849d(0x238)]['saveImage'](_0x258cb2);return _0x558b74?{'source':_0x558b74[_0x28849d(0x1a7)],'imageSourceType':_0x558b74[_0x28849d(0x2de)]}:null;}}));}};fe=Je([Re(0x0,b[_0x451cb2(0x129)]),Re(0x1,qe[_0x451cb2(0x279)])],fe);const Oe=[_0x451cb2(0x28e),_0x451cb2(0x2e9),'verdancy600',_0x451cb2(0xdb),'blue400',_0x451cb2(0x1a0)];class Ce extends a[_0x451cb2(0xcb)]{constructor(){const _0x44446=_0x451cb2;super(...arguments),h(this,_0x44446(0x221),new Map()),h(this,_0x44446(0xbd),0x0);}[_0x451cb2(0xa2)](_0x2c3cab){const _0x450cb7=_0x451cb2;if(this[_0x450cb7(0x221)]['has'](_0x2c3cab))return this['_assignedColors'][_0x450cb7(0x27e)](_0x2c3cab);const _0x1102da=Oe[this[_0x450cb7(0xbd)]];return this[_0x450cb7(0xbd)]=(this['_colorIndex']+0x1)%Oe[_0x450cb7(0x2f6)],this[_0x450cb7(0x221)][_0x450cb7(0x1b9)](_0x2c3cab,_0x1102da),_0x1102da;}}function Le(_0x42cf55){const _0x27a552=_0x451cb2;let _0x24c002='';for(const _0x42857b of _0x42cf55){const {startOffset:_0xe71da,endOffset:_0x59cff9,isActive:_0x1f9d05,rangeType:_0x5ea09a,segmentId:_0x33e845,segmentPage:_0x1f430e}=_0x42857b;_0x24c002[_0x27a552(0x2f6)]&&(_0x24c002+=','),_0x24c002+=_0xe71da+':'+_0x59cff9+':'+(_0x1f9d05?'1':'0')+':'+_0x5ea09a+':'+_0x33e845+':'+_0x1f430e;}return _0x24c002;}function _0x2767(_0x5f9d7d,_0x35d91f){const _0x3a1b32=_0x3a1b();return _0x2767=function(_0x276762,_0x5cf5aa){_0x276762=_0x276762-0xa2;let _0x42bed3=_0x3a1b32[_0x276762];return _0x42bed3;},_0x2767(_0x5f9d7d,_0x35d91f);}function Ze(_0x5acb3){const _0x358533=_0x451cb2,_0x3ac22d=_0x5acb3[_0x358533(0x179)](','),_0x43460c=[];for(const _0x5d60b4 of _0x3ac22d){const [_0x26fada,_0x691f97,_0x663b37,_0x4756d5,_0x539701,_0x47e728]=_0x5d60b4[_0x358533(0x179)](':');_0x43460c[_0x358533(0x14f)]({'startOffset':Number(_0x26fada),'endOffset':Number(_0x691f97),'collapsed':_0x26fada===_0x691f97,'isActive':_0x663b37==='1','rangeType':_0x4756d5===a[_0x358533(0x1ea)][_0x358533(0x17f)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x358533(0x1ea)]['RECT'],'segmentId':typeof _0x539701==_0x358533(0x195)?String(_0x539701):'','segmentPage':Number(_0x47e728!=null?_0x47e728:-0x1)});}return _0x43460c['some'](_0x409411=>_0x409411[_0x358533(0x2fe)])||(_0x43460c[0x0][_0x358533(0x2fe)]=!0x0),_0x43460c;}class pe extends a[_0x451cb2(0x168)]{constructor(){const _0x4cc5ac=_0x451cb2;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x4cc5ac(0x101),this[_0x4cc5ac(0x1dc)][_0x4cc5ac(0x147)]());}[_0x451cb2(0x305)](_0x395223){const _0x49bef3=_0x451cb2,{unitID:_0x725c0f,memberID:_0x5f5701,textRanges:_0x4bfbda}=_0x395223,_0xd2a5ce=Le(_0x4bfbda);if(_0xd2a5ce==='')return;const _0x6a9e71={'unitID':_0x725c0f,'memberID':_0x5f5701,'selection':_0xd2a5ce};this[_0x49bef3(0x1dc)][_0x49bef3(0x1e4)](_0x6a9e71);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x29a3b8,_0x106892,_0x10b61e,_0x460c22)=>{for(var _0x221c60=_0x460c22>0x1?void 0x0:_0x460c22?Qe(_0x106892,_0x10b61e):_0x106892,_0x1321f2=_0x29a3b8['length']-0x1,_0x3f59a1;_0x1321f2>=0x0;_0x1321f2--)(_0x3f59a1=_0x29a3b8[_0x1321f2])&&(_0x221c60=_0x3f59a1(_0x221c60)||_0x221c60);return _0x221c60;},P=(_0x18f9b0,_0x53c0cf)=>(_0x4cec49,_0xefe49d)=>_0x53c0cf(_0x4cec49,_0xefe49d,_0x18f9b0);const tt=0x12c,st=0x64;let Se=class extends a[_0x451cb2(0x168)]{constructor(_0xcb8b41,_0xaa9ca7,_0x25c198,_0x22e6d8,_0x3daac0,_0x38cc30,_0x17987b,_0x24311d,_0x518523){const _0x1a958c=_0x451cb2;super(),h(this,_0x1a958c(0x10e),!0x1),h(this,_0x1a958c(0x140),!0x1),h(this,'_cursorInfo$',new d[(_0x1a958c(0x316))](new Map())),h(this,_0x1a958c(0x173),this['_cursorInfo$'][_0x1a958c(0x147)]()),h(this,'_roomMembers$',new d[(_0x1a958c(0x316))]([])),h(this,_0x1a958c(0xb4),this['_roomMembers$'][_0x1a958c(0x2cc)](d[_0x1a958c(0x268)](tt))),h(this,_0x1a958c(0x22d),a[_0x1a958c(0xad)](_0x400906=>{const _0x2172af=_0x1a958c,_0x5ed8ac={'eventID':m[_0x2172af(0x203)][_0x2172af(0x1c0)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Le(_0x400906)}};this[_0x2172af(0x2a1)][_0x2172af(0x2ac)](_0x5ed8ac,this[_0x2172af(0x2b3)]);},st)),(this[_0x1a958c(0x2b3)]=_0xcb8b41,this['_session']=_0xaa9ca7,this[_0x1a958c(0x224)]=_0x25c198,this['_colorAssignService']=_0x22e6d8,this['_memberService']=_0x3daac0,this[_0x1a958c(0x286)]=_0x38cc30,this[_0x1a958c(0x20b)]=_0x17987b,this[_0x1a958c(0x191)]=_0x24311d,this[_0x1a958c(0x1aa)]=_0x518523);}get['cursorInfo'](){const _0x2f3fad=_0x451cb2;return this[_0x2f3fad(0x231)]['getValue']();}get['roomMembers'](){const _0x2cbfc0=_0x451cb2;return this[_0x2cbfc0(0x1fc)]['getValue']();}[_0x451cb2(0x212)](){const _0x219313=_0x451cb2;super[_0x219313(0x212)](),this[_0x219313(0x231)][_0x219313(0x1e4)](new Map()),this[_0x219313(0x231)]['complete'](),this['_roomMembers$']['next']([]),this[_0x219313(0x1fc)][_0x219313(0x234)]();}[_0x451cb2(0x1bc)](){const _0x2acd02=_0x451cb2;this[_0x2acd02(0x140)]||(this[_0x2acd02(0x140)]=!0x0,this[_0x2acd02(0x2a1)][_0x2acd02(0x1f8)][_0x2acd02(0x2cc)](d['takeUntil'](this[_0x2acd02(0x111)]))[_0x2acd02(0xdf)](_0x2054e0=>{const _0x5bf686=_0x2acd02;_0x2054e0===u[_0x5bf686(0x1a6)][_0x5bf686(0x1db)]?this[_0x5bf686(0xa5)]():this[_0x5bf686(0x1dd)]();}),this[_0x2acd02(0x2a1)][_0x2acd02(0x31c)]['pipe'](d[_0x2acd02(0x280)](this[_0x2acd02(0x111)]))[_0x2acd02(0xdf)](_0x24faa0=>{const _0x1f0f82=_0x2acd02,_0x54ad51=_0x24faa0[_0x1f0f82(0x1f9)];_0x54ad51===m['CollaborationEvent'][_0x1f0f82(0x1c0)]&&this[_0x1f0f82(0x1fa)](_0x24faa0),_0x54ad51===m[_0x1f0f82(0x203)][_0x1f0f82(0x2d2)]&&this[_0x1f0f82(0xf2)](_0x24faa0);}),this[_0x2acd02(0x155)](this['_commandService']['onCommandExecuted'](_0x2946ec=>{const _0x4a3cf9=_0x2acd02,_0x4e6932=_0x2946ec[_0x4a3cf9(0x274)];_0x4e6932!=null&&this['_online']&&_0x2946ec['id']===Y[_0x4a3cf9(0xda)]['id']&&_0x4e6932['unitId']===this['unitID']&&_0x4e6932['isEditing']===!0x1&&_0x4e6932['ranges'][_0x4a3cf9(0x2f6)]>0x0&&this[_0x4a3cf9(0x22d)](_0x4e6932[_0x4a3cf9(0xae)]);})),this[_0x2acd02(0x286)][_0x2acd02(0x101)]['pipe'](d['takeUntil'](this[_0x2acd02(0x111)]))[_0x2acd02(0xdf)](_0x3dcf61=>{const _0x293138=_0x2acd02;if((_0x3dcf61==null?void 0x0:_0x3dcf61['unitID'])!==this[_0x293138(0x2b3)])return;const _0x4adda0={'eventID':m[_0x293138(0x203)][_0x293138(0x1c0)],'data':_0x3dcf61};this[_0x293138(0x1fa)](_0x4adda0);}),this['disposeWithMe'](this[_0x2acd02(0x1aa)][_0x2acd02(0x31e)](_0x53b9f2=>{const _0x4adc7e=_0x2acd02;if(_0x53b9f2[_0x4adc7e(0x274)]==null)return;const _0xd3133e=_0x53b9f2[_0x4adc7e(0x274)];if(_0x53b9f2['id']!==Y[_0x4adc7e(0x2d5)]['id']||_0xd3133e[_0x4adc7e(0x1eb)]!==this[_0x4adc7e(0x2b3)])return;const _0x137617={'id':_0x4adc7e(0x1b5),'params':_0xd3133e},_0x231b98=this['cursorInfo'];for(const [_0x20fa47,_0x12d810]of _0x231b98){const _0x5eeca7={'id':_0x4adc7e(0x1b5),'params':{'unitId':this[_0x4adc7e(0x2b3)],'actions':null,'textRanges':_0x12d810['ranges']}},_0x2c8f83=this[_0x4adc7e(0x20b)][_0x4adc7e(0x2d7)](_0x137617,_0x5eeca7,!0x1);if(m['isTransformMutationFailure'](_0x2c8f83))throw _0x2c8f83['error'];_0x231b98[_0x4adc7e(0x1b9)](_0x20fa47,{..._0x12d810,'ranges':_0x2c8f83['m2Prime'][_0x4adc7e(0x274)][_0x4adc7e(0xfb)]});}queueMicrotask(()=>{const _0x2dc9b8=_0x4adc7e;this[_0x2dc9b8(0x231)][_0x2dc9b8(0x1e4)](_0x231b98);});})));}[_0x451cb2(0x1fa)](_0x324c0f){const _0x1f0b5a=_0x451cb2;var _0xb7891d,_0x8fe6b1;const {memberID:_0x681dda,selection:_0x21bfdf}=_0x324c0f[_0x1f0b5a(0x154)],_0x1a4194=Ze(_0x21bfdf),_0x211c0b=(_0x8fe6b1=(_0xb7891d=this[_0x1f0b5a(0x1e0)][_0x1f0b5a(0x2a5)](this[_0x1f0b5a(0x2b3)],_0x681dda))==null?void 0x0:_0xb7891d['name'])!=null?_0x8fe6b1:_0x1f0b5a(0x197),_0x1cc986={'color':this[_0x1f0b5a(0x19a)][_0x1f0b5a(0xa2)](_0x681dda),'name':_0x211c0b,'ranges':_0x1a4194},_0x266d9d=this['cursorInfo'];_0x266d9d['set'](_0x681dda,_0x1cc986),this['_cursorInfo$']['next'](_0x266d9d);}['_onCursorDelete'](_0x1eeccb){const _0x37116c=_0x451cb2,{memberID:_0x4a33ea}=_0x1eeccb[_0x37116c(0x154)],_0x2b7c43=this[_0x37116c(0x26b)];_0x2b7c43['delete'](_0x4a33ea),this[_0x37116c(0x231)][_0x37116c(0x1e4)](_0x2b7c43);}[_0x451cb2(0xa5)](){const _0x4dcf6c=_0x451cb2;var _0x2cce1a;if(this['_online']=!0x0,((_0x2cce1a=this['_univerInstanceService'][_0x4dcf6c(0x2bd)]())==null?void 0x0:_0x2cce1a[_0x4dcf6c(0x2e0)]())!==this[_0x4dcf6c(0x2b3)])return;const _0x1d596f=this[_0x4dcf6c(0x224)][_0x4dcf6c(0x27e)](Y[_0x4dcf6c(0x22f)])[_0x4dcf6c(0x2cd)]();Array['isArray'](_0x1d596f)&&_0x1d596f[_0x4dcf6c(0x2f6)]>0x0&&this[_0x4dcf6c(0x22d)](_0x1d596f);}['_toggleOffline'](){this['_online']=!0x1;}};Se=et([P(0x2,a['Inject'](a['Injector'])),P(0x3,a[_0x451cb2(0x291)](Ce)),P(0x4,a[_0x451cb2(0x291)](u[_0x451cb2(0xc0)])),P(0x5,a['Inject'](pe)),P(0x6,m['ITransformService']),P(0x7,a[_0x451cb2(0x130)]),P(0x8,a[_0x451cb2(0x2ce)])],Se);var nt=Object[_0x451cb2(0x14b)],it=(_0x54ea7a,_0x29664d,_0x220271,_0x929644)=>{const _0x3da754=_0x451cb2;for(var _0xbb4c4=_0x929644>0x1?void 0x0:_0x929644?nt(_0x29664d,_0x220271):_0x29664d,_0x3676ae=_0x54ea7a[_0x3da754(0x2f6)]-0x1,_0x4cc333;_0x3676ae>=0x0;_0x3676ae--)(_0x4cc333=_0x54ea7a[_0x3676ae])&&(_0xbb4c4=_0x4cc333(_0xbb4c4)||_0xbb4c4);return _0xbb4c4;},A=(_0x30a8b4,_0x3bf02c)=>(_0x247eb7,_0x33ed70)=>_0x3bf02c(_0x247eb7,_0x33ed70,_0x30a8b4);const rt=0x12c,ot=0x64,at=()=>{let _0x56485c=[],_0x27afeb=!0x1;return _0x5663c9=>{const _0x4319eb=_0x2767;_0x56485c[_0x4319eb(0x14f)](_0x5663c9),_0x27afeb||(_0x27afeb=!0x0,setTimeout(()=>{const _0x4649c5=_0x4319eb;_0x56485c[_0x4649c5(0xa7)](_0x514292=>_0x514292()),_0x56485c=[],_0x27afeb=!0x1;}));};};let Ie=class extends a[_0x451cb2(0x168)]{constructor(_0x2f9a23,_0x2b917a,_0x9a5a32,_0xb8261a,_0x228dfc,_0xfe0776,_0x11c817,_0x4f1e5c){const _0x433b23=_0x451cb2;super(),h(this,'_online',!0x1),h(this,_0x433b23(0x140),!0x1),h(this,_0x433b23(0x231),new d[(_0x433b23(0x316))](new Map())),h(this,'cursorInfo$',this[_0x433b23(0x231)][_0x433b23(0x147)]()),h(this,_0x433b23(0x1fc),new d[(_0x433b23(0x316))]([])),h(this,'roomMembers$',this['_roomMembers$'][_0x433b23(0x2cc)](d[_0x433b23(0x268)](rt))),h(this,_0x433b23(0x22d),a[_0x433b23(0xad)]((_0x3c02aa,_0x5a8ca5)=>{const _0xfdb83a=_0x433b23,_0x44c243={'eventID':m[_0xfdb83a(0x203)][_0xfdb83a(0x1c0)],'data':{'unitID':this[_0xfdb83a(0x2b3)],'memberID':this[_0xfdb83a(0x2a1)]['getMemberID'](),'selection':Te[_0xfdb83a(0x174)](_0x3c02aa,_0x5a8ca5[_0xfdb83a(0x2b2)])}};this[_0xfdb83a(0x2a1)][_0xfdb83a(0x2ac)](_0x44c243,this[_0xfdb83a(0x2b3)]);},ot)),(this['unitID']=_0x2f9a23,this[_0x433b23(0x2a1)]=_0x2b917a,this[_0x433b23(0x224)]=_0x9a5a32,this[_0x433b23(0x19a)]=_0xb8261a,this[_0x433b23(0x1e0)]=_0x228dfc,this[_0x433b23(0x191)]=_0xfe0776,this[_0x433b23(0x1aa)]=_0x11c817,this[_0x433b23(0x127)]=_0x4f1e5c);}get[_0x451cb2(0x26b)](){const _0x401c16=_0x451cb2;return this[_0x401c16(0x231)][_0x401c16(0xd5)]();}get[_0x451cb2(0x258)](){const _0x207802=_0x451cb2;return this['_roomMembers$'][_0x207802(0xd5)]();}[_0x451cb2(0x212)](){const _0x2e6d55=_0x451cb2;super[_0x2e6d55(0x212)](),this['_cursorInfo$']['next'](new Map()),this[_0x2e6d55(0x231)][_0x2e6d55(0x234)](),this[_0x2e6d55(0x1fc)][_0x2e6d55(0x1e4)]([]),this[_0x2e6d55(0x1fc)]['complete']();}[_0x451cb2(0x1bc)](){const _0x58c719=_0x451cb2;this[_0x58c719(0x140)]||(this[_0x58c719(0x140)]=!0x0,this[_0x58c719(0x2a1)][_0x58c719(0x1f8)][_0x58c719(0x2cc)](d[_0x58c719(0x280)](this['dispose$']))[_0x58c719(0xdf)](_0x44c132=>{const _0x533d6f=_0x58c719;_0x44c132===u['SessionStatus'][_0x533d6f(0x1db)]?this[_0x533d6f(0xa5)]():this[_0x533d6f(0x1dd)]();}),this[_0x58c719(0x2a1)][_0x58c719(0x31c)]['pipe'](d[_0x58c719(0x280)](this['dispose$']))[_0x58c719(0xdf)](_0x3a20a8=>{const _0xc3c281=_0x58c719,_0x1ed05d=_0x3a20a8[_0xc3c281(0x1f9)];_0x1ed05d===m[_0xc3c281(0x203)][_0xc3c281(0x1c0)]&&this[_0xc3c281(0x1fa)](_0x3a20a8),_0x1ed05d===m[_0xc3c281(0x203)][_0xc3c281(0x2d2)]&&this[_0xc3c281(0xf2)](_0x3a20a8);}),this[_0x58c719(0x175)](),this[_0x58c719(0x155)](this[_0x58c719(0x1aa)][_0x58c719(0x31e)](_0x30e4f6=>{const _0xc91088=_0x58c719;if(this['_online']&&_0x30e4f6['id']===g[_0xc91088(0x196)]['id']&&_0x30e4f6[_0xc91088(0x274)]['unitId']===this['unitID']){const _0x18c083=_0x30e4f6[_0xc91088(0x274)];this[_0xc91088(0x22d)](_0x18c083['subUnitId'],_0x18c083[_0xc91088(0xeb)][0x0]);}})));}[_0x451cb2(0x1fa)](_0x7127f6){const _0xa5f6b1=_0x451cb2;var _0x28632e,_0x568845;const {memberID:_0xc8d918,selection:_0x21475c}=_0x7127f6[_0xa5f6b1(0x154)],{sheetName:_0x3b7dc4,range:_0x307248}=Te[_0xa5f6b1(0x198)](_0x21475c),_0x1f6966={'name':(_0x568845=(_0x28632e=this[_0xa5f6b1(0x1e0)][_0xa5f6b1(0x2a5)](this[_0xa5f6b1(0x2b3)],_0xc8d918))==null?void 0x0:_0x28632e[_0xa5f6b1(0x272)])!=null?_0x568845:_0xa5f6b1(0x197),'range':this[_0xa5f6b1(0x31b)](_0x3b7dc4,_0x307248),'sheetID':_0x3b7dc4,'color':this['_colorAssignService'][_0xa5f6b1(0xa2)](_0xc8d918),'selection':_0x21475c},_0x3011c6=this[_0xa5f6b1(0x26b)];_0x3011c6[_0xa5f6b1(0x1b9)](_0xc8d918,_0x1f6966),this[_0xa5f6b1(0x231)]['next'](_0x3011c6);}[_0x451cb2(0xf2)](_0x75e4a){const _0x40aa1a=_0x451cb2,{memberID:_0x26f00b}=_0x75e4a[_0x40aa1a(0x154)],_0x43f5ad=this['cursorInfo'];_0x43f5ad['delete'](_0x26f00b),this[_0x40aa1a(0x231)][_0x40aa1a(0x1e4)](_0x43f5ad);}[_0x451cb2(0x31b)](_0x2d1a7f,_0x2bee96){const _0x312ba7=_0x451cb2;var _0x17d00,_0x4aa2db;const _0x33ef7f=(_0x4aa2db=(_0x17d00=this['_univerInstanceService'][_0x312ba7(0x137)](this[_0x312ba7(0x2b3)]))==null?void 0x0:_0x17d00[_0x312ba7(0x135)](_0x2d1a7f))==null?void 0x0:_0x4aa2db[_0x312ba7(0x138)]();return(_0x33ef7f==null?void 0x0:_0x33ef7f[_0x312ba7(0xcd)](_0x29aec9=>a[_0x312ba7(0x105)][_0x312ba7(0x2b8)](_0x29aec9,_0x2bee96)))||_0x2bee96;}['_onRefRangeChange'](){const _0x4aa963=_0x451cb2,_0x2b2a18=new a[(_0x4aa963(0x1be))](),_0x3b8950=at(),_0x2eb74f=()=>{const _0x177868=_0x4aa963;_0x2b2a18[_0x177868(0x212)]();const _0x2f9b84=(_0x28efce,_0x40927a,_0x95a23e,_0x5ef87b)=>{const _0x1487d4=_0x177868;let _0x5402f3=[];switch(_0x28efce['id']){case g[_0x1487d4(0x1fb)][_0x1487d4(0x30d)]:{_0x5402f3=g['handleDeleteRangeMoveLeft'](_0x28efce,_0x5ef87b);break;}case g[_0x1487d4(0x1fb)][_0x1487d4(0xb7)]:{_0x5402f3=g['handleDeleteRangeMoveUp'](_0x28efce,_0x5ef87b);break;}case g[_0x1487d4(0x1fb)][_0x1487d4(0x151)]:{_0x5402f3=g[_0x1487d4(0x26f)](_0x28efce,_0x5ef87b);break;}case g[_0x1487d4(0x1fb)][_0x1487d4(0x205)]:{_0x5402f3=g[_0x1487d4(0x31f)](_0x28efce,_0x5ef87b);break;}case g[_0x1487d4(0x1fb)][_0x1487d4(0x13d)]:{_0x5402f3=g[_0x1487d4(0xf9)](_0x28efce,_0x5ef87b);break;}case g['EffectRefRangId'][_0x1487d4(0x2a6)]:{_0x5402f3=g[_0x1487d4(0x327)](_0x28efce,_0x5ef87b);break;}case g[_0x1487d4(0x1fb)][_0x1487d4(0x131)]:{_0x5402f3=g[_0x1487d4(0x1e8)](_0x28efce,_0x5ef87b);break;}case g[_0x1487d4(0x1fb)][_0x1487d4(0x30e)]:{_0x5402f3=g['handleIRemoveCol'](_0x28efce,_0x5ef87b);break;}case g[_0x1487d4(0x1fb)][_0x1487d4(0x29a)]:{_0x5402f3=g[_0x1487d4(0x31a)](_0x28efce,_0x5ef87b);break;}}const _0x5b4da0=g['runRefRangeMutations'](_0x5402f3,_0x5ef87b),_0x192f02=this['cursorInfo'][_0x1487d4(0x27e)](_0x40927a);if(_0x192f02&&_0x5b4da0){const _0x47b517={..._0x192f02,'range':_0x5b4da0};this[_0x1487d4(0x26b)]['set'](_0x40927a,_0x47b517),_0x3b8950(()=>{const _0x10c21e=_0x1487d4,_0x16739a=this[_0x10c21e(0x127)][_0x10c21e(0x1e9)](_0x5b4da0,_0x3da37f=>(_0x16739a[_0x10c21e(0x212)](),_0x2f9b84(_0x3da37f,_0x40927a,_0x95a23e,_0x5b4da0)));_0x2b2a18[_0x10c21e(0x244)](_0x16739a);});}return{'redos':[],'undos':[]};};this[_0x177868(0x26b)][_0x177868(0xa7)]((_0x33e0ed,_0x25375b)=>{const _0x4dbe0b=_0x177868,{range:_0x37a466,sheetID:_0x427fc1}=_0x33e0ed,_0x19cbcd=this[_0x4dbe0b(0x127)][_0x4dbe0b(0x1e9)](_0x37a466,_0x2db2dd=>(_0x19cbcd['dispose'](),_0x2f9b84(_0x2db2dd,_0x25375b,_0x427fc1,_0x37a466)));_0x2b2a18[_0x4dbe0b(0x244)](_0x19cbcd);});};this[_0x4aa963(0x155)](a[_0x4aa963(0x225)](this['_cursorInfo$'][_0x4aa963(0xdf)](()=>{_0x2eb74f();})));}[_0x451cb2(0xa5)](){const _0x3b98ec=_0x451cb2;var _0x5d25f6,_0xbd2c23;if(this[_0x3b98ec(0x10e)]=!0x0,((_0x5d25f6=this[_0x3b98ec(0x191)][_0x3b98ec(0x2bd)]())==null?void 0x0:_0x5d25f6[_0x3b98ec(0x2e0)]())!==this[_0x3b98ec(0x2b3)])return;const _0x2a144e=(_0xbd2c23=this[_0x3b98ec(0x224)]['get'](g[_0x3b98ec(0x2bb)])['getCurrentSelections']())==null?void 0x0:_0xbd2c23[0x0],_0x3cbac0=this['_univerInstanceService'][_0x3b98ec(0xd1)](a[_0x3b98ec(0x25a)][_0x3b98ec(0x2ff)])['getActiveSheet']();_0x2a144e&&_0x3cbac0&&this[_0x3b98ec(0x22d)](_0x3cbac0['getSheetId'](),_0x2a144e);}[_0x451cb2(0x1dd)](){const _0x28144e=_0x451cb2;this[_0x28144e(0x10e)]=!0x1;}};Ie=it([A(0x2,a['Inject'](a[_0x451cb2(0x13b)])),A(0x3,a[_0x451cb2(0x291)](Ce)),A(0x4,a['Inject'](u[_0x451cb2(0xc0)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x451cb2(0x2ce)]),A(0x7,a['Inject'](g[_0x451cb2(0xe0)]))],Ie);var ct=Object[_0x451cb2(0x14b)],lt=(_0x4bbeac,_0x378e46,_0xfcdb0a,_0x5ab095)=>{const _0x24596b=_0x451cb2;for(var _0x5cadc2=_0x5ab095>0x1?void 0x0:_0x5ab095?ct(_0x378e46,_0xfcdb0a):_0x378e46,_0x26a48d=_0x4bbeac[_0x24596b(0x2f6)]-0x1,_0x2b2c2a;_0x26a48d>=0x0;_0x26a48d--)(_0x2b2c2a=_0x4bbeac[_0x26a48d])&&(_0x5cadc2=_0x2b2c2a(_0x5cadc2)||_0x5cadc2);return _0x5cadc2;},ie=(_0x33872c,_0x451178)=>(_0x36b013,_0x5cb35d)=>_0x451178(_0x36b013,_0x5cb35d,_0x33872c);let x=class extends a[_0x451cb2(0x168)]{constructor(_0x5a1524,_0x17cf82,_0x2991ac){const _0x458dc3=_0x451cb2;super(),h(this,_0x458dc3(0x263),new Map()),h(this,_0x458dc3(0x12f),new d[(_0x458dc3(0xde))]()),(this['_univerInstanceService']=_0x5a1524,this[_0x458dc3(0x224)]=_0x17cf82,this['_collabSessionService']=_0x2991ac,this['_init']());}['dispose'](){const _0x240ee7=_0x451cb2;super[_0x240ee7(0x212)](),this[_0x240ee7(0x12f)]['complete'](),this[_0x240ee7(0x263)][_0x240ee7(0xa7)](_0x14ec82=>_0x14ec82['dispose']());}[_0x451cb2(0x1d0)](_0x4d5ec7){const _0x521af8=_0x451cb2;return this['_entities']['has'](_0x4d5ec7)?this[_0x521af8(0x263)][_0x521af8(0x27e)](_0x4d5ec7)['cursorInfo$']:this[_0x521af8(0x12f)][_0x521af8(0x2cc)](d[_0x521af8(0x2ef)](_0x19a5e3=>_0x19a5e3['unitID']===_0x4d5ec7),d[_0x521af8(0x2ba)](_0x228ba3=>_0x228ba3[_0x521af8(0x173)]));}[_0x451cb2(0x140)](){const _0x3e1ddf=_0x451cb2;this[_0x3e1ddf(0x191)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x3e1ddf(0x2ff)])[_0x3e1ddf(0x2cc)](d[_0x3e1ddf(0x280)](this[_0x3e1ddf(0x111)]))[_0x3e1ddf(0xdf)](async _0x2a9321=>{const _0x10dacb=_0x3e1ddf,_0x2c3571=_0x2a9321['getUnitId'](),_0x469ea2=await this['_startSheetCollabCursor'](_0x2c3571);this[_0x10dacb(0x12f)]['next'](_0x469ea2),this[_0x10dacb(0x263)][_0x10dacb(0x1b9)](_0x2c3571,_0x469ea2);}),this[_0x3e1ddf(0x191)]['getTypeOfUnitAdded$'](a[_0x3e1ddf(0x25a)]['UNIVER_DOC'])[_0x3e1ddf(0x2cc)](d[_0x3e1ddf(0x280)](this[_0x3e1ddf(0x111)]))[_0x3e1ddf(0x2cc)](d['filter'](_0xd2ead1=>!_0xd2ead1[_0x3e1ddf(0x2e0)]()[_0x3e1ddf(0x1ed)]('__')))[_0x3e1ddf(0xdf)](async _0x153984=>{const _0x5a60bb=_0x3e1ddf,_0x36b08c=_0x153984[_0x5a60bb(0x2e0)](),_0x5ceb41=await this[_0x5a60bb(0x25f)](_0x36b08c);this[_0x5a60bb(0x12f)][_0x5a60bb(0x1e4)](_0x5ceb41),this[_0x5a60bb(0x263)][_0x5a60bb(0x1b9)](_0x36b08c,_0x5ceb41);}),d[_0x3e1ddf(0x283)](this[_0x3e1ddf(0x191)][_0x3e1ddf(0x257)](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3e1ddf(0x25a)]['UNIVER_SHEET']))[_0x3e1ddf(0x2cc)](d[_0x3e1ddf(0x280)](this[_0x3e1ddf(0x111)]))[_0x3e1ddf(0xdf)](_0xb84688=>{const _0x2d4314=_0x3e1ddf,_0x4d279f=_0xb84688['getUnitId'](),_0x17a1a2=this[_0x2d4314(0x263)]['get'](_0x4d279f);_0x17a1a2&&(_0x17a1a2[_0x2d4314(0x212)](),this[_0x2d4314(0x263)][_0x2d4314(0x29b)](_0x4d279f));});}async[_0x451cb2(0x115)](_0x261836){const _0x149c4a=_0x451cb2,_0x1f8fb5=await this[_0x149c4a(0xe5)]['requireSession'](_0x261836),_0x450999=this['_injector'][_0x149c4a(0x28b)](Ie,_0x261836,_0x1f8fb5);return _0x450999[_0x149c4a(0x1bc)](),_0x450999;}async[_0x451cb2(0x25f)](_0x1df02c){const _0x1f7868=_0x451cb2,_0x3fbbb3=await this[_0x1f7868(0xe5)][_0x1f7868(0x273)](_0x1df02c),_0x3a1b26=this['_injector'][_0x1f7868(0x28b)](Se,_0x1df02c,_0x3fbbb3);return _0x3a1b26[_0x1f7868(0x1bc)](),_0x3a1b26;}};x=lt([ie(0x0,a[_0x451cb2(0x130)]),ie(0x1,a[_0x451cb2(0x291)](a['Injector'])),ie(0x2,a[_0x451cb2(0x291)](u['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x34b06b,_0x121f14){const _0x333cb0=_0x451cb2;let {radius:_0x3d3005,width:_0x4083db,height:_0x49bd7c}=_0x121f14;_0x3d3005=_0x3d3005!=null?_0x3d3005:0x0,_0x4083db=_0x4083db!=null?_0x4083db:0x1e,_0x49bd7c=_0x49bd7c!=null?_0x49bd7c:0x1e;let _0x53199d=0x0,_0x3c5d30=0x0,_0x4153d4=0x0;_0x53199d=_0x3c5d30=_0x4153d4=Math[_0x333cb0(0xe8)](_0x3d3005,_0x4083db/0x2,_0x49bd7c/0x2),_0x34b06b[_0x333cb0(0x1b1)](),_0x34b06b[_0x333cb0(0x22c)](_0x53199d,0x0),_0x34b06b[_0x333cb0(0x2e3)](_0x4083db-_0x3c5d30,0x0),_0x34b06b[_0x333cb0(0xb3)](_0x4083db-_0x3c5d30,_0x3c5d30,_0x3c5d30,Math['PI']*0x3/0x2,0x0,!0x1),_0x34b06b[_0x333cb0(0x2e3)](_0x4083db,_0x49bd7c-_0x4153d4),_0x34b06b['arc'](_0x4083db-_0x4153d4,_0x49bd7c-_0x4153d4,_0x4153d4,0x0,Math['PI']/0x2,!0x1),_0x34b06b[_0x333cb0(0x2e3)](0x0,_0x49bd7c),_0x34b06b[_0x333cb0(0x2e3)](0x0,_0x53199d),_0x34b06b['arc'](_0x53199d,_0x53199d,_0x53199d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x34b06b[_0x333cb0(0x2d0)](),_0x121f14[_0x333cb0(0x122)]&&(_0x34b06b[_0x333cb0(0x247)](),_0x34b06b['fillStyle']=_0x121f14[_0x333cb0(0x122)],_0x121f14['fillRule']===_0x333cb0(0x20a)?_0x34b06b['fill'](_0x333cb0(0x20a)):_0x34b06b[_0x333cb0(0x122)](),_0x34b06b[_0x333cb0(0x1c9)]());}class te extends p[_0x451cb2(0x215)]{constructor(_0x11ebf9,_0x4ff041){const _0x1c9b25=_0x451cb2;super(_0x11ebf9,_0x4ff041),h(this,'color'),h(this,_0x1c9b25(0x1d7)),(this['color']=_0x4ff041==null?void 0x0:_0x4ff041[_0x1c9b25(0x1b0)],this['text']=_0x4ff041==null?void 0x0:_0x4ff041[_0x1c9b25(0x1d7)]);}static[_0x451cb2(0xa3)](_0x5c8aed,_0x5099b4){const _0x574607=_0x451cb2,{text:_0x3faa7e,color:_0x26b3df}=_0x5099b4;_0x5c8aed[_0x574607(0x247)](),_0x5c8aed[_0x574607(0x112)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x572d1b=_0x5c8aed[_0x574607(0x16a)](_0x3faa7e)[_0x574607(0x262)],_0x270924=Math[_0x574607(0xe8)](_0x572d1b+0x2*re,De);_t(_0x5c8aed,{'height':K,'radius':0x4,'width':_0x270924,'fill':_0x26b3df}),_0x5c8aed[_0x574607(0x1f2)]=_0x574607(0x16b);const _0x4cf763=re,_0x33b144=K-ht,_0x1eb736=De-0x2*re;if(_0x572d1b>_0x1eb736){let _0x5b1d89='',_0x3d51c6=0x0;for(const _0x53c58b of _0x3faa7e){const _0x85b20=_0x5c8aed[_0x574607(0x16a)](_0x53c58b)[_0x574607(0x262)];if(_0x3d51c6+_0x85b20<=_0x1eb736-_0x5c8aed['measureText'](_0x574607(0x163))[_0x574607(0x262)])_0x5b1d89+=_0x53c58b,_0x3d51c6+=_0x85b20;else{_0x5b1d89+=_0x574607(0x163);break;}}_0x5c8aed[_0x574607(0xec)](_0x5b1d89,_0x4cf763,_0x33b144);}else _0x5c8aed[_0x574607(0xec)](_0x3faa7e,_0x4cf763,_0x33b144);_0x5c8aed['restore']();}[_0x451cb2(0xe7)](_0x5e578a){te['drawWith'](_0x5e578a,this);}}const oe='collab-text-anchor-',ut='collab-text-range-',dt=_0x451cb2(0xea),B=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x451cb2(0x166);class Ue{constructor(_0x46ecb5,_0x1bacf6,_0x5dc200,_0x38b949){const _0x3d0249=_0x451cb2;h(this,'_shapes',[]),h(this,_0x3d0249(0xd0),null),h(this,_0x3d0249(0x2f5),null),h(this,_0x3d0249(0x1a3),null),h(this,_0x3d0249(0x1d3),null),h(this,_0x3d0249(0x1b4),null),(this[_0x3d0249(0x183)]=_0x46ecb5,this['_scene']=_0x1bacf6,this[_0x3d0249(0x29e)]=_0x5dc200,this[_0x3d0249(0xbf)]=_0x38b949,this[_0x3d0249(0xce)]());}set[_0x451cb2(0xc7)](_0x4ba78a){const _0x5aa2a6=_0x451cb2;_0x4ba78a?(this[_0x5aa2a6(0x1a3)]&&this['_anchorDot'][_0x5aa2a6(0x2ec)](),this[_0x5aa2a6(0x2f5)]&&this['_textBubble'][_0x5aa2a6(0x2c5)]()):(this[_0x5aa2a6(0x1a3)]&&this['_anchorDot'][_0x5aa2a6(0x2c5)](),this['_textBubble']&&this[_0x5aa2a6(0x2f5)][_0x5aa2a6(0x2ec)]());}['dispose'](){const _0x370284=_0x451cb2;for(const _0x3f8c5f of this[_0x370284(0x14d)])_0x3f8c5f['dispose']();this[_0x370284(0x2f5)]&&this['_textBubble'][_0x370284(0x212)](),this[_0x370284(0x1a3)]&&this[_0x370284(0x1a3)]['dispose'](),this[_0x370284(0xd0)]&&this[_0x370284(0xd0)][_0x370284(0x212)](),this[_0x370284(0x1b4)]&&this[_0x370284(0x1b4)]();}['_render'](){const _0x1d9165=_0x451cb2;var _0x4f7c3c;const {_docSkeleton:_0x168cb7,_document:_0x5d9256}=this,{color:_0x2c8981,name:_0x29b47d,ranges:_0x53f9ea}=this[_0x1d9165(0x183)],_0xb91621=_0x5d9256[_0x1d9165(0x30b)](),{docsLeft:_0x3badea,docsTop:_0x5d2e65}=_0xb91621,_0x395a80=new b['NodePositionConvertToCursor'](_0xb91621,_0x168cb7);for(const {startOffset:_0x2ceb11,endOffset:_0x172d82,rangeType:_0xd16cf1,segmentId:_0x537583,segmentPage:_0x76b18d,collapsed:_0x226eca,isActive:_0x1896ed}of _0x53f9ea){const _0x18895f=_0x168cb7[_0x1d9165(0xb2)](_0x2ceb11,!0x0,_0x537583,_0x76b18d);let _0x1d5aa5=_0x168cb7[_0x1d9165(0xb2)](_0x172d82,!0x0,_0x537583,_0x76b18d);if(_0x1d5aa5==null&&(_0x1d5aa5=_0x168cb7[_0x1d9165(0xb2)](_0x172d82-0x1,!0x1,_0x537583,_0x76b18d)),_0x1896ed){const {contentBoxPointGroup:_0x14ed0f}=_0x395a80[_0x1d9165(0x296)](_0x1d5aa5,_0x1d5aa5);if(_0x14ed0f[_0x1d9165(0x2f6)]===0x0)continue;this[_0x1d9165(0x259)](_0x2c8981,_0x14ed0f,_0x3badea,_0x5d2e65,_0x29b47d),this[_0x1d9165(0x1b4)]=this['_handleHover']();}if(_0x18895f&&_0x1d5aa5){if(_0xd16cf1===a[_0x1d9165(0x1ea)]['RECT']){const _0x1963ce=new b[(_0x1d9165(0x133))](_0xb91621,_0x168cb7),{pointGroup:_0x35c1cf}=(_0x4f7c3c=_0x1963ce[_0x1d9165(0x296)](_0x18895f,_0x1d5aa5))!=null?_0x4f7c3c:{};if(_0x35c1cf==null||_0x35c1cf[_0x1d9165(0x2f6)]===0x0)continue;this['_drawRectRange'](_0x2c8981,_0x35c1cf,_0x3badea,_0x5d2e65);}else{if(!_0x226eca){const {borderBoxPointGroup:_0x28dbf2}=_0x395a80[_0x1d9165(0x296)](_0x18895f,_0x1d5aa5);if(_0x28dbf2[_0x1d9165(0x2f6)]===0x0)continue;this['_drawTextRange'](_0x2c8981,_0x28dbf2,_0x3badea,_0x5d2e65);}}}}}[_0x451cb2(0x259)](_0x26c30b,_0x312a21,_0x5025b9,_0x349782,_0x4d7d08){const _0x396567=_0x451cb2,_0x7b2eec=this['_getAnchorBounding'](_0x312a21),{left:_0x3b1bfe,top:_0x500052,height:_0x461247}=_0x7b2eec,_0x59750a=this['_getScale'](),_0x3cadf4=St/_0x59750a,_0x299745=new p[(_0x396567(0x301))](oe+a[_0x396567(0x24a)][_0x396567(0x2c0)](B),{'left':_0x3b1bfe+_0x5025b9-_0x3cadf4,'top':_0x500052+_0x349782,'height':_0x461247,'width':ft,'fill':_0x26c30b||p[_0x396567(0x2f9)](a['COLORS'][_0x396567(0x184)],0x0),'strokeWidth':_0x3cadf4,'stroke':It,'evented':!0x0});this['_anchor']=_0x299745,this['_scene'][_0x396567(0x246)](_0x299745,b[_0x396567(0x216)]);const _0x3d2572=new p['Rect'](oe+a[_0x396567(0x24a)]['generateRandomId'](B),{'left':_0x3b1bfe+_0x5025b9-_0x3cadf4,'top':_0x500052+_0x349782-ae/0x2,'height':ae,'width':ae,'fill':_0x26c30b||p[_0x396567(0x2f9)](a[_0x396567(0x23e)][_0x396567(0x184)],0x0),'strokeWidth':0x0,'stroke':_0x26c30b||p[_0x396567(0x2f9)](a[_0x396567(0x23e)]['black'],0x0),'evented':!0x1});this[_0x396567(0x1a3)]=_0x3d2572,this['_scene'][_0x396567(0x246)](_0x3d2572,b[_0x396567(0x216)]);const _0x4f21b3=new te(oe+a['Tools'][_0x396567(0x2c0)](B),{'left':_0x3b1bfe+_0x5025b9-_0x3cadf4,'top':_0x500052+_0x349782-K,'text':_0x4d7d08,'color':_0x26c30b});this[_0x396567(0x2f5)]=_0x4f21b3,this[_0x396567(0x11c)][_0x396567(0x246)](_0x4f21b3,b[_0x396567(0x216)]),this[_0x396567(0xc7)]=!0x1;}['_handleHover'](){const _0x220922=_0x451cb2,_0x5ac319=this['_anchor'][_0x220922(0x128)][_0x220922(0xff)](()=>{this['_hover']=!0x0;}),_0x4a903d=this[_0x220922(0xd0)][_0x220922(0x103)][_0x220922(0xff)](()=>{const _0x5e52cb=_0x220922;this[_0x5e52cb(0x1d3)]&&clearTimeout(this[_0x5e52cb(0x1d3)]),this[_0x5e52cb(0x1d3)]=setTimeout(()=>{const _0x956597=_0x5e52cb;this[_0x956597(0xc7)]=!0x1;},0x7d0);});return()=>{const _0x5ee16e=_0x220922;_0x5ac319[_0x5ee16e(0x295)](),_0x4a903d[_0x5ee16e(0x295)]();};}[_0x451cb2(0x102)](_0x21a2ee,_0x4b2061,_0x49ab2f,_0x146dcf){const _0x1d988b=_0x451cb2,_0x4654d4=new a['ColorKit'](_0x21a2ee)[_0x1d988b(0x23c)](0.2)[_0x1d988b(0x188)](),_0x44a6dd=new p[(_0x1d988b(0x1ba))](ut+a[_0x1d988b(0x24a)][_0x1d988b(0x2c0)](B),{'pointsGroup':_0x4b2061,'fill':_0x4654d4||p[_0x1d988b(0x2f9)](a['COLORS'][_0x1d988b(0x184)],0.2),'left':_0x49ab2f,'top':_0x146dcf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1d988b(0x14d)][_0x1d988b(0x14f)](_0x44a6dd),this[_0x1d988b(0x11c)][_0x1d988b(0x246)](_0x44a6dd,b[_0x1d988b(0x216)]);}[_0x451cb2(0x226)](_0x36e698,_0x539d24,_0xf5bd49,_0x1cac20){const _0x3b7562=_0x451cb2,_0x57aac4=new a[(_0x3b7562(0x288))](_0x36e698)[_0x3b7562(0x23c)](0.2)[_0x3b7562(0x188)](),_0x3adc8e=new p['RegularPolygon'](dt+a[_0x3b7562(0x24a)][_0x3b7562(0x2c0)](B),{'pointsGroup':_0x539d24,'fill':_0x57aac4||p[_0x3b7562(0x2f9)](a['COLORS'][_0x3b7562(0x184)],0.2),'left':_0xf5bd49,'top':_0x1cac20,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3b7562(0x14d)][_0x3b7562(0x14f)](_0x3adc8e),this['_scene'][_0x3b7562(0x246)](_0x3adc8e,b[_0x3b7562(0x216)]);}[_0x451cb2(0x1cf)](_0x5e30ba){const _0x2c928f=_0x5e30ba[0x0],_0x3fae3d=_0x2c928f[0x0],_0x311b23=_0x2c928f[0x2],{x:_0x218695,y:_0x4a139f}=_0x3fae3d,{x:_0x253030,y:_0x415e30}=_0x311b23;return{'left':_0x218695,'top':_0x4a139f,'width':_0x253030-_0x218695,'height':_0x415e30-_0x4a139f};}[_0x451cb2(0xf6)](){const _0x10a199=_0x451cb2,{scaleX:_0x7a87dd,scaleY:_0x2ba3e7}=this[_0x10a199(0x11c)][_0x10a199(0x152)]();return Math[_0x10a199(0x136)](_0x7a87dd,_0x2ba3e7);}}var vt=Object['getOwnPropertyDescriptor'],gt=(_0x55fe29,_0x7c6af4,_0x588fb5,_0x18748d)=>{const _0x3f6888=_0x451cb2;for(var _0x8e684f=_0x18748d>0x1?void 0x0:_0x18748d?vt(_0x7c6af4,_0x588fb5):_0x7c6af4,_0x52f91f=_0x55fe29[_0x3f6888(0x2f6)]-0x1,_0x91b867;_0x52f91f>=0x0;_0x52f91f--)(_0x91b867=_0x55fe29[_0x52f91f])&&(_0x8e684f=_0x91b867(_0x8e684f)||_0x8e684f);return _0x8e684f;},V=(_0x588c9e,_0x3e51f1)=>(_0x3d0418,_0x43754d)=>_0x3e51f1(_0x3d0418,_0x43754d,_0x588c9e);let ve=class extends a[_0x451cb2(0x168)]{constructor(_0x41ce87,_0x2c23e7,_0x29ee01,_0x4db13e,_0x3ea4d5){const _0x77cf57=_0x451cb2;super(),h(this,_0x77cf57(0x2db),[]),h(this,_0x77cf57(0x10a),[]),(this[_0x77cf57(0x167)]=_0x41ce87,this['_docSkeletonManagerService']=_0x2c23e7,this[_0x77cf57(0x106)]=_0x29ee01,this[_0x77cf57(0x1aa)]=_0x4db13e,this[_0x77cf57(0x322)]=_0x3ea4d5,this[_0x77cf57(0x140)]());}[_0x451cb2(0x140)](){const _0x511446=_0x451cb2,_0x3a67e0=this['_context']['unitId'],_0x2bb6e9=this[_0x511446(0x1d2)];this[_0x511446(0x155)](d['combineLatest']([this[_0x511446(0x106)][_0x511446(0x1d0)](_0x3a67e0),this[_0x511446(0x322)]['currentTheme$']])[_0x511446(0x2cc)]($[_0x511446(0x164)](([_0x112018,_0xc46e47])=>({'skeleton':_0x2bb6e9['getSkeleton'](),'cursors':[..._0x112018[_0x511446(0x210)]()]['flatMap'](_0x3be071=>({..._0x3be071,'color':_0xc46e47[_0x3be071[_0x511446(0x1b0)]]}))})))[_0x511446(0xdf)](_0x1e1efa=>{const _0x220ba1=_0x511446;if(this[_0x220ba1(0x1ac)](),_0x1e1efa){const {skeleton:_0x2d35dc,cursors:_0x58d58a}=_0x1e1efa;this['_updateCollabCursors'](_0x2d35dc,_0x58d58a);}})),this[_0x511446(0x310)](),this[_0x511446(0x1cb)]();}['_updateCollabCursors'](_0x532d8e,_0x541a5f){const _0x2683c0=_0x451cb2,{scene:_0x37ca1e,mainComponent:_0x2569a3}=this[_0x2683c0(0x167)],_0x4f6a62=_0x541a5f[_0x2683c0(0x164)](_0x3797d1=>new Ue(_0x3797d1,_0x37ca1e,_0x532d8e,_0x2569a3));this[_0x2683c0(0x2db)]=_0x4f6a62,this['_cursors']=_0x541a5f;}['_refreshCollabCursors'](){const _0x413272=_0x451cb2;this['_removeCollabCursors']();const {scene:_0x20293a,mainComponent:_0x374e12}=this[_0x413272(0x167)],_0x4092eb=this['_docSkeletonManagerService'][_0x413272(0x1a5)](),_0x922764=this['_cursors'][_0x413272(0x164)](_0x270323=>new Ue(_0x270323,_0x20293a,_0x4092eb,_0x374e12));this[_0x413272(0x2db)]=_0x922764;}[_0x451cb2(0x1ac)](){const _0xe20ca2=_0x451cb2;this[_0xe20ca2(0x2db)][_0xe20ca2(0xa7)](_0x2222a5=>_0x2222a5[_0xe20ca2(0x212)]()),this[_0xe20ca2(0x2db)]=[];}[_0x451cb2(0x1cb)](){const _0x573cc2=_0x451cb2,_0x4b7151=[b['SetDocZoomRatioOperation']['id']];this[_0x573cc2(0x155)](this[_0x573cc2(0x1aa)][_0x573cc2(0x31e)](_0x8c5f3e=>{const _0x1bed06=_0x573cc2;_0x4b7151[_0x1bed06(0x1b3)](_0x8c5f3e['id'])&&_0x8c5f3e[_0x1bed06(0x274)][_0x1bed06(0x1eb)]===this[_0x1bed06(0x167)][_0x1bed06(0x1eb)]&&this[_0x1bed06(0x2b1)]();}));}[_0x451cb2(0x310)](){const _0x4bdadc=_0x451cb2;this['disposeWithMe'](a[_0x4bdadc(0x29c)](this[_0x4bdadc(0x167)]['engine'][_0x4bdadc(0x18f)])[_0x4bdadc(0x2cc)]($[_0x4bdadc(0x2ef)](_0x1cc6c1=>_0x1cc6c1['type']===p[_0x4bdadc(0x2b7)][_0x4bdadc(0x239)]),$[_0x4bdadc(0x2f8)](0x10))[_0x4bdadc(0xdf)](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a['Inject'](Y['DocSkeletonManagerService'])),V(0x2,a['Inject'](x)),V(0x3,a[_0x451cb2(0x2ce)]),V(0x4,a[_0x451cb2(0x291)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p['Shape']{constructor(_0x39a1b5,_0x4e6ca2){const _0x560174=_0x451cb2;super(_0x39a1b5,_0x4e6ca2),h(this,_0x560174(0x148)),h(this,_0x560174(0x142),!0x1),h(this,_0x560174(0x104)),h(this,_0x560174(0x1c8),''),h(this,_0x560174(0x156),_0x560174(0x21f)),h(this,_0x560174(0x27b)),(_0x4e6ca2&&this[_0x560174(0x30f)](_0x4e6ca2),this[_0x560174(0x128)][_0x560174(0xff)](()=>this[_0x560174(0x30f)]({'hovered':!0x0})),this[_0x560174(0x103)]['subscribeEvent'](()=>this[_0x560174(0x30f)]({'hovered':!0x1})));}[_0x451cb2(0x30f)](_0x1e6997){const _0x3a1fe0=_0x451cb2;var _0x43f279,_0x21b2ef,_0x20352b,_0x4712ab,_0x2bbac3,_0x158e45;this[_0x3a1fe0(0x148)]=(_0x43f279=_0x1e6997[_0x3a1fe0(0x1b0)])!=null?_0x43f279:this['_color'],this[_0x3a1fe0(0x142)]=(_0x21b2ef=_0x1e6997['hovered'])!=null?_0x21b2ef:this['_hovered'],this[_0x3a1fe0(0x104)]=(_0x20352b=_0x1e6997[_0x3a1fe0(0x2b2)])!=null?_0x20352b:this['_range'],this[_0x3a1fe0(0x1c8)]=(_0x4712ab=_0x1e6997['name'])!=null?_0x4712ab:this[_0x3a1fe0(0x1c8)],this[_0x3a1fe0(0x156)]=(_0x2bbac3=_0x1e6997[_0x3a1fe0(0x326)])!=null?_0x2bbac3:this['_labelPosition'],this[_0x3a1fe0(0x27b)]=(_0x158e45=_0x1e6997['backgroundColor'])!=null?_0x158e45:this['_backgroundColor'],this[_0x3a1fe0(0xb5)]({'width':_0x1e6997[_0x3a1fe0(0x262)],'height':_0x1e6997[_0x3a1fe0(0x251)]});}[_0x451cb2(0x29f)](_0x30766c){const _0x629b0=_0x451cb2,{row:_0x6cfec7,column:_0x285796}=_0x30766c;if(_0x6cfec7>=this[_0x629b0(0x104)][_0x629b0(0xb6)]&&_0x6cfec7<=this[_0x629b0(0x104)][_0x629b0(0x26a)]&&_0x285796>=this[_0x629b0(0x104)][_0x629b0(0x248)]&&_0x285796<=this[_0x629b0(0x104)][_0x629b0(0x2be)]){this[_0x629b0(0x30f)]({'hovered':!0x0});return;}this[_0x629b0(0x30f)]({'hovered':!0x1});}['triggerDblclick'](_0xf2a6a8){return!0x1;}[_0x451cb2(0xe7)](_0x46aee4){const _0x22f44e=_0x451cb2;p[_0x22f44e(0x301)][_0x22f44e(0xa3)](_0x46aee4,{'width':this['width'],'height':this[_0x22f44e(0x251)],'strokeWidth':Ct,'stroke':this[_0x22f44e(0x148)],'evented':!0x1,'fill':this[_0x22f44e(0x27b)]}),this[_0x22f44e(0x142)]&&(_0x46aee4['save'](),_0x46aee4[_0x22f44e(0xc5)](0x1,0x0,0x0,0x1,this[_0x22f44e(0x262)],this[_0x22f44e(0x156)]===_0x22f44e(0x2d1)?0x0:-0x14),te[_0x22f44e(0xa3)](_0x46aee4,{'text':this[_0x22f44e(0x1c8)],'color':this['_color']}),_0x46aee4[_0x22f44e(0x1c9)]());}}var pt=Object[_0x451cb2(0x14b)],bt=(_0x43349a,_0x3bb638,_0x43ff2c,_0x5e8f37)=>{const _0x434abc=_0x451cb2;for(var _0x274f8b=_0x5e8f37>0x1?void 0x0:_0x5e8f37?pt(_0x3bb638,_0x43ff2c):_0x3bb638,_0x766ef8=_0x43349a[_0x434abc(0x2f6)]-0x1,_0x4691af;_0x766ef8>=0x0;_0x766ef8--)(_0x4691af=_0x43349a[_0x766ef8])&&(_0x274f8b=_0x4691af(_0x274f8b)||_0x274f8b);return _0x274f8b;},ce=(_0x44408a,_0x411aed)=>(_0x4be80a,_0x4d529c)=>_0x411aed(_0x4be80a,_0x4d529c,_0x44408a);const Et=0x1389;let ge=class extends a[_0x451cb2(0x168)]{constructor(_0x5295fa,_0x3d36bb,_0x57f424,_0x42bae9){const _0x385bec=_0x451cb2;super(),h(this,_0x385bec(0x10a),new Set()),h(this,_0x385bec(0x2ca),null),(this[_0x385bec(0x167)]=_0x5295fa,this[_0x385bec(0x10c)]=_0x3d36bb,this['_collabCursorController']=_0x57f424,this['_themeService']=_0x42bae9,this[_0x385bec(0x140)]());}[_0x451cb2(0x140)](){const _0x1030ba=_0x451cb2;this[_0x1030ba(0x10c)][_0x1030ba(0xe6)][_0x1030ba(0x2cc)]($[_0x1030ba(0x280)](this[_0x1030ba(0x111)]),$[_0x1030ba(0x2ba)](_0x14a2a6=>{const _0x549330=_0x1030ba;if(_0x14a2a6){const _0x42f097=_0x14a2a6['sheetId'];return d[_0x549330(0x308)](this[_0x549330(0x106)][_0x549330(0x1d0)](this[_0x549330(0x167)][_0x549330(0x1eb)]),this[_0x549330(0x322)][_0x549330(0x1d1)])[_0x549330(0x2cc)]($[_0x549330(0x164)](([_0x2afd7e,_0x29b42e])=>{const _0xadcb55=_0x549330,_0xb0d6bd=new Map();return _0x2afd7e[_0xadcb55(0xa7)]((_0x1a8e33,_0x203fcf)=>{const _0x54458b=_0xadcb55;if(_0x1a8e33[_0x54458b(0x2e7)]===_0x42f097){const _0x2ac1ff={..._0x1a8e33};_0x2ac1ff['color']=_0x29b42e[_0x1a8e33['color']],_0xb0d6bd[_0x54458b(0x1b9)](_0x203fcf,_0x2ac1ff);}}),{'skeleton':_0x14a2a6,'cursors':_0xb0d6bd};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x1030ba(0xdf)](({skeleton:_0x2ba2ed,cursors:_0x5cc59e})=>{const _0x4cb250=_0x1030ba;this['_removeCollabCursors'](),_0x2ba2ed&&this[_0x4cb250(0x21d)](_0x2ba2ed,_0x5cc59e);}),this[_0x1030ba(0x10c)]['currentSkeleton$'][_0x1030ba(0xdf)](_0x16c725=>{const _0x1d1e4b=_0x1030ba;if(_0x16c725==null)return;const {skeleton:_0x439d55}=_0x16c725,{scene:_0x5b3269}=this[_0x1d1e4b(0x167)];_0x5b3269[_0x1d1e4b(0x1e5)]['subscribeEvent'](a[_0x1d1e4b(0xad)](_0x5bf71d=>{const _0x589a60=_0x1d1e4b;var _0x30b31c,_0x3d3ecc;const {offsetX:_0x2c9c6c,offsetY:_0xcc32e5}=_0x5bf71d,{x:_0x41a5f5,y:_0x2c3f46}=_0x5b3269[_0x589a60(0x141)](p[_0x589a60(0x1fe)][_0x589a60(0xdc)]([_0x2c9c6c,_0xcc32e5])),{scaleX:_0x242b14,scaleY:_0x17dc2a}=_0x5b3269['getAncestorScale'](),_0x5f28e8=_0x5b3269['getViewport'](p[_0x589a60(0xc3)]['VIEW_MAIN']),_0x476eed=_0x5b3269[_0x589a60(0x24c)](p[_0x589a60(0x1fe)][_0x589a60(0xdc)]([_0x41a5f5,_0x2c3f46]),_0x5f28e8),_0x45e70e=_0x439d55[_0x589a60(0xe1)](_0x2c9c6c,_0xcc32e5,_0x242b14,_0x17dc2a,_0x476eed);((_0x30b31c=this[_0x589a60(0x2ca)])==null?void 0x0:_0x30b31c[_0x589a60(0x2e2)])===_0x45e70e[_0x589a60(0x2e2)]&&((_0x3d3ecc=this[_0x589a60(0x2ca)])==null?void 0x0:_0x3d3ecc[_0x589a60(0x27c)])===_0x45e70e['row']||this[_0x589a60(0x10a)][_0x589a60(0xa7)](_0xf5b57e=>{const _0x503e89=_0x589a60;_0xf5b57e[_0x503e89(0x29f)](_0x45e70e);});},0x64));});}[_0x451cb2(0x21d)](_0x1e44b5,_0xb66b31){const _0x1509c8=_0x451cb2;var _0x345d35;const _0x14992a=(_0x345d35=this[_0x1509c8(0x10c)][_0x1509c8(0x19f)]())==null?void 0x0:_0x345d35[_0x1509c8(0xd3)];if(!_0x14992a)return;const _0x2d61f9=this[_0x1509c8(0x26d)]();if(!_0x2d61f9)return;this[_0x1509c8(0x10a)][_0x1509c8(0xa7)](_0x3948f7=>{_0x3948f7['makeDirty']();});const {scene:_0xdb152d}=_0x2d61f9,_0x5d9a17=Tt(Array[_0x1509c8(0x24d)](_0xb66b31[_0x1509c8(0x210)]()))[_0x1509c8(0x164)](_0x2833b7=>{const _0x202895=_0x1509c8,{color:_0x3d9c4a,range:_0x72a8c6,name:_0x32d052,selection:_0x269a7d,sheetID:_0x500c3a}=_0x2833b7,{startColumn:_0x8f8db2,startRow:_0x37403d,endColumn:_0x1a7a9b,endRow:_0xa78615}=_0x72a8c6,_0x232f8a=G[_0x202895(0x2b9)](_0x37403d,_0x8f8db2,_0xdb152d,_0x14992a),_0x4f6ae3=G[_0x202895(0x2b9)](_0xa78615,_0x1a7a9b,_0xdb152d,_0x14992a),{columnHeaderHeightAndMarginTop:_0xcae4ab}=_0x14992a,{startX:_0xa708ef,startY:_0x9d33c6}=_0x232f8a,{endX:_0x532871,endY:_0x6b22f8}=_0x4f6ae3,_0x4a18c3=_0x532871-_0xa708ef,_0x2f153f=_0x6b22f8-_0x9d33c6,_0x1c174c={'labelPosition':_0x9d33c6-_0xcae4ab>=K?'top':_0x202895(0x2d1),'sheetID':_0x500c3a,'range':_0x72a8c6,'color':_0x3d9c4a,'name':_0x32d052,'selection':_0x269a7d,'left':_0xa708ef,'top':_0x9d33c6,'width':_0x4a18c3,'height':_0x2f153f,'evented':!0x1,'zIndex':Et};return new Ae(_0x32d052,_0x1c174c);});_0xdb152d[_0x1509c8(0x123)](_0x5d9a17,mt),this[_0x1509c8(0x10a)]=new Set(_0x5d9a17);}[_0x451cb2(0x1ac)](){const _0xd26e4=_0x451cb2;var _0x19993f;(_0x19993f=this[_0xd26e4(0x10a)])==null||_0x19993f['forEach'](_0x5dc496=>_0x5dc496[_0xd26e4(0x212)]());}[_0x451cb2(0x26d)](){const _0x3513d5=_0x451cb2;return G[_0x3513d5(0x15f)](this[_0x3513d5(0x167)]['unit'],this[_0x3513d5(0x167)]);}};ge=bt([ce(0x1,a[_0x451cb2(0x291)](G[_0x451cb2(0x23b)])),ce(0x2,a[_0x451cb2(0x291)](x)),ce(0x3,a[_0x451cb2(0x291)](a[_0x451cb2(0x1df)]))],ge);function Tt(_0x5bc768){const _0x1bb985=_0x451cb2,_0x2c3b7f=new Map();return _0x5bc768['forEach'](_0x1b3668=>{const _0x587242=_0x2767;if(_0x2c3b7f['has'](_0x1b3668['selection'])){const _0x15b292=_0x2c3b7f[_0x587242(0x27e)](_0x1b3668[_0x587242(0x281)]);_0x15b292[_0x587242(0x272)]+=',\x20'+_0x1b3668[_0x587242(0x272)];}else _0x2c3b7f[_0x587242(0x1b9)](_0x1b3668['selection'],_0x1b3668);}),Array[_0x1bb985(0x24d)](_0x2c3b7f['values']());}var E=function(){const _0x5a5fed=_0x451cb2;return E=Object[_0x5a5fed(0x26c)]||function(_0xf398bd){const _0x13424f=_0x5a5fed;for(var _0x563f57,_0x47beff=0x1,_0x102bf6=arguments[_0x13424f(0x2f6)];_0x47beff<_0x102bf6;_0x47beff++){_0x563f57=arguments[_0x47beff];for(var _0x2e252f in _0x563f57)Object[_0x13424f(0x269)][_0x13424f(0x1d9)][_0x13424f(0x311)](_0x563f57,_0x2e252f)&&(_0xf398bd[_0x2e252f]=_0x563f57[_0x2e252f]);}return _0xf398bd;},E[_0x5a5fed(0x1cd)](this,arguments);},Rt=function(_0x58b80d,_0x2bec8b){const _0x2ddc40=_0x451cb2;var _0x52af0a={};for(var _0x2410a5 in _0x58b80d)Object['prototype'][_0x2ddc40(0x1d9)]['call'](_0x58b80d,_0x2410a5)&&_0x2bec8b['indexOf'](_0x2410a5)<0x0&&(_0x52af0a[_0x2410a5]=_0x58b80d[_0x2410a5]);if(_0x58b80d!=null&&typeof Object[_0x2ddc40(0x222)]=='function'){for(var _0xf479bb=0x0,_0x2410a5=Object[_0x2ddc40(0x222)](_0x58b80d);_0xf479bb<_0x2410a5[_0x2ddc40(0x2f6)];_0xf479bb++)_0x2bec8b[_0x2ddc40(0x27d)](_0x2410a5[_0xf479bb])<0x0&&Object['prototype'][_0x2ddc40(0x2fc)]['call'](_0x58b80d,_0x2410a5[_0xf479bb])&&(_0x52af0a[_0x2410a5[_0xf479bb]]=_0x58b80d[_0x2410a5[_0xf479bb]]);}return _0x52af0a;},be=M[_0x451cb2(0xc8)](function(_0x32683d,_0x16c743){const _0x405274=_0x451cb2;var _0x3c55c8=_0x32683d[_0x405274(0xbc)],_0x4247fb=_0x32683d['id'],_0x59739a=_0x32683d[_0x405274(0x22b)],_0xbe4265=_0x32683d[_0x405274(0x165)],_0x50dc2c=Rt(_0x32683d,[_0x405274(0xbc),'id','className',_0x405274(0x165)]),_0x5c21fb=_0x405274(0x17c)[_0x405274(0x12d)](_0x4247fb,'\x20')[_0x405274(0x12d)](_0x59739a||'')[_0x405274(0x192)](),_0x8becc4=M[_0x405274(0x1ef)]('_'[_0x405274(0x12d)](Ut()));return ye(_0x3c55c8,''['concat'](_0x4247fb),{'defIds':_0x3c55c8['defIds'],'idSuffix':_0x8becc4[_0x405274(0x208)]},E({'ref':_0x16c743,'className':_0x5c21fb},_0x50dc2c),_0xbe4265);});function ye(_0x111e25,_0xc206ba,_0x38c10a,_0x1556c6,_0x4f3829){const _0x4ba6e7=_0x451cb2;return M[_0x4ba6e7(0x15b)](_0x111e25[_0x4ba6e7(0x25b)],E(E({'key':_0xc206ba},Ot(_0x111e25,_0x38c10a,_0x4f3829)),_0x1556c6),(Dt(_0x111e25,_0x38c10a)[_0x4ba6e7(0x1c5)]||[])[_0x4ba6e7(0x164)](function(_0x462810,_0x4ab4cc){const _0x401e42=_0x4ba6e7;return ye(_0x462810,''[_0x401e42(0x12d)](_0xc206ba,'-')['concat'](_0x111e25[_0x401e42(0x25b)],'-')[_0x401e42(0x12d)](_0x4ab4cc),_0x38c10a,void 0x0,_0x4f3829);}));}function Ot(_0x25e323,_0xd7597e,_0x50817f){const _0xbe004=_0x451cb2;var _0x2fffaf=E({},_0x25e323[_0xbe004(0x27a)]);_0x50817f!=null&&_0x50817f[_0xbe004(0x13e)]&&_0x2fffaf[_0xbe004(0x122)]===_0xbe004(0x13e)&&(_0x2fffaf[_0xbe004(0x122)]=_0x50817f['colorChannel1']),_0x25e323[_0xbe004(0x25b)]===_0xbe004(0x218)&&_0x2fffaf['id']&&(_0x2fffaf['id']=_0x2fffaf['id']+_0xd7597e[_0xbe004(0x150)]),Object[_0xbe004(0x171)](_0x2fffaf)[_0xbe004(0xa7)](function(_0x44cdf1){const _0x12e4ea=_0xbe004;var _0x16a35f=_0x44cdf1[0x0],_0x1d9498=_0x44cdf1[0x1];_0x16a35f===_0x12e4ea(0x218)&&typeof _0x1d9498==_0x12e4ea(0x195)&&(_0x2fffaf[_0x16a35f]=_0x1d9498['replace'](/url\(#(.*)\)/,_0x12e4ea(0x294)[_0x12e4ea(0x12d)](_0xd7597e[_0x12e4ea(0x150)],')')));});var _0x530aac=_0xd7597e[_0xbe004(0x114)];return!_0x530aac||_0x530aac[_0xbe004(0x2f6)]===0x0||(_0x25e323['tag']===_0xbe004(0x11e)&&_0x2fffaf['xlink:href']&&(_0x2fffaf[_0xbe004(0x202)]=_0x2fffaf['xlink:href']+_0xd7597e[_0xbe004(0x150)]),Object[_0xbe004(0x171)](_0x2fffaf)[_0xbe004(0xa7)](function(_0x462479){const _0x25036f=_0xbe004;var _0x26c37c=_0x462479[0x0],_0x277719=_0x462479[0x1];typeof _0x277719==_0x25036f(0x195)&&(_0x2fffaf[_0x26c37c]=_0x277719[_0x25036f(0x23d)](/url\(#(.*)\)/,_0x25036f(0x294)[_0x25036f(0x12d)](_0xd7597e[_0x25036f(0x150)],')')));})),_0x2fffaf;}function Dt(_0x4a3165,_0xb539b2){const _0x539276=_0x451cb2;var _0x1389c9,_0x52a541=_0xb539b2[_0x539276(0x114)];return!_0x52a541||_0x52a541[_0x539276(0x2f6)]===0x0?_0x4a3165:_0x4a3165[_0x539276(0x25b)]===_0x539276(0x285)&&(!((_0x1389c9=_0x4a3165[_0x539276(0x1c5)])===null||_0x1389c9===void 0x0)&&_0x1389c9[_0x539276(0x2f6)])?E(E({},_0x4a3165),{'children':_0x4a3165[_0x539276(0x1c5)][_0x539276(0x164)](function(_0x54bba9){const _0x298bf0=_0x539276;return typeof _0x54bba9[_0x298bf0(0x27a)]['id']==_0x298bf0(0x195)&&_0x52a541&&_0x52a541[_0x298bf0(0x27d)](_0x54bba9[_0x298bf0(0x27a)]['id'])>-0x1?E(E({},_0x54bba9),{'attrs':E(E({},_0x54bba9[_0x298bf0(0x27a)]),{'id':_0x54bba9['attrs']['id']+_0xb539b2['idSuffix']})}):_0x54bba9;})}):_0x4a3165;}function Ut(){const _0x5c00db=_0x451cb2;return Math[_0x5c00db(0xc4)]()['toString'](0x24)[_0x5c00db(0x304)](0x2,0x8);}be[_0x451cb2(0x176)]=_0x451cb2(0x180);var Nt={'tag':_0x451cb2(0xcf),'attrs':{'fill':_0x451cb2(0x2a2),'viewBox':_0x451cb2(0x2f7),'width':_0x451cb2(0x2a3),'height':_0x451cb2(0x2a3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x451cb2(0xc6),'attrs':{'stroke':'currentColor','d':_0x451cb2(0xa8),'strokeLinecap':_0x451cb2(0x13a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x451cb2(0x285),'attrs':{},'children':[{'tag':_0x451cb2(0x181),'attrs':{'id':_0x451cb2(0xca)},'children':[{'tag':_0x451cb2(0xc6),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x451cb2(0xca)]},$e=M[_0x451cb2(0xc8)](function(_0x2cb320,_0x6ccdf0){const _0x183279=_0x451cb2;return M[_0x183279(0x15b)](be,Object[_0x183279(0x26c)]({},_0x2cb320,{'id':'off-line-single','ref':_0x6ccdf0,'icon':Nt}));});$e[_0x451cb2(0x176)]=_0x451cb2(0x207);var Mt={'tag':_0x451cb2(0xcf),'attrs':{'fill':_0x451cb2(0x2a2),'viewBox':_0x451cb2(0x1c4),'width':_0x451cb2(0x2a3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x451cb2(0x1ca)},'children':[{'tag':_0x451cb2(0xc6),'attrs':{'stroke':_0x451cb2(0x266),'d':_0x451cb2(0x120),'strokeLinecap':_0x451cb2(0x13a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x451cb2(0x285),'attrs':{},'children':[{'tag':_0x451cb2(0x181),'attrs':{'id':_0x451cb2(0x21b)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x451cb2(0x2ea),'transform':_0x451cb2(0x16c)}}]}]}],'defIds':[_0x451cb2(0x21b)]},xe=M[_0x451cb2(0xc8)](function(_0x7d621b,_0x1bf38f){const _0xcfbc44=_0x451cb2;return M['createElement'](be,Object[_0xcfbc44(0x26c)]({},_0x7d621b,{'id':'on-line-single','ref':_0x1bf38f,'icon':Mt}));});xe[_0x451cb2(0x176)]=_0x451cb2(0x25c);const Pt=_0x451cb2(0x242),wt='univer-online-status-title',Lt=_0x451cb2(0x249),At=_0x451cb2(0x250),yt='univer-offline',H={'onlineStatusIcon':Pt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':At,'offline':yt};function $t(_0x24b5be){const _0x5b685e=_0x451cb2;switch(_0x24b5be){case u[_0x5b685e(0x2b6)][_0x5b685e(0x261)]:return'collabStatus.offline';case u[_0x5b685e(0x2b6)][_0x5b685e(0x18c)]:return _0x5b685e(0x185);case u[_0x5b685e(0x2b6)][_0x5b685e(0x1d8)]:return'collabStatus.fetchMiss';case u[_0x5b685e(0x2b6)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x5b685e(0x2b6)][_0x5b685e(0x117)]:case u[_0x5b685e(0x2b6)][_0x5b685e(0x109)]:return _0x5b685e(0xe2);case u['CollaborationStatus'][_0x5b685e(0x22e)]:case u[_0x5b685e(0x2b6)][_0x5b685e(0xd9)]:return _0x5b685e(0xe4);}}function je(_0x28f477){const _0xb09c29=_0x451cb2,{status$:_0x6e1039}=_0x28f477,_0xfe4473=R[_0xb09c29(0x186)](_0x6e1039,u[_0xb09c29(0x2b6)][_0xb09c29(0x1b2)]),_0x4c31e3=R[_0xb09c29(0x28c)](a[_0xb09c29(0x319)]),_0x418477=R[_0xb09c29(0x28c)](u['CollaborationSessionService']),_0x50834e=_0xfe4473!==u[_0xb09c29(0x2b6)][_0xb09c29(0x261)],_0x108014=_0x4c31e3['t']($t(_0xfe4473)),_0x360287=T[_0xb09c29(0x100)](H['onlineStatus'],{[H['online']]:_0x50834e,[H[_0xb09c29(0x230)]]:!_0x50834e}),_0x599361=_0x50834e?w['jsx'](xe,{}):w[_0xb09c29(0x18b)]($e,{}),_0x5b4567=M[_0xb09c29(0x2c7)](()=>{_0x50834e||_0x418477['reconnect']();},[_0x50834e,_0x418477]);function _0x20afce(){const _0x1b1ae4=_0xb09c29;return w[_0x1b1ae4(0x157)]('div',{'className':T[_0x1b1ae4(0x100)](_0x360287,'univer-flex\x20univer-items-center'),'onClick':_0x5b4567,'children':[w['jsx'](_0x1b1ae4(0x12e),{'className':H[_0x1b1ae4(0x2f4)],'children':_0x599361}),w['jsx']('div',{'className':H[_0x1b1ae4(0x236)],'children':_0x108014})]});}return _0x50834e?_0x20afce():w[_0xb09c29(0x18b)](T[_0xb09c29(0xaf)],{'title':_0x4c31e3['t']('collab-client.tooltip.reconnect'),'children':_0x20afce()});}function _0x3a1b(){const _0x1453b9=['5857758irSWGd','_localStorageService','toStringTag','_refreshCollabCursors','range','unitID','_doCreateSocket','searchParams','CollaborationStatus','TRANSFORM_CHANGE_OBSERVABLE_TYPE','contains','getCoordByCell','switchMap','SheetsSelectionsService','invokeId','getFocusedUnit','endColumn','CONNECTOR_DATA_TOO_LARGE','generateRandomId','rxjs','setStateCache','_createSocketURL','PERMISSION_DENIED','show','_send','useCallback','then','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_lastPointer','SNAPSHOT_INVALID_SNAPSHOT','pipe','getDocRanges','ICommandService','CollaborationStatusDisplay','closePath','bottom','USERS_LEAVE','getLocalCacheKey','runOnServer','RichTextEditingMutation','symbol','transformMutation','_transformUndoRedoStack','toString','_docTransformStateCacheService','_cursorShapes','unshift','Error','imageSourceType','_instanceService','getUnitId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','column','lineTo','YUUMI_SUBSCRIPTION_NOT_FOUND','session.will-retry','collaboration.closeRoom','sheetID','DocCollaborationEntity','jiqing500','M0\x200H16V16H0z','ILogService','hide','@univerjs-pro/collaboration','_collaborationController','filter','mutations','LOCAL_CACHE_INTERVAL','ALREADY_EXISTS','ISocketService','onlineStatusIcon','_textBubble','length','0\x200\x2016\x2016','throttleTime','getColor','UnitStatus','DocStateChangeManagerService','propertyIsEnumerable','LICENSE_DISTRO_REJECTED','isActive','UNIVER_SHEET','_scheduleSaving','Rect','_config','_saveCache','substring','syncEditingCollabCursor','@univerjs/network','WebSocketService','combineLatest','registerComponent','ACTIVE_UNIT_EVENT_CHANNEL','getOffsetConfig','25836ZXVkXb','DeleteRangeMoveLeftCommandId','RemoveColCommandId','setShapeProps','_initResize','call','UniverCollaborationClientUIPlugin','Optional','_initStatusListener','whenReady','BehaviorSubject','_urlService','wsSessionTicketUrl','LocaleService','handleIRemoveRow','_getMergeRange','event$','getConfig','onCommandExecuted','handleInsertRangeMoveDown','activeSheet$','5Oykqye','_themeService','INTERNAL_ERROR','_transformPreviousActiveRange','_notificationService','labelPosition','handleInsertRow','assignAColorForMemberID','drawWith','exhaustSavingTask','_toggleOnline','result','forEach','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','getUndoRedoMutationParamsCache','@univerjs/sheets-ui','setUndoRedoMutationParamsCache','INVALID_INVITE_CODE','debounce','ranges','Tooltip','RemoteUniscriptService','sessionTicket','findNodePositionByCharIndex','arc','roomMembers$','transformByState','startRow','DeleteRangeMoveUpCommandId','@univerjs/ui','_beforeCloseService','entityInit$','_docStateChangeManagerService','icon','_colorIndex','newValue','_document','MemberService','DependentOn','YUUMI_UNABLE_LOAD_URL','SHEET_VIEWPORT_KEY','random','transform','path','_hover','forwardRef','Workbook','off-line-single_clip0_910_343','Disposable','isTransformMutationFailure','find','_render','svg','_anchor','getCurrentUnitForType','_saveTaskMap','skeleton','CollaborationController','getValue','size','_localCacheService','post','PENDING','SetTextSelectionsOperation','red300','FromArray','CHANGESET_REVISION_CONFILICT','Subject','subscribe','RefRangeService','getCellPositionByOffset','collabStatus.syncing','WebURLService','collabStatus.synced','_collabSessionService','currentSkeleton$','_draw','min','unload','collab-rect-range-','selections','fillText','_handleEvent','INVALID_ARGUMENT','parse','PY_RUNTIME_SCRIPT_ERROR','_unitOnClients','_onCursorDelete','location','JOIN_ROOM_FAILED','DocIMEInputManagerService','_getScale','history','INVITE_CODE_ALREADY_BOUND','handleInsertRangeMoveRight','10gcGYwh','textRanges','getItem','session.collaboration-timeout','shareReplay','subscribeEvent','clsx','collabCursorState$','_drawTextRange','onPointerLeave$','_range','Rectangle','_collabCursorController','APPLY_DUPLICATED','_initDependencies','AWAITING_WITH_PENDING','_cursors','getRenderById','_sheetSkeletonManagerService','APPLY_REVISION_CONFILICT','_online','UNDEFINED','touchDependencies','dispose$','font','_messageService','defIds','_startSheetCollabCursor','_setupBeforeClosingHandler','AWAITING','removeParam','YUUMI_URL_COL_OUT_OF_RANGE','SOCKET_FAILED_RETRY','loadUnit','_scene','loadOfflineData','use','DataLoaderService','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','MessageType','fill','addObjects','getUnitStatus$','UNAUTHENTICATED','setItem','_refRangeService','onPointerEnter$','IDocClipboardService','_handleHeartbeatEvent','SUBMIT_CHANGESET_TIMEOUT','_removeClearOtherTimer','concat','div','_entityInit$','IUniverInstanceService','MoveRangeCommandId','has','NodePositionConvertToRectRange','LICENSE_IMPORT_SIZE_EXCEEDED','getSheetBySheetId','max','getUniverSheetInstance','getMergeData','IUIPartsService','round','Injector','_httpService','InsertRangeMoveRightCommandId','colorChannel1','LOCAL_CACHE_INTERVAL_KEY','_init','getRelativeToViewportCoord','_hovered','type','_docTransformSelectionsService','override','storage','asObservable','_color','CollaborationUIEventId','1Bbpdyy','getOwnPropertyDescriptor','_unitStatus','_shapes','urlChange$','push','idSuffix','InsertColCommandId','getAncestorScale','disposeUnit','data','disposeWithMe','_labelPosition','jsxs','285MjxCsb','IBeforeCloseService','DEFAULT_WS_SESSION_TICKET_URL','createElement','@univerjs/drawing','4548103pjreuV','_renderManagerService','getSheetObject','actions','_initEvent','ITransformService','...','map','extend','rgba(255,\x20255,\x20255,\x200.01)','_context','RxDisposable','body','measureText','#FFF','translate(.97)','3399042sKLMqZ','@univerjs/sheets','APPLY_PERMISSION_DENIED','_logService','entries','m1Prime','cursorInfo$','serializeRangeWithSheet','_onRefRangeChange','displayName','redoState','createSocket','split','OTHER_CLIENT_EDITING','12029149fotYzn','univerjs-icon\x20univerjs-icon-','pushState','_transformHistoryAndStateStack','TEXT','UniverIcon','clipPath','enableLocalCache','_cursor','black','collabStatus.conflict','useObservable','@univerjs/docs-ui','toRgbString','SOCKET_FAILED','createIdentifier','jsx','CONFLICT','_clearOtherTimers','@univerjs/core','onTransformChange$','_setupSubUnitSync','_univerInstanceService','trim','_disabled','transformIMECache','string','SetSelectionsOperation','Unknown\x20user','deserializeRangeWithSheet','collaboration-client.offline-data-not-saved','_colorAssignService','error','saveTaskMap','stringify','/run/','getCurrent','gold400','registerDependencies','_scheduleHeartbeat','_anchorDot','Plugin','getSkeleton','SessionStatus','source','undoState','_handleLeaveEvent','_commandService','@univerjs-pro/collaboration-client','_removeCollabCursors','defineProperty','getSheetId','registerBeforeClose','color','beginPath','NOT_COLLAB','includes','_eventUnsubscribe','doc.mutation.rich-text-editing','_status$','ISnapshotServerService','permission.content','set','RegularPolygon','executeCommand','init','Module','DisposableCollection','runId','UPDATE_CURSOR','_dataLoaderService','_handleJoinEvent','_initStatusComponent','0\x200\x2017\x2016','children','_cachedData','_revisionService','_name','restore','url(#on-line-single_clip0_910_349)','_initCommandExecutedListener','OTHER_CLIENTS_EDITING','apply','replaceState','_getAnchorBounding','getCollabCursors$','currentTheme$','_docSkeletonManagerService','_hideTimer','_scheduleClearOtherTimer','@univerjs/engine-render','_docClipboardService','text','FETCH_MISS','hasOwnProperty','LICENSE_EXPORT_SIZE_EXCEEDED','ONLINE','_collabCursorState$','_toggleOffline','DesktopCollaborationStatusDisplayController','ThemeService','_memberService','ENSURE_SNAPSHOT_EXECUTION','transformSelections','getParam','next','onPointerMove$','_updateURLWithCurrentState','focused$','handleMoveRange','registerRefRange','DOC_RANGE_TYPE','unitId','isTransformMutationsWithChangesetSuccess','startsWith','[RemoteUniscriptService]:\x20no\x20focused\x20unit','useRef','_getSaveTimeout','BrowserCollaborationSocketService','fillStyle','IRemoteInstanceService','onStarting','Warning','HTTPService','unit','sessionStatus$','eventID','_onCursorUpdate','EffectRefRangId','_roomMembers$','CollaborationDataLoaderController','Vector2','HEADER_MENU','getUnhiddenWorksheets','LICENSE_MAX_UNITS_EXCEEDED','xlink:href','CollaborationEvent','uni.network.url-service','InsertRangeMoveDownCommandId','_docTransformIMECacheService','OffLineSingle','current','NOT_FOUND','evenodd','_transformService','editingUnit','with','ILocalStorageService','_uiPartsService','values','mergeOverrideWithDependencies','dispose','LOGIN_FAILED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Shape','TEXT_RANGE_LAYER_INDEX','addEventListener','mask','_configService','_collaborationUIEventService','on-line-single_clip0_910_349','clearTimeout','_updateCollabCursors','IMessageService','top','ILocalCacheService','_assignedColors','getOwnPropertySymbols','TOO_MANY_REQUESTS','_injector','toDisposable','_drawRectRange','2519880JeKzah','[CollaborationDataLoaderController]','YUUMI_RATE_OVER_LIMIT','mapTo','className','moveTo','_updateLocalCursor','SYNCED','DocSelectionManagerService','offline','_cursorInfo$','connectInjector','clearInterval','complete','key','onlineStatusTitle','saveOfflineData','_imageIoService','resize','SheetCollabCursorShape','SheetSkeletonManagerService','setAlpha','replace','COLORS','_ensureSubject','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_getSessionTicket','univer-online-status-icon','executionId','add','INVITE_CODE_HAS_BEEN_UES','addObject','save','startColumn','univer-online-status','Tools','getStateCache','getVpScrollXYInfoByPosToVp','from','_registerRenderDependencies','_selfUnitIDs','univer-online','height','WebBrowserSingleActiveUnitService','transformMutationsWithChangeset','SetWorksheetActivateCommand','status$','href','getTypeOfUnitDisposed$','roomMembers','_drawAnchor','UniverInstanceType','tag','OnLineSingle','deepClone','_updateSubUnitFromURLParams','_startDocCollabCursor','addHandlerCallback','OFFLINE','width','_entities','_registerDependencies','CollaborationUIEventService','currentColor','IRenderManagerService','debounceTime','prototype','endRow','cursorInfo','assign','_getSheetObject','docStateChange$','handleInsertCol','fromEvent','replaceDocRanges','name','requireSession','params','IURLService','addClipboardHook','collaboration.single-unit.warning','m2Prime','IImageIoService','attrs','_backgroundColor','row','indexOf','get','CommandType','takeUntil','selection','transformStateCache','merge','debug','defs','_syncEditingCollabCursorService','_heartbeatTimer','ColorKit','updateOfflineData','_id','createInstance','useDependency','@univerjs/rpc','purple300','isArray','APPLY_NON_SEQUENTIAL_REVISION','Inject','getCollabEntity$','registerRenderModule','url(#$1','unsubscribe','getRangePointData','APPLY_REJECT','UNRECOGNIZED','@univerjs/design','RemoveRowCommandId','delete','fromEventSubject','8434ANGZyI','_docSkeleton','onMouseMove','_docSyncEditingCollabCursorService','_session','none','1em','COMPLETION_FINISHED','getMember','InsertRowCommandId','session.connection-failed','_localeService','MUTATION','SNAPSHOT_HAS_BEEN_REMOVED','NO_OTHER_CLIENTS_EDITING','send','IConfigService'];_0x3a1b=function(){return _0x1453b9;};return _0x3a1b();}var xt=Object[_0x451cb2(0x14b)],jt=(_0x4640ba,_0x4e5fa9,_0xa11d4c,_0x25f971)=>{const _0x4ecea1=_0x451cb2;for(var _0x34ec88=_0x25f971>0x1?void 0x0:_0x25f971?xt(_0x4e5fa9,_0xa11d4c):_0x4e5fa9,_0x275f09=_0x4640ba[_0x4ecea1(0x2f6)]-0x1,_0x2bf237;_0x275f09>=0x0;_0x275f09--)(_0x2bf237=_0x4640ba[_0x275f09])&&(_0x34ec88=_0x2bf237(_0x34ec88)||_0x34ec88);return _0x34ec88;},X=(_0x27ca7f,_0x502fb1)=>(_0x1858c9,_0x5acfa4)=>_0x502fb1(_0x1858c9,_0x5acfa4,_0x27ca7f);exports[_0x451cb2(0x1de)]=class extends a[_0x451cb2(0xcb)]{constructor(_0x3ba1ee,_0x1c9a66,_0x801d6b,_0xc7d88c){const _0x46c6e9=_0x451cb2;super(),h(this,_0x46c6e9(0x1b6),new d[(_0x46c6e9(0x316))](u['CollaborationStatus']['NOT_COLLAB'])),(this['_univerInstanceService']=_0x3ba1ee,this[_0x46c6e9(0x224)]=_0x1c9a66,this['_collaborationController']=_0x801d6b,this['_uiPartsService']=_0xc7d88c,this[_0x46c6e9(0x1c3)](),this[_0x46c6e9(0x314)]());}['_initStatusListener'](){const _0x517943=_0x451cb2;this[_0x517943(0x155)](this[_0x517943(0x191)][_0x517943(0x1e7)]['pipe'](d[_0x517943(0x2ba)](()=>{const _0x36202d=_0x517943,_0x15f0cb=this[_0x36202d(0x191)]['getFocusedUnit']();return _0x15f0cb?this['_collaborationController'][_0x36202d(0x292)](_0x15f0cb['getUnitId']()):d['of'](null);}),d['switchMap'](_0x7506d4=>_0x7506d4?_0x7506d4[_0x517943(0x255)]:d['of'](u[_0x517943(0x2b6)][_0x517943(0x1b2)])))[_0x517943(0xdf)](_0x2febd4=>{const _0x28f71d=_0x517943;this[_0x28f71d(0x1b6)][_0x28f71d(0x1e4)](_0x2febd4);}));}[_0x451cb2(0x1c3)](){const _0x4254b1=_0x451cb2;this[_0x4254b1(0x155)](this[_0x4254b1(0x20f)][_0x4254b1(0x309)](R['BuiltInUIPart'][_0x4254b1(0x1ff)],()=>R[_0x4254b1(0x232)](kt({'status$':this['_status$']['asObservable']()}),this[_0x4254b1(0x224)])));}},exports[_0x451cb2(0x1de)]=jt([X(0x0,a[_0x451cb2(0x130)]),X(0x1,a['Inject'](a[_0x451cb2(0x13b)])),X(0x2,a[_0x451cb2(0x291)](u[_0x451cb2(0xd4)])),X(0x3,R[_0x451cb2(0x139)])],exports[_0x451cb2(0x1de)]);function kt(_0x1670cd){const {status$:_0x36d059}=_0x1670cd;return function(){const _0x7eb6ca=_0x2767;return w[_0x7eb6ca(0x18b)](je,{'status$':_0x36d059});};}var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0x2cbac1,_0x4998e4,_0x15283a,_0x4b7b46)=>{const _0x54f3db=_0x451cb2;for(var _0x2fb928=_0x4b7b46>0x1?void 0x0:_0x4b7b46?Bt(_0x4998e4,_0x15283a):_0x4998e4,_0x41e6fd=_0x2cbac1[_0x54f3db(0x2f6)]-0x1,_0x5e1f6c;_0x41e6fd>=0x0;_0x41e6fd--)(_0x5e1f6c=_0x2cbac1[_0x41e6fd])&&(_0x2fb928=_0x5e1f6c(_0x2fb928)||_0x2fb928);return _0x2fb928;},y=(_0x4424b8,_0x56d9b4)=>(_0x3392ca,_0x37f01b)=>_0x56d9b4(_0x3392ca,_0x37f01b,_0x4424b8);let z=class extends a[_0x451cb2(0xcb)]{constructor(_0x2759c4,_0x38a3ac,_0x380768,_0x1792c7,_0x54c9a9,_0x488ad0){const _0x5cdead=_0x451cb2;super(),this[_0x5cdead(0xb9)]=_0x2759c4,this[_0x5cdead(0xd7)]=_0x38a3ac,this[_0x5cdead(0x21a)]=_0x380768,this['_messageService']=_0x1792c7,this['_notificationService']=_0x54c9a9,this[_0x5cdead(0x2a8)]=_0x488ad0,this[_0x5cdead(0x116)](),this[_0x5cdead(0x161)]();}[_0x451cb2(0x116)](){const _0x53ddfc=_0x451cb2;this[_0x53ddfc(0x155)](this['_beforeCloseService'][_0x53ddfc(0x1af)](()=>{const _0x2bd1c9=_0x53ddfc;if(this[_0x2bd1c9(0xd7)]['saveTaskMap'][_0x2bd1c9(0xd6)])return this['_localeService']['t'](_0x2bd1c9(0x199));}));}[_0x451cb2(0x161)](){const _0x115b85=_0x451cb2;this[_0x115b85(0x155)](this['_collaborationUIEventService'][_0x115b85(0x31c)][_0x115b85(0xdf)](_0x220d62=>{const _0x16089c=_0x115b85;_0x220d62['id']===u[_0x16089c(0x149)][_0x16089c(0x17a)]&&this[_0x16089c(0x113)][_0x16089c(0x2c5)]({'type':T[_0x16089c(0x121)][_0x16089c(0x1f5)],'content':this[_0x16089c(0x2a8)]['t'](_0x16089c(0x277))}),_0x220d62['id']===u[_0x16089c(0x149)]['CLOSE_ROOM']&&this['_messageService'][_0x16089c(0x2c5)]({'type':T[_0x16089c(0x121)][_0x16089c(0x1f5)],'content':this[_0x16089c(0x2a8)]['t'](_0x16089c(0x2e6))}),_0x220d62['id']===u[_0x16089c(0x149)][_0x16089c(0x2c4)]&&this[_0x16089c(0x325)][_0x16089c(0x2c5)]({'title':this[_0x16089c(0x2a8)]['t']('permission.title'),'content':this['_localeService']['t'](_0x16089c(0x1b8)),'type':'error','duration':0x0}),_0x220d62['id']===u[_0x16089c(0x149)]['CONFLICT']&&this[_0x16089c(0x113)][_0x16089c(0x2c5)]({'type':T[_0x16089c(0x121)]['Error'],'content':this[_0x16089c(0x2a8)]['t'](_0x16089c(0x2e6))+'('+_0x220d62[_0x16089c(0x154)]+')'}),_0x220d62['id']===u[_0x16089c(0x149)][_0x16089c(0xf4)]&&this[_0x16089c(0x113)][_0x16089c(0x2c5)]({'type':T[_0x16089c(0x121)][_0x16089c(0x1f5)],'content':this[_0x16089c(0x2a8)]['t'](_0x220d62[_0x16089c(0x154)]||'')}),_0x220d62['id']===u[_0x16089c(0x149)][_0x16089c(0x11a)]&&this[_0x16089c(0x113)]['show']({'type':T[_0x16089c(0x121)]['Warning'],'content':this[_0x16089c(0x2a8)]['t'](_0x16089c(0x2e5))}),_0x220d62['id']===u[_0x16089c(0x149)][_0x16089c(0x189)]&&this[_0x16089c(0x113)][_0x16089c(0x2c5)]({'type':T[_0x16089c(0x121)][_0x16089c(0x2dd)],'content':this[_0x16089c(0x2a8)]['t'](_0x16089c(0x2a7))}),_0x220d62['id']===u[_0x16089c(0x149)][_0x16089c(0x12b)]&&this[_0x16089c(0x113)][_0x16089c(0x2c5)]({'type':T[_0x16089c(0x121)]['Error'],'content':this[_0x16089c(0x2a8)]['t'](_0x16089c(0xfd))});}));}};z=Ht([y(0x0,R[_0x451cb2(0x159)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x451cb2(0x291)](u[_0x451cb2(0x265)])),y(0x3,R[_0x451cb2(0x21e)]),y(0x4,R['INotificationService']),y(0x5,a[_0x451cb2(0x291)](a['LocaleService']))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a[_0x451cb2(0x18a)](_0x451cb2(0x204));var Wt=Object[_0x451cb2(0x14b)],Yt=(_0x491511,_0x5ab28f,_0x4e2a54,_0x3e2393)=>{const _0x188b9b=_0x451cb2;for(var _0x2f2790=_0x3e2393>0x1?void 0x0:_0x3e2393?Wt(_0x5ab28f,_0x4e2a54):_0x5ab28f,_0x61570=_0x491511[_0x188b9b(0x2f6)]-0x1,_0x5ce239;_0x61570>=0x0;_0x61570--)(_0x5ce239=_0x491511[_0x61570])&&(_0x2f2790=_0x5ce239(_0x2f2790)||_0x2f2790);return _0x2f2790;},F=(_0x16d82e,_0x2c8299)=>(_0x71813e,_0x35a749)=>_0x2c8299(_0x71813e,_0x35a749,_0x16d82e);exports[_0x451cb2(0x1fd)]=class extends a[_0x451cb2(0x168)]{constructor(_0x5ed52a,_0x32520b,_0x2ca92c,_0x59bdfd,_0x2d9cda){const _0x48b13e=_0x451cb2;super(),this[_0x48b13e(0x317)]=_0x5ed52a,this[_0x48b13e(0x170)]=_0x32520b,this[_0x48b13e(0x1aa)]=_0x2ca92c,this[_0x48b13e(0x1c1)]=_0x59bdfd,_0x2d9cda?_0x2d9cda==null||_0x2d9cda[_0x48b13e(0x315)]()[_0x48b13e(0x2c8)](()=>this[_0x48b13e(0x140)]()):(this['_logService']['debug'](_0x48b13e(0x228),_0x48b13e(0x214)),this[_0x48b13e(0x140)]());}async['_init'](){const _0x3db7c5=_0x451cb2,_0x31ae88=this[_0x3db7c5(0x317)][_0x3db7c5(0x1e3)](_0x3db7c5(0x1f7)),_0x435d91=this[_0x3db7c5(0x317)][_0x3db7c5(0x1e3)](_0x3db7c5(0x143)),_0x296b02=this[_0x3db7c5(0x317)]['getParam']('subunit');if(!_0x31ae88||!_0x435d91){this[_0x3db7c5(0x170)][_0x3db7c5(0x284)](_0x3db7c5(0x228),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x51dd27=await this['_dataLoaderService'][_0x3db7c5(0x11b)](_0x31ae88,Number(_0x435d91),_0x296b02);_0x51dd27&&_0x51dd27 instanceof a[_0x3db7c5(0xc9)]&&this[_0x3db7c5(0x190)](_0x51dd27);}async[_0x451cb2(0x190)](_0xc358f5){const _0x20e131=_0x451cb2;await this[_0x20e131(0x25e)](_0xc358f5),_0xc358f5[_0x20e131(0x320)]['pipe'](d[_0x20e131(0x280)](this[_0x20e131(0x111)]))[_0x20e131(0xdf)](_0x134aaf=>{const _0x1b7c4a=_0x20e131;_0x134aaf&&this[_0x1b7c4a(0x1e6)](_0x134aaf);}),this[_0x20e131(0x317)][_0x20e131(0x14e)]['pipe'](d['takeUntil'](this['dispose$']))[_0x20e131(0xdf)](()=>this[_0x20e131(0x25e)](_0xc358f5));}[_0x451cb2(0x1e6)](_0x239dca,_0x55074a=!0x1){const _0x46ad45=_0x451cb2,_0x392018=this[_0x46ad45(0x317)]['getParam']('subunit');_0x239dca[_0x46ad45(0x1ae)]()!==_0x392018&&this['_urlService']['setParam']('subunit',_0x239dca['getSheetId'](),_0x55074a);}async[_0x451cb2(0x25e)](_0x2e24af){const _0x3e287c=_0x451cb2;var _0x268b74;const _0x4ac472=this[_0x3e287c(0x317)][_0x3e287c(0x1e3)]('subunit');if(!_0x4ac472||!_0x2e24af[_0x3e287c(0x135)](_0x4ac472)){const _0x21f68e=_0x2e24af[_0x3e287c(0x200)]()[0x0],_0x137271=_0x2e24af[_0x3e287c(0x135)](_0x21f68e);if(!_0x137271)return;this[_0x3e287c(0x1e6)](_0x137271,!0x0),await this[_0x3e287c(0x1aa)][_0x3e287c(0x1bb)](g[_0x3e287c(0x254)]['id'],{'unitId':_0x2e24af['getUnitId'](),'subUnitId':_0x21f68e});return;}((_0x268b74=_0x2e24af['getActiveSheet']())==null?void 0x0:_0x268b74[_0x3e287c(0x1ae)]())!==_0x4ac472&&await this[_0x3e287c(0x1aa)][_0x3e287c(0x1bb)](g[_0x3e287c(0x254)]['id'],{'unitId':_0x2e24af[_0x3e287c(0x2e0)](),'subUnitId':_0x4ac472});}},exports[_0x451cb2(0x1fd)]=Yt([F(0x0,Ee),F(0x1,a[_0x451cb2(0x2eb)]),F(0x2,a['ICommandService']),F(0x3,a[_0x451cb2(0x291)](u[_0x451cb2(0x11f)])),F(0x4,a[_0x451cb2(0x313)](Ke[_0x451cb2(0x1f3)]))],exports[_0x451cb2(0x1fd)]);var Vt=Object[_0x451cb2(0x14b)],Xt=(_0x2e4112,_0x4c87e4,_0x24d0ae,_0x3bd61e)=>{const _0x73c49c=_0x451cb2;for(var _0x5f004c=_0x3bd61e>0x1?void 0x0:_0x3bd61e?Vt(_0x4c87e4,_0x24d0ae):_0x4c87e4,_0x2c2e02=_0x2e4112[_0x73c49c(0x2f6)]-0x1,_0x1660ea;_0x2c2e02>=0x0;_0x2c2e02--)(_0x1660ea=_0x2e4112[_0x2c2e02])&&(_0x5f004c=_0x1660ea(_0x5f004c)||_0x5f004c);return _0x5f004c;},le=(_0x51657a,_0x6a192d)=>(_0x47e8ba,_0x3c7696)=>_0x6a192d(_0x47e8ba,_0x3c7696,_0x51657a);let J=class{constructor(_0x5768b4,_0x2e9ade,_0x3392b3){const _0x2b6c2c=_0x451cb2;this[_0x2b6c2c(0x224)]=_0x5768b4,this[_0x2b6c2c(0x20b)]=_0x2e9ade,this['_renderManagerService']=_0x3392b3;}[_0x451cb2(0x194)](_0x29ab39){this['_transformUndoRedoStack'](_0x29ab39),this['_transformPreviousActiveRange'](_0x29ab39);}['transformRemoteChangeset'](_0x34d665){const _0x49c922=_0x451cb2,{unitID:_0x5d63e5}=_0x34d665,_0x52c3e7=this[_0x49c922(0x15e)][_0x49c922(0x10b)](_0x5d63e5)[_0x49c922(0x20d)](b[_0x49c922(0xf5)]),{redoCache:_0x145ca6}=_0x52c3e7[_0x49c922(0xa9)]();if(_0x145ca6[_0x49c922(0x2f6)]===0x0)return _0x34d665;let _0x3ec925=a[_0x49c922(0x24a)]['deepClone'](_0x34d665['mutations'][0x0]);for(let _0x5bb056=0x0;_0x5bb056<_0x145ca6['length'];_0x5bb056++){const _0x3bd62b={'id':_0x49c922(0x1b5),'params':{..._0x145ca6[_0x5bb056]}},_0x514950=this[_0x49c922(0x20b)][_0x49c922(0x2d7)](_0x3ec925,_0x3bd62b,!0x1);if(m[_0x49c922(0xcc)](_0x514950))throw _0x514950['error'];_0x3ec925=_0x514950[_0x49c922(0x172)];}return{...a[_0x49c922(0x24a)][_0x49c922(0x25d)](_0x34d665),'mutations':[_0x3ec925]};}[_0x451cb2(0x2d8)](_0x4cffe4){const _0x48981f=_0x451cb2,{unitID:_0x3cf8ff}=_0x4cffe4,_0x28ccef=this[_0x48981f(0x15e)]['getRenderById'](_0x3cf8ff)[_0x48981f(0x20d)](b[_0x48981f(0xf5)]),{undoCache:_0x56aa90,redoCache:_0x1f256f}=_0x28ccef[_0x48981f(0xa9)]();if(_0x56aa90[_0x48981f(0x2f6)]===0x0||_0x1f256f[_0x48981f(0x2f6)]===0x0)return;const _0x38ec70=[],_0x11f082=[];let _0x2dc55a=a[_0x48981f(0x24a)][_0x48981f(0x25d)](_0x4cffe4[_0x48981f(0x2f0)][0x0]),_0x4df516=a[_0x48981f(0x24a)]['deepClone'](_0x4cffe4[_0x48981f(0x2f0)][0x0]);for(let _0x5a366c=_0x56aa90[_0x48981f(0x2f6)]-0x1;_0x5a366c>=0x0;_0x5a366c--){const _0x32a5e4={'id':_0x48981f(0x1b5),'params':{..._0x56aa90[_0x5a366c]}},_0x276ba6={'id':_0x48981f(0x1b5),'params':{..._0x1f256f[_0x5a366c]}},_0x1757d1=this[_0x48981f(0x20b)][_0x48981f(0x2d7)](_0x2dc55a,_0x32a5e4,!0x1),_0x399dc4=this[_0x48981f(0x20b)]['transformMutation'](_0x4df516,_0x276ba6,!0x1);if(m[_0x48981f(0xcc)](_0x1757d1))throw _0x1757d1[_0x48981f(0x19b)];if(m['isTransformMutationFailure'](_0x399dc4))throw _0x399dc4[_0x48981f(0x19b)];_0x38ec70[_0x48981f(0x2dc)](_0x1757d1[_0x48981f(0x278)][_0x48981f(0x274)]),_0x11f082[_0x48981f(0x2dc)](_0x399dc4[_0x48981f(0x278)][_0x48981f(0x274)]),_0x2dc55a=_0x1757d1[_0x48981f(0x172)],_0x4df516=_0x399dc4[_0x48981f(0x172)];}_0x28ccef[_0x48981f(0xab)]({'undoCache':_0x38ec70,'redoCache':_0x11f082});}[_0x451cb2(0x324)](_0x4eba74){const _0x3cc3ab=_0x451cb2,{unitID:_0x21e43e}=_0x4eba74,_0xdc3585=this[_0x3cc3ab(0x15e)][_0x3cc3ab(0x10b)](_0x21e43e)[_0x3cc3ab(0x20d)](b[_0x3cc3ab(0xf5)]),_0x3dc284=_0xdc3585['getActiveRange']();if(_0x3dc284==null)return;const _0x525b22=[{'id':_0x3cc3ab(0x1b5),'params':{'unitId':_0x4eba74[_0x3cc3ab(0x2b3)],'actions':null,'textRanges':[_0x3dc284]}}],_0xaeda4b=this[_0x3cc3ab(0x20b)][_0x3cc3ab(0x253)](_0x4eba74,_0x525b22);if(!m[_0x3cc3ab(0x1ec)](_0xaeda4b))throw _0xaeda4b[_0x3cc3ab(0x19b)];const _0x1777d2=_0xaeda4b[_0x3cc3ab(0x278)][0x0]['params'][_0x3cc3ab(0xfb)];Array[_0x3cc3ab(0x28f)](_0x1777d2)&&_0x1777d2['length']&&_0xdc3585['setActiveRange'](_0x1777d2[0x0]);}};J=Xt([le(0x0,a[_0x451cb2(0x291)](a['Injector'])),le(0x1,m['ITransformService']),le(0x2,p[_0x451cb2(0x267)])],J);var Gt=Object[_0x451cb2(0x14b)],qt=(_0x23a249,_0xcee86c,_0x13eb7d,_0x968220)=>{for(var _0x920439=_0x968220>0x1?void 0x0:_0x968220?Gt(_0xcee86c,_0x13eb7d):_0xcee86c,_0x5cfc6d=_0x23a249['length']-0x1,_0x3d3ce5;_0x5cfc6d>=0x0;_0x5cfc6d--)(_0x3d3ce5=_0x23a249[_0x5cfc6d])&&(_0x920439=_0x3d3ce5(_0x920439)||_0x920439);return _0x920439;},he=(_0x11d311,_0x9f509a)=>(_0x831d9e,_0x486914)=>_0x9f509a(_0x831d9e,_0x486914,_0x11d311);let Z=class{constructor(_0x44488e,_0x5e6a28,_0x2255c1){const _0x32e580=_0x451cb2;this[_0x32e580(0x224)]=_0x44488e,this[_0x32e580(0x20b)]=_0x5e6a28,this[_0x32e580(0xbb)]=_0x2255c1;}[_0x451cb2(0x282)](_0x538c59){const _0x533320=_0x451cb2;this[_0x533320(0x17e)](_0x538c59);}['transformRemoteChangeset'](_0xf8516c){const _0x244922=_0x451cb2,{unitID:_0x4f5214}=_0xf8516c,{collaboration:_0xeb6250}=this['_docStateChangeManagerService'][_0x244922(0x24b)](_0x4f5214);if(_0xeb6250[_0x244922(0x2f6)]===0x0)return _0xf8516c;let _0x511ad4=a[_0x244922(0x24a)]['deepClone'](_0xf8516c[_0x244922(0x2f0)][0x0]);for(let _0x368c51=0x0;_0x368c51<_0xeb6250['length'];_0x368c51++){const _0x2d7491={'id':_0x244922(0x1b5),'params':{'unitId':_0xeb6250[_0x368c51][_0x244922(0x1eb)],..._0xeb6250[_0x368c51][_0x244922(0x177)]}},_0x4ceed3=this['_transformService'][_0x244922(0x2d7)](_0x511ad4,_0x2d7491,!0x1);if(m[_0x244922(0xcc)](_0x4ceed3))throw _0x4ceed3[_0x244922(0x19b)];_0x511ad4=_0x4ceed3['m1Prime'];}return{...a['Tools'][_0x244922(0x25d)](_0xf8516c),'mutations':[_0x511ad4]};}['_transformHistoryAndStateStack'](_0x5636a7){const _0x4690f2=_0x451cb2,{unitID:_0x2b85e8}=_0x5636a7,{history:_0x362959,collaboration:_0x31bb38}=this[_0x4690f2(0xbb)]['getStateCache'](_0x2b85e8);if(_0x362959[_0x4690f2(0x2f6)]===0x0&&_0x31bb38[_0x4690f2(0x2f6)]===0x0)return;const _0x35eaa2=[],_0x4acd77=[];let _0x3aeeb6=a[_0x4690f2(0x24a)][_0x4690f2(0x25d)](_0x5636a7[_0x4690f2(0x2f0)][0x0]),_0xed4041=a['Tools'][_0x4690f2(0x25d)](_0x5636a7[_0x4690f2(0x2f0)][0x0]);for(let _0x4ccd47=_0x362959[_0x4690f2(0x2f6)]-0x1;_0x4ccd47>=0x0;_0x4ccd47--){const _0x36ef66={'id':_0x4690f2(0x1b5),'params':{'unitId':_0x362959[_0x4ccd47][_0x4690f2(0x1eb)],..._0x362959[_0x4ccd47][_0x4690f2(0x1a8)]}},_0x1a7e5b={'id':_0x4690f2(0x1b5),'params':{'unitId':_0x362959[_0x4ccd47][_0x4690f2(0x1eb)],..._0x362959[_0x4ccd47][_0x4690f2(0x177)]}},_0xb3ca5c=this[_0x4690f2(0x20b)]['transformMutation'](_0x3aeeb6,_0x36ef66,!0x1),_0x37cf4c=this['_transformService'][_0x4690f2(0x2d7)](_0xed4041,_0x1a7e5b,!0x1);if(m['isTransformMutationFailure'](_0xb3ca5c))throw _0xb3ca5c[_0x4690f2(0x19b)];if(m[_0x4690f2(0xcc)](_0x37cf4c))throw _0x37cf4c[_0x4690f2(0x19b)];_0x35eaa2[_0x4690f2(0x2dc)]({..._0x362959[_0x4ccd47],'undoState':_0xb3ca5c[_0x4690f2(0x278)]['params'],'redoState':_0x37cf4c[_0x4690f2(0x278)]['params']}),_0x3aeeb6=_0xb3ca5c[_0x4690f2(0x172)],_0xed4041=_0x37cf4c['m1Prime'];}_0x3aeeb6=a[_0x4690f2(0x24a)]['deepClone'](_0x5636a7[_0x4690f2(0x2f0)][0x0]),_0xed4041=a[_0x4690f2(0x24a)][_0x4690f2(0x25d)](_0x5636a7[_0x4690f2(0x2f0)][0x0]);for(let _0x5efef6=_0x31bb38['length']-0x1;_0x5efef6>=0x0;_0x5efef6--){const _0x29bfdc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x31bb38[_0x5efef6][_0x4690f2(0x1eb)],..._0x31bb38[_0x5efef6][_0x4690f2(0x1a8)]}},_0x51f958={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x31bb38[_0x5efef6][_0x4690f2(0x1eb)],..._0x31bb38[_0x5efef6][_0x4690f2(0x177)]}},_0x494e1a=this['_transformService'][_0x4690f2(0x2d7)](_0x3aeeb6,_0x29bfdc,!0x1),_0x3d4ed9=this['_transformService'][_0x4690f2(0x2d7)](_0xed4041,_0x51f958,!0x1);if(m[_0x4690f2(0xcc)](_0x494e1a))throw _0x494e1a[_0x4690f2(0x19b)];if(m[_0x4690f2(0xcc)](_0x3d4ed9))throw _0x3d4ed9['error'];_0x4acd77[_0x4690f2(0x2dc)]({..._0x31bb38[_0x5efef6],'undoState':_0x494e1a[_0x4690f2(0x278)]['params'],'redoState':_0x3d4ed9[_0x4690f2(0x278)][_0x4690f2(0x274)]}),_0x3aeeb6=_0x494e1a[_0x4690f2(0x172)],_0xed4041=_0x3d4ed9[_0x4690f2(0x172)];}this[_0x4690f2(0xbb)][_0x4690f2(0x2c2)](_0x2b85e8,{'history':_0x35eaa2,'collaboration':_0x4acd77});}};Z=qt([he(0x0,a[_0x451cb2(0x291)](a[_0x451cb2(0x13b)])),he(0x1,m['ITransformService']),he(0x2,a[_0x451cb2(0x291)](b[_0x451cb2(0x2fb)]))],Z);var Kt=Object[_0x451cb2(0x14b)],zt=(_0x26f5d2,_0x2cb9ec,_0x4f74f4,_0x444628)=>{const _0x41ac9a=_0x451cb2;for(var _0x10f4fd=_0x444628>0x1?void 0x0:_0x444628?Kt(_0x2cb9ec,_0x4f74f4):_0x2cb9ec,_0x31bf28=_0x26f5d2[_0x41ac9a(0x2f6)]-0x1,_0x9089df;_0x31bf28>=0x0;_0x31bf28--)(_0x9089df=_0x26f5d2[_0x31bf28])&&(_0x10f4fd=_0x9089df(_0x10f4fd)||_0x10f4fd);return _0x10f4fd;},Me=(_0x3a498c,_0x1b2cf8)=>(_0x375ef1,_0xd74b6c)=>_0x1b2cf8(_0x375ef1,_0xd74b6c,_0x3a498c);let Q=class{constructor(_0x25151a,_0x19a32){const _0xdc9c5b=_0x451cb2;this[_0xdc9c5b(0x224)]=_0x25151a,this[_0xdc9c5b(0x20b)]=_0x19a32;}[_0x451cb2(0x1e2)](_0x3dc226){const _0x33eb74=_0x451cb2;var _0x221242;const _0x1db0a6=this[_0x33eb74(0x224)]['get'](Y[_0x33eb74(0x22f)]),_0x2f9549=(_0x221242=_0x1db0a6['getDocRanges']())!=null?_0x221242:[];if(_0x2f9549[_0x33eb74(0x2f6)]===0x0)return;const _0x504496=_0x3dc226[_0x33eb74(0x2b3)],_0x99e2b0=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x504496,'actions':null,'textRanges':_0x2f9549}}],_0x5ae568=this[_0x33eb74(0x20b)][_0x33eb74(0x253)](_0x3dc226,_0x99e2b0);if(!m[_0x33eb74(0x1ec)](_0x5ae568))throw _0x5ae568[_0x33eb74(0x19b)];const _0x559663=_0x5ae568['m2Prime'][0x0]['params'][_0x33eb74(0xfb)];Array[_0x33eb74(0x28f)](_0x559663)&&_0x559663['length']&&_0x1db0a6[_0x33eb74(0x271)](_0x559663,{'unitId':_0x504496,'subUnitId':_0x504496},!0x1);}};Q=zt([Me(0x0,a[_0x451cb2(0x291)](a[_0x451cb2(0x13b)])),Me(0x1,m[_0x451cb2(0x162)])],Q);var Jt=Object[_0x451cb2(0x14b)],Zt=(_0x41933d,_0x567c92,_0x16f821,_0x2e620e)=>{const _0x3243fa=_0x451cb2;for(var _0x24568c=_0x2e620e>0x1?void 0x0:_0x2e620e?Jt(_0x567c92,_0x16f821):_0x567c92,_0x49d8bd=_0x41933d[_0x3243fa(0x2f6)]-0x1,_0x1fe48a;_0x49d8bd>=0x0;_0x49d8bd--)(_0x1fe48a=_0x41933d[_0x49d8bd])&&(_0x24568c=_0x1fe48a(_0x24568c)||_0x24568c);return _0x24568c;},N=(_0xa5e1e,_0x28c384)=>(_0x57dcb7,_0x1da354)=>_0x28c384(_0x57dcb7,_0x1da354,_0xa5e1e);let ee=class extends a['Disposable']{constructor(_0x2610be,_0x4521ba,_0x45cf7d,_0x1f8b9c,_0x3d93d0,_0x54f45c,_0x594d4d,_0x14cab5){const _0x4523a8=_0x451cb2;super(),h(this,_0x4523a8(0x1b6),new d[(_0x4523a8(0x316))](u['CollaborationStatus'][_0x4523a8(0x1b2)])),(this[_0x4523a8(0xbb)]=_0x2610be,this[_0x4523a8(0x2ee)]=_0x4521ba,this[_0x4523a8(0x206)]=_0x45cf7d,this[_0x4523a8(0x2da)]=_0x1f8b9c,this[_0x4523a8(0x144)]=_0x3d93d0,this[_0x4523a8(0x2a0)]=_0x54f45c,this[_0x4523a8(0x113)]=_0x594d4d,this[_0x4523a8(0x2a8)]=_0x14cab5,this['_initEntityListener']());}['_initEntityListener'](){const _0x25dfc5=_0x451cb2;this[_0x25dfc5(0x155)](this[_0x25dfc5(0x2ee)][_0x25dfc5(0xba)][_0x25dfc5(0xdf)](_0x432ba5=>{const _0x10566c=_0x25dfc5,_0x20deb8=this[_0x10566c(0xbb)][_0x10566c(0x26e)][_0x10566c(0xdf)](_0xbb761c=>{const _0x3d7026=_0x10566c;if(_0xbb761c==null)return;const {unitId:_0x8a0cde,redoState:_0x4e9a22,commandId:_0x5d6dbd}=_0xbb761c;if(_0x8a0cde!==_0x432ba5[_0x3d7026(0x2b3)])return;const _0x42e9f1={'id':_0x5d6dbd,'type':a[_0x3d7026(0x27f)][_0x3d7026(0x2a9)],'params':{'unitId':_0x8a0cde,'actions':_0x4e9a22[_0x3d7026(0x160)],'textRanges':null}};_0x432ba5['onLocalMutation'](_0x42e9f1);});if(_0x432ba5[_0x10566c(0x155)](_0x20deb8),_0x432ba5 instanceof u[_0x10566c(0x2e8)]){const _0x4411a3={'onTransformIME':_0x4763b1=>this[_0x10566c(0x206)][_0x10566c(0x194)](_0x4763b1),'onTransformState':_0x51dba9=>this[_0x10566c(0x2da)][_0x10566c(0x282)](_0x51dba9),'onTransformSelections':_0x51619d=>this['_docTransformSelectionsService'][_0x10566c(0x1e2)](_0x51619d),'onSyncEditingCollabCursor':_0x108432=>this[_0x10566c(0x2a0)][_0x10566c(0x305)](_0x108432),'onTransformRemoteChangesetByIMECache':_0x568105=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x568105),'onTransformRemoteChangesetByStateCache':_0x3e9b44=>this[_0x10566c(0x2da)]['transformRemoteChangeset'](_0x3e9b44)};_0x432ba5[_0x10566c(0x260)](_0x4411a3);}}));}};ee=Zt([N(0x0,a['Inject'](b[_0x451cb2(0x2fb)])),N(0x1,a[_0x451cb2(0x291)](u[_0x451cb2(0xd4)])),N(0x2,a[_0x451cb2(0x291)](J)),N(0x3,a[_0x451cb2(0x291)](Z)),N(0x4,a[_0x451cb2(0x291)](Q)),N(0x5,a[_0x451cb2(0x291)](pe)),N(0x6,R[_0x451cb2(0x21e)]),N(0x7,a[_0x451cb2(0x291)](a['LocaleService']))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x576cc1,_0x2db750,_0x111b6c,_0x462726)=>{for(var _0x187f2d=_0x462726>0x1?void 0x0:_0x462726?Qt(_0x2db750,_0x111b6c):_0x2db750,_0x57a5fa=_0x576cc1['length']-0x1,_0x20f505;_0x57a5fa>=0x0;_0x57a5fa--)(_0x20f505=_0x576cc1[_0x57a5fa])&&(_0x187f2d=_0x20f505(_0x187f2d)||_0x187f2d);return _0x187f2d;},_e=(_0x3641be,_0xc44d1e)=>(_0x5b6ade,_0x29c92e)=>_0xc44d1e(_0x5b6ade,_0x29c92e,_0x3641be);let me=class extends a['Disposable']{constructor(_0xb971cb,_0x2825ec,_0x135774){const _0x1bb4bc=_0x451cb2;super(),h(this,'_cachedData',new Map()),h(this,_0x1bb4bc(0xd2),new Map()),h(this,'_disabled',!0x1),(this[_0x1bb4bc(0x219)]=_0xb971cb,this[_0x1bb4bc(0x2af)]=_0x2825ec,this['_revisionService']=_0x135774);}['disableLocalCache'](){const _0x275ea5=_0x451cb2;this[_0x275ea5(0x193)]=!0x0;}[_0x451cb2(0x182)](){const _0x4ee385=_0x451cb2;this[_0x4ee385(0x193)]=!0x1;}get[_0x451cb2(0x19c)](){const _0x50bf80=_0x451cb2;return this[_0x50bf80(0xd2)];}[_0x451cb2(0x212)](){const _0x3b2723=_0x451cb2;this[_0x3b2723(0xa4)]()[_0x3b2723(0x2c8)](()=>super[_0x3b2723(0x212)]());}async[_0x451cb2(0x11d)](_0x26c783){const _0x40ce9c=_0x451cb2;return this['_disabled']?null:this[_0x40ce9c(0x2af)][_0x40ce9c(0xfc)](u['getLocalCacheKey'](_0x26c783));}async[_0x451cb2(0x237)](_0x5253dc,_0x58f6be){const _0x26ea0d=_0x451cb2;return!!this[_0x26ea0d(0x2af)][_0x26ea0d(0x126)](_0x5253dc,_0x58f6be);}[_0x451cb2(0x289)](_0x130ef9,_0x1aba28,_0x32f1bb,_0x32119b){const _0x4c3506=_0x451cb2,_0x464b1d=this[_0x4c3506(0x1c7)]['getCurrentRevOfUnit'](_0x130ef9);this[_0x4c3506(0x1c6)][_0x4c3506(0x1b9)](_0x130ef9,{'unitID':_0x130ef9,'type':_0x1aba28,'awaitingChangeset':_0x32f1bb,'mutations':_0x32119b,'rev':_0x464b1d}),this[_0x4c3506(0xd2)][_0x4c3506(0x132)](_0x130ef9)||this[_0x4c3506(0x300)](_0x130ef9);}[_0x451cb2(0x300)](_0x3efc95){const _0x21f6fd=_0x451cb2,_0x2d1b04=this[_0x21f6fd(0x1f0)]();_0x2d1b04===0x0?this[_0x21f6fd(0x303)](_0x3efc95):this[_0x21f6fd(0xd2)]['set'](_0x3efc95,setTimeout(()=>this[_0x21f6fd(0x303)](_0x3efc95),_0x2d1b04));}['_getSaveTimeout'](){const _0x477ec0=_0x451cb2;var _0x3aeed1;return(_0x3aeed1=this[_0x477ec0(0x219)][_0x477ec0(0x31d)](u[_0x477ec0(0x13f)]))!=null?_0x3aeed1:u[_0x477ec0(0x2f1)];}['_saveCache'](_0x4e1fa7){const _0x124ba7=_0x451cb2,_0x8ee683=this['_saveTaskMap']['get'](_0x4e1fa7);return _0x8ee683!==void 0x0&&window[_0x124ba7(0x21c)](_0x8ee683),this[_0x124ba7(0x2af)][_0x124ba7(0x126)](u[_0x124ba7(0x2d3)](_0x4e1fa7),this[_0x124ba7(0x1c6)][_0x124ba7(0x27e)](_0x4e1fa7))[_0x124ba7(0x2c8)](()=>this[_0x124ba7(0xd2)][_0x124ba7(0x29b)](_0x4e1fa7));}async[_0x451cb2(0xa4)](){const _0x434e79=_0x451cb2,_0x37c038=[];this['_saveTaskMap'][_0x434e79(0xa7)]((_0x2505bc,_0x587793)=>{const _0x2b9b1a=_0x434e79;window['clearTimeout'](_0x2505bc),_0x37c038['push'](this['_saveCache'](_0x587793)[_0x2b9b1a(0x2c8)](()=>{const _0x52642b=_0x2b9b1a;this[_0x52642b(0xd2)][_0x52642b(0x29b)](_0x587793);}));}),await Promise['all'](_0x37c038);}};me=es([_e(0x0,a[_0x451cb2(0x2ad)]),_e(0x1,a[_0x451cb2(0x20e)]),_e(0x2,a[_0x451cb2(0x291)](m['RevisionService']))],me);class ke extends a[_0x451cb2(0x168)]{constructor(){const _0x1d8c3a=_0x451cb2;super(),h(this,_0x1d8c3a(0x14e)),this[_0x1d8c3a(0x14e)]=d[_0x1d8c3a(0x270)](window,'popstate')[_0x1d8c3a(0x2cc)](d[_0x1d8c3a(0x280)](this[_0x1d8c3a(0x111)]),d[_0x1d8c3a(0xfe)](0x1),d[_0x1d8c3a(0x22a)](void 0x0));}['setParam'](_0x1c6051,_0x2346eb,_0x2f8529=!0x1){const _0x2f7d62=_0x451cb2,_0xd38465=new URL(window[_0x2f7d62(0xf3)][_0x2f7d62(0x256)]);_0xd38465[_0x2f7d62(0x2b5)][_0x2f7d62(0x1b9)](_0x1c6051,_0x2346eb),_0x2f8529?window[_0x2f7d62(0xf7)][_0x2f7d62(0x1ce)]('','',_0xd38465[_0x2f7d62(0x2d9)]()):window[_0x2f7d62(0xf7)][_0x2f7d62(0x17d)]('','',_0xd38465[_0x2f7d62(0x2d9)]());}[_0x451cb2(0x118)](_0x5d133e,_0x345b31=!0x1){const _0x304d13=_0x451cb2,_0x3fa77c=new URL(window['location']['href']);_0x3fa77c[_0x304d13(0x2b5)][_0x304d13(0x29b)](_0x5d133e),_0x345b31?window[_0x304d13(0xf7)]['replaceState']('','',_0x3fa77c[_0x304d13(0x2d9)]()):window[_0x304d13(0xf7)][_0x304d13(0x17d)]('','',_0x3fa77c[_0x304d13(0x2d9)]());}[_0x451cb2(0x1e3)](_0x4618bb){const _0x8102e9=_0x451cb2;var _0x57255d;return(_0x57255d=new URL(window[_0x8102e9(0xf3)]['href'])[_0x8102e9(0x2b5)]['get'](_0x4618bb))!=null?_0x57255d:void 0x0;}}var ts=Object['defineProperty'],ss=Object[_0x451cb2(0x14b)],ns=(_0x3084e9,_0xeb2d9b,_0x8ea8ec)=>_0xeb2d9b in _0x3084e9?ts(_0x3084e9,_0xeb2d9b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8ea8ec}):_0x3084e9[_0xeb2d9b]=_0x8ea8ec,is=(_0x3e7427,_0x42a38a,_0x3a6686,_0x1237d2)=>{const _0x1f9aab=_0x451cb2;for(var _0x5340b8=_0x1237d2>0x1?void 0x0:_0x1237d2?ss(_0x42a38a,_0x3a6686):_0x42a38a,_0xb424cf=_0x3e7427[_0x1f9aab(0x2f6)]-0x1,_0x48e37a;_0xb424cf>=0x0;_0xb424cf--)(_0x48e37a=_0x3e7427[_0xb424cf])&&(_0x5340b8=_0x48e37a(_0x5340b8)||_0x5340b8);return _0x5340b8;},ue=(_0x23e935,_0x4be49e)=>(_0xe437,_0xb3c71e)=>_0x4be49e(_0xe437,_0xb3c71e,_0x23e935),rs=(_0x2046b4,_0x255501,_0x4eb1e2)=>ns(_0x2046b4,_0x255501+'',_0x4eb1e2);const os=_0x451cb2(0x2c9);exports[_0x451cb2(0x312)]=class extends a[_0x451cb2(0x1a4)]{constructor(_0x215dd5=Ne,_0x531c39,_0x540373,_0x309f3e){const _0x57daeb=_0x451cb2;super(),this['_config']=_0x215dd5,this[_0x57daeb(0x15e)]=_0x531c39,this[_0x57daeb(0x224)]=_0x540373,this['_configService']=_0x309f3e;const {..._0x4274a7}=a[_0x57daeb(0x283)]({},Ne,this[_0x57daeb(0x302)]);this[_0x57daeb(0x219)]['setConfig'](Ft,_0x4274a7);}[_0x451cb2(0x1f4)](){const _0x36537b=_0x451cb2;this[_0x36537b(0x264)](),this['_initDependencies']();}['onRendered'](){const _0x47f8ec=_0x451cb2;this[_0x47f8ec(0x24e)]();}[_0x451cb2(0x264)](){const _0x3fdf01=_0x451cb2;var _0x514ca6;const _0x9401f7=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x3fdf01(0x2f3)],{'useClass':q[_0x3fdf01(0x307)]}],[u[_0x3fdf01(0x220)],{'useClass':me}],[exports[_0x3fdf01(0x1de)]],[ee],[z],[x],[fe],[exports[_0x3fdf01(0x1fd)]]];a[_0x3fdf01(0x1a1)](this[_0x3fdf01(0x224)],a[_0x3fdf01(0x211)](_0x9401f7,(_0x514ca6=this[_0x3fdf01(0x302)])==null?void 0x0:_0x514ca6[_0x3fdf01(0x145)]));}[_0x451cb2(0x24e)](){const _0x29048e=_0x451cb2;this[_0x29048e(0x155)](this[_0x29048e(0x15e)][_0x29048e(0x293)](a[_0x29048e(0x25a)]['UNIVER_DOC'],[ve])),this[_0x29048e(0x155)](this['_renderManagerService'][_0x29048e(0x293)](a[_0x29048e(0x25a)][_0x29048e(0x2ff)],[ge]));}[_0x451cb2(0x108)](){const _0x55d00c=_0x451cb2;a[_0x55d00c(0x110)](this['_injector'],[[x],[exports[_0x55d00c(0x1de)]],[ee],[z],[exports['CollaborationDataLoaderController']]]);}},rs(exports[_0x451cb2(0x312)],'pluginName',os),exports[_0x451cb2(0x312)]=is([a[_0x451cb2(0xc1)](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x451cb2(0x267)]),ue(0x2,a[_0x451cb2(0x291)](a[_0x451cb2(0x13b)])),ue(0x3,a[_0x451cb2(0x2ad)])],exports[_0x451cb2(0x312)]);var as=Object['getOwnPropertyDescriptor'],cs=(_0x50001c,_0x331040,_0x167361,_0x128971)=>{const _0x3694ca=_0x451cb2;for(var _0x3f2a5f=_0x128971>0x1?void 0x0:_0x128971?as(_0x331040,_0x167361):_0x331040,_0x43cdaa=_0x50001c[_0x3694ca(0x2f6)]-0x1,_0x4d7b60;_0x43cdaa>=0x0;_0x43cdaa--)(_0x4d7b60=_0x50001c[_0x43cdaa])&&(_0x3f2a5f=_0x4d7b60(_0x3f2a5f)||_0x3f2a5f);return _0x3f2a5f;},W=(_0x414de4,_0x463503)=>(_0x4819f6,_0x3db4b6)=>_0x463503(_0x4819f6,_0x3db4b6,_0x414de4);exports[_0x451cb2(0x1f1)]=class extends u['CollaborationSocketService']{constructor(_0x123a23,_0x506f9d,_0x392a0f,_0x5dddc5,_0x1b962){super(_0x123a23,_0x506f9d,_0x392a0f,_0x5dddc5,_0x1b962);}async[_0x451cb2(0x178)](_0x481f50){const _0x5d2b98=_0x451cb2,_0x4e8790=await this[_0x5d2b98(0x241)](),_0x45c61b=this[_0x5d2b98(0x2c3)](_0x481f50,_0x4e8790);return this[_0x5d2b98(0x2b4)](_0x45c61b);}['_createSocketURL'](_0x588d9c,_0x16a4f5){const _0x1553cd=_0x451cb2,_0x2c8940=typeof window>'u'?new URL(_0x588d9c):new URL(_0x588d9c,window[_0x1553cd(0xf3)]['origin']);_0x2c8940[_0x1553cd(0x2b5)][_0x1553cd(0x1b9)](_0x1553cd(0xb1),_0x16a4f5);const _0x314b4b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x314b4b['get'](_0x1553cd(0x1bf))&&_0x2c8940[_0x1553cd(0x2b5)][_0x1553cd(0x1b9)](_0x1553cd(0x1bf),_0x314b4b[_0x1553cd(0x27e)](_0x1553cd(0x1bf))),_0x2c8940['toString']();}async['_getSessionTicket'](){const _0x3c99df=_0x451cb2;var _0x47d497,_0x18b8d2,_0x136428;const _0x656597=this[_0x3c99df(0x219)][_0x3c99df(0x31d)](u[_0x3c99df(0x240)]),_0x2c3866=(_0x47d497=_0x656597==null?void 0x0:_0x656597[_0x3c99df(0x318)])!=null?_0x47d497:u[_0x3c99df(0x15a)];return(_0x136428=(_0x18b8d2=(await this[_0x3c99df(0x13c)][_0x3c99df(0x27e)](_0x2c3866,{'headers':{'Content-Type':'application/json'}}))[_0x3c99df(0x169)])==null?void 0x0:_0x18b8d2['ticket'])!=null?_0x136428:'';}},exports[_0x451cb2(0x1f1)]=cs([W(0x0,a[_0x451cb2(0x291)](a[_0x451cb2(0x13b)])),W(0x1,a[_0x451cb2(0x291)](q[_0x451cb2(0x1f6)])),W(0x2,a[_0x451cb2(0x2ad)]),W(0x3,a[_0x451cb2(0x2eb)]),W(0x4,m[_0x451cb2(0x1b7)])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,we=_0x451cb2(0x30a);class ls extends a[_0x451cb2(0xcb)]{constructor(){const _0x3ebf8e=_0x451cb2;super(),h(this,'_id',a[_0x3ebf8e(0x2c0)]()),h(this,_0x3ebf8e(0x24f),new Set()),h(this,_0x3ebf8e(0xf1),new Map()),h(this,_0x3ebf8e(0x287),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x3ebf8e(0x14c),new Map()),this['_init']();}['dispose'](){const _0x21127a=_0x451cb2;super[_0x21127a(0x212)](),this[_0x21127a(0x18d)][_0x21127a(0xa7)]((_0x628c08,_0x4f0d61)=>this[_0x21127a(0x12c)](_0x4f0d61)),this[_0x21127a(0x287)]&&window[_0x21127a(0x233)](this['_heartbeatTimer']);}[_0x451cb2(0x124)](_0x5d7ff9){const _0x1208fa=_0x451cb2;return this[_0x1208fa(0x23f)](_0x5d7ff9)['pipe'](d['distinctUntilChanged']());}[_0x451cb2(0x20c)](_0x3f1d94){const _0x4e3174=_0x451cb2;this['_selfUnitIDs'][_0x4e3174(0xd6)]===0x0&&this[_0x4e3174(0x1a2)](),this[_0x4e3174(0x24f)][_0x4e3174(0x244)](_0x3f1d94),this[_0x4e3174(0x2c6)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3f1d94],'isForwarded':!0x1});}[_0x451cb2(0x153)](_0x317c52){const _0x2e1277=_0x451cb2;this[_0x2e1277(0x24f)]['delete'](_0x317c52),this[_0x2e1277(0x24f)][_0x2e1277(0xd6)]===0x0&&this[_0x2e1277(0x287)]&&window['clearInterval'](this[_0x2e1277(0x287)]);}[_0x451cb2(0x140)](){const _0x5843a1=_0x451cb2;this[_0x5843a1(0x155)](a[_0x5843a1(0x225)](d[_0x5843a1(0x270)](window,_0x5843a1(0x146))['subscribe'](_0x420fec=>{const _0x1d363a=_0x5843a1;if(_0x420fec[_0x1d363a(0x235)]!==we||!_0x420fec[_0x1d363a(0xbe)])return;const _0x15d96d=JSON[_0x1d363a(0xef)](_0x420fec[_0x1d363a(0xbe)]);this[_0x1d363a(0xed)](_0x15d96d);}))),window[_0x5843a1(0x217)](_0x5843a1(0xe9),()=>this[_0x5843a1(0x2c6)]({'type':0x1,'memberID':this[_0x5843a1(0x28a)],'unitIDs':Array[_0x5843a1(0x24d)](this[_0x5843a1(0x24f)])}));}['_handleEvent'](_0x464fce){const _0x4f118f=_0x451cb2;switch(_0x464fce['type']){case 0x0:this[_0x4f118f(0x1c2)](_0x464fce);break;case 0x1:this[_0x4f118f(0x1a9)](_0x464fce);break;case 0x2:this[_0x4f118f(0x12a)](_0x464fce);break;}}[_0x451cb2(0x1c2)](_0x478830){const _0x540762=_0x451cb2,{unitIDs:_0x2d0055,memberID:_0x577a46,isForwarded:_0x5274a4}=_0x478830;_0x2d0055[_0x540762(0xa7)](_0x24c3c8=>{const _0x1c4209=_0x540762;if(!_0x5274a4&&this['_unitOnClients'][_0x1c4209(0x132)](_0x24c3c8)&&this['_ensureSubject'](_0x24c3c8)[_0x1c4209(0x1e4)](u['UnitStatus'][_0x1c4209(0x1cc)]),!this[_0x1c4209(0xf1)][_0x1c4209(0x132)](_0x24c3c8)||!this[_0x1c4209(0xf1)][_0x1c4209(0x27e)](_0x24c3c8)['has'](_0x577a46)){const _0x21b42b=this[_0x1c4209(0xf1)][_0x1c4209(0x27e)](_0x24c3c8)||new Set();_0x21b42b[_0x1c4209(0x244)](_0x577a46),this[_0x1c4209(0xf1)][_0x1c4209(0x1b9)](_0x24c3c8,_0x21b42b),this[_0x1c4209(0x1d4)](_0x577a46);}}),_0x5274a4||this[_0x540762(0x2c6)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x540762(0x24f)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2b1ec3){const _0xe47789=_0x451cb2;this[_0xe47789(0x12c)](_0x2b1ec3);const _0x16967f=window['setTimeout'](()=>{const _0x5f1167=_0xe47789;this[_0x5f1167(0xf1)]['forEach'](_0x13a5f9=>{const _0x2e833e=_0x5f1167;_0x13a5f9[_0x2e833e(0x29b)](_0x2b1ec3);});},Pe*0x2);this[_0xe47789(0x18d)][_0xe47789(0x1b9)](_0x2b1ec3,_0x16967f);}[_0x451cb2(0x12c)](_0xb3ebb4){const _0x31bb7b=_0x451cb2;if(this['_clearOtherTimers'][_0x31bb7b(0x132)](_0xb3ebb4)){const _0x362847=this[_0x31bb7b(0x18d)][_0x31bb7b(0x27e)](_0xb3ebb4);_0x362847&&window['clearTimeout'](_0x362847),this[_0x31bb7b(0x18d)][_0x31bb7b(0x1b9)](_0xb3ebb4,null);}}[_0x451cb2(0x1a9)](_0x4fc7bb){const _0x2d3648=_0x451cb2,{memberID:_0x272f7f,unitIDs:_0x4ea509}=_0x4fc7bb;_0x4ea509['forEach'](_0x47b0c1=>{const _0x17a102=_0x2767;var _0x239ac8;const _0x31d243=this[_0x17a102(0xf1)][_0x17a102(0x27e)](_0x47b0c1);_0x31d243&&(_0x31d243[_0x17a102(0x29b)](_0x272f7f),(_0x239ac8=this[_0x17a102(0x23f)](_0x47b0c1))==null||_0x239ac8[_0x17a102(0x1e4)](_0x31d243[_0x17a102(0xd6)]===0x0?u[_0x17a102(0x2fa)][_0x17a102(0x2ab)]:u['UnitStatus'][_0x17a102(0x1cc)]));}),this[_0x2d3648(0x12c)](_0x272f7f);}[_0x451cb2(0x12a)](_0x2624c4){this['_scheduleClearOtherTimer'](_0x2624c4['memberID']);}[_0x451cb2(0x2c6)](_0x2c44ad){const _0x2cd0a2=_0x451cb2;localStorage[_0x2cd0a2(0x126)](we,JSON[_0x2cd0a2(0x19d)](_0x2c44ad));}[_0x451cb2(0x1a2)](){const _0x9a3f22=_0x451cb2;this[_0x9a3f22(0x287)]=window['setInterval'](()=>{const _0x3d01d9=_0x9a3f22;this[_0x3d01d9(0x2c6)]({'type':0x2,'memberID':this[_0x3d01d9(0x28a)]});},Pe);}['_ensureSubject'](_0x3579af){const _0x2ef45c=_0x451cb2;return this[_0x2ef45c(0x14c)][_0x2ef45c(0x132)](_0x3579af)||this[_0x2ef45c(0x14c)]['set'](_0x3579af,new d[(_0x2ef45c(0x316))](u[_0x2ef45c(0x2fa)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x2ef45c(0x14c)][_0x2ef45c(0x27e)](_0x3579af);}}var Be=(_0x4cbd0f=>(_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x10f)]=0x0]=_0x451cb2(0x10f),_0x4cbd0f[_0x4cbd0f['OK']=0x1]='OK',_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x323)]=0x2]=_0x451cb2(0x323),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x2c4)]=0x3]=_0x451cb2(0x2c4),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x209)]=0x4]='NOT_FOUND',_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x125)]=0x5]='UNAUTHENTICATED',_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x2f2)]=0x6]=_0x451cb2(0x2f2),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0xee)]=0x7]='INVALID_ARGUMENT',_0x4cbd0f[_0x4cbd0f['TOO_MANY_REQUESTS']=0x8]=_0x451cb2(0x223),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x2a4)]=0x9]='COMPLETION_FINISHED',_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x213)]=0xa]=_0x451cb2(0x213),_0x4cbd0f[_0x4cbd0f['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x451cb2(0xdd),_0x4cbd0f[_0x4cbd0f['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x451cb2(0x2cb),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x2aa)]=0x1772]=_0x451cb2(0x2aa),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x1e1)]=0x1773]=_0x451cb2(0x1e1),_0x4cbd0f[_0x4cbd0f['APPLY_REJECT']=0x1b59]=_0x451cb2(0x297),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x290)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x10d)]=0x1b5b]=_0x451cb2(0x10d),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x16f)]=0x1b5c]=_0x451cb2(0x16f),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x107)]=0x1b5d]=_0x451cb2(0x107),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x2bf)]=0x1f41]=_0x451cb2(0x2bf),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x201)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x2e1)]=0x232a]=_0x451cb2(0x2e1),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x134)]=0x232b]=_0x451cb2(0x134),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x1da)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x2fd)]=0x232d]=_0x451cb2(0x2fd),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0xc2)]=0x2711]=_0x451cb2(0xc2),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x119)]=0x2712]=_0x451cb2(0x119),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x229)]=0x2713]=_0x451cb2(0x229),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x2e4)]=0x2714]=_0x451cb2(0x2e4),_0x4cbd0f[_0x4cbd0f['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x451cb2(0xf0),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0x245)]=0x2ee1]=_0x451cb2(0x245),_0x4cbd0f[_0x4cbd0f[_0x451cb2(0xac)]=0x2ee2]=_0x451cb2(0xac),_0x4cbd0f[_0x4cbd0f['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x4cbd0f[_0x4cbd0f['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x4cbd0f[_0x4cbd0f[_0x451cb2(0xf8)]=0x2ee5]=_0x451cb2(0xf8),_0x4cbd0f[_0x4cbd0f['UNRECOGNIZED']=-0x1]=_0x451cb2(0x298),_0x4cbd0f))(Be||{}),hs=Object[_0x451cb2(0x14b)],_s=(_0x59ccea,_0x27f5ce,_0x56e0b5,_0x1dbfa0)=>{const _0x1e7cb6=_0x451cb2;for(var _0xb90dc2=_0x1dbfa0>0x1?void 0x0:_0x1dbfa0?hs(_0x27f5ce,_0x56e0b5):_0x27f5ce,_0x3fffb2=_0x59ccea[_0x1e7cb6(0x2f6)]-0x1,_0x496a66;_0x3fffb2>=0x0;_0x3fffb2--)(_0x496a66=_0x59ccea[_0x3fffb2])&&(_0xb90dc2=_0x496a66(_0xb90dc2)||_0xb90dc2);return _0xb90dc2;},de=(_0x4196b3,_0x264128)=>(_0x48898a,_0x5e2f99)=>_0x264128(_0x48898a,_0x5e2f99,_0x4196b3);exports[_0x451cb2(0xb0)]=class extends a[_0x451cb2(0xcb)]{constructor(_0x661058,_0x32f0d9,_0xeb35dc){const _0x564fa3=_0x451cb2;super(),this[_0x564fa3(0x2df)]=_0x661058,this[_0x564fa3(0x13c)]=_0x32f0d9,this[_0x564fa3(0x219)]=_0xeb35dc;}async[_0x451cb2(0x2d4)](_0x2509dd,_0x1133c5,_0x274838,..._0x388c45){const _0x5a791a=_0x451cb2;var _0x103655,_0x36ee5a,_0x2a8579,_0x336794;const _0x426e56=this['_instanceService'][_0x5a791a(0x2bd)]();if(!_0x426e56)throw new Error(_0x5a791a(0x1ee));const _0x5aec89=((_0x103655=this[_0x5a791a(0x219)][_0x5a791a(0x31d)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x103655:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x2509dd+_0x5a791a(0x19e)+_0x1133c5,_0x1b9a00=new URL(window['location']['href']),_0x5abe3c={'scriptId':_0x2509dd,'runId':(_0x36ee5a=_0x1b9a00[_0x5a791a(0x2b5)][_0x5a791a(0x27e)](_0x5a791a(0x1bf)))!=null?_0x36ee5a:'','function':_0x1133c5,'unitId':_0x426e56[_0x5a791a(0x2e0)](),'argsOfFunction':JSON[_0x5a791a(0x19d)](_0x388c45),'invokeId':(_0x2a8579=_0x274838[_0x5a791a(0x2bc)])!=null?_0x2a8579:'','executionId':(_0x336794=_0x274838[_0x5a791a(0x243)])!=null?_0x336794:''};try{const _0x5b42a0=await this[_0x5a791a(0x13c)][_0x5a791a(0xd8)](_0x5aec89,{'body':_0x5abe3c});return _0x5b42a0[_0x5a791a(0x169)][_0x5a791a(0x19b)]&&_0x5b42a0['body'][_0x5a791a(0x19b)]['code']!==Be['OK']?'Failed':_0x5b42a0[_0x5a791a(0x169)][_0x5a791a(0xa6)];}catch{return'Failed';}}},exports[_0x451cb2(0xb0)]=_s([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x451cb2(0x291)](q[_0x451cb2(0x1f6)])),de(0x2,a[_0x451cb2(0x2ad)])],exports[_0x451cb2(0xb0)]),exports[_0x451cb2(0x2cf)]=je,exports[_0x451cb2(0x275)]=Ee,exports[_0x451cb2(0x23a)]=Ae,exports[_0x451cb2(0x252)]=ls,exports[_0x451cb2(0xe3)]=ke;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x3cc8(_0x5a50a9,_0x339eed){const _0x3eda04=_0x3eda();return _0x3cc8=function(_0x3cc89b,_0x422050){_0x3cc89b=_0x3cc89b-0x15d;let _0x51836d=_0x3eda04[_0x3cc89b];return _0x51836d;},_0x3cc8(_0x5a50a9,_0x339eed);}const _0x12d48c=_0x3cc8;(function(_0x5a4e31,_0x362560){const _0x229b5b=_0x3cc8,_0x4cbee6=_0x5a4e31();while(!![]){try{const _0x30e946=-parseInt(_0x229b5b(0x162))/0x1*(parseInt(_0x229b5b(0x15e))/0x2)+-parseInt(_0x229b5b(0x171))/0x3*(-parseInt(_0x229b5b(0x16a))/0x4)+parseInt(_0x229b5b(0x165))/0x5+parseInt(_0x229b5b(0x168))/0x6*(parseInt(_0x229b5b(0x160))/0x7)+parseInt(_0x229b5b(0x164))/0x8+-parseInt(_0x229b5b(0x161))/0x9*(parseInt(_0x229b5b(0x16f))/0xa)+-parseInt(_0x229b5b(0x15f))/0xb;if(_0x30e946===_0x362560)break;else _0x4cbee6['push'](_0x4cbee6['shift']());}catch(_0x470085){_0x4cbee6['push'](_0x4cbee6['shift']());}}}(_0x3eda,0xe5bb7));function _0x3eda(){const _0x164a96=['13939704AEvLAR','122638imDXTQ','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','7614048hykLnh','7528030tYaWoo','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','282vltdaD','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','61568OzEIIt','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Edit\x20conflicts','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','10Gqecpw','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','216EFpWTh','Connection\x20failed,\x20please\x20check\x20your\x20network.','4YQGEAY','21194206YbIRvM','163275UPHZzu'];_0x3eda=function(){return _0x164a96;};return _0x3eda();}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x12d48c(0x16d),'notCollab':'Local\x20file','synced':'Synced','syncing':'Syncing...','offline':_0x12d48c(0x169)},'session':{'connection-failed':_0x12d48c(0x15d),'will-retry':_0x12d48c(0x16e),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':'Collaboration\x20Conflict','content':_0x12d48c(0x170)},'permission':{'title':_0x12d48c(0x16b),'content':_0x12d48c(0x16c)},'collaboration':{'single-unit':{'warning':_0x12d48c(0x167)},'closeRoom':_0x12d48c(0x163)},'auth':{'needGotoLoginAlert':_0x12d48c(0x166)}};module['exports']=e;
|